@useinsider/guido 3.26.0-beta.bfc27f0 → 3.26.0-beta.e447cb1
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 +1 -1
- package/dist/components/Guido.vue2.js +26 -25
- package/dist/components/organisms/onboarding/RecommendationLegacyStrategyOnboarding.vue.js +1 -1
- package/dist/components/organisms/onboarding/RecommendationLegacyStrategyOnboarding.vue2.js +34 -25
- package/dist/guido.css +1 -1
- package/dist/package.json.js +2 -2
- package/dist/src/stores/onboarding.d.ts +1 -0
- package/dist/stores/onboarding.js +9 -6
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as ye, defineAsyncComponent as a, ref as W, computed as l, watch as G, onMounted as be, onUnmounted as ve } from "vue";
|
|
2
2
|
import { useCortexBlueprintBridge as Se } from "../composables/useCortexBlueprintBridge.js";
|
|
3
3
|
import { useEditorLock as he } from "../composables/useEditorLock.js";
|
|
4
4
|
import { startEditorOpenMetrics as Ee } from "../composables/useEditorOpenMetrics.js";
|
|
@@ -9,10 +9,10 @@ import { useSaveValidationRollout as Te } from "../composables/useSaveValidation
|
|
|
9
9
|
import { useStripo as ke } from "../composables/useStripo.js";
|
|
10
10
|
import { useTimerClone as Fe } from "../composables/useTimerClone.js";
|
|
11
11
|
import { useToaster as Ie } from "../composables/useToaster.js";
|
|
12
|
-
import { useTranslations as
|
|
13
|
-
import { migrate as
|
|
12
|
+
import { useTranslations as Le } from "../composables/useTranslations.js";
|
|
13
|
+
import { migrate as Me } from "../config/migrator/index.js";
|
|
14
14
|
import { ModuleFolderDefaults as $ } from "../enums/defaults.js";
|
|
15
|
-
import { RIBBON_SELECTOR as
|
|
15
|
+
import { RIBBON_SELECTOR as Re } from "../enums/onboarding.js";
|
|
16
16
|
import { ToasterTypeOptions as Ue } from "../enums/toaster.js";
|
|
17
17
|
import { useRecommendationExtensionStore as z, disposeStrategyPageReturnListeners as Oe } from "../extensions/Blocks/Recommendation/store/recommendation.js";
|
|
18
18
|
import { disposeUnsubscribeListeners as Ne } from "../extensions/Blocks/Unsubscribe/block.js";
|
|
@@ -30,12 +30,13 @@ import { useStripoApi as ze } from "../services/stripoApi.js";
|
|
|
30
30
|
import { useConfigStore as qe } from "../stores/config.js";
|
|
31
31
|
import { useDynamicContentStore as Ke } from "../stores/dynamic-content.js";
|
|
32
32
|
import { useEditorStore as C } from "../stores/editor.js";
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
33
|
+
import { useOnboardingStore as je } from "../stores/onboarding.js";
|
|
34
|
+
import { usePreviewStore as Je } from "../stores/preview.js";
|
|
35
|
+
import { useSaveValidationStore as Qe } from "../stores/save-validation.js";
|
|
36
|
+
import { useTemplateStore as Xe } from "../stores/template.js";
|
|
37
|
+
import { useUnsubscribeStore as Ye } from "../stores/unsubscribe.js";
|
|
37
38
|
import { readTrackFloor as q } from "../utils/linkTrackingIds.js";
|
|
38
|
-
const
|
|
39
|
+
const Pt = /* @__PURE__ */ ye({
|
|
39
40
|
__name: "Guido",
|
|
40
41
|
props: {
|
|
41
42
|
config: null,
|
|
@@ -57,9 +58,9 @@ const _t = /* @__PURE__ */ ge({
|
|
|
57
58
|
() => import("./organisms/extensions/recommendation/LegacyStrategyUpdatedModal.vue.js")
|
|
58
59
|
), te = a(
|
|
59
60
|
() => import("./organisms/unsubscribe/LegacyUnsubscribeConvertedModal.vue.js")
|
|
60
|
-
),
|
|
61
|
+
), g = W(), y = Ke(), w = Ye(), o = qe();
|
|
61
62
|
c.ready && o.init(c.config);
|
|
62
|
-
const d = C(), oe =
|
|
63
|
+
const d = C(), oe = Je(), p = l(() => d.hasChanges), { isTestPartner: ne } = we(), { isEnabled: re, loadRollout: T } = Te(), { showToaster: k } = Ie(), F = Le(), I = () => {
|
|
63
64
|
var t;
|
|
64
65
|
if (d.isVersionHistoryOpen) {
|
|
65
66
|
console.debug("guido:save:silent:blocked", { isVersionHistoryOpen: !0 }), k({
|
|
@@ -69,7 +70,7 @@ const _t = /* @__PURE__ */ ge({
|
|
|
69
70
|
return;
|
|
70
71
|
}
|
|
71
72
|
return (t = D.value) == null ? void 0 : t.saveSilent();
|
|
72
|
-
},
|
|
73
|
+
}, L = (t) => {
|
|
73
74
|
d.loadingStatus = t;
|
|
74
75
|
};
|
|
75
76
|
Se(), De();
|
|
@@ -83,7 +84,7 @@ const _t = /* @__PURE__ */ ge({
|
|
|
83
84
|
savedModulesFolderName: ((t = o.editor) == null ? void 0 : t.savedModulesFolderName) || $.SAVED_MODULES,
|
|
84
85
|
defaultModulesFolderName: ((e = o.editor) == null ? void 0 : e.defaultModulesFolderName) || $.DEFAULT_MODULES
|
|
85
86
|
};
|
|
86
|
-
}, { initPlugin:
|
|
87
|
+
}, { initPlugin: M, preloadRuntime: R } = ke(r), { runExclusive: U, beginMount: O, isCurrentMount: v } = he();
|
|
87
88
|
let f = 0;
|
|
88
89
|
const { getDefaultTemplate: N } = ze(), { cloneTimersOnSave: _, hasTimerBlocks: A } = Fe(), se = l(() => {
|
|
89
90
|
var t;
|
|
@@ -109,7 +110,7 @@ const _t = /* @__PURE__ */ ge({
|
|
|
109
110
|
}
|
|
110
111
|
});
|
|
111
112
|
const P = (t) => {
|
|
112
|
-
console.debug("dynamic-content:close", t),
|
|
113
|
+
console.debug("dynamic-content:close", t), y.setSelectedDynamicContent(t), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: t }));
|
|
113
114
|
}, x = () => {
|
|
114
115
|
console.debug("dynamic-content:close", "Without Data"), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: { text: "", value: "" } }));
|
|
115
116
|
};
|
|
@@ -123,8 +124,8 @@ const _t = /* @__PURE__ */ ge({
|
|
|
123
124
|
let m = null;
|
|
124
125
|
const h = () => {
|
|
125
126
|
var e;
|
|
126
|
-
const t = document.querySelector(
|
|
127
|
-
(e =
|
|
127
|
+
const t = document.querySelector(Re);
|
|
128
|
+
(e = g.value) == null || e.style.setProperty("--ribbon-offset", `${(t == null ? void 0 : t.offsetHeight) ?? 0}px`);
|
|
128
129
|
}, E = async () => {
|
|
129
130
|
var t;
|
|
130
131
|
r.mark("host_ready");
|
|
@@ -143,9 +144,9 @@ const _t = /* @__PURE__ */ ge({
|
|
|
143
144
|
rrsEnabled: o.isFeatureEnabled("reusableRecommendationStrategy")
|
|
144
145
|
}, ue = {
|
|
145
146
|
itemsPriceFormatting: o.isFeatureEnabled("itemsPriceFormatting")
|
|
146
|
-
}, V = (
|
|
147
|
+
}, V = (ge) => r.timed(
|
|
147
148
|
"migration",
|
|
148
|
-
() =>
|
|
149
|
+
() => Me(ge, me, le, ue)
|
|
149
150
|
);
|
|
150
151
|
let n = {
|
|
151
152
|
html: i && await V(i),
|
|
@@ -160,16 +161,16 @@ const _t = /* @__PURE__ */ ge({
|
|
|
160
161
|
console.debug("guido:ready"), s("ready");
|
|
161
162
|
}
|
|
162
163
|
};
|
|
163
|
-
f = O(), await
|
|
164
|
+
f = O(), await M(n, b(), fe, n.html !== i), y.selectedDynamicContentList = B;
|
|
164
165
|
} catch (e) {
|
|
165
166
|
console.error("Failed to initialize Stripo editor:", e), r.markFailed();
|
|
166
167
|
}
|
|
167
168
|
};
|
|
168
169
|
return be(async () => {
|
|
169
170
|
var e;
|
|
170
|
-
console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow"), z().$reset(), C().$reset(),
|
|
171
|
-
const t = (e =
|
|
172
|
-
if (t && (m = new ResizeObserver(h), m.observe(t)),
|
|
171
|
+
console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow"), z().$reset(), C().$reset(), Xe().$reset(), Qe().$reset(), je().forgetSessionClose("recommendationLegacyStrategyOnboarding"), T(), h();
|
|
172
|
+
const t = (e = g.value) == null ? void 0 : e.parentElement;
|
|
173
|
+
if (t && (m = new ResizeObserver(h), m.observe(t)), R(), c.ready)
|
|
173
174
|
await E();
|
|
174
175
|
else {
|
|
175
176
|
const i = G(() => c.ready, (u) => {
|
|
@@ -202,10 +203,10 @@ const _t = /* @__PURE__ */ ge({
|
|
|
202
203
|
},
|
|
203
204
|
hasChanges: p,
|
|
204
205
|
saveSilent: I,
|
|
205
|
-
setLoading:
|
|
206
|
-
}), { __sfc: !0, openMetrics: r, PreviewContainer: J, OnboardingWrapper: Q, AssignStrategyDrawer: X, RemoveStrategyModal: Y, DisplayConditionsHost: Z, autoSaveControllerRef: D, LegacyStrategyUpdatedModal: ee, LegacyUnsubscribeConvertedModal: te, wrapperRef:
|
|
206
|
+
setLoading: L
|
|
207
|
+
}), { __sfc: !0, openMetrics: r, PreviewContainer: J, OnboardingWrapper: Q, AssignStrategyDrawer: X, RemoveStrategyModal: Y, DisplayConditionsHost: Z, autoSaveControllerRef: D, LegacyStrategyUpdatedModal: ee, LegacyUnsubscribeConvertedModal: te, wrapperRef: g, dynamicContentStore: y, unsubscribeStore: w, props: c, configStore: o, editorStore: d, previewStore: oe, hasChanges: p, isTestPartner: ne, isSaveValidationEnabled: re, loadRollout: T, showToaster: k, trans: F, saveSilent: I, setLoading: L, emit: s, buildMetadata: b, initPlugin: M, preloadRuntime: R, runExclusive: U, beginMount: O, isCurrentMount: v, mountGeneration: f, getDefaultTemplate: N, cloneTimersOnSave: _, hasTimerBlocks: A, noHeader: se, isRrsEnabled: ie, isExternalDisplayConditionsEnabled: ae, isLegacyUnsubscribeConversionEnabled: ce, hasAssignedStrategy: de, insertDynamicContent: P, closeDynamicContent: x, handleDynamicContentOpen: S, ribbonObserver: m, updateRibbonOffset: h, startEditor: E, AutoSaveController: Ae, AuthErrorModal: Pe, Toaster: xe, FilterSelectionDrawer: Be, HeaderWrapper: He, LoadingWrapper: Ve, SaveAsTemplateDrawer: We, UnsubscribeWrapper: Ge, ValidationErrorDrawer: $e };
|
|
207
208
|
}
|
|
208
209
|
});
|
|
209
210
|
export {
|
|
210
|
-
|
|
211
|
+
Pt as default
|
|
211
212
|
};
|
|
@@ -1,46 +1,55 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRibbonOffset as
|
|
3
|
-
import { useTranslations as
|
|
4
|
-
import { ACADEMY_LINKS as
|
|
5
|
-
import { useOnboardingStore as
|
|
6
|
-
import { InOnboard as
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as p, computed as b, watch as f, onBeforeUnmount as y } from "vue";
|
|
2
|
+
import { useRibbonOffset as S } from "../../../composables/useRibbonOffset.js";
|
|
3
|
+
import { useTranslations as O } from "../../../composables/useTranslations.js";
|
|
4
|
+
import { ACADEMY_LINKS as _ } from "../../../enums/academy.js";
|
|
5
|
+
import { useOnboardingStore as C } from "../../../stores/onboarding.js";
|
|
6
|
+
import { InOnboard as L } from "@useinsider/design-system-vue";
|
|
7
|
+
const v = /* @__PURE__ */ p({
|
|
8
8
|
__name: "RecommendationLegacyStrategyOnboarding",
|
|
9
|
-
setup(
|
|
10
|
-
const
|
|
9
|
+
setup(h) {
|
|
10
|
+
const o = "recommendationLegacyStrategyOnboarding", r = O(), n = C(), { getTopPosition: c } = S(), s = `<a href="${_.EMAIL_RECOMMENDATION_BLOCK}" target="_blank" rel="noopener noreferrer">${r("action-builder.visit-academy")}</a>`, l = () => [
|
|
11
11
|
{
|
|
12
12
|
classes: "guido-recommendation-legacy-strategy-onboarding",
|
|
13
13
|
right: "40px",
|
|
14
|
-
top:
|
|
14
|
+
top: c(485),
|
|
15
15
|
position: "Top Right",
|
|
16
|
-
title:
|
|
17
|
-
description:
|
|
18
|
-
academyLink:
|
|
16
|
+
title: r("email-editor.onboarding-recommendation-strategy-legacy-title"),
|
|
17
|
+
description: r("email-editor.onboarding-recommendation-strategy-legacy-description", {
|
|
18
|
+
academyLink: s
|
|
19
19
|
}),
|
|
20
20
|
imageSource: "",
|
|
21
21
|
backButtonClick: () => {
|
|
22
22
|
},
|
|
23
23
|
nextButtonType: "text",
|
|
24
|
-
nextButtonText:
|
|
24
|
+
nextButtonText: r("action-builder.ok"),
|
|
25
25
|
nextButtonClick: () => {
|
|
26
|
-
|
|
26
|
+
n.close(o);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
],
|
|
30
|
-
() =>
|
|
31
|
-
),
|
|
32
|
-
var e,
|
|
33
|
-
(
|
|
29
|
+
], g = b(
|
|
30
|
+
() => n.onboardings.recommendationLegacyStrategyOnboarding.config.length > 0 && n.onboardings.recommendationLegacyStrategyOnboarding.isActive
|
|
31
|
+
), u = () => {
|
|
32
|
+
var e, d;
|
|
33
|
+
(d = (e = n.getRecommendationLegacyStrategyCurrentCard) == null ? void 0 : e.nextButtonClick) == null || d.call(e);
|
|
34
34
|
};
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
let t = null;
|
|
36
|
+
const i = ({ target: e }) => {
|
|
37
|
+
e instanceof Element && e.closest("ue-control-panel") && n.closeForSession(o);
|
|
38
|
+
}, a = () => {
|
|
39
|
+
t == null || t.removeEventListener("scroll", i, !0), t = null;
|
|
40
|
+
}, m = () => {
|
|
41
|
+
var e;
|
|
42
|
+
t = ((e = document.querySelector("ui-editor")) == null ? void 0 : e.shadowRoot) ?? null, t == null || t.addEventListener("scroll", i, !0);
|
|
43
|
+
};
|
|
44
|
+
return f(
|
|
45
|
+
() => n.isActive(o),
|
|
37
46
|
(e) => {
|
|
38
|
-
e
|
|
47
|
+
e ? (n.setConfig(o, l()), m()) : a();
|
|
39
48
|
},
|
|
40
49
|
{ immediate: !0 }
|
|
41
|
-
), { __sfc: !0, ONBOARDING_TYPE:
|
|
50
|
+
), y(a), { __sfc: !0, ONBOARDING_TYPE: o, trans: r, onboardingStore: n, getTopPosition: c, academyLink: s, buildOnboardingCards: l, isVisible: g, handleNext: u, editorRoot: t, handlePanelScroll: i, stopWatchingPanelScroll: a, startWatchingPanelScroll: m, InOnboard: L };
|
|
42
51
|
}
|
|
43
52
|
});
|
|
44
53
|
export {
|
|
45
|
-
|
|
54
|
+
v as default
|
|
46
55
|
};
|
package/dist/guido.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.auth-error-modal[data-v-b4d7ae51]{position:relative;z-index:145}.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-9d988e4b] .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}.color-vision-select__dropdown[data-v-64cb50da]{z-index:20;width:387px}.accessibility-toolbar[data-v-391019bc]{gap:16px}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button svg{margin-right:0}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button .clearfix:after{content:none}.view-options-wrapper[data-v-87033101]{position:relative;display:inline-block}.new-tag[data-v-87033101]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-87033101] .guido__view-option-selection-desktop svg,[data-v-87033101] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-87033101] .in-segments-wrapper__button_selected,[data-v-87033101] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-87033101] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-fad98586]{gap:8px}.version-history__toolbar[data-v-fad98586]{gap:4px}.view-options-wrapper[data-v-6ebabfe4]{position:relative;display:inline-block}.new-tag[data-v-6ebabfe4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-6ebabfe4] .guido__verion-history-view-option-selection-desktop svg,[data-v-6ebabfe4] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6ebabfe4] .in-segments-wrapper__button_selected,[data-v-6ebabfe4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-6ebabfe4] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-actions-menu__dropdown[data-v-bdb3b37a]{z-index:20;width:222px}.editor-actions[data-v-9a028d08]{gap:16px}.editor-actions__divider[data-v-9a028d08]{width:1px;height:40px;background-color:#e1e1e1}.right-slot[data-v-77451c9a]{gap:16px}.header-wrapper[data-v-3c713746]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.validation-error-list[data-v-e48cebe9]{gap:16px}.validation-error-row[data-v-e48cebe9]{gap:8px;padding:24px;border:1px solid #E1E1E1;border-radius:8px}.validation-error-row__icon[data-v-e48cebe9]{flex-shrink:0;font-size:24px;line-height:0}.validation-error-row__text[data-v-e48cebe9]{font-size:13px;line-height:16px;color:#292929;word-break:break-word}.guido-editor__wrapper[data-v-
|
|
1
|
+
@charset "UTF-8";.auth-error-modal[data-v-b4d7ae51]{position:relative;z-index:145}.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-9d988e4b] .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}.color-vision-select__dropdown[data-v-64cb50da]{z-index:20;width:387px}.accessibility-toolbar[data-v-391019bc]{gap:16px}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button svg{margin-right:0}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button .clearfix:after{content:none}.view-options-wrapper[data-v-87033101]{position:relative;display:inline-block}.new-tag[data-v-87033101]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-87033101] .guido__view-option-selection-desktop svg,[data-v-87033101] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-87033101] .in-segments-wrapper__button_selected,[data-v-87033101] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-87033101] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-fad98586]{gap:8px}.version-history__toolbar[data-v-fad98586]{gap:4px}.view-options-wrapper[data-v-6ebabfe4]{position:relative;display:inline-block}.new-tag[data-v-6ebabfe4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-6ebabfe4] .guido__verion-history-view-option-selection-desktop svg,[data-v-6ebabfe4] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6ebabfe4] .in-segments-wrapper__button_selected,[data-v-6ebabfe4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-6ebabfe4] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-actions-menu__dropdown[data-v-bdb3b37a]{z-index:20;width:222px}.editor-actions[data-v-9a028d08]{gap:16px}.editor-actions__divider[data-v-9a028d08]{width:1px;height:40px;background-color:#e1e1e1}.right-slot[data-v-77451c9a]{gap:16px}.header-wrapper[data-v-3c713746]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.validation-error-list[data-v-e48cebe9]{gap:16px}.validation-error-row[data-v-e48cebe9]{gap:8px;padding:24px;border:1px solid #E1E1E1;border-radius:8px}.validation-error-row__icon[data-v-e48cebe9]{flex-shrink:0;font-size:24px;line-height:0}.validation-error-row__text[data-v-e48cebe9]{font-size:13px;line-height:16px;color:#292929;word-break:break-word}.guido-editor__wrapper[data-v-ce88cbf5]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-ce88cbf5]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-ce88cbf5]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-eaf8e461]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-eaf8e461]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-eaf8e461]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-eaf8e461]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-eaf8e461]{object-fit:cover;transform:scale(1)}[data-v-b9a93c6e] .guido__verion-history-view-option-selection-desktop svg,[data-v-b9a93c6e] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-b9a93c6e] .in-segments-wrapper__button_selected,[data-v-b9a93c6e] .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-cf946232]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-cf946232]{min-height:504px}.iframe-wrapper[data-v-f255b2bb]{width:258px}.iframe-scaled[data-v-f255b2bb]{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-6bcaca8a] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.guido-tab-bar-onboarding[data-v-219b4f7c]{z-index:21}[data-v-f16f20f8] .vueperslides__bullets{pointer-events:none!important}[data-v-f16f20f8] .vueperslides__parallax-wrapper{padding-bottom:110px!important}[data-v-bb3cca55] .vueperslides__bullets{pointer-events:none!important}[data-v-bb3cca55] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-4b2a9bc6] .vueperslides__bullets,[data-v-ec2027ff] .vueperslides__bullets,[data-v-b09e80c4] .vueperslides__bullets{pointer-events:none!important}[data-v-b09e80c4] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-9bdef600] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd]{width:100%;max-width:none}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd] .in-skeleton{width:100%!important}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd] .in-dropdown-box__container{width:413px}.assign-strategy-drawer .spaced-dot-sep{background-image:linear-gradient(90deg,#91949f 20%,#fff0 0);background-position:center bottom;background-repeat:repeat-x;background-size:5px 1px}.assign-strategy-drawer .spaced-dot-sep--top{background-position:center top}.assign-strategy-drawer .spaced-dot-sep--fc-n:first-child{background:none}.guido-display-condition-create__separator[data-v-929822bc]{height:1px;margin:0 0 24px;background-image:linear-gradient(to right,currentColor 1px,transparent 1px);background-size:5px 1px}.guido-display-condition-create__methods[data-v-929822bc]{gap:16px}.guido-display-condition-select-root[data-v-0d740001] .in-drawer__footer{justify-content:flex-start}.guido-display-condition-select__delete-modal[data-v-0d740001]{position:relative;z-index:145}.guido-display-condition-select__delete-modal[data-v-0d740001] .in-modal-v2-wrapper__header-title{margin-bottom:0}.guido-display-condition-select-root[data-v-0d740001] .in-drawer__content>div{display:flex;flex-direction:column;min-height:100%}.guido-display-condition-select__list[data-v-0d740001]{display:flex;flex-direction:column;gap:24px;margin:0;padding:0;list-style:none}.guido-display-condition-card__header[data-v-0d740001]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px}.guido-display-condition-card__text[data-v-0d740001]{min-width:0}.guido-display-condition-card__name[data-v-0d740001],.guido-display-condition-card__description[data-v-0d740001]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.guido-display-condition-card__actions[data-v-0d740001]{display:flex;flex-shrink:0;align-items:center;gap:16px}.guido-display-condition-card__split[data-v-0d740001]{position:relative;display:flex;gap:1px}.guido-display-condition-card__menu[data-v-0d740001]{z-index:2;min-width:115px}.guido-display-condition-card__divider[data-v-0d740001]{width:1px;height:24px}.guido-display-condition-card__code[data-v-0d740001]{margin:1px 15px 15px;padding:8px;font-family:inherit;white-space:pre-wrap;word-break:break-word}.legacy-strategy-updated-modal[data-v-da2225a1]{position:relative;z-index:145}
|
package/dist/package.json.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const o = "3.26.0-beta.
|
|
1
|
+
const o = "3.26.0-beta.e447cb1", s = { stripo: { version: "2.83.1" } }, e = {
|
|
2
2
|
version: o,
|
|
3
3
|
guido: s
|
|
4
4
|
};
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default,
|
|
7
7
|
s as guido,
|
|
8
8
|
o as version
|
|
9
9
|
};
|
|
@@ -3120,6 +3120,7 @@ export declare const useOnboardingStore: import("pinia").StoreDefinition<"guidoO
|
|
|
3120
3120
|
start(type: OnboardingType): void;
|
|
3121
3121
|
startOnboarding(type: OnboardingType): void;
|
|
3122
3122
|
closeForSession(type: OnboardingType): void;
|
|
3123
|
+
forgetSessionClose(type: OnboardingType): void;
|
|
3123
3124
|
close(type: OnboardingType): Promise<void>;
|
|
3124
3125
|
next(type: OnboardingType): void;
|
|
3125
3126
|
previous(type: OnboardingType): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useOnboardingApi as
|
|
2
|
-
import { defineStore as
|
|
1
|
+
import { useOnboardingApi as s } from "../services/onboardingApi.js";
|
|
2
|
+
import { defineStore as t } from "pinia";
|
|
3
3
|
const e = () => ({
|
|
4
4
|
cardIndex: 0,
|
|
5
5
|
isActive: !1,
|
|
@@ -20,7 +20,7 @@ const e = () => ({
|
|
|
20
20
|
userModalState: {},
|
|
21
21
|
isFetched: !1,
|
|
22
22
|
closedThisSession: []
|
|
23
|
-
}), g =
|
|
23
|
+
}), g = t("guidoOnboarding", {
|
|
24
24
|
state: () => a(),
|
|
25
25
|
getters: {
|
|
26
26
|
/** @deprecated Components use the type-specific getters. Slated for deletion, see the SD-667788 dead-code ledger. */
|
|
@@ -86,11 +86,14 @@ const e = () => ({
|
|
|
86
86
|
this.closeOtherOnboardings(n), this.onboardings[n].cardIndex = 0, this.onboardings[n].isActive = !0;
|
|
87
87
|
},
|
|
88
88
|
startOnboarding(n) {
|
|
89
|
-
this.shouldShowOnboarding(n) && !this.isActive(n) && this.start(n);
|
|
89
|
+
this.shouldShowOnboarding(n) && !this.isActive(n) && !this.closedThisSession.includes(n) && this.start(n);
|
|
90
90
|
},
|
|
91
91
|
closeForSession(n) {
|
|
92
92
|
this.closedThisSession.includes(n) || this.closedThisSession.push(n), this.onboardings[n].isActive = !1, this.onboardings[n].cardIndex = 0, this.onboardings[n].config = [], this.onboardings[n].cardOffset = 0;
|
|
93
93
|
},
|
|
94
|
+
forgetSessionClose(n) {
|
|
95
|
+
this.closedThisSession = this.closedThisSession.filter((o) => o !== n);
|
|
96
|
+
},
|
|
94
97
|
async close(n) {
|
|
95
98
|
this.closeForSession(n);
|
|
96
99
|
try {
|
|
@@ -133,7 +136,7 @@ const e = () => ({
|
|
|
133
136
|
async fetchUserModalState() {
|
|
134
137
|
if (this.isFetched)
|
|
135
138
|
return;
|
|
136
|
-
const { fetchUserModalState: n } =
|
|
139
|
+
const { fetchUserModalState: n } = s();
|
|
137
140
|
try {
|
|
138
141
|
const o = await n();
|
|
139
142
|
this.userModalState = o, this.isFetched = !0;
|
|
@@ -141,7 +144,7 @@ const e = () => ({
|
|
|
141
144
|
}
|
|
142
145
|
},
|
|
143
146
|
async setUserModalState(n, o, i) {
|
|
144
|
-
const { setUserModalState: r } =
|
|
147
|
+
const { setUserModalState: r } = s();
|
|
145
148
|
await r(n, o, i), this.isFetched = !1, await this.fetchUserModalState();
|
|
146
149
|
}
|
|
147
150
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "3.26.0-beta.
|
|
3
|
+
"version": "3.26.0-beta.e447cb1",
|
|
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",
|