@useinsider/guido 3.30.0-beta.6054a97 → 3.30.0-beta.69ba1a4
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 +5 -5
- package/dist/components/Guido.vue2.js +38 -36
- package/dist/components/organisms/base/StripoNotificationModal.vue.js +18 -0
- package/dist/components/organisms/base/StripoNotificationModal.vue2.js +30 -0
- package/dist/components/organisms/base/Toaster.vue.js +7 -6
- package/dist/components/organisms/base/Toaster.vue2.js +11 -11
- package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.js +1 -1
- package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue2.js +46 -52
- package/dist/composables/useStripoNotifications.js +35 -16
- package/dist/config/i18n/en/toasters.json.js +7 -5
- package/dist/guido.css +1 -1
- package/dist/package.json.js +2 -2
- package/dist/src/components/organisms/base/StripoNotificationModal.vue.d.ts +2 -0
- package/dist/src/stores/stripo-notification-modal.d.ts +18 -0
- package/dist/src/stores/toaster.d.ts +2 -1
- package/dist/stores/stripo-notification-modal.js +18 -0
- package/dist/stores/toaster.js +13 -6
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import o from "./Guido.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import i from "../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
-
var
|
|
4
|
+
var t = function() {
|
|
5
5
|
var a = this, r = a._self._c, e = a._self._setupProxy;
|
|
6
|
-
return r("div", { ref: "wrapperRef", staticClass: "guido-editor__wrapper", class: { "guido-editor__no-header": e.noHeader } }, [r(e.HeaderWrapper), r(e.AutoSaveController, { ref: "autoSaveControllerRef" }), e.editorStore.isPreviewModeOpen ? r(e.PreviewContainer) : a._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isLoaded, expression: "!previewStore.isLoaded" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": e.noHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.AuthErrorModal), r(e.FilterSelectionDrawer), e.isRrsEnabled || e.hasAssignedStrategy ? r(e.AssignStrategyDrawer) : a._e(), e.isRrsEnabled || e.hasAssignedStrategy ? r(e.RemoveStrategyModal) : a._e(), e.isRrsEnabled ? r(e.LegacyStrategyUpdatedModal) : a._e(), e.isLegacyUnsubscribeConversionEnabled ? r(e.LegacyUnsubscribeConvertedModal) : a._e(), e.moduleDynamicContentStore.queue.length > 0 ? r(e.AmbiguousDynamicContentModal) : a._e(), r(e.SaveAsTemplateDrawer), e.isSaveValidationEnabled ? r(e.ValidationErrorDrawer) : a._e(), e.isExternalDisplayConditionsEnabled ? r(e.DisplayConditionsHost) : a._e(), e.isTestPartner() ? a._e() : r(e.OnboardingWrapper, { on: { "onboarding-finished": function(l) {
|
|
6
|
+
return r("div", { ref: "wrapperRef", staticClass: "guido-editor__wrapper", class: { "guido-editor__no-header": e.noHeader } }, [r(e.HeaderWrapper), r(e.AutoSaveController, { ref: "autoSaveControllerRef" }), e.editorStore.isPreviewModeOpen ? r(e.PreviewContainer) : a._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isLoaded, expression: "!previewStore.isLoaded" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": e.noHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.StripoNotificationModal), r(e.AuthErrorModal), r(e.FilterSelectionDrawer), e.isRrsEnabled || e.hasAssignedStrategy ? r(e.AssignStrategyDrawer) : a._e(), e.isRrsEnabled || e.hasAssignedStrategy ? r(e.RemoveStrategyModal) : a._e(), e.isRrsEnabled ? r(e.LegacyStrategyUpdatedModal) : a._e(), e.isLegacyUnsubscribeConversionEnabled ? r(e.LegacyUnsubscribeConvertedModal) : a._e(), e.moduleDynamicContentStore.queue.length > 0 ? r(e.AmbiguousDynamicContentModal) : a._e(), r(e.SaveAsTemplateDrawer), e.isSaveValidationEnabled ? r(e.ValidationErrorDrawer) : a._e(), e.isExternalDisplayConditionsEnabled ? r(e.DisplayConditionsHost) : a._e(), e.isTestPartner() ? a._e() : r(e.OnboardingWrapper, { on: { "onboarding-finished": function(l) {
|
|
7
7
|
return e.emit("onboarding:finished");
|
|
8
8
|
} } }), r(e.UnsubscribeWrapper), r(e.LoadingWrapper)], 1);
|
|
9
|
-
},
|
|
9
|
+
}, n = [], s = /* @__PURE__ */ i(
|
|
10
10
|
o,
|
|
11
|
-
n,
|
|
12
11
|
t,
|
|
12
|
+
n,
|
|
13
13
|
!1,
|
|
14
14
|
null,
|
|
15
|
-
"
|
|
15
|
+
"304e53dd"
|
|
16
16
|
);
|
|
17
17
|
const u = s.exports;
|
|
18
18
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as ve, defineAsyncComponent as a, ref as W, computed as l, watch as $, onMounted as he, onUnmounted as Ee } from "vue";
|
|
2
2
|
import { useCortexBlueprintBridge as Ce } from "../composables/useCortexBlueprintBridge.js";
|
|
3
3
|
import { useEditorLock as De } from "../composables/useEditorLock.js";
|
|
4
4
|
import { startEditorOpenMetrics as we } from "../composables/useEditorOpenMetrics.js";
|
|
@@ -12,32 +12,34 @@ import { useToaster as Re } from "../composables/useToaster.js";
|
|
|
12
12
|
import { useTranslations as Oe } from "../composables/useTranslations.js";
|
|
13
13
|
import { migrate as Ue } from "../config/migrator/index.js";
|
|
14
14
|
import { ModuleFolderDefaults as G } from "../enums/defaults.js";
|
|
15
|
-
import { RIBBON_SELECTOR as
|
|
16
|
-
import { ToasterTypeOptions as
|
|
15
|
+
import { RIBBON_SELECTOR as Ne } from "../enums/onboarding.js";
|
|
16
|
+
import { ToasterTypeOptions as Ae } from "../enums/toaster.js";
|
|
17
17
|
import { useRecommendationExtensionStore as z, disposeStrategyPageReturnListeners as _e } from "../extensions/Blocks/Recommendation/store/recommendation.js";
|
|
18
18
|
import { disposeUnsubscribeListeners as Pe } from "../extensions/Blocks/Unsubscribe/block.js";
|
|
19
19
|
import { disposeDisplayConditionRequest as xe } from "../extensions/DisplayConditions/bridge.js";
|
|
20
20
|
import Be from "./organisms/AutoSaveController.vue.js";
|
|
21
21
|
import He from "./organisms/base/AuthErrorModal.vue.js";
|
|
22
|
-
import Ve from "./organisms/base/
|
|
23
|
-
import We from "./organisms/
|
|
24
|
-
import $e from "./organisms/
|
|
25
|
-
import Ge from "./organisms/
|
|
26
|
-
import ze from "./organisms/
|
|
27
|
-
import qe from "./organisms/
|
|
28
|
-
import Ke from "./organisms/
|
|
29
|
-
import
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
22
|
+
import Ve from "./organisms/base/StripoNotificationModal.vue.js";
|
|
23
|
+
import We from "./organisms/base/Toaster.vue.js";
|
|
24
|
+
import $e from "./organisms/extensions/recommendation/FilterSelectionDrawer.vue.js";
|
|
25
|
+
import Ge from "./organisms/header/HeaderWrapper.vue.js";
|
|
26
|
+
import ze from "./organisms/LoadingWrapper.vue.js";
|
|
27
|
+
import qe from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
|
|
28
|
+
import Ke from "./organisms/unsubscribe/UnsubscribeWrapper.vue.js";
|
|
29
|
+
import je from "./organisms/validation/ValidationErrorDrawer.vue.js";
|
|
30
|
+
import { useStripoApi as Je } from "../services/stripoApi.js";
|
|
31
|
+
import { useConfigStore as Qe } from "../stores/config.js";
|
|
32
|
+
import { useDynamicContentStore as Xe } from "../stores/dynamic-content.js";
|
|
32
33
|
import { useEditorStore as C } from "../stores/editor.js";
|
|
33
34
|
import { useModuleDynamicContentStore as q } from "../stores/module-dynamic-content.js";
|
|
34
|
-
import { useOnboardingStore as
|
|
35
|
-
import { usePreviewStore as
|
|
36
|
-
import { useSaveValidationStore as
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
35
|
+
import { useOnboardingStore as Ye } from "../stores/onboarding.js";
|
|
36
|
+
import { usePreviewStore as Ze } from "../stores/preview.js";
|
|
37
|
+
import { useSaveValidationStore as et } from "../stores/save-validation.js";
|
|
38
|
+
import { useStripoNotificationModalStore as tt } from "../stores/stripo-notification-modal.js";
|
|
39
|
+
import { useTemplateStore as ot } from "../stores/template.js";
|
|
40
|
+
import { useUnsubscribeStore as nt } from "../stores/unsubscribe.js";
|
|
39
41
|
import { readTrackFloor as K } from "../utils/linkTrackingIds.js";
|
|
40
|
-
const
|
|
42
|
+
const zt = /* @__PURE__ */ ve({
|
|
41
43
|
__name: "Guido",
|
|
42
44
|
props: {
|
|
43
45
|
config: null,
|
|
@@ -61,13 +63,13 @@ const Vt = /* @__PURE__ */ Se({
|
|
|
61
63
|
() => import("./organisms/unsubscribe/LegacyUnsubscribeConvertedModal.vue.js")
|
|
62
64
|
), ne = a(
|
|
63
65
|
() => import("./organisms/dynamic-content/AmbiguousDynamicContentModal.vue.js")
|
|
64
|
-
), y = W(), g =
|
|
66
|
+
), y = W(), g = Xe(), w = nt(), re = q(), o = Qe();
|
|
65
67
|
c.ready && o.init(c.config);
|
|
66
|
-
const d = C(), ie =
|
|
68
|
+
const d = C(), ie = Ze(), p = l(() => d.hasChanges), { isTestPartner: se } = Fe(), { isEnabled: ae, loadRollout: T } = Me(), { showToaster: k } = Re(), F = Oe(), M = () => {
|
|
67
69
|
var t;
|
|
68
70
|
if (d.isVersionHistoryOpen) {
|
|
69
71
|
console.debug("guido:save:silent:blocked", { isVersionHistoryOpen: !0 }), k({
|
|
70
|
-
type:
|
|
72
|
+
type: Ae.Warning,
|
|
71
73
|
message: F("email-editor.save-blocked-outside-editor")
|
|
72
74
|
});
|
|
73
75
|
return;
|
|
@@ -87,9 +89,9 @@ const Vt = /* @__PURE__ */ Se({
|
|
|
87
89
|
savedModulesFolderName: ((t = o.editor) == null ? void 0 : t.savedModulesFolderName) || G.SAVED_MODULES,
|
|
88
90
|
defaultModulesFolderName: ((e = o.editor) == null ? void 0 : e.defaultModulesFolderName) || G.DEFAULT_MODULES
|
|
89
91
|
};
|
|
90
|
-
}, { initPlugin: L, preloadRuntime: R } = Ie(r), { runExclusive: O, beginMount: U, isCurrentMount:
|
|
92
|
+
}, { initPlugin: L, preloadRuntime: R } = Ie(r), { runExclusive: O, beginMount: U, isCurrentMount: S } = De();
|
|
91
93
|
let f = 0;
|
|
92
|
-
const { getDefaultTemplate:
|
|
94
|
+
const { getDefaultTemplate: N } = Je(), { cloneTimersOnSave: A, hasTimerBlocks: _ } = Le(), ce = l(() => {
|
|
93
95
|
var t;
|
|
94
96
|
return !((t = o.ui) != null && t.showHeader);
|
|
95
97
|
}), de = l(() => o.isFeatureEnabled("reusableRecommendationStrategy")), me = l(() => o.externalDisplayConditions), le = l(
|
|
@@ -120,14 +122,14 @@ const Vt = /* @__PURE__ */ Se({
|
|
|
120
122
|
$(() => p.value, () => {
|
|
121
123
|
i("on-change", p.value);
|
|
122
124
|
});
|
|
123
|
-
const
|
|
125
|
+
const v = (t) => {
|
|
124
126
|
const e = t, { attribute: s, position: u } = e.detail;
|
|
125
127
|
console.debug("dynamic-content:open", e.detail), i("dynamic-content:open", s, u);
|
|
126
128
|
};
|
|
127
129
|
let m = null;
|
|
128
130
|
const h = () => {
|
|
129
131
|
var e;
|
|
130
|
-
const t = document.querySelector(
|
|
132
|
+
const t = document.querySelector(Ne);
|
|
131
133
|
(e = y.value) == null || e.style.setProperty("--ribbon-offset", `${(t == null ? void 0 : t.offsetHeight) ?? 0}px`);
|
|
132
134
|
}, E = async () => {
|
|
133
135
|
var t;
|
|
@@ -147,17 +149,17 @@ const Vt = /* @__PURE__ */ Se({
|
|
|
147
149
|
rrsEnabled: o.isFeatureEnabled("reusableRecommendationStrategy")
|
|
148
150
|
}, ye = {
|
|
149
151
|
itemsPriceFormatting: o.isFeatureEnabled("itemsPriceFormatting")
|
|
150
|
-
}, V = (
|
|
152
|
+
}, V = (Se) => r.timed(
|
|
151
153
|
"migration",
|
|
152
|
-
() => Ue(
|
|
154
|
+
() => Ue(Se, pe, fe, ye)
|
|
153
155
|
);
|
|
154
156
|
let n = {
|
|
155
157
|
html: s && await V(s),
|
|
156
158
|
css: u
|
|
157
159
|
};
|
|
158
|
-
n.html || (n = await r.timed("default_template", () =>
|
|
160
|
+
n.html || (n = await r.timed("default_template", () => N()), n.html = await V(n.html));
|
|
159
161
|
const ge = H ? K(n.html, (e == null ? void 0 : e.trackIdCounter) || 0) : 0;
|
|
160
|
-
_(n.html) && (n.html = await r.timed("timer_clone", () =>
|
|
162
|
+
_(n.html) && (n.html = await r.timed("timer_clone", () => A(n.html))), H && (d.trackIdSessionFloor = Math.max(ge, K(n.html)));
|
|
161
163
|
const be = {
|
|
162
164
|
preselectedDynamicContentList: B,
|
|
163
165
|
onReady: () => {
|
|
@@ -171,7 +173,7 @@ const Vt = /* @__PURE__ */ Se({
|
|
|
171
173
|
};
|
|
172
174
|
return he(async () => {
|
|
173
175
|
var e;
|
|
174
|
-
console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow"), z().$reset(), C().$reset(),
|
|
176
|
+
console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow"), z().$reset(), C().$reset(), ot().$reset(), et().$reset(), q().$reset(), tt().$reset(), Ye().resetOnboarding("recommendationLegacyStrategyOnboarding"), T(), h();
|
|
175
177
|
const t = (e = y.value) == null ? void 0 : e.parentElement;
|
|
176
178
|
if (t && (m = new ResizeObserver(h), m.observe(t)), R(), c.ready)
|
|
177
179
|
await E();
|
|
@@ -180,9 +182,9 @@ const Vt = /* @__PURE__ */ Se({
|
|
|
180
182
|
u && (s(), E());
|
|
181
183
|
});
|
|
182
184
|
}
|
|
183
|
-
document.addEventListener("dynamic-content:open",
|
|
185
|
+
document.addEventListener("dynamic-content:open", v);
|
|
184
186
|
}), Ee(() => {
|
|
185
|
-
if (Pe(), _e(), r.dispose(), m == null || m.disconnect(), document.removeEventListener("dynamic-content:open",
|
|
187
|
+
if (Pe(), _e(), r.dispose(), m == null || m.disconnect(), document.removeEventListener("dynamic-content:open", v), S(f)) {
|
|
186
188
|
xe();
|
|
187
189
|
try {
|
|
188
190
|
const t = C();
|
|
@@ -192,7 +194,7 @@ const Vt = /* @__PURE__ */ Se({
|
|
|
192
194
|
}
|
|
193
195
|
}
|
|
194
196
|
O(async () => {
|
|
195
|
-
if (
|
|
197
|
+
if (S(f))
|
|
196
198
|
try {
|
|
197
199
|
window.UIEditor.removeEditor();
|
|
198
200
|
} catch {
|
|
@@ -207,9 +209,9 @@ const Vt = /* @__PURE__ */ Se({
|
|
|
207
209
|
hasChanges: p,
|
|
208
210
|
saveSilent: M,
|
|
209
211
|
setLoading: I
|
|
210
|
-
}), { __sfc: !0, openMetrics: r, PreviewContainer: Q, OnboardingWrapper: X, AssignStrategyDrawer: Y, RemoveStrategyModal: Z, DisplayConditionsHost: ee, autoSaveControllerRef: D, LegacyStrategyUpdatedModal: te, LegacyUnsubscribeConvertedModal: oe, AmbiguousDynamicContentModal: ne, wrapperRef: y, dynamicContentStore: g, unsubscribeStore: w, moduleDynamicContentStore: re, props: c, configStore: o, editorStore: d, previewStore: ie, hasChanges: p, isTestPartner: se, isSaveValidationEnabled: ae, loadRollout: T, showToaster: k, trans: F, saveSilent: M, setLoading: I, emit: i, buildMetadata: b, initPlugin: L, preloadRuntime: R, runExclusive: O, beginMount: U, isCurrentMount:
|
|
212
|
+
}), { __sfc: !0, openMetrics: r, PreviewContainer: Q, OnboardingWrapper: X, AssignStrategyDrawer: Y, RemoveStrategyModal: Z, DisplayConditionsHost: ee, autoSaveControllerRef: D, LegacyStrategyUpdatedModal: te, LegacyUnsubscribeConvertedModal: oe, AmbiguousDynamicContentModal: ne, wrapperRef: y, dynamicContentStore: g, unsubscribeStore: w, moduleDynamicContentStore: re, props: c, configStore: o, editorStore: d, previewStore: ie, hasChanges: p, isTestPartner: se, isSaveValidationEnabled: ae, loadRollout: T, showToaster: k, trans: F, saveSilent: M, setLoading: I, emit: i, buildMetadata: b, initPlugin: L, preloadRuntime: R, runExclusive: O, beginMount: U, isCurrentMount: S, mountGeneration: f, getDefaultTemplate: N, cloneTimersOnSave: A, hasTimerBlocks: _, noHeader: ce, isRrsEnabled: de, isExternalDisplayConditionsEnabled: me, isLegacyUnsubscribeConversionEnabled: le, hasAssignedStrategy: ue, insertDynamicContent: P, closeDynamicContent: x, handleDynamicContentOpen: v, ribbonObserver: m, updateRibbonOffset: h, startEditor: E, AutoSaveController: Be, AuthErrorModal: He, StripoNotificationModal: Ve, Toaster: We, FilterSelectionDrawer: $e, HeaderWrapper: Ge, LoadingWrapper: ze, SaveAsTemplateDrawer: qe, UnsubscribeWrapper: Ke, ValidationErrorDrawer: je };
|
|
211
213
|
}
|
|
212
214
|
});
|
|
213
215
|
export {
|
|
214
|
-
|
|
216
|
+
zt as default
|
|
215
217
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import e from "./StripoNotificationModal.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import s from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var n = function() {
|
|
5
|
+
var o = this, r = o._self._c, t = o._self._setupProxy;
|
|
6
|
+
return t.store.current ? r("div", { staticClass: "stripo-notification-modal" }, [r(t.WpModal, { attrs: { id: "guido__stripo-notification-modal", "close-button-status": !1, "close-on-outside-click": !1, "footer-button-options": t.footerButtonOptions, "footer-status": !!t.footerButtonOptions, state: t.isError ? "danger" : "warning", title: t.title }, on: { "primary-action": t.runAction } }, [r("p", [o._v(o._s(t.store.current.message))])])], 1) : o._e();
|
|
7
|
+
}, i = [], a = /* @__PURE__ */ s(
|
|
8
|
+
e,
|
|
9
|
+
n,
|
|
10
|
+
i,
|
|
11
|
+
!1,
|
|
12
|
+
null,
|
|
13
|
+
"8e61bf92"
|
|
14
|
+
);
|
|
15
|
+
const p = a.exports;
|
|
16
|
+
export {
|
|
17
|
+
p as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent as s, computed as n } from "vue";
|
|
2
|
+
import u from "../../wrappers/WpModal.vue.js";
|
|
3
|
+
import { useTranslations as l } from "../../../composables/useTranslations.js";
|
|
4
|
+
import { useStripoNotificationModalStore as p } from "../../../stores/stripo-notification-modal.js";
|
|
5
|
+
const S = /* @__PURE__ */ s({
|
|
6
|
+
__name: "StripoNotificationModal",
|
|
7
|
+
setup(m) {
|
|
8
|
+
const r = l(), o = p(), i = n(() => {
|
|
9
|
+
var t;
|
|
10
|
+
return ((t = o.current) == null ? void 0 : t.type) === "error";
|
|
11
|
+
}), e = n(() => i.value ? r("email-editor.notification-modal-error-title") : r("email-editor.notification-modal-warning-title")), c = n(() => {
|
|
12
|
+
var t;
|
|
13
|
+
return (t = o.current) != null && t.actionButton ? { primaryButton: { type: "primary", labelText: o.current.actionButton.text } } : void 0;
|
|
14
|
+
});
|
|
15
|
+
return { __sfc: !0, trans: r, store: o, isError: i, title: e, footerButtonOptions: c, runAction: () => {
|
|
16
|
+
const t = o.current;
|
|
17
|
+
if (t != null && t.actionButton) {
|
|
18
|
+
try {
|
|
19
|
+
t.actionButton.onClick();
|
|
20
|
+
} catch (a) {
|
|
21
|
+
console.error("Stripo notification action failed", a);
|
|
22
|
+
}
|
|
23
|
+
t.closeOnAction && o.hide(t.id);
|
|
24
|
+
}
|
|
25
|
+
}, WpModal: u };
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
S as default
|
|
30
|
+
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import s from "./Toaster.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import n from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
4
|
var r = function() {
|
|
4
5
|
var o = this, e = o._self._c, t = o._self._setupProxy;
|
|
5
|
-
return e(t.InToasts, { ref: "toastRef", attrs: { "action-buttons-config": t.actionButtonsConfig, status: t.store.status, text: t.store.text, type: t.store.type }, on: { actionButtonClick0: t.handleActionClick } });
|
|
6
|
-
}, a = [],
|
|
7
|
-
|
|
6
|
+
return e(t.InToasts, { ref: "toastRef", attrs: { id: t.toastId, "action-buttons-config": t.actionButtonsConfig, status: t.store.status, text: t.store.text, timeout: 0, type: t.store.type }, on: { actionButtonClick0: t.handleActionClick } });
|
|
7
|
+
}, a = [], i = /* @__PURE__ */ n(
|
|
8
|
+
s,
|
|
8
9
|
r,
|
|
9
10
|
a,
|
|
10
11
|
!1,
|
|
11
12
|
null,
|
|
12
13
|
null
|
|
13
14
|
);
|
|
14
|
-
const l =
|
|
15
|
+
const l = i.exports;
|
|
15
16
|
export {
|
|
16
17
|
l as default
|
|
17
18
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useToaster as
|
|
1
|
+
import { defineComponent as u, ref as m, computed as r, onBeforeUnmount as f } from "vue";
|
|
2
|
+
import { useToaster as l } from "../../../composables/useToaster.js";
|
|
3
3
|
import { useToasterStore as p } from "../../../stores/toaster.js";
|
|
4
|
-
import { InToasts as
|
|
5
|
-
const
|
|
4
|
+
import { InToasts as _ } from "@useinsider/design-system-vue";
|
|
5
|
+
const b = /* @__PURE__ */ u({
|
|
6
6
|
__name: "Toaster",
|
|
7
|
-
setup(
|
|
8
|
-
const t = p(), { hideToaster: o } =
|
|
7
|
+
setup(d) {
|
|
8
|
+
const t = p(), { hideToaster: o } = l(), e = m(null), a = r(() => t.actionButton ? [{ text: t.actionButton.text }] : []), c = r(() => t.closeable ? "" : "guido-toast-non-closeable"), i = () => {
|
|
9
9
|
t.actionButton && t.actionButton.onClick(), o();
|
|
10
10
|
};
|
|
11
|
-
return
|
|
12
|
-
var n,
|
|
13
|
-
o(), t.$reset(), (
|
|
14
|
-
}), { __sfc: !0, store: t, hideToaster: o, toastRef: e, actionButtonsConfig:
|
|
11
|
+
return f(() => {
|
|
12
|
+
var n, s;
|
|
13
|
+
o(), t.$reset(), (s = (n = e.value) == null ? void 0 : n.$el) == null || s.remove();
|
|
14
|
+
}), { __sfc: !0, store: t, hideToaster: o, toastRef: e, actionButtonsConfig: a, toastId: c, handleActionClick: i, InToasts: _ };
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
b as default
|
|
19
19
|
};
|
|
@@ -3,7 +3,7 @@ import r from "./AssignStrategyDrawer.vue2.js";
|
|
|
3
3
|
import o from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
4
|
var a = function() {
|
|
5
5
|
var e = this, s = e._self._c, t = e._self._setupProxy;
|
|
6
|
-
return t.
|
|
6
|
+
return t.store.assignStrategyDrawerStatus ? s(t.OrgStrategyDetailModal, { staticClass: "assign-strategy-drawer", attrs: { "description-status": "", show: "", "description-text": t.drawerDescription, "footer-button-group-options": t.footerButtonGroupOptions, strategy: t.selectedStrategy ?? {}, "title-text": t.trans("gpt-app-builder.assign-recommendation-strategy") }, on: { close: t.closeDrawer, primaryClick: t.assignStrategy }, scopedSlots: e._u([{ key: "contentTop", fn: function() {
|
|
7
7
|
return [s("div", { staticClass: "assign-strategy-drawer-content px-5 py-5" }, [t.strategiesLoading ? s(t.InSkeleton, { staticClass: "assign-strategy-select-skeleton", attrs: { sizing: t.SELECT_SKELETON_SIZING } }) : s(t.OrgStrategyDropdown, { staticClass: "assign-strategy-select w-23-s", attrs: { id: "assign-strategy-select", "create-button-visible": "", "info-box-position": "bottom right", "placeholder-text": t.trans("smart-recommender.select-recommendation-strategy"), "selected-strategy-id": t.selectedStrategyId, state: t.showSelectionError ? "error" : "default", "state-message": t.showSelectionError ? t.trans("ds-steps.select-strategy-tooltip") : "", strategies: t.strategyOptions }, on: { create: function(c) {
|
|
8
8
|
return t.store.openStrategyCreation();
|
|
9
9
|
}, infoBoxButtonClick: t.onInfoBoxButtonClick, select: t.onSelect } })], 1)];
|
|
@@ -1,57 +1,51 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as b, defineAsyncComponent as T, ref as w, computed as o, watch as N } from "vue";
|
|
2
2
|
import "@useinsider/design-system-organisms/style";
|
|
3
|
-
import { useToaster as
|
|
4
|
-
import { useTranslations as
|
|
5
|
-
import { DOTTED_DATE_LOCALE as
|
|
6
|
-
import { URLS as
|
|
7
|
-
import { ToasterTypeOptions as
|
|
8
|
-
import { useRecommendationExtensionStore as
|
|
9
|
-
import { commitStrategyChange as
|
|
10
|
-
import
|
|
11
|
-
import { formatShortDate as
|
|
12
|
-
import { asText as
|
|
13
|
-
import { escapeHtml as
|
|
14
|
-
import { InSkeleton as
|
|
15
|
-
const
|
|
3
|
+
import { useToaster as R } from "../../../../composables/useToaster.js";
|
|
4
|
+
import { useTranslations as P } from "../../../../composables/useTranslations.js";
|
|
5
|
+
import { DOTTED_DATE_LOCALE as U } from "../../../../enums/date.js";
|
|
6
|
+
import { URLS as G } from "../../../../enums/extensions/recommendationBlock.js";
|
|
7
|
+
import { ToasterTypeOptions as u } from "../../../../enums/toaster.js";
|
|
8
|
+
import { useRecommendationExtensionStore as M } from "../../../../extensions/Blocks/Recommendation/store/recommendation.js";
|
|
9
|
+
import { commitStrategyChange as E } from "../../../../extensions/Blocks/Recommendation/utils/strategyCommit.js";
|
|
10
|
+
import $ from "./StrategyInfoBoxContent.vue.js";
|
|
11
|
+
import { formatShortDate as z } from "../../../../utils/dateUtil.js";
|
|
12
|
+
import { asText as D } from "../../../../utils/genericUtil.js";
|
|
13
|
+
import { escapeHtml as H } from "../../../../utils/htmlEscape.js";
|
|
14
|
+
import { InSkeleton as O } from "@useinsider/design-system-vue";
|
|
15
|
+
const it = /* @__PURE__ */ b({
|
|
16
16
|
__name: "AssignStrategyDrawer",
|
|
17
|
-
setup(
|
|
18
|
-
const g = () => import("@useinsider/design-system-organisms"),
|
|
19
|
-
render: (s) => s(
|
|
20
|
-
}),
|
|
17
|
+
setup(F) {
|
|
18
|
+
const g = () => import("@useinsider/design-system-organisms"), p = (t, r) => ({
|
|
19
|
+
render: (s) => s(O, { props: { sizing: { width: t, height: r } } })
|
|
20
|
+
}), I = T({
|
|
21
21
|
loader: async () => (await g()).OrgStrategyDetailModal,
|
|
22
|
-
loadingComponent:
|
|
22
|
+
loadingComponent: p(480, 240),
|
|
23
23
|
delay: 0
|
|
24
|
-
}),
|
|
24
|
+
}), h = T({
|
|
25
25
|
loader: async () => (await g()).OrgStrategyDropdown
|
|
26
|
-
}), i = "guido-edit-strategy-",
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
));
|
|
30
|
-
R(() => e.assignStrategyDrawerStatus, async (t) => {
|
|
31
|
-
if (!t) {
|
|
32
|
-
await P(), m.value = e.assignStrategyDrawerStatus;
|
|
26
|
+
}), i = "guido-edit-strategy-", x = { width: 480, height: 42 }, a = P(), e = M(), { showToaster: c } = R(), n = w(null), d = "legacy", l = w(!1), A = o(() => e.strategiesLoading || e.legacyConversionLoading), C = o(() => e.assignStrategyDrawerStatus ? a("email-editor.assign-strategy-description", { url: G.RECOMMENDATION_STRATEGIES_PANEL_PATH }) : "");
|
|
27
|
+
N(() => e.assignStrategyDrawerStatus, (t) => {
|
|
28
|
+
if (!t)
|
|
33
29
|
return;
|
|
34
|
-
}
|
|
35
|
-
m.value = !0;
|
|
36
30
|
const { strategyId: r } = e.recommendationConfigs;
|
|
37
31
|
n.value = r || (e.isLegacyStrategyBlock ? d : null), l.value = !1, e.invalidateStrategies(), e.fetchStrategies().catch(() => {
|
|
38
32
|
c({
|
|
39
|
-
type:
|
|
33
|
+
type: u.Error,
|
|
40
34
|
message: a("discovery-strategy.error-description")
|
|
41
35
|
});
|
|
42
36
|
});
|
|
43
|
-
}
|
|
44
|
-
const
|
|
45
|
-
const r =
|
|
37
|
+
});
|
|
38
|
+
const f = (t) => {
|
|
39
|
+
const r = D(t.updated_at || t.created_at);
|
|
46
40
|
if (!r)
|
|
47
41
|
return "";
|
|
48
|
-
const s =
|
|
42
|
+
const s = z(r, U);
|
|
49
43
|
return a("recommendation-strategy.last-updated-on", { value: s });
|
|
50
|
-
},
|
|
44
|
+
}, S = o(() => ({
|
|
51
45
|
text: a("ds-steps.legacy-strategy"),
|
|
52
46
|
value: d,
|
|
53
47
|
hidden: !0
|
|
54
|
-
})),
|
|
48
|
+
})), m = o(() => e.strategies.map((t) => ({
|
|
55
49
|
text: t.name,
|
|
56
50
|
value: t.strategy_id,
|
|
57
51
|
infoBoxProps: {
|
|
@@ -60,10 +54,10 @@ const lt = /* @__PURE__ */ N({
|
|
|
60
54
|
variant: "information",
|
|
61
55
|
size: "small",
|
|
62
56
|
class: "assign-strategy-info-box",
|
|
63
|
-
titleText:
|
|
57
|
+
titleText: H(D(t.name)),
|
|
64
58
|
descriptionStatus: !0,
|
|
65
|
-
descriptionText:
|
|
66
|
-
slot:
|
|
59
|
+
descriptionText: f(t),
|
|
60
|
+
slot: $,
|
|
67
61
|
slotProps: { strategy: t },
|
|
68
62
|
// The info box drops the option's value/text, so the id is the only channel
|
|
69
63
|
// that can carry the strategy back to the click handler.
|
|
@@ -76,17 +70,17 @@ const lt = /* @__PURE__ */ N({
|
|
|
76
70
|
icon: "line-open-website"
|
|
77
71
|
}]
|
|
78
72
|
}
|
|
79
|
-
}))),
|
|
80
|
-
var
|
|
81
|
-
const r = (
|
|
73
|
+
}))), L = o(() => e.isLegacyStrategyBlock ? [S.value, ...m.value] : m.value), B = (t) => {
|
|
74
|
+
var _;
|
|
75
|
+
const r = (_ = t == null ? void 0 : t.id) != null && _.startsWith(i) ? t.id.slice(i.length) : "";
|
|
82
76
|
if (!r)
|
|
83
77
|
return;
|
|
84
78
|
const s = e.currentRecommendationId, y = e.recommendationConfigs.strategyId === r;
|
|
85
|
-
e.openStrategyEdit(r) && (String(n.value ?? "") === r && (n.value = null), y && (e.removeStrategy(), s !== null &&
|
|
86
|
-
},
|
|
79
|
+
e.openStrategyEdit(r) && (String(n.value ?? "") === r && (n.value = null), y && (e.removeStrategy(), s !== null && E(s, "Removed recommendation strategy")));
|
|
80
|
+
}, v = o(() => {
|
|
87
81
|
const t = e.strategies.find((r) => String(r.strategy_id) === String(n.value ?? ""));
|
|
88
82
|
return t ? { ...t, fallback_config: null } : null;
|
|
89
|
-
}),
|
|
83
|
+
}), k = o(() => ({
|
|
90
84
|
primaryButton: {
|
|
91
85
|
styling: "solid",
|
|
92
86
|
type: "primary",
|
|
@@ -98,10 +92,10 @@ const lt = /* @__PURE__ */ N({
|
|
|
98
92
|
labelText: a("products.cancel")
|
|
99
93
|
}
|
|
100
94
|
}));
|
|
101
|
-
return { __sfc: !0, loadOrganisms: g, skeleton:
|
|
95
|
+
return { __sfc: !0, loadOrganisms: g, skeleton: p, OrgStrategyDetailModal: I, OrgStrategyDropdown: h, EDIT_BUTTON_ID_PREFIX: i, SELECT_SKELETON_SIZING: x, trans: a, store: e, showToaster: c, selectedStrategyId: n, LEGACY_OPTION_VALUE: d, showSelectionError: l, strategiesLoading: A, drawerDescription: C, lastUpdatedText: f, legacyStrategyOption: S, remoteStrategyOptions: m, strategyOptions: L, onInfoBoxButtonClick: B, selectedStrategy: v, footerButtonGroupOptions: k, closeDrawer: () => {
|
|
102
96
|
e.closeAssignStrategyDrawer();
|
|
103
97
|
}, assignStrategy: async () => {
|
|
104
|
-
const t =
|
|
98
|
+
const t = v.value;
|
|
105
99
|
if (!t) {
|
|
106
100
|
l.value = !0;
|
|
107
101
|
return;
|
|
@@ -114,21 +108,21 @@ const lt = /* @__PURE__ */ N({
|
|
|
114
108
|
}
|
|
115
109
|
if (!r) {
|
|
116
110
|
c({
|
|
117
|
-
type:
|
|
111
|
+
type: u.Error,
|
|
118
112
|
message: a("email-editor.strategy-assign-failed", { strategyName: t.name })
|
|
119
113
|
});
|
|
120
114
|
return;
|
|
121
115
|
}
|
|
122
116
|
const s = e.currentRecommendationId;
|
|
123
117
|
e.assignStrategy(t), c({
|
|
124
|
-
type:
|
|
118
|
+
type: u.Success,
|
|
125
119
|
message: a("email-editor.strategy-assigned-success", { strategyName: t.name })
|
|
126
|
-
}), e.closeAssignStrategyDrawer(), s !== null && await
|
|
120
|
+
}), e.closeAssignStrategyDrawer(), s !== null && await E(s, "Assigned recommendation strategy");
|
|
127
121
|
}, onSelect: (t) => {
|
|
128
122
|
n.value = t.value, l.value = !1;
|
|
129
|
-
}, InSkeleton:
|
|
123
|
+
}, InSkeleton: O };
|
|
130
124
|
}
|
|
131
125
|
});
|
|
132
126
|
export {
|
|
133
|
-
|
|
127
|
+
it as default
|
|
134
128
|
};
|
|
@@ -1,26 +1,45 @@
|
|
|
1
|
-
import { useToaster as
|
|
2
|
-
import { ToasterTypeOptions as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { useToaster as T } from "./useToaster.js";
|
|
2
|
+
import { ToasterTypeOptions as i } from "../enums/toaster.js";
|
|
3
|
+
import { useStripoNotificationModalStore as h } from "../stores/stripo-notification-modal.js";
|
|
4
|
+
const g = {
|
|
5
|
+
[i.Warning]: "warning",
|
|
6
|
+
[i.Error]: "error"
|
|
7
|
+
}, b = (u, c) => (c == null ? void 0 : c.closeable) !== !1 || c.autoClose !== !1 ? null : g[u] ?? null, A = () => {
|
|
8
|
+
const { showToaster: u, hideToaster: c } = T(), r = h();
|
|
9
|
+
let f = null;
|
|
10
|
+
const l = (o, e, n, t, S = !0) => {
|
|
11
|
+
const d = t != null && t.action ? { text: t.action.label, onClick: t.action.func } : void 0, s = b(o, t);
|
|
12
|
+
if (s) {
|
|
13
|
+
r.show({
|
|
14
|
+
id: n,
|
|
15
|
+
type: s,
|
|
16
|
+
message: e,
|
|
17
|
+
actionButton: d,
|
|
18
|
+
closeOnAction: (t == null ? void 0 : t.closeOnAction) !== !1
|
|
19
|
+
});
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
f = n, u({
|
|
23
|
+
type: o,
|
|
24
|
+
message: e,
|
|
25
|
+
actionButton: d,
|
|
26
|
+
autoHide: (t == null ? void 0 : t.autoClose) ?? S,
|
|
27
|
+
closeable: (t == null ? void 0 : t.closeable) ?? !0
|
|
28
|
+
});
|
|
10
29
|
};
|
|
11
30
|
return { getStripoNotifications: () => ({
|
|
12
|
-
info: (o,
|
|
13
|
-
success: (o,
|
|
14
|
-
warn: (o,
|
|
15
|
-
error: (o,
|
|
31
|
+
info: (o, e, n) => l(i.Info, o, e, n),
|
|
32
|
+
success: (o, e, n) => l(i.Success, o, e, n),
|
|
33
|
+
warn: (o, e, n) => l(i.Warning, o, e, n),
|
|
34
|
+
error: (o, e, n) => l(i.Error, o, e, n),
|
|
16
35
|
// A loader marks an in-progress operation; Stripo dismisses it via hide(id)
|
|
17
36
|
// when finished, so it must not auto-hide.
|
|
18
|
-
loader: (o,
|
|
37
|
+
loader: (o, e, n) => l(i.Info, o, e, n, !1),
|
|
19
38
|
hide: (o) => {
|
|
20
|
-
r === o && (
|
|
39
|
+
r.hide(o), f === o && (c(), f = null);
|
|
21
40
|
}
|
|
22
41
|
}) };
|
|
23
42
|
};
|
|
24
43
|
export {
|
|
25
|
-
|
|
44
|
+
A as useStripoNotifications
|
|
26
45
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = "Your version has been restored successfully.", o = "Restore Image",
|
|
1
|
+
const e = "Your version has been restored successfully.", o = "Restore Image", a = "Cancel", t = {
|
|
2
2
|
"Reload page": "Reload page",
|
|
3
3
|
"The image has been deleted.": "The image has been deleted successfully.",
|
|
4
4
|
"Aim for the drop zone!": "Drag and drop your image inside the upload area to continue.",
|
|
@@ -42,16 +42,18 @@ const e = "Your version has been restored successfully.", o = "Restore Image", t
|
|
|
42
42
|
"Image recovery error": "The image couldn't be restored right now. You can wait for a while and try again.",
|
|
43
43
|
"Image moved to trash": "The image has been deleted successfully.",
|
|
44
44
|
Recover: o,
|
|
45
|
-
Stop:
|
|
45
|
+
Stop: a,
|
|
46
46
|
"Can`t delete the image": "The image couldn’t be deleted right now. You can wait for a while and try again.",
|
|
47
47
|
"Can`t restore the image": "The image couldn’t be restored right now. You can wait for a while and try again.",
|
|
48
48
|
"Image delete error": "The image couldn't be deleted right now. You can wait for a while and try again.",
|
|
49
49
|
"The maximum number of users who can simultaneously work with the sheet has been exceeded. Maximum allowed number: {{max_users_per_model}}": "You can’t edit the design right now as the maximum number of users are currently editing it.",
|
|
50
|
-
"The monthly limit of Timer basic block is reached. Please change the subscription pricing plan to activate new quotas": "You have reached your monthly limit of Timer Blocks. You can contact your Account Director for more information."
|
|
50
|
+
"The monthly limit of Timer basic block is reached. Please change the subscription pricing plan to activate new quotas": "You have reached your monthly limit of Timer Blocks. You can contact your Account Director for more information.",
|
|
51
|
+
"Export unsaved changes": "Export Unsaved Changes",
|
|
52
|
+
"Discard exported changes": "Discard Exported Changes"
|
|
51
53
|
};
|
|
52
54
|
export {
|
|
53
55
|
o as Recover,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
+
a as Stop,
|
|
57
|
+
t as default,
|
|
56
58
|
e as history_revert_to_patch
|
|
57
59
|
};
|
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],.stripo-notification-modal[data-v-8e61bf92]{position:relative;z-index:145}#guido-toast-non-closeable .in-toasts-wrapper__close{display:none}.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-304e53dd]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-304e53dd]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-304e53dd]{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-8fc96a58] .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 .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}.ambiguous-dynamic-content-modal__content[data-v-2643213c]{padding-bottom:150px}
|
package/dist/package.json.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const o = "3.30.0-beta.
|
|
1
|
+
const o = "3.30.0-beta.69ba1a4", s = { stripo: { version: "2.87.0" } }, a = {
|
|
2
2
|
version: o,
|
|
3
3
|
guido: s
|
|
4
4
|
};
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default,
|
|
7
7
|
s as guido,
|
|
8
8
|
o as version
|
|
9
9
|
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { StripoNotifyId } from '@@/Types/stripo';
|
|
2
|
+
import type { ActionButton } from '@@/Types/toaster';
|
|
3
|
+
export type StripoNotificationModalType = 'warning' | 'error';
|
|
4
|
+
export interface StripoNotificationModal {
|
|
5
|
+
id: StripoNotifyId;
|
|
6
|
+
type: StripoNotificationModalType;
|
|
7
|
+
message: string;
|
|
8
|
+
actionButton?: ActionButton;
|
|
9
|
+
closeOnAction: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface StripoNotificationModalState {
|
|
12
|
+
current: StripoNotificationModal | null;
|
|
13
|
+
}
|
|
14
|
+
export declare const useStripoNotificationModalStore: import("pinia").StoreDefinition<"guidoStripoNotificationModal", StripoNotificationModalState, {}, {
|
|
15
|
+
show(notification: StripoNotificationModal): void;
|
|
16
|
+
hide(id: StripoNotifyId): void;
|
|
17
|
+
}>;
|
|
18
|
+
export {};
|
|
@@ -6,12 +6,13 @@ export declare const useToasterStore: import("pinia").StoreDefinition<"guidoToas
|
|
|
6
6
|
text: string;
|
|
7
7
|
withoutLeftMargin: boolean;
|
|
8
8
|
autoHide: boolean;
|
|
9
|
+
closeable: boolean;
|
|
9
10
|
actionButton?: {
|
|
10
11
|
text: string;
|
|
11
12
|
onClick: () => void;
|
|
12
13
|
} | undefined;
|
|
13
14
|
} & import("pinia").PiniaCustomStateProperties<ToasterState>) => boolean;
|
|
14
15
|
}, {
|
|
15
|
-
showToaster(this: ToasterState, { type, message, actionButton, autoHide }: ToasterOptions): void;
|
|
16
|
+
showToaster(this: ToasterState, { type, message, actionButton, autoHide, closeable, }: ToasterOptions): void;
|
|
16
17
|
hideToaster(this: ToasterState): void;
|
|
17
18
|
}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineStore as o } from "pinia";
|
|
2
|
+
const e = o("guidoStripoNotificationModal", {
|
|
3
|
+
state: () => ({
|
|
4
|
+
current: null
|
|
5
|
+
}),
|
|
6
|
+
actions: {
|
|
7
|
+
show(t) {
|
|
8
|
+
this.current = t;
|
|
9
|
+
},
|
|
10
|
+
hide(t) {
|
|
11
|
+
var i;
|
|
12
|
+
((i = this.current) == null ? void 0 : i.id) === t && (this.current = null);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
e as useStripoNotificationModalStore
|
|
18
|
+
};
|
package/dist/stores/toaster.js
CHANGED
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
import { ToasterTypeOptions as e } from "../enums/toaster.js";
|
|
2
|
-
import { defineStore as
|
|
3
|
-
const
|
|
2
|
+
import { defineStore as u } from "pinia";
|
|
3
|
+
const r = () => ({
|
|
4
4
|
status: !1,
|
|
5
5
|
type: e.Success,
|
|
6
6
|
text: "",
|
|
7
7
|
withoutLeftMargin: !1,
|
|
8
8
|
autoHide: !0,
|
|
9
|
+
closeable: !0,
|
|
9
10
|
actionButton: void 0
|
|
10
|
-
}), h =
|
|
11
|
-
state: () =>
|
|
11
|
+
}), h = u("guidoToaster", {
|
|
12
|
+
state: () => r(),
|
|
12
13
|
getters: {
|
|
13
14
|
// A toast without auto-hide (e.g. Stripo `loader`) stays until hideToaster.
|
|
14
15
|
shouldAutoHide: (t) => t.status && !!t.text && t.autoHide
|
|
15
16
|
},
|
|
16
17
|
actions: {
|
|
17
|
-
showToaster({
|
|
18
|
-
|
|
18
|
+
showToaster({
|
|
19
|
+
type: t = e.Success,
|
|
20
|
+
message: s,
|
|
21
|
+
actionButton: o,
|
|
22
|
+
autoHide: a = !0,
|
|
23
|
+
closeable: i = !0
|
|
24
|
+
}) {
|
|
25
|
+
this.status = !0, this.text = s, this.type = t, this.actionButton = o, this.autoHide = a, this.closeable = i;
|
|
19
26
|
},
|
|
20
27
|
hideToaster() {
|
|
21
28
|
this.status = !1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "3.30.0-beta.
|
|
3
|
+
"version": "3.30.0-beta.69ba1a4",
|
|
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",
|