@useinsider/guido 1.0.0-beta.f2fcf4d → 1.0.0-beta.f47d56f
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.
- package/README.md +177 -89
- package/dist/@types/generic.d.ts +11 -4
- package/dist/@types/http.d.ts +19 -0
- package/dist/components/Guido.vue.d.ts +6 -0
- package/dist/components/Guido.vue.js +6 -6
- package/dist/components/Guido.vue2.js +34 -15
- package/dist/components/organisms/{top-bar/Header.vue.js → header/HeaderWrapper.vue.js} +7 -7
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +14 -0
- package/dist/components/organisms/{top-bar/HeaderLeftSlot.vue.js → header/LeftSlot.vue.js} +7 -7
- package/dist/components/organisms/header/LeftSlot.vue2.js +11 -0
- package/dist/components/organisms/header/MiddleSlot.vue.d.ts +2 -0
- package/dist/components/organisms/header/MiddleSlot.vue.js +17 -0
- package/dist/components/organisms/header/MiddleSlot.vue2.js +20 -0
- package/dist/components/organisms/header/RightSlot.vue.d.ts +2 -0
- package/dist/components/organisms/header/RightSlot.vue.js +20 -0
- package/dist/components/organisms/header/RightSlot.vue2.js +24 -0
- package/dist/components/organisms/header/ViewOptions.vue.js +18 -0
- package/dist/components/organisms/header/ViewOptions.vue2.js +15 -0
- package/dist/components/organisms/header/version-history/VersionHistory.vue.d.ts +2 -0
- package/dist/components/organisms/header/version-history/VersionHistory.vue.js +22 -0
- package/dist/components/organisms/header/version-history/VersionHistory.vue2.js +15 -0
- package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.d.ts +16 -0
- package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.js +18 -0
- package/dist/components/organisms/header/version-history/VersionHistoryItem.vue2.js +16 -0
- package/dist/components/organisms/header/version-history/ViewOptions.vue.js +18 -0
- package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +23 -0
- package/dist/composables/useActionsApi.d.ts +4 -0
- package/dist/composables/useActionsApi.js +36 -0
- package/dist/composables/useApiExample.d.ts +4 -6
- package/dist/composables/useExport.d.ts +3 -0
- package/dist/composables/useExport.js +30 -0
- package/dist/composables/useHttp.d.ts +1 -19
- package/dist/composables/useHttp.js +84 -0
- package/dist/composables/usePartner.d.ts +4 -0
- package/dist/composables/usePartner.js +16 -0
- package/dist/composables/useStripo.d.ts +2 -2
- package/dist/composables/useStripo.js +54 -48
- package/dist/composables/useTemplates.d.ts +1 -1
- package/dist/composables/useToaster.d.ts +1 -0
- package/dist/composables/useToaster.js +37 -0
- package/dist/composables/useTranslations.d.ts +1 -3
- package/dist/composables/useTranslations.js +18 -0
- package/dist/composables/useVersionHistoryApi.d.ts +8 -0
- package/dist/composables/useVersionHistoryApi.js +53 -0
- package/dist/enums/defaults.d.ts +4 -0
- package/dist/enums/defaults.js +8 -0
- package/dist/guido.css +1 -1
- package/dist/guido.png +0 -0
- package/dist/library.d.ts +1 -0
- package/dist/mock/api/custom-fonts.d.ts +2 -0
- package/dist/node_modules/lodash-es/_Hash.js +20 -0
- package/dist/node_modules/lodash-es/_ListCache.js +20 -0
- package/dist/node_modules/lodash-es/_Map.js +6 -0
- package/dist/node_modules/lodash-es/_MapCache.js +20 -0
- package/dist/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/node_modules/lodash-es/_assocIndexOf.js +10 -0
- package/dist/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/dist/node_modules/lodash-es/_baseIsNative.js +16 -0
- package/dist/node_modules/lodash-es/_coreJsData.js +5 -0
- package/dist/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/node_modules/lodash-es/_getMapData.js +8 -0
- package/dist/node_modules/lodash-es/_getNative.js +9 -0
- package/dist/node_modules/lodash-es/_getRawTag.js +15 -0
- package/dist/node_modules/lodash-es/_getValue.js +6 -0
- package/dist/node_modules/lodash-es/_hashClear.js +7 -0
- package/dist/node_modules/lodash-es/_hashDelete.js +7 -0
- package/dist/node_modules/lodash-es/_hashGet.js +13 -0
- package/dist/node_modules/lodash-es/_hashHas.js +9 -0
- package/dist/node_modules/lodash-es/_hashSet.js +9 -0
- package/dist/node_modules/lodash-es/_isKeyable.js +7 -0
- package/dist/node_modules/lodash-es/_isMasked.js +11 -0
- package/dist/node_modules/lodash-es/_listCacheClear.js +6 -0
- package/dist/node_modules/lodash-es/_listCacheDelete.js +12 -0
- package/dist/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/dist/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/dist/node_modules/lodash-es/_listCacheSet.js +8 -0
- package/dist/node_modules/lodash-es/_mapCacheClear.js +13 -0
- package/dist/node_modules/lodash-es/_mapCacheDelete.js +8 -0
- package/dist/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/dist/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/dist/node_modules/lodash-es/_mapCacheSet.js +8 -0
- package/dist/node_modules/lodash-es/_nativeCreate.js +5 -0
- package/dist/node_modules/lodash-es/_objectToString.js +7 -0
- package/dist/node_modules/lodash-es/_root.js +5 -0
- package/dist/node_modules/lodash-es/_toSource.js +17 -0
- package/dist/node_modules/lodash-es/eq.js +6 -0
- package/dist/node_modules/lodash-es/isFunction.js +12 -0
- package/dist/node_modules/lodash-es/isObject.js +7 -0
- package/dist/node_modules/lodash-es/memoize.js +18 -0
- package/dist/services/stripoApi.d.ts +7 -0
- package/dist/services/stripoApi.js +29 -0
- package/dist/static/editor.css.js +72 -22
- package/dist/stores/editor.d.ts +5 -0
- package/dist/stores/editor.js +11 -0
- package/dist/stores/version-history.d.ts +80 -0
- package/dist/stores/version-history.js +28 -0
- package/dist/utils/dateUtil.d.ts +1 -0
- package/dist/utils/dateUtil.js +16 -0
- package/package.json +1 -1
- package/dist/components/organisms/top-bar/Header.vue2.js +0 -14
- package/dist/components/organisms/top-bar/HeaderLeftSlot.vue2.js +0 -11
- package/dist/components/organisms/top-bar/HeaderMiddleSlot.vue.js +0 -17
- package/dist/components/organisms/top-bar/HeaderMiddleSlot.vue2.js +0 -11
- package/dist/components/organisms/top-bar/HeaderRightSlot.vue.js +0 -18
- package/dist/components/organisms/top-bar/HeaderRightSlot.vue2.js +0 -14
- package/dist/enums/defaults.enum.d.ts +0 -18
- package/dist/stores/counter.d.ts +0 -12
- /package/dist/components/organisms/{top-bar/Header.vue.d.ts → header/HeaderWrapper.vue.d.ts} +0 -0
- /package/dist/components/organisms/{top-bar/HeaderLeftSlot.vue.d.ts → header/LeftSlot.vue.d.ts} +0 -0
- /package/dist/components/organisms/{top-bar/HeaderMiddleSlot.vue.d.ts → header/ViewOptions.vue.d.ts} +0 -0
- /package/dist/components/organisms/{top-bar/HeaderRightSlot.vue.d.ts → header/version-history/ViewOptions.vue.d.ts} +0 -0
package/dist/guido.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.version-history-item[data-v-0e2ff42d]{flex-basis:200px}.version-history-wrapper[data-v-187d41fa]{gap:8px}[data-v-6a2bde67] .guido__verion-history-view-option-selection-desktop svg,[data-v-6a2bde67] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6a2bde67] .in-segments-wrapper__button_selected,[data-v-6a2bde67] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-0fff376c] .guido__view-option-selection-desktop svg,[data-v-0fff376c] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-0fff376c] .in-segments-wrapper__button_selected,[data-v-0fff376c] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.header-right-slot[data-v-fefca98f]{gap:16px}.guido-editor__wrapper[data-v-d4a5c957],.guido-editor__container[data-v-d4a5c957]{width:100%;height:100vh}
|
package/dist/guido.png
ADDED
|
Binary file
|
package/dist/library.d.ts
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import p from "./_hashClear.js";
|
|
2
|
+
import a from "./_hashDelete.js";
|
|
3
|
+
import l from "./_hashGet.js";
|
|
4
|
+
import s from "./_hashHas.js";
|
|
5
|
+
import m from "./_hashSet.js";
|
|
6
|
+
function t(o) {
|
|
7
|
+
var e = -1, h = o == null ? 0 : o.length;
|
|
8
|
+
for (this.clear(); ++e < h; ) {
|
|
9
|
+
var r = o[e];
|
|
10
|
+
this.set(r[0], r[1]);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
t.prototype.clear = p;
|
|
14
|
+
t.prototype.delete = a;
|
|
15
|
+
t.prototype.get = l;
|
|
16
|
+
t.prototype.has = s;
|
|
17
|
+
t.prototype.set = m;
|
|
18
|
+
export {
|
|
19
|
+
t as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import p from "./_listCacheClear.js";
|
|
2
|
+
import a from "./_listCacheDelete.js";
|
|
3
|
+
import i from "./_listCacheGet.js";
|
|
4
|
+
import h from "./_listCacheHas.js";
|
|
5
|
+
import s from "./_listCacheSet.js";
|
|
6
|
+
function t(e) {
|
|
7
|
+
var o = -1, l = e == null ? 0 : e.length;
|
|
8
|
+
for (this.clear(); ++o < l; ) {
|
|
9
|
+
var r = e[o];
|
|
10
|
+
this.set(r[0], r[1]);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
t.prototype.clear = p;
|
|
14
|
+
t.prototype.delete = a;
|
|
15
|
+
t.prototype.get = i;
|
|
16
|
+
t.prototype.has = h;
|
|
17
|
+
t.prototype.set = s;
|
|
18
|
+
export {
|
|
19
|
+
t as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import r from "./_mapCacheClear.js";
|
|
2
|
+
import m from "./_mapCacheDelete.js";
|
|
3
|
+
import h from "./_mapCacheGet.js";
|
|
4
|
+
import l from "./_mapCacheHas.js";
|
|
5
|
+
import c from "./_mapCacheSet.js";
|
|
6
|
+
function e(t) {
|
|
7
|
+
var o = -1, a = t == null ? 0 : t.length;
|
|
8
|
+
for (this.clear(); ++o < a; ) {
|
|
9
|
+
var p = t[o];
|
|
10
|
+
this.set(p[0], p[1]);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
e.prototype.clear = r;
|
|
14
|
+
e.prototype.delete = m;
|
|
15
|
+
e.prototype.get = h;
|
|
16
|
+
e.prototype.has = l;
|
|
17
|
+
e.prototype.set = c;
|
|
18
|
+
export {
|
|
19
|
+
e as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import t from "./_Symbol.js";
|
|
2
|
+
import e from "./_getRawTag.js";
|
|
3
|
+
import o from "./_objectToString.js";
|
|
4
|
+
var i = "[object Null]", f = "[object Undefined]", r = t ? t.toStringTag : void 0;
|
|
5
|
+
function m(n) {
|
|
6
|
+
return n == null ? n === void 0 ? f : i : r && r in Object(n) ? e(n) : o(n);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
m as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import o from "./isFunction.js";
|
|
2
|
+
import e from "./_isMasked.js";
|
|
3
|
+
import a from "./isObject.js";
|
|
4
|
+
import n from "./_toSource.js";
|
|
5
|
+
var p = /[\\^$.*+?()[\]{}|]/g, i = /^\[object .+?Constructor\]$/, s = Function.prototype, c = Object.prototype, f = s.toString, m = c.hasOwnProperty, u = RegExp(
|
|
6
|
+
"^" + f.call(m).replace(p, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
7
|
+
);
|
|
8
|
+
function O(r) {
|
|
9
|
+
if (!a(r) || e(r))
|
|
10
|
+
return !1;
|
|
11
|
+
var t = o(r) ? u : i;
|
|
12
|
+
return t.test(n(r));
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
O as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import e from "./_Symbol.js";
|
|
2
|
+
var o = Object.prototype, c = o.hasOwnProperty, f = o.toString, r = e ? e.toStringTag : void 0;
|
|
3
|
+
function p(t) {
|
|
4
|
+
var a = c.call(t, r), n = t[r];
|
|
5
|
+
try {
|
|
6
|
+
t[r] = void 0;
|
|
7
|
+
var i = !0;
|
|
8
|
+
} catch {
|
|
9
|
+
}
|
|
10
|
+
var g = f.call(t);
|
|
11
|
+
return i && (a ? t[r] = n : delete t[r]), g;
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
p as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import e from "./_nativeCreate.js";
|
|
2
|
+
var n = "__lodash_hash_undefined__", o = Object.prototype, _ = o.hasOwnProperty;
|
|
3
|
+
function h(a) {
|
|
4
|
+
var r = this.__data__;
|
|
5
|
+
if (e) {
|
|
6
|
+
var t = r[a];
|
|
7
|
+
return t === n ? void 0 : t;
|
|
8
|
+
}
|
|
9
|
+
return _.call(r, a) ? r[a] : void 0;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
h as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import s from "./_assocIndexOf.js";
|
|
2
|
+
var i = Array.prototype, l = i.splice;
|
|
3
|
+
function n(r) {
|
|
4
|
+
var e = this.__data__, a = s(e, r);
|
|
5
|
+
if (a < 0)
|
|
6
|
+
return !1;
|
|
7
|
+
var t = e.length - 1;
|
|
8
|
+
return a == t ? e.pop() : l.call(e, a, 1), --this.size, !0;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
n as default
|
|
12
|
+
};
|
|
@@ -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,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,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
|
+
};
|