@templatical/editor 0.30.0 → 0.32.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-Bq99wU01.js → AiChatSidebar-ftdKHSR-.js} +15 -15
- package/dist/{AiFeatureMenu-F-C59LAV.js → AiFeatureMenu-aNeCRlil.js} +7 -7
- package/dist/{BlockIssueBadge-Dhk7Hv4m.js → BlockIssueBadge-bTDu6W_2.js} +5 -5
- package/dist/{BlockPreviewCanvas-CqU1kwmG.js → BlockPreviewCanvas-BsOuOfzB.js} +20 -19
- package/dist/{CloudHeaderExtras-vnGV_mLD.js → CloudHeaderExtras-BNpFohqt.js} +5 -5
- package/dist/{CloudPanels-Dv-MD1Tc.js → CloudPanels-xoGWwqSH.js} +7 -7
- package/dist/{CollaboratorBar-DmssyJoB.js → CollaboratorBar-mEqXkdEi.js} +4 -4
- package/dist/{ColorPicker-CXPSbnRD.js → ColorPicker-FL5Vb9bE.js} +7 -7
- package/dist/{CommentsPanel-DnWdgQHg.js → CommentsPanel-slfi74ng.js} +2 -2
- package/dist/{CommentsSidebar-ZOqmuo4D.js → CommentsSidebar-Dea4spMl.js} +14 -14
- package/dist/{CountdownBlock-BgNK7fZY.js → CountdownBlock-DQTwaRxP.js} +3 -3
- package/dist/{CountdownToolbar-SwmE7CIk.js → CountdownToolbar-C7xwJoqh.js} +4 -4
- package/dist/{DesignReferenceSidebar-9cLTzOqP.js → DesignReferenceSidebar-BtBd7bbz.js} +11 -11
- package/dist/{FieldRow-0-UbQR4a.js → FieldRow-BWt7ECqo.js} +1 -1
- package/dist/{IssuesPanel-CDk7lUna.js → IssuesPanel-Ci2H36L2.js} +8 -8
- package/dist/{LoadingTrack-5KBr5cE8.js → LoadingTrack-SQXoZVf2.js} +1 -1
- package/dist/{MergeTagModeToggle-DtD_Xl9w.js → MergeTagModeToggle-Cdi_DmVw.js} +6 -6
- package/dist/{MergeTagSuggestion-DPfXtDzP.js → MergeTagSuggestion-CoCuzEmW.js} +4 -4
- package/dist/{ParagraphEditor-C0NbqDmV.js → ParagraphEditor-DQEOFc0K.js} +26 -26
- package/dist/{RestoreVersionDialog-DCX0rJiV.js → RestoreVersionDialog-CHwngBae.js} +5 -5
- package/dist/{RichTextEditorContent-DZ6GiAUi.js → RichTextEditorContent-C_9xi7dD.js} +8 -8
- package/dist/{SaveBlockDialog-e5LtQRVk.js → SaveBlockDialog-tZqZzPjW.js} +21 -21
- package/dist/SavedBlocksBrowserModal-Bdj3GOD_.js +322 -0
- package/dist/{SavedBlocksPanels-pGZWjSmp.js → SavedBlocksPanels-2sBxAH9w.js} +2 -2
- package/dist/{SavedBlocksPickBar-OZaOG1Si.js → SavedBlocksPickBar-DTjQBR00.js} +4 -4
- package/dist/{TemplateScoringPanel-CDwlSFEe.js → TemplateScoringPanel-B6nHSrBD.js} +15 -15
- package/dist/{TestEmailModal-PVa1VL2p.js → TestEmailModal-DuHbzO37.js} +11 -11
- package/dist/{TestEmailPanel-RekBdAtO.js → TestEmailPanel-TpwP-eK_.js} +2 -2
- package/dist/{TitleEditor-Cs2tELCL.js → TitleEditor-C0JQJu38.js} +12 -12
- package/dist/{TplModal-Bw1i8_eE.js → TplModal-BMGmhquu.js} +5 -5
- package/dist/VersionHistoryMenu-D2x6MMYx.js +157 -0
- package/dist/{VersionHistoryPanels-TqTC4ofA.js → VersionHistoryPanels-aGlUVEGF.js} +2 -2
- package/dist/{VersionPreviewBanner-CQlSzQ2B.js → VersionPreviewBanner-61t3_Z-a.js} +3 -3
- package/dist/{blockTypeIcons-C7WedEOG.js → blockTypeIcons-BsNup009.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-DmZ1Nvxo.js → AiChatSidebar-CqWvtRwB.js} +12 -12
- package/dist/cdn/chunks/{AiChatSidebar-DmZ1Nvxo.js.map → AiChatSidebar-CqWvtRwB.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-D4tax9j3.js → AiFeatureMenu-DoFrLcXJ.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-D4tax9j3.js.map → AiFeatureMenu-DoFrLcXJ.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-Bry71Wjz.js → BlockIssueBadge-B_mUH69a.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-Bry71Wjz.js.map → BlockIssueBadge-B_mUH69a.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-DDOqFJlT.js → BlockPreviewCanvas-CSIxs7hr.js} +21 -20
- package/dist/cdn/chunks/BlockPreviewCanvas-CSIxs7hr.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-g-_SFPna.js → CloudHeaderExtras-Dgtr7WaE.js} +5 -5
- package/dist/cdn/chunks/{CloudHeaderExtras-g-_SFPna.js.map → CloudHeaderExtras-Dgtr7WaE.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-Cnh07_2G.js → CloudPanels-B91lUmof.js} +7 -7
- package/dist/cdn/chunks/{CloudPanels-Cnh07_2G.js.map → CloudPanels-B91lUmof.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-CLGB0prG.js → CollaboratorBar-CQwPWoFu.js} +5 -5
- package/dist/cdn/chunks/{CollaboratorBar-CLGB0prG.js.map → CollaboratorBar-CQwPWoFu.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-Ww4xHHMI.js → ColorPicker-CdrKX48J.js} +7 -7
- package/dist/cdn/chunks/{ColorPicker-Ww4xHHMI.js.map → ColorPicker-CdrKX48J.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-DjId-XH-.js → CommentsPanel-BJNgTmAA.js} +3 -3
- package/dist/cdn/chunks/{CommentsPanel-DjId-XH-.js.map → CommentsPanel-BJNgTmAA.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-DXXGWSr4.js → CommentsSidebar-D6VIIPhB.js} +5 -5
- package/dist/cdn/chunks/{CommentsSidebar-DXXGWSr4.js.map → CommentsSidebar-D6VIIPhB.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-CWeJBC0L.js → CountdownBlock-BRwXUvGU.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-CWeJBC0L.js.map → CountdownBlock-BRwXUvGU.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CO6xLgYc.js → CountdownToolbar-CVaU5WG6.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-CO6xLgYc.js.map → CountdownToolbar-CVaU5WG6.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-DRGqm33h.js → DesignReferenceSidebar-BvOwE1kg.js} +7 -7
- package/dist/cdn/chunks/{DesignReferenceSidebar-DRGqm33h.js.map → DesignReferenceSidebar-BvOwE1kg.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-iC2hgrXx.js → IssuesPanel-MJZxkScz.js} +6 -6
- package/dist/cdn/chunks/{IssuesPanel-iC2hgrXx.js.map → IssuesPanel-MJZxkScz.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-DZtnCj0F.js → MergeTagModeToggle-bNuN6PTV.js} +6 -6
- package/dist/cdn/chunks/{MergeTagModeToggle-DZtnCj0F.js.map → MergeTagModeToggle-bNuN6PTV.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-VP_nC-8W.js → MergeTagSuggestion-t8Uj00Er.js} +3 -3
- package/dist/cdn/chunks/{MergeTagSuggestion-VP_nC-8W.js.map → MergeTagSuggestion-t8Uj00Er.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-BalgLjBt.js → ParagraphEditor-BU8tlFbL.js} +28 -28
- package/dist/cdn/chunks/{ParagraphEditor-BalgLjBt.js.map → ParagraphEditor-BU8tlFbL.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-DGOXQ0ou.js → RestoreVersionDialog-vdRFfyy0.js} +5 -5
- package/dist/cdn/chunks/{RestoreVersionDialog-DGOXQ0ou.js.map → RestoreVersionDialog-vdRFfyy0.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DpvOKKH-.js → RichTextEditorContent-C1-5I8Df.js} +7 -7
- package/dist/cdn/chunks/{RichTextEditorContent-DpvOKKH-.js.map → RichTextEditorContent-C1-5I8Df.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-Dod3jX9X.js → SaveBlockDialog-DWaeqcM8.js} +9 -9
- package/dist/cdn/chunks/{SaveBlockDialog-Dod3jX9X.js.map → SaveBlockDialog-DWaeqcM8.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BysGB8zb.js → SavedBlocksBrowserModal-qC7UhW74.js} +110 -111
- package/dist/cdn/chunks/SavedBlocksBrowserModal-qC7UhW74.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksPanels-DJ4fceEM.js → SavedBlocksPanels-BvtjtdsY.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-DJ4fceEM.js.map → SavedBlocksPanels-BvtjtdsY.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DGgbqAsb.js → SavedBlocksPickBar-CxXjF3RN.js} +5 -5
- package/dist/cdn/chunks/{SavedBlocksPickBar-DGgbqAsb.js.map → SavedBlocksPickBar-CxXjF3RN.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-B0YcaJsR.js → TemplateScoringPanel-CroWaWqy.js} +50 -50
- package/dist/cdn/chunks/{TemplateScoringPanel-B0YcaJsR.js.map → TemplateScoringPanel-CroWaWqy.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-DvZFnhWa.js → TestEmailModal-iWxAZRRq.js} +10 -10
- package/dist/cdn/chunks/{TestEmailModal-DvZFnhWa.js.map → TestEmailModal-iWxAZRRq.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BdxpMiWc.js → TestEmailPanel-CGUtEuwp.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-BdxpMiWc.js.map → TestEmailPanel-CGUtEuwp.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-CfHWnThg.js → TitleEditor-DvXUW2j-.js} +12 -12
- package/dist/cdn/chunks/{TitleEditor-CfHWnThg.js.map → TitleEditor-DvXUW2j-.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-BMTW5bEN.js → TplModal-X-qNoLGZ.js} +5 -5
- package/dist/cdn/chunks/{TplModal-BMTW5bEN.js.map → TplModal-X-qNoLGZ.js.map} +1 -1
- package/dist/cdn/chunks/VersionHistoryMenu-yKzwxf7n.js +150 -0
- package/dist/cdn/chunks/VersionHistoryMenu-yKzwxf7n.js.map +1 -0
- package/dist/cdn/chunks/{VersionHistoryPanels-2l_FLtix.js → VersionHistoryPanels--hQaanjH.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-2l_FLtix.js.map → VersionHistoryPanels--hQaanjH.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-C8pfES5A.js → VersionPreviewBanner-DWU_SqMd.js} +4 -4
- package/dist/cdn/chunks/{VersionPreviewBanner-C8pfES5A.js.map → VersionPreviewBanner-DWU_SqMd.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-JUwZtKaq.js → blockTypeIcons-ZEzEpCti.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-JUwZtKaq.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-jLhuyKds.js → createCloudRuntime-DD6ppb71.js} +10 -10
- package/dist/cdn/chunks/{createCloudRuntime-jLhuyKds.js.map → createCloudRuntime-DD6ppb71.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-D30V0hzj.js → extensions-BUPHNpKD.js} +7 -7
- package/dist/cdn/chunks/{extensions-D30V0hzj.js.map → extensions-BUPHNpKD.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/cdn/chunks/{fr-DNXmZWAq.js → fr-L8DR73mK.js} +6 -1
- package/dist/cdn/chunks/fr-L8DR73mK.js.map +1 -0
- package/dist/cdn/chunks/{icons-BTdLXRXn.js → icons-SP5Itd-A.js} +16 -16
- package/dist/cdn/chunks/icons-SP5Itd-A.js.map +1 -0
- package/dist/cdn/chunks/keys-BOn5i9jV.js +12 -0
- package/dist/cdn/chunks/keys-BOn5i9jV.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-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-65H3RNcb.js → src-Cxl-9O-L.js} +699 -684
- package/dist/cdn/chunks/src-Cxl-9O-L.js.map +1 -0
- package/dist/cdn/chunks/{src-CLTXM4PM.js → src-DtnvR_Hl.js} +19 -19
- package/dist/cdn/chunks/src-DtnvR_Hl.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-Bqy-H6CT.js → tiptap-Epe8m3Vo.js} +2918 -2901
- 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-DbsLlCbZ.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-D0AoLV0a.js.map → useCloudI18n-DbsLlCbZ.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-BQeEwEQ9.js → useEditorCore-ChlgO2GN.js} +556 -412
- package/dist/cdn/chunks/useEditorCore-ChlgO2GN.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-BlF1WPeu.js +10 -0
- package/dist/cdn/chunks/{useEditorRoot-BFGRBGts.js.map → useEditorRoot-BlF1WPeu.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-DIhawILp.js → useI18n-BdxNNw6j.js} +3 -3
- package/dist/cdn/chunks/{useI18n-DIhawILp.js.map → useI18n-BdxNNw6j.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-lWo7So18.js → useMergeTag-CI2WUNrR.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-lWo7So18.js.map → useMergeTag-CI2WUNrR.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-DkiTLnBm.js → usePopoverPosition-Dw1nTSNx.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-DkiTLnBm.js.map → usePopoverPosition-Dw1nTSNx.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-KcSAuXKz.js → useScrollToBlock-BMis3-PR.js} +3 -3
- package/dist/cdn/chunks/{useScrollToBlock-KcSAuXKz.js.map → useScrollToBlock-BMis3-PR.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +1099 -1143
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-CTe6VejT.js → check-JK8Uacq0.js} +1 -1
- package/dist/{chevron-down-BBThVMu-.js → chevron-down-a-fb_Ijn.js} +1 -1
- package/dist/{chevron-up-iECwf-Bc.js → chevron-up-x4l0et_Y.js} +1 -1
- package/dist/{circle-alert-Z_eeykrO.js → circle-alert-CJDW5LZo.js} +1 -1
- package/dist/{clock-CEj1c29j.js → clock-BW6rXk2f.js} +1 -1
- package/dist/{cloud-DwJ8ebNl.js → cloud-BMzRKCbk.js} +3 -3
- package/dist/{createCloudRuntime-CdXQdl34.js → createCloudRuntime-zNcMjRgb.js} +8 -8
- package/dist/{createLucideIcon-DphAT3tw.js → createLucideIcon-Bvw1Zx56.js} +3 -3
- package/dist/{cdn/chunks/de-DbayqpK-.js → de-C6J2Iae8.js} +5 -2
- package/dist/{dist-gWM8H2hz.js → dist-BxFbxpgW.js} +5 -5
- package/dist/{dist-DifptC-U.js → dist-ByT5fgKq.js} +2 -2
- package/dist/{dist-BfcqryVg.js → dist-C1tsW_99.js} +2 -2
- package/dist/{dist-D2P8U3p6.js → dist-CtF9STPS.js} +2 -2
- package/dist/{dist-DSgmnQ-f.js → dist-CtMXAH7a.js} +2 -2
- package/dist/dist-D08oVYhr.js +5 -0
- package/dist/{dist-BdIwIlKz.js → dist-D7WY8VPq.js} +2 -2
- package/dist/{dist-9fjN9cuD.js → dist-DC-3T0ED.js} +2 -2
- package/dist/{dist-nmzPlqlz.js → dist-DL9334yz.js} +1429 -1412
- package/dist/{dist-DLaIQ5H5.js → dist-DkcA6epL.js} +8 -8
- 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-CaR5TLiM.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-Bjsdx6Vm.js → extensions-kOYwOh72.js} +21 -21
- package/dist/formatAbsoluteDateTime-DMmop3C-.js +13 -0
- package/dist/{fr-DNXmZWAq.js → fr-L8DR73mK.js} +5 -0
- package/dist/{image-up-W1INxCu8.js → image-up-CuzFc1mu.js} +1 -1
- package/dist/{info-5t4WYKfh.js → info-DybAwcA3.js} +1 -1
- package/dist/keys-BOhFlHsv.js +10 -0
- package/dist/{liquid.browser-CJgDDvQz.js → liquid.browser-wPG0n4Cs.js} +3 -3
- package/dist/{loader-circle-DJCZ_JMY.js → loader-circle-t-SVgmJ3.js} +1 -1
- package/dist/{message-circle-Biu6lHh_.js → message-circle-DtwKrlhN.js} +1 -1
- package/dist/{cdn/chunks/nl-BylRRHYJ.js → nl-GDWeuX18.js} +5 -2
- package/dist/{pencil-DkPlMca7.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-DHbpkkol.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-DojwGzjU.js → scan-line-E7w4yQyv.js} +1 -1
- package/dist/{send-c6ppcE9I.js → send-BoqJliF6.js} +1 -1
- package/dist/{shield-check-F9T4ylNK.js → shield-check-D0dMaHtE.js} +1 -1
- package/dist/{sparkles-D-0OiTZD.js → sparkles-Dy2BJjiX.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +1236 -1281
- package/dist/{text-align-start-kEEtoRrD.js → text-align-start-DrxjxvIy.js} +1 -1
- package/dist/{trash-2-DRQzhY9R.js → trash-rYMzzHZd.js} +2 -2
- package/dist/{triangle-alert-Bt4-GU3t.js → triangle-alert-DxnFj4-B.js} +1 -1
- package/dist/{upload-D2wtjvH8.js → upload-DZu1adQz.js} +1 -1
- package/dist/{useAliveFlag-AFbwfHlJ.js → useAliveFlag-PVmp95MT.js} +1 -1
- package/dist/{useCloudI18n-BA69BpQ_.js → useCloudI18n-BlMajbKp.js} +2 -2
- package/dist/{useEditorCore-Du9Vx-qr.js → useEditorCore-CwQYCSXO.js} +1212 -1067
- package/dist/{useEditorRoot-Cdo8Vhxa.js → useEditorRoot-C92q8uV-.js} +2 -2
- package/dist/{useI18n-B135ASaG.js → useI18n-Ce_BRzYv.js} +2 -2
- package/dist/{useMergeTag-Cx36rtrt.js → useMergeTag-CrXJ49lr.js} +3 -3
- package/dist/{usePopoverPosition-DAOHr_iM.js → usePopoverPosition-CPk7Twye.js} +2 -2
- package/dist/{useScrollToBlock-B0Qpjfa4.js → useScrollToBlock-DvpMfWs2.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-BhOUdXMi.js → vue.runtime.esm-bundler-D9JUcKrV.js} +4 -4
- package/dist/{x-YiG-TUGN.js → x-DJOd1hS4.js} +1 -1
- package/package.json +23 -23
- package/dist/SavedBlocksBrowserModal-ZQIQoARO.js +0 -323
- package/dist/VersionHistoryMenu-B6zAcmAC.js +0 -155
- package/dist/cdn/chunks/BlockPreviewCanvas-DDOqFJlT.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-BysGB8zb.js.map +0 -1
- package/dist/cdn/chunks/VersionHistoryMenu-DJGcA_RX.js +0 -148
- package/dist/cdn/chunks/VersionHistoryMenu-DJGcA_RX.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-CwXyUb6-.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-BTdLXRXn.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-65H3RNcb.js.map +0 -1
- package/dist/cdn/chunks/src-CLTXM4PM.js.map +0 -1
- package/dist/cdn/chunks/tiptap-Bqy-H6CT.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-BQeEwEQ9.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-BFGRBGts.js +0 -10
- package/dist/dist-CzMzshfS.js +0 -5
- package/dist/dist-DTVuNn8M.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, c as D, q as O } from "./useEditorCore-CwQYCSXO.js";
|
|
4
|
+
import { G as k, L as A, f as ee, h as j } from "./keys-BOhFlHsv.js";
|
|
5
|
+
import { t as M } from "./useI18n-Ce_BRzYv.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-BMGmhquu.js";
|
|
12
|
+
import { t as R } from "./BlockPreviewCanvas-BsOuOfzB.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,13 +26,13 @@ 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(ee, []), C = s(j, null), D = y(() => I(C?.content.value.settings)), k = c(null), A = 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
31
|
let e = k.value, t = A.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(() => {
|
|
@@ -40,7 +40,7 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
40
40
|
}), r(() => {
|
|
41
41
|
G?.disconnect(), G = null;
|
|
42
42
|
});
|
|
43
|
-
let Y = y(() =>
|
|
43
|
+
let Y = y(() => O(i.block, _, S)), X = y(() => x(_.savedBlocks.reorderHandle, {
|
|
44
44
|
block: Y.value,
|
|
45
45
|
position: i.position,
|
|
46
46
|
total: i.total
|
|
@@ -57,7 +57,7 @@ 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, [
|
|
@@ -70,7 +70,7 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
70
70
|
ref_key: "contentEl",
|
|
71
71
|
ref: A,
|
|
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 = k(j, "SaveBlockDialog"), E = k(A, "SaveBlockDialog"), te = s(ee, []), 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 O(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-CwQYCSXO.js";
|
|
4
|
+
import { G as C, H as re, L as ie, h as ae } from "./keys-BOhFlHsv.js";
|
|
5
|
+
import { t as oe } from "./useI18n-Ce_BRzYv.js";
|
|
6
|
+
import { n as se, r as w, t as T } from "./blockTypeIcons-BsNup009.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-BMGmhquu.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-BsOuOfzB.js").then((e) => e.n)), { t: j, format: M } = oe(), N = C(ie, "SavedBlocksBrowserModal"), P = C(ae, "SavedBlocksBrowserModal"), st = a(re, 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-DTjQBR00.js")), u = e(() => import("./SaveBlockDialog-tZqZzPjW.js")), d = e(() => import("./SavedBlocksBrowserModal-Bdj3GOD_.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-CwQYCSXO.js";
|
|
3
|
+
import { t as l } from "./useI18n-Ce_BRzYv.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 { G as v, R as ne, T as re, h as y } from "./keys-BOhFlHsv.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-BlMajbKp.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 { Y as re } from "./useEditorCore-CwQYCSXO.js";
|
|
5
|
+
import { I as ie, O as ae, T as oe, h as se } from "./keys-BOhFlHsv.js";
|
|
6
|
+
import { t as ce } from "./useI18n-Ce_BRzYv.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-Cdi_DmVw.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-BMGmhquu.js";
|
|
12
|
+
import { t as he } from "./BlockPreviewCanvas-BsOuOfzB.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-DuHbzO37.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 { B as ne, D as re,
|
|
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-CwQYCSXO.js";
|
|
3
|
+
import { B as ne, D as re, U as _, w as v } from "./keys-BOhFlHsv.js";
|
|
4
|
+
import { t as y } from "./useI18n-Ce_BRzYv.js";
|
|
5
|
+
import { n as b } from "./usePopoverPosition-CPk7Twye.js";
|
|
6
|
+
import { a as ie, i as x, n as S, r as ae, t as oe } from "./RichTextEditorContent-C_9xi7dD.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,
|
|
@@ -31,10 +31,10 @@ var C = { class: "tpl-text-editor-wrapper tpl:relative" }, w = ["data-tpl-theme"
|
|
|
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-kOYwOh72.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 { B as v,
|
|
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-CwQYCSXO.js";
|
|
4
|
+
import { B as v, U as y } from "./keys-BOhFlHsv.js";
|
|
5
|
+
import { n as b } from "./usePopoverPosition-CPk7Twye.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",
|