@useinsider/guido 3.23.0 → 3.24.0-beta.2a3ba08

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.
Files changed (95) hide show
  1. package/README.md +2 -0
  2. package/dist/@types/config/schemas.js +20 -17
  3. package/dist/components/Guido.vue.js +4 -4
  4. package/dist/components/Guido.vue2.js +110 -97
  5. package/dist/components/organisms/AutoSaveController.vue2.js +20 -10
  6. package/dist/components/organisms/header/AutoSaveStatus.vue.js +17 -0
  7. package/dist/components/organisms/header/AutoSaveStatus.vue2.js +25 -0
  8. package/dist/components/organisms/header/EditorActions.vue.js +13 -13
  9. package/dist/components/organisms/header/EditorActions.vue2.js +58 -73
  10. package/dist/components/organisms/header/EditorActionsMenu.vue.js +20 -0
  11. package/dist/components/organisms/header/EditorActionsMenu.vue2.js +99 -0
  12. package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -6
  13. package/dist/components/organisms/header/HeaderWrapper.vue2.js +9 -17
  14. package/dist/components/organisms/header/LeftSlot.vue.js +1 -1
  15. package/dist/components/organisms/header/LeftSlot.vue2.js +28 -23
  16. package/dist/components/organisms/header/MiddleSlot.vue.js +4 -4
  17. package/dist/components/organisms/header/MiddleSlot.vue2.js +8 -7
  18. package/dist/components/organisms/header/RightSlot.vue.js +11 -10
  19. package/dist/components/organisms/header/RightSlot.vue2.js +13 -18
  20. package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue.js +18 -0
  21. package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue2.js +37 -0
  22. package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue.js +22 -0
  23. package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue2.js +48 -0
  24. package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue.js +19 -0
  25. package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue2.js +90 -0
  26. package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +12 -12
  27. package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +60 -35
  28. package/dist/composables/useAccessibilityApi.js +51 -0
  29. package/dist/composables/useCustomInterfaceAppearance.js +42 -41
  30. package/dist/composables/useModuleRepair.js +14 -12
  31. package/dist/config/i18n/en/labels.json.js +36 -4
  32. package/dist/config/i18n/en/tooltips.json.js +2 -1
  33. package/dist/config/migrator/index.js +16 -15
  34. package/dist/config/migrator/itemsPriceFormatMigrator.js +20 -0
  35. package/dist/extensions/Blocks/Items/block.js +115 -77
  36. package/dist/extensions/Blocks/Items/constants/currency.js +59 -14
  37. package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +33 -22
  38. package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +62 -51
  39. package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +18 -17
  40. package/dist/extensions/Blocks/Items/controls/price/singlePrice.js +42 -31
  41. package/dist/extensions/Blocks/Items/controls/priceFormat.js +145 -0
  42. package/dist/extensions/Blocks/Items/controls/settingsControl.js +141 -120
  43. package/dist/extensions/Blocks/Items/enums/controlEnums.js +1 -1
  44. package/dist/extensions/Blocks/Items/extension.js +9 -8
  45. package/dist/extensions/Blocks/Items/items.css.js +19 -0
  46. package/dist/extensions/Blocks/Items/settingsPanel.js +34 -25
  47. package/dist/extensions/Blocks/Items/template.js +250 -212
  48. package/dist/extensions/Blocks/Items/utils/priceFormatOps.js +185 -0
  49. package/dist/extensions/Blocks/Recommendation/utils/priceFormatter.js +1 -0
  50. package/dist/guido.css +1 -1
  51. package/dist/package.json.js +2 -2
  52. package/dist/sprite.svg +10 -0
  53. package/dist/src/@types/config/schemas.d.ts +6 -0
  54. package/dist/src/components/organisms/AutoSaveController.vue.d.ts +19 -1
  55. package/dist/src/components/organisms/header/EditorActionsMenu.vue.d.ts +2 -0
  56. package/dist/src/components/organisms/header/HeaderWrapper.vue.d.ts +1 -19
  57. package/dist/src/components/organisms/header/RightSlot.vue.d.ts +1 -19
  58. package/dist/src/components/organisms/header/accessibility/AccessibilityToolbar.vue.d.ts +2 -0
  59. package/dist/src/components/organisms/header/accessibility/ColorVisionSelect.vue.d.ts +2 -0
  60. package/dist/src/components/organisms/onboarding/EditorTabBarOnboarding.vue.d.ts +2 -0
  61. package/dist/src/composables/useAccessibilityApi.d.ts +13 -0
  62. package/dist/src/composables/useActionsApi.d.ts +2 -2
  63. package/dist/src/composables/useConfig.d.ts +4 -0
  64. package/dist/src/config/migrator/index.d.ts +4 -1
  65. package/dist/src/config/migrator/itemsPriceFormatMigrator.d.ts +1 -0
  66. package/dist/src/extensions/Blocks/Items/block.d.ts +6 -9
  67. package/dist/src/extensions/Blocks/Items/constants/currency.d.ts +32 -0
  68. package/dist/src/extensions/Blocks/Items/controls/priceFormat.d.ts +23 -0
  69. package/dist/src/extensions/Blocks/Items/controls/settingsControl.d.ts +1 -0
  70. package/dist/src/extensions/Blocks/Items/enums/controlEnums.d.ts +1 -0
  71. package/dist/src/extensions/Blocks/Items/template.d.ts +4 -1
  72. package/dist/src/extensions/Blocks/Items/utils/nodeConfigUtils.d.ts +3 -0
  73. package/dist/src/extensions/Blocks/Items/utils/priceFormatOps.d.ts +61 -0
  74. package/dist/src/extensions/Blocks/Recommendation/utils/priceFormatter.d.ts +12 -0
  75. package/dist/src/stores/autosave.d.ts +73 -1
  76. package/dist/src/stores/config.d.ts +40 -0
  77. package/dist/src/stores/editor.d.ts +109 -0
  78. package/dist/src/stores/onboarding.d.ts +966 -35
  79. package/dist/src/stores/version-history.d.ts +1 -1
  80. package/dist/src/utils/itemsCurrencyRepair.d.ts +5 -1
  81. package/dist/src/utils/templatePreparation.d.ts +1 -1
  82. package/dist/src/utils/timeUtil.d.ts +5 -8
  83. package/dist/static/stripo-runtime-manifest.json.js +1 -1
  84. package/dist/static/styles/components/accessibility.css.js +234 -0
  85. package/dist/static/styles/variables.css.js +2 -0
  86. package/dist/stores/autosave.js +12 -7
  87. package/dist/stores/editor.js +8 -3
  88. package/dist/stores/onboarding.js +48 -22
  89. package/dist/utils/itemsCurrencyRepair.js +29 -24
  90. package/dist/utils/pairProductVariables.js +119 -99
  91. package/dist/utils/timeUtil.js +6 -17
  92. package/package.json +2 -2
  93. package/dist/components/organisms/header/AutoSaveToggle.vue.js +0 -22
  94. package/dist/components/organisms/header/AutoSaveToggle.vue2.js +0 -19
  95. /package/dist/src/components/organisms/header/{AutoSaveToggle.vue.d.ts → AutoSaveStatus.vue.d.ts} +0 -0
@@ -0,0 +1,185 @@
1
+ import { formatNumber as w } from "../../Recommendation/utils/priceFormatter.js";
2
+ import { escapeHtml as q } from "../../../../utils/htmlEscape.js";
3
+ import { extractWrapperTags as B } from "../../../../utils/preserveTextStyles.js";
4
+ import { ITEMS_PRICE_FORMAT_ATTR as c, priceFormatFromConfig as _, normalizeDecimalCount as V, LEGACY_PRICE_PARAGRAPH_ATTRS as O, ITEMS_CURRENCY_ATTR as b } from "../constants/currency.js";
5
+ import { productPairs as W } from "../enums/productEnums.js";
6
+ import { DefaultConfigValues as I } from "../enums/settingsEnums.js";
7
+ import { escapeReplacement as z } from "./nodeConfigUtils.js";
8
+ const J = 'p[product-attr="price"], p[product-attr="originalPrice"]', K = [
9
+ ...Object.values(c),
10
+ "data-type"
11
+ ], L = "CART_ITEMS";
12
+ function X() {
13
+ return { rootSet: {}, paragraphRemove: [], configPatch: null, texts: null, changed: !1 };
14
+ }
15
+ function h(t) {
16
+ return t != null;
17
+ }
18
+ function Pt(t) {
19
+ return t === "price" || t === "originalPrice" ? t : null;
20
+ }
21
+ function N(t) {
22
+ const n = W.PAIRS_FOR_EXTENSION, r = t != null && t.type && t.type in n.price ? t.type : L, o = (t == null ? void 0 : t.priceSinglePrice) === !0, e = n.price[r], i = n.originalPrice[r];
23
+ return {
24
+ price: o ? e.DEFAULT_SINGLE_PRICE : e.DEFAULT_PRICE,
25
+ originalPrice: o ? i.DEFAULT_SINGLE_PRICE : i.DEFAULT_PRICE
26
+ };
27
+ }
28
+ function P({ amount: t, format: n, symbol: r, alignment: o }) {
29
+ const e = w(Number(t), n), i = q((r ?? "").trim());
30
+ return i ? o === "1" ? `${e} ${i}` : `${i} ${e}` : e;
31
+ }
32
+ function Tt(t) {
33
+ const n = N(t), r = {
34
+ format: _(t),
35
+ symbol: (t == null ? void 0 : t.priceCurrencySymbol) ?? I.productPriceCurrencySymbolControlValue,
36
+ alignment: (t == null ? void 0 : t.priceCurrencyLocation) ?? "0"
37
+ };
38
+ return {
39
+ price: P({ amount: n.price, ...r }),
40
+ originalPrice: P({ amount: n.originalPrice, ...r })
41
+ };
42
+ }
43
+ const x = /&nbsp;|\u00a0|\s+/g, Q = "(?:&nbsp;| |\\s)+", Z = /&(amp|lt|gt|quot|#x27|#39);/g, tt = { amp: "&", lt: "<", gt: ">", quot: '"', "#x27": "'", "#39": "'" }, rt = {
44
+ "&": "(?:&amp;|&)",
45
+ "<": "(?:&lt;|<)",
46
+ ">": "(?:&gt;|>)",
47
+ '"': '(?:&quot;|")',
48
+ "'": "(?:&#x27;|&#39;|')"
49
+ }, et = (t) => t.replace(Z, (n, r) => tt[r]), nt = (t) => t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
50
+ function ot(t) {
51
+ return Array.from(t, (n) => rt[n] ?? nt(n)).join("");
52
+ }
53
+ function D(t, n) {
54
+ const r = (o) => o.replace(x, " ").trim();
55
+ return r(t ?? "") === r(et(n ?? ""));
56
+ }
57
+ function it(t, n, r) {
58
+ const o = t.trim(), e = n.trim().split(x).filter(Boolean), i = e.length ? new RegExp(e.map(ot).join(Q)) : null;
59
+ if (i != null && i.test(o))
60
+ return o.replace(i, z(r));
61
+ const { openTags: s, closeTags: u } = B(o);
62
+ return `${s}${r}${u}`;
63
+ }
64
+ function ct(t, n) {
65
+ if (!t)
66
+ return null;
67
+ const r = Object.fromEntries(
68
+ Object.entries(n).filter(([o, e]) => t[o] !== e)
69
+ );
70
+ return Object.keys(r).length > 0 ? r : null;
71
+ }
72
+ function Ct(t, { convertLegacy: n }) {
73
+ const { rootAttrs: r, paragraphs: o, config: e } = t, i = h(r[c.DECIMAL_COUNT]);
74
+ if (!i && !n)
75
+ return X();
76
+ const s = o.find((a) => a.kind === "price") ?? o[0], u = (a) => (s == null ? void 0 : s.attrs[a]) ?? null, l = i ? r[c.SINGLE_PRICE] : u("data-single_price"), m = typeof (e == null ? void 0 : e.priceSinglePrice) == "boolean" ? e.priceSinglePrice : l === "true", A = e == null ? void 0 : e.priceCurrencyLocation, j = u(b.POSITION) === "after" ? "1" : "0", H = i ? r[c.ALIGNMENT] : j, E = (typeof A == "string" && A.trim() !== "" ? A : H) === "1" ? "1" : "0", U = i ? r[c.SYMBOL] : u(b.SYMBOL), S = typeof (e == null ? void 0 : e.priceCurrencySymbol) == "string" ? e.priceCurrencySymbol : U ?? I.productPriceCurrencySymbolControlValue, p = _({
77
+ priceThousandSeparator: (e == null ? void 0 : e.priceThousandSeparator) ?? (i ? r[c.THOUSAND_SEPARATOR] ?? void 0 : void 0),
78
+ priceDecimalSeparator: (e == null ? void 0 : e.priceDecimalSeparator) ?? (i ? r[c.DECIMAL_SEPARATOR] ?? void 0 : void 0),
79
+ priceDecimalCount: (e == null ? void 0 : e.priceDecimalCount) ?? (i ? V(r[c.DECIMAL_COUNT]) : void 0)
80
+ }), G = {
81
+ [c.SYMBOL]: S.trim(),
82
+ [c.ALIGNMENT]: E,
83
+ [c.THOUSAND_SEPARATOR]: p.thousandSeparator,
84
+ [c.DECIMAL_SEPARATOR]: p.decimalSeparator,
85
+ [c.DECIMAL_COUNT]: String(p.decimalCount),
86
+ [c.SINGLE_PRICE]: m ? "true" : "false"
87
+ }, T = Object.fromEntries(
88
+ Object.entries(G).filter(([a, d]) => r[a] !== d)
89
+ ), C = O.filter(
90
+ (a) => o.some((d) => h(d.attrs[a]))
91
+ ), $ = {
92
+ priceThousandSeparator: p.thousandSeparator,
93
+ priceDecimalSeparator: p.decimalSeparator,
94
+ priceDecimalCount: p.decimalCount,
95
+ priceSinglePrice: m,
96
+ priceCurrencyLocation: E,
97
+ priceCurrencySymbol: S
98
+ }, f = ct(e, $), k = (e == null ? void 0 : e.type) ?? r["data-type"] ?? L, R = N({ type: k, priceSinglePrice: m }), y = (a) => P({ amount: a, format: p, symbol: S, alignment: E }), g = { price: y(R.price), originalPrice: y(R.originalPrice) }, Y = o.some((a) => !D(a.text, g[a.kind]));
99
+ return {
100
+ rootSet: T,
101
+ paragraphRemove: C,
102
+ configPatch: f,
103
+ texts: g,
104
+ changed: Object.keys(T).length > 0 || C.length > 0 || f !== null || Y
105
+ };
106
+ }
107
+ function at(t) {
108
+ const n = {};
109
+ return K.forEach((r) => {
110
+ n[r] = t.rootAttr(r) ?? null;
111
+ }), {
112
+ rootAttrs: n,
113
+ config: t.config,
114
+ paragraphs: t.paragraphs.map((r) => {
115
+ const o = {};
116
+ return O.forEach((e) => {
117
+ o[e] = r.attr(e) ?? null;
118
+ }), { kind: r.kind, attrs: o, text: r.text.trim() };
119
+ })
120
+ };
121
+ }
122
+ function M(t) {
123
+ const n = t.getAttribute("esd-ext-config");
124
+ if (!n)
125
+ return null;
126
+ try {
127
+ const r = JSON.parse(n);
128
+ return r && typeof r == "object" ? r : null;
129
+ } catch {
130
+ return null;
131
+ }
132
+ }
133
+ function F(t) {
134
+ return Array.from(t.querySelectorAll(J)).map((n) => ({
135
+ kind: n.getAttribute("product-attr"),
136
+ element: n
137
+ }));
138
+ }
139
+ function v(t) {
140
+ return t.textContent;
141
+ }
142
+ function ft(t) {
143
+ return at({
144
+ rootAttr: (n) => t.getAttribute(n),
145
+ config: M(t),
146
+ paragraphs: F(t).map(({ kind: n, element: r }) => ({
147
+ kind: n,
148
+ attr: (o) => r.getAttribute(o),
149
+ text: v(r)
150
+ }))
151
+ });
152
+ }
153
+ function Rt(t, n) {
154
+ if (!n.changed)
155
+ return !1;
156
+ let r = !1;
157
+ if (Object.entries(n.rootSet).forEach(([o, e]) => {
158
+ t.getAttribute(o) !== e && (t.setAttribute(o, e), r = !0);
159
+ }), F(t).forEach(({ kind: o, element: e }) => {
160
+ var u;
161
+ n.paragraphRemove.forEach((l) => {
162
+ e.hasAttribute(l) && (e.removeAttribute(l), r = !0);
163
+ });
164
+ const i = (u = n.texts) == null ? void 0 : u[o], s = v(e).trim();
165
+ i !== void 0 && !D(s, i) && (e.innerHTML = it(e.innerHTML, s, i), r = !0);
166
+ }), n.configPatch) {
167
+ const o = M(t);
168
+ o && (t.setAttribute("esd-ext-config", JSON.stringify({ ...o, ...n.configPatch })), r = !0);
169
+ }
170
+ return r;
171
+ }
172
+ export {
173
+ J as PRICE_PARAGRAPH_SELECTOR,
174
+ Rt as applyPriceFormatOpsToElement,
175
+ at as buildPriceFormatSnapshot,
176
+ P as formatItemsDummyPrice,
177
+ Pt as paragraphKindOf,
178
+ Ct as planPriceFormatOps,
179
+ Tt as priceTextsFromConfig,
180
+ M as readPersistedConfigAttribute,
181
+ it as replacePriceText,
182
+ N as resolvePriceDummyAmounts,
183
+ D as samePriceText,
184
+ ft as snapshotPriceFormatFromElement
185
+ };
@@ -25,5 +25,6 @@ function f(c) {
25
25
  return r === "before" ? `${e} ${a}` : `${a} ${e}`;
26
26
  }
27
27
  export {
28
+ d as formatNumber,
28
29
  f as formatPrice
29
30
  };
package/dist/guido.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";.auth-error-modal[data-v-b4d7ae51]{position:relative;z-index:145}.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-b8f24f34] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-2cb418af] .in-progress-wrapper__progress p span:last-child{display:none!important}[data-v-2cb418af] .in-progress-description-status{display:none!important}.view-options-wrapper[data-v-87033101]{position:relative;display:inline-block}.new-tag[data-v-87033101]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-87033101] .guido__view-option-selection-desktop svg,[data-v-87033101] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-87033101] .in-segments-wrapper__button_selected,[data-v-87033101] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-87033101] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-fad98586]{gap:8px}.version-history__toolbar[data-v-fad98586]{gap:4px}.view-options-wrapper[data-v-6ebabfe4]{position:relative;display:inline-block}.new-tag[data-v-6ebabfe4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-6ebabfe4] .guido__verion-history-view-option-selection-desktop svg,[data-v-6ebabfe4] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6ebabfe4] .in-segments-wrapper__button_selected,[data-v-6ebabfe4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-6ebabfe4] .in-tooltip-wrapper-v2__icon{cursor:pointer}.auto-save-toggle[data-v-2c964af4]{position:relative}.auto-save-toggle__info-box[data-v-2c964af4]{position:absolute;top:100%;left:0;z-index:10;width:280px}.editor-actions[data-v-baf7a5dd]{gap:4px}.header-wrapper[data-v-d11dd577]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.validation-error-list[data-v-e48cebe9]{gap:16px}.validation-error-row[data-v-e48cebe9]{gap:8px;padding:24px;border:1px solid #E1E1E1;border-radius:8px}.validation-error-row__icon[data-v-e48cebe9]{flex-shrink:0;font-size:24px;line-height:0}.validation-error-row__text[data-v-e48cebe9]{font-size:13px;line-height:16px;color:#292929;word-break:break-word}.guido-editor__wrapper[data-v-f2154cb6]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-f2154cb6]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-f2154cb6]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-eaf8e461]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-eaf8e461]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-eaf8e461]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-eaf8e461]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-eaf8e461]{object-fit:cover;transform:scale(1)}[data-v-b9a93c6e] .guido__verion-history-view-option-selection-desktop svg,[data-v-b9a93c6e] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-b9a93c6e] .in-segments-wrapper__button_selected,[data-v-b9a93c6e] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-c3fd5d4b]{gap:16px}.desktop-browser-header[data-v-d86c5af5]{height:79px;min-height:79px}.desktop-browser-header__left[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:378px}.desktop-browser-header__center[data-v-d86c5af5]{height:79px;background-repeat:repeat-x;background-size:auto 100%;background-position:left top}.desktop-browser-header__right[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:112px}.desktop-preview[data-v-cf946232]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-cf946232]{min-height:504px}.iframe-wrapper[data-v-f255b2bb]{width:258px}.iframe-scaled[data-v-f255b2bb]{width:320px;height:124.0310077519%;transform:scale(.80625);transform-origin:top left}.cropped-text[data-v-eb3d05d7]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-preview-wrapper__phone[data-v-3f472f96]{width:282px}.mobile-preview-wrapper__phone img[data-v-3f472f96]{object-fit:cover;border-radius:44px}.mobile-preview-wrapper__content[data-v-3f472f96]{width:258px;height:450px;left:12px}[data-v-6bcaca8a] .vueperslides__parallax-wrapper{padding-bottom:110px!important}[data-v-f16f20f8] .vueperslides__bullets{pointer-events:none!important}[data-v-f16f20f8] .vueperslides__parallax-wrapper{padding-bottom:110px!important}[data-v-bb3cca55] .vueperslides__bullets{pointer-events:none!important}[data-v-bb3cca55] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-19d8cb42] .vueperslides__bullets,[data-v-ec2027ff] .vueperslides__bullets,[data-v-b09e80c4] .vueperslides__bullets{pointer-events:none!important}[data-v-b09e80c4] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-9bdef600] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd]{width:100%;max-width:none}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd] .in-skeleton{width:100%!important}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd] .in-dropdown-box__container{width:413px}.assign-strategy-drawer .spaced-dot-sep{background-image:linear-gradient(90deg,#91949f 20%,#fff0 0);background-position:center bottom;background-repeat:repeat-x;background-size:5px 1px}.assign-strategy-drawer .spaced-dot-sep--top{background-position:center top}.assign-strategy-drawer .spaced-dot-sep--fc-n:first-child{background:none}.legacy-strategy-updated-modal[data-v-da2225a1]{position:relative;z-index:145}
1
+ @charset "UTF-8";.auth-error-modal[data-v-b4d7ae51]{position:relative;z-index:145}.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-9d988e4b] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-2cb418af] .in-progress-wrapper__progress p span:last-child{display:none!important}[data-v-2cb418af] .in-progress-description-status{display:none!important}.color-vision-select__dropdown[data-v-64cb50da]{z-index:20;width:387px}.accessibility-toolbar[data-v-391019bc]{gap:16px}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button svg{margin-right:0}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button .clearfix:after{content:none}.view-options-wrapper[data-v-87033101]{position:relative;display:inline-block}.new-tag[data-v-87033101]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-87033101] .guido__view-option-selection-desktop svg,[data-v-87033101] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-87033101] .in-segments-wrapper__button_selected,[data-v-87033101] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-87033101] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-fad98586]{gap:8px}.version-history__toolbar[data-v-fad98586]{gap:4px}.view-options-wrapper[data-v-6ebabfe4]{position:relative;display:inline-block}.new-tag[data-v-6ebabfe4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-6ebabfe4] .guido__verion-history-view-option-selection-desktop svg,[data-v-6ebabfe4] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6ebabfe4] .in-segments-wrapper__button_selected,[data-v-6ebabfe4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-6ebabfe4] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-actions-menu__dropdown[data-v-bdb3b37a]{z-index:20;width:222px}.editor-actions[data-v-9a028d08]{gap:16px}.editor-actions__divider[data-v-9a028d08]{width:1px;height:40px;background-color:#e1e1e1}.right-slot[data-v-77451c9a]{gap:16px}.header-wrapper[data-v-3c713746]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.validation-error-list[data-v-e48cebe9]{gap:16px}.validation-error-row[data-v-e48cebe9]{gap:8px;padding:24px;border:1px solid #E1E1E1;border-radius:8px}.validation-error-row__icon[data-v-e48cebe9]{flex-shrink:0;font-size:24px;line-height:0}.validation-error-row__text[data-v-e48cebe9]{font-size:13px;line-height:16px;color:#292929;word-break:break-word}.guido-editor__wrapper[data-v-d0aed8ae]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-d0aed8ae]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-d0aed8ae]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-eaf8e461]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-eaf8e461]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-eaf8e461]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-eaf8e461]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-eaf8e461]{object-fit:cover;transform:scale(1)}[data-v-b9a93c6e] .guido__verion-history-view-option-selection-desktop svg,[data-v-b9a93c6e] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-b9a93c6e] .in-segments-wrapper__button_selected,[data-v-b9a93c6e] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-c3fd5d4b]{gap:16px}.desktop-browser-header[data-v-d86c5af5]{height:79px;min-height:79px}.desktop-browser-header__left[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:378px}.desktop-browser-header__center[data-v-d86c5af5]{height:79px;background-repeat:repeat-x;background-size:auto 100%;background-position:left top}.desktop-browser-header__right[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:112px}.desktop-preview[data-v-cf946232]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-cf946232]{min-height:504px}.iframe-wrapper[data-v-f255b2bb]{width:258px}.iframe-scaled[data-v-f255b2bb]{width:320px;height:124.0310077519%;transform:scale(.80625);transform-origin:top left}.cropped-text[data-v-eb3d05d7]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-preview-wrapper__phone[data-v-3f472f96]{width:282px}.mobile-preview-wrapper__phone img[data-v-3f472f96]{object-fit:cover;border-radius:44px}.mobile-preview-wrapper__content[data-v-3f472f96]{width:258px;height:450px;left:12px}[data-v-6bcaca8a] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.guido-tab-bar-onboarding[data-v-219b4f7c]{z-index:21}[data-v-f16f20f8] .vueperslides__bullets{pointer-events:none!important}[data-v-f16f20f8] .vueperslides__parallax-wrapper{padding-bottom:110px!important}[data-v-bb3cca55] .vueperslides__bullets{pointer-events:none!important}[data-v-bb3cca55] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-19d8cb42] .vueperslides__bullets,[data-v-ec2027ff] .vueperslides__bullets,[data-v-b09e80c4] .vueperslides__bullets{pointer-events:none!important}[data-v-b09e80c4] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-9bdef600] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd]{width:100%;max-width:none}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd] .in-skeleton{width:100%!important}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd] .in-dropdown-box__container{width:413px}.assign-strategy-drawer .spaced-dot-sep{background-image:linear-gradient(90deg,#91949f 20%,#fff0 0);background-position:center bottom;background-repeat:repeat-x;background-size:5px 1px}.assign-strategy-drawer .spaced-dot-sep--top{background-position:center top}.assign-strategy-drawer .spaced-dot-sep--fc-n:first-child{background:none}.legacy-strategy-updated-modal[data-v-da2225a1]{position:relative;z-index:145}
@@ -1,9 +1,9 @@
1
- const o = "3.23.0", s = { stripo: { version: "2.81.1" } }, n = {
1
+ const o = "3.24.0-beta.2a3ba08", s = { stripo: { version: "2.83.1" } }, a = {
2
2
  version: o,
3
3
  guido: s
4
4
  };
5
5
  export {
6
- n as default,
6
+ a as default,
7
7
  s as guido,
8
8
  o as version
9
9
  };
package/dist/sprite.svg CHANGED
@@ -3107,6 +3107,12 @@
3107
3107
  <symbol viewBox="0 0 24 24" data-token-name="line-replace-dynamic-content" id="line-replace-dynamic-content">
3108
3108
  <path fill-rule="evenodd" clip-rule="evenodd" d="M10.8327 5.42341C11.2222 5.81502 11.221 6.44877 10.8301 6.83894C10.8013 6.86765 10.7712 6.89425 10.74 6.91873L8.70549 8.95706C8.31533 9.34795 7.68275 9.34795 7.29259 8.95706C6.90243 8.56617 6.90243 7.93242 7.29259 7.54153L7.73664 7.09666L7.00053 7.09662C6.44823 7.0966 6.00049 7.54432 6.00049 8.09662V10.0001C6.00049 10.5524 5.55277 11.0001 5.00049 11.0001C4.4482 11.0001 4.00049 10.5524 4.00049 10.0001V8.09662C4.00049 6.43972 5.34372 5.09655 7.00062 5.09662L7.6872 5.09665L7.30179 4.70909C6.91235 4.31748 6.91353 3.68372 7.30442 3.29356C7.69531 2.9034 8.32788 2.90458 8.71732 3.29619L10.8327 5.42341ZM12 6.00024C12 4.89567 12.8954 4.00024 14 4.00024H18C19.1046 4.00024 20 4.89567 20 6.00024V10.0002C20 11.1048 19.1046 12.0002 18 12.0002H14C12.8954 12.0002 12 11.1048 12 10.0002V6.00024ZM14 6.00024H18V10.0002H14V6.00024ZM4 14.0002C4 12.8957 4.89543 12.0002 6 12.0002H10C11.1046 12.0002 12 12.8957 12 14.0002V18.0002C12 19.1048 11.1046 20.0002 10 20.0002H6C4.89543 20.0002 4 19.1048 4 18.0002V14.0002ZM6 14.0002H10V18.0002H6V14.0002ZM13.2939 17.1612C12.9031 17.5513 12.9019 18.1851 13.2913 18.5767L15.4067 20.7039C15.7961 21.0955 16.4287 21.0967 16.8196 20.7065C17.2105 20.3164 17.2117 19.6826 16.8222 19.291L16.4368 18.9034L17.1234 18.9035C18.7803 18.9035 20.1235 17.5604 20.1235 15.9035V14C20.1235 13.4477 19.6758 13 19.1235 13C18.5713 13 18.1235 13.4477 18.1235 14L18.1235 15.9035C18.1235 16.4558 17.6758 16.9035 17.1235 16.9035L16.3874 16.9034L16.8314 16.4586C17.2216 16.0677 17.2216 15.4339 16.8314 15.043C16.4413 14.6522 15.8087 14.6522 15.4185 15.043L13.384 17.0814C13.3528 17.1058 13.3227 17.1324 13.2939 17.1612Z"/>
3109
3109
  </symbol>
3110
+ <symbol viewBox="0 0 24 24" id="line-accessibility">
3111
+ <g transform="translate(2 2)">
3112
+ <rect x="1" y="1" width="18" height="18" rx="9" fill="none" stroke="currentColor" stroke-width="2"/>
3113
+ <path fill="currentColor" d="M14.8125 6.08473C15.332 5.94828 15.6875 6.47668 15.6875 6.95875C15.6873 7.44052 15.2498 7.66778 14.8125 7.8318C14.798 7.83727 14.7826 7.84147 14.7676 7.84547L12.3262 8.69898C12.013 8.81663 11.8784 8.93913 11.8486 8.99391C11.848 8.99533 11.8475 8.9975 11.8467 8.99879C11.8153 9.05489 11.7235 9.29227 11.8379 10.0076L11.9961 11.238L12.8887 16.0154C12.8969 16.0521 12.9036 16.0895 12.9092 16.1267C12.9741 16.5696 12.6498 16.9997 12.0342 16.9998C11.4983 16.9998 11.2617 16.63 11.1592 16.1267C11.1592 16.1267 10.3701 11.8181 9.9873 11.8181C9.60444 11.8205 8.94137 15.6235 8.83887 16.1267C8.7363 16.63 8.49971 16.9998 7.96387 16.9998C7.34999 16.9996 7.02548 16.5711 7.08887 16.1296L7.0957 16.0955C7.09789 16.0818 7.09981 16.0676 7.10254 16.0545L7.9834 11.2371L8.1416 10.0066C8.17359 9.80644 8.26392 9.23379 8.15137 8.9441C8.11665 8.85389 8.0452 8.7492 7.7793 8.64723L5.17962 7.83495C5.17734 7.83424 5.17578 7.83212 5.17578 7.82972C5.17578 7.82745 5.17437 7.82541 5.17224 7.8246C4.74007 7.66146 4.31254 7.43412 4.3125 6.95777C4.31258 6.47553 4.66813 5.9482 5.1875 6.08473C5.26161 6.10405 5.33481 6.12744 5.40625 6.15504C6.12486 6.3593 8.37146 6.9607 9.98828 6.9607C11.7281 6.96068 14.1981 6.26431 14.707 6.115C14.7342 6.10658 14.7619 6.09917 14.7891 6.09156L14.7998 6.08766L14.8125 6.08473ZM9.70117 3.02906C9.99821 2.96998 10.3061 3.00106 10.5859 3.11695C10.8657 3.23286 11.1052 3.42866 11.2734 3.68043C11.4416 3.93217 11.5312 4.22828 11.5312 4.53101C11.5308 4.93693 11.369 5.326 11.082 5.61305C10.795 5.9001 10.406 6.06183 10 6.06226C9.69721 6.06226 9.40119 5.97264 9.14941 5.80445C8.89762 5.63621 8.70086 5.39673 8.58496 5.11695C8.46918 4.83725 8.439 4.52909 8.49805 4.23219C8.55716 3.93526 8.70292 3.6621 8.91699 3.44801C9.13112 3.23391 9.4042 3.08814 9.70117 3.02906Z"/>
3114
+ </g>
3115
+ </symbol>
3110
3116
  <svg viewBox="0 0 24 24" data-token-name="line-advanced-settings" id="line-advanced-settings">
3111
3117
  <path fill-rule="evenodd" clip-rule="evenodd" d="M16 3C15.4477 3 15 3.44772 15 4V6V8C15 8.55228 15.4477 9 16 9C16.5523 9 17 8.55228 17 8V7H20C20.5523 7 21 6.55228 21 6C21 5.44772 20.5523 5 20 5H17V4C17 3.44772 16.5523 3 16 3ZM3 6C3 5.44772 3.44772 5 4 5H12C12.5523 5 13 5.44772 13 6C13 6.55228 12.5523 7 12 7H4C3.44772 7 3 6.55228 3 6ZM16 15C15.4477 15 15 15.4477 15 16V18V20C15 20.5523 15.4477 21 16 21C16.5523 21 17 20.5523 17 20V19H20C20.5523 19 21 18.5523 21 18C21 17.4477 20.5523 17 20 17H17V16C17 15.4477 16.5523 15 16 15ZM3 18C3 17.4477 3.44772 17 4 17H12C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19H4C3.44772 19 3 18.5523 3 18ZM7 10C7 9.44772 7.44772 9 8 9C8.55228 9 9 9.44772 9 10V12V14C9 14.5523 8.55228 15 8 15C7.44772 15 7 14.5523 7 14V13H4C3.44772 13 3 12.5523 3 12C3 11.4477 3.44772 11 4 11H7V10ZM12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13H20C20.5523 13 21 12.5523 21 12C21 11.4477 20.5523 11 20 11H12Z"/>
3112
3118
  </svg>
@@ -3130,4 +3136,8 @@
3130
3136
  </clipPath>
3131
3137
  </defs>
3132
3138
  </svg>
3139
+ <symbol viewBox="0 0 24 24" id="line-no-image-v2">
3140
+ <path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M19.9062 4.1875C20.1565 3.9376 20.5624 3.93741 20.8125 4.1875C21.0626 4.4376 21.0624 4.84353 20.8125 5.09375L19.9062 6L20.8125 6.90625C21.0624 7.15645 21.0626 7.56238 20.8125 7.8125C20.5624 8.06262 20.1565 8.06246 19.9062 7.8125L19 6.90625L18.0938 7.8125C17.8435 8.06241 17.4376 8.0626 17.1875 7.8125C16.9374 7.5624 16.9376 7.15647 17.1875 6.90625L18.0938 6L17.1875 5.09375C16.9376 4.84352 16.9374 4.43759 17.1875 4.1875C17.4376 3.93746 17.8435 3.93766 18.0938 4.1875L19 5.09375L19.9062 4.1875ZM14 4C14.5523 4 15 4.44772 15 5C15 5.55228 14.5523 6 14 6C13.4477 6 13 5.55228 13 5C13 4.44772 13.4477 4 14 4Z"/>
3141
+ <path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M14 6H5V18H6.43652L10.2764 12.6182C10.8633 11.8405 11.9837 11.7886 12.6357 12.5088L14.6504 14.7734L18.3545 10.3965L18.4424 10.3008C19.3653 9.37025 21 10.0117 21 11.3652V18C21 19.1046 20.1046 20 19 20H5C3.89543 20 3 19.1046 3 18V6C3 4.89543 3.89543 4 5 4H14V6ZM9.00098 18H14.7109L11.5371 14.4268L9.00098 18ZM15.9932 16.2822L17.5205 18H19V12.7295L15.9932 16.2822ZM8.5 8C9.32843 8 10 8.67157 10 9.5C10 10.3284 9.32843 11 8.5 11C7.67157 11 7 10.3284 7 9.5C7 8.67157 7.67157 8 8.5 8Z"/>
3142
+ </symbol>
3133
3143
  </svg>
@@ -407,6 +407,7 @@ export declare const FeaturesSchema: v.ObjectSchema<{
407
407
  readonly liquidSyntax: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
408
408
  /** Enable autosave (3-min interval + tab-hide). User toggles on/off from the header. */
409
409
  readonly autosave: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
410
+ readonly accessibilityTesting: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
410
411
  /** Enable pre-save domain-allowlist validation (opt-in; Guido self-serves the block toaster) */
411
412
  readonly allowlistEnabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
412
413
  /** Enable persistent link tracking-id assignment for the click heatmap (opt-in) */
@@ -414,6 +415,8 @@ export declare const FeaturesSchema: v.ObjectSchema<{
414
415
  /** Allow persisting a template that still has validation errors (drawer "Save and Continue" soft-save). Host sets false for transactional + unsubscribe. */
415
416
  readonly allowSaveWithErrors: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
416
417
  readonly reusableRecommendationStrategy: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
418
+ /** Items block: Recommendation-style price formatting (root currency-* attrs, raw price tags). Released dark. */
419
+ readonly itemsPriceFormatting: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
417
420
  }, undefined>;
418
421
  /**
419
422
  * Default block types available in Stripo
@@ -825,6 +828,7 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
825
828
  readonly liquidSyntax: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
826
829
  /** Enable autosave (3-min interval + tab-hide). User toggles on/off from the header. */
827
830
  readonly autosave: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
831
+ readonly accessibilityTesting: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
828
832
  /** Enable pre-save domain-allowlist validation (opt-in; Guido self-serves the block toaster) */
829
833
  readonly allowlistEnabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
830
834
  /** Enable persistent link tracking-id assignment for the click heatmap (opt-in) */
@@ -832,6 +836,8 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
832
836
  /** Allow persisting a template that still has validation errors (drawer "Save and Continue" soft-save). Host sets false for transactional + unsubscribe. */
833
837
  readonly allowSaveWithErrors: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
834
838
  readonly reusableRecommendationStrategy: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
839
+ /** Items block: Recommendation-style price formatting (root currency-* attrs, raw price tags). Released dark. */
840
+ readonly itemsPriceFormatting: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
835
841
  }, undefined>, {}>;
836
842
  /** Block configuration */
837
843
  readonly blocks: v.OptionalSchema<v.ObjectSchema<{
@@ -1,2 +1,20 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ saveSilent: () => Promise<{
3
+ dynamicContentList: import("../../@types/generic").DynamicContent[];
4
+ compiledHtml: string;
5
+ rawHtml: string;
6
+ css: string;
7
+ ampHtml: string;
8
+ ampErrors: string[];
9
+ modules: number[];
10
+ recommendation: {
11
+ campaignUrls?: Record<string, import("../../@types/recommendation").RecommendationCampaignUrlValue>;
12
+ configs: Record<string, string>;
13
+ };
14
+ unsubscribe: {
15
+ status: boolean;
16
+ config: number[];
17
+ };
18
+ } | undefined>;
19
+ }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
20
  export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -1,20 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {
2
- handleSave: (isSilent: boolean) => Promise<{
3
- dynamicContentList: import("../../../@types/generic.js").DynamicContent[];
4
- compiledHtml: string;
5
- rawHtml: string;
6
- css: string;
7
- ampHtml: string;
8
- ampErrors: string[];
9
- modules: number[];
10
- recommendation: {
11
- campaignUrls?: Record<string, import("../../../@types/recommendation.js").RecommendationCampaignUrlValue>;
12
- configs: Record<string, string>;
13
- };
14
- unsubscribe: {
15
- status: boolean;
16
- config: number[];
17
- };
18
- } | undefined> | undefined;
19
- }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
20
2
  export default _default;
@@ -1,20 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {
2
- handleSave: (isSilent: boolean) => Promise<{
3
- dynamicContentList: import("../../../@types/generic.js").DynamicContent[];
4
- compiledHtml: string;
5
- rawHtml: string;
6
- css: string;
7
- ampHtml: string;
8
- ampErrors: string[];
9
- modules: number[];
10
- recommendation: {
11
- campaignUrls?: Record<string, import("../../../@types/recommendation.js").RecommendationCampaignUrlValue>;
12
- configs: Record<string, string>;
13
- };
14
- unsubscribe: {
15
- status: boolean;
16
- config: number[];
17
- };
18
- } | undefined> | undefined;
19
- }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
20
2
  export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import type { ColorVisionDeficiency } from '@@/Types/api/accessibility-api';
2
+ export declare const useAccessibilityApi: () => {
3
+ openAccessibilityTestingMode: () => void;
4
+ closeAccessibilityTestingMode: () => void;
5
+ toggleAccessibilityTestingMode: () => void;
6
+ showImages: () => void;
7
+ hideImages: () => void;
8
+ toggleImages: () => void;
9
+ setColorVisionDeficiency: (type: ColorVisionDeficiency) => void;
10
+ switchToDesktopPreview: () => void;
11
+ switchToMobilePreview: () => void;
12
+ toggleCodeEditor: () => void;
13
+ };
@@ -1,5 +1,5 @@
1
- import type { CompileEmailOptions } from '@@/Types/actions-api';
2
- import { GetCompiledEmailOptions, CompiledEmailResult, TemplateData } from '@@/Types/actions-api';
1
+ import type { CompileEmailOptions } from '@@/Types/api/actions-api';
2
+ import { GetCompiledEmailOptions, CompiledEmailResult, TemplateData } from '@@/Types/api/actions-api';
3
3
  export declare const useActionsApi: () => {
4
4
  getCompiledEmail: (options?: GetCompiledEmailOptions) => Promise<CompiledEmailResult>;
5
5
  getTemplateData: () => Promise<TemplateData>;
@@ -100,10 +100,12 @@ export declare const useConfig: () => {
100
100
  modulesDisabled: boolean;
101
101
  liquidSyntax: boolean;
102
102
  autosave: boolean;
103
+ accessibilityTesting: boolean;
103
104
  allowlistEnabled: boolean;
104
105
  linkTrackingIds: boolean;
105
106
  allowSaveWithErrors: boolean;
106
107
  reusableRecommendationStrategy: boolean;
108
+ itemsPriceFormatting: boolean;
107
109
  };
108
110
  blocks: {
109
111
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -239,10 +241,12 @@ export declare const useConfig: () => {
239
241
  modulesDisabled: boolean;
240
242
  liquidSyntax: boolean;
241
243
  autosave: boolean;
244
+ accessibilityTesting: boolean;
242
245
  allowlistEnabled: boolean;
243
246
  linkTrackingIds: boolean;
244
247
  allowSaveWithErrors: boolean;
245
248
  reusableRecommendationStrategy: boolean;
249
+ itemsPriceFormatting: boolean;
246
250
  } | null>;
247
251
  blocks: import("vue").ComputedRef<{
248
252
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -1,3 +1,6 @@
1
1
  import type { LegacyRecommendationConfig } from '@@/Types/config';
2
2
  import { type PartnerScopeMigrationOptions } from './recommendationPartnerMigrator';
3
- export declare const migrate: (html: string, recommendationConfigs?: Record<string, LegacyRecommendationConfig>, partnerScope?: PartnerScopeMigrationOptions) => Promise<string>;
3
+ export interface MigrationFeatureFlags {
4
+ itemsPriceFormatting?: boolean;
5
+ }
6
+ export declare const migrate: (html: string, recommendationConfigs?: Record<string, LegacyRecommendationConfig>, partnerScope?: PartnerScopeMigrationOptions, features?: MigrationFeatureFlags) => Promise<string>;
@@ -0,0 +1 @@
1
+ export declare function migrateItemsPriceFormat(html: string): string;
@@ -71,15 +71,12 @@ export declare class ItemsBlock extends Block {
71
71
  */
72
72
  private _resolveInstanceId;
73
73
  /**
74
- * Stamps the export-read currency attrs onto every price `<p>` from config, so a template whose
75
- * attrs drifted (e.g. a location toggle before the sync fix) self-heals to match the editor.
76
- * Config is the source of truth — never derive from visible text.
77
- *
78
- * Authority split lives in `currencyAttrTargets` (SD-147588) — position only when a location
79
- * is recorded, symbol only when customized — so this heal and the module-drop repair can't drift.
80
- *
81
- * Returns true only when an attr actually changed, so the caller can skip an empty apply that
82
- * would otherwise re-trigger onDocumentChanged and loop.
74
+ * Single self-heal slot: the flag only decides whether a legacy root is converted; a root
75
+ * already in the new format is reconciled from config regardless. Returns whether anything was queued.
83
76
  */
84
77
  private _reconcileCurrencyDomAttributes;
78
+ /** Legacy `<p>` contract via `currencyAttrTargets`: position when recorded, symbol only when custom. */
79
+ private _reconcileLegacyCurrencyAttributes;
80
+ private _priceParagraphs;
81
+ private _isPriceFormattingEnabled;
85
82
  }
@@ -41,3 +41,35 @@ export declare function currencyAttrTargets(config: {
41
41
  priceCurrencyLocation?: string;
42
42
  priceCurrencySymbol?: string;
43
43
  }): CurrencyAttrTargets;
44
+ export declare const ITEMS_PRICE_FORMAT_ATTR: {
45
+ readonly SYMBOL: "currency-symbol";
46
+ readonly ALIGNMENT: "currency-alignment";
47
+ readonly THOUSAND_SEPARATOR: "currency-thousand-separator";
48
+ readonly DECIMAL_SEPARATOR: "currency-decimal-separator";
49
+ readonly DECIMAL_COUNT: "currency-decimal-count";
50
+ readonly SINGLE_PRICE: "data-single_price";
51
+ };
52
+ /** Price `<p>` attrs of the legacy model; a new-format block carries none of them. */
53
+ export declare const LEGACY_PRICE_PARAGRAPH_ATTRS: readonly ["data-formated", "data-single_price", "data-curency", "data-currency_symbol"];
54
+ export declare const PRICE_FORMAT_CONFIG_KEYS: readonly ["priceThousandSeparator", "priceDecimalSeparator", "priceDecimalCount"];
55
+ export interface ItemsPriceFormat {
56
+ thousandSeparator: string;
57
+ decimalSeparator: string;
58
+ decimalCount: number;
59
+ }
60
+ /** en-US, the shape the legacy pre-formatted price tags produced. */
61
+ export declare const DEFAULT_ITEMS_PRICE_FORMAT: ItemsPriceFormat;
62
+ export interface PriceFormatConfigSlice {
63
+ priceThousandSeparator?: string;
64
+ priceDecimalSeparator?: string;
65
+ priceDecimalCount?: number;
66
+ }
67
+ export declare function normalizeDecimalCount(value: unknown): number;
68
+ /** Config → format, defaulting each missing key independently. */
69
+ export declare function priceFormatFromConfig(config: PriceFormatConfigSlice | null | undefined): ItemsPriceFormat;
70
+ export declare function isNewPriceFormatConfig(config: PriceFormatConfigSlice | null | undefined): boolean;
71
+ export interface AttributeReader {
72
+ getAttribute(name: string): string | null | undefined;
73
+ }
74
+ /** The export/control switch: a root carrying `currency-decimal-count` is in the new format. */
75
+ export declare function isNewPriceFormatRoot(root: AttributeReader | null | undefined): boolean;
@@ -0,0 +1,23 @@
1
+ import { ControlApi, ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
2
+ import { CommonControl } from '../../common-control';
3
+ import { ItemsBlockControlId } from '../enums/controlEnums';
4
+ import { type ItemsBlockConfig } from '../utils/nodeConfigUtils';
5
+ export declare const CONTROL_BLOCK_ID = ItemsBlockControlId.PRICE_FORMAT;
6
+ export declare function isNewPriceFormatBlock(currentNode: ImmutableHtmlNode | undefined): boolean;
7
+ /** One apply: the config patch, the root attrs the export reads, and both price texts re-rendered. */
8
+ export declare function applyPriceFormatChange(currentNode: ImmutableHtmlNode | undefined, api: ControlApi, patch: Partial<ItemsBlockConfig>, description: string): void;
9
+ export declare class ItemsBlockPriceFormatControl extends CommonControl {
10
+ private lastWritten;
11
+ getId(): string;
12
+ getTemplate(): string;
13
+ onRender(): void;
14
+ onTemplateNodeUpdated(node: ImmutableHtmlNode): void;
15
+ onDestroy(): void;
16
+ _onThousandSeparatorChange(value: string): void;
17
+ _onDecimalSeparatorChange(value: string): void;
18
+ _onDecimalCountChange(value: string): void;
19
+ private _currentFormat;
20
+ private _write;
21
+ private _formValues;
22
+ private _getSelectRow;
23
+ }
@@ -35,6 +35,7 @@ export declare class ItemsBlockControl extends CommonControl {
35
35
  _reFillTemplate(itemsType?: ProductType): void;
36
36
  _recalculateTrimming(): void;
37
37
  private _getParagraphFromBlock;
38
+ private _replacePriceText;
38
39
  private _escapeRegex;
39
40
  private _removeCurrencySymbol;
40
41
  private _replacePriceNumber;
@@ -46,6 +46,7 @@ export declare enum ItemsBlockControlId {
46
46
  PRICE_CURRENCY_SYMBOL = "items-block-price-currency-symbol-control",
47
47
  PRICE_CURRENCY_LOCATION = "items-block-price-currency-location-control",
48
48
  PRICE_ORIENTATION = "items-block-price-orientation-control",
49
+ PRICE_FORMAT = "items-block-price-format-control",
49
50
  NAME_ALIGN = "items-block-name-align-control",
50
51
  NAME_COLOR = "items-block-name-color-control",
51
52
  NAME_SIZE = "items-block-name-size-control",
@@ -1,3 +1,4 @@
1
+ import { type ItemsPriceFormat } from './constants/currency';
1
2
  import { type ItemsBlockConfig } from './utils/nodeConfigUtils';
2
3
  declare const migrationTemplate = "ADD YOUR MIGRATION HERE";
3
4
  type ProductType = 'CART_ITEMS' | 'BROWSED_ITEMS' | 'PURCHASED_ITEMS';
@@ -36,6 +37,8 @@ type TemplateParameters = {
36
37
  quantityStyles?: string;
37
38
  /** Price orientation within the card ('vertical' = stacked, 'horizontal' = side-by-side) */
38
39
  priceOrientation?: PriceOrientationType;
40
+ /** New price model (itemsPriceFormatting): root attrs + raw dummy amounts; absent = legacy output. */
41
+ priceFormat?: ItemsPriceFormat;
39
42
  };
40
43
  /**
41
44
  * Applies price orientation styles to the generated HTML template.
@@ -67,5 +70,5 @@ export declare const applyPriceOrientationStyles: (html: string, layoutOrientati
67
70
  * @param params.formattedPrice - Whether to use formatted price display
68
71
  * @returns HTML template string for the Items Block
69
72
  */
70
- export declare function getDefaultTemplate({ orientation, itemsType, itemId, currencySymbol, currencyLocation, migrate, formattedPrice, configBlockAttributes, nodeConfig, nameStyles, buttonStyles, priceStyles, originalPriceStyles, quantityStyles, priceOrientation, }: TemplateParameters): string;
73
+ export declare function getDefaultTemplate({ orientation, itemsType, itemId, currencySymbol, currencyLocation, migrate, formattedPrice, configBlockAttributes, nodeConfig, nameStyles, buttonStyles, priceStyles, originalPriceStyles, quantityStyles, priceOrientation, priceFormat, }: TemplateParameters): string;
71
74
  export default migrationTemplate;
@@ -18,6 +18,9 @@ export interface ItemsBlockConfig {
18
18
  priceCurrencySymbol: string;
19
19
  priceCurrencyLocation: string;
20
20
  priceOrientation: 'vertical' | 'horizontal';
21
+ priceThousandSeparator?: string;
22
+ priceDecimalSeparator?: string;
23
+ priceDecimalCount?: number;
21
24
  quantityControlEnabled: boolean;
22
25
  buttonLink: string;
23
26
  imageLink: string;