@templatical/editor 0.44.2 → 0.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{AiChatSidebar-BUR5Jshu.js → AiChatSidebar-BlFWWhBv.js} +15 -19
- package/dist/{AiFeatureMenu-CgfLFHJw.js → AiFeatureMenu-CvWygUmC.js} +7 -7
- package/dist/{BlockIssueBadge-CWZEwMXX.js → BlockIssueBadge-CZA1XvAh.js} +5 -5
- package/dist/{BlockPreviewCanvas-2vVu55yN.js → BlockPreviewCanvas-DwxJOTzH.js} +5 -5
- package/dist/{CloudHeaderExtras-BZ62q1aS.js → CloudHeaderExtras-BzM1QU1r.js} +5 -5
- package/dist/{CloudPanels-sv4aCKKE.js → CloudPanels-d36YXXyn.js} +8 -8
- package/dist/{CollaboratorBar-CSEFL7uC.js → CollaboratorBar-rwXe_Qd2.js} +4 -4
- package/dist/{CommentsPanel-CYMHfFcn.js → CommentsPanel-Bn6P5crU.js} +2 -2
- package/dist/{CommentsSidebar-uvQyCMUe.js → CommentsSidebar-B8wT932T.js} +14 -14
- package/dist/{CountdownBlock-C6R-hn7D.js → CountdownBlock-RNx3hIu0.js} +3 -3
- package/dist/{CountdownToolbar-C052mx2P.js → CountdownToolbar-lbjCc8ik.js} +62 -61
- package/dist/{DesignReferenceSidebar-ZKJ7y7-G.js → DesignReferenceSidebar-zlJQsP0X.js} +25 -26
- package/dist/{IssuesPanel-DAlNiJX_.js → IssuesPanel-CHx3m8SP.js} +8 -8
- package/dist/{LoadingTrack-C1Epulqq.js → LoadingTrack-DROqNuuD.js} +1 -1
- package/dist/{LogicTagInsertButton-DMUfVsPr.js → LogicTagInsertButton-BvftbkL4.js} +13 -19
- package/dist/{MediaEditModal-Cmd9tQXZ.js → MediaEditModal-EY1YYcpw.js} +6 -14
- package/dist/{MediaPanels-DoBhG5gg.js → MediaPanels-CRVFGFZW.js} +2 -2
- package/dist/{MergeTagInput-DoQWMSW4.js → MergeTagInput-CR1kcj8X.js} +2 -2
- package/dist/{MergeTagModeToggle-DOHixe4G.js → MergeTagModeToggle-DssKrVYb.js} +7 -7
- package/dist/{ParagraphEditor-C_p6yKLK.js → ParagraphEditor-DFizsZRc.js} +140 -139
- package/dist/{RestoreVersionDialog-CKHeCPG2.js → RestoreVersionDialog-Cp3q2mU4.js} +5 -5
- package/dist/{RichTextEditorContent-BedBVHXS.js → RichTextEditorContent-Cj3oaPMk.js} +9 -9
- package/dist/{SaveBlockDialog-q3_fjb9t.js → SaveBlockDialog-BR8vW_XF.js} +13 -13
- package/dist/SavedBlocksBrowserModal-DmwbmKxI.js +360 -0
- package/dist/{SavedBlocksPanels-DNpnl5cO.js → SavedBlocksPanels-D4XKrs-a.js} +2 -2
- package/dist/{SavedBlocksPickBar-Pq2bjpB_.js → SavedBlocksPickBar-gfc-o5sR.js} +4 -4
- package/dist/{TemplateScoringPanel-DXsyp0_A.js → TemplateScoringPanel-3lHzuCl0.js} +16 -16
- package/dist/TemplateSettings-D7aNrd0d.js +246 -0
- package/dist/{TestEmailModal-BYCKpH7g.js → TestEmailModal-DUmtcSm-.js} +11 -11
- package/dist/{TestEmailPanel-lUXAFsT5.js → TestEmailPanel-s9gISTI8.js} +2 -2
- package/dist/{TitleEditor-CWPxXUp2.js → TitleEditor-C-uHqtml.js} +13 -13
- package/dist/{ToggleSwitch-D7GLaT8s.js → ToggleSwitch-CTwwCIVA.js} +2 -2
- package/dist/{Toolbar-CWxqqBHE.js → Toolbar-CLpA36RO.js} +518 -520
- package/dist/{TplModal-D6lqrKls.js → TplModal-D6XtxusQ.js} +5 -5
- package/dist/{VersionHistoryMenu-fLrx-Lvi.js → VersionHistoryMenu-D7zaTMrb.js} +10 -10
- package/dist/{VersionHistoryPanels-C3XhpQO_.js → VersionHistoryPanels-Dvowtt7V.js} +2 -2
- package/dist/{VersionPreviewBanner-CWuxq_bb.js → VersionPreviewBanner-BUKb9gc6.js} +3 -3
- package/dist/{WrapperBlock-ox8TMS_p.js → WrapperBlock-CzJa2Mxw.js} +3 -3
- package/dist/{blockTypeIcons-DEvNVvBj.js → blockTypeIcons-D3aj5u_5.js} +2 -2
- package/dist/bundle-stats.json +7 -7
- package/dist/{ca-DSwai-th.js → ca-C__Dzq--.js} +6 -0
- package/dist/cdn/chunks/{AiChatSidebar-Cvp9beXR.js → AiChatSidebar-SRGBP-SL.js} +9 -13
- package/dist/cdn/chunks/{AiChatSidebar-Cvp9beXR.js.map → AiChatSidebar-SRGBP-SL.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-vOJtwdmT.js → AiFeatureMenu-oZhlgsGh.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-vOJtwdmT.js.map → AiFeatureMenu-oZhlgsGh.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-CKIrYROg.js → BlockIssueBadge-05Q3L4RV.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-CKIrYROg.js.map → BlockIssueBadge-05Q3L4RV.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-CB27Joyn.js → BlockPreviewCanvas-hKxE6f-k.js} +6 -6
- package/dist/cdn/chunks/{BlockPreviewCanvas-CB27Joyn.js.map → BlockPreviewCanvas-hKxE6f-k.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-9tKrhPm6.js → CloudHeaderExtras-t-_ZlHwn.js} +5 -5
- package/dist/cdn/chunks/{CloudHeaderExtras-9tKrhPm6.js.map → CloudHeaderExtras-t-_ZlHwn.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-DTQ7zbEN.js → CloudPanels-DR2eEcpX.js} +7 -7
- package/dist/cdn/chunks/{CloudPanels-DTQ7zbEN.js.map → CloudPanels-DR2eEcpX.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-BKTkVMbz.js → CollaboratorBar-w8_2WPE0.js} +5 -5
- package/dist/cdn/chunks/{CollaboratorBar-BKTkVMbz.js.map → CollaboratorBar-w8_2WPE0.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-BjHRj_Yw.js → CommentsPanel-VH_NJ5HZ.js} +3 -3
- package/dist/cdn/chunks/{CommentsPanel-BjHRj_Yw.js.map → CommentsPanel-VH_NJ5HZ.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-CpCfqSq4.js → CommentsSidebar-CYPH5rVi.js} +5 -5
- package/dist/cdn/chunks/{CommentsSidebar-CpCfqSq4.js.map → CommentsSidebar-CYPH5rVi.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-sVDjKkRw.js → CountdownBlock-lHU3Lu7Q.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-sVDjKkRw.js.map → CountdownBlock-lHU3Lu7Q.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-C9QpHQcv.js → CountdownToolbar-CvNuDR5Z.js} +63 -62
- package/dist/cdn/chunks/CountdownToolbar-CvNuDR5Z.js.map +1 -0
- package/dist/cdn/chunks/{DesignReferenceSidebar-BO0xz1wC.js → DesignReferenceSidebar-CJg_5GXU.js} +21 -22
- package/dist/cdn/chunks/{DesignReferenceSidebar-BO0xz1wC.js.map → DesignReferenceSidebar-CJg_5GXU.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel--62qud8w.js → IssuesPanel-DXqlRk19.js} +6 -6
- package/dist/cdn/chunks/{IssuesPanel--62qud8w.js.map → IssuesPanel-DXqlRk19.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-_7DH_5aw.js → LoadingTrack-Cg1HRIND.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-_7DH_5aw.js.map → LoadingTrack-Cg1HRIND.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-gc8ICURV.js → LogicTagInsertButton-DnHghQHb.js} +11 -17
- package/dist/cdn/chunks/{LogicTagInsertButton-gc8ICURV.js.map → LogicTagInsertButton-DnHghQHb.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-BuDXKwx4.js → MediaEditModal-CD3fVbWI.js} +6 -14
- package/dist/cdn/chunks/{MediaEditModal-BuDXKwx4.js.map → MediaEditModal-CD3fVbWI.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-xFpaxFRH.js → MediaPanels-B2AyUUcf.js} +3 -3
- package/dist/cdn/chunks/{MediaPanels-xFpaxFRH.js.map → MediaPanels-B2AyUUcf.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-DsPKWbWr.js → MergeTagInput-heTX9P_k.js} +3 -3
- package/dist/cdn/chunks/{MergeTagInput-DsPKWbWr.js.map → MergeTagInput-heTX9P_k.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-DU0WqgVH.js → MergeTagModeToggle-C9EfuZIP.js} +6 -6
- package/dist/cdn/chunks/{MergeTagModeToggle-DU0WqgVH.js.map → MergeTagModeToggle-C9EfuZIP.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-BSDGOsja.js → ParagraphEditor-B5DN4Sy4.js} +145 -144
- package/dist/cdn/chunks/ParagraphEditor-B5DN4Sy4.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-DLe0Co57.js → RestoreVersionDialog-DBgJ-Nui.js} +5 -5
- package/dist/cdn/chunks/{RestoreVersionDialog-DLe0Co57.js.map → RestoreVersionDialog-DBgJ-Nui.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-Dkcts8Vh.js → RichTextEditorContent-LOas4rfU.js} +8 -8
- package/dist/cdn/chunks/{RichTextEditorContent-Dkcts8Vh.js.map → RichTextEditorContent-LOas4rfU.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-DQzaED8U.js → SaveBlockDialog-Dx-QVQCX.js} +11 -11
- package/dist/cdn/chunks/{SaveBlockDialog-DQzaED8U.js.map → SaveBlockDialog-Dx-QVQCX.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-C2RQ-JCc.js +357 -0
- package/dist/cdn/chunks/SavedBlocksBrowserModal-C2RQ-JCc.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksPanels-lW7PMvJN.js → SavedBlocksPanels-BmRbvqqL.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-lW7PMvJN.js.map → SavedBlocksPanels-BmRbvqqL.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DEL0r3Bv.js → SavedBlocksPickBar-BzwKojoJ.js} +5 -5
- package/dist/cdn/chunks/{SavedBlocksPickBar-DEL0r3Bv.js.map → SavedBlocksPickBar-BzwKojoJ.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-BBRHCNcR.js → TemplateScoringPanel-C_57Bfkf.js} +8 -8
- package/dist/cdn/chunks/{TemplateScoringPanel-BBRHCNcR.js.map → TemplateScoringPanel-C_57Bfkf.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-vsFOU0oA.js → TemplateSettings-G-yV7C1C.js} +48 -47
- package/dist/cdn/chunks/TemplateSettings-G-yV7C1C.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailModal-B7Dr2eFa.js → TestEmailModal-lOeztfTN.js} +10 -10
- package/dist/cdn/chunks/{TestEmailModal-B7Dr2eFa.js.map → TestEmailModal-lOeztfTN.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-C3PTYDbT.js → TestEmailPanel-CZswVkk_.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-C3PTYDbT.js.map → TestEmailPanel-CZswVkk_.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-gHTla_4I.js → TitleEditor-CnTT2Y3H.js} +12 -12
- package/dist/cdn/chunks/{TitleEditor-gHTla_4I.js.map → TitleEditor-CnTT2Y3H.js.map} +1 -1
- package/dist/cdn/chunks/{ToggleSwitch-DoUNcLPP.js → ToggleSwitch-CLHteVMO.js} +3 -3
- package/dist/cdn/chunks/{ToggleSwitch-DoUNcLPP.js.map → ToggleSwitch-CLHteVMO.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-CnfNUkOY.js → Toolbar-K4tIkpG1.js} +415 -417
- package/dist/cdn/chunks/Toolbar-K4tIkpG1.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-BVUBOEQL.js → TplModal-OOT36AjS.js} +5 -5
- package/dist/cdn/chunks/{TplModal-BVUBOEQL.js.map → TplModal-OOT36AjS.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-Cp3EHO_P.js → VersionHistoryMenu-DbxuJgDO.js} +6 -6
- package/dist/cdn/chunks/{VersionHistoryMenu-Cp3EHO_P.js.map → VersionHistoryMenu-DbxuJgDO.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-Dcdy7ySA.js → VersionHistoryPanels-BrpYRSfW.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-Dcdy7ySA.js.map → VersionHistoryPanels-BrpYRSfW.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-BgkroXnG.js → VersionPreviewBanner-HRERIH-v.js} +4 -4
- package/dist/cdn/chunks/{VersionPreviewBanner-BgkroXnG.js.map → VersionPreviewBanner-HRERIH-v.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-23nAzweL.js → WrapperBlock-DdrnwH80.js} +4 -4
- package/dist/cdn/chunks/{WrapperBlock-23nAzweL.js.map → WrapperBlock-DdrnwH80.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-BMZi7sdX.js → blockTypeIcons-DdZP-3FM.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-BMZi7sdX.js.map → blockTypeIcons-DdZP-3FM.js.map} +1 -1
- package/dist/cdn/chunks/{ca-DSwai-th.js → ca-C__Dzq--.js} +7 -1
- package/dist/cdn/chunks/ca-C__Dzq--.js.map +1 -0
- package/dist/cdn/chunks/{cloud-DLQU5l0Z.js → cloud-bhW8qTnh.js} +4 -4
- package/dist/cdn/chunks/{cloud-DLQU5l0Z.js.map → cloud-bhW8qTnh.js.map} +1 -1
- package/dist/cdn/chunks/{createCloudRuntime-Mnx8kV2W.js → createCloudRuntime-CeRJkLR2.js} +9 -12
- package/dist/cdn/chunks/{createCloudRuntime-Mnx8kV2W.js.map → createCloudRuntime-CeRJkLR2.js.map} +1 -1
- package/dist/{de-DOhKuphf.js → cdn/chunks/de-CGjbQ2mt.js} +8 -0
- package/dist/cdn/chunks/de-CGjbQ2mt.js.map +1 -0
- package/dist/cdn/chunks/{dist-BRZhN8qJ.js → dist-B7W-Lb65.js} +2 -2
- package/dist/cdn/chunks/{dist-BRZhN8qJ.js.map → dist-B7W-Lb65.js.map} +1 -1
- package/dist/cdn/chunks/{dist-CXB2_kBa.js → dist-C5nRd_ua.js} +5 -13
- package/dist/cdn/chunks/{dist-CXB2_kBa.js.map → dist-C5nRd_ua.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-IB4x6w2O.js → draggable-BUTN5vZC.js} +32 -77
- package/dist/cdn/chunks/{draggable-IB4x6w2O.js.map → draggable-BUTN5vZC.js.map} +1 -1
- package/dist/cdn/chunks/{editor-modal-B7NNAFI5.js → editor-modal-BpsbYA4_.js} +14 -34
- package/dist/cdn/chunks/{editor-modal-B7NNAFI5.js.map → editor-modal-BpsbYA4_.js.map} +1 -1
- package/dist/{en-BE28ZcUF.js → cdn/chunks/en-BTiiAC-B.js} +8 -0
- package/dist/cdn/chunks/en-BTiiAC-B.js.map +1 -0
- package/dist/cdn/chunks/en-CAt6y87e.js +1 -0
- package/dist/{es-oQI-dfx2.js → cdn/chunks/es-CdTOcSTf.js} +8 -0
- package/dist/cdn/chunks/es-CdTOcSTf.js.map +1 -0
- package/dist/cdn/chunks/{extensions-ClmkNA8R.js → extensions-xjRsIjMP.js} +9 -17
- package/dist/cdn/chunks/{extensions-ClmkNA8R.js.map → extensions-xjRsIjMP.js.map} +1 -1
- package/dist/{fr-rzLdCMSG.js → cdn/chunks/fr-B6lcLLzC.js} +8 -0
- package/dist/cdn/chunks/fr-B6lcLLzC.js.map +1 -0
- package/dist/cdn/chunks/{htmlparser-ClUZ6waR.js → htmlparser-CDRsn-gn.js} +3 -11
- package/dist/cdn/chunks/{htmlparser-ClUZ6waR.js.map → htmlparser-CDRsn-gn.js.map} +1 -1
- package/dist/cdn/chunks/{icons-BjvraR-Y.js → icons-Dr9erFGs.js} +48 -48
- package/dist/cdn/chunks/{icons-BjvraR-Y.js.map → icons-Dr9erFGs.js.map} +1 -1
- package/dist/{ja-dyFc6Ghz.js → cdn/chunks/ja-BhdkqENz.js} +8 -0
- package/dist/cdn/chunks/ja-BhdkqENz.js.map +1 -0
- package/dist/cdn/chunks/{keys-DCWeHkSF.js → keys-BKu-LOk5.js} +2 -2
- package/dist/cdn/chunks/{keys-DCWeHkSF.js.map → keys-BKu-LOk5.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-DXPjcePu.js → liquid.browser-Bbt17cVz.js} +30 -56
- package/dist/cdn/chunks/{liquid.browser-DXPjcePu.js.map → liquid.browser-Bbt17cVz.js.map} +1 -1
- package/dist/{nl-BcQhRqKR.js → cdn/chunks/nl-CE3YItYg.js} +8 -0
- package/dist/cdn/chunks/nl-CE3YItYg.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-Bg3rIgGJ.js → preRenderCustomBlocks-CFwa7nP9.js} +2 -2
- package/dist/cdn/chunks/{preRenderCustomBlocks-Bg3rIgGJ.js.map → preRenderCustomBlocks-CFwa7nP9.js.map} +1 -1
- package/dist/{pt-BR-UombhTMO.js → cdn/chunks/pt-BR-CUIT4rq4.js} +8 -0
- package/dist/cdn/chunks/pt-BR-CUIT4rq4.js.map +1 -0
- package/dist/cdn/chunks/{pusher-BbIHJKf3.js → pusher-C8DeiO2X.js} +18 -57
- package/dist/cdn/chunks/{pusher-BbIHJKf3.js.map → pusher-C8DeiO2X.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-CnUJBZTO.js → socialIcons-CsYnPPll.js} +14 -24
- package/dist/cdn/chunks/socialIcons-CsYnPPll.js.map +1 -0
- package/dist/cdn/chunks/{src-QIGNPFkl.js → src-BcqNlDMe.js} +258 -237
- package/dist/cdn/chunks/src-BcqNlDMe.js.map +1 -0
- package/dist/cdn/chunks/{src-CLHnxvuS.js → src-CkXmV2I2.js} +174 -179
- package/dist/cdn/chunks/src-CkXmV2I2.js.map +1 -0
- package/dist/cdn/chunks/{src-B5-VKcRQ.js → src-HA9F2kvk.js} +141 -179
- package/dist/cdn/chunks/{src-B5-VKcRQ.js.map → src-HA9F2kvk.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-02G9FGkl.js → tiptap-CYDXLO17.js} +87 -134
- package/dist/cdn/chunks/{tiptap-02G9FGkl.js.map → tiptap-CYDXLO17.js.map} +1 -1
- package/dist/cdn/chunks/{useAliveFlag-DAlQLbM2.js → useAliveFlag-DzyXG-8A.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-DAlQLbM2.js.map → useAliveFlag-DzyXG-8A.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-CrjWbpbu.js → useCloudI18n-Cgk0ts_F.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-CrjWbpbu.js.map → useCloudI18n-Cgk0ts_F.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-DjD7fJpq.js → useEditorCore-BF1ZhcGu.js} +476 -520
- package/dist/cdn/chunks/useEditorCore-BF1ZhcGu.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-DDPIcEOO.js +10 -0
- package/dist/cdn/chunks/{useEditorRoot-CshefZLP.js.map → useEditorRoot-DDPIcEOO.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-CyO_Nmca.js → useI18n-DO4NTunW.js} +3 -3
- package/dist/cdn/chunks/{useI18n-CyO_Nmca.js.map → useI18n-DO4NTunW.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-D6lWY0bD.js → useLogicTag-91bO_SOi.js} +4 -4
- package/dist/cdn/chunks/{useLogicTag-D6lWY0bD.js.map → useLogicTag-91bO_SOi.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-2iW-BKWW.js → useMergeTag-hwifK582.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-2iW-BKWW.js.map → useMergeTag-hwifK582.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-DGXjXKjM.js → usePopoverPosition-CtVNwoHj.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-DGXjXKjM.js.map → usePopoverPosition-CtVNwoHj.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-DgHZJvID.js → useScrollToBlock-BDNJ25X1.js} +3 -3
- package/dist/cdn/chunks/{useScrollToBlock-DgHZJvID.js.map → useScrollToBlock-BDNJ25X1.js.map} +1 -1
- package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js +32 -0
- package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +89 -118
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-DNyj-E0y.js → check-ZKvtMdpe.js} +1 -1
- package/dist/{chevron-down-BYnhkMsA.js → chevron-down-RrwkYMlp.js} +1 -1
- package/dist/{chevron-right-D9HGBqJo.js → chevron-right-CklHaa1U.js} +1 -1
- package/dist/{chevron-up-BnIR1-ma.js → chevron-up-DjN2NTbo.js} +1 -1
- package/dist/{circle-alert-B6xl1B_M.js → circle-alert-BR1_Yfb-.js} +1 -1
- package/dist/{clock-Cs5Wd3dW.js → clock-BEagNj21.js} +1 -1
- package/dist/{cloud-BNEL7bxL.js → cloud-CVfwPu19.js} +2 -2
- package/dist/{copy-6uKc-WBk.js → copy-D6DNoSq1.js} +1 -1
- package/dist/{createCloudRuntime-CaZapQZ6.js → createCloudRuntime-GRv_TDb2.js} +8 -11
- package/dist/{createLucideIcon-BVcoovvP.js → createLucideIcon-BAPyioGd.js} +6 -6
- package/dist/{cdn/chunks/de-DOhKuphf.js → de-CGjbQ2mt.js} +6 -2
- package/dist/{dist-CmwBvyW0.js → dist-1H4cnaoD.js} +3 -3
- package/dist/{dist-D4HP93ZF.js → dist-5DAb7bYT.js} +1 -1
- package/dist/{dist-DdSWMtEP.js → dist-5KNKxglR.js} +1 -1
- package/dist/{dist-BDuPwOyn.js → dist-B_vYjCsk.js} +4 -12
- package/dist/{dist-Ceew_u40.js → dist-Bc30883t.js} +6 -22
- package/dist/{dist-Czzst9ng.js → dist-Bd7khQsg.js} +3 -11
- package/dist/{dist-8VFzbeu9.js → dist-C-VFTX82.js} +1 -1
- package/dist/{dist-BYg1EL5g.js → dist-C3eH9-N2.js} +1 -1
- package/dist/{dist-Dw2_11LA.js → dist-CFC4pg2o.js} +1 -1
- package/dist/{dist-BgSLW3Hn.js → dist-CMcFD7gP.js} +72 -87
- package/dist/{dist-HjILVdTA.js → dist-CSaWqmWM.js} +143 -126
- package/dist/{dist-DmQckB4p.js → dist-DHensKDY.js} +1 -1
- package/dist/{dist-CWc7nIkA.js → dist-DapsJxn_.js} +1 -1
- package/dist/{dist-D2m55Lvs.js → dist-j2FavQmU.js} +1 -1
- package/dist/{dist-8By0p8ah.js → dist-lL3nVbxV.js} +1 -1
- package/dist/{editor-modal-Co-rZGaf.js → editor-modal-oRmkDlUs.js} +27 -47
- package/dist/{cdn/chunks/en-BE28ZcUF.js → en-BTiiAC-B.js} +6 -2
- package/dist/en-Bk4iCfjp.js +1 -0
- package/dist/{cdn/chunks/es-oQI-dfx2.js → es-CdTOcSTf.js} +6 -2
- package/dist/{extensions-DXSI8Dyj.js → extensions-B65sfZRk.js} +42 -58
- package/dist/{eye-Nbtw_q05.js → eye-DvsTBI57.js} +1 -1
- package/dist/{cdn/chunks/fr-rzLdCMSG.js → fr-B6lcLLzC.js} +6 -2
- package/dist/{image-up-C1jC7NzQ.js → image-up-BoFGZm5Q.js} +1 -1
- package/dist/index.d.ts +12 -1
- package/dist/{info-ClH66pKN.js → info-0bQQGjTV.js} +1 -1
- package/dist/{cdn/chunks/ja-dyFc6Ghz.js → ja-BhdkqENz.js} +6 -2
- package/dist/{keys-CDqfZIRt.js → keys-injl74ob.js} +1 -1
- package/dist/{link-y47GNW0o.js → link-Cstrr3Ep.js} +1 -1
- package/dist/{liquid.browser-Cs4gOjeX.js → liquid.browser-Ct2-EezB.js} +29 -55
- package/dist/{list-DiLMlMaE.js → list-Dx9Rmy5s.js} +1 -1
- package/dist/{loader-circle-BRdCPW5h.js → loader-circle-D8Qqs0MG.js} +1 -1
- package/dist/{message-circle-CNgIpVJv.js → message-circle-D78ELX6I.js} +1 -1
- package/dist/{cdn/chunks/nl-BcQhRqKR.js → nl-CE3YItYg.js} +6 -2
- package/dist/{package-B9OWk-Kp.js → package-DOvM9sHE.js} +1 -1
- package/dist/{pencil-BDnjo24u.js → pencil-B6m0OG0n.js} +1 -1
- package/dist/{plus-BMgjN7lI.js → plus-D-nEKxTc.js} +1 -1
- package/dist/{preRenderCustomBlocks-C_PIxBp7.js → preRenderCustomBlocks-DAS48ZCp.js} +1 -1
- package/dist/{cdn/chunks/pt-BR-UombhTMO.js → pt-BR-CUIT4rq4.js} +6 -2
- package/dist/{refresh-cw-CR5lenxl.js → refresh-cw-CXZS-R1U.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-BGbPz4-g.js → runtime-dom.esm-bundler-CO67ema2.js} +15 -16
- package/dist/{search-CxRUiOSF.js → search-DSvil0jo.js} +1 -1
- package/dist/{send-Bu2RysGL.js → send-BBR28V94.js} +1 -1
- package/dist/{shield-check-Cg8f4LB0.js → shield-check-ByxUnaU9.js} +1 -1
- package/dist/{smartphone-CHf-8lHp.js → smartphone-CNOwGf5T.js} +1 -1
- package/dist/{socialIcons-D1gkHc_i.js → socialIcons-CvAixjj8.js} +14 -24
- package/dist/{sparkles-_DQGv4ub.js → sparkles-DO1hzwzf.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +101 -130
- package/dist/{text-align-start-PHo-Ep5i.js → text-align-start-BKEKMheq.js} +13 -13
- package/dist/{trash-BxIzHAri.js → trash-CKEQH4vH.js} +1 -1
- package/dist/{triangle-alert-fcb2KoA-.js → triangle-alert-BHnfd3fV.js} +1 -1
- package/dist/{upload-BxBtMPMv.js → upload-C8uO7KsR.js} +1 -1
- package/dist/{useAliveFlag-BkKyhkwZ.js → useAliveFlag-6PtarpNZ.js} +1 -1
- package/dist/{useCloudI18n-DpEsiLeR.js → useCloudI18n-GvIOLziA.js} +2 -2
- package/dist/{useEditorCore-iuKC8yr5.js → useEditorCore-DQSeKPE9.js} +940 -1007
- package/dist/{useEditorRoot-CkB_5d0h.js → useEditorRoot-OWzNpDdT.js} +2 -2
- package/dist/{useI18n-B_CdcBwG.js → useI18n-uF11q85g.js} +2 -2
- package/dist/{useLogicTag-wqfdwYYR.js → useLogicTag-BH87j1vZ.js} +3 -3
- package/dist/{useMergeTag-D3XDE_58.js → useMergeTag-DfPKX2Tk.js} +3 -3
- package/dist/{usePopoverPosition-BYmd-lhR.js → usePopoverPosition-DkBrHfCo.js} +2 -2
- package/dist/{useScrollToBlock-DA_aIJXS.js → useScrollToBlock-Dr7Sb6Tr.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-CyqhBwpY.js → vue.runtime.esm-bundler-CctRY8kr.js} +13 -45
- package/dist/withCurrentFont-DeCbPVaE.js +30 -0
- package/dist/{x-DrZO5tt0.js → x-gEC0yMci.js} +1 -1
- package/package.json +12 -12
- package/dist/SavedBlocksBrowserModal-DeUo5aFV.js +0 -325
- package/dist/TemplateSettings-Bh10NFIN.js +0 -245
- package/dist/cdn/chunks/CountdownToolbar-C9QpHQcv.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-BSDGOsja.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-CliZBxHo.js +0 -322
- package/dist/cdn/chunks/SavedBlocksBrowserModal-CliZBxHo.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-vsFOU0oA.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-CnfNUkOY.js.map +0 -1
- package/dist/cdn/chunks/ca-DSwai-th.js.map +0 -1
- package/dist/cdn/chunks/de-DOhKuphf.js.map +0 -1
- package/dist/cdn/chunks/en-BE28ZcUF.js.map +0 -1
- package/dist/cdn/chunks/en-C3n0qWte.js +0 -2
- package/dist/cdn/chunks/es-oQI-dfx2.js.map +0 -1
- package/dist/cdn/chunks/fr-rzLdCMSG.js.map +0 -1
- package/dist/cdn/chunks/ja-dyFc6Ghz.js.map +0 -1
- package/dist/cdn/chunks/nl-BcQhRqKR.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-UombhTMO.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-CnUJBZTO.js.map +0 -1
- package/dist/cdn/chunks/src-CLHnxvuS.js.map +0 -1
- package/dist/cdn/chunks/src-QIGNPFkl.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-DjD7fJpq.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-CshefZLP.js +0 -10
- package/dist/en-B-xoKkWi.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as e } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { _ as t } from "./keys-
|
|
1
|
+
import { S as e } from "./vue.runtime.esm-bundler-CctRY8kr.js";
|
|
2
|
+
import { _ as t } from "./keys-injl74ob.js";
|
|
3
3
|
//#region src/composables/useEditorRoot.ts
|
|
4
4
|
function n() {
|
|
5
5
|
return e(t, document) ?? document;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { K as e, S as t } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { Y as n } from "./keys-
|
|
1
|
+
import { K as e, S as t } from "./vue.runtime.esm-bundler-CctRY8kr.js";
|
|
2
|
+
import { Y as n } from "./keys-injl74ob.js";
|
|
3
3
|
//#region src/composables/useI18n.ts
|
|
4
4
|
function r(r) {
|
|
5
5
|
let i = r ?? t(n, null);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as e, Z as t } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { c as n } from "./dist-
|
|
3
|
-
import { D as r, E as i, I as a, P as o, T as s, w as c } from "./keys-
|
|
1
|
+
import { S as e, Z as t } from "./vue.runtime.esm-bundler-CctRY8kr.js";
|
|
2
|
+
import { c as n } from "./dist-CSaWqmWM.js";
|
|
3
|
+
import { D as r, E as i, I as a, P as o, T as s, w as c } from "./keys-injl74ob.js";
|
|
4
4
|
//#region src/composables/useLogicTag.ts
|
|
5
5
|
function l() {
|
|
6
6
|
let l = e(s, []), u = e(c, []), d = e(o, n.liquid), f = e(a, null), p = e(i, null), m = e(r, null) ?? t(!1), h = !!f || l.length > 0 || u.length > 0, g = l.length > 0 || u.length > 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as e, Z as t, s as n } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { I as r, U as i, c as a } from "./dist-
|
|
3
|
-
import { A as o, F as s, N as c, O as l, P as u, R as d, Y as f, j as p, k as m } from "./keys-
|
|
1
|
+
import { S as e, Z as t, s as n } from "./vue.runtime.esm-bundler-CctRY8kr.js";
|
|
2
|
+
import { I as r, U as i, c as a } from "./dist-CSaWqmWM.js";
|
|
3
|
+
import { A as o, F as s, N as c, O as l, P as u, R as d, Y as f, j as p, k as m } from "./keys-injl74ob.js";
|
|
4
4
|
//#region src/composables/useMergeTag.ts
|
|
5
5
|
function h() {
|
|
6
6
|
let h = e(l, s), g = e(u, a.liquid), _ = e(d, null), v = e(m, !0), y = e(o, null), b = e(c, !0), x = e(f, null)?.mergeTag.unknownLabel ?? "Merge tag", S = e(p, null) ?? t(!1);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as e, Z as t } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { B as n } from "./keys-
|
|
1
|
+
import { S as e, Z as t } from "./vue.runtime.esm-bundler-CctRY8kr.js";
|
|
2
|
+
import { B as n } from "./keys-injl74ob.js";
|
|
3
3
|
//#region src/utils/resolveColorsConfig.ts
|
|
4
4
|
var r = {
|
|
5
5
|
presets: [],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as e } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { t } from "./createLucideIcon-
|
|
3
|
-
import { t as n } from "./useEditorRoot-
|
|
1
|
+
import { E as e } from "./vue.runtime.esm-bundler-CctRY8kr.js";
|
|
2
|
+
import { t } from "./createLucideIcon-BAPyioGd.js";
|
|
3
|
+
import { t as n } from "./useEditorRoot-OWzNpDdT.js";
|
|
4
4
|
var r = t({
|
|
5
5
|
name: "list-checks",
|
|
6
6
|
size: 24,
|
|
@@ -240,11 +240,7 @@ var P, Le = /* @__PURE__ */ new WeakSet(), Re = class {
|
|
|
240
240
|
}
|
|
241
241
|
}, ze = 0, Be, Ve;
|
|
242
242
|
function He(e, t = !1) {
|
|
243
|
-
|
|
244
|
-
e.next = Ve, Ve = e;
|
|
245
|
-
return;
|
|
246
|
-
}
|
|
247
|
-
e.next = Be, Be = e;
|
|
243
|
+
e.flags |= 8, t ? (e.next = Ve, Ve = e) : (e.next = Be, Be = e);
|
|
248
244
|
}
|
|
249
245
|
function Ue() {
|
|
250
246
|
ze++;
|
|
@@ -1887,11 +1883,7 @@ function Ni(e) {
|
|
|
1887
1883
|
let r = e.isConnected, i = !1;
|
|
1888
1884
|
(t.bu ||= []).push(() => i = !0);
|
|
1889
1885
|
let o = () => {
|
|
1890
|
-
|
|
1891
|
-
process.env.NODE_ENV !== "production" && V(`Skipping lazy hydration for component '${Js(u) || u.__file}': it was updated before lazy hydration performed.`);
|
|
1892
|
-
return;
|
|
1893
|
-
}
|
|
1894
|
-
!e.parentNode || r && !e.isConnected || n();
|
|
1886
|
+
i ? process.env.NODE_ENV !== "production" && V(`Skipping lazy hydration for component '${Js(u) || u.__file}': it was updated before lazy hydration performed.`) : !e.parentNode || r && !e.isConnected || n();
|
|
1895
1887
|
}, s = a ? () => {
|
|
1896
1888
|
let n = a(o, (t) => ji(e, t));
|
|
1897
1889
|
n && (t.bum ||= []).push(n);
|
|
@@ -1921,11 +1913,7 @@ function Ni(e) {
|
|
|
1921
1913
|
}, o)), p().then(() => {
|
|
1922
1914
|
e.isUnmounted || (a.value = !0, e.parent && Fi(e.parent.vnode) && e.parent.update());
|
|
1923
1915
|
}).catch((n) => {
|
|
1924
|
-
|
|
1925
|
-
l = null;
|
|
1926
|
-
return;
|
|
1927
|
-
}
|
|
1928
|
-
t(n), c.value = n;
|
|
1916
|
+
e.isUnmounted ? l = null : (t(n), c.value = n);
|
|
1929
1917
|
}), () => {
|
|
1930
1918
|
if (a.value && u) return Pi(u, e);
|
|
1931
1919
|
if (c.value && r) return Q(r, { error: c.value });
|
|
@@ -2086,11 +2074,8 @@ var ca = (e) => e ? Fs(e) ? Gs(e) : ca(e.parent) : null, la = (e) => {
|
|
|
2086
2074
|
continue;
|
|
2087
2075
|
}
|
|
2088
2076
|
let r = e.suspense;
|
|
2089
|
-
if (r && r.activeBranch)
|
|
2090
|
-
|
|
2091
|
-
continue;
|
|
2092
|
-
}
|
|
2093
|
-
return t ? e.el : void 0;
|
|
2077
|
+
if (r && r.activeBranch) e = r.activeBranch;
|
|
2078
|
+
else return t ? e.el : void 0;
|
|
2094
2079
|
}
|
|
2095
2080
|
}, ua = (e) => {
|
|
2096
2081
|
let t = e.subTree && la(e.subTree);
|
|
@@ -2794,11 +2779,8 @@ function go(e, t, n) {
|
|
|
2794
2779
|
}
|
|
2795
2780
|
function _o(e, t, n, r, i) {
|
|
2796
2781
|
let { type: a, required: o, validator: s, skipCheck: c } = n;
|
|
2797
|
-
if (o && i)
|
|
2798
|
-
|
|
2799
|
-
return;
|
|
2800
|
-
}
|
|
2801
|
-
if (t != null || o) {
|
|
2782
|
+
if (o && i) V("Missing required prop: \"" + e + "\"");
|
|
2783
|
+
else if (t != null || o) {
|
|
2802
2784
|
if (a != null && a !== !0 && !c) {
|
|
2803
2785
|
let n = !1, r = d(a) ? a : [a], i = [];
|
|
2804
2786
|
for (let e = 0; e < r.length && !n; e++) {
|
|
@@ -3178,29 +3160,15 @@ function zo(e, i) {
|
|
|
3178
3160
|
}
|
|
3179
3161
|
}, me = (e, t, n, r, i = null) => {
|
|
3180
3162
|
let { el: a, type: c, transition: l, children: u, shapeFlag: d } = e;
|
|
3181
|
-
if (d & 6)
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
if (d & 128) {
|
|
3186
|
-
e.suspense.move(t, n, r);
|
|
3187
|
-
return;
|
|
3188
|
-
}
|
|
3189
|
-
if (d & 64) {
|
|
3190
|
-
c.move(e, t, n, Se);
|
|
3191
|
-
return;
|
|
3192
|
-
}
|
|
3193
|
-
if (c === Y) {
|
|
3163
|
+
if (d & 6) me(e.component.subTree, t, n, r);
|
|
3164
|
+
else if (d & 128) e.suspense.move(t, n, r);
|
|
3165
|
+
else if (d & 64) c.move(e, t, n, Se);
|
|
3166
|
+
else if (c === Y) {
|
|
3194
3167
|
o(a, t, n);
|
|
3195
3168
|
for (let e = 0; e < u.length; e++) me(u[e], t, n, r);
|
|
3196
3169
|
o(e.anchor, t, n);
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
if (c === Zo) {
|
|
3200
|
-
C(e, t, n);
|
|
3201
|
-
return;
|
|
3202
|
-
}
|
|
3203
|
-
if (r !== 2 && d & 1 && l) {
|
|
3170
|
+
} else if (c === Zo) C(e, t, n);
|
|
3171
|
+
else if (r !== 2 && d & 1 && l) {
|
|
3204
3172
|
if (r === 0) l.persisted && !a[G] ? o(a, t, n) : (l.beforeEnter(a), o(a, t, n), J(() => l.enter(a), i));
|
|
3205
3173
|
else {
|
|
3206
3174
|
let { leave: r, delayLeave: i, afterLeave: c } = l, u = () => {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//#region src/utils/withCurrentFont.ts
|
|
2
|
+
var e = /* @__PURE__ */ new Set([
|
|
3
|
+
"inherit",
|
|
4
|
+
"initial",
|
|
5
|
+
"unset",
|
|
6
|
+
"revert",
|
|
7
|
+
"revert-layer"
|
|
8
|
+
]);
|
|
9
|
+
function t(e) {
|
|
10
|
+
return e.replace(/!\s*important\s*$/i, "").trim();
|
|
11
|
+
}
|
|
12
|
+
function n(n) {
|
|
13
|
+
if (!n) return "";
|
|
14
|
+
let r = t(n);
|
|
15
|
+
return r === "" || e.has(r.toLowerCase()) ? "" : n;
|
|
16
|
+
}
|
|
17
|
+
function r(e, r) {
|
|
18
|
+
let i = n(r);
|
|
19
|
+
if (i === "" || e.some((e) => e.value === i)) return e;
|
|
20
|
+
let a = t(i).split(",")[0].trim().replace(/^["']|["']$/g, "").trim(), o = a.toLowerCase(), s = e.findIndex((e) => e.label.toLowerCase() === o || e.value.toLowerCase() === o);
|
|
21
|
+
return s === -1 ? [{
|
|
22
|
+
value: i,
|
|
23
|
+
label: a
|
|
24
|
+
}, ...e] : e.map((e, t) => t === s ? {
|
|
25
|
+
...e,
|
|
26
|
+
value: i
|
|
27
|
+
} : e);
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { r as n, n as t };
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@templatical/editor",
|
|
3
3
|
"description": "Vue 3 visual drag-and-drop email editor powered by Templatical",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.45.0",
|
|
5
5
|
"bugs": "https://github.com/templatical/sdk/issues",
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"@lucide/vue": "^1.
|
|
8
|
-
"@templatical/core": "0.
|
|
9
|
-
"@templatical/media-library": "0.
|
|
10
|
-
"@templatical/quality": "0.
|
|
11
|
-
"@templatical/types": "0.
|
|
7
|
+
"@lucide/vue": "^1.55.0",
|
|
8
|
+
"@templatical/core": "0.45.0",
|
|
9
|
+
"@templatical/media-library": "0.45.0",
|
|
10
|
+
"@templatical/quality": "0.45.0",
|
|
11
|
+
"@templatical/types": "0.45.0",
|
|
12
12
|
"@tiptap/core": "^3.31.4",
|
|
13
13
|
"@tiptap/extension-color": "^3.31.4",
|
|
14
14
|
"@tiptap/extension-font-family": "^3.31.4",
|
|
@@ -22,21 +22,21 @@
|
|
|
22
22
|
"@tiptap/starter-kit": "^3.31.4",
|
|
23
23
|
"@tiptap/suggestion": "^3.31.4",
|
|
24
24
|
"@tiptap/vue-3": "^3.31.4",
|
|
25
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
25
|
+
"@vitejs/plugin-vue": "^6.0.10",
|
|
26
26
|
"@vue/test-utils": "^2.5.1",
|
|
27
27
|
"@vueuse/core": "^15.0.0",
|
|
28
28
|
"es-module-lexer": "^3.0.3",
|
|
29
|
-
"happy-dom": "^20.14.
|
|
29
|
+
"happy-dom": "^20.14.6",
|
|
30
30
|
"jsdom": "30.1.2",
|
|
31
31
|
"liquidjs": "^10.30.0",
|
|
32
32
|
"tailwindcss": "^4.3.3",
|
|
33
33
|
"typescript": "^6.0.3",
|
|
34
34
|
"vanilla-colorful": "^0.7.2",
|
|
35
|
-
"vite": "^8.3.
|
|
35
|
+
"vite": "^8.3.4",
|
|
36
36
|
"vitest": "^5.0.3",
|
|
37
37
|
"vue": "^3.5.43",
|
|
38
38
|
"vue-draggable-plus": "^0.6.1",
|
|
39
|
-
"vue-tsc": "^3.3.
|
|
39
|
+
"vue-tsc": "^3.3.13"
|
|
40
40
|
},
|
|
41
41
|
"exports": {
|
|
42
42
|
".": {
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"license": "FSL-1.1-MIT",
|
|
65
65
|
"module": "./dist/templatical-editor.js",
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"@templatical/quality": "0.
|
|
68
|
-
"@templatical/renderer": "0.
|
|
67
|
+
"@templatical/quality": "0.45.0",
|
|
68
|
+
"@templatical/renderer": "0.45.0",
|
|
69
69
|
"pusher-js": "^8.6.0"
|
|
70
70
|
},
|
|
71
71
|
"peerDependenciesMeta": {
|
|
@@ -1,325 +0,0 @@
|
|
|
1
|
-
import { A as e, At as t, B as n, E as r, F as i, M as a, R as o, S as ee, V as s, Z as c, _ as te, at as l, c as u, d, g as f, jt as p, kt as m, l as h, r as g, s as _, u as v, v as y } from "./vue.runtime.esm-bundler-CyqhBwpY.js";
|
|
2
|
-
import { a as b, c as x, i as S, s as C } from "./runtime-dom.esm-bundler-BGbPz4-g.js";
|
|
3
|
-
import "./useEditorCore-iuKC8yr5.js";
|
|
4
|
-
import { $ as w, U as ne, X as re, g as ie } from "./keys-CDqfZIRt.js";
|
|
5
|
-
import { t as ae } from "./useI18n-B_CdcBwG.js";
|
|
6
|
-
import { t as T } from "./blockTypeIcons-DEvNVvBj.js";
|
|
7
|
-
import { t as E } from "./package-B9OWk-Kp.js";
|
|
8
|
-
import { t as oe } from "./pencil-BDnjo24u.js";
|
|
9
|
-
import { t as se } from "./search-CxRUiOSF.js";
|
|
10
|
-
import { t as ce } from "./trash-BxIzHAri.js";
|
|
11
|
-
import { t as le } from "./x-DrZO5tt0.js";
|
|
12
|
-
import { v as ue } from "./styleConstants-C_YAPdQS.js";
|
|
13
|
-
import { t as de } from "./formatAbsoluteDateTime-DMmop3C-.js";
|
|
14
|
-
import { t as fe } from "./formatRelativeTime-CtUU-QZ8.js";
|
|
15
|
-
import { t as pe } from "./TplModal-D6lqrKls.js";
|
|
16
|
-
//#region src/components/SavedBlocksBrowserModal.vue?vue&type=script&setup=true&lang.ts
|
|
17
|
-
var me = {
|
|
18
|
-
role: "dialog",
|
|
19
|
-
"aria-modal": "true",
|
|
20
|
-
"data-testid": "saved-blocks-browser",
|
|
21
|
-
"aria-labelledby": "tpl-saved-blocks-browser-title",
|
|
22
|
-
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)]",
|
|
23
|
-
style: {
|
|
24
|
-
"background-color": "var(--tpl-bg-elevated)",
|
|
25
|
-
"box-shadow": "var(--tpl-shadow-xl)"
|
|
26
|
-
}
|
|
27
|
-
}, he = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:px-5 tpl:py-4 tpl:border-[var(--tpl-border)]" }, ge = {
|
|
28
|
-
id: "tpl-saved-blocks-browser-title",
|
|
29
|
-
class: "tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
30
|
-
}, _e = ["aria-label"], ve = { class: "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:overflow-hidden" }, ye = { class: "tpl:flex tpl:w-[300px] tpl:shrink-0 tpl:flex-col tpl:overflow-hidden" }, be = { class: "tpl:flex tpl:flex-col tpl:gap-2 tpl:px-4 tpl:pt-4 tpl:pb-3" }, xe = { class: "tpl:relative" }, Se = ["placeholder", "disabled"], Ce = ["aria-label"], we = { value: "" }, Te = ["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 = {
|
|
31
|
-
key: 1,
|
|
32
|
-
class: "tpl:flex tpl:flex-col tpl:gap-1"
|
|
33
|
-
}, ke = ["onFocusout"], Ae = ["aria-label", "onKeydown"], je = [
|
|
34
|
-
"aria-label",
|
|
35
|
-
"placeholder",
|
|
36
|
-
"onKeydown"
|
|
37
|
-
], Me = ["onClick"], Ne = ["aria-pressed"], Pe = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Fe = {
|
|
38
|
-
"data-testid": "saved-block-name",
|
|
39
|
-
class: "tpl:flex-1 tpl:truncate tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
40
|
-
}, Ie = { 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)]" }, Le = {
|
|
41
|
-
key: 0,
|
|
42
|
-
class: "tpl:mt-1 tpl:flex tpl:items-center"
|
|
43
|
-
}, Re = {
|
|
44
|
-
"data-testid": "saved-block-category",
|
|
45
|
-
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)]"
|
|
46
|
-
}, ze = { class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1" }, Be = {
|
|
47
|
-
key: 0,
|
|
48
|
-
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]"
|
|
49
|
-
}, Ve = ["title"], He = ["aria-label", "onClick"], Ue = [
|
|
50
|
-
"aria-label",
|
|
51
|
-
"title",
|
|
52
|
-
"onClick"
|
|
53
|
-
], We = [
|
|
54
|
-
"aria-label",
|
|
55
|
-
"title",
|
|
56
|
-
"onClick"
|
|
57
|
-
], Ge = {
|
|
58
|
-
key: 2,
|
|
59
|
-
class: "tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:py-12"
|
|
60
|
-
}, Ke = {
|
|
61
|
-
key: 0,
|
|
62
|
-
class: "tpl:mt-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
63
|
-
}, qe = { class: "tpl:mt-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, Je = { class: "tpl:mt-1 tpl:max-w-[220px] tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, Ye = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-hidden tpl:border-l tpl:border-[var(--tpl-border)]" }, Xe = {
|
|
64
|
-
key: 0,
|
|
65
|
-
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-hidden"
|
|
66
|
-
}, Ze = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Qe = {
|
|
67
|
-
key: 1,
|
|
68
|
-
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:items-center tpl:justify-center tpl:px-4"
|
|
69
|
-
}, $e = { class: "tpl:mt-2 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, et = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:px-5 tpl:py-3 tpl:border-[var(--tpl-border)]" }, tt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, nt = { class: "tpl:shrink-0 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, rt = ["value"], it = { class: "tpl:flex tpl:gap-2" }, at = ["disabled"], k = /* @__PURE__ */ y({
|
|
70
|
-
__name: "SavedBlocksBrowserModal",
|
|
71
|
-
props: { visible: { type: Boolean } },
|
|
72
|
-
emits: ["close", "insert"],
|
|
73
|
-
setup(y, { emit: k }) {
|
|
74
|
-
let ot = y, A = k, st = te(() => import("./BlockPreviewCanvas-2vVu55yN.js").then((e) => e.n)), { t: j, format: M } = ae(), N = w(ne, "SavedBlocksBrowserModal"), P = w(ie, "SavedBlocksBrowserModal"), ct = ee(re, void 0), F = c(""), I = c(""), L = c(null), R = c(null), z = c(null), B = c(""), V = c(""), H = c(null), U = c("end"), W = _(() => {
|
|
75
|
-
let e = F.value.trim().toLowerCase(), t = I.value;
|
|
76
|
-
return N.savedBlocks.value.filter((n) => !(e && !n.name.toLowerCase().includes(e) || t && n.category !== t));
|
|
77
|
-
}), G = _(() => N.isLoading.value && N.savedBlocks.value.length === 0), lt = _(() => F.value.trim().length > 0 || I.value !== ""), K = _(() => L.value ? N.savedBlocks.value.find((e) => e.id === L.value) ?? null : null), ut = _(() => {
|
|
78
|
-
let e = [{
|
|
79
|
-
value: "beginning",
|
|
80
|
-
label: j.savedBlocks.insertAtBeginning
|
|
81
|
-
}], t = P.content.value.blocks;
|
|
82
|
-
for (let n = 0; n < t.length; n++) {
|
|
83
|
-
let r = t[n], i = r.type, a = j.blocks[i] ?? r.type;
|
|
84
|
-
e.push({
|
|
85
|
-
value: r.id,
|
|
86
|
-
label: M(j.savedBlocks.insertAfterBlock, { block: `${a} ${n + 1}` })
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
return e.push({
|
|
90
|
-
value: "end",
|
|
91
|
-
label: j.savedBlocks.insertAtEnd
|
|
92
|
-
}), e;
|
|
93
|
-
}), q = _(() => {
|
|
94
|
-
if (U.value === "end") return;
|
|
95
|
-
if (U.value === "beginning") return 0;
|
|
96
|
-
let e = P.content.value.blocks.findIndex((e) => e.id === U.value);
|
|
97
|
-
if (e !== -1) return e + 1;
|
|
98
|
-
});
|
|
99
|
-
o(() => ot.visible, (e) => {
|
|
100
|
-
if (e) {
|
|
101
|
-
F.value = "", I.value = "", L.value = null, R.value = null, z.value = null;
|
|
102
|
-
let e = P.state.selectedBlockId;
|
|
103
|
-
if (e) {
|
|
104
|
-
let t = P.content.value.blocks.findIndex((t) => t.id === e);
|
|
105
|
-
U.value = t === -1 ? "end" : e;
|
|
106
|
-
} else U.value = "end";
|
|
107
|
-
}
|
|
108
|
-
}, { immediate: !0 });
|
|
109
|
-
function dt(e) {
|
|
110
|
-
let t = [], n = /* @__PURE__ */ new Set();
|
|
111
|
-
for (let r of e.content) if (!n.has(r.type) && T[r.type] && (n.add(r.type), t.push({
|
|
112
|
-
type: r.type,
|
|
113
|
-
icon: T[r.type]
|
|
114
|
-
})), t.length >= 5) break;
|
|
115
|
-
return t;
|
|
116
|
-
}
|
|
117
|
-
function J(e) {
|
|
118
|
-
let t = new Set(e.content.map((e) => e.type));
|
|
119
|
-
return Math.max(0, t.size - 5);
|
|
120
|
-
}
|
|
121
|
-
function Y(e) {
|
|
122
|
-
let t = e.updatedAt ?? e.createdAt;
|
|
123
|
-
return t ? fe(t, j.time, M) ?? "" : "";
|
|
124
|
-
}
|
|
125
|
-
function ft(e) {
|
|
126
|
-
let t = e.updatedAt ?? e.createdAt;
|
|
127
|
-
return t ? de(t, ct) : "";
|
|
128
|
-
}
|
|
129
|
-
async function pt(e) {
|
|
130
|
-
try {
|
|
131
|
-
await N.remove(e), L.value === e && (L.value = null);
|
|
132
|
-
} finally {
|
|
133
|
-
R.value = null;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
async function mt(e) {
|
|
137
|
-
N.canUpdateBlock(e) && (z.value = e.id, B.value = e.name, V.value = e.category ?? "", R.value = null, await r(), H.value?.focus(), H.value?.select());
|
|
138
|
-
}
|
|
139
|
-
function X() {
|
|
140
|
-
z.value = null, B.value = "", V.value = "";
|
|
141
|
-
}
|
|
142
|
-
async function Z(e) {
|
|
143
|
-
if (z.value !== e) return;
|
|
144
|
-
let t = B.value.trim(), n = V.value.trim(), r = N.savedBlocks.value.find((t) => t.id === e), i = {};
|
|
145
|
-
if (t && t !== r?.name && (i.name = t), n !== (r?.category ?? "") && (i.category = n), Object.keys(i).length === 0) {
|
|
146
|
-
X();
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
try {
|
|
150
|
-
await N.update(e, i);
|
|
151
|
-
} finally {
|
|
152
|
-
X();
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
function ht(e, t) {
|
|
156
|
-
let n = e.currentTarget, r = e.relatedTarget;
|
|
157
|
-
r && n.contains(r) || Z(t);
|
|
158
|
-
}
|
|
159
|
-
function Q() {
|
|
160
|
-
K.value && A("insert", K.value, q.value);
|
|
161
|
-
}
|
|
162
|
-
function $() {
|
|
163
|
-
A("close");
|
|
164
|
-
}
|
|
165
|
-
function gt(e) {
|
|
166
|
-
z.value || (e.key === "Escape" && $(), e.key === "Enter" && K.value && (e.preventDefault(), Q()));
|
|
167
|
-
}
|
|
168
|
-
return (r, o) => (e(), h(pe, {
|
|
169
|
-
visible: y.visible,
|
|
170
|
-
onClose: $,
|
|
171
|
-
onKeydown: gt
|
|
172
|
-
}, {
|
|
173
|
-
default: n(() => [u("div", me, [
|
|
174
|
-
u("div", he, [u("h3", ge, p(l(j).savedBlocks.browse), 1), u("button", {
|
|
175
|
-
"aria-label": l(j).savedBlocks.close,
|
|
176
|
-
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)]",
|
|
177
|
-
onClick: $
|
|
178
|
-
}, [f(l(le), {
|
|
179
|
-
size: 16,
|
|
180
|
-
"stroke-width": 2
|
|
181
|
-
})], 8, _e)]),
|
|
182
|
-
u("div", ve, [u("div", ye, [
|
|
183
|
-
u("div", be, [u("div", xe, [f(l(se), {
|
|
184
|
-
size: 14,
|
|
185
|
-
"stroke-width": 2,
|
|
186
|
-
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)]"
|
|
187
|
-
}), s(u("input", {
|
|
188
|
-
"onUpdate:modelValue": o[0] ||= (e) => F.value = e,
|
|
189
|
-
type: "text",
|
|
190
|
-
placeholder: l(j).savedBlocks.search,
|
|
191
|
-
disabled: G.value,
|
|
192
|
-
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:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)] tpl:disabled:opacity-50 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
|
|
193
|
-
}, null, 8, Se), [[b, F.value]])]), l(N).categories.value.length > 0 ? s((e(), d("select", {
|
|
194
|
-
key: 0,
|
|
195
|
-
"onUpdate:modelValue": o[1] ||= (e) => I.value = e,
|
|
196
|
-
"data-testid": "saved-blocks-category-filter",
|
|
197
|
-
"aria-label": l(j).savedBlocks.filterByCategory,
|
|
198
|
-
class: "tpl:h-8 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)] tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
|
|
199
|
-
}, [u("option", we, p(l(j).savedBlocks.allCategories), 1), (e(!0), d(g, null, a(l(N).categories.value, (t) => (e(), d("option", {
|
|
200
|
-
key: t,
|
|
201
|
-
value: t
|
|
202
|
-
}, p(t), 9, Te))), 128))], 8, Ce)), [[S, I.value]]) : v("", !0)]),
|
|
203
|
-
u("datalist", D, [(e(!0), d(g, null, a(l(N).categories.value, (t) => (e(), d("option", {
|
|
204
|
-
key: t,
|
|
205
|
-
value: t
|
|
206
|
-
}, null, 8, O))), 128))]),
|
|
207
|
-
u("div", Ee, [G.value ? (e(), d("div", {
|
|
208
|
-
key: 0,
|
|
209
|
-
"data-testid": "saved-blocks-loading",
|
|
210
|
-
class: "tpl:flex tpl:flex-col tpl:gap-1",
|
|
211
|
-
role: "status",
|
|
212
|
-
"aria-busy": "true",
|
|
213
|
-
"aria-label": l(j).savedBlocks.loading
|
|
214
|
-
}, [(e(), d(g, null, a(3, (e) => u("div", {
|
|
215
|
-
key: e,
|
|
216
|
-
"aria-hidden": "true",
|
|
217
|
-
class: "tpl-saved-block-skeleton tpl:rounded-[var(--tpl-radius-md)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)]"
|
|
218
|
-
}, [...o[7] ||= [u("div", { class: "tpl:h-3 tpl:w-1/2 tpl:rounded tpl:bg-[var(--tpl-bg-hover)]" }, null, -1), u("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 ? (e(), d("div", Oe, [(e(!0), d(g, null, a(W.value, (n) => (e(), d(g, { key: n.id }, [z.value === n.id ? (e(), d("div", {
|
|
219
|
-
key: 0,
|
|
220
|
-
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)]",
|
|
221
|
-
style: { "background-color": "var(--tpl-primary-light)" },
|
|
222
|
-
onFocusout: (e) => ht(e, n.id)
|
|
223
|
-
}, [s(u("input", {
|
|
224
|
-
ref_for: !0,
|
|
225
|
-
ref: (e) => H.value = e,
|
|
226
|
-
"onUpdate:modelValue": o[2] ||= (e) => B.value = e,
|
|
227
|
-
type: "text",
|
|
228
|
-
"aria-label": l(j).savedBlocks.rename,
|
|
229
|
-
class: "tpl:h-7 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)] tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
230
|
-
onKeydown: [C(x((e) => Z(n.id), ["prevent", "stop"]), ["enter"]), o[3] ||= C(x((e) => X(), ["prevent", "stop"]), ["esc"])]
|
|
231
|
-
}, null, 40, Ae), [[b, B.value]]), s(u("input", {
|
|
232
|
-
"onUpdate:modelValue": o[4] ||= (e) => V.value = e,
|
|
233
|
-
type: "text",
|
|
234
|
-
"data-testid": "saved-blocks-edit-category",
|
|
235
|
-
"aria-label": l(j).savedBlocks.category,
|
|
236
|
-
placeholder: l(j).savedBlocks.categoryPlaceholder,
|
|
237
|
-
list: "tpl-saved-block-browser-categories",
|
|
238
|
-
class: "tpl:h-7 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)] tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
239
|
-
onKeydown: [C(x((e) => Z(n.id), ["prevent", "stop"]), ["enter"]), o[5] ||= C(x((e) => X(), ["prevent", "stop"]), ["esc"])]
|
|
240
|
-
}, null, 40, je), [[b, V.value]])], 40, ke)) : (e(), d("div", {
|
|
241
|
-
key: 1,
|
|
242
|
-
"data-testid": "saved-block-card",
|
|
243
|
-
class: "tpl:group/card tpl:relative 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]",
|
|
244
|
-
style: t({
|
|
245
|
-
borderColor: L.value === n.id ? "var(--tpl-primary)" : "var(--tpl-border)",
|
|
246
|
-
backgroundColor: L.value === n.id ? "var(--tpl-primary-light)" : "transparent"
|
|
247
|
-
}),
|
|
248
|
-
onClick: (e) => L.value = n.id
|
|
249
|
-
}, [u("button", {
|
|
250
|
-
type: "button",
|
|
251
|
-
"aria-pressed": L.value === n.id,
|
|
252
|
-
class: "tpl-saved-block-select tpl:block tpl:w-full tpl:text-left"
|
|
253
|
-
}, [u("span", Pe, [u("span", Fe, p(n.name), 1), u("span", Ie, p(l(M)(l(j).savedBlocks.blockCount, { count: n.content.length })), 1)]), n.category ? (e(), d("span", Le, [u("span", Re, p(n.category), 1)])) : v("", !0)], 8, Ne), u("div", ze, [
|
|
254
|
-
(e(!0), d(g, null, a(dt(n), (t) => (e(), h(i(t.icon), {
|
|
255
|
-
key: t.type,
|
|
256
|
-
size: 14,
|
|
257
|
-
"stroke-width": 1.5,
|
|
258
|
-
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
259
|
-
}))), 128)),
|
|
260
|
-
J(n) > 0 ? (e(), d("span", Be, " +" + p(J(n)), 1)) : v("", !0),
|
|
261
|
-
Y(n) ? (e(), d("span", {
|
|
262
|
-
key: 1,
|
|
263
|
-
"data-testid": "saved-block-updated",
|
|
264
|
-
class: "tpl:ml-1 tpl:truncate tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]",
|
|
265
|
-
title: ft(n)
|
|
266
|
-
}, p(Y(n)), 9, Ve)) : v("", !0),
|
|
267
|
-
R.value === n.id ? (e(), d("button", {
|
|
268
|
-
key: 2,
|
|
269
|
-
"aria-label": l(j).savedBlocks.deleteConfirm,
|
|
270
|
-
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)]",
|
|
271
|
-
style: { "background-color": "transparent" },
|
|
272
|
-
onClick: x((e) => pt(n.id), ["stop"])
|
|
273
|
-
}, p(l(j).savedBlocks.deleteConfirm), 9, He)) : (e(), d(g, { key: 3 }, [l(N).canUpdateBlock(n) ? (e(), d("button", {
|
|
274
|
-
key: 0,
|
|
275
|
-
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)]",
|
|
276
|
-
"aria-label": l(j).savedBlocks.rename,
|
|
277
|
-
title: l(j).savedBlocks.rename,
|
|
278
|
-
onClick: x((e) => mt(n), ["stop"])
|
|
279
|
-
}, [f(l(oe), {
|
|
280
|
-
size: 12,
|
|
281
|
-
"stroke-width": 1.5
|
|
282
|
-
})], 8, Ue)) : v("", !0), l(N).canDeleteBlock(n) ? (e(), d("button", {
|
|
283
|
-
key: 1,
|
|
284
|
-
class: m(["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": !l(N).canUpdateBlock(n) }]),
|
|
285
|
-
"aria-label": l(j).savedBlocks.delete,
|
|
286
|
-
title: l(j).savedBlocks.delete,
|
|
287
|
-
onClick: x((e) => R.value = n.id, ["stop"])
|
|
288
|
-
}, [f(l(ce), {
|
|
289
|
-
size: 12,
|
|
290
|
-
"stroke-width": 1.5
|
|
291
|
-
})], 10, We)) : v("", !0)], 64))
|
|
292
|
-
])], 12, Me))], 64))), 128))])) : (e(), d("div", Ge, [f(l(E), {
|
|
293
|
-
size: 32,
|
|
294
|
-
"stroke-width": 1,
|
|
295
|
-
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
296
|
-
}), lt.value ? (e(), d("p", Ke, p(l(j).savedBlocks.noResults), 1)) : (e(), d(g, { key: 1 }, [u("p", qe, p(l(j).savedBlocks.empty), 1), u("p", Je, p(l(j).savedBlocks.emptyHint), 1)], 64))]))])
|
|
297
|
-
]), u("div", Ye, [K.value ? (e(), d("div", Xe, [u("div", Ze, [f(l(st), { blocks: K.value.content }, null, 8, ["blocks"])])])) : (e(), d("div", Qe, [f(l(E), {
|
|
298
|
-
size: 32,
|
|
299
|
-
"stroke-width": 1,
|
|
300
|
-
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
301
|
-
}), u("p", $e, p(l(j).savedBlocks.selectToPreview), 1)]))])]),
|
|
302
|
-
u("div", et, [u("div", tt, [u("label", nt, p(l(j).savedBlocks.insertPosition), 1), s(u("select", {
|
|
303
|
-
"onUpdate:modelValue": o[6] ||= (e) => U.value = e,
|
|
304
|
-
class: "tpl:h-7 tpl:max-w-[220px] tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)] tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
|
|
305
|
-
}, [(e(!0), d(g, null, a(ut.value, (t) => (e(), d("option", {
|
|
306
|
-
key: t.value,
|
|
307
|
-
value: t.value
|
|
308
|
-
}, p(t.label), 9, rt))), 128))], 512), [[S, U.value]])]), u("div", it, [u("button", {
|
|
309
|
-
type: "button",
|
|
310
|
-
"data-testid": "saved-blocks-browser-close",
|
|
311
|
-
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)]",
|
|
312
|
-
onClick: $
|
|
313
|
-
}, p(l(j).savedBlocks.close), 1), u("button", {
|
|
314
|
-
type: "button",
|
|
315
|
-
class: m(l(ue)),
|
|
316
|
-
disabled: !K.value,
|
|
317
|
-
onClick: Q
|
|
318
|
-
}, p(l(j).savedBlocks.insert), 11, at)])])
|
|
319
|
-
])]),
|
|
320
|
-
_: 1
|
|
321
|
-
}, 8, ["visible"]));
|
|
322
|
-
}
|
|
323
|
-
});
|
|
324
|
-
//#endregion
|
|
325
|
-
export { k as default };
|