@weaverse/core 0.7.30 → 0.7.32

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +12 -12
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -83,7 +83,7 @@ interface WeaverseElement {
83
83
  defaultCss?: ElementCSS;
84
84
  permanentCss?: ElementCSS;
85
85
  }
86
- declare type CatalogGroup = "essential" | "composition" | "shopify";
86
+ type CatalogGroup = "essential" | "composition" | "shopify";
87
87
  interface ElementCatalog {
88
88
  name: string;
89
89
  icon?: string;
@@ -93,18 +93,18 @@ interface ElementCatalog {
93
93
  interface ElementDataInCatalog extends Omit<ElementData, "id"> {
94
94
  id: string | number;
95
95
  }
96
- declare type FlagType = "draggable" | "resizable" | "sortable" | "ignoreShortcutKeys" | "hasContextMenu" | "isSortableContext";
97
- declare type ElementFlags = Partial<Record<FlagType, boolean>>;
96
+ type FlagType = "draggable" | "resizable" | "sortable" | "ignoreShortcutKeys" | "hasContextMenu" | "isSortableContext";
97
+ type ElementFlags = Partial<Record<FlagType, boolean>>;
98
98
  interface ChildElement {
99
99
  label: string;
100
100
  selector: string;
101
101
  }
102
- declare type ParentType = "container" | "layout" | "root" | "product-details" | "product-info" | "collection.box" | "collection-box" | "article-box" | "article-list" | "slider" | "tab" | "accordion" | "accordion.wrapper";
103
- declare type GridSize = {
102
+ type ParentType = "container" | "layout" | "root" | "product-details" | "product-info" | "collection.box" | "collection-box" | "article-box" | "article-list" | "slider" | "tab" | "accordion" | "accordion.wrapper";
103
+ type GridSize = {
104
104
  rowSpan: number;
105
105
  colSpan: number;
106
106
  };
107
- declare type ToolbarAction = "general-settings" | "edit-text" | "duplicate" | "delete" | "copy-styles" | "paste-styles" | "move-up" | "move-down" | "toggle-visibility";
107
+ type ToolbarAction = "general-settings" | "edit-text" | "duplicate" | "delete" | "copy-styles" | "paste-styles" | "move-up" | "move-down" | "toggle-visibility";
108
108
  interface ElementSchema {
109
109
  title: string;
110
110
  type: string;
@@ -123,8 +123,8 @@ interface ElementData {
123
123
  css?: ElementCSS;
124
124
  [key: string]: any;
125
125
  }
126
- declare type WeaverseCSSProperties = Stitches.CSS & Partial<Record<keyof typeof stichesUtils, string | number>>;
127
- declare type ChildElementCSS = Partial<{
126
+ type WeaverseCSSProperties = Stitches.CSS & Partial<Record<keyof typeof stichesUtils, string | number>>;
127
+ type ChildElementCSS = Partial<{
128
128
  [selector: string]: WeaverseCSSProperties & ChildElementCSS;
129
129
  }>;
130
130
  interface ElementCSS {
@@ -144,7 +144,7 @@ interface BasicGroup {
144
144
  groupHeader: string;
145
145
  inputs: BasicInput[];
146
146
  }
147
- declare type AdvancedGroupType = "border" | "alignment" | "background" | "dimensions" | "spacing" | "typography" | "visibility" | "shadows-and-effects" | "layout-background";
147
+ type AdvancedGroupType = "border" | "alignment" | "background" | "dimensions" | "spacing" | "typography" | "visibility" | "shadows-and-effects" | "layout-background";
148
148
  interface BasicInput<ConfigsType = AdditionalInputConfigs> {
149
149
  type: InputType;
150
150
  label?: string;
@@ -179,7 +179,7 @@ interface BasicInput<ConfigsType = AdditionalInputConfigs> {
179
179
  placeholder?: string;
180
180
  helpText?: string;
181
181
  }
182
- declare type AdditionalInputConfigs = SelectInputConfigs | ToggleGroupConfigs | RangeInputConfigs | SortableInputConfigs;
182
+ type AdditionalInputConfigs = SelectInputConfigs | ToggleGroupConfigs | RangeInputConfigs | SortableInputConfigs;
183
183
  interface SelectInputConfigs {
184
184
  options?: {
185
185
  value: string;
@@ -201,11 +201,11 @@ interface RangeInputConfigs {
201
201
  max?: number;
202
202
  step?: number;
203
203
  }
204
- declare type SortableItemAction = "add" | "edit" | "duplicate" | "delete" | "toggle-visibility";
204
+ type SortableItemAction = "add" | "edit" | "duplicate" | "delete" | "toggle-visibility";
205
205
  interface SortableInputConfigs {
206
206
  actions: SortableItemAction[];
207
207
  }
208
- declare type InputType = "color" | "datepicker" | "image" | "range" | "select" | "sortable" | "switch" | "text" | "textarea" | "toggle-group" | "form" | "product" | "product-swatches" | "custom.html" | "instagram" | "collection-list" | "collection" | "article-list" | "map-autocomplete";
208
+ type InputType = "color" | "datepicker" | "image" | "range" | "select" | "sortable" | "switch" | "text" | "textarea" | "toggle-group" | "form" | "product" | "product-swatches" | "custom.html" | "instagram" | "collection-list" | "collection" | "article-list" | "map-autocomplete";
209
209
  declare global {
210
210
  interface Window {
211
211
  WeaverseStudioBridge: any;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.7.30",
2
+ "version": "0.7.32",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",