@useinsider/guido 1.0.2-beta.aa7c201 → 1.0.2-beta.ab357f5

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 (34) hide show
  1. package/README.md +31 -1
  2. package/dist/@types/generic.d.ts +4 -0
  3. package/dist/components/Guido.vue.d.ts +3 -1
  4. package/dist/components/Guido.vue.js +5 -5
  5. package/dist/components/Guido.vue2.js +76 -65
  6. package/dist/components/organisms/LoadingWrapper.vue.js +1 -1
  7. package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +3 -2
  8. package/dist/components/organisms/header/HeaderWrapper.vue.d.ts +3 -1
  9. package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -6
  10. package/dist/components/organisms/header/HeaderWrapper.vue2.js +15 -9
  11. package/dist/components/organisms/header/RightSlot.vue.d.ts +3 -1
  12. package/dist/components/organisms/header/RightSlot.vue.js +5 -3
  13. package/dist/components/organisms/header/RightSlot.vue2.js +23 -19
  14. package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +5 -5
  15. package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +2 -2
  16. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +5 -5
  17. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +40 -28
  18. package/dist/composables/useCustomInterfaceAppearance.js +22 -18
  19. package/dist/composables/useSave.d.ts +2 -1
  20. package/dist/composables/useSave.js +9 -8
  21. package/dist/composables/useStripo.js +27 -25
  22. package/dist/composables/useToaster.js +17 -17
  23. package/dist/guido.css +1 -1
  24. package/dist/static/styles/components/alert-message.css.js +32 -2
  25. package/dist/static/styles/components/button.css.js +32 -2
  26. package/dist/static/styles/components/notification.css.js +55 -0
  27. package/dist/static/styles/components/popup.css.js +68 -0
  28. package/dist/static/styles/components/wide-panel.css.js +5 -1
  29. package/dist/static/styles/customEditorStyle.css.js +6 -0
  30. package/dist/static/styles/variables.css.js +10 -0
  31. package/dist/stores/dynamic-content.d.ts +12 -0
  32. package/dist/stores/dynamic-content.js +7 -6
  33. package/dist/utils/genericUtil.js +9 -6
  34. package/package.json +1 -1
@@ -8,11 +8,19 @@ export declare const useDynamicContentStore: import("pinia").StoreDefinition<"dy
8
8
  value: string;
9
9
  text: string;
10
10
  fallback?: string | undefined;
11
+ format?: {
12
+ key: string;
13
+ value: string;
14
+ } | undefined;
11
15
  };
12
16
  selectedDynamicContentList: {
13
17
  value: string;
14
18
  text: string;
15
19
  fallback?: string | undefined;
20
+ format?: {
21
+ key: string;
22
+ value: string;
23
+ } | undefined;
16
24
  }[];
17
25
  } & import("pinia").PiniaCustomStateProperties<{
18
26
  selectedDynamicContent: DynamicContent;
@@ -21,6 +29,10 @@ export declare const useDynamicContentStore: import("pinia").StoreDefinition<"dy
21
29
  text: string;
22
30
  value: string;
23
31
  fallback: string | undefined;
32
+ format: {
33
+ key: string;
34
+ value: string;
35
+ } | undefined;
24
36
  }[];
25
37
  }, {
26
38
  setSelectedDynamicContent(dynamicContent: DynamicContent): void;
@@ -6,15 +6,16 @@ const s = a("dynamicContent", {
6
6
  selectedDynamicContentList: []
7
7
  }),
8
8
  actions: {
9
- setSelectedDynamicContent(e) {
10
- this.selectedDynamicContent = e, this.selectedDynamicContentList.push(e);
9
+ setSelectedDynamicContent(t) {
10
+ this.selectedDynamicContent = t, this.selectedDynamicContentList.push(t);
11
11
  }
12
12
  },
13
13
  getters: {
14
- getSelectedDynamicContentList: (e) => n(e.selectedDynamicContentList).map((t) => ({
15
- text: t.text,
16
- value: t.value,
17
- fallback: t.fallback
14
+ getSelectedDynamicContentList: (t) => n(t.selectedDynamicContentList).map((e) => ({
15
+ text: e.text,
16
+ value: e.value,
17
+ fallback: e.fallback,
18
+ format: e.format
18
19
  })) || []
19
20
  }
20
21
  });
@@ -1,11 +1,14 @@
1
- const l = (e) => e.map((a) => ({
1
+ const e = (l) => l.map((a) => a.format ? {
2
+ label: `${a.text} | ${a.format.key}=${a.format.value}`,
3
+ value: `{{${a.value}|${a.format.key}=${a.format.value}}}`
4
+ } : {
2
5
  label: a.fallback ? `${a.text} | ${a.fallback}` : a.text,
3
6
  value: a.fallback ? `{{${a.value}|${a.fallback}}}` : `{{${a.value}}}`
4
- })), t = () => {
5
- var e;
6
- return ((e = document.head.querySelector('meta[name="csrf-token"]')) == null ? void 0 : e.getAttribute("content")) ?? "";
7
+ }), r = () => {
8
+ var l;
9
+ return ((l = document.head.querySelector('meta[name="csrf-token"]')) == null ? void 0 : l.getAttribute("content")) ?? "";
7
10
  };
8
11
  export {
9
- l as dynamicContentToMergeTags,
10
- t as getCsrfToken
12
+ e as dynamicContentToMergeTags,
13
+ r as getCsrfToken
11
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "1.0.2-beta.aa7c201",
3
+ "version": "1.0.2-beta.ab357f5",
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",