@templatical/editor 0.35.0 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatSidebar-DPHbCGu4.js → AiChatSidebar-tu4eLcf_.js} +57 -57
- package/dist/{AiFeatureMenu--8z7qvg1.js → AiFeatureMenu-BF0i0vA4.js} +17 -17
- package/dist/{BlockIssueBadge-BGCsJqqM.js → BlockIssueBadge-DT-FqKeC.js} +9 -9
- package/dist/{BlockPreviewCanvas-DKspIy8V.js → BlockPreviewCanvas-DDCmMram.js} +28 -28
- package/dist/CloudHeaderExtras-NPhudovT.js +59 -0
- package/dist/{CloudPanels-Bp5gFtaL.js → CloudPanels-Iwnky0iA.js} +78 -108
- package/dist/{CollaboratorBar-DvwZm5u7.js → CollaboratorBar-DAITu0hz.js} +17 -17
- package/dist/{ColorPicker-DtozuN75.js → ColorPicker-BqlZ_TqG.js} +193 -193
- package/dist/{CommentsPanel-3C-DsEjy.js → CommentsPanel-CDvgmWP1.js} +3 -3
- package/dist/{CommentsSidebar-go1FnjDW.js → CommentsSidebar-X_xqM3dR.js} +158 -158
- package/dist/{CountdownBlock-D1fsNsyS.js → CountdownBlock-ZFJIdbP6.js} +12 -12
- package/dist/{CountdownToolbar-SLBuij7Q.js → CountdownToolbar-DBFoG3a6.js} +67 -67
- package/dist/{DesignReferenceSidebar-rcE_BvUd.js → DesignReferenceSidebar--QtXjLrw.js} +57 -57
- package/dist/{FieldRow-BWt7ECqo.js → FieldRow-C8nOknr_.js} +39 -39
- package/dist/{IssuesPanel-Cig46N1i.js → IssuesPanel-BLbNFMSX.js} +38 -38
- package/dist/{LoadingTrack-SQXoZVf2.js → LoadingTrack-BlTL4zFv.js} +2 -2
- package/dist/MediaPanels-CMTAhDXB.js +43 -0
- package/dist/{MergeTagInput-D1hzsn2b.js → MergeTagInput-BEjzj4Iu.js} +115 -115
- package/dist/{MergeTagModeToggle-CH9wR5YF.js → MergeTagModeToggle-DKN6ihI5.js} +40 -40
- package/dist/{MergeTagSuggestion-CoCuzEmW.js → MergeTagSuggestion-DKoLEeoj.js} +21 -21
- package/dist/{ParagraphEditor-CT2AdMdZ.js → ParagraphEditor-1E9yzOfk.js} +231 -258
- package/dist/{RestoreVersionDialog-mdqgQxFR.js → RestoreVersionDialog-BMGUkcd8.js} +28 -28
- package/dist/{RichTextEditorContent-riOB-rKD.js → RichTextEditorContent-BnxbQUV9.js} +49 -59
- package/dist/{SaveBlockDialog-Cn2v4Lpj.js → SaveBlockDialog-WKASpCCT.js} +78 -78
- package/dist/SavedBlocksBrowserModal-AYEXTMtQ.js +323 -0
- package/dist/{SavedBlocksPanels-ffBnWuVU.js → SavedBlocksPanels-D_CpacTl.js} +6 -6
- package/dist/{SavedBlocksPickBar-BmQC2tWN.js → SavedBlocksPickBar-BHMwg-1G.js} +11 -11
- package/dist/{TemplateScoringPanel-CxAtdreR.js → TemplateScoringPanel-CSin43YM.js} +99 -98
- package/dist/{TestEmailModal-Cjn1padY.js → TestEmailModal-BxizsRCd.js} +59 -59
- package/dist/{TestEmailPanel-Bf3XZ1jn.js → TestEmailPanel-vd2e5HzT.js} +3 -3
- package/dist/TitleEditor-CLJ68Ty4.js +199 -0
- package/dist/TplModal-Q9fDgS1M.js +51 -0
- package/dist/{VersionHistoryMenu-CrNrGsaa.js → VersionHistoryMenu-eGYVhM4H.js} +41 -47
- package/dist/{VersionHistoryPanels-CsuQk6W3.js → VersionHistoryPanels-C7Ntrrfq.js} +4 -4
- package/dist/{VersionPreviewBanner-BqbO0Zss.js → VersionPreviewBanner-BbQXnR0M.js} +9 -9
- package/dist/{blockTypeIcons-D_4HdaY9.js → blockTypeIcons-5qD4bB76.js} +5 -17
- package/dist/bundle-stats.json +8 -8
- package/dist/ca-Jx2CDwtn.js +83 -0
- package/dist/cdn/chunks/{AiChatSidebar-D0f74_nS.js → AiChatSidebar-dyqqHAcI.js} +4 -4
- package/dist/cdn/chunks/{AiChatSidebar-D0f74_nS.js.map → AiChatSidebar-dyqqHAcI.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-DwGb3eF9.js → AiFeatureMenu-BjVMwhW8.js} +5 -5
- package/dist/cdn/chunks/{AiFeatureMenu-DwGb3eF9.js.map → AiFeatureMenu-BjVMwhW8.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-CosQgeJ-.js → BlockIssueBadge-BJ__oEtm.js} +4 -4
- package/dist/cdn/chunks/{BlockIssueBadge-CosQgeJ-.js.map → BlockIssueBadge-BJ__oEtm.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-CIpZ2a6g.js → BlockPreviewCanvas-B5f26eLE.js} +5 -5
- package/dist/cdn/chunks/{BlockPreviewCanvas-CIpZ2a6g.js.map → BlockPreviewCanvas-B5f26eLE.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-CQzQwKFB.js → CloudHeaderExtras-D5P5IEKA.js} +4 -4
- package/dist/cdn/chunks/{CloudHeaderExtras-CQzQwKFB.js.map → CloudHeaderExtras-D5P5IEKA.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-BmexuLOU.js → CloudPanels-DkmR05nB.js} +15 -45
- package/dist/cdn/chunks/{CloudPanels-BmexuLOU.js.map → CloudPanels-DkmR05nB.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-DEICobpp.js → CollaboratorBar-Yn7KSpt4.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-DEICobpp.js.map → CollaboratorBar-Yn7KSpt4.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-C7yC58FK.js → ColorPicker-LcrzgMoW.js} +7 -7
- package/dist/cdn/chunks/{ColorPicker-C7yC58FK.js.map → ColorPicker-LcrzgMoW.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-OjmKxLL7.js → CommentsPanel-CntwwocI.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-OjmKxLL7.js.map → CommentsPanel-CntwwocI.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-C4pWZGpy.js → CommentsSidebar-BLDKnKy7.js} +4 -4
- package/dist/cdn/chunks/{CommentsSidebar-C4pWZGpy.js.map → CommentsSidebar-BLDKnKy7.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-rK055jpy.js → CountdownBlock-B4AfqJwb.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-rK055jpy.js.map → CountdownBlock-B4AfqJwb.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-wlJOxyAl.js → CountdownToolbar-CA1dpuOI.js} +3 -3
- package/dist/cdn/chunks/{CountdownToolbar-wlJOxyAl.js.map → CountdownToolbar-CA1dpuOI.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-DELhnh8h.js → DesignReferenceSidebar-D1Y9Hswe.js} +5 -5
- package/dist/cdn/chunks/{DesignReferenceSidebar-DELhnh8h.js.map → DesignReferenceSidebar-D1Y9Hswe.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-C9i3o8aE.js → IssuesPanel-Q62LTqvd.js} +5 -5
- package/dist/cdn/chunks/{IssuesPanel-C9i3o8aE.js.map → IssuesPanel-Q62LTqvd.js.map} +1 -1
- package/dist/cdn/chunks/MediaPanels-D21M6shx.js +45 -0
- package/dist/cdn/chunks/MediaPanels-D21M6shx.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagInput-D76Kyvgu.js → MergeTagInput-l7paaAml.js} +7 -7
- package/dist/cdn/chunks/{MergeTagInput-D76Kyvgu.js.map → MergeTagInput-l7paaAml.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-Dz3gxN2y.js → MergeTagModeToggle-DYxkAGtA.js} +4 -4
- package/dist/cdn/chunks/{MergeTagModeToggle-Dz3gxN2y.js.map → MergeTagModeToggle-DYxkAGtA.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DQn0HMfV.js → ParagraphEditor-Bd-GQXee.js} +15 -15
- package/dist/cdn/chunks/{ParagraphEditor-DQn0HMfV.js.map → ParagraphEditor-Bd-GQXee.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-BdjOL8Oy.js → RestoreVersionDialog-2X9RpM9A.js} +4 -4
- package/dist/cdn/chunks/{RestoreVersionDialog-BdjOL8Oy.js.map → RestoreVersionDialog-2X9RpM9A.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-Drzwgh0J.js → RichTextEditorContent-D_rb0rmU.js} +8 -8
- package/dist/cdn/chunks/{RichTextEditorContent-Drzwgh0J.js.map → RichTextEditorContent-D_rb0rmU.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-B3rbmXSM.js → SaveBlockDialog-CufdTomT.js} +15 -15
- package/dist/cdn/chunks/{SaveBlockDialog-B3rbmXSM.js.map → SaveBlockDialog-CufdTomT.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CkUXlnd2.js → SavedBlocksBrowserModal-CqpaNsk7.js} +8 -8
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CkUXlnd2.js.map → SavedBlocksBrowserModal-CqpaNsk7.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-BPi3PZKP.js → SavedBlocksPanels-DpxYxddo.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-BPi3PZKP.js.map → SavedBlocksPanels-DpxYxddo.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-BvB9A5W2.js → SavedBlocksPickBar-Drpoav1B.js} +4 -4
- package/dist/cdn/chunks/{SavedBlocksPickBar-BvB9A5W2.js.map → SavedBlocksPickBar-Drpoav1B.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-BBCyLnOi.js → TemplateScoringPanel-DBjUNULq.js} +5 -5
- package/dist/cdn/chunks/{TemplateScoringPanel-BBCyLnOi.js.map → TemplateScoringPanel-DBjUNULq.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-DAGTsBqi.js → TestEmailModal-BTNlSW6f.js} +10 -10
- package/dist/cdn/chunks/{TestEmailModal-DAGTsBqi.js.map → TestEmailModal-BTNlSW6f.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BfenVvfx.js → TestEmailPanel-D0A9Zgxr.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-BfenVvfx.js.map → TestEmailPanel-D0A9Zgxr.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-oQ4gr6wS.js → TitleEditor-CrnuIq62.js} +9 -9
- package/dist/cdn/chunks/{TitleEditor-oQ4gr6wS.js.map → TitleEditor-CrnuIq62.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-DxOMcVwp.js → TplModal-DYXrTz42.js} +5 -5
- package/dist/cdn/chunks/{TplModal-DxOMcVwp.js.map → TplModal-DYXrTz42.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-BfVUvWHT.js → VersionHistoryMenu-bDGnE4hb.js} +4 -4
- package/dist/cdn/chunks/VersionHistoryMenu-bDGnE4hb.js.map +1 -0
- package/dist/cdn/chunks/{VersionHistoryPanels-NpDb641L.js → VersionHistoryPanels-82P0Q0HM.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-NpDb641L.js.map → VersionHistoryPanels-82P0Q0HM.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-Cpgt4xHc.js → VersionPreviewBanner-BJiwKkVC.js} +3 -3
- package/dist/cdn/chunks/{VersionPreviewBanner-Cpgt4xHc.js.map → VersionPreviewBanner-BJiwKkVC.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-t9vvaiuH.js → blockTypeIcons-CNjJSFun.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-t9vvaiuH.js.map → blockTypeIcons-CNjJSFun.js.map} +1 -1
- package/dist/cdn/chunks/{ca-CNRWAMHI.js → ca-Jx2CDwtn.js} +2 -6
- package/dist/cdn/chunks/ca-Jx2CDwtn.js.map +1 -0
- package/dist/cdn/chunks/{cloud-CullB76F.js → cloud-BLgCKP7Z.js} +452 -227
- package/dist/cdn/chunks/cloud-BLgCKP7Z.js.map +1 -0
- package/dist/cdn/chunks/createCloudRuntime-U-qCH-dq.js +385 -0
- package/dist/cdn/chunks/createCloudRuntime-U-qCH-dq.js.map +1 -0
- package/dist/cdn/chunks/{de-DFYCT4QU.js → de-Ck0pBGHu.js} +2 -6
- package/dist/cdn/chunks/de-Ck0pBGHu.js.map +1 -0
- package/dist/cdn/chunks/{src-CaXeO-gG.js → editor-modal-MXgtarMl.js} +1474 -1935
- package/dist/cdn/chunks/editor-modal-MXgtarMl.js.map +1 -0
- package/dist/cdn/chunks/en-C9U7N77n.js +2 -0
- package/dist/cdn/chunks/{es-OgkdMZGX.js → es-lagTvUfX.js} +2 -6
- package/dist/cdn/chunks/es-lagTvUfX.js.map +1 -0
- package/dist/cdn/chunks/{extensions-BpXY7jO5.js → extensions-B8_jnIkD.js} +3 -3
- package/dist/cdn/chunks/{extensions-BpXY7jO5.js.map → extensions-B8_jnIkD.js.map} +1 -1
- package/dist/cdn/chunks/{fr-Dswns199.js → fr-C4hVl5Lk.js} +2 -6
- package/dist/cdn/chunks/fr-C4hVl5Lk.js.map +1 -0
- package/dist/cdn/chunks/{icons-BLxcQUck.js → icons-BUlqGSgd.js} +24 -24
- package/dist/cdn/chunks/{icons-BLxcQUck.js.map → icons-BUlqGSgd.js.map} +1 -1
- package/dist/cdn/chunks/{keys-DQp8x7Nx.js → keys-DBFhDFng.js} +4 -4
- package/dist/cdn/chunks/{keys-DQp8x7Nx.js.map → keys-DBFhDFng.js.map} +1 -1
- package/dist/cdn/chunks/{nl-CbcPJlrL.js → nl-CReD7Apd.js} +2 -6
- package/dist/cdn/chunks/nl-CReD7Apd.js.map +1 -0
- package/dist/cdn/chunks/{pt-BR-BibOQm-o.js → pt-BR-BRA0-vGP.js} +2 -6
- package/dist/cdn/chunks/pt-BR-BRA0-vGP.js.map +1 -0
- package/dist/cdn/chunks/{src-BC-eolWY.js → src-Ozknnj-v.js} +2 -2
- package/dist/cdn/chunks/{src-BC-eolWY.js.map → src-Ozknnj-v.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-MxgHWrV6.js → useCloudI18n-DSWSGj-A.js} +2 -2
- package/dist/cdn/chunks/{useCloudI18n-MxgHWrV6.js.map → useCloudI18n-DSWSGj-A.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-D4MytYB9.js → useEditorCore-Cs7rYVBo.js} +488 -406
- package/dist/cdn/chunks/useEditorCore-Cs7rYVBo.js.map +1 -0
- package/dist/cdn/chunks/{useEditorRoot-CteADR3y.js → useEditorRoot-B0zW2nT4.js} +2 -2
- package/dist/cdn/chunks/{useEditorRoot-CteADR3y.js.map → useEditorRoot-B0zW2nT4.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-Ct1VIFcf.js → useI18n-Dlo7R9RA.js} +2 -2
- package/dist/cdn/chunks/{useI18n-Ct1VIFcf.js.map → useI18n-Dlo7R9RA.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-CSocWpxV.js → useMergeTag-BYAifvh8.js} +3 -3
- package/dist/cdn/chunks/{useMergeTag-CSocWpxV.js.map → useMergeTag-BYAifvh8.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-BxVWE5_0.js → usePopoverPosition-ElP3ABaV.js} +2 -2
- package/dist/cdn/chunks/{usePopoverPosition-BxVWE5_0.js.map → usePopoverPosition-ElP3ABaV.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-Cz3fpgTK.js → useScrollToBlock-nTbWkgaU.js} +2 -2
- package/dist/cdn/chunks/{useScrollToBlock-Cz3fpgTK.js.map → useScrollToBlock-nTbWkgaU.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +1094 -1005
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-CY-Ec6FV.js → check-DWtkBzBU.js} +1 -1
- package/dist/{chevron-down-BghbWA9p.js → chevron-down-C-Fjxcqj.js} +1 -1
- package/dist/chevron-right-SOkn2d4P.js +11 -0
- package/dist/{chevron-up-n3qFAPS3.js → chevron-up-lntU1ypp.js} +1 -1
- package/dist/{circle-alert-L5uGGFRP.js → circle-alert-CjzUTwy3.js} +1 -1
- package/dist/{clock-Dgnwp18n.js → clock-pB2QKPsJ.js} +1 -1
- package/dist/{cloud-B1c4XIsn.js → cloud-DdidMW6f.js} +445 -200
- package/dist/copy-CId1E038.js +19 -0
- package/dist/createCloudRuntime-x5WZm3p8.js +383 -0
- package/dist/{createLucideIcon-05lB8iWe.js → createLucideIcon-Cwf_nTzE.js} +6 -6
- package/dist/de-Ck0pBGHu.js +83 -0
- package/dist/{dist-BxFbxpgW.js → dist-BVqAYoRB.js} +125 -125
- package/dist/dist-D8i1ixHK.js +177 -0
- package/dist/dist-DBirAJIs.js +410 -0
- package/dist/editor-modal-B_LaQf0s.js +5998 -0
- package/dist/en-DcmpWV53.js +2 -0
- package/dist/es-lagTvUfX.js +83 -0
- package/dist/{extensions-Bawm4BOM.js → extensions-CHOBZRab.js} +42 -42
- package/dist/eye-BuGtFUoJ.js +16 -0
- package/dist/fr-C4hVl5Lk.js +83 -0
- package/dist/{image-up-ovhjl9u9.js → image-up-gH4JEpU5.js} +1 -1
- package/dist/index.d.ts +90 -11
- package/dist/{info-c3KI927I.js → info-BQ60P82u.js} +1 -1
- package/dist/{keys-C3P1yxnr.js → keys-DQA2i1k1.js} +4 -4
- package/dist/link-3R8it3J7.js +14 -0
- package/dist/list-Ccdgj46T.js +33 -0
- package/dist/{loader-circle-B2Y8xZQb.js → loader-circle-B_tAD4k6.js} +1 -1
- package/dist/{message-circle-B7K-naUa.js → message-circle-P-KSc6V0.js} +1 -1
- package/dist/nl-CReD7Apd.js +83 -0
- package/dist/{pencil-BhWTFcp4.js → pencil-9ZiwqS4r.js} +1 -1
- package/dist/plus-BwJEzCaO.js +14 -0
- package/dist/pt-BR-BRA0-vGP.js +83 -0
- package/dist/{refresh-cw-BqUR5vgO.js → refresh-cw-DEgfb2FK.js} +2 -14
- package/dist/{runtime-dom.esm-bundler-BuG03jBM.js → runtime-dom.esm-bundler-PnoZU512.js} +106 -106
- package/dist/search-DqQ8Li5E.js +16 -0
- package/dist/{send-D1vvuW79.js → send-CE6uvqop.js} +1 -1
- package/dist/{shield-check-DjK54PnW.js → shield-check-DhD1Z3rd.js} +1 -1
- package/dist/{sparkles-DNdS9V_3.js → sparkles-R0ZQHa6F.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +2491 -2408
- package/dist/{text-align-start-Bcmo_VUY.js → text-align-start-DSux2UNn.js} +1 -1
- package/dist/{trash-C9bMXvw4.js → trash-Cf_SqsER.js} +1 -1
- package/dist/{triangle-alert-Bn8Bd2Yv.js → triangle-alert-C6tGa6jw.js} +1 -1
- package/dist/{upload-DKgg1gno.js → upload-DusKjpVr.js} +1 -1
- package/dist/{useAliveFlag-PVmp95MT.js → useAliveFlag-oyByIcjy.js} +1 -1
- package/dist/{useCloudI18n-BKoiYsWZ.js → useCloudI18n-BLyh_e2T.js} +2 -2
- package/dist/{useEditorCore-CYGvurZa.js → useEditorCore-DhlKOYwe.js} +1552 -1486
- package/dist/{useEditorRoot-DkRGTQRs.js → useEditorRoot-ds57-l6F.js} +2 -2
- package/dist/{useI18n-CL6RfPzK.js → useI18n-BbdxxpOE.js} +2 -2
- package/dist/{useMergeTag-C9GEpljB.js → useMergeTag-DlvOBW_B.js} +3 -3
- package/dist/{usePopoverPosition-CWxaIWd3.js → usePopoverPosition-CprM5p-c.js} +2 -2
- package/dist/{useScrollToBlock-oUx1HIZ2.js → useScrollToBlock-BTFw0b9O.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-D9JUcKrV.js → vue.runtime.esm-bundler-DShF3P6k.js} +1192 -1181
- package/dist/{x-BPKoRPTG.js → x-D_-42Ukq.js} +1 -1
- package/package.json +9 -12
- package/dist/CloudHeaderExtras-CRUQvgSV.js +0 -59
- package/dist/SavedBlocksBrowserModal-BORqqASb.js +0 -322
- package/dist/TitleEditor-pYEUX6lR.js +0 -198
- package/dist/TplModal-DRx4ytx8.js +0 -51
- package/dist/cdn/chunks/VersionHistoryMenu-BfVUvWHT.js.map +0 -1
- package/dist/cdn/chunks/ca-CNRWAMHI.js.map +0 -1
- package/dist/cdn/chunks/cloud-CullB76F.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-Cx2JpUYU.js +0 -443
- package/dist/cdn/chunks/createCloudRuntime-Cx2JpUYU.js.map +0 -1
- package/dist/cdn/chunks/de-DFYCT4QU.js.map +0 -1
- package/dist/cdn/chunks/en-rGHphLWo.js +0 -2
- package/dist/cdn/chunks/es-OgkdMZGX.js.map +0 -1
- package/dist/cdn/chunks/fr-Dswns199.js.map +0 -1
- package/dist/cdn/chunks/nl-CbcPJlrL.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-BibOQm-o.js.map +0 -1
- package/dist/cdn/chunks/src-CaXeO-gG.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-D4MytYB9.js.map +0 -1
- package/dist/createCloudRuntime-PevFSH74.js +0 -441
- package/dist/dist-dNiknO7j.js +0 -251
- package/dist/dist-heatwAdo.js +0 -150
|
@@ -0,0 +1,323 @@
|
|
|
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-DShF3P6k.js";
|
|
2
|
+
import { a as b, c as x, i as S, s as C } from "./runtime-dom.esm-bundler-PnoZU512.js";
|
|
3
|
+
import "./useEditorCore-DhlKOYwe.js";
|
|
4
|
+
import { B as ne, K as re, Y as w, g as ie } from "./keys-DQA2i1k1.js";
|
|
5
|
+
import { t as ae } from "./useI18n-BbdxxpOE.js";
|
|
6
|
+
import { n as T, t as E } from "./blockTypeIcons-5qD4bB76.js";
|
|
7
|
+
import { t as oe } from "./pencil-9ZiwqS4r.js";
|
|
8
|
+
import { t as se } from "./search-DqQ8Li5E.js";
|
|
9
|
+
import { t as ce } from "./trash-Cf_SqsER.js";
|
|
10
|
+
import { t as le } from "./x-D_-42Ukq.js";
|
|
11
|
+
import { v as ue } from "./styleConstants-C_YAPdQS.js";
|
|
12
|
+
import { t as de } from "./formatAbsoluteDateTime-DMmop3C-.js";
|
|
13
|
+
import { t as fe } from "./formatRelativeTime-CtUU-QZ8.js";
|
|
14
|
+
import { t as pe } from "./TplModal-Q9fDgS1M.js";
|
|
15
|
+
//#region src/components/SavedBlocksBrowserModal.vue?vue&type=script&setup=true&lang.ts
|
|
16
|
+
var me = {
|
|
17
|
+
role: "dialog",
|
|
18
|
+
"aria-modal": "true",
|
|
19
|
+
"data-testid": "saved-blocks-browser",
|
|
20
|
+
"aria-labelledby": "tpl-saved-blocks-browser-title",
|
|
21
|
+
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)]",
|
|
22
|
+
style: {
|
|
23
|
+
"background-color": "var(--tpl-bg-elevated)",
|
|
24
|
+
"box-shadow": "var(--tpl-shadow-xl)"
|
|
25
|
+
}
|
|
26
|
+
}, 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 = {
|
|
27
|
+
id: "tpl-saved-blocks-browser-title",
|
|
28
|
+
class: "tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
29
|
+
}, _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 = {
|
|
30
|
+
key: 1,
|
|
31
|
+
class: "tpl:flex tpl:flex-col tpl:gap-1"
|
|
32
|
+
}, ke = ["onFocusout"], Ae = ["aria-label", "onKeydown"], je = [
|
|
33
|
+
"aria-label",
|
|
34
|
+
"placeholder",
|
|
35
|
+
"onKeydown"
|
|
36
|
+
], Me = ["aria-pressed", "onClick"], Ne = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Pe = { class: "tpl:flex-1 tpl:truncate tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Fe = { class: "tpl:shrink-0 tpl:rounded-full tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]" }, Ie = {
|
|
37
|
+
key: 0,
|
|
38
|
+
class: "tpl:mt-1 tpl:flex tpl:items-center"
|
|
39
|
+
}, Le = {
|
|
40
|
+
"data-testid": "saved-block-category",
|
|
41
|
+
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)]"
|
|
42
|
+
}, Re = { class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1" }, ze = {
|
|
43
|
+
key: 0,
|
|
44
|
+
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]"
|
|
45
|
+
}, Be = ["title"], Ve = ["aria-label", "onClick"], He = [
|
|
46
|
+
"aria-label",
|
|
47
|
+
"title",
|
|
48
|
+
"onClick"
|
|
49
|
+
], Ue = [
|
|
50
|
+
"aria-label",
|
|
51
|
+
"title",
|
|
52
|
+
"onClick"
|
|
53
|
+
], We = {
|
|
54
|
+
key: 2,
|
|
55
|
+
class: "tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:py-12"
|
|
56
|
+
}, Ge = {
|
|
57
|
+
key: 0,
|
|
58
|
+
class: "tpl:mt-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
59
|
+
}, Ke = { class: "tpl:mt-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, qe = { class: "tpl:mt-1 tpl:max-w-[220px] tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, Je = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-hidden tpl:border-l tpl:border-[var(--tpl-border)]" }, Ye = {
|
|
60
|
+
key: 0,
|
|
61
|
+
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-hidden"
|
|
62
|
+
}, Xe = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Ze = {
|
|
63
|
+
key: 1,
|
|
64
|
+
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:items-center tpl:justify-center tpl:px-4"
|
|
65
|
+
}, Qe = { class: "tpl:mt-2 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, $e = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:px-5 tpl:py-3 tpl:border-[var(--tpl-border)]" }, et = { class: "tpl:flex tpl:items-center tpl:gap-2" }, tt = { class: "tpl:shrink-0 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, nt = ["value"], rt = { class: "tpl:flex tpl:gap-2" }, it = ["disabled"], k = /* @__PURE__ */ y({
|
|
66
|
+
__name: "SavedBlocksBrowserModal",
|
|
67
|
+
props: { visible: { type: Boolean } },
|
|
68
|
+
emits: ["close", "insert"],
|
|
69
|
+
setup(y, { emit: k }) {
|
|
70
|
+
let at = y, A = k, ot = te(() => import("./BlockPreviewCanvas-DDCmMram.js").then((e) => e.n)), { t: j, format: M } = ae(), N = w(ne, "SavedBlocksBrowserModal"), P = w(ie, "SavedBlocksBrowserModal"), st = 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 = _(() => {
|
|
71
|
+
let e = F.value.trim().toLowerCase(), t = I.value;
|
|
72
|
+
return N.savedBlocks.value.filter((n) => !(e && !n.name.toLowerCase().includes(e) || t && n.category !== t));
|
|
73
|
+
}), G = _(() => N.isLoading.value && N.savedBlocks.value.length === 0), ct = _(() => F.value.trim().length > 0 || I.value !== ""), K = _(() => L.value ? N.savedBlocks.value.find((e) => e.id === L.value) ?? null : null), lt = _(() => {
|
|
74
|
+
let e = [{
|
|
75
|
+
value: "beginning",
|
|
76
|
+
label: j.savedBlocks.insertAtBeginning
|
|
77
|
+
}], t = P.content.value.blocks;
|
|
78
|
+
for (let n = 0; n < t.length; n++) {
|
|
79
|
+
let r = t[n], i = r.type, a = j.blocks[i] ?? r.type;
|
|
80
|
+
e.push({
|
|
81
|
+
value: r.id,
|
|
82
|
+
label: M(j.savedBlocks.insertAfterBlock, { block: `${a} ${n + 1}` })
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
return e.push({
|
|
86
|
+
value: "end",
|
|
87
|
+
label: j.savedBlocks.insertAtEnd
|
|
88
|
+
}), e;
|
|
89
|
+
}), ut = _(() => {
|
|
90
|
+
if (U.value === "end") return;
|
|
91
|
+
if (U.value === "beginning") return 0;
|
|
92
|
+
let e = P.content.value.blocks.findIndex((e) => e.id === U.value);
|
|
93
|
+
if (e !== -1) return e + 1;
|
|
94
|
+
});
|
|
95
|
+
o(() => at.visible, (e) => {
|
|
96
|
+
if (e) {
|
|
97
|
+
F.value = "", I.value = "", L.value = null, R.value = null, z.value = null;
|
|
98
|
+
let e = P.state.selectedBlockId;
|
|
99
|
+
if (e) {
|
|
100
|
+
let t = P.content.value.blocks.findIndex((t) => t.id === e);
|
|
101
|
+
U.value = t === -1 ? "end" : e;
|
|
102
|
+
} else U.value = "end";
|
|
103
|
+
}
|
|
104
|
+
}, { immediate: !0 });
|
|
105
|
+
function dt(e) {
|
|
106
|
+
let t = [], n = /* @__PURE__ */ new Set();
|
|
107
|
+
for (let r of e.content) if (!n.has(r.type) && E[r.type] && (n.add(r.type), t.push({
|
|
108
|
+
type: r.type,
|
|
109
|
+
icon: E[r.type]
|
|
110
|
+
})), t.length >= 5) break;
|
|
111
|
+
return t;
|
|
112
|
+
}
|
|
113
|
+
function q(e) {
|
|
114
|
+
let t = new Set(e.content.map((e) => e.type));
|
|
115
|
+
return Math.max(0, t.size - 5);
|
|
116
|
+
}
|
|
117
|
+
function J(e) {
|
|
118
|
+
let t = e.updatedAt ?? e.createdAt;
|
|
119
|
+
return t ? fe(t, j.time, M) ?? "" : "";
|
|
120
|
+
}
|
|
121
|
+
function ft(e) {
|
|
122
|
+
let t = e.updatedAt ?? e.createdAt;
|
|
123
|
+
return t ? de(t, st) : "";
|
|
124
|
+
}
|
|
125
|
+
async function pt(e) {
|
|
126
|
+
try {
|
|
127
|
+
await N.remove(e), L.value === e && (L.value = null);
|
|
128
|
+
} finally {
|
|
129
|
+
R.value = null;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
async function Y(e) {
|
|
133
|
+
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());
|
|
134
|
+
}
|
|
135
|
+
function X() {
|
|
136
|
+
z.value = null, B.value = "", V.value = "";
|
|
137
|
+
}
|
|
138
|
+
async function Z(e) {
|
|
139
|
+
if (z.value !== e) return;
|
|
140
|
+
let t = B.value.trim(), n = V.value.trim(), r = N.savedBlocks.value.find((t) => t.id === e), i = {};
|
|
141
|
+
if (t && t !== r?.name && (i.name = t), n !== (r?.category ?? "") && (i.category = n), Object.keys(i).length === 0) {
|
|
142
|
+
X();
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
try {
|
|
146
|
+
await N.update(e, i);
|
|
147
|
+
} finally {
|
|
148
|
+
X();
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
function mt(e, t) {
|
|
152
|
+
let n = e.currentTarget, r = e.relatedTarget;
|
|
153
|
+
r && n.contains(r) || Z(t);
|
|
154
|
+
}
|
|
155
|
+
function Q() {
|
|
156
|
+
K.value && A("insert", K.value, ut.value);
|
|
157
|
+
}
|
|
158
|
+
function $() {
|
|
159
|
+
A("close");
|
|
160
|
+
}
|
|
161
|
+
function ht(e) {
|
|
162
|
+
z.value || (e.key === "Escape" && $(), e.key === "Enter" && K.value && (e.preventDefault(), Q()));
|
|
163
|
+
}
|
|
164
|
+
return (r, o) => (e(), h(pe, {
|
|
165
|
+
visible: y.visible,
|
|
166
|
+
onClose: $,
|
|
167
|
+
onKeydown: ht
|
|
168
|
+
}, {
|
|
169
|
+
default: n(() => [u("div", me, [
|
|
170
|
+
u("div", he, [u("h3", ge, p(l(j).savedBlocks.browse), 1), u("button", {
|
|
171
|
+
"aria-label": l(j).savedBlocks.close,
|
|
172
|
+
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)]",
|
|
173
|
+
onClick: $
|
|
174
|
+
}, [f(l(le), {
|
|
175
|
+
size: 16,
|
|
176
|
+
"stroke-width": 2
|
|
177
|
+
})], 8, _e)]),
|
|
178
|
+
u("div", ve, [u("div", ye, [
|
|
179
|
+
u("div", be, [u("div", xe, [f(l(se), {
|
|
180
|
+
size: 14,
|
|
181
|
+
"stroke-width": 2,
|
|
182
|
+
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)]"
|
|
183
|
+
}), s(u("input", {
|
|
184
|
+
"onUpdate:modelValue": o[0] ||= (e) => F.value = e,
|
|
185
|
+
type: "text",
|
|
186
|
+
placeholder: l(j).savedBlocks.search,
|
|
187
|
+
disabled: G.value,
|
|
188
|
+
class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:pl-9 tpl:pr-3 tpl:text-sm tpl:outline-none tpl:disabled:opacity-50 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
|
|
189
|
+
}, null, 8, Se), [[b, F.value]])]), l(N).categories.value.length > 0 ? s((e(), d("select", {
|
|
190
|
+
key: 0,
|
|
191
|
+
"onUpdate:modelValue": o[1] ||= (e) => I.value = e,
|
|
192
|
+
"data-testid": "saved-blocks-category-filter",
|
|
193
|
+
"aria-label": l(j).savedBlocks.filterByCategory,
|
|
194
|
+
class: "tpl:h-8 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
|
|
195
|
+
}, [u("option", we, p(l(j).savedBlocks.allCategories), 1), (e(!0), d(g, null, a(l(N).categories.value, (t) => (e(), d("option", {
|
|
196
|
+
key: t,
|
|
197
|
+
value: t
|
|
198
|
+
}, p(t), 9, Te))), 128))], 8, Ce)), [[S, I.value]]) : v("", !0)]),
|
|
199
|
+
u("datalist", D, [(e(!0), d(g, null, a(l(N).categories.value, (t) => (e(), d("option", {
|
|
200
|
+
key: t,
|
|
201
|
+
value: t
|
|
202
|
+
}, null, 8, O))), 128))]),
|
|
203
|
+
u("div", Ee, [G.value ? (e(), d("div", {
|
|
204
|
+
key: 0,
|
|
205
|
+
"data-testid": "saved-blocks-loading",
|
|
206
|
+
class: "tpl:flex tpl:flex-col tpl:gap-1",
|
|
207
|
+
role: "status",
|
|
208
|
+
"aria-busy": "true",
|
|
209
|
+
"aria-label": l(j).savedBlocks.loading
|
|
210
|
+
}, [(e(), d(g, null, a(3, (e) => u("div", {
|
|
211
|
+
key: e,
|
|
212
|
+
"aria-hidden": "true",
|
|
213
|
+
class: "tpl-saved-block-skeleton tpl:rounded-[var(--tpl-radius-md)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)]"
|
|
214
|
+
}, [...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", {
|
|
215
|
+
key: 0,
|
|
216
|
+
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)]",
|
|
217
|
+
style: { "background-color": "var(--tpl-primary-light)" },
|
|
218
|
+
onFocusout: (e) => mt(e, n.id)
|
|
219
|
+
}, [s(u("input", {
|
|
220
|
+
ref_for: !0,
|
|
221
|
+
ref: (e) => H.value = e,
|
|
222
|
+
"onUpdate:modelValue": o[2] ||= (e) => B.value = e,
|
|
223
|
+
type: "text",
|
|
224
|
+
"aria-label": l(j).savedBlocks.rename,
|
|
225
|
+
class: "tpl:h-7 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
226
|
+
onKeydown: [C(x((e) => Z(n.id), ["prevent", "stop"]), ["enter"]), o[3] ||= C(x((e) => X(), ["prevent", "stop"]), ["esc"])]
|
|
227
|
+
}, null, 40, Ae), [[b, B.value]]), s(u("input", {
|
|
228
|
+
"onUpdate:modelValue": o[4] ||= (e) => V.value = e,
|
|
229
|
+
type: "text",
|
|
230
|
+
"data-testid": "saved-blocks-edit-category",
|
|
231
|
+
"aria-label": l(j).savedBlocks.category,
|
|
232
|
+
placeholder: l(j).savedBlocks.categoryPlaceholder,
|
|
233
|
+
list: "tpl-saved-block-browser-categories",
|
|
234
|
+
class: "tpl:h-7 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
235
|
+
onKeydown: [C(x((e) => Z(n.id), ["prevent", "stop"]), ["enter"]), o[5] ||= C(x((e) => X(), ["prevent", "stop"]), ["esc"])]
|
|
236
|
+
}, null, 40, je), [[b, V.value]])], 40, ke)) : (e(), d("button", {
|
|
237
|
+
key: 1,
|
|
238
|
+
type: "button",
|
|
239
|
+
"data-testid": "saved-block-card",
|
|
240
|
+
"aria-pressed": L.value === n.id,
|
|
241
|
+
class: "tpl:group/card tpl:w-full tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-md)] tpl:border tpl:bg-transparent tpl:px-3 tpl:py-2 tpl:text-left tpl:transition-all tpl:duration-[120ms]",
|
|
242
|
+
style: t({
|
|
243
|
+
borderColor: L.value === n.id ? "var(--tpl-primary)" : "var(--tpl-border)",
|
|
244
|
+
backgroundColor: L.value === n.id ? "var(--tpl-primary-light)" : "transparent"
|
|
245
|
+
}),
|
|
246
|
+
onClick: (e) => L.value = n.id
|
|
247
|
+
}, [
|
|
248
|
+
u("div", Ne, [u("span", Pe, p(n.name), 1), u("span", Fe, p(l(M)(l(j).savedBlocks.blockCount, { count: n.content.length })), 1)]),
|
|
249
|
+
n.category ? (e(), d("div", Ie, [u("span", Le, p(n.category), 1)])) : v("", !0),
|
|
250
|
+
u("div", Re, [
|
|
251
|
+
(e(!0), d(g, null, a(dt(n), (t) => (e(), h(i(t.icon), {
|
|
252
|
+
key: t.type,
|
|
253
|
+
size: 14,
|
|
254
|
+
"stroke-width": 1.5,
|
|
255
|
+
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
256
|
+
}))), 128)),
|
|
257
|
+
q(n) > 0 ? (e(), d("span", ze, " +" + p(q(n)), 1)) : v("", !0),
|
|
258
|
+
J(n) ? (e(), d("span", {
|
|
259
|
+
key: 1,
|
|
260
|
+
"data-testid": "saved-block-updated",
|
|
261
|
+
class: "tpl:ml-1 tpl:truncate tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]",
|
|
262
|
+
title: ft(n)
|
|
263
|
+
}, p(J(n)), 9, Be)) : v("", !0),
|
|
264
|
+
R.value === n.id ? (e(), d("button", {
|
|
265
|
+
key: 2,
|
|
266
|
+
"aria-label": l(j).savedBlocks.deleteConfirm,
|
|
267
|
+
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)]",
|
|
268
|
+
style: { "background-color": "transparent" },
|
|
269
|
+
onClick: x((e) => pt(n.id), ["stop"])
|
|
270
|
+
}, p(l(j).savedBlocks.deleteConfirm), 9, Ve)) : (e(), d(g, { key: 3 }, [l(N).canUpdateBlock(n) ? (e(), d("button", {
|
|
271
|
+
key: 0,
|
|
272
|
+
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)]",
|
|
273
|
+
"aria-label": l(j).savedBlocks.rename,
|
|
274
|
+
title: l(j).savedBlocks.rename,
|
|
275
|
+
onClick: x((e) => Y(n), ["stop"])
|
|
276
|
+
}, [f(l(oe), {
|
|
277
|
+
size: 12,
|
|
278
|
+
"stroke-width": 1.5
|
|
279
|
+
})], 8, He)) : v("", !0), l(N).canDeleteBlock(n) ? (e(), d("button", {
|
|
280
|
+
key: 1,
|
|
281
|
+
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) }]),
|
|
282
|
+
"aria-label": l(j).savedBlocks.delete,
|
|
283
|
+
title: l(j).savedBlocks.delete,
|
|
284
|
+
onClick: x((e) => R.value = n.id, ["stop"])
|
|
285
|
+
}, [f(l(ce), {
|
|
286
|
+
size: 12,
|
|
287
|
+
"stroke-width": 1.5
|
|
288
|
+
})], 10, Ue)) : v("", !0)], 64))
|
|
289
|
+
])
|
|
290
|
+
], 12, Me))], 64))), 128))])) : (e(), d("div", We, [f(l(T), {
|
|
291
|
+
size: 32,
|
|
292
|
+
"stroke-width": 1,
|
|
293
|
+
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
294
|
+
}), ct.value ? (e(), d("p", Ge, p(l(j).savedBlocks.noResults), 1)) : (e(), d(g, { key: 1 }, [u("p", Ke, p(l(j).savedBlocks.empty), 1), u("p", qe, p(l(j).savedBlocks.emptyHint), 1)], 64))]))])
|
|
295
|
+
]), u("div", Je, [K.value ? (e(), d("div", Ye, [u("div", Xe, [f(l(ot), { blocks: K.value.content }, null, 8, ["blocks"])])])) : (e(), d("div", Ze, [f(l(T), {
|
|
296
|
+
size: 32,
|
|
297
|
+
"stroke-width": 1,
|
|
298
|
+
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
299
|
+
}), u("p", Qe, p(l(j).savedBlocks.selectToPreview), 1)]))])]),
|
|
300
|
+
u("div", $e, [u("div", et, [u("label", tt, p(l(j).savedBlocks.insertPosition), 1), s(u("select", {
|
|
301
|
+
"onUpdate:modelValue": o[6] ||= (e) => U.value = e,
|
|
302
|
+
class: "tpl:h-7 tpl:max-w-[220px] tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
|
|
303
|
+
}, [(e(!0), d(g, null, a(lt.value, (t) => (e(), d("option", {
|
|
304
|
+
key: t.value,
|
|
305
|
+
value: t.value
|
|
306
|
+
}, p(t.label), 9, nt))), 128))], 512), [[S, U.value]])]), u("div", rt, [u("button", {
|
|
307
|
+
type: "button",
|
|
308
|
+
"data-testid": "saved-blocks-browser-close",
|
|
309
|
+
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)]",
|
|
310
|
+
onClick: $
|
|
311
|
+
}, p(l(j).savedBlocks.close), 1), u("button", {
|
|
312
|
+
type: "button",
|
|
313
|
+
class: m(l(ue)),
|
|
314
|
+
disabled: !K.value,
|
|
315
|
+
onClick: Q
|
|
316
|
+
}, p(l(j).savedBlocks.insert), 11, it)])])
|
|
317
|
+
])]),
|
|
318
|
+
_: 1
|
|
319
|
+
}, 8, ["visible"]));
|
|
320
|
+
}
|
|
321
|
+
});
|
|
322
|
+
//#endregion
|
|
323
|
+
export { k as default };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as e, _ as t, at as n, d as r, l as i, r as a, u as o, v as s } from "./vue.runtime.esm-bundler-DShF3P6k.js";
|
|
2
2
|
//#endregion
|
|
3
3
|
//#region src/components/SavedBlocksPanels.vue
|
|
4
4
|
var c = /* @__PURE__ */ s({
|
|
5
5
|
__name: "SavedBlocksPanels",
|
|
6
6
|
props: { feature: {} },
|
|
7
7
|
setup(s) {
|
|
8
|
-
let c = s, l =
|
|
8
|
+
let c = s, l = t(() => import("./SavedBlocksPickBar-BHMwg-1G.js")), u = t(() => import("./SaveBlockDialog-WKASpCCT.js")), d = t(() => import("./SavedBlocksBrowserModal-AYEXTMtQ.js"));
|
|
9
9
|
function f(e, t) {
|
|
10
10
|
c.feature.insert(e, t);
|
|
11
11
|
}
|
|
12
|
-
return (
|
|
13
|
-
s.feature.isPicking.value ? (
|
|
12
|
+
return (t, c) => (e(), r(a, null, [
|
|
13
|
+
s.feature.isPicking.value ? (e(), i(n(l), {
|
|
14
14
|
key: 0,
|
|
15
15
|
count: s.feature.pickedCount.value,
|
|
16
16
|
onConfirm: c[0] ||= (e) => s.feature.confirmPicking(),
|
|
17
17
|
onCancel: c[1] ||= (e) => s.feature.cancelPicking()
|
|
18
18
|
}, null, 8, ["count"])) : o("", !0),
|
|
19
|
-
s.feature.isSaveDialogOpen.value ? (
|
|
19
|
+
s.feature.isSaveDialogOpen.value ? (e(), i(n(u), {
|
|
20
20
|
key: 1,
|
|
21
21
|
visible: s.feature.isSaveDialogOpen.value,
|
|
22
22
|
"picked-ids": [...s.feature.pickedIds.value],
|
|
23
23
|
onClose: c[2] ||= (e) => s.feature.closeSaveDialog(),
|
|
24
24
|
onSaved: c[3] ||= (e) => s.feature.refresh()
|
|
25
25
|
}, null, 8, ["visible", "picked-ids"])) : o("", !0),
|
|
26
|
-
s.feature.isBrowserOpen.value ? (
|
|
26
|
+
s.feature.isBrowserOpen.value ? (e(), i(n(d), {
|
|
27
27
|
key: 2,
|
|
28
28
|
visible: s.feature.isBrowserOpen.value,
|
|
29
29
|
onClose: c[4] ||= (e) => s.feature.closeBrowser(),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as l } from "./useI18n-
|
|
4
|
-
import { t as u } from "./x-
|
|
1
|
+
import { A as e, at as t, c as n, d as r, g as i, h as a, jt as o, v as s } from "./vue.runtime.esm-bundler-DShF3P6k.js";
|
|
2
|
+
import { I as c } from "./useEditorCore-DhlKOYwe.js";
|
|
3
|
+
import { t as l } from "./useI18n-BbdxxpOE.js";
|
|
4
|
+
import { t as u } from "./x-D_-42Ukq.js";
|
|
5
5
|
//#region src/components/SavedBlocksPickBar.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var d = {
|
|
7
7
|
"data-testid": "saved-blocks-pick-bar",
|
|
@@ -19,33 +19,33 @@ var d = {
|
|
|
19
19
|
function C() {
|
|
20
20
|
y.count > 0 && b("confirm");
|
|
21
21
|
}
|
|
22
|
-
return (l, v) => (
|
|
22
|
+
return (l, v) => (e(), r("div", d, [n("div", {
|
|
23
23
|
role: "toolbar",
|
|
24
|
-
"aria-label":
|
|
24
|
+
"aria-label": t(x).savedBlocks.pickToolbar,
|
|
25
25
|
class: "tpl-scale-in tpl:flex tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius-lg)] tpl:border tpl:py-2 tpl:pl-4 tpl:pr-2 tpl:border-[var(--tpl-border)]",
|
|
26
26
|
style: {
|
|
27
27
|
"pointer-events": "auto",
|
|
28
28
|
"background-color": "var(--tpl-bg-elevated)",
|
|
29
29
|
"box-shadow": "var(--tpl-shadow-xl)"
|
|
30
30
|
}
|
|
31
|
-
}, [
|
|
31
|
+
}, [n("div", p, [n("span", m, o(t(S)(t(x).savedBlocks.pickCount, { count: s.count })), 1), n("span", h, o(t(x).savedBlocks.pickHint), 1)]), n("div", g, [n("button", {
|
|
32
32
|
type: "button",
|
|
33
33
|
"data-testid": "saved-blocks-pick-cancel",
|
|
34
34
|
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]",
|
|
35
35
|
onClick: v[0] ||= (e) => b("cancel")
|
|
36
|
-
}, [
|
|
36
|
+
}, [i(t(u), {
|
|
37
37
|
size: 13,
|
|
38
38
|
"stroke-width": 2
|
|
39
|
-
}),
|
|
39
|
+
}), a(" " + o(t(x).savedBlocks.cancel), 1)]), n("button", {
|
|
40
40
|
type: "button",
|
|
41
41
|
"data-testid": "saved-blocks-pick-confirm",
|
|
42
42
|
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:rounded-md tpl:px-2.5 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:hover:opacity-90 tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-on-primary)]",
|
|
43
43
|
disabled: s.count === 0,
|
|
44
44
|
onClick: C
|
|
45
|
-
}, [
|
|
45
|
+
}, [i(t(c), {
|
|
46
46
|
size: 13,
|
|
47
47
|
"stroke-width": 2
|
|
48
|
-
}),
|
|
48
|
+
}), a(" " + o(t(x).savedBlocks.save), 1)], 8, _)])], 8, f)]));
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
//#endregion
|