@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.
- package/README.md +217 -0
- package/dist/@types/events.d.ts +1 -0
- package/dist/@types/generic.d.ts +13 -0
- package/dist/App.vue.d.ts +3 -0
- package/dist/_virtual/_plugin-vue2_normalizer.js +10 -0
- package/dist/components/Guido.vue.d.ts +20 -0
- package/dist/components/Guido.vue.js +18 -0
- package/dist/components/Guido.vue2.js +43 -0
- package/dist/components/organisms/header/HeaderWrapper.vue.d.ts +2 -0
- package/dist/components/organisms/header/HeaderWrapper.vue.js +17 -0
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +14 -0
- package/dist/components/organisms/header/LeftSlot.vue.d.ts +2 -0
- package/dist/components/organisms/header/LeftSlot.vue.js +17 -0
- 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.d.ts +2 -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.d.ts +2 -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 +61 -0
- package/dist/composables/useCustomInterfaceAppearance.d.ts +3 -0
- package/dist/composables/useCustomInterfaceAppearance.js +13 -0
- package/dist/composables/useExport.d.ts +3 -0
- package/dist/composables/useExport.js +30 -0
- package/dist/composables/useHttp.d.ts +78 -0
- 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 +4 -0
- package/dist/composables/useStripo.js +74 -0
- package/dist/composables/useTemplates.d.ts +5 -0
- package/dist/composables/useTemplates.js +27 -0
- package/dist/composables/useToaster.d.ts +21 -0
- package/dist/composables/useToaster.js +37 -0
- package/dist/composables/useTranslations.d.ts +5 -0
- 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 -0
- package/dist/guido.png +0 -0
- package/dist/library.d.ts +3 -0
- package/dist/library.js +4 -0
- package/dist/main.d.ts +1 -0
- package/dist/mock/api/auth.d.ts +2 -0
- package/dist/mock/api/custom-fonts.d.ts +2 -0
- package/dist/mock/browser.d.ts +1 -0
- package/dist/mock/handlers.d.ts +1 -0
- package/dist/mockServiceWorker.js +344 -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/sprite.svg +3133 -0
- package/dist/static/editor.css.js +232 -0
- package/dist/static/templates/default/index.html.js +5 -0
- package/dist/static/templates/default/style.css.js +119 -0
- 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 +80 -0
|
@@ -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
|
+
};
|