@useinsider/guido 1.0.2-beta.73c3522 → 1.0.2-beta.78d0643

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 (71) hide show
  1. package/README.md +1 -31
  2. package/dist/@types/events.d.ts +0 -6
  3. package/dist/@types/generic.d.ts +0 -4
  4. package/dist/components/Guido.vue.d.ts +1 -3
  5. package/dist/components/Guido.vue.js +2 -2
  6. package/dist/components/Guido.vue2.js +55 -66
  7. package/dist/components/organisms/LoadingWrapper.vue.js +1 -1
  8. package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +15 -14
  9. package/dist/components/organisms/header/HeaderWrapper.vue.d.ts +1 -3
  10. package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -6
  11. package/dist/components/organisms/header/HeaderWrapper.vue2.js +9 -15
  12. package/dist/components/organisms/header/RightSlot.vue.d.ts +1 -3
  13. package/dist/components/organisms/header/RightSlot.vue.js +3 -5
  14. package/dist/components/organisms/header/RightSlot.vue2.js +27 -25
  15. package/dist/components/organisms/header/ViewOptions.vue.js +4 -4
  16. package/dist/components/organisms/header/ViewOptions.vue2.js +14 -14
  17. package/dist/components/organisms/header/version-history/ViewOptions.vue.js +11 -11
  18. package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +5 -5
  19. package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +13 -13
  20. package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +23 -21
  21. package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +12 -12
  22. package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +26 -24
  23. package/dist/components/organisms/onboarding/NewVersionPopup.vue.js +1 -1
  24. package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +20 -36
  25. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +15 -15
  26. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +18 -16
  27. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +14 -14
  28. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +23 -21
  29. package/dist/composables/useHtmlCompiler.js +9 -17
  30. package/dist/composables/usePreviewMode.js +15 -14
  31. package/dist/composables/useStripo.js +25 -27
  32. package/dist/composables/useStripoEventHandler.js +8 -8
  33. package/dist/composables/useToaster.js +17 -17
  34. package/dist/config/compiler/outlookCompilerRules.d.ts +0 -2
  35. package/dist/enums/defaults.d.ts +1 -5
  36. package/dist/enums/defaults.js +10 -14
  37. package/dist/guido.css +1 -1
  38. package/dist/services/onboardingApi.d.ts +2 -2
  39. package/dist/services/onboardingApi.js +9 -9
  40. package/dist/stores/dynamic-content.d.ts +0 -12
  41. package/dist/stores/dynamic-content.js +6 -7
  42. package/dist/stores/onboarding.d.ts +592 -133
  43. package/dist/stores/onboarding.js +57 -40
  44. package/dist/stores/preview.js +14 -6
  45. package/dist/utils/genericUtil.js +6 -9
  46. package/dist/utils/templatePreparation.js +14 -21
  47. package/package.json +2 -4
  48. package/dist/composables/useHtmlValidator.d.ts +0 -3
  49. package/dist/composables/useHtmlValidator.js +0 -120
  50. package/dist/composables/useRecommendation.d.ts +0 -19
  51. package/dist/composables/useRecommendation.js +0 -27
  52. package/dist/composables/useSave.d.ts +0 -4
  53. package/dist/composables/useSave.js +0 -15
  54. package/dist/config/compiler/outlookCompilerRules.js +0 -36
  55. package/dist/config/compiler/recommendationCompilerRules.d.ts +0 -2
  56. package/dist/config/compiler/recommendationCompilerRules.js +0 -83
  57. package/dist/config/compiler/socialCompilerRules.d.ts +0 -2
  58. package/dist/config/compiler/socialCompilerRules.js +0 -21
  59. package/dist/config/compiler/unsubscribeCompilerRules.d.ts +0 -2
  60. package/dist/config/compiler/unsubscribeCompilerRules.js +0 -64
  61. package/dist/enums/html-validator.d.ts +0 -6
  62. package/dist/enums/html-validator.js +0 -7
  63. package/dist/enums/recommendation.d.ts +0 -54
  64. package/dist/enums/recommendation.js +0 -56
  65. package/dist/enums/unsubscribe.d.ts +0 -15
  66. package/dist/enums/unsubscribe.js +0 -17
  67. package/dist/mock/api/validator.d.ts +0 -2
  68. package/dist/stores/recommendation.d.ts +0 -10
  69. package/dist/stores/recommendation.js +0 -9
  70. package/dist/stores/unsubscribe.d.ts +0 -8
  71. package/dist/stores/unsubscribe.js +0 -9
@@ -3,10 +3,10 @@ import { useTranslations as m } from "../../../../composables/useTranslations.js
3
3
  import { useVersionHistoryApi as l } from "../../../../composables/useVersionHistoryApi.js";
4
4
  import { useVersionHistoryStore as a } from "../../../../stores/version-history.js";
5
5
  import { getTooltipOptions as n } from "../../../../utils/tooltipUtils.js";
6
- import { InChips as c, InSegments as u } from "@useinsider/design-system-vue";
7
- const T = /* @__PURE__ */ p({
6
+ import { InSegments as c } from "@useinsider/design-system-vue";
7
+ const h = /* @__PURE__ */ p({
8
8
  __name: "ViewOptions",
9
- setup(_) {
9
+ setup(u) {
10
10
  const t = a(), { switchToDesktopPreview: e, switchToMobilePreview: i } = l(), o = m(), r = [
11
11
  {
12
12
  text: "",
@@ -33,9 +33,9 @@ const T = /* @__PURE__ */ p({
33
33
  return;
34
34
  }
35
35
  e();
36
- }, InSegments: u, InChips: c };
36
+ }, InSegments: c };
37
37
  }
38
38
  });
39
39
  export {
40
- T as default
40
+ h as default
41
41
  };
@@ -1,20 +1,20 @@
1
- import d from "./AMPOnboarding.vue2.js";
2
- import g from "../../../_virtual/_plugin-vue2_normalizer.js";
3
- var l = function() {
4
- var t, r, e, i, a, s;
5
- var n = this, p = n._self._c, o = n._self._setupProxy;
6
- return o.isVisible ? p(o.InOnboard, { key: "guido__amp-onboard", staticClass: "w-21-s p-a z-11", class: (t = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : t.classes, attrs: { id: "guido__amp-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (r = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : r.bottom, "left-position": (e = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : e.left, "pages-config": o.onboardingStore.onboardings.ampOnboarding.config, "pointer-position": (i = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : i.position, "right-position": (a = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : a.right, "top-position": (s = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : s.top }, on: { backButtonClick: o.handleBack, close: function(u) {
7
- return o.onboardingStore.close("ampOnboarding");
8
- }, nextButtonClick: o.handleNext } }) : n._e();
9
- }, m = [], c = /* @__PURE__ */ g(
10
- d,
1
+ import l from "./AMPOnboarding.vue2.js";
2
+ import p from "../../../_virtual/_plugin-vue2_normalizer.js";
3
+ var u = function() {
4
+ var r, n, e, i, s, a;
5
+ var o = this, c = o._self._c, t = o._self._setupProxy;
6
+ return t.isVisible && t.status ? c(t.InOnboard, { key: "guido-amp-onboard", staticClass: "w-21-s p-a z-11", class: (r = t.currentCard) == null ? void 0 : r.classes, attrs: { id: "guido-amp-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (n = t.currentCard) == null ? void 0 : n.bottom, "left-position": (e = t.currentCard) == null ? void 0 : e.left, "pages-config": t.config, "pointer-position": (i = t.currentCard) == null ? void 0 : i.position, "right-position": (s = t.currentCard) == null ? void 0 : s.right, "top-position": (a = t.currentCard) == null ? void 0 : a.top }, on: { backButtonClick: t.handleBack, close: function(f) {
7
+ return t.store.close("ampOnboarding");
8
+ }, nextButtonClick: t.handleNext } }) : o._e();
9
+ }, d = [], _ = /* @__PURE__ */ p(
11
10
  l,
12
- m,
11
+ u,
12
+ d,
13
13
  !1,
14
14
  null,
15
15
  null
16
16
  );
17
- const f = c.exports;
17
+ const C = _.exports;
18
18
  export {
19
- f as default
19
+ C as default
20
20
  };
@@ -1,37 +1,39 @@
1
- import { defineComponent as p, computed as e, watch as m } from "vue";
2
- import { useTranslations as g } from "../../../composables/useTranslations.js";
3
- import { useOnboardingStore as u } from "../../../stores/onboarding.js";
4
- import { InOnboard as b } from "@useinsider/design-system-vue";
5
- const O = /* @__PURE__ */ p({
1
+ import { defineComponent as l, computed as o, watch as g } from "vue";
2
+ import { useTranslations as f } from "../../../composables/useTranslations.js";
3
+ import { useOnboardingStore as b } from "../../../stores/onboarding.js";
4
+ import { InOnboard as C } from "@useinsider/design-system-vue";
5
+ const h = /* @__PURE__ */ l({
6
6
  __name: "AMPOnboarding",
7
- setup(l) {
8
- const i = g(), o = u(), r = e(() => `${window.innerWidth / 2 - 110}px`), a = e(() => [
7
+ setup(x) {
8
+ const e = f(), n = b(), r = o(() => `${window.innerWidth / 2 - 110}px`), s = o(() => [
9
9
  {
10
10
  classes: "guido-amp-onboarding",
11
11
  left: r.value,
12
12
  top: "70px",
13
13
  position: "Top Center",
14
- title: i("email-editor.onboarding-amp-title"),
15
- description: i("email-editor.onboarding-amp-description"),
14
+ title: e("email-editor.onboarding-amp-title"),
15
+ description: e("email-editor.onboarding-amp-description"),
16
16
  imageSource: "",
17
17
  backButtonClick: () => {
18
18
  },
19
19
  nextButtonType: "text",
20
- nextButtonText: i("action-builder.ok"),
21
- nextButtonClick: () => void o.close("ampOnboarding")
20
+ nextButtonText: e("roi-statistics.onboard-modal-finish"),
21
+ nextButtonClick: () => void n.close("ampOnboarding")
22
22
  }
23
- ]), d = e(() => o.onboardings.ampOnboarding.config.length > 0 && o.onboardings.ampOnboarding.isActive), s = () => {
24
- var n, t;
25
- (t = (n = o.getAmpCurrentCard) == null ? void 0 : n.nextButtonClick) == null || t.call(n);
26
- }, c = () => {
27
- var n, t;
28
- (t = (n = o.getAmpCurrentCard) == null ? void 0 : n.backButtonClick) == null || t.call(n);
23
+ ]), d = o(() => n.ampOnboarding.config.length > 0), c = o(() => n.ampOnboarding.isActive), m = o(() => n.ampOnboarding.config), a = o(() => n.ampCurrentCard), p = () => {
24
+ var t, i;
25
+ (i = (t = a.value) == null ? void 0 : t.nextButtonClick) == null || i.call(t);
26
+ }, u = () => {
27
+ var t, i;
28
+ (i = (t = a.value) == null ? void 0 : t.backButtonClick) == null || i.call(t);
29
29
  };
30
- return m(() => o.onboardings.ampOnboarding.isActive, (n) => {
31
- n && o.setConfig("ampOnboarding", a.value);
32
- }, { immediate: !0 }), { __sfc: !0, trans: i, onboardingStore: o, centerLeft: r, onboardingCardsConfig: a, isVisible: d, handleNext: s, handleBack: c, InOnboard: b };
30
+ return g(c, (t) => {
31
+ t && setTimeout(() => {
32
+ n.setConfig("ampOnboarding", s.value);
33
+ }, 500);
34
+ }, { immediate: !0 }), { __sfc: !0, trans: e, store: n, centerLeft: r, onboardingCardsConfig: s, isVisible: d, status: c, config: m, currentCard: a, handleNext: p, handleBack: u, InOnboard: C };
33
35
  }
34
36
  });
35
37
  export {
36
- O as default
38
+ h as default
37
39
  };
@@ -1,21 +1,21 @@
1
1
  import d from "./GenericOnboarding.vue2.js";
2
2
  /* empty css */
3
- import g from "../../../_virtual/_plugin-vue2_normalizer.js";
4
- var l = function() {
5
- var r, n, t, i, a, s;
6
- var o = this, c = o._self._c, e = o._self._setupProxy;
7
- return e.isVisible ? c(e.InOnboard, { key: "guido__editor-onboard", staticClass: "w-21-s p-a z-11", class: (r = e.onboardingStore.getGenericCurrentCard) == null ? void 0 : r.classes, attrs: { id: "guido__editor-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (n = e.onboardingStore.getGenericCurrentCard) == null ? void 0 : n.bottom, "left-position": (t = e.onboardingStore.getGenericCurrentCard) == null ? void 0 : t.left, "pages-config": e.onboardingStore.onboardings.genericOnboarding.config, "pointer-position": (i = e.onboardingStore.getGenericCurrentCard) == null ? void 0 : i.position, "right-position": (a = e.onboardingStore.getGenericCurrentCard) == null ? void 0 : a.right, "top-position": (s = e.onboardingStore.getGenericCurrentCard) == null ? void 0 : s.top }, on: { backButtonClick: e.handleBack, close: function(u) {
8
- return e.onboardingStore.close("genericOnboarding");
9
- }, nextButtonClick: e.handleNext } }) : o._e();
10
- }, p = [], _ = /* @__PURE__ */ g(
3
+ import l from "../../../_virtual/_plugin-vue2_normalizer.js";
4
+ var p = function() {
5
+ var r, e, n, i, s, a;
6
+ var o = this, c = o._self._c, t = o._self._setupProxy;
7
+ return t.isVisible && t.status ? c(t.InOnboard, { key: "guido-editor-onboard", staticClass: "w-21-s p-a z-11", class: (r = t.currentCard) == null ? void 0 : r.classes, attrs: { id: "guido-editor-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (e = t.currentCard) == null ? void 0 : e.bottom, "left-position": (n = t.currentCard) == null ? void 0 : n.left, "pages-config": t.config, "pointer-position": (i = t.currentCard) == null ? void 0 : i.position, "right-position": (s = t.currentCard) == null ? void 0 : s.right, "top-position": (a = t.currentCard) == null ? void 0 : a.top }, on: { backButtonClick: t.handleBack, close: function(m) {
8
+ return t.onboardingStore.close("genericOnboarding");
9
+ }, nextButtonClick: t.handleNext } }) : o._e();
10
+ }, u = [], _ = /* @__PURE__ */ l(
11
11
  d,
12
- l,
13
12
  p,
13
+ u,
14
14
  !1,
15
15
  null,
16
- "2473c29f"
16
+ "037dda0b"
17
17
  );
18
- const S = _.exports;
18
+ const v = _.exports;
19
19
  export {
20
- S as default
20
+ v as default
21
21
  };
@@ -1,19 +1,19 @@
1
- import { defineComponent as l, computed as i, watch as b } from "vue";
2
- import { useTranslations as x } from "../../../composables/useTranslations.js";
3
- import { SERVICE_HOVER_SELECTORS as m } from "../../../enums/onboarding.js";
4
- import { useOnboardingStore as k } from "../../../stores/onboarding.js";
5
- import { InOnboard as f } from "@useinsider/design-system-vue";
6
- const S = /* @__PURE__ */ l({
1
+ import { defineComponent as m, computed as i, watch as f } from "vue";
2
+ import { useTranslations as k } from "../../../composables/useTranslations.js";
3
+ import { SERVICE_HOVER_SELECTORS as B } from "../../../enums/onboarding.js";
4
+ import { useOnboardingStore as C } from "../../../stores/onboarding.js";
5
+ import { InOnboard as T } from "@useinsider/design-system-vue";
6
+ const y = /* @__PURE__ */ m({
7
7
  __name: "GenericOnboarding",
8
- setup(B) {
9
- const e = x(), o = k(), r = i(() => `${window.innerWidth / 2 - 160}px`), c = () => {
8
+ setup(O) {
9
+ const e = k(), o = C(), s = i(() => `${window.innerWidth / 2 - 160}px`), c = () => {
10
10
  const t = document.querySelector("ui-editor");
11
- t != null && t.shadowRoot && m.forEach((n) => {
12
- var d;
13
- const a = (d = t.shadowRoot) == null ? void 0 : d.querySelector(n);
14
- a && a.classList.add("hover");
11
+ t != null && t.shadowRoot && B.forEach((n) => {
12
+ var u;
13
+ const p = (u = t.shadowRoot) == null ? void 0 : u.querySelector(n);
14
+ p && p.classList.add("hover");
15
15
  });
16
- }, s = i(() => [
16
+ }, a = i(() => [
17
17
  {
18
18
  classes: "guido-onboarding-blocks",
19
19
  left: "90px",
@@ -33,7 +33,7 @@ const S = /* @__PURE__ */ l({
33
33
  {
34
34
  classes: "guido-onboarding-stripes",
35
35
  right: "450px",
36
- bottom: "-38px",
36
+ bottom: "50px",
37
37
  position: "Right Top",
38
38
  title: e("email-editor.onboarding-stripes-title"),
39
39
  description: e("email-editor.onboarding-stripes-description"),
@@ -51,7 +51,7 @@ const S = /* @__PURE__ */ l({
51
51
  },
52
52
  {
53
53
  classes: "guido-onboarding-preview",
54
- left: r.value,
54
+ left: s.value,
55
55
  top: "90px",
56
56
  position: "Top Center",
57
57
  title: e("email-editor.onboarding-preview-title"),
@@ -61,23 +61,25 @@ const S = /* @__PURE__ */ l({
61
61
  backButtonText: e("ds-steps.back"),
62
62
  backButtonClick: () => o.previous("genericOnboarding"),
63
63
  nextButtonType: "text",
64
- nextButtonText: e("action-builder.ok"),
64
+ nextButtonText: e("roi-statistics.onboard-modal-finish"),
65
65
  nextButtonClick: () => {
66
66
  o.close("genericOnboarding");
67
67
  }
68
68
  }
69
- ]), g = i(() => o.onboardings.genericOnboarding.config.length > 0 && o.onboardings.genericOnboarding.isActive), p = () => {
69
+ ]), g = i(() => o.genericOnboarding.config.length > 0), d = i(() => o.genericOnboarding.isActive), l = i(() => o.genericOnboarding.config), r = i(() => o.genericCurrentCard), b = () => {
70
70
  var t, n;
71
- (n = (t = o.getGenericCurrentCard) == null ? void 0 : t.nextButtonClick) == null || n.call(t);
72
- }, u = () => {
71
+ (n = (t = r.value) == null ? void 0 : t.nextButtonClick) == null || n.call(t);
72
+ }, x = () => {
73
73
  var t, n;
74
- (n = (t = o.getGenericCurrentCard) == null ? void 0 : t.backButtonClick) == null || n.call(t);
74
+ (n = (t = r.value) == null ? void 0 : t.backButtonClick) == null || n.call(t);
75
75
  };
76
- return b(() => o.onboardings.genericOnboarding.isActive, (t) => {
77
- t && o.setConfig("genericOnboarding", s.value);
78
- }, { immediate: !0 }), { __sfc: !0, trans: e, onboardingStore: o, centerLeft: r, addHoverToServiceElements: c, onboardingCardsConfig: s, isVisible: g, handleNext: p, handleBack: u, InOnboard: f };
76
+ return f(d, (t) => {
77
+ t && setTimeout(() => {
78
+ o.setConfig("genericOnboarding", a.value);
79
+ }, 500);
80
+ }, { immediate: !0 }), { __sfc: !0, trans: e, onboardingStore: o, centerLeft: s, addHoverToServiceElements: c, onboardingCardsConfig: a, isVisible: g, status: d, config: l, currentCard: r, handleNext: b, handleBack: x, InOnboard: T };
79
81
  }
80
82
  });
81
83
  export {
82
- S as default
84
+ y as default
83
85
  };
@@ -2,7 +2,7 @@ import s from "./NewVersionPopup.vue2.js";
2
2
  import n from "../../../_virtual/_plugin-vue2_normalizer.js";
3
3
  var r = function() {
4
4
  var e = this, t = e._self._c, o = e._self._setupProxy;
5
- return o.isVisible ? t(o.WpModal, { attrs: { id: "guido__new-version-popup", "close-on-outside-click": !1, "footer-button-options": o.footerButtonOptions, title: o.trans("email-editor.onboarding-title") }, on: { close: o.handleClose, "primary-action": o.handleDiscoverNow, "secondary-action": o.handleRemindLater } }, [t("div", { staticClass: "d-f f-d-c" }, [t("img", { staticClass: "w-1 h-1 d-b p-e-n mb-5", attrs: { src: o.onboardingImageSvg } }), t("p", { staticClass: "f-s-2 f-w-400", domProps: { innerHTML: e._s(o.trans("email-editor.onboarding-description")) } })])]) : e._e();
5
+ return o.isVisible ? t(o.WpModal, { attrs: { id: "new-version-popup", "close-on-outside-click": !1, "footer-button-options": o.footerButtonOptions, title: o.trans("email-editor.onboarding-title") }, on: { close: o.handleClose, "primary-action": o.handleDiscoverNow, "secondary-action": o.handleRemindLater } }, [t("div", { staticClass: "d-f f-d-c" }, [t("img", { staticClass: "w-1 h-1 d-b p-e-n mb-5", attrs: { src: o.onboardingImageSvg } }), t("p", { staticClass: "f-s-2 f-w-400", domProps: { innerHTML: e._s(o.trans("email-editor.onboarding-description")) } })])]) : e._e();
6
6
  }, i = [], a = /* @__PURE__ */ n(
7
7
  s,
8
8
  r,
@@ -1,43 +1,27 @@
1
- import { defineComponent as g, computed as e, onMounted as b, watch as t } from "vue";
2
- import { usePartner as O } from "../../../composables/usePartner.js";
1
+ import { defineComponent as c, computed as r, onMounted as d } from "vue";
2
+ import { usePartner as f } from "../../../composables/usePartner.js";
3
3
  import { useEditorStore as u } from "../../../stores/editor.js";
4
- import { useOnboardingStore as v } from "../../../stores/onboarding.js";
5
- import { usePreviewStore as l } from "../../../stores/preview.js";
6
- import y from "./AMPOnboarding.vue.js";
7
- import S from "./GenericOnboarding.vue.js";
8
- import w from "./NewVersionPopup.vue.js";
9
- import P from "./TextBlockOnboarding.vue.js";
10
- import h from "./VersionHistoryOnboarding.vue.js";
11
- const E = /* @__PURE__ */ g({
4
+ import { useOnboardingStore as g } from "../../../stores/onboarding.js";
5
+ import b from "./AMPOnboarding.vue.js";
6
+ import l from "./GenericOnboarding.vue.js";
7
+ import O from "./NewVersionPopup.vue.js";
8
+ import S from "./TextBlockOnboarding.vue.js";
9
+ import y from "./VersionHistoryOnboarding.vue.js";
10
+ const k = /* @__PURE__ */ c({
12
11
  __name: "OnboardingWrapper",
13
12
  setup(_) {
14
- const o = v(), r = u(), s = l(), { isTestPartner: a } = O(), p = e(() => r.isStripoInitialized), d = e(() => a()), m = [
15
- { type: "newVersionPopup", component: w },
16
- { type: "genericOnboarding", component: S },
17
- { type: "textBlockOnboarding", component: P },
18
- { type: "versionHistoryOnboarding", component: h },
19
- { type: "ampOnboarding", component: y }
20
- ], c = (n) => d.value || !p.value ? !1 : n === "newVersionPopup" ? o.shouldShowOnboarding(n) : o.isActive(n), f = e(() => m.filter((n) => c(n.type)));
21
- return b(async () => {
22
- await o.fetchUserModalState();
23
- }), t(
24
- () => r.isVersionHistoryOpen,
25
- (n, i) => {
26
- n && !i && o.shouldShowOnboarding("versionHistoryOnboarding") && o.start("versionHistoryOnboarding"), !n && i && o.isActive("versionHistoryOnboarding") && o.close("versionHistoryOnboarding");
27
- }
28
- ), t(
29
- () => s.emailFormat,
30
- (n, i) => {
31
- i !== "AMP" && n === "AMP" && o.shouldShowOnboarding("ampOnboarding") && o.start("ampOnboarding");
32
- }
33
- ), t(
34
- () => r.isPreviewModeOpen,
35
- (n) => {
36
- !n && o.isActive("ampOnboarding") && o.close("ampOnboarding");
37
- }
38
- ), { __sfc: !0, onboardingStore: o, editorStore: r, previewStore: s, isTestPartner: a, isStripoReady: p, isTestPartnerActive: d, onboardingConfigs: m, shouldShow: c, visibleOnboardings: f };
13
+ const n = g(), e = u(), { isTestPartner: t } = f(), i = r(() => e.isStripoInitialized), s = r(() => t()), p = [
14
+ { type: "newVersionPopup", component: O },
15
+ { type: "genericOnboarding", component: l },
16
+ { type: "textBlockOnboarding", component: S },
17
+ { type: "versionHistoryOnboarding", component: y },
18
+ { type: "ampOnboarding", component: b }
19
+ ], a = (o) => s.value || !i.value ? !1 : o === "newVersionPopup" ? n.shouldShowOnboarding(o) : n.isActive(o), m = r(() => p.filter((o) => a(o.type)));
20
+ return d(async () => {
21
+ await n.fetchUserModalState();
22
+ }), { __sfc: !0, onboardingStore: n, editorStore: e, isTestPartner: t, isStripoReady: i, isTestPartnerActive: s, onboardingConfigs: p, shouldShow: a, visibleOnboardings: m };
39
23
  }
40
24
  });
41
25
  export {
42
- E as default
26
+ k as default
43
27
  };
@@ -1,21 +1,21 @@
1
- import c from "./TextBlockOnboarding.vue2.js";
1
+ import l from "./TextBlockOnboarding.vue2.js";
2
2
  /* empty css */
3
- import d from "../../../_virtual/_plugin-vue2_normalizer.js";
4
- var g = function() {
5
- var e, n, r, i, a, s;
6
- var t = this, l = t._self._c, o = t._self._setupProxy;
7
- return o.isVisible ? l(o.InOnboard, { key: "guido__text-block-onboard", staticClass: "w-21-s p-a z-11", class: (e = o.onboardingStore.getTextBlockCurrentCard) == null ? void 0 : e.classes, attrs: { id: "guido__text-block-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (n = o.onboardingStore.getTextBlockCurrentCard) == null ? void 0 : n.bottom, "left-position": (r = o.onboardingStore.getTextBlockCurrentCard) == null ? void 0 : r.left, "pages-config": o.onboardingStore.onboardings.textBlockOnboarding.config, "pointer-position": (i = o.onboardingStore.getTextBlockCurrentCard) == null ? void 0 : i.position, "right-position": (a = o.onboardingStore.getTextBlockCurrentCard) == null ? void 0 : a.right, "top-position": (s = o.onboardingStore.getTextBlockCurrentCard) == null ? void 0 : s.top }, on: { backButtonClick: o.handleBack, close: function(u) {
8
- return o.onboardingStore.close("textBlockOnboarding");
9
- }, nextButtonClick: o.handleNext } }) : t._e();
10
- }, b = [], p = /* @__PURE__ */ d(
11
- c,
12
- g,
13
- b,
3
+ import p from "../../../_virtual/_plugin-vue2_normalizer.js";
4
+ var d = function() {
5
+ var e, r, n, i, s, a;
6
+ var o = this, c = o._self._c, t = o._self._setupProxy;
7
+ return t.isVisible && t.status ? c(t.InOnboard, { key: "guido-text-block-onboard", staticClass: "w-21-s p-a z-11", class: (e = t.currentCard) == null ? void 0 : e.classes, attrs: { id: "guido-text-block-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (r = t.currentCard) == null ? void 0 : r.bottom, "left-position": (n = t.currentCard) == null ? void 0 : n.left, "pages-config": t.config, "pointer-position": (i = t.currentCard) == null ? void 0 : i.position, "right-position": (s = t.currentCard) == null ? void 0 : s.right, "top-position": (a = t.currentCard) == null ? void 0 : a.top }, on: { backButtonClick: t.handleBack, close: function(m) {
8
+ return t.store.close("textBlockOnboarding");
9
+ }, nextButtonClick: t.handleNext } }) : o._e();
10
+ }, u = [], _ = /* @__PURE__ */ p(
11
+ l,
12
+ d,
13
+ u,
14
14
  !1,
15
15
  null,
16
- "a77a2dd4"
16
+ "ff363cd1"
17
17
  );
18
- const f = p.exports;
18
+ const k = _.exports;
19
19
  export {
20
- f as default
20
+ k as default
21
21
  };
@@ -1,11 +1,11 @@
1
- import { defineComponent as s, computed as r, watch as l } from "vue";
2
- import { useTranslations as x } from "../../../composables/useTranslations.js";
3
- import { useOnboardingStore as g } from "../../../stores/onboarding.js";
4
- import { InOnboard as b } from "@useinsider/design-system-vue";
5
- const C = /* @__PURE__ */ s({
1
+ import { defineComponent as u, computed as i, watch as g } from "vue";
2
+ import { useTranslations as b } from "../../../composables/useTranslations.js";
3
+ import { useOnboardingStore as p } from "../../../stores/onboarding.js";
4
+ import { InOnboard as k } from "@useinsider/design-system-vue";
5
+ const T = /* @__PURE__ */ u({
6
6
  __name: "TextBlockOnboarding",
7
- setup(p) {
8
- const n = x(), o = g(), i = r(() => [
7
+ setup(m) {
8
+ const n = b(), o = p(), r = i(() => [
9
9
  {
10
10
  classes: "guido-text-block-onboarding-settings",
11
11
  right: "450px",
@@ -36,27 +36,29 @@ const C = /* @__PURE__ */ s({
36
36
  o.previous("textBlockOnboarding");
37
37
  },
38
38
  nextButtonType: "text",
39
- nextButtonText: n("action-builder.ok"),
39
+ nextButtonText: n("roi-statistics.onboard-modal-finish"),
40
40
  nextButtonClick: () => {
41
41
  o.close("textBlockOnboarding");
42
42
  }
43
43
  }
44
- ]), c = r(() => o.onboardings.textBlockOnboarding.config.length > 0 && o.onboardings.textBlockOnboarding.isActive), a = () => {
44
+ ]), a = i(() => o.textBlockOnboarding.config.length), s = i(() => o.textBlockOnboarding.isActive), d = i(() => o.textBlockOnboarding.config), c = i(() => o.textBlockCurrentCard), l = () => {
45
45
  var t, e;
46
- (e = (t = o.getTextBlockCurrentCard) == null ? void 0 : t.nextButtonClick) == null || e.call(t);
47
- }, d = () => {
46
+ (e = (t = c.value) == null ? void 0 : t.nextButtonClick) == null || e.call(t);
47
+ }, x = () => {
48
48
  var t, e;
49
- (e = (t = o.getTextBlockCurrentCard) == null ? void 0 : t.backButtonClick) == null || e.call(t);
49
+ (e = (t = c.value) == null ? void 0 : t.backButtonClick) == null || e.call(t);
50
50
  };
51
- return l(
51
+ return g(
52
52
  () => o.isActive("textBlockOnboarding"),
53
53
  (t) => {
54
- t && o.setConfig("textBlockOnboarding", i.value);
54
+ t && setTimeout(() => {
55
+ o.setConfig("textBlockOnboarding", r.value);
56
+ }, 500);
55
57
  },
56
58
  { immediate: !0 }
57
- ), { __sfc: !0, trans: n, onboardingStore: o, onboardingCardsConfig: i, isVisible: c, handleNext: a, handleBack: d, InOnboard: b };
59
+ ), { __sfc: !0, trans: n, store: o, onboardingCardsConfig: r, isVisible: a, status: s, config: d, currentCard: c, handleNext: l, handleBack: x, InOnboard: k };
58
60
  }
59
61
  });
60
62
  export {
61
- C as default
63
+ T as default
62
64
  };
@@ -1,20 +1,20 @@
1
- import g from "./VersionHistoryOnboarding.vue2.js";
2
- import l from "../../../_virtual/_plugin-vue2_normalizer.js";
3
- var c = function() {
4
- var n, t, i, e, s, a;
5
- var r = this, d = r._self._c, o = r._self._setupProxy;
6
- return o.isVisible ? d(o.InOnboard, { key: "guido__version-history-onboard", staticClass: "w-21-s p-a z-11", class: (n = o.onboardingStore.getVersionHistoryCurrentCard) == null ? void 0 : n.classes, attrs: { id: "guido__version-history-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (t = o.onboardingStore.getVersionHistoryCurrentCard) == null ? void 0 : t.bottom, "left-position": (i = o.onboardingStore.getVersionHistoryCurrentCard) == null ? void 0 : i.left, "pages-config": o.onboardingStore.onboardings.versionHistoryOnboarding.config, "pointer-position": (e = o.onboardingStore.getVersionHistoryCurrentCard) == null ? void 0 : e.position, "right-position": (s = o.onboardingStore.getVersionHistoryCurrentCard) == null ? void 0 : s.right, "top-position": (a = o.onboardingStore.getVersionHistoryCurrentCard) == null ? void 0 : a.top }, on: { backButtonClick: o.handleBack, close: function(b) {
7
- return o.onboardingStore.close("versionHistoryOnboarding");
8
- }, nextButtonClick: o.handleNext } }) : r._e();
9
- }, _ = [], p = /* @__PURE__ */ l(
10
- g,
11
- c,
12
- _,
1
+ import l from "./VersionHistoryOnboarding.vue2.js";
2
+ import u from "../../../_virtual/_plugin-vue2_normalizer.js";
3
+ var p = function() {
4
+ var r, n, e, i, s, a;
5
+ var o = this, c = o._self._c, t = o._self._setupProxy;
6
+ return t.isVisible && t.status ? c(t.InOnboard, { key: "guido-version-history-onboard", staticClass: "w-21-s p-a z-11", class: (r = t.currentCard) == null ? void 0 : r.classes, attrs: { id: "guido-version-history-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (n = t.currentCard) == null ? void 0 : n.bottom, "left-position": (e = t.currentCard) == null ? void 0 : e.left, "pages-config": t.config, "pointer-position": (i = t.currentCard) == null ? void 0 : i.position, "right-position": (s = t.currentCard) == null ? void 0 : s.right, "top-position": (a = t.currentCard) == null ? void 0 : a.top }, on: { backButtonClick: t.handleBack, close: function(m) {
7
+ return t.store.close("versionHistoryOnboarding");
8
+ }, nextButtonClick: t.handleNext } }) : o._e();
9
+ }, d = [], _ = /* @__PURE__ */ u(
10
+ l,
11
+ p,
12
+ d,
13
13
  !1,
14
14
  null,
15
15
  null
16
16
  );
17
- const m = p.exports;
17
+ const v = _.exports;
18
18
  export {
19
- m as default
19
+ v as default
20
20
  };
@@ -1,37 +1,39 @@
1
- import { defineComponent as c, computed as e, watch as g } from "vue";
2
- import { useTranslations as b } from "../../../composables/useTranslations.js";
3
- import { useOnboardingStore as u } from "../../../stores/onboarding.js";
4
- import { InOnboard as l } from "@useinsider/design-system-vue";
5
- const C = /* @__PURE__ */ c({
1
+ import { defineComponent as g, computed as i, watch as m } from "vue";
2
+ import { useTranslations as p } from "../../../composables/useTranslations.js";
3
+ import { useOnboardingStore as f } from "../../../stores/onboarding.js";
4
+ import { InOnboard as b } from "@useinsider/design-system-vue";
5
+ const O = /* @__PURE__ */ g({
6
6
  __name: "VersionHistoryOnboarding",
7
- setup(p) {
8
- const t = b(), n = u(), r = e(() => [
7
+ setup(v) {
8
+ const r = p(), t = f(), s = i(() => [
9
9
  {
10
10
  classes: "guido-version-history-onboarding",
11
11
  left: "409px",
12
12
  top: "192px",
13
13
  position: "Left Top",
14
- title: t("email-editor.onboarding-version-history-title"),
15
- description: t("email-editor.onboarding-version-history-description"),
14
+ title: r("email-editor.onboarding-version-history-title"),
15
+ description: r("email-editor.onboarding-version-history-description"),
16
16
  imageSource: "",
17
17
  backButtonClick: () => {
18
18
  },
19
19
  nextButtonType: "text",
20
- nextButtonText: t("action-builder.ok"),
21
- nextButtonClick: () => void n.close("versionHistoryOnboarding")
20
+ nextButtonText: r("roi-statistics.onboard-modal-finish"),
21
+ nextButtonClick: () => void t.close("versionHistoryOnboarding")
22
22
  }
23
- ]), s = e(() => n.onboardings.versionHistoryOnboarding.config.length > 0 && n.onboardings.versionHistoryOnboarding.isActive), a = () => {
24
- var o, i;
25
- (i = (o = n.getVersionHistoryCurrentCard) == null ? void 0 : o.nextButtonClick) == null || i.call(o);
26
- }, d = () => {
27
- var o, i;
28
- (i = (o = n.getVersionHistoryCurrentCard) == null ? void 0 : o.backButtonClick) == null || i.call(o);
23
+ ]), c = i(() => t.versionHistoryOnboarding.config.length > 0), a = i(() => t.versionHistoryOnboarding.isActive), d = i(() => t.versionHistoryOnboarding.config), e = i(() => t.versionHistoryCurrentCard), u = () => {
24
+ var o, n;
25
+ (n = (o = e.value) == null ? void 0 : o.nextButtonClick) == null || n.call(o);
26
+ }, l = () => {
27
+ var o, n;
28
+ (n = (o = e.value) == null ? void 0 : o.backButtonClick) == null || n.call(o);
29
29
  };
30
- return g(() => n.onboardings.versionHistoryOnboarding.isActive, (o) => {
31
- o && n.setConfig("versionHistoryOnboarding", r.value);
32
- }, { immediate: !0 }), { __sfc: !0, trans: t, onboardingStore: n, onboardingCardsConfig: r, isVisible: s, handleNext: a, handleBack: d, InOnboard: l };
30
+ return m(a, (o) => {
31
+ o && setTimeout(() => {
32
+ t.setConfig("versionHistoryOnboarding", s.value);
33
+ }, 500);
34
+ }, { immediate: !0 }), { __sfc: !0, trans: r, store: t, onboardingCardsConfig: s, isVisible: c, status: a, config: d, currentCard: e, handleNext: u, handleBack: l, InOnboard: b };
33
35
  }
34
36
  });
35
37
  export {
36
- C as default
38
+ O as default
37
39
  };
@@ -1,25 +1,17 @@
1
- import { defaultHtmlCompilerRules as t } from "../config/compiler/htmlCompilerRules.js";
2
- import { outlookCompilerRules as p } from "../config/compiler/outlookCompilerRules.js";
3
- import { recommendationCompilerRules as s } from "../config/compiler/recommendationCompilerRules.js";
4
- import { socialCompilerRules as u } from "../config/compiler/socialCompilerRules.js";
5
- import { unsubscribeCompilerRules as n } from "../config/compiler/unsubscribeCompilerRules.js";
6
- import { createHtmlCompiler as c } from "../utils/htmlCompiler.js";
7
- import { useConfig as f } from "./useConfig.js";
8
- const h = () => {
9
- const { config: e } = f(), l = e.htmlCompilerRules || [], m = [
10
- ...!!e.ignoreDefaultHtmlCompilerRules ? [] : t,
11
- ...s,
12
- ...n,
13
- ...p,
14
- ...u,
1
+ import { defaultHtmlCompilerRules as r } from "../config/compiler/htmlCompilerRules.js";
2
+ import { createHtmlCompiler as p } from "../utils/htmlCompiler.js";
3
+ import { useConfig as s } from "./useConfig.js";
4
+ const R = () => {
5
+ const { config: e } = s(), l = e.htmlCompilerRules || [], t = [
6
+ ...!!e.ignoreDefaultHtmlCompilerRules ? [] : r,
15
7
  ...l.map((o, i) => ({
16
8
  ...o,
17
9
  priority: o.priority + 1e3 + i
18
10
  // Ensure additional rules run after default rules
19
11
  }))
20
- ], r = c(m);
21
- return { compileHtml: (o) => r.compile(o) };
12
+ ], m = p(t);
13
+ return { compileHtml: (o) => m.compile(o) };
22
14
  };
23
15
  export {
24
- h as useHtmlCompiler
16
+ R as useHtmlCompiler
25
17
  };
@@ -1,26 +1,27 @@
1
- import { useEditorStore as n } from "../stores/editor.js";
1
+ import { useEditorStore as p } from "../stores/editor.js";
2
+ import { useOnboardingStore as m } from "../stores/onboarding.js";
2
3
  import { usePreviewStore as l } from "../stores/preview.js";
3
- import { useActionsApi as m } from "./useActionsApi.js";
4
- import { useCodeEditorApi as p } from "./useCodeEditorApi.js";
4
+ import { useActionsApi as c } from "./useActionsApi.js";
5
+ import { useCodeEditorApi as u } from "./useCodeEditorApi.js";
5
6
  const E = () => {
6
- const o = n(), e = l(), { closeCodeEditor: a } = p(), { getPreviewData: s } = m(), r = () => {
7
- o.isPreviewModeOpen = !1, e.$reset();
7
+ const e = p(), o = l(), t = m(), { closeCodeEditor: a } = u(), { getPreviewData: s } = c(), i = () => {
8
+ t.isActive("ampOnboarding") && t.close("ampOnboarding"), e.isPreviewModeOpen = !1, o.$reset();
8
9
  };
9
10
  return {
10
- closePreviewMode: r,
11
+ closePreviewMode: i,
11
12
  openPreviewMode: () => {
12
- o.isCodeEditorOpen && a(), o.isPreviewModeOpen = !0;
13
+ e.isCodeEditorOpen && a(), e.isPreviewModeOpen = !0;
13
14
  },
14
15
  loadPreviewData: async () => {
15
- if (!(o.loadingStatus || e.isLoaded)) {
16
- o.loadingStatus = !0;
16
+ if (!(e.loadingStatus || o.isLoaded)) {
17
+ e.loadingStatus = !0;
17
18
  try {
18
- const { html: t, ampHtml: i, ampErrors: d } = await s();
19
- e.templateHtml = t || "", e.ampHtml = i || "", e.ampErrors = d || [], e.setEmailFormat(i ? "AMP" : "html"), e.isLoaded = !0;
20
- } catch (t) {
21
- console.error("Failed to load preview data:", t), r();
19
+ const { html: r, ampHtml: d, ampErrors: n } = await s();
20
+ o.templateHtml = r || "", o.updateAMPData({ ampHtml: d || "", ampErrors: n || [] }), o.isLoaded = !0;
21
+ } catch (r) {
22
+ console.error("Failed to load preview data:", r), i();
22
23
  } finally {
23
- o.loadingStatus = !1;
24
+ e.loadingStatus = !1;
24
25
  }
25
26
  }
26
27
  }