@gem-sdk/components 2.0.0-dev.347 → 2.0.0-dev.348

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.
Files changed (58) hide show
  1. package/dist/cjs/countdown-timer/components/Countdown.js +103 -307
  2. package/dist/cjs/countdown-timer/components/Countdown.liquid.js +92 -56
  3. package/dist/cjs/countdown-timer/components/common/getAttr.js +15 -0
  4. package/dist/cjs/countdown-timer/components/common/getClasses.js +69 -0
  5. package/dist/cjs/countdown-timer/components/common/getStyle.js +66 -0
  6. package/dist/cjs/countdown-timer/components/hooks/useCountDownTimer.js +67 -0
  7. package/dist/cjs/countdown-timer/{hooks → components/hooks}/useTimeLeft.js +1 -1
  8. package/dist/cjs/countdown-timer/index.js +1 -1
  9. package/dist/cjs/countdown-timer/setting/Countdown.js +1 -1
  10. package/dist/cjs/countdown-timer/setting/configs/settings.js +1 -1
  11. package/dist/cjs/product/components/ProductProperties/ProductPropertyInput/ProductPropertyInput.liquid.js +1 -1
  12. package/dist/cjs/product/setting/product-properties/configs/settingsV2.js +43 -14
  13. package/dist/cjs/product/setting/product-properties/configs/uiV2.js +5 -2
  14. package/dist/cjs/third-party/components/AliReviews.liquid.js +1 -1
  15. package/dist/cjs/third-party/components/FeraReviews/FeraReviewsSampleContent.js +3 -3
  16. package/dist/cjs/third-party/components/FeraReviews/LiquidTemplateByWidget.js +2 -2
  17. package/dist/cjs/third-party/components/FeraReviews.js +0 -5
  18. package/dist/cjs/third-party/components/GoogleReviewsByReputon.liquid.js +2 -2
  19. package/dist/cjs/third-party/components/JudgemeReviews.liquid.js +5 -5
  20. package/dist/cjs/third-party/components/KachingBundles.liquid.js +1 -1
  21. package/dist/cjs/third-party/components/KingProductOptions.liquid.js +1 -1
  22. package/dist/cjs/third-party/components/LaiProductReviews/LiquidTemplateByWiget.js +3 -3
  23. package/dist/cjs/third-party/components/LooxReviews.liquid.js +1 -1
  24. package/dist/cjs/third-party/components/Ryviu.liquid.js +1 -1
  25. package/dist/cjs/third-party/components/Vitals.liquid.js +2 -2
  26. package/dist/cjs/third-party/setting/TrustshopProductReviews.js +3 -3
  27. package/dist/cjs/third-party/setting/WhatmoreShoppableVideosreel.js +36 -36
  28. package/dist/cjs/third-party/types/index.js +5 -0
  29. package/dist/esm/countdown-timer/components/Countdown.js +104 -308
  30. package/dist/esm/countdown-timer/components/Countdown.liquid.js +93 -57
  31. package/dist/esm/countdown-timer/components/common/getAttr.js +12 -0
  32. package/dist/esm/countdown-timer/components/common/getClasses.js +61 -0
  33. package/dist/esm/countdown-timer/components/common/getStyle.js +60 -0
  34. package/dist/esm/countdown-timer/components/hooks/useCountDownTimer.js +63 -0
  35. package/dist/esm/countdown-timer/{hooks → components/hooks}/useTimeLeft.js +1 -1
  36. package/dist/esm/countdown-timer/index.js +1 -1
  37. package/dist/esm/countdown-timer/setting/Countdown.js +1 -1
  38. package/dist/esm/countdown-timer/setting/configs/settings.js +1 -1
  39. package/dist/esm/product/components/ProductProperties/ProductPropertyInput/ProductPropertyInput.liquid.js +1 -1
  40. package/dist/esm/product/setting/product-properties/configs/settingsV2.js +43 -14
  41. package/dist/esm/product/setting/product-properties/configs/uiV2.js +5 -2
  42. package/dist/esm/third-party/components/AliReviews.liquid.js +1 -1
  43. package/dist/esm/third-party/components/FeraReviews/FeraReviewsSampleContent.js +1 -1
  44. package/dist/esm/third-party/components/FeraReviews/LiquidTemplateByWidget.js +1 -1
  45. package/dist/esm/third-party/components/FeraReviews.js +1 -5
  46. package/dist/esm/third-party/components/GoogleReviewsByReputon.liquid.js +2 -2
  47. package/dist/esm/third-party/components/JudgemeReviews.liquid.js +5 -5
  48. package/dist/esm/third-party/components/KachingBundles.liquid.js +1 -1
  49. package/dist/esm/third-party/components/KingProductOptions.liquid.js +1 -1
  50. package/dist/esm/third-party/components/LaiProductReviews/LiquidTemplateByWiget.js +3 -3
  51. package/dist/esm/third-party/components/LooxReviews.liquid.js +1 -1
  52. package/dist/esm/third-party/components/Ryviu.liquid.js +1 -1
  53. package/dist/esm/third-party/components/Vitals.liquid.js +2 -2
  54. package/dist/esm/third-party/setting/TrustshopProductReviews.js +3 -3
  55. package/dist/esm/third-party/setting/WhatmoreShoppableVideosreel.js +36 -36
  56. package/dist/esm/third-party/types/index.js +5 -1
  57. package/dist/types/index.d.ts +1541 -1531
  58. package/package.json +1 -1
@@ -4,10 +4,6 @@ import { useEditorMode, makeStyleResponsive } from '@gem-sdk/core';
4
4
  import dynamic from 'next/dynamic';
5
5
 
6
6
  const FeraReviewsSampleContent = dynamic(()=>import('./FeraReviews/FeraReviewsSampleContent.js'));
7
- const FERA_VERSION = {
8
- V2: 'V2',
9
- V3: 'V3'
10
- };
11
7
  const FeraReviews = ({ setting })=>{
12
8
  const mode = useEditorMode();
13
9
  return /*#__PURE__*/ jsx("div", {
@@ -20,4 +16,4 @@ const FeraReviews = ({ setting })=>{
20
16
  });
21
17
  };
22
18
 
23
- export { FERA_VERSION, FeraReviews as default };
19
+ export { FeraReviews as default };
@@ -76,8 +76,8 @@ const GoogleReviewsByReputon = ({ setting, advanced })=>{
76
76
  data-type="basic_slide"
77
77
  data-sticky="true"
78
78
  {% endcase %}
79
- <script
80
- type="text/javascript"
79
+ <script
80
+ type="text/javascript"
81
81
  src="https://cdn.grw.reputon.com/assets/widget.js?shop={{shop.domain}}" defer></script>
82
82
  </div>
83
83
  `;
@@ -15,7 +15,7 @@ const JudgemeReviews = ({ setting, advanced })=>{
15
15
  {% when "single_product_preview_badge" %}
16
16
  <div style='{{ jm_style }}' class='jdgm-widget jdgm-preview-badge' data-id='{{ product.id }}'>
17
17
  {{ product.metafields.judgeme.badge }}
18
- </div>
18
+ </div>
19
19
  {% when "review_widget" %}
20
20
  <div style='clear:both'></div>
21
21
  <div id='judgeme_product_reviews' class='jdgm-widget jdgm-review-widget' data-id='{{ product.id }}'>
@@ -23,7 +23,7 @@ const JudgemeReviews = ({ setting, advanced })=>{
23
23
  </div>
24
24
  {% when "reviews_carousel" %}
25
25
  <div class='jdgm-carousel-wrapper'>
26
- {% assign jm_metafields = shop.metafields.judgeme %}
26
+ {% assign jm_metafields = shop.metafields.judgeme %}
27
27
  <div class='jdgm-carousel-title-and-link'>
28
28
  <h2 class='jdgm-carousel-title'>Let customers speak for us</h2>
29
29
  <span class='jdgm-all-reviews-rating-wrapper' href='javascript:void(0)'>
@@ -31,7 +31,7 @@ const JudgemeReviews = ({ setting, advanced })=>{
31
31
  <span style='display: block' class='jdgm-carousel-number-of-reviews' data-number-of-reviews='{{ jm_metafields.all_reviews_count }}'>
32
32
  from {{ shop.metafields.judgeme.all_reviews_count }} reviews
33
33
  </span>
34
- </span>
34
+ </span>
35
35
  </div>
36
36
  {{ jm_metafields.featured_carousel }}
37
37
  </div>
@@ -44,14 +44,14 @@ const JudgemeReviews = ({ setting, advanced })=>{
44
44
  Customers rate us {{ shop.metafields.judgeme.all_reviews_rating | round: 1 }}/5 based on {{ shop.metafields.judgeme.all_reviews_count }} reviews.
45
45
  </span>
46
46
  </a>
47
- </div>
47
+ </div>
48
48
  </div>
49
49
  {% when "section_for_medals" %}
50
50
  {{ shop.metafields.judgeme.medals }}
51
51
  {% when "ugc_media_grid" %}
52
52
  <div class='jdgm-widget jdgm-ugc-media-wrapper'>
53
53
  {{ shop.metafields.judgeme.ugc_media_grid }}
54
- </div>
54
+ </div>
55
55
  {% when "verified_reviews_count_badge" %}
56
56
  <div style='clear:both'></div>
57
57
  <div style='text-align: center'>
@@ -10,7 +10,7 @@ const KachingBundles = ({ setting, advanced })=>{
10
10
  ...makeStyleResponsive('ta', align)
11
11
  }}"
12
12
  >
13
- <kaching-bundle product-id="{{ product.id }}"></kaching-bundle>
13
+ <kaching-bundle product-id="{{ product.id }}"></kaching-bundle>
14
14
  </div>
15
15
  <script>
16
16
  window.kachingBundlesDisableAddToCartHandling = true;
@@ -9,7 +9,7 @@ const KingProductOptions = ({ setting, advanced })=>{
9
9
  ...makeStyleResponsive('ta', align)
10
10
  }}"
11
11
  >
12
- <variant-selects
12
+ <variant-selects
13
13
  id="variant-selects-{{ section.id }}"
14
14
  data-section="{{ section.id }}"
15
15
  data-url="{{ product.url }}"
@@ -45,7 +45,7 @@ const productReviewWidget = `
45
45
  </div>
46
46
  `;
47
47
  const starRatings = `
48
- <div class="scm-reviews-rate" data-rate-version2="{{ product.metafields.scm_review_importer.reviewsData.reviewCountInfo | json | escape}}" data-product-id="{{ product.id }}"></div>
48
+ <div class="scm-reviews-rate" data-rate-version2="{{ product.metafields.scm_review_importer.reviewsData.reviewCountInfo | json | escape}}" data-product-id="{{ product.id }}"></div>
49
49
  `;
50
50
  // Advanced
51
51
  const cardCarousel = `
@@ -78,8 +78,8 @@ const happyCustomerReviews = `
78
78
  {% endunless %}
79
79
  `;
80
80
  const starRatingsInList = `
81
- <div class="scm-reviews-rate"
82
- data-rate-version2="{{ product.metafields.scm_review_importer.reviewsData.reviewCountInfo | json | escape }}"
81
+ <div class="scm-reviews-rate"
82
+ data-rate-version2="{{ product.metafields.scm_review_importer.reviewsData.reviewCountInfo | json | escape }}"
83
83
  data-product-id="{{ product.id }}"></div>
84
84
  `;
85
85
 
@@ -39,7 +39,7 @@ const LooxReviews = ({ setting, advanced })=>{
39
39
  {% if '${widgetType}' == "rating_widget" %}
40
40
  {% if '${showRatingWidgetAllReviews}' == 'true' %}
41
41
  {% if shop.metafields.loox["global_stats"] %}
42
- {% assign looxstats = shop.metafields.loox["global_stats"] | split: ',' %}
42
+ {% assign looxstats = shop.metafields.loox["global_stats"] | split: ',' %}
43
43
  <a href="#looxReviews">
44
44
  <div class="loox-rating" data-rating="{{ looxstats[0] }}" data-raters="{{ looxstats[1] }}"></div>
45
45
  </a>
@@ -12,7 +12,7 @@ const Ryviu = ({ setting, advanced })=>{
12
12
  {% assign widget = '${widgetType}' %}
13
13
  {% case widget %}
14
14
  {% when "reviews" %}
15
- <div class="lt-block-reviews">
15
+ <div class="lt-block-reviews">
16
16
  <ryviu-widget handle="{{product.handle}}" product_id="{{product.id}}" title_product="{{product.title}}" total_meta="{{ product.metafields.ryviu.r_count }}" image_product="{{ product.featured_image.src | img_url: '100x' }}"></ryviu-widget>
17
17
  </div>
18
18
  {% when "badge" %}
@@ -32,9 +32,9 @@ const Vitals = ({ setting, advanced })=>{
32
32
  {% when "stockScarcity" %}
33
33
  <div id="vitals-stock-urgency"></div>
34
34
  {% when "sizeChart" %}
35
- <div id="vitals-size_chart"></div>
35
+ <div id="vitals-size_chart"></div>
36
36
  {% when "upsellBuilderBogo" %}
37
- <div id="vitals-upsell-builder-bogo"></div>
37
+ <div id="vitals-upsell-builder-bogo"></div>
38
38
  {% when "bundleCountdownBox" %}
39
39
  <div id="bundle-countdown_box"></div>
40
40
  {% when "reviewsUnderTitle" %}
@@ -126,12 +126,12 @@ const config = {
126
126
  }
127
127
  },
128
128
  {
129
- type: "control",
129
+ type: 'control',
130
130
  label: {
131
- en: "Choose widget"
131
+ en: 'Choose widget'
132
132
  },
133
133
  setting: {
134
- id: "widgetType"
134
+ id: 'widgetType'
135
135
  }
136
136
  },
137
137
  {
@@ -63,65 +63,65 @@ const config = {
63
63
  default: 'app-block'
64
64
  },
65
65
  {
66
- id: "whatMoreSettings",
67
- type: "group",
66
+ id: 'whatMoreSettings',
67
+ type: 'group',
68
68
  controls: [
69
69
  {
70
- id: "heading",
71
- type: "input",
72
- default: "Watch and Buy"
70
+ id: 'heading',
71
+ type: 'input',
72
+ default: 'Watch and Buy'
73
73
  },
74
74
  {
75
- id: "templateType",
75
+ id: 'templateType',
76
76
  label: 'Choose widget',
77
77
  type: 'select',
78
78
  options: [
79
79
  {
80
- label: "Video-Card",
81
- value: "template-a"
80
+ label: 'Video-Card',
81
+ value: 'template-a'
82
82
  },
83
83
  {
84
- label: "Video-Card feed",
85
- value: "template-feed-a"
84
+ label: 'Video-Card feed',
85
+ value: 'template-feed-a'
86
86
  },
87
87
  {
88
- label: "Video-Card with see-more option.",
89
- value: "template-a-1"
88
+ label: 'Video-Card with see-more option.',
89
+ value: 'template-a-1'
90
90
  },
91
91
  {
92
- label: "Product-Video-Card",
93
- value: "template-b"
92
+ label: 'Product-Video-Card',
93
+ value: 'template-b'
94
94
  },
95
95
  {
96
- label: "Grid Style - Theme Border",
97
- value: "template-c"
96
+ label: 'Grid Style - Theme Border',
97
+ value: 'template-c'
98
98
  },
99
99
  {
100
- label: "Grid Style - No Border",
101
- value: "template-d"
100
+ label: 'Grid Style - No Border',
101
+ value: 'template-d'
102
102
  },
103
103
  {
104
- label: "Single Tile",
105
- value: "template-e"
104
+ label: 'Single Tile',
105
+ value: 'template-e'
106
106
  },
107
107
  {
108
- label: "Video-card with product-info",
109
- value: "template-f"
108
+ label: 'Video-card with product-info',
109
+ value: 'template-f'
110
110
  },
111
111
  {
112
- label: "Video-card with text-overlay",
113
- value: "template-g"
112
+ label: 'Video-card with text-overlay',
113
+ value: 'template-g'
114
114
  },
115
115
  {
116
- label: "Focussed-video-card with product-info",
117
- value: "template-h"
116
+ label: 'Focussed-video-card with product-info',
117
+ value: 'template-h'
118
118
  },
119
119
  {
120
- label: "Video-stories",
121
- value: "template-stories"
120
+ label: 'Video-stories',
121
+ value: 'template-stories'
122
122
  }
123
123
  ],
124
- default: "template-f"
124
+ default: 'template-f'
125
125
  },
126
126
  {
127
127
  id: 'showViews',
@@ -244,24 +244,24 @@ const config = {
244
244
  }
245
245
  },
246
246
  {
247
- type: "group",
247
+ type: 'group',
248
248
  controls: [
249
249
  {
250
- type: "control",
250
+ type: 'control',
251
251
  label: {
252
- en: "Heading"
252
+ en: 'Heading'
253
253
  },
254
254
  setting: {
255
- id: "heading"
255
+ id: 'heading'
256
256
  }
257
257
  },
258
258
  {
259
- type: "control",
259
+ type: 'control',
260
260
  label: {
261
- en: "Tile Type"
261
+ en: 'Tile Type'
262
262
  },
263
263
  setting: {
264
- id: "templateType"
264
+ id: 'templateType'
265
265
  }
266
266
  },
267
267
  {
@@ -2,5 +2,9 @@ const WISER_VERSION = {
2
2
  V1: 'V1',
3
3
  V2: 'V2'
4
4
  };
5
+ const FERA_VERSION = {
6
+ V2: 'V2',
7
+ V3: 'V3'
8
+ };
5
9
 
6
- export { WISER_VERSION };
10
+ export { FERA_VERSION, WISER_VERSION };