@useinsider/guido 3.11.0-beta.6a6fc58 → 3.11.0-beta.7ad3437
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/dist/components/Guido.vue.js +3 -3
- package/dist/components/Guido.vue2.js +41 -41
- package/dist/components/organisms/header/EditorActions.vue.js +1 -1
- package/dist/components/organisms/header/HeaderWrapper.vue.js +3 -3
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +0 -2
- package/dist/components/organisms/header/version-history/VersionHistory.vue.js +1 -1
- package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +10 -11
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +1 -1
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +6 -6
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +12 -11
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +3 -3
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +7 -8
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.js +5 -5
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue2.js +2 -2
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +3 -3
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +9 -9
- package/dist/enums/onboarding.js +13 -11
- package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +41 -43
- package/dist/guido.css +1 -1
- package/dist/src/composables/useHtmlValidator.test.d.ts +1 -0
- package/dist/src/config/compiler/utils/recommendationIgnoreUtils.test.d.ts +1 -0
- package/dist/src/enums/onboarding.d.ts +3 -0
- package/dist/stores/onboarding.js +14 -11
- package/package.json +1 -10
|
@@ -3,16 +3,16 @@ import i from "./Guido.vue2.js";
|
|
|
3
3
|
import a from "../_virtual/_plugin-vue2_normalizer.js";
|
|
4
4
|
var t = function() {
|
|
5
5
|
var o = this, r = o._self._c, e = o._self._setupProxy;
|
|
6
|
-
return r("div", { ref: "wrapperRef", staticClass: "guido-editor__wrapper", class: { "guido-editor__no-header": e.noHeader } }, [r(e.HeaderWrapper, { ref: "headerWrapperRef" }), r(e.AutoSaveController), e.editorStore.isPreviewModeOpen ? r(e.PreviewContainer) : o._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isLoaded, expression: "!previewStore.isLoaded" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": e.noHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.FilterSelectionDrawer), r(e.SaveAsTemplateDrawer), e.
|
|
6
|
+
return r("div", { ref: "wrapperRef", staticClass: "guido-editor__wrapper", class: { "guido-editor__no-header": e.noHeader } }, [r(e.HeaderWrapper, { ref: "headerWrapperRef" }), r(e.AutoSaveController), e.editorStore.isPreviewModeOpen ? r(e.PreviewContainer) : o._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isLoaded, expression: "!previewStore.isLoaded" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": e.noHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.FilterSelectionDrawer), r(e.SaveAsTemplateDrawer), e.FORCE_ONBOARDING_FOR_TESTING || !e.isTestPartner() ? r(e.OnboardingWrapper, { on: { "onboarding-finished": function(_) {
|
|
7
7
|
return e.emit("onboarding:finished");
|
|
8
|
-
} } }), r(e.UnsubscribeWrapper), r(e.LoadingWrapper)], 1);
|
|
8
|
+
} } }) : o._e(), r(e.UnsubscribeWrapper), r(e.LoadingWrapper)], 1);
|
|
9
9
|
}, n = [], s = /* @__PURE__ */ a(
|
|
10
10
|
i,
|
|
11
11
|
t,
|
|
12
12
|
n,
|
|
13
13
|
!1,
|
|
14
14
|
null,
|
|
15
|
-
"
|
|
15
|
+
"57d338df"
|
|
16
16
|
);
|
|
17
17
|
const l = s.exports;
|
|
18
18
|
export {
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { defineComponent as X, defineAsyncComponent as
|
|
1
|
+
import { defineComponent as X, defineAsyncComponent as P, ref as G, computed as W, watch as Y, onMounted as Z, onUnmounted as ee } from "vue";
|
|
2
2
|
import { useCortexBlueprintBridge as oe } from "../composables/useCortexBlueprintBridge.js";
|
|
3
3
|
import { provideGuidoActions as te } from "../composables/useGuidoActions.js";
|
|
4
4
|
import { useGuidoStateBridge as ne } from "../composables/useGuidoStateBridge.js";
|
|
5
5
|
import { usePartner as re } from "../composables/usePartner.js";
|
|
6
6
|
import { useStripo as se } from "../composables/useStripo.js";
|
|
7
7
|
import { useTimerClone as ae } from "../composables/useTimerClone.js";
|
|
8
|
-
import { migrate as
|
|
8
|
+
import { migrate as x } from "../config/migrator/index.js";
|
|
9
9
|
import { ModuleFolderDefaults as H } from "../enums/defaults.js";
|
|
10
|
-
import {
|
|
11
|
-
import { useRecommendationExtensionStore as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import { useStripoApi as
|
|
20
|
-
import { useConfigStore as
|
|
21
|
-
import { useDynamicContentStore as
|
|
10
|
+
import { FORCE_ONBOARDING_FOR_TESTING as ce, RIBBON_SELECTOR as ie } from "../enums/onboarding.js";
|
|
11
|
+
import { useRecommendationExtensionStore as me } from "../extensions/Blocks/Recommendation/store/recommendation.js";
|
|
12
|
+
import de from "./organisms/AutoSaveController.vue.js";
|
|
13
|
+
import le from "./organisms/base/Toaster.vue.js";
|
|
14
|
+
import ue from "./organisms/extensions/recommendation/FilterSelectionDrawer.vue.js";
|
|
15
|
+
import pe from "./organisms/header/HeaderWrapper.vue.js";
|
|
16
|
+
import fe from "./organisms/LoadingWrapper.vue.js";
|
|
17
|
+
import ve from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
|
|
18
|
+
import Se from "./organisms/unsubscribe/UnsubscribeWrapper.vue.js";
|
|
19
|
+
import { useStripoApi as ye } from "../services/stripoApi.js";
|
|
20
|
+
import { useConfigStore as he } from "../stores/config.js";
|
|
21
|
+
import { useDynamicContentStore as ge } from "../stores/dynamic-content.js";
|
|
22
22
|
import { useEditorStore as $ } from "../stores/editor.js";
|
|
23
|
-
import { usePreviewStore as
|
|
24
|
-
import { useTemplateStore as
|
|
25
|
-
import { useUnsubscribeStore as
|
|
26
|
-
const
|
|
23
|
+
import { usePreviewStore as be } from "../stores/preview.js";
|
|
24
|
+
import { useTemplateStore as Ee } from "../stores/template.js";
|
|
25
|
+
import { useUnsubscribeStore as we } from "../stores/unsubscribe.js";
|
|
26
|
+
const je = /* @__PURE__ */ X({
|
|
27
27
|
__name: "Guido",
|
|
28
28
|
props: {
|
|
29
29
|
config: null
|
|
30
30
|
},
|
|
31
31
|
emits: ["dynamic-content:open", "back", "save:start", "save:complete", "on-change", "ready", "onboarding:finished", "test-email:click"],
|
|
32
32
|
setup(z, { expose: q, emit: n }) {
|
|
33
|
-
const b = z, K =
|
|
33
|
+
const b = z, K = P(
|
|
34
34
|
() => import("./organisms/email-preview/PreviewContainer.vue.js")
|
|
35
|
-
), V =
|
|
35
|
+
), V = P(
|
|
36
36
|
() => import("./organisms/onboarding/OnboardingWrapper.vue.js")
|
|
37
|
-
), E =
|
|
37
|
+
), E = G(), p = G(), f = ge(), w = we(), i = he();
|
|
38
38
|
i.init(b.config);
|
|
39
|
-
const m = $(), j =
|
|
39
|
+
const m = $(), j = be(), d = W(() => m.hasChanges), { isTestPartner: J } = re(), D = () => {
|
|
40
40
|
var e;
|
|
41
41
|
return (e = E.value) == null ? void 0 : e.handleSave(!0);
|
|
42
42
|
}, C = (e) => {
|
|
@@ -44,25 +44,25 @@ const Ve = /* @__PURE__ */ X({
|
|
|
44
44
|
}, {
|
|
45
45
|
templateId: v,
|
|
46
46
|
userId: T,
|
|
47
|
-
partnerName:
|
|
48
|
-
username:
|
|
47
|
+
partnerName: O,
|
|
48
|
+
username: _,
|
|
49
49
|
template: o,
|
|
50
50
|
editor: s
|
|
51
|
-
} = i, l = (o == null ? void 0 : o.html) || "", F = (o == null ? void 0 : o.css) || "", S = (o == null ? void 0 : o.preselectedDynamicContent) || [],
|
|
51
|
+
} = i, l = (o == null ? void 0 : o.html) || "", F = (o == null ? void 0 : o.css) || "", S = (o == null ? void 0 : o.preselectedDynamicContent) || [], R = (s == null ? void 0 : s.savedModulesFolderName) || H.SAVED_MODULES, L = (s == null ? void 0 : s.defaultModulesFolderName) || H.DEFAULT_MODULES;
|
|
52
52
|
oe(), ne();
|
|
53
53
|
const y = {
|
|
54
54
|
emailId: v,
|
|
55
55
|
userId: T,
|
|
56
|
-
username:
|
|
57
|
-
partnerName:
|
|
58
|
-
savedModulesFolderName:
|
|
59
|
-
defaultModulesFolderName:
|
|
60
|
-
},
|
|
56
|
+
username: _,
|
|
57
|
+
partnerName: O,
|
|
58
|
+
savedModulesFolderName: R,
|
|
59
|
+
defaultModulesFolderName: L
|
|
60
|
+
}, N = {
|
|
61
61
|
preselectedDynamicContentList: S,
|
|
62
62
|
onReady: () => {
|
|
63
63
|
console.debug("guido:ready"), n("ready");
|
|
64
64
|
}
|
|
65
|
-
}, { initPlugin:
|
|
65
|
+
}, { initPlugin: k } = se(y, N), { getDefaultTemplate: U } = ye(), { cloneTimersOnSave: A, hasTimerBlocks: B } = ae(), Q = W(() => {
|
|
66
66
|
var e;
|
|
67
67
|
return !((e = i.ui) != null && e.showHeader);
|
|
68
68
|
});
|
|
@@ -81,9 +81,9 @@ const Ve = /* @__PURE__ */ X({
|
|
|
81
81
|
console.debug("guido:test-email:click"), n("test-email:click");
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
|
-
const
|
|
84
|
+
const I = (e) => {
|
|
85
85
|
console.debug("dynamic-content:close", e), f.setSelectedDynamicContent(e), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: e }));
|
|
86
|
-
},
|
|
86
|
+
}, M = () => {
|
|
87
87
|
console.debug("dynamic-content:close", "Without Data"), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: { text: "", value: "" } }));
|
|
88
88
|
};
|
|
89
89
|
Y(() => d.value, () => {
|
|
@@ -96,22 +96,22 @@ const Ve = /* @__PURE__ */ X({
|
|
|
96
96
|
let a = null;
|
|
97
97
|
const g = () => {
|
|
98
98
|
var t;
|
|
99
|
-
const e = document.querySelector(
|
|
99
|
+
const e = document.querySelector(ie);
|
|
100
100
|
(t = p.value) == null || t.style.setProperty("--ribbon-offset", `${(e == null ? void 0 : e.offsetHeight) ?? 0}px`);
|
|
101
101
|
};
|
|
102
102
|
return Z(async () => {
|
|
103
103
|
var t, u;
|
|
104
|
-
console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow"),
|
|
104
|
+
console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow"), me().$reset(), $().$reset(), m.templateId = v, Ee().$reset(), g();
|
|
105
105
|
const e = (t = p.value) == null ? void 0 : t.parentElement;
|
|
106
106
|
e && (a = new ResizeObserver(g), a.observe(e));
|
|
107
107
|
try {
|
|
108
108
|
w.selectedUnsubscribePages = (o == null ? void 0 : o.selectedUnsubscribePages) || [];
|
|
109
109
|
const c = ((u = o == null ? void 0 : o.migration) == null ? void 0 : u.recommendationConfigs) ?? {};
|
|
110
110
|
let r = {
|
|
111
|
-
html: l && await
|
|
111
|
+
html: l && await x(l, c),
|
|
112
112
|
css: F
|
|
113
113
|
};
|
|
114
|
-
r.html || (r = await
|
|
114
|
+
r.html || (r = await U(), r.html = await x(r.html, c)), B(r.html) && (r.html = await A(r.html)), await k(r), f.selectedDynamicContentList = S;
|
|
115
115
|
} catch (c) {
|
|
116
116
|
console.error("Failed to initialize Stripo editor:", c);
|
|
117
117
|
}
|
|
@@ -126,15 +126,15 @@ const Ve = /* @__PURE__ */ X({
|
|
|
126
126
|
i.reset();
|
|
127
127
|
}), q({
|
|
128
128
|
dynamicContent: {
|
|
129
|
-
insert:
|
|
130
|
-
close:
|
|
129
|
+
insert: I,
|
|
130
|
+
close: M
|
|
131
131
|
},
|
|
132
132
|
hasChanges: d,
|
|
133
133
|
saveSilent: D,
|
|
134
134
|
setLoading: C
|
|
135
|
-
}), { __sfc: !0, PreviewContainer: K, OnboardingWrapper: V, headerWrapperRef: E, wrapperRef: p, dynamicContentStore: f, unsubscribeStore: w, props: b, configStore: i, editorStore: m, previewStore: j, hasChanges: d, isTestPartner: J, saveSilent: D, setLoading: C, templateId: v, userId: T, partnerName:
|
|
135
|
+
}), { __sfc: !0, PreviewContainer: K, OnboardingWrapper: V, headerWrapperRef: E, wrapperRef: p, dynamicContentStore: f, unsubscribeStore: w, props: b, configStore: i, editorStore: m, previewStore: j, hasChanges: d, isTestPartner: J, saveSilent: D, setLoading: C, templateId: v, userId: T, partnerName: O, username: _, templateConfig: o, editorConfig: s, html: l, css: F, preselectedDynamicContentList: S, savedModulesFolderName: R, defaultModulesFolderName: L, emit: n, metadata: y, options: N, initPlugin: k, getDefaultTemplate: U, cloneTimersOnSave: A, hasTimerBlocks: B, noHeader: Q, insertDynamicContent: I, closeDynamicContent: M, handleDynamicContentOpen: h, ribbonObserver: a, updateRibbonOffset: g, FORCE_ONBOARDING_FOR_TESTING: ce, AutoSaveController: de, Toaster: le, FilterSelectionDrawer: ue, HeaderWrapper: pe, LoadingWrapper: fe, SaveAsTemplateDrawer: ve, UnsubscribeWrapper: Se };
|
|
136
136
|
}
|
|
137
137
|
});
|
|
138
138
|
export {
|
|
139
|
-
|
|
139
|
+
je as default
|
|
140
140
|
};
|
|
@@ -8,8 +8,6 @@ const c = /* @__PURE__ */ n({
|
|
|
8
8
|
setup(l, { expose: r }) {
|
|
9
9
|
const e = m(null);
|
|
10
10
|
return r({
|
|
11
|
-
// Stryker disable next-line OptionalChaining: RightSlot is always rendered (no
|
|
12
|
-
// v-if), so rightSlotRef.value is never null and `?.` cannot short-circuit.
|
|
13
11
|
handleSave: (t) => {
|
|
14
12
|
var o;
|
|
15
13
|
return (o = e.value) == null ? void 0 : o.handleSave(t);
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import d from "./AMPOnboarding.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
2
|
import g from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
return o.isVisible ? p(o.InOnboard, { key: "guido__amp-onboard", staticClass: "w-21-s p-a z-11", class: (
|
|
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) {
|
|
8
7
|
return o.onboardingStore.close("ampOnboarding");
|
|
9
|
-
}, nextButtonClick: o.handleNext } }) :
|
|
10
|
-
}, m = [],
|
|
8
|
+
}, nextButtonClick: o.handleNext } }) : n._e();
|
|
9
|
+
}, m = [], c = /* @__PURE__ */ g(
|
|
11
10
|
d,
|
|
12
|
-
|
|
11
|
+
l,
|
|
13
12
|
m,
|
|
14
13
|
!1,
|
|
15
14
|
null,
|
|
16
|
-
|
|
15
|
+
null
|
|
17
16
|
);
|
|
18
|
-
const
|
|
17
|
+
const f = c.exports;
|
|
19
18
|
export {
|
|
20
|
-
|
|
19
|
+
f as default
|
|
21
20
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import g from "./ItemsOnboarding.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import m from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
-
var
|
|
4
|
+
var l = function() {
|
|
5
5
|
var e, n, r, i, s, a;
|
|
6
6
|
var o = this, d = o._self._c, t = o._self._setupProxy;
|
|
7
|
-
return t.isVisible ? d(t.InOnboard, { key: "guido__items-onboard", staticClass: "w-21-s p-a z-11", class: (e = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : e.classes, attrs: { id: "guido__items-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (n = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : n.bottom, "left-position": (r = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : r.left, "pages-config": t.onboardingStore.onboardings.itemsOnboarding.config, "pointer-position": (i = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : i.position, "right-position": (s = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : s.right, "top-position": (a = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : a.top }, on: { backButtonClick: t.handleBack, close: function(
|
|
7
|
+
return t.isVisible ? d(t.InOnboard, { key: "guido__items-onboard", staticClass: "w-21-s p-a z-11", class: (e = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : e.classes, attrs: { id: "guido__items-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (n = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : n.bottom, "left-position": (r = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : r.left, "pages-config": t.onboardingStore.onboardings.itemsOnboarding.config, "pointer-position": (i = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : i.position, "right-position": (s = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : s.right, "top-position": (a = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : a.top }, on: { backButtonClick: t.handleBack, close: function(b) {
|
|
8
8
|
return t.onboardingStore.close("itemsOnboarding");
|
|
9
9
|
}, nextButtonClick: t.handleNext } }) : o._e();
|
|
10
|
-
},
|
|
10
|
+
}, c = [], p = /* @__PURE__ */ m(
|
|
11
11
|
g,
|
|
12
|
-
c,
|
|
13
12
|
l,
|
|
13
|
+
c,
|
|
14
14
|
!1,
|
|
15
15
|
null,
|
|
16
|
-
"
|
|
16
|
+
"796d193b"
|
|
17
17
|
);
|
|
18
|
-
const I =
|
|
18
|
+
const I = p.exports;
|
|
19
19
|
export {
|
|
20
20
|
I as default
|
|
21
21
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as g, computed as e, onMounted as b, watch as t } from "vue";
|
|
2
2
|
import u from "./AMPOnboarding.vue.js";
|
|
3
3
|
import v from "./GenericOnboarding.vue.js";
|
|
4
4
|
import l from "./ItemsOnboarding.vue.js";
|
|
@@ -6,22 +6,23 @@ import y from "./NewVersionPopup.vue.js";
|
|
|
6
6
|
import S from "./TextBlockOnboarding.vue.js";
|
|
7
7
|
import h from "./VersionHistoryOnboarding.vue.js";
|
|
8
8
|
import { usePartner as w } from "../../../composables/usePartner.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
9
|
+
import { FORCE_ONBOARDING_FOR_TESTING as P } from "../../../enums/onboarding.js";
|
|
10
|
+
import { useEditorStore as _ } from "../../../stores/editor.js";
|
|
11
|
+
import { useOnboardingStore as A } from "../../../stores/onboarding.js";
|
|
12
|
+
import { usePreviewStore as H } from "../../../stores/preview.js";
|
|
13
|
+
const z = /* @__PURE__ */ g({
|
|
13
14
|
__name: "OnboardingWrapper",
|
|
14
15
|
emits: ["onboarding-finished"],
|
|
15
|
-
setup(
|
|
16
|
-
const o =
|
|
16
|
+
setup(M, { emit: f }) {
|
|
17
|
+
const o = A(), r = _(), s = H(), { isTestPartner: a } = w(), p = e(() => r.isStripoInitialized), m = e(() => !P && a()), d = [
|
|
17
18
|
{ type: "newVersionPopup", component: y },
|
|
18
19
|
{ type: "genericOnboarding", component: v },
|
|
19
20
|
{ type: "textBlockOnboarding", component: S },
|
|
20
21
|
{ type: "versionHistoryOnboarding", component: h },
|
|
21
22
|
{ type: "ampOnboarding", component: u },
|
|
22
23
|
{ type: "itemsOnboarding", component: l }
|
|
23
|
-
], c = (n) =>
|
|
24
|
-
return
|
|
24
|
+
], c = (n) => m.value || !p.value ? !1 : n === "newVersionPopup" ? o.shouldShowOnboarding(n) : o.isActive(n), O = e(() => d.filter((n) => c(n.type)));
|
|
25
|
+
return b(async () => {
|
|
25
26
|
await o.fetchUserModalState();
|
|
26
27
|
}), t(
|
|
27
28
|
() => r.isVersionHistoryOpen,
|
|
@@ -38,9 +39,9 @@ const G = /* @__PURE__ */ b({
|
|
|
38
39
|
(n) => {
|
|
39
40
|
!n && o.isActive("ampOnboarding") && o.close("ampOnboarding");
|
|
40
41
|
}
|
|
41
|
-
), { __sfc: !0, emit: f, onboardingStore: o, editorStore: r, previewStore: s, isTestPartner: a, isStripoReady: p, isTestPartnerActive:
|
|
42
|
+
), { __sfc: !0, emit: f, onboardingStore: o, editorStore: r, previewStore: s, isTestPartner: a, isStripoReady: p, isTestPartnerActive: m, onboardingConfigs: d, shouldShow: c, visibleOnboardings: O };
|
|
42
43
|
}
|
|
43
44
|
});
|
|
44
45
|
export {
|
|
45
|
-
|
|
46
|
+
z as default
|
|
46
47
|
};
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import g from "./VersionHistoryOnboarding.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
2
|
import l from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
3
|
var c = function() {
|
|
5
|
-
var
|
|
4
|
+
var n, t, i, e, s, a;
|
|
6
5
|
var r = this, d = r._self._c, o = r._self._setupProxy;
|
|
7
|
-
return o.isVisible ? d(o.InOnboard, { key: "guido__version-history-onboard", staticClass: "w-21-s p-a z-11", class: (
|
|
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) {
|
|
8
7
|
return o.onboardingStore.close("versionHistoryOnboarding");
|
|
9
8
|
}, nextButtonClick: o.handleNext } }) : r._e();
|
|
10
|
-
},
|
|
9
|
+
}, _ = [], p = /* @__PURE__ */ l(
|
|
11
10
|
g,
|
|
12
11
|
c,
|
|
13
|
-
|
|
12
|
+
_,
|
|
14
13
|
!1,
|
|
15
14
|
null,
|
|
16
|
-
|
|
15
|
+
null
|
|
17
16
|
);
|
|
18
|
-
const
|
|
17
|
+
const m = p.exports;
|
|
19
18
|
export {
|
|
20
|
-
|
|
19
|
+
m as default
|
|
21
20
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import n from "./UnsubscribePageSelection.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
3
|
+
import a from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
4
|
var o = function() {
|
|
5
5
|
var r = this, e = r._self._c, t = r._self._setupProxy;
|
|
6
6
|
return e(t.WpDrawer, { attrs: { id: "unsubscribe-modal", "description-status": "", size: "large", "footer-button-group-options": t.footerButtonGroupOptions, status: t.unsubscribeStore.pageSelectionDrawerStatus, "title-text": t.trans("newsletter.select-a-template") }, on: { cancelOrBackButtonEvent: t.handleBack, onCloseEvent: t.handleClose, primaryButtonEvent: t.handleSave }, scopedSlots: r._u([{ key: "headerBottomSlot", fn: function() {
|
|
@@ -10,13 +10,13 @@ var o = function() {
|
|
|
10
10
|
return t.selectTemplate(s.id);
|
|
11
11
|
} } }, [e(t.InContainer, { staticClass: "template-container o-h", class: { selected: t.unsubscribeStore.getSelectedTemplateByActiveType === s.id }, attrs: { border: t.getBorderClass(s.id) } }, [e("div", { staticClass: "w-1 h-1 d-f j-c-c a-i-c" }, [e("img", { staticClass: "w-1 h-1 thumbnail o-h", attrs: { alt: s.name, src: s.thumbnail } })])]), e("div", { staticClass: "mt-1 f-s-1" }, [r._v(" " + r._s(s.name) + " ")])], 1);
|
|
12
12
|
}), 0)]);
|
|
13
|
-
}, i = [], c = /* @__PURE__ */
|
|
14
|
-
|
|
13
|
+
}, i = [], c = /* @__PURE__ */ a(
|
|
14
|
+
n,
|
|
15
15
|
o,
|
|
16
16
|
i,
|
|
17
17
|
!1,
|
|
18
18
|
null,
|
|
19
|
-
"
|
|
19
|
+
"669fe7cf"
|
|
20
20
|
);
|
|
21
21
|
const _ = c.exports;
|
|
22
22
|
export {
|
|
@@ -29,9 +29,9 @@ const N = /* @__PURE__ */ y({
|
|
|
29
29
|
t();
|
|
30
30
|
}, 500);
|
|
31
31
|
}, m = () => {
|
|
32
|
-
|
|
32
|
+
n(), e.pageSelectionUpdateStatus || document.dispatchEvent(new CustomEvent("unsubscribe:cancel", {
|
|
33
33
|
detail: { blockId: e.pendingBlockId }
|
|
34
|
-
}))
|
|
34
|
+
}));
|
|
35
35
|
}, b = () => {
|
|
36
36
|
if (e.isActiveTypeFirstInCollection) {
|
|
37
37
|
n(), e.pageSelectionUpdateStatus || (e.typeSelectionDrawerStatus = !0);
|
|
@@ -2,15 +2,15 @@ import n from "./UnsubscribeTypeSelection.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
4
|
var i = function() {
|
|
5
|
-
var
|
|
6
|
-
return s(
|
|
5
|
+
var e = this, s = e._self._c, t = e._self._setupProxy;
|
|
6
|
+
return s(t.WpDrawer, { attrs: { id: "unsubscribe-modal", "description-status": "", "description-text": t.descriptionText, "footer-button-group-options": t.footerButtonGroupOptions, status: t.unsubscribeStore.typeSelectionDrawerStatus, "title-text": t.trans("unsubscription-preference.select-unsubscribe-page-title") }, on: { cancelOrBackButtonEvent: t.closeModal, onCloseEvent: t.closeModal, primaryButtonEvent: t.selectCollection } }, [s(t.InSegments, { staticClass: "w-1", attrs: { "with-icon": "", align: "vertical", disable: t.isSelecting, "segment-list": t.segmentList, selected: t.selectedCollection, "skeleton-sizing": { width: 495, height: 180 }, "skeleton-status": t.skeletonStatus }, on: { click: t.changeCollection } })], 1);
|
|
7
7
|
}, r = [], c = /* @__PURE__ */ o(
|
|
8
8
|
n,
|
|
9
9
|
i,
|
|
10
10
|
r,
|
|
11
11
|
!1,
|
|
12
12
|
null,
|
|
13
|
-
"
|
|
13
|
+
"7a305bb2"
|
|
14
14
|
);
|
|
15
15
|
const _ = c.exports;
|
|
16
16
|
export {
|
|
@@ -10,10 +10,10 @@ import { InSegments as L } from "@useinsider/design-system-vue";
|
|
|
10
10
|
const W = /* @__PURE__ */ _({
|
|
11
11
|
__name: "UnsubscribeTypeSelection",
|
|
12
12
|
setup(k) {
|
|
13
|
-
const t = N(), { showToaster: d } = w(), e = G(), n = b(!1), o = b(!0), r = b(l.GLOBAL_UNSUBSCRIBE),
|
|
13
|
+
const t = N(), { showToaster: d } = w(), e = G(), n = b(!1), o = b(!0), r = b(l.GLOBAL_UNSUBSCRIBE), T = t(
|
|
14
14
|
"unsubscription-preference.select-unsubscribe-page-description",
|
|
15
15
|
{ action: `<a href="${D.GLOBAL_UNSUBSCRIBE}" target="_blank">${t("ds-rules.visit-academy")}</a>` }
|
|
16
|
-
),
|
|
16
|
+
), y = f(() => [
|
|
17
17
|
{
|
|
18
18
|
description: t("unsubscription-preference.type-global-unsubscribe-description"),
|
|
19
19
|
icon: "line-contact-global-unsub-page",
|
|
@@ -31,7 +31,7 @@ const W = /* @__PURE__ */ _({
|
|
|
31
31
|
disable: e.isSubscriptionPreferencesCenterDisabled,
|
|
32
32
|
tooltipText: e.isSubscriptionPreferencesCenterDisabled ? t("unsubscription-preference.pref-center-added") : ""
|
|
33
33
|
}
|
|
34
|
-
]),
|
|
34
|
+
]), g = f(
|
|
35
35
|
() => e.isGlobalUnsubscribeDisabled && e.isSubscriptionPreferencesCenterDisabled
|
|
36
36
|
), C = f(() => ({
|
|
37
37
|
primaryButton: {
|
|
@@ -41,7 +41,7 @@ const W = /* @__PURE__ */ _({
|
|
|
41
41
|
n.value ? "unsubscription-preference.selecting-type" : "products.select-and-continue"
|
|
42
42
|
),
|
|
43
43
|
loadingStatus: n.value,
|
|
44
|
-
disabledStatus:
|
|
44
|
+
disabledStatus: g.value,
|
|
45
45
|
skeletonStatus: o.value,
|
|
46
46
|
skeletonSizing: { width: 168, height: 40 }
|
|
47
47
|
},
|
|
@@ -53,12 +53,12 @@ const W = /* @__PURE__ */ _({
|
|
|
53
53
|
skeletonStatus: o.value,
|
|
54
54
|
skeletonSizing: { width: 78, height: 40 }
|
|
55
55
|
}
|
|
56
|
-
})),
|
|
57
|
-
e.typeSelectionDrawerStatus
|
|
56
|
+
})), S = (s) => {
|
|
57
|
+
e.typeSelectionDrawerStatus = !1, document.dispatchEvent(new CustomEvent("unsubscribe:cancel", {
|
|
58
58
|
detail: { blockId: e.pendingBlockId }
|
|
59
59
|
})), s && setTimeout(() => {
|
|
60
60
|
s();
|
|
61
|
-
}, 500)
|
|
61
|
+
}, 500);
|
|
62
62
|
}, E = (s) => {
|
|
63
63
|
r.value = s;
|
|
64
64
|
}, m = () => {
|
|
@@ -98,14 +98,14 @@ const W = /* @__PURE__ */ _({
|
|
|
98
98
|
}), !1;
|
|
99
99
|
}, B = async () => {
|
|
100
100
|
if (n.value = !0, await e.fetchTemplates(!0), e.setCollection(r.value), !m()) {
|
|
101
|
-
n.value = !1,
|
|
101
|
+
n.value = !1, S();
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
104
104
|
n.value = !1, e.typeSelectionDrawerStatus = !1, e.pageSelectionDrawerStatus = !0;
|
|
105
105
|
};
|
|
106
106
|
return v(() => e.typeSelectionDrawerStatus, (s) => {
|
|
107
107
|
s && (o.value = !0, r.value = l.GLOBAL_UNSUBSCRIBE, e.isGlobalUnsubscribeDisabled && (r.value = e.isSubscriptionPreferencesCenterDisabled ? 0 : l.SUBSCRIPTION_PREFERENCE_CENTER), o.value = !1);
|
|
108
|
-
}), { __sfc: !0, trans: t, showToaster: d, unsubscribeStore: e, isSelecting: n, skeletonStatus: o, selectedCollection: r, descriptionText:
|
|
108
|
+
}), { __sfc: !0, trans: t, showToaster: d, unsubscribeStore: e, isSelecting: n, skeletonStatus: o, selectedCollection: r, descriptionText: T, segmentList: y, hasNoSelectableType: g, footerButtonGroupOptions: C, closeModal: S, changeCollection: E, validateTemplates: m, selectCollection: B, WpDrawer: U, InSegments: L };
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
export {
|
package/dist/enums/onboarding.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
const e = [
|
|
1
|
+
const e = "insidethekube.com", t = typeof window < "u" && window.location.hostname.endsWith(e), n = ["newVersionPopup", "itemsOnboarding"], o = [
|
|
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
|
-
],
|
|
5
|
+
], s = "ui-editor", E = 'button[role="tab"][aria-label="Card Composition"]', i = 'button[role="tab"][aria-label="Settings"]', O = ".in-ribbons-wrapper", _ = ".guido__amp-toggle-html", a = ".in-segments-wrapper", T = '[data-testid="guido-header"]', c = 158, r = 10;
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
_ as AMP_TOGGLE_BUTTON_SELECTOR,
|
|
8
8
|
a as AMP_TOGGLE_WRAPPER_SELECTOR,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
E as CARD_COMPOSITION_TAB_SELECTOR,
|
|
10
|
+
n as FORCED_ONBOARDING_TYPES,
|
|
11
|
+
t as FORCE_ONBOARDING_FOR_TESTING,
|
|
12
|
+
T as HEADER_SELECTOR,
|
|
13
|
+
c as POPOVER_LEFT_OFFSET,
|
|
14
|
+
r as POPOVER_TOP_GAP,
|
|
15
|
+
O as RIBBON_SELECTOR,
|
|
16
|
+
o as SERVICE_HOVER_SELECTORS,
|
|
17
|
+
i as SETTINGS_TAB_SELECTOR,
|
|
18
|
+
s as UI_EDITOR_SELECTOR
|
|
17
19
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ModificationDescription as
|
|
2
|
-
import { CommonControl as
|
|
3
|
-
import { ItemsBlockControlId as R, ItemsBlockId as
|
|
4
|
-
import { productPairs as
|
|
5
|
-
import { getItemsBlockConfig as
|
|
6
|
-
const
|
|
1
|
+
import { ModificationDescription as L, UIElementType as P, UEAttr as D } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { CommonControl as h } from "../../../common-control.js";
|
|
3
|
+
import { ItemsBlockControlId as R, ItemsBlockId as _ } from "../../enums/controlEnums.js";
|
|
4
|
+
import { productPairs as I } from "../../enums/productEnums.js";
|
|
5
|
+
import { getItemsBlockConfig as d, setItemsBlockConfig as u, escapeReplacement as O } from "../../utils/nodeConfigUtils.js";
|
|
6
|
+
const g = R.PRICE_FORMATTED_PRICE, s = {
|
|
7
7
|
FORMATTED_PRICE: "formattedPrice"
|
|
8
8
|
};
|
|
9
|
-
class k extends
|
|
9
|
+
class k extends h {
|
|
10
10
|
getId() {
|
|
11
|
-
return
|
|
11
|
+
return g;
|
|
12
12
|
}
|
|
13
13
|
getTemplate() {
|
|
14
14
|
return `
|
|
@@ -18,58 +18,56 @@ class k extends D {
|
|
|
18
18
|
`;
|
|
19
19
|
}
|
|
20
20
|
onRender() {
|
|
21
|
-
const
|
|
22
|
-
this.api.updateValues({ [
|
|
23
|
-
this._onFormattedPriceChange(
|
|
21
|
+
const t = d(this.currentNode);
|
|
22
|
+
this.api.updateValues({ [s.FORMATTED_PRICE]: (t == null ? void 0 : t.priceFormatted) ?? !0 }), this.api.onValueChanged(s.FORMATTED_PRICE, (e) => {
|
|
23
|
+
this._onFormattedPriceChange(e);
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
onTemplateNodeUpdated(
|
|
27
|
-
super.onTemplateNodeUpdated(
|
|
28
|
-
const
|
|
29
|
-
this.api.updateValues({ [
|
|
26
|
+
onTemplateNodeUpdated(t) {
|
|
27
|
+
super.onTemplateNodeUpdated(t), this.handleBlockInstanceChange(() => {
|
|
28
|
+
const e = d(this.currentNode);
|
|
29
|
+
this.api.updateValues({ [s.FORMATTED_PRICE]: (e == null ? void 0 : e.priceFormatted) ?? !0 });
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
_onFormattedPriceChange(
|
|
33
|
-
if (console.debug("Formatted price changed to: ",
|
|
32
|
+
_onFormattedPriceChange(t) {
|
|
33
|
+
if (console.debug("Formatted price changed to: ", t), u(this.currentNode, this.api, { priceFormatted: t }), !this.currentNode)
|
|
34
34
|
return;
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
const e = d(this.currentNode), n = (e == null ? void 0 : e.type) ?? "CART_ITEMS", i = (e == null ? void 0 : e.priceSinglePrice) ?? !1, r = I.PAIRS_FOR_EXTENSION.price[n], c = I.PAIRS_FOR_EXTENSION.originalPrice[n], [p, m] = t ? [
|
|
36
|
+
i ? r.DEFAULT_SINGLE_PRICE : r.DEFAULT_PRICE,
|
|
37
|
+
i ? r.DEFAULT_SINGLE_PRICE_FORMATTED : r.DEFAULT_PRICE_FORMATTED
|
|
38
38
|
] : [
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
],
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
((
|
|
45
|
-
|
|
46
|
-
)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
)
|
|
51
|
-
|
|
52
|
-
}), s.apply(new C(
|
|
53
|
-
`Updated price to ${e ? "formatted" : "unformatted"}`
|
|
39
|
+
i ? r.DEFAULT_SINGLE_PRICE_FORMATTED : r.DEFAULT_PRICE_FORMATTED,
|
|
40
|
+
i ? r.DEFAULT_SINGLE_PRICE : r.DEFAULT_PRICE
|
|
41
|
+
], l = i ? c.DEFAULT_SINGLE_PRICE : c.DEFAULT_PRICE, T = i ? c.DEFAULT_SINGLE_PRICE_FORMATTED : c.DEFAULT_PRICE_FORMATTED, [F, A] = t ? [l, T] : [T, l], o = this.currentNode.closest(".items-block"), C = (o == null ? void 0 : o.querySelectorAll(
|
|
42
|
+
`[esd-extension-block-id="${_.PRICE}"]`
|
|
43
|
+
)) || [], E = this.api.getDocumentModifier();
|
|
44
|
+
C.forEach((a) => {
|
|
45
|
+
this._updatePriceBlock(E, a, p, m);
|
|
46
|
+
}), ((o == null ? void 0 : o.querySelectorAll(
|
|
47
|
+
`[esd-extension-block-id="${_.ORIGINAL_PRICE}"]`
|
|
48
|
+
)) || []).forEach((a) => {
|
|
49
|
+
this._updatePriceBlock(E, a, F, A);
|
|
50
|
+
}), E.apply(new L(
|
|
51
|
+
`Updated price to ${t ? "formatted" : "unformatted"}`
|
|
54
52
|
));
|
|
55
53
|
}
|
|
56
|
-
_updatePriceBlock(
|
|
57
|
-
const
|
|
58
|
-
|
|
54
|
+
_updatePriceBlock(t, e, n, i) {
|
|
55
|
+
const r = e.getInnerHTML().trim().replace(n, O(i));
|
|
56
|
+
t.modifyHtml(e).setInnerHtml(r);
|
|
59
57
|
}
|
|
60
58
|
_getFormattedPrice() {
|
|
61
59
|
return `
|
|
62
60
|
<div class="display-flex align-items-center justify-content-between">
|
|
63
|
-
<${
|
|
64
|
-
${
|
|
61
|
+
<${P.LABEL}
|
|
62
|
+
${D.LABEL.text}="${this.api.translate("Formatted Price (e.g. $9.90)")}"
|
|
65
63
|
>
|
|
66
|
-
</${
|
|
67
|
-
${this._GuToggle(
|
|
64
|
+
</${P.LABEL}>
|
|
65
|
+
${this._GuToggle(s.FORMATTED_PRICE)}
|
|
68
66
|
</div>
|
|
69
67
|
`;
|
|
70
68
|
}
|
|
71
69
|
}
|
|
72
70
|
export {
|
|
73
|
-
|
|
71
|
+
g as CONTROL_BLOCK_ID,
|
|
74
72
|
k as PriceFormattedPriceControl
|
|
75
73
|
};
|
package/dist/guido.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-73199fa4] .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-
|
|
1
|
+
.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-73199fa4] .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}.auto-save-toggle[data-v-2c964af4]{position:relative}.auto-save-toggle__info-box[data-v-2c964af4]{position:absolute;top:100%;left:0;z-index:10;width:280px}.editor-actions[data-v-82128f7d]{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-57d338df]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-57d338df]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-57d338df]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-669fe7cf]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-669fe7cf]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-669fe7cf]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-669fe7cf]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-669fe7cf]{object-fit:cover;transform:scale(1)}[data-v-7a305bb2] .guido__verion-history-view-option-selection-desktop svg,[data-v-7a305bb2] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-7a305bb2] .in-segments-wrapper__button_selected,[data-v-7a305bb2] .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-06afaecb]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-06afaecb]{min-height:504px}.iframe-wrapper[data-v-cbafc185]{width:258px}.iframe-scaled[data-v-cbafc185]{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}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { OnboardingType } from '@@/Types/onboarding';
|
|
2
|
+
export declare const FORCE_ONBOARDING_FOR_TESTING: boolean;
|
|
3
|
+
export declare const FORCED_ONBOARDING_TYPES: OnboardingType[];
|
|
1
4
|
export declare const SERVICE_HOVER_SELECTORS: string[];
|
|
2
5
|
export declare const UI_EDITOR_SELECTOR = "ui-editor";
|
|
3
6
|
export declare const CARD_COMPOSITION_TAB_SELECTOR = "button[role=\"tab\"][aria-label=\"Card Composition\"]";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { FORCE_ONBOARDING_FOR_TESTING as e, FORCED_ONBOARDING_TYPES as a } from "../enums/onboarding.js";
|
|
2
|
+
import { useOnboardingApi as s } from "../services/onboardingApi.js";
|
|
3
|
+
import { defineStore as d } from "pinia";
|
|
3
4
|
const t = () => ({
|
|
4
5
|
cardIndex: 0,
|
|
5
6
|
isActive: !1,
|
|
6
7
|
config: []
|
|
7
|
-
}),
|
|
8
|
+
}), g = () => ({
|
|
8
9
|
onboardings: {
|
|
9
10
|
newVersionPopup: t(),
|
|
10
11
|
genericOnboarding: t(),
|
|
@@ -15,8 +16,8 @@ const t = () => ({
|
|
|
15
16
|
},
|
|
16
17
|
userModalState: {},
|
|
17
18
|
isFetched: !1
|
|
18
|
-
}),
|
|
19
|
-
state: () =>
|
|
19
|
+
}), u = d("guidoOnboarding", {
|
|
20
|
+
state: () => g(),
|
|
20
21
|
getters: {
|
|
21
22
|
getOnboarding: (n) => (i) => n.onboardings[i],
|
|
22
23
|
isActive: (n) => (i) => n.onboardings[i].isActive,
|
|
@@ -45,6 +46,8 @@ const t = () => ({
|
|
|
45
46
|
return i.config[i.cardIndex];
|
|
46
47
|
},
|
|
47
48
|
shouldShowOnboarding: (n) => (i) => {
|
|
49
|
+
if (e && a.includes(i))
|
|
50
|
+
return !0;
|
|
48
51
|
const o = n.userModalState.Guido;
|
|
49
52
|
return i === "newVersionPopup" && (o != null && o.genericOnboarding) ? !1 : o ? !o[i] : !0;
|
|
50
53
|
}
|
|
@@ -72,8 +75,8 @@ const t = () => ({
|
|
|
72
75
|
this.onboardings[n].cardIndex > 0 && this.onboardings[n].cardIndex--;
|
|
73
76
|
},
|
|
74
77
|
updateCardPosition(n, i, o) {
|
|
75
|
-
const
|
|
76
|
-
|
|
78
|
+
const r = this.onboardings[n].config[i];
|
|
79
|
+
r && (r.top = o.top, r.position = o.position);
|
|
77
80
|
},
|
|
78
81
|
setConfig(n, i) {
|
|
79
82
|
this.onboardings[n].config = i ?? [], this.onboardings[n].cardIndex >= this.onboardings[n].config.length && (this.onboardings[n].cardIndex = 0);
|
|
@@ -93,15 +96,15 @@ const t = () => ({
|
|
|
93
96
|
async fetchUserModalState() {
|
|
94
97
|
if (this.isFetched)
|
|
95
98
|
return;
|
|
96
|
-
const { fetchUserModalState: n } =
|
|
99
|
+
const { fetchUserModalState: n } = s(), i = await n();
|
|
97
100
|
this.userModalState = i, this.isFetched = !0;
|
|
98
101
|
},
|
|
99
102
|
async setUserModalState(n, i, o) {
|
|
100
|
-
const { setUserModalState:
|
|
101
|
-
await
|
|
103
|
+
const { setUserModalState: r } = s();
|
|
104
|
+
await r(n, i, o), this.isFetched = !1, await this.fetchUserModalState();
|
|
102
105
|
}
|
|
103
106
|
}
|
|
104
107
|
});
|
|
105
108
|
export {
|
|
106
|
-
|
|
109
|
+
u as useOnboardingStore
|
|
107
110
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "3.11.0-beta.
|
|
3
|
+
"version": "3.11.0-beta.7ad3437",
|
|
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",
|
|
@@ -23,19 +23,12 @@
|
|
|
23
23
|
"preview": "vite preview",
|
|
24
24
|
"lint": "NODE_OPTIONS=--max-old-space-size=2048 eslint ./ && bun run type-check",
|
|
25
25
|
"lint:fix": "NODE_OPTIONS=--max-old-space-size=2048 eslint --fix ./",
|
|
26
|
-
"lint:e2e-quality": "node scripts/lint-e2e-quality.mjs",
|
|
27
|
-
"lint:e2e-quality:ci": "node scripts/lint-e2e-quality.mjs --ci",
|
|
28
|
-
"lint:e2e-quality:update": "node scripts/lint-e2e-quality.mjs --update-baseline",
|
|
29
|
-
"lint:e2e-quality:baseline-growth": "node scripts/lint-e2e-quality.mjs --check-baseline-growth",
|
|
30
|
-
"test:e2e-mutation": "node scripts/e2e-mutation-check.mjs",
|
|
31
26
|
"type-check": "vue-tsc --noEmit --project tsconfig.config.json && vue-tsc --noEmit --project tsconfig.app.json",
|
|
32
27
|
"test": "vitest run --coverage",
|
|
33
28
|
"test:watch": "vitest",
|
|
34
29
|
"test:visual-update": "npx playwright test --update-snapshots --reporter html",
|
|
35
30
|
"test:e2e:coverage": "E2E_COVERAGE=true playwright test",
|
|
36
31
|
"coverage:e2e:report": "nyc report --reporter=lcov --reporter=text-summary --report-dir=coverage/e2e",
|
|
37
|
-
"test:mutation": "stryker run",
|
|
38
|
-
"test:mutation:since": "CHANGED=$(git diff --name-only --diff-filter=AMR origin/develop...HEAD -- 'src/**/*.ts' ':(glob)src/components/organisms/onboarding/**/*.vue' ':(glob)src/components/organisms/header/**/*.vue' ':(glob)src/components/organisms/unsubscribe/**/*.vue' ':(glob)src/components/organisms/save-as-template/**/*.vue' ':(glob)src/components/organisms/email-preview/**/*.vue' ':(glob)src/components/wrappers/**/*.vue' 'src/components/Guido.vue' ':(exclude)src/**/*.test.ts' ':(exclude)src/**/index.ts' ':(exclude)src/@types/**' ':(exclude)src/enums/**' ':(exclude)src/mock/**' ':(exclude)src/**/_Boilerplate/**' | paste -sd, -); if [ -n \"$CHANGED\" ]; then stryker run --incremental --mutate \"$CHANGED\"; else echo \"No changed mutatable src files vs origin/develop\"; fi",
|
|
39
32
|
"prepare": "husky",
|
|
40
33
|
"preinstall": "rm -rf ./node_modules/.vite"
|
|
41
34
|
},
|
|
@@ -59,8 +52,6 @@
|
|
|
59
52
|
"@eslint/eslintrc": "3.3.0",
|
|
60
53
|
"@eslint/js": "8.57.1",
|
|
61
54
|
"@playwright/test": "1.57.0",
|
|
62
|
-
"@stryker-mutator/core": "9.6.1",
|
|
63
|
-
"@stryker-mutator/vitest-runner": "9.6.1",
|
|
64
55
|
"@stylistic/eslint-plugin": "3.1.0",
|
|
65
56
|
"@stylistic/eslint-plugin-migrate": "3.1.0",
|
|
66
57
|
"@types/eslint": "8.56.12",
|