@templatical/editor 0.34.3 → 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.
Files changed (206) hide show
  1. package/dist/{AiChatSidebar-CkHJ28sf.js → AiChatSidebar-DPHbCGu4.js} +29 -21
  2. package/dist/{AiFeatureMenu-DWdKguDN.js → AiFeatureMenu--8z7qvg1.js} +4 -4
  3. package/dist/{BlockIssueBadge-DcyHTAqw.js → BlockIssueBadge-BGCsJqqM.js} +2 -2
  4. package/dist/BlockPreviewCanvas-DKspIy8V.js +131 -0
  5. package/dist/{CloudHeaderExtras-BJ3Cebhv.js → CloudHeaderExtras-CRUQvgSV.js} +2 -2
  6. package/dist/{CloudPanels-BGz9ygo6.js → CloudPanels-Bp5gFtaL.js} +3 -3
  7. package/dist/{CollaboratorBar-KphmSQeZ.js → CollaboratorBar-DvwZm5u7.js} +57 -49
  8. package/dist/{ColorPicker-C6EOwtHC.js → ColorPicker-DtozuN75.js} +1 -1
  9. package/dist/{CommentsPanel-DmWh8f08.js → CommentsPanel-3C-DsEjy.js} +1 -1
  10. package/dist/{CommentsSidebar-CL_tffzT.js → CommentsSidebar-go1FnjDW.js} +34 -25
  11. package/dist/{CountdownToolbar-B8J4i5Xp.js → CountdownToolbar-SLBuij7Q.js} +1 -1
  12. package/dist/{DesignReferenceSidebar-BDhEeaAh.js → DesignReferenceSidebar-rcE_BvUd.js} +55 -47
  13. package/dist/{IssuesPanel-CiOjeRFI.js → IssuesPanel-Cig46N1i.js} +23 -15
  14. package/dist/{MergeTagInput-RytOlh1A.js → MergeTagInput-D1hzsn2b.js} +42 -33
  15. package/dist/{MergeTagModeToggle-Bi-FydXj.js → MergeTagModeToggle-CH9wR5YF.js} +70 -58
  16. package/dist/{ParagraphEditor-C87tkmtE.js → ParagraphEditor-CT2AdMdZ.js} +365 -323
  17. package/dist/{RestoreVersionDialog-Db5rZRMA.js → RestoreVersionDialog-mdqgQxFR.js} +3 -3
  18. package/dist/{RichTextEditorContent-BmTcV2-a.js → RichTextEditorContent-riOB-rKD.js} +48 -36
  19. package/dist/{SaveBlockDialog-CDCzx6Bo.js → SaveBlockDialog-Cn2v4Lpj.js} +6 -6
  20. package/dist/{SavedBlocksBrowserModal-DQR6kJB1.js → SavedBlocksBrowserModal-BORqqASb.js} +7 -7
  21. package/dist/{SavedBlocksPanels-DFzV0CRD.js → SavedBlocksPanels-ffBnWuVU.js} +1 -1
  22. package/dist/{SavedBlocksPickBar-XyXmnSnO.js → SavedBlocksPickBar-BmQC2tWN.js} +2 -2
  23. package/dist/{TemplateScoringPanel-CpyEKMzC.js → TemplateScoringPanel-CxAtdreR.js} +36 -27
  24. package/dist/{TestEmailModal-DIfJy9eE.js → TestEmailModal-Cjn1padY.js} +7 -7
  25. package/dist/{TestEmailPanel-C8Wx5yPS.js → TestEmailPanel-Bf3XZ1jn.js} +1 -1
  26. package/dist/{TitleEditor-iNFOisr4.js → TitleEditor-pYEUX6lR.js} +5 -5
  27. package/dist/{TplModal-CowM3o_F.js → TplModal-DRx4ytx8.js} +1 -1
  28. package/dist/{VersionHistoryMenu-CV90OhXs.js → VersionHistoryMenu-CrNrGsaa.js} +21 -13
  29. package/dist/{VersionHistoryPanels-BE3pplJG.js → VersionHistoryPanels-CsuQk6W3.js} +1 -1
  30. package/dist/{VersionPreviewBanner-BwUWBtlH.js → VersionPreviewBanner-BqbO0Zss.js} +1 -1
  31. package/dist/blockTypeIcons-D_4HdaY9.js +175 -0
  32. package/dist/bundle-stats.json +6 -6
  33. package/dist/{ca-C0hfqt4U.js → ca-D9S-UCfZ.js} +2 -0
  34. package/dist/cdn/chunks/{AiChatSidebar-BEnIWn6s.js → AiChatSidebar-D0f74_nS.js} +3 -3
  35. package/dist/cdn/chunks/{AiChatSidebar-BEnIWn6s.js.map → AiChatSidebar-D0f74_nS.js.map} +1 -1
  36. package/dist/cdn/chunks/{AiFeatureMenu-DMl23akc.js → AiFeatureMenu-DwGb3eF9.js} +3 -3
  37. package/dist/cdn/chunks/{AiFeatureMenu-DMl23akc.js.map → AiFeatureMenu-DwGb3eF9.js.map} +1 -1
  38. package/dist/cdn/chunks/{BlockIssueBadge-CloK4k3M.js → BlockIssueBadge-CosQgeJ-.js} +2 -2
  39. package/dist/cdn/chunks/{BlockIssueBadge-CloK4k3M.js.map → BlockIssueBadge-CosQgeJ-.js.map} +1 -1
  40. package/dist/cdn/chunks/BlockPreviewCanvas-CIpZ2a6g.js +133 -0
  41. package/dist/cdn/chunks/BlockPreviewCanvas-CIpZ2a6g.js.map +1 -0
  42. package/dist/cdn/chunks/{CloudHeaderExtras-b4KpVeUN.js → CloudHeaderExtras-CQzQwKFB.js} +3 -3
  43. package/dist/cdn/chunks/{CloudHeaderExtras-b4KpVeUN.js.map → CloudHeaderExtras-CQzQwKFB.js.map} +1 -1
  44. package/dist/cdn/chunks/{CloudPanels-DzwOq9lp.js → CloudPanels-BmexuLOU.js} +4 -4
  45. package/dist/cdn/chunks/{CloudPanels-DzwOq9lp.js.map → CloudPanels-BmexuLOU.js.map} +1 -1
  46. package/dist/cdn/chunks/{CollaboratorBar-WXKvpoGK.js → CollaboratorBar-DEICobpp.js} +3 -3
  47. package/dist/cdn/chunks/{CollaboratorBar-WXKvpoGK.js.map → CollaboratorBar-DEICobpp.js.map} +1 -1
  48. package/dist/cdn/chunks/{ColorPicker-BubTDiS1.js → ColorPicker-C7yC58FK.js} +2 -2
  49. package/dist/cdn/chunks/{ColorPicker-BubTDiS1.js.map → ColorPicker-C7yC58FK.js.map} +1 -1
  50. package/dist/cdn/chunks/{CommentsPanel-DAA2VqX4.js → CommentsPanel-OjmKxLL7.js} +2 -2
  51. package/dist/cdn/chunks/{CommentsPanel-DAA2VqX4.js.map → CommentsPanel-OjmKxLL7.js.map} +1 -1
  52. package/dist/cdn/chunks/{CommentsSidebar-Ci0M2ePp.js → CommentsSidebar-C4pWZGpy.js} +2 -2
  53. package/dist/cdn/chunks/{CommentsSidebar-Ci0M2ePp.js.map → CommentsSidebar-C4pWZGpy.js.map} +1 -1
  54. package/dist/cdn/chunks/{CountdownToolbar-CzZq26Vp.js → CountdownToolbar-wlJOxyAl.js} +2 -2
  55. package/dist/cdn/chunks/{CountdownToolbar-CzZq26Vp.js.map → CountdownToolbar-wlJOxyAl.js.map} +1 -1
  56. package/dist/cdn/chunks/{DesignReferenceSidebar-C_ehdX5C.js → DesignReferenceSidebar-DELhnh8h.js} +3 -3
  57. package/dist/cdn/chunks/{DesignReferenceSidebar-C_ehdX5C.js.map → DesignReferenceSidebar-DELhnh8h.js.map} +1 -1
  58. package/dist/cdn/chunks/{IssuesPanel-BXAN2_al.js → IssuesPanel-C9i3o8aE.js} +2 -2
  59. package/dist/cdn/chunks/{IssuesPanel-BXAN2_al.js.map → IssuesPanel-C9i3o8aE.js.map} +1 -1
  60. package/dist/cdn/chunks/{MergeTagInput-1vcI9uQH.js → MergeTagInput-D76Kyvgu.js} +5 -5
  61. package/dist/cdn/chunks/{MergeTagInput-1vcI9uQH.js.map → MergeTagInput-D76Kyvgu.js.map} +1 -1
  62. package/dist/cdn/chunks/{MergeTagModeToggle-B_mUYJo4.js → MergeTagModeToggle-Dz3gxN2y.js} +3 -3
  63. package/dist/cdn/chunks/{MergeTagModeToggle-B_mUYJo4.js.map → MergeTagModeToggle-Dz3gxN2y.js.map} +1 -1
  64. package/dist/cdn/chunks/{ParagraphEditor-DCDHMcmx.js → ParagraphEditor-DQn0HMfV.js} +176 -172
  65. package/dist/cdn/chunks/{ParagraphEditor-DCDHMcmx.js.map → ParagraphEditor-DQn0HMfV.js.map} +1 -1
  66. package/dist/cdn/chunks/{RestoreVersionDialog-BkSSwf-Q.js → RestoreVersionDialog-BdjOL8Oy.js} +3 -3
  67. package/dist/cdn/chunks/{RestoreVersionDialog-BkSSwf-Q.js.map → RestoreVersionDialog-BdjOL8Oy.js.map} +1 -1
  68. package/dist/cdn/chunks/{RichTextEditorContent-S4KogjIj.js → RichTextEditorContent-Drzwgh0J.js} +4 -4
  69. package/dist/cdn/chunks/{RichTextEditorContent-S4KogjIj.js.map → RichTextEditorContent-Drzwgh0J.js.map} +1 -1
  70. package/dist/cdn/chunks/{SaveBlockDialog-BH774Nt0.js → SaveBlockDialog-B3rbmXSM.js} +5 -5
  71. package/dist/cdn/chunks/{SaveBlockDialog-BH774Nt0.js.map → SaveBlockDialog-B3rbmXSM.js.map} +1 -1
  72. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CSUqw_dD.js → SavedBlocksBrowserModal-CkUXlnd2.js} +6 -6
  73. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CSUqw_dD.js.map → SavedBlocksBrowserModal-CkUXlnd2.js.map} +1 -1
  74. package/dist/cdn/chunks/{SavedBlocksPanels-B6ApbCjG.js → SavedBlocksPanels-BPi3PZKP.js} +2 -2
  75. package/dist/cdn/chunks/{SavedBlocksPanels-B6ApbCjG.js.map → SavedBlocksPanels-BPi3PZKP.js.map} +1 -1
  76. package/dist/cdn/chunks/{SavedBlocksPickBar-C9MXSRcR.js → SavedBlocksPickBar-BvB9A5W2.js} +3 -3
  77. package/dist/cdn/chunks/{SavedBlocksPickBar-C9MXSRcR.js.map → SavedBlocksPickBar-BvB9A5W2.js.map} +1 -1
  78. package/dist/cdn/chunks/{TemplateScoringPanel-QVOxc9TZ.js → TemplateScoringPanel-BBCyLnOi.js} +2 -2
  79. package/dist/cdn/chunks/{TemplateScoringPanel-QVOxc9TZ.js.map → TemplateScoringPanel-BBCyLnOi.js.map} +1 -1
  80. package/dist/cdn/chunks/{TestEmailModal-_CZvaO58.js → TestEmailModal-DAGTsBqi.js} +7 -7
  81. package/dist/cdn/chunks/{TestEmailModal-_CZvaO58.js.map → TestEmailModal-DAGTsBqi.js.map} +1 -1
  82. package/dist/cdn/chunks/{TestEmailPanel-DXLxvyrD.js → TestEmailPanel-BfenVvfx.js} +2 -2
  83. package/dist/cdn/chunks/{TestEmailPanel-DXLxvyrD.js.map → TestEmailPanel-BfenVvfx.js.map} +1 -1
  84. package/dist/cdn/chunks/{TitleEditor-BuCOahW3.js → TitleEditor-oQ4gr6wS.js} +5 -5
  85. package/dist/cdn/chunks/{TitleEditor-BuCOahW3.js.map → TitleEditor-oQ4gr6wS.js.map} +1 -1
  86. package/dist/cdn/chunks/{TplModal-CqY8R3hn.js → TplModal-DxOMcVwp.js} +2 -2
  87. package/dist/cdn/chunks/{TplModal-CqY8R3hn.js.map → TplModal-DxOMcVwp.js.map} +1 -1
  88. package/dist/cdn/chunks/{VersionHistoryMenu-DDjIBvad.js → VersionHistoryMenu-BfVUvWHT.js} +4 -4
  89. package/dist/cdn/chunks/{VersionHistoryMenu-DDjIBvad.js.map → VersionHistoryMenu-BfVUvWHT.js.map} +1 -1
  90. package/dist/cdn/chunks/{VersionHistoryPanels-BuTw04T5.js → VersionHistoryPanels-NpDb641L.js} +2 -2
  91. package/dist/cdn/chunks/{VersionHistoryPanels-BuTw04T5.js.map → VersionHistoryPanels-NpDb641L.js.map} +1 -1
  92. package/dist/cdn/chunks/{VersionPreviewBanner-fGAv20qI.js → VersionPreviewBanner-Cpgt4xHc.js} +2 -2
  93. package/dist/cdn/chunks/{VersionPreviewBanner-fGAv20qI.js.map → VersionPreviewBanner-Cpgt4xHc.js.map} +1 -1
  94. package/dist/cdn/chunks/{blockTypeIcons-ZEzEpCti.js → blockTypeIcons-t9vvaiuH.js} +2 -2
  95. package/dist/cdn/chunks/{blockTypeIcons-ZEzEpCti.js.map → blockTypeIcons-t9vvaiuH.js.map} +1 -1
  96. package/dist/cdn/chunks/{ca-C0hfqt4U.js → ca-D9S-UCfZ.js} +3 -1
  97. package/dist/cdn/chunks/{ca-C0hfqt4U.js.map → ca-D9S-UCfZ.js.map} +1 -1
  98. package/dist/cdn/chunks/{cloud-BP5-6__d.js → cloud-CullB76F.js} +2 -2
  99. package/dist/cdn/chunks/{cloud-BP5-6__d.js.map → cloud-CullB76F.js.map} +1 -1
  100. package/dist/cdn/chunks/{createCloudRuntime-JFE-sxbT.js → createCloudRuntime-Cx2JpUYU.js} +4 -4
  101. package/dist/cdn/chunks/{createCloudRuntime-JFE-sxbT.js.map → createCloudRuntime-Cx2JpUYU.js.map} +1 -1
  102. package/dist/{de-C6J2Iae8.js → cdn/chunks/de-BUPszLpi.js} +4 -0
  103. package/dist/cdn/chunks/{de-C6J2Iae8.js.map → de-BUPszLpi.js.map} +1 -1
  104. package/dist/cdn/chunks/{en-BaUYOQi8.js → en-BbOC5x3w.js} +3 -1
  105. package/dist/cdn/chunks/en-BbOC5x3w.js.map +1 -0
  106. package/dist/cdn/chunks/en-rGHphLWo.js +2 -0
  107. package/dist/cdn/chunks/{es-CKDYfJYn.js → es-0bCDcT9p.js} +3 -1
  108. package/dist/cdn/chunks/{es-CKDYfJYn.js.map → es-0bCDcT9p.js.map} +1 -1
  109. package/dist/cdn/chunks/{extensions-7z04EIGg.js → extensions-BpXY7jO5.js} +3 -3
  110. package/dist/cdn/chunks/{extensions-7z04EIGg.js.map → extensions-BpXY7jO5.js.map} +1 -1
  111. package/dist/{fr-L8DR73mK.js → cdn/chunks/fr-Brr8mJ9e.js} +4 -0
  112. package/dist/cdn/chunks/fr-Brr8mJ9e.js.map +1 -0
  113. package/dist/cdn/chunks/icons-BLxcQUck.js +1675 -0
  114. package/dist/cdn/chunks/icons-BLxcQUck.js.map +1 -0
  115. package/dist/cdn/chunks/{nl-GDWeuX18.js → nl-Co3_RL0M.js} +3 -1
  116. package/dist/cdn/chunks/nl-Co3_RL0M.js.map +1 -0
  117. package/dist/cdn/chunks/{preRenderCustomBlocks-LFB-e-0m.js → preRenderCustomBlocks-Bdpiiw4A.js} +2 -2
  118. package/dist/cdn/chunks/{preRenderCustomBlocks-LFB-e-0m.js.map → preRenderCustomBlocks-Bdpiiw4A.js.map} +1 -1
  119. package/dist/cdn/chunks/{pt-BR-B1AVVhWj.js → pt-BR-BECez5b0.js} +3 -1
  120. package/dist/cdn/chunks/{pt-BR-B1AVVhWj.js.map → pt-BR-BECez5b0.js.map} +1 -1
  121. package/dist/cdn/chunks/{src-BDvZrpFH.js → src-BC-eolWY.js} +161 -160
  122. package/dist/cdn/chunks/src-BC-eolWY.js.map +1 -0
  123. package/dist/cdn/chunks/{src-BM3f9I7t.js → src-CUvZWL6Y.js} +83 -83
  124. package/dist/cdn/chunks/src-CUvZWL6Y.js.map +1 -0
  125. package/dist/cdn/chunks/{src-Cxl-9O-L.js → src-CaXeO-gG.js} +17 -17
  126. package/dist/cdn/chunks/{src-Cxl-9O-L.js.map → src-CaXeO-gG.js.map} +1 -1
  127. package/dist/cdn/chunks/{src-CLoCCDfs.js → src-Dwgq7hf4.js} +71 -48
  128. package/dist/cdn/chunks/src-Dwgq7hf4.js.map +1 -0
  129. package/dist/cdn/chunks/{useEditorCore-ehUSEsbw.js → useEditorCore-D4MytYB9.js} +495 -485
  130. package/dist/cdn/chunks/useEditorCore-D4MytYB9.js.map +1 -0
  131. package/dist/cdn/chunks/{useMergeTag-TLhF2fGK.js → useMergeTag-CSocWpxV.js} +2 -2
  132. package/dist/cdn/chunks/{useMergeTag-TLhF2fGK.js.map → useMergeTag-CSocWpxV.js.map} +1 -1
  133. package/dist/cdn/editor.css +1 -1
  134. package/dist/cdn/editor.js +920 -907
  135. package/dist/cdn/editor.js.map +1 -1
  136. package/dist/check-CY-Ec6FV.js +11 -0
  137. package/dist/chevron-down-BghbWA9p.js +11 -0
  138. package/dist/chevron-up-n3qFAPS3.js +11 -0
  139. package/dist/circle-alert-L5uGGFRP.js +30 -0
  140. package/dist/clock-Dgnwp18n.js +16 -0
  141. package/dist/{cloud-BMzRKCbk.js → cloud-B1c4XIsn.js} +1 -1
  142. package/dist/{createCloudRuntime-DbTFm1ES.js → createCloudRuntime-PevFSH74.js} +2 -2
  143. package/dist/createLucideIcon-05lB8iWe.js +96 -0
  144. package/dist/{cdn/chunks/de-C6J2Iae8.js → de-BUPszLpi.js} +2 -2
  145. package/dist/{dist-PL6vP4SC.js → dist-tGkjkX-v.js} +143 -122
  146. package/dist/{en-BaUYOQi8.js → en-BbOC5x3w.js} +2 -0
  147. package/dist/{es-CKDYfJYn.js → es-0bCDcT9p.js} +2 -0
  148. package/dist/{extensions-Mf8iHey9.js → extensions-Bawm4BOM.js} +2 -2
  149. package/dist/{cdn/chunks/fr-L8DR73mK.js → fr-Brr8mJ9e.js} +2 -2
  150. package/dist/image-up-ovhjl9u9.js +27 -0
  151. package/dist/info-c3KI927I.js +23 -0
  152. package/dist/loader-circle-B2Y8xZQb.js +12 -0
  153. package/dist/message-circle-B7K-naUa.js +11 -0
  154. package/dist/{nl-GDWeuX18.js → nl-Co3_RL0M.js} +2 -0
  155. package/dist/pencil-BhWTFcp4.js +14 -0
  156. package/dist/{preRenderCustomBlocks-CSIF-HyJ.js → preRenderCustomBlocks-DFXH54Zr.js} +1 -1
  157. package/dist/{pt-BR-B1AVVhWj.js → pt-BR-BECez5b0.js} +2 -0
  158. package/dist/refresh-cw-BqUR5vgO.js +37 -0
  159. package/dist/send-D1vvuW79.js +14 -0
  160. package/dist/shield-check-DjK54PnW.js +14 -0
  161. package/dist/sparkles-DNdS9V_3.js +28 -0
  162. package/dist/style.css +1 -1
  163. package/dist/templatical-editor.js +1238 -1167
  164. package/dist/text-align-start-Bcmo_VUY.js +58 -0
  165. package/dist/trash-C9bMXvw4.js +30 -0
  166. package/dist/triangle-alert-Bn8Bd2Yv.js +22 -0
  167. package/dist/upload-DKgg1gno.js +21 -0
  168. package/dist/{useEditorCore-DdkQuTHl.js → useEditorCore-CYGvurZa.js} +1089 -1026
  169. package/dist/{useMergeTag-gSuYus-M.js → useMergeTag-C9GEpljB.js} +1 -1
  170. package/dist/{useScrollToBlock-CdI8fGqt.js → useScrollToBlock-oUx1HIZ2.js} +27 -23
  171. package/dist/x-BPKoRPTG.js +14 -0
  172. package/package.json +9 -9
  173. package/dist/BlockPreviewCanvas-B621ANn9.js +0 -129
  174. package/dist/blockTypeIcons-DQsKtHik.js +0 -134
  175. package/dist/cdn/chunks/BlockPreviewCanvas-DSiJFJa0.js +0 -131
  176. package/dist/cdn/chunks/BlockPreviewCanvas-DSiJFJa0.js.map +0 -1
  177. package/dist/cdn/chunks/en-BaUYOQi8.js.map +0 -1
  178. package/dist/cdn/chunks/en-mEKGL1PX.js +0 -2
  179. package/dist/cdn/chunks/fr-L8DR73mK.js.map +0 -1
  180. package/dist/cdn/chunks/icons-SP5Itd-A.js +0 -1218
  181. package/dist/cdn/chunks/icons-SP5Itd-A.js.map +0 -1
  182. package/dist/cdn/chunks/nl-GDWeuX18.js.map +0 -1
  183. package/dist/cdn/chunks/src-BDvZrpFH.js.map +0 -1
  184. package/dist/cdn/chunks/src-BM3f9I7t.js.map +0 -1
  185. package/dist/cdn/chunks/src-CLoCCDfs.js.map +0 -1
  186. package/dist/cdn/chunks/useEditorCore-ehUSEsbw.js.map +0 -1
  187. package/dist/check-JK8Uacq0.js +0 -7
  188. package/dist/chevron-down-a-fb_Ijn.js +0 -7
  189. package/dist/chevron-up-x4l0et_Y.js +0 -7
  190. package/dist/circle-alert-CJDW5LZo.js +0 -25
  191. package/dist/clock-BW6rXk2f.js +0 -12
  192. package/dist/createLucideIcon-Bvw1Zx56.js +0 -43
  193. package/dist/image-up-CuzFc1mu.js +0 -23
  194. package/dist/info-DybAwcA3.js +0 -19
  195. package/dist/loader-circle-t-SVgmJ3.js +0 -7
  196. package/dist/message-circle-DtwKrlhN.js +0 -7
  197. package/dist/pencil-2qhC-Y4q.js +0 -10
  198. package/dist/refresh-cw-C8SBuPdg.js +0 -29
  199. package/dist/send-BoqJliF6.js +0 -10
  200. package/dist/shield-check-D0dMaHtE.js +0 -10
  201. package/dist/sparkles-Dy2BJjiX.js +0 -23
  202. package/dist/text-align-start-DrxjxvIy.js +0 -43
  203. package/dist/trash-rYMzzHZd.js +0 -25
  204. package/dist/triangle-alert-DxnFj4-B.js +0 -17
  205. package/dist/upload-DZu1adQz.js +0 -17
  206. package/dist/x-DJOd1hS4.js +0 -10
@@ -1,182 +1,221 @@
1
1
  import { Dt as e, G as t, Ot as n, P as r, S as i, X as a, c as o, d as s, g as c, h as l, i as u, j as d, k as f, kt as p, l as m, r as h, rt as g, s as _, u as v, v as y } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
2
2
  import { c as b, s as x } from "./runtime-dom.esm-bundler-BuG03jBM.js";
3
- import { C as S, D as C, E as w, S as T } from "./useEditorCore-DdkQuTHl.js";
4
- import { t as E } from "./dist-dNiknO7j.js";
5
- import { J as D, K as O, O as k, U as ee, _ as te, h as ne, w as re } from "./keys-C3P1yxnr.js";
6
- import { t as A } from "./useI18n-CL6RfPzK.js";
7
- import { n as j } from "./usePopoverPosition-CWxaIWd3.js";
8
- import { t as M } from "./createLucideIcon-Bvw1Zx56.js";
9
- import { a as N, i as ie, n as P, r as ae, t as F } from "./RichTextEditorContent-BmTcV2-a.js";
10
- import { o as oe, s as se } from "./MergeTagInput-RytOlh1A.js";
11
- import { t as ce } from "./loader-circle-t-SVgmJ3.js";
12
- import { n as le, r as ue, t as de } from "./text-align-start-DrxjxvIy.js";
13
- import { t as I } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
- import { a as fe, n as pe, o as me, s as he } from "./styleConstants-C_YAPdQS.js";
15
- import { t as L } from "./ColorPicker-C6EOwtHC.js";
16
- var R = M("face-slightly-smiling", [
17
- ["path", {
18
- d: "M15 10V9",
19
- key: "4dkmfx"
20
- }],
21
- ["path", {
22
- d: "M16.472 15a6 6 0 01-8.943 0",
23
- key: "7qomzy"
24
- }],
25
- ["path", {
26
- d: "M9 10V9",
27
- key: "1lazqi"
28
- }],
29
- ["circle", {
30
- cx: "12",
31
- cy: "12",
32
- r: "10",
33
- key: "1mglay"
34
- }]
35
- ]), ge = M("list-ordered", [
36
- ["path", {
37
- d: "M11 5h10",
38
- key: "1cz7ny"
39
- }],
40
- ["path", {
41
- d: "M11 12h10",
42
- key: "1438ji"
43
- }],
44
- ["path", {
45
- d: "M11 19h10",
46
- key: "11t30w"
47
- }],
48
- ["path", {
49
- d: "M4 4h1v5",
50
- key: "10yrso"
51
- }],
52
- ["path", {
53
- d: "M4 9h2",
54
- key: "r1h2o0"
55
- }],
56
- ["path", {
57
- d: "M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",
58
- key: "xtkcd5"
59
- }]
60
- ]), _e = M("list", [
61
- ["path", {
62
- d: "M3 5h.01",
63
- key: "18ugdj"
64
- }],
65
- ["path", {
66
- d: "M3 12h.01",
67
- key: "nlz23k"
68
- }],
69
- ["path", {
70
- d: "M3 19h.01",
71
- key: "noohij"
72
- }],
73
- ["path", {
74
- d: "M8 5h13",
75
- key: "1pao27"
76
- }],
77
- ["path", {
78
- d: "M8 12h13",
79
- key: "1za7za"
80
- }],
81
- ["path", {
82
- d: "M8 19h13",
83
- key: "m83p4d"
84
- }]
85
- ]), ve = M("remove-formatting", [
86
- ["path", {
87
- d: "M4 7V4h16v3",
88
- key: "9msm58"
89
- }],
90
- ["path", {
91
- d: "M5 20h6",
92
- key: "1h6pxn"
93
- }],
94
- ["path", {
95
- d: "M13 4 8 20",
96
- key: "kqq6aj"
97
- }],
98
- ["path", {
99
- d: "m15 15 5 5",
100
- key: "me55sn"
101
- }],
102
- ["path", {
103
- d: "m20 15-5 5",
104
- key: "11p7ol"
105
- }]
106
- ]), ye = M("strikethrough", [
107
- ["path", {
108
- d: "M16 4H9a3 3 0 0 0-2.83 4",
109
- key: "43sutm"
110
- }],
111
- ["path", {
112
- d: "M14 12a4 4 0 0 1 0 8H6",
113
- key: "nlfj13"
114
- }],
115
- ["line", {
3
+ import { R as S } from "./dist-tGkjkX-v.js";
4
+ import { C, D as w, E as T, S as E } from "./useEditorCore-CYGvurZa.js";
5
+ import { t as D } from "./dist-dNiknO7j.js";
6
+ import { J as O, K as k, O as A, U as j, _ as M, h as N, w as ee } from "./keys-C3P1yxnr.js";
7
+ import { t as P } from "./useI18n-CL6RfPzK.js";
8
+ import { n as F } from "./usePopoverPosition-CWxaIWd3.js";
9
+ import { t as I } from "./createLucideIcon-05lB8iWe.js";
10
+ import { a as te, i as ne, n as L, r as re, t as R } from "./RichTextEditorContent-riOB-rKD.js";
11
+ import { o as ie, s as ae } from "./MergeTagInput-D1hzsn2b.js";
12
+ import { t as oe } from "./loader-circle-B2Y8xZQb.js";
13
+ import { n as se, r as ce, t as le } from "./text-align-start-Bcmo_VUY.js";
14
+ import { t as z } from "./_plugin-vue_export-helper-B3ysoDQm.js";
15
+ import { a as ue, n as de, o as fe, s as pe } from "./styleConstants-C_YAPdQS.js";
16
+ import { t as B } from "./ColorPicker-DtozuN75.js";
17
+ var V = I({
18
+ name: "face-slightly-smiling",
19
+ size: 24,
20
+ node: [
21
+ ["path", {
22
+ d: "M15 10V9",
23
+ key: "4dkmfx"
24
+ }],
25
+ ["path", {
26
+ d: "M16.472 15a6 6 0 01-8.943 0",
27
+ key: "7qomzy"
28
+ }],
29
+ ["path", {
30
+ d: "M9 10V9",
31
+ key: "1lazqi"
32
+ }],
33
+ ["circle", {
34
+ cx: "12",
35
+ cy: "12",
36
+ r: "10",
37
+ key: "1mglay"
38
+ }]
39
+ ],
40
+ aliases: ["smile"]
41
+ }), me = I({
42
+ name: "list-ordered",
43
+ size: 24,
44
+ node: [
45
+ ["path", {
46
+ d: "M11 5h10",
47
+ key: "1cz7ny"
48
+ }],
49
+ ["path", {
50
+ d: "M11 12h10",
51
+ key: "1438ji"
52
+ }],
53
+ ["path", {
54
+ d: "M11 19h10",
55
+ key: "11t30w"
56
+ }],
57
+ ["path", {
58
+ d: "M4 4h1v5",
59
+ key: "10yrso"
60
+ }],
61
+ ["path", {
62
+ d: "M4 9h2",
63
+ key: "r1h2o0"
64
+ }],
65
+ ["path", {
66
+ d: "M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",
67
+ key: "xtkcd5"
68
+ }]
69
+ ]
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
+ }), ge = I({
100
+ name: "remove-formatting",
101
+ size: 24,
102
+ node: [
103
+ ["path", {
104
+ d: "M4 7V4h16v3",
105
+ key: "9msm58"
106
+ }],
107
+ ["path", {
108
+ d: "M5 20h6",
109
+ key: "1h6pxn"
110
+ }],
111
+ ["path", {
112
+ d: "M13 4 8 20",
113
+ key: "kqq6aj"
114
+ }],
115
+ ["path", {
116
+ d: "m15 15 5 5",
117
+ key: "me55sn"
118
+ }],
119
+ ["path", {
120
+ d: "m20 15-5 5",
121
+ key: "11p7ol"
122
+ }]
123
+ ]
124
+ }), _e = I({
125
+ name: "strikethrough",
126
+ size: 24,
127
+ node: [
128
+ ["path", {
129
+ d: "M16 4H9a3 3 0 0 0-2.83 4",
130
+ key: "43sutm"
131
+ }],
132
+ ["path", {
133
+ d: "M14 12a4 4 0 0 1 0 8H6",
134
+ key: "nlfj13"
135
+ }],
136
+ ["line", {
137
+ x1: "4",
138
+ x2: "20",
139
+ y1: "12",
140
+ y2: "12",
141
+ key: "1e0a9i"
142
+ }]
143
+ ]
144
+ }), ve = I({
145
+ name: "subscript",
146
+ size: 24,
147
+ node: [
148
+ ["path", {
149
+ d: "m4 5 8 8",
150
+ key: "1eunvl"
151
+ }],
152
+ ["path", {
153
+ d: "m12 5-8 8",
154
+ key: "1ah0jp"
155
+ }],
156
+ ["path", {
157
+ d: "M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07",
158
+ key: "e8ta8j"
159
+ }]
160
+ ]
161
+ }), ye = I({
162
+ name: "superscript",
163
+ size: 24,
164
+ node: [
165
+ ["path", {
166
+ d: "m4 19 8-8",
167
+ key: "hr47gm"
168
+ }],
169
+ ["path", {
170
+ d: "m12 19-8-8",
171
+ key: "1dhhmo"
172
+ }],
173
+ ["path", {
174
+ d: "M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06",
175
+ key: "1dfcux"
176
+ }]
177
+ ]
178
+ }), be = I({
179
+ name: "text-align-justify",
180
+ size: 24,
181
+ node: [
182
+ ["path", {
183
+ d: "M3 5h18",
184
+ key: "1u36vt"
185
+ }],
186
+ ["path", {
187
+ d: "M3 12h18",
188
+ key: "1i2n21"
189
+ }],
190
+ ["path", {
191
+ d: "M3 19h18",
192
+ key: "awlh7x"
193
+ }]
194
+ ],
195
+ aliases: ["align-justify"]
196
+ }), xe = I({
197
+ name: "underline",
198
+ size: 24,
199
+ node: [["path", {
200
+ d: "M6 4v6a6 6 0 0 0 12 0V4",
201
+ key: "9kb039"
202
+ }], ["line", {
116
203
  x1: "4",
117
204
  x2: "20",
118
- y1: "12",
119
- y2: "12",
120
- key: "1e0a9i"
121
- }]
122
- ]), be = M("subscript", [
123
- ["path", {
124
- d: "m4 5 8 8",
125
- key: "1eunvl"
126
- }],
127
- ["path", {
128
- d: "m12 5-8 8",
129
- key: "1ah0jp"
130
- }],
131
- ["path", {
132
- d: "M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07",
133
- key: "e8ta8j"
134
- }]
135
- ]), xe = M("superscript", [
136
- ["path", {
137
- d: "m4 19 8-8",
138
- key: "hr47gm"
139
- }],
140
- ["path", {
141
- d: "m12 19-8-8",
142
- key: "1dhhmo"
143
- }],
144
- ["path", {
145
- d: "M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06",
146
- key: "1dfcux"
147
- }]
148
- ]), Se = M("text-align-justify", [
149
- ["path", {
150
- d: "M3 5h18",
151
- key: "1u36vt"
152
- }],
153
- ["path", {
154
- d: "M3 12h18",
155
- key: "1i2n21"
156
- }],
157
- ["path", {
158
- d: "M3 19h18",
159
- key: "awlh7x"
160
- }]
161
- ]), Ce = M("underline", [["path", {
162
- d: "M6 4v6a6 6 0 0 0 12 0V4",
163
- key: "9kb039"
164
- }], ["line", {
165
- x1: "4",
166
- x2: "20",
167
- y1: "20",
168
- y2: "20",
169
- key: "nun2al"
170
- }]]), z = [
205
+ y1: "20",
206
+ y2: "20",
207
+ key: "nun2al"
208
+ }]]
209
+ }), H = [
171
210
  "aria-label",
172
211
  "title",
173
212
  "aria-expanded"
174
- ], B = ["aria-label"], V = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, H = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, U = ["aria-label", "onClick"], we = /* @__PURE__ */ y({
213
+ ], U = ["aria-label"], W = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, G = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, K = ["aria-label", "onClick"], Se = /* @__PURE__ */ y({
175
214
  __name: "EmojiPickerDropdown",
176
215
  emits: ["insert"],
177
216
  setup(t, { emit: n }) {
178
- let r = n, { categories: i, isOpen: l, toggle: u, close: m } = w(), { t: y, format: S } = A(), T = a(null), D = a(null), O = _(() => l.value);
179
- C(T, O), E(D, () => {
217
+ let r = n, { categories: i, isOpen: l, toggle: u, close: m } = T(), { t: y, format: S } = P(), C = a(null), E = a(null), O = _(() => l.value);
218
+ w(C, O), D(E, () => {
180
219
  l.value && m();
181
220
  });
182
221
  function k(e) {
@@ -184,7 +223,7 @@ var R = M("face-slightly-smiling", [
184
223
  }
185
224
  return (t, n) => (f(), s("div", {
186
225
  ref_key: "rootRef",
187
- ref: D,
226
+ ref: E,
188
227
  class: "tpl:relative"
189
228
  }, [o("button", {
190
229
  type: "button",
@@ -195,14 +234,14 @@ var R = M("face-slightly-smiling", [
195
234
  "aria-haspopup": "dialog",
196
235
  "aria-controls": "tpl-emoji-picker",
197
236
  onClick: n[0] ||= (...e) => g(u) && g(u)(...e)
198
- }, [c(g(R), {
237
+ }, [c(g(V), {
199
238
  size: 16,
200
239
  "stroke-width": 2
201
- })], 10, z), g(l) ? (f(), s("div", {
240
+ })], 10, H), g(l) ? (f(), s("div", {
202
241
  key: 0,
203
242
  id: "tpl-emoji-picker",
204
243
  ref_key: "pickerRef",
205
- ref: T,
244
+ ref: C,
206
245
  role: "dialog",
207
246
  "aria-modal": "false",
208
247
  "aria-label": g(y).paragraphEditor.insertEmoji,
@@ -212,19 +251,19 @@ var R = M("face-slightly-smiling", [
212
251
  }, [(f(!0), s(h, null, d(g(i), (e) => (f(), s("div", {
213
252
  key: e.key,
214
253
  class: "tpl:mb-2 tpl:last:mb-0"
215
- }, [o("div", V, p(g(y).emoji[e.key]), 1), o("div", H, [(f(!0), s(h, null, d(e.emojis, (e) => (f(), s("button", {
254
+ }, [o("div", W, p(g(y).emoji[e.key]), 1), o("div", G, [(f(!0), s(h, null, d(e.emojis, (e) => (f(), s("button", {
216
255
  key: e,
217
256
  type: "button",
218
257
  "aria-label": g(S)(g(y).paragraphEditor.emojiItemLabel, { emoji: e }),
219
258
  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)]",
220
259
  onClick: (t) => k(e)
221
- }, p(e), 9, U))), 128))])]))), 128))], 40, B)) : v("", !0)], 512));
260
+ }, p(e), 9, K))), 128))])]))), 128))], 40, U)) : v("", !0)], 512));
222
261
  }
223
- }), W = [
262
+ }), q = [
224
263
  "aria-label",
225
264
  "title",
226
265
  "aria-pressed"
227
- ], G = /* @__PURE__ */ y({
266
+ ], J = /* @__PURE__ */ y({
228
267
  __name: "ToolbarIconButton",
229
268
  props: {
230
269
  icon: {},
@@ -243,20 +282,20 @@ var R = M("face-slightly-smiling", [
243
282
  }, [(f(), m(r(t.icon), {
244
283
  size: t.size ?? 16,
245
284
  "stroke-width": t.strokeWidth ?? 2
246
- }, null, 8, ["size", "stroke-width"]))], 10, W));
285
+ }, null, 8, ["size", "stroke-width"]))], 10, q));
247
286
  }
248
- }), K = {}, q = {
287
+ }), Y = {}, X = {
249
288
  class: "tpl:mx-1 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
250
289
  "aria-hidden": "true"
251
290
  };
252
- function J(e, t) {
253
- return f(), s("span", q);
291
+ function Z(e, t) {
292
+ return f(), s("span", X);
254
293
  }
255
- var Y = /*#__PURE__*/ I(K, [["render", J]]), X = [
294
+ var Q = /*#__PURE__*/ z(Y, [["render", Z]]), Ce = [
256
295
  "value",
257
296
  "aria-label",
258
297
  "title"
259
- ], Te = { value: "" }, Ee = ["value"], Z = /* @__PURE__ */ y({
298
+ ], we = { value: "" }, Te = ["value"], $ = /* @__PURE__ */ y({
260
299
  __name: "ToolbarSelect",
261
300
  props: {
262
301
  modelValue: {},
@@ -283,23 +322,23 @@ var Y = /*#__PURE__*/ I(K, [["render", J]]), X = [
283
322
  "aria-label": t.label,
284
323
  title: t.label,
285
324
  onChange: i
286
- }, [o("option", Te, p(t.placeholder ?? ""), 1), (f(!0), s(h, null, d(t.options, (e) => (f(), s("option", {
325
+ }, [o("option", we, p(t.placeholder ?? ""), 1), (f(!0), s(h, null, d(t.options, (e) => (f(), s("option", {
287
326
  key: a(e),
288
327
  value: a(e)
289
- }, p(c(e)), 9, Ee))), 128))], 42, X));
328
+ }, p(c(e)), 9, Te))), 128))], 42, Ce));
290
329
  }
291
330
  });
292
331
  //#endregion
293
332
  //#region src/utils/richTextColor.ts
294
- function Q(e, t) {
333
+ function Ee(e, t) {
295
334
  return e || t || "#000000";
296
335
  }
297
336
  //#endregion
298
337
  //#region src/components/blocks/ParagraphToolbar.vue?vue&type=script&setup=true&lang.ts
299
- var De = ["data-tpl-theme", "aria-label"], $ = { 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 = {
338
+ var De = ["data-tpl-theme", "aria-label"], Oe = { class: "tpl:flex tpl:items-center tpl:gap-1" }, ke = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Ae = ["aria-label", "title"], je = ["aria-label", "title"], Me = {
300
339
  key: 1,
301
340
  class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
302
- }, Me = /* @__PURE__ */ y({
341
+ }, Ne = /* @__PURE__ */ y({
303
342
  __name: "ParagraphToolbar",
304
343
  props: {
305
344
  editor: {},
@@ -314,53 +353,53 @@ var De = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
314
353
  "add-logic-tag"
315
354
  ],
316
355
  setup(e, { emit: t }) {
317
- let r = e, a = t, d = i(ee, null), y = i(O, null), b = D(te, "ParagraphToolbar"), x = j(), S = i(k, null), C = i(re, null), w = i(ne, null), T = _(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: E } = A(), M = b.fonts;
318
- function P(e) {
356
+ let r = e, a = t, d = i(j, null), y = i(k, null), b = O(M, "ParagraphToolbar"), x = F(), S = i(A, null), C = i(ee, null), w = i(N, null), T = _(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: E } = P(), D = b.fonts;
357
+ function I(e) {
319
358
  r.editor?.chain().focus().insertContent(e).run();
320
359
  }
321
- function F(e) {
360
+ function L(e) {
322
361
  return r.editor?.getAttributes("textStyle")[e] || "";
323
362
  }
324
- function I(e) {
363
+ function R(e) {
325
364
  let t = r.editor?.chain().focus();
326
365
  e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
327
366
  }
328
- function R(e) {
367
+ function z(e) {
329
368
  let t = r.editor?.chain().focus();
330
369
  e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
331
370
  }
332
- function z() {
371
+ function V() {
333
372
  return r.editor?.isActive("link") ?? !1;
334
373
  }
335
- function B() {
374
+ function H() {
336
375
  return r.editor?.getAttributes("link").color || "";
337
376
  }
338
- function V(e) {
377
+ function U(e) {
339
378
  let t = r.editor?.chain().focus();
340
- t && (z() ? (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());
379
+ 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());
341
380
  }
342
- function H() {
381
+ function W() {
343
382
  let e = w?.content.value.settings;
344
- return z() ? Q(B(), e?.linkColor || e?.textColor) : Q(F("color"), e?.textColor);
383
+ return V() ? Ee(H(), e?.linkColor || e?.textColor) : Ee(L("color"), e?.textColor);
345
384
  }
346
- function U() {
347
- return z() ? B() : F("color");
385
+ function G() {
386
+ return V() ? H() : L("color");
348
387
  }
349
- function W() {
388
+ function K() {
350
389
  return r.editor?.getAttributes("paragraph").lineHeight || "";
351
390
  }
352
- function K(e) {
391
+ function q(e) {
353
392
  let t = r.editor?.chain().focus();
354
393
  e ? t?.setLineHeight(e).run() : t?.unsetLineHeight().run();
355
394
  }
356
- function q(e) {
395
+ function Y(e) {
357
396
  let t = r.editor?.chain().focus();
358
397
  e && e !== "normal" ? t?.setLetterSpacing(e).run() : t?.unsetLetterSpacing().run();
359
398
  }
360
- function J() {
399
+ function X() {
361
400
  return r.editor?.getAttributes("highlight").color || "";
362
401
  }
363
- function X(e) {
402
+ function Z(e) {
364
403
  let t = r.editor?.chain().focus();
365
404
  e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
366
405
  }
@@ -379,63 +418,63 @@ var De = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
379
418
  transform: "translateY(-100%)",
380
419
  flexDirection: "column"
381
420
  })
382
- }, [!e.isLoading && e.editor ? (f(), s(h, { key: 0 }, [o("div", $, [
383
- c(Z, {
384
- "model-value": F("fontFamily"),
385
- options: g(M),
421
+ }, [!e.isLoading && e.editor ? (f(), s(h, { key: 0 }, [o("div", Oe, [
422
+ c($, {
423
+ "model-value": L("fontFamily"),
424
+ options: g(D),
386
425
  label: g(E).paragraphEditor.fontFamily,
387
426
  placeholder: g(E).paragraphEditor.defaultFont,
388
427
  "width-class": "tpl:w-32",
389
- "onUpdate:modelValue": I
428
+ "onUpdate:modelValue": R
390
429
  }, null, 8, [
391
430
  "model-value",
392
431
  "options",
393
432
  "label",
394
433
  "placeholder"
395
434
  ]),
396
- c(Z, {
397
- "model-value": F("fontSize"),
398
- options: g(fe),
435
+ c($, {
436
+ "model-value": L("fontSize"),
437
+ options: g(ue),
399
438
  label: g(E).paragraphEditor.fontSize,
400
439
  placeholder: g(E).paragraphEditor.defaultSize,
401
440
  "width-class": "tpl:w-20",
402
- "onUpdate:modelValue": R
441
+ "onUpdate:modelValue": z
403
442
  }, null, 8, [
404
443
  "model-value",
405
444
  "options",
406
445
  "label",
407
446
  "placeholder"
408
447
  ]),
409
- c(Y),
410
- c(L, {
448
+ c(Q),
449
+ c(B, {
411
450
  "swatch-only": "",
412
451
  size: "sm",
413
452
  "data-testid": "text-color-picker",
414
- "model-value": U(),
415
- "seed-color": H(),
453
+ "model-value": G(),
454
+ "seed-color": W(),
416
455
  "aria-label": g(E).paragraphEditor.textColor,
417
- "onUpdate:modelValue": V
456
+ "onUpdate:modelValue": U
418
457
  }, null, 8, [
419
458
  "model-value",
420
459
  "seed-color",
421
460
  "aria-label"
422
461
  ]),
423
- c(L, {
462
+ c(B, {
424
463
  "swatch-only": "",
425
464
  size: "sm",
426
465
  "data-testid": "highlight-color-picker",
427
- "model-value": J(),
428
- "seed-color": g(pe),
466
+ "model-value": X(),
467
+ "seed-color": g(de),
429
468
  "aria-label": g(E).paragraphEditor.highlightColor,
430
- "onUpdate:modelValue": X
469
+ "onUpdate:modelValue": Z
431
470
  }, null, 8, [
432
471
  "model-value",
433
472
  "seed-color",
434
473
  "aria-label"
435
474
  ]),
436
- c(Y),
437
- c(G, {
438
- icon: g(N),
475
+ c(Q),
476
+ c(J, {
477
+ icon: g(te),
439
478
  label: g(E).paragraphEditor.bold,
440
479
  active: e.editor.isActive("bold"),
441
480
  "stroke-width": 2.5,
@@ -445,8 +484,8 @@ var De = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
445
484
  "label",
446
485
  "active"
447
486
  ]),
448
- c(G, {
449
- icon: g(ie),
487
+ c(J, {
488
+ icon: g(ne),
450
489
  label: g(E).paragraphEditor.italic,
451
490
  active: e.editor.isActive("italic"),
452
491
  onClick: r[1] ||= (t) => e.editor.chain().focus().toggleItalic().run()
@@ -455,8 +494,8 @@ var De = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
455
494
  "label",
456
495
  "active"
457
496
  ]),
458
- c(G, {
459
- icon: g(Ce),
497
+ c(J, {
498
+ icon: g(xe),
460
499
  label: g(E).paragraphEditor.underline,
461
500
  active: e.editor.isActive("underline"),
462
501
  onClick: r[2] ||= (t) => e.editor.chain().focus().toggleUnderline().run()
@@ -465,8 +504,8 @@ var De = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
465
504
  "label",
466
505
  "active"
467
506
  ]),
468
- c(G, {
469
- icon: g(ye),
507
+ c(J, {
508
+ icon: g(_e),
470
509
  label: g(E).paragraphEditor.strikethrough,
471
510
  active: e.editor.isActive("strike"),
472
511
  onClick: r[3] ||= (t) => e.editor.chain().focus().toggleStrike().run()
@@ -475,9 +514,9 @@ var De = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
475
514
  "label",
476
515
  "active"
477
516
  ]),
478
- c(Y),
479
- c(G, {
480
- icon: g(be),
517
+ c(Q),
518
+ c(J, {
519
+ icon: g(ve),
481
520
  label: g(E).paragraphEditor.subscript,
482
521
  active: e.editor.isActive("subscript"),
483
522
  onClick: r[4] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
@@ -486,8 +525,8 @@ var De = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
486
525
  "label",
487
526
  "active"
488
527
  ]),
489
- c(G, {
490
- icon: g(xe),
528
+ c(J, {
529
+ icon: g(ye),
491
530
  label: g(E).paragraphEditor.superscript,
492
531
  active: e.editor.isActive("superscript"),
493
532
  onClick: r[5] ||= (t) => e.editor.chain().focus().toggleSuperscript().run()
@@ -496,9 +535,9 @@ var De = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
496
535
  "label",
497
536
  "active"
498
537
  ]),
499
- c(Y),
500
- c(G, {
501
- icon: g(ae),
538
+ c(Q),
539
+ c(J, {
540
+ icon: g(re),
502
541
  label: g(E).paragraphEditor.addLink,
503
542
  active: e.editor.isActive("link"),
504
543
  onClick: r[6] ||= (e) => a("open-link-dialog")
@@ -507,9 +546,9 @@ var De = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
507
546
  "label",
508
547
  "active"
509
548
  ])
510
- ]), o("div", Oe, [
511
- c(G, {
512
- icon: g(_e),
549
+ ]), o("div", ke, [
550
+ c(J, {
551
+ icon: g(he),
513
552
  label: g(E).paragraphEditor.bulletList,
514
553
  active: e.editor.isActive("bulletList"),
515
554
  onClick: r[7] ||= (t) => e.editor.chain().focus().toggleBulletList().run()
@@ -518,8 +557,8 @@ var De = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
518
557
  "label",
519
558
  "active"
520
559
  ]),
521
- c(G, {
522
- icon: g(ge),
560
+ c(J, {
561
+ icon: g(me),
523
562
  label: g(E).paragraphEditor.numberedList,
524
563
  active: e.editor.isActive("orderedList"),
525
564
  onClick: r[8] ||= (t) => e.editor.chain().focus().toggleOrderedList().run()
@@ -528,9 +567,9 @@ var De = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
528
567
  "label",
529
568
  "active"
530
569
  ]),
531
- c(Y),
532
- c(G, {
533
- icon: g(de),
570
+ c(Q),
571
+ c(J, {
572
+ icon: g(le),
534
573
  label: g(E).paragraphEditor.alignLeft,
535
574
  active: e.editor.isActive({ textAlign: "left" }),
536
575
  onClick: r[9] ||= (t) => e.editor.chain().focus().setTextAlign("left").run()
@@ -539,8 +578,8 @@ var De = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
539
578
  "label",
540
579
  "active"
541
580
  ]),
542
- c(G, {
543
- icon: g(ue),
581
+ c(J, {
582
+ icon: g(ce),
544
583
  label: g(E).paragraphEditor.alignCenter,
545
584
  active: e.editor.isActive({ textAlign: "center" }),
546
585
  onClick: r[10] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
@@ -549,8 +588,8 @@ var De = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
549
588
  "label",
550
589
  "active"
551
590
  ]),
552
- c(G, {
553
- icon: g(le),
591
+ c(J, {
592
+ icon: g(se),
554
593
  label: g(E).paragraphEditor.alignRight,
555
594
  active: e.editor.isActive({ textAlign: "right" }),
556
595
  onClick: r[11] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
@@ -559,8 +598,8 @@ var De = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
559
598
  "label",
560
599
  "active"
561
600
  ]),
562
- c(G, {
563
- icon: g(Se),
601
+ c(J, {
602
+ icon: g(be),
564
603
  label: g(E).paragraphEditor.alignJustify,
565
604
  active: e.editor.isActive({ textAlign: "justify" }),
566
605
  onClick: r[12] ||= (t) => e.editor.chain().focus().setTextAlign("justify").run()
@@ -569,67 +608,67 @@ var De = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
569
608
  "label",
570
609
  "active"
571
610
  ]),
572
- c(Y),
573
- c(Z, {
574
- "model-value": W(),
575
- options: g(he),
611
+ c(Q),
612
+ c($, {
613
+ "model-value": K(),
614
+ options: g(pe),
576
615
  label: g(E).paragraphEditor.lineHeight,
577
616
  placeholder: "LH",
578
617
  "width-class": "tpl:w-16",
579
- "onUpdate:modelValue": K
618
+ "onUpdate:modelValue": q
580
619
  }, null, 8, [
581
620
  "model-value",
582
621
  "options",
583
622
  "label"
584
623
  ]),
585
- c(Z, {
586
- "model-value": F("letterSpacing"),
587
- options: g(me),
624
+ c($, {
625
+ "model-value": L("letterSpacing"),
626
+ options: g(fe),
588
627
  label: g(E).paragraphEditor.letterSpacing,
589
628
  placeholder: "LS",
590
629
  "width-class": "tpl:w-20",
591
- "onUpdate:modelValue": q
630
+ "onUpdate:modelValue": Y
592
631
  }, null, 8, [
593
632
  "model-value",
594
633
  "options",
595
634
  "label"
596
635
  ]),
597
- c(Y),
598
- c(G, {
599
- icon: g(ve),
636
+ c(Q),
637
+ c(J, {
638
+ icon: g(ge),
600
639
  label: g(E).paragraphEditor.clearFormatting,
601
640
  onClick: r[13] ||= (t) => e.editor.chain().focus().clearNodes().unsetAllMarks().run()
602
641
  }, null, 8, ["icon", "label"]),
603
- c(Y),
604
- c(we, { onInsert: P }),
605
- e.canRequestMergeTag ? (f(), s(h, { key: 0 }, [c(Y), o("button", {
642
+ c(Q),
643
+ c(Se, { onInsert: I }),
644
+ e.canRequestMergeTag ? (f(), s(h, { key: 0 }, [c(Q), o("button", {
606
645
  type: "button",
607
646
  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)]",
608
647
  "aria-label": g(E).mergeTag.insert,
609
648
  title: g(E).mergeTag.insert,
610
649
  onClick: r[14] ||= (e) => a("add-merge-tag")
611
- }, [c(g(oe), {
650
+ }, [c(g(ie), {
612
651
  size: 16,
613
652
  "stroke-width": 2
614
- }), l(" " + p(g(E).mergeTag.insertShort), 1)], 8, ke)], 64)) : v("", !0),
615
- e.canInsertLogicTag ? (f(), s(h, { key: 1 }, [c(Y), o("button", {
653
+ }), l(" " + p(g(E).mergeTag.insertShort), 1)], 8, Ae)], 64)) : v("", !0),
654
+ e.canInsertLogicTag ? (f(), s(h, { key: 1 }, [c(Q), o("button", {
616
655
  type: "button",
617
656
  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)]",
618
657
  "aria-label": g(E).logicTag.insert,
619
658
  title: g(E).logicTag.insert,
620
659
  "data-testid": "insert-logic-button",
621
660
  onClick: r[15] ||= (e) => a("add-logic-tag")
622
- }, [c(g(se), {
661
+ }, [c(g(ae), {
623
662
  size: 16,
624
663
  "stroke-width": 2
625
- }), l(" " + p(g(E).logicTag.insertShort), 1)], 8, Ae)], 64)) : v("", !0)
626
- ])], 64)) : (f(), s("div", je, [c(g(ce), {
664
+ }), l(" " + p(g(E).logicTag.insertShort), 1)], 8, je)], 64)) : v("", !0)
665
+ ])], 64)) : (f(), s("div", Me, [c(g(oe), {
627
666
  class: "tpl-spinner",
628
667
  size: 14,
629
668
  "stroke-width": 2
630
669
  }), l(" " + p(g(E).errors.editorLoading), 1)]))], 12, De)], 8, ["to"])) : v("", !0);
631
670
  }
632
- }), Ne = { class: "tpl-text-editor-wrapper tpl:relative" }, Pe = /* @__PURE__ */ y({
671
+ }), Pe = { class: "tpl-text-editor-wrapper tpl:relative" }, Fe = /* @__PURE__ */ y({
633
672
  __name: "ParagraphEditor",
634
673
  props: {
635
674
  block: {},
@@ -637,13 +676,13 @@ var De = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
637
676
  },
638
677
  emits: ["done"],
639
678
  setup(e, { emit: n }) {
640
- let r = e, i = n, a = j(), { editor: o, EditorContent: l, isLoading: u, initError: d, retry: p, showLinkDialog: m, linkUrl: h, linkColor: _, linkDialogRef: v, canRequestMergeTag: y, canInsertLogicTag: b, openLinkDialog: x, insertLink: C, removeLink: w, closeLinkDialog: E, handleLinkKeydown: D, handleAddMergeTag: O, handleAddLogicTag: k } = T({
679
+ let r = e, a = n, o = F(), l = i(N, null), u = S(l?.content?.value?.settings ?? { locale: "en" }) === "rtl" ? "right" : "left", { editor: d, EditorContent: p, isLoading: m, initError: h, retry: _, showLinkDialog: v, linkUrl: y, linkColor: b, linkDialogRef: x, canRequestMergeTag: w, canInsertLogicTag: T, openLinkDialog: D, insertLink: O, removeLink: k, closeLinkDialog: A, handleLinkKeydown: j, handleAddMergeTag: M, handleAddLogicTag: ee } = E({
641
680
  blockId: () => r.block.id,
642
681
  blockContent: () => r.block.content,
643
- onDone: () => i("done"),
682
+ onDone: () => a("done"),
644
683
  editorName: "ParagraphEditor",
645
684
  async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
646
- let [{ Editor: o, EditorContent: s }, { default: c }, { default: l }, { default: u }, { default: d }, { default: f }, { default: p }, { TextStyle: m }, { default: h }, { default: g }, { default: _ }, { MergeTagNode: v, MergeTagSuggestion: y, LogicMergeTagNode: b, FontSize: x, LineHeight: C, LetterSpacing: w, LineBoundaryKeys: T }] = await Promise.all([
685
+ let [{ Editor: a, EditorContent: s }, { default: c }, { 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: w, LetterSpacing: T, LineBoundaryKeys: E }] = await Promise.all([
647
686
  import("./dist-BxFbxpgW.js").then((e) => e.r),
648
687
  import("./dist-DkcA6epL.js"),
649
688
  import("./dist-C1tsW_99.js"),
@@ -655,10 +694,10 @@ var De = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
655
694
  import("./dist-D08oVYhr.js"),
656
695
  import("./dist-DzdeVn-W.js"),
657
696
  import("./dist-f7HXo6j6.js"),
658
- import("./extensions-Mf8iHey9.js")
697
+ import("./extensions-Bawm4BOM.js")
659
698
  ]);
660
699
  return {
661
- TiptapEditor: o,
700
+ TiptapEditor: a,
662
701
  EC: s,
663
702
  extensions: [
664
703
  c.configure({
@@ -669,50 +708,53 @@ var De = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
669
708
  link: !1,
670
709
  underline: !1
671
710
  }),
672
- u,
673
711
  d,
674
712
  f,
675
- S(l).configure({
713
+ p,
714
+ C(l).configure({
676
715
  openOnClick: !1,
677
716
  HTMLAttributes: {
678
717
  target: "_blank",
679
718
  rel: "noopener noreferrer"
680
719
  }
681
720
  }),
682
- p.configure({ types: ["paragraph"] }),
683
- m,
721
+ m.configure({
722
+ types: ["paragraph"],
723
+ defaultAlignment: u
724
+ }),
684
725
  h,
685
726
  g,
686
- _.configure({ multicolor: !0 }),
687
- x,
688
- C,
727
+ _,
728
+ v.configure({ multicolor: !0 }),
729
+ S,
689
730
  w,
690
- v.configure({
731
+ T,
732
+ y.configure({
691
733
  mergeTags: e,
692
734
  syntax: t
693
735
  }),
694
- b.configure({ syntax: t }),
695
- T,
696
- ...r && n && e.length > 0 ? [y.configure({
736
+ x.configure({ syntax: t }),
737
+ E,
738
+ ...r && n && e.length > 0 ? [b.configure({
697
739
  mergeTags: e,
698
740
  char: n,
699
741
  emptyText: i,
700
- popoverRoot: a
742
+ popoverRoot: o
701
743
  })] : []
702
744
  ]
703
745
  };
704
746
  }
705
747
  });
706
- return (n, r) => (f(), s("div", Ne, [
707
- c(Me, {
708
- editor: g(o),
748
+ return (n, r) => (f(), s("div", Pe, [
749
+ c(Ne, {
750
+ editor: g(d),
709
751
  "toolbar-position": e.toolbarPosition,
710
- "is-loading": g(u),
711
- "can-request-merge-tag": g(y),
712
- "can-insert-logic-tag": g(b),
713
- onOpenLinkDialog: g(x),
714
- onAddMergeTag: g(O),
715
- onAddLogicTag: g(k)
752
+ "is-loading": g(m),
753
+ "can-request-merge-tag": g(w),
754
+ "can-insert-logic-tag": g(T),
755
+ onOpenLinkDialog: g(D),
756
+ onAddMergeTag: g(M),
757
+ onAddLogicTag: g(ee)
716
758
  }, null, 8, [
717
759
  "editor",
718
760
  "toolbar-position",
@@ -723,12 +765,12 @@ var De = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
723
765
  "onAddMergeTag",
724
766
  "onAddLogicTag"
725
767
  ]),
726
- c(F, {
727
- editor: g(o),
728
- "editor-content": g(l),
729
- "is-loading": g(u),
730
- "init-error": g(d),
731
- onRetry: g(p)
768
+ c(R, {
769
+ editor: g(d),
770
+ "editor-content": g(p),
771
+ "is-loading": g(m),
772
+ "init-error": g(h),
773
+ onRetry: g(_)
732
774
  }, null, 8, [
733
775
  "editor",
734
776
  "editor-content",
@@ -736,19 +778,19 @@ var De = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
736
778
  "init-error",
737
779
  "onRetry"
738
780
  ]),
739
- c(P, {
740
- visible: g(m),
741
- "is-editing-link": g(o)?.isActive("link") ?? !1,
742
- "dialog-ref": g(v),
743
- "onUpdate:dialogRef": r[0] ||= (e) => t(v) ? v.value = e : null,
744
- "link-url": g(h),
745
- "onUpdate:linkUrl": r[1] ||= (e) => t(h) ? h.value = e : null,
746
- "link-color": g(_),
747
- "onUpdate:linkColor": r[2] ||= (e) => t(_) ? _.value = e : null,
748
- onClose: g(E),
749
- onInsert: g(C),
750
- onRemove: g(w),
751
- onKeydown: g(D)
781
+ c(L, {
782
+ visible: g(v),
783
+ "is-editing-link": g(d)?.isActive("link") ?? !1,
784
+ "dialog-ref": g(x),
785
+ "onUpdate:dialogRef": r[0] ||= (e) => t(x) ? x.value = e : null,
786
+ "link-url": g(y),
787
+ "onUpdate:linkUrl": r[1] ||= (e) => t(y) ? y.value = e : null,
788
+ "link-color": g(b),
789
+ "onUpdate:linkColor": r[2] ||= (e) => t(b) ? b.value = e : null,
790
+ onClose: g(A),
791
+ onInsert: g(O),
792
+ onRemove: g(k),
793
+ onKeydown: g(j)
752
794
  }, null, 8, [
753
795
  "visible",
754
796
  "is-editing-link",
@@ -764,4 +806,4 @@ var De = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
764
806
  }
765
807
  });
766
808
  //#endregion
767
- export { Pe as default };
809
+ export { Fe as default };