@templatical/editor 0.26.3 → 0.27.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/README.md +3 -1
- package/dist/{AiChatSidebar-CMBz6Wix.js → AiChatSidebar-iVJDzqjr.js} +60 -60
- package/dist/AiFeatureMenu-DvrK-dzj.js +57 -0
- package/dist/{BlockIssueBadge-Buk3_6QF.js → BlockIssueBadge-BHysq7XQ.js} +11 -11
- package/dist/BlockPreviewCanvas-GZbr0ph5.js +121 -0
- package/dist/CloudHeaderExtras-Cx8gFWu2.js +59 -0
- package/dist/CloudPanels-D0X449DD.js +227 -0
- package/dist/{CollaboratorBar-BGwbg9aN.js → CollaboratorBar-DMSWCrX3.js} +21 -21
- package/dist/ColorPicker-DCjFQCAg.js +501 -0
- package/dist/CommentsPanel-D5wQB1Kf.js +18 -0
- package/dist/CommentsSidebar-BoTIxpLE.js +481 -0
- package/dist/{cdn/chunks/CountdownBlock-vLTkTI9e.js → CountdownBlock-BFX8iU90.js} +19 -21
- package/dist/{cdn/chunks/CountdownToolbar-DPjcgcVR.js → CountdownToolbar-CSftc9Ma.js} +52 -53
- package/dist/{DesignReferenceSidebar-Bx96XFmK.js → DesignReferenceSidebar-DKsx2TiL.js} +72 -71
- package/dist/{IssuesPanel-Do7RLXsP.js → IssuesPanel-flKKwKpM.js} +38 -38
- package/dist/{LoadingTrack-BexpNuTV.js → LoadingTrack-C2T8ixEL.js} +3 -3
- package/dist/{MergeTagModeToggle-P-UguQHc.js → MergeTagModeToggle-PKCoKAoF.js} +43 -43
- package/dist/{MergeTagSuggestion-BJ43ihWR.js → MergeTagSuggestion-DGha0WRp.js} +46 -46
- package/dist/{cdn/chunks/NumberWithSuffix-BXrRdfq1.js → NumberWithSuffix-DdPCXfKf.js} +42 -44
- package/dist/{ParagraphEditor-6WN5jmXr.js → ParagraphEditor-vDU-5y6r.js} +200 -198
- package/dist/RestoreVersionDialog-DIn1muFD.js +86 -0
- package/dist/{RichTextEditorContent-fbYJXAio.js → RichTextEditorContent-I83k5DtQ.js} +44 -44
- package/dist/SaveBlockDialog-C_QvYAeL.js +266 -0
- package/dist/{SavedBlocksBrowserModal-GMrajvfV.js → SavedBlocksBrowserModal-CefWWcdT.js} +116 -115
- package/dist/{cdn/chunks/SavedBlocksPanels-CUtYoi5Z.js → SavedBlocksPanels-DnQwO-7O.js} +9 -11
- package/dist/{SavedBlocksPickBar-Dk_IaMO9.js → SavedBlocksPickBar-BsFubArH.js} +17 -17
- package/dist/{TemplateScoringPanel-BZUsb3FD.js → TemplateScoringPanel-Bv_bBsJi.js} +87 -87
- package/dist/TestEmailModal-STPWDP79.js +206 -0
- package/dist/{cdn/chunks/TestEmailPanel-B8y7JabA.js → TestEmailPanel-HYVjApKZ.js} +4 -6
- package/dist/TitleEditor-DnB0EJ_g.js +198 -0
- package/dist/TplModal-chvLhXmC.js +49 -0
- package/dist/VersionHistoryMenu-Cq4rH56t.js +155 -0
- package/dist/VersionHistoryPanels-D7k_F7-9.js +46 -0
- package/dist/VersionPreviewBanner-DthyHe6C.js +38 -0
- package/dist/{blockTypeIcons-C7wRSaT3.js → blockTypeIcons-B8r4jMBn.js} +6 -6
- package/dist/bundle-stats.json +8 -8
- package/dist/{ca-D1zgI9fQ.js → ca-Cqg9O8mx.js} +69 -6
- package/dist/cdn/chunks/{AiChatSidebar-CQ8KUmNB.js → AiChatSidebar-DTUoBH5a.js} +54 -54
- package/dist/cdn/chunks/AiChatSidebar-DTUoBH5a.js.map +1 -0
- package/dist/cdn/chunks/AiFeatureMenu-Dyh7mUMB.js +57 -0
- package/dist/cdn/chunks/AiFeatureMenu-Dyh7mUMB.js.map +1 -0
- package/dist/cdn/chunks/{BlockIssueBadge-BEEY9o2o.js → BlockIssueBadge-UzSSOM_2.js} +13 -13
- package/dist/cdn/chunks/{BlockIssueBadge-BEEY9o2o.js.map → BlockIssueBadge-UzSSOM_2.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-msj619wT.js → BlockPreviewCanvas-DStQFo9P.js} +42 -42
- package/dist/cdn/chunks/{BlockPreviewCanvas-msj619wT.js.map → BlockPreviewCanvas-DStQFo9P.js.map} +1 -1
- package/dist/cdn/chunks/CloudHeaderExtras-BZVu7dnO.js +60 -0
- package/dist/cdn/chunks/CloudHeaderExtras-BZVu7dnO.js.map +1 -0
- package/dist/cdn/chunks/CloudPanels-CXbaBKHQ.js +227 -0
- package/dist/cdn/chunks/CloudPanels-CXbaBKHQ.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-G_sZDZXw.js → CollaboratorBar-BH_lZlat.js} +22 -22
- package/dist/cdn/chunks/CollaboratorBar-BH_lZlat.js.map +1 -0
- package/dist/cdn/chunks/ColorPicker-CStXen0Y.js +502 -0
- package/dist/cdn/chunks/ColorPicker-CStXen0Y.js.map +1 -0
- package/dist/cdn/chunks/CommentsPanel-jzZ2X0P4.js +20 -0
- package/dist/cdn/chunks/CommentsPanel-jzZ2X0P4.js.map +1 -0
- package/dist/cdn/chunks/CommentsSidebar-Dxke-vUP.js +460 -0
- package/dist/cdn/chunks/CommentsSidebar-Dxke-vUP.js.map +1 -0
- package/dist/{CountdownBlock-DuyvGcr8.js → cdn/chunks/CountdownBlock-BYSrJWxg.js} +25 -23
- package/dist/cdn/chunks/{CountdownBlock-vLTkTI9e.js.map → CountdownBlock-BYSrJWxg.js.map} +1 -1
- package/dist/{CountdownToolbar-CBE9wRaV.js → cdn/chunks/CountdownToolbar-CZPtQIb8.js} +66 -63
- package/dist/cdn/chunks/{CountdownToolbar-DPjcgcVR.js.map → CountdownToolbar-CZPtQIb8.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-B-HFXV0W.js → DesignReferenceSidebar-sZWciECR.js} +64 -64
- package/dist/cdn/chunks/DesignReferenceSidebar-sZWciECR.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-DKTS4QVb.js → IssuesPanel-CHtetM9i.js} +36 -36
- package/dist/cdn/chunks/IssuesPanel-CHtetM9i.js.map +1 -0
- package/dist/cdn/chunks/{LoadingTrack-C52ZGL5q.js → LoadingTrack-Dp_QZvAK.js} +3 -3
- package/dist/cdn/chunks/{LoadingTrack-C52ZGL5q.js.map → LoadingTrack-Dp_QZvAK.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-DQ79SqQc.js → MergeTagModeToggle-ZwW-5EeN.js} +39 -39
- package/dist/cdn/chunks/{MergeTagModeToggle-DQ79SqQc.js.map → MergeTagModeToggle-ZwW-5EeN.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-Dn8dExNa.js → MergeTagSuggestion-DhllqTA3.js} +47 -47
- package/dist/cdn/chunks/MergeTagSuggestion-DhllqTA3.js.map +1 -0
- package/dist/{NumberWithSuffix-D37ZWiZh.js → cdn/chunks/NumberWithSuffix-yeQLcCyH.js} +37 -35
- package/dist/cdn/chunks/NumberWithSuffix-yeQLcCyH.js.map +1 -0
- package/dist/cdn/chunks/{ParagraphEditor-CZ5Z6AgG.js → ParagraphEditor-BJJ925sx.js} +234 -233
- package/dist/cdn/chunks/ParagraphEditor-BJJ925sx.js.map +1 -0
- package/dist/cdn/chunks/RestoreVersionDialog-B0Jadu6F.js +87 -0
- package/dist/cdn/chunks/RestoreVersionDialog-B0Jadu6F.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-DtL49Jpo.js → RichTextEditorContent-CfSq2wPR.js} +44 -44
- package/dist/cdn/chunks/RichTextEditorContent-CfSq2wPR.js.map +1 -0
- package/dist/cdn/chunks/SaveBlockDialog-C1DXh6P9.js +265 -0
- package/dist/cdn/chunks/SaveBlockDialog-C1DXh6P9.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BkQXEUE2.js → SavedBlocksBrowserModal-BerMxAUt.js} +114 -113
- package/dist/cdn/chunks/SavedBlocksBrowserModal-BerMxAUt.js.map +1 -0
- package/dist/{SavedBlocksPanels-DEPmNhi6.js → cdn/chunks/SavedBlocksPanels-BUE4lzVP.js} +11 -9
- package/dist/cdn/chunks/{SavedBlocksPanels-CUtYoi5Z.js.map → SavedBlocksPanels-BUE4lzVP.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-C80qJykl.js → SavedBlocksPickBar-4HrqQfvl.js} +17 -17
- package/dist/cdn/chunks/SavedBlocksPickBar-4HrqQfvl.js.map +1 -0
- package/dist/cdn/chunks/{TemplateScoringPanel-NucRtAP0.js → TemplateScoringPanel-Xdkp2EMY.js} +81 -81
- package/dist/cdn/chunks/TemplateScoringPanel-Xdkp2EMY.js.map +1 -0
- package/dist/cdn/chunks/TestEmailModal-yfmFiavR.js +206 -0
- package/dist/cdn/chunks/TestEmailModal-yfmFiavR.js.map +1 -0
- package/dist/{TestEmailPanel-DubocPxf.js → cdn/chunks/TestEmailPanel-DqTDh5ri.js} +6 -4
- package/dist/cdn/chunks/{TestEmailPanel-B8y7JabA.js.map → TestEmailPanel-DqTDh5ri.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-C8WDXf4P.js → TitleEditor-nUAF7fKr.js} +83 -83
- package/dist/cdn/chunks/TitleEditor-nUAF7fKr.js.map +1 -0
- package/dist/cdn/chunks/TplModal-C0IqikoV.js +50 -0
- package/dist/cdn/chunks/TplModal-C0IqikoV.js.map +1 -0
- package/dist/cdn/chunks/VersionHistoryMenu-_MAj3qZj.js +148 -0
- package/dist/cdn/chunks/VersionHistoryMenu-_MAj3qZj.js.map +1 -0
- package/dist/cdn/chunks/VersionHistoryPanels-6Hz9w20W.js +48 -0
- package/dist/cdn/chunks/VersionHistoryPanels-6Hz9w20W.js.map +1 -0
- package/dist/cdn/chunks/VersionPreviewBanner-D098_6_I.js +40 -0
- package/dist/cdn/chunks/VersionPreviewBanner-D098_6_I.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-FXlMM3PL.js → blockTypeIcons-hX_W4dqo.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-FXlMM3PL.js.map → blockTypeIcons-hX_W4dqo.js.map} +1 -1
- package/dist/cdn/chunks/{ca-D1zgI9fQ.js → ca-Cqg9O8mx.js} +70 -7
- package/dist/cdn/chunks/ca-Cqg9O8mx.js.map +1 -0
- package/dist/{cloud-qINCmQbn.js → cdn/chunks/cloud-BA0OpRh-.js} +400 -609
- package/dist/cdn/chunks/cloud-BA0OpRh-.js.map +1 -0
- package/dist/cdn/chunks/createCloudRuntime-DmzV7OnU.js +344 -0
- package/dist/cdn/chunks/createCloudRuntime-DmzV7OnU.js.map +1 -0
- package/dist/{de-DHra3lvx.js → cdn/chunks/de-BXmeeFbX.js} +71 -6
- package/dist/cdn/chunks/de-BXmeeFbX.js.map +1 -0
- package/dist/{de-uVoSP1xF.js → cdn/chunks/de-Dbwm2cON.js} +3 -54
- package/dist/cdn/chunks/de-Dbwm2cON.js.map +1 -0
- package/dist/cdn/chunks/{dist-B2HKGHnc.js → dist-CM8TB0VD.js} +136 -136
- package/dist/cdn/chunks/{dist-B2HKGHnc.js.map → dist-CM8TB0VD.js.map} +1 -1
- package/dist/cdn/chunks/{dist-C6z8AjBC.js → dist-CYLJiSiH.js} +63 -63
- package/dist/cdn/chunks/{dist-C6z8AjBC.js.map → dist-CYLJiSiH.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-DCs9qL-b.js → draggable-BfpsXFg7.js} +916 -905
- package/dist/cdn/chunks/{draggable-DCs9qL-b.js.map → draggable-BfpsXFg7.js.map} +1 -1
- package/dist/{en-DlqX2YWZ.js → cdn/chunks/en-DbBNy67B.js} +71 -6
- package/dist/cdn/chunks/en-DbBNy67B.js.map +1 -0
- package/dist/{en-CjhsJxb-.js → cdn/chunks/en-Dzw4EqNI.js} +3 -54
- package/dist/cdn/chunks/en-Dzw4EqNI.js.map +1 -0
- package/dist/cdn/chunks/{es-Cuss2snv.js → es-JUsAjxWu.js} +70 -7
- package/dist/cdn/chunks/es-JUsAjxWu.js.map +1 -0
- package/dist/cdn/chunks/{extensions-qhcN3RMT.js → extensions-CMcVw2uu.js} +53 -53
- package/dist/cdn/chunks/{extensions-qhcN3RMT.js.map → extensions-CMcVw2uu.js.map} +1 -1
- package/dist/{fr-Cm85vB2g.js → cdn/chunks/fr-J3qgXH4h.js} +71 -6
- package/dist/cdn/chunks/fr-J3qgXH4h.js.map +1 -0
- package/dist/cdn/chunks/{icons-CvYN6zrM.js → icons-C36Ha5VU.js} +11 -11
- package/dist/cdn/chunks/{icons-CvYN6zrM.js.map → icons-C36Ha5VU.js.map} +1 -1
- package/dist/{keys-fwF3qZax.js → cdn/chunks/keys-CbQuRX85.js} +6 -4
- package/dist/cdn/chunks/keys-CbQuRX85.js.map +1 -0
- package/dist/cdn/chunks/logger-ByvdoAwq.js +23 -0
- package/dist/cdn/chunks/logger-ByvdoAwq.js.map +1 -0
- package/dist/cdn/chunks/{nl-dmiIX7oT.js → nl-D_4DkqOi.js} +70 -7
- package/dist/cdn/chunks/nl-D_4DkqOi.js.map +1 -0
- package/dist/cdn/chunks/preRenderCustomBlocks-CbA3RcAy.js +23 -0
- package/dist/cdn/chunks/preRenderCustomBlocks-CbA3RcAy.js.map +1 -0
- package/dist/{pt-BR-CTzHTqJD.js → cdn/chunks/pt-BR-BxzQzWGJ.js} +3 -54
- package/dist/cdn/chunks/pt-BR-BxzQzWGJ.js.map +1 -0
- package/dist/cdn/chunks/{pt-BR-CaIG-7EM.js → pt-BR-KGURyEEQ.js} +70 -7
- package/dist/cdn/chunks/pt-BR-KGURyEEQ.js.map +1 -0
- package/dist/cdn/chunks/{src-BwbnXShT.js → src-BOjFLNf7.js} +148 -134
- package/dist/cdn/chunks/src-BOjFLNf7.js.map +1 -0
- package/dist/cdn/chunks/{src-xkGep9eN.js → src-Dq3fgSIx.js} +1448 -1458
- package/dist/cdn/chunks/src-Dq3fgSIx.js.map +1 -0
- package/dist/cdn/chunks/styleConstants-ByDqaYj_.js +61 -0
- package/dist/cdn/chunks/styleConstants-ByDqaYj_.js.map +1 -0
- package/dist/cdn/chunks/timeouts-DHPZQ0G3.js +6 -0
- package/dist/cdn/chunks/timeouts-DHPZQ0G3.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-C44S1Cmh.js → tiptap-DmpGap5g.js} +40 -40
- package/dist/cdn/chunks/{tiptap-C44S1Cmh.js.map → tiptap-DmpGap5g.js.map} +1 -1
- package/dist/cdn/chunks/{useAliveFlag-Dxwgo6P4.js → useAliveFlag-Dtm174fG.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-Dxwgo6P4.js.map → useAliveFlag-Dtm174fG.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-8wkJtuJD.js → useCloudI18n-NVa1aeY8.js} +5 -5
- package/dist/cdn/chunks/{useCloudI18n-8wkJtuJD.js.map → useCloudI18n-NVa1aeY8.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-CcgxY-Gy.js → useEditorCore-CTu_qZ3W.js} +1434 -1147
- package/dist/cdn/chunks/useEditorCore-CTu_qZ3W.js.map +1 -0
- package/dist/cdn/chunks/{useI18n-UMs0F71x.js → useI18n-DVWCJJFH.js} +5 -5
- package/dist/cdn/chunks/{useI18n-UMs0F71x.js.map → useI18n-DVWCJJFH.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-JmXOtpln.js → useMergeTag-BfZBRPQp.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-JmXOtpln.js.map → useMergeTag-BfZBRPQp.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-cf8Y-ynK.js → usePopoverPosition-BC-HA7TK.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-cf8Y-ynK.js.map → usePopoverPosition-BC-HA7TK.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +5103 -284
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-On4TSac-.js → check-DZbmkMQe.js} +1 -1
- package/dist/{chevron-down-69EiBGoB.js → chevron-down-nYScOLeZ.js} +1 -1
- package/dist/{chevron-up-Dh3MG1Dw.js → chevron-up-CpYpDLnc.js} +1 -1
- package/dist/{circle-alert-cilwzafX.js → circle-alert-CuuK6thq.js} +1 -1
- package/dist/{clock-Dt0APH92.js → clock-DxkrtqOr.js} +1 -1
- package/dist/cloud-BAefVBb_.js +1444 -0
- package/dist/createCloudRuntime-Bt8W-ajI.js +342 -0
- package/dist/{createLucideIcon-C8WzBYCv.js → createLucideIcon-L-wQXW_R.js} +9 -9
- package/dist/{cdn/chunks/de-DHra3lvx.js → de-BXmeeFbX.js} +69 -8
- package/dist/{cdn/chunks/de-uVoSP1xF.js → de-Dbwm2cON.js} +1 -56
- package/dist/dist-B5iReTtK.js +251 -0
- package/dist/{dist-Cl8J0IES.js → dist-Ck9roB6K.js} +42 -42
- package/dist/{dist-BpKxrUi2.js → dist-CqcGTIiX.js} +46 -46
- package/dist/{cdn/chunks/en-DlqX2YWZ.js → en-DbBNy67B.js} +69 -8
- package/dist/{cdn/chunks/en-CjhsJxb-.js → en-Dzw4EqNI.js} +1 -56
- package/dist/{es-Cuss2snv.js → es-JUsAjxWu.js} +69 -6
- package/dist/{extensions-Cwg9S-0f.js → extensions-CX87G4aL.js} +42 -42
- package/dist/{cdn/chunks/fr-Cm85vB2g.js → fr-J3qgXH4h.js} +69 -8
- package/dist/{image-up-Ceggh_R3.js → image-up-DouZRGVt.js} +1 -1
- package/dist/index.d.ts +499 -23
- package/dist/{info-DO5odBcZ.js → info-puX5V6Iq.js} +1 -1
- package/dist/{cdn/chunks/keys-Cmc2Yl3D.js → keys-BxixS0TN.js} +4 -6
- package/dist/{list-checks-BSkPKbuI.js → list-checks-jw-ZlvWY.js} +1 -1
- package/dist/{loader-circle-bO7o7_HD.js → loader-circle-DqTxB7Kr.js} +1 -1
- package/dist/logger-BBlvSn6q.js +21 -0
- package/dist/{message-circle-BEkAk65X.js → message-circle-BZ7YpB22.js} +1 -1
- package/dist/{nl-dmiIX7oT.js → nl-D_4DkqOi.js} +69 -6
- package/dist/{pencil-t6m0EtKL.js → pencil-DmbRhTJu.js} +1 -1
- package/dist/preRenderCustomBlocks-BebjKtmw.js +21 -0
- package/dist/{cdn/chunks/pt-BR-CTzHTqJD.js → pt-BR-BxzQzWGJ.js} +1 -56
- package/dist/{pt-BR-CaIG-7EM.js → pt-BR-KGURyEEQ.js} +69 -6
- package/dist/{refresh-cw-CkOYVzK5.js → refresh-cw-OK_O-cL0.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-CepEmvwF.js → runtime-dom.esm-bundler-BgKXIPLV.js} +144 -144
- package/dist/{scan-line-DwSVj25O.js → scan-line-DyaSTsJ5.js} +1 -1
- package/dist/{send-CWsWN8PQ.js → send-B-wasJJC.js} +1 -1
- package/dist/{shield-check-qje8Kufw.js → shield-check-DUIyRrTo.js} +1 -1
- package/dist/{sparkles-DumaWRW-.js → sparkles-DYEMATWC.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/styleConstants-ByDqaYj_.js +59 -0
- package/dist/templatical-editor.js +5303 -289
- package/dist/{text-align-start-Ir8Ah4mT.js → text-align-start-CzjLeBLe.js} +1 -1
- package/dist/timeouts-DHPZQ0G3.js +4 -0
- package/dist/{trash-2-CklAFCmO.js → trash-2-C0shEPry.js} +1 -1
- package/dist/{triangle-alert-BBi4n93g.js → triangle-alert-Fw0ce8oQ.js} +1 -1
- package/dist/{upload-sVqqppuv.js → upload-D69C2CBx.js} +3 -4
- package/dist/{useAliveFlag-cvyBxHp7.js → useAliveFlag-BGIAZii_.js} +1 -1
- package/dist/{useCloudI18n-DKVm6PCa.js → useCloudI18n-CAZTZ9_a.js} +2 -2
- package/dist/{useEditorCore-P4UkhcyS.js → useEditorCore-B-kONNRw.js} +1604 -1320
- package/dist/{useI18n-DoVKdCTH.js → useI18n-BfXff_Sy.js} +2 -2
- package/dist/{useMergeTag-CYZk7dZD.js → useMergeTag-Dd4I7kge.js} +3 -3
- package/dist/usePopoverPosition-CxhCX3SQ.js +59 -0
- package/dist/{vue.runtime.esm-bundler-D1diBMsm.js → vue.runtime.esm-bundler-DzEsDRtY.js} +447 -436
- package/dist/{x-Mby7KlhS.js → x-BjTlFqRv.js} +1 -1
- package/package.json +7 -7
- package/dist/AiFeatureMenu-Cy-PVrNT.js +0 -63
- package/dist/BlockPreviewCanvas-BZKslwGI.js +0 -121
- package/dist/CloudEditor-CPRkQCRa.js +0 -1188
- package/dist/ColorPicker-ClETsjA3.js +0 -550
- package/dist/CommentsSidebar-CdRCCSDD.js +0 -435
- package/dist/SaveBlockDialog-21vDlEBS.js +0 -265
- package/dist/SnapshotHistory-Cb4WW2gf.js +0 -128
- package/dist/TestEmailModal-BHDKmd6B.js +0 -205
- package/dist/TitleEditor-Cy4B3UNe.js +0 -198
- package/dist/TplModal-Dv9zgSWI.js +0 -49
- package/dist/cdn/chunks/AiChatSidebar-CQ8KUmNB.js.map +0 -1
- package/dist/cdn/chunks/AiFeatureMenu-Cb9gaRBn.js +0 -63
- package/dist/cdn/chunks/AiFeatureMenu-Cb9gaRBn.js.map +0 -1
- package/dist/cdn/chunks/CloudEditor-DbyEsIxu.js +0 -1166
- package/dist/cdn/chunks/CloudEditor-DbyEsIxu.js.map +0 -1
- package/dist/cdn/chunks/CollaboratorBar-G_sZDZXw.js.map +0 -1
- package/dist/cdn/chunks/ColorPicker-W_UyiVGc.js +0 -552
- package/dist/cdn/chunks/ColorPicker-W_UyiVGc.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-BLRZRSSC.js +0 -412
- package/dist/cdn/chunks/CommentsSidebar-BLRZRSSC.js.map +0 -1
- package/dist/cdn/chunks/DesignReferenceSidebar-B-HFXV0W.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-DKTS4QVb.js.map +0 -1
- package/dist/cdn/chunks/MergeTagSuggestion-Dn8dExNa.js.map +0 -1
- package/dist/cdn/chunks/NumberWithSuffix-BXrRdfq1.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-CZ5Z6AgG.js.map +0 -1
- package/dist/cdn/chunks/RichTextEditorContent-DtL49Jpo.js.map +0 -1
- package/dist/cdn/chunks/SaveBlockDialog-CVIVZEuy.js +0 -264
- package/dist/cdn/chunks/SaveBlockDialog-CVIVZEuy.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-BkQXEUE2.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksPickBar-C80qJykl.js.map +0 -1
- package/dist/cdn/chunks/SnapshotHistory-DFinMrg_.js +0 -121
- package/dist/cdn/chunks/SnapshotHistory-DFinMrg_.js.map +0 -1
- package/dist/cdn/chunks/TemplateScoringPanel-NucRtAP0.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-IxS-QjeH.js +0 -205
- package/dist/cdn/chunks/TestEmailModal-IxS-QjeH.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-C8WDXf4P.js.map +0 -1
- package/dist/cdn/chunks/TplModal-Ce0QuHyo.js +0 -50
- package/dist/cdn/chunks/TplModal-Ce0QuHyo.js.map +0 -1
- package/dist/cdn/chunks/ca-D1zgI9fQ.js.map +0 -1
- package/dist/cdn/chunks/cloud-DcC8bPwn.js +0 -1787
- package/dist/cdn/chunks/cloud-DcC8bPwn.js.map +0 -1
- package/dist/cdn/chunks/de-DHra3lvx.js.map +0 -1
- package/dist/cdn/chunks/de-uVoSP1xF.js.map +0 -1
- package/dist/cdn/chunks/en-CjhsJxb-.js.map +0 -1
- package/dist/cdn/chunks/en-DlqX2YWZ.js.map +0 -1
- package/dist/cdn/chunks/es-Cuss2snv.js.map +0 -1
- package/dist/cdn/chunks/fr-Cm85vB2g.js.map +0 -1
- package/dist/cdn/chunks/keys-Cmc2Yl3D.js.map +0 -1
- package/dist/cdn/chunks/nl-dmiIX7oT.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-CTzHTqJD.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-CaIG-7EM.js.map +0 -1
- package/dist/cdn/chunks/src-BwbnXShT.js.map +0 -1
- package/dist/cdn/chunks/src-xkGep9eN.js.map +0 -1
- package/dist/cdn/chunks/styles-DLAfU4Uf.js +0 -4140
- package/dist/cdn/chunks/styles-DLAfU4Uf.js.map +0 -1
- package/dist/cdn/chunks/timeouts-SsLMC4a3.js +0 -6
- package/dist/cdn/chunks/timeouts-SsLMC4a3.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-CcgxY-Gy.js.map +0 -1
- package/dist/styles-Dx__pP9O.js +0 -4318
- package/dist/usePopoverPosition-C0dPEF4X.js +0 -308
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import { D as e, L as t, Q as n, R as r, rt as i, s as a, tt as o, x as s, y as c } from "./vue.runtime.esm-bundler-DzEsDRtY.js";
|
|
2
|
+
import { _ as l, a as u, d, i as f, l as p, n as m, o as h, r as g, s as _, t as v, u as y } from "./dist-CqcGTIiX.js";
|
|
3
|
+
//#region ../../node_modules/.pnpm/@vueuse+core@14.4.0_vue@3.5.41_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
|
|
4
|
+
var b = m ? window : void 0;
|
|
5
|
+
m && window.document, m && window.navigator, m && window.location;
|
|
6
|
+
function x(e) {
|
|
7
|
+
let t = o(e);
|
|
8
|
+
return t?.$el ?? t;
|
|
9
|
+
}
|
|
10
|
+
function S(...e) {
|
|
11
|
+
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = a(() => {
|
|
12
|
+
let t = p(o(e[0])).filter((e) => e != null);
|
|
13
|
+
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
14
|
+
});
|
|
15
|
+
return l(() => [
|
|
16
|
+
n.value?.map((e) => x(e)) ?? [b].filter((e) => e != null),
|
|
17
|
+
p(o(n.value ? e[1] : e[0])),
|
|
18
|
+
p(i(n.value ? e[2] : e[1])),
|
|
19
|
+
o(n.value ? e[3] : e[2])
|
|
20
|
+
], ([e, n, r, i], a, o) => {
|
|
21
|
+
if (!e?.length || !n?.length || !r?.length) return;
|
|
22
|
+
let s = f(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
|
|
23
|
+
o(() => {
|
|
24
|
+
c.forEach((e) => e());
|
|
25
|
+
});
|
|
26
|
+
}, { flush: "post" });
|
|
27
|
+
}
|
|
28
|
+
var C = !1;
|
|
29
|
+
function w(e, t, n = {}) {
|
|
30
|
+
let { window: r = b, ignore: i = [], capture: a = !0, detectIframe: s = !1, controls: c = !1 } = n;
|
|
31
|
+
if (!r) return c ? {
|
|
32
|
+
stop: u,
|
|
33
|
+
cancel: u,
|
|
34
|
+
trigger: u
|
|
35
|
+
} : u;
|
|
36
|
+
if (g && !C) {
|
|
37
|
+
C = !0;
|
|
38
|
+
let e = { passive: !0 };
|
|
39
|
+
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", u, e)), r.document.documentElement.addEventListener("click", u, e);
|
|
40
|
+
}
|
|
41
|
+
let l = !0, d = (e) => o(i).some((t) => {
|
|
42
|
+
if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
|
|
43
|
+
{
|
|
44
|
+
let n = x(t);
|
|
45
|
+
return n && (e.target === n || e.composedPath().includes(n));
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
function f(e) {
|
|
49
|
+
let t = o(e);
|
|
50
|
+
return t && t.$.subTree.shapeFlag === 16;
|
|
51
|
+
}
|
|
52
|
+
function p(e, t) {
|
|
53
|
+
let n = o(e), r = n.$.subTree && n.$.subTree.children;
|
|
54
|
+
return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
|
|
55
|
+
}
|
|
56
|
+
let m = (n) => {
|
|
57
|
+
let r = x(e);
|
|
58
|
+
if (n.target != null && !(!(r instanceof Element) && f(e) && p(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
|
|
59
|
+
if ("detail" in n && n.detail === 0 && (l = !d(n)), !l) {
|
|
60
|
+
l = !0;
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
t(n);
|
|
64
|
+
}
|
|
65
|
+
}, h = !1, _ = [
|
|
66
|
+
S(r, "click", (e) => {
|
|
67
|
+
h || (h = !0, setTimeout(() => {
|
|
68
|
+
h = !1;
|
|
69
|
+
}, 0), m(e));
|
|
70
|
+
}, {
|
|
71
|
+
passive: !0,
|
|
72
|
+
capture: a
|
|
73
|
+
}),
|
|
74
|
+
S(r, "pointerdown", (t) => {
|
|
75
|
+
let n = x(e);
|
|
76
|
+
l = !d(t) && !!(n && !t.composedPath().includes(n));
|
|
77
|
+
}, { passive: !0 }),
|
|
78
|
+
s && S(r, "blur", (n) => {
|
|
79
|
+
setTimeout(() => {
|
|
80
|
+
let i = x(e), a = r.document.activeElement;
|
|
81
|
+
for (; a?.shadowRoot;) a = a.shadowRoot.activeElement;
|
|
82
|
+
a?.tagName === "IFRAME" && !i?.contains(r.document.activeElement) && t(n);
|
|
83
|
+
}, 0);
|
|
84
|
+
}, { passive: !0 })
|
|
85
|
+
].filter(Boolean), v = () => _.forEach((e) => e());
|
|
86
|
+
return c ? {
|
|
87
|
+
stop: v,
|
|
88
|
+
cancel: () => {
|
|
89
|
+
l = !1;
|
|
90
|
+
},
|
|
91
|
+
trigger: (e) => {
|
|
92
|
+
l = !0, m(e), l = !1;
|
|
93
|
+
}
|
|
94
|
+
} : v;
|
|
95
|
+
}
|
|
96
|
+
function T() {
|
|
97
|
+
let t = n(!1), r = c();
|
|
98
|
+
return r && e(() => {
|
|
99
|
+
t.value = !0;
|
|
100
|
+
}, r), t;
|
|
101
|
+
}
|
|
102
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
103
|
+
function E(e) {
|
|
104
|
+
let t = T();
|
|
105
|
+
return a(() => (t.value, !!e()));
|
|
106
|
+
}
|
|
107
|
+
function D(e, n, r = {}) {
|
|
108
|
+
let { window: i = b, ...s } = r, c, l = /* @__PURE__ */ E(() => i && "MutationObserver" in i), u = () => {
|
|
109
|
+
c &&= (c.disconnect(), void 0);
|
|
110
|
+
}, f = t(a(() => {
|
|
111
|
+
let t = p(o(e)).map(x).filter(h);
|
|
112
|
+
return new Set(t);
|
|
113
|
+
}), (e) => {
|
|
114
|
+
u(), l.value && e.size && (c = new MutationObserver(n), e.forEach((e) => c.observe(e, s)));
|
|
115
|
+
}, {
|
|
116
|
+
immediate: !0,
|
|
117
|
+
flush: "post"
|
|
118
|
+
}), m = () => c?.takeRecords(), g = () => {
|
|
119
|
+
f(), u();
|
|
120
|
+
};
|
|
121
|
+
return d(g), {
|
|
122
|
+
isSupported: l,
|
|
123
|
+
stop: g,
|
|
124
|
+
takeRecords: m
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
var O = Symbol("vueuse-ssr-width");
|
|
128
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
129
|
+
function k() {
|
|
130
|
+
let e = s() ? v(O, null) : null;
|
|
131
|
+
return typeof e == "number" ? e : void 0;
|
|
132
|
+
}
|
|
133
|
+
function A(e, t = {}) {
|
|
134
|
+
let { window: i = b, ssrWidth: s = /* @__PURE__ */ k() } = t, c = /* @__PURE__ */ E(() => i && "matchMedia" in i && typeof i.matchMedia == "function"), l = n(typeof s == "number"), u = n(), d = n(!1);
|
|
135
|
+
return r(() => {
|
|
136
|
+
if (l.value) {
|
|
137
|
+
l.value = !c.value;
|
|
138
|
+
let t = o(e).split(",");
|
|
139
|
+
d.value = t.some((e) => {
|
|
140
|
+
let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), r = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), i = !!(n || r);
|
|
141
|
+
return n && i && (i = s >= _(n[1])), r && i && (i = s <= _(r[1])), t ? !i : i;
|
|
142
|
+
});
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
c.value && (u.value = i.matchMedia(o(e)), d.value = u.value.matches);
|
|
146
|
+
}), S(u, "change", (e) => {
|
|
147
|
+
d.value = e.matches;
|
|
148
|
+
}, { passive: !0 }), a(() => d.value);
|
|
149
|
+
}
|
|
150
|
+
function j(e, t = {}) {
|
|
151
|
+
let r = n(!1), a = n(null), o = 0, s = !0;
|
|
152
|
+
if (m) {
|
|
153
|
+
let n = typeof t == "function" ? { onDrop: t } : t, c = n.multiple ?? !0, l = n.preventDefaultForUnhandled ?? !1, u = (e) => {
|
|
154
|
+
let t = Array.from(e.dataTransfer?.files ?? []);
|
|
155
|
+
return t.length === 0 ? null : c ? t : [t[0]];
|
|
156
|
+
}, d = (e) => {
|
|
157
|
+
let t = i(n.dataTypes);
|
|
158
|
+
return typeof t == "function" ? t(e) : !t?.length || e.length !== 0 && e.every((e) => t.some((t) => e.includes(t)));
|
|
159
|
+
}, f = (e) => {
|
|
160
|
+
if (n.checkValidity) return n.checkValidity(e);
|
|
161
|
+
let t = Array.from(e ?? []).map((e) => e.type), r = d(t), i = c || e.length <= 1;
|
|
162
|
+
return r && i;
|
|
163
|
+
}, p = () => /^(?:(?!chrome|android).)*safari/i.test(navigator.userAgent) && !("chrome" in window), m = (e, t) => {
|
|
164
|
+
let i = e.dataTransfer?.items;
|
|
165
|
+
if (s = (i && f(i)) ?? !1, l && e.preventDefault(), !p() && !s) {
|
|
166
|
+
e.dataTransfer && (e.dataTransfer.dropEffect = "none");
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = "copy");
|
|
170
|
+
let c = u(e);
|
|
171
|
+
switch (t) {
|
|
172
|
+
case "enter":
|
|
173
|
+
var d;
|
|
174
|
+
o += 1, r.value = !0, (d = n.onEnter) == null || d.call(n, null, e);
|
|
175
|
+
break;
|
|
176
|
+
case "over":
|
|
177
|
+
var m;
|
|
178
|
+
(m = n.onOver) == null || m.call(n, null, e);
|
|
179
|
+
break;
|
|
180
|
+
case "leave":
|
|
181
|
+
var h;
|
|
182
|
+
--o, o === 0 && (r.value = !1), (h = n.onLeave) == null || h.call(n, null, e);
|
|
183
|
+
break;
|
|
184
|
+
case "drop": if (o = 0, r.value = !1, s) {
|
|
185
|
+
var g;
|
|
186
|
+
a.value = c, (g = n.onDrop) == null || g.call(n, c, e);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
S(e, "dragenter", (e) => m(e, "enter")), S(e, "dragover", (e) => m(e, "over")), S(e, "dragleave", (e) => m(e, "leave")), S(e, "drop", (e) => m(e, "drop"));
|
|
191
|
+
}
|
|
192
|
+
return {
|
|
193
|
+
files: a,
|
|
194
|
+
isOverDropZone: r
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
function M(e, n, r = {}) {
|
|
198
|
+
let { window: i = b, ...s } = r, c, l = /* @__PURE__ */ E(() => i && "ResizeObserver" in i), u = () => {
|
|
199
|
+
c &&= (c.disconnect(), void 0);
|
|
200
|
+
}, f = t(a(() => {
|
|
201
|
+
let t = o(e);
|
|
202
|
+
return Array.isArray(t) ? t.map((e) => x(e)) : [x(t)];
|
|
203
|
+
}), (e) => {
|
|
204
|
+
if (u(), l.value && i) {
|
|
205
|
+
c = new ResizeObserver(n);
|
|
206
|
+
for (let t of e) t && c.observe(t, s);
|
|
207
|
+
}
|
|
208
|
+
}, {
|
|
209
|
+
immediate: !0,
|
|
210
|
+
flush: "post"
|
|
211
|
+
}), p = () => {
|
|
212
|
+
u(), f();
|
|
213
|
+
};
|
|
214
|
+
return d(p), {
|
|
215
|
+
isSupported: l,
|
|
216
|
+
stop: p
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
function N(e, r = {}) {
|
|
220
|
+
let { reset: i = !0, windowResize: a = !0, windowScroll: o = !0, immediate: s = !0, updateTiming: c = "sync" } = r, l = n(0), u = n(0), d = n(0), f = n(0), p = n(0), m = n(0), h = n(0), g = n(0);
|
|
221
|
+
function _() {
|
|
222
|
+
let t = x(e);
|
|
223
|
+
if (!t) {
|
|
224
|
+
i && (l.value = 0, u.value = 0, d.value = 0, f.value = 0, p.value = 0, m.value = 0, h.value = 0, g.value = 0);
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
let n = t.getBoundingClientRect();
|
|
228
|
+
l.value = n.height, u.value = n.bottom, d.value = n.left, f.value = n.right, p.value = n.top, m.value = n.width, h.value = n.x, g.value = n.y;
|
|
229
|
+
}
|
|
230
|
+
function v() {
|
|
231
|
+
c === "sync" ? _() : c === "next-frame" && requestAnimationFrame(() => _());
|
|
232
|
+
}
|
|
233
|
+
return M(e, v), t(() => x(e), (e) => !e && v()), D(e, v, { attributeFilter: ["style", "class"] }), o && S("scroll", v, {
|
|
234
|
+
capture: !0,
|
|
235
|
+
passive: !0
|
|
236
|
+
}), a && S("resize", v, { passive: !0 }), y(() => {
|
|
237
|
+
s && v();
|
|
238
|
+
}), {
|
|
239
|
+
height: l,
|
|
240
|
+
bottom: u,
|
|
241
|
+
left: d,
|
|
242
|
+
right: f,
|
|
243
|
+
top: p,
|
|
244
|
+
width: m,
|
|
245
|
+
x: h,
|
|
246
|
+
y: g,
|
|
247
|
+
update: v
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
//#endregion
|
|
251
|
+
export { A as a, S as i, j as n, N as r, w as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { r as m } from "./runtime-dom.esm-bundler-
|
|
2
|
+
import { $ as t, A as n, D as r, E as i, H as a, J as o, K as s, Q as ee, R as te, T as c, X as l, b as u, ot as d, rt as f, v as p, y as ne } from "./vue.runtime.esm-bundler-DzEsDRtY.js";
|
|
3
|
+
import { r as m } from "./runtime-dom.esm-bundler-BgKXIPLV.js";
|
|
4
4
|
import { $ as re, $t as ie, A as ae, An as oe, At as se, B as ce, Bt as le, C as ue, Cn as de, Ct as fe, D as h, Dn as g, Dt as _, E as v, En as y, Et as b, F as x, Fn as S, Ft as C, G as w, Gt as T, H as E, Ht as D, I as O, In as k, It as A, J as j, Jt as M, K as N, Kt as P, L as F, Ln as I, Lt as L, M as R, Mn as z, Mt as B, N as V, Nn as pe, Nt as me, O as he, On as ge, Ot as _e, P as ve, Pn as ye, Pt as be, Q as xe, Qt as Se, R as Ce, Rn as we, Rt as Te, S as Ee, Sn as De, St as Oe, T as ke, Tn as Ae, Tt as je, U as Me, Ut as H, V as Ne, Vt as Pe, W as Fe, Wt as Ie, X as Le, Xt as Re, Y as ze, Yt as Be, Z as Ve, Zt as He, _ as U, _n as Ue, _t as We, a as Ge, an as Ke, at as qe, b as Je, bn as Ye, bt as Xe, c as Ze, cn as Qe, ct as $e, d as et, dn as tt, dt as W, en as nt, et as rt, f as it, fn as at, ft as ot, g as st, gn as ct, gt as lt, h as ut, hn as dt, ht as ft, i as pt, in as mt, it as ht, j as gt, jn as _t, jt as vt, k as yt, kn as bt, kt as xt, l as St, ln as Ct, lt as wt, m as Tt, mn as Et, mt as Dt, n as Ot, nn as kt, nt as At, o as jt, on as Mt, ot as Nt, p as G, pn as Pt, pt as Ft, q as It, qt as Lt, r as Rt, rn as zt, rt as Bt, s as Vt, sn as Ht, st as Ut, t as Wt, tn as Gt, tt as Kt, u as qt, un as Jt, ut as Yt, v as Xt, vn as Zt, vt as Qt, w as $t, wn as en, wt as tn, x as nn, xn as rn, xt as an, y as on, yn as sn, yt as cn, z as ln, zn as un, zt as dn } from "./dist-ChYLhoJ4.js";
|
|
5
5
|
//#region ../../node_modules/.pnpm/@tiptap+vue-3@3.30.1_@floating-ui+dom@1.8.0_@tiptap+core@3.30.1_@tiptap+pm@3.30.1__@tip_771dbc12d4bdce024804a32b81522205/node_modules/@tiptap/vue-3/dist/index.js
|
|
6
6
|
var fn = /* @__PURE__ */ e({
|
|
@@ -166,7 +166,7 @@ var fn = /* @__PURE__ */ e({
|
|
|
166
166
|
wrappingInputRule: () => un
|
|
167
167
|
});
|
|
168
168
|
function K(e) {
|
|
169
|
-
return
|
|
169
|
+
return a((t, n) => ({
|
|
170
170
|
get() {
|
|
171
171
|
return t(), e;
|
|
172
172
|
},
|
|
@@ -183,7 +183,7 @@ var q = class extends Ge {
|
|
|
183
183
|
constructor(e = {}) {
|
|
184
184
|
return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = K(this.view.state), this.reactiveExtensionStorage = K(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
|
|
185
185
|
this.reactiveState.value = e, this.reactiveExtensionStorage.value = this.extensionStorage;
|
|
186
|
-
}),
|
|
186
|
+
}), s(this);
|
|
187
187
|
}
|
|
188
188
|
get state() {
|
|
189
189
|
return this.reactiveState ? this.reactiveState.value : this.view.state;
|
|
@@ -199,35 +199,35 @@ var q = class extends Ge {
|
|
|
199
199
|
let t = super.unregisterPlugin(e);
|
|
200
200
|
return this.reactiveState && t && (this.reactiveState.value = t), t;
|
|
201
201
|
}
|
|
202
|
-
}, pn =
|
|
202
|
+
}, pn = p({
|
|
203
203
|
name: "EditorContent",
|
|
204
204
|
props: { editor: {
|
|
205
205
|
default: null,
|
|
206
206
|
type: Object
|
|
207
207
|
} },
|
|
208
208
|
setup(e) {
|
|
209
|
-
let t =
|
|
210
|
-
return
|
|
209
|
+
let t = l(), n = ne();
|
|
210
|
+
return te(() => {
|
|
211
211
|
let r = e.editor;
|
|
212
|
-
r && r.options.element && t.value &&
|
|
212
|
+
r && r.options.element && t.value && c(() => {
|
|
213
213
|
if (!t.value || !r.view.dom?.parentNode) return;
|
|
214
|
-
let e =
|
|
214
|
+
let e = f(t.value);
|
|
215
215
|
t.value.append(...r.view.dom.parentNode.childNodes), r.contentComponent = n.ctx._, n && (r.appContext = {
|
|
216
216
|
...n.appContext,
|
|
217
217
|
provides: n.provides
|
|
218
218
|
}), r.setOptions({ element: e }), r.createNodeViews();
|
|
219
219
|
});
|
|
220
|
-
}),
|
|
220
|
+
}), i(() => {
|
|
221
221
|
let t = e.editor;
|
|
222
222
|
t && (t.contentComponent = null, t.appContext = null);
|
|
223
223
|
}), { rootEl: t };
|
|
224
224
|
},
|
|
225
225
|
render() {
|
|
226
|
-
return
|
|
226
|
+
return u("div", { ref: (e) => {
|
|
227
227
|
this.rootEl = e;
|
|
228
228
|
} });
|
|
229
229
|
}
|
|
230
|
-
}), mn =
|
|
230
|
+
}), mn = p({
|
|
231
231
|
name: "NodeViewContent",
|
|
232
232
|
props: { as: {
|
|
233
233
|
type: String,
|
|
@@ -243,12 +243,12 @@ var q = class extends Ge {
|
|
|
243
243
|
e && e(null);
|
|
244
244
|
},
|
|
245
245
|
render() {
|
|
246
|
-
return
|
|
246
|
+
return u(this.as, {
|
|
247
247
|
style: { whiteSpace: "pre-wrap" },
|
|
248
248
|
"data-node-view-content": ""
|
|
249
249
|
});
|
|
250
250
|
}
|
|
251
|
-
}), J =
|
|
251
|
+
}), J = p({
|
|
252
252
|
name: "NodeViewWrapper",
|
|
253
253
|
props: { as: {
|
|
254
254
|
type: String,
|
|
@@ -257,7 +257,7 @@ var q = class extends Ge {
|
|
|
257
257
|
inject: ["onDragStart", "decorationClasses"],
|
|
258
258
|
render() {
|
|
259
259
|
var e;
|
|
260
|
-
return
|
|
260
|
+
return u(this.as, {
|
|
261
261
|
class: this.decorationClasses,
|
|
262
262
|
style: { whiteSpace: "normal" },
|
|
263
263
|
"data-node-view-wrapper": "",
|
|
@@ -265,16 +265,16 @@ var q = class extends Ge {
|
|
|
265
265
|
}, (e = this.$slots).default?.call(e));
|
|
266
266
|
}
|
|
267
267
|
}), hn = (e = {}) => {
|
|
268
|
-
let
|
|
269
|
-
return
|
|
270
|
-
|
|
271
|
-
}),
|
|
268
|
+
let t = ee();
|
|
269
|
+
return r(() => {
|
|
270
|
+
t.value = new q(e);
|
|
271
|
+
}), i(() => {
|
|
272
272
|
var e;
|
|
273
|
-
(e =
|
|
274
|
-
}),
|
|
273
|
+
(e = t.value) == null || e.destroy();
|
|
274
|
+
}), t;
|
|
275
275
|
}, Y = class {
|
|
276
|
-
constructor(e, { props: t = {}, editor:
|
|
277
|
-
this.destroyed = !1, this.editor =
|
|
276
|
+
constructor(e, { props: t = {}, editor: n }) {
|
|
277
|
+
this.destroyed = !1, this.editor = n, this.component = s(e), this.el = document.createElement("div"), this.props = o(t), this.renderedComponent = this.renderComponent();
|
|
278
278
|
}
|
|
279
279
|
get element() {
|
|
280
280
|
return this.renderedComponent.el;
|
|
@@ -284,7 +284,7 @@ var q = class extends Ge {
|
|
|
284
284
|
}
|
|
285
285
|
renderComponent() {
|
|
286
286
|
if (this.destroyed) return this.renderedComponent;
|
|
287
|
-
let e =
|
|
287
|
+
let e = u(this.component, this.props);
|
|
288
288
|
return this.editor.appContext && (e.appContext = this.editor.appContext), typeof document < "u" && this.el && m(e, this.el), {
|
|
289
289
|
vNode: e,
|
|
290
290
|
destroy: () => {
|
|
@@ -330,14 +330,14 @@ var q = class extends Ge {
|
|
|
330
330
|
type: Object,
|
|
331
331
|
required: !0
|
|
332
332
|
}
|
|
333
|
-
}, _n =
|
|
333
|
+
}, _n = p({
|
|
334
334
|
name: "MarkViewContent",
|
|
335
335
|
props: { as: {
|
|
336
336
|
type: String,
|
|
337
337
|
default: "span"
|
|
338
338
|
} },
|
|
339
339
|
render() {
|
|
340
|
-
return
|
|
340
|
+
return u(this.as, {
|
|
341
341
|
style: { whiteSpace: "inherit" },
|
|
342
342
|
"data-mark-view-content": ""
|
|
343
343
|
});
|
|
@@ -348,7 +348,7 @@ var q = class extends Ge {
|
|
|
348
348
|
let r = {
|
|
349
349
|
...t,
|
|
350
350
|
updateAttributes: this.updateAttributes.bind(this)
|
|
351
|
-
}, i =
|
|
351
|
+
}, i = p({
|
|
352
352
|
extends: { ...e },
|
|
353
353
|
props: Object.keys(r),
|
|
354
354
|
template: this.component.template,
|
|
@@ -370,8 +370,8 @@ var q = class extends Ge {
|
|
|
370
370
|
return this.dom.querySelector("[data-mark-view-content]");
|
|
371
371
|
}
|
|
372
372
|
updateAttributes(e) {
|
|
373
|
-
let
|
|
374
|
-
super.updateAttributes(e,
|
|
373
|
+
let n = t(this.mark);
|
|
374
|
+
super.updateAttributes(e, n);
|
|
375
375
|
}
|
|
376
376
|
destroy() {
|
|
377
377
|
this.renderer.destroy();
|
|
@@ -454,15 +454,15 @@ var yn = {
|
|
|
454
454
|
getPos: () => this.getPos(),
|
|
455
455
|
updateAttributes: (e = {}) => this.updateAttributes(e),
|
|
456
456
|
deleteNode: () => this.deleteNode()
|
|
457
|
-
}, t = e,
|
|
458
|
-
this.decorationClasses =
|
|
459
|
-
let
|
|
457
|
+
}, t = e, r = this.onDragStart.bind(this);
|
|
458
|
+
this.decorationClasses = l(this.getDecorationClasses());
|
|
459
|
+
let i = p({
|
|
460
460
|
extends: { ...this.component },
|
|
461
461
|
props: Object.keys(e),
|
|
462
462
|
template: this.component.template,
|
|
463
463
|
setup: (e) => {
|
|
464
464
|
var t;
|
|
465
|
-
return
|
|
465
|
+
return n("onDragStart", r), n("decorationClasses", this.decorationClasses), n("nodeViewContentRef", (e) => {
|
|
466
466
|
if (!(!e || e === this.contentDOMElement)) {
|
|
467
467
|
if (this.contentDOMElement) for (; this.contentDOMElement.firstChild;) e.appendChild(this.contentDOMElement.firstChild);
|
|
468
468
|
this.contentDOMElement = e;
|
|
@@ -474,7 +474,7 @@ var yn = {
|
|
|
474
474
|
__name: this.component.__name,
|
|
475
475
|
__file: this.component.__file
|
|
476
476
|
});
|
|
477
|
-
this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this), this.editor.on("selectionUpdate", this.handleSelectionUpdate), this.currentPos = this.getPos(), this.node.isLeaf || (this.contentDOMElement = this.options.contentDOMElementTag ? document.createElement(this.options.contentDOMElementTag) : document.createElement(this.node.isInline ? "span" : "div"), this.contentDOMElement.style.whiteSpace = "inherit", this.contentDOMElement.dataset.nodeViewContentVue = ""), this.renderer = new Y(
|
|
477
|
+
this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this), this.editor.on("selectionUpdate", this.handleSelectionUpdate), this.currentPos = this.getPos(), this.node.isLeaf || (this.contentDOMElement = this.options.contentDOMElementTag ? document.createElement(this.options.contentDOMElementTag) : document.createElement(this.node.isInline ? "span" : "div"), this.contentDOMElement.style.whiteSpace = "inherit", this.contentDOMElement.dataset.nodeViewContentVue = ""), this.renderer = new Y(i, {
|
|
478
478
|
editor: this.editor,
|
|
479
479
|
props: t
|
|
480
480
|
});
|
|
@@ -557,7 +557,7 @@ function Q(e, t) {
|
|
|
557
557
|
if (!r) return;
|
|
558
558
|
(n = r.mixins) == null || n.forEach((e) => Q(e, t)), Q(r.extends, t);
|
|
559
559
|
let { props: i } = r;
|
|
560
|
-
Array.isArray(i) ? i.forEach((e) => t.add(
|
|
560
|
+
Array.isArray(i) ? i.forEach((e) => t.add(d(e))) : i && Object.keys(i).forEach((e) => t.add(d(e)));
|
|
561
561
|
}
|
|
562
562
|
function $(e, t) {
|
|
563
563
|
let n = /* @__PURE__ */ new Set();
|
|
@@ -567,7 +567,7 @@ function $(e, t) {
|
|
|
567
567
|
"editor",
|
|
568
568
|
"getPos",
|
|
569
569
|
...Object.keys(t)
|
|
570
|
-
]) n.has(
|
|
570
|
+
]) n.has(d(e)) || (r[e] = null);
|
|
571
571
|
return r;
|
|
572
572
|
}
|
|
573
573
|
function xn(e, t) {
|
|
@@ -582,17 +582,17 @@ function Sn(e, t) {
|
|
|
582
582
|
}
|
|
583
583
|
var Cn = /* @__PURE__ */ Symbol("tiptapVueWidgetCache");
|
|
584
584
|
function wn(e, t) {
|
|
585
|
-
let { editor:
|
|
585
|
+
let { editor: n, props: r = {} } = t, i = Tn(e) ? Sn(e, r) : En(e, r);
|
|
586
586
|
return O({
|
|
587
587
|
...t,
|
|
588
|
-
props:
|
|
588
|
+
props: r,
|
|
589
589
|
cacheKey: Cn,
|
|
590
590
|
context: (e) => ({
|
|
591
|
-
editor: n
|
|
591
|
+
editor: s(n),
|
|
592
592
|
getPos: e
|
|
593
593
|
}),
|
|
594
|
-
create: (e) => new Y(
|
|
595
|
-
editor:
|
|
594
|
+
create: (e) => new Y(i, {
|
|
595
|
+
editor: n,
|
|
596
596
|
props: e
|
|
597
597
|
}),
|
|
598
598
|
materialize: (e) => e.element
|
|
@@ -602,7 +602,7 @@ function Tn(e) {
|
|
|
602
602
|
return typeof e == "function";
|
|
603
603
|
}
|
|
604
604
|
function En(e, t) {
|
|
605
|
-
return
|
|
605
|
+
return p({
|
|
606
606
|
extends: { ...e },
|
|
607
607
|
props: $(e, t),
|
|
608
608
|
template: e.template,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as e, G as t, L as n, Q as r, S as i, T as a, U as o, X as s, Z as c, q as l, tt as u, x as d, y as f } from "./vue.runtime.esm-bundler-DzEsDRtY.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/@vueuse+shared@14.4.0_vue@3.5.41_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
|
|
3
|
-
function p(e,
|
|
4
|
-
return
|
|
3
|
+
function p(e, t) {
|
|
4
|
+
return o() ? (l(e, t), !0) : !1;
|
|
5
5
|
}
|
|
6
6
|
var m = /* @__PURE__ */ new WeakMap(), h = (...e) => {
|
|
7
|
-
let
|
|
8
|
-
if (
|
|
9
|
-
return
|
|
7
|
+
let t = e[0], n = f()?.proxy ?? o();
|
|
8
|
+
if (n == null && !d()) throw Error("injectLocal must be called in setup");
|
|
9
|
+
return n && m.has(n) && t in m.get(n) ? m.get(n)[t] : i(...e);
|
|
10
10
|
}, g = typeof window < "u" && typeof document < "u";
|
|
11
11
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
12
12
|
var _ = (e) => e != null, v = Object.prototype.toString, y = (e) => v.call(e) === "[object Object]", b = () => {}, x = /* #__PURE__ */ S();
|
|
@@ -32,30 +32,30 @@ function C(e, t) {
|
|
|
32
32
|
}
|
|
33
33
|
var w = (e) => e();
|
|
34
34
|
function T(e, t = {}) {
|
|
35
|
-
let n,
|
|
36
|
-
clearTimeout(e),
|
|
35
|
+
let n, i, a = b, o = b, s = r(!1), l = (e) => {
|
|
36
|
+
clearTimeout(e), a(), a = b;
|
|
37
37
|
}, d;
|
|
38
|
-
return Object.assign((
|
|
39
|
-
let
|
|
40
|
-
return n &&
|
|
41
|
-
|
|
42
|
-
n &&
|
|
38
|
+
return Object.assign((r) => {
|
|
39
|
+
let c = u(e), f = u(t.maxWait);
|
|
40
|
+
return n && l(n), c <= 0 || f !== void 0 && f <= 0 ? (i &&= (l(i), void 0), s.value = !1, Promise.resolve(r())) : (s.value = !0, new Promise((e, u) => {
|
|
41
|
+
a = t.rejectOnCancel ? u : e, o = e, d = r, f && !i && (i = setTimeout(() => {
|
|
42
|
+
n && l(n), i = void 0, s.value = !1, e(d());
|
|
43
43
|
}, f)), n = setTimeout(() => {
|
|
44
|
-
|
|
45
|
-
},
|
|
44
|
+
i && l(i), i = void 0, s.value = !1, e(r());
|
|
45
|
+
}, c);
|
|
46
46
|
}));
|
|
47
47
|
}, {
|
|
48
48
|
cancel: () => {
|
|
49
|
-
n &&= (
|
|
49
|
+
n &&= (l(n), void 0), i &&= (l(i), void 0), s.value = !1, o = b;
|
|
50
50
|
},
|
|
51
51
|
flush: () => {
|
|
52
|
-
if (
|
|
53
|
-
n &&= (clearTimeout(n), void 0),
|
|
52
|
+
if (s.value) {
|
|
53
|
+
n &&= (clearTimeout(n), void 0), i &&= (clearTimeout(i), void 0), s.value = !1;
|
|
54
54
|
let e = o;
|
|
55
|
-
|
|
55
|
+
a = b, o = b, e(d());
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
|
-
isPending:
|
|
58
|
+
isPending: c(s)
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
function E(e) {
|
|
@@ -65,73 +65,73 @@ function D(e) {
|
|
|
65
65
|
return Array.isArray(e) ? e : [e];
|
|
66
66
|
}
|
|
67
67
|
function O(e) {
|
|
68
|
-
return e ||
|
|
68
|
+
return e || f();
|
|
69
69
|
}
|
|
70
70
|
function k(e, t = 200, n = {}) {
|
|
71
71
|
return C(T(t, n), e);
|
|
72
72
|
}
|
|
73
73
|
function A(e, t = 200, r = {}) {
|
|
74
|
-
let i =
|
|
74
|
+
let i = s(u(e)), a = k(() => {
|
|
75
75
|
i.value = e.value;
|
|
76
76
|
}, t, r);
|
|
77
|
-
return n(e, () =>
|
|
77
|
+
return n(e, () => a()), c(i);
|
|
78
78
|
}
|
|
79
79
|
function j(e, t, r = {}) {
|
|
80
80
|
let { eventFilter: i = w, ...a } = r;
|
|
81
81
|
return n(e, C(i, t), a);
|
|
82
82
|
}
|
|
83
83
|
function M(t, n = !0, r) {
|
|
84
|
-
O(r) ? e(t, r) : n ? t() :
|
|
84
|
+
O(r) ? e(t, r) : n ? t() : a(t);
|
|
85
85
|
}
|
|
86
|
-
function N(e,
|
|
87
|
-
let { immediate: o = !0, immediateCallback:
|
|
86
|
+
function N(e, i = 1e3, a = {}) {
|
|
87
|
+
let { immediate: o = !0, immediateCallback: s = !1 } = a, l = null, d = r(!1);
|
|
88
88
|
function f() {
|
|
89
|
-
|
|
89
|
+
l &&= (clearInterval(l), null);
|
|
90
90
|
}
|
|
91
91
|
function m() {
|
|
92
92
|
d.value = !1, f();
|
|
93
93
|
}
|
|
94
94
|
function h() {
|
|
95
|
-
let
|
|
96
|
-
|
|
95
|
+
let t = u(i);
|
|
96
|
+
t <= 0 || (d.value = !0, s && e(), f(), d.value && (l = setInterval(e, t)));
|
|
97
97
|
}
|
|
98
|
-
return o && g && h(), (i
|
|
98
|
+
return o && g && h(), (t(i) || typeof i == "function") && p(n(i, () => {
|
|
99
99
|
d.value && g && h();
|
|
100
100
|
})), p(m), {
|
|
101
|
-
isActive:
|
|
101
|
+
isActive: c(d),
|
|
102
102
|
pause: m,
|
|
103
103
|
resume: h
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
function P(e, t, n = {}) {
|
|
107
|
-
let { immediate:
|
|
108
|
-
function
|
|
109
|
-
|
|
107
|
+
let { immediate: i = !0, immediateCallback: a = !1 } = n, o = r(!1), s;
|
|
108
|
+
function l() {
|
|
109
|
+
s &&= (clearTimeout(s), void 0);
|
|
110
110
|
}
|
|
111
111
|
function d() {
|
|
112
|
-
o.value = !1,
|
|
112
|
+
o.value = !1, l();
|
|
113
113
|
}
|
|
114
114
|
function f(...n) {
|
|
115
|
-
|
|
116
|
-
o.value = !1,
|
|
117
|
-
},
|
|
115
|
+
a && e(), l(), o.value = !0, s = setTimeout(() => {
|
|
116
|
+
o.value = !1, s = void 0, e(...n);
|
|
117
|
+
}, u(t));
|
|
118
118
|
}
|
|
119
|
-
return
|
|
120
|
-
isPending:
|
|
119
|
+
return i && (o.value = !0, g && f()), p(d), {
|
|
120
|
+
isPending: c(o),
|
|
121
121
|
start: f,
|
|
122
122
|
stop: d
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
|
-
function F(e = !1,
|
|
126
|
-
let { truthyValue:
|
|
125
|
+
function F(e = !1, n = {}) {
|
|
126
|
+
let { truthyValue: i = !0, falsyValue: a = !1 } = n, o = t(e), s = r(e);
|
|
127
127
|
function c(e) {
|
|
128
|
-
if (arguments.length) return
|
|
128
|
+
if (arguments.length) return s.value = e, s.value;
|
|
129
129
|
{
|
|
130
|
-
let e =
|
|
131
|
-
return
|
|
130
|
+
let e = u(i);
|
|
131
|
+
return s.value = s.value === e ? u(a) : e, s.value;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
return
|
|
134
|
+
return o ? c : [s, c];
|
|
135
135
|
}
|
|
136
136
|
function I(e, t, n = {}) {
|
|
137
137
|
let { debounce: r = 0, maxWait: i = void 0, ...a } = n;
|