@useinsider/guido 1.0.0-beta.a0d6eee → 1.0.0-beta.a19efaa

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 (37) hide show
  1. package/README.md +21 -133
  2. package/dist/@types/generic.d.ts +1 -10
  3. package/dist/components/Guido.vue.d.ts +1 -11
  4. package/dist/components/Guido.vue.js +1 -1
  5. package/dist/components/Guido.vue2.js +33 -70
  6. package/dist/components/organisms/header/LeftSlot.vue.js +5 -5
  7. package/dist/components/organisms/header/LeftSlot.vue2.js +8 -10
  8. package/dist/components/organisms/header/MiddleSlot.vue2.js +6 -6
  9. package/dist/components/organisms/header/RightSlot.vue.js +4 -4
  10. package/dist/components/organisms/header/RightSlot.vue2.js +15 -29
  11. package/dist/components/organisms/header/ViewOptions.vue.js +1 -1
  12. package/dist/components/organisms/header/ViewOptions.vue2.js +10 -29
  13. package/dist/components/organisms/header/version-history/ViewOptions.vue.js +3 -3
  14. package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +16 -34
  15. package/dist/composables/useStripo.js +20 -27
  16. package/dist/composables/useTemplates.d.ts +5 -0
  17. package/dist/composables/useTemplates.js +27 -0
  18. package/dist/extensions/DynamicContent/dynamic-content.js +15 -13
  19. package/dist/guido.css +1 -1
  20. package/dist/services/stripoApi.d.ts +1 -2
  21. package/dist/services/stripoApi.js +7 -27
  22. package/dist/static/templates/default/index.html.js +5 -0
  23. package/dist/static/templates/default/style.css.js +119 -0
  24. package/dist/utils/tooltipUtils.d.ts +1 -1
  25. package/dist/utils/tooltipUtils.js +6 -8
  26. package/package.json +1 -1
  27. package/dist/composables/useGuidoActions.d.ts +0 -46
  28. package/dist/composables/useGuidoActions.js +0 -37
  29. package/dist/composables/useProvideInject.d.ts +0 -14
  30. package/dist/composables/useProvideInject.js +0 -17
  31. package/dist/mock/api/default-template.d.ts +0 -2
  32. package/dist/stores/dynamic-content.d.ts +0 -27
  33. package/dist/stores/dynamic-content.js +0 -23
  34. package/dist/utils/arrayUtil.d.ts +0 -1
  35. package/dist/utils/arrayUtil.js +0 -10
  36. package/dist/utils/genericUtil.d.ts +0 -2
  37. package/dist/utils/genericUtil.js +0 -7
@@ -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
- };