Files
penpot/plugins/libs/plugins-runtime/src/lib/models/manifest.schema.ts
Andrey Antukh 3c82e6b239 Add better approach for handling plugin iframe url
Ensure params are passed correctly to plugins declared to be version
2 and are prepared to run in a subpath.
2026-02-24 00:11:08 +01:00

25 lines
530 B
TypeScript

import { z } from 'zod';
export const manifestSchema = z.object({
pluginId: z.string(),
name: z.string(),
host: z.string().url(),
code: z.string(),
icon: z.string().optional(),
version: z.number().optional(),
description: z.string().max(200).optional(),
permissions: z.array(
z.enum([
'content:read',
'content:write',
'library:read',
'library:write',
'user:read',
'comment:read',
'comment:write',
'allow:downloads',
'allow:localstorage',
]),
),
});