@useinsider/guido 1.0.0-beta.d5d5bac → 1.0.0-beta.d5da5b3

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.
Files changed (53) hide show
  1. package/dist/@types/generic.d.ts +4 -4
  2. package/dist/components/Guido.vue.d.ts +3 -6
  3. package/dist/components/Guido.vue.js +8 -8
  4. package/dist/components/Guido.vue2.js +36 -48
  5. package/dist/components/organisms/design-preview/AmpErrorModal.vue.d.ts +16 -0
  6. package/dist/components/organisms/design-preview/AmpErrorModal.vue.js +21 -0
  7. package/dist/components/organisms/design-preview/AmpErrorModal.vue2.js +31 -0
  8. package/dist/components/organisms/design-preview/DesktopPreview.vue.d.ts +16 -0
  9. package/dist/components/organisms/design-preview/DesktopPreview.vue.js +22 -0
  10. package/dist/components/organisms/design-preview/DesktopPreview.vue2.js +29 -0
  11. package/dist/components/organisms/design-preview/EmailPreview.vue.d.ts +16 -0
  12. package/dist/components/organisms/design-preview/EmailPreview.vue.js +17 -0
  13. package/dist/components/organisms/design-preview/EmailPreview.vue2.js +40 -0
  14. package/dist/components/organisms/design-preview/EmailView.vue.d.ts +18 -0
  15. package/dist/components/organisms/design-preview/EmailView.vue.js +19 -0
  16. package/dist/components/organisms/design-preview/EmailView.vue2.js +24 -0
  17. package/dist/components/organisms/design-preview/InboxView.vue.d.ts +17 -0
  18. package/dist/components/organisms/design-preview/InboxView.vue.js +19 -0
  19. package/dist/components/organisms/design-preview/InboxView.vue2.js +23 -0
  20. package/dist/components/organisms/design-preview/MobilePreview.vue.d.ts +17 -0
  21. package/dist/components/organisms/design-preview/MobilePreview.vue.js +17 -0
  22. package/dist/components/organisms/design-preview/MobilePreview.vue2.js +23 -0
  23. package/dist/components/organisms/header/AmpToggle.vue.d.ts +2 -0
  24. package/dist/components/organisms/header/AmpToggle.vue.js +17 -0
  25. package/dist/components/organisms/header/AmpToggle.vue2.js +48 -0
  26. package/dist/components/organisms/header/MiddleSlot.vue.js +6 -6
  27. package/dist/components/organisms/header/MiddleSlot.vue2.js +17 -13
  28. package/dist/components/organisms/header/RightSlot.vue.js +1 -1
  29. package/dist/components/organisms/header/ViewOptions.vue.js +6 -6
  30. package/dist/composables/useDebounce.d.ts +4 -0
  31. package/dist/composables/useDebounce.js +12 -0
  32. package/dist/composables/useMobileGmailFit.d.ts +5 -0
  33. package/dist/composables/useMobileGmailFit.js +69 -0
  34. package/dist/composables/usePreviewMode.d.ts +6 -0
  35. package/dist/composables/usePreviewMode.js +19 -0
  36. package/dist/composables/useStripo.js +17 -23
  37. package/dist/enums/emailPreview.d.ts +3 -0
  38. package/dist/enums/emailPreview.js +6 -0
  39. package/dist/enums/gmailMobilePreview.d.ts +7 -0
  40. package/dist/enums/gmailMobilePreview.js +17 -0
  41. package/dist/extensions/DynamicContent/dynamic-content.js +15 -13
  42. package/dist/guido.css +1 -1
  43. package/dist/inbox-mockup.svg +39 -0
  44. package/dist/phone-mockup.svg +31 -0
  45. package/dist/stores/editor.d.ts +4 -0
  46. package/dist/stores/editor.js +7 -3
  47. package/package.json +1 -1
  48. package/dist/stores/dynamic-content.d.ts +0 -27
  49. package/dist/stores/dynamic-content.js +0 -23
  50. package/dist/utils/arrayUtil.d.ts +0 -1
  51. package/dist/utils/arrayUtil.js +0 -10
  52. package/dist/utils/genericUtil.d.ts +0 -2
  53. package/dist/utils/genericUtil.js +0 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "1.0.0-beta.d5d5bac",
3
+ "version": "1.0.0-beta.d5da5b3",
4
4
  "description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
5
5
  "main": "./dist/guido.umd.cjs",
6
6
  "module": "./dist/library.js",
@@ -1,27 +0,0 @@
1
- import type { DynamicContent } from '@@/Types/generic';
2
- export declare const useDynamicContentStore: import("pinia").StoreDefinition<"dynamicContent", {
3
- selectedDynamicContent: DynamicContent;
4
- selectedDynamicContentList: DynamicContent[];
5
- }, {
6
- getSelectedDynamicContentList: (state: {
7
- selectedDynamicContent: {
8
- value: string;
9
- text: string;
10
- fallback?: string | undefined;
11
- };
12
- selectedDynamicContentList: {
13
- value: string;
14
- text: string;
15
- fallback?: string | undefined;
16
- }[];
17
- } & import("pinia").PiniaCustomStateProperties<{
18
- selectedDynamicContent: DynamicContent;
19
- selectedDynamicContentList: DynamicContent[];
20
- }>) => {
21
- text: string;
22
- value: string;
23
- fallback: string | undefined;
24
- }[];
25
- }, {
26
- setSelectedDynamicContent(dynamicContent: DynamicContent): void;
27
- }>;
@@ -1,23 +0,0 @@
1
- import { removeDuplicatesFromArray as n } from "../utils/arrayUtil.js";
2
- import { defineStore as a } from "pinia";
3
- const s = a("dynamicContent", {
4
- state: () => ({
5
- selectedDynamicContent: { text: "", value: "", fallback: "" },
6
- selectedDynamicContentList: []
7
- }),
8
- actions: {
9
- setSelectedDynamicContent(e) {
10
- this.selectedDynamicContent = e, this.selectedDynamicContentList.push(e);
11
- }
12
- },
13
- getters: {
14
- getSelectedDynamicContentList: (e) => n(e.selectedDynamicContentList).map((t) => ({
15
- text: t.text,
16
- value: t.value,
17
- fallback: t.fallback
18
- })) || []
19
- }
20
- });
21
- export {
22
- s as useDynamicContentStore
23
- };
@@ -1 +0,0 @@
1
- export declare const removeDuplicatesFromArray: <T>(arr?: T[]) => T[];
@@ -1,10 +0,0 @@
1
- const s = (t = []) => {
2
- const e = /* @__PURE__ */ new Set();
3
- return t.filter((n) => {
4
- const r = JSON.stringify(n);
5
- return e.has(r) ? !1 : (e.add(r), !0);
6
- });
7
- };
8
- export {
9
- s as removeDuplicatesFromArray
10
- };
@@ -1,2 +0,0 @@
1
- import type { DynamicContent, MergeTag } from '@@/Types/generic';
2
- export declare const dynamicContentToMergeTags: (dynamicContentList: DynamicContent[]) => MergeTag[];
@@ -1,7 +0,0 @@
1
- const c = (l) => l.map((a) => ({
2
- label: a.fallback ? `${a.text} | ${a.fallback}` : a.text,
3
- value: a.fallback ? `{{${a.value}|${a.fallback}}}` : `{{${a.value}}}`
4
- }));
5
- export {
6
- c as dynamicContentToMergeTags
7
- };