@appkit/dek-plugin 0.23.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,10 +5,18 @@ export type DekPluginElementProps<T extends DekPlugin = DekPlugin> = Record<stri
5
5
  api: DekApi;
6
6
  };
7
7
  export type DekPluginElementFactoryWithProps = (props: DekPluginElementProps) => JSX.Element;
8
+ export type DekPluginSchemaItemOption = {
9
+ value: string;
10
+ label?: string;
11
+ };
12
+ export type DekPluginSchemaType = 'string' | 'number' | 'boolean' | 'list' | 'color' | 'object' | 'styles';
8
13
  export type DekPluginSchemaItem = {
9
14
  type: string;
10
15
  title?: string;
11
16
  default?: any;
17
+ options?: DekPluginSchemaItemOption[];
18
+ min?: number;
19
+ max?: number;
12
20
  };
13
21
  export type DekPluginSchema = Record<string, DekPluginSchemaItem>;
14
22
  export type DekPluginComponentItem = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@appkit/dek-plugin",
3
3
  "private": false,
4
- "version": "0.23.0",
4
+ "version": "0.24.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",