@useinsider/guido 1.0.0-beta.02a8faf

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 (117) hide show
  1. package/README.md +217 -0
  2. package/dist/@types/events.d.ts +1 -0
  3. package/dist/@types/generic.d.ts +13 -0
  4. package/dist/App.vue.d.ts +3 -0
  5. package/dist/_virtual/_plugin-vue2_normalizer.js +10 -0
  6. package/dist/components/Guido.vue.d.ts +20 -0
  7. package/dist/components/Guido.vue.js +18 -0
  8. package/dist/components/Guido.vue2.js +43 -0
  9. package/dist/components/organisms/header/HeaderWrapper.vue.d.ts +2 -0
  10. package/dist/components/organisms/header/HeaderWrapper.vue.js +17 -0
  11. package/dist/components/organisms/header/HeaderWrapper.vue2.js +14 -0
  12. package/dist/components/organisms/header/LeftSlot.vue.d.ts +2 -0
  13. package/dist/components/organisms/header/LeftSlot.vue.js +17 -0
  14. package/dist/components/organisms/header/LeftSlot.vue2.js +11 -0
  15. package/dist/components/organisms/header/MiddleSlot.vue.d.ts +2 -0
  16. package/dist/components/organisms/header/MiddleSlot.vue.js +17 -0
  17. package/dist/components/organisms/header/MiddleSlot.vue2.js +20 -0
  18. package/dist/components/organisms/header/RightSlot.vue.d.ts +2 -0
  19. package/dist/components/organisms/header/RightSlot.vue.js +20 -0
  20. package/dist/components/organisms/header/RightSlot.vue2.js +24 -0
  21. package/dist/components/organisms/header/ViewOptions.vue.d.ts +2 -0
  22. package/dist/components/organisms/header/ViewOptions.vue.js +18 -0
  23. package/dist/components/organisms/header/ViewOptions.vue2.js +15 -0
  24. package/dist/components/organisms/header/version-history/VersionHistory.vue.d.ts +2 -0
  25. package/dist/components/organisms/header/version-history/VersionHistory.vue.js +22 -0
  26. package/dist/components/organisms/header/version-history/VersionHistory.vue2.js +15 -0
  27. package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.d.ts +16 -0
  28. package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.js +18 -0
  29. package/dist/components/organisms/header/version-history/VersionHistoryItem.vue2.js +16 -0
  30. package/dist/components/organisms/header/version-history/ViewOptions.vue.d.ts +2 -0
  31. package/dist/components/organisms/header/version-history/ViewOptions.vue.js +18 -0
  32. package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +23 -0
  33. package/dist/composables/useActionsApi.d.ts +4 -0
  34. package/dist/composables/useActionsApi.js +36 -0
  35. package/dist/composables/useApiExample.d.ts +61 -0
  36. package/dist/composables/useCustomInterfaceAppearance.d.ts +3 -0
  37. package/dist/composables/useCustomInterfaceAppearance.js +13 -0
  38. package/dist/composables/useExport.d.ts +3 -0
  39. package/dist/composables/useExport.js +30 -0
  40. package/dist/composables/useHttp.d.ts +78 -0
  41. package/dist/composables/useHttp.js +84 -0
  42. package/dist/composables/usePartner.d.ts +4 -0
  43. package/dist/composables/usePartner.js +16 -0
  44. package/dist/composables/useStripo.d.ts +4 -0
  45. package/dist/composables/useStripo.js +74 -0
  46. package/dist/composables/useTemplates.d.ts +5 -0
  47. package/dist/composables/useTemplates.js +27 -0
  48. package/dist/composables/useToaster.d.ts +21 -0
  49. package/dist/composables/useToaster.js +37 -0
  50. package/dist/composables/useTranslations.d.ts +5 -0
  51. package/dist/composables/useTranslations.js +18 -0
  52. package/dist/composables/useVersionHistoryApi.d.ts +8 -0
  53. package/dist/composables/useVersionHistoryApi.js +53 -0
  54. package/dist/enums/defaults.d.ts +4 -0
  55. package/dist/enums/defaults.js +8 -0
  56. package/dist/guido.css +1 -0
  57. package/dist/guido.png +0 -0
  58. package/dist/library.d.ts +3 -0
  59. package/dist/library.js +4 -0
  60. package/dist/main.d.ts +1 -0
  61. package/dist/mock/api/auth.d.ts +2 -0
  62. package/dist/mock/api/custom-fonts.d.ts +2 -0
  63. package/dist/mock/browser.d.ts +1 -0
  64. package/dist/mock/handlers.d.ts +1 -0
  65. package/dist/mockServiceWorker.js +344 -0
  66. package/dist/node_modules/lodash-es/_Hash.js +20 -0
  67. package/dist/node_modules/lodash-es/_ListCache.js +20 -0
  68. package/dist/node_modules/lodash-es/_Map.js +6 -0
  69. package/dist/node_modules/lodash-es/_MapCache.js +20 -0
  70. package/dist/node_modules/lodash-es/_Symbol.js +5 -0
  71. package/dist/node_modules/lodash-es/_assocIndexOf.js +10 -0
  72. package/dist/node_modules/lodash-es/_baseGetTag.js +10 -0
  73. package/dist/node_modules/lodash-es/_baseIsNative.js +16 -0
  74. package/dist/node_modules/lodash-es/_coreJsData.js +5 -0
  75. package/dist/node_modules/lodash-es/_freeGlobal.js +4 -0
  76. package/dist/node_modules/lodash-es/_getMapData.js +8 -0
  77. package/dist/node_modules/lodash-es/_getNative.js +9 -0
  78. package/dist/node_modules/lodash-es/_getRawTag.js +15 -0
  79. package/dist/node_modules/lodash-es/_getValue.js +6 -0
  80. package/dist/node_modules/lodash-es/_hashClear.js +7 -0
  81. package/dist/node_modules/lodash-es/_hashDelete.js +7 -0
  82. package/dist/node_modules/lodash-es/_hashGet.js +13 -0
  83. package/dist/node_modules/lodash-es/_hashHas.js +9 -0
  84. package/dist/node_modules/lodash-es/_hashSet.js +9 -0
  85. package/dist/node_modules/lodash-es/_isKeyable.js +7 -0
  86. package/dist/node_modules/lodash-es/_isMasked.js +11 -0
  87. package/dist/node_modules/lodash-es/_listCacheClear.js +6 -0
  88. package/dist/node_modules/lodash-es/_listCacheDelete.js +12 -0
  89. package/dist/node_modules/lodash-es/_listCacheGet.js +8 -0
  90. package/dist/node_modules/lodash-es/_listCacheHas.js +7 -0
  91. package/dist/node_modules/lodash-es/_listCacheSet.js +8 -0
  92. package/dist/node_modules/lodash-es/_mapCacheClear.js +13 -0
  93. package/dist/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  94. package/dist/node_modules/lodash-es/_mapCacheGet.js +7 -0
  95. package/dist/node_modules/lodash-es/_mapCacheHas.js +7 -0
  96. package/dist/node_modules/lodash-es/_mapCacheSet.js +8 -0
  97. package/dist/node_modules/lodash-es/_nativeCreate.js +5 -0
  98. package/dist/node_modules/lodash-es/_objectToString.js +7 -0
  99. package/dist/node_modules/lodash-es/_root.js +5 -0
  100. package/dist/node_modules/lodash-es/_toSource.js +17 -0
  101. package/dist/node_modules/lodash-es/eq.js +6 -0
  102. package/dist/node_modules/lodash-es/isFunction.js +12 -0
  103. package/dist/node_modules/lodash-es/isObject.js +7 -0
  104. package/dist/node_modules/lodash-es/memoize.js +18 -0
  105. package/dist/services/stripoApi.d.ts +7 -0
  106. package/dist/services/stripoApi.js +29 -0
  107. package/dist/sprite.svg +3133 -0
  108. package/dist/static/editor.css.js +232 -0
  109. package/dist/static/templates/default/index.html.js +5 -0
  110. package/dist/static/templates/default/style.css.js +119 -0
  111. package/dist/stores/editor.d.ts +5 -0
  112. package/dist/stores/editor.js +11 -0
  113. package/dist/stores/version-history.d.ts +80 -0
  114. package/dist/stores/version-history.js +28 -0
  115. package/dist/utils/dateUtil.d.ts +1 -0
  116. package/dist/utils/dateUtil.js +16 -0
  117. package/package.json +80 -0
@@ -0,0 +1,13 @@
1
+ import a from "./_Hash.js";
2
+ import t from "./_ListCache.js";
3
+ import e from "./_Map.js";
4
+ function o() {
5
+ this.size = 0, this.__data__ = {
6
+ hash: new a(),
7
+ map: new (e || t)(),
8
+ string: new a()
9
+ };
10
+ }
11
+ export {
12
+ o as default
13
+ };
@@ -0,0 +1,8 @@
1
+ import a from "./_getMapData.js";
2
+ function i(e) {
3
+ var t = a(this, e).delete(e);
4
+ return this.size -= t ? 1 : 0, t;
5
+ }
6
+ export {
7
+ i as default
8
+ };
@@ -0,0 +1,7 @@
1
+ import a from "./_getMapData.js";
2
+ function r(t) {
3
+ return a(this, t).get(t);
4
+ }
5
+ export {
6
+ r as default
7
+ };
@@ -0,0 +1,7 @@
1
+ import t from "./_getMapData.js";
2
+ function e(a) {
3
+ return t(this, a).has(a);
4
+ }
5
+ export {
6
+ e as default
7
+ };
@@ -0,0 +1,8 @@
1
+ import s from "./_getMapData.js";
2
+ function h(a, e) {
3
+ var t = s(this, a), i = t.size;
4
+ return t.set(a, e), this.size += t.size == i ? 0 : 1, this;
5
+ }
6
+ export {
7
+ h as default
8
+ };
@@ -0,0 +1,5 @@
1
+ import e from "./_getNative.js";
2
+ var a = e(Object, "create");
3
+ export {
4
+ a as default
5
+ };
@@ -0,0 +1,7 @@
1
+ var o = Object.prototype, r = o.toString;
2
+ function e(t) {
3
+ return r.call(t);
4
+ }
5
+ export {
6
+ e as default
7
+ };
@@ -0,0 +1,5 @@
1
+ import e from "./_freeGlobal.js";
2
+ var t = typeof self == "object" && self && self.Object === Object && self, r = e || t || Function("return this")();
3
+ export {
4
+ r as default
5
+ };
@@ -0,0 +1,17 @@
1
+ var o = Function.prototype, n = o.toString;
2
+ function e(t) {
3
+ if (t != null) {
4
+ try {
5
+ return n.call(t);
6
+ } catch {
7
+ }
8
+ try {
9
+ return t + "";
10
+ } catch {
11
+ }
12
+ }
13
+ return "";
14
+ }
15
+ export {
16
+ e as default
17
+ };
@@ -0,0 +1,6 @@
1
+ function t(n, f) {
2
+ return n === f || n !== n && f !== f;
3
+ }
4
+ export {
5
+ t as default
6
+ };
@@ -0,0 +1,12 @@
1
+ import o from "./_baseGetTag.js";
2
+ import r from "./isObject.js";
3
+ var e = "[object AsyncFunction]", a = "[object Function]", c = "[object GeneratorFunction]", i = "[object Proxy]";
4
+ function g(n) {
5
+ if (!r(n))
6
+ return !1;
7
+ var t = o(n);
8
+ return t == a || t == c || t == e || t == i;
9
+ }
10
+ export {
11
+ g as default
12
+ };
@@ -0,0 +1,7 @@
1
+ function n(t) {
2
+ var e = typeof t;
3
+ return t != null && (e == "object" || e == "function");
4
+ }
5
+ export {
6
+ n as default
7
+ };
@@ -0,0 +1,18 @@
1
+ import h from "./_MapCache.js";
2
+ var p = "Expected a function";
3
+ function o(r, e) {
4
+ if (typeof r != "function" || e != null && typeof e != "function")
5
+ throw new TypeError(p);
6
+ var t = function() {
7
+ var c = arguments, n = e ? e.apply(this, c) : c[0], a = t.cache;
8
+ if (a.has(n))
9
+ return a.get(n);
10
+ var i = r.apply(this, c);
11
+ return t.cache = a.set(n, i) || a, i;
12
+ };
13
+ return t.cache = new (o.Cache || h)(), t;
14
+ }
15
+ o.Cache = h;
16
+ export {
17
+ o as default
18
+ };
@@ -0,0 +1,7 @@
1
+ import type { CustomFont } from '@@/Types/stripo';
2
+ export declare const useStripoApi: () => {
3
+ getToken: () => Promise<string>;
4
+ getCustomFonts: () => Promise<(CustomFont & {
5
+ active: boolean;
6
+ })[]>;
7
+ };
@@ -0,0 +1,29 @@
1
+ import { useHttp as s } from "../composables/useHttp.js";
2
+ import { useToaster as n } from "../composables/useToaster.js";
3
+ const m = () => {
4
+ const { get: o } = s(), { handleError: r } = n();
5
+ return {
6
+ getToken: async () => {
7
+ try {
8
+ const t = Number(localStorage.getItem("ins-guido-test-instance")), { data: e } = await o(`/stripo/get-user-token?test=${t}`);
9
+ return e.body.token;
10
+ } catch (t) {
11
+ return r(t, "Failed to fetch token"), "";
12
+ }
13
+ },
14
+ getCustomFonts: async () => {
15
+ try {
16
+ const { data: t = [] } = await o("/stripo/get-partner-custom-fonts");
17
+ return t.map((e) => ({
18
+ ...e,
19
+ active: !0
20
+ }));
21
+ } catch (t) {
22
+ return r(t, "Failed to fetch custom fonts"), [];
23
+ }
24
+ }
25
+ };
26
+ };
27
+ export {
28
+ m as useStripoApi
29
+ };