@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.
Files changed (103) hide show
  1. package/CHANGELOG.md +2762 -1411
  2. package/core/api/platform.ts +9883 -9883
  3. package/core/composables/useNotifications/index.ts +1 -32
  4. package/core/composables/useSettings/index.ts +3 -8
  5. package/core/composables/useUser/index.ts +171 -74
  6. package/core/composables/useUserManagement/index.ts +25 -67
  7. package/core/interceptors/index.ts +56 -19
  8. package/core/plugins/signalR/index.ts +1 -27
  9. package/core/types/index.ts +0 -2
  10. package/dist/core/api/platform.d.ts +1 -1
  11. package/dist/core/api/platform.d.ts.map +1 -1
  12. package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
  13. package/dist/core/composables/useSettings/index.d.ts.map +1 -1
  14. package/dist/core/composables/useUser/index.d.ts +9 -18
  15. package/dist/core/composables/useUser/index.d.ts.map +1 -1
  16. package/dist/core/composables/useUserManagement/index.d.ts +7 -7
  17. package/dist/core/composables/useUserManagement/index.d.ts.map +1 -1
  18. package/dist/core/interceptors/index.d.ts +1 -2
  19. package/dist/core/interceptors/index.d.ts.map +1 -1
  20. package/dist/core/plugins/signalR/index.d.ts +0 -2
  21. package/dist/core/plugins/signalR/index.d.ts.map +1 -1
  22. package/dist/core/types/index.d.ts +1 -1
  23. package/dist/core/types/index.d.ts.map +1 -1
  24. package/dist/framework.js +5682 -5832
  25. package/dist/index.css +1 -1
  26. package/dist/index.d.ts +0 -8
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/injection-keys.d.ts +1 -2
  29. package/dist/injection-keys.d.ts.map +1 -1
  30. package/dist/shared/components/app-switcher/composables/useAppSwitcher/index.d.ts.map +1 -1
  31. package/dist/shared/components/sign-in/useExternalProvider.d.ts +1 -1
  32. package/dist/shared/components/sign-in/useExternalProvider.d.ts.map +1 -1
  33. package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts.map +1 -1
  34. package/dist/tsconfig.tsbuildinfo +1 -1
  35. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
  36. package/dist/vendor-dompurify-BuxjWxA2.js +553 -0
  37. package/dist/{vendor-prosemirror-gapcursor-K-Pj0iVP.js → vendor-prosemirror-gapcursor-CoNzHXkd.js} +27 -24
  38. package/dist/{vendor-tiptap-core-B000Ay3n.js → vendor-tiptap-core-D6CfVeU0.js} +1838 -1502
  39. package/dist/{vendor-tiptap-extension-blockquote-CHW3QVCH.js → vendor-tiptap-extension-blockquote-C__lIvqD.js} +19 -6
  40. package/dist/{vendor-tiptap-extension-bold-DsNXR7l5.js → vendor-tiptap-extension-bold-DF2R0mPF.js} +13 -10
  41. package/dist/{vendor-tiptap-extension-code-block-DYMOFxJc.js → vendor-tiptap-extension-code-block-B52VzS4M.js} +34 -16
  42. package/dist/{vendor-tiptap-extension-code-BXPfZcyf.js → vendor-tiptap-extension-code-f7eg00IH.js} +11 -8
  43. package/dist/vendor-tiptap-extension-document-UgQIRckz.js +12 -0
  44. package/dist/{vendor-tiptap-extension-hard-break-DfxtqTYW.js → vendor-tiptap-extension-hard-break-CYVqzABZ.js} +11 -9
  45. package/dist/{vendor-tiptap-extension-heading-BqN9fEEm.js → vendor-tiptap-extension-heading-BWwbIXKs.js} +11 -5
  46. package/dist/{vendor-tiptap-extension-horizontal-rule-Dl1wmLAo.js → vendor-tiptap-extension-horizontal-rule-DjIwBCkJ.js} +14 -11
  47. package/dist/{vendor-tiptap-extension-image-Cv28QlbA.js → vendor-tiptap-extension-image-CSFiALl1.js} +18 -8
  48. package/dist/{vendor-tiptap-extension-italic-B3WETSCz.js → vendor-tiptap-extension-italic-S1BFBPoJ.js} +15 -12
  49. package/dist/{vendor-tiptap-extension-link-CTWD6W1U.js → vendor-tiptap-extension-link-BII63Ad6.js} +101 -90
  50. package/dist/vendor-tiptap-extension-list-BiUARt_K.js +707 -0
  51. package/dist/vendor-tiptap-extension-paragraph-C7nR_Mg3.js +41 -0
  52. package/dist/vendor-tiptap-extension-placeholder-BoHVyYJs.js +1 -0
  53. package/dist/vendor-tiptap-extension-strike-D13ERA3E.js +64 -0
  54. package/dist/vendor-tiptap-extension-table-DsqCGn0S.js +368 -0
  55. package/dist/vendor-tiptap-extension-table-cell-qeLCoF6c.js +1 -0
  56. package/dist/vendor-tiptap-extension-table-header-qeLCoF6c.js +1 -0
  57. package/dist/vendor-tiptap-extension-table-row-qeLCoF6c.js +1 -0
  58. package/dist/vendor-tiptap-extension-text-D2Ap05bS.js +13 -0
  59. package/dist/{vendor-tiptap-extension-text-style-BiLsi9B8.js → vendor-tiptap-extension-text-style-6WFGdn9L.js} +1 -1
  60. package/dist/{vendor-tiptap-extension-underline-Bz_pv2E0.js → vendor-tiptap-extension-underline-CiLvGtsw.js} +29 -4
  61. package/dist/{vendor-tiptap-extensions-Crh_nh74.js → vendor-tiptap-extensions-0qImmpYJ.js} +88 -87
  62. package/dist/{vendor-tiptap-markdown-bGlioql8.js → vendor-tiptap-markdown-Dh06r1Sk.js} +1 -1
  63. package/dist/{vendor-tiptap-starter-kit-B3fY431M.js → vendor-tiptap-starter-kit-CQMmSEis.js} +17 -17
  64. package/dist/{vendor-tiptap-vue-3-CqWn44-V.js → vendor-tiptap-vue-3-B0kPYa3w.js} +1 -1
  65. package/dist/{vendor-vueuse-components-sgKpNzof.js → vendor-vueuse-components-B0zqjNRW.js} +1 -1
  66. package/dist/{vendor-vueuse-core-D0cN7FqY.js → vendor-vueuse-core-CYgwn-B2.js} +10 -10
  67. package/dist/{vendor-vueuse-shared-Pt0UEStA.js → vendor-vueuse-shared-B_uDJJ6V.js} +19 -19
  68. package/package.json +5 -7
  69. package/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +2 -2
  70. package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +1 -15
  71. package/shared/components/sign-in/useExternalProvider.ts +1 -11
  72. package/shared/modules/dynamic/helpers/nodeBuilder.ts +3 -11
  73. package/ui/components/organisms/vc-app/vc-app.vue +2 -20
  74. package/core/providers/README.md +0 -176
  75. package/core/providers/auth-provider-manager.ts +0 -74
  76. package/core/providers/auth-provider-utils.ts +0 -26
  77. package/core/providers/example-custom-auth-provider.ts +0 -162
  78. package/core/providers/index.ts +0 -3
  79. package/core/providers/platform-auth-provider.ts +0 -207
  80. package/core/types/auth-provider.ts +0 -40
  81. package/dist/core/providers/auth-provider-manager.d.ts +0 -34
  82. package/dist/core/providers/auth-provider-manager.d.ts.map +0 -1
  83. package/dist/core/providers/auth-provider-utils.d.ts +0 -17
  84. package/dist/core/providers/auth-provider-utils.d.ts.map +0 -1
  85. package/dist/core/providers/example-custom-auth-provider.d.ts +0 -45
  86. package/dist/core/providers/example-custom-auth-provider.d.ts.map +0 -1
  87. package/dist/core/providers/index.d.ts +0 -3
  88. package/dist/core/providers/index.d.ts.map +0 -1
  89. package/dist/core/providers/platform-auth-provider.d.ts +0 -34
  90. package/dist/core/providers/platform-auth-provider.d.ts.map +0 -1
  91. package/dist/core/types/auth-provider.d.ts +0 -27
  92. package/dist/core/types/auth-provider.d.ts.map +0 -1
  93. package/dist/vendor-dompurify-C-JbJ3KX.js +0 -536
  94. package/dist/vendor-tiptap-extension-document-Y-jQl_8Q.js +0 -9
  95. package/dist/vendor-tiptap-extension-list-Da9Xfgwa.js +0 -420
  96. package/dist/vendor-tiptap-extension-paragraph-CSda9k3a.js +0 -31
  97. package/dist/vendor-tiptap-extension-placeholder-MI_ltlp7.js +0 -1
  98. package/dist/vendor-tiptap-extension-strike-Di5VtsLj.js +0 -61
  99. package/dist/vendor-tiptap-extension-table-DYCEjlpp.js +0 -311
  100. package/dist/vendor-tiptap-extension-table-cell-D5DL87Xa.js +0 -1
  101. package/dist/vendor-tiptap-extension-table-header-D5DL87Xa.js +0 -1
  102. package/dist/vendor-tiptap-extension-table-row-D5DL87Xa.js +0 -1
  103. package/dist/vendor-tiptap-extension-text-8vtzSN60.js +0 -8
@@ -1,9 +1,9 @@
1
- import { E as u, v as y, r as w, s as P, i as S } from "./vendor-tiptap-core-B000Ay3n.js";
2
- import { P as h, a as p } from "./vendor-prosemirror-state-DUZYoLys.js";
3
- import { d as v } from "./vendor-prosemirror-dropcursor-CqLA3EZY.js";
4
- import { a as g, D as m } from "./vendor-prosemirror-view-CesDChJC.js";
5
- import { g as z } from "./vendor-prosemirror-gapcursor-K-Pj0iVP.js";
6
- import { h as E, r as N, u as O } from "./vendor-prosemirror-history-DzP74u0n.js";
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 s = t.textBetween(0, t.content.size, void 0, " ");
28
- return this.options.textCounter(s);
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, o = t.textBetween(0, t.content.size, " ", " ");
33
- return this.options.wordCounter(o);
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 h({
40
- key: new p("characterCount"),
41
- appendTransaction: (t, o, s) => {
39
+ new p({
40
+ key: new m("characterCount"),
41
+ appendTransaction: (t, s, r) => {
42
42
  if (e)
43
43
  return;
44
- const r = this.options.limit;
45
- if (r == null || r === 0) {
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: s.doc });
50
- if (n > r) {
51
- const c = n - r, i = 0, a = c;
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 ${r} characters. Content was automatically trimmed.`
53
+ `[CharacterCount] Initial content exceeded limit of ${o} characters. Content was automatically trimmed.`
54
54
  );
55
- const d = s.tr.deleteRange(i, a);
56
- return e = !0, d;
55
+ const c = r.tr.deleteRange(a, d);
56
+ return e = !0, c;
57
57
  }
58
58
  e = !0;
59
59
  },
60
- filterTransaction: (t, o) => {
61
- const s = this.options.limit;
62
- if (!t.docChanged || s === 0 || s === null || s === void 0)
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 r = this.storage.characters({ node: o.doc }), n = this.storage.characters({ node: t.doc });
65
- if (n <= s || r > s && n > s && n <= r)
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 (r > s && n > s && n > r || !t.getMeta("paste"))
67
+ if (o > r && n > r && n > o || !t.getMeta("paste"))
68
68
  return !1;
69
- const i = t.selection.$head.pos, a = n - s, d = i - a, l = i;
70
- return t.deleteRange(d, l), !(this.storage.characters({ node: t.doc }) > s);
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 [v(this.options)];
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 h({
100
- key: new p("focus"),
99
+ new p({
100
+ key: new m("focus"),
101
101
  props: {
102
102
  decorations: ({ doc: e, selection: t }) => {
103
- const { isEditable: o, isFocused: s } = this.editor, { anchor: r } = t, n = [];
104
- if (!o || !s)
105
- return m.create(e, []);
106
- let c = 0;
107
- this.options.mode === "deepest" && e.descendants((a, d) => {
108
- if (a.isText)
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 (!(r >= d && r <= d + a.nodeSize - 1))
110
+ if (!(o >= c && o <= c + d.nodeSize - 1))
111
111
  return !1;
112
- c += 1;
112
+ i += 1;
113
113
  });
114
- let i = 0;
115
- return e.descendants((a, d) => {
116
- if (a.isText || !(r >= d && r <= d + a.nodeSize - 1))
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 (i += 1, this.options.mode === "deepest" && c - i > 0 || this.options.mode === "shallowest" && i > 1)
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(d, d + a.nodeSize, {
121
+ g.node(c, c + d.nodeSize, {
122
122
  class: this.options.className
123
123
  })
124
124
  );
125
- }), m.create(e, n);
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 [z()];
135
+ return [E()];
136
136
  },
137
137
  extendNodeSchema(e) {
138
138
  var t;
139
- const o = {
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 = w(P(e, "allowGapCursor", o))) != null ? t : null
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 h({
163
- key: new p("placeholder"),
162
+ new p({
163
+ key: new m("placeholder"),
164
164
  props: {
165
165
  decorations: ({ doc: e, selection: t }) => {
166
- const o = this.editor.isEditable || !this.options.showOnlyWhenEditable, { anchor: s } = t, r = [];
167
- if (!o)
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((c, i) => {
171
- const a = s >= i && s <= i + c.nodeSize, d = !c.isLeaf && y(c);
172
- if ((a || !this.options.showOnlyCurrent) && d) {
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 f = g.node(i, i + c.nodeSize, {
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: c,
180
- pos: i,
181
- hasAnchor: a
179
+ node: i,
180
+ pos: a,
181
+ hasAnchor: d
182
182
  }) : this.options.placeholder
183
183
  });
184
- r.push(f);
184
+ o.push(h);
185
185
  }
186
186
  return this.options.includeChildren;
187
- }), m.create(e, r);
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 h({
205
- key: new p("selection"),
204
+ new p({
205
+ key: new m("selection"),
206
206
  props: {
207
- decorations(o) {
208
- return o.selection.empty || e.isFocused || !e.isEditable || S(o.selection) || e.view.dragging ? null : m.create(o.doc, [
209
- g.inline(o.selection.from, o.selection.to, {
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 C({ types: e, node: t }) {
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: "paragraph",
226
+ node: void 0,
227
227
  notAfter: []
228
228
  };
229
229
  },
230
230
  addProseMirrorPlugins() {
231
- const e = new p(this.name), t = Object.entries(this.editor.schema.nodes).map(([, o]) => o).filter((o) => (this.options.notAfter || []).concat(this.options.node).includes(o.name));
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 h({
234
- key: e,
235
- appendTransaction: (o, s, r) => {
236
- const { doc: n, tr: c, schema: i } = r, a = e.getState(r), d = n.content.size, l = i.nodes[this.options.node];
237
- if (a)
238
- return c.insert(d, l.create());
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, s) => {
242
- const r = s.tr.doc.lastChild;
243
- return !C({ node: r, types: t });
242
+ init: (o, n) => {
243
+ const i = n.tr.doc.lastChild;
244
+ return !y({ node: i, types: r });
244
245
  },
245
- apply: (o, s) => {
246
+ apply: (o, n) => {
246
247
  if (!o.docChanged)
247
- return s;
248
- const r = o.doc.lastChild;
249
- return !C({ node: r, types: t });
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
- }), _ = u.create({
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 }) => N(e, t)
267
+ redo: () => ({ state: e, dispatch: t }) => M(e, t)
267
268
  };
268
269
  },
269
270
  addProseMirrorPlugins() {
270
- return [E(this.options)];
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
- _ as U
289
+ B as U
289
290
  };
@@ -1,4 +1,4 @@
1
- import { E as b, x as B, N as a, M as m, y as z } from "./vendor-tiptap-core-B000Ay3n.js";
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";
@@ -1,20 +1,20 @@
1
- import { E as e } from "./vendor-tiptap-core-B000Ay3n.js";
2
- import { B as n } from "./vendor-tiptap-extension-blockquote-CHW3QVCH.js";
3
- import { B as p } from "./vendor-tiptap-extension-bold-DsNXR7l5.js";
4
- import { C as a } from "./vendor-tiptap-extension-code-BXPfZcyf.js";
5
- import { C as f } from "./vendor-tiptap-extension-code-block-DYMOFxJc.js";
6
- import { D as h } from "./vendor-tiptap-extension-document-Y-jQl_8Q.js";
7
- import { H as u } from "./vendor-tiptap-extension-hard-break-DfxtqTYW.js";
8
- import { H as l } from "./vendor-tiptap-extension-heading-BqN9fEEm.js";
9
- import { H as c } from "./vendor-tiptap-extension-horizontal-rule-Dl1wmLAo.js";
10
- import { I as d } from "./vendor-tiptap-extension-italic-B3WETSCz.js";
11
- import { L as m } from "./vendor-tiptap-extension-link-CTWD6W1U.js";
12
- import { B as g, L as k, a as B, O as L } from "./vendor-tiptap-extension-list-Da9Xfgwa.js";
13
- import { P as b } from "./vendor-tiptap-extension-paragraph-CSda9k3a.js";
14
- import { S as x } from "./vendor-tiptap-extension-strike-Di5VtsLj.js";
15
- import { T as v } from "./vendor-tiptap-extension-text-8vtzSN60.js";
16
- import { U as H } from "./vendor-tiptap-extension-underline-Bz_pv2E0.js";
17
- import { D as R, G as I, U as K, T as C } from "./vendor-tiptap-extensions-Crh_nh74.js";
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 { z as c } from "./vendor-tiptap-core-B000Ay3n.js";
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-Pt0UEStA.js";
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 { a as Z, t as x, w as Ae, e as G, n as j, f as Le, c as $, j as tt, m as At, i as Pe, 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, x as le, y as rt, z as ie, A as at, B as ye, C as Je, D as Lt, E as It, g as ot, F as Mt, u as Nt, 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-Pt0UEStA.js";
2
- import { shallowRef as B, ref as g, nextTick as Se, getCurrentInstance as Me, onMounted as Gt, computed as O, watch as R, isRef as oe, 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, h as ht, TransitionGroup as Nr, markRaw as Vr, Fragment as $r, unref as Wr } from "vue";
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
- Pe && !gt && (gt = !0, Array.from(a.document.body.children).forEach((d) => d.addEventListener("click", j)), a.document.documentElement.addEventListener("click", j));
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 } = Ae(
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 || (Pe && (a = _(
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 || (Pe && a?.(), u.style.overflow = o, Ge.delete(u), n.value = !1);
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 } = Ae(
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: Pe,
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: Ae,
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: Ae,
5113
+ watchPausable: Pe,
5114
5114
  watchThrottled: pt,
5115
5115
  watchTriggerable: Rr,
5116
5116
  watchWithFilter: Vt,
@@ -1,8 +1,8 @@
1
- import { unref as M, onMounted as Q, nextTick as F, ref as w, readonly as k, watch as y, getCurrentInstance as $, computed as p, isRef as S, reactive as H, effectScope as V, customRef as I, shallowRef as ee, watchEffect as te, inject as ne, provide as re, toRefs as x, toRef as oe, onBeforeMount as ue, onBeforeUnmount as ae, getCurrentScope as se, onScopeDispose as ie, onUnmounted as ce, isReactive as le } from "vue";
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 = ee();
5
- return te(() => {
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, re(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] : ne(...e);
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 oe(...e);
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) ? ue(e, n) : t ? e() : F(e);
496
+ L(n) ? oe(e, n) : t ? e() : F(e);
497
497
  }
498
498
  function xt(e, t) {
499
- L(t) && ae(e, t);
499
+ L(t) && ue(e, t);
500
500
  }
501
501
  function Ct(e, t = !0, n) {
502
- L() ? Q(e, n) : t ? e() : F(e);
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
- N as A,
1064
- Be as B,
1065
- Et as C,
1066
- vt as D,
1067
- be as E,
1068
- kt as F,
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
- G as w,
1166
- je as x,
1167
- Z as y,
1168
- ge as z
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-alpha.5",
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-alpha.5",
94
- "@vc-shell/config-generator": "1.1.91-alpha.5",
95
- "@vc-shell/ts-config": "1.1.91-alpha.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",
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, inject } from "vue";
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 {