@templatical/editor 0.29.1 → 0.31.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-DsYJwCLT.js → AiChatSidebar-DYDtzTDd.js} +8 -8
- package/dist/{AiFeatureMenu-CehKC-dh.js → AiFeatureMenu-BJ882XCi.js} +4 -4
- package/dist/{BlockIssueBadge-Dhk7Hv4m.js → BlockIssueBadge-D6y8vQpL.js} +2 -2
- package/dist/{BlockPreviewCanvas-BQZ7aTPr.js → BlockPreviewCanvas-DQNxLy7u.js} +1 -1
- package/dist/{CloudHeaderExtras-CaRdlYpY.js → CloudHeaderExtras-CqG3RaKw.js} +2 -2
- package/dist/{CloudPanels-CYqHk1Az.js → CloudPanels-B6xrk7kN.js} +3 -3
- package/dist/{CollaboratorBar-BZi12Mut.js → CollaboratorBar-by16gXQH.js} +2 -2
- package/dist/{ColorPicker-CXPSbnRD.js → ColorPicker-E5gqlCZE.js} +1 -1
- package/dist/{CommentsPanel-DnWdgQHg.js → CommentsPanel-B_kzvTHR.js} +1 -1
- package/dist/{CommentsSidebar-ZOqmuo4D.js → CommentsSidebar-gfzUX7cd.js} +10 -10
- package/dist/{CountdownToolbar-ByQVLqFF.js → CountdownToolbar-DU8UHx9A.js} +17 -17
- package/dist/{DesignReferenceSidebar-B9anB-Q0.js → DesignReferenceSidebar-DgndMB4H.js} +6 -6
- package/dist/{NumberWithSuffix-C-k0BP1m.js → FieldRow-0-UbQR4a.js} +23 -16
- package/dist/{IssuesPanel-CDk7lUna.js → IssuesPanel-DmJTb_SZ.js} +5 -5
- package/dist/{MergeTagModeToggle-sBEGugix.js → MergeTagModeToggle-CZnJ2Gz_.js} +3 -3
- package/dist/{MergeTagSuggestion-DPfXtDzP.js → MergeTagSuggestion-DyUcY_9e.js} +2 -2
- package/dist/{ParagraphEditor-gbp5gbFv.js → ParagraphEditor-CnB4kXle.js} +19 -19
- package/dist/{RestoreVersionDialog-DIHpGfFr.js → RestoreVersionDialog-BpOphPiE.js} +3 -3
- package/dist/{RichTextEditorContent-DZ6GiAUi.js → RichTextEditorContent-ChPNgHQ_.js} +3 -3
- package/dist/{SaveBlockDialog-QSj7tf1p.js → SaveBlockDialog-CKw4Va6j.js} +6 -6
- package/dist/{SavedBlocksBrowserModal-Bz2xaBzJ.js → SavedBlocksBrowserModal-SST-7EMK.js} +7 -7
- package/dist/{SavedBlocksPanels-RNgOnK9j.js → SavedBlocksPanels-ChV8bOgM.js} +1 -1
- package/dist/{SavedBlocksPickBar-CRmd3sD9.js → SavedBlocksPickBar-BbEeD5RB.js} +2 -2
- package/dist/{TemplateScoringPanel-CDwlSFEe.js → TemplateScoringPanel-De8BZpRU.js} +10 -10
- package/dist/{TestEmailModal-DclmELUc.js → TestEmailModal-4d2pXeHU.js} +7 -7
- package/dist/{TestEmailPanel-4i4n9Kup.js → TestEmailPanel-DEgCesNP.js} +1 -1
- package/dist/{TitleEditor-DMAeSWx3.js → TitleEditor-89pmKLVY.js} +8 -8
- package/dist/{TplModal-CjuKT36J.js → TplModal-DswccJRJ.js} +1 -1
- package/dist/{VersionHistoryMenu-B6zAcmAC.js → VersionHistoryMenu-DBxSJR1k.js} +4 -4
- package/dist/{VersionHistoryPanels-MqgexkhW.js → VersionHistoryPanels-CFLHDH9P.js} +1 -1
- package/dist/{VersionPreviewBanner-CQlSzQ2B.js → VersionPreviewBanner-DhG5RcRt.js} +1 -1
- package/dist/{blockTypeIcons-ejNais7n.js → blockTypeIcons-dpKs5GQc.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-DY0AYOLG.js → ca-DZSrLNXK.js} +2 -0
- package/dist/cdn/chunks/{AiChatSidebar-BE97qqqb.js → AiChatSidebar-DmYDRmvX.js} +6 -6
- package/dist/cdn/chunks/{AiChatSidebar-BE97qqqb.js.map → AiChatSidebar-DmYDRmvX.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-CNP54HPc.js → AiFeatureMenu-C0Rt08qb.js} +3 -3
- package/dist/cdn/chunks/{AiFeatureMenu-CNP54HPc.js.map → AiFeatureMenu-C0Rt08qb.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-Bry71Wjz.js → BlockIssueBadge-BBog2CMy.js} +2 -2
- package/dist/cdn/chunks/{BlockIssueBadge-Bry71Wjz.js.map → BlockIssueBadge-BBog2CMy.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-CUEZIwJ4.js → BlockPreviewCanvas-DNBjBKBI.js} +2 -2
- package/dist/cdn/chunks/{BlockPreviewCanvas-CUEZIwJ4.js.map → BlockPreviewCanvas-DNBjBKBI.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-Bz--_dKu.js → CloudHeaderExtras-Ditfv7y9.js} +3 -3
- package/dist/cdn/chunks/{CloudHeaderExtras-Bz--_dKu.js.map → CloudHeaderExtras-Ditfv7y9.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-BXcdYgy0.js → CloudPanels-C4U5bJO6.js} +4 -4
- package/dist/cdn/chunks/{CloudPanels-BXcdYgy0.js.map → CloudPanels-C4U5bJO6.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-CvvoIrKS.js → CollaboratorBar-B79JR9NH.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-CvvoIrKS.js.map → CollaboratorBar-B79JR9NH.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-Ww4xHHMI.js → ColorPicker-C-ZiwUV3.js} +2 -2
- package/dist/cdn/chunks/{ColorPicker-Ww4xHHMI.js.map → ColorPicker-C-ZiwUV3.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-DjId-XH-.js → CommentsPanel-D1Ke8PbO.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-DjId-XH-.js.map → CommentsPanel-D1Ke8PbO.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-DXXGWSr4.js → CommentsSidebar-B-UyhIZN.js} +2 -2
- package/dist/cdn/chunks/{CommentsSidebar-DXXGWSr4.js.map → CommentsSidebar-B-UyhIZN.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BD90NpY1.js → CountdownToolbar-DyOHOu44.js} +18 -18
- package/dist/cdn/chunks/{CountdownToolbar-BD90NpY1.js.map → CountdownToolbar-DyOHOu44.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-DY-laxO5.js → DesignReferenceSidebar-BCCX1FtP.js} +3 -3
- package/dist/cdn/chunks/{DesignReferenceSidebar-DY-laxO5.js.map → DesignReferenceSidebar-BCCX1FtP.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-DOG0zHvY.js → FieldRow-CbcpsxZ4.js} +24 -17
- package/dist/cdn/chunks/FieldRow-CbcpsxZ4.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-iC2hgrXx.js → IssuesPanel-3vD3ImHF.js} +2 -2
- package/dist/cdn/chunks/{IssuesPanel-iC2hgrXx.js.map → IssuesPanel-3vD3ImHF.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BRW3qErZ.js → MergeTagModeToggle-BU0SDRow.js} +3 -3
- package/dist/cdn/chunks/{MergeTagModeToggle-BRW3qErZ.js.map → MergeTagModeToggle-BU0SDRow.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-VP_nC-8W.js → MergeTagSuggestion-B9vL0VaG.js} +2 -2
- package/dist/cdn/chunks/{MergeTagSuggestion-VP_nC-8W.js.map → MergeTagSuggestion-B9vL0VaG.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-CPVnO48U.js → ParagraphEditor-CSwIuvoF.js} +22 -22
- package/dist/cdn/chunks/{ParagraphEditor-CPVnO48U.js.map → ParagraphEditor-CSwIuvoF.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog--Blx-VKu.js → RestoreVersionDialog-Bvg2WvJN.js} +3 -3
- package/dist/cdn/chunks/{RestoreVersionDialog--Blx-VKu.js.map → RestoreVersionDialog-Bvg2WvJN.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DpvOKKH-.js → RichTextEditorContent-DdkmEEpK.js} +3 -3
- package/dist/cdn/chunks/{RichTextEditorContent-DpvOKKH-.js.map → RichTextEditorContent-DdkmEEpK.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-DXQ2g_38.js → SaveBlockDialog-D-QO3LuR.js} +5 -5
- package/dist/cdn/chunks/{SaveBlockDialog-DXQ2g_38.js.map → SaveBlockDialog-D-QO3LuR.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DWBvVkuk.js → SavedBlocksBrowserModal-BRdN56r7.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DWBvVkuk.js.map → SavedBlocksBrowserModal-BRdN56r7.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-GgdpiPUq.js → SavedBlocksPanels-D9GTlLgb.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-GgdpiPUq.js.map → SavedBlocksPanels-D9GTlLgb.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-Dyb5xi1B.js → SavedBlocksPickBar-DSRcUeIo.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPickBar-Dyb5xi1B.js.map → SavedBlocksPickBar-DSRcUeIo.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-B0YcaJsR.js → TemplateScoringPanel-Dy5oOVhB.js} +2 -2
- package/dist/cdn/chunks/{TemplateScoringPanel-B0YcaJsR.js.map → TemplateScoringPanel-Dy5oOVhB.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-B9SmAIKZ.js → TestEmailModal-B4L2lmIV.js} +7 -7
- package/dist/cdn/chunks/{TestEmailModal-B9SmAIKZ.js.map → TestEmailModal-B4L2lmIV.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-Q6alElB1.js → TestEmailPanel-cTPgEf-D.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-Q6alElB1.js.map → TestEmailPanel-cTPgEf-D.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-Tudoac5f.js → TitleEditor-BKjL2Zs1.js} +8 -8
- package/dist/cdn/chunks/{TitleEditor-Tudoac5f.js.map → TitleEditor-BKjL2Zs1.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-BNJIFnyj.js → TplModal-DxrgNmt9.js} +2 -2
- package/dist/cdn/chunks/{TplModal-BNJIFnyj.js.map → TplModal-DxrgNmt9.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-DJGcA_RX.js → VersionHistoryMenu-CMqZFUHE.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryMenu-DJGcA_RX.js.map → VersionHistoryMenu-CMqZFUHE.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-Crw5JA89.js → VersionHistoryPanels-CxIFBJsz.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-Crw5JA89.js.map → VersionHistoryPanels-CxIFBJsz.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-C8pfES5A.js → VersionPreviewBanner-CdsZvVYF.js} +2 -2
- package/dist/cdn/chunks/{VersionPreviewBanner-C8pfES5A.js.map → VersionPreviewBanner-CdsZvVYF.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-JUwZtKaq.js → blockTypeIcons-DXPd_hd1.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-JUwZtKaq.js.map → blockTypeIcons-DXPd_hd1.js.map} +1 -1
- package/dist/cdn/chunks/{ca-DY0AYOLG.js → ca-DZSrLNXK.js} +3 -1
- package/dist/cdn/chunks/ca-DZSrLNXK.js.map +1 -0
- package/dist/cdn/chunks/{cloud-C29LPXYn.js → cloud-CITqEHEc.js} +2 -2
- package/dist/cdn/chunks/{cloud-C29LPXYn.js.map → cloud-CITqEHEc.js.map} +1 -1
- package/dist/cdn/chunks/{createCloudRuntime-C6MJN7M6.js → createCloudRuntime-DwIXvrb0.js} +4 -4
- package/dist/cdn/chunks/{createCloudRuntime-C6MJN7M6.js.map → createCloudRuntime-DwIXvrb0.js.map} +1 -1
- package/dist/{de-CYLWugqb.js → cdn/chunks/de-DbayqpK-.js} +4 -0
- package/dist/cdn/chunks/{de-CYLWugqb.js.map → de-DbayqpK-.js.map} +1 -1
- package/dist/cdn/chunks/en-BzFt4b80.js +2 -0
- package/dist/cdn/chunks/{en-C3TM249M.js → en-l0ib5X0f.js} +3 -1
- package/dist/cdn/chunks/en-l0ib5X0f.js.map +1 -0
- package/dist/cdn/chunks/{es-D1SF4nCR.js → es-CMQ-5PJP.js} +3 -1
- package/dist/cdn/chunks/es-CMQ-5PJP.js.map +1 -0
- package/dist/cdn/chunks/{extensions-BQefRevf.js → extensions-C87Z6_23.js} +5 -5
- package/dist/cdn/chunks/{extensions-BQefRevf.js.map → extensions-C87Z6_23.js.map} +1 -1
- package/dist/{fr-CdLhJ7kw.js → cdn/chunks/fr-DNXmZWAq.js} +4 -0
- package/dist/cdn/chunks/fr-DNXmZWAq.js.map +1 -0
- package/dist/cdn/chunks/{icons-BTdLXRXn.js → icons-ciivb5BS.js} +10 -10
- package/dist/cdn/chunks/{icons-BTdLXRXn.js.map → icons-ciivb5BS.js.map} +1 -1
- package/dist/{nl-BvsLoyKp.js → cdn/chunks/nl-BylRRHYJ.js} +4 -0
- package/dist/cdn/chunks/nl-BylRRHYJ.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-CbA3RcAy.js → preRenderCustomBlocks-DyCIgmqJ.js} +2 -2
- package/dist/cdn/chunks/{preRenderCustomBlocks-CbA3RcAy.js.map → preRenderCustomBlocks-DyCIgmqJ.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-CAGS5YXp.js → pt-BR-BVoJhpie.js} +3 -1
- package/dist/cdn/chunks/pt-BR-BVoJhpie.js.map +1 -0
- package/dist/cdn/chunks/{src-Cx70q30o.js → src-6J-yyZoD.js} +2 -2
- package/dist/cdn/chunks/{src-Cx70q30o.js.map → src-6J-yyZoD.js.map} +1 -1
- package/dist/cdn/chunks/{src-B_QJduQD.js → src-BD60gqPW.js} +72 -67
- package/dist/cdn/chunks/src-BD60gqPW.js.map +1 -0
- package/dist/cdn/chunks/{src-fxaI2EQc.js → src-Bid3cmHa.js} +4 -4
- package/dist/cdn/chunks/{src-fxaI2EQc.js.map → src-Bid3cmHa.js.map} +1 -1
- package/dist/cdn/chunks/{src-CjSrA_o4.js → src-Cf0ohOog.js} +166 -136
- package/dist/cdn/chunks/src-Cf0ohOog.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-Bqy-H6CT.js → tiptap-Ey0FpaX7.js} +1710 -1700
- package/dist/cdn/chunks/tiptap-Ey0FpaX7.js.map +1 -0
- package/dist/cdn/chunks/{useEditorCore-o2emEjgF.js → useEditorCore-CTNB2Mkl.js} +351 -356
- package/dist/cdn/chunks/{useEditorCore-o2emEjgF.js.map → useEditorCore-CTNB2Mkl.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-BWt1DQS1.js → useMergeTag-lWo7So18.js} +2 -2
- package/dist/cdn/chunks/{useMergeTag-BWt1DQS1.js.map → useMergeTag-lWo7So18.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +943 -911
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-CTe6VejT.js → check-80E6ZGin.js} +1 -1
- package/dist/{chevron-down-BBThVMu-.js → chevron-down-BmkLsn2c.js} +1 -1
- package/dist/{chevron-up-iECwf-Bc.js → chevron-up-DJSAzlUU.js} +1 -1
- package/dist/{circle-alert-Z_eeykrO.js → circle-alert-BsCfZryY.js} +1 -1
- package/dist/{clock-CEj1c29j.js → clock-BcLIngSK.js} +1 -1
- package/dist/{cloud-CHHQWdaR.js → cloud-DwJ8ebNl.js} +1 -1
- package/dist/{createCloudRuntime-WwKt9mgb.js → createCloudRuntime-CdXQdl34.js} +2 -2
- package/dist/{createLucideIcon-DphAT3tw.js → createLucideIcon-eeetEgBb.js} +2 -2
- package/dist/{cdn/chunks/de-CYLWugqb.js → de-DbayqpK-.js} +2 -2
- package/dist/{dist-nmzPlqlz.js → dist-BC1y_U2m.js} +151 -141
- package/dist/{dist-gWM8H2hz.js → dist-BFcAowKZ.js} +2 -2
- package/dist/dist-BQqIUwvB.js +5 -0
- package/dist/{dist-DLaIQ5H5.js → dist-BkAVGSRr.js} +6 -6
- package/dist/{dist-BfcqryVg.js → dist-CQ9T1yi-.js} +2 -2
- package/dist/{dist-CaR5TLiM.js → dist-CWC5t5J3.js} +2 -2
- package/dist/{dist-D2P8U3p6.js → dist-Cd0LvUlh.js} +2 -2
- package/dist/{dist-DSgmnQ-f.js → dist-CvW1nNzy.js} +2 -2
- package/dist/{dist-B1kLn1rs.js → dist-CzVIVbSa.js} +90 -85
- package/dist/{dist-9fjN9cuD.js → dist-D8MekYFl.js} +2 -2
- package/dist/{dist-DifptC-U.js → dist-Do83S47T.js} +2 -2
- package/dist/{dist-BdIwIlKz.js → dist-prgdllHG.js} +2 -2
- package/dist/dist-waDcdb1l.js +5 -0
- package/dist/{en-C3TM249M.js → en-l0ib5X0f.js} +2 -0
- package/dist/{es-D1SF4nCR.js → es-CMQ-5PJP.js} +2 -0
- package/dist/{extensions-B4gwZ36u.js → extensions-BYImwYeO.js} +15 -15
- package/dist/{cdn/chunks/fr-CdLhJ7kw.js → fr-DNXmZWAq.js} +2 -2
- package/dist/{image-up-W1INxCu8.js → image-up-BfxY85ar.js} +1 -1
- package/dist/{info-5t4WYKfh.js → info-LX4QFBr6.js} +1 -1
- package/dist/{loader-circle-DJCZ_JMY.js → loader-circle-Bwima0v8.js} +1 -1
- package/dist/{message-circle-Biu6lHh_.js → message-circle-Box-mf2k.js} +1 -1
- package/dist/{cdn/chunks/nl-BvsLoyKp.js → nl-BylRRHYJ.js} +2 -2
- package/dist/{pencil-DkPlMca7.js → pencil-BM9gSq_J.js} +1 -1
- package/dist/{preRenderCustomBlocks-BebjKtmw.js → preRenderCustomBlocks-2KyBJocY.js} +1 -1
- package/dist/{pt-BR-CAGS5YXp.js → pt-BR-BVoJhpie.js} +2 -0
- package/dist/{refresh-cw-DHbpkkol.js → refresh-cw-BuzFX0wH.js} +1 -1
- package/dist/{scan-line-DojwGzjU.js → scan-line-Duq1WXoG.js} +1 -1
- package/dist/{send-c6ppcE9I.js → send-DZ4nOnIA.js} +1 -1
- package/dist/{shield-check-F9T4ylNK.js → shield-check-Cz4BRYdv.js} +1 -1
- package/dist/{sparkles-D-0OiTZD.js → sparkles-DP8RqOeL.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +986 -954
- package/dist/{text-align-start-kEEtoRrD.js → text-align-start-D7tXhjUP.js} +1 -1
- package/dist/{trash-2-DRQzhY9R.js → trash-2-BS7lZeyb.js} +1 -1
- package/dist/{triangle-alert-Bt4-GU3t.js → triangle-alert-Cx4mQGjx.js} +1 -1
- package/dist/{upload-D2wtjvH8.js → upload-L8tLVM10.js} +1 -1
- package/dist/{useEditorCore-CJp84vJY.js → useEditorCore-CtR46sbJ.js} +868 -873
- package/dist/{useMergeTag-D1Rsn4BO.js → useMergeTag-Cx36rtrt.js} +3 -3
- package/dist/{useScrollToBlock-B0Qpjfa4.js → useScrollToBlock-tndC8vKo.js} +1 -1
- package/dist/{x-YiG-TUGN.js → x-ChIQ7HwK.js} +1 -1
- package/package.json +22 -22
- package/dist/cdn/chunks/NumberWithSuffix-DOG0zHvY.js.map +0 -1
- package/dist/cdn/chunks/ca-DY0AYOLG.js.map +0 -1
- package/dist/cdn/chunks/en-C3TM249M.js.map +0 -1
- package/dist/cdn/chunks/en-DIwntrh3.js +0 -2
- package/dist/cdn/chunks/es-D1SF4nCR.js.map +0 -1
- package/dist/cdn/chunks/fr-CdLhJ7kw.js.map +0 -1
- package/dist/cdn/chunks/nl-BvsLoyKp.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-CAGS5YXp.js.map +0 -1
- package/dist/cdn/chunks/src-B_QJduQD.js.map +0 -1
- package/dist/cdn/chunks/src-CjSrA_o4.js.map +0 -1
- package/dist/cdn/chunks/tiptap-Bqy-H6CT.js.map +0 -1
- package/dist/dist-CzMzshfS.js +0 -5
- package/dist/dist-DTVuNn8M.js +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@tiptap+core@3.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@tiptap+core@3.31.1_@tiptap+pm@3.31.1/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js
|
|
2
2
|
var e = Object.defineProperty, t = (t, n) => {
|
|
3
3
|
let r = {};
|
|
4
4
|
for (var i in t) e(r, i, {
|
|
@@ -7355,7 +7355,7 @@ function Ys(e) {
|
|
|
7355
7355
|
};
|
|
7356
7356
|
}
|
|
7357
7357
|
//#endregion
|
|
7358
|
-
//#region ../../node_modules/.pnpm/@tiptap+core@3.
|
|
7358
|
+
//#region ../../node_modules/.pnpm/@tiptap+core@3.31.1_@tiptap+pm@3.31.1/node_modules/@tiptap/core/dist/index.js
|
|
7359
7359
|
function Xs(e) {
|
|
7360
7360
|
let { state: t, transaction: n } = e, { selection: r } = n, { doc: i } = n, { storedMarks: a } = n;
|
|
7361
7361
|
return {
|
|
@@ -9707,44 +9707,54 @@ function lf(e, t, n) {
|
|
|
9707
9707
|
raw: a
|
|
9708
9708
|
};
|
|
9709
9709
|
}
|
|
9710
|
-
|
|
9710
|
+
var uf = 4;
|
|
9711
|
+
function df(e) {
|
|
9712
|
+
let t = 0;
|
|
9713
|
+
for (let n of e) t = n === " " ? t + uf - t % uf : t + 1;
|
|
9714
|
+
return t;
|
|
9715
|
+
}
|
|
9716
|
+
function ff(e, t, n, r, i) {
|
|
9711
9717
|
if (!e || !Array.isArray(e.content)) return "";
|
|
9712
|
-
let
|
|
9713
|
-
return
|
|
9718
|
+
let a = typeof n == "function" ? n(r) : n, [o, ...s] = e.content, c = `${a}${t.renderChildren([o])}`;
|
|
9719
|
+
return s && s.length > 0 && s.forEach((e, n) => {
|
|
9714
9720
|
let r = t.renderChild?.call(t, e, n + 1) ?? t.renderChildren([e]);
|
|
9715
9721
|
if (r != null) {
|
|
9716
|
-
let n =
|
|
9717
|
-
|
|
9722
|
+
let n = (e) => {
|
|
9723
|
+
if (!i?.alignNestedToPrefix) return t.indent(e);
|
|
9724
|
+
let n = t.indent(""), r = df(a);
|
|
9725
|
+
return (df(n) >= r ? n : " ".repeat(r)) + e;
|
|
9726
|
+
}, o = r.split("\n").map((e) => n(e || "")).join("\n");
|
|
9727
|
+
c += e.type === "paragraph" ? `\n\n${o}` : `\n${o}`;
|
|
9718
9728
|
}
|
|
9719
|
-
}),
|
|
9729
|
+
}), c;
|
|
9720
9730
|
}
|
|
9721
|
-
var
|
|
9731
|
+
var pf = /* @__PURE__ */ t({
|
|
9722
9732
|
createAtomBlockMarkdownSpec: () => rf,
|
|
9723
9733
|
createBlockMarkdownSpec: () => af,
|
|
9724
9734
|
createInlineMarkdownSpec: () => cf,
|
|
9725
9735
|
parseAttributes: () => tf,
|
|
9726
9736
|
parseIndentedBlocks: () => lf,
|
|
9727
|
-
renderNestedMarkdownContent: () =>
|
|
9737
|
+
renderNestedMarkdownContent: () => ff,
|
|
9728
9738
|
serializeAttributes: () => nf
|
|
9729
9739
|
});
|
|
9730
|
-
function
|
|
9740
|
+
function mf(e) {
|
|
9731
9741
|
return typeof e.type == "string" ? e.type : e.type.name;
|
|
9732
9742
|
}
|
|
9733
|
-
function
|
|
9743
|
+
function hf(e, t) {
|
|
9734
9744
|
if (e.length !== t.length) return !1;
|
|
9735
9745
|
let n = Array.from({ length: t.length }, () => !1);
|
|
9736
9746
|
return e.every((e) => {
|
|
9737
|
-
let r =
|
|
9747
|
+
let r = mf(e), i = t.findIndex((t, i) => !n[i] && r === mf(t) && Ad(e.attrs, t.attrs));
|
|
9738
9748
|
return i !== -1 && (n[i] = !0, !0);
|
|
9739
9749
|
});
|
|
9740
9750
|
}
|
|
9741
|
-
function
|
|
9751
|
+
function gf(e, t) {
|
|
9742
9752
|
let n = { ...e };
|
|
9743
9753
|
return Bd(e) && Bd(t) && Object.keys(t).forEach((r) => {
|
|
9744
|
-
Bd(t[r]) && Bd(e[r]) ? n[r] =
|
|
9754
|
+
Bd(t[r]) && Bd(e[r]) ? n[r] = gf(e[r], t[r]) : n[r] = t[r];
|
|
9745
9755
|
}), n;
|
|
9746
9756
|
}
|
|
9747
|
-
function
|
|
9757
|
+
function _f(e, t, n = {}) {
|
|
9748
9758
|
let { state: r } = t, { doc: i, tr: a } = r, o = e;
|
|
9749
9759
|
i.descendants((t, r) => {
|
|
9750
9760
|
let i = a.mapping.map(r), s = a.mapping.map(r) + t.nodeSize, c = null;
|
|
@@ -9764,7 +9774,7 @@ function hf(e, t, n = {}) {
|
|
|
9764
9774
|
}
|
|
9765
9775
|
}), a.docChanged && t.view.dispatch(a);
|
|
9766
9776
|
}
|
|
9767
|
-
var
|
|
9777
|
+
var vf = class {
|
|
9768
9778
|
constructor(e, t, n) {
|
|
9769
9779
|
this.component = e, this.editor = t.editor, this.options = { ...n }, this.mark = t.mark, this.HTMLAttributes = t.HTMLAttributes;
|
|
9770
9780
|
}
|
|
@@ -9775,23 +9785,23 @@ var gf = class {
|
|
|
9775
9785
|
return null;
|
|
9776
9786
|
}
|
|
9777
9787
|
updateAttributes(e, t) {
|
|
9778
|
-
|
|
9788
|
+
_f(t || this.mark, this.editor, e);
|
|
9779
9789
|
}
|
|
9780
9790
|
ignoreMutation(e) {
|
|
9781
|
-
return !this.dom || !this.contentDOM ? !0 : typeof this.options.ignoreMutation == "function" ? this.options.ignoreMutation({ mutation: e }) : e.type === "selection" || this.
|
|
9791
|
+
return !this.dom || !this.contentDOM ? !0 : typeof this.options.ignoreMutation == "function" ? this.options.ignoreMutation({ mutation: e }) : e.type === "selection" || this.contentDOM.contains(e.target) && e.type === "childList" && (Cc() || Sc()) && this.editor.isFocused && [...Array.from(e.addedNodes), ...Array.from(e.removedNodes)].every((e) => e.isContentEditable) ? !1 : this.contentDOM === e.target && e.type === "attributes" || !this.contentDOM.contains(e.target);
|
|
9782
9792
|
}
|
|
9783
|
-
},
|
|
9793
|
+
}, yf = class {
|
|
9784
9794
|
constructor(e) {
|
|
9785
9795
|
this.find = e.find, this.handler = e.handler, this.undoable = e.undoable ?? !0;
|
|
9786
9796
|
}
|
|
9787
|
-
},
|
|
9797
|
+
}, bf = (e, t) => {
|
|
9788
9798
|
if (pc(t)) return t.exec(e);
|
|
9789
9799
|
let n = t(e);
|
|
9790
9800
|
if (!n) return null;
|
|
9791
9801
|
let r = [n.text];
|
|
9792
9802
|
return r.index = n.index, r.input = e, r.data = n.data, n.replaceWith && (n.text.includes(n.replaceWith) || console.warn("[tiptap warn]: \"inputRuleMatch.replaceWith\" must be part of \"inputRuleMatch.text\"."), r.push(n.replaceWith)), r;
|
|
9793
9803
|
};
|
|
9794
|
-
function
|
|
9804
|
+
function xf(e) {
|
|
9795
9805
|
let { editor: t, from: n, to: r, text: i, rules: a, plugin: o } = e, { view: s } = t;
|
|
9796
9806
|
if (s.composing) return !1;
|
|
9797
9807
|
let c = s.state.doc.resolve(n);
|
|
@@ -9799,7 +9809,7 @@ function yf(e) {
|
|
|
9799
9809
|
let l = !1, u = $l(c) + i;
|
|
9800
9810
|
return a.forEach((e) => {
|
|
9801
9811
|
if (l) return;
|
|
9802
|
-
let a =
|
|
9812
|
+
let a = bf(u, e.find);
|
|
9803
9813
|
if (!a) return;
|
|
9804
9814
|
let d = a[0].length - i.length;
|
|
9805
9815
|
if (d > 0) {
|
|
@@ -9831,7 +9841,7 @@ function yf(e) {
|
|
|
9831
9841
|
}), s.dispatch(f), l = !0);
|
|
9832
9842
|
}), l;
|
|
9833
9843
|
}
|
|
9834
|
-
function
|
|
9844
|
+
function Sf(e) {
|
|
9835
9845
|
let { editor: t, rules: n } = e, r = new A({
|
|
9836
9846
|
state: {
|
|
9837
9847
|
init() {
|
|
@@ -9845,7 +9855,7 @@ function bf(e) {
|
|
|
9845
9855
|
let { text: e } = c;
|
|
9846
9856
|
e = typeof e == "string" ? e : vl(s.from(e), a.schema);
|
|
9847
9857
|
let { from: i } = c, o = i + e.length;
|
|
9848
|
-
|
|
9858
|
+
xf({
|
|
9849
9859
|
editor: t,
|
|
9850
9860
|
from: i,
|
|
9851
9861
|
to: o,
|
|
@@ -9858,7 +9868,7 @@ function bf(e) {
|
|
|
9858
9868
|
},
|
|
9859
9869
|
props: {
|
|
9860
9870
|
handleTextInput(e, i, a, o) {
|
|
9861
|
-
return
|
|
9871
|
+
return xf({
|
|
9862
9872
|
editor: t,
|
|
9863
9873
|
from: i,
|
|
9864
9874
|
to: a,
|
|
@@ -9869,7 +9879,7 @@ function bf(e) {
|
|
|
9869
9879
|
},
|
|
9870
9880
|
handleDOMEvents: { compositionend: (e) => (setTimeout(() => {
|
|
9871
9881
|
let { $cursor: i } = e.state.selection;
|
|
9872
|
-
i &&
|
|
9882
|
+
i && xf({
|
|
9873
9883
|
editor: t,
|
|
9874
9884
|
from: i.pos,
|
|
9875
9885
|
to: i.pos,
|
|
@@ -9881,7 +9891,7 @@ function bf(e) {
|
|
|
9881
9891
|
handleKeyDown(e, i) {
|
|
9882
9892
|
if (i.key !== "Enter") return !1;
|
|
9883
9893
|
let { $cursor: a } = e.state.selection;
|
|
9884
|
-
return a ?
|
|
9894
|
+
return a ? xf({
|
|
9885
9895
|
editor: t,
|
|
9886
9896
|
from: a.pos,
|
|
9887
9897
|
to: a.pos,
|
|
@@ -9895,7 +9905,7 @@ function bf(e) {
|
|
|
9895
9905
|
});
|
|
9896
9906
|
return r;
|
|
9897
9907
|
}
|
|
9898
|
-
var
|
|
9908
|
+
var Cf = class {
|
|
9899
9909
|
constructor(e = {}) {
|
|
9900
9910
|
this.type = "extendable", this.parent = null, this.child = null, this.name = "", this.config = { name: this.name }, this.config = {
|
|
9901
9911
|
...this.config,
|
|
@@ -9914,7 +9924,7 @@ var xf = class {
|
|
|
9914
9924
|
configure(e = {}) {
|
|
9915
9925
|
let t = this.extend({
|
|
9916
9926
|
...this.config,
|
|
9917
|
-
addOptions: () =>
|
|
9927
|
+
addOptions: () => gf(this.options, e)
|
|
9918
9928
|
});
|
|
9919
9929
|
return t.name = this.name, t.parent = this.parent, this.child = null, t;
|
|
9920
9930
|
}
|
|
@@ -9925,7 +9935,7 @@ var xf = class {
|
|
|
9925
9935
|
});
|
|
9926
9936
|
return t.parent = this, this.child = t, t.name = "name" in e ? e.name : t.parent.name, t;
|
|
9927
9937
|
}
|
|
9928
|
-
},
|
|
9938
|
+
}, wf = class e extends Cf {
|
|
9929
9939
|
constructor(...e) {
|
|
9930
9940
|
super(...e), this.type = "mark";
|
|
9931
9941
|
}
|
|
@@ -9950,11 +9960,11 @@ var xf = class {
|
|
|
9950
9960
|
let t = typeof e == "function" ? e() : e;
|
|
9951
9961
|
return super.extend(t);
|
|
9952
9962
|
}
|
|
9953
|
-
},
|
|
9963
|
+
}, Tf = class {
|
|
9954
9964
|
constructor(e) {
|
|
9955
9965
|
this.find = e.find, this.handler = e.handler;
|
|
9956
9966
|
}
|
|
9957
|
-
},
|
|
9967
|
+
}, Ef = (e, t, n) => {
|
|
9958
9968
|
if (pc(t)) return [...e.matchAll(t)];
|
|
9959
9969
|
let r = t(e, n);
|
|
9960
9970
|
return r ? r.map((t) => {
|
|
@@ -9962,7 +9972,7 @@ var xf = class {
|
|
|
9962
9972
|
return n.index = t.index, n.input = e, n.data = t.data, t.replaceWith && (t.text.includes(t.replaceWith) || console.warn("[tiptap warn]: \"pasteRuleMatch.replaceWith\" must be part of \"pasteRuleMatch.text\"."), n.push(t.replaceWith)), n;
|
|
9963
9973
|
}) : [];
|
|
9964
9974
|
};
|
|
9965
|
-
function
|
|
9975
|
+
function Df(e) {
|
|
9966
9976
|
let { editor: t, state: n, from: r, to: i, rule: a, pasteEvent: o, dropEvent: s } = e, { commands: c, chain: l, can: u } = new Zs({
|
|
9967
9977
|
editor: t,
|
|
9968
9978
|
state: n
|
|
@@ -9971,7 +9981,7 @@ function Tf(e) {
|
|
|
9971
9981
|
var f;
|
|
9972
9982
|
if ((f = e.type) != null && (f = f.spec) != null && f.code || !(e.isText || e.isTextblock || e.isInline)) return;
|
|
9973
9983
|
let p = e.content?.size ?? e.nodeSize ?? 0, m = Math.max(r, t), h = Math.min(i, t + p);
|
|
9974
|
-
m >= h ||
|
|
9984
|
+
m >= h || Ef(e.isText ? e.text || "" : e.textBetween(m - t, h - t, void 0, ""), a.find, o).forEach((e) => {
|
|
9975
9985
|
if (e.index === void 0) return;
|
|
9976
9986
|
let t = m + e.index + 1, r = t + e[0].length, i = {
|
|
9977
9987
|
from: n.tr.mapping.map(t),
|
|
@@ -9990,12 +10000,12 @@ function Tf(e) {
|
|
|
9990
10000
|
});
|
|
9991
10001
|
}), d.every((e) => e !== null);
|
|
9992
10002
|
}
|
|
9993
|
-
var
|
|
10003
|
+
var Of = null, kf = (e) => {
|
|
9994
10004
|
var t;
|
|
9995
10005
|
let n = new ClipboardEvent("paste", { clipboardData: new DataTransfer() });
|
|
9996
10006
|
return (t = n.clipboardData) == null || t.setData("text/html", e), n;
|
|
9997
10007
|
};
|
|
9998
|
-
function
|
|
10008
|
+
function Af(e) {
|
|
9999
10009
|
let { editor: t, rules: n } = e, r = null, i = !1, a = !1, o = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, c;
|
|
10000
10010
|
try {
|
|
10001
10011
|
c = typeof DragEvent < "u" ? new DragEvent("drop") : null;
|
|
@@ -10007,7 +10017,7 @@ function Of(e) {
|
|
|
10007
10017
|
state: e,
|
|
10008
10018
|
transaction: s
|
|
10009
10019
|
});
|
|
10010
|
-
if (!(!
|
|
10020
|
+
if (!(!Df({
|
|
10011
10021
|
editor: t,
|
|
10012
10022
|
state: l,
|
|
10013
10023
|
from: Math.max(n - 1, 0),
|
|
@@ -10027,9 +10037,9 @@ function Of(e) {
|
|
|
10027
10037
|
return n.map((e) => new A({
|
|
10028
10038
|
view(e) {
|
|
10029
10039
|
let n = (n) => {
|
|
10030
|
-
r = e.dom.parentElement?.contains(n.target) ? e.dom.parentElement : null, r && (
|
|
10040
|
+
r = e.dom.parentElement?.contains(n.target) ? e.dom.parentElement : null, r && (Of = t);
|
|
10031
10041
|
}, i = () => {
|
|
10032
|
-
|
|
10042
|
+
Of &&= null;
|
|
10033
10043
|
};
|
|
10034
10044
|
return window.addEventListener("dragstart", n), window.addEventListener("dragend", i), { destroy() {
|
|
10035
10045
|
window.removeEventListener("dragstart", n), window.removeEventListener("dragend", i);
|
|
@@ -10038,7 +10048,7 @@ function Of(e) {
|
|
|
10038
10048
|
props: { handleDOMEvents: {
|
|
10039
10049
|
drop: (e, t) => {
|
|
10040
10050
|
if (a = r === e.dom.parentElement, c = t, !a) {
|
|
10041
|
-
let e =
|
|
10051
|
+
let e = Of;
|
|
10042
10052
|
e?.isEditable && setTimeout(() => {
|
|
10043
10053
|
let t = e.state.selection;
|
|
10044
10054
|
t && e.commands.deleteRange({
|
|
@@ -10060,7 +10070,7 @@ function Of(e) {
|
|
|
10060
10070
|
if (p) {
|
|
10061
10071
|
let { text: t } = f;
|
|
10062
10072
|
t = typeof t == "string" ? t : vl(s.from(t), r.schema);
|
|
10063
|
-
let { from: n } = f, i = n + t.length, a =
|
|
10073
|
+
let { from: n } = f, i = n + t.length, a = kf(t);
|
|
10064
10074
|
return l({
|
|
10065
10075
|
rule: e,
|
|
10066
10076
|
state: r,
|
|
@@ -10080,7 +10090,7 @@ function Of(e) {
|
|
|
10080
10090
|
}
|
|
10081
10091
|
}));
|
|
10082
10092
|
}
|
|
10083
|
-
var
|
|
10093
|
+
var jf = class {
|
|
10084
10094
|
constructor(e, t) {
|
|
10085
10095
|
this.splittableMarks = [], this.nonClearableMarks = [], this.decorationManager = null, this.editor = t, this.baseExtensions = e, this.extensions = Pl(e), this.schema = jl(this.extensions, t), this.setupExtensions();
|
|
10086
10096
|
}
|
|
@@ -10108,7 +10118,7 @@ var kf = class {
|
|
|
10108
10118
|
editor: e,
|
|
10109
10119
|
type: Zl(t.name, this.schema)
|
|
10110
10120
|
}, r = [], i = Z(t, "addKeyboardShortcuts", n), a = {};
|
|
10111
|
-
if (t.type === "mark" && Z(t, "exitable", n) && (a.ArrowRight = () =>
|
|
10121
|
+
if (t.type === "mark" && Z(t, "exitable", n) && (a.ArrowRight = () => wf.handleExit({
|
|
10112
10122
|
editor: e,
|
|
10113
10123
|
mark: t
|
|
10114
10124
|
})), i) {
|
|
@@ -10124,7 +10134,7 @@ var kf = class {
|
|
|
10124
10134
|
if (iu(t, e.options.enableInputRules) && s) {
|
|
10125
10135
|
let t = s();
|
|
10126
10136
|
if (t && t.length) {
|
|
10127
|
-
let n =
|
|
10137
|
+
let n = Sf({
|
|
10128
10138
|
editor: e,
|
|
10129
10139
|
rules: t
|
|
10130
10140
|
}), i = Array.isArray(n) ? n : [n];
|
|
@@ -10135,7 +10145,7 @@ var kf = class {
|
|
|
10135
10145
|
if (iu(t, e.options.enablePasteRules) && c) {
|
|
10136
10146
|
let t = c();
|
|
10137
10147
|
if (t && t.length) {
|
|
10138
|
-
let n =
|
|
10148
|
+
let n = Af({
|
|
10139
10149
|
editor: e,
|
|
10140
10150
|
rules: t
|
|
10141
10151
|
});
|
|
@@ -10257,7 +10267,7 @@ var kf = class {
|
|
|
10257
10267
|
extension: t,
|
|
10258
10268
|
HTMLAttributes: s,
|
|
10259
10269
|
updateAttributes: (t) => {
|
|
10260
|
-
|
|
10270
|
+
_f(i, e, t);
|
|
10261
10271
|
}
|
|
10262
10272
|
});
|
|
10263
10273
|
}] : [];
|
|
@@ -10289,8 +10299,8 @@ var kf = class {
|
|
|
10289
10299
|
});
|
|
10290
10300
|
}
|
|
10291
10301
|
};
|
|
10292
|
-
|
|
10293
|
-
var $ = class e extends
|
|
10302
|
+
jf.resolve = Pl, jf.sort = Nl, jf.flatten = _l;
|
|
10303
|
+
var $ = class e extends Cf {
|
|
10294
10304
|
constructor(...e) {
|
|
10295
10305
|
super(...e), this.type = "extension";
|
|
10296
10306
|
}
|
|
@@ -10305,7 +10315,7 @@ var $ = class e extends xf {
|
|
|
10305
10315
|
let t = typeof e == "function" ? e() : e;
|
|
10306
10316
|
return super.extend(t);
|
|
10307
10317
|
}
|
|
10308
|
-
},
|
|
10318
|
+
}, Mf = $.create({
|
|
10309
10319
|
name: "clipboardTextSerializer",
|
|
10310
10320
|
addOptions() {
|
|
10311
10321
|
return { blockSeparator: void 0 };
|
|
@@ -10325,12 +10335,12 @@ var $ = class e extends xf {
|
|
|
10325
10335
|
} }
|
|
10326
10336
|
})];
|
|
10327
10337
|
}
|
|
10328
|
-
}),
|
|
10338
|
+
}), Nf = $.create({
|
|
10329
10339
|
name: "commands",
|
|
10330
10340
|
addCommands() {
|
|
10331
10341
|
return { ...id };
|
|
10332
10342
|
}
|
|
10333
|
-
}),
|
|
10343
|
+
}), Pf = $.create({
|
|
10334
10344
|
name: "delete",
|
|
10335
10345
|
onUpdate({ transaction: e, appendedTransactions: t }) {
|
|
10336
10346
|
var n;
|
|
@@ -10384,7 +10394,7 @@ var $ = class e extends xf {
|
|
|
10384
10394
|
};
|
|
10385
10395
|
((n = this.editor.options.coreExtensionOptions) == null || (n = n.delete) == null ? void 0 : n.async) ?? !0 ? setTimeout(r, 0) : r();
|
|
10386
10396
|
}
|
|
10387
|
-
}),
|
|
10397
|
+
}), Ff = $.create({
|
|
10388
10398
|
name: "drop",
|
|
10389
10399
|
addProseMirrorPlugins() {
|
|
10390
10400
|
return [new A({
|
|
@@ -10399,7 +10409,7 @@ var $ = class e extends xf {
|
|
|
10399
10409
|
} }
|
|
10400
10410
|
})];
|
|
10401
10411
|
}
|
|
10402
|
-
}),
|
|
10412
|
+
}), If = $.create({
|
|
10403
10413
|
name: "editable",
|
|
10404
10414
|
addProseMirrorPlugins() {
|
|
10405
10415
|
return [new A({
|
|
@@ -10407,12 +10417,12 @@ var $ = class e extends xf {
|
|
|
10407
10417
|
props: { editable: () => this.editor.options.editable }
|
|
10408
10418
|
})];
|
|
10409
10419
|
}
|
|
10410
|
-
}),
|
|
10420
|
+
}), Lf = new j("focusEvents"), Rf = $.create({
|
|
10411
10421
|
name: "focusEvents",
|
|
10412
10422
|
addProseMirrorPlugins() {
|
|
10413
10423
|
let { editor: e } = this;
|
|
10414
10424
|
return [new A({
|
|
10415
|
-
key:
|
|
10425
|
+
key: Lf,
|
|
10416
10426
|
props: { handleDOMEvents: {
|
|
10417
10427
|
focus: (t, n) => {
|
|
10418
10428
|
e.isFocused = !0;
|
|
@@ -10427,7 +10437,7 @@ var $ = class e extends xf {
|
|
|
10427
10437
|
} }
|
|
10428
10438
|
})];
|
|
10429
10439
|
}
|
|
10430
|
-
}),
|
|
10440
|
+
}), zf = $.create({
|
|
10431
10441
|
name: "keymap",
|
|
10432
10442
|
addKeyboardShortcuts() {
|
|
10433
10443
|
let e = () => this.editor.commands.first(({ commands: e }) => [
|
|
@@ -10491,7 +10501,7 @@ var $ = class e extends xf {
|
|
|
10491
10501
|
}
|
|
10492
10502
|
})];
|
|
10493
10503
|
}
|
|
10494
|
-
}),
|
|
10504
|
+
}), Bf = $.create({
|
|
10495
10505
|
name: "paste",
|
|
10496
10506
|
addProseMirrorPlugins() {
|
|
10497
10507
|
return [new A({
|
|
@@ -10505,7 +10515,7 @@ var $ = class e extends xf {
|
|
|
10505
10515
|
} }
|
|
10506
10516
|
})];
|
|
10507
10517
|
}
|
|
10508
|
-
}),
|
|
10518
|
+
}), Vf = $.create({
|
|
10509
10519
|
name: "tabindex",
|
|
10510
10520
|
addOptions() {
|
|
10511
10521
|
return { value: void 0 };
|
|
@@ -10516,7 +10526,7 @@ var $ = class e extends xf {
|
|
|
10516
10526
|
props: { attributes: () => !this.editor.isEditable && this.options.value === void 0 ? {} : { tabindex: this.options.value ?? "0" } }
|
|
10517
10527
|
})];
|
|
10518
10528
|
}
|
|
10519
|
-
}),
|
|
10529
|
+
}), Hf = $.create({
|
|
10520
10530
|
name: "textDirection",
|
|
10521
10531
|
addOptions() {
|
|
10522
10532
|
return { direction: void 0 };
|
|
@@ -10545,22 +10555,22 @@ var $ = class e extends xf {
|
|
|
10545
10555
|
} }
|
|
10546
10556
|
})];
|
|
10547
10557
|
}
|
|
10548
|
-
}),
|
|
10549
|
-
ClipboardTextSerializer: () =>
|
|
10550
|
-
Commands: () =>
|
|
10551
|
-
Delete: () =>
|
|
10552
|
-
Drop: () =>
|
|
10553
|
-
Editable: () =>
|
|
10554
|
-
FocusEvents: () =>
|
|
10555
|
-
Keymap: () =>
|
|
10556
|
-
Paste: () =>
|
|
10557
|
-
Tabindex: () =>
|
|
10558
|
-
TextDirection: () =>
|
|
10559
|
-
focusEventsPluginKey: () =>
|
|
10560
|
-
}),
|
|
10561
|
-
function
|
|
10562
|
-
if (
|
|
10563
|
-
|
|
10558
|
+
}), Uf = /* @__PURE__ */ t({
|
|
10559
|
+
ClipboardTextSerializer: () => Mf,
|
|
10560
|
+
Commands: () => Nf,
|
|
10561
|
+
Delete: () => Pf,
|
|
10562
|
+
Drop: () => Ff,
|
|
10563
|
+
Editable: () => If,
|
|
10564
|
+
FocusEvents: () => Rf,
|
|
10565
|
+
Keymap: () => zf,
|
|
10566
|
+
Paste: () => Bf,
|
|
10567
|
+
Tabindex: () => Vf,
|
|
10568
|
+
TextDirection: () => Hf,
|
|
10569
|
+
focusEventsPluginKey: () => Lf
|
|
10570
|
+
}), Wf = !1;
|
|
10571
|
+
function Gf(e) {
|
|
10572
|
+
if (Wf) return;
|
|
10573
|
+
Wf = !0;
|
|
10564
10574
|
let t;
|
|
10565
10575
|
try {
|
|
10566
10576
|
t = w.fromJSON(e, {
|
|
@@ -10572,7 +10582,7 @@ function Uf(e) {
|
|
|
10572
10582
|
}
|
|
10573
10583
|
t instanceof s || console.warn("[tiptap warn]: prosemirror-model is loaded more than once. Wrapping and splitting nodes will fail. Deduplicate it in your lock file, or alias it to a single copy in your bundler.");
|
|
10574
10584
|
}
|
|
10575
|
-
var
|
|
10585
|
+
var Kf = class e {
|
|
10576
10586
|
get name() {
|
|
10577
10587
|
return this.node.type.name;
|
|
10578
10588
|
}
|
|
@@ -10694,7 +10704,7 @@ var Wf = class e {
|
|
|
10694
10704
|
...e
|
|
10695
10705
|
}), this.editor.view.dispatch(t);
|
|
10696
10706
|
}
|
|
10697
|
-
},
|
|
10707
|
+
}, qf = ".ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: \"liga\" 0; /* the above doesn't seem to work in Edge */\n}\n\n.ProseMirror [contenteditable=\"false\"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable=\"false\"] [contenteditable=\"true\"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 0 !important;\n height: 0 !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: \"\";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}", Jf = class extends cd {
|
|
10698
10708
|
constructor(e = {}) {
|
|
10699
10709
|
super(), this.css = null, this.className = "tiptap", this.editorView = null, this.isFocused = !1, this.destroyed = !1, this.isInitialized = !1, this.extensionStorage = {}, this.instanceId = Math.random().toString(36).slice(2, 9), this.hasWarnedStaleDecorationRead = !1, this.options = {
|
|
10700
10710
|
element: typeof document < "u" ? document.createElement("div") : null,
|
|
@@ -10743,7 +10753,7 @@ var Wf = class e {
|
|
|
10743
10753
|
selection: e || void 0
|
|
10744
10754
|
});
|
|
10745
10755
|
}
|
|
10746
|
-
|
|
10756
|
+
Gf(this.schema), this.options.element && this.mount(this.options.element);
|
|
10747
10757
|
}
|
|
10748
10758
|
mount(e) {
|
|
10749
10759
|
if (typeof document > "u") throw Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");
|
|
@@ -10777,7 +10787,7 @@ var Wf = class e {
|
|
|
10777
10787
|
return this.commandManager ? this.commandManager.can() : Zs.createFallbackCan();
|
|
10778
10788
|
}
|
|
10779
10789
|
injectCSS() {
|
|
10780
|
-
this.options.injectCSS && typeof document < "u" && (this.css = Md(
|
|
10790
|
+
this.options.injectCSS && typeof document < "u" && (this.css = Md(qf, this.options.injectNonce));
|
|
10781
10791
|
}
|
|
10782
10792
|
setOptions(e = {}) {
|
|
10783
10793
|
this.options = {
|
|
@@ -10835,22 +10845,22 @@ var Wf = class e {
|
|
|
10835
10845
|
createExtensionManager() {
|
|
10836
10846
|
var e, t;
|
|
10837
10847
|
let n = [...this.options.enableCoreExtensions ? [
|
|
10838
|
-
Pf,
|
|
10839
|
-
Af.configure({ blockSeparator: (e = this.options.coreExtensionOptions) == null || (e = e.clipboardTextSerializer) == null ? void 0 : e.blockSeparator }),
|
|
10840
|
-
jf,
|
|
10841
10848
|
If,
|
|
10842
|
-
|
|
10843
|
-
zf.configure({ value: (t = this.options.coreExtensionOptions) == null || (t = t.tabindex) == null ? void 0 : t.value }),
|
|
10849
|
+
Mf.configure({ blockSeparator: (e = this.options.coreExtensionOptions) == null || (e = e.clipboardTextSerializer) == null ? void 0 : e.blockSeparator }),
|
|
10844
10850
|
Nf,
|
|
10845
10851
|
Rf,
|
|
10846
|
-
|
|
10847
|
-
|
|
10852
|
+
zf,
|
|
10853
|
+
Vf.configure({ value: (t = this.options.coreExtensionOptions) == null || (t = t.tabindex) == null ? void 0 : t.value }),
|
|
10854
|
+
Ff,
|
|
10855
|
+
Bf,
|
|
10856
|
+
Pf,
|
|
10857
|
+
Hf.configure({ direction: this.options.textDirection })
|
|
10848
10858
|
].filter((e) => typeof this.options.enableCoreExtensions != "object" || this.options.enableCoreExtensions[e.name] !== !1) : [], ...this.options.extensions].filter((e) => [
|
|
10849
10859
|
"extension",
|
|
10850
10860
|
"node",
|
|
10851
10861
|
"mark"
|
|
10852
10862
|
].includes(e?.type));
|
|
10853
|
-
this.extensionManager = new
|
|
10863
|
+
this.extensionManager = new jf(n, this);
|
|
10854
10864
|
}
|
|
10855
10865
|
createCommandManager() {
|
|
10856
10866
|
this.commandManager = new Zs({ editor: this });
|
|
@@ -10991,23 +11001,23 @@ var Wf = class e {
|
|
|
10991
11001
|
}
|
|
10992
11002
|
$pos(e) {
|
|
10993
11003
|
let t = this.state.doc.resolve(e), n = e > 0 && t.nodeAfter && !t.nodeAfter.isText && t.nodeAfter.isAtom ? t.nodeAfter : null;
|
|
10994
|
-
return new
|
|
11004
|
+
return new Kf(t, this, !1, n);
|
|
10995
11005
|
}
|
|
10996
11006
|
get $doc() {
|
|
10997
11007
|
return this.$pos(0);
|
|
10998
11008
|
}
|
|
10999
|
-
},
|
|
11009
|
+
}, Yf = class {
|
|
11000
11010
|
static Inline(e, t, n = {}, r) {
|
|
11001
|
-
return new
|
|
11011
|
+
return new Xf(e, t, n, r);
|
|
11002
11012
|
}
|
|
11003
11013
|
static Node(e, t, n = {}, r) {
|
|
11004
|
-
return new
|
|
11014
|
+
return new Zf(e, t, n, r);
|
|
11005
11015
|
}
|
|
11006
11016
|
static Widget(e, t, n) {
|
|
11007
11017
|
let { key: r, ...i } = n;
|
|
11008
|
-
return new
|
|
11018
|
+
return new Qf(e, t, r, i);
|
|
11009
11019
|
}
|
|
11010
|
-
},
|
|
11020
|
+
}, Xf = class extends Yf {
|
|
11011
11021
|
constructor(e, t, n = {}, r) {
|
|
11012
11022
|
super(), this.kind = "inline", this.from = e, this.to = t, this.attrs = n, this.spec = r;
|
|
11013
11023
|
}
|
|
@@ -11021,7 +11031,7 @@ var Wf = class e {
|
|
|
11021
11031
|
} : this.spec;
|
|
11022
11032
|
return W.inline(this.from, this.to, this.attrs, t);
|
|
11023
11033
|
}
|
|
11024
|
-
},
|
|
11034
|
+
}, Zf = class extends Yf {
|
|
11025
11035
|
constructor(e, t, n = {}, r) {
|
|
11026
11036
|
super(), this.kind = "node", this.from = e, this.to = t, this.attrs = n, this.spec = r;
|
|
11027
11037
|
}
|
|
@@ -11035,7 +11045,7 @@ var Wf = class e {
|
|
|
11035
11045
|
} : this.spec;
|
|
11036
11046
|
return W.node(this.from, this.to, this.attrs, t);
|
|
11037
11047
|
}
|
|
11038
|
-
},
|
|
11048
|
+
}, Qf = class extends Yf {
|
|
11039
11049
|
constructor(e, t, n, r) {
|
|
11040
11050
|
super(), this.kind = "widget", this.pos = e, this.render = t, this.key = n, this.spec = r;
|
|
11041
11051
|
}
|
|
@@ -11054,7 +11064,7 @@ var Wf = class e {
|
|
|
11054
11064
|
return W.widget(this.pos, this.render, t);
|
|
11055
11065
|
}
|
|
11056
11066
|
};
|
|
11057
|
-
function
|
|
11067
|
+
function $f(e, t) {
|
|
11058
11068
|
let n = e, r = n[t];
|
|
11059
11069
|
if (!r) {
|
|
11060
11070
|
r = {
|
|
@@ -11070,7 +11080,7 @@ function Zf(e, t) {
|
|
|
11070
11080
|
}
|
|
11071
11081
|
return r;
|
|
11072
11082
|
}
|
|
11073
|
-
function
|
|
11083
|
+
function ep(e) {
|
|
11074
11084
|
e.flushScheduled = !1;
|
|
11075
11085
|
for (let [t, n] of e.pendingProps) {
|
|
11076
11086
|
let r = e.renderers.get(t);
|
|
@@ -11078,13 +11088,13 @@ function Qf(e) {
|
|
|
11078
11088
|
}
|
|
11079
11089
|
e.pendingProps.clear();
|
|
11080
11090
|
}
|
|
11081
|
-
function
|
|
11082
|
-
let { editor: t, pos: n, key: r, props: i, cacheKey: a, context: o, create: s, materialize: c, side: l, relaxedSide: u, marks: d, stopEvent: f, ignoreSelection: p, destroy: m } = e, h =
|
|
11091
|
+
function tp(e) {
|
|
11092
|
+
let { editor: t, pos: n, key: r, props: i, cacheKey: a, context: o, create: s, materialize: c, side: l, relaxedSide: u, marks: d, stopEvent: f, ignoreSelection: p, destroy: m } = e, h = $f(t, a);
|
|
11083
11093
|
if (h.renderers.has(r)) {
|
|
11084
11094
|
let e = h.pendingProps.get(r) ?? h.props.get(r);
|
|
11085
|
-
(!e || !Ad(e, i)) && (h.pendingProps.set(r, i), h.flushScheduled || (h.flushScheduled = !0, queueMicrotask(() =>
|
|
11095
|
+
(!e || !Ad(e, i)) && (h.pendingProps.set(r, i), h.flushScheduled || (h.flushScheduled = !0, queueMicrotask(() => ep(h))));
|
|
11086
11096
|
}
|
|
11087
|
-
return
|
|
11097
|
+
return Yf.Widget(n, (e, t) => {
|
|
11088
11098
|
let n = {
|
|
11089
11099
|
...i,
|
|
11090
11100
|
...o(t)
|
|
@@ -11107,8 +11117,8 @@ function $f(e) {
|
|
|
11107
11117
|
}
|
|
11108
11118
|
});
|
|
11109
11119
|
}
|
|
11110
|
-
function
|
|
11111
|
-
return new
|
|
11120
|
+
function np(e) {
|
|
11121
|
+
return new yf({
|
|
11112
11122
|
find: e.find,
|
|
11113
11123
|
handler: ({ state: t, range: n, match: r }) => {
|
|
11114
11124
|
let i = Q(e.getAttributes, void 0, r);
|
|
@@ -11125,8 +11135,8 @@ function ep(e) {
|
|
|
11125
11135
|
undoable: e.undoable
|
|
11126
11136
|
});
|
|
11127
11137
|
}
|
|
11128
|
-
function
|
|
11129
|
-
return new
|
|
11138
|
+
function rp(e) {
|
|
11139
|
+
return new yf({
|
|
11130
11140
|
find: e.find,
|
|
11131
11141
|
handler: ({ state: t, range: n, match: r }) => {
|
|
11132
11142
|
let i = Q(e.getAttributes, void 0, r) || {}, { tr: a } = t, o = n.from, s = n.to, c = e.type.create(i);
|
|
@@ -11144,8 +11154,8 @@ function tp(e) {
|
|
|
11144
11154
|
undoable: e.undoable
|
|
11145
11155
|
});
|
|
11146
11156
|
}
|
|
11147
|
-
function
|
|
11148
|
-
return new
|
|
11157
|
+
function ip(e) {
|
|
11158
|
+
return new yf({
|
|
11149
11159
|
find: e.find,
|
|
11150
11160
|
handler: ({ state: t, range: n, match: r }) => {
|
|
11151
11161
|
let i = t.doc.resolve(n.from), a = Q(e.getAttributes, void 0, r) || {};
|
|
@@ -11155,8 +11165,8 @@ function np(e) {
|
|
|
11155
11165
|
undoable: e.undoable
|
|
11156
11166
|
});
|
|
11157
11167
|
}
|
|
11158
|
-
function
|
|
11159
|
-
return new
|
|
11168
|
+
function ap(e) {
|
|
11169
|
+
return new yf({
|
|
11160
11170
|
find: e.find,
|
|
11161
11171
|
handler: ({ state: t, range: n, match: r }) => {
|
|
11162
11172
|
let i = e.replace, a = n.from, o = n.to;
|
|
@@ -11171,8 +11181,8 @@ function rp(e) {
|
|
|
11171
11181
|
undoable: e.undoable
|
|
11172
11182
|
});
|
|
11173
11183
|
}
|
|
11174
|
-
function
|
|
11175
|
-
return new
|
|
11184
|
+
function op(e) {
|
|
11185
|
+
return new yf({
|
|
11176
11186
|
find: e.find,
|
|
11177
11187
|
handler: ({ state: t, range: n, match: r, chain: i }) => {
|
|
11178
11188
|
let a = Q(e.getAttributes, void 0, r) || {}, o = t.tr.delete(n.from, n.to), s = o.doc.resolve(n.from).blockRange(), c = s && jt(s, e.type, a);
|
|
@@ -11194,49 +11204,49 @@ function ip(e) {
|
|
|
11194
11204
|
undoable: e.undoable
|
|
11195
11205
|
});
|
|
11196
11206
|
}
|
|
11197
|
-
var
|
|
11198
|
-
function
|
|
11207
|
+
var sp = /* @__PURE__ */ new WeakSet(), cp = /* @__PURE__ */ new WeakSet();
|
|
11208
|
+
function lp(e) {
|
|
11199
11209
|
let t = e;
|
|
11200
|
-
return
|
|
11210
|
+
return sp.add(t), t;
|
|
11201
11211
|
}
|
|
11202
|
-
function
|
|
11203
|
-
return Array.isArray(e) &&
|
|
11212
|
+
function up(e) {
|
|
11213
|
+
return Array.isArray(e) && sp.has(e);
|
|
11204
11214
|
}
|
|
11205
|
-
function
|
|
11206
|
-
return e.flatMap((e) => e == null ? [] : Array.isArray(e) &&
|
|
11215
|
+
function dp(e) {
|
|
11216
|
+
return e.flatMap((e) => e == null ? [] : Array.isArray(e) && cp.has(e) && !up(e) ? dp(e) : [e]);
|
|
11207
11217
|
}
|
|
11208
|
-
function
|
|
11209
|
-
return
|
|
11218
|
+
function fp(e) {
|
|
11219
|
+
return cp.add(e.children), e.children;
|
|
11210
11220
|
}
|
|
11211
|
-
function
|
|
11221
|
+
function pp(e, t) {
|
|
11212
11222
|
if (e === "slot") return 0;
|
|
11213
11223
|
if (e instanceof Function) {
|
|
11214
11224
|
let n = e(t);
|
|
11215
|
-
return Array.isArray(n) && !
|
|
11225
|
+
return Array.isArray(n) && !up(n) && !cp.has(n) ? lp(n) : n;
|
|
11216
11226
|
}
|
|
11217
11227
|
let { children: n, ...r } = t ?? {};
|
|
11218
11228
|
if (e === "svg") throw Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");
|
|
11219
11229
|
if (Array.isArray(n)) {
|
|
11220
|
-
if (
|
|
11230
|
+
if (up(n)) return lp([
|
|
11221
11231
|
e,
|
|
11222
11232
|
r,
|
|
11223
11233
|
n
|
|
11224
11234
|
]);
|
|
11225
|
-
if (n.length === 0) return
|
|
11226
|
-
let t =
|
|
11227
|
-
return t.length === 0 ?
|
|
11235
|
+
if (n.length === 0) return lp([e, r]);
|
|
11236
|
+
let t = dp(n);
|
|
11237
|
+
return t.length === 0 ? lp([e, r]) : lp([
|
|
11228
11238
|
e,
|
|
11229
11239
|
r,
|
|
11230
11240
|
...t
|
|
11231
11241
|
]);
|
|
11232
11242
|
}
|
|
11233
|
-
return
|
|
11243
|
+
return lp(n == null ? [e, r] : [
|
|
11234
11244
|
e,
|
|
11235
11245
|
r,
|
|
11236
11246
|
n
|
|
11237
11247
|
]);
|
|
11238
11248
|
}
|
|
11239
|
-
var
|
|
11249
|
+
var mp = (e, t) => pp(e, t), hp = (e) => "touches" in e, gp = class {
|
|
11240
11250
|
constructor(e) {
|
|
11241
11251
|
var t;
|
|
11242
11252
|
this.directions = [
|
|
@@ -11326,7 +11336,7 @@ var fp = (e, t) => dp(e, t), pp = (e) => "touches" in e, mp = class {
|
|
|
11326
11336
|
e ? (this.element.style.width = `${e}px`, this.initialWidth = e) : this.initialWidth = this.element.offsetWidth, t ? (this.element.style.height = `${t}px`, this.initialHeight = t) : this.initialHeight = this.element.offsetHeight, this.initialWidth > 0 && this.initialHeight > 0 && (this.aspectRatio = this.initialWidth / this.initialHeight);
|
|
11327
11337
|
}
|
|
11328
11338
|
handleResizeStart(e, t) {
|
|
11329
|
-
e.preventDefault(), e.stopPropagation(), this.isResizing = !0, this.activeHandle = t,
|
|
11339
|
+
e.preventDefault(), e.stopPropagation(), this.isResizing = !0, this.activeHandle = t, hp(e) ? (this.startX = e.touches[0].clientX, this.startY = e.touches[0].clientY) : (this.startX = e.clientX, this.startY = e.clientY), this.startWidth = this.element.offsetWidth, this.startHeight = this.element.offsetHeight, this.startWidth > 0 && this.startHeight > 0 && (this.aspectRatio = this.startWidth / this.startHeight), this.getPos(), this.container.dataset.resizeState = "true", this.classNames.resizing && this.container.classList.add(this.classNames.resizing), document.addEventListener("mousemove", this.handleMouseMove), document.addEventListener("touchmove", this.handleTouchMove), document.addEventListener("mouseup", this.handleMouseUp), document.addEventListener("keydown", this.handleKeyDown), document.addEventListener("keyup", this.handleKeyUp);
|
|
11330
11340
|
}
|
|
11331
11341
|
handleResize(e, t) {
|
|
11332
11342
|
if (!this.activeHandle) return;
|
|
@@ -11366,7 +11376,7 @@ var fp = (e, t) => dp(e, t), pp = (e) => "touches" in e, mp = class {
|
|
|
11366
11376
|
height: e / this.aspectRatio
|
|
11367
11377
|
};
|
|
11368
11378
|
}
|
|
11369
|
-
},
|
|
11379
|
+
}, _p = gp, vp = class e extends Cf {
|
|
11370
11380
|
constructor(...e) {
|
|
11371
11381
|
super(...e), this.type = "node";
|
|
11372
11382
|
}
|
|
@@ -11381,7 +11391,7 @@ var fp = (e, t) => dp(e, t), pp = (e) => "touches" in e, mp = class {
|
|
|
11381
11391
|
let t = typeof e == "function" ? e() : e;
|
|
11382
11392
|
return super.extend(t);
|
|
11383
11393
|
}
|
|
11384
|
-
},
|
|
11394
|
+
}, yp = class {
|
|
11385
11395
|
constructor(e, t, n) {
|
|
11386
11396
|
this.isDragging = !1, this.component = e, this.editor = t.editor, this.options = {
|
|
11387
11397
|
stopEvent: null,
|
|
@@ -11458,7 +11468,7 @@ var fp = (e, t) => dp(e, t), pp = (e) => "touches" in e, mp = class {
|
|
|
11458
11468
|
return !(o || r || i || l || u || d || f && c);
|
|
11459
11469
|
}
|
|
11460
11470
|
ignoreMutation(e) {
|
|
11461
|
-
return !this.dom || !this.contentDOM ? !0 : typeof this.options.ignoreMutation == "function" ? this.options.ignoreMutation({ mutation: e }) : this.node.isLeaf || this.node.isAtom ? !0 : e.type === "selection" || this.
|
|
11471
|
+
return !this.dom || !this.contentDOM ? !0 : typeof this.options.ignoreMutation == "function" ? this.options.ignoreMutation({ mutation: e }) : this.node.isLeaf || this.node.isAtom ? !0 : e.type === "selection" || this.contentDOM.contains(e.target) && e.type === "childList" && (Cc() || Sc()) && this.editor.isFocused && [...Array.from(e.addedNodes), ...Array.from(e.removedNodes)].every((e) => e.isContentEditable) ? !1 : this.contentDOM === e.target && e.type === "attributes" || !this.contentDOM.contains(e.target);
|
|
11462
11472
|
}
|
|
11463
11473
|
updateAttributes(e) {
|
|
11464
11474
|
this.editor.commands.command(({ tr: t }) => {
|
|
@@ -11479,8 +11489,8 @@ var fp = (e, t) => dp(e, t), pp = (e) => "touches" in e, mp = class {
|
|
|
11479
11489
|
});
|
|
11480
11490
|
}
|
|
11481
11491
|
};
|
|
11482
|
-
function
|
|
11483
|
-
return new
|
|
11492
|
+
function bp(e) {
|
|
11493
|
+
return new Tf({
|
|
11484
11494
|
find: e.find,
|
|
11485
11495
|
handler: ({ state: t, range: n, match: r, pasteEvent: i }) => {
|
|
11486
11496
|
let a = Q(e.getAttributes, void 0, r, i);
|
|
@@ -11494,8 +11504,8 @@ function vp(e) {
|
|
|
11494
11504
|
}
|
|
11495
11505
|
});
|
|
11496
11506
|
}
|
|
11497
|
-
function
|
|
11498
|
-
return new
|
|
11507
|
+
function xp(e) {
|
|
11508
|
+
return new Tf({
|
|
11499
11509
|
find: e.find,
|
|
11500
11510
|
handler({ match: t, chain: n, range: r, pasteEvent: i }) {
|
|
11501
11511
|
let a = Q(e.getAttributes, void 0, t, i), o = Q(e.getContent, void 0, a);
|
|
@@ -11508,8 +11518,8 @@ function yp(e) {
|
|
|
11508
11518
|
}
|
|
11509
11519
|
});
|
|
11510
11520
|
}
|
|
11511
|
-
function
|
|
11512
|
-
return new
|
|
11521
|
+
function Sp(e) {
|
|
11522
|
+
return new Tf({
|
|
11513
11523
|
find: e.find,
|
|
11514
11524
|
handler: ({ state: t, range: n, match: r }) => {
|
|
11515
11525
|
let i = e.replace, a = n.from, o = n.to;
|
|
@@ -11523,7 +11533,7 @@ function bp(e) {
|
|
|
11523
11533
|
}
|
|
11524
11534
|
});
|
|
11525
11535
|
}
|
|
11526
|
-
var
|
|
11536
|
+
var Cp = class {
|
|
11527
11537
|
constructor(e) {
|
|
11528
11538
|
this.transaction = e, this.currentStep = this.transaction.steps.length;
|
|
11529
11539
|
}
|
|
@@ -11539,4 +11549,4 @@ var xp = class {
|
|
|
11539
11549
|
}
|
|
11540
11550
|
};
|
|
11541
11551
|
//#endregion
|
|
11542
|
-
export { Vl as $, _u as $t, Xs as A, Ou as An, Sc as At, kc as B, Ys as Bn, Jc as Bt, Ad as C, lf as Cn, $l as Ct, id as D,
|
|
11552
|
+
export { Vl as $, _u as $t, Xs as A, Ou as An, Sc as At, kc as B, Ys as Bn, Jc as Bt, Ad as C, lf as Cn, $l as Ct, id as D, ff as Dn, Ol as Dt, fl as E, Wl as En, mp as Et, Md as F, ap as Fn, Ld as Ft, ml as G, j as Gn, Bd as Gt, Nd as H, G as Hn, su as Ht, tp as I, Sp as In, yl as It, hl as J, _t as Jn, fu as Jt, Ml as K, E as Kn, uu as Kt, Fd as L, ip as Ln, au as Lt, cf as M, nf as Mn, ru as Mt, Tu as N, Nl as Nn, bl as Nt, rf as O, Pl as On, Sf as Ot, jc as P, xl as Pn, iu as Pt, Ll as Q, gu as Qt, Fc as R, _f as Rn, Gc as Rt, Qf as S, tf as Sn, Rl as St, jd as T, Eu as Tn, wu as Tt, Uf as U, O as Un, cu as Ut, Id as V, W as Vn, ou as Vt, pl as W, A as Wn, Rd as Wt, Dl as X, s as Xn, mu as Xt, _l as Y, Yt as Yn, pu as Yt, Il as Z, p as Zn, hu as Zt, yp as _, gf as _n, Zl as _t, Jf as a, Su as an, vl as at, _p as b, xp as bn, Pd as bt, fp as c, Vd as cn, Y as ct, Cu as d, Od as dn, Hl as dt, vu as en, Ul as et, wf as f, np as fn, J as ft, Kf as g, Tl as gn, jl as gt, Zf as h, hf as hn, Fl as ht, kd as i, lu as in, Z as it, ll as j, Nc as jn, nu as jt, af as k, xc as kn, tu as kt, Xf as l, bc as ln, Jl as lt, vp as m, pf as mn, El as mt, ed as n, bu as nn, Kl as nt, Cf as o, pc as on, dl as ot, vf as p, bp as pn, Xl as pt, gl as q, D as qn, du as qt, Yf as r, xu as rn, ql as rt, $ as s, wc as sn, _c as st, Zs as t, yu as tn, Sl as tt, yf as u, Cc as un, Yl as ut, Tf as v, X as vn, $c as vt, Q as w, Af as wn, Bl as wt, Cp as x, mc as xn, zl as xt, gp as y, rp as yn, Ql as yt, el as z, op as zn, eu as zt };
|