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