@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
@@ -516,11 +516,7 @@ var e = {
516
516
  canvas: {
517
517
  noBlocks: "Aucun bloc pour l'instant",
518
518
  dragHint: "Partez de zéro en faisant glisser des blocs depuis la barre latérale",
519
- dropHere: "Déposez ici",
520
- aiHintChat: "ou laissez",
521
- aiHintChatSuffix: "générer un modèle complet pour vous en quelques secondes",
522
- aiHintDesign: "Vous avez déjà un design ? Téléversez une capture d'écran, une image ou un PDF et",
523
- aiHintDesignSuffix: "le recréera instantanément"
519
+ dropHere: "Déposez ici"
524
520
  },
525
521
  savedBlocks: {
526
522
  title: "Blocs enregistrés",
@@ -608,12 +604,125 @@ var e = {
608
604
  reconnectingNotice: "Reconnexion… Vous pouvez continuer à modifier.",
609
605
  dismiss: "Masquer",
610
606
  anAgent: "Un agent",
611
- agentChangedBlock: "{client} pour {name} a modifié un bloc.",
612
- agentChangedBlocks: "{client} pour {name} a modifié {count} blocs.",
613
- agentChangedSettings: "{client} pour {name} a modifié les paramètres du modèle.",
614
- agentChangedBlockAndSettings: "{client} pour {name} a modifié un bloc et les paramètres du modèle.",
615
- agentChangedBlocksAndSettings: "{client} pour {name} a modifié {count} blocs et les paramètres du modèle.",
616
- agentUpdatedTemplate: "{client} pour {name} a mis à jour le modèle."
607
+ agentFor: "{client} pour {name}",
608
+ aiFor: "IA (pour {name})",
609
+ agentChangedBlock: "{who} a modifié un bloc.",
610
+ agentChangedBlocks: "{who} a modifié {count} blocs.",
611
+ agentChangedSettings: "{who} a modifié les paramètres du modèle.",
612
+ agentChangedBlockAndSettings: "{who} a modifié un bloc et les paramètres du modèle.",
613
+ agentChangedBlocksAndSettings: "{who} a modifié {count} blocs et les paramètres du modèle.",
614
+ agentUpdatedTemplate: "{who} a mis à jour le modèle."
615
+ },
616
+ ai: {
617
+ altText: {
618
+ stale: "L’image a changé. Rédigez à nouveau le texte alternatif.",
619
+ bulk: "Rédiger les textes alternatifs manquants ({count})",
620
+ review: "Vérifier les textes alternatifs",
621
+ applyAccepted: "Appliquer la sélection ({count})",
622
+ progress: "Rédaction des textes alternatifs… {done} sur {total}",
623
+ button: "Rédiger le texte alternatif",
624
+ drafting: "Rédaction du texte alternatif…",
625
+ title: "Texte alternatif",
626
+ accept: "Accepter",
627
+ decorative: "Marquer comme décorative",
628
+ cancel: "Annuler",
629
+ note: "Rédigé par l’IA. Vérifiez qu’il décrit le rôle de l’image.",
630
+ failed: "Impossible de rédiger le texte alternatif de cette image. Rédigez-le vous-même."
631
+ },
632
+ fix: {
633
+ button: "Corriger avec l’IA",
634
+ fixing: "Correction en cours…",
635
+ stillFlagged: "Toujours signalé après la correction"
636
+ },
637
+ starters: {
638
+ emptyWelcome: "Rédiger un e-mail de bienvenue pour les nouveaux clients",
639
+ emptyLaunch: "Créer une annonce de lancement de produit",
640
+ emptyNewsletter: "Créer la mise en page d’une newsletter mensuelle",
641
+ filledShorten: "Raccourcir le texte",
642
+ filledFriendlier: "Adopter un ton plus chaleureux",
643
+ filledDates: "Mettre à jour les dates et l’offre",
644
+ filledCta: "Ajouter un appel à l’action clair"
645
+ },
646
+ rewrite: {
647
+ tooLarge: "Ce paragraphe est trop long pour l’IA. Sélectionnez un paragraphe de 20 000 caractères maximum.",
648
+ title: "Reformuler avec l'IA",
649
+ close: "Fermer",
650
+ suggestionLabel: "Suggestion de l'IA",
651
+ presets: {
652
+ shorten: "Raccourcir",
653
+ expand: "Développer",
654
+ friendlier: "Plus chaleureux",
655
+ formal: "Plus formel",
656
+ fixGrammar: "Corriger la grammaire",
657
+ translate: "Traduire"
658
+ },
659
+ language: "Langue",
660
+ instructionLabel: "Votre consigne",
661
+ instructionPlaceholder: "Ou indiquez comment reformuler le texte…",
662
+ run: "Reformuler",
663
+ rewriting: "Reformulation…",
664
+ stop: "Arrêter",
665
+ replaceAction: "Remplacer",
666
+ discard: "Ignorer"
667
+ },
668
+ errors: {
669
+ historyError: "Impossible de charger la conversation. Réessayez.",
670
+ missingProvider: "Ce backend d’IA a besoin d’un fournisseur de modèles ou de collaboration pour afficher ses modifications.",
671
+ featureUnavailable: "Cette fonction d'IA n'est pas disponible.",
672
+ limitReached: "Vous avez épuisé votre quota d'IA pour le moment.",
673
+ limitReachedUntil: "Vous avez épuisé votre quota d'IA jusqu'au {date}.",
674
+ rateLimited: "Trop de demandes d'IA. Réessayez dans un instant.",
675
+ turnRunning: "Une demande d'IA est déjà en cours pour ce modèle.",
676
+ contentTooLarge: "Ce modèle est trop volumineux pour l'IA.",
677
+ outputInvalid: "L'IA n'a pas pu produire un résultat valide. Réessayez.",
678
+ providerError: "L'IA est indisponible pour le moment. Réessayez plus tard.",
679
+ templateChanged: "Le modèle a changé pendant que l'IA travaillait.",
680
+ blockLocked: "Quelqu'un modifie un bloc dont l'IA avait besoin.",
681
+ undoRefused: "Quelqu'un a modifié ces blocs depuis, cette action ne peut donc pas être annulée.",
682
+ redoRefused: "Quelqu'un a modifié ces blocs depuis, cette action ne peut donc pas être rétablie.",
683
+ messageGone: "Ce message ne figure plus dans la conversation.",
684
+ generic: "Une erreur s'est produite. Réessayez."
685
+ },
686
+ menu: {
687
+ button: "IA",
688
+ chat: "Assistant IA"
689
+ },
690
+ chat: {
691
+ keptYourVersion: "Vous avez modifié le contenu pendant que l’IA travaillait. Cet éditeur a donc conservé votre version. Les modifications de l’IA sont enregistrées sur le serveur ; rechargez pour les voir. Enregistrer votre version les remplacera.",
692
+ reload: "Recharger",
693
+ attach: "Joindre des fichiers",
694
+ dropHint: "Déposez des images ou des PDF pour les joindre",
695
+ removeAttachment: "Supprimer {name}",
696
+ attachTooMany: "Joignez au maximum 4 fichiers.",
697
+ attachTooLarge: "{name} dépasse 5 Mo.",
698
+ attachTotalTooLarge: "Les pièces jointes peuvent totaliser au maximum 10 Mo.",
699
+ attachWrongType: "{name} n’est ni une image ni un PDF.",
700
+ title: "Assistant IA",
701
+ notice: "Les réponses et les modifications proviennent d'une IA.",
702
+ close: "Fermer",
703
+ newChat: "Nouvelle conversation",
704
+ inputPlaceholder: "Décrivez la modification souhaitée...",
705
+ send: "Envoyer",
706
+ stop: "Arrêter",
707
+ placeholder: "Décrivez l'e-mail souhaité ou demandez une modification de celui-ci.",
708
+ loadingHistory: "Chargement de la conversation...",
709
+ appliedChange: "1 modification appliquée",
710
+ appliedChanges: "{count} modifications appliquées",
711
+ undone: "Annulé",
712
+ undo: "Annuler",
713
+ redo: "Rétablir",
714
+ disclaimer: "L'IA peut faire des erreurs. Vérifiez les modifications."
715
+ },
716
+ import: {
717
+ menu: "Importer depuis une capture d’écran ou un PDF",
718
+ prompt: "Créer cet e-mail à partir du design joint.",
719
+ placeholderNote: "Les images sont importées sous forme de substituts. Remplacez-les après l’importation."
720
+ },
721
+ canvas: {
722
+ importHint: "Vous avez déjà un design ?",
723
+ chatHint: "ou laissez la fonction",
724
+ chatHintSuffix: "créer une ébauche de modèle à partir de votre description"
725
+ }
617
726
  },
618
727
  versionHistory: {
619
728
  tooltip: "Historique des versions",
@@ -688,6 +797,16 @@ var e = {
688
797
  emptyState: "Aucun problème — tout va bien.",
689
798
  badgeError: "Contient des erreurs",
690
799
  badgeWarning: "Contient des avertissements",
800
+ emailSize: "Taille de l’e-mail",
801
+ sizeExplainer: "Gmail tronque les e-mails de plus de 102 Ko environ.",
802
+ checkSize: "Vérifier la taille",
803
+ checkingSize: "Vérification…",
804
+ checkSizeAgain: "Vérifier à nouveau",
805
+ sizeResult: "{size} Ko",
806
+ sizePass: "{size} Ko · Gmail affiche l’e-mail en entier.",
807
+ sizeOutdated: "Le contenu a changé depuis la vérification.",
808
+ sizeError: "Impossible de vérifier la taille : {error}",
809
+ learnMore: "En savoir plus",
691
810
  issueCountTooltip: "{count} problème(s)"
692
811
  },
693
812
  smallScreen: {
@@ -697,5 +816,3 @@ var e = {
697
816
  };
698
817
  //#endregion
699
818
  export { e as default };
700
-
701
- //# sourceMappingURL=fr-DlJFPDQR.js.map
@@ -0,0 +1,28 @@
1
+ import { t as e } from "./createLucideIcon-0lYYH3EW.js";
2
+ var t = e({
3
+ name: "image",
4
+ size: 24,
5
+ node: [
6
+ ["rect", {
7
+ width: "18",
8
+ height: "18",
9
+ x: "3",
10
+ y: "3",
11
+ rx: "2",
12
+ ry: "2",
13
+ key: "1m3agn"
14
+ }],
15
+ ["circle", {
16
+ cx: "9",
17
+ cy: "9",
18
+ r: "2",
19
+ key: "af1f0g"
20
+ }],
21
+ ["path", {
22
+ d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
23
+ key: "1xmnt7"
24
+ }]
25
+ ]
26
+ });
27
+ //#endregion
28
+ export { t };
package/dist/index.d.ts CHANGED
@@ -16,11 +16,270 @@ declare interface AddBlockOperation {
16
16
  after: string | null;
17
17
  }
18
18
 
19
- declare interface AiConfig {
20
- chat?: boolean;
21
- scoring?: boolean;
22
- designToTemplate?: boolean;
23
- rewrite?: boolean;
19
+ /** Lint rules whose findings get "Write alt text" (A1 amendment R4). */
20
+ export declare const AI_ALT_TEXT_RULES: readonly ["a11y.img-missing-alt", "a11y.img-alt-is-filename", "a11y.img-alt-too-long", "a11y.img-linked-no-context"];
21
+
22
+ /** Lint rules whose findings get "Fix with AI" (A1 amendment R3). */
23
+ export declare const AI_FIXABLE_RULES: readonly ["a11y.link-vague-text", "a11y.button-vague-label", "a11y.link-empty", "a11y.text-all-caps", "a11y.missing-preheader", "deliverability.link-text-domain-mismatch", "deliverability.low-text"];
24
+
25
+ /** One image and its email context. Image URLs must be http(s), at most 2,048 characters. */
26
+ export declare interface AiAltTextRequest {
27
+ templateId: string;
28
+ sessionId: string;
29
+ blockId: string;
30
+ image: {
31
+ url: string;
32
+ };
33
+ currentAlt: string | null;
34
+ linkHref: string | null;
35
+ /** Plain text, at most 2,000 code points. */
36
+ nearbyText: string;
37
+ locale: string;
38
+ /** Effective lint altMaxLength: integer 1–1,000, counted as string.length. */
39
+ maxLength: number;
40
+ }
41
+
42
+ /** A batch a backend applied to the template itself. */
43
+ export declare interface AiAppliedBatch {
44
+ batchId: string;
45
+ revision: number;
46
+ operationCount: number;
47
+ }
48
+
49
+ /** One chat reference: PNG, JPEG, WebP, GIF or PDF. */
50
+ export declare interface AiChatAttachment {
51
+ file: Blob;
52
+ kind: "image" | "pdf";
53
+ name: string;
54
+ }
55
+
56
+ /** One message of a template's AI conversation. */
57
+ export declare interface AiChatMessage {
58
+ id: string;
59
+ role: "user" | "assistant";
60
+ kind: AiMessageKind;
61
+ /** The author's message, a fix's "Fix: {message}", or the assistant's reply. */
62
+ text: string;
63
+ /** Reference metadata on user messages only; file retention is the backend's choice. */
64
+ attachments?: {
65
+ name: string;
66
+ kind: "image" | "pdf";
67
+ }[];
68
+ /** What the assistant's turn applied; empty for user messages. */
69
+ batches: AiMessageBatch[];
70
+ /** `true` after Undo, `false` after Redo. */
71
+ undone: boolean;
72
+ /** ISO 8601. */
73
+ createdAt: string;
74
+ }
75
+
76
+ export declare interface AiChatRequest extends AiRequestBase {
77
+ /** 1–4,000 characters. */
78
+ message: string;
79
+ /** The selected block, when the backend has it; `null` otherwise. */
80
+ selectedBlockId: string | null;
81
+ /** Always present; at most 4 files, each at most 5 MB, at most 10 MB together. */
82
+ attachments: AiChatAttachment[];
83
+ }
84
+
85
+ /**
86
+ * A stored conversation per template: the chat panel loads it, and Undo and
87
+ * Redo work after a reload. Without it the chat lives in memory.
88
+ */
89
+ export declare interface AiConversationProvider {
90
+ /** Settle an editor-applied replay, idempotently, after applying or refusing it. */
91
+ settleReplay(templateId: string, messageId: string, outcome: AiReplayOutcome): Promise<void>;
92
+ /** Oldest first. */
93
+ list(templateId: string): Promise<AiChatMessage[]>;
94
+ /** New chat; `false` hides the button. */
95
+ clear: false | ((templateId: string) => Promise<void>);
96
+ undo: false | ((templateId: string, messageId: string, context: AiReplayContext) => Promise<AiReplay>);
97
+ redo: false | ((templateId: string, messageId: string, context: AiReplayContext) => Promise<AiReplay>);
98
+ }
99
+
100
+ /** The provider's features: its members other than `conversation`. */
101
+ export declare type AiFeatureName = Exclude<keyof AiProvider, "conversation">;
102
+
103
+ /**
104
+ * JSON-serializable subset of @templatical/quality's LintIssue. Severity,
105
+ * client support and the local fix closure never travel to the provider.
106
+ * Every field is untrusted diagnostic data, never model instructions.
107
+ */
108
+ export declare interface AiFixFinding {
109
+ /** Non-empty lint rule id, at most 200 characters. */
110
+ ruleId: string;
111
+ /** The problem, at most 1,000 code points. */
112
+ message: string;
113
+ /** The linter's suggested action, at most 1,000 code points. */
114
+ suggestion: string;
115
+ /** Rule docs URL: http(s), at most 2,048 characters; never fetched by the model. */
116
+ reference: string;
117
+ /** Block id (at most 200 characters), or null for a template-level finding. */
118
+ blockId: string | null;
119
+ /** Diagnostic excerpt when supplied by the rule, at most 1,000 code points. */
120
+ excerpt?: string;
121
+ }
122
+
123
+ export declare interface AiFixRequest extends AiRequestBase {
124
+ finding: AiFixFinding;
125
+ }
126
+
127
+ /** One declared merge tag. Never `sample` or `onRequest`. */
128
+ declare interface AiMergeTag {
129
+ value: string;
130
+ label: string;
131
+ group?: string;
132
+ description?: string;
133
+ }
134
+
135
+ /**
136
+ * The editor's merge tags: write tags as their bare `value` in this syntax,
137
+ * and no others. At most 500 tags; `value` ≤ 200, `label` ≤ 100, `group` ≤ 100,
138
+ * `description` ≤ 200 characters.
139
+ */
140
+ export declare interface AiMergeTags {
141
+ syntax: AiMergeTagSyntax;
142
+ tags: AiMergeTag[];
143
+ }
144
+
145
+ /** The editor's merge-tag syntax: a built-in preset's name, or `custom`. */
146
+ declare type AiMergeTagSyntax = SyntaxPresetName | "custom";
147
+
148
+ /**
149
+ * A batch an assistant message applied: `revision` is the backend's for a
150
+ * batch the server applied, `null` for one the editor applied itself.
151
+ */
152
+ export declare interface AiMessageBatch {
153
+ batchId: string;
154
+ revision: number | null;
155
+ operationCount: number;
156
+ }
157
+
158
+ declare type AiMessageKind = "chat" | "fix";
159
+
160
+ /** What the editor answers for a batch of operations it was handed. */
161
+ export declare type AiOperationsResult = {
162
+ applied: true;
163
+ inverse: Operation[];
164
+ } | {
165
+ applied: false;
166
+ code: OperationErrorCode;
167
+ opIndex: number;
168
+ message: string;
169
+ };
170
+
171
+ /**
172
+ * The bring-your-own AI contract: `init({ ai })`. One member per feature,
173
+ * `false` when you don't offer it (the editor hides its entry point), a
174
+ * function when you do. Every call gets an `AbortSignal`; stopping a turn
175
+ * aborts it, and the rejection is an `AbortError`.
176
+ *
177
+ * Reject with an `SdkError` whose `code` is an `AiErrorCode` and whose
178
+ * message the user can read. `@templatical/ai-kit/client`'s
179
+ * `createHttpAiProvider` implements this over a documented REST and SSE wire;
180
+ * Templatical Cloud is one backend for it.
181
+ */
182
+ export declare interface AiProvider {
183
+ chat: false | ((request: AiChatRequest, on: AiTurnHandlers, signal: AbortSignal) => Promise<AiTurnResult>);
184
+ fixFinding: false | ((request: AiFixRequest, on: AiTurnHandlers, signal: AbortSignal) => Promise<AiTurnResult>);
185
+ /** True means chat accepts attachments; has no effect while chat is false. */
186
+ chatAttachments: false | true;
187
+ rewrite: false | ((request: AiRewriteRequest, on: AiRewriteHandlers, signal: AbortSignal) => Promise<{
188
+ html: string;
189
+ }>);
190
+ altText: false | ((request: AiAltTextRequest, signal: AbortSignal) => Promise<{
191
+ alt: string;
192
+ }>);
193
+ conversation?: AiConversationProvider;
194
+ }
195
+
196
+ /** What Undo or Redo of a message returns: operations to apply, or a batch applied. */
197
+ export declare type AiReplay = {
198
+ operations: Operation[];
199
+ replayId: string;
200
+ } | {
201
+ applied: {
202
+ batchId: string;
203
+ revision: number;
204
+ };
205
+ };
206
+
207
+ /** Who asks for an Undo or Redo: the editor session (`X-Templatical-Session` on the wire). */
208
+ export declare interface AiReplayContext {
209
+ sessionId: string;
210
+ }
211
+
212
+ /**
213
+ * The outcome of an editor-applied replay. The backend changes `undone` only
214
+ * on `applied: true`; a refusal or an unsettled replay leaves it unchanged.
215
+ * Settlement is idempotent per `replayId`: later settlements are no-ops.
216
+ * A server-applied replay is never settled.
217
+ */
218
+ export declare interface AiReplayOutcome {
219
+ replayId: string;
220
+ direction: "undo" | "redo";
221
+ applied: boolean;
222
+ sessionId: string;
223
+ }
224
+
225
+ /** What every AI request carries. */
226
+ export declare interface AiRequestBase {
227
+ templateId: string;
228
+ /**
229
+ * The template as the editor has it, after it sent its pending edits. A
230
+ * backend that holds the template itself (Templatical Cloud) ignores it.
231
+ */
232
+ content: TemplateContent;
233
+ /** The collaboration revision `content` is at, or `null` without collaboration. */
234
+ revision: number | null;
235
+ /** The editor session (`X-Templatical-Session` on the wire). */
236
+ sessionId: string;
237
+ /** The editor syntax and declared tags; `tags` is empty when none are declared. */
238
+ mergeTags: AiMergeTags;
239
+ }
240
+
241
+ declare interface AiRewriteHandlers {
242
+ /** A chunk of the rewritten text, for a live preview. */
243
+ onText(text: string): void;
244
+ }
245
+
246
+ declare type AiRewritePreset = "shorten" | "expand" | "friendlier" | "formal" | "fixGrammar" | "translate";
247
+
248
+ export declare interface AiRewriteRequest extends AiRequestBase {
249
+ /**
250
+ * The paragraph's HTML (1–20,000 characters), merge tags as the editor's
251
+ * tags (`<span data-merge-tag="{{first_name}}" …>`).
252
+ */
253
+ html: string;
254
+ preset: AiRewritePreset | null;
255
+ /** A BCP 47 tag; set when `preset` is `translate`. */
256
+ language: string | null;
257
+ /** ≤ 500 characters. At least one of `preset` and `instruction` is set. */
258
+ instruction: string | null;
259
+ }
260
+
261
+ /**
262
+ * What a chat or fix turn reports as it runs. A turn hands its edits
263
+ * over one of two ways, and may mix them:
264
+ *
265
+ * - `onOperations`: the editor applies the batch at once and answers with its
266
+ * inverse, or with why it refused (another person holds a block, the
267
+ * template changed). A turn's batches form one undo step.
268
+ * - `onApplied`: the backend already applied the batch to its copy. The editor
269
+ * follows the collaboration revision, or reloads the template when the turn
270
+ * ends; with neither a collaboration nor a templates provider it refuses.
271
+ */
272
+ export declare interface AiTurnHandlers {
273
+ onText(text: string): void;
274
+ onOperations(ops: Operation[]): Promise<AiOperationsResult>;
275
+ onApplied(batch: AiAppliedBatch): void;
276
+ }
277
+
278
+ export declare interface AiTurnResult {
279
+ /** The assistant message's id in `conversation`, or `null` without history. */
280
+ messageId: string | null;
281
+ /** The whole reply. */
282
+ text: string;
24
283
  }
25
284
 
26
285
  /**
@@ -202,15 +461,18 @@ declare interface ButtonBlock extends BaseBlock {
202
461
 
203
462
  /** Who made a change. */
204
463
  export declare interface CollaborationActor {
205
- type: "user" | "guest" | "mcp" | "api";
464
+ type: "user" | "guest" | "mcp" | "api" | "ai";
206
465
  /**
207
466
  * The user id, `guest:{sessionId}` for a guest, `null` for `api`. For `mcp`,
208
- * the id of the user the agent acts for.
467
+ * the id of the user the agent acts for; for `ai`, of the user who asked.
209
468
  */
210
469
  id: string | null;
211
- /** For `mcp`, the name of the user the agent acts for. */
470
+ /** For `mcp` and `ai`, the name of the user the agent or the AI acts for. */
212
471
  name: string;
213
- /** `null` when no editor session made the change (`api`, `mcp`). */
472
+ /**
473
+ * `null` when no editor session made the change (`api`, `mcp`). For `ai`,
474
+ * the session that asked: that editor shows the outline and no notice.
475
+ */
214
476
  sessionId: string | null;
215
477
  /**
216
478
  * For `mcp` only: the agent's name (`Claude`, `Cursor`, …). The editor names
@@ -577,6 +839,15 @@ declare interface CommentsProvider extends CommentsOptions {
577
839
  subscribe?: (templateId: string, onChange: (change: CommentChange) => void) => () => void;
578
840
  }
579
841
 
842
+ declare interface CompatibilityLintOptions {
843
+ rules?: RuleOverrides;
844
+ thresholds?: Partial<CompatibilityThresholds>;
845
+ }
846
+
847
+ declare interface CompatibilityThresholds {
848
+ maxHtmlBytes: number;
849
+ }
850
+
580
851
  /**
581
852
  * Writing direction of the delivered email — the canvas `dir` and the
582
853
  * rendered `<mjml dir>`. Independent of the editor chrome language
@@ -816,6 +1087,18 @@ declare interface DeleteBlockOperation {
816
1087
  };
817
1088
  }
818
1089
 
1090
+ declare interface DeliverabilityLintOptions {
1091
+ rules?: RuleOverrides;
1092
+ thresholds?: Partial<DeliverabilityThresholds>;
1093
+ /** Hosts treated as URL shorteners. Replaces DEFAULT_SHORTENER_HOSTS; spread the default to extend it. */
1094
+ shortenerHosts?: string[];
1095
+ }
1096
+
1097
+ declare interface DeliverabilityThresholds {
1098
+ /** Visible characters below which `deliverability.low-text` fires. */
1099
+ minTextLength: number;
1100
+ }
1101
+
819
1102
  declare interface DisplayCondition {
820
1103
  label: string;
821
1104
  before: string;
@@ -1002,10 +1285,10 @@ export declare function init(config: TemplaticalEditorConfig): Promise<Templatic
1002
1285
  * still surface as an overlay, because by then there is an editor to cover.
1003
1286
  *
1004
1287
  * `templates`, `comments` and `versionHistory` are all keyed to a template
1005
- * id Cloud issued, which also anchors collaboration, AI rewrite, scoring and
1006
- * the server-side export — a store Cloud never issued ids for would degrade
1007
- * all of them silently. Cloud therefore keeps each key's storage, but each
1008
- * key is still accepted, for its configuration and events:
1288
+ * id Cloud issued, which also anchors the server-side export — a store Cloud
1289
+ * never issued ids for would degrade all of them silently. Cloud therefore
1290
+ * keeps each key's storage, but each key is still accepted, for its
1291
+ * configuration and events:
1009
1292
  * `templates.load`/`create`/`save`,
1010
1293
  * `comments.list`/`create`/`update`/`delete`/`setResolved`, and
1011
1294
  * `versionHistory.list`/`get`/`create`/`restore` are ignored with a warning
@@ -1084,6 +1367,13 @@ declare interface LintOptions {
1084
1367
  * linter without enumerating its rules.
1085
1368
  */
1086
1369
  links?: false | LinksLintOptions;
1370
+ /**
1371
+ * Deliverability linter config. Set to `false` to disable the whole
1372
+ * `lintDeliverability` linter without enumerating its rules.
1373
+ */
1374
+ deliverability?: false | DeliverabilityLintOptions;
1375
+ /** Email-client compatibility checks over pass-through content. */
1376
+ compatibility?: false | CompatibilityLintOptions;
1087
1377
  }
1088
1378
 
1089
1379
  declare interface LintThresholds {
@@ -1585,8 +1875,8 @@ export declare interface MergeTagsConfig {
1585
1875
  * same popup, so behavior is identical.
1586
1876
  *
1587
1877
  * Defaults to `true`. Effective only when `tags` is non-empty AND
1588
- * `syntax` matches a built-in preset (custom regex syntaxes cannot be
1589
- * mapped to a trigger string and silently disable autocomplete).
1878
+ * `syntax` is a built-in preset or a custom syntax with an `opener`
1879
+ * (a custom syntax without one has no autocomplete).
1590
1880
  */
1591
1881
  autocomplete?: boolean;
1592
1882
  }
@@ -1629,6 +1919,13 @@ export declare interface OperationBatch {
1629
1919
  baseRevision: number;
1630
1920
  /** 1–100 operations, applied in order and all or nothing. */
1631
1921
  ops: Operation[];
1922
+ /**
1923
+ * `"ai"` when an AI turn produced the batch: the editor applied the
1924
+ * operations an `AiProvider` handed it. A backend may broadcast the batch
1925
+ * with `actor.type: "ai"` (the same user and session), and the other
1926
+ * editors then name it "AI (for Ada)". Absent on every other batch.
1927
+ */
1928
+ origin?: "ai";
1632
1929
  }
1633
1930
 
1634
1931
  /** Why {@link applyOperations} refused a batch. */
@@ -1812,7 +2109,7 @@ export declare interface RevisionedBatch {
1812
2109
 
1813
2110
  /**
1814
2111
  * Per-rule severity override. Set a rule to `'off'` to disable it.
1815
- * Keys are the full prefixed rule IDs (`a11y.*`, `structure.*`, `link.*`)
2112
+ * Keys are the full prefixed rule IDs (`a11y.*`, `structure.*`, `link.*`, `deliverability.*`, `compat.*`)
1816
2113
  * so a value copied from `LintIssue.ruleId` pastes straight in.
1817
2114
  */
1818
2115
  declare type RuleOverrides = Record<string, Severity>;
@@ -2014,12 +2311,11 @@ export declare interface SavedBlocksProvider extends SavedBlocksOptions {
2014
2311
  }
2015
2312
 
2016
2313
  /**
2017
- * The `code` Templatical Cloud sends in a failed response's
2018
- * `{ message, code }` body. The named members are the codes Cloud sends
2019
- * today; any other string passes through, so a code Cloud adds later reaches
2020
- * `SdkError.code` without an SDK release.
2314
+ * The `code` any provider sends in a refusal. Cloud and AI codes are named
2315
+ * here; collaboration refusal codes flow through `CollaborationConflict`.
2316
+ * Any other string reaches `SdkError.code` without an SDK release.
2021
2317
  */
2022
- export declare type SdkErrorCode = "invalid_credentials" | "token_invalid" | "token_revoked" | "browser_not_allowed" | "token_scope_mismatch" | "limit_reached" | "feature_unavailable" | "not_found" | "user_required" | "not_author" | "mcp_not_allowed" | "content_too_large" | "recipient_not_allowed" | "send_failed" | (string & {});
2318
+ export declare type SdkErrorCode = "invalid_credentials" | "token_invalid" | "token_revoked" | "browser_not_allowed" | "token_scope_mismatch" | "limit_reached" | "feature_unavailable" | "not_found" | "user_required" | "not_author" | "mcp_not_allowed" | "content_too_large" | "recipient_not_allowed" | "send_failed" | "rate_limited" | "ai_turn_running" | "ai_output_invalid" | "ai_provider_error" | (string & {});
2023
2319
 
2024
2320
  declare interface SectionBlock extends BaseBlock {
2025
2321
  type: "section";
@@ -2171,6 +2467,22 @@ declare interface StructureLintOptions {
2171
2467
  declare interface SyntaxPreset {
2172
2468
  value: RegExp;
2173
2469
  logic: RegExp;
2470
+ /**
2471
+ * The characters that open a data tag, e.g. `{` for `{first_name}` or `%`
2472
+ * for `%FIRSTNAME%`. Typing them opens merge-tag autocomplete. Every
2473
+ * built-in preset declares its own, so a syntax spread from one keeps it;
2474
+ * a custom syntax without one, or with only whitespace, gets no
2475
+ * autocomplete. A space inside it is kept, for tags written with one: the
2476
+ * query ends at whitespace, so `{{ first_name }}` needs `'{{ '`.
2477
+ */
2478
+ opener?: string;
2479
+ /**
2480
+ * The characters that close a data tag, e.g. `}`. Inserting a suggestion
2481
+ * absorbs a closer already typed after the caret, so `{fir}` becomes
2482
+ * `{first_name}`, not `{first_name}}`. It may equal `opener`. Whitespace
2483
+ * only counts as unset.
2484
+ */
2485
+ closer?: string;
2174
2486
  }
2175
2487
 
2176
2488
  declare type SyntaxPresetName = "liquid" | "handlebars" | "mailchimp" | "ampscript";
@@ -2601,7 +2913,6 @@ export declare interface TemplaticalCloudEditorConfig {
2601
2913
  * @default true
2602
2914
  */
2603
2915
  smallScreenNotice?: boolean;
2604
- ai?: AiConfig | false;
2605
2916
  blockDefaults?: BlockDefaults;
2606
2917
  templateDefaults?: TemplateDefaults;
2607
2918
  /**
@@ -2647,8 +2958,8 @@ export declare interface TemplaticalCloudEditorConfig {
2647
2958
  /**
2648
2959
  * Configuration and events for the template lifecycle. **The same key and
2649
2960
  * the same type as `init()`'s `templates`** — minus the storage methods,
2650
- * which Cloud owns: the id it issues is the join key for collaboration,
2651
- * version history, comments, AI rewrite, scoring and the server-side export.
2961
+ * which Cloud owns: the id it issues is the join key for version history,
2962
+ * comments and the server-side export.
2652
2963
  *
2653
2964
  * Passing a full provider is not an error: `load` / `create` / `save` are
2654
2965
  * ignored with a warning naming them, while `autoSave`, `unsavedChangesGuard`,
@@ -3450,6 +3761,32 @@ export declare interface TemplaticalEditorConfig {
3450
3761
  * not for a re-sync that reloads the whole template.
3451
3762
  */
3452
3763
  onRemoteChange?: (change: CollaborationRemoteChange) => void;
3764
+ /**
3765
+ * Your AI backend: a chat that edits the template with Undo, rewrite in the
3766
+ * paragraph toolbar, static localized chat starters and
3767
+ * chat attachments. One member per feature; `false` leaves it out and the
3768
+ * editor hides its entry point:
3769
+ *
3770
+ * ```ts
3771
+ * import { createHttpAiProvider } from "@templatical/ai-kit/client";
3772
+ *
3773
+ * const editor = await init({
3774
+ * container,
3775
+ * templates,
3776
+ * ai: createHttpAiProvider({ baseUrl: "/api/ai" }),
3777
+ * });
3778
+ * await editor.load("tpl_123");
3779
+ * ```
3780
+ *
3781
+ * **Needs a loaded template**: every AI request names it, so the entry
3782
+ * points show once `create()` or `load()` has resolved. With
3783
+ * `collaboration`, the AI's edits travel as this user's batches marked
3784
+ * `origin: "ai"`; without it they apply here. Either way a turn is one
3785
+ * Cmd/Ctrl+Z. Failures reach `onError`.
3786
+ *
3787
+ * **Omitted by default.** See AI under Connect your backend.
3788
+ */
3789
+ ai?: AiProvider;
3453
3790
  /**
3454
3791
  * Who is using the editor — needed by any feature that attributes work to a
3455
3792
  * person: {@link comments}, and the collaborator bar, which leaves this user's