@templatical/editor 0.34.2 → 0.35.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-CkHJ28sf.js → AiChatSidebar-DPHbCGu4.js} +29 -21
- package/dist/{AiFeatureMenu-DWdKguDN.js → AiFeatureMenu--8z7qvg1.js} +4 -4
- package/dist/{BlockIssueBadge-DcyHTAqw.js → BlockIssueBadge-BGCsJqqM.js} +2 -2
- package/dist/BlockPreviewCanvas-DKspIy8V.js +131 -0
- package/dist/{CloudHeaderExtras-BJ3Cebhv.js → CloudHeaderExtras-CRUQvgSV.js} +2 -2
- package/dist/{CloudPanels-BGz9ygo6.js → CloudPanels-Bp5gFtaL.js} +3 -3
- package/dist/{CollaboratorBar-KphmSQeZ.js → CollaboratorBar-DvwZm5u7.js} +57 -49
- package/dist/{ColorPicker-C6EOwtHC.js → ColorPicker-DtozuN75.js} +1 -1
- package/dist/{CommentsPanel-DmWh8f08.js → CommentsPanel-3C-DsEjy.js} +1 -1
- package/dist/{CommentsSidebar-CL_tffzT.js → CommentsSidebar-go1FnjDW.js} +34 -25
- package/dist/{CountdownToolbar-B8J4i5Xp.js → CountdownToolbar-SLBuij7Q.js} +1 -1
- package/dist/{DesignReferenceSidebar-BDhEeaAh.js → DesignReferenceSidebar-rcE_BvUd.js} +55 -47
- package/dist/{IssuesPanel-CiOjeRFI.js → IssuesPanel-Cig46N1i.js} +23 -15
- package/dist/{MergeTagInput-RytOlh1A.js → MergeTagInput-D1hzsn2b.js} +42 -33
- package/dist/{MergeTagModeToggle-Bi-FydXj.js → MergeTagModeToggle-CH9wR5YF.js} +70 -58
- package/dist/{ParagraphEditor-C87tkmtE.js → ParagraphEditor-CT2AdMdZ.js} +365 -323
- package/dist/{RestoreVersionDialog-Db5rZRMA.js → RestoreVersionDialog-mdqgQxFR.js} +3 -3
- package/dist/{RichTextEditorContent-BmTcV2-a.js → RichTextEditorContent-riOB-rKD.js} +48 -36
- package/dist/{SaveBlockDialog-CDCzx6Bo.js → SaveBlockDialog-Cn2v4Lpj.js} +6 -6
- package/dist/{SavedBlocksBrowserModal-DQR6kJB1.js → SavedBlocksBrowserModal-BORqqASb.js} +7 -7
- package/dist/{SavedBlocksPanels-DFzV0CRD.js → SavedBlocksPanels-ffBnWuVU.js} +1 -1
- package/dist/{SavedBlocksPickBar-XyXmnSnO.js → SavedBlocksPickBar-BmQC2tWN.js} +2 -2
- package/dist/{TemplateScoringPanel-CpyEKMzC.js → TemplateScoringPanel-CxAtdreR.js} +36 -27
- package/dist/{TestEmailModal-DIfJy9eE.js → TestEmailModal-Cjn1padY.js} +7 -7
- package/dist/{TestEmailPanel-C8Wx5yPS.js → TestEmailPanel-Bf3XZ1jn.js} +1 -1
- package/dist/{TitleEditor-iNFOisr4.js → TitleEditor-pYEUX6lR.js} +5 -5
- package/dist/{TplModal-CowM3o_F.js → TplModal-DRx4ytx8.js} +1 -1
- package/dist/{VersionHistoryMenu-CV90OhXs.js → VersionHistoryMenu-CrNrGsaa.js} +21 -13
- package/dist/{VersionHistoryPanels-BE3pplJG.js → VersionHistoryPanels-CsuQk6W3.js} +1 -1
- package/dist/{VersionPreviewBanner-BwUWBtlH.js → VersionPreviewBanner-BqbO0Zss.js} +1 -1
- package/dist/blockTypeIcons-D_4HdaY9.js +175 -0
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-C0hfqt4U.js → ca-D9S-UCfZ.js} +2 -0
- package/dist/cdn/chunks/{AiChatSidebar-BEnIWn6s.js → AiChatSidebar-D0f74_nS.js} +3 -3
- package/dist/cdn/chunks/{AiChatSidebar-BEnIWn6s.js.map → AiChatSidebar-D0f74_nS.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-DMl23akc.js → AiFeatureMenu-DwGb3eF9.js} +3 -3
- package/dist/cdn/chunks/{AiFeatureMenu-DMl23akc.js.map → AiFeatureMenu-DwGb3eF9.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-CloK4k3M.js → BlockIssueBadge-CosQgeJ-.js} +2 -2
- package/dist/cdn/chunks/{BlockIssueBadge-CloK4k3M.js.map → BlockIssueBadge-CosQgeJ-.js.map} +1 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-CIpZ2a6g.js +133 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-CIpZ2a6g.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-b4KpVeUN.js → CloudHeaderExtras-CQzQwKFB.js} +3 -3
- package/dist/cdn/chunks/{CloudHeaderExtras-b4KpVeUN.js.map → CloudHeaderExtras-CQzQwKFB.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-DzwOq9lp.js → CloudPanels-BmexuLOU.js} +4 -4
- package/dist/cdn/chunks/{CloudPanels-DzwOq9lp.js.map → CloudPanels-BmexuLOU.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-WXKvpoGK.js → CollaboratorBar-DEICobpp.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-WXKvpoGK.js.map → CollaboratorBar-DEICobpp.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-BubTDiS1.js → ColorPicker-C7yC58FK.js} +2 -2
- package/dist/cdn/chunks/{ColorPicker-BubTDiS1.js.map → ColorPicker-C7yC58FK.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-DAA2VqX4.js → CommentsPanel-OjmKxLL7.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-DAA2VqX4.js.map → CommentsPanel-OjmKxLL7.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-Ci0M2ePp.js → CommentsSidebar-C4pWZGpy.js} +2 -2
- package/dist/cdn/chunks/{CommentsSidebar-Ci0M2ePp.js.map → CommentsSidebar-C4pWZGpy.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CzZq26Vp.js → CountdownToolbar-wlJOxyAl.js} +2 -2
- package/dist/cdn/chunks/{CountdownToolbar-CzZq26Vp.js.map → CountdownToolbar-wlJOxyAl.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-C_ehdX5C.js → DesignReferenceSidebar-DELhnh8h.js} +3 -3
- package/dist/cdn/chunks/{DesignReferenceSidebar-C_ehdX5C.js.map → DesignReferenceSidebar-DELhnh8h.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BXAN2_al.js → IssuesPanel-C9i3o8aE.js} +2 -2
- package/dist/cdn/chunks/{IssuesPanel-BXAN2_al.js.map → IssuesPanel-C9i3o8aE.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-1vcI9uQH.js → MergeTagInput-D76Kyvgu.js} +5 -5
- package/dist/cdn/chunks/{MergeTagInput-1vcI9uQH.js.map → MergeTagInput-D76Kyvgu.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-B_mUYJo4.js → MergeTagModeToggle-Dz3gxN2y.js} +3 -3
- package/dist/cdn/chunks/{MergeTagModeToggle-B_mUYJo4.js.map → MergeTagModeToggle-Dz3gxN2y.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DCDHMcmx.js → ParagraphEditor-DQn0HMfV.js} +176 -172
- package/dist/cdn/chunks/{ParagraphEditor-DCDHMcmx.js.map → ParagraphEditor-DQn0HMfV.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-BkSSwf-Q.js → RestoreVersionDialog-BdjOL8Oy.js} +3 -3
- package/dist/cdn/chunks/{RestoreVersionDialog-BkSSwf-Q.js.map → RestoreVersionDialog-BdjOL8Oy.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-S4KogjIj.js → RichTextEditorContent-Drzwgh0J.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-S4KogjIj.js.map → RichTextEditorContent-Drzwgh0J.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-BH774Nt0.js → SaveBlockDialog-B3rbmXSM.js} +5 -5
- package/dist/cdn/chunks/{SaveBlockDialog-BH774Nt0.js.map → SaveBlockDialog-B3rbmXSM.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CSUqw_dD.js → SavedBlocksBrowserModal-CkUXlnd2.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CSUqw_dD.js.map → SavedBlocksBrowserModal-CkUXlnd2.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-B6ApbCjG.js → SavedBlocksPanels-BPi3PZKP.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-B6ApbCjG.js.map → SavedBlocksPanels-BPi3PZKP.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-C9MXSRcR.js → SavedBlocksPickBar-BvB9A5W2.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPickBar-C9MXSRcR.js.map → SavedBlocksPickBar-BvB9A5W2.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-QVOxc9TZ.js → TemplateScoringPanel-BBCyLnOi.js} +2 -2
- package/dist/cdn/chunks/{TemplateScoringPanel-QVOxc9TZ.js.map → TemplateScoringPanel-BBCyLnOi.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-_CZvaO58.js → TestEmailModal-DAGTsBqi.js} +7 -7
- package/dist/cdn/chunks/{TestEmailModal-_CZvaO58.js.map → TestEmailModal-DAGTsBqi.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-DXLxvyrD.js → TestEmailPanel-BfenVvfx.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-DXLxvyrD.js.map → TestEmailPanel-BfenVvfx.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BuCOahW3.js → TitleEditor-oQ4gr6wS.js} +5 -5
- package/dist/cdn/chunks/{TitleEditor-BuCOahW3.js.map → TitleEditor-oQ4gr6wS.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-CqY8R3hn.js → TplModal-DxOMcVwp.js} +2 -2
- package/dist/cdn/chunks/{TplModal-CqY8R3hn.js.map → TplModal-DxOMcVwp.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-DDjIBvad.js → VersionHistoryMenu-BfVUvWHT.js} +4 -4
- package/dist/cdn/chunks/{VersionHistoryMenu-DDjIBvad.js.map → VersionHistoryMenu-BfVUvWHT.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-BuTw04T5.js → VersionHistoryPanels-NpDb641L.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-BuTw04T5.js.map → VersionHistoryPanels-NpDb641L.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-fGAv20qI.js → VersionPreviewBanner-Cpgt4xHc.js} +2 -2
- package/dist/cdn/chunks/{VersionPreviewBanner-fGAv20qI.js.map → VersionPreviewBanner-Cpgt4xHc.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-ZEzEpCti.js → blockTypeIcons-t9vvaiuH.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-ZEzEpCti.js.map → blockTypeIcons-t9vvaiuH.js.map} +1 -1
- package/dist/cdn/chunks/{ca-C0hfqt4U.js → ca-D9S-UCfZ.js} +3 -1
- package/dist/cdn/chunks/{ca-C0hfqt4U.js.map → ca-D9S-UCfZ.js.map} +1 -1
- package/dist/cdn/chunks/{cloud-BP5-6__d.js → cloud-CullB76F.js} +2 -2
- package/dist/cdn/chunks/{cloud-BP5-6__d.js.map → cloud-CullB76F.js.map} +1 -1
- package/dist/cdn/chunks/{createCloudRuntime-JFE-sxbT.js → createCloudRuntime-Cx2JpUYU.js} +4 -4
- package/dist/cdn/chunks/{createCloudRuntime-JFE-sxbT.js.map → createCloudRuntime-Cx2JpUYU.js.map} +1 -1
- package/dist/{de-C6J2Iae8.js → cdn/chunks/de-BUPszLpi.js} +4 -0
- package/dist/cdn/chunks/{de-C6J2Iae8.js.map → de-BUPszLpi.js.map} +1 -1
- package/dist/cdn/chunks/{en-BaUYOQi8.js → en-BbOC5x3w.js} +3 -1
- package/dist/cdn/chunks/en-BbOC5x3w.js.map +1 -0
- package/dist/cdn/chunks/en-rGHphLWo.js +2 -0
- package/dist/cdn/chunks/{es-CKDYfJYn.js → es-0bCDcT9p.js} +3 -1
- package/dist/cdn/chunks/{es-CKDYfJYn.js.map → es-0bCDcT9p.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-7z04EIGg.js → extensions-BpXY7jO5.js} +3 -3
- package/dist/cdn/chunks/{extensions-7z04EIGg.js.map → extensions-BpXY7jO5.js.map} +1 -1
- package/dist/{fr-L8DR73mK.js → cdn/chunks/fr-Brr8mJ9e.js} +4 -0
- package/dist/cdn/chunks/fr-Brr8mJ9e.js.map +1 -0
- package/dist/cdn/chunks/icons-BLxcQUck.js +1675 -0
- package/dist/cdn/chunks/icons-BLxcQUck.js.map +1 -0
- package/dist/cdn/chunks/{nl-GDWeuX18.js → nl-Co3_RL0M.js} +3 -1
- package/dist/cdn/chunks/nl-Co3_RL0M.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-LFB-e-0m.js → preRenderCustomBlocks-Bdpiiw4A.js} +2 -2
- package/dist/cdn/chunks/{preRenderCustomBlocks-LFB-e-0m.js.map → preRenderCustomBlocks-Bdpiiw4A.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-B1AVVhWj.js → pt-BR-BECez5b0.js} +3 -1
- package/dist/cdn/chunks/{pt-BR-B1AVVhWj.js.map → pt-BR-BECez5b0.js.map} +1 -1
- package/dist/cdn/chunks/{src-CX_VHu8r.js → src-BC-eolWY.js} +161 -160
- package/dist/cdn/chunks/src-BC-eolWY.js.map +1 -0
- package/dist/cdn/chunks/{src-BM3f9I7t.js → src-CUvZWL6Y.js} +83 -83
- package/dist/cdn/chunks/src-CUvZWL6Y.js.map +1 -0
- package/dist/cdn/chunks/{src-Cxl-9O-L.js → src-CaXeO-gG.js} +17 -17
- package/dist/cdn/chunks/{src-Cxl-9O-L.js.map → src-CaXeO-gG.js.map} +1 -1
- package/dist/cdn/chunks/{src-CLoCCDfs.js → src-Dwgq7hf4.js} +71 -48
- package/dist/cdn/chunks/src-Dwgq7hf4.js.map +1 -0
- package/dist/cdn/chunks/{useEditorCore-ehUSEsbw.js → useEditorCore-D4MytYB9.js} +495 -485
- package/dist/cdn/chunks/useEditorCore-D4MytYB9.js.map +1 -0
- package/dist/cdn/chunks/{useMergeTag-TLhF2fGK.js → useMergeTag-CSocWpxV.js} +2 -2
- package/dist/cdn/chunks/{useMergeTag-TLhF2fGK.js.map → useMergeTag-CSocWpxV.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +920 -907
- package/dist/cdn/editor.js.map +1 -1
- package/dist/check-CY-Ec6FV.js +11 -0
- package/dist/chevron-down-BghbWA9p.js +11 -0
- package/dist/chevron-up-n3qFAPS3.js +11 -0
- package/dist/circle-alert-L5uGGFRP.js +30 -0
- package/dist/clock-Dgnwp18n.js +16 -0
- package/dist/{cloud-BMzRKCbk.js → cloud-B1c4XIsn.js} +1 -1
- package/dist/{createCloudRuntime-DbTFm1ES.js → createCloudRuntime-PevFSH74.js} +2 -2
- package/dist/createLucideIcon-05lB8iWe.js +96 -0
- package/dist/{cdn/chunks/de-C6J2Iae8.js → de-BUPszLpi.js} +2 -2
- package/dist/{dist-PL6vP4SC.js → dist-tGkjkX-v.js} +143 -122
- package/dist/{en-BaUYOQi8.js → en-BbOC5x3w.js} +2 -0
- package/dist/{es-CKDYfJYn.js → es-0bCDcT9p.js} +2 -0
- package/dist/{extensions-Mf8iHey9.js → extensions-Bawm4BOM.js} +2 -2
- package/dist/{cdn/chunks/fr-L8DR73mK.js → fr-Brr8mJ9e.js} +2 -2
- package/dist/image-up-ovhjl9u9.js +27 -0
- package/dist/info-c3KI927I.js +23 -0
- package/dist/loader-circle-B2Y8xZQb.js +12 -0
- package/dist/message-circle-B7K-naUa.js +11 -0
- package/dist/{nl-GDWeuX18.js → nl-Co3_RL0M.js} +2 -0
- package/dist/pencil-BhWTFcp4.js +14 -0
- package/dist/{preRenderCustomBlocks-CSIF-HyJ.js → preRenderCustomBlocks-DFXH54Zr.js} +1 -1
- package/dist/{pt-BR-B1AVVhWj.js → pt-BR-BECez5b0.js} +2 -0
- package/dist/refresh-cw-BqUR5vgO.js +37 -0
- package/dist/send-D1vvuW79.js +14 -0
- package/dist/shield-check-DjK54PnW.js +14 -0
- package/dist/sparkles-DNdS9V_3.js +28 -0
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +1238 -1167
- package/dist/text-align-start-Bcmo_VUY.js +58 -0
- package/dist/trash-C9bMXvw4.js +30 -0
- package/dist/triangle-alert-Bn8Bd2Yv.js +22 -0
- package/dist/upload-DKgg1gno.js +21 -0
- package/dist/{useEditorCore-DdkQuTHl.js → useEditorCore-CYGvurZa.js} +1089 -1026
- package/dist/{useMergeTag-gSuYus-M.js → useMergeTag-C9GEpljB.js} +1 -1
- package/dist/{useScrollToBlock-CdI8fGqt.js → useScrollToBlock-oUx1HIZ2.js} +27 -23
- package/dist/x-BPKoRPTG.js +14 -0
- package/package.json +9 -9
- package/dist/BlockPreviewCanvas-B621ANn9.js +0 -129
- package/dist/blockTypeIcons-DQsKtHik.js +0 -134
- package/dist/cdn/chunks/BlockPreviewCanvas-DSiJFJa0.js +0 -131
- package/dist/cdn/chunks/BlockPreviewCanvas-DSiJFJa0.js.map +0 -1
- package/dist/cdn/chunks/en-BaUYOQi8.js.map +0 -1
- package/dist/cdn/chunks/en-mEKGL1PX.js +0 -2
- package/dist/cdn/chunks/fr-L8DR73mK.js.map +0 -1
- package/dist/cdn/chunks/icons-SP5Itd-A.js +0 -1218
- package/dist/cdn/chunks/icons-SP5Itd-A.js.map +0 -1
- package/dist/cdn/chunks/nl-GDWeuX18.js.map +0 -1
- package/dist/cdn/chunks/src-BM3f9I7t.js.map +0 -1
- package/dist/cdn/chunks/src-CLoCCDfs.js.map +0 -1
- package/dist/cdn/chunks/src-CX_VHu8r.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-ehUSEsbw.js.map +0 -1
- package/dist/check-JK8Uacq0.js +0 -7
- package/dist/chevron-down-a-fb_Ijn.js +0 -7
- package/dist/chevron-up-x4l0et_Y.js +0 -7
- package/dist/circle-alert-CJDW5LZo.js +0 -25
- package/dist/clock-BW6rXk2f.js +0 -12
- package/dist/createLucideIcon-Bvw1Zx56.js +0 -43
- package/dist/image-up-CuzFc1mu.js +0 -23
- package/dist/info-DybAwcA3.js +0 -19
- package/dist/loader-circle-t-SVgmJ3.js +0 -7
- package/dist/message-circle-DtwKrlhN.js +0 -7
- package/dist/pencil-2qhC-Y4q.js +0 -10
- package/dist/refresh-cw-C8SBuPdg.js +0 -29
- package/dist/send-BoqJliF6.js +0 -10
- package/dist/shield-check-D0dMaHtE.js +0 -10
- package/dist/sparkles-Dy2BJjiX.js +0 -23
- package/dist/text-align-start-DrxjxvIy.js +0 -43
- package/dist/trash-rYMzzHZd.js +0 -25
- package/dist/triangle-alert-DxnFj4-B.js +0 -17
- package/dist/upload-DZu1adQz.js +0 -17
- package/dist/x-DJOd1hS4.js +0 -10
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { E as e, F as t, N as n, Q as r, R as i, S as a, at as o, b as s, c, ct as l, d as u, f as d, g as f, h as p, l as m, lt as h, m as g, p as _, q as v, u as y, ut as b, y as x } from "./draggable-kbOhCgnk.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
2
|
+
import { R as S } from "./src-Dwgq7hf4.js";
|
|
3
|
+
import { E as C, S as w, T, x as E } from "./useEditorCore-D4MytYB9.js";
|
|
4
|
+
import { t as D } from "./dist-CAFTQ6Y2.js";
|
|
5
|
+
import { J as O, K as k, O as A, U as ee, _ as j, h as M, w as N } from "./keys-DQp8x7Nx.js";
|
|
6
|
+
import { t as P } from "./useI18n-Ct1VIFcf.js";
|
|
7
|
+
import { n as F } from "./usePopoverPosition-BxVWE5_0.js";
|
|
8
|
+
import { Ct as I, P as te, R as ne, Rt as re, S as ie, Vt as ae, _ as oe, at as se, ct as ce, g as le, h as ue, it as de, l as fe, ot as pe, p as me, ut as he, x as ge, y as _e } from "./icons-BLxcQUck.js";
|
|
9
|
+
import { t as L } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
10
|
+
import { a as ve, n as ye, o as be, s as xe } from "./styleConstants-C_YAPdQS.js";
|
|
11
|
+
import { t as R } from "./ColorPicker-C7yC58FK.js";
|
|
12
|
+
import { n as z, t as B } from "./RichTextEditorContent-Drzwgh0J.js";
|
|
12
13
|
//#region src/components/blocks/EmojiPickerDropdown.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
-
var
|
|
14
|
+
var V = [
|
|
14
15
|
"aria-label",
|
|
15
16
|
"title",
|
|
16
17
|
"aria-expanded"
|
|
17
|
-
],
|
|
18
|
+
], H = ["aria-label"], U = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, W = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, G = ["aria-label", "onClick"], Se = /* @__PURE__ */ a({
|
|
18
19
|
__name: "EmojiPickerDropdown",
|
|
19
20
|
emits: ["insert"],
|
|
20
21
|
setup(e, { emit: i }) {
|
|
21
|
-
let a = i, { categories: u, isOpen: h, toggle: g, close: v } =
|
|
22
|
-
|
|
22
|
+
let a = i, { categories: u, isOpen: h, toggle: g, close: v } = T(), { t: x, format: S } = P(), w = r(null), E = r(null), O = d(() => h.value);
|
|
23
|
+
C(w, O), D(E, () => {
|
|
23
24
|
h.value && v();
|
|
24
25
|
});
|
|
25
26
|
function k(e) {
|
|
@@ -27,7 +28,7 @@ var R = [
|
|
|
27
28
|
}
|
|
28
29
|
return (e, r) => (n(), f("div", {
|
|
29
30
|
ref_key: "rootRef",
|
|
30
|
-
ref:
|
|
31
|
+
ref: E,
|
|
31
32
|
class: "tpl:relative"
|
|
32
33
|
}, [_("button", {
|
|
33
34
|
type: "button",
|
|
@@ -38,14 +39,14 @@ var R = [
|
|
|
38
39
|
"aria-haspopup": "dialog",
|
|
39
40
|
"aria-controls": "tpl-emoji-picker",
|
|
40
41
|
onClick: r[0] ||= (...e) => o(g) && o(g)(...e)
|
|
41
|
-
}, [s(o(
|
|
42
|
+
}, [s(o(I), {
|
|
42
43
|
size: 16,
|
|
43
44
|
"stroke-width": 2
|
|
44
|
-
})], 10,
|
|
45
|
+
})], 10, V), o(h) ? (n(), f("div", {
|
|
45
46
|
key: 0,
|
|
46
47
|
id: "tpl-emoji-picker",
|
|
47
48
|
ref_key: "pickerRef",
|
|
48
|
-
ref:
|
|
49
|
+
ref: w,
|
|
49
50
|
role: "dialog",
|
|
50
51
|
"aria-modal": "false",
|
|
51
52
|
"aria-label": o(x).paragraphEditor.insertEmoji,
|
|
@@ -55,19 +56,19 @@ var R = [
|
|
|
55
56
|
}, [(n(!0), f(y, null, t(o(u), (e) => (n(), f("div", {
|
|
56
57
|
key: e.key,
|
|
57
58
|
class: "tpl:mb-2 tpl:last:mb-0"
|
|
58
|
-
}, [_("div",
|
|
59
|
+
}, [_("div", U, b(o(x).emoji[e.key]), 1), _("div", W, [(n(!0), f(y, null, t(e.emojis, (e) => (n(), f("button", {
|
|
59
60
|
key: e,
|
|
60
61
|
type: "button",
|
|
61
|
-
"aria-label": o(
|
|
62
|
+
"aria-label": o(S)(o(x).paragraphEditor.emojiItemLabel, { emoji: e }),
|
|
62
63
|
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)]",
|
|
63
64
|
onClick: (t) => k(e)
|
|
64
|
-
}, b(e), 9,
|
|
65
|
+
}, b(e), 9, G))), 128))])]))), 128))], 40, H)) : p("", !0)], 512));
|
|
65
66
|
}
|
|
66
|
-
}),
|
|
67
|
+
}), K = [
|
|
67
68
|
"aria-label",
|
|
68
69
|
"title",
|
|
69
70
|
"aria-pressed"
|
|
70
|
-
],
|
|
71
|
+
], q = /* @__PURE__ */ a({
|
|
71
72
|
__name: "ToolbarIconButton",
|
|
72
73
|
props: {
|
|
73
74
|
icon: {},
|
|
@@ -86,20 +87,20 @@ var R = [
|
|
|
86
87
|
}, [(n(), g(i(e.icon), {
|
|
87
88
|
size: e.size ?? 16,
|
|
88
89
|
"stroke-width": e.strokeWidth ?? 2
|
|
89
|
-
}, null, 8, ["size", "stroke-width"]))], 10,
|
|
90
|
+
}, null, 8, ["size", "stroke-width"]))], 10, K));
|
|
90
91
|
}
|
|
91
|
-
}),
|
|
92
|
+
}), J = {}, Y = {
|
|
92
93
|
class: "tpl:mx-1 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
|
|
93
94
|
"aria-hidden": "true"
|
|
94
95
|
};
|
|
95
|
-
function
|
|
96
|
-
return n(), f("span",
|
|
96
|
+
function X(e, t) {
|
|
97
|
+
return n(), f("span", Y);
|
|
97
98
|
}
|
|
98
|
-
var
|
|
99
|
+
var Z = /*#__PURE__*/ L(J, [["render", X]]), Q = [
|
|
99
100
|
"value",
|
|
100
101
|
"aria-label",
|
|
101
102
|
"title"
|
|
102
|
-
],
|
|
103
|
+
], Ce = { value: "" }, we = ["value"], $ = /* @__PURE__ */ a({
|
|
103
104
|
__name: "ToolbarSelect",
|
|
104
105
|
props: {
|
|
105
106
|
modelValue: {},
|
|
@@ -126,23 +127,23 @@ var J = /*#__PURE__*/ P(G, [["render", q]]), Y = [
|
|
|
126
127
|
"aria-label": e.label,
|
|
127
128
|
title: e.label,
|
|
128
129
|
onChange: a
|
|
129
|
-
}, [_("option",
|
|
130
|
+
}, [_("option", Ce, b(e.placeholder ?? ""), 1), (n(!0), f(y, null, t(e.options, (e) => (n(), f("option", {
|
|
130
131
|
key: o(e),
|
|
131
132
|
value: o(e)
|
|
132
|
-
}, b(s(e)), 9,
|
|
133
|
+
}, b(s(e)), 9, we))), 128))], 42, Q));
|
|
133
134
|
}
|
|
134
135
|
});
|
|
135
136
|
//#endregion
|
|
136
137
|
//#region src/utils/richTextColor.ts
|
|
137
|
-
function
|
|
138
|
+
function Te(e, t) {
|
|
138
139
|
return e || t || "#000000";
|
|
139
140
|
}
|
|
140
141
|
//#endregion
|
|
141
142
|
//#region src/components/blocks/ParagraphToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
142
|
-
var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Oe = { class: "tpl:flex tpl:items-center tpl:gap-1" }, ke = ["aria-label", "title"], Ae = ["aria-label", "title"],
|
|
143
|
+
var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Oe = { class: "tpl:flex tpl:items-center tpl:gap-1" }, ke = ["aria-label", "title"], Ae = ["aria-label", "title"], je = {
|
|
143
144
|
key: 1,
|
|
144
145
|
class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
145
|
-
},
|
|
146
|
+
}, Me = /* @__PURE__ */ a({
|
|
146
147
|
__name: "ParagraphToolbar",
|
|
147
148
|
props: {
|
|
148
149
|
editor: {},
|
|
@@ -157,53 +158,53 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
157
158
|
"add-logic-tag"
|
|
158
159
|
],
|
|
159
160
|
setup(t, { emit: r }) {
|
|
160
|
-
let i = t, a = r, c = e(ee, null), l = e(
|
|
161
|
-
function
|
|
161
|
+
let i = t, a = r, c = e(ee, null), l = e(k, null), m = O(j, "ParagraphToolbar"), v = F(), S = e(A, null), C = e(N, null), w = e(M, null), T = d(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: E } = P(), D = m.fonts;
|
|
162
|
+
function I(e) {
|
|
162
163
|
i.editor?.chain().focus().insertContent(e).run();
|
|
163
164
|
}
|
|
164
|
-
function
|
|
165
|
+
function L(e) {
|
|
165
166
|
return i.editor?.getAttributes("textStyle")[e] || "";
|
|
166
167
|
}
|
|
167
|
-
function
|
|
168
|
+
function z(e) {
|
|
168
169
|
let t = i.editor?.chain().focus();
|
|
169
170
|
e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
|
|
170
171
|
}
|
|
171
|
-
function
|
|
172
|
+
function B(e) {
|
|
172
173
|
let t = i.editor?.chain().focus();
|
|
173
174
|
e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
|
|
174
175
|
}
|
|
175
|
-
function
|
|
176
|
+
function V() {
|
|
176
177
|
return i.editor?.isActive("link") ?? !1;
|
|
177
178
|
}
|
|
178
|
-
function
|
|
179
|
+
function H() {
|
|
179
180
|
return i.editor?.getAttributes("link").color || "";
|
|
180
181
|
}
|
|
181
|
-
function
|
|
182
|
+
function U(e) {
|
|
182
183
|
let t = i.editor?.chain().focus();
|
|
183
|
-
t && (
|
|
184
|
+
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());
|
|
184
185
|
}
|
|
185
|
-
function
|
|
186
|
+
function W() {
|
|
186
187
|
let e = w?.content.value.settings;
|
|
187
|
-
return
|
|
188
|
-
}
|
|
189
|
-
function U() {
|
|
190
|
-
return z() ? B() : I("color");
|
|
188
|
+
return V() ? Te(H(), e?.linkColor || e?.textColor) : Te(L("color"), e?.textColor);
|
|
191
189
|
}
|
|
192
190
|
function G() {
|
|
191
|
+
return V() ? H() : L("color");
|
|
192
|
+
}
|
|
193
|
+
function K() {
|
|
193
194
|
return i.editor?.getAttributes("paragraph").lineHeight || "";
|
|
194
195
|
}
|
|
195
|
-
function
|
|
196
|
+
function J(e) {
|
|
196
197
|
let t = i.editor?.chain().focus();
|
|
197
198
|
e ? t?.setLineHeight(e).run() : t?.unsetLineHeight().run();
|
|
198
199
|
}
|
|
199
|
-
function
|
|
200
|
+
function Y(e) {
|
|
200
201
|
let t = i.editor?.chain().focus();
|
|
201
202
|
e && e !== "normal" ? t?.setLetterSpacing(e).run() : t?.unsetLetterSpacing().run();
|
|
202
203
|
}
|
|
203
|
-
function
|
|
204
|
+
function X() {
|
|
204
205
|
return i.editor?.getAttributes("highlight").color || "";
|
|
205
206
|
}
|
|
206
|
-
function
|
|
207
|
+
function Q(e) {
|
|
207
208
|
let t = i.editor?.chain().focus();
|
|
208
209
|
e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
|
|
209
210
|
}
|
|
@@ -223,62 +224,62 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
223
224
|
flexDirection: "column"
|
|
224
225
|
})
|
|
225
226
|
}, [!t.isLoading && t.editor ? (n(), f(y, { key: 0 }, [_("div", De, [
|
|
226
|
-
s(
|
|
227
|
-
"model-value":
|
|
228
|
-
options: o(
|
|
227
|
+
s($, {
|
|
228
|
+
"model-value": L("fontFamily"),
|
|
229
|
+
options: o(D),
|
|
229
230
|
label: o(E).paragraphEditor.fontFamily,
|
|
230
231
|
placeholder: o(E).paragraphEditor.defaultFont,
|
|
231
232
|
"width-class": "tpl:w-32",
|
|
232
|
-
"onUpdate:modelValue":
|
|
233
|
+
"onUpdate:modelValue": z
|
|
233
234
|
}, null, 8, [
|
|
234
235
|
"model-value",
|
|
235
236
|
"options",
|
|
236
237
|
"label",
|
|
237
238
|
"placeholder"
|
|
238
239
|
]),
|
|
239
|
-
s(
|
|
240
|
-
"model-value":
|
|
241
|
-
options: o(
|
|
240
|
+
s($, {
|
|
241
|
+
"model-value": L("fontSize"),
|
|
242
|
+
options: o(ve),
|
|
242
243
|
label: o(E).paragraphEditor.fontSize,
|
|
243
244
|
placeholder: o(E).paragraphEditor.defaultSize,
|
|
244
245
|
"width-class": "tpl:w-20",
|
|
245
|
-
"onUpdate:modelValue":
|
|
246
|
+
"onUpdate:modelValue": B
|
|
246
247
|
}, null, 8, [
|
|
247
248
|
"model-value",
|
|
248
249
|
"options",
|
|
249
250
|
"label",
|
|
250
251
|
"placeholder"
|
|
251
252
|
]),
|
|
252
|
-
s(
|
|
253
|
-
s(
|
|
253
|
+
s(Z),
|
|
254
|
+
s(R, {
|
|
254
255
|
"swatch-only": "",
|
|
255
256
|
size: "sm",
|
|
256
257
|
"data-testid": "text-color-picker",
|
|
257
|
-
"model-value":
|
|
258
|
-
"seed-color":
|
|
258
|
+
"model-value": G(),
|
|
259
|
+
"seed-color": W(),
|
|
259
260
|
"aria-label": o(E).paragraphEditor.textColor,
|
|
260
|
-
"onUpdate:modelValue":
|
|
261
|
+
"onUpdate:modelValue": U
|
|
261
262
|
}, null, 8, [
|
|
262
263
|
"model-value",
|
|
263
264
|
"seed-color",
|
|
264
265
|
"aria-label"
|
|
265
266
|
]),
|
|
266
|
-
s(
|
|
267
|
+
s(R, {
|
|
267
268
|
"swatch-only": "",
|
|
268
269
|
size: "sm",
|
|
269
270
|
"data-testid": "highlight-color-picker",
|
|
270
|
-
"model-value":
|
|
271
|
-
"seed-color": o(
|
|
271
|
+
"model-value": X(),
|
|
272
|
+
"seed-color": o(ye),
|
|
272
273
|
"aria-label": o(E).paragraphEditor.highlightColor,
|
|
273
|
-
"onUpdate:modelValue":
|
|
274
|
+
"onUpdate:modelValue": Q
|
|
274
275
|
}, null, 8, [
|
|
275
276
|
"model-value",
|
|
276
277
|
"seed-color",
|
|
277
278
|
"aria-label"
|
|
278
279
|
]),
|
|
279
|
-
s(
|
|
280
|
-
s(
|
|
281
|
-
icon: o(
|
|
280
|
+
s(Z),
|
|
281
|
+
s(q, {
|
|
282
|
+
icon: o(ae),
|
|
282
283
|
label: o(E).paragraphEditor.bold,
|
|
283
284
|
active: t.editor.isActive("bold"),
|
|
284
285
|
"stroke-width": 2.5,
|
|
@@ -288,8 +289,8 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
288
289
|
"label",
|
|
289
290
|
"active"
|
|
290
291
|
]),
|
|
291
|
-
s(
|
|
292
|
-
icon: o(
|
|
292
|
+
s(q, {
|
|
293
|
+
icon: o(he),
|
|
293
294
|
label: o(E).paragraphEditor.italic,
|
|
294
295
|
active: t.editor.isActive("italic"),
|
|
295
296
|
onClick: r[1] ||= (e) => t.editor.chain().focus().toggleItalic().run()
|
|
@@ -298,8 +299,8 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
298
299
|
"label",
|
|
299
300
|
"active"
|
|
300
301
|
]),
|
|
301
|
-
s(
|
|
302
|
-
icon: o(
|
|
302
|
+
s(q, {
|
|
303
|
+
icon: o(fe),
|
|
303
304
|
label: o(E).paragraphEditor.underline,
|
|
304
305
|
active: t.editor.isActive("underline"),
|
|
305
306
|
onClick: r[2] ||= (e) => t.editor.chain().focus().toggleUnderline().run()
|
|
@@ -308,8 +309,8 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
308
309
|
"label",
|
|
309
310
|
"active"
|
|
310
311
|
]),
|
|
311
|
-
s(
|
|
312
|
-
icon: o(
|
|
312
|
+
s(q, {
|
|
313
|
+
icon: o(ie),
|
|
313
314
|
label: o(E).paragraphEditor.strikethrough,
|
|
314
315
|
active: t.editor.isActive("strike"),
|
|
315
316
|
onClick: r[3] ||= (e) => t.editor.chain().focus().toggleStrike().run()
|
|
@@ -318,9 +319,9 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
318
319
|
"label",
|
|
319
320
|
"active"
|
|
320
321
|
]),
|
|
321
|
-
s(
|
|
322
|
-
s(
|
|
323
|
-
icon: o(
|
|
322
|
+
s(Z),
|
|
323
|
+
s(q, {
|
|
324
|
+
icon: o(ge),
|
|
324
325
|
label: o(E).paragraphEditor.subscript,
|
|
325
326
|
active: t.editor.isActive("subscript"),
|
|
326
327
|
onClick: r[4] ||= (e) => t.editor.chain().focus().toggleSubscript().run()
|
|
@@ -329,8 +330,8 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
329
330
|
"label",
|
|
330
331
|
"active"
|
|
331
332
|
]),
|
|
332
|
-
s(
|
|
333
|
-
icon: o(
|
|
333
|
+
s(q, {
|
|
334
|
+
icon: o(_e),
|
|
334
335
|
label: o(E).paragraphEditor.superscript,
|
|
335
336
|
active: t.editor.isActive("superscript"),
|
|
336
337
|
onClick: r[5] ||= (e) => t.editor.chain().focus().toggleSuperscript().run()
|
|
@@ -339,9 +340,9 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
339
340
|
"label",
|
|
340
341
|
"active"
|
|
341
342
|
]),
|
|
342
|
-
s(
|
|
343
|
-
s(
|
|
344
|
-
icon: o(
|
|
343
|
+
s(Z),
|
|
344
|
+
s(q, {
|
|
345
|
+
icon: o(ce),
|
|
345
346
|
label: o(E).paragraphEditor.addLink,
|
|
346
347
|
active: t.editor.isActive("link"),
|
|
347
348
|
onClick: r[6] ||= (e) => a("open-link-dialog")
|
|
@@ -351,8 +352,8 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
351
352
|
"active"
|
|
352
353
|
])
|
|
353
354
|
]), _("div", Oe, [
|
|
354
|
-
s(
|
|
355
|
-
icon: o(
|
|
355
|
+
s(q, {
|
|
356
|
+
icon: o(se),
|
|
356
357
|
label: o(E).paragraphEditor.bulletList,
|
|
357
358
|
active: t.editor.isActive("bulletList"),
|
|
358
359
|
onClick: r[7] ||= (e) => t.editor.chain().focus().toggleBulletList().run()
|
|
@@ -361,8 +362,8 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
361
362
|
"label",
|
|
362
363
|
"active"
|
|
363
364
|
]),
|
|
364
|
-
s(
|
|
365
|
-
icon: o(
|
|
365
|
+
s(q, {
|
|
366
|
+
icon: o(pe),
|
|
366
367
|
label: o(E).paragraphEditor.numberedList,
|
|
367
368
|
active: t.editor.isActive("orderedList"),
|
|
368
369
|
onClick: r[8] ||= (e) => t.editor.chain().focus().toggleOrderedList().run()
|
|
@@ -371,9 +372,9 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
371
372
|
"label",
|
|
372
373
|
"active"
|
|
373
374
|
]),
|
|
374
|
-
s(
|
|
375
|
-
s(
|
|
376
|
-
icon: o(
|
|
375
|
+
s(Z),
|
|
376
|
+
s(q, {
|
|
377
|
+
icon: o(me),
|
|
377
378
|
label: o(E).paragraphEditor.alignLeft,
|
|
378
379
|
active: t.editor.isActive({ textAlign: "left" }),
|
|
379
380
|
onClick: r[9] ||= (e) => t.editor.chain().focus().setTextAlign("left").run()
|
|
@@ -382,8 +383,8 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
382
383
|
"label",
|
|
383
384
|
"active"
|
|
384
385
|
]),
|
|
385
|
-
s(
|
|
386
|
-
icon: o(
|
|
386
|
+
s(q, {
|
|
387
|
+
icon: o(oe),
|
|
387
388
|
label: o(E).paragraphEditor.alignCenter,
|
|
388
389
|
active: t.editor.isActive({ textAlign: "center" }),
|
|
389
390
|
onClick: r[10] ||= (e) => t.editor.chain().focus().setTextAlign("center").run()
|
|
@@ -392,8 +393,8 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
392
393
|
"label",
|
|
393
394
|
"active"
|
|
394
395
|
]),
|
|
395
|
-
s(
|
|
396
|
-
icon: o(
|
|
396
|
+
s(q, {
|
|
397
|
+
icon: o(le),
|
|
397
398
|
label: o(E).paragraphEditor.alignRight,
|
|
398
399
|
active: t.editor.isActive({ textAlign: "right" }),
|
|
399
400
|
onClick: r[11] ||= (e) => t.editor.chain().focus().setTextAlign("right").run()
|
|
@@ -402,8 +403,8 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
402
403
|
"label",
|
|
403
404
|
"active"
|
|
404
405
|
]),
|
|
405
|
-
s(
|
|
406
|
-
icon: o(
|
|
406
|
+
s(q, {
|
|
407
|
+
icon: o(ue),
|
|
407
408
|
label: o(E).paragraphEditor.alignJustify,
|
|
408
409
|
active: t.editor.isActive({ textAlign: "justify" }),
|
|
409
410
|
onClick: r[12] ||= (e) => t.editor.chain().focus().setTextAlign("justify").run()
|
|
@@ -412,81 +413,81 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
412
413
|
"label",
|
|
413
414
|
"active"
|
|
414
415
|
]),
|
|
415
|
-
s(
|
|
416
|
-
s(
|
|
417
|
-
"model-value":
|
|
418
|
-
options: o(
|
|
416
|
+
s(Z),
|
|
417
|
+
s($, {
|
|
418
|
+
"model-value": K(),
|
|
419
|
+
options: o(xe),
|
|
419
420
|
label: o(E).paragraphEditor.lineHeight,
|
|
420
421
|
placeholder: "LH",
|
|
421
422
|
"width-class": "tpl:w-16",
|
|
422
|
-
"onUpdate:modelValue":
|
|
423
|
+
"onUpdate:modelValue": J
|
|
423
424
|
}, null, 8, [
|
|
424
425
|
"model-value",
|
|
425
426
|
"options",
|
|
426
427
|
"label"
|
|
427
428
|
]),
|
|
428
|
-
s(
|
|
429
|
-
"model-value":
|
|
430
|
-
options: o(
|
|
429
|
+
s($, {
|
|
430
|
+
"model-value": L("letterSpacing"),
|
|
431
|
+
options: o(be),
|
|
431
432
|
label: o(E).paragraphEditor.letterSpacing,
|
|
432
433
|
placeholder: "LS",
|
|
433
434
|
"width-class": "tpl:w-20",
|
|
434
|
-
"onUpdate:modelValue":
|
|
435
|
+
"onUpdate:modelValue": Y
|
|
435
436
|
}, null, 8, [
|
|
436
437
|
"model-value",
|
|
437
438
|
"options",
|
|
438
439
|
"label"
|
|
439
440
|
]),
|
|
440
|
-
s(
|
|
441
|
-
s(
|
|
442
|
-
icon: o(
|
|
441
|
+
s(Z),
|
|
442
|
+
s(q, {
|
|
443
|
+
icon: o(ne),
|
|
443
444
|
label: o(E).paragraphEditor.clearFormatting,
|
|
444
445
|
onClick: r[13] ||= (e) => t.editor.chain().focus().clearNodes().unsetAllMarks().run()
|
|
445
446
|
}, null, 8, ["icon", "label"]),
|
|
446
|
-
s(
|
|
447
|
-
s(
|
|
448
|
-
t.canRequestMergeTag ? (n(), f(y, { key: 0 }, [s(
|
|
447
|
+
s(Z),
|
|
448
|
+
s(Se, { onInsert: I }),
|
|
449
|
+
t.canRequestMergeTag ? (n(), f(y, { key: 0 }, [s(Z), _("button", {
|
|
449
450
|
type: "button",
|
|
450
451
|
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)]",
|
|
451
452
|
"aria-label": o(E).mergeTag.insert,
|
|
452
453
|
title: o(E).mergeTag.insert,
|
|
453
454
|
onClick: r[14] ||= (e) => a("add-merge-tag")
|
|
454
|
-
}, [s(o(
|
|
455
|
+
}, [s(o(te), {
|
|
455
456
|
size: 16,
|
|
456
457
|
"stroke-width": 2
|
|
457
458
|
}), x(" " + b(o(E).mergeTag.insertShort), 1)], 8, ke)], 64)) : p("", !0),
|
|
458
|
-
t.canInsertLogicTag ? (n(), f(y, { key: 1 }, [s(
|
|
459
|
+
t.canInsertLogicTag ? (n(), f(y, { key: 1 }, [s(Z), _("button", {
|
|
459
460
|
type: "button",
|
|
460
461
|
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)]",
|
|
461
462
|
"aria-label": o(E).logicTag.insert,
|
|
462
463
|
title: o(E).logicTag.insert,
|
|
463
464
|
"data-testid": "insert-logic-button",
|
|
464
465
|
onClick: r[15] ||= (e) => a("add-logic-tag")
|
|
465
|
-
}, [s(o(
|
|
466
|
+
}, [s(o(re), {
|
|
466
467
|
size: 16,
|
|
467
468
|
"stroke-width": 2
|
|
468
469
|
}), x(" " + b(o(E).logicTag.insertShort), 1)], 8, Ae)], 64)) : p("", !0)
|
|
469
|
-
])], 64)) : (n(), f("div",
|
|
470
|
+
])], 64)) : (n(), f("div", je, [s(o(de), {
|
|
470
471
|
class: "tpl-spinner",
|
|
471
472
|
size: 14,
|
|
472
473
|
"stroke-width": 2
|
|
473
474
|
}), x(" " + b(o(E).errors.editorLoading), 1)]))], 12, Ee)], 8, ["to"])) : p("", !0);
|
|
474
475
|
}
|
|
475
|
-
}),
|
|
476
|
+
}), Ne = { class: "tpl-text-editor-wrapper tpl:relative" }, Pe = /* @__PURE__ */ a({
|
|
476
477
|
__name: "ParagraphEditor",
|
|
477
478
|
props: {
|
|
478
479
|
block: {},
|
|
479
480
|
toolbarPosition: {}
|
|
480
481
|
},
|
|
481
482
|
emits: ["done"],
|
|
482
|
-
setup(
|
|
483
|
-
let r =
|
|
484
|
-
blockId: () =>
|
|
485
|
-
blockContent: () =>
|
|
486
|
-
onDone: () =>
|
|
483
|
+
setup(t, { emit: r }) {
|
|
484
|
+
let i = t, a = r, c = F(), l = e(M, null), u = S(l?.content?.value?.settings ?? { locale: "en" }) === "rtl" ? "right" : "left", { editor: d, EditorContent: p, isLoading: m, initError: h, retry: g, showLinkDialog: _, linkUrl: y, linkColor: b, linkDialogRef: x, canRequestMergeTag: C, canInsertLogicTag: T, openLinkDialog: D, insertLink: O, removeLink: k, closeLinkDialog: A, handleLinkKeydown: ee, handleAddMergeTag: j, handleAddLogicTag: N } = E({
|
|
485
|
+
blockId: () => i.block.id,
|
|
486
|
+
blockContent: () => i.block.content,
|
|
487
|
+
onDone: () => a("done"),
|
|
487
488
|
editorName: "ParagraphEditor",
|
|
488
489
|
async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
|
|
489
|
-
let [{ Editor:
|
|
490
|
+
let [{ Editor: a, EditorContent: o }, { default: s }, { default: l }, { default: d }, { default: f }, { default: p }, { default: m }, { TextStyle: h }, { default: g }, { default: _ }, { default: v }, { MergeTagNode: y, MergeTagSuggestion: b, LogicMergeTagNode: x, FontSize: S, LineHeight: C, LetterSpacing: T, LineBoundaryKeys: E }] = await Promise.all([
|
|
490
491
|
import("./tiptap-Epe8m3Vo.js").then((e) => e.r),
|
|
491
492
|
import("./tiptap-Epe8m3Vo.js").then((e) => e.i),
|
|
492
493
|
import("./tiptap-Epe8m3Vo.js").then((e) => e.l),
|
|
@@ -498,13 +499,13 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
498
499
|
import("./tiptap-Epe8m3Vo.js").then((e) => e.f),
|
|
499
500
|
import("./tiptap-Epe8m3Vo.js").then((e) => e.d),
|
|
500
501
|
import("./tiptap-Epe8m3Vo.js").then((e) => e.u),
|
|
501
|
-
import("./extensions-
|
|
502
|
+
import("./extensions-BpXY7jO5.js")
|
|
502
503
|
]);
|
|
503
504
|
return {
|
|
504
|
-
TiptapEditor:
|
|
505
|
-
EC:
|
|
505
|
+
TiptapEditor: a,
|
|
506
|
+
EC: o,
|
|
506
507
|
extensions: [
|
|
507
|
-
|
|
508
|
+
s.configure({
|
|
508
509
|
heading: !1,
|
|
509
510
|
codeBlock: !1,
|
|
510
511
|
blockquote: !1,
|
|
@@ -512,50 +513,53 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
512
513
|
link: !1,
|
|
513
514
|
underline: !1
|
|
514
515
|
}),
|
|
515
|
-
u,
|
|
516
516
|
d,
|
|
517
517
|
f,
|
|
518
|
-
|
|
518
|
+
p,
|
|
519
|
+
w(l).configure({
|
|
519
520
|
openOnClick: !1,
|
|
520
521
|
HTMLAttributes: {
|
|
521
522
|
target: "_blank",
|
|
522
523
|
rel: "noopener noreferrer"
|
|
523
524
|
}
|
|
524
525
|
}),
|
|
525
|
-
|
|
526
|
-
|
|
526
|
+
m.configure({
|
|
527
|
+
types: ["paragraph"],
|
|
528
|
+
defaultAlignment: u
|
|
529
|
+
}),
|
|
527
530
|
h,
|
|
528
531
|
g,
|
|
529
|
-
_
|
|
530
|
-
|
|
532
|
+
_,
|
|
533
|
+
v.configure({ multicolor: !0 }),
|
|
531
534
|
S,
|
|
532
|
-
|
|
533
|
-
|
|
535
|
+
C,
|
|
536
|
+
T,
|
|
537
|
+
y.configure({
|
|
534
538
|
mergeTags: e,
|
|
535
539
|
syntax: t
|
|
536
540
|
}),
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
...r && n && e.length > 0 ? [
|
|
541
|
+
x.configure({ syntax: t }),
|
|
542
|
+
E,
|
|
543
|
+
...r && n && e.length > 0 ? [b.configure({
|
|
540
544
|
mergeTags: e,
|
|
541
545
|
char: n,
|
|
542
546
|
emptyText: i,
|
|
543
|
-
popoverRoot:
|
|
547
|
+
popoverRoot: c
|
|
544
548
|
})] : []
|
|
545
549
|
]
|
|
546
550
|
};
|
|
547
551
|
}
|
|
548
552
|
});
|
|
549
|
-
return (
|
|
550
|
-
s(
|
|
551
|
-
editor: o(
|
|
552
|
-
"toolbar-position":
|
|
553
|
-
"is-loading": o(
|
|
554
|
-
"can-request-merge-tag": o(
|
|
555
|
-
"can-insert-logic-tag": o(
|
|
556
|
-
onOpenLinkDialog: o(
|
|
557
|
-
onAddMergeTag: o(
|
|
558
|
-
onAddLogicTag: o(
|
|
553
|
+
return (e, r) => (n(), f("div", Ne, [
|
|
554
|
+
s(Me, {
|
|
555
|
+
editor: o(d),
|
|
556
|
+
"toolbar-position": t.toolbarPosition,
|
|
557
|
+
"is-loading": o(m),
|
|
558
|
+
"can-request-merge-tag": o(C),
|
|
559
|
+
"can-insert-logic-tag": o(T),
|
|
560
|
+
onOpenLinkDialog: o(D),
|
|
561
|
+
onAddMergeTag: o(j),
|
|
562
|
+
onAddLogicTag: o(N)
|
|
559
563
|
}, null, 8, [
|
|
560
564
|
"editor",
|
|
561
565
|
"toolbar-position",
|
|
@@ -566,12 +570,12 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
566
570
|
"onAddMergeTag",
|
|
567
571
|
"onAddLogicTag"
|
|
568
572
|
]),
|
|
569
|
-
s(
|
|
570
|
-
editor: o(
|
|
571
|
-
"editor-content": o(
|
|
572
|
-
"is-loading": o(
|
|
573
|
-
"init-error": o(
|
|
574
|
-
onRetry: o(
|
|
573
|
+
s(B, {
|
|
574
|
+
editor: o(d),
|
|
575
|
+
"editor-content": o(p),
|
|
576
|
+
"is-loading": o(m),
|
|
577
|
+
"init-error": o(h),
|
|
578
|
+
onRetry: o(g)
|
|
575
579
|
}, null, 8, [
|
|
576
580
|
"editor",
|
|
577
581
|
"editor-content",
|
|
@@ -579,19 +583,19 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
579
583
|
"init-error",
|
|
580
584
|
"onRetry"
|
|
581
585
|
]),
|
|
582
|
-
s(
|
|
583
|
-
visible: o(
|
|
584
|
-
"is-editing-link": o(
|
|
585
|
-
"dialog-ref": o(
|
|
586
|
-
"onUpdate:dialogRef": r[0] ||= (e) => v(
|
|
587
|
-
"link-url": o(
|
|
588
|
-
"onUpdate:linkUrl": r[1] ||= (e) => v(
|
|
589
|
-
"link-color": o(
|
|
590
|
-
"onUpdate:linkColor": r[2] ||= (e) => v(
|
|
591
|
-
onClose: o(
|
|
592
|
-
onInsert: o(
|
|
593
|
-
onRemove: o(
|
|
594
|
-
onKeydown: o(
|
|
586
|
+
s(z, {
|
|
587
|
+
visible: o(_),
|
|
588
|
+
"is-editing-link": o(d)?.isActive("link") ?? !1,
|
|
589
|
+
"dialog-ref": o(x),
|
|
590
|
+
"onUpdate:dialogRef": r[0] ||= (e) => v(x) ? x.value = e : null,
|
|
591
|
+
"link-url": o(y),
|
|
592
|
+
"onUpdate:linkUrl": r[1] ||= (e) => v(y) ? y.value = e : null,
|
|
593
|
+
"link-color": o(b),
|
|
594
|
+
"onUpdate:linkColor": r[2] ||= (e) => v(b) ? b.value = e : null,
|
|
595
|
+
onClose: o(A),
|
|
596
|
+
onInsert: o(O),
|
|
597
|
+
onRemove: o(k),
|
|
598
|
+
onKeydown: o(ee)
|
|
595
599
|
}, null, 8, [
|
|
596
600
|
"visible",
|
|
597
601
|
"is-editing-link",
|
|
@@ -607,6 +611,6 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
607
611
|
}
|
|
608
612
|
});
|
|
609
613
|
//#endregion
|
|
610
|
-
export {
|
|
614
|
+
export { Pe as default };
|
|
611
615
|
|
|
612
|
-
//# sourceMappingURL=ParagraphEditor-
|
|
616
|
+
//# sourceMappingURL=ParagraphEditor-DQn0HMfV.js.map
|