@ckeditor/ckeditor5-ai 46.1.1 → 47.0.0-alpha.1

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 (623) hide show
  1. package/LICENSE.md +18 -5
  2. package/README.md +10 -9
  3. package/build/ai.js +2 -2
  4. package/build/translations/af.js +1 -1
  5. package/build/translations/ar.js +1 -1
  6. package/build/translations/ast.js +1 -1
  7. package/build/translations/az.js +1 -1
  8. package/build/translations/be.js +1 -1
  9. package/build/translations/bg.js +1 -1
  10. package/build/translations/bn.js +1 -1
  11. package/build/translations/bs.js +1 -1
  12. package/build/translations/ca.js +1 -1
  13. package/build/translations/cs.js +1 -1
  14. package/build/translations/da.js +1 -1
  15. package/build/translations/de-ch.js +1 -1
  16. package/build/translations/de.js +1 -1
  17. package/build/translations/el.js +1 -1
  18. package/build/translations/en-au.js +1 -1
  19. package/build/translations/en-gb.js +1 -1
  20. package/build/translations/eo.js +1 -1
  21. package/build/translations/es-co.js +1 -1
  22. package/build/translations/es.js +1 -1
  23. package/build/translations/et.js +1 -1
  24. package/build/translations/eu.js +1 -1
  25. package/build/translations/fa.js +1 -1
  26. package/build/translations/fi.js +1 -1
  27. package/build/translations/fr.js +1 -1
  28. package/build/translations/gl.js +1 -1
  29. package/build/translations/gu.js +1 -1
  30. package/build/translations/he.js +1 -1
  31. package/build/translations/hi.js +1 -1
  32. package/build/translations/hr.js +1 -1
  33. package/build/translations/hu.js +1 -1
  34. package/build/translations/hy.js +1 -1
  35. package/build/translations/id.js +1 -1
  36. package/build/translations/it.js +1 -1
  37. package/build/translations/ja.js +1 -1
  38. package/build/translations/jv.js +1 -1
  39. package/build/translations/kk.js +1 -1
  40. package/build/translations/km.js +1 -1
  41. package/build/translations/kn.js +1 -1
  42. package/build/translations/ko.js +1 -1
  43. package/build/translations/ku.js +1 -1
  44. package/build/translations/lt.js +1 -1
  45. package/build/translations/lv.js +1 -1
  46. package/build/translations/ms.js +1 -1
  47. package/build/translations/nb.js +1 -1
  48. package/build/translations/ne.js +1 -1
  49. package/build/translations/nl.js +1 -1
  50. package/build/translations/no.js +1 -1
  51. package/build/translations/oc.js +1 -1
  52. package/build/translations/pl.js +1 -1
  53. package/build/translations/pt-br.js +1 -1
  54. package/build/translations/pt.js +1 -1
  55. package/build/translations/ro.js +1 -1
  56. package/build/translations/ru.js +1 -1
  57. package/build/translations/si.js +1 -1
  58. package/build/translations/sk.js +1 -1
  59. package/build/translations/sl.js +1 -1
  60. package/build/translations/sq.js +1 -1
  61. package/build/translations/sr-latn.js +1 -1
  62. package/build/translations/sr.js +1 -1
  63. package/build/translations/sv.js +1 -1
  64. package/build/translations/th.js +1 -1
  65. package/build/translations/ti.js +1 -1
  66. package/build/translations/tk.js +1 -1
  67. package/build/translations/tr.js +1 -1
  68. package/build/translations/tt.js +1 -1
  69. package/build/translations/ug.js +1 -1
  70. package/build/translations/uk.js +1 -1
  71. package/build/translations/ur.js +1 -1
  72. package/build/translations/uz.js +1 -1
  73. package/build/translations/vi.js +1 -1
  74. package/build/translations/zh-cn.js +1 -1
  75. package/build/translations/zh.js +1 -1
  76. package/ckeditor5-metadata.json +24 -3
  77. package/dist/index-content.css +0 -1
  78. package/dist/index-editor.css +2742 -0
  79. package/dist/index.css +3141 -0
  80. package/dist/index.js +4 -2
  81. package/dist/translations/af.js +1 -1
  82. package/dist/translations/af.umd.js +1 -1
  83. package/dist/translations/ar.js +1 -1
  84. package/dist/translations/ar.umd.js +1 -1
  85. package/dist/translations/ast.js +1 -1
  86. package/dist/translations/ast.umd.js +1 -1
  87. package/dist/translations/az.js +1 -1
  88. package/dist/translations/az.umd.js +1 -1
  89. package/dist/translations/be.js +1 -1
  90. package/dist/translations/be.umd.js +1 -1
  91. package/dist/translations/bg.js +1 -1
  92. package/dist/translations/bg.umd.js +1 -1
  93. package/dist/translations/bn.js +1 -1
  94. package/dist/translations/bn.umd.js +1 -1
  95. package/dist/translations/bs.js +1 -1
  96. package/dist/translations/bs.umd.js +1 -1
  97. package/dist/translations/ca.js +1 -1
  98. package/dist/translations/ca.umd.js +1 -1
  99. package/dist/translations/cs.js +1 -1
  100. package/dist/translations/cs.umd.js +1 -1
  101. package/dist/translations/da.js +1 -1
  102. package/dist/translations/da.umd.js +1 -1
  103. package/dist/translations/de-ch.js +1 -1
  104. package/dist/translations/de-ch.umd.js +1 -1
  105. package/dist/translations/de.js +1 -1
  106. package/dist/translations/de.umd.js +1 -1
  107. package/dist/translations/el.js +1 -1
  108. package/dist/translations/el.umd.js +1 -1
  109. package/dist/translations/en-au.js +1 -1
  110. package/dist/translations/en-au.umd.js +1 -1
  111. package/dist/translations/en-gb.js +1 -1
  112. package/dist/translations/en-gb.umd.js +1 -1
  113. package/dist/translations/en.js +1 -1
  114. package/dist/translations/en.umd.js +1 -1
  115. package/dist/translations/eo.js +1 -1
  116. package/dist/translations/eo.umd.js +1 -1
  117. package/dist/translations/es-co.js +1 -1
  118. package/dist/translations/es-co.umd.js +1 -1
  119. package/dist/translations/es.js +1 -1
  120. package/dist/translations/es.umd.js +1 -1
  121. package/dist/translations/et.js +1 -1
  122. package/dist/translations/et.umd.js +1 -1
  123. package/dist/translations/eu.js +1 -1
  124. package/dist/translations/eu.umd.js +1 -1
  125. package/dist/translations/fa.js +1 -1
  126. package/dist/translations/fa.umd.js +1 -1
  127. package/dist/translations/fi.js +1 -1
  128. package/dist/translations/fi.umd.js +1 -1
  129. package/dist/translations/fr.js +1 -1
  130. package/dist/translations/fr.umd.js +1 -1
  131. package/dist/translations/gl.js +1 -1
  132. package/dist/translations/gl.umd.js +1 -1
  133. package/dist/translations/gu.js +1 -1
  134. package/dist/translations/gu.umd.js +1 -1
  135. package/dist/translations/he.js +1 -1
  136. package/dist/translations/he.umd.js +1 -1
  137. package/dist/translations/hi.js +1 -1
  138. package/dist/translations/hi.umd.js +1 -1
  139. package/dist/translations/hr.js +1 -1
  140. package/dist/translations/hr.umd.js +1 -1
  141. package/dist/translations/hu.js +1 -1
  142. package/dist/translations/hu.umd.js +1 -1
  143. package/dist/translations/hy.js +1 -1
  144. package/dist/translations/hy.umd.js +1 -1
  145. package/dist/translations/id.js +1 -1
  146. package/dist/translations/id.umd.js +1 -1
  147. package/dist/translations/it.js +1 -1
  148. package/dist/translations/it.umd.js +1 -1
  149. package/dist/translations/ja.js +1 -1
  150. package/dist/translations/ja.umd.js +1 -1
  151. package/dist/translations/jv.js +1 -1
  152. package/dist/translations/jv.umd.js +1 -1
  153. package/dist/translations/kk.js +1 -1
  154. package/dist/translations/kk.umd.js +1 -1
  155. package/dist/translations/km.js +1 -1
  156. package/dist/translations/km.umd.js +1 -1
  157. package/dist/translations/kn.js +1 -1
  158. package/dist/translations/kn.umd.js +1 -1
  159. package/dist/translations/ko.js +1 -1
  160. package/dist/translations/ko.umd.js +1 -1
  161. package/dist/translations/ku.js +1 -1
  162. package/dist/translations/ku.umd.js +1 -1
  163. package/dist/translations/lt.js +1 -1
  164. package/dist/translations/lt.umd.js +1 -1
  165. package/dist/translations/lv.js +1 -1
  166. package/dist/translations/lv.umd.js +1 -1
  167. package/dist/translations/ms.js +1 -1
  168. package/dist/translations/ms.umd.js +1 -1
  169. package/dist/translations/nb.js +1 -1
  170. package/dist/translations/nb.umd.js +1 -1
  171. package/dist/translations/ne.js +1 -1
  172. package/dist/translations/ne.umd.js +1 -1
  173. package/dist/translations/nl.js +1 -1
  174. package/dist/translations/nl.umd.js +1 -1
  175. package/dist/translations/no.js +1 -1
  176. package/dist/translations/no.umd.js +1 -1
  177. package/dist/translations/oc.js +1 -1
  178. package/dist/translations/oc.umd.js +1 -1
  179. package/dist/translations/pl.js +1 -1
  180. package/dist/translations/pl.umd.js +1 -1
  181. package/dist/translations/pt-br.js +1 -1
  182. package/dist/translations/pt-br.umd.js +1 -1
  183. package/dist/translations/pt.js +1 -1
  184. package/dist/translations/pt.umd.js +1 -1
  185. package/dist/translations/ro.js +1 -1
  186. package/dist/translations/ro.umd.js +1 -1
  187. package/dist/translations/ru.js +1 -1
  188. package/dist/translations/ru.umd.js +1 -1
  189. package/dist/translations/si.js +1 -1
  190. package/dist/translations/si.umd.js +1 -1
  191. package/dist/translations/sk.js +1 -1
  192. package/dist/translations/sk.umd.js +1 -1
  193. package/dist/translations/sl.js +1 -1
  194. package/dist/translations/sl.umd.js +1 -1
  195. package/dist/translations/sq.js +1 -1
  196. package/dist/translations/sq.umd.js +1 -1
  197. package/dist/translations/sr-latn.js +1 -1
  198. package/dist/translations/sr-latn.umd.js +1 -1
  199. package/dist/translations/sr.js +1 -1
  200. package/dist/translations/sr.umd.js +1 -1
  201. package/dist/translations/sv.js +1 -1
  202. package/dist/translations/sv.umd.js +1 -1
  203. package/dist/translations/th.js +1 -1
  204. package/dist/translations/th.umd.js +1 -1
  205. package/dist/translations/ti.js +1 -1
  206. package/dist/translations/ti.umd.js +1 -1
  207. package/dist/translations/tk.js +1 -1
  208. package/dist/translations/tk.umd.js +1 -1
  209. package/dist/translations/tr.js +1 -1
  210. package/dist/translations/tr.umd.js +1 -1
  211. package/dist/translations/tt.js +1 -1
  212. package/dist/translations/tt.umd.js +1 -1
  213. package/dist/translations/ug.js +1 -1
  214. package/dist/translations/ug.umd.js +1 -1
  215. package/dist/translations/uk.js +1 -1
  216. package/dist/translations/uk.umd.js +1 -1
  217. package/dist/translations/ur.js +1 -1
  218. package/dist/translations/ur.umd.js +1 -1
  219. package/dist/translations/uz.js +1 -1
  220. package/dist/translations/uz.umd.js +1 -1
  221. package/dist/translations/vi.js +1 -1
  222. package/dist/translations/vi.umd.js +1 -1
  223. package/dist/translations/zh-cn.js +1 -1
  224. package/dist/translations/zh-cn.umd.js +1 -1
  225. package/dist/translations/zh.js +1 -1
  226. package/dist/translations/zh.umd.js +1 -1
  227. package/lang/contexts.json +163 -1
  228. package/lang/translations/af.po +612 -0
  229. package/lang/translations/ar.po +628 -0
  230. package/lang/translations/ast.po +612 -0
  231. package/lang/translations/az.po +612 -0
  232. package/lang/translations/be.po +616 -0
  233. package/lang/translations/bg.po +612 -0
  234. package/lang/translations/bn.po +612 -0
  235. package/lang/translations/bs.po +616 -0
  236. package/lang/translations/ca.po +612 -0
  237. package/lang/translations/cs.po +616 -0
  238. package/lang/translations/da.po +612 -0
  239. package/lang/translations/de-ch.po +612 -0
  240. package/lang/translations/de.po +612 -0
  241. package/lang/translations/el.po +612 -0
  242. package/lang/translations/en-au.po +612 -0
  243. package/lang/translations/en-gb.po +612 -0
  244. package/lang/translations/en.po +612 -0
  245. package/lang/translations/eo.po +612 -0
  246. package/lang/translations/es-co.po +612 -0
  247. package/lang/translations/es.po +612 -0
  248. package/lang/translations/et.po +612 -0
  249. package/lang/translations/eu.po +612 -0
  250. package/lang/translations/fa.po +608 -0
  251. package/lang/translations/fi.po +612 -0
  252. package/lang/translations/fr.po +612 -0
  253. package/lang/translations/gl.po +612 -0
  254. package/lang/translations/gu.po +612 -0
  255. package/lang/translations/he.po +612 -0
  256. package/lang/translations/hi.po +612 -0
  257. package/lang/translations/hr.po +616 -0
  258. package/lang/translations/hu.po +612 -0
  259. package/lang/translations/hy.po +612 -0
  260. package/lang/translations/id.po +608 -0
  261. package/lang/translations/it.po +612 -0
  262. package/lang/translations/ja.po +608 -0
  263. package/lang/translations/jv.po +612 -0
  264. package/lang/translations/kk.po +612 -0
  265. package/lang/translations/km.po +608 -0
  266. package/lang/translations/kn.po +612 -0
  267. package/lang/translations/ko.po +608 -0
  268. package/lang/translations/ku.po +612 -0
  269. package/lang/translations/lt.po +616 -0
  270. package/lang/translations/lv.po +616 -0
  271. package/lang/translations/ms.po +608 -0
  272. package/lang/translations/nb.po +612 -0
  273. package/lang/translations/ne.po +612 -0
  274. package/lang/translations/nl.po +612 -0
  275. package/lang/translations/no.po +612 -0
  276. package/lang/translations/oc.po +612 -0
  277. package/lang/translations/pl.po +616 -0
  278. package/lang/translations/pt-br.po +612 -0
  279. package/lang/translations/pt.po +612 -0
  280. package/lang/translations/ro.po +616 -0
  281. package/lang/translations/ru.po +616 -0
  282. package/lang/translations/si.po +612 -0
  283. package/lang/translations/sk.po +616 -0
  284. package/lang/translations/sl.po +620 -0
  285. package/lang/translations/sq.po +612 -0
  286. package/lang/translations/sr-latn.po +616 -0
  287. package/lang/translations/sr.po +616 -0
  288. package/lang/translations/sv.po +612 -0
  289. package/lang/translations/th.po +608 -0
  290. package/lang/translations/ti.po +612 -0
  291. package/lang/translations/tk.po +612 -0
  292. package/lang/translations/tr.po +612 -0
  293. package/lang/translations/tt.po +608 -0
  294. package/lang/translations/ug.po +608 -0
  295. package/lang/translations/uk.po +616 -0
  296. package/lang/translations/ur.po +612 -0
  297. package/lang/translations/uz.po +612 -0
  298. package/lang/translations/vi.po +608 -0
  299. package/lang/translations/zh-cn.po +608 -0
  300. package/lang/translations/zh.po +608 -0
  301. package/package.json +23 -11
  302. package/src/aiactions/aiactions.d.ts +48 -0
  303. package/src/aiactions/aiactions.js +23 -0
  304. package/src/aiactions/model/aiactionsinteraction.d.ts +48 -0
  305. package/src/aiactions/model/aiactionsinteraction.js +23 -0
  306. package/src/aiactions/model/aiactionsreply.d.ts +15 -0
  307. package/src/aiactions/model/aiactionsreply.js +23 -0
  308. package/src/{adapters → aiassistant/adapters}/aiadapter.d.ts +1 -1
  309. package/src/aiassistant/adapters/aiadapter.js +23 -0
  310. package/src/{adapters → aiassistant/adapters}/aitextadapter.d.ts +9 -9
  311. package/src/aiassistant/adapters/aitextadapter.js +23 -0
  312. package/src/{adapters → aiassistant/adapters}/awstextadapter.d.ts +36 -23
  313. package/src/aiassistant/adapters/awstextadapter.js +23 -0
  314. package/src/{adapters → aiassistant/adapters}/openaitextadapter.d.ts +38 -25
  315. package/src/aiassistant/adapters/openaitextadapter.js +23 -0
  316. package/src/{aiassistant.d.ts → aiassistant/aiassistant.d.ts} +54 -13
  317. package/src/aiassistant/aiassistant.js +23 -0
  318. package/src/aiassistant/aiassistantediting.js +23 -0
  319. package/src/{aiassistantui.d.ts → aiassistant/aiassistantui.d.ts} +4 -4
  320. package/src/aiassistant/aiassistantui.js +23 -0
  321. package/src/{legacyerrors.js → aiassistant/legacyerrors.js} +1 -1
  322. package/src/{ui → aiassistant/ui}/aiassistantcontroller.d.ts +5 -4
  323. package/src/aiassistant/ui/aiassistantcontroller.js +24 -0
  324. package/src/{ui → aiassistant/ui}/form/aiformcontentarea.d.ts +1 -1
  325. package/src/aiassistant/ui/form/aiformcontentarea.js +23 -0
  326. package/src/aiassistant/ui/form/aiformerrorview.js +23 -0
  327. package/src/{ui → aiassistant/ui}/form/aiformpromptview.d.ts +1 -1
  328. package/src/aiassistant/ui/form/aiformpromptview.js +23 -0
  329. package/src/{ui → aiassistant/ui}/form/aiformtoolbarview.d.ts +1 -1
  330. package/src/aiassistant/ui/form/aiformtoolbarview.js +23 -0
  331. package/src/{ui → aiassistant/ui}/form/aiformview.d.ts +1 -1
  332. package/src/aiassistant/ui/form/aiformview.js +23 -0
  333. package/src/{ui → aiassistant/ui}/form/aihistorylistitemview.d.ts +1 -1
  334. package/src/aiassistant/ui/form/aihistorylistitemview.js +23 -0
  335. package/src/{ui → aiassistant/ui}/form/aihistorylistview.d.ts +1 -1
  336. package/src/aiassistant/ui/form/aihistorylistview.js +23 -0
  337. package/src/{ui → aiassistant/ui}/form/prompthistory.d.ts +3 -0
  338. package/src/aiassistant/ui/form/prompthistory.js +23 -0
  339. package/src/{ui → aiassistant/ui}/showaiassistantcommand.d.ts +2 -2
  340. package/src/aiassistant/ui/showaiassistantcommand.js +23 -0
  341. package/src/{utils → aiassistant/utils}/common-translations.d.ts +1 -1
  342. package/src/{utils → aiassistant/utils}/common-translations.js +1 -1
  343. package/src/{utils → aiassistant/utils}/normalizecommandsconfig.d.ts +2 -2
  344. package/src/{utils → aiassistant/utils}/normalizecommandsconfig.js +1 -1
  345. package/src/aiballoon/aiballoon.d.ts +72 -0
  346. package/src/aiballoon/aiballoon.js +23 -0
  347. package/src/aiballoon/ui/aiballoondisclaimerview.d.ts +17 -0
  348. package/src/aiballoon/ui/aiballoondisclaimerview.js +23 -0
  349. package/src/aiballoon/ui/aiballoontoolbarview.d.ts +31 -0
  350. package/src/aiballoon/ui/aiballoontoolbarview.js +23 -0
  351. package/src/aiballoon/ui/aiballoonview.d.ts +109 -0
  352. package/src/aiballoon/ui/aiballoonview.js +23 -0
  353. package/src/aichat/aichat.d.ts +79 -0
  354. package/src/aichat/aichat.js +23 -0
  355. package/src/aichat/aichatcontroller.d.ts +68 -0
  356. package/src/aichat/aichatcontroller.js +23 -0
  357. package/src/aichat/aichatui.d.ts +297 -0
  358. package/src/aichat/aichatui.js +23 -0
  359. package/src/aichat/model/aichatcontext.d.ts +360 -0
  360. package/src/aichat/model/aichatcontext.js +23 -0
  361. package/src/aichat/model/aichatconversation.d.ts +270 -0
  362. package/src/aichat/model/aichatconversation.js +23 -0
  363. package/src/aichat/model/aichatinteraction.d.ts +46 -0
  364. package/src/aichat/model/aichatinteraction.js +23 -0
  365. package/src/aichat/model/aichatmodels.d.ts +77 -0
  366. package/src/aichat/model/aichatmodels.js +23 -0
  367. package/src/aichat/ui/aichatcontrolsview.d.ts +98 -0
  368. package/src/aichat/ui/aichatcontrolsview.js +23 -0
  369. package/src/aichat/ui/aichatfeedview.d.ts +114 -0
  370. package/src/aichat/ui/aichatfeedview.js +23 -0
  371. package/src/aichat/ui/aichatheaderview.d.ts +29 -0
  372. package/src/aichat/ui/aichatheaderview.js +23 -0
  373. package/src/aichat/ui/aichatview.d.ts +37 -0
  374. package/src/aichat/ui/aichatview.js +23 -0
  375. package/src/aichat/ui/controls/aichatchipsoverflowmanager.d.ts +71 -0
  376. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +23 -0
  377. package/src/aichat/ui/controls/aichatcontextitembuttonview.d.ts +46 -0
  378. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +23 -0
  379. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.d.ts +89 -0
  380. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +23 -0
  381. package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +105 -0
  382. package/src/aichat/ui/controls/aichatcontextpanelview.js +23 -0
  383. package/src/aichat/ui/controls/aichatcontrolsloaderview.d.ts +12 -0
  384. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +23 -0
  385. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.d.ts +89 -0
  386. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +23 -0
  387. package/src/aichat/ui/controls/aichatpromptinputview.d.ts +44 -0
  388. package/src/aichat/ui/controls/aichatpromptinputview.js +23 -0
  389. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.d.ts +17 -0
  390. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +23 -0
  391. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.d.ts +61 -0
  392. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +23 -0
  393. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +100 -0
  394. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +23 -0
  395. package/src/aichat/ui/controls/resources/aichatresourceslistview.d.ts +49 -0
  396. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +23 -0
  397. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.d.ts +61 -0
  398. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +23 -0
  399. package/src/aichat/ui/controls/resources/aichatresourcesview.d.ts +54 -0
  400. package/src/aichat/ui/controls/resources/aichatresourcesview.js +23 -0
  401. package/src/aichat/ui/feed/aichatfeedcontextchipsview.d.ts +27 -0
  402. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +23 -0
  403. package/src/aichat/ui/feed/aichatfeederroritemview.d.ts +39 -0
  404. package/src/aichat/ui/feed/aichatfeederroritemview.js +23 -0
  405. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +29 -0
  406. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +23 -0
  407. package/src/aichat/ui/feed/aichatfeeditemview.d.ts +46 -0
  408. package/src/aichat/ui/feed/aichatfeeditemview.js +23 -0
  409. package/src/aichat/ui/feed/aichatfeedreplyitemview.d.ts +46 -0
  410. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +23 -0
  411. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +74 -0
  412. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +23 -0
  413. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +74 -0
  414. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +23 -0
  415. package/src/aichat/ui/feed/aichatfeedusermessageitem.d.ts +40 -0
  416. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +23 -0
  417. package/src/aichat/utils/eventnames.d.ts +5 -0
  418. package/src/aichat/utils/eventnames.js +23 -0
  419. package/src/aichat/utils/promisequeue.d.ts +32 -0
  420. package/src/aichat/utils/promisequeue.js +23 -0
  421. package/src/aichat/utils/scrollmanager.d.ts +23 -0
  422. package/src/aichat/utils/scrollmanager.js +23 -0
  423. package/src/aichathistory/aichathistory.d.ts +30 -0
  424. package/src/aichathistory/aichathistory.js +23 -0
  425. package/src/aichathistory/aichathistorycontroller.d.ts +40 -0
  426. package/src/aichathistory/aichathistorycontroller.js +23 -0
  427. package/src/aichathistory/aichathistoryui.d.ts +112 -0
  428. package/src/aichathistory/aichathistoryui.js +23 -0
  429. package/src/aichathistory/model/aichathistoryconversations.d.ts +114 -0
  430. package/src/aichathistory/model/aichathistoryconversations.js +23 -0
  431. package/src/aichathistory/model/aichathistoryitem.d.ts +59 -0
  432. package/src/aichathistory/model/aichathistoryitem.js +23 -0
  433. package/src/aichathistory/ui/aichathistorylistitemview.d.ts +42 -0
  434. package/src/aichathistory/ui/aichathistorylistitemview.js +23 -0
  435. package/src/aichathistory/ui/aichathistorylistview.d.ts +31 -0
  436. package/src/aichathistory/ui/aichathistorylistview.js +23 -0
  437. package/src/aichathistory/ui/aichathistorysectionlistview.d.ts +17 -0
  438. package/src/aichathistory/ui/aichathistorysectionlistview.js +23 -0
  439. package/src/aichathistory/ui/aichathistoryview.d.ts +41 -0
  440. package/src/aichathistory/ui/aichathistoryview.js +23 -0
  441. package/src/aiconfig.d.ts +92 -30
  442. package/src/aicore/aiconnector.d.ts +302 -0
  443. package/src/aicore/aiconnector.js +23 -0
  444. package/src/aicore/aiediting.d.ts +61 -0
  445. package/src/aicore/aiediting.js +23 -0
  446. package/src/aicore/model/aicapabilities.d.ts +55 -0
  447. package/src/aicore/model/aicapabilities.js +23 -0
  448. package/src/aicore/model/aicontext.d.ts +53 -0
  449. package/src/aicore/model/aicontext.js +23 -0
  450. package/src/aicore/model/aiinteraction.d.ts +135 -0
  451. package/src/aicore/model/aiinteraction.js +23 -0
  452. package/src/aicore/model/aireply.d.ts +178 -0
  453. package/src/aicore/model/aireply.js +23 -0
  454. package/src/aicore/pipeline/airesponseapplier.d.ts +291 -0
  455. package/src/aicore/pipeline/airesponseapplier.js +24 -0
  456. package/src/aicore/pipeline/airesponseparser.d.ts +27 -0
  457. package/src/aicore/pipeline/airesponseparser.js +24 -0
  458. package/src/aicore/ui/aidisclaimerview.d.ts +17 -0
  459. package/src/aicore/ui/aidisclaimerview.js +23 -0
  460. package/src/aicore/ui/aiskeleton.d.ts +37 -0
  461. package/src/aicore/ui/aiskeleton.js +23 -0
  462. package/src/aicore/ui/aispinner.d.ts +14 -0
  463. package/src/aicore/ui/aispinner.js +23 -0
  464. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.d.ts +62 -0
  465. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +23 -0
  466. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +38 -0
  467. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +23 -0
  468. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +80 -0
  469. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +23 -0
  470. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +39 -0
  471. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +23 -0
  472. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.d.ts +39 -0
  473. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +23 -0
  474. package/src/aicore/utils/common-translations.d.ts +9 -0
  475. package/src/aicore/utils/common-translations.js +23 -0
  476. package/src/aicore/utils/createresizebutton.d.ts +12 -0
  477. package/src/aicore/utils/createresizebutton.js +23 -0
  478. package/src/aicore/utils/documentposition.d.ts +41 -0
  479. package/src/aicore/utils/documentposition.js +23 -0
  480. package/src/aicore/utils/documentrange.d.ts +46 -0
  481. package/src/aicore/utils/documentrange.js +23 -0
  482. package/src/aicore/utils/eventnames.d.ts +9 -0
  483. package/src/aicore/utils/eventnames.js +23 -0
  484. package/src/aicore/utils/geteditorfromcontext.d.ts +6 -0
  485. package/src/aicore/utils/geteditorfromcontext.js +23 -0
  486. package/src/aicore/utils/getoperationsfromreply.d.ts +21 -0
  487. package/src/aicore/utils/getoperationsfromreply.js +23 -0
  488. package/src/aicore/utils/getsuggestionpartsfromreply.d.ts +19 -0
  489. package/src/aicore/utils/getsuggestionpartsfromreply.js +23 -0
  490. package/src/aicore/utils/htmlparser.d.ts +35 -0
  491. package/src/aicore/utils/htmlparser.js +23 -0
  492. package/src/aicore/utils/htmlstreamer.d.ts +123 -0
  493. package/src/aicore/utils/htmlstreamer.js +23 -0
  494. package/src/aiquickactions/aiquickactions.d.ts +41 -0
  495. package/src/aiquickactions/aiquickactions.js +23 -0
  496. package/src/aiquickactions/aiquickactionscommand.d.ts +12 -0
  497. package/src/aiquickactions/aiquickactionscommand.js +23 -0
  498. package/src/aiquickactions/aiquickactionsediting.d.ts +23 -0
  499. package/src/aiquickactions/aiquickactionsediting.js +23 -0
  500. package/src/aiquickactions/aiquickactionsui.d.ts +150 -0
  501. package/src/aiquickactions/aiquickactionsui.js +23 -0
  502. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +30 -0
  503. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +23 -0
  504. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +45 -0
  505. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +23 -0
  506. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +45 -0
  507. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +23 -0
  508. package/src/aiquickactions/utils/common-translations.d.ts +9 -0
  509. package/src/aiquickactions/utils/common-translations.js +23 -0
  510. package/src/aireviewmode/aireviewmode.d.ts +30 -0
  511. package/src/aireviewmode/aireviewmode.js +23 -0
  512. package/src/aireviewmode/aireviewmodecontroller.d.ts +32 -0
  513. package/src/aireviewmode/aireviewmodecontroller.js +23 -0
  514. package/src/aireviewmode/aireviewmodeediting.d.ts +129 -0
  515. package/src/aireviewmode/aireviewmodeediting.js +23 -0
  516. package/src/aireviewmode/aireviewmodeui.d.ts +73 -0
  517. package/src/aireviewmode/aireviewmodeui.js +23 -0
  518. package/src/aireviewmode/model/aireviewcheck.d.ts +60 -0
  519. package/src/aireviewmode/model/aireviewcheck.js +23 -0
  520. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +17 -0
  521. package/src/aireviewmode/model/aireviewcheckcustom.js +23 -0
  522. package/src/aireviewmode/model/aireviewchecklist.d.ts +31 -0
  523. package/src/aireviewmode/model/aireviewchecklist.js +23 -0
  524. package/src/aireviewmode/model/aireviewcheckresult.d.ts +39 -0
  525. package/src/aireviewmode/model/aireviewcheckresult.js +23 -0
  526. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +42 -0
  527. package/src/aireviewmode/model/aireviewcheckresultchange.js +23 -0
  528. package/src/aireviewmode/model/aireviewcheckrun.d.ts +102 -0
  529. package/src/aireviewmode/model/aireviewcheckrun.js +23 -0
  530. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +18 -0
  531. package/src/aireviewmode/model/aireviewcustomcheckrun.js +23 -0
  532. package/src/aireviewmode/model/aireviewmodels.d.ts +26 -0
  533. package/src/aireviewmode/model/aireviewmodels.js +23 -0
  534. package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +14 -0
  535. package/src/aireviewmode/model/aireviewsystemcheckrun.js +23 -0
  536. package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +29 -0
  537. package/src/aireviewmode/ui/aireviemodepromptinputview.js +23 -0
  538. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +46 -0
  539. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +23 -0
  540. package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +23 -0
  541. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +23 -0
  542. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.d.ts +23 -0
  543. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +23 -0
  544. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +80 -0
  545. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +23 -0
  546. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +45 -0
  547. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +23 -0
  548. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +18 -0
  549. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +23 -0
  550. package/src/aireviewmode/ui/aireviewmodeview.d.ts +42 -0
  551. package/src/aireviewmode/ui/aireviewmodeview.js +23 -0
  552. package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +16 -0
  553. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +23 -0
  554. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +20 -0
  555. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +23 -0
  556. package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +16 -0
  557. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +23 -0
  558. package/src/aireviewmode/utils/common-translations.d.ts +9 -0
  559. package/src/aireviewmode/utils/common-translations.js +23 -0
  560. package/src/aitabs/aitabs.d.ts +92 -0
  561. package/src/aitabs/aitabs.js +23 -0
  562. package/src/aitabs/aitabsmainview.d.ts +45 -0
  563. package/src/aitabs/aitabsmainview.js +23 -0
  564. package/src/aitabs/tabs/aitabsview.d.ts +147 -0
  565. package/src/aitabs/tabs/aitabsview.js +23 -0
  566. package/src/aitabs/tabs/tabbuttonview.d.ts +47 -0
  567. package/src/aitabs/tabs/tabbuttonview.js +23 -0
  568. package/src/aitabs/tabs/tabpanelview.d.ts +44 -0
  569. package/src/aitabs/tabs/tabpanelview.js +23 -0
  570. package/src/augmentation.d.ts +22 -6
  571. package/src/index.d.ts +40 -9
  572. package/src/index.js +1 -1
  573. package/theme/aiballoon/aiballoon.css +207 -0
  574. package/theme/aichat/aichat-controls/aichat-context-chip.css +139 -0
  575. package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +194 -0
  576. package/theme/aichat/aichat-controls/aichat-context-controls.css +46 -0
  577. package/theme/aichat/aichat-controls/aichat-controls-button.css +74 -0
  578. package/theme/aichat/aichat-controls/aichat-controls-loader.css +93 -0
  579. package/theme/aichat/aichat-controls/prompt-capabilities.css +46 -0
  580. package/theme/aichat/aichat-controls/prompt-input.css +55 -0
  581. package/theme/aichat/aichat-controls.css +154 -0
  582. package/theme/aichat/aichat.css +68 -0
  583. package/theme/aichat/aichatfeed.css +376 -0
  584. package/theme/aichat/aichathistory.css +235 -0
  585. package/theme/aichat/aiminitoolbar.css +94 -0
  586. package/theme/aichat/aisuggestioncontainer.css +203 -0
  587. package/theme/aiquickactions/aiquickactions.css +43 -0
  588. package/theme/aireviewmode/aireviewmode-check-list.css +255 -0
  589. package/theme/aireviewmode/aireviewmode-check-run.css +202 -0
  590. package/theme/aireviewmode/aireviewmode-review-completed.css +52 -0
  591. package/theme/aireviewmode/aireviewmode.css +73 -0
  592. package/theme/aitabs/aitabsview.css +64 -0
  593. package/theme/aitabs/tabs/tabbuttonview.css +74 -0
  594. package/theme/aitabs/tabs/tabsview.css +78 -0
  595. package/theme/common/aibutton.css +145 -0
  596. package/theme/common/aichaterror.css +61 -0
  597. package/theme/common/aidisclaimer.css +29 -0
  598. package/theme/common/aiheader.css +88 -0
  599. package/theme/common/aiskeleton.css +54 -0
  600. package/theme/common/aispinner.css +58 -0
  601. package/src/adapters/aiadapter.js +0 -23
  602. package/src/adapters/aitextadapter.js +0 -23
  603. package/src/adapters/awstextadapter.js +0 -23
  604. package/src/adapters/openaitextadapter.js +0 -23
  605. package/src/aiassistant.js +0 -23
  606. package/src/aiassistantediting.js +0 -23
  607. package/src/aiassistantui.js +0 -23
  608. package/src/ui/aiassistantcontroller.js +0 -24
  609. package/src/ui/form/aiformcontentarea.js +0 -23
  610. package/src/ui/form/aiformerrorview.js +0 -23
  611. package/src/ui/form/aiformpromptview.js +0 -23
  612. package/src/ui/form/aiformtoolbarview.js +0 -23
  613. package/src/ui/form/aiformview.js +0 -23
  614. package/src/ui/form/aihistorylistitemview.js +0 -23
  615. package/src/ui/form/aihistorylistview.js +0 -23
  616. package/src/ui/form/prompthistory.js +0 -23
  617. package/src/ui/showaiassistantcommand.js +0 -23
  618. /package/src/{aiassistantediting.d.ts → aiassistant/aiassistantediting.d.ts} +0 -0
  619. /package/src/{legacyerrors.d.ts → aiassistant/legacyerrors.d.ts} +0 -0
  620. /package/src/{ui → aiassistant/ui}/form/aiformerrorview.d.ts +0 -0
  621. /package/theme/{ai-dropdown.css → aiassistant/ai-dropdown.css} +0 -0
  622. /package/theme/{ai-form.css → aiassistant/ai-form.css} +0 -0
  623. /package/theme/{ai.css → aiassistant/ai.css} +0 -0
@@ -0,0 +1,62 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module ai/aicore/ui/aiminitoolbarview
7
+ */
8
+ import { type Locale } from 'ckeditor5/src/utils.js';
9
+ import { ToolbarView, type ViewCollection } from 'ckeditor5/src/ui.js';
10
+ /**
11
+ * Configuration interface for AIMiniToolbarView buttons.
12
+ */
13
+ export interface AIMiniToolbarConfig {
14
+ /**
15
+ * Whether to show the copy button.
16
+ */
17
+ showCopy?: boolean;
18
+ /**
19
+ * Configuration for the show changes button. If undefined, the button won't be shown.
20
+ */
21
+ showChanges?: 'icon' | 'full';
22
+ /**
23
+ * Whether to show the like button.
24
+ */
25
+ showLike?: boolean;
26
+ /**
27
+ * Whether to show the dislike button.
28
+ */
29
+ showDislike?: boolean;
30
+ /**
31
+ * Custom views to add to the toolbar as the last items.
32
+ */
33
+ customView?: ViewCollection;
34
+ }
35
+ /**
36
+ * A view for the mini toolbar in the AI suggestion preview.
37
+ *
38
+ * It hosts the copy, like and dislike buttons.
39
+ */
40
+ export declare class AIMiniToolbarView extends ToolbarView {
41
+ /**
42
+ * Observable property that indicates whether the toolbar is in loading state.
43
+ * When true, all buttons should be disabled.
44
+ */
45
+ isLoading: boolean;
46
+ /**
47
+ * @inheritDoc
48
+ */
49
+ constructor(locale: Locale, config: AIMiniToolbarConfig | undefined, showDiff: boolean);
50
+ }
51
+ export type AIMiniToolbarLikeEvent = {
52
+ name: 'like';
53
+ args: [];
54
+ };
55
+ export type AIMiniToolbarDislikeEvent = {
56
+ name: 'dislike';
57
+ args: [];
58
+ };
59
+ export type AIMiniToolbarToggleShowChangesEvent = {
60
+ name: 'toggleShowChanges';
61
+ args: [isOn: boolean];
62
+ };
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ function _0x523e(_0x1fe998,_0x9a6b40){const _0x4366e3=_0x4366();return _0x523e=function(_0x523e2b,_0x57251c){_0x523e2b=_0x523e2b-0x15f;let _0x11190a=_0x4366e3[_0x523e2b];return _0x11190a;},_0x523e(_0x1fe998,_0x9a6b40);}const _0x115ca7=_0x523e;(function(_0x48b22a,_0x455a5c){const _0x496632=_0x523e,_0x552d72=_0x48b22a();while(!![]){try{const _0x50949f=-parseInt(_0x496632(0x170))/0x1+-parseInt(_0x496632(0x176))/0x2+-parseInt(_0x496632(0x163))/0x3*(parseInt(_0x496632(0x16d))/0x4)+-parseInt(_0x496632(0x17b))/0x5+-parseInt(_0x496632(0x182))/0x6+-parseInt(_0x496632(0x18e))/0x7+parseInt(_0x496632(0x17d))/0x8;if(_0x50949f===_0x455a5c)break;else _0x552d72['push'](_0x552d72['shift']());}catch(_0xe63eb1){_0x552d72['push'](_0x552d72['shift']());}}}(_0x4366,0x99151));import{ButtonView as _0x3a2b0e,IconView as _0x568a27,ToolbarView as _0x4b284d}from'ckeditor5/src/ui.js';import{IconCheck as _0x355bc9,IconCopy as _0xddfc7,IconShowChangesOff as _0x49c5ad,IconShowChangesOn as _0x34a27b,IconThumbDown as _0x287784,IconThumbUp as _0x146439}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x15576e}from'../../utils/common-translations.js';function _0x4366(){const _0x46e62b=['showChanges','dislike','like','ck-ai-mini-toolbar\x20ck-hidden','length','showDislike','dislikeButton','addMany','set','5330423osqgoy','likeButton','_config','ck-ai-mini-toolbar','AI_MINI_TOOLBAR_DISLIKE','full','5583dMVMAK','AI_MINI_TOOLBAR_LIKE','fire','isOn','locale','children','customView','toggleShowChanges','isEnabled','isLoading','2164AsyeXw','items','_setupRatingButtons','805299Nlmwwx','_setupCopyButton','bind','copyButton','showLike','showChangesButton','679080xZInQE','execute','ck-ai-mini-toolbar-copy-button','AI_MINI_TOOLBAR_COPY','add','2739610gHNDWY','showCopy','37228248XWvPlF','class','_setupShowChangesButton','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','extendTemplate','3392730qoJkxN','ck-ai-mini-toolbar-copy-button__check-mark','AI_SUGGESTION_BUTTON_SHOW_CHANGES'];_0x4366=function(){return _0x46e62b;};return _0x4366();}export class AIMiniToolbarView extends _0x4b284d{[_0x115ca7(0x173)];[_0x115ca7(0x18f)];[_0x115ca7(0x18b)];[_0x115ca7(0x175)];[_0x115ca7(0x15f)];constructor(_0x8da7c2,_0x239d51={},_0x4e75bc){const _0x44731a=_0x115ca7;super(_0x8da7c2),this[_0x44731a(0x18d)](_0x44731a(0x16c),!0x1),this[_0x44731a(0x15f)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x239d51};const _0x350dd6=!(this[_0x44731a(0x15f)][_0x44731a(0x17c)]||this[_0x44731a(0x15f)][_0x44731a(0x185)]||this[_0x44731a(0x15f)][_0x44731a(0x174)]||this[_0x44731a(0x15f)][_0x44731a(0x18a)]||this[_0x44731a(0x15f)][_0x44731a(0x169)]?.[_0x44731a(0x189)]);this[_0x44731a(0x17e)]=_0x350dd6?_0x44731a(0x188):_0x44731a(0x160),this[_0x44731a(0x15f)][_0x44731a(0x17c)]&&(this[_0x44731a(0x171)](),this[_0x44731a(0x16e)][_0x44731a(0x17a)](this[_0x44731a(0x173)])),this[_0x44731a(0x15f)][_0x44731a(0x185)]&&(this[_0x44731a(0x17f)](_0x4e75bc),this[_0x44731a(0x16e)][_0x44731a(0x17a)](this[_0x44731a(0x175)])),this[_0x44731a(0x16f)](),this[_0x44731a(0x15f)][_0x44731a(0x174)]&&this[_0x44731a(0x16e)][_0x44731a(0x17a)](this[_0x44731a(0x18f)]),this[_0x44731a(0x15f)][_0x44731a(0x18a)]&&this[_0x44731a(0x16e)][_0x44731a(0x17a)](this[_0x44731a(0x18b)]),this[_0x44731a(0x15f)][_0x44731a(0x169)]&&this[_0x44731a(0x16e)][_0x44731a(0x18c)](this[_0x44731a(0x15f)][_0x44731a(0x169)]);}[_0x115ca7(0x16f)](){const _0x3a8ba7=_0x115ca7;this[_0x3a8ba7(0x18f)]=new _0x3a2b0e(this[_0x3a8ba7(0x167)]),this[_0x3a8ba7(0x18f)][_0x3a8ba7(0x18d)]({'icon':_0x146439,'label':_0x15576e(this[_0x3a8ba7(0x167)],_0x3a8ba7(0x164)),'tooltip':!0x0}),this[_0x3a8ba7(0x18f)][_0x3a8ba7(0x172)](_0x3a8ba7(0x16b))['to'](this,_0x3a8ba7(0x16c),_0x3426b7=>!_0x3426b7),this[_0x3a8ba7(0x18f)]['on'](_0x3a8ba7(0x177),()=>{const _0xc1ae87=_0x3a8ba7;this[_0xc1ae87(0x165)](_0xc1ae87(0x187));}),this[_0x3a8ba7(0x18b)]=new _0x3a2b0e(this[_0x3a8ba7(0x167)]),this[_0x3a8ba7(0x18b)][_0x3a8ba7(0x18d)]({'icon':_0x287784,'label':_0x15576e(this[_0x3a8ba7(0x167)],_0x3a8ba7(0x161)),'tooltip':!0x0}),this[_0x3a8ba7(0x18b)][_0x3a8ba7(0x172)](_0x3a8ba7(0x16b))['to'](this,_0x3a8ba7(0x16c),_0x42e754=>!_0x42e754),this[_0x3a8ba7(0x18b)]['on'](_0x3a8ba7(0x177),()=>{const _0x2d7db6=_0x3a8ba7;this[_0x2d7db6(0x165)](_0x2d7db6(0x186));});}[_0x115ca7(0x171)](){const _0x112ac5=_0x115ca7;this[_0x112ac5(0x173)]=new _0x3a2b0e(this[_0x112ac5(0x167)]),this[_0x112ac5(0x173)][_0x112ac5(0x18d)]({'icon':_0xddfc7,'label':_0x15576e(this[_0x112ac5(0x167)],_0x112ac5(0x179)),'class':_0x112ac5(0x178),'tooltip':!0x0}),this[_0x112ac5(0x173)][_0x112ac5(0x172)](_0x112ac5(0x16b))['to'](this,_0x112ac5(0x16c),_0xddb54d=>!_0xddb54d);const _0x1193cf=new _0x568a27();_0x1193cf[_0x112ac5(0x18d)]({'content':_0x355bc9}),_0x1193cf[_0x112ac5(0x181)]({'attributes':{'class':[_0x112ac5(0x183)]}}),this[_0x112ac5(0x173)]['on'](_0x112ac5(0x177),()=>{const _0x5d9985=_0x112ac5;this[_0x5d9985(0x173)][_0x5d9985(0x17e)]=_0x5d9985(0x180),setTimeout(()=>{const _0x304a17=_0x5d9985;this[_0x304a17(0x173)][_0x304a17(0x17e)]=_0x304a17(0x178);},0x7d0);}),this[_0x112ac5(0x173)][_0x112ac5(0x168)][_0x112ac5(0x17a)](_0x1193cf);}[_0x115ca7(0x17f)](_0x21d42c){const _0x30c5de=_0x115ca7;this[_0x30c5de(0x175)]=new _0x3a2b0e(this[_0x30c5de(0x167)]),this[_0x30c5de(0x175)][_0x30c5de(0x18d)]({'icon':_0x49c5ad,'label':_0x15576e(this[_0x30c5de(0x167)],_0x30c5de(0x184)),'withText':_0x30c5de(0x162)==this[_0x30c5de(0x15f)][_0x30c5de(0x185)],'isOn':_0x21d42c}),this[_0x30c5de(0x175)][_0x30c5de(0x172)](_0x30c5de(0x16b))['to'](this,_0x30c5de(0x16c),_0x52628a=>!_0x52628a),this[_0x30c5de(0x175)]['on'](_0x30c5de(0x177),()=>{const _0x4588ec=_0x30c5de,_0x114dd8=!this[_0x4588ec(0x175)][_0x4588ec(0x166)];this[_0x4588ec(0x175)][_0x4588ec(0x18d)]({'isOn':_0x114dd8,'icon':_0x114dd8?_0x34a27b:_0x49c5ad}),this[_0x4588ec(0x165)](_0x4588ec(0x16a),_0x114dd8);});}}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module ai/aicore/ui/suggestioncontainer/aisuggestionbodyview
7
+ */
8
+ import { type Locale } from 'ckeditor5/src/utils.js';
9
+ import { View } from 'ckeditor5/src/ui.js';
10
+ import { AISuggestionBodyViewContentPartView, type AIContentRenderingStrategy } from './aisuggestioncontentpartview.js';
11
+ import { type AISuggestionContentPartDefinition } from '../../utils/getsuggestionpartsfromreply.js';
12
+ /**
13
+ * The inner view of the suggestion container that displays the content of the suggestion (or multiple parts of it).
14
+ */
15
+ export declare class AISuggestionBodyView extends View<HTMLDivElement> {
16
+ hasPendingParts: boolean;
17
+ constructor(locale: Locale, { areActionsDisabled }: {
18
+ areActionsDisabled: boolean;
19
+ });
20
+ get partsCount(): number;
21
+ updateContentParts({ parts, renderingStrategy, abortSignal }: {
22
+ parts: Array<AISuggestionContentPartDefinition>;
23
+ renderingStrategy: AIContentRenderingStrategy;
24
+ abortSignal?: AbortSignal;
25
+ }): Promise<void>;
26
+ updatePartState(index: number, state: string): void;
27
+ getPartView(index: number): AISuggestionBodyViewContentPartView | null;
28
+ /**
29
+ * Marks the body view as done.
30
+ *
31
+ * Updates the visibility of the empty parts warning that will show up if some parts in the suggestion are empty.
32
+ */
33
+ markAsDone(): void;
34
+ /**
35
+ * Specifies whether the suggestion body view has some parts that have any content that can be browsed or accepted.
36
+ */
37
+ get hasNonEmptyParts(): boolean;
38
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x3e2660=_0xd6a9;(function(_0x531e40,_0x57830f){const _0x3bbbb1=_0xd6a9,_0x3f5f10=_0x531e40();while(!![]){try{const _0xd242e1=-parseInt(_0x3bbbb1(0x15a))/0x1*(-parseInt(_0x3bbbb1(0x149))/0x2)+-parseInt(_0x3bbbb1(0x148))/0x3*(parseInt(_0x3bbbb1(0x158))/0x4)+-parseInt(_0x3bbbb1(0x14a))/0x5+-parseInt(_0x3bbbb1(0x137))/0x6*(-parseInt(_0x3bbbb1(0x154))/0x7)+-parseInt(_0x3bbbb1(0x130))/0x8*(-parseInt(_0x3bbbb1(0x12e))/0x9)+-parseInt(_0x3bbbb1(0x15c))/0xa+-parseInt(_0x3bbbb1(0x159))/0xb*(-parseInt(_0x3bbbb1(0x14d))/0xc);if(_0xd242e1===_0x57830f)break;else _0x3f5f10['push'](_0x3f5f10['shift']());}catch(_0x4e5519){_0x3f5f10['push'](_0x3f5f10['shift']());}}}(_0x5b5f,0x63cda));import{View as _0x500bc2}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0xafb1a4}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x59c989}from'../../utils/eventnames.js';function _0x5b5f(){const _0x61bad=['3242692NVPkvs','14307821kPwOIQ','7BvLhub','AI_SUGGESTION_EMPTY_PART_WARNING','7286870jTMStg','markAsDone','_updateContentPartsPromiseQueue','length','delegate','get','ck-ai-suggestion__body','setTemplate','createCollection','empty-parts-warning','ck-reset_all-excluded','35064hdiumU','enqueue','632stirTv','_emptyPartsWarningView','add','some','warning','find','div','3621108DHQsqG','updatePartState','index','hasNonEmptyParts','content','_children','_areActionsDisabled','partsCount','state','partDefinition','first','isVisible','hasPendingParts','AI_SUGGESTION_NO_PARTS_WARNING','addEventListener','updateContentParts','locale','3HbxOzB','116602yZEUiN','3359830NgfHkL','updateContent','set','12ZJiXXM','ck-ai-suggestion__body__content-parts','getPartView','setContent','toggleHeader','pending','ck-content','7bKYeRT','abort','from','queueEmptyPromise'];_0x5b5f=function(){return _0x61bad;};return _0x5b5f();}import{PromiseQueue as _0x2bd2dc}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x38e64d}from'../../../aichat/ui/feed/aichatfeederroritemview.js';function _0xd6a9(_0x41a03d,_0x50ab96){const _0x5b5f31=_0x5b5f();return _0xd6a9=function(_0xd6a94f,_0x35439c){_0xd6a94f=_0xd6a94f-0x124;let _0x158b92=_0x5b5f31[_0xd6a94f];return _0x158b92;},_0xd6a9(_0x41a03d,_0x50ab96);}import{getTranslation as _0x2152ab}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x500bc2{[_0x3e2660(0x13c)];[_0x3e2660(0x13d)];[_0x3e2660(0x125)];[_0x3e2660(0x131)];constructor(_0x4074d7,{areActionsDisabled:_0x43d84e}){const _0x41b757=_0x3e2660;super(_0x4074d7),this[_0x41b757(0x13d)]=_0x43d84e,this[_0x41b757(0x14c)](_0x41b757(0x143),!0x1),this[_0x41b757(0x13c)]=this[_0x41b757(0x12b)](),this[_0x41b757(0x125)]=new _0x2bd2dc(),this[_0x41b757(0x131)]=new _0x38e64d({'id':_0x41b757(0x12c),'initialContent':_0x2152ab(_0x4074d7,_0x41b757(0x15b)),'level':_0x41b757(0x134)}),this[_0x41b757(0x131)][_0x41b757(0x142)]=!0x1,this[_0x41b757(0x12a)]({'tag':_0x41b757(0x136),'attributes':{'class':['ck',_0x41b757(0x12d),_0x41b757(0x129),_0x41b757(0x153)]},'children':[{'tag':_0x41b757(0x136),'attributes':{'class':['ck',_0x41b757(0x14e)]},'children':this[_0x41b757(0x13c)]},this[_0x41b757(0x131)]]});}get[_0x3e2660(0x13e)](){const _0x54662e=_0x3e2660;return this[_0x54662e(0x13c)][_0x54662e(0x126)];}async[_0x3e2660(0x146)]({parts:_0x254d95,renderingStrategy:_0x4abdbb,abortSignal:_0x4e7625}){const _0x2e73af=_0x3e2660;for(const _0x53f87e of _0x254d95)this[_0x2e73af(0x125)][_0x2e73af(0x12f)](async _0x269506=>{const _0x456597=_0x2e73af;let _0x3489a4=this[_0x456597(0x13c)][_0x456597(0x135)](_0x5d4453=>_0x5d4453[_0x456597(0x140)][_0x456597(0x139)]==_0x53f87e[_0x456597(0x139)]);_0x3489a4||(_0x3489a4=new _0xafb1a4(this[_0x456597(0x147)],{'part':_0x53f87e,'areActionsDisabled':this[_0x456597(0x13d)]}),_0x3489a4[_0x456597(0x127)](..._0x59c989)['to'](this),this[_0x456597(0x13c)][_0x456597(0x132)](_0x3489a4),this[_0x456597(0x143)]=!0x0),0x2===this[_0x456597(0x13c)][_0x456597(0x126)]&&this[_0x456597(0x13c)][_0x456597(0x141)][_0x456597(0x151)](!0x0),_0x3489a4[_0x456597(0x151)](this[_0x456597(0x13c)][_0x456597(0x126)]>0x1),await _0x3489a4[_0x456597(0x14b)]({'part':_0x53f87e,'renderingStrategy':_0x4abdbb,'abortSignal':_0x269506});});return _0x4e7625?.[_0x2e73af(0x145)](_0x2e73af(0x155),()=>{const _0x5ed4bf=_0x2e73af;this[_0x5ed4bf(0x125)][_0x5ed4bf(0x155)]();}),this[_0x2e73af(0x125)][_0x2e73af(0x157)];}[_0x3e2660(0x138)](_0x56c074,_0x147252){const _0x444603=_0x3e2660;this[_0x444603(0x13c)][_0x444603(0x128)](_0x56c074)[_0x444603(0x13f)]=_0x147252,this[_0x444603(0x143)]=_0x444603(0x152)==_0x147252||Array[_0x444603(0x156)](this[_0x444603(0x13c)])[_0x444603(0x133)](_0x5d7af0=>_0x444603(0x152)==_0x5d7af0[_0x444603(0x13f)]);}[_0x3e2660(0x14f)](_0x34e4a1){const _0x1714e0=_0x3e2660;return this[_0x1714e0(0x13c)][_0x1714e0(0x128)](_0x34e4a1);}[_0x3e2660(0x124)](){const _0x51fb1d=_0x3e2660,_0x52ffea=!this[_0x51fb1d(0x13c)][_0x51fb1d(0x135)](_0x5c3421=>!!_0x5c3421[_0x51fb1d(0x140)][_0x51fb1d(0x13b)]),_0x233e18=!!this[_0x51fb1d(0x13c)][_0x51fb1d(0x135)](_0x10a1cd=>!_0x10a1cd[_0x51fb1d(0x140)][_0x51fb1d(0x13b)]);this[_0x51fb1d(0x131)][_0x51fb1d(0x142)]=_0x233e18,_0x52ffea?this[_0x51fb1d(0x131)][_0x51fb1d(0x150)](_0x2152ab(this[_0x51fb1d(0x147)],_0x51fb1d(0x144))):this[_0x51fb1d(0x131)][_0x51fb1d(0x150)](_0x2152ab(this[_0x51fb1d(0x147)],_0x51fb1d(0x15b)));}get[_0x3e2660(0x13a)](){const _0x3ac3fa=_0x3e2660;return!!this[_0x3ac3fa(0x13c)][_0x3ac3fa(0x135)](_0x2c5bcb=>!!_0x2c5bcb[_0x3ac3fa(0x140)][_0x3ac3fa(0x13b)]);}}
@@ -0,0 +1,80 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module ai/aicore/ui/aisuggestioncontainer/aisuggestioncontainerview
7
+ */
8
+ import { type Locale } from 'ckeditor5/src/utils.js';
9
+ import { View, type ViewCollection, ButtonView } from 'ckeditor5/src/ui.js';
10
+ import { type AIMiniToolbarConfig } from './aiminitoolbarview.js';
11
+ import { type AISuggestionContentPartDefinition } from '../../utils/getsuggestionpartsfromreply.js';
12
+ import { type AIContentRenderingStrategy } from './aisuggestioncontentpartview.js';
13
+ import { type AIReplySource } from '../../model/aireply.js';
14
+ /**
15
+ * This view displays a suggestion from the AI.
16
+ *
17
+ * It comes with a header with a switch button to show/hide the changes.
18
+ *
19
+ * It also has a body view and a changes views that are toggled by the toggle button.
20
+ *
21
+ * It comes with a mini toolbar with copy, like and dislike buttons.
22
+ */
23
+ export declare class AISuggestionContainerView extends View<HTMLDivElement> {
24
+ /**
25
+ * Observable property that indicates whether the view is in loading state.
26
+ * When true, all interactive elements should be disabled.
27
+ */
28
+ isLoading: boolean;
29
+ /**
30
+ * @inheritDoc
31
+ */
32
+ constructor(locale: Locale, { showDiff, areActionsDisabled, miniToolbarConfig, hideHeader, showLoader }: AISuggestionContainerViewOptions);
33
+ updateContent(options: {
34
+ parts: Array<AISuggestionContentPartDefinition>;
35
+ renderingStrategy: AIContentRenderingStrategy;
36
+ abortSignal?: AbortSignal;
37
+ }): Promise<void>;
38
+ updateSources(sources: Array<AIReplySource>): void;
39
+ /**
40
+ * Shows the loader if it exists.
41
+ */
42
+ showLoader(): void;
43
+ /**
44
+ * Hides the loader if it exists.
45
+ */
46
+ hideLoader(): void;
47
+ /**
48
+ * Marks the suggestion container as done.
49
+ */
50
+ markAsDone(): void;
51
+ /**
52
+ * Sets the view to loading state, disabling all interactive elements.
53
+ */
54
+ setLoading(): void;
55
+ /**
56
+ * Clears the loading state, enabling all interactive elements.
57
+ */
58
+ clearLoading(): void;
59
+ }
60
+ export type AISuggestionContainerToggleSuggestionDisplayModeEvent = {
61
+ name: 'toggleSuggestionDisplayMode';
62
+ args: [{
63
+ showDiff: boolean;
64
+ }];
65
+ };
66
+ export type AISuggestionContainerViewOptions = {
67
+ showDiff: boolean;
68
+ areActionsDisabled: boolean;
69
+ miniToolbarConfig?: AIMiniToolbarConfig;
70
+ hideHeader?: boolean;
71
+ showLoader?: boolean;
72
+ };
73
+ export declare class AIWebSourcesView extends View {
74
+ children: ViewCollection;
75
+ isVisible: boolean;
76
+ constructor(locale: Locale);
77
+ }
78
+ export declare class AIWebSourceView extends ButtonView {
79
+ constructor(locale: Locale, source: AIReplySource);
80
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x3781e0=_0xc830;function _0xc830(_0x459f5a,_0x2be2df){const _0x5972e8=_0x5972();return _0xc830=function(_0xc8302d,_0x46874c){_0xc8302d=_0xc8302d-0x1a3;let _0x5480ca=_0x5972e8[_0xc8302d];return _0x5480ca;},_0xc830(_0x459f5a,_0x2be2df);}(function(_0x345971,_0x21ccc0){const _0xa852d4=_0xc830,_0x29c0d9=_0x345971();while(!![]){try{const _0x21e40c=-parseInt(_0xa852d4(0x1a6))/0x1+parseInt(_0xa852d4(0x1a7))/0x2+-parseInt(_0xa852d4(0x1da))/0x3+-parseInt(_0xa852d4(0x1d2))/0x4+-parseInt(_0xa852d4(0x1cf))/0x5*(-parseInt(_0xa852d4(0x1b2))/0x6)+-parseInt(_0xa852d4(0x1c2))/0x7+parseInt(_0xa852d4(0x1db))/0x8;if(_0x21e40c===_0x21ccc0)break;else _0x29c0d9['push'](_0x29c0d9['shift']());}catch(_0x5034b9){_0x29c0d9['push'](_0x29c0d9['shift']());}}}(_0x5972,0x63c5c));import{IconWeb as _0x52c1fa}from'@ckeditor/ckeditor5-icons';import{View as _0x885de5,ButtonView as _0x189e46,IconView as _0x2518ff}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x3bf0ec}from'./aiminitoolbarview.js';function _0x5972(){const _0x495f7d=['add','878101FQnpzM','div','bind','span','miniToolbarView','extendTemplate','isLoaderVisible','ck-ai-suggestion__loader','isLoading','isShowChangesToggleVisible','ck-rounded-corners','delegate','small','22565rRrLcG','showLoader','bindTemplate','1734008xJgRWP','locale','map','_createLoaderView','fire','headerView','ck-hidden','bodyView','1383612HCqvPL','2713112MNJMXJ','Sources','ck-ai-web-sources__header','toggleSuggestionDisplayMode','updateContentParts','toggleShowChanges','161729MecnIb','1076706ODtaLD','ck-ai-web-sources','ck-ai-suggestion__loader-text','content','sourcesView','setTemplate','ck\x20ck-ai-web-source','hasNonEmptyParts','areChangesVisible','AI_CHAT_IS_WRITING','loaderView','948KGfyOa','set','updateContent','markAsDone','setLoading','children','isVisible','createCollection','clearLoading','title','updateSources','hideLoader','addMany','ck-ai-suggestion__container','isOn'];_0x5972=function(){return _0x495f7d;};return _0x5972();}import{AISuggestionHeaderView as _0x4ade9f}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x3f4b01}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0xa6fd52}from'../../utils/eventnames.js';import{AISpinnerView as _0x43974a}from'../aispinner.js';import{getTranslation as _0x788863}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x885de5{[_0x3781e0(0x1d9)];[_0x3781e0(0x1b7)];[_0x3781e0(0x1d7)];[_0x3781e0(0x1c6)];[_0x3781e0(0x1b1)];[_0x3781e0(0x1ab)];constructor(_0x4964bf,{showDiff:_0x4739fb,areActionsDisabled:_0x61a197,miniToolbarConfig:_0x1c57cd,hideHeader:_0xb34e1c,showLoader:_0x29a837}){const _0x6ae89d=_0x3781e0;super(_0x4964bf),this[_0x6ae89d(0x1b3)](_0x6ae89d(0x1af),!0x1),this[_0x6ae89d(0x1b3)](_0x6ae89d(0x1c8),!!_0x29a837),this[_0x6ae89d(0x1b3)](_0x6ae89d(0x1ca),!0x1),this[_0x6ae89d(0x1b7)]=this[_0x6ae89d(0x1b9)](),_0xb34e1c||(this[_0x6ae89d(0x1d7)]=new _0x4ade9f(_0x4964bf,{'showDiff':_0x4739fb}),this[_0x6ae89d(0x1d7)]['on'](_0x6ae89d(0x1a5),(_0x55fbed,_0x3797b8)=>{const _0x804f19=_0x6ae89d;this[_0x804f19(0x1af)]=_0x3797b8[_0x804f19(0x1c0)],this[_0x804f19(0x1d6)](_0x804f19(0x1a3),{'showDiff':_0x3797b8[_0x804f19(0x1c0)]});}),this[_0x6ae89d(0x1b7)][_0x6ae89d(0x1c1)](this[_0x6ae89d(0x1d7)])),this[_0x6ae89d(0x1d9)]=new _0x3f4b01(_0x4964bf,{'areActionsDisabled':_0x61a197}),this[_0x6ae89d(0x1d9)][_0x6ae89d(0x1cd)](..._0xa6fd52)['to'](this),this[_0x6ae89d(0x1d9)][_0x6ae89d(0x1c7)]({'attributes':{'class':[this[_0x6ae89d(0x1d1)]['if'](_0x6ae89d(0x1c8),_0x6ae89d(0x1d8))]}}),this[_0x6ae89d(0x1c6)]=new _0x3bf0ec(_0x4964bf,_0x1c57cd,_0x4739fb),this[_0x6ae89d(0x1c6)][_0x6ae89d(0x1cd)](..._0xa6fd52)['to'](this),this[_0x6ae89d(0x1c6)]['on'](_0x6ae89d(0x1a5),(_0x341b01,_0x5b3b4e)=>{const _0x274ba7=_0x6ae89d;this[_0x274ba7(0x1af)]=_0x5b3b4e,this[_0x274ba7(0x1d6)](_0x274ba7(0x1a3),{'showDiff':_0x5b3b4e});}),this[_0x6ae89d(0x1c6)][_0x6ae89d(0x1c4)](_0x6ae89d(0x1ca))['to'](this),this[_0x6ae89d(0x1b7)][_0x6ae89d(0x1c1)](this[_0x6ae89d(0x1d9)]),this[_0x6ae89d(0x1b7)][_0x6ae89d(0x1c1)](this[_0x6ae89d(0x1c6)]),this[_0x6ae89d(0x1ab)]=new AIWebSourcesView(this[_0x6ae89d(0x1d3)]),this[_0x6ae89d(0x1b7)][_0x6ae89d(0x1c1)](this[_0x6ae89d(0x1ab)]),_0x29a837&&(this[_0x6ae89d(0x1b1)]=this[_0x6ae89d(0x1d5)](),this[_0x6ae89d(0x1b7)][_0x6ae89d(0x1c1)](this[_0x6ae89d(0x1b1)])),this[_0x6ae89d(0x1ac)]({'tag':_0x6ae89d(0x1c3),'attributes':{'class':['ck',_0x6ae89d(0x1bf),_0x6ae89d(0x1cc)]},'children':this[_0x6ae89d(0x1b7)]});}async[_0x3781e0(0x1b4)](_0x11eba3){const _0x48b572=_0x3781e0;await this[_0x48b572(0x1d9)][_0x48b572(0x1a4)](_0x11eba3);}[_0x3781e0(0x1bc)](_0x59d752){const _0x51a04a=_0x3781e0;this[_0x51a04a(0x1ab)][_0x51a04a(0x1b7)][_0x51a04a(0x1be)](_0x59d752[_0x51a04a(0x1d4)](_0x25e20f=>new AIWebSourceView(this[_0x51a04a(0x1d3)],_0x25e20f))),this[_0x51a04a(0x1ab)][_0x51a04a(0x1b8)]=!0x0;}[_0x3781e0(0x1d0)](){const _0x1d450f=_0x3781e0;this[_0x1d450f(0x1b1)]&&(this[_0x1d450f(0x1c8)]=!0x0);}[_0x3781e0(0x1bd)](){const _0xbea785=_0x3781e0;this[_0xbea785(0x1b1)]&&(this[_0xbea785(0x1c8)]=!0x1);}[_0x3781e0(0x1b5)](){const _0x3f6a97=_0x3781e0;this[_0x3f6a97(0x1d9)][_0x3f6a97(0x1b5)](),this[_0x3f6a97(0x1d7)]&&(this[_0x3f6a97(0x1d7)][_0x3f6a97(0x1cb)]=this[_0x3f6a97(0x1d9)][_0x3f6a97(0x1ae)]);}[_0x3781e0(0x1b6)](){const _0xb1fdd9=_0x3781e0;this[_0xb1fdd9(0x1ca)]=!0x0;}[_0x3781e0(0x1ba)](){const _0x3c54e5=_0x3781e0;this[_0x3c54e5(0x1ca)]=!0x1;}[_0x3781e0(0x1d5)](){const _0x38449d=_0x3781e0,_0x69c4a1=new _0x885de5(this[_0x38449d(0x1d3)]),_0x3fa829=new _0x43974a(_0x38449d(0x1ce));_0x3fa829[_0x38449d(0x1b8)]=!0x0;const _0x452dfd=new _0x885de5(this[_0x38449d(0x1d3)]);return _0x452dfd[_0x38449d(0x1ac)]({'tag':_0x38449d(0x1c5),'attributes':{'class':['ck',_0x38449d(0x1a9)]},'children':[_0x788863(this[_0x38449d(0x1d3)],_0x38449d(0x1b0))]}),_0x69c4a1[_0x38449d(0x1ac)]({'tag':_0x38449d(0x1c3),'attributes':{'class':['ck',_0x38449d(0x1c9),this[_0x38449d(0x1d1)]['if'](_0x38449d(0x1c8),_0x38449d(0x1d8),_0x3783b5=>!_0x3783b5)]},'children':[_0x3fa829,_0x452dfd]}),_0x69c4a1;}}export class AIWebSourcesView extends _0x885de5{[_0x3781e0(0x1b7)];constructor(_0x54c552){const _0x13fdb6=_0x3781e0;super(_0x54c552),this[_0x13fdb6(0x1b7)]=this[_0x13fdb6(0x1b9)](),this[_0x13fdb6(0x1b3)](_0x13fdb6(0x1b8),!0x1),this[_0x13fdb6(0x1ac)]({'tag':_0x13fdb6(0x1c3),'attributes':{'class':['ck',_0x13fdb6(0x1a8),this[_0x13fdb6(0x1d1)]['if'](_0x13fdb6(0x1b8),_0x13fdb6(0x1d8),_0x3a21d6=>!_0x3a21d6)]},'children':this[_0x13fdb6(0x1b7)]});const _0x320c95=new _0x885de5(this[_0x13fdb6(0x1d3)]),_0x199b60=new _0x2518ff();_0x199b60[_0x13fdb6(0x1aa)]=_0x52c1fa,_0x320c95[_0x13fdb6(0x1ac)]({'tag':_0x13fdb6(0x1c3),'attributes':{'class':['ck',_0x13fdb6(0x1dd)]},'children':[_0x199b60,{'tag':_0x13fdb6(0x1c5),'children':[{'text':_0x13fdb6(0x1dc)}]}]}),this[_0x13fdb6(0x1b7)][_0x13fdb6(0x1c1)](_0x320c95);}}export class AIWebSourceView extends _0x189e46{constructor(_0x1358b0,_0x11726e){const _0x4d6b3d=_0x3781e0;super(_0x1358b0),this[_0x4d6b3d(0x1b3)]({'icon':_0x52c1fa,'label':_0x11726e[_0x4d6b3d(0x1bb)],'tooltip':_0x11726e[_0x4d6b3d(0x1bb)],'class':[_0x4d6b3d(0x1ad)],'withText':!0x0});}}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module ai/aicore/ui/suggestioncontainer/aisuggestioncontentpartview
7
+ */
8
+ import { type Locale } from 'ckeditor5/src/utils.js';
9
+ import { View } from 'ckeditor5/src/ui.js';
10
+ import { type AISuggestionContentPartDefinition } from '../../utils/getsuggestionpartsfromreply.js';
11
+ /**
12
+ * A view that displays a single part in the suggestion content.
13
+ */
14
+ export declare class AISuggestionBodyViewContentPartView extends View<HTMLDivElement> {
15
+ partDefinition: AISuggestionContentPartDefinition;
16
+ state: string;
17
+ isEnabled: boolean;
18
+ /**
19
+ * Controls the visibility of the content part.
20
+ */
21
+ isVisible: boolean;
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ constructor(locale: Locale, { part, areActionsDisabled }: {
26
+ part: AISuggestionContentPartDefinition;
27
+ areActionsDisabled: boolean;
28
+ });
29
+ updateContent({ part, renderingStrategy, abortSignal }: {
30
+ part: AISuggestionContentPartDefinition;
31
+ renderingStrategy: AIContentRenderingStrategy;
32
+ abortSignal?: AbortSignal;
33
+ }): Promise<void>;
34
+ /**
35
+ * Toggles the visibility of the part header. For instance, the header does not make sense for an only part in the suggestion.
36
+ */
37
+ toggleHeader(shouldBeVisible: boolean): void;
38
+ }
39
+ export type AIContentRenderingStrategy = 'streaming' | 'static';
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x3afeeb=_0x292e;(function(_0x19aa45,_0x565417){const _0xc7d2b9=_0x292e,_0x1e86d1=_0x19aa45();while(!![]){try{const _0x256443=parseInt(_0xc7d2b9(0x117))/0x1+parseInt(_0xc7d2b9(0x14a))/0x2+-parseInt(_0xc7d2b9(0x13c))/0x3+parseInt(_0xc7d2b9(0x131))/0x4*(parseInt(_0xc7d2b9(0x15b))/0x5)+parseInt(_0xc7d2b9(0x157))/0x6*(-parseInt(_0xc7d2b9(0x15f))/0x7)+parseInt(_0xc7d2b9(0x142))/0x8*(parseInt(_0xc7d2b9(0x13d))/0x9)+parseInt(_0xc7d2b9(0x138))/0xa*(-parseInt(_0xc7d2b9(0x159))/0xb);if(_0x256443===_0x565417)break;else _0x1e86d1['push'](_0x1e86d1['shift']());}catch(_0x4e3396){_0x1e86d1['push'](_0x1e86d1['shift']());}}}(_0x4daa,0x34164));import{View as _0x201f38,IconView as _0x2242af,ToolbarView as _0x26748d,ButtonView as _0x1e2aaa}from'ckeditor5/src/ui.js';import{IconAddComment as _0x4b8227,IconDocumentWithLoupe as _0xc52f63,IconDocumentWithCheckmark as _0x200fba,IconDocumentWithCross as _0xbe953,IconRemove as _0x2115a3,IconThreeStars as _0x54ad3c}from'ckeditor5/src/icons.js';import{HTMLStreamer as _0x455ff6}from'../../utils/htmlstreamer.js';function _0x4daa(){const _0x28c4e3=['AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','6OYNyzd','AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT','1008942gFZoZz','insertSuggestion','609965uOUJSe','execute','remove','div','2911139Heugbf','276346kNQGiL','isVisible','ck-ai-suggestion__body__content-part__title','items','element','children','AI_SUGGESTION_CONTENT_PART_TITLE','ck-ai-suggestion__body__content-part','contentView','extendTemplate','bind','mouseOverSuggestion','state','index','accepted','bindTemplate','fire','rejectSuggestion','stream','toString','delegate','addMany','set','innerHTML','ck-hidden','AI_SUGGESTION_CONTENT_PART_REJECTED','4OaLycJ','ck-ai-suggestion__body__content-part__icon-rejected','has','_iconStateRejected','isEnabled','toggleHeader','htmlStreamer','10LmeplR','pending','add','updateContent','70962opaRWF','9DYbucQ','rejected','AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION','ck-ai-suggestion__body__content-part__title__label','ck-ai-suggestion__body__content-part_active','2187512fatIMd','AI_SUGGESTION_CONTENT_PART_DELETE','ck-ai-suggestion__body__content-part__content','mouseLeaveSuggestion','_toolbarView','change:state','showChangeInText','content','145646xijxfC','createCollection','ck-ai-suggestion__body__content-part__icon-accepted','span','ck-ai-suggestion__body__content-part_','animation:\x20ck-html-streamer-fade-in\x20.5s','setTemplate','partDefinition','ck-ai-suggestion__body__content-part__icon-title','headerView','streaming','_iconStateAccepted'];_0x4daa=function(){return _0x28c4e3;};return _0x4daa();}import{getTranslation as _0x190e6f}from'../../utils/common-translations.js';import{serialize as _0x3fd462}from'../../utils/htmlparser.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x586b1d}from'../../utils/eventnames.js';export class AISuggestionBodyViewContentPartView extends _0x201f38{[_0x3afeeb(0x137)];[_0x3afeeb(0x11c)];[_0x3afeeb(0x153)];[_0x3afeeb(0x11f)];constructor(_0x419659,{part:_0x302c07,areActionsDisabled:_0x1f5b8e}){const _0x1d74e4=_0x3afeeb;super(_0x419659),this[_0x1d74e4(0x12d)](_0x1d74e4(0x151),_0x302c07),this[_0x1d74e4(0x12d)](_0x1d74e4(0x123),_0x1d74e4(0x139)),this[_0x1d74e4(0x12d)](_0x1d74e4(0x118),!0x1),this[_0x1d74e4(0x121)](_0x1d74e4(0x135))['to'](this,_0x1d74e4(0x123),_0x1ba300=>_0x1d74e4(0x139)==_0x1ba300&&!_0x1f5b8e),this[_0x1d74e4(0x11c)]=this[_0x1d74e4(0x14b)](),this[_0x1d74e4(0x137)]=new _0x455ff6({'textNodeStyle':_0x1d74e4(0x14f),'delay':0x14}),this[_0x1d74e4(0x153)]=new An(_0x419659,_0x302c07),this[_0x1d74e4(0x153)][_0x1d74e4(0x121)](_0x1d74e4(0x151))['to'](this),this[_0x1d74e4(0x153)][_0x1d74e4(0x121)](_0x1d74e4(0x135))['to'](this),this[_0x1d74e4(0x153)][_0x1d74e4(0x121)](_0x1d74e4(0x123))['to'](this),this[_0x1d74e4(0x153)][_0x1d74e4(0x12b)](..._0x586b1d)['to'](this);const _0x499210=this[_0x1d74e4(0x126)];this[_0x1d74e4(0x11f)]=new _0x201f38(),this[_0x1d74e4(0x11f)][_0x1d74e4(0x150)]({'tag':_0x1d74e4(0x15e),'attributes':{'class':['ck',_0x1d74e4(0x144)]}}),this[_0x1d74e4(0x11c)][_0x1d74e4(0x12c)]([this[_0x1d74e4(0x11f)]]),this[_0x1d74e4(0x150)]({'tag':_0x1d74e4(0x15e),'attributes':{'class':['ck',_0x1d74e4(0x11e),_0x499210['to'](_0x1d74e4(0x123),_0x5dee9c=>_0x1d74e4(0x14e)+_0x5dee9c),_0x499210['to'](_0x1d74e4(0x135),_0x3e9b0f=>_0x3e9b0f?_0x1d74e4(0x141):void 0x0),_0x499210['if'](_0x1d74e4(0x118),_0x1d74e4(0x12f),_0x4d3657=>!_0x4d3657)]},'children':this[_0x1d74e4(0x11c)],'on':{'mouseenter':_0x499210['to'](()=>{const _0x52a21c=_0x1d74e4;this[_0x52a21c(0x135)]&&this[_0x52a21c(0x127)](_0x52a21c(0x122),{'index':_0x302c07[_0x52a21c(0x124)]});}),'mouseleave':_0x499210['to'](()=>{const _0xb28c64=_0x1d74e4;this[_0xb28c64(0x135)]&&this[_0xb28c64(0x127)](_0xb28c64(0x145),{'index':_0x302c07[_0xb28c64(0x124)]});})}});}async[_0x3afeeb(0x13b)]({part:_0x22a8dc,renderingStrategy:_0x5107e9,abortSignal:_0x5d9a88}){const _0x5d9867=_0x3afeeb;this[_0x5d9867(0x151)]=_0x22a8dc,this[_0x5d9867(0x118)]=!!this[_0x5d9867(0x151)][_0x5d9867(0x149)],this[_0x5d9867(0x151)][_0x5d9867(0x149)]&&(_0x5d9867(0x154)===_0x5107e9?await this[_0x5d9867(0x137)][_0x5d9867(0x129)]({'document':this[_0x5d9867(0x151)][_0x5d9867(0x149)],'targetElement':this[_0x5d9867(0x11f)][_0x5d9867(0x11b)],'abortSignal':_0x5d9a88}):this[_0x5d9867(0x11f)][_0x5d9867(0x11b)][_0x5d9867(0x12e)]=_0x3fd462(this[_0x5d9867(0x151)][_0x5d9867(0x149)]));}[_0x3afeeb(0x136)](_0x244fc2){const _0x18a8cc=_0x3afeeb;_0x244fc2?this[_0x18a8cc(0x11c)][_0x18a8cc(0x133)](this[_0x18a8cc(0x153)])||this[_0x18a8cc(0x11c)][_0x18a8cc(0x13a)](this[_0x18a8cc(0x153)],0x0):this[_0x18a8cc(0x11c)][_0x18a8cc(0x133)](this[_0x18a8cc(0x153)])&&this[_0x18a8cc(0x11c)][_0x18a8cc(0x15d)](this[_0x18a8cc(0x153)]);}}function _0x292e(_0x383042,_0x1fe378){const _0x4daadb=_0x4daa();return _0x292e=function(_0x292ec8,_0x28b9dd){_0x292ec8=_0x292ec8-0x117;let _0x2bb6ea=_0x4daadb[_0x292ec8];return _0x2bb6ea;},_0x292e(_0x383042,_0x1fe378);}class An extends _0x201f38{[_0x3afeeb(0x11c)];[_0x3afeeb(0x146)];[_0x3afeeb(0x155)];[_0x3afeeb(0x134)];constructor(_0x424314,_0xd46687){const _0xef7de0=_0x3afeeb;super(_0x424314),this[_0xef7de0(0x12d)](_0xef7de0(0x151),_0xd46687),this[_0xef7de0(0x12d)](_0xef7de0(0x135),!0x0),this[_0xef7de0(0x12d)](_0xef7de0(0x123),_0xef7de0(0x139));const _0x14676e=new _0x2242af();_0x14676e[_0xef7de0(0x149)]=_0x54ad3c,_0x14676e[_0xef7de0(0x120)]({'attributes':{'class':[_0xef7de0(0x152)]}});const _0x346f14=new _0x1e2aaa(_0x424314);_0x346f14[_0xef7de0(0x12d)]({'label':_0x190e6f(_0x424314,_0xef7de0(0x158)),'tooltip':!0x0,'withText':!0x1,'icon':_0xc52f63}),_0x346f14[_0xef7de0(0x121)](_0xef7de0(0x135))['to'](this),_0x346f14['on'](_0xef7de0(0x15c),()=>{const _0x17d85d=_0xef7de0;this[_0x17d85d(0x127)](_0x17d85d(0x148),{'index':_0xd46687[_0x17d85d(0x124)]});});const _0x152885=new _0x1e2aaa(_0x424314);_0x152885[_0xef7de0(0x12d)]({'label':_0x190e6f(_0x424314,_0xef7de0(0x13f)),'tooltip':!0x0,'withText':!0x1,'icon':_0x4b8227}),_0x152885[_0xef7de0(0x121)](_0xef7de0(0x135))['to'](this),_0x152885['on'](_0xef7de0(0x15c),()=>{const _0x22a68e=_0xef7de0;this[_0x22a68e(0x127)](_0x22a68e(0x15a),{'index':_0xd46687[_0x22a68e(0x124)]});});const _0x26bd08=new _0x1e2aaa(_0x424314);_0x26bd08[_0xef7de0(0x12d)]({'label':_0x190e6f(_0x424314,_0xef7de0(0x143)),'tooltip':!0x0,'withText':!0x1,'icon':_0x2115a3}),_0x26bd08['on'](_0xef7de0(0x15c),()=>{const _0x5a7465=_0xef7de0;this[_0x5a7465(0x127)](_0x5a7465(0x128),{'index':_0xd46687[_0x5a7465(0x124)]});}),_0x26bd08[_0xef7de0(0x121)](_0xef7de0(0x135))['to'](this),this[_0xef7de0(0x146)]=new _0x26748d(_0x424314),this[_0xef7de0(0x146)][_0xef7de0(0x11a)][_0xef7de0(0x12c)]([_0x346f14,_0x152885,_0x26bd08]),this[_0xef7de0(0x155)]=new _0x2242af(),this[_0xef7de0(0x155)][_0xef7de0(0x149)]=_0x200fba,this[_0xef7de0(0x155)][_0xef7de0(0x120)]({'attributes':{'class':[_0xef7de0(0x14c)],'data-cke-tooltip-text':_0x190e6f(_0x424314,_0xef7de0(0x156)),'data-cke-tooltip-position':'n'}}),this[_0xef7de0(0x134)]=new _0x2242af(),this[_0xef7de0(0x134)][_0xef7de0(0x149)]=_0xbe953,this[_0xef7de0(0x134)][_0xef7de0(0x120)]({'attributes':{'class':[_0xef7de0(0x132)],'data-cke-tooltip-text':_0x190e6f(_0x424314,_0xef7de0(0x130)),'data-cke-tooltip-position':'n'}});const _0x57343b=new _0x201f38(_0x424314);_0x57343b[_0xef7de0(0x150)]({'tag':_0xef7de0(0x14d),'attributes':{'class':['ck',_0xef7de0(0x140)]},'children':[_0x190e6f(_0x424314,_0xef7de0(0x11d),(_0xd46687[_0xef7de0(0x124)]+0x1)[_0xef7de0(0x12a)]())]}),this[_0xef7de0(0x11c)]=this[_0xef7de0(0x14b)](),this[_0xef7de0(0x11c)][_0xef7de0(0x12c)]([_0x14676e,_0x57343b,this[_0xef7de0(0x146)]]),this[_0xef7de0(0x150)]({'tag':_0xef7de0(0x15e),'attributes':{'class':['ck',_0xef7de0(0x119)]},'children':this[_0xef7de0(0x11c)]}),this['on'](_0xef7de0(0x147),(_0x4a2292,_0x4c277c,_0x5c1715,_0x5b760f)=>{const _0x4d8a4b=_0xef7de0;switch(_0x5b760f){case _0x4d8a4b(0x139):this[_0x4d8a4b(0x11c)][_0x4d8a4b(0x15d)](this[_0x4d8a4b(0x146)]);break;case _0x4d8a4b(0x125):this[_0x4d8a4b(0x11c)][_0x4d8a4b(0x15d)](this[_0x4d8a4b(0x155)]);break;case _0x4d8a4b(0x13e):this[_0x4d8a4b(0x11c)][_0x4d8a4b(0x15d)](this[_0x4d8a4b(0x134)]);}switch(_0x5c1715){case _0x4d8a4b(0x139):this[_0x4d8a4b(0x11c)][_0x4d8a4b(0x13a)](this[_0x4d8a4b(0x146)]);break;case _0x4d8a4b(0x125):this[_0x4d8a4b(0x11c)][_0x4d8a4b(0x13a)](this[_0x4d8a4b(0x155)]);break;case _0x4d8a4b(0x13e):this[_0x4d8a4b(0x11c)][_0x4d8a4b(0x13a)](this[_0x4d8a4b(0x134)]);}});}}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module ai/acore/ui/aisuggestioncontainer/aisuggestionheaderview
7
+ */
8
+ import { type Locale } from 'ckeditor5/src/utils.js';
9
+ import { ButtonView, View } from 'ckeditor5/src/ui.js';
10
+ /**
11
+ * The header of the suggestion container.
12
+ *
13
+ * It contains a title, a toggle button to show/hide the changes and an icon.
14
+ */
15
+ export declare class AISuggestionHeaderView extends View<HTMLDivElement> {
16
+ /**
17
+ * Specifies whether the show changes toggle should be visible or not.
18
+ */
19
+ isShowChangesToggleVisible: boolean;
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ constructor(locale: Locale, options: {
24
+ showDiff: boolean;
25
+ showHeader?: boolean;
26
+ });
27
+ }
28
+ export declare class ShowChangesToggleView extends ButtonView {
29
+ /**
30
+ * @inheritDoc
31
+ */
32
+ render(): void;
33
+ }
34
+ export type AISuggestionHeaderToggleShowChangesEvent = {
35
+ name: 'toggleShowChanges';
36
+ args: [{
37
+ isOn: boolean;
38
+ }];
39
+ };
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x1207fd=_0x3b41;(function(_0x29dd66,_0x4952cd){const _0x317fed=_0x3b41,_0x3ffdd4=_0x29dd66();while(!![]){try{const _0xa824cc=-parseInt(_0x317fed(0x209))/0x1*(parseInt(_0x317fed(0x203))/0x2)+-parseInt(_0x317fed(0x1fd))/0x3*(-parseInt(_0x317fed(0x201))/0x4)+parseInt(_0x317fed(0x20d))/0x5*(parseInt(_0x317fed(0x1ee))/0x6)+parseInt(_0x317fed(0x200))/0x7+parseInt(_0x317fed(0x202))/0x8*(-parseInt(_0x317fed(0x1f3))/0x9)+parseInt(_0x317fed(0x1f6))/0xa*(parseInt(_0x317fed(0x206))/0xb)+parseInt(_0x317fed(0x1f9))/0xc*(-parseInt(_0x317fed(0x20c))/0xd);if(_0xa824cc===_0x4952cd)break;else _0x3ffdd4['push'](_0x3ffdd4['shift']());}catch(_0x2077a9){_0x3ffdd4['push'](_0x3ffdd4['shift']());}}}(_0x399b,0x54247));import{getTranslation as _0x272028}from'../../utils/common-translations.js';function _0x399b(){const _0x46b18c=['filter','236485MLgacH','span','children','9438qUnacb','749915QkPMeq','AI_SUGGESTION_BUTTON_SHOW_CHANGES','ck-ai-suggestion__header__show-changes-toggle','ck-ai-suggestion__header','toggleShowChanges','isVisible','fire','setTemplate','remove','6tDyHfm','content','iconView','execute','ck-hidden','9onOTCB','div','isShowChangesToggleVisible','14270ywsugu','AI_SUGGESTION_HEADER_TITLE','set','11544neUNpA','icon','bind','render','116049LtKSoe','showHeader','isOn','4703517xVhKTe','56ylEPLA','4335992bninLV','2BTVFmx','add','showChangesToggleView','3531YWfZMC','showDiff'];_0x399b=function(){return _0x46b18c;};return _0x399b();}import{ButtonView as _0x11a8d5,IconView as _0x2765cd,View as _0x3faee7}from'ckeditor5/src/ui.js';function _0x3b41(_0x5f029b,_0x5dcf7b){const _0x399b86=_0x399b();return _0x3b41=function(_0x3b41e0,_0x8c665d){_0x3b41e0=_0x3b41e0-0x1ee;let _0x221e14=_0x399b86[_0x3b41e0];return _0x221e14;},_0x3b41(_0x5f029b,_0x5dcf7b);}import{IconDocument as _0x294657,IconShowChangesOff as _0x4c6aca,IconShowChangesOn as _0x59ed50}from'ckeditor5/src/icons.js';export class AISuggestionHeaderView extends _0x3faee7{[_0x1207fd(0x205)];constructor(_0x4f33b5,_0x33da27){const _0x2509ea=_0x1207fd;super(_0x4f33b5),this[_0x2509ea(0x1f8)](_0x2509ea(0x1f5),!0x0),this[_0x2509ea(0x205)]=new ShowChangesToggleView(_0x4f33b5),this[_0x2509ea(0x205)][_0x2509ea(0x1f8)]({'class':_0x2509ea(0x20f),'label':_0x272028(_0x4f33b5,_0x2509ea(0x20e)),'withText':!0x0}),this[_0x2509ea(0x205)][_0x2509ea(0x1ff)]=_0x33da27[_0x2509ea(0x207)],this[_0x2509ea(0x205)][_0x2509ea(0x1fb)](_0x2509ea(0x212))['to'](this,_0x2509ea(0x1f5)),this[_0x2509ea(0x205)][_0x2509ea(0x1fb)](_0x2509ea(0x1fa))['to'](this[_0x2509ea(0x205)],_0x2509ea(0x1ff),_0x3eeeda=>_0x3eeeda?_0x59ed50:_0x4c6aca),this[_0x2509ea(0x205)]['on'](_0x2509ea(0x1f1),()=>{const _0x7005c=_0x2509ea;this[_0x7005c(0x205)][_0x7005c(0x1ff)]=!this[_0x7005c(0x205)][_0x7005c(0x1ff)],this[_0x7005c(0x213)](_0x7005c(0x211),{'isOn':this[_0x7005c(0x205)][_0x7005c(0x1ff)]});});const _0x54de30=new _0x2765cd();_0x54de30[_0x2509ea(0x1ef)]=_0x294657,this[_0x2509ea(0x214)]({'tag':_0x2509ea(0x1f4),'attributes':{'class':['ck',_0x2509ea(0x210),!0x1===_0x33da27[_0x2509ea(0x1fe)]?_0x2509ea(0x1f2):null][_0x2509ea(0x208)](Boolean)},'children':[_0x54de30,{'tag':_0x2509ea(0x20a),'children':[_0x272028(_0x4f33b5,_0x2509ea(0x1f7))]},this[_0x2509ea(0x205)]]});}}export class ShowChangesToggleView extends _0x11a8d5{[_0x1207fd(0x1fc)](){const _0x5804fb=_0x1207fd;super[_0x5804fb(0x1fc)](),this[_0x5804fb(0x20b)][_0x5804fb(0x215)](this[_0x5804fb(0x1f0)]),this[_0x5804fb(0x20b)][_0x5804fb(0x204)](this[_0x5804fb(0x1f0)]);}}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module ai/aicore/utils/common-translations
7
+ */
8
+ import type { Locale } from 'ckeditor5/src/utils.js';
9
+ export declare function getTranslation(locale: Locale, id: string, values?: string | number | Array<string | number>): string;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export function getTranslation(_0x135246,_0x58dc54,_0x548f84){const t=_0x135246['t'];switch(_0x58dc54){case'AI_SUGGESTION_HEADER_TITLE':return t({'id':'AI_SUGGESTION_HEADER_TITLE','string':'Suggested\x20content'});case'AI_SUGGESTION_BUTTON_SHOW_CHANGES':return t({'id':'AI_SUGGESTION_BUTTON_SHOW_CHANGES','string':'Show\x20changes'});case'AI_MINI_TOOLBAR_LIKE':return t({'id':'AI_MINI_TOOLBAR_LIKE','string':'I\x20like\x20this\x20response'});case'AI_MINI_TOOLBAR_DISLIKE':return t({'id':'AI_MINI_TOOLBAR_DISLIKE','string':'I\x20don\x27t\x20like\x20this\x20response'});case'AI_MINI_TOOLBAR_COPY':return t({'id':'AI_MINI_TOOLBAR_COPY','string':'Copy\x20to\x20clipboard'});case'AI_SUGGESTION_CONTENT_PART_TITLE':return t({'id':'AI_SUGGESTION_CONTENT_PART_TITLE','string':'Suggestion\x20%0'},_0x548f84);case'AI_SUGGESTION_CONTENT_PART_REJECTED':return t({'id':'AI_SUGGESTION_CONTENT_PART_REJECTED','string':'Change\x20was\x20rejected'});case'AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED':return t({'id':'AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','string':'Change\x20is\x20already\x20applied'});case'AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT':return t({'id':'AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT','string':'Show\x20in\x20the\x20text'});case'AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION':return t({'id':'AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION','string':'Add\x20as\x20suggestion'});case'AI_SUGGESTION_CONTENT_PART_DELETE':return t({'id':'AI_SUGGESTION_CONTENT_PART_DELETE','string':'Delete'});case'AI_DISCLAIMER_TEXT':return t({'id':'AI_DISCLAIMER_TEXT','string':'AI\x20can\x20make\x20mistakes.\x20Please\x20double-check\x20responses.'});case'AI_TABS_LABEL_MAXIMIZE':return t({'id':'AI_TABS_LABEL_MAXIMIZE','string':'Maximize'});case'AI_TABS_LABEL_MINIMIZE':return t({'id':'AI_TABS_LABEL_MINIMIZE','string':'Minimize'});case'AI_CHAT_HEADING':return t({'id':'AI_CHAT_HEADING','string':'AI\x20Chat'});case'AI_CHAT_UNTITLED_CONVERSATION':return t({'id':'AI_CHAT_UNTITLED_CONVERSATION','string':'Untitled\x20conversation'});case'AI_CHAT_LABEL_NEW_CHAT':return t({'id':'AI_CHAT_LABEL_NEW_CHAT','string':'New\x20chat'});case'AI_CHAT_STOP_GENERATING':return t({'id':'AI_CHAT_STOP_GENERATING','string':'Stop\x20generating'});case'AI_CHAT_IS_WRITING':return t({'id':'AI_CHAT_IS_WRITING','string':'AI\x20is\x20writing...'});case'AI_CHAT_PROMPT_EMPTY_ERROR':return t({'id':'AI_CHAT_PROMPT_EMPTY_ERROR','string':'This\x20field\x20cannot\x20be\x20empty.'});case'AI_CHAT_LABEL_SUBMIT':return t({'id':'AI_CHAT_LABEL_SUBMIT','string':'Submit'});case'AI_CHAT_WELCOME_MESSAGE':return t({'id':'AI_CHAT_WELCOME_MESSAGE','string':'Hi,\x20I\x27m\x20your\x20AI\x20assistant.\x20Think\x20of\x20me\x20as\x20your\x20writing\x20buddy,\x20reviewer,\x20or\x20research\x20partner.\x20I\x20can\x20suggest\x20changes\x20to\x20your\x20document,\x20help\x20generate\x20ideas,\x20offer\x20feedback,\x20discuss\x20attached\x20files,\x20and\x20much\x20more!'});case'AI_CHAT_ABORTED_MESSAGE':return t({'id':'AI_CHAT_ABORTED_MESSAGE','string':'The\x20request\x20was\x20aborted.'});case'AI_CHAT_GENERIC_ERROR':return t({'id':'AI_CHAT_GENERIC_ERROR','string':'Something\x20went\x20wrong\x20while\x20processing\x20your\x20request.\x20Please\x20try\x20again.'});case'AI_CHAT_UNABLE_TO_START_CONVERSATION':return t({'id':'AI_CHAT_UNABLE_TO_START_CONVERSATION','string':'Unable\x20to\x20start\x20conversation.\x20Please\x20make\x20sure\x20you\x20are\x20online\x20and\x20try\x20again.'});case'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE':return t({'id':'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','string':'Failed\x20to\x20upload\x20files:\x20%0.\x20Please\x20try\x20again.'},_0x548f84);case'AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES':return t({'id':'AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','string':'Unable\x20to\x20load\x20resources\x20from\x20%0.\x20Please\x20try\x20again.'},_0x548f84);case'AI_CHAT_RESOURCE_LOAD_FAILED':return t({'id':'AI_CHAT_RESOURCE_LOAD_FAILED','string':'Failed\x20to\x20load\x20resource.\x20Please\x20try\x20again.'});case'AI_CHAT_CONTEXT_CURRENT_DOCUMENT':return t({'id':'AI_CHAT_CONTEXT_CURRENT_DOCUMENT','string':'Current\x20document'});case'AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT':return t({'id':'AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','string':'Remove\x20from\x20context'});case'AI_CHAT_CONTEXT_ADD_CONTEXT':return t({'id':'AI_CHAT_CONTEXT_ADD_CONTEXT','string':'Add\x20context'});case'AI_CHAT_CONTEXT_URL_LABEL':return t({'id':'AI_CHAT_CONTEXT_URL_LABEL','string':'URL'});case'AI_CHAT_CONTEXT_FILE_LABEL':return t({'id':'AI_CHAT_CONTEXT_FILE_LABEL','string':'File'});case'AI_CHAT_CONTEXT_CURRENT_CONTEXT_LABEL':return t({'id':'AI_CHAT_CONTEXT_CURRENT_CONTEXT_LABEL','string':'Current\x20context'});case'AI_CHAT_SEARCH_WEB':return t({'id':'AI_CHAT_SEARCH_WEB','string':'Web\x20search'});case'AI_CHAT_ENABLE_WEB_SEARCH':return t({'id':'AI_CHAT_ENABLE_WEB_SEARCH','string':'Enable\x20web\x20search'});case'AI_CHAT_DISABLE_WEB_SEARCH':return t({'id':'AI_CHAT_DISABLE_WEB_SEARCH','string':'Disable\x20web\x20search'});case'AI_CHAT_REASONING':return t({'id':'AI_CHAT_REASONING','string':'Reasoning'});case'AI_CHAT_ENABLE_REASONING':return t({'id':'AI_CHAT_ENABLE_REASONING','string':'Enable\x20reasoning'});case'AI_CHAT_DISABLE_REASONING':return t({'id':'AI_CHAT_DISABLE_REASONING','string':'Disable\x20reasoning'});case'AI_CHAT_COMMANDS':return t({'id':'AI_CHAT_COMMANDS','string':'Commands'});case'AI_CHAT_SEARCH_RESOURCES':return t({'id':'AI_CHAT_SEARCH_RESOURCES','string':'Search\x20resources'});case'AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT':return t({'id':'AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','string':'Back\x20to\x20context\x20options'});case'AI_CHAT_CONTEXT_URL_ADD_URL':return t({'id':'AI_CHAT_CONTEXT_URL_ADD_URL','string':'Add\x20URL'});case'AI_CHAT_CONTEXT_URL_PLACEHOLDER':return t({'id':'AI_CHAT_CONTEXT_URL_PLACEHOLDER','string':'Add\x20URL...'});case'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL':return t({'id':'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','string':'Failed\x20to\x20upload\x20URL:\x20%0.\x20Please\x20try\x20again.'},_0x548f84);case'AI_CHAT_CONTEXT_INVALID_DATA':return t({'id':'AI_CHAT_CONTEXT_INVALID_DATA','string':'Invalid\x20context\x20data\x20type\x20for\x20the\x20selected\x20resource.'});case'AI_CHAT_CONTEXT_UNSUPPORTED_TYPE':return t({'id':'AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','string':'Unsupported\x20resource\x20type.\x20Only\x20files\x20and\x20URLs\x20are\x20supported.'});case'AI_CHAT_CONTEXT_URL_EMPTY_ERROR':return t({'id':'AI_CHAT_CONTEXT_URL_EMPTY_ERROR','string':'URL\x20cannot\x20be\x20empty.'});case'AI_CHAT_CONTEXT_URL_INVALID_ERROR':return t({'id':'AI_CHAT_CONTEXT_URL_INVALID_ERROR','string':'Please\x20enter\x20a\x20valid\x20URL.'});case'AI_CHAT_FEED_LOADING_MESSAGE_REGULAR':return t({'id':'AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','string':'AI\x20is\x20preparing\x20a\x20response...'});case'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH':return t({'id':'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','string':'AI\x20is\x20searching\x20the\x20web\x20to\x20provide\x20the\x20most\x20accurate\x20answer...'});case'AI_CHAT_FEED_LOADING_MESSAGE_REASONING':return t({'id':'AI_CHAT_FEED_LOADING_MESSAGE_REASONING','string':'AI\x20is\x20performing\x20deep\x20research\x20to\x20provide\x20the\x20most\x20accurate\x20answer...'});case'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING':return t({'id':'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','string':'AI\x20is\x20performing\x20deep\x20research\x20and\x20searching\x20the\x20web\x20to\x20provide\x20the\x20most\x20accurate\x20answer...'});case'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH':return t({'id':'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','string':'Scanned\x20the\x20internet\x20for\x20insights'});case'AI_CHAT_FEED_REPLY_ITEM_USED_REASONING':return t({'id':'AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','string':'Thought\x20for\x20a\x20few\x20minutes'});case'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING':return t({'id':'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','string':'Took\x20a\x20moment\x20to\x20think\x20and\x20search\x20the\x20web'});case'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR':return t({'id':'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','string':'Ask\x20AI\x20anything...'});case'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH':return t({'id':'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','string':'Ask\x20AI\x20anything\x20(web\x20search\x20enabled)...'});case'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING':return t({'id':'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','string':'Ask\x20AI\x20anything\x20(reasoning\x20enabled)...'});case'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING':return t({'id':'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','string':'Ask\x20AI\x20anything\x20(web\x20search\x20and\x20reasoning\x20enabled)...'});case'AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT':return t({'id':'AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','string':'Show\x20change\x20in\x20text','plural':'Show\x20changes\x20in\x20text'},_0x548f84);case'AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION':return t({'id':'AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','string':'Insert\x20suggestion','plural':'Insert\x20suggestions'},_0x548f84);case'AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL':return t({'id':'AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','string':'Apply','plural':'Apply\x20all'},_0x548f84);case'AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP':return t({'id':'AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','string':'Apply\x20suggestion','plural':'Apply\x20all\x20suggestions'},_0x548f84);case'AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP':return t({'id':'AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','string':'More\x20options'},_0x548f84);case'AI_CHAT_MODEL_SELECTOR_GROUP':return t({'id':'AI_CHAT_MODEL_SELECTOR_GROUP','string':'Models'});case'AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP':return t({'id':'AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','string':'Select\x20a\x20model'});case'AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP':return t({'id':'AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','string':'Start\x20a\x20new\x20conversation\x20to\x20change\x20a\x20model'});case'AI_CHAT_CAPABILITIES_YES':return t({'id':'AI_CHAT_CAPABILITIES_YES','string':'Yes'});case'AI_CHAT_CAPABILITIES_NO':return t({'id':'AI_CHAT_CAPABILITIES_NO','string':'No'});case'AI_CHAT_CONTEXT_SOURCES_LABEL':return t({'id':'AI_CHAT_CONTEXT_SOURCES_LABEL','string':'Sources'});case'AI_CHAT_HISTORY_HEADING':return t({'id':'AI_CHAT_HISTORY_HEADING','string':'Chat\x20History'});case'AI_CHAT_HISTORY_SEARCH_LABEL':return t({'id':'AI_CHAT_HISTORY_SEARCH_LABEL','string':'Search\x20history'});case'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY':return t({'id':'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','string':'No\x20chats\x20were\x20found\x20matching\x20\x22%0\x22.'},_0x548f84);case'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY':return t({'id':'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','string':'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.'});case'AI_CHAT_HISTORY_EMPTY_MESSAGE':return t({'id':'AI_CHAT_HISTORY_EMPTY_MESSAGE','string':'Your\x20chat\x20history\x20is\x20currently\x20empty.\x20After\x20you\x20create\x20some\x20conversations,\x20you\x20will\x20be\x20able\x20to\x20revisit\x20them\x20here.'});case'AI_CHAT_HISTORY_GO_TO_CHAT_BUTTON':return t({'id':'AI_CHAT_HISTORY_GO_TO_CHAT_BUTTON','string':'Go\x20to\x20chat'});case'AI_CHAT_HISTORY_PIN_BUTTON':return t({'id':'AI_CHAT_HISTORY_PIN_BUTTON','string':'Pin'});case'AI_CHAT_HISTORY_SHOW_MORE_ITEMS':return t({'id':'AI_CHAT_HISTORY_SHOW_MORE_ITEMS','string':'Show\x20more\x20items'});case'AI_CHAT_HISTORY_EDIT_NAME':return t({'id':'AI_CHAT_HISTORY_EDIT_NAME','string':'Edit\x20name'});case'AI_CHAT_HISTORY_REMOVE':return t({'id':'AI_CHAT_HISTORY_REMOVE','string':'Remove'});case'AI_CHAT_HISTORY_REMOVE_CONFIRM':return t({'id':'AI_CHAT_HISTORY_REMOVE_CONFIRM','string':'Do\x20you\x20want\x20to\x20remove\x20this\x20chat?'});case'AI_CHAT_HISTORY_ACCEPT':return t({'id':'AI_CHAT_HISTORY_ACCEPT','string':'Accept'});case'AI_CHAT_HISTORY_CANCEL':return t({'id':'AI_CHAT_HISTORY_CANCEL','string':'Cancel'});case'AI_CHAT_HISTORY_LOADING_REMOVING':return t({'id':'AI_CHAT_HISTORY_LOADING_REMOVING','string':'Removing\x20the\x20chat...'});case'AI_CHAT_HISTORY_LOADING_RENAMING':return t({'id':'AI_CHAT_HISTORY_LOADING_RENAMING','string':'Renaming\x20the\x20chat...'});case'AI_CHAT_HISTORY_LOADING_PINNING':return t({'id':'AI_CHAT_HISTORY_LOADING_PINNING','string':'Pinning\x20the\x20chat...'});case'AI_CHAT_HISTORY_LOADING_UNPINNING':return t({'id':'AI_CHAT_HISTORY_LOADING_UNPINNING','string':'Unpinning\x20the\x20chat...'});case'AI_CHAT_HISTORY_CATEGORY_PINNED':return t({'id':'AI_CHAT_HISTORY_CATEGORY_PINNED','string':'Pinned'});case'AI_CHAT_HISTORY_CATEGORY_TODAY':return t({'id':'AI_CHAT_HISTORY_CATEGORY_TODAY','string':'Today'});case'AI_CHAT_HISTORY_CATEGORY_YESTERDAY':return t({'id':'AI_CHAT_HISTORY_CATEGORY_YESTERDAY','string':'Yesterday'});case'AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS':return t({'id':'AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','string':'Last\x2014\x20days'});case'AI_CHAT_HISTORY_CATEGORY_LATER':return t({'id':'AI_CHAT_HISTORY_CATEGORY_LATER','string':'Later'});case'AI_CHAT_HISTORY_ERROR_UPDATE_TITLE':return t({'id':'AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','string':'Sorry,\x20we\x20couldn\x27t\x20change\x20the\x20\x22%0\x22\x20chat\x20name.\x20Please\x20try\x20again\x20in\x20a\x20moment.'},_0x548f84);case'AI_CHAT_HISTORY_ERROR_UPDATE_PINNED':return t({'id':'AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','string':'Sorry,\x20we\x20couldn\x27t\x20%0\x20the\x20\x22%1\x22\x20chat.\x20Please\x20try\x20again\x20in\x20a\x20moment.'},_0x548f84);case'AI_CHAT_HISTORY_ERROR_REMOVE_ITEM':return t({'id':'AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','string':'Sorry,\x20we\x20couldn\x27t\x20delete\x20the\x20\x22%0\x22\x20chat.\x20Please\x20try\x20again\x20in\x20a\x20moment.'},_0x548f84);case'AI_CHAT_HISTORY_ERROR_LOAD_ITEMS':return t({'id':'AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','string':'Sorry,\x20we\x20couldn\x27t\x20generate\x20the\x20chat\x20history.\x20Please\x20try\x20again\x20in\x20a\x20moment.'});case'AI_CHAT_HISTORY_ERROR_GENERIC':return t({'id':'AI_CHAT_HISTORY_ERROR_GENERIC','string':'Something\x20went\x20wrong.\x20Please\x20try\x20again\x20in\x20a\x20moment.'});case'AI_CHAT_HISTORY_PIN_ACTION':return t({'id':'AI_CHAT_HISTORY_PIN_ACTION','string':'pin'});case'AI_CHAT_HISTORY_UNPIN_ACTION':return t({'id':'AI_CHAT_HISTORY_UNPIN_ACTION','string':'unpin'});case'AI_BALLOON_APPLY_BUTTON':return t({'id':'AI_BALLOON_APPLY_BUTTON','string':'Apply'});case'AI_BALLOON_SUGGEST_BUTTON':return t({'id':'AI_BALLOON_SUGGEST_BUTTON','string':'Suggest'});case'AI_BALLOON_NEXT_TOOLTIP':return t({'id':'AI_BALLOON_NEXT_TOOLTIP','string':'Next'});case'AI_BALLOON_PREVIOUS_TOOLTIP':return t({'id':'AI_BALLOON_PREVIOUS_TOOLTIP','string':'Previous'});case'AI_SUGGESTION_NO_PARTS_WARNING':return t({'id':'AI_SUGGESTION_NO_PARTS_WARNING','string':'The\x20suggestion\x20can’t\x20be\x20applied\x20to\x20the\x20editor\x20because\x20the\x20system\x20can’t\x20display\x20it\x20correctly..'});case'AI_SUGGESTION_EMPTY_PART_WARNING':return t({'id':'AI_SUGGESTION_EMPTY_PART_WARNING','string':'Some\x20suggestions\x20can’t\x20be\x20applied\x20to\x20the\x20editor\x20because\x20the\x20system\x20can’t\x20display\x20them\x20correctly.'});case'AI_ACTIONS_TRY_AGAIN':return t({'id':'AI_ACTIONS_TRY_AGAIN','string':'Try\x20again'});case'AI_MODEL_DESCRIPTION_AGENT-1':return t({'id':'AI_MODEL_DESCRIPTION_AGENT-1','string':'Automatically\x20selects\x20the\x20best\x20model\x20for\x20speed,\x20quality,\x20and\x20cost'});case'AI_MODEL_DESCRIPTION_GPT-5':return t({'id':'AI_MODEL_DESCRIPTION_GPT-5','string':'OpenAI\x27s\x20flagship\x20model\x20for\x20advanced\x20reasoning,\x20creativity,\x20and\x20complex\x20tasks'});case'AI_MODEL_DESCRIPTION_GPT-5-MINI':return t({'id':'AI_MODEL_DESCRIPTION_GPT-5-MINI','string':'A\x20lightweight\x20version\x20of\x20GPT-5\x20for\x20faster,\x20more\x20cost-efficient\x20responses'});case'AI_MODEL_DESCRIPTION_GPT-4.1':return t({'id':'AI_MODEL_DESCRIPTION_GPT-4.1','string':'OpenAI\x27s\x20model\x20for\x20reliable\x20reasoning,\x20speed,\x20and\x20versatility'});case'AI_MODEL_DESCRIPTION_GPT-4.1-MINI':return t({'id':'AI_MODEL_DESCRIPTION_GPT-4.1-MINI','string':'A\x20lighter\x20variant\x20of\x20GPT-4.1\x20that\x20balances\x20speed\x20and\x20cost\x20while\x20maintaining\x20solid\x20accuracy'});case'AI_MODEL_DESCRIPTION_CLAUDE-3-5-HAIKU':return t({'id':'AI_MODEL_DESCRIPTION_CLAUDE-3-5-HAIKU','string':'Anthropic\x27s\x20fast,\x20cost-efficient\x20model\x20for\x20simpler\x20tasks'});case'AI_MODEL_DESCRIPTION_CLAUDE-4-SONNET':return t({'id':'AI_MODEL_DESCRIPTION_CLAUDE-4-SONNET','string':'Advanced\x20model\x20with\x20strong\x20reasoning\x20and\x20reliability\x20for\x20complex\x20tasks'});case'AI_MODEL_DESCRIPTION_GEMINI-2-5-PRO':return t({'id':'AI_MODEL_DESCRIPTION_GEMINI-2-5-PRO','string':'Google\x27s\x20advanced\x20model\x20for\x20versatile\x20problem-solving\x20and\x20research'});case'AI_MODEL_DESCRIPTION_GEMINI-2-5-FLASH':return t({'id':'AI_MODEL_DESCRIPTION_GEMINI-2-5-FLASH','string':'Lightweight\x20Gemini\x20model\x20for\x20fast,\x20cost-efficient\x20interactions'});default:return _0x58dc54;}}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module ai/aicore/utils/createresizebutton
7
+ */
8
+ import type { Locale } from 'ckeditor5/src/utils.js';
9
+ import { ButtonView, type View } from 'ckeditor5/src/ui.js';
10
+ export declare function createResizeButton<T extends View & {
11
+ isMaximized: boolean;
12
+ }>(locale: Locale, view: T): ButtonView;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ (function(_0x5e1510,_0x49fd1f){const _0x3e9c0d=_0x3e84,_0xe0a0ab=_0x5e1510();while(!![]){try{const _0x5adeed=parseInt(_0x3e9c0d(0x1fd))/0x1+parseInt(_0x3e9c0d(0x1ff))/0x2*(-parseInt(_0x3e9c0d(0x208))/0x3)+-parseInt(_0x3e9c0d(0x1fa))/0x4+parseInt(_0x3e9c0d(0x1f5))/0x5+-parseInt(_0x3e9c0d(0x1fe))/0x6*(parseInt(_0x3e9c0d(0x1f8))/0x7)+parseInt(_0x3e9c0d(0x201))/0x8+parseInt(_0x3e9c0d(0x203))/0x9;if(_0x5adeed===_0x49fd1f)break;else _0xe0a0ab['push'](_0xe0a0ab['shift']());}catch(_0x5c5801){_0xe0a0ab['push'](_0xe0a0ab['shift']());}}}(_0x269c,0x6f89c));import{ButtonView as _0x24f28c}from'ckeditor5/src/ui.js';function _0x3e84(_0x3ab375,_0x1d8aa7){const _0x269c69=_0x269c();return _0x3e84=function(_0x3e8413,_0x51030b){_0x3e8413=_0x3e8413-0x1f4;let _0x296eeb=_0x269c69[_0x3e8413];return _0x296eeb;},_0x3e84(_0x3ab375,_0x1d8aa7);}function _0x269c(){const _0x1cc6c4=['196763xrKsyU','bind','1848548KHrufY','isMaximized','AI_TABS_LABEL_MINIMIZE','248658oIdRcE','102WfnbsV','2QuEXpa','set','2436656xSrhFz','AI_TABS_LABEL_MAXIMIZE','2736495QikiYW','execute','fire','isOn','icon','481266uolhuu','resizeTabs','3499885kFupbW','ck-ai-tabs__resize\x20ck-ai-button-tertiary-text','label'];_0x269c=function(){return _0x1cc6c4;};return _0x269c();}import{IconMaximize as _0x430653,IconMinimize as _0x1e2006}from'ckeditor5/src/icons.js';import{getTranslation as _0x1ab1a2}from'../../aicore/utils/common-translations.js';export function createResizeButton(_0x159ef3,_0x33bf38){const _0x100a46=_0x3e84,_0xaf7ad0=new _0x24f28c(_0x159ef3),_0x4dba62=_0x1ab1a2(_0x159ef3,_0x100a46(0x1fc)),_0x47544a=_0x1ab1a2(_0x159ef3,_0x100a46(0x202));return _0xaf7ad0[_0x100a46(0x200)]({'withText':!0x1,'icon':_0x430653,'tooltip':!0x0,'class':_0x100a46(0x1f6)}),_0xaf7ad0[_0x100a46(0x1f9)](_0x100a46(0x1f7))['to'](_0x33bf38,_0x100a46(0x1fb),_0x1dae6d=>_0x1dae6d?_0x4dba62:_0x47544a),_0xaf7ad0[_0x100a46(0x1f9)](_0x100a46(0x207))['to'](_0x33bf38,_0x100a46(0x1fb),_0x18a1c6=>_0x18a1c6?_0x1e2006:_0x430653),_0xaf7ad0[_0x100a46(0x1f9)](_0x100a46(0x206))['to'](_0x33bf38,_0x100a46(0x1fb)),_0xaf7ad0['on'](_0x100a46(0x204),()=>{const _0x500e26=_0x100a46;_0x33bf38[_0x500e26(0x205)](_0x500e26(0x1f4));}),_0xaf7ad0;}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ import { type AnyNode, type Document, type DocumentPath } from './htmlparser.js';
6
+ /**
7
+ * Represents a position in htmlparser's Document.
8
+ *
9
+ * * When the parent of the position is not a `Text`, the index represents the index of a child.
10
+ * * When the parent of the positions is a `Text`, the index represents a character in that text node.
11
+ */
12
+ export declare class DocumentPosition {
13
+ readonly parent: AnyNode;
14
+ readonly index: number;
15
+ readonly document: Document;
16
+ constructor(document: Document, parent: AnyNode, index: number);
17
+ get path(): DocumentPath;
18
+ isEqual(otherPosition: DocumentPosition): boolean;
19
+ /**
20
+ * Returns the next node in the document. It traverses both horizontally and vertically (like a walker).
21
+ */
22
+ get nextNode(): AnyNode | null;
23
+ /**
24
+ * Returns the previous node in the document. It traverses both horizontally and vertically (like a walker).
25
+ */
26
+ get previousNode(): AnyNode | null;
27
+ /**
28
+ * Returns a position nudged to the word boundary so that the position does not split a word.
29
+ *
30
+ * For instance:
31
+ * * "fo^o bar baz" nudged to "start" will return "^foo bar baz",
32
+ * * "fo^o bar baz" nudged to "end" will return "foo ^bar baz",
33
+ * * "^foo bar baz" nudged any way will return "^foo bar baz",
34
+ * * "foo ^bar baz" nudged any way will return "foo ^bar baz",
35
+ */
36
+ getNudgedToWordBoundary(gravity?: 'start' | 'end'): DocumentPosition;
37
+ static createAfter(document: Document, node: AnyNode): DocumentPosition | null;
38
+ static createBefore(document: Document, node: AnyNode): DocumentPosition | null;
39
+ static createAt(document: Document, node: AnyNode, where?: 'start' | 'end' | number): DocumentPosition;
40
+ static createFromPath(document: Document, path: DocumentPath): DocumentPosition;
41
+ }