@weaverse/core 0.6.2 → 0.6.3
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.
- package/dist/index.d.ts +8 -11
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -11,23 +11,20 @@ declare type WeaverseElement = {
|
|
|
11
11
|
declare type WeaverseElementSchema = {
|
|
12
12
|
title?: string;
|
|
13
13
|
type: string;
|
|
14
|
-
settings?:
|
|
15
|
-
styles?:
|
|
14
|
+
settings?: WeaverseElementInput[];
|
|
15
|
+
styles?: WeaverseElementInput[];
|
|
16
16
|
toolbar?: TODO;
|
|
17
17
|
data?: TODO;
|
|
18
18
|
};
|
|
19
|
-
declare type
|
|
19
|
+
declare type WeaverseElementInput = {
|
|
20
|
+
label?: string;
|
|
21
|
+
type: 'select' | 'checkbox' | 'radio' | 'range' | 'button' | 'image' | 'file' | 'hidden' | 'alignment' | 'color' | 'dimensions' | 'flex' | 'grid' | 'input' | 'switch' | 'spacing' | 'textarea' | 'visibility' | 'border' | 'background' | 'typography' | 'shadow' | 'position' | 'overflow' | 'display' | 'other';
|
|
20
22
|
name?: string;
|
|
21
|
-
type: 'alignment' | 'color' | 'dimensions' | 'flex' | 'grid' | 'input' | 'switch' | 'spacing' | 'textarea' | 'visibility' | 'border' | 'background' | 'typography' | 'shadow' | 'position' | 'overflow' | 'display' | 'other';
|
|
22
|
-
defaultValue?: string;
|
|
23
|
-
};
|
|
24
|
-
declare type WeaverseElementSettingInput = {
|
|
25
|
-
type: 'input' | 'textarea' | 'select' | 'checkbox' | 'radio' | 'color' | 'range' | 'button' | 'image';
|
|
26
|
-
name: string;
|
|
27
23
|
defaultValue?: string;
|
|
28
24
|
helpText?: string;
|
|
29
25
|
options?: TODO[];
|
|
30
|
-
|
|
26
|
+
conditions?: TODO[];
|
|
27
|
+
[key: string]: TODO;
|
|
31
28
|
};
|
|
32
29
|
declare global {
|
|
33
30
|
interface Window {
|
|
@@ -180,4 +177,4 @@ declare const isReactNative: boolean;
|
|
|
180
177
|
declare const isBrowser: boolean;
|
|
181
178
|
declare const isIframe: boolean;
|
|
182
179
|
|
|
183
|
-
export { MediaBreakpoints, ProjectDataItemType, ProjectDataType, TODO, Weaverse, WeaverseElement, WeaverseElementMap, WeaverseElementSchema,
|
|
180
|
+
export { MediaBreakpoints, ProjectDataItemType, ProjectDataType, TODO, Weaverse, WeaverseElement, WeaverseElementInput, WeaverseElementMap, WeaverseElementSchema, WeaverseItemStore, WeaverseType, isBrowser, isIframe, isReactNative };
|
package/package.json
CHANGED