@useinsider/guido 1.0.2-beta.b3c5fc9 → 1.0.2-beta.b6e86c0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/dist/@types/events.d.ts +6 -0
- package/dist/@types/generic.d.ts +1 -0
- package/dist/components/Guido.vue.d.ts +1 -0
- package/dist/components/Guido.vue.js +11 -11
- package/dist/components/Guido.vue2.js +59 -51
- package/dist/components/organisms/LoadingWrapper.vue.d.ts +2 -0
- package/dist/components/organisms/LoadingWrapper.vue.js +18 -0
- package/dist/components/organisms/LoadingWrapper.vue2.js +12 -0
- package/dist/components/organisms/email-preview/PreviewContainer.vue.js +12 -12
- package/dist/components/organisms/email-preview/PreviewContainer.vue2.js +7 -8
- package/dist/components/organisms/header/LeftSlot.vue.js +10 -9
- package/dist/components/organisms/header/MiddleSlot.vue.js +6 -6
- package/dist/components/organisms/header/MiddleSlot.vue2.js +15 -16
- package/dist/components/organisms/header/RightSlot.vue.js +3 -3
- package/dist/components/organisms/header/RightSlot.vue2.js +25 -26
- package/dist/components/organisms/header/ViewOptions.vue.js +11 -11
- package/dist/components/organisms/header/ViewOptions.vue2.js +14 -15
- package/dist/components/organisms/header/version-history/ViewOptions.vue.js +11 -11
- package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +5 -5
- package/dist/components/organisms/onboarding/AMPOnboarding.vue.d.ts +2 -0
- package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +20 -0
- package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +37 -0
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.d.ts +2 -0
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +21 -0
- package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +83 -0
- package/dist/components/organisms/onboarding/NewVersionPopup.vue.d.ts +2 -0
- package/dist/components/organisms/onboarding/NewVersionPopup.vue.js +17 -0
- package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +30 -0
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.d.ts +2 -0
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +19 -0
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +43 -0
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.d.ts +2 -0
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +21 -0
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +62 -0
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.d.ts +2 -0
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +20 -0
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +37 -0
- package/dist/composables/useCustomInterfaceAppearance.js +15 -13
- package/dist/composables/usePartner.d.ts +1 -0
- package/dist/composables/usePartner.js +16 -9
- package/dist/composables/usePreviewMode.js +13 -13
- package/dist/composables/useStripo.js +49 -48
- package/dist/composables/useStripoEventHandler.d.ts +3 -0
- package/dist/composables/useStripoEventHandler.js +20 -0
- package/dist/enums/defaults.d.ts +1 -0
- package/dist/enums/defaults.js +42 -9
- package/dist/enums/onboarding.d.ts +1 -0
- package/dist/enums/onboarding.js +8 -0
- package/dist/guido.css +1 -1
- package/dist/mock/api/user-modal-state.d.ts +2 -0
- package/dist/services/onboardingApi.d.ts +4 -0
- package/dist/services/onboardingApi.js +23 -0
- package/dist/static/assets/onboarding-img.svg.js +4 -0
- package/dist/static/styles/components/loader.css.js +10 -0
- package/dist/static/styles/components/wide-panel.css.js +11 -2
- package/dist/static/styles/customEditorStyle.css.js +18 -0
- package/dist/stores/editor.d.ts +194 -1
- package/dist/stores/editor.js +18 -2
- package/dist/stores/onboarding.d.ts +1068 -0
- package/dist/stores/onboarding.js +95 -0
- package/dist/stores/preview.d.ts +0 -8
- package/dist/stores/preview.js +12 -20
- package/package.json +4 -2
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import i from "./ViewOptions.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
return
|
|
7
|
-
},
|
|
8
|
-
|
|
9
|
-
r,
|
|
3
|
+
import o from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var n = function() {
|
|
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
|
+
}, r = [], a = /* @__PURE__ */ o(
|
|
8
|
+
i,
|
|
10
9
|
n,
|
|
10
|
+
r,
|
|
11
11
|
!1,
|
|
12
12
|
null,
|
|
13
|
-
"
|
|
13
|
+
"d405ca59"
|
|
14
14
|
);
|
|
15
|
-
const
|
|
15
|
+
const d = a.exports;
|
|
16
16
|
export {
|
|
17
|
-
|
|
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 {
|
|
7
|
-
const
|
|
6
|
+
import { InChips as c, InSegments as u } from "@useinsider/design-system-vue";
|
|
7
|
+
const T = /* @__PURE__ */ p({
|
|
8
8
|
__name: "ViewOptions",
|
|
9
|
-
setup(
|
|
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
|
-
|
|
40
|
+
T as default
|
|
41
41
|
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +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,
|
|
11
|
+
l,
|
|
12
|
+
m,
|
|
13
|
+
!1,
|
|
14
|
+
null,
|
|
15
|
+
null
|
|
16
|
+
);
|
|
17
|
+
const f = c.exports;
|
|
18
|
+
export {
|
|
19
|
+
f as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent as m, computed as e, watch as p } from "vue";
|
|
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({
|
|
6
|
+
__name: "AMPOnboarding",
|
|
7
|
+
setup(u) {
|
|
8
|
+
const i = g(), o = b(), 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("roi-statistics.onboard-modal-finish"),
|
|
21
|
+
nextButtonClick: () => void o.close("ampOnboarding")
|
|
22
|
+
}
|
|
23
|
+
]), s = e(() => o.onboardings.ampOnboarding.config.length > 0 && o.onboardings.ampOnboarding.isActive), d = () => {
|
|
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);
|
|
29
|
+
};
|
|
30
|
+
return p(() => 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: s, handleNext: d, handleBack: c, InOnboard: l };
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
_ as default
|
|
37
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import d from "./GenericOnboarding.vue2.js";
|
|
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(
|
|
11
|
+
d,
|
|
12
|
+
l,
|
|
13
|
+
p,
|
|
14
|
+
!1,
|
|
15
|
+
null,
|
|
16
|
+
"acae5543"
|
|
17
|
+
);
|
|
18
|
+
const S = _.exports;
|
|
19
|
+
export {
|
|
20
|
+
S as default
|
|
21
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
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({
|
|
7
|
+
__name: "GenericOnboarding",
|
|
8
|
+
setup(B) {
|
|
9
|
+
const e = x(), o = k(), r = i(() => `${window.innerWidth / 2 - 160}px`), s = () => {
|
|
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");
|
|
15
|
+
});
|
|
16
|
+
}, c = i(() => [
|
|
17
|
+
{
|
|
18
|
+
classes: "guido-onboarding-blocks",
|
|
19
|
+
left: "90px",
|
|
20
|
+
top: "90px",
|
|
21
|
+
position: "Left Top",
|
|
22
|
+
title: e("email-editor.onboarding-blocks-title"),
|
|
23
|
+
description: e("email-editor.onboarding-blocks-description"),
|
|
24
|
+
imageSource: "",
|
|
25
|
+
backButtonClick: () => {
|
|
26
|
+
},
|
|
27
|
+
nextButtonType: "text",
|
|
28
|
+
nextButtonText: e("products.next"),
|
|
29
|
+
nextButtonClick: () => {
|
|
30
|
+
s(), o.next("genericOnboarding");
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
classes: "guido-onboarding-stripes",
|
|
35
|
+
right: "450px",
|
|
36
|
+
bottom: "50px",
|
|
37
|
+
position: "Right Top",
|
|
38
|
+
title: e("email-editor.onboarding-stripes-title"),
|
|
39
|
+
description: e("email-editor.onboarding-stripes-description"),
|
|
40
|
+
imageSource: "",
|
|
41
|
+
backButtonType: "text",
|
|
42
|
+
backButtonText: e("ds-steps.back"),
|
|
43
|
+
backButtonClick: () => {
|
|
44
|
+
o.previous("genericOnboarding");
|
|
45
|
+
},
|
|
46
|
+
nextButtonType: "text",
|
|
47
|
+
nextButtonText: e("products.next"),
|
|
48
|
+
nextButtonClick: () => {
|
|
49
|
+
o.next("genericOnboarding");
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
classes: "guido-onboarding-preview",
|
|
54
|
+
left: r.value,
|
|
55
|
+
top: "90px",
|
|
56
|
+
position: "Top Center",
|
|
57
|
+
title: e("email-editor.onboarding-preview-title"),
|
|
58
|
+
description: e("email-editor.onboarding-preview-description"),
|
|
59
|
+
imageSource: "",
|
|
60
|
+
backButtonType: "text",
|
|
61
|
+
backButtonText: e("ds-steps.back"),
|
|
62
|
+
backButtonClick: () => o.previous("genericOnboarding"),
|
|
63
|
+
nextButtonType: "text",
|
|
64
|
+
nextButtonText: e("roi-statistics.onboard-modal-finish"),
|
|
65
|
+
nextButtonClick: () => {
|
|
66
|
+
o.close("genericOnboarding");
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
]), g = i(() => o.onboardings.genericOnboarding.config.length > 0 && o.onboardings.genericOnboarding.isActive), p = () => {
|
|
70
|
+
var t, n;
|
|
71
|
+
(n = (t = o.getGenericCurrentCard) == null ? void 0 : t.nextButtonClick) == null || n.call(t);
|
|
72
|
+
}, u = () => {
|
|
73
|
+
var t, n;
|
|
74
|
+
(n = (t = o.getGenericCurrentCard) == null ? void 0 : t.backButtonClick) == null || n.call(t);
|
|
75
|
+
};
|
|
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 };
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
export {
|
|
82
|
+
S as default
|
|
83
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import s from "./NewVersionPopup.vue2.js";
|
|
2
|
+
import n from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
+
var r = function() {
|
|
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();
|
|
6
|
+
}, i = [], a = /* @__PURE__ */ n(
|
|
7
|
+
s,
|
|
8
|
+
r,
|
|
9
|
+
i,
|
|
10
|
+
!1,
|
|
11
|
+
null,
|
|
12
|
+
null
|
|
13
|
+
);
|
|
14
|
+
const p = a.exports;
|
|
15
|
+
export {
|
|
16
|
+
p as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent as s, ref as r } from "vue";
|
|
2
|
+
import a from "../../wrappers/WpModal.vue.js";
|
|
3
|
+
import { useTranslations as i } from "../../../composables/useTranslations.js";
|
|
4
|
+
import l from "../../../static/assets/onboarding-img.svg.js";
|
|
5
|
+
import { useOnboardingStore as m } from "../../../stores/onboarding.js";
|
|
6
|
+
const w = /* @__PURE__ */ s({
|
|
7
|
+
__name: "NewVersionPopup",
|
|
8
|
+
setup(p) {
|
|
9
|
+
const n = i(), e = m(), o = r(!0), t = r({
|
|
10
|
+
primaryButton: {
|
|
11
|
+
type: "primary",
|
|
12
|
+
labelText: n("left-menu.discover-now")
|
|
13
|
+
},
|
|
14
|
+
secondaryButton: {
|
|
15
|
+
type: "subtle-primary",
|
|
16
|
+
labelText: n("products.remind-me-later")
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
return { __sfc: !0, trans: n, onboardingStore: e, isVisible: o, footerButtonOptions: t, handleDiscoverNow: () => {
|
|
20
|
+
e.onDiscoverNowClicked(), o.value = !1;
|
|
21
|
+
}, handleRemindLater: () => {
|
|
22
|
+
e.onRemindMeLater(), o.value = !1;
|
|
23
|
+
}, handleClose: () => {
|
|
24
|
+
e.onNewVersionPopupClose(), o.value = !1;
|
|
25
|
+
}, WpModal: a, onboardingImageSvg: l };
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
w as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import o from "./OnboardingWrapper.vue2.js";
|
|
2
|
+
import _ from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
+
var s = function() {
|
|
4
|
+
var n = this, e = n._self._c, t = n._self._setupProxy;
|
|
5
|
+
return e("div", n._l(t.visibleOnboardings, function(r) {
|
|
6
|
+
return e(r.component, { key: r.type, tag: "component" });
|
|
7
|
+
}), 1);
|
|
8
|
+
}, a = [], p = /* @__PURE__ */ _(
|
|
9
|
+
o,
|
|
10
|
+
s,
|
|
11
|
+
a,
|
|
12
|
+
!1,
|
|
13
|
+
null,
|
|
14
|
+
null
|
|
15
|
+
);
|
|
16
|
+
const m = p.exports;
|
|
17
|
+
export {
|
|
18
|
+
m as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
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";
|
|
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({
|
|
12
|
+
__name: "OnboardingWrapper",
|
|
13
|
+
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 };
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
export {
|
|
42
|
+
E as default
|
|
43
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import l from "./TextBlockOnboarding.vue2.js";
|
|
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, 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) {
|
|
8
|
+
return o.onboardingStore.close("textBlockOnboarding");
|
|
9
|
+
}, nextButtonClick: o.handleNext } }) : t._e();
|
|
10
|
+
}, b = [], p = /* @__PURE__ */ d(
|
|
11
|
+
l,
|
|
12
|
+
g,
|
|
13
|
+
b,
|
|
14
|
+
!1,
|
|
15
|
+
null,
|
|
16
|
+
"bccb3b50"
|
|
17
|
+
);
|
|
18
|
+
const f = p.exports;
|
|
19
|
+
export {
|
|
20
|
+
f as default
|
|
21
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defineComponent as d, 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__ */ d({
|
|
6
|
+
__name: "TextBlockOnboarding",
|
|
7
|
+
setup(p) {
|
|
8
|
+
const n = x(), o = g(), i = r(() => [
|
|
9
|
+
{
|
|
10
|
+
classes: "guido-text-block-onboarding-settings",
|
|
11
|
+
right: "450px",
|
|
12
|
+
top: "90px",
|
|
13
|
+
position: "Right Top",
|
|
14
|
+
title: n("email-editor.onboarding-text-block-title"),
|
|
15
|
+
description: n("email-editor.onboarding-text-block-description"),
|
|
16
|
+
imageSource: "",
|
|
17
|
+
backButtonClick: () => {
|
|
18
|
+
},
|
|
19
|
+
nextButtonType: "text",
|
|
20
|
+
nextButtonText: n("products.next"),
|
|
21
|
+
nextButtonClick: () => {
|
|
22
|
+
o.next("textBlockOnboarding");
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
classes: "guido-text-block-onboarding-dynamic",
|
|
27
|
+
right: "450px",
|
|
28
|
+
top: "594px",
|
|
29
|
+
position: "Right Top",
|
|
30
|
+
title: n("email-editor.onboarding-dynamic-content-title"),
|
|
31
|
+
description: n("email-editor.onboarding-dynamic-content-description"),
|
|
32
|
+
imageSource: "",
|
|
33
|
+
backButtonType: "text",
|
|
34
|
+
backButtonText: n("ds-steps.back"),
|
|
35
|
+
backButtonClick: () => {
|
|
36
|
+
o.previous("textBlockOnboarding");
|
|
37
|
+
},
|
|
38
|
+
nextButtonType: "text",
|
|
39
|
+
nextButtonText: n("roi-statistics.onboard-modal-finish"),
|
|
40
|
+
nextButtonClick: () => {
|
|
41
|
+
o.close("textBlockOnboarding");
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
]), c = r(() => o.onboardings.textBlockOnboarding.config.length > 0 && o.onboardings.textBlockOnboarding.isActive), a = () => {
|
|
45
|
+
var t, e;
|
|
46
|
+
(e = (t = o.getTextBlockCurrentCard) == null ? void 0 : t.nextButtonClick) == null || e.call(t);
|
|
47
|
+
}, s = () => {
|
|
48
|
+
var t, e;
|
|
49
|
+
(e = (t = o.getTextBlockCurrentCard) == null ? void 0 : t.backButtonClick) == null || e.call(t);
|
|
50
|
+
};
|
|
51
|
+
return l(
|
|
52
|
+
() => o.isActive("textBlockOnboarding"),
|
|
53
|
+
(t) => {
|
|
54
|
+
t && o.setConfig("textBlockOnboarding", i.value);
|
|
55
|
+
},
|
|
56
|
+
{ immediate: !0 }
|
|
57
|
+
), { __sfc: !0, trans: n, onboardingStore: o, onboardingCardsConfig: i, isVisible: c, handleNext: a, handleBack: s, InOnboard: b };
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
export {
|
|
61
|
+
C as default
|
|
62
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +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
|
+
_,
|
|
13
|
+
!1,
|
|
14
|
+
null,
|
|
15
|
+
null
|
|
16
|
+
);
|
|
17
|
+
const m = p.exports;
|
|
18
|
+
export {
|
|
19
|
+
m as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
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 l } from "../../../stores/onboarding.js";
|
|
4
|
+
import { InOnboard as u } from "@useinsider/design-system-vue";
|
|
5
|
+
const C = /* @__PURE__ */ c({
|
|
6
|
+
__name: "VersionHistoryOnboarding",
|
|
7
|
+
setup(m) {
|
|
8
|
+
const t = b(), n = l(), r = e(() => [
|
|
9
|
+
{
|
|
10
|
+
classes: "guido-version-history-onboarding",
|
|
11
|
+
left: "409px",
|
|
12
|
+
top: "192px",
|
|
13
|
+
position: "Left Top",
|
|
14
|
+
title: t("email-editor.onboarding-version-history-title"),
|
|
15
|
+
description: t("email-editor.onboarding-version-history-description"),
|
|
16
|
+
imageSource: "",
|
|
17
|
+
backButtonClick: () => {
|
|
18
|
+
},
|
|
19
|
+
nextButtonType: "text",
|
|
20
|
+
nextButtonText: t("roi-statistics.onboard-modal-finish"),
|
|
21
|
+
nextButtonClick: () => void n.close("versionHistoryOnboarding")
|
|
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);
|
|
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: u };
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
C as default
|
|
37
|
+
};
|
|
@@ -7,15 +7,16 @@ import n from "../static/styles/components/button.css.js";
|
|
|
7
7
|
import s from "../static/styles/components/combobox.css.js";
|
|
8
8
|
import C from "../static/styles/components/counter.css.js";
|
|
9
9
|
import f from "../static/styles/components/dropdown-menu.css.js";
|
|
10
|
-
import a from "../static/styles/components/
|
|
11
|
-
import u from "../static/styles/components/
|
|
12
|
-
import c from "../static/styles/components/
|
|
13
|
-
import d from "../static/styles/components/
|
|
14
|
-
import l from "../static/styles/components/
|
|
15
|
-
import h from "../static/styles/components/
|
|
16
|
-
import w from "../static/styles/
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
import a from "../static/styles/components/loader.css.js";
|
|
11
|
+
import u from "../static/styles/components/narrow-panel.css.js";
|
|
12
|
+
import c from "../static/styles/components/switcher.css.js";
|
|
13
|
+
import d from "../static/styles/components/tabs.css.js";
|
|
14
|
+
import l from "../static/styles/components/tools.css.js";
|
|
15
|
+
import h from "../static/styles/components/version-history.css.js";
|
|
16
|
+
import w from "../static/styles/components/wide-panel.css.js";
|
|
17
|
+
import y from "../static/styles/variables.css.js";
|
|
18
|
+
const B = [
|
|
19
|
+
y,
|
|
19
20
|
// Must be on top
|
|
20
21
|
S,
|
|
21
22
|
// Must be on top
|
|
@@ -32,12 +33,13 @@ const y = [
|
|
|
32
33
|
c,
|
|
33
34
|
d,
|
|
34
35
|
l,
|
|
35
|
-
h
|
|
36
|
+
h,
|
|
37
|
+
w
|
|
36
38
|
].join(`
|
|
37
39
|
|
|
38
|
-
`),
|
|
40
|
+
`), R = () => ({ importCss: () => {
|
|
39
41
|
const o = new CSSStyleSheet();
|
|
40
|
-
o.replaceSync(
|
|
42
|
+
o.replaceSync(B);
|
|
41
43
|
const r = document.querySelector("ui-editor");
|
|
42
44
|
if (!r)
|
|
43
45
|
return;
|
|
@@ -45,5 +47,5 @@ const y = [
|
|
|
45
47
|
t && (t.adoptedStyleSheets = [o]);
|
|
46
48
|
} });
|
|
47
49
|
export {
|
|
48
|
-
|
|
50
|
+
R as useCustomInterfaceAppearance
|
|
49
51
|
};
|
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
import { DefaultProductType as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { TEST_PARTNER_LIST as r, DefaultProductType as o, ProductIds as n } from "../enums/defaults.js";
|
|
2
|
+
const i = () => {
|
|
3
|
+
const e = () => window.location.hostname.split(".")[0] || "";
|
|
4
|
+
return {
|
|
5
|
+
getPartnerName: e,
|
|
6
|
+
getProductType: () => {
|
|
7
|
+
const t = window.location.pathname.split("/").filter(Boolean)[0] || o;
|
|
8
|
+
return n[t] || 0;
|
|
9
|
+
},
|
|
10
|
+
isTestPartner: () => {
|
|
11
|
+
const t = e();
|
|
12
|
+
return r.includes(t);
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
};
|
|
9
16
|
export {
|
|
10
|
-
|
|
17
|
+
i as usePartner
|
|
11
18
|
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { useEditorStore as n } from "../stores/editor.js";
|
|
2
|
-
import { usePreviewStore as
|
|
3
|
-
import { useActionsApi as
|
|
4
|
-
import { useCodeEditorApi as
|
|
2
|
+
import { usePreviewStore as l } from "../stores/preview.js";
|
|
3
|
+
import { useActionsApi as m } from "./useActionsApi.js";
|
|
4
|
+
import { useCodeEditorApi as p } from "./useCodeEditorApi.js";
|
|
5
5
|
const E = () => {
|
|
6
|
-
const
|
|
7
|
-
|
|
6
|
+
const o = n(), e = l(), { closeCodeEditor: a } = p(), { getPreviewData: s } = m(), r = () => {
|
|
7
|
+
o.isPreviewModeOpen = !1, e.$reset();
|
|
8
8
|
};
|
|
9
9
|
return {
|
|
10
10
|
closePreviewMode: r,
|
|
11
11
|
openPreviewMode: () => {
|
|
12
|
-
|
|
12
|
+
o.isCodeEditorOpen && a(), o.isPreviewModeOpen = !0;
|
|
13
13
|
},
|
|
14
14
|
loadPreviewData: async () => {
|
|
15
|
-
if (!(
|
|
16
|
-
|
|
15
|
+
if (!(o.loadingStatus || e.isLoaded)) {
|
|
16
|
+
o.loadingStatus = !0;
|
|
17
17
|
try {
|
|
18
|
-
const { html:
|
|
19
|
-
e.templateHtml =
|
|
20
|
-
} catch (
|
|
21
|
-
console.error("Failed to load preview data:",
|
|
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();
|
|
22
22
|
} finally {
|
|
23
|
-
|
|
23
|
+
o.loadingStatus = !1;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
}
|