@useinsider/guido 3.2.0-beta.353f359 → 3.2.0-beta.39d4b5f

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.
@@ -1,57 +1,37 @@
1
- import { defineComponent as u, computed as d, watch as b, nextTick as f } from "vue";
2
- import { useTranslations as C } from "../../../composables/useTranslations.js";
3
- import { HEADER_SELECTOR as O, AMP_TOGGLE_BUTTON_SELECTOR as _, AMP_TOGGLE_WRAPPER_SELECTOR as T, POPOVER_LEFT_OFFSET as g, POPOVER_TOP_GAP as E } from "../../../enums/onboarding.js";
4
- import { useOnboardingStore as x } from "../../../stores/onboarding.js";
5
- import { InOnboard as P } from "@useinsider/design-system-vue";
6
- const G = /* @__PURE__ */ u({
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({
7
6
  __name: "AMPOnboarding",
8
- setup(R) {
9
- const e = C(), o = x(), r = () => {
10
- const t = document.querySelector(O), n = document.querySelector(_), c = n == null ? void 0 : n.closest(T);
11
- if (!c || !t)
12
- return {
13
- left: `${((t == null ? void 0 : t.offsetWidth) ?? window.innerWidth) / 2 - g}px`,
14
- top: "68px"
15
- };
16
- const s = t.getBoundingClientRect(), i = c.getBoundingClientRect();
17
- return {
18
- left: `${i.left - s.left + i.width / 2 - g}px`,
19
- top: `${i.bottom - s.top + E}px`
20
- };
21
- }, a = d(() => {
22
- const { left: t, top: n } = r();
23
- return [
24
- {
25
- classes: "guido-amp-onboarding",
26
- left: t,
27
- top: n,
28
- position: "Top Center",
29
- title: e("email-editor.onboarding-amp-title"),
30
- description: e("email-editor.onboarding-amp-description"),
31
- imageSource: "",
32
- backButtonClick: () => {
33
- },
34
- nextButtonType: "text",
35
- nextButtonText: e("action-builder.ok"),
36
- nextButtonClick: () => void o.close("ampOnboarding")
37
- }
38
- ];
39
- }), l = d(() => o.onboardings.ampOnboarding.config.length > 0 && o.onboardings.ampOnboarding.isActive), p = () => {
40
- var t, n;
41
- (n = (t = o.getAmpCurrentCard) == null ? void 0 : t.nextButtonClick) == null || n.call(t);
42
- }, m = () => {
43
- var t, n;
44
- (n = (t = o.getAmpCurrentCard) == null ? void 0 : t.backButtonClick) == null || n.call(t);
7
+ setup(l) {
8
+ const i = g(), o = u(), r = e(() => `${window.innerWidth / 2 - 110}px`), a = e(() => [
9
+ {
10
+ classes: "guido-amp-onboarding",
11
+ left: r.value,
12
+ top: "70px",
13
+ position: "Top Center",
14
+ title: i("email-editor.onboarding-amp-title"),
15
+ description: i("email-editor.onboarding-amp-description"),
16
+ imageSource: "",
17
+ backButtonClick: () => {
18
+ },
19
+ nextButtonType: "text",
20
+ nextButtonText: i("action-builder.ok"),
21
+ nextButtonClick: () => void o.close("ampOnboarding")
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);
45
29
  };
46
- return b(
47
- () => o.onboardings.ampOnboarding.isActive,
48
- async (t) => {
49
- t && (await f(), o.setConfig("ampOnboarding", a.value));
50
- },
51
- { immediate: !0 }
52
- ), { __sfc: !0, trans: e, onboardingStore: o, getTogglePosition: r, onboardingCardsConfig: a, isVisible: l, handleNext: p, handleBack: m, InOnboard: P };
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 };
53
33
  }
54
34
  });
55
35
  export {
56
- G as default
36
+ O as default
57
37
  };
@@ -13,7 +13,7 @@ var l = function() {
13
13
  p,
14
14
  !1,
15
15
  null,
16
- "7419ae06"
16
+ "29b9af29"
17
17
  );
18
18
  const S = _.exports;
19
19
  export {
@@ -1,24 +1,23 @@
1
- import { defineComponent as l, computed as r, watch as m } from "vue";
2
- import { useRibbonOffset as x } from "../../../composables/useRibbonOffset.js";
3
- import { useTranslations as f } from "../../../composables/useTranslations.js";
4
- import { SERVICE_HOVER_SELECTORS as k } from "../../../enums/onboarding.js";
5
- import { useOnboardingStore as B } from "../../../stores/onboarding.js";
6
- import { InOnboard as C } from "@useinsider/design-system-vue";
7
- const y = /* @__PURE__ */ l({
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({
8
7
  __name: "GenericOnboarding",
9
- setup(T) {
10
- const e = f(), o = B(), { getTopPosition: i } = x(), s = r(() => `${window.innerWidth / 2 - 146}px`), c = () => {
8
+ setup(B) {
9
+ const e = x(), o = k(), r = i(() => `${window.innerWidth / 2 - 160}px`), c = () => {
11
10
  const t = document.querySelector("ui-editor");
12
- t != null && t.shadowRoot && k.forEach((n) => {
13
- var g;
14
- const d = (g = t.shadowRoot) == null ? void 0 : g.querySelector(n);
15
- d && d.classList.add("hover");
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");
16
15
  });
17
- }, a = r(() => [
16
+ }, s = i(() => [
18
17
  {
19
18
  classes: "guido-onboarding-blocks",
20
19
  left: "90px",
21
- top: i(90),
20
+ top: "90px",
22
21
  position: "Left Top",
23
22
  title: e("email-editor.onboarding-blocks-title"),
24
23
  description: e("email-editor.onboarding-blocks-description"),
@@ -52,8 +51,8 @@ const y = /* @__PURE__ */ l({
52
51
  },
53
52
  {
54
53
  classes: "guido-onboarding-preview",
55
- left: s.value,
56
- top: i(68),
54
+ left: r.value,
55
+ top: "90px",
57
56
  position: "Top Center",
58
57
  title: e("email-editor.onboarding-preview-title"),
59
58
  description: e("email-editor.onboarding-preview-description"),
@@ -67,18 +66,18 @@ const y = /* @__PURE__ */ l({
67
66
  o.close("genericOnboarding");
68
67
  }
69
68
  }
70
- ]), p = r(() => o.onboardings.genericOnboarding.config.length > 0 && o.onboardings.genericOnboarding.isActive), u = () => {
69
+ ]), g = i(() => o.onboardings.genericOnboarding.config.length > 0 && o.onboardings.genericOnboarding.isActive), p = () => {
71
70
  var t, n;
72
71
  (n = (t = o.getGenericCurrentCard) == null ? void 0 : t.nextButtonClick) == null || n.call(t);
73
- }, b = () => {
72
+ }, u = () => {
74
73
  var t, n;
75
74
  (n = (t = o.getGenericCurrentCard) == null ? void 0 : t.backButtonClick) == null || n.call(t);
76
75
  };
77
- return m(() => o.onboardings.genericOnboarding.isActive, (t) => {
78
- t && o.setConfig("genericOnboarding", a.value);
79
- }, { immediate: !0 }), { __sfc: !0, trans: e, onboardingStore: o, getTopPosition: i, centerLeft: s, addHoverToServiceElements: c, onboardingCardsConfig: a, isVisible: p, handleNext: u, handleBack: b, InOnboard: C };
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 };
80
79
  }
81
80
  });
82
81
  export {
83
- y as default
82
+ S as default
84
83
  };
@@ -13,7 +13,7 @@ var l = function() {
13
13
  c,
14
14
  !1,
15
15
  null,
16
- "796d193b"
16
+ "dd1a237a"
17
17
  );
18
18
  const I = p.exports;
19
19
  export {
@@ -1,31 +1,33 @@
1
- import { defineComponent as b, computed as d, watch as m } from "vue";
2
- import { useRibbonOffset as l } from "../../../composables/useRibbonOffset.js";
1
+ import { defineComponent as l, computed as a, watch as u } from "vue";
3
2
  import { useTranslations as x } from "../../../composables/useTranslations.js";
4
- import { UI_EDITOR_SELECTOR as T, CARD_COMPOSITION_TAB_SELECTOR as O, SETTINGS_TAB_SELECTOR as f } from "../../../enums/onboarding.js";
5
- import { useOnboardingStore as k } from "../../../stores/onboarding.js";
6
- import { InOnboard as B } from "@useinsider/design-system-vue";
7
- const E = /* @__PURE__ */ b({
3
+ import { RIBBON_SELECTOR as T, UI_EDITOR_SELECTOR as O, CARD_COMPOSITION_TAB_SELECTOR as B, SETTINGS_TAB_SELECTOR as f } from "../../../enums/onboarding.js";
4
+ import { useOnboardingStore as C } from "../../../stores/onboarding.js";
5
+ import { InOnboard as k } from "@useinsider/design-system-vue";
6
+ const E = /* @__PURE__ */ l({
8
7
  __name: "ItemsOnboarding",
9
- setup(C) {
10
- const i = x(), o = k(), { getTopPosition: n } = l(), r = (t) => {
11
- const e = document.querySelector(T);
12
- if (!(e != null && e.shadowRoot))
8
+ setup(_) {
9
+ const e = x(), o = C(), c = a(() => {
10
+ const t = document.querySelector(T);
11
+ return (t == null ? void 0 : t.offsetHeight) ?? 0;
12
+ }), n = (t) => `${t + c.value}px`, r = (t) => {
13
+ const i = document.querySelector(O);
14
+ if (!(i != null && i.shadowRoot))
13
15
  return;
14
- const { shadowRoot: s } = e, c = s.querySelector(t);
15
- c && c.click();
16
- }, a = d(() => [
16
+ const { shadowRoot: s } = i, m = s.querySelector(t);
17
+ m && m.click();
18
+ }, d = a(() => [
17
19
  {
18
20
  classes: "guido-items-onboarding-card-1",
19
21
  right: "426px",
20
22
  top: n(90),
21
23
  position: "Right Top",
22
- title: i("email-editor.onboarding-items-title"),
23
- description: i("email-editor.onboarding-items-description"),
24
+ title: e("email-editor.onboarding-items-title"),
25
+ description: e("email-editor.onboarding-items-description"),
24
26
  imageSource: "",
25
27
  backButtonClick: () => {
26
28
  },
27
29
  nextButtonType: "text",
28
- nextButtonText: i("products.next"),
30
+ nextButtonText: e("products.next"),
29
31
  nextButtonClick: () => {
30
32
  o.next("itemsOnboarding");
31
33
  }
@@ -35,16 +37,16 @@ const E = /* @__PURE__ */ b({
35
37
  right: "426px",
36
38
  top: n(218),
37
39
  position: "Right Top",
38
- title: i("email-editor.onboarding-items-item-type-title"),
39
- description: i("email-editor.onboarding-items-item-type-description"),
40
+ title: e("email-editor.onboarding-items-item-type-title"),
41
+ description: e("email-editor.onboarding-items-item-type-description"),
40
42
  imageSource: "",
41
43
  backButtonType: "text",
42
- backButtonText: i("ds-steps.back"),
44
+ backButtonText: e("ds-steps.back"),
43
45
  backButtonClick: () => {
44
46
  o.previous("itemsOnboarding");
45
47
  },
46
48
  nextButtonType: "text",
47
- nextButtonText: i("products.next"),
49
+ nextButtonText: e("products.next"),
48
50
  nextButtonClick: () => {
49
51
  o.next("itemsOnboarding");
50
52
  }
@@ -54,42 +56,42 @@ const E = /* @__PURE__ */ b({
54
56
  right: "426px",
55
57
  top: n(140),
56
58
  position: "Right Top",
57
- title: i("email-editor.onboarding-items-composition-title"),
58
- description: i("email-editor.onboarding-items-composition-description"),
59
+ title: e("email-editor.onboarding-items-composition-title"),
60
+ description: e("email-editor.onboarding-items-composition-description"),
59
61
  imageSource: "",
60
62
  backButtonType: "text",
61
- backButtonText: i("ds-steps.back"),
63
+ backButtonText: e("ds-steps.back"),
62
64
  backButtonClick: () => {
63
65
  o.previous("itemsOnboarding");
64
66
  },
65
67
  nextButtonType: "text",
66
- nextButtonText: i("action-builder.ok"),
68
+ nextButtonText: e("action-builder.ok"),
67
69
  nextButtonClick: () => {
68
70
  o.close("itemsOnboarding");
69
71
  }
70
72
  }
71
- ]), g = d(() => o.onboardings.itemsOnboarding.config.length > 0 && o.onboardings.itemsOnboarding.isActive), p = () => {
72
- var t, e;
73
- (e = (t = o.getItemsCurrentCard) == null ? void 0 : t.nextButtonClick) == null || e.call(t);
74
- }, u = () => {
75
- var t, e;
76
- (e = (t = o.getItemsCurrentCard) == null ? void 0 : t.backButtonClick) == null || e.call(t);
73
+ ]), g = a(() => o.onboardings.itemsOnboarding.config.length > 0 && o.onboardings.itemsOnboarding.isActive), p = () => {
74
+ var t, i;
75
+ (i = (t = o.getItemsCurrentCard) == null ? void 0 : t.nextButtonClick) == null || i.call(t);
76
+ }, b = () => {
77
+ var t, i;
78
+ (i = (t = o.getItemsCurrentCard) == null ? void 0 : t.backButtonClick) == null || i.call(t);
77
79
  };
78
- return m(
80
+ return u(
79
81
  () => o.isActive("itemsOnboarding"),
80
82
  (t) => {
81
- t && o.setConfig("itemsOnboarding", a.value);
83
+ t && o.setConfig("itemsOnboarding", d.value);
82
84
  },
83
85
  { immediate: !0 }
84
- ), m(
86
+ ), u(
85
87
  () => o.onboardings.itemsOnboarding.cardIndex,
86
- (t, e) => {
88
+ (t, i) => {
87
89
  if (!o.isActive("itemsOnboarding"))
88
90
  return;
89
- const s = `${e}-${t}`;
90
- s === "1-2" && r(O), s === "2-1" && r(f);
91
+ const s = `${i}-${t}`;
92
+ s === "1-2" && r(B), s === "2-1" && r(f);
91
93
  }
92
- ), { __sfc: !0, trans: i, onboardingStore: o, getTopPosition: n, switchTab: r, onboardingCardsConfig: a, isVisible: g, handleNext: p, handleBack: u, InOnboard: B };
94
+ ), { __sfc: !0, trans: e, onboardingStore: o, ribbonOffset: c, getTopPosition: n, switchTab: r, onboardingCardsConfig: d, isVisible: g, handleNext: p, handleBack: b, InOnboard: k };
93
95
  }
94
96
  });
95
97
  export {
@@ -13,9 +13,9 @@ var g = function() {
13
13
  b,
14
14
  !1,
15
15
  null,
16
- "cadfc82d"
16
+ "d073b1dc"
17
17
  );
18
- const C = p.exports;
18
+ const f = p.exports;
19
19
  export {
20
- C as default
20
+ f as default
21
21
  };
@@ -1,63 +1,74 @@
1
- import { defineComponent as l, computed as c, watch as g } from "vue";
2
- import { useRibbonOffset as b } from "../../../composables/useRibbonOffset.js";
3
- import { useTranslations as x } from "../../../composables/useTranslations.js";
4
- import { useOnboardingStore as u } from "../../../stores/onboarding.js";
5
- import { InOnboard as p } from "@useinsider/design-system-vue";
6
- const O = /* @__PURE__ */ l({
1
+ import { defineComponent as u, computed as a, watch as b } from "vue";
2
+ import { useTranslations as m } from "../../../composables/useTranslations.js";
3
+ import { useOnboardingStore as k } from "../../../stores/onboarding.js";
4
+ import { InOnboard as B } from "@useinsider/design-system-vue";
5
+ const y = /* @__PURE__ */ u({
7
6
  __name: "TextBlockOnboarding",
8
- setup(k) {
9
- const n = x(), o = u(), { getTopPosition: i } = b(), r = c(() => [
7
+ setup(h) {
8
+ const i = m(), o = k(), e = a(() => {
9
+ const n = window.innerHeight - 128, r = Math.max(90, n * 0.15), s = Math.max(490, n * 0.71), d = 200, g = 40;
10
+ return {
11
+ settings: {
12
+ top: `${r}px`,
13
+ position: r + d + g > n ? "Right Bottom" : "Right Top"
14
+ },
15
+ dynamic: {
16
+ top: `${s}px`,
17
+ position: s + d + g > n ? "Right Bottom" : "Right Top"
18
+ }
19
+ };
20
+ }), c = a(() => [
10
21
  {
11
22
  classes: "guido-text-block-onboarding-settings",
12
23
  right: "426px",
13
- top: i(90),
14
- position: "Right Top",
15
- title: n("email-editor.onboarding-text-block-title"),
16
- description: n("email-editor.onboarding-text-block-description"),
24
+ top: e.value.settings.top,
25
+ position: e.value.settings.position,
26
+ title: i("email-editor.onboarding-text-block-title"),
27
+ description: i("email-editor.onboarding-text-block-description"),
17
28
  imageSource: "",
18
29
  backButtonClick: () => {
19
30
  },
20
31
  nextButtonType: "text",
21
- nextButtonText: n("products.next"),
32
+ nextButtonText: i("products.next"),
22
33
  nextButtonClick: () => {
23
34
  o.next("textBlockOnboarding");
24
35
  }
25
36
  },
26
37
  {
27
38
  classes: "guido-text-block-onboarding-dynamic",
28
- right: "409px",
29
- top: i(607),
30
- position: "Right Top",
31
- title: n("email-editor.onboarding-dynamic-content-title"),
32
- description: n("email-editor.onboarding-dynamic-content-description"),
39
+ right: "426px",
40
+ top: e.value.dynamic.top,
41
+ position: e.value.dynamic.position,
42
+ title: i("email-editor.onboarding-dynamic-content-title"),
43
+ description: i("email-editor.onboarding-dynamic-content-description"),
33
44
  imageSource: "",
34
45
  backButtonType: "text",
35
- backButtonText: n("ds-steps.back"),
46
+ backButtonText: i("ds-steps.back"),
36
47
  backButtonClick: () => {
37
48
  o.previous("textBlockOnboarding");
38
49
  },
39
50
  nextButtonType: "text",
40
- nextButtonText: n("action-builder.ok"),
51
+ nextButtonText: i("action-builder.ok"),
41
52
  nextButtonClick: () => {
42
53
  o.close("textBlockOnboarding");
43
54
  }
44
55
  }
45
- ]), a = c(() => o.onboardings.textBlockOnboarding.config.length > 0 && o.onboardings.textBlockOnboarding.isActive), s = () => {
46
- var t, e;
47
- (e = (t = o.getTextBlockCurrentCard) == null ? void 0 : t.nextButtonClick) == null || e.call(t);
48
- }, d = () => {
49
- var t, e;
50
- (e = (t = o.getTextBlockCurrentCard) == null ? void 0 : t.backButtonClick) == null || e.call(t);
56
+ ]), l = a(() => o.onboardings.textBlockOnboarding.config.length > 0 && o.onboardings.textBlockOnboarding.isActive), p = () => {
57
+ var t, n;
58
+ (n = (t = o.getTextBlockCurrentCard) == null ? void 0 : t.nextButtonClick) == null || n.call(t);
59
+ }, x = () => {
60
+ var t, n;
61
+ (n = (t = o.getTextBlockCurrentCard) == null ? void 0 : t.backButtonClick) == null || n.call(t);
51
62
  };
52
- return g(
63
+ return b(
53
64
  () => o.isActive("textBlockOnboarding"),
54
65
  (t) => {
55
- t && o.setConfig("textBlockOnboarding", r.value);
66
+ t && o.setConfig("textBlockOnboarding", c.value);
56
67
  },
57
68
  { immediate: !0 }
58
- ), { __sfc: !0, trans: n, onboardingStore: o, getTopPosition: i, onboardingCardsConfig: r, isVisible: a, handleNext: s, handleBack: d, InOnboard: p };
69
+ ), { __sfc: !0, trans: i, onboardingStore: o, dynamicPosition: e, onboardingCardsConfig: c, isVisible: l, handleNext: p, handleBack: x, InOnboard: B };
59
70
  }
60
71
  });
61
72
  export {
62
- O as default
73
+ y as default
63
74
  };
@@ -1,16 +1,15 @@
1
- import { defineComponent as g, computed as s, watch as b } from "vue";
2
- import { useRibbonOffset as u } from "../../../composables/useRibbonOffset.js";
3
- import { useTranslations as l } from "../../../composables/useTranslations.js";
4
- import { useOnboardingStore as m } from "../../../stores/onboarding.js";
5
- import { InOnboard as p } from "@useinsider/design-system-vue";
6
- const k = /* @__PURE__ */ g({
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({
7
6
  __name: "VersionHistoryOnboarding",
8
- setup(f) {
9
- const t = l(), n = m(), { getTopPosition: r } = u(), e = s(() => [
7
+ setup(p) {
8
+ const t = b(), n = u(), r = e(() => [
10
9
  {
11
10
  classes: "guido-version-history-onboarding",
12
11
  left: "409px",
13
- top: r(192),
12
+ top: "192px",
14
13
  position: "Left Top",
15
14
  title: t("email-editor.onboarding-version-history-title"),
16
15
  description: t("email-editor.onboarding-version-history-description"),
@@ -21,18 +20,18 @@ const k = /* @__PURE__ */ g({
21
20
  nextButtonText: t("action-builder.ok"),
22
21
  nextButtonClick: () => void n.close("versionHistoryOnboarding")
23
22
  }
24
- ]), a = s(() => n.onboardings.versionHistoryOnboarding.config.length > 0 && n.onboardings.versionHistoryOnboarding.isActive), d = () => {
23
+ ]), s = e(() => n.onboardings.versionHistoryOnboarding.config.length > 0 && n.onboardings.versionHistoryOnboarding.isActive), a = () => {
25
24
  var o, i;
26
25
  (i = (o = n.getVersionHistoryCurrentCard) == null ? void 0 : o.nextButtonClick) == null || i.call(o);
27
- }, c = () => {
26
+ }, d = () => {
28
27
  var o, i;
29
28
  (i = (o = n.getVersionHistoryCurrentCard) == null ? void 0 : o.backButtonClick) == null || i.call(o);
30
29
  };
31
- return b(() => n.onboardings.versionHistoryOnboarding.isActive, (o) => {
32
- o && n.setConfig("versionHistoryOnboarding", e.value);
33
- }, { immediate: !0 }), { __sfc: !0, trans: t, onboardingStore: n, getTopPosition: r, onboardingCardsConfig: e, isVisible: a, handleNext: d, handleBack: c, InOnboard: p };
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 };
34
33
  }
35
34
  });
36
35
  export {
37
- k as default
36
+ C as default
38
37
  };
@@ -2,15 +2,10 @@ const e = [
2
2
  ".service-element.stacked-panel-item.ng-tns-c1014751574-3.level-bottom-0.ng-star-inserted",
3
3
  ".service-element.stacked-panel-item.ng-tns-c1014751574-3.level-bottom-1.ng-star-inserted",
4
4
  ".service-element.stacked-panel-item.ng-tns-c1014751574-3.level-bottom-2.ng-star-inserted"
5
- ], t = "ui-editor", n = 'button[role="tab"][aria-label="Card Composition"]', s = 'button[role="tab"][aria-label="Settings"]', E = ".in-ribbons-wrapper", o = ".guido__amp-toggle-html", a = ".in-segments-wrapper", O = '[data-testid="guido-header"]', _ = 158, i = 10;
5
+ ], t = "ui-editor", n = 'button[role="tab"][aria-label="Card Composition"]', s = 'button[role="tab"][aria-label="Settings"]', o = ".in-ribbons-wrapper";
6
6
  export {
7
- o as AMP_TOGGLE_BUTTON_SELECTOR,
8
- a as AMP_TOGGLE_WRAPPER_SELECTOR,
9
7
  n as CARD_COMPOSITION_TAB_SELECTOR,
10
- O as HEADER_SELECTOR,
11
- _ as POPOVER_LEFT_OFFSET,
12
- i as POPOVER_TOP_GAP,
13
- E as RIBBON_SELECTOR,
8
+ o as RIBBON_SELECTOR,
14
9
  e as SERVICE_HOVER_SELECTORS,
15
10
  s as SETTINGS_TAB_SELECTOR,
16
11
  t as UI_EDITOR_SELECTOR
package/dist/guido.css CHANGED
@@ -1 +1 @@
1
- .gap-16[data-v-3b53a736],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-cd76c125] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-2cb418af] .in-progress-wrapper__progress p span:last-child{display:none!important}[data-v-2cb418af] .in-progress-description-status{display:none!important}.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}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-64c52560]{gap:8px}.version-history__toolbar[data-v-64c52560]{gap:4px}.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}.editor-actions[data-v-4e2a4adb]{gap:4px}.header-wrapper[data-v-5c02dcc7]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.guido-editor__wrapper[data-v-25780af6]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-25780af6]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-25780af6]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-df672485]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-df672485]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-df672485]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-df672485]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-df672485]{object-fit:cover;transform:scale(1)}[data-v-43c617a7] .guido__verion-history-view-option-selection-desktop svg,[data-v-43c617a7] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-43c617a7] .in-segments-wrapper__button_selected,[data-v-43c617a7] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-c3fd5d4b]{gap:16px}.desktop-browser-header[data-v-d86c5af5]{height:79px;min-height:79px}.desktop-browser-header__left[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:378px}.desktop-browser-header__center[data-v-d86c5af5]{height:79px;background-repeat:repeat-x;background-size:auto 100%;background-position:left top}.desktop-browser-header__right[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:112px}.desktop-preview[data-v-988f8da6]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-988f8da6]{min-height:504px}.iframe-wrapper[data-v-e0424e99]{width:258px}.iframe-scaled[data-v-e0424e99]{width:320px;height:124.0310077519%;transform:scale(.80625);transform-origin:top left}.cropped-text[data-v-eb3d05d7]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-preview-wrapper__phone[data-v-3f472f96]{width:282px}.mobile-preview-wrapper__phone img[data-v-3f472f96]{object-fit:cover;border-radius:44px}.mobile-preview-wrapper__content[data-v-3f472f96]{width:258px;height:450px;left:12px}[data-v-7419ae06] .vueperslides__bullets,[data-v-796d193b] .vueperslides__bullets{pointer-events:none!important}[data-v-796d193b] .vueperslides__parallax-wrapper{height:110px!important}[data-v-cadfc82d] .vueperslides__bullets{pointer-events:none!important}[data-v-cadfc82d] .vueperslides__parallax-wrapper{height:110px!important}
1
+ .gap-16[data-v-3b53a736],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-cd76c125] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-2cb418af] .in-progress-wrapper__progress p span:last-child{display:none!important}[data-v-2cb418af] .in-progress-description-status{display:none!important}.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}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-64c52560]{gap:8px}.version-history__toolbar[data-v-64c52560]{gap:4px}.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}.editor-actions[data-v-4e2a4adb]{gap:4px}.header-wrapper[data-v-5c02dcc7]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.guido-editor__wrapper[data-v-25780af6]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-25780af6]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-25780af6]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-df672485]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-df672485]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-df672485]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-df672485]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-df672485]{object-fit:cover;transform:scale(1)}[data-v-43c617a7] .guido__verion-history-view-option-selection-desktop svg,[data-v-43c617a7] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-43c617a7] .in-segments-wrapper__button_selected,[data-v-43c617a7] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-c3fd5d4b]{gap:16px}.desktop-browser-header[data-v-d86c5af5]{height:79px;min-height:79px}.desktop-browser-header__left[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:378px}.desktop-browser-header__center[data-v-d86c5af5]{height:79px;background-repeat:repeat-x;background-size:auto 100%;background-position:left top}.desktop-browser-header__right[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:112px}.desktop-preview[data-v-988f8da6]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-988f8da6]{min-height:504px}.iframe-wrapper[data-v-e0424e99]{width:258px}.iframe-scaled[data-v-e0424e99]{width:320px;height:124.0310077519%;transform:scale(.80625);transform-origin:top left}.cropped-text[data-v-eb3d05d7]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-preview-wrapper__phone[data-v-3f472f96]{width:282px}.mobile-preview-wrapper__phone img[data-v-3f472f96]{object-fit:cover;border-radius:44px}.mobile-preview-wrapper__content[data-v-3f472f96]{width:258px;height:450px;left:12px}[data-v-29b9af29] .vueperslides__bullets,[data-v-dd1a237a] .vueperslides__bullets{pointer-events:none!important}[data-v-dd1a237a] .vueperslides__parallax-wrapper{height:110px!important}[data-v-d073b1dc] .vueperslides__bullets{pointer-events:none!important}[data-v-d073b1dc] .vueperslides__parallax-wrapper{height:110px!important}
@@ -3,9 +3,3 @@ export declare const UI_EDITOR_SELECTOR = "ui-editor";
3
3
  export declare const CARD_COMPOSITION_TAB_SELECTOR = "button[role=\"tab\"][aria-label=\"Card Composition\"]";
4
4
  export declare const SETTINGS_TAB_SELECTOR = "button[role=\"tab\"][aria-label=\"Settings\"]";
5
5
  export declare const RIBBON_SELECTOR = ".in-ribbons-wrapper";
6
- export declare const DYNAMIC_CONTENT_BUTTON_SELECTOR = "#guido__btn-add-dynamic-content";
7
- export declare const AMP_TOGGLE_BUTTON_SELECTOR = ".guido__amp-toggle-html";
8
- export declare const AMP_TOGGLE_WRAPPER_SELECTOR = ".in-segments-wrapper";
9
- export declare const HEADER_SELECTOR = "[data-testid=\"guido-header\"]";
10
- export declare const POPOVER_LEFT_OFFSET = 158;
11
- export declare const POPOVER_TOP_GAP = 10;
@@ -1392,10 +1392,6 @@ export declare const useOnboardingStore: import("pinia").StoreDefinition<"guidoO
1392
1392
  close(type: OnboardingType): Promise<void>;
1393
1393
  next(type: OnboardingType): void;
1394
1394
  previous(type: OnboardingType): void;
1395
- updateCardPosition(type: OnboardingType, cardIndex: number, position: {
1396
- top: string;
1397
- position: string;
1398
- }): void;
1399
1395
  setConfig(type: OnboardingType, config: OnboardingCardConfig[]): void;
1400
1396
  onDiscoverNowClicked(): Promise<void>;
1401
1397
  onRemindMeLater(): void;
@@ -71,10 +71,6 @@ const t = () => ({
71
71
  previous(n) {
72
72
  this.onboardings[n].cardIndex > 0 && this.onboardings[n].cardIndex--;
73
73
  },
74
- updateCardPosition(n, i, o) {
75
- const s = this.onboardings[n].config[i];
76
- s && (s.top = o.top, s.position = o.position);
77
- },
78
74
  setConfig(n, i) {
79
75
  this.onboardings[n].config = i ?? [], this.onboardings[n].cardIndex >= this.onboardings[n].config.length && (this.onboardings[n].cardIndex = 0);
80
76
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "3.2.0-beta.353f359",
3
+ "version": "3.2.0-beta.39d4b5f",
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",
@@ -1,21 +0,0 @@
1
- import { RIBBON_SELECTOR as r } from "../enums/onboarding.js";
2
- import { ref as f, onMounted as c, onBeforeUnmount as i } from "vue";
3
- const m = () => {
4
- const o = f(0);
5
- let e = null;
6
- const n = () => {
7
- const t = document.querySelector(r), s = (t == null ? void 0 : t.offsetHeight) ?? 0;
8
- o.value !== s && (o.value = s);
9
- }, u = (t) => `${t + o.value}px`;
10
- return c(() => {
11
- n(), e = new MutationObserver(n), e.observe(document.body, {
12
- childList: !0,
13
- subtree: !0
14
- });
15
- }), i(() => {
16
- e == null || e.disconnect();
17
- }), { ribbonOffset: o, getTopPosition: u };
18
- };
19
- export {
20
- m as useRibbonOffset
21
- };
@@ -1,4 +0,0 @@
1
- export declare const useRibbonOffset: () => {
2
- ribbonOffset: import("vue").Ref<number>;
3
- getTopPosition: (baseTop: number) => string;
4
- };