@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,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 { E as S, S as C, T as w, x as T } from "./useEditorCore-ehUSEsbw.js";
3
- import { t as E } from "./dist-CAFTQ6Y2.js";
4
- import { J as D, K as O, O as k, U as ee, _ as te, h as ne, w as A } from "./keys-DQp8x7Nx.js";
5
- import { t as j } from "./useI18n-Ct1VIFcf.js";
6
- import { n as M } from "./usePopoverPosition-BxVWE5_0.js";
7
- import { Ct as N, P as re, R as ie, Rt as ae, S as oe, Vt as se, _ as ce, at as le, ct as ue, g as de, h as fe, it as pe, l as me, m as he, ot as ge, ut as _e, x as ve, y as ye } from "./icons-SP5Itd-A.js";
8
- import { t as P } from "./_plugin-vue_export-helper-B3ysoDQm.js";
9
- import { a as be, n as xe, o as Se, s as Ce } from "./styleConstants-C_YAPdQS.js";
10
- import { t as F } from "./ColorPicker-BubTDiS1.js";
11
- import { n as I, t as L } from "./RichTextEditorContent-S4KogjIj.js";
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 R = [
14
+ var V = [
14
15
  "aria-label",
15
16
  "title",
16
17
  "aria-expanded"
17
- ], z = ["aria-label"], B = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, V = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, H = ["aria-label", "onClick"], we = /* @__PURE__ */ a({
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 } = w(), { t: x, format: C } = j(), T = r(null), D = r(null), O = d(() => h.value);
22
- S(T, O), E(D, () => {
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: D,
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(N), {
42
+ }, [s(o(I), {
42
43
  size: 16,
43
44
  "stroke-width": 2
44
- })], 10, R), o(h) ? (n(), f("div", {
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: T,
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", B, b(o(x).emoji[e.key]), 1), _("div", V, [(n(!0), f(y, null, t(e.emojis, (e) => (n(), f("button", {
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(C)(o(x).paragraphEditor.emojiItemLabel, { emoji: e }),
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, H))), 128))])]))), 128))], 40, z)) : p("", !0)], 512));
65
+ }, b(e), 9, G))), 128))])]))), 128))], 40, H)) : p("", !0)], 512));
65
66
  }
66
- }), U = [
67
+ }), K = [
67
68
  "aria-label",
68
69
  "title",
69
70
  "aria-pressed"
70
- ], W = /* @__PURE__ */ a({
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, U));
90
+ }, null, 8, ["size", "stroke-width"]))], 10, K));
90
91
  }
91
- }), G = {}, K = {
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 q(e, t) {
96
- return n(), f("span", K);
96
+ function X(e, t) {
97
+ return n(), f("span", Y);
97
98
  }
98
- var J = /*#__PURE__*/ P(G, [["render", q]]), Y = [
99
+ var Z = /*#__PURE__*/ L(J, [["render", X]]), Q = [
99
100
  "value",
100
101
  "aria-label",
101
102
  "title"
102
- ], X = { value: "" }, Te = ["value"], Z = /* @__PURE__ */ a({
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", X, b(e.placeholder ?? ""), 1), (n(!0), f(y, null, t(e.options, (e) => (n(), f("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, Te))), 128))], 42, Y));
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 Q(e, t) {
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
- }, je = /* @__PURE__ */ a({
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(O, null), m = D(te, "ParagraphToolbar"), v = M(), S = e(k, null), C = e(A, null), w = e(ne, null), T = d(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: E } = j(), N = m.fonts;
161
- function P(e) {
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 I(e) {
165
+ function L(e) {
165
166
  return i.editor?.getAttributes("textStyle")[e] || "";
166
167
  }
167
- function L(e) {
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 R(e) {
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 z() {
176
+ function V() {
176
177
  return i.editor?.isActive("link") ?? !1;
177
178
  }
178
- function B() {
179
+ function H() {
179
180
  return i.editor?.getAttributes("link").color || "";
180
181
  }
181
- function V(e) {
182
+ function U(e) {
182
183
  let t = i.editor?.chain().focus();
183
- 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());
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 H() {
186
+ function W() {
186
187
  let e = w?.content.value.settings;
187
- return z() ? Q(B(), e?.linkColor || e?.textColor) : Q(I("color"), e?.textColor);
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 K(e) {
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 q(e) {
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 Y() {
204
+ function X() {
204
205
  return i.editor?.getAttributes("highlight").color || "";
205
206
  }
206
- function X(e) {
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(Z, {
227
- "model-value": I("fontFamily"),
228
- options: o(N),
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": L
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(Z, {
240
- "model-value": I("fontSize"),
241
- options: o(be),
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": R
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(J),
253
- s(F, {
253
+ s(Z),
254
+ s(R, {
254
255
  "swatch-only": "",
255
256
  size: "sm",
256
257
  "data-testid": "text-color-picker",
257
- "model-value": U(),
258
- "seed-color": H(),
258
+ "model-value": G(),
259
+ "seed-color": W(),
259
260
  "aria-label": o(E).paragraphEditor.textColor,
260
- "onUpdate:modelValue": V
261
+ "onUpdate:modelValue": U
261
262
  }, null, 8, [
262
263
  "model-value",
263
264
  "seed-color",
264
265
  "aria-label"
265
266
  ]),
266
- s(F, {
267
+ s(R, {
267
268
  "swatch-only": "",
268
269
  size: "sm",
269
270
  "data-testid": "highlight-color-picker",
270
- "model-value": Y(),
271
- "seed-color": o(xe),
271
+ "model-value": X(),
272
+ "seed-color": o(ye),
272
273
  "aria-label": o(E).paragraphEditor.highlightColor,
273
- "onUpdate:modelValue": X
274
+ "onUpdate:modelValue": Q
274
275
  }, null, 8, [
275
276
  "model-value",
276
277
  "seed-color",
277
278
  "aria-label"
278
279
  ]),
279
- s(J),
280
- s(W, {
281
- icon: o(se),
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(W, {
292
- icon: o(_e),
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(W, {
302
- icon: o(me),
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(W, {
312
- icon: o(oe),
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(J),
322
- s(W, {
323
- icon: o(ve),
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(W, {
333
- icon: o(ye),
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(J),
343
- s(W, {
344
- icon: o(ue),
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(W, {
355
- icon: o(le),
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(W, {
365
- icon: o(ge),
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(J),
375
- s(W, {
376
- icon: o(he),
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(W, {
386
- icon: o(ce),
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(W, {
396
- icon: o(de),
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(W, {
406
- icon: o(fe),
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(J),
416
- s(Z, {
417
- "model-value": G(),
418
- options: o(Ce),
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": K
423
+ "onUpdate:modelValue": J
423
424
  }, null, 8, [
424
425
  "model-value",
425
426
  "options",
426
427
  "label"
427
428
  ]),
428
- s(Z, {
429
- "model-value": I("letterSpacing"),
430
- options: o(Se),
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": q
435
+ "onUpdate:modelValue": Y
435
436
  }, null, 8, [
436
437
  "model-value",
437
438
  "options",
438
439
  "label"
439
440
  ]),
440
- s(J),
441
- s(W, {
442
- icon: o(ie),
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(J),
447
- s(we, { onInsert: P }),
448
- t.canRequestMergeTag ? (n(), f(y, { key: 0 }, [s(J), _("button", {
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(re), {
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(J), _("button", {
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(ae), {
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", $, [s(o(pe), {
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
- }), Me = { class: "tpl-text-editor-wrapper tpl:relative" }, Ne = /* @__PURE__ */ a({
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(e, { emit: t }) {
483
- let r = e, i = t, a = M(), { editor: c, EditorContent: l, isLoading: u, initError: d, retry: p, showLinkDialog: m, linkUrl: h, linkColor: g, linkDialogRef: _, canRequestMergeTag: y, canInsertLogicTag: b, openLinkDialog: x, insertLink: S, removeLink: w, closeLinkDialog: E, handleLinkKeydown: D, handleAddMergeTag: O, handleAddLogicTag: k } = T({
484
- blockId: () => r.block.id,
485
- blockContent: () => r.block.content,
486
- onDone: () => i("done"),
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: 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: S, LetterSpacing: w, LineBoundaryKeys: T }] = await Promise.all([
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-7z04EIGg.js")
502
+ import("./extensions-BpXY7jO5.js")
502
503
  ]);
503
504
  return {
504
- TiptapEditor: o,
505
- EC: s,
505
+ TiptapEditor: a,
506
+ EC: o,
506
507
  extensions: [
507
- c.configure({
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
- C(l).configure({
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
- p.configure({ types: ["paragraph"] }),
526
- m,
526
+ m.configure({
527
+ types: ["paragraph"],
528
+ defaultAlignment: u
529
+ }),
527
530
  h,
528
531
  g,
529
- _.configure({ multicolor: !0 }),
530
- x,
532
+ _,
533
+ v.configure({ multicolor: !0 }),
531
534
  S,
532
- w,
533
- v.configure({
535
+ C,
536
+ T,
537
+ y.configure({
534
538
  mergeTags: e,
535
539
  syntax: t
536
540
  }),
537
- b.configure({ syntax: t }),
538
- T,
539
- ...r && n && e.length > 0 ? [y.configure({
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: a
547
+ popoverRoot: c
544
548
  })] : []
545
549
  ]
546
550
  };
547
551
  }
548
552
  });
549
- return (t, r) => (n(), f("div", Me, [
550
- s(je, {
551
- editor: o(c),
552
- "toolbar-position": e.toolbarPosition,
553
- "is-loading": o(u),
554
- "can-request-merge-tag": o(y),
555
- "can-insert-logic-tag": o(b),
556
- onOpenLinkDialog: o(x),
557
- onAddMergeTag: o(O),
558
- onAddLogicTag: o(k)
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(L, {
570
- editor: o(c),
571
- "editor-content": o(l),
572
- "is-loading": o(u),
573
- "init-error": o(d),
574
- onRetry: o(p)
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(I, {
583
- visible: o(m),
584
- "is-editing-link": o(c)?.isActive("link") ?? !1,
585
- "dialog-ref": o(_),
586
- "onUpdate:dialogRef": r[0] ||= (e) => v(_) ? _.value = e : null,
587
- "link-url": o(h),
588
- "onUpdate:linkUrl": r[1] ||= (e) => v(h) ? h.value = e : null,
589
- "link-color": o(g),
590
- "onUpdate:linkColor": r[2] ||= (e) => v(g) ? g.value = e : null,
591
- onClose: o(E),
592
- onInsert: o(S),
593
- onRemove: o(w),
594
- onKeydown: o(D)
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 { Ne as default };
614
+ export { Pe as default };
611
615
 
612
- //# sourceMappingURL=ParagraphEditor-DCDHMcmx.js.map
616
+ //# sourceMappingURL=ParagraphEditor-DQn0HMfV.js.map