@templatical/editor 0.49.0 → 0.50.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 (378) hide show
  1. package/README.md +4 -2
  2. package/dist/AiAltTextPopover-BZQ95GXL.js +106 -0
  3. package/dist/AiAltTextReview-DoBEudnE.js +206 -0
  4. package/dist/AiChatPanel-Bs6sES3b.js +550 -0
  5. package/dist/AiHeaderMenu-BEaTazx4.js +36 -0
  6. package/dist/AiPanels-CfN7A-ZA.js +33 -0
  7. package/dist/AiRewriteMenu-C3ZfDDYy.js +276 -0
  8. package/dist/{BlockIssueBadge-BdpJwim0.js → BlockIssueBadge-CKwZ1Vgn.js} +11 -11
  9. package/dist/{BlockPreviewCanvas-D_sowkf0.js → BlockPreviewCanvas-BXNLLLYi.js} +33 -33
  10. package/dist/CloudHeaderExtras-CsJMEiyN.js +23 -0
  11. package/dist/{CloudPanels-1hwFiJ0G.js → CloudPanels-B4F5m7vy.js} +66 -85
  12. package/dist/{CollaborationNotices-BWpKzueF.js → CollaborationNotices-CNuDp7Y2.js} +19 -16
  13. package/dist/{CollaboratorBar-D87phJsw.js → CollaboratorBar-BtHPiuHq.js} +22 -22
  14. package/dist/{CommentsPanel-BUvUzO3T.js → CommentsPanel-CyCM-BvT.js} +4 -4
  15. package/dist/CommentsSidebar-Ca3DyFOX.js +500 -0
  16. package/dist/{cdn/chunks/CountdownBlock-DB4JNdqh.js → CountdownBlock-DR4Xm2-T.js} +24 -26
  17. package/dist/{CountdownToolbar-CLMIwfK7.js → CountdownToolbar-CEIMPojJ.js} +55 -55
  18. package/dist/IssuesPanel-C8nMUccy.js +360 -0
  19. package/dist/{LoadingTrack-BXOptf5g.js → LoadingTrack-B0RKQWq3.js} +2 -2
  20. package/dist/{LogicTagInsertButton-CR5E4jSG.js → LogicTagInsertButton-CqfU52CO.js} +273 -268
  21. package/dist/{cdn/chunks/MediaEditModal-DD0SZ-S3.js → MediaEditModal-DHtkZ4OU.js} +202 -186
  22. package/dist/{MediaPanels-BVXDkqtH.js → MediaPanels-CGcOB2pR.js} +4 -4
  23. package/dist/{MergeTagInput-BEw_r0PJ.js → MergeTagInput-YnEkorTZ.js} +25 -25
  24. package/dist/{MergeTagModeToggle-CJTpFmVd.js → MergeTagModeToggle-Dhb1DAcQ.js} +40 -40
  25. package/dist/MergeTagTextarea-e4lnwtqZ.js +70 -0
  26. package/dist/ParagraphEditor-B6NK0ytw.js +799 -0
  27. package/dist/{RestoreVersionDialog-BaDpy3cL.js → RestoreVersionDialog-Bq_IGOLJ.js} +21 -21
  28. package/dist/{RichTextEditorContent-CsvniFlI.js → RichTextEditorContent-AOM6fylS.js} +48 -48
  29. package/dist/{SaveBlockDialog-DzWURF_e.js → SaveBlockDialog-C8GngfQx.js} +87 -87
  30. package/dist/{cdn/chunks/SavedBlocksBrowserModal-BMtyUrUP.js → SavedBlocksBrowserModal-wnkvxpm_.js} +102 -99
  31. package/dist/{SavedBlocksPanels-B3Af8ns2.js → SavedBlocksPanels-C2s3q0pJ.js} +9 -9
  32. package/dist/{SavedBlocksPickBar-Dj11-Lqp.js → SavedBlocksPickBar-BjcTiV87.js} +13 -13
  33. package/dist/TemplateSettings-BVBWpiDU.js +237 -0
  34. package/dist/{TestEmailModal-BeRYV3eg.js → TestEmailModal-SyhO9bn3.js} +57 -57
  35. package/dist/{TestEmailPanel-B8c3fQi2.js → TestEmailPanel-BDd2Rtav.js} +4 -4
  36. package/dist/{TitleEditor-CvpNUoAp.js → TitleEditor-pxD53y_l.js} +75 -75
  37. package/dist/ToggleSwitch-D51U9cmR.js +37 -0
  38. package/dist/{Toolbar-BadDSkkF.js → Toolbar-CZSPZYbj.js} +1138 -1138
  39. package/dist/{TplModal-BZgi9Tes.js → TplModal-DCzBzicE.js} +19 -19
  40. package/dist/{VersionHistoryMenu-BRlcQ8wX.js → VersionHistoryMenu-BQeWPT85.js} +35 -35
  41. package/dist/{VersionHistoryPanels-DGkllN3a.js → VersionHistoryPanels-BBm7YbRQ.js} +5 -5
  42. package/dist/{VersionPreviewBanner-F-811aps.js → VersionPreviewBanner-DUGF0tUJ.js} +9 -9
  43. package/dist/WrapperBlock-BO619LAb.js +45 -0
  44. package/dist/aiErrors-D5UOoYOt.js +41 -0
  45. package/dist/aiImageContext-BH4Ss1h3.js +48 -0
  46. package/dist/aiRewritePreview-DLGM05Ge.js +44 -0
  47. package/dist/{blockTypeIcons-CayLluou.js → blockTypeIcons-NzaYvAI4.js} +15 -14
  48. package/dist/bundle-stats.json +8 -8
  49. package/dist/{cdn/chunks/ca-DSJwJ5ov.js → ca-C7mTzW1r.js} +130 -13
  50. package/dist/cdn/chunks/AiAltTextPopover-CQu0Q_ZX.js +107 -0
  51. package/dist/cdn/chunks/AiAltTextPopover-CQu0Q_ZX.js.map +1 -0
  52. package/dist/cdn/chunks/AiAltTextReview-CI2HbWfn.js +207 -0
  53. package/dist/cdn/chunks/AiAltTextReview-CI2HbWfn.js.map +1 -0
  54. package/dist/cdn/chunks/AiChatPanel-BYqn1bKu.js +476 -0
  55. package/dist/cdn/chunks/AiChatPanel-BYqn1bKu.js.map +1 -0
  56. package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js +37 -0
  57. package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js.map +1 -0
  58. package/dist/cdn/chunks/AiPanels-CIFKQv8Y.js +34 -0
  59. package/dist/cdn/chunks/AiPanels-CIFKQv8Y.js.map +1 -0
  60. package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js +208 -0
  61. package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js.map +1 -0
  62. package/dist/cdn/chunks/{BlockIssueBadge-D1VBS_6x.js → BlockIssueBadge-DAn2vsMJ.js} +13 -13
  63. package/dist/cdn/chunks/{BlockIssueBadge-D1VBS_6x.js.map → BlockIssueBadge-DAn2vsMJ.js.map} +1 -1
  64. package/dist/cdn/chunks/{BlockPreviewCanvas-m2tWRyWv.js → BlockPreviewCanvas-D0--EQkP.js} +38 -38
  65. package/dist/cdn/chunks/{BlockPreviewCanvas-m2tWRyWv.js.map → BlockPreviewCanvas-D0--EQkP.js.map} +1 -1
  66. package/dist/cdn/chunks/CloudHeaderExtras-DaUU8P8R.js +25 -0
  67. package/dist/cdn/chunks/CloudHeaderExtras-DaUU8P8R.js.map +1 -0
  68. package/dist/cdn/chunks/{CloudPanels-XufhBZYF.js → CloudPanels-C3jsxo_f.js} +52 -71
  69. package/dist/cdn/chunks/CloudPanels-C3jsxo_f.js.map +1 -0
  70. package/dist/cdn/chunks/{CollaborationNotices-CBvKEj1Q.js → CollaborationNotices-DjRI8gvs.js} +23 -20
  71. package/dist/cdn/chunks/CollaborationNotices-DjRI8gvs.js.map +1 -0
  72. package/dist/cdn/chunks/{CollaboratorBar-DWW54Bn_.js → CollaboratorBar-Dfzm6A9A.js} +20 -20
  73. package/dist/cdn/chunks/{CollaboratorBar-DWW54Bn_.js.map → CollaboratorBar-Dfzm6A9A.js.map} +1 -1
  74. package/dist/cdn/chunks/CommentsPanel-CSO79OeX.js +20 -0
  75. package/dist/cdn/chunks/{CommentsPanel-R8YLLO3v.js.map → CommentsPanel-CSO79OeX.js.map} +1 -1
  76. package/dist/cdn/chunks/CommentsSidebar-CCvplq1Z.js +470 -0
  77. package/dist/cdn/chunks/{CommentsSidebar-96NZHVq3.js.map → CommentsSidebar-CCvplq1Z.js.map} +1 -1
  78. package/dist/{CountdownBlock-DPQXWRvU.js → cdn/chunks/CountdownBlock-C6USdwk3.js} +19 -17
  79. package/dist/cdn/chunks/{CountdownBlock-DB4JNdqh.js.map → CountdownBlock-C6USdwk3.js.map} +1 -1
  80. package/dist/cdn/chunks/{CountdownToolbar-tmiTPEXm.js → CountdownToolbar-Cjud2Tos.js} +70 -70
  81. package/dist/cdn/chunks/{CountdownToolbar-tmiTPEXm.js.map → CountdownToolbar-Cjud2Tos.js.map} +1 -1
  82. package/dist/cdn/chunks/IssuesPanel-BaWHPDxZ.js +340 -0
  83. package/dist/cdn/chunks/IssuesPanel-BaWHPDxZ.js.map +1 -0
  84. package/dist/cdn/chunks/{LoadingTrack-YU44CM8X.js → LoadingTrack-BIcL4NiY.js} +2 -2
  85. package/dist/cdn/chunks/{LoadingTrack-YU44CM8X.js.map → LoadingTrack-BIcL4NiY.js.map} +1 -1
  86. package/dist/cdn/chunks/{LogicTagInsertButton-BJ2t2vxC.js → LogicTagInsertButton-CsL2JDOG.js} +367 -362
  87. package/dist/cdn/chunks/LogicTagInsertButton-CsL2JDOG.js.map +1 -0
  88. package/dist/{MediaEditModal-C_wxoUMG.js → cdn/chunks/MediaEditModal-BuHCiyMu.js} +544 -560
  89. package/dist/cdn/chunks/MediaEditModal-BuHCiyMu.js.map +1 -0
  90. package/dist/cdn/chunks/MediaPanels-DAgUf_T1.js +45 -0
  91. package/dist/cdn/chunks/{MediaPanels-CkdJ_kGp.js.map → MediaPanels-DAgUf_T1.js.map} +1 -1
  92. package/dist/cdn/chunks/{MergeTagInput-7wXX71DH.js → MergeTagInput-C8U-7LxL.js} +33 -33
  93. package/dist/cdn/chunks/{MergeTagInput-7wXX71DH.js.map → MergeTagInput-C8U-7LxL.js.map} +1 -1
  94. package/dist/cdn/chunks/{MergeTagModeToggle-r9vHH4u_.js → MergeTagModeToggle-Mm-p0A52.js} +41 -41
  95. package/dist/cdn/chunks/{MergeTagModeToggle-r9vHH4u_.js.map → MergeTagModeToggle-Mm-p0A52.js.map} +1 -1
  96. package/dist/cdn/chunks/MergeTagTextarea-DuLScsWM.js +72 -0
  97. package/dist/cdn/chunks/MergeTagTextarea-DuLScsWM.js.map +1 -0
  98. package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js +634 -0
  99. package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js.map +1 -0
  100. package/dist/cdn/chunks/{RestoreVersionDialog-C5cxBRKi.js → RestoreVersionDialog-CdA5osuA.js} +25 -25
  101. package/dist/cdn/chunks/{RestoreVersionDialog-C5cxBRKi.js.map → RestoreVersionDialog-CdA5osuA.js.map} +1 -1
  102. package/dist/cdn/chunks/{RichTextEditorContent-BfE7Bkge.js → RichTextEditorContent-Q1d2xqBT.js} +46 -46
  103. package/dist/cdn/chunks/{RichTextEditorContent-BfE7Bkge.js.map → RichTextEditorContent-Q1d2xqBT.js.map} +1 -1
  104. package/dist/cdn/chunks/{SaveBlockDialog-BKbjUnPM.js → SaveBlockDialog-CijargAy.js} +77 -77
  105. package/dist/cdn/chunks/{SaveBlockDialog-BKbjUnPM.js.map → SaveBlockDialog-CijargAy.js.map} +1 -1
  106. package/dist/cdn/chunks/SavedBlocksBrowserModal-DtOz_X5S.js +357 -0
  107. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BMtyUrUP.js.map → SavedBlocksBrowserModal-DtOz_X5S.js.map} +1 -1
  108. package/dist/cdn/chunks/SavedBlocksPanels-BowyED5h.js +38 -0
  109. package/dist/cdn/chunks/{SavedBlocksPanels-s_gxi1im.js.map → SavedBlocksPanels-BowyED5h.js.map} +1 -1
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-B8WHk5mI.js → SavedBlocksPickBar-BPRaJBv3.js} +18 -18
  111. package/dist/cdn/chunks/{SavedBlocksPickBar-B8WHk5mI.js.map → SavedBlocksPickBar-BPRaJBv3.js.map} +1 -1
  112. package/dist/cdn/chunks/TemplateSettings-ByZeBO34.js +209 -0
  113. package/dist/cdn/chunks/{TemplateSettings-CtrzzQWl.js.map → TemplateSettings-ByZeBO34.js.map} +1 -1
  114. package/dist/cdn/chunks/{TestEmailModal-DuZKYMWD.js → TestEmailModal-BUVTj3Ic.js} +54 -54
  115. package/dist/cdn/chunks/{TestEmailModal-DuZKYMWD.js.map → TestEmailModal-BUVTj3Ic.js.map} +1 -1
  116. package/dist/cdn/chunks/TestEmailPanel-BxutYoWg.js +35 -0
  117. package/dist/cdn/chunks/{TestEmailPanel-DERaCdpG.js.map → TestEmailPanel-BxutYoWg.js.map} +1 -1
  118. package/dist/cdn/chunks/TitleEditor-Ccv6uoTz.js +199 -0
  119. package/dist/cdn/chunks/{TitleEditor-CEgxjtUX.js.map → TitleEditor-Ccv6uoTz.js.map} +1 -1
  120. package/dist/cdn/chunks/ToggleSwitch-Ctdmj621.js +39 -0
  121. package/dist/cdn/chunks/ToggleSwitch-Ctdmj621.js.map +1 -0
  122. package/dist/cdn/chunks/{Toolbar-GFIZQHzw.js → Toolbar-DoprRgTn.js} +986 -987
  123. package/dist/cdn/chunks/{Toolbar-GFIZQHzw.js.map → Toolbar-DoprRgTn.js.map} +1 -1
  124. package/dist/cdn/chunks/{TplModal-DDrbWJcE.js → TplModal-BXQzmsJX.js} +21 -21
  125. package/dist/cdn/chunks/{TplModal-DDrbWJcE.js.map → TplModal-BXQzmsJX.js.map} +1 -1
  126. package/dist/cdn/chunks/{VersionHistoryMenu-MlxsUmuT.js → VersionHistoryMenu-BF2fNCvq.js} +41 -41
  127. package/dist/cdn/chunks/{VersionHistoryMenu-MlxsUmuT.js.map → VersionHistoryMenu-BF2fNCvq.js.map} +1 -1
  128. package/dist/cdn/chunks/VersionHistoryPanels-Dal0Uk69.js +48 -0
  129. package/dist/cdn/chunks/{VersionHistoryPanels-DVOV8QLv.js.map → VersionHistoryPanels-Dal0Uk69.js.map} +1 -1
  130. package/dist/cdn/chunks/{VersionPreviewBanner-BQwRKc6S.js → VersionPreviewBanner-BaGcn-b1.js} +12 -12
  131. package/dist/cdn/chunks/{VersionPreviewBanner-BQwRKc6S.js.map → VersionPreviewBanner-BaGcn-b1.js.map} +1 -1
  132. package/dist/cdn/chunks/WrapperBlock-DkQJtLz0.js +47 -0
  133. package/dist/cdn/chunks/{WrapperBlock-CFuP4R0c.js.map → WrapperBlock-DkQJtLz0.js.map} +1 -1
  134. package/dist/cdn/chunks/aiErrors-D5UOoYOt.js +43 -0
  135. package/dist/cdn/chunks/aiErrors-D5UOoYOt.js.map +1 -0
  136. package/dist/cdn/chunks/aiImageContext-BH4Ss1h3.js +50 -0
  137. package/dist/cdn/chunks/aiImageContext-BH4Ss1h3.js.map +1 -0
  138. package/dist/cdn/chunks/aiRewritePreview-DLGM05Ge.js +46 -0
  139. package/dist/cdn/chunks/aiRewritePreview-DLGM05Ge.js.map +1 -0
  140. package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js +22 -0
  141. package/dist/cdn/chunks/{blockTypeIcons-BnAd8qsP.js.map → blockTypeIcons-ikZAmd6U.js.map} +1 -1
  142. package/dist/{ca-DSJwJ5ov.js → cdn/chunks/ca-C7mTzW1r.js} +132 -11
  143. package/dist/cdn/chunks/ca-C7mTzW1r.js.map +1 -0
  144. package/dist/cdn/chunks/{cloud-CI_fgDyy.js → createCloudRuntime-DpBWhrv3.js} +489 -593
  145. package/dist/cdn/chunks/createCloudRuntime-DpBWhrv3.js.map +1 -0
  146. package/dist/cdn/chunks/de-DBOTcDj2.js +22 -0
  147. package/dist/cdn/chunks/de-DBOTcDj2.js.map +1 -0
  148. package/dist/{de-CBE6O79z.js → cdn/chunks/de-DNuYQTmS.js} +132 -11
  149. package/dist/cdn/chunks/de-DNuYQTmS.js.map +1 -0
  150. package/dist/{dist-Bv_GBr2l.js → cdn/chunks/dist-Bo8Thh8v.js} +60 -58
  151. package/dist/cdn/chunks/{dist-Doy3r07H.js.map → dist-Bo8Thh8v.js.map} +1 -1
  152. package/dist/cdn/chunks/dist-S-rLGqax.js +406 -0
  153. package/dist/cdn/chunks/{dist-DdwjXLme.js.map → dist-S-rLGqax.js.map} +1 -1
  154. package/dist/cdn/chunks/{draggable-akeQH_JP.js → draggable-DZ0gwUJ6.js} +1822 -1728
  155. package/dist/cdn/chunks/draggable-DZ0gwUJ6.js.map +1 -0
  156. package/dist/cdn/chunks/{editor-modal-HJBy9kLj.js → editor-modal-CI6EfeMd.js} +884 -884
  157. package/dist/cdn/chunks/{editor-modal-HJBy9kLj.js.map → editor-modal-CI6EfeMd.js.map} +1 -1
  158. package/dist/cdn/chunks/en-CDhWRrF_.js +22 -0
  159. package/dist/cdn/chunks/en-CDhWRrF_.js.map +1 -0
  160. package/dist/{en-CDexnk0p.js → cdn/chunks/en-CW71OK66.js} +132 -11
  161. package/dist/cdn/chunks/en-CW71OK66.js.map +1 -0
  162. package/dist/cdn/chunks/en-ifvu6oPv.js +1 -0
  163. package/dist/{es-BE42B6uN.js → cdn/chunks/es-DdK7zQfi.js} +132 -11
  164. package/dist/cdn/chunks/es-DdK7zQfi.js.map +1 -0
  165. package/dist/cdn/chunks/{extensions-koOuDeZS.js → extensions-taJTZlLK.js} +59 -59
  166. package/dist/cdn/chunks/{extensions-koOuDeZS.js.map → extensions-taJTZlLK.js.map} +1 -1
  167. package/dist/{fr-DlJFPDQR.js → cdn/chunks/fr-Dz5Bgb7-.js} +132 -11
  168. package/dist/cdn/chunks/fr-Dz5Bgb7-.js.map +1 -0
  169. package/dist/cdn/chunks/{icons-CjlNV8xD.js → icons-DNX6StSs.js} +178 -145
  170. package/dist/cdn/chunks/icons-DNX6StSs.js.map +1 -0
  171. package/dist/{ja-CUT8gkNI.js → cdn/chunks/ja-Di-zJiT8.js} +132 -11
  172. package/dist/cdn/chunks/ja-Di-zJiT8.js.map +1 -0
  173. package/dist/cdn/chunks/keys-BTpmg2Tt.js +12 -0
  174. package/dist/cdn/chunks/keys-BTpmg2Tt.js.map +1 -0
  175. package/dist/{logger-BBlvSn6q.js → cdn/chunks/logger-Tj0RPskW.js} +7 -1
  176. package/dist/cdn/chunks/logger-Tj0RPskW.js.map +1 -0
  177. package/dist/{nl-bXWqqRyS.js → cdn/chunks/nl-CvVuHYFL.js} +132 -11
  178. package/dist/cdn/chunks/{nl-bXWqqRyS.js.map → nl-CvVuHYFL.js.map} +1 -1
  179. package/dist/cdn/chunks/normalizeMergeTagMarkup-DyePIGqu.js +199 -0
  180. package/dist/cdn/chunks/normalizeMergeTagMarkup-DyePIGqu.js.map +1 -0
  181. package/dist/cdn/chunks/{preRenderCustomBlocks-DqKbdTJ8.js → preRenderCustomBlocks-Dc-QLntG.js} +4 -4
  182. package/dist/cdn/chunks/{preRenderCustomBlocks-DqKbdTJ8.js.map → preRenderCustomBlocks-Dc-QLntG.js.map} +1 -1
  183. package/dist/cdn/chunks/pt-BR-CHM-ZKvE.js +22 -0
  184. package/dist/cdn/chunks/pt-BR-CHM-ZKvE.js.map +1 -0
  185. package/dist/{pt-BR-2_H4-wlb.js → cdn/chunks/pt-BR-ZhO4vgyq.js} +132 -11
  186. package/dist/cdn/chunks/pt-BR-ZhO4vgyq.js.map +1 -0
  187. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js +62 -0
  188. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js.map +1 -0
  189. package/dist/cdn/chunks/socialIcons-BBvsTwCV.js +2032 -0
  190. package/dist/cdn/chunks/socialIcons-BBvsTwCV.js.map +1 -0
  191. package/dist/{dist-DBG3nh3k.js → cdn/chunks/src-BNFnxfrA.js} +552 -350
  192. package/dist/cdn/chunks/src-BNFnxfrA.js.map +1 -0
  193. package/dist/cdn/chunks/{src-B77z1iw4.js → src-BcTUmgLe.js} +113 -113
  194. package/dist/cdn/chunks/{src-B77z1iw4.js.map → src-BcTUmgLe.js.map} +1 -1
  195. package/dist/cdn/chunks/src-Bs_yxk3h.js +4392 -0
  196. package/dist/cdn/chunks/src-Bs_yxk3h.js.map +1 -0
  197. package/dist/cdn/chunks/{tiptap-B1RfWFzB.js → tiptap-CtVrAViq.js} +43 -43
  198. package/dist/cdn/chunks/{tiptap-B1RfWFzB.js.map → tiptap-CtVrAViq.js.map} +1 -1
  199. package/dist/cdn/chunks/{useCloudI18n-kp07GQmk.js → useCloudI18n-AVXhzbhQ.js} +4 -4
  200. package/dist/cdn/chunks/{useCloudI18n-kp07GQmk.js.map → useCloudI18n-AVXhzbhQ.js.map} +1 -1
  201. package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js +2586 -0
  202. package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js.map +1 -0
  203. package/dist/cdn/chunks/useEditorRoot-CR5GjJD6.js +10 -0
  204. package/dist/cdn/chunks/{useEditorRoot-5SBqm90x.js.map → useEditorRoot-CR5GjJD6.js.map} +1 -1
  205. package/dist/cdn/chunks/{useI18n-DEqtEgOs.js → useI18n-CbVubQhM.js} +3 -3
  206. package/dist/cdn/chunks/{useI18n-DEqtEgOs.js.map → useI18n-CbVubQhM.js.map} +1 -1
  207. package/dist/cdn/chunks/{useLogicTag-X8bc5qNl.js → useLogicTag-B49Nc53Y.js} +5 -5
  208. package/dist/cdn/chunks/{useLogicTag-X8bc5qNl.js.map → useLogicTag-B49Nc53Y.js.map} +1 -1
  209. package/dist/cdn/chunks/{useMergeTag-DFoOexIQ.js → useMergeTag-B0KryMj8.js} +5 -5
  210. package/dist/cdn/chunks/{useMergeTag-DFoOexIQ.js.map → useMergeTag-B0KryMj8.js.map} +1 -1
  211. package/dist/cdn/chunks/{usePopoverPosition-Cz9-XiXR.js → usePopoverPosition-C829ps5i.js} +4 -4
  212. package/dist/cdn/chunks/{usePopoverPosition-Cz9-XiXR.js.map → usePopoverPosition-C829ps5i.js.map} +1 -1
  213. package/dist/cdn/chunks/useScrollToBlock-CAwvulog.js +51 -0
  214. package/dist/cdn/chunks/useScrollToBlock-CAwvulog.js.map +1 -0
  215. package/dist/cdn/chunks/{withCurrentFont-D-f61ghC.js → withCurrentFont-DFPXeVfG.js} +2 -2
  216. package/dist/cdn/chunks/{withCurrentFont-D-f61ghC.js.map → withCurrentFont-DFPXeVfG.js.map} +1 -1
  217. package/dist/cdn/editor.css +1 -1
  218. package/dist/cdn/editor.js +2151 -1480
  219. package/dist/cdn/editor.js.map +1 -1
  220. package/dist/{check-DQQzkmIC.js → check-yYsp5Xpk.js} +1 -1
  221. package/dist/{chevron-down-CIF4bdon.js → chevron-down-DTmD06_j.js} +1 -1
  222. package/dist/{chevron-right-Cg7Xu-ev.js → chevron-right-BSeYZOxc.js} +1 -1
  223. package/dist/{chevron-up-Csu7ISD-.js → chevron-up-BOApwrxi.js} +1 -1
  224. package/dist/{circle-alert-YUvIJAgY.js → circle-alert-BMszY8im.js} +1 -1
  225. package/dist/{clock-CnSIGKQW.js → clock-HADxnl6-.js} +1 -1
  226. package/dist/{cloud-YUYDtdHt.js → createCloudRuntime-DVQI_ReU.js} +474 -570
  227. package/dist/{createLucideIcon-BcP1sjdp.js → createLucideIcon-0lYYH3EW.js} +6 -6
  228. package/dist/de-DBOTcDj2.js +20 -0
  229. package/dist/{cdn/chunks/de-CBE6O79z.js → de-DNuYQTmS.js} +130 -13
  230. package/dist/{cdn/chunks/dist-Doy3r07H.js → dist-C7EtxNCb.js} +49 -51
  231. package/dist/{dist-CNqjHA8e.js → dist-C_dV9QAx.js} +130 -130
  232. package/dist/{cdn/chunks/dist-DdwjXLme.js → dist-DI4_YSnG.js} +111 -110
  233. package/dist/{cdn/chunks/src-CvLTYGdO.js → dist-DtOF3bDW.js} +446 -393
  234. package/dist/{editor-modal--7_9A6j-.js → editor-modal-Bzhl-PgI.js} +832 -834
  235. package/dist/en-CDhWRrF_.js +20 -0
  236. package/dist/{cdn/chunks/en-CDexnk0p.js → en-CW71OK66.js} +130 -13
  237. package/dist/en-DwV15ltA.js +1 -0
  238. package/dist/{cdn/chunks/es-BE42B6uN.js → es-DdK7zQfi.js} +130 -13
  239. package/dist/{extensions-zwsZlWjH.js → extensions-CdyweA50.js} +57 -57
  240. package/dist/{eye-B1bua-ck.js → eye-DWkSvYpj.js} +1 -1
  241. package/dist/{cdn/chunks/fr-DlJFPDQR.js → fr-Dz5Bgb7-.js} +130 -13
  242. package/dist/image-DesWjcZ4.js +28 -0
  243. package/dist/index.d.ts +361 -24
  244. package/dist/{info-x26nGOo2.js → info-ClWJGoZy.js} +1 -1
  245. package/dist/{cdn/chunks/ja-CUT8gkNI.js → ja-Di-zJiT8.js} +130 -13
  246. package/dist/keys-Zd9KWRD1.js +10 -0
  247. package/dist/{link-CezhndyR.js → link-BqRicFTA.js} +1 -1
  248. package/dist/{list-DQqdptI0.js → list-bojQr9bn.js} +1 -1
  249. package/dist/{loader-circle-DCEeoYoi.js → loader-circle-B2B8LbUu.js} +1 -1
  250. package/dist/{cdn/chunks/logger-ByvdoAwq.js → logger-k9Nbj3Cp.js} +5 -3
  251. package/dist/{message-circle-BLGzfv_7.js → message-circle-BEuiNsyZ.js} +1 -1
  252. package/dist/{cdn/chunks/nl-bXWqqRyS.js → nl-CvVuHYFL.js} +130 -13
  253. package/dist/normalizeMergeTagMarkup-P6SUBuPv.js +197 -0
  254. package/dist/{package-D_kEQCMU.js → package-DCROB4aM.js} +1 -1
  255. package/dist/{pencil-Dct8zGLy.js → pencil-CEotCKbf.js} +1 -1
  256. package/dist/{preRenderCustomBlocks-CtKJecE-.js → preRenderCustomBlocks-D8rr61_z.js} +4 -4
  257. package/dist/pt-BR-CHM-ZKvE.js +20 -0
  258. package/dist/{cdn/chunks/pt-BR-2_H4-wlb.js → pt-BR-ZhO4vgyq.js} +130 -13
  259. package/dist/{refresh-cw-tGMRDxr8.js → refresh-cw-C6M2mHNC.js} +12 -2
  260. package/dist/{runtime-dom.esm-bundler-DYn1z2Xf.js → runtime-dom.esm-bundler-B8WCZWUm.js} +134 -134
  261. package/dist/sanitizeRichTextHtml-DeISfLFr.js +60 -0
  262. package/dist/{search-Bm2cCQpe.js → search-Cy99zPYf.js} +1 -1
  263. package/dist/{send-sVLaKZ7f.js → send-BDLJFsf3.js} +1 -1
  264. package/dist/{smartphone-B2W81p02.js → smartphone-CVvQaNA4.js} +1 -1
  265. package/dist/{cdn/chunks/socialIcons-CkZSYpoG.js → socialIcons-Dd-jRiVe.js} +688 -693
  266. package/dist/{sparkles-a1qkBZ8X.js → sparkles-Ce0Qz0ox.js} +1 -1
  267. package/dist/square-BWlolnXe.js +15 -0
  268. package/dist/style.css +1 -1
  269. package/dist/templatical-editor.js +2114 -1422
  270. package/dist/{text-align-start-CTuwQ5YW.js → text-align-start-D1V5gPTy.js} +1 -1
  271. package/dist/{trash-I3D2peFQ.js → trash-CZfiUFmw.js} +1 -1
  272. package/dist/{triangle-alert-CenxmLRE.js → triangle-alert-CFDzyFC7.js} +1 -1
  273. package/dist/upload-BJfvdIrD.js +36 -0
  274. package/dist/{useCloudI18n-CGVEZV3o.js → useCloudI18n-Dcjua65H.js} +5 -5
  275. package/dist/{useEditorCore-DRbMRe8F.js → useEditorCore-BTLeAVlM.js} +1463 -1499
  276. package/dist/{useEditorRoot-BVm2-1N8.js → useEditorRoot-DUy67lJu.js} +2 -2
  277. package/dist/{useI18n-CSh4gO5c.js → useI18n-BdoY7xDE.js} +4 -4
  278. package/dist/{useLogicTag-zcI6BWIf.js → useLogicTag-DKLZ1T9H.js} +3 -3
  279. package/dist/{useMergeTag-C-iBLlp0.js → useMergeTag-Bhdx7AKk.js} +3 -3
  280. package/dist/{usePopoverPosition-CMcsMBtK.js → usePopoverPosition-BZea45XK.js} +2 -2
  281. package/dist/useScrollToBlock-FmNMALM_.js +74 -0
  282. package/dist/{vue.runtime.esm-bundler-DV0Wx4r_.js → vue.runtime.esm-bundler-DgFJ6GPG.js} +1428 -1332
  283. package/dist/{withCurrentFont-D62njRLu.js → withCurrentFont-BATJHNve.js} +1 -1
  284. package/dist/{x-KFQ4S-Kz.js → x-CZ0Js0hA.js} +1 -1
  285. package/package.json +14 -12
  286. package/dist/AiChatSidebar-CdjTb9ej.js +0 -230
  287. package/dist/AiFeatureMenu-DKm7VYCs.js +0 -57
  288. package/dist/CloudHeaderExtras-CI8RR9hG.js +0 -55
  289. package/dist/CommentsSidebar-J65znlrH.js +0 -500
  290. package/dist/DesignReferenceSidebar-BTwCFgz8.js +0 -279
  291. package/dist/IssuesPanel-DeeVsfG7.js +0 -117
  292. package/dist/ParagraphEditor-zLV44z-R.js +0 -797
  293. package/dist/SavedBlocksBrowserModal-B8DCFW7t.js +0 -360
  294. package/dist/TemplateScoringPanel-Ba9sgvjS.js +0 -273
  295. package/dist/TemplateSettings-Cu5X9DgA.js +0 -246
  296. package/dist/ToggleSwitch-DHweVJOr.js +0 -102
  297. package/dist/WrapperBlock-DiiaxpMb.js +0 -45
  298. package/dist/cdn/chunks/AiChatSidebar-yXJ85Zcg.js +0 -205
  299. package/dist/cdn/chunks/AiChatSidebar-yXJ85Zcg.js.map +0 -1
  300. package/dist/cdn/chunks/AiFeatureMenu-4ydjrhsQ.js +0 -57
  301. package/dist/cdn/chunks/AiFeatureMenu-4ydjrhsQ.js.map +0 -1
  302. package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js +0 -56
  303. package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js.map +0 -1
  304. package/dist/cdn/chunks/CloudPanels-XufhBZYF.js.map +0 -1
  305. package/dist/cdn/chunks/CollaborationNotices-CBvKEj1Q.js.map +0 -1
  306. package/dist/cdn/chunks/CommentsPanel-R8YLLO3v.js +0 -20
  307. package/dist/cdn/chunks/CommentsSidebar-96NZHVq3.js +0 -470
  308. package/dist/cdn/chunks/DesignReferenceSidebar-D14IIu_P.js +0 -229
  309. package/dist/cdn/chunks/DesignReferenceSidebar-D14IIu_P.js.map +0 -1
  310. package/dist/cdn/chunks/IssuesPanel-BoPiCLGc.js +0 -100
  311. package/dist/cdn/chunks/IssuesPanel-BoPiCLGc.js.map +0 -1
  312. package/dist/cdn/chunks/LogicTagInsertButton-BJ2t2vxC.js.map +0 -1
  313. package/dist/cdn/chunks/MediaEditModal-DD0SZ-S3.js.map +0 -1
  314. package/dist/cdn/chunks/MediaPanels-CkdJ_kGp.js +0 -45
  315. package/dist/cdn/chunks/ParagraphEditor-CJQjRHXV.js +0 -632
  316. package/dist/cdn/chunks/ParagraphEditor-CJQjRHXV.js.map +0 -1
  317. package/dist/cdn/chunks/SavedBlocksPanels-s_gxi1im.js +0 -38
  318. package/dist/cdn/chunks/TemplateScoringPanel-BBPnHILC.js +0 -237
  319. package/dist/cdn/chunks/TemplateScoringPanel-BBPnHILC.js.map +0 -1
  320. package/dist/cdn/chunks/TemplateSettings-CtrzzQWl.js +0 -208
  321. package/dist/cdn/chunks/TestEmailPanel-DERaCdpG.js +0 -35
  322. package/dist/cdn/chunks/TitleEditor-CEgxjtUX.js +0 -199
  323. package/dist/cdn/chunks/ToggleSwitch-DGQ7iRc-.js +0 -104
  324. package/dist/cdn/chunks/ToggleSwitch-DGQ7iRc-.js.map +0 -1
  325. package/dist/cdn/chunks/VersionHistoryPanels-DVOV8QLv.js +0 -48
  326. package/dist/cdn/chunks/WrapperBlock-CFuP4R0c.js +0 -47
  327. package/dist/cdn/chunks/blockTypeIcons-BnAd8qsP.js +0 -22
  328. package/dist/cdn/chunks/ca-DSJwJ5ov.js.map +0 -1
  329. package/dist/cdn/chunks/cloud-CI_fgDyy.js.map +0 -1
  330. package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js +0 -358
  331. package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js.map +0 -1
  332. package/dist/cdn/chunks/de-CBE6O79z.js.map +0 -1
  333. package/dist/cdn/chunks/de-D_atmUVB.js +0 -89
  334. package/dist/cdn/chunks/de-D_atmUVB.js.map +0 -1
  335. package/dist/cdn/chunks/draggable-akeQH_JP.js.map +0 -1
  336. package/dist/cdn/chunks/en-CDexnk0p.js.map +0 -1
  337. package/dist/cdn/chunks/en-DhJLnaBx.js +0 -89
  338. package/dist/cdn/chunks/en-DhJLnaBx.js.map +0 -1
  339. package/dist/cdn/chunks/en-Ve-PWSXu.js +0 -1
  340. package/dist/cdn/chunks/es-BE42B6uN.js.map +0 -1
  341. package/dist/cdn/chunks/fr-DlJFPDQR.js.map +0 -1
  342. package/dist/cdn/chunks/icons-CjlNV8xD.js.map +0 -1
  343. package/dist/cdn/chunks/ja-CUT8gkNI.js.map +0 -1
  344. package/dist/cdn/chunks/keys-UAWhQ3zW.js +0 -12
  345. package/dist/cdn/chunks/keys-UAWhQ3zW.js.map +0 -1
  346. package/dist/cdn/chunks/logger-ByvdoAwq.js.map +0 -1
  347. package/dist/cdn/chunks/pt-BR-2_H4-wlb.js.map +0 -1
  348. package/dist/cdn/chunks/pt-BR-BphMoUTw.js +0 -89
  349. package/dist/cdn/chunks/pt-BR-BphMoUTw.js.map +0 -1
  350. package/dist/cdn/chunks/socialIcons-CkZSYpoG.js.map +0 -1
  351. package/dist/cdn/chunks/src-B1e5SSYP.js +0 -1272
  352. package/dist/cdn/chunks/src-B1e5SSYP.js.map +0 -1
  353. package/dist/cdn/chunks/src-CvLTYGdO.js.map +0 -1
  354. package/dist/cdn/chunks/timeouts-o5Y9BuqI.js +0 -6
  355. package/dist/cdn/chunks/timeouts-o5Y9BuqI.js.map +0 -1
  356. package/dist/cdn/chunks/useAliveFlag-PuXh83UK.js +0 -12
  357. package/dist/cdn/chunks/useAliveFlag-PuXh83UK.js.map +0 -1
  358. package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js +0 -2623
  359. package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js.map +0 -1
  360. package/dist/cdn/chunks/useEditorRoot-5SBqm90x.js +0 -10
  361. package/dist/cdn/chunks/useScrollToBlock-MNzurEZV.js +0 -21
  362. package/dist/cdn/chunks/useScrollToBlock-MNzurEZV.js.map +0 -1
  363. package/dist/copy-CUC43md_.js +0 -19
  364. package/dist/createCloudRuntime-BMDRjL0k.js +0 -356
  365. package/dist/de-D_atmUVB.js +0 -87
  366. package/dist/dist-CCqn-RqE.js +0 -407
  367. package/dist/en-BHCMzqib.js +0 -1
  368. package/dist/en-DhJLnaBx.js +0 -87
  369. package/dist/image-up-BqiO7KCO.js +0 -27
  370. package/dist/keys-BymCnLHD.js +0 -10
  371. package/dist/plus-BDd0gTEm.js +0 -14
  372. package/dist/pt-BR-BphMoUTw.js +0 -87
  373. package/dist/shield-check-YhsbXfQc.js +0 -14
  374. package/dist/socialIcons-Bwv-49EB.js +0 -2167
  375. package/dist/timeouts-o5Y9BuqI.js +0 -4
  376. package/dist/upload-uU2cK0Ce.js +0 -21
  377. package/dist/useAliveFlag-BjP0Gxza.js +0 -10
  378. package/dist/useScrollToBlock-CdCQK9QQ.js +0 -47
@@ -0,0 +1,799 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { At as t, C as n, I as r, Mt as i, N as a, Q as o, _ as s, a as c, c as l, d as u, f as d, g as f, j as p, jt as m, l as h, ot as g, q as _, r as v, u as y, v as b, y as x } from "./vue.runtime.esm-bundler-DgFJ6GPG.js";
3
+ import { c as S, s as C } from "./runtime-dom.esm-bundler-B8WCZWUm.js";
4
+ import { ft as w } from "./dist-DtOF3bDW.js";
5
+ import { t as T } from "./dist-DI4_YSnG.js";
6
+ import { C as E, S as D, b as O, y as k } from "./useEditorCore-BTLeAVlM.js";
7
+ import { $ as A, A as j, E as ee, J as te, Z as ne, g as M, l as re, v as ie } from "./keys-Zd9KWRD1.js";
8
+ import { t as N } from "./useI18n-BdoY7xDE.js";
9
+ import { n as P } from "./usePopoverPosition-BZea45XK.js";
10
+ import { t as F } from "./createLucideIcon-0lYYH3EW.js";
11
+ import { i as ae, n as I, r as oe, t as L } from "./RichTextEditorContent-AOM6fylS.js";
12
+ import { c as R, l as se, u as ce } from "./LogicTagInsertButton-CqfU52CO.js";
13
+ import { t as le } from "./link-BqRicFTA.js";
14
+ import { t as ue } from "./loader-circle-B2B8LbUu.js";
15
+ import { t as de } from "./list-bojQr9bn.js";
16
+ import { n as fe, r as pe, t as me } from "./text-align-start-D1V5gPTy.js";
17
+ import { t as z } from "./_plugin-vue_export-helper-B3ysoDQm.js";
18
+ import { a as he, n as ge, o as _e, s as ve } from "./styleConstants-v1dNKgJf.js";
19
+ import { n as ye, t as be } from "./withCurrentFont-BATJHNve.js";
20
+ var B = F({
21
+ name: "face-slightly-smiling",
22
+ size: 24,
23
+ node: [
24
+ ["path", {
25
+ d: "M15 10V9",
26
+ key: "4dkmfx"
27
+ }],
28
+ ["path", {
29
+ d: "M16.472 15a6 6 0 01-8.943 0",
30
+ key: "7qomzy"
31
+ }],
32
+ ["path", {
33
+ d: "M9 10V9",
34
+ key: "1lazqi"
35
+ }],
36
+ ["circle", {
37
+ cx: "12",
38
+ cy: "12",
39
+ r: "10",
40
+ key: "1mglay"
41
+ }]
42
+ ],
43
+ aliases: ["smile"]
44
+ }), xe = F({
45
+ name: "list-ordered",
46
+ size: 24,
47
+ node: [
48
+ ["path", {
49
+ d: "M11 5h10",
50
+ key: "1cz7ny"
51
+ }],
52
+ ["path", {
53
+ d: "M11 12h10",
54
+ key: "1438ji"
55
+ }],
56
+ ["path", {
57
+ d: "M11 19h10",
58
+ key: "11t30w"
59
+ }],
60
+ ["path", {
61
+ d: "M4 4h1v5",
62
+ key: "10yrso"
63
+ }],
64
+ ["path", {
65
+ d: "M4 9h2",
66
+ key: "r1h2o0"
67
+ }],
68
+ ["path", {
69
+ d: "M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",
70
+ key: "xtkcd5"
71
+ }]
72
+ ]
73
+ }), Se = F({
74
+ name: "remove-formatting",
75
+ size: 24,
76
+ node: [
77
+ ["path", {
78
+ d: "M4 7V4h16v3",
79
+ key: "9msm58"
80
+ }],
81
+ ["path", {
82
+ d: "M5 20h6",
83
+ key: "1h6pxn"
84
+ }],
85
+ ["path", {
86
+ d: "M13 4 8 20",
87
+ key: "kqq6aj"
88
+ }],
89
+ ["path", {
90
+ d: "m15 15 5 5",
91
+ key: "me55sn"
92
+ }],
93
+ ["path", {
94
+ d: "m20 15-5 5",
95
+ key: "11p7ol"
96
+ }]
97
+ ]
98
+ }), Ce = F({
99
+ name: "subscript",
100
+ size: 24,
101
+ node: [
102
+ ["path", {
103
+ d: "m4 5 8 8",
104
+ key: "1eunvl"
105
+ }],
106
+ ["path", {
107
+ d: "m12 5-8 8",
108
+ key: "1ah0jp"
109
+ }],
110
+ ["path", {
111
+ d: "M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07",
112
+ key: "e8ta8j"
113
+ }]
114
+ ]
115
+ }), we = F({
116
+ name: "strikethrough",
117
+ size: 24,
118
+ node: [
119
+ ["path", {
120
+ d: "M16 4H9a3 3 0 0 0-2.83 4",
121
+ key: "43sutm"
122
+ }],
123
+ ["path", {
124
+ d: "M14 12a4 4 0 0 1 0 8H6",
125
+ key: "nlfj13"
126
+ }],
127
+ ["line", {
128
+ x1: "4",
129
+ x2: "20",
130
+ y1: "12",
131
+ y2: "12",
132
+ key: "1e0a9i"
133
+ }]
134
+ ]
135
+ }), Te = F({
136
+ name: "superscript",
137
+ size: 24,
138
+ node: [
139
+ ["path", {
140
+ d: "m4 19 8-8",
141
+ key: "hr47gm"
142
+ }],
143
+ ["path", {
144
+ d: "m12 19-8-8",
145
+ key: "1dhhmo"
146
+ }],
147
+ ["path", {
148
+ d: "M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06",
149
+ key: "1dfcux"
150
+ }]
151
+ ]
152
+ }), Ee = F({
153
+ name: "text-align-justify",
154
+ size: 24,
155
+ node: [
156
+ ["path", {
157
+ d: "M3 5h18",
158
+ key: "1u36vt"
159
+ }],
160
+ ["path", {
161
+ d: "M3 12h18",
162
+ key: "1i2n21"
163
+ }],
164
+ ["path", {
165
+ d: "M3 19h18",
166
+ key: "awlh7x"
167
+ }]
168
+ ],
169
+ aliases: ["align-justify"]
170
+ }), De = F({
171
+ name: "underline",
172
+ size: 24,
173
+ node: [["path", {
174
+ d: "M6 4v6a6 6 0 0 0 12 0V4",
175
+ key: "9kb039"
176
+ }], ["line", {
177
+ x1: "4",
178
+ x2: "20",
179
+ y1: "20",
180
+ y2: "20",
181
+ key: "nun2al"
182
+ }]]
183
+ }), V = [
184
+ "value",
185
+ "aria-label",
186
+ "title"
187
+ ], H = { value: "" }, U = ["value"], W = /* @__PURE__ */ x({
188
+ __name: "ToolbarSelect",
189
+ props: {
190
+ modelValue: {},
191
+ options: {},
192
+ label: {},
193
+ placeholder: {},
194
+ widthClass: {}
195
+ },
196
+ emits: ["update:modelValue"],
197
+ setup(e, { emit: n }) {
198
+ let r = e, o = n;
199
+ function s(e) {
200
+ o("update:modelValue", e.target.value);
201
+ }
202
+ function c(e) {
203
+ return typeof e == "string" ? e : e.value;
204
+ }
205
+ function u(e) {
206
+ return typeof e == "string" ? e : e.label;
207
+ }
208
+ let f = /* @__PURE__ */ new Set([
209
+ "inherit",
210
+ "initial",
211
+ "unset",
212
+ "revert",
213
+ "revert-layer"
214
+ ]), m = l(() => f.has(r.modelValue) ? "" : r.modelValue), g = l(() => {
215
+ let e = m.value;
216
+ return e === "" || r.options.some((t) => c(t) === e) ? r.options : [e, ...r.options];
217
+ });
218
+ return (n, r) => (p(), d("select", {
219
+ class: t(["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"]),
220
+ value: m.value,
221
+ "aria-label": e.label,
222
+ title: e.label,
223
+ onChange: s
224
+ }, [h("option", H, i(e.placeholder ?? ""), 1), (p(!0), d(v, null, a(g.value, (e) => (p(), d("option", {
225
+ key: c(e),
226
+ value: c(e)
227
+ }, i(u(e)), 9, U))), 128))], 42, V));
228
+ }
229
+ }), G = [
230
+ "aria-label",
231
+ "title",
232
+ "aria-expanded"
233
+ ], 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"], Oe = /* @__PURE__ */ x({
234
+ __name: "EmojiPickerDropdown",
235
+ emits: ["insert"],
236
+ setup(e, { emit: n }) {
237
+ let r = n, { categories: c, isOpen: f, toggle: m, close: _ } = D(), { t: y, format: b } = N(), x = o(null), w = o(null), O = l(() => f.value);
238
+ E(x, O), T(w, () => {
239
+ f.value && _();
240
+ });
241
+ function k(e) {
242
+ r("insert", e), _();
243
+ }
244
+ return (e, n) => (p(), d("div", {
245
+ ref_key: "rootRef",
246
+ ref: w,
247
+ class: "tpl:relative"
248
+ }, [h("button", {
249
+ type: "button",
250
+ class: t(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": g(f) }]),
251
+ "aria-label": g(y).paragraphEditor.insertEmoji,
252
+ title: g(y).paragraphEditor.insertEmoji,
253
+ "aria-expanded": g(f),
254
+ "aria-haspopup": "dialog",
255
+ "aria-controls": "tpl-emoji-picker",
256
+ onClick: n[0] ||= (...e) => g(m) && g(m)(...e)
257
+ }, [s(g(B), {
258
+ size: 16,
259
+ "stroke-width": 2
260
+ })], 10, G), g(f) ? (p(), d("div", {
261
+ key: 0,
262
+ id: "tpl-emoji-picker",
263
+ ref_key: "pickerRef",
264
+ ref: x,
265
+ role: "dialog",
266
+ "aria-modal": "false",
267
+ "aria-label": g(y).paragraphEditor.insertEmoji,
268
+ tabindex: "-1",
269
+ 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)]",
270
+ onKeydown: n[1] ||= C(S((...e) => g(_) && g(_)(...e), ["stop", "prevent"]), ["esc"])
271
+ }, [(p(!0), d(v, null, a(g(c), (e) => (p(), d("div", {
272
+ key: e.key,
273
+ class: "tpl:mb-2 tpl:last:mb-0"
274
+ }, [h("div", q, i(g(y).emoji[e.key]), 1), h("div", J, [(p(!0), d(v, null, a(e.emojis, (e) => (p(), d("button", {
275
+ key: e,
276
+ type: "button",
277
+ "aria-label": g(b)(g(y).paragraphEditor.emojiItemLabel, { emoji: e }),
278
+ 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)]",
279
+ onClick: (t) => k(e)
280
+ }, i(e), 9, Y))), 128))])]))), 128))], 40, K)) : u("", !0)], 512));
281
+ }
282
+ }), X = [
283
+ "aria-label",
284
+ "title",
285
+ "aria-pressed"
286
+ ], Z = /* @__PURE__ */ x({
287
+ __name: "ToolbarIconButton",
288
+ props: {
289
+ icon: {},
290
+ label: {},
291
+ active: { type: Boolean },
292
+ strokeWidth: {},
293
+ size: {}
294
+ },
295
+ setup(e) {
296
+ return (n, i) => (p(), d("button", {
297
+ type: "button",
298
+ class: t(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": e.active }]),
299
+ "aria-label": e.label,
300
+ title: e.label,
301
+ "aria-pressed": e.active ? "true" : "false"
302
+ }, [(p(), y(r(e.icon), {
303
+ size: e.size ?? 16,
304
+ "stroke-width": e.strokeWidth ?? 2
305
+ }, null, 8, ["size", "stroke-width"]))], 10, X));
306
+ }
307
+ }), Q = {}, ke = {
308
+ class: "tpl:mx-1 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
309
+ "aria-hidden": "true"
310
+ };
311
+ function Ae(e, t) {
312
+ return p(), d("span", ke);
313
+ }
314
+ var $ = /*#__PURE__*/ z(Q, [["render", Ae]]);
315
+ //#endregion
316
+ //#region src/utils/richTextColor.ts
317
+ function je(e, t) {
318
+ return e || t || "#000000";
319
+ }
320
+ //#endregion
321
+ //#region src/components/blocks/ParagraphToolbar.vue?vue&type=script&setup=true&lang.ts
322
+ var Me = ["data-tpl-theme", "aria-label"], Ne = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Pe = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Fe = ["aria-label", "title"], Ie = ["aria-label", "title"], Le = {
323
+ key: 1,
324
+ class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
325
+ }, Re = /* @__PURE__ */ x({
326
+ __name: "ParagraphToolbar",
327
+ props: {
328
+ editor: {},
329
+ toolbarPosition: {},
330
+ isLoading: { type: Boolean },
331
+ canRequestMergeTag: { type: Boolean },
332
+ canInsertLogicTag: { type: Boolean }
333
+ },
334
+ emits: [
335
+ "open-link-dialog",
336
+ "add-merge-tag",
337
+ "add-logic-tag"
338
+ ],
339
+ setup(e, { emit: t }) {
340
+ let r = b(() => import("./AiRewriteMenu-C3ZfDDYy.js")), a = e, o = n(re, {}), _ = l(() => o.ai?.isFeatureEnabled("rewrite") ?? !1), x = t, S = n(te, null), C = n(ne, null), w = A(ie, "ParagraphToolbar"), T = P(), E = n(j, null), D = n(ee, null), O = n(M, null), k = l(() => (E?.isOpen.value ?? !1) || (D?.isOpen.value ?? !1)), { t: F } = N(), I = w.fonts, L = _e.map((e) => ({
341
+ value: e,
342
+ label: e === "normal" ? F.paragraphEditor.letterSpacingNormal : e
343
+ }));
344
+ function z(e) {
345
+ a.editor?.chain().focus().insertContent(e).run();
346
+ }
347
+ function B(e) {
348
+ return a.editor?.getAttributes("textStyle")[e] || "";
349
+ }
350
+ function V(e) {
351
+ let t = a.editor?.chain().focus();
352
+ e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
353
+ }
354
+ function H(e) {
355
+ let t = a.editor?.chain().focus();
356
+ e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
357
+ }
358
+ function U() {
359
+ return a.editor?.isActive("link") ?? !1;
360
+ }
361
+ function G() {
362
+ return a.editor?.getAttributes("link").color || "";
363
+ }
364
+ function K(e) {
365
+ let t = a.editor?.chain().focus();
366
+ t && (U() ? (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());
367
+ }
368
+ function q() {
369
+ let e = O?.content.value.settings;
370
+ return U() ? je(G(), e?.linkColor || e?.textColor) : je(B("color"), e?.textColor);
371
+ }
372
+ function J() {
373
+ return U() ? G() : B("color");
374
+ }
375
+ function Y() {
376
+ return a.editor?.getAttributes("paragraph").lineHeight || "";
377
+ }
378
+ function X(e) {
379
+ let t = a.editor?.chain().focus();
380
+ e ? t?.setLineHeight(e).run() : t?.unsetLineHeight().run();
381
+ }
382
+ function Q(e) {
383
+ let t = a.editor?.chain().focus();
384
+ e && e !== "normal" ? t?.setLetterSpacing(e).run() : t?.unsetLetterSpacing().run();
385
+ }
386
+ function ke() {
387
+ return a.editor?.getAttributes("highlight").color || "";
388
+ }
389
+ function Ae(e) {
390
+ let t = a.editor?.chain().focus();
391
+ e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
392
+ }
393
+ return (t, n) => g(T) && !k.value ? (p(), y(c, {
394
+ key: 0,
395
+ to: g(T)
396
+ }, [h("div", {
397
+ "data-tpl-theme": g(C),
398
+ role: "toolbar",
399
+ "aria-label": g(F).paragraphEditor.toolbar,
400
+ 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)]",
401
+ style: m({
402
+ ...g(S),
403
+ top: `${e.toolbarPosition.top}px`,
404
+ left: `${e.toolbarPosition.left}px`,
405
+ transform: "translateY(-100%)",
406
+ flexDirection: "column"
407
+ })
408
+ }, [!e.isLoading && e.editor ? (p(), d(v, { key: 0 }, [h("div", Ne, [
409
+ s(W, {
410
+ "model-value": g(be)(B("fontFamily")),
411
+ options: g(ye)(g(I), B("fontFamily")),
412
+ label: g(F).paragraphEditor.fontFamily,
413
+ placeholder: g(F).paragraphEditor.defaultFont,
414
+ "width-class": "tpl:w-32",
415
+ "onUpdate:modelValue": V
416
+ }, null, 8, [
417
+ "model-value",
418
+ "options",
419
+ "label",
420
+ "placeholder"
421
+ ]),
422
+ s(W, {
423
+ "model-value": B("fontSize"),
424
+ options: g(he),
425
+ label: g(F).paragraphEditor.fontSize,
426
+ placeholder: g(F).paragraphEditor.defaultSize,
427
+ "width-class": "tpl:w-20",
428
+ "onUpdate:modelValue": H
429
+ }, null, 8, [
430
+ "model-value",
431
+ "options",
432
+ "label",
433
+ "placeholder"
434
+ ]),
435
+ s($),
436
+ s(R, {
437
+ "swatch-only": "",
438
+ size: "sm",
439
+ "data-testid": "text-color-picker",
440
+ "model-value": J(),
441
+ "seed-color": q(),
442
+ "aria-label": g(F).paragraphEditor.textColor,
443
+ "onUpdate:modelValue": K
444
+ }, null, 8, [
445
+ "model-value",
446
+ "seed-color",
447
+ "aria-label"
448
+ ]),
449
+ s(R, {
450
+ "swatch-only": "",
451
+ size: "sm",
452
+ "data-testid": "highlight-color-picker",
453
+ "model-value": ke(),
454
+ "seed-color": g(ge),
455
+ "aria-label": g(F).paragraphEditor.highlightColor,
456
+ "onUpdate:modelValue": Ae
457
+ }, null, 8, [
458
+ "model-value",
459
+ "seed-color",
460
+ "aria-label"
461
+ ]),
462
+ s($),
463
+ s(Z, {
464
+ icon: g(ae),
465
+ label: g(F).paragraphEditor.bold,
466
+ active: e.editor.isActive("bold"),
467
+ "stroke-width": 2.5,
468
+ onClick: n[0] ||= (t) => e.editor.chain().focus().toggleBold().run()
469
+ }, null, 8, [
470
+ "icon",
471
+ "label",
472
+ "active"
473
+ ]),
474
+ s(Z, {
475
+ icon: g(oe),
476
+ label: g(F).paragraphEditor.italic,
477
+ active: e.editor.isActive("italic"),
478
+ onClick: n[1] ||= (t) => e.editor.chain().focus().toggleItalic().run()
479
+ }, null, 8, [
480
+ "icon",
481
+ "label",
482
+ "active"
483
+ ]),
484
+ s(Z, {
485
+ icon: g(De),
486
+ label: g(F).paragraphEditor.underline,
487
+ active: e.editor.isActive("underline"),
488
+ onClick: n[2] ||= (t) => e.editor.chain().focus().toggleUnderline().run()
489
+ }, null, 8, [
490
+ "icon",
491
+ "label",
492
+ "active"
493
+ ]),
494
+ s(Z, {
495
+ icon: g(we),
496
+ label: g(F).paragraphEditor.strikethrough,
497
+ active: e.editor.isActive("strike"),
498
+ onClick: n[3] ||= (t) => e.editor.chain().focus().toggleStrike().run()
499
+ }, null, 8, [
500
+ "icon",
501
+ "label",
502
+ "active"
503
+ ]),
504
+ s($),
505
+ s(Z, {
506
+ icon: g(Ce),
507
+ label: g(F).paragraphEditor.subscript,
508
+ active: e.editor.isActive("subscript"),
509
+ onClick: n[4] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
510
+ }, null, 8, [
511
+ "icon",
512
+ "label",
513
+ "active"
514
+ ]),
515
+ s(Z, {
516
+ icon: g(Te),
517
+ label: g(F).paragraphEditor.superscript,
518
+ active: e.editor.isActive("superscript"),
519
+ onClick: n[5] ||= (t) => e.editor.chain().focus().toggleSuperscript().run()
520
+ }, null, 8, [
521
+ "icon",
522
+ "label",
523
+ "active"
524
+ ]),
525
+ s($),
526
+ s(Z, {
527
+ icon: g(le),
528
+ label: g(F).paragraphEditor.addLink,
529
+ active: e.editor.isActive("link"),
530
+ onClick: n[6] ||= (e) => x("open-link-dialog")
531
+ }, null, 8, [
532
+ "icon",
533
+ "label",
534
+ "active"
535
+ ])
536
+ ]), h("div", Pe, [
537
+ s(Z, {
538
+ icon: g(de),
539
+ label: g(F).paragraphEditor.bulletList,
540
+ active: e.editor.isActive("bulletList"),
541
+ onClick: n[7] ||= (t) => e.editor.chain().focus().toggleBulletList().run()
542
+ }, null, 8, [
543
+ "icon",
544
+ "label",
545
+ "active"
546
+ ]),
547
+ s(Z, {
548
+ icon: g(xe),
549
+ label: g(F).paragraphEditor.numberedList,
550
+ active: e.editor.isActive("orderedList"),
551
+ onClick: n[8] ||= (t) => e.editor.chain().focus().toggleOrderedList().run()
552
+ }, null, 8, [
553
+ "icon",
554
+ "label",
555
+ "active"
556
+ ]),
557
+ s($),
558
+ s(Z, {
559
+ icon: g(me),
560
+ label: g(F).paragraphEditor.alignLeft,
561
+ active: e.editor.isActive({ textAlign: "left" }),
562
+ onClick: n[9] ||= (t) => e.editor.chain().focus().setTextAlign("left").run()
563
+ }, null, 8, [
564
+ "icon",
565
+ "label",
566
+ "active"
567
+ ]),
568
+ s(Z, {
569
+ icon: g(pe),
570
+ label: g(F).paragraphEditor.alignCenter,
571
+ active: e.editor.isActive({ textAlign: "center" }),
572
+ onClick: n[10] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
573
+ }, null, 8, [
574
+ "icon",
575
+ "label",
576
+ "active"
577
+ ]),
578
+ s(Z, {
579
+ icon: g(fe),
580
+ label: g(F).paragraphEditor.alignRight,
581
+ active: e.editor.isActive({ textAlign: "right" }),
582
+ onClick: n[11] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
583
+ }, null, 8, [
584
+ "icon",
585
+ "label",
586
+ "active"
587
+ ]),
588
+ s(Z, {
589
+ icon: g(Ee),
590
+ label: g(F).paragraphEditor.alignJustify,
591
+ active: e.editor.isActive({ textAlign: "justify" }),
592
+ onClick: n[12] ||= (t) => e.editor.chain().focus().setTextAlign("justify").run()
593
+ }, null, 8, [
594
+ "icon",
595
+ "label",
596
+ "active"
597
+ ]),
598
+ s($),
599
+ s(W, {
600
+ "model-value": Y(),
601
+ options: g(ve),
602
+ label: g(F).paragraphEditor.lineHeight,
603
+ placeholder: g(F).paragraphEditor.lineHeightShort,
604
+ "width-class": "tpl:w-16",
605
+ "onUpdate:modelValue": X
606
+ }, null, 8, [
607
+ "model-value",
608
+ "options",
609
+ "label",
610
+ "placeholder"
611
+ ]),
612
+ s(W, {
613
+ "model-value": B("letterSpacing"),
614
+ options: g(L),
615
+ label: g(F).paragraphEditor.letterSpacing,
616
+ placeholder: g(F).paragraphEditor.letterSpacingShort,
617
+ "width-class": "tpl:w-20",
618
+ "onUpdate:modelValue": Q
619
+ }, null, 8, [
620
+ "model-value",
621
+ "options",
622
+ "label",
623
+ "placeholder"
624
+ ]),
625
+ s($),
626
+ s(Z, {
627
+ icon: g(Se),
628
+ label: g(F).paragraphEditor.clearFormatting,
629
+ onClick: n[13] ||= (t) => e.editor.chain().focus().clearNodes().unsetAllMarks().run()
630
+ }, null, 8, ["icon", "label"]),
631
+ s($),
632
+ s(Oe, { onInsert: z }),
633
+ e.canRequestMergeTag ? (p(), d(v, { key: 0 }, [s($), h("button", {
634
+ type: "button",
635
+ 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)]",
636
+ "aria-label": g(F).mergeTag.insert,
637
+ title: g(F).mergeTag.insert,
638
+ onClick: n[14] ||= (e) => x("add-merge-tag")
639
+ }, [s(g(se), {
640
+ size: 16,
641
+ "stroke-width": 2
642
+ }), f(" " + i(g(F).mergeTag.insertShort), 1)], 8, Fe)], 64)) : u("", !0),
643
+ e.canInsertLogicTag ? (p(), d(v, { key: 1 }, [s($), h("button", {
644
+ type: "button",
645
+ 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)]",
646
+ "aria-label": g(F).logicTag.insert,
647
+ title: g(F).logicTag.insert,
648
+ "data-testid": "insert-logic-button",
649
+ onClick: n[15] ||= (e) => x("add-logic-tag")
650
+ }, [s(g(ce), {
651
+ size: 16,
652
+ "stroke-width": 2
653
+ }), f(" " + i(g(F).logicTag.insertShort), 1)], 8, Ie)], 64)) : u("", !0),
654
+ _.value ? (p(), d(v, { key: 2 }, [s($), s(g(r), { editor: e.editor }, null, 8, ["editor"])], 64)) : u("", !0)
655
+ ])], 64)) : (p(), d("div", Le, [s(g(ue), {
656
+ class: "tpl-spinner",
657
+ size: 14,
658
+ "stroke-width": 2
659
+ }), f(" " + i(g(F).errors.editorLoading), 1)]))], 12, Me)], 8, ["to"])) : u("", !0);
660
+ }
661
+ }), ze = { class: "tpl-text-editor-wrapper tpl:relative" }, Be = /*@__PURE__*/ x({
662
+ __name: "ParagraphEditor",
663
+ props: {
664
+ block: {},
665
+ toolbarPosition: {}
666
+ },
667
+ emits: ["done"],
668
+ setup(e, { emit: t }) {
669
+ let r = e, i = t, a = P(), o = n(M, null), c = w(o?.content?.value?.settings ?? { locale: "en" }) === "rtl" ? "right" : "left", { editor: l, EditorContent: u, isLoading: f, initError: m, retry: h, showLinkDialog: v, linkUrl: y, linkColor: b, linkDialogRef: x, canRequestMergeTag: S, canInsertLogicTag: C, openLinkDialog: T, insertLink: E, removeLink: D, closeLinkDialog: A, handleLinkKeydown: j, handleAddMergeTag: ee, handleAddLogicTag: te } = k({
670
+ blockId: () => r.block.id,
671
+ blockContent: () => r.block.content,
672
+ onDone: () => i("done"),
673
+ editorName: "ParagraphEditor",
674
+ async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
675
+ let [{ Editor: o, EditorContent: s }, { default: l }, { default: u }, { 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([
676
+ import("./dist-C_dV9QAx.js").then((e) => e.r),
677
+ import("./dist-Cr7RPxI9.js"),
678
+ import("./dist-3HpYixwF.js"),
679
+ import("./dist-CuLwJF7H.js"),
680
+ import("./dist-BC-ZEYLd.js"),
681
+ import("./dist-DXyGqIDE.js"),
682
+ import("./dist-CyBwSiAa.js"),
683
+ import("./dist-DPcf6XZ8.js"),
684
+ import("./dist-BPFcLKTw.js"),
685
+ import("./dist-D7Yj7E-F.js"),
686
+ import("./dist-DVNjPKsH.js"),
687
+ import("./extensions-CdyweA50.js")
688
+ ]);
689
+ return {
690
+ TiptapEditor: o,
691
+ EC: s,
692
+ extensions: [
693
+ l.configure({
694
+ heading: !1,
695
+ codeBlock: !1,
696
+ blockquote: !1,
697
+ horizontalRule: !1,
698
+ link: !1,
699
+ underline: !1
700
+ }),
701
+ d,
702
+ f,
703
+ p,
704
+ O(u).configure({
705
+ openOnClick: !1,
706
+ HTMLAttributes: {
707
+ target: "_blank",
708
+ rel: "noopener noreferrer"
709
+ }
710
+ }),
711
+ m.configure({
712
+ types: ["paragraph"],
713
+ defaultAlignment: c
714
+ }),
715
+ h,
716
+ g,
717
+ _,
718
+ v.configure({ multicolor: !0 }),
719
+ S,
720
+ C,
721
+ w,
722
+ y.configure({
723
+ mergeTags: () => e.value,
724
+ syntax: t
725
+ }),
726
+ x.configure({ syntax: t }),
727
+ T,
728
+ ...r && n && e.value.length > 0 ? [b.configure({
729
+ mergeTags: () => e.value,
730
+ char: n,
731
+ emptyText: i,
732
+ popoverRoot: a
733
+ })] : []
734
+ ]
735
+ };
736
+ }
737
+ });
738
+ return (t, n) => (p(), d("div", ze, [
739
+ s(Re, {
740
+ editor: g(l),
741
+ "toolbar-position": e.toolbarPosition,
742
+ "is-loading": g(f),
743
+ "can-request-merge-tag": g(S),
744
+ "can-insert-logic-tag": g(C),
745
+ onOpenLinkDialog: g(T),
746
+ onAddMergeTag: g(ee),
747
+ onAddLogicTag: g(te)
748
+ }, null, 8, [
749
+ "editor",
750
+ "toolbar-position",
751
+ "is-loading",
752
+ "can-request-merge-tag",
753
+ "can-insert-logic-tag",
754
+ "onOpenLinkDialog",
755
+ "onAddMergeTag",
756
+ "onAddLogicTag"
757
+ ]),
758
+ s(L, {
759
+ editor: g(l),
760
+ "editor-content": g(u),
761
+ "is-loading": g(f),
762
+ "init-error": g(m),
763
+ onRetry: g(h)
764
+ }, null, 8, [
765
+ "editor",
766
+ "editor-content",
767
+ "is-loading",
768
+ "init-error",
769
+ "onRetry"
770
+ ]),
771
+ s(I, {
772
+ visible: g(v),
773
+ "is-editing-link": g(l)?.isActive("link") ?? !1,
774
+ "dialog-ref": g(x),
775
+ "onUpdate:dialogRef": n[0] ||= (e) => _(x) ? x.value = e : null,
776
+ "link-url": g(y),
777
+ "onUpdate:linkUrl": n[1] ||= (e) => _(y) ? y.value = e : null,
778
+ "link-color": g(b),
779
+ "onUpdate:linkColor": n[2] ||= (e) => _(b) ? b.value = e : null,
780
+ onClose: g(A),
781
+ onInsert: g(E),
782
+ onRemove: g(D),
783
+ onKeydown: g(j)
784
+ }, null, 8, [
785
+ "visible",
786
+ "is-editing-link",
787
+ "dialog-ref",
788
+ "link-url",
789
+ "link-color",
790
+ "onClose",
791
+ "onInsert",
792
+ "onRemove",
793
+ "onKeydown"
794
+ ])
795
+ ]));
796
+ }
797
+ }), Ve = /* @__PURE__ */ e({ default: () => He }), He = Be;
798
+ //#endregion
799
+ export { He as default, W as n, Ve as t };