@useinsider/guido 3.19.0-beta.acb00a2 → 3.19.0-beta.b05a465

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 (66) hide show
  1. package/dist/@types/config/schemas.js +104 -91
  2. package/dist/components/Guido.vue.js +8 -8
  3. package/dist/components/Guido.vue2.js +85 -86
  4. package/dist/components/organisms/base/AuthErrorModal.vue.js +18 -0
  5. package/dist/components/organisms/base/AuthErrorModal.vue2.js +42 -0
  6. package/dist/components/organisms/header/EditorActions.vue.js +4 -4
  7. package/dist/components/organisms/header/EditorActions.vue2.js +23 -25
  8. package/dist/components/wrappers/WpModal.vue.js +1 -1
  9. package/dist/components/wrappers/WpModal.vue2.js +4 -3
  10. package/dist/composables/useActionsApi.js +44 -43
  11. package/dist/composables/useAuthError.js +52 -0
  12. package/dist/composables/useAutoSave.js +11 -11
  13. package/dist/composables/useCodeEditorApi.js +23 -9
  14. package/dist/composables/useCortexBlueprintBridge.js +54 -122
  15. package/dist/composables/useEmailTemplateApplier.js +52 -108
  16. package/dist/composables/useHttp.js +64 -54
  17. package/dist/composables/useLegacyStrategyConversion.js +23 -19
  18. package/dist/composables/useStripo.js +24 -20
  19. package/dist/composables/useToaster.js +17 -15
  20. package/dist/composables/useTranslations.js +3 -2
  21. package/dist/composables/useVersionHistoryApi.js +33 -24
  22. package/dist/composables/validators/useLiquidValidator.js +15 -15
  23. package/dist/config/migrator/index.js +14 -13
  24. package/dist/config/migrator/recommendationMigrator.js +28 -21
  25. package/dist/config/migrator/recommendationPartnerMigrator.js +56 -0
  26. package/dist/enums/extensions/recommendationBlock.js +30 -29
  27. package/dist/extensions/Blocks/Recommendation/block.js +15 -14
  28. package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +103 -91
  29. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +45 -38
  30. package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +72 -49
  31. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +30 -29
  32. package/dist/extensions/Blocks/Recommendation/utils/captureStyleTemplates.js +72 -70
  33. package/dist/extensions/Blocks/Recommendation/utils/compositionKeys.js +69 -60
  34. package/dist/extensions/Blocks/Recommendation/utils/partnerScope.js +25 -0
  35. package/dist/guido.css +1 -1
  36. package/dist/src/@types/config/schemas.d.ts +16 -0
  37. package/dist/src/components/organisms/base/AuthErrorModal.vue.d.ts +2 -0
  38. package/dist/src/components/wrappers/WpModal.vue.d.ts +5 -1
  39. package/dist/src/composables/useAuthError.d.ts +12 -0
  40. package/dist/src/composables/useConfig.d.ts +2 -0
  41. package/dist/src/composables/useCortexBlueprintBridge.d.ts +3 -2
  42. package/dist/src/composables/useEmailTemplateApplier.d.ts +5 -18
  43. package/dist/src/composables/useGuidoActions.d.ts +2 -0
  44. package/dist/src/composables/useHttp.d.ts +2 -0
  45. package/dist/src/config/migrator/index.d.ts +2 -1
  46. package/dist/src/config/migrator/recommendationPartnerMigrator.d.ts +19 -0
  47. package/dist/src/enums/extensions/recommendationBlock.d.ts +1 -1
  48. package/dist/src/extensions/Blocks/Recommendation/controls/cardComposition/index.d.ts +3 -0
  49. package/dist/src/extensions/Blocks/Recommendation/types/nodeConfig.d.ts +6 -0
  50. package/dist/src/extensions/Blocks/Recommendation/utils/compositionKeys.d.ts +4 -0
  51. package/dist/src/extensions/Blocks/Recommendation/utils/partnerScope.d.ts +33 -0
  52. package/dist/src/mock/cortexChatStore.d.ts +12 -0
  53. package/dist/src/stores/config.d.ts +20 -0
  54. package/dist/src/stores/guido-email-editor.d.ts +10 -20
  55. package/dist/src/stores/onboarding.d.ts +4 -0
  56. package/dist/src/stores/recommendation.d.ts +5 -0
  57. package/dist/src/utils/dateUtil.d.ts +10 -0
  58. package/dist/src/utils/genericUtil.d.ts +3 -0
  59. package/dist/src/utils/stripoEditorApi.d.ts +4 -0
  60. package/dist/static/styles/components/recommendation-strategy.css.js +9 -0
  61. package/dist/static/styles/components/version-history.css.js +2 -6
  62. package/dist/stores/guido-email-editor.js +1 -3
  63. package/dist/stores/onboarding.js +4 -0
  64. package/dist/stores/unsubscribe.js +3 -3
  65. package/dist/utils/stripoEditorApi.js +11 -0
  66. package/package.json +2 -1
@@ -1,10 +1,10 @@
1
- import { extractWrapperTags as C } from "../../../../utils/preserveTextStyles.js";
1
+ import { extractWrapperTags as A } from "../../../../utils/preserveTextStyles.js";
2
2
  import { RecommendationBlockId as c } from "../constants/blockIds.js";
3
- import { DESKTOP_CONTAINER_SELECTOR as S, ATTR_PRODUCT_NAME as E, ATTR_PRODUCT_PRICE as p, ATTR_PRODUCT_OLD_PRICE as y, ATTR_PRODUCT_OMNIBUS_PRICE as A, ATTR_PRODUCT_OMNIBUS_DISCOUNT as R, ATTR_PRODUCT_BUTTON as P, ATTR_PRODUCT_IMAGE as q, ATTR_PRODUCT_ATTR as x } from "../constants/selectors.js";
4
- import { CSS_CLASS_TEXT_TRIM as v } from "../controls/shared/textTrimCssRules.js";
5
- import { toCustomCompositionKey as B } from "../templates/utils.js";
6
- import { resolveRowCompositionKey as U } from "./compositionKeys.js";
7
- import { hasQuerySelectorAll as _, hasGetAttribute as l, hasGetStyle as I, hasGetComputedStyle as N } from "./tagName.js";
3
+ import { DESKTOP_CONTAINER_SELECTOR as b, ATTR_PRODUCT_NAME as k, ATTR_PRODUCT_PRICE as y, ATTR_PRODUCT_OLD_PRICE as p, ATTR_PRODUCT_OMNIBUS_PRICE as R, ATTR_PRODUCT_OMNIBUS_DISCOUNT as _, ATTR_PRODUCT_BUTTON as x, ATTR_PRODUCT_IMAGE as q, ATTR_PRODUCT_ATTR as v } from "../constants/selectors.js";
4
+ import { CSS_CLASS_TEXT_TRIM as B } from "../controls/shared/textTrimCssRules.js";
5
+ import { toCustomCompositionKey as U } from "../templates/utils.js";
6
+ import { resolveRowVisibilityKeys as N, isMergedInlinePriceRow as C } from "./compositionKeys.js";
7
+ import { hasQuerySelectorAll as I, hasGetAttribute as l, hasGetStyle as O, hasGetComputedStyle as M } from "./tagName.js";
8
8
  const s = [
9
9
  "font-size",
10
10
  "font-family",
@@ -14,14 +14,14 @@ const s = [
14
14
  "text-align",
15
15
  "line-height",
16
16
  "text-decoration"
17
- ], M = [
17
+ ], D = [
18
18
  "background",
19
19
  "background-color",
20
20
  "border-width",
21
21
  "border-color",
22
22
  "border-style",
23
23
  "border-radius"
24
- ], D = [
24
+ ], w = [
25
25
  ...s,
26
26
  "background",
27
27
  "background-color",
@@ -40,47 +40,47 @@ const s = [
40
40
  "border-radius",
41
41
  "margin"
42
42
  ], g = /* @__PURE__ */ new Set(["transparent", "rgba(0, 0, 0, 0)"]), L = [
43
- { attrKey: E, blockId: c.NAME, kind: "text" },
44
- { attrKey: p, blockId: c.PRICE, kind: "text" },
45
- { attrKey: y, blockId: c.OLD_PRICE, kind: "text" },
46
- { attrKey: A, blockId: c.OMNIBUS_PRICE, kind: "text" },
47
- { attrKey: R, blockId: c.OMNIBUS_DISCOUNT, kind: "text" },
48
- { attrKey: P, blockId: c.BUTTON, kind: "button" },
43
+ { attrKey: k, blockId: c.NAME, kind: "text" },
44
+ { attrKey: y, blockId: c.PRICE, kind: "text" },
45
+ { attrKey: p, blockId: c.OLD_PRICE, kind: "text" },
46
+ { attrKey: R, blockId: c.OMNIBUS_PRICE, kind: "text" },
47
+ { attrKey: _, blockId: c.OMNIBUS_DISCOUNT, kind: "text" },
48
+ { attrKey: x, blockId: c.BUTTON, kind: "button" },
49
49
  { attrKey: q, blockId: c.IMAGE, kind: "image" }
50
50
  ];
51
- function O(t) {
51
+ function h(t) {
52
52
  return t && "getInnerHTML" in t && typeof t.getInnerHTML == "function" ? t.getInnerHTML().trim() : "";
53
53
  }
54
- function w(t) {
54
+ function K(t) {
55
55
  return t && "getInnerText" in t && typeof t.getInnerText == "function" ? t.getInnerText().trim() : "";
56
56
  }
57
57
  function a(t, e, r) {
58
- !e || !I(e) || r.forEach((n) => {
58
+ !e || !O(e) || r.forEach((n) => {
59
59
  const o = e.getStyle(n);
60
60
  o && o !== "inherit" && o !== "initial" && (t[n] = o);
61
61
  });
62
62
  }
63
- function h(t) {
63
+ function E(t) {
64
64
  return Object.entries(t).map(([e, r]) => `${e}: ${r};`).join(" ");
65
65
  }
66
- function k(t) {
67
- if (!t || !I(t))
66
+ function P(t) {
67
+ if (!t || !O(t))
68
68
  return;
69
69
  const e = t.getStyle("background-color") || t.getStyle("background");
70
70
  return e && !g.has(e) ? e : void 0;
71
71
  }
72
- function b(t, e) {
72
+ function S(t, e) {
73
73
  const r = {};
74
- return a(r, t, e), h(r);
74
+ return a(r, t, e), E(r);
75
75
  }
76
- function K(t) {
76
+ function $(t) {
77
77
  const e = t.querySelector("p"), r = {};
78
78
  a(r, t, s), a(r, e, s), a(r, t.querySelector("strong"), s), a(r, t.querySelector("em"), s), a(r, t.querySelector("s"), s);
79
- const n = h(r), { openTags: o, closeTags: i } = C(O(e));
79
+ const n = E(r), { openTags: o, closeTags: i } = A(h(e));
80
80
  return !n && !o ? null : { pStyle: n || void 0, openTags: o, closeTags: i };
81
81
  }
82
- function $(t) {
83
- const e = t.querySelector(".es-button-border"), r = t.querySelector("a.es-button") ?? t.querySelector("a"), n = b(e, M), o = b(r, D), i = e && "getAttribute" in e ? e.getAttribute("class") ?? "" : "", u = /\bes-fw\b/.test(i), { openTags: T, closeTags: d } = C(O(r)), m = w(r);
82
+ function H(t) {
83
+ const e = t.querySelector(".es-button-border"), r = t.querySelector("a.es-button") ?? t.querySelector("a"), n = S(e, D), o = S(r, w), i = e && "getAttribute" in e ? e.getAttribute("class") ?? "" : "", u = /\bes-fw\b/.test(i), { openTags: T, closeTags: d } = A(h(r)), m = K(r);
84
84
  return !n && !o && !u && !T && !m ? null : {
85
85
  buttonBorderStyle: n || void 0,
86
86
  buttonAnchorStyle: o || void 0,
@@ -90,44 +90,44 @@ function $(t) {
90
90
  closeTags: d
91
91
  };
92
92
  }
93
- function H(t) {
94
- const e = b(t.querySelector("img"), G);
93
+ function F(t) {
94
+ const e = S(t.querySelector("img"), G);
95
95
  return e ? { imgStyle: e } : null;
96
96
  }
97
- function F(t, e) {
98
- return e === "button" ? $(t) : e === "image" ? H(t) : K(t);
97
+ function j(t, e) {
98
+ return e === "button" ? H(t) : e === "image" ? F(t) : $(t);
99
99
  }
100
100
  function f(t, e) {
101
101
  if (!t || !("querySelector" in t))
102
102
  return;
103
- const r = t.querySelector(S) ?? t;
103
+ const r = t.querySelector(b) ?? t;
104
104
  if (L.forEach(({ attrKey: i, blockId: u, kind: T }) => {
105
105
  const d = r.querySelector(`[esd-extension-block-id="${u}"]`);
106
106
  d && e(d, i, T);
107
- }), !_(r))
107
+ }), !I(r))
108
108
  return;
109
109
  const n = /* @__PURE__ */ new Set();
110
110
  r.querySelectorAll(
111
111
  `[esd-extension-block-id="${c.CUSTOM_ATTRIBUTE}"]`
112
112
  ).forEach((i) => {
113
- const u = l(i) ? i.getAttribute(x) : null;
114
- !u || n.has(u) || (n.add(u), e(i, B(u), "text"));
113
+ const u = l(i) ? i.getAttribute(v) : null;
114
+ !u || n.has(u) || (n.add(u), e(i, U(u), "text"));
115
115
  });
116
116
  }
117
- function j(t) {
117
+ function V(t) {
118
118
  const e = {};
119
119
  return f(t, (r, n, o) => {
120
120
  if (!("querySelector" in r))
121
121
  return;
122
- const i = F(r, o);
122
+ const i = j(r, o);
123
123
  i && (e[n] = i);
124
124
  }), e;
125
125
  }
126
126
  function X(t) {
127
127
  if (!t || !("querySelector" in t))
128
128
  return;
129
- const e = t.querySelector(S) ?? t, r = e.querySelector(".product-card-segment") ?? e.querySelector(".product-card-wrapper");
130
- return k(r);
129
+ const e = t.querySelector(b) ?? t, r = e.querySelector(".product-card-segment") ?? e.querySelector(".product-card-wrapper");
130
+ return P(r);
131
131
  }
132
132
  function z(t) {
133
133
  if (!t)
@@ -135,10 +135,10 @@ function z(t) {
135
135
  const e = l(t) ? t.getAttribute("bgcolor") : null;
136
136
  if (e && !g.has(e))
137
137
  return e;
138
- const r = k(t);
138
+ const r = P(t);
139
139
  if (r)
140
140
  return r;
141
- const n = N(t) ? t.getComputedStyle("background-color") : void 0;
141
+ const n = M(t) ? t.getComputedStyle("background-color") : void 0;
142
142
  return n && !g.has(n) ? n : void 0;
143
143
  }
144
144
  function Q(t) {
@@ -150,7 +150,7 @@ function Q(t) {
150
150
  i && (e[n] = i);
151
151
  }), e;
152
152
  }
153
- function V(t) {
153
+ function W(t) {
154
154
  const e = {};
155
155
  return f(t, (r, n, o) => {
156
156
  if (o === "image")
@@ -159,68 +159,70 @@ function V(t) {
159
159
  i && (e[n] = i);
160
160
  }), e;
161
161
  }
162
- const W = /^es-[pm]\d+[trbl]?$/;
163
- function Y(t) {
162
+ const Y = /^es-[pm]\d+[trbl]?$/;
163
+ function J(t) {
164
164
  const e = l(t) ? t.getAttribute("class") : null;
165
165
  if (!e)
166
166
  return;
167
- const r = e.split(/\s+/).filter((n) => W.test(n) || n === v);
167
+ const r = e.split(/\s+/).filter((n) => Y.test(n) || n === B);
168
168
  return r.length ? r.join(" ") : void 0;
169
169
  }
170
- function J(t) {
170
+ function Z(t) {
171
171
  if (!t || !("querySelector" in t))
172
172
  return !1;
173
- const e = t.querySelector(S) ?? t, r = (n) => !!(n && "querySelector" in n && n.querySelector(".product-price") && n.querySelector(".product-old-price"));
174
- return r(e.querySelector(`[data-attribute-type="${p}"]`)) || r(e.querySelector(`[data-attribute-type="${y}"]`));
173
+ const e = t.querySelector(b) ?? t;
174
+ return C(e.querySelector(`[data-attribute-type="${y}"]`)) || C(e.querySelector(`[data-attribute-type="${p}"]`));
175
175
  }
176
- function Z(t) {
177
- const e = {}, r = J(t);
176
+ function tt(t) {
177
+ const e = {}, r = Z(t);
178
178
  return f(t, (n, o, i) => {
179
- if (i === "image" || r && (o === p || o === y))
179
+ if (i === "image" || r && (o === y || o === p))
180
180
  return;
181
- const u = Y(n);
181
+ const u = J(n);
182
182
  u && (e[o] = u);
183
183
  }), e;
184
184
  }
185
- function tt(t) {
185
+ function et(t) {
186
186
  const e = {};
187
187
  return f(t, (r, n) => {
188
- if (n !== A && n !== R || !l(r))
188
+ if (n !== R && n !== _ || !l(r))
189
189
  return;
190
190
  const o = r.getAttribute("data-text-before"), i = r.getAttribute("data-text-after");
191
191
  (o != null || i != null) && (e[n] = { before: o ?? void 0, after: i ?? void 0 });
192
192
  }), e;
193
193
  }
194
- function et(t) {
194
+ function rt(t) {
195
195
  const e = {};
196
196
  if (!t || !("querySelector" in t))
197
197
  return e;
198
- const r = t.querySelector(S) ?? t;
199
- return _(r) && r.querySelectorAll(".recommendation-attribute-row").forEach((n) => {
198
+ const r = t.querySelector(b) ?? t;
199
+ return I(r) && r.querySelectorAll(".recommendation-attribute-row").forEach((n) => {
200
200
  if (!l(n))
201
201
  return;
202
- const o = U(n), i = n.getAttribute("data-visibility");
203
- o && i != null && (e[o] = i !== "0");
202
+ const o = n.getAttribute("data-visibility");
203
+ o != null && N(n).forEach((i) => {
204
+ e[i] = o !== "0";
205
+ });
204
206
  }), e;
205
207
  }
206
- function at(t) {
208
+ function lt(t) {
207
209
  return {
208
- styleTemplates: j(t),
210
+ styleTemplates: V(t),
209
211
  cardBackgroundColor: X(t),
210
212
  cellBackgroundColors: Q(t),
211
- cellAlignments: V(t),
212
- cellClasses: Z(t),
213
- omnibusTexts: tt(t),
214
- visibility: et(t)
213
+ cellAlignments: W(t),
214
+ cellClasses: tt(t),
215
+ omnibusTexts: et(t),
216
+ visibility: rt(t)
215
217
  };
216
218
  }
217
219
  export {
218
- j as captureAttributeStyleTemplates,
220
+ V as captureAttributeStyleTemplates,
219
221
  X as captureCardBackgroundColor,
220
- V as captureCellAlignments,
222
+ W as captureCellAlignments,
221
223
  Q as captureCellBackgroundColors,
222
- Z as captureCellClasses,
223
- tt as captureOmnibusTexts,
224
- at as captureStyles,
225
- et as captureVisibility
224
+ tt as captureCellClasses,
225
+ et as captureOmnibusTexts,
226
+ lt as captureStyles,
227
+ rt as captureVisibility
226
228
  };
@@ -1,89 +1,98 @@
1
- import { ATTR_CUSTOM_PREFIX as s, ATTR_PRODUCT_ATTR as i, PRODUCT_ATTRIBUTE_PREFIX as f, ATTR_DATA_ATTRIBUTE_TYPE as l, SELECTOR_ATTRIBUTE_ROW as R } from "../constants/selectors.js";
2
- function d(t) {
3
- return !t.startsWith(f);
1
+ import { ATTR_CUSTOM_PREFIX as o, ATTR_PRODUCT_PRICE as g, ATTR_PRODUCT_OLD_PRICE as d, PRODUCT_ATTRIBUTE_PREFIX as a, ATTR_DATA_ATTRIBUTE_TYPE as f, ATTR_PRODUCT_ATTR as c, SELECTOR_ATTRIBUTE_ROW as y } from "../constants/selectors.js";
2
+ function q(t) {
3
+ return !t.startsWith(a);
4
4
  }
5
- function y(t) {
6
- return t.startsWith(f) ? t.substring(f.length) : t;
7
- }
8
- function T(t) {
9
- return t.startsWith(s) ? t.substring(s.length) : t;
5
+ function $(t) {
6
+ return t.startsWith(a) ? t.substring(a.length) : t;
10
7
  }
11
8
  function A(t) {
12
- return `${s}${t}`;
9
+ return t.startsWith(o) ? t.substring(o.length) : t;
10
+ }
11
+ function T(t) {
12
+ return `${o}${t}`;
13
13
  }
14
- function P(t) {
15
- return t.type === "defaultAttribute" ? t.attributeName : `${f}${t.attributeName}`;
14
+ function C(t) {
15
+ return t.type === "defaultAttribute" ? t.attributeName : `${a}${t.attributeName}`;
16
16
  }
17
- function _(t, r) {
17
+ function h(t, r) {
18
18
  const n = Object.values(r).filter((e) => e.attributeName === t);
19
19
  return n.find((e) => e.type === "defaultAttribute") ?? n[0];
20
20
  }
21
- function a(t, r) {
21
+ function l(t, r) {
22
22
  return t && "getAttribute" in t ? t.getAttribute(r) : null;
23
23
  }
24
- function m(t, r, n = {}) {
25
- const e = `${s}${t}`, u = r == null ? void 0 : r.querySelector(
26
- `${R}[${l}="${e}"]`
27
- ), c = a(u, i) ?? a(u == null ? void 0 : u.querySelector(`[${i}]`), i);
28
- if (c)
29
- return c;
30
- const o = _(t, n);
31
- return o ? P(o) : t;
24
+ function S(t, r, n = {}) {
25
+ const e = `${o}${t}`, u = r == null ? void 0 : r.querySelector(
26
+ `${y}[${f}="${e}"]`
27
+ ), i = l(u, c) ?? l(u == null ? void 0 : u.querySelector(`[${c}]`), c);
28
+ if (i)
29
+ return i;
30
+ const s = h(t, n);
31
+ return s ? C(s) : t;
32
32
  }
33
- function g(t, r, n = {}) {
34
- return t.startsWith(f) ? t : m(t, r, n);
33
+ function P(t, r, n = {}) {
34
+ return t.startsWith(a) ? t : S(t, r, n);
35
35
  }
36
- function C(t, r, n = {}) {
36
+ function O(t, r, n = {}) {
37
37
  return t.map((e) => {
38
- if (!e.startsWith(s))
38
+ if (!e.startsWith(o))
39
39
  return e;
40
- const u = T(e);
41
- return A(g(u, r, n));
40
+ const u = A(e);
41
+ return T(P(u, r, n));
42
42
  });
43
43
  }
44
- function E(t, r, n = {}) {
45
- return t.map((e) => g(e, r, n));
44
+ function p(t, r, n = {}) {
45
+ return t.map((e) => P(e, r, n));
46
46
  }
47
- function S(t) {
48
- const r = a(t, l);
49
- if (!(r != null && r.startsWith(s)))
47
+ function b(t) {
48
+ const r = l(t, f);
49
+ if (!(r != null && r.startsWith(o)))
50
50
  return r;
51
- const n = "querySelector" in t ? t.querySelector(`[${i}]`) : void 0, e = a(n, i);
52
- return e ? A(e) : r;
51
+ const n = "querySelector" in t ? t.querySelector(`[${c}]`) : void 0, e = l(n, c);
52
+ return e ? T(e) : r;
53
+ }
54
+ function m(t) {
55
+ return !!(t && "querySelector" in t && t.querySelector(".product-price") && t.querySelector(".product-old-price"));
56
+ }
57
+ function D(t) {
58
+ const r = b(t);
59
+ return r ? m(t) ? [g, d] : [r] : [];
53
60
  }
54
- function $(t, r, n) {
55
- const e = a(t, i), u = a(t.querySelector(`[${i}]`), i), c = e ?? u;
56
- return c === null ? n : c === r;
61
+ function R(t, r, n) {
62
+ const e = l(t, c), u = l(t.querySelector(`[${c}]`), c), i = e ?? u;
63
+ return i === null ? n : i === r;
57
64
  }
58
- function W(t, r) {
59
- const n = (h) => t.querySelector(
60
- `${R}[${l}="${h}"]`
65
+ function I(t, r) {
66
+ const n = (_) => t.querySelector(
67
+ `${y}[${f}="${_}"]`
61
68
  );
62
- if (!r.startsWith(s))
69
+ if (!r.startsWith(o))
63
70
  return n(r) ?? null;
64
- const e = T(r), u = n(r);
65
- if (u && $(u, e, !0))
71
+ const e = A(r), u = n(r);
72
+ if (u && R(u, e, !0))
66
73
  return u;
67
- const c = A(y(e)), o = c === r ? void 0 : n(c);
68
- return o && $(o, e, !1) ? o : null;
74
+ const i = T($(e)), s = i === r ? void 0 : n(i);
75
+ return s && R(s, e, !1) ? s : null;
69
76
  }
70
- function q(t, r) {
71
- const n = T(r), e = A(y(n));
77
+ function U(t, r) {
78
+ const n = A(r), e = T($(n));
72
79
  return e === r ? t : t.replace(
73
- `${l}="${e}"`,
74
- `${l}="${r}"`
80
+ `${f}="${e}"`,
81
+ `${f}="${r}"`
75
82
  );
76
83
  }
77
84
  export {
78
- y as bareAttributeName,
79
- T as compositionKeyToProductAttr,
80
- P as filterToProductAttrValue,
81
- W as findAttributeRow,
82
- _ as findFilterByBareName,
83
- d as isDefaultProductAttr,
84
- C as normalizeCompositionKeys,
85
- E as normalizeCustomAttrValues,
86
- A as productAttrToCompositionKey,
87
- S as resolveRowCompositionKey,
88
- q as rewriteLegacyRowKeyHtml
85
+ $ as bareAttributeName,
86
+ A as compositionKeyToProductAttr,
87
+ C as filterToProductAttrValue,
88
+ I as findAttributeRow,
89
+ h as findFilterByBareName,
90
+ q as isDefaultProductAttr,
91
+ m as isMergedInlinePriceRow,
92
+ O as normalizeCompositionKeys,
93
+ p as normalizeCustomAttrValues,
94
+ T as productAttrToCompositionKey,
95
+ b as resolveRowCompositionKey,
96
+ D as resolveRowVisibilityKeys,
97
+ U as rewriteLegacyRowKeyHtml
89
98
  };
@@ -0,0 +1,25 @@
1
+ import { ATTR_CUSTOM_PREFIX as f } from "../constants/selectors.js";
2
+ function o(t) {
3
+ if (typeof t == "string")
4
+ return t.trim() !== "";
5
+ if (t && typeof t == "object" && "strategyId" in t) {
6
+ const { strategyId: r } = t;
7
+ return (typeof r == "string" || typeof r == "number") && String(r).trim() !== "";
8
+ }
9
+ return !1;
10
+ }
11
+ function u({ config: t, blockId: r, partnerName: e, campaignUrls: n, rrsEnabled: i }) {
12
+ return e ? t.partnerName ? t.partnerName !== e : !i || !t.strategyId || !n ? !1 : !o(n[String(r)]) : !1;
13
+ }
14
+ function a({ config: t, campaignUrls: r, rrsEnabled: e }) {
15
+ return !t.strategyId || e && !!r;
16
+ }
17
+ function g(t) {
18
+ return t.filter((r) => !r.startsWith(f));
19
+ }
20
+ export {
21
+ a as canJudgeUnstampedBlock,
22
+ u as carriesForeignPartnerConfig,
23
+ o as isDefinedCampaignUrl,
24
+ g as withoutCustomAttributes
25
+ };
package/dist/guido.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-73199fa4] .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-1ca6baf0]{gap:4px}.header-wrapper[data-v-d11dd577]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.guido-editor__wrapper[data-v-59690055]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-59690055]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-59690055]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-91a26acd]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-91a26acd]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-91a26acd]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-91a26acd]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-91a26acd]{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-73199fa4] .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-c61cc8ea]{gap:4px}.header-wrapper[data-v-d11dd577]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.guido-editor__wrapper[data-v-926b01f5]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-926b01f5]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-926b01f5]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-91a26acd]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-91a26acd]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-91a26acd]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-91a26acd]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-91a26acd]{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}
@@ -278,6 +278,14 @@ export declare const TemplateSchema: v.ObjectSchema<{
278
278
  * mount. Non-numbers still fail, like every other field in this schema.
279
279
  */
280
280
  readonly trackIdCounter: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, number>]>, 0>;
281
+ /**
282
+ * The variation's saved `recommendationCampaignUrls`, keyed by block id. A block
283
+ * that still names a strategy but has no entry here had it dropped by a
284
+ * cross-account duplicate, so Guido resets it on load (SD-151945). Omit it and
285
+ * that check is off, and so is any non-object value such as `null`, because a reset
286
+ * cannot be undone. Hosts send `[]` for an empty map.
287
+ */
288
+ readonly recommendationCampaignUrls: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnknownSchema, v.TransformAction<unknown, Record<string, unknown> | undefined>]>, undefined>;
281
289
  /** Migration-only inputs (legacy block configs) */
282
290
  readonly migration: v.OptionalSchema<v.ObjectSchema<{
283
291
  /**
@@ -701,6 +709,14 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
701
709
  * mount. Non-numbers still fail, like every other field in this schema.
702
710
  */
703
711
  readonly trackIdCounter: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, number>]>, 0>;
712
+ /**
713
+ * The variation's saved `recommendationCampaignUrls`, keyed by block id. A block
714
+ * that still names a strategy but has no entry here had it dropped by a
715
+ * cross-account duplicate, so Guido resets it on load (SD-151945). Omit it and
716
+ * that check is off, and so is any non-object value such as `null`, because a reset
717
+ * cannot be undone. Hosts send `[]` for an empty map.
718
+ */
719
+ readonly recommendationCampaignUrls: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnknownSchema, v.TransformAction<unknown, Record<string, unknown> | undefined>]>, undefined>;
704
720
  /** Migration-only inputs (legacy block configs) */
705
721
  readonly migration: v.OptionalSchema<v.ObjectSchema<{
706
722
  /**
@@ -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;
@@ -3,6 +3,7 @@ type __VLS_Props = {
3
3
  id: string;
4
4
  title: string;
5
5
  description?: string;
6
+ state?: 'default' | 'primary' | 'warning' | 'danger';
6
7
  size?: 'X-small' | 'small' | 'medium' | 'large';
7
8
  footerButtonOptions?: FooterButtonGroup;
8
9
  closeButtonStatus?: boolean;
@@ -15,6 +16,7 @@ type __VLS_Slots = {} & {
15
16
  };
16
17
  declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
17
18
  description: string;
19
+ state: string;
18
20
  size: string;
19
21
  footerButtonOptions: undefined;
20
22
  closeButtonStatus: boolean;
@@ -26,6 +28,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
26
28
  "secondary-action": () => void;
27
29
  }, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
28
30
  description: string;
31
+ state: string;
29
32
  size: string;
30
33
  footerButtonOptions: undefined;
31
34
  closeButtonStatus: boolean;
@@ -34,9 +37,10 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
34
37
  }>>>, {
35
38
  size: "X-small" | "small" | "medium" | "large";
36
39
  description: string;
37
- closeOnOutsideClick: boolean;
40
+ state: "default" | "primary" | "warning" | "danger";
38
41
  footerButtonOptions: FooterButtonGroup;
39
42
  closeButtonStatus: boolean;
43
+ closeOnOutsideClick: boolean;
40
44
  footerStatus: boolean;
41
45
  }>;
42
46
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -0,0 +1,12 @@
1
+ export interface AuthErrorState {
2
+ status: number;
3
+ data: Record<string, unknown> | null;
4
+ }
5
+ export declare const isPanelOrigin: (url: string) => boolean;
6
+ export declare const reportAuthError: (status: number, body: string, url: string) => void;
7
+ export declare const useAuthError: () => {
8
+ authError: import("vue").Ref<{
9
+ status: number;
10
+ data: Record<string, unknown> | null;
11
+ } | null>;
12
+ };
@@ -43,6 +43,7 @@ export declare const useConfig: () => {
43
43
  selectedUnsubscribePages: number[];
44
44
  forceRecreate: boolean;
45
45
  trackIdCounter: number;
46
+ recommendationCampaignUrls?: Record<string, unknown> | undefined;
46
47
  migration: {
47
48
  recommendationConfigs: {
48
49
  [x: string]: {
@@ -180,6 +181,7 @@ export declare const useConfig: () => {
180
181
  selectedUnsubscribePages: number[];
181
182
  forceRecreate: boolean;
182
183
  trackIdCounter: number;
184
+ recommendationCampaignUrls?: Record<string, unknown> | undefined;
183
185
  migration: {
184
186
  recommendationConfigs: {
185
187
  [x: string]: {
@@ -17,11 +17,12 @@
17
17
  * - `error` segments (and message-level `isError` / `isCancelled`) trigger
18
18
  * a localized toaster.
19
19
  *
20
- * Every apply settles into a terminal `applyAcks` entry, so cortex moves its button on the write, not the click.
21
- *
22
20
  * In dev (`import.meta.env.DEV`) every observed segment + message-level flag
23
21
  * change is also `console.debug`-logged with the prefix `[guido:cortex]` so a
24
22
  * developer can watch the agent stream in real time. In production this is
25
23
  * gated behind `localStorage.guido:debug:ai === '1'`.
24
+ *
25
+ * If cortex-fe isn't loaded the chat store is undefined and the bridge is a
26
+ * no-op (intentional — Guido must still work standalone).
26
27
  */
27
28
  export declare const useCortexBlueprintBridge: () => void;
@@ -1,16 +1,4 @@
1
1
  type ApplyStatus = 'pending' | 'applying' | 'applied' | 'failed';
2
- /**
3
- * Terminal outcome of an apply; every promise here settles with one, since the bridge acks on it.
4
- * `superseded`: a newer payload for the same key replaced this one and owns the ack.
5
- */
6
- export type ApplyOutcome = {
7
- status: 'applied';
8
- } | {
9
- status: 'failed';
10
- error: unknown;
11
- } | {
12
- status: 'superseded';
13
- };
14
2
  /**
15
3
  * Applies email_template blueprints from the chat agent to the Stripo editor.
16
4
  *
@@ -21,19 +9,18 @@ export type ApplyOutcome = {
21
9
  * - manual Apply click (first apply): immediate.
22
10
  * - blueprint_update after the user has applied once: debounced 250 ms trailing
23
11
  * so rapid mid-stream updates don't thrash updateHtmlAndCss.
24
- * - a click before Stripo is ready is queued and flushed when `isStripoInitialized` flips.
25
12
  */
26
13
  export declare const useEmailTemplateApplier: () => {
27
14
  applyStatus: import("vue").Ref<Record<string, ApplyStatus>>;
28
- markPending: (key: string) => void;
29
- applyTemplate: (key: string, data: {
15
+ markPending: (blueprintId: string) => void;
16
+ applyTemplate: (blueprintId: string, data: {
30
17
  html?: string;
31
18
  css?: string;
32
- }) => Promise<ApplyOutcome>;
33
- applyTemplateDebounced: (key: string, data: {
19
+ }) => void;
20
+ applyTemplateDebounced: (blueprintId: string, data: {
34
21
  html?: string;
35
22
  css?: string;
36
- }) => Promise<ApplyOutcome>;
23
+ }) => void;
37
24
  };
38
25
  export declare const resetEmailTemplateApplier: () => void;
39
26
  export {};