@vc-shell/framework 1.1.91-alpha.5 → 1.1.91
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/CHANGELOG.md +2762 -1411
- package/core/api/platform.ts +9883 -9883
- package/core/composables/useNotifications/index.ts +1 -32
- package/core/composables/useSettings/index.ts +3 -8
- package/core/composables/useUser/index.ts +171 -74
- package/core/composables/useUserManagement/index.ts +25 -67
- package/core/interceptors/index.ts +56 -19
- package/core/plugins/signalR/index.ts +1 -27
- package/core/types/index.ts +0 -2
- package/dist/core/api/platform.d.ts +1 -1
- package/dist/core/api/platform.d.ts.map +1 -1
- package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
- package/dist/core/composables/useSettings/index.d.ts.map +1 -1
- package/dist/core/composables/useUser/index.d.ts +9 -18
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/composables/useUserManagement/index.d.ts +7 -7
- package/dist/core/composables/useUserManagement/index.d.ts.map +1 -1
- package/dist/core/interceptors/index.d.ts +1 -2
- package/dist/core/interceptors/index.d.ts.map +1 -1
- package/dist/core/plugins/signalR/index.d.ts +0 -2
- package/dist/core/plugins/signalR/index.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +1 -1
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.js +5682 -5832
- package/dist/index.css +1 -1
- package/dist/index.d.ts +0 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/injection-keys.d.ts +1 -2
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/shared/components/app-switcher/composables/useAppSwitcher/index.d.ts.map +1 -1
- package/dist/shared/components/sign-in/useExternalProvider.d.ts +1 -1
- package/dist/shared/components/sign-in/useExternalProvider.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
- package/dist/vendor-dompurify-BuxjWxA2.js +553 -0
- package/dist/{vendor-prosemirror-gapcursor-K-Pj0iVP.js → vendor-prosemirror-gapcursor-CoNzHXkd.js} +27 -24
- package/dist/{vendor-tiptap-core-B000Ay3n.js → vendor-tiptap-core-D6CfVeU0.js} +1838 -1502
- package/dist/{vendor-tiptap-extension-blockquote-CHW3QVCH.js → vendor-tiptap-extension-blockquote-C__lIvqD.js} +19 -6
- package/dist/{vendor-tiptap-extension-bold-DsNXR7l5.js → vendor-tiptap-extension-bold-DF2R0mPF.js} +13 -10
- package/dist/{vendor-tiptap-extension-code-block-DYMOFxJc.js → vendor-tiptap-extension-code-block-B52VzS4M.js} +34 -16
- package/dist/{vendor-tiptap-extension-code-BXPfZcyf.js → vendor-tiptap-extension-code-f7eg00IH.js} +11 -8
- package/dist/vendor-tiptap-extension-document-UgQIRckz.js +12 -0
- package/dist/{vendor-tiptap-extension-hard-break-DfxtqTYW.js → vendor-tiptap-extension-hard-break-CYVqzABZ.js} +11 -9
- package/dist/{vendor-tiptap-extension-heading-BqN9fEEm.js → vendor-tiptap-extension-heading-BWwbIXKs.js} +11 -5
- package/dist/{vendor-tiptap-extension-horizontal-rule-Dl1wmLAo.js → vendor-tiptap-extension-horizontal-rule-DjIwBCkJ.js} +14 -11
- package/dist/{vendor-tiptap-extension-image-Cv28QlbA.js → vendor-tiptap-extension-image-CSFiALl1.js} +18 -8
- package/dist/{vendor-tiptap-extension-italic-B3WETSCz.js → vendor-tiptap-extension-italic-S1BFBPoJ.js} +15 -12
- package/dist/{vendor-tiptap-extension-link-CTWD6W1U.js → vendor-tiptap-extension-link-BII63Ad6.js} +101 -90
- package/dist/vendor-tiptap-extension-list-BiUARt_K.js +707 -0
- package/dist/vendor-tiptap-extension-paragraph-C7nR_Mg3.js +41 -0
- package/dist/vendor-tiptap-extension-placeholder-BoHVyYJs.js +1 -0
- package/dist/vendor-tiptap-extension-strike-D13ERA3E.js +64 -0
- package/dist/vendor-tiptap-extension-table-DsqCGn0S.js +368 -0
- package/dist/vendor-tiptap-extension-table-cell-qeLCoF6c.js +1 -0
- package/dist/vendor-tiptap-extension-table-header-qeLCoF6c.js +1 -0
- package/dist/vendor-tiptap-extension-table-row-qeLCoF6c.js +1 -0
- package/dist/vendor-tiptap-extension-text-D2Ap05bS.js +13 -0
- package/dist/{vendor-tiptap-extension-text-style-BiLsi9B8.js → vendor-tiptap-extension-text-style-6WFGdn9L.js} +1 -1
- package/dist/{vendor-tiptap-extension-underline-Bz_pv2E0.js → vendor-tiptap-extension-underline-CiLvGtsw.js} +29 -4
- package/dist/{vendor-tiptap-extensions-Crh_nh74.js → vendor-tiptap-extensions-0qImmpYJ.js} +88 -87
- package/dist/{vendor-tiptap-markdown-bGlioql8.js → vendor-tiptap-markdown-Dh06r1Sk.js} +1 -1
- package/dist/{vendor-tiptap-starter-kit-B3fY431M.js → vendor-tiptap-starter-kit-CQMmSEis.js} +17 -17
- package/dist/{vendor-tiptap-vue-3-CqWn44-V.js → vendor-tiptap-vue-3-B0kPYa3w.js} +1 -1
- package/dist/{vendor-vueuse-components-sgKpNzof.js → vendor-vueuse-components-B0zqjNRW.js} +1 -1
- package/dist/{vendor-vueuse-core-D0cN7FqY.js → vendor-vueuse-core-CYgwn-B2.js} +10 -10
- package/dist/{vendor-vueuse-shared-Pt0UEStA.js → vendor-vueuse-shared-B_uDJJ6V.js} +19 -19
- package/package.json +5 -7
- package/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +2 -2
- package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +1 -15
- package/shared/components/sign-in/useExternalProvider.ts +1 -11
- package/shared/modules/dynamic/helpers/nodeBuilder.ts +3 -11
- package/ui/components/organisms/vc-app/vc-app.vue +2 -20
- package/core/providers/README.md +0 -176
- package/core/providers/auth-provider-manager.ts +0 -74
- package/core/providers/auth-provider-utils.ts +0 -26
- package/core/providers/example-custom-auth-provider.ts +0 -162
- package/core/providers/index.ts +0 -3
- package/core/providers/platform-auth-provider.ts +0 -207
- package/core/types/auth-provider.ts +0 -40
- package/dist/core/providers/auth-provider-manager.d.ts +0 -34
- package/dist/core/providers/auth-provider-manager.d.ts.map +0 -1
- package/dist/core/providers/auth-provider-utils.d.ts +0 -17
- package/dist/core/providers/auth-provider-utils.d.ts.map +0 -1
- package/dist/core/providers/example-custom-auth-provider.d.ts +0 -45
- package/dist/core/providers/example-custom-auth-provider.d.ts.map +0 -1
- package/dist/core/providers/index.d.ts +0 -3
- package/dist/core/providers/index.d.ts.map +0 -1
- package/dist/core/providers/platform-auth-provider.d.ts +0 -34
- package/dist/core/providers/platform-auth-provider.d.ts.map +0 -1
- package/dist/core/types/auth-provider.d.ts +0 -27
- package/dist/core/types/auth-provider.d.ts.map +0 -1
- package/dist/vendor-dompurify-C-JbJ3KX.js +0 -536
- package/dist/vendor-tiptap-extension-document-Y-jQl_8Q.js +0 -9
- package/dist/vendor-tiptap-extension-list-Da9Xfgwa.js +0 -420
- package/dist/vendor-tiptap-extension-paragraph-CSda9k3a.js +0 -31
- package/dist/vendor-tiptap-extension-placeholder-MI_ltlp7.js +0 -1
- package/dist/vendor-tiptap-extension-strike-Di5VtsLj.js +0 -61
- package/dist/vendor-tiptap-extension-table-DYCEjlpp.js +0 -311
- package/dist/vendor-tiptap-extension-table-cell-D5DL87Xa.js +0 -1
- package/dist/vendor-tiptap-extension-table-header-D5DL87Xa.js +0 -1
- package/dist/vendor-tiptap-extension-table-row-D5DL87Xa.js +0 -1
- package/dist/vendor-tiptap-extension-text-8vtzSN60.js +0 -8
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { E as u,
|
|
2
|
-
import { P as
|
|
3
|
-
import { d as
|
|
4
|
-
import { a as g, D as
|
|
5
|
-
import { g as
|
|
6
|
-
import { h as
|
|
1
|
+
import { E as u, y as w, u as v, v as P, i as S } from "./vendor-tiptap-core-D6CfVeU0.js";
|
|
2
|
+
import { P as p, a as m } from "./vendor-prosemirror-state-DUZYoLys.js";
|
|
3
|
+
import { d as z } from "./vendor-prosemirror-dropcursor-CqLA3EZY.js";
|
|
4
|
+
import { a as g, D as f } from "./vendor-prosemirror-view-CesDChJC.js";
|
|
5
|
+
import { g as E } from "./vendor-prosemirror-gapcursor-CoNzHXkd.js";
|
|
6
|
+
import { h as N, r as M, u as O } from "./vendor-prosemirror-history-DzP74u0n.js";
|
|
7
7
|
u.create({
|
|
8
8
|
name: "characterCount",
|
|
9
9
|
addOptions() {
|
|
@@ -24,50 +24,50 @@ u.create({
|
|
|
24
24
|
this.storage.characters = (e) => {
|
|
25
25
|
const t = e?.node || this.editor.state.doc;
|
|
26
26
|
if ((e?.mode || this.options.mode) === "textSize") {
|
|
27
|
-
const
|
|
28
|
-
return this.options.textCounter(
|
|
27
|
+
const r = t.textBetween(0, t.content.size, void 0, " ");
|
|
28
|
+
return this.options.textCounter(r);
|
|
29
29
|
}
|
|
30
30
|
return t.nodeSize;
|
|
31
31
|
}, this.storage.words = (e) => {
|
|
32
|
-
const t = e?.node || this.editor.state.doc,
|
|
33
|
-
return this.options.wordCounter(
|
|
32
|
+
const t = e?.node || this.editor.state.doc, s = t.textBetween(0, t.content.size, " ", " ");
|
|
33
|
+
return this.options.wordCounter(s);
|
|
34
34
|
};
|
|
35
35
|
},
|
|
36
36
|
addProseMirrorPlugins() {
|
|
37
37
|
let e = !1;
|
|
38
38
|
return [
|
|
39
|
-
new
|
|
40
|
-
key: new
|
|
41
|
-
appendTransaction: (t,
|
|
39
|
+
new p({
|
|
40
|
+
key: new m("characterCount"),
|
|
41
|
+
appendTransaction: (t, s, r) => {
|
|
42
42
|
if (e)
|
|
43
43
|
return;
|
|
44
|
-
const
|
|
45
|
-
if (
|
|
44
|
+
const o = this.options.limit;
|
|
45
|
+
if (o == null || o === 0) {
|
|
46
46
|
e = !0;
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
|
-
const n = this.storage.characters({ node:
|
|
50
|
-
if (n >
|
|
51
|
-
const
|
|
49
|
+
const n = this.storage.characters({ node: r.doc });
|
|
50
|
+
if (n > o) {
|
|
51
|
+
const i = n - o, a = 0, d = i;
|
|
52
52
|
console.warn(
|
|
53
|
-
`[CharacterCount] Initial content exceeded limit of ${
|
|
53
|
+
`[CharacterCount] Initial content exceeded limit of ${o} characters. Content was automatically trimmed.`
|
|
54
54
|
);
|
|
55
|
-
const
|
|
56
|
-
return e = !0,
|
|
55
|
+
const c = r.tr.deleteRange(a, d);
|
|
56
|
+
return e = !0, c;
|
|
57
57
|
}
|
|
58
58
|
e = !0;
|
|
59
59
|
},
|
|
60
|
-
filterTransaction: (t,
|
|
61
|
-
const
|
|
62
|
-
if (!t.docChanged ||
|
|
60
|
+
filterTransaction: (t, s) => {
|
|
61
|
+
const r = this.options.limit;
|
|
62
|
+
if (!t.docChanged || r === 0 || r === null || r === void 0)
|
|
63
63
|
return !0;
|
|
64
|
-
const
|
|
65
|
-
if (n <=
|
|
64
|
+
const o = this.storage.characters({ node: s.doc }), n = this.storage.characters({ node: t.doc });
|
|
65
|
+
if (n <= r || o > r && n > r && n <= o)
|
|
66
66
|
return !0;
|
|
67
|
-
if (
|
|
67
|
+
if (o > r && n > r && n > o || !t.getMeta("paste"))
|
|
68
68
|
return !1;
|
|
69
|
-
const
|
|
70
|
-
return t.deleteRange(
|
|
69
|
+
const a = t.selection.$head.pos, d = n - r, c = a - d, l = a;
|
|
70
|
+
return t.deleteRange(c, l), !(this.storage.characters({ node: t.doc }) > r);
|
|
71
71
|
}
|
|
72
72
|
})
|
|
73
73
|
];
|
|
@@ -83,7 +83,7 @@ var k = u.create({
|
|
|
83
83
|
};
|
|
84
84
|
},
|
|
85
85
|
addProseMirrorPlugins() {
|
|
86
|
-
return [
|
|
86
|
+
return [z(this.options)];
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
89
|
u.create({
|
|
@@ -96,33 +96,33 @@ u.create({
|
|
|
96
96
|
},
|
|
97
97
|
addProseMirrorPlugins() {
|
|
98
98
|
return [
|
|
99
|
-
new
|
|
100
|
-
key: new
|
|
99
|
+
new p({
|
|
100
|
+
key: new m("focus"),
|
|
101
101
|
props: {
|
|
102
102
|
decorations: ({ doc: e, selection: t }) => {
|
|
103
|
-
const { isEditable:
|
|
104
|
-
if (!
|
|
105
|
-
return
|
|
106
|
-
let
|
|
107
|
-
this.options.mode === "deepest" && e.descendants((
|
|
108
|
-
if (
|
|
103
|
+
const { isEditable: s, isFocused: r } = this.editor, { anchor: o } = t, n = [];
|
|
104
|
+
if (!s || !r)
|
|
105
|
+
return f.create(e, []);
|
|
106
|
+
let i = 0;
|
|
107
|
+
this.options.mode === "deepest" && e.descendants((d, c) => {
|
|
108
|
+
if (d.isText)
|
|
109
109
|
return;
|
|
110
|
-
if (!(
|
|
110
|
+
if (!(o >= c && o <= c + d.nodeSize - 1))
|
|
111
111
|
return !1;
|
|
112
|
-
|
|
112
|
+
i += 1;
|
|
113
113
|
});
|
|
114
|
-
let
|
|
115
|
-
return e.descendants((
|
|
116
|
-
if (
|
|
114
|
+
let a = 0;
|
|
115
|
+
return e.descendants((d, c) => {
|
|
116
|
+
if (d.isText || !(o >= c && o <= c + d.nodeSize - 1))
|
|
117
117
|
return !1;
|
|
118
|
-
if (
|
|
118
|
+
if (a += 1, this.options.mode === "deepest" && i - a > 0 || this.options.mode === "shallowest" && a > 1)
|
|
119
119
|
return this.options.mode === "deepest";
|
|
120
120
|
n.push(
|
|
121
|
-
g.node(
|
|
121
|
+
g.node(c, c + d.nodeSize, {
|
|
122
122
|
class: this.options.className
|
|
123
123
|
})
|
|
124
124
|
);
|
|
125
|
-
}),
|
|
125
|
+
}), f.create(e, n);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
})
|
|
@@ -132,17 +132,17 @@ u.create({
|
|
|
132
132
|
var F = u.create({
|
|
133
133
|
name: "gapCursor",
|
|
134
134
|
addProseMirrorPlugins() {
|
|
135
|
-
return [
|
|
135
|
+
return [E()];
|
|
136
136
|
},
|
|
137
137
|
extendNodeSchema(e) {
|
|
138
138
|
var t;
|
|
139
|
-
const
|
|
139
|
+
const s = {
|
|
140
140
|
name: e.name,
|
|
141
141
|
options: e.options,
|
|
142
142
|
storage: e.storage
|
|
143
143
|
};
|
|
144
144
|
return {
|
|
145
|
-
allowGapCursor: (t =
|
|
145
|
+
allowGapCursor: (t = v(P(e, "allowGapCursor", s))) != null ? t : null
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
}), G = u.create({
|
|
@@ -159,32 +159,32 @@ var F = u.create({
|
|
|
159
159
|
},
|
|
160
160
|
addProseMirrorPlugins() {
|
|
161
161
|
return [
|
|
162
|
-
new
|
|
163
|
-
key: new
|
|
162
|
+
new p({
|
|
163
|
+
key: new m("placeholder"),
|
|
164
164
|
props: {
|
|
165
165
|
decorations: ({ doc: e, selection: t }) => {
|
|
166
|
-
const
|
|
167
|
-
if (!
|
|
166
|
+
const s = this.editor.isEditable || !this.options.showOnlyWhenEditable, { anchor: r } = t, o = [];
|
|
167
|
+
if (!s)
|
|
168
168
|
return null;
|
|
169
169
|
const n = this.editor.isEmpty;
|
|
170
|
-
return e.descendants((
|
|
171
|
-
const
|
|
172
|
-
if ((
|
|
170
|
+
return e.descendants((i, a) => {
|
|
171
|
+
const d = r >= a && r <= a + i.nodeSize, c = !i.isLeaf && w(i);
|
|
172
|
+
if ((d || !this.options.showOnlyCurrent) && c) {
|
|
173
173
|
const l = [this.options.emptyNodeClass];
|
|
174
174
|
n && l.push(this.options.emptyEditorClass);
|
|
175
|
-
const
|
|
175
|
+
const h = g.node(a, a + i.nodeSize, {
|
|
176
176
|
class: l.join(" "),
|
|
177
177
|
"data-placeholder": typeof this.options.placeholder == "function" ? this.options.placeholder({
|
|
178
178
|
editor: this.editor,
|
|
179
|
-
node:
|
|
180
|
-
pos:
|
|
181
|
-
hasAnchor:
|
|
179
|
+
node: i,
|
|
180
|
+
pos: a,
|
|
181
|
+
hasAnchor: d
|
|
182
182
|
}) : this.options.placeholder
|
|
183
183
|
});
|
|
184
|
-
|
|
184
|
+
o.push(h);
|
|
185
185
|
}
|
|
186
186
|
return this.options.includeChildren;
|
|
187
|
-
}),
|
|
187
|
+
}), f.create(e, o);
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
})
|
|
@@ -201,12 +201,12 @@ u.create({
|
|
|
201
201
|
addProseMirrorPlugins() {
|
|
202
202
|
const { editor: e, options: t } = this;
|
|
203
203
|
return [
|
|
204
|
-
new
|
|
205
|
-
key: new
|
|
204
|
+
new p({
|
|
205
|
+
key: new m("selection"),
|
|
206
206
|
props: {
|
|
207
|
-
decorations(
|
|
208
|
-
return
|
|
209
|
-
g.inline(
|
|
207
|
+
decorations(s) {
|
|
208
|
+
return s.selection.empty || e.isFocused || !e.isEditable || S(s.selection) || e.view.dragging ? null : f.create(s.doc, [
|
|
209
|
+
g.inline(s.selection.from, s.selection.to, {
|
|
210
210
|
class: t.className
|
|
211
211
|
})
|
|
212
212
|
]);
|
|
@@ -216,43 +216,44 @@ u.create({
|
|
|
216
216
|
];
|
|
217
217
|
}
|
|
218
218
|
});
|
|
219
|
-
function
|
|
219
|
+
function y({ types: e, node: t }) {
|
|
220
220
|
return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
|
|
221
221
|
}
|
|
222
222
|
var R = u.create({
|
|
223
223
|
name: "trailingNode",
|
|
224
224
|
addOptions() {
|
|
225
225
|
return {
|
|
226
|
-
node:
|
|
226
|
+
node: void 0,
|
|
227
227
|
notAfter: []
|
|
228
228
|
};
|
|
229
229
|
},
|
|
230
230
|
addProseMirrorPlugins() {
|
|
231
|
-
|
|
231
|
+
var e;
|
|
232
|
+
const t = new m(this.name), s = ((e = this.editor.schema.topNodeType.contentMatch.defaultType) == null ? void 0 : e.name) || this.options.node || "paragraph", r = Object.entries(this.editor.schema.nodes).map(([, o]) => o).filter((o) => (this.options.notAfter || []).concat(s).includes(o.name));
|
|
232
233
|
return [
|
|
233
|
-
new
|
|
234
|
-
key:
|
|
235
|
-
appendTransaction: (o,
|
|
236
|
-
const { doc:
|
|
237
|
-
if (
|
|
238
|
-
return
|
|
234
|
+
new p({
|
|
235
|
+
key: t,
|
|
236
|
+
appendTransaction: (o, n, i) => {
|
|
237
|
+
const { doc: a, tr: d, schema: c } = i, l = t.getState(i), h = a.content.size, C = c.nodes[s];
|
|
238
|
+
if (l)
|
|
239
|
+
return d.insert(h, C.create());
|
|
239
240
|
},
|
|
240
241
|
state: {
|
|
241
|
-
init: (o,
|
|
242
|
-
const
|
|
243
|
-
return !
|
|
242
|
+
init: (o, n) => {
|
|
243
|
+
const i = n.tr.doc.lastChild;
|
|
244
|
+
return !y({ node: i, types: r });
|
|
244
245
|
},
|
|
245
|
-
apply: (o,
|
|
246
|
+
apply: (o, n) => {
|
|
246
247
|
if (!o.docChanged)
|
|
247
|
-
return
|
|
248
|
-
const
|
|
249
|
-
return !
|
|
248
|
+
return n;
|
|
249
|
+
const i = o.doc.lastChild;
|
|
250
|
+
return !y({ node: i, types: r });
|
|
250
251
|
}
|
|
251
252
|
}
|
|
252
253
|
})
|
|
253
254
|
];
|
|
254
255
|
}
|
|
255
|
-
}),
|
|
256
|
+
}), B = u.create({
|
|
256
257
|
name: "undoRedo",
|
|
257
258
|
addOptions() {
|
|
258
259
|
return {
|
|
@@ -263,11 +264,11 @@ var R = u.create({
|
|
|
263
264
|
addCommands() {
|
|
264
265
|
return {
|
|
265
266
|
undo: () => ({ state: e, dispatch: t }) => O(e, t),
|
|
266
|
-
redo: () => ({ state: e, dispatch: t }) =>
|
|
267
|
+
redo: () => ({ state: e, dispatch: t }) => M(e, t)
|
|
267
268
|
};
|
|
268
269
|
},
|
|
269
270
|
addProseMirrorPlugins() {
|
|
270
|
-
return [
|
|
271
|
+
return [N(this.options)];
|
|
271
272
|
},
|
|
272
273
|
addKeyboardShortcuts() {
|
|
273
274
|
return {
|
|
@@ -285,5 +286,5 @@ export {
|
|
|
285
286
|
F as G,
|
|
286
287
|
G as P,
|
|
287
288
|
R as T,
|
|
288
|
-
|
|
289
|
+
B as U
|
|
289
290
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as b,
|
|
1
|
+
import { E as b, z as B, N as a, M as m, A as z } from "./vendor-tiptap-core-D6CfVeU0.js";
|
|
2
2
|
import { M as O, d } from "./vendor-prosemirror-markdown-BBPyARPh.js";
|
|
3
3
|
import { M as C } from "./vendor-markdown-it-Czg9qJTh.js";
|
|
4
4
|
import { d as P, F as w } from "./vendor-prosemirror-model-CiCy9gkA.js";
|
package/dist/{vendor-tiptap-starter-kit-B3fY431M.js → vendor-tiptap-starter-kit-CQMmSEis.js}
RENAMED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { E as e } from "./vendor-tiptap-core-
|
|
2
|
-
import { B as n } from "./vendor-tiptap-extension-blockquote-
|
|
3
|
-
import { B as p } from "./vendor-tiptap-extension-bold-
|
|
4
|
-
import { C as a } from "./vendor-tiptap-extension-code-
|
|
5
|
-
import { C as f } from "./vendor-tiptap-extension-code-block-
|
|
6
|
-
import { D as h } from "./vendor-tiptap-extension-document-
|
|
7
|
-
import { H as u } from "./vendor-tiptap-extension-hard-break-
|
|
8
|
-
import { H as l } from "./vendor-tiptap-extension-heading-
|
|
9
|
-
import { H as c } from "./vendor-tiptap-extension-horizontal-rule-
|
|
10
|
-
import { I as d } from "./vendor-tiptap-extension-italic-
|
|
11
|
-
import { L as m } from "./vendor-tiptap-extension-link-
|
|
12
|
-
import { B as g, L as k, a as B, O as L } from "./vendor-tiptap-extension-list-
|
|
13
|
-
import { P as b } from "./vendor-tiptap-extension-paragraph-
|
|
14
|
-
import { S as x } from "./vendor-tiptap-extension-strike-
|
|
15
|
-
import { T as v } from "./vendor-tiptap-extension-text-
|
|
16
|
-
import { U as H } from "./vendor-tiptap-extension-underline-
|
|
17
|
-
import { D as R, G as I, U as K, T as C } from "./vendor-tiptap-extensions-
|
|
1
|
+
import { E as e } from "./vendor-tiptap-core-D6CfVeU0.js";
|
|
2
|
+
import { B as n } from "./vendor-tiptap-extension-blockquote-C__lIvqD.js";
|
|
3
|
+
import { B as p } from "./vendor-tiptap-extension-bold-DF2R0mPF.js";
|
|
4
|
+
import { C as a } from "./vendor-tiptap-extension-code-f7eg00IH.js";
|
|
5
|
+
import { C as f } from "./vendor-tiptap-extension-code-block-B52VzS4M.js";
|
|
6
|
+
import { D as h } from "./vendor-tiptap-extension-document-UgQIRckz.js";
|
|
7
|
+
import { H as u } from "./vendor-tiptap-extension-hard-break-CYVqzABZ.js";
|
|
8
|
+
import { H as l } from "./vendor-tiptap-extension-heading-BWwbIXKs.js";
|
|
9
|
+
import { H as c } from "./vendor-tiptap-extension-horizontal-rule-DjIwBCkJ.js";
|
|
10
|
+
import { I as d } from "./vendor-tiptap-extension-italic-S1BFBPoJ.js";
|
|
11
|
+
import { L as m } from "./vendor-tiptap-extension-link-BII63Ad6.js";
|
|
12
|
+
import { B as g, L as k, a as B, O as L } from "./vendor-tiptap-extension-list-BiUARt_K.js";
|
|
13
|
+
import { P as b } from "./vendor-tiptap-extension-paragraph-C7nR_Mg3.js";
|
|
14
|
+
import { S as x } from "./vendor-tiptap-extension-strike-D13ERA3E.js";
|
|
15
|
+
import { T as v } from "./vendor-tiptap-extension-text-D2Ap05bS.js";
|
|
16
|
+
import { U as H } from "./vendor-tiptap-extension-underline-CiLvGtsw.js";
|
|
17
|
+
import { D as R, G as I, U as K, T as C } from "./vendor-tiptap-extensions-0qImmpYJ.js";
|
|
18
18
|
var J = e.create({
|
|
19
19
|
name: "starterKit",
|
|
20
20
|
addExtensions() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as c } from "./vendor-tiptap-core-D6CfVeU0.js";
|
|
2
2
|
import { defineComponent as o, shallowRef as v, onMounted as p, onBeforeUnmount as l, h as s, ref as h, getCurrentInstance as f, watchEffect as g, nextTick as m, unref as S, markRaw as w, customRef as C } from "vue";
|
|
3
3
|
function u(t) {
|
|
4
4
|
return C((e, r) => ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as se, ref as E, h as ue, watch as x, computed as M, reactive as X, nextTick as ie, getCurrentInstance as ce, onMounted as ae } from "vue";
|
|
2
|
-
import { d as H, n as I, i as j, a as fe, t as S, b as de, c as Y, e as ne, f as ve, u as me, g as pe, h as he } from "./vendor-vueuse-shared-
|
|
2
|
+
import { d as H, n as I, i as j, a as fe, t as S, b as de, c as Y, e as ne, f as ve, u as me, g as pe, h as he } from "./vendor-vueuse-shared-B_uDJJ6V.js";
|
|
3
3
|
function w(e) {
|
|
4
4
|
var o;
|
|
5
5
|
const t = S(e);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { n as j, t as x, f as Le, c as $, j as tt, m as At, a as Z, i as Ae, e as G, b as Ie, o as Pt, k as Ct, l as be, h as z, p as K, q as Ke, r as Rt, s as Dt, v as nt, w as le, x as rt, y as ie, z as at, A as ye, B as Je, C as Lt, D as It, g as ot, E as Mt, u as Nt, F as Pe, G as Vt, H as $t, I as lt, J as ge, K as Wt, L as Ut, M as Bt, N as Oe, O as jt, P as Ht, Q as zt, R as qt, S as Cn, T as ft, U as vt, V as Rn, W as Dn, X as Ln, Y as dt, Z as In, _ as Ue, $ as mt, d as Mn, a0 as Nn, a1 as Vn, a2 as $n, a3 as Wn, a4 as Un, a5 as Bn, a6 as jn, a7 as Hn, a8 as zn, a9 as qn, aa as Gn, ab as Yn, ac as Xn, ad as Kn, ae as Jn, af as Qn, ag as Zn, ah as Be, ai as er, aj as tr, ak as nr, al as rr, am as ar, an as pt, ao as or, ap as lr, aq as ur, ar as sr, as as ir, at as cr, au as fr, av as vr, aw as dr, ax as mr, ay as pr, az as hr, aA as yr, aB as gr, aC as wr, aD as br, aE as Sr, aF as Er, aG as xr, aH as Tr, aI as _r, aJ as kr, aK as Or, aL as Fr, aM as Ar, aN as Pr, aO as Cr, aP as Rr, aQ as Dr } from "./vendor-vueuse-shared-B_uDJJ6V.js";
|
|
2
|
+
import { ref as g, getCurrentInstance as Me, onMounted as Gt, computed as O, watch as R, isRef as oe, shallowRef as B, watchEffect as we, inject as je, defineComponent as Qe, customRef as Lr, onUpdated as Yt, shallowReactive as Ce, reactive as q, getCurrentScope as Ir, readonly as te, isReadonly as Ze, onBeforeUpdate as Mr, nextTick as Se, h as ht, TransitionGroup as Nr, markRaw as Vr, Fragment as $r, unref as Wr } from "vue";
|
|
3
3
|
function yt(e, t, n) {
|
|
4
4
|
let a;
|
|
5
5
|
oe(n) ? a = {
|
|
@@ -148,7 +148,7 @@ function Gr(e, t, n = {}) {
|
|
|
148
148
|
const { window: a = D, ignore: o = [], capture: r = !0, detectIframe: l = !1 } = n;
|
|
149
149
|
if (!a)
|
|
150
150
|
return j;
|
|
151
|
-
|
|
151
|
+
Ae && !gt && (gt = !0, Array.from(a.document.body.children).forEach((d) => d.addEventListener("click", j)), a.document.documentElement.addEventListener("click", j));
|
|
152
152
|
let u = !0;
|
|
153
153
|
const s = (d) => o.some((v) => {
|
|
154
154
|
if (typeof v == "string")
|
|
@@ -1119,7 +1119,7 @@ function $e(e, t, n, a = {}) {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
if (!n)
|
|
1121
1121
|
return w;
|
|
1122
|
-
const h = x(t), p = en(h), y = (o = a.serializer) != null ? o : ut[p], { pause: b, resume: k } =
|
|
1122
|
+
const h = x(t), p = en(h), y = (o = a.serializer) != null ? o : ut[p], { pause: b, resume: k } = Pe(
|
|
1123
1123
|
w,
|
|
1124
1124
|
() => C(w.value),
|
|
1125
1125
|
{ flush: r, deep: l, eventFilter: d }
|
|
@@ -3542,7 +3542,7 @@ function Qo(e, t = !1) {
|
|
|
3542
3542
|
});
|
|
3543
3543
|
const r = () => {
|
|
3544
3544
|
const u = Fe(x(e));
|
|
3545
|
-
!u || n.value || (
|
|
3545
|
+
!u || n.value || (Ae && (a = _(
|
|
3546
3546
|
u,
|
|
3547
3547
|
"touchmove",
|
|
3548
3548
|
(s) => {
|
|
@@ -3552,7 +3552,7 @@ function Qo(e, t = !1) {
|
|
|
3552
3552
|
)), u.style.overflow = "hidden", n.value = !0);
|
|
3553
3553
|
}, l = () => {
|
|
3554
3554
|
const u = Fe(x(e));
|
|
3555
|
-
!u || !n.value || (
|
|
3555
|
+
!u || !n.value || (Ae && a?.(), u.style.overflow = o, Ge.delete(u), n.value = !1);
|
|
3556
3556
|
};
|
|
3557
3557
|
return $(l), O({
|
|
3558
3558
|
get() {
|
|
@@ -4237,7 +4237,7 @@ function Fl(e = "history", t = {}) {
|
|
|
4237
4237
|
}
|
|
4238
4238
|
Array.from(y).forEach((b) => delete u[b]);
|
|
4239
4239
|
}
|
|
4240
|
-
const { pause: d, resume: v } =
|
|
4240
|
+
const { pause: d, resume: v } = Pe(
|
|
4241
4241
|
u,
|
|
4242
4242
|
() => {
|
|
4243
4243
|
const p = new URLSearchParams("");
|
|
@@ -4893,7 +4893,7 @@ const Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4893
4893
|
isClient: Z,
|
|
4894
4894
|
isDef: Ht,
|
|
4895
4895
|
isDefined: Hn,
|
|
4896
|
-
isIOS:
|
|
4896
|
+
isIOS: Ae,
|
|
4897
4897
|
isObject: Ie,
|
|
4898
4898
|
isWorker: zt,
|
|
4899
4899
|
makeDestructurable: At,
|
|
@@ -4913,7 +4913,7 @@ const Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4913
4913
|
onLongPress: ea,
|
|
4914
4914
|
onStartTyping: ra,
|
|
4915
4915
|
pausableFilter: It,
|
|
4916
|
-
pausableWatch:
|
|
4916
|
+
pausableWatch: Pe,
|
|
4917
4917
|
promiseTimeout: lt,
|
|
4918
4918
|
provideLocal: Gn,
|
|
4919
4919
|
rand: Yn,
|
|
@@ -5110,7 +5110,7 @@ const Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5110
5110
|
watchIgnorable: ye,
|
|
5111
5111
|
watchImmediate: Pr,
|
|
5112
5112
|
watchOnce: Cr,
|
|
5113
|
-
watchPausable:
|
|
5113
|
+
watchPausable: Pe,
|
|
5114
5114
|
watchThrottled: pt,
|
|
5115
5115
|
watchTriggerable: Rr,
|
|
5116
5116
|
watchWithFilter: Vt,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { computed as p, isRef as S, reactive as H, unref as M, effectScope as V, watch as y, nextTick as F, customRef as I, shallowRef as Q, watchEffect as ee, readonly as k, ref as w, getCurrentInstance as $, inject as te, provide as ne, toRefs as x, toRef as re, onBeforeMount as oe, onBeforeUnmount as ue, onMounted as ae, getCurrentScope as se, onScopeDispose as ie, onUnmounted as ce, isReactive as le } from "vue";
|
|
2
2
|
function He(e, t) {
|
|
3
3
|
var n;
|
|
4
|
-
const r =
|
|
5
|
-
return
|
|
4
|
+
const r = Q();
|
|
5
|
+
return ee(() => {
|
|
6
6
|
r.value = e();
|
|
7
7
|
}, {
|
|
8
8
|
...t,
|
|
@@ -56,13 +56,13 @@ const D = /* @__PURE__ */ new WeakMap(), fe = (e, t) => {
|
|
|
56
56
|
throw new Error("provideLocal must be called in setup");
|
|
57
57
|
D.has(r) || D.set(r, /* @__PURE__ */ Object.create(null));
|
|
58
58
|
const o = D.get(r);
|
|
59
|
-
o[e] = t,
|
|
59
|
+
o[e] = t, ne(e, t);
|
|
60
60
|
}, de = (...e) => {
|
|
61
61
|
var t;
|
|
62
62
|
const n = e[0], r = (t = $()) == null ? void 0 : t.proxy;
|
|
63
63
|
if (r == null)
|
|
64
64
|
throw new Error("injectLocal must be called in setup");
|
|
65
|
-
return D.has(r) && n in D.get(r) ? D.get(r)[n] :
|
|
65
|
+
return D.has(r) && n in D.get(r) ? D.get(r)[n] : te(...e);
|
|
66
66
|
};
|
|
67
67
|
function ze(e, t) {
|
|
68
68
|
const n = t?.injectionKey || Symbol(e.name || "InjectionState"), r = t?.defaultValue;
|
|
@@ -295,7 +295,7 @@ function L(e) {
|
|
|
295
295
|
}
|
|
296
296
|
function K(...e) {
|
|
297
297
|
if (e.length !== 1)
|
|
298
|
-
return
|
|
298
|
+
return re(...e);
|
|
299
299
|
const t = e[0];
|
|
300
300
|
return typeof t == "function" ? k(I(() => ({ get: t, set: E }))) : w(t);
|
|
301
301
|
}
|
|
@@ -493,13 +493,13 @@ function It(e, t = {}) {
|
|
|
493
493
|
return n;
|
|
494
494
|
}
|
|
495
495
|
function _t(e, t = !0, n) {
|
|
496
|
-
L(n) ?
|
|
496
|
+
L(n) ? oe(e, n) : t ? e() : F(e);
|
|
497
497
|
}
|
|
498
498
|
function xt(e, t) {
|
|
499
|
-
L(t) &&
|
|
499
|
+
L(t) && ue(e, t);
|
|
500
500
|
}
|
|
501
501
|
function Ct(e, t = !0, n) {
|
|
502
|
-
L() ?
|
|
502
|
+
L() ? ae(e, n) : t ? e() : F(e);
|
|
503
503
|
}
|
|
504
504
|
function kt(e, t) {
|
|
505
505
|
L(t) && ce(e, t);
|
|
@@ -1060,12 +1060,12 @@ function fn(e, t, n) {
|
|
|
1060
1060
|
}
|
|
1061
1061
|
export {
|
|
1062
1062
|
on as $,
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1063
|
+
Be as A,
|
|
1064
|
+
Et as B,
|
|
1065
|
+
vt as C,
|
|
1066
|
+
be as D,
|
|
1067
|
+
kt as E,
|
|
1068
|
+
G as F,
|
|
1069
1069
|
j as G,
|
|
1070
1070
|
xt as H,
|
|
1071
1071
|
Y as I,
|
|
@@ -1162,8 +1162,8 @@ export {
|
|
|
1162
1162
|
i as t,
|
|
1163
1163
|
Pe as u,
|
|
1164
1164
|
It as v,
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1165
|
+
je as w,
|
|
1166
|
+
Z as x,
|
|
1167
|
+
ge as y,
|
|
1168
|
+
N as z
|
|
1169
1169
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.1.91
|
|
3
|
+
"version": "1.1.91",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/framework.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
"@fullhuman/postcss-purgecss": "^7.0.2",
|
|
91
91
|
"@laynezh/vite-plugin-lib-assets": "v1.1.0",
|
|
92
92
|
"@types/dompurify": "^3.0.5",
|
|
93
|
-
"@vc-shell/api-client-generator": "1.1.91
|
|
94
|
-
"@vc-shell/config-generator": "1.1.91
|
|
95
|
-
"@vc-shell/ts-config": "1.1.91
|
|
93
|
+
"@vc-shell/api-client-generator": "^1.1.91",
|
|
94
|
+
"@vc-shell/config-generator": "^1.1.91",
|
|
95
|
+
"@vc-shell/ts-config": "^1.1.91",
|
|
96
96
|
"@vitejs/plugin-vue": "^5.2.3",
|
|
97
97
|
"@vue/test-utils": "^2.4.5",
|
|
98
98
|
"cypress-signalr-mock": "^1.5.0",
|
|
@@ -111,7 +111,5 @@
|
|
|
111
111
|
"publishConfig": {
|
|
112
112
|
"access": "public",
|
|
113
113
|
"registry": "https://registry.npmjs.org/"
|
|
114
|
-
}
|
|
115
|
-
"stableVersion": "1.1.90",
|
|
116
|
-
"npmTag": "alpha"
|
|
114
|
+
}
|
|
117
115
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@contextmenu.prevent
|
|
7
7
|
>
|
|
8
8
|
<GenericDropdown
|
|
9
|
-
opened
|
|
9
|
+
:opened="true"
|
|
10
10
|
:items="appsList"
|
|
11
11
|
:is-item-active="(item) => locationHandler(item.relativeUrl ?? '')"
|
|
12
12
|
max-height="auto"
|
|
@@ -72,7 +72,7 @@ const switchApp = (app: AppDescriptor) => {
|
|
|
72
72
|
@apply tw-relative tw-flex tw-shrink-0 tw-h-full;
|
|
73
73
|
|
|
74
74
|
&__item {
|
|
75
|
-
@apply tw-flex tw-items-center tw-w-full tw-p-3;
|
|
75
|
+
@apply tw-flex tw-items-center tw-w-full tw-p-3 tw-w-full;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
&__item-icon {
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { computed, Ref, ref
|
|
1
|
+
import { computed, Ref, ref } from "vue";
|
|
2
2
|
import { AppDescriptor, AppsClient } from "../../../../../core/api/platform";
|
|
3
3
|
import { usePermissions } from "../../../../../core/composables";
|
|
4
4
|
import { notification } from "./../../../notifications";
|
|
5
5
|
import { i18n } from "../../../../../core/plugins";
|
|
6
|
-
import { AuthProviderKey } from "../../../../../injection-keys";
|
|
7
|
-
import { IAuthProvider } from "../../../../../core/types/auth-provider";
|
|
8
|
-
import { shouldEnablePlatformFeatures } from "../../../../../core/providers/auth-provider-utils";
|
|
9
6
|
|
|
10
7
|
interface IUseAppSwitcher {
|
|
11
8
|
readonly appsList: Ref<AppDescriptor[]>;
|
|
@@ -17,23 +14,12 @@ export function useAppSwitcher(): IUseAppSwitcher {
|
|
|
17
14
|
const { hasAccess } = usePermissions();
|
|
18
15
|
const appsList = ref<AppDescriptor[]>([]);
|
|
19
16
|
|
|
20
|
-
// Inject auth provider to check if platform features should be enabled
|
|
21
|
-
const authProvider = inject(AuthProviderKey);
|
|
22
|
-
|
|
23
17
|
async function getApiClient(): Promise<AppsClient> {
|
|
24
18
|
const client = new AppsClient();
|
|
25
19
|
return client;
|
|
26
20
|
}
|
|
27
21
|
|
|
28
22
|
async function getApps() {
|
|
29
|
-
// Skip loading apps for custom authentication providers
|
|
30
|
-
if (!shouldEnablePlatformFeatures(authProvider)) {
|
|
31
|
-
console.log("[useAppSwitcher] Skipping getApps - custom authentication provider detected");
|
|
32
|
-
appsList.value = []; // Ensure empty list for custom providers
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
console.log("[useAppSwitcher] Loading apps from platform");
|
|
37
23
|
const client = await getApiClient();
|
|
38
24
|
|
|
39
25
|
try {
|