@templatical/editor 0.0.6 → 0.1.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/LICENSE +56 -0
- package/README.md +69 -0
- package/dist/{AiChatSidebar-CNhSl_ty.js → AiChatSidebar-DgAjDWO1.js} +68 -68
- package/dist/{AiFeatureMenu-BFVsjUJY.js → AiFeatureMenu-j6oaiRVi.js} +25 -25
- package/dist/{CloudEditor-Bz5Xkxej.js → CloudEditor-yCOkIkZ-.js} +428 -437
- package/dist/{CollaboratorBar-D2Gu5Xj2.js → CollaboratorBar-CWVdp2Y6.js} +23 -23
- package/dist/CommentsSidebar-CSPHhbQH.js +439 -0
- package/dist/CountdownBlock-DK6P_RaQ.js +92 -0
- package/dist/CountdownToolbar-Dv-Sz4ui.js +210 -0
- package/dist/{DesignReferenceSidebar-u2tKSQK0.js → DesignReferenceSidebar-D7zfvux6.js} +58 -58
- package/dist/LoadingTrack-Cdz2SSq9.js +10 -0
- package/dist/ModuleBrowserModal-BLYuCZht.js +205 -0
- package/dist/ModulePreviewCanvas-CHYqP6K3.js +106 -0
- package/dist/NumberWithSuffix-D-5-AZc3.js +424 -0
- package/dist/{ParagraphEditor-CYrzYJO5.js → ParagraphEditor-DivLBNWv.js} +237 -236
- package/dist/{RichTextEditorContent-BeqlWlWB.js → RichTextEditorContent-G1lXgVJR.js} +42 -42
- package/dist/{SaveModuleDialog-Kde6X13X.js → SaveModuleDialog-DGVfiOmE.js} +29 -29
- package/dist/{SnapshotHistory-B3EfIcLW.js → SnapshotHistory-DM__MqSu.js} +38 -38
- package/dist/{TemplateScoringPanel-D2vCRGgx.js → TemplateScoringPanel-CW13Tlol.js} +80 -80
- package/dist/{TestEmailModal-Egk0DFDf.js → TestEmailModal-B8bYqWCY.js} +28 -28
- package/dist/TitleEditor-4Jrp3C4m.js +167 -0
- package/dist/{TplModal-BCruYWks.js → TplModal-BkoIz0oz.js} +14 -14
- package/dist/{_plugin-vue_export-helper-5TQrnOhO.js → _plugin-vue_export-helper-OO6pH1Dh.js} +11 -11
- package/dist/{blockTypeIcons-rW4BUUNC.js → blockTypeIcons-4AS3CvXn.js} +2 -2
- package/dist/cdn/chunks/{AiFeatureMenu-Dcbshcfu.js → AiFeatureMenu-BcHyzTQy.js} +4 -4
- package/dist/cdn/chunks/{AiFeatureMenu-Dcbshcfu.js.map → AiFeatureMenu-BcHyzTQy.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-Bca3RyBW.js → CloudEditor-TaEZq-YW.js} +179 -188
- package/dist/cdn/chunks/CloudEditor-TaEZq-YW.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-sToKJfHi.js → CollaboratorBar-DbC5-3If.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-sToKJfHi.js.map → CollaboratorBar-DbC5-3If.js.map} +1 -1
- package/dist/cdn/chunks/CountdownBlock-CfPmCQ7j.js +93 -0
- package/dist/cdn/chunks/CountdownBlock-CfPmCQ7j.js.map +1 -0
- package/dist/cdn/chunks/CountdownToolbar-CB0EVxwN.js +212 -0
- package/dist/cdn/chunks/CountdownToolbar-CB0EVxwN.js.map +1 -0
- package/dist/cdn/chunks/{ModuleBrowserModal-BNhwXbWw.js → ModuleBrowserModal-Df2fp9dj.js} +7 -7
- package/dist/cdn/chunks/{ModuleBrowserModal-BNhwXbWw.js.map → ModuleBrowserModal-Df2fp9dj.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-DylUylPU.js → ModulePreviewCanvas-Dw1OCpvV.js} +19 -19
- package/dist/cdn/chunks/{ModulePreviewCanvas-DylUylPU.js.map → ModulePreviewCanvas-Dw1OCpvV.js.map} +1 -1
- package/dist/cdn/chunks/NumberWithSuffix-BU6ycXyG.js +425 -0
- package/dist/cdn/chunks/NumberWithSuffix-BU6ycXyG.js.map +1 -0
- package/dist/cdn/chunks/{ParagraphEditor-BBw90y_p.js → ParagraphEditor-BMRNg_BX.js} +37 -37
- package/dist/cdn/chunks/{ParagraphEditor-BBw90y_p.js.map → ParagraphEditor-BMRNg_BX.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DvyIO3nR.js → RichTextEditorContent-BKYY1YMZ.js} +5 -5
- package/dist/cdn/chunks/{RichTextEditorContent-DvyIO3nR.js.map → RichTextEditorContent-BKYY1YMZ.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-DvbSHvhF.js → SaveModuleDialog-D977Tg7t.js} +5 -5
- package/dist/cdn/chunks/{SaveModuleDialog-DvbSHvhF.js.map → SaveModuleDialog-D977Tg7t.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-tS3mgoVr.js → TitleEditor-q9IzNy38.js} +11 -11
- package/dist/cdn/chunks/{TitleEditor-tS3mgoVr.js.map → TitleEditor-q9IzNy38.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-DbnbyEQE.js → blockTypeIcons-L0fRc3qs.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-DbnbyEQE.js.map → blockTypeIcons-L0fRc3qs.js.map} +1 -1
- package/dist/cdn/chunks/{de-CgUR_S5I.js → de-3exf7MYE.js} +1 -1
- package/dist/cdn/chunks/{de-CgUR_S5I.js.map → de-3exf7MYE.js.map} +1 -1
- package/dist/cdn/chunks/{de-D8oDPhBD.js → de-C8LxVUsb.js} +1 -1
- package/dist/cdn/chunks/{de-D8oDPhBD.js.map → de-C8LxVUsb.js.map} +1 -1
- package/dist/cdn/chunks/{dist-BUmN5e4r.js → dist-D5g00M8N.js} +6 -2
- package/dist/cdn/chunks/dist-D5g00M8N.js.map +1 -0
- package/dist/cdn/chunks/{draggable-m78lz0gI.js → draggable-Bcb86AsV.js} +5 -5
- package/dist/cdn/chunks/draggable-Bcb86AsV.js.map +1 -0
- package/dist/cdn/chunks/{emojiData-CNNgvDqx.js → emojiData-DUHzsh4j.js} +1 -1
- package/dist/cdn/chunks/{emojiData-CNNgvDqx.js.map → emojiData-DUHzsh4j.js.map} +1 -1
- package/dist/cdn/chunks/{en-HseRPPeK.js → en-BoEycuqw.js} +1 -1
- package/dist/cdn/chunks/{en-HseRPPeK.js.map → en-BoEycuqw.js.map} +1 -1
- package/dist/cdn/chunks/{en-BBmfBDqY.js → en-KNPUKxYp.js} +1 -1
- package/dist/cdn/chunks/{en-BBmfBDqY.js.map → en-KNPUKxYp.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-ClpY3m0W.js → extensions-BZ1POyiv.js} +11 -11
- package/dist/cdn/chunks/{extensions-ClpY3m0W.js.map → extensions-BZ1POyiv.js.map} +1 -1
- package/dist/cdn/chunks/{features-B5dGxWLi.js → features-Ccqmm6-M.js} +549 -627
- package/dist/cdn/chunks/features-Ccqmm6-M.js.map +1 -0
- package/dist/cdn/chunks/{icons-hflTyPmb.js → icons-x53__2GC.js} +8 -8
- package/dist/cdn/chunks/icons-x53__2GC.js.map +1 -0
- package/dist/cdn/chunks/{liquid.browser-BxyRVCKv.js → liquid.browser-CEMn-ZqL.js} +2 -2
- package/dist/cdn/chunks/liquid.browser-CEMn-ZqL.js.map +1 -0
- package/dist/cdn/chunks/{media-library-Dgy-V-JA.js → media-library-DUoQk-w7.js} +97 -97
- package/dist/cdn/chunks/media-library-DUoQk-w7.js.map +1 -0
- package/dist/cdn/chunks/{pusher-D-m2WSdL.js → pusher-DwSQn6BA.js} +2 -2
- package/dist/cdn/chunks/pusher-DwSQn6BA.js.map +1 -0
- package/dist/cdn/chunks/{src-TDwMmqm0.js → src-DskCIAr8.js} +8 -8
- package/dist/cdn/chunks/{src-TDwMmqm0.js.map → src-DskCIAr8.js.map} +1 -1
- package/dist/cdn/chunks/{styleConstants-DFe3I4Op.js → styleConstants-DP1VOca8.js} +1 -1
- package/dist/cdn/chunks/{styleConstants-DFe3I4Op.js.map → styleConstants-DP1VOca8.js.map} +1 -1
- package/dist/cdn/chunks/{styles-hCOCOR6K.js → styles-BIlpNe52.js} +622 -1238
- package/dist/cdn/chunks/styles-BIlpNe52.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-C28NLMX8.js → tiptap-hPC_BgDO.js} +850 -826
- package/dist/cdn/chunks/tiptap-hPC_BgDO.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +92 -97
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-B5S-C0bz.js → check-Bff5NzCh.js} +1 -1
- package/dist/{chevron-down-CjsV1T0W.js → chevron-down-Bbv4SJwx.js} +1 -1
- package/dist/{circle-alert-CVTmJHKW.js → circle-alert-Dpr8MgkR.js} +1 -1
- package/dist/{clock-CAjdSHBy.js → clock-raVPKfl4.js} +1 -1
- package/dist/{dist-DJrDTuRr.js → dist-BHgEdO-M.js} +1001 -983
- package/dist/dist-BibwE8Y0.js +5 -0
- package/dist/{dist-DPM-DFvh.js → dist-BnlZ_HwX.js} +340 -340
- package/dist/{dist-BTtKPcd2.js → dist-C9yhcxsf.js} +2 -2
- package/dist/{dist-COguaIvm.js → dist-CGffNO8z.js} +2 -2
- package/dist/dist-CfGpCUSx.js +5 -0
- package/dist/{dist-COOFiBFV.js → dist-Chd-H2S3.js} +5 -5
- package/dist/{dist-DfqLGwSF.js → dist-Cq0OFLMj.js} +2 -2
- package/dist/{dist-B4LTlrAn.js → dist-D42og5Sc.js} +191 -185
- package/dist/{dist-CBr-qhie.js → dist-Owxo48fF.js} +2 -2
- package/dist/{dist-Crqkuf-w.js → dist-UZ8UzVZ-.js} +15 -15
- package/dist/dist-n0PkFNGl.js +314 -0
- package/dist/{dist-DHYuVJ_7.js → dist-skgH9dyo.js} +2 -2
- package/dist/{extensions-C6xp_B7K.js → extensions-DQKaICBH.js} +81 -81
- package/dist/{image-up-vZa1Txr-.js → image-up-B1AEiHCh.js} +1 -1
- package/dist/index.d.ts +17 -6
- package/dist/{keys-C0MQRs8d.js → keys-CIw9mUI2.js} +1 -1
- package/dist/{liquid.browser-C02owkex.js → liquid.browser-Bm53dnK1.js} +1 -1
- package/dist/{loader-circle-DilFjHSk.js → loader-circle-BYeKJ3to.js} +1 -1
- package/dist/{message-circle-Dpcnc2oa.js → message-circle-PhNlI7e7.js} +1 -1
- package/dist/{refresh-cw-4r7rkHHX.js → refresh-cw-DhDYRBDd.js} +1 -1
- package/dist/{rolldown-runtime-gEudmnaM.js → rolldown-runtime-BZGGJVDF.js} +2 -5
- package/dist/{scan-line-684IxPQ0.js → scan-line-Bw8bauvt.js} +1 -1
- package/dist/{send-ChDw64yL.js → send-CJPSzbLO.js} +1 -1
- package/dist/{shield-check-9dhLdyST.js → shield-check-DdEvVYMH.js} +1 -1
- package/dist/{sparkles-Co9fkDcv.js → sparkles-DT_27AYs.js} +1 -1
- package/dist/style.css +2 -0
- package/dist/{styleConstants-RV3eYwkD.js → styleConstants-Dqz9z3aa.js} +6 -45
- package/dist/styles-tcwlvlEB.js +2942 -0
- package/dist/templatical-editor.js +114 -119
- package/dist/text-align-start-4Hx15GUf.js +43 -0
- package/dist/{trash-2-CZkMtjeC.js → trash-2-BY-xp5hg.js} +1 -1
- package/dist/{triangle-alert-Dvt51agD.js → triangle-alert-DG72vdb2.js} +1 -1
- package/dist/useEditorCore-DMH2QpUL.js +8946 -0
- package/dist/{useI18n-D6m7ZUgY.js → useI18n-B8CN2iWs.js} +4 -4
- package/dist/{useMergeTag-CSXcnFBc.js → useMergeTag-Dz_Dx2Jz.js} +3 -3
- package/dist/vue.runtime.esm-bundler-DryoQb-v.js +5775 -0
- package/dist/{x-CU2XZOkQ.js → x-D-7GkO6Z.js} +1 -1
- package/package.json +31 -15
- package/dist/CommentsSidebar-CTeEAZTj.js +0 -439
- package/dist/LoadingTrack--aUassFH.js +0 -10
- package/dist/ModuleBrowserModal-DNxODPlX.js +0 -205
- package/dist/ModulePreviewCanvas-DnGe1Y-2.js +0 -106
- package/dist/TitleEditor-DwUpo4gF.js +0 -167
- package/dist/cdn/chunks/CloudEditor-Bca3RyBW.js.map +0 -1
- package/dist/cdn/chunks/dist-BUmN5e4r.js.map +0 -1
- package/dist/cdn/chunks/draggable-m78lz0gI.js.map +0 -1
- package/dist/cdn/chunks/features-B5dGxWLi.js.map +0 -1
- package/dist/cdn/chunks/icons-hflTyPmb.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-BxyRVCKv.js.map +0 -1
- package/dist/cdn/chunks/media-library-Dgy-V-JA.js.map +0 -1
- package/dist/cdn/chunks/pusher-D-m2WSdL.js.map +0 -1
- package/dist/cdn/chunks/styles-hCOCOR6K.js.map +0 -1
- package/dist/cdn/chunks/tiptap-C28NLMX8.js.map +0 -1
- package/dist/dist-Ac4o1O4a.js +0 -314
- package/dist/dist-DEJZ9iAU.js +0 -5
- package/dist/dist-DmVOCJjI.js +0 -5
- package/dist/styles-nvxFh6L6.js +0 -3557
- package/dist/templatical-editor.css +0 -2
- package/dist/templatical-editor.umd.cjs +0 -178
- package/dist/useEditorCore-ColJh1ST.js +0 -5695
- /package/dist/cdn/chunks/{_rolldown_dynamic_import_helper-DMEI4TQ3.js → _rolldown_dynamic_import_helper-BRcA6nWq.js} +0 -0
- /package/dist/{de-Dh8ON-dm.js → de-CN0xu_Tp.js} +0 -0
- /package/dist/{emojiData-Qc8mH_zW.js → emojiData-CwKEDxVf.js} +0 -0
- /package/dist/{en-C7IShRSD.js → en-DXvHkaUF.js} +0 -0
- /package/dist/{formatRelativeTime-D8f6NR7i.js → formatRelativeTime-BSpx5DHC.js} +0 -0
- /package/dist/{readableTextColor-B809bF5J.js → readableTextColor-CYCxm1jQ.js} +0 -0
- /package/dist/{timeouts-CmBrLeZA.js → timeouts-BSGxjuUF.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region ../../node_modules/.
|
|
1
|
+
import { Gt as e, c as t } from "./dist-BHgEdO-M.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@tiptap+extension-subscript@3.22.5_@tiptap+core@3.22.5_@tiptap+pm@3.22.5__@tiptap+pm@3.22.5/node_modules/@tiptap/extension-subscript/dist/index.js
|
|
3
3
|
var n = t.create({
|
|
4
4
|
name: "subscript",
|
|
5
5
|
addOptions() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region ../../node_modules/.
|
|
1
|
+
import { Gt as e, c as t } from "./dist-BHgEdO-M.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@tiptap+extension-superscript@3.22.5_@tiptap+core@3.22.5_@tiptap+pm@3.22.5__@tiptap+pm@3.22.5/node_modules/@tiptap/extension-superscript/dist/index.js
|
|
3
3
|
var n = t.create({
|
|
4
4
|
name: "superscript",
|
|
5
5
|
addOptions() {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FontFamily as e } from "./dist-skgH9dyo.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@tiptap+extension-font-family@3.22.5_@tiptap+extension-text-style@3.22.5_@tiptap+core@3.22.5_@tiptap+pm@3.22.5__/node_modules/@tiptap/extension-font-family/dist/index.js
|
|
3
|
+
var t = e;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { e as FontFamily, t as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region ../../node_modules/.
|
|
1
|
+
import { Gt as e, Ht as t, Ut as n, c as r } from "./dist-BHgEdO-M.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@tiptap+extension-highlight@3.22.5_@tiptap+core@3.22.5_@tiptap+pm@3.22.5_/node_modules/@tiptap/extension-highlight/dist/index.js
|
|
3
3
|
var i = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, a = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, o = r.create({
|
|
4
4
|
name: "highlight",
|
|
5
5
|
addOptions() {
|
|
@@ -21,10 +21,10 @@ var i = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, a = /(?:^|\s)(==(?!\s+==
|
|
|
21
21
|
parseHTML() {
|
|
22
22
|
return [{ tag: "mark" }];
|
|
23
23
|
},
|
|
24
|
-
renderHTML({ HTMLAttributes:
|
|
24
|
+
renderHTML({ HTMLAttributes: t }) {
|
|
25
25
|
return [
|
|
26
26
|
"mark",
|
|
27
|
-
|
|
27
|
+
e(this.options.HTMLAttributes, t),
|
|
28
28
|
0
|
|
29
29
|
];
|
|
30
30
|
},
|
|
@@ -64,7 +64,7 @@ var i = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, a = /(?:^|\s)(==(?!\s+==
|
|
|
64
64
|
})];
|
|
65
65
|
},
|
|
66
66
|
addPasteRules() {
|
|
67
|
-
return [
|
|
67
|
+
return [n({
|
|
68
68
|
find: a,
|
|
69
69
|
type: this.type
|
|
70
70
|
})];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e } from "./dist-
|
|
2
|
-
//#region ../../node_modules/.
|
|
1
|
+
import { i as e } from "./dist-BHgEdO-M.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@tiptap+extension-text-align@3.22.5_@tiptap+core@3.22.5_@tiptap+pm@3.22.5_/node_modules/@tiptap/extension-text-align/dist/index.js
|
|
3
3
|
var t = e.create({
|
|
4
4
|
name: "textAlign",
|
|
5
5
|
addOptions() {
|
|
@@ -1,145 +1,146 @@
|
|
|
1
|
-
import { r as e } from "./rolldown-runtime-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
//#region ../../node_modules/.
|
|
5
|
-
var
|
|
6
|
-
CommandManager: () =>
|
|
1
|
+
import { r as e } from "./rolldown-runtime-BZGGJVDF.js";
|
|
2
|
+
import { A as t, B as n, C as r, J as i, K as a, N as o, O as ee, Q as s, S as c, U as te, Y as l, Z as ne, i as u, k as d, tt as re, w as f } from "./vue.runtime.esm-bundler-DryoQb-v.js";
|
|
3
|
+
import { $ as ie, $t as ae, A as oe, At as se, B as ce, Bt as le, C as ue, Ct as de, D as fe, Dt as p, E as m, Et as h, F as g, Ft as _, G as v, Gt as y, H as b, Ht as x, I as S, It as C, J as w, Jt as T, K as E, Kt as D, L as O, Lt as k, M as A, Mt as j, N as M, Nt as N, O as P, Ot as F, P as I, Pt as L, Q as R, Qt as z, R as B, Rt as V, S as pe, St as me, T as he, Tt as ge, U as _e, Ut as ve, V as ye, Vt as be, W as xe, Wt as Se, X as Ce, Xt as we, Y as Te, Yt as Ee, Z as De, Zt as Oe, _ as ke, _t as H, a as Ae, an as je, at as Me, b as Ne, bt as Pe, c as Fe, cn as Ie, ct as Le, d as Re, dn as ze, dt as Be, en as Ve, et as He, f as U, fn as Ue, ft as We, g as Ge, gt as Ke, h as W, hn as qe, ht as Je, i as Ye, in as Xe, it as Ze, j as Qe, jt as $e, k as et, kt as tt, l as G, ln as nt, lt as rt, m as it, mn as at, mt as ot, n as st, nn as ct, nt as lt, o as ut, on as K, ot as dt, p as ft, pn as pt, pt as mt, q as ht, qt as gt, r as _t, rn as vt, rt as yt, s as bt, sn as xt, st as St, t as Ct, tn as wt, tt as Tt, u as Et, un as Dt, ut as Ot, v as kt, vt as At, w as jt, wt as Mt, x as Nt, xt as Pt, y as q, yt as Ft, z as It, zt as Lt } from "./dist-BHgEdO-M.js";
|
|
4
|
+
//#region ../../node_modules/.pnpm/@tiptap+vue-3@3.22.5_@floating-ui+dom@1.7.6_@tiptap+core@3.22.5_@tiptap+pm@3.22.5__@tip_7097ea972d8e6e4e31801879e2c3d1b4/node_modules/@tiptap/vue-3/dist/index.js
|
|
5
|
+
var Rt = /* @__PURE__ */ e({
|
|
6
|
+
CommandManager: () => Ct,
|
|
7
7
|
Editor: () => Y,
|
|
8
|
-
EditorContent: () =>
|
|
9
|
-
Extendable: () =>
|
|
10
|
-
Extension: () =>
|
|
11
|
-
Fragment: () =>
|
|
12
|
-
InputRule: () =>
|
|
13
|
-
MappablePosition: () =>
|
|
14
|
-
Mark: () =>
|
|
15
|
-
MarkView: () =>
|
|
16
|
-
MarkViewContent: () =>
|
|
17
|
-
Node: () =>
|
|
18
|
-
NodePos: () =>
|
|
19
|
-
NodeView: () =>
|
|
20
|
-
NodeViewContent: () =>
|
|
8
|
+
EditorContent: () => zt,
|
|
9
|
+
Extendable: () => _t,
|
|
10
|
+
Extension: () => Ye,
|
|
11
|
+
Fragment: () => Ae,
|
|
12
|
+
InputRule: () => ut,
|
|
13
|
+
MappablePosition: () => bt,
|
|
14
|
+
Mark: () => Fe,
|
|
15
|
+
MarkView: () => G,
|
|
16
|
+
MarkViewContent: () => Ut,
|
|
17
|
+
Node: () => Et,
|
|
18
|
+
NodePos: () => Re,
|
|
19
|
+
NodeView: () => U,
|
|
20
|
+
NodeViewContent: () => Bt,
|
|
21
21
|
NodeViewWrapper: () => X,
|
|
22
|
-
PasteRule: () =>
|
|
23
|
-
ResizableNodeView: () =>
|
|
24
|
-
ResizableNodeview: () =>
|
|
25
|
-
Tracker: () =>
|
|
22
|
+
PasteRule: () => ft,
|
|
23
|
+
ResizableNodeView: () => it,
|
|
24
|
+
ResizableNodeview: () => W,
|
|
25
|
+
Tracker: () => Ge,
|
|
26
26
|
VueMarkView: () => Q,
|
|
27
|
-
VueMarkViewRenderer: () =>
|
|
27
|
+
VueMarkViewRenderer: () => Wt,
|
|
28
28
|
VueNodeViewRenderer: () => $,
|
|
29
29
|
VueRenderer: () => Z,
|
|
30
|
-
callOrReturn: () =>
|
|
31
|
-
canInsertNode: () =>
|
|
32
|
-
cancelPositionCheck: () =>
|
|
33
|
-
combineTransactionSteps: () =>
|
|
34
|
-
commands: () =>
|
|
35
|
-
createAtomBlockMarkdownSpec: () =>
|
|
36
|
-
createBlockMarkdownSpec: () =>
|
|
37
|
-
createChainableState: () =>
|
|
38
|
-
createDocument: () =>
|
|
39
|
-
createElement: () =>
|
|
40
|
-
createInlineMarkdownSpec: () =>
|
|
41
|
-
createMappablePosition: () =>
|
|
42
|
-
createNodeFromContent: () =>
|
|
43
|
-
createStyleTag: () =>
|
|
44
|
-
decodeHtmlEntities: () =>
|
|
45
|
-
defaultBlockAt: () =>
|
|
46
|
-
deleteProps: () =>
|
|
47
|
-
elementFromString: () =>
|
|
48
|
-
encodeHtmlEntities: () =>
|
|
49
|
-
escapeForRegEx: () =>
|
|
50
|
-
extensions: () =>
|
|
51
|
-
findChildren: () =>
|
|
52
|
-
findChildrenInRange: () =>
|
|
53
|
-
findDuplicates: () =>
|
|
54
|
-
findParentNode: () =>
|
|
55
|
-
findParentNodeClosestToPos: () =>
|
|
56
|
-
flattenExtensions: () =>
|
|
57
|
-
fromString: () =>
|
|
58
|
-
generateHTML: () =>
|
|
59
|
-
generateJSON: () =>
|
|
60
|
-
generateText: () =>
|
|
61
|
-
getAttributes: () =>
|
|
62
|
-
getAttributesFromExtensions: () =>
|
|
63
|
-
getChangedRanges: () =>
|
|
64
|
-
getDebugJSON: () =>
|
|
65
|
-
getExtensionField: () =>
|
|
66
|
-
getHTMLFromFragment: () =>
|
|
67
|
-
getMarkAttributes: () =>
|
|
68
|
-
getMarkRange: () =>
|
|
69
|
-
getMarkType: () =>
|
|
70
|
-
getMarksBetween: () =>
|
|
71
|
-
getNodeAtPosition: () =>
|
|
72
|
-
getNodeAttributes: () =>
|
|
73
|
-
getNodeType: () =>
|
|
74
|
-
getRenderedAttributes: () =>
|
|
75
|
-
getSchema: () =>
|
|
76
|
-
getSchemaByResolvedExtensions: () =>
|
|
77
|
-
getSchemaTypeByName: () =>
|
|
78
|
-
getSchemaTypeNameByName: () =>
|
|
79
|
-
getSplittedAttributes: () =>
|
|
80
|
-
getText: () =>
|
|
81
|
-
getTextBetween: () =>
|
|
82
|
-
getTextContentFromNodes: () =>
|
|
83
|
-
getTextSerializersFromSchema: () =>
|
|
84
|
-
getUpdatedPosition: () =>
|
|
85
|
-
h: () =>
|
|
86
|
-
injectExtensionAttributesToParseRule: () =>
|
|
87
|
-
inputRulesPlugin: () =>
|
|
88
|
-
isActive: () =>
|
|
89
|
-
isAndroid: () =>
|
|
90
|
-
isAtEndOfNode: () =>
|
|
91
|
-
isAtStartOfNode: () =>
|
|
92
|
-
isEmptyObject: () =>
|
|
93
|
-
isExtensionRulesEnabled: () =>
|
|
94
|
-
isFirefox: () =>
|
|
95
|
-
isFunction: () =>
|
|
96
|
-
isList: () =>
|
|
97
|
-
isMacOS: () =>
|
|
98
|
-
isMarkActive: () =>
|
|
99
|
-
isNodeActive: () =>
|
|
100
|
-
isNodeEmpty: () =>
|
|
101
|
-
isNodeSelection: () =>
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
30
|
+
callOrReturn: () => ke,
|
|
31
|
+
canInsertNode: () => kt,
|
|
32
|
+
cancelPositionCheck: () => q,
|
|
33
|
+
combineTransactionSteps: () => Ne,
|
|
34
|
+
commands: () => Nt,
|
|
35
|
+
createAtomBlockMarkdownSpec: () => pe,
|
|
36
|
+
createBlockMarkdownSpec: () => ue,
|
|
37
|
+
createChainableState: () => jt,
|
|
38
|
+
createDocument: () => he,
|
|
39
|
+
createElement: () => H,
|
|
40
|
+
createInlineMarkdownSpec: () => m,
|
|
41
|
+
createMappablePosition: () => fe,
|
|
42
|
+
createNodeFromContent: () => P,
|
|
43
|
+
createStyleTag: () => et,
|
|
44
|
+
decodeHtmlEntities: () => oe,
|
|
45
|
+
defaultBlockAt: () => Qe,
|
|
46
|
+
deleteProps: () => A,
|
|
47
|
+
elementFromString: () => M,
|
|
48
|
+
encodeHtmlEntities: () => I,
|
|
49
|
+
escapeForRegEx: () => g,
|
|
50
|
+
extensions: () => S,
|
|
51
|
+
findChildren: () => O,
|
|
52
|
+
findChildrenInRange: () => B,
|
|
53
|
+
findDuplicates: () => It,
|
|
54
|
+
findParentNode: () => ce,
|
|
55
|
+
findParentNodeClosestToPos: () => ye,
|
|
56
|
+
flattenExtensions: () => b,
|
|
57
|
+
fromString: () => _e,
|
|
58
|
+
generateHTML: () => xe,
|
|
59
|
+
generateJSON: () => v,
|
|
60
|
+
generateText: () => E,
|
|
61
|
+
getAttributes: () => ht,
|
|
62
|
+
getAttributesFromExtensions: () => w,
|
|
63
|
+
getChangedRanges: () => Te,
|
|
64
|
+
getDebugJSON: () => Ce,
|
|
65
|
+
getExtensionField: () => De,
|
|
66
|
+
getHTMLFromFragment: () => R,
|
|
67
|
+
getMarkAttributes: () => ie,
|
|
68
|
+
getMarkRange: () => He,
|
|
69
|
+
getMarkType: () => Tt,
|
|
70
|
+
getMarksBetween: () => lt,
|
|
71
|
+
getNodeAtPosition: () => yt,
|
|
72
|
+
getNodeAttributes: () => Ze,
|
|
73
|
+
getNodeType: () => Me,
|
|
74
|
+
getRenderedAttributes: () => dt,
|
|
75
|
+
getSchema: () => St,
|
|
76
|
+
getSchemaByResolvedExtensions: () => Le,
|
|
77
|
+
getSchemaTypeByName: () => rt,
|
|
78
|
+
getSchemaTypeNameByName: () => Ot,
|
|
79
|
+
getSplittedAttributes: () => Be,
|
|
80
|
+
getText: () => We,
|
|
81
|
+
getTextBetween: () => mt,
|
|
82
|
+
getTextContentFromNodes: () => ot,
|
|
83
|
+
getTextSerializersFromSchema: () => Je,
|
|
84
|
+
getUpdatedPosition: () => Ke,
|
|
85
|
+
h: () => H,
|
|
86
|
+
injectExtensionAttributesToParseRule: () => At,
|
|
87
|
+
inputRulesPlugin: () => Ft,
|
|
88
|
+
isActive: () => Pe,
|
|
89
|
+
isAndroid: () => Pt,
|
|
90
|
+
isAtEndOfNode: () => me,
|
|
91
|
+
isAtStartOfNode: () => de,
|
|
92
|
+
isEmptyObject: () => Mt,
|
|
93
|
+
isExtensionRulesEnabled: () => ge,
|
|
94
|
+
isFirefox: () => h,
|
|
95
|
+
isFunction: () => p,
|
|
96
|
+
isList: () => F,
|
|
97
|
+
isMacOS: () => tt,
|
|
98
|
+
isMarkActive: () => se,
|
|
99
|
+
isNodeActive: () => $e,
|
|
100
|
+
isNodeEmpty: () => j,
|
|
101
|
+
isNodeSelection: () => N,
|
|
102
|
+
isNodeViewSelected: () => L,
|
|
103
|
+
isNumber: () => _,
|
|
104
|
+
isPlainObject: () => C,
|
|
105
|
+
isRegExp: () => k,
|
|
106
|
+
isSafari: () => V,
|
|
107
|
+
isString: () => Lt,
|
|
108
|
+
isTextSelection: () => le,
|
|
109
|
+
isiOS: () => be,
|
|
110
|
+
markInputRule: () => x,
|
|
111
|
+
markPasteRule: () => ve,
|
|
112
|
+
markViewProps: () => Ht,
|
|
113
|
+
markdown: () => Se,
|
|
114
|
+
mergeAttributes: () => y,
|
|
115
|
+
mergeDeep: () => D,
|
|
116
|
+
minMax: () => gt,
|
|
117
|
+
nodeInputRule: () => T,
|
|
118
|
+
nodePasteRule: () => Ee,
|
|
119
|
+
nodeViewProps: () => Gt,
|
|
120
|
+
objectIncludes: () => we,
|
|
121
|
+
parseAttributes: () => Oe,
|
|
122
|
+
parseIndentedBlocks: () => z,
|
|
123
|
+
pasteRulesPlugin: () => ae,
|
|
124
|
+
posToDOMRect: () => Ve,
|
|
125
|
+
removeDuplicates: () => wt,
|
|
126
|
+
renderNestedMarkdownContent: () => ct,
|
|
127
|
+
resolveExtensions: () => vt,
|
|
128
|
+
resolveFocusPosition: () => Xe,
|
|
129
|
+
rewriteUnknownContent: () => je,
|
|
130
|
+
schedulePositionCheck: () => K,
|
|
131
|
+
selectionToInsertionEnd: () => xt,
|
|
132
|
+
serializeAttributes: () => Ie,
|
|
133
|
+
sortExtensions: () => nt,
|
|
134
|
+
splitExtensions: () => Dt,
|
|
135
|
+
textInputRule: () => ze,
|
|
136
|
+
textPasteRule: () => Ue,
|
|
137
|
+
textblockTypeInputRule: () => pt,
|
|
138
|
+
updateMarkViewAttributes: () => at,
|
|
139
|
+
useEditor: () => Vt,
|
|
140
|
+
wrappingInputRule: () => qe
|
|
140
141
|
});
|
|
141
142
|
function J(e) {
|
|
142
|
-
return
|
|
143
|
+
return te((t, n) => ({
|
|
143
144
|
get() {
|
|
144
145
|
return t(), e;
|
|
145
146
|
},
|
|
@@ -152,11 +153,11 @@ function J(e) {
|
|
|
152
153
|
}
|
|
153
154
|
}));
|
|
154
155
|
}
|
|
155
|
-
var Y = class extends
|
|
156
|
+
var Y = class extends st {
|
|
156
157
|
constructor(e = {}) {
|
|
157
158
|
return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = J(this.view.state), this.reactiveExtensionStorage = J(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
|
|
158
159
|
this.reactiveState.value = e, this.reactiveExtensionStorage.value = this.extensionStorage;
|
|
159
|
-
}),
|
|
160
|
+
}), a(this);
|
|
160
161
|
}
|
|
161
162
|
get state() {
|
|
162
163
|
return this.reactiveState ? this.reactiveState.value : this.view.state;
|
|
@@ -172,47 +173,47 @@ var Y = class extends z {
|
|
|
172
173
|
let t = super.unregisterPlugin(e);
|
|
173
174
|
return this.reactiveState && t && (this.reactiveState.value = t), t;
|
|
174
175
|
}
|
|
175
|
-
},
|
|
176
|
+
}, zt = c({
|
|
176
177
|
name: "EditorContent",
|
|
177
178
|
props: { editor: {
|
|
178
179
|
default: null,
|
|
179
180
|
type: Object
|
|
180
181
|
} },
|
|
181
182
|
setup(e) {
|
|
182
|
-
let t =
|
|
183
|
-
return
|
|
184
|
-
let
|
|
185
|
-
|
|
186
|
-
if (!t.value || !
|
|
187
|
-
let e =
|
|
188
|
-
t.value.append(...
|
|
189
|
-
...
|
|
190
|
-
provides:
|
|
191
|
-
}),
|
|
183
|
+
let t = l(), i = r();
|
|
184
|
+
return n(() => {
|
|
185
|
+
let n = e.editor;
|
|
186
|
+
n && n.options.element && t.value && ee(() => {
|
|
187
|
+
if (!t.value || !n.view.dom?.parentNode) return;
|
|
188
|
+
let e = re(t.value);
|
|
189
|
+
t.value.append(...n.view.dom.parentNode.childNodes), n.contentComponent = i.ctx._, i && (n.appContext = {
|
|
190
|
+
...i.appContext,
|
|
191
|
+
provides: i.provides
|
|
192
|
+
}), n.setOptions({ element: e }), n.createNodeViews();
|
|
192
193
|
});
|
|
193
|
-
}),
|
|
194
|
+
}), d(() => {
|
|
194
195
|
let t = e.editor;
|
|
195
196
|
t && (t.contentComponent = null, t.appContext = null);
|
|
196
197
|
}), { rootEl: t };
|
|
197
198
|
},
|
|
198
199
|
render() {
|
|
199
|
-
return
|
|
200
|
+
return f("div", { ref: (e) => {
|
|
200
201
|
this.rootEl = e;
|
|
201
202
|
} });
|
|
202
203
|
}
|
|
203
|
-
}),
|
|
204
|
+
}), Bt = c({
|
|
204
205
|
name: "NodeViewContent",
|
|
205
206
|
props: { as: {
|
|
206
207
|
type: String,
|
|
207
208
|
default: "div"
|
|
208
209
|
} },
|
|
209
210
|
render() {
|
|
210
|
-
return
|
|
211
|
+
return f(this.as, {
|
|
211
212
|
style: { whiteSpace: "pre-wrap" },
|
|
212
213
|
"data-node-view-content": ""
|
|
213
214
|
});
|
|
214
215
|
}
|
|
215
|
-
}), X =
|
|
216
|
+
}), X = c({
|
|
216
217
|
name: "NodeViewWrapper",
|
|
217
218
|
props: { as: {
|
|
218
219
|
type: String,
|
|
@@ -221,25 +222,25 @@ var Y = class extends z {
|
|
|
221
222
|
inject: ["onDragStart", "decorationClasses"],
|
|
222
223
|
render() {
|
|
223
224
|
var e;
|
|
224
|
-
return
|
|
225
|
+
return f(this.as, {
|
|
225
226
|
class: this.decorationClasses,
|
|
226
227
|
style: { whiteSpace: "normal" },
|
|
227
228
|
"data-node-view-wrapper": "",
|
|
228
229
|
onDragstart: this.onDragStart
|
|
229
230
|
}, (e = this.$slots).default?.call(e));
|
|
230
231
|
}
|
|
231
|
-
}),
|
|
232
|
-
let
|
|
233
|
-
return
|
|
234
|
-
|
|
235
|
-
}),
|
|
236
|
-
var e,
|
|
237
|
-
let r =
|
|
238
|
-
(e = r?.parentNode) == null || e.replaceChild(i, r), (
|
|
239
|
-
}),
|
|
232
|
+
}), Vt = (e = {}) => {
|
|
233
|
+
let n = ne();
|
|
234
|
+
return t(() => {
|
|
235
|
+
n.value = new Y(e);
|
|
236
|
+
}), d(() => {
|
|
237
|
+
var e, t;
|
|
238
|
+
let r = n.value?.view.dom?.parentNode, i = r?.cloneNode(!0);
|
|
239
|
+
(e = r?.parentNode) == null || e.replaceChild(i, r), (t = n.value) == null || t.destroy();
|
|
240
|
+
}), n;
|
|
240
241
|
}, Z = class {
|
|
241
242
|
constructor(e, { props: t = {}, editor: n }) {
|
|
242
|
-
this.destroyed = !1, this.editor = n, this.component =
|
|
243
|
+
this.destroyed = !1, this.editor = n, this.component = a(e), this.el = document.createElement("div"), this.props = i(t), this.renderedComponent = this.renderComponent();
|
|
243
244
|
}
|
|
244
245
|
get element() {
|
|
245
246
|
return this.renderedComponent.el;
|
|
@@ -249,11 +250,11 @@ var Y = class extends z {
|
|
|
249
250
|
}
|
|
250
251
|
renderComponent() {
|
|
251
252
|
if (this.destroyed) return this.renderedComponent;
|
|
252
|
-
let e =
|
|
253
|
-
return this.editor.appContext && (e.appContext = this.editor.appContext), typeof document < "u" && this.el &&
|
|
253
|
+
let e = f(this.component, this.props);
|
|
254
|
+
return this.editor.appContext && (e.appContext = this.editor.appContext), typeof document < "u" && this.el && u(e, this.el), {
|
|
254
255
|
vNode: e,
|
|
255
256
|
destroy: () => {
|
|
256
|
-
this.el &&
|
|
257
|
+
this.el && u(null, this.el), this.el = null, e = null;
|
|
257
258
|
},
|
|
258
259
|
el: this.el ? this.el.firstElementChild : null
|
|
259
260
|
};
|
|
@@ -266,7 +267,7 @@ var Y = class extends z {
|
|
|
266
267
|
destroy() {
|
|
267
268
|
this.destroyed || (this.destroyed = !0, this.renderedComponent.destroy());
|
|
268
269
|
}
|
|
269
|
-
},
|
|
270
|
+
}, Ht = {
|
|
270
271
|
editor: {
|
|
271
272
|
type: Object,
|
|
272
273
|
required: !0
|
|
@@ -295,25 +296,25 @@ var Y = class extends z {
|
|
|
295
296
|
type: Object,
|
|
296
297
|
required: !0
|
|
297
298
|
}
|
|
298
|
-
},
|
|
299
|
+
}, Ut = c({
|
|
299
300
|
name: "MarkViewContent",
|
|
300
301
|
props: { as: {
|
|
301
302
|
type: String,
|
|
302
303
|
default: "span"
|
|
303
304
|
} },
|
|
304
305
|
render() {
|
|
305
|
-
return
|
|
306
|
+
return f(this.as, {
|
|
306
307
|
style: { whiteSpace: "inherit" },
|
|
307
308
|
"data-mark-view-content": ""
|
|
308
309
|
});
|
|
309
310
|
}
|
|
310
|
-
}), Q = class extends
|
|
311
|
+
}), Q = class extends G {
|
|
311
312
|
constructor(e, t, n) {
|
|
312
313
|
super(e, t, n);
|
|
313
314
|
let r = {
|
|
314
315
|
...t,
|
|
315
316
|
updateAttributes: this.updateAttributes.bind(this)
|
|
316
|
-
}, i =
|
|
317
|
+
}, i = c({
|
|
317
318
|
extends: { ...e },
|
|
318
319
|
props: Object.keys(r),
|
|
319
320
|
template: this.component.template,
|
|
@@ -335,17 +336,17 @@ var Y = class extends z {
|
|
|
335
336
|
return this.dom.querySelector("[data-mark-view-content]");
|
|
336
337
|
}
|
|
337
338
|
updateAttributes(e) {
|
|
338
|
-
let t =
|
|
339
|
+
let t = s(this.mark);
|
|
339
340
|
super.updateAttributes(e, t);
|
|
340
341
|
}
|
|
341
342
|
destroy() {
|
|
342
343
|
this.renderer.destroy();
|
|
343
344
|
}
|
|
344
345
|
};
|
|
345
|
-
function
|
|
346
|
+
function Wt(e, t = {}) {
|
|
346
347
|
return (n) => n.editor.contentComponent ? new Q(e, n, t) : {};
|
|
347
348
|
}
|
|
348
|
-
var
|
|
349
|
+
var Gt = {
|
|
349
350
|
editor: {
|
|
350
351
|
type: Object,
|
|
351
352
|
required: !0
|
|
@@ -390,7 +391,7 @@ var Wt = {
|
|
|
390
391
|
type: Object,
|
|
391
392
|
required: !0
|
|
392
393
|
}
|
|
393
|
-
},
|
|
394
|
+
}, Kt = class extends U {
|
|
394
395
|
constructor() {
|
|
395
396
|
super(...arguments), this.positionCheckCallback = null, this.cachedExtensionWithSyncedStorage = null;
|
|
396
397
|
}
|
|
@@ -417,14 +418,14 @@ var Wt = {
|
|
|
417
418
|
updateAttributes: (e = {}) => this.updateAttributes(e),
|
|
418
419
|
deleteNode: () => this.deleteNode()
|
|
419
420
|
}, t = this.onDragStart.bind(this);
|
|
420
|
-
this.decorationClasses =
|
|
421
|
-
let n =
|
|
421
|
+
this.decorationClasses = l(this.getDecorationClasses());
|
|
422
|
+
let n = c({
|
|
422
423
|
extends: { ...this.component },
|
|
423
424
|
props: Object.keys(e),
|
|
424
425
|
template: this.component.template,
|
|
425
426
|
setup: (e) => {
|
|
426
427
|
var n;
|
|
427
|
-
return
|
|
428
|
+
return o("onDragStart", t), o("decorationClasses", this.decorationClasses), (n = this.component).setup?.call(n, e, { expose: () => void 0 });
|
|
428
429
|
},
|
|
429
430
|
__scopeId: this.component.__scopeId,
|
|
430
431
|
__cssModules: this.component.__cssModules,
|
|
@@ -435,7 +436,7 @@ var Wt = {
|
|
|
435
436
|
if (!this.renderer) return;
|
|
436
437
|
let e = this.getPos();
|
|
437
438
|
typeof e != "number" || e === this.currentPos || (this.currentPos = e, this.renderer.updateProps({ getPos: () => this.getPos() }));
|
|
438
|
-
},
|
|
439
|
+
}, K(this.editor, this.positionCheckCallback), this.renderer = new Z(n, {
|
|
439
440
|
editor: this.editor,
|
|
440
441
|
props: e
|
|
441
442
|
});
|
|
@@ -448,8 +449,13 @@ var Wt = {
|
|
|
448
449
|
return this.node.isLeaf ? null : this.dom.querySelector("[data-node-view-content]");
|
|
449
450
|
}
|
|
450
451
|
handleSelectionUpdate() {
|
|
451
|
-
let
|
|
452
|
-
if (typeof
|
|
452
|
+
let e = this.getPos();
|
|
453
|
+
if (typeof e == "number") if (L({
|
|
454
|
+
selection: this.editor.state.selection,
|
|
455
|
+
pos: e,
|
|
456
|
+
nodeSize: this.node.nodeSize,
|
|
457
|
+
selectedOnTextSelection: this.options.selectedOnTextSelection
|
|
458
|
+
})) {
|
|
453
459
|
if (this.renderer.props.selected) return;
|
|
454
460
|
this.selectNode();
|
|
455
461
|
} else {
|
|
@@ -503,11 +509,11 @@ var Wt = {
|
|
|
503
509
|
return this.decorations.flatMap((e) => e.type.attrs.class).join(" ");
|
|
504
510
|
}
|
|
505
511
|
destroy() {
|
|
506
|
-
this.renderer.destroy(), this.editor.off("selectionUpdate", this.handleSelectionUpdate), this.positionCheckCallback &&= (
|
|
512
|
+
this.renderer.destroy(), this.editor.off("selectionUpdate", this.handleSelectionUpdate), this.positionCheckCallback &&= (q(this.editor, this.positionCheckCallback), null);
|
|
507
513
|
}
|
|
508
514
|
};
|
|
509
515
|
function $(e, t) {
|
|
510
|
-
return (n) => n.editor.contentComponent ? new
|
|
516
|
+
return (n) => n.editor.contentComponent ? new Kt(typeof e == "function" && "__vccOpts" in e ? e.__vccOpts : e, n, t) : {};
|
|
511
517
|
}
|
|
512
518
|
//#endregion
|
|
513
|
-
export { $ as n,
|
|
519
|
+
export { $ as n, Rt as r, X as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region ../../node_modules/.
|
|
1
|
+
import { Gt as e, c as t } from "./dist-BHgEdO-M.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@tiptap+extension-underline@3.22.5_@tiptap+core@3.22.5_@tiptap+pm@3.22.5_/node_modules/@tiptap/extension-underline/dist/index.js
|
|
3
3
|
var n = t.create({
|
|
4
4
|
name: "underline",
|
|
5
5
|
addOptions() {
|