@gem-sdk/core 2.5.12 → 2.5.15
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
|
@@ -8889,6 +8889,8 @@ type PageContext = {
|
|
|
8889
8889
|
pageType?: string;
|
|
8890
8890
|
isTranslateWithLocale?: boolean;
|
|
8891
8891
|
sectionName?: string;
|
|
8892
|
+
isOptimizePlan?: boolean;
|
|
8893
|
+
enableLazyLoadImage?: boolean;
|
|
8892
8894
|
};
|
|
8893
8895
|
type OnlyOne<T, U> = (T & {
|
|
8894
8896
|
[K in keyof U]?: never;
|
|
@@ -35920,10 +35922,9 @@ type Props = {
|
|
|
35920
35922
|
components: Record<string, any>;
|
|
35921
35923
|
extraFiles?: ExtraFiles;
|
|
35922
35924
|
pageContext?: PageContext;
|
|
35923
|
-
enableLazyloadImage?: boolean;
|
|
35924
35925
|
[key: string]: any;
|
|
35925
35926
|
};
|
|
35926
|
-
declare const Render: ({ uid, builder, components, parentId, extraFiles, pageContext,
|
|
35927
|
+
declare const Render: ({ uid, builder, components, parentId, extraFiles, pageContext, ...passProps }: Props) => {
|
|
35927
35928
|
liquid: string;
|
|
35928
35929
|
extraFiles: ExtraFiles;
|
|
35929
35930
|
};
|