@weaverse/core 0.7.8 → 0.7.9

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 CHANGED
@@ -97,7 +97,7 @@ interface ElementCatalog {
97
97
  }
98
98
  declare type FlagType = "draggable" | "resizable" | "sortable" | "droppable" | "deletable" | "duplicable";
99
99
  declare type ElementFlags = Partial<Record<FlagType, boolean>>;
100
- declare type ToolbarAction = "duplicate" | "delete" | "edit-button" | "insert-link" | "select-template" | "copy-styles" | "paste-styles";
100
+ declare type ToolbarAction = "duplicate" | "delete" | "copy-styles" | "paste-styles";
101
101
  interface ChildElement {
102
102
  label: string;
103
103
  selector: string;
@@ -153,16 +153,34 @@ interface BasicInput {
153
153
  defaultValue?: string;
154
154
  placeholder?: string;
155
155
  helpText?: string;
156
+ /**
157
+ * For `select` or `toggle-group` input
158
+ */
156
159
  options?: {
157
160
  value: string;
158
161
  label: string;
159
162
  icon?: string;
160
163
  weight?: string;
161
164
  }[];
165
+ /**
166
+ * For `range` input
167
+ */
162
168
  min?: number;
163
169
  max?: number;
164
170
  step?: number;
165
- conditions?: TODO[];
171
+ /**
172
+ * Only display if condition matches.
173
+ *
174
+ * Format: `bindingName.conditionalOperator.value`
175
+ *
176
+ * Supported operators: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`
177
+ *
178
+ * @example
179
+ * `clickAction.eq.openLink`
180
+ * `clickAction.ne.openLink`
181
+ * `imagesPerRow.gt.1`
182
+ */
183
+ condition?: string;
166
184
  }
167
185
  declare type InputType = "color" | "datepicker" | "image" | "range" | "select" | "sortable" | "switch" | "text" | "textarea" | "toggle-group" | "form" | "product" | "custom.html" | "instagram";
168
186
  declare global {
package/dist/index.js CHANGED
File without changes
package/dist/index.mjs CHANGED
File without changes
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.7.8",
2
+ "version": "0.7.9",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",