@weaverse/core 1.0.6 → 1.0.7
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 +10 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -93,7 +93,7 @@ type GridSize = {
|
|
|
93
93
|
rowSpan: number;
|
|
94
94
|
colSpan: number;
|
|
95
95
|
};
|
|
96
|
-
type ToolbarAction = "general-settings" | "settings-level-2" | "text-presets" | "duplicate" | "delete" | "copy-styles" | "paste-styles" | "move-up" | "move-down" | "next-slide" | "prev-slide" | "change-background" | "toggle-visibility" | "more-actions";
|
|
96
|
+
type ToolbarAction = "general-settings" | "settings-level-2" | "text-presets" | "ai-assistant" | "duplicate" | "delete" | "copy-styles" | "paste-styles" | "move-up" | "move-down" | "next-slide" | "prev-slide" | "change-background" | "toggle-visibility" | "more-actions";
|
|
97
97
|
interface ElementSchema {
|
|
98
98
|
title: string;
|
|
99
99
|
type: string;
|
|
@@ -168,7 +168,7 @@ interface BasicInput<ConfigsType = AdditionalInputConfigs> {
|
|
|
168
168
|
placeholder?: string;
|
|
169
169
|
helpText?: string;
|
|
170
170
|
}
|
|
171
|
-
type AdditionalInputConfigs = SelectInputConfigs | ToggleGroupConfigs | RangeInputConfigs |
|
|
171
|
+
type AdditionalInputConfigs = SelectInputConfigs | ToggleGroupConfigs | RangeInputConfigs | ChildrenSortInputConfigs | DataSortInputConfigs;
|
|
172
172
|
interface SelectInputConfigs {
|
|
173
173
|
options?: {
|
|
174
174
|
value: string;
|
|
@@ -192,10 +192,15 @@ interface RangeInputConfigs {
|
|
|
192
192
|
unit?: string;
|
|
193
193
|
}
|
|
194
194
|
type SortableItemAction = "add" | "edit" | "duplicate" | "delete" | "toggle-visibility";
|
|
195
|
-
interface
|
|
195
|
+
interface ChildrenSortInputConfigs {
|
|
196
196
|
actions: SortableItemAction[];
|
|
197
197
|
}
|
|
198
|
-
|
|
198
|
+
interface DataSortInputConfigs {
|
|
199
|
+
prop: string;
|
|
200
|
+
defaultData: object;
|
|
201
|
+
inspector: string;
|
|
202
|
+
}
|
|
203
|
+
type InputType = "color" | "datepicker" | "image" | "range" | "select" | "children-sort" | "data-sort" | "switch" | "text" | "textarea" | "toggle-group" | "position" | "product" | "product-list" | "product-swatches" | "text-editor" | "custom.html" | "instagram" | "collection-list" | "collection" | "article-list" | "map-autocomplete";
|
|
199
204
|
declare global {
|
|
200
205
|
interface Window {
|
|
201
206
|
WeaverseStudioBridge: any;
|
|
@@ -337,4 +342,4 @@ declare function merge(target: Record<string, any>, source: Record<string, any>)
|
|
|
337
342
|
[x: string]: any;
|
|
338
343
|
};
|
|
339
344
|
|
|
340
|
-
export { AdditionalInputConfigs, AdvancedGroup, AdvancedGroupType, BasicGroup, BasicInput, BreakPoints, CatalogGroup, ChildElement, ChildElementCSS, ChildElementSelector, ElementCSS, ElementCatalog, ElementData, ElementDataInCatalog, ElementFlags, ElementInspector, ElementSchema, FlagType, GridSize, InputType, ParentType, PlatformTypeEnum, RangeInputConfigs, SelectInputConfigs,
|
|
345
|
+
export { AdditionalInputConfigs, AdvancedGroup, AdvancedGroupType, BasicGroup, BasicInput, BreakPoints, CatalogGroup, ChildElement, ChildElementCSS, ChildElementSelector, ChildrenSortInputConfigs, DataSortInputConfigs, ElementCSS, ElementCatalog, ElementData, ElementDataInCatalog, ElementFlags, ElementInspector, ElementSchema, FlagType, GridSize, InputType, ParentType, PlatformTypeEnum, RangeInputConfigs, SelectInputConfigs, SortableItemAction, ToggleGroupConfigs, ToolbarAction, Weaverse, WeaverseCSSProperties, WeaverseElement, WeaverseItemStore, WeaverseProjectDataType, WeaverseType, isBrowser, isIframe, isReactNative, merge };
|
package/package.json
CHANGED