@gem-sdk/components 2.0.0-staging.132 → 2.0.0-staging.134
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 +2 -0
- package/dist/cjs/carousel/components/CarouselItem.js +13 -7
- package/dist/cjs/carousel/components/CarouselItem.liquid.js +13 -6
- package/dist/cjs/carousel/setting/Carousel.js +34 -0
- package/dist/cjs/icon-list-v2/components/IconList.liquid.js +4 -2
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/index.liquid.js +2 -0
- package/dist/cjs/product/components/ProductButton.js +1 -1
- package/dist/cjs/product/components/ProductButton.liquid.js +19 -2
- package/dist/cjs/third-party/components/StellarDeliveryDatePickup.js +33 -0
- package/dist/cjs/third-party/components/StellarDeliveryDatePickup.liquid.js +21 -0
- package/dist/cjs/third-party/configs/StellarDeliveryDatePickup.js +12 -0
- package/dist/cjs/third-party/next.js +5 -0
- package/dist/cjs/third-party/setting/StellarDeliveryDatePickup.js +127 -0
- package/dist/cjs/third-party/setting/index.js +2 -0
- package/dist/esm/builder.js +2 -0
- package/dist/esm/carousel/components/CarouselItem.js +14 -8
- package/dist/esm/carousel/components/CarouselItem.liquid.js +14 -7
- package/dist/esm/carousel/setting/Carousel.js +34 -0
- package/dist/esm/icon-list-v2/components/IconList.liquid.js +4 -2
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.liquid.js +1 -0
- package/dist/esm/product/components/ProductButton.js +1 -1
- package/dist/esm/product/components/ProductButton.liquid.js +19 -2
- package/dist/esm/third-party/components/StellarDeliveryDatePickup.js +29 -0
- package/dist/esm/third-party/components/StellarDeliveryDatePickup.liquid.js +17 -0
- package/dist/esm/third-party/configs/StellarDeliveryDatePickup.js +8 -0
- package/dist/esm/third-party/next.js +5 -0
- package/dist/esm/third-party/setting/StellarDeliveryDatePickup.js +123 -0
- package/dist/esm/third-party/setting/index.js +202 -200
- package/dist/types/index.d.ts +21 -1
- package/package.json +1 -1
package/dist/cjs/builder.js
CHANGED
|
@@ -111,6 +111,7 @@ var TrustreviewsProductReviews = require('./third-party/components/TrustreviewsP
|
|
|
111
111
|
var MyappgurusProductReviews = require('./third-party/components/MyappgurusProductReviews.js');
|
|
112
112
|
var HulkProductOptions = require('./third-party/components/HulkProductOptions.js');
|
|
113
113
|
var TrustshopProductReviews = require('./third-party/components/TrustshopProductReviews.js');
|
|
114
|
+
var StellarDeliveryDatePickup = require('./third-party/components/StellarDeliveryDatePickup.js');
|
|
114
115
|
var CartLineVariant = require('./cart/components/CartLineVariant.js');
|
|
115
116
|
var Cart = require('./cart/components/Cart.js');
|
|
116
117
|
var CartList = require('./cart/components/CartList.js');
|
|
@@ -247,6 +248,7 @@ var PostPurchaseLink = require('./post-purchase/link/components/PostPurchaseLink
|
|
|
247
248
|
var Text$1 = require('./post-purchase/text/Text.js');
|
|
248
249
|
|
|
249
250
|
var builder = {
|
|
251
|
+
StellarDeliveryDatePickup: StellarDeliveryDatePickup.default,
|
|
250
252
|
TrustshopProductReviews: TrustshopProductReviews.default,
|
|
251
253
|
HulkProductOptions: HulkProductOptions.default,
|
|
252
254
|
MyappgurusProductReviews: MyappgurusProductReviews.default,
|
|
@@ -10,6 +10,7 @@ var React = require('react');
|
|
|
10
10
|
var carousel = require('./common/carousel.js');
|
|
11
11
|
|
|
12
12
|
const CarouselItem = ({ children, builderAttrs, styles, advanced, setting, builderProps, parentStyle, parentSettings, background, contentType = 'normalItem', onClickItem, ...passProps })=>{
|
|
13
|
+
const itemPadding = core.makeGlobalSize(parentStyle?.itemPadding);
|
|
13
14
|
const styleByContentType = React.useMemo(()=>{
|
|
14
15
|
const delList = [
|
|
15
16
|
'--radius'
|
|
@@ -28,11 +29,6 @@ const CarouselItem = ({ children, builderAttrs, styles, advanced, setting, build
|
|
|
28
29
|
bw: parentStyle?.borderContent?.width,
|
|
29
30
|
bc: core.getSingleColorVariable(parentStyle?.borderContent?.color)
|
|
30
31
|
}),
|
|
31
|
-
...core.getStyleShadow({
|
|
32
|
-
value: parentStyle?.carouselShadow,
|
|
33
|
-
styleAppliedFor: 'box-shadow',
|
|
34
|
-
isEnableShadow: parentStyle?.hasActiveShadow
|
|
35
|
-
}),
|
|
36
32
|
...core.getRadiusStyleActiveState({
|
|
37
33
|
...parentStyle?.roundedContent,
|
|
38
34
|
active: {
|
|
@@ -65,11 +61,21 @@ const CarouselItem = ({ children, builderAttrs, styles, advanced, setting, build
|
|
|
65
61
|
ignoreBackgroundImage: true,
|
|
66
62
|
ignoreBackgroundImageProperties: true,
|
|
67
63
|
ignoreBgAttachment: true
|
|
68
|
-
})
|
|
64
|
+
}),
|
|
65
|
+
...itemPadding && itemPadding.padding
|
|
69
66
|
},
|
|
70
67
|
onClick: onClickItem,
|
|
71
68
|
"aria-hidden": true,
|
|
72
|
-
children:
|
|
69
|
+
children: /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
70
|
+
style: {
|
|
71
|
+
...core.getStyleShadow({
|
|
72
|
+
value: parentStyle?.carouselShadow,
|
|
73
|
+
styleAppliedFor: 'box-shadow',
|
|
74
|
+
isEnableShadow: parentStyle?.hasActiveShadow
|
|
75
|
+
})
|
|
76
|
+
},
|
|
77
|
+
children: core.isEmptyChildren(children) ? /*#__PURE__*/ jsxRuntime.jsx(ChildrenDroppable.default, {}) : children
|
|
78
|
+
})
|
|
73
79
|
});
|
|
74
80
|
};
|
|
75
81
|
|
|
@@ -6,6 +6,7 @@ var core = require('@gem-sdk/core');
|
|
|
6
6
|
var carousel = require('./common/carousel.js');
|
|
7
7
|
|
|
8
8
|
const CarouselItem = ({ children, builderAttrs, styles, advanced, setting, builderProps, style, className, parentId, parentStyle, parentSettings, background, index, customStyle, parentUid, contentType = 'normalItem', ...passProps })=>{
|
|
9
|
+
const itemPadding = core.makeGlobalSize(parentStyle?.itemPadding);
|
|
9
10
|
const styleByContentType = ()=>{
|
|
10
11
|
const delList = [
|
|
11
12
|
'--radius'
|
|
@@ -21,11 +22,6 @@ const CarouselItem = ({ children, builderAttrs, styles, advanced, setting, build
|
|
|
21
22
|
bw: parentStyle?.borderContent?.width,
|
|
22
23
|
bc: core.getSingleColorVariable(parentStyle?.borderContent?.color)
|
|
23
24
|
}),
|
|
24
|
-
...core.getStyleShadow({
|
|
25
|
-
value: parentStyle?.carouselShadow,
|
|
26
|
-
styleAppliedFor: 'box-shadow',
|
|
27
|
-
isEnableShadow: parentStyle?.hasActiveShadow
|
|
28
|
-
}),
|
|
29
25
|
...core.getRadiusStyleActiveState({
|
|
30
26
|
...parentStyle?.roundedContent,
|
|
31
27
|
active: {
|
|
@@ -74,12 +70,23 @@ const CarouselItem = ({ children, builderAttrs, styles, advanced, setting, build
|
|
|
74
70
|
sneakPeakType: parentSettings?.sneakPeakType,
|
|
75
71
|
sneakPeakOffsetCenter: parentSettings?.sneakPeakOffsetCenter,
|
|
76
72
|
sneakPeakOffsetForward: parentSettings?.sneakPeakOffsetForward
|
|
77
|
-
}))
|
|
73
|
+
})),
|
|
74
|
+
...itemPadding && itemPadding.padding
|
|
78
75
|
}}"
|
|
79
76
|
class="${core.cls(`gem-slider-item gp-w-full gem-slider-item-${parentId || ''} gp-child-item-${parentUid}`, builderProps?.uid, className)}"
|
|
80
77
|
data-index="${index}"
|
|
81
78
|
>
|
|
79
|
+
<div
|
|
80
|
+
style="${{
|
|
81
|
+
...core.getStyleShadow({
|
|
82
|
+
value: parentStyle?.carouselShadow,
|
|
83
|
+
styleAppliedFor: 'box-shadow',
|
|
84
|
+
isEnableShadow: parentStyle?.hasActiveShadow
|
|
85
|
+
})
|
|
86
|
+
}}"
|
|
87
|
+
>
|
|
82
88
|
${children}
|
|
89
|
+
</div>
|
|
83
90
|
</div>
|
|
84
91
|
`;
|
|
85
92
|
};
|
|
@@ -732,6 +732,30 @@ const config = {
|
|
|
732
732
|
default: 16
|
|
733
733
|
}
|
|
734
734
|
}
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
id: 'itemPadding',
|
|
738
|
+
type: 'size-setting',
|
|
739
|
+
devices: {
|
|
740
|
+
desktop: {
|
|
741
|
+
default: {
|
|
742
|
+
padding: {
|
|
743
|
+
type: 'custom',
|
|
744
|
+
top: '0px',
|
|
745
|
+
left: '0px',
|
|
746
|
+
bottom: '0px',
|
|
747
|
+
right: '0px'
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
},
|
|
752
|
+
hiddenSettings: [
|
|
753
|
+
'shape',
|
|
754
|
+
'gap',
|
|
755
|
+
'width',
|
|
756
|
+
'height'
|
|
757
|
+
],
|
|
758
|
+
hiddenShowMore: true
|
|
735
759
|
}
|
|
736
760
|
]
|
|
737
761
|
}
|
|
@@ -1078,6 +1102,16 @@ const config = {
|
|
|
1078
1102
|
id: 'sizeSetting'
|
|
1079
1103
|
},
|
|
1080
1104
|
layout: 'vertical'
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
type: 'control',
|
|
1108
|
+
setting: {
|
|
1109
|
+
id: 'itemPadding'
|
|
1110
|
+
},
|
|
1111
|
+
isMoreSetting: true,
|
|
1112
|
+
options: {
|
|
1113
|
+
noGap: true
|
|
1114
|
+
}
|
|
1081
1115
|
}
|
|
1082
1116
|
]
|
|
1083
1117
|
},
|
|
@@ -45,13 +45,15 @@ const IconListV2 = ({ builderProps, style, setting, styles, advanced, pageContex
|
|
|
45
45
|
}}">
|
|
46
46
|
${valueMap?.map((node, key)=>{
|
|
47
47
|
let value = helpers.replaceLinkData(childItem?.[key]);
|
|
48
|
-
|
|
48
|
+
let textVal = helpers.getDynamicSourceLocales({
|
|
49
49
|
val: value,
|
|
50
50
|
uid: builderProps?.uid,
|
|
51
51
|
settingId: `childItem_${key}`,
|
|
52
52
|
pageContext,
|
|
53
|
-
translate
|
|
53
|
+
translate,
|
|
54
|
+
isLiquid: true
|
|
54
55
|
});
|
|
56
|
+
textVal = `{{ ${textVal} | replace: '$locationOrigin', locationOrigin }}`;
|
|
55
57
|
return core.template`
|
|
56
58
|
<div
|
|
57
59
|
class="gp-icon-list-wrapper gp-flex gp-child-item-${builderProps?.uid}"
|
package/dist/cjs/index.js
CHANGED
|
@@ -206,6 +206,7 @@ var TrustreviewsProductReviews = require('./third-party/components/TrustreviewsP
|
|
|
206
206
|
var MyappgurusProductReviews = require('./third-party/components/MyappgurusProductReviews.js');
|
|
207
207
|
var HulkProductOptions = require('./third-party/components/HulkProductOptions.js');
|
|
208
208
|
var TrustshopProductReviews = require('./third-party/components/TrustshopProductReviews.js');
|
|
209
|
+
var StellarDeliveryDatePickup = require('./third-party/components/StellarDeliveryDatePickup.js');
|
|
209
210
|
var index$x = require('./third-party-instant/setting/index.js');
|
|
210
211
|
var InstantJudgemeReviews = require('./third-party-instant/components/InstantJudgemeReviews.js');
|
|
211
212
|
var InstantLooxReviews = require('./third-party-instant/components/InstantLooxReviews.js');
|
|
@@ -514,6 +515,7 @@ exports.TrustreviewsProductReviews = TrustreviewsProductReviews.default;
|
|
|
514
515
|
exports.MyappgurusProductReviews = MyappgurusProductReviews.default;
|
|
515
516
|
exports.HulkProductOptions = HulkProductOptions.default;
|
|
516
517
|
exports.TrustshopProductReviews = TrustshopProductReviews.default;
|
|
518
|
+
exports.StellarDeliveryDatePickup = StellarDeliveryDatePickup.default;
|
|
517
519
|
exports.thirdPartyInstantSetting = index$x.default;
|
|
518
520
|
exports.InstantJudgemeReviews = InstantJudgemeReviews.default;
|
|
519
521
|
exports.InstantLooxReviews = InstantLooxReviews.default;
|
package/dist/cjs/index.liquid.js
CHANGED
|
@@ -162,6 +162,7 @@ var TrustreviewsProductReviews_liquid = require('./third-party/components/Trustr
|
|
|
162
162
|
var MyappgurusProductReviews_liquid = require('./third-party/components/MyappgurusProductReviews.liquid.js');
|
|
163
163
|
var HulkProductOptions_liquid = require('./third-party/components/HulkProductOptions.liquid.js');
|
|
164
164
|
var TrustshopProductReviews_liquid = require('./third-party/components/TrustshopProductReviews.liquid.js');
|
|
165
|
+
var StellarDeliveryDatePickup_liquid = require('./third-party/components/StellarDeliveryDatePickup.liquid.js');
|
|
165
166
|
var ImageComparison_liquid = require('./image-comparison/components/ImageComparison.liquid.js');
|
|
166
167
|
var ThirdPartySlot_liquid = require('./third-party-slot/components/ThirdPartySlot.liquid.js');
|
|
167
168
|
var ShopPayInstallments_liquid = require('./shop-pay-installment/components/ShopPayInstallments.liquid.js');
|
|
@@ -346,6 +347,7 @@ exports.TrustreviewsProductReviews = TrustreviewsProductReviews_liquid.default;
|
|
|
346
347
|
exports.MyappgurusProductReviews = MyappgurusProductReviews_liquid.default;
|
|
347
348
|
exports.HulkProductOptions = HulkProductOptions_liquid.default;
|
|
348
349
|
exports.TrustshopProductReviews = TrustshopProductReviews_liquid.default;
|
|
350
|
+
exports.StellarDeliveryDatePickup = StellarDeliveryDatePickup_liquid.default;
|
|
349
351
|
exports.ImageComparison = ImageComparison_liquid.default;
|
|
350
352
|
exports.ThirdPartySlot = ThirdPartySlot_liquid.default;
|
|
351
353
|
exports.ShopPayInstallments = ShopPayInstallments_liquid.default;
|
|
@@ -219,7 +219,7 @@ const ProductButton = ({ setting, builderProps, builderAttrs, style, styles, adv
|
|
|
219
219
|
]);
|
|
220
220
|
const isInStock = core.useCurrentVariantInStock();
|
|
221
221
|
const isDisable = !isInStock || createCartLoading || addToCartLoading;
|
|
222
|
-
const label = !isInStock ? setting?.outOfStockLabel : setting?.label;
|
|
222
|
+
const label = !isInStock ? !currentVariant ? 'Unavailable' : setting?.outOfStockLabel : setting?.label;
|
|
223
223
|
if (!isInStock && isCustomOutOfStock) {
|
|
224
224
|
buttonStyles.backgroundColor = {
|
|
225
225
|
normal: oosBackground
|
|
@@ -188,6 +188,22 @@ const ProductButton = ({ setting, builderProps, builderAttrs, style, styles, adv
|
|
|
188
188
|
pageContext,
|
|
189
189
|
translate: setting?.translate
|
|
190
190
|
});
|
|
191
|
+
const labelUnavailableTranslate = helpers.getDynamicSourceLocales({
|
|
192
|
+
val: 'Unavailable',
|
|
193
|
+
uid: builderProps?.uid,
|
|
194
|
+
settingId: 'unavailableLabel',
|
|
195
|
+
isLiquid: true,
|
|
196
|
+
pageContext,
|
|
197
|
+
translate: setting?.translate ? 'unavailableLabel' : undefined
|
|
198
|
+
});
|
|
199
|
+
const labelOutOfStockTranslate = helpers.getDynamicSourceLocales({
|
|
200
|
+
val: setting?.outOfStockLabel,
|
|
201
|
+
uid: builderProps?.uid,
|
|
202
|
+
settingId: 'outOfStockLabel',
|
|
203
|
+
isLiquid: true,
|
|
204
|
+
pageContext,
|
|
205
|
+
translate: setting?.translate ? 'outOfStockLabel' : undefined
|
|
206
|
+
});
|
|
191
207
|
return core.template /* liquid */ `
|
|
192
208
|
{%- liquid
|
|
193
209
|
assign inventory_quantity = variant.inventory_quantity | default: 0
|
|
@@ -195,6 +211,8 @@ const ProductButton = ({ setting, builderProps, builderAttrs, style, styles, adv
|
|
|
195
211
|
<gp-product-button
|
|
196
212
|
class="gp-product-button"
|
|
197
213
|
gp-data-wrapper="true"
|
|
214
|
+
label-out-of-Stock="${pageContext?.isPreviewing ? labelOutOfStockTranslate : `{{${labelOutOfStockTranslate}}}`}"
|
|
215
|
+
label-unavailable="${pageContext?.isPreviewing ? labelUnavailableTranslate : `{{${labelUnavailableTranslate}}}`}"
|
|
198
216
|
gp-data='${JSON.stringify({
|
|
199
217
|
setting: {
|
|
200
218
|
actionEffect: setting?.actionEffect,
|
|
@@ -272,8 +290,7 @@ const ProductButton = ({ setting, builderProps, builderAttrs, style, styles, adv
|
|
|
272
290
|
'gp-data-hidden': `{% if variant.available %}true{% endif %}`
|
|
273
291
|
},
|
|
274
292
|
setting: {
|
|
275
|
-
label:
|
|
276
|
-
translate: setting?.translate ? 'outOfStockLabel' : undefined,
|
|
293
|
+
label: labelOutOfStockTranslate,
|
|
277
294
|
htmlType: 'button',
|
|
278
295
|
iconAlign: iconAlign,
|
|
279
296
|
iconSvg: iconSvg,
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
var core = require('@gem-sdk/core');
|
|
8
|
+
var ThirdPartyPreview = require('./ThirdPartyPreview.js');
|
|
9
|
+
var StellarDeliveryDatePickup$1 = require('../configs/StellarDeliveryDatePickup.js');
|
|
10
|
+
|
|
11
|
+
const StellarDeliveryDatePickupContent = ()=>{
|
|
12
|
+
return /*#__PURE__*/ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
13
|
+
children: /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
14
|
+
className: "gp-p-2",
|
|
15
|
+
children: /*#__PURE__*/ jsxRuntime.jsx(ThirdPartyPreview.default, {
|
|
16
|
+
setting: {
|
|
17
|
+
label: 'Stellar Delivery Date & Pickup',
|
|
18
|
+
iconSvg: `<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="${StellarDeliveryDatePickup$1.default.logoUrl}">`
|
|
19
|
+
}
|
|
20
|
+
})
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
const StellarDeliveryDatePickup = ({ setting })=>{
|
|
25
|
+
return /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
26
|
+
style: {
|
|
27
|
+
...core.makeStyleResponsive('ta', setting?.align)
|
|
28
|
+
},
|
|
29
|
+
children: /*#__PURE__*/ jsxRuntime.jsx(StellarDeliveryDatePickupContent, {})
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
exports.default = StellarDeliveryDatePickup;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var core = require('@gem-sdk/core');
|
|
6
|
+
|
|
7
|
+
const StellarDeliveryDatePickup = ({ setting, advanced })=>{
|
|
8
|
+
const { align } = setting ?? {};
|
|
9
|
+
return core.template`
|
|
10
|
+
<div
|
|
11
|
+
class="${advanced?.cssClass}"
|
|
12
|
+
style="${{
|
|
13
|
+
...core.makeStyleResponsive('ta', align)
|
|
14
|
+
}}"
|
|
15
|
+
>
|
|
16
|
+
<div class="gp-integration-stellar-delivery__position" ></div>
|
|
17
|
+
</div>
|
|
18
|
+
`;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
exports.default = StellarDeliveryDatePickup;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var AppConfig = {
|
|
6
|
+
id: 'stellar-delivery-date-pickup',
|
|
7
|
+
label: 'Stellar Delivery Date & Pickup',
|
|
8
|
+
logoUrl: 'https://cdn.shopify.com/app-store/listing_images/568eee7424b5f70382db5178dd815f6a/icon/CMTw3rn0lu8CEAE=.jpg',
|
|
9
|
+
tag: 'StellarDeliveryDatePickup'
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
exports.default = AppConfig;
|
|
@@ -8,6 +8,10 @@ require('react/jsx-runtime');
|
|
|
8
8
|
require('react');
|
|
9
9
|
require('@gem-sdk/core');
|
|
10
10
|
|
|
11
|
+
const StellarDeliveryDatePickup = dynamic(()=>Promise.resolve().then(function () { return require('./components/StellarDeliveryDatePickup.js'); }), {
|
|
12
|
+
ssr: false,
|
|
13
|
+
loading: Loading.default
|
|
14
|
+
});
|
|
11
15
|
const TrustshopProductReviews = dynamic(()=>Promise.resolve().then(function () { return require('./components/TrustshopProductReviews.js'); }), {
|
|
12
16
|
ssr: false,
|
|
13
17
|
loading: Loading.default
|
|
@@ -409,6 +413,7 @@ const Selleasy = dynamic(()=>Promise.resolve().then(function () { return require
|
|
|
409
413
|
loading: Loading.default
|
|
410
414
|
});
|
|
411
415
|
var thirdParty = {
|
|
416
|
+
StellarDeliveryDatePickup,
|
|
412
417
|
TrustshopProductReviews,
|
|
413
418
|
HulkProductOptions,
|
|
414
419
|
MyappgurusProductReviews,
|
|
@@ -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;
|
|
@@ -102,8 +102,10 @@ var TrustreviewsProductReviews = require('./TrustreviewsProductReviews.js');
|
|
|
102
102
|
var MyappgurusProductReviews = require('./MyappgurusProductReviews.js');
|
|
103
103
|
var HulkProductOptions = require('./HulkProductOptions.js');
|
|
104
104
|
var TrustshopProductReviews = require('./TrustshopProductReviews.js');
|
|
105
|
+
var StellarDeliveryDatePickup = require('./StellarDeliveryDatePickup.js');
|
|
105
106
|
|
|
106
107
|
var thirdPartySetting = {
|
|
108
|
+
StellarDeliveryDatePickup: StellarDeliveryDatePickup.default,
|
|
107
109
|
TrustshopProductReviews: TrustshopProductReviews.default,
|
|
108
110
|
HulkProductOptions: HulkProductOptions.default,
|
|
109
111
|
MyappgurusProductReviews: MyappgurusProductReviews.default,
|
package/dist/esm/builder.js
CHANGED
|
@@ -107,6 +107,7 @@ 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';
|
|
110
111
|
import CartLineVariant from './cart/components/CartLineVariant.js';
|
|
111
112
|
import Cart from './cart/components/Cart.js';
|
|
112
113
|
import CartList from './cart/components/CartList.js';
|
|
@@ -243,6 +244,7 @@ import Link$1 from './post-purchase/link/components/PostPurchaseLink.js';
|
|
|
243
244
|
import Text$1 from './post-purchase/text/Text.js';
|
|
244
245
|
|
|
245
246
|
var builder = {
|
|
247
|
+
StellarDeliveryDatePickup,
|
|
246
248
|
TrustshopProductReviews,
|
|
247
249
|
HulkProductOptions,
|
|
248
250
|
MyappgurusProductReviews,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { makeStyle, getSingleColorVariable,
|
|
3
|
+
import { makeGlobalSize, makeStyle, getSingleColorVariable, getRadiusStyleActiveState, cls, getStyleBackgroundByDevice, getStyleShadow, isEmptyChildren } from '@gem-sdk/core';
|
|
4
4
|
import ChildrenDroppable from '../../grid/components/ChildrenDroppable.js';
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
6
|
import { getInitialWidthForCarouselItem } from './common/carousel.js';
|
|
7
7
|
|
|
8
8
|
const CarouselItem = ({ children, builderAttrs, styles, advanced, setting, builderProps, parentStyle, parentSettings, background, contentType = 'normalItem', onClickItem, ...passProps })=>{
|
|
9
|
+
const itemPadding = makeGlobalSize(parentStyle?.itemPadding);
|
|
9
10
|
const styleByContentType = useMemo(()=>{
|
|
10
11
|
const delList = [
|
|
11
12
|
'--radius'
|
|
@@ -24,11 +25,6 @@ const CarouselItem = ({ children, builderAttrs, styles, advanced, setting, build
|
|
|
24
25
|
bw: parentStyle?.borderContent?.width,
|
|
25
26
|
bc: getSingleColorVariable(parentStyle?.borderContent?.color)
|
|
26
27
|
}),
|
|
27
|
-
...getStyleShadow({
|
|
28
|
-
value: parentStyle?.carouselShadow,
|
|
29
|
-
styleAppliedFor: 'box-shadow',
|
|
30
|
-
isEnableShadow: parentStyle?.hasActiveShadow
|
|
31
|
-
}),
|
|
32
28
|
...getRadiusStyleActiveState({
|
|
33
29
|
...parentStyle?.roundedContent,
|
|
34
30
|
active: {
|
|
@@ -61,11 +57,21 @@ const CarouselItem = ({ children, builderAttrs, styles, advanced, setting, build
|
|
|
61
57
|
ignoreBackgroundImage: true,
|
|
62
58
|
ignoreBackgroundImageProperties: true,
|
|
63
59
|
ignoreBgAttachment: true
|
|
64
|
-
})
|
|
60
|
+
}),
|
|
61
|
+
...itemPadding && itemPadding.padding
|
|
65
62
|
},
|
|
66
63
|
onClick: onClickItem,
|
|
67
64
|
"aria-hidden": true,
|
|
68
|
-
children:
|
|
65
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
66
|
+
style: {
|
|
67
|
+
...getStyleShadow({
|
|
68
|
+
value: parentStyle?.carouselShadow,
|
|
69
|
+
styleAppliedFor: 'box-shadow',
|
|
70
|
+
isEnableShadow: parentStyle?.hasActiveShadow
|
|
71
|
+
})
|
|
72
|
+
},
|
|
73
|
+
children: isEmptyChildren(children) ? /*#__PURE__*/ jsx(ChildrenDroppable, {}) : children
|
|
74
|
+
})
|
|
69
75
|
});
|
|
70
76
|
};
|
|
71
77
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { template, getStyleBackgroundByDevice, makeStyleResponsive, cls, makeStyle, getSingleColorVariable,
|
|
1
|
+
import { makeGlobalSize, template, getStyleBackgroundByDevice, makeStyleResponsive, cls, getStyleShadow, makeStyle, getSingleColorVariable, getRadiusStyleActiveState } from '@gem-sdk/core';
|
|
2
2
|
import { getInitialWidthForCarouselItem, getCarouselSneakPeakTranslate } from './common/carousel.js';
|
|
3
3
|
|
|
4
4
|
const CarouselItem = ({ children, builderAttrs, styles, advanced, setting, builderProps, style, className, parentId, parentStyle, parentSettings, background, index, customStyle, parentUid, contentType = 'normalItem', ...passProps })=>{
|
|
5
|
+
const itemPadding = makeGlobalSize(parentStyle?.itemPadding);
|
|
5
6
|
const styleByContentType = ()=>{
|
|
6
7
|
const delList = [
|
|
7
8
|
'--radius'
|
|
@@ -17,11 +18,6 @@ const CarouselItem = ({ children, builderAttrs, styles, advanced, setting, build
|
|
|
17
18
|
bw: parentStyle?.borderContent?.width,
|
|
18
19
|
bc: getSingleColorVariable(parentStyle?.borderContent?.color)
|
|
19
20
|
}),
|
|
20
|
-
...getStyleShadow({
|
|
21
|
-
value: parentStyle?.carouselShadow,
|
|
22
|
-
styleAppliedFor: 'box-shadow',
|
|
23
|
-
isEnableShadow: parentStyle?.hasActiveShadow
|
|
24
|
-
}),
|
|
25
21
|
...getRadiusStyleActiveState({
|
|
26
22
|
...parentStyle?.roundedContent,
|
|
27
23
|
active: {
|
|
@@ -70,12 +66,23 @@ const CarouselItem = ({ children, builderAttrs, styles, advanced, setting, build
|
|
|
70
66
|
sneakPeakType: parentSettings?.sneakPeakType,
|
|
71
67
|
sneakPeakOffsetCenter: parentSettings?.sneakPeakOffsetCenter,
|
|
72
68
|
sneakPeakOffsetForward: parentSettings?.sneakPeakOffsetForward
|
|
73
|
-
}))
|
|
69
|
+
})),
|
|
70
|
+
...itemPadding && itemPadding.padding
|
|
74
71
|
}}"
|
|
75
72
|
class="${cls(`gem-slider-item gp-w-full gem-slider-item-${parentId || ''} gp-child-item-${parentUid}`, builderProps?.uid, className)}"
|
|
76
73
|
data-index="${index}"
|
|
77
74
|
>
|
|
75
|
+
<div
|
|
76
|
+
style="${{
|
|
77
|
+
...getStyleShadow({
|
|
78
|
+
value: parentStyle?.carouselShadow,
|
|
79
|
+
styleAppliedFor: 'box-shadow',
|
|
80
|
+
isEnableShadow: parentStyle?.hasActiveShadow
|
|
81
|
+
})
|
|
82
|
+
}}"
|
|
83
|
+
>
|
|
78
84
|
${children}
|
|
85
|
+
</div>
|
|
79
86
|
</div>
|
|
80
87
|
`;
|
|
81
88
|
};
|
|
@@ -728,6 +728,30 @@ const config = {
|
|
|
728
728
|
default: 16
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
id: 'itemPadding',
|
|
734
|
+
type: 'size-setting',
|
|
735
|
+
devices: {
|
|
736
|
+
desktop: {
|
|
737
|
+
default: {
|
|
738
|
+
padding: {
|
|
739
|
+
type: 'custom',
|
|
740
|
+
top: '0px',
|
|
741
|
+
left: '0px',
|
|
742
|
+
bottom: '0px',
|
|
743
|
+
right: '0px'
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
},
|
|
748
|
+
hiddenSettings: [
|
|
749
|
+
'shape',
|
|
750
|
+
'gap',
|
|
751
|
+
'width',
|
|
752
|
+
'height'
|
|
753
|
+
],
|
|
754
|
+
hiddenShowMore: true
|
|
731
755
|
}
|
|
732
756
|
]
|
|
733
757
|
}
|
|
@@ -1074,6 +1098,16 @@ const config = {
|
|
|
1074
1098
|
id: 'sizeSetting'
|
|
1075
1099
|
},
|
|
1076
1100
|
layout: 'vertical'
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
type: 'control',
|
|
1104
|
+
setting: {
|
|
1105
|
+
id: 'itemPadding'
|
|
1106
|
+
},
|
|
1107
|
+
isMoreSetting: true,
|
|
1108
|
+
options: {
|
|
1109
|
+
noGap: true
|
|
1110
|
+
}
|
|
1077
1111
|
}
|
|
1078
1112
|
]
|
|
1079
1113
|
},
|