@gem-sdk/core 1.53.0-dev.119 → 1.53.0-dev.123

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, largeComponent = [], sizeLargeComponent = 50, ...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
+ largeComponent,
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
+ largeComponent
89
91
  };
90
92
  }),
91
93
  children: !constant.customRenderChildren.includes(item.tag) ? WrapRenderChildren({
@@ -97,11 +99,12 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
97
99
  components,
98
100
  customProps,
99
101
  parentTag: item.tag,
100
- pageContext
102
+ pageContext,
103
+ largeComponent
101
104
  }))) : ''
102
105
  });
103
106
  }, ()=>{
104
- return Component({
107
+ const liquid = Component({
105
108
  builderProps: {
106
109
  uid,
107
110
  builderData: item
@@ -113,11 +116,16 @@ 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
+ largeComponent,
116
120
  ...passProps,
117
121
  builderAttrs: {
118
122
  ...passProps.builderAttrs
119
123
  }
120
124
  });
125
+ if (isLimitSize(liquid, sizeLargeComponent)) {
126
+ largeComponent.push(item.uid);
127
+ }
128
+ return liquid;
121
129
  });
122
130
  } else {
123
131
  liquid = render.template`<div gp-el-wrapper style="${!componentIconList.includes(item.tag) ? style : ''}" class="${item.uid} ${!item?.childrens?.length && item.tag === 'IconListItemHoz' ? 'hidden' : ''}">
@@ -134,6 +142,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
134
142
  cssClass: item?.advanced?.cssClass
135
143
  },
136
144
  pageContext,
145
+ largeComponent,
137
146
  ...passProps,
138
147
  builderAttrs: {
139
148
  ...passProps.builderAttrs
@@ -145,7 +154,8 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
145
154
  builder,
146
155
  components,
147
156
  customProps,
148
- pageContext
157
+ pageContext,
158
+ largeComponent
149
159
  };
150
160
  }),
151
161
  children: !constant.customRenderChildren.includes(item.tag) ? WrapRenderChildren({
@@ -157,11 +167,12 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
157
167
  components,
158
168
  customProps,
159
169
  parentTag: item.tag,
160
- pageContext
170
+ pageContext,
171
+ largeComponent
161
172
  }))) : ''
162
173
  });
163
174
  }, ()=>{
164
- return Component({
175
+ const liquid = Component({
165
176
  builderProps: {
166
177
  uid,
167
178
  builderData: item
@@ -179,6 +190,10 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
179
190
  ...passProps.builderAttrs
180
191
  }
181
192
  });
193
+ if (isLimitSize(liquid, sizeLargeComponent)) {
194
+ largeComponent.push(item.uid);
195
+ }
196
+ return liquid;
182
197
  })}
183
198
  </div>`;
184
199
  }
@@ -303,6 +318,11 @@ const WrapRenderChildren = ({ uid, customProps }, codes)=>{
303
318
  }
304
319
  return liquid;
305
320
  };
321
+ const isLimitSize = (liquid, size = 50)=>{
322
+ const textEncoder = new TextEncoder();
323
+ const byteSize = textEncoder.encode(liquid).length;
324
+ return byteSize >= size * 1024;
325
+ };
306
326
 
307
327
  exports.RenderChildren = RenderChildren;
308
328
  exports.WrapRenderChildren = WrapRenderChildren;
@@ -144,8 +144,15 @@ const InstasellShoppableInstagramConfig = {
144
144
  appId: '38d643ac-410a-4b2c-a727-6125ff08e444'
145
145
  }
146
146
  };
147
+ const BoldSubscriptionsConfig = {
148
+ BoldSubscriptions: {
149
+ appName: 'bold-subscriptions',
150
+ appId: '9ceb49f0-5fe5-4b5e-943d-f8af8985167d'
151
+ }
152
+ };
147
153
 
148
154
  exports.AppointmentBookingCowlendarConfig = AppointmentBookingCowlendarConfig;
155
+ exports.BoldSubscriptionsConfig = BoldSubscriptionsConfig;
149
156
  exports.BonLoyaltyRewardsReferralsConfig = BonLoyaltyRewardsReferralsConfig;
150
157
  exports.EasyBundleBuilderSkailamaConfig = EasyBundleBuilderSkailamaConfig;
151
158
  exports.FastBundleBundlesDiscountsConfig = FastBundleBundlesDiscountsConfig;
@@ -224,77 +224,77 @@ const YotpoReviews = {
224
224
  const WhatmoreShoppableVideosreel = {
225
225
  WhatmoreShoppableVideosreel: {
226
226
  'app-block': {
227
- "heading": "Watch and Buy",
228
- "template-type": "template-f",
229
- "show-views": "show",
230
- "ui-theme": "round",
231
- "color-primary": "#343434",
232
- "color-secondary": "#343434",
233
- "title-font": "poppins_n4",
234
- "primary-font": "poppins_n4",
235
- "title-font-size": 40,
236
- "title-font-size-portrait": 24,
237
- "landscape-padding": 40,
238
- "top-bottom-padding": 20,
239
- "scroll-video-tile-size": 80,
240
- "scroll-video-tile-size-portrait": 80,
241
- "min-height": 380
227
+ heading: 'Watch and Buy',
228
+ 'template-type': 'template-f',
229
+ 'show-views': 'show',
230
+ 'ui-theme': 'round',
231
+ 'color-primary': '#343434',
232
+ 'color-secondary': '#343434',
233
+ 'title-font': 'poppins_n4',
234
+ 'primary-font': 'poppins_n4',
235
+ 'title-font-size': 40,
236
+ 'title-font-size-portrait': 24,
237
+ 'landscape-padding': 40,
238
+ 'top-bottom-padding': 20,
239
+ 'scroll-video-tile-size': 80,
240
+ 'scroll-video-tile-size-portrait': 80,
241
+ 'min-height': 380
242
242
  },
243
243
  'app-block-banner': {
244
- "template-type": "template-banner-a",
245
- "ui-theme": "round",
246
- "banner-video-tile-size": 80
244
+ 'template-type': 'template-banner-a',
245
+ 'ui-theme': 'round',
246
+ 'banner-video-tile-size': 80
247
247
  },
248
248
  'app-block-collections': {
249
- "collectionHeading": "W",
250
- "template-type": "template-collections-b",
251
- "ui-theme": "round",
252
- "color-secondary": "#343434",
253
- "primary-font": "poppins_n4",
254
- "tile-size": 60,
255
- "tile-size-portrait": 60,
256
- "min-height": 250
249
+ collectionHeading: 'W',
250
+ 'template-type': 'template-collections-b',
251
+ 'ui-theme': 'round',
252
+ 'color-secondary': '#343434',
253
+ 'primary-font': 'poppins_n4',
254
+ 'tile-size': 60,
255
+ 'tile-size-portrait': 60,
256
+ 'min-height': 250
257
257
  },
258
258
  'app-block-stories': {
259
- "template-type": "template-stories-a",
260
- "ui-theme": "round",
261
- "color-primary": "#343434",
262
- "color-secondary": "#343434",
263
- "primary-font": "poppins_n4",
264
- "stories-top-bottom-padding": 0,
265
- "story-tile-size": 40,
266
- "story-tile-size-desktop": 40
259
+ 'template-type': 'template-stories-a',
260
+ 'ui-theme': 'round',
261
+ 'color-primary': '#343434',
262
+ 'color-secondary': '#343434',
263
+ 'primary-font': 'poppins_n4',
264
+ 'stories-top-bottom-padding': 0,
265
+ 'story-tile-size': 40,
266
+ 'story-tile-size-desktop': 40
267
267
  }
268
268
  }
269
269
  };
270
270
  const ProductOptionsCustomizer = {
271
271
  ProductOptionsCustomizer: {
272
272
  'product-page-customizer': {
273
- "pc_container_size": 100,
274
- "pc_show_options_total": "initial",
275
- "pc_customizations_total_text": "Customizations Total:",
276
- "pc_show_preloader": "hide",
277
- "pc_preloader_color": "",
278
- "pc_ignore_redirect_command": true,
279
- "pc_basic_label_text_color": "#000000",
280
- "pc_basic_label_font_size": 14,
281
- "pc_basic_label_bolden": "unset",
282
- "pc_basic_label_space_above": 0,
283
- "pc_basic_option_background_color": "#FFFFFF",
284
- "pc_basic_option_text_color": "#000000",
285
- "pc_basic_option_border_color": "#000000",
286
- "pc_basic_option_border_style": "solid",
287
- "pc_basic_option_border_width": 1,
288
- "pc_basic_option_curve_the_corners": "none",
289
- "pc_basic_option_font_size": 14,
290
- "pc_basic_option_bolden": "none",
291
- "pc_basic_option_width": 100,
292
- "pc_basic_option_space_above": 0,
293
- "pc_basic_option_space_below": 0,
294
- "pc_basic_option_space_inside": 10,
295
- "pc_advanced_custom_css": "",
296
- "pc_advanced_custom_js": "",
297
- "pc_show_image_swatch_preview": false
273
+ pc_container_size: 100,
274
+ pc_show_options_total: 'initial',
275
+ pc_customizations_total_text: 'Customizations Total:',
276
+ pc_show_preloader: 'hide',
277
+ pc_preloader_color: '',
278
+ pc_ignore_redirect_command: true,
279
+ pc_basic_label_text_color: '#000000',
280
+ pc_basic_label_font_size: 14,
281
+ pc_basic_label_bolden: 'unset',
282
+ pc_basic_label_space_above: 0,
283
+ pc_basic_option_background_color: '#FFFFFF',
284
+ pc_basic_option_text_color: '#000000',
285
+ pc_basic_option_border_color: '#000000',
286
+ pc_basic_option_border_style: 'solid',
287
+ pc_basic_option_border_width: 1,
288
+ pc_basic_option_curve_the_corners: 'none',
289
+ pc_basic_option_font_size: 14,
290
+ pc_basic_option_bolden: 'none',
291
+ pc_basic_option_width: 100,
292
+ pc_basic_option_space_above: 0,
293
+ pc_basic_option_space_below: 0,
294
+ pc_basic_option_space_inside: 10,
295
+ pc_advanced_custom_css: '',
296
+ pc_advanced_custom_js: '',
297
+ pc_show_image_swatch_preview: false
298
298
  }
299
299
  }
300
300
  };
@@ -320,6 +320,37 @@ const InstasellShoppableInstagram = {
320
320
  }
321
321
  }
322
322
  };
323
+ const BoldSubscriptions = {
324
+ BoldSubscriptions: {
325
+ 'bsub-widget-block': {
326
+ default_subscribe: true,
327
+ primary_color: '#3b63ff',
328
+ secondary_color: '#7dba63',
329
+ background_color: '#f8f9f9',
330
+ border_radius: 4,
331
+ header_text: 'Purchase Options',
332
+ one_time_text: 'One-time Purchase',
333
+ recurring_text: 'Subscribe and Save',
334
+ prepaid_recurring_text: 'Prepaid Subscribe and Save',
335
+ discount_summary_text: '(Save {discount})',
336
+ discount_summary_plural_text: '(Save up to {discount})',
337
+ frequency_header: 'Delivery Frequency',
338
+ frequency_text: 'delivery',
339
+ prepaid_checkbox_label_text: 'Prepay for subscription',
340
+ billing_frequency_header: 'Billing Frequency',
341
+ billing_frequency_text: '{count} Orders',
342
+ delivery_frequency_discount_text: '({discount} off)',
343
+ billing_frequency_discount_text: '({discount} off)',
344
+ prepaid_total_text: 'Billed {price} today',
345
+ prepaid_continue_as_prepaid_text: 'Prepaid order will auto-renew after {count} orders',
346
+ prepaid_continue_as_standard_text: 'Becomes a regular subscription after {count} orders',
347
+ convertible_header: 'Converts to',
348
+ eligible_for_subscription_header: 'Eligible for Subscription',
349
+ initial_dynamic_discount_text: 'Save {initial_percent_discount}% ({initial_fixed_discount})',
350
+ subsequent_dynamic_discounts_text: '{subsequent_percent_discount}% ({subsequent_fixed_discount}) after {order_count} order(s)'
351
+ }
352
+ }
353
+ };
323
354
  const composeSettingsByWidgetType = {
324
355
  ...InstasellShoppableInstagram,
325
356
  ...SproutPlantTreesGrowSales,
@@ -344,7 +375,8 @@ const composeSettingsByWidgetType = {
344
375
  ...LoyaltyRewardsReferrals,
345
376
  ...SubifySubscriptions,
346
377
  ...SelleasyWidget,
347
- ...YotpoReviews
378
+ ...YotpoReviews,
379
+ ...BoldSubscriptions
348
380
  };
349
381
 
350
382
  exports.composeSettingsByWidgetType = composeSettingsByWidgetType;
@@ -26,7 +26,8 @@ const mapShopifyAppMeta = {
26
26
  ...appConfig.ProductOptionsCustomizerConfig,
27
27
  ...appConfig.AppointmentBookingCowlendarConfig,
28
28
  ...appConfig.SproutPlantTreesGrowSalesConfig,
29
- ...appConfig.InstasellShoppableInstagramConfig
29
+ ...appConfig.InstasellShoppableInstagramConfig,
30
+ ...appConfig.BoldSubscriptionsConfig
30
31
  };
31
32
  const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
32
33
 
@@ -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, largeComponent = [], sizeLargeComponent = 50, ...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
+ largeComponent,
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
+ largeComponent
85
87
  };
86
88
  }),
87
89
  children: !customRenderChildren.includes(item.tag) ? WrapRenderChildren({
@@ -93,11 +95,12 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
93
95
  components,
94
96
  customProps,
95
97
  parentTag: item.tag,
96
- pageContext
98
+ pageContext,
99
+ largeComponent
97
100
  }))) : ''
98
101
  });
99
102
  }, ()=>{
100
- return Component({
103
+ const liquid = Component({
101
104
  builderProps: {
102
105
  uid,
103
106
  builderData: item
@@ -109,11 +112,16 @@ 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
+ largeComponent,
112
116
  ...passProps,
113
117
  builderAttrs: {
114
118
  ...passProps.builderAttrs
115
119
  }
116
120
  });
121
+ if (isLimitSize(liquid, sizeLargeComponent)) {
122
+ largeComponent.push(item.uid);
123
+ }
124
+ return liquid;
117
125
  });
118
126
  } else {
119
127
  liquid = template`<div gp-el-wrapper style="${!componentIconList.includes(item.tag) ? style : ''}" class="${item.uid} ${!item?.childrens?.length && item.tag === 'IconListItemHoz' ? 'hidden' : ''}">
@@ -130,6 +138,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
130
138
  cssClass: item?.advanced?.cssClass
131
139
  },
132
140
  pageContext,
141
+ largeComponent,
133
142
  ...passProps,
134
143
  builderAttrs: {
135
144
  ...passProps.builderAttrs
@@ -141,7 +150,8 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
141
150
  builder,
142
151
  components,
143
152
  customProps,
144
- pageContext
153
+ pageContext,
154
+ largeComponent
145
155
  };
146
156
  }),
147
157
  children: !customRenderChildren.includes(item.tag) ? WrapRenderChildren({
@@ -153,11 +163,12 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
153
163
  components,
154
164
  customProps,
155
165
  parentTag: item.tag,
156
- pageContext
166
+ pageContext,
167
+ largeComponent
157
168
  }))) : ''
158
169
  });
159
170
  }, ()=>{
160
- return Component({
171
+ const liquid = Component({
161
172
  builderProps: {
162
173
  uid,
163
174
  builderData: item
@@ -175,6 +186,10 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
175
186
  ...passProps.builderAttrs
176
187
  }
177
188
  });
189
+ if (isLimitSize(liquid, sizeLargeComponent)) {
190
+ largeComponent.push(item.uid);
191
+ }
192
+ return liquid;
178
193
  })}
179
194
  </div>`;
180
195
  }
@@ -299,5 +314,10 @@ const WrapRenderChildren = ({ uid, customProps }, codes)=>{
299
314
  }
300
315
  return liquid;
301
316
  };
317
+ const isLimitSize = (liquid, size = 50)=>{
318
+ const textEncoder = new TextEncoder();
319
+ const byteSize = textEncoder.encode(liquid).length;
320
+ return byteSize >= size * 1024;
321
+ };
302
322
 
303
323
  export { RenderChildren, WrapRenderChildren, Render as default };
@@ -142,5 +142,11 @@ const InstasellShoppableInstagramConfig = {
142
142
  appId: '38d643ac-410a-4b2c-a727-6125ff08e444'
143
143
  }
144
144
  };
145
+ const BoldSubscriptionsConfig = {
146
+ BoldSubscriptions: {
147
+ appName: 'bold-subscriptions',
148
+ appId: '9ceb49f0-5fe5-4b5e-943d-f8af8985167d'
149
+ }
150
+ };
145
151
 
146
- export { AppointmentBookingCowlendarConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KiteFreeGiftDiscountConfig, LoopSubscriptionsConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, SubifySubscriptionsConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, YotpoReviewsV3UgcConfig };
152
+ export { AppointmentBookingCowlendarConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KiteFreeGiftDiscountConfig, LoopSubscriptionsConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, SubifySubscriptionsConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, YotpoReviewsV3UgcConfig };
@@ -222,77 +222,77 @@ const YotpoReviews = {
222
222
  const WhatmoreShoppableVideosreel = {
223
223
  WhatmoreShoppableVideosreel: {
224
224
  'app-block': {
225
- "heading": "Watch and Buy",
226
- "template-type": "template-f",
227
- "show-views": "show",
228
- "ui-theme": "round",
229
- "color-primary": "#343434",
230
- "color-secondary": "#343434",
231
- "title-font": "poppins_n4",
232
- "primary-font": "poppins_n4",
233
- "title-font-size": 40,
234
- "title-font-size-portrait": 24,
235
- "landscape-padding": 40,
236
- "top-bottom-padding": 20,
237
- "scroll-video-tile-size": 80,
238
- "scroll-video-tile-size-portrait": 80,
239
- "min-height": 380
225
+ heading: 'Watch and Buy',
226
+ 'template-type': 'template-f',
227
+ 'show-views': 'show',
228
+ 'ui-theme': 'round',
229
+ 'color-primary': '#343434',
230
+ 'color-secondary': '#343434',
231
+ 'title-font': 'poppins_n4',
232
+ 'primary-font': 'poppins_n4',
233
+ 'title-font-size': 40,
234
+ 'title-font-size-portrait': 24,
235
+ 'landscape-padding': 40,
236
+ 'top-bottom-padding': 20,
237
+ 'scroll-video-tile-size': 80,
238
+ 'scroll-video-tile-size-portrait': 80,
239
+ 'min-height': 380
240
240
  },
241
241
  'app-block-banner': {
242
- "template-type": "template-banner-a",
243
- "ui-theme": "round",
244
- "banner-video-tile-size": 80
242
+ 'template-type': 'template-banner-a',
243
+ 'ui-theme': 'round',
244
+ 'banner-video-tile-size': 80
245
245
  },
246
246
  'app-block-collections': {
247
- "collectionHeading": "W",
248
- "template-type": "template-collections-b",
249
- "ui-theme": "round",
250
- "color-secondary": "#343434",
251
- "primary-font": "poppins_n4",
252
- "tile-size": 60,
253
- "tile-size-portrait": 60,
254
- "min-height": 250
247
+ collectionHeading: 'W',
248
+ 'template-type': 'template-collections-b',
249
+ 'ui-theme': 'round',
250
+ 'color-secondary': '#343434',
251
+ 'primary-font': 'poppins_n4',
252
+ 'tile-size': 60,
253
+ 'tile-size-portrait': 60,
254
+ 'min-height': 250
255
255
  },
256
256
  'app-block-stories': {
257
- "template-type": "template-stories-a",
258
- "ui-theme": "round",
259
- "color-primary": "#343434",
260
- "color-secondary": "#343434",
261
- "primary-font": "poppins_n4",
262
- "stories-top-bottom-padding": 0,
263
- "story-tile-size": 40,
264
- "story-tile-size-desktop": 40
257
+ 'template-type': 'template-stories-a',
258
+ 'ui-theme': 'round',
259
+ 'color-primary': '#343434',
260
+ 'color-secondary': '#343434',
261
+ 'primary-font': 'poppins_n4',
262
+ 'stories-top-bottom-padding': 0,
263
+ 'story-tile-size': 40,
264
+ 'story-tile-size-desktop': 40
265
265
  }
266
266
  }
267
267
  };
268
268
  const ProductOptionsCustomizer = {
269
269
  ProductOptionsCustomizer: {
270
270
  'product-page-customizer': {
271
- "pc_container_size": 100,
272
- "pc_show_options_total": "initial",
273
- "pc_customizations_total_text": "Customizations Total:",
274
- "pc_show_preloader": "hide",
275
- "pc_preloader_color": "",
276
- "pc_ignore_redirect_command": true,
277
- "pc_basic_label_text_color": "#000000",
278
- "pc_basic_label_font_size": 14,
279
- "pc_basic_label_bolden": "unset",
280
- "pc_basic_label_space_above": 0,
281
- "pc_basic_option_background_color": "#FFFFFF",
282
- "pc_basic_option_text_color": "#000000",
283
- "pc_basic_option_border_color": "#000000",
284
- "pc_basic_option_border_style": "solid",
285
- "pc_basic_option_border_width": 1,
286
- "pc_basic_option_curve_the_corners": "none",
287
- "pc_basic_option_font_size": 14,
288
- "pc_basic_option_bolden": "none",
289
- "pc_basic_option_width": 100,
290
- "pc_basic_option_space_above": 0,
291
- "pc_basic_option_space_below": 0,
292
- "pc_basic_option_space_inside": 10,
293
- "pc_advanced_custom_css": "",
294
- "pc_advanced_custom_js": "",
295
- "pc_show_image_swatch_preview": false
271
+ pc_container_size: 100,
272
+ pc_show_options_total: 'initial',
273
+ pc_customizations_total_text: 'Customizations Total:',
274
+ pc_show_preloader: 'hide',
275
+ pc_preloader_color: '',
276
+ pc_ignore_redirect_command: true,
277
+ pc_basic_label_text_color: '#000000',
278
+ pc_basic_label_font_size: 14,
279
+ pc_basic_label_bolden: 'unset',
280
+ pc_basic_label_space_above: 0,
281
+ pc_basic_option_background_color: '#FFFFFF',
282
+ pc_basic_option_text_color: '#000000',
283
+ pc_basic_option_border_color: '#000000',
284
+ pc_basic_option_border_style: 'solid',
285
+ pc_basic_option_border_width: 1,
286
+ pc_basic_option_curve_the_corners: 'none',
287
+ pc_basic_option_font_size: 14,
288
+ pc_basic_option_bolden: 'none',
289
+ pc_basic_option_width: 100,
290
+ pc_basic_option_space_above: 0,
291
+ pc_basic_option_space_below: 0,
292
+ pc_basic_option_space_inside: 10,
293
+ pc_advanced_custom_css: '',
294
+ pc_advanced_custom_js: '',
295
+ pc_show_image_swatch_preview: false
296
296
  }
297
297
  }
298
298
  };
@@ -318,6 +318,37 @@ const InstasellShoppableInstagram = {
318
318
  }
319
319
  }
320
320
  };
321
+ const BoldSubscriptions = {
322
+ BoldSubscriptions: {
323
+ 'bsub-widget-block': {
324
+ default_subscribe: true,
325
+ primary_color: '#3b63ff',
326
+ secondary_color: '#7dba63',
327
+ background_color: '#f8f9f9',
328
+ border_radius: 4,
329
+ header_text: 'Purchase Options',
330
+ one_time_text: 'One-time Purchase',
331
+ recurring_text: 'Subscribe and Save',
332
+ prepaid_recurring_text: 'Prepaid Subscribe and Save',
333
+ discount_summary_text: '(Save {discount})',
334
+ discount_summary_plural_text: '(Save up to {discount})',
335
+ frequency_header: 'Delivery Frequency',
336
+ frequency_text: 'delivery',
337
+ prepaid_checkbox_label_text: 'Prepay for subscription',
338
+ billing_frequency_header: 'Billing Frequency',
339
+ billing_frequency_text: '{count} Orders',
340
+ delivery_frequency_discount_text: '({discount} off)',
341
+ billing_frequency_discount_text: '({discount} off)',
342
+ prepaid_total_text: 'Billed {price} today',
343
+ prepaid_continue_as_prepaid_text: 'Prepaid order will auto-renew after {count} orders',
344
+ prepaid_continue_as_standard_text: 'Becomes a regular subscription after {count} orders',
345
+ convertible_header: 'Converts to',
346
+ eligible_for_subscription_header: 'Eligible for Subscription',
347
+ initial_dynamic_discount_text: 'Save {initial_percent_discount}% ({initial_fixed_discount})',
348
+ subsequent_dynamic_discounts_text: '{subsequent_percent_discount}% ({subsequent_fixed_discount}) after {order_count} order(s)'
349
+ }
350
+ }
351
+ };
321
352
  const composeSettingsByWidgetType = {
322
353
  ...InstasellShoppableInstagram,
323
354
  ...SproutPlantTreesGrowSales,
@@ -342,7 +373,8 @@ const composeSettingsByWidgetType = {
342
373
  ...LoyaltyRewardsReferrals,
343
374
  ...SubifySubscriptions,
344
375
  ...SelleasyWidget,
345
- ...YotpoReviews
376
+ ...YotpoReviews,
377
+ ...BoldSubscriptions
346
378
  };
347
379
 
348
380
  export { composeSettingsByWidgetType, overrideSettings };
@@ -1,4 +1,4 @@
1
- import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig, ReviewxpoProductReviewsAppConfig, PumperBundlesVolumeDiscountConfig, UnlimitedBundlesDiscountsConfig, KiteFreeGiftDiscountConfig, FastBundleBundlesDiscountsConfig, SimpleBundlesKitsConfig, EasyBundleBuilderSkailamaConfig, PreorderNowPreOrderPqConfig, FlyBundlesUpsellsFbtConfig, JunipProductReviewsUgcConfig, PreorderNowWodPresaleConfig, YotpoReviewsV3UgcConfig, WhatmoreShoppableVideosreelConfig, ProductOptionsCustomizerConfig, AppointmentBookingCowlendarConfig, SproutPlantTreesGrowSalesConfig, InstasellShoppableInstagramConfig } from './appConfig.js';
1
+ import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig, ReviewxpoProductReviewsAppConfig, PumperBundlesVolumeDiscountConfig, UnlimitedBundlesDiscountsConfig, KiteFreeGiftDiscountConfig, FastBundleBundlesDiscountsConfig, SimpleBundlesKitsConfig, EasyBundleBuilderSkailamaConfig, PreorderNowPreOrderPqConfig, FlyBundlesUpsellsFbtConfig, JunipProductReviewsUgcConfig, PreorderNowWodPresaleConfig, YotpoReviewsV3UgcConfig, WhatmoreShoppableVideosreelConfig, ProductOptionsCustomizerConfig, AppointmentBookingCowlendarConfig, SproutPlantTreesGrowSalesConfig, InstasellShoppableInstagramConfig, BoldSubscriptionsConfig } from './appConfig.js';
2
2
 
3
3
  const mapShopifyAppMeta = {
4
4
  ...RechargeSubscriptionsConfig,
@@ -24,7 +24,8 @@ const mapShopifyAppMeta = {
24
24
  ...ProductOptionsCustomizerConfig,
25
25
  ...AppointmentBookingCowlendarConfig,
26
26
  ...SproutPlantTreesGrowSalesConfig,
27
- ...InstasellShoppableInstagramConfig
27
+ ...InstasellShoppableInstagramConfig,
28
+ ...BoldSubscriptionsConfig
28
29
  };
29
30
  const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
30
31
 
@@ -6912,7 +6912,7 @@ type OpinewWidgetType = 'reviews' | 'badge' | 'badgeCollection' | 'carousel' | '
6912
6912
  type OpinewDesignWidgetType = 'opinew_badge_wide_average' | 'opinew_badge_wide' | 'opinew_badge_small';
6913
6913
  type UltimateSalesBoostWidgetType = 'sticker' | 'message' | 'getItByTimer' | 'buyXGetTY' | 'countdownTimer' | 'stockInventoryNumber' | 'trustBadge' | 'advancedTrustBadge';
6914
6914
  type OmnisendWidgetType = 'landing-page' | 'embedded';
6915
- type BoldSubscriptionsWidgetType = 'v1' | 'v2';
6915
+ type BoldSubscriptionsWidgetType = 'v1' | 'bsub-widget-block';
6916
6916
  type PickyStoryWidgetType = 'gem-picky-bundle' | 'gem-picky-kit' | 'gem-picky-buy-the-look' | 'gem-picky-gallery';
6917
6917
  type KlaviyoWidgetType = 'popup_widget' | 'flyout_widget' | 'embed_widget' | 'full_page_widget';
6918
6918
  type ObjectLayoutValue = {
@@ -31149,7 +31149,7 @@ type Props = {
31149
31149
  pageContext?: PageContext;
31150
31150
  [key: string]: any;
31151
31151
  };
31152
- declare const Render: ({ uid, builder, components, parentId, extraFiles, pageContext, ...passProps }: Props) => {
31152
+ declare const Render: ({ uid, builder, components, parentId, extraFiles, pageContext, largeComponent, sizeLargeComponent, ...passProps }: Props) => {
31153
31153
  liquid: string;
31154
31154
  extraFiles: ExtraFiles;
31155
31155
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.53.0-dev.119",
3
+ "version": "1.53.0-dev.123",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",