@gem-sdk/components 2.1.11 → 2.1.13-staging.0
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 +5 -1
- package/dist/cjs/grid/components/Row.js +7 -8
- package/dist/cjs/grid/components/Row.liquid.js +11 -13
- package/dist/cjs/index.js +4 -0
- package/dist/cjs/index.liquid.js +4 -0
- package/dist/cjs/third-party/components/HextomCountdownTimerBar.js +32 -0
- package/dist/cjs/third-party/components/HextomCountdownTimerBar.liquid.js +12 -0
- package/dist/cjs/third-party/components/TrustBadgesBear.js +32 -0
- package/dist/cjs/third-party/components/TrustBadgesBear.liquid.js +12 -0
- package/dist/cjs/third-party/configs/HextomCountdownTimerBar.js +12 -0
- package/dist/cjs/third-party/configs/TrustBadgesBear.js +12 -0
- package/dist/cjs/third-party/next.js +11 -1
- package/dist/cjs/third-party/setting/HextomCountdownTimerBar.js +128 -0
- package/dist/cjs/third-party/setting/TrustBadgesBear.js +128 -0
- package/dist/cjs/third-party/setting/index.js +5 -1
- package/dist/esm/builder.js +5 -1
- package/dist/esm/grid/components/Row.js +7 -8
- package/dist/esm/grid/components/Row.liquid.js +11 -13
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.liquid.js +2 -0
- package/dist/esm/third-party/components/HextomCountdownTimerBar.js +28 -0
- package/dist/esm/third-party/components/HextomCountdownTimerBar.liquid.js +8 -0
- package/dist/esm/third-party/components/TrustBadgesBear.js +28 -0
- package/dist/esm/third-party/components/TrustBadgesBear.liquid.js +8 -0
- package/dist/esm/third-party/configs/HextomCountdownTimerBar.js +8 -0
- package/dist/esm/third-party/configs/TrustBadgesBear.js +8 -0
- package/dist/esm/third-party/next.js +11 -1
- package/dist/esm/third-party/setting/HextomCountdownTimerBar.js +124 -0
- package/dist/esm/third-party/setting/TrustBadgesBear.js +124 -0
- package/dist/esm/third-party/setting/index.js +206 -202
- package/dist/types/index.d.ts +33 -1
- package/package.json +2 -2
package/dist/cjs/builder.js
CHANGED
|
@@ -111,6 +111,8 @@ 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 HextomCountdownTimerBar = require('./third-party/components/HextomCountdownTimerBar.js');
|
|
115
|
+
var TrustBadgesBear = require('./third-party/components/TrustBadgesBear.js');
|
|
114
116
|
var CartLineVariant = require('./cart/components/CartLineVariant.js');
|
|
115
117
|
var Cart = require('./cart/components/Cart.js');
|
|
116
118
|
var CartList = require('./cart/components/CartList.js');
|
|
@@ -479,7 +481,9 @@ var builder = {
|
|
|
479
481
|
ArticleReadMore: ArticleReadMore.default,
|
|
480
482
|
Marquee: Marquee.default,
|
|
481
483
|
MarqueeItem: MarqueeItem.default,
|
|
482
|
-
ProductBadge: index$8.default
|
|
484
|
+
ProductBadge: index$8.default,
|
|
485
|
+
HextomCountdownTimerBar: HextomCountdownTimerBar.default,
|
|
486
|
+
TrustBadgesBear: TrustBadgesBear.default
|
|
483
487
|
};
|
|
484
488
|
|
|
485
489
|
exports.default = builder;
|
|
@@ -55,13 +55,11 @@ const Row = ({ className, children, setting, builderAttrs, builderProps, styles,
|
|
|
55
55
|
'left',
|
|
56
56
|
'bottom',
|
|
57
57
|
'right',
|
|
58
|
-
'z'
|
|
59
|
-
'ml',
|
|
60
|
-
'mr'
|
|
58
|
+
'z'
|
|
61
59
|
], style);
|
|
62
60
|
const getStyles = ()=>{
|
|
63
61
|
let result = {
|
|
64
|
-
...restStyle,
|
|
62
|
+
...isSection ? restStyle : style,
|
|
65
63
|
...core.makeStyleResponsive('cg', verticalGutter),
|
|
66
64
|
...layout ? core.composeGridLayout(layout) : core.makeStyleResponsive('gtc', responsive),
|
|
67
65
|
...core.makeStyleResponsive('w', styleObject.content)
|
|
@@ -119,7 +117,7 @@ const Row = ({ className, children, setting, builderAttrs, builderProps, styles,
|
|
|
119
117
|
ref: ref,
|
|
120
118
|
style: getStyles(),
|
|
121
119
|
className: core.cls(className, builderProps?.uid, 'gp-mb-0 gp-grid gp-mx-auto gp-max-w-full gp-gap-y-0 gp-transition-colors gp-duration-200 gp-ease-in-out ', {
|
|
122
|
-
'gp-content-visibility-hidden': mode !== 'edit' && lazy && !inView
|
|
120
|
+
'gp-content-visibility-hidden': mode !== 'edit' && isSection && lazy && !inView
|
|
123
121
|
}),
|
|
124
122
|
children: inView || mode !== 'edit' ? /*#__PURE__*/ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
125
123
|
children: core.isEmptyChildren(children) ? /*#__PURE__*/ jsxRuntime.jsx(ChildrenDroppable.default, {}) : React.Children.map(children, (el)=>{
|
|
@@ -158,15 +156,16 @@ const Row = ({ className, children, setting, builderAttrs, builderProps, styles,
|
|
|
158
156
|
})
|
|
159
157
|
]
|
|
160
158
|
}),
|
|
161
|
-
/*#__PURE__*/ jsxRuntime.jsx(Element, {
|
|
162
|
-
className: "gp-max-w-full [&_*]:gp-max-w-full",
|
|
159
|
+
isSection ? /*#__PURE__*/ jsxRuntime.jsx(Element, {
|
|
160
|
+
className: "gp-mx-auto gp-max-w-full [&_*]:gp-max-w-full",
|
|
163
161
|
style: {
|
|
164
162
|
...wrapStyle,
|
|
163
|
+
...core.makeStyleResponsive('w', styleObject.wrapper),
|
|
165
164
|
...core.makeStyleResponsive('pl', styleObject.padding),
|
|
166
165
|
...core.makeStyleResponsive('pr', styleObject.padding)
|
|
167
166
|
},
|
|
168
167
|
children: element
|
|
169
|
-
})
|
|
168
|
+
}) : element
|
|
170
169
|
]
|
|
171
170
|
});
|
|
172
171
|
};
|
|
@@ -16,9 +16,7 @@ const Row = ({ className, children, setting, builderAttrs, builderProps, styles,
|
|
|
16
16
|
'left',
|
|
17
17
|
'bottom',
|
|
18
18
|
'right',
|
|
19
|
-
'z'
|
|
20
|
-
'ml',
|
|
21
|
-
'mr'
|
|
19
|
+
'z'
|
|
22
20
|
], style);
|
|
23
21
|
const element = core.template`
|
|
24
22
|
<div
|
|
@@ -28,7 +26,7 @@ const Row = ({ className, children, setting, builderAttrs, builderProps, styles,
|
|
|
28
26
|
'data-id': builderProps?.uidInteraction ?? builderProps?.uid
|
|
29
27
|
}}
|
|
30
28
|
style="${{
|
|
31
|
-
...restStyle,
|
|
29
|
+
...isSection ? restStyle : style,
|
|
32
30
|
...core.makeStyleResponsive('cg', verticalGutter),
|
|
33
31
|
...core.makeStyleResponsive('pc', horizontalAlign),
|
|
34
32
|
...layout ? core.composeGridLayout(layout) : core.makeStyleResponsive('gtc', responsive),
|
|
@@ -55,21 +53,21 @@ const Row = ({ className, children, setting, builderAttrs, builderProps, styles,
|
|
|
55
53
|
}))}
|
|
56
54
|
</div>
|
|
57
55
|
`;
|
|
58
|
-
const elementTag = isSection ? 'section' : 'div';
|
|
59
56
|
return core.template`
|
|
60
57
|
${core.RenderIf(!!styles?.preloadBgImage, `${core.RenderIf(!!background?.desktop?.image?.src, `<link rel="preload" href="${background?.desktop?.image?.src}" as="image" />`)}${core.RenderIf(!!background?.tablet?.image?.src, `<link rel="preload" href="${background?.tablet?.image?.src}" as="image" />`)}${core.RenderIf(!!background?.mobile?.image?.src, `<link rel="preload" href="${background?.mobile?.image?.src}" as="image" />`)}`)}
|
|
61
|
-
${core.template`
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
${isSection ? core.template`
|
|
59
|
+
<section
|
|
60
|
+
class="gp-mx-auto gp-max-w-full ${helpers.getSettingPreloadData('gps-lazy')}"
|
|
61
|
+
style="${{
|
|
65
62
|
...wrapStyle,
|
|
63
|
+
...core.makeStyleResponsive('w', styleObject.wrapper),
|
|
66
64
|
...core.makeStyleResponsive('pl', styleObject.padding),
|
|
67
65
|
...core.makeStyleResponsive('pr', styleObject.padding)
|
|
68
66
|
}}"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
67
|
+
>
|
|
68
|
+
${element}
|
|
69
|
+
</section>
|
|
70
|
+
` : element}
|
|
73
71
|
`;
|
|
74
72
|
};
|
|
75
73
|
|
package/dist/cjs/index.js
CHANGED
|
@@ -207,6 +207,8 @@ var TrustreviewsProductReviews = require('./third-party/components/TrustreviewsP
|
|
|
207
207
|
var MyappgurusProductReviews = require('./third-party/components/MyappgurusProductReviews.js');
|
|
208
208
|
var HulkProductOptions = require('./third-party/components/HulkProductOptions.js');
|
|
209
209
|
var TrustshopProductReviews = require('./third-party/components/TrustshopProductReviews.js');
|
|
210
|
+
var HextomCountdownTimerBar = require('./third-party/components/HextomCountdownTimerBar.js');
|
|
211
|
+
var TrustBadgesBear = require('./third-party/components/TrustBadgesBear.js');
|
|
210
212
|
var index$x = require('./third-party-instant/setting/index.js');
|
|
211
213
|
var InstantJudgemeReviews = require('./third-party-instant/components/InstantJudgemeReviews.js');
|
|
212
214
|
var InstantLooxReviews = require('./third-party-instant/components/InstantLooxReviews.js');
|
|
@@ -509,6 +511,8 @@ exports.TrustreviewsProductReviews = TrustreviewsProductReviews.default;
|
|
|
509
511
|
exports.MyappgurusProductReviews = MyappgurusProductReviews.default;
|
|
510
512
|
exports.HulkProductOptions = HulkProductOptions.default;
|
|
511
513
|
exports.TrustshopProductReviews = TrustshopProductReviews.default;
|
|
514
|
+
exports.HextomCountdownTimerBar = HextomCountdownTimerBar.default;
|
|
515
|
+
exports.TrustBadgesBear = TrustBadgesBear.default;
|
|
512
516
|
exports.thirdPartyInstantSetting = index$x.default;
|
|
513
517
|
exports.InstantJudgemeReviews = InstantJudgemeReviews.default;
|
|
514
518
|
exports.InstantLooxReviews = InstantLooxReviews.default;
|
package/dist/cjs/index.liquid.js
CHANGED
|
@@ -161,6 +161,8 @@ var SeoantTrustBadgesIcon_liquid = require('./third-party/components/SeoantTrust
|
|
|
161
161
|
var TrustreviewsProductReviews_liquid = require('./third-party/components/TrustreviewsProductReviews.liquid.js');
|
|
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
|
+
var HextomCountdownTimerBar_liquid = require('./third-party/components/HextomCountdownTimerBar.liquid.js');
|
|
165
|
+
var TrustBadgesBear_liquid = require('./third-party/components/TrustBadgesBear.liquid.js');
|
|
164
166
|
var TrustshopProductReviews_liquid = require('./third-party/components/TrustshopProductReviews.liquid.js');
|
|
165
167
|
var ImageComparison_liquid = require('./image-comparison/components/ImageComparison.liquid.js');
|
|
166
168
|
var ThirdPartySlot_liquid = require('./third-party-slot/components/ThirdPartySlot.liquid.js');
|
|
@@ -345,6 +347,8 @@ exports.SeoantTrustBadgesIcon = SeoantTrustBadgesIcon_liquid.default;
|
|
|
345
347
|
exports.TrustreviewsProductReviews = TrustreviewsProductReviews_liquid.default;
|
|
346
348
|
exports.MyappgurusProductReviews = MyappgurusProductReviews_liquid.default;
|
|
347
349
|
exports.HulkProductOptions = HulkProductOptions_liquid.default;
|
|
350
|
+
exports.HextomCountdownTimerBar = HextomCountdownTimerBar_liquid.default;
|
|
351
|
+
exports.TrustBadgesBear = TrustBadgesBear_liquid.default;
|
|
348
352
|
exports.TrustshopProductReviews = TrustshopProductReviews_liquid.default;
|
|
349
353
|
exports.ImageComparison = ImageComparison_liquid.default;
|
|
350
354
|
exports.ThirdPartySlot = ThirdPartySlot_liquid.default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var core = require('@gem-sdk/core');
|
|
7
|
+
var ThirdPartyPreview = require('./ThirdPartyPreview.js');
|
|
8
|
+
var HextomCountdownTimerBar$1 = require('../configs/HextomCountdownTimerBar.js');
|
|
9
|
+
|
|
10
|
+
const HextomCountdownTimerBarContent = ()=>{
|
|
11
|
+
return /*#__PURE__*/ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
12
|
+
children: /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
13
|
+
className: "gp-p-2",
|
|
14
|
+
children: /*#__PURE__*/ jsxRuntime.jsx(ThirdPartyPreview.default, {
|
|
15
|
+
setting: {
|
|
16
|
+
label: 'Hextom: Countdown Timer Bar',
|
|
17
|
+
iconSvg: `<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="${HextomCountdownTimerBar$1.default.logoUrl}">`
|
|
18
|
+
}
|
|
19
|
+
})
|
|
20
|
+
})
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
const HextomCountdownTimerBar = ({ setting })=>{
|
|
24
|
+
return /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
25
|
+
style: {
|
|
26
|
+
...core.makeStyleResponsive('ta', setting?.align)
|
|
27
|
+
},
|
|
28
|
+
children: /*#__PURE__*/ jsxRuntime.jsx(HextomCountdownTimerBarContent, {})
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
exports.default = HextomCountdownTimerBar;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var thirdParty = require('../helpers/thirdParty.js');
|
|
6
|
+
|
|
7
|
+
const HextomCountdownTimerBar = ({ setting, advanced })=>{
|
|
8
|
+
const { align, appBlockId } = setting ?? {};
|
|
9
|
+
return thirdParty.getLiquidForAppBlock(appBlockId, align, `${advanced?.cssClass ?? ''} !gp-block`);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
exports.default = HextomCountdownTimerBar;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var core = require('@gem-sdk/core');
|
|
7
|
+
var ThirdPartyPreview = require('./ThirdPartyPreview.js');
|
|
8
|
+
var TrustBadgesBear$1 = require('../configs/TrustBadgesBear.js');
|
|
9
|
+
|
|
10
|
+
const TrustBadgesBearContent = ()=>{
|
|
11
|
+
return /*#__PURE__*/ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
12
|
+
children: /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
13
|
+
className: "gp-p-2",
|
|
14
|
+
children: /*#__PURE__*/ jsxRuntime.jsx(ThirdPartyPreview.default, {
|
|
15
|
+
setting: {
|
|
16
|
+
label: 'Trust Badges Bear',
|
|
17
|
+
iconSvg: `<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="${TrustBadgesBear$1.default.logoUrl}">`
|
|
18
|
+
}
|
|
19
|
+
})
|
|
20
|
+
})
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
const TrustBadgesBear = ({ setting })=>{
|
|
24
|
+
return /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
25
|
+
style: {
|
|
26
|
+
...core.makeStyleResponsive('ta', setting?.align)
|
|
27
|
+
},
|
|
28
|
+
children: /*#__PURE__*/ jsxRuntime.jsx(TrustBadgesBearContent, {})
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
exports.default = TrustBadgesBear;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var thirdParty = require('../helpers/thirdParty.js');
|
|
6
|
+
|
|
7
|
+
const TrustBadgesBear = ({ setting, advanced })=>{
|
|
8
|
+
const { align, appBlockId } = setting ?? {};
|
|
9
|
+
return thirdParty.getLiquidForAppBlock(appBlockId, align, `${advanced?.cssClass ?? ''} !gp-block`);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
exports.default = TrustBadgesBear;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var AppConfig = {
|
|
6
|
+
id: 'hextom-countdown-timer-bar',
|
|
7
|
+
label: 'Hextom: Countdown Timer Bar',
|
|
8
|
+
logoUrl: 'https://cdn.shopify.com/app-store/listing_images/904be13e4bba460880341eba1a5579e1/icon/CKCYtc2d5oYDEAE=.png',
|
|
9
|
+
tag: 'HextomCountdownTimerBar'
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
exports.default = AppConfig;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var AppConfig = {
|
|
6
|
+
id: 'trust-badges-bear',
|
|
7
|
+
label: 'Trust Badges Bear',
|
|
8
|
+
logoUrl: 'https://cdn.shopify.com/app-store/listing_images/c9141bfba8db18a258f290a5a639986e/icon/CLDR_q6erfwCEAE=.png',
|
|
9
|
+
tag: 'TrustBadgesBear'
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
exports.default = AppConfig;
|
|
@@ -410,6 +410,14 @@ const Selleasy = dynamic(()=>Promise.resolve().then(function () { return require
|
|
|
410
410
|
ssr: false,
|
|
411
411
|
loading: Loading.default
|
|
412
412
|
});
|
|
413
|
+
const HextomCountdownTimerBar = dynamic(()=>Promise.resolve().then(function () { return require('./components/HextomCountdownTimerBar.js'); }), {
|
|
414
|
+
ssr: false,
|
|
415
|
+
loading: Loading.default
|
|
416
|
+
});
|
|
417
|
+
const TrustBadgesBear = dynamic(()=>Promise.resolve().then(function () { return require('./components/TrustBadgesBear.js'); }), {
|
|
418
|
+
ssr: false,
|
|
419
|
+
loading: Loading.default
|
|
420
|
+
});
|
|
413
421
|
var thirdParty = {
|
|
414
422
|
TrustshopProductReviews,
|
|
415
423
|
HulkProductOptions,
|
|
@@ -511,7 +519,9 @@ var thirdParty = {
|
|
|
511
519
|
Releasit,
|
|
512
520
|
RequestQuoteHidePrice,
|
|
513
521
|
BirdChime,
|
|
514
|
-
FordeerProductLabels
|
|
522
|
+
FordeerProductLabels,
|
|
523
|
+
HextomCountdownTimerBar,
|
|
524
|
+
TrustBadgesBear
|
|
515
525
|
};
|
|
516
526
|
|
|
517
527
|
exports.default = thirdParty;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var HextomCountdownTimerBar = require('../configs/HextomCountdownTimerBar.js');
|
|
6
|
+
|
|
7
|
+
const config = {
|
|
8
|
+
tag: HextomCountdownTimerBar.default.tag,
|
|
9
|
+
label: HextomCountdownTimerBar.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/904be13e4bba460880341eba1a5579e1/icon/CKCYtc2d5oYDEAE=.png">',
|
|
11
|
+
editorConfigs: {
|
|
12
|
+
component: {
|
|
13
|
+
isThirdParty: true
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
presets: [
|
|
17
|
+
{
|
|
18
|
+
id: HextomCountdownTimerBar.default.id,
|
|
19
|
+
name: {
|
|
20
|
+
en: HextomCountdownTimerBar.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/904be13e4bba460880341eba1a5579e1/icon/CKCYtc2d5oYDEAE=.png">
|
|
26
|
+
<span class="preset-item-title">Hextom: Countdown Timer Bar</span>
|
|
27
|
+
</div>`
|
|
28
|
+
},
|
|
29
|
+
components: [
|
|
30
|
+
{
|
|
31
|
+
tag: HextomCountdownTimerBar.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: 'Fsb Custom Placement',
|
|
52
|
+
value: 'fsb-custom-placement'
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
default: 'fsb-custom-placement'
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
id: 'install',
|
|
59
|
+
type: 'open-link',
|
|
60
|
+
target: '_blank',
|
|
61
|
+
linkType: 'install',
|
|
62
|
+
href: 'https://apps.shopify.com/event-promotion-bar?utm_source=gempages',
|
|
63
|
+
appName: HextomCountdownTimerBar.default.label
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: 'openApp',
|
|
67
|
+
type: 'open-link',
|
|
68
|
+
target: '_blank',
|
|
69
|
+
linkType: 'openApp',
|
|
70
|
+
href: '',
|
|
71
|
+
appName: HextomCountdownTimerBar.default.label
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
id: 'align',
|
|
75
|
+
label: 'Alignment',
|
|
76
|
+
type: 'segment',
|
|
77
|
+
options: [
|
|
78
|
+
{
|
|
79
|
+
label: 'Left',
|
|
80
|
+
value: 'left',
|
|
81
|
+
type: 'align'
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
label: 'Center',
|
|
85
|
+
value: 'center',
|
|
86
|
+
type: 'align'
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
label: 'Right',
|
|
90
|
+
value: 'right',
|
|
91
|
+
type: 'align'
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
devices: {
|
|
95
|
+
desktop: {
|
|
96
|
+
default: 'left'
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
ui: [
|
|
104
|
+
{
|
|
105
|
+
type: 'control',
|
|
106
|
+
setting: {
|
|
107
|
+
id: 'install'
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
type: 'control',
|
|
112
|
+
setting: {
|
|
113
|
+
id: 'openApp'
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
type: 'control',
|
|
118
|
+
label: {
|
|
119
|
+
en: 'Align'
|
|
120
|
+
},
|
|
121
|
+
setting: {
|
|
122
|
+
id: 'align'
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
exports.default = config;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var TrustBadgesBear = require('../configs/TrustBadgesBear.js');
|
|
6
|
+
|
|
7
|
+
const config = {
|
|
8
|
+
tag: TrustBadgesBear.default.tag,
|
|
9
|
+
label: TrustBadgesBear.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/c9141bfba8db18a258f290a5a639986e/icon/CLDR_q6erfwCEAE=.png">',
|
|
11
|
+
editorConfigs: {
|
|
12
|
+
component: {
|
|
13
|
+
isThirdParty: true
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
presets: [
|
|
17
|
+
{
|
|
18
|
+
id: TrustBadgesBear.default.id,
|
|
19
|
+
name: {
|
|
20
|
+
en: TrustBadgesBear.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/c9141bfba8db18a258f290a5a639986e/icon/CLDR_q6erfwCEAE=.png">
|
|
26
|
+
<span class="preset-item-title">Trust Badges Bear</span>
|
|
27
|
+
</div>`
|
|
28
|
+
},
|
|
29
|
+
components: [
|
|
30
|
+
{
|
|
31
|
+
tag: TrustBadgesBear.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: 'Widget',
|
|
52
|
+
value: 'widget'
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
default: 'widget'
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
id: 'install',
|
|
59
|
+
type: 'open-link',
|
|
60
|
+
target: '_blank',
|
|
61
|
+
linkType: 'install',
|
|
62
|
+
href: 'https://apps.shopify.com/ultimate-trust-badges?utm_source=gempages',
|
|
63
|
+
appName: TrustBadgesBear.default.label
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: 'openApp',
|
|
67
|
+
type: 'open-link',
|
|
68
|
+
target: '_blank',
|
|
69
|
+
linkType: 'openApp',
|
|
70
|
+
href: 'https://admin.shopify.com/?redirect=/apps/ultimate-trust-badge',
|
|
71
|
+
appName: TrustBadgesBear.default.label
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
id: 'align',
|
|
75
|
+
label: 'Alignment',
|
|
76
|
+
type: 'segment',
|
|
77
|
+
options: [
|
|
78
|
+
{
|
|
79
|
+
label: 'Left',
|
|
80
|
+
value: 'left',
|
|
81
|
+
type: 'align'
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
label: 'Center',
|
|
85
|
+
value: 'center',
|
|
86
|
+
type: 'align'
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
label: 'Right',
|
|
90
|
+
value: 'right',
|
|
91
|
+
type: 'align'
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
devices: {
|
|
95
|
+
desktop: {
|
|
96
|
+
default: 'left'
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
ui: [
|
|
104
|
+
{
|
|
105
|
+
type: 'control',
|
|
106
|
+
setting: {
|
|
107
|
+
id: 'install'
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
type: 'control',
|
|
112
|
+
setting: {
|
|
113
|
+
id: 'openApp'
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
type: 'control',
|
|
118
|
+
label: {
|
|
119
|
+
en: 'Align'
|
|
120
|
+
},
|
|
121
|
+
setting: {
|
|
122
|
+
id: 'align'
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
exports.default = config;
|
|
@@ -103,8 +103,11 @@ 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 HextomCountdownTimerBar = require('./HextomCountdownTimerBar.js');
|
|
107
|
+
var TrustBadgesBear = require('./TrustBadgesBear.js');
|
|
106
108
|
|
|
107
109
|
var index = {
|
|
110
|
+
HextomCountdownTimerBar: HextomCountdownTimerBar.default,
|
|
108
111
|
TrustshopProductReviews: TrustshopProductReviews.default,
|
|
109
112
|
HulkProductOptions: HulkProductOptions.default,
|
|
110
113
|
TrustreviewsProductReviews: TrustreviewsProductReviews.default,
|
|
@@ -205,7 +208,8 @@ var index = {
|
|
|
205
208
|
KingProductOptions: KingProductOptions.default,
|
|
206
209
|
RequestQuoteHidePrice: RequestQuoteHidePrice.default,
|
|
207
210
|
BirdChime: BirdChime.default,
|
|
208
|
-
FordeerProductLabels: FordeerProductLabels.default
|
|
211
|
+
FordeerProductLabels: FordeerProductLabels.default,
|
|
212
|
+
TrustBadgesBear: TrustBadgesBear.default
|
|
209
213
|
};
|
|
210
214
|
|
|
211
215
|
exports.default = index;
|
package/dist/esm/builder.js
CHANGED
|
@@ -107,6 +107,8 @@ 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 HextomCountdownTimerBar from './third-party/components/HextomCountdownTimerBar.js';
|
|
111
|
+
import TrustBadgesBear from './third-party/components/TrustBadgesBear.js';
|
|
110
112
|
import CartLineVariant from './cart/components/CartLineVariant.js';
|
|
111
113
|
import Cart from './cart/components/Cart.js';
|
|
112
114
|
import CartList from './cart/components/CartList.js';
|
|
@@ -475,7 +477,9 @@ var builder = {
|
|
|
475
477
|
ArticleReadMore,
|
|
476
478
|
Marquee,
|
|
477
479
|
MarqueeItem,
|
|
478
|
-
ProductBadge
|
|
480
|
+
ProductBadge,
|
|
481
|
+
HextomCountdownTimerBar,
|
|
482
|
+
TrustBadgesBear
|
|
479
483
|
};
|
|
480
484
|
|
|
481
485
|
export { builder as default };
|
|
@@ -51,13 +51,11 @@ const Row = ({ className, children, setting, builderAttrs, builderProps, styles,
|
|
|
51
51
|
'left',
|
|
52
52
|
'bottom',
|
|
53
53
|
'right',
|
|
54
|
-
'z'
|
|
55
|
-
'ml',
|
|
56
|
-
'mr'
|
|
54
|
+
'z'
|
|
57
55
|
], style);
|
|
58
56
|
const getStyles = ()=>{
|
|
59
57
|
let result = {
|
|
60
|
-
...restStyle,
|
|
58
|
+
...isSection ? restStyle : style,
|
|
61
59
|
...makeStyleResponsive('cg', verticalGutter),
|
|
62
60
|
...layout ? composeGridLayout(layout) : makeStyleResponsive('gtc', responsive),
|
|
63
61
|
...makeStyleResponsive('w', styleObject.content)
|
|
@@ -115,7 +113,7 @@ const Row = ({ className, children, setting, builderAttrs, builderProps, styles,
|
|
|
115
113
|
ref: ref,
|
|
116
114
|
style: getStyles(),
|
|
117
115
|
className: cls(className, builderProps?.uid, 'gp-mb-0 gp-grid gp-mx-auto gp-max-w-full gp-gap-y-0 gp-transition-colors gp-duration-200 gp-ease-in-out ', {
|
|
118
|
-
'gp-content-visibility-hidden': mode !== 'edit' && lazy && !inView
|
|
116
|
+
'gp-content-visibility-hidden': mode !== 'edit' && isSection && lazy && !inView
|
|
119
117
|
}),
|
|
120
118
|
children: inView || mode !== 'edit' ? /*#__PURE__*/ jsx(Fragment, {
|
|
121
119
|
children: isEmptyChildren(children) ? /*#__PURE__*/ jsx(ChildrenDroppable, {}) : Children.map(children, (el)=>{
|
|
@@ -154,15 +152,16 @@ const Row = ({ className, children, setting, builderAttrs, builderProps, styles,
|
|
|
154
152
|
})
|
|
155
153
|
]
|
|
156
154
|
}),
|
|
157
|
-
/*#__PURE__*/ jsx(Element, {
|
|
158
|
-
className: "gp-max-w-full [&_*]:gp-max-w-full",
|
|
155
|
+
isSection ? /*#__PURE__*/ jsx(Element, {
|
|
156
|
+
className: "gp-mx-auto gp-max-w-full [&_*]:gp-max-w-full",
|
|
159
157
|
style: {
|
|
160
158
|
...wrapStyle,
|
|
159
|
+
...makeStyleResponsive('w', styleObject.wrapper),
|
|
161
160
|
...makeStyleResponsive('pl', styleObject.padding),
|
|
162
161
|
...makeStyleResponsive('pr', styleObject.padding)
|
|
163
162
|
},
|
|
164
163
|
children: element
|
|
165
|
-
})
|
|
164
|
+
}) : element
|
|
166
165
|
]
|
|
167
166
|
});
|
|
168
167
|
};
|