@gem-sdk/core 2.0.0-dev.699 → 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,
|
|
@@ -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,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7388,6 +7388,7 @@ type PageContext = {
|
|
|
7388
7388
|
sectionName?: string;
|
|
7389
7389
|
isOptimizePlan?: boolean;
|
|
7390
7390
|
showPriceCurrency?: boolean;
|
|
7391
|
+
enableLazyLoadImage?: boolean;
|
|
7391
7392
|
};
|
|
7392
7393
|
type OnlyOne<T, U> = (T & {
|
|
7393
7394
|
[K in keyof U]?: never;
|
|
@@ -34540,11 +34541,10 @@ type Props = {
|
|
|
34540
34541
|
components: Record<string, any>;
|
|
34541
34542
|
extraFiles?: ExtraFiles;
|
|
34542
34543
|
pageContext?: PageContext;
|
|
34543
|
-
enableLazyLoadImage?: boolean;
|
|
34544
34544
|
additionalSettings?: Record<string, any>;
|
|
34545
34545
|
[key: string]: any;
|
|
34546
34546
|
};
|
|
34547
|
-
declare const Render: ({ uid, builder, components, parentId, extraFiles, pageContext,
|
|
34547
|
+
declare const Render: ({ uid, builder, components, parentId, extraFiles, pageContext, additionalSettings, ...passProps }: Props) => {
|
|
34548
34548
|
liquid: string;
|
|
34549
34549
|
extraFiles: ExtraFiles;
|
|
34550
34550
|
};
|