@useinsider/guido 3.4.1-beta.ece4e0c → 3.4.1-beta.eea26a5

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,33 +1,35 @@
1
- import { useStripoApi as i } from "../services/stripoApi.js";
1
+ import { useStripoApi as c } from "../services/stripoApi.js";
2
2
  import { useEditorStore as u } from "../stores/editor.js";
3
3
  import { useOnboardingStore as l } from "../stores/onboarding.js";
4
4
  import { useUnsubscribeStore as b } from "../stores/unsubscribe.js";
5
5
  const v = () => {
6
- const { updateSyncModule: d, getSyncModule: r } = i(), n = u(), s = b(), a = {
6
+ const { updateSyncModule: r, getSyncModule: a } = c(), t = u(), s = b(), i = {
7
7
  block_dropped: ({ blockName: e }) => {
8
8
  if (e === "BLOCK_TEXT") {
9
- const o = l(), t = !o.shouldShowOnboarding("textBlockOnboarding"), c = o.isActive("textBlockOnboarding");
10
- if (t || c)
9
+ const o = l(), n = !o.shouldShowOnboarding("textBlockOnboarding"), d = o.isActive("textBlockOnboarding");
10
+ if (n || d)
11
11
  return;
12
12
  o.start("textBlockOnboarding");
13
13
  }
14
14
  },
15
15
  module_saved: async (e) => {
16
- n.syncModulesEnabled && (console.debug("[module_saved] Saved module data:", e), await d(e));
16
+ t.syncModulesEnabled && (console.debug("[module_saved] Saved module data:", e), await r(e));
17
17
  },
18
18
  module_dropped: async (e) => {
19
- if (!n.syncModulesEnabled)
19
+ if (!t.syncModulesEnabled)
20
20
  return;
21
- const { moduleId: o } = e, t = await r(o);
22
- console.debug("[module_dropped] Sync module data:", t), t.unsubscriptionPreferencePages.length && await s.fetchTemplates();
21
+ const { moduleId: o } = e, n = await a(o);
22
+ console.debug("[module_dropped] Sync module data:", n), n.unsubscriptionPreferencePages.length && (await s.fetchTemplates(), s.addUnsubscribePages(
23
+ n.unsubscriptionPreferencePages.map((d) => d.id)
24
+ ));
23
25
  },
24
26
  module_updated: async (e) => {
25
- n.syncModulesEnabled && (console.debug("[module_updated] Updated module data:", e), await d(e));
27
+ t.syncModulesEnabled && (console.debug("[module_updated] Updated module data:", e), await r(e));
26
28
  }
27
29
  };
28
30
  return { handleEvent: async (e, o) => {
29
- const t = a[e];
30
- console.debug("Stripo Event: ", e, o), t && await t(o);
31
+ const n = i[e];
32
+ console.debug("Stripo Event: ", e, o), n && await n(o);
31
33
  } };
32
34
  };
33
35
  export {
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "3.4.1-beta.ece4e0c",
3
+ "version": "3.4.1-beta.eea26a5",
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",