@templatical/editor 0.31.0 → 0.33.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-DYDtzTDd.js → AiChatSidebar-J7WsHRDS.js} +15 -15
- package/dist/{AiFeatureMenu-BJ882XCi.js → AiFeatureMenu-C9mxL_7U.js} +7 -7
- package/dist/{BlockIssueBadge-D6y8vQpL.js → BlockIssueBadge-BI6v_eol.js} +5 -5
- package/dist/{BlockPreviewCanvas-DQNxLy7u.js → BlockPreviewCanvas-mZIr9mY2.js} +20 -19
- package/dist/{CloudHeaderExtras-CqG3RaKw.js → CloudHeaderExtras-CLtTtK12.js} +5 -5
- package/dist/{CloudPanels-B6xrk7kN.js → CloudPanels-BbLAX1jH.js} +7 -7
- package/dist/{CollaboratorBar-by16gXQH.js → CollaboratorBar-OBbLOhLK.js} +4 -4
- package/dist/{ColorPicker-E5gqlCZE.js → ColorPicker-Cs7iK01u.js} +7 -7
- package/dist/{CommentsPanel-B_kzvTHR.js → CommentsPanel-G_uNzi1a.js} +2 -2
- package/dist/{CommentsSidebar-gfzUX7cd.js → CommentsSidebar-DlFlpfkU.js} +14 -14
- package/dist/{CountdownBlock-BgNK7fZY.js → CountdownBlock-Bdt8qZi1.js} +3 -3
- package/dist/{CountdownToolbar-DU8UHx9A.js → CountdownToolbar-BWLYViOm.js} +4 -4
- package/dist/{DesignReferenceSidebar-DgndMB4H.js → DesignReferenceSidebar-CK_xTLh2.js} +11 -11
- package/dist/{FieldRow-0-UbQR4a.js → FieldRow-BWt7ECqo.js} +1 -1
- package/dist/{IssuesPanel-DmJTb_SZ.js → IssuesPanel-DIbJ_jaa.js} +8 -8
- package/dist/{LoadingTrack-5KBr5cE8.js → LoadingTrack-SQXoZVf2.js} +1 -1
- package/dist/{MergeTagModeToggle-CZnJ2Gz_.js → MergeTagModeToggle-DeI65T5k.js} +6 -6
- package/dist/{MergeTagSuggestion-DyUcY_9e.js → MergeTagSuggestion-CoCuzEmW.js} +4 -4
- package/dist/{ParagraphEditor-CnB4kXle.js → ParagraphEditor-Dr-u72hu.js} +26 -26
- package/dist/{RestoreVersionDialog-BpOphPiE.js → RestoreVersionDialog-6sBYYt9f.js} +5 -5
- package/dist/{RichTextEditorContent-ChPNgHQ_.js → RichTextEditorContent-DKLVe6Io.js} +8 -8
- package/dist/{SaveBlockDialog-CKw4Va6j.js → SaveBlockDialog-DABN4-Jf.js} +25 -25
- package/dist/SavedBlocksBrowserModal-BoylzTEq.js +322 -0
- package/dist/{SavedBlocksPanels-ChV8bOgM.js → SavedBlocksPanels-2np4Yu1H.js} +2 -2
- package/dist/{SavedBlocksPickBar-BbEeD5RB.js → SavedBlocksPickBar-BM7aTSK2.js} +4 -4
- package/dist/{TemplateScoringPanel-De8BZpRU.js → TemplateScoringPanel-CzWoSM1V.js} +15 -15
- package/dist/{TestEmailModal-4d2pXeHU.js → TestEmailModal-Cb0n7Dhj.js} +11 -11
- package/dist/{TestEmailPanel-DEgCesNP.js → TestEmailPanel-52HjvuU7.js} +2 -2
- package/dist/{TitleEditor-89pmKLVY.js → TitleEditor-_taBpBfB.js} +13 -13
- package/dist/{TplModal-DswccJRJ.js → TplModal-CEYnwBBk.js} +5 -5
- package/dist/VersionHistoryMenu-CsGlLSO8.js +157 -0
- package/dist/{VersionHistoryPanels-CFLHDH9P.js → VersionHistoryPanels-DPmYk00L.js} +2 -2
- package/dist/{VersionPreviewBanner-DhG5RcRt.js → VersionPreviewBanner-VGJbEoXj.js} +3 -3
- package/dist/{blockTypeIcons-dpKs5GQc.js → blockTypeIcons-IhdBwbxp.js} +2 -2
- package/dist/bundle-stats.json +7 -7
- package/dist/{ca-DZSrLNXK.js → ca-C0hfqt4U.js} +5 -0
- package/dist/cdn/chunks/{AiChatSidebar-DmYDRmvX.js → AiChatSidebar-6S5LPyRW.js} +9 -9
- package/dist/cdn/chunks/{AiChatSidebar-DmYDRmvX.js.map → AiChatSidebar-6S5LPyRW.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-C0Rt08qb.js → AiFeatureMenu-BHCtjIfV.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-C0Rt08qb.js.map → AiFeatureMenu-BHCtjIfV.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-BBog2CMy.js → BlockIssueBadge-2-os120N.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-BBog2CMy.js.map → BlockIssueBadge-2-os120N.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-DNBjBKBI.js → BlockPreviewCanvas-CYNs-Yn-.js} +21 -20
- package/dist/cdn/chunks/BlockPreviewCanvas-CYNs-Yn-.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-Ditfv7y9.js → CloudHeaderExtras-DrbFk6Fy.js} +5 -5
- package/dist/cdn/chunks/{CloudHeaderExtras-Ditfv7y9.js.map → CloudHeaderExtras-DrbFk6Fy.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-C4U5bJO6.js → CloudPanels-CpzYrAPQ.js} +7 -7
- package/dist/cdn/chunks/{CloudPanels-C4U5bJO6.js.map → CloudPanels-CpzYrAPQ.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-B79JR9NH.js → CollaboratorBar-VMTCYn_z.js} +5 -5
- package/dist/cdn/chunks/{CollaboratorBar-B79JR9NH.js.map → CollaboratorBar-VMTCYn_z.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-C-ZiwUV3.js → ColorPicker-B0l_UF8G.js} +7 -7
- package/dist/cdn/chunks/{ColorPicker-C-ZiwUV3.js.map → ColorPicker-B0l_UF8G.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-D1Ke8PbO.js → CommentsPanel-CXMMdLrO.js} +3 -3
- package/dist/cdn/chunks/{CommentsPanel-D1Ke8PbO.js.map → CommentsPanel-CXMMdLrO.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-B-UyhIZN.js → CommentsSidebar-CGkhAJUW.js} +5 -5
- package/dist/cdn/chunks/{CommentsSidebar-B-UyhIZN.js.map → CommentsSidebar-CGkhAJUW.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-CWeJBC0L.js → CountdownBlock-CPe1ulzk.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-CWeJBC0L.js.map → CountdownBlock-CPe1ulzk.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-DyOHOu44.js → CountdownToolbar-D5xyNd5V.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-DyOHOu44.js.map → CountdownToolbar-D5xyNd5V.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-BCCX1FtP.js → DesignReferenceSidebar-D1NH1WRv.js} +7 -7
- package/dist/cdn/chunks/{DesignReferenceSidebar-BCCX1FtP.js.map → DesignReferenceSidebar-D1NH1WRv.js.map} +1 -1
- package/dist/cdn/chunks/{FieldRow-CbcpsxZ4.js → FieldRow-D9OJhYeb.js} +2 -2
- package/dist/cdn/chunks/{FieldRow-CbcpsxZ4.js.map → FieldRow-D9OJhYeb.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-3vD3ImHF.js → IssuesPanel-07SBSZVN.js} +6 -6
- package/dist/cdn/chunks/{IssuesPanel-3vD3ImHF.js.map → IssuesPanel-07SBSZVN.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-Cz1sT0wP.js → LoadingTrack-Cm3TDKb3.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-Cz1sT0wP.js.map → LoadingTrack-Cm3TDKb3.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BU0SDRow.js → MergeTagModeToggle-Bg8eO5nc.js} +6 -6
- package/dist/cdn/chunks/{MergeTagModeToggle-BU0SDRow.js.map → MergeTagModeToggle-Bg8eO5nc.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-B9vL0VaG.js → MergeTagSuggestion-t8Uj00Er.js} +3 -3
- package/dist/cdn/chunks/{MergeTagSuggestion-B9vL0VaG.js.map → MergeTagSuggestion-t8Uj00Er.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-CSwIuvoF.js → ParagraphEditor-x2LTi6DN.js} +23 -23
- package/dist/cdn/chunks/{ParagraphEditor-CSwIuvoF.js.map → ParagraphEditor-x2LTi6DN.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-Bvg2WvJN.js → RestoreVersionDialog--SjTV0_4.js} +5 -5
- package/dist/cdn/chunks/{RestoreVersionDialog-Bvg2WvJN.js.map → RestoreVersionDialog--SjTV0_4.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DdkmEEpK.js → RichTextEditorContent-CzdMJ1c9.js} +7 -7
- package/dist/cdn/chunks/{RichTextEditorContent-DdkmEEpK.js.map → RichTextEditorContent-CzdMJ1c9.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-D-QO3LuR.js → SaveBlockDialog-CS1lqdsQ.js} +9 -9
- package/dist/cdn/chunks/{SaveBlockDialog-D-QO3LuR.js.map → SaveBlockDialog-CS1lqdsQ.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BRdN56r7.js → SavedBlocksBrowserModal-D6nDZ4rq.js} +110 -111
- package/dist/cdn/chunks/SavedBlocksBrowserModal-D6nDZ4rq.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksPanels-D9GTlLgb.js → SavedBlocksPanels-DdkwvYRR.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-D9GTlLgb.js.map → SavedBlocksPanels-DdkwvYRR.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DSRcUeIo.js → SavedBlocksPickBar-BLQr_6WM.js} +5 -5
- package/dist/cdn/chunks/{SavedBlocksPickBar-DSRcUeIo.js.map → SavedBlocksPickBar-BLQr_6WM.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-Dy5oOVhB.js → TemplateScoringPanel-CDC-JC6C.js} +50 -50
- package/dist/cdn/chunks/{TemplateScoringPanel-Dy5oOVhB.js.map → TemplateScoringPanel-CDC-JC6C.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-B4L2lmIV.js → TestEmailModal-B2LcU11Y.js} +10 -10
- package/dist/cdn/chunks/{TestEmailModal-B4L2lmIV.js.map → TestEmailModal-B2LcU11Y.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-cTPgEf-D.js → TestEmailPanel-ByqDSx8B.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-cTPgEf-D.js.map → TestEmailPanel-ByqDSx8B.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BKjL2Zs1.js → TitleEditor-DCoulgN8.js} +13 -13
- package/dist/cdn/chunks/{TitleEditor-BKjL2Zs1.js.map → TitleEditor-DCoulgN8.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-DxrgNmt9.js → TplModal-CxQDl-tN.js} +5 -5
- package/dist/cdn/chunks/{TplModal-DxrgNmt9.js.map → TplModal-CxQDl-tN.js.map} +1 -1
- package/dist/cdn/chunks/VersionHistoryMenu-BOy8aMB6.js +150 -0
- package/dist/cdn/chunks/VersionHistoryMenu-BOy8aMB6.js.map +1 -0
- package/dist/cdn/chunks/{VersionHistoryPanels-CxIFBJsz.js → VersionHistoryPanels-BPLhzW9c.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-CxIFBJsz.js.map → VersionHistoryPanels-BPLhzW9c.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-CdsZvVYF.js → VersionPreviewBanner-CYC9qP2i.js} +4 -4
- package/dist/cdn/chunks/{VersionPreviewBanner-CdsZvVYF.js.map → VersionPreviewBanner-CYC9qP2i.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-DXPd_hd1.js → blockTypeIcons-ZEzEpCti.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-DXPd_hd1.js.map → blockTypeIcons-ZEzEpCti.js.map} +1 -1
- package/dist/cdn/chunks/{ca-DZSrLNXK.js → ca-C0hfqt4U.js} +6 -1
- package/dist/cdn/chunks/ca-C0hfqt4U.js.map +1 -0
- package/dist/cdn/chunks/{cloud-CITqEHEc.js → cloud-BP5-6__d.js} +4 -4
- package/dist/cdn/chunks/{cloud-CITqEHEc.js.map → cloud-BP5-6__d.js.map} +1 -1
- package/dist/cdn/chunks/{createCloudRuntime-DwIXvrb0.js → createCloudRuntime-CbSqoOba.js} +10 -10
- package/dist/cdn/chunks/{createCloudRuntime-DwIXvrb0.js.map → createCloudRuntime-CbSqoOba.js.map} +1 -1
- package/dist/{de-DbayqpK-.js → cdn/chunks/de-C6J2Iae8.js} +7 -0
- package/dist/cdn/chunks/de-C6J2Iae8.js.map +1 -0
- package/dist/cdn/chunks/{dist-CgR3inPR.js → dist-BW6Y49zE.js} +2 -2
- package/dist/cdn/chunks/{dist-CgR3inPR.js.map → dist-BW6Y49zE.js.map} +1 -1
- package/dist/cdn/chunks/{dist-El3fQnfk.js → dist-CAFTQ6Y2.js} +5 -5
- package/dist/cdn/chunks/{dist-El3fQnfk.js.map → dist-CAFTQ6Y2.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-D2vo-aQI.js → draggable-kbOhCgnk.js} +12 -13
- package/dist/cdn/chunks/{draggable-D2vo-aQI.js.map → draggable-kbOhCgnk.js.map} +1 -1
- package/dist/cdn/chunks/{en-l0ib5X0f.js → en-BaUYOQi8.js} +6 -1
- package/dist/cdn/chunks/en-BaUYOQi8.js.map +1 -0
- package/dist/cdn/chunks/en-mEKGL1PX.js +2 -0
- package/dist/cdn/chunks/{es-CMQ-5PJP.js → es-CKDYfJYn.js} +6 -1
- package/dist/cdn/chunks/es-CKDYfJYn.js.map +1 -0
- package/dist/cdn/chunks/{extensions-C87Z6_23.js → extensions-CeP0iOPC.js} +7 -7
- package/dist/cdn/chunks/{extensions-C87Z6_23.js.map → extensions-CeP0iOPC.js.map} +1 -1
- package/dist/cdn/chunks/formatAbsoluteDateTime-DMmop3C-.js +15 -0
- package/dist/cdn/chunks/formatAbsoluteDateTime-DMmop3C-.js.map +1 -0
- package/dist/{fr-DNXmZWAq.js → cdn/chunks/fr-L8DR73mK.js} +7 -0
- package/dist/cdn/chunks/fr-L8DR73mK.js.map +1 -0
- package/dist/cdn/chunks/{icons-ciivb5BS.js → icons-SP5Itd-A.js} +9 -9
- package/dist/cdn/chunks/icons-SP5Itd-A.js.map +1 -0
- package/dist/cdn/chunks/keys-O8clwJ41.js +12 -0
- package/dist/cdn/chunks/keys-O8clwJ41.js.map +1 -0
- package/dist/cdn/chunks/{liquid.browser-BPvKXNfO.js → liquid.browser-BypTT2oc.js} +4 -4
- package/dist/cdn/chunks/{liquid.browser-BPvKXNfO.js.map → liquid.browser-BypTT2oc.js.map} +1 -1
- package/dist/{nl-BylRRHYJ.js → cdn/chunks/nl-GDWeuX18.js} +7 -0
- package/dist/cdn/chunks/nl-GDWeuX18.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-DyCIgmqJ.js → preRenderCustomBlocks-LFB-e-0m.js} +2 -2
- package/dist/cdn/chunks/{preRenderCustomBlocks-DyCIgmqJ.js.map → preRenderCustomBlocks-LFB-e-0m.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-BVoJhpie.js → pt-BR-B1AVVhWj.js} +6 -1
- package/dist/cdn/chunks/pt-BR-B1AVVhWj.js.map +1 -0
- package/dist/cdn/chunks/{src-6J-yyZoD.js → src-BM3f9I7t.js} +268 -268
- package/dist/cdn/chunks/{src-6J-yyZoD.js.map → src-BM3f9I7t.js.map} +1 -1
- package/dist/cdn/chunks/{src-Cf0ohOog.js → src-C1lP5sIe.js} +19 -19
- package/dist/cdn/chunks/src-C1lP5sIe.js.map +1 -0
- package/dist/cdn/chunks/{src-BD60gqPW.js → src-CLoCCDfs.js} +26 -26
- package/dist/cdn/chunks/{src-BD60gqPW.js.map → src-CLoCCDfs.js.map} +1 -1
- package/dist/cdn/chunks/{src-Bid3cmHa.js → src-Cxl-9O-L.js} +699 -684
- package/dist/cdn/chunks/src-Cxl-9O-L.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-Ey0FpaX7.js → tiptap-Epe8m3Vo.js} +2636 -2629
- package/dist/cdn/chunks/tiptap-Epe8m3Vo.js.map +1 -0
- package/dist/cdn/chunks/{useAliveFlag-DrXxPV8V.js → useAliveFlag-CT9gjvO_.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-DrXxPV8V.js.map → useAliveFlag-CT9gjvO_.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-D0AoLV0a.js → useCloudI18n-ZBEJvkf4.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-D0AoLV0a.js.map → useCloudI18n-ZBEJvkf4.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-CTNB2Mkl.js → useEditorCore-CZxGbZmY.js} +591 -413
- package/dist/cdn/chunks/useEditorCore-CZxGbZmY.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-DVV-EsNI.js +10 -0
- package/dist/cdn/chunks/{useEditorRoot-BFGRBGts.js.map → useEditorRoot-DVV-EsNI.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-DIhawILp.js → useI18n-DCbvHv6W.js} +3 -3
- package/dist/cdn/chunks/{useI18n-DIhawILp.js.map → useI18n-DCbvHv6W.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-lWo7So18.js → useMergeTag-CbuagYNK.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-lWo7So18.js.map → useMergeTag-CbuagYNK.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-DkiTLnBm.js → usePopoverPosition-Ozg5iU3y.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-DkiTLnBm.js.map → usePopoverPosition-Ozg5iU3y.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-KcSAuXKz.js → useScrollToBlock-CrUCYsIc.js} +3 -3
- package/dist/cdn/chunks/{useScrollToBlock-KcSAuXKz.js.map → useScrollToBlock-CrUCYsIc.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +1191 -1181
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-80E6ZGin.js → check-JK8Uacq0.js} +1 -1
- package/dist/{chevron-down-BmkLsn2c.js → chevron-down-a-fb_Ijn.js} +1 -1
- package/dist/{chevron-up-DJSAzlUU.js → chevron-up-x4l0et_Y.js} +1 -1
- package/dist/{circle-alert-BsCfZryY.js → circle-alert-CJDW5LZo.js} +1 -1
- package/dist/{clock-BcLIngSK.js → clock-BW6rXk2f.js} +1 -1
- package/dist/{cloud-DwJ8ebNl.js → cloud-BMzRKCbk.js} +3 -3
- package/dist/{createCloudRuntime-CdXQdl34.js → createCloudRuntime-j6a9Z-vL.js} +8 -8
- package/dist/{createLucideIcon-eeetEgBb.js → createLucideIcon-Bvw1Zx56.js} +3 -3
- package/dist/{cdn/chunks/de-DbayqpK-.js → de-C6J2Iae8.js} +5 -2
- package/dist/{dist-BFcAowKZ.js → dist-BxFbxpgW.js} +5 -5
- package/dist/{dist-Do83S47T.js → dist-ByT5fgKq.js} +2 -2
- package/dist/{dist-CQ9T1yi-.js → dist-C1tsW_99.js} +2 -2
- package/dist/{dist-Cd0LvUlh.js → dist-CtF9STPS.js} +2 -2
- package/dist/{dist-CvW1nNzy.js → dist-CtMXAH7a.js} +2 -2
- package/dist/dist-D08oVYhr.js +5 -0
- package/dist/{dist-prgdllHG.js → dist-D7WY8VPq.js} +2 -2
- package/dist/{dist-D8MekYFl.js → dist-DC-3T0ED.js} +2 -2
- package/dist/{dist-BC1y_U2m.js → dist-DL9334yz.js} +1418 -1411
- package/dist/{dist-BkAVGSRr.js → dist-DkcA6epL.js} +7 -7
- package/dist/dist-DzdeVn-W.js +5 -0
- package/dist/{dist-CzVIVbSa.js → dist-PL6vP4SC.js} +61 -61
- package/dist/{dist-CuuPnIMy.js → dist-dNiknO7j.js} +4 -4
- package/dist/{dist-CWC5t5J3.js → dist-f7HXo6j6.js} +2 -2
- package/dist/{dist-BUpBA58N.js → dist-heatwAdo.js} +1 -1
- package/dist/{en-l0ib5X0f.js → en-BaUYOQi8.js} +5 -0
- package/dist/{es-CMQ-5PJP.js → es-CKDYfJYn.js} +5 -0
- package/dist/{extensions-BYImwYeO.js → extensions-5xeZR9U9.js} +21 -21
- package/dist/formatAbsoluteDateTime-DMmop3C-.js +13 -0
- package/dist/{cdn/chunks/fr-DNXmZWAq.js → fr-L8DR73mK.js} +5 -2
- package/dist/{image-up-BfxY85ar.js → image-up-CuzFc1mu.js} +1 -1
- package/dist/index.d.ts +41 -0
- package/dist/{info-LX4QFBr6.js → info-DybAwcA3.js} +1 -1
- package/dist/keys-BJJ4hJ4z.js +10 -0
- package/dist/{liquid.browser-CJgDDvQz.js → liquid.browser-wPG0n4Cs.js} +3 -3
- package/dist/{loader-circle-Bwima0v8.js → loader-circle-t-SVgmJ3.js} +1 -1
- package/dist/{message-circle-Box-mf2k.js → message-circle-DtwKrlhN.js} +1 -1
- package/dist/{cdn/chunks/nl-BylRRHYJ.js → nl-GDWeuX18.js} +5 -2
- package/dist/{pencil-BM9gSq_J.js → pencil-2qhC-Y4q.js} +1 -1
- package/dist/{preRenderCustomBlocks-2KyBJocY.js → preRenderCustomBlocks-CSIF-HyJ.js} +1 -1
- package/dist/{pt-BR-BVoJhpie.js → pt-BR-B1AVVhWj.js} +5 -0
- package/dist/{refresh-cw-BuzFX0wH.js → refresh-cw-C8SBuPdg.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-Co_SPqAz.js → runtime-dom.esm-bundler-BuG03jBM.js} +3 -3
- package/dist/{scan-line-Duq1WXoG.js → scan-line-E7w4yQyv.js} +1 -1
- package/dist/{send-DZ4nOnIA.js → send-BoqJliF6.js} +1 -1
- package/dist/{shield-check-Cz4BRYdv.js → shield-check-D0dMaHtE.js} +1 -1
- package/dist/{sparkles-DP8RqOeL.js → sparkles-Dy2BJjiX.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +1031 -1022
- package/dist/{text-align-start-D7tXhjUP.js → text-align-start-DrxjxvIy.js} +1 -1
- package/dist/{trash-2-BS7lZeyb.js → trash-rYMzzHZd.js} +2 -2
- package/dist/{triangle-alert-Cx4mQGjx.js → triangle-alert-DxnFj4-B.js} +1 -1
- package/dist/{upload-L8tLVM10.js → upload-DZu1adQz.js} +1 -1
- package/dist/{useAliveFlag-AFbwfHlJ.js → useAliveFlag-PVmp95MT.js} +1 -1
- package/dist/{useCloudI18n-BA69BpQ_.js → useCloudI18n-DaKcDMDz.js} +2 -2
- package/dist/{useEditorCore-CtR46sbJ.js → useEditorCore-BWrxHVKW.js} +1246 -1067
- package/dist/{useEditorRoot-Cdo8Vhxa.js → useEditorRoot-E-oxHaEI.js} +2 -2
- package/dist/{useI18n-B135ASaG.js → useI18n-DUVIAju4.js} +2 -2
- package/dist/{useMergeTag-Cx36rtrt.js → useMergeTag-CuZZeiSE.js} +3 -3
- package/dist/{usePopoverPosition-DAOHr_iM.js → usePopoverPosition-APlWgXoQ.js} +2 -2
- package/dist/{useScrollToBlock-tndC8vKo.js → useScrollToBlock--AzCOzlg.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-BhOUdXMi.js → vue.runtime.esm-bundler-D9JUcKrV.js} +4 -4
- package/dist/{x-ChIQ7HwK.js → x-DJOd1hS4.js} +1 -1
- package/package.json +23 -23
- package/dist/SavedBlocksBrowserModal-SST-7EMK.js +0 -323
- package/dist/VersionHistoryMenu-DBxSJR1k.js +0 -155
- package/dist/cdn/chunks/BlockPreviewCanvas-DNBjBKBI.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-BRdN56r7.js.map +0 -1
- package/dist/cdn/chunks/VersionHistoryMenu-CMqZFUHE.js +0 -148
- package/dist/cdn/chunks/VersionHistoryMenu-CMqZFUHE.js.map +0 -1
- package/dist/cdn/chunks/ca-DZSrLNXK.js.map +0 -1
- package/dist/cdn/chunks/de-DbayqpK-.js.map +0 -1
- package/dist/cdn/chunks/en-BzFt4b80.js +0 -2
- package/dist/cdn/chunks/en-l0ib5X0f.js.map +0 -1
- package/dist/cdn/chunks/es-CMQ-5PJP.js.map +0 -1
- package/dist/cdn/chunks/fr-DNXmZWAq.js.map +0 -1
- package/dist/cdn/chunks/icons-ciivb5BS.js.map +0 -1
- package/dist/cdn/chunks/keys-BJ770Mwm.js +0 -12
- package/dist/cdn/chunks/keys-BJ770Mwm.js.map +0 -1
- package/dist/cdn/chunks/nl-BylRRHYJ.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-BVoJhpie.js.map +0 -1
- package/dist/cdn/chunks/src-Bid3cmHa.js.map +0 -1
- package/dist/cdn/chunks/src-Cf0ohOog.js.map +0 -1
- package/dist/cdn/chunks/tiptap-Ey0FpaX7.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-CTNB2Mkl.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-BFGRBGts.js +0 -10
- package/dist/dist-BQqIUwvB.js +0 -5
- package/dist/dist-waDcdb1l.js +0 -5
- package/dist/keys-BJtoezGU.js +0 -10
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { B as e, D as t, Dt as n, E as r, L as i, Ot as a, P as o, S as s, X as c, c as l, d as u, g as d, h as f, j as p, k as m, kt as h, l as g, r as _, rt as v, s as y, u as b, v as x, z as S } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { a as C, c as w, s as T } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as N } from "./chevron-up-
|
|
8
|
-
import { t as P } from "./loader-circle-
|
|
1
|
+
import { B as e, D as t, Dt as n, E as r, L as i, Ot as a, P as o, S as s, X as c, c as l, d as u, g as d, h as f, j as p, k as m, kt as h, l as g, r as _, rt as v, s as y, u as b, v as x, z as S } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
|
|
2
|
+
import { a as C, c as w, s as T } from "./runtime-dom.esm-bundler-BuG03jBM.js";
|
|
3
|
+
import { N as E, Y as ee, c as D } from "./useEditorCore-BWrxHVKW.js";
|
|
4
|
+
import { K as O, L as k, f as A, h as j } from "./keys-BJJ4hJ4z.js";
|
|
5
|
+
import { t as M } from "./useI18n-DUVIAju4.js";
|
|
6
|
+
import { t as te } from "./chevron-down-a-fb_Ijn.js";
|
|
7
|
+
import { t as N } from "./chevron-up-x4l0et_Y.js";
|
|
8
|
+
import { t as P } from "./loader-circle-t-SVgmJ3.js";
|
|
9
9
|
import { v as F } from "./styleConstants-C_YAPdQS.js";
|
|
10
10
|
import { n as I } from "./emailFrameWidth-BmFCN2dp.js";
|
|
11
|
-
import { t as L } from "./TplModal-
|
|
12
|
-
import { t as R } from "./BlockPreviewCanvas-
|
|
11
|
+
import { t as L } from "./TplModal-CEYnwBBk.js";
|
|
12
|
+
import { t as R } from "./BlockPreviewCanvas-mZIr9mY2.js";
|
|
13
13
|
//#region src/components/SavedBlockPreviewRow.vue?vue&type=script&setup=true&lang.ts
|
|
14
14
|
var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relative tpl:min-w-0 tpl:flex-1" }, H = {
|
|
15
15
|
key: 0,
|
|
@@ -26,21 +26,21 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
26
26
|
},
|
|
27
27
|
emits: ["move"],
|
|
28
28
|
setup(e, { emit: n }) {
|
|
29
|
-
let i = e, p = n, { t: _, format: x } =
|
|
29
|
+
let i = e, p = n, { t: _, format: x } = M(), S = s(A, []), C = s(j, null), D = y(() => I(C?.content.value.settings)), O = c(null), k = c(null), P = c(1), F = c(null), L = c(!1), G = null, K = y(() => F.value !== null && F.value > W), q = y(() => F.value === null ? null : L.value || !K.value ? F.value : W);
|
|
30
30
|
function J() {
|
|
31
|
-
let e =
|
|
31
|
+
let e = O.value, t = k.value;
|
|
32
32
|
if (!e || !t) return;
|
|
33
33
|
let n = e.clientWidth;
|
|
34
34
|
if (n <= 0) return;
|
|
35
|
-
let r = Math.min(1, n /
|
|
35
|
+
let r = Math.min(1, n / D.value);
|
|
36
36
|
P.value = r, F.value = t.offsetHeight * r;
|
|
37
37
|
}
|
|
38
38
|
t(() => {
|
|
39
|
-
J(), !(typeof ResizeObserver > "u") && (G = new ResizeObserver(() => J()),
|
|
39
|
+
J(), !(typeof ResizeObserver > "u") && (G = new ResizeObserver(() => J()), O.value && G.observe(O.value), k.value && G.observe(k.value));
|
|
40
40
|
}), r(() => {
|
|
41
41
|
G?.disconnect(), G = null;
|
|
42
42
|
});
|
|
43
|
-
let Y = y(() =>
|
|
43
|
+
let Y = y(() => ee(i.block, _, S)), X = y(() => x(_.savedBlocks.reorderHandle, {
|
|
44
44
|
block: Y.value,
|
|
45
45
|
position: i.position,
|
|
46
46
|
total: i.total
|
|
@@ -57,20 +57,20 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
57
57
|
"aria-label": X.value,
|
|
58
58
|
title: v(_).savedBlocks.reorderHint,
|
|
59
59
|
onKeydown: [n[0] ||= T(w((e) => p("move", -1), ["prevent"]), ["up"]), n[1] ||= T(w((e) => p("move", 1), ["prevent"]), ["down"])]
|
|
60
|
-
}, [d(v(
|
|
60
|
+
}, [d(v(E), {
|
|
61
61
|
size: 14,
|
|
62
62
|
"stroke-width": 1.5
|
|
63
63
|
})], 40, B), l("div", V, [
|
|
64
64
|
l("div", {
|
|
65
65
|
ref_key: "frameEl",
|
|
66
|
-
ref:
|
|
66
|
+
ref: O,
|
|
67
67
|
class: "tpl:overflow-hidden",
|
|
68
68
|
style: a({ height: q.value === null ? void 0 : `${q.value}px` })
|
|
69
69
|
}, [l("div", {
|
|
70
70
|
ref_key: "contentEl",
|
|
71
|
-
ref:
|
|
71
|
+
ref: k,
|
|
72
72
|
style: a({
|
|
73
|
-
width: `${
|
|
73
|
+
width: `${D.value}px`,
|
|
74
74
|
transform: `scale(${P.value})`,
|
|
75
75
|
transformOrigin: "top left"
|
|
76
76
|
})
|
|
@@ -84,7 +84,7 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
84
84
|
"aria-label": Z.value,
|
|
85
85
|
"aria-expanded": L.value,
|
|
86
86
|
onClick: n[2] ||= (e) => L.value = !L.value
|
|
87
|
-
}, [(m(), g(o(L.value ? v(N) : v(
|
|
87
|
+
}, [(m(), g(o(L.value ? v(N) : v(te)), {
|
|
88
88
|
size: 11,
|
|
89
89
|
"stroke-width": 2
|
|
90
90
|
})), f(" " + h(L.value ? v(_).savedBlocks.collapse : v(_).savedBlocks.expand), 1)], 8, U)) : b("", !0)
|
|
@@ -122,7 +122,7 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
122
122
|
},
|
|
123
123
|
emits: ["close", "saved"],
|
|
124
124
|
setup(t, { emit: r }) {
|
|
125
|
-
let a = t, o = r, { t: x, format: w } =
|
|
125
|
+
let a = t, o = r, { t: x, format: w } = M(), T = O(j, "SaveBlockDialog"), E = O(k, "SaveBlockDialog"), te = s(A, []), N = c(""), I = c(""), R = c(!1), z = c(null), B = c(""), V = c([]), H = y(() => {
|
|
126
126
|
let e = new Map(T.content.value.blocks.map((e) => [e.id, e]));
|
|
127
127
|
return V.value.map((t) => e.get(t)).filter((e) => e !== void 0);
|
|
128
128
|
}), U = y({
|
|
@@ -143,7 +143,7 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
143
143
|
}) : "";
|
|
144
144
|
}
|
|
145
145
|
function Q(e) {
|
|
146
|
-
return
|
|
146
|
+
return ee(e, x, te);
|
|
147
147
|
}
|
|
148
148
|
let ge = y(() => H.value.map(Q).join(", "));
|
|
149
149
|
i(() => a.visible, (e) => {
|
|
@@ -156,7 +156,7 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
156
156
|
if (e.length !== 0) {
|
|
157
157
|
R.value = !0, z.value = null;
|
|
158
158
|
try {
|
|
159
|
-
await
|
|
159
|
+
await E.create(N.value.trim(), e, I.value.trim() || void 0), o("saved"), o("close");
|
|
160
160
|
} catch (e) {
|
|
161
161
|
z.value = e.message;
|
|
162
162
|
} finally {
|
|
@@ -207,14 +207,14 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
207
207
|
class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:shadow-[var(--tpl-shadow-sm)] tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
208
208
|
disabled: R.value
|
|
209
209
|
}, null, 8, re), [[C, I.value]]),
|
|
210
|
-
l("datalist", ie, [(m(!0), u(_, null, p(v(
|
|
210
|
+
l("datalist", ie, [(m(!0), u(_, null, p(v(E).categories.value, (e) => (m(), u("option", {
|
|
211
211
|
key: e,
|
|
212
212
|
value: e
|
|
213
213
|
}, null, 8, ae))), 128))])
|
|
214
214
|
]),
|
|
215
215
|
l("p", oe, [f(h(v(w)(v(x).savedBlocks.savingCount, { count: H.value.length })) + " ", 1), l("span", se, h(ge.value), 1)]),
|
|
216
216
|
H.value.length > 1 ? (m(), u("p", ce, h(v(x).savedBlocks.reorderHint), 1)) : b("", !0),
|
|
217
|
-
d(v(
|
|
217
|
+
d(v(D), {
|
|
218
218
|
modelValue: U.value,
|
|
219
219
|
"onUpdate:modelValue": i[2] ||= (e) => U.value = e,
|
|
220
220
|
"data-testid": "saved-blocks-reorder-list",
|
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
import { B as e, Dt as t, L as n, Ot as r, P as i, S as a, T as ee, X as o, _ as te, c as s, d as c, g as l, j as u, k as d, kt as f, l as p, r as m, rt as h, s as g, u as _, v, z as ne } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
|
|
2
|
+
import { a as y, c as b, i as x, s as S } from "./runtime-dom.esm-bundler-BuG03jBM.js";
|
|
3
|
+
import "./useEditorCore-BWrxHVKW.js";
|
|
4
|
+
import { K as C, L as re, U as ie, h as ae } from "./keys-BJJ4hJ4z.js";
|
|
5
|
+
import { t as oe } from "./useI18n-DUVIAju4.js";
|
|
6
|
+
import { n as se, r as w, t as T } from "./blockTypeIcons-IhdBwbxp.js";
|
|
7
|
+
import { t as ce } from "./pencil-2qhC-Y4q.js";
|
|
8
|
+
import { t as le } from "./trash-rYMzzHZd.js";
|
|
9
|
+
import { t as ue } from "./x-DJOd1hS4.js";
|
|
10
|
+
import { v as de } from "./styleConstants-C_YAPdQS.js";
|
|
11
|
+
import { t as fe } from "./formatAbsoluteDateTime-DMmop3C-.js";
|
|
12
|
+
import { t as pe } from "./formatRelativeTime-CtUU-QZ8.js";
|
|
13
|
+
import { t as me } from "./TplModal-CEYnwBBk.js";
|
|
14
|
+
//#region src/components/SavedBlocksBrowserModal.vue?vue&type=script&setup=true&lang.ts
|
|
15
|
+
var he = {
|
|
16
|
+
role: "dialog",
|
|
17
|
+
"aria-modal": "true",
|
|
18
|
+
"data-testid": "saved-blocks-browser",
|
|
19
|
+
"aria-labelledby": "tpl-saved-blocks-browser-title",
|
|
20
|
+
class: "tpl-scale-in tpl:flex tpl:max-h-[90%] tpl:w-[1000px] tpl:max-w-full tpl:flex-col tpl:rounded-[var(--tpl-radius-lg)]",
|
|
21
|
+
style: {
|
|
22
|
+
"background-color": "var(--tpl-bg-elevated)",
|
|
23
|
+
"box-shadow": "var(--tpl-shadow-xl)"
|
|
24
|
+
}
|
|
25
|
+
}, ge = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:px-5 tpl:py-4 tpl:border-[var(--tpl-border)]" }, _e = {
|
|
26
|
+
id: "tpl-saved-blocks-browser-title",
|
|
27
|
+
class: "tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
28
|
+
}, ve = ["aria-label"], ye = { class: "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:overflow-hidden" }, be = { class: "tpl:flex tpl:w-[300px] tpl:shrink-0 tpl:flex-col tpl:overflow-hidden" }, xe = { class: "tpl:flex tpl:flex-col tpl:gap-2 tpl:px-4 tpl:pt-4 tpl:pb-3" }, Se = { class: "tpl:relative" }, Ce = ["placeholder", "disabled"], we = ["aria-label"], Te = { value: "" }, E = ["value"], D = { id: "tpl-saved-block-browser-categories" }, O = ["value"], Ee = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:px-4 tpl:pb-4" }, De = ["aria-label"], Oe = {
|
|
29
|
+
key: 1,
|
|
30
|
+
class: "tpl:flex tpl:flex-col tpl:gap-1"
|
|
31
|
+
}, ke = ["onFocusout"], Ae = ["aria-label", "onKeydown"], je = [
|
|
32
|
+
"aria-label",
|
|
33
|
+
"placeholder",
|
|
34
|
+
"onKeydown"
|
|
35
|
+
], Me = ["aria-pressed", "onClick"], Ne = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Pe = { class: "tpl:flex-1 tpl:truncate tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Fe = { class: "tpl:shrink-0 tpl:rounded-full tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]" }, Ie = {
|
|
36
|
+
key: 0,
|
|
37
|
+
class: "tpl:mt-1 tpl:flex tpl:items-center"
|
|
38
|
+
}, Le = {
|
|
39
|
+
"data-testid": "saved-block-category",
|
|
40
|
+
class: "tpl:max-w-full tpl:truncate tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]"
|
|
41
|
+
}, Re = { class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1" }, ze = {
|
|
42
|
+
key: 0,
|
|
43
|
+
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]"
|
|
44
|
+
}, Be = ["title"], Ve = ["aria-label", "onClick"], He = [
|
|
45
|
+
"aria-label",
|
|
46
|
+
"title",
|
|
47
|
+
"onClick"
|
|
48
|
+
], Ue = [
|
|
49
|
+
"aria-label",
|
|
50
|
+
"title",
|
|
51
|
+
"onClick"
|
|
52
|
+
], We = {
|
|
53
|
+
key: 2,
|
|
54
|
+
class: "tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:py-12"
|
|
55
|
+
}, Ge = {
|
|
56
|
+
key: 0,
|
|
57
|
+
class: "tpl:mt-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
58
|
+
}, Ke = { class: "tpl:mt-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, qe = { class: "tpl:mt-1 tpl:max-w-[220px] tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, Je = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-hidden tpl:border-l tpl:border-[var(--tpl-border)]" }, Ye = {
|
|
59
|
+
key: 0,
|
|
60
|
+
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-hidden"
|
|
61
|
+
}, Xe = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Ze = {
|
|
62
|
+
key: 1,
|
|
63
|
+
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:items-center tpl:justify-center tpl:px-4"
|
|
64
|
+
}, Qe = { class: "tpl:mt-2 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, $e = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:px-5 tpl:py-3 tpl:border-[var(--tpl-border)]" }, et = { class: "tpl:flex tpl:items-center tpl:gap-2" }, tt = { class: "tpl:shrink-0 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, nt = ["value"], rt = { class: "tpl:flex tpl:gap-2" }, it = ["disabled"], k = /* @__PURE__ */ v({
|
|
65
|
+
__name: "SavedBlocksBrowserModal",
|
|
66
|
+
props: { visible: { type: Boolean } },
|
|
67
|
+
emits: ["close", "insert"],
|
|
68
|
+
setup(v, { emit: k }) {
|
|
69
|
+
let at = v, A = k, ot = te(() => import("./BlockPreviewCanvas-mZIr9mY2.js").then((e) => e.n)), { t: j, format: M } = oe(), N = C(re, "SavedBlocksBrowserModal"), P = C(ae, "SavedBlocksBrowserModal"), st = a(ie, void 0), F = o(""), I = o(""), L = o(null), R = o(null), z = o(null), B = o(""), V = o(""), H = o(null), U = o("end"), W = g(() => {
|
|
70
|
+
let e = F.value.trim().toLowerCase(), t = I.value;
|
|
71
|
+
return N.savedBlocks.value.filter((n) => !(e && !n.name.toLowerCase().includes(e) || t && n.category !== t));
|
|
72
|
+
}), G = g(() => N.isLoading.value && N.savedBlocks.value.length === 0), ct = g(() => F.value.trim().length > 0 || I.value !== ""), K = g(() => L.value ? N.savedBlocks.value.find((e) => e.id === L.value) ?? null : null), lt = g(() => {
|
|
73
|
+
let e = [{
|
|
74
|
+
value: "beginning",
|
|
75
|
+
label: j.savedBlocks.insertAtBeginning
|
|
76
|
+
}], t = P.content.value.blocks;
|
|
77
|
+
for (let n = 0; n < t.length; n++) {
|
|
78
|
+
let r = t[n], i = r.type, a = j.blocks[i] ?? r.type;
|
|
79
|
+
e.push({
|
|
80
|
+
value: r.id,
|
|
81
|
+
label: M(j.savedBlocks.insertAfterBlock, { block: `${a} ${n + 1}` })
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
return e.push({
|
|
85
|
+
value: "end",
|
|
86
|
+
label: j.savedBlocks.insertAtEnd
|
|
87
|
+
}), e;
|
|
88
|
+
}), ut = g(() => {
|
|
89
|
+
if (U.value === "end") return;
|
|
90
|
+
if (U.value === "beginning") return 0;
|
|
91
|
+
let e = P.content.value.blocks.findIndex((e) => e.id === U.value);
|
|
92
|
+
if (e !== -1) return e + 1;
|
|
93
|
+
});
|
|
94
|
+
n(() => at.visible, (e) => {
|
|
95
|
+
if (e) {
|
|
96
|
+
F.value = "", I.value = "", L.value = null, R.value = null, z.value = null;
|
|
97
|
+
let e = P.state.selectedBlockId;
|
|
98
|
+
if (e) {
|
|
99
|
+
let t = P.content.value.blocks.findIndex((t) => t.id === e);
|
|
100
|
+
U.value = t === -1 ? "end" : e;
|
|
101
|
+
} else U.value = "end";
|
|
102
|
+
}
|
|
103
|
+
}, { immediate: !0 });
|
|
104
|
+
function dt(e) {
|
|
105
|
+
let t = [], n = /* @__PURE__ */ new Set();
|
|
106
|
+
for (let r of e.content) if (!n.has(r.type) && T[r.type] && (n.add(r.type), t.push({
|
|
107
|
+
type: r.type,
|
|
108
|
+
icon: T[r.type]
|
|
109
|
+
})), t.length >= 5) break;
|
|
110
|
+
return t;
|
|
111
|
+
}
|
|
112
|
+
function q(e) {
|
|
113
|
+
let t = new Set(e.content.map((e) => e.type));
|
|
114
|
+
return Math.max(0, t.size - 5);
|
|
115
|
+
}
|
|
116
|
+
function J(e) {
|
|
117
|
+
let t = e.updatedAt ?? e.createdAt;
|
|
118
|
+
return t ? pe(t, j.time, M) ?? "" : "";
|
|
119
|
+
}
|
|
120
|
+
function ft(e) {
|
|
121
|
+
let t = e.updatedAt ?? e.createdAt;
|
|
122
|
+
return t ? fe(t, st) : "";
|
|
123
|
+
}
|
|
124
|
+
async function pt(e) {
|
|
125
|
+
try {
|
|
126
|
+
await N.remove(e), L.value === e && (L.value = null);
|
|
127
|
+
} finally {
|
|
128
|
+
R.value = null;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
async function Y(e) {
|
|
132
|
+
N.canUpdateBlock(e) && (z.value = e.id, B.value = e.name, V.value = e.category ?? "", R.value = null, await ee(), H.value?.focus(), H.value?.select());
|
|
133
|
+
}
|
|
134
|
+
function X() {
|
|
135
|
+
z.value = null, B.value = "", V.value = "";
|
|
136
|
+
}
|
|
137
|
+
async function Z(e) {
|
|
138
|
+
if (z.value !== e) return;
|
|
139
|
+
let t = B.value.trim(), n = V.value.trim(), r = N.savedBlocks.value.find((t) => t.id === e), i = {};
|
|
140
|
+
if (t && t !== r?.name && (i.name = t), n !== (r?.category ?? "") && (i.category = n), Object.keys(i).length === 0) {
|
|
141
|
+
X();
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
try {
|
|
145
|
+
await N.update(e, i);
|
|
146
|
+
} finally {
|
|
147
|
+
X();
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
function mt(e, t) {
|
|
151
|
+
let n = e.currentTarget, r = e.relatedTarget;
|
|
152
|
+
r && n.contains(r) || Z(t);
|
|
153
|
+
}
|
|
154
|
+
function Q() {
|
|
155
|
+
K.value && A("insert", K.value, ut.value);
|
|
156
|
+
}
|
|
157
|
+
function $() {
|
|
158
|
+
A("close");
|
|
159
|
+
}
|
|
160
|
+
function ht(e) {
|
|
161
|
+
z.value || (e.key === "Escape" && $(), e.key === "Enter" && K.value && (e.preventDefault(), Q()));
|
|
162
|
+
}
|
|
163
|
+
return (n, a) => (d(), p(me, {
|
|
164
|
+
visible: v.visible,
|
|
165
|
+
onClose: $,
|
|
166
|
+
onKeydown: ht
|
|
167
|
+
}, {
|
|
168
|
+
default: ne(() => [s("div", he, [
|
|
169
|
+
s("div", ge, [s("h3", _e, f(h(j).savedBlocks.browse), 1), s("button", {
|
|
170
|
+
"aria-label": h(j).savedBlocks.close,
|
|
171
|
+
class: "tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:p-1 tpl:transition-colors tpl:text-[var(--tpl-text-dim)]",
|
|
172
|
+
onClick: $
|
|
173
|
+
}, [l(h(ue), {
|
|
174
|
+
size: 16,
|
|
175
|
+
"stroke-width": 2
|
|
176
|
+
})], 8, ve)]),
|
|
177
|
+
s("div", ye, [s("div", be, [
|
|
178
|
+
s("div", xe, [s("div", Se, [l(h(se), {
|
|
179
|
+
size: 14,
|
|
180
|
+
"stroke-width": 2,
|
|
181
|
+
class: "tpl:pointer-events-none tpl:absolute tpl:left-3 tpl:top-1/2 tpl:-translate-y-1/2 tpl:text-[var(--tpl-text-dim)]"
|
|
182
|
+
}), e(s("input", {
|
|
183
|
+
"onUpdate:modelValue": a[0] ||= (e) => F.value = e,
|
|
184
|
+
type: "text",
|
|
185
|
+
placeholder: h(j).savedBlocks.search,
|
|
186
|
+
disabled: G.value,
|
|
187
|
+
class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:pl-9 tpl:pr-3 tpl:text-sm tpl:outline-none tpl:disabled:opacity-50 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
|
|
188
|
+
}, null, 8, Ce), [[y, F.value]])]), h(N).categories.value.length > 0 ? e((d(), c("select", {
|
|
189
|
+
key: 0,
|
|
190
|
+
"onUpdate:modelValue": a[1] ||= (e) => I.value = e,
|
|
191
|
+
"data-testid": "saved-blocks-category-filter",
|
|
192
|
+
"aria-label": h(j).savedBlocks.filterByCategory,
|
|
193
|
+
class: "tpl:h-8 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
|
|
194
|
+
}, [s("option", Te, f(h(j).savedBlocks.allCategories), 1), (d(!0), c(m, null, u(h(N).categories.value, (e) => (d(), c("option", {
|
|
195
|
+
key: e,
|
|
196
|
+
value: e
|
|
197
|
+
}, f(e), 9, E))), 128))], 8, we)), [[x, I.value]]) : _("", !0)]),
|
|
198
|
+
s("datalist", D, [(d(!0), c(m, null, u(h(N).categories.value, (e) => (d(), c("option", {
|
|
199
|
+
key: e,
|
|
200
|
+
value: e
|
|
201
|
+
}, null, 8, O))), 128))]),
|
|
202
|
+
s("div", Ee, [G.value ? (d(), c("div", {
|
|
203
|
+
key: 0,
|
|
204
|
+
"data-testid": "saved-blocks-loading",
|
|
205
|
+
class: "tpl:flex tpl:flex-col tpl:gap-1",
|
|
206
|
+
role: "status",
|
|
207
|
+
"aria-busy": "true",
|
|
208
|
+
"aria-label": h(j).savedBlocks.loading
|
|
209
|
+
}, [(d(), c(m, null, u(3, (e) => s("div", {
|
|
210
|
+
key: e,
|
|
211
|
+
"aria-hidden": "true",
|
|
212
|
+
class: "tpl-saved-block-skeleton tpl:rounded-[var(--tpl-radius-md)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)]"
|
|
213
|
+
}, [...a[7] ||= [s("div", { class: "tpl:h-3 tpl:w-1/2 tpl:rounded tpl:bg-[var(--tpl-bg-hover)]" }, null, -1), s("div", { class: "tpl:mt-2 tpl:h-2.5 tpl:w-1/4 tpl:rounded tpl:bg-[var(--tpl-bg-hover)]" }, null, -1)]])), 64))], 8, De)) : W.value.length > 0 ? (d(), c("div", Oe, [(d(!0), c(m, null, u(W.value, (n) => (d(), c(m, { key: n.id }, [z.value === n.id ? (d(), c("div", {
|
|
214
|
+
key: 0,
|
|
215
|
+
class: "tpl:flex tpl:w-full tpl:flex-col tpl:gap-1 tpl:rounded-[var(--tpl-radius-md)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-primary)]",
|
|
216
|
+
style: { "background-color": "var(--tpl-primary-light)" },
|
|
217
|
+
onFocusout: (e) => mt(e, n.id)
|
|
218
|
+
}, [e(s("input", {
|
|
219
|
+
ref_for: !0,
|
|
220
|
+
ref: (e) => H.value = e,
|
|
221
|
+
"onUpdate:modelValue": a[2] ||= (e) => B.value = e,
|
|
222
|
+
type: "text",
|
|
223
|
+
"aria-label": h(j).savedBlocks.rename,
|
|
224
|
+
class: "tpl:h-7 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
225
|
+
onKeydown: [S(b((e) => Z(n.id), ["prevent", "stop"]), ["enter"]), a[3] ||= S(b((e) => X(), ["prevent", "stop"]), ["esc"])]
|
|
226
|
+
}, null, 40, Ae), [[y, B.value]]), e(s("input", {
|
|
227
|
+
"onUpdate:modelValue": a[4] ||= (e) => V.value = e,
|
|
228
|
+
type: "text",
|
|
229
|
+
"data-testid": "saved-blocks-edit-category",
|
|
230
|
+
"aria-label": h(j).savedBlocks.category,
|
|
231
|
+
placeholder: h(j).savedBlocks.categoryPlaceholder,
|
|
232
|
+
list: "tpl-saved-block-browser-categories",
|
|
233
|
+
class: "tpl:h-7 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
234
|
+
onKeydown: [S(b((e) => Z(n.id), ["prevent", "stop"]), ["enter"]), a[5] ||= S(b((e) => X(), ["prevent", "stop"]), ["esc"])]
|
|
235
|
+
}, null, 40, je), [[y, V.value]])], 40, ke)) : (d(), c("button", {
|
|
236
|
+
key: 1,
|
|
237
|
+
type: "button",
|
|
238
|
+
"data-testid": "saved-block-card",
|
|
239
|
+
"aria-pressed": L.value === n.id,
|
|
240
|
+
class: "tpl:group/card tpl:w-full tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-md)] tpl:border tpl:bg-transparent tpl:px-3 tpl:py-2 tpl:text-left tpl:transition-all tpl:duration-[120ms]",
|
|
241
|
+
style: r({
|
|
242
|
+
borderColor: L.value === n.id ? "var(--tpl-primary)" : "var(--tpl-border)",
|
|
243
|
+
backgroundColor: L.value === n.id ? "var(--tpl-primary-light)" : "transparent"
|
|
244
|
+
}),
|
|
245
|
+
onClick: (e) => L.value = n.id
|
|
246
|
+
}, [
|
|
247
|
+
s("div", Ne, [s("span", Pe, f(n.name), 1), s("span", Fe, f(h(M)(h(j).savedBlocks.blockCount, { count: n.content.length })), 1)]),
|
|
248
|
+
n.category ? (d(), c("div", Ie, [s("span", Le, f(n.category), 1)])) : _("", !0),
|
|
249
|
+
s("div", Re, [
|
|
250
|
+
(d(!0), c(m, null, u(dt(n), (e) => (d(), p(i(e.icon), {
|
|
251
|
+
key: e.type,
|
|
252
|
+
size: 14,
|
|
253
|
+
"stroke-width": 1.5,
|
|
254
|
+
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
255
|
+
}))), 128)),
|
|
256
|
+
q(n) > 0 ? (d(), c("span", ze, " +" + f(q(n)), 1)) : _("", !0),
|
|
257
|
+
J(n) ? (d(), c("span", {
|
|
258
|
+
key: 1,
|
|
259
|
+
"data-testid": "saved-block-updated",
|
|
260
|
+
class: "tpl:ml-1 tpl:truncate tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]",
|
|
261
|
+
title: ft(n)
|
|
262
|
+
}, f(J(n)), 9, Be)) : _("", !0),
|
|
263
|
+
R.value === n.id ? (d(), c("button", {
|
|
264
|
+
key: 2,
|
|
265
|
+
"aria-label": h(j).savedBlocks.deleteConfirm,
|
|
266
|
+
class: "tpl:ml-auto tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:transition-colors tpl:border-[var(--tpl-danger)] tpl:text-[var(--tpl-danger)]",
|
|
267
|
+
style: { "background-color": "transparent" },
|
|
268
|
+
onClick: b((e) => pt(n.id), ["stop"])
|
|
269
|
+
}, f(h(j).savedBlocks.deleteConfirm), 9, Ve)) : (d(), c(m, { key: 3 }, [h(N).canUpdateBlock(n) ? (d(), c("button", {
|
|
270
|
+
key: 0,
|
|
271
|
+
class: "tpl-saved-block-rename-btn tpl:ml-auto tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-dim)]",
|
|
272
|
+
"aria-label": h(j).savedBlocks.rename,
|
|
273
|
+
title: h(j).savedBlocks.rename,
|
|
274
|
+
onClick: b((e) => Y(n), ["stop"])
|
|
275
|
+
}, [l(h(ce), {
|
|
276
|
+
size: 12,
|
|
277
|
+
"stroke-width": 1.5
|
|
278
|
+
})], 8, He)) : _("", !0), h(N).canDeleteBlock(n) ? (d(), c("button", {
|
|
279
|
+
key: 1,
|
|
280
|
+
class: t(["tpl-saved-block-delete-btn tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-dim)]", { "tpl:ml-auto": !h(N).canUpdateBlock(n) }]),
|
|
281
|
+
"aria-label": h(j).savedBlocks.delete,
|
|
282
|
+
title: h(j).savedBlocks.delete,
|
|
283
|
+
onClick: b((e) => R.value = n.id, ["stop"])
|
|
284
|
+
}, [l(h(le), {
|
|
285
|
+
size: 12,
|
|
286
|
+
"stroke-width": 1.5
|
|
287
|
+
})], 10, Ue)) : _("", !0)], 64))
|
|
288
|
+
])
|
|
289
|
+
], 12, Me))], 64))), 128))])) : (d(), c("div", We, [l(h(w), {
|
|
290
|
+
size: 32,
|
|
291
|
+
"stroke-width": 1,
|
|
292
|
+
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
293
|
+
}), ct.value ? (d(), c("p", Ge, f(h(j).savedBlocks.noResults), 1)) : (d(), c(m, { key: 1 }, [s("p", Ke, f(h(j).savedBlocks.empty), 1), s("p", qe, f(h(j).savedBlocks.emptyHint), 1)], 64))]))])
|
|
294
|
+
]), s("div", Je, [K.value ? (d(), c("div", Ye, [s("div", Xe, [l(h(ot), { blocks: K.value.content }, null, 8, ["blocks"])])])) : (d(), c("div", Ze, [l(h(w), {
|
|
295
|
+
size: 32,
|
|
296
|
+
"stroke-width": 1,
|
|
297
|
+
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
298
|
+
}), s("p", Qe, f(h(j).savedBlocks.selectToPreview), 1)]))])]),
|
|
299
|
+
s("div", $e, [s("div", et, [s("label", tt, f(h(j).savedBlocks.insertPosition), 1), e(s("select", {
|
|
300
|
+
"onUpdate:modelValue": a[6] ||= (e) => U.value = e,
|
|
301
|
+
class: "tpl:h-7 tpl:max-w-[220px] tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
|
|
302
|
+
}, [(d(!0), c(m, null, u(lt.value, (e) => (d(), c("option", {
|
|
303
|
+
key: e.value,
|
|
304
|
+
value: e.value
|
|
305
|
+
}, f(e.label), 9, nt))), 128))], 512), [[x, U.value]])]), s("div", rt, [s("button", {
|
|
306
|
+
type: "button",
|
|
307
|
+
"data-testid": "saved-blocks-browser-close",
|
|
308
|
+
class: "tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-[var(--tpl-shadow-sm)] tpl:transition-all tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]",
|
|
309
|
+
onClick: $
|
|
310
|
+
}, f(h(j).savedBlocks.close), 1), s("button", {
|
|
311
|
+
type: "button",
|
|
312
|
+
class: t(h(de)),
|
|
313
|
+
disabled: !K.value,
|
|
314
|
+
onClick: Q
|
|
315
|
+
}, f(h(j).savedBlocks.insert), 11, it)])])
|
|
316
|
+
])]),
|
|
317
|
+
_: 1
|
|
318
|
+
}, 8, ["visible"]));
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
//#endregion
|
|
322
|
+
export { k as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _ as e, d as t, k as n, l as r, r as i, rt as a, u as o, v as s } from "./vue.runtime.esm-bundler-
|
|
1
|
+
import { _ as e, d as t, k as n, l as r, r as i, rt as a, u as o, v as s } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
|
|
2
2
|
//#endregion
|
|
3
3
|
//#region src/components/SavedBlocksPanels.vue
|
|
4
4
|
var c = /* @__PURE__ */ s({
|
|
5
5
|
__name: "SavedBlocksPanels",
|
|
6
6
|
props: { feature: {} },
|
|
7
7
|
setup(s) {
|
|
8
|
-
let c = s, l = e(() => import("./SavedBlocksPickBar-
|
|
8
|
+
let c = s, l = e(() => import("./SavedBlocksPickBar-BM7aTSK2.js")), u = e(() => import("./SaveBlockDialog-DABN4-Jf.js")), d = e(() => import("./SavedBlocksBrowserModal-BoylzTEq.js"));
|
|
9
9
|
function f(e, t) {
|
|
10
10
|
c.feature.insert(e, t);
|
|
11
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as e, d as t, g as n, h as r, k as i, kt as a, rt as o, v as s } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { L as c } from "./useEditorCore-
|
|
3
|
-
import { t as l } from "./useI18n-
|
|
4
|
-
import { t as u } from "./x-
|
|
1
|
+
import { c as e, d as t, g as n, h as r, k as i, kt as a, rt as o, v as s } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
|
|
2
|
+
import { L as c } from "./useEditorCore-BWrxHVKW.js";
|
|
3
|
+
import { t as l } from "./useI18n-DUVIAju4.js";
|
|
4
|
+
import { t as u } from "./x-DJOd1hS4.js";
|
|
5
5
|
//#region src/components/SavedBlocksPickBar.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var d = {
|
|
7
7
|
"data-testid": "saved-blocks-pick-bar",
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Dt as e, L as t, Ot as n, P as r, S as i, X as a, c as o, d as s, g as c, h as l, j as u, k as d, kt as f, l as p, r as m, rt as h, u as g, v as _, z as ee } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { t as te } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import {
|
|
4
|
-
import { t as b } from "./createLucideIcon-
|
|
5
|
-
import { t as ie } from "./chevron-down-
|
|
6
|
-
import { t as x } from "./circle-alert-
|
|
7
|
-
import { n as ae, t as S } from "./refresh-cw-
|
|
8
|
-
import { t as C } from "./info-
|
|
9
|
-
import { t as w } from "./loader-circle-
|
|
10
|
-
import { t as T } from "./shield-check-
|
|
11
|
-
import { t as E } from "./sparkles-
|
|
12
|
-
import { t as oe } from "./triangle-alert-
|
|
13
|
-
import { t as se } from "./x-
|
|
14
|
-
import { t as ce } from "./LoadingTrack-
|
|
1
|
+
import { Dt as e, L as t, Ot as n, P as r, S as i, X as a, c as o, d as s, g as c, h as l, j as u, k as d, kt as f, l as p, r as m, rt as h, u as g, v as _, z as ee } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
|
|
2
|
+
import { t as te } from "./runtime-dom.esm-bundler-BuG03jBM.js";
|
|
3
|
+
import { K as v, R as ne, T as re, h as y } from "./keys-BJJ4hJ4z.js";
|
|
4
|
+
import { t as b } from "./createLucideIcon-Bvw1Zx56.js";
|
|
5
|
+
import { t as ie } from "./chevron-down-a-fb_Ijn.js";
|
|
6
|
+
import { t as x } from "./circle-alert-CJDW5LZo.js";
|
|
7
|
+
import { n as ae, t as S } from "./refresh-cw-C8SBuPdg.js";
|
|
8
|
+
import { t as C } from "./info-DybAwcA3.js";
|
|
9
|
+
import { t as w } from "./loader-circle-t-SVgmJ3.js";
|
|
10
|
+
import { t as T } from "./shield-check-D0dMaHtE.js";
|
|
11
|
+
import { t as E } from "./sparkles-Dy2BJjiX.js";
|
|
12
|
+
import { t as oe } from "./triangle-alert-DxnFj4-B.js";
|
|
13
|
+
import { t as se } from "./x-DJOd1hS4.js";
|
|
14
|
+
import { t as ce } from "./LoadingTrack-SQXoZVf2.js";
|
|
15
15
|
import { t as D } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
|
-
import { n as le } from "./useCloudI18n-
|
|
16
|
+
import { n as le } from "./useCloudI18n-DaKcDMDz.js";
|
|
17
17
|
var O = b("shield-x", [
|
|
18
18
|
["path", {
|
|
19
19
|
d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { B as e, Dt as t, L as n, S as r, X as i, c as a, d as o, g as s, h as c, j as l, k as u, kt as d, l as f, r as p, rt as m, s as h, u as g, v as _, z as ee } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { a as te, i as v } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { I as ie, O as ae, T as oe, h as se } from "./keys-
|
|
6
|
-
import { t as ce } from "./useI18n-
|
|
7
|
-
import { t as le } from "./check-
|
|
8
|
-
import { t as ue } from "./loader-circle-
|
|
9
|
-
import { n as de, t as fe } from "./MergeTagModeToggle-
|
|
1
|
+
import { B as e, Dt as t, L as n, S as r, X as i, c as a, d as o, g as s, h as c, j as l, k as u, kt as d, l as f, r as p, rt as m, s as h, u as g, v as _, z as ee } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
|
|
2
|
+
import { a as te, i as v } from "./runtime-dom.esm-bundler-BuG03jBM.js";
|
|
3
|
+
import { N as ne } from "./dist-PL6vP4SC.js";
|
|
4
|
+
import { Z as re } from "./useEditorCore-BWrxHVKW.js";
|
|
5
|
+
import { I as ie, O as ae, T as oe, h as se } from "./keys-BJJ4hJ4z.js";
|
|
6
|
+
import { t as ce } from "./useI18n-DUVIAju4.js";
|
|
7
|
+
import { t as le } from "./check-JK8Uacq0.js";
|
|
8
|
+
import { t as ue } from "./loader-circle-t-SVgmJ3.js";
|
|
9
|
+
import { n as de, t as fe } from "./MergeTagModeToggle-DeI65T5k.js";
|
|
10
10
|
import { v as pe } from "./styleConstants-C_YAPdQS.js";
|
|
11
|
-
import { t as me } from "./TplModal-
|
|
12
|
-
import { t as he } from "./BlockPreviewCanvas-
|
|
11
|
+
import { t as me } from "./TplModal-CEYnwBBk.js";
|
|
12
|
+
import { t as he } from "./BlockPreviewCanvas-mZIr9mY2.js";
|
|
13
13
|
//#region src/utils/validateEmailShape.ts
|
|
14
14
|
var y = /[,;<>()[\]\\"'`|/?#@!$%^&*+=~{}]/;
|
|
15
15
|
function b(e) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _ as e, k as t, l as n, rt as r, u as i, v as a } from "./vue.runtime.esm-bundler-
|
|
1
|
+
import { _ as e, k as t, l as n, rt as r, u as i, v as a } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
|
|
2
2
|
//#endregion
|
|
3
3
|
//#region src/components/TestEmailPanel.vue
|
|
4
4
|
var o = /* @__PURE__ */ a({
|
|
5
5
|
__name: "TestEmailPanel",
|
|
6
6
|
props: { feature: {} },
|
|
7
7
|
setup(a) {
|
|
8
|
-
let o = a, s = e(() => import("./TestEmailModal-
|
|
8
|
+
let o = a, s = e(() => import("./TestEmailModal-Cb0n7Dhj.js"));
|
|
9
9
|
function c(e) {
|
|
10
10
|
o.feature.send(e);
|
|
11
11
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Dt as e, G as t, Ot as n, S as r, c as i, d as a, g as o, h as s, i as c, k as l, kt as u, l as d, r as f, rt as p, s as m, u as h, v as g } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { C as ee, S as te } from "./useEditorCore-
|
|
3
|
-
import {
|
|
4
|
-
import { t as y } from "./useI18n-
|
|
5
|
-
import { n as b } from "./usePopoverPosition-
|
|
6
|
-
import { a as ie, i as x, n as S, r as ae, t as oe } from "./RichTextEditorContent-
|
|
7
|
-
import { n as se, t as ce } from "./scan-line-
|
|
8
|
-
import { t as le } from "./loader-circle-
|
|
1
|
+
import { Dt as e, G as t, Ot as n, S as r, c as i, d as a, g as o, h as s, i as c, k as l, kt as u, l as d, r as f, rt as p, s as m, u as h, v as g } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
|
|
2
|
+
import { C as ee, S as te } from "./useEditorCore-BWrxHVKW.js";
|
|
3
|
+
import { D as ne, V as re, W as _, w as v } from "./keys-BJJ4hJ4z.js";
|
|
4
|
+
import { t as y } from "./useI18n-DUVIAju4.js";
|
|
5
|
+
import { n as b } from "./usePopoverPosition-APlWgXoQ.js";
|
|
6
|
+
import { a as ie, i as x, n as S, r as ae, t as oe } from "./RichTextEditorContent-DKLVe6Io.js";
|
|
7
|
+
import { n as se, t as ce } from "./scan-line-E7w4yQyv.js";
|
|
8
|
+
import { t as le } from "./loader-circle-t-SVgmJ3.js";
|
|
9
9
|
//#region src/components/blocks/TitleEditor.vue?vue&type=script&setup=true&lang.ts
|
|
10
10
|
var C = { class: "tpl-text-editor-wrapper tpl:relative" }, w = ["data-tpl-theme", "aria-label"], T = ["aria-label", "title"], E = ["aria-label", "title"], D = ["aria-label", "title"], O = {
|
|
11
11
|
key: 0,
|
|
@@ -24,17 +24,17 @@ var C = { class: "tpl-text-editor-wrapper tpl:relative" }, w = ["data-tpl-theme"
|
|
|
24
24
|
},
|
|
25
25
|
emits: ["done"],
|
|
26
26
|
setup(g, { emit: N }) {
|
|
27
|
-
let P = g, F = N, I = r(
|
|
27
|
+
let P = g, F = N, I = r(re, null), L = r(_, null), R = b(), z = r(ne, null), B = r(v, null), V = m(() => (z?.isOpen.value ?? !1) || (B?.isOpen.value ?? !1)), { t: H } = y(), { editor: U, EditorContent: W, isLoading: G, initError: ue, retry: de, showLinkDialog: fe, linkUrl: K, linkColor: q, linkDialogRef: J, canRequestMergeTag: Y, canInsertLogicTag: X, openLinkDialog: Z, insertLink: pe, removeLink: me, closeLinkDialog: he, handleLinkKeydown: ge, handleAddMergeTag: Q, handleAddLogicTag: $ } = te({
|
|
28
28
|
blockId: () => P.block.id,
|
|
29
29
|
blockContent: () => P.block.content,
|
|
30
30
|
onDone: () => F("done"),
|
|
31
31
|
editorName: "TitleEditor",
|
|
32
32
|
async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
|
|
33
33
|
let [{ Editor: a, EditorContent: o }, { default: s }, { default: c }, { MergeTagNode: l, MergeTagSuggestion: u, LogicMergeTagNode: d, LineBoundaryKeys: f }] = await Promise.all([
|
|
34
|
-
import("./dist-
|
|
35
|
-
import("./dist-
|
|
36
|
-
import("./dist-
|
|
37
|
-
import("./extensions-
|
|
34
|
+
import("./dist-BxFbxpgW.js").then((e) => e.r),
|
|
35
|
+
import("./dist-DkcA6epL.js"),
|
|
36
|
+
import("./dist-C1tsW_99.js"),
|
|
37
|
+
import("./extensions-5xeZR9U9.js")
|
|
38
38
|
]);
|
|
39
39
|
return {
|
|
40
40
|
TiptapEditor: a,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { M as e, Ot as t, S as n, X as r, c as i, d as a, g as o, i as s, k as c, l, rt as u, s as d, u as f, v as p, z as m } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { c as h, t as g } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import { D as _ } from "./useEditorCore-
|
|
4
|
-
import {
|
|
5
|
-
import { n as b } from "./usePopoverPosition-
|
|
1
|
+
import { M as e, Ot as t, S as n, X as r, c as i, d as a, g as o, i as s, k as c, l, rt as u, s as d, u as f, v as p, z as m } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
|
|
2
|
+
import { c as h, t as g } from "./runtime-dom.esm-bundler-BuG03jBM.js";
|
|
3
|
+
import { D as _ } from "./useEditorCore-BWrxHVKW.js";
|
|
4
|
+
import { V as v, W as y } from "./keys-BJJ4hJ4z.js";
|
|
5
|
+
import { n as b } from "./usePopoverPosition-APlWgXoQ.js";
|
|
6
6
|
//#region src/components/TplModal.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var x = ["data-tpl-theme"], S = /* @__PURE__ */ p({
|
|
8
8
|
__name: "TplModal",
|