@weaverse/core 2.0.1 → 2.1.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.
- package/dist/index.d.mts +12 -9
- package/dist/index.d.ts +12 -9
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -162,7 +162,7 @@ interface BasicInput<ConfigsType = AdditionalInputConfigs> {
|
|
|
162
162
|
/**
|
|
163
163
|
* Only display if condition matches.
|
|
164
164
|
*
|
|
165
|
-
* Format: `
|
|
165
|
+
* Format: `bindingName.conditionalOperator.value`
|
|
166
166
|
*
|
|
167
167
|
* Supported operators: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`
|
|
168
168
|
*
|
|
@@ -172,11 +172,11 @@ interface BasicInput<ConfigsType = AdditionalInputConfigs> {
|
|
|
172
172
|
* `imagesPerRow.gt.1`
|
|
173
173
|
*/
|
|
174
174
|
condition?: string;
|
|
175
|
-
defaultValue?:
|
|
175
|
+
defaultValue?: string | number | boolean | WeaverseImage;
|
|
176
176
|
placeholder?: string;
|
|
177
177
|
helpText?: string;
|
|
178
178
|
}
|
|
179
|
-
type AdditionalInputConfigs = SelectInputConfigs | ToggleGroupConfigs | RangeInputConfigs
|
|
179
|
+
type AdditionalInputConfigs = SelectInputConfigs | ToggleGroupConfigs | RangeInputConfigs;
|
|
180
180
|
interface SelectInputConfigs {
|
|
181
181
|
options?: {
|
|
182
182
|
value: string;
|
|
@@ -199,11 +199,14 @@ interface RangeInputConfigs {
|
|
|
199
199
|
step?: number;
|
|
200
200
|
unit?: string;
|
|
201
201
|
}
|
|
202
|
-
type
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
202
|
+
type WeaverseImage = {
|
|
203
|
+
id: string;
|
|
204
|
+
url: string;
|
|
205
|
+
alt: string;
|
|
206
|
+
width: number;
|
|
207
|
+
height: number;
|
|
208
|
+
};
|
|
209
|
+
type InputType = "article-list" | "collection" | "collection-list" | "color" | "datepicker" | "image" | "map-autocomplete" | "position" | "product" | "product-list" | "range" | "richtext" | "select" | "switch" | "text" | "textarea" | "toggle-group";
|
|
207
210
|
declare global {
|
|
208
211
|
interface Window {
|
|
209
212
|
Blinkloader: any;
|
|
@@ -224,4 +227,4 @@ declare function merge(target: Record<string, any>, source: Record<string, any>)
|
|
|
224
227
|
};
|
|
225
228
|
declare function loadScript(src: string): Promise<unknown>;
|
|
226
229
|
|
|
227
|
-
export { AdditionalInputConfigs, AdvancedGroupType, BasicInput, BreakPoints, ChildElementCSS,
|
|
230
|
+
export { AdditionalInputConfigs, AdvancedGroupType, BasicInput, BreakPoints, ChildElementCSS, ElementCSS, ElementData, ElementSchema, InputType, PlatformTypeEnum, RangeInputConfigs, SelectInputConfigs, ToggleGroupConfigs, ToolbarAction, Weaverse, WeaverseCSSProperties, WeaverseCoreParams, WeaverseElement, WeaverseImage, WeaverseItemStore, WeaverseProjectDataType, isBrowser, isIframe, isReactNative, loadScript, merge };
|
package/dist/index.d.ts
CHANGED
|
@@ -162,7 +162,7 @@ interface BasicInput<ConfigsType = AdditionalInputConfigs> {
|
|
|
162
162
|
/**
|
|
163
163
|
* Only display if condition matches.
|
|
164
164
|
*
|
|
165
|
-
* Format: `
|
|
165
|
+
* Format: `bindingName.conditionalOperator.value`
|
|
166
166
|
*
|
|
167
167
|
* Supported operators: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`
|
|
168
168
|
*
|
|
@@ -172,11 +172,11 @@ interface BasicInput<ConfigsType = AdditionalInputConfigs> {
|
|
|
172
172
|
* `imagesPerRow.gt.1`
|
|
173
173
|
*/
|
|
174
174
|
condition?: string;
|
|
175
|
-
defaultValue?:
|
|
175
|
+
defaultValue?: string | number | boolean | WeaverseImage;
|
|
176
176
|
placeholder?: string;
|
|
177
177
|
helpText?: string;
|
|
178
178
|
}
|
|
179
|
-
type AdditionalInputConfigs = SelectInputConfigs | ToggleGroupConfigs | RangeInputConfigs
|
|
179
|
+
type AdditionalInputConfigs = SelectInputConfigs | ToggleGroupConfigs | RangeInputConfigs;
|
|
180
180
|
interface SelectInputConfigs {
|
|
181
181
|
options?: {
|
|
182
182
|
value: string;
|
|
@@ -199,11 +199,14 @@ interface RangeInputConfigs {
|
|
|
199
199
|
step?: number;
|
|
200
200
|
unit?: string;
|
|
201
201
|
}
|
|
202
|
-
type
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
202
|
+
type WeaverseImage = {
|
|
203
|
+
id: string;
|
|
204
|
+
url: string;
|
|
205
|
+
alt: string;
|
|
206
|
+
width: number;
|
|
207
|
+
height: number;
|
|
208
|
+
};
|
|
209
|
+
type InputType = "article-list" | "collection" | "collection-list" | "color" | "datepicker" | "image" | "map-autocomplete" | "position" | "product" | "product-list" | "range" | "richtext" | "select" | "switch" | "text" | "textarea" | "toggle-group";
|
|
207
210
|
declare global {
|
|
208
211
|
interface Window {
|
|
209
212
|
Blinkloader: any;
|
|
@@ -224,4 +227,4 @@ declare function merge(target: Record<string, any>, source: Record<string, any>)
|
|
|
224
227
|
};
|
|
225
228
|
declare function loadScript(src: string): Promise<unknown>;
|
|
226
229
|
|
|
227
|
-
export { AdditionalInputConfigs, AdvancedGroupType, BasicInput, BreakPoints, ChildElementCSS,
|
|
230
|
+
export { AdditionalInputConfigs, AdvancedGroupType, BasicInput, BreakPoints, ChildElementCSS, ElementCSS, ElementData, ElementSchema, InputType, PlatformTypeEnum, RangeInputConfigs, SelectInputConfigs, ToggleGroupConfigs, ToolbarAction, Weaverse, WeaverseCSSProperties, WeaverseCoreParams, WeaverseElement, WeaverseImage, WeaverseItemStore, WeaverseProjectDataType, isBrowser, isIframe, isReactNative, loadScript, merge };
|
package/package.json
CHANGED