@useinsider/guido 3.30.2-beta.7e62a3a → 3.30.2-beta.9c42576

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -174,6 +174,7 @@ const config: GuidoConfigInput = {
174
174
  allowSaveWithErrors?: boolean, // Default: true - Allow the validation drawer's "Save and Continue" soft-save. Set false to hard-block invalid saves (transactional + unsubscribe pages).
175
175
  reusableRecommendationStrategy?: boolean, // Default: false - Assign an RRS strategy to recommendation blocks instead of per-block algorithm/filters/shuffle/product-count settings.
176
176
  legacyUnsubscribeConversion?: boolean, // Default: false - Convert legacy unsubscribe blocks that have no unsubscribe link into text blocks (on load and on module drop/copy) and show a warning modal.
177
+ readonly?: boolean, // Default: false - Opens the design with Save, Save as template, Test, Undo, Redo, HTML editor (including the AMP error modal's fix action), Version history, Accessibility test and the autosave toggle disabled (Stripo still undoes on Ctrl/Cmd+Z): no save path persists (toolbar Save, "Save and Continue", autosave, saveSilent() resolves undefined), no save:start / save:complete, and edits never emit on-change, so the host shows no leave-page warning. Read at mount; to change it, remount Guido.
177
178
  accessibilityTesting?: boolean, // Default: false - Show the Accessibility Test entry in the header kebab menu (Stripo's checker: contrast, image alternatives, colour-vision simulation) and the tab-bar onboarding tour that points at it.
178
179
  itemsPriceFormatting?: boolean, // Default: false - Items block price formatting: thousand/decimal separator + decimal count on the block root, raw price tags in the export (formatted at send time).
179
180
  blockUnsubscribeLinks?: boolean, // Default: false - Warn on save when the design carries an Insider unsubscribe link or code ({{ins-*-unsubscribe-link}}, <%asm_*_raw_url%>, <%unsub%>): the legacy save is rejected with a warning toaster; with the validation drawer on it is a warning row that "Save and Continue" can skip. Launch blocking is up to the host. It also converts every unsubscribe block (v2 or legacy, linked or not) into a text block on template load and on module drop/copy, removes the Insider unsubscribe/preferences links inside it (their text stays), and shows an SFMC info modal. Set true for accounts whose unsubscribes are managed outside Insider (SFMC).
@@ -1,5 +1,5 @@
1
1
  import { ModuleFolderDefaults as y } from "../../enums/defaults.js";
2
- import { object as o, number as c, optional as e, string as t, picklist as m, pipe as r, minLength as p, custom as k, boolean as a, array as n, transform as S, unknown as i, record as g, fallback as R, literal as u, lazy as T, looseObject as C, variant as I, union as h } from "../../node_modules/valibot/dist/index.js";
2
+ import { object as o, number as c, optional as e, string as t, picklist as m, pipe as i, minLength as p, custom as k, boolean as a, array as n, transform as S, unknown as r, record as g, fallback as R, literal as u, lazy as T, looseObject as C, variant as I, union as h } from "../../node_modules/valibot/dist/index.js";
3
3
  const b = {
4
4
  /** Promotional/marketing emails */
5
5
  PROMOTIONAL: 1,
@@ -14,12 +14,12 @@ const b = {
14
14
  UNSUBSCRIBE_PAGES: 97
15
15
  }, A = o({
16
16
  /** Unique identifier for the template being edited */
17
- templateId: r(
17
+ templateId: i(
18
18
  t(),
19
19
  p(1, "templateId is required")
20
20
  ),
21
21
  /** Unique identifier for the user editing the template */
22
- userId: r(
22
+ userId: i(
23
23
  t(),
24
24
  p(1, "userId is required")
25
25
  ),
@@ -40,7 +40,7 @@ const b = {
40
40
  family: t()
41
41
  }), E = o({
42
42
  /** Partner/organization name (required) */
43
- name: r(
43
+ name: i(
44
44
  t(),
45
45
  p(1, "partner.name is required")
46
46
  ),
@@ -93,23 +93,23 @@ const b = {
93
93
  /** Decimal places for price display (legacy data may use string or number) */
94
94
  decimalCount: e(h([t(), c()])),
95
95
  /** Pinned product IDs (empty array when filter-driven) */
96
- productIds: e(n(i())),
96
+ productIds: e(n(r())),
97
97
  /** Whether the block requested live products at send time */
98
98
  sendProductRequestFlag: e(a()),
99
99
  /** Whether to randomize product order */
100
100
  shuffleProducts: e(a()),
101
101
  /** Filter rules driving product selection */
102
- filters: e(n(i())),
102
+ filters: e(n(r())),
103
103
  /** Currency code (e.g. 'EUR') — sometimes absent in legacy data */
104
104
  currency: e(t()),
105
105
  /** Currency display settings (separators, alignment, decimals) */
106
- currencySettings: e(i()),
106
+ currencySettings: e(r()),
107
107
  /** Locale (e.g. 'nl_NL') */
108
108
  language: e(t()),
109
109
  /** Recommendation strategy key (e.g. 'newArrivals') */
110
110
  strategy: e(t()),
111
111
  /** Snapshot of products as rendered by the legacy block */
112
- recommendedProducts: e(n(i())),
112
+ recommendedProducts: e(n(r())),
113
113
  /** Number of product cards per row */
114
114
  cardsInRow: e(c()),
115
115
  /** Mobile-only padding (right) */
@@ -174,7 +174,7 @@ const b = {
174
174
  * mount. Non-numbers still fail, like every other field in this schema.
175
175
  */
176
176
  trackIdCounter: e(
177
- r(
177
+ i(
178
178
  c(),
179
179
  S((s) => Number.isFinite(s) ? Math.max(0, Math.floor(s)) : 0)
180
180
  ),
@@ -188,8 +188,8 @@ const b = {
188
188
  * cannot be undone. Hosts send `[]` for an empty map.
189
189
  */
190
190
  recommendationCampaignUrls: e(
191
- r(
192
- i(),
191
+ i(
192
+ r(),
193
193
  S((s) => s && typeof s == "object" ? { ...s } : void 0)
194
194
  )
195
195
  ),
@@ -249,6 +249,8 @@ const b = {
249
249
  reusableRecommendationStrategy: e(a(), !1),
250
250
  /** Convert linkless legacy unsubscribe blocks into text blocks and warn with a modal (opt-in) */
251
251
  legacyUnsubscribeConversion: e(a(), !1),
252
+ /** Disable every save path and the unsaved-changes signal; read at mount only. */
253
+ readonly: e(a(), !1),
252
254
  /** Items block: Recommendation-style price formatting (root currency-* attrs, raw price tags). Released dark. */
253
255
  itemsPriceFormatting: e(a(), !1),
254
256
  /** Warn on save when the design carries an Insider unsubscribe link or code (host sets true for SFMC accounts) */
@@ -8,15 +8,15 @@ var n = function() {
8
8
  }, "primary-action": t.handleFixInCodeEditor } }, [r("div", { staticClass: "d-f f-d-c" }, [r("div", { staticClass: "mb-3" }, [r("div", { staticClass: "l-s-5 f-s-1 f-w-600 t-c-55 t-t-u" }, [e._v(" " + e._s(t.errorCountText) + " ")])]), r("div", { staticClass: "d-f f-d-c g-13 error-list" }, e._l(t.previewStore.ampErrors, function(o, s) {
9
9
  return r(t.InOnPageMessage, { key: s, attrs: { icon: "filled-error-box", size: "small", type: "alert", text: o } });
10
10
  }), 1)])]);
11
- }, l = [], d = /* @__PURE__ */ a(
11
+ }, l = [], c = /* @__PURE__ */ a(
12
12
  i,
13
13
  n,
14
14
  l,
15
15
  !1,
16
16
  null,
17
- "c3fd5d4b"
17
+ "84679e30"
18
18
  );
19
- const _ = d.exports;
19
+ const _ = c.exports;
20
20
  export {
21
21
  _ as default
22
22
  };
@@ -1,16 +1,17 @@
1
- import { defineComponent as m, ref as c, computed as d } from "vue";
2
- import l from "../../../wrappers/WpModal.vue.js";
1
+ import { defineComponent as l, computed as r } from "vue";
2
+ import u from "../../../wrappers/WpModal.vue.js";
3
3
  import { useCodeEditorApi as f } from "../../../../composables/useCodeEditorApi.js";
4
- import { usePreviewMode as u } from "../../../../composables/usePreviewMode.js";
5
- import { useTranslations as _ } from "../../../../composables/useTranslations.js";
6
- import { ACADEMY_LINKS as M } from "../../../../enums/academy.js";
7
- import { usePreviewStore as y } from "../../../../stores/preview.js";
8
- import { InOnPageMessage as E } from "@useinsider/design-system-vue";
9
- const O = /* @__PURE__ */ m({
4
+ import { useConfig as _ } from "../../../../composables/useConfig.js";
5
+ import { usePreviewMode as y } from "../../../../composables/usePreviewMode.js";
6
+ import { useTranslations as v } from "../../../../composables/useTranslations.js";
7
+ import { ACADEMY_LINKS as E } from "../../../../enums/academy.js";
8
+ import { usePreviewStore as M } from "../../../../stores/preview.js";
9
+ import { InOnPageMessage as g } from "@useinsider/design-system-vue";
10
+ const T = /* @__PURE__ */ l({
10
11
  __name: "AmpErrorModal",
11
12
  emits: ["close"],
12
- setup(g, { emit: e }) {
13
- const o = _(), { closePreviewMode: r } = u(), { openCodeEditor: t } = f(), i = y(), n = c({
13
+ setup(C, { emit: t }) {
14
+ const o = v(), { closePreviewMode: i } = y(), { openCodeEditor: n } = f(), a = M(), { isFeatureEnabled: s } = _(), e = r(() => s("readonly")), m = r(() => ({
14
15
  cancelOrBackButton: {
15
16
  type: "secondary",
16
17
  labelText: o("campaign-builder.cancel"),
@@ -18,17 +19,18 @@ const O = /* @__PURE__ */ m({
18
19
  },
19
20
  primaryButton: {
20
21
  type: "primary",
21
- labelText: o("email-editor.amp-validation-fix")
22
+ labelText: o("email-editor.amp-validation-fix"),
23
+ disabledStatus: e.value
22
24
  }
23
- }), a = () => {
24
- e("close"), r(), t();
25
- }, s = o(
25
+ })), p = () => {
26
+ e.value || (t("close"), i(), n());
27
+ }, d = o(
26
28
  "email-editor.amp-validation-description",
27
- { academyLink: M.AMP_FOR_EMAILS }
28
- ), p = d(() => `${o("products.errors")} (${i.ampErrors.length})`);
29
- return { __sfc: !0, emit: e, trans: o, closePreviewMode: r, openCodeEditor: t, previewStore: i, footerButtonOptions: n, handleFixInCodeEditor: a, ampValidationDescription: s, errorCountText: p, WpModal: l, InOnPageMessage: E };
29
+ { academyLink: E.AMP_FOR_EMAILS }
30
+ ), c = r(() => `${o("products.errors")} (${a.ampErrors.length})`);
31
+ return { __sfc: !0, emit: t, trans: o, closePreviewMode: i, openCodeEditor: n, previewStore: a, isFeatureEnabled: s, isReadonly: e, footerButtonOptions: m, handleFixInCodeEditor: p, ampValidationDescription: d, errorCountText: c, WpModal: u, InOnPageMessage: g };
30
32
  }
31
33
  });
32
34
  export {
33
- O as default
35
+ T as default
34
36
  };
@@ -4,7 +4,7 @@ import r from "../../../_virtual/_plugin-vue2_normalizer.js";
4
4
  var d = function() {
5
5
  var o, s;
6
6
  var i = this, e = i._self._c, t = i._self._setupProxy;
7
- return e("div", { staticClass: "d-f a-i-c editor-actions" }, [!t.editorStore.isPreviewModeOpen && t.hasContentOnTheLeft ? e("div", { staticClass: "editor-actions__divider" }) : i._e(), (s = (o = t.config) == null ? void 0 : o.features) != null && s.testMessage ? e(t.InButtonV2, { attrs: { id: "guido__test-button", "left-icon": "line-architect-test-journey", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isTestButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__test-button", { staticPosition: "bottom right" }), "tooltip-text": t.trans("newsletter.test-email") }, on: { click: t.handleTestEmail } }) : i._e(), e(t.EditorActionsMenu), t.editorStore.isPreviewModeOpen ? i._e() : e("div", { staticClass: "editor-actions__divider" }), t.editorStore.isPreviewModeOpen ? i._e() : e(t.InButtonV2, { staticClass: "ml-3", attrs: { id: "guido__save-button", "disabled-status": !t.isSaving && t.editorStore.isSaveButtonDisabled, "label-text": t.saveLabel, "loading-status": t.isSaving }, on: { click: function(n) {
7
+ return e("div", { staticClass: "d-f a-i-c editor-actions" }, [!t.editorStore.isPreviewModeOpen && t.hasContentOnTheLeft ? e("div", { staticClass: "editor-actions__divider" }) : i._e(), (s = (o = t.config) == null ? void 0 : o.features) != null && s.testMessage ? e(t.InButtonV2, { attrs: { id: "guido__test-button", "left-icon": "line-architect-test-journey", styling: "ghost", type: "secondary", "disabled-status": t.isFeatureEnabled("readonly") || t.editorStore.isTestButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__test-button", { staticPosition: "bottom right" }), "tooltip-text": t.trans("newsletter.test-email") }, on: { click: t.handleTestEmail } }) : i._e(), e(t.EditorActionsMenu), t.editorStore.isPreviewModeOpen ? i._e() : e("div", { staticClass: "editor-actions__divider" }), t.editorStore.isPreviewModeOpen ? i._e() : e(t.InButtonV2, { staticClass: "ml-3", attrs: { id: "guido__save-button", "disabled-status": t.isFeatureEnabled("readonly") || !t.isSaving && t.editorStore.isSaveButtonDisabled, "label-text": t.saveLabel, "loading-status": t.isSaving }, on: { click: function(n) {
8
8
  return t.handleSave(!1);
9
9
  } } }), e(t.MigrationConfirmModal, { ref: "migrationModalRef", on: { confirm: function(n) {
10
10
  return t.executeSave(!1);
@@ -15,7 +15,7 @@ var d = function() {
15
15
  l,
16
16
  !1,
17
17
  null,
18
- "9a028d08"
18
+ "8da8cf86"
19
19
  );
20
20
  const p = c.exports;
21
21
  export {
@@ -53,41 +53,43 @@ const Ct = /* @__PURE__ */ q({
53
53
  const t = await m();
54
54
  t != null && t.length ? g.open(t, "test") : t && d();
55
55
  }, k = async () => {
56
- if (s.value) {
57
- const t = await m();
58
- if (!t)
59
- return;
60
- if (t.length) {
61
- f({
62
- type: K.Error,
63
- message: i("email-editor.validation-errors-found"),
64
- actionButton: {
65
- text: i("email-editor.check-errors"),
66
- onClick: () => {
67
- _();
68
- }
69
- },
70
- autoHide: !1
71
- });
56
+ if (!a("readonly")) {
57
+ if (s.value) {
58
+ const t = await m();
59
+ if (!t)
60
+ return;
61
+ if (t.length) {
62
+ f({
63
+ type: K.Error,
64
+ message: i("email-editor.validation-errors-found"),
65
+ actionButton: {
66
+ text: i("email-editor.check-errors"),
67
+ onClick: () => {
68
+ _();
69
+ }
70
+ },
71
+ autoHide: !1
72
+ });
73
+ return;
74
+ }
75
+ l();
72
76
  return;
73
77
  }
74
- l();
75
- return;
76
- }
77
- if (a("liquidSyntax")) {
78
- o.loadingStatus = !0;
79
- try {
80
- const { html: t } = await p({ minimize: !0, resetDataSavedFlag: !1 }), { compiledHtml: e } = v(t);
81
- if (!await S(e))
78
+ if (a("liquidSyntax")) {
79
+ o.loadingStatus = !0;
80
+ try {
81
+ const { html: t } = await p({ minimize: !0, resetDataSavedFlag: !1 }), { compiledHtml: e } = v(t);
82
+ if (!await S(e))
83
+ return;
84
+ } catch (t) {
85
+ r(t, "Failed to prepare test email");
82
86
  return;
83
- } catch (t) {
84
- r(t, "Failed to prepare test email");
85
- return;
86
- } finally {
87
- o.loadingStatus = !1;
87
+ } finally {
88
+ o.loadingStatus = !1;
89
+ }
88
90
  }
91
+ l();
89
92
  }
90
- l();
91
93
  };
92
94
  return F({
93
95
  handleSave: V
@@ -3,7 +3,7 @@ import i from "./EditorActionsMenu.vue2.js";
3
3
  import s from "../../../_virtual/_plugin-vue2_normalizer.js";
4
4
  var n = function() {
5
5
  var e = this, o = e._self._c, t = e._self._setupProxy;
6
- return o("div", { staticClass: "editor-actions-menu p-r" }, [o(t.InButtonV2, { attrs: { id: "guido__kebab-button", "data-testid": "Editor Actions Menu", "left-icon": "line-more-vertical", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.loadingStatus, "label-text-status": !1, "selected-status": t.isPanelOpen, "tooltip-options": t.getTooltipOptions("guido__kebab-button"), "tooltip-text": t.trans("email-editor.more-actions") }, on: { click: function(d) {
6
+ return o("div", { staticClass: "editor-actions-menu p-r" }, [o(t.InButtonV2, { attrs: { id: "guido__kebab-button", "data-testid": "Editor Actions Menu", "left-icon": "line-more-vertical", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.loadingStatus, "label-text-status": !1, "selected-status": t.isPanelOpen, "tooltip-options": t.getTooltipOptions("guido__kebab-button"), "tooltip-text": t.trans("email-editor.more-actions") }, on: { click: function(c) {
7
7
  t.isOpen = !t.isOpen;
8
8
  } } }), o(t.InDropdownMenu, { staticClass: "editor-actions-menu__dropdown", attrs: { id: "guido__kebab-menu", "box-width": "basedOnLongestItem", "static-position": "bottom right", "dynamic-position": !1, "max-height": 400, options: t.options, "select-all-option-status": !1, status: t.isPanelOpen }, on: { clickOutside: t.close, optionClick: t.handleOptionClick } })], 1);
9
9
  }, a = [], r = /* @__PURE__ */ s(
@@ -12,7 +12,7 @@ var n = function() {
12
12
  a,
13
13
  !1,
14
14
  null,
15
- "bdb3b37a"
15
+ "00096ce2"
16
16
  );
17
17
  const _ = r.exports;
18
18
  export {
@@ -1,99 +1,99 @@
1
- import { defineComponent as D, ref as C, computed as i, watch as L } from "vue";
2
- import { useAccessibilityApi as R } from "../../../composables/useAccessibilityApi.js";
3
- import { useConfig as Y } from "../../../composables/useConfig.js";
4
- import { useExport as F } from "../../../composables/useExport.js";
5
- import { useTranslations as N } from "../../../composables/useTranslations.js";
6
- import { useVersionHistoryApi as U } from "../../../composables/useVersionHistoryApi.js";
7
- import { useAutosaveStore as X } from "../../../stores/autosave.js";
8
- import { useEditorStore as j } from "../../../stores/editor.js";
9
- import { useOnboardingStore as q } from "../../../stores/onboarding.js";
10
- import { getTooltipOptions as z } from "../../../utils/tooltipUtils.js";
11
- import { InToggle as G, InDropdownMenu as J, InButtonV2 as K } from "@useinsider/design-system-vue";
12
- const ce = /* @__PURE__ */ D({
1
+ import { defineComponent as L, ref as M, computed as s, watch as R } from "vue";
2
+ import { useAccessibilityApi as Y } from "../../../composables/useAccessibilityApi.js";
3
+ import { useConfig as F } from "../../../composables/useConfig.js";
4
+ import { useExport as N } from "../../../composables/useExport.js";
5
+ import { useTranslations as U } from "../../../composables/useTranslations.js";
6
+ import { useVersionHistoryApi as X } from "../../../composables/useVersionHistoryApi.js";
7
+ import { useAutosaveStore as j } from "../../../stores/autosave.js";
8
+ import { useEditorStore as q } from "../../../stores/editor.js";
9
+ import { useOnboardingStore as z } from "../../../stores/onboarding.js";
10
+ import { getTooltipOptions as G } from "../../../utils/tooltipUtils.js";
11
+ import { InToggle as J, InDropdownMenu as K, InButtonV2 as Q } from "@useinsider/design-system-vue";
12
+ const ue = /* @__PURE__ */ L({
13
13
  __name: "EditorActionsMenu",
14
- setup(Q) {
15
- const c = "guido__kebab-autosave", u = "guido__kebab-version-history", p = "guido__kebab-accessibility", d = "guido__kebab-save-as", v = "guido__kebab-export", { config: m, isFeatureEnabled: b } = Y(), { exportHtml: y } = F(), { openVersionHistory: A, closeVersionHistory: S } = U(), { toggleAccessibilityTestingMode: _ } = R(), e = j(), a = X(), f = q(), o = N(), g = C(!1), M = i(() => g.value || f.isEditorActionsMenuPinned), r = C(!1), O = i(() => b("autosave")), x = i(
14
+ setup(W) {
15
+ const d = "guido__kebab-autosave", p = "guido__kebab-version-history", v = "guido__kebab-accessibility", m = "guido__kebab-save-as", b = "guido__kebab-export", { config: f, isFeatureEnabled: r } = F(), { exportHtml: A } = N(), { openVersionHistory: S, closeVersionHistory: _ } = X(), { toggleAccessibilityTestingMode: O } = Y(), e = q(), l = j(), g = z(), i = U(), y = M(!1), t = s(() => r("readonly")), P = s(() => y.value || g.isEditorActionsMenuPinned), c = M(!1), x = s(() => r("autosave")), h = s(
16
16
  () => {
17
- var t, s;
18
- return !!((s = (t = m.value) == null ? void 0 : t.features) != null && s.versionHistory) && !e.isPreviewModeOpen;
17
+ var o, n;
18
+ return !!((n = (o = f.value) == null ? void 0 : o.features) != null && n.versionHistory) && !e.isPreviewModeOpen;
19
19
  }
20
- ), h = i(
21
- () => b("accessibilityTesting") && !e.isPreviewModeOpen
22
- ), V = i(() => {
23
- var t, s;
24
- return !!((s = (t = m.value) == null ? void 0 : t.features) != null && s.saveAsTemplate);
25
- }), E = i(() => O.value ? [
26
- { categoryText: o("email-editor.preferences") },
20
+ ), V = s(
21
+ () => r("accessibilityTesting") && !e.isPreviewModeOpen
22
+ ), E = s(() => {
23
+ var o, n;
24
+ return !!((n = (o = f.value) == null ? void 0 : o.features) != null && n.saveAsTemplate);
25
+ }), T = s(() => x.value ? [
26
+ { categoryText: i("email-editor.preferences") },
27
27
  {
28
- text: o("email-editor.auto-save"),
29
- value: c,
30
- disable: e.loadingStatus,
31
- rightSlotComponent: G,
28
+ text: i("email-editor.auto-save"),
29
+ value: d,
30
+ disable: t.value || e.loadingStatus,
31
+ rightSlotComponent: J,
32
32
  rightSlotProps: {
33
33
  // InDropdownMenu fills attrs.id with its own positional test id, and v-bind
34
34
  // skips a key already there — only `name` survives as a stable hook.
35
35
  name: "guido-kebab-autosave-toggle",
36
36
  class: "p-e-n",
37
- checked: a.isOn,
38
- disable: e.loadingStatus
37
+ checked: l.isOn,
38
+ disable: t.value || e.loadingStatus
39
39
  }
40
40
  },
41
41
  { divider: "solid" }
42
- ] : []), T = i(() => [
43
- { categoryText: o("email-editor.actions") },
44
- ...x.value ? [{
45
- text: o("newsletter.version-history"),
46
- value: u,
47
- iconLeft: "line-architect-version-history",
48
- disable: e.isVersionHistoryButtonDisabled
49
- }] : [],
42
+ ] : []), k = s(() => [
43
+ { categoryText: i("email-editor.actions") },
50
44
  ...h.value ? [{
51
- text: o("email-editor.accessibility-test"),
45
+ text: i("newsletter.version-history"),
52
46
  value: p,
53
- iconLeft: "line-accessibility",
54
- disable: e.loadingStatus
47
+ iconLeft: "line-architect-version-history",
48
+ disable: t.value || e.isVersionHistoryButtonDisabled
55
49
  }] : [],
56
50
  ...V.value ? [{
57
- text: o("newsletter.save-templates"),
58
- value: d,
51
+ text: i("email-editor.accessibility-test"),
52
+ value: v,
53
+ iconLeft: "line-accessibility",
54
+ disable: t.value || e.loadingStatus
55
+ }] : [],
56
+ ...E.value ? [{
57
+ text: i("newsletter.save-templates"),
58
+ value: m,
59
59
  iconLeft: "line-newsletter-save-as-template",
60
- disable: e.isSaveAsButtonDisabled
60
+ disable: t.value || e.isSaveAsButtonDisabled
61
61
  }] : [],
62
62
  {
63
- text: o("email-editor.export-html"),
64
- value: v,
63
+ text: i("email-editor.export-html"),
64
+ value: b,
65
65
  iconLeft: "line-export",
66
- disable: r.value || e.isExportButtonDisabled
66
+ disable: c.value || e.isExportButtonDisabled
67
67
  }
68
- ]), P = i(() => [...E.value, ...T.value]), n = () => {
69
- g.value = !1;
68
+ ]), D = s(() => [...T.value, ...k.value]), a = () => {
69
+ y.value = !1;
70
70
  };
71
- L(() => f.isEditorActionsMenuPinned, (t) => {
72
- t || n();
71
+ R(() => g.isEditorActionsMenuPinned, (o) => {
72
+ o || a();
73
73
  });
74
- const k = () => {
75
- a.isOn = !a.isOn;
76
- }, w = () => {
77
- e.isVersionHistoryOpen ? S() : A(), n();
74
+ const w = () => {
75
+ t.value || (l.isOn = !l.isOn);
78
76
  }, H = () => {
79
- _(), n();
77
+ t.value || (e.isVersionHistoryOpen ? _() : S(), a());
80
78
  }, I = () => {
81
- e.isSaveAsTemplateDrawerOpen = !0, n();
82
- }, B = async () => {
83
- r.value = !0, await y(), r.value = !1, n();
84
- }, l = {
85
- [c]: k,
86
- [u]: w,
79
+ t.value || (O(), a());
80
+ }, B = () => {
81
+ t.value || (e.isSaveAsTemplateDrawerOpen = !0, a());
82
+ }, C = async () => {
83
+ c.value = !0, await A(), c.value = !1, a();
84
+ }, u = {
85
+ [d]: w,
87
86
  [p]: H,
88
- [d]: I,
89
- [v]: B
87
+ [v]: I,
88
+ [m]: B,
89
+ [b]: C
90
90
  };
91
- return { __sfc: !0, AUTOSAVE: c, VERSION_HISTORY: u, ACCESSIBILITY: p, SAVE_AS: d, EXPORT: v, config: m, isFeatureEnabled: b, exportHtml: y, openVersionHistory: A, closeVersionHistory: S, toggleAccessibilityTestingMode: _, editorStore: e, autosaveStore: a, onboardingStore: f, trans: o, isOpen: g, isPanelOpen: M, isExporting: r, isAutosaveVisible: O, isVersionHistoryVisible: x, isAccessibilityVisible: h, isSaveAsVisible: V, preferenceOptions: E, actionOptions: T, options: P, close: n, toggleAutosave: k, handleVersionHistory: w, handleAccessibility: H, handleSaveAs: I, handleExport: B, optionHandlers: l, handleOptionClick: ({ value: t }) => {
92
- var s;
93
- return (s = l[t]) == null ? void 0 : s.call(l);
94
- }, getTooltipOptions: z, InButtonV2: K, InDropdownMenu: J };
91
+ return { __sfc: !0, AUTOSAVE: d, VERSION_HISTORY: p, ACCESSIBILITY: v, SAVE_AS: m, EXPORT: b, config: f, isFeatureEnabled: r, exportHtml: A, openVersionHistory: S, closeVersionHistory: _, toggleAccessibilityTestingMode: O, editorStore: e, autosaveStore: l, onboardingStore: g, trans: i, isOpen: y, isReadonly: t, isPanelOpen: P, isExporting: c, isAutosaveVisible: x, isVersionHistoryVisible: h, isAccessibilityVisible: V, isSaveAsVisible: E, preferenceOptions: T, actionOptions: k, options: D, close: a, toggleAutosave: w, handleVersionHistory: H, handleAccessibility: I, handleSaveAs: B, handleExport: C, optionHandlers: u, handleOptionClick: ({ value: o }) => {
92
+ var n;
93
+ return (n = u[o]) == null ? void 0 : n.call(u);
94
+ }, getTooltipOptions: G, InButtonV2: Q, InDropdownMenu: K };
95
95
  }
96
96
  });
97
97
  export {
98
- ce as default
98
+ ue as default
99
99
  };
@@ -3,14 +3,14 @@ import i from "./EditorToolbar.vue2.js";
3
3
  import s from "../../../_virtual/_plugin-vue2_normalizer.js";
4
4
  var n = function() {
5
5
  var e = this, o = e._self._c, t = e._self._setupProxy;
6
- return o("div", { staticClass: "d-f editor-toolbar" }, [o(t.InButtonV2, { attrs: { id: "guido__undo-button", "left-icon": "line-undo", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isUndoButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__undo-button"), "tooltip-text": t.trans("action-builder.undo") } }), o(t.InButtonV2, { attrs: { id: "guido__redo-button", "left-icon": "line-redo", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isRedoButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__redo-button"), "tooltip-text": t.trans("action-builder.redo") } }), o(t.InButtonV2, { attrs: { id: "guido__code-button", "data-testid": "Code Editor", "left-icon": "line-code", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isCodeEditorButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isCodeEditorOpen, "tooltip-options": t.getTooltipOptions("guido__code-button"), "tooltip-text": t.codeEditorTooltipText } }), o(t.InButtonV2, { attrs: { id: "guido__preview-button", "left-icon": "line-show-on", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isPreviewButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isPreviewModeOpen, "tooltip-options": t.getTooltipOptions("guido__preview-button"), "tooltip-text": t.previewTooltipText }, on: { click: t.handlePreviewToggle } }), o(t.ViewOptions, { staticClass: "ml-2" })], 1);
6
+ return o("div", { staticClass: "d-f editor-toolbar" }, [o(t.InButtonV2, { attrs: { id: "guido__undo-button", "left-icon": "line-undo", styling: "ghost", type: "secondary", "disabled-status": t.isReadonly || t.editorStore.isUndoButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__undo-button"), "tooltip-text": t.trans("action-builder.undo") } }), o(t.InButtonV2, { attrs: { id: "guido__redo-button", "left-icon": "line-redo", styling: "ghost", type: "secondary", "disabled-status": t.isReadonly || t.editorStore.isRedoButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__redo-button"), "tooltip-text": t.trans("action-builder.redo") } }), o(t.InButtonV2, { attrs: { id: "guido__code-button", "data-testid": "Code Editor", "left-icon": "line-code", styling: "ghost", type: "secondary", "disabled-status": t.isReadonly || t.editorStore.isCodeEditorButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isCodeEditorOpen, "tooltip-options": t.getTooltipOptions("guido__code-button"), "tooltip-text": t.codeEditorTooltipText } }), o(t.InButtonV2, { attrs: { id: "guido__preview-button", "left-icon": "line-show-on", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isPreviewButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isPreviewModeOpen, "tooltip-options": t.getTooltipOptions("guido__preview-button"), "tooltip-text": t.previewTooltipText }, on: { click: t.handlePreviewToggle } }), o(t.ViewOptions, { staticClass: "ml-2" })], 1);
7
7
  }, d = [], l = /* @__PURE__ */ s(
8
8
  i,
9
9
  n,
10
10
  d,
11
11
  !1,
12
12
  null,
13
- "173c3a40"
13
+ "804d79cf"
14
14
  );
15
15
  const _ = l.exports;
16
16
  export {
@@ -1,17 +1,18 @@
1
- import { defineComponent as p, computed as i } from "vue";
2
- import { usePreviewMode as m } from "../../../composables/usePreviewMode.js";
3
- import { useTranslations as l } from "../../../composables/useTranslations.js";
4
- import { useEditorStore as d } from "../../../stores/editor.js";
5
- import { getTooltipOptions as w } from "../../../utils/tooltipUtils.js";
6
- import { InButtonV2 as c } from "@useinsider/design-system-vue";
7
- import a from "./ViewOptions.vue.js";
8
- const h = /* @__PURE__ */ p({
1
+ import { defineComponent as m, computed as t } from "vue";
2
+ import { useConfig as d } from "../../../composables/useConfig.js";
3
+ import { usePreviewMode as a } from "../../../composables/usePreviewMode.js";
4
+ import { useTranslations as c } from "../../../composables/useTranslations.js";
5
+ import { useEditorStore as w } from "../../../stores/editor.js";
6
+ import { getTooltipOptions as f } from "../../../utils/tooltipUtils.js";
7
+ import { InButtonV2 as u } from "@useinsider/design-system-vue";
8
+ import v from "./ViewOptions.vue.js";
9
+ const b = /* @__PURE__ */ m({
9
10
  __name: "EditorToolbar",
10
- setup(f) {
11
- const o = d(), e = l(), { openPreviewMode: t, closePreviewMode: r } = m(), n = i(() => o.isPreviewModeOpen ? e("newsletter.close-email-preview") : e("newsletter.email-preview")), s = i(() => o.isCodeEditorOpen ? e("newsletter.close-html-editor") : e("newsletter.html-editor"));
12
- return { __sfc: !0, editorStore: o, trans: e, openPreviewMode: t, closePreviewMode: r, previewTooltipText: n, codeEditorTooltipText: s, handlePreviewToggle: () => o.isPreviewModeOpen ? r() : t(), getTooltipOptions: w, InButtonV2: c, ViewOptions: a };
11
+ setup(T) {
12
+ const o = w(), { isFeatureEnabled: r } = d(), e = c(), { openPreviewMode: i, closePreviewMode: n } = a(), s = t(() => o.isPreviewModeOpen ? e("newsletter.close-email-preview") : e("newsletter.email-preview")), p = t(() => o.isCodeEditorOpen ? e("newsletter.close-html-editor") : e("newsletter.html-editor")), l = t(() => r("readonly"));
13
+ return { __sfc: !0, editorStore: o, isFeatureEnabled: r, trans: e, openPreviewMode: i, closePreviewMode: n, previewTooltipText: s, codeEditorTooltipText: p, isReadonly: l, handlePreviewToggle: () => o.isPreviewModeOpen ? n() : i(), getTooltipOptions: f, InButtonV2: u, ViewOptions: v };
13
14
  }
14
15
  });
15
16
  export {
16
- h as default
17
+ b as default
17
18
  };
@@ -1,22 +1,23 @@
1
1
  import { ToasterTypeOptions as d } from "../enums/toaster.js";
2
- import { findEditorApi as s, EDITOR_NOT_READY_MESSAGE as p } from "../utils/stripoEditorApi.js";
3
- import { useToaster as E } from "./useToaster.js";
2
+ import { findEditorApi as n, EDITOR_NOT_READY_MESSAGE as p } from "../utils/stripoEditorApi.js";
3
+ import { useConfig as E } from "./useConfig.js";
4
+ import { useToaster as c } from "./useToaster.js";
4
5
  const T = () => {
5
- const { showToaster: i } = E(), t = (o) => {
6
- var r;
7
- const e = (r = s()) == null ? void 0 : r.codeEditorApi;
8
- if (!e) {
9
- i({ type: d.Error, message: p });
6
+ const { isFeatureEnabled: i } = E(), { showToaster: s } = c(), e = (o) => {
7
+ var t;
8
+ const r = (t = n()) == null ? void 0 : t.codeEditorApi;
9
+ if (!r) {
10
+ s({ type: d.Error, message: p });
10
11
  return;
11
12
  }
12
- o(e);
13
+ o(r);
13
14
  };
14
15
  return {
15
16
  openCodeEditor: () => {
16
- t((o) => o.openCodeEditor());
17
+ i("readonly") || e((o) => o.openCodeEditor());
17
18
  },
18
19
  closeCodeEditor: () => {
19
- t((o) => o.closeCodeEditor());
20
+ e((o) => o.closeCodeEditor());
20
21
  }
21
22
  };
22
23
  };
@@ -1,31 +1,31 @@
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(), {
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 tt } from "./useAllowlist.js";
15
+ import { useHtmlValidator as et } from "./useHtmlValidator.js";
16
+ import { useToaster as ot } from "./useToaster.js";
17
+ import { useCouponBlockValidator as it } from "./validators/useCouponBlockValidator.js";
18
+ import { useHtmlDocumentCountValidator as rt } from "./validators/useHtmlDocumentCountValidator.js";
19
+ import { useLiquidValidator as st } from "./validators/useLiquidValidator.js";
20
+ import { useSyncModuleBlockValidator as at } from "./validators/useSyncModuleBlockValidator.js";
21
+ import { useUnsubscribeBlockValidator as nt } from "./validators/useUnsubscribeBlockValidator.js";
22
+ const Ut = () => {
23
+ const l = N(), S = j(), { validateHtml: y } = et(), { validateLiquidSyntax: b } = st(), { validateCouponBlockTags: H } = it(), {
24
24
  validateUnsubscribeBlockUniqueness: E,
25
25
  validateUnsubscribeBlockHasTemplate: g,
26
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"))
27
+ } = nt(), { validateSyncModuleBlocks: c } = at(), { validateSingleHtmlDocument: u } = rt(), { callbacks: a, isFeatureEnabled: n } = F(), { extractSyncModuleData: x } = J(), { setSyncModuleUnsubscriptionPages: k } = Q(), { editorSave: C, getTemplateData: m } = D(), { showToaster: h } = ot(), { getBlockedDomains: B, resolveToast: T } = tt(), { prepareTemplateDetails: p } = _(), { collectSaveValidationErrors: P } = z(), { isEnabled: L } = G(), U = Z(), A = Y(), w = X(), { runExclusive: M } = I(), d = async (t, e, i) => {
28
+ if (!n("allowlistEnabled"))
29
29
  return !1;
30
30
  const o = await B(t, e);
31
31
  if (!o.length)
@@ -33,13 +33,13 @@ const Pt = () => {
33
33
  if (!i) {
34
34
  const r = await T(o);
35
35
  r != null && r.message && h({
36
- type: J.Warning,
36
+ type: K.Warning,
37
37
  message: r.message,
38
38
  actionButton: r.actionButton
39
39
  });
40
40
  }
41
41
  return !0;
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) => {
42
+ }, W = async (t, e) => !H(t.compiledHtml) || n("blockUnsubscribeLinks") && !V(t.rawHtml, e) || !E(t.compiledHtml) || !g(t.compiledHtml) ? !1 : n("liquidSyntax") ? b(t.compiledHtml) : y(t.compiledHtml, t.dynamicContentList, !0), f = async (t, e) => {
43
43
  if (!await C())
44
44
  return;
45
45
  const { unsubscribePayload: o, stripoModules: r } = x(t.rawHtml);
@@ -48,16 +48,16 @@ const Pt = () => {
48
48
  S({ ...t, ...s, silent: e.silent });
49
49
  }
50
50
  return t;
51
- }, W = async (t, e) => {
51
+ }, R = async (t, e) => {
52
52
  var r;
53
- n();
53
+ l();
54
54
  const i = await m();
55
- if (!c(i.html, e))
55
+ if (!u(i.html, e))
56
56
  return;
57
57
  const o = await p(i);
58
- if (l(o.rawHtml, e)) {
59
- if (P.value && !e) {
60
- const s = await L(
58
+ if (c(o.rawHtml, e)) {
59
+ if (L.value && !e) {
60
+ const s = await P(
61
61
  o.compiledHtml,
62
62
  o.dynamicContentList,
63
63
  o.rawHtml
@@ -68,30 +68,30 @@ const Pt = () => {
68
68
  U.open(s, "save");
69
69
  return;
70
70
  }
71
- } else if (!await M(o, e))
71
+ } else if (!await W(o, e))
72
72
  return;
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 });
73
+ if (!((r = a.value) != null && r.externalValidation && !await a.value.externalValidation(o)) && !await d(o.compiledHtml, o.css, e))
74
+ return f(o, { silent: e, suppress: t });
75
75
  }
76
- }, R = async () => {
76
+ }, q = async () => {
77
77
  var i;
78
78
  if (!w.allowSaveWithErrors)
79
79
  return;
80
- n();
80
+ l();
81
81
  const t = await m();
82
- if (!c(t.html, !1))
82
+ if (!u(t.html, !1))
83
83
  return;
84
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 () => {
85
+ if (c(e.rawHtml, !1) && !((i = a.value) != null && i.externalValidation && !await a.value.externalValidation(e)) && !await d(e.compiledHtml, e.css, !1))
86
+ return f(e, { silent: !1, blankCompiled: !0 });
87
+ }, O = async () => {
88
88
  if (!w.allowSaveWithErrors)
89
89
  return;
90
- n();
90
+ l();
91
91
  const { html: t, css: e } = await m();
92
- if (!c(t, !0) || !l(t, !0) || await f(t, e, !0))
92
+ if (!u(t, !0) || !c(t, !0) || await d(t, e, !0))
93
93
  return;
94
- const i = _(t), o = {
94
+ const i = $(t), o = {
95
95
  dynamicContentList: A.getSelectedDynamicContentList,
96
96
  compiledHtml: "",
97
97
  rawHtml: t,
@@ -106,12 +106,12 @@ const Pt = () => {
106
106
  config: i
107
107
  }
108
108
  };
109
- return v(o, { silent: !0 });
110
- };
111
- return { save: (t = !1, e = !1) => d(
112
- () => W(t, e)
113
- ), saveWithErrors: () => d(R), saveRawOnly: () => d(q) };
109
+ return f(o, { silent: !0 });
110
+ }, v = (t) => n("readonly") ? Promise.resolve(void 0) : M(t);
111
+ return { save: (t = !1, e = !1) => v(
112
+ () => R(t, e)
113
+ ), saveWithErrors: () => v(q), saveRawOnly: () => v(O) };
114
114
  };
115
115
  export {
116
- Pt as useSave
116
+ Ut as useSave
117
117
  };
@@ -1,29 +1,33 @@
1
- import { useActionsApi as z } from "./useActionsApi.js";
1
+ import { useActionsApi as G } from "./useActionsApi.js";
2
2
  import { useAmbiguousDynamicContent as $ } from "./useAmbiguousDynamicContent.js";
3
- import { useBlocksConfig as G } from "./useBlocksConfig.js";
4
- import { useConfig as X } from "./useConfig.js";
3
+ import { useBlocksConfig as X } from "./useBlocksConfig.js";
4
+ import { useConfig as J } from "./useConfig.js";
5
5
  import { useCustomInterfaceAppearance as B } from "./useCustomInterfaceAppearance.js";
6
- import { useFullStoryBridge as J } from "./useFullStoryBridge.js";
7
- import { useModuleRepair as K } from "./useModuleRepair.js";
8
- import { useStripoEventHandler as Q } from "./useStripoEventHandler.js";
9
- import { useStripoNotifications as W } from "./useStripoNotifications.js";
10
- import { useToaster as Y } from "./useToaster.js";
11
- import { localePatch as Z } from "../config/i18n/index.js";
6
+ import { useFullStoryBridge as K } from "./useFullStoryBridge.js";
7
+ import { useModuleRepair as Q } from "./useModuleRepair.js";
8
+ import { useStripoEventHandler as W } from "./useStripoEventHandler.js";
9
+ import { useStripoNotifications as Y } from "./useStripoNotifications.js";
10
+ import { useToaster as Z } from "./useToaster.js";
11
+ import { localePatch as ee } from "../config/i18n/index.js";
12
12
  import { en as F } from "../config/i18n/en/index.js";
13
- import { ToasterTypeOptions as ee } from "../enums/toaster.js";
14
- import { useStripoApi as te } from "../services/stripoApi.js";
15
- import oe from "../static/styles/customEditorStyle.css.js";
13
+ import { ToasterTypeOptions as te } from "../enums/toaster.js";
14
+ import { useStripoApi as oe } from "../services/stripoApi.js";
15
+ import re from "../static/styles/customEditorStyle.css.js";
16
16
  import { useEditorStore as T } from "../stores/editor.js";
17
- import { buildMergeTagEntries as re, flattenDynamicContentList as ie } from "../utils/genericUtil.js";
18
- import { getStripoRuntimeBaseUrl as ne } from "../utils/stripoRuntime.js";
17
+ import { buildMergeTagEntries as ie, flattenDynamicContentList as ne } from "../utils/genericUtil.js";
18
+ import { getStripoRuntimeBaseUrl as ae } from "../utils/stripoRuntime.js";
19
19
  let d = null, A = !1;
20
- const Be = (o) => {
21
- const { features: m, template: p, isFeatureEnabled: f } = X(), { handleError: g, showToaster: P } = Y(), { getToken: U, getCustomFonts: R, getSyncModulesStatus: D } = te(), { handleEvent: V } = Q(), { handleModuleAdd: L } = K(), { restorePending: I } = $(), { getStripoBlocksConfig: O } = G(), { getStripoNotifications: q } = W(), S = () => d || (d = new Promise((n, a) => {
20
+ const Fe = (o) => {
21
+ const { features: p, template: f, isFeatureEnabled: c } = J(), { handleError: g, showToaster: P } = Z(), { getToken: U, getCustomFonts: R, getSyncModulesStatus: D } = oe(), { handleEvent: V } = W(), { handleModuleAdd: L } = Q(), { restorePending: I } = $(), { getStripoBlocksConfig: O } = X(), { getStripoNotifications: q } = Y(), x = () => c("readonly") ? {} : {
22
+ undoButtonSelector: "#guido__undo-button",
23
+ redoButtonSelector: "#guido__redo-button",
24
+ codeEditorButtonSelector: "#guido__code-button"
25
+ }, y = () => d || (d = new Promise((n, a) => {
22
26
  if (document.getElementById("UiEditorScript")) {
23
27
  n();
24
28
  return;
25
29
  }
26
- const i = ne();
30
+ const i = ae();
27
31
  if (!i) {
28
32
  a(
29
33
  new Error("guido.stripo.version is not set in package.json. Please configure the Stripo version.")
@@ -38,32 +42,30 @@ const Be = (o) => {
38
42
  }, document.body.appendChild(t);
39
43
  }), d.catch(() => {
40
44
  d = null;
41
- }), d), x = async (n, a, i, s = [], t = !1, c = !1) => {
45
+ }), d), H = async (n, a, i, s = [], t = !1, u = !1) => {
42
46
  var w, k, _, v;
43
- const e = T(), { html: y, css: h } = n, { baseBlocks: C, extensions: H } = await O();
47
+ const e = T(), { html: S, css: h } = n, { baseBlocks: C, extensions: M } = await O();
44
48
  o.mark("blocks_config_ready");
45
- const E = ((w = m.value) == null ? void 0 : w.displayConditions) ?? !0, M = ((k = m.value) == null ? void 0 : k.modulesDisabled) ?? !1, b = c || (((_ = p.value) == null ? void 0 : _.forceRecreate) ?? !1), N = "https://email-static.useinsider.com https://edge.fullstory.com https://rs.fullstory.com";
46
- o.setTemplate({ html: y, css: h, forceRecreate: b }), B().importCss(), o.mark("init_editor"), await window.UIEditor.initEditor(
49
+ const E = ((w = p.value) == null ? void 0 : w.displayConditions) ?? !0, N = ((k = p.value) == null ? void 0 : k.modulesDisabled) ?? !1, b = u || (((_ = f.value) == null ? void 0 : _.forceRecreate) ?? !1), j = "https://email-static.useinsider.com https://edge.fullstory.com https://rs.fullstory.com";
50
+ o.setTemplate({ html: S, css: h, forceRecreate: b }), B().importCss(), o.mark("init_editor"), await window.UIEditor.initEditor(
47
51
  document.querySelector("#guido-editor"),
48
52
  {
49
53
  metadata: a,
50
- html: y,
54
+ html: S,
51
55
  css: h,
52
56
  forceRecreate: b,
53
57
  locale: "en",
54
- undoButtonSelector: "#guido__undo-button",
55
- redoButtonSelector: "#guido__redo-button",
58
+ ...x(),
56
59
  mobileViewButtonSelector: ".guido__view-option-selection-mobile",
57
60
  desktopViewButtonSelector: ".guido__view-option-selection-desktop",
58
- codeEditorButtonSelector: "#guido__code-button",
59
- customAppearanceMergetags: !f("liquidSyntax"),
61
+ customAppearanceMergetags: !c("liquidSyntax"),
60
62
  customAppearanceMergetagsBorderColor: "#f1f3fe",
61
63
  customAppearanceMergetagsBackgroundColor: "#f1f3fe",
62
- customViewStyles: oe,
64
+ customViewStyles: re,
63
65
  conditionsEnabled: E,
64
66
  customConditionsEnabled: E,
65
67
  enableXSSSecurity: !0,
66
- modulesDisabled: M,
68
+ modulesDisabled: N,
67
69
  syncModulesEnabled: t,
68
70
  messageSettingsEnabled: !0,
69
71
  displayGmailAnnotations: !0,
@@ -74,7 +76,7 @@ const Be = (o) => {
74
76
  copyPasteEnabled: !1,
75
77
  selectElementAfterDrop: !0,
76
78
  sameFontSizeForOutlook: !0,
77
- allowedScriptSourceDomains: N,
79
+ allowedScriptSourceDomains: j,
78
80
  ...C ? { baseBlocks: C } : {},
79
81
  editorFonts: {
80
82
  showDefaultStandardFonts: !0,
@@ -83,10 +85,10 @@ const Be = (o) => {
83
85
  },
84
86
  mergeTags: [
85
87
  {
86
- entries: re(
88
+ entries: ie(
87
89
  i.preselectedDynamicContentList,
88
- ie((v = p.value) == null ? void 0 : v.dynamicContentList),
89
- f("liquidSyntax")
90
+ ne((v = f.value) == null ? void 0 : v.dynamicContentList),
91
+ c("liquidSyntax")
90
92
  )
91
93
  }
92
94
  ],
@@ -101,16 +103,16 @@ const Be = (o) => {
101
103
  },
102
104
  onTemplateLoaded() {
103
105
  try {
104
- const { activateCustomViewStyles: r, updateTimerInClonedTemplate: l } = z(), { injectFullStory: j } = J();
105
- B().importCss(), r(), j(), I(), l(), i.onReady(), e.isStripoInitialized = !0, e.loadingStatus = !1, setTimeout(() => {
106
+ const { activateCustomViewStyles: r, updateTimerInClonedTemplate: l } = G(), { injectFullStory: z } = K();
107
+ B().importCss(), r(), z(), I(), l(), i.onReady(), e.isStripoInitialized = !0, e.loadingStatus = !1, setTimeout(() => {
106
108
  try {
107
109
  if (e.isUnsubscribeConvertedOnLoad) {
108
- const u = e.hasChanges;
109
- e.hasChanges = !0, e.changeSeq += 1, e.isUnsubscribeConvertedOnLoad = !1, u && i.onLoadConversionSettled();
110
+ const m = e.hasChanges;
111
+ e.hasChanges = !0, e.changeSeq += 1, e.isUnsubscribeConvertedOnLoad = !1, m && i.onLoadConversionSettled();
110
112
  } else
111
113
  e.hasChanges = !1;
112
- } catch (u) {
113
- console.error("Failed to settle the change state after template load:", u);
114
+ } catch (m) {
115
+ console.error("Failed to settle the change state after template load:", m);
114
116
  }
115
117
  }, 1e3), o.markReady();
116
118
  } catch (r) {
@@ -127,7 +129,7 @@ const Be = (o) => {
127
129
  e.isVersionHistoryOpen = r;
128
130
  },
129
131
  onDataChanged() {
130
- e.hasChanges = !0, e.changeSeq += 1;
132
+ c("readonly") || (e.hasChanges = !0), e.changeSeq += 1;
131
133
  },
132
134
  onEvent: V,
133
135
  onModuleAdd: L,
@@ -141,23 +143,23 @@ const Be = (o) => {
141
143
  ".in-modal-v2-wrapper",
142
144
  ".in-toasts-wrapper"
143
145
  ],
144
- extensions: H,
145
- localePatch: Z
146
+ extensions: M,
147
+ localePatch: ee
146
148
  }
147
149
  );
148
150
  };
149
151
  return { initPlugin: async (n, a, i, s = !1) => {
150
152
  const t = T();
151
153
  try {
152
- o.mark("plugin_start"), o.setScriptPreloaded(A), await S(), o.mark("script_ready");
153
- const [c, e] = await Promise.all([
154
+ o.mark("plugin_start"), o.setScriptPreloaded(A), await y(), o.mark("script_ready");
155
+ const [u, e] = await Promise.all([
154
156
  R(),
155
157
  D()
156
158
  ]);
157
- o.mark("fonts_sync_ready"), t.syncModulesEnabled = e, await x(n, a, i, c, e, s);
159
+ o.mark("fonts_sync_ready"), t.syncModulesEnabled = e, await H(n, a, i, u, e, s);
158
160
  } catch {
159
161
  t.loadingStatus = !1, P({
160
- type: ee.Error,
162
+ type: te.Error,
161
163
  message: F["An error has occurred. Please report the error code to support."],
162
164
  actionButton: {
163
165
  text: F["Reload page"],
@@ -166,10 +168,10 @@ const Be = (o) => {
166
168
  }), o.markFailed();
167
169
  }
168
170
  }, preloadRuntime: () => {
169
- S().catch(() => {
171
+ y().catch(() => {
170
172
  });
171
173
  } };
172
174
  };
173
175
  export {
174
- Be as useStripo
176
+ Fe as useStripo
175
177
  };
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-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-c8351f74]{gap:16px}.validation-error-row[data-v-c8351f74]{gap:8px;padding:24px;border:1px solid #E1E1E1;border-radius:8px}.validation-error-row__icon[data-v-c8351f74]{flex-shrink:0;font-size:24px;line-height:0}.validation-error-row__text[data-v-c8351f74]{font-size:13px;line-height:16px;color:#292929;word-break:break-word}.guido-editor__wrapper[data-v-b0036f48]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-b0036f48]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-b0036f48]{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-f5ff6219]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-f5ff6219]{min-height:504px}.iframe-wrapper[data-v-a7102458]{width:258px}.iframe-scaled[data-v-a7102458]{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-804d79cf]{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-00096ce2]{z-index:20;width:222px}.editor-actions[data-v-8da8cf86]{gap:16px}.editor-actions__divider[data-v-8da8cf86]{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-c8351f74]{gap:16px}.validation-error-row[data-v-c8351f74]{gap:8px;padding:24px;border:1px solid #E1E1E1;border-radius:8px}.validation-error-row__icon[data-v-c8351f74]{flex-shrink:0;font-size:24px;line-height:0}.validation-error-row__text[data-v-c8351f74]{font-size:13px;line-height:16px;color:#292929;word-break:break-word}.guido-editor__wrapper[data-v-b0036f48]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-b0036f48]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-b0036f48]{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-84679e30]{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-f5ff6219]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-f5ff6219]{min-height:504px}.iframe-wrapper[data-v-a7102458]{width:258px}.iframe-scaled[data-v-a7102458]{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,9 +1,9 @@
1
- const o = "3.30.2-beta.7e62a3a", s = { stripo: { version: "2.87.0" } }, a = {
1
+ const o = "3.30.2-beta.9c42576", s = { stripo: { version: "2.87.0" } }, t = {
2
2
  version: o,
3
3
  guido: s
4
4
  };
5
5
  export {
6
- a as default,
6
+ t as default,
7
7
  s as guido,
8
8
  o as version
9
9
  };
@@ -419,6 +419,8 @@ 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>;
422
424
  /** Items block: Recommendation-style price formatting (root currency-* attrs, raw price tags). Released dark. */
423
425
  readonly itemsPriceFormatting: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
424
426
  /** Warn on save when the design carries an Insider unsubscribe link or code (host sets true for SFMC accounts) */
@@ -846,6 +848,8 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
846
848
  readonly reusableRecommendationStrategy: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
847
849
  /** Convert linkless legacy unsubscribe blocks into text blocks and warn with a modal (opt-in) */
848
850
  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>;
849
853
  /** Items block: Recommendation-style price formatting (root currency-* attrs, raw price tags). Released dark. */
850
854
  readonly itemsPriceFormatting: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
851
855
  /** Warn on save when the design carries an Insider unsubscribe link or code (host sets true for SFMC accounts) */
@@ -107,6 +107,7 @@ export declare const useConfig: () => {
107
107
  allowSaveWithErrors: boolean;
108
108
  reusableRecommendationStrategy: boolean;
109
109
  legacyUnsubscribeConversion: boolean;
110
+ readonly: boolean;
110
111
  itemsPriceFormatting: boolean;
111
112
  blockUnsubscribeLinks: boolean;
112
113
  };
@@ -251,6 +252,7 @@ export declare const useConfig: () => {
251
252
  allowSaveWithErrors: boolean;
252
253
  reusableRecommendationStrategy: boolean;
253
254
  legacyUnsubscribeConversion: boolean;
255
+ readonly: boolean;
254
256
  itemsPriceFormatting: boolean;
255
257
  blockUnsubscribeLinks: boolean;
256
258
  } | null>;
@@ -112,6 +112,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
112
112
  allowSaveWithErrors: boolean;
113
113
  reusableRecommendationStrategy: boolean;
114
114
  legacyUnsubscribeConversion: boolean;
115
+ readonly: boolean;
115
116
  itemsPriceFormatting: boolean;
116
117
  blockUnsubscribeLinks: boolean;
117
118
  };
@@ -262,6 +263,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
262
263
  allowSaveWithErrors: boolean;
263
264
  reusableRecommendationStrategy: boolean;
264
265
  legacyUnsubscribeConversion: boolean;
266
+ readonly: boolean;
265
267
  itemsPriceFormatting: boolean;
266
268
  blockUnsubscribeLinks: boolean;
267
269
  };
@@ -412,6 +414,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
412
414
  allowSaveWithErrors: boolean;
413
415
  reusableRecommendationStrategy: boolean;
414
416
  legacyUnsubscribeConversion: boolean;
417
+ readonly: boolean;
415
418
  itemsPriceFormatting: boolean;
416
419
  blockUnsubscribeLinks: boolean;
417
420
  };
@@ -562,6 +565,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
562
565
  allowSaveWithErrors: boolean;
563
566
  reusableRecommendationStrategy: boolean;
564
567
  legacyUnsubscribeConversion: boolean;
568
+ readonly: boolean;
565
569
  itemsPriceFormatting: boolean;
566
570
  blockUnsubscribeLinks: boolean;
567
571
  };
@@ -712,6 +716,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
712
716
  allowSaveWithErrors: boolean;
713
717
  reusableRecommendationStrategy: boolean;
714
718
  legacyUnsubscribeConversion: boolean;
719
+ readonly: boolean;
715
720
  itemsPriceFormatting: boolean;
716
721
  blockUnsubscribeLinks: boolean;
717
722
  };
@@ -862,6 +867,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
862
867
  allowSaveWithErrors: boolean;
863
868
  reusableRecommendationStrategy: boolean;
864
869
  legacyUnsubscribeConversion: boolean;
870
+ readonly: boolean;
865
871
  itemsPriceFormatting: boolean;
866
872
  blockUnsubscribeLinks: boolean;
867
873
  };
@@ -1012,6 +1018,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1012
1018
  allowSaveWithErrors: boolean;
1013
1019
  reusableRecommendationStrategy: boolean;
1014
1020
  legacyUnsubscribeConversion: boolean;
1021
+ readonly: boolean;
1015
1022
  itemsPriceFormatting: boolean;
1016
1023
  blockUnsubscribeLinks: boolean;
1017
1024
  };
@@ -1162,6 +1169,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1162
1169
  allowSaveWithErrors: boolean;
1163
1170
  reusableRecommendationStrategy: boolean;
1164
1171
  legacyUnsubscribeConversion: boolean;
1172
+ readonly: boolean;
1165
1173
  itemsPriceFormatting: boolean;
1166
1174
  blockUnsubscribeLinks: boolean;
1167
1175
  };
@@ -1312,6 +1320,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1312
1320
  allowSaveWithErrors: boolean;
1313
1321
  reusableRecommendationStrategy: boolean;
1314
1322
  legacyUnsubscribeConversion: boolean;
1323
+ readonly: boolean;
1315
1324
  itemsPriceFormatting: boolean;
1316
1325
  blockUnsubscribeLinks: boolean;
1317
1326
  };
@@ -1462,6 +1471,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1462
1471
  allowSaveWithErrors: boolean;
1463
1472
  reusableRecommendationStrategy: boolean;
1464
1473
  legacyUnsubscribeConversion: boolean;
1474
+ readonly: boolean;
1465
1475
  itemsPriceFormatting: boolean;
1466
1476
  blockUnsubscribeLinks: boolean;
1467
1477
  };
@@ -1612,6 +1622,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1612
1622
  allowSaveWithErrors: boolean;
1613
1623
  reusableRecommendationStrategy: boolean;
1614
1624
  legacyUnsubscribeConversion: boolean;
1625
+ readonly: boolean;
1615
1626
  itemsPriceFormatting: boolean;
1616
1627
  blockUnsubscribeLinks: boolean;
1617
1628
  };
@@ -1762,6 +1773,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1762
1773
  allowSaveWithErrors: boolean;
1763
1774
  reusableRecommendationStrategy: boolean;
1764
1775
  legacyUnsubscribeConversion: boolean;
1776
+ readonly: boolean;
1765
1777
  itemsPriceFormatting: boolean;
1766
1778
  blockUnsubscribeLinks: boolean;
1767
1779
  };
@@ -1912,6 +1924,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1912
1924
  allowSaveWithErrors: boolean;
1913
1925
  reusableRecommendationStrategy: boolean;
1914
1926
  legacyUnsubscribeConversion: boolean;
1927
+ readonly: boolean;
1915
1928
  itemsPriceFormatting: boolean;
1916
1929
  blockUnsubscribeLinks: boolean;
1917
1930
  };
@@ -2062,6 +2075,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2062
2075
  allowSaveWithErrors: boolean;
2063
2076
  reusableRecommendationStrategy: boolean;
2064
2077
  legacyUnsubscribeConversion: boolean;
2078
+ readonly: boolean;
2065
2079
  itemsPriceFormatting: boolean;
2066
2080
  blockUnsubscribeLinks: boolean;
2067
2081
  };
@@ -2212,6 +2226,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2212
2226
  allowSaveWithErrors: boolean;
2213
2227
  reusableRecommendationStrategy: boolean;
2214
2228
  legacyUnsubscribeConversion: boolean;
2229
+ readonly: boolean;
2215
2230
  itemsPriceFormatting: boolean;
2216
2231
  blockUnsubscribeLinks: boolean;
2217
2232
  };
@@ -2362,6 +2377,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2362
2377
  allowSaveWithErrors: boolean;
2363
2378
  reusableRecommendationStrategy: boolean;
2364
2379
  legacyUnsubscribeConversion: boolean;
2380
+ readonly: boolean;
2365
2381
  itemsPriceFormatting: boolean;
2366
2382
  blockUnsubscribeLinks: boolean;
2367
2383
  };
@@ -2512,6 +2528,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2512
2528
  allowSaveWithErrors: boolean;
2513
2529
  reusableRecommendationStrategy: boolean;
2514
2530
  legacyUnsubscribeConversion: boolean;
2531
+ readonly: boolean;
2515
2532
  itemsPriceFormatting: boolean;
2516
2533
  blockUnsubscribeLinks: boolean;
2517
2534
  };
@@ -2674,6 +2691,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2674
2691
  allowSaveWithErrors: boolean;
2675
2692
  reusableRecommendationStrategy: boolean;
2676
2693
  legacyUnsubscribeConversion: boolean;
2694
+ readonly: boolean;
2677
2695
  itemsPriceFormatting: boolean;
2678
2696
  blockUnsubscribeLinks: boolean;
2679
2697
  };
@@ -2824,6 +2842,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2824
2842
  allowSaveWithErrors: boolean;
2825
2843
  reusableRecommendationStrategy: boolean;
2826
2844
  legacyUnsubscribeConversion: boolean;
2845
+ readonly: boolean;
2827
2846
  itemsPriceFormatting: boolean;
2828
2847
  blockUnsubscribeLinks: boolean;
2829
2848
  };
@@ -2974,6 +2993,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2974
2993
  allowSaveWithErrors: boolean;
2975
2994
  reusableRecommendationStrategy: boolean;
2976
2995
  legacyUnsubscribeConversion: boolean;
2996
+ readonly: boolean;
2977
2997
  itemsPriceFormatting: boolean;
2978
2998
  blockUnsubscribeLinks: boolean;
2979
2999
  };
@@ -3126,6 +3146,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
3126
3146
  allowSaveWithErrors: boolean;
3127
3147
  reusableRecommendationStrategy: boolean;
3128
3148
  legacyUnsubscribeConversion: boolean;
3149
+ readonly: boolean;
3129
3150
  itemsPriceFormatting: boolean;
3130
3151
  blockUnsubscribeLinks: boolean;
3131
3152
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "3.30.2-beta.7e62a3a",
3
+ "version": "3.30.2-beta.9c42576",
4
4
  "description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
5
5
  "main": "./dist/guido.umd.cjs",
6
6
  "module": "./dist/library.js",