@useinsider/guido 3.15.0-beta.eeb8471 → 3.15.0-beta.f3d938a

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.
@@ -1,11 +1,11 @@
1
- const t = ".recommendation-block-v2", c = ".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 = {
1
+ const t = ".recommendation-block-v2", c = ".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", E = "productName", s = "productPrice", A = "productOldPrice", i = "productOmnibusPrice", C = "productOmnibusDiscount", u = "productButton", I = "customAttr:", a = "data-custom-attributes", S = "product-attr", m = ".recommendation-attribute-row", U = "data-attribute-type", d = "product_attribute.", T = /* @__PURE__ */ new Set([
8
+ }, O = "productImage", A = "productName", s = "productPrice", E = "productOldPrice", i = "productOmnibusPrice", C = "productOmnibusDiscount", u = "productButton", a = "customAttr:", I = "data-custom-attributes", S = "data-card-composition", m = "product-attr", U = ".recommendation-attribute-row", d = "data-attribute-type", N = "product_attribute.", T = /* @__PURE__ */ new Set([
9
9
  "name",
10
10
  // productName
11
11
  "price",
@@ -20,33 +20,34 @@ const t = ".recommendation-block-v2", c = ".ins-recommendation-product-container
20
20
  // productOmnibusPrice
21
21
  "omnibus_discount"
22
22
  // productOmnibusDiscount
23
- ]), N = /* @__PURE__ */ new Set([
23
+ ]), P = /* @__PURE__ */ new Set([
24
24
  ...T,
25
25
  "currency",
26
26
  "discount"
27
27
  ]);
28
28
  export {
29
- I as ATTR_CUSTOM_PREFIX,
30
- U as ATTR_DATA_ATTRIBUTE_TYPE,
31
- a as ATTR_DATA_CUSTOM_ATTRIBUTES,
32
- S as ATTR_PRODUCT_ATTR,
29
+ a as ATTR_CUSTOM_PREFIX,
30
+ d as ATTR_DATA_ATTRIBUTE_TYPE,
31
+ S as ATTR_DATA_CARD_COMPOSITION,
32
+ I as ATTR_DATA_CUSTOM_ATTRIBUTES,
33
+ m as ATTR_PRODUCT_ATTR,
33
34
  u as ATTR_PRODUCT_BUTTON,
34
35
  O as ATTR_PRODUCT_IMAGE,
35
- E as ATTR_PRODUCT_NAME,
36
- A as ATTR_PRODUCT_OLD_PRICE,
36
+ A as ATTR_PRODUCT_NAME,
37
+ E as ATTR_PRODUCT_OLD_PRICE,
37
38
  C as ATTR_PRODUCT_OMNIBUS_DISCOUNT,
38
39
  i as ATTR_PRODUCT_OMNIBUS_PRICE,
39
40
  s as ATTR_PRODUCT_PRICE,
40
41
  t as BLOCK_ROOT_SELECTOR,
41
42
  T as BUILT_IN_DEFAULT_ATTRIBUTES,
42
43
  c as CONTAINER_SELECTOR,
43
- r as CSS_CLASS_RECO_BUTTON,
44
- R as CSS_CLASS_SKIP_COMPILE,
44
+ R as CSS_CLASS_RECO_BUTTON,
45
+ r as CSS_CLASS_SKIP_COMPILE,
45
46
  e as CURRENCY_ATTR,
46
47
  o as DESKTOP_CONTAINER_SELECTOR,
47
48
  n as MOBILE_CONTAINER_SELECTOR,
48
49
  _ as MOBILE_ROW_SELECTOR,
49
- d as PRODUCT_ATTRIBUTE_PREFIX,
50
- N as RECOMMENDATION_VARIABLE_BUILTIN_ATTRIBUTES,
51
- m as SELECTOR_ATTRIBUTE_ROW
50
+ N as PRODUCT_ATTRIBUTE_PREFIX,
51
+ P as RECOMMENDATION_VARIABLE_BUILTIN_ATTRIBUTES,
52
+ U as SELECTOR_ATTRIBUTE_ROW
52
53
  };
@@ -1,7 +1,7 @@
1
1
  import { ModificationDescription as d } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
2
  import { CommonControl as s } from "../../../common-control.js";
3
3
  import { getCurrentLayout as l } from "../main/utils.js";
4
- const i = "recommendation-card-background-color-control", e = {
4
+ const u = "recommendation-card-background-color-control", e = {
5
5
  CARD_BACKGROUND_COLOR: "cardBackgroundColor"
6
6
  }, a = {
7
7
  GRID: ".product-card-segment",
@@ -9,17 +9,13 @@ const i = "recommendation-card-background-color-control", e = {
9
9
  };
10
10
  class _ extends s {
11
11
  getId() {
12
- return i;
12
+ return u;
13
13
  }
14
14
  getTemplate() {
15
- return `
16
- <div class="card-bg-control-container">
17
- ${this._GuTwoColumns([
15
+ return this._GuTwoColumns([
18
16
  this._GuLabel({ text: this.api.translate("Card Background Color") }),
19
17
  this._GuColorPicker(e.CARD_BACKGROUND_COLOR)
20
- ])}
21
- </div>
22
- `;
18
+ ]);
23
19
  }
24
20
  onRender() {
25
21
  this._setFormValues(), this._listenToFormUpdates();
@@ -75,6 +71,6 @@ class _ extends s {
75
71
  }
76
72
  }
77
73
  export {
78
- i as CARD_BACKGROUND_COLOR_CONTROL_ID,
74
+ u as CARD_BACKGROUND_COLOR_CONTROL_ID,
79
75
  _ as CardBackgroundColorControl
80
76
  };