@useinsider/guido 1.0.2-beta.4dd4c2c → 1.0.2-beta.4e8474b
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 +43 -1
- package/dist/@types/events.d.ts +6 -0
- package/dist/@types/generic.d.ts +5 -0
- package/dist/components/Guido.vue.d.ts +3 -0
- package/dist/components/Guido.vue.js +10 -10
- package/dist/components/Guido.vue2.js +80 -63
- package/dist/components/organisms/LoadingWrapper.vue.js +1 -1
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +3 -2
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +14 -15
- package/dist/components/organisms/header/HeaderWrapper.vue.d.ts +3 -1
- package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -6
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +15 -9
- package/dist/components/organisms/header/RightSlot.vue.d.ts +3 -1
- package/dist/components/organisms/header/RightSlot.vue.js +5 -3
- package/dist/components/organisms/header/RightSlot.vue2.js +25 -27
- package/dist/components/organisms/header/ViewOptions.vue.js +11 -11
- package/dist/components/organisms/header/ViewOptions.vue2.js +5 -5
- 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.js +13 -13
- package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +21 -23
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +14 -14
- package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +26 -28
- package/dist/components/organisms/onboarding/NewVersionPopup.vue.js +1 -1
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +11 -9
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +37 -14
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +13 -13
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +38 -28
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +14 -14
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +21 -23
- package/dist/components/wrappers/WpDrawer.vue.d.ts +1 -1
- package/dist/components/wrappers/WpModal.vue.d.ts +1 -1
- package/dist/composables/useCustomInterfaceAppearance.js +22 -18
- package/dist/composables/useHtmlCompiler.js +17 -9
- package/dist/composables/useHtmlValidator.d.ts +3 -0
- package/dist/composables/useHtmlValidator.js +120 -0
- package/dist/composables/usePartner.d.ts +1 -0
- package/dist/composables/usePartner.js +16 -9
- package/dist/composables/usePreviewMode.js +14 -15
- package/dist/composables/useRecommendation.d.ts +19 -0
- package/dist/composables/useRecommendation.js +27 -0
- package/dist/composables/useSave.d.ts +4 -0
- package/dist/composables/useSave.js +15 -0
- package/dist/composables/useStripo.js +32 -31
- package/dist/composables/useStripoEventHandler.js +8 -8
- package/dist/composables/useToaster.js +17 -17
- package/dist/config/compiler/outlookCompilerRules.d.ts +2 -0
- package/dist/config/compiler/outlookCompilerRules.js +36 -0
- package/dist/config/compiler/recommendationCompilerRules.d.ts +2 -0
- package/dist/config/compiler/recommendationCompilerRules.js +83 -0
- package/dist/config/compiler/socialCompilerRules.d.ts +2 -0
- package/dist/config/compiler/socialCompilerRules.js +21 -0
- package/dist/config/compiler/unsubscribeCompilerRules.d.ts +2 -0
- package/dist/config/compiler/unsubscribeCompilerRules.js +64 -0
- package/dist/enums/defaults.d.ts +6 -1
- package/dist/enums/defaults.js +47 -10
- package/dist/enums/html-validator.d.ts +6 -0
- package/dist/enums/html-validator.js +7 -0
- package/dist/enums/recommendation.d.ts +54 -0
- package/dist/enums/recommendation.js +56 -0
- package/dist/enums/unsubscribe.d.ts +15 -0
- package/dist/enums/unsubscribe.js +17 -0
- package/dist/guido.css +1 -1
- package/dist/mock/api/validator.d.ts +2 -0
- package/dist/services/onboardingApi.d.ts +4 -0
- package/dist/services/onboardingApi.js +23 -0
- package/dist/static/styles/components/alert-message.css.js +32 -2
- package/dist/static/styles/components/button.css.js +32 -2
- package/dist/static/styles/components/notification.css.js +55 -0
- package/dist/static/styles/components/popup.css.js +68 -0
- package/dist/static/styles/components/wide-panel.css.js +13 -0
- package/dist/static/styles/customEditorStyle.css.js +24 -0
- package/dist/static/styles/variables.css.js +10 -0
- package/dist/stores/dynamic-content.d.ts +12 -0
- package/dist/stores/dynamic-content.js +7 -6
- package/dist/stores/onboarding.d.ts +98 -1028
- package/dist/stores/onboarding.js +54 -67
- package/dist/stores/preview.js +6 -14
- package/dist/stores/recommendation.d.ts +10 -0
- package/dist/stores/recommendation.js +9 -0
- package/dist/stores/unsubscribe.d.ts +8 -0
- package/dist/stores/unsubscribe.js +9 -0
- package/dist/utils/genericUtil.js +9 -6
- package/dist/utils/templatePreparation.js +21 -14
- package/package.json +4 -2
- package/dist/composables/useOnboardingApi.d.ts +0 -4
- package/dist/composables/useOnboardingApi.js +0 -23
|
@@ -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 {
|
|
6
|
-
const
|
|
5
|
+
import { InChips as r, InSegments as m } from "@useinsider/design-system-vue";
|
|
6
|
+
const f = /* @__PURE__ */ n({
|
|
7
7
|
__name: "ViewOptions",
|
|
8
|
-
setup(
|
|
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
|
-
|
|
33
|
+
f as default
|
|
34
34
|
};
|
|
@@ -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
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
return
|
|
7
|
-
return
|
|
8
|
-
}, nextButtonClick:
|
|
9
|
-
},
|
|
10
|
-
l,
|
|
11
|
-
u,
|
|
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(
|
|
12
10
|
d,
|
|
11
|
+
l,
|
|
12
|
+
m,
|
|
13
13
|
!1,
|
|
14
14
|
null,
|
|
15
15
|
null
|
|
16
16
|
);
|
|
17
|
-
const
|
|
17
|
+
const f = c.exports;
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
f as default
|
|
20
20
|
};
|
|
@@ -1,39 +1,37 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTranslations as
|
|
3
|
-
import { useOnboardingStore as
|
|
4
|
-
import { InOnboard as
|
|
5
|
-
const
|
|
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({
|
|
6
6
|
__name: "AMPOnboarding",
|
|
7
|
-
setup(
|
|
8
|
-
const
|
|
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,
|
|
12
12
|
top: "70px",
|
|
13
13
|
position: "Top Center",
|
|
14
|
-
title:
|
|
15
|
-
description:
|
|
14
|
+
title: i("email-editor.onboarding-amp-title"),
|
|
15
|
+
description: i("email-editor.onboarding-amp-description"),
|
|
16
16
|
imageSource: "",
|
|
17
17
|
backButtonClick: () => {
|
|
18
18
|
},
|
|
19
19
|
nextButtonType: "text",
|
|
20
|
-
nextButtonText:
|
|
21
|
-
nextButtonClick: () => void
|
|
20
|
+
nextButtonText: i("action-builder.ok"),
|
|
21
|
+
nextButtonClick: () => void o.close("ampOnboarding")
|
|
22
22
|
}
|
|
23
|
-
]), d =
|
|
24
|
-
var
|
|
25
|
-
(
|
|
26
|
-
},
|
|
27
|
-
var
|
|
28
|
-
(
|
|
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);
|
|
29
29
|
};
|
|
30
|
-
return
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}, 500);
|
|
34
|
-
}, { immediate: !0 }), { __sfc: !0, trans: e, store: n, centerLeft: r, onboardingCardsConfig: s, isVisible: d, status: c, config: m, currentCard: a, handleNext: p, handleBack: u, InOnboard: C };
|
|
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 };
|
|
35
33
|
}
|
|
36
34
|
});
|
|
37
35
|
export {
|
|
38
|
-
|
|
36
|
+
O as default
|
|
39
37
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import c from "./GenericOnboarding.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
var
|
|
5
|
-
var r,
|
|
6
|
-
var o = this,
|
|
7
|
-
return
|
|
8
|
-
return
|
|
9
|
-
}, nextButtonClick:
|
|
10
|
-
},
|
|
11
|
-
|
|
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, d = o._self._c, e = o._self._setupProxy;
|
|
7
|
+
return e.isVisible ? d(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
|
+
c,
|
|
12
|
+
l,
|
|
12
13
|
p,
|
|
13
|
-
u,
|
|
14
14
|
!1,
|
|
15
15
|
null,
|
|
16
|
-
"
|
|
16
|
+
"d3c52b44"
|
|
17
17
|
);
|
|
18
|
-
const
|
|
18
|
+
const S = _.exports;
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
S as default
|
|
21
21
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTranslations as
|
|
3
|
-
import { SERVICE_HOVER_SELECTORS as
|
|
4
|
-
import { useOnboardingStore as
|
|
5
|
-
import { InOnboard as
|
|
6
|
-
const
|
|
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
7
|
__name: "GenericOnboarding",
|
|
8
|
-
setup(
|
|
9
|
-
const e =
|
|
8
|
+
setup(B) {
|
|
9
|
+
const e = x(), o = k(), r = i(() => `${window.innerWidth / 2 - 160}px`), c = () => {
|
|
10
10
|
const t = document.querySelector("ui-editor");
|
|
11
|
-
t != null && t.shadowRoot &&
|
|
12
|
-
var
|
|
13
|
-
const
|
|
14
|
-
|
|
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
15
|
});
|
|
16
|
-
},
|
|
16
|
+
}, s = i(() => [
|
|
17
17
|
{
|
|
18
18
|
classes: "guido-onboarding-blocks",
|
|
19
19
|
left: "90px",
|
|
20
20
|
top: "90px",
|
|
21
|
-
position: "Top
|
|
21
|
+
position: "Left Top",
|
|
22
22
|
title: e("email-editor.onboarding-blocks-title"),
|
|
23
23
|
description: e("email-editor.onboarding-blocks-description"),
|
|
24
24
|
imageSource: "",
|
|
@@ -33,8 +33,8 @@ const y = /* @__PURE__ */ m({
|
|
|
33
33
|
{
|
|
34
34
|
classes: "guido-onboarding-stripes",
|
|
35
35
|
right: "450px",
|
|
36
|
-
bottom: "
|
|
37
|
-
position: "Right
|
|
36
|
+
bottom: "38px",
|
|
37
|
+
position: "Right Bottom",
|
|
38
38
|
title: e("email-editor.onboarding-stripes-title"),
|
|
39
39
|
description: e("email-editor.onboarding-stripes-description"),
|
|
40
40
|
imageSource: "",
|
|
@@ -51,7 +51,7 @@ const y = /* @__PURE__ */ m({
|
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
classes: "guido-onboarding-preview",
|
|
54
|
-
left:
|
|
54
|
+
left: r.value,
|
|
55
55
|
top: "90px",
|
|
56
56
|
position: "Top Center",
|
|
57
57
|
title: e("email-editor.onboarding-preview-title"),
|
|
@@ -61,25 +61,23 @@ const y = /* @__PURE__ */ m({
|
|
|
61
61
|
backButtonText: e("ds-steps.back"),
|
|
62
62
|
backButtonClick: () => o.previous("genericOnboarding"),
|
|
63
63
|
nextButtonType: "text",
|
|
64
|
-
nextButtonText: e("
|
|
64
|
+
nextButtonText: e("action-builder.ok"),
|
|
65
65
|
nextButtonClick: () => {
|
|
66
66
|
o.close("genericOnboarding");
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
]), g = i(() => o.genericOnboarding.config.length > 0
|
|
69
|
+
]), g = i(() => o.onboardings.genericOnboarding.config.length > 0 && o.onboardings.genericOnboarding.isActive), p = () => {
|
|
70
70
|
var t, n;
|
|
71
|
-
(n = (t =
|
|
72
|
-
},
|
|
71
|
+
(n = (t = o.getGenericCurrentCard) == null ? void 0 : t.nextButtonClick) == null || n.call(t);
|
|
72
|
+
}, u = () => {
|
|
73
73
|
var t, n;
|
|
74
|
-
(n = (t =
|
|
74
|
+
(n = (t = o.getGenericCurrentCard) == null ? void 0 : t.backButtonClick) == null || n.call(t);
|
|
75
75
|
};
|
|
76
|
-
return
|
|
77
|
-
t &&
|
|
78
|
-
|
|
79
|
-
}, 500);
|
|
80
|
-
}, { immediate: !0 }), { __sfc: !0, trans: e, onboardingStore: o, centerLeft: s, addHoverToServiceElements: c, onboardingCardsConfig: a, isVisible: g, status: d, config: l, currentCard: r, handleNext: b, handleBack: x, InOnboard: T };
|
|
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 };
|
|
81
79
|
}
|
|
82
80
|
});
|
|
83
81
|
export {
|
|
84
|
-
|
|
82
|
+
S as default
|
|
85
83
|
};
|
|
@@ -2,7 +2,7 @@ import s from "./NewVersionPopup.vue2.js";
|
|
|
2
2
|
import n from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
3
|
var r = function() {
|
|
4
4
|
var e = this, t = e._self._c, o = e._self._setupProxy;
|
|
5
|
-
return o.isVisible ? t(o.WpModal, { attrs: { id: "
|
|
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
6
|
}, i = [], a = /* @__PURE__ */ n(
|
|
7
7
|
s,
|
|
8
8
|
r,
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import o from "./OnboardingWrapper.vue2.js";
|
|
2
|
+
import _ from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
3
|
var s = function() {
|
|
4
|
-
var
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
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,
|
|
8
10
|
s,
|
|
9
|
-
|
|
11
|
+
a,
|
|
10
12
|
!1,
|
|
11
13
|
null,
|
|
12
14
|
null
|
|
13
15
|
);
|
|
14
|
-
const
|
|
16
|
+
const m = p.exports;
|
|
15
17
|
export {
|
|
16
|
-
|
|
18
|
+
m as default
|
|
17
19
|
};
|
|
@@ -1,20 +1,43 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
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({
|
|
10
12
|
__name: "OnboardingWrapper",
|
|
11
|
-
setup(
|
|
12
|
-
const o =
|
|
13
|
-
|
|
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 () => {
|
|
14
22
|
await o.fetchUserModalState();
|
|
15
|
-
}),
|
|
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 };
|
|
16
39
|
}
|
|
17
40
|
});
|
|
18
41
|
export {
|
|
19
|
-
|
|
42
|
+
E as default
|
|
20
43
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import l from "./TextBlockOnboarding.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
var
|
|
5
|
-
var e,
|
|
6
|
-
var
|
|
7
|
-
return
|
|
8
|
-
return
|
|
9
|
-
}, nextButtonClick:
|
|
10
|
-
},
|
|
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
11
|
l,
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
g,
|
|
13
|
+
b,
|
|
14
14
|
!1,
|
|
15
15
|
null,
|
|
16
|
-
"
|
|
16
|
+
"a408dcea"
|
|
17
17
|
);
|
|
18
|
-
const
|
|
18
|
+
const f = p.exports;
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
f as default
|
|
21
21
|
};
|
|
@@ -1,23 +1,35 @@
|
|
|
1
|
-
import { defineComponent as u, computed as
|
|
2
|
-
import { useTranslations as
|
|
3
|
-
import { useOnboardingStore as
|
|
4
|
-
import { InOnboard as
|
|
5
|
-
const
|
|
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({
|
|
6
6
|
__name: "TextBlockOnboarding",
|
|
7
|
-
setup(
|
|
8
|
-
const
|
|
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(() => [
|
|
9
21
|
{
|
|
10
22
|
classes: "guido-text-block-onboarding-settings",
|
|
11
23
|
right: "450px",
|
|
12
|
-
top:
|
|
13
|
-
position:
|
|
14
|
-
title:
|
|
15
|
-
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"),
|
|
16
28
|
imageSource: "",
|
|
17
29
|
backButtonClick: () => {
|
|
18
30
|
},
|
|
19
31
|
nextButtonType: "text",
|
|
20
|
-
nextButtonText:
|
|
32
|
+
nextButtonText: i("products.next"),
|
|
21
33
|
nextButtonClick: () => {
|
|
22
34
|
o.next("textBlockOnboarding");
|
|
23
35
|
}
|
|
@@ -25,40 +37,38 @@ const T = /* @__PURE__ */ u({
|
|
|
25
37
|
{
|
|
26
38
|
classes: "guido-text-block-onboarding-dynamic",
|
|
27
39
|
right: "450px",
|
|
28
|
-
top:
|
|
29
|
-
position:
|
|
30
|
-
title:
|
|
31
|
-
description:
|
|
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"),
|
|
32
44
|
imageSource: "",
|
|
33
45
|
backButtonType: "text",
|
|
34
|
-
backButtonText:
|
|
46
|
+
backButtonText: i("ds-steps.back"),
|
|
35
47
|
backButtonClick: () => {
|
|
36
48
|
o.previous("textBlockOnboarding");
|
|
37
49
|
},
|
|
38
50
|
nextButtonType: "text",
|
|
39
|
-
nextButtonText:
|
|
51
|
+
nextButtonText: i("action-builder.ok"),
|
|
40
52
|
nextButtonClick: () => {
|
|
41
53
|
o.close("textBlockOnboarding");
|
|
42
54
|
}
|
|
43
55
|
}
|
|
44
|
-
]),
|
|
45
|
-
var t,
|
|
46
|
-
(
|
|
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);
|
|
47
59
|
}, x = () => {
|
|
48
|
-
var t,
|
|
49
|
-
(
|
|
60
|
+
var t, n;
|
|
61
|
+
(n = (t = o.getTextBlockCurrentCard) == null ? void 0 : t.backButtonClick) == null || n.call(t);
|
|
50
62
|
};
|
|
51
63
|
return b(
|
|
52
64
|
() => o.isActive("textBlockOnboarding"),
|
|
53
65
|
(t) => {
|
|
54
|
-
t &&
|
|
55
|
-
o.setConfig("textBlockOnboarding", r.value);
|
|
56
|
-
}, 500);
|
|
66
|
+
t && o.setConfig("textBlockOnboarding", c.value);
|
|
57
67
|
},
|
|
58
68
|
{ immediate: !0 }
|
|
59
|
-
), { __sfc: !0, trans:
|
|
69
|
+
), { __sfc: !0, trans: i, onboardingStore: o, dynamicPosition: e, onboardingCardsConfig: c, isVisible: l, handleNext: p, handleBack: x, InOnboard: B };
|
|
60
70
|
}
|
|
61
71
|
});
|
|
62
72
|
export {
|
|
63
|
-
|
|
73
|
+
y as default
|
|
64
74
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
return
|
|
7
|
-
return
|
|
8
|
-
}, nextButtonClick:
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
13
|
!1,
|
|
14
14
|
null,
|
|
15
15
|
null
|
|
16
16
|
);
|
|
17
|
-
const
|
|
17
|
+
const m = p.exports;
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
m as default
|
|
20
20
|
};
|