@useinsider/guido 3.30.0-beta.a1f329f → 3.30.0-beta.b86be87

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.
@@ -0,0 +1,113 @@
1
+ import { useDynamicContentStore as g } from "../stores/dynamic-content.js";
2
+ import { useEditorStore as L } from "../stores/editor.js";
3
+ import { findEditorShadowRoot as S } from "../utils/editorShadowRoot.js";
4
+ import { watch as T } from "vue";
5
+ const p = "merge-tag-selector", y = "merge-tag-value", m = "guido-invalid-dynamic-content-style", $ = (t) => t.replace(/["\\]/g, "\\$&").replace(/[\n\r\f]/g, (n) => `\\${n.charCodeAt(0).toString(16)} `), M = (t) => {
6
+ const n = t.flatMap((o) => {
7
+ const e = $(o);
8
+ return [`="{{${e}}}"`, `^="{{${e}\\|"`, `="{{ ${e} }}"`, `^="{{ ${e} \\|"`].map((i) => `${p}[${y}${i}]`).flatMap((i) => [`${i} .esd-merge-tag`, `${i} .esd-x`]);
9
+ });
10
+ return n.length === 0 ? "" : `${n.join(`,
11
+ `)} {
12
+ color: var(--guido-dc-invalid-color) !important;
13
+ border-color: var(--guido-dc-invalid-color) !important;
14
+ }`;
15
+ }, v = (t) => {
16
+ const n = /^\{\{([^}]*)\}\}/.exec(t.getAttribute(y) ?? "");
17
+ return (n == null ? void 0 : n[1].split("|")[0].trim()) ?? "";
18
+ }, w = (t) => typeof (t == null ? void 0 : t.nodeType) == "number", x = (t) => {
19
+ const n = t;
20
+ return typeof (n == null ? void 0 : n.closest) == "function" ? n.closest(p) : null;
21
+ }, f = () => {
22
+ var t;
23
+ return ((t = S()) == null ? void 0 : t.querySelector("iframe")) ?? null;
24
+ }, C = () => {
25
+ var t, n;
26
+ return ((n = (t = f()) == null ? void 0 : t.contentWindow) == null ? void 0 : n.document) ?? null;
27
+ }, A = (t, n) => {
28
+ const o = t.getBoundingClientRect(), e = n.getBoundingClientRect();
29
+ return {
30
+ x: o.x + e.x,
31
+ y: o.y + e.y,
32
+ width: e.width,
33
+ height: e.height
34
+ };
35
+ }, h = (t, n) => {
36
+ var c;
37
+ const o = M(n), e = t.getElementById(m);
38
+ if (!o) {
39
+ e == null || e.remove();
40
+ return;
41
+ }
42
+ if (e) {
43
+ e.textContent !== o && (e.textContent = o);
44
+ return;
45
+ }
46
+ const i = t.createElement("style");
47
+ i.id = m, i.textContent = o, (c = t.head ?? t.body) == null || c.appendChild(i);
48
+ }, B = () => {
49
+ const t = C();
50
+ if (t)
51
+ try {
52
+ const n = g().invalidDynamicContentList.map((o) => o.value);
53
+ h(t, n);
54
+ } catch (n) {
55
+ console.error("Failed to apply the invalid dynamic content marking", n);
56
+ }
57
+ }, G = () => {
58
+ const t = g(), n = L();
59
+ let o = null, e = null;
60
+ const i = () => {
61
+ e && (e = null, document.dispatchEvent(new CustomEvent("dynamic-content:invalid-leave")));
62
+ }, c = (r) => {
63
+ const s = x(r.target);
64
+ if (!s || s === e)
65
+ return;
66
+ const l = t.getInvalidDynamicContent(v(s)), u = f();
67
+ if (!l || !u)
68
+ return;
69
+ e = s;
70
+ const I = {
71
+ entry: { ...l },
72
+ position: A(u, s)
73
+ };
74
+ document.dispatchEvent(new CustomEvent("dynamic-content:invalid-hover", { detail: I }));
75
+ }, d = (r) => {
76
+ !e || w(r.relatedTarget) && e.contains(r.relatedTarget) || i();
77
+ }, a = () => {
78
+ o == null || o.removeEventListener("mouseover", c), o == null || o.removeEventListener("mouseout", d), o == null || o.removeEventListener("scroll", i, !0), o = null, i();
79
+ }, E = () => {
80
+ if (!n.isStripoInitialized) {
81
+ a();
82
+ return;
83
+ }
84
+ const r = C(), s = t.invalidDynamicContentList.map((l) => l.value);
85
+ if (!r) {
86
+ a();
87
+ return;
88
+ }
89
+ if (h(r, s), s.length === 0) {
90
+ a();
91
+ return;
92
+ }
93
+ r !== o && (a(), r.addEventListener("mouseover", c), r.addEventListener("mouseout", d), r.addEventListener("scroll", i, !0), o = r), e && (!e.isConnected || !s.includes(v(e))) && i();
94
+ };
95
+ return T(
96
+ [
97
+ () => n.isStripoInitialized,
98
+ () => n.changeSeq,
99
+ () => t.invalidDynamicContentList
100
+ ],
101
+ () => {
102
+ try {
103
+ E();
104
+ } catch (r) {
105
+ console.error("Failed to track invalid dynamic content", r);
106
+ }
107
+ }
108
+ ), { dispose: a };
109
+ };
110
+ export {
111
+ B as applyInvalidDynamicContentMarking,
112
+ G as useInvalidDynamicContentMarking
113
+ };
@@ -1,101 +1,101 @@
1
- import { useActionsApi as D } from "./useActionsApi.js";
2
- import { useConfig as F } from "./useConfig.js";
3
- import { useEditorLock as I } from "./useEditorLock.js";
4
- import { useSaveStart as N, useSaveComplete as j } from "./useGuidoActions.js";
5
- import { useSaveValidation as z } from "./useSaveValidation.js";
6
- import { useSaveValidationRollout as G } from "./useSaveValidationRollout.js";
7
- import { useSyncModuleExtractor as J } from "./useSyncModuleExtractor.js";
8
- import { ToasterTypeOptions as K } from "../enums/toaster.js";
9
- import { useStripoApi as Q } from "../services/stripoApi.js";
10
- import { useConfigStore as X } from "../stores/config.js";
11
- import { useDynamicContentStore as Y } from "../stores/dynamic-content.js";
12
- import { useSaveValidationStore as Z } from "../stores/save-validation.js";
13
- import { useTemplatePreparation as _, getHtmlReferencedUnsubscribePages as $ } from "../utils/templatePreparation.js";
14
- import { useAllowlist as ee } from "./useAllowlist.js";
15
- import { useHtmlValidator as te } from "./useHtmlValidator.js";
16
- import { useToaster as oe } from "./useToaster.js";
17
- import { useCouponBlockValidator as ie } from "./validators/useCouponBlockValidator.js";
18
- import { useHtmlDocumentCountValidator as se } from "./validators/useHtmlDocumentCountValidator.js";
19
- import { useLiquidValidator as re } from "./validators/useLiquidValidator.js";
20
- import { useSyncModuleBlockValidator as ae } from "./validators/useSyncModuleBlockValidator.js";
21
- import { useUnsubscribeBlockValidator as ne } from "./validators/useUnsubscribeBlockValidator.js";
22
- const Ue = () => {
23
- const l = N(), S = j(), { validateHtml: b } = te(), { validateLiquidSyntax: H } = re(), { validateCouponBlockTags: E } = ie(), {
24
- validateUnsubscribeBlockUniqueness: g,
25
- validateUnsubscribeBlockHasTemplate: V,
26
- validateNoInsiderUnsubscribeCode: x
27
- } = ne(), { validateSyncModuleBlocks: c } = ae(), { validateSingleHtmlDocument: u } = se(), { callbacks: a, isFeatureEnabled: n } = F(), { extractSyncModuleData: k } = J(), { setSyncModuleUnsubscriptionPages: C } = Q(), { editorSave: h, getTemplateData: d } = D(), { showToaster: B } = oe(), { getBlockedDomains: P, resolveToast: T } = ee(), { prepareTemplateDetails: w } = _(), { collectSaveValidationErrors: L } = z(), { isEnabled: U } = G(), A = Z(), M = Y(), y = X(), { runExclusive: m } = I(), f = async (e, t, i) => {
28
- if (!n("allowlistEnabled"))
1
+ import { useActionsApi as O } from "./useActionsApi.js";
2
+ import { useConfig as D } from "./useConfig.js";
3
+ import { useEditorLock as F } from "./useEditorLock.js";
4
+ import { useSaveStart as I, useSaveComplete as N } from "./useGuidoActions.js";
5
+ import { useSaveValidation as j } from "./useSaveValidation.js";
6
+ import { useSaveValidationRollout as z } from "./useSaveValidationRollout.js";
7
+ import { useSyncModuleExtractor as G } from "./useSyncModuleExtractor.js";
8
+ import { ToasterTypeOptions as J } from "../enums/toaster.js";
9
+ import { useStripoApi as K } from "../services/stripoApi.js";
10
+ import { useConfigStore as Q } from "../stores/config.js";
11
+ import { useDynamicContentStore as X } from "../stores/dynamic-content.js";
12
+ import { useSaveValidationStore as Y } from "../stores/save-validation.js";
13
+ import { useTemplatePreparation as Z, getHtmlReferencedUnsubscribePages as _ } from "../utils/templatePreparation.js";
14
+ import { useAllowlist as $ } from "./useAllowlist.js";
15
+ import { useHtmlValidator as tt } from "./useHtmlValidator.js";
16
+ import { useToaster as et } from "./useToaster.js";
17
+ import { useCouponBlockValidator as ot } from "./validators/useCouponBlockValidator.js";
18
+ import { useHtmlDocumentCountValidator as it } from "./validators/useHtmlDocumentCountValidator.js";
19
+ import { useLiquidValidator as rt } from "./validators/useLiquidValidator.js";
20
+ import { useSyncModuleBlockValidator as st } from "./validators/useSyncModuleBlockValidator.js";
21
+ import { useUnsubscribeBlockValidator as at } from "./validators/useUnsubscribeBlockValidator.js";
22
+ const Pt = () => {
23
+ const n = I(), S = N(), { validateHtml: y } = tt(), { validateLiquidSyntax: b } = rt(), { validateCouponBlockTags: H } = ot(), {
24
+ validateUnsubscribeBlockUniqueness: E,
25
+ validateUnsubscribeBlockHasTemplate: g,
26
+ validateNoInsiderUnsubscribeCode: V
27
+ } = at(), { validateSyncModuleBlocks: l } = st(), { validateSingleHtmlDocument: c } = it(), { callbacks: a, isFeatureEnabled: u } = D(), { extractSyncModuleData: x } = G(), { setSyncModuleUnsubscriptionPages: k } = K(), { editorSave: C, getTemplateData: m } = O(), { showToaster: h } = et(), { getBlockedDomains: B, resolveToast: T } = $(), { prepareTemplateDetails: p } = Z(), { collectSaveValidationErrors: L } = j(), { isEnabled: P } = z(), U = Y(), A = X(), w = Q(), { runExclusive: d } = F(), f = async (t, e, i) => {
28
+ if (!u("allowlistEnabled"))
29
29
  return !1;
30
- const o = await P(e, t);
30
+ const o = await B(t, e);
31
31
  if (!o.length)
32
32
  return !1;
33
33
  if (!i) {
34
- const s = await T(o);
35
- s != null && s.message && B({
36
- type: K.Warning,
37
- message: s.message,
38
- actionButton: s.actionButton
34
+ const r = await T(o);
35
+ r != null && r.message && h({
36
+ type: J.Warning,
37
+ message: r.message,
38
+ actionButton: r.actionButton
39
39
  });
40
40
  }
41
41
  return !0;
42
- }, R = async (e, t) => !E(e.compiledHtml) || n("blockUnsubscribeLinks") && !x(e.rawHtml, t) || !g(e.compiledHtml) || !V(e.compiledHtml) ? !1 : n("liquidSyntax") ? H(e.compiledHtml) : b(e.compiledHtml, e.dynamicContentList, !0), v = async (e, t) => {
43
- if (!await h())
42
+ }, M = async (t, e) => !H(t.compiledHtml) || u("blockUnsubscribeLinks") && !V(t.rawHtml, e) || !E(t.compiledHtml) || !g(t.compiledHtml) ? !1 : u("liquidSyntax") ? b(t.compiledHtml) : y(t.compiledHtml, t.dynamicContentList, !0), v = async (t, e) => {
43
+ if (!await C())
44
44
  return;
45
- const { unsubscribePayload: o, stripoModules: s } = k(e.rawHtml);
46
- if (await C(o), e.modules = s, !t.suppress) {
47
- const r = t.blankCompiled ? { compiledHtml: "", ampHtml: "" } : {};
48
- S({ ...e, ...r, silent: t.silent });
45
+ const { unsubscribePayload: o, stripoModules: r } = x(t.rawHtml);
46
+ if (await k(o), t.modules = r, !e.suppress) {
47
+ const s = e.blankCompiled ? { compiledHtml: "", ampHtml: "" } : {};
48
+ S({ ...t, ...s, silent: e.silent });
49
49
  }
50
- return e;
51
- }, W = async (e, t) => {
52
- var s;
53
- l();
54
- const i = await d();
55
- if (!u(i.html, t))
50
+ return t;
51
+ }, W = async (t, e) => {
52
+ var r;
53
+ n();
54
+ const i = await m();
55
+ if (!c(i.html, e))
56
56
  return;
57
- const o = await w(i);
58
- if (c(o.rawHtml, t)) {
59
- if (U.value && !t) {
60
- const r = await L(
57
+ const o = await p(i);
58
+ if (l(o.rawHtml, e)) {
59
+ if (P.value && !e) {
60
+ const s = await L(
61
61
  o.compiledHtml,
62
62
  o.dynamicContentList,
63
63
  o.rawHtml
64
64
  );
65
- if (!r)
65
+ if (!s)
66
66
  return;
67
- if (r.length) {
68
- A.open(r, "save");
67
+ if (s.length) {
68
+ U.open(s, "save");
69
69
  return;
70
70
  }
71
- } else if (!await R(o, t))
71
+ } else if (!await M(o, e))
72
72
  return;
73
- if (!((s = a.value) != null && s.externalValidation && !await a.value.externalValidation(o)) && !await f(o.compiledHtml, o.css, t))
74
- return v(o, { silent: t, suppress: e });
73
+ if (!((r = a.value) != null && r.externalValidation && !await a.value.externalValidation(o)) && !await f(o.compiledHtml, o.css, e))
74
+ return v(o, { silent: e, suppress: t });
75
75
  }
76
- }, q = async () => {
76
+ }, R = async () => {
77
77
  var i;
78
- if (!y.allowSaveWithErrors)
78
+ if (!w.allowSaveWithErrors)
79
79
  return;
80
- l();
81
- const e = await d();
82
- if (!u(e.html, !1))
80
+ n();
81
+ const t = await m();
82
+ if (!c(t.html, !1))
83
83
  return;
84
- const t = await w(e);
85
- if (c(t.rawHtml, !1) && !((i = a.value) != null && i.externalValidation && !await a.value.externalValidation(t)) && !await f(t.compiledHtml, t.css, !1))
86
- return v(t, { silent: !1, blankCompiled: !0 });
87
- }, O = async () => {
88
- if (!y.allowSaveWithErrors)
84
+ const e = await p(t);
85
+ if (l(e.rawHtml, !1) && !((i = a.value) != null && i.externalValidation && !await a.value.externalValidation(e)) && !await f(e.compiledHtml, e.css, !1))
86
+ return v(e, { silent: !1, blankCompiled: !0 });
87
+ }, q = async () => {
88
+ if (!w.allowSaveWithErrors)
89
89
  return;
90
- l();
91
- const { html: e, css: t } = await d();
92
- if (!u(e, !0) || !c(e, !0) || await f(e, t, !0))
90
+ n();
91
+ const { html: t, css: e } = await m();
92
+ if (!c(t, !0) || !l(t, !0) || await f(t, e, !0))
93
93
  return;
94
- const i = $(e), o = {
95
- dynamicContentList: M.getSelectedDynamicContentList,
94
+ const i = _(t), o = {
95
+ dynamicContentList: A.getSelectedDynamicContentList,
96
96
  compiledHtml: "",
97
- rawHtml: e,
98
- css: t,
97
+ rawHtml: t,
98
+ css: e,
99
99
  ampHtml: "",
100
100
  ampErrors: [],
101
101
  modules: [],
@@ -107,9 +107,11 @@ const Ue = () => {
107
107
  }
108
108
  };
109
109
  return v(o, { silent: !0 });
110
- }, p = () => n("readonly");
111
- return { save: (e = !1, t = !1) => p() ? Promise.resolve(void 0) : m(() => W(e, t)), saveWithErrors: () => p() ? Promise.resolve(void 0) : m(q), saveRawOnly: () => p() ? Promise.resolve(void 0) : m(O) };
110
+ };
111
+ return { save: (t = !1, e = !1) => d(
112
+ () => W(t, e)
113
+ ), saveWithErrors: () => d(R), saveRawOnly: () => d(q) };
112
114
  };
113
115
  export {
114
- Ue as useSave
116
+ Pt as useSave
115
117
  };
@@ -18,37 +18,37 @@ import { buildMergeTagEntries as oe, flattenDynamicContentList as re } from "../
18
18
  import { getStripoRuntimeBaseUrl as ie } from "../utils/stripoRuntime.js";
19
19
  let d = null, F = !1;
20
20
  const ve = (t) => {
21
- const { features: m, template: p, isFeatureEnabled: c } = G(), { handleError: f, showToaster: A } = W(), { getToken: P, getCustomFonts: R, getSyncModulesStatus: D } = ee(), { handleEvent: U } = K(), { handleModuleAdd: V } = J(), { restorePending: I } = z(), { getStripoBlocksConfig: L } = $(), { getStripoNotifications: q } = Q(), g = () => d || (d = new Promise((n, a) => {
21
+ const { features: u, template: m, isFeatureEnabled: p } = G(), { handleError: f, showToaster: A } = W(), { getToken: P, getCustomFonts: R, getSyncModulesStatus: D } = ee(), { handleEvent: U } = K(), { handleModuleAdd: V } = J(), { restorePending: I } = z(), { getStripoBlocksConfig: L } = $(), { getStripoNotifications: q } = Q(), g = () => d || (d = new Promise((n, s) => {
22
22
  if (document.getElementById("UiEditorScript")) {
23
23
  n();
24
24
  return;
25
25
  }
26
26
  const i = ie();
27
27
  if (!i) {
28
- a(
28
+ s(
29
29
  new Error("guido.stripo.version is not set in package.json. Please configure the Stripo version.")
30
30
  );
31
31
  return;
32
32
  }
33
- const s = `${i}UIEditor.js`, e = document.createElement("script");
34
- e.id = "UiEditorScript", e.type = "module", e.src = s, e.onload = () => {
33
+ const a = `${i}UIEditor.js`, e = document.createElement("script");
34
+ e.id = "UiEditorScript", e.type = "module", e.src = a, e.onload = () => {
35
35
  F = !0, n();
36
36
  }, e.onerror = () => {
37
- e.remove(), a(new Error(`Failed to load Stripo UIEditor script from S3: ${s}`));
37
+ e.remove(), s(new Error(`Failed to load Stripo UIEditor script from S3: ${a}`));
38
38
  }, document.body.appendChild(e);
39
39
  }), d.catch(() => {
40
40
  d = null;
41
- }), d), x = async (n, a, i, s = [], e = !1, u = !1) => {
41
+ }), d), x = async (n, s, i, a = [], e = !1, c = !1) => {
42
42
  var w, k, b, _;
43
- const o = T(), { html: y, css: S } = n, { baseBlocks: E, extensions: O } = await L();
43
+ const o = T(), { html: S, css: y } = n, { baseBlocks: E, extensions: O } = await L();
44
44
  t.mark("blocks_config_ready");
45
- const h = ((w = m.value) == null ? void 0 : w.displayConditions) ?? !0, H = ((k = m.value) == null ? void 0 : k.modulesDisabled) ?? !1, C = u || (((b = p.value) == null ? void 0 : b.forceRecreate) ?? !1), M = "https://email-static.useinsider.com https://edge.fullstory.com https://rs.fullstory.com";
46
- t.setTemplate({ html: y, css: S, forceRecreate: C }), v().importCss(), t.mark("init_editor"), await window.UIEditor.initEditor(
45
+ const h = ((w = u.value) == null ? void 0 : w.displayConditions) ?? !0, H = ((k = u.value) == null ? void 0 : k.modulesDisabled) ?? !1, C = c || (((b = m.value) == null ? void 0 : b.forceRecreate) ?? !1), M = "https://email-static.useinsider.com https://edge.fullstory.com https://rs.fullstory.com";
46
+ t.setTemplate({ html: S, css: y, forceRecreate: C }), v().importCss(), t.mark("init_editor"), await window.UIEditor.initEditor(
47
47
  document.querySelector("#guido-editor"),
48
48
  {
49
- metadata: a,
50
- html: y,
51
- css: S,
49
+ metadata: s,
50
+ html: S,
51
+ css: y,
52
52
  forceRecreate: C,
53
53
  locale: "en",
54
54
  undoButtonSelector: "#guido__undo-button",
@@ -56,7 +56,7 @@ const ve = (t) => {
56
56
  mobileViewButtonSelector: ".guido__view-option-selection-mobile",
57
57
  desktopViewButtonSelector: ".guido__view-option-selection-desktop",
58
58
  codeEditorButtonSelector: "#guido__code-button",
59
- customAppearanceMergetags: !c("liquidSyntax"),
59
+ customAppearanceMergetags: !p("liquidSyntax"),
60
60
  customAppearanceMergetagsBorderColor: "#f1f3fe",
61
61
  customAppearanceMergetagsBackgroundColor: "#f1f3fe",
62
62
  customViewStyles: te,
@@ -79,14 +79,14 @@ const ve = (t) => {
79
79
  editorFonts: {
80
80
  showDefaultStandardFonts: !0,
81
81
  showDefaultNotStandardFonts: !0,
82
- customFonts: s
82
+ customFonts: a
83
83
  },
84
84
  mergeTags: [
85
85
  {
86
86
  entries: oe(
87
87
  i.preselectedDynamicContentList,
88
- re((_ = p.value) == null ? void 0 : _.dynamicContentList),
89
- c("liquidSyntax")
88
+ re((_ = m.value) == null ? void 0 : _.dynamicContentList),
89
+ p("liquidSyntax")
90
90
  )
91
91
  }
92
92
  ],
@@ -119,7 +119,7 @@ const ve = (t) => {
119
119
  o.isVersionHistoryOpen = r;
120
120
  },
121
121
  onDataChanged() {
122
- c("readonly") || (o.hasChanges = !0), o.changeSeq += 1;
122
+ o.hasChanges = !0, o.changeSeq += 1;
123
123
  },
124
124
  onEvent: U,
125
125
  onModuleAdd: V,
@@ -138,15 +138,15 @@ const ve = (t) => {
138
138
  }
139
139
  );
140
140
  };
141
- return { initPlugin: async (n, a, i, s = !1) => {
141
+ return { initPlugin: async (n, s, i, a = !1) => {
142
142
  const e = T();
143
143
  try {
144
144
  t.mark("plugin_start"), t.setScriptPreloaded(F), await g(), t.mark("script_ready");
145
- const [u, o] = await Promise.all([
145
+ const [c, o] = await Promise.all([
146
146
  R(),
147
147
  D()
148
148
  ]);
149
- t.mark("fonts_sync_ready"), e.syncModulesEnabled = o, await x(n, a, i, u, o, s);
149
+ t.mark("fonts_sync_ready"), e.syncModulesEnabled = o, await x(n, s, i, c, o, a);
150
150
  } catch {
151
151
  e.loadingStatus = !1, A({
152
152
  type: Z.Error,
@@ -1,26 +1,27 @@
1
1
  var c = Object.defineProperty;
2
- var g = (o, s, t) => s in o ? c(o, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[s] = t;
3
- var r = (o, s, t) => g(o, typeof s != "symbol" ? s + "" : s, t);
4
- import { useConfig as d } from "../../composables/useConfig.js";
5
- import { findEditorShadowRoot as m } from "../../utils/editorShadowRoot.js";
6
- import { mergeTagToDynamicContent as u, dynamicContentToMergeTags as h } from "../../utils/genericUtil.js";
7
- import { UIElement as T, UIElementType as a, UEAttr as y, UIElementTagRegistry as C } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
8
- import { ExternalMergeTagsLibrary as E } from "./dynamic-content-modal.js";
9
- const l = "external-dynamic-content-ui-element", L = "button-add-dynamic-content";
10
- class B extends C {
11
- registerUiElements(s) {
12
- s[a.MERGETAGS] = l;
2
+ var g = (r, o, t) => o in r ? c(r, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[o] = t;
3
+ var s = (r, o, t) => g(r, typeof o != "symbol" ? o + "" : o, t);
4
+ import { useConfig as m } from "../../composables/useConfig.js";
5
+ import { applyInvalidDynamicContentMarking as d } from "../../composables/useInvalidDynamicContentMarking.js";
6
+ import { findEditorShadowRoot as u } from "../../utils/editorShadowRoot.js";
7
+ import { mergeTagToDynamicContent as h, dynamicContentToMergeTags as T } from "../../utils/genericUtil.js";
8
+ import { UIElement as y, UIElementType as a, UEAttr as C, UIElementTagRegistry as E } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
9
+ import { ExternalMergeTagsLibrary as L } from "./dynamic-content-modal.js";
10
+ const l = "external-dynamic-content-ui-element", k = "button-add-dynamic-content";
11
+ class D extends E {
12
+ registerUiElements(o) {
13
+ o[a.MERGETAGS] = l;
13
14
  }
14
15
  }
15
- class x extends T {
16
+ class U extends y {
16
17
  constructor() {
17
18
  super(...arguments);
18
- r(this, "mergeTagsButton", null);
19
- r(this, "mergeTagsLibrary", null);
20
- r(this, "clickListener", null);
21
- r(this, "lastClickedElement", null);
22
- r(this, "lastClickedFrame", null);
23
- r(this, "mousedownListener", null);
19
+ s(this, "mergeTagsButton", null);
20
+ s(this, "mergeTagsLibrary", null);
21
+ s(this, "clickListener", null);
22
+ s(this, "lastClickedElement", null);
23
+ s(this, "lastClickedFrame", null);
24
+ s(this, "mousedownListener", null);
24
25
  }
25
26
  getId() {
26
27
  return l;
@@ -45,7 +46,7 @@ class x extends T {
45
46
  onAttributeUpdated(t, e) {
46
47
  if (t !== "mergeTag" || !(e != null && e.value))
47
48
  return;
48
- const n = u(e), i = this._getLastClickedPosition();
49
+ const n = h(e), i = this._getLastClickedPosition();
49
50
  this.lastClickedElement = null, this.lastClickedFrame = null, this._openDynamicContentLibrary(n, i);
50
51
  }
51
52
  openMergeTagLibrary() {
@@ -57,14 +58,15 @@ class x extends T {
57
58
  * Dispatches event with dynamic content data and position
58
59
  */
59
60
  _openDynamicContentLibrary(t, e) {
60
- this.mergeTagsLibrary || (this.mergeTagsLibrary = new E()), this.mergeTagsLibrary.openMergeTagsLibrary(
61
+ this.mergeTagsLibrary || (this.mergeTagsLibrary = new L()), this.mergeTagsLibrary.openMergeTagsLibrary(
61
62
  t,
62
63
  (n) => {
63
64
  if (n.text && n.value) {
64
- const { isFeatureEnabled: i } = d();
65
- this.api.triggerValueChange(h([n], i("liquidSyntax"))[0]);
65
+ const { isFeatureEnabled: i } = m();
66
+ this.api.triggerValueChange(T([n], i("liquidSyntax"))[0]);
66
67
  } else
67
68
  this.api.triggerValueChange(null);
69
+ d();
68
70
  },
69
71
  e
70
72
  );
@@ -96,7 +98,7 @@ class x extends T {
96
98
  */
97
99
  _getEditorFrame() {
98
100
  var e, n;
99
- const t = (e = m()) == null ? void 0 : e.querySelector("iframe");
101
+ const t = (e = u()) == null ? void 0 : e.querySelector("iframe");
100
102
  return (n = t == null ? void 0 : t.contentWindow) != null && n.document ? t : null;
101
103
  }
102
104
  /**
@@ -145,7 +147,7 @@ class x extends T {
145
147
  <${a.BUTTON}
146
148
  id="guido__btn-add-dynamic-content"
147
149
  class="btn btn-primary"
148
- ${y.BUTTON.name}="${L}">
150
+ ${C.BUTTON.name}="${k}">
149
151
  <${a.ICON} src="plus" class="icon icon-button color-primary">
150
152
  </${a.ICON}>
151
153
  ${this.api.translate("Add Dynamic Content")}
@@ -154,6 +156,6 @@ class x extends T {
154
156
  }
155
157
  }
156
158
  export {
157
- B as DynamicContentTagRegistry,
158
- x as DynamicContentUiElementExtension
159
+ D as DynamicContentTagRegistry,
160
+ U as DynamicContentUiElementExtension
159
161
  };
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-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-b3603ae4]{gap:16px}.editor-actions__divider[data-v-b3603ae4]{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-0c5f11a1]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-0c5f11a1]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-0c5f11a1]{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-fcba7e99] .vueperslides__bullets{pointer-events:none!important}[data-v-fcba7e99] .vueperslides__parallax-wrapper{padding-bottom:110px!important}[data-v-1a34025a] .vueperslides__bullets{pointer-events:none!important}[data-v-1a34025a] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-8fc96a58] .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 .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}.guido-display-condition-create__separator[data-v-929822bc]{height:1px;margin:0 0 24px;background-image:linear-gradient(to right,currentColor 1px,transparent 1px);background-size:5px 1px}.guido-display-condition-create__methods[data-v-929822bc]{gap:16px}.guido-display-condition-select-root[data-v-0d740001] .in-drawer__footer{justify-content:flex-start}.guido-display-condition-select__delete-modal[data-v-0d740001]{position:relative;z-index:145}.guido-display-condition-select__delete-modal[data-v-0d740001] .in-modal-v2-wrapper__header-title{margin-bottom:0}.guido-display-condition-select-root[data-v-0d740001] .in-drawer__content>div{display:flex;flex-direction:column;min-height:100%}.guido-display-condition-select__list[data-v-0d740001]{display:flex;flex-direction:column;gap:24px;margin:0;padding:0;list-style:none}.guido-display-condition-card__header[data-v-0d740001]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px}.guido-display-condition-card__text[data-v-0d740001]{min-width:0}.guido-display-condition-card__name[data-v-0d740001],.guido-display-condition-card__description[data-v-0d740001]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.guido-display-condition-card__actions[data-v-0d740001]{display:flex;flex-shrink:0;align-items:center;gap:16px}.guido-display-condition-card__split[data-v-0d740001]{position:relative;display:flex;gap:1px}.guido-display-condition-card__menu[data-v-0d740001]{z-index:2;min-width:115px}.guido-display-condition-card__divider[data-v-0d740001]{width:1px;height:24px}.guido-display-condition-card__code[data-v-0d740001]{margin:1px 15px 15px;padding:8px;font-family:inherit;white-space:pre-wrap;word-break:break-word}.legacy-strategy-updated-modal[data-v-da2225a1]{position:relative;z-index:145}.ambiguous-dynamic-content-modal__content[data-v-2643213c]{padding-bottom:150px}
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-b7cb4d33]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-b7cb4d33]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-b7cb4d33]{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-fcba7e99] .vueperslides__bullets{pointer-events:none!important}[data-v-fcba7e99] .vueperslides__parallax-wrapper{padding-bottom:110px!important}[data-v-1a34025a] .vueperslides__bullets{pointer-events:none!important}[data-v-1a34025a] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-8fc96a58] .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 .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}.guido-display-condition-create__separator[data-v-929822bc]{height:1px;margin:0 0 24px;background-image:linear-gradient(to right,currentColor 1px,transparent 1px);background-size:5px 1px}.guido-display-condition-create__methods[data-v-929822bc]{gap:16px}.guido-display-condition-select-root[data-v-0d740001] .in-drawer__footer{justify-content:flex-start}.guido-display-condition-select__delete-modal[data-v-0d740001]{position:relative;z-index:145}.guido-display-condition-select__delete-modal[data-v-0d740001] .in-modal-v2-wrapper__header-title{margin-bottom:0}.guido-display-condition-select-root[data-v-0d740001] .in-drawer__content>div{display:flex;flex-direction:column;min-height:100%}.guido-display-condition-select__list[data-v-0d740001]{display:flex;flex-direction:column;gap:24px;margin:0;padding:0;list-style:none}.guido-display-condition-card__header[data-v-0d740001]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px}.guido-display-condition-card__text[data-v-0d740001]{min-width:0}.guido-display-condition-card__name[data-v-0d740001],.guido-display-condition-card__description[data-v-0d740001]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.guido-display-condition-card__actions[data-v-0d740001]{display:flex;flex-shrink:0;align-items:center;gap:16px}.guido-display-condition-card__split[data-v-0d740001]{position:relative;display:flex;gap:1px}.guido-display-condition-card__menu[data-v-0d740001]{z-index:2;min-width:115px}.guido-display-condition-card__divider[data-v-0d740001]{width:1px;height:24px}.guido-display-condition-card__code[data-v-0d740001]{margin:1px 15px 15px;padding:8px;font-family:inherit;white-space:pre-wrap;word-break:break-word}.legacy-strategy-updated-modal[data-v-da2225a1]{position:relative;z-index:145}.ambiguous-dynamic-content-modal__content[data-v-2643213c]{padding-bottom:150px}.invalid-dynamic-content-card[data-v-007c64e1]{position:fixed;z-index:1000;max-width:280px;padding:12px 16px;border:1px solid #dc2a2a;border-radius:4px;background-color:#fff;box-shadow:0 2px 8px #00000029}.invalid-dynamic-content-card__title[data-v-007c64e1]{margin:0 0 4px;font-weight:600;color:#dc2a2a}.invalid-dynamic-content-card__description[data-v-007c64e1]{margin:0;color:#4a4a4a}.invalid-dynamic-content-card__action[data-v-007c64e1]{margin-top:8px;padding:0;border:none;background:none;color:#0a2ecc;cursor:pointer}.invalid-dynamic-content-card__action[data-v-007c64e1]:hover{text-decoration:underline}
@@ -1,9 +1,9 @@
1
- const o = "3.30.0-beta.a1f329f", s = { stripo: { version: "2.87.0" } }, t = {
1
+ const o = "3.30.0-beta.b86be87", s = { stripo: { version: "2.87.0" } }, e = {
2
2
  version: o,
3
3
  guido: s
4
4
  };
5
5
  export {
6
- t as default,
6
+ e as default,
7
7
  s as guido,
8
8
  o as version
9
9
  };
@@ -419,8 +419,6 @@ export declare const FeaturesSchema: v.ObjectSchema<{
419
419
  readonly reusableRecommendationStrategy: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
420
420
  /** Convert linkless legacy unsubscribe blocks into text blocks and warn with a modal (opt-in) */
421
421
  readonly legacyUnsubscribeConversion: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
422
- /** Disable every save path and the unsaved-changes signal; read at mount only. */
423
- readonly readonly: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
424
422
  /** Items block: Recommendation-style price formatting (root currency-* attrs, raw price tags). Released dark. */
425
423
  readonly itemsPriceFormatting: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
426
424
  /** Warn on save when the design carries an Insider unsubscribe link or code (host sets true for SFMC accounts) */
@@ -848,8 +846,6 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
848
846
  readonly reusableRecommendationStrategy: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
849
847
  /** Convert linkless legacy unsubscribe blocks into text blocks and warn with a modal (opt-in) */
850
848
  readonly legacyUnsubscribeConversion: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
851
- /** Disable every save path and the unsaved-changes signal; read at mount only. */
852
- readonly readonly: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
853
849
  /** Items block: Recommendation-style price formatting (root currency-* attrs, raw price tags). Released dark. */
854
850
  readonly itemsPriceFormatting: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
855
851
  /** Warn on save when the design carries an Insider unsubscribe link or code (host sets true for SFMC accounts) */
@@ -13,6 +13,13 @@ export type BaseDynamicContent = {
13
13
  export type DynamicContent = BaseDynamicContent & {
14
14
  text: string;
15
15
  };
16
+ export type InvalidDynamicContent = {
17
+ value: string;
18
+ title: string;
19
+ description: string;
20
+ actionLabel: string;
21
+ actionAvailable: boolean;
22
+ };
16
23
  /**
17
24
  * A node in the partner-keyed dynamic-content tree (backend categorized-fields
18
25
  * shape). Category nodes carry `children`/`select_items`; leaf nodes are the
@@ -54,6 +61,10 @@ export type DynamicContentEvent = {
54
61
  attribute: DynamicContent;
55
62
  position?: PositionData;
56
63
  };
64
+ export type InvalidDynamicContentHoverEvent = {
65
+ entry: InvalidDynamicContent;
66
+ position: PositionData;
67
+ };
57
68
  export type MergeTagClickEvent = {
58
69
  position: PositionData;
59
70
  element: HTMLElement;
@@ -1,5 +1,5 @@
1
1
  import type { DynamicContent, GuidoConfigInput } from '@@/Types/config';
2
- import type { PositionData } from '@@/Types/generic';
2
+ import type { InvalidDynamicContent, PositionData } from '@@/Types/generic';
3
3
  import type { SavedTemplateDetails } from '@@/Types/stripo';
4
4
  type __VLS_Props = {
5
5
  /** Guido configuration object */
@@ -13,6 +13,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
13
13
  dynamicContent: {
14
14
  insert: (data: DynamicContent) => void;
15
15
  close: () => void;
16
+ setInvalid: (list: InvalidDynamicContent[]) => void;
16
17
  };
17
18
  hasChanges: import("vue").ComputedRef<boolean>;
18
19
  saveSilent: () => Promise<{
@@ -50,6 +51,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
50
51
  ready: () => void;
51
52
  "onboarding:finished": () => void;
52
53
  "test-email:click": () => void;
54
+ "dynamic-content:invalid-action": (detail: {
55
+ value: string;
56
+ }) => void;
53
57
  }, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
54
58
  ready: boolean;
55
59
  }>>>, {