@useinsider/guido 3.30.0-beta.66a43cf → 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.
@@ -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 n = function() {
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
- }, t = [], s = /* @__PURE__ */ i(
9
+ }, n = [], s = /* @__PURE__ */ i(
10
10
  o,
11
- n,
12
11
  t,
12
+ n,
13
13
  !1,
14
14
  null,
15
- "0c5f11a1"
15
+ "304e53dd"
16
16
  );
17
17
  const u = s.exports;
18
18
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as Se, defineAsyncComponent as a, ref as W, computed as l, watch as $, onMounted as he, onUnmounted as Ee } from "vue";
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 Ae } from "../enums/onboarding.js";
16
- import { ToasterTypeOptions as Ne } from "../enums/toaster.js";
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/Toaster.vue.js";
23
- import We from "./organisms/extensions/recommendation/FilterSelectionDrawer.vue.js";
24
- import $e from "./organisms/header/HeaderWrapper.vue.js";
25
- import Ge from "./organisms/LoadingWrapper.vue.js";
26
- import ze from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
27
- import qe from "./organisms/unsubscribe/UnsubscribeWrapper.vue.js";
28
- import Ke from "./organisms/validation/ValidationErrorDrawer.vue.js";
29
- import { useStripoApi as je } from "../services/stripoApi.js";
30
- import { useConfigStore as Je } from "../stores/config.js";
31
- import { useDynamicContentStore as Qe } from "../stores/dynamic-content.js";
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 Xe } from "../stores/onboarding.js";
35
- import { usePreviewStore as Ye } from "../stores/preview.js";
36
- import { useSaveValidationStore as Ze } from "../stores/save-validation.js";
37
- import { useTemplateStore as et } from "../stores/template.js";
38
- import { useUnsubscribeStore as tt } from "../stores/unsubscribe.js";
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 Vt = /* @__PURE__ */ Se({
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 = Qe(), w = tt(), re = q(), o = Je();
66
+ ), y = W(), g = Xe(), w = nt(), re = q(), o = Qe();
65
67
  c.ready && o.init(c.config);
66
- const d = C(), ie = Ye(), p = l(() => d.hasChanges), { isTestPartner: se } = Fe(), { isEnabled: ae, loadRollout: T } = Me(), { showToaster: k } = Re(), F = Oe(), M = () => {
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: Ne.Warning,
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: v } = De();
92
+ }, { initPlugin: L, preloadRuntime: R } = Ie(r), { runExclusive: O, beginMount: U, isCurrentMount: S } = De();
91
93
  let f = 0;
92
- const { getDefaultTemplate: A } = je(), { cloneTimersOnSave: N, hasTimerBlocks: _ } = Le(), ce = l(() => {
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 S = (t) => {
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(Ae);
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 = (ve) => r.timed(
152
+ }, V = (Se) => r.timed(
151
153
  "migration",
152
- () => Ue(ve, pe, fe, ye)
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", () => A()), n.html = await V(n.html));
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", () => N(n.html))), H && (d.trackIdSessionFloor = Math.max(ge, K(n.html)));
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(), et().$reset(), Ze().$reset(), q().$reset(), Xe().resetOnboarding("recommendationLegacyStrategyOnboarding"), T(), h();
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", S);
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", S), v(f)) {
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 (v(f))
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: v, mountGeneration: f, getDefaultTemplate: A, cloneTimersOnSave: N, hasTimerBlocks: _, noHeader: ce, isRrsEnabled: de, isExternalDisplayConditionsEnabled: me, isLegacyUnsubscribeConversionEnabled: le, hasAssignedStrategy: ue, insertDynamicContent: P, closeDynamicContent: x, handleDynamicContentOpen: S, ribbonObserver: m, updateRibbonOffset: h, startEditor: E, AutoSaveController: Be, AuthErrorModal: He, Toaster: Ve, FilterSelectionDrawer: We, HeaderWrapper: $e, LoadingWrapper: Ge, SaveAsTemplateDrawer: ze, UnsubscribeWrapper: qe, ValidationErrorDrawer: Ke };
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
- Vt as default
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 n from "./Toaster.vue2.js";
2
- import s from "../../../_virtual/_plugin-vue2_normalizer.js";
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 = [], _ = /* @__PURE__ */ s(
7
- n,
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 = _.exports;
15
+ const l = i.exports;
15
16
  export {
16
17
  l as default
17
18
  };
@@ -1,19 +1,19 @@
1
- import { defineComponent as c, ref as i, computed as u, onBeforeUnmount as m } from "vue";
2
- import { useToaster as f } from "../../../composables/useToaster.js";
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 l } from "@useinsider/design-system-vue";
5
- const x = /* @__PURE__ */ c({
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 } = f(), e = i(null), s = u(() => t.actionButton ? [{ text: t.actionButton.text }] : []), a = () => {
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 m(() => {
12
- var n, r;
13
- o(), t.$reset(), (r = (n = e.value) == null ? void 0 : n.$el) == null || r.remove();
14
- }), { __sfc: !0, store: t, hideToaster: o, toastRef: e, actionButtonsConfig: s, handleActionClick: a, InToasts: l };
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
- x as default
18
+ b as default
19
19
  };
@@ -1,26 +1,45 @@
1
- import { useToaster as d } from "./useToaster.js";
2
- import { ToasterTypeOptions as c } from "../enums/toaster.js";
3
- const g = () => {
4
- const { showToaster: s, hideToaster: u } = d();
5
- let r = null;
6
- const n = (o, t, i, e, f = !0) => {
7
- r = i;
8
- const l = e != null && e.action ? { text: e.action.label, onClick: e.action.func } : void 0;
9
- s({ type: o, message: t, actionButton: l, autoHide: (e == null ? void 0 : e.autoClose) ?? f });
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, t, i) => n(c.Info, o, t, i),
13
- success: (o, t, i) => n(c.Success, o, t, i),
14
- warn: (o, t, i) => n(c.Warning, o, t, i),
15
- error: (o, t, i) => n(c.Error, o, t, i),
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, t, i) => n(c.Info, o, t, i, !1),
37
+ loader: (o, e, n) => l(i.Info, o, e, n, !1),
19
38
  hide: (o) => {
20
- r === o && (u(), r = null);
39
+ r.hide(o), f === o && (c(), f = null);
21
40
  }
22
41
  }) };
23
42
  };
24
43
  export {
25
- g as useStripoNotifications
44
+ A as useStripoNotifications
26
45
  };
@@ -1,4 +1,4 @@
1
- const e = "Your version has been restored successfully.", o = "Restore Image", t = "Cancel", a = {
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: t,
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
- t as Stop,
55
- a as default,
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-0c5f11a1]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-0c5f11a1]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-0c5f11a1]{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}
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}
@@ -1,9 +1,9 @@
1
- const o = "3.30.0-beta.66a43cf", s = { stripo: { version: "2.87.0" } }, t = {
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
- t as default,
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
+ };
@@ -1,21 +1,28 @@
1
1
  import { ToasterTypeOptions as e } from "../enums/toaster.js";
2
- import { defineStore as a } from "pinia";
3
- const u = () => ({
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 = a("guidoToaster", {
11
- state: () => u(),
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({ type: t = e.Success, message: s, actionButton: o, autoHide: i = !0 }) {
18
- this.status = !0, this.text = s, this.type = t, this.actionButton = o, this.autoHide = i;
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.66a43cf",
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",