@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.
- package/CHANGELOG.md +1401 -2770
- package/core/api/platform.ts +9883 -9883
- package/core/composables/useNotifications/index.ts +32 -1
- package/core/composables/useSettings/index.ts +8 -3
- package/core/plugins/signalR/index.ts +3 -3
- package/core/providers/auth-provider-utils.ts +26 -0
- package/core/providers/example-custom-auth-provider.ts +3 -2
- package/core/providers/platform-auth-provider.ts +5 -3
- package/core/types/auth-provider.ts +2 -6
- 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/providers/auth-provider-utils.d.ts +17 -0
- package/dist/core/providers/auth-provider-utils.d.ts.map +1 -0
- package/dist/core/providers/example-custom-auth-provider.d.ts +2 -2
- package/dist/core/providers/example-custom-auth-provider.d.ts.map +1 -1
- package/dist/core/providers/platform-auth-provider.d.ts +3 -3
- package/dist/core/providers/platform-auth-provider.d.ts.map +1 -1
- package/dist/core/types/auth-provider.d.ts +2 -2
- package/dist/core/types/auth-provider.d.ts.map +1 -1
- package/dist/framework.js +10440 -10407
- package/dist/index.d.ts +1 -0
- package/dist/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/{vendor-core-js-azBmvlGv.js → vendor-core-js-DDuR6YMQ.js} +49 -49
- package/dist/vendor-microsoft-applicationinsights-analytics-js-C1Yxuzwg.js +1207 -0
- package/dist/{vendor-microsoft-applicationinsights-cfgsync-js-Dp8OU6ZE.js → vendor-microsoft-applicationinsights-cfgsync-js-DArHD4Dn.js} +20 -20
- package/dist/{vendor-microsoft-applicationinsights-channel-js-Bc73N-5y.js → vendor-microsoft-applicationinsights-channel-js-Dbs0XRes.js} +767 -754
- package/dist/{vendor-microsoft-applicationinsights-common-DcnOqpgL.js → vendor-microsoft-applicationinsights-common-OjU3Zs6r.js} +191 -191
- package/dist/vendor-microsoft-applicationinsights-core-js-DWRvqBek.js +4276 -0
- package/dist/{vendor-microsoft-applicationinsights-dependencies-js-C_DhEOae.js → vendor-microsoft-applicationinsights-dependencies-js-BxTNw-Sk.js} +422 -414
- package/dist/{vendor-microsoft-applicationinsights-properties-js-COczDd7b.js → vendor-microsoft-applicationinsights-properties-js-Gfhpu-At.js} +117 -117
- package/dist/{vendor-microsoft-applicationinsights-web-DtOQojwf.js → vendor-microsoft-applicationinsights-web-9yeJ0EZv.js} +59 -59
- package/dist/{vendor-nevware21-ts-async-DFUnZ_sN.js → vendor-nevware21-ts-async-CdMc_sGt.js} +4 -3
- package/dist/{vendor-prosemirror-gapcursor-3PaVPyUV.js → vendor-prosemirror-gapcursor-K-Pj0iVP.js} +1 -1
- package/dist/{vendor-prosemirror-tables-CezTPhzU.js → vendor-prosemirror-tables-MDKm8BUy.js} +1 -1
- package/dist/{vendor-prosemirror-view-CzsD5m3e.js → vendor-prosemirror-view-CesDChJC.js} +512 -511
- package/dist/{vendor-semver-B87_S22g.js → vendor-semver-Dar8oU3V.js} +38 -36
- package/dist/{vendor-tiptap-core-rgc3Sj5Y.js → vendor-tiptap-core-B000Ay3n.js} +4 -2
- package/dist/{vendor-tiptap-extension-blockquote-DgzMeNpc.js → vendor-tiptap-extension-blockquote-CHW3QVCH.js} +1 -1
- package/dist/{vendor-tiptap-extension-bold-DZbX5Qiw.js → vendor-tiptap-extension-bold-DsNXR7l5.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-BcakHaXe.js → vendor-tiptap-extension-code-BXPfZcyf.js} +1 -1
- package/dist/vendor-tiptap-extension-code-block-DYMOFxJc.js +197 -0
- package/dist/{vendor-tiptap-extension-document-BBhadLNS.js → vendor-tiptap-extension-document-Y-jQl_8Q.js} +1 -1
- package/dist/{vendor-tiptap-extension-hard-break-eyl10A9U.js → vendor-tiptap-extension-hard-break-DfxtqTYW.js} +1 -1
- package/dist/{vendor-tiptap-extension-heading-BmX_Abvh.js → vendor-tiptap-extension-heading-BqN9fEEm.js} +1 -1
- package/dist/{vendor-tiptap-extension-horizontal-rule-DyYIWV6W.js → vendor-tiptap-extension-horizontal-rule-Dl1wmLAo.js} +16 -16
- package/dist/{vendor-tiptap-extension-image-C06iDyEi.js → vendor-tiptap-extension-image-Cv28QlbA.js} +1 -1
- package/dist/{vendor-tiptap-extension-italic-B2YDHBEe.js → vendor-tiptap-extension-italic-B3WETSCz.js} +1 -1
- package/dist/{vendor-tiptap-extension-link-Bw8_3Rr4.js → vendor-tiptap-extension-link-CTWD6W1U.js} +1 -1
- package/dist/{vendor-tiptap-extension-list-qHzpj6eq.js → vendor-tiptap-extension-list-Da9Xfgwa.js} +1 -1
- package/dist/{vendor-tiptap-extension-paragraph-BnCRfXCL.js → vendor-tiptap-extension-paragraph-CSda9k3a.js} +1 -1
- package/dist/vendor-tiptap-extension-placeholder-MI_ltlp7.js +1 -0
- package/dist/{vendor-tiptap-extension-strike-Naksm43m.js → vendor-tiptap-extension-strike-Di5VtsLj.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-Cguez3tu.js → vendor-tiptap-extension-table-DYCEjlpp.js} +94 -85
- package/dist/vendor-tiptap-extension-table-cell-D5DL87Xa.js +1 -0
- package/dist/vendor-tiptap-extension-table-header-D5DL87Xa.js +1 -0
- package/dist/vendor-tiptap-extension-table-row-D5DL87Xa.js +1 -0
- package/dist/{vendor-tiptap-extension-text-CixjyWfN.js → vendor-tiptap-extension-text-8vtzSN60.js} +1 -1
- package/dist/{vendor-tiptap-extension-text-style-CVsjuWJ4.js → vendor-tiptap-extension-text-style-BiLsi9B8.js} +35 -30
- package/dist/{vendor-tiptap-extension-underline-Rwkvga0F.js → vendor-tiptap-extension-underline-Bz_pv2E0.js} +1 -1
- package/dist/{vendor-tiptap-extensions-F9A02hii.js → vendor-tiptap-extensions-Crh_nh74.js} +3 -3
- package/dist/{vendor-tiptap-markdown-BSUpswXr.js → vendor-tiptap-markdown-bGlioql8.js} +1 -1
- package/dist/vendor-tiptap-pm-Ug0Z93EG.js +1 -0
- package/dist/{vendor-tiptap-starter-kit-BUgq7S1_.js → vendor-tiptap-starter-kit-B3fY431M.js} +17 -17
- package/dist/{vendor-tiptap-vue-3-UHrHfZLG.js → vendor-tiptap-vue-3-CqWn44-V.js} +22 -22
- package/dist/{vendor-vue3-application-insights-CE6eo4vj.js → vendor-vue3-application-insights-BKiiWnf2.js} +2 -2
- package/dist/{vendor-vueuse-components-B0zqjNRW.js → vendor-vueuse-components-sgKpNzof.js} +1 -1
- package/dist/{vendor-vueuse-core-CYgwn-B2.js → vendor-vueuse-core-D0cN7FqY.js} +10 -10
- package/dist/{vendor-vueuse-shared-B_uDJJ6V.js → vendor-vueuse-shared-Pt0UEStA.js} +19 -19
- package/package.json +4 -4
- package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +2 -2
- package/shared/components/sign-in/useExternalProvider.ts +11 -1
- package/shared/modules/dynamic/helpers/nodeBuilder.ts +11 -3
- package/ui/components/organisms/vc-app/vc-app.vue +2 -2
- package/dist/vendor-microsoft-applicationinsights-analytics-js-BNSkz9ia.js +0 -1105
- package/dist/vendor-microsoft-applicationinsights-core-js-CX4NA2hM.js +0 -4127
- package/dist/vendor-tiptap-extension-code-block-B0U7g1XA.js +0 -192
- package/dist/vendor-tiptap-extension-placeholder-BVZ1jBA2.js +0 -1
- package/dist/vendor-tiptap-extension-table-cell-lniviH1T.js +0 -1
- package/dist/vendor-tiptap-extension-table-header-lniviH1T.js +0 -1
- package/dist/vendor-tiptap-extension-table-row-lniviH1T.js +0 -1
- package/dist/vendor-tiptap-pm-BUxx7nt1.js +0 -1
package/dist/{vendor-tiptap-extension-table-Cguez3tu.js → vendor-tiptap-extension-table-DYCEjlpp.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { N as g, r as E, s as $, m as T, u as
|
|
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
|
|
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
|
-
|
|
24
|
-
|
|
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
|
|
94
|
+
function x(e, t) {
|
|
87
95
|
return t ? ["width", `${Math.max(t, e)}px`] : ["min-width", `${e}px`];
|
|
88
96
|
}
|
|
89
|
-
function
|
|
90
|
-
var
|
|
91
|
-
let
|
|
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
|
|
95
|
-
const { colspan: w, colwidth:
|
|
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 ?
|
|
98
|
-
if (
|
|
99
|
-
if (
|
|
100
|
-
const [b, M] =
|
|
101
|
-
|
|
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
|
-
|
|
111
|
+
n = n.nextSibling;
|
|
104
112
|
} else {
|
|
105
|
-
const b = document.createElement("col"), [M, N] =
|
|
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 (;
|
|
111
|
-
const
|
|
112
|
-
(
|
|
118
|
+
for (; n; ) {
|
|
119
|
+
const d = n.nextSibling;
|
|
120
|
+
(s = n.parentNode) == null || s.removeChild(n), n = d;
|
|
113
121
|
}
|
|
114
|
-
u ? (
|
|
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")),
|
|
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,
|
|
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
|
-
|
|
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,
|
|
128
|
-
let i = 0,
|
|
129
|
-
const
|
|
130
|
-
if (!
|
|
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
|
|
133
|
-
const { colspan: w, colwidth:
|
|
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 =
|
|
136
|
-
i += c || t, c || (
|
|
137
|
-
const [y, b] =
|
|
138
|
-
|
|
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 =
|
|
142
|
-
return { colgroup: ["colgroup", {}, ...
|
|
150
|
+
const u = o ? `${i}px` : "", n = o ? "" : `${i}px`;
|
|
151
|
+
return { colgroup: ["colgroup", {}, ...s], tableWidth: u, tableMinWidth: n };
|
|
143
152
|
}
|
|
144
|
-
function
|
|
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((
|
|
152
|
-
const l = e.nodes[
|
|
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,
|
|
157
|
-
const
|
|
158
|
-
for (let
|
|
159
|
-
const h =
|
|
160
|
-
if (h &&
|
|
161
|
-
const
|
|
162
|
-
|
|
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
|
|
167
|
-
u.push(
|
|
168
|
-
return
|
|
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
|
|
182
|
+
var m = ({ editor: e }) => {
|
|
174
183
|
const { selection: t } = e.state;
|
|
175
184
|
if (!le(t))
|
|
176
185
|
return !1;
|
|
177
|
-
let
|
|
178
|
-
const l =
|
|
179
|
-
return l?.node.descendants((
|
|
180
|
-
if (
|
|
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(
|
|
183
|
-
}),
|
|
184
|
-
},
|
|
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:
|
|
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
|
-
|
|
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:
|
|
220
|
-
const
|
|
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
|
|
223
|
-
l.replaceSelectionWith(
|
|
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 }) =>
|
|
229
|
-
deleteColumn: () => ({ state: e, dispatch: 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 }) =>
|
|
232
|
-
deleteRow: () => ({ state: e, dispatch: t }) =>
|
|
233
|
-
deleteTable: () => ({ state: e, dispatch: t }) =>
|
|
234
|
-
mergeCells: () => ({ state: e, dispatch: 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 }) =>
|
|
239
|
-
mergeOrSplit: () => ({ state: e, dispatch: t }) =>
|
|
240
|
-
setCellAttribute: (e, t) => ({ state:
|
|
241
|
-
goToNextCell: () => ({ state: e, dispatch: t }) =>
|
|
242
|
-
goToPreviousCell: () => ({ state: e, dispatch: t }) =>
|
|
243
|
-
fixTables: () => ({ state: e, dispatch: t }) => (t &&
|
|
244
|
-
setCellSelection: (e) => ({ tr: t, dispatch:
|
|
245
|
-
if (
|
|
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:
|
|
258
|
-
"Mod-Backspace":
|
|
259
|
-
Delete:
|
|
260
|
-
"Mod-Delete":
|
|
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
|
-
|
|
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
|
-
|
|
299
|
+
k.create({
|
|
291
300
|
name: "tableKit",
|
|
292
301
|
addExtensions() {
|
|
293
302
|
const e = [];
|
|
294
|
-
return this.options.table !== !1 && e.push(
|
|
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
|
-
|
|
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,14 +1,19 @@
|
|
|
1
|
-
import { M as
|
|
2
|
-
var
|
|
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
|
|
6
|
-
e && e.forEach((
|
|
7
|
-
var o,
|
|
8
|
-
const s =
|
|
9
|
-
|
|
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
|
-
},
|
|
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 &&
|
|
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",
|
|
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, (
|
|
38
|
-
if (
|
|
42
|
+
return t.doc.nodesBetween(e.from, e.to, (r, o) => {
|
|
43
|
+
if (r.isTextblock)
|
|
39
44
|
return !0;
|
|
40
|
-
|
|
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
|
-
}),
|
|
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
|
|
62
|
-
if (
|
|
63
|
-
const o =
|
|
64
|
-
for (let
|
|
65
|
-
const s = o[
|
|
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
|
-
}),
|
|
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
|
|
106
|
-
if (
|
|
107
|
-
const o =
|
|
108
|
-
for (let
|
|
109
|
-
const s = o[
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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(
|
|
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
|
-
|
|
234
|
+
c as T
|
|
230
235
|
};
|
|
@@ -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-
|
|
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-
|
|
5
|
-
import { g as z } from "./vendor-prosemirror-gapcursor-
|
|
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-
|
|
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";
|
package/dist/{vendor-tiptap-starter-kit-BUgq7S1_.js → vendor-tiptap-starter-kit-B3fY431M.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-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-
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
function
|
|
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 =
|
|
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
|
-
}, _ =
|
|
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
|
|
57
|
-
if (!e.value || !((
|
|
56
|
+
var i;
|
|
57
|
+
if (!e.value || !((i = n.view.dom) != null && i.firstChild))
|
|
58
58
|
return;
|
|
59
|
-
const
|
|
60
|
-
e.value.append(
|
|
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:
|
|
67
|
+
element: a
|
|
68
68
|
}), n.createNodeViews();
|
|
69
69
|
});
|
|
70
|
-
}),
|
|
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
|
-
|
|
83
|
+
o({
|
|
84
84
|
name: "NodeViewContent",
|
|
85
85
|
props: {
|
|
86
86
|
as: {
|
|
@@ -97,7 +97,7 @@ a({
|
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
|
-
|
|
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
|
|
128
|
-
const e =
|
|
129
|
-
return
|
|
127
|
+
var b = (t = {}) => {
|
|
128
|
+
const e = v();
|
|
129
|
+
return p(() => {
|
|
130
130
|
e.value = new x(t);
|
|
131
|
-
}),
|
|
132
|
-
var r, n,
|
|
133
|
-
const
|
|
134
|
-
(n =
|
|
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
|
-
|
|
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
|
-
|
|
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-
|
|
3
|
-
import {
|
|
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;
|