@templatical/editor 0.52.1 → 0.54.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/AiAltTextPopover-NMJqQKvD.js +106 -0
- package/dist/{AiAltTextReview-9ySsXOTU.js → AiAltTextReview-Ci4zHwRc.js} +68 -66
- package/dist/AiChatPanel-C8SeEJRP.js +561 -0
- package/dist/{AiPanels-DqT4PgQ0.js → AiPanels-CR6zphjP.js} +6 -6
- package/dist/{AiRewriteMenu-28agTycW.js → AiRewriteMenu-CIHUnPud.js} +76 -105
- package/dist/BlockIssueBadge-DaPTq1RE.js +33 -0
- package/dist/BlockPreviewCanvas-B70RSavL.js +140 -0
- package/dist/{CloudHeaderExtras-QI82yF54.js → CloudHeaderExtras-XpjJjn3o.js} +4 -4
- package/dist/{CloudPanels-BKJaLkUN.js → CloudPanels-VpSQiLLL.js} +53 -53
- package/dist/CollaborationNotices-Cnx0XHzZ.js +65 -0
- package/dist/{CollaboratorBar-CXQqN3VP.js → CollaboratorBar-BaBoNhwB.js} +24 -24
- package/dist/CommentsPanel-Ck3QmqiC.js +16 -0
- package/dist/CommentsSidebar-CHknhOar.js +526 -0
- package/dist/{CountdownBlock-CU2yTWtF.js → CountdownBlock-BMezkFbJ.js} +15 -15
- package/dist/CountdownToolbar-CM4XNEuO.js +258 -0
- package/dist/IssuesPanel-1wGV0wiy.js +371 -0
- package/dist/LanguageMenu-d2GlX67r.js +403 -0
- package/dist/{LoadingTrack-DM4g6j7b.js → LoadingTrack-BG8cg9xi.js} +2 -2
- package/dist/LocaleNotices-WzsYtBRs.js +46 -0
- package/dist/LogicTagInsertButton-DgTJ6Lvx.js +1096 -0
- package/dist/{MediaEditModal-Dy08GEwE.js → MediaEditModal-C3U9Mi31.js} +451 -451
- package/dist/{MediaPanels-BgEp7iCp.js → MediaPanels-CGmk9ufe.js} +4 -4
- package/dist/{MergeTagInput-B9dtUthD.js → MergeTagInput-B_51YcQO.js} +30 -30
- package/dist/{MergeTagModeToggle-DxujhYJ4.js → MergeTagModeToggle-D3Q2z317.js} +49 -49
- package/dist/MergeTagTextarea-DZz1L9DE.js +126 -0
- package/dist/ParagraphEditor-CI68PYDL.js +825 -0
- package/dist/{RestoreVersionDialog-C4s_JYCx.js → RestoreVersionDialog-DcuhpOIz.js} +23 -23
- package/dist/{RichTextEditorContent-o6HmE8GR.js → RichTextEditorContent-Dstovi0m.js} +47 -47
- package/dist/{SaveBlockDialog-CWLrly6l.js → SaveBlockDialog-vuwvoi-d.js} +86 -86
- package/dist/{cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js → SavedBlocksBrowserModal-DUJm0dOv.js} +135 -132
- package/dist/{SavedBlocksPanels-BE1N9rNZ.js → SavedBlocksPanels-BiMXQ5lY.js} +9 -9
- package/dist/{SavedBlocksPickBar-Dwl94xhP.js → SavedBlocksPickBar-CAstZfG7.js} +15 -15
- package/dist/TemplateSettings-Baar78_s.js +294 -0
- package/dist/TestEmailModal-Bl_GHdrN.js +212 -0
- package/dist/{TestEmailPanel-DaFjP9QK.js → TestEmailPanel-CpTBF7B5.js} +4 -4
- package/dist/TitleEditor-DkbEDAZB.js +202 -0
- package/dist/ToggleSwitch-R3wCCYE6.js +43 -0
- package/dist/Toolbar-bOZ_eq7X.js +3711 -0
- package/dist/{TplModal-DLMssVlt.js → TplModal-wk2gLa7_.js} +17 -17
- package/dist/{VersionHistoryMenu-BkbYUs0Q.js → VersionHistoryMenu-BnP0EyLl.js} +39 -39
- package/dist/{VersionHistoryPanels-DP7HaYWv.js → VersionHistoryPanels-Cq2rFKIX.js} +5 -5
- package/dist/VersionPreviewBanner-BPP939cD.js +37 -0
- package/dist/WrapperBlock-cWT_nZgQ.js +44 -0
- package/dist/{blockTypeIcons-BHjlPnPf.js → blockTypeIcons-BUyPZ7Su.js} +7 -7
- package/dist/bundle-stats.json +8 -8
- package/dist/{cdn/chunks/ca-CD-Kt1qz.js → ca-DOuIxWRv.js} +114 -2
- package/dist/cdn/chunks/AiAltTextPopover-Cnc_kUmb.js +107 -0
- package/dist/cdn/chunks/AiAltTextPopover-Cnc_kUmb.js.map +1 -0
- package/dist/cdn/chunks/{AiAltTextReview-BGLLSKLm.js → AiAltTextReview-DPeSY-7r.js} +70 -68
- package/dist/cdn/chunks/AiAltTextReview-DPeSY-7r.js.map +1 -0
- package/dist/cdn/chunks/AiChatPanel-By8Uo1nH.js +487 -0
- package/dist/cdn/chunks/AiChatPanel-By8Uo1nH.js.map +1 -0
- package/dist/cdn/chunks/{AiPanels-0wBarZSH.js → AiPanels-BblCSkQy.js} +11 -11
- package/dist/cdn/chunks/{AiPanels-0wBarZSH.js.map → AiPanels-BblCSkQy.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-qf-cfEpy.js → AiRewriteMenu-C4btyN4W.js} +79 -79
- package/dist/cdn/chunks/AiRewriteMenu-C4btyN4W.js.map +1 -0
- package/dist/cdn/chunks/BlockIssueBadge-D3Plo_wt.js +34 -0
- package/dist/cdn/chunks/BlockIssueBadge-D3Plo_wt.js.map +1 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-CTKmBPsq.js +142 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-DGBh6mqe.js.map → BlockPreviewCanvas-CTKmBPsq.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js → CloudHeaderExtras-BtqdN777.js} +4 -4
- package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js.map → CloudHeaderExtras-BtqdN777.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js → CloudPanels-COU26R83.js} +45 -45
- package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js.map → CloudPanels-COU26R83.js.map} +1 -1
- package/dist/cdn/chunks/CollaborationNotices-DraFUhyo.js +67 -0
- package/dist/cdn/chunks/CollaborationNotices-DraFUhyo.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js → CollaboratorBar-0OEH3hrj.js} +17 -17
- package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js.map → CollaboratorBar-0OEH3hrj.js.map} +1 -1
- package/dist/cdn/chunks/CommentsPanel-tZZswofV.js +18 -0
- package/dist/cdn/chunks/{CommentsPanel-DoJnKLXI.js.map → CommentsPanel-tZZswofV.js.map} +1 -1
- package/dist/cdn/chunks/CommentsSidebar-7Hfl3Hdj.js +496 -0
- package/dist/cdn/chunks/CommentsSidebar-7Hfl3Hdj.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js → CountdownBlock-CjMhMhnv.js} +22 -22
- package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js.map → CountdownBlock-CjMhMhnv.js.map} +1 -1
- package/dist/cdn/chunks/CountdownToolbar-CNgsNL5-.js +260 -0
- package/dist/cdn/chunks/CountdownToolbar-CNgsNL5-.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-C7LfxaAY.js → IssuesPanel-Duic0mIs.js} +133 -121
- package/dist/cdn/chunks/IssuesPanel-Duic0mIs.js.map +1 -0
- package/dist/cdn/chunks/LanguageMenu-B1Aue_lf.js +359 -0
- package/dist/cdn/chunks/LanguageMenu-B1Aue_lf.js.map +1 -0
- package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js → LoadingTrack-DUYcDHOV.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js.map → LoadingTrack-DUYcDHOV.js.map} +1 -1
- package/dist/cdn/chunks/LocaleNotices-8J2DRWeg.js +47 -0
- package/dist/cdn/chunks/LocaleNotices-8J2DRWeg.js.map +1 -0
- package/dist/{LogicTagInsertButton-CfscnwCn.js → cdn/chunks/LogicTagInsertButton-Bhvi0nWz.js} +422 -449
- package/dist/cdn/chunks/LogicTagInsertButton-Bhvi0nWz.js.map +1 -0
- package/dist/cdn/chunks/{MediaEditModal-Cpcod6_U.js → MediaEditModal-Dz972UFx.js} +421 -421
- package/dist/cdn/chunks/MediaEditModal-Dz972UFx.js.map +1 -0
- package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js → MediaPanels-C6Hqtp1H.js} +5 -5
- package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js.map → MediaPanels-C6Hqtp1H.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js → MergeTagInput-CrhZm-AW.js} +28 -28
- package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js.map → MergeTagInput-CrhZm-AW.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BgKEVUtV.js → MergeTagModeToggle-CWVtXLYa.js} +52 -52
- package/dist/cdn/chunks/MergeTagModeToggle-CWVtXLYa.js.map +1 -0
- package/dist/cdn/chunks/MergeTagTextarea-hTIBwX0F.js +128 -0
- package/dist/cdn/chunks/MergeTagTextarea-hTIBwX0F.js.map +1 -0
- package/dist/cdn/chunks/ParagraphEditor-B2UU1Q5I.js +660 -0
- package/dist/cdn/chunks/ParagraphEditor-B2UU1Q5I.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js → RestoreVersionDialog-C1Y5Ewo_.js} +22 -22
- package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js.map → RestoreVersionDialog-C1Y5Ewo_.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js → RichTextEditorContent-up4AqL7D.js} +44 -44
- package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js.map → RichTextEditorContent-up4AqL7D.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js → SaveBlockDialog-B9lwEP_T.js} +77 -77
- package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js.map → SaveBlockDialog-B9lwEP_T.js.map} +1 -1
- package/dist/{SavedBlocksBrowserModal-CE8n4EBS.js → cdn/chunks/SavedBlocksBrowserModal-fAeHUyxb.js} +103 -106
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BPYcRoGa.js.map → SavedBlocksBrowserModal-fAeHUyxb.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js → SavedBlocksPanels-DRDTLDyZ.js} +9 -9
- package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js.map → SavedBlocksPanels-DRDTLDyZ.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js → SavedBlocksPickBar-B6b5z-o3.js} +16 -16
- package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js.map → SavedBlocksPickBar-B6b5z-o3.js.map} +1 -1
- package/dist/cdn/chunks/TemplateSettings-CWUpUKJb.js +266 -0
- package/dist/cdn/chunks/TemplateSettings-CWUpUKJb.js.map +1 -0
- package/dist/cdn/chunks/TestEmailModal-DQxnW5Q5.js +212 -0
- package/dist/cdn/chunks/TestEmailModal-DQxnW5Q5.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js → TestEmailPanel-BcO_-16H.js} +5 -5
- package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js.map → TestEmailPanel-BcO_-16H.js.map} +1 -1
- package/dist/cdn/chunks/TitleEditor-pmycpmTd.js +202 -0
- package/dist/cdn/chunks/TitleEditor-pmycpmTd.js.map +1 -0
- package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js +45 -0
- package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js.map +1 -0
- package/dist/cdn/chunks/Toolbar-BlWVQRcA.js +3626 -0
- package/dist/cdn/chunks/Toolbar-BlWVQRcA.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js → TplModal-ClSSGX7a.js} +20 -20
- package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js.map → TplModal-ClSSGX7a.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js → VersionHistoryMenu-CZury5gU.js} +33 -33
- package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js.map → VersionHistoryMenu-CZury5gU.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js → VersionHistoryPanels-B8GPBKMq.js} +6 -6
- package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js.map → VersionHistoryPanels-B8GPBKMq.js.map} +1 -1
- package/dist/cdn/chunks/VersionPreviewBanner-C4Ji8nu4.js +39 -0
- package/dist/cdn/chunks/VersionPreviewBanner-C4Ji8nu4.js.map +1 -0
- package/dist/cdn/chunks/WrapperBlock-BoUflYwY.js +46 -0
- package/dist/cdn/chunks/WrapperBlock-BoUflYwY.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js → blockTypeIcons-Cc6RJ27V.js} +5 -5
- package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js.map → blockTypeIcons-Cc6RJ27V.js.map} +1 -1
- package/dist/{ca-CD-Kt1qz.js → cdn/chunks/ca-DOuIxWRv.js} +116 -0
- package/dist/cdn/chunks/ca-DOuIxWRv.js.map +1 -0
- package/dist/cdn/chunks/composables-C1KU4ZHw.js +3039 -0
- package/dist/cdn/chunks/composables-C1KU4ZHw.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-Cth2JCEh.js → createCloudRuntime-C2Zs5F1O.js} +75 -73
- package/dist/cdn/chunks/createCloudRuntime-C2Zs5F1O.js.map +1 -0
- package/dist/{de-CeFJ6wbM.js → cdn/chunks/de-DaOUfYBX.js} +116 -0
- package/dist/cdn/chunks/de-DaOUfYBX.js.map +1 -0
- package/dist/cdn/chunks/{dist-8ym3y-pH.js → dist-BzXULHvI.js} +48 -48
- package/dist/cdn/chunks/{dist-8ym3y-pH.js.map → dist-BzXULHvI.js.map} +1 -1
- package/dist/cdn/chunks/{dist-BMzNabtD.js → dist-DqGgijFI.js} +114 -114
- package/dist/cdn/chunks/{dist-BMzNabtD.js.map → dist-DqGgijFI.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-Du8AUMFT.js → draggable-DepKdldn.js} +1491 -1486
- package/dist/cdn/chunks/draggable-DepKdldn.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-CyCe560f.js → editor-modal-erQEOHZN.js} +781 -781
- package/dist/cdn/chunks/{editor-modal-CyCe560f.js.map → editor-modal-erQEOHZN.js.map} +1 -1
- package/dist/cdn/chunks/en-B6tLGRHq.js +1 -0
- package/dist/{en-D14i5nFh.js → cdn/chunks/en-C0pHHMiR.js} +116 -0
- package/dist/cdn/chunks/en-C0pHHMiR.js.map +1 -0
- package/dist/{es-zDacbMhs.js → cdn/chunks/es-CxyEKr6n.js} +116 -0
- package/dist/cdn/chunks/es-CxyEKr6n.js.map +1 -0
- package/dist/cdn/chunks/{extensions-CFF2KWy-.js → extensions-DcMKZpzh.js} +59 -59
- package/dist/cdn/chunks/{extensions-CFF2KWy-.js.map → extensions-DcMKZpzh.js.map} +1 -1
- package/dist/{fr-CSgYtjOd.js → cdn/chunks/fr-CYbamiI6.js} +116 -0
- package/dist/cdn/chunks/fr-CYbamiI6.js.map +1 -0
- package/dist/cdn/chunks/{icons-okSPsLOa.js → icons-Da9GKjPx.js} +188 -147
- package/dist/cdn/chunks/icons-Da9GKjPx.js.map +1 -0
- package/dist/{ja-B7H3ID8O.js → cdn/chunks/ja-DfaIAoGI.js} +116 -0
- package/dist/cdn/chunks/ja-DfaIAoGI.js.map +1 -0
- package/dist/cdn/chunks/keys-CoQtCqNv.js +11 -0
- package/dist/cdn/chunks/keys-CoQtCqNv.js.map +1 -0
- package/dist/cdn/chunks/languageName-DEEOhDWI.js +12 -0
- package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +1 -0
- package/dist/{nl-176ySmc5.js → cdn/chunks/nl-DkrB-VKZ.js} +116 -0
- package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +1 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js +290 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js.map +1 -0
- package/dist/cdn/chunks/noticeTones-D7BPu-Le.js +16 -0
- package/dist/cdn/chunks/noticeTones-D7BPu-Le.js.map +1 -0
- package/dist/cdn/chunks/plural-CyxrJXL1.js +17 -0
- package/dist/cdn/chunks/plural-CyxrJXL1.js.map +1 -0
- package/dist/{preRenderCustomBlocks--_xc0XK3.js → cdn/chunks/preRenderCustomBlocks-f7GEKdvw.js} +5 -3
- package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js.map → preRenderCustomBlocks-f7GEKdvw.js.map} +1 -1
- package/dist/{pt-BR-dDlTwX18.js → cdn/chunks/pt-BR-CY5Ye7eP.js} +116 -0
- package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +1 -0
- package/dist/cdn/chunks/sanitizeHtml-WTfz9lZd.js +61 -0
- package/dist/cdn/chunks/sanitizeHtml-WTfz9lZd.js.map +1 -0
- package/dist/cdn/chunks/socialIcons-DeCYorUT.js +2638 -0
- package/dist/cdn/chunks/socialIcons-DeCYorUT.js.map +1 -0
- package/dist/cdn/chunks/{src-DEd87i_U.js → src-A_cKeTM_.js} +618 -461
- package/dist/cdn/chunks/src-A_cKeTM_.js.map +1 -0
- package/dist/cdn/chunks/src-BQUv2CYU.js +2606 -0
- package/dist/cdn/chunks/src-BQUv2CYU.js.map +1 -0
- package/dist/cdn/chunks/src-BWX_xVxO.js +671 -0
- package/dist/cdn/chunks/src-BWX_xVxO.js.map +1 -0
- package/dist/{styleConstants-B8xVRiwX.js → cdn/chunks/styleConstants-CgiNKdnc.js} +7 -5
- package/dist/cdn/chunks/styleConstants-CgiNKdnc.js.map +1 -0
- package/dist/cdn/chunks/templateSettingsFields-cjlP-jdw.js.map +1 -1
- package/dist/cdn/chunks/{tiptap-CbiTlECY.js → tiptap-Dipw_zOQ.js} +40 -40
- package/dist/cdn/chunks/{tiptap-CbiTlECY.js.map → tiptap-Dipw_zOQ.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js → useCloudI18n-Cc5NZqiI.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js.map → useCloudI18n-Cc5NZqiI.js.map} +1 -1
- package/dist/cdn/chunks/useEditorRoot-D_LuZ_hE.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-vjZJwKrV.js.map → useEditorRoot-D_LuZ_hE.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-D8pY4LTq.js → useI18n-BnJYydPv.js} +3 -3
- package/dist/cdn/chunks/{useI18n-D8pY4LTq.js.map → useI18n-BnJYydPv.js.map} +1 -1
- package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js +33 -0
- package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js.map +1 -0
- package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js → useLogicTag-DtYe8HIq.js} +5 -5
- package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js.map → useLogicTag-DtYe8HIq.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js → useMergeTag-B8ULmsnp.js} +6 -6
- package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js.map → useMergeTag-B8ULmsnp.js.map} +1 -1
- package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js +78 -0
- package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js.map +1 -0
- package/dist/cdn/chunks/{useScrollToBlock-vjQ0fe-L.js → useScrollToBlock-Ct1AwLD-.js} +5 -5
- package/dist/cdn/chunks/useScrollToBlock-Ct1AwLD-.js.map +1 -0
- package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js → withCurrentFont-MK8ga9q9.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js.map → withCurrentFont-MK8ga9q9.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +2189 -1495
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-BZ8o0eet.js → check-XMnOOIEC.js} +1 -1
- package/dist/{chevron-down-DfAAfILv.js → chevron-down-DmamTEWQ.js} +1 -1
- package/dist/{chevron-right-Bk4mGdr7.js → chevron-right-BEFXOH27.js} +1 -1
- package/dist/{chevron-up-MhUf_azW.js → chevron-up-Dw7woXj8.js} +1 -1
- package/dist/{circle-alert-CShJwVFv.js → circle-alert-BTKC9vkq.js} +1 -1
- package/dist/{clock-CTfD6OCt.js → clock-BVT5u2uG.js} +1 -1
- package/dist/composables-CMIrGXJ1.js +4517 -0
- package/dist/{createCloudRuntime-DCgO4A1r.js → createCloudRuntime-DGV5a5Af.js} +54 -52
- package/dist/{createLucideIcon-CvhTA2KG.js → createLucideIcon-CgDE3xAR.js} +16 -16
- package/dist/{cdn/chunks/de-CeFJ6wbM.js → de-DaOUfYBX.js} +114 -2
- package/dist/{dist-ByCWA2Tv.js → dist-0alKVRc_.js} +101 -101
- package/dist/{dist-Cy8I5scI.js → dist-54VCNoC0.js} +2 -2
- package/dist/dist-6DU0me3E.js +4 -0
- package/dist/{dist-p3wymUDt.js → dist-B8dY8drK.js} +2 -2
- package/dist/{dist-Dd5MU2Ev.js → dist-B9a7iVye.js} +2 -2
- package/dist/{dist-V7W1UhVr.js → dist-BWflWcpW.js} +2 -2
- package/dist/{dist-D6fZec6r.js → dist-C3hu_C3w.js} +2 -2
- package/dist/{dist-CVy-7PHQ.js → dist-CX7skkvG.js} +48 -48
- package/dist/dist-CcOn7WCo.js +4 -0
- package/dist/dist-Cdkm20M6.js +2542 -0
- package/dist/{dist-BS5uKktL.js → dist-ChOb5XHW.js} +2 -2
- package/dist/{dist-BF5zEHop.js → dist-DZ3X-uB8.js} +2 -2
- package/dist/{dist-CWSG7Kj0.js → dist-D_XrUEET.js} +5 -5
- package/dist/{dist-txQLT2sF.js → dist-TAv500j6.js} +2 -2
- package/dist/{dist-D6cMdrfG.js → dist-fqSers8_.js} +55 -55
- package/dist/{editor-modal-zaZHcmlO.js → editor-modal-BeX6otLk.js} +953 -952
- package/dist/{cdn/chunks/en-D14i5nFh.js → en-C0pHHMiR.js} +114 -2
- package/dist/en-Do0SU6tR.js +1 -0
- package/dist/{cdn/chunks/es-zDacbMhs.js → es-CxyEKr6n.js} +114 -2
- package/dist/{extensions-fo_c-vqf.js → extensions-BJ184osp.js} +173 -173
- package/dist/{eye-7W4t5e0Q.js → eye-ByMgHeA_.js} +1 -1
- package/dist/{cdn/chunks/fr-CSgYtjOd.js → fr-CYbamiI6.js} +114 -2
- package/dist/{image-BDiRFzSd.js → image-Ch8tR35K.js} +1 -1
- package/dist/index.d.ts +182 -14
- package/dist/{info-Cxi3-Kh9.js → info-DzSD-Wpk.js} +1 -1
- package/dist/{cdn/chunks/ja-B7H3ID8O.js → ja-DfaIAoGI.js} +114 -2
- package/dist/keys-BCqskl51.js +9 -0
- package/dist/languageName-DEEOhDWI.js +10 -0
- package/dist/{link-ju_2Cmir.js → link-oDn9AR2w.js} +1 -1
- package/dist/{list-DYZJf0aZ.js → list-C5t07dp8.js} +1 -1
- package/dist/{loader-circle-BZRD0a4I.js → loader-circle-k6xvKgUB.js} +1 -1
- package/dist/{message-circle-DuEw4Zfx.js → message-circle-C23R6OJR.js} +1 -1
- package/dist/{cdn/chunks/nl-176ySmc5.js → nl-DkrB-VKZ.js} +114 -2
- package/dist/normalizeMergeTagMarkup-CUCo7B5X.js +288 -0
- package/dist/noticeTones-D7BPu-Le.js +14 -0
- package/dist/{package-CePMr2kK.js → package-C90eQ7NU.js} +1 -1
- package/dist/{pencil-D3aFCL7c.js → pencil-BK7GrQuA.js} +1 -1
- package/dist/plural-CyxrJXL1.js +15 -0
- package/dist/plus-Cr0Mis63.js +13 -0
- package/dist/{cdn/chunks/preRenderCustomBlocks-BcXIz7oJ.js → preRenderCustomBlocks-Bs3N9no-.js} +4 -6
- package/dist/{cdn/chunks/pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +114 -2
- package/dist/{refresh-cw-xnro7_Sk.js → refresh-cw-_ZLOIEvA.js} +2 -12
- package/dist/rotate-ccw-CB5wsHwv.js +13 -0
- package/dist/{runtime-dom.esm-bundler-BURR-bj5.js → runtime-dom.esm-bundler-DlHp8xgy.js} +154 -154
- package/dist/sanitizeHtml-2rjV0r-6.js +962 -0
- package/dist/{search-CDrstRBv.js → search-BmrQNox8.js} +1 -1
- package/dist/{send-DROkPOaX.js → send-blAsIBBg.js} +1 -1
- package/dist/{smartphone-Bx6u_tjn.js → smartphone-BPpWYrwV.js} +1 -1
- package/dist/socialIcons-TFiOkpoU.js +2705 -0
- package/dist/{sparkles-CdaTtvoz.js → sparkles-OqIxrNp-.js} +1 -1
- package/dist/{square-BbCROH_f.js → square-BP-V7iT-.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{cdn/chunks/styleConstants-B8xVRiwX.js → styleConstants-CgiNKdnc.js} +5 -7
- package/dist/templatical-editor.js +2438 -1752
- package/dist/{text-align-start-CGacJ9Vw.js → text-align-start-4mwX2o-F.js} +13 -13
- package/dist/{trash-DxCd7zIy.js → trash-B99WixTA.js} +1 -1
- package/dist/{triangle-alert-7_oaitpf.js → triangle-alert-CHMiDkHa.js} +1 -1
- package/dist/{upload-DuFEOi_0.js → upload-Cp8o-hrN.js} +1 -1
- package/dist/{useCloudI18n-DEMmUKuO.js → useCloudI18n-Dh2iydo1.js} +4 -4
- package/dist/useEditorRoot-DY3mgcHm.js +7 -0
- package/dist/{useI18n-BBrHTdu8.js → useI18n-CgtvtF4C.js} +4 -4
- package/dist/useLocalizedDisplay-DNNwDRxL.js +31 -0
- package/dist/{useLogicTag-ZPC39rfH.js → useLogicTag-BXXXQQmi.js} +4 -4
- package/dist/{useMergeTag-BQ4qqWpQ.js → useMergeTag-C9Okr87y.js} +5 -5
- package/dist/usePopoverPosition-VDQjyX_A.js +76 -0
- package/dist/{useScrollToBlock-BSyAV4pk.js → useScrollToBlock-B35ObCGK.js} +5 -5
- package/dist/{vue.runtime.esm-bundler-CnEeTfhs.js → vue.runtime.esm-bundler-BJXc_Mri.js} +1373 -1368
- package/dist/withCurrentFont-DJiQqZzL.js +18 -0
- package/dist/{x-BpfG7v9g.js → x-BIBStNMS.js} +1 -1
- package/package.json +21 -21
- package/dist/AiAltTextPopover-DawbUywc.js +0 -105
- package/dist/AiChatPanel-CupPhmsN.js +0 -548
- package/dist/BlockIssueBadge-BxpDy3u-.js +0 -33
- package/dist/BlockPreviewCanvas-B-4bmJ3t.js +0 -140
- package/dist/CollaborationNotices-CTw4JThq.js +0 -75
- package/dist/CommentsPanel-DwwFuh1h.js +0 -16
- package/dist/CommentsSidebar-9ZfiC2DO.js +0 -500
- package/dist/CountdownToolbar-BqoYzf_6.js +0 -197
- package/dist/IssuesPanel-4ykrf1ax.js +0 -359
- package/dist/MergeTagTextarea-CPFEjJZd.js +0 -69
- package/dist/ParagraphEditor-CWXfurGh.js +0 -796
- package/dist/TemplateSettings-CS0f1Ues.js +0 -236
- package/dist/TestEmailModal-DBD0X5nV.js +0 -209
- package/dist/TitleEditor-DSqtle77.js +0 -198
- package/dist/ToggleSwitch-JykPyD_8.js +0 -36
- package/dist/Toolbar-BZPFfKrf.js +0 -3145
- package/dist/VersionPreviewBanner-DECaBwLq.js +0 -37
- package/dist/WrapperBlock-BsJv_Fiw.js +0 -44
- package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js +0 -106
- package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js.map +0 -1
- package/dist/cdn/chunks/AiAltTextReview-BGLLSKLm.js.map +0 -1
- package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js +0 -474
- package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js.map +0 -1
- package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +0 -34
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +0 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-DGBh6mqe.js +0 -142
- package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js +0 -77
- package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-DoJnKLXI.js +0 -18
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js +0 -470
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js +0 -199
- package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-C7LfxaAY.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js +0 -1051
- package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js.map +0 -1
- package/dist/cdn/chunks/MediaEditModal-Cpcod6_U.js.map +0 -1
- package/dist/cdn/chunks/MergeTagModeToggle-BgKEVUtV.js.map +0 -1
- package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js +0 -71
- package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js +0 -631
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js +0 -208
- package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js +0 -209
- package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js +0 -198
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +0 -1
- package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js +0 -38
- package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-CdpsvNOR.js +0 -3061
- package/dist/cdn/chunks/Toolbar-CdpsvNOR.js.map +0 -1
- package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js +0 -39
- package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js +0 -46
- package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js.map +0 -1
- package/dist/cdn/chunks/ca-CD-Kt1qz.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-Cth2JCEh.js.map +0 -1
- package/dist/cdn/chunks/de-CeFJ6wbM.js.map +0 -1
- package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +0 -1
- package/dist/cdn/chunks/en-D14i5nFh.js.map +0 -1
- package/dist/cdn/chunks/en-TIqv4ag3.js +0 -1
- package/dist/cdn/chunks/es-zDacbMhs.js.map +0 -1
- package/dist/cdn/chunks/fr-CSgYtjOd.js.map +0 -1
- package/dist/cdn/chunks/icons-okSPsLOa.js.map +0 -1
- package/dist/cdn/chunks/ja-B7H3ID8O.js.map +0 -1
- package/dist/cdn/chunks/keys-CUj6UA38.js +0 -11
- package/dist/cdn/chunks/keys-CUj6UA38.js.map +0 -1
- package/dist/cdn/chunks/nl-176ySmc5.js.map +0 -1
- package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js +0 -198
- package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-dDlTwX18.js.map +0 -1
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +0 -72
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-jsTDmkbb.js +0 -2008
- package/dist/cdn/chunks/socialIcons-jsTDmkbb.js.map +0 -1
- package/dist/cdn/chunks/src-C7bkofBL.js +0 -647
- package/dist/cdn/chunks/src-C7bkofBL.js.map +0 -1
- package/dist/cdn/chunks/src-DEd87i_U.js.map +0 -1
- package/dist/cdn/chunks/src-DwWrYnUj.js +0 -1404
- package/dist/cdn/chunks/src-DwWrYnUj.js.map +0 -1
- package/dist/cdn/chunks/styleConstants-B8xVRiwX.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +0 -2582
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +0 -9
- package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js +0 -70
- package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js.map +0 -1
- package/dist/cdn/chunks/useScrollToBlock-vjQ0fe-L.js.map +0 -1
- package/dist/dist-CKi_npZM.js +0 -1344
- package/dist/dist-DyFArF_G.js +0 -4
- package/dist/dist-pA3ooG6N.js +0 -4
- package/dist/en-Db76vJbY.js +0 -1
- package/dist/keys-BgRERHzu.js +0 -9
- package/dist/normalizeMergeTagMarkup-CELnOlgK.js +0 -196
- package/dist/sanitizeHtml-BzfzpYJY.js +0 -942
- package/dist/socialIcons-D7MGsg0d.js +0 -2075
- package/dist/useEditorCore-BSo2sSID.js +0 -4059
- package/dist/useEditorRoot-BMcoCLBx.js +0 -7
- package/dist/usePopoverPosition-DV1PxL66.js +0 -68
- package/dist/withCurrentFont-B22FXAF5.js +0 -18
package/dist/{SavedBlocksBrowserModal-CE8n4EBS.js → cdn/chunks/SavedBlocksBrowserModal-fAeHUyxb.js}
RENAMED
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as ue } from "./x-BpfG7v9g.js";
|
|
12
|
-
import { t as de } from "./formatAbsoluteDateTime-Ck2_zXra.js";
|
|
13
|
-
import { v as fe } from "./styleConstants-B8xVRiwX.js";
|
|
14
|
-
import { t as pe } from "./formatRelativeTime-BTD8Ktt-.js";
|
|
15
|
-
import { t as me } from "./TplModal-DLMssVlt.js";
|
|
1
|
+
import { B as e, C as t, F as n, G as r, H as i, K as a, L as o, O as s, S as ee, _ as c, a as l, c as u, ct as d, dt as f, g as p, h as te, j as m, l as h, m as g, mt as _, o as v, p as y, pt as ne, tt as b, u as x, x as S } from "./draggable-DepKdldn.js";
|
|
2
|
+
import { G as re, M as ie, Y as C, f as ae, t as oe } from "./icons-Da9GKjPx.js";
|
|
3
|
+
import { Y as se, ot as w, rt as ce, v as le } from "./keys-CoQtCqNv.js";
|
|
4
|
+
import { t as ue } from "./useI18n-BnJYydPv.js";
|
|
5
|
+
import { b as de } from "./styleConstants-CgiNKdnc.js";
|
|
6
|
+
import "./composables-C1KU4ZHw.js";
|
|
7
|
+
import { t as fe } from "./TplModal-ClSSGX7a.js";
|
|
8
|
+
import { t as pe } from "./formatAbsoluteDateTime-Ck2_zXra.js";
|
|
9
|
+
import { t as T } from "./blockTypeIcons-Cc6RJ27V.js";
|
|
10
|
+
import { t as me } from "./formatRelativeTime-BTD8Ktt-.js";
|
|
16
11
|
// src/components/SavedBlocksBrowserModal.vue?vue&type=script&setup=true&lang.ts
|
|
17
12
|
var he = {
|
|
18
13
|
role: "dialog",
|
|
@@ -70,44 +65,44 @@ var he = {
|
|
|
70
65
|
}, et = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, tt = {
|
|
71
66
|
key: 1,
|
|
72
67
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:items-center tpl:justify-center tpl:px-4"
|
|
73
|
-
}, nt = { class: "tpl:mt-2 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, rt = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:px-5 tpl:py-3 tpl:border-[var(--tpl-border)]" }, it = { class: "tpl:flex tpl:items-center tpl:gap-2" }, at = { class: "tpl:shrink-0 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, ot = ["value"], st = { class: "tpl:flex tpl:gap-2" }, ct = ["disabled"], lt = ".tpl-saved-block-select", E = ".tpl-saved-block-rename-btn", ut = ".tpl-saved-block-delete-btn", D = /* @__PURE__ */
|
|
68
|
+
}, nt = { class: "tpl:mt-2 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, rt = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:px-5 tpl:py-3 tpl:border-[var(--tpl-border)]" }, it = { class: "tpl:flex tpl:items-center tpl:gap-2" }, at = { class: "tpl:shrink-0 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, ot = ["value"], st = { class: "tpl:flex tpl:gap-2" }, ct = ["disabled"], lt = ".tpl-saved-block-select", E = ".tpl-saved-block-rename-btn", ut = ".tpl-saved-block-delete-btn", D = /* @__PURE__ */ t({
|
|
74
69
|
__name: "SavedBlocksBrowserModal",
|
|
75
70
|
props: { visible: { type: Boolean } },
|
|
76
71
|
emits: ["close", "insert"],
|
|
77
|
-
setup(
|
|
78
|
-
let dt =
|
|
72
|
+
setup(t, { emit: D }) {
|
|
73
|
+
let dt = t, O = D, ft = ee(() => import("./BlockPreviewCanvas-CTKmBPsq.js").then((e) => e.n)), { t: k, format: A } = ue(), j = w(se, "SavedBlocksBrowserModal"), M = w(le, "SavedBlocksBrowserModal"), pt = s(ce, void 0), N = b(""), P = b(""), F = b(null), I = b(null), L = b(null), R = b(""), z = b(""), B = b(null), V = b(null), H = b(null), U = b("end"), W = /* @__PURE__ */ new Map();
|
|
79
74
|
function mt(e, t) {
|
|
80
75
|
t ? W.set(e, t) : W.delete(e);
|
|
81
76
|
}
|
|
82
77
|
async function G(e, t) {
|
|
83
|
-
await
|
|
78
|
+
await m(), W.get(e)?.querySelector(t)?.focus();
|
|
84
79
|
}
|
|
85
|
-
let K =
|
|
80
|
+
let K = y(() => {
|
|
86
81
|
let e = N.value.trim().toLowerCase(), t = P.value;
|
|
87
82
|
return j.savedBlocks.value.filter((n) => !(e && !n.name.toLowerCase().includes(e) || t && n.category !== t));
|
|
88
|
-
}), q =
|
|
83
|
+
}), q = y(() => j.isLoading.value && j.savedBlocks.value.length === 0), ht = y(() => N.value.trim().length > 0 || P.value !== ""), J = y(() => F.value ? j.savedBlocks.value.find((e) => e.id === F.value) ?? null : null), gt = y(() => {
|
|
89
84
|
let e = [{
|
|
90
85
|
value: "beginning",
|
|
91
86
|
label: k.savedBlocks.insertAtBeginning
|
|
92
87
|
}], t = M.content.value.blocks;
|
|
93
88
|
for (let n = 0; n < t.length; n++) {
|
|
94
|
-
let r = t[n]
|
|
89
|
+
let r = t[n];
|
|
95
90
|
e.push({
|
|
96
91
|
value: r.id,
|
|
97
|
-
label: A(k.savedBlocks.insertAfterBlock, { block: `${
|
|
92
|
+
label: A(k.savedBlocks.insertAfterBlock, { block: `${k.blocks[r.type] ?? r.type} ${n + 1}` })
|
|
98
93
|
});
|
|
99
94
|
}
|
|
100
95
|
return e.push({
|
|
101
96
|
value: "end",
|
|
102
97
|
label: k.savedBlocks.insertAtEnd
|
|
103
98
|
}), e;
|
|
104
|
-
}), _t =
|
|
99
|
+
}), _t = y(() => {
|
|
105
100
|
if (U.value === "end") return;
|
|
106
101
|
if (U.value === "beginning") return 0;
|
|
107
102
|
let e = M.content.value.blocks.findIndex((e) => e.id === U.value);
|
|
108
103
|
if (e !== -1) return e + 1;
|
|
109
104
|
});
|
|
110
|
-
|
|
105
|
+
i(() => dt.visible, (e) => {
|
|
111
106
|
if (e) {
|
|
112
107
|
N.value = "", P.value = "", F.value = null, I.value = null, L.value = null;
|
|
113
108
|
let e = M.state.selectedBlockId;
|
|
@@ -119,9 +114,9 @@ var he = {
|
|
|
119
114
|
}, { immediate: !0 });
|
|
120
115
|
function vt(e) {
|
|
121
116
|
let t = [], n = /* @__PURE__ */ new Set();
|
|
122
|
-
for (let r of e.content) if (!n.has(r.type) &&
|
|
117
|
+
for (let r of e.content) if (!n.has(r.type) && T[r.type] && (n.add(r.type), t.push({
|
|
123
118
|
type: r.type,
|
|
124
|
-
icon:
|
|
119
|
+
icon: T[r.type]
|
|
125
120
|
})), t.length >= 5) break;
|
|
126
121
|
return t;
|
|
127
122
|
}
|
|
@@ -131,14 +126,14 @@ var he = {
|
|
|
131
126
|
}
|
|
132
127
|
function X(e) {
|
|
133
128
|
let t = e.updatedAt ?? e.createdAt;
|
|
134
|
-
return t ?
|
|
129
|
+
return t ? me(t, k.time, A) ?? "" : "";
|
|
135
130
|
}
|
|
136
131
|
function yt(e) {
|
|
137
132
|
let t = e.updatedAt ?? e.createdAt;
|
|
138
|
-
return t ?
|
|
133
|
+
return t ? pe(t, pt) : "";
|
|
139
134
|
}
|
|
140
135
|
async function bt(e) {
|
|
141
|
-
I.value = e, await
|
|
136
|
+
I.value = e, await m(), H.value?.focus();
|
|
142
137
|
}
|
|
143
138
|
function Z(e) {
|
|
144
139
|
return I.value = null, G(e, ut);
|
|
@@ -151,11 +146,11 @@ var he = {
|
|
|
151
146
|
throw await Z(e), t;
|
|
152
147
|
}
|
|
153
148
|
I.value = null, F.value === e && (F.value = null);
|
|
154
|
-
let
|
|
155
|
-
|
|
149
|
+
let n = K.value, r = n[Math.min(t, n.length - 1)];
|
|
150
|
+
r ? await G(r.id, lt) : (await m(), V.value?.focus());
|
|
156
151
|
}
|
|
157
152
|
async function St(e) {
|
|
158
|
-
j.canUpdateBlock(e) && (L.value = e.id, R.value = e.name, z.value = e.category ?? "", I.value = null, await
|
|
153
|
+
j.canUpdateBlock(e) && (L.value = e.id, R.value = e.name, z.value = e.category ?? "", I.value = null, await m(), B.value?.focus(), B.value?.select());
|
|
159
154
|
}
|
|
160
155
|
function Q() {
|
|
161
156
|
L.value = null, R.value = "", z.value = "";
|
|
@@ -193,167 +188,169 @@ var he = {
|
|
|
193
188
|
function Ot(e) {
|
|
194
189
|
L.value || (e.key === "Escape" && $(), e.key === "Enter" && J.value && (e.preventDefault(), Dt()));
|
|
195
190
|
}
|
|
196
|
-
return (
|
|
197
|
-
visible:
|
|
191
|
+
return (i, s) => (n(), te(fe, {
|
|
192
|
+
visible: t.visible,
|
|
198
193
|
onClose: $,
|
|
199
194
|
onKeydown: Ot
|
|
200
195
|
}, {
|
|
201
|
-
default: r(() => [
|
|
202
|
-
|
|
203
|
-
"aria-label":
|
|
196
|
+
default: r(() => [g("div", he, [
|
|
197
|
+
g("div", ge, [g("h3", _e, _(d(k).savedBlocks.browse), 1), g("button", {
|
|
198
|
+
"aria-label": d(k).savedBlocks.close,
|
|
204
199
|
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)]",
|
|
205
200
|
onClick: $
|
|
206
|
-
}, [
|
|
201
|
+
}, [S(d(oe), {
|
|
207
202
|
size: 16,
|
|
208
203
|
"stroke-width": 2
|
|
209
204
|
})], 8, ve)]),
|
|
210
|
-
|
|
211
|
-
|
|
205
|
+
g("div", ye, [g("div", be, [
|
|
206
|
+
g("div", xe, [g("div", Se, [S(d(ie), {
|
|
212
207
|
size: 14,
|
|
213
208
|
"stroke-width": 2,
|
|
214
209
|
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)]"
|
|
215
|
-
}),
|
|
210
|
+
}), a(g("input", {
|
|
216
211
|
ref_key: "searchInput",
|
|
217
212
|
ref: V,
|
|
218
|
-
"onUpdate:modelValue":
|
|
213
|
+
"onUpdate:modelValue": s[0] ||= (e) => N.value = e,
|
|
219
214
|
type: "text",
|
|
220
|
-
placeholder:
|
|
215
|
+
placeholder: d(k).savedBlocks.search,
|
|
221
216
|
disabled: q.value,
|
|
222
217
|
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)]"
|
|
223
|
-
}, null, 8, Ce), [[
|
|
218
|
+
}, null, 8, Ce), [[v, N.value]])]), d(j).categories.value.length > 0 ? a((n(), c("select", {
|
|
224
219
|
key: 0,
|
|
225
|
-
"onUpdate:modelValue":
|
|
220
|
+
"onUpdate:modelValue": s[1] ||= (e) => P.value = e,
|
|
226
221
|
"data-testid": "saved-blocks-category-filter",
|
|
227
|
-
"aria-label":
|
|
222
|
+
"aria-label": d(k).savedBlocks.filterByCategory,
|
|
228
223
|
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)]"
|
|
229
|
-
}, [
|
|
224
|
+
}, [g("option", Te, _(d(k).savedBlocks.allCategories), 1), (n(!0), c(x, null, o(d(j).categories.value, (e) => (n(), c("option", {
|
|
230
225
|
key: e,
|
|
231
226
|
value: e
|
|
232
|
-
},
|
|
233
|
-
|
|
227
|
+
}, _(e), 9, Ee))), 128))], 8, we)), [[l, P.value]]) : p("", !0)]),
|
|
228
|
+
g("datalist", De, [(n(!0), c(x, null, o(d(j).categories.value, (e) => (n(), c("option", {
|
|
234
229
|
key: e,
|
|
235
230
|
value: e
|
|
236
231
|
}, null, 8, Oe))), 128))]),
|
|
237
|
-
|
|
232
|
+
g("div", ke, [q.value ? (n(), c("div", {
|
|
238
233
|
key: 0,
|
|
239
234
|
"data-testid": "saved-blocks-loading",
|
|
240
235
|
class: "tpl:flex tpl:flex-col tpl:gap-1",
|
|
241
236
|
role: "status",
|
|
242
237
|
"aria-busy": "true",
|
|
243
|
-
"aria-label":
|
|
244
|
-
}, [(
|
|
238
|
+
"aria-label": d(k).savedBlocks.loading
|
|
239
|
+
}, [(n(), c(x, null, o(3, (e) => g("div", {
|
|
245
240
|
key: e,
|
|
246
241
|
"aria-hidden": "true",
|
|
247
242
|
class: "tpl-saved-block-skeleton tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)]"
|
|
248
|
-
}, [...
|
|
243
|
+
}, [...s[5] ||= [g("div", { class: "tpl:h-3 tpl:w-1/2 tpl:rounded tpl:bg-[var(--tpl-bg-hover)]" }, null, -1), g("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, Ae)) : K.value.length > 0 ? (n(), c("div", je, [(n(!0), c(x, null, o(K.value, (t) => (n(), c(x, { key: t.id }, [L.value === t.id ? (n(), c("div", {
|
|
249
244
|
key: 0,
|
|
250
245
|
class: "tpl:flex tpl:w-full tpl:flex-col tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-primary)]",
|
|
251
246
|
style: { "background-color": "var(--tpl-primary-light)" },
|
|
252
|
-
onFocusout: (
|
|
253
|
-
}, [
|
|
247
|
+
onFocusout: (e) => Et(e, t.id)
|
|
248
|
+
}, [a(g("input", {
|
|
254
249
|
ref_for: !0,
|
|
255
250
|
ref: (e) => B.value = e,
|
|
256
|
-
"onUpdate:modelValue":
|
|
251
|
+
"onUpdate:modelValue": s[2] ||= (e) => R.value = e,
|
|
257
252
|
type: "text",
|
|
258
|
-
"aria-label":
|
|
253
|
+
"aria-label": d(k).savedBlocks.rename,
|
|
259
254
|
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)]",
|
|
260
|
-
onKeydown: [
|
|
261
|
-
}, null, 40, Ne), [[
|
|
262
|
-
"onUpdate:modelValue":
|
|
255
|
+
onKeydown: [u(h((e) => wt(t.id), ["prevent", "stop"]), ["enter"]), u(h((e) => Tt(t.id), ["prevent", "stop"]), ["esc"])]
|
|
256
|
+
}, null, 40, Ne), [[v, R.value]]), a(g("input", {
|
|
257
|
+
"onUpdate:modelValue": s[3] ||= (e) => z.value = e,
|
|
263
258
|
type: "text",
|
|
264
259
|
"data-testid": "saved-blocks-edit-category",
|
|
265
|
-
"aria-label":
|
|
266
|
-
placeholder:
|
|
260
|
+
"aria-label": d(k).savedBlocks.category,
|
|
261
|
+
placeholder: d(k).savedBlocks.categoryPlaceholder,
|
|
267
262
|
list: "tpl-saved-block-browser-categories",
|
|
268
263
|
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)]",
|
|
269
|
-
onKeydown: [
|
|
270
|
-
}, null, 40, Pe), [[
|
|
264
|
+
onKeydown: [u(h((e) => wt(t.id), ["prevent", "stop"]), ["enter"]), u(h((e) => Tt(t.id), ["prevent", "stop"]), ["esc"])]
|
|
265
|
+
}, null, 40, Pe), [[v, z.value]])], 40, Me)) : (n(), c("div", {
|
|
271
266
|
key: 1,
|
|
272
267
|
"data-testid": "saved-block-card",
|
|
273
268
|
class: "tpl:group/card tpl:relative tpl:w-full tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:bg-transparent tpl:px-3 tpl:py-2 tpl:text-left tpl:transition-all tpl:duration-[120ms]",
|
|
274
|
-
style:
|
|
275
|
-
borderColor: F.value ===
|
|
276
|
-
backgroundColor: F.value ===
|
|
269
|
+
style: ne({
|
|
270
|
+
borderColor: F.value === t.id ? "var(--tpl-primary)" : "var(--tpl-border)",
|
|
271
|
+
backgroundColor: F.value === t.id ? "var(--tpl-primary-light)" : "transparent"
|
|
277
272
|
}),
|
|
278
|
-
onClick: (
|
|
273
|
+
onClick: (e) => F.value = t.id,
|
|
279
274
|
ref_for: !0,
|
|
280
|
-
ref: (
|
|
281
|
-
}, [
|
|
275
|
+
ref: (e) => mt(t.id, e)
|
|
276
|
+
}, [g("button", {
|
|
282
277
|
type: "button",
|
|
283
|
-
"aria-pressed": F.value ===
|
|
278
|
+
"aria-pressed": F.value === t.id,
|
|
284
279
|
class: "tpl-saved-block-select tpl:block tpl:w-full tpl:text-left"
|
|
285
|
-
}, [
|
|
286
|
-
(
|
|
287
|
-
key:
|
|
280
|
+
}, [g("span", Le, [g("span", Re, _(t.name), 1), g("span", ze, _(d(A)(d(k).savedBlocks.blockCount, { count: t.content.length })), 1)]), t.category ? (n(), c("span", Be, [g("span", Ve, _(t.category), 1)])) : p("", !0)], 8, Ie), g("div", He, [
|
|
281
|
+
(n(!0), c(x, null, o(vt(t), (t) => (n(), te(e(t.icon), {
|
|
282
|
+
key: t.type,
|
|
288
283
|
size: 14,
|
|
289
284
|
"stroke-width": 1.5,
|
|
290
285
|
class: "tpl:shrink-0 tpl:text-[var(--tpl-text-dim)]"
|
|
291
286
|
}))), 128)),
|
|
292
|
-
Y(
|
|
293
|
-
X(
|
|
287
|
+
Y(t) > 0 ? (n(), c("span", Ue, " +" + _(Y(t)), 1)) : p("", !0),
|
|
288
|
+
X(t) ? (n(), c("span", {
|
|
294
289
|
key: 1,
|
|
295
290
|
"data-testid": "saved-block-updated",
|
|
296
291
|
class: "tpl:ml-1 tpl:truncate tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]",
|
|
297
|
-
title: yt(
|
|
298
|
-
},
|
|
299
|
-
I.value ===
|
|
292
|
+
title: yt(t)
|
|
293
|
+
}, _(X(t)), 9, We)) : p("", !0),
|
|
294
|
+
I.value === t.id ? (n(), c("button", {
|
|
300
295
|
key: 2,
|
|
301
296
|
ref_for: !0,
|
|
302
297
|
ref: (e) => H.value = e,
|
|
303
|
-
"aria-label":
|
|
298
|
+
"aria-label": d(k).savedBlocks.deleteConfirm,
|
|
304
299
|
class: "tpl:ml-auto tpl:shrink-0 tpl:cursor-pointer tpl:whitespace-nowrap 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)]",
|
|
305
300
|
style: { "background-color": "transparent" },
|
|
306
|
-
onClick:
|
|
307
|
-
onKeydown:
|
|
308
|
-
},
|
|
301
|
+
onClick: h((e) => xt(t.id), ["stop"]),
|
|
302
|
+
onKeydown: u(h((e) => Z(t.id), ["prevent", "stop"]), ["esc"])
|
|
303
|
+
}, _(d(k).savedBlocks.deleteConfirmShort), 41, Ge)) : (n(), c(x, { key: 3 }, [d(j).canUpdateBlock(t) ? (n(), c("button", {
|
|
309
304
|
key: 0,
|
|
310
305
|
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)]",
|
|
311
|
-
"aria-label":
|
|
312
|
-
title:
|
|
313
|
-
onClick:
|
|
314
|
-
}, [
|
|
306
|
+
"aria-label": d(k).savedBlocks.rename,
|
|
307
|
+
title: d(k).savedBlocks.rename,
|
|
308
|
+
onClick: h((e) => St(t), ["stop"])
|
|
309
|
+
}, [S(d(re), {
|
|
315
310
|
size: 12,
|
|
316
311
|
"stroke-width": 1.5
|
|
317
|
-
})], 8, Ke)) :
|
|
312
|
+
})], 8, Ke)) : p("", !0), d(j).canDeleteBlock(t) ? (n(), c("button", {
|
|
318
313
|
key: 1,
|
|
319
|
-
class:
|
|
320
|
-
"aria-label":
|
|
321
|
-
title:
|
|
322
|
-
onClick:
|
|
323
|
-
}, [
|
|
314
|
+
class: f(["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": !d(j).canUpdateBlock(t) }]),
|
|
315
|
+
"aria-label": d(k).savedBlocks.delete,
|
|
316
|
+
title: d(k).savedBlocks.delete,
|
|
317
|
+
onClick: h((e) => bt(t.id), ["stop"])
|
|
318
|
+
}, [S(d(ae), {
|
|
324
319
|
size: 12,
|
|
325
320
|
"stroke-width": 1.5
|
|
326
|
-
})], 10, qe)) :
|
|
327
|
-
])], 12, Fe))], 64))), 128))])) : (
|
|
321
|
+
})], 10, qe)) : p("", !0)], 64))
|
|
322
|
+
])], 12, Fe))], 64))), 128))])) : (n(), c("div", Je, [S(d(C), {
|
|
328
323
|
size: 32,
|
|
329
324
|
"stroke-width": 1,
|
|
330
325
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
331
|
-
}), ht.value ? (
|
|
332
|
-
]),
|
|
326
|
+
}), ht.value ? (n(), c("p", Ye, _(d(k).savedBlocks.noResults), 1)) : (n(), c(x, { key: 1 }, [g("p", Xe, _(d(k).savedBlocks.empty), 1), g("p", Ze, _(d(k).savedBlocks.emptyHint), 1)], 64))]))])
|
|
327
|
+
]), g("div", Qe, [J.value ? (n(), c("div", $e, [g("div", et, [S(d(ft), { blocks: J.value.content }, null, 8, ["blocks"])])])) : (n(), c("div", tt, [S(d(C), {
|
|
333
328
|
size: 32,
|
|
334
329
|
"stroke-width": 1,
|
|
335
330
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
336
|
-
}),
|
|
337
|
-
|
|
338
|
-
"onUpdate:modelValue":
|
|
331
|
+
}), g("p", nt, _(d(k).savedBlocks.selectToPreview), 1)]))])]),
|
|
332
|
+
g("div", rt, [g("div", it, [g("label", at, _(d(k).savedBlocks.insertPosition), 1), a(g("select", {
|
|
333
|
+
"onUpdate:modelValue": s[4] ||= (e) => U.value = e,
|
|
339
334
|
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)]"
|
|
340
|
-
}, [(
|
|
335
|
+
}, [(n(!0), c(x, null, o(gt.value, (e) => (n(), c("option", {
|
|
341
336
|
key: e.value,
|
|
342
337
|
value: e.value
|
|
343
|
-
},
|
|
338
|
+
}, _(e.label), 9, ot))), 128))], 512), [[l, U.value]])]), g("div", st, [g("button", {
|
|
344
339
|
type: "button",
|
|
345
340
|
"data-testid": "saved-blocks-browser-close",
|
|
346
341
|
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)]",
|
|
347
342
|
onClick: $
|
|
348
|
-
},
|
|
343
|
+
}, _(d(k).savedBlocks.close), 1), g("button", {
|
|
349
344
|
type: "button",
|
|
350
|
-
class:
|
|
345
|
+
class: f(d(de)),
|
|
351
346
|
disabled: !J.value,
|
|
352
347
|
onClick: Dt
|
|
353
|
-
},
|
|
348
|
+
}, _(d(k).savedBlocks.insert), 11, ct)])])
|
|
354
349
|
])]),
|
|
355
350
|
_: 1
|
|
356
351
|
}, 8, ["visible"]));
|
|
357
352
|
}
|
|
358
353
|
});
|
|
359
354
|
export { D as default };
|
|
355
|
+
|
|
356
|
+
//# sourceMappingURL=SavedBlocksBrowserModal-fAeHUyxb.js.map
|