@gem-sdk/core 2.2.0-staging.56 → 2.2.0-staging.57
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.
|
@@ -36,7 +36,7 @@ const componentUsingAdvanced = [
|
|
|
36
36
|
'IconList',
|
|
37
37
|
'ProductVariants'
|
|
38
38
|
];
|
|
39
|
-
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext,
|
|
39
|
+
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, ...passProps })=>{
|
|
40
40
|
const item = builder[uid];
|
|
41
41
|
const Component = components[item?.tag];
|
|
42
42
|
if (!Component) {
|
|
@@ -75,7 +75,6 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
75
75
|
advanced: item.advanced,
|
|
76
76
|
parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
|
|
77
77
|
pageContext,
|
|
78
|
-
enableLazyLoadImage,
|
|
79
78
|
...passProps,
|
|
80
79
|
builderAttrs: {
|
|
81
80
|
...passProps.builderAttrs
|
|
@@ -87,8 +86,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
87
86
|
builder,
|
|
88
87
|
components,
|
|
89
88
|
customProps,
|
|
90
|
-
pageContext
|
|
91
|
-
enableLazyLoadImage
|
|
89
|
+
pageContext
|
|
92
90
|
};
|
|
93
91
|
}),
|
|
94
92
|
children: !constant.customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
@@ -100,8 +98,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
100
98
|
components,
|
|
101
99
|
customProps,
|
|
102
100
|
parentTag: item.tag,
|
|
103
|
-
pageContext
|
|
104
|
-
enableLazyLoadImage
|
|
101
|
+
pageContext
|
|
105
102
|
}))) : ''
|
|
106
103
|
});
|
|
107
104
|
}, ()=>{
|
|
@@ -117,7 +114,6 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
117
114
|
isText: componentTexts.includes(item.tag) ? true : null,
|
|
118
115
|
parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
|
|
119
116
|
pageContext,
|
|
120
|
-
enableLazyLoadImage,
|
|
121
117
|
...passProps,
|
|
122
118
|
builderAttrs: {
|
|
123
119
|
...passProps.builderAttrs
|
|
@@ -139,7 +135,6 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
139
135
|
cssClass: item?.advanced?.cssClass
|
|
140
136
|
},
|
|
141
137
|
pageContext,
|
|
142
|
-
enableLazyLoadImage,
|
|
143
138
|
...passProps,
|
|
144
139
|
builderAttrs: {
|
|
145
140
|
...passProps.builderAttrs
|
|
@@ -151,8 +146,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
151
146
|
builder,
|
|
152
147
|
components,
|
|
153
148
|
customProps,
|
|
154
|
-
pageContext
|
|
155
|
-
enableLazyLoadImage
|
|
149
|
+
pageContext
|
|
156
150
|
};
|
|
157
151
|
}),
|
|
158
152
|
children: !constant.customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
@@ -164,8 +158,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
164
158
|
components,
|
|
165
159
|
customProps,
|
|
166
160
|
parentTag: item.tag,
|
|
167
|
-
pageContext
|
|
168
|
-
enableLazyLoadImage
|
|
161
|
+
pageContext
|
|
169
162
|
}))) : ''
|
|
170
163
|
});
|
|
171
164
|
}, ()=>{
|
|
@@ -181,7 +174,6 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
181
174
|
cssClass: item?.advanced?.cssClass
|
|
182
175
|
},
|
|
183
176
|
pageContext,
|
|
184
|
-
enableLazyLoadImage,
|
|
185
177
|
isText: componentTexts.includes(item.tag) ? true : null,
|
|
186
178
|
style: componentIconList.includes(item.tag) ? style : null,
|
|
187
179
|
...passProps,
|
|
@@ -32,7 +32,7 @@ const componentUsingAdvanced = [
|
|
|
32
32
|
'IconList',
|
|
33
33
|
'ProductVariants'
|
|
34
34
|
];
|
|
35
|
-
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext,
|
|
35
|
+
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, ...passProps })=>{
|
|
36
36
|
const item = builder[uid];
|
|
37
37
|
const Component = components[item?.tag];
|
|
38
38
|
if (!Component) {
|
|
@@ -71,7 +71,6 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
71
71
|
advanced: item.advanced,
|
|
72
72
|
parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
|
|
73
73
|
pageContext,
|
|
74
|
-
enableLazyLoadImage,
|
|
75
74
|
...passProps,
|
|
76
75
|
builderAttrs: {
|
|
77
76
|
...passProps.builderAttrs
|
|
@@ -83,8 +82,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
83
82
|
builder,
|
|
84
83
|
components,
|
|
85
84
|
customProps,
|
|
86
|
-
pageContext
|
|
87
|
-
enableLazyLoadImage
|
|
85
|
+
pageContext
|
|
88
86
|
};
|
|
89
87
|
}),
|
|
90
88
|
children: !customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
@@ -96,8 +94,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
96
94
|
components,
|
|
97
95
|
customProps,
|
|
98
96
|
parentTag: item.tag,
|
|
99
|
-
pageContext
|
|
100
|
-
enableLazyLoadImage
|
|
97
|
+
pageContext
|
|
101
98
|
}))) : ''
|
|
102
99
|
});
|
|
103
100
|
}, ()=>{
|
|
@@ -113,7 +110,6 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
113
110
|
isText: componentTexts.includes(item.tag) ? true : null,
|
|
114
111
|
parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
|
|
115
112
|
pageContext,
|
|
116
|
-
enableLazyLoadImage,
|
|
117
113
|
...passProps,
|
|
118
114
|
builderAttrs: {
|
|
119
115
|
...passProps.builderAttrs
|
|
@@ -135,7 +131,6 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
135
131
|
cssClass: item?.advanced?.cssClass
|
|
136
132
|
},
|
|
137
133
|
pageContext,
|
|
138
|
-
enableLazyLoadImage,
|
|
139
134
|
...passProps,
|
|
140
135
|
builderAttrs: {
|
|
141
136
|
...passProps.builderAttrs
|
|
@@ -147,8 +142,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
147
142
|
builder,
|
|
148
143
|
components,
|
|
149
144
|
customProps,
|
|
150
|
-
pageContext
|
|
151
|
-
enableLazyLoadImage
|
|
145
|
+
pageContext
|
|
152
146
|
};
|
|
153
147
|
}),
|
|
154
148
|
children: !customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
@@ -160,8 +154,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
160
154
|
components,
|
|
161
155
|
customProps,
|
|
162
156
|
parentTag: item.tag,
|
|
163
|
-
pageContext
|
|
164
|
-
enableLazyLoadImage
|
|
157
|
+
pageContext
|
|
165
158
|
}))) : ''
|
|
166
159
|
});
|
|
167
160
|
}, ()=>{
|
|
@@ -177,7 +170,6 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
177
170
|
cssClass: item?.advanced?.cssClass
|
|
178
171
|
},
|
|
179
172
|
pageContext,
|
|
180
|
-
enableLazyLoadImage,
|
|
181
173
|
isText: componentTexts.includes(item.tag) ? true : null,
|
|
182
174
|
style: componentIconList.includes(item.tag) ? style : null,
|
|
183
175
|
...passProps,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7438,7 +7438,6 @@ type BaseProps<Setting = unknown, Style = unknown, Advanced = AdvancedType> = {
|
|
|
7438
7438
|
styles?: Style;
|
|
7439
7439
|
setting?: Setting;
|
|
7440
7440
|
advanced?: Advanced;
|
|
7441
|
-
enableLazyLoadImage?: boolean;
|
|
7442
7441
|
};
|
|
7443
7442
|
type BasePropsWrap<S = unknown, Style = unknown, A = Record<string, any>> = BaseProps<S, Style, A> & {
|
|
7444
7443
|
builderAttrs?: Record<string, any>;
|
|
@@ -8885,6 +8884,7 @@ type PageContext = {
|
|
|
8885
8884
|
isTranslateWithLocale?: boolean;
|
|
8886
8885
|
sectionName?: string;
|
|
8887
8886
|
isOptimizePlan?: boolean;
|
|
8887
|
+
enableLazyLoadImage?: boolean;
|
|
8888
8888
|
};
|
|
8889
8889
|
type OnlyOne<T, U> = (T & {
|
|
8890
8890
|
[K in keyof U]?: never;
|
|
@@ -35916,10 +35916,9 @@ type Props = {
|
|
|
35916
35916
|
components: Record<string, any>;
|
|
35917
35917
|
extraFiles?: ExtraFiles;
|
|
35918
35918
|
pageContext?: PageContext;
|
|
35919
|
-
enableLazyLoadImage?: boolean;
|
|
35920
35919
|
[key: string]: any;
|
|
35921
35920
|
};
|
|
35922
|
-
declare const Render: ({ uid, builder, components, parentId, extraFiles, pageContext,
|
|
35921
|
+
declare const Render: ({ uid, builder, components, parentId, extraFiles, pageContext, ...passProps }: Props) => {
|
|
35923
35922
|
liquid: string;
|
|
35924
35923
|
extraFiles: ExtraFiles;
|
|
35925
35924
|
};
|