@templatical/editor 0.49.0 → 0.51.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-Bs_yxk3h.js +4392 -0
  194. package/dist/cdn/chunks/src-Bs_yxk3h.js.map +1 -0
  195. package/dist/cdn/chunks/{src-B77z1iw4.js → src-K6fw_35b.js} +113 -113
  196. package/dist/cdn/chunks/{src-B77z1iw4.js.map → src-K6fw_35b.js.map} +1 -1
  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,276 @@
1
+ import { At as e, C as t, H as n, Mt as r, N as i, O as a, Q as o, _ as s, c, d as l, f as u, g as d, j as f, l as p, ot as m, r as h, y as g } from "./vue.runtime.esm-bundler-DgFJ6GPG.js";
2
+ import { a as ee } from "./runtime-dom.esm-bundler-B8WCZWUm.js";
3
+ import { f as te, p as ne } from "./dist-DtOF3bDW.js";
4
+ import { $ as _, F as re, O as ie, P as ae, X as oe, t as se } from "./keys-Zd9KWRD1.js";
5
+ import { t as ce } from "./useI18n-BdoY7xDE.js";
6
+ import { t as v } from "./createLucideIcon-0lYYH3EW.js";
7
+ import { t as le } from "./sparkles-Ce0Qz0ox.js";
8
+ import { t as ue } from "./square-BWlolnXe.js";
9
+ import { t as de } from "./x-CZ0Js0hA.js";
10
+ import { t as fe } from "./sanitizeRichTextHtml-DeISfLFr.js";
11
+ import { r as pe } from "./normalizeMergeTagMarkup-P6SUBuPv.js";
12
+ import { n as me } from "./aiErrors-D5UOoYOt.js";
13
+ import { n as he, t as ge } from "./aiRewritePreview-DLGM05Ge.js";
14
+ import { S as y, y as b } from "./styleConstants-v1dNKgJf.js";
15
+ import { n as _e } from "./ParagraphEditor-B6NK0ytw.js";
16
+ var ve = v({
17
+ name: "languages",
18
+ size: 24,
19
+ node: [
20
+ ["path", {
21
+ d: "m5 8 6 6",
22
+ key: "1wu5hv"
23
+ }],
24
+ ["path", {
25
+ d: "m4 14 6-6 2-3",
26
+ key: "1k1g8d"
27
+ }],
28
+ ["path", {
29
+ d: "M2 5h12",
30
+ key: "or177f"
31
+ }],
32
+ ["path", {
33
+ d: "M7 2h1",
34
+ key: "1t2jsx"
35
+ }],
36
+ ["path", {
37
+ d: "m22 22-5-10-5 10",
38
+ key: "don7ne"
39
+ }],
40
+ ["path", {
41
+ d: "M14 18h6",
42
+ key: "1m8k6r"
43
+ }]
44
+ ]
45
+ }), x = v({
46
+ name: "wand-sparkles",
47
+ size: 24,
48
+ node: [
49
+ ["path", {
50
+ d: "m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",
51
+ key: "ul74o6"
52
+ }],
53
+ ["path", {
54
+ d: "m14 7 3 3",
55
+ key: "1r5n42"
56
+ }],
57
+ ["path", {
58
+ d: "M5 6v4",
59
+ key: "ilb8ba"
60
+ }],
61
+ ["path", {
62
+ d: "M19 14v4",
63
+ key: "blhpug"
64
+ }],
65
+ ["path", {
66
+ d: "M10 2v2",
67
+ key: "7u0qdc"
68
+ }],
69
+ ["path", {
70
+ d: "M7 8H3",
71
+ key: "zfb6yr"
72
+ }],
73
+ ["path", {
74
+ d: "M21 16h-4",
75
+ key: "1cnmox"
76
+ }],
77
+ ["path", {
78
+ d: "M11 3H9",
79
+ key: "1obp7u"
80
+ }]
81
+ ],
82
+ aliases: ["wand-2"]
83
+ }), S = { class: "tpl:relative tpl:flex tpl:items-center" }, C = [
84
+ "aria-label",
85
+ "title",
86
+ "aria-expanded"
87
+ ], w = ["aria-label"], T = { class: "tpl:flex tpl:items-center tpl:justify-between" }, E = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, D = ["aria-label", "title"], O = {
88
+ "data-testid": "ai-rewrite-label",
89
+ class: "tpl:self-start tpl:rounded tpl:px-1.5 tpl:py-px tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-secondary-light)] tpl:text-[var(--tpl-text)]"
90
+ }, k = ["innerHTML"], A = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, j = {
91
+ "data-testid": "ai-rewrite-label",
92
+ class: "tpl:self-start tpl:rounded tpl:px-1.5 tpl:py-px tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-secondary-light)] tpl:text-[var(--tpl-text)]"
93
+ }, M = {
94
+ "data-testid": "ai-rewrite-preview",
95
+ class: "tpl:m-0 tpl:max-h-48 tpl:overflow-y-auto tpl:whitespace-pre-wrap tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
96
+ }, N = { class: "tpl:flex tpl:flex-wrap tpl:gap-1.5" }, P = ["data-testid", "onClick"], F = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ye = ["disabled"], be = { class: "tpl:flex tpl:items-end tpl:gap-2" }, xe = ["aria-label", "placeholder"], Se = ["disabled"], Ce = {
97
+ key: 0,
98
+ role: "alert",
99
+ "data-testid": "ai-rewrite-error",
100
+ class: "tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-danger)]"
101
+ }, we = { class: "tpl:m-0 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, I = /* @__PURE__ */ g({
102
+ __name: "AiRewriteMenu",
103
+ props: { editor: {} },
104
+ setup(g) {
105
+ let v = g, { t: I, format: Te } = ce(), Ee = _(se, "AiRewriteMenu"), De = t(ie, re), Oe = t(ae, te.liquid), L = t(oe, void 0), ke = [
106
+ "shorten",
107
+ "expand",
108
+ "friendlier",
109
+ "formal",
110
+ "fixGrammar"
111
+ ], R = he(L), z = o(!1), B = o(R[0].value), V = o(""), H = o(!1), U = o(""), W = o(null), G = o(null), K = null, q = 0, J = c(() => W.value === null ? null : fe(pe(W.value, De.value, Oe))), Ae = c(() => ge(U.value)), Y = c(() => G.value ? me(G.value, I.ai.errors, Te, L) : "");
112
+ function X() {
113
+ q++;
114
+ let e = K;
115
+ K = null, H.value = !1, e?.abort();
116
+ }
117
+ function Z() {
118
+ X(), U.value = "", W.value = null, G.value = null;
119
+ }
120
+ function Q() {
121
+ Z(), z.value = !1;
122
+ }
123
+ function je() {
124
+ z.value ? Q() : z.value = !0;
125
+ }
126
+ async function $(e) {
127
+ let t = V.value.trim();
128
+ if (H.value || e === null && t === "" || e === "translate" && B.value === "") return;
129
+ Z();
130
+ let n = v.editor.getHTML();
131
+ if (Array.from(n).length > 2e4) {
132
+ G.value = new ne(I.ai.rewrite.tooLarge, 413);
133
+ return;
134
+ }
135
+ let r = new AbortController(), i = ++q;
136
+ K = r, H.value = !0;
137
+ try {
138
+ let a = await Ee.rewrite({
139
+ html: n,
140
+ preset: e,
141
+ language: e === "translate" ? B.value : null,
142
+ instruction: t === "" ? null : t
143
+ }, (e) => {
144
+ i === q && (U.value += e);
145
+ }, r.signal);
146
+ if (i !== q) return;
147
+ W.value = a.html;
148
+ } catch (e) {
149
+ i === q && !(e instanceof Error && e.name === "AbortError") && (G.value = e);
150
+ } finally {
151
+ i === q && (H.value = !1, K = null);
152
+ }
153
+ }
154
+ function Me() {
155
+ J.value !== null && (v.editor.chain().focus().setContent(J.value, { emitUpdate: !0 }).run(), Q());
156
+ }
157
+ return a(X), (t, a) => (f(), u("div", S, [p("button", {
158
+ type: "button",
159
+ "data-testid": "ai-rewrite-trigger",
160
+ 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-primary)] tpl:transition-all tpl:hover:bg-[var(--tpl-bg-active)]",
161
+ "aria-label": m(I).ai.rewrite.title,
162
+ title: m(I).ai.rewrite.title,
163
+ "aria-haspopup": "dialog",
164
+ "aria-expanded": z.value,
165
+ onClick: je
166
+ }, [s(m(le), {
167
+ size: 16,
168
+ "stroke-width": 2,
169
+ "aria-hidden": "true"
170
+ }), d(" " + r(m(I).ai.menu.button), 1)], 8, C), z.value ? (f(), u("div", {
171
+ key: 0,
172
+ role: "dialog",
173
+ "aria-label": m(I).ai.rewrite.title,
174
+ "data-testid": "ai-rewrite-panel",
175
+ class: "tpl-ai-rewrite-panel tpl:absolute tpl:top-full tpl:right-0 tpl:z-50 tpl:mt-2 tpl:flex tpl:w-80 tpl:flex-col tpl:gap-3 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3 tpl:shadow-[var(--tpl-shadow-lg)]"
176
+ }, [p("div", T, [p("span", E, [s(m(x), {
177
+ size: 14,
178
+ "stroke-width": 2,
179
+ "aria-hidden": "true"
180
+ }), d(" " + r(m(I).ai.rewrite.title), 1)]), p("button", {
181
+ type: "button",
182
+ class: "tpl:rounded-md tpl:p-0.5 tpl:text-[var(--tpl-text-muted)]",
183
+ "aria-label": m(I).ai.rewrite.close,
184
+ title: m(I).ai.rewrite.close,
185
+ onClick: Q
186
+ }, [s(m(de), {
187
+ size: 14,
188
+ "stroke-width": 2,
189
+ "aria-hidden": "true"
190
+ })], 8, D)]), J.value === null ? H.value ? (f(), u(h, { key: 1 }, [
191
+ p("span", j, r(m(I).ai.rewrite.suggestionLabel), 1),
192
+ p("p", M, r(Ae.value || m(I).ai.rewrite.rewriting), 1),
193
+ p("button", {
194
+ type: "button",
195
+ "data-testid": "ai-rewrite-stop",
196
+ class: e([m(y), "tpl:self-end"]),
197
+ onClick: X
198
+ }, [s(m(ue), {
199
+ size: 12,
200
+ "stroke-width": 2,
201
+ "aria-hidden": "true"
202
+ }), d(" " + r(m(I).ai.rewrite.stop), 1)], 2)
203
+ ], 64)) : (f(), u(h, { key: 2 }, [
204
+ p("div", N, [(f(), u(h, null, i(ke, (t) => p("button", {
205
+ key: t,
206
+ type: "button",
207
+ "data-testid": `ai-rewrite-preset-${t}`,
208
+ class: e(m(y)),
209
+ onClick: (e) => $(t)
210
+ }, r(m(I).ai.rewrite.presets[t]), 11, P)), 64))]),
211
+ p("div", F, [
212
+ s(m(ve), {
213
+ size: 14,
214
+ "stroke-width": 2,
215
+ class: "tpl:shrink-0 tpl:text-[var(--tpl-text-muted)]",
216
+ "aria-hidden": "true"
217
+ }),
218
+ s(_e, {
219
+ modelValue: B.value,
220
+ "onUpdate:modelValue": a[0] ||= (e) => B.value = e,
221
+ options: m(R),
222
+ label: m(I).ai.rewrite.language,
223
+ "width-class": "tpl:flex-1"
224
+ }, null, 8, [
225
+ "modelValue",
226
+ "options",
227
+ "label"
228
+ ]),
229
+ p("button", {
230
+ type: "button",
231
+ "data-testid": "ai-rewrite-preset-translate",
232
+ class: e(m(y)),
233
+ disabled: B.value === "",
234
+ onClick: a[1] ||= (e) => $("translate")
235
+ }, r(m(I).ai.rewrite.presets.translate), 11, ye)
236
+ ]),
237
+ p("div", be, [n(p("textarea", {
238
+ "onUpdate:modelValue": a[2] ||= (e) => V.value = e,
239
+ "data-testid": "ai-rewrite-instruction",
240
+ maxlength: "500",
241
+ rows: "2",
242
+ class: "tpl:flex-1 tpl:resize-none tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2 tpl:py-1.5 tpl:font-sans tpl:text-sm tpl:text-[var(--tpl-text)]",
243
+ "aria-label": m(I).ai.rewrite.instructionLabel,
244
+ placeholder: m(I).ai.rewrite.instructionPlaceholder
245
+ }, null, 8, xe), [[ee, V.value]]), p("button", {
246
+ type: "button",
247
+ "data-testid": "ai-rewrite-run",
248
+ class: e(m(b)),
249
+ disabled: V.value.trim() === "",
250
+ onClick: a[3] ||= (e) => $(null)
251
+ }, r(m(I).ai.rewrite.run), 11, Se)]),
252
+ Y.value ? (f(), u("p", Ce, r(Y.value), 1)) : l("", !0),
253
+ p("p", we, r(m(I).ai.chat.disclaimer), 1)
254
+ ], 64)) : (f(), u(h, { key: 0 }, [
255
+ p("span", O, r(m(I).ai.rewrite.suggestionLabel), 1),
256
+ p("div", {
257
+ "data-testid": "ai-rewrite-preview",
258
+ class: "tpl:max-h-48 tpl:overflow-y-auto tpl:text-sm tpl:text-[var(--tpl-text)]",
259
+ innerHTML: J.value
260
+ }, null, 8, k),
261
+ p("div", A, [p("button", {
262
+ type: "button",
263
+ "data-testid": "ai-rewrite-discard",
264
+ class: e(m(y)),
265
+ onClick: Z
266
+ }, r(m(I).ai.rewrite.discard), 3), p("button", {
267
+ type: "button",
268
+ "data-testid": "ai-rewrite-replace",
269
+ class: e(m(b)),
270
+ onClick: Me
271
+ }, r(m(I).ai.rewrite.replaceAction), 3)])
272
+ ], 64))], 8, w)) : l("", !0)]));
273
+ }
274
+ });
275
+ //#endregion
276
+ export { I as default };
@@ -1,33 +1,33 @@
1
- import { A as e, S as t, at as n, d as r, kt as i, l as a, s as o, u as s, v as c } from "./vue.runtime.esm-bundler-DV0Wx4r_.js";
2
- import { K as l } from "./keys-BymCnLHD.js";
3
- import { t as u } from "./useI18n-CSh4gO5c.js";
4
- import { t as d } from "./circle-alert-YUvIJAgY.js";
5
- import { t as f } from "./triangle-alert-CenxmLRE.js";
1
+ import { At as e, C as t, c as n, d as r, f as i, j as a, ot as o, u as s, y as c } from "./vue.runtime.esm-bundler-DgFJ6GPG.js";
2
+ import { K as l } from "./keys-Zd9KWRD1.js";
3
+ import { t as u } from "./useI18n-BdoY7xDE.js";
4
+ import { t as d } from "./circle-alert-BMszY8im.js";
5
+ import { t as f } from "./triangle-alert-CFDzyFC7.js";
6
6
  //#region src/components/canvas/BlockIssueBadge.vue?vue&type=script&setup=true&lang.ts
7
7
  var p = ["title", "aria-label"], m = /* @__PURE__ */ c({
8
8
  __name: "BlockIssueBadge",
9
9
  props: { blockId: {} },
10
10
  setup(c) {
11
- let m = c, { t: h } = u(), g = t(l, null), _ = o(() => (g?.issues.value ?? []).filter((e) => e.blockId === m.blockId)), v = o(() => _.value.some((e) => e.severity === "error") ? "error" : _.value.some((e) => e.severity === "warning") ? "warning" : null), y = o(() => v.value === "error" ? h.issues.badgeError : h.issues.badgeWarning);
12
- return (t, o) => v.value ? (e(), r("span", {
11
+ let m = c, { t: h } = u(), g = t(l, null), _ = n(() => (g?.issues.value ?? []).filter((e) => e.blockId === m.blockId)), v = n(() => _.value.some((e) => e.severity === "error") ? "error" : _.value.some((e) => e.severity === "warning") ? "warning" : null), y = n(() => v.value === "error" ? h.issues.badgeError : h.issues.badgeWarning);
12
+ return (t, n) => v.value ? (a(), i("span", {
13
13
  key: 0,
14
- class: i(["tpl:absolute tpl:top-1 tpl:right-1 tpl:z-10 tpl:flex tpl:size-5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-sm)] tpl:ring-1 tpl:ring-[var(--tpl-border)]", v.value === "error" ? "tpl:text-[var(--tpl-danger)]" : "tpl:text-[var(--tpl-warning)]"]),
14
+ class: e(["tpl:absolute tpl:top-1 tpl:right-1 tpl:z-10 tpl:flex tpl:size-5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-sm)] tpl:ring-1 tpl:ring-[var(--tpl-border)]", v.value === "error" ? "tpl:text-[var(--tpl-danger)]" : "tpl:text-[var(--tpl-warning)]"]),
15
15
  title: y.value,
16
16
  "aria-label": y.value,
17
17
  role: "img"
18
- }, [v.value === "error" ? (e(), a(n(d), {
18
+ }, [v.value === "error" ? (a(), s(o(d), {
19
19
  key: 0,
20
20
  size: 14,
21
21
  "stroke-width": 2.25,
22
22
  fill: "currentColor",
23
23
  stroke: "var(--tpl-bg)"
24
- })) : (e(), a(n(f), {
24
+ })) : (a(), s(o(f), {
25
25
  key: 1,
26
26
  size: 14,
27
27
  "stroke-width": 2.25,
28
28
  fill: "currentColor",
29
29
  stroke: "var(--tpl-bg)"
30
- }))], 10, p)) : s("", !0);
30
+ }))], 10, p)) : r("", !0);
31
31
  }
32
32
  });
33
33
  //#endregion
@@ -1,10 +1,10 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { A as t, At as n, F as r, M as i, P as a, S as o, at as s, c, d as l, j as u, l as d, r as f, s as p, v as m } from "./vue.runtime.esm-bundler-DV0Wx4r_.js";
3
- import { d as h, ut as g } from "./dist-DBG3nh3k.js";
4
- import { a as _, c as v, s as y } from "./socialIcons-Bwv-49EB.js";
5
- import { A as b, M as x, O as S, P as C, _ as w, a as T, f as E, g as D, h as O, i as k, j as ee, m as A, n as j, p as M, r as N, u as P } from "./useEditorCore-DRbMRe8F.js";
6
- import { $ as F, M as I, P as L, Q as R, f as te, g as ne, s as z, v as B, x as V } from "./keys-BymCnLHD.js";
7
- import { t as H } from "./WrapperBlock-DiiaxpMb.js";
2
+ import { C as t, F as n, I as r, M as i, N as a, c as o, f as s, j as c, jt as l, l as u, ot as d, r as f, u as p, y as m } from "./vue.runtime.esm-bundler-DgFJ6GPG.js";
3
+ import { f as h, ft as g } from "./dist-DtOF3bDW.js";
4
+ import { a as _, c as v, s as y } from "./socialIcons-Dd-jRiVe.js";
5
+ import { A as b, M as x, O as S, P as C, _ as w, a as T, f as E, g as D, h as O, i as k, j as ee, m as A, n as j, p as M, r as N, u as P } from "./useEditorCore-BTLeAVlM.js";
6
+ import { $ as F, M as I, P as L, Q as R, f as te, g as ne, s as z, v as B, x as V } from "./keys-Zd9KWRD1.js";
7
+ import { t as H } from "./WrapperBlock-BO619LAb.js";
8
8
  //#region src/components/blocks/PreviewSectionBlock.vue?vue&type=script&setup=true&lang.ts
9
9
  var U = { class: "tpl:w-full" }, W = { class: "tpl:flex tpl:gap-0" }, G = /* @__PURE__ */ m({
10
10
  name: "PreviewSectionBlock",
@@ -14,7 +14,7 @@ var U = { class: "tpl:w-full" }, W = { class: "tpl:flex tpl:gap-0" }, G = /* @__
14
14
  viewport: {}
15
15
  },
16
16
  setup(e) {
17
- let u = {
17
+ let i = {
18
18
  title: P,
19
19
  paragraph: E,
20
20
  image: A,
@@ -27,7 +27,7 @@ var U = { class: "tpl:w-full" }, W = { class: "tpl:flex tpl:gap-0" }, G = /* @__
27
27
  spacer: k,
28
28
  html: O,
29
29
  custom: w
30
- }, m = e, h = o(z, null), g = p(() => {
30
+ }, m = e, h = t(z, null), g = o(() => {
31
31
  switch (m.block.columns) {
32
32
  case "2": return ["50%", "50%"];
33
33
  case "3": return [
@@ -39,7 +39,7 @@ var U = { class: "tpl:w-full" }, W = { class: "tpl:flex tpl:gap-0" }, G = /* @__
39
39
  case "2-1": return ["66.67%", "33.33%"];
40
40
  default: return ["100%"];
41
41
  }
42
- }), _ = p(() => {
42
+ }), _ = o(() => {
43
43
  let e = g.value.length, t = [...m.block.children];
44
44
  for (; t.length < e;) t.push([]);
45
45
  return t.slice(0, e);
@@ -48,21 +48,21 @@ var U = { class: "tpl:w-full" }, W = { class: "tpl:flex tpl:gap-0" }, G = /* @__
48
48
  return _.value[e] || [];
49
49
  }
50
50
  function y(e) {
51
- return C(e, h, u);
51
+ return C(e, h, i);
52
52
  }
53
- return (e, o) => {
54
- let u = a("PreviewSectionBlock", !0);
55
- return t(), l("div", U, [c("div", W, [(t(!0), l(f, null, i(_.value, (e, a) => (t(), l("div", {
56
- key: a,
57
- style: n({ width: g.value[a] })
58
- }, [(t(!0), l(f, null, i(v(a), (e) => (t(), l("div", {
53
+ return (e, t) => {
54
+ let i = n("PreviewSectionBlock", !0);
55
+ return c(), s("div", U, [u("div", W, [(c(!0), s(f, null, a(_.value, (e, t) => (c(), s("div", {
56
+ key: t,
57
+ style: l({ width: g.value[t] })
58
+ }, [(c(!0), s(f, null, a(v(t), (e) => (c(), s("div", {
59
59
  key: e.id,
60
- style: n(s(b)(e))
61
- }, [e.type === "section" ? (t(), d(u, {
60
+ style: l(d(b)(e))
61
+ }, [e.type === "section" ? (c(), p(i, {
62
62
  key: 0,
63
63
  block: e,
64
64
  viewport: "desktop"
65
- }, null, 8, ["block"])) : (t(), d(r(y(e)), {
65
+ }, null, 8, ["block"])) : (c(), p(r(y(e)), {
66
66
  key: 1,
67
67
  block: e,
68
68
  viewport: "desktop"
@@ -81,9 +81,9 @@ var U = { class: "tpl:w-full" }, W = { class: "tpl:flex tpl:gap-0" }, G = /* @__
81
81
  settings: { default: void 0 }
82
82
  },
83
83
  setup(e) {
84
- let a = e, m = o(z), b = o(ne, null), U = o(te, null), W = F(B, "BlockPreviewCanvas"), q = o(V, null), J = o(L, h.liquid), Y = o(I, null);
85
- u(R, p(() => Y?.value ?? !1));
86
- let X = p(() => a.applyConditionFilter ? a.blocks.filter((e) => !U?.isHidden(e.id)) : a.blocks), Z = p(() => a.settings ?? b?.content.value.settings), Q = p(() => v(Z.value, a.viewport)), re = p(() => Z.value ? x(Z.value, W.resolveFontFamily) : {}), ie = p(() => Z.value?.locale?.trim() || void 0), ae = p(() => g(Z.value ?? { locale: "en" })), oe = p(() => Z.value?.backgroundColor || "var(--tpl-canvas-bg)"), $ = p(() => Q.value + 192), se = {
84
+ let n = e, m = t(z), b = t(ne, null), U = t(te, null), W = F(B, "BlockPreviewCanvas"), q = t(V, null), J = t(L, h.liquid), Y = t(I, null);
85
+ i(R, o(() => Y?.value ?? !1));
86
+ let X = o(() => n.applyConditionFilter ? n.blocks.filter((e) => !U?.isHidden(e.id)) : n.blocks), Z = o(() => n.settings ?? b?.content.value.settings), Q = o(() => v(Z.value, n.viewport)), re = o(() => Z.value ? x(Z.value, W.resolveFontFamily) : {}), ie = o(() => Z.value?.locale?.trim() || void 0), ae = o(() => g(Z.value ?? { locale: "en" })), oe = o(() => Z.value?.backgroundColor || "var(--tpl-canvas-bg)"), $ = o(() => Q.value + 192), se = {
87
87
  section: G,
88
88
  title: P,
89
89
  paragraph: E,
@@ -105,34 +105,34 @@ var U = { class: "tpl:w-full" }, W = { class: "tpl:flex tpl:gap-0" }, G = /* @__
105
105
  function le(e) {
106
106
  let t = Z.value;
107
107
  return ee(e, q, J, _(e, t ? {
108
- blocks: a.blocks,
108
+ blocks: n.blocks,
109
109
  settings: t
110
110
  } : void 0));
111
111
  }
112
- return (a, o) => (t(), l("div", {
112
+ return (t, n) => (c(), s("div", {
113
113
  "data-testid": "block-preview-stage",
114
114
  class: "tpl:pointer-events-none tpl:mx-auto tpl:flex tpl:select-none tpl:justify-center tpl:rounded-lg",
115
- style: n({
115
+ style: l({
116
116
  width: `${$.value}px`,
117
117
  minWidth: `${Q.value}px`,
118
118
  maxWidth: "100%",
119
119
  backgroundColor: oe.value,
120
120
  boxShadow: "var(--tpl-shadow-sm)"
121
121
  })
122
- }, [c("div", {
122
+ }, [u("div", {
123
123
  "data-testid": "block-preview-canvas",
124
124
  lang: ie.value,
125
125
  dir: ae.value,
126
- style: n({
126
+ style: l({
127
127
  width: `${Q.value}px`,
128
- transition: s(y),
128
+ transition: d(y),
129
129
  ...re.value
130
130
  })
131
- }, [(t(!0), l(f, null, i(X.value, (i) => (t(), l("div", {
132
- key: i.id,
133
- style: n(le(i))
134
- }, [(t(), d(r(ce(i)), {
135
- block: i,
131
+ }, [(c(!0), s(f, null, a(X.value, (t) => (c(), s("div", {
132
+ key: t.id,
133
+ style: l(le(t))
134
+ }, [(c(), p(r(ce(t)), {
135
+ block: t,
136
136
  viewport: e.viewport
137
137
  }, null, 8, ["block", "viewport"]))], 4))), 128))], 12, K)], 4));
138
138
  }
@@ -0,0 +1,23 @@
1
+ import { Mt as e, d as t, f as n, j as r, ot as i, r as a, y as o } from "./vue.runtime.esm-bundler-DgFJ6GPG.js";
2
+ import { t as s } from "./useCloudI18n-Dcjua65H.js";
3
+ //#region src/cloud/components/CloudHeaderExtras.vue?vue&type=script&setup=true&lang.ts
4
+ var c = {
5
+ key: 0,
6
+ "data-testid": "cloud-template-usage",
7
+ class: "tpl:text-xs tpl:opacity-60 tpl:text-[var(--tpl-text-muted)]"
8
+ }, l = /* @__PURE__ */ o({
9
+ __name: "CloudHeaderExtras",
10
+ props: {
11
+ part: {},
12
+ cloud: {}
13
+ },
14
+ setup(o) {
15
+ let { t: l, format: u } = s();
16
+ return (s, d) => o.part === "left" ? (r(), n(a, { key: 0 }, [o.cloud.featureFlags.templateLimit.value === null ? t("", !0) : (r(), n("span", c, e(i(u)(i(l).header.templatesUsed, {
17
+ used: o.cloud.featureFlags.templateCount.value,
18
+ max: o.cloud.featureFlags.templateLimit.value
19
+ })), 1))], 64)) : t("", !0);
20
+ }
21
+ });
22
+ //#endregion
23
+ export { l as default };