@useinsider/guido 1.0.2-beta.198f9ce → 1.0.2-beta.1c23922

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.
@@ -3,14 +3,14 @@ import a from "./Guido.vue2.js";
3
3
  import i from "../_virtual/_plugin-vue2_normalizer.js";
4
4
  var t = function() {
5
5
  var o = this, r = o._self._c, e = o._self._setupProxy;
6
- return r("div", { staticClass: "guido-editor__wrapper", class: { "guido-editor__no-header": e.noHeader } }, [r(e.HeaderWrapper), e.editorStore.isPreviewModeOpen ? r(e.PreviewContainer) : o._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isLoaded, expression: "!previewStore.isLoaded" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": e.noHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.SaveAsTemplateDrawer), r(e.OnboardingWrapper), r(e.LoadingWrapper)], 1);
6
+ return r("div", { staticClass: "guido-editor__wrapper", class: { "guido-editor__no-header": e.noHeader } }, [r(e.HeaderWrapper), e.editorStore.isPreviewModeOpen ? r(e.PreviewContainer) : o._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isLoaded, expression: "!previewStore.isLoaded" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": e.noHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.SaveAsTemplateDrawer), e.isTestPartner() ? o._e() : r(e.OnboardingWrapper), r(e.LoadingWrapper)], 1);
7
7
  }, s = [], d = /* @__PURE__ */ i(
8
8
  a,
9
9
  t,
10
10
  s,
11
11
  !1,
12
12
  null,
13
- "5c6ce65b"
13
+ "39783038"
14
14
  );
15
15
  const v = d.exports;
16
16
  export {
@@ -1,18 +1,18 @@
1
- import { defineComponent as k, defineAsyncComponent as b, computed as E, watch as A, onMounted as W, onUnmounted as H } from "vue";
2
- import { provideGuidoActions as N } from "../composables/useGuidoActions.js";
3
- import { usePartner as U } from "../composables/usePartner.js";
4
- import { useStripo as x } from "../composables/useStripo.js";
5
- import { DefaultUsername as M, DefaultMessageType as z, DefaultGuidoConfig as B } from "../enums/defaults.js";
6
- import F from "./organisms/base/Toaster.vue.js";
7
- import K from "./organisms/header/HeaderWrapper.vue.js";
8
- import O from "./organisms/LoadingWrapper.vue.js";
9
- import R from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
10
- import { useStripoApi as j } from "../services/stripoApi.js";
11
- import { useDynamicContentStore as q } from "../stores/dynamic-content.js";
12
- import { useEditorStore as J } from "../stores/editor.js";
13
- import { usePreviewStore as Q } from "../stores/preview.js";
14
- import V from "../node_modules/lodash-es/merge.js";
15
- const de = /* @__PURE__ */ k({
1
+ import { defineComponent as A, defineAsyncComponent as b, computed as T, watch as W, onMounted as H, onUnmounted as N } from "vue";
2
+ import { provideGuidoActions as U } from "../composables/useGuidoActions.js";
3
+ import { usePartner as x } from "../composables/usePartner.js";
4
+ import { useStripo as M } from "../composables/useStripo.js";
5
+ import { DefaultUsername as z, DefaultMessageType as B, DefaultGuidoConfig as F } from "../enums/defaults.js";
6
+ import K from "./organisms/base/Toaster.vue.js";
7
+ import O from "./organisms/header/HeaderWrapper.vue.js";
8
+ import R from "./organisms/LoadingWrapper.vue.js";
9
+ import j from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
10
+ import { useStripoApi as q } from "../services/stripoApi.js";
11
+ import { useDynamicContentStore as J } from "../stores/dynamic-content.js";
12
+ import { useEditorStore as Q } from "../stores/editor.js";
13
+ import { usePreviewStore as V } from "../stores/preview.js";
14
+ import X from "../node_modules/lodash-es/merge.js";
15
+ const le = /* @__PURE__ */ A({
16
16
  __name: "Guido",
17
17
  props: {
18
18
  templateId: null,
@@ -27,12 +27,12 @@ const de = /* @__PURE__ */ k({
27
27
  guidoConfig: null
28
28
  },
29
29
  emits: ["dynamic-content:open", "back", "save:start", "save:complete", "on-change"],
30
- setup(T, { expose: G, emit: o }) {
31
- const t = T, I = b(
30
+ setup(E, { expose: G, emit: t }) {
31
+ const o = E, P = b(
32
32
  () => import("./organisms/email-preview/PreviewContainer.vue.js")
33
- ), L = b(
33
+ ), I = b(
34
34
  () => import("./organisms/onboarding/OnboardingWrapper.vue.js")
35
- ), n = q(), c = J(), P = Q(), r = E(() => c.hasChanges), a = t.preselectedDynamicContentList || [], { getPartnerName: m, getProductType: d } = U(), {
35
+ ), n = J(), c = Q(), L = V(), r = T(() => c.hasChanges), a = o.preselectedDynamicContentList || [], { getPartnerName: m, getProductType: d, isTestPartner: _ } = x(), {
36
36
  templateId: l,
37
37
  userId: p,
38
38
  guidoConfig: u,
@@ -40,34 +40,34 @@ const de = /* @__PURE__ */ k({
40
40
  css: f = "",
41
41
  partnerName: i = m(),
42
42
  productType: s = d(),
43
- messageType: y = z,
44
- username: C = M
45
- } = t;
46
- window.GuidoConfig = V(B, u), window.GuidoConfig.partner = {
43
+ messageType: y = B,
44
+ username: C = z
45
+ } = o;
46
+ window.GuidoConfig = X(F, u), window.GuidoConfig.partner = {
47
47
  partnerName: i,
48
48
  productType: s,
49
49
  messageType: y
50
50
  };
51
- const { initPlugin: v } = x({
51
+ const { initPlugin: v } = M({
52
52
  emailId: l,
53
53
  userId: p,
54
54
  username: C,
55
55
  partnerName: i,
56
56
  productType: s,
57
57
  preselectedDynamicContentList: a
58
- }), { getDefaultTemplate: w } = j(), _ = E(() => {
58
+ }), { getDefaultTemplate: w } = q(), k = T(() => {
59
59
  var e;
60
60
  return !((e = window.GuidoConfig) != null && e.useHeader);
61
61
  });
62
- N({
62
+ U({
63
63
  onBack: () => {
64
- console.debug("guido:back"), o("back");
64
+ console.debug("guido:back"), t("back");
65
65
  },
66
66
  onSaveStart: () => {
67
- console.debug("guido:save:start"), o("save:start");
67
+ console.debug("guido:save:start"), t("save:start");
68
68
  },
69
69
  onSaveComplete: (e) => {
70
- console.debug("guido:save:complete", e), o("save:complete", e);
70
+ console.debug("guido:save:complete", e), t("save:complete", e);
71
71
  }
72
72
  });
73
73
  const h = (e) => {
@@ -75,9 +75,9 @@ const de = /* @__PURE__ */ k({
75
75
  }, D = () => {
76
76
  console.debug("dynamic-content:close", "Without Data"), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: { text: "", value: "" } }));
77
77
  };
78
- return A(() => r.value, () => {
79
- o("on-change");
80
- }), W(async () => {
78
+ return W(() => r.value, () => {
79
+ t("on-change");
80
+ }), H(async () => {
81
81
  console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow");
82
82
  try {
83
83
  let e = {
@@ -92,9 +92,9 @@ const de = /* @__PURE__ */ k({
92
92
  }
93
93
  document.addEventListener("dynamic-content:open", (e) => {
94
94
  const S = e;
95
- console.debug("dynamic-content:open", S.detail), o("dynamic-content:open", S.detail);
95
+ console.debug("dynamic-content:open", S.detail), t("dynamic-content:open", S.detail);
96
96
  });
97
- }), H(() => {
97
+ }), N(() => {
98
98
  window.UIEditor.removeEditor();
99
99
  }), G({
100
100
  dynamicContent: {
@@ -102,9 +102,9 @@ const de = /* @__PURE__ */ k({
102
102
  close: D
103
103
  },
104
104
  hasChanges: r
105
- }), { __sfc: !0, PreviewContainer: I, OnboardingWrapper: L, dynamicContentStore: n, props: t, editorStore: c, previewStore: P, hasChanges: r, preselectedDynamicContentList: a, getPartnerName: m, getProductType: d, templateId: l, userId: p, guidoConfig: u, html: g, css: f, partnerName: i, productType: s, messageType: y, username: C, emit: o, initPlugin: v, getDefaultTemplate: w, noHeader: _, insertDynamicContent: h, closeDynamicContent: D, Toaster: F, HeaderWrapper: K, LoadingWrapper: O, SaveAsTemplateDrawer: R };
105
+ }), { __sfc: !0, PreviewContainer: P, OnboardingWrapper: I, dynamicContentStore: n, props: o, editorStore: c, previewStore: L, hasChanges: r, preselectedDynamicContentList: a, getPartnerName: m, getProductType: d, isTestPartner: _, templateId: l, userId: p, guidoConfig: u, html: g, css: f, partnerName: i, productType: s, messageType: y, username: C, emit: t, initPlugin: v, getDefaultTemplate: w, noHeader: k, insertDynamicContent: h, closeDynamicContent: D, Toaster: K, HeaderWrapper: O, LoadingWrapper: R, SaveAsTemplateDrawer: j };
106
106
  }
107
107
  });
108
108
  export {
109
- de as default
109
+ le as default
110
110
  };
@@ -1,16 +1,16 @@
1
1
  import i from "./ViewOptions.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../_virtual/_plugin-vue2_normalizer.js";
4
- var r = function() {
4
+ var n = function() {
5
5
  var t = this, s = t._self._c, e = t._self._setupProxy;
6
- return s("div", { staticClass: "view-options-wrapper" }, [s(e.InSegments, { attrs: { id: "guido__view-option-selection", "with-icon": "", disable: e.editorStore.isViewOptionsDisabled, "segment-list": e.segmentList, selected: e.editorStore.editorVisualMode } }), e.editorStore.isViewOptionsDisabled ? t._e() : s("div", { staticClass: "new-tag" }, [t._v(" " + t._s(e.trans("settings.new")) + " ")])], 1);
7
- }, n = [], a = /* @__PURE__ */ o(
6
+ return s("div", { staticClass: "view-options-wrapper" }, [s(e.InSegments, { attrs: { id: "guido__view-option-selection", "with-icon": "", disable: e.editorStore.isViewOptionsDisabled, "segment-list": e.segmentList, selected: e.editorStore.editorVisualMode } }), e.editorStore.isViewOptionsDisabled ? t._e() : s(e.InChips, { staticClass: "new-tag", attrs: { id: "guido__view-options-new-tag", styles: "stroke", value: "chips", "close-button": !1, interactive: !1, text: e.trans("settings.new") } })], 1);
7
+ }, r = [], a = /* @__PURE__ */ o(
8
8
  i,
9
- r,
10
9
  n,
10
+ r,
11
11
  !1,
12
12
  null,
13
- "99e4d32b"
13
+ "195ab6d4"
14
14
  );
15
15
  const c = a.exports;
16
16
  export {
@@ -2,10 +2,10 @@ import { defineComponent as n } from "vue";
2
2
  import { useTranslations as p } from "../../../composables/useTranslations.js";
3
3
  import { useEditorStore as s } from "../../../stores/editor.js";
4
4
  import { getTooltipOptions as o } from "../../../utils/tooltipUtils.js";
5
- import { InSegments as r } from "@useinsider/design-system-vue";
6
- const d = /* @__PURE__ */ n({
5
+ import { InChips as r, InSegments as m } from "@useinsider/design-system-vue";
6
+ const f = /* @__PURE__ */ n({
7
7
  __name: "ViewOptions",
8
- setup(m) {
8
+ setup(l) {
9
9
  const e = s(), t = p(), i = [
10
10
  {
11
11
  text: "",
@@ -26,9 +26,9 @@ const d = /* @__PURE__ */ n({
26
26
  tooltipOptions: o("guido__view-option-mobile")
27
27
  }
28
28
  ];
29
- return { __sfc: !0, editorStore: e, trans: t, segmentList: i, InSegments: r };
29
+ return { __sfc: !0, editorStore: e, trans: t, segmentList: i, InSegments: m, InChips: r };
30
30
  }
31
31
  });
32
32
  export {
33
- d as default
33
+ f as default
34
34
  };
@@ -2,17 +2,17 @@ import i from "./ViewOptions.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
4
  var n = function() {
5
- var t = this, s = t._self._c, e = t._self._setupProxy;
6
- return s("div", { staticClass: "view-options-wrapper" }, [s(e.InSegments, { attrs: { id: "guido__verion-history-view-option-selection", "with-icon": "", "segment-list": e.segmentList, selected: e.versionHistoryStore.editorVisualMode }, on: { click: e.changeVisualMode } }), s("div", { staticClass: "new-tag" }, [t._v(" " + t._s(e.trans("settings.new")) + " ")])], 1);
5
+ var s = this, t = s._self._c, e = s._self._setupProxy;
6
+ return t("div", { staticClass: "view-options-wrapper" }, [t(e.InSegments, { attrs: { id: "guido__verion-history-view-option-selection", "with-icon": "", "segment-list": e.segmentList, selected: e.versionHistoryStore.editorVisualMode }, on: { click: e.changeVisualMode } }), t(e.InChips, { staticClass: "new-tag", attrs: { id: "guido__view-options-new-tag", styles: "stroke", value: "chips", "close-button": !1, interactive: !1, text: e.trans("settings.new") } })], 1);
7
7
  }, r = [], a = /* @__PURE__ */ o(
8
8
  i,
9
9
  n,
10
10
  r,
11
11
  !1,
12
12
  null,
13
- "c144e1e3"
13
+ "d405ca59"
14
14
  );
15
- const m = a.exports;
15
+ const d = a.exports;
16
16
  export {
17
- m as default
17
+ d as default
18
18
  };
@@ -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 { InSegments as c } from "@useinsider/design-system-vue";
7
- const h = /* @__PURE__ */ p({
6
+ import { InChips as c, InSegments as u } from "@useinsider/design-system-vue";
7
+ const T = /* @__PURE__ */ p({
8
8
  __name: "ViewOptions",
9
- setup(u) {
9
+ setup(_) {
10
10
  const t = a(), { switchToDesktopPreview: e, switchToMobilePreview: i } = l(), o = m(), r = [
11
11
  {
12
12
  text: "",
@@ -33,9 +33,9 @@ const h = /* @__PURE__ */ p({
33
33
  return;
34
34
  }
35
35
  e();
36
- }, InSegments: c };
36
+ }, InSegments: u, InChips: c };
37
37
  }
38
38
  });
39
39
  export {
40
- h as default
40
+ T as default
41
41
  };
@@ -1,11 +1,11 @@
1
- import { defineComponent as m, computed as e, watch as p } from "vue";
1
+ import { defineComponent as p, computed as e, watch as m } from "vue";
2
2
  import { useTranslations as g } from "../../../composables/useTranslations.js";
3
- import { useOnboardingStore as b } from "../../../stores/onboarding.js";
4
- import { InOnboard as l } from "@useinsider/design-system-vue";
5
- const _ = /* @__PURE__ */ m({
3
+ import { useOnboardingStore as u } from "../../../stores/onboarding.js";
4
+ import { InOnboard as b } from "@useinsider/design-system-vue";
5
+ const O = /* @__PURE__ */ p({
6
6
  __name: "AMPOnboarding",
7
- setup(u) {
8
- const i = g(), o = b(), r = e(() => `${window.innerWidth / 2 - 110}px`), a = e(() => [
7
+ setup(l) {
8
+ const i = g(), o = u(), r = e(() => `${window.innerWidth / 2 - 110}px`), a = e(() => [
9
9
  {
10
10
  classes: "guido-amp-onboarding",
11
11
  left: r.value,
@@ -17,21 +17,21 @@ const _ = /* @__PURE__ */ m({
17
17
  backButtonClick: () => {
18
18
  },
19
19
  nextButtonType: "text",
20
- nextButtonText: i("roi-statistics.onboard-modal-finish"),
20
+ nextButtonText: i("action-builder.ok"),
21
21
  nextButtonClick: () => void o.close("ampOnboarding")
22
22
  }
23
- ]), s = e(() => o.onboardings.ampOnboarding.config.length > 0 && o.onboardings.ampOnboarding.isActive), d = () => {
23
+ ]), d = e(() => o.onboardings.ampOnboarding.config.length > 0 && o.onboardings.ampOnboarding.isActive), s = () => {
24
24
  var n, t;
25
25
  (t = (n = o.getAmpCurrentCard) == null ? void 0 : n.nextButtonClick) == null || t.call(n);
26
26
  }, c = () => {
27
27
  var n, t;
28
28
  (t = (n = o.getAmpCurrentCard) == null ? void 0 : n.backButtonClick) == null || t.call(n);
29
29
  };
30
- return p(() => o.onboardings.ampOnboarding.isActive, (n) => {
30
+ return m(() => o.onboardings.ampOnboarding.isActive, (n) => {
31
31
  n && o.setConfig("ampOnboarding", a.value);
32
- }, { immediate: !0 }), { __sfc: !0, trans: i, onboardingStore: o, centerLeft: r, onboardingCardsConfig: a, isVisible: s, handleNext: d, handleBack: c, InOnboard: l };
32
+ }, { immediate: !0 }), { __sfc: !0, trans: i, onboardingStore: o, centerLeft: r, onboardingCardsConfig: a, isVisible: d, handleNext: s, handleBack: c, InOnboard: b };
33
33
  }
34
34
  });
35
35
  export {
36
- _ as default
36
+ O as default
37
37
  };
@@ -13,7 +13,7 @@ var l = function() {
13
13
  p,
14
14
  !1,
15
15
  null,
16
- "acae5543"
16
+ "2473c29f"
17
17
  );
18
18
  const S = _.exports;
19
19
  export {
@@ -6,14 +6,14 @@ import { InOnboard as f } from "@useinsider/design-system-vue";
6
6
  const S = /* @__PURE__ */ l({
7
7
  __name: "GenericOnboarding",
8
8
  setup(B) {
9
- const e = x(), o = k(), r = i(() => `${window.innerWidth / 2 - 160}px`), s = () => {
9
+ const e = x(), o = k(), r = i(() => `${window.innerWidth / 2 - 160}px`), c = () => {
10
10
  const t = document.querySelector("ui-editor");
11
11
  t != null && t.shadowRoot && m.forEach((n) => {
12
12
  var d;
13
13
  const a = (d = t.shadowRoot) == null ? void 0 : d.querySelector(n);
14
14
  a && a.classList.add("hover");
15
15
  });
16
- }, c = i(() => [
16
+ }, s = i(() => [
17
17
  {
18
18
  classes: "guido-onboarding-blocks",
19
19
  left: "90px",
@@ -27,13 +27,13 @@ const S = /* @__PURE__ */ l({
27
27
  nextButtonType: "text",
28
28
  nextButtonText: e("products.next"),
29
29
  nextButtonClick: () => {
30
- s(), o.next("genericOnboarding");
30
+ c(), o.next("genericOnboarding");
31
31
  }
32
32
  },
33
33
  {
34
34
  classes: "guido-onboarding-stripes",
35
35
  right: "450px",
36
- bottom: "50px",
36
+ bottom: "-38px",
37
37
  position: "Right Top",
38
38
  title: e("email-editor.onboarding-stripes-title"),
39
39
  description: e("email-editor.onboarding-stripes-description"),
@@ -61,7 +61,7 @@ const S = /* @__PURE__ */ l({
61
61
  backButtonText: e("ds-steps.back"),
62
62
  backButtonClick: () => o.previous("genericOnboarding"),
63
63
  nextButtonType: "text",
64
- nextButtonText: e("roi-statistics.onboard-modal-finish"),
64
+ nextButtonText: e("action-builder.ok"),
65
65
  nextButtonClick: () => {
66
66
  o.close("genericOnboarding");
67
67
  }
@@ -74,8 +74,8 @@ const S = /* @__PURE__ */ l({
74
74
  (n = (t = o.getGenericCurrentCard) == null ? void 0 : t.backButtonClick) == null || n.call(t);
75
75
  };
76
76
  return b(() => o.onboardings.genericOnboarding.isActive, (t) => {
77
- t && o.setConfig("genericOnboarding", c.value);
78
- }, { immediate: !0 }), { __sfc: !0, trans: e, onboardingStore: o, centerLeft: r, addHoverToServiceElements: s, onboardingCardsConfig: c, isVisible: g, handleNext: p, handleBack: u, InOnboard: f };
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 };
79
79
  }
80
80
  });
81
81
  export {
@@ -1,19 +1,19 @@
1
- import l from "./TextBlockOnboarding.vue2.js";
1
+ import c from "./TextBlockOnboarding.vue2.js";
2
2
  /* empty css */
3
3
  import d from "../../../_virtual/_plugin-vue2_normalizer.js";
4
4
  var g = function() {
5
5
  var e, n, r, i, a, s;
6
- var t = this, c = t._self._c, o = t._self._setupProxy;
7
- return o.isVisible ? c(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) {
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
8
  return o.onboardingStore.close("textBlockOnboarding");
9
9
  }, nextButtonClick: o.handleNext } }) : t._e();
10
10
  }, b = [], p = /* @__PURE__ */ d(
11
- l,
11
+ c,
12
12
  g,
13
13
  b,
14
14
  !1,
15
15
  null,
16
- "bccb3b50"
16
+ "a77a2dd4"
17
17
  );
18
18
  const f = p.exports;
19
19
  export {
@@ -1,8 +1,8 @@
1
- import { defineComponent as d, computed as r, watch as l } from "vue";
1
+ import { defineComponent as s, computed as r, watch as l } from "vue";
2
2
  import { useTranslations as x } from "../../../composables/useTranslations.js";
3
3
  import { useOnboardingStore as g } from "../../../stores/onboarding.js";
4
4
  import { InOnboard as b } from "@useinsider/design-system-vue";
5
- const C = /* @__PURE__ */ d({
5
+ const C = /* @__PURE__ */ s({
6
6
  __name: "TextBlockOnboarding",
7
7
  setup(p) {
8
8
  const n = x(), o = g(), i = r(() => [
@@ -36,7 +36,7 @@ const C = /* @__PURE__ */ d({
36
36
  o.previous("textBlockOnboarding");
37
37
  },
38
38
  nextButtonType: "text",
39
- nextButtonText: n("roi-statistics.onboard-modal-finish"),
39
+ nextButtonText: n("action-builder.ok"),
40
40
  nextButtonClick: () => {
41
41
  o.close("textBlockOnboarding");
42
42
  }
@@ -44,7 +44,7 @@ const C = /* @__PURE__ */ d({
44
44
  ]), c = r(() => o.onboardings.textBlockOnboarding.config.length > 0 && o.onboardings.textBlockOnboarding.isActive), a = () => {
45
45
  var t, e;
46
46
  (e = (t = o.getTextBlockCurrentCard) == null ? void 0 : t.nextButtonClick) == null || e.call(t);
47
- }, s = () => {
47
+ }, d = () => {
48
48
  var t, e;
49
49
  (e = (t = o.getTextBlockCurrentCard) == null ? void 0 : t.backButtonClick) == null || e.call(t);
50
50
  };
@@ -54,7 +54,7 @@ const C = /* @__PURE__ */ d({
54
54
  t && o.setConfig("textBlockOnboarding", i.value);
55
55
  },
56
56
  { immediate: !0 }
57
- ), { __sfc: !0, trans: n, onboardingStore: o, onboardingCardsConfig: i, isVisible: c, handleNext: a, handleBack: s, InOnboard: b };
57
+ ), { __sfc: !0, trans: n, onboardingStore: o, onboardingCardsConfig: i, isVisible: c, handleNext: a, handleBack: d, InOnboard: b };
58
58
  }
59
59
  });
60
60
  export {
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as c, computed as e, watch as g } from "vue";
2
2
  import { useTranslations as b } from "../../../composables/useTranslations.js";
3
- import { useOnboardingStore as l } from "../../../stores/onboarding.js";
4
- import { InOnboard as u } from "@useinsider/design-system-vue";
3
+ import { useOnboardingStore as u } from "../../../stores/onboarding.js";
4
+ import { InOnboard as l } from "@useinsider/design-system-vue";
5
5
  const C = /* @__PURE__ */ c({
6
6
  __name: "VersionHistoryOnboarding",
7
- setup(m) {
8
- const t = b(), n = l(), r = e(() => [
7
+ setup(p) {
8
+ const t = b(), n = u(), r = e(() => [
9
9
  {
10
10
  classes: "guido-version-history-onboarding",
11
11
  left: "409px",
@@ -17,7 +17,7 @@ const C = /* @__PURE__ */ c({
17
17
  backButtonClick: () => {
18
18
  },
19
19
  nextButtonType: "text",
20
- nextButtonText: t("roi-statistics.onboard-modal-finish"),
20
+ nextButtonText: t("action-builder.ok"),
21
21
  nextButtonClick: () => void n.close("versionHistoryOnboarding")
22
22
  }
23
23
  ]), s = e(() => n.onboardings.versionHistoryOnboarding.config.length > 0 && n.onboardings.versionHistoryOnboarding.isActive), a = () => {
@@ -29,7 +29,7 @@ const C = /* @__PURE__ */ c({
29
29
  };
30
30
  return g(() => n.onboardings.versionHistoryOnboarding.isActive, (o) => {
31
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: u };
32
+ }, { immediate: !0 }), { __sfc: !0, trans: t, onboardingStore: n, onboardingCardsConfig: r, isVisible: s, handleNext: a, handleBack: d, InOnboard: l };
33
33
  }
34
34
  });
35
35
  export {
package/dist/guido.css CHANGED
@@ -1 +1 @@
1
- [data-v-a18ac2d3] .in-button-v2__wrapper{line-height:0}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history-wrapper[data-v-52a77eec]{gap:8px}.view-options-wrapper[data-v-c144e1e3]{position:relative;display:inline-block}.new-tag[data-v-c144e1e3]{height:24px;position:absolute;top:-8px;right:-16px;background-color:#dae1fb;color:#0a2ecc;font-size:13px;font-weight:400;padding:4px;border-radius:4px;z-index:10;pointer-events:none;border:1px solid #B5C1F1;line-height:16px}[data-v-c144e1e3] .guido__verion-history-view-option-selection-desktop svg,[data-v-c144e1e3] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-c144e1e3] .in-segments-wrapper__button_selected,[data-v-c144e1e3] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-c144e1e3] .in-tooltip-wrapper__icon{cursor:pointer}.view-options-wrapper[data-v-99e4d32b]{position:relative;display:inline-block}.new-tag[data-v-99e4d32b]{height:24px;position:absolute;top:-8px;right:-16px;background-color:#dae1fb;color:#0a2ecc;font-size:13px;font-weight:400;padding:4px;border-radius:4px;z-index:10;pointer-events:none;border:1px solid #B5C1F1;line-height:16px}[data-v-99e4d32b] .guido__view-option-selection-desktop svg,[data-v-99e4d32b] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-99e4d32b] .in-segments-wrapper__button_selected,[data-v-99e4d32b] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-99e4d32b] .in-tooltip-wrapper__icon{cursor:pointer}.guido-loading__wrapper[data-v-2d4cd446]{height:calc(100% - 75px);top:75px}.guido-editor__wrapper[data-v-5c6ce65b],.guido-editor__container[data-v-5c6ce65b]{width:100%;height:calc(100vh - 128px)}.guido-editor__no-header[data-v-5c6ce65b]{height:calc(100vh - 75px)}.error-list[data-v-7a09985c]{gap:16px}[data-v-c2adc57d] .in-progress-wrapper__progress p span:last-child{display:none!important}.desktop-preview-container[data-v-2dd60b0c],[data-v-2dd60b0c] .desktop-preview-container .in-container{min-height:720px!important;height:100%}.cropped-text[data-v-f20b3a9b]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[data-v-acae5543] .vueperslides__bullets,[data-v-bccb3b50] .vueperslides__bullets{pointer-events:none!important}
1
+ [data-v-a18ac2d3] .in-button-v2__wrapper{line-height:0}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history-wrapper[data-v-52a77eec]{gap:8px}.view-options-wrapper[data-v-d405ca59]{position:relative;display:inline-block}.new-tag[data-v-d405ca59]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-d405ca59] .guido__verion-history-view-option-selection-desktop svg,[data-v-d405ca59] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-d405ca59] .in-segments-wrapper__button_selected,[data-v-d405ca59] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-d405ca59] .in-tooltip-wrapper__icon{cursor:pointer}.view-options-wrapper[data-v-195ab6d4]{position:relative;display:inline-block}.new-tag[data-v-195ab6d4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-195ab6d4] .guido__view-option-selection-desktop svg,[data-v-195ab6d4] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-195ab6d4] .in-segments-wrapper__button_selected,[data-v-195ab6d4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-195ab6d4] .in-tooltip-wrapper__icon{cursor:pointer}.guido-loading__wrapper[data-v-2d4cd446]{height:calc(100% - 75px);top:75px}.guido-editor__wrapper[data-v-39783038],.guido-editor__container[data-v-39783038]{width:100%;height:calc(100vh - 128px)}.guido-editor__no-header[data-v-39783038]{height:calc(100vh - 75px)}.error-list[data-v-7a09985c]{gap:16px}[data-v-c2adc57d] .in-progress-wrapper__progress p span:last-child{display:none!important}.desktop-preview-container[data-v-2dd60b0c],[data-v-2dd60b0c] .desktop-preview-container .in-container{min-height:720px!important;height:100%}.cropped-text[data-v-f20b3a9b]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[data-v-2473c29f] .vueperslides__bullets,[data-v-a77a2dd4] .vueperslides__bullets{pointer-events:none!important}
@@ -108,7 +108,15 @@ export declare const useOnboardingStore: import("pinia").StoreDefinition<"onboar
108
108
  }[];
109
109
  };
110
110
  };
111
- userModalState: Record<string, Record<string, boolean>>;
111
+ userModalState: {
112
+ Guido?: {
113
+ newVersionPopup?: boolean | undefined;
114
+ genericOnboarding?: boolean | undefined;
115
+ textBlockOnboarding?: boolean | undefined;
116
+ versionHistoryOnboarding?: boolean | undefined;
117
+ ampOnboarding?: boolean | undefined;
118
+ } | undefined;
119
+ };
112
120
  isFetched: boolean;
113
121
  } & import("pinia").PiniaCustomStateProperties<OnboardingStoreState>) => (type: OnboardingType) => {
114
122
  cardIndex: number;
@@ -239,7 +247,15 @@ export declare const useOnboardingStore: import("pinia").StoreDefinition<"onboar
239
247
  }[];
240
248
  };
241
249
  };
242
- userModalState: Record<string, Record<string, boolean>>;
250
+ userModalState: {
251
+ Guido?: {
252
+ newVersionPopup?: boolean | undefined;
253
+ genericOnboarding?: boolean | undefined;
254
+ textBlockOnboarding?: boolean | undefined;
255
+ versionHistoryOnboarding?: boolean | undefined;
256
+ ampOnboarding?: boolean | undefined;
257
+ } | undefined;
258
+ };
243
259
  isFetched: boolean;
244
260
  } & import("pinia").PiniaCustomStateProperties<OnboardingStoreState>) => (type: OnboardingType) => boolean;
245
261
  getCurrentCard: (state: {
@@ -350,7 +366,15 @@ export declare const useOnboardingStore: import("pinia").StoreDefinition<"onboar
350
366
  }[];
351
367
  };
352
368
  };
353
- userModalState: Record<string, Record<string, boolean>>;
369
+ userModalState: {
370
+ Guido?: {
371
+ newVersionPopup?: boolean | undefined;
372
+ genericOnboarding?: boolean | undefined;
373
+ textBlockOnboarding?: boolean | undefined;
374
+ versionHistoryOnboarding?: boolean | undefined;
375
+ ampOnboarding?: boolean | undefined;
376
+ } | undefined;
377
+ };
354
378
  isFetched: boolean;
355
379
  } & import("pinia").PiniaCustomStateProperties<OnboardingStoreState>) => (type: OnboardingType) => {
356
380
  classes: string;
@@ -477,7 +501,15 @@ export declare const useOnboardingStore: import("pinia").StoreDefinition<"onboar
477
501
  }[];
478
502
  };
479
503
  };
480
- userModalState: Record<string, Record<string, boolean>>;
504
+ userModalState: {
505
+ Guido?: {
506
+ newVersionPopup?: boolean | undefined;
507
+ genericOnboarding?: boolean | undefined;
508
+ textBlockOnboarding?: boolean | undefined;
509
+ versionHistoryOnboarding?: boolean | undefined;
510
+ ampOnboarding?: boolean | undefined;
511
+ } | undefined;
512
+ };
481
513
  isFetched: boolean;
482
514
  } & import("pinia").PiniaCustomStateProperties<OnboardingStoreState>) => {
483
515
  classes: string;
@@ -604,7 +636,15 @@ export declare const useOnboardingStore: import("pinia").StoreDefinition<"onboar
604
636
  }[];
605
637
  };
606
638
  };
607
- userModalState: Record<string, Record<string, boolean>>;
639
+ userModalState: {
640
+ Guido?: {
641
+ newVersionPopup?: boolean | undefined;
642
+ genericOnboarding?: boolean | undefined;
643
+ textBlockOnboarding?: boolean | undefined;
644
+ versionHistoryOnboarding?: boolean | undefined;
645
+ ampOnboarding?: boolean | undefined;
646
+ } | undefined;
647
+ };
608
648
  isFetched: boolean;
609
649
  } & import("pinia").PiniaCustomStateProperties<OnboardingStoreState>) => {
610
650
  classes: string;
@@ -731,7 +771,15 @@ export declare const useOnboardingStore: import("pinia").StoreDefinition<"onboar
731
771
  }[];
732
772
  };
733
773
  };
734
- userModalState: Record<string, Record<string, boolean>>;
774
+ userModalState: {
775
+ Guido?: {
776
+ newVersionPopup?: boolean | undefined;
777
+ genericOnboarding?: boolean | undefined;
778
+ textBlockOnboarding?: boolean | undefined;
779
+ versionHistoryOnboarding?: boolean | undefined;
780
+ ampOnboarding?: boolean | undefined;
781
+ } | undefined;
782
+ };
735
783
  isFetched: boolean;
736
784
  } & import("pinia").PiniaCustomStateProperties<OnboardingStoreState>) => {
737
785
  classes: string;
@@ -858,7 +906,15 @@ export declare const useOnboardingStore: import("pinia").StoreDefinition<"onboar
858
906
  }[];
859
907
  };
860
908
  };
861
- userModalState: Record<string, Record<string, boolean>>;
909
+ userModalState: {
910
+ Guido?: {
911
+ newVersionPopup?: boolean | undefined;
912
+ genericOnboarding?: boolean | undefined;
913
+ textBlockOnboarding?: boolean | undefined;
914
+ versionHistoryOnboarding?: boolean | undefined;
915
+ ampOnboarding?: boolean | undefined;
916
+ } | undefined;
917
+ };
862
918
  isFetched: boolean;
863
919
  } & import("pinia").PiniaCustomStateProperties<OnboardingStoreState>) => {
864
920
  classes: string;
@@ -985,7 +1041,15 @@ export declare const useOnboardingStore: import("pinia").StoreDefinition<"onboar
985
1041
  }[];
986
1042
  };
987
1043
  };
988
- userModalState: Record<string, Record<string, boolean>>;
1044
+ userModalState: {
1045
+ Guido?: {
1046
+ newVersionPopup?: boolean | undefined;
1047
+ genericOnboarding?: boolean | undefined;
1048
+ textBlockOnboarding?: boolean | undefined;
1049
+ versionHistoryOnboarding?: boolean | undefined;
1050
+ ampOnboarding?: boolean | undefined;
1051
+ } | undefined;
1052
+ };
989
1053
  isFetched: boolean;
990
1054
  } & import("pinia").PiniaCustomStateProperties<OnboardingStoreState>) => (type: OnboardingType) => boolean;
991
1055
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "1.0.2-beta.198f9ce",
3
+ "version": "1.0.2-beta.1c23922",
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",