@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,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as v } from "./useI18n-
|
|
4
|
-
import { t as y } from "./createLucideIcon-
|
|
5
|
-
import { t as b } from "./circle-alert-
|
|
6
|
-
import { t as x } from "./info-
|
|
7
|
-
import { n as S, t as C } from "./useScrollToBlock-
|
|
8
|
-
import { t as w } from "./triangle-alert-
|
|
1
|
+
import { A as e, F as t, M as n, S as r, at as i, c as a, d as o, g as s, h as c, jt as l, kt as u, l as d, r as f, s as p, u as m, v as h } from "./vue.runtime.esm-bundler-DShF3P6k.js";
|
|
2
|
+
import { H as g, g as _ } from "./keys-DQA2i1k1.js";
|
|
3
|
+
import { t as v } from "./useI18n-BbdxxpOE.js";
|
|
4
|
+
import { t as y } from "./createLucideIcon-Cwf_nTzE.js";
|
|
5
|
+
import { t as b } from "./circle-alert-CjzUTwy3.js";
|
|
6
|
+
import { t as x } from "./info-BQ60P82u.js";
|
|
7
|
+
import { n as S, t as C } from "./useScrollToBlock-BTFw0b9O.js";
|
|
8
|
+
import { t as w } from "./triangle-alert-C6tGa6jw.js";
|
|
9
9
|
var T = y({
|
|
10
10
|
name: "arrow-right",
|
|
11
11
|
size: 24,
|
|
@@ -35,81 +35,81 @@ var T = y({
|
|
|
35
35
|
}, F = { class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text)]" }, I = { class: "tpl:m-0 tpl:mb-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, L = { class: "tpl:flex tpl:gap-1.5" }, R = ["onClick"], z = ["title", "onClick"], B = /* @__PURE__ */ h({
|
|
36
36
|
__name: "IssuesPanel",
|
|
37
37
|
setup(h) {
|
|
38
|
-
let { t: y, format: B } = v(), V =
|
|
38
|
+
let { t: y, format: B } = v(), V = r(g, null), H = r(_, null), U = C(), W = p(() => (V?.issues.value ?? []).filter((e) => e.severity === "error")), G = p(() => (V?.issues.value ?? []).filter((e) => e.severity === "warning")), K = p(() => (V?.issues.value ?? []).filter((e) => e.severity === "info")), q = p(() => W.value.length + G.value.length + K.value.length);
|
|
39
39
|
function J(e) {
|
|
40
40
|
H && e.blockId && (H.selectBlock(e.blockId), U(e.blockId));
|
|
41
41
|
}
|
|
42
42
|
function Y(e) {
|
|
43
43
|
V?.applyFix(e);
|
|
44
44
|
}
|
|
45
|
-
return (
|
|
46
|
-
|
|
45
|
+
return (r, p) => (e(), o("div", D, [a("header", O, [
|
|
46
|
+
s(i(S), {
|
|
47
47
|
size: 16,
|
|
48
48
|
"stroke-width": 1.5
|
|
49
49
|
}),
|
|
50
|
-
|
|
51
|
-
q.value > 0 ? (
|
|
50
|
+
a("h3", k, l(i(y).issues.panelTitle), 1),
|
|
51
|
+
q.value > 0 ? (e(), o("span", {
|
|
52
52
|
key: 0,
|
|
53
53
|
class: "tpl:ml-auto tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-0.5 tpl:text-[11px] tpl:text-[var(--tpl-text-muted)]",
|
|
54
|
-
title:
|
|
54
|
+
title: i(B)(i(y).issues.issueCountTooltip, { count: q.value })
|
|
55
55
|
}, l(q.value), 9, A)) : m("", !0)
|
|
56
|
-
]), !
|
|
56
|
+
]), !i(V) || i(V).unavailable.value ? (e(), o("div", j)) : q.value === 0 ? (e(), o("div", M, l(i(y).issues.emptyState), 1)) : (e(!0), o(f, { key: 2 }, n([
|
|
57
57
|
{
|
|
58
58
|
key: "errors",
|
|
59
|
-
title:
|
|
60
|
-
icon:
|
|
59
|
+
title: i(y).issues.groupErrors,
|
|
60
|
+
icon: i(b),
|
|
61
61
|
items: W.value,
|
|
62
62
|
tone: "tpl:text-[var(--tpl-danger)]"
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
key: "warnings",
|
|
66
|
-
title:
|
|
67
|
-
icon:
|
|
66
|
+
title: i(y).issues.groupWarnings,
|
|
67
|
+
icon: i(w),
|
|
68
68
|
items: G.value,
|
|
69
69
|
tone: "tpl:text-[var(--tpl-warning)]"
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
key: "info",
|
|
73
|
-
title:
|
|
74
|
-
icon:
|
|
73
|
+
title: i(y).issues.groupInfo,
|
|
74
|
+
icon: i(x),
|
|
75
75
|
items: K.value,
|
|
76
76
|
tone: "tpl:text-[var(--tpl-text-muted)]"
|
|
77
77
|
}
|
|
78
|
-
], (
|
|
78
|
+
], (r) => (e(), o("section", { key: r.key }, [r.items.length > 0 ? (e(), o("header", {
|
|
79
79
|
key: 0,
|
|
80
|
-
class:
|
|
80
|
+
class: u(["tpl:mb-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-[11px] tpl:font-semibold tpl:uppercase tpl:tracking-wide", r.tone])
|
|
81
81
|
}, [
|
|
82
|
-
(
|
|
82
|
+
(e(), d(t(r.icon), {
|
|
83
83
|
size: 12,
|
|
84
84
|
"stroke-width": 2
|
|
85
85
|
})),
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
], 2)) : m("", !0),
|
|
89
|
-
key: `${
|
|
86
|
+
c(" " + l(r.title) + " ", 1),
|
|
87
|
+
a("span", N, l(r.items.length), 1)
|
|
88
|
+
], 2)) : m("", !0), r.items.length > 0 ? (e(), o("ul", P, [(e(!0), o(f, null, n(r.items, (t) => (e(), o("li", {
|
|
89
|
+
key: `${t.ruleId}-${t.blockId ?? "template"}`,
|
|
90
90
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3"
|
|
91
91
|
}, [
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
a("p", F, l(t.message), 1),
|
|
93
|
+
a("p", I, l(t.ruleId), 1),
|
|
94
|
+
a("div", L, [t.blockId ? (e(), o("button", {
|
|
95
95
|
key: 0,
|
|
96
96
|
type: "button",
|
|
97
97
|
"data-testid": "issue-jump",
|
|
98
98
|
class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text)]",
|
|
99
|
-
onClick: (
|
|
100
|
-
}, [
|
|
99
|
+
onClick: (e) => J(t)
|
|
100
|
+
}, [s(i(T), {
|
|
101
101
|
size: 10,
|
|
102
102
|
"stroke-width": 2
|
|
103
|
-
}),
|
|
103
|
+
}), c(" " + l(i(y).issues.jump), 1)], 8, R)) : m("", !0), t.fix ? (e(), o("button", {
|
|
104
104
|
key: 1,
|
|
105
105
|
type: "button",
|
|
106
106
|
class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-md tpl:bg-[var(--tpl-primary)] tpl:px-2 tpl:py-1 tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-on-primary)]",
|
|
107
|
-
title:
|
|
108
|
-
onClick: (
|
|
109
|
-
}, [
|
|
107
|
+
title: t.fix.description,
|
|
108
|
+
onClick: (e) => Y(t)
|
|
109
|
+
}, [s(i(E), {
|
|
110
110
|
size: 10,
|
|
111
111
|
"stroke-width": 2
|
|
112
|
-
}),
|
|
112
|
+
}), c(" " + l(i(y).issues.fix), 1)], 8, z)) : m("", !0)])
|
|
113
113
|
]))), 128))])) : m("", !0)]))), 128))]));
|
|
114
114
|
}
|
|
115
115
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as e, d as t } from "./vue.runtime.esm-bundler-DShF3P6k.js";
|
|
2
2
|
import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
3
|
//#region src/components/LoadingTrack.vue
|
|
4
4
|
var r = {}, i = { class: "tpl-loading-track" };
|
|
5
5
|
function a(n, r) {
|
|
6
|
-
return
|
|
6
|
+
return e(), t("div", i);
|
|
7
7
|
}
|
|
8
8
|
var o = /*#__PURE__*/ n(r, [["render", a], ["__scopeId", "data-v-c3d50014"]]);
|
|
9
9
|
//#endregion
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
//#endregion
|
|
3
|
+
//#region src/components/MediaPanels.vue
|
|
4
|
+
var o = /* @__PURE__ */ a({
|
|
5
|
+
__name: "MediaPanels",
|
|
6
|
+
props: {
|
|
7
|
+
feature: {},
|
|
8
|
+
provider: {},
|
|
9
|
+
locale: {},
|
|
10
|
+
uiTheme: {},
|
|
11
|
+
popoverTarget: {}
|
|
12
|
+
},
|
|
13
|
+
setup(a) {
|
|
14
|
+
let o = a, s = t(async () => (await import("./editor-modal-B_LaQf0s.js")).MediaLibraryModal);
|
|
15
|
+
function c(e) {
|
|
16
|
+
o.feature.select(e);
|
|
17
|
+
}
|
|
18
|
+
return (t, o) => a.feature.isModalOpen.value ? (e(), r(n(s), {
|
|
19
|
+
key: 0,
|
|
20
|
+
visible: a.feature.isModalOpen.value,
|
|
21
|
+
provider: a.provider,
|
|
22
|
+
accept: a.feature.accept.value,
|
|
23
|
+
"popover-target": a.popoverTarget,
|
|
24
|
+
locale: a.locale,
|
|
25
|
+
"ui-theme": a.uiTheme,
|
|
26
|
+
"template-id": a.feature.templateId.value,
|
|
27
|
+
"on-error": a.feature.onError,
|
|
28
|
+
onSelect: c,
|
|
29
|
+
onClose: o[0] ||= (e) => a.feature.close()
|
|
30
|
+
}, null, 8, [
|
|
31
|
+
"visible",
|
|
32
|
+
"provider",
|
|
33
|
+
"accept",
|
|
34
|
+
"popover-target",
|
|
35
|
+
"locale",
|
|
36
|
+
"ui-theme",
|
|
37
|
+
"template-id",
|
|
38
|
+
"on-error"
|
|
39
|
+
])) : i("", !0);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
//#endregion
|
|
43
|
+
export { o as default };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as b, s as x } from "./runtime-dom.esm-bundler-
|
|
1
|
+
import { A as e, E as t, J as n, K as r, M as i, S as a, W as o, Z as s, at as c, c as l, d as u, g as d, h 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 { c as b, s as x } from "./runtime-dom.esm-bundler-PnoZU512.js";
|
|
3
3
|
import { F as S, M as C, O as w, j as T } from "./dist-tGkjkX-v.js";
|
|
4
|
-
import { w as E } from "./useEditorCore-
|
|
5
|
-
import {
|
|
6
|
-
import { t as O } from "./useI18n-
|
|
7
|
-
import { n as k } from "./usePopoverPosition-
|
|
8
|
-
import { t as A } from "./createLucideIcon-
|
|
9
|
-
import { t as j } from "./x-
|
|
4
|
+
import { w as E } from "./useEditorCore-DhlKOYwe.js";
|
|
5
|
+
import { G as D } from "./keys-DQA2i1k1.js";
|
|
6
|
+
import { t as O } from "./useI18n-BbdxxpOE.js";
|
|
7
|
+
import { n as k } from "./usePopoverPosition-CprM5p-c.js";
|
|
8
|
+
import { t as A } from "./createLucideIcon-Cwf_nTzE.js";
|
|
9
|
+
import { t as j } from "./x-D_-42Ukq.js";
|
|
10
10
|
import { t as M } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
11
|
-
import { t as N } from "./useMergeTag-
|
|
11
|
+
import { t as N } from "./useMergeTag-DlvOBW_B.js";
|
|
12
12
|
import { p as P } from "./styleConstants-C_YAPdQS.js";
|
|
13
|
-
import { n as F, r as I } from "./MergeTagSuggestion-
|
|
13
|
+
import { n as F, r as I } from "./MergeTagSuggestion-DKoLEeoj.js";
|
|
14
14
|
var L = A({
|
|
15
15
|
name: "braces",
|
|
16
16
|
size: 24,
|
|
@@ -107,25 +107,25 @@ var U = /* @__PURE__ */ new Set([
|
|
|
107
107
|
"End"
|
|
108
108
|
]);
|
|
109
109
|
function W(e) {
|
|
110
|
-
let { elementRef:
|
|
111
|
-
|
|
110
|
+
let { elementRef: i, modelValue: s, emit: c, mergeTags: l, syntax: u, enabled: d, onInsert: f } = e, p = C(u), m = T(u), h = d && p !== null && l.length > 0, g = a(D, null), _ = (r(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", v = k(), y = F(_, v), b = !1;
|
|
111
|
+
o() && n(() => {
|
|
112
112
|
b = !0, y.close();
|
|
113
113
|
});
|
|
114
114
|
function x(e) {
|
|
115
115
|
let t = e.value ?? "";
|
|
116
|
-
return z(t, e.selectionStart ?? t.length,
|
|
116
|
+
return z(t, e.selectionStart ?? t.length, p, m);
|
|
117
117
|
}
|
|
118
|
-
function S(e,
|
|
119
|
-
let
|
|
120
|
-
|
|
118
|
+
function S(e, n, r) {
|
|
119
|
+
let a = e.value ?? s(), o = a.slice(n.caret), l = m && o.startsWith(m) ? m.length : 0, u = a.slice(0, n.triggerStart), d = a.slice(n.caret + l), p = u + r.value + d, h = u.length + r.value.length;
|
|
120
|
+
f?.(), c(p), y.close(), t(() => {
|
|
121
121
|
if (b) return;
|
|
122
|
-
let e =
|
|
122
|
+
let e = i.value;
|
|
123
123
|
e?.focus(), e?.setSelectionRange(h, h);
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
function w() {
|
|
127
127
|
if (!h || b) return;
|
|
128
|
-
let e =
|
|
128
|
+
let e = i.value;
|
|
129
129
|
if (!e) {
|
|
130
130
|
y.close();
|
|
131
131
|
return;
|
|
@@ -135,16 +135,16 @@ function W(e) {
|
|
|
135
135
|
y.close();
|
|
136
136
|
return;
|
|
137
137
|
}
|
|
138
|
-
let n = I(
|
|
138
|
+
let n = I(l, t.query), r = () => H(e, t.triggerStart), a = (n) => S(e, t, n);
|
|
139
139
|
y.isOpen() ? y.update({
|
|
140
140
|
items: n,
|
|
141
141
|
getRect: r,
|
|
142
|
-
onCommand:
|
|
142
|
+
onCommand: a
|
|
143
143
|
}) : y.open({
|
|
144
144
|
items: n,
|
|
145
145
|
getRect: r,
|
|
146
146
|
anchorEl: e,
|
|
147
|
-
onCommand:
|
|
147
|
+
onCommand: a
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
function E(e) {
|
|
@@ -161,60 +161,60 @@ function W(e) {
|
|
|
161
161
|
//#endregion
|
|
162
162
|
//#region src/composables/useMergeTagField.ts
|
|
163
163
|
function G(e) {
|
|
164
|
-
let { modelValue:
|
|
165
|
-
|
|
164
|
+
let { modelValue: r, emit: i, elementRef: a } = e, { mergeTags: c, canRequestMergeTag: l, isRequesting: u, isMergeTagValue: d, getMergeTagLabel: f, requestMergeTag: p, syntax: m, autocomplete: h } = N(), { canInsertLogicTag: g, isRequesting: v, requestLogicTag: y } = E(), b = s(!1), x = !1, C = !1;
|
|
165
|
+
o() && n(() => {
|
|
166
166
|
C = !0;
|
|
167
167
|
});
|
|
168
168
|
let T = W({
|
|
169
|
-
elementRef:
|
|
170
|
-
modelValue:
|
|
171
|
-
emit:
|
|
172
|
-
mergeTags:
|
|
173
|
-
syntax:
|
|
169
|
+
elementRef: a,
|
|
170
|
+
modelValue: r,
|
|
171
|
+
emit: i,
|
|
172
|
+
mergeTags: c,
|
|
173
|
+
syntax: m,
|
|
174
174
|
enabled: h,
|
|
175
175
|
onInsert: () => {
|
|
176
176
|
b.value = !0;
|
|
177
177
|
}
|
|
178
178
|
}), D = _(() => {
|
|
179
|
-
let e =
|
|
179
|
+
let e = r();
|
|
180
180
|
if (!e) return [];
|
|
181
|
-
let
|
|
181
|
+
let t = [], n = `(${m.value.source}|${m.logic.source})`, i = new RegExp(n, "g"), a = 0, o;
|
|
182
182
|
for (; (o = i.exec(e)) !== null;) {
|
|
183
|
-
o.index > a &&
|
|
183
|
+
o.index > a && t.push({
|
|
184
184
|
type: "text",
|
|
185
185
|
value: e.slice(a, o.index)
|
|
186
186
|
});
|
|
187
|
-
let
|
|
188
|
-
|
|
187
|
+
let n = o[0];
|
|
188
|
+
d(n) ? t.push({
|
|
189
189
|
type: "mergeTag",
|
|
190
|
-
value:
|
|
191
|
-
label:
|
|
192
|
-
}) : S(
|
|
190
|
+
value: n,
|
|
191
|
+
label: f(n)
|
|
192
|
+
}) : S(n, m) ? t.push({
|
|
193
193
|
type: "logicMergeTag",
|
|
194
|
-
value:
|
|
195
|
-
keyword: w(
|
|
196
|
-
}) :
|
|
194
|
+
value: n,
|
|
195
|
+
keyword: w(n, m)
|
|
196
|
+
}) : t.push({
|
|
197
197
|
type: "text",
|
|
198
|
-
value:
|
|
199
|
-
}), a = o.index +
|
|
198
|
+
value: n
|
|
199
|
+
}), a = o.index + n.length;
|
|
200
200
|
}
|
|
201
|
-
return a < e.length &&
|
|
201
|
+
return a < e.length && t.push({
|
|
202
202
|
type: "text",
|
|
203
203
|
value: e.slice(a)
|
|
204
|
-
}),
|
|
204
|
+
}), t;
|
|
205
205
|
}), O = _(() => D.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
|
|
206
206
|
function k() {
|
|
207
|
-
b.value = !0,
|
|
208
|
-
|
|
209
|
-
let e =
|
|
210
|
-
|
|
207
|
+
b.value = !0, t(() => {
|
|
208
|
+
a.value?.focus();
|
|
209
|
+
let e = r()?.length || 0;
|
|
210
|
+
a.value?.setSelectionRange(e, e);
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
213
|
function A() {
|
|
214
214
|
x || (b.value = !1);
|
|
215
215
|
}
|
|
216
216
|
function j(e) {
|
|
217
|
-
|
|
217
|
+
i(e.target.value), T.refresh();
|
|
218
218
|
}
|
|
219
219
|
function M(e) {
|
|
220
220
|
return T.handleKeydown(e) ? (e.preventDefault(), !0) : (e.key === "Escape" && A(), !1);
|
|
@@ -226,28 +226,28 @@ function G(e) {
|
|
|
226
226
|
T.close(), A();
|
|
227
227
|
}
|
|
228
228
|
function I() {
|
|
229
|
-
|
|
229
|
+
i("");
|
|
230
230
|
}
|
|
231
231
|
async function L() {
|
|
232
|
-
let e = b.value &&
|
|
232
|
+
let e = b.value && a.value ? a.value.selectionStart ?? r().length : r().length;
|
|
233
233
|
x = !0;
|
|
234
|
-
let
|
|
234
|
+
let n;
|
|
235
235
|
try {
|
|
236
|
-
|
|
236
|
+
n = await p();
|
|
237
237
|
} finally {
|
|
238
238
|
x = !1;
|
|
239
239
|
}
|
|
240
|
-
if (!C &&
|
|
241
|
-
let
|
|
242
|
-
|
|
240
|
+
if (!C && n) {
|
|
241
|
+
let o = r().slice(0, e), s = r().slice(e), c = o + n.value + s;
|
|
242
|
+
i(c), b.value = !0, t(() => {
|
|
243
243
|
if (C) return;
|
|
244
|
-
let t = e +
|
|
245
|
-
|
|
244
|
+
let t = e + n.value.length;
|
|
245
|
+
a.value?.focus(), a.value?.setSelectionRange(t, t);
|
|
246
246
|
});
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
async function R() {
|
|
250
|
-
let e =
|
|
250
|
+
let e = a.value, n = e?.selectionStart ?? r().length, o = e?.selectionEnd ?? n;
|
|
251
251
|
x = !0;
|
|
252
252
|
let s;
|
|
253
253
|
try {
|
|
@@ -256,16 +256,16 @@ function G(e) {
|
|
|
256
256
|
x = !1;
|
|
257
257
|
}
|
|
258
258
|
if (C || !s) return;
|
|
259
|
-
let c =
|
|
260
|
-
"before" in s ? (l = c.slice(0,
|
|
261
|
-
C || (
|
|
259
|
+
let c = r(), l, u;
|
|
260
|
+
"before" in s ? (l = c.slice(0, n) + s.before + c.slice(n, o) + s.after + c.slice(o), u = n + s.before.length + (o - n)) : (l = c.slice(0, n) + s.value + c.slice(n), u = n + s.value.length), i(l), b.value = !0, t(() => {
|
|
261
|
+
C || (a.value?.focus(), a.value?.setSelectionRange(u, u));
|
|
262
262
|
});
|
|
263
263
|
}
|
|
264
264
|
return {
|
|
265
265
|
segments: D,
|
|
266
266
|
hasMergeTags: O,
|
|
267
|
-
canRequestMergeTag:
|
|
268
|
-
isRequestingMergeTag:
|
|
267
|
+
canRequestMergeTag: l,
|
|
268
|
+
isRequestingMergeTag: u,
|
|
269
269
|
canInsertLogicTag: g,
|
|
270
270
|
isRequestingLogicTag: v,
|
|
271
271
|
isEditing: b,
|
|
@@ -295,41 +295,41 @@ var K = ["aria-label", "onKeydown"], q = ["data-tooltip"], J = ["data-tooltip"],
|
|
|
295
295
|
},
|
|
296
296
|
emits: ["edit", "clear"],
|
|
297
297
|
setup(t, { emit: n }) {
|
|
298
|
-
let r = n, { t:
|
|
299
|
-
function
|
|
298
|
+
let r = n, { t: a } = O();
|
|
299
|
+
function o() {
|
|
300
300
|
r("edit");
|
|
301
301
|
}
|
|
302
|
-
return (n,
|
|
302
|
+
return (n, s) => (e(), u("div", {
|
|
303
303
|
role: "button",
|
|
304
304
|
tabindex: "0",
|
|
305
|
-
"aria-label":
|
|
306
|
-
class:
|
|
307
|
-
onClick:
|
|
308
|
-
onKeydown: [x(
|
|
309
|
-
}, [(
|
|
305
|
+
"aria-label": c(a).mergeTag.clickToEdit,
|
|
306
|
+
class: m([t.displayClass, { "tpl-pulse-fill": t.pulse }]),
|
|
307
|
+
onClick: o,
|
|
308
|
+
onKeydown: [x(o, ["enter"]), x(b(o, ["prevent"]), ["space"])]
|
|
309
|
+
}, [(e(!0), u(g, null, i(t.segments, (t, n) => (e(), u(g, { key: `${t.type}-${n}-${t.value}` }, [t.type === "mergeTag" ? (e(), u("span", {
|
|
310
310
|
key: 0,
|
|
311
311
|
class: "tpl-tooltip tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium",
|
|
312
|
-
"data-tooltip":
|
|
312
|
+
"data-tooltip": t.value,
|
|
313
313
|
style: {
|
|
314
314
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
|
|
315
315
|
color: "var(--tpl-primary)"
|
|
316
316
|
}
|
|
317
|
-
},
|
|
317
|
+
}, p(t.label), 9, q)) : t.type === "logicMergeTag" ? (e(), u("span", {
|
|
318
318
|
key: 1,
|
|
319
319
|
class: "tpl-tooltip tpl:inline-flex tpl:items-center tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.8em] tpl:font-bold tpl:tracking-wide tpl:uppercase",
|
|
320
|
-
"data-tooltip":
|
|
320
|
+
"data-tooltip": t.value,
|
|
321
321
|
style: {
|
|
322
322
|
"background-color": "transparent",
|
|
323
323
|
border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
|
|
324
324
|
color: "var(--tpl-primary)"
|
|
325
325
|
}
|
|
326
|
-
},
|
|
326
|
+
}, p(t.keyword), 9, J)) : (e(), u("span", Y, p(t.value), 1))], 64))), 128)), l("button", {
|
|
327
327
|
type: "button",
|
|
328
328
|
class: "tpl:ml-auto tpl:flex tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-dim)] tpl:opacity-60 tpl:transition-all tpl:hover:text-[var(--tpl-danger)] tpl:hover:opacity-100",
|
|
329
|
-
"aria-label":
|
|
330
|
-
title:
|
|
331
|
-
onClick:
|
|
332
|
-
}, [c(
|
|
329
|
+
"aria-label": c(a).mergeTag.remove,
|
|
330
|
+
title: c(a).mergeTag.remove,
|
|
331
|
+
onClick: s[0] ||= b((e) => r("clear"), ["stop"])
|
|
332
|
+
}, [d(c(j), {
|
|
333
333
|
size: 12,
|
|
334
334
|
"stroke-width": 2.5
|
|
335
335
|
})], 8, X)], 42, K));
|
|
@@ -344,18 +344,18 @@ var K = ["aria-label", "onKeydown"], q = ["data-tooltip"], J = ["data-tooltip"],
|
|
|
344
344
|
emits: ["insert"],
|
|
345
345
|
setup(t) {
|
|
346
346
|
let { t: n } = O();
|
|
347
|
-
return (r, i) => (
|
|
347
|
+
return (r, i) => (e(), u("button", {
|
|
348
348
|
type: "button",
|
|
349
|
-
class:
|
|
350
|
-
"aria-label":
|
|
351
|
-
title:
|
|
349
|
+
class: m([te, "tpl:mt-1.5"]),
|
|
350
|
+
"aria-label": c(n).mergeTag.insert,
|
|
351
|
+
title: c(n).mergeTag.insert,
|
|
352
352
|
disabled: t.disabled,
|
|
353
353
|
onMousedown: i[0] ||= b(() => {}, ["prevent"]),
|
|
354
354
|
onClick: i[1] ||= (e) => r.$emit("insert")
|
|
355
|
-
}, [c(
|
|
355
|
+
}, [d(c(R), {
|
|
356
356
|
size: 12,
|
|
357
357
|
"stroke-width": 2
|
|
358
|
-
}),
|
|
358
|
+
}), f(" " + p(c(n).mergeTag.insertShort), 1)], 42, ee));
|
|
359
359
|
}
|
|
360
360
|
}), ne = [
|
|
361
361
|
"aria-label",
|
|
@@ -367,19 +367,19 @@ var K = ["aria-label", "onKeydown"], q = ["data-tooltip"], J = ["data-tooltip"],
|
|
|
367
367
|
emits: ["insert"],
|
|
368
368
|
setup(t) {
|
|
369
369
|
let { t: n } = O();
|
|
370
|
-
return (r, i) => (
|
|
370
|
+
return (r, i) => (e(), u("button", {
|
|
371
371
|
type: "button",
|
|
372
|
-
class:
|
|
373
|
-
"aria-label":
|
|
374
|
-
title:
|
|
372
|
+
class: m([re, "tpl:mt-1.5"]),
|
|
373
|
+
"aria-label": c(n).logicTag.insert,
|
|
374
|
+
title: c(n).logicTag.insert,
|
|
375
375
|
disabled: t.disabled,
|
|
376
376
|
"data-testid": "field-insert-logic-button",
|
|
377
377
|
onMousedown: i[0] ||= b(() => {}, ["prevent"]),
|
|
378
378
|
onClick: i[1] ||= (e) => r.$emit("insert")
|
|
379
|
-
}, [c(
|
|
379
|
+
}, [d(c(L), {
|
|
380
380
|
size: 12,
|
|
381
381
|
"stroke-width": 2
|
|
382
|
-
}),
|
|
382
|
+
}), f(" " + p(c(n).logicTag.insertShort), 1)], 42, ne));
|
|
383
383
|
}
|
|
384
384
|
}), ie = { key: 0 }, ae = {
|
|
385
385
|
key: 0,
|
|
@@ -404,52 +404,52 @@ var K = ["aria-label", "onKeydown"], q = ["data-tooltip"], J = ["data-tooltip"],
|
|
|
404
404
|
},
|
|
405
405
|
emits: ["update:modelValue", "keydown"],
|
|
406
406
|
setup(t, { emit: n }) {
|
|
407
|
-
let r = t, i = n,
|
|
407
|
+
let r = t, i = n, a = s(null), { segments: o, hasMergeTags: f, canRequestMergeTag: p, isRequestingMergeTag: g, canInsertLogicTag: _, isRequestingLogicTag: y, isEditing: b, startEditing: x, handleInput: S, handleKeydown: C, handleClick: w, handleBlur: T, clearValue: E, insertMergeTag: D, insertLogicTag: O } = G({
|
|
408
408
|
modelValue: () => r.modelValue,
|
|
409
409
|
emit: (e) => i("update:modelValue", e),
|
|
410
|
-
elementRef:
|
|
410
|
+
elementRef: a
|
|
411
411
|
});
|
|
412
412
|
function k(e) {
|
|
413
413
|
C(e) || i("keydown", e);
|
|
414
414
|
}
|
|
415
|
-
return (n, r) =>
|
|
416
|
-
segments:
|
|
415
|
+
return (n, r) => c(f) && !c(b) ? (e(), u("div", ie, [d(Z, {
|
|
416
|
+
segments: c(o),
|
|
417
417
|
"display-class": le,
|
|
418
418
|
pulse: t.pulse,
|
|
419
|
-
onEdit:
|
|
420
|
-
onClear:
|
|
419
|
+
onEdit: c(x),
|
|
420
|
+
onClear: c(E)
|
|
421
421
|
}, null, 8, [
|
|
422
422
|
"segments",
|
|
423
423
|
"pulse",
|
|
424
424
|
"onEdit",
|
|
425
425
|
"onClear"
|
|
426
|
-
]),
|
|
426
|
+
]), c(p) || c(_) ? (e(), u("div", ae, [c(p) ? (e(), h(Q, {
|
|
427
427
|
key: 0,
|
|
428
|
-
disabled: g
|
|
429
|
-
onInsert:
|
|
430
|
-
}, null, 8, ["disabled", "onInsert"])) : v("", !0),
|
|
428
|
+
disabled: c(g),
|
|
429
|
+
onInsert: c(D)
|
|
430
|
+
}, null, 8, ["disabled", "onInsert"])) : v("", !0), c(_) ? (e(), h($, {
|
|
431
431
|
key: 1,
|
|
432
|
-
disabled:
|
|
433
|
-
onInsert:
|
|
434
|
-
}, null, 8, ["disabled", "onInsert"])) : v("", !0)])) : v("", !0)])) : (
|
|
432
|
+
disabled: c(y),
|
|
433
|
+
onInsert: c(O)
|
|
434
|
+
}, null, 8, ["disabled", "onInsert"])) : v("", !0)])) : v("", !0)])) : (e(), u("div", oe, [l("input", {
|
|
435
435
|
ref_key: "inputRef",
|
|
436
|
-
ref:
|
|
436
|
+
ref: a,
|
|
437
437
|
type: t.type,
|
|
438
|
-
class:
|
|
438
|
+
class: m([c(P), { "tpl-pulse-fill": t.pulse }]),
|
|
439
439
|
value: t.modelValue,
|
|
440
440
|
placeholder: t.placeholder,
|
|
441
|
-
onInput: r[0] ||= (...e) =>
|
|
441
|
+
onInput: r[0] ||= (...e) => c(S) && c(S)(...e),
|
|
442
442
|
onKeydown: k,
|
|
443
|
-
onClick: r[1] ||= (...e) =>
|
|
444
|
-
onBlur: r[2] ||= (...e) =>
|
|
445
|
-
}, null, 42, se),
|
|
443
|
+
onClick: r[1] ||= (...e) => c(w) && c(w)(...e),
|
|
444
|
+
onBlur: r[2] ||= (...e) => c(T) && c(T)(...e)
|
|
445
|
+
}, null, 42, se), c(p) || c(_) ? (e(), u("div", ce, [c(p) ? (e(), h(Q, {
|
|
446
446
|
key: 0,
|
|
447
|
-
disabled: g
|
|
448
|
-
onInsert:
|
|
449
|
-
}, null, 8, ["disabled", "onInsert"])) : v("", !0),
|
|
447
|
+
disabled: c(g),
|
|
448
|
+
onInsert: c(D)
|
|
449
|
+
}, null, 8, ["disabled", "onInsert"])) : v("", !0), c(_) ? (e(), h($, {
|
|
450
450
|
key: 1,
|
|
451
|
-
disabled:
|
|
452
|
-
onInsert:
|
|
451
|
+
disabled: c(y),
|
|
452
|
+
onInsert: c(O)
|
|
453
453
|
}, null, 8, ["disabled", "onInsert"])) : v("", !0)])) : v("", !0)]));
|
|
454
454
|
}
|
|
455
455
|
}), [["__scopeId", "data-v-31b31866"]]);
|