@gem-sdk/core 2.0.0-dev.698 → 2.0.0-dev.700
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.
|
@@ -38,7 +38,7 @@ const componentUsingAdvanced = [
|
|
|
38
38
|
'IconList',
|
|
39
39
|
'ProductVariants'
|
|
40
40
|
];
|
|
41
|
-
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext,
|
|
41
|
+
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, additionalSettings, ...passProps })=>{
|
|
42
42
|
const item = builder[uid];
|
|
43
43
|
const Component = components[item?.tag];
|
|
44
44
|
if (!Component) {
|
|
@@ -77,7 +77,6 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
77
77
|
advanced: item.advanced,
|
|
78
78
|
parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
|
|
79
79
|
pageContext,
|
|
80
|
-
enableLazyLoadImage,
|
|
81
80
|
...additionalSettings,
|
|
82
81
|
...passProps,
|
|
83
82
|
builderAttrs: {
|
|
@@ -91,7 +90,6 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
91
90
|
components,
|
|
92
91
|
customProps,
|
|
93
92
|
pageContext,
|
|
94
|
-
enableLazyLoadImage,
|
|
95
93
|
...additionalSettings
|
|
96
94
|
};
|
|
97
95
|
}),
|
|
@@ -105,7 +103,6 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
105
103
|
customProps,
|
|
106
104
|
parentTag: item.tag,
|
|
107
105
|
pageContext,
|
|
108
|
-
enableLazyLoadImage,
|
|
109
106
|
...additionalSettings
|
|
110
107
|
}))) : ''
|
|
111
108
|
});
|
|
@@ -122,7 +119,6 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
122
119
|
isText: componentTexts.includes(item.tag) ? true : null,
|
|
123
120
|
parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
|
|
124
121
|
pageContext,
|
|
125
|
-
enableLazyLoadImage,
|
|
126
122
|
...passProps,
|
|
127
123
|
builderAttrs: {
|
|
128
124
|
...passProps.builderAttrs
|
|
@@ -144,7 +140,6 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
144
140
|
cssClass: item?.advanced?.cssClass
|
|
145
141
|
},
|
|
146
142
|
pageContext,
|
|
147
|
-
enableLazyLoadImage,
|
|
148
143
|
...additionalSettings,
|
|
149
144
|
...passProps,
|
|
150
145
|
builderAttrs: {
|
|
@@ -158,7 +153,6 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
158
153
|
components,
|
|
159
154
|
customProps,
|
|
160
155
|
pageContext,
|
|
161
|
-
enableLazyLoadImage,
|
|
162
156
|
...additionalSettings
|
|
163
157
|
};
|
|
164
158
|
}),
|
|
@@ -172,7 +166,6 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
172
166
|
customProps,
|
|
173
167
|
parentTag: item.tag,
|
|
174
168
|
pageContext,
|
|
175
|
-
enableLazyLoadImage,
|
|
176
169
|
...additionalSettings
|
|
177
170
|
}))) : ''
|
|
178
171
|
});
|
|
@@ -189,7 +182,6 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
189
182
|
cssClass: item?.advanced?.cssClass
|
|
190
183
|
},
|
|
191
184
|
pageContext,
|
|
192
|
-
enableLazyLoadImage,
|
|
193
185
|
...additionalSettings,
|
|
194
186
|
isText: componentTexts.includes(item.tag) ? true : null,
|
|
195
187
|
style: componentIconList.includes(item.tag) ? style : null,
|
|
@@ -33,9 +33,9 @@ const createShopStoreProvider = (data)=>zustand.createStore((set)=>({
|
|
|
33
33
|
layoutSettings
|
|
34
34
|
});
|
|
35
35
|
},
|
|
36
|
-
updatePriceWithCurrency: (
|
|
36
|
+
updatePriceWithCurrency: (showPriceCurrency)=>{
|
|
37
37
|
set({
|
|
38
|
-
|
|
38
|
+
showPriceCurrency
|
|
39
39
|
});
|
|
40
40
|
},
|
|
41
41
|
changeStorefrontInfo: ({ url, token })=>{
|
|
@@ -34,7 +34,7 @@ const componentUsingAdvanced = [
|
|
|
34
34
|
'IconList',
|
|
35
35
|
'ProductVariants'
|
|
36
36
|
];
|
|
37
|
-
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext,
|
|
37
|
+
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, additionalSettings, ...passProps })=>{
|
|
38
38
|
const item = builder[uid];
|
|
39
39
|
const Component = components[item?.tag];
|
|
40
40
|
if (!Component) {
|
|
@@ -73,7 +73,6 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
73
73
|
advanced: item.advanced,
|
|
74
74
|
parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
|
|
75
75
|
pageContext,
|
|
76
|
-
enableLazyLoadImage,
|
|
77
76
|
...additionalSettings,
|
|
78
77
|
...passProps,
|
|
79
78
|
builderAttrs: {
|
|
@@ -87,7 +86,6 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
87
86
|
components,
|
|
88
87
|
customProps,
|
|
89
88
|
pageContext,
|
|
90
|
-
enableLazyLoadImage,
|
|
91
89
|
...additionalSettings
|
|
92
90
|
};
|
|
93
91
|
}),
|
|
@@ -101,7 +99,6 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
101
99
|
customProps,
|
|
102
100
|
parentTag: item.tag,
|
|
103
101
|
pageContext,
|
|
104
|
-
enableLazyLoadImage,
|
|
105
102
|
...additionalSettings
|
|
106
103
|
}))) : ''
|
|
107
104
|
});
|
|
@@ -118,7 +115,6 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
118
115
|
isText: componentTexts.includes(item.tag) ? true : null,
|
|
119
116
|
parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
|
|
120
117
|
pageContext,
|
|
121
|
-
enableLazyLoadImage,
|
|
122
118
|
...passProps,
|
|
123
119
|
builderAttrs: {
|
|
124
120
|
...passProps.builderAttrs
|
|
@@ -140,7 +136,6 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
140
136
|
cssClass: item?.advanced?.cssClass
|
|
141
137
|
},
|
|
142
138
|
pageContext,
|
|
143
|
-
enableLazyLoadImage,
|
|
144
139
|
...additionalSettings,
|
|
145
140
|
...passProps,
|
|
146
141
|
builderAttrs: {
|
|
@@ -154,7 +149,6 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
154
149
|
components,
|
|
155
150
|
customProps,
|
|
156
151
|
pageContext,
|
|
157
|
-
enableLazyLoadImage,
|
|
158
152
|
...additionalSettings
|
|
159
153
|
};
|
|
160
154
|
}),
|
|
@@ -168,7 +162,6 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
168
162
|
customProps,
|
|
169
163
|
parentTag: item.tag,
|
|
170
164
|
pageContext,
|
|
171
|
-
enableLazyLoadImage,
|
|
172
165
|
...additionalSettings
|
|
173
166
|
}))) : ''
|
|
174
167
|
});
|
|
@@ -185,7 +178,6 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
185
178
|
cssClass: item?.advanced?.cssClass
|
|
186
179
|
},
|
|
187
180
|
pageContext,
|
|
188
|
-
enableLazyLoadImage,
|
|
189
181
|
...additionalSettings,
|
|
190
182
|
isText: componentTexts.includes(item.tag) ? true : null,
|
|
191
183
|
style: componentIconList.includes(item.tag) ? style : null,
|
|
@@ -31,9 +31,9 @@ const createShopStoreProvider = (data)=>createStore((set)=>({
|
|
|
31
31
|
layoutSettings
|
|
32
32
|
});
|
|
33
33
|
},
|
|
34
|
-
updatePriceWithCurrency: (
|
|
34
|
+
updatePriceWithCurrency: (showPriceCurrency)=>{
|
|
35
35
|
set({
|
|
36
|
-
|
|
36
|
+
showPriceCurrency
|
|
37
37
|
});
|
|
38
38
|
},
|
|
39
39
|
changeStorefrontInfo: ({ url, token })=>{
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7387,6 +7387,8 @@ type PageContext = {
|
|
|
7387
7387
|
isTranslateWithLocale?: boolean;
|
|
7388
7388
|
sectionName?: string;
|
|
7389
7389
|
isOptimizePlan?: boolean;
|
|
7390
|
+
showPriceCurrency?: boolean;
|
|
7391
|
+
enableLazyLoadImage?: boolean;
|
|
7390
7392
|
};
|
|
7391
7393
|
type OnlyOne<T, U> = (T & {
|
|
7392
7394
|
[K in keyof U]?: never;
|
|
@@ -34539,11 +34541,10 @@ type Props = {
|
|
|
34539
34541
|
components: Record<string, any>;
|
|
34540
34542
|
extraFiles?: ExtraFiles;
|
|
34541
34543
|
pageContext?: PageContext;
|
|
34542
|
-
enableLazyLoadImage?: boolean;
|
|
34543
34544
|
additionalSettings?: Record<string, any>;
|
|
34544
34545
|
[key: string]: any;
|
|
34545
34546
|
};
|
|
34546
|
-
declare const Render: ({ uid, builder, components, parentId, extraFiles, pageContext,
|
|
34547
|
+
declare const Render: ({ uid, builder, components, parentId, extraFiles, pageContext, additionalSettings, ...passProps }: Props) => {
|
|
34547
34548
|
liquid: string;
|
|
34548
34549
|
extraFiles: ExtraFiles;
|
|
34549
34550
|
};
|
|
@@ -34862,7 +34863,7 @@ type ShopContextProps = {
|
|
|
34862
34863
|
createThemeSectionCount?: number;
|
|
34863
34864
|
plan?: string;
|
|
34864
34865
|
timezone?: string;
|
|
34865
|
-
|
|
34866
|
+
showPriceCurrency?: boolean;
|
|
34866
34867
|
generateContentLimitation?: {
|
|
34867
34868
|
isAllow: boolean;
|
|
34868
34869
|
maxGenerateCount?: number;
|
|
@@ -34883,7 +34884,7 @@ type ShopContextProps = {
|
|
|
34883
34884
|
changeLayoutSettings: (layoutSettings: LayoutSettings) => void;
|
|
34884
34885
|
changeCreateThemeSectionCount: (count: number) => void;
|
|
34885
34886
|
changeShopPlan: (plan: string) => void;
|
|
34886
|
-
updatePriceWithCurrency: (
|
|
34887
|
+
updatePriceWithCurrency: (showPriceCurrency: boolean) => void;
|
|
34887
34888
|
changeLimitCreateThemeSection: (data: {
|
|
34888
34889
|
isLimit?: boolean;
|
|
34889
34890
|
total?: number;
|