@templatical/editor 0.25.2 → 0.26.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/dist/{AiChatSidebar-JLsbPnsH.js → AiChatSidebar-B_fwa6zc.js} +8 -8
- package/dist/{AiFeatureMenu-BvA-lViN.js → AiFeatureMenu-BBBKsYD4.js} +4 -4
- package/dist/{BlockIssueBadge-Cf0-GC3o.js → BlockIssueBadge-Buk3_6QF.js} +2 -2
- package/dist/{BlockPreviewCanvas-CnJIM5TO.js → BlockPreviewCanvas-zyyq2de0.js} +1 -1
- package/dist/{CloudEditor-Caq7z4-7.js → CloudEditor-DM3RRCVn.js} +19 -19
- package/dist/{CollaboratorBar-BFz4LgA0.js → CollaboratorBar-Coj8Ebwf.js} +2 -2
- package/dist/{ColorPicker-B5xXWWX5.js → ColorPicker-ClETsjA3.js} +1 -1
- package/dist/{CommentsSidebar-CGihWwn9.js → CommentsSidebar-CdRCCSDD.js} +10 -10
- package/dist/{CountdownToolbar-DpNCZAUI.js → CountdownToolbar-CBE9wRaV.js} +2 -2
- package/dist/{DesignReferenceSidebar-CiIHHiil.js → DesignReferenceSidebar-hDXOvGoV.js} +6 -6
- package/dist/{IssuesPanel-CUkmAC_S.js → IssuesPanel-Do7RLXsP.js} +5 -5
- package/dist/{MergeTagModeToggle-C6nS3qri.js → MergeTagModeToggle-D0t5NHBZ.js} +3 -3
- package/dist/{MergeTagSuggestion-98fAcuM-.js → MergeTagSuggestion-BJ43ihWR.js} +9 -9
- package/dist/{NumberWithSuffix-DB-1GNvx.js → NumberWithSuffix-D37ZWiZh.js} +1 -1
- package/dist/{ParagraphEditor-NgW-T9YV.js → ParagraphEditor-B-CYrQMY.js} +19 -19
- package/dist/{RichTextEditorContent-CN7OVR6u.js → RichTextEditorContent-fbYJXAio.js} +3 -3
- package/dist/{SaveBlockDialog-lgcmhAsO.js → SaveBlockDialog-CoVPZfUv.js} +6 -6
- package/dist/{SavedBlocksBrowserModal-3u247V2z.js → SavedBlocksBrowserModal-DX13xw0O.js} +7 -7
- package/dist/{SavedBlocksPanels-Dh6dABJt.js → SavedBlocksPanels-B7pBiZcc.js} +1 -1
- package/dist/{SavedBlocksPickBar-Bo82D3Qy.js → SavedBlocksPickBar-ZfqXByph.js} +2 -2
- package/dist/{SnapshotHistory-Dsb1i40w.js → SnapshotHistory-BxABntv5.js} +11 -11
- package/dist/{TemplateScoringPanel-Bzd_YSag.js → TemplateScoringPanel-BZUsb3FD.js} +10 -10
- package/dist/{TestEmailModal-DvqDTOcO.js → TestEmailModal-Db4qheuy.js} +7 -7
- package/dist/{TestEmailPanel-BXoVnAqu.js → TestEmailPanel-B-SXSnRg.js} +1 -1
- package/dist/{TitleEditor-DWSi998C.js → TitleEditor-DmoaKooA.js} +8 -8
- package/dist/{TplModal-DKn0h2qe.js → TplModal-Bym-Kf_i.js} +1 -1
- package/dist/{blockTypeIcons-DKlza6aR.js → blockTypeIcons-BnCXsB2I.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiChatSidebar-BY1Iy-e8.js → AiChatSidebar-CFvS4-EZ.js} +35 -35
- package/dist/cdn/chunks/{AiChatSidebar-BY1Iy-e8.js.map → AiChatSidebar-CFvS4-EZ.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-BS4Rek6j.js → AiFeatureMenu-a0gBZiJ9.js} +11 -11
- package/dist/cdn/chunks/{AiFeatureMenu-BS4Rek6j.js.map → AiFeatureMenu-a0gBZiJ9.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-BcIQUe_Q.js → BlockIssueBadge-BEEY9o2o.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-BcIQUe_Q.js.map → BlockIssueBadge-BEEY9o2o.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-oND1iXLL.js → BlockPreviewCanvas-C27XK2q0.js} +22 -22
- package/dist/cdn/chunks/{BlockPreviewCanvas-oND1iXLL.js.map → BlockPreviewCanvas-C27XK2q0.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-BaqiFbf0.js → CloudEditor-Ddnatfuw.js} +65 -65
- package/dist/cdn/chunks/{CloudEditor-BaqiFbf0.js.map → CloudEditor-Ddnatfuw.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-DF02nTwF.js → CollaboratorBar-C5Xf6Mz9.js} +12 -12
- package/dist/cdn/chunks/{CollaboratorBar-DF02nTwF.js.map → CollaboratorBar-C5Xf6Mz9.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-BXH44v2H.js → ColorPicker-W_UyiVGc.js} +131 -131
- package/dist/cdn/chunks/{ColorPicker-BXH44v2H.js.map → ColorPicker-W_UyiVGc.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-B9bWvvbl.js → CommentsSidebar-BLRZRSSC.js} +112 -112
- package/dist/cdn/chunks/{CommentsSidebar-B9bWvvbl.js.map → CommentsSidebar-BLRZRSSC.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-BTpRd0Hn.js → CountdownBlock-vLTkTI9e.js} +11 -11
- package/dist/cdn/chunks/{CountdownBlock-BTpRd0Hn.js.map → CountdownBlock-vLTkTI9e.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CW10rbWt.js → CountdownToolbar-DPjcgcVR.js} +41 -41
- package/dist/cdn/chunks/{CountdownToolbar-CW10rbWt.js.map → CountdownToolbar-DPjcgcVR.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-BXjH47QC.js → DesignReferenceSidebar-CZiP00JN.js} +28 -28
- package/dist/cdn/chunks/{DesignReferenceSidebar-BXjH47QC.js.map → DesignReferenceSidebar-CZiP00JN.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DStHCHfr.js → IssuesPanel-DKTS4QVb.js} +32 -32
- package/dist/cdn/chunks/{IssuesPanel-DStHCHfr.js.map → IssuesPanel-DKTS4QVb.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-DQowK3MV.js → LoadingTrack-C52ZGL5q.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-DQowK3MV.js.map → LoadingTrack-C52ZGL5q.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BCmQg4Qe.js → MergeTagModeToggle-ClGdRNpZ.js} +20 -20
- package/dist/cdn/chunks/{MergeTagModeToggle-BCmQg4Qe.js.map → MergeTagModeToggle-ClGdRNpZ.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-BgExdloL.js → MergeTagSuggestion-Dn8dExNa.js} +18 -18
- package/dist/cdn/chunks/{MergeTagSuggestion-BgExdloL.js.map → MergeTagSuggestion-Dn8dExNa.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-BANVbpT0.js → NumberWithSuffix-BXrRdfq1.js} +22 -22
- package/dist/cdn/chunks/{NumberWithSuffix-BANVbpT0.js.map → NumberWithSuffix-BXrRdfq1.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DqilB4_f.js → ParagraphEditor-BNc146Pp.js} +43 -43
- package/dist/cdn/chunks/{ParagraphEditor-DqilB4_f.js.map → ParagraphEditor-BNc146Pp.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-BeJx4LVH.js → RichTextEditorContent-DtL49Jpo.js} +20 -20
- package/dist/cdn/chunks/{RichTextEditorContent-BeJx4LVH.js.map → RichTextEditorContent-DtL49Jpo.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-Dm31xRZy.js → SaveBlockDialog-ogieDQp7.js} +43 -43
- package/dist/cdn/chunks/{SaveBlockDialog-Dm31xRZy.js.map → SaveBlockDialog-ogieDQp7.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-Tp37b4y7.js → SavedBlocksBrowserModal-DSpZcT_T.js} +62 -62
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-Tp37b4y7.js.map → SavedBlocksBrowserModal-DSpZcT_T.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-ElerTTa_.js → SavedBlocksPanels-WYrSyf-l.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-ElerTTa_.js.map → SavedBlocksPanels-WYrSyf-l.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-QHJ-Mjx0.js → SavedBlocksPickBar-DGbLBG5P.js} +12 -12
- package/dist/cdn/chunks/{SavedBlocksPickBar-QHJ-Mjx0.js.map → SavedBlocksPickBar-DGbLBG5P.js.map} +1 -1
- package/dist/cdn/chunks/{SnapshotHistory-jogWGLB-.js → SnapshotHistory-VyL4tJwn.js} +26 -26
- package/dist/cdn/chunks/{SnapshotHistory-jogWGLB-.js.map → SnapshotHistory-VyL4tJwn.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-B2XIOTl-.js → TemplateScoringPanel-NucRtAP0.js} +34 -34
- package/dist/cdn/chunks/{TemplateScoringPanel-B2XIOTl-.js.map → TemplateScoringPanel-NucRtAP0.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-BcPjQygV.js → TestEmailModal-DRte11oT.js} +31 -31
- package/dist/cdn/chunks/{TestEmailModal-BcPjQygV.js.map → TestEmailModal-DRte11oT.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-1zxRa00s.js → TestEmailPanel-CpK5t4E3.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-1zxRa00s.js.map → TestEmailPanel-CpK5t4E3.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-DTrmublj.js → TitleEditor-EkDchueW.js} +35 -35
- package/dist/cdn/chunks/{TitleEditor-DTrmublj.js.map → TitleEditor-EkDchueW.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-By50gtwa.js → TplModal-BGLstO3F.js} +17 -17
- package/dist/cdn/chunks/{TplModal-By50gtwa.js.map → TplModal-BGLstO3F.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-BhFhHuFt.js → blockTypeIcons-FXlMM3PL.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-BhFhHuFt.js.map → blockTypeIcons-FXlMM3PL.js.map} +1 -1
- package/dist/cdn/chunks/{cloud-B0f7Ub8f.js → cloud-CNpvDuv7.js} +3 -3
- package/dist/cdn/chunks/{cloud-B0f7Ub8f.js.map → cloud-CNpvDuv7.js.map} +1 -1
- package/dist/cdn/chunks/{dist-H51neg3K.js → dist-B2HKGHnc.js} +3 -3
- package/dist/cdn/chunks/{dist-H51neg3K.js.map → dist-B2HKGHnc.js.map} +1 -1
- package/dist/cdn/chunks/{dist-B4VIlp1g.js → dist-C6z8AjBC.js} +2 -2
- package/dist/cdn/chunks/{dist-B4VIlp1g.js.map → dist-C6z8AjBC.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-Z4XXmbPC.js → draggable-DCs9qL-b.js} +2 -2
- package/dist/cdn/chunks/{draggable-Z4XXmbPC.js.map → draggable-DCs9qL-b.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-Dq0D79tq.js → extensions-CZAB08kD.js} +22 -22
- package/dist/cdn/chunks/{extensions-Dq0D79tq.js.map → extensions-CZAB08kD.js.map} +1 -1
- package/dist/cdn/chunks/{icons-C_kRN0_C.js → icons-CvYN6zrM.js} +8 -8
- package/dist/cdn/chunks/{icons-C_kRN0_C.js.map → icons-CvYN6zrM.js.map} +1 -1
- package/dist/cdn/chunks/{keys-DsoX52o_.js → keys-Cmc2Yl3D.js} +2 -2
- package/dist/cdn/chunks/{keys-DsoX52o_.js.map → keys-Cmc2Yl3D.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-DrGys_ek.js → liquid.browser-UlAOKBjI.js} +99 -91
- package/dist/cdn/chunks/liquid.browser-UlAOKBjI.js.map +1 -0
- package/dist/cdn/chunks/{src-CRvTVX4F.js → src-BRRRFqXr.js} +201 -201
- package/dist/cdn/chunks/{src-CRvTVX4F.js.map → src-BRRRFqXr.js.map} +1 -1
- package/dist/cdn/chunks/{src-Aea1Vl1H.js → src-COnW7gMq.js} +123 -123
- package/dist/cdn/chunks/src-COnW7gMq.js.map +1 -0
- package/dist/cdn/chunks/{src-CZjSXPYq.js → src-DsvVSm7Z.js} +221 -166
- package/dist/cdn/chunks/src-DsvVSm7Z.js.map +1 -0
- package/dist/cdn/chunks/{src-_GNJgPcS.js → src-DzH5U9Vm.js} +79 -79
- package/dist/cdn/chunks/{src-_GNJgPcS.js.map → src-DzH5U9Vm.js.map} +1 -1
- package/dist/cdn/chunks/{styles-znpPfrFd.js → styles-DEU_sn3k.js} +935 -917
- package/dist/cdn/chunks/styles-DEU_sn3k.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-C5vzWlHv.js → tiptap-C44S1Cmh.js} +3480 -2806
- package/dist/cdn/chunks/tiptap-C44S1Cmh.js.map +1 -0
- package/dist/cdn/chunks/{useAliveFlag-4IDYQRNu.js → useAliveFlag-Dxwgo6P4.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-4IDYQRNu.js.map → useAliveFlag-Dxwgo6P4.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-D4JpHTPk.js → useCloudI18n-8wkJtuJD.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-D4JpHTPk.js.map → useCloudI18n-8wkJtuJD.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-BMXBmdd8.js → useEditorCore-fyFmWS3D.js} +297 -297
- package/dist/cdn/chunks/useEditorCore-fyFmWS3D.js.map +1 -0
- package/dist/cdn/chunks/{useI18n-BvcEYzrI.js → useI18n-UMs0F71x.js} +3 -3
- package/dist/cdn/chunks/{useI18n-BvcEYzrI.js.map → useI18n-UMs0F71x.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-BSdxMUzg.js → useMergeTag-DjQoCGEz.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-BSdxMUzg.js.map → useMergeTag-DjQoCGEz.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-ig-71caO.js → usePopoverPosition-cf8Y-ynK.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-ig-71caO.js.map → usePopoverPosition-cf8Y-ynK.js.map} +1 -1
- package/dist/cdn/editor.js +47 -47
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-COV27dGb.js → check-On4TSac-.js} +1 -1
- package/dist/{chevron-down-vsU88vcr.js → chevron-down-69EiBGoB.js} +1 -1
- package/dist/{chevron-up-RrZ0Rjn9.js → chevron-up-Dh3MG1Dw.js} +1 -1
- package/dist/{circle-alert-B6GlHmmi.js → circle-alert-cilwzafX.js} +1 -1
- package/dist/{clock-egOt8zjQ.js → clock-Dt0APH92.js} +1 -1
- package/dist/{cloud-D-2StbvU.js → cloud-4SuOLNTK.js} +1 -1
- package/dist/{createLucideIcon-D6cqT5Pm.js → createLucideIcon-C8WzBYCv.js} +2 -2
- package/dist/dist-6YJAWMuf.js +5 -0
- package/dist/dist-8vlm9kfO.js +5 -0
- package/dist/{dist-DHwnYYx0.js → dist-BImfm-46.js} +2 -2
- package/dist/{dist-CQ0fVBQ3.js → dist-BvYvG5SQ.js} +110 -57
- package/dist/{dist-DzzTB4eE.js → dist-C08jiemd.js} +7 -7
- package/dist/{dist-CqV4XslQ.js → dist-C27SeFL5.js} +15 -15
- package/dist/{dist-MwT7T6Xp.js → dist-CYx-E82k.js} +2 -2
- package/dist/{dist-CHxPjcxA.js → dist-ChYLhoJ4.js} +2143 -1583
- package/dist/{dist-UkG5ZJ1P.js → dist-Cl8J0IES.js} +258 -172
- package/dist/{dist-D4GoAr2g.js → dist-DMJRSouD.js} +464 -436
- package/dist/{dist-GUZZpDK3.js → dist-DfpeSdmE.js} +2 -2
- package/dist/{dist-Du95Y9M3.js → dist-M7m1lYRe.js} +47 -47
- package/dist/{dist-vpuiQ7_Q.js → dist-g6cbzhZW.js} +2 -2
- package/dist/{extensions-y6KjLr9t.js → extensions-Dz5jj0wf.js} +16 -16
- package/dist/{image-up-CycES-MQ.js → image-up-Ceggh_R3.js} +1 -1
- package/dist/{info-BUdvm046.js → info-DO5odBcZ.js} +1 -1
- package/dist/{liquid.browser-Di5zMIEx.js → liquid.browser-B-rGrnrQ.js} +98 -90
- package/dist/{list-checks-BAeuuATD.js → list-checks-BSkPKbuI.js} +1 -1
- package/dist/{loader-circle-L5yuAx_j.js → loader-circle-bO7o7_HD.js} +1 -1
- package/dist/{message-circle-DRdaapVc.js → message-circle-BEkAk65X.js} +1 -1
- package/dist/{pencil-BfErVPf_.js → pencil-t6m0EtKL.js} +1 -1
- package/dist/{refresh-cw-D0PYatER.js → refresh-cw-CkOYVzK5.js} +1 -1
- package/dist/{scan-line-Byi3fJcr.js → scan-line-DwSVj25O.js} +1 -1
- package/dist/{send-DuyNexMY.js → send-CWsWN8PQ.js} +1 -1
- package/dist/{shield-check-BkkN_1qw.js → shield-check-qje8Kufw.js} +1 -1
- package/dist/{sparkles-DAw2sBXk.js → sparkles-DumaWRW-.js} +1 -1
- package/dist/{styles-BzwheHH_.js → styles-DbP2S8Z1.js} +446 -428
- package/dist/templatical-editor.js +9 -9
- package/dist/{text-align-start-Ba3xJKn6.js → text-align-start-Ir8Ah4mT.js} +1 -1
- package/dist/{trash-2-CapEBXBI.js → trash-2-CklAFCmO.js} +1 -1
- package/dist/{triangle-alert-52pdw8jI.js → triangle-alert-BBi4n93g.js} +1 -1
- package/dist/{upload-oAgigC31.js → upload-sVqqppuv.js} +1 -1
- package/dist/{useEditorCore-BhjEMSeE.js → useEditorCore-CbcmGpwp.js} +889 -889
- package/dist/{useMergeTag-DTSOQnyr.js → useMergeTag-B9xG9EJ7.js} +1 -1
- package/dist/{x-DvBgbDuf.js → x-Mby7KlhS.js} +1 -1
- package/package.json +23 -23
- package/dist/cdn/chunks/liquid.browser-DrGys_ek.js.map +0 -1
- package/dist/cdn/chunks/src-Aea1Vl1H.js.map +0 -1
- package/dist/cdn/chunks/src-CZjSXPYq.js.map +0 -1
- package/dist/cdn/chunks/styles-znpPfrFd.js.map +0 -1
- package/dist/cdn/chunks/tiptap-C5vzWlHv.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-BMXBmdd8.js.map +0 -1
- package/dist/dist-B56SufAv.js +0 -5
- package/dist/dist-BQZkRg05.js +0 -5
|
@@ -1,147 +1,171 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
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,
|
|
3
|
-
import { r as
|
|
4
|
-
import { $ as
|
|
5
|
-
//#region ../../node_modules/.pnpm/@tiptap+vue-3@3.
|
|
6
|
-
var
|
|
7
|
-
CommandManager: () =>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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, at as l, k as u, nt as te, q as d, v as f, w as ne, y as p } from "./vue.runtime.esm-bundler-D1diBMsm.js";
|
|
3
|
+
import { r as m } from "./runtime-dom.esm-bundler-CepEmvwF.js";
|
|
4
|
+
import { $ as re, $t as ie, A as ae, An as oe, At as se, B as ce, Bt as le, C as ue, Cn as de, Ct as fe, D as h, Dn as g, Dt as _, E as v, En as y, Et as b, F as x, Fn as S, Ft as C, G as w, Gt as T, H as E, Ht as D, I as O, In as k, It as A, J as j, Jt as M, K as N, Kt as P, L as F, Ln as I, Lt as L, M as R, Mn as z, Mt as B, N as V, Nn as pe, Nt as me, O as he, On as ge, Ot as _e, P as ve, Pn as ye, Pt as be, Q as xe, Qt as Se, R as Ce, Rn as we, Rt as Te, S as Ee, Sn as De, St as Oe, T as ke, Tn as Ae, Tt as je, U as Me, Ut as H, V as Ne, Vt as Pe, W as Fe, Wt as Ie, X as Le, Xt as Re, Y as ze, Yt as Be, Z as Ve, Zt as He, _ as U, _n as Ue, _t as We, a as Ge, an as Ke, at as qe, b as Je, bn as Ye, bt as Xe, c as Ze, cn as Qe, ct as $e, d as et, dn as tt, dt as W, en as nt, et as rt, f as it, fn as at, ft as ot, g as st, gn as ct, gt as lt, h as ut, hn as dt, ht as ft, i as pt, in as mt, it as ht, j as gt, jn as _t, jt as vt, k as yt, kn as bt, kt as xt, l as St, ln as Ct, lt as wt, m as Tt, mn as Et, mt as Dt, n as Ot, nn as kt, nt as At, o as jt, on as Mt, ot as Nt, p as G, pn as Pt, pt as Ft, q as It, qt as Lt, r as Rt, rn as zt, rt as Bt, s as Vt, sn as Ht, st as Ut, t as Wt, tn as Gt, tt as Kt, u as qt, un as Jt, ut as Yt, v as Xt, vn as Zt, vt as Qt, w as $t, wn as en, wt as tn, x as nn, xn as rn, xt as an, y as on, yn as sn, yt as cn, z as ln, zn as un, zt as dn } from "./dist-ChYLhoJ4.js";
|
|
5
|
+
//#region ../../node_modules/.pnpm/@tiptap+vue-3@3.30.1_@floating-ui+dom@1.8.0_@tiptap+core@3.30.1_@tiptap+pm@3.30.1__@tip_771dbc12d4bdce024804a32b81522205/node_modules/@tiptap/vue-3/dist/index.js
|
|
6
|
+
var fn = /* @__PURE__ */ e({
|
|
7
|
+
CommandManager: () => Wt,
|
|
8
|
+
DECORATION_MANAGER_PLUGIN_KEY: () => Ot,
|
|
9
|
+
Decoration: () => Rt,
|
|
10
|
+
DecorationManager: () => pt,
|
|
11
|
+
Editor: () => q,
|
|
12
|
+
EditorContent: () => pn,
|
|
13
|
+
Extendable: () => jt,
|
|
14
|
+
Extension: () => Vt,
|
|
15
|
+
Fragment: () => Ze,
|
|
16
|
+
InlineDecoration: () => St,
|
|
17
|
+
InputRule: () => qt,
|
|
18
|
+
MappablePosition: () => et,
|
|
19
|
+
Mark: () => it,
|
|
20
|
+
MarkView: () => G,
|
|
21
|
+
MarkViewContent: () => _n,
|
|
22
|
+
Node: () => Tt,
|
|
23
|
+
NodeDecoration: () => ut,
|
|
24
|
+
NodePos: () => st,
|
|
25
|
+
NodeView: () => U,
|
|
26
|
+
NodeViewContent: () => mn,
|
|
27
|
+
NodeViewWrapper: () => J,
|
|
28
|
+
PasteRule: () => Xt,
|
|
29
|
+
ResizableNodeView: () => on,
|
|
30
|
+
ResizableNodeview: () => Je,
|
|
31
|
+
Tracker: () => nn,
|
|
32
|
+
VueMarkView: () => X,
|
|
33
|
+
VueMarkViewRenderer: () => vn,
|
|
34
|
+
VueNodeViewRenderer: () => Z,
|
|
35
|
+
VueRenderer: () => Y,
|
|
36
|
+
VueWidgetRenderer: () => wn,
|
|
37
|
+
WidgetDecoration: () => Ee,
|
|
38
|
+
attrsEqual: () => ue,
|
|
39
|
+
callOrReturn: () => $t,
|
|
40
|
+
canInsertNode: () => ke,
|
|
41
|
+
combineTransactionSteps: () => v,
|
|
42
|
+
commands: () => h,
|
|
43
|
+
createAtomBlockMarkdownSpec: () => he,
|
|
44
|
+
createBlockMarkdownSpec: () => yt,
|
|
45
|
+
createChainableState: () => ae,
|
|
46
|
+
createDocument: () => gt,
|
|
47
|
+
createElement: () => b,
|
|
48
|
+
createInlineMarkdownSpec: () => R,
|
|
49
|
+
createMappablePosition: () => V,
|
|
50
|
+
createNodeFromContent: () => ve,
|
|
51
|
+
createStyleTag: () => x,
|
|
52
|
+
createWidgetDecoration: () => O,
|
|
53
|
+
decodeHtmlEntities: () => F,
|
|
54
|
+
defaultBlockAt: () => Ce,
|
|
55
|
+
deleteProps: () => ln,
|
|
56
|
+
elementFromString: () => ce,
|
|
57
|
+
encodeHtmlEntities: () => Ne,
|
|
58
|
+
escapeForRegEx: () => E,
|
|
59
|
+
extensions: () => Me,
|
|
60
|
+
findChildren: () => Fe,
|
|
61
|
+
findChildrenInRange: () => w,
|
|
62
|
+
findDuplicates: () => N,
|
|
63
|
+
findParentNode: () => It,
|
|
64
|
+
findParentNodeClosestToPos: () => j,
|
|
65
|
+
flattenExtensions: () => ze,
|
|
66
|
+
fromString: () => Le,
|
|
67
|
+
generateHTML: () => Ve,
|
|
68
|
+
generateJSON: () => xe,
|
|
69
|
+
generateText: () => re,
|
|
70
|
+
getAttributes: () => rt,
|
|
71
|
+
getAttributesFromExtensions: () => Kt,
|
|
72
|
+
getChangedRanges: () => At,
|
|
73
|
+
getDebugJSON: () => Bt,
|
|
74
|
+
getExtensionField: () => ht,
|
|
75
|
+
getHTMLFromFragment: () => qe,
|
|
76
|
+
getMarkAttributes: () => Nt,
|
|
77
|
+
getMarkRange: () => Ut,
|
|
78
|
+
getMarkType: () => $e,
|
|
79
|
+
getMarksBetween: () => wt,
|
|
80
|
+
getNodeAtPosition: () => Yt,
|
|
81
|
+
getNodeAttributes: () => W,
|
|
82
|
+
getNodeType: () => ot,
|
|
83
|
+
getPreviousBlockSibling: () => Ft,
|
|
84
|
+
getRenderedAttributes: () => Dt,
|
|
85
|
+
getSchema: () => ft,
|
|
86
|
+
getSchemaByResolvedExtensions: () => lt,
|
|
87
|
+
getSchemaTypeByName: () => We,
|
|
88
|
+
getSchemaTypeNameByName: () => Qt,
|
|
89
|
+
getSplittedAttributes: () => cn,
|
|
90
|
+
getStyleProperty: () => Xe,
|
|
91
|
+
getText: () => an,
|
|
92
|
+
getTextBetween: () => Oe,
|
|
93
|
+
getTextContentFromNodes: () => fe,
|
|
94
|
+
getTextSerializersFromSchema: () => tn,
|
|
95
|
+
getUpdatedPosition: () => je,
|
|
96
|
+
h: () => b,
|
|
97
|
+
injectExtensionAttributesToParseRule: () => _,
|
|
98
|
+
inputRulesPlugin: () => _e,
|
|
99
|
+
isActive: () => xt,
|
|
100
|
+
isAndroid: () => se,
|
|
101
|
+
isAtEndOfNode: () => vt,
|
|
102
|
+
isAtStartOfNode: () => B,
|
|
94
103
|
isEmptyObject: () => me,
|
|
95
|
-
isExtensionRulesEnabled: () =>
|
|
96
|
-
isFirefox: () =>
|
|
97
|
-
isFunction: () =>
|
|
98
|
-
isList: () =>
|
|
99
|
-
isMacOS: () =>
|
|
100
|
-
isMarkActive: () =>
|
|
101
|
-
isNodeActive: () =>
|
|
102
|
-
isNodeEmpty: () =>
|
|
103
|
-
isNodeSelection: () =>
|
|
104
|
-
isNodeViewSelected: () =>
|
|
105
|
-
isNumber: () =>
|
|
106
|
-
isPlainObject: () =>
|
|
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
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
104
|
+
isExtensionRulesEnabled: () => be,
|
|
105
|
+
isFirefox: () => C,
|
|
106
|
+
isFunction: () => A,
|
|
107
|
+
isList: () => L,
|
|
108
|
+
isMacOS: () => Te,
|
|
109
|
+
isMarkActive: () => dn,
|
|
110
|
+
isNodeActive: () => le,
|
|
111
|
+
isNodeEmpty: () => Pe,
|
|
112
|
+
isNodeSelection: () => D,
|
|
113
|
+
isNodeViewSelected: () => H,
|
|
114
|
+
isNumber: () => Ie,
|
|
115
|
+
isPlainObject: () => T,
|
|
116
|
+
isProseMirrorAddMarkStep: () => P,
|
|
117
|
+
isProseMirrorAddNodeMarkStep: () => Lt,
|
|
118
|
+
isProseMirrorAttrStep: () => M,
|
|
119
|
+
isProseMirrorCellSelection: () => Be,
|
|
120
|
+
isProseMirrorDocAttrStep: () => Re,
|
|
121
|
+
isProseMirrorFragment: () => He,
|
|
122
|
+
isProseMirrorNodeSelection: () => Se,
|
|
123
|
+
isProseMirrorRemoveMarkStep: () => ie,
|
|
124
|
+
isProseMirrorRemoveNodeMarkStep: () => nt,
|
|
125
|
+
isProseMirrorReplaceAroundStep: () => Gt,
|
|
126
|
+
isProseMirrorReplaceStep: () => kt,
|
|
127
|
+
isProseMirrorSlice: () => zt,
|
|
128
|
+
isProseMirrorStep: () => mt,
|
|
129
|
+
isProseMirrorStepResult: () => Ke,
|
|
130
|
+
isRegExp: () => Mt,
|
|
131
|
+
isSafari: () => Ht,
|
|
132
|
+
isString: () => Qe,
|
|
133
|
+
isTextSelection: () => Ct,
|
|
134
|
+
isiOS: () => Jt,
|
|
135
|
+
liveWidgetKeys: () => tt,
|
|
136
|
+
markInputRule: () => at,
|
|
137
|
+
markPasteRule: () => Pt,
|
|
138
|
+
markViewProps: () => gn,
|
|
139
|
+
markdown: () => Et,
|
|
140
|
+
marksEqual: () => dt,
|
|
141
|
+
mergeAttributes: () => ct,
|
|
142
|
+
mergeDeep: () => Ue,
|
|
143
|
+
minMax: () => Zt,
|
|
144
|
+
nodeInputRule: () => sn,
|
|
145
|
+
nodePasteRule: () => Ye,
|
|
146
|
+
nodeViewProps: () => yn,
|
|
147
|
+
objectIncludes: () => rn,
|
|
148
|
+
parseAttributes: () => De,
|
|
149
|
+
parseIndentedBlocks: () => de,
|
|
150
|
+
pasteRulesPlugin: () => en,
|
|
151
|
+
posToDOMRect: () => Ae,
|
|
152
|
+
removeDuplicates: () => y,
|
|
153
|
+
renderNestedMarkdownContent: () => g,
|
|
154
|
+
resolveExtensions: () => ge,
|
|
155
|
+
resolveFocusPosition: () => bt,
|
|
156
|
+
rewriteUnknownContent: () => oe,
|
|
157
|
+
selectionToInsertionEnd: () => _t,
|
|
158
|
+
serializeAttributes: () => z,
|
|
159
|
+
sortExtensions: () => pe,
|
|
160
|
+
splitExtensions: () => ye,
|
|
161
|
+
textInputRule: () => S,
|
|
162
|
+
textPasteRule: () => k,
|
|
163
|
+
textblockTypeInputRule: () => I,
|
|
164
|
+
updateMarkViewAttributes: () => we,
|
|
165
|
+
useEditor: () => hn,
|
|
166
|
+
wrappingInputRule: () => un
|
|
143
167
|
});
|
|
144
|
-
function
|
|
168
|
+
function K(e) {
|
|
145
169
|
return o((t, n) => ({
|
|
146
170
|
get() {
|
|
147
171
|
return t(), e;
|
|
@@ -155,9 +179,9 @@ function J(e) {
|
|
|
155
179
|
}
|
|
156
180
|
}));
|
|
157
181
|
}
|
|
158
|
-
var
|
|
182
|
+
var q = class extends Ge {
|
|
159
183
|
constructor(e = {}) {
|
|
160
|
-
return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState =
|
|
184
|
+
return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = K(this.view.state), this.reactiveExtensionStorage = K(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
|
|
161
185
|
this.reactiveState.value = e, this.reactiveExtensionStorage.value = this.extensionStorage;
|
|
162
186
|
}), n(this);
|
|
163
187
|
}
|
|
@@ -175,17 +199,17 @@ var Y = class extends st {
|
|
|
175
199
|
let t = super.unregisterPlugin(e);
|
|
176
200
|
return this.reactiveState && t && (this.reactiveState.value = t), t;
|
|
177
201
|
}
|
|
178
|
-
},
|
|
202
|
+
}, pn = c({
|
|
179
203
|
name: "EditorContent",
|
|
180
204
|
props: { editor: {
|
|
181
205
|
default: null,
|
|
182
206
|
type: Object
|
|
183
207
|
} },
|
|
184
208
|
setup(e) {
|
|
185
|
-
let t = s(), n =
|
|
209
|
+
let t = s(), n = f();
|
|
186
210
|
return r(() => {
|
|
187
211
|
let r = e.editor;
|
|
188
|
-
r && r.options.element && t.value &&
|
|
212
|
+
r && r.options.element && t.value && ne(() => {
|
|
189
213
|
if (!t.value || !r.view.dom?.parentNode) return;
|
|
190
214
|
let e = te(t.value);
|
|
191
215
|
t.value.append(...r.view.dom.parentNode.childNodes), r.contentComponent = n.ctx._, n && (r.appContext = {
|
|
@@ -199,11 +223,11 @@ var Y = class extends st {
|
|
|
199
223
|
}), { rootEl: t };
|
|
200
224
|
},
|
|
201
225
|
render() {
|
|
202
|
-
return
|
|
226
|
+
return p("div", { ref: (e) => {
|
|
203
227
|
this.rootEl = e;
|
|
204
228
|
} });
|
|
205
229
|
}
|
|
206
|
-
}),
|
|
230
|
+
}), mn = c({
|
|
207
231
|
name: "NodeViewContent",
|
|
208
232
|
props: { as: {
|
|
209
233
|
type: String,
|
|
@@ -219,12 +243,12 @@ var Y = class extends st {
|
|
|
219
243
|
e && e(null);
|
|
220
244
|
},
|
|
221
245
|
render() {
|
|
222
|
-
return
|
|
246
|
+
return p(this.as, {
|
|
223
247
|
style: { whiteSpace: "pre-wrap" },
|
|
224
248
|
"data-node-view-content": ""
|
|
225
249
|
});
|
|
226
250
|
}
|
|
227
|
-
}),
|
|
251
|
+
}), J = c({
|
|
228
252
|
name: "NodeViewWrapper",
|
|
229
253
|
props: { as: {
|
|
230
254
|
type: String,
|
|
@@ -233,24 +257,24 @@ var Y = class extends st {
|
|
|
233
257
|
inject: ["onDragStart", "decorationClasses"],
|
|
234
258
|
render() {
|
|
235
259
|
var e;
|
|
236
|
-
return
|
|
260
|
+
return p(this.as, {
|
|
237
261
|
class: this.decorationClasses,
|
|
238
262
|
style: { whiteSpace: "normal" },
|
|
239
263
|
"data-node-view-wrapper": "",
|
|
240
264
|
onDragstart: this.onDragStart
|
|
241
265
|
}, (e = this.$slots).default?.call(e));
|
|
242
266
|
}
|
|
243
|
-
}),
|
|
267
|
+
}), hn = (e = {}) => {
|
|
244
268
|
let n = ee();
|
|
245
269
|
return t(() => {
|
|
246
|
-
n.value = new
|
|
270
|
+
n.value = new q(e);
|
|
247
271
|
}), a(() => {
|
|
248
272
|
var e;
|
|
249
273
|
(e = n.value) == null || e.destroy();
|
|
250
274
|
}), n;
|
|
251
|
-
},
|
|
275
|
+
}, Y = class {
|
|
252
276
|
constructor(e, { props: t = {}, editor: r }) {
|
|
253
|
-
this.destroyed = !1, this.editor = r, this.component = n(e), this.el = document.createElement("div"), this.props =
|
|
277
|
+
this.destroyed = !1, this.editor = r, this.component = n(e), this.el = document.createElement("div"), this.props = d(t), this.renderedComponent = this.renderComponent();
|
|
254
278
|
}
|
|
255
279
|
get element() {
|
|
256
280
|
return this.renderedComponent.el;
|
|
@@ -260,11 +284,11 @@ var Y = class extends st {
|
|
|
260
284
|
}
|
|
261
285
|
renderComponent() {
|
|
262
286
|
if (this.destroyed) return this.renderedComponent;
|
|
263
|
-
let e =
|
|
264
|
-
return this.editor.appContext && (e.appContext = this.editor.appContext), typeof document < "u" && this.el &&
|
|
287
|
+
let e = p(this.component, this.props);
|
|
288
|
+
return this.editor.appContext && (e.appContext = this.editor.appContext), typeof document < "u" && this.el && m(e, this.el), {
|
|
265
289
|
vNode: e,
|
|
266
290
|
destroy: () => {
|
|
267
|
-
this.el &&
|
|
291
|
+
this.el && m(null, this.el), this.el = null, e = null;
|
|
268
292
|
},
|
|
269
293
|
el: this.el ? this.el.firstElementChild : null
|
|
270
294
|
};
|
|
@@ -277,7 +301,7 @@ var Y = class extends st {
|
|
|
277
301
|
destroy() {
|
|
278
302
|
this.destroyed || (this.destroyed = !0, this.renderedComponent.destroy());
|
|
279
303
|
}
|
|
280
|
-
},
|
|
304
|
+
}, gn = {
|
|
281
305
|
editor: {
|
|
282
306
|
type: Object,
|
|
283
307
|
required: !0
|
|
@@ -306,19 +330,19 @@ var Y = class extends st {
|
|
|
306
330
|
type: Object,
|
|
307
331
|
required: !0
|
|
308
332
|
}
|
|
309
|
-
},
|
|
333
|
+
}, _n = c({
|
|
310
334
|
name: "MarkViewContent",
|
|
311
335
|
props: { as: {
|
|
312
336
|
type: String,
|
|
313
337
|
default: "span"
|
|
314
338
|
} },
|
|
315
339
|
render() {
|
|
316
|
-
return
|
|
340
|
+
return p(this.as, {
|
|
317
341
|
style: { whiteSpace: "inherit" },
|
|
318
342
|
"data-mark-view-content": ""
|
|
319
343
|
});
|
|
320
344
|
}
|
|
321
|
-
}),
|
|
345
|
+
}), X = class extends G {
|
|
322
346
|
constructor(e, t, n) {
|
|
323
347
|
super(e, t, n);
|
|
324
348
|
let r = {
|
|
@@ -334,7 +358,7 @@ var Y = class extends st {
|
|
|
334
358
|
__name: e.__name,
|
|
335
359
|
__file: e.__file
|
|
336
360
|
});
|
|
337
|
-
this.renderer = new
|
|
361
|
+
this.renderer = new Y(i, {
|
|
338
362
|
editor: this.editor,
|
|
339
363
|
props: r
|
|
340
364
|
});
|
|
@@ -353,10 +377,10 @@ var Y = class extends st {
|
|
|
353
377
|
this.renderer.destroy();
|
|
354
378
|
}
|
|
355
379
|
};
|
|
356
|
-
function
|
|
357
|
-
return (n) => n.editor.contentComponent ? new
|
|
380
|
+
function vn(e, t = {}) {
|
|
381
|
+
return (n) => n.editor.contentComponent ? new X(e, n, t) : {};
|
|
358
382
|
}
|
|
359
|
-
var
|
|
383
|
+
var yn = {
|
|
360
384
|
editor: {
|
|
361
385
|
type: Object,
|
|
362
386
|
required: !0
|
|
@@ -401,7 +425,7 @@ var Kt = {
|
|
|
401
425
|
type: Object,
|
|
402
426
|
required: !0
|
|
403
427
|
}
|
|
404
|
-
},
|
|
428
|
+
}, bn = class extends U {
|
|
405
429
|
constructor(e, t, n) {
|
|
406
430
|
super(e, t, n), this.cachedExtensionWithSyncedStorage = null, this.handlePositionUpdate = () => {
|
|
407
431
|
let e = this.getPos();
|
|
@@ -438,7 +462,7 @@ var Kt = {
|
|
|
438
462
|
template: this.component.template,
|
|
439
463
|
setup: (e) => {
|
|
440
464
|
var t;
|
|
441
|
-
return
|
|
465
|
+
return u("onDragStart", n), u("decorationClasses", this.decorationClasses), u("nodeViewContentRef", (e) => {
|
|
442
466
|
if (!(!e || e === this.contentDOMElement)) {
|
|
443
467
|
if (this.contentDOMElement) for (; this.contentDOMElement.firstChild;) e.appendChild(this.contentDOMElement.firstChild);
|
|
444
468
|
this.contentDOMElement = e;
|
|
@@ -450,7 +474,7 @@ var Kt = {
|
|
|
450
474
|
__name: this.component.__name,
|
|
451
475
|
__file: this.component.__file
|
|
452
476
|
});
|
|
453
|
-
this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this), this.editor.on("selectionUpdate", this.handleSelectionUpdate), this.currentPos = this.getPos(), this.node.isLeaf || (this.contentDOMElement = this.options.contentDOMElementTag ? document.createElement(this.options.contentDOMElementTag) : document.createElement(this.node.isInline ? "span" : "div"), this.contentDOMElement.style.whiteSpace = "inherit", this.contentDOMElement.dataset.nodeViewContentVue = ""), this.renderer = new
|
|
477
|
+
this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this), this.editor.on("selectionUpdate", this.handleSelectionUpdate), this.currentPos = this.getPos(), this.node.isLeaf || (this.contentDOMElement = this.options.contentDOMElementTag ? document.createElement(this.options.contentDOMElementTag) : document.createElement(this.node.isInline ? "span" : "div"), this.contentDOMElement.style.whiteSpace = "inherit", this.contentDOMElement.dataset.nodeViewContentVue = ""), this.renderer = new Y(r, {
|
|
454
478
|
editor: this.editor,
|
|
455
479
|
props: t
|
|
456
480
|
});
|
|
@@ -465,7 +489,7 @@ var Kt = {
|
|
|
465
489
|
handleSelectionUpdate() {
|
|
466
490
|
let e = this.getPos();
|
|
467
491
|
if (typeof e == "number") {
|
|
468
|
-
if (
|
|
492
|
+
if (H({
|
|
469
493
|
selection: this.editor.state.selection,
|
|
470
494
|
pos: e,
|
|
471
495
|
nodeSize: this.node.nodeSize,
|
|
@@ -524,8 +548,70 @@ var Kt = {
|
|
|
524
548
|
this.renderer.destroy(), this.editor.off("selectionUpdate", this.handleSelectionUpdate), this.options.trackNodeViewPosition && this.editor.off("update", this.handlePositionUpdate), this.contentDOMElement = null;
|
|
525
549
|
}
|
|
526
550
|
};
|
|
551
|
+
function Z(e, t) {
|
|
552
|
+
return (n) => n.editor.contentComponent ? new bn(typeof e == "function" && "__vccOpts" in e ? e.__vccOpts : e, n, t) : {};
|
|
553
|
+
}
|
|
554
|
+
function Q(e, t) {
|
|
555
|
+
var n;
|
|
556
|
+
let r = e;
|
|
557
|
+
if (!r) return;
|
|
558
|
+
(n = r.mixins) == null || n.forEach((e) => Q(e, t)), Q(r.extends, t);
|
|
559
|
+
let { props: i } = r;
|
|
560
|
+
Array.isArray(i) ? i.forEach((e) => t.add(l(e))) : i && Object.keys(i).forEach((e) => t.add(l(e)));
|
|
561
|
+
}
|
|
527
562
|
function $(e, t) {
|
|
528
|
-
|
|
563
|
+
let n = /* @__PURE__ */ new Set();
|
|
564
|
+
Q(e, n);
|
|
565
|
+
let r = {};
|
|
566
|
+
for (let e of [
|
|
567
|
+
"editor",
|
|
568
|
+
"getPos",
|
|
569
|
+
...Object.keys(t)
|
|
570
|
+
]) n.has(l(e)) || (r[e] = null);
|
|
571
|
+
return r;
|
|
572
|
+
}
|
|
573
|
+
function xn(e, t) {
|
|
574
|
+
return Array.isArray(e) ? [...e, ...Object.keys(t)] : {
|
|
575
|
+
...e,
|
|
576
|
+
...t
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
function Sn(e, t) {
|
|
580
|
+
let n = (t, n) => e(t, n);
|
|
581
|
+
return n.props = xn(e.props, $(e, t)), n.emits = e.emits, n.inheritAttrs = e.inheritAttrs, n.displayName = e.displayName ?? e.name, n;
|
|
582
|
+
}
|
|
583
|
+
var Cn = /* @__PURE__ */ Symbol("tiptapVueWidgetCache");
|
|
584
|
+
function wn(e, t) {
|
|
585
|
+
let { editor: r, props: i = {} } = t, a = Tn(e) ? Sn(e, i) : En(e, i);
|
|
586
|
+
return O({
|
|
587
|
+
...t,
|
|
588
|
+
props: i,
|
|
589
|
+
cacheKey: Cn,
|
|
590
|
+
context: (e) => ({
|
|
591
|
+
editor: n(r),
|
|
592
|
+
getPos: e
|
|
593
|
+
}),
|
|
594
|
+
create: (e) => new Y(a, {
|
|
595
|
+
editor: r,
|
|
596
|
+
props: e
|
|
597
|
+
}),
|
|
598
|
+
materialize: (e) => e.element
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
function Tn(e) {
|
|
602
|
+
return typeof e == "function";
|
|
603
|
+
}
|
|
604
|
+
function En(e, t) {
|
|
605
|
+
return c({
|
|
606
|
+
extends: { ...e },
|
|
607
|
+
props: $(e, t),
|
|
608
|
+
template: e.template,
|
|
609
|
+
setup: (t, n) => e.setup?.call(e, t, n),
|
|
610
|
+
__scopeId: e.__scopeId,
|
|
611
|
+
__cssModules: e.__cssModules,
|
|
612
|
+
__name: e.__name,
|
|
613
|
+
__file: e.__file
|
|
614
|
+
});
|
|
529
615
|
}
|
|
530
616
|
//#endregion
|
|
531
|
-
export {
|
|
617
|
+
export { Z as n, fn as r, J as t };
|