@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,20 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import {
|
|
17
|
-
|
|
1
|
+
import { A as e, At as t, B as n, F as r, M as i, R as ee, S as a, Z as te, at as o, c as s, d as c, g as l, h as u, jt as d, kt as f, l as p, r as m, u as h, v as g } from "./vue.runtime.esm-bundler-DShF3P6k.js";
|
|
2
|
+
import { t as ne } from "./runtime-dom.esm-bundler-PnoZU512.js";
|
|
3
|
+
import { D as re, V as ie, Y as _, g as ae } from "./keys-DQA2i1k1.js";
|
|
4
|
+
import { t as v } from "./createLucideIcon-Cwf_nTzE.js";
|
|
5
|
+
import { t as oe } from "./chevron-down-C-Fjxcqj.js";
|
|
6
|
+
import { t as y } from "./circle-alert-CjzUTwy3.js";
|
|
7
|
+
import { t as se } from "./eye-BuGtFUoJ.js";
|
|
8
|
+
import { t as b } from "./info-BQ60P82u.js";
|
|
9
|
+
import { t as x } from "./loader-circle-B_tAD4k6.js";
|
|
10
|
+
import { t as S } from "./refresh-cw-DEgfb2FK.js";
|
|
11
|
+
import { t as C } from "./shield-check-DhD1Z3rd.js";
|
|
12
|
+
import { t as w } from "./sparkles-R0ZQHa6F.js";
|
|
13
|
+
import { t as ce } from "./triangle-alert-C6tGa6jw.js";
|
|
14
|
+
import { t as le } from "./x-D_-42Ukq.js";
|
|
15
|
+
import { t as ue } from "./LoadingTrack-BlTL4zFv.js";
|
|
16
|
+
import { t as T } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
17
|
+
import { n as E } from "./useCloudI18n-BLyh_e2T.js";
|
|
18
|
+
var D = v({
|
|
18
19
|
name: "shield-x",
|
|
19
20
|
size: 24,
|
|
20
21
|
node: [
|
|
@@ -32,7 +33,7 @@ var O = b({
|
|
|
32
33
|
}]
|
|
33
34
|
],
|
|
34
35
|
aliases: ["shield-close"]
|
|
35
|
-
}),
|
|
36
|
+
}), O = v({
|
|
36
37
|
name: "zap",
|
|
37
38
|
size: 24,
|
|
38
39
|
node: [["path", {
|
|
@@ -42,39 +43,39 @@ var O = b({
|
|
|
42
43
|
});
|
|
43
44
|
//#endregion
|
|
44
45
|
//#region src/cloud/utils/scoringStyles.ts
|
|
45
|
-
function
|
|
46
|
+
function k(e) {
|
|
46
47
|
return e >= 80 ? "var(--tpl-success)" : e >= 60 ? "var(--tpl-warning)" : "var(--tpl-danger)";
|
|
47
48
|
}
|
|
48
|
-
function
|
|
49
|
+
function A(e) {
|
|
49
50
|
return e >= 80 ? "var(--tpl-success-light)" : e >= 60 ? "var(--tpl-warning-light)" : "var(--tpl-danger-light)";
|
|
50
51
|
}
|
|
51
|
-
function
|
|
52
|
+
function j(e) {
|
|
52
53
|
return e === "high" ? "var(--tpl-danger)" : e === "medium" ? "var(--tpl-warning)" : "var(--tpl-text-muted)";
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
+
function M(e) {
|
|
55
56
|
return e === "high" ? "var(--tpl-danger-light)" : e === "medium" ? "var(--tpl-warning-light)" : "var(--tpl-bg-hover)";
|
|
56
57
|
}
|
|
57
58
|
//#endregion
|
|
58
59
|
//#region src/cloud/components/TemplateScoringPanel.vue?vue&type=script&setup=true&lang.ts
|
|
59
|
-
var
|
|
60
|
+
var N = {
|
|
60
61
|
key: 0,
|
|
61
62
|
class: "tpl-scoring-panel tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
|
|
62
|
-
},
|
|
63
|
+
}, P = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, F = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, I = { class: "tpl:flex tpl:items-center tpl:gap-1" }, L = ["title"], R = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, z = {
|
|
63
64
|
key: 0,
|
|
64
65
|
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
65
|
-
},
|
|
66
|
+
}, B = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, V = {
|
|
66
67
|
key: 1,
|
|
67
68
|
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
68
|
-
},
|
|
69
|
+
}, H = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, U = {
|
|
69
70
|
key: 2,
|
|
70
71
|
class: "tpl:flex tpl:flex-col tpl:gap-4"
|
|
71
|
-
},
|
|
72
|
+
}, de = { class: "tpl:text-xs tpl:font-medium tpl:uppercase tpl:tracking-wider tpl:text-[var(--tpl-text-muted)]" }, fe = {
|
|
72
73
|
key: 0,
|
|
73
74
|
class: "tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
74
|
-
},
|
|
75
|
+
}, pe = {
|
|
75
76
|
key: 0,
|
|
76
77
|
class: "tpl:flex tpl:items-start tpl:gap-2 tpl:rounded-lg tpl:px-3 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
|
|
77
|
-
},
|
|
78
|
+
}, W = ["onClick"], me = { class: "tpl:flex-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, he = {
|
|
78
79
|
key: 0,
|
|
79
80
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]"
|
|
80
81
|
}, ge = {
|
|
@@ -95,12 +96,12 @@ var P = {
|
|
|
95
96
|
}, Ee = {
|
|
96
97
|
key: 3,
|
|
97
98
|
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
98
|
-
}, De = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Oe = { class: "tpl:m-0 tpl:px-4 tpl:pb-2 tpl:pt-2 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, G = /*#__PURE__*/
|
|
99
|
+
}, De = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Oe = { class: "tpl:m-0 tpl:px-4 tpl:pb-2 tpl:pt-2 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, G = /*#__PURE__*/ T(/* @__PURE__ */ g({
|
|
99
100
|
__name: "TemplateScoringPanel",
|
|
100
101
|
props: { visible: { type: Boolean } },
|
|
101
102
|
emits: ["close"],
|
|
102
|
-
setup(
|
|
103
|
-
let
|
|
103
|
+
setup(g, { emit: v }) {
|
|
104
|
+
let T = g, G = v, { t: K } = E(), q = _(ae, "TemplateScoringPanel"), J = _(ie, "TemplateScoringPanel"), Y = a(re, []), X = te({
|
|
104
105
|
spam: !0,
|
|
105
106
|
readability: !0,
|
|
106
107
|
accessibility: !0,
|
|
@@ -115,15 +116,15 @@ var P = {
|
|
|
115
116
|
"accessibility",
|
|
116
117
|
"bestPractices"
|
|
117
118
|
], Ae = {
|
|
118
|
-
spam:
|
|
119
|
-
readability:
|
|
120
|
-
accessibility:
|
|
121
|
-
bestPractices:
|
|
119
|
+
spam: D,
|
|
120
|
+
readability: se,
|
|
121
|
+
accessibility: w,
|
|
122
|
+
bestPractices: O
|
|
122
123
|
};
|
|
123
124
|
function Q() {
|
|
124
125
|
J.score(q.content.value, Y);
|
|
125
126
|
}
|
|
126
|
-
|
|
127
|
+
ee(() => T.visible, (e) => {
|
|
127
128
|
e && !J.scoringResult.value && !J.isScoring.value && Q();
|
|
128
129
|
});
|
|
129
130
|
async function je(e) {
|
|
@@ -138,7 +139,7 @@ var P = {
|
|
|
138
139
|
function $() {
|
|
139
140
|
return J.scoringResult.value ? Z.reduce((e, t) => e + (J.scoringResult.value?.categories[t]?.findings.length ?? 0), 0) : 0;
|
|
140
141
|
}
|
|
141
|
-
return (
|
|
142
|
+
return (ee, a) => (e(), p(ne, {
|
|
142
143
|
"enter-active-class": "tpl-scoring-slide-enter-active",
|
|
143
144
|
"enter-from-class": "tpl:translate-x-full",
|
|
144
145
|
"enter-to-class": "tpl:translate-x-0",
|
|
@@ -146,118 +147,118 @@ var P = {
|
|
|
146
147
|
"leave-from-class": "tpl:translate-x-0",
|
|
147
148
|
"leave-to-class": "tpl:translate-x-full"
|
|
148
149
|
}, {
|
|
149
|
-
default:
|
|
150
|
+
default: n(() => [g.visible ? (e(), c("div", N, [s("div", P, [s("div", F, [l(o(C), {
|
|
150
151
|
size: 13,
|
|
151
152
|
"stroke-width": 2
|
|
152
|
-
}),
|
|
153
|
+
}), s("span", null, d(o(K).scoring.title), 1)]), s("div", I, [o(J).scoringResult.value && !o(J).isScoring.value ? (e(), c("button", {
|
|
153
154
|
key: 0,
|
|
154
155
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
|
|
155
|
-
title:
|
|
156
|
-
onClick:
|
|
157
|
-
}, [
|
|
156
|
+
title: o(K).scoring.rescore,
|
|
157
|
+
onClick: a[0] ||= (e) => Q()
|
|
158
|
+
}, [l(o(S), {
|
|
158
159
|
size: 14,
|
|
159
160
|
"stroke-width": 2
|
|
160
|
-
})], 8,
|
|
161
|
+
})], 8, L)) : h("", !0), s("button", {
|
|
161
162
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
|
|
162
|
-
onClick:
|
|
163
|
-
}, [
|
|
163
|
+
onClick: a[1] ||= (e) => G("close")
|
|
164
|
+
}, [l(o(le), {
|
|
164
165
|
size: 14,
|
|
165
166
|
"stroke-width": 2
|
|
166
|
-
})])])]),
|
|
167
|
-
|
|
167
|
+
})])])]), s("div", R, [o(J).isScoring.value ? (e(), c("div", z, [s("p", B, d(o(K).scoring.scoring), 1), l(ue, { class: "tpl:w-3/4" })])) : o(J).error.value && !o(J).scoringResult.value ? (e(), c("div", V, [
|
|
168
|
+
l(o(y), {
|
|
168
169
|
size: 32,
|
|
169
170
|
"stroke-width": 1.5,
|
|
170
171
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
171
172
|
}),
|
|
172
|
-
|
|
173
|
-
|
|
173
|
+
s("p", H, d(o(K).scoring.error), 1),
|
|
174
|
+
s("button", {
|
|
174
175
|
class: "tpl:mt-2 tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-muted)]",
|
|
175
|
-
onClick:
|
|
176
|
-
}, [
|
|
176
|
+
onClick: a[2] ||= (e) => Q()
|
|
177
|
+
}, [l(o(S), {
|
|
177
178
|
size: 12,
|
|
178
179
|
"stroke-width": 2
|
|
179
|
-
}),
|
|
180
|
-
])) :
|
|
181
|
-
|
|
180
|
+
}), u(" " + d(o(K).scoring.rescore), 1)])
|
|
181
|
+
])) : o(J).scoringResult.value ? (e(), c("div", U, [
|
|
182
|
+
s("div", {
|
|
182
183
|
class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:p-5",
|
|
183
|
-
style:
|
|
184
|
+
style: t({ backgroundColor: o(A)(o(J).scoringResult.value.score) })
|
|
184
185
|
}, [
|
|
185
|
-
|
|
186
|
+
s("span", {
|
|
186
187
|
class: "tpl:text-4xl tpl:font-bold tpl:tabular-nums",
|
|
187
|
-
style:
|
|
188
|
-
},
|
|
189
|
-
|
|
190
|
-
$() > 0 ? (
|
|
188
|
+
style: t({ color: o(k)(o(J).scoringResult.value.score) })
|
|
189
|
+
}, d(o(J).scoringResult.value.score), 5),
|
|
190
|
+
s("span", de, d(o(K).scoring.overallScore), 1),
|
|
191
|
+
$() > 0 ? (e(), c("span", fe, d($()) + " " + d(o(K).scoring.findings), 1)) : h("", !0)
|
|
191
192
|
], 4),
|
|
192
|
-
|
|
193
|
+
o(J).fixError.value ? (e(), c("div", pe, [l(o(y), {
|
|
193
194
|
size: 14,
|
|
194
195
|
"stroke-width": 2,
|
|
195
196
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
196
|
-
}),
|
|
197
|
-
(
|
|
198
|
-
key:
|
|
197
|
+
}), s("span", null, d(o(K).scoring.fixError), 1)])) : h("", !0),
|
|
198
|
+
(e(), c(m, null, i(Z, (n) => s("div", {
|
|
199
|
+
key: n,
|
|
199
200
|
class: "tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)]"
|
|
200
|
-
}, [
|
|
201
|
+
}, [s("button", {
|
|
201
202
|
class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-2.5 tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-colors tpl:bg-[var(--tpl-bg)]",
|
|
202
|
-
onClick: (e) => ke(
|
|
203
|
+
onClick: (e) => ke(n)
|
|
203
204
|
}, [
|
|
204
|
-
(
|
|
205
|
+
(e(), p(r(Ae[n]), {
|
|
205
206
|
size: 14,
|
|
206
207
|
"stroke-width": 2,
|
|
207
|
-
style:
|
|
208
|
+
style: t({ color: o(k)(o(J).scoringResult.value.categories[n].score) })
|
|
208
209
|
}, null, 8, ["style"])),
|
|
209
|
-
|
|
210
|
-
|
|
210
|
+
s("span", me, d(o(K).scoring.categories[n]), 1),
|
|
211
|
+
s("span", {
|
|
211
212
|
class: "tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-semibold tpl:tabular-nums",
|
|
212
|
-
style:
|
|
213
|
-
color:
|
|
214
|
-
backgroundColor:
|
|
213
|
+
style: t({
|
|
214
|
+
color: o(k)(o(J).scoringResult.value.categories[n].score),
|
|
215
|
+
backgroundColor: o(A)(o(J).scoringResult.value.categories[n].score)
|
|
215
216
|
})
|
|
216
|
-
},
|
|
217
|
-
|
|
218
|
-
|
|
217
|
+
}, d(o(J).scoringResult.value.categories[n].score), 5),
|
|
218
|
+
o(J).scoringResult.value.categories[n].findings.length > 0 ? (e(), c("span", he, d(o(J).scoringResult.value.categories[n].findings.length), 1)) : h("", !0),
|
|
219
|
+
l(o(oe), {
|
|
219
220
|
size: 12,
|
|
220
221
|
"stroke-width": 2,
|
|
221
|
-
class:
|
|
222
|
+
class: f(["tpl:transition-transform tpl:duration-200 tpl:text-[var(--tpl-text-dim)]", X.value[n] ? "tpl:rotate-0" : "tpl:-rotate-90"])
|
|
222
223
|
}, null, 8, ["class"])
|
|
223
|
-
], 8,
|
|
224
|
-
key:
|
|
224
|
+
], 8, W), X.value[n] ? (e(), c("div", ge, [o(J).scoringResult.value.categories[n].findings.length === 0 ? (e(), c("div", _e, d(o(K).scoring.noFindings), 1)) : h("", !0), (e(!0), c(m, null, i(o(J).scoringResult.value.categories[n].findings, (n) => (e(), c("div", {
|
|
225
|
+
key: n.id,
|
|
225
226
|
class: "tpl:border-t tpl:px-3 tpl:py-2.5 tpl:first:border-t-0 tpl:border-[var(--tpl-border-light)]"
|
|
226
|
-
}, [
|
|
227
|
+
}, [s("div", ve, [(e(), p(r(n.severity === "high" ? o(y) : n.severity === "medium" ? o(ce) : o(b)), {
|
|
227
228
|
size: 13,
|
|
228
229
|
"stroke-width": 2,
|
|
229
230
|
class: "tpl:mt-0.5 tpl:shrink-0",
|
|
230
|
-
style:
|
|
231
|
-
}, null, 8, ["style"])),
|
|
232
|
-
|
|
231
|
+
style: t({ color: o(j)(n.severity) })
|
|
232
|
+
}, null, 8, ["style"])), s("div", ye, [
|
|
233
|
+
s("div", be, [s("span", {
|
|
233
234
|
class: "tpl:mt-0.5 tpl:shrink-0 tpl:rounded tpl:px-1 tpl:py-px tpl:text-[10px] tpl:font-medium tpl:leading-tight",
|
|
234
|
-
style:
|
|
235
|
-
color:
|
|
236
|
-
backgroundColor:
|
|
235
|
+
style: t({
|
|
236
|
+
color: o(j)(n.severity),
|
|
237
|
+
backgroundColor: o(M)(n.severity)
|
|
237
238
|
})
|
|
238
|
-
},
|
|
239
|
-
|
|
240
|
-
|
|
239
|
+
}, d(o(K).scoring.severity[n.severity]), 5), s("span", xe, d(n.message), 1)]),
|
|
240
|
+
n.suggestion ? (e(), c("p", Se, d(n.suggestion), 1)) : h("", !0),
|
|
241
|
+
n.blockId ? (e(), c("div", Ce, [s("button", {
|
|
241
242
|
class: "tpl-scoring-fix-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded tpl:border tpl:px-3 tpl:py-1.5 tpl:text-[11px] tpl:font-medium tpl:transition-all tpl:disabled:opacity-50 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)]",
|
|
242
243
|
style: { "background-color": "transparent" },
|
|
243
|
-
disabled:
|
|
244
|
-
onClick: (
|
|
245
|
-
}, [
|
|
244
|
+
disabled: o(J).fixingFindingId.value !== null,
|
|
245
|
+
onClick: (e) => je(n)
|
|
246
|
+
}, [o(J).fixingFindingId.value === n.id ? (e(), p(o(x), {
|
|
246
247
|
key: 0,
|
|
247
248
|
class: "tpl-spinner",
|
|
248
249
|
size: 11,
|
|
249
250
|
"stroke-width": 2
|
|
250
|
-
})) : (
|
|
251
|
+
})) : (e(), p(o(w), {
|
|
251
252
|
key: 1,
|
|
252
253
|
size: 11,
|
|
253
254
|
"stroke-width": 2
|
|
254
|
-
})),
|
|
255
|
-
])])]))), 128))])) :
|
|
256
|
-
])) : (
|
|
255
|
+
})), u(" " + d(o(J).fixingFindingId.value === n.id ? o(K).scoring.fixing : o(K).scoring.fix), 1)], 8, we), o(J).fixError.value ? (e(), c("p", Te, d(o(J).fixError.value), 1)) : h("", !0)])) : h("", !0)
|
|
256
|
+
])])]))), 128))])) : h("", !0)])), 64))
|
|
257
|
+
])) : (e(), c("div", Ee, [l(o(C), {
|
|
257
258
|
size: 32,
|
|
258
259
|
"stroke-width": 1.5,
|
|
259
260
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
260
|
-
}),
|
|
261
|
+
}), s("p", De, d(o(K).scoring.emptyState), 1)])), s("p", Oe, d(o(K).aiMenu.disclaimer), 1)])])) : h("", !0)]),
|
|
261
262
|
_: 1
|
|
262
263
|
}));
|
|
263
264
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import { N as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { n as
|
|
10
|
-
import { v as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
1
|
+
import { A as e, B as t, M as n, R as r, S as i, V as a, Z as o, at as s, c, d as l, g as u, h as d, jt as f, kt as p, l as m, r as h, s as g, u as _, v } from "./vue.runtime.esm-bundler-DShF3P6k.js";
|
|
2
|
+
import { a as ee, i as y } from "./runtime-dom.esm-bundler-PnoZU512.js";
|
|
3
|
+
import { N as te } from "./dist-tGkjkX-v.js";
|
|
4
|
+
import { X as ne } from "./useEditorCore-DhlKOYwe.js";
|
|
5
|
+
import { D as re, g as ie, j as ae, z as oe } from "./keys-DQA2i1k1.js";
|
|
6
|
+
import { t as se } from "./useI18n-BbdxxpOE.js";
|
|
7
|
+
import { t as ce } from "./check-DWtkBzBU.js";
|
|
8
|
+
import { t as le } from "./loader-circle-B_tAD4k6.js";
|
|
9
|
+
import { n as ue, t as de } from "./MergeTagModeToggle-DKN6ihI5.js";
|
|
10
|
+
import { v as fe } from "./styleConstants-C_YAPdQS.js";
|
|
11
|
+
import { t as pe } from "./TplModal-Q9fDgS1M.js";
|
|
12
|
+
import { t as me } from "./BlockPreviewCanvas-DDCmMram.js";
|
|
13
13
|
//#region src/utils/validateEmailShape.ts
|
|
14
|
-
var
|
|
15
|
-
function
|
|
14
|
+
var b = /[,;<>()[\]\\"'`|/?#@!$%^&*+=~{}]/;
|
|
15
|
+
function he(e) {
|
|
16
16
|
let t = e.trim();
|
|
17
17
|
if (t.length === 0 || /\s/.test(t)) return !1;
|
|
18
18
|
let n = t.split("@");
|
|
19
19
|
if (n.length !== 2) return !1;
|
|
20
20
|
let [r, i] = n;
|
|
21
|
-
if (r.length === 0 ||
|
|
21
|
+
if (r.length === 0 || b.test(i)) return !1;
|
|
22
22
|
let a = i.indexOf(".");
|
|
23
23
|
return a > 0 && a < i.length - 1;
|
|
24
24
|
}
|
|
@@ -64,7 +64,7 @@ var x = ["aria-busy"], S = {
|
|
|
64
64
|
}, ve = { class: "tpl:flex tpl:shrink-0 tpl:justify-end tpl:gap-2" }, ye = ["disabled"], be = ["disabled"], xe = {
|
|
65
65
|
key: 0,
|
|
66
66
|
class: "tpl:flex tpl:items-center tpl:gap-1.5"
|
|
67
|
-
}, Se = { key: 1 }, z = /* @__PURE__ */
|
|
67
|
+
}, Se = { key: 1 }, z = /* @__PURE__ */ v({
|
|
68
68
|
__name: "TestEmailModal",
|
|
69
69
|
props: {
|
|
70
70
|
visible: { type: Boolean },
|
|
@@ -75,8 +75,8 @@ var x = ["aria-busy"], S = {
|
|
|
75
75
|
error: {}
|
|
76
76
|
},
|
|
77
77
|
emits: ["send", "close"],
|
|
78
|
-
setup(
|
|
79
|
-
let z =
|
|
78
|
+
setup(v, { emit: b }) {
|
|
79
|
+
let z = v, B = b, { t: V } = se(), Ce = i(ie, null), H = o(""), U = o("desktop"), we = i(oe, void 0), W = ne({
|
|
80
80
|
resolvePreview: we ?? void 0,
|
|
81
81
|
getContent: () => Ce?.content.value ?? {
|
|
82
82
|
blocks: [],
|
|
@@ -84,16 +84,16 @@ var x = ["aria-busy"], S = {
|
|
|
84
84
|
},
|
|
85
85
|
isActive: () => z.visible,
|
|
86
86
|
getRecipient: () => H.value || void 0
|
|
87
|
-
}), G =
|
|
87
|
+
}), G = i(ae, null), K = o(te(i(re, []))), q = g({
|
|
88
88
|
get: () => W.isConfigured ? !1 : G?.value ?? K.value,
|
|
89
89
|
set: (e) => {
|
|
90
90
|
G ? G.value = e : K.value = e;
|
|
91
91
|
}
|
|
92
|
-
}), Te =
|
|
93
|
-
|
|
92
|
+
}), Te = g(() => W.content.value.blocks ?? []), J = g(() => z.allowedRecipients !== void 0 && z.allowedRecipients.length > 0), Ee = g(() => z.allowedRecipients?.length === 1);
|
|
93
|
+
r(() => z.visible, (e) => {
|
|
94
94
|
e && (H.value = z.defaultRecipient ?? z.allowedRecipients?.[0] ?? "");
|
|
95
95
|
}, { immediate: !0 });
|
|
96
|
-
let Y =
|
|
96
|
+
let Y = g(() => J.value ? H.value.length > 0 : he(H.value)), X = g(() => Y.value && !z.isSending && !z.justSent), De = g(() => !J.value && H.value.trim().length > 0 && !Y.value), Z = g(() => z.error ? z.error.kind === "provider" ? z.error.message : V.testEmail.recipientNotAllowed : null);
|
|
97
97
|
function Q() {
|
|
98
98
|
X.value && B("send", H.value.trim());
|
|
99
99
|
}
|
|
@@ -103,15 +103,15 @@ var x = ["aria-busy"], S = {
|
|
|
103
103
|
function Oe(e) {
|
|
104
104
|
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q()), e.key === "Escape" && $();
|
|
105
105
|
}
|
|
106
|
-
return (
|
|
107
|
-
visible:
|
|
106
|
+
return (r, i) => (e(), m(pe, {
|
|
107
|
+
visible: v.visible,
|
|
108
108
|
onClose: $,
|
|
109
109
|
onKeydown: Oe
|
|
110
110
|
}, {
|
|
111
|
-
default:
|
|
111
|
+
default: t(() => [c("div", {
|
|
112
112
|
role: "dialog",
|
|
113
113
|
"aria-modal": "true",
|
|
114
|
-
"aria-busy":
|
|
114
|
+
"aria-busy": v.isSending,
|
|
115
115
|
"aria-labelledby": "tpl-test-email-title",
|
|
116
116
|
class: "tpl-scale-in tpl:flex tpl:max-h-[90%] tpl:w-full tpl:max-w-3xl tpl:flex-col tpl:rounded-[var(--tpl-radius-lg)] tpl:p-5",
|
|
117
117
|
style: {
|
|
@@ -119,10 +119,10 @@ var x = ["aria-busy"], S = {
|
|
|
119
119
|
"box-shadow": "var(--tpl-shadow-xl)"
|
|
120
120
|
}
|
|
121
121
|
}, [
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
Ee.value ? (
|
|
122
|
+
c("h3", S, f(s(V).testEmail.title), 1),
|
|
123
|
+
c("div", C, [
|
|
124
|
+
c("label", w, f(s(V).testEmail.recipientLabel), 1),
|
|
125
|
+
Ee.value ? (e(), l("input", {
|
|
126
126
|
key: 0,
|
|
127
127
|
id: "tpl-test-email-recipient",
|
|
128
128
|
type: "text",
|
|
@@ -130,73 +130,73 @@ var x = ["aria-busy"], S = {
|
|
|
130
130
|
disabled: "",
|
|
131
131
|
"data-testid": "test-email-recipient",
|
|
132
132
|
class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:opacity-70 tpl:shadow-[var(--tpl-shadow-sm)] tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
|
|
133
|
-
}, null, 8, T)) : J.value ?
|
|
133
|
+
}, null, 8, T)) : J.value ? a((e(), l("select", {
|
|
134
134
|
key: 1,
|
|
135
135
|
id: "tpl-test-email-recipient",
|
|
136
|
-
"onUpdate:modelValue":
|
|
137
|
-
disabled:
|
|
136
|
+
"onUpdate:modelValue": i[0] ||= (e) => H.value = e,
|
|
137
|
+
disabled: v.isSending || v.justSent,
|
|
138
138
|
"data-testid": "test-email-recipient",
|
|
139
139
|
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)]"
|
|
140
|
-
}, [(
|
|
141
|
-
key:
|
|
142
|
-
value:
|
|
143
|
-
},
|
|
140
|
+
}, [(e(!0), l(h, null, n(v.allowedRecipients, (t) => (e(), l("option", {
|
|
141
|
+
key: t,
|
|
142
|
+
value: t
|
|
143
|
+
}, f(t), 9, D))), 128))], 8, E)), [[y, H.value]]) : a((e(), l("input", {
|
|
144
144
|
key: 2,
|
|
145
145
|
id: "tpl-test-email-recipient",
|
|
146
|
-
"onUpdate:modelValue":
|
|
146
|
+
"onUpdate:modelValue": i[1] ||= (e) => H.value = e,
|
|
147
147
|
type: "email",
|
|
148
148
|
autocomplete: "email",
|
|
149
149
|
spellcheck: "false",
|
|
150
|
-
placeholder:
|
|
151
|
-
disabled:
|
|
150
|
+
placeholder: s(V).testEmail.recipientPlaceholder,
|
|
151
|
+
disabled: v.isSending || v.justSent,
|
|
152
152
|
"data-testid": "test-email-recipient",
|
|
153
153
|
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)]"
|
|
154
|
-
}, null, 8, O)), [[
|
|
155
|
-
De.value ? (
|
|
154
|
+
}, null, 8, O)), [[ee, H.value]]),
|
|
155
|
+
De.value ? (e(), l("p", k, f(s(V).testEmail.invalidAddress), 1)) : _("", !0)
|
|
156
156
|
]),
|
|
157
|
-
|
|
157
|
+
c("div", A, [c("div", j, [c("span", M, f(s(V).testEmail.preview), 1), c("div", N, [s(W).supersedesSamples.value ? _("", !0) : (e(), m(de, {
|
|
158
158
|
key: 0,
|
|
159
159
|
"sample-mode": q.value,
|
|
160
|
-
onChange:
|
|
161
|
-
}, null, 8, ["sample-mode"])),
|
|
160
|
+
onChange: i[2] ||= (e) => q.value = e
|
|
161
|
+
}, null, 8, ["sample-mode"])), u(ue, {
|
|
162
162
|
viewport: U.value,
|
|
163
|
-
onChange:
|
|
164
|
-
}, null, 8, ["viewport"])])]),
|
|
165
|
-
|
|
163
|
+
onChange: i[3] ||= (e) => U.value = e
|
|
164
|
+
}, null, 8, ["viewport"])])]), c("p", P, f(s(W).supersedesSamples.value ? s(V).previewResolution.hint : q.value ? s(V).testEmail.previewHintSample : s(V).testEmail.previewHint), 1)]),
|
|
165
|
+
c("div", F, [s(W).isInitialResolve.value ? (e(), l("div", I, [c("span", L, f(s(V).previewResolution.resolving), 1), (e(), l(h, null, n(3, (e) => c("div", {
|
|
166
166
|
key: e,
|
|
167
167
|
"aria-hidden": "true",
|
|
168
168
|
class: "tpl-pulse tpl:h-16 tpl:rounded-md tpl:bg-[var(--tpl-bg-hover)]"
|
|
169
|
-
})), 64))])) :
|
|
169
|
+
})), 64))])) : s(W).hasFailed.value ? (e(), l("p", R, f(s(V).previewResolution.failed), 1)) : _("", !0), s(W).isInitialResolve.value ? _("", !0) : (e(), m(me, {
|
|
170
170
|
key: 2,
|
|
171
171
|
blocks: Te.value,
|
|
172
172
|
viewport: U.value,
|
|
173
|
-
"apply-condition-filter": !
|
|
173
|
+
"apply-condition-filter": !s(W).isConfigured
|
|
174
174
|
}, null, 8, [
|
|
175
175
|
"blocks",
|
|
176
176
|
"viewport",
|
|
177
177
|
"apply-condition-filter"
|
|
178
178
|
]))]),
|
|
179
|
-
|
|
179
|
+
v.justSent ? (e(), l("p", ge, [u(s(ce), {
|
|
180
180
|
size: 13,
|
|
181
181
|
"stroke-width": 2.5
|
|
182
|
-
}),
|
|
183
|
-
|
|
182
|
+
}), d(" " + f(s(V).testEmail.success), 1)])) : Z.value ? (e(), l("p", _e, f(Z.value), 1)) : _("", !0),
|
|
183
|
+
c("div", ve, [c("button", {
|
|
184
184
|
type: "button",
|
|
185
185
|
"data-testid": "test-email-cancel",
|
|
186
|
-
class:
|
|
187
|
-
disabled:
|
|
186
|
+
class: p(["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": v.isSending }]),
|
|
187
|
+
disabled: v.isSending,
|
|
188
188
|
onClick: $
|
|
189
|
-
},
|
|
189
|
+
}, f(s(V).testEmail.cancel), 11, ye), c("button", {
|
|
190
190
|
type: "button",
|
|
191
191
|
"data-testid": "test-email-send",
|
|
192
|
-
class:
|
|
192
|
+
class: p(s(fe)),
|
|
193
193
|
disabled: !X.value,
|
|
194
194
|
onClick: Q
|
|
195
|
-
}, [
|
|
195
|
+
}, [v.isSending ? (e(), l("span", xe, [u(s(le), {
|
|
196
196
|
class: "tpl:animate-spin",
|
|
197
197
|
size: 12,
|
|
198
198
|
"stroke-width": 2
|
|
199
|
-
}),
|
|
199
|
+
}), d(" " + f(s(V).testEmail.sending), 1)])) : (e(), l("span", Se, f(s(V).testEmail.send), 1))], 10, be)])
|
|
200
200
|
], 8, x)]),
|
|
201
201
|
_: 1
|
|
202
202
|
}, 8, ["visible"]));
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as e, _ as t, at as n, l as r, u as i, v as a } from "./vue.runtime.esm-bundler-DShF3P6k.js";
|
|
2
2
|
//#endregion
|
|
3
3
|
//#region src/components/TestEmailPanel.vue
|
|
4
4
|
var o = /* @__PURE__ */ a({
|
|
5
5
|
__name: "TestEmailPanel",
|
|
6
6
|
props: { feature: {} },
|
|
7
7
|
setup(a) {
|
|
8
|
-
let o = a, s =
|
|
8
|
+
let o = a, s = t(() => import("./TestEmailModal-BxizsRCd.js"));
|
|
9
9
|
function c(e) {
|
|
10
10
|
o.feature.send(e);
|
|
11
11
|
}
|
|
12
|
-
return (
|
|
12
|
+
return (t, o) => a.feature.isModalOpen.value ? (e(), r(n(s), {
|
|
13
13
|
key: 0,
|
|
14
14
|
visible: a.feature.isModalOpen.value,
|
|
15
15
|
"allowed-recipients": a.feature.allowedRecipients.value,
|