@useinsider/guido 3.26.0-beta.e447cb1 → 3.26.0-beta.e7ade20
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 +24 -24
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +5 -5
- package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +15 -15
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +6 -6
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue2.js +28 -27
- package/dist/components/organisms/onboarding/RecommendationLegacyStrategyOnboarding.vue.js +1 -1
- package/dist/components/organisms/onboarding/RecommendationLegacyStrategyOnboarding.vue2.js +41 -35
- package/dist/composables/useCustomInterfaceAppearance.js +50 -50
- package/dist/composables/useFullStoryBridge.js +10 -9
- package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +52 -40
- package/dist/extensions/Blocks/common-control.js +19 -19
- package/dist/extensions/DynamicContent/dynamic-content.js +15 -17
- package/dist/guido.css +1 -1
- package/dist/package.json.js +4 -4
- package/dist/src/extensions/Blocks/Recommendation/controls/main/strategy.d.ts +2 -0
- package/dist/src/stores/onboarding.d.ts +1 -1
- package/dist/src/utils/editorShadowRoot.d.ts +1 -0
- package/dist/stores/onboarding.js +9 -9
- package/dist/utils/editorShadowRoot.js +8 -0
- package/package.json +1 -1
|
@@ -13,8 +13,8 @@ import { useTranslations as Le } from "../composables/useTranslations.js";
|
|
|
13
13
|
import { migrate as Me } from "../config/migrator/index.js";
|
|
14
14
|
import { ModuleFolderDefaults as $ } from "../enums/defaults.js";
|
|
15
15
|
import { RIBBON_SELECTOR as Re } from "../enums/onboarding.js";
|
|
16
|
-
import { ToasterTypeOptions as
|
|
17
|
-
import { useRecommendationExtensionStore as z, disposeStrategyPageReturnListeners as
|
|
16
|
+
import { ToasterTypeOptions as Oe } from "../enums/toaster.js";
|
|
17
|
+
import { useRecommendationExtensionStore as z, disposeStrategyPageReturnListeners as Ue } from "../extensions/Blocks/Recommendation/store/recommendation.js";
|
|
18
18
|
import { disposeUnsubscribeListeners as Ne } from "../extensions/Blocks/Unsubscribe/block.js";
|
|
19
19
|
import { disposeDisplayConditionRequest as _e } from "../extensions/DisplayConditions/bridge.js";
|
|
20
20
|
import Ae from "./organisms/AutoSaveController.vue.js";
|
|
@@ -43,7 +43,7 @@ const Pt = /* @__PURE__ */ ye({
|
|
|
43
43
|
ready: { type: Boolean, default: !0 }
|
|
44
44
|
},
|
|
45
45
|
emits: ["dynamic-content:open", "back", "save:start", "save:complete", "on-change", "ready", "onboarding:finished", "test-email:click"],
|
|
46
|
-
setup(K, { expose: j, emit:
|
|
46
|
+
setup(K, { expose: j, emit: i }) {
|
|
47
47
|
const c = K, r = Ee(), J = a(
|
|
48
48
|
() => import("./organisms/email-preview/PreviewContainer.vue.js")
|
|
49
49
|
), Q = a(
|
|
@@ -64,7 +64,7 @@ const Pt = /* @__PURE__ */ ye({
|
|
|
64
64
|
var t;
|
|
65
65
|
if (d.isVersionHistoryOpen) {
|
|
66
66
|
console.debug("guido:save:silent:blocked", { isVersionHistoryOpen: !0 }), k({
|
|
67
|
-
type:
|
|
67
|
+
type: Oe.Warning,
|
|
68
68
|
message: F("email-editor.save-blocked-outside-editor")
|
|
69
69
|
});
|
|
70
70
|
return;
|
|
@@ -84,29 +84,29 @@ const Pt = /* @__PURE__ */ ye({
|
|
|
84
84
|
savedModulesFolderName: ((t = o.editor) == null ? void 0 : t.savedModulesFolderName) || $.SAVED_MODULES,
|
|
85
85
|
defaultModulesFolderName: ((e = o.editor) == null ? void 0 : e.defaultModulesFolderName) || $.DEFAULT_MODULES
|
|
86
86
|
};
|
|
87
|
-
}, { initPlugin: M, preloadRuntime: R } = ke(r), { runExclusive:
|
|
87
|
+
}, { initPlugin: M, preloadRuntime: R } = ke(r), { runExclusive: O, beginMount: U, isCurrentMount: v } = he();
|
|
88
88
|
let f = 0;
|
|
89
|
-
const { getDefaultTemplate: N } = ze(), { cloneTimersOnSave: _, hasTimerBlocks: A } = Fe(),
|
|
89
|
+
const { getDefaultTemplate: N } = ze(), { cloneTimersOnSave: _, hasTimerBlocks: A } = Fe(), ie = l(() => {
|
|
90
90
|
var t;
|
|
91
91
|
return !((t = o.ui) != null && t.showHeader);
|
|
92
|
-
}),
|
|
92
|
+
}), se = l(() => o.isFeatureEnabled("reusableRecommendationStrategy")), ae = l(() => o.externalDisplayConditions), ce = l(
|
|
93
93
|
() => o.isFeatureEnabled("legacyUnsubscribeConversion")
|
|
94
94
|
), de = l(
|
|
95
95
|
() => !!z().recommendationConfigs.strategyId
|
|
96
96
|
);
|
|
97
97
|
Ce({
|
|
98
98
|
onBack: () => {
|
|
99
|
-
console.debug("guido:back"),
|
|
99
|
+
console.debug("guido:back"), i("back");
|
|
100
100
|
},
|
|
101
101
|
onSaveStart: () => {
|
|
102
|
-
console.debug("guido:save:start"),
|
|
102
|
+
console.debug("guido:save:start"), i("save:start");
|
|
103
103
|
},
|
|
104
104
|
onSaveComplete: (t) => {
|
|
105
105
|
const e = { ...t, metadata: b() };
|
|
106
|
-
console.debug("guido:save:complete", e),
|
|
106
|
+
console.debug("guido:save:complete", e), i("save:complete", e);
|
|
107
107
|
},
|
|
108
108
|
onTestEmailClick: () => {
|
|
109
|
-
console.debug("guido:test-email:click"),
|
|
109
|
+
console.debug("guido:test-email:click"), i("test-email:click");
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
const P = (t) => {
|
|
@@ -115,11 +115,11 @@ const Pt = /* @__PURE__ */ ye({
|
|
|
115
115
|
console.debug("dynamic-content:close", "Without Data"), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: { text: "", value: "" } }));
|
|
116
116
|
};
|
|
117
117
|
G(() => p.value, () => {
|
|
118
|
-
|
|
118
|
+
i("on-change", p.value);
|
|
119
119
|
});
|
|
120
120
|
const S = (t) => {
|
|
121
|
-
const e = t, { attribute:
|
|
122
|
-
console.debug("dynamic-content:open", e.detail),
|
|
121
|
+
const e = t, { attribute: s, position: u } = e.detail;
|
|
122
|
+
console.debug("dynamic-content:open", e.detail), i("dynamic-content:open", s, u);
|
|
123
123
|
};
|
|
124
124
|
let m = null;
|
|
125
125
|
const h = () => {
|
|
@@ -136,7 +136,7 @@ const Pt = /* @__PURE__ */ ye({
|
|
|
136
136
|
templateId: o.templateId,
|
|
137
137
|
variationId: o.variationId
|
|
138
138
|
});
|
|
139
|
-
const e = o.template,
|
|
139
|
+
const e = o.template, s = (e == null ? void 0 : e.html) || "", u = (e == null ? void 0 : e.css) || "", B = (e == null ? void 0 : e.preselectedDynamicContent) || [];
|
|
140
140
|
w.selectedUnsubscribePages = (e == null ? void 0 : e.selectedUnsubscribePages) || [];
|
|
141
141
|
const me = ((t = e == null ? void 0 : e.migration) == null ? void 0 : t.recommendationConfigs) ?? {}, H = o.isFeatureEnabled("linkTrackingIds"), le = {
|
|
142
142
|
partnerName: o.partnerName,
|
|
@@ -149,7 +149,7 @@ const Pt = /* @__PURE__ */ ye({
|
|
|
149
149
|
() => Me(ge, me, le, ue)
|
|
150
150
|
);
|
|
151
151
|
let n = {
|
|
152
|
-
html:
|
|
152
|
+
html: s && await V(s),
|
|
153
153
|
css: u
|
|
154
154
|
};
|
|
155
155
|
n.html || (n = await r.timed("default_template", () => N()), n.html = await V(n.html));
|
|
@@ -158,28 +158,28 @@ const Pt = /* @__PURE__ */ ye({
|
|
|
158
158
|
const fe = {
|
|
159
159
|
preselectedDynamicContentList: B,
|
|
160
160
|
onReady: () => {
|
|
161
|
-
console.debug("guido:ready"),
|
|
161
|
+
console.debug("guido:ready"), i("ready");
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
|
-
f =
|
|
164
|
+
f = U(), await M(n, b(), fe, n.html !== s), y.selectedDynamicContentList = B;
|
|
165
165
|
} catch (e) {
|
|
166
166
|
console.error("Failed to initialize Stripo editor:", e), r.markFailed();
|
|
167
167
|
}
|
|
168
168
|
};
|
|
169
169
|
return be(async () => {
|
|
170
170
|
var e;
|
|
171
|
-
console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow"), z().$reset(), C().$reset(), Xe().$reset(), Qe().$reset(), je().
|
|
171
|
+
console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow"), z().$reset(), C().$reset(), Xe().$reset(), Qe().$reset(), je().resetOnboarding("recommendationLegacyStrategyOnboarding"), T(), h();
|
|
172
172
|
const t = (e = g.value) == null ? void 0 : e.parentElement;
|
|
173
173
|
if (t && (m = new ResizeObserver(h), m.observe(t)), R(), c.ready)
|
|
174
174
|
await E();
|
|
175
175
|
else {
|
|
176
|
-
const
|
|
177
|
-
u && (
|
|
176
|
+
const s = G(() => c.ready, (u) => {
|
|
177
|
+
u && (s(), E());
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
180
|
document.addEventListener("dynamic-content:open", S);
|
|
181
181
|
}), ve(() => {
|
|
182
|
-
if (Ne(),
|
|
182
|
+
if (Ne(), Ue(), r.dispose(), m == null || m.disconnect(), document.removeEventListener("dynamic-content:open", S), v(f)) {
|
|
183
183
|
_e();
|
|
184
184
|
try {
|
|
185
185
|
const t = C();
|
|
@@ -188,7 +188,7 @@ const Pt = /* @__PURE__ */ ye({
|
|
|
188
188
|
console.debug("Failed to close the editor readiness gate on unmount", t);
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
|
|
191
|
+
O(async () => {
|
|
192
192
|
if (v(f))
|
|
193
193
|
try {
|
|
194
194
|
window.UIEditor.removeEditor();
|
|
@@ -204,7 +204,7 @@ const Pt = /* @__PURE__ */ ye({
|
|
|
204
204
|
hasChanges: p,
|
|
205
205
|
saveSilent: I,
|
|
206
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:
|
|
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: i, buildMetadata: b, initPlugin: M, preloadRuntime: R, runExclusive: O, beginMount: U, isCurrentMount: v, mountGeneration: f, getDefaultTemplate: N, cloneTimersOnSave: _, hasTimerBlocks: A, noHeader: ie, isRrsEnabled: se, 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 };
|
|
208
208
|
}
|
|
209
209
|
});
|
|
210
210
|
export {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import
|
|
1
|
+
import d from "./GenericOnboarding.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import g from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
4
|
var l = function() {
|
|
5
5
|
var r, n, t, i, a, s;
|
|
6
|
-
var o = this,
|
|
7
|
-
return e.isVisible ?
|
|
6
|
+
var o = this, c = o._self._c, e = o._self._setupProxy;
|
|
7
|
+
return e.isVisible ? c(e.InOnboard, { key: "guido__editor-onboard", staticClass: "w-21-s p-a z-11", class: (r = e.onboardingStore.getGenericCurrentCard) == null ? void 0 : r.classes, attrs: { id: "guido__editor-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (n = e.onboardingStore.getGenericCurrentCard) == null ? void 0 : n.bottom, "left-position": (t = e.onboardingStore.getGenericCurrentCard) == null ? void 0 : t.left, "pages-config": e.onboardingStore.onboardings.genericOnboarding.config, "pointer-position": (i = e.onboardingStore.getGenericCurrentCard) == null ? void 0 : i.position, "right-position": (a = e.onboardingStore.getGenericCurrentCard) == null ? void 0 : a.right, "top-position": (s = e.onboardingStore.getGenericCurrentCard) == null ? void 0 : s.top }, on: { backButtonClick: e.handleBack, close: function(u) {
|
|
8
8
|
return e.onboardingStore.close("genericOnboarding");
|
|
9
9
|
}, nextButtonClick: e.handleNext } }) : o._e();
|
|
10
10
|
}, p = [], _ = /* @__PURE__ */ g(
|
|
11
|
-
|
|
11
|
+
d,
|
|
12
12
|
l,
|
|
13
13
|
p,
|
|
14
14
|
!1,
|
|
15
15
|
null,
|
|
16
|
-
"
|
|
16
|
+
"fcba7e99"
|
|
17
17
|
);
|
|
18
18
|
const S = _.exports;
|
|
19
19
|
export {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRibbonOffset as
|
|
3
|
-
import { useTranslations as
|
|
4
|
-
import { SERVICE_HOVER_SELECTORS as
|
|
5
|
-
import { useOnboardingStore as
|
|
1
|
+
import { defineComponent as u, computed as r, watch as l } from "vue";
|
|
2
|
+
import { useRibbonOffset as m } from "../../../composables/useRibbonOffset.js";
|
|
3
|
+
import { useTranslations as x } from "../../../composables/useTranslations.js";
|
|
4
|
+
import { SERVICE_HOVER_SELECTORS as f } from "../../../enums/onboarding.js";
|
|
5
|
+
import { useOnboardingStore as k } from "../../../stores/onboarding.js";
|
|
6
|
+
import { findEditorShadowRoot as B } from "../../../utils/editorShadowRoot.js";
|
|
6
7
|
import { InOnboard as C } from "@useinsider/design-system-vue";
|
|
7
|
-
const
|
|
8
|
+
const R = /* @__PURE__ */ u({
|
|
8
9
|
__name: "GenericOnboarding",
|
|
9
10
|
setup(T) {
|
|
10
|
-
const e =
|
|
11
|
-
const t =
|
|
12
|
-
t
|
|
13
|
-
|
|
14
|
-
const d = (g = t.shadowRoot) == null ? void 0 : g.querySelector(n);
|
|
11
|
+
const e = x(), o = k(), { getTopPosition: i } = m(), s = r(() => `${window.innerWidth / 2 - 146}px`), c = () => {
|
|
12
|
+
const t = B();
|
|
13
|
+
t && f.forEach((n) => {
|
|
14
|
+
const d = t.querySelector(n);
|
|
15
15
|
d && d.classList.add("hover");
|
|
16
16
|
});
|
|
17
17
|
}, a = r(() => [
|
|
@@ -67,18 +67,18 @@ const y = /* @__PURE__ */ l({
|
|
|
67
67
|
o.close("genericOnboarding");
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
]),
|
|
70
|
+
]), g = r(() => o.onboardings.genericOnboarding.config.length > 0 && o.onboardings.genericOnboarding.isActive), p = () => {
|
|
71
71
|
var t, n;
|
|
72
72
|
(n = (t = o.getGenericCurrentCard) == null ? void 0 : t.nextButtonClick) == null || n.call(t);
|
|
73
73
|
}, b = () => {
|
|
74
74
|
var t, n;
|
|
75
75
|
(n = (t = o.getGenericCurrentCard) == null ? void 0 : t.backButtonClick) == null || n.call(t);
|
|
76
76
|
};
|
|
77
|
-
return
|
|
77
|
+
return l(() => o.onboardings.genericOnboarding.isActive, (t) => {
|
|
78
78
|
t && o.setConfig("genericOnboarding", a.value);
|
|
79
|
-
}, { immediate: !0 }), { __sfc: !0, trans: e, onboardingStore: o, getTopPosition: i, centerLeft: s, addHoverToServiceElements: c, onboardingCardsConfig: a, isVisible:
|
|
79
|
+
}, { immediate: !0 }), { __sfc: !0, trans: e, onboardingStore: o, getTopPosition: i, centerLeft: s, addHoverToServiceElements: c, onboardingCardsConfig: a, isVisible: g, handleNext: p, handleBack: b, InOnboard: C };
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
export {
|
|
83
|
-
|
|
83
|
+
R as default
|
|
84
84
|
};
|
|
@@ -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
|
+
"1a34025a"
|
|
17
17
|
);
|
|
18
|
-
const I =
|
|
18
|
+
const I = p.exports;
|
|
19
19
|
export {
|
|
20
20
|
I as default
|
|
21
21
|
};
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { defineComponent as b, computed as d, watch as
|
|
2
|
-
import { useRibbonOffset as
|
|
3
|
-
import { useTranslations as
|
|
4
|
-
import {
|
|
5
|
-
import { useOnboardingStore as
|
|
1
|
+
import { defineComponent as b, computed as d, watch as c } from "vue";
|
|
2
|
+
import { useRibbonOffset as u } from "../../../composables/useRibbonOffset.js";
|
|
3
|
+
import { useTranslations as l } from "../../../composables/useTranslations.js";
|
|
4
|
+
import { CARD_COMPOSITION_TAB_SELECTOR as x, SETTINGS_TAB_SELECTOR as f } from "../../../enums/onboarding.js";
|
|
5
|
+
import { useOnboardingStore as T } from "../../../stores/onboarding.js";
|
|
6
|
+
import { findEditorShadowRoot as k } from "../../../utils/editorShadowRoot.js";
|
|
6
7
|
import { InOnboard as B } from "@useinsider/design-system-vue";
|
|
7
|
-
const
|
|
8
|
+
const v = /* @__PURE__ */ b({
|
|
8
9
|
__name: "ItemsOnboarding",
|
|
9
10
|
setup(C) {
|
|
10
|
-
const i =
|
|
11
|
-
const
|
|
12
|
-
if (!
|
|
11
|
+
const i = l(), o = T(), { getTopPosition: r } = u(), s = (t) => {
|
|
12
|
+
const n = k();
|
|
13
|
+
if (!n)
|
|
13
14
|
return;
|
|
14
|
-
const
|
|
15
|
-
|
|
15
|
+
const e = n.querySelector(t);
|
|
16
|
+
e && e.click();
|
|
16
17
|
}, a = d(() => [
|
|
17
18
|
{
|
|
18
19
|
classes: "guido-items-onboarding-card-1",
|
|
19
20
|
right: "426px",
|
|
20
|
-
top:
|
|
21
|
+
top: r(90),
|
|
21
22
|
position: "Right Top",
|
|
22
23
|
title: i("email-editor.onboarding-items-title"),
|
|
23
24
|
description: i("email-editor.onboarding-items-description"),
|
|
@@ -33,7 +34,7 @@ const E = /* @__PURE__ */ b({
|
|
|
33
34
|
{
|
|
34
35
|
classes: "guido-items-onboarding-card-2",
|
|
35
36
|
right: "426px",
|
|
36
|
-
top:
|
|
37
|
+
top: r(218),
|
|
37
38
|
position: "Right Top",
|
|
38
39
|
title: i("email-editor.onboarding-items-item-type-title"),
|
|
39
40
|
description: i("email-editor.onboarding-items-item-type-description"),
|
|
@@ -52,7 +53,7 @@ const E = /* @__PURE__ */ b({
|
|
|
52
53
|
{
|
|
53
54
|
classes: "guido-items-onboarding-card-3",
|
|
54
55
|
right: "426px",
|
|
55
|
-
top:
|
|
56
|
+
top: r(140),
|
|
56
57
|
position: "Right Top",
|
|
57
58
|
title: i("email-editor.onboarding-items-composition-title"),
|
|
58
59
|
description: i("email-editor.onboarding-items-composition-description"),
|
|
@@ -68,30 +69,30 @@ const E = /* @__PURE__ */ b({
|
|
|
68
69
|
o.close("itemsOnboarding");
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
|
-
]),
|
|
72
|
-
var t,
|
|
73
|
-
(
|
|
74
|
-
},
|
|
75
|
-
var t,
|
|
76
|
-
(
|
|
72
|
+
]), m = d(() => o.onboardings.itemsOnboarding.config.length > 0 && o.onboardings.itemsOnboarding.isActive), p = () => {
|
|
73
|
+
var t, n;
|
|
74
|
+
(n = (t = o.getItemsCurrentCard) == null ? void 0 : t.nextButtonClick) == null || n.call(t);
|
|
75
|
+
}, g = () => {
|
|
76
|
+
var t, n;
|
|
77
|
+
(n = (t = o.getItemsCurrentCard) == null ? void 0 : t.backButtonClick) == null || n.call(t);
|
|
77
78
|
};
|
|
78
|
-
return
|
|
79
|
+
return c(
|
|
79
80
|
() => o.isActive("itemsOnboarding"),
|
|
80
81
|
(t) => {
|
|
81
82
|
t && o.setConfig("itemsOnboarding", a.value);
|
|
82
83
|
},
|
|
83
84
|
{ immediate: !0 }
|
|
84
|
-
),
|
|
85
|
+
), c(
|
|
85
86
|
() => o.onboardings.itemsOnboarding.cardIndex,
|
|
86
|
-
(t,
|
|
87
|
+
(t, n) => {
|
|
87
88
|
if (!o.isActive("itemsOnboarding"))
|
|
88
89
|
return;
|
|
89
|
-
const
|
|
90
|
-
|
|
90
|
+
const e = `${n}-${t}`;
|
|
91
|
+
e === "1-2" && s(x), e === "2-1" && s(f);
|
|
91
92
|
}
|
|
92
|
-
), { __sfc: !0, trans: i, onboardingStore: o, getTopPosition:
|
|
93
|
+
), { __sfc: !0, trans: i, onboardingStore: o, getTopPosition: r, switchTab: s, onboardingCardsConfig: a, isVisible: m, handleNext: p, handleBack: g, InOnboard: B };
|
|
93
94
|
}
|
|
94
95
|
});
|
|
95
96
|
export {
|
|
96
|
-
|
|
97
|
+
v as default
|
|
97
98
|
};
|
|
@@ -1,55 +1,61 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as E, computed as _, onMounted as L, onBeforeUnmount as O } from "vue";
|
|
2
2
|
import { useRibbonOffset as S } from "../../../composables/useRibbonOffset.js";
|
|
3
|
-
import { useTranslations as
|
|
4
|
-
import { ACADEMY_LINKS as
|
|
5
|
-
import { useOnboardingStore as
|
|
6
|
-
import {
|
|
7
|
-
|
|
3
|
+
import { useTranslations as C } from "../../../composables/useTranslations.js";
|
|
4
|
+
import { ACADEMY_LINKS as h } from "../../../enums/academy.js";
|
|
5
|
+
import { useOnboardingStore as k } from "../../../stores/onboarding.js";
|
|
6
|
+
import { findEditorShadowRoot as v } from "../../../utils/editorShadowRoot.js";
|
|
7
|
+
import { InOnboard as B } from "@useinsider/design-system-vue";
|
|
8
|
+
const F = /* @__PURE__ */ E({
|
|
8
9
|
__name: "RecommendationLegacyStrategyOnboarding",
|
|
9
|
-
setup(
|
|
10
|
-
const
|
|
10
|
+
setup(T) {
|
|
11
|
+
const a = "recommendationLegacyStrategyOnboarding", l = "#guido__btn-update-legacy-strategy", i = C(), t = k(), { getTopPosition: m } = S(), u = `<a href="${h.EMAIL_RECOMMENDATION_BLOCK}" target="_blank" rel="noopener noreferrer">${i("action-builder.visit-academy")}</a>`, g = () => [
|
|
11
12
|
{
|
|
12
13
|
classes: "guido-recommendation-legacy-strategy-onboarding",
|
|
13
14
|
right: "40px",
|
|
14
|
-
top:
|
|
15
|
+
top: m(485),
|
|
15
16
|
position: "Top Right",
|
|
16
|
-
title:
|
|
17
|
-
description:
|
|
18
|
-
academyLink:
|
|
17
|
+
title: i("email-editor.onboarding-recommendation-strategy-legacy-title"),
|
|
18
|
+
description: i("email-editor.onboarding-recommendation-strategy-legacy-description", {
|
|
19
|
+
academyLink: u
|
|
19
20
|
}),
|
|
20
21
|
imageSource: "",
|
|
21
22
|
backButtonClick: () => {
|
|
22
23
|
},
|
|
23
24
|
nextButtonType: "text",
|
|
24
|
-
nextButtonText:
|
|
25
|
+
nextButtonText: i("action-builder.ok"),
|
|
25
26
|
nextButtonClick: () => {
|
|
26
|
-
|
|
27
|
+
t.close(a);
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
|
-
],
|
|
30
|
-
() =>
|
|
31
|
-
),
|
|
32
|
-
var
|
|
33
|
-
(
|
|
30
|
+
], y = _(
|
|
31
|
+
() => t.onboardings.recommendationLegacyStrategyOnboarding.config.length > 0 && t.onboardings.recommendationLegacyStrategyOnboarding.isActive
|
|
32
|
+
), b = () => {
|
|
33
|
+
var n, o;
|
|
34
|
+
(o = (n = t.getRecommendationLegacyStrategyCurrentCard) == null ? void 0 : n.nextButtonClick) == null || o.call(n);
|
|
34
35
|
};
|
|
35
|
-
let
|
|
36
|
-
const
|
|
37
|
-
|
|
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);
|
|
36
|
+
let e = null;
|
|
37
|
+
const s = ({ target: n }) => {
|
|
38
|
+
n instanceof Element && n.closest("ue-control-panel") && t.closeForSession(a);
|
|
43
39
|
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
40
|
+
let r = null;
|
|
41
|
+
const d = (n) => {
|
|
42
|
+
var o;
|
|
43
|
+
return !!((o = n.querySelector(l)) != null && o.getClientRects().length);
|
|
44
|
+
}, c = ({ target: n }) => {
|
|
45
|
+
const o = n instanceof Element ? n.closest("ue-control-panel") : null;
|
|
46
|
+
!o || r !== null || (r = requestAnimationFrame(() => {
|
|
47
|
+
r = null, d(o) || t.closeForSession(a);
|
|
48
|
+
}));
|
|
49
|
+
}, p = () => {
|
|
50
|
+
e == null || e.removeEventListener("scroll", s, !0), e == null || e.removeEventListener("click", c, !0), e == null || e.removeEventListener("keyup", c, !0), e = null, r !== null && (cancelAnimationFrame(r), r = null);
|
|
51
|
+
}, f = () => {
|
|
52
|
+
e = v(), e == null || e.addEventListener("scroll", s, !0), e == null || e.addEventListener("click", c, !0), e == null || e.addEventListener("keyup", c, !0);
|
|
53
|
+
};
|
|
54
|
+
return L(() => {
|
|
55
|
+
t.setConfig(a, g()), f();
|
|
56
|
+
}), O(p), { __sfc: !0, ONBOARDING_TYPE: a, UPDATE_BUTTON_SELECTOR: l, trans: i, onboardingStore: t, getTopPosition: m, academyLink: u, buildOnboardingCards: g, isVisible: y, handleNext: b, editorRoot: e, handlePanelScroll: s, pendingCheck: r, isUpdateButtonVisible: d, handlePanelInteraction: c, stopWatchingPanel: p, startWatchingPanel: f, InOnboard: B };
|
|
51
57
|
}
|
|
52
58
|
});
|
|
53
59
|
export {
|
|
54
|
-
|
|
60
|
+
F as default
|
|
55
61
|
};
|
|
@@ -1,44 +1,46 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
1
|
+
import S from "../static/assets/icons/filled-arrow-rising.svg.js";
|
|
2
|
+
import p from "../static/assets/icons/line-change.svg.js";
|
|
3
|
+
import s from "../static/assets/icons/line-delete.svg.js";
|
|
4
|
+
import f from "../static/assets/icons/line-info.svg.js";
|
|
5
|
+
import a from "../static/assets/icons/line-plus.svg.js";
|
|
6
|
+
import c from "../static/styles/base.css.js";
|
|
7
|
+
import l from "../static/styles/components/accessibility.css.js";
|
|
8
|
+
import C from "../static/styles/components/alert-message.css.js";
|
|
9
|
+
import d from "../static/styles/components/amp-block.css.js";
|
|
10
|
+
import u from "../static/styles/components/base-input.css.js";
|
|
11
|
+
import h from "../static/styles/components/button-group.css.js";
|
|
12
|
+
import I from "../static/styles/components/button.css.js";
|
|
13
|
+
import g from "../static/styles/components/combobox.css.js";
|
|
14
|
+
import w from "../static/styles/components/counter.css.js";
|
|
15
|
+
import y from "../static/styles/components/dropdown-menu.css.js";
|
|
16
|
+
import A from "../static/styles/components/loader.css.js";
|
|
17
|
+
import $ from "../static/styles/components/narrow-panel.css.js";
|
|
18
|
+
import b from "../static/styles/components/popup.css.js";
|
|
19
|
+
import B from "../static/styles/components/recommendation-strategy.css.js";
|
|
20
|
+
import D from "../static/styles/components/skeleton.css.js";
|
|
21
|
+
import R from "../static/styles/components/switcher.css.js";
|
|
22
|
+
import P from "../static/styles/components/tabs.css.js";
|
|
23
|
+
import T from "../static/styles/components/tools.css.js";
|
|
24
|
+
import x from "../static/styles/components/version-history.css.js";
|
|
25
|
+
import E from "../static/styles/components/wide-panel.css.js";
|
|
26
|
+
import M from "../static/styles/variables.css.js";
|
|
27
|
+
import { findEditorShadowRoot as O } from "../utils/editorShadowRoot.js";
|
|
27
28
|
function o(i, r) {
|
|
28
29
|
return `--guido-icon-${i}: url("data:image/svg+xml,${encodeURIComponent(r.trim())}");`;
|
|
29
30
|
}
|
|
30
|
-
const
|
|
31
|
-
${o("line-change",
|
|
32
|
-
${o("line-delete",
|
|
33
|
-
${o("filled-arrow-rising",
|
|
34
|
-
${o("line-info",
|
|
35
|
-
${o("line-plus",
|
|
36
|
-
}`,
|
|
37
|
-
|
|
31
|
+
const V = `:host {
|
|
32
|
+
${o("line-change", p)}
|
|
33
|
+
${o("line-delete", s)}
|
|
34
|
+
${o("filled-arrow-rising", S)}
|
|
35
|
+
${o("line-info", f)}
|
|
36
|
+
${o("line-plus", a)}
|
|
37
|
+
}`, W = [
|
|
38
|
+
M,
|
|
38
39
|
// Must be on top
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
V,
|
|
41
|
+
c,
|
|
41
42
|
// Must be on top
|
|
43
|
+
C,
|
|
42
44
|
d,
|
|
43
45
|
u,
|
|
44
46
|
h,
|
|
@@ -49,34 +51,32 @@ const W = `:host {
|
|
|
49
51
|
A,
|
|
50
52
|
$,
|
|
51
53
|
b,
|
|
52
|
-
|
|
54
|
+
D,
|
|
53
55
|
R,
|
|
54
56
|
P,
|
|
55
57
|
T,
|
|
56
58
|
x,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
C
|
|
59
|
+
E,
|
|
60
|
+
B,
|
|
61
|
+
l
|
|
61
62
|
].join(`
|
|
62
63
|
|
|
63
|
-
`),
|
|
64
|
+
`), _ = 3e4;
|
|
64
65
|
let e = null;
|
|
65
|
-
function
|
|
66
|
-
return e || (e = new CSSStyleSheet(), e.replaceSync(
|
|
66
|
+
function k() {
|
|
67
|
+
return e || (e = new CSSStyleSheet(), e.replaceSync(W)), e;
|
|
67
68
|
}
|
|
68
|
-
const
|
|
69
|
-
const r =
|
|
70
|
-
|
|
71
|
-
const t = (n = document.querySelector("ui-editor")) == null ? void 0 : n.shadowRoot;
|
|
69
|
+
const ao = () => ({ importCss: () => {
|
|
70
|
+
const r = k(), n = Date.now() + _, m = () => {
|
|
71
|
+
const t = O();
|
|
72
72
|
if (t) {
|
|
73
73
|
t.adoptedStyleSheets.includes(r) || (t.adoptedStyleSheets = [...t.adoptedStyleSheets, r]);
|
|
74
74
|
return;
|
|
75
75
|
}
|
|
76
|
-
Date.now() <
|
|
76
|
+
Date.now() < n && requestAnimationFrame(m);
|
|
77
77
|
};
|
|
78
78
|
m();
|
|
79
79
|
} });
|
|
80
80
|
export {
|
|
81
|
-
|
|
81
|
+
ao as useCustomInterfaceAppearance
|
|
82
82
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
import { findEditorShadowRoot as i } from "../utils/editorShadowRoot.js";
|
|
1
2
|
import { FULLSTORY_BRIDGE_SCRIPT_URL as s } from "../utils/fullStoryScripts.js";
|
|
2
|
-
const
|
|
3
|
-
var
|
|
4
|
-
const
|
|
5
|
-
if (typeof
|
|
3
|
+
const d = () => ({ injectFullStory: () => {
|
|
4
|
+
var n;
|
|
5
|
+
const e = window;
|
|
6
|
+
if (typeof e._fs_org != "string" || !e._fs_org)
|
|
6
7
|
return;
|
|
7
|
-
const
|
|
8
|
-
if (!
|
|
8
|
+
const o = (n = i()) == null ? void 0 : n.querySelector("iframe"), t = o == null ? void 0 : o.contentDocument;
|
|
9
|
+
if (!t || t.querySelector('script[data-fullstory-bridge="true"]'))
|
|
9
10
|
return;
|
|
10
|
-
const
|
|
11
|
-
|
|
11
|
+
const r = t.createElement("script");
|
|
12
|
+
r.src = s, r.async = !0, r.crossOrigin = "anonymous", r.dataset.fullstoryBridge = "true", t.head.appendChild(r);
|
|
12
13
|
} });
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
+
d as useFullStoryBridge
|
|
15
16
|
};
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
var
|
|
2
|
-
var N = (
|
|
3
|
-
var
|
|
4
|
-
import { useLegacyStrategyConversion as
|
|
5
|
-
import { ACADEMY_LINKS as
|
|
6
|
-
import { useOnboardingStore as
|
|
1
|
+
var A = Object.defineProperty;
|
|
2
|
+
var N = (g, o, t) => o in g ? A(g, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : g[o] = t;
|
|
3
|
+
var r = (g, o, t) => N(g, typeof o != "symbol" ? o + "" : o, t);
|
|
4
|
+
import { useLegacyStrategyConversion as O } from "../../../../../composables/useLegacyStrategyConversion.js";
|
|
5
|
+
import { ACADEMY_LINKS as w } from "../../../../../enums/academy.js";
|
|
6
|
+
import { useOnboardingStore as $ } from "../../../../../stores/onboarding.js";
|
|
7
7
|
import { CommonControl as R } from "../../../common-control.js";
|
|
8
8
|
import { RRS_CONFIG_VERSION as E } from "../../constants/defaultConfig.js";
|
|
9
|
-
import { RecommendationConfigService as
|
|
10
|
-
import { useRecommendationExtensionStore as
|
|
11
|
-
const
|
|
12
|
-
class
|
|
9
|
+
import { RecommendationConfigService as k } from "../../services/configService.js";
|
|
10
|
+
import { useRecommendationExtensionStore as I } from "../../store/recommendation.js";
|
|
11
|
+
const q = "recommendation-strategy-control", y = "recommendationLegacyStrategyOnboarding";
|
|
12
|
+
class Y extends R {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
r(this, "store", I());
|
|
16
|
+
r(this, "onboardingStore", $());
|
|
17
|
+
r(this, "legacyConversion", O());
|
|
18
|
+
r(this, "storeUnsubscription", () => {
|
|
19
19
|
});
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
r(this, "listeners", []);
|
|
21
|
+
r(this, "lastPaintedState", null);
|
|
22
22
|
}
|
|
23
23
|
getId() {
|
|
24
|
-
return
|
|
24
|
+
return q;
|
|
25
25
|
}
|
|
26
26
|
getTemplate() {
|
|
27
27
|
const t = this.api.translate(
|
|
28
28
|
"You can assign a recommendation strategy by selecting an existing one or creating a new one to show specific content."
|
|
29
|
-
), e = this.api.translate("For more information, you can"), a = this.api.translate("visit Academy"),
|
|
29
|
+
), e = this.api.translate("For more information, you can"), a = this.api.translate("visit Academy"), i = this.api.translate("Legacy Strategy"), s = this.api.translate(
|
|
30
30
|
"Note that this is an older version of the Recommendation Strategy. We recommend you update it to the new Recommendation Strategy for an improved experience."
|
|
31
|
-
),
|
|
31
|
+
), l = this.api.translate(
|
|
32
32
|
"The recommendation strategy used in the recommendation block is no longer available. You can assign a different strategy to it."
|
|
33
33
|
);
|
|
34
34
|
return `
|
|
@@ -54,7 +54,7 @@ class P extends R {
|
|
|
54
54
|
${t}
|
|
55
55
|
${e}
|
|
56
56
|
<a
|
|
57
|
-
href="${
|
|
57
|
+
href="${w.EMAIL_RECOMMENDATION_BLOCK}"
|
|
58
58
|
target="_blank"
|
|
59
59
|
rel="noopener noreferrer">${a}</a>.
|
|
60
60
|
</p>
|
|
@@ -78,7 +78,7 @@ class P extends R {
|
|
|
78
78
|
<div data-strategy-unavailable-state style="display: none;">
|
|
79
79
|
<div class="strategy-control-notice-row">
|
|
80
80
|
<div class="strategy-control-notice strategy-control-notice--error" role="alert">
|
|
81
|
-
<p class="strategy-control-notice-text">${
|
|
81
|
+
<p class="strategy-control-notice-text">${l}</p>
|
|
82
82
|
</div>
|
|
83
83
|
</div>
|
|
84
84
|
${this._GuTwoColumns([
|
|
@@ -103,7 +103,7 @@ class P extends R {
|
|
|
103
103
|
</div>
|
|
104
104
|
</div>
|
|
105
105
|
<div class="strategy-control-name-band">
|
|
106
|
-
<span class="strategy-control-name">${
|
|
106
|
+
<span class="strategy-control-name">${i}</span>
|
|
107
107
|
${this._strategyAction({
|
|
108
108
|
id: "guido__btn-update-legacy-strategy",
|
|
109
109
|
label: this.api.translate("Update"),
|
|
@@ -170,13 +170,15 @@ class P extends R {
|
|
|
170
170
|
* strategyId) for an assigned block.
|
|
171
171
|
*/
|
|
172
172
|
_isNodeUnassigned() {
|
|
173
|
-
if (!
|
|
173
|
+
if (!k.hasConfig(this.currentNode))
|
|
174
174
|
return !1;
|
|
175
|
-
const t =
|
|
175
|
+
const t = k.getConfig(this.currentNode);
|
|
176
176
|
return !t.strategyId && (t.configVersion ?? 0) >= E;
|
|
177
177
|
}
|
|
178
178
|
onDestroy() {
|
|
179
|
-
this._teardown()
|
|
179
|
+
this._teardown(), requestAnimationFrame(() => {
|
|
180
|
+
this.store.strategyPanelOpen || this._closeLegacyOnboarding();
|
|
181
|
+
});
|
|
180
182
|
}
|
|
181
183
|
_teardown() {
|
|
182
184
|
this.store.strategyPanelOpen = !1, this.storeUnsubscription(), this.storeUnsubscription = () => {
|
|
@@ -186,37 +188,47 @@ class P extends R {
|
|
|
186
188
|
const t = this.getContainer();
|
|
187
189
|
if (!t)
|
|
188
190
|
return;
|
|
189
|
-
const e = (a,
|
|
191
|
+
const e = (a, i) => {
|
|
190
192
|
const s = t.querySelector(a);
|
|
191
|
-
s && (s.addEventListener("click",
|
|
193
|
+
s && (s.addEventListener("click", i), this.listeners.push({ element: s, handler: i }));
|
|
192
194
|
};
|
|
193
195
|
e("#guido__btn-assign-strategy", () => this.store.openAssignStrategyDrawer()), e("#guido__btn-create-strategy", () => this.store.openStrategyCreation()), e("#guido__btn-assign-unavailable-strategy", () => this.store.openAssignStrategyDrawer()), e("#guido__btn-create-unavailable-strategy", () => this.store.openStrategyCreation()), e("#guido__btn-change-strategy", () => this.store.openAssignStrategyDrawer()), e("#guido__btn-change-legacy-strategy", () => this.store.openAssignStrategyDrawer()), e("#guido__btn-remove-strategy", () => this.store.openRemoveStrategyModal()), e("#guido__btn-remove-legacy-strategy", () => this.store.openRemoveStrategyModal()), e("#guido__btn-update-legacy-strategy", () => {
|
|
194
196
|
this.legacyConversion.convertLegacyStrategy();
|
|
195
197
|
});
|
|
196
198
|
}
|
|
199
|
+
_closeLegacyOnboarding() {
|
|
200
|
+
this.onboardingStore.isActive(y) && this.onboardingStore.resetOnboarding(y);
|
|
201
|
+
}
|
|
202
|
+
_syncLegacyOnboarding(t) {
|
|
203
|
+
if (!t) {
|
|
204
|
+
this._closeLegacyOnboarding();
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
this.onboardingStore.closedThisSession.includes(y) || this.onboardingStore.startOnboarding(y);
|
|
208
|
+
}
|
|
197
209
|
_renderState() {
|
|
198
|
-
var
|
|
199
|
-
const { strategyId: t } = this.store.recommendationConfigs, e = t ? ((
|
|
200
|
-
if (
|
|
210
|
+
var L;
|
|
211
|
+
const { strategyId: t } = this.store.recommendationConfigs, e = t ? ((L = this.store.assignedStrategy) == null ? void 0 : L.name) ?? "" : "", a = !!t && !e && (this.store.strategiesLoading || !this.store.strategiesSettled), i = !!t && !e && !a && this.store.strategiesFetched, s = this.store.legacyConversionLoading, l = this.store.isLegacyStrategyBlock, v = [t, e, a, i, s, l].join("\0");
|
|
212
|
+
if (v === this.lastPaintedState)
|
|
201
213
|
return;
|
|
202
214
|
const n = this.getContainer();
|
|
203
215
|
if (!n)
|
|
204
216
|
return;
|
|
205
|
-
const
|
|
206
|
-
if (!
|
|
217
|
+
const h = n.querySelector("[data-strategy-empty-state]"), u = n.querySelector("[data-strategy-assigned-state]"), c = n.querySelector("[data-strategy-legacy-state]"), m = n.querySelector("[data-strategy-unavailable-state]"), b = n.querySelector("[data-strategy-loading-state]"), _ = n.querySelector("[data-strategy-content]"), p = n.querySelector("[data-strategy-name]"), S = n.querySelector("[data-strategy-name-skeleton]");
|
|
218
|
+
if (!h || !u || !c || !m)
|
|
207
219
|
return;
|
|
208
|
-
|
|
209
|
-
const
|
|
210
|
-
[
|
|
211
|
-
d.style.display = d ===
|
|
220
|
+
b && (b.style.display = "none"), _ && (_.style.display = "");
|
|
221
|
+
const f = t ? i ? m : u : l ? c : h;
|
|
222
|
+
[h, u, c, m].forEach((d) => {
|
|
223
|
+
d.style.display = d === f ? "" : "none";
|
|
212
224
|
}), c.querySelectorAll("button").forEach((d) => {
|
|
213
225
|
d.disabled = s;
|
|
214
226
|
}), c.classList.toggle("is-converting", s), !t && this._isNodeUnassigned() && this.onboardingStore.startOnboarding("recommendationStrategyOnboarding");
|
|
215
|
-
const
|
|
216
|
-
|
|
227
|
+
const C = this.store.currentRecommendationId;
|
|
228
|
+
C !== null && this.store.blockStates[C] && this._syncLegacyOnboarding(f === c), p && (p.style.display = a ? "none" : "", t && !a && (p.textContent = e || `#${t}`)), S && (S.style.display = a ? "block" : "none"), this.lastPaintedState = v;
|
|
217
229
|
}
|
|
218
230
|
}
|
|
219
231
|
export {
|
|
220
|
-
|
|
221
|
-
|
|
232
|
+
q as STRATEGY_CONTROL_ID,
|
|
233
|
+
Y as StrategyControl
|
|
222
234
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
var u = Object.defineProperty;
|
|
2
|
-
var c = (l,
|
|
3
|
-
var i = (l,
|
|
4
|
-
import {
|
|
5
|
-
|
|
2
|
+
var c = (l, r, e) => r in l ? u(l, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[r] = e;
|
|
3
|
+
var i = (l, r, e) => c(l, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { findEditorShadowRoot as I } from "../../utils/editorShadowRoot.js";
|
|
5
|
+
import { Control as O, UIElementType as n, UEAttr as $ } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
6
|
+
class R extends O {
|
|
6
7
|
constructor() {
|
|
7
8
|
super(...arguments);
|
|
8
9
|
i(this, "currentNode");
|
|
@@ -11,8 +12,7 @@ class _ extends I {
|
|
|
11
12
|
i(this, "isAwaitingPanelNode", !1);
|
|
12
13
|
}
|
|
13
14
|
getContainer() {
|
|
14
|
-
|
|
15
|
-
return (e = document.querySelector("ui-editor")) == null ? void 0 : e.shadowRoot;
|
|
15
|
+
return I();
|
|
16
16
|
}
|
|
17
17
|
onTemplateNodeUpdated(e) {
|
|
18
18
|
this.currentNode = e;
|
|
@@ -98,13 +98,13 @@ class _ extends I {
|
|
|
98
98
|
* and combines it with the text in Stripo's alert-message layout.
|
|
99
99
|
*/
|
|
100
100
|
_setInfoMessageValue(e, t) {
|
|
101
|
-
const o = this.getContainer(), a = o.querySelector(`[data-icon-key="${e}"]`),
|
|
101
|
+
const o = this.getContainer(), a = o.querySelector(`[data-icon-key="${e}"]`), E = a == null ? void 0 : a.querySelector("ue-icon-component"), s = (E == null ? void 0 : E.outerHTML) ?? "";
|
|
102
102
|
this.api.setUIEAttribute(
|
|
103
103
|
e,
|
|
104
104
|
"value",
|
|
105
105
|
`
|
|
106
106
|
<div class="service-element alert-message-main" style="align-items: start;">
|
|
107
|
-
${
|
|
107
|
+
${s}
|
|
108
108
|
<div class="service-element alert-message-text">
|
|
109
109
|
${t}
|
|
110
110
|
</div>
|
|
@@ -133,15 +133,15 @@ class _ extends I {
|
|
|
133
133
|
placeholder: t,
|
|
134
134
|
options: o,
|
|
135
135
|
className: a = "es-180w",
|
|
136
|
-
searchable:
|
|
136
|
+
searchable: E = !1
|
|
137
137
|
}) {
|
|
138
138
|
return `
|
|
139
139
|
<${n.SELECTPICKER}
|
|
140
140
|
class="${a}"
|
|
141
141
|
${$.SELECTPICKER.name}="${e}"
|
|
142
|
-
${
|
|
142
|
+
${E ? `${$.SELECTPICKER.searchable}="true"` : ""}
|
|
143
143
|
${$.SELECTPICKER.placeholder}="${t}">
|
|
144
|
-
${o.map((
|
|
144
|
+
${o.map((s) => this._GuSelectItem(s)).join("")}
|
|
145
145
|
</${n.SELECTPICKER}>
|
|
146
146
|
`;
|
|
147
147
|
}
|
|
@@ -183,14 +183,14 @@ class _ extends I {
|
|
|
183
183
|
</${n.RADIO_BUTTONS}>
|
|
184
184
|
`;
|
|
185
185
|
}
|
|
186
|
-
_GuButton({ name: e, label: t, id: o = "", className: a = "", icon:
|
|
186
|
+
_GuButton({ name: e, label: t, id: o = "", className: a = "", icon: E = "", disabled: s = !1 }) {
|
|
187
187
|
return `
|
|
188
188
|
<${n.BUTTON}
|
|
189
189
|
${$.BUTTON.name}="${e}"
|
|
190
190
|
${o ? `id="${o}"` : ""}
|
|
191
191
|
${a ? `class="${a}"` : ""}
|
|
192
|
-
${
|
|
193
|
-
${
|
|
192
|
+
${E ? `${$.BUTTON.icon}="${E}"` : ""}
|
|
193
|
+
${s ? `${$.BUTTON.disabled}="true"` : ""}
|
|
194
194
|
${$.BUTTON.caption}="${t}">
|
|
195
195
|
</${n.BUTTON}>
|
|
196
196
|
`;
|
|
@@ -240,11 +240,11 @@ class _ extends I {
|
|
|
240
240
|
*/
|
|
241
241
|
_GuOrderable(e, t) {
|
|
242
242
|
let o = "";
|
|
243
|
-
t.forEach((
|
|
244
|
-
const
|
|
243
|
+
t.forEach((E) => {
|
|
244
|
+
const s = $.ORDERABLE_ITEM && "name" in $.ORDERABLE_ITEM ? $.ORDERABLE_ITEM.name : "name";
|
|
245
245
|
o += `
|
|
246
|
-
<${n.ORDERABLE_ITEM} ${
|
|
247
|
-
${
|
|
246
|
+
<${n.ORDERABLE_ITEM} ${s}="${E.key}">
|
|
247
|
+
${E.content}
|
|
248
248
|
</${n.ORDERABLE_ITEM}>
|
|
249
249
|
`;
|
|
250
250
|
});
|
|
@@ -315,5 +315,5 @@ class _ extends I {
|
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
export {
|
|
318
|
-
|
|
318
|
+
R as CommonControl
|
|
319
319
|
};
|
|
@@ -2,16 +2,17 @@ var c = Object.defineProperty;
|
|
|
2
2
|
var g = (o, s, t) => s in o ? c(o, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[s] = t;
|
|
3
3
|
var r = (o, s, t) => g(o, typeof s != "symbol" ? s + "" : s, t);
|
|
4
4
|
import { useConfig as d } from "../../composables/useConfig.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { findEditorShadowRoot as m } from "../../utils/editorShadowRoot.js";
|
|
6
|
+
import { mergeTagToDynamicContent as u, dynamicContentToMergeTags as h } from "../../utils/genericUtil.js";
|
|
7
|
+
import { UIElement as T, UIElementType as a, UEAttr as y, UIElementTagRegistry as C } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
8
|
+
import { ExternalMergeTagsLibrary as E } from "./dynamic-content-modal.js";
|
|
8
9
|
const l = "external-dynamic-content-ui-element", L = "button-add-dynamic-content";
|
|
9
|
-
class
|
|
10
|
+
class B extends C {
|
|
10
11
|
registerUiElements(s) {
|
|
11
12
|
s[a.MERGETAGS] = l;
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
|
-
class
|
|
15
|
+
class x extends T {
|
|
15
16
|
constructor() {
|
|
16
17
|
super(...arguments);
|
|
17
18
|
r(this, "mergeTagsButton", null);
|
|
@@ -44,7 +45,7 @@ class f extends h {
|
|
|
44
45
|
onAttributeUpdated(t, e) {
|
|
45
46
|
if (t !== "mergeTag" || !(e != null && e.value))
|
|
46
47
|
return;
|
|
47
|
-
const n =
|
|
48
|
+
const n = u(e), i = this._getLastClickedPosition();
|
|
48
49
|
this.lastClickedElement = null, this.lastClickedFrame = null, this._openDynamicContentLibrary(n, i);
|
|
49
50
|
}
|
|
50
51
|
openMergeTagLibrary() {
|
|
@@ -56,12 +57,12 @@ class f extends h {
|
|
|
56
57
|
* Dispatches event with dynamic content data and position
|
|
57
58
|
*/
|
|
58
59
|
_openDynamicContentLibrary(t, e) {
|
|
59
|
-
this.mergeTagsLibrary || (this.mergeTagsLibrary = new
|
|
60
|
+
this.mergeTagsLibrary || (this.mergeTagsLibrary = new E()), this.mergeTagsLibrary.openMergeTagsLibrary(
|
|
60
61
|
t,
|
|
61
62
|
(n) => {
|
|
62
63
|
if (n.text && n.value) {
|
|
63
64
|
const { isFeatureEnabled: i } = d();
|
|
64
|
-
this.api.triggerValueChange(
|
|
65
|
+
this.api.triggerValueChange(h([n], i("liquidSyntax"))[0]);
|
|
65
66
|
} else
|
|
66
67
|
this.api.triggerValueChange(null);
|
|
67
68
|
},
|
|
@@ -94,12 +95,9 @@ class f extends h {
|
|
|
94
95
|
* Gets the editor iframe element
|
|
95
96
|
*/
|
|
96
97
|
_getEditorFrame() {
|
|
97
|
-
var n;
|
|
98
|
-
const t =
|
|
99
|
-
|
|
100
|
-
return null;
|
|
101
|
-
const e = t.shadowRoot.querySelector("iframe");
|
|
102
|
-
return (n = e == null ? void 0 : e.contentWindow) != null && n.document ? e : null;
|
|
98
|
+
var e, n;
|
|
99
|
+
const t = (e = m()) == null ? void 0 : e.querySelector("iframe");
|
|
100
|
+
return (n = t == null ? void 0 : t.contentWindow) != null && n.document ? t : null;
|
|
103
101
|
}
|
|
104
102
|
/**
|
|
105
103
|
* Finds merge tag element in the element tree
|
|
@@ -147,7 +145,7 @@ class f extends h {
|
|
|
147
145
|
<${a.BUTTON}
|
|
148
146
|
id="guido__btn-add-dynamic-content"
|
|
149
147
|
class="btn btn-primary"
|
|
150
|
-
${
|
|
148
|
+
${y.BUTTON.name}="${L}">
|
|
151
149
|
<${a.ICON} src="plus" class="icon icon-button color-primary">
|
|
152
150
|
</${a.ICON}>
|
|
153
151
|
${this.api.translate("Add Dynamic Content")}
|
|
@@ -156,6 +154,6 @@ class f extends h {
|
|
|
156
154
|
}
|
|
157
155
|
}
|
|
158
156
|
export {
|
|
159
|
-
|
|
160
|
-
|
|
157
|
+
B as DynamicContentTagRegistry,
|
|
158
|
+
x as DynamicContentUiElementExtension
|
|
161
159
|
};
|
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-8fc59697]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-8fc59697]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-8fc59697]{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-fcba7e99] .vueperslides__bullets{pointer-events:none!important}[data-v-fcba7e99] .vueperslides__parallax-wrapper{padding-bottom:110px!important}[data-v-1a34025a] .vueperslides__bullets{pointer-events:none!important}[data-v-1a34025a] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-aa586bbf] .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.e7ade20", e = { stripo: { version: "2.83.1" } }, s = {
|
|
2
2
|
version: o,
|
|
3
|
-
guido:
|
|
3
|
+
guido: e
|
|
4
4
|
};
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
s as default,
|
|
7
|
+
e as guido,
|
|
8
8
|
o as version
|
|
9
9
|
};
|
|
@@ -3120,7 +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
|
-
|
|
3123
|
+
resetOnboarding(type: OnboardingType): void;
|
|
3124
3124
|
close(type: OnboardingType): Promise<void>;
|
|
3125
3125
|
next(type: OnboardingType): void;
|
|
3126
3126
|
previous(type: OnboardingType): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const findEditorShadowRoot: () => ShadowRoot | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useOnboardingApi as
|
|
2
|
-
import { defineStore as
|
|
1
|
+
import { useOnboardingApi as t } from "../services/onboardingApi.js";
|
|
2
|
+
import { defineStore as s } 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 = s("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,13 +86,13 @@ 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) &&
|
|
89
|
+
this.shouldShowOnboarding(n) && !this.isActive(n) && this.start(n);
|
|
90
90
|
},
|
|
91
91
|
closeForSession(n) {
|
|
92
|
-
this.
|
|
92
|
+
this.resetOnboarding(n), this.closedThisSession.push(n);
|
|
93
93
|
},
|
|
94
|
-
|
|
95
|
-
this.closedThisSession = this.closedThisSession.filter((o) => o !== n);
|
|
94
|
+
resetOnboarding(n) {
|
|
95
|
+
this.closedThisSession = this.closedThisSession.filter((o) => o !== n), this.onboardings[n].isActive = !1, this.onboardings[n].cardIndex = 0, this.onboardings[n].config = [], this.onboardings[n].cardOffset = 0;
|
|
96
96
|
},
|
|
97
97
|
async close(n) {
|
|
98
98
|
this.closeForSession(n);
|
|
@@ -136,7 +136,7 @@ const e = () => ({
|
|
|
136
136
|
async fetchUserModalState() {
|
|
137
137
|
if (this.isFetched)
|
|
138
138
|
return;
|
|
139
|
-
const { fetchUserModalState: n } =
|
|
139
|
+
const { fetchUserModalState: n } = t();
|
|
140
140
|
try {
|
|
141
141
|
const o = await n();
|
|
142
142
|
this.userModalState = o, this.isFetched = !0;
|
|
@@ -144,7 +144,7 @@ const e = () => ({
|
|
|
144
144
|
}
|
|
145
145
|
},
|
|
146
146
|
async setUserModalState(n, o, i) {
|
|
147
|
-
const { setUserModalState: r } =
|
|
147
|
+
const { setUserModalState: r } = t();
|
|
148
148
|
await r(n, o, i), this.isFetched = !1, await this.fetchUserModalState();
|
|
149
149
|
}
|
|
150
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.e7ade20",
|
|
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",
|