@templatical/editor 0.52.1 → 0.53.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 (396) hide show
  1. package/README.md +1 -1
  2. package/dist/AiAltTextPopover-NMJqQKvD.js +106 -0
  3. package/dist/{AiAltTextReview-9ySsXOTU.js → AiAltTextReview-Ci4zHwRc.js} +68 -66
  4. package/dist/AiChatPanel-DdhtfsmO.js +561 -0
  5. package/dist/{AiPanels-DqT4PgQ0.js → AiPanels-HBx7xoJR.js} +6 -6
  6. package/dist/{AiRewriteMenu-28agTycW.js → AiRewriteMenu-DPzSekZt.js} +76 -105
  7. package/dist/BlockIssueBadge-eIXZJ9M3.js +33 -0
  8. package/dist/BlockPreviewCanvas-DO-2TP_6.js +140 -0
  9. package/dist/{CloudHeaderExtras-QI82yF54.js → CloudHeaderExtras-XpjJjn3o.js} +4 -4
  10. package/dist/{CloudPanels-BKJaLkUN.js → CloudPanels-i2kZdrdP.js} +53 -53
  11. package/dist/CollaborationNotices-DANsjl7c.js +65 -0
  12. package/dist/{CollaboratorBar-CXQqN3VP.js → CollaboratorBar-CbbAA0m1.js} +24 -24
  13. package/dist/CommentsPanel-CYW3LWis.js +16 -0
  14. package/dist/CommentsSidebar-CcF4ISMi.js +526 -0
  15. package/dist/{CountdownBlock-CU2yTWtF.js → CountdownBlock-BMezkFbJ.js} +15 -15
  16. package/dist/CountdownToolbar-D3Lv74kU.js +258 -0
  17. package/dist/IssuesPanel-BMAG9042.js +371 -0
  18. package/dist/LanguageMenu-FlP_Jbup.js +403 -0
  19. package/dist/{LoadingTrack-DM4g6j7b.js → LoadingTrack-BG8cg9xi.js} +2 -2
  20. package/dist/LocaleNotices-DAnVszWu.js +46 -0
  21. package/dist/LogicTagInsertButton-BjYs-UQX.js +1096 -0
  22. package/dist/{MediaEditModal-Dy08GEwE.js → MediaEditModal-LnG-cF_S.js} +451 -451
  23. package/dist/{MediaPanels-BgEp7iCp.js → MediaPanels-C2r5fiFo.js} +4 -4
  24. package/dist/{MergeTagInput-B9dtUthD.js → MergeTagInput-BsnogCeY.js} +30 -30
  25. package/dist/{MergeTagModeToggle-DxujhYJ4.js → MergeTagModeToggle-DiufIQ-_.js} +49 -49
  26. package/dist/MergeTagTextarea-BweI-Xsi.js +126 -0
  27. package/dist/ParagraphEditor-qgBp5yIB.js +825 -0
  28. package/dist/{RestoreVersionDialog-C4s_JYCx.js → RestoreVersionDialog-DdYUrFiK.js} +23 -23
  29. package/dist/{RichTextEditorContent-o6HmE8GR.js → RichTextEditorContent-C5MAzx3E.js} +47 -47
  30. package/dist/{SaveBlockDialog-CWLrly6l.js → SaveBlockDialog-eK6fjtTy.js} +86 -86
  31. package/dist/{cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js → SavedBlocksBrowserModal-D2QHd2Yp.js} +135 -132
  32. package/dist/{SavedBlocksPanels-BE1N9rNZ.js → SavedBlocksPanels-Cl61f4Mf.js} +9 -9
  33. package/dist/{SavedBlocksPickBar-Dwl94xhP.js → SavedBlocksPickBar-CXP2dkeB.js} +15 -15
  34. package/dist/TemplateSettings-BKJrdZcH.js +294 -0
  35. package/dist/TestEmailModal-DQotJg6g.js +212 -0
  36. package/dist/{TestEmailPanel-DaFjP9QK.js → TestEmailPanel-CwiTzJsh.js} +4 -4
  37. package/dist/TitleEditor-CzSvsPAn.js +202 -0
  38. package/dist/ToggleSwitch-R3wCCYE6.js +43 -0
  39. package/dist/Toolbar-Cd75ci5W.js +3711 -0
  40. package/dist/{TplModal-DLMssVlt.js → TplModal-ZoXu40T9.js} +17 -17
  41. package/dist/{VersionHistoryMenu-BkbYUs0Q.js → VersionHistoryMenu-BvhN-Ofk.js} +39 -39
  42. package/dist/{VersionHistoryPanels-DP7HaYWv.js → VersionHistoryPanels-DPWMnYbd.js} +5 -5
  43. package/dist/VersionPreviewBanner-CuJnasxH.js +37 -0
  44. package/dist/WrapperBlock-D4fPwO0t.js +44 -0
  45. package/dist/{blockTypeIcons-BHjlPnPf.js → blockTypeIcons-BXMxu86H.js} +7 -7
  46. package/dist/bundle-stats.json +8 -8
  47. package/dist/{cdn/chunks/ca-CD-Kt1qz.js → ca-DOuIxWRv.js} +114 -2
  48. package/dist/cdn/chunks/AiAltTextPopover-ByZ0FEqI.js +107 -0
  49. package/dist/cdn/chunks/AiAltTextPopover-ByZ0FEqI.js.map +1 -0
  50. package/dist/cdn/chunks/{AiAltTextReview-BGLLSKLm.js → AiAltTextReview-Dtm3A2cD.js} +70 -68
  51. package/dist/cdn/chunks/AiAltTextReview-Dtm3A2cD.js.map +1 -0
  52. package/dist/cdn/chunks/AiChatPanel-DciEt27y.js +487 -0
  53. package/dist/cdn/chunks/AiChatPanel-DciEt27y.js.map +1 -0
  54. package/dist/cdn/chunks/{AiPanels-0wBarZSH.js → AiPanels-BV5D1itk.js} +11 -11
  55. package/dist/cdn/chunks/{AiPanels-0wBarZSH.js.map → AiPanels-BV5D1itk.js.map} +1 -1
  56. package/dist/cdn/chunks/{AiRewriteMenu-qf-cfEpy.js → AiRewriteMenu-D3jkh6Xb.js} +79 -79
  57. package/dist/cdn/chunks/AiRewriteMenu-D3jkh6Xb.js.map +1 -0
  58. package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js +34 -0
  59. package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js.map +1 -0
  60. package/dist/cdn/chunks/BlockPreviewCanvas-RQFilqXC.js +142 -0
  61. package/dist/cdn/chunks/{BlockPreviewCanvas-DGBh6mqe.js.map → BlockPreviewCanvas-RQFilqXC.js.map} +1 -1
  62. package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js → CloudHeaderExtras-BtqdN777.js} +4 -4
  63. package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js.map → CloudHeaderExtras-BtqdN777.js.map} +1 -1
  64. package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js → CloudPanels-BSJ-Z5Hw.js} +45 -45
  65. package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js.map → CloudPanels-BSJ-Z5Hw.js.map} +1 -1
  66. package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js +67 -0
  67. package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js.map +1 -0
  68. package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js → CollaboratorBar-Bc9914Az.js} +17 -17
  69. package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js.map → CollaboratorBar-Bc9914Az.js.map} +1 -1
  70. package/dist/cdn/chunks/CommentsPanel-DbR9phAk.js +18 -0
  71. package/dist/cdn/chunks/{CommentsPanel-DoJnKLXI.js.map → CommentsPanel-DbR9phAk.js.map} +1 -1
  72. package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.js +496 -0
  73. package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.js.map +1 -0
  74. package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js → CountdownBlock-CjMhMhnv.js} +22 -22
  75. package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js.map → CountdownBlock-CjMhMhnv.js.map} +1 -1
  76. package/dist/cdn/chunks/CountdownToolbar-DxwYBw-d.js +260 -0
  77. package/dist/cdn/chunks/CountdownToolbar-DxwYBw-d.js.map +1 -0
  78. package/dist/cdn/chunks/{IssuesPanel-C7LfxaAY.js → IssuesPanel-CUmI4HMm.js} +133 -121
  79. package/dist/cdn/chunks/IssuesPanel-CUmI4HMm.js.map +1 -0
  80. package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.js +359 -0
  81. package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.js.map +1 -0
  82. package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js → LoadingTrack-DUYcDHOV.js} +2 -2
  83. package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js.map → LoadingTrack-DUYcDHOV.js.map} +1 -1
  84. package/dist/cdn/chunks/LocaleNotices-BfoH6gST.js +47 -0
  85. package/dist/cdn/chunks/LocaleNotices-BfoH6gST.js.map +1 -0
  86. package/dist/{LogicTagInsertButton-CfscnwCn.js → cdn/chunks/LogicTagInsertButton-5Z3fFzjc.js} +422 -449
  87. package/dist/cdn/chunks/LogicTagInsertButton-5Z3fFzjc.js.map +1 -0
  88. package/dist/cdn/chunks/{MediaEditModal-Cpcod6_U.js → MediaEditModal-DDCIwr9U.js} +421 -421
  89. package/dist/cdn/chunks/MediaEditModal-DDCIwr9U.js.map +1 -0
  90. package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js → MediaPanels-Dz79oy8P.js} +5 -5
  91. package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js.map → MediaPanels-Dz79oy8P.js.map} +1 -1
  92. package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js → MergeTagInput-CIWy-cXf.js} +28 -28
  93. package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js.map → MergeTagInput-CIWy-cXf.js.map} +1 -1
  94. package/dist/cdn/chunks/{MergeTagModeToggle-BgKEVUtV.js → MergeTagModeToggle-BrP5GR-x.js} +52 -52
  95. package/dist/cdn/chunks/MergeTagModeToggle-BrP5GR-x.js.map +1 -0
  96. package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js +128 -0
  97. package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js.map +1 -0
  98. package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js +660 -0
  99. package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js.map +1 -0
  100. package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js → RestoreVersionDialog-Crj1DBqC.js} +22 -22
  101. package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js.map → RestoreVersionDialog-Crj1DBqC.js.map} +1 -1
  102. package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js → RichTextEditorContent-rCCqFlwJ.js} +44 -44
  103. package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js.map → RichTextEditorContent-rCCqFlwJ.js.map} +1 -1
  104. package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js → SaveBlockDialog-C34RW1aM.js} +77 -77
  105. package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js.map → SaveBlockDialog-C34RW1aM.js.map} +1 -1
  106. package/dist/{SavedBlocksBrowserModal-CE8n4EBS.js → cdn/chunks/SavedBlocksBrowserModal-CJnwWPT-.js} +103 -106
  107. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BPYcRoGa.js.map → SavedBlocksBrowserModal-CJnwWPT-.js.map} +1 -1
  108. package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js → SavedBlocksPanels-CA2PqXIH.js} +9 -9
  109. package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js.map → SavedBlocksPanels-CA2PqXIH.js.map} +1 -1
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js → SavedBlocksPickBar-Dj3ortee.js} +16 -16
  111. package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js.map → SavedBlocksPickBar-Dj3ortee.js.map} +1 -1
  112. package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js +266 -0
  113. package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js.map +1 -0
  114. package/dist/cdn/chunks/TestEmailModal-BXeCtTjU.js +212 -0
  115. package/dist/cdn/chunks/TestEmailModal-BXeCtTjU.js.map +1 -0
  116. package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js → TestEmailPanel-CpZcpB9D.js} +5 -5
  117. package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js.map → TestEmailPanel-CpZcpB9D.js.map} +1 -1
  118. package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js +202 -0
  119. package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js.map +1 -0
  120. package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js +45 -0
  121. package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js.map +1 -0
  122. package/dist/cdn/chunks/Toolbar-BJKpJ2Mg.js +3626 -0
  123. package/dist/cdn/chunks/Toolbar-BJKpJ2Mg.js.map +1 -0
  124. package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js → TplModal-DDDUDMYC.js} +20 -20
  125. package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js.map → TplModal-DDDUDMYC.js.map} +1 -1
  126. package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js → VersionHistoryMenu-DSElv3Sv.js} +33 -33
  127. package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js.map → VersionHistoryMenu-DSElv3Sv.js.map} +1 -1
  128. package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js → VersionHistoryPanels-H2nuik1l.js} +6 -6
  129. package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js.map → VersionHistoryPanels-H2nuik1l.js.map} +1 -1
  130. package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js +39 -0
  131. package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js.map +1 -0
  132. package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js +46 -0
  133. package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js.map +1 -0
  134. package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js → blockTypeIcons-DMgLcuI8.js} +5 -5
  135. package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js.map → blockTypeIcons-DMgLcuI8.js.map} +1 -1
  136. package/dist/{ca-CD-Kt1qz.js → cdn/chunks/ca-DOuIxWRv.js} +116 -0
  137. package/dist/cdn/chunks/ca-DOuIxWRv.js.map +1 -0
  138. package/dist/cdn/chunks/composables-D0UYam2P.js +3039 -0
  139. package/dist/cdn/chunks/composables-D0UYam2P.js.map +1 -0
  140. package/dist/cdn/chunks/{createCloudRuntime-Cth2JCEh.js → createCloudRuntime-BdsclY8_.js} +75 -73
  141. package/dist/cdn/chunks/createCloudRuntime-BdsclY8_.js.map +1 -0
  142. package/dist/{de-CeFJ6wbM.js → cdn/chunks/de-DaOUfYBX.js} +116 -0
  143. package/dist/cdn/chunks/de-DaOUfYBX.js.map +1 -0
  144. package/dist/cdn/chunks/{dist-8ym3y-pH.js → dist-BzXULHvI.js} +48 -48
  145. package/dist/cdn/chunks/{dist-8ym3y-pH.js.map → dist-BzXULHvI.js.map} +1 -1
  146. package/dist/cdn/chunks/{dist-BMzNabtD.js → dist-DqGgijFI.js} +114 -114
  147. package/dist/cdn/chunks/{dist-BMzNabtD.js.map → dist-DqGgijFI.js.map} +1 -1
  148. package/dist/cdn/chunks/{draggable-Du8AUMFT.js → draggable-DepKdldn.js} +1491 -1486
  149. package/dist/cdn/chunks/draggable-DepKdldn.js.map +1 -0
  150. package/dist/cdn/chunks/{editor-modal-CyCe560f.js → editor-modal-CPbgthOv.js} +781 -781
  151. package/dist/cdn/chunks/{editor-modal-CyCe560f.js.map → editor-modal-CPbgthOv.js.map} +1 -1
  152. package/dist/{en-D14i5nFh.js → cdn/chunks/en-C0pHHMiR.js} +116 -0
  153. package/dist/cdn/chunks/en-C0pHHMiR.js.map +1 -0
  154. package/dist/cdn/chunks/en-IYVryJRl.js +1 -0
  155. package/dist/{es-zDacbMhs.js → cdn/chunks/es-CxyEKr6n.js} +116 -0
  156. package/dist/cdn/chunks/es-CxyEKr6n.js.map +1 -0
  157. package/dist/cdn/chunks/{extensions-CFF2KWy-.js → extensions-Uh9vuFfK.js} +59 -59
  158. package/dist/cdn/chunks/{extensions-CFF2KWy-.js.map → extensions-Uh9vuFfK.js.map} +1 -1
  159. package/dist/{fr-CSgYtjOd.js → cdn/chunks/fr-CYbamiI6.js} +116 -0
  160. package/dist/cdn/chunks/fr-CYbamiI6.js.map +1 -0
  161. package/dist/cdn/chunks/{icons-okSPsLOa.js → icons-CSSMtbGK.js} +150 -109
  162. package/dist/cdn/chunks/icons-CSSMtbGK.js.map +1 -0
  163. package/dist/{ja-B7H3ID8O.js → cdn/chunks/ja-DfaIAoGI.js} +116 -0
  164. package/dist/cdn/chunks/ja-DfaIAoGI.js.map +1 -0
  165. package/dist/cdn/chunks/keys-CoQtCqNv.js +11 -0
  166. package/dist/cdn/chunks/keys-CoQtCqNv.js.map +1 -0
  167. package/dist/cdn/chunks/languageName-DEEOhDWI.js +12 -0
  168. package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +1 -0
  169. package/dist/{nl-176ySmc5.js → cdn/chunks/nl-DkrB-VKZ.js} +116 -0
  170. package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +1 -0
  171. package/dist/cdn/chunks/normalizeMergeTagMarkup-oGhwVscw.js +290 -0
  172. package/dist/cdn/chunks/normalizeMergeTagMarkup-oGhwVscw.js.map +1 -0
  173. package/dist/cdn/chunks/noticeTones-D7BPu-Le.js +16 -0
  174. package/dist/cdn/chunks/noticeTones-D7BPu-Le.js.map +1 -0
  175. package/dist/cdn/chunks/plural-CyxrJXL1.js +17 -0
  176. package/dist/cdn/chunks/plural-CyxrJXL1.js.map +1 -0
  177. package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js → preRenderCustomBlocks-C8k7tw98.js} +5 -5
  178. package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js.map → preRenderCustomBlocks-C8k7tw98.js.map} +1 -1
  179. package/dist/{pt-BR-dDlTwX18.js → cdn/chunks/pt-BR-CY5Ye7eP.js} +116 -0
  180. package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +1 -0
  181. package/dist/cdn/chunks/sanitizeHtml-DYklmvgX.js +61 -0
  182. package/dist/cdn/chunks/sanitizeHtml-DYklmvgX.js.map +1 -0
  183. package/dist/cdn/chunks/socialIcons-BAiuHyJs.js +2638 -0
  184. package/dist/cdn/chunks/socialIcons-BAiuHyJs.js.map +1 -0
  185. package/dist/cdn/chunks/src-CACM3o--.js +2606 -0
  186. package/dist/cdn/chunks/src-CACM3o--.js.map +1 -0
  187. package/dist/cdn/chunks/{src-C7bkofBL.js → src-Ddpm4HsS.js} +222 -256
  188. package/dist/cdn/chunks/src-Ddpm4HsS.js.map +1 -0
  189. package/dist/cdn/chunks/{src-DEd87i_U.js → src-DheBmnvF.js} +635 -478
  190. package/dist/cdn/chunks/src-DheBmnvF.js.map +1 -0
  191. package/dist/{styleConstants-B8xVRiwX.js → cdn/chunks/styleConstants-CgiNKdnc.js} +7 -5
  192. package/dist/cdn/chunks/styleConstants-CgiNKdnc.js.map +1 -0
  193. package/dist/cdn/chunks/templateSettingsFields-cjlP-jdw.js.map +1 -1
  194. package/dist/cdn/chunks/{tiptap-CbiTlECY.js → tiptap-Dipw_zOQ.js} +40 -40
  195. package/dist/cdn/chunks/{tiptap-CbiTlECY.js.map → tiptap-Dipw_zOQ.js.map} +1 -1
  196. package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js → useCloudI18n-Cc5NZqiI.js} +3 -3
  197. package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js.map → useCloudI18n-Cc5NZqiI.js.map} +1 -1
  198. package/dist/cdn/chunks/useEditorRoot-D_LuZ_hE.js +9 -0
  199. package/dist/cdn/chunks/{useEditorRoot-vjZJwKrV.js.map → useEditorRoot-D_LuZ_hE.js.map} +1 -1
  200. package/dist/cdn/chunks/{useI18n-D8pY4LTq.js → useI18n-BnJYydPv.js} +3 -3
  201. package/dist/cdn/chunks/{useI18n-D8pY4LTq.js.map → useI18n-BnJYydPv.js.map} +1 -1
  202. package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js +33 -0
  203. package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js.map +1 -0
  204. package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js → useLogicTag-B7RpqVFQ.js} +5 -5
  205. package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js.map → useLogicTag-B7RpqVFQ.js.map} +1 -1
  206. package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js → useMergeTag-C-32ETjj.js} +6 -6
  207. package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js.map → useMergeTag-C-32ETjj.js.map} +1 -1
  208. package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js +78 -0
  209. package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js.map +1 -0
  210. package/dist/cdn/chunks/{useScrollToBlock-vjQ0fe-L.js → useScrollToBlock-Ct1AwLD-.js} +5 -5
  211. package/dist/cdn/chunks/useScrollToBlock-Ct1AwLD-.js.map +1 -0
  212. package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js → withCurrentFont-D33ZXoWp.js} +2 -2
  213. package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js.map → withCurrentFont-D33ZXoWp.js.map} +1 -1
  214. package/dist/cdn/editor.css +1 -1
  215. package/dist/cdn/editor.js +2190 -1496
  216. package/dist/cdn/editor.js.map +1 -1
  217. package/dist/{check-BZ8o0eet.js → check-ChQ0l8EQ.js} +1 -1
  218. package/dist/{chevron-down-DfAAfILv.js → chevron-down-Bh6cp6PI.js} +1 -1
  219. package/dist/{chevron-right-Bk4mGdr7.js → chevron-right-LUgdqdoW.js} +1 -1
  220. package/dist/{chevron-up-MhUf_azW.js → chevron-up-XsDeJxQN.js} +1 -1
  221. package/dist/{circle-alert-CShJwVFv.js → circle-alert-lODfDsrj.js} +1 -1
  222. package/dist/{clock-CTfD6OCt.js → clock-DrqFEZkT.js} +1 -1
  223. package/dist/composables-BOP3ERRP.js +4517 -0
  224. package/dist/{createCloudRuntime-DCgO4A1r.js → createCloudRuntime-DGV5a5Af.js} +54 -52
  225. package/dist/{createLucideIcon-CvhTA2KG.js → createLucideIcon-Dw5e5gVE.js} +11 -11
  226. package/dist/{cdn/chunks/de-CeFJ6wbM.js → de-DaOUfYBX.js} +114 -2
  227. package/dist/{dist-ByCWA2Tv.js → dist-0alKVRc_.js} +101 -101
  228. package/dist/{dist-Cy8I5scI.js → dist-54VCNoC0.js} +2 -2
  229. package/dist/dist-6DU0me3E.js +4 -0
  230. package/dist/{dist-p3wymUDt.js → dist-B8dY8drK.js} +2 -2
  231. package/dist/{dist-Dd5MU2Ev.js → dist-B9a7iVye.js} +2 -2
  232. package/dist/{dist-V7W1UhVr.js → dist-BWflWcpW.js} +2 -2
  233. package/dist/{dist-D6fZec6r.js → dist-C3hu_C3w.js} +2 -2
  234. package/dist/{dist-CVy-7PHQ.js → dist-CX7skkvG.js} +48 -48
  235. package/dist/dist-CcOn7WCo.js +4 -0
  236. package/dist/dist-Cdkm20M6.js +2542 -0
  237. package/dist/{dist-BS5uKktL.js → dist-ChOb5XHW.js} +2 -2
  238. package/dist/{dist-BF5zEHop.js → dist-DZ3X-uB8.js} +2 -2
  239. package/dist/{dist-CWSG7Kj0.js → dist-D_XrUEET.js} +5 -5
  240. package/dist/{dist-txQLT2sF.js → dist-TAv500j6.js} +2 -2
  241. package/dist/{dist-D6cMdrfG.js → dist-fqSers8_.js} +55 -55
  242. package/dist/{editor-modal-zaZHcmlO.js → editor-modal-B_2EAOjN.js} +953 -952
  243. package/dist/{cdn/chunks/en-D14i5nFh.js → en-C0pHHMiR.js} +114 -2
  244. package/dist/en-DTtwco2Q.js +1 -0
  245. package/dist/{cdn/chunks/es-zDacbMhs.js → es-CxyEKr6n.js} +114 -2
  246. package/dist/{extensions-fo_c-vqf.js → extensions-DOLZkLzV.js} +173 -173
  247. package/dist/{eye-7W4t5e0Q.js → eye-DChfk0gi.js} +1 -1
  248. package/dist/{cdn/chunks/fr-CSgYtjOd.js → fr-CYbamiI6.js} +114 -2
  249. package/dist/{image-BDiRFzSd.js → image--Hj2by1G.js} +1 -1
  250. package/dist/index.d.ts +182 -14
  251. package/dist/{info-Cxi3-Kh9.js → info-BbXgy82f.js} +1 -1
  252. package/dist/{cdn/chunks/ja-B7H3ID8O.js → ja-DfaIAoGI.js} +114 -2
  253. package/dist/keys-BCqskl51.js +9 -0
  254. package/dist/languageName-DEEOhDWI.js +10 -0
  255. package/dist/{link-ju_2Cmir.js → link-C2_8yJno.js} +1 -1
  256. package/dist/{list-DYZJf0aZ.js → list-DLGs2n0V.js} +1 -1
  257. package/dist/{loader-circle-BZRD0a4I.js → loader-circle-BbDItE_O.js} +1 -1
  258. package/dist/{message-circle-DuEw4Zfx.js → message-circle-NAModq0p.js} +1 -1
  259. package/dist/{cdn/chunks/nl-176ySmc5.js → nl-DkrB-VKZ.js} +114 -2
  260. package/dist/normalizeMergeTagMarkup-CUCo7B5X.js +288 -0
  261. package/dist/noticeTones-D7BPu-Le.js +14 -0
  262. package/dist/{package-CePMr2kK.js → package-BuzsfRyH.js} +1 -1
  263. package/dist/{pencil-D3aFCL7c.js → pencil-BTUUECH4.js} +1 -1
  264. package/dist/plural-CyxrJXL1.js +15 -0
  265. package/dist/plus-Dm7DN65T.js +13 -0
  266. package/dist/{preRenderCustomBlocks--_xc0XK3.js → preRenderCustomBlocks-Bs3N9no-.js} +4 -4
  267. package/dist/{cdn/chunks/pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +114 -2
  268. package/dist/{refresh-cw-xnro7_Sk.js → refresh-cw-xMURqGWi.js} +2 -12
  269. package/dist/rotate-ccw-DqVcEIn5.js +13 -0
  270. package/dist/{runtime-dom.esm-bundler-BURR-bj5.js → runtime-dom.esm-bundler-DlHp8xgy.js} +154 -154
  271. package/dist/sanitizeHtml-mKgNUdME.js +962 -0
  272. package/dist/{search-CDrstRBv.js → search-Cfr3W44N.js} +1 -1
  273. package/dist/{send-DROkPOaX.js → send-CH1SrvyB.js} +1 -1
  274. package/dist/{smartphone-Bx6u_tjn.js → smartphone-pAkvzjdI.js} +1 -1
  275. package/dist/socialIcons-Dqr4DJOz.js +2705 -0
  276. package/dist/{sparkles-CdaTtvoz.js → sparkles-CRO0cCnp.js} +1 -1
  277. package/dist/{square-BbCROH_f.js → square-CaQWMntx.js} +1 -1
  278. package/dist/style.css +1 -1
  279. package/dist/{cdn/chunks/styleConstants-B8xVRiwX.js → styleConstants-CgiNKdnc.js} +5 -7
  280. package/dist/templatical-editor.js +2438 -1752
  281. package/dist/{text-align-start-CGacJ9Vw.js → text-align-start-BQ39AaRK.js} +1 -1
  282. package/dist/{trash-DxCd7zIy.js → trash-BL5gEFHN.js} +1 -1
  283. package/dist/{triangle-alert-7_oaitpf.js → triangle-alert-BYbKu7zZ.js} +1 -1
  284. package/dist/{upload-DuFEOi_0.js → upload-BhmL4Vqx.js} +1 -1
  285. package/dist/{useCloudI18n-DEMmUKuO.js → useCloudI18n-Dh2iydo1.js} +4 -4
  286. package/dist/useEditorRoot-DY3mgcHm.js +7 -0
  287. package/dist/{useI18n-BBrHTdu8.js → useI18n-CgtvtF4C.js} +4 -4
  288. package/dist/useLocalizedDisplay-DNNwDRxL.js +31 -0
  289. package/dist/{useLogicTag-ZPC39rfH.js → useLogicTag-BXXXQQmi.js} +4 -4
  290. package/dist/{useMergeTag-BQ4qqWpQ.js → useMergeTag-C9Okr87y.js} +5 -5
  291. package/dist/usePopoverPosition-VDQjyX_A.js +76 -0
  292. package/dist/{useScrollToBlock-BSyAV4pk.js → useScrollToBlock-C0Kapxdh.js} +5 -5
  293. package/dist/{vue.runtime.esm-bundler-CnEeTfhs.js → vue.runtime.esm-bundler-BJXc_Mri.js} +1373 -1368
  294. package/dist/withCurrentFont-DJiQqZzL.js +18 -0
  295. package/dist/{x-BpfG7v9g.js → x-B7NZYzhx.js} +1 -1
  296. package/package.json +20 -20
  297. package/dist/AiAltTextPopover-DawbUywc.js +0 -105
  298. package/dist/AiChatPanel-CupPhmsN.js +0 -548
  299. package/dist/BlockIssueBadge-BxpDy3u-.js +0 -33
  300. package/dist/BlockPreviewCanvas-B-4bmJ3t.js +0 -140
  301. package/dist/CollaborationNotices-CTw4JThq.js +0 -75
  302. package/dist/CommentsPanel-DwwFuh1h.js +0 -16
  303. package/dist/CommentsSidebar-9ZfiC2DO.js +0 -500
  304. package/dist/CountdownToolbar-BqoYzf_6.js +0 -197
  305. package/dist/IssuesPanel-4ykrf1ax.js +0 -359
  306. package/dist/MergeTagTextarea-CPFEjJZd.js +0 -69
  307. package/dist/ParagraphEditor-CWXfurGh.js +0 -796
  308. package/dist/TemplateSettings-CS0f1Ues.js +0 -236
  309. package/dist/TestEmailModal-DBD0X5nV.js +0 -209
  310. package/dist/TitleEditor-DSqtle77.js +0 -198
  311. package/dist/ToggleSwitch-JykPyD_8.js +0 -36
  312. package/dist/Toolbar-BZPFfKrf.js +0 -3145
  313. package/dist/VersionPreviewBanner-DECaBwLq.js +0 -37
  314. package/dist/WrapperBlock-BsJv_Fiw.js +0 -44
  315. package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js +0 -106
  316. package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js.map +0 -1
  317. package/dist/cdn/chunks/AiAltTextReview-BGLLSKLm.js.map +0 -1
  318. package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js +0 -474
  319. package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js.map +0 -1
  320. package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +0 -1
  321. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +0 -34
  322. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +0 -1
  323. package/dist/cdn/chunks/BlockPreviewCanvas-DGBh6mqe.js +0 -142
  324. package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js +0 -77
  325. package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js.map +0 -1
  326. package/dist/cdn/chunks/CommentsPanel-DoJnKLXI.js +0 -18
  327. package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js +0 -470
  328. package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +0 -1
  329. package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js +0 -199
  330. package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js.map +0 -1
  331. package/dist/cdn/chunks/IssuesPanel-C7LfxaAY.js.map +0 -1
  332. package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js +0 -1051
  333. package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js.map +0 -1
  334. package/dist/cdn/chunks/MediaEditModal-Cpcod6_U.js.map +0 -1
  335. package/dist/cdn/chunks/MergeTagModeToggle-BgKEVUtV.js.map +0 -1
  336. package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js +0 -71
  337. package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js.map +0 -1
  338. package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js +0 -631
  339. package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +0 -1
  340. package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js +0 -208
  341. package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js.map +0 -1
  342. package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js +0 -209
  343. package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js.map +0 -1
  344. package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js +0 -198
  345. package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +0 -1
  346. package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js +0 -38
  347. package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js.map +0 -1
  348. package/dist/cdn/chunks/Toolbar-CdpsvNOR.js +0 -3061
  349. package/dist/cdn/chunks/Toolbar-CdpsvNOR.js.map +0 -1
  350. package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js +0 -39
  351. package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js.map +0 -1
  352. package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js +0 -46
  353. package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js.map +0 -1
  354. package/dist/cdn/chunks/ca-CD-Kt1qz.js.map +0 -1
  355. package/dist/cdn/chunks/createCloudRuntime-Cth2JCEh.js.map +0 -1
  356. package/dist/cdn/chunks/de-CeFJ6wbM.js.map +0 -1
  357. package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +0 -1
  358. package/dist/cdn/chunks/en-D14i5nFh.js.map +0 -1
  359. package/dist/cdn/chunks/en-TIqv4ag3.js +0 -1
  360. package/dist/cdn/chunks/es-zDacbMhs.js.map +0 -1
  361. package/dist/cdn/chunks/fr-CSgYtjOd.js.map +0 -1
  362. package/dist/cdn/chunks/icons-okSPsLOa.js.map +0 -1
  363. package/dist/cdn/chunks/ja-B7H3ID8O.js.map +0 -1
  364. package/dist/cdn/chunks/keys-CUj6UA38.js +0 -11
  365. package/dist/cdn/chunks/keys-CUj6UA38.js.map +0 -1
  366. package/dist/cdn/chunks/nl-176ySmc5.js.map +0 -1
  367. package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js +0 -198
  368. package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js.map +0 -1
  369. package/dist/cdn/chunks/pt-BR-dDlTwX18.js.map +0 -1
  370. package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +0 -72
  371. package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +0 -1
  372. package/dist/cdn/chunks/socialIcons-jsTDmkbb.js +0 -2008
  373. package/dist/cdn/chunks/socialIcons-jsTDmkbb.js.map +0 -1
  374. package/dist/cdn/chunks/src-C7bkofBL.js.map +0 -1
  375. package/dist/cdn/chunks/src-DEd87i_U.js.map +0 -1
  376. package/dist/cdn/chunks/src-DwWrYnUj.js +0 -1404
  377. package/dist/cdn/chunks/src-DwWrYnUj.js.map +0 -1
  378. package/dist/cdn/chunks/styleConstants-B8xVRiwX.js.map +0 -1
  379. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +0 -2582
  380. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +0 -1
  381. package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +0 -9
  382. package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js +0 -70
  383. package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js.map +0 -1
  384. package/dist/cdn/chunks/useScrollToBlock-vjQ0fe-L.js.map +0 -1
  385. package/dist/dist-CKi_npZM.js +0 -1344
  386. package/dist/dist-DyFArF_G.js +0 -4
  387. package/dist/dist-pA3ooG6N.js +0 -4
  388. package/dist/en-Db76vJbY.js +0 -1
  389. package/dist/keys-BgRERHzu.js +0 -9
  390. package/dist/normalizeMergeTagMarkup-CELnOlgK.js +0 -196
  391. package/dist/sanitizeHtml-BzfzpYJY.js +0 -942
  392. package/dist/socialIcons-D7MGsg0d.js +0 -2075
  393. package/dist/useEditorCore-BSo2sSID.js +0 -4059
  394. package/dist/useEditorRoot-BMcoCLBx.js +0 -7
  395. package/dist/usePopoverPosition-DV1PxL66.js +0 -68
  396. package/dist/withCurrentFont-B22FXAF5.js +0 -18
@@ -1,631 +0,0 @@
1
- import { n as e } from "./rolldown-runtime-QGRDbDUS.js";
2
- import { C as t, D as n, I as r, P as i, S as a, Y as o, _ as s, b as c, c as l, dt as u, et as d, f, ft as p, g as m, h, l as g, m as _, p as v, st as y, u as b, ut as x, x as S, z as C } from "./draggable-Du8AUMFT.js";
3
- import { $ as w } from "./src-DwWrYnUj.js";
4
- import { t as T } from "./dist-BMzNabtD.js";
5
- import { S as E, v as D, x as O, y as k } from "./useEditorCore-BrY66C2y.js";
6
- import { $ as A, A as j, E as M, J as N, Z as ee, g as P, l as te, v as ne } from "./keys-CUj6UA38.js";
7
- import { t as re } from "./useI18n-D8pY4LTq.js";
8
- import { n as F } from "./usePopoverPosition-DSMtmu2W.js";
9
- import { C as ie, Et as I, L as ae, N as oe, S as se, Vt as ce, _ as le, at as ue, b as de, dt as fe, g as pe, ht as me, lt as he, m as ge, ot as _e, st as ve, u as ye, v as be } from "./icons-okSPsLOa.js";
10
- import { t as L } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
11
- import { a as xe, n as Se, o as Ce, s as we } from "./styleConstants-B8xVRiwX.js";
12
- import { c as R } from "./LogicTagInsertButton-BIi05UQu.js";
13
- import { n as Te, t as Ee } from "./withCurrentFont-hZTvYBHO.js";
14
- import { n as z, t as B } from "./RichTextEditorContent-DNjR_sNN.js";
15
- // src/components/toolbar/ToolbarSelect.vue?vue&type=script&setup=true&lang.ts
16
- var V = [
17
- "value",
18
- "aria-label",
19
- "title"
20
- ], H = { value: "" }, U = ["value"], W = /* @__PURE__ */ t({
21
- __name: "ToolbarSelect",
22
- props: {
23
- modelValue: {},
24
- options: {},
25
- label: {},
26
- placeholder: {},
27
- widthClass: {}
28
- },
29
- emits: ["update:modelValue"],
30
- setup(e, { emit: t }) {
31
- let n = e, a = t;
32
- function o(e) {
33
- a("update:modelValue", e.target.value);
34
- }
35
- function c(e) {
36
- return typeof e == "string" ? e : e.value;
37
- }
38
- function l(e) {
39
- return typeof e == "string" ? e : e.label;
40
- }
41
- let u = /* @__PURE__ */ new Set([
42
- "inherit",
43
- "initial",
44
- "unset",
45
- "revert",
46
- "revert-layer"
47
- ]), d = v(() => u.has(n.modelValue) ? "" : n.modelValue), f = v(() => {
48
- let e = d.value;
49
- return e === "" || n.options.some((t) => c(t) === e) ? n.options : [e, ...n.options];
50
- });
51
- return (t, n) => (i(), s("select", {
52
- class: x(["tpl:h-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", e.widthClass ?? "tpl:w-20"]),
53
- value: d.value,
54
- "aria-label": e.label,
55
- title: e.label,
56
- onChange: o
57
- }, [_("option", H, p(e.placeholder ?? ""), 1), (i(!0), s(b, null, r(f.value, (e) => (i(), s("option", {
58
- key: c(e),
59
- value: c(e)
60
- }, p(l(e)), 9, U))), 128))], 42, V));
61
- }
62
- }), G = [
63
- "aria-label",
64
- "title",
65
- "aria-expanded"
66
- ], K = ["aria-label"], q = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, J = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, Y = ["aria-label", "onClick"], De = /* @__PURE__ */ t({
67
- __name: "EmojiPickerDropdown",
68
- emits: ["insert"],
69
- setup(e, { emit: t }) {
70
- let n = t, { categories: a, isOpen: o, toggle: c, close: u } = O(), { t: f, format: h } = re(), C = d(null), w = d(null), D = v(() => o.value);
71
- E(C, D), T(w, () => {
72
- o.value && u();
73
- });
74
- function k(e) {
75
- n("insert", e), u();
76
- }
77
- return (e, t) => (i(), s("div", {
78
- ref_key: "rootRef",
79
- ref: w,
80
- class: "tpl:relative"
81
- }, [_("button", {
82
- type: "button",
83
- class: x(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": y(o) }]),
84
- "aria-label": y(f).paragraphEditor.insertEmoji,
85
- title: y(f).paragraphEditor.insertEmoji,
86
- "aria-expanded": y(o),
87
- "aria-haspopup": "dialog",
88
- "aria-controls": "tpl-emoji-picker",
89
- onClick: t[0] ||= (...e) => y(c) && y(c)(...e)
90
- }, [S(y(I), {
91
- size: 16,
92
- "stroke-width": 2
93
- })], 10, G), y(o) ? (i(), s("div", {
94
- key: 0,
95
- id: "tpl-emoji-picker",
96
- ref_key: "pickerRef",
97
- ref: C,
98
- role: "dialog",
99
- "aria-modal": "false",
100
- "aria-label": y(f).paragraphEditor.insertEmoji,
101
- tabindex: "-1",
102
- class: "tpl-emoji-picker tpl:absolute tpl:top-full tpl:left-0 tpl:z-10 tpl:mt-2 tpl:w-72 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:shadow-[var(--tpl-shadow-lg)]",
103
- onKeydown: t[1] ||= l(g((...e) => y(u) && y(u)(...e), ["stop", "prevent"]), ["esc"])
104
- }, [(i(!0), s(b, null, r(y(a), (e) => (i(), s("div", {
105
- key: e.key,
106
- class: "tpl:mb-2 tpl:last:mb-0"
107
- }, [_("div", q, p(y(f).emoji[e.key]), 1), _("div", J, [(i(!0), s(b, null, r(e.emojis, (e) => (i(), s("button", {
108
- key: e,
109
- type: "button",
110
- "aria-label": y(h)(y(f).paragraphEditor.emojiItemLabel, { emoji: e }),
111
- 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)]",
112
- onClick: (t) => k(e)
113
- }, p(e), 9, Y))), 128))])]))), 128))], 40, K)) : m("", !0)], 512));
114
- }
115
- }), X = [
116
- "aria-label",
117
- "title",
118
- "aria-pressed"
119
- ], Z = /* @__PURE__ */ t({
120
- __name: "ToolbarIconButton",
121
- props: {
122
- icon: {},
123
- label: {},
124
- active: { type: Boolean },
125
- strokeWidth: {},
126
- size: {}
127
- },
128
- setup(e) {
129
- return (t, n) => (i(), s("button", {
130
- type: "button",
131
- class: x(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": e.active }]),
132
- "aria-label": e.label,
133
- title: e.label,
134
- "aria-pressed": e.active ? "true" : "false"
135
- }, [(i(), h(C(e.icon), {
136
- size: e.size ?? 16,
137
- "stroke-width": e.strokeWidth ?? 2
138
- }, null, 8, ["size", "stroke-width"]))], 10, X));
139
- }
140
- }), Oe = {}, ke = {
141
- class: "tpl:mx-1 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
142
- "aria-hidden": "true"
143
- };
144
- function Ae(e, t) {
145
- return i(), s("span", ke);
146
- }
147
- var Q = /*#__PURE__*/ L(Oe, [["render", Ae]]);
148
- // src/utils/richTextColor.ts
149
- function $(e, t) {
150
- return e || t || "#000000";
151
- }
152
- // src/components/blocks/ParagraphToolbar.vue?vue&type=script&setup=true&lang.ts
153
- var je = ["data-tpl-theme", "aria-label"], Me = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Ne = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Pe = ["aria-label", "title"], Fe = ["aria-label", "title"], Ie = {
154
- key: 1,
155
- class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
156
- }, Le = /* @__PURE__ */ t({
157
- __name: "ParagraphToolbar",
158
- props: {
159
- editor: {},
160
- toolbarPosition: {},
161
- isLoading: { type: Boolean },
162
- canRequestMergeTag: { type: Boolean },
163
- canInsertLogicTag: { type: Boolean }
164
- },
165
- emits: [
166
- "open-link-dialog",
167
- "add-merge-tag",
168
- "add-logic-tag"
169
- ],
170
- setup(e, { emit: t }) {
171
- let r = a(() => import("./AiRewriteMenu-qf-cfEpy.js")), o = e, l = n(te, {}), d = v(() => l.ai?.isFeatureEnabled("rewrite") ?? !1), g = t, x = n(N, null), C = n(ee, null), w = A(ne, "ParagraphToolbar"), T = F(), E = n(j, null), D = n(M, null), O = n(P, null), k = v(() => (E?.isOpen.value ?? !1) || (D?.isOpen.value ?? !1)), { t: I } = re(), L = w.fonts, z = Ce.map((e) => ({
172
- value: e,
173
- label: e === "normal" ? I.paragraphEditor.letterSpacingNormal : e
174
- }));
175
- function B(e) {
176
- o.editor?.chain().focus().insertContent(e).run();
177
- }
178
- function V(e) {
179
- return o.editor?.getAttributes("textStyle")[e] || "";
180
- }
181
- function H(e) {
182
- let t = o.editor?.chain().focus();
183
- e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
184
- }
185
- function U(e) {
186
- let t = o.editor?.chain().focus();
187
- e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
188
- }
189
- function G() {
190
- return o.editor?.isActive("link") ?? !1;
191
- }
192
- function K() {
193
- return o.editor?.getAttributes("link").color || "";
194
- }
195
- function q(e) {
196
- let t = o.editor?.chain().focus();
197
- t && (G() ? (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());
198
- }
199
- function J() {
200
- let e = O?.content.value.settings;
201
- return G() ? $(K(), e?.linkColor || e?.textColor) : $(V("color"), e?.textColor);
202
- }
203
- function Y() {
204
- return G() ? K() : V("color");
205
- }
206
- function X() {
207
- return o.editor?.getAttributes("paragraph").lineHeight || "";
208
- }
209
- function Oe(e) {
210
- let t = o.editor?.chain().focus();
211
- e ? t?.setLineHeight(e).run() : t?.unsetLineHeight().run();
212
- }
213
- function ke(e) {
214
- let t = o.editor?.chain().focus();
215
- e && e !== "normal" ? t?.setLetterSpacing(e).run() : t?.unsetLetterSpacing().run();
216
- }
217
- function Ae() {
218
- return o.editor?.getAttributes("highlight").color || "";
219
- }
220
- function Le(e) {
221
- let t = o.editor?.chain().focus();
222
- e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
223
- }
224
- return (t, n) => y(T) && !k.value ? (i(), h(f, {
225
- key: 0,
226
- to: y(T)
227
- }, [_("div", {
228
- "data-tpl-theme": y(C),
229
- role: "toolbar",
230
- "aria-label": y(I).paragraphEditor.toolbar,
231
- class: "tpl tpl-text-toolbar tpl:absolute tpl:flex tpl:gap-1 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:shadow-[var(--tpl-shadow-lg)]",
232
- style: u({
233
- ...y(x),
234
- top: `${e.toolbarPosition.top}px`,
235
- left: `${e.toolbarPosition.left}px`,
236
- transform: "translateY(-100%)",
237
- flexDirection: "column"
238
- })
239
- }, [!e.isLoading && e.editor ? (i(), s(b, { key: 0 }, [_("div", Me, [
240
- S(W, {
241
- "model-value": y(Ee)(V("fontFamily")),
242
- options: y(Te)(y(L), V("fontFamily")),
243
- label: y(I).paragraphEditor.fontFamily,
244
- placeholder: y(I).paragraphEditor.defaultFont,
245
- "width-class": "tpl:w-32",
246
- "onUpdate:modelValue": H
247
- }, null, 8, [
248
- "model-value",
249
- "options",
250
- "label",
251
- "placeholder"
252
- ]),
253
- S(W, {
254
- "model-value": V("fontSize"),
255
- options: y(xe),
256
- label: y(I).paragraphEditor.fontSize,
257
- placeholder: y(I).paragraphEditor.defaultSize,
258
- "width-class": "tpl:w-20",
259
- "onUpdate:modelValue": U
260
- }, null, 8, [
261
- "model-value",
262
- "options",
263
- "label",
264
- "placeholder"
265
- ]),
266
- S(Q),
267
- S(R, {
268
- "swatch-only": "",
269
- size: "sm",
270
- "data-testid": "text-color-picker",
271
- "model-value": Y(),
272
- "seed-color": J(),
273
- "aria-label": y(I).paragraphEditor.textColor,
274
- "onUpdate:modelValue": q
275
- }, null, 8, [
276
- "model-value",
277
- "seed-color",
278
- "aria-label"
279
- ]),
280
- S(R, {
281
- "swatch-only": "",
282
- size: "sm",
283
- "data-testid": "highlight-color-picker",
284
- "model-value": Ae(),
285
- "seed-color": y(Se),
286
- "aria-label": y(I).paragraphEditor.highlightColor,
287
- "onUpdate:modelValue": Le
288
- }, null, 8, [
289
- "model-value",
290
- "seed-color",
291
- "aria-label"
292
- ]),
293
- S(Q),
294
- S(Z, {
295
- icon: y(fe),
296
- label: y(I).paragraphEditor.bold,
297
- active: e.editor.isActive("bold"),
298
- "stroke-width": 2.5,
299
- onClick: n[0] ||= (t) => e.editor.chain().focus().toggleBold().run()
300
- }, null, 8, [
301
- "icon",
302
- "label",
303
- "active"
304
- ]),
305
- S(Z, {
306
- icon: y(me),
307
- label: y(I).paragraphEditor.italic,
308
- active: e.editor.isActive("italic"),
309
- onClick: n[1] ||= (t) => e.editor.chain().focus().toggleItalic().run()
310
- }, null, 8, [
311
- "icon",
312
- "label",
313
- "active"
314
- ]),
315
- S(Z, {
316
- icon: y(ye),
317
- label: y(I).paragraphEditor.underline,
318
- active: e.editor.isActive("underline"),
319
- onClick: n[2] ||= (t) => e.editor.chain().focus().toggleUnderline().run()
320
- }, null, 8, [
321
- "icon",
322
- "label",
323
- "active"
324
- ]),
325
- S(Z, {
326
- icon: y(ie),
327
- label: y(I).paragraphEditor.strikethrough,
328
- active: e.editor.isActive("strike"),
329
- onClick: n[3] ||= (t) => e.editor.chain().focus().toggleStrike().run()
330
- }, null, 8, [
331
- "icon",
332
- "label",
333
- "active"
334
- ]),
335
- S(Q),
336
- S(Z, {
337
- icon: y(se),
338
- label: y(I).paragraphEditor.subscript,
339
- active: e.editor.isActive("subscript"),
340
- onClick: n[4] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
341
- }, null, 8, [
342
- "icon",
343
- "label",
344
- "active"
345
- ]),
346
- S(Z, {
347
- icon: y(de),
348
- label: y(I).paragraphEditor.superscript,
349
- active: e.editor.isActive("superscript"),
350
- onClick: n[5] ||= (t) => e.editor.chain().focus().toggleSuperscript().run()
351
- }, null, 8, [
352
- "icon",
353
- "label",
354
- "active"
355
- ]),
356
- S(Q),
357
- S(Z, {
358
- icon: y(he),
359
- label: y(I).paragraphEditor.addLink,
360
- active: e.editor.isActive("link"),
361
- onClick: n[6] ||= (e) => g("open-link-dialog")
362
- }, null, 8, [
363
- "icon",
364
- "label",
365
- "active"
366
- ])
367
- ]), _("div", Ne, [
368
- S(Z, {
369
- icon: y(_e),
370
- label: y(I).paragraphEditor.bulletList,
371
- active: e.editor.isActive("bulletList"),
372
- onClick: n[7] ||= (t) => e.editor.chain().focus().toggleBulletList().run()
373
- }, null, 8, [
374
- "icon",
375
- "label",
376
- "active"
377
- ]),
378
- S(Z, {
379
- icon: y(ve),
380
- label: y(I).paragraphEditor.numberedList,
381
- active: e.editor.isActive("orderedList"),
382
- onClick: n[8] ||= (t) => e.editor.chain().focus().toggleOrderedList().run()
383
- }, null, 8, [
384
- "icon",
385
- "label",
386
- "active"
387
- ]),
388
- S(Q),
389
- S(Z, {
390
- icon: y(ge),
391
- label: y(I).paragraphEditor.alignLeft,
392
- active: e.editor.isActive({ textAlign: "left" }),
393
- onClick: n[9] ||= (t) => e.editor.chain().focus().setTextAlign("left").run()
394
- }, null, 8, [
395
- "icon",
396
- "label",
397
- "active"
398
- ]),
399
- S(Z, {
400
- icon: y(be),
401
- label: y(I).paragraphEditor.alignCenter,
402
- active: e.editor.isActive({ textAlign: "center" }),
403
- onClick: n[10] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
404
- }, null, 8, [
405
- "icon",
406
- "label",
407
- "active"
408
- ]),
409
- S(Z, {
410
- icon: y(le),
411
- label: y(I).paragraphEditor.alignRight,
412
- active: e.editor.isActive({ textAlign: "right" }),
413
- onClick: n[11] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
414
- }, null, 8, [
415
- "icon",
416
- "label",
417
- "active"
418
- ]),
419
- S(Z, {
420
- icon: y(pe),
421
- label: y(I).paragraphEditor.alignJustify,
422
- active: e.editor.isActive({ textAlign: "justify" }),
423
- onClick: n[12] ||= (t) => e.editor.chain().focus().setTextAlign("justify").run()
424
- }, null, 8, [
425
- "icon",
426
- "label",
427
- "active"
428
- ]),
429
- S(Q),
430
- S(W, {
431
- "model-value": X(),
432
- options: y(we),
433
- label: y(I).paragraphEditor.lineHeight,
434
- placeholder: y(I).paragraphEditor.lineHeightShort,
435
- "width-class": "tpl:w-16",
436
- "onUpdate:modelValue": Oe
437
- }, null, 8, [
438
- "model-value",
439
- "options",
440
- "label",
441
- "placeholder"
442
- ]),
443
- S(W, {
444
- "model-value": V("letterSpacing"),
445
- options: y(z),
446
- label: y(I).paragraphEditor.letterSpacing,
447
- placeholder: y(I).paragraphEditor.letterSpacingShort,
448
- "width-class": "tpl:w-20",
449
- "onUpdate:modelValue": ke
450
- }, null, 8, [
451
- "model-value",
452
- "options",
453
- "label",
454
- "placeholder"
455
- ]),
456
- S(Q),
457
- S(Z, {
458
- icon: y(ae),
459
- label: y(I).paragraphEditor.clearFormatting,
460
- onClick: n[13] ||= (t) => e.editor.chain().focus().clearNodes().unsetAllMarks().run()
461
- }, null, 8, ["icon", "label"]),
462
- S(Q),
463
- S(De, { onInsert: B }),
464
- e.canRequestMergeTag ? (i(), s(b, { key: 0 }, [S(Q), _("button", {
465
- type: "button",
466
- 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)]",
467
- "aria-label": y(I).mergeTag.insert,
468
- title: y(I).mergeTag.insert,
469
- onClick: n[14] ||= (e) => g("add-merge-tag")
470
- }, [S(y(oe), {
471
- size: 16,
472
- "stroke-width": 2
473
- }), c(" " + p(y(I).mergeTag.insertShort), 1)], 8, Pe)], 64)) : m("", !0),
474
- e.canInsertLogicTag ? (i(), s(b, { key: 1 }, [S(Q), _("button", {
475
- type: "button",
476
- 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)]",
477
- "aria-label": y(I).logicTag.insert,
478
- title: y(I).logicTag.insert,
479
- "data-testid": "insert-logic-button",
480
- onClick: n[15] ||= (e) => g("add-logic-tag")
481
- }, [S(y(ce), {
482
- size: 16,
483
- "stroke-width": 2
484
- }), c(" " + p(y(I).logicTag.insertShort), 1)], 8, Fe)], 64)) : m("", !0),
485
- d.value ? (i(), s(b, { key: 2 }, [S(Q), S(y(r), { editor: e.editor }, null, 8, ["editor"])], 64)) : m("", !0)
486
- ])], 64)) : (i(), s("div", Ie, [S(y(ue), {
487
- class: "tpl-spinner",
488
- size: 14,
489
- "stroke-width": 2
490
- }), c(" " + p(y(I).errors.editorLoading), 1)]))], 12, je)], 8, ["to"])) : m("", !0);
491
- }
492
- }), Re = { class: "tpl-text-editor-wrapper tpl:relative" }, ze = /*@__PURE__*/ t({
493
- __name: "ParagraphEditor",
494
- props: {
495
- block: {},
496
- toolbarPosition: {}
497
- },
498
- emits: ["done"],
499
- setup(e, { emit: t }) {
500
- let r = e, a = t, c = F(), l = n(P, null), u = w(l?.content?.value?.settings ?? { locale: "en" }) === "rtl" ? "right" : "left", { editor: d, EditorContent: f, isLoading: p, initError: m, retry: h, showLinkDialog: g, linkUrl: _, linkColor: v, linkDialogRef: b, canRequestMergeTag: x, canInsertLogicTag: C, openLinkDialog: T, insertLink: E, removeLink: O, closeLinkDialog: A, handleLinkKeydown: j, handleAddMergeTag: M, handleAddLogicTag: N } = D({
501
- blockId: () => r.block.id,
502
- blockContent: () => r.block.content,
503
- onDone: () => a("done"),
504
- editorName: "ParagraphEditor",
505
- async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
506
- 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: w, LineBoundaryKeys: T }] = await Promise.all([
507
- import("./tiptap-CbiTlECY.js").then((e) => e.i),
508
- import("./tiptap-CbiTlECY.js").then((e) => e.a),
509
- import("./tiptap-CbiTlECY.js").then((e) => e.u),
510
- import("./tiptap-CbiTlECY.js").then((e) => e.o),
511
- import("./tiptap-CbiTlECY.js").then((e) => e.l),
512
- import("./tiptap-CbiTlECY.js").then((e) => e.c),
513
- import("./tiptap-CbiTlECY.js").then((e) => e.s),
514
- import("./tiptap-CbiTlECY.js").then((e) => e.m),
515
- import("./tiptap-CbiTlECY.js").then((e) => e.p),
516
- import("./tiptap-CbiTlECY.js").then((e) => e.f),
517
- import("./tiptap-CbiTlECY.js").then((e) => e.d),
518
- import("./extensions-CFF2KWy-.js")
519
- ]);
520
- return {
521
- TiptapEditor: a,
522
- EC: o,
523
- extensions: [
524
- s.configure({
525
- heading: !1,
526
- codeBlock: !1,
527
- blockquote: !1,
528
- horizontalRule: !1,
529
- link: !1,
530
- underline: !1
531
- }),
532
- d,
533
- f,
534
- p,
535
- k(l).configure({
536
- openOnClick: !1,
537
- HTMLAttributes: {
538
- target: "_blank",
539
- rel: "noopener noreferrer"
540
- }
541
- }),
542
- m.configure({
543
- types: ["paragraph"],
544
- defaultAlignment: u
545
- }),
546
- h,
547
- g,
548
- _,
549
- v.configure({ multicolor: !0 }),
550
- S,
551
- C,
552
- w,
553
- y.configure({
554
- mergeTags: () => e.value,
555
- syntax: t
556
- }),
557
- x.configure({ syntax: t }),
558
- T,
559
- ...r && n && e.value.length > 0 ? [b.configure({
560
- mergeTags: () => e.value,
561
- char: n,
562
- emptyText: i,
563
- popoverRoot: c
564
- })] : []
565
- ]
566
- };
567
- }
568
- });
569
- return (t, n) => (i(), s("div", Re, [
570
- S(Le, {
571
- editor: y(d),
572
- "toolbar-position": e.toolbarPosition,
573
- "is-loading": y(p),
574
- "can-request-merge-tag": y(x),
575
- "can-insert-logic-tag": y(C),
576
- onOpenLinkDialog: y(T),
577
- onAddMergeTag: y(M),
578
- onAddLogicTag: y(N)
579
- }, null, 8, [
580
- "editor",
581
- "toolbar-position",
582
- "is-loading",
583
- "can-request-merge-tag",
584
- "can-insert-logic-tag",
585
- "onOpenLinkDialog",
586
- "onAddMergeTag",
587
- "onAddLogicTag"
588
- ]),
589
- S(B, {
590
- editor: y(d),
591
- "editor-content": y(f),
592
- "is-loading": y(p),
593
- "init-error": y(m),
594
- onRetry: y(h)
595
- }, null, 8, [
596
- "editor",
597
- "editor-content",
598
- "is-loading",
599
- "init-error",
600
- "onRetry"
601
- ]),
602
- S(z, {
603
- visible: y(g),
604
- "is-editing-link": y(d)?.isActive("link") ?? !1,
605
- "dialog-ref": y(b),
606
- "onUpdate:dialogRef": n[0] ||= (e) => o(b) ? b.value = e : null,
607
- "link-url": y(_),
608
- "onUpdate:linkUrl": n[1] ||= (e) => o(_) ? _.value = e : null,
609
- "link-color": y(v),
610
- "onUpdate:linkColor": n[2] ||= (e) => o(v) ? v.value = e : null,
611
- onClose: y(A),
612
- onInsert: y(E),
613
- onRemove: y(O),
614
- onKeydown: y(j)
615
- }, null, 8, [
616
- "visible",
617
- "is-editing-link",
618
- "dialog-ref",
619
- "link-url",
620
- "link-color",
621
- "onClose",
622
- "onInsert",
623
- "onRemove",
624
- "onKeydown"
625
- ])
626
- ]));
627
- }
628
- }), Be = /* @__PURE__ */ e({ default: () => Ve }), Ve = ze;
629
- export { Ve as default, W as n, Be as t };
630
-
631
- //# sourceMappingURL=ParagraphEditor-B3Rj_cWF.js.map