@gem-sdk/components 2.0.0-dev.387 → 2.0.0-dev.389
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/product/components/ProductBundle/components/ProductBundleDiscount.liquid.js +7 -2
- package/dist/cjs/third-party/components/EcomsendBackInStockAlert.liquid.js +12 -3
- package/dist/cjs/third-party/setting/EcomsendBackInStockAlert/index.js +0 -5
- package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscount.liquid.js +7 -2
- package/dist/esm/third-party/components/EcomsendBackInStockAlert.liquid.js +12 -3
- package/dist/esm/third-party/setting/EcomsendBackInStockAlert/index.js +0 -5
- package/package.json +2 -2
package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscount.liquid.js
CHANGED
|
@@ -52,11 +52,16 @@ const ProductBundleDiscount = ({ rawChildren, setting, styles: styles$1, advance
|
|
|
52
52
|
return core.template`
|
|
53
53
|
{% for productBundle in productBundleItem %}
|
|
54
54
|
${system.Liquid(`
|
|
55
|
-
{%
|
|
55
|
+
{% assign attrs = productBundle | split: '($3)' %}
|
|
56
56
|
{% assign parsedAttrs = '' %}
|
|
57
57
|
{% for attr in attrs %}
|
|
58
58
|
{% assign attrParts = attr | split: '($:)' %}
|
|
59
|
-
{% assign
|
|
59
|
+
{% assign attrKey = attrParts[0] %}
|
|
60
|
+
{% assign attrValue = attrParts[2] | strip %}
|
|
61
|
+
|
|
62
|
+
{% if attrValue != '' %}
|
|
63
|
+
{% assign parsedAttrs = parsedAttrs | append: attrKey | append: '=' | append: attrValue | append: ' ' %}
|
|
64
|
+
{% endif %}
|
|
60
65
|
{% endfor %}
|
|
61
66
|
`)}
|
|
62
67
|
${system.LiquidIf(`forloop.index0 == ${i}`, renderBundleItem('{{ parsedAttrs | strip }}', i))}
|
|
@@ -2,11 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var core = require('@gem-sdk/core');
|
|
6
6
|
|
|
7
7
|
const EcomsendBackInStockAlert = ({ setting, advanced })=>{
|
|
8
|
-
const { align
|
|
9
|
-
return
|
|
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 id="sealapps-bis-widget"></div>
|
|
17
|
+
</div>
|
|
18
|
+
`;
|
|
10
19
|
};
|
|
11
20
|
|
|
12
21
|
exports.default = EcomsendBackInStockAlert;
|
package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscount.liquid.js
CHANGED
|
@@ -48,11 +48,16 @@ const ProductBundleDiscount = ({ rawChildren, setting, styles, advanced, style }
|
|
|
48
48
|
return template`
|
|
49
49
|
{% for productBundle in productBundleItem %}
|
|
50
50
|
${Liquid(`
|
|
51
|
-
{%
|
|
51
|
+
{% assign attrs = productBundle | split: '($3)' %}
|
|
52
52
|
{% assign parsedAttrs = '' %}
|
|
53
53
|
{% for attr in attrs %}
|
|
54
54
|
{% assign attrParts = attr | split: '($:)' %}
|
|
55
|
-
{% assign
|
|
55
|
+
{% assign attrKey = attrParts[0] %}
|
|
56
|
+
{% assign attrValue = attrParts[2] | strip %}
|
|
57
|
+
|
|
58
|
+
{% if attrValue != '' %}
|
|
59
|
+
{% assign parsedAttrs = parsedAttrs | append: attrKey | append: '=' | append: attrValue | append: ' ' %}
|
|
60
|
+
{% endif %}
|
|
56
61
|
{% endfor %}
|
|
57
62
|
`)}
|
|
58
63
|
${LiquidIf(`forloop.index0 == ${i}`, renderBundleItem('{{ parsedAttrs | strip }}', i))}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { template, makeStyleResponsive } from '@gem-sdk/core';
|
|
2
2
|
|
|
3
3
|
const EcomsendBackInStockAlert = ({ setting, advanced })=>{
|
|
4
|
-
const { align
|
|
5
|
-
return
|
|
4
|
+
const { align } = setting ?? {};
|
|
5
|
+
return template`
|
|
6
|
+
<div
|
|
7
|
+
class="${advanced?.cssClass}"
|
|
8
|
+
style="${{
|
|
9
|
+
...makeStyleResponsive('ta', align)
|
|
10
|
+
}}"
|
|
11
|
+
>
|
|
12
|
+
<div id="sealapps-bis-widget"></div>
|
|
13
|
+
</div>
|
|
14
|
+
`;
|
|
6
15
|
};
|
|
7
16
|
|
|
8
17
|
export { EcomsendBackInStockAlert as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.389",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"relationship": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/get-control-relationship.js && node ./scripts/get-element-relationship.js"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@gem-sdk/core": "2.0.0-dev.
|
|
25
|
+
"@gem-sdk/core": "2.0.0-dev.388",
|
|
26
26
|
"@gem-sdk/styles": "2.0.0-dev.381",
|
|
27
27
|
"@gem-sdk/system": "2.0.0-dev.371",
|
|
28
28
|
"@types/react-transition-group": "^4.4.5"
|