@templatical/editor 0.24.0 → 0.24.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-Nq-jrGaf.js → AiChatSidebar-X4viKtvs.js} +14 -14
- package/dist/{AiFeatureMenu-tg_zMKMK.js → AiFeatureMenu-DDAamRaA.js} +7 -7
- package/dist/{BlockIssueBadge-Bd94kIiw.js → BlockIssueBadge-Qxrl7Ujl.js} +5 -5
- package/dist/{BlockPreviewCanvas-B34aMhHe.js → BlockPreviewCanvas-Cf-kxbEr.js} +3 -3
- package/dist/{CloudEditor-DjN_9Yso.js → CloudEditor-JIzhj1Xq.js} +26 -26
- package/dist/{CollaboratorBar-Bhazzcg-.js → CollaboratorBar-tC7AACTb.js} +4 -4
- package/dist/{ColorPicker-DXGrcJxJ.js → ColorPicker--_2PbzFk.js} +7 -9
- package/dist/{CommentsSidebar-ku1kt10u.js → CommentsSidebar-Ci2Ov8FG.js} +15 -15
- package/dist/{CountdownBlock-CN9Lc23W.js → CountdownBlock-aZIKfBWY.js} +3 -3
- package/dist/{CountdownToolbar-VEsIyKV6.js → CountdownToolbar-DHp6T0Q_.js} +4 -4
- package/dist/DesignReferenceSidebar-DQsC-3hB.js +264 -0
- package/dist/{IssuesPanel-CEfzOpS_.js → IssuesPanel-CoOfib44.js} +8 -8
- package/dist/{LoadingTrack-KIcREPlS.js → LoadingTrack-XK_eeUdq.js} +1 -1
- package/dist/{MergeTagModeToggle-C3V2xGAg.js → MergeTagModeToggle-CiFiSV0C.js} +6 -6
- package/dist/{MergeTagSuggestion-Dn8ww9nV.js → MergeTagSuggestion-D0OHRv7L.js} +8 -12
- package/dist/{NumberWithSuffix-BGocZkj9.js → NumberWithSuffix-CXFbUqsx.js} +2 -2
- package/dist/{ParagraphEditor-D-fz0kUb.js → ParagraphEditor-Cy-bpEjI.js} +44 -44
- package/dist/{RichTextEditorContent-DydrqFts.js → RichTextEditorContent-CYJko6id.js} +8 -8
- package/dist/{SaveBlockDialog-BDDFbAWF.js → SaveBlockDialog-CNTSaMEa.js} +10 -10
- package/dist/{SavedBlocksBrowserModal-Djik_fJh.js → SavedBlocksBrowserModal-CvxS5-YX.js} +11 -11
- package/dist/{SavedBlocksPanels-CxemyPxL.js → SavedBlocksPanels-CNdUxS89.js} +2 -2
- package/dist/{SavedBlocksPickBar-Dlhipmob.js → SavedBlocksPickBar-BvXKhblL.js} +4 -4
- package/dist/{SnapshotHistory-DPbM4ons.js → SnapshotHistory-BqPSIV9L.js} +10 -10
- package/dist/{TemplateScoringPanel-BFYgweDX.js → TemplateScoringPanel-CMEuz9yF.js} +15 -15
- package/dist/{TestEmailModal-IZfwgya-.js → TestEmailModal-BDhnnCBx.js} +10 -10
- package/dist/{TestEmailPanel-QEEx_PkN.js → TestEmailPanel--RwnwLn2.js} +2 -2
- package/dist/{TitleEditor-BB4YlIBF.js → TitleEditor-F7E_pU9H.js} +12 -12
- package/dist/TplModal-BIiS24Of.js +49 -0
- package/dist/{blockTypeIcons-Wzd7W_2x.js → blockTypeIcons-C6PnLMp7.js} +26 -26
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiChatSidebar-CN-0DIuA.js → AiChatSidebar-UbF3ePzR.js} +8 -8
- package/dist/cdn/chunks/{AiChatSidebar-CN-0DIuA.js.map → AiChatSidebar-UbF3ePzR.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-B5pV6Iux.js → AiFeatureMenu-OIwoJzHG.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-B5pV6Iux.js.map → AiFeatureMenu-OIwoJzHG.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-aanOjeyi.js → BlockIssueBadge-Bd2EuT1C.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-aanOjeyi.js.map → BlockIssueBadge-Bd2EuT1C.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-Dc4F4HzY.js → BlockPreviewCanvas-C-ut8GkJ.js} +5 -5
- package/dist/cdn/chunks/{BlockPreviewCanvas-Dc4F4HzY.js.map → BlockPreviewCanvas-C-ut8GkJ.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-CeKaWWO5.js → CloudEditor-D87qsqbZ.js} +20 -20
- package/dist/cdn/chunks/{CloudEditor-CeKaWWO5.js.map → CloudEditor-D87qsqbZ.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-CEdKr0A2.js → CollaboratorBar-Br4RvNrA.js} +5 -5
- package/dist/cdn/chunks/{CollaboratorBar-CEdKr0A2.js.map → CollaboratorBar-Br4RvNrA.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-BckwEfcN.js → ColorPicker-B-ymPPtU.js} +8 -10
- package/dist/cdn/chunks/{ColorPicker-BckwEfcN.js.map → ColorPicker-B-ymPPtU.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-6PfpJKh-.js → CommentsSidebar-Tv_WTcJv.js} +6 -6
- package/dist/cdn/chunks/{CommentsSidebar-6PfpJKh-.js.map → CommentsSidebar-Tv_WTcJv.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-CoBmvQKv.js → CountdownBlock-cEcXSK91.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-CoBmvQKv.js.map → CountdownBlock-cEcXSK91.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CdV8RTQu.js → CountdownToolbar-CLp3_ebk.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-CdV8RTQu.js.map → CountdownToolbar-CLp3_ebk.js.map} +1 -1
- package/dist/cdn/chunks/DesignReferenceSidebar-YeqxSsxO.js +223 -0
- package/dist/cdn/chunks/{DesignReferenceSidebar-BjlaP69l.js.map → DesignReferenceSidebar-YeqxSsxO.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-CkkEnhxZ.js → IssuesPanel-BhsvC3XQ.js} +5 -5
- package/dist/cdn/chunks/{IssuesPanel-CkkEnhxZ.js.map → IssuesPanel-BhsvC3XQ.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-D-CW2tUa.js → LoadingTrack-G2tuXqCJ.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-D-CW2tUa.js.map → LoadingTrack-G2tuXqCJ.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-DmtR300G.js → MergeTagModeToggle-DrdxQA0K.js} +6 -6
- package/dist/cdn/chunks/{MergeTagModeToggle-DmtR300G.js.map → MergeTagModeToggle-DrdxQA0K.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-Cvlkw_PM.js → MergeTagSuggestion-Ces5Ua78.js} +3 -3
- package/dist/cdn/chunks/{MergeTagSuggestion-Cvlkw_PM.js.map → MergeTagSuggestion-Ces5Ua78.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-BOcMN26z.js → NumberWithSuffix-BK_Xh4w4.js} +3 -3
- package/dist/cdn/chunks/{NumberWithSuffix-BOcMN26z.js.map → NumberWithSuffix-BK_Xh4w4.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-CX1yks4N.js → ParagraphEditor-DKz4vTWB.js} +131 -131
- package/dist/cdn/chunks/{ParagraphEditor-CX1yks4N.js.map → ParagraphEditor-DKz4vTWB.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-z9s7qxs3.js → RichTextEditorContent-CJ2WVicQ.js} +7 -7
- package/dist/cdn/chunks/{RichTextEditorContent-z9s7qxs3.js.map → RichTextEditorContent-CJ2WVicQ.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-D2CtW4lC.js → SaveBlockDialog-DTemkKPX.js} +8 -8
- package/dist/cdn/chunks/{SaveBlockDialog-D2CtW4lC.js.map → SaveBlockDialog-DTemkKPX.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DdUKJzzF.js → SavedBlocksBrowserModal-DbMaIbeH.js} +9 -9
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DdUKJzzF.js.map → SavedBlocksBrowserModal-DbMaIbeH.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-1kVbqdpc.js → SavedBlocksPanels-CUffuDAC.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-1kVbqdpc.js.map → SavedBlocksPanels-CUffuDAC.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar--noDJIyN.js → SavedBlocksPickBar-D7SmNz2n.js} +5 -5
- package/dist/cdn/chunks/{SavedBlocksPickBar--noDJIyN.js.map → SavedBlocksPickBar-D7SmNz2n.js.map} +1 -1
- package/dist/cdn/chunks/{SnapshotHistory-DFuNJRc9.js → SnapshotHistory-m5Z8bTej.js} +7 -7
- package/dist/cdn/chunks/{SnapshotHistory-DFuNJRc9.js.map → SnapshotHistory-m5Z8bTej.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-DG1dAjQk.js → TemplateScoringPanel-DgRU5fty.js} +6 -6
- package/dist/cdn/chunks/{TemplateScoringPanel-DG1dAjQk.js.map → TemplateScoringPanel-DgRU5fty.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-CiPfOn2v.js → TestEmailModal-Ce8-vzGh.js} +9 -9
- package/dist/cdn/chunks/{TestEmailModal-CiPfOn2v.js.map → TestEmailModal-Ce8-vzGh.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-saOfnpjz.js → TestEmailPanel-BlmIKKSL.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-saOfnpjz.js.map → TestEmailPanel-BlmIKKSL.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-08KM_VzZ.js → TitleEditor-C6_bQxYR.js} +12 -12
- package/dist/cdn/chunks/{TitleEditor-08KM_VzZ.js.map → TitleEditor-C6_bQxYR.js.map} +1 -1
- package/dist/cdn/chunks/TplModal-D6bFON2K.js +50 -0
- package/dist/cdn/chunks/TplModal-D6bFON2K.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-DvohkXqi.js → blockTypeIcons-B8s3_ahs.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-DvohkXqi.js.map → blockTypeIcons-B8s3_ahs.js.map} +1 -1
- package/dist/cdn/chunks/{cloud-C2I0P9qj.js → cloud-CRlDc0Ev.js} +13 -17
- package/dist/cdn/chunks/{cloud-C2I0P9qj.js.map → cloud-CRlDc0Ev.js.map} +1 -1
- package/dist/cdn/chunks/{dist-CxTt8FRE.js → dist-B8AX9np4.js} +16 -12
- package/dist/cdn/chunks/dist-B8AX9np4.js.map +1 -0
- package/dist/cdn/chunks/{dist-CiBEt0VR.js → dist-lZgXNk4G.js} +36 -20
- package/dist/cdn/chunks/dist-lZgXNk4G.js.map +1 -0
- package/dist/cdn/chunks/{draggable-D840DIZB.js → draggable-JcMTNF3U.js} +14 -15
- package/dist/cdn/chunks/{draggable-D840DIZB.js.map → draggable-JcMTNF3U.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-DBWF_lxx.js → extensions-CKMD_er_.js} +15 -11
- package/dist/cdn/chunks/{extensions-DBWF_lxx.js.map → extensions-CKMD_er_.js.map} +1 -1
- package/dist/cdn/chunks/{htmlparser-CZa2V5cF.js → htmlparser-CPhs2cYE.js} +3 -5
- package/dist/cdn/chunks/{htmlparser-CZa2V5cF.js.map → htmlparser-CPhs2cYE.js.map} +1 -1
- package/dist/cdn/chunks/{icons-Cqxvwgz7.js → icons-Cp4ZIJw-.js} +31 -31
- package/dist/cdn/chunks/{icons-Cqxvwgz7.js.map → icons-Cp4ZIJw-.js.map} +1 -1
- package/dist/cdn/chunks/{keys-B5uoP9P7.js → keys-CswSK7eb.js} +2 -2
- package/dist/cdn/chunks/{keys-B5uoP9P7.js.map → keys-CswSK7eb.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-BJOEu6Cg.js → liquid.browser-CZaQe87t.js} +756 -718
- package/dist/cdn/chunks/liquid.browser-CZaQe87t.js.map +1 -0
- package/dist/cdn/chunks/{pusher-R0v5p99W.js → pusher-kUlkqMvR.js} +21 -28
- package/dist/cdn/chunks/{pusher-R0v5p99W.js.map → pusher-kUlkqMvR.js.map} +1 -1
- package/dist/cdn/chunks/{rolldown-runtime-Dqa2HsxW.js → rolldown-runtime-B0aSnxlc.js} +2 -2
- package/dist/cdn/chunks/{src-C45kfA2t.js → src-B3HKHglu.js} +5 -9
- package/dist/cdn/chunks/{src-C45kfA2t.js.map → src-B3HKHglu.js.map} +1 -1
- package/dist/cdn/chunks/{src-YVsPFLNJ.js → src-B4UhYbI8.js} +4 -4
- package/dist/cdn/chunks/{src-YVsPFLNJ.js.map → src-B4UhYbI8.js.map} +1 -1
- package/dist/cdn/chunks/{src-XQmI_Xs1.js → src-CumZZNXZ.js} +523 -787
- package/dist/cdn/chunks/{src-XQmI_Xs1.js.map → src-CumZZNXZ.js.map} +1 -1
- package/dist/cdn/chunks/{src-BCJna-6p.js → src-D5mfLR4V.js} +2 -2
- package/dist/cdn/chunks/{src-BCJna-6p.js.map → src-D5mfLR4V.js.map} +1 -1
- package/dist/cdn/chunks/{styles-BohMfIBd.js → styles--m9OCb_Z.js} +530 -530
- package/dist/cdn/chunks/{styles-BohMfIBd.js.map → styles--m9OCb_Z.js.map} +1 -1
- package/dist/cdn/chunks/timeouts-SsLMC4a3.js +6 -0
- package/dist/cdn/chunks/{timeouts-Bmi_yePw.js.map → timeouts-SsLMC4a3.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-DRKu__AX.js → tiptap-rsib432n.js} +132 -119
- package/dist/cdn/chunks/tiptap-rsib432n.js.map +1 -0
- package/dist/cdn/chunks/{useAliveFlag-aanU8uqB.js → useAliveFlag-CseYNikC.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-aanU8uqB.js.map → useAliveFlag-CseYNikC.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-Bem8DUjH.js → useCloudI18n-sx1pqEbY.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-Bem8DUjH.js.map → useCloudI18n-sx1pqEbY.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-B_vwuKdI.js → useEditorCore-ZqF7P99K.js} +201 -199
- package/dist/cdn/chunks/{useEditorCore-B_vwuKdI.js.map → useEditorCore-ZqF7P99K.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-graz19nI.js → useI18n-vD57BfVR.js} +3 -3
- package/dist/cdn/chunks/{useI18n-graz19nI.js.map → useI18n-vD57BfVR.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-rTzAFMlr.js → useMergeTag-HatzNGgc.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-rTzAFMlr.js.map → useMergeTag-HatzNGgc.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-BaFxLP3w.js → usePopoverPosition-BdQ3Sv4B.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-BaFxLP3w.js.map → usePopoverPosition-BdQ3Sv4B.js.map} +1 -1
- package/dist/cdn/editor.js +10 -10
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-BpQDKiPz.js → check-CIhIDh4h.js} +1 -1
- package/dist/{chevron-down-j8GrdTyz.js → chevron-down-CZ0m6G3s.js} +1 -1
- package/dist/{chevron-up-BACyVhyC.js → chevron-up-BH_tJLeb.js} +1 -1
- package/dist/{circle-alert-CgtE46ND.js → circle-alert-DkEXnGPV.js} +1 -1
- package/dist/{clock-BzKLLW5L.js → clock-BDIJZUET.js} +1 -1
- package/dist/{cloud-DsUct4Zq.js → cloud-R8ci6yR1.js} +10 -14
- package/dist/{createLucideIcon-JWHwTI6N.js → createLucideIcon-AEltGIse.js} +3 -3
- package/dist/{dist-BAkGuPYm.js → dist-B6Px6GPj.js} +1 -1
- package/dist/{dist-DPHqs0Yh.js → dist-Ba5Q-UX1.js} +1 -1
- package/dist/{dist-9uhI32Q4.js → dist-BxbTVeY0.js} +1 -1
- package/dist/{dist-DWu9QWFl.js → dist-CIqhVQ1O.js} +5 -5
- package/dist/{dist-CkCVlKj_.js → dist-CRH880TV.js} +1 -1
- package/dist/{dist-ByJVlKWy.js → dist-CcQFPJMF.js} +116 -100
- package/dist/{dist-JXOq1hib.js → dist-CkPvZCld.js} +1 -1
- package/dist/{dist-IGetXrbO.js → dist-DSIgxp0v.js} +1 -1
- package/dist/{dist-DYv_Pttj.js → dist-DT1XnEnj.js} +33 -17
- package/dist/{dist-C_kAE1sC.js → dist-DX4x6mQ1.js} +3 -3
- package/dist/{dist-DFO896yT.js → dist-Dx71pluS.js} +16 -11
- package/dist/{dist-CQiAZlTt.js → dist-DyCHUyRR.js} +1 -1
- package/dist/{dist-BIYm-U9x.js → dist-iCEDH3cC.js} +1 -1
- package/dist/{dist-C5tigvDF.js → dist-nR6mxyqI.js} +1 -1
- package/dist/{extensions-C0DXnYdA.js → extensions-CGxj6-2o.js} +16 -12
- package/dist/{image-up-CQdtq8ge.js → image-up-8ktdYdaZ.js} +1 -1
- package/dist/{info-BUJBXoE6.js → info-CvrCgTLH.js} +1 -1
- package/dist/{keys-BVlG5Ozc.js → keys-uWpGv4Pq.js} +1 -1
- package/dist/{liquid.browser-DZLtv26k.js → liquid.browser-BECWFL5Z.js} +755 -717
- package/dist/{list-checks-BGHaCSD5.js → list-checks-yzGT93ZL.js} +1 -1
- package/dist/{loader-circle-C-Z6kgI6.js → loader-circle-B6euendB.js} +1 -1
- package/dist/{message-circle-CEm5qckV.js → message-circle-BMldLVcA.js} +1 -1
- package/dist/{pencil-DdwmkKLb.js → pencil-CkKkSd6N.js} +1 -1
- package/dist/{refresh-cw-maKlg0dl.js → refresh-cw-fBPgB97G.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-GdMI8WqG.js → runtime-dom.esm-bundler-CBbDt7sw.js} +2 -2
- package/dist/{scan-line-BFgesTOY.js → scan-line-CRoEOUiK.js} +1 -1
- package/dist/{send-B70aQDrA.js → send-B9Tt2qBi.js} +1 -1
- package/dist/{shield-check-B7x5OKt5.js → shield-check-QfZkYeIo.js} +1 -1
- package/dist/{sparkles-DVlm1Ipp.js → sparkles-8UeMmZb8.js} +1 -1
- package/dist/{styles-BTTD0Je4.js → styles-C9AMvkJk.js} +541 -541
- package/dist/templatical-editor.js +11 -11
- package/dist/{text-align-start-Vay3Kvo2.js → text-align-start-Dn8uIheW.js} +1 -1
- package/dist/{trash-2-DE8CmxAG.js → trash-2-DDyvqj0E.js} +1 -1
- package/dist/{triangle-alert-Djg6IG8N.js → triangle-alert-B3PydLzl.js} +1 -1
- package/dist/{upload-BwwE0U6G.js → upload-hE8ItfyG.js} +2 -2
- package/dist/{useAliveFlag-C43EhZFY.js → useAliveFlag-AfoTE_AY.js} +1 -1
- package/dist/{useCloudI18n-DGr3b2SX.js → useCloudI18n-BC_QV2Z7.js} +2 -2
- package/dist/{useEditorCore-DOrGex_t.js → useEditorCore-Dojb-P2f.js} +655 -655
- package/dist/{useI18n-BhAejA-x.js → useI18n-DzOcl2wl.js} +2 -2
- package/dist/{useMergeTag-Ce95YIOO.js → useMergeTag-BFxXCv3p.js} +3 -3
- package/dist/{usePopoverPosition-vjKJaqJf.js → usePopoverPosition-Dtr1Mp1x.js} +13 -13
- package/dist/{vue.runtime.esm-bundler-B0xoGkDv.js → vue.runtime.esm-bundler-Xpz-L9Fn.js} +27 -22
- package/dist/{x-CkD6A1iB.js → x-C4lETLDx.js} +1 -1
- package/package.json +12 -12
- package/dist/DesignReferenceSidebar-C4pTMzQE.js +0 -264
- package/dist/TplModal-DPH4vV8M.js +0 -49
- package/dist/cdn/chunks/DesignReferenceSidebar-BjlaP69l.js +0 -223
- package/dist/cdn/chunks/TplModal-Cu4tBBnF.js +0 -50
- package/dist/cdn/chunks/TplModal-Cu4tBBnF.js.map +0 -1
- package/dist/cdn/chunks/dist-CiBEt0VR.js.map +0 -1
- package/dist/cdn/chunks/dist-CxTt8FRE.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-BJOEu6Cg.js.map +0 -1
- package/dist/cdn/chunks/timeouts-Bmi_yePw.js +0 -6
- package/dist/cdn/chunks/tiptap-DRKu__AX.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeouts-
|
|
1
|
+
{"version":3,"file":"timeouts-SsLMC4a3.js","names":[],"sources":["../../../src/constants/timeouts.ts"],"sourcesContent":["/** Timeout in ms for editor initialization before giving up. */\nexport const INIT_TIMEOUT_MS = 30000;\n\n/** Duration in ms to show the collaboration undo warning toast. */\nexport const COLLAB_UNDO_WARNING_MS = 4000;\n\n/** Default debounce in ms for auto-save when not configured. */\nexport const DEFAULT_AUTO_SAVE_DEBOUNCE_MS = 5000;\n\n/** Maximum upload file size in bytes (10 MB). */\nexport const MAX_UPLOAD_SIZE_BYTES = 10 * 1024 * 1024;\n\n/**\n * Debounce in ms before an edited image src is sent to `resolveImageUrl`.\n * The src input commits per keystroke, so this is what turns \"per keystroke\"\n * into \"per committed value\" for the host's resolver. The initial src of a\n * mounted block resolves immediately (template load shouldn't wait).\n */\nexport const RESOLVE_IMAGE_DEBOUNCE_MS = 300;\n"],"mappings":";AACA,IAAa,IAAkB,KAGlB,IAAyB,KAGzB,IAAgC,KAGhC,IAAwB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./rolldown-runtime-
|
|
2
|
-
import { $ as t, A as n, B as r, C as i, N as a, O as o, S as s, W as c, Y as l, Z as u, et as d, i as f, it as p, k as m, q as h, x as g } from "./draggable-
|
|
1
|
+
import { n as e } from "./rolldown-runtime-B0aSnxlc.js";
|
|
2
|
+
import { $ as t, A as n, B as r, C as i, N as a, O as o, S as s, W as c, Y as l, Z as u, et as d, i as f, it as p, k as m, q as h, x as g } from "./draggable-JcMTNF3U.js";
|
|
3
3
|
//#region ../../node_modules/.pnpm/orderedmap@2.1.1/node_modules/orderedmap/dist/index.js
|
|
4
4
|
function _(e) {
|
|
5
5
|
this.content = e;
|
|
@@ -395,11 +395,13 @@ function ae(e, t, n, r) {
|
|
|
395
395
|
if (i == t.index(r) && r < e.depth - n.openStart) {
|
|
396
396
|
let o = ae(e, t, n, r + 1);
|
|
397
397
|
return a.copy(a.content.replaceChild(i, o));
|
|
398
|
-
}
|
|
399
|
-
|
|
398
|
+
}
|
|
399
|
+
if (!n.content.size) return ue(a, fe(e, t, r));
|
|
400
|
+
if (!n.openStart && !n.openEnd && e.depth == r && t.depth == r) {
|
|
400
401
|
let r = e.parent, i = r.content;
|
|
401
402
|
return ue(r, i.cut(0, e.parentOffset).append(n.content).append(i.cut(t.parentOffset)));
|
|
402
|
-
}
|
|
403
|
+
}
|
|
404
|
+
{
|
|
403
405
|
let { start: i, end: o } = pe(n, e);
|
|
404
406
|
return ue(a, de(e, i, o, t, r));
|
|
405
407
|
}
|
|
@@ -992,7 +994,8 @@ function je(e) {
|
|
|
992
994
|
if (e.eat("(")) {
|
|
993
995
|
let t = Te(e);
|
|
994
996
|
return e.eat(")") || e.err("Missing closing paren"), t;
|
|
995
|
-
}
|
|
997
|
+
}
|
|
998
|
+
if (/\W/.test(e.next)) e.err("Unexpected token '" + e.next + "'");
|
|
996
999
|
else {
|
|
997
1000
|
let t = Ae(e, e.next).map((t) => (e.inline == null ? e.inline = t.isInline : e.inline != t.isInline && e.err("Mixing inline and block content"), {
|
|
998
1001
|
type: "name",
|
|
@@ -1613,7 +1616,7 @@ var rt = class {
|
|
|
1613
1616
|
let o = nt(e, i, a.options);
|
|
1614
1617
|
a.options & tt && a.content.length == 0 && (o |= tt);
|
|
1615
1618
|
let s = T.none;
|
|
1616
|
-
return n = n.filter((t) => (a.type ? a.type.allowsMarkType(t.type) : ct(t.type, e))
|
|
1619
|
+
return n = n.filter((t) => !(a.type ? a.type.allowsMarkType(t.type) : ct(t.type, e)) || (s = t.addToSet(s), !1)), this.nodes.push(new rt(e, t, s, r, null, o)), this.open++, n;
|
|
1617
1620
|
}
|
|
1618
1621
|
closeExtra(e = !1) {
|
|
1619
1622
|
let t = this.nodes.length - 1;
|
|
@@ -1661,7 +1664,8 @@ var rt = class {
|
|
|
1661
1664
|
if (e == t.length - 1 || e == 0) continue;
|
|
1662
1665
|
for (; o >= i; o--) if (a(e - 1, o)) return !0;
|
|
1663
1666
|
return !1;
|
|
1664
|
-
}
|
|
1667
|
+
}
|
|
1668
|
+
{
|
|
1665
1669
|
let e = o > 0 || o == 0 && r ? this.nodes[o].type : n && o >= i ? n.node(o - i).type : null;
|
|
1666
1670
|
if (!e || e.name != s && !e.isInGroup(s)) return !1;
|
|
1667
1671
|
o--;
|
|
@@ -1824,7 +1828,8 @@ function ht(e, t, n, r) {
|
|
|
1824
1828
|
dom: c,
|
|
1825
1829
|
contentDOM: c
|
|
1826
1830
|
};
|
|
1827
|
-
}
|
|
1831
|
+
}
|
|
1832
|
+
if (typeof a == "string") c.appendChild(e.createTextNode(a));
|
|
1828
1833
|
else {
|
|
1829
1834
|
let { dom: t, contentDOM: i } = ht(e, a, n, r);
|
|
1830
1835
|
if (c.appendChild(t), i) {
|
|
@@ -2197,10 +2202,12 @@ var Pt = class e extends D {
|
|
|
2197
2202
|
if (this.from + this.slice.size == t.from && !this.slice.openEnd && !t.slice.openStart) {
|
|
2198
2203
|
let n = this.slice.size + t.slice.size == 0 ? E.empty : new E(this.slice.content.append(t.slice.content), this.slice.openStart, t.slice.openEnd);
|
|
2199
2204
|
return new e(this.from, this.to + (t.to - t.from), n, this.structure);
|
|
2200
|
-
}
|
|
2205
|
+
}
|
|
2206
|
+
if (t.to == this.from && !this.slice.openStart && !t.slice.openEnd) {
|
|
2201
2207
|
let n = this.slice.size + t.slice.size == 0 ? E.empty : new E(t.slice.content.append(this.slice.content), t.slice.openStart, this.slice.openEnd);
|
|
2202
2208
|
return new e(t.from, this.to, n, this.structure);
|
|
2203
|
-
}
|
|
2209
|
+
}
|
|
2210
|
+
return null;
|
|
2204
2211
|
}
|
|
2205
2212
|
toJSON() {
|
|
2206
2213
|
let e = {
|
|
@@ -3501,7 +3508,7 @@ var P = class {
|
|
|
3501
3508
|
getState(e) {
|
|
3502
3509
|
return e[this.key];
|
|
3503
3510
|
}
|
|
3504
|
-
}, Yn = (e, t) => e.selection.empty
|
|
3511
|
+
}, Yn = (e, t) => !e.selection.empty && (t && t(e.tr.deleteSelection().scrollIntoView()), !0);
|
|
3505
3512
|
function Xn(e, t) {
|
|
3506
3513
|
let { $cursor: n } = e.selection;
|
|
3507
3514
|
return !n || (t ? !t.endOfTextblock("backward", e) : n.parentOffset > 0) ? null : n;
|
|
@@ -3512,7 +3519,7 @@ var Zn = (e, t, n) => {
|
|
|
3512
3519
|
let i = rr(r);
|
|
3513
3520
|
if (!i) {
|
|
3514
3521
|
let n = r.blockRange(), i = n && Bt(n);
|
|
3515
|
-
return i
|
|
3522
|
+
return i != null && (t && t(e.tr.lift(n, i).scrollIntoView()), !0);
|
|
3516
3523
|
}
|
|
3517
3524
|
let a = i.nodeBefore;
|
|
3518
3525
|
if (xr(e, i, t, -1)) return !0;
|
|
@@ -3646,7 +3653,7 @@ var cr = (e, t) => {
|
|
|
3646
3653
|
return t && t(e.tr.join(r).scrollIntoView()), !0;
|
|
3647
3654
|
}, ur = (e, t) => {
|
|
3648
3655
|
let { $from: n, $to: r } = e.selection, i = n.blockRange(r), a = i && Bt(i);
|
|
3649
|
-
return a
|
|
3656
|
+
return a != null && (t && t(e.tr.lift(i, a).scrollIntoView()), !0);
|
|
3650
3657
|
}, dr = (e, t) => {
|
|
3651
3658
|
let { $head: n, $anchor: r } = e.selection;
|
|
3652
3659
|
return !n.parent.type.spec.code || !n.sameParent(r) ? !1 : (t && t(e.tr.insertText("\n").scrollIntoView()), !0);
|
|
@@ -3686,7 +3693,7 @@ var pr = (e, t) => {
|
|
|
3686
3693
|
if (Qt(e.doc, r)) return t && t(e.tr.split(r).scrollIntoView()), !0;
|
|
3687
3694
|
}
|
|
3688
3695
|
let r = n.blockRange(), i = r && Bt(r);
|
|
3689
|
-
return i
|
|
3696
|
+
return i != null && (t && t(e.tr.lift(r, i).scrollIntoView()), !0);
|
|
3690
3697
|
};
|
|
3691
3698
|
function gr(e) {
|
|
3692
3699
|
return (t, n) => {
|
|
@@ -3716,7 +3723,7 @@ function gr(e) {
|
|
|
3716
3723
|
}
|
|
3717
3724
|
var _r = gr(), vr = (e, t) => {
|
|
3718
3725
|
let { $from: n, to: r } = e.selection, i, a = n.sharedDepth(r);
|
|
3719
|
-
return a
|
|
3726
|
+
return a != 0 && (i = n.before(a), t && t(e.tr.setSelection(M.create(e.doc, i))), !0);
|
|
3720
3727
|
}, yr = (e, t) => (t && t(e.tr.setSelection(new Nn(e.doc))), !0);
|
|
3721
3728
|
function br(e, t, n) {
|
|
3722
3729
|
let r = t.nodeBefore, i = t.nodeAfter, a = t.index();
|
|
@@ -3895,7 +3902,7 @@ function Rr(e) {
|
|
|
3895
3902
|
};
|
|
3896
3903
|
}
|
|
3897
3904
|
//#endregion
|
|
3898
|
-
//#region ../../node_modules/.pnpm/prosemirror-view@1.42.
|
|
3905
|
+
//#region ../../node_modules/.pnpm/prosemirror-view@1.42.2/node_modules/prosemirror-view/dist/index.js
|
|
3899
3906
|
var F = function(e) {
|
|
3900
3907
|
for (var t = 0;; t++) if (e = e.previousSibling, !e) return t;
|
|
3901
3908
|
}, zr = function(e) {
|
|
@@ -4343,7 +4350,7 @@ var Xi = 0, Zi = 1, Qi = 2, $i = 3, ea = class {
|
|
|
4343
4350
|
matchesHack(e) {
|
|
4344
4351
|
return !1;
|
|
4345
4352
|
}
|
|
4346
|
-
parseRule() {
|
|
4353
|
+
parseRule(e) {
|
|
4347
4354
|
return null;
|
|
4348
4355
|
}
|
|
4349
4356
|
stopEvent(e) {
|
|
@@ -4480,7 +4487,8 @@ var Xi = 0, Zi = 1, Qi = 2, $i = 3, ea = class {
|
|
|
4480
4487
|
node: this.contentDOM,
|
|
4481
4488
|
offset: e ? F(e.dom) + 1 : 0
|
|
4482
4489
|
};
|
|
4483
|
-
}
|
|
4490
|
+
}
|
|
4491
|
+
{
|
|
4484
4492
|
let e, r = !0;
|
|
4485
4493
|
for (; e = n < this.children.length ? this.children[n] : null, !(!e || e.dom.parentNode == this.contentDOM); n++, r = !1);
|
|
4486
4494
|
return e && r && !e.border && !e.domAtom ? e.domFromPos(0, t) : {
|
|
@@ -4609,7 +4617,8 @@ var Xi = 0, Zi = 1, Qi = 2, $i = 3, ea = class {
|
|
|
4609
4617
|
if (e >= r && t <= o) {
|
|
4610
4618
|
this.dirty = e == n || t == a ? Qi : Zi, e == r && t == o && (i.contentLost || i.dom.parentNode != this.contentDOM) ? i.dirty = $i : i.markDirty(e - r, t - r);
|
|
4611
4619
|
return;
|
|
4612
|
-
}
|
|
4620
|
+
}
|
|
4621
|
+
i.dirty = i.dom == i.contentDOM && i.dom.parentNode == this.contentDOM && !i.children.length ? Qi : $i;
|
|
4613
4622
|
}
|
|
4614
4623
|
n = a;
|
|
4615
4624
|
}
|
|
@@ -4750,25 +4759,28 @@ var Xi = 0, Zi = 1, Qi = 2, $i = 3, ea = class {
|
|
|
4750
4759
|
let f = u;
|
|
4751
4760
|
return u = ha(u, r, n), l ? c = new ca(t, n, r, i, u, d || null, f, l) : n.isText ? new oa(t, n, r, i, u, f) : new e(t, n, r, i, u, d || null, f);
|
|
4752
4761
|
}
|
|
4753
|
-
parseRule() {
|
|
4762
|
+
parseRule(e) {
|
|
4754
4763
|
if (this.node.type.spec.reparseInView) return null;
|
|
4755
|
-
let
|
|
4764
|
+
let t = {
|
|
4756
4765
|
node: this.node.type.name,
|
|
4757
4766
|
attrs: this.node.attrs
|
|
4758
4767
|
};
|
|
4759
|
-
if (this.node.type.whitespace == "pre" && (
|
|
4760
|
-
else if (!this.contentLost)
|
|
4768
|
+
if (this.node.type.whitespace == "pre" && (t.preserveWhitespace = "full"), !this.contentDOM) t.getContent = () => this.node.content;
|
|
4769
|
+
else if (!this.contentLost) t.contentElement = this.contentDOM;
|
|
4761
4770
|
else {
|
|
4762
|
-
for (let
|
|
4763
|
-
let n = this.children[
|
|
4771
|
+
for (let e = this.children.length - 1; e >= 0; e--) {
|
|
4772
|
+
let n = this.children[e];
|
|
4764
4773
|
if (this.dom.contains(n.dom.parentNode)) {
|
|
4765
|
-
|
|
4774
|
+
t.contentElement = n.dom.parentNode;
|
|
4766
4775
|
break;
|
|
4767
4776
|
}
|
|
4768
4777
|
}
|
|
4769
|
-
|
|
4778
|
+
if (!t.contentElement) {
|
|
4779
|
+
let n = e && e.find((t) => t.nodeType == 1 && e.indexOf(t.parentNode) < 0 && this.dom.contains(t));
|
|
4780
|
+
n ? t.contentElement = n : t.getContent = () => S.empty;
|
|
4781
|
+
}
|
|
4770
4782
|
}
|
|
4771
|
-
return
|
|
4783
|
+
return t;
|
|
4772
4784
|
}
|
|
4773
4785
|
matchesNode(e, t, n) {
|
|
4774
4786
|
return this.dirty == Xi && e.eq(this.node) && ga(t, this.outerDeco) && n.eq(this.innerDeco);
|
|
@@ -4801,7 +4813,8 @@ var Xi = 0, Zi = 1, Qi = 2, $i = 3, ea = class {
|
|
|
4801
4813
|
pos: a,
|
|
4802
4814
|
text: e
|
|
4803
4815
|
};
|
|
4804
|
-
}
|
|
4816
|
+
}
|
|
4817
|
+
return {
|
|
4805
4818
|
node: i,
|
|
4806
4819
|
pos: -1,
|
|
4807
4820
|
text: ""
|
|
@@ -4813,7 +4826,7 @@ var Xi = 0, Zi = 1, Qi = 2, $i = 3, ea = class {
|
|
|
4813
4826
|
for (; i.parentNode != this.contentDOM; i = i.parentNode) {
|
|
4814
4827
|
for (; i.previousSibling;) i.parentNode.removeChild(i.previousSibling);
|
|
4815
4828
|
for (; i.nextSibling;) i.parentNode.removeChild(i.nextSibling);
|
|
4816
|
-
i.pmViewDesc
|
|
4829
|
+
i.pmViewDesc && (i.pmViewDesc = void 0);
|
|
4817
4830
|
}
|
|
4818
4831
|
let a = new na(this, i, t, r);
|
|
4819
4832
|
e.input.compositionNodes.push(a), this.children = wa(this.children, n, n + r.length, e, a);
|
|
@@ -4908,8 +4921,8 @@ var oa = class e extends ia {
|
|
|
4908
4921
|
if (this.spec.update && (this.node.type == e.type || this.spec.multiType)) {
|
|
4909
4922
|
let i = this.spec.update(e, t, n);
|
|
4910
4923
|
return i && this.updateInner(e, t, n, r), i;
|
|
4911
|
-
}
|
|
4912
|
-
|
|
4924
|
+
}
|
|
4925
|
+
return !this.contentDOM && !e.isLeaf ? !1 : super.update(e, t, n, r);
|
|
4913
4926
|
}
|
|
4914
4927
|
selectNode() {
|
|
4915
4928
|
this.spec.selectNode ? this.spec.selectNode() : super.selectNode();
|
|
@@ -5352,11 +5365,13 @@ function Ha(e, t, n) {
|
|
|
5352
5365
|
if (!i || i.isText || !i.isLeaf) return !1;
|
|
5353
5366
|
let a = e.state.doc.resolve(n.pos + i.nodeSize * (t < 0 ? -1 : 1));
|
|
5354
5367
|
return Va(e, new j(r.$anchor, a));
|
|
5355
|
-
}
|
|
5356
|
-
|
|
5368
|
+
}
|
|
5369
|
+
if (!r.empty) return !1;
|
|
5370
|
+
if (e.endOfTextblock(t > 0 ? "forward" : "backward")) {
|
|
5357
5371
|
let n = Ba(e.state, t);
|
|
5358
5372
|
return n && n instanceof M ? Va(e, n) : !1;
|
|
5359
|
-
}
|
|
5373
|
+
}
|
|
5374
|
+
if (!(pi && n.indexOf("m") > -1)) {
|
|
5360
5375
|
let n = r.$head, i = n.textOffset ? null : t < 0 ? n.nodeBefore : n.nodeAfter, a;
|
|
5361
5376
|
if (!i || i.isText) return !1;
|
|
5362
5377
|
let o = t < 0 ? n.pos - i.nodeSize : n.pos;
|
|
@@ -5528,13 +5543,12 @@ function io(e, t) {
|
|
|
5528
5543
|
if (n == 37 || pi && n == 66 && r == "c") {
|
|
5529
5544
|
let t = n == 37 ? Qa(e, e.state.selection.from) == "ltr" ? -1 : 1 : -1;
|
|
5530
5545
|
return Ha(e, t, r) || Ga(e, t);
|
|
5531
|
-
}
|
|
5546
|
+
}
|
|
5547
|
+
if (n == 39 || pi && n == 70 && r == "c") {
|
|
5532
5548
|
let t = n == 39 ? Qa(e, e.state.selection.from) == "ltr" ? 1 : -1 : 1;
|
|
5533
5549
|
return Ha(e, t, r) || Ga(e, t);
|
|
5534
|
-
}
|
|
5535
|
-
|
|
5536
|
-
else if (r == (pi ? "m" : "c") && (n == 66 || n == 73 || n == 89 || n == 90)) return !0;
|
|
5537
|
-
return !1;
|
|
5550
|
+
}
|
|
5551
|
+
return n == 38 || pi && n == 80 && r == "c" ? $a(e, -1, r) || Ga(e, -1) : n == 40 || pi && n == 78 && r == "c" ? no(e) || $a(e, 1, r) || Ga(e, 1) : !(r != (pi ? "m" : "c") || n != 66 && n != 73 && n != 89 && n != 90);
|
|
5538
5552
|
}
|
|
5539
5553
|
function ao(e, t) {
|
|
5540
5554
|
e.someProp("transformCopied", (n) => {
|
|
@@ -5830,7 +5844,7 @@ function Io(e, t) {
|
|
|
5830
5844
|
break;
|
|
5831
5845
|
}
|
|
5832
5846
|
}
|
|
5833
|
-
return i
|
|
5847
|
+
return i != null && (Po(e, M.create(e.state.doc, i), "pointer"), !0);
|
|
5834
5848
|
}
|
|
5835
5849
|
function Lo(e, t, n, r, i) {
|
|
5836
5850
|
return No(e, "handleClickOn", t, n, r) || e.someProp("handleClick", (n) => n(e, t, r)) || (i ? Io(e, n) : Fo(e, n));
|
|
@@ -5970,7 +5984,8 @@ z.compositionstart = z.compositionupdate = (e) => {
|
|
|
5970
5984
|
let n = e.domSelection();
|
|
5971
5985
|
n && n.collapse(t, t.nodeValue.length);
|
|
5972
5986
|
break;
|
|
5973
|
-
}
|
|
5987
|
+
}
|
|
5988
|
+
n = t, r = -1;
|
|
5974
5989
|
}
|
|
5975
5990
|
}
|
|
5976
5991
|
e.input.composing = !0;
|
|
@@ -6139,7 +6154,7 @@ R.focus = (e) => {
|
|
|
6139
6154
|
let n = t;
|
|
6140
6155
|
e.focused &&= (e.domObserver.stop(), e.dom.classList.remove("ProseMirror-focused"), e.domObserver.start(), n.relatedTarget && e.dom.contains(n.relatedTarget) && e.domObserver.currentSelection.clear(), !1);
|
|
6141
6156
|
}, R.beforeinput = (e, t) => {
|
|
6142
|
-
if (
|
|
6157
|
+
if (hi && t.inputType == "deleteContentBackward") {
|
|
6143
6158
|
e.domObserver.flushSoon();
|
|
6144
6159
|
let { domChangeCount: t } = e.input;
|
|
6145
6160
|
setTimeout(() => {
|
|
@@ -6496,10 +6511,9 @@ function Es(e) {
|
|
|
6496
6511
|
if (a.from == r.from) {
|
|
6497
6512
|
a.to != r.to && (t == e && (t = e.slice()), t[i] = a.copy(a.from, r.to), Ds(t, i + 1, a.copy(r.to, a.to)));
|
|
6498
6513
|
continue;
|
|
6499
|
-
} else {
|
|
6500
|
-
a.from < r.to && (t == e && (t = e.slice()), t[n] = r.copy(r.from, a.from), Ds(t, i, r.copy(a.from, r.to)));
|
|
6501
|
-
break;
|
|
6502
6514
|
}
|
|
6515
|
+
a.from < r.to && (t == e && (t = e.slice()), t[n] = r.copy(r.from, a.from), Ds(t, i, r.copy(a.from, r.to)));
|
|
6516
|
+
break;
|
|
6503
6517
|
}
|
|
6504
6518
|
}
|
|
6505
6519
|
return t;
|
|
@@ -6670,15 +6684,15 @@ var ks = {
|
|
|
6670
6684
|
from: o,
|
|
6671
6685
|
to: n.localPosFromDOM(e.target, s, 1)
|
|
6672
6686
|
};
|
|
6673
|
-
}
|
|
6687
|
+
}
|
|
6688
|
+
return e.type == "attributes" ? {
|
|
6674
6689
|
from: n.posAtStart - n.border,
|
|
6675
6690
|
to: n.posAtEnd + n.border
|
|
6676
|
-
}
|
|
6677
|
-
else return this.lastChangedTextNode = e.target, {
|
|
6691
|
+
} : (this.lastChangedTextNode = e.target, {
|
|
6678
6692
|
from: n.posAtStart,
|
|
6679
6693
|
to: n.posAtEnd,
|
|
6680
6694
|
typeOver: e.target.nodeValue == e.oldValue
|
|
6681
|
-
};
|
|
6695
|
+
});
|
|
6682
6696
|
}
|
|
6683
6697
|
}, Ns = /* @__PURE__ */ new WeakMap(), Ps = !1;
|
|
6684
6698
|
function Fs(e) {
|
|
@@ -6739,59 +6753,59 @@ function zs(e, t) {
|
|
|
6739
6753
|
} else i.parentNode.removeChild(i);
|
|
6740
6754
|
}
|
|
6741
6755
|
}
|
|
6742
|
-
function Bs(e, t, n) {
|
|
6743
|
-
let { node:
|
|
6744
|
-
if (
|
|
6745
|
-
node:
|
|
6746
|
-
offset:
|
|
6747
|
-
}], Zr(
|
|
6748
|
-
node:
|
|
6749
|
-
offset:
|
|
6750
|
-
})), I && e.input.lastKeyCode === 8) for (let e =
|
|
6751
|
-
let t =
|
|
6756
|
+
function Bs(e, t, n, r) {
|
|
6757
|
+
let { node: i, fromOffset: a, toOffset: o, from: s, to: c } = e.docView.parseRange(t, n), l = e.domSelectionRange(), u, d = l.anchorNode;
|
|
6758
|
+
if (d && e.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (u = [{
|
|
6759
|
+
node: d,
|
|
6760
|
+
offset: l.anchorOffset
|
|
6761
|
+
}], Zr(l) || u.push({
|
|
6762
|
+
node: l.focusNode,
|
|
6763
|
+
offset: l.focusOffset
|
|
6764
|
+
})), I && e.input.lastKeyCode === 8) for (let e = o; e > a; e--) {
|
|
6765
|
+
let t = i.childNodes[e - 1], n = t.pmViewDesc;
|
|
6752
6766
|
if (t.nodeName == "BR" && !n) {
|
|
6753
|
-
|
|
6767
|
+
o = e;
|
|
6754
6768
|
break;
|
|
6755
6769
|
}
|
|
6756
6770
|
if (!n || n.size) break;
|
|
6757
6771
|
}
|
|
6758
|
-
let
|
|
6759
|
-
topNode:
|
|
6760
|
-
topMatch:
|
|
6772
|
+
let f = e.state.doc, p = e.someProp("domParser") || Ye.fromSchema(e.state.schema), m = f.resolve(s), h = null, g = p.parse(i, {
|
|
6773
|
+
topNode: m.parent,
|
|
6774
|
+
topMatch: m.parent.contentMatchAt(m.index()),
|
|
6761
6775
|
topOpen: !0,
|
|
6762
|
-
from:
|
|
6763
|
-
to:
|
|
6764
|
-
preserveWhitespace:
|
|
6765
|
-
findPositions:
|
|
6766
|
-
ruleFromNode: Vs,
|
|
6767
|
-
context:
|
|
6776
|
+
from: a,
|
|
6777
|
+
to: o,
|
|
6778
|
+
preserveWhitespace: m.parent.type.whitespace != "pre" || "full",
|
|
6779
|
+
findPositions: u,
|
|
6780
|
+
ruleFromNode: Vs(r),
|
|
6781
|
+
context: m
|
|
6768
6782
|
});
|
|
6769
|
-
if (
|
|
6770
|
-
let e =
|
|
6771
|
-
t ??= e,
|
|
6772
|
-
anchor: e +
|
|
6773
|
-
head: t +
|
|
6783
|
+
if (u && u[0].pos != null) {
|
|
6784
|
+
let e = u[0].pos, t = u[1] && u[1].pos;
|
|
6785
|
+
t ??= e, h = {
|
|
6786
|
+
anchor: e + s,
|
|
6787
|
+
head: t + s
|
|
6774
6788
|
};
|
|
6775
6789
|
}
|
|
6776
6790
|
return {
|
|
6777
|
-
doc:
|
|
6778
|
-
sel:
|
|
6779
|
-
from:
|
|
6780
|
-
to:
|
|
6791
|
+
doc: g,
|
|
6792
|
+
sel: h,
|
|
6793
|
+
from: s,
|
|
6794
|
+
to: c
|
|
6781
6795
|
};
|
|
6782
6796
|
}
|
|
6783
|
-
|
|
6784
|
-
let
|
|
6785
|
-
if (
|
|
6786
|
-
if (
|
|
6787
|
-
if (L && /^(ul|ol)$/i.test(
|
|
6797
|
+
var Vs = (e) => (t) => {
|
|
6798
|
+
let n = t.pmViewDesc;
|
|
6799
|
+
if (n) return n.parseRule(e);
|
|
6800
|
+
if (t.nodeName == "BR" && t.parentNode) {
|
|
6801
|
+
if (L && /^(ul|ol)$/i.test(t.parentNode.nodeName)) {
|
|
6788
6802
|
let e = document.createElement("div");
|
|
6789
6803
|
return e.appendChild(document.createElement("li")), { skip: e };
|
|
6790
|
-
}
|
|
6791
|
-
|
|
6804
|
+
}
|
|
6805
|
+
if (t.parentNode.lastChild == t || L && /^(tr|table)$/i.test(t.parentNode.nodeName)) return { ignore: !0 };
|
|
6806
|
+
} else if (t.nodeName == "IMG" && t.getAttribute("mark-placeholder")) return { ignore: !0 };
|
|
6792
6807
|
return null;
|
|
6793
|
-
}
|
|
6794
|
-
var Hs = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;
|
|
6808
|
+
}, Hs = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;
|
|
6795
6809
|
function Us(e, t, n, r, i) {
|
|
6796
6810
|
let a = e.input.compositionPendingChanges || (e.composing ? e.input.compositionID : 0);
|
|
6797
6811
|
if (e.input.compositionPendingChanges = 0, t < 0) {
|
|
@@ -6805,7 +6819,7 @@ function Us(e, t, n, r, i) {
|
|
|
6805
6819
|
}
|
|
6806
6820
|
let o = e.state.doc.resolve(t), s = o.sharedDepth(n);
|
|
6807
6821
|
t = o.before(s + 1), n = e.state.doc.resolve(n).after(s + 1);
|
|
6808
|
-
let c = e.state.selection, l = Bs(e, t, n), u = e.state.doc, d = u.slice(l.from, l.to), f, p;
|
|
6822
|
+
let c = e.state.selection, l = Bs(e, t, n, i), u = e.state.doc, d = u.slice(l.from, l.to), f, p;
|
|
6809
6823
|
e.input.lastKeyCode === 8 && Date.now() - 100 < e.input.lastKeyCodeTime ? (f = e.state.selection.to, p = "end") : (f = e.state.selection.from, p = "start"), e.input.lastKeyCode = null;
|
|
6810
6824
|
let m = Js(d.content, l.doc.content, l.from, f, p);
|
|
6811
6825
|
if (m && e.input.domChangeCount++, (fi && e.input.lastIOSEnter > Date.now() - 225 || hi) && i.some((e) => e.nodeType == 1 && !Hs.test(e.nodeName)) && (!m || m.endA >= m.endB) && e.someProp("handleKeyDown", (t) => t(e, Qr(13, "Enter")))) {
|
|
@@ -7777,14 +7791,14 @@ var ol = (e = {}) => ({ tr: t, dispatch: n, editor: r }) => {
|
|
|
7777
7791
|
}, sl = () => ({ state: e, dispatch: t }) => cr(e, t), cl = () => ({ state: e, dispatch: t }) => lr(e, t), ll = () => ({ state: e, dispatch: t }) => Zn(e, t), ul = () => ({ state: e, dispatch: t }) => ar(e, t), dl = () => ({ state: e, dispatch: t, tr: n }) => {
|
|
7778
7792
|
try {
|
|
7779
7793
|
let r = rn(e.doc, e.selection.$from.pos, -1);
|
|
7780
|
-
return r
|
|
7794
|
+
return r != null && (n.join(r, 2), t && t(n), !0);
|
|
7781
7795
|
} catch {
|
|
7782
7796
|
return !1;
|
|
7783
7797
|
}
|
|
7784
7798
|
}, fl = () => ({ state: e, dispatch: t, tr: n }) => {
|
|
7785
7799
|
try {
|
|
7786
7800
|
let r = rn(e.doc, e.selection.$from.pos, 1);
|
|
7787
|
-
return r
|
|
7801
|
+
return r != null && (n.join(r, 2), t && t(n), !0);
|
|
7788
7802
|
} catch {
|
|
7789
7803
|
return !1;
|
|
7790
7804
|
}
|
|
@@ -8120,9 +8134,9 @@ function $l(e) {
|
|
|
8120
8134
|
return !e?.attribute?.isRequired && "default" in (e?.attribute || {}) && (t.default = e.attribute.default), e?.attribute?.validate !== void 0 && (t.validate = e.attribute.validate), [e.name, t];
|
|
8121
8135
|
}
|
|
8122
8136
|
function eu(e, t) {
|
|
8123
|
-
let n = Kl(e), { nodeExtensions: r, markExtensions: i } = Gl(e);
|
|
8137
|
+
let n = Kl(e), { nodeExtensions: r, markExtensions: i } = Gl(e), a = r.find((e) => W(e, "topNode"))?.name;
|
|
8124
8138
|
return new Ge({
|
|
8125
|
-
topNode:
|
|
8139
|
+
topNode: a,
|
|
8126
8140
|
nodes: Object.fromEntries(r.map((r) => {
|
|
8127
8141
|
let i = n.filter((e) => e.type === r.name), a = {
|
|
8128
8142
|
name: r.name,
|
|
@@ -8915,7 +8929,7 @@ function Td(e) {
|
|
|
8915
8929
|
if (!e || Object.keys(e).length === 0) return "";
|
|
8916
8930
|
let t = [];
|
|
8917
8931
|
return e.class && String(e.class).split(/\s+/).filter(Boolean).forEach((e) => t.push(`.${e}`)), e.id && t.push(`#${e.id}`), Object.entries(e).forEach(([e, n]) => {
|
|
8918
|
-
e
|
|
8932
|
+
e !== "class" && e !== "id" && (n === !0 ? t.push(e) : n !== !1 && n != null && t.push(`${e}="${String(n)}"`));
|
|
8919
8933
|
}), t.join(" ");
|
|
8920
8934
|
}
|
|
8921
8935
|
function Ed(e) {
|
|
@@ -9109,7 +9123,8 @@ function jd(e, t, n) {
|
|
|
9109
9123
|
o += 1, a = `${a}${e}
|
|
9110
9124
|
`;
|
|
9111
9125
|
continue;
|
|
9112
|
-
}
|
|
9126
|
+
}
|
|
9127
|
+
return;
|
|
9113
9128
|
}
|
|
9114
9129
|
let l = t.extractItemData(c), { indentLevel: u, mainContent: d } = l;
|
|
9115
9130
|
a = `${a}${e}
|
|
@@ -9124,7 +9139,8 @@ function jd(e, t, n) {
|
|
|
9124
9139
|
f.push(e), a = `${a}${e}
|
|
9125
9140
|
`, o += 1;
|
|
9126
9141
|
continue;
|
|
9127
|
-
}
|
|
9142
|
+
}
|
|
9143
|
+
break;
|
|
9128
9144
|
}
|
|
9129
9145
|
if ((e.match(/^(\s*)/)?.[1]?.length || 0) > u) f.push(e), a = `${a}${e}
|
|
9130
9146
|
`, o += 1;
|
|
@@ -9165,7 +9181,7 @@ function Pd(e, t) {
|
|
|
9165
9181
|
let n = Array.from({ length: t.length }, () => !1);
|
|
9166
9182
|
return e.every((e) => {
|
|
9167
9183
|
let r = Nd(e), i = t.findIndex((t, i) => !n[i] && r === Nd(t) && dd(e.attrs, t.attrs));
|
|
9168
|
-
return i
|
|
9184
|
+
return i !== -1 && (n[i] = !0, !0);
|
|
9169
9185
|
});
|
|
9170
9186
|
}
|
|
9171
9187
|
function Fd(e, t) {
|
|
@@ -9898,7 +9914,7 @@ var q = class e extends Hd {
|
|
|
9898
9914
|
let r = e.some((e) => e.docChanged) && !t.doc.eq(n.doc), i = e.some((e) => e.getMeta("preventClearDocument"));
|
|
9899
9915
|
if (!r || i) return;
|
|
9900
9916
|
let { empty: a, from: o, to: s } = t.selection, c = A.atStart(t.doc).from, l = A.atEnd(t.doc).to;
|
|
9901
|
-
if (a ||
|
|
9917
|
+
if (a || o !== c || s !== l || !Ou(n.doc)) return;
|
|
9902
9918
|
let u = n.tr, d = vc({
|
|
9903
9919
|
state: n,
|
|
9904
9920
|
transaction: u
|
|
@@ -10539,7 +10555,7 @@ var yf = (e, t) => {
|
|
|
10539
10555
|
e !== this.lastEditableState && (this.lastEditableState = e, e ? e && this.handleMap.size === 0 && this.attachHandles() : this.removeHandles());
|
|
10540
10556
|
}
|
|
10541
10557
|
update(e, t, n) {
|
|
10542
|
-
return e.type === this.node.type
|
|
10558
|
+
return e.type === this.node.type && (this.node = e, !this.onUpdate || this.onUpdate(e, t, n));
|
|
10543
10559
|
}
|
|
10544
10560
|
destroy() {
|
|
10545
10561
|
this.isResizing && (this.container.dataset.resizeState = "false", this.classNames.resizing && this.container.classList.remove(this.classNames.resizing), document.removeEventListener("mousemove", this.handleMouseMove), document.removeEventListener("mouseup", this.handleMouseUp), document.removeEventListener("keydown", this.handleKeyDown), document.removeEventListener("keyup", this.handleKeyUp), this.isResizing = !1, this.activeHandle = null), this.editor.off("update", this.handleEditorUpdate.bind(this)), this.container.remove();
|
|
@@ -10711,10 +10727,10 @@ var yf = (e, t) => {
|
|
|
10711
10727
|
updateAttributes(e) {
|
|
10712
10728
|
this.editor.commands.command(({ tr: t }) => {
|
|
10713
10729
|
let n = this.getPos();
|
|
10714
|
-
return typeof n == "number"
|
|
10730
|
+
return typeof n == "number" && (t.setNodeMarkup(n, void 0, {
|
|
10715
10731
|
...this.node.attrs,
|
|
10716
10732
|
...e
|
|
10717
|
-
}), !0)
|
|
10733
|
+
}), !0);
|
|
10718
10734
|
});
|
|
10719
10735
|
}
|
|
10720
10736
|
deleteNode() {
|
|
@@ -11006,7 +11022,7 @@ var np = 50, rp = async (e, t, n) => {
|
|
|
11006
11022
|
overflows: w
|
|
11007
11023
|
}], !w.every((e) => e <= 0)) {
|
|
11008
11024
|
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
11009
|
-
if (t && (
|
|
11025
|
+
if (t && (u !== "alignment" || _ === zf(t) || ee.every((e) => zf(e.placement) !== _ || e.overflows[0] > 0))) return {
|
|
11010
11026
|
data: {
|
|
11011
11027
|
index: e,
|
|
11012
11028
|
overflows: ee
|
|
@@ -11026,9 +11042,7 @@ var np = 50, rp = async (e, t, n) => {
|
|
|
11026
11042
|
e && (n = e);
|
|
11027
11043
|
break;
|
|
11028
11044
|
}
|
|
11029
|
-
case "initialPlacement":
|
|
11030
|
-
n = o;
|
|
11031
|
-
break;
|
|
11045
|
+
case "initialPlacement": n = o;
|
|
11032
11046
|
}
|
|
11033
11047
|
if (r !== n) return { reset: { placement: n } };
|
|
11034
11048
|
}
|
|
@@ -11163,7 +11177,8 @@ function jp(e, t, n) {
|
|
|
11163
11177
|
if (i) {
|
|
11164
11178
|
let e = Mp(a);
|
|
11165
11179
|
return t.concat(a, a.visualViewport || [], gp(r) ? r : [], e && n ? jp(e) : []);
|
|
11166
|
-
}
|
|
11180
|
+
}
|
|
11181
|
+
return t.concat(r, jp(r, [], n));
|
|
11167
11182
|
}
|
|
11168
11183
|
function Mp(e) {
|
|
11169
11184
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
@@ -11741,10 +11756,7 @@ function Cm({ editor: e, pluginKey: t, items: n, renderer: r, minQueryLength: i,
|
|
|
11741
11756
|
case "updated":
|
|
11742
11757
|
(i = r?.onUpdate) == null || i.call(r, t);
|
|
11743
11758
|
break;
|
|
11744
|
-
case "stopped":
|
|
11745
|
-
(a = r?.onExit) == null || a.call(r, t);
|
|
11746
|
-
break;
|
|
11747
|
-
default: break;
|
|
11759
|
+
case "stopped": (a = r?.onExit) == null || a.call(r, t);
|
|
11748
11760
|
}
|
|
11749
11761
|
}
|
|
11750
11762
|
return {
|
|
@@ -14100,10 +14112,10 @@ var Av = (e, t) => {
|
|
|
14100
14112
|
return !n.empty && r.sameParent(i) ? !1 : Pv(t, e.state) ? e.chain().focus(e.state.selection.from + 4).lift(t).joinBackward().run() : Fv(t, e.state) ? e.chain().joinForward().joinBackward().run() : e.commands.joinItemForward();
|
|
14101
14113
|
}, Lv = (e, t) => {
|
|
14102
14114
|
let { $anchor: n } = t.selection, r = t.doc.resolve(n.pos - n.parentOffset - 2);
|
|
14103
|
-
return
|
|
14115
|
+
return r.index() !== r.parent.childCount - 1 && r.nodeAfter?.type.name === e;
|
|
14104
14116
|
}, Rv = (e, t) => {
|
|
14105
14117
|
let { $anchor: n } = t.selection, r = t.doc.resolve(n.pos - 2);
|
|
14106
|
-
return
|
|
14118
|
+
return r.index() !== 0 && r.nodeBefore?.type.name === e;
|
|
14107
14119
|
}, zv = (e, t, n) => {
|
|
14108
14120
|
if (!n) return !1;
|
|
14109
14121
|
let r = U(e, t.schema), i = !1;
|
|
@@ -14912,7 +14924,8 @@ var hy = class {
|
|
|
14912
14924
|
if (n > 0 ? t.indexAfter(r) < o.childCount : t.index(r) > 0) {
|
|
14913
14925
|
a = o.child(n > 0 ? t.indexAfter(r) : t.index(r) - 1);
|
|
14914
14926
|
break;
|
|
14915
|
-
}
|
|
14927
|
+
}
|
|
14928
|
+
if (r == 0) return null;
|
|
14916
14929
|
i += n;
|
|
14917
14930
|
let s = t.doc.resolve(i);
|
|
14918
14931
|
if (e.valid(s)) return s;
|
|
@@ -15238,8 +15251,8 @@ function Iy(e, t, n, r) {
|
|
|
15238
15251
|
if (n.getMeta("addToHistory") !== !1 && !(o && o.getMeta("addToHistory") === !1)) {
|
|
15239
15252
|
let i = n.getMeta("composition"), a = e.prevTime == 0 || !o && e.prevComposition != i && (e.prevTime < (n.time || 0) - r.newGroupDelay || !Ly(n, e.prevRanges)), s = o ? zy(e.prevRanges, n.mapping) : Ry(n.mapping.maps);
|
|
15240
15253
|
return new Py(e.done.addTransform(n, a ? t.selection.getBookmark() : void 0, r, Uy(t)), jy.empty, s, n.time, i ?? e.prevComposition);
|
|
15241
|
-
}
|
|
15242
|
-
|
|
15254
|
+
}
|
|
15255
|
+
return (a = n.getMeta("rebased")) ? new Py(e.done.rebased(n, a), e.undone.rebased(n, a), zy(e.prevRanges, n.mapping), e.prevTime, e.prevComposition) : new Py(e.done.addMaps(n.mapping.maps), e.undone.addMaps(n.mapping.maps), zy(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
|
|
15243
15256
|
}
|
|
15244
15257
|
function Ly(e, t) {
|
|
15245
15258
|
if (!t) return !1;
|
|
@@ -16175,7 +16188,7 @@ var Lb = {
|
|
|
16175
16188
|
constructor(e, t, n) {
|
|
16176
16189
|
super(e, t, n), this.cachedExtensionWithSyncedStorage = null, this.handlePositionUpdate = () => {
|
|
16177
16190
|
let e = this.getPos();
|
|
16178
|
-
typeof e
|
|
16191
|
+
typeof e == "number" && e !== this.currentPos && (this.currentPos = e, this.renderer.updateProps({ getPos: () => this.getPos() }));
|
|
16179
16192
|
}, this.options.trackNodeViewPosition && this.editor.on("update", this.handlePositionUpdate);
|
|
16180
16193
|
}
|
|
16181
16194
|
get extensionWithSyncedStorage() {
|
|
@@ -16220,7 +16233,7 @@ var Lb = {
|
|
|
16220
16233
|
__name: this.component.__name,
|
|
16221
16234
|
__file: this.component.__file
|
|
16222
16235
|
});
|
|
16223
|
-
this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this), this.editor.on("selectionUpdate", this.handleSelectionUpdate), this.currentPos = this.getPos(), this.node.isLeaf || (this.options.contentDOMElementTag ?
|
|
16236
|
+
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 Mb(r, {
|
|
16224
16237
|
editor: this.editor,
|
|
16225
16238
|
props: t
|
|
16226
16239
|
});
|
|
@@ -16298,4 +16311,4 @@ function zb(e, t) {
|
|
|
16298
16311
|
//#endregion
|
|
16299
16312
|
export { J as _, D_ as a, v_ as c, Bm as d, Rm as f, Rd as g, q as h, Sb as i, Yg as l, Em as m, zb as n, w_ as o, Dm as p, Tb as r, x_ as s, Ab as t, Hm as u, Wd as v, K as y };
|
|
16300
16313
|
|
|
16301
|
-
//# sourceMappingURL=tiptap-
|
|
16314
|
+
//# sourceMappingURL=tiptap-rsib432n.js.map
|