@gem-sdk/core 1.58.0-staging.88 → 1.58.0-staging.92
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 componentIconList = [
|
|
|
36
36
|
const componentUsingAdvanced = [
|
|
37
37
|
'IconList'
|
|
38
38
|
];
|
|
39
|
-
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, ...passProps })=>{
|
|
39
|
+
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, enableLazyloadImage, ...passProps })=>{
|
|
40
40
|
const item = builder[uid];
|
|
41
41
|
const Component = components[item?.tag];
|
|
42
42
|
if (!Component) {
|
|
@@ -75,6 +75,7 @@ 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,
|
|
78
79
|
...passProps,
|
|
79
80
|
builderAttrs: {
|
|
80
81
|
...passProps.builderAttrs
|
|
@@ -86,7 +87,8 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
86
87
|
builder,
|
|
87
88
|
components,
|
|
88
89
|
customProps,
|
|
89
|
-
pageContext
|
|
90
|
+
pageContext,
|
|
91
|
+
enableLazyloadImage
|
|
90
92
|
};
|
|
91
93
|
}),
|
|
92
94
|
children: !constant.customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
@@ -98,7 +100,8 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
98
100
|
components,
|
|
99
101
|
customProps,
|
|
100
102
|
parentTag: item.tag,
|
|
101
|
-
pageContext
|
|
103
|
+
pageContext,
|
|
104
|
+
enableLazyloadImage
|
|
102
105
|
}))) : ''
|
|
103
106
|
});
|
|
104
107
|
}, ()=>{
|
|
@@ -114,6 +117,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
114
117
|
isText: componentTexts.includes(item.tag) ? true : null,
|
|
115
118
|
parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
|
|
116
119
|
pageContext,
|
|
120
|
+
enableLazyloadImage,
|
|
117
121
|
...passProps,
|
|
118
122
|
builderAttrs: {
|
|
119
123
|
...passProps.builderAttrs
|
|
@@ -135,6 +139,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
135
139
|
cssClass: item?.advanced?.cssClass
|
|
136
140
|
},
|
|
137
141
|
pageContext,
|
|
142
|
+
enableLazyloadImage,
|
|
138
143
|
...passProps,
|
|
139
144
|
builderAttrs: {
|
|
140
145
|
...passProps.builderAttrs
|
|
@@ -146,7 +151,8 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
146
151
|
builder,
|
|
147
152
|
components,
|
|
148
153
|
customProps,
|
|
149
|
-
pageContext
|
|
154
|
+
pageContext,
|
|
155
|
+
enableLazyloadImage
|
|
150
156
|
};
|
|
151
157
|
}),
|
|
152
158
|
children: !constant.customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
@@ -158,7 +164,8 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
158
164
|
components,
|
|
159
165
|
customProps,
|
|
160
166
|
parentTag: item.tag,
|
|
161
|
-
pageContext
|
|
167
|
+
pageContext,
|
|
168
|
+
enableLazyloadImage
|
|
162
169
|
}))) : ''
|
|
163
170
|
});
|
|
164
171
|
}, ()=>{
|
|
@@ -173,6 +180,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
173
180
|
cssClass: item?.advanced?.cssClass
|
|
174
181
|
},
|
|
175
182
|
pageContext,
|
|
183
|
+
enableLazyloadImage,
|
|
176
184
|
isText: componentTexts.includes(item.tag) ? true : null,
|
|
177
185
|
style: componentIconList.includes(item.tag) ? style : null,
|
|
178
186
|
...passProps,
|
|
@@ -32,7 +32,7 @@ const componentIconList = [
|
|
|
32
32
|
const componentUsingAdvanced = [
|
|
33
33
|
'IconList'
|
|
34
34
|
];
|
|
35
|
-
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, ...passProps })=>{
|
|
35
|
+
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, enableLazyloadImage, ...passProps })=>{
|
|
36
36
|
const item = builder[uid];
|
|
37
37
|
const Component = components[item?.tag];
|
|
38
38
|
if (!Component) {
|
|
@@ -71,6 +71,7 @@ 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,
|
|
74
75
|
...passProps,
|
|
75
76
|
builderAttrs: {
|
|
76
77
|
...passProps.builderAttrs
|
|
@@ -82,7 +83,8 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
82
83
|
builder,
|
|
83
84
|
components,
|
|
84
85
|
customProps,
|
|
85
|
-
pageContext
|
|
86
|
+
pageContext,
|
|
87
|
+
enableLazyloadImage
|
|
86
88
|
};
|
|
87
89
|
}),
|
|
88
90
|
children: !customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
@@ -94,7 +96,8 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
94
96
|
components,
|
|
95
97
|
customProps,
|
|
96
98
|
parentTag: item.tag,
|
|
97
|
-
pageContext
|
|
99
|
+
pageContext,
|
|
100
|
+
enableLazyloadImage
|
|
98
101
|
}))) : ''
|
|
99
102
|
});
|
|
100
103
|
}, ()=>{
|
|
@@ -110,6 +113,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
110
113
|
isText: componentTexts.includes(item.tag) ? true : null,
|
|
111
114
|
parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
|
|
112
115
|
pageContext,
|
|
116
|
+
enableLazyloadImage,
|
|
113
117
|
...passProps,
|
|
114
118
|
builderAttrs: {
|
|
115
119
|
...passProps.builderAttrs
|
|
@@ -131,6 +135,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
131
135
|
cssClass: item?.advanced?.cssClass
|
|
132
136
|
},
|
|
133
137
|
pageContext,
|
|
138
|
+
enableLazyloadImage,
|
|
134
139
|
...passProps,
|
|
135
140
|
builderAttrs: {
|
|
136
141
|
...passProps.builderAttrs
|
|
@@ -142,7 +147,8 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
142
147
|
builder,
|
|
143
148
|
components,
|
|
144
149
|
customProps,
|
|
145
|
-
pageContext
|
|
150
|
+
pageContext,
|
|
151
|
+
enableLazyloadImage
|
|
146
152
|
};
|
|
147
153
|
}),
|
|
148
154
|
children: !customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
@@ -154,7 +160,8 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
154
160
|
components,
|
|
155
161
|
customProps,
|
|
156
162
|
parentTag: item.tag,
|
|
157
|
-
pageContext
|
|
163
|
+
pageContext,
|
|
164
|
+
enableLazyloadImage
|
|
158
165
|
}))) : ''
|
|
159
166
|
});
|
|
160
167
|
}, ()=>{
|
|
@@ -169,6 +176,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
169
176
|
cssClass: item?.advanced?.cssClass
|
|
170
177
|
},
|
|
171
178
|
pageContext,
|
|
179
|
+
enableLazyloadImage,
|
|
172
180
|
isText: componentTexts.includes(item.tag) ? true : null,
|
|
173
181
|
style: componentIconList.includes(item.tag) ? style : null,
|
|
174
182
|
...passProps,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -31316,9 +31316,10 @@ type Props = {
|
|
|
31316
31316
|
components: Record<string, any>;
|
|
31317
31317
|
extraFiles?: ExtraFiles;
|
|
31318
31318
|
pageContext?: PageContext;
|
|
31319
|
+
enableLazyloadImage?: boolean;
|
|
31319
31320
|
[key: string]: any;
|
|
31320
31321
|
};
|
|
31321
|
-
declare const Render: ({ uid, builder, components, parentId, extraFiles, pageContext, ...passProps }: Props) => {
|
|
31322
|
+
declare const Render: ({ uid, builder, components, parentId, extraFiles, pageContext, enableLazyloadImage, ...passProps }: Props) => {
|
|
31322
31323
|
liquid: string;
|
|
31323
31324
|
extraFiles: ExtraFiles;
|
|
31324
31325
|
};
|