@templatical/editor 0.35.0 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatSidebar-DPHbCGu4.js → AiChatSidebar-tu4eLcf_.js} +57 -57
- package/dist/{AiFeatureMenu--8z7qvg1.js → AiFeatureMenu-BF0i0vA4.js} +17 -17
- package/dist/{BlockIssueBadge-BGCsJqqM.js → BlockIssueBadge-DT-FqKeC.js} +9 -9
- package/dist/{BlockPreviewCanvas-DKspIy8V.js → BlockPreviewCanvas-DDCmMram.js} +28 -28
- package/dist/CloudHeaderExtras-NPhudovT.js +59 -0
- package/dist/{CloudPanels-Bp5gFtaL.js → CloudPanels-Iwnky0iA.js} +78 -108
- package/dist/{CollaboratorBar-DvwZm5u7.js → CollaboratorBar-DAITu0hz.js} +17 -17
- package/dist/{ColorPicker-DtozuN75.js → ColorPicker-BqlZ_TqG.js} +193 -193
- package/dist/{CommentsPanel-3C-DsEjy.js → CommentsPanel-CDvgmWP1.js} +3 -3
- package/dist/{CommentsSidebar-go1FnjDW.js → CommentsSidebar-X_xqM3dR.js} +158 -158
- package/dist/{CountdownBlock-D1fsNsyS.js → CountdownBlock-ZFJIdbP6.js} +12 -12
- package/dist/{CountdownToolbar-SLBuij7Q.js → CountdownToolbar-DBFoG3a6.js} +67 -67
- package/dist/{DesignReferenceSidebar-rcE_BvUd.js → DesignReferenceSidebar--QtXjLrw.js} +57 -57
- package/dist/{FieldRow-BWt7ECqo.js → FieldRow-C8nOknr_.js} +39 -39
- package/dist/{IssuesPanel-Cig46N1i.js → IssuesPanel-BLbNFMSX.js} +38 -38
- package/dist/{LoadingTrack-SQXoZVf2.js → LoadingTrack-BlTL4zFv.js} +2 -2
- package/dist/MediaPanels-CMTAhDXB.js +43 -0
- package/dist/{MergeTagInput-D1hzsn2b.js → MergeTagInput-BEjzj4Iu.js} +115 -115
- package/dist/{MergeTagModeToggle-CH9wR5YF.js → MergeTagModeToggle-DKN6ihI5.js} +40 -40
- package/dist/{MergeTagSuggestion-CoCuzEmW.js → MergeTagSuggestion-DKoLEeoj.js} +21 -21
- package/dist/{ParagraphEditor-CT2AdMdZ.js → ParagraphEditor-1E9yzOfk.js} +231 -258
- package/dist/{RestoreVersionDialog-mdqgQxFR.js → RestoreVersionDialog-BMGUkcd8.js} +28 -28
- package/dist/{RichTextEditorContent-riOB-rKD.js → RichTextEditorContent-BnxbQUV9.js} +49 -59
- package/dist/{SaveBlockDialog-Cn2v4Lpj.js → SaveBlockDialog-WKASpCCT.js} +78 -78
- package/dist/SavedBlocksBrowserModal-AYEXTMtQ.js +323 -0
- package/dist/{SavedBlocksPanels-ffBnWuVU.js → SavedBlocksPanels-D_CpacTl.js} +6 -6
- package/dist/{SavedBlocksPickBar-BmQC2tWN.js → SavedBlocksPickBar-BHMwg-1G.js} +11 -11
- package/dist/{TemplateScoringPanel-CxAtdreR.js → TemplateScoringPanel-CSin43YM.js} +99 -98
- package/dist/{TestEmailModal-Cjn1padY.js → TestEmailModal-BxizsRCd.js} +59 -59
- package/dist/{TestEmailPanel-Bf3XZ1jn.js → TestEmailPanel-vd2e5HzT.js} +3 -3
- package/dist/TitleEditor-CLJ68Ty4.js +199 -0
- package/dist/TplModal-Q9fDgS1M.js +51 -0
- package/dist/{VersionHistoryMenu-CrNrGsaa.js → VersionHistoryMenu-eGYVhM4H.js} +41 -47
- package/dist/{VersionHistoryPanels-CsuQk6W3.js → VersionHistoryPanels-C7Ntrrfq.js} +4 -4
- package/dist/{VersionPreviewBanner-BqbO0Zss.js → VersionPreviewBanner-BbQXnR0M.js} +9 -9
- package/dist/{blockTypeIcons-D_4HdaY9.js → blockTypeIcons-5qD4bB76.js} +5 -17
- package/dist/bundle-stats.json +8 -8
- package/dist/ca-Jx2CDwtn.js +83 -0
- package/dist/cdn/chunks/{AiChatSidebar-D0f74_nS.js → AiChatSidebar-dyqqHAcI.js} +4 -4
- package/dist/cdn/chunks/{AiChatSidebar-D0f74_nS.js.map → AiChatSidebar-dyqqHAcI.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-DwGb3eF9.js → AiFeatureMenu-BjVMwhW8.js} +5 -5
- package/dist/cdn/chunks/{AiFeatureMenu-DwGb3eF9.js.map → AiFeatureMenu-BjVMwhW8.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-CosQgeJ-.js → BlockIssueBadge-BJ__oEtm.js} +4 -4
- package/dist/cdn/chunks/{BlockIssueBadge-CosQgeJ-.js.map → BlockIssueBadge-BJ__oEtm.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-CIpZ2a6g.js → BlockPreviewCanvas-B5f26eLE.js} +5 -5
- package/dist/cdn/chunks/{BlockPreviewCanvas-CIpZ2a6g.js.map → BlockPreviewCanvas-B5f26eLE.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-CQzQwKFB.js → CloudHeaderExtras-D5P5IEKA.js} +4 -4
- package/dist/cdn/chunks/{CloudHeaderExtras-CQzQwKFB.js.map → CloudHeaderExtras-D5P5IEKA.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-BmexuLOU.js → CloudPanels-DkmR05nB.js} +15 -45
- package/dist/cdn/chunks/{CloudPanels-BmexuLOU.js.map → CloudPanels-DkmR05nB.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-DEICobpp.js → CollaboratorBar-Yn7KSpt4.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-DEICobpp.js.map → CollaboratorBar-Yn7KSpt4.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-C7yC58FK.js → ColorPicker-LcrzgMoW.js} +7 -7
- package/dist/cdn/chunks/{ColorPicker-C7yC58FK.js.map → ColorPicker-LcrzgMoW.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-OjmKxLL7.js → CommentsPanel-CntwwocI.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-OjmKxLL7.js.map → CommentsPanel-CntwwocI.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-C4pWZGpy.js → CommentsSidebar-BLDKnKy7.js} +4 -4
- package/dist/cdn/chunks/{CommentsSidebar-C4pWZGpy.js.map → CommentsSidebar-BLDKnKy7.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-rK055jpy.js → CountdownBlock-B4AfqJwb.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-rK055jpy.js.map → CountdownBlock-B4AfqJwb.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-wlJOxyAl.js → CountdownToolbar-CA1dpuOI.js} +3 -3
- package/dist/cdn/chunks/{CountdownToolbar-wlJOxyAl.js.map → CountdownToolbar-CA1dpuOI.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-DELhnh8h.js → DesignReferenceSidebar-D1Y9Hswe.js} +5 -5
- package/dist/cdn/chunks/{DesignReferenceSidebar-DELhnh8h.js.map → DesignReferenceSidebar-D1Y9Hswe.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-C9i3o8aE.js → IssuesPanel-Q62LTqvd.js} +5 -5
- package/dist/cdn/chunks/{IssuesPanel-C9i3o8aE.js.map → IssuesPanel-Q62LTqvd.js.map} +1 -1
- package/dist/cdn/chunks/MediaPanels-D21M6shx.js +45 -0
- package/dist/cdn/chunks/MediaPanels-D21M6shx.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagInput-D76Kyvgu.js → MergeTagInput-l7paaAml.js} +7 -7
- package/dist/cdn/chunks/{MergeTagInput-D76Kyvgu.js.map → MergeTagInput-l7paaAml.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-Dz3gxN2y.js → MergeTagModeToggle-DYxkAGtA.js} +4 -4
- package/dist/cdn/chunks/{MergeTagModeToggle-Dz3gxN2y.js.map → MergeTagModeToggle-DYxkAGtA.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DQn0HMfV.js → ParagraphEditor-Bd-GQXee.js} +15 -15
- package/dist/cdn/chunks/{ParagraphEditor-DQn0HMfV.js.map → ParagraphEditor-Bd-GQXee.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-BdjOL8Oy.js → RestoreVersionDialog-2X9RpM9A.js} +4 -4
- package/dist/cdn/chunks/{RestoreVersionDialog-BdjOL8Oy.js.map → RestoreVersionDialog-2X9RpM9A.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-Drzwgh0J.js → RichTextEditorContent-D_rb0rmU.js} +8 -8
- package/dist/cdn/chunks/{RichTextEditorContent-Drzwgh0J.js.map → RichTextEditorContent-D_rb0rmU.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-B3rbmXSM.js → SaveBlockDialog-CufdTomT.js} +15 -15
- package/dist/cdn/chunks/{SaveBlockDialog-B3rbmXSM.js.map → SaveBlockDialog-CufdTomT.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CkUXlnd2.js → SavedBlocksBrowserModal-CqpaNsk7.js} +8 -8
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CkUXlnd2.js.map → SavedBlocksBrowserModal-CqpaNsk7.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-BPi3PZKP.js → SavedBlocksPanels-DpxYxddo.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-BPi3PZKP.js.map → SavedBlocksPanels-DpxYxddo.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-BvB9A5W2.js → SavedBlocksPickBar-Drpoav1B.js} +4 -4
- package/dist/cdn/chunks/{SavedBlocksPickBar-BvB9A5W2.js.map → SavedBlocksPickBar-Drpoav1B.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-BBCyLnOi.js → TemplateScoringPanel-DBjUNULq.js} +5 -5
- package/dist/cdn/chunks/{TemplateScoringPanel-BBCyLnOi.js.map → TemplateScoringPanel-DBjUNULq.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-DAGTsBqi.js → TestEmailModal-BTNlSW6f.js} +10 -10
- package/dist/cdn/chunks/{TestEmailModal-DAGTsBqi.js.map → TestEmailModal-BTNlSW6f.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BfenVvfx.js → TestEmailPanel-D0A9Zgxr.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-BfenVvfx.js.map → TestEmailPanel-D0A9Zgxr.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-oQ4gr6wS.js → TitleEditor-CrnuIq62.js} +9 -9
- package/dist/cdn/chunks/{TitleEditor-oQ4gr6wS.js.map → TitleEditor-CrnuIq62.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-DxOMcVwp.js → TplModal-DYXrTz42.js} +5 -5
- package/dist/cdn/chunks/{TplModal-DxOMcVwp.js.map → TplModal-DYXrTz42.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-BfVUvWHT.js → VersionHistoryMenu-bDGnE4hb.js} +4 -4
- package/dist/cdn/chunks/VersionHistoryMenu-bDGnE4hb.js.map +1 -0
- package/dist/cdn/chunks/{VersionHistoryPanels-NpDb641L.js → VersionHistoryPanels-82P0Q0HM.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-NpDb641L.js.map → VersionHistoryPanels-82P0Q0HM.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-Cpgt4xHc.js → VersionPreviewBanner-BJiwKkVC.js} +3 -3
- package/dist/cdn/chunks/{VersionPreviewBanner-Cpgt4xHc.js.map → VersionPreviewBanner-BJiwKkVC.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-t9vvaiuH.js → blockTypeIcons-CNjJSFun.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-t9vvaiuH.js.map → blockTypeIcons-CNjJSFun.js.map} +1 -1
- package/dist/cdn/chunks/{ca-CNRWAMHI.js → ca-Jx2CDwtn.js} +2 -6
- package/dist/cdn/chunks/ca-Jx2CDwtn.js.map +1 -0
- package/dist/cdn/chunks/{cloud-CullB76F.js → cloud-BLgCKP7Z.js} +452 -227
- package/dist/cdn/chunks/cloud-BLgCKP7Z.js.map +1 -0
- package/dist/cdn/chunks/createCloudRuntime-U-qCH-dq.js +385 -0
- package/dist/cdn/chunks/createCloudRuntime-U-qCH-dq.js.map +1 -0
- package/dist/cdn/chunks/{de-DFYCT4QU.js → de-Ck0pBGHu.js} +2 -6
- package/dist/cdn/chunks/de-Ck0pBGHu.js.map +1 -0
- package/dist/cdn/chunks/{src-CaXeO-gG.js → editor-modal-MXgtarMl.js} +1474 -1935
- package/dist/cdn/chunks/editor-modal-MXgtarMl.js.map +1 -0
- package/dist/cdn/chunks/en-C9U7N77n.js +2 -0
- package/dist/cdn/chunks/{es-OgkdMZGX.js → es-lagTvUfX.js} +2 -6
- package/dist/cdn/chunks/es-lagTvUfX.js.map +1 -0
- package/dist/cdn/chunks/{extensions-BpXY7jO5.js → extensions-B8_jnIkD.js} +3 -3
- package/dist/cdn/chunks/{extensions-BpXY7jO5.js.map → extensions-B8_jnIkD.js.map} +1 -1
- package/dist/cdn/chunks/{fr-Dswns199.js → fr-C4hVl5Lk.js} +2 -6
- package/dist/cdn/chunks/fr-C4hVl5Lk.js.map +1 -0
- package/dist/cdn/chunks/{icons-BLxcQUck.js → icons-BUlqGSgd.js} +24 -24
- package/dist/cdn/chunks/{icons-BLxcQUck.js.map → icons-BUlqGSgd.js.map} +1 -1
- package/dist/cdn/chunks/{keys-DQp8x7Nx.js → keys-DBFhDFng.js} +4 -4
- package/dist/cdn/chunks/{keys-DQp8x7Nx.js.map → keys-DBFhDFng.js.map} +1 -1
- package/dist/cdn/chunks/{nl-CbcPJlrL.js → nl-CReD7Apd.js} +2 -6
- package/dist/cdn/chunks/nl-CReD7Apd.js.map +1 -0
- package/dist/cdn/chunks/{pt-BR-BibOQm-o.js → pt-BR-BRA0-vGP.js} +2 -6
- package/dist/cdn/chunks/pt-BR-BRA0-vGP.js.map +1 -0
- package/dist/cdn/chunks/{src-BC-eolWY.js → src-Ozknnj-v.js} +2 -2
- package/dist/cdn/chunks/{src-BC-eolWY.js.map → src-Ozknnj-v.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-MxgHWrV6.js → useCloudI18n-DSWSGj-A.js} +2 -2
- package/dist/cdn/chunks/{useCloudI18n-MxgHWrV6.js.map → useCloudI18n-DSWSGj-A.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-D4MytYB9.js → useEditorCore-Cs7rYVBo.js} +488 -406
- package/dist/cdn/chunks/useEditorCore-Cs7rYVBo.js.map +1 -0
- package/dist/cdn/chunks/{useEditorRoot-CteADR3y.js → useEditorRoot-B0zW2nT4.js} +2 -2
- package/dist/cdn/chunks/{useEditorRoot-CteADR3y.js.map → useEditorRoot-B0zW2nT4.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-Ct1VIFcf.js → useI18n-Dlo7R9RA.js} +2 -2
- package/dist/cdn/chunks/{useI18n-Ct1VIFcf.js.map → useI18n-Dlo7R9RA.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-CSocWpxV.js → useMergeTag-BYAifvh8.js} +3 -3
- package/dist/cdn/chunks/{useMergeTag-CSocWpxV.js.map → useMergeTag-BYAifvh8.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-BxVWE5_0.js → usePopoverPosition-ElP3ABaV.js} +2 -2
- package/dist/cdn/chunks/{usePopoverPosition-BxVWE5_0.js.map → usePopoverPosition-ElP3ABaV.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-Cz3fpgTK.js → useScrollToBlock-nTbWkgaU.js} +2 -2
- package/dist/cdn/chunks/{useScrollToBlock-Cz3fpgTK.js.map → useScrollToBlock-nTbWkgaU.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +1094 -1005
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-CY-Ec6FV.js → check-DWtkBzBU.js} +1 -1
- package/dist/{chevron-down-BghbWA9p.js → chevron-down-C-Fjxcqj.js} +1 -1
- package/dist/chevron-right-SOkn2d4P.js +11 -0
- package/dist/{chevron-up-n3qFAPS3.js → chevron-up-lntU1ypp.js} +1 -1
- package/dist/{circle-alert-L5uGGFRP.js → circle-alert-CjzUTwy3.js} +1 -1
- package/dist/{clock-Dgnwp18n.js → clock-pB2QKPsJ.js} +1 -1
- package/dist/{cloud-B1c4XIsn.js → cloud-DdidMW6f.js} +445 -200
- package/dist/copy-CId1E038.js +19 -0
- package/dist/createCloudRuntime-x5WZm3p8.js +383 -0
- package/dist/{createLucideIcon-05lB8iWe.js → createLucideIcon-Cwf_nTzE.js} +6 -6
- package/dist/de-Ck0pBGHu.js +83 -0
- package/dist/{dist-BxFbxpgW.js → dist-BVqAYoRB.js} +125 -125
- package/dist/dist-D8i1ixHK.js +177 -0
- package/dist/dist-DBirAJIs.js +410 -0
- package/dist/editor-modal-B_LaQf0s.js +5998 -0
- package/dist/en-DcmpWV53.js +2 -0
- package/dist/es-lagTvUfX.js +83 -0
- package/dist/{extensions-Bawm4BOM.js → extensions-CHOBZRab.js} +42 -42
- package/dist/eye-BuGtFUoJ.js +16 -0
- package/dist/fr-C4hVl5Lk.js +83 -0
- package/dist/{image-up-ovhjl9u9.js → image-up-gH4JEpU5.js} +1 -1
- package/dist/index.d.ts +90 -11
- package/dist/{info-c3KI927I.js → info-BQ60P82u.js} +1 -1
- package/dist/{keys-C3P1yxnr.js → keys-DQA2i1k1.js} +4 -4
- package/dist/link-3R8it3J7.js +14 -0
- package/dist/list-Ccdgj46T.js +33 -0
- package/dist/{loader-circle-B2Y8xZQb.js → loader-circle-B_tAD4k6.js} +1 -1
- package/dist/{message-circle-B7K-naUa.js → message-circle-P-KSc6V0.js} +1 -1
- package/dist/nl-CReD7Apd.js +83 -0
- package/dist/{pencil-BhWTFcp4.js → pencil-9ZiwqS4r.js} +1 -1
- package/dist/plus-BwJEzCaO.js +14 -0
- package/dist/pt-BR-BRA0-vGP.js +83 -0
- package/dist/{refresh-cw-BqUR5vgO.js → refresh-cw-DEgfb2FK.js} +2 -14
- package/dist/{runtime-dom.esm-bundler-BuG03jBM.js → runtime-dom.esm-bundler-PnoZU512.js} +106 -106
- package/dist/search-DqQ8Li5E.js +16 -0
- package/dist/{send-D1vvuW79.js → send-CE6uvqop.js} +1 -1
- package/dist/{shield-check-DjK54PnW.js → shield-check-DhD1Z3rd.js} +1 -1
- package/dist/{sparkles-DNdS9V_3.js → sparkles-R0ZQHa6F.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +2491 -2408
- package/dist/{text-align-start-Bcmo_VUY.js → text-align-start-DSux2UNn.js} +1 -1
- package/dist/{trash-C9bMXvw4.js → trash-Cf_SqsER.js} +1 -1
- package/dist/{triangle-alert-Bn8Bd2Yv.js → triangle-alert-C6tGa6jw.js} +1 -1
- package/dist/{upload-DKgg1gno.js → upload-DusKjpVr.js} +1 -1
- package/dist/{useAliveFlag-PVmp95MT.js → useAliveFlag-oyByIcjy.js} +1 -1
- package/dist/{useCloudI18n-BKoiYsWZ.js → useCloudI18n-BLyh_e2T.js} +2 -2
- package/dist/{useEditorCore-CYGvurZa.js → useEditorCore-DhlKOYwe.js} +1552 -1486
- package/dist/{useEditorRoot-DkRGTQRs.js → useEditorRoot-ds57-l6F.js} +2 -2
- package/dist/{useI18n-CL6RfPzK.js → useI18n-BbdxxpOE.js} +2 -2
- package/dist/{useMergeTag-C9GEpljB.js → useMergeTag-DlvOBW_B.js} +3 -3
- package/dist/{usePopoverPosition-CWxaIWd3.js → usePopoverPosition-CprM5p-c.js} +2 -2
- package/dist/{useScrollToBlock-oUx1HIZ2.js → useScrollToBlock-BTFw0b9O.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-D9JUcKrV.js → vue.runtime.esm-bundler-DShF3P6k.js} +1192 -1181
- package/dist/{x-BPKoRPTG.js → x-D_-42Ukq.js} +1 -1
- package/package.json +9 -12
- package/dist/CloudHeaderExtras-CRUQvgSV.js +0 -59
- package/dist/SavedBlocksBrowserModal-BORqqASb.js +0 -322
- package/dist/TitleEditor-pYEUX6lR.js +0 -198
- package/dist/TplModal-DRx4ytx8.js +0 -51
- package/dist/cdn/chunks/VersionHistoryMenu-BfVUvWHT.js.map +0 -1
- package/dist/cdn/chunks/ca-CNRWAMHI.js.map +0 -1
- package/dist/cdn/chunks/cloud-CullB76F.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-Cx2JpUYU.js +0 -443
- package/dist/cdn/chunks/createCloudRuntime-Cx2JpUYU.js.map +0 -1
- package/dist/cdn/chunks/de-DFYCT4QU.js.map +0 -1
- package/dist/cdn/chunks/en-rGHphLWo.js +0 -2
- package/dist/cdn/chunks/es-OgkdMZGX.js.map +0 -1
- package/dist/cdn/chunks/fr-Dswns199.js.map +0 -1
- package/dist/cdn/chunks/nl-CbcPJlrL.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-BibOQm-o.js.map +0 -1
- package/dist/cdn/chunks/src-CaXeO-gG.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-D4MytYB9.js.map +0 -1
- package/dist/createCloudRuntime-PevFSH74.js +0 -441
- package/dist/dist-dNiknO7j.js +0 -251
- package/dist/dist-heatwAdo.js +0 -150
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as b, s as x } from "./runtime-dom.esm-bundler-
|
|
1
|
+
import { A as e, At as t, F as n, K as r, M as i, S as a, Z as o, at as s, c, d as l, g as u, h as d, i 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 { R as S } from "./dist-tGkjkX-v.js";
|
|
4
|
-
import { C, D as w, E as T, S as E } from "./useEditorCore-
|
|
5
|
-
import { t as D } from "./dist-
|
|
6
|
-
import {
|
|
7
|
-
import { t as P } from "./useI18n-
|
|
8
|
-
import { n as F } from "./usePopoverPosition-
|
|
9
|
-
import { t as I } from "./createLucideIcon-
|
|
10
|
-
import {
|
|
11
|
-
import { o as
|
|
12
|
-
import { t as
|
|
13
|
-
import {
|
|
4
|
+
import { C, D as w, E as T, S as E } from "./useEditorCore-DhlKOYwe.js";
|
|
5
|
+
import { t as D } from "./dist-DBirAJIs.js";
|
|
6
|
+
import { T as O, W as k, Y as A, g as j, k as M, q as N, v as ee } from "./keys-DQA2i1k1.js";
|
|
7
|
+
import { t as P } from "./useI18n-BbdxxpOE.js";
|
|
8
|
+
import { n as F } from "./usePopoverPosition-CprM5p-c.js";
|
|
9
|
+
import { t as I } from "./createLucideIcon-Cwf_nTzE.js";
|
|
10
|
+
import { i as te, n as L, r as ne, t as R } from "./RichTextEditorContent-BnxbQUV9.js";
|
|
11
|
+
import { o as re, s as ie } from "./MergeTagInput-BEjzj4Iu.js";
|
|
12
|
+
import { t as ae } from "./link-3R8it3J7.js";
|
|
13
|
+
import { t as oe } from "./list-Ccdgj46T.js";
|
|
14
|
+
import { t as se } from "./loader-circle-B_tAD4k6.js";
|
|
15
|
+
import { n as ce, r as le, t as ue } from "./text-align-start-DSux2UNn.js";
|
|
14
16
|
import { t as z } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
15
|
-
import { a as
|
|
16
|
-
import { t as B } from "./ColorPicker-
|
|
17
|
+
import { a as de, n as fe, o as pe, s as me } from "./styleConstants-C_YAPdQS.js";
|
|
18
|
+
import { t as B } from "./ColorPicker-BqlZ_TqG.js";
|
|
17
19
|
var V = I({
|
|
18
20
|
name: "face-slightly-smiling",
|
|
19
21
|
size: 24,
|
|
@@ -38,7 +40,7 @@ var V = I({
|
|
|
38
40
|
}]
|
|
39
41
|
],
|
|
40
42
|
aliases: ["smile"]
|
|
41
|
-
}),
|
|
43
|
+
}), he = I({
|
|
42
44
|
name: "list-ordered",
|
|
43
45
|
size: 24,
|
|
44
46
|
node: [
|
|
@@ -67,35 +69,6 @@ var V = I({
|
|
|
67
69
|
key: "xtkcd5"
|
|
68
70
|
}]
|
|
69
71
|
]
|
|
70
|
-
}), he = I({
|
|
71
|
-
name: "list",
|
|
72
|
-
size: 24,
|
|
73
|
-
node: [
|
|
74
|
-
["path", {
|
|
75
|
-
d: "M3 5h.01",
|
|
76
|
-
key: "18ugdj"
|
|
77
|
-
}],
|
|
78
|
-
["path", {
|
|
79
|
-
d: "M3 12h.01",
|
|
80
|
-
key: "nlz23k"
|
|
81
|
-
}],
|
|
82
|
-
["path", {
|
|
83
|
-
d: "M3 19h.01",
|
|
84
|
-
key: "noohij"
|
|
85
|
-
}],
|
|
86
|
-
["path", {
|
|
87
|
-
d: "M8 5h13",
|
|
88
|
-
key: "1pao27"
|
|
89
|
-
}],
|
|
90
|
-
["path", {
|
|
91
|
-
d: "M8 12h13",
|
|
92
|
-
key: "1za7za"
|
|
93
|
-
}],
|
|
94
|
-
["path", {
|
|
95
|
-
d: "M8 19h13",
|
|
96
|
-
key: "m83p4d"
|
|
97
|
-
}]
|
|
98
|
-
]
|
|
99
72
|
}), ge = I({
|
|
100
73
|
name: "remove-formatting",
|
|
101
74
|
size: 24,
|
|
@@ -214,50 +187,50 @@ var V = I({
|
|
|
214
187
|
__name: "EmojiPickerDropdown",
|
|
215
188
|
emits: ["insert"],
|
|
216
189
|
setup(t, { emit: n }) {
|
|
217
|
-
let r = n, { categories:
|
|
190
|
+
let r = n, { categories: a, isOpen: d, toggle: f, close: h } = T(), { t: y, format: S } = P(), C = o(null), E = o(null), O = _(() => d.value);
|
|
218
191
|
w(C, O), D(E, () => {
|
|
219
|
-
|
|
192
|
+
d.value && h();
|
|
220
193
|
});
|
|
221
194
|
function k(e) {
|
|
222
|
-
r("insert", e),
|
|
195
|
+
r("insert", e), h();
|
|
223
196
|
}
|
|
224
|
-
return (t, n) => (
|
|
197
|
+
return (t, n) => (e(), l("div", {
|
|
225
198
|
ref_key: "rootRef",
|
|
226
199
|
ref: E,
|
|
227
200
|
class: "tpl:relative"
|
|
228
|
-
}, [
|
|
201
|
+
}, [c("button", {
|
|
229
202
|
type: "button",
|
|
230
|
-
class:
|
|
231
|
-
"aria-label":
|
|
232
|
-
title:
|
|
233
|
-
"aria-expanded":
|
|
203
|
+
class: m(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": s(d) }]),
|
|
204
|
+
"aria-label": s(y).paragraphEditor.insertEmoji,
|
|
205
|
+
title: s(y).paragraphEditor.insertEmoji,
|
|
206
|
+
"aria-expanded": s(d),
|
|
234
207
|
"aria-haspopup": "dialog",
|
|
235
208
|
"aria-controls": "tpl-emoji-picker",
|
|
236
|
-
onClick: n[0] ||= (...e) =>
|
|
237
|
-
}, [
|
|
209
|
+
onClick: n[0] ||= (...e) => s(f) && s(f)(...e)
|
|
210
|
+
}, [u(s(V), {
|
|
238
211
|
size: 16,
|
|
239
212
|
"stroke-width": 2
|
|
240
|
-
})], 10, H),
|
|
213
|
+
})], 10, H), s(d) ? (e(), l("div", {
|
|
241
214
|
key: 0,
|
|
242
215
|
id: "tpl-emoji-picker",
|
|
243
216
|
ref_key: "pickerRef",
|
|
244
217
|
ref: C,
|
|
245
218
|
role: "dialog",
|
|
246
219
|
"aria-modal": "false",
|
|
247
|
-
"aria-label":
|
|
220
|
+
"aria-label": s(y).paragraphEditor.insertEmoji,
|
|
248
221
|
tabindex: "-1",
|
|
249
222
|
class: "tpl-emoji-picker tpl:absolute tpl:top-full tpl:left-0 tpl:z-10 tpl:mt-2 tpl:w-72 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
250
|
-
onKeydown: n[1] ||= x(b((...e) =>
|
|
251
|
-
}, [(
|
|
252
|
-
key:
|
|
223
|
+
onKeydown: n[1] ||= x(b((...e) => s(h) && s(h)(...e), ["stop", "prevent"]), ["esc"])
|
|
224
|
+
}, [(e(!0), l(g, null, i(s(a), (t) => (e(), l("div", {
|
|
225
|
+
key: t.key,
|
|
253
226
|
class: "tpl:mb-2 tpl:last:mb-0"
|
|
254
|
-
}, [
|
|
255
|
-
key:
|
|
227
|
+
}, [c("div", W, p(s(y).emoji[t.key]), 1), c("div", G, [(e(!0), l(g, null, i(t.emojis, (t) => (e(), l("button", {
|
|
228
|
+
key: t,
|
|
256
229
|
type: "button",
|
|
257
|
-
"aria-label":
|
|
230
|
+
"aria-label": s(S)(s(y).paragraphEditor.emojiItemLabel, { emoji: t }),
|
|
258
231
|
class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border-none tpl:bg-transparent tpl:text-base tpl:transition-all tpl:hover:scale-125 tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
259
|
-
onClick: (
|
|
260
|
-
}, p(
|
|
232
|
+
onClick: (e) => k(t)
|
|
233
|
+
}, p(t), 9, K))), 128))])]))), 128))], 40, U)) : v("", !0)], 512));
|
|
261
234
|
}
|
|
262
235
|
}), q = [
|
|
263
236
|
"aria-label",
|
|
@@ -273,13 +246,13 @@ var V = I({
|
|
|
273
246
|
size: {}
|
|
274
247
|
},
|
|
275
248
|
setup(t) {
|
|
276
|
-
return (
|
|
249
|
+
return (r, i) => (e(), l("button", {
|
|
277
250
|
type: "button",
|
|
278
|
-
class:
|
|
251
|
+
class: m(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": t.active }]),
|
|
279
252
|
"aria-label": t.label,
|
|
280
253
|
title: t.label,
|
|
281
254
|
"aria-pressed": t.active ? "true" : "false"
|
|
282
|
-
}, [(
|
|
255
|
+
}, [(e(), h(n(t.icon), {
|
|
283
256
|
size: t.size ?? 16,
|
|
284
257
|
"stroke-width": t.strokeWidth ?? 2
|
|
285
258
|
}, null, 8, ["size", "stroke-width"]))], 10, q));
|
|
@@ -288,8 +261,8 @@ var V = I({
|
|
|
288
261
|
class: "tpl:mx-1 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
|
|
289
262
|
"aria-hidden": "true"
|
|
290
263
|
};
|
|
291
|
-
function Z(
|
|
292
|
-
return
|
|
264
|
+
function Z(t, n) {
|
|
265
|
+
return e(), l("span", X);
|
|
293
266
|
}
|
|
294
267
|
var Q = /*#__PURE__*/ z(Y, [["render", Z]]), Ce = [
|
|
295
268
|
"value",
|
|
@@ -307,25 +280,25 @@ var Q = /*#__PURE__*/ z(Y, [["render", Z]]), Ce = [
|
|
|
307
280
|
emits: ["update:modelValue"],
|
|
308
281
|
setup(t, { emit: n }) {
|
|
309
282
|
let r = n;
|
|
310
|
-
function
|
|
283
|
+
function a(e) {
|
|
311
284
|
r("update:modelValue", e.target.value);
|
|
312
285
|
}
|
|
313
|
-
function
|
|
286
|
+
function o(e) {
|
|
314
287
|
return typeof e == "string" ? e : e.value;
|
|
315
288
|
}
|
|
316
|
-
function
|
|
289
|
+
function s(e) {
|
|
317
290
|
return typeof e == "string" ? e : e.label;
|
|
318
291
|
}
|
|
319
|
-
return (n, r) => (
|
|
320
|
-
class:
|
|
292
|
+
return (n, r) => (e(), l("select", {
|
|
293
|
+
class: m(["tpl:h-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none", t.widthClass ?? "tpl:w-20"]),
|
|
321
294
|
value: t.modelValue,
|
|
322
295
|
"aria-label": t.label,
|
|
323
296
|
title: t.label,
|
|
324
|
-
onChange:
|
|
325
|
-
}, [
|
|
326
|
-
key:
|
|
327
|
-
value:
|
|
328
|
-
}, p(
|
|
297
|
+
onChange: a
|
|
298
|
+
}, [c("option", we, p(t.placeholder ?? ""), 1), (e(!0), l(g, null, i(t.options, (t) => (e(), l("option", {
|
|
299
|
+
key: o(t),
|
|
300
|
+
value: o(t)
|
|
301
|
+
}, p(s(t)), 9, Te))), 128))], 42, Ce));
|
|
329
302
|
}
|
|
330
303
|
});
|
|
331
304
|
//#endregion
|
|
@@ -352,30 +325,30 @@ var De = ["data-tpl-theme", "aria-label"], Oe = { class: "tpl:flex tpl:items-cen
|
|
|
352
325
|
"add-merge-tag",
|
|
353
326
|
"add-logic-tag"
|
|
354
327
|
],
|
|
355
|
-
setup(
|
|
356
|
-
let
|
|
328
|
+
setup(n, { emit: r }) {
|
|
329
|
+
let i = n, o = r, m = a(k, null), y = a(N, null), b = A(ee, "ParagraphToolbar"), x = F(), S = a(M, null), C = a(O, null), w = a(j, null), T = _(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: E } = P(), D = b.fonts;
|
|
357
330
|
function I(e) {
|
|
358
|
-
|
|
331
|
+
i.editor?.chain().focus().insertContent(e).run();
|
|
359
332
|
}
|
|
360
333
|
function L(e) {
|
|
361
|
-
return
|
|
334
|
+
return i.editor?.getAttributes("textStyle")[e] || "";
|
|
362
335
|
}
|
|
363
336
|
function R(e) {
|
|
364
|
-
let t =
|
|
337
|
+
let t = i.editor?.chain().focus();
|
|
365
338
|
e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
|
|
366
339
|
}
|
|
367
340
|
function z(e) {
|
|
368
|
-
let t =
|
|
341
|
+
let t = i.editor?.chain().focus();
|
|
369
342
|
e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
|
|
370
343
|
}
|
|
371
344
|
function V() {
|
|
372
|
-
return
|
|
345
|
+
return i.editor?.isActive("link") ?? !1;
|
|
373
346
|
}
|
|
374
347
|
function H() {
|
|
375
|
-
return
|
|
348
|
+
return i.editor?.getAttributes("link").color || "";
|
|
376
349
|
}
|
|
377
350
|
function U(e) {
|
|
378
|
-
let t =
|
|
351
|
+
let t = i.editor?.chain().focus();
|
|
379
352
|
t && (V() ? (t.extendMarkRange("link").updateAttributes("link", { color: e || null }), e && t.unsetColor(), t.run()) : e ? t.setColor(e).updateAttributes("link", { color: e }).run() : t.unsetColor().run());
|
|
380
353
|
}
|
|
381
354
|
function W() {
|
|
@@ -386,44 +359,44 @@ var De = ["data-tpl-theme", "aria-label"], Oe = { class: "tpl:flex tpl:items-cen
|
|
|
386
359
|
return V() ? H() : L("color");
|
|
387
360
|
}
|
|
388
361
|
function K() {
|
|
389
|
-
return
|
|
362
|
+
return i.editor?.getAttributes("paragraph").lineHeight || "";
|
|
390
363
|
}
|
|
391
364
|
function q(e) {
|
|
392
|
-
let t =
|
|
365
|
+
let t = i.editor?.chain().focus();
|
|
393
366
|
e ? t?.setLineHeight(e).run() : t?.unsetLineHeight().run();
|
|
394
367
|
}
|
|
395
368
|
function Y(e) {
|
|
396
|
-
let t =
|
|
369
|
+
let t = i.editor?.chain().focus();
|
|
397
370
|
e && e !== "normal" ? t?.setLetterSpacing(e).run() : t?.unsetLetterSpacing().run();
|
|
398
371
|
}
|
|
399
372
|
function X() {
|
|
400
|
-
return
|
|
373
|
+
return i.editor?.getAttributes("highlight").color || "";
|
|
401
374
|
}
|
|
402
375
|
function Z(e) {
|
|
403
|
-
let t =
|
|
376
|
+
let t = i.editor?.chain().focus();
|
|
404
377
|
e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
|
|
405
378
|
}
|
|
406
|
-
return (
|
|
379
|
+
return (r, i) => s(x) && !T.value ? (e(), h(f, {
|
|
407
380
|
key: 0,
|
|
408
|
-
to:
|
|
409
|
-
}, [
|
|
410
|
-
"data-tpl-theme":
|
|
381
|
+
to: s(x)
|
|
382
|
+
}, [c("div", {
|
|
383
|
+
"data-tpl-theme": s(y),
|
|
411
384
|
role: "toolbar",
|
|
412
|
-
"aria-label":
|
|
385
|
+
"aria-label": s(E).paragraphEditor.toolbar,
|
|
413
386
|
class: "tpl tpl-text-toolbar tpl:absolute tpl:flex tpl:gap-1 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
414
|
-
style:
|
|
415
|
-
...
|
|
416
|
-
top: `${
|
|
417
|
-
left: `${
|
|
387
|
+
style: t({
|
|
388
|
+
...s(m),
|
|
389
|
+
top: `${n.toolbarPosition.top}px`,
|
|
390
|
+
left: `${n.toolbarPosition.left}px`,
|
|
418
391
|
transform: "translateY(-100%)",
|
|
419
392
|
flexDirection: "column"
|
|
420
393
|
})
|
|
421
|
-
}, [!
|
|
422
|
-
|
|
394
|
+
}, [!n.isLoading && n.editor ? (e(), l(g, { key: 0 }, [c("div", Oe, [
|
|
395
|
+
u($, {
|
|
423
396
|
"model-value": L("fontFamily"),
|
|
424
|
-
options:
|
|
425
|
-
label:
|
|
426
|
-
placeholder:
|
|
397
|
+
options: s(D),
|
|
398
|
+
label: s(E).paragraphEditor.fontFamily,
|
|
399
|
+
placeholder: s(E).paragraphEditor.defaultFont,
|
|
427
400
|
"width-class": "tpl:w-32",
|
|
428
401
|
"onUpdate:modelValue": R
|
|
429
402
|
}, null, 8, [
|
|
@@ -432,11 +405,11 @@ var De = ["data-tpl-theme", "aria-label"], Oe = { class: "tpl:flex tpl:items-cen
|
|
|
432
405
|
"label",
|
|
433
406
|
"placeholder"
|
|
434
407
|
]),
|
|
435
|
-
|
|
408
|
+
u($, {
|
|
436
409
|
"model-value": L("fontSize"),
|
|
437
|
-
options:
|
|
438
|
-
label:
|
|
439
|
-
placeholder:
|
|
410
|
+
options: s(de),
|
|
411
|
+
label: s(E).paragraphEditor.fontSize,
|
|
412
|
+
placeholder: s(E).paragraphEditor.defaultSize,
|
|
440
413
|
"width-class": "tpl:w-20",
|
|
441
414
|
"onUpdate:modelValue": z
|
|
442
415
|
}, null, 8, [
|
|
@@ -445,174 +418,174 @@ var De = ["data-tpl-theme", "aria-label"], Oe = { class: "tpl:flex tpl:items-cen
|
|
|
445
418
|
"label",
|
|
446
419
|
"placeholder"
|
|
447
420
|
]),
|
|
448
|
-
|
|
449
|
-
|
|
421
|
+
u(Q),
|
|
422
|
+
u(B, {
|
|
450
423
|
"swatch-only": "",
|
|
451
424
|
size: "sm",
|
|
452
425
|
"data-testid": "text-color-picker",
|
|
453
426
|
"model-value": G(),
|
|
454
427
|
"seed-color": W(),
|
|
455
|
-
"aria-label":
|
|
428
|
+
"aria-label": s(E).paragraphEditor.textColor,
|
|
456
429
|
"onUpdate:modelValue": U
|
|
457
430
|
}, null, 8, [
|
|
458
431
|
"model-value",
|
|
459
432
|
"seed-color",
|
|
460
433
|
"aria-label"
|
|
461
434
|
]),
|
|
462
|
-
|
|
435
|
+
u(B, {
|
|
463
436
|
"swatch-only": "",
|
|
464
437
|
size: "sm",
|
|
465
438
|
"data-testid": "highlight-color-picker",
|
|
466
439
|
"model-value": X(),
|
|
467
|
-
"seed-color":
|
|
468
|
-
"aria-label":
|
|
440
|
+
"seed-color": s(fe),
|
|
441
|
+
"aria-label": s(E).paragraphEditor.highlightColor,
|
|
469
442
|
"onUpdate:modelValue": Z
|
|
470
443
|
}, null, 8, [
|
|
471
444
|
"model-value",
|
|
472
445
|
"seed-color",
|
|
473
446
|
"aria-label"
|
|
474
447
|
]),
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
icon:
|
|
478
|
-
label:
|
|
479
|
-
active:
|
|
448
|
+
u(Q),
|
|
449
|
+
u(J, {
|
|
450
|
+
icon: s(te),
|
|
451
|
+
label: s(E).paragraphEditor.bold,
|
|
452
|
+
active: n.editor.isActive("bold"),
|
|
480
453
|
"stroke-width": 2.5,
|
|
481
|
-
onClick:
|
|
454
|
+
onClick: i[0] ||= (e) => n.editor.chain().focus().toggleBold().run()
|
|
482
455
|
}, null, 8, [
|
|
483
456
|
"icon",
|
|
484
457
|
"label",
|
|
485
458
|
"active"
|
|
486
459
|
]),
|
|
487
|
-
|
|
488
|
-
icon:
|
|
489
|
-
label:
|
|
490
|
-
active:
|
|
491
|
-
onClick:
|
|
460
|
+
u(J, {
|
|
461
|
+
icon: s(ne),
|
|
462
|
+
label: s(E).paragraphEditor.italic,
|
|
463
|
+
active: n.editor.isActive("italic"),
|
|
464
|
+
onClick: i[1] ||= (e) => n.editor.chain().focus().toggleItalic().run()
|
|
492
465
|
}, null, 8, [
|
|
493
466
|
"icon",
|
|
494
467
|
"label",
|
|
495
468
|
"active"
|
|
496
469
|
]),
|
|
497
|
-
|
|
498
|
-
icon:
|
|
499
|
-
label:
|
|
500
|
-
active:
|
|
501
|
-
onClick:
|
|
470
|
+
u(J, {
|
|
471
|
+
icon: s(xe),
|
|
472
|
+
label: s(E).paragraphEditor.underline,
|
|
473
|
+
active: n.editor.isActive("underline"),
|
|
474
|
+
onClick: i[2] ||= (e) => n.editor.chain().focus().toggleUnderline().run()
|
|
502
475
|
}, null, 8, [
|
|
503
476
|
"icon",
|
|
504
477
|
"label",
|
|
505
478
|
"active"
|
|
506
479
|
]),
|
|
507
|
-
|
|
508
|
-
icon:
|
|
509
|
-
label:
|
|
510
|
-
active:
|
|
511
|
-
onClick:
|
|
480
|
+
u(J, {
|
|
481
|
+
icon: s(_e),
|
|
482
|
+
label: s(E).paragraphEditor.strikethrough,
|
|
483
|
+
active: n.editor.isActive("strike"),
|
|
484
|
+
onClick: i[3] ||= (e) => n.editor.chain().focus().toggleStrike().run()
|
|
512
485
|
}, null, 8, [
|
|
513
486
|
"icon",
|
|
514
487
|
"label",
|
|
515
488
|
"active"
|
|
516
489
|
]),
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
icon:
|
|
520
|
-
label:
|
|
521
|
-
active:
|
|
522
|
-
onClick:
|
|
490
|
+
u(Q),
|
|
491
|
+
u(J, {
|
|
492
|
+
icon: s(ve),
|
|
493
|
+
label: s(E).paragraphEditor.subscript,
|
|
494
|
+
active: n.editor.isActive("subscript"),
|
|
495
|
+
onClick: i[4] ||= (e) => n.editor.chain().focus().toggleSubscript().run()
|
|
523
496
|
}, null, 8, [
|
|
524
497
|
"icon",
|
|
525
498
|
"label",
|
|
526
499
|
"active"
|
|
527
500
|
]),
|
|
528
|
-
|
|
529
|
-
icon:
|
|
530
|
-
label:
|
|
531
|
-
active:
|
|
532
|
-
onClick:
|
|
501
|
+
u(J, {
|
|
502
|
+
icon: s(ye),
|
|
503
|
+
label: s(E).paragraphEditor.superscript,
|
|
504
|
+
active: n.editor.isActive("superscript"),
|
|
505
|
+
onClick: i[5] ||= (e) => n.editor.chain().focus().toggleSuperscript().run()
|
|
533
506
|
}, null, 8, [
|
|
534
507
|
"icon",
|
|
535
508
|
"label",
|
|
536
509
|
"active"
|
|
537
510
|
]),
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
icon:
|
|
541
|
-
label:
|
|
542
|
-
active:
|
|
543
|
-
onClick:
|
|
511
|
+
u(Q),
|
|
512
|
+
u(J, {
|
|
513
|
+
icon: s(ae),
|
|
514
|
+
label: s(E).paragraphEditor.addLink,
|
|
515
|
+
active: n.editor.isActive("link"),
|
|
516
|
+
onClick: i[6] ||= (e) => o("open-link-dialog")
|
|
544
517
|
}, null, 8, [
|
|
545
518
|
"icon",
|
|
546
519
|
"label",
|
|
547
520
|
"active"
|
|
548
521
|
])
|
|
549
|
-
]),
|
|
550
|
-
|
|
551
|
-
icon:
|
|
552
|
-
label:
|
|
553
|
-
active:
|
|
554
|
-
onClick:
|
|
522
|
+
]), c("div", ke, [
|
|
523
|
+
u(J, {
|
|
524
|
+
icon: s(oe),
|
|
525
|
+
label: s(E).paragraphEditor.bulletList,
|
|
526
|
+
active: n.editor.isActive("bulletList"),
|
|
527
|
+
onClick: i[7] ||= (e) => n.editor.chain().focus().toggleBulletList().run()
|
|
555
528
|
}, null, 8, [
|
|
556
529
|
"icon",
|
|
557
530
|
"label",
|
|
558
531
|
"active"
|
|
559
532
|
]),
|
|
560
|
-
|
|
561
|
-
icon:
|
|
562
|
-
label:
|
|
563
|
-
active:
|
|
564
|
-
onClick:
|
|
533
|
+
u(J, {
|
|
534
|
+
icon: s(he),
|
|
535
|
+
label: s(E).paragraphEditor.numberedList,
|
|
536
|
+
active: n.editor.isActive("orderedList"),
|
|
537
|
+
onClick: i[8] ||= (e) => n.editor.chain().focus().toggleOrderedList().run()
|
|
565
538
|
}, null, 8, [
|
|
566
539
|
"icon",
|
|
567
540
|
"label",
|
|
568
541
|
"active"
|
|
569
542
|
]),
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
icon:
|
|
573
|
-
label:
|
|
574
|
-
active:
|
|
575
|
-
onClick:
|
|
543
|
+
u(Q),
|
|
544
|
+
u(J, {
|
|
545
|
+
icon: s(ue),
|
|
546
|
+
label: s(E).paragraphEditor.alignLeft,
|
|
547
|
+
active: n.editor.isActive({ textAlign: "left" }),
|
|
548
|
+
onClick: i[9] ||= (e) => n.editor.chain().focus().setTextAlign("left").run()
|
|
576
549
|
}, null, 8, [
|
|
577
550
|
"icon",
|
|
578
551
|
"label",
|
|
579
552
|
"active"
|
|
580
553
|
]),
|
|
581
|
-
|
|
582
|
-
icon:
|
|
583
|
-
label:
|
|
584
|
-
active:
|
|
585
|
-
onClick:
|
|
554
|
+
u(J, {
|
|
555
|
+
icon: s(le),
|
|
556
|
+
label: s(E).paragraphEditor.alignCenter,
|
|
557
|
+
active: n.editor.isActive({ textAlign: "center" }),
|
|
558
|
+
onClick: i[10] ||= (e) => n.editor.chain().focus().setTextAlign("center").run()
|
|
586
559
|
}, null, 8, [
|
|
587
560
|
"icon",
|
|
588
561
|
"label",
|
|
589
562
|
"active"
|
|
590
563
|
]),
|
|
591
|
-
|
|
592
|
-
icon:
|
|
593
|
-
label:
|
|
594
|
-
active:
|
|
595
|
-
onClick:
|
|
564
|
+
u(J, {
|
|
565
|
+
icon: s(ce),
|
|
566
|
+
label: s(E).paragraphEditor.alignRight,
|
|
567
|
+
active: n.editor.isActive({ textAlign: "right" }),
|
|
568
|
+
onClick: i[11] ||= (e) => n.editor.chain().focus().setTextAlign("right").run()
|
|
596
569
|
}, null, 8, [
|
|
597
570
|
"icon",
|
|
598
571
|
"label",
|
|
599
572
|
"active"
|
|
600
573
|
]),
|
|
601
|
-
|
|
602
|
-
icon:
|
|
603
|
-
label:
|
|
604
|
-
active:
|
|
605
|
-
onClick:
|
|
574
|
+
u(J, {
|
|
575
|
+
icon: s(be),
|
|
576
|
+
label: s(E).paragraphEditor.alignJustify,
|
|
577
|
+
active: n.editor.isActive({ textAlign: "justify" }),
|
|
578
|
+
onClick: i[12] ||= (e) => n.editor.chain().focus().setTextAlign("justify").run()
|
|
606
579
|
}, null, 8, [
|
|
607
580
|
"icon",
|
|
608
581
|
"label",
|
|
609
582
|
"active"
|
|
610
583
|
]),
|
|
611
|
-
|
|
612
|
-
|
|
584
|
+
u(Q),
|
|
585
|
+
u($, {
|
|
613
586
|
"model-value": K(),
|
|
614
|
-
options:
|
|
615
|
-
label:
|
|
587
|
+
options: s(me),
|
|
588
|
+
label: s(E).paragraphEditor.lineHeight,
|
|
616
589
|
placeholder: "LH",
|
|
617
590
|
"width-class": "tpl:w-16",
|
|
618
591
|
"onUpdate:modelValue": q
|
|
@@ -621,10 +594,10 @@ var De = ["data-tpl-theme", "aria-label"], Oe = { class: "tpl:flex tpl:items-cen
|
|
|
621
594
|
"options",
|
|
622
595
|
"label"
|
|
623
596
|
]),
|
|
624
|
-
|
|
597
|
+
u($, {
|
|
625
598
|
"model-value": L("letterSpacing"),
|
|
626
|
-
options:
|
|
627
|
-
label:
|
|
599
|
+
options: s(pe),
|
|
600
|
+
label: s(E).paragraphEditor.letterSpacing,
|
|
628
601
|
placeholder: "LS",
|
|
629
602
|
"width-class": "tpl:w-20",
|
|
630
603
|
"onUpdate:modelValue": Y
|
|
@@ -633,40 +606,40 @@ var De = ["data-tpl-theme", "aria-label"], Oe = { class: "tpl:flex tpl:items-cen
|
|
|
633
606
|
"options",
|
|
634
607
|
"label"
|
|
635
608
|
]),
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
icon:
|
|
639
|
-
label:
|
|
640
|
-
onClick:
|
|
609
|
+
u(Q),
|
|
610
|
+
u(J, {
|
|
611
|
+
icon: s(ge),
|
|
612
|
+
label: s(E).paragraphEditor.clearFormatting,
|
|
613
|
+
onClick: i[13] ||= (e) => n.editor.chain().focus().clearNodes().unsetAllMarks().run()
|
|
641
614
|
}, null, 8, ["icon", "label"]),
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
615
|
+
u(Q),
|
|
616
|
+
u(Se, { onInsert: I }),
|
|
617
|
+
n.canRequestMergeTag ? (e(), l(g, { key: 0 }, [u(Q), c("button", {
|
|
645
618
|
type: "button",
|
|
646
619
|
class: "tpl:flex tpl:h-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
647
|
-
"aria-label":
|
|
648
|
-
title:
|
|
649
|
-
onClick:
|
|
650
|
-
}, [
|
|
620
|
+
"aria-label": s(E).mergeTag.insert,
|
|
621
|
+
title: s(E).mergeTag.insert,
|
|
622
|
+
onClick: i[14] ||= (e) => o("add-merge-tag")
|
|
623
|
+
}, [u(s(re), {
|
|
651
624
|
size: 16,
|
|
652
625
|
"stroke-width": 2
|
|
653
|
-
}),
|
|
654
|
-
|
|
626
|
+
}), d(" " + p(s(E).mergeTag.insertShort), 1)], 8, Ae)], 64)) : v("", !0),
|
|
627
|
+
n.canInsertLogicTag ? (e(), l(g, { key: 1 }, [u(Q), c("button", {
|
|
655
628
|
type: "button",
|
|
656
629
|
class: "tpl:flex tpl:h-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
657
|
-
"aria-label":
|
|
658
|
-
title:
|
|
630
|
+
"aria-label": s(E).logicTag.insert,
|
|
631
|
+
title: s(E).logicTag.insert,
|
|
659
632
|
"data-testid": "insert-logic-button",
|
|
660
|
-
onClick:
|
|
661
|
-
}, [
|
|
633
|
+
onClick: i[15] ||= (e) => o("add-logic-tag")
|
|
634
|
+
}, [u(s(ie), {
|
|
662
635
|
size: 16,
|
|
663
636
|
"stroke-width": 2
|
|
664
|
-
}),
|
|
665
|
-
])], 64)) : (
|
|
637
|
+
}), d(" " + p(s(E).logicTag.insertShort), 1)], 8, je)], 64)) : v("", !0)
|
|
638
|
+
])], 64)) : (e(), l("div", Me, [u(s(se), {
|
|
666
639
|
class: "tpl-spinner",
|
|
667
640
|
size: 14,
|
|
668
641
|
"stroke-width": 2
|
|
669
|
-
}),
|
|
642
|
+
}), d(" " + p(s(E).errors.editorLoading), 1)]))], 12, De)], 8, ["to"])) : v("", !0);
|
|
670
643
|
}
|
|
671
644
|
}), Pe = { class: "tpl-text-editor-wrapper tpl:relative" }, Fe = /* @__PURE__ */ y({
|
|
672
645
|
__name: "ParagraphEditor",
|
|
@@ -675,15 +648,15 @@ var De = ["data-tpl-theme", "aria-label"], Oe = { class: "tpl:flex tpl:items-cen
|
|
|
675
648
|
toolbarPosition: {}
|
|
676
649
|
},
|
|
677
650
|
emits: ["done"],
|
|
678
|
-
setup(
|
|
679
|
-
let
|
|
680
|
-
blockId: () =>
|
|
681
|
-
blockContent: () =>
|
|
682
|
-
onDone: () =>
|
|
651
|
+
setup(t, { emit: n }) {
|
|
652
|
+
let i = t, o = n, c = F(), d = a(j, null), f = S(d?.content?.value?.settings ?? { locale: "en" }) === "rtl" ? "right" : "left", { editor: p, EditorContent: m, isLoading: h, initError: g, retry: _, showLinkDialog: v, linkUrl: y, linkColor: b, linkDialogRef: x, canRequestMergeTag: w, canInsertLogicTag: T, openLinkDialog: D, insertLink: O, removeLink: k, closeLinkDialog: A, handleLinkKeydown: M, handleAddMergeTag: N, handleAddLogicTag: ee } = E({
|
|
653
|
+
blockId: () => i.block.id,
|
|
654
|
+
blockContent: () => i.block.content,
|
|
655
|
+
onDone: () => o("done"),
|
|
683
656
|
editorName: "ParagraphEditor",
|
|
684
657
|
async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
|
|
685
|
-
let [{ Editor: a, EditorContent:
|
|
686
|
-
import("./dist-
|
|
658
|
+
let [{ Editor: a, EditorContent: o }, { default: s }, { default: l }, { default: u }, { default: d }, { default: p }, { default: m }, { TextStyle: h }, { default: g }, { default: _ }, { default: v }, { MergeTagNode: y, MergeTagSuggestion: b, LogicMergeTagNode: x, FontSize: S, LineHeight: w, LetterSpacing: T, LineBoundaryKeys: E }] = await Promise.all([
|
|
659
|
+
import("./dist-BVqAYoRB.js").then((e) => e.r),
|
|
687
660
|
import("./dist-DkcA6epL.js"),
|
|
688
661
|
import("./dist-C1tsW_99.js"),
|
|
689
662
|
import("./dist-DC-3T0ED.js"),
|
|
@@ -694,13 +667,13 @@ var De = ["data-tpl-theme", "aria-label"], Oe = { class: "tpl:flex tpl:items-cen
|
|
|
694
667
|
import("./dist-D08oVYhr.js"),
|
|
695
668
|
import("./dist-DzdeVn-W.js"),
|
|
696
669
|
import("./dist-f7HXo6j6.js"),
|
|
697
|
-
import("./extensions-
|
|
670
|
+
import("./extensions-CHOBZRab.js")
|
|
698
671
|
]);
|
|
699
672
|
return {
|
|
700
673
|
TiptapEditor: a,
|
|
701
|
-
EC:
|
|
674
|
+
EC: o,
|
|
702
675
|
extensions: [
|
|
703
|
-
|
|
676
|
+
s.configure({
|
|
704
677
|
heading: !1,
|
|
705
678
|
codeBlock: !1,
|
|
706
679
|
blockquote: !1,
|
|
@@ -708,8 +681,8 @@ var De = ["data-tpl-theme", "aria-label"], Oe = { class: "tpl:flex tpl:items-cen
|
|
|
708
681
|
link: !1,
|
|
709
682
|
underline: !1
|
|
710
683
|
}),
|
|
684
|
+
u,
|
|
711
685
|
d,
|
|
712
|
-
f,
|
|
713
686
|
p,
|
|
714
687
|
C(l).configure({
|
|
715
688
|
openOnClick: !1,
|
|
@@ -720,7 +693,7 @@ var De = ["data-tpl-theme", "aria-label"], Oe = { class: "tpl:flex tpl:items-cen
|
|
|
720
693
|
}),
|
|
721
694
|
m.configure({
|
|
722
695
|
types: ["paragraph"],
|
|
723
|
-
defaultAlignment:
|
|
696
|
+
defaultAlignment: f
|
|
724
697
|
}),
|
|
725
698
|
h,
|
|
726
699
|
g,
|
|
@@ -739,22 +712,22 @@ var De = ["data-tpl-theme", "aria-label"], Oe = { class: "tpl:flex tpl:items-cen
|
|
|
739
712
|
mergeTags: e,
|
|
740
713
|
char: n,
|
|
741
714
|
emptyText: i,
|
|
742
|
-
popoverRoot:
|
|
715
|
+
popoverRoot: c
|
|
743
716
|
})] : []
|
|
744
717
|
]
|
|
745
718
|
};
|
|
746
719
|
}
|
|
747
720
|
});
|
|
748
|
-
return (n,
|
|
749
|
-
|
|
750
|
-
editor:
|
|
751
|
-
"toolbar-position":
|
|
752
|
-
"is-loading":
|
|
753
|
-
"can-request-merge-tag":
|
|
754
|
-
"can-insert-logic-tag":
|
|
755
|
-
onOpenLinkDialog:
|
|
756
|
-
onAddMergeTag:
|
|
757
|
-
onAddLogicTag:
|
|
721
|
+
return (n, i) => (e(), l("div", Pe, [
|
|
722
|
+
u(Ne, {
|
|
723
|
+
editor: s(p),
|
|
724
|
+
"toolbar-position": t.toolbarPosition,
|
|
725
|
+
"is-loading": s(h),
|
|
726
|
+
"can-request-merge-tag": s(w),
|
|
727
|
+
"can-insert-logic-tag": s(T),
|
|
728
|
+
onOpenLinkDialog: s(D),
|
|
729
|
+
onAddMergeTag: s(N),
|
|
730
|
+
onAddLogicTag: s(ee)
|
|
758
731
|
}, null, 8, [
|
|
759
732
|
"editor",
|
|
760
733
|
"toolbar-position",
|
|
@@ -765,12 +738,12 @@ var De = ["data-tpl-theme", "aria-label"], Oe = { class: "tpl:flex tpl:items-cen
|
|
|
765
738
|
"onAddMergeTag",
|
|
766
739
|
"onAddLogicTag"
|
|
767
740
|
]),
|
|
768
|
-
|
|
769
|
-
editor:
|
|
770
|
-
"editor-content":
|
|
771
|
-
"is-loading":
|
|
772
|
-
"init-error": g
|
|
773
|
-
onRetry:
|
|
741
|
+
u(R, {
|
|
742
|
+
editor: s(p),
|
|
743
|
+
"editor-content": s(m),
|
|
744
|
+
"is-loading": s(h),
|
|
745
|
+
"init-error": s(g),
|
|
746
|
+
onRetry: s(_)
|
|
774
747
|
}, null, 8, [
|
|
775
748
|
"editor",
|
|
776
749
|
"editor-content",
|
|
@@ -778,19 +751,19 @@ var De = ["data-tpl-theme", "aria-label"], Oe = { class: "tpl:flex tpl:items-cen
|
|
|
778
751
|
"init-error",
|
|
779
752
|
"onRetry"
|
|
780
753
|
]),
|
|
781
|
-
|
|
782
|
-
visible:
|
|
783
|
-
"is-editing-link":
|
|
784
|
-
"dialog-ref":
|
|
785
|
-
"onUpdate:dialogRef":
|
|
786
|
-
"link-url":
|
|
787
|
-
"onUpdate:linkUrl":
|
|
788
|
-
"link-color":
|
|
789
|
-
"onUpdate:linkColor":
|
|
790
|
-
onClose:
|
|
791
|
-
onInsert:
|
|
792
|
-
onRemove:
|
|
793
|
-
onKeydown:
|
|
754
|
+
u(L, {
|
|
755
|
+
visible: s(v),
|
|
756
|
+
"is-editing-link": s(p)?.isActive("link") ?? !1,
|
|
757
|
+
"dialog-ref": s(x),
|
|
758
|
+
"onUpdate:dialogRef": i[0] ||= (e) => r(x) ? x.value = e : null,
|
|
759
|
+
"link-url": s(y),
|
|
760
|
+
"onUpdate:linkUrl": i[1] ||= (e) => r(y) ? y.value = e : null,
|
|
761
|
+
"link-color": s(b),
|
|
762
|
+
"onUpdate:linkColor": i[2] ||= (e) => r(b) ? b.value = e : null,
|
|
763
|
+
onClose: s(A),
|
|
764
|
+
onInsert: s(O),
|
|
765
|
+
onRemove: s(k),
|
|
766
|
+
onKeydown: s(M)
|
|
794
767
|
}, null, 8, [
|
|
795
768
|
"visible",
|
|
796
769
|
"is-editing-link",
|