@vc-shell/framework 1.1.91-alpha.0 → 1.1.91-alpha.1

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 (87) hide show
  1. package/CHANGELOG.md +1401 -2770
  2. package/core/api/platform.ts +9883 -9883
  3. package/core/composables/useNotifications/index.ts +32 -1
  4. package/core/composables/useSettings/index.ts +8 -3
  5. package/core/plugins/signalR/index.ts +3 -3
  6. package/core/providers/auth-provider-utils.ts +26 -0
  7. package/core/providers/example-custom-auth-provider.ts +3 -2
  8. package/core/providers/platform-auth-provider.ts +5 -3
  9. package/core/types/auth-provider.ts +2 -6
  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/providers/auth-provider-utils.d.ts +17 -0
  15. package/dist/core/providers/auth-provider-utils.d.ts.map +1 -0
  16. package/dist/core/providers/example-custom-auth-provider.d.ts +2 -2
  17. package/dist/core/providers/example-custom-auth-provider.d.ts.map +1 -1
  18. package/dist/core/providers/platform-auth-provider.d.ts +3 -3
  19. package/dist/core/providers/platform-auth-provider.d.ts.map +1 -1
  20. package/dist/core/types/auth-provider.d.ts +2 -2
  21. package/dist/core/types/auth-provider.d.ts.map +1 -1
  22. package/dist/framework.js +10440 -10407
  23. package/dist/index.d.ts +1 -0
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/shared/components/sign-in/useExternalProvider.d.ts +1 -1
  26. package/dist/shared/components/sign-in/useExternalProvider.d.ts.map +1 -1
  27. package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts.map +1 -1
  28. package/dist/tsconfig.tsbuildinfo +1 -1
  29. package/dist/{vendor-core-js-azBmvlGv.js → vendor-core-js-DDuR6YMQ.js} +49 -49
  30. package/dist/vendor-microsoft-applicationinsights-analytics-js-C1Yxuzwg.js +1207 -0
  31. package/dist/{vendor-microsoft-applicationinsights-cfgsync-js-Dp8OU6ZE.js → vendor-microsoft-applicationinsights-cfgsync-js-DArHD4Dn.js} +20 -20
  32. package/dist/{vendor-microsoft-applicationinsights-channel-js-Bc73N-5y.js → vendor-microsoft-applicationinsights-channel-js-Dbs0XRes.js} +767 -754
  33. package/dist/{vendor-microsoft-applicationinsights-common-DcnOqpgL.js → vendor-microsoft-applicationinsights-common-OjU3Zs6r.js} +191 -191
  34. package/dist/vendor-microsoft-applicationinsights-core-js-DWRvqBek.js +4276 -0
  35. package/dist/{vendor-microsoft-applicationinsights-dependencies-js-C_DhEOae.js → vendor-microsoft-applicationinsights-dependencies-js-BxTNw-Sk.js} +422 -414
  36. package/dist/{vendor-microsoft-applicationinsights-properties-js-COczDd7b.js → vendor-microsoft-applicationinsights-properties-js-Gfhpu-At.js} +117 -117
  37. package/dist/{vendor-microsoft-applicationinsights-web-DtOQojwf.js → vendor-microsoft-applicationinsights-web-9yeJ0EZv.js} +59 -59
  38. package/dist/{vendor-nevware21-ts-async-DFUnZ_sN.js → vendor-nevware21-ts-async-CdMc_sGt.js} +4 -3
  39. package/dist/{vendor-prosemirror-gapcursor-3PaVPyUV.js → vendor-prosemirror-gapcursor-K-Pj0iVP.js} +1 -1
  40. package/dist/{vendor-prosemirror-tables-CezTPhzU.js → vendor-prosemirror-tables-MDKm8BUy.js} +1 -1
  41. package/dist/{vendor-prosemirror-view-CzsD5m3e.js → vendor-prosemirror-view-CesDChJC.js} +512 -511
  42. package/dist/{vendor-semver-B87_S22g.js → vendor-semver-Dar8oU3V.js} +38 -36
  43. package/dist/{vendor-tiptap-core-rgc3Sj5Y.js → vendor-tiptap-core-B000Ay3n.js} +4 -2
  44. package/dist/{vendor-tiptap-extension-blockquote-DgzMeNpc.js → vendor-tiptap-extension-blockquote-CHW3QVCH.js} +1 -1
  45. package/dist/{vendor-tiptap-extension-bold-DZbX5Qiw.js → vendor-tiptap-extension-bold-DsNXR7l5.js} +1 -1
  46. package/dist/{vendor-tiptap-extension-code-BcakHaXe.js → vendor-tiptap-extension-code-BXPfZcyf.js} +1 -1
  47. package/dist/vendor-tiptap-extension-code-block-DYMOFxJc.js +197 -0
  48. package/dist/{vendor-tiptap-extension-document-BBhadLNS.js → vendor-tiptap-extension-document-Y-jQl_8Q.js} +1 -1
  49. package/dist/{vendor-tiptap-extension-hard-break-eyl10A9U.js → vendor-tiptap-extension-hard-break-DfxtqTYW.js} +1 -1
  50. package/dist/{vendor-tiptap-extension-heading-BmX_Abvh.js → vendor-tiptap-extension-heading-BqN9fEEm.js} +1 -1
  51. package/dist/{vendor-tiptap-extension-horizontal-rule-DyYIWV6W.js → vendor-tiptap-extension-horizontal-rule-Dl1wmLAo.js} +16 -16
  52. package/dist/{vendor-tiptap-extension-image-C06iDyEi.js → vendor-tiptap-extension-image-Cv28QlbA.js} +1 -1
  53. package/dist/{vendor-tiptap-extension-italic-B2YDHBEe.js → vendor-tiptap-extension-italic-B3WETSCz.js} +1 -1
  54. package/dist/{vendor-tiptap-extension-link-Bw8_3Rr4.js → vendor-tiptap-extension-link-CTWD6W1U.js} +1 -1
  55. package/dist/{vendor-tiptap-extension-list-qHzpj6eq.js → vendor-tiptap-extension-list-Da9Xfgwa.js} +1 -1
  56. package/dist/{vendor-tiptap-extension-paragraph-BnCRfXCL.js → vendor-tiptap-extension-paragraph-CSda9k3a.js} +1 -1
  57. package/dist/vendor-tiptap-extension-placeholder-MI_ltlp7.js +1 -0
  58. package/dist/{vendor-tiptap-extension-strike-Naksm43m.js → vendor-tiptap-extension-strike-Di5VtsLj.js} +1 -1
  59. package/dist/{vendor-tiptap-extension-table-Cguez3tu.js → vendor-tiptap-extension-table-DYCEjlpp.js} +94 -85
  60. package/dist/vendor-tiptap-extension-table-cell-D5DL87Xa.js +1 -0
  61. package/dist/vendor-tiptap-extension-table-header-D5DL87Xa.js +1 -0
  62. package/dist/vendor-tiptap-extension-table-row-D5DL87Xa.js +1 -0
  63. package/dist/{vendor-tiptap-extension-text-CixjyWfN.js → vendor-tiptap-extension-text-8vtzSN60.js} +1 -1
  64. package/dist/{vendor-tiptap-extension-text-style-CVsjuWJ4.js → vendor-tiptap-extension-text-style-BiLsi9B8.js} +35 -30
  65. package/dist/{vendor-tiptap-extension-underline-Rwkvga0F.js → vendor-tiptap-extension-underline-Bz_pv2E0.js} +1 -1
  66. package/dist/{vendor-tiptap-extensions-F9A02hii.js → vendor-tiptap-extensions-Crh_nh74.js} +3 -3
  67. package/dist/{vendor-tiptap-markdown-BSUpswXr.js → vendor-tiptap-markdown-bGlioql8.js} +1 -1
  68. package/dist/vendor-tiptap-pm-Ug0Z93EG.js +1 -0
  69. package/dist/{vendor-tiptap-starter-kit-BUgq7S1_.js → vendor-tiptap-starter-kit-B3fY431M.js} +17 -17
  70. package/dist/{vendor-tiptap-vue-3-UHrHfZLG.js → vendor-tiptap-vue-3-CqWn44-V.js} +22 -22
  71. package/dist/{vendor-vue3-application-insights-CE6eo4vj.js → vendor-vue3-application-insights-BKiiWnf2.js} +2 -2
  72. package/dist/{vendor-vueuse-components-B0zqjNRW.js → vendor-vueuse-components-sgKpNzof.js} +1 -1
  73. package/dist/{vendor-vueuse-core-CYgwn-B2.js → vendor-vueuse-core-D0cN7FqY.js} +10 -10
  74. package/dist/{vendor-vueuse-shared-B_uDJJ6V.js → vendor-vueuse-shared-Pt0UEStA.js} +19 -19
  75. package/package.json +4 -4
  76. package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +2 -2
  77. package/shared/components/sign-in/useExternalProvider.ts +11 -1
  78. package/shared/modules/dynamic/helpers/nodeBuilder.ts +11 -3
  79. package/ui/components/organisms/vc-app/vc-app.vue +2 -2
  80. package/dist/vendor-microsoft-applicationinsights-analytics-js-BNSkz9ia.js +0 -1105
  81. package/dist/vendor-microsoft-applicationinsights-core-js-CX4NA2hM.js +0 -4127
  82. package/dist/vendor-tiptap-extension-code-block-B0U7g1XA.js +0 -192
  83. package/dist/vendor-tiptap-extension-placeholder-BVZ1jBA2.js +0 -1
  84. package/dist/vendor-tiptap-extension-table-cell-lniviH1T.js +0 -1
  85. package/dist/vendor-tiptap-extension-table-header-lniviH1T.js +0 -1
  86. package/dist/vendor-tiptap-extension-table-row-lniviH1T.js +0 -1
  87. package/dist/vendor-tiptap-pm-BUxx7nt1.js +0 -1
@@ -1,6 +1,6 @@
1
- import { N as g, r as E, s as $, m as T, u as k, E as O } from "./vendor-tiptap-core-rgc3Sj5Y.js";
1
+ import { N as g, r as E, s as $, m as T, u as O, E as k } from "./vendor-tiptap-core-B000Ay3n.js";
2
2
  import { T as z } from "./vendor-prosemirror-state-DUZYoLys.js";
3
- import { c as P, t as V, C as L, f as B, g as R, s as D, m as x, a as A, b as j, d as W, e as K, h as I, i as _, j as F, k as G, l as q, n as J } from "./vendor-prosemirror-tables-CezTPhzU.js";
3
+ import { c as P, t as D, C as L, f as I, g as H, s as V, m as R, a as A, b as B, d as W, e as _, h as j, i as K, j as F, k as q, l as G, n as J } from "./vendor-prosemirror-tables-MDKm8BUy.js";
4
4
  var Q = g.create({
5
5
  name: "tableCell",
6
6
  addOptions() {
@@ -20,8 +20,16 @@ var Q = g.create({
20
20
  colwidth: {
21
21
  default: null,
22
22
  parseHTML: (e) => {
23
- const t = e.getAttribute("colwidth");
24
- return t ? t.split(",").map((l) => parseInt(l, 10)) : null;
23
+ var t, r;
24
+ const l = e.getAttribute("colwidth"), i = l ? l.split(",").map((o) => parseInt(o, 10)) : null;
25
+ if (!i) {
26
+ const o = (t = e.closest("table")) == null ? void 0 : t.querySelectorAll("colgroup > col"), s = Array.from(((r = e.parentElement) == null ? void 0 : r.children) || []).indexOf(e);
27
+ if (s && s > -1 && o && o[s]) {
28
+ const a = o[s].getAttribute("width");
29
+ return a ? [parseInt(a, 10)] : null;
30
+ }
31
+ }
32
+ return i;
25
33
  }
26
34
  }
27
35
  };
@@ -83,105 +91,106 @@ var Q = g.create({
83
91
  return ["tr", T(this.options.HTMLAttributes, e), 0];
84
92
  }
85
93
  });
86
- function H(e, t) {
94
+ function x(e, t) {
87
95
  return t ? ["width", `${Math.max(t, e)}px`] : ["min-width", `${e}px`];
88
96
  }
89
- function S(e, t, o, l, i, n) {
90
- var d;
91
- let s = 0, u = !0, r = t.firstChild;
97
+ function v(e, t, r, l, i, o) {
98
+ var s;
99
+ let a = 0, u = !0, n = t.firstChild;
92
100
  const h = e.firstChild;
93
101
  if (h !== null)
94
- for (let a = 0, f = 0; a < h.childCount; a += 1) {
95
- const { colspan: w, colwidth: m } = h.child(a).attrs;
102
+ for (let d = 0, f = 0; d < h.childCount; d += 1) {
103
+ const { colspan: w, colwidth: C } = h.child(d).attrs;
96
104
  for (let p = 0; p < w; p += 1, f += 1) {
97
- const c = i === f ? n : m && m[p], y = c ? `${c}px` : "";
98
- if (s += c || l, c || (u = !1), r) {
99
- if (r.style.width !== y) {
100
- const [b, M] = H(l, c);
101
- r.style.setProperty(b, M);
105
+ const c = i === f ? o : C && C[p], y = c ? `${c}px` : "";
106
+ if (a += c || l, c || (u = !1), n) {
107
+ if (n.style.width !== y) {
108
+ const [b, M] = x(l, c);
109
+ n.style.setProperty(b, M);
102
110
  }
103
- r = r.nextSibling;
111
+ n = n.nextSibling;
104
112
  } else {
105
- const b = document.createElement("col"), [M, N] = H(l, c);
113
+ const b = document.createElement("col"), [M, N] = x(l, c);
106
114
  b.style.setProperty(M, N), t.appendChild(b);
107
115
  }
108
116
  }
109
117
  }
110
- for (; r; ) {
111
- const a = r.nextSibling;
112
- (d = r.parentNode) == null || d.removeChild(r), r = a;
118
+ for (; n; ) {
119
+ const d = n.nextSibling;
120
+ (s = n.parentNode) == null || s.removeChild(n), n = d;
113
121
  }
114
- u ? (o.style.width = `${s}px`, o.style.minWidth = "") : (o.style.width = "", o.style.minWidth = `${s}px`);
122
+ u ? (r.style.width = `${a}px`, r.style.minWidth = "") : (r.style.width = "", r.style.minWidth = `${a}px`);
115
123
  }
116
124
  var Y = class {
117
125
  constructor(e, t) {
118
- this.node = e, this.cellMinWidth = t, this.dom = document.createElement("div"), this.dom.className = "tableWrapper", this.table = this.dom.appendChild(document.createElement("table")), this.colgroup = this.table.appendChild(document.createElement("colgroup")), S(e, this.colgroup, this.table, t), this.contentDOM = this.table.appendChild(document.createElement("tbody"));
126
+ this.node = e, this.cellMinWidth = t, this.dom = document.createElement("div"), this.dom.className = "tableWrapper", this.table = this.dom.appendChild(document.createElement("table")), this.colgroup = this.table.appendChild(document.createElement("colgroup")), v(e, this.colgroup, this.table, t), this.contentDOM = this.table.appendChild(document.createElement("tbody"));
119
127
  }
120
128
  update(e) {
121
- return e.type !== this.node.type ? !1 : (this.node = e, S(e, this.colgroup, this.table, this.cellMinWidth), !0);
129
+ return e.type !== this.node.type ? !1 : (this.node = e, v(e, this.colgroup, this.table, this.cellMinWidth), !0);
122
130
  }
123
131
  ignoreMutation(e) {
124
- return e.type === "attributes" && (e.target === this.table || this.colgroup.contains(e.target));
132
+ const t = e.target, r = this.dom.contains(t), l = this.contentDOM.contains(t);
133
+ return !!(r && !l && (e.type === "attributes" || e.type === "childList" || e.type === "characterData"));
125
134
  }
126
135
  };
127
- function Z(e, t, o, l) {
128
- let i = 0, n = !0;
129
- const d = [], s = e.firstChild;
130
- if (!s)
136
+ function Z(e, t, r, l) {
137
+ let i = 0, o = !0;
138
+ const s = [], a = e.firstChild;
139
+ if (!a)
131
140
  return {};
132
- for (let a = 0, f = 0; a < s.childCount; a += 1) {
133
- const { colspan: w, colwidth: m } = s.child(a).attrs;
141
+ for (let d = 0, f = 0; d < a.childCount; d += 1) {
142
+ const { colspan: w, colwidth: C } = a.child(d).attrs;
134
143
  for (let p = 0; p < w; p += 1, f += 1) {
135
- const c = o === f ? l : m && m[p];
136
- i += c || t, c || (n = !1);
137
- const [y, b] = H(t, c);
138
- d.push(["col", { style: `${y}: ${b}` }]);
144
+ const c = r === f ? l : C && C[p];
145
+ i += c || t, c || (o = !1);
146
+ const [y, b] = x(t, c);
147
+ s.push(["col", { style: `${y}: ${b}` }]);
139
148
  }
140
149
  }
141
- const u = n ? `${i}px` : "", r = n ? "" : `${i}px`;
142
- return { colgroup: ["colgroup", {}, ...d], tableWidth: u, tableMinWidth: r };
150
+ const u = o ? `${i}px` : "", n = o ? "" : `${i}px`;
151
+ return { colgroup: ["colgroup", {}, ...s], tableWidth: u, tableMinWidth: n };
143
152
  }
144
- function v(e, t) {
153
+ function S(e, t) {
145
154
  return e.createAndFill();
146
155
  }
147
156
  function ee(e) {
148
157
  if (e.cached.tableNodeTypes)
149
158
  return e.cached.tableNodeTypes;
150
159
  const t = {};
151
- return Object.keys(e.nodes).forEach((o) => {
152
- const l = e.nodes[o];
160
+ return Object.keys(e.nodes).forEach((r) => {
161
+ const l = e.nodes[r];
153
162
  l.spec.tableRole && (t[l.spec.tableRole] = l);
154
163
  }), e.cached.tableNodeTypes = t, t;
155
164
  }
156
- function te(e, t, o, l, i) {
157
- const n = ee(e), d = [], s = [];
158
- for (let r = 0; r < o; r += 1) {
159
- const h = v(n.cell);
160
- if (h && s.push(h), l) {
161
- const a = v(n.header_cell);
162
- a && d.push(a);
165
+ function te(e, t, r, l, i) {
166
+ const o = ee(e), s = [], a = [];
167
+ for (let n = 0; n < r; n += 1) {
168
+ const h = S(o.cell);
169
+ if (h && a.push(h), l) {
170
+ const d = S(o.header_cell);
171
+ d && s.push(d);
163
172
  }
164
173
  }
165
174
  const u = [];
166
- for (let r = 0; r < t; r += 1)
167
- u.push(n.row.createChecked(null, l && r === 0 ? d : s));
168
- return n.table.createChecked(null, u);
175
+ for (let n = 0; n < t; n += 1)
176
+ u.push(o.row.createChecked(null, l && n === 0 ? s : a));
177
+ return o.table.createChecked(null, u);
169
178
  }
170
179
  function le(e) {
171
180
  return e instanceof L;
172
181
  }
173
- var C = ({ editor: e }) => {
182
+ var m = ({ editor: e }) => {
174
183
  const { selection: t } = e.state;
175
184
  if (!le(t))
176
185
  return !1;
177
- let o = 0;
178
- const l = k(t.ranges[0].$from, (n) => n.type.name === "table");
179
- return l?.node.descendants((n) => {
180
- if (n.type.name === "table")
186
+ let r = 0;
187
+ const l = O(t.ranges[0].$from, (o) => o.type.name === "table");
188
+ return l?.node.descendants((o) => {
189
+ if (o.type.name === "table")
181
190
  return !1;
182
- ["tableCell", "tableHeader"].includes(n.type.name) && (o += 1);
183
- }), o === t.ranges.length ? (e.commands.deleteTable(), !0) : !1;
184
- }, oe = g.create({
191
+ ["tableCell", "tableHeader"].includes(o.type.name) && (r += 1);
192
+ }), r === t.ranges.length ? (e.commands.deleteTable(), !0) : !1;
193
+ }, re = g.create({
185
194
  name: "table",
186
195
  // @ts-ignore
187
196
  addOptions() {
@@ -204,45 +213,45 @@ var C = ({ editor: e }) => {
204
213
  return [{ tag: "table" }];
205
214
  },
206
215
  renderHTML({ node: e, HTMLAttributes: t }) {
207
- const { colgroup: o, tableWidth: l, tableMinWidth: i } = Z(e, this.options.cellMinWidth);
216
+ const { colgroup: r, tableWidth: l, tableMinWidth: i } = Z(e, this.options.cellMinWidth);
208
217
  return [
209
218
  "table",
210
219
  T(this.options.HTMLAttributes, t, {
211
220
  style: l ? `width: ${l}` : `min-width: ${i}`
212
221
  }),
213
- o,
222
+ r,
214
223
  ["tbody", 0]
215
224
  ];
216
225
  },
217
226
  addCommands() {
218
227
  return {
219
- insertTable: ({ rows: e = 3, cols: t = 3, withHeaderRow: o = !0 } = {}) => ({ tr: l, dispatch: i, editor: n }) => {
220
- const d = te(n.schema, e, t, o);
228
+ insertTable: ({ rows: e = 3, cols: t = 3, withHeaderRow: r = !0 } = {}) => ({ tr: l, dispatch: i, editor: o }) => {
229
+ const s = te(o.schema, e, t, r);
221
230
  if (i) {
222
- const s = l.selection.from + 1;
223
- l.replaceSelectionWith(d).scrollIntoView().setSelection(z.near(l.doc.resolve(s)));
231
+ const a = l.selection.from + 1;
232
+ l.replaceSelectionWith(s).scrollIntoView().setSelection(z.near(l.doc.resolve(a)));
224
233
  }
225
234
  return !0;
226
235
  },
227
236
  addColumnBefore: () => ({ state: e, dispatch: t }) => J(e, t),
228
- addColumnAfter: () => ({ state: e, dispatch: t }) => q(e, t),
229
- deleteColumn: () => ({ state: e, dispatch: t }) => G(e, t),
237
+ addColumnAfter: () => ({ state: e, dispatch: t }) => G(e, t),
238
+ deleteColumn: () => ({ state: e, dispatch: t }) => q(e, t),
230
239
  addRowBefore: () => ({ state: e, dispatch: t }) => F(e, t),
231
- addRowAfter: () => ({ state: e, dispatch: t }) => _(e, t),
232
- deleteRow: () => ({ state: e, dispatch: t }) => I(e, t),
233
- deleteTable: () => ({ state: e, dispatch: t }) => K(e, t),
234
- mergeCells: () => ({ state: e, dispatch: t }) => x(e, t),
240
+ addRowAfter: () => ({ state: e, dispatch: t }) => K(e, t),
241
+ deleteRow: () => ({ state: e, dispatch: t }) => j(e, t),
242
+ deleteTable: () => ({ state: e, dispatch: t }) => _(e, t),
243
+ mergeCells: () => ({ state: e, dispatch: t }) => R(e, t),
235
244
  splitCell: () => ({ state: e, dispatch: t }) => A(e, t),
236
245
  toggleHeaderColumn: () => ({ state: e, dispatch: t }) => W("column")(e, t),
237
246
  toggleHeaderRow: () => ({ state: e, dispatch: t }) => W("row")(e, t),
238
- toggleHeaderCell: () => ({ state: e, dispatch: t }) => j(e, t),
239
- mergeOrSplit: () => ({ state: e, dispatch: t }) => x(e, t) ? !0 : A(e, t),
240
- setCellAttribute: (e, t) => ({ state: o, dispatch: l }) => D(e, t)(o, l),
241
- goToNextCell: () => ({ state: e, dispatch: t }) => R(1)(e, t),
242
- goToPreviousCell: () => ({ state: e, dispatch: t }) => R(-1)(e, t),
243
- fixTables: () => ({ state: e, dispatch: t }) => (t && B(e), !0),
244
- setCellSelection: (e) => ({ tr: t, dispatch: o }) => {
245
- if (o) {
247
+ toggleHeaderCell: () => ({ state: e, dispatch: t }) => B(e, t),
248
+ mergeOrSplit: () => ({ state: e, dispatch: t }) => R(e, t) ? !0 : A(e, t),
249
+ setCellAttribute: (e, t) => ({ state: r, dispatch: l }) => V(e, t)(r, l),
250
+ goToNextCell: () => ({ state: e, dispatch: t }) => H(1)(e, t),
251
+ goToPreviousCell: () => ({ state: e, dispatch: t }) => H(-1)(e, t),
252
+ fixTables: () => ({ state: e, dispatch: t }) => (t && I(e), !0),
253
+ setCellSelection: (e) => ({ tr: t, dispatch: r }) => {
254
+ if (r) {
246
255
  const l = L.create(t.doc, e.anchorCell, e.headCell);
247
256
  t.setSelection(l);
248
257
  }
@@ -254,10 +263,10 @@ var C = ({ editor: e }) => {
254
263
  return {
255
264
  Tab: () => this.editor.commands.goToNextCell() ? !0 : this.editor.can().addRowAfter() ? this.editor.chain().addRowAfter().goToNextCell().run() : !1,
256
265
  "Shift-Tab": () => this.editor.commands.goToPreviousCell(),
257
- Backspace: C,
258
- "Mod-Backspace": C,
259
- Delete: C,
260
- "Mod-Delete": C
266
+ Backspace: m,
267
+ "Mod-Backspace": m,
268
+ Delete: m,
269
+ "Mod-Delete": m
261
270
  };
262
271
  },
263
272
  addProseMirrorPlugins() {
@@ -271,7 +280,7 @@ var C = ({ editor: e }) => {
271
280
  lastColumnResizable: this.options.lastColumnResizable
272
281
  })
273
282
  ] : [],
274
- V({
283
+ D({
275
284
  allowTableNodeSelection: this.options.allowTableNodeSelection
276
285
  })
277
286
  ];
@@ -287,15 +296,15 @@ var C = ({ editor: e }) => {
287
296
  };
288
297
  }
289
298
  });
290
- O.create({
299
+ k.create({
291
300
  name: "tableKit",
292
301
  addExtensions() {
293
302
  const e = [];
294
- return this.options.table !== !1 && e.push(oe.configure(this.options.table)), this.options.tableCell !== !1 && e.push(Q.configure(this.options.tableCell)), this.options.tableHeader !== !1 && e.push(U.configure(this.options.tableHeader)), this.options.tableRow !== !1 && e.push(X.configure(this.options.tableRow)), e;
303
+ return this.options.table !== !1 && e.push(re.configure(this.options.table)), this.options.tableCell !== !1 && e.push(Q.configure(this.options.tableCell)), this.options.tableHeader !== !1 && e.push(U.configure(this.options.tableHeader)), this.options.tableRow !== !1 && e.push(X.configure(this.options.tableRow)), e;
295
304
  }
296
305
  });
297
306
  export {
298
- oe as T,
307
+ re as T,
299
308
  X as a,
300
309
  U as b,
301
310
  Q as c
@@ -0,0 +1 @@
1
+ import "./vendor-tiptap-extension-table-DYCEjlpp.js";
@@ -0,0 +1 @@
1
+ import "./vendor-tiptap-extension-table-DYCEjlpp.js";
@@ -0,0 +1 @@
1
+ import "./vendor-tiptap-extension-table-DYCEjlpp.js";
@@ -1,4 +1,4 @@
1
- import { N as e } from "./vendor-tiptap-core-rgc3Sj5Y.js";
1
+ import { N as e } from "./vendor-tiptap-core-B000Ay3n.js";
2
2
  var t = e.create({
3
3
  name: "text",
4
4
  group: "inline"
@@ -1,14 +1,19 @@
1
- import { M as u, m as y, E as l } from "./vendor-tiptap-core-rgc3Sj5Y.js";
2
- var p = (t) => {
1
+ import { M as y, m as p, E as l } from "./vendor-tiptap-core-B000Ay3n.js";
2
+ var d = 20, u = (t, e = 0) => {
3
+ const r = [];
4
+ return !t.children.length || e > d || Array.from(t.children).forEach((o) => {
5
+ o.tagName === "SPAN" ? r.push(o) : o.children.length && r.push(...u(o, e + 1));
6
+ }), r;
7
+ }, f = (t) => {
3
8
  if (!t.children.length)
4
9
  return;
5
- const e = t.querySelectorAll("span");
6
- e && e.forEach((n) => {
7
- var o, r;
8
- const s = n.getAttribute("style"), i = (r = (o = n.parentElement) == null ? void 0 : o.closest("span")) == null ? void 0 : r.getAttribute("style");
9
- n.setAttribute("style", `${i};${s}`);
10
+ const e = u(t);
11
+ e && e.forEach((r) => {
12
+ var o, n;
13
+ const s = r.getAttribute("style"), i = (n = (o = r.parentElement) == null ? void 0 : o.closest("span")) == null ? void 0 : n.getAttribute("style");
14
+ r.setAttribute("style", `${i};${s}`);
10
15
  });
11
- }, d = u.create({
16
+ }, c = y.create({
12
17
  name: "textStyle",
13
18
  priority: 101,
14
19
  addOptions() {
@@ -22,27 +27,27 @@ var p = (t) => {
22
27
  {
23
28
  tag: "span",
24
29
  consuming: !1,
25
- getAttrs: (t) => t.hasAttribute("style") ? (this.options.mergeNestedSpanStyles && p(t), {}) : !1
30
+ getAttrs: (t) => t.hasAttribute("style") ? (this.options.mergeNestedSpanStyles && f(t), {}) : !1
26
31
  }
27
32
  ];
28
33
  },
29
34
  renderHTML({ HTMLAttributes: t }) {
30
- return ["span", y(this.options.HTMLAttributes, t), 0];
35
+ return ["span", p(this.options.HTMLAttributes, t), 0];
31
36
  },
32
37
  addCommands() {
33
38
  return {
34
39
  toggleTextStyle: (t) => ({ commands: e }) => e.toggleMark(this.name, t),
35
40
  removeEmptyTextStyle: () => ({ tr: t }) => {
36
41
  const { selection: e } = t;
37
- return t.doc.nodesBetween(e.from, e.to, (n, o) => {
38
- if (n.isTextblock)
42
+ return t.doc.nodesBetween(e.from, e.to, (r, o) => {
43
+ if (r.isTextblock)
39
44
  return !0;
40
- n.marks.filter((r) => r.type === this.type).some((r) => Object.values(r.attrs).some((s) => !!s)) || t.removeMark(o, o + n.nodeSize, this.type);
45
+ r.marks.filter((n) => n.type === this.type).some((n) => Object.values(n.attrs).some((s) => !!s)) || t.removeMark(o, o + r.nodeSize, this.type);
41
46
  }), !0;
42
47
  }
43
48
  };
44
49
  }
45
- }), c = l.create({
50
+ }), m = l.create({
46
51
  name: "backgroundColor",
47
52
  addOptions() {
48
53
  return {
@@ -58,11 +63,11 @@ var p = (t) => {
58
63
  default: null,
59
64
  parseHTML: (t) => {
60
65
  var e;
61
- const n = t.getAttribute("style");
62
- if (n) {
63
- const o = n.split(";").map((r) => r.trim()).filter(Boolean);
64
- for (let r = o.length - 1; r >= 0; r -= 1) {
65
- const s = o[r].split(":");
66
+ const r = t.getAttribute("style");
67
+ if (r) {
68
+ const o = r.split(";").map((n) => n.trim()).filter(Boolean);
69
+ for (let n = o.length - 1; n >= 0; n -= 1) {
70
+ const s = o[n].split(":");
66
71
  if (s.length >= 2) {
67
72
  const i = s[0].trim().toLowerCase(), a = s.slice(1).join(":").trim();
68
73
  if (i === "background-color")
@@ -86,7 +91,7 @@ var p = (t) => {
86
91
  unsetBackgroundColor: () => ({ chain: t }) => t().setMark("textStyle", { backgroundColor: null }).removeEmptyTextStyle().run()
87
92
  };
88
93
  }
89
- }), f = l.create({
94
+ }), g = l.create({
90
95
  name: "color",
91
96
  addOptions() {
92
97
  return {
@@ -102,11 +107,11 @@ var p = (t) => {
102
107
  default: null,
103
108
  parseHTML: (t) => {
104
109
  var e;
105
- const n = t.getAttribute("style");
106
- if (n) {
107
- const o = n.split(";").map((r) => r.trim()).filter(Boolean);
108
- for (let r = o.length - 1; r >= 0; r -= 1) {
109
- const s = o[r].split(":");
110
+ const r = t.getAttribute("style");
111
+ if (r) {
112
+ const o = r.split(";").map((n) => n.trim()).filter(Boolean);
113
+ for (let n = o.length - 1; n >= 0; n -= 1) {
114
+ const s = o[n].split(":");
110
115
  if (s.length >= 2) {
111
116
  const i = s[0].trim().toLowerCase(), a = s.slice(1).join(":").trim();
112
117
  if (i === "color")
@@ -130,7 +135,7 @@ var p = (t) => {
130
135
  unsetColor: () => ({ chain: t }) => t().setMark("textStyle", { color: null }).removeEmptyTextStyle().run()
131
136
  };
132
137
  }
133
- }), m = l.create({
138
+ }), h = l.create({
134
139
  name: "fontFamily",
135
140
  addOptions() {
136
141
  return {
@@ -159,7 +164,7 @@ var p = (t) => {
159
164
  unsetFontFamily: () => ({ chain: t }) => t().setMark("textStyle", { fontFamily: null }).removeEmptyTextStyle().run()
160
165
  };
161
166
  }
162
- }), g = l.create({
167
+ }), S = l.create({
163
168
  name: "fontSize",
164
169
  addOptions() {
165
170
  return {
@@ -188,7 +193,7 @@ var p = (t) => {
188
193
  unsetFontSize: () => ({ chain: t }) => t().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run()
189
194
  };
190
195
  }
191
- }), h = l.create({
196
+ }), b = l.create({
192
197
  name: "lineHeight",
193
198
  addOptions() {
194
199
  return {
@@ -222,9 +227,9 @@ l.create({
222
227
  name: "textStyleKit",
223
228
  addExtensions() {
224
229
  const t = [];
225
- return this.options.backgroundColor !== !1 && t.push(c.configure(this.options.backgroundColor)), this.options.color !== !1 && t.push(f.configure(this.options.color)), this.options.fontFamily !== !1 && t.push(m.configure(this.options.fontFamily)), this.options.fontSize !== !1 && t.push(g.configure(this.options.fontSize)), this.options.lineHeight !== !1 && t.push(h.configure(this.options.lineHeight)), this.options.textStyle !== !1 && t.push(d.configure(this.options.textStyle)), t;
230
+ return this.options.backgroundColor !== !1 && t.push(m.configure(this.options.backgroundColor)), this.options.color !== !1 && t.push(g.configure(this.options.color)), this.options.fontFamily !== !1 && t.push(h.configure(this.options.fontFamily)), this.options.fontSize !== !1 && t.push(S.configure(this.options.fontSize)), this.options.lineHeight !== !1 && t.push(b.configure(this.options.lineHeight)), this.options.textStyle !== !1 && t.push(c.configure(this.options.textStyle)), t;
226
231
  }
227
232
  });
228
233
  export {
229
- d as T
234
+ c as T
230
235
  };
@@ -1,4 +1,4 @@
1
- import { M as t, m as r } from "./vendor-tiptap-core-rgc3Sj5Y.js";
1
+ import { M as t, m as r } from "./vendor-tiptap-core-B000Ay3n.js";
2
2
  var s = t.create({
3
3
  name: "underline",
4
4
  addOptions() {
@@ -1,8 +1,8 @@
1
- import { E as u, v as y, r as w, s as P, i as S } from "./vendor-tiptap-core-rgc3Sj5Y.js";
1
+ import { E as u, v as y, r as w, s as P, i as S } from "./vendor-tiptap-core-B000Ay3n.js";
2
2
  import { P as h, a as p } from "./vendor-prosemirror-state-DUZYoLys.js";
3
3
  import { d as v } from "./vendor-prosemirror-dropcursor-CqLA3EZY.js";
4
- import { a as g, D as m } from "./vendor-prosemirror-view-CzsD5m3e.js";
5
- import { g as z } from "./vendor-prosemirror-gapcursor-3PaVPyUV.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
6
  import { h as E, r as N, u as O } from "./vendor-prosemirror-history-DzP74u0n.js";
7
7
  u.create({
8
8
  name: "characterCount",
@@ -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-rgc3Sj5Y.js";
1
+ import { E as b, x as B, N as a, M as m, y as z } from "./vendor-tiptap-core-B000Ay3n.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";
@@ -0,0 +1 @@
1
+ import "./vendor-prosemirror-tables-MDKm8BUy.js";
@@ -1,20 +1,20 @@
1
- import { E as e } from "./vendor-tiptap-core-rgc3Sj5Y.js";
2
- import { B as n } from "./vendor-tiptap-extension-blockquote-DgzMeNpc.js";
3
- import { B as p } from "./vendor-tiptap-extension-bold-DZbX5Qiw.js";
4
- import { C as a } from "./vendor-tiptap-extension-code-BcakHaXe.js";
5
- import { C as f } from "./vendor-tiptap-extension-code-block-B0U7g1XA.js";
6
- import { D as h } from "./vendor-tiptap-extension-document-BBhadLNS.js";
7
- import { H as u } from "./vendor-tiptap-extension-hard-break-eyl10A9U.js";
8
- import { H as l } from "./vendor-tiptap-extension-heading-BmX_Abvh.js";
9
- import { H as c } from "./vendor-tiptap-extension-horizontal-rule-DyYIWV6W.js";
10
- import { I as d } from "./vendor-tiptap-extension-italic-B2YDHBEe.js";
11
- import { L as m } from "./vendor-tiptap-extension-link-Bw8_3Rr4.js";
12
- import { B as g, L as k, a as B, O as L } from "./vendor-tiptap-extension-list-qHzpj6eq.js";
13
- import { P as b } from "./vendor-tiptap-extension-paragraph-BnCRfXCL.js";
14
- import { S as x } from "./vendor-tiptap-extension-strike-Naksm43m.js";
15
- import { T as v } from "./vendor-tiptap-extension-text-CixjyWfN.js";
16
- import { U as H } from "./vendor-tiptap-extension-underline-Rwkvga0F.js";
17
- import { D as R, G as I, U as K, T as C } from "./vendor-tiptap-extensions-F9A02hii.js";
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";
18
18
  var J = e.create({
19
19
  name: "starterKit",
20
20
  addExtensions() {
@@ -1,6 +1,6 @@
1
- import { z as c } from "./vendor-tiptap-core-rgc3Sj5Y.js";
2
- import { defineComponent as a, shallowRef as p, onMounted as v, onBeforeUnmount as u, 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
- function l(t) {
1
+ import { z as c } from "./vendor-tiptap-core-B000Ay3n.js";
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
+ function u(t) {
4
4
  return C((e, r) => ({
5
5
  get() {
6
6
  return e(), t;
@@ -16,7 +16,7 @@ function l(t) {
16
16
  }
17
17
  var x = class extends c {
18
18
  constructor(t = {}) {
19
- return super(t), this.contentComponent = null, this.appContext = null, this.reactiveState = l(this.view.state), this.reactiveExtensionStorage = l(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
19
+ return super(t), this.contentComponent = null, this.appContext = null, this.reactiveState = u(this.view.state), this.reactiveExtensionStorage = u(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
20
20
  this.reactiveState.value = e, this.reactiveExtensionStorage.value = this.extensionStorage;
21
21
  }), w(this);
22
22
  }
@@ -40,7 +40,7 @@ var x = class extends c {
40
40
  const e = super.unregisterPlugin(t);
41
41
  return this.reactiveState && e && (this.reactiveState.value = e), e;
42
42
  }
43
- }, _ = a({
43
+ }, _ = o({
44
44
  name: "EditorContent",
45
45
  props: {
46
46
  editor: {
@@ -53,21 +53,21 @@ var x = class extends c {
53
53
  return g(() => {
54
54
  const n = t.editor;
55
55
  n && n.options.element && e.value && m(() => {
56
- var o;
57
- if (!e.value || !((o = n.options.element) != null && o.firstChild))
56
+ var i;
57
+ if (!e.value || !((i = n.view.dom) != null && i.firstChild))
58
58
  return;
59
- const i = S(e.value);
60
- e.value.append(...n.options.element.childNodes), n.contentComponent = r.ctx._, r && (n.appContext = {
59
+ const a = S(e.value);
60
+ e.value.append(n.view.dom), n.contentComponent = r.ctx._, r && (n.appContext = {
61
61
  ...r.appContext,
62
62
  // Vue internally uses prototype chain to forward/shadow injects across the entire component chain
63
63
  // so don't use object spread operator or 'Object.assign' and just set `provides` as is on editor's appContext
64
64
  // @ts-expect-error forward instance's 'provides' into appContext
65
65
  provides: r.provides
66
66
  }), n.setOptions({
67
- element: i
67
+ element: a
68
68
  }), n.createNodeViews();
69
69
  });
70
- }), u(() => {
70
+ }), l(() => {
71
71
  const n = t.editor;
72
72
  n && (n.contentComponent = null, n.appContext = null);
73
73
  }), { rootEl: e };
@@ -80,7 +80,7 @@ var x = class extends c {
80
80
  });
81
81
  }
82
82
  });
83
- a({
83
+ o({
84
84
  name: "NodeViewContent",
85
85
  props: {
86
86
  as: {
@@ -97,7 +97,7 @@ a({
97
97
  });
98
98
  }
99
99
  });
100
- a({
100
+ o({
101
101
  name: "NodeViewWrapper",
102
102
  props: {
103
103
  as: {
@@ -124,17 +124,17 @@ a({
124
124
  );
125
125
  }
126
126
  });
127
- var N = (t = {}) => {
128
- const e = p();
129
- return v(() => {
127
+ var b = (t = {}) => {
128
+ const e = v();
129
+ return p(() => {
130
130
  e.value = new x(t);
131
- }), u(() => {
132
- var r, n, o;
133
- const i = (r = e.value) == null ? void 0 : r.options.element, d = i?.cloneNode(!0);
134
- (n = i?.parentNode) == null || n.replaceChild(d, i), (o = e.value) == null || o.destroy();
131
+ }), l(() => {
132
+ var r, n, i;
133
+ const a = (r = e.value) == null ? void 0 : r.view.dom, d = a?.cloneNode(!0);
134
+ (n = a?.parentNode) == null || n.replaceChild(d, a), (i = e.value) == null || i.destroy();
135
135
  }), e;
136
136
  };
137
- a({
137
+ o({
138
138
  name: "MarkViewContent",
139
139
  props: {
140
140
  as: {
@@ -153,5 +153,5 @@ a({
153
153
  });
154
154
  export {
155
155
  _ as E,
156
- N as u
156
+ b as u
157
157
  };
@@ -1,6 +1,6 @@
1
1
  import { inject as l } from "vue";
2
- import { A as f } from "./vendor-microsoft-applicationinsights-web-DtOQojwf.js";
3
- import { t as u } from "./vendor-microsoft-applicationinsights-core-js-CX4NA2hM.js";
2
+ import { A as f } from "./vendor-microsoft-applicationinsights-web-9yeJ0EZv.js";
3
+ import { u } from "./vendor-microsoft-applicationinsights-core-js-DWRvqBek.js";
4
4
  var g = Symbol("appInsights"), o = "[ApplicationInsights Plugin]";
5
5
  function p(e) {
6
6
  var n, t;