@useinsider/guido 3.14.0-beta.1e474dd → 3.14.0-beta.38ec3aa
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/composables/useEmailTemplateApplier.js +46 -32
- package/dist/composables/useHtmlValidator.js +50 -50
- package/dist/config/i18n/en/labels.json.js +3 -7
- package/dist/config/migrator/recommendation/compositionMapper.js +23 -26
- package/dist/config/migrator/recommendation/htmlBuilder.js +155 -156
- package/dist/extensions/Blocks/Recommendation/constants/selectors.js +13 -15
- package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +314 -346
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +43 -44
- package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +16 -16
- package/dist/extensions/Blocks/Recommendation/templates/list/template.js +16 -16
- package/dist/extensions/Blocks/Recommendation/templates/utils.js +120 -120
- package/dist/extensions/Blocks/Recommendation/utils/captureStyleTemplates.js +54 -55
- package/dist/extensions/Blocks/common-control.js +35 -42
- package/dist/src/composables/useHtmlValidator.d.ts +2 -3
- package/dist/src/config/migrator/recommendation/types.d.ts +0 -1
- package/dist/src/extensions/Blocks/Recommendation/constants/index.d.ts +1 -1
- package/dist/src/extensions/Blocks/Recommendation/constants/selectors.d.ts +0 -4
- package/dist/src/extensions/Blocks/Recommendation/controls/cardComposition/index.d.ts +5 -22
- package/dist/src/extensions/Blocks/Recommendation/templates/utils.d.ts +11 -12
- package/dist/src/extensions/Blocks/common-control.d.ts +1 -3
- package/dist/src/stores/dynamic-content.d.ts +8 -0
- package/dist/src/utils/registerUsedDynamicContent.d.ts +8 -0
- package/dist/stores/dynamic-content.js +12 -2
- package/dist/utils/registerUsedDynamicContent.js +23 -0
- package/package.json +1 -1
- package/dist/extensions/Blocks/Recommendation/utils/compositionKeys.js +0 -89
- package/dist/src/extensions/Blocks/Recommendation/utils/compositionKeys.d.ts +0 -52
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const
|
|
1
|
+
const c = ".recommendation-block-v2", t = ".ins-recommendation-product-container", o = ".ins-recommendation-desktop-container", n = ".ins-recommendation-mobile-container", _ = ".ins-recommendation-mobile-row", r = "reco-v3-button", R = "ins-skip-compile", e = {
|
|
2
2
|
CURRENCY: "currency",
|
|
3
3
|
SYMBOL: "currency-symbol",
|
|
4
4
|
ALIGNMENT: "currency-alignment",
|
|
5
5
|
THOUSAND_SEPARATOR: "currency-thousand-separator",
|
|
6
6
|
DECIMAL_SEPARATOR: "currency-decimal-separator",
|
|
7
7
|
DECIMAL_COUNT: "currency-decimal-count"
|
|
8
|
-
}, O = "productImage",
|
|
8
|
+
}, O = "productImage", s = "productName", E = "productPrice", i = "productOldPrice", A = "productOmnibusPrice", C = "productOmnibusDiscount", u = "productButton", I = "customAttr:", S = "data-custom-attributes", m = "product-attr", U = "product_attribute.", T = /* @__PURE__ */ new Set([
|
|
9
9
|
"name",
|
|
10
10
|
// productName
|
|
11
11
|
"price",
|
|
@@ -20,33 +20,31 @@ const t = ".recommendation-block-v2", c = ".ins-recommendation-product-container
|
|
|
20
20
|
// productOmnibusPrice
|
|
21
21
|
"omnibus_discount"
|
|
22
22
|
// productOmnibusDiscount
|
|
23
|
-
]),
|
|
23
|
+
]), a = /* @__PURE__ */ new Set([
|
|
24
24
|
...T,
|
|
25
25
|
"currency",
|
|
26
26
|
"discount"
|
|
27
27
|
]);
|
|
28
28
|
export {
|
|
29
29
|
I as ATTR_CUSTOM_PREFIX,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
S as ATTR_PRODUCT_ATTR,
|
|
30
|
+
S as ATTR_DATA_CUSTOM_ATTRIBUTES,
|
|
31
|
+
m as ATTR_PRODUCT_ATTR,
|
|
33
32
|
u as ATTR_PRODUCT_BUTTON,
|
|
34
33
|
O as ATTR_PRODUCT_IMAGE,
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
s as ATTR_PRODUCT_NAME,
|
|
35
|
+
i as ATTR_PRODUCT_OLD_PRICE,
|
|
37
36
|
C as ATTR_PRODUCT_OMNIBUS_DISCOUNT,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
A as ATTR_PRODUCT_OMNIBUS_PRICE,
|
|
38
|
+
E as ATTR_PRODUCT_PRICE,
|
|
39
|
+
c as BLOCK_ROOT_SELECTOR,
|
|
41
40
|
T as BUILT_IN_DEFAULT_ATTRIBUTES,
|
|
42
|
-
|
|
41
|
+
t as CONTAINER_SELECTOR,
|
|
43
42
|
r as CSS_CLASS_RECO_BUTTON,
|
|
44
43
|
R as CSS_CLASS_SKIP_COMPILE,
|
|
45
44
|
e as CURRENCY_ATTR,
|
|
46
45
|
o as DESKTOP_CONTAINER_SELECTOR,
|
|
47
46
|
n as MOBILE_CONTAINER_SELECTOR,
|
|
48
47
|
_ as MOBILE_ROW_SELECTOR,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
m as SELECTOR_ATTRIBUTE_ROW
|
|
48
|
+
U as PRODUCT_ATTRIBUTE_PREFIX,
|
|
49
|
+
a as RECOMMENDATION_VARIABLE_BUILTIN_ATTRIBUTES
|
|
52
50
|
};
|