@gem-sdk/core 1.63.3 → 1.63.12

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.
@@ -35,7 +35,7 @@ const componentIconList = [
35
35
  const componentUsingAdvanced = [
36
36
  'IconList'
37
37
  ];
38
- const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, ...passProps })=>{
38
+ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, enableLazyloadImage, ...passProps })=>{
39
39
  const item = builder[uid];
40
40
  const Component = components[item?.tag];
41
41
  if (!Component) {
@@ -74,6 +74,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
74
74
  advanced: item.advanced,
75
75
  parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
76
76
  pageContext,
77
+ enableLazyloadImage,
77
78
  ...passProps,
78
79
  builderAttrs: {
79
80
  ...passProps.builderAttrs
@@ -85,7 +86,8 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
85
86
  builder,
86
87
  components,
87
88
  customProps,
88
- pageContext
89
+ pageContext,
90
+ enableLazyloadImage
89
91
  };
90
92
  }),
91
93
  children: !constant.customRenderChildren.includes(item.tag) ? WrapRenderChildren({
@@ -97,7 +99,8 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
97
99
  components,
98
100
  customProps,
99
101
  parentTag: item.tag,
100
- pageContext
102
+ pageContext,
103
+ enableLazyloadImage
101
104
  }))) : ''
102
105
  });
103
106
  }, ()=>{
@@ -113,6 +116,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
113
116
  isText: componentTexts.includes(item.tag) ? true : null,
114
117
  parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
115
118
  pageContext,
119
+ enableLazyloadImage,
116
120
  ...passProps,
117
121
  builderAttrs: {
118
122
  ...passProps.builderAttrs
@@ -134,6 +138,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
134
138
  cssClass: item?.advanced?.cssClass
135
139
  },
136
140
  pageContext,
141
+ enableLazyloadImage,
137
142
  ...passProps,
138
143
  builderAttrs: {
139
144
  ...passProps.builderAttrs
@@ -145,7 +150,8 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
145
150
  builder,
146
151
  components,
147
152
  customProps,
148
- pageContext
153
+ pageContext,
154
+ enableLazyloadImage
149
155
  };
150
156
  }),
151
157
  children: !constant.customRenderChildren.includes(item.tag) ? WrapRenderChildren({
@@ -157,7 +163,8 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
157
163
  components,
158
164
  customProps,
159
165
  parentTag: item.tag,
160
- pageContext
166
+ pageContext,
167
+ enableLazyloadImage
161
168
  }))) : ''
162
169
  });
163
170
  }, ()=>{
@@ -172,6 +179,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
172
179
  cssClass: item?.advanced?.cssClass
173
180
  },
174
181
  pageContext,
182
+ enableLazyloadImage,
175
183
  isText: componentTexts.includes(item.tag) ? true : null,
176
184
  style: componentIconList.includes(item.tag) ? style : null,
177
185
  ...passProps,
@@ -99,7 +99,14 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
99
99
  {
100
100
  return {
101
101
  ...currentSetting,
102
- ['show-views']: appSetting?.showViews
102
+ 'show-views': appSetting?.showViews,
103
+ heading: appSetting?.heading,
104
+ 'template-type': appSetting?.templateType,
105
+ 'title-font-size': parseFloat(appSetting?.titleFontSize),
106
+ 'landscape-padding': parseFloat(appSetting?.landscapePadding),
107
+ 'top-bottom-padding': parseFloat(appSetting?.topBottomPadding),
108
+ 'scroll-video-tile-size': parseFloat(appSetting?.scrollVideoTitleSize),
109
+ 'scroll-video-tile-size-portrait': parseFloat(appSetting?.scrollVideoTitleSizePortrait)
103
110
  };
104
111
  }
105
112
  case 'KachingBundles':
@@ -12,7 +12,7 @@ const listThirdPartyRejectAppBlock = {
12
12
  }
13
13
  };
14
14
  const getAppBlockConfig = (tag, appBlockId, settings)=>{
15
- if (listThirdPartyRejectAppBlock[tag] && eval(listThirdPartyRejectAppBlock[tag].conditionToReject)) {
15
+ if (listThirdPartyRejectAppBlock[tag] && eval(listThirdPartyRejectAppBlock[tag]?.conditionToReject ?? '')) {
16
16
  return;
17
17
  }
18
18
  let widgetType = settings?.widgetType;
@@ -31,7 +31,7 @@ const componentIconList = [
31
31
  const componentUsingAdvanced = [
32
32
  'IconList'
33
33
  ];
34
- const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, ...passProps })=>{
34
+ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, enableLazyloadImage, ...passProps })=>{
35
35
  const item = builder[uid];
36
36
  const Component = components[item?.tag];
37
37
  if (!Component) {
@@ -70,6 +70,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
70
70
  advanced: item.advanced,
71
71
  parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
72
72
  pageContext,
73
+ enableLazyloadImage,
73
74
  ...passProps,
74
75
  builderAttrs: {
75
76
  ...passProps.builderAttrs
@@ -81,7 +82,8 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
81
82
  builder,
82
83
  components,
83
84
  customProps,
84
- pageContext
85
+ pageContext,
86
+ enableLazyloadImage
85
87
  };
86
88
  }),
87
89
  children: !customRenderChildren.includes(item.tag) ? WrapRenderChildren({
@@ -93,7 +95,8 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
93
95
  components,
94
96
  customProps,
95
97
  parentTag: item.tag,
96
- pageContext
98
+ pageContext,
99
+ enableLazyloadImage
97
100
  }))) : ''
98
101
  });
99
102
  }, ()=>{
@@ -109,6 +112,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
109
112
  isText: componentTexts.includes(item.tag) ? true : null,
110
113
  parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
111
114
  pageContext,
115
+ enableLazyloadImage,
112
116
  ...passProps,
113
117
  builderAttrs: {
114
118
  ...passProps.builderAttrs
@@ -130,6 +134,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
130
134
  cssClass: item?.advanced?.cssClass
131
135
  },
132
136
  pageContext,
137
+ enableLazyloadImage,
133
138
  ...passProps,
134
139
  builderAttrs: {
135
140
  ...passProps.builderAttrs
@@ -141,7 +146,8 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
141
146
  builder,
142
147
  components,
143
148
  customProps,
144
- pageContext
149
+ pageContext,
150
+ enableLazyloadImage
145
151
  };
146
152
  }),
147
153
  children: !customRenderChildren.includes(item.tag) ? WrapRenderChildren({
@@ -153,7 +159,8 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
153
159
  components,
154
160
  customProps,
155
161
  parentTag: item.tag,
156
- pageContext
162
+ pageContext,
163
+ enableLazyloadImage
157
164
  }))) : ''
158
165
  });
159
166
  }, ()=>{
@@ -168,6 +175,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
168
175
  cssClass: item?.advanced?.cssClass
169
176
  },
170
177
  pageContext,
178
+ enableLazyloadImage,
171
179
  isText: componentTexts.includes(item.tag) ? true : null,
172
180
  style: componentIconList.includes(item.tag) ? style : null,
173
181
  ...passProps,
@@ -97,7 +97,14 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
97
97
  {
98
98
  return {
99
99
  ...currentSetting,
100
- ['show-views']: appSetting?.showViews
100
+ 'show-views': appSetting?.showViews,
101
+ heading: appSetting?.heading,
102
+ 'template-type': appSetting?.templateType,
103
+ 'title-font-size': parseFloat(appSetting?.titleFontSize),
104
+ 'landscape-padding': parseFloat(appSetting?.landscapePadding),
105
+ 'top-bottom-padding': parseFloat(appSetting?.topBottomPadding),
106
+ 'scroll-video-tile-size': parseFloat(appSetting?.scrollVideoTitleSize),
107
+ 'scroll-video-tile-size-portrait': parseFloat(appSetting?.scrollVideoTitleSizePortrait)
101
108
  };
102
109
  }
103
110
  case 'KachingBundles':
@@ -10,7 +10,7 @@ const listThirdPartyRejectAppBlock = {
10
10
  }
11
11
  };
12
12
  const getAppBlockConfig = (tag, appBlockId, settings)=>{
13
- if (listThirdPartyRejectAppBlock[tag] && eval(listThirdPartyRejectAppBlock[tag].conditionToReject)) {
13
+ if (listThirdPartyRejectAppBlock[tag] && eval(listThirdPartyRejectAppBlock[tag]?.conditionToReject ?? '')) {
14
14
  return;
15
15
  }
16
16
  let widgetType = settings?.widgetType;
@@ -30994,9 +30994,10 @@ type Props = {
30994
30994
  components: Record<string, any>;
30995
30995
  extraFiles?: ExtraFiles;
30996
30996
  pageContext?: PageContext;
30997
+ enableLazyloadImage?: boolean;
30997
30998
  [key: string]: any;
30998
30999
  };
30999
- declare const Render: ({ uid, builder, components, parentId, extraFiles, pageContext, ...passProps }: Props) => {
31000
+ declare const Render: ({ uid, builder, components, parentId, extraFiles, pageContext, enableLazyloadImage, ...passProps }: Props) => {
31000
31001
  liquid: string;
31001
31002
  extraFiles: ExtraFiles;
31002
31003
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.63.3",
3
+ "version": "1.63.12",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",