@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.
- package/dist/cjs/countdown-timer/components/Countdown.js +103 -307
- package/dist/cjs/countdown-timer/components/Countdown.liquid.js +92 -56
- package/dist/cjs/countdown-timer/components/common/getAttr.js +15 -0
- package/dist/cjs/countdown-timer/components/common/getClasses.js +69 -0
- package/dist/cjs/countdown-timer/components/common/getStyle.js +66 -0
- package/dist/cjs/countdown-timer/components/hooks/useCountDownTimer.js +67 -0
- package/dist/cjs/countdown-timer/{hooks → components/hooks}/useTimeLeft.js +1 -1
- package/dist/cjs/countdown-timer/index.js +1 -1
- package/dist/cjs/countdown-timer/setting/Countdown.js +1 -1
- package/dist/cjs/countdown-timer/setting/configs/settings.js +1 -1
- package/dist/cjs/product/components/ProductProperties/ProductPropertyInput/ProductPropertyInput.liquid.js +1 -1
- package/dist/cjs/product/setting/product-properties/configs/settingsV2.js +43 -14
- package/dist/cjs/product/setting/product-properties/configs/uiV2.js +5 -2
- package/dist/cjs/third-party/components/AliReviews.liquid.js +1 -1
- package/dist/cjs/third-party/components/FeraReviews/FeraReviewsSampleContent.js +3 -3
- package/dist/cjs/third-party/components/FeraReviews/LiquidTemplateByWidget.js +2 -2
- package/dist/cjs/third-party/components/FeraReviews.js +0 -5
- package/dist/cjs/third-party/components/GoogleReviewsByReputon.liquid.js +2 -2
- package/dist/cjs/third-party/components/JudgemeReviews.liquid.js +5 -5
- package/dist/cjs/third-party/components/KachingBundles.liquid.js +1 -1
- package/dist/cjs/third-party/components/KingProductOptions.liquid.js +1 -1
- package/dist/cjs/third-party/components/LaiProductReviews/LiquidTemplateByWiget.js +3 -3
- package/dist/cjs/third-party/components/LooxReviews.liquid.js +1 -1
- package/dist/cjs/third-party/components/Ryviu.liquid.js +1 -1
- package/dist/cjs/third-party/components/Vitals.liquid.js +2 -2
- package/dist/cjs/third-party/setting/TrustshopProductReviews.js +3 -3
- package/dist/cjs/third-party/setting/WhatmoreShoppableVideosreel.js +36 -36
- package/dist/cjs/third-party/types/index.js +5 -0
- package/dist/esm/countdown-timer/components/Countdown.js +104 -308
- package/dist/esm/countdown-timer/components/Countdown.liquid.js +93 -57
- package/dist/esm/countdown-timer/components/common/getAttr.js +12 -0
- package/dist/esm/countdown-timer/components/common/getClasses.js +61 -0
- package/dist/esm/countdown-timer/components/common/getStyle.js +60 -0
- package/dist/esm/countdown-timer/components/hooks/useCountDownTimer.js +63 -0
- package/dist/esm/countdown-timer/{hooks → components/hooks}/useTimeLeft.js +1 -1
- package/dist/esm/countdown-timer/index.js +1 -1
- package/dist/esm/countdown-timer/setting/Countdown.js +1 -1
- package/dist/esm/countdown-timer/setting/configs/settings.js +1 -1
- package/dist/esm/product/components/ProductProperties/ProductPropertyInput/ProductPropertyInput.liquid.js +1 -1
- package/dist/esm/product/setting/product-properties/configs/settingsV2.js +43 -14
- package/dist/esm/product/setting/product-properties/configs/uiV2.js +5 -2
- package/dist/esm/third-party/components/AliReviews.liquid.js +1 -1
- package/dist/esm/third-party/components/FeraReviews/FeraReviewsSampleContent.js +1 -1
- package/dist/esm/third-party/components/FeraReviews/LiquidTemplateByWidget.js +1 -1
- package/dist/esm/third-party/components/FeraReviews.js +1 -5
- package/dist/esm/third-party/components/GoogleReviewsByReputon.liquid.js +2 -2
- package/dist/esm/third-party/components/JudgemeReviews.liquid.js +5 -5
- package/dist/esm/third-party/components/KachingBundles.liquid.js +1 -1
- package/dist/esm/third-party/components/KingProductOptions.liquid.js +1 -1
- package/dist/esm/third-party/components/LaiProductReviews/LiquidTemplateByWiget.js +3 -3
- package/dist/esm/third-party/components/LooxReviews.liquid.js +1 -1
- package/dist/esm/third-party/components/Ryviu.liquid.js +1 -1
- package/dist/esm/third-party/components/Vitals.liquid.js +2 -2
- package/dist/esm/third-party/setting/TrustshopProductReviews.js +3 -3
- package/dist/esm/third-party/setting/WhatmoreShoppableVideosreel.js +36 -36
- package/dist/esm/third-party/types/index.js +5 -1
- package/dist/types/index.d.ts +1541 -1531
- 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 {
|
|
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;
|
|
@@ -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" %}
|
|
@@ -63,65 +63,65 @@ const config = {
|
|
|
63
63
|
default: 'app-block'
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
id:
|
|
67
|
-
type:
|
|
66
|
+
id: 'whatMoreSettings',
|
|
67
|
+
type: 'group',
|
|
68
68
|
controls: [
|
|
69
69
|
{
|
|
70
|
-
id:
|
|
71
|
-
type:
|
|
72
|
-
default:
|
|
70
|
+
id: 'heading',
|
|
71
|
+
type: 'input',
|
|
72
|
+
default: 'Watch and Buy'
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
|
-
id:
|
|
75
|
+
id: 'templateType',
|
|
76
76
|
label: 'Choose widget',
|
|
77
77
|
type: 'select',
|
|
78
78
|
options: [
|
|
79
79
|
{
|
|
80
|
-
label:
|
|
81
|
-
value:
|
|
80
|
+
label: 'Video-Card',
|
|
81
|
+
value: 'template-a'
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
|
-
label:
|
|
85
|
-
value:
|
|
84
|
+
label: 'Video-Card feed',
|
|
85
|
+
value: 'template-feed-a'
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
|
-
label:
|
|
89
|
-
value:
|
|
88
|
+
label: 'Video-Card with see-more option.',
|
|
89
|
+
value: 'template-a-1'
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
|
-
label:
|
|
93
|
-
value:
|
|
92
|
+
label: 'Product-Video-Card',
|
|
93
|
+
value: 'template-b'
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
|
-
label:
|
|
97
|
-
value:
|
|
96
|
+
label: 'Grid Style - Theme Border',
|
|
97
|
+
value: 'template-c'
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
|
-
label:
|
|
101
|
-
value:
|
|
100
|
+
label: 'Grid Style - No Border',
|
|
101
|
+
value: 'template-d'
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
|
-
label:
|
|
105
|
-
value:
|
|
104
|
+
label: 'Single Tile',
|
|
105
|
+
value: 'template-e'
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
|
-
label:
|
|
109
|
-
value:
|
|
108
|
+
label: 'Video-card with product-info',
|
|
109
|
+
value: 'template-f'
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
|
-
label:
|
|
113
|
-
value:
|
|
112
|
+
label: 'Video-card with text-overlay',
|
|
113
|
+
value: 'template-g'
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
|
-
label:
|
|
117
|
-
value:
|
|
116
|
+
label: 'Focussed-video-card with product-info',
|
|
117
|
+
value: 'template-h'
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
|
-
label:
|
|
121
|
-
value:
|
|
120
|
+
label: 'Video-stories',
|
|
121
|
+
value: 'template-stories'
|
|
122
122
|
}
|
|
123
123
|
],
|
|
124
|
-
default:
|
|
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:
|
|
247
|
+
type: 'group',
|
|
248
248
|
controls: [
|
|
249
249
|
{
|
|
250
|
-
type:
|
|
250
|
+
type: 'control',
|
|
251
251
|
label: {
|
|
252
|
-
en:
|
|
252
|
+
en: 'Heading'
|
|
253
253
|
},
|
|
254
254
|
setting: {
|
|
255
|
-
id:
|
|
255
|
+
id: 'heading'
|
|
256
256
|
}
|
|
257
257
|
},
|
|
258
258
|
{
|
|
259
|
-
type:
|
|
259
|
+
type: 'control',
|
|
260
260
|
label: {
|
|
261
|
-
en:
|
|
261
|
+
en: 'Tile Type'
|
|
262
262
|
},
|
|
263
263
|
setting: {
|
|
264
|
-
id:
|
|
264
|
+
id: 'templateType'
|
|
265
265
|
}
|
|
266
266
|
},
|
|
267
267
|
{
|