@templatical/editor 0.35.0 → 0.36.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-DZ0C9mH7.js} +2 -2
- package/dist/cdn/chunks/{src-BC-eolWY.js.map → src-DZ0C9mH7.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 +1091 -1004
- 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 +77 -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 +2488 -2407
- 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
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as f } from "./useI18n-
|
|
3
|
-
import { t as p } from "./loader-circle-
|
|
4
|
-
import { t as m } from "./triangle-alert-
|
|
1
|
+
import { A as e, B as t, at as n, c as r, d as i, g as a, h as o, jt as s, kt as c, l, u, v as d } from "./vue.runtime.esm-bundler-DShF3P6k.js";
|
|
2
|
+
import { t as f } from "./useI18n-BbdxxpOE.js";
|
|
3
|
+
import { t as p } from "./loader-circle-B_tAD4k6.js";
|
|
4
|
+
import { t as m } from "./triangle-alert-C6tGa6jw.js";
|
|
5
5
|
import { d as h, v as g, x as _ } from "./styleConstants-C_YAPdQS.js";
|
|
6
|
-
import { t as v } from "./TplModal-
|
|
6
|
+
import { t as v } from "./TplModal-Q9fDgS1M.js";
|
|
7
7
|
//#region src/components/RestoreVersionDialog.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
var y = ["aria-busy"], b = { class: "tpl:flex tpl:items-center tpl:gap-2" }, x = {
|
|
9
9
|
id: "tpl-restore-version-title",
|
|
@@ -11,7 +11,7 @@ var y = ["aria-busy"], b = { class: "tpl:flex tpl:items-center tpl:gap-2" }, x =
|
|
|
11
11
|
}, S = {
|
|
12
12
|
id: "tpl-restore-version-body",
|
|
13
13
|
class: "tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
|
|
14
|
-
}, C = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, w = ["disabled"], T = ["disabled"], E = ["disabled"], D = /* @__PURE__ */
|
|
14
|
+
}, C = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, w = ["disabled"], T = ["disabled"], E = ["disabled"], D = /* @__PURE__ */ d({
|
|
15
15
|
__name: "RestoreVersionDialog",
|
|
16
16
|
props: {
|
|
17
17
|
visible: { type: Boolean },
|
|
@@ -23,16 +23,16 @@ var y = ["aria-busy"], b = { class: "tpl:flex tpl:items-center tpl:gap-2" }, x =
|
|
|
23
23
|
"save-and-restore",
|
|
24
24
|
"discard-and-restore"
|
|
25
25
|
],
|
|
26
|
-
setup(
|
|
26
|
+
setup(d, { emit: D }) {
|
|
27
27
|
let O = D, { t: k } = f();
|
|
28
|
-
return (f, D) => (
|
|
29
|
-
visible:
|
|
28
|
+
return (f, D) => (e(), l(v, {
|
|
29
|
+
visible: d.visible,
|
|
30
30
|
onClose: D[3] ||= (e) => O("cancel")
|
|
31
31
|
}, {
|
|
32
|
-
default:
|
|
32
|
+
default: t(() => [r("div", {
|
|
33
33
|
role: "alertdialog",
|
|
34
34
|
"aria-modal": "true",
|
|
35
|
-
"aria-busy":
|
|
35
|
+
"aria-busy": d.isBusy,
|
|
36
36
|
"aria-labelledby": "tpl-restore-version-title",
|
|
37
37
|
"aria-describedby": "tpl-restore-version-body",
|
|
38
38
|
"data-testid": "restore-version-dialog",
|
|
@@ -42,40 +42,40 @@ var y = ["aria-busy"], b = { class: "tpl:flex tpl:items-center tpl:gap-2" }, x =
|
|
|
42
42
|
"box-shadow": "var(--tpl-shadow-xl)"
|
|
43
43
|
}
|
|
44
44
|
}, [
|
|
45
|
-
|
|
45
|
+
r("div", b, [a(n(m), {
|
|
46
46
|
size: 18,
|
|
47
47
|
"stroke-width": 2,
|
|
48
48
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
49
|
-
}),
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
}), r("h3", x, s(n(k).versionPreview.restoreConfirm.title), 1)]),
|
|
50
|
+
r("p", S, s(d.canSave ? n(k).versionPreview.restoreConfirm.unsavedWithSave : n(k).versionPreview.restoreConfirm.unsavedNoSave), 1),
|
|
51
|
+
r("div", C, [
|
|
52
|
+
r("button", {
|
|
53
53
|
type: "button",
|
|
54
54
|
"data-testid": "restore-version-cancel",
|
|
55
|
-
class:
|
|
56
|
-
disabled:
|
|
55
|
+
class: c(n(_)),
|
|
56
|
+
disabled: d.isBusy,
|
|
57
57
|
onClick: D[0] ||= (e) => O("cancel")
|
|
58
|
-
},
|
|
59
|
-
|
|
58
|
+
}, s(n(k).versionPreview.restoreConfirm.cancel), 11, w),
|
|
59
|
+
r("button", {
|
|
60
60
|
type: "button",
|
|
61
61
|
"data-testid": "restore-version-discard",
|
|
62
|
-
class:
|
|
63
|
-
disabled:
|
|
62
|
+
class: c(n(h)),
|
|
63
|
+
disabled: d.isBusy,
|
|
64
64
|
onClick: D[1] ||= (e) => O("discard-and-restore")
|
|
65
|
-
},
|
|
66
|
-
|
|
65
|
+
}, s(n(k).versionPreview.restoreConfirm.restoreAnyway), 11, T),
|
|
66
|
+
d.canSave ? (e(), i("button", {
|
|
67
67
|
key: 0,
|
|
68
68
|
type: "button",
|
|
69
69
|
"data-testid": "restore-version-save-first",
|
|
70
|
-
class:
|
|
71
|
-
disabled:
|
|
70
|
+
class: c(n(g)),
|
|
71
|
+
disabled: d.isBusy,
|
|
72
72
|
onClick: D[2] ||= (e) => O("save-and-restore")
|
|
73
|
-
}, [
|
|
73
|
+
}, [d.isBusy ? (e(), l(n(p), {
|
|
74
74
|
key: 0,
|
|
75
75
|
class: "tpl:animate-spin",
|
|
76
76
|
size: 12,
|
|
77
77
|
"stroke-width": 2
|
|
78
|
-
})) :
|
|
78
|
+
})) : u("", !0), o(" " + s(n(k).versionPreview.restoreConfirm.saveAndRestore), 1)], 10, E)) : u("", !0)
|
|
79
79
|
])
|
|
80
80
|
], 8, y)]),
|
|
81
81
|
_: 1
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as _ } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import {
|
|
4
|
-
import { t as x } from "./useI18n-
|
|
5
|
-
import { n as S } from "./usePopoverPosition-
|
|
6
|
-
import { t as C } from "./createLucideIcon-
|
|
7
|
-
import { t as w } from "./MergeTagInput-
|
|
8
|
-
import { t as T } from "./x-
|
|
9
|
-
import { t as E } from "./ColorPicker-
|
|
1
|
+
import { A as e, At as t, F as n, I as r, S as i, at as a, c as o, d as s, g as c, h as l, i as u, jt as d, l as f, s as p, u as m, v as h, w as g } from "./vue.runtime.esm-bundler-DShF3P6k.js";
|
|
2
|
+
import { c as _ } from "./runtime-dom.esm-bundler-PnoZU512.js";
|
|
3
|
+
import { W as v, g as y, q as b } from "./keys-DQA2i1k1.js";
|
|
4
|
+
import { t as x } from "./useI18n-BbdxxpOE.js";
|
|
5
|
+
import { n as S } from "./usePopoverPosition-CprM5p-c.js";
|
|
6
|
+
import { t as C } from "./createLucideIcon-Cwf_nTzE.js";
|
|
7
|
+
import { t as w } from "./MergeTagInput-BEjzj4Iu.js";
|
|
8
|
+
import { t as T } from "./x-D_-42Ukq.js";
|
|
9
|
+
import { t as E } from "./ColorPicker-BqlZ_TqG.js";
|
|
10
10
|
var D = C({
|
|
11
11
|
name: "bold",
|
|
12
12
|
size: 24,
|
|
@@ -40,20 +40,10 @@ var D = C({
|
|
|
40
40
|
key: "uljnxc"
|
|
41
41
|
}]
|
|
42
42
|
]
|
|
43
|
-
}), k =
|
|
44
|
-
name: "link",
|
|
45
|
-
size: 24,
|
|
46
|
-
node: [["path", {
|
|
47
|
-
d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",
|
|
48
|
-
key: "1cjeqo"
|
|
49
|
-
}], ["path", {
|
|
50
|
-
d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",
|
|
51
|
-
key: "19qd67"
|
|
52
|
-
}]]
|
|
53
|
-
}), A = ["data-tpl-theme"], j = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-5 tpl:py-4" }, M = {
|
|
43
|
+
}), k = ["data-tpl-theme"], A = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-5 tpl:py-4" }, j = {
|
|
54
44
|
id: "tpl-link-dialog-title",
|
|
55
45
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
56
|
-
},
|
|
46
|
+
}, M = ["aria-label"], N = { class: "tpl:p-5" }, P = { class: "tpl:mb-4 tpl:last:mb-0" }, F = { class: "tpl:mb-1.5 tpl:block tpl:text-xs tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, I = { class: "tpl:mb-4 tpl:last:mb-0" }, L = { class: "tpl:mb-1.5 tpl:block tpl:text-xs tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, R = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-5 tpl:py-4" }, z = { class: "tpl:ml-auto tpl:flex tpl:gap-2" }, B = /* @__PURE__ */ h({
|
|
57
47
|
__name: "RichTextLinkDialog",
|
|
58
48
|
props: /*@__PURE__*/ g({
|
|
59
49
|
visible: { type: Boolean },
|
|
@@ -76,18 +66,18 @@ var D = C({
|
|
|
76
66
|
"update:linkColor",
|
|
77
67
|
"update:dialogRef"
|
|
78
68
|
]),
|
|
79
|
-
setup(n, { emit:
|
|
80
|
-
let h =
|
|
81
|
-
return (
|
|
69
|
+
setup(n, { emit: l }) {
|
|
70
|
+
let h = r(n, "linkUrl"), g = r(n, "linkColor"), C = r(n, "dialogRef"), D = l, O = i(v, null), B = i(b, null), V = S(), H = i(y, null), U = p(() => H?.content.value.settings.linkColor || "#2c85de"), { t: W } = x();
|
|
71
|
+
return (r, i) => a(V) ? (e(), f(u, {
|
|
82
72
|
key: 0,
|
|
83
|
-
to:
|
|
84
|
-
}, [n.visible ? (
|
|
73
|
+
to: a(V)
|
|
74
|
+
}, [n.visible ? (e(), s("div", {
|
|
85
75
|
key: 0,
|
|
86
|
-
"data-tpl-theme":
|
|
76
|
+
"data-tpl-theme": a(B),
|
|
87
77
|
class: "tpl tpl-link-dialog tpl:fixed tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center",
|
|
88
|
-
style: t(
|
|
89
|
-
onClick:
|
|
90
|
-
}, [
|
|
78
|
+
style: t(a(O)),
|
|
79
|
+
onClick: i[7] ||= _((e) => D("close"), ["self"])
|
|
80
|
+
}, [o("div", {
|
|
91
81
|
ref: (e) => C.value = e,
|
|
92
82
|
role: "dialog",
|
|
93
83
|
"aria-modal": "true",
|
|
@@ -95,51 +85,51 @@ var D = C({
|
|
|
95
85
|
"data-testid": "link-dialog",
|
|
96
86
|
class: "tpl:w-[400px] tpl:overflow-hidden tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-lg)]"
|
|
97
87
|
}, [
|
|
98
|
-
|
|
88
|
+
o("div", A, [o("h4", j, d(n.isEditingLink ? a(W).linkDialog.editLink : a(W).linkDialog.insertLink), 1), o("button", {
|
|
99
89
|
type: "button",
|
|
100
|
-
"aria-label":
|
|
90
|
+
"aria-label": a(W).linkDialog.cancel,
|
|
101
91
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
102
|
-
onClick:
|
|
103
|
-
}, [
|
|
92
|
+
onClick: i[0] ||= (e) => D("close")
|
|
93
|
+
}, [c(a(T), {
|
|
104
94
|
size: 16,
|
|
105
95
|
"stroke-width": 2
|
|
106
|
-
})], 8,
|
|
107
|
-
|
|
96
|
+
})], 8, M)]),
|
|
97
|
+
o("div", N, [o("div", P, [o("label", F, d(a(W).linkDialog.urlLabel), 1), c(w, {
|
|
108
98
|
"model-value": h.value,
|
|
109
99
|
type: "url",
|
|
110
100
|
"data-testid": "link-dialog-url",
|
|
111
|
-
placeholder:
|
|
112
|
-
"onUpdate:modelValue":
|
|
113
|
-
onKeydown:
|
|
114
|
-
}, null, 8, ["model-value", "placeholder"])]),
|
|
101
|
+
placeholder: a(W).linkDialog.urlPlaceholder,
|
|
102
|
+
"onUpdate:modelValue": i[1] ||= (e) => h.value = e,
|
|
103
|
+
onKeydown: i[2] ||= (e) => D("keydown", e)
|
|
104
|
+
}, null, 8, ["model-value", "placeholder"])]), o("div", I, [o("label", L, d(a(W).linkDialog.colorLabel), 1), c(E, {
|
|
115
105
|
"model-value": g.value,
|
|
116
106
|
"seed-color": U.value,
|
|
117
|
-
"onUpdate:modelValue":
|
|
107
|
+
"onUpdate:modelValue": i[3] ||= (e) => g.value = e
|
|
118
108
|
}, null, 8, ["model-value", "seed-color"])])]),
|
|
119
|
-
|
|
109
|
+
o("div", R, [n.isEditingLink ? (e(), s("button", {
|
|
120
110
|
key: 0,
|
|
121
111
|
type: "button",
|
|
122
112
|
class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-danger)] tpl:bg-transparent tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:text-[var(--tpl-danger)] tpl:transition-all tpl:hover:bg-[var(--tpl-danger-light)]",
|
|
123
|
-
onClick:
|
|
124
|
-
},
|
|
113
|
+
onClick: i[4] ||= (e) => D("remove")
|
|
114
|
+
}, d(a(W).linkDialog.removeLink), 1)) : m("", !0), o("div", z, [o("button", {
|
|
125
115
|
type: "button",
|
|
126
116
|
class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-transparent tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
127
|
-
onClick:
|
|
128
|
-
},
|
|
117
|
+
onClick: i[5] ||= (e) => D("close")
|
|
118
|
+
}, d(a(W).linkDialog.cancel), 1), o("button", {
|
|
129
119
|
type: "button",
|
|
130
120
|
class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border-none tpl:bg-[var(--tpl-primary)] tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:transition-all tpl:hover:bg-[var(--tpl-primary-hover)] tpl:text-[var(--tpl-on-primary)]",
|
|
131
121
|
"data-testid": "link-dialog-submit",
|
|
132
|
-
onClick:
|
|
133
|
-
},
|
|
134
|
-
], 512)], 12,
|
|
122
|
+
onClick: i[6] ||= (e) => D("insert")
|
|
123
|
+
}, d(n.isEditingLink ? a(W).linkDialog.updateLink : a(W).linkDialog.insertLink), 1)])])
|
|
124
|
+
], 512)], 12, k)) : m("", !0)], 8, ["to"])) : m("", !0);
|
|
135
125
|
}
|
|
136
|
-
}),
|
|
126
|
+
}), V = {
|
|
137
127
|
key: 0,
|
|
138
128
|
class: "tpl-text-editable tpl:min-h-[1.5em] tpl:rounded tpl:border tpl:border-dashed tpl:border-[var(--tpl-primary)] tpl:p-2"
|
|
139
|
-
},
|
|
129
|
+
}, H = { class: "tpl:animate-pulse tpl:text-[var(--tpl-text-dim)]" }, U = {
|
|
140
130
|
key: 1,
|
|
141
131
|
class: "tpl-text-editable tpl:min-h-[1.5em] tpl:rounded tpl:border tpl:border-dashed tpl:p-2 tpl:text-center tpl:text-xs tpl:border-[var(--tpl-danger)] tpl:text-[var(--tpl-text-muted)]"
|
|
142
|
-
},
|
|
132
|
+
}, W = /* @__PURE__ */ h({
|
|
143
133
|
__name: "RichTextEditorContent",
|
|
144
134
|
props: {
|
|
145
135
|
editor: {},
|
|
@@ -148,17 +138,17 @@ var D = C({
|
|
|
148
138
|
initError: {}
|
|
149
139
|
},
|
|
150
140
|
emits: ["retry"],
|
|
151
|
-
setup(
|
|
152
|
-
let
|
|
153
|
-
return (
|
|
141
|
+
setup(t, { emit: r }) {
|
|
142
|
+
let i = r, { t: c } = x();
|
|
143
|
+
return (r, u) => t.isLoading ? (e(), s("div", V, [o("div", H, d(a(c).errors.editorLoading), 1)])) : t.initError ? (e(), s("div", U, [l(d(a(c).errors.editorLoadFailed) + " ", 1), o("button", {
|
|
154
144
|
class: "tpl:ml-1 tpl:cursor-pointer tpl:border-none tpl:bg-transparent tpl:p-0 tpl:underline tpl:text-[var(--tpl-primary)]",
|
|
155
|
-
onClick:
|
|
156
|
-
},
|
|
145
|
+
onClick: u[0] ||= (e) => i("retry")
|
|
146
|
+
}, d(a(c).errors.retry), 1)])) : t.editorContent && t.editor ? (e(), f(n(t.editorContent), {
|
|
157
147
|
key: 2,
|
|
158
|
-
editor:
|
|
148
|
+
editor: t.editor,
|
|
159
149
|
class: "tpl-text-editable tpl:min-h-[1.5em] tpl:rounded tpl:border tpl:border-dashed tpl:border-[var(--tpl-primary)] tpl:p-2"
|
|
160
150
|
}, null, 8, ["editor"])) : m("", !0);
|
|
161
151
|
}
|
|
162
152
|
});
|
|
163
153
|
//#endregion
|
|
164
|
-
export { D as
|
|
154
|
+
export { D as i, B as n, O as r, W as t };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as C, c as w, s as T } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as N } from "./chevron-up-
|
|
8
|
-
import { t as P } from "./loader-circle-
|
|
1
|
+
import { A as e, At as t, B as n, D as r, F as i, M as a, O as o, R as s, S as c, V as l, Z as u, at as d, c as f, d as p, g as m, h, jt as g, kt as _, l as v, r as y, s as b, u as x, v as S } from "./vue.runtime.esm-bundler-DShF3P6k.js";
|
|
2
|
+
import { a as C, c as w, s as T } from "./runtime-dom.esm-bundler-PnoZU512.js";
|
|
3
|
+
import { J as ee, N as E, c as D } from "./useEditorCore-DhlKOYwe.js";
|
|
4
|
+
import { B as O, Y as k, g as A, p as te } from "./keys-DQA2i1k1.js";
|
|
5
|
+
import { t as j } from "./useI18n-BbdxxpOE.js";
|
|
6
|
+
import { t as M } from "./chevron-down-C-Fjxcqj.js";
|
|
7
|
+
import { t as N } from "./chevron-up-lntU1ypp.js";
|
|
8
|
+
import { t as P } from "./loader-circle-B_tAD4k6.js";
|
|
9
9
|
import { v as F } from "./styleConstants-C_YAPdQS.js";
|
|
10
10
|
import { n as I } from "./emailFrameWidth-BmFCN2dp.js";
|
|
11
|
-
import { t as L } from "./TplModal-
|
|
12
|
-
import { t as R } from "./BlockPreviewCanvas-
|
|
11
|
+
import { t as L } from "./TplModal-Q9fDgS1M.js";
|
|
12
|
+
import { t as R } from "./BlockPreviewCanvas-DDCmMram.js";
|
|
13
13
|
//#region src/components/SavedBlockPreviewRow.vue?vue&type=script&setup=true&lang.ts
|
|
14
14
|
var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relative tpl:min-w-0 tpl:flex-1" }, H = {
|
|
15
15
|
key: 0,
|
|
@@ -17,7 +17,7 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
17
17
|
"aria-hidden": "true",
|
|
18
18
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-x-0 tpl:bottom-0 tpl:h-10",
|
|
19
19
|
style: { background: "linear-gradient(\n to bottom,\n transparent,\n var(--tpl-bg) 90%\n )" }
|
|
20
|
-
}, U = ["aria-label", "aria-expanded"], W = 240, G = /* @__PURE__ */
|
|
20
|
+
}, U = ["aria-label", "aria-expanded"], W = 240, G = /* @__PURE__ */ S({
|
|
21
21
|
__name: "SavedBlockPreviewRow",
|
|
22
22
|
props: {
|
|
23
23
|
block: {},
|
|
@@ -25,69 +25,69 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
25
25
|
total: {}
|
|
26
26
|
},
|
|
27
27
|
emits: ["move"],
|
|
28
|
-
setup(
|
|
29
|
-
let
|
|
28
|
+
setup(n, { emit: a }) {
|
|
29
|
+
let s = n, l = a, { t: _, format: y } = j(), S = c(te, []), C = c(A, null), D = b(() => I(C?.content.value.settings)), O = u(null), k = u(null), P = u(1), F = u(null), L = u(!1), G = null, K = b(() => F.value !== null && F.value > W), q = b(() => F.value === null ? null : L.value || !K.value ? F.value : W);
|
|
30
30
|
function J() {
|
|
31
|
-
let e =
|
|
31
|
+
let e = O.value, t = k.value;
|
|
32
32
|
if (!e || !t) return;
|
|
33
33
|
let n = e.clientWidth;
|
|
34
34
|
if (n <= 0) return;
|
|
35
|
-
let r = Math.min(1, n /
|
|
35
|
+
let r = Math.min(1, n / D.value);
|
|
36
36
|
P.value = r, F.value = t.offsetHeight * r;
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
J(), !(typeof ResizeObserver > "u") && (G = new ResizeObserver(() => J()),
|
|
38
|
+
o(() => {
|
|
39
|
+
J(), !(typeof ResizeObserver > "u") && (G = new ResizeObserver(() => J()), O.value && G.observe(O.value), k.value && G.observe(k.value));
|
|
40
40
|
}), r(() => {
|
|
41
41
|
G?.disconnect(), G = null;
|
|
42
42
|
});
|
|
43
|
-
let Y =
|
|
43
|
+
let Y = b(() => ee(s.block, _, S)), X = b(() => y(_.savedBlocks.reorderHandle, {
|
|
44
44
|
block: Y.value,
|
|
45
|
-
position:
|
|
46
|
-
total:
|
|
47
|
-
})), Z =
|
|
48
|
-
return (
|
|
45
|
+
position: s.position,
|
|
46
|
+
total: s.total
|
|
47
|
+
})), Z = b(() => y(L.value ? _.savedBlocks.collapsePreview : _.savedBlocks.expandPreview, { block: Y.value }));
|
|
48
|
+
return (r, a) => (e(), p("div", {
|
|
49
49
|
"data-testid": "saved-blocks-reorder-row",
|
|
50
|
-
"data-block-id":
|
|
50
|
+
"data-block-id": n.block.id,
|
|
51
51
|
class: "tpl:flex tpl:items-start tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-md)] tpl:border tpl:p-1.5 tpl:border-[var(--tpl-border)]",
|
|
52
52
|
style: { "background-color": "var(--tpl-bg)" }
|
|
53
|
-
}, [
|
|
53
|
+
}, [f("button", {
|
|
54
54
|
type: "button",
|
|
55
55
|
"data-testid": "saved-blocks-reorder-handle",
|
|
56
56
|
class: "tpl-saved-block-reorder-handle tpl:mt-0.5 tpl:shrink-0 tpl:cursor-grab tpl:rounded tpl:border-none tpl:bg-transparent tpl:p-0.5 tpl:text-[var(--tpl-text-dim)]",
|
|
57
57
|
"aria-label": X.value,
|
|
58
|
-
title:
|
|
59
|
-
onKeydown: [
|
|
60
|
-
}, [d(
|
|
58
|
+
title: d(_).savedBlocks.reorderHint,
|
|
59
|
+
onKeydown: [a[0] ||= T(w((e) => l("move", -1), ["prevent"]), ["up"]), a[1] ||= T(w((e) => l("move", 1), ["prevent"]), ["down"])]
|
|
60
|
+
}, [m(d(E), {
|
|
61
61
|
size: 14,
|
|
62
62
|
"stroke-width": 1.5
|
|
63
|
-
})], 40, B),
|
|
64
|
-
|
|
63
|
+
})], 40, B), f("div", V, [
|
|
64
|
+
f("div", {
|
|
65
65
|
ref_key: "frameEl",
|
|
66
|
-
ref:
|
|
66
|
+
ref: O,
|
|
67
67
|
class: "tpl:overflow-hidden",
|
|
68
|
-
style:
|
|
69
|
-
}, [
|
|
68
|
+
style: t({ height: q.value === null ? void 0 : `${q.value}px` })
|
|
69
|
+
}, [f("div", {
|
|
70
70
|
ref_key: "contentEl",
|
|
71
|
-
ref:
|
|
72
|
-
style:
|
|
73
|
-
width: `${
|
|
71
|
+
ref: k,
|
|
72
|
+
style: t({
|
|
73
|
+
width: `${D.value}px`,
|
|
74
74
|
transform: `scale(${P.value})`,
|
|
75
75
|
transformOrigin: "top left"
|
|
76
76
|
})
|
|
77
|
-
}, [
|
|
78
|
-
K.value && !L.value ? (
|
|
79
|
-
K.value ? (
|
|
77
|
+
}, [m(R, { blocks: [n.block] }, null, 8, ["blocks"])], 4)], 4),
|
|
78
|
+
K.value && !L.value ? (e(), p("div", H)) : x("", !0),
|
|
79
|
+
K.value ? (e(), p("button", {
|
|
80
80
|
key: 1,
|
|
81
81
|
type: "button",
|
|
82
82
|
"data-testid": "saved-blocks-preview-toggle",
|
|
83
83
|
class: "tpl:absolute tpl:bottom-1 tpl:right-1 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-0.5 tpl:rounded tpl:border tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:text-[var(--tpl-text-muted)]",
|
|
84
84
|
"aria-label": Z.value,
|
|
85
85
|
"aria-expanded": L.value,
|
|
86
|
-
onClick:
|
|
87
|
-
}, [(
|
|
86
|
+
onClick: a[2] ||= (e) => L.value = !L.value
|
|
87
|
+
}, [(e(), v(i(L.value ? d(N) : d(M)), {
|
|
88
88
|
size: 11,
|
|
89
89
|
"stroke-width": 2
|
|
90
|
-
})),
|
|
90
|
+
})), h(" " + g(L.value ? d(_).savedBlocks.collapse : d(_).savedBlocks.expand), 1)], 8, U)) : x("", !0)
|
|
91
91
|
])], 8, z));
|
|
92
92
|
}
|
|
93
93
|
}), K = ["aria-busy"], q = {
|
|
@@ -114,7 +114,7 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
114
114
|
}, de = { class: "tpl:flex tpl:shrink-0 tpl:justify-end tpl:gap-2" }, fe = ["disabled"], pe = ["disabled"], me = {
|
|
115
115
|
key: 0,
|
|
116
116
|
class: "tpl:flex tpl:items-center tpl:gap-1.5"
|
|
117
|
-
}, he = { key: 1 }, Q = /* @__PURE__ */
|
|
117
|
+
}, he = { key: 1 }, Q = /* @__PURE__ */ S({
|
|
118
118
|
__name: "SaveBlockDialog",
|
|
119
119
|
props: {
|
|
120
120
|
visible: { type: Boolean },
|
|
@@ -122,10 +122,10 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
122
122
|
},
|
|
123
123
|
emits: ["close", "saved"],
|
|
124
124
|
setup(t, { emit: r }) {
|
|
125
|
-
let
|
|
125
|
+
let i = t, o = r, { t: S, format: w } = j(), T = k(A, "SaveBlockDialog"), E = k(O, "SaveBlockDialog"), M = c(te, []), N = u(""), I = u(""), R = u(!1), z = u(null), B = u(""), V = u([]), H = b(() => {
|
|
126
126
|
let e = new Map(T.content.value.blocks.map((e) => [e.id, e]));
|
|
127
127
|
return V.value.map((t) => e.get(t)).filter((e) => e !== void 0);
|
|
128
|
-
}), U =
|
|
128
|
+
}), U = b({
|
|
129
129
|
get: () => H.value,
|
|
130
130
|
set: (e) => {
|
|
131
131
|
V.value = e.map((e) => e.id);
|
|
@@ -136,20 +136,20 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
136
136
|
if (r === -1 || i < 0 || i >= n.length) return;
|
|
137
137
|
[n[r], n[i]] = [n[i], n[r]], V.value = n;
|
|
138
138
|
let a = H.value[i];
|
|
139
|
-
B.value = a ? w(
|
|
139
|
+
B.value = a ? w(S.savedBlocks.reorderAnnouncement, {
|
|
140
140
|
block: Q(a),
|
|
141
141
|
position: i + 1,
|
|
142
142
|
total: n.length
|
|
143
143
|
}) : "";
|
|
144
144
|
}
|
|
145
145
|
function Q(e) {
|
|
146
|
-
return
|
|
146
|
+
return ee(e, S, M);
|
|
147
147
|
}
|
|
148
|
-
let ge =
|
|
149
|
-
|
|
150
|
-
e && (N.value = "", I.value = "", z.value = null, B.value = "", V.value = [...
|
|
148
|
+
let ge = b(() => H.value.map(Q).join(", "));
|
|
149
|
+
s(() => i.visible, (e) => {
|
|
150
|
+
e && (N.value = "", I.value = "", z.value = null, B.value = "", V.value = [...i.pickedIds]);
|
|
151
151
|
}, { immediate: !0 });
|
|
152
|
-
let _e =
|
|
152
|
+
let _e = b(() => N.value.trim().length > 0 && H.value.length > 0 && !R.value);
|
|
153
153
|
async function ve() {
|
|
154
154
|
if (!_e.value) return;
|
|
155
155
|
let e = H.value;
|
|
@@ -170,12 +170,12 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
170
170
|
function ye(e) {
|
|
171
171
|
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), ve()), e.key === "Escape" && $();
|
|
172
172
|
}
|
|
173
|
-
return (r, i) => (
|
|
173
|
+
return (r, i) => (e(), v(L, {
|
|
174
174
|
visible: t.visible,
|
|
175
175
|
onClose: $,
|
|
176
176
|
onKeydown: ye
|
|
177
177
|
}, {
|
|
178
|
-
default:
|
|
178
|
+
default: n(() => [f("div", {
|
|
179
179
|
role: "dialog",
|
|
180
180
|
"aria-modal": "true",
|
|
181
181
|
"aria-busy": R.value,
|
|
@@ -186,35 +186,35 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
186
186
|
"box-shadow": "var(--tpl-shadow-xl)"
|
|
187
187
|
}
|
|
188
188
|
}, [
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
f("h3", q, g(d(S).savedBlocks.saveAsBlock), 1),
|
|
190
|
+
f("div", J, [f("label", Y, g(d(S).savedBlocks.name), 1), l(f("input", {
|
|
191
191
|
"onUpdate:modelValue": i[0] ||= (e) => N.value = e,
|
|
192
192
|
type: "text",
|
|
193
193
|
"data-testid": "saved-blocks-name-input",
|
|
194
|
-
placeholder:
|
|
194
|
+
placeholder: d(S).savedBlocks.namePlaceholder,
|
|
195
195
|
class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:shadow-[var(--tpl-shadow-sm)] tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
196
196
|
disabled: R.value
|
|
197
197
|
}, null, 8, X), [[C, N.value]])]),
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
198
|
+
f("div", Z, [
|
|
199
|
+
f("label", ne, g(d(S).savedBlocks.category), 1),
|
|
200
|
+
l(f("input", {
|
|
201
201
|
id: "tpl-save-block-category",
|
|
202
202
|
"onUpdate:modelValue": i[1] ||= (e) => I.value = e,
|
|
203
203
|
type: "text",
|
|
204
204
|
"data-testid": "saved-blocks-category-input",
|
|
205
205
|
list: "tpl-saved-block-categories",
|
|
206
|
-
placeholder:
|
|
206
|
+
placeholder: d(S).savedBlocks.categoryPlaceholder,
|
|
207
207
|
class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:shadow-[var(--tpl-shadow-sm)] tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
208
208
|
disabled: R.value
|
|
209
209
|
}, null, 8, re), [[C, I.value]]),
|
|
210
|
-
|
|
211
|
-
key:
|
|
212
|
-
value:
|
|
210
|
+
f("datalist", ie, [(e(!0), p(y, null, a(d(E).categories.value, (t) => (e(), p("option", {
|
|
211
|
+
key: t,
|
|
212
|
+
value: t
|
|
213
213
|
}, null, 8, ae))), 128))])
|
|
214
214
|
]),
|
|
215
|
-
|
|
216
|
-
H.value.length > 1 ? (
|
|
217
|
-
d(
|
|
215
|
+
f("p", oe, [h(g(d(w)(d(S).savedBlocks.savingCount, { count: H.value.length })) + " ", 1), f("span", se, g(ge.value), 1)]),
|
|
216
|
+
H.value.length > 1 ? (e(), p("p", ce, g(d(S).savedBlocks.reorderHint), 1)) : x("", !0),
|
|
217
|
+
m(d(D), {
|
|
218
218
|
modelValue: U.value,
|
|
219
219
|
"onUpdate:modelValue": i[2] ||= (e) => U.value = e,
|
|
220
220
|
"data-testid": "saved-blocks-reorder-list",
|
|
@@ -225,12 +225,12 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
225
225
|
"force-fallback": !0,
|
|
226
226
|
class: "tpl:mb-4 tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl:gap-1.5 tpl:overflow-y-auto"
|
|
227
227
|
}, {
|
|
228
|
-
default:
|
|
229
|
-
key:
|
|
230
|
-
block:
|
|
231
|
-
position:
|
|
228
|
+
default: n(() => [(e(!0), p(y, null, a(U.value, (t, n) => (e(), v(G, {
|
|
229
|
+
key: t.id,
|
|
230
|
+
block: t,
|
|
231
|
+
position: n + 1,
|
|
232
232
|
total: U.value.length,
|
|
233
|
-
onMove: (
|
|
233
|
+
onMove: (e) => W(t.id, e)
|
|
234
234
|
}, null, 8, [
|
|
235
235
|
"block",
|
|
236
236
|
"position",
|
|
@@ -239,23 +239,23 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
239
239
|
]))), 128))]),
|
|
240
240
|
_: 1
|
|
241
241
|
}, 8, ["modelValue"]),
|
|
242
|
-
|
|
243
|
-
z.value ? (
|
|
244
|
-
|
|
242
|
+
f("div", le, g(B.value), 1),
|
|
243
|
+
z.value ? (e(), p("p", ue, g(z.value), 1)) : x("", !0),
|
|
244
|
+
f("div", de, [f("button", {
|
|
245
245
|
type: "button",
|
|
246
|
-
class:
|
|
246
|
+
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)]", { "tpl:cursor-not-allowed tpl:opacity-50": R.value }]),
|
|
247
247
|
disabled: R.value,
|
|
248
248
|
onClick: $
|
|
249
|
-
},
|
|
249
|
+
}, g(d(S).savedBlocks.cancel), 11, fe), f("button", {
|
|
250
250
|
type: "button",
|
|
251
|
-
class:
|
|
251
|
+
class: _(d(F)),
|
|
252
252
|
disabled: !_e.value,
|
|
253
253
|
onClick: ve
|
|
254
|
-
}, [R.value ? (
|
|
254
|
+
}, [R.value ? (e(), p("span", me, [m(d(P), {
|
|
255
255
|
class: "tpl:animate-spin",
|
|
256
256
|
size: 12,
|
|
257
257
|
"stroke-width": 2
|
|
258
|
-
}),
|
|
258
|
+
}), h(" " + g(d(S).savedBlocks.saving), 1)])) : (e(), p("span", he, g(d(S).savedBlocks.save), 1))], 10, pe)])
|
|
259
259
|
], 8, K)]),
|
|
260
260
|
_: 1
|
|
261
261
|
}, 8, ["visible"]));
|