@gem-sdk/core 2.6.0-staging.26 → 2.6.0-staging.29

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, enableLazyloadImage, ...passProps })=>{
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, enableLazyloadImage, ...passProps })=>{
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,
@@ -7488,7 +7488,7 @@ type StampedWidgetTypeV2 = 'main-widget' | 'product-rating-image' | 'badge-doubl
7488
7488
  type LaiProductReviewsWidgetType = 'reviews_widget' | 'star_ratings' | 'homepage_reviews' | 'happy_customer_reviews' | 'star_ratings_in_list' | 'advanced_widget';
7489
7489
  type LaiProductReviewsAdvancedWidgetType = 'cardCarousel' | 'testimonialCarousel' | 'mediaGallery' | 'cardGrid';
7490
7490
  type YotpoReviewsWidgetType = 'reviews' | 'star-rating' | 'reviewHighlights';
7491
- type BogosWidgetType = 'icon' | 'thumnail' | 'slider' | 'message' | 'classic-bundle' | 'quantity-break' | 'mix-match' | 'classic-bundle';
7491
+ type BogosWidgetType = 'icon' | 'thumnail' | 'slider' | 'message' | 'classic-bundle' | 'quantity-break' | 'mix-match' | 'classic-bundle' | 'fbt';
7492
7492
  type PreOrderNowWodWidgetType = 'app-block' | 'popups-block';
7493
7493
  type TagShopWidgetType = 'homeLandingGalleries' | 'productGalleries' | 'tagGalleries';
7494
7494
  type AirProductReview = 'review_box' | 'star_rating' | 'review_carousel';
@@ -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;
@@ -35921,10 +35923,9 @@ type Props = {
35921
35923
  components: Record<string, any>;
35922
35924
  extraFiles?: ExtraFiles;
35923
35925
  pageContext?: PageContext;
35924
- enableLazyloadImage?: boolean;
35925
35926
  [key: string]: any;
35926
35927
  };
35927
- declare const Render: ({ uid, builder, components, parentId, extraFiles, pageContext, enableLazyloadImage, ...passProps }: Props) => {
35928
+ declare const Render: ({ uid, builder, components, parentId, extraFiles, pageContext, ...passProps }: Props) => {
35928
35929
  liquid: string;
35929
35930
  extraFiles: ExtraFiles;
35930
35931
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "2.6.0-staging.26",
3
+ "version": "2.6.0-staging.29",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",