@useinsider/guido 3.20.1-beta.c235b0d → 3.20.1-beta.d2cba14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/@types/config/schemas.js +10 -11
  2. package/dist/components/Guido.vue.js +4 -4
  3. package/dist/components/Guido.vue2.js +51 -58
  4. package/dist/components/organisms/AutoSaveController.vue2.js +9 -19
  5. package/dist/components/organisms/header/AutoSaveToggle.vue.js +22 -0
  6. package/dist/components/organisms/header/AutoSaveToggle.vue2.js +19 -0
  7. package/dist/components/organisms/header/EditorActions.vue.js +13 -13
  8. package/dist/components/organisms/header/EditorActions.vue2.js +72 -57
  9. package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -6
  10. package/dist/components/organisms/header/HeaderWrapper.vue2.js +17 -9
  11. package/dist/components/organisms/header/LeftSlot.vue.js +1 -1
  12. package/dist/components/organisms/header/LeftSlot.vue2.js +23 -28
  13. package/dist/components/organisms/header/MiddleSlot.vue.js +4 -4
  14. package/dist/components/organisms/header/MiddleSlot.vue2.js +7 -8
  15. package/dist/components/organisms/header/RightSlot.vue.js +8 -9
  16. package/dist/components/organisms/header/RightSlot.vue2.js +18 -13
  17. package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +12 -12
  18. package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +38 -56
  19. package/dist/composables/useCustomInterfaceAppearance.js +41 -42
  20. package/dist/composables/useStripo.js +4 -3
  21. package/dist/config/i18n/en/labels.json.js +4 -36
  22. package/dist/config/i18n/en/tooltips.json.js +1 -2
  23. package/dist/extensions/Blocks/Items/block.js +43 -42
  24. package/dist/guido.css +1 -1
  25. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +271 -192
  26. package/dist/package.json.js +1 -1
  27. package/dist/sprite.svg +0 -10
  28. package/dist/src/@types/config/schemas.d.ts +0 -2
  29. package/dist/src/components/organisms/AutoSaveController.vue.d.ts +1 -19
  30. package/dist/src/components/organisms/header/HeaderWrapper.vue.d.ts +19 -1
  31. package/dist/src/components/organisms/header/RightSlot.vue.d.ts +19 -1
  32. package/dist/src/composables/useActionsApi.d.ts +2 -2
  33. package/dist/src/composables/useConfig.d.ts +0 -2
  34. package/dist/src/extensions/Blocks/Checkbox/controls/blockBackground/index.d.ts +1 -0
  35. package/dist/src/extensions/Blocks/CouponBlock/controls/index.d.ts +8 -0
  36. package/dist/src/extensions/Blocks/Items/controls/index.d.ts +40 -0
  37. package/dist/src/extensions/Blocks/RadioButton/controls/blockBackground/index.d.ts +1 -0
  38. package/dist/src/extensions/Blocks/Recommendation/controls/blockBackground/index.d.ts +1 -0
  39. package/dist/src/extensions/Blocks/Recommendation/controls/button/index.d.ts +11 -0
  40. package/dist/src/extensions/Blocks/Recommendation/controls/customAttribute/index.d.ts +7 -0
  41. package/dist/src/extensions/Blocks/Recommendation/controls/image/index.d.ts +2 -0
  42. package/dist/src/extensions/Blocks/Recommendation/controls/name/index.d.ts +7 -0
  43. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/index.d.ts +7 -0
  44. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.d.ts +7 -0
  45. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/index.d.ts +7 -0
  46. package/dist/src/extensions/Blocks/Recommendation/controls/price/index.d.ts +7 -0
  47. package/dist/src/extensions/Blocks/Recommendation/controls/title/index.d.ts +7 -0
  48. package/dist/src/extensions/Blocks/_Boilerplate/controls/blockBackground/index.d.ts +1 -0
  49. package/dist/src/extensions/Blocks/controlFactories.d.ts +22 -0
  50. package/dist/src/stores/autosave.d.ts +1 -73
  51. package/dist/src/stores/config.d.ts +0 -20
  52. package/dist/src/stores/editor.d.ts +0 -109
  53. package/dist/src/stores/onboarding.d.ts +21 -952
  54. package/dist/src/stores/version-history.d.ts +1 -1
  55. package/dist/src/utils/timeUtil.d.ts +0 -5
  56. package/dist/static/styles/components/button.css.js +5 -0
  57. package/dist/static/styles/variables.css.js +0 -2
  58. package/dist/stores/autosave.js +7 -12
  59. package/dist/stores/editor.js +4 -7
  60. package/dist/stores/onboarding.js +21 -43
  61. package/dist/utils/timeUtil.js +17 -6
  62. package/package.json +3 -3
  63. package/dist/components/organisms/header/AutoSaveStatus.vue.js +0 -17
  64. package/dist/components/organisms/header/AutoSaveStatus.vue2.js +0 -25
  65. package/dist/components/organisms/header/EditorActionsMenu.vue.js +0 -20
  66. package/dist/components/organisms/header/EditorActionsMenu.vue2.js +0 -98
  67. package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue.js +0 -18
  68. package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue2.js +0 -37
  69. package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue.js +0 -22
  70. package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue2.js +0 -48
  71. package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue.js +0 -19
  72. package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue2.js +0 -90
  73. package/dist/composables/useAccessibilityApi.js +0 -45
  74. package/dist/src/components/organisms/header/EditorActionsMenu.vue.d.ts +0 -2
  75. package/dist/src/components/organisms/header/accessibility/AccessibilityToolbar.vue.d.ts +0 -2
  76. package/dist/src/components/organisms/header/accessibility/ColorVisionSelect.vue.d.ts +0 -2
  77. package/dist/src/components/organisms/onboarding/EditorTabBarOnboarding.vue.d.ts +0 -2
  78. package/dist/src/composables/useAccessibilityApi.d.ts +0 -13
  79. package/dist/static/styles/components/accessibility.css.js +0 -234
  80. /package/dist/src/components/organisms/header/{AutoSaveStatus.vue.d.ts → AutoSaveToggle.vue.d.ts} +0 -0
@@ -3,16 +3,16 @@ import o from "./HeaderWrapper.vue2.js";
3
3
  import a from "../../../_virtual/_plugin-vue2_normalizer.js";
4
4
  var s = function() {
5
5
  var t = this, r = t._self._c, e = t._self._setupProxy;
6
- return r(e.InContainer, { attrs: { border: "bor-w-0 bor-b-w-1 bor-s-s bor-c-6", "border-radius": "bor-r-0", "data-testid": "guido-header" } }, [r("div", { staticClass: "header-wrapper w-1 d-f a-i-c j-c-s-b p-3" }, [r(e.LeftSlot), r(e.MiddleSlot), r(e.RightSlot)], 1)]);
7
- }, n = [], d = /* @__PURE__ */ a(
6
+ return r(e.InContainer, { attrs: { border: "bor-w-0 bor-b-w-1 bor-s-s bor-c-6", "border-radius": "bor-r-0", "data-testid": "guido-header" } }, [r("div", { staticClass: "header-wrapper w-1 d-f a-i-c j-c-s-b p-3" }, [r(e.LeftSlot), r(e.MiddleSlot), r(e.RightSlot, { ref: "rightSlotRef" })], 1)]);
7
+ }, d = [], i = /* @__PURE__ */ a(
8
8
  o,
9
9
  s,
10
- n,
10
+ d,
11
11
  !1,
12
12
  null,
13
- "3c713746"
13
+ "d11dd577"
14
14
  );
15
- const f = d.exports;
15
+ const c = i.exports;
16
16
  export {
17
- f as default
17
+ c as default
18
18
  };
@@ -1,14 +1,22 @@
1
- import { defineComponent as o } from "vue";
2
- import { InContainer as r } from "@useinsider/design-system-vue";
3
- import t from "./LeftSlot.vue.js";
4
- import e from "./MiddleSlot.vue.js";
5
- import m from "./RightSlot.vue.js";
6
- const s = /* @__PURE__ */ o({
1
+ import { defineComponent as n, ref as m } from "vue";
2
+ import { InContainer as a } from "@useinsider/design-system-vue";
3
+ import f from "./LeftSlot.vue.js";
4
+ import p from "./MiddleSlot.vue.js";
5
+ import i from "./RightSlot.vue.js";
6
+ const c = /* @__PURE__ */ n({
7
7
  __name: "HeaderWrapper",
8
- setup(p) {
9
- return { __sfc: !0, InContainer: r, LeftSlot: t, MiddleSlot: e, RightSlot: m };
8
+ setup(l, { expose: r }) {
9
+ const e = m(null);
10
+ return r({
11
+ // Stryker disable next-line OptionalChaining: RightSlot is always rendered (no
12
+ // v-if), so rightSlotRef.value is never null and `?.` cannot short-circuit.
13
+ handleSave: (t) => {
14
+ var o;
15
+ return (o = e.value) == null ? void 0 : o.handleSave(t);
16
+ }
17
+ }), { __sfc: !0, rightSlotRef: e, InContainer: a, LeftSlot: f, MiddleSlot: p, RightSlot: i };
10
18
  }
11
19
  });
12
20
  export {
13
- s as default
21
+ c as default
14
22
  };
@@ -10,7 +10,7 @@ var a = function() {
10
10
  i,
11
11
  !1,
12
12
  null,
13
- "9d988e4b"
13
+ "b8f24f34"
14
14
  );
15
15
  const f = r.exports;
16
16
  export {
@@ -1,45 +1,40 @@
1
- import { defineComponent as p, computed as d, ref as b } from "vue";
2
- import { useAccessibilityApi as k } from "../../../composables/useAccessibilityApi.js";
3
- import { useConfig as B } from "../../../composables/useConfig.js";
4
- import { useBack as y } from "../../../composables/useGuidoActions.js";
5
- import { usePreviewMode as v } from "../../../composables/usePreviewMode.js";
6
- import { useTranslations as A } from "../../../composables/useTranslations.js";
1
+ import { defineComponent as m, computed as p, ref as d } from "vue";
2
+ import { useConfig as k } from "../../../composables/useConfig.js";
3
+ import { useBack as B } from "../../../composables/useGuidoActions.js";
4
+ import { usePreviewMode as b } from "../../../composables/usePreviewMode.js";
5
+ import { useTranslations as v } from "../../../composables/useTranslations.js";
7
6
  import { useVersionHistoryApi as _ } from "../../../composables/useVersionHistoryApi.js";
8
- import { useEditorStore as g } from "../../../stores/editor.js";
9
- import { InButtonV2 as O } from "@useinsider/design-system-vue";
10
- import { useDebounceFn as w } from "../../../node_modules/@vueuse/shared/index.js";
11
- const F = /* @__PURE__ */ p({
7
+ import { useEditorStore as y } from "../../../stores/editor.js";
8
+ import { InButtonV2 as w } from "@useinsider/design-system-vue";
9
+ import { useDebounceFn as V } from "../../../node_modules/@vueuse/shared/index.js";
10
+ const D = /* @__PURE__ */ m({
12
11
  __name: "LeftSlot",
13
- setup(M) {
14
- const e = g(), s = y(), { closeVersionHistory: r } = _(), { closePreviewMode: n } = v(), { closeAccessibilityTestingMode: c } = k(), o = A(), { config: t } = B(), m = d(() => {
15
- var l, f;
16
- return e.isVersionHistoryOpen || e.isPreviewModeOpen || e.isAccessibilityTestingOpen ? o("email-editor.back-to-editor") : (f = (l = t.value) == null ? void 0 : l.ui) != null && f.backButtonLabel ? t.value.ui.backButtonLabel : o("email-editor.back-to-design");
17
- }), i = b(!1), a = () => {
12
+ setup(C) {
13
+ const e = y(), i = B(), { closeVersionHistory: n } = _(), { closePreviewMode: s } = b(), o = v(), { config: t } = k(), l = p(() => {
14
+ var u, f;
15
+ return e.isVersionHistoryOpen || e.isPreviewModeOpen ? o("email-editor.back-to-editor") : (f = (u = t.value) == null ? void 0 : u.ui) != null && f.backButtonLabel ? t.value.ui.backButtonLabel : o("email-editor.back-to-design");
16
+ }), r = d(!1), a = () => {
18
17
  if (e.isVersionHistoryOpen) {
19
- r();
20
- return;
21
- }
22
- if (e.isPreviewModeOpen) {
23
18
  n();
24
19
  return;
25
20
  }
26
- if (e.isAccessibilityTestingOpen) {
27
- c();
21
+ if (e.isPreviewModeOpen) {
22
+ s();
28
23
  return;
29
24
  }
30
- s();
31
- }, u = w(async () => {
25
+ i();
26
+ }, c = V(async () => {
32
27
  try {
33
28
  await a();
34
29
  } finally {
35
- i.value = !1;
30
+ r.value = !1;
36
31
  }
37
32
  }, 500);
38
- return { __sfc: !0, editorStore: e, handleBack: s, closeVersionHistory: r, closePreviewMode: n, closeAccessibilityTestingMode: c, trans: o, config: t, backButtonLabel: m, isBackButtonDisabled: i, executeBackAction: a, debouncedBackAction: u, handleBackClick: () => {
39
- i.value = !0, u();
40
- }, InButtonV2: O };
33
+ return { __sfc: !0, editorStore: e, handleBack: i, closeVersionHistory: n, closePreviewMode: s, trans: o, config: t, backButtonLabel: l, isBackButtonDisabled: r, executeBackAction: a, debouncedBackAction: c, handleBackClick: () => {
34
+ r.value = !0, c();
35
+ }, InButtonV2: w };
41
36
  }
42
37
  });
43
38
  export {
44
- F as default
39
+ D as default
45
40
  };
@@ -1,8 +1,8 @@
1
1
  import r from "./MiddleSlot.vue2.js";
2
2
  import s from "../../../_virtual/_plugin-vue2_normalizer.js";
3
3
  var t = function() {
4
- var o = this, i = o._self._c, e = o._self._setupProxy;
5
- return i("div", { staticClass: "d-f a-i-c" }, [e.editorStore.isVersionHistoryOpen ? i("div", { staticClass: "d-f" }, [i(e.VersionHistory), i(e.VersionHistoryViewOptions)], 1) : e.editorStore.isPreviewModeOpen ? i("div", { staticClass: "d-f" }, [i(e.EmailSizeIndicator), i(e.AmpToggle)], 1) : e.editorStore.isAccessibilityTestingOpen ? i(e.AccessibilityToolbar) : o._e(), i(e.EditorToolbar, { directives: [{ name: "show", rawName: "v-show", value: e.editorStore.isEditorToolbarVisible, expression: "editorStore.isEditorToolbarVisible" }] })], 1);
4
+ var o = this, e = o._self._c, i = o._self._setupProxy;
5
+ return e("div", { staticClass: "d-f a-i-c" }, [i.editorStore.isVersionHistoryOpen ? e("div", { staticClass: "d-f" }, [e(i.VersionHistory), e(i.VersionHistoryViewOptions)], 1) : i.editorStore.isPreviewModeOpen ? e("div", { staticClass: "d-f" }, [e(i.EmailSizeIndicator), e(i.AmpToggle)], 1) : o._e(), e(i.EditorToolbar, { directives: [{ name: "show", rawName: "v-show", value: i.editorStore.isEditorToolbarVisible, expression: "editorStore.isEditorToolbarVisible" }] })], 1);
6
6
  }, a = [], n = /* @__PURE__ */ s(
7
7
  r,
8
8
  t,
@@ -11,7 +11,7 @@ var t = function() {
11
11
  null,
12
12
  null
13
13
  );
14
- const _ = n.exports;
14
+ const c = n.exports;
15
15
  export {
16
- _ as default
16
+ c as default
17
17
  };
@@ -2,16 +2,15 @@ import { defineComponent as o } from "vue";
2
2
  import r from "../email-preview/amp/AmpToggle.vue.js";
3
3
  import t from "../email-preview/desktop-preview/EmailSizeIndicator.vue.js";
4
4
  import { useEditorStore as i } from "../../../stores/editor.js";
5
- import e from "./accessibility/AccessibilityToolbar.vue.js";
6
- import m from "./EditorToolbar.vue.js";
7
- import p from "./version-history/VersionHistory.vue.js";
8
- import s from "./version-history/ViewOptions.vue.js";
9
- const y = /* @__PURE__ */ o({
5
+ import e from "./EditorToolbar.vue.js";
6
+ import m from "./version-history/VersionHistory.vue.js";
7
+ import p from "./version-history/ViewOptions.vue.js";
8
+ const S = /* @__PURE__ */ o({
10
9
  __name: "MiddleSlot",
11
- setup(f) {
12
- return { __sfc: !0, editorStore: i(), AmpToggle: r, EmailSizeIndicator: t, AccessibilityToolbar: e, EditorToolbar: m, VersionHistory: p, VersionHistoryViewOptions: s };
10
+ setup(s) {
11
+ return { __sfc: !0, editorStore: i(), AmpToggle: r, EmailSizeIndicator: t, EditorToolbar: e, VersionHistory: m, VersionHistoryViewOptions: p };
13
12
  }
14
13
  });
15
14
  export {
16
- y as default
15
+ S as default
17
16
  };
@@ -1,18 +1,17 @@
1
- import i from "./RightSlot.vue2.js";
2
- /* empty css */
1
+ import s from "./RightSlot.vue2.js";
3
2
  import o from "../../../_virtual/_plugin-vue2_normalizer.js";
4
3
  var r = function() {
5
- var e = this, s = e._self._c, t = e._self._setupProxy;
6
- return s("div", { staticClass: "d-f a-i-c right-slot" }, [t.isNormalMode ? s(t.AutoSaveStatus) : e._e(), t.isLiquidEnabled && t.isNormalMode ? s(t.InChips, { attrs: { id: "guido__liquid-tag-chip", styles: "stroke", type: "default", value: "liquid-tags", "close-button": !1, "disabled-status": t.editorStore.loadingStatus, interactive: !1, text: t.trans("email-editor.liquid-tags-enabled") } }) : e._e(), t.isNormalMode ? s(t.EditorActions) : t.editorStore.isVersionHistoryOpen ? s(t.RestoreButton) : e._e()], 1);
7
- }, a = [], l = /* @__PURE__ */ o(
8
- i,
4
+ var i = this, e = i._self._c, t = i._self._setupProxy;
5
+ return e("div", { staticClass: "d-f a-i-c" }, [t.editorStore.isVersionHistoryOpen ? i._e() : e(t.AutoSaveToggle), t.isLiquidEnabled && !t.editorStore.isVersionHistoryOpen ? e(t.InChips, { staticClass: "mr-1", attrs: { id: "guido__liquid-tag-chip", styles: "stroke", type: "default", value: "liquid-tags", "close-button": !1, "disabled-status": t.editorStore.loadingStatus, interactive: !1, text: t.trans("email-editor.liquid-tags-enabled") } }) : i._e(), t.editorStore.isVersionHistoryOpen ? e(t.RestoreButton) : e(t.EditorActions, { ref: "editorActionsRef" })], 1);
6
+ }, a = [], n = /* @__PURE__ */ o(
7
+ s,
9
8
  r,
10
9
  a,
11
10
  !1,
12
11
  null,
13
- "efc32e0d"
12
+ null
14
13
  );
15
- const c = l.exports;
14
+ const u = n.exports;
16
15
  export {
17
- c as default
16
+ u as default
18
17
  };
@@ -1,18 +1,23 @@
1
- import { defineComponent as m, computed as r } from "vue";
2
- import { useConfig as n } from "../../../composables/useConfig.js";
3
- import { useTranslations as a } from "../../../composables/useTranslations.js";
4
- import { useEditorStore as p } from "../../../stores/editor.js";
5
- import { InChips as u } from "@useinsider/design-system-vue";
6
- import f from "./AutoSaveStatus.vue.js";
7
- import d from "./EditorActions.vue.js";
8
- import c from "./version-history/RestoreButton.vue.js";
9
- const x = /* @__PURE__ */ m({
1
+ import { defineComponent as a, ref as f, computed as p } from "vue";
2
+ import { useConfig as u } from "../../../composables/useConfig.js";
3
+ import { useTranslations as d } from "../../../composables/useTranslations.js";
4
+ import { useEditorStore as l } from "../../../stores/editor.js";
5
+ import { InChips as c } from "@useinsider/design-system-vue";
6
+ import _ from "./AutoSaveToggle.vue.js";
7
+ import S from "./EditorActions.vue.js";
8
+ import g from "./version-history/RestoreButton.vue.js";
9
+ const T = /* @__PURE__ */ a({
10
10
  __name: "RightSlot",
11
- setup(l) {
12
- const { isFeatureEnabled: o } = n(), i = a(), t = p(), e = r(() => o("liquidSyntax")), s = r(() => t.isNormalMode);
13
- return { __sfc: !0, isFeatureEnabled: o, trans: i, editorStore: t, isLiquidEnabled: e, isNormalMode: s, InChips: u, AutoSaveStatus: f, EditorActions: d, RestoreButton: c };
11
+ setup(h, { expose: r }) {
12
+ const { isFeatureEnabled: o } = u(), i = d(), n = l(), t = f(null), s = p(() => o("liquidSyntax"));
13
+ return r({
14
+ handleSave: (m) => {
15
+ var e;
16
+ return (e = t.value) == null ? void 0 : e.handleSave(m);
17
+ }
18
+ }), { __sfc: !0, isFeatureEnabled: o, trans: i, editorStore: n, editorActionsRef: t, isLiquidEnabled: s, InChips: c, AutoSaveToggle: _, EditorActions: S, RestoreButton: g };
14
19
  }
15
20
  });
16
21
  export {
17
- x as default
22
+ T as default
18
23
  };
@@ -1,21 +1,21 @@
1
- import o from "./OnboardingWrapper.vue2.js";
2
- import s from "../../../_virtual/_plugin-vue2_normalizer.js";
3
- var _ = function() {
4
- var n = this, r = n._self._c, t = n._self._setupProxy;
5
- return r("div", n._l(t.visibleOnboardings, function(e) {
6
- return r(e.component, { key: e.type, tag: "component", on: { "onboarding-finished": function(l) {
7
- return t.handleFinished(e.type);
1
+ import t from "./OnboardingWrapper.vue2.js";
2
+ import i from "../../../_virtual/_plugin-vue2_normalizer.js";
3
+ var s = function() {
4
+ var n = this, e = n._self._c, r = n._self._setupProxy;
5
+ return e("div", n._l(r.visibleOnboardings, function(o) {
6
+ return e(o.component, { key: o.type, tag: "component", on: { "onboarding-finished": function(p) {
7
+ return r.emit("onboarding-finished");
8
8
  } } });
9
9
  }), 1);
10
- }, i = [], a = /* @__PURE__ */ s(
11
- o,
10
+ }, _ = [], a = /* @__PURE__ */ i(
11
+ t,
12
+ s,
12
13
  _,
13
- i,
14
14
  !1,
15
15
  null,
16
16
  null
17
17
  );
18
- const f = a.exports;
18
+ const d = a.exports;
19
19
  export {
20
- f as default
20
+ d as default
21
21
  };
@@ -1,68 +1,50 @@
1
- import { defineComponent as y, computed as r, onMounted as S, watch as e, ref as h } from "vue";
2
- import w from "./AMPOnboarding.vue.js";
3
- import T from "./EditorTabBarOnboarding.vue.js";
4
- import P from "./GenericOnboarding.vue.js";
5
- import B from "./ItemsOnboarding.vue.js";
6
- import A from "./NewVersionPopup.vue.js";
7
- import M from "./RecommendationLegacyStrategyOnboarding.vue.js";
8
- import _ from "./RecommendationStrategyOnboarding.vue.js";
9
- import H from "./TextBlockOnboarding.vue.js";
10
- import F from "./VersionHistoryOnboarding.vue.js";
11
- import { useConfig as V } from "../../../composables/useConfig.js";
12
- import { usePartner as C } from "../../../composables/usePartner.js";
13
- import { useEditorStore as x } from "../../../stores/editor.js";
14
- import { useOnboardingStore as E } from "../../../stores/onboarding.js";
15
- import { usePreviewStore as N } from "../../../stores/preview.js";
16
- const Z = /* @__PURE__ */ y({
1
+ import { defineComponent as f, computed as e, onMounted as O, watch as t } from "vue";
2
+ import y from "./AMPOnboarding.vue.js";
3
+ import u from "./GenericOnboarding.vue.js";
4
+ import v from "./ItemsOnboarding.vue.js";
5
+ import S from "./NewVersionPopup.vue.js";
6
+ import l from "./RecommendationLegacyStrategyOnboarding.vue.js";
7
+ import h from "./RecommendationStrategyOnboarding.vue.js";
8
+ import w from "./TextBlockOnboarding.vue.js";
9
+ import P from "./VersionHistoryOnboarding.vue.js";
10
+ import { usePartner as _ } from "../../../composables/usePartner.js";
11
+ import { useEditorStore as A } from "../../../stores/editor.js";
12
+ import { useOnboardingStore as H } from "../../../stores/onboarding.js";
13
+ import { usePreviewStore as M } from "../../../stores/preview.js";
14
+ const U = /* @__PURE__ */ f({
17
15
  __name: "OnboardingWrapper",
18
16
  emits: ["onboarding-finished"],
19
- setup(R, { emit: p }) {
20
- const o = E(), i = x(), c = N(), { isTestPartner: b } = C(), { isFeatureEnabled: g } = V(), a = r(() => i.isStripoInitialized), s = r(() => b()), O = [
21
- { type: "newVersionPopup", component: A },
22
- { type: "genericOnboarding", component: P },
23
- { type: "textBlockOnboarding", component: H },
24
- { type: "versionHistoryOnboarding", component: F },
25
- { type: "ampOnboarding", component: w },
26
- { type: "itemsOnboarding", component: B },
27
- { type: "editorTabBarOnboarding", component: T },
28
- { type: "recommendationStrategyOnboarding", component: _ },
29
- { type: "recommendationLegacyStrategyOnboarding", component: M }
30
- ], f = (n) => s.value || !a.value ? !1 : n === "newVersionPopup" ? o.shouldShowOnboarding(n) : o.isActive(n), l = r(() => O.filter((n) => f(n.type)));
31
- S(async () => {
17
+ setup(x, { emit: g }) {
18
+ const o = H(), r = A(), a = M(), { isTestPartner: s } = _(), m = e(() => r.isStripoInitialized), p = e(() => s()), d = [
19
+ { type: "newVersionPopup", component: S },
20
+ { type: "genericOnboarding", component: u },
21
+ { type: "textBlockOnboarding", component: w },
22
+ { type: "versionHistoryOnboarding", component: P },
23
+ { type: "ampOnboarding", component: y },
24
+ { type: "itemsOnboarding", component: v },
25
+ { type: "recommendationStrategyOnboarding", component: h },
26
+ { type: "recommendationLegacyStrategyOnboarding", component: l }
27
+ ], c = (n) => p.value || !m.value ? !1 : n === "newVersionPopup" ? o.shouldShowOnboarding(n) : o.isActive(n), b = e(() => d.filter((n) => c(n.type)));
28
+ return O(async () => {
32
29
  await o.fetchUserModalState();
33
- }), e(
34
- () => i.isVersionHistoryOpen,
35
- (n, t) => {
36
- n && !t && (o.isActive("editorTabBarOnboarding") && o.closeForSession("editorTabBarOnboarding"), o.shouldShowOnboarding("versionHistoryOnboarding") && o.start("versionHistoryOnboarding")), !n && t && o.isActive("versionHistoryOnboarding") && o.close("versionHistoryOnboarding");
30
+ }), t(
31
+ () => r.isVersionHistoryOpen,
32
+ (n, i) => {
33
+ n && !i && o.shouldShowOnboarding("versionHistoryOnboarding") && o.start("versionHistoryOnboarding"), !n && i && o.isActive("versionHistoryOnboarding") && o.close("versionHistoryOnboarding");
37
34
  }
38
- ), e(
39
- () => c.emailFormat,
40
- (n, t) => {
41
- t !== "AMP" && n === "AMP" && o.shouldShowOnboarding("ampOnboarding") && o.start("ampOnboarding");
35
+ ), t(
36
+ () => a.emailFormat,
37
+ (n, i) => {
38
+ i !== "AMP" && n === "AMP" && o.shouldShowOnboarding("ampOnboarding") && o.start("ampOnboarding");
42
39
  }
43
- ), e(
44
- () => i.isPreviewModeOpen,
40
+ ), t(
41
+ () => r.isPreviewModeOpen,
45
42
  (n) => {
46
43
  !n && o.isActive("ampOnboarding") && o.close("ampOnboarding");
47
44
  }
48
- );
49
- const d = h(!1), v = (n) => {
50
- n === "newVersionPopup" && (d.value = !0), p("onboarding-finished");
51
- }, m = r(() => i.isNormalMode && !i.isPreviewModeOpen), u = r(() => a.value && o.isFetched && g("accessibilityTesting") && !s.value && m.value && !(o.shouldShowOnboarding("newVersionPopup") && !d.value) && !o.isOnboardingActive() && !o.closedThisSession.includes("editorTabBarOnboarding") && o.shouldShowOnboarding("editorTabBarOnboarding"));
52
- return e(
53
- u,
54
- (n) => {
55
- n && o.start("editorTabBarOnboarding");
56
- },
57
- { immediate: !0 }
58
- ), e(
59
- m,
60
- (n) => {
61
- !n && o.isActive("editorTabBarOnboarding") && o.closeForSession("editorTabBarOnboarding");
62
- }
63
- ), { __sfc: !0, emit: p, onboardingStore: o, editorStore: i, previewStore: c, isTestPartner: b, isFeatureEnabled: g, isStripoReady: a, isTestPartnerActive: s, onboardingConfigs: O, shouldShow: f, visibleOnboardings: l, isNewVersionPopupClosed: d, handleFinished: v, isTourAnchored: m, canStartTabBarTour: u };
45
+ ), { __sfc: !0, emit: g, onboardingStore: o, editorStore: r, previewStore: a, isTestPartner: s, isStripoReady: m, isTestPartnerActive: p, onboardingConfigs: d, shouldShow: c, visibleOnboardings: b };
64
46
  }
65
47
  });
66
48
  export {
67
- Z as default
49
+ U as default
68
50
  };
@@ -1,44 +1,44 @@
1
1
  import p from "../static/assets/icons/filled-arrow-rising.svg.js";
2
2
  import s from "../static/assets/icons/line-change.svg.js";
3
- import f from "../static/assets/icons/line-delete.svg.js";
4
- import a from "../static/assets/icons/line-info.svg.js";
3
+ import a from "../static/assets/icons/line-delete.svg.js";
4
+ import f from "../static/assets/icons/line-info.svg.js";
5
5
  import c from "../static/assets/icons/line-plus.svg.js";
6
6
  import l from "../static/styles/base.css.js";
7
- import C from "../static/styles/components/accessibility.css.js";
8
- import d from "../static/styles/components/alert-message.css.js";
9
- import u from "../static/styles/components/amp-block.css.js";
10
- import h from "../static/styles/components/base-input.css.js";
11
- import I from "../static/styles/components/button-group.css.js";
12
- import g from "../static/styles/components/button.css.js";
13
- import w from "../static/styles/components/combobox.css.js";
14
- import y from "../static/styles/components/counter.css.js";
15
- import A from "../static/styles/components/dropdown-menu.css.js";
16
- import $ from "../static/styles/components/loader.css.js";
17
- import b from "../static/styles/components/narrow-panel.css.js";
18
- import B from "../static/styles/components/popup.css.js";
19
- import D from "../static/styles/components/recommendation-strategy.css.js";
20
- import R from "../static/styles/components/skeleton.css.js";
21
- import P from "../static/styles/components/switcher.css.js";
22
- import T from "../static/styles/components/tabs.css.js";
23
- import x from "../static/styles/components/tools.css.js";
24
- import M from "../static/styles/components/version-history.css.js";
25
- import O from "../static/styles/components/wide-panel.css.js";
26
- import V from "../static/styles/variables.css.js";
7
+ import C from "../static/styles/components/alert-message.css.js";
8
+ import d from "../static/styles/components/amp-block.css.js";
9
+ import u from "../static/styles/components/base-input.css.js";
10
+ import h from "../static/styles/components/button-group.css.js";
11
+ import I from "../static/styles/components/button.css.js";
12
+ import g from "../static/styles/components/combobox.css.js";
13
+ import w from "../static/styles/components/counter.css.js";
14
+ import y from "../static/styles/components/dropdown-menu.css.js";
15
+ import A from "../static/styles/components/loader.css.js";
16
+ import $ from "../static/styles/components/narrow-panel.css.js";
17
+ import b from "../static/styles/components/popup.css.js";
18
+ import B from "../static/styles/components/recommendation-strategy.css.js";
19
+ import D from "../static/styles/components/skeleton.css.js";
20
+ import R from "../static/styles/components/switcher.css.js";
21
+ import P from "../static/styles/components/tabs.css.js";
22
+ import T from "../static/styles/components/tools.css.js";
23
+ import x from "../static/styles/components/version-history.css.js";
24
+ import M from "../static/styles/components/wide-panel.css.js";
25
+ import O from "../static/styles/variables.css.js";
27
26
  function o(i, r) {
28
27
  return `--guido-icon-${i}: url("data:image/svg+xml,${encodeURIComponent(r.trim())}");`;
29
28
  }
30
- const W = `:host {
29
+ const V = `:host {
31
30
  ${o("line-change", s)}
32
- ${o("line-delete", f)}
31
+ ${o("line-delete", a)}
33
32
  ${o("filled-arrow-rising", p)}
34
- ${o("line-info", a)}
33
+ ${o("line-info", f)}
35
34
  ${o("line-plus", c)}
36
- }`, _ = [
37
- V,
35
+ }`, W = [
36
+ O,
38
37
  // Must be on top
39
- W,
38
+ V,
40
39
  l,
41
40
  // Must be on top
41
+ C,
42
42
  d,
43
43
  u,
44
44
  h,
@@ -49,34 +49,33 @@ const W = `:host {
49
49
  A,
50
50
  $,
51
51
  b,
52
- B,
52
+ D,
53
53
  R,
54
54
  P,
55
55
  T,
56
56
  x,
57
57
  M,
58
- O,
59
- D,
60
- C
58
+ B
59
+ // Last: overrides button.css / wide-panel.css defaults
61
60
  ].join(`
62
61
 
63
- `), k = 3e4;
62
+ `), _ = 3e4;
64
63
  let e = null;
65
- function q() {
66
- return e || (e = new CSSStyleSheet(), e.replaceSync(_)), e;
64
+ function k() {
65
+ return e || (e = new CSSStyleSheet(), e.replaceSync(W)), e;
67
66
  }
68
- const fo = () => ({ importCss: () => {
69
- const r = q(), S = Date.now() + k, m = () => {
70
- var n;
71
- const t = (n = document.querySelector("ui-editor")) == null ? void 0 : n.shadowRoot;
67
+ const po = () => ({ importCss: () => {
68
+ const r = k(), S = Date.now() + _, n = () => {
69
+ var m;
70
+ const t = (m = document.querySelector("ui-editor")) == null ? void 0 : m.shadowRoot;
72
71
  if (t) {
73
72
  t.adoptedStyleSheets.includes(r) || (t.adoptedStyleSheets = [...t.adoptedStyleSheets, r]);
74
73
  return;
75
74
  }
76
- Date.now() < S && requestAnimationFrame(m);
75
+ Date.now() < S && requestAnimationFrame(n);
77
76
  };
78
- m();
77
+ n();
79
78
  } });
80
79
  export {
81
- fo as useCustomInterfaceAppearance
80
+ po as useCustomInterfaceAppearance
82
81
  };
@@ -31,13 +31,13 @@ const he = () => {
31
31
  n = null;
32
32
  }), n), D = async (r, s, o, a = [], i = !1) => {
33
33
  var y, E, h, C;
34
- const e = k(), { html: d, css: R } = r, { baseBlocks: g, extensions: P } = await V(), S = ((y = c.value) == null ? void 0 : y.displayConditions) ?? !0, U = ((E = c.value) == null ? void 0 : E.modulesDisabled) ?? !1, I = !!d || (((h = u.value) == null ? void 0 : h.forceRecreate) ?? !1), q = "https://email-static.useinsider.com https://edge.fullstory.com https://rs.fullstory.com";
34
+ const e = k(), { html: d, css: P } = r, { baseBlocks: g, extensions: R } = await V(), S = ((y = c.value) == null ? void 0 : y.displayConditions) ?? !0, U = ((E = c.value) == null ? void 0 : E.modulesDisabled) ?? !1, I = !!d || (((h = u.value) == null ? void 0 : h.forceRecreate) ?? !1), q = "https://email-static.useinsider.com https://edge.fullstory.com https://rs.fullstory.com";
35
35
  w().importCss(), await window.UIEditor.initEditor(
36
36
  document.querySelector("#guido-editor"),
37
37
  {
38
38
  metadata: s,
39
39
  html: d,
40
- css: R,
40
+ css: P,
41
41
  forceRecreate: I,
42
42
  locale: "en",
43
43
  undoButtonSelector: "#guido__undo-button",
@@ -60,6 +60,7 @@ const he = () => {
60
60
  keepModuleStylesEnabled: !0,
61
61
  displayTitle: !1,
62
62
  displayUTM: !1,
63
+ copyPasteEnabled: !1,
63
64
  selectElementAfterDrop: !0,
64
65
  sameFontSizeForOutlook: !0,
65
66
  allowedScriptSourceDomains: q,
@@ -120,7 +121,7 @@ const he = () => {
120
121
  ".in-modal-v2-wrapper",
121
122
  ".in-toasts-wrapper"
122
123
  ],
123
- extensions: P,
124
+ extensions: R,
124
125
  localePatch: J
125
126
  }
126
127
  );
@@ -1,51 +1,19 @@
1
- const e = "Items", o = "Default", i = "Custom", t = {
1
+ const e = "Items", o = "Default", t = "Custom", s = {
2
2
  "Global Styles & Layout": "Global Styles and Layout",
3
3
  "Structures & Modules": "Structures and Modules",
4
4
  "Recommendation Block": "Recommendation Block",
5
5
  Items: e,
6
6
  "This block is switched from the Old Version to the New Version. We recommend you check the Recommendation block and test your message to ensure it works properly.": "This block is switched from the Old Version to the New Version. We recommend you check the Recommendation block and test your message to ensure it works properly.",
7
7
  "This block is switched from the Old Version to the New Version. We recommend you check the Items block and test your message to ensure it works properly.": "This block is switched from the Old Version to the New Version. We recommend you check the Items block and test your message to ensure it works properly.",
8
- "email-editor.a11y-hide-images": "Hide images",
9
- "email-editor.a11y-show-images": "Show images",
10
- "email-editor.cvd-none": "No Color Deficiency",
11
- "email-editor.cvd-protanopia": "Protanopia",
12
- "email-editor.cvd-protanopia-description": "Causes red-green confusion and makes reds appear darker.",
13
- "email-editor.cvd-deuteranopia": "Deuteranopia",
14
- "email-editor.cvd-deuteranopia-description": "Causes red-green confusion.",
15
- "email-editor.cvd-tritanopia": "Tritanopia",
16
- "email-editor.cvd-tritanopia-description": "Causes blue-yellow confusion.",
17
- "email-editor.cvd-achromatopsia": "Achromatopsia",
18
- "email-editor.cvd-achromatopsia-description": "Causes complete color blindness.",
19
- "email-editor.more-actions": "More actions",
20
- "email-editor.preferences": "Preferences",
21
- "email-editor.actions": "Actions",
22
- "email-editor.accessibility-test": "Accessibility Test",
23
- "email-editor.autosaved-at-today": "{boldStart}Autosaved{boldEnd} at {time}, Today",
24
- "email-editor.autosaved-at-date": "{boldStart}Autosaved{boldEnd} at {date}",
25
- "email-editor.export-html": "Export HTML",
26
- "email-editor.onboarding-kebab-title": "Discover Preferences and Actions",
27
- "email-editor.onboarding-kebab-description": "You can now access your Preferences and Actions easily such as Autosave, Export HTML, Version History, Accessibility Test and Save As Template.",
28
- "email-editor.onboarding-autosave-title": "Autosave Your Design",
29
- "email-editor.onboarding-autosave-description": "You can save your design automatically by enabling Autosave without losing your work.",
30
- "email-editor.onboarding-accessibility-title": "Test Accessibility of Your Design",
31
- "email-editor.onboarding-accessibility-description": "You can test the accessibility of your design to see the Failed, Passed items and update the Failed ones accordingly.",
32
8
  "Pixel Tracking Opt-in": "Pixel Tracking Opt-in",
33
9
  "OPT-IN SELECTION": "OPT-IN SELECTION",
34
10
  "UNSUBSCRIBE GROUPS": "UNSUBSCRIBE GROUPS",
35
11
  Default: o,
36
- Custom: i,
37
- "Foreground color": "Foreground Color",
38
- "Contrast ratio": "Contrast Ratio",
39
- "You’ve fixed all issues!": `No Failed Items
40
- You have no failed items.`,
41
- "No accessibility issues found": `No Failed Items
42
- You have no failed items.`,
43
- "You have no ignored issues yet": `No Ignored Items
44
- You have no ignored items.`
12
+ Custom: t
45
13
  };
46
14
  export {
47
- i as Custom,
15
+ t as Custom,
48
16
  o as Default,
49
17
  e as Items,
50
- t as default
18
+ s as default
51
19
  };
@@ -76,8 +76,7 @@ const e = {
76
76
  "The data source link is unavailable. Please, make sure there is an access to the data source.": "Enter an accessible Data Source Link to contiue.",
77
77
  "The file should not exceed the maximum resolution of {maxImageResolution}px.": "Upload files up to 1024x512 pixels to continue.",
78
78
  "The option is disabled because was overridden in the Code editor": "The option is disabled because it was overridden in the Code Editor.",
79
- "Dropdown with a list of available data services, preliminarily created in the Data section → Services tab of the Account.": "Service for Data Collection lets you enter a form submission URL for the recipients to submit.",
80
- 'Read more about the issue on <a target="_blank" rel="noopener noreferrer" href="{url}">ACT Rules Community Group forum</a>': 'Read more about the issue on <a target="_blank" rel="noopener noreferrer" href="{url}">ACT Rules Community Group forum.</a>'
79
+ "Dropdown with a list of available data services, preliminarily created in the Data section → Services tab of the Account.": "Service for Data Collection lets you enter a form submission URL for the recipients to submit."
81
80
  };
82
81
  export {
83
82
  e as default