@useinsider/guido 1.0.0-beta.f2786f4 → 1.0.0-beta.f2fcf4d
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 +89 -166
- package/dist/@types/generic.d.ts +4 -1
- package/dist/components/Guido.vue.d.ts +0 -2
- package/dist/components/Guido.vue.js +7 -7
- package/dist/components/Guido.vue2.js +11 -18
- package/dist/components/organisms/top-bar/HeaderMiddleSlot.vue.js +8 -8
- package/dist/components/organisms/top-bar/HeaderMiddleSlot.vue2.js +6 -14
- package/dist/components/organisms/top-bar/HeaderRightSlot.vue.d.ts +1 -1
- package/dist/components/organisms/top-bar/HeaderRightSlot.vue.js +9 -9
- package/dist/components/organisms/top-bar/HeaderRightSlot.vue2.js +9 -7
- package/dist/composables/useStripo.d.ts +1 -1
- package/dist/composables/useStripo.js +24 -37
- package/dist/composables/useTemplates.d.ts +1 -1
- package/dist/enums/defaults.enum.d.ts +18 -0
- package/dist/guido.css +1 -1
- package/dist/library.d.ts +0 -1
- package/dist/stores/counter.d.ts +12 -0
- package/package.json +1 -1
- package/dist/components/organisms/top-bar/HeaderViewOptions.vue.d.ts +0 -2
- package/dist/components/organisms/top-bar/HeaderViewOptions.vue.js +0 -18
- package/dist/components/organisms/top-bar/HeaderViewOptions.vue2.js +0 -15
- package/dist/composables/useTranslations.js +0 -20
- package/dist/enums/defaults.d.ts +0 -2
- package/dist/enums/defaults.js +0 -6
- package/dist/guido.png +0 -0
- package/dist/node_modules/lodash-es/_Hash.js +0 -20
- package/dist/node_modules/lodash-es/_ListCache.js +0 -20
- package/dist/node_modules/lodash-es/_Map.js +0 -6
- package/dist/node_modules/lodash-es/_MapCache.js +0 -20
- package/dist/node_modules/lodash-es/_Symbol.js +0 -5
- package/dist/node_modules/lodash-es/_assocIndexOf.js +0 -10
- package/dist/node_modules/lodash-es/_baseGetTag.js +0 -10
- package/dist/node_modules/lodash-es/_baseIsNative.js +0 -16
- package/dist/node_modules/lodash-es/_coreJsData.js +0 -5
- package/dist/node_modules/lodash-es/_freeGlobal.js +0 -4
- package/dist/node_modules/lodash-es/_getMapData.js +0 -8
- package/dist/node_modules/lodash-es/_getNative.js +0 -9
- package/dist/node_modules/lodash-es/_getRawTag.js +0 -15
- package/dist/node_modules/lodash-es/_getValue.js +0 -6
- package/dist/node_modules/lodash-es/_hashClear.js +0 -7
- package/dist/node_modules/lodash-es/_hashDelete.js +0 -7
- package/dist/node_modules/lodash-es/_hashGet.js +0 -13
- package/dist/node_modules/lodash-es/_hashHas.js +0 -9
- package/dist/node_modules/lodash-es/_hashSet.js +0 -9
- package/dist/node_modules/lodash-es/_isKeyable.js +0 -7
- package/dist/node_modules/lodash-es/_isMasked.js +0 -11
- package/dist/node_modules/lodash-es/_listCacheClear.js +0 -6
- package/dist/node_modules/lodash-es/_listCacheDelete.js +0 -12
- package/dist/node_modules/lodash-es/_listCacheGet.js +0 -8
- package/dist/node_modules/lodash-es/_listCacheHas.js +0 -7
- package/dist/node_modules/lodash-es/_listCacheSet.js +0 -8
- package/dist/node_modules/lodash-es/_mapCacheClear.js +0 -13
- package/dist/node_modules/lodash-es/_mapCacheDelete.js +0 -8
- package/dist/node_modules/lodash-es/_mapCacheGet.js +0 -7
- package/dist/node_modules/lodash-es/_mapCacheHas.js +0 -7
- package/dist/node_modules/lodash-es/_mapCacheSet.js +0 -8
- package/dist/node_modules/lodash-es/_nativeCreate.js +0 -5
- package/dist/node_modules/lodash-es/_objectToString.js +0 -7
- package/dist/node_modules/lodash-es/_root.js +0 -5
- package/dist/node_modules/lodash-es/_toSource.js +0 -17
- package/dist/node_modules/lodash-es/eq.js +0 -6
- package/dist/node_modules/lodash-es/isFunction.js +0 -12
- package/dist/node_modules/lodash-es/isObject.js +0 -7
- package/dist/node_modules/lodash-es/memoize.js +0 -18
- package/dist/node_modules/pinia/dist/pinia.js +0 -314
- package/dist/node_modules/pinia/node_modules/vue-demi/lib/index.js +0 -11
- package/dist/stores/editor.d.ts +0 -4
- package/dist/stores/editor.js +0 -10
|
@@ -1,314 +0,0 @@
|
|
|
1
|
-
import { hasInjectionContext as ut } from "../node_modules/vue-demi/lib/index.js";
|
|
2
|
-
import { inject as at, getCurrentInstance as it, set as O, ref as K, reactive as ft, markRaw as j, effectScope as _t, isRef as I, isReactive as J, toRef as T, del as A, nextTick as B, computed as tt, getCurrentScope as lt, onScopeDispose as Et, watch as pt, toRefs as Q } from "vue";
|
|
3
|
-
/*!
|
|
4
|
-
* pinia v2.3.1
|
|
5
|
-
* (c) 2025 Eduardo San Martin Morote
|
|
6
|
-
* @license MIT
|
|
7
|
-
*/
|
|
8
|
-
let R;
|
|
9
|
-
const $ = (t) => R = t, dt = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
10
|
-
/* istanbul ignore next */
|
|
11
|
-
Symbol()
|
|
12
|
-
);
|
|
13
|
-
function V(t) {
|
|
14
|
-
return t && typeof t == "object" && Object.prototype.toString.call(t) === "[object Object]" && typeof t.toJSON != "function";
|
|
15
|
-
}
|
|
16
|
-
var x;
|
|
17
|
-
(function(t) {
|
|
18
|
-
t.direct = "direct", t.patchObject = "patch object", t.patchFunction = "patch function";
|
|
19
|
-
})(x || (x = {}));
|
|
20
|
-
const C = typeof window < "u";
|
|
21
|
-
function et(t, c) {
|
|
22
|
-
for (const r in c) {
|
|
23
|
-
const s = c[r];
|
|
24
|
-
if (!(r in t))
|
|
25
|
-
continue;
|
|
26
|
-
const u = t[r];
|
|
27
|
-
V(u) && V(s) && !I(s) && !J(s) ? t[r] = et(u, s) : O(t, r, s);
|
|
28
|
-
}
|
|
29
|
-
return t;
|
|
30
|
-
}
|
|
31
|
-
const ot = () => {
|
|
32
|
-
};
|
|
33
|
-
function X(t, c, r, s = ot) {
|
|
34
|
-
t.push(c);
|
|
35
|
-
const u = () => {
|
|
36
|
-
const f = t.indexOf(c);
|
|
37
|
-
f > -1 && (t.splice(f, 1), s());
|
|
38
|
-
};
|
|
39
|
-
return !r && lt() && Et(u), u;
|
|
40
|
-
}
|
|
41
|
-
function g(t, ...c) {
|
|
42
|
-
t.slice().forEach((r) => {
|
|
43
|
-
r(...c);
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
const ht = (t) => t(), Y = Symbol(), W = Symbol();
|
|
47
|
-
function H(t, c) {
|
|
48
|
-
t instanceof Map && c instanceof Map ? c.forEach((r, s) => t.set(s, r)) : t instanceof Set && c instanceof Set && c.forEach(t.add, t);
|
|
49
|
-
for (const r in c) {
|
|
50
|
-
if (!c.hasOwnProperty(r))
|
|
51
|
-
continue;
|
|
52
|
-
const s = c[r], u = t[r];
|
|
53
|
-
V(u) && V(s) && t.hasOwnProperty(r) && !I(s) && !J(s) ? t[r] = H(u, s) : t[r] = s;
|
|
54
|
-
}
|
|
55
|
-
return t;
|
|
56
|
-
}
|
|
57
|
-
const Nt = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
|
|
58
|
-
/* istanbul ignore next */
|
|
59
|
-
Symbol()
|
|
60
|
-
);
|
|
61
|
-
function vt(t) {
|
|
62
|
-
return !V(t) || !t.hasOwnProperty(Nt);
|
|
63
|
-
}
|
|
64
|
-
const { assign: y } = Object;
|
|
65
|
-
function Z(t) {
|
|
66
|
-
return !!(I(t) && t.effect);
|
|
67
|
-
}
|
|
68
|
-
function G(t, c, r, s) {
|
|
69
|
-
const { state: u, actions: f, getters: E } = c, i = r.state.value[t];
|
|
70
|
-
let b;
|
|
71
|
-
function N() {
|
|
72
|
-
!i && (process.env.NODE_ENV === "production" || !s) && O(r.state.value, t, u ? u() : {});
|
|
73
|
-
const p = process.env.NODE_ENV !== "production" && s ? (
|
|
74
|
-
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
75
|
-
Q(K(u ? u() : {}).value)
|
|
76
|
-
) : Q(r.state.value[t]);
|
|
77
|
-
return y(p, f, Object.keys(E || {}).reduce((_, l) => (process.env.NODE_ENV !== "production" && l in p && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${l}" in store "${t}".`), _[l] = j(tt(() => {
|
|
78
|
-
$(r);
|
|
79
|
-
const v = r._s.get(t);
|
|
80
|
-
if (v._r)
|
|
81
|
-
return E[l].call(v, v);
|
|
82
|
-
})), _), {}));
|
|
83
|
-
}
|
|
84
|
-
return b = M(t, N, c, r, s, !0), b;
|
|
85
|
-
}
|
|
86
|
-
function M(t, c, r = {}, s, u, f) {
|
|
87
|
-
let E;
|
|
88
|
-
const i = y({ actions: {} }, r);
|
|
89
|
-
if (process.env.NODE_ENV !== "production" && !s._e.active)
|
|
90
|
-
throw new Error("Pinia destroyed");
|
|
91
|
-
const b = { deep: !0 };
|
|
92
|
-
process.env.NODE_ENV;
|
|
93
|
-
let N, p, _ = [], l = [], v;
|
|
94
|
-
const D = s.state.value[t];
|
|
95
|
-
!f && !D && (process.env.NODE_ENV === "production" || !u) && O(s.state.value, t, {});
|
|
96
|
-
const w = K({});
|
|
97
|
-
let q;
|
|
98
|
-
function z(o) {
|
|
99
|
-
let e;
|
|
100
|
-
N = p = !1, process.env.NODE_ENV !== "production" && (v = []), typeof o == "function" ? (o(s.state.value[t]), e = {
|
|
101
|
-
type: x.patchFunction,
|
|
102
|
-
storeId: t,
|
|
103
|
-
events: v
|
|
104
|
-
}) : (H(s.state.value[t], o), e = {
|
|
105
|
-
type: x.patchObject,
|
|
106
|
-
payload: o,
|
|
107
|
-
storeId: t,
|
|
108
|
-
events: v
|
|
109
|
-
});
|
|
110
|
-
const a = q = Symbol();
|
|
111
|
-
B().then(() => {
|
|
112
|
-
q === a && (N = !0);
|
|
113
|
-
}), p = !0, g(_, e, s.state.value[t]);
|
|
114
|
-
}
|
|
115
|
-
const st = f ? function() {
|
|
116
|
-
const { state: e } = r, a = e ? e() : {};
|
|
117
|
-
this.$patch((d) => {
|
|
118
|
-
y(d, a);
|
|
119
|
-
});
|
|
120
|
-
} : (
|
|
121
|
-
/* istanbul ignore next */
|
|
122
|
-
process.env.NODE_ENV !== "production" ? () => {
|
|
123
|
-
throw new Error(`🍍: Store "${t}" is built using the setup syntax and does not implement $reset().`);
|
|
124
|
-
} : ot
|
|
125
|
-
);
|
|
126
|
-
function nt() {
|
|
127
|
-
E.stop(), _ = [], l = [], s._s.delete(t);
|
|
128
|
-
}
|
|
129
|
-
const k = (o, e = "") => {
|
|
130
|
-
if (Y in o)
|
|
131
|
-
return o[W] = e, o;
|
|
132
|
-
const a = function() {
|
|
133
|
-
$(s);
|
|
134
|
-
const d = Array.from(arguments), P = [], F = [];
|
|
135
|
-
function rt(h) {
|
|
136
|
-
P.push(h);
|
|
137
|
-
}
|
|
138
|
-
function ct(h) {
|
|
139
|
-
F.push(h);
|
|
140
|
-
}
|
|
141
|
-
g(l, {
|
|
142
|
-
args: d,
|
|
143
|
-
name: a[W],
|
|
144
|
-
store: n,
|
|
145
|
-
after: rt,
|
|
146
|
-
onError: ct
|
|
147
|
-
});
|
|
148
|
-
let S;
|
|
149
|
-
try {
|
|
150
|
-
S = o.apply(this && this.$id === t ? this : n, d);
|
|
151
|
-
} catch (h) {
|
|
152
|
-
throw g(F, h), h;
|
|
153
|
-
}
|
|
154
|
-
return S instanceof Promise ? S.then((h) => (g(P, h), h)).catch((h) => (g(F, h), Promise.reject(h))) : (g(P, S), S);
|
|
155
|
-
};
|
|
156
|
-
return a[Y] = !0, a[W] = e, a;
|
|
157
|
-
}, L = /* @__PURE__ */ j({
|
|
158
|
-
actions: {},
|
|
159
|
-
getters: {},
|
|
160
|
-
state: [],
|
|
161
|
-
hotState: w
|
|
162
|
-
}), U = {
|
|
163
|
-
_p: s,
|
|
164
|
-
// _s: scope,
|
|
165
|
-
$id: t,
|
|
166
|
-
$onAction: X.bind(null, l),
|
|
167
|
-
$patch: z,
|
|
168
|
-
$reset: st,
|
|
169
|
-
$subscribe(o, e = {}) {
|
|
170
|
-
const a = X(_, o, e.detached, () => d()), d = E.run(() => pt(() => s.state.value[t], (P) => {
|
|
171
|
-
(e.flush === "sync" ? p : N) && o({
|
|
172
|
-
storeId: t,
|
|
173
|
-
type: x.direct,
|
|
174
|
-
events: v
|
|
175
|
-
}, P);
|
|
176
|
-
}, y({}, b, e)));
|
|
177
|
-
return a;
|
|
178
|
-
},
|
|
179
|
-
$dispose: nt
|
|
180
|
-
};
|
|
181
|
-
U._r = !1;
|
|
182
|
-
const n = ft(process.env.NODE_ENV !== "production" || (process.env.NODE_ENV !== "production" || typeof __VUE_PROD_DEVTOOLS__ < "u" && __VUE_PROD_DEVTOOLS__) && process.env.NODE_ENV !== "test" && C ? y(
|
|
183
|
-
{
|
|
184
|
-
_hmrPayload: L,
|
|
185
|
-
_customProperties: j(/* @__PURE__ */ new Set())
|
|
186
|
-
// devtools custom properties
|
|
187
|
-
},
|
|
188
|
-
U
|
|
189
|
-
// must be added later
|
|
190
|
-
// setupStore
|
|
191
|
-
) : U);
|
|
192
|
-
s._s.set(t, n);
|
|
193
|
-
const m = (s._a && s._a.runWithContext || ht)(() => s._e.run(() => (E = _t()).run(() => c({ action: k }))));
|
|
194
|
-
for (const o in m) {
|
|
195
|
-
const e = m[o];
|
|
196
|
-
if (I(e) && !Z(e) || J(e))
|
|
197
|
-
process.env.NODE_ENV !== "production" && u ? O(w.value, o, T(m, o)) : f || (D && vt(e) && (I(e) ? e.value = D[o] : H(e, D[o])), O(s.state.value[t], o, e)), process.env.NODE_ENV !== "production" && L.state.push(o);
|
|
198
|
-
else if (typeof e == "function") {
|
|
199
|
-
const a = process.env.NODE_ENV !== "production" && u ? e : k(e, o);
|
|
200
|
-
O(m, o, a), process.env.NODE_ENV !== "production" && (L.actions[o] = e), i.actions[o] = e;
|
|
201
|
-
} else process.env.NODE_ENV !== "production" && Z(e) && (L.getters[o] = f ? (
|
|
202
|
-
// @ts-expect-error
|
|
203
|
-
r.getters[o]
|
|
204
|
-
) : e, C && (m._getters || // @ts-expect-error: same
|
|
205
|
-
(m._getters = j([]))).push(o));
|
|
206
|
-
}
|
|
207
|
-
if (Object.keys(m).forEach((o) => {
|
|
208
|
-
O(n, o, m[o]);
|
|
209
|
-
}), Object.defineProperty(n, "$state", {
|
|
210
|
-
get: () => process.env.NODE_ENV !== "production" && u ? w.value : s.state.value[t],
|
|
211
|
-
set: (o) => {
|
|
212
|
-
if (process.env.NODE_ENV !== "production" && u)
|
|
213
|
-
throw new Error("cannot set hotState");
|
|
214
|
-
z((e) => {
|
|
215
|
-
y(e, o);
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
}), process.env.NODE_ENV !== "production" && (n._hotUpdate = j((o) => {
|
|
219
|
-
n._hotUpdating = !0, o._hmrPayload.state.forEach((e) => {
|
|
220
|
-
if (e in n.$state) {
|
|
221
|
-
const a = o.$state[e], d = n.$state[e];
|
|
222
|
-
typeof a == "object" && V(a) && V(d) ? et(a, d) : o.$state[e] = d;
|
|
223
|
-
}
|
|
224
|
-
O(n, e, T(o.$state, e));
|
|
225
|
-
}), Object.keys(n.$state).forEach((e) => {
|
|
226
|
-
e in o.$state || A(n, e);
|
|
227
|
-
}), N = !1, p = !1, s.state.value[t] = T(o._hmrPayload, "hotState"), p = !0, B().then(() => {
|
|
228
|
-
N = !0;
|
|
229
|
-
});
|
|
230
|
-
for (const e in o._hmrPayload.actions) {
|
|
231
|
-
const a = o[e];
|
|
232
|
-
O(n, e, k(a, e));
|
|
233
|
-
}
|
|
234
|
-
for (const e in o._hmrPayload.getters) {
|
|
235
|
-
const a = o._hmrPayload.getters[e], d = f ? (
|
|
236
|
-
// special handling of options api
|
|
237
|
-
tt(() => ($(s), a.call(n, n)))
|
|
238
|
-
) : a;
|
|
239
|
-
O(n, e, d);
|
|
240
|
-
}
|
|
241
|
-
Object.keys(n._hmrPayload.getters).forEach((e) => {
|
|
242
|
-
e in o._hmrPayload.getters || A(n, e);
|
|
243
|
-
}), Object.keys(n._hmrPayload.actions).forEach((e) => {
|
|
244
|
-
e in o._hmrPayload.actions || A(n, e);
|
|
245
|
-
}), n._hmrPayload = o._hmrPayload, n._getters = o._getters, n._hotUpdating = !1;
|
|
246
|
-
})), (process.env.NODE_ENV !== "production" || typeof __VUE_PROD_DEVTOOLS__ < "u" && __VUE_PROD_DEVTOOLS__) && process.env.NODE_ENV !== "test" && C) {
|
|
247
|
-
const o = {
|
|
248
|
-
writable: !0,
|
|
249
|
-
configurable: !0,
|
|
250
|
-
// avoid warning on devtools trying to display this property
|
|
251
|
-
enumerable: !1
|
|
252
|
-
};
|
|
253
|
-
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((e) => {
|
|
254
|
-
Object.defineProperty(n, e, y({ value: n[e] }, o));
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
return n._r = !0, s._p.forEach((o) => {
|
|
258
|
-
if ((process.env.NODE_ENV !== "production" || typeof __VUE_PROD_DEVTOOLS__ < "u" && __VUE_PROD_DEVTOOLS__) && process.env.NODE_ENV !== "test" && C) {
|
|
259
|
-
const e = E.run(() => o({
|
|
260
|
-
store: n,
|
|
261
|
-
app: s._a,
|
|
262
|
-
pinia: s,
|
|
263
|
-
options: i
|
|
264
|
-
}));
|
|
265
|
-
Object.keys(e || {}).forEach((a) => n._customProperties.add(a)), y(n, e);
|
|
266
|
-
} else
|
|
267
|
-
y(n, E.run(() => o({
|
|
268
|
-
store: n,
|
|
269
|
-
app: s._a,
|
|
270
|
-
pinia: s,
|
|
271
|
-
options: i
|
|
272
|
-
})));
|
|
273
|
-
}), process.env.NODE_ENV !== "production" && n.$state && typeof n.$state == "object" && typeof n.$state.constructor == "function" && !n.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
274
|
-
state: () => new MyClass()
|
|
275
|
-
Found in store "${n.$id}".`), D && f && r.hydrate && r.hydrate(n.$state, D), N = !0, p = !0, n;
|
|
276
|
-
}
|
|
277
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
278
|
-
// @__NO_SIDE_EFFECTS__
|
|
279
|
-
function mt(t, c, r) {
|
|
280
|
-
let s, u;
|
|
281
|
-
const f = typeof c == "function";
|
|
282
|
-
s = t, u = f ? r : c;
|
|
283
|
-
function E(i, b) {
|
|
284
|
-
const N = ut();
|
|
285
|
-
if (i = // in test mode, ignore the argument provided as we can always retrieve a
|
|
286
|
-
// pinia instance with getActivePinia()
|
|
287
|
-
(process.env.NODE_ENV === "test" && R && R._testing ? null : i) || (N ? at(dt, null) : null), i && $(i), process.env.NODE_ENV !== "production" && !R)
|
|
288
|
-
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
289
|
-
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
290
|
-
This will fail in production.`);
|
|
291
|
-
i = R, i._s.has(s) || (f ? M(s, c, u, i) : G(s, u, i), process.env.NODE_ENV !== "production" && (E._pinia = i));
|
|
292
|
-
const p = i._s.get(s);
|
|
293
|
-
if (process.env.NODE_ENV !== "production" && b) {
|
|
294
|
-
const _ = "__hot:" + s, l = f ? M(_, c, u, i, !0) : G(_, y({}, u), i, !0);
|
|
295
|
-
b._hotUpdate(l), delete i.state.value[_], i._s.delete(_);
|
|
296
|
-
}
|
|
297
|
-
if (process.env.NODE_ENV !== "production" && C) {
|
|
298
|
-
const _ = it();
|
|
299
|
-
if (_ && _.proxy && // avoid adding stores that are just built for hot module replacement
|
|
300
|
-
!b) {
|
|
301
|
-
const l = _.proxy, v = "_pStores" in l ? l._pStores : l._pStores = {};
|
|
302
|
-
v[s] = p;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
return p;
|
|
306
|
-
}
|
|
307
|
-
return E.$id = s, E;
|
|
308
|
-
}
|
|
309
|
-
export {
|
|
310
|
-
x as MutationType,
|
|
311
|
-
mt as defineStore,
|
|
312
|
-
$ as setActivePinia,
|
|
313
|
-
vt as shouldHydrate
|
|
314
|
-
};
|
package/dist/stores/editor.d.ts
DELETED