@useinsider/guido 2.1.0-beta.c1e85ba → 2.1.0-beta.c305789
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/README.md +1 -3
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +15 -14
- package/dist/components/organisms/header/EditorActions.vue.js +10 -8
- package/dist/components/organisms/header/EditorActions.vue2.js +40 -31
- package/dist/components/organisms/header/MigrationConfirmModal.vue.js +17 -0
- package/dist/components/organisms/header/MigrationConfirmModal.vue2.js +41 -0
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.js +1 -1
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue2.js +19 -19
- package/dist/composables/useHtmlValidator.js +114 -104
- package/dist/composables/useRecommendation.js +54 -21
- package/dist/composables/useSave.js +12 -16
- package/dist/composables/useStripo.js +57 -59
- package/dist/composables/useStripoEventHandler.js +12 -27
- package/dist/composables/useVersionHistoryApi.js +1 -1
- package/dist/config/compiler/recommendationCompilerRules.js +45 -39
- package/dist/config/compiler/utils/recommendationCompilerUtils.js +121 -0
- package/dist/config/i18n/en/index.js +11 -0
- package/dist/config/i18n/en/labels.json.js +12 -0
- package/dist/config/i18n/en/toasters.json.js +56 -0
- package/dist/config/i18n/en/tooltips.json.js +82 -0
- package/dist/config/i18n/index.js +7 -0
- package/dist/config/migrator/itemsBlockMigrator.js +131 -121
- package/dist/config/migrator/recommendationMigrator.js +45 -40
- package/dist/enums/extensions/recommendationBlock.js +1 -1
- package/dist/enums/recommendation.js +16 -15
- package/dist/enums/unsubscribe.js +21 -25
- package/dist/extensions/Blocks/Items/block.js +45 -25
- package/dist/extensions/Blocks/Items/iconsRegistry.js +6 -5
- package/dist/extensions/Blocks/Items/items.css.js +48 -0
- package/dist/extensions/Blocks/Recommendation/block.js +153 -9
- package/dist/extensions/Blocks/Recommendation/constants/blockIds.js +4 -0
- package/dist/extensions/Blocks/Recommendation/constants/controlIds.js +4 -0
- package/dist/extensions/Blocks/Recommendation/constants/defaultConfig.js +66 -0
- package/dist/extensions/Blocks/Recommendation/constants/layout.js +22 -0
- package/dist/extensions/Blocks/Recommendation/constants/selectors.js +21 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/index.js +64 -0
- package/dist/extensions/Blocks/Recommendation/controls/cardBackground/index.js +80 -0
- package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +232 -0
- package/dist/extensions/Blocks/Recommendation/controls/image/index.js +19 -0
- package/dist/extensions/Blocks/Recommendation/controls/layout/index.js +92 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +102 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/currency.js +209 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/filters.js +52 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +250 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/locale.js +70 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/productLayout.js +160 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/shuffle.js +67 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +307 -0
- package/dist/extensions/Blocks/Recommendation/controls/mobileLayout/cssRules.js +21 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/index.js +46 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +108 -0
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/index.js +44 -0
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.js +48 -0
- package/dist/extensions/Blocks/Recommendation/controls/{omnibusDiscountTextAfterControl.js → omnibusDiscount/textAfter.js} +16 -14
- package/dist/extensions/Blocks/Recommendation/controls/{omnibusDiscountTextBeforeControl.js → omnibusDiscount/textBefore.js} +16 -14
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/index.js +48 -0
- package/dist/extensions/Blocks/Recommendation/controls/{omnibusPriceTextAfterControl.js → omnibusPrice/textAfter.js} +16 -14
- package/dist/extensions/Blocks/Recommendation/controls/{omnibusPriceTextBeforeControl.js → omnibusPrice/textBefore.js} +14 -12
- package/dist/extensions/Blocks/Recommendation/controls/price/index.js +44 -0
- package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +222 -0
- package/dist/extensions/Blocks/Recommendation/extension.js +40 -17
- package/dist/extensions/Blocks/Recommendation/iconsRegistry.js +21 -4
- package/dist/extensions/Blocks/Recommendation/recommendation.css.js +61 -4
- package/dist/extensions/Blocks/Recommendation/services/configService.js +240 -0
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +21 -10
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +254 -207
- package/dist/extensions/Blocks/Recommendation/templates/grid/elementRenderer.js +228 -0
- package/dist/extensions/Blocks/Recommendation/templates/grid/migration.js +251 -0
- package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +66 -0
- package/dist/extensions/Blocks/Recommendation/templates/index.js +12 -0
- package/dist/extensions/Blocks/Recommendation/templates/list/elementRenderer.js +169 -0
- package/dist/extensions/Blocks/Recommendation/templates/list/template.js +73 -0
- package/dist/extensions/Blocks/Recommendation/templates/utils.js +134 -0
- package/dist/extensions/Blocks/Recommendation/types/nodeConfig.js +6 -0
- package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +9 -9
- package/dist/extensions/Blocks/Recommendation/utils/preserveTextStyles.js +26 -15
- package/dist/extensions/Blocks/Recommendation/utils/priceFormatter.js +29 -0
- package/dist/extensions/Blocks/Recommendation/utils/tagName.js +46 -0
- package/dist/extensions/Blocks/Unsubscribe/block.js +29 -29
- package/dist/extensions/Blocks/Unsubscribe/control.js +12 -9
- package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +13 -11
- package/dist/extensions/Blocks/Unsubscribe/styles.css.js +31 -1
- package/dist/extensions/Blocks/common-control.js +12 -4
- package/dist/extensions/Blocks/common-icons.js +39 -0
- package/dist/extensions/Blocks/controlFactories.js +125 -93
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +242 -186
- package/dist/services/recommendationApi.js +11 -8
- package/dist/services/stripoApi.js +19 -52
- package/dist/services/templateLibraryApi.js +16 -13
- package/dist/src/@types/events.d.ts +2 -38
- package/dist/src/components/Guido.vue.d.ts +1 -1
- package/dist/src/components/organisms/header/EditorActions.vue.d.ts +1 -1
- package/dist/src/components/organisms/header/HeaderWrapper.vue.d.ts +1 -1
- package/dist/src/components/organisms/header/MigrationConfirmModal.vue.d.ts +6 -0
- package/dist/src/components/organisms/header/RightSlot.vue.d.ts +1 -1
- package/dist/src/components/wrappers/WpDrawer.vue.d.ts +1 -1
- package/dist/src/components/wrappers/WpModal.vue.d.ts +2 -2
- package/dist/src/composables/useRecommendation.d.ts +1 -0
- package/dist/src/config/compiler/utils/recommendationCompilerUtils.d.ts +17 -0
- package/dist/src/config/i18n/en/index.d.ts +1 -0
- package/dist/src/config/i18n/index.d.ts +16 -0
- package/dist/src/enums/unsubscribe.d.ts +0 -3
- package/dist/src/extensions/Blocks/Items/block.d.ts +1 -0
- package/dist/src/extensions/Blocks/Recommendation/block.d.ts +68 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/blockIds.d.ts +13 -0
- package/dist/src/extensions/Blocks/Recommendation/{constants.d.ts → constants/controlIds.d.ts} +0 -24
- package/dist/src/extensions/Blocks/Recommendation/constants/defaultConfig.d.ts +49 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/index.d.ts +13 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/layout.d.ts +41 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/selectors.d.ts +35 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/index.d.ts +143 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/cardBackground/index.d.ts +31 -0
- package/dist/src/extensions/Blocks/Recommendation/{cardCompositionControl.d.ts → controls/cardComposition/index.d.ts} +23 -3
- package/dist/src/extensions/Blocks/Recommendation/controls/image/index.d.ts +35 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +21 -589
- package/dist/src/extensions/Blocks/Recommendation/controls/layout/index.d.ts +37 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/algorithm.d.ts +29 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/currency.d.ts +52 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/filters.d.ts +22 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +79 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/locale.d.ts +24 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/productLayout.d.ts +60 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/shuffle.d.ts +23 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/utils.d.ts +221 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/mobileLayout/cssRules.d.ts +29 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/index.d.ts +97 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/textTrim.d.ts +34 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/index.d.ts +95 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.d.ts +100 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/textAfter.d.ts +15 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.d.ts +15 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/index.d.ts +100 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.d.ts +15 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.d.ts +15 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/price/index.d.ts +95 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/spacing/index.d.ts +83 -0
- package/dist/src/extensions/Blocks/Recommendation/extension.d.ts +9 -0
- package/dist/src/extensions/Blocks/Recommendation/services/configService.d.ts +151 -0
- package/dist/src/extensions/Blocks/Recommendation/services/index.d.ts +6 -0
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +138 -468
- package/dist/src/extensions/Blocks/Recommendation/templates/grid/elementRenderer.d.ts +20 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/{migrationTemplate.d.ts → grid/migration.d.ts} +11 -4
- package/dist/src/extensions/Blocks/Recommendation/templates/grid/template.d.ts +33 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/index.d.ts +41 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/list/elementRenderer.d.ts +8 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/list/migration.d.ts +25 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/list/template.d.ts +18 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/utils.d.ts +66 -0
- package/dist/src/extensions/Blocks/Recommendation/types/index.d.ts +7 -0
- package/dist/src/extensions/Blocks/Recommendation/types/nodeConfig.d.ts +166 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/priceFormatter.d.ts +33 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/stylePreserver.d.ts +113 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/tagName.d.ts +77 -0
- package/dist/src/extensions/Blocks/Unsubscribe/control.d.ts +1 -0
- package/dist/src/extensions/Blocks/common-control.d.ts +5 -0
- package/dist/src/extensions/Blocks/common-icons.d.ts +1 -0
- package/dist/src/services/stripoApi.d.ts +0 -5
- package/dist/src/stores/editor.d.ts +0 -23
- package/dist/src/stores/template.d.ts +3 -0
- package/dist/static/styles/components/notification.css.js +18 -0
- package/dist/static/styles/components/tools.css.js +6 -2
- package/dist/static/styles/customEditorStyle.css.js +35 -11
- package/dist/static/styles/variables.css.js +2 -0
- package/dist/static/templates/empty/index.html.js +74 -0
- package/dist/static/templates/empty/style.css.js +779 -0
- package/dist/stores/editor.js +1 -2
- package/dist/stores/template.js +9 -0
- package/dist/stores/unsubscribe.js +37 -34
- package/dist/utils/pairProductVariables.js +57 -56
- package/dist/utils/templatePreparation.js +15 -14
- package/package.json +1 -1
- package/dist/composables/useSyncModuleExtractor.js +0 -45
- package/dist/extensions/Blocks/Recommendation/cardCompositionControl.js +0 -187
- package/dist/extensions/Blocks/Recommendation/constants.js +0 -13
- package/dist/extensions/Blocks/Recommendation/control.js +0 -336
- package/dist/extensions/Blocks/Recommendation/controls/cardBackgroundColorControl.js +0 -68
- package/dist/extensions/Blocks/Recommendation/controls/index.js +0 -245
- package/dist/extensions/Blocks/Recommendation/controls/nameTextTrimControl.js +0 -74
- package/dist/extensions/Blocks/Recommendation/controls/spacingControl.js +0 -188
- package/dist/extensions/Blocks/Recommendation/templates/blockTemplate.js +0 -181
- package/dist/extensions/Blocks/Recommendation/templates/migrationTemplate.js +0 -189
- package/dist/extensions/Blocks/Recommendation/templates/templateUtils.js +0 -209
- package/dist/src/composables/useSyncModuleExtractor.d.ts +0 -4
- package/dist/src/extensions/Blocks/Recommendation/control.d.ts +0 -38
- package/dist/src/extensions/Blocks/Recommendation/controls/nameTextTrimControl.d.ts +0 -16
- package/dist/src/extensions/Blocks/Recommendation/templates/blockTemplate.d.ts +0 -16
- package/dist/src/extensions/Blocks/Recommendation/templates/templateUtils.d.ts +0 -52
- package/dist/src/mock/api/settings.d.ts +0 -2
|
@@ -1,24 +1,29 @@
|
|
|
1
1
|
var h = Object.defineProperty;
|
|
2
|
-
var T = (
|
|
3
|
-
var
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
2
|
+
var T = (d, e, t) => e in d ? h(d, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[e] = t;
|
|
3
|
+
var A = (d, e, t) => T(d, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { BLOCK_ID as S } from "../../extensions/Blocks/Recommendation/block.js";
|
|
5
|
+
import P, { prepareProductRows as q } from "../../extensions/Blocks/Recommendation/templates/grid/migration.js";
|
|
6
|
+
import { useTemplateStore as w } from "../../stores/template.js";
|
|
7
|
+
import { getDefaultProducts as B } from "../../extensions/Blocks/Recommendation/templates/utils.js";
|
|
8
|
+
class $ {
|
|
7
9
|
constructor() {
|
|
8
|
-
|
|
10
|
+
A(this, "parser");
|
|
9
11
|
this.parser = new DOMParser();
|
|
10
12
|
}
|
|
11
13
|
migrate(e) {
|
|
12
14
|
try {
|
|
13
15
|
const t = this.parser.parseFromString(e, "text/html"), s = t.querySelectorAll(
|
|
14
16
|
'td.ins-recommendation-v3-block-1, td.product-block[esd-handler-name*="EmailRecommendationV3"]'
|
|
15
|
-
);
|
|
16
|
-
return
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
), o = w();
|
|
18
|
+
return o.migrations = {
|
|
19
|
+
...o.migrations,
|
|
20
|
+
[S]: s.length
|
|
21
|
+
}, s.length === 0 ? e : (s.forEach((n) => {
|
|
22
|
+
const r = n.getAttribute("id"), i = this.extractBgColor(n), u = this.extractTitle(n), c = this.extractProductRows(n), l = P.replace("{-{-TITLE-}-}", u).replace("{-{-PRODUCT_ROWS-}-}", c), a = this.parser.parseFromString(
|
|
23
|
+
`<table id="tempDoc"><tbody><tr>${l}</tr></tbody></table>`,
|
|
19
24
|
"text/html"
|
|
20
25
|
).querySelector(".ins-recommendation-v3-block-v2");
|
|
21
|
-
a &&
|
|
26
|
+
a && n.parentNode && (r && a.setAttribute("id", r), i && a.setAttribute("bgcolor", i), n.parentNode.replaceChild(a, n));
|
|
22
27
|
}), t.documentElement.outerHTML);
|
|
23
28
|
} catch (t) {
|
|
24
29
|
return console.error("RecommendationMigrator failed:", t), e;
|
|
@@ -64,7 +69,7 @@ class w {
|
|
|
64
69
|
* @returns HTML string for the title block
|
|
65
70
|
*/
|
|
66
71
|
extractTitle(e) {
|
|
67
|
-
var
|
|
72
|
+
var g, a;
|
|
68
73
|
const t = e.querySelector(".ext-recommendation-title");
|
|
69
74
|
if (!t)
|
|
70
75
|
return this.buildTitleBlock({
|
|
@@ -76,7 +81,7 @@ class w {
|
|
|
76
81
|
});
|
|
77
82
|
const s = t.querySelector("p");
|
|
78
83
|
if (!s) {
|
|
79
|
-
const p = ((
|
|
84
|
+
const p = ((g = t.textContent) == null ? void 0 : g.trim()) || "You May Also Like!", b = t.getAttribute("align") || "center";
|
|
80
85
|
return this.buildTitleBlock({
|
|
81
86
|
text: p,
|
|
82
87
|
isBold: !0,
|
|
@@ -85,13 +90,13 @@ class w {
|
|
|
85
90
|
styles: "font-size: 28px; color: #333333;"
|
|
86
91
|
});
|
|
87
92
|
}
|
|
88
|
-
const o = ((
|
|
93
|
+
const o = ((a = s.textContent) == null ? void 0 : a.trim()) || "You May Also Like!", n = t.getAttribute("align") || s.getAttribute("align") || "center", r = s.getAttribute("style") || "", i = /font-weight\s*:\s*bold/i.test(r) || !!s.querySelector("b, strong"), u = /font-style\s*:\s*italic/i.test(r) || !!s.querySelector("i, em"), c = this.removeStyleProperties(r, ["font-weight", "font-style"]), l = this.convertInlineToBlock(c);
|
|
89
94
|
return this.buildTitleBlock({
|
|
90
95
|
text: o,
|
|
91
96
|
isBold: i,
|
|
92
97
|
isItalic: u,
|
|
93
|
-
align:
|
|
94
|
-
styles:
|
|
98
|
+
align: n,
|
|
99
|
+
styles: l
|
|
95
100
|
});
|
|
96
101
|
}
|
|
97
102
|
/**
|
|
@@ -103,8 +108,8 @@ class w {
|
|
|
103
108
|
const t = this.extractProductConfig(e);
|
|
104
109
|
if (!t)
|
|
105
110
|
return console.warn("[RecommendationMigrator] No product config found, using defaults"), this.generateProductRows(6, 3, {});
|
|
106
|
-
const { totalCount: s, productsPerRow: o } = t,
|
|
107
|
-
return this.generateProductRows(s, o,
|
|
111
|
+
const { totalCount: s, productsPerRow: o } = t, n = this.extractProductStyles(e);
|
|
112
|
+
return this.generateProductRows(s, o, n);
|
|
108
113
|
}
|
|
109
114
|
/**
|
|
110
115
|
* Extracts Stripo padding/margin utility classes from a class string
|
|
@@ -152,12 +157,12 @@ class w {
|
|
|
152
157
|
* @returns HTML string for product rows with applied styles
|
|
153
158
|
*/
|
|
154
159
|
generateProductRows(e, t, s) {
|
|
155
|
-
const o =
|
|
160
|
+
const o = B(), n = [];
|
|
156
161
|
for (let i = 0; i < e; i++) {
|
|
157
162
|
const u = o[i % o.length];
|
|
158
|
-
|
|
163
|
+
n.push({ ...u });
|
|
159
164
|
}
|
|
160
|
-
let r =
|
|
165
|
+
let r = q(n, t);
|
|
161
166
|
return r = this.applyExtractedStyles(r, s), r;
|
|
162
167
|
}
|
|
163
168
|
/**
|
|
@@ -171,30 +176,30 @@ class w {
|
|
|
171
176
|
return console.warn("[RecommendationMigrator] No product card found, using default styles"), t;
|
|
172
177
|
const o = this.extractCardBgColor(s);
|
|
173
178
|
o && (t.cardBgColor = o);
|
|
174
|
-
const
|
|
175
|
-
if (
|
|
176
|
-
const
|
|
177
|
-
t.imageWidth =
|
|
179
|
+
const n = s.querySelector(".ext-product-image");
|
|
180
|
+
if (n) {
|
|
181
|
+
const l = n.querySelector("img"), g = l == null ? void 0 : l.getAttribute("width"), a = n.getAttribute("style") || "", p = n.getAttribute("align") || "center", b = n.getAttribute("class") || "", m = this.extractStripoClasses(b);
|
|
182
|
+
t.imageWidth = g || "120", t.imageAlign = p, t.imageTdStyle = a, t.imageClasses = m;
|
|
178
183
|
}
|
|
179
184
|
const r = s.querySelector(".ext-product-name");
|
|
180
185
|
if (r) {
|
|
181
|
-
const
|
|
182
|
-
t.nameStyle =
|
|
186
|
+
const l = r.querySelector("p"), g = (l == null ? void 0 : l.getAttribute("style")) || "", a = r.getAttribute("align") || "center", p = r.getAttribute("style") || "", b = r.getAttribute("class") || "", m = this.extractStripoClasses(b);
|
|
187
|
+
t.nameStyle = g, t.nameAlign = a, t.nameTdStyle = p, t.nameClasses = m;
|
|
183
188
|
}
|
|
184
189
|
const i = s.querySelector(".ext-product-price");
|
|
185
190
|
if (i) {
|
|
186
|
-
const
|
|
187
|
-
t.priceStyle =
|
|
191
|
+
const l = i.querySelector("p"), g = (l == null ? void 0 : l.getAttribute("style")) || "", a = i.getAttribute("align") || "center", p = i.getAttribute("style") || "", b = i.getAttribute("class") || "", m = this.extractStripoClasses(b);
|
|
192
|
+
t.priceStyle = g, t.priceAlign = a, t.priceTdStyle = p, t.priceClasses = m;
|
|
188
193
|
}
|
|
189
194
|
const u = s.querySelector(".ext-product-original-price");
|
|
190
195
|
if (u) {
|
|
191
|
-
const
|
|
192
|
-
t.oldPriceStyle =
|
|
196
|
+
const l = u.querySelector("p"), g = (l == null ? void 0 : l.getAttribute("style")) || "", a = u.getAttribute("align") || "center", p = u.getAttribute("style") || "", b = u.getAttribute("class") || "", m = this.extractStripoClasses(b);
|
|
197
|
+
t.oldPriceStyle = g, t.oldPriceAlign = a, t.oldPriceTdStyle = p, t.oldPriceClasses = m;
|
|
193
198
|
}
|
|
194
199
|
const c = s.querySelector(".ext-product-button");
|
|
195
200
|
if (c) {
|
|
196
|
-
const
|
|
197
|
-
t.buttonBorderStyle =
|
|
201
|
+
const l = c.querySelector(".es-button-border"), g = c.querySelector("a.es-button"), a = (l == null ? void 0 : l.getAttribute("style")) || "", p = (g == null ? void 0 : g.getAttribute("style")) || "", b = c.getAttribute("align") || "center", m = c.getAttribute("style") || "", f = c.getAttribute("class") || "", C = this.extractStripoClasses(f), y = ((c == null ? void 0 : c.textContent) || "").trim();
|
|
202
|
+
t.buttonBorderStyle = a, t.buttonLinkStyle = p, t.buttonAlign = b, t.buttonTdStyle = m, t.buttonClasses = C, t.buttonText = y;
|
|
198
203
|
}
|
|
199
204
|
return t;
|
|
200
205
|
}
|
|
@@ -240,8 +245,8 @@ class w {
|
|
|
240
245
|
i && t.oldPriceStyle && i.setAttribute("style", t.oldPriceStyle);
|
|
241
246
|
}), (t.buttonBorderStyle || t.buttonLinkStyle || t.buttonAlign || t.buttonTdStyle || t.buttonClasses) && s.querySelectorAll(".product-button").forEach((r) => {
|
|
242
247
|
if (t.buttonAlign && r.setAttribute("align", t.buttonAlign), t.buttonTdStyle && r.setAttribute("style", t.buttonTdStyle), t.buttonClasses) {
|
|
243
|
-
const
|
|
244
|
-
r.setAttribute("class",
|
|
248
|
+
const l = `${r.getAttribute("class") || ""} ${t.buttonClasses}`.trim();
|
|
249
|
+
r.setAttribute("class", l);
|
|
245
250
|
}
|
|
246
251
|
const i = r.querySelector(".es-button-border");
|
|
247
252
|
i && t.buttonBorderStyle && i.setAttribute("style", t.buttonBorderStyle);
|
|
@@ -270,8 +275,8 @@ class w {
|
|
|
270
275
|
* Removes specified style properties from a style string
|
|
271
276
|
*/
|
|
272
277
|
removeStyleProperties(e, t) {
|
|
273
|
-
return e ? t.reduce((o,
|
|
274
|
-
const r = new RegExp(`${
|
|
278
|
+
return e ? t.reduce((o, n) => {
|
|
279
|
+
const r = new RegExp(`${n}\\s*:\\s*[^;]*;?`, "gi");
|
|
275
280
|
return o.replace(r, "");
|
|
276
281
|
}, e).replace(/;\s*;/g, ";").replace(/^;|;$/g, "").trim() : "";
|
|
277
282
|
}
|
|
@@ -285,9 +290,9 @@ class w {
|
|
|
285
290
|
return /display\s*:/i.test(t) || (t = t ? `${t}; display: block` : "display: block"), t.replace(/;\s*;/g, ";").replace(/^;|;$/g, "").replace(/"/g, "'").trim();
|
|
286
291
|
}
|
|
287
292
|
}
|
|
288
|
-
function
|
|
289
|
-
return new
|
|
293
|
+
function v(d) {
|
|
294
|
+
return new $().migrate(d);
|
|
290
295
|
}
|
|
291
296
|
export {
|
|
292
|
-
|
|
297
|
+
v as migrateRecommendation
|
|
293
298
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const s = {
|
|
2
|
-
RECOMMENDATION_API_URL: "
|
|
2
|
+
RECOMMENDATION_API_URL: "https://recommendationv2.api.useinsider.com"
|
|
3
3
|
}, i = [
|
|
4
4
|
{ id: 11, key: "similarViewed", name: "Viewed Together", path: "viewed-together" },
|
|
5
5
|
{ id: 12, key: "similarBought", name: "Purchased Together", path: "purchased-together" },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e = 20, s = 320, t = "vertical", m = {
|
|
2
2
|
CART_ABANDONMENT: {
|
|
3
3
|
ins_apr_img_1: "https://s3-eu-west-1.amazonaws.com/web-image.useinsider.com/email-assets/dummyImages/ins_apr_img_1.png",
|
|
4
4
|
ins_apr_img_2: "https://s3-eu-west-1.amazonaws.com/web-image.useinsider.com/email-assets/dummyImages/ins_apr_img_2.png",
|
|
@@ -15,7 +15,7 @@ const s = 20, e = 320, t = {
|
|
|
15
15
|
DISCOUNT: "discount",
|
|
16
16
|
OMNIBUS_DISCOUNT: "omnibus_discount",
|
|
17
17
|
OMNIBUS_PRICE: "omnibus_price"
|
|
18
|
-
},
|
|
18
|
+
}, _ = {
|
|
19
19
|
IF: {
|
|
20
20
|
discount: `{% if {${i.DISCOUNT}} != "0%" and {${i.DISCOUNT}} != "" %}`,
|
|
21
21
|
omnibus_discount: `{% if {${i.DISCOUNT}} != "0%" and {${i.DISCOUNT}} != "" and {${i.OMNIBUS_DISCOUNT}} != "0%" and {${i.OMNIBUS_DISCOUNT}} != "" %}`,
|
|
@@ -23,17 +23,17 @@ const s = 20, e = 320, t = {
|
|
|
23
23
|
},
|
|
24
24
|
ELSE: "{% else %}",
|
|
25
25
|
END_IF: "{% endif %}"
|
|
26
|
-
},
|
|
27
|
-
ID: /
|
|
28
|
-
ATTRIBUTE_PARAGRAPH: /<p[^>]*?product-attr="(discount|omnibus_discount|omnibus_price)"
|
|
29
|
-
ATTRIBUTE_PARAGRAPH_START_TAG: /<p[^>]*?product-attr="(discount|omnibus_discount|omnibus_price)"
|
|
26
|
+
}, a = {
|
|
27
|
+
ID: /recommendation-id="(.*?)"/gi,
|
|
28
|
+
ATTRIBUTE_PARAGRAPH: /<p[^>]*?product-attr="(discount|omnibus_discount|omnibus_price)"[^>]*>[\S\s]*?<\/p>/gm,
|
|
29
|
+
ATTRIBUTE_PARAGRAPH_START_TAG: /<p[^>]*?product-attr="(discount|omnibus_discount|omnibus_price)"[^>]*>/gm,
|
|
30
30
|
COMPOSITION: /composition="true"/gm,
|
|
31
31
|
CUSTOM_FIELD: /{{[0-9]+_[0-8]_(discount|omnibus_discount|omnibus_price)}}/gm,
|
|
32
32
|
CUSTOM_FIELD_INDEXES_PART: /{{[0-9]+_[0-8]_/gm,
|
|
33
33
|
CUSTOM_FIELD_NAME_PART: /_(discount|omnibus_discount|omnibus_price)}}/gm
|
|
34
|
-
}, a = {
|
|
35
|
-
PARAGRAPH_END_TAG: "</p>"
|
|
36
34
|
}, n = {
|
|
35
|
+
PARAGRAPH_END_TAG: "</p>"
|
|
36
|
+
}, o = {
|
|
37
37
|
REGULAR_NAME_HEIGHT: ".ext-product-name.ins-vertical p { height:90px!important;",
|
|
38
38
|
TRIMMED_NAME_HEIGHT: ".ext-product-name.ins-vertical p { height:18px!important;",
|
|
39
39
|
ELLIPSIS: "text-overflow:ellipsis!important; white-space:nowrap!important;",
|
|
@@ -46,11 +46,12 @@ const s = 20, e = 320, t = {
|
|
|
46
46
|
};
|
|
47
47
|
export {
|
|
48
48
|
i as ATTRIBUTES,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
49
|
+
_ as CONDITIONS,
|
|
50
|
+
o as CSS,
|
|
51
|
+
m as DUMMY_IMAGE_MAPPINGS,
|
|
52
|
+
e as DefaultPadding,
|
|
53
|
+
n as HTML,
|
|
54
|
+
s as MinDeviceViewport,
|
|
55
|
+
a as REGEX,
|
|
56
|
+
t as VerticalOrientation
|
|
56
57
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { useTranslations as e } from "../composables/useTranslations.js";
|
|
2
2
|
import { getEnvironmentPrefix as R } from "../utils/environmentUtil.js";
|
|
3
|
-
const
|
|
3
|
+
const I = {
|
|
4
4
|
UNSUBSCRIBE_LINK_TYPE: 1,
|
|
5
5
|
PREFERENCES_LINK_TYPE: 3
|
|
6
|
-
},
|
|
6
|
+
}, r = {
|
|
7
7
|
UNSUBSCRIBE_LINK_REGEX: /{{ins-unsubscribe-link}}/g,
|
|
8
8
|
DATA_OGSB_BUTTON_CSS_REGEX: "\\[data-ogsb\\]\\s*\\.es-button\\.es-button-[0-9]+\\s*\\{(?:[^\\}]*)\\}",
|
|
9
9
|
GLOBAL_UNSUBSCRIBE_LINK_REGEX: /{{ins-global-unsubscribe-link}}/g,
|
|
10
10
|
PREFERENCES_UNSUBSCRIBE_LINK_REGEX: /{{ins-preferences-unsubscribe-link}}/g
|
|
11
|
-
},
|
|
12
|
-
UNSUBSCRIBE_URL: `https://mail.${
|
|
13
|
-
PREFERENCES_URL: `https://mail.${
|
|
14
|
-
},
|
|
11
|
+
}, s = R(), _ = {
|
|
12
|
+
UNSUBSCRIBE_URL: `https://mail.${s}.com/user/v1/unsub`,
|
|
13
|
+
PREFERENCES_URL: `https://mail.${s}.com/user/v1/prefs`
|
|
14
|
+
}, i = "iid", B = {
|
|
15
15
|
name: "Global Unsubscribe",
|
|
16
16
|
sendGridId: "G"
|
|
17
17
|
}, C = "/email/unsubscribe-pages", E = {
|
|
@@ -20,9 +20,6 @@ const _ = {
|
|
|
20
20
|
SUBSCRIPTION_PREFERENCE_CENTER: 3,
|
|
21
21
|
SUBSCRIPTION_PREFERENCE_CONFIRMATION: 4,
|
|
22
22
|
RESUBSCRIBE: 5
|
|
23
|
-
}, U = {
|
|
24
|
-
[E.GLOBAL_UNSUBSCRIBE]: "custom-unsubscribe",
|
|
25
|
-
[E.SUBSCRIPTION_PREFERENCE_CENTER]: "custom-preferences"
|
|
26
23
|
}, t = {
|
|
27
24
|
[E.GLOBAL_UNSUBSCRIBE]: [
|
|
28
25
|
E.GLOBAL_UNSUBSCRIBE,
|
|
@@ -33,30 +30,29 @@ const _ = {
|
|
|
33
30
|
E.SUBSCRIPTION_PREFERENCE_CENTER,
|
|
34
31
|
E.SUBSCRIPTION_PREFERENCE_CONFIRMATION
|
|
35
32
|
]
|
|
36
|
-
},
|
|
37
|
-
const
|
|
33
|
+
}, U = () => {
|
|
34
|
+
const n = e();
|
|
38
35
|
return {
|
|
39
|
-
[E.GLOBAL_UNSUBSCRIBE]:
|
|
40
|
-
[E.GLOBAL_UNSUBSCRIBE_CONFIRMATION_PAGE]:
|
|
41
|
-
[E.RESUBSCRIBE]:
|
|
42
|
-
[E.SUBSCRIPTION_PREFERENCE_CENTER]:
|
|
43
|
-
[E.SUBSCRIPTION_PREFERENCE_CONFIRMATION]:
|
|
36
|
+
[E.GLOBAL_UNSUBSCRIBE]: n("unsubscription-preference.type-global-unsubscribe"),
|
|
37
|
+
[E.GLOBAL_UNSUBSCRIBE_CONFIRMATION_PAGE]: n("unsubscription-preference.type-global-unsubscription-confirmation"),
|
|
38
|
+
[E.RESUBSCRIBE]: n("unsubscription-preference.type-resubscribe"),
|
|
39
|
+
[E.SUBSCRIPTION_PREFERENCE_CENTER]: n("unsubscription-preference.type-subscription-preferences-center"),
|
|
40
|
+
[E.SUBSCRIPTION_PREFERENCE_CONFIRMATION]: n("unsubscription-preference.type-subscription-preferences-confirmation")
|
|
44
41
|
};
|
|
45
|
-
},
|
|
42
|
+
}, c = {
|
|
46
43
|
default: "{{ins-unsubscribe-link}}",
|
|
47
44
|
[E.GLOBAL_UNSUBSCRIBE]: "{{ins-global-unsubscribe-link}}",
|
|
48
45
|
[E.SUBSCRIPTION_PREFERENCE_CENTER]: "{{ins-preferences-unsubscribe-link}}"
|
|
49
46
|
};
|
|
50
47
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
48
|
+
B as DEFAULT_UNSUBSCRIBE_GROUP,
|
|
49
|
+
i as INSIDER_ID,
|
|
50
|
+
r as LINK_REGEXES,
|
|
51
|
+
I as LINK_TYPES,
|
|
52
|
+
c as MERGE_TAGS,
|
|
56
53
|
E as PAGE_TYPES,
|
|
57
54
|
t as TYPE_COLLECTIONS,
|
|
58
55
|
C as UNSUBSCRIBE_PAGES_LINK,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
c as getTypeTranslations
|
|
56
|
+
_ as URLS,
|
|
57
|
+
U as getTypeTranslations
|
|
62
58
|
};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { useOnboardingStore as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { useOnboardingStore as g } from "../../../stores/onboarding.js";
|
|
2
|
+
import { useTemplateStore as f } from "../../../stores/template.js";
|
|
3
|
+
import { Block as u, BlockCompositionType as I, UIElementType as c, UEAttr as C, ModificationDescription as r } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
4
|
+
import { SETTINGS_ENUMS as l, DefaultConfigValues as s } from "./enums/settingsEnums.js";
|
|
5
|
+
import { getDefaultTemplate as y } from "./template.js";
|
|
6
|
+
import { getItemsBlockContainer as b, getItemsBlockConfig as k, getDefaultItemsBlockConfig as N } from "./utils/nodeConfigUtils.js";
|
|
7
|
+
const m = "items-block";
|
|
8
|
+
class M extends u {
|
|
8
9
|
getId() {
|
|
9
|
-
return
|
|
10
|
+
return m;
|
|
10
11
|
}
|
|
11
12
|
getIcon() {
|
|
12
13
|
return "items-icon";
|
|
13
14
|
}
|
|
14
15
|
getBlockCompositionType() {
|
|
15
|
-
return
|
|
16
|
+
return I.CONTAINER;
|
|
16
17
|
}
|
|
17
18
|
getName() {
|
|
18
19
|
return this.api.translate("Items");
|
|
@@ -20,35 +21,54 @@ class B extends g {
|
|
|
20
21
|
getDescription() {
|
|
21
22
|
return this.api.translate("Items lets you display personalized products based on user behavior.");
|
|
22
23
|
}
|
|
24
|
+
getSettingsPanelTitleHtml() {
|
|
25
|
+
if (f().migrations[m] === 0)
|
|
26
|
+
return "";
|
|
27
|
+
const n = this.api.translate("Items"), o = this.api.translate("This block is switched from the Old Version to the New Version. We recommend you check the Items block and test your message to ensure it works properly.");
|
|
28
|
+
return `<div>
|
|
29
|
+
<div style="display: flex; align-items: center;">
|
|
30
|
+
<span>${n}</span>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="items-migration-info">
|
|
33
|
+
<${c.ICON}
|
|
34
|
+
${C.ICON.src}="migration-info-icon"
|
|
35
|
+
class="items-migration-info__icon">
|
|
36
|
+
</${c.ICON}>
|
|
37
|
+
<p class="items-migration-info__text">
|
|
38
|
+
${o}
|
|
39
|
+
</p>
|
|
40
|
+
</div>
|
|
41
|
+
</div>`;
|
|
42
|
+
}
|
|
23
43
|
getTemplate() {
|
|
24
|
-
return
|
|
25
|
-
orientation:
|
|
26
|
-
itemsType:
|
|
44
|
+
return y({
|
|
45
|
+
orientation: l.ORIENTATION.VERTICAL,
|
|
46
|
+
itemsType: l.ITEMS_TYPE.CART_ITEMS,
|
|
27
47
|
itemId: "{{Abandoned Cart Item (1) Url}}",
|
|
28
|
-
currencySymbol:
|
|
29
|
-
currencyLocation:
|
|
30
|
-
formattedPrice:
|
|
48
|
+
currencySymbol: s.productPriceCurrencySymbolControlValue,
|
|
49
|
+
currencyLocation: s.productPriceCurrencyLocationControlValue,
|
|
50
|
+
formattedPrice: s.productPriceFormattedControlValue === "1"
|
|
31
51
|
});
|
|
32
52
|
}
|
|
33
53
|
allowInnerBlocksDND() {
|
|
34
54
|
return !1;
|
|
35
55
|
}
|
|
36
|
-
onCreated(
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
const e =
|
|
56
|
+
onCreated(i) {
|
|
57
|
+
const n = this.api.getDocumentModifier(), o = this.api.getDocumentRootCssNode();
|
|
58
|
+
o.querySelector('[product-attr="imageSrc"] img') || n.modifyCss(o).appendRule('[product-attr="imageSrc"] img {object-fit: contain;}');
|
|
59
|
+
const e = b(i);
|
|
40
60
|
if (!e)
|
|
41
61
|
return;
|
|
42
|
-
const a = e.getNodeConfig(),
|
|
62
|
+
const a = e.getNodeConfig(), d = a && Object.keys(a).length > 0, t = k(i);
|
|
43
63
|
if (t != null && t.initialized)
|
|
44
|
-
|
|
64
|
+
d ? t.blockInstanceId || this.api.getDocumentModifier().modifyHtml(e).setNodeConfig({ ...t, blockInstanceId: String(Date.now()) }).apply(new r("Assign block instance ID to block")) : this.api.getDocumentModifier().modifyHtml(e).setNodeConfig(t).apply(new r("Migrate legacy config to nodeConfig"));
|
|
45
65
|
else {
|
|
46
|
-
const
|
|
47
|
-
this.api.getDocumentModifier().modifyHtml(e).setNodeConfig(
|
|
66
|
+
const p = N();
|
|
67
|
+
this.api.getDocumentModifier().modifyHtml(e).setNodeConfig(p).apply(new r("Initialize Items block with default configuration")), g().startOnboarding("itemsOnboarding");
|
|
48
68
|
}
|
|
49
69
|
}
|
|
50
70
|
}
|
|
51
71
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
72
|
+
m as BLOCK_ID,
|
|
73
|
+
M as ItemsBlock
|
|
54
74
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IconsRegistry as o } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
|
|
2
|
+
import { MIGRATION_INFO_ICON as r } from "../common-icons.js";
|
|
3
|
+
class s extends o {
|
|
3
4
|
registerIconsSvg(t) {
|
|
4
5
|
t["items-icon"] = `
|
|
5
6
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -19,14 +20,14 @@ class i extends o {
|
|
|
19
20
|
</svg>
|
|
20
21
|
`, t["horizontal-orientation"] = `
|
|
21
22
|
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
|
|
22
|
-
<path d="M10 19H4C3.44772 19 3 18.5523 3 18V2C3 1.44772 3.44772 1 4 1H10V19Z" stroke="currentColor"
|
|
23
|
+
<path d="M10 19H4C3.44772 19 3 18.5523 3 18V2C3 1.44772 3.44772 1 4 1H10V19Z" stroke="currentColor"
|
|
23
24
|
stroke-width="2" fill="none"/>
|
|
24
|
-
<path d="M17 2V18C17 18.5523 16.5523 19 16 19H10V1H16C16.5523 1 17 1.44772 17 2Z" stroke="currentColor"
|
|
25
|
+
<path d="M17 2V18C17 18.5523 16.5523 19 16 19H10V1H16C16.5523 1 17 1.44772 17 2Z" stroke="currentColor"
|
|
25
26
|
stroke-width="2" fill="none"/>
|
|
26
27
|
</svg>
|
|
27
|
-
|
|
28
|
+
`, t["migration-info-icon"] = r;
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
+
s as ItemsIconsRegistry
|
|
32
33
|
};
|
|
@@ -17,6 +17,54 @@ const n = `/* Utils */
|
|
|
17
17
|
.container:has(.items-controls-container) {
|
|
18
18
|
padding: 0
|
|
19
19
|
}
|
|
20
|
+
|
|
21
|
+
/* ─── Migration Info Box ─────────────────────────────────────────────── */
|
|
22
|
+
/* Shown in the settings panel title when a block was migrated from legacy */
|
|
23
|
+
|
|
24
|
+
/* Layout variables for positioning the absolutely-placed info box */
|
|
25
|
+
:host {
|
|
26
|
+
--items-migration-padding: 16px;
|
|
27
|
+
--items-migration-title-height: 61px;
|
|
28
|
+
--items-migration-box-height: 98px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Push tabs down when info box is present inside the control panel header */
|
|
32
|
+
.control-panel-header:has(.items-migration-info) {
|
|
33
|
+
position: relative;
|
|
34
|
+
margin-bottom: calc(2 * var(--items-migration-padding) + var(--items-migration-box-height));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* Info box container */
|
|
38
|
+
.items-migration-info {
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: flex-start;
|
|
41
|
+
gap: 8px;
|
|
42
|
+
padding: 12px;
|
|
43
|
+
background: var(--guido-color-background-onpage-message-info);
|
|
44
|
+
border: 1px solid var(--guido-color-border-onpage-message-info);
|
|
45
|
+
border-radius: 4px;
|
|
46
|
+
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07);
|
|
47
|
+
position: absolute;
|
|
48
|
+
left: var(--items-migration-padding);
|
|
49
|
+
right: var(--items-migration-padding);
|
|
50
|
+
top: calc(var(--items-migration-padding) + var(--items-migration-title-height));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Icon — 18x19 icon inside a 24x24 bounding box (matches Figma) */
|
|
54
|
+
.items-migration-info__icon {
|
|
55
|
+
flex-shrink: 0;
|
|
56
|
+
width: 24px;
|
|
57
|
+
height: 24px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* Text content */
|
|
61
|
+
.items-migration-info__text {
|
|
62
|
+
margin: 4px 0;
|
|
63
|
+
white-space: normal;
|
|
64
|
+
font-size: 13px;
|
|
65
|
+
font-weight: 400;
|
|
66
|
+
line-height: 16px;
|
|
67
|
+
}
|
|
20
68
|
`;
|
|
21
69
|
export {
|
|
22
70
|
n as default
|