@useinsider/guido 1.0.0-beta.a9e37bf → 1.0.0-beta.ae2520e
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 +12 -35
- package/dist/components/Guido.vue.d.ts +0 -4
- package/dist/components/Guido.vue.js +4 -4
- package/dist/components/Guido.vue2.js +18 -30
- package/dist/components/organisms/{header/HeaderWrapper.vue.js → top-bar/Header.vue.js} +7 -7
- package/dist/components/organisms/top-bar/Header.vue2.js +14 -0
- package/dist/components/organisms/top-bar/HeaderLeftSlot.vue.js +17 -0
- package/dist/components/organisms/top-bar/HeaderLeftSlot.vue2.js +11 -0
- package/dist/components/organisms/top-bar/HeaderMiddleSlot.vue.js +17 -0
- package/dist/components/organisms/top-bar/HeaderMiddleSlot.vue2.js +17 -0
- package/dist/components/organisms/top-bar/HeaderRightSlot.vue.js +18 -0
- package/dist/components/organisms/top-bar/HeaderRightSlot.vue2.js +12 -0
- package/dist/components/organisms/{header/ViewOptions.vue.js → top-bar/HeaderViewOptions.vue.js} +5 -5
- package/dist/components/organisms/{header/ViewOptions.vue2.js → top-bar/HeaderViewOptions.vue2.js} +3 -3
- package/dist/composables/useCustomInterfaceAppearance.js +9 -43
- package/dist/composables/useStripo.d.ts +2 -2
- package/dist/composables/useStripo.js +55 -73
- package/dist/composables/useToaster.d.ts +0 -1
- package/dist/composables/useTranslations.d.ts +3 -1
- package/dist/enums/defaults.d.ts +0 -2
- package/dist/enums/defaults.js +3 -5
- package/dist/guido.css +1 -1
- package/dist/node_modules/pinia/dist/pinia.js +110 -113
- package/dist/static/editor.css.js +182 -0
- package/dist/stores/counter.d.ts +12 -0
- package/dist/stores/editor.d.ts +4 -3
- package/dist/stores/editor.js +0 -1
- package/package.json +1 -1
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +0 -14
- package/dist/components/organisms/header/LeftSlot.vue.js +0 -17
- package/dist/components/organisms/header/LeftSlot.vue2.js +0 -13
- package/dist/components/organisms/header/MiddleSlot.vue.d.ts +0 -2
- package/dist/components/organisms/header/MiddleSlot.vue.js +0 -17
- package/dist/components/organisms/header/MiddleSlot.vue2.js +0 -22
- package/dist/components/organisms/header/RightSlot.vue.js +0 -17
- package/dist/components/organisms/header/RightSlot.vue2.js +0 -21
- package/dist/components/organisms/header/version-history/RestoreButton.vue.js +0 -19
- package/dist/components/organisms/header/version-history/RestoreButton.vue2.js +0 -14
- package/dist/components/organisms/header/version-history/VersionHistory.vue.d.ts +0 -14
- package/dist/components/organisms/header/version-history/VersionHistory.vue.js +0 -22
- package/dist/components/organisms/header/version-history/VersionHistory.vue2.js +0 -18
- package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.d.ts +0 -16
- package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.js +0 -18
- package/dist/components/organisms/header/version-history/VersionHistoryItem.vue2.js +0 -16
- package/dist/components/organisms/header/version-history/ViewOptions.vue.d.ts +0 -2
- package/dist/components/organisms/header/version-history/ViewOptions.vue.js +0 -18
- package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +0 -23
- package/dist/composables/useActionsApi.d.ts +0 -4
- package/dist/composables/useActionsApi.js +0 -36
- package/dist/composables/useExport.d.ts +0 -3
- package/dist/composables/useExport.js +0 -30
- package/dist/composables/useHttp.js +0 -84
- package/dist/composables/usePartner.d.ts +0 -4
- package/dist/composables/usePartner.js +0 -16
- package/dist/composables/useToaster.js +0 -37
- package/dist/composables/useTranslations.js +0 -18
- package/dist/composables/useVersionHistoryApi.d.ts +0 -8
- package/dist/composables/useVersionHistoryApi.js +0 -53
- package/dist/enums/displayConditions.d.ts +0 -2
- package/dist/enums/displayConditions.js +0 -80
- package/dist/mock/api/custom-fonts.d.ts +0 -2
- 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/static/styles/base.css.js +0 -11
- package/dist/static/styles/components/alert-message.css.js +0 -39
- package/dist/static/styles/components/amp-block.css.js +0 -18
- package/dist/static/styles/components/base-input.css.js +0 -47
- package/dist/static/styles/components/button-group.css.js +0 -54
- package/dist/static/styles/components/button.css.js +0 -106
- package/dist/static/styles/components/combobox.css.js +0 -49
- package/dist/static/styles/components/counter.css.js +0 -42
- package/dist/static/styles/components/dropdown-menu.css.js +0 -44
- package/dist/static/styles/components/narrow-panel.css.js +0 -38
- package/dist/static/styles/components/switcher.css.js +0 -11
- package/dist/static/styles/components/tabs.css.js +0 -97
- package/dist/static/styles/components/tools.css.js +0 -23
- package/dist/static/styles/components/wide-panel.css.js +0 -135
- package/dist/static/styles/variables.css.js +0 -23
- package/dist/stores/version-history.d.ts +0 -80
- package/dist/stores/version-history.js +0 -28
- package/dist/utils/dateUtil.d.ts +0 -1
- package/dist/utils/dateUtil.js +0 -16
- /package/dist/components/organisms/{header/HeaderWrapper.vue.d.ts → top-bar/Header.vue.d.ts} +0 -0
- /package/dist/components/organisms/{header/RightSlot.vue.d.ts → top-bar/HeaderLeftSlot.vue.d.ts} +0 -0
- /package/dist/components/organisms/{header/ViewOptions.vue.d.ts → top-bar/HeaderMiddleSlot.vue.d.ts} +0 -0
- /package/dist/components/organisms/{header/LeftSlot.vue.d.ts → top-bar/HeaderRightSlot.vue.d.ts} +0 -0
- /package/dist/components/organisms/{header/version-history/RestoreButton.vue.d.ts → top-bar/HeaderViewOptions.vue.d.ts} +0 -0
|
@@ -1,56 +1,56 @@
|
|
|
1
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
|
|
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
3
|
/*!
|
|
4
4
|
* pinia v2.3.1
|
|
5
5
|
* (c) 2025 Eduardo San Martin Morote
|
|
6
6
|
* @license MIT
|
|
7
7
|
*/
|
|
8
8
|
let R;
|
|
9
|
-
const
|
|
9
|
+
const $ = (t) => R = t, dt = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
10
10
|
/* istanbul ignore next */
|
|
11
11
|
Symbol()
|
|
12
12
|
);
|
|
13
13
|
function V(t) {
|
|
14
14
|
return t && typeof t == "object" && Object.prototype.toString.call(t) === "[object Object]" && typeof t.toJSON != "function";
|
|
15
15
|
}
|
|
16
|
-
var
|
|
16
|
+
var x;
|
|
17
17
|
(function(t) {
|
|
18
18
|
t.direct = "direct", t.patchObject = "patch object", t.patchFunction = "patch function";
|
|
19
|
-
})(
|
|
19
|
+
})(x || (x = {}));
|
|
20
20
|
const C = typeof window < "u";
|
|
21
|
-
function et(t,
|
|
22
|
-
for (const r in
|
|
23
|
-
const
|
|
21
|
+
function et(t, c) {
|
|
22
|
+
for (const r in c) {
|
|
23
|
+
const s = c[r];
|
|
24
24
|
if (!(r in t))
|
|
25
25
|
continue;
|
|
26
|
-
const
|
|
27
|
-
V(
|
|
26
|
+
const u = t[r];
|
|
27
|
+
V(u) && V(s) && !I(s) && !J(s) ? t[r] = et(u, s) : O(t, r, s);
|
|
28
28
|
}
|
|
29
29
|
return t;
|
|
30
30
|
}
|
|
31
31
|
const ot = () => {
|
|
32
32
|
};
|
|
33
|
-
function X(t,
|
|
34
|
-
t.push(
|
|
35
|
-
const
|
|
36
|
-
const f = t.indexOf(
|
|
37
|
-
f > -1 && (t.splice(f, 1),
|
|
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
38
|
};
|
|
39
|
-
return !r && lt() && Et(
|
|
39
|
+
return !r && lt() && Et(u), u;
|
|
40
40
|
}
|
|
41
|
-
function g(t, ...
|
|
41
|
+
function g(t, ...c) {
|
|
42
42
|
t.slice().forEach((r) => {
|
|
43
|
-
r(...
|
|
43
|
+
r(...c);
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
const ht = (t) => t(), Y = Symbol(), W = Symbol();
|
|
47
|
-
function H(t,
|
|
48
|
-
t instanceof Map &&
|
|
49
|
-
for (const r in
|
|
50
|
-
if (!
|
|
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
51
|
continue;
|
|
52
|
-
const
|
|
53
|
-
V(
|
|
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
54
|
}
|
|
55
55
|
return t;
|
|
56
56
|
}
|
|
@@ -63,54 +63,54 @@ function vt(t) {
|
|
|
63
63
|
}
|
|
64
64
|
const { assign: y } = Object;
|
|
65
65
|
function Z(t) {
|
|
66
|
-
return !!(
|
|
66
|
+
return !!(I(t) && t.effect);
|
|
67
67
|
}
|
|
68
|
-
function G(t,
|
|
69
|
-
const { state:
|
|
68
|
+
function G(t, c, r, s) {
|
|
69
|
+
const { state: u, actions: f, getters: E } = c, i = r.state.value[t];
|
|
70
70
|
let b;
|
|
71
71
|
function N() {
|
|
72
|
-
!i && (process.env.NODE_ENV === "production" || !
|
|
73
|
-
const p = process.env.NODE_ENV !== "production" &&
|
|
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
74
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
75
|
-
Q(K(
|
|
75
|
+
Q(K(u ? u() : {}).value)
|
|
76
76
|
) : Q(r.state.value[t]);
|
|
77
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
|
-
|
|
78
|
+
$(r);
|
|
79
79
|
const v = r._s.get(t);
|
|
80
80
|
if (v._r)
|
|
81
81
|
return E[l].call(v, v);
|
|
82
82
|
})), _), {}));
|
|
83
83
|
}
|
|
84
|
-
return b = M(t, N,
|
|
84
|
+
return b = M(t, N, c, r, s, !0), b;
|
|
85
85
|
}
|
|
86
|
-
function M(t,
|
|
86
|
+
function M(t, c, r = {}, s, u, f) {
|
|
87
87
|
let E;
|
|
88
88
|
const i = y({ actions: {} }, r);
|
|
89
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
89
|
+
if (process.env.NODE_ENV !== "production" && !s._e.active)
|
|
90
90
|
throw new Error("Pinia destroyed");
|
|
91
91
|
const b = { deep: !0 };
|
|
92
92
|
process.env.NODE_ENV;
|
|
93
93
|
let N, p, _ = [], l = [], v;
|
|
94
|
-
const D =
|
|
95
|
-
!f && !D && (process.env.NODE_ENV === "production" || !
|
|
96
|
-
const
|
|
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
97
|
let q;
|
|
98
|
-
function z(
|
|
98
|
+
function z(o) {
|
|
99
99
|
let e;
|
|
100
|
-
N = p = !1, process.env.NODE_ENV !== "production" && (v = []), typeof
|
|
101
|
-
type:
|
|
100
|
+
N = p = !1, process.env.NODE_ENV !== "production" && (v = []), typeof o == "function" ? (o(s.state.value[t]), e = {
|
|
101
|
+
type: x.patchFunction,
|
|
102
102
|
storeId: t,
|
|
103
103
|
events: v
|
|
104
|
-
}) : (H(
|
|
105
|
-
type:
|
|
106
|
-
payload:
|
|
104
|
+
}) : (H(s.state.value[t], o), e = {
|
|
105
|
+
type: x.patchObject,
|
|
106
|
+
payload: o,
|
|
107
107
|
storeId: t,
|
|
108
108
|
events: v
|
|
109
109
|
});
|
|
110
110
|
const a = q = Symbol();
|
|
111
111
|
B().then(() => {
|
|
112
112
|
q === a && (N = !0);
|
|
113
|
-
}), p = !0, g(_, e,
|
|
113
|
+
}), p = !0, g(_, e, s.state.value[t]);
|
|
114
114
|
}
|
|
115
115
|
const st = f ? function() {
|
|
116
116
|
const { state: e } = r, a = e ? e() : {};
|
|
@@ -124,13 +124,13 @@ function M(t, u, r = {}, o, c, f) {
|
|
|
124
124
|
} : ot
|
|
125
125
|
);
|
|
126
126
|
function nt() {
|
|
127
|
-
E.stop(), _ = [], l = [],
|
|
127
|
+
E.stop(), _ = [], l = [], s._s.delete(t);
|
|
128
128
|
}
|
|
129
|
-
const k = (
|
|
130
|
-
if (Y in
|
|
131
|
-
return
|
|
129
|
+
const k = (o, e = "") => {
|
|
130
|
+
if (Y in o)
|
|
131
|
+
return o[W] = e, o;
|
|
132
132
|
const a = function() {
|
|
133
|
-
|
|
133
|
+
$(s);
|
|
134
134
|
const d = Array.from(arguments), P = [], F = [];
|
|
135
135
|
function rt(h) {
|
|
136
136
|
P.push(h);
|
|
@@ -147,30 +147,30 @@ function M(t, u, r = {}, o, c, f) {
|
|
|
147
147
|
});
|
|
148
148
|
let S;
|
|
149
149
|
try {
|
|
150
|
-
S =
|
|
150
|
+
S = o.apply(this && this.$id === t ? this : n, d);
|
|
151
151
|
} catch (h) {
|
|
152
152
|
throw g(F, h), h;
|
|
153
153
|
}
|
|
154
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
155
|
};
|
|
156
156
|
return a[Y] = !0, a[W] = e, a;
|
|
157
|
-
},
|
|
157
|
+
}, L = /* @__PURE__ */ j({
|
|
158
158
|
actions: {},
|
|
159
159
|
getters: {},
|
|
160
160
|
state: [],
|
|
161
|
-
hotState:
|
|
161
|
+
hotState: w
|
|
162
162
|
}), U = {
|
|
163
|
-
_p:
|
|
163
|
+
_p: s,
|
|
164
164
|
// _s: scope,
|
|
165
165
|
$id: t,
|
|
166
166
|
$onAction: X.bind(null, l),
|
|
167
167
|
$patch: z,
|
|
168
168
|
$reset: st,
|
|
169
|
-
$subscribe(
|
|
170
|
-
const a = X(_,
|
|
171
|
-
(e.flush === "sync" ? p : N) &&
|
|
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
172
|
storeId: t,
|
|
173
|
-
type:
|
|
173
|
+
type: x.direct,
|
|
174
174
|
events: v
|
|
175
175
|
}, P);
|
|
176
176
|
}, y({}, b, e)));
|
|
@@ -181,7 +181,7 @@ function M(t, u, r = {}, o, c, f) {
|
|
|
181
181
|
U._r = !1;
|
|
182
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
183
|
{
|
|
184
|
-
_hmrPayload:
|
|
184
|
+
_hmrPayload: L,
|
|
185
185
|
_customProperties: j(/* @__PURE__ */ new Set())
|
|
186
186
|
// devtools custom properties
|
|
187
187
|
},
|
|
@@ -189,85 +189,85 @@ function M(t, u, r = {}, o, c, f) {
|
|
|
189
189
|
// must be added later
|
|
190
190
|
// setupStore
|
|
191
191
|
) : U);
|
|
192
|
-
|
|
193
|
-
const m = (
|
|
194
|
-
for (const
|
|
195
|
-
const e = m[
|
|
196
|
-
if (
|
|
197
|
-
process.env.NODE_ENV !== "production" &&
|
|
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
198
|
else if (typeof e == "function") {
|
|
199
|
-
const a = process.env.NODE_ENV !== "production" &&
|
|
200
|
-
O(m,
|
|
201
|
-
} else process.env.NODE_ENV !== "production" && Z(e) && (
|
|
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
202
|
// @ts-expect-error
|
|
203
|
-
r.getters[
|
|
203
|
+
r.getters[o]
|
|
204
204
|
) : e, C && (m._getters || // @ts-expect-error: same
|
|
205
|
-
(m._getters = j([]))).push(
|
|
205
|
+
(m._getters = j([]))).push(o));
|
|
206
206
|
}
|
|
207
|
-
if (Object.keys(m).forEach((
|
|
208
|
-
O(n,
|
|
207
|
+
if (Object.keys(m).forEach((o) => {
|
|
208
|
+
O(n, o, m[o]);
|
|
209
209
|
}), Object.defineProperty(n, "$state", {
|
|
210
|
-
get: () => process.env.NODE_ENV !== "production" &&
|
|
211
|
-
set: (
|
|
212
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
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
213
|
throw new Error("cannot set hotState");
|
|
214
214
|
z((e) => {
|
|
215
|
-
y(e,
|
|
215
|
+
y(e, o);
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
|
-
}), process.env.NODE_ENV !== "production" && (n._hotUpdate = j((
|
|
219
|
-
n._hotUpdating = !0,
|
|
218
|
+
}), process.env.NODE_ENV !== "production" && (n._hotUpdate = j((o) => {
|
|
219
|
+
n._hotUpdating = !0, o._hmrPayload.state.forEach((e) => {
|
|
220
220
|
if (e in n.$state) {
|
|
221
|
-
const a =
|
|
222
|
-
typeof a == "object" && V(a) && V(d) ? et(a, d) :
|
|
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
223
|
}
|
|
224
|
-
O(n, e, T(
|
|
224
|
+
O(n, e, T(o.$state, e));
|
|
225
225
|
}), Object.keys(n.$state).forEach((e) => {
|
|
226
|
-
e in
|
|
227
|
-
}), N = !1, p = !1,
|
|
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
228
|
N = !0;
|
|
229
229
|
});
|
|
230
|
-
for (const e in
|
|
231
|
-
const a =
|
|
230
|
+
for (const e in o._hmrPayload.actions) {
|
|
231
|
+
const a = o[e];
|
|
232
232
|
O(n, e, k(a, e));
|
|
233
233
|
}
|
|
234
|
-
for (const e in
|
|
235
|
-
const a =
|
|
234
|
+
for (const e in o._hmrPayload.getters) {
|
|
235
|
+
const a = o._hmrPayload.getters[e], d = f ? (
|
|
236
236
|
// special handling of options api
|
|
237
|
-
tt(() => (
|
|
237
|
+
tt(() => ($(s), a.call(n, n)))
|
|
238
238
|
) : a;
|
|
239
239
|
O(n, e, d);
|
|
240
240
|
}
|
|
241
241
|
Object.keys(n._hmrPayload.getters).forEach((e) => {
|
|
242
|
-
e in
|
|
242
|
+
e in o._hmrPayload.getters || A(n, e);
|
|
243
243
|
}), Object.keys(n._hmrPayload.actions).forEach((e) => {
|
|
244
|
-
e in
|
|
245
|
-
}), n._hmrPayload =
|
|
244
|
+
e in o._hmrPayload.actions || A(n, e);
|
|
245
|
+
}), n._hmrPayload = o._hmrPayload, n._getters = o._getters, n._hotUpdating = !1;
|
|
246
246
|
})), (process.env.NODE_ENV !== "production" || typeof __VUE_PROD_DEVTOOLS__ < "u" && __VUE_PROD_DEVTOOLS__) && process.env.NODE_ENV !== "test" && C) {
|
|
247
|
-
const
|
|
247
|
+
const o = {
|
|
248
248
|
writable: !0,
|
|
249
249
|
configurable: !0,
|
|
250
250
|
// avoid warning on devtools trying to display this property
|
|
251
251
|
enumerable: !1
|
|
252
252
|
};
|
|
253
253
|
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((e) => {
|
|
254
|
-
Object.defineProperty(n, e, y({ value: n[e] },
|
|
254
|
+
Object.defineProperty(n, e, y({ value: n[e] }, o));
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
|
-
return n._r = !0,
|
|
257
|
+
return n._r = !0, s._p.forEach((o) => {
|
|
258
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(() =>
|
|
259
|
+
const e = E.run(() => o({
|
|
260
260
|
store: n,
|
|
261
|
-
app:
|
|
262
|
-
pinia:
|
|
261
|
+
app: s._a,
|
|
262
|
+
pinia: s,
|
|
263
263
|
options: i
|
|
264
264
|
}));
|
|
265
265
|
Object.keys(e || {}).forEach((a) => n._customProperties.add(a)), y(n, e);
|
|
266
266
|
} else
|
|
267
|
-
y(n, E.run(() =>
|
|
267
|
+
y(n, E.run(() => o({
|
|
268
268
|
store: n,
|
|
269
|
-
app:
|
|
270
|
-
pinia:
|
|
269
|
+
app: s._a,
|
|
270
|
+
pinia: s,
|
|
271
271
|
options: i
|
|
272
272
|
})));
|
|
273
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
|
|
@@ -276,25 +276,22 @@ Found in store "${n.$id}".`), D && f && r.hydrate && r.hydrate(n.$state, D), N =
|
|
|
276
276
|
}
|
|
277
277
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
278
278
|
// @__NO_SIDE_EFFECTS__
|
|
279
|
-
function mt(t,
|
|
280
|
-
let
|
|
281
|
-
const f = typeof
|
|
282
|
-
|
|
283
|
-
o = t, c = f ? r : u;
|
|
284
|
-
else if (c = t, o = t.id, process.env.NODE_ENV !== "production" && typeof o != "string")
|
|
285
|
-
throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');
|
|
279
|
+
function mt(t, c, r) {
|
|
280
|
+
let s, u;
|
|
281
|
+
const f = typeof c == "function";
|
|
282
|
+
s = t, u = f ? r : c;
|
|
286
283
|
function E(i, b) {
|
|
287
284
|
const N = ut();
|
|
288
285
|
if (i = // in test mode, ignore the argument provided as we can always retrieve a
|
|
289
286
|
// pinia instance with getActivePinia()
|
|
290
|
-
(process.env.NODE_ENV === "test" && R && R._testing ? null : i) || (N ? at(dt, null) : null), i &&
|
|
287
|
+
(process.env.NODE_ENV === "test" && R && R._testing ? null : i) || (N ? at(dt, null) : null), i && $(i), process.env.NODE_ENV !== "production" && !R)
|
|
291
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)"?
|
|
292
289
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
293
290
|
This will fail in production.`);
|
|
294
|
-
i = R, i._s.has(
|
|
295
|
-
const p = i._s.get(
|
|
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);
|
|
296
293
|
if (process.env.NODE_ENV !== "production" && b) {
|
|
297
|
-
const _ = "__hot:" +
|
|
294
|
+
const _ = "__hot:" + s, l = f ? M(_, c, u, i, !0) : G(_, y({}, u), i, !0);
|
|
298
295
|
b._hotUpdate(l), delete i.state.value[_], i._s.delete(_);
|
|
299
296
|
}
|
|
300
297
|
if (process.env.NODE_ENV !== "production" && C) {
|
|
@@ -302,16 +299,16 @@ This will fail in production.`);
|
|
|
302
299
|
if (_ && _.proxy && // avoid adding stores that are just built for hot module replacement
|
|
303
300
|
!b) {
|
|
304
301
|
const l = _.proxy, v = "_pStores" in l ? l._pStores : l._pStores = {};
|
|
305
|
-
v[
|
|
302
|
+
v[s] = p;
|
|
306
303
|
}
|
|
307
304
|
}
|
|
308
305
|
return p;
|
|
309
306
|
}
|
|
310
|
-
return E.$id =
|
|
307
|
+
return E.$id = s, E;
|
|
311
308
|
}
|
|
312
309
|
export {
|
|
313
|
-
|
|
310
|
+
x as MutationType,
|
|
314
311
|
mt as defineStore,
|
|
315
|
-
|
|
312
|
+
$ as setActivePinia,
|
|
316
313
|
vt as shouldHydrate
|
|
317
314
|
};
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
const n = `:host {
|
|
2
|
+
--guido-primary-color: #0a2ecc;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.label {
|
|
6
|
+
font-size: 13px;
|
|
7
|
+
color: #292929;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.stacked-panel-title {
|
|
11
|
+
font-size: 18px;
|
|
12
|
+
font-weight: 600;
|
|
13
|
+
color: #2c3546
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.stacked-panel-item {
|
|
17
|
+
border-radius: 4px;
|
|
18
|
+
border: 1px solid #dcdfe6;
|
|
19
|
+
box-shadow: 0 0 0 0 #e1e1e1,0 15px 35px -5px rgba(0, 0, 0, .1),0 8px 10px -6px rgba(0, 0, 0, .1)
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** SEGMENT BUTTON */
|
|
23
|
+
ue-switcher input {
|
|
24
|
+
border-radius: 26px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
ue-switcher input:before {
|
|
28
|
+
border-radius: 22px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.tabs-header {
|
|
32
|
+
padding: 0;
|
|
33
|
+
column-gap: 0;
|
|
34
|
+
background-color: transparent;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.tabs-header button {
|
|
38
|
+
background-color: #f7f9fa;
|
|
39
|
+
outline: none;
|
|
40
|
+
padding: 8px 16px;
|
|
41
|
+
border: 1px solid #dcdee6;
|
|
42
|
+
height: 42px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.tabs-header button ue-icon-component.icon-button {
|
|
46
|
+
color: #2c3546;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.tabs-header button:not(:last-child),
|
|
50
|
+
.tabs-header button:not(:first-child) {
|
|
51
|
+
border-radius: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.tabs-header button:first-child {
|
|
55
|
+
border-radius: 4px 0 0 4px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.tabs-header button:last-child {
|
|
59
|
+
border-radius: 0 4px 4px 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.tabs-header button.checked {
|
|
63
|
+
background-color: #c2ddff;
|
|
64
|
+
color: var(--guido-primary-color);
|
|
65
|
+
border-color: var(--guido-primary-color);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.tabs-header button.checked ue-icon-component.icon-button {
|
|
69
|
+
color: var(--guido-primary-color);
|
|
70
|
+
}
|
|
71
|
+
/** SEGMENT BUTTON */
|
|
72
|
+
|
|
73
|
+
/** BUTTON */
|
|
74
|
+
.button:not(:disabled,.disabled):active {
|
|
75
|
+
transform: none !important;
|
|
76
|
+
}
|
|
77
|
+
/** BUTTON */
|
|
78
|
+
|
|
79
|
+
/** BUTTON GROUP */
|
|
80
|
+
.button-group {
|
|
81
|
+
padding: 0;
|
|
82
|
+
column-gap: 0;
|
|
83
|
+
border-radius: 0;
|
|
84
|
+
background-color: transparent;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.button-group .button {
|
|
88
|
+
background-color: #f7f9fa;
|
|
89
|
+
outline: none;
|
|
90
|
+
padding: 8px 12px;
|
|
91
|
+
border: 1px solid #dcdee6;
|
|
92
|
+
box-shadow: none;
|
|
93
|
+
height: 42px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.button-group .button ue-icon-component.icon-button {
|
|
97
|
+
color: #2c3546;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.button-group > div:first-of-type .button {
|
|
101
|
+
border-radius: 4px 0 0 4px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.button-group > *:last-child .button {
|
|
105
|
+
border-radius: 0 4px 4px 0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
ue-check-buttons input:checked + .button,
|
|
109
|
+
ue-radio-buttons input:checked + .button {
|
|
110
|
+
background-color: #c2ddff;
|
|
111
|
+
color: var(--guido-primary-color);
|
|
112
|
+
border-color: var(--guido-primary-color);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
ue-check-buttons input:checked + .button ue-icon-component.icon-button,
|
|
116
|
+
ue-radio-buttons input:checked + .button ue-icon-component.icon-button {
|
|
117
|
+
color: var(--guido-primary-color);
|
|
118
|
+
}
|
|
119
|
+
/** BUTTON GROUP */
|
|
120
|
+
|
|
121
|
+
/** COMBOBOX */
|
|
122
|
+
.control-shadow-wrapper:has(.button[role="combobox"]) {
|
|
123
|
+
border-radius: 0;
|
|
124
|
+
padding: 0;
|
|
125
|
+
background: transparent;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.button[role="combobox"] {
|
|
129
|
+
background-color: #f9f9f9;
|
|
130
|
+
border: 1px solid #e1e1e1;
|
|
131
|
+
border-radius: 4px;
|
|
132
|
+
box-shadow: none;
|
|
133
|
+
min-height: 42px;
|
|
134
|
+
padding: 8px;
|
|
135
|
+
color: #292929;
|
|
136
|
+
text-align: left;
|
|
137
|
+
outline: none;
|
|
138
|
+
white-space: nowrap;
|
|
139
|
+
text-overflow: ellipsis;
|
|
140
|
+
overflow: hidden;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.button[role="combobox"].on {
|
|
144
|
+
background-color: #f9f9f9;
|
|
145
|
+
border-color: var(--guido-primary-color);
|
|
146
|
+
box-shadow: 0 0 0 3px #b5c1f1 !important;
|
|
147
|
+
}
|
|
148
|
+
/** COMBOBOX */
|
|
149
|
+
|
|
150
|
+
/** BASE INPUT */
|
|
151
|
+
.base-input {
|
|
152
|
+
border: 1px solid #e1e1e1;
|
|
153
|
+
border-radius: 4px;
|
|
154
|
+
background-color: #f9f9f9;
|
|
155
|
+
align-items: center;
|
|
156
|
+
height: 42px;
|
|
157
|
+
max-height: 42px;
|
|
158
|
+
box-sizing: content-box;
|
|
159
|
+
outline: none;
|
|
160
|
+
resize: vertical;
|
|
161
|
+
padding: 8px;
|
|
162
|
+
transition: none !important;
|
|
163
|
+
color: #292929;
|
|
164
|
+
box-shadow: none !important;
|
|
165
|
+
box-sizing: border-box !important;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.base-input:hover:not(:disabled) {
|
|
169
|
+
background-color: #f9f9f9;
|
|
170
|
+
border-color: #7a92f2;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.base-input:focus:not(:disabled) {
|
|
174
|
+
background-color: #f9f9f9;
|
|
175
|
+
border-color: #0a2ecc;
|
|
176
|
+
box-shadow: 0 0 0 3px #b5c1f1 !important;
|
|
177
|
+
}
|
|
178
|
+
/** BASE INPUT */
|
|
179
|
+
`;
|
|
180
|
+
export {
|
|
181
|
+
n as default
|
|
182
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const useCounterStore: import("pinia").StoreDefinition<"counter", {
|
|
2
|
+
count: number;
|
|
3
|
+
}, {
|
|
4
|
+
doubleCount: (state: {
|
|
5
|
+
count: number;
|
|
6
|
+
} & import("pinia").PiniaCustomStateProperties<{
|
|
7
|
+
count: number;
|
|
8
|
+
}>) => number;
|
|
9
|
+
}, {
|
|
10
|
+
increment(): void;
|
|
11
|
+
decrement(): void;
|
|
12
|
+
}>;
|
package/dist/stores/editor.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
interface State {
|
|
2
2
|
isCodeEditorOpen: boolean;
|
|
3
|
-
isVersionHistoryOpen: boolean;
|
|
4
3
|
editorVisualMode: string;
|
|
5
|
-
}
|
|
4
|
+
}
|
|
5
|
+
export declare const useEditorStore: import("pinia").StoreDefinition<"editor", State, {}, {}>;
|
|
6
|
+
export {};
|
package/dist/stores/editor.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.ae2520e",
|
|
4
4
|
"description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
|
|
5
5
|
"main": "./dist/guido.umd.cjs",
|
|
6
6
|
"module": "./dist/library.js",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { defineComponent as o } from "vue";
|
|
2
|
-
import { InContainer as r } from "@useinsider/design-system-vue";
|
|
3
|
-
import t from "./LeftSlot.vue.js";
|
|
4
|
-
import e from "./MiddleSlot.vue.js";
|
|
5
|
-
import m from "./RightSlot.vue.js";
|
|
6
|
-
const s = /* @__PURE__ */ o({
|
|
7
|
-
__name: "HeaderWrapper",
|
|
8
|
-
setup(p) {
|
|
9
|
-
return { __sfc: !0, InContainer: r, LeftSlot: t, MiddleSlot: e, RightSlot: m };
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
export {
|
|
13
|
-
s as default
|
|
14
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import r from "./LeftSlot.vue2.js";
|
|
2
|
-
import o from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var n = function() {
|
|
4
|
-
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
5
|
-
return e("div", { staticClass: "d-f a-i-c" }, [e(s.InButtonV2, { staticClass: "p-2", attrs: { id: "guido__back-button", "label-text": "Back", "left-icon": "line-arrow-left", styling: "text", type: "secondary" } }), s.editorStore.isVersionHistoryOpen ? e(s.RestoreButton, { staticClass: "ml-3" }) : t._e()], 1);
|
|
6
|
-
}, a = [], i = /* @__PURE__ */ o(
|
|
7
|
-
r,
|
|
8
|
-
n,
|
|
9
|
-
a,
|
|
10
|
-
!1,
|
|
11
|
-
null,
|
|
12
|
-
null
|
|
13
|
-
);
|
|
14
|
-
const f = i.exports;
|
|
15
|
-
export {
|
|
16
|
-
f as default
|
|
17
|
-
};
|