@vc-shell/framework 1.1.62 → 1.1.63
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 +4 -0
- package/core/composables/useLanguages/index.ts +16 -73
- package/core/services/index.ts +1 -0
- package/core/services/language-service.ts +88 -0
- package/dist/core/composables/useLanguages/index.d.ts +4 -15
- package/dist/core/composables/useLanguages/index.d.ts.map +1 -1
- package/dist/core/services/index.d.ts +1 -0
- package/dist/core/services/index.d.ts.map +1 -1
- package/dist/core/services/language-service.d.ts +15 -0
- package/dist/core/services/language-service.d.ts.map +1 -0
- package/dist/framework.js +12471 -8949
- package/dist/index.d.ts.map +1 -1
- package/dist/injection-keys.d.ts +2 -1
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/shared/components/language-selector/language-selector.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/vendor-boolbase-A_-Pp38P.js +23 -0
- package/dist/{vendor-cheerio-CleDsuQZ.js → vendor-cheerio-C46iBpCu.js} +10 -10
- package/dist/{vendor-cheerio-select-CVkYl3Z-.js → vendor-cheerio-select-C8emRZsx.js} +5 -5
- package/dist/vendor-core-js-DFA7rceR.js +1206 -0
- package/dist/{vendor-css-select-CtIzVIiG.js → vendor-css-select-DR9bp36p.js} +3 -3
- package/dist/{vendor-dom-serializer-CugO0RdN.js → vendor-dom-serializer-Sk3xHhQk.js} +1 -1
- package/dist/{vendor-domutils-D3Y2YQFR.js → vendor-domutils-BiVCXO8c.js} +2 -2
- package/dist/{vendor-entities-v26HW8wW.js → vendor-entities-CCReaWqU.js} +35 -34
- package/dist/{vendor-floating-ui-core-C9uEvi1M.js → vendor-floating-ui-core-DpX2jufl.js} +10 -10
- package/dist/{vendor-floating-ui-dom-CZkYGmv4.js → vendor-floating-ui-dom-C4AKN5Mo.js} +8 -8
- package/dist/{vendor-floating-ui-utils-Bx3BTd6_.js → vendor-floating-ui-utils-CRaCuFxS.js} +29 -29
- package/dist/{vendor-floating-ui-vue-CLOiVYP7.js → vendor-floating-ui-vue-OwtolkBv.js} +12 -12
- package/dist/{vendor-htmlparser2-CXL_uhMI.js → vendor-htmlparser2-CpQu33io.js} +1 -1
- package/dist/{vendor-iso-639-1-dVGfSUIM.js → vendor-iso-639-1-BJO6WZAt.js} +3 -3
- package/dist/{vendor-markdown-it-4AJoRTAg.js → vendor-markdown-it-RJo-N9ov.js} +1 -1
- package/dist/{vendor-markdown-it-task-lists-Byg1-ms9.js → vendor-markdown-it-task-lists-BxLwscWK.js} +2 -2
- package/dist/{vendor-microsoft-applicationinsights-analytics-js-DA-ctcAL.js → vendor-microsoft-applicationinsights-analytics-js-CauId95v.js} +5 -5
- package/dist/{vendor-microsoft-applicationinsights-cfgsync-js-COfRj-2q.js → vendor-microsoft-applicationinsights-cfgsync-js-DGfB75It.js} +3 -3
- package/dist/{vendor-microsoft-applicationinsights-channel-js-MTPYhH-I.js → vendor-microsoft-applicationinsights-channel-js-B4PYlGv8.js} +11 -11
- package/dist/{vendor-microsoft-applicationinsights-common-CDVnJ6MR.js → vendor-microsoft-applicationinsights-common-Bj6sQeoz.js} +7 -7
- package/dist/{vendor-microsoft-applicationinsights-core-js-D7Aicf8S.js → vendor-microsoft-applicationinsights-core-js-Cga21Mpw.js} +13 -13
- package/dist/{vendor-microsoft-applicationinsights-dependencies-js-CvQWWraU.js → vendor-microsoft-applicationinsights-dependencies-js-CH87Sln6.js} +68 -68
- package/dist/{vendor-microsoft-applicationinsights-properties-js-C0Iv1cZE.js → vendor-microsoft-applicationinsights-properties-js-CLE2OEt_.js} +5 -5
- package/dist/{vendor-microsoft-applicationinsights-web-BRuQAzjU.js → vendor-microsoft-applicationinsights-web-8IaeIl22.js} +8 -8
- package/dist/{vendor-nevware21-ts-async-FAyg3c9V.js → vendor-nevware21-ts-async-DadHEt7N.js} +3 -3
- package/dist/{vendor-nth-check-BE7AeBMg.js → vendor-nth-check-CS1D-zr5.js} +1 -1
- package/dist/{vendor-parse5-htmlparser2-tree-adapter-CNubfdOP.js → vendor-parse5-htmlparser2-tree-adapter-BWywtwol.js} +9 -9
- package/dist/{vendor-parse5-DqztJOGh.js → vendor-parse5-zq5Hn0y9.js} +3 -1
- package/dist/{vendor-prettier-D8C9GG-0.js → vendor-prettier-DaiSFsWE.js} +1184 -1167
- package/dist/vendor-prosemirror-commands-B8fhFbTo.js +385 -0
- package/dist/{vendor-prosemirror-dropcursor-CwZhBUcZ.js → vendor-prosemirror-dropcursor-CdHQ9kQG.js} +2 -2
- package/dist/{vendor-prosemirror-gapcursor-COcwb4TJ.js → vendor-prosemirror-gapcursor-W-ky5QTm.js} +4 -4
- package/dist/{vendor-prosemirror-history-DmPvdOpr.js → vendor-prosemirror-history-CrtTR5Cd.js} +2 -2
- package/dist/{vendor-prosemirror-keymap-CS1uIBpE.js → vendor-prosemirror-keymap-DWvoDWf6.js} +1 -1
- package/dist/{vendor-prosemirror-markdown-sO1Pn6SW.js → vendor-prosemirror-markdown-CuzWQ2N6.js} +2 -2
- package/dist/{vendor-prosemirror-model-DwojkhDQ.js → vendor-prosemirror-model-CVTn1Stc.js} +2 -2
- package/dist/{vendor-prosemirror-schema-list-rrOzMlj0.js → vendor-prosemirror-schema-list-Ds6x_KLX.js} +2 -2
- package/dist/{vendor-prosemirror-state-BN86J-Ko.js → vendor-prosemirror-state-CRUasa1V.js} +2 -2
- package/dist/{vendor-prosemirror-tables-C7XMqyon.js → vendor-prosemirror-tables-DzTfCeHX.js} +5 -5
- package/dist/{vendor-prosemirror-transform-B0c_LAV_.js → vendor-prosemirror-transform-BeDaI3CS.js} +1 -1
- package/dist/{vendor-prosemirror-view-DyWzmy4t.js → vendor-prosemirror-view-BGYdOWiJ.js} +76 -74
- package/dist/{vendor-semver-BoKYtkQw.js → vendor-semver-FuwqpOls.js} +435 -435
- package/dist/vendor-tanstack-vue-virtual-CD9yLWd7.js +1 -0
- package/dist/{vendor-tippy-js-BGdgwGX-.js → vendor-tippy-js-nNhcw_JH.js} +15 -15
- package/dist/{vendor-tiptap-core-BgwY40dr.js → vendor-tiptap-core-dlTW4S11.js} +76 -65
- package/dist/{vendor-tiptap-extension-blockquote-BVW0VVC0.js → vendor-tiptap-extension-blockquote-iAIM-meW.js} +1 -1
- package/dist/{vendor-tiptap-extension-bold-xhi5xxPT.js → vendor-tiptap-extension-bold-bkOLNH6E.js} +1 -1
- package/dist/{vendor-tiptap-extension-bubble-menu-DhWtcCL3.js → vendor-tiptap-extension-bubble-menu-BRWVLpun.js} +6 -6
- package/dist/{vendor-tiptap-extension-bullet-list-Ba21suMY.js → vendor-tiptap-extension-bullet-list-DfU428XB.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-DFTxp7wE.js → vendor-tiptap-extension-code-CgIql8q6.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-block-B2KK5g8S.js → vendor-tiptap-extension-code-block-V26-erQk.js} +2 -2
- package/dist/{vendor-tiptap-extension-document-CW8jybcc.js → vendor-tiptap-extension-document-BYF_BzDD.js} +1 -1
- package/dist/{vendor-tiptap-extension-dropcursor-DdRuETKJ.js → vendor-tiptap-extension-dropcursor-DqjaaFex.js} +2 -2
- package/dist/{vendor-tiptap-extension-floating-menu-Da7fpnr7.js → vendor-tiptap-extension-floating-menu-vptdm_Y0.js} +6 -6
- package/dist/{vendor-tiptap-extension-gapcursor-CafmhWSf.js → vendor-tiptap-extension-gapcursor-DxLBw8V0.js} +2 -2
- package/dist/{vendor-tiptap-extension-hard-break-n9aI6ybJ.js → vendor-tiptap-extension-hard-break-DygHhzqw.js} +1 -1
- package/dist/{vendor-tiptap-extension-heading-xj24usOy.js → vendor-tiptap-extension-heading-C-ArDc3_.js} +1 -1
- package/dist/{vendor-tiptap-extension-history-C2uOLua2.js → vendor-tiptap-extension-history-C41RW3Bv.js} +2 -2
- package/dist/{vendor-tiptap-extension-horizontal-rule--uXIYeaK.js → vendor-tiptap-extension-horizontal-rule-BGMGd9fo.js} +2 -2
- package/dist/{vendor-tiptap-extension-image-BJx5lyoG.js → vendor-tiptap-extension-image-DChcWb4v.js} +1 -1
- package/dist/{vendor-tiptap-extension-italic-DPAViC4y.js → vendor-tiptap-extension-italic-BNJrFvrR.js} +1 -1
- package/dist/{vendor-tiptap-extension-link-aDGmrWTi.js → vendor-tiptap-extension-link-DFN4ENph.js} +2 -2
- package/dist/{vendor-tiptap-extension-list-item-DE9dJ64Q.js → vendor-tiptap-extension-list-item-3qKYhGHe.js} +1 -1
- package/dist/{vendor-tiptap-extension-ordered-list-CcNtDDJm.js → vendor-tiptap-extension-ordered-list-D3QL0eiW.js} +1 -1
- package/dist/{vendor-tiptap-extension-paragraph-DvlrAzIW.js → vendor-tiptap-extension-paragraph-DZfkaJJ-.js} +1 -1
- package/dist/{vendor-tiptap-extension-placeholder-DyW7px66.js → vendor-tiptap-extension-placeholder-CoOAmd0a.js} +7 -7
- package/dist/{vendor-tiptap-extension-strike-DMMLEFkd.js → vendor-tiptap-extension-strike-BlGNozxy.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-BpegTABL.js → vendor-tiptap-extension-table-CZn6Xykb.js} +16 -16
- package/dist/{vendor-tiptap-extension-table-cell-8rHRq4BW.js → vendor-tiptap-extension-table-cell-BQuS-XFD.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-header-DZ1y7iS2.js → vendor-tiptap-extension-table-header-ZrtK7HiQ.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-row-DmkNUw4L.js → vendor-tiptap-extension-table-row-CBrXvqsO.js} +1 -1
- package/dist/{vendor-tiptap-extension-text-Cwas3TQT.js → vendor-tiptap-extension-text-DwA7jrBq.js} +1 -1
- package/dist/{vendor-tiptap-extension-underline-Hz5uJRfR.js → vendor-tiptap-extension-underline-CIVtuRLl.js} +1 -1
- package/dist/{vendor-tiptap-markdown-Dj1XZWg4.js → vendor-tiptap-markdown-CidDIpZ-.js} +12 -11
- package/dist/vendor-tiptap-pm-9TOy65Oe.js +1 -0
- package/dist/{vendor-tiptap-starter-kit-Cxj07T7v.js → vendor-tiptap-starter-kit-BdU6UtqB.js} +19 -19
- package/dist/{vendor-tiptap-vue-3-DF4kzEFI.js → vendor-tiptap-vue-3-CnYccgV4.js} +3 -3
- package/dist/{vendor-truncate-html-Bx1HJzRq.js → vendor-truncate-html-DYC0Lj9o.js} +1 -1
- package/dist/{vendor-vee-validate-rules-DDeNM2Gc.js → vendor-vee-validate-rules-4oWUZPpG.js} +4 -2
- package/dist/{vendor-vue-currency-input-DxWnS-HB.js → vendor-vue-currency-input-BqaYAdhD.js} +88 -86
- package/dist/vendor-vue-demi-CD9yLWd7.js +1 -0
- package/dist/{vendor-vue3-application-insights-dAGGfA_M.js → vendor-vue3-application-insights-C8xbxXXX.js} +2 -2
- package/dist/{vendor-vuepic-vue-datepicker-_JffV5We.js → vendor-vuepic-vue-datepicker-DkHsqyoL.js} +257 -257
- package/dist/vendor-vueuse-components-B0zqjNRW.js +542 -0
- package/dist/{vendor-vueuse-core-cB-c7DzH.js → vendor-vueuse-core-CYgwn-B2.js} +31 -30
- package/dist/{vendor-vueuse-shared-Dg7PMM0z.js → vendor-vueuse-shared-B_uDJJ6V.js} +33 -33
- package/package.json +5 -5
- package/shared/components/language-selector/language-selector.vue +16 -8
- package/dist/vendor-boolbase-Bgn9I6iN.js +0 -21
- package/dist/vendor-core-js-l0sNRNKZ.js +0 -1
- package/dist/vendor-intlify-core-base-FyGSkd6r.js +0 -1130
- package/dist/vendor-intlify-message-compiler-D_vL9-DK.js +0 -945
- package/dist/vendor-intlify-shared-BMbzEQSk.js +0 -144
- package/dist/vendor-prosemirror-commands-C6teL3Xo.js +0 -344
- package/dist/vendor-tanstack-vue-virtual-l0sNRNKZ.js +0 -1
- package/dist/vendor-tiptap-pm-l0sNRNKZ.js +0 -1
- package/dist/vendor-vue-demi-l0sNRNKZ.js +0 -1
- package/dist/vendor-vue-i18n-DC6m6S7G.js +0 -1359
- package/dist/vendor-vueuse-components-DtK_mxpP.js +0 -219
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "vue";
|
|
@@ -103,7 +103,7 @@ function It(e, i) {
|
|
|
103
103
|
var d = l.popperRect, u = l.popperState, h = l.props, v = h.interactiveBorder, y = Ct(u.placement), m = u.modifiersData.offset;
|
|
104
104
|
if (!m)
|
|
105
105
|
return !0;
|
|
106
|
-
var
|
|
106
|
+
var H = y === "bottom" ? m.top.y : 0, F = y === "top" ? m.bottom.y : 0, j = y === "right" ? m.left.x : 0, D = y === "left" ? m.right.x : 0, W = d.top - a + H > v, Z = a - d.bottom - F > v, ee = d.left - r + j > v, $ = r - d.right - D > v;
|
|
107
107
|
return W || Z || ee || $;
|
|
108
108
|
});
|
|
109
109
|
}
|
|
@@ -150,15 +150,15 @@ function V(e) {
|
|
|
150
150
|
var i = e === "destroy" ? "n already-" : " ";
|
|
151
151
|
return [e + "() was called on a" + i + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function He(e) {
|
|
154
154
|
var i = /[ \t]{2,}/g, r = /^[ \t]*/gm;
|
|
155
155
|
return e.replace(i, " ").replace(r, "").trim();
|
|
156
156
|
}
|
|
157
157
|
function Pt(e) {
|
|
158
|
-
return
|
|
158
|
+
return He(`
|
|
159
159
|
%ctippy.js
|
|
160
160
|
|
|
161
|
-
%c` +
|
|
161
|
+
%c` + He(e) + `
|
|
162
162
|
|
|
163
163
|
%c👷 This is a development-only message. It will be removed in production.
|
|
164
164
|
`);
|
|
@@ -191,7 +191,7 @@ function pe(e, i) {
|
|
|
191
191
|
B.add(i), (r = console).error.apply(r, Je(i));
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function Ht(e) {
|
|
195
195
|
var i = !e, r = Object.prototype.toString.call(e) === "[object Object]" && !e.addEventListener;
|
|
196
196
|
pe(i, ["tippy() was passed", "`" + String(e) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), pe(r, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
|
|
197
197
|
}
|
|
@@ -200,7 +200,7 @@ var Qe = {
|
|
|
200
200
|
followCursor: !1,
|
|
201
201
|
inlinePositioning: !1,
|
|
202
202
|
sticky: !1
|
|
203
|
-
},
|
|
203
|
+
}, Ft = {
|
|
204
204
|
allowHTML: !1,
|
|
205
205
|
animation: "fade",
|
|
206
206
|
arrow: !0,
|
|
@@ -258,7 +258,7 @@ var Qe = {
|
|
|
258
258
|
touch: !0,
|
|
259
259
|
trigger: "mouseenter focus",
|
|
260
260
|
triggerTarget: null
|
|
261
|
-
}, Qe,
|
|
261
|
+
}, Qe, Ft), Wt = Object.keys(b), $t = function(i) {
|
|
262
262
|
process.env.NODE_ENV !== "production" && et(i, []);
|
|
263
263
|
var r = Object.keys(i);
|
|
264
264
|
r.forEach(function(a) {
|
|
@@ -295,7 +295,7 @@ function zt(e, i) {
|
|
|
295
295
|
}, {});
|
|
296
296
|
return a;
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function Fe(e, i) {
|
|
299
299
|
var r = Object.assign({}, i, {
|
|
300
300
|
content: Xe(i.content, [e])
|
|
301
301
|
}, i.ignoreAttributes ? {} : zt(e, i.plugins));
|
|
@@ -362,7 +362,7 @@ function tt(e) {
|
|
|
362
362
|
tt.$$tippy = !0;
|
|
363
363
|
var Yt = 1, G = [], ce = [];
|
|
364
364
|
function Kt(e, i) {
|
|
365
|
-
var r =
|
|
365
|
+
var r = Fe(e, Object.assign({}, b, Ze(Re(i)))), a, l, d, u = !1, h = !1, v = !1, y = !1, m, H, F, j = [], D = _e(Ce, r.interactiveDebounce), W, Z = Yt++, ee = null, $ = Lt(r.plugins), nt = {
|
|
366
366
|
// Is the instance currently enabled?
|
|
367
367
|
isEnabled: !0,
|
|
368
368
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -515,7 +515,7 @@ function Kt(e, i) {
|
|
|
515
515
|
}
|
|
516
516
|
if (n === 0)
|
|
517
517
|
return o();
|
|
518
|
-
ue(s, "remove",
|
|
518
|
+
ue(s, "remove", H), ue(s, "add", f), H = f;
|
|
519
519
|
}
|
|
520
520
|
function N(n, o, s) {
|
|
521
521
|
s === void 0 && (s = !1);
|
|
@@ -647,7 +647,7 @@ function Kt(e, i) {
|
|
|
647
647
|
}
|
|
648
648
|
}), C.push.apply(C, o?.modifiers || []), t.popperInstance = bt(x, p, Object.assign({}, o, {
|
|
649
649
|
placement: s,
|
|
650
|
-
onFirstUpdate:
|
|
650
|
+
onFirstUpdate: F,
|
|
651
651
|
modifiers: C
|
|
652
652
|
}));
|
|
653
653
|
}
|
|
@@ -700,7 +700,7 @@ function Kt(e, i) {
|
|
|
700
700
|
function dt(n) {
|
|
701
701
|
if (process.env.NODE_ENV !== "production" && A(t.state.isDestroyed, V("setProps")), !t.state.isDestroyed) {
|
|
702
702
|
T("onBeforeUpdate", [t, n]), Ae();
|
|
703
|
-
var o = t.props, s =
|
|
703
|
+
var o = t.props, s = Fe(e, Object.assign({}, o, Re(n), {
|
|
704
704
|
ignoreAttributes: !0
|
|
705
705
|
}));
|
|
706
706
|
t.props = s, De(), o.interactiveDebounce !== s.interactiveDebounce && (te(), D = _e(Ce, s.interactiveDebounce)), o.triggerTarget && !s.triggerTarget ? I(o.triggerTarget).forEach(function(f) {
|
|
@@ -723,10 +723,10 @@ function Kt(e, i) {
|
|
|
723
723
|
var g = U(), E = g.box, x = g.content;
|
|
724
724
|
se([E, x], 0);
|
|
725
725
|
}
|
|
726
|
-
|
|
726
|
+
F = function() {
|
|
727
727
|
var C;
|
|
728
728
|
if (!(!t.state.isVisible || y)) {
|
|
729
|
-
if (y = !0, p.style.transition = t.props.moveTransition, w() && t.props.animation) {
|
|
729
|
+
if (y = !0, p.offsetHeight, p.style.transition = t.props.moveTransition, w() && t.props.animation) {
|
|
730
730
|
var re = U(), K = re.box, M = re.content;
|
|
731
731
|
se([K, M], c), ke([K, M], "visible");
|
|
732
732
|
}
|
|
@@ -765,7 +765,7 @@ function Kt(e, i) {
|
|
|
765
765
|
function Q(e, i) {
|
|
766
766
|
i === void 0 && (i = {});
|
|
767
767
|
var r = b.plugins.concat(i.plugins || []);
|
|
768
|
-
process.env.NODE_ENV !== "production" && (
|
|
768
|
+
process.env.NODE_ENV !== "production" && (Ht(e), et(i, r)), Ut();
|
|
769
769
|
var a = Object.assign({}, i, {
|
|
770
770
|
plugins: r
|
|
771
771
|
}), l = Mt(e);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as j, N as G, P as $, S as D, E as qt, T as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { a as
|
|
5
|
-
import {
|
|
6
|
-
import { w as oe, s as ie,
|
|
7
|
-
import { w as
|
|
1
|
+
import { a as j, N as G, P as $, S as D, E as qt, T as P, A as Gt } from "./vendor-prosemirror-state-CRUasa1V.js";
|
|
2
|
+
import { E as Jt } from "./vendor-prosemirror-view-BGYdOWiJ.js";
|
|
3
|
+
import { a as Yt } from "./vendor-prosemirror-keymap-DWvoDWf6.js";
|
|
4
|
+
import { D as Qt, F as I, S as Xt, a as Et, b as Zt, d as et } from "./vendor-prosemirror-model-CVTn1Stc.js";
|
|
5
|
+
import { f as te, a as lt, T as ee, c as W, j as xt, l as ne, R as re, b as se } from "./vendor-prosemirror-transform-BeDaI3CS.js";
|
|
6
|
+
import { w as oe, s as gt, a as ie, b as ae, c as ce, d as le, e as de, n as ue, l as fe, f as pe, j as he, g as me, h as ge, i as ye, k as be, m as ke, o as ve, p as we, q as Me } from "./vendor-prosemirror-commands-B8fhFbTo.js";
|
|
7
|
+
import { w as Se, s as Ee, l as xe } from "./vendor-prosemirror-schema-list-Ds6x_KLX.js";
|
|
8
8
|
function J(n) {
|
|
9
9
|
const { state: t, transaction: e } = n;
|
|
10
10
|
let { selection: r } = e, { doc: s } = e, { storedMarks: o } = e;
|
|
@@ -227,10 +227,10 @@ function Tt(n) {
|
|
|
227
227
|
function k(n, t = void 0, ...e) {
|
|
228
228
|
return Tt(n) ? t ? n.bind(t)(...e) : n(...e) : n;
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function Ae(n = {}) {
|
|
231
231
|
return Object.keys(n).length === 0 && n.constructor === Object;
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function Pe(n) {
|
|
234
234
|
return typeof n != "string" ? n : n.match(/^[+-]?(?:\d*\.)?\d+$/) ? Number(n) : n === "true" ? !0 : n === "false" ? !1 : n;
|
|
235
235
|
}
|
|
236
236
|
function yt(n, t) {
|
|
@@ -241,7 +241,7 @@ function yt(n, t) {
|
|
|
241
241
|
if (r === !1)
|
|
242
242
|
return !1;
|
|
243
243
|
const s = t.reduce((o, i) => {
|
|
244
|
-
const c = i.attribute.parseHTML ? i.attribute.parseHTML(e) :
|
|
244
|
+
const c = i.attribute.parseHTML ? i.attribute.parseHTML(e) : Pe(e.getAttribute(i.name));
|
|
245
245
|
return c == null ? o : {
|
|
246
246
|
...o,
|
|
247
247
|
[i.name]: c
|
|
@@ -254,7 +254,7 @@ function yt(n, t) {
|
|
|
254
254
|
function bt(n) {
|
|
255
255
|
return Object.fromEntries(
|
|
256
256
|
// @ts-ignore
|
|
257
|
-
Object.entries(n).filter(([t, e]) => t === "attrs" &&
|
|
257
|
+
Object.entries(n).filter(([t, e]) => t === "attrs" && Ae(e) ? !1 : e != null)
|
|
258
258
|
);
|
|
259
259
|
}
|
|
260
260
|
function Oe(n, t) {
|
|
@@ -329,7 +329,7 @@ function Oe(n, t) {
|
|
|
329
329
|
HTMLAttributes: ot(g, u)
|
|
330
330
|
})), [l.name, p];
|
|
331
331
|
}));
|
|
332
|
-
return new
|
|
332
|
+
return new Et({
|
|
333
333
|
topNode: i,
|
|
334
334
|
nodes: c,
|
|
335
335
|
marks: a
|
|
@@ -342,7 +342,7 @@ function kt(n, t) {
|
|
|
342
342
|
return Array.isArray(t) ? t.some((e) => (typeof e == "string" ? e : e.name) === n.name) : t;
|
|
343
343
|
}
|
|
344
344
|
function dt(n, t) {
|
|
345
|
-
const e =
|
|
345
|
+
const e = Qt.fromSchema(t).serializeFragment(n), s = document.implementation.createHTMLDocument().createElement("div");
|
|
346
346
|
return s.appendChild(e), s.innerHTML;
|
|
347
347
|
}
|
|
348
348
|
const $e = (n, t = 500) => {
|
|
@@ -675,13 +675,13 @@ function ze(n) {
|
|
|
675
675
|
if (v) {
|
|
676
676
|
let { text: M } = y;
|
|
677
677
|
typeof M == "string" ? M = M : M = dt(I.from(M), p.schema);
|
|
678
|
-
const { from: x } = y, T = x + M.length,
|
|
678
|
+
const { from: x } = y, T = x + M.length, A = Le(M);
|
|
679
679
|
return a({
|
|
680
680
|
rule: u,
|
|
681
681
|
state: p,
|
|
682
682
|
from: x,
|
|
683
683
|
to: { b: T },
|
|
684
|
-
pasteEvt:
|
|
684
|
+
pasteEvt: A
|
|
685
685
|
});
|
|
686
686
|
}
|
|
687
687
|
const w = f.doc.content.findDiffStart(p.doc.content), E = f.doc.content.findDiffEnd(p.doc.content);
|
|
@@ -777,7 +777,7 @@ class R {
|
|
|
777
777
|
const h = Object.fromEntries(Object.entries(l()).map(([g, y]) => [g, () => y({ editor: t })]));
|
|
778
778
|
u = { ...u, ...h };
|
|
779
779
|
}
|
|
780
|
-
const d =
|
|
780
|
+
const d = Yt(u);
|
|
781
781
|
a.push(d);
|
|
782
782
|
const f = b(i, "addInputRules", c);
|
|
783
783
|
kt(i, t.options.enableInputRules) && f && r.push(...f());
|
|
@@ -899,7 +899,7 @@ class C {
|
|
|
899
899
|
})), e;
|
|
900
900
|
}
|
|
901
901
|
}
|
|
902
|
-
function
|
|
902
|
+
function At(n, t, e) {
|
|
903
903
|
const { from: r, to: s } = t, { blockSeparator: o = `
|
|
904
904
|
|
|
905
905
|
`, textSerializers: i = {} } = e || {};
|
|
@@ -919,7 +919,7 @@ function Pt(n, t, e) {
|
|
|
919
919
|
a.isText && (c += (f = a?.text) === null || f === void 0 ? void 0 : f.slice(Math.max(r, l) - l, s - l));
|
|
920
920
|
}), c;
|
|
921
921
|
}
|
|
922
|
-
function
|
|
922
|
+
function Pt(n) {
|
|
923
923
|
return Object.fromEntries(Object.entries(n.nodes).filter(([, t]) => t.spec.toText).map(([t, e]) => [t, e.spec.toText]));
|
|
924
924
|
}
|
|
925
925
|
const Ot = C.create({
|
|
@@ -935,8 +935,8 @@ const Ot = C.create({
|
|
|
935
935
|
key: new j("clipboardTextSerializer"),
|
|
936
936
|
props: {
|
|
937
937
|
clipboardTextSerializer: () => {
|
|
938
|
-
const { editor: n } = this, { state: t, schema: e } = n, { doc: r, selection: s } = t, { ranges: o } = s, i = Math.min(...o.map((u) => u.$from.pos)), c = Math.max(...o.map((u) => u.$to.pos)), a =
|
|
939
|
-
return
|
|
938
|
+
const { editor: n } = this, { state: t, schema: e } = n, { doc: r, selection: s } = t, { ranges: o } = s, i = Math.min(...o.map((u) => u.$from.pos)), c = Math.max(...o.map((u) => u.$to.pos)), a = Pt(e);
|
|
939
|
+
return At(r, { from: i, to: c }, {
|
|
940
940
|
...this.options.blockSeparator !== void 0 ? { blockSeparator: this.options.blockSeparator } : {},
|
|
941
941
|
textSerializers: a
|
|
942
942
|
});
|
|
@@ -957,7 +957,7 @@ const Ot = C.create({
|
|
|
957
957
|
const { doc: l, mapping: u } = t, d = l.resolve(u.map(a)), f = l.resolve(u.map(a + c.nodeSize)), p = d.blockRange(f);
|
|
958
958
|
if (!p)
|
|
959
959
|
return;
|
|
960
|
-
const m =
|
|
960
|
+
const m = ne(p);
|
|
961
961
|
if (c.type.isTextblock) {
|
|
962
962
|
const { defaultType: h } = d.parent.contentMatchAt(d.index());
|
|
963
963
|
t.setNodeMarkup(p.start, h);
|
|
@@ -965,11 +965,11 @@ const Ot = C.create({
|
|
|
965
965
|
(m || m === 0) && t.lift(p, m);
|
|
966
966
|
});
|
|
967
967
|
}), !0;
|
|
968
|
-
}, Ke = (n) => (t) => n(t), Ue = () => ({ state: n, dispatch: t }) =>
|
|
968
|
+
}, Ke = (n) => (t) => n(t), Ue = () => ({ state: n, dispatch: t }) => Me(n, t), qe = (n, t) => ({ editor: e, tr: r }) => {
|
|
969
969
|
const { state: s } = e, o = s.doc.slice(n.from, n.to);
|
|
970
970
|
r.deleteRange(n.from, n.to);
|
|
971
971
|
const i = r.mapping.map(t);
|
|
972
|
-
return r.insert(i, o.content), r.setSelection(new
|
|
972
|
+
return r.insert(i, o.content), r.setSelection(new P(r.doc.resolve(Math.max(i - 1, 0)))), !0;
|
|
973
973
|
}, Ge = () => ({ tr: n, dispatch: t }) => {
|
|
974
974
|
const { selection: e } = n, r = e.$anchor.node();
|
|
975
975
|
if (r.content.size > 0)
|
|
@@ -998,7 +998,7 @@ const Ot = C.create({
|
|
|
998
998
|
}, Ye = (n) => ({ tr: t, dispatch: e }) => {
|
|
999
999
|
const { from: r, to: s } = n;
|
|
1000
1000
|
return e && t.delete(r, s), !0;
|
|
1001
|
-
}, Qe = () => ({ state: n, dispatch: t }) =>
|
|
1001
|
+
}, Qe = () => ({ state: n, dispatch: t }) => we(n, t), Xe = () => ({ commands: n }) => n.keyboardShortcut("Enter"), Ze = () => ({ state: n, dispatch: t }) => ve(n, t);
|
|
1002
1002
|
function q(n, t, e = { strict: !0 }) {
|
|
1003
1003
|
const r = Object.keys(t);
|
|
1004
1004
|
return r.length ? r.every((s) => e.strict ? t[s] === n[s] : ut(t[s]) ? t[s].test(n[s]) : t[s] === n[s]) : !0;
|
|
@@ -1043,7 +1043,7 @@ const tn = (n, t = {}) => ({ tr: e, state: r, dispatch: s }) => {
|
|
|
1043
1043
|
if (s) {
|
|
1044
1044
|
const d = ft(a, o, t);
|
|
1045
1045
|
if (d && d.from <= l && d.to >= u) {
|
|
1046
|
-
const f =
|
|
1046
|
+
const f = P.create(i, d.from, d.to);
|
|
1047
1047
|
e.setSelection(f);
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
@@ -1056,7 +1056,7 @@ const tn = (n, t = {}) => ({ tr: e, state: r, dispatch: s }) => {
|
|
|
1056
1056
|
return !1;
|
|
1057
1057
|
};
|
|
1058
1058
|
function It(n) {
|
|
1059
|
-
return n instanceof
|
|
1059
|
+
return n instanceof P;
|
|
1060
1060
|
}
|
|
1061
1061
|
function O(n = 0, t = 0, e = 0) {
|
|
1062
1062
|
return Math.min(Math.max(n, t), e);
|
|
@@ -1070,7 +1070,7 @@ function Nt(n, t = null) {
|
|
|
1070
1070
|
if (t === "end")
|
|
1071
1071
|
return r;
|
|
1072
1072
|
const s = e.from, o = r.to;
|
|
1073
|
-
return t === "all" ?
|
|
1073
|
+
return t === "all" ? P.create(n, O(0, s, o), O(n.content.size, s, o)) : P.create(n, O(t, s, o), O(t, s, o));
|
|
1074
1074
|
}
|
|
1075
1075
|
function nn() {
|
|
1076
1076
|
return navigator.platform === "Android" || /android/i.test(navigator.userAgent);
|
|
@@ -1114,7 +1114,7 @@ function V(n) {
|
|
|
1114
1114
|
return Bt(e);
|
|
1115
1115
|
}
|
|
1116
1116
|
function F(n, t, e) {
|
|
1117
|
-
if (n instanceof
|
|
1117
|
+
if (n instanceof Zt || n instanceof I)
|
|
1118
1118
|
return n;
|
|
1119
1119
|
e = {
|
|
1120
1120
|
slice: !0,
|
|
@@ -1136,7 +1136,7 @@ function F(n, t, e) {
|
|
|
1136
1136
|
if (s) {
|
|
1137
1137
|
if (e.errorOnInvalidContent) {
|
|
1138
1138
|
let i = !1, c = "";
|
|
1139
|
-
const a = new
|
|
1139
|
+
const a = new Et({
|
|
1140
1140
|
topNode: t.spec.topNode,
|
|
1141
1141
|
marks: t.spec.marks,
|
|
1142
1142
|
// Prosemirror's schemas are executed such that: the last to execute, matches last
|
|
@@ -1167,7 +1167,7 @@ function an(n, t, e) {
|
|
|
1167
1167
|
if (r < t)
|
|
1168
1168
|
return;
|
|
1169
1169
|
const s = n.steps[r];
|
|
1170
|
-
if (!(s instanceof
|
|
1170
|
+
if (!(s instanceof re || s instanceof se))
|
|
1171
1171
|
return;
|
|
1172
1172
|
const o = n.mapping.maps[r];
|
|
1173
1173
|
let i = 0;
|
|
@@ -1238,21 +1238,21 @@ const cn = (n) => !("type" in n), ln = (n, t, e) => ({ tr: r, dispatch: s, edito
|
|
|
1238
1238
|
e.updateSelection && an(r, r.steps.length - 1, -1), e.applyInputRules && r.setMeta("applyInputRules", { from: u, text: h }), e.applyPasteRules && r.setMeta("applyPasteRules", { from: u, text: h });
|
|
1239
1239
|
}
|
|
1240
1240
|
return !0;
|
|
1241
|
-
}, dn = () => ({ state: n, dispatch: t }) =>
|
|
1241
|
+
}, dn = () => ({ state: n, dispatch: t }) => he(n, t), un = () => ({ state: n, dispatch: t }) => be(n, t), fn = () => ({ state: n, dispatch: t }) => ke(n, t), pn = () => ({ state: n, dispatch: t }) => ye(n, t), hn = () => ({ state: n, dispatch: t, tr: e }) => {
|
|
1242
1242
|
try {
|
|
1243
|
-
const r =
|
|
1243
|
+
const r = xt(n.doc, n.selection.$from.pos, -1);
|
|
1244
1244
|
return r == null ? !1 : (e.join(r, 2), t && t(e), !0);
|
|
1245
1245
|
} catch {
|
|
1246
1246
|
return !1;
|
|
1247
1247
|
}
|
|
1248
1248
|
}, mn = () => ({ state: n, dispatch: t, tr: e }) => {
|
|
1249
1249
|
try {
|
|
1250
|
-
const r =
|
|
1250
|
+
const r = xt(n.doc, n.selection.$from.pos, 1);
|
|
1251
1251
|
return r == null ? !1 : (e.join(r, 2), t && t(e), !0);
|
|
1252
1252
|
} catch {
|
|
1253
1253
|
return !1;
|
|
1254
1254
|
}
|
|
1255
|
-
}, gn = () => ({ state: n, dispatch: t }) =>
|
|
1255
|
+
}, gn = () => ({ state: n, dispatch: t }) => ge(n, t), yn = () => ({ state: n, dispatch: t }) => me(n, t);
|
|
1256
1256
|
function jt() {
|
|
1257
1257
|
return typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1;
|
|
1258
1258
|
}
|
|
@@ -1312,11 +1312,11 @@ function L(n, t, e = {}) {
|
|
|
1312
1312
|
}
|
|
1313
1313
|
const vn = (n, t = {}) => ({ state: e, dispatch: r }) => {
|
|
1314
1314
|
const s = S(n, e.schema);
|
|
1315
|
-
return L(e, s, t) ?
|
|
1316
|
-
}, wn = () => ({ state: n, dispatch: t }) =>
|
|
1315
|
+
return L(e, s, t) ? pe(e, r) : !1;
|
|
1316
|
+
}, wn = () => ({ state: n, dispatch: t }) => fe(n, t), Mn = (n) => ({ state: t, dispatch: e }) => {
|
|
1317
1317
|
const r = S(n, t.schema);
|
|
1318
|
-
return
|
|
1319
|
-
}, Sn = () => ({ state: n, dispatch: t }) =>
|
|
1318
|
+
return xe(r)(t, e);
|
|
1319
|
+
}, Sn = () => ({ state: n, dispatch: t }) => ue(n, t);
|
|
1320
1320
|
function tt(n, t) {
|
|
1321
1321
|
return t.nodes[n] ? "node" : t.marks[n] ? "mark" : null;
|
|
1322
1322
|
}
|
|
@@ -1340,7 +1340,7 @@ const En = (n, t) => ({ tr: e, state: r, dispatch: s }) => {
|
|
|
1340
1340
|
n.setSelection(e);
|
|
1341
1341
|
}
|
|
1342
1342
|
return !0;
|
|
1343
|
-
}, Tn = () => ({ state: n, dispatch: t }) =>
|
|
1343
|
+
}, Tn = () => ({ state: n, dispatch: t }) => de(n, t), An = () => ({ state: n, dispatch: t }) => le(n, t), Pn = () => ({ state: n, dispatch: t }) => ce(n, t), On = () => ({ state: n, dispatch: t }) => ae(n, t), $n = () => ({ state: n, dispatch: t }) => ie(n, t);
|
|
1344
1344
|
function it(n, t, e = {}, r = {}) {
|
|
1345
1345
|
return F(n, t, {
|
|
1346
1346
|
slice: !1,
|
|
@@ -1371,7 +1371,7 @@ function Rt(n, t) {
|
|
|
1371
1371
|
return c ? { ...c.attrs } : {};
|
|
1372
1372
|
}
|
|
1373
1373
|
function gr(n, t) {
|
|
1374
|
-
const e = new
|
|
1374
|
+
const e = new ee(n);
|
|
1375
1375
|
return t.forEach((r) => {
|
|
1376
1376
|
r.steps.forEach((s) => {
|
|
1377
1377
|
e.step(s);
|
|
@@ -1415,7 +1415,7 @@ function jn(n, t) {
|
|
|
1415
1415
|
from: 0,
|
|
1416
1416
|
to: n.content.size
|
|
1417
1417
|
};
|
|
1418
|
-
return
|
|
1418
|
+
return At(n, e, t);
|
|
1419
1419
|
}
|
|
1420
1420
|
function Rn(n, t) {
|
|
1421
1421
|
const e = S(t, n.schema), { from: r, to: s } = n.selection, o = [];
|
|
@@ -1629,13 +1629,13 @@ const Hn = (n, t = {}) => ({ tr: e, state: r, dispatch: s }) => {
|
|
|
1629
1629
|
return !0;
|
|
1630
1630
|
}, Un = (n) => ({ tr: t, dispatch: e }) => {
|
|
1631
1631
|
if (e) {
|
|
1632
|
-
const { doc: r } = t, { from: s, to: o } = typeof n == "number" ? { from: n, to: n } : n, i =
|
|
1632
|
+
const { doc: r } = t, { from: s, to: o } = typeof n == "number" ? { from: n, to: n } : n, i = P.atStart(r).from, c = P.atEnd(r).to, a = O(s, i, c), l = O(o, i, c), u = P.create(r, a, l);
|
|
1633
1633
|
t.setSelection(u);
|
|
1634
1634
|
}
|
|
1635
1635
|
return !0;
|
|
1636
1636
|
}, qn = (n) => ({ state: t, dispatch: e }) => {
|
|
1637
1637
|
const r = S(n, t.schema);
|
|
1638
|
-
return
|
|
1638
|
+
return Ee(r)(t, e);
|
|
1639
1639
|
};
|
|
1640
1640
|
function St(n, t) {
|
|
1641
1641
|
const e = n.storedMarks || n.selection.$to.parentOffset && n.selection.$from.marks();
|
|
@@ -1663,7 +1663,7 @@ const Gn = ({ keepMarks: n = !0 } = {}) => ({ tr: t, state: e, dispatch: r, edit
|
|
|
1663
1663
|
attrs: u
|
|
1664
1664
|
}
|
|
1665
1665
|
] : void 0), r) {
|
|
1666
|
-
if (m && (o instanceof
|
|
1666
|
+
if (m && (o instanceof P && t.deleteSelection(), t.split(t.mapping.map(c.pos), 1, p), f && !d && !c.parentOffset && c.parent.type !== f)) {
|
|
1667
1667
|
const h = t.mapping.map(c.before()), g = t.doc.resolve(h);
|
|
1668
1668
|
c.node(-1).canReplaceWith(g.index(), g.index() + 1, f) && t.setNodeMarkup(t.mapping.map(c.before()), f);
|
|
1669
1669
|
}
|
|
@@ -1685,21 +1685,21 @@ const Gn = ({ keepMarks: n = !0 } = {}) => ({ tr: t, state: e, dispatch: r, edit
|
|
|
1685
1685
|
if (s) {
|
|
1686
1686
|
let y = I.empty;
|
|
1687
1687
|
const v = a.index(-1) ? 1 : a.index(-2) ? 2 : 3;
|
|
1688
|
-
for (let
|
|
1689
|
-
y = I.from(a.node(
|
|
1688
|
+
for (let A = a.depth - v; A >= a.depth - 3; A -= 1)
|
|
1689
|
+
y = I.from(a.node(A).copy(y));
|
|
1690
1690
|
const w = a.indexAfter(-1) < a.node(-2).childCount ? 1 : a.indexAfter(-2) < a.node(-3).childCount ? 2 : 3, E = {
|
|
1691
1691
|
...K(f, a.node().type.name, a.node().attrs),
|
|
1692
1692
|
...t
|
|
1693
1693
|
}, M = ((i = c.contentMatch.defaultType) === null || i === void 0 ? void 0 : i.createAndFill(E)) || void 0;
|
|
1694
1694
|
y = y.append(I.from(c.createAndFill(null, M) || void 0));
|
|
1695
1695
|
const x = a.before(a.depth - (v - 1));
|
|
1696
|
-
e.replace(x, a.after(-w), new
|
|
1696
|
+
e.replace(x, a.after(-w), new Xt(y, 4 - v, 0));
|
|
1697
1697
|
let T = -1;
|
|
1698
|
-
e.doc.nodesBetween(x, e.doc.content.size, (
|
|
1698
|
+
e.doc.nodesBetween(x, e.doc.content.size, (A, Ut) => {
|
|
1699
1699
|
if (T > -1)
|
|
1700
1700
|
return !1;
|
|
1701
|
-
|
|
1702
|
-
}), T > -1 && e.setSelection(
|
|
1701
|
+
A.isTextblock && A.content.size === 0 && (T = Ut + 1);
|
|
1702
|
+
}), T > -1 && e.setSelection(P.near(e.doc.resolve(T))), e.scrollIntoView();
|
|
1703
1703
|
}
|
|
1704
1704
|
return !0;
|
|
1705
1705
|
}
|
|
@@ -1755,7 +1755,7 @@ const Gn = ({ keepMarks: n = !0 } = {}) => ({ tr: t, state: e, dispatch: r, edit
|
|
|
1755
1755
|
return a().command(() => (o.setNodeMarkup(M.pos, p), !0)).command(() => rt(o, p)).command(() => st(o, p)).run();
|
|
1756
1756
|
}
|
|
1757
1757
|
return !e || !E || !c ? a().command(() => u().wrapInList(p, r) ? !0 : l.clearNodes()).wrapInList(p, r).command(() => rt(o, p)).command(() => st(o, p)).run() : a().command(() => {
|
|
1758
|
-
const x = u().wrapInList(p, r), T = E.filter((
|
|
1758
|
+
const x = u().wrapInList(p, r), T = E.filter((A) => f.includes(A.type.name));
|
|
1759
1759
|
return o.ensureMarks(T), x ? !0 : l.clearNodes();
|
|
1760
1760
|
}).wrapInList(p, r).command(() => rt(o, p)).command(() => st(o, p)).run();
|
|
1761
1761
|
}, Qn = (n, t = {}, e = {}) => ({ state: r, commands: s }) => {
|
|
@@ -1840,10 +1840,10 @@ const Gn = ({ keepMarks: n = !0 } = {}) => ({ tr: t, state: e, dispatch: r, edit
|
|
|
1840
1840
|
}), !0) : !1;
|
|
1841
1841
|
}, sr = (n, t = {}) => ({ state: e, dispatch: r }) => {
|
|
1842
1842
|
const s = S(n, e.schema);
|
|
1843
|
-
return
|
|
1843
|
+
return oe(s, t)(e, r);
|
|
1844
1844
|
}, or = (n, t = {}) => ({ state: e, dispatch: r }) => {
|
|
1845
1845
|
const s = S(n, e.schema);
|
|
1846
|
-
return
|
|
1846
|
+
return Se(s, t)(e, r);
|
|
1847
1847
|
};
|
|
1848
1848
|
var ir = /* @__PURE__ */ Object.freeze({
|
|
1849
1849
|
__proto__: null,
|
|
@@ -1882,8 +1882,8 @@ var ir = /* @__PURE__ */ Object.freeze({
|
|
|
1882
1882
|
scrollIntoView: xn,
|
|
1883
1883
|
selectAll: Cn,
|
|
1884
1884
|
selectNodeBackward: Tn,
|
|
1885
|
-
selectNodeForward:
|
|
1886
|
-
selectParentNode:
|
|
1885
|
+
selectNodeForward: An,
|
|
1886
|
+
selectParentNode: Pn,
|
|
1887
1887
|
selectTextblockEnd: On,
|
|
1888
1888
|
selectTextblockStart: $n,
|
|
1889
1889
|
setContent: In,
|
|
@@ -2180,8 +2180,19 @@ class B {
|
|
|
2180
2180
|
}
|
|
2181
2181
|
closest(t, e = {}) {
|
|
2182
2182
|
let r = null, s = this.parent;
|
|
2183
|
-
for (; s && !r; )
|
|
2184
|
-
s.node.type.name === t
|
|
2183
|
+
for (; s && !r; ) {
|
|
2184
|
+
if (s.node.type.name === t)
|
|
2185
|
+
if (Object.keys(e).length > 0) {
|
|
2186
|
+
const o = s.node.attrs, i = Object.keys(e);
|
|
2187
|
+
for (let c = 0; c < i.length; c += 1) {
|
|
2188
|
+
const a = i[c];
|
|
2189
|
+
if (o[a] !== e[a])
|
|
2190
|
+
break;
|
|
2191
|
+
}
|
|
2192
|
+
} else
|
|
2193
|
+
r = s;
|
|
2194
|
+
s = s.parent;
|
|
2195
|
+
}
|
|
2185
2196
|
return r;
|
|
2186
2197
|
}
|
|
2187
2198
|
querySelector(t, e = {}) {
|
|
@@ -2465,7 +2476,7 @@ let Mr = class extends Ce {
|
|
|
2465
2476
|
}), e = it(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: !1 });
|
|
2466
2477
|
}
|
|
2467
2478
|
const r = Nt(e, this.options.autofocus);
|
|
2468
|
-
this.view = new
|
|
2479
|
+
this.view = new Jt(this.options.element, {
|
|
2469
2480
|
...this.options.editorProps,
|
|
2470
2481
|
attributes: {
|
|
2471
2482
|
// add `role="textbox"` to the editor element
|
|
@@ -2581,7 +2592,7 @@ let Mr = class extends Ce {
|
|
|
2581
2592
|
return jn(this.state.doc, {
|
|
2582
2593
|
blockSeparator: e,
|
|
2583
2594
|
textSerializers: {
|
|
2584
|
-
...
|
|
2595
|
+
...Pt(this.schema),
|
|
2585
2596
|
...r
|
|
2586
2597
|
}
|
|
2587
2598
|
});
|
|
@@ -2688,7 +2699,7 @@ function Tr(n) {
|
|
|
2688
2699
|
return new X({
|
|
2689
2700
|
find: n.find,
|
|
2690
2701
|
handler: ({ state: t, range: e, match: r, chain: s }) => {
|
|
2691
|
-
const o = k(n.getAttributes, void 0, r) || {}, i = t.tr.delete(e.from, e.to), a = i.doc.resolve(e.from).blockRange(), l = a &&
|
|
2702
|
+
const o = k(n.getAttributes, void 0, r) || {}, i = t.tr.delete(e.from, e.to), a = i.doc.resolve(e.from).blockRange(), l = a && te(a, n.type, o);
|
|
2692
2703
|
if (!l)
|
|
2693
2704
|
return null;
|
|
2694
2705
|
if (i.wrap(a, l), n.keepMarks && n.editor) {
|
|
@@ -2742,7 +2753,7 @@ class ct {
|
|
|
2742
2753
|
})), e;
|
|
2743
2754
|
}
|
|
2744
2755
|
}
|
|
2745
|
-
function
|
|
2756
|
+
function Ar(n) {
|
|
2746
2757
|
return new Re({
|
|
2747
2758
|
find: n.find,
|
|
2748
2759
|
handler: ({ state: t, range: e, match: r, pasteEvent: s }) => {
|
|
@@ -2760,7 +2771,7 @@ function Pr(n) {
|
|
|
2760
2771
|
}
|
|
2761
2772
|
});
|
|
2762
2773
|
}
|
|
2763
|
-
function
|
|
2774
|
+
function Pr(n, t) {
|
|
2764
2775
|
const { selection: e } = n, { $from: r } = e;
|
|
2765
2776
|
if (e instanceof G) {
|
|
2766
2777
|
const o = r.index();
|
|
@@ -2779,14 +2790,14 @@ export {
|
|
|
2779
2790
|
C as E,
|
|
2780
2791
|
U as M,
|
|
2781
2792
|
ct as N,
|
|
2782
|
-
|
|
2793
|
+
Ar as a,
|
|
2783
2794
|
Er as b,
|
|
2784
2795
|
kr as c,
|
|
2785
|
-
|
|
2796
|
+
Pt as d,
|
|
2786
2797
|
k as e,
|
|
2787
2798
|
b as f,
|
|
2788
2799
|
jn as g,
|
|
2789
|
-
|
|
2800
|
+
Pr as h,
|
|
2790
2801
|
It as i,
|
|
2791
2802
|
gr as j,
|
|
2792
2803
|
br as k,
|
package/dist/{vendor-tiptap-extension-bold-xhi5xxPT.js → vendor-tiptap-extension-bold-bkOLNH6E.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as r, a as e, b as s, m as n } from "./vendor-tiptap-core-
|
|
1
|
+
import { M as r, a as e, b as s, m as n } from "./vendor-tiptap-core-dlTW4S11.js";
|
|
2
2
|
const a = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, o = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, d = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, u = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, l = r.create({
|
|
3
3
|
name: "bold",
|
|
4
4
|
addOptions() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as C, c as E, p as T, E as D } from "./vendor-tiptap-core-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { i as C, c as E, p as T, E as D } from "./vendor-tiptap-core-dlTW4S11.js";
|
|
2
|
+
import { P as O, a as M } from "./vendor-prosemirror-state-CRUasa1V.js";
|
|
3
|
+
import { t as B } from "./vendor-tippy-js-nNhcw_JH.js";
|
|
4
4
|
class R {
|
|
5
5
|
constructor({ editor: e, element: i, view: p, tippyOptions: m = {}, updateDelay: f = 250, shouldShow: c }) {
|
|
6
6
|
this.preventHide = !1, this.shouldShow = ({ view: t, state: s, from: o, to: r }) => {
|
|
@@ -62,7 +62,7 @@ class R {
|
|
|
62
62
|
}
|
|
63
63
|
createTooltip() {
|
|
64
64
|
const { element: e } = this.editor.options, i = !!e.parentElement;
|
|
65
|
-
this.element.tabIndex = 0, !(this.tippy || !i) && (this.tippy =
|
|
65
|
+
this.element.tabIndex = 0, !(this.tippy || !i) && (this.tippy = B(e, {
|
|
66
66
|
duration: 0,
|
|
67
67
|
getReferenceClientRect: null,
|
|
68
68
|
content: this.element,
|
|
@@ -95,8 +95,8 @@ class R {
|
|
|
95
95
|
!((e = this.tippy) === null || e === void 0) && e.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (i = this.tippy) === null || i === void 0 || i.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
const _ = (d) => new
|
|
99
|
-
key: typeof d.pluginKey == "string" ? new
|
|
98
|
+
const _ = (d) => new O({
|
|
99
|
+
key: typeof d.pluginKey == "string" ? new M(d.pluginKey) : d.pluginKey,
|
|
100
100
|
view: (e) => new R({ view: e, ...d })
|
|
101
101
|
});
|
|
102
102
|
D.create({
|
package/dist/{vendor-tiptap-extension-code-DFTxp7wE.js → vendor-tiptap-extension-code-CgIql8q6.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as t, a as r, b as s, m as a } from "./vendor-tiptap-core-
|
|
1
|
+
import { M as t, a as r, b as s, m as a } from "./vendor-tiptap-core-dlTW4S11.js";
|
|
2
2
|
const n = /(^|[^`])`([^`]+)`(?!`)/, d = /(^|[^`])`([^`]+)`(?!`)/g, u = t.create({
|
|
3
3
|
name: "code",
|
|
4
4
|
addOptions() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as d, t as c, m as p } from "./vendor-tiptap-core-
|
|
2
|
-
import { P as f, a as g, T as m, S as h } from "./vendor-prosemirror-state-
|
|
1
|
+
import { N as d, t as c, m as p } from "./vendor-tiptap-core-dlTW4S11.js";
|
|
2
|
+
import { P as f, a as g, T as m, S as h } from "./vendor-prosemirror-state-CRUasa1V.js";
|
|
3
3
|
const x = /^```([a-z]+)?[\s\n]$/, y = /^~~~([a-z]+)?[\s\n]$/, b = d.create({
|
|
4
4
|
name: "codeBlock",
|
|
5
5
|
addOptions() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as r } from "./vendor-tiptap-core-
|
|
2
|
-
import { d as o } from "./vendor-prosemirror-dropcursor-
|
|
1
|
+
import { E as r } from "./vendor-tiptap-core-dlTW4S11.js";
|
|
2
|
+
import { d as o } from "./vendor-prosemirror-dropcursor-CdHQ9kQG.js";
|
|
3
3
|
const n = r.create({
|
|
4
4
|
name: "dropCursor",
|
|
5
5
|
addOptions() {
|