@gem-sdk/components 2.1.13-staging.2 → 2.1.13-staging.5
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/builder.js +21 -1
- package/dist/cjs/common/const.js +1 -1
- package/dist/cjs/image/components/Image.js +22 -2
- package/dist/cjs/image/components/NoDataImage.js +133 -0
- package/dist/cjs/index.js +20 -0
- package/dist/cjs/index.liquid.js +22 -2
- package/dist/cjs/text/components/Text.js +0 -1
- package/dist/cjs/third-party/components/AlsoBoughtCbb.js +32 -0
- package/dist/cjs/third-party/components/AlsoBoughtCbb.liquid.js +21 -0
- package/dist/cjs/third-party/components/BfSizeChartSizeGuide.js +32 -0
- package/dist/cjs/third-party/components/BfSizeChartSizeGuide.liquid.js +12 -0
- package/dist/cjs/third-party/components/EssentialAnnouncementBar.js +32 -0
- package/dist/cjs/third-party/components/EssentialAnnouncementBar.liquid.js +12 -0
- package/dist/cjs/third-party/components/EssentialCountdownTimerBar.js +32 -0
- package/dist/cjs/third-party/components/EssentialCountdownTimerBar.liquid.js +12 -0
- package/dist/cjs/third-party/components/EstimatedDeliveryDatePlus.js +32 -0
- package/dist/cjs/third-party/components/EstimatedDeliveryDatePlus.liquid.js +12 -0
- package/dist/cjs/third-party/components/GloColorSwatchvariantImage.js +32 -0
- package/dist/cjs/third-party/components/GloColorSwatchvariantImage.liquid.js +12 -0
- package/dist/cjs/third-party/components/HextomFreeShippingBar.js +32 -0
- package/dist/cjs/third-party/components/HextomFreeShippingBar.liquid.js +12 -0
- package/dist/cjs/third-party/components/OkendoReviewsLoyalty.js +32 -0
- package/dist/cjs/third-party/components/OkendoReviewsLoyalty.liquid.js +12 -0
- package/dist/cjs/third-party/components/StellarDeliveryDatePickup.js +32 -0
- package/dist/cjs/third-party/components/StellarDeliveryDatePickup.liquid.js +21 -0
- package/dist/cjs/third-party/components/TrustedsiteTrustBadges.js +32 -0
- package/dist/cjs/third-party/components/TrustedsiteTrustBadges.liquid.js +12 -0
- package/dist/cjs/third-party/configs/AlsoBoughtCbb.js +12 -0
- package/dist/cjs/third-party/configs/BfSizeChartSizeGuide.js +12 -0
- package/dist/cjs/third-party/configs/EssentialAnnouncementBar.js +12 -0
- package/dist/cjs/third-party/configs/EssentialCountdownTimerBar.js +12 -0
- package/dist/cjs/third-party/configs/EstimatedDeliveryDatePlus.js +12 -0
- package/dist/cjs/third-party/configs/GloColorSwatchvariantImage.js +12 -0
- package/dist/cjs/third-party/configs/HextomFreeShippingBar.js +12 -0
- package/dist/cjs/third-party/configs/OkendoReviewsLoyalty.js +12 -0
- package/dist/cjs/third-party/configs/StellarDeliveryDatePickup.js +12 -0
- package/dist/cjs/third-party/configs/TrustedsiteTrustBadges.js +12 -0
- package/dist/cjs/third-party/helpers/thirdParty.js +1 -1
- package/dist/cjs/third-party/next.js +51 -1
- package/dist/cjs/third-party/setting/AlsoBoughtCbb.js +127 -0
- package/dist/cjs/third-party/setting/BfSizeChartSizeGuide.js +131 -0
- package/dist/cjs/third-party/setting/EssentialAnnouncementBar.js +142 -0
- package/dist/cjs/third-party/setting/EssentialCountdownTimerBar.js +142 -0
- package/dist/cjs/third-party/setting/EstimatedDeliveryDatePlus.js +128 -0
- package/dist/cjs/third-party/setting/GloColorSwatchvariantImage.js +152 -0
- package/dist/cjs/third-party/setting/HextomFreeShippingBar.js +128 -0
- package/dist/cjs/third-party/setting/OkendoReviewsLoyalty.js +171 -0
- package/dist/cjs/third-party/setting/StellarDeliveryDatePickup.js +127 -0
- package/dist/cjs/third-party/setting/TrustedsiteTrustBadges.js +177 -0
- package/dist/cjs/third-party/setting/index.js +21 -1
- package/dist/cjs/video/components/HTML5Embed.js +2 -2
- package/dist/cjs/video/components/HTML5Embed.liquid.js +2 -2
- package/dist/esm/builder.js +21 -1
- package/dist/esm/common/const.js +1 -1
- package/dist/esm/image/components/Image.js +23 -3
- package/dist/esm/image/components/NoDataImage.js +129 -0
- package/dist/esm/index.js +10 -0
- package/dist/esm/index.liquid.js +11 -1
- package/dist/esm/text/components/Text.js +0 -1
- package/dist/esm/third-party/components/AlsoBoughtCbb.js +28 -0
- package/dist/esm/third-party/components/AlsoBoughtCbb.liquid.js +17 -0
- package/dist/esm/third-party/components/BfSizeChartSizeGuide.js +28 -0
- package/dist/esm/third-party/components/BfSizeChartSizeGuide.liquid.js +8 -0
- package/dist/esm/third-party/components/EssentialAnnouncementBar.js +28 -0
- package/dist/esm/third-party/components/EssentialAnnouncementBar.liquid.js +8 -0
- package/dist/esm/third-party/components/EssentialCountdownTimerBar.js +28 -0
- package/dist/esm/third-party/components/EssentialCountdownTimerBar.liquid.js +8 -0
- package/dist/esm/third-party/components/EstimatedDeliveryDatePlus.js +28 -0
- package/dist/esm/third-party/components/EstimatedDeliveryDatePlus.liquid.js +8 -0
- package/dist/esm/third-party/components/GloColorSwatchvariantImage.js +28 -0
- package/dist/esm/third-party/components/GloColorSwatchvariantImage.liquid.js +8 -0
- package/dist/esm/third-party/components/HextomFreeShippingBar.js +28 -0
- package/dist/esm/third-party/components/HextomFreeShippingBar.liquid.js +8 -0
- package/dist/esm/third-party/components/OkendoReviewsLoyalty.js +28 -0
- package/dist/esm/third-party/components/OkendoReviewsLoyalty.liquid.js +8 -0
- package/dist/esm/third-party/components/StellarDeliveryDatePickup.js +28 -0
- package/dist/esm/third-party/components/StellarDeliveryDatePickup.liquid.js +17 -0
- package/dist/esm/third-party/components/TrustedsiteTrustBadges.js +28 -0
- package/dist/esm/third-party/components/TrustedsiteTrustBadges.liquid.js +8 -0
- package/dist/esm/third-party/configs/AlsoBoughtCbb.js +8 -0
- package/dist/esm/third-party/configs/BfSizeChartSizeGuide.js +8 -0
- package/dist/esm/third-party/configs/EssentialAnnouncementBar.js +8 -0
- package/dist/esm/third-party/configs/EssentialCountdownTimerBar.js +8 -0
- package/dist/esm/third-party/configs/EstimatedDeliveryDatePlus.js +8 -0
- package/dist/esm/third-party/configs/GloColorSwatchvariantImage.js +8 -0
- package/dist/esm/third-party/configs/HextomFreeShippingBar.js +8 -0
- package/dist/esm/third-party/configs/OkendoReviewsLoyalty.js +8 -0
- package/dist/esm/third-party/configs/StellarDeliveryDatePickup.js +8 -0
- package/dist/esm/third-party/configs/TrustedsiteTrustBadges.js +8 -0
- package/dist/esm/third-party/helpers/thirdParty.js +1 -1
- package/dist/esm/third-party/next.js +51 -1
- package/dist/esm/third-party/setting/AlsoBoughtCbb.js +123 -0
- package/dist/esm/third-party/setting/BfSizeChartSizeGuide.js +127 -0
- package/dist/esm/third-party/setting/EssentialAnnouncementBar.js +138 -0
- package/dist/esm/third-party/setting/EssentialCountdownTimerBar.js +138 -0
- package/dist/esm/third-party/setting/EstimatedDeliveryDatePlus.js +124 -0
- package/dist/esm/third-party/setting/GloColorSwatchvariantImage.js +148 -0
- package/dist/esm/third-party/setting/HextomFreeShippingBar.js +124 -0
- package/dist/esm/third-party/setting/OkendoReviewsLoyalty.js +167 -0
- package/dist/esm/third-party/setting/StellarDeliveryDatePickup.js +123 -0
- package/dist/esm/third-party/setting/TrustedsiteTrustBadges.js +173 -0
- package/dist/esm/third-party/setting/index.js +224 -204
- package/dist/esm/video/components/HTML5Embed.js +2 -2
- package/dist/esm/video/components/HTML5Embed.liquid.js +2 -2
- package/dist/types/index.d.ts +164 -2
- package/package.json +2 -2
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var OkendoReviewsLoyalty = require('../configs/OkendoReviewsLoyalty.js');
|
|
6
|
+
|
|
7
|
+
const config = {
|
|
8
|
+
tag: OkendoReviewsLoyalty.default.tag,
|
|
9
|
+
label: OkendoReviewsLoyalty.default.label,
|
|
10
|
+
icon: '<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/fe55626671bd5da73785c606c2b0752f/icon/CNKRrIWatfoCEAE=.png">',
|
|
11
|
+
editorConfigs: {
|
|
12
|
+
placeholder: {
|
|
13
|
+
flowTag: [
|
|
14
|
+
'Product'
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
component: {
|
|
18
|
+
isThirdParty: true
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
presets: [
|
|
22
|
+
{
|
|
23
|
+
id: OkendoReviewsLoyalty.default.id,
|
|
24
|
+
name: {
|
|
25
|
+
en: OkendoReviewsLoyalty.default.label
|
|
26
|
+
},
|
|
27
|
+
hideTextContent: true,
|
|
28
|
+
icon: {
|
|
29
|
+
desktop: `<div class="w-full flex flex-col items-center">
|
|
30
|
+
<img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/fe55626671bd5da73785c606c2b0752f/icon/CNKRrIWatfoCEAE=.png">
|
|
31
|
+
<span class="preset-item-title">Okendo: Reviews & Loyalty</span>
|
|
32
|
+
</div>`
|
|
33
|
+
},
|
|
34
|
+
components: [
|
|
35
|
+
{
|
|
36
|
+
tag: OkendoReviewsLoyalty.default.tag
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
settings: [
|
|
42
|
+
{
|
|
43
|
+
id: 'setting',
|
|
44
|
+
controls: [
|
|
45
|
+
{
|
|
46
|
+
id: 'appBlockId',
|
|
47
|
+
type: 'input',
|
|
48
|
+
default: ''
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: 'productHandle',
|
|
52
|
+
type: 'product-handle',
|
|
53
|
+
hide: true
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: 'widgetType',
|
|
57
|
+
label: 'Choose widget',
|
|
58
|
+
type: 'select',
|
|
59
|
+
options: [
|
|
60
|
+
{
|
|
61
|
+
label: 'Reviews Widget',
|
|
62
|
+
value: 'reviews-widget'
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
label: 'Reviews Badge',
|
|
66
|
+
value: 'reviews-badge'
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
label: 'Media Carousel',
|
|
70
|
+
value: 'media-carousel'
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
label: 'Media Grid',
|
|
74
|
+
value: 'media-grid'
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
label: 'Reviews Carousel',
|
|
78
|
+
value: 'reviews-carousel'
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
label: 'Star Rating',
|
|
82
|
+
value: 'star-rating'
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
label: 'Questions Widget',
|
|
86
|
+
value: 'questions-widget'
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
default: 'reviews-widget'
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
id: 'install',
|
|
93
|
+
type: 'open-link',
|
|
94
|
+
target: '_blank',
|
|
95
|
+
linkType: 'install',
|
|
96
|
+
href: 'https://apps.shopify.com/okendo-reviews?utm_source=gempages',
|
|
97
|
+
appName: OkendoReviewsLoyalty.default.label
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
id: 'openApp',
|
|
101
|
+
type: 'open-link',
|
|
102
|
+
target: '_blank',
|
|
103
|
+
linkType: 'openApp',
|
|
104
|
+
href: 'https://admin.shopify.com/?redirect=/apps/okendo-reviews',
|
|
105
|
+
appName: OkendoReviewsLoyalty.default.label
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
id: 'align',
|
|
109
|
+
label: 'Alignment',
|
|
110
|
+
type: 'segment',
|
|
111
|
+
options: [
|
|
112
|
+
{
|
|
113
|
+
label: 'Left',
|
|
114
|
+
value: 'left',
|
|
115
|
+
type: 'align'
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
label: 'Center',
|
|
119
|
+
value: 'center',
|
|
120
|
+
type: 'align'
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
label: 'Right',
|
|
124
|
+
value: 'right',
|
|
125
|
+
type: 'align'
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
devices: {
|
|
129
|
+
desktop: {
|
|
130
|
+
default: 'left'
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
ui: [
|
|
138
|
+
{
|
|
139
|
+
type: 'control',
|
|
140
|
+
setting: {
|
|
141
|
+
id: 'install'
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
type: 'control',
|
|
146
|
+
label: {
|
|
147
|
+
en: 'Choose Widget'
|
|
148
|
+
},
|
|
149
|
+
setting: {
|
|
150
|
+
id: 'widgetType'
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
type: 'control',
|
|
155
|
+
setting: {
|
|
156
|
+
id: 'openApp'
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
type: 'control',
|
|
161
|
+
label: {
|
|
162
|
+
en: 'Align'
|
|
163
|
+
},
|
|
164
|
+
setting: {
|
|
165
|
+
id: 'align'
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
exports.default = config;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var StellarDeliveryDatePickup = require('../configs/StellarDeliveryDatePickup.js');
|
|
6
|
+
|
|
7
|
+
const config = {
|
|
8
|
+
tag: StellarDeliveryDatePickup.default.tag,
|
|
9
|
+
label: StellarDeliveryDatePickup.default.label,
|
|
10
|
+
icon: '<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/568eee7424b5f70382db5178dd815f6a/icon/CMTw3rn0lu8CEAE=.jpg">',
|
|
11
|
+
editorConfigs: {
|
|
12
|
+
placeholder: {
|
|
13
|
+
flowPage: 'GP_PRODUCT'
|
|
14
|
+
},
|
|
15
|
+
component: {
|
|
16
|
+
isThirdParty: true
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
presets: [
|
|
20
|
+
{
|
|
21
|
+
id: StellarDeliveryDatePickup.default.id,
|
|
22
|
+
name: {
|
|
23
|
+
en: StellarDeliveryDatePickup.default.label
|
|
24
|
+
},
|
|
25
|
+
hideTextContent: true,
|
|
26
|
+
icon: {
|
|
27
|
+
desktop: `<div class="w-full flex flex-col items-center">
|
|
28
|
+
<img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/568eee7424b5f70382db5178dd815f6a/icon/CMTw3rn0lu8CEAE=.jpg">
|
|
29
|
+
<span class="preset-item-title">Stellar Delivery Date & Pickup</span>
|
|
30
|
+
</div>`
|
|
31
|
+
},
|
|
32
|
+
components: [
|
|
33
|
+
{
|
|
34
|
+
tag: StellarDeliveryDatePickup.default.tag
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
settings: [
|
|
40
|
+
{
|
|
41
|
+
id: 'setting',
|
|
42
|
+
controls: [
|
|
43
|
+
{
|
|
44
|
+
id: 'install',
|
|
45
|
+
type: 'open-link',
|
|
46
|
+
target: '_blank',
|
|
47
|
+
linkType: 'install',
|
|
48
|
+
href: 'https://apps.shopify.com/order-delivery-date-by-identixweb?utm_source=gempages',
|
|
49
|
+
appName: StellarDeliveryDatePickup.default.label
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: 'guideId',
|
|
53
|
+
type: 'group'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: 'openApp',
|
|
57
|
+
type: 'open-link',
|
|
58
|
+
target: '_blank',
|
|
59
|
+
linkType: 'openApp',
|
|
60
|
+
href: 'https://admin.shopify.com/?redirect=/apps/order-delivery-date-by-identixweb',
|
|
61
|
+
appName: StellarDeliveryDatePickup.default.label
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: 'align',
|
|
65
|
+
label: 'Alignment',
|
|
66
|
+
type: 'segment',
|
|
67
|
+
options: [
|
|
68
|
+
{
|
|
69
|
+
label: 'Left',
|
|
70
|
+
value: 'left',
|
|
71
|
+
type: 'align'
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
label: 'Center',
|
|
75
|
+
value: 'center',
|
|
76
|
+
type: 'align'
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: 'Right',
|
|
80
|
+
value: 'right',
|
|
81
|
+
type: 'align'
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
devices: {
|
|
85
|
+
desktop: {
|
|
86
|
+
default: 'left'
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
ui: [
|
|
94
|
+
{
|
|
95
|
+
type: 'control',
|
|
96
|
+
setting: {
|
|
97
|
+
id: 'install'
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
type: 'control',
|
|
102
|
+
info: {
|
|
103
|
+
en: '<span>To make this element work, copy the class <strong>.gp-integration-stellar-delivery__position</strong> and paste it into the Selector input field in the Run Wizard settings. For more details, check the instructions on<a style="text-decoration: none; color: #8AA4FF" href="https://www.identixweb.com/helpdesk/order-delivery-date/general-settings/setup-wizard/" target="_blank"> how to set up the Run Wizard.</a></span>'
|
|
104
|
+
},
|
|
105
|
+
setting: {
|
|
106
|
+
id: 'guideId'
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
type: 'control',
|
|
111
|
+
setting: {
|
|
112
|
+
id: 'openApp'
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
type: 'control',
|
|
117
|
+
label: {
|
|
118
|
+
en: 'Align'
|
|
119
|
+
},
|
|
120
|
+
setting: {
|
|
121
|
+
id: 'align'
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
exports.default = config;
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var TrustedsiteTrustBadges = require('../configs/TrustedsiteTrustBadges.js');
|
|
6
|
+
|
|
7
|
+
const config = {
|
|
8
|
+
tag: TrustedsiteTrustBadges.default.tag,
|
|
9
|
+
label: TrustedsiteTrustBadges.default.label,
|
|
10
|
+
icon: '<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/38fdc008d044b95511d73b59ae0cc83f/icon/CIX8yLf0lu8CEAE=.png">',
|
|
11
|
+
editorConfigs: {
|
|
12
|
+
component: {
|
|
13
|
+
isThirdParty: true
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
presets: [
|
|
17
|
+
{
|
|
18
|
+
id: TrustedsiteTrustBadges.default.id,
|
|
19
|
+
name: {
|
|
20
|
+
en: TrustedsiteTrustBadges.default.label
|
|
21
|
+
},
|
|
22
|
+
hideTextContent: true,
|
|
23
|
+
icon: {
|
|
24
|
+
desktop: `<div class="w-full flex flex-col items-center">
|
|
25
|
+
<img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/38fdc008d044b95511d73b59ae0cc83f/icon/CIX8yLf0lu8CEAE=.png">
|
|
26
|
+
<span class="preset-item-title">TrustedSite ‑ Trust Badges</span>
|
|
27
|
+
</div>`
|
|
28
|
+
},
|
|
29
|
+
components: [
|
|
30
|
+
{
|
|
31
|
+
tag: TrustedsiteTrustBadges.default.tag
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
settings: [
|
|
37
|
+
{
|
|
38
|
+
id: 'setting',
|
|
39
|
+
controls: [
|
|
40
|
+
{
|
|
41
|
+
id: 'appBlockId',
|
|
42
|
+
type: 'input',
|
|
43
|
+
default: ''
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: 'widgetType',
|
|
47
|
+
label: 'Choose widget',
|
|
48
|
+
type: 'select',
|
|
49
|
+
options: [
|
|
50
|
+
{
|
|
51
|
+
label: 'Engagement',
|
|
52
|
+
value: 'engagement'
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
default: 'engagement'
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
id: 'trustId',
|
|
59
|
+
label: 'Trustmark Type',
|
|
60
|
+
type: 'select',
|
|
61
|
+
options: [
|
|
62
|
+
{
|
|
63
|
+
label: 'Certified Secure',
|
|
64
|
+
value: '202'
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
label: 'Secure Form',
|
|
68
|
+
value: '211'
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
label: 'Secure Checkout',
|
|
72
|
+
value: '212'
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
label: 'Secure Login',
|
|
76
|
+
value: '213'
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: 'Issue-Free Orders',
|
|
80
|
+
value: '214'
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
label: 'Spam-Free',
|
|
84
|
+
value: '216'
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
label: 'Banner',
|
|
88
|
+
value: '1001'
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
label: 'Testimonial',
|
|
92
|
+
value: '1002'
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
default: '202'
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
id: 'install',
|
|
99
|
+
type: 'open-link',
|
|
100
|
+
target: '_blank',
|
|
101
|
+
linkType: 'install',
|
|
102
|
+
href: 'https://apps.shopify.com/mcafee-secure?utm_source=gempages',
|
|
103
|
+
appName: TrustedsiteTrustBadges.default.label
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
id: 'openApp',
|
|
107
|
+
type: 'open-link',
|
|
108
|
+
target: '_blank',
|
|
109
|
+
linkType: 'openApp',
|
|
110
|
+
href: 'https://www.trustedsite.com/',
|
|
111
|
+
appName: TrustedsiteTrustBadges.default.label
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
id: 'align',
|
|
115
|
+
label: 'Alignment',
|
|
116
|
+
type: 'segment',
|
|
117
|
+
options: [
|
|
118
|
+
{
|
|
119
|
+
label: 'Left',
|
|
120
|
+
value: 'left',
|
|
121
|
+
type: 'align'
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
label: 'Center',
|
|
125
|
+
value: 'center',
|
|
126
|
+
type: 'align'
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
label: 'Right',
|
|
130
|
+
value: 'right',
|
|
131
|
+
type: 'align'
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
devices: {
|
|
135
|
+
desktop: {
|
|
136
|
+
default: 'left'
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
ui: [
|
|
144
|
+
{
|
|
145
|
+
type: 'control',
|
|
146
|
+
setting: {
|
|
147
|
+
id: 'install'
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
type: 'control',
|
|
152
|
+
setting: {
|
|
153
|
+
id: 'trustId'
|
|
154
|
+
},
|
|
155
|
+
label: {
|
|
156
|
+
en: 'Trustmark Type'
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
type: 'control',
|
|
161
|
+
setting: {
|
|
162
|
+
id: 'openApp'
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
type: 'control',
|
|
167
|
+
label: {
|
|
168
|
+
en: 'Align'
|
|
169
|
+
},
|
|
170
|
+
setting: {
|
|
171
|
+
id: 'align'
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
exports.default = config;
|
|
@@ -103,11 +103,26 @@ var TrustreviewsProductReviews = require('./TrustreviewsProductReviews.js');
|
|
|
103
103
|
var MyappgurusProductReviews = require('./MyappgurusProductReviews.js');
|
|
104
104
|
var HulkProductOptions = require('./HulkProductOptions.js');
|
|
105
105
|
var TrustshopProductReviews = require('./TrustshopProductReviews.js');
|
|
106
|
+
var StellarDeliveryDatePickup = require('./StellarDeliveryDatePickup.js');
|
|
107
|
+
var EssentialCountdownTimerBar = require('./EssentialCountdownTimerBar.js');
|
|
108
|
+
var EssentialAnnouncementBar = require('./EssentialAnnouncementBar.js');
|
|
109
|
+
var OkendoReviewsLoyalty = require('./OkendoReviewsLoyalty.js');
|
|
110
|
+
var EstimatedDeliveryDatePlus = require('./EstimatedDeliveryDatePlus.js');
|
|
106
111
|
var HextomCountdownTimerBar = require('./HextomCountdownTimerBar.js');
|
|
107
112
|
var TrustBadgesBear = require('./TrustBadgesBear.js');
|
|
113
|
+
var TrustedsiteTrustBadges = require('./TrustedsiteTrustBadges.js');
|
|
114
|
+
var GloColorSwatchvariantImage = require('./GloColorSwatchvariantImage.js');
|
|
115
|
+
var BfSizeChartSizeGuide = require('./BfSizeChartSizeGuide.js');
|
|
116
|
+
var AlsoBoughtCbb = require('./AlsoBoughtCbb.js');
|
|
117
|
+
var HextomFreeShippingBar = require('./HextomFreeShippingBar.js');
|
|
108
118
|
|
|
109
119
|
var index = {
|
|
110
120
|
HextomCountdownTimerBar: HextomCountdownTimerBar.default,
|
|
121
|
+
EstimatedDeliveryDatePlus: EstimatedDeliveryDatePlus.default,
|
|
122
|
+
OkendoReviewsLoyalty: OkendoReviewsLoyalty.default,
|
|
123
|
+
EssentialAnnouncementBar: EssentialAnnouncementBar.default,
|
|
124
|
+
EssentialCountdownTimerBar: EssentialCountdownTimerBar.default,
|
|
125
|
+
StellarDeliveryDatePickup: StellarDeliveryDatePickup.default,
|
|
111
126
|
TrustshopProductReviews: TrustshopProductReviews.default,
|
|
112
127
|
HulkProductOptions: HulkProductOptions.default,
|
|
113
128
|
TrustreviewsProductReviews: TrustreviewsProductReviews.default,
|
|
@@ -209,7 +224,12 @@ var index = {
|
|
|
209
224
|
RequestQuoteHidePrice: RequestQuoteHidePrice.default,
|
|
210
225
|
BirdChime: BirdChime.default,
|
|
211
226
|
FordeerProductLabels: FordeerProductLabels.default,
|
|
212
|
-
TrustBadgesBear: TrustBadgesBear.default
|
|
227
|
+
TrustBadgesBear: TrustBadgesBear.default,
|
|
228
|
+
TrustedsiteTrustBadges: TrustedsiteTrustBadges.default,
|
|
229
|
+
GloColorSwatchvariantImage: GloColorSwatchvariantImage.default,
|
|
230
|
+
BfSizeChartSizeGuide: BfSizeChartSizeGuide.default,
|
|
231
|
+
AlsoBoughtCbb: AlsoBoughtCbb.default,
|
|
232
|
+
HextomFreeShippingBar: HextomFreeShippingBar.default
|
|
213
233
|
};
|
|
214
234
|
|
|
215
235
|
exports.default = index;
|
|
@@ -51,14 +51,14 @@ const HTML5Embed = (props)=>{
|
|
|
51
51
|
}),
|
|
52
52
|
props.thumbnail && showThumbnail && /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
53
53
|
role: "presentation",
|
|
54
|
-
className: "gp-absolute gp-top-0 gp-left-0 gp-w-full",
|
|
54
|
+
className: "gp-absolute gp-top-0 gp-left-0 gp-w-full gp-h-full",
|
|
55
55
|
onClick: playVideoAndTurnOffThumbnail,
|
|
56
56
|
style: props.style,
|
|
57
57
|
children: [
|
|
58
58
|
/*#__PURE__*/ jsxRuntime.jsx("img", {
|
|
59
59
|
id: "video-thumbnail",
|
|
60
60
|
src: props.thumbnail,
|
|
61
|
-
className: "gp-w-full gp-h-full gp-object-
|
|
61
|
+
className: "gp-w-full gp-h-full gp-object-contain gp-thumbnail-video",
|
|
62
62
|
alt: "Video Thumbnail"
|
|
63
63
|
}),
|
|
64
64
|
/*#__PURE__*/ jsxRuntime.jsx("button", {
|
|
@@ -72,14 +72,14 @@ const HTML5Embed = (props)=>{
|
|
|
72
72
|
</video>
|
|
73
73
|
<div
|
|
74
74
|
style="${props.style}"
|
|
75
|
-
class="${core.cls('gp-absolute gp-top-0 gp-left-0 gp-w-full gp-thumbnail-video', {
|
|
75
|
+
class="${core.cls('gp-absolute gp-top-0 gp-left-0 gp-w-full gp-h-full gp-thumbnail-video', {
|
|
76
76
|
'gp-hidden': !props.thumbnail || props.autoplay
|
|
77
77
|
})}"
|
|
78
78
|
>
|
|
79
79
|
<img
|
|
80
80
|
id="video-thumbnail"
|
|
81
81
|
src="${props.thumbnail ?? ''}"
|
|
82
|
-
class="gp-w-full gp-h-full gp-object-
|
|
82
|
+
class="gp-w-full gp-h-full gp-object-contain"
|
|
83
83
|
alt="Video Thumbnail"
|
|
84
84
|
></img>
|
|
85
85
|
<button
|
package/dist/esm/builder.js
CHANGED
|
@@ -107,8 +107,18 @@ import TrustreviewsProductReviews from './third-party/components/TrustreviewsPro
|
|
|
107
107
|
import MyappgurusProductReviews from './third-party/components/MyappgurusProductReviews.js';
|
|
108
108
|
import HulkProductOptions from './third-party/components/HulkProductOptions.js';
|
|
109
109
|
import TrustshopProductReviews from './third-party/components/TrustshopProductReviews.js';
|
|
110
|
+
import StellarDeliveryDatePickup from './third-party/components/StellarDeliveryDatePickup.js';
|
|
111
|
+
import EssentialCountdownTimerBar from './third-party/components/EssentialCountdownTimerBar.js';
|
|
112
|
+
import EssentialAnnouncementBar from './third-party/components/EssentialAnnouncementBar.js';
|
|
113
|
+
import OkendoReviewsLoyalty from './third-party/components/OkendoReviewsLoyalty.js';
|
|
114
|
+
import EstimatedDeliveryDatePlus from './third-party/components/EstimatedDeliveryDatePlus.js';
|
|
110
115
|
import HextomCountdownTimerBar from './third-party/components/HextomCountdownTimerBar.js';
|
|
111
116
|
import TrustBadgesBear from './third-party/components/TrustBadgesBear.js';
|
|
117
|
+
import TrustedsiteTrustBadges from './third-party/components/TrustedsiteTrustBadges.js';
|
|
118
|
+
import GloColorSwatchvariantImage from './third-party/components/GloColorSwatchvariantImage.js';
|
|
119
|
+
import BfSizeChartSizeGuide from './third-party/components/BfSizeChartSizeGuide.js';
|
|
120
|
+
import AlsoBoughtCbb from './third-party/components/AlsoBoughtCbb.js';
|
|
121
|
+
import HextomFreeShippingBar from './third-party/components/HextomFreeShippingBar.js';
|
|
112
122
|
import CartLineVariant from './cart/components/CartLineVariant.js';
|
|
113
123
|
import Cart from './cart/components/Cart.js';
|
|
114
124
|
import CartList from './cart/components/CartList.js';
|
|
@@ -243,6 +253,11 @@ import PostPurchaseCountdownTimer from './post-purchase/countdown-timer/componen
|
|
|
243
253
|
import Text$1 from './post-purchase/text/Text.js';
|
|
244
254
|
|
|
245
255
|
var builder = {
|
|
256
|
+
EstimatedDeliveryDatePlus,
|
|
257
|
+
OkendoReviewsLoyalty,
|
|
258
|
+
EssentialAnnouncementBar,
|
|
259
|
+
EssentialCountdownTimerBar,
|
|
260
|
+
StellarDeliveryDatePickup,
|
|
246
261
|
TrustshopProductReviews,
|
|
247
262
|
HulkProductOptions,
|
|
248
263
|
TrustreviewsProductReviews,
|
|
@@ -479,7 +494,12 @@ var builder = {
|
|
|
479
494
|
MarqueeItem,
|
|
480
495
|
ProductBadge,
|
|
481
496
|
HextomCountdownTimerBar,
|
|
482
|
-
TrustBadgesBear
|
|
497
|
+
TrustBadgesBear,
|
|
498
|
+
TrustedsiteTrustBadges,
|
|
499
|
+
GloColorSwatchvariantImage,
|
|
500
|
+
BfSizeChartSizeGuide,
|
|
501
|
+
AlsoBoughtCbb,
|
|
502
|
+
HextomFreeShippingBar
|
|
483
503
|
};
|
|
484
504
|
|
|
485
505
|
export { builder as default };
|
package/dist/esm/common/const.js
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { makeStyleResponsive, getWidthByShapeGlobalSize, makeWidth, getHeightByShapeGlobalSize, cls, getStyleShadowState, handleConvertClassColor, getBorderStyle, getBorderRadiusStyle, getStyleShadow, getAspectRatioGlobalSize, getGlobalColorStateClass, getGlobalColorStateStyle, makeStyleState, getCornerCSSFromGlobal } from '@gem-sdk/core';
|
|
2
|
+
import { useCurrentDevice, makeStyleResponsive, getWidthByShapeGlobalSize, makeWidth, getHeightByShapeGlobalSize, cls, getStyleShadowState, handleConvertClassColor, getBorderStyle, getBorderRadiusStyle, getStyleShadow, getAspectRatioGlobalSize, getGlobalColorStateClass, getGlobalColorStateStyle, makeStyleState, getCornerCSSFromGlobal } from '@gem-sdk/core';
|
|
3
3
|
import Link from '../../link/components/Link.js';
|
|
4
4
|
import AdaptiveImage from './AdaptiveImage.js';
|
|
5
5
|
import NextImage from './NextImage.js';
|
|
6
6
|
import { composeAspectRatio } from './helpers.js';
|
|
7
|
+
import NoDataImage from './NoDataImage.js';
|
|
8
|
+
import { useMemo } from 'react';
|
|
7
9
|
|
|
8
10
|
const Image = ({ styles, className, setting, builderAttrs, builderProps, style, children, onClick, onLoad })=>{
|
|
9
11
|
const { image, imageLink, srcSet, isNotLazyload } = setting ?? {};
|
|
10
12
|
const { customAspectRadio } = styles ?? {};
|
|
13
|
+
const currentDevice = useCurrentDevice();
|
|
11
14
|
const { shape } = styles ?? {};
|
|
12
15
|
const WrapLink = imageLink?.link ? Link : 'div';
|
|
13
16
|
const opacity = {
|
|
@@ -52,6 +55,18 @@ const Image = ({ styles, className, setting, builderAttrs, builderProps, style,
|
|
|
52
55
|
custom: customAspectRadio
|
|
53
56
|
})
|
|
54
57
|
};
|
|
58
|
+
const isShowNoDataState = useMemo(()=>{
|
|
59
|
+
if (setting?.disableNoDataState) return false;
|
|
60
|
+
if (currentDevice === 'mobile') return !setting?.srcSet?.mobile?.src && !setting?.srcSet?.tablet?.src && !setting?.srcSet?.desktop?.src;
|
|
61
|
+
if (currentDevice === 'tablet') return !setting?.srcSet?.tablet?.src && !setting?.srcSet?.desktop?.src;
|
|
62
|
+
return !setting?.srcSet?.desktop?.src;
|
|
63
|
+
}, [
|
|
64
|
+
currentDevice,
|
|
65
|
+
setting?.disableNoDataState,
|
|
66
|
+
setting?.srcSet?.desktop?.src,
|
|
67
|
+
setting?.srcSet?.mobile?.src,
|
|
68
|
+
setting?.srcSet?.tablet?.src
|
|
69
|
+
]);
|
|
55
70
|
return /*#__PURE__*/ jsxs("div", {
|
|
56
71
|
...builderAttrs,
|
|
57
72
|
"data-id": builderProps?.uid,
|
|
@@ -80,10 +95,15 @@ const Image = ({ styles, className, setting, builderAttrs, builderProps, style,
|
|
|
80
95
|
...makeStyleResponsive('jc', styles?.align)
|
|
81
96
|
},
|
|
82
97
|
children: [
|
|
83
|
-
|
|
98
|
+
isShowNoDataState ? /*#__PURE__*/ jsx(NoDataImage, {
|
|
99
|
+
style: {
|
|
100
|
+
...imageWidth,
|
|
101
|
+
...imageHeight
|
|
102
|
+
}
|
|
103
|
+
}) : setting?.isAdaptive ? /*#__PURE__*/ jsx(AdaptiveImage, {
|
|
84
104
|
srcSet: setting.srcSet,
|
|
85
105
|
pictureClass: "gp-contents",
|
|
86
|
-
className: cls(className, 'gp-w-full gp-max-w-full', handleConvertClassColor(styles?.borderImg)),
|
|
106
|
+
className: cls(className, 'gp-inline-block gp-w-full gp-max-w-full', handleConvertClassColor(styles?.borderImg)),
|
|
87
107
|
alt: setting.alt,
|
|
88
108
|
style: {
|
|
89
109
|
...imageWidth,
|