@templatical/editor 0.13.0 → 0.15.0
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/dist/{AiChatSidebar-B0-U5-sb.js → AiChatSidebar-BIKvYREk.js} +57 -56
- package/dist/{AiFeatureMenu-DxDwLS8B.js → AiFeatureMenu-QbD82crt.js} +23 -23
- package/dist/{BlockIssueBadge-C-EPqWsh.js → BlockIssueBadge-B3xVgMTh.js} +11 -11
- package/dist/CloudEditor-DptuSf7A.js +1234 -0
- package/dist/{CollaboratorBar-DgwjisX2.js → CollaboratorBar-DrA_K69w.js} +20 -20
- package/dist/{CommentsSidebar-CpRLN40c.js → CommentsSidebar-D_tSGvTX.js} +158 -157
- package/dist/CountdownBlock-apiYUhkQ.js +92 -0
- package/dist/CountdownToolbar-CS0axcjz.js +210 -0
- package/dist/{DesignReferenceSidebar-BgPDbOsl.js → DesignReferenceSidebar-DWYK9nTk.js} +58 -57
- package/dist/{IssuesPanel-I0z6k6-H.js → IssuesPanel-CR1MPaDE.js} +40 -40
- package/dist/{LoadingTrack-C7mGWPHS.js → LoadingTrack-DsecR8Rw.js} +1 -1
- package/dist/MergeTagSuggestion-CH2SUxBo.js +1327 -0
- package/dist/ModuleBrowserModal-D45rBj5C.js +202 -0
- package/dist/{ModulePreviewCanvas-Dni9kK4j.js → ModulePreviewCanvas-BiQ6B2-l.js} +29 -29
- package/dist/{NumberWithSuffix-D3fdj0iO.js → NumberWithSuffix-CrA6quxx.js} +143 -142
- package/dist/ParagraphEditor-1NaUJpZO.js +721 -0
- package/dist/{RichTextEditorContent-Q5altsx1.js → RichTextEditorContent-BqLHIZY7.js} +45 -44
- package/dist/{SaveModuleDialog-C38VqN2T.js → SaveModuleDialog-B0sPOTgO.js} +38 -37
- package/dist/{SnapshotHistory-ByloTpwh.js → SnapshotHistory-DslVzmSb.js} +34 -33
- package/dist/{TemplateScoringPanel-CUxiPtEf.js → TemplateScoringPanel-CZ62rGHz.js} +83 -82
- package/dist/{TestEmailModal-BvZBMBad.js → TestEmailModal-DWGniJVu.js} +22 -21
- package/dist/TitleEditor-D4t_gZZJ.js +193 -0
- package/dist/{TplModal-BYb-X5Bj.js → TplModal-Br2VG6cn.js} +14 -13
- package/dist/{blockTypeIcons-CyAom3iI.js → blockTypeIcons-CXhCS5WV.js} +5 -5
- package/dist/bundle-stats.json +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-BSoy-SoF.js → AiFeatureMenu-3Slo_LGA.js} +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-BSoy-SoF.js.map → AiFeatureMenu-3Slo_LGA.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-BQDUuJxy.js → BlockIssueBadge-BxwEiiF3.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-BQDUuJxy.js.map → BlockIssueBadge-BxwEiiF3.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-BZuzsQOZ.js → CloudEditor-DFIFWD9G.js} +163 -161
- package/dist/cdn/chunks/CloudEditor-DFIFWD9G.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-DUpSrtDr.js → CollaboratorBar-Cu3vuN66.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-DUpSrtDr.js.map → CollaboratorBar-Cu3vuN66.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-DChGTAsH.js → CountdownBlock-BEVAJQtQ.js} +3 -3
- package/dist/cdn/chunks/{CountdownBlock-DChGTAsH.js.map → CountdownBlock-BEVAJQtQ.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-C6gX2SJr.js → CountdownToolbar-CI2sQZv5.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-C6gX2SJr.js.map → CountdownToolbar-CI2sQZv5.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-Bo1uhdSe.js → IssuesPanel-BdeDoTcn.js} +11 -11
- package/dist/cdn/chunks/{IssuesPanel-Bo1uhdSe.js.map → IssuesPanel-BdeDoTcn.js.map} +1 -1
- package/dist/cdn/chunks/MergeTagSuggestion-BsCAo4Co.js +213 -0
- package/dist/cdn/chunks/MergeTagSuggestion-BsCAo4Co.js.map +1 -0
- package/dist/cdn/chunks/{ModuleBrowserModal-a-tZRCcD.js → ModuleBrowserModal-Dz-I5zfj.js} +11 -8
- package/dist/cdn/chunks/{ModuleBrowserModal-a-tZRCcD.js.map → ModuleBrowserModal-Dz-I5zfj.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-Bm6k0Op0.js → ModulePreviewCanvas-BfinyuAN.js} +21 -21
- package/dist/cdn/chunks/{ModulePreviewCanvas-Bm6k0Op0.js.map → ModulePreviewCanvas-BfinyuAN.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-HTbuD3VJ.js → NumberWithSuffix-CDjEa08X.js} +4 -4
- package/dist/cdn/chunks/{NumberWithSuffix-HTbuD3VJ.js.map → NumberWithSuffix-CDjEa08X.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-pGrfSccu.js → ParagraphEditor-B3fG0vge.js} +130 -110
- package/dist/cdn/chunks/ParagraphEditor-B3fG0vge.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-D7XZix_1.js → RichTextEditorContent-C6YPCp9j.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-D7XZix_1.js.map → RichTextEditorContent-C6YPCp9j.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-C9PQ9x6j.js → SaveModuleDialog-C6UIIVAM.js} +6 -6
- package/dist/cdn/chunks/{SaveModuleDialog-C9PQ9x6j.js.map → SaveModuleDialog-C6UIIVAM.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BvFbL16O.js → TitleEditor-BiZbLYF1.js} +62 -46
- package/dist/cdn/chunks/TitleEditor-BiZbLYF1.js.map +1 -0
- package/dist/cdn/chunks/blockTypeIcons-BernVG06.js +22 -0
- package/dist/cdn/chunks/{blockTypeIcons-Kd1MT0u8.js.map → blockTypeIcons-BernVG06.js.map} +1 -1
- package/dist/{de-C2wOXoxs.js → cdn/chunks/de-LsV0u1tP.js} +19 -1
- package/dist/cdn/chunks/de-LsV0u1tP.js.map +1 -0
- package/dist/cdn/chunks/{draggable-Bci-fq8y.js → draggable-kG-D5Xsm.js} +19 -10
- package/dist/cdn/chunks/draggable-kG-D5Xsm.js.map +1 -0
- package/dist/cdn/chunks/{en-dR7zfNC3.js → en-Bb8X1bOs.js} +18 -2
- package/dist/cdn/chunks/en-Bb8X1bOs.js.map +1 -0
- package/dist/cdn/chunks/extensions-Drp8UDc6.js +421 -0
- package/dist/cdn/chunks/extensions-Drp8UDc6.js.map +1 -0
- package/dist/cdn/chunks/{features-DU6lA8l1.js → features-Dpczf9Su.js} +1171 -994
- package/dist/cdn/chunks/features-Dpczf9Su.js.map +1 -0
- package/dist/cdn/chunks/{icons-BjHUZZyJ.js → icons-CuxnJiGQ.js} +170 -164
- package/dist/cdn/chunks/icons-CuxnJiGQ.js.map +1 -0
- package/dist/cdn/chunks/{liquid.browser-DKKBzRQu.js → liquid.browser-BJOEu6Cg.js} +693 -678
- package/dist/cdn/chunks/liquid.browser-BJOEu6Cg.js.map +1 -0
- package/dist/cdn/chunks/{media-library-Byelliig.js → media-library-CiYl_BO7.js} +556 -554
- package/dist/cdn/chunks/{media-library-Byelliig.js.map → media-library-CiYl_BO7.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-BZ86xqK6.js → pt-BR-BwJY_cvb.js} +18 -2
- package/dist/cdn/chunks/pt-BR-BwJY_cvb.js.map +1 -0
- package/dist/cdn/chunks/{pusher-BICWUP2j.js → pusher-CIwiKF8H.js} +9 -6
- package/dist/cdn/chunks/{pusher-BICWUP2j.js.map → pusher-CIwiKF8H.js.map} +1 -1
- package/dist/cdn/chunks/quality-CNjGxBG0.js +2176 -0
- package/dist/cdn/chunks/{quality-DNnYAntR.js.map → quality-CNjGxBG0.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-CZKO-Tav.js → renderer-CFkg8h-K.js} +40 -31
- package/dist/cdn/chunks/renderer-CFkg8h-K.js.map +1 -0
- package/dist/cdn/chunks/{src-DsqSXXjk.js → src-DRpKu4Dy.js} +11 -11
- package/dist/cdn/chunks/{src-DsqSXXjk.js.map → src-DRpKu4Dy.js.map} +1 -1
- package/dist/cdn/chunks/styles-B7wryV0l.js +3943 -0
- package/dist/cdn/chunks/styles-B7wryV0l.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-CwScfbsM.js → tiptap-DF9PEiqH.js} +5429 -5373
- package/dist/cdn/chunks/tiptap-DF9PEiqH.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +117 -115
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-BRzXxFHr.js → check-rl7ok6uJ.js} +1 -1
- package/dist/{chevron-down-DmEgzmYT.js → chevron-down-BKe__NOD.js} +1 -1
- package/dist/{circle-alert-BStvZr3O.js → circle-alert-C8xmpMsK.js} +1 -1
- package/dist/{clock-Blwp_1R6.js → clock-BW4JuDCN.js} +1 -1
- package/dist/{cloud-_olro76D.js → cloud-BQusL53H.js} +208 -208
- package/dist/createLucideIcon-Dx-EjR9r.js +43 -0
- package/dist/{cdn/chunks/de-C2wOXoxs.js → de-LsV0u1tP.js} +17 -3
- package/dist/{dist-BlG7k25W.js → dist-B5Sov3sS.js} +7 -7
- package/dist/dist-BEWiuOMi.js +251 -0
- package/dist/{dist-b7Ak-CuM.js → dist-BFmE-7hB.js} +2 -2
- package/dist/{dist-o73iaGqy.js → dist-BMoa33wT.js} +2 -2
- package/dist/{dist-BctFrpeA.js → dist-BibU4HNl.js} +74 -65
- package/dist/{dist-D6x1cQeh.js → dist-BsCGIDSt.js} +103 -102
- package/dist/dist-CNLKj9wa.js +5 -0
- package/dist/{dist-DULfKmTh.js → dist-CNXDNYQn.js} +729 -695
- package/dist/{dist-412xXefB.js → dist-COG3IdPK.js} +3 -3
- package/dist/{dist-Cz79qrLL.js → dist-CQZxDvFw.js} +3 -3
- package/dist/{dist-BwgjpLfr.js → dist-CRsjOQM-.js} +2 -2
- package/dist/dist-CTT6WYJ6.js +134 -0
- package/dist/dist-Cqa6aeAJ.js +5 -0
- package/dist/{dist-BCQZZUE9.js → dist-SXJJ2v41.js} +2 -2
- package/dist/{dist-DhKTdU52.js → dist-itdjZraK.js} +1445 -1420
- package/dist/{en-dR7zfNC3.js → en-Bb8X1bOs.js} +17 -1
- package/dist/extensions-DwaZAqm6.js +423 -0
- package/dist/{image-up-BFPbw_Zq.js → image-up-BwBCmQ4P.js} +1 -1
- package/dist/index.d.ts +17 -0
- package/dist/{info-B_qLEBN2.js → info-TCn7uWR5.js} +1 -1
- package/dist/keys-Cv8-8GsD.js +10 -0
- package/dist/{liquid.browser-CVjP5Mex.js → liquid.browser-DZLtv26k.js} +692 -677
- package/dist/{list-checks-CGg7JxPm.js → list-checks-CSrOWNgq.js} +1 -1
- package/dist/{loader-circle-CDF8eR_Q.js → loader-circle-BLmicnPG.js} +1 -1
- package/dist/{message-circle-C3cHsCJl.js → message-circle-C9hHMQCI.js} +1 -1
- package/dist/{pt-BR-BZ86xqK6.js → pt-BR-BwJY_cvb.js} +17 -1
- package/dist/{refresh-cw-Butml7Q4.js → refresh-cw-D1JQ1LNa.js} +1 -1
- package/dist/runtime-dom.esm-bundler-BzuoCyNp.js +523 -0
- package/dist/scan-line-DgijVq9y.js +31 -0
- package/dist/{send-k7npFJNO.js → send-DjPdq69F.js} +1 -1
- package/dist/{shield-check-CV6GbmCu.js → shield-check-Bqluu8FS.js} +1 -1
- package/dist/{sparkles-C965Xop4.js → sparkles-M4azPVSP.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/styles-D7fQ7f_1.js +4164 -0
- package/dist/templatical-editor.js +155 -152
- package/dist/{text-align-start-Bxnps8fH.js → text-align-start-CMya5pCQ.js} +11 -11
- package/dist/{trash-2-DpGb7fIt.js → trash-2-C-81rkLS.js} +1 -1
- package/dist/{triangle-alert-BKYElAwz.js → triangle-alert-BuRWnynk.js} +1 -1
- package/dist/{upload-BF7sxd1_.js → upload-CWBIoLd4.js} +1 -1
- package/dist/{useAliveFlag-BinvbqQR.js → useAliveFlag-CECL_OUb.js} +1 -1
- package/dist/{useCloudI18n-L3H2XvdW.js → useCloudI18n-AKCy98qD.js} +2 -2
- package/dist/{useEditorCore-DKYZ7aKk.js → useEditorCore-vcWLdnjN.js} +1480 -1310
- package/dist/{useI18n-CTs_bP9d.js → useI18n-C-TDeJBt.js} +2 -2
- package/dist/{useMergeTag-e3RSY-s3.js → useMergeTag-DSrBY0-2.js} +6 -6
- package/dist/usePopoverRoot-DKUDnr55.js +8 -0
- package/dist/{vue.runtime.esm-bundler-B2k01iQh.js → vue.runtime.esm-bundler-l0XAqiyv.js} +639 -1151
- package/dist/{x-CGjkjdKK.js → x-CQSvXnGR.js} +1 -1
- package/package.json +27 -27
- package/dist/CloudEditor-DaEfipBn.js +0 -1230
- package/dist/CountdownBlock-DO9fziwf.js +0 -92
- package/dist/CountdownToolbar-BeII06yJ.js +0 -210
- package/dist/ModuleBrowserModal-DsZRr87F.js +0 -198
- package/dist/ParagraphEditor-CZ-cmhX3.js +0 -700
- package/dist/TitleEditor-DbNOcvhR.js +0 -177
- package/dist/cdn/chunks/CloudEditor-BZuzsQOZ.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-pGrfSccu.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-BvFbL16O.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-Kd1MT0u8.js +0 -22
- package/dist/cdn/chunks/de-C2wOXoxs.js.map +0 -1
- package/dist/cdn/chunks/draggable-Bci-fq8y.js.map +0 -1
- package/dist/cdn/chunks/en-dR7zfNC3.js.map +0 -1
- package/dist/cdn/chunks/extensions-CuUjSmuA.js +0 -605
- package/dist/cdn/chunks/extensions-CuUjSmuA.js.map +0 -1
- package/dist/cdn/chunks/features-DU6lA8l1.js.map +0 -1
- package/dist/cdn/chunks/icons-BjHUZZyJ.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-DKKBzRQu.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-BZ86xqK6.js.map +0 -1
- package/dist/cdn/chunks/quality-DNnYAntR.js +0 -2176
- package/dist/cdn/chunks/renderer-CZKO-Tav.js.map +0 -1
- package/dist/cdn/chunks/styles-DiAdtiz9.js +0 -3428
- package/dist/cdn/chunks/styles-DiAdtiz9.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CwScfbsM.js.map +0 -1
- package/dist/createLucideIcon-CmPAC-gt.js +0 -43
- package/dist/dist-BNEdeWub.js +0 -5
- package/dist/dist-Cgry6fNv.js +0 -382
- package/dist/dist-u0iIJH3V.js +0 -5
- package/dist/extensions-XPlNAKIL.js +0 -1720
- package/dist/keys-mFiJ5N0_.js +0 -10
- package/dist/scan-line-XYEqim_E.js +0 -25
- package/dist/styles-D0RCAWhB.js +0 -3647
- package/dist/usePopoverRoot-DVh7NY1q.js +0 -8
|
@@ -1,48 +1,49 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { E as t, G as n, L as r, Q as i, T as a, V as o, Y as s, Z as ee, _ as c, k as l, nt as te, q as u, v as ne, w as re, y as d } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
|
|
3
|
+
import { r as f } from "./runtime-dom.esm-bundler-BzuoCyNp.js";
|
|
4
|
+
import { $ as ie, $t as ae, A as oe, At as se, B as ce, Bt as le, C as ue, Ct as p, D as m, Dt as h, E as g, Et as _, F as v, Ft as y, G as b, Gt as x, H as S, Ht as C, I as w, It as T, J as E, Jt as D, K as O, Kt as k, L as A, Lt as j, M, Mt as N, N as P, Nt as F, O as I, Ot as L, P as R, Pt as z, Q as B, Qt as V, R as H, Rt as U, S as de, St as fe, T as pe, Tt as me, U as he, Ut as ge, V as _e, Vt as ve, W as ye, Wt as be, X as xe, Xt as Se, Y as Ce, Yt as we, Z as Te, Zt as Ee, _ as De, _t as Oe, a as ke, an as Ae, at as je, b as Me, bt as Ne, c as Pe, cn as Fe, ct as Ie, d as Le, dn as Re, dt as ze, en as W, et as Be, f as G, fn as Ve, ft as He, g as Ue, gn as We, gt as Ge, h as Ke, 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 K, 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 dt, ot as ft, p as pt, pn as mt, pt as ht, q as gt, qt as _t, r as vt, rn as yt, rt as bt, s as xt, sn as St, st as Ct, t as wt, tn as Tt, tt as Et, u as Dt, un as Ot, ut as kt, v as At, vt as q, w as jt, wt as Mt, x as Nt, xt as Pt, y as Ft, yt as It, z as Lt, zt as Rt } from "./dist-itdjZraK.js";
|
|
5
|
+
//#region ../../node_modules/.pnpm/@tiptap+vue-3@3.27.3_@floating-ui+dom@1.7.6_@tiptap+core@3.27.3_@tiptap+pm@3.27.3__@tip_ebde622b32a8af7a9ae3373462cfc661/node_modules/@tiptap/vue-3/dist/index.js
|
|
6
|
+
var zt = /* @__PURE__ */ e({
|
|
7
|
+
CommandManager: () => wt,
|
|
7
8
|
Editor: () => Y,
|
|
8
9
|
EditorContent: () => Bt,
|
|
9
|
-
Extendable: () =>
|
|
10
|
-
Extension: () =>
|
|
10
|
+
Extendable: () => vt,
|
|
11
|
+
Extension: () => Ye,
|
|
11
12
|
Fragment: () => ke,
|
|
12
|
-
InputRule: () =>
|
|
13
|
-
MappablePosition: () =>
|
|
13
|
+
InputRule: () => ut,
|
|
14
|
+
MappablePosition: () => xt,
|
|
14
15
|
Mark: () => Pe,
|
|
15
|
-
MarkView: () =>
|
|
16
|
+
MarkView: () => K,
|
|
16
17
|
MarkViewContent: () => Wt,
|
|
17
|
-
Node: () =>
|
|
18
|
+
Node: () => Dt,
|
|
18
19
|
NodePos: () => Le,
|
|
19
|
-
NodeView: () =>
|
|
20
|
+
NodeView: () => G,
|
|
20
21
|
NodeViewContent: () => Vt,
|
|
21
22
|
NodeViewWrapper: () => X,
|
|
22
|
-
PasteRule: () =>
|
|
23
|
-
ResizableNodeView: () =>
|
|
24
|
-
ResizableNodeview: () =>
|
|
25
|
-
Tracker: () =>
|
|
23
|
+
PasteRule: () => pt,
|
|
24
|
+
ResizableNodeView: () => it,
|
|
25
|
+
ResizableNodeview: () => Ke,
|
|
26
|
+
Tracker: () => Ue,
|
|
26
27
|
VueMarkView: () => Q,
|
|
27
28
|
VueMarkViewRenderer: () => Gt,
|
|
28
29
|
VueNodeViewRenderer: () => $,
|
|
29
30
|
VueRenderer: () => Z,
|
|
30
31
|
attrsEqual: () => De,
|
|
31
|
-
callOrReturn: () =>
|
|
32
|
-
canInsertNode: () =>
|
|
32
|
+
callOrReturn: () => At,
|
|
33
|
+
canInsertNode: () => Ft,
|
|
33
34
|
combineTransactionSteps: () => Me,
|
|
34
|
-
commands: () =>
|
|
35
|
+
commands: () => Nt,
|
|
35
36
|
createAtomBlockMarkdownSpec: () => de,
|
|
36
37
|
createBlockMarkdownSpec: () => ue,
|
|
37
|
-
createChainableState: () =>
|
|
38
|
+
createChainableState: () => jt,
|
|
38
39
|
createDocument: () => pe,
|
|
39
|
-
createElement: () =>
|
|
40
|
+
createElement: () => q,
|
|
40
41
|
createInlineMarkdownSpec: () => g,
|
|
41
42
|
createMappablePosition: () => m,
|
|
42
43
|
createNodeFromContent: () => I,
|
|
43
|
-
createStyleTag: () =>
|
|
44
|
+
createStyleTag: () => et,
|
|
44
45
|
decodeHtmlEntities: () => oe,
|
|
45
|
-
defaultBlockAt: () =>
|
|
46
|
+
defaultBlockAt: () => Qe,
|
|
46
47
|
deleteProps: () => M,
|
|
47
48
|
elementFromString: () => P,
|
|
48
49
|
encodeHtmlEntities: () => R,
|
|
@@ -50,7 +51,7 @@ var q = /* @__PURE__ */ e({
|
|
|
50
51
|
extensions: () => w,
|
|
51
52
|
findChildren: () => A,
|
|
52
53
|
findChildrenInRange: () => H,
|
|
53
|
-
findDuplicates: () =>
|
|
54
|
+
findDuplicates: () => Lt,
|
|
54
55
|
findParentNode: () => ce,
|
|
55
56
|
findParentNodeClosestToPos: () => _e,
|
|
56
57
|
flattenExtensions: () => S,
|
|
@@ -58,45 +59,45 @@ var q = /* @__PURE__ */ e({
|
|
|
58
59
|
generateHTML: () => ye,
|
|
59
60
|
generateJSON: () => b,
|
|
60
61
|
generateText: () => O,
|
|
61
|
-
getAttributes: () =>
|
|
62
|
+
getAttributes: () => gt,
|
|
62
63
|
getAttributesFromExtensions: () => E,
|
|
63
64
|
getChangedRanges: () => Ce,
|
|
64
65
|
getDebugJSON: () => xe,
|
|
65
66
|
getExtensionField: () => Te,
|
|
66
67
|
getHTMLFromFragment: () => B,
|
|
67
68
|
getMarkAttributes: () => ie,
|
|
68
|
-
getMarkRange: () =>
|
|
69
|
-
getMarkType: () =>
|
|
70
|
-
getMarksBetween: () =>
|
|
71
|
-
getNodeAtPosition: () =>
|
|
72
|
-
getNodeAttributes: () =>
|
|
69
|
+
getMarkRange: () => Be,
|
|
70
|
+
getMarkType: () => Et,
|
|
71
|
+
getMarksBetween: () => lt,
|
|
72
|
+
getNodeAtPosition: () => bt,
|
|
73
|
+
getNodeAttributes: () => Ze,
|
|
73
74
|
getNodeType: () => je,
|
|
74
|
-
getRenderedAttributes: () =>
|
|
75
|
-
getSchema: () =>
|
|
75
|
+
getRenderedAttributes: () => ft,
|
|
76
|
+
getSchema: () => Ct,
|
|
76
77
|
getSchemaByResolvedExtensions: () => Ie,
|
|
77
|
-
getSchemaTypeByName: () =>
|
|
78
|
-
getSchemaTypeNameByName: () =>
|
|
78
|
+
getSchemaTypeByName: () => rt,
|
|
79
|
+
getSchemaTypeNameByName: () => kt,
|
|
79
80
|
getSplittedAttributes: () => ze,
|
|
80
|
-
getStyleProperty: () =>
|
|
81
|
-
getText: () =>
|
|
82
|
-
getTextBetween: () =>
|
|
83
|
-
getTextContentFromNodes: () =>
|
|
84
|
-
getTextSerializersFromSchema: () =>
|
|
81
|
+
getStyleProperty: () => He,
|
|
82
|
+
getText: () => ht,
|
|
83
|
+
getTextBetween: () => ot,
|
|
84
|
+
getTextContentFromNodes: () => Je,
|
|
85
|
+
getTextSerializersFromSchema: () => Ge,
|
|
85
86
|
getUpdatedPosition: () => Oe,
|
|
86
|
-
h: () =>
|
|
87
|
-
injectExtensionAttributesToParseRule: () =>
|
|
87
|
+
h: () => q,
|
|
88
|
+
injectExtensionAttributesToParseRule: () => It,
|
|
88
89
|
inputRulesPlugin: () => Ne,
|
|
89
|
-
isActive: () =>
|
|
90
|
+
isActive: () => Pt,
|
|
90
91
|
isAndroid: () => fe,
|
|
91
92
|
isAtEndOfNode: () => p,
|
|
92
|
-
isAtStartOfNode: () =>
|
|
93
|
+
isAtStartOfNode: () => Mt,
|
|
93
94
|
isEmptyObject: () => me,
|
|
94
95
|
isExtensionRulesEnabled: () => _,
|
|
95
96
|
isFirefox: () => h,
|
|
96
97
|
isFunction: () => L,
|
|
97
|
-
isList: () =>
|
|
98
|
+
isList: () => tt,
|
|
98
99
|
isMacOS: () => se,
|
|
99
|
-
isMarkActive: () =>
|
|
100
|
+
isMarkActive: () => $e,
|
|
100
101
|
isNodeActive: () => N,
|
|
101
102
|
isNodeEmpty: () => F,
|
|
102
103
|
isNodeSelection: () => z,
|
|
@@ -104,7 +105,7 @@ var q = /* @__PURE__ */ e({
|
|
|
104
105
|
isNumber: () => T,
|
|
105
106
|
isPlainObject: () => j,
|
|
106
107
|
isRegExp: () => U,
|
|
107
|
-
isSafari: () =>
|
|
108
|
+
isSafari: () => Rt,
|
|
108
109
|
isString: () => le,
|
|
109
110
|
isTextSelection: () => ve,
|
|
110
111
|
isiOS: () => C,
|
|
@@ -113,7 +114,7 @@ var q = /* @__PURE__ */ e({
|
|
|
113
114
|
markViewProps: () => Ut,
|
|
114
115
|
markdown: () => x,
|
|
115
116
|
marksEqual: () => k,
|
|
116
|
-
mergeAttributes: () =>
|
|
117
|
+
mergeAttributes: () => _t,
|
|
117
118
|
mergeDeep: () => D,
|
|
118
119
|
minMax: () => we,
|
|
119
120
|
nodeInputRule: () => Se,
|
|
@@ -121,27 +122,27 @@ var q = /* @__PURE__ */ e({
|
|
|
121
122
|
nodeViewProps: () => Kt,
|
|
122
123
|
objectIncludes: () => V,
|
|
123
124
|
parseAttributes: () => ae,
|
|
124
|
-
parseIndentedBlocks: () =>
|
|
125
|
-
pasteRulesPlugin: () =>
|
|
126
|
-
posToDOMRect: () =>
|
|
127
|
-
removeDuplicates: () =>
|
|
128
|
-
renderNestedMarkdownContent: () =>
|
|
125
|
+
parseIndentedBlocks: () => W,
|
|
126
|
+
pasteRulesPlugin: () => Tt,
|
|
127
|
+
posToDOMRect: () => ct,
|
|
128
|
+
removeDuplicates: () => yt,
|
|
129
|
+
renderNestedMarkdownContent: () => Xe,
|
|
129
130
|
resolveExtensions: () => Ae,
|
|
130
|
-
resolveFocusPosition: () =>
|
|
131
|
-
rewriteUnknownContent: () =>
|
|
131
|
+
resolveFocusPosition: () => dt,
|
|
132
|
+
rewriteUnknownContent: () => St,
|
|
132
133
|
selectionToInsertionEnd: () => Fe,
|
|
133
|
-
serializeAttributes: () =>
|
|
134
|
-
sortExtensions: () =>
|
|
134
|
+
serializeAttributes: () => nt,
|
|
135
|
+
sortExtensions: () => Ot,
|
|
135
136
|
splitExtensions: () => Re,
|
|
136
|
-
textInputRule: () =>
|
|
137
|
-
textPasteRule: () =>
|
|
138
|
-
textblockTypeInputRule: () =>
|
|
139
|
-
updateMarkViewAttributes: () =>
|
|
137
|
+
textInputRule: () => Ve,
|
|
138
|
+
textPasteRule: () => mt,
|
|
139
|
+
textblockTypeInputRule: () => at,
|
|
140
|
+
updateMarkViewAttributes: () => qe,
|
|
140
141
|
useEditor: () => Ht,
|
|
141
|
-
wrappingInputRule: () =>
|
|
142
|
+
wrappingInputRule: () => We
|
|
142
143
|
});
|
|
143
144
|
function J(e) {
|
|
144
|
-
return
|
|
145
|
+
return o((t, n) => ({
|
|
145
146
|
get() {
|
|
146
147
|
return t(), e;
|
|
147
148
|
},
|
|
@@ -154,11 +155,11 @@ function J(e) {
|
|
|
154
155
|
}
|
|
155
156
|
}));
|
|
156
157
|
}
|
|
157
|
-
var Y = class extends
|
|
158
|
+
var Y = class extends st {
|
|
158
159
|
constructor(e = {}) {
|
|
159
160
|
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 }) => {
|
|
160
161
|
this.reactiveState.value = e, this.reactiveExtensionStorage.value = this.extensionStorage;
|
|
161
|
-
}),
|
|
162
|
+
}), n(this);
|
|
162
163
|
}
|
|
163
164
|
get state() {
|
|
164
165
|
return this.reactiveState ? this.reactiveState.value : this.view.state;
|
|
@@ -174,35 +175,35 @@ var Y = class extends ct {
|
|
|
174
175
|
let t = super.unregisterPlugin(e);
|
|
175
176
|
return this.reactiveState && t && (this.reactiveState.value = t), t;
|
|
176
177
|
}
|
|
177
|
-
}, Bt =
|
|
178
|
+
}, Bt = c({
|
|
178
179
|
name: "EditorContent",
|
|
179
180
|
props: { editor: {
|
|
180
181
|
default: null,
|
|
181
182
|
type: Object
|
|
182
183
|
} },
|
|
183
184
|
setup(e) {
|
|
184
|
-
let t =
|
|
185
|
-
return
|
|
186
|
-
let
|
|
187
|
-
|
|
188
|
-
if (!t.value || !
|
|
189
|
-
let e =
|
|
190
|
-
t.value.append(...
|
|
191
|
-
...
|
|
192
|
-
provides:
|
|
193
|
-
}),
|
|
185
|
+
let t = s(), n = ne();
|
|
186
|
+
return r(() => {
|
|
187
|
+
let r = e.editor;
|
|
188
|
+
r && r.options.element && t.value && re(() => {
|
|
189
|
+
if (!t.value || !r.view.dom?.parentNode) return;
|
|
190
|
+
let e = te(t.value);
|
|
191
|
+
t.value.append(...r.view.dom.parentNode.childNodes), r.contentComponent = n.ctx._, n && (r.appContext = {
|
|
192
|
+
...n.appContext,
|
|
193
|
+
provides: n.provides
|
|
194
|
+
}), r.setOptions({ element: e }), r.createNodeViews();
|
|
194
195
|
});
|
|
195
|
-
}),
|
|
196
|
+
}), a(() => {
|
|
196
197
|
let t = e.editor;
|
|
197
198
|
t && (t.contentComponent = null, t.appContext = null);
|
|
198
199
|
}), { rootEl: t };
|
|
199
200
|
},
|
|
200
201
|
render() {
|
|
201
|
-
return
|
|
202
|
+
return d("div", { ref: (e) => {
|
|
202
203
|
this.rootEl = e;
|
|
203
204
|
} });
|
|
204
205
|
}
|
|
205
|
-
}), Vt =
|
|
206
|
+
}), Vt = c({
|
|
206
207
|
name: "NodeViewContent",
|
|
207
208
|
props: { as: {
|
|
208
209
|
type: String,
|
|
@@ -218,12 +219,12 @@ var Y = class extends ct {
|
|
|
218
219
|
e && e(null);
|
|
219
220
|
},
|
|
220
221
|
render() {
|
|
221
|
-
return
|
|
222
|
+
return d(this.as, {
|
|
222
223
|
style: { whiteSpace: "pre-wrap" },
|
|
223
224
|
"data-node-view-content": ""
|
|
224
225
|
});
|
|
225
226
|
}
|
|
226
|
-
}), X =
|
|
227
|
+
}), X = c({
|
|
227
228
|
name: "NodeViewWrapper",
|
|
228
229
|
props: { as: {
|
|
229
230
|
type: String,
|
|
@@ -232,7 +233,7 @@ var Y = class extends ct {
|
|
|
232
233
|
inject: ["onDragStart", "decorationClasses"],
|
|
233
234
|
render() {
|
|
234
235
|
var e;
|
|
235
|
-
return
|
|
236
|
+
return d(this.as, {
|
|
236
237
|
class: this.decorationClasses,
|
|
237
238
|
style: { whiteSpace: "normal" },
|
|
238
239
|
"data-node-view-wrapper": "",
|
|
@@ -240,16 +241,16 @@ var Y = class extends ct {
|
|
|
240
241
|
}, (e = this.$slots).default?.call(e));
|
|
241
242
|
}
|
|
242
243
|
}), Ht = (e = {}) => {
|
|
243
|
-
let
|
|
244
|
-
return
|
|
245
|
-
|
|
246
|
-
}),
|
|
244
|
+
let n = ee();
|
|
245
|
+
return t(() => {
|
|
246
|
+
n.value = new Y(e);
|
|
247
|
+
}), a(() => {
|
|
247
248
|
var e;
|
|
248
|
-
(e =
|
|
249
|
-
}),
|
|
249
|
+
(e = n.value) == null || e.destroy();
|
|
250
|
+
}), n;
|
|
250
251
|
}, Z = class {
|
|
251
|
-
constructor(e, { props: t = {}, editor:
|
|
252
|
-
this.destroyed = !1, this.editor =
|
|
252
|
+
constructor(e, { props: t = {}, editor: r }) {
|
|
253
|
+
this.destroyed = !1, this.editor = r, this.component = n(e), this.el = document.createElement("div"), this.props = u(t), this.renderedComponent = this.renderComponent();
|
|
253
254
|
}
|
|
254
255
|
get element() {
|
|
255
256
|
return this.renderedComponent.el;
|
|
@@ -259,7 +260,7 @@ var Y = class extends ct {
|
|
|
259
260
|
}
|
|
260
261
|
renderComponent() {
|
|
261
262
|
if (this.destroyed) return this.renderedComponent;
|
|
262
|
-
let e =
|
|
263
|
+
let e = d(this.component, this.props);
|
|
263
264
|
return this.editor.appContext && (e.appContext = this.editor.appContext), typeof document < "u" && this.el && f(e, this.el), {
|
|
264
265
|
vNode: e,
|
|
265
266
|
destroy: () => {
|
|
@@ -305,25 +306,25 @@ var Y = class extends ct {
|
|
|
305
306
|
type: Object,
|
|
306
307
|
required: !0
|
|
307
308
|
}
|
|
308
|
-
}, Wt =
|
|
309
|
+
}, Wt = c({
|
|
309
310
|
name: "MarkViewContent",
|
|
310
311
|
props: { as: {
|
|
311
312
|
type: String,
|
|
312
313
|
default: "span"
|
|
313
314
|
} },
|
|
314
315
|
render() {
|
|
315
|
-
return
|
|
316
|
+
return d(this.as, {
|
|
316
317
|
style: { whiteSpace: "inherit" },
|
|
317
318
|
"data-mark-view-content": ""
|
|
318
319
|
});
|
|
319
320
|
}
|
|
320
|
-
}), Q = class extends
|
|
321
|
+
}), Q = class extends K {
|
|
321
322
|
constructor(e, t, n) {
|
|
322
323
|
super(e, t, n);
|
|
323
324
|
let r = {
|
|
324
325
|
...t,
|
|
325
326
|
updateAttributes: this.updateAttributes.bind(this)
|
|
326
|
-
}, i =
|
|
327
|
+
}, i = c({
|
|
327
328
|
extends: { ...e },
|
|
328
329
|
props: Object.keys(r),
|
|
329
330
|
template: this.component.template,
|
|
@@ -345,8 +346,8 @@ var Y = class extends ct {
|
|
|
345
346
|
return this.dom.querySelector("[data-mark-view-content]");
|
|
346
347
|
}
|
|
347
348
|
updateAttributes(e) {
|
|
348
|
-
let
|
|
349
|
-
super.updateAttributes(e,
|
|
349
|
+
let t = i(this.mark);
|
|
350
|
+
super.updateAttributes(e, t);
|
|
350
351
|
}
|
|
351
352
|
destroy() {
|
|
352
353
|
this.renderer.destroy();
|
|
@@ -400,7 +401,7 @@ var Kt = {
|
|
|
400
401
|
type: Object,
|
|
401
402
|
required: !0
|
|
402
403
|
}
|
|
403
|
-
}, qt = class extends
|
|
404
|
+
}, qt = class extends G {
|
|
404
405
|
constructor(e, t, n) {
|
|
405
406
|
super(e, t, n), this.cachedExtensionWithSyncedStorage = null, this.handlePositionUpdate = () => {
|
|
406
407
|
let e = this.getPos();
|
|
@@ -430,14 +431,14 @@ var Kt = {
|
|
|
430
431
|
updateAttributes: (e = {}) => this.updateAttributes(e),
|
|
431
432
|
deleteNode: () => this.deleteNode()
|
|
432
433
|
}, t = e, n = this.onDragStart.bind(this);
|
|
433
|
-
this.decorationClasses =
|
|
434
|
-
let r =
|
|
434
|
+
this.decorationClasses = s(this.getDecorationClasses());
|
|
435
|
+
let r = c({
|
|
435
436
|
extends: { ...this.component },
|
|
436
437
|
props: Object.keys(e),
|
|
437
438
|
template: this.component.template,
|
|
438
439
|
setup: (e) => {
|
|
439
440
|
var t;
|
|
440
|
-
return
|
|
441
|
+
return l("onDragStart", n), l("decorationClasses", this.decorationClasses), l("nodeViewContentRef", (e) => {
|
|
441
442
|
this.contentDOMElement && e && e.firstChild !== this.contentDOMElement && e.appendChild(this.contentDOMElement);
|
|
442
443
|
}), (t = this.component).setup?.call(t, e, { expose: () => void 0 });
|
|
443
444
|
},
|
|
@@ -446,7 +447,7 @@ var Kt = {
|
|
|
446
447
|
__name: this.component.__name,
|
|
447
448
|
__file: this.component.__file
|
|
448
449
|
});
|
|
449
|
-
this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this), this.editor.on("selectionUpdate", this.handleSelectionUpdate), this.currentPos = this.getPos(), this.node.isLeaf || (this.contentDOMElement = document.createElement(this.node.isInline ? "span" : "div"), this.contentDOMElement.style.whiteSpace = "inherit", this.contentDOMElement.dataset.nodeViewContentVue = ""), this.renderer = new Z(r, {
|
|
450
|
+
this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this), this.editor.on("selectionUpdate", this.handleSelectionUpdate), this.currentPos = this.getPos(), this.node.isLeaf || (this.options.contentDOMElementTag ? this.contentDOMElement = document.createElement(this.options.contentDOMElementTag) : this.contentDOMElement = document.createElement(this.node.isInline ? "span" : "div"), this.contentDOMElement.style.whiteSpace = "inherit", this.contentDOMElement.dataset.nodeViewContentVue = ""), this.renderer = new Z(r, {
|
|
450
451
|
editor: this.editor,
|
|
451
452
|
props: t
|
|
452
453
|
});
|
|
@@ -522,4 +523,4 @@ function $(e, t) {
|
|
|
522
523
|
return (n) => n.editor.contentComponent ? new qt(typeof e == "function" && "__vccOpts" in e ? e.__vccOpts : e, n, t) : {};
|
|
523
524
|
}
|
|
524
525
|
//#endregion
|
|
525
|
-
export { $ as n,
|
|
526
|
+
export { $ as n, zt as r, X as t };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Color as e } from "./dist-SXJJ2v41.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@tiptap+extension-color@3.27.3_@tiptap+extension-text-style@3.27.3_@tiptap+core@3.27.3_@tiptap+pm@3.27.3__/node_modules/@tiptap/extension-color/dist/index.js
|
|
3
|
+
var t = e;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { e as Color, t as default };
|