@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,100 @@
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 Locale } from 'ckeditor5/src/utils.js';
6
+ import { type BodyCollection } from 'ckeditor5/src/ui.js';
7
+ import { type AIContextProvider, type AIContextResourceState } from '../../../../aichat/model/aichatcontext.js';
8
+ /**
9
+ * Configuration interface for the AI chat resources balloon view.
10
+ */
11
+ export interface AIChatResourcesBalloonViewConfig {
12
+ /**
13
+ * Callback fired when user requests to go back to the main context view.
14
+ */
15
+ onBackToContext: () => void;
16
+ /**
17
+ * Callback fired when a resource is selected to be added to context.
18
+ */
19
+ onResourceSelected: (source: AIContextProvider, resource: AIContextResourceState) => void;
20
+ /**
21
+ * Callback fired when source resources need to be loaded.
22
+ */
23
+ onLoadSourceResources: (data: {
24
+ sourceId: string;
25
+ query: string;
26
+ uid: string;
27
+ }) => void;
28
+ /**
29
+ * Callback fired when the balloon is closed via click outside.
30
+ */
31
+ onBalloonClosed: () => void;
32
+ /**
33
+ * Returns the element that limits balloon positioning.
34
+ */
35
+ getLimiterElement: () => HTMLElement;
36
+ /**
37
+ * Returns the target element for balloon positioning.
38
+ */
39
+ getTargetElement: () => HTMLElement;
40
+ }
41
+ /**
42
+ * Manages resource balloon panels for AI chat context sources.
43
+ *
44
+ * This class handles the creation, positioning, and lifecycle of balloon panels
45
+ * that display resources from various AI context providers. Each source can have
46
+ * its own balloon panel with search functionality and resource listing.
47
+ */
48
+ export declare class AIChatResourcesBalloonView {
49
+ /**
50
+ * Creates a new AI chat resources balloon view manager.
51
+ *
52
+ * @param locale The locale instance for internationalization
53
+ * @param bodyCollection The body collection for managing balloon DOM lifecycle
54
+ * @param config Configuration object for balloon behavior and event handling
55
+ */
56
+ constructor(locale: Locale, bodyCollection: BodyCollection, config: AIChatResourcesBalloonViewConfig);
57
+ /**
58
+ * Shows a source resources balloon for the given source provider.
59
+ * Creates a new balloon if one doesn't exist for this source, otherwise reuses the existing one.
60
+ *
61
+ * @param source The AI context provider source to show resources for
62
+ */
63
+ showSourceResourcesBalloon(source: AIContextProvider): void;
64
+ /**
65
+ * Populates a source resource balloon with loaded resources.
66
+ * Only updates the balloon if it exists and is currently active.
67
+ *
68
+ * @param sourceId The unique identifier of the source
69
+ * @param resources Array of resource states to display
70
+ * @param uid Unique identifier for the resource loading request
71
+ */
72
+ populateSourceResourceBalloon(sourceId: string, resources: Array<AIContextResourceState>, uid: string): void;
73
+ /**
74
+ * Closes the source resource balloon and cleans up its state.
75
+ * Uses requestAnimationFrame to ensure proper cleanup timing.
76
+ *
77
+ * @param sourceId The unique identifier of the source balloon to close
78
+ */
79
+ closeSourceResourceBalloon(sourceId: string): void;
80
+ /**
81
+ * Checks if any resource balloon is currently visible.
82
+ *
83
+ * @returns True if at least one resource balloon is visible, false otherwise
84
+ */
85
+ isAnyResourceBalloonVisible(): boolean;
86
+ /**
87
+ * Updates the state of a specific resource in the balloon and repositions it.
88
+ * This method also handles balloon repositioning to ensure proper display.
89
+ *
90
+ * @param sourceId The unique identifier of the source
91
+ * @param resourceId The unique identifier of the resource to update
92
+ * @param isInContext Whether the resource is currently in the context
93
+ */
94
+ updateResourceState(sourceId: string, resourceId: string, isInContext: boolean): void;
95
+ /**
96
+ * Destroys all resource balloons and cleans up resources.
97
+ * Should be called when the view is no longer needed to prevent memory leaks.
98
+ */
99
+ destroy(): void;
100
+ }
@@ -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 _0x1198e3=_0x3f2f;function _0x3f2f(_0x755038,_0x13b11b){const _0x141a1d=_0x141a();return _0x3f2f=function(_0x3f2f75,_0x854f44){_0x3f2f75=_0x3f2f75-0x1ae;let _0x562af2=_0x141a1d[_0x3f2f75];return _0x562af2;},_0x3f2f(_0x755038,_0x13b11b);}function _0x141a(){const _0x2bdf3e=['hide','loadSourceResources','onResourceSelected','_config','2436QPYUTV','get','getTargetElement','_sourceResourceBalloons','onBackToContext','4559npPtzf','showSourceResourcesBalloon','pin','source','set','_createBalloonHeader','populateSourceResourceBalloon','52911TvsFLM','402QjWJPU','isAnyResourceBalloonVisible','496MchrkB','show','label','onBalloonClosed','90QAkxzB','279516IdBTbm','_setupSingleResourceBalloonClickOutsideHandler','delete','isVisible','29436zbcCcx','resource','execute','clear','ck-button-icon\x20ck-button-back','onLoadSourceResources','1850TCqjcO','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','_createBalloonResourcesView','getLimiterElement','element','_bodyCollection','content','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','_locale','setResources','_createSourceResourceBalloonPanel','4315OshgCp','addResourceToContext','_createBackButton','updateResourceState','destroy','children','add','_getResourcesViewFromBalloon','closeSourceResourceBalloon','values','2385152NyAToB','_addSourceResourceContent','774BQCCar','429DcXGBb','extendTemplate','ck-ai-chat-context-controls__source-balloon-panel'];_0x141a=function(){return _0x2bdf3e;};return _0x141a();}(function(_0x123971,_0xb2da77){const _0x48265f=_0x3f2f,_0x4e4b13=_0x123971();while(!![]){try{const _0x1f7db4=-parseInt(_0x48265f(0x1ca))/0x1*(parseInt(_0x48265f(0x1d8))/0x2)+parseInt(_0x48265f(0x1bd))/0x3*(-parseInt(_0x48265f(0x1c5))/0x4)+parseInt(_0x48265f(0x1b1))/0x5*(parseInt(_0x48265f(0x1d2))/0x6)+-parseInt(_0x48265f(0x1bb))/0x7+parseInt(_0x48265f(0x1d4))/0x8*(-parseInt(_0x48265f(0x1d1))/0x9)+parseInt(_0x48265f(0x1e3))/0xa*(parseInt(_0x48265f(0x1dd))/0xb)+-parseInt(_0x48265f(0x1d9))/0xc*(-parseInt(_0x48265f(0x1be))/0xd);if(_0x1f7db4===_0xb2da77)break;else _0x4e4b13['push'](_0x4e4b13['shift']());}catch(_0x561ffe){_0x4e4b13['push'](_0x4e4b13['shift']());}}}(_0x141a,0x3e057));import{BalloonPanelView as _0xba2d5d,ButtonView as _0x123106,clickOutsideHandler as _0x2e7b30,FormHeaderView as _0x7f5bc1}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x37401e}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x27294c}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x5cd065}from'./aichatresourcesview.js';const Or=_0x1198e3(0x1c0),Hr=_0x1198e3(0x1e1),Fr=_0x1198e3(0x1e4);export class AIChatResourcesBalloonView{[_0x1198e3(0x1c8)]=new Map();[_0x1198e3(0x1e8)];[_0x1198e3(0x1ae)];[_0x1198e3(0x1c4)];constructor(_0x379787,_0x1e8d5a,_0x3112d7){const _0x451d3f=_0x1198e3;this[_0x451d3f(0x1ae)]=_0x379787,this[_0x451d3f(0x1e8)]=_0x1e8d5a,this[_0x451d3f(0x1c4)]=_0x3112d7;}[_0x1198e3(0x1cb)](_0x2b5c0f){const _0x104f6a=_0x1198e3;let _0x2ae56b=this[_0x104f6a(0x1c8)][_0x104f6a(0x1c6)](_0x2b5c0f['id']);_0x2ae56b||(_0x2ae56b=this[_0x104f6a(0x1b0)](),this[_0x104f6a(0x1c8)][_0x104f6a(0x1ce)](_0x2b5c0f['id'],_0x2ae56b),this[_0x104f6a(0x1da)](_0x2ae56b)),this[_0x104f6a(0x1bc)](_0x2ae56b,_0x2b5c0f),_0x2ae56b[_0x104f6a(0x1d5)]();const _0x36cef4=this[_0x104f6a(0x1c4)][_0x104f6a(0x1c7)]();_0x36cef4&&_0x2ae56b[_0x104f6a(0x1cc)]({'target':_0x36cef4,'limiter':this[_0x104f6a(0x1c4)][_0x104f6a(0x1e6)]()});}[_0x1198e3(0x1d0)](_0x293a2d,_0x3bb48f,_0xd2df63){const _0x18d4f3=_0x1198e3,_0x42e68a=this[_0x18d4f3(0x1c8)][_0x18d4f3(0x1c6)](_0x293a2d);if(!_0x42e68a)return;const _0x2e9d73=this[_0x18d4f3(0x1b8)](_0x42e68a);_0x2e9d73&&_0x2e9d73[_0x18d4f3(0x1af)](_0x3bb48f,_0xd2df63);}[_0x1198e3(0x1b9)](_0x46def8){const _0x33b84c=_0x1198e3,_0x10a3b9=this[_0x33b84c(0x1c8)][_0x33b84c(0x1c6)](_0x46def8);_0x10a3b9&&requestAnimationFrame(()=>{const _0x59db7d=_0x33b84c;_0x10a3b9[_0x59db7d(0x1c1)](),this[_0x59db7d(0x1c8)][_0x59db7d(0x1db)](_0x46def8),this[_0x59db7d(0x1c4)][_0x59db7d(0x1d7)]();});}[_0x1198e3(0x1d3)](){const _0x44c0c2=_0x1198e3;for(const _0x53fe34 of this[_0x44c0c2(0x1c8)][_0x44c0c2(0x1ba)]())if(_0x53fe34[_0x44c0c2(0x1dc)])return!0x0;return!0x1;}[_0x1198e3(0x1b4)](_0x3cad70,_0xeaa122,_0x58220c){const _0xf9a2b5=_0x1198e3,_0x340dca=this[_0xf9a2b5(0x1c8)][_0xf9a2b5(0x1c6)](_0x3cad70);if(!_0x340dca||!_0x340dca[_0xf9a2b5(0x1dc)])return;const _0x59c2b3=this[_0xf9a2b5(0x1c4)][_0xf9a2b5(0x1c7)]();if(!_0x59c2b3)return;_0x340dca[_0xf9a2b5(0x1cc)]({'target':_0x59c2b3,'limiter':this[_0xf9a2b5(0x1c4)][_0xf9a2b5(0x1e6)]()});const _0x37362d=this[_0xf9a2b5(0x1b8)](_0x340dca);_0x37362d&&_0x37362d[_0xf9a2b5(0x1b4)](_0xeaa122,_0x58220c);}[_0x1198e3(0x1b5)](){const _0x14d5cd=_0x1198e3;for(const _0x4132a6 of this[_0x14d5cd(0x1c8)][_0x14d5cd(0x1ba)]())_0x4132a6[_0x14d5cd(0x1b5)]();this[_0x14d5cd(0x1c8)][_0x14d5cd(0x1e0)]();}[_0x1198e3(0x1b0)](){const _0x4b413e=_0x1198e3,_0x1c719a=new _0xba2d5d(this[_0x4b413e(0x1ae)]);return _0x1c719a[_0x4b413e(0x1bf)]({'attributes':{'class':Or}}),this[_0x4b413e(0x1e8)][_0x4b413e(0x1b7)](_0x1c719a),_0x1c719a;}[_0x1198e3(0x1bc)](_0x35ff0b,_0x4f19ea){const _0x4a9928=_0x1198e3;_0x35ff0b[_0x4a9928(0x1e9)][_0x4a9928(0x1e0)]();const _0x3d078d=this[_0x4a9928(0x1cf)](_0x35ff0b,_0x4f19ea);_0x35ff0b[_0x4a9928(0x1e9)][_0x4a9928(0x1b7)](_0x3d078d);const _0x3dc713=this[_0x4a9928(0x1e5)](_0x4f19ea);_0x35ff0b[_0x4a9928(0x1e9)][_0x4a9928(0x1b7)](_0x3dc713);}[_0x1198e3(0x1cf)](_0x40f0cb,_0x34d530){const _0x27df93=_0x1198e3,_0x7b0d8e=this[_0x27df93(0x1b3)](_0x40f0cb),_0x2bc04c=new _0x7f5bc1(this[_0x27df93(0x1ae)],{'label':_0x34d530[_0x27df93(0x1d6)],'class':Fr});return _0x2bc04c[_0x27df93(0x1b6)][_0x27df93(0x1b7)](_0x7b0d8e,0x0),_0x2bc04c;}[_0x1198e3(0x1b3)](_0x48d175){const _0x4ea3bb=_0x1198e3,_0x129283=new _0x123106(this[_0x4ea3bb(0x1ae)]);return _0x129283[_0x4ea3bb(0x1ce)]({'icon':_0x37401e,'tooltip':_0x27294c(this[_0x4ea3bb(0x1ae)],_0x4ea3bb(0x1ea)),'tooltipPosition':'n','class':Hr}),_0x129283['on'](_0x4ea3bb(0x1df),()=>{const _0x265ef8=_0x4ea3bb;_0x48d175[_0x265ef8(0x1c1)](),this[_0x265ef8(0x1c4)][_0x265ef8(0x1c9)]();}),_0x129283;}[_0x1198e3(0x1e5)](_0x556b57){const _0x8c3988=_0x1198e3,_0x1b312c=new _0x5cd065(this[_0x8c3988(0x1ae)],_0x556b57);return _0x1b312c['on'](_0x8c3988(0x1c2),(_0x40fba6,_0x41464d)=>{const _0x4cc7e7=_0x8c3988;this[_0x4cc7e7(0x1c4)][_0x4cc7e7(0x1e2)](_0x41464d);}),_0x1b312c['on'](_0x8c3988(0x1b2),(_0x79a562,_0x83c5b3)=>{const _0xce61d5=_0x8c3988;this[_0xce61d5(0x1c4)][_0xce61d5(0x1c3)](_0x83c5b3[_0xce61d5(0x1cd)],_0x83c5b3[_0xce61d5(0x1de)]),this[_0xce61d5(0x1b9)](_0x556b57['id']);}),_0x1b312c;}[_0x1198e3(0x1b8)](_0xb7ba5e){const _0xbe87e0=_0x1198e3,_0x34f533=_0xb7ba5e[_0xbe87e0(0x1e9)][_0xbe87e0(0x1c6)](0x1);return _0x34f533 instanceof _0x5cd065?_0x34f533:null;}[_0x1198e3(0x1da)](_0x265242){const _0x168880=_0x1198e3;_0x2e7b30({'emitter':_0x265242,'contextElements':[_0x265242[_0x168880(0x1e7)]],'callback':()=>{const _0x186123=_0x168880;_0x265242[_0x186123(0x1c1)](),this[_0x186123(0x1c4)][_0x186123(0x1d7)]();},'activator':()=>_0x265242[_0x168880(0x1dc)]});}}
@@ -0,0 +1,49 @@
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/aichat/ui/controls/resources/aichatresourceslistview
7
+ */
8
+ import { type Locale } from 'ckeditor5/src/utils.js';
9
+ import { ListView } from 'ckeditor5/src/ui.js';
10
+ import { type AIContextProvider, type AIContextResourceState } from '../../../../aichat/model/aichatcontext.js';
11
+ /**
12
+ * A specialized list view for displaying AI context resources.
13
+ *
14
+ * This view manages a collection of resource items for a specific AI context provider,
15
+ * handling resource selection, search highlighting, and state updates.
16
+ */
17
+ export declare class AIChatContextResourcesListView extends ListView {
18
+ /**
19
+ * Creates a new AI context resources list view.
20
+ *
21
+ * @param locale The locale instance for internationalization
22
+ * @param source The AI context provider source for this resource list
23
+ */
24
+ constructor(locale: Locale, source: AIContextProvider);
25
+ /**
26
+ * Sets the resources to display in the list.
27
+ * Clears existing items and creates new resource item views with proper event handling.
28
+ * When useDefaultFiltering is enabled, filters resources by query and applies highlighting.
29
+ *
30
+ * @param resources Array of resource states to display
31
+ * @param query Search query string used for filtering and text highlighting
32
+ */
33
+ setResources(resources: Array<AIContextResourceState>, query: string): void;
34
+ /**
35
+ * Highlights text in all resource items based on the search query.
36
+ * Respects the source's useDefaultFiltering configuration.
37
+ *
38
+ * @param query The search query string to highlight in resource titles
39
+ */
40
+ highlightText(query: string): void;
41
+ /**
42
+ * Updates the state of a specific resource in the list.
43
+ * Finds the resource item by ID and updates its context state.
44
+ *
45
+ * @param resourceId The unique identifier of the resource to update
46
+ * @param isInContext Whether the resource is currently in the context
47
+ */
48
+ updateResourceState(resourceId: string, isInContext: boolean): void;
49
+ }
@@ -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 _0xd338(_0x3cedd6,_0x3ad6c1){const _0x2709e4=_0x2709();return _0xd338=function(_0xd3389,_0x473eef){_0xd3389=_0xd3389-0x6a;let _0x355034=_0x2709e4[_0xd3389];return _0x355034;},_0xd338(_0x3cedd6,_0x3ad6c1);}const _0x5075af=_0xd338;(function(_0x34c4ec,_0x6c801){const _0x413189=_0xd338,_0x513ddb=_0x34c4ec();while(!![]){try{const _0x2319e5=-parseInt(_0x413189(0x7d))/0x1*(-parseInt(_0x413189(0x78))/0x2)+parseInt(_0x413189(0x81))/0x3*(parseInt(_0x413189(0x73))/0x4)+parseInt(_0x413189(0x7b))/0x5*(parseInt(_0x413189(0x86))/0x6)+-parseInt(_0x413189(0x70))/0x7+-parseInt(_0x413189(0x7a))/0x8*(parseInt(_0x413189(0x6a))/0x9)+parseInt(_0x413189(0x89))/0xa*(-parseInt(_0x413189(0x6f))/0xb)+parseInt(_0x413189(0x76))/0xc;if(_0x2319e5===_0x6c801)break;else _0x513ddb['push'](_0x513ddb['shift']());}catch(_0x31eac9){_0x513ddb['push'](_0x513ddb['shift']());}}}(_0x2709,0xed038));import{ListView as _0x29b952}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x56ddbb}from'./aichatresourcelistitemview.js';const sc=_0x5075af(0x8a);export class AIChatContextResourcesListView extends _0x29b952{[_0x5075af(0x75)];constructor(_0x4f45b8,_0xd3be50){const _0x27a416=_0x5075af;super(_0x4f45b8),this[_0x27a416(0x75)]=_0xd3be50,this[_0x27a416(0x7c)]({'attributes':{'class':[sc]}});}[_0x5075af(0x7f)](_0x4ab853,_0x43da2f){const _0x122469=_0x5075af;this[_0x122469(0x85)][_0x122469(0x74)]();let _0x466f0b=_0x4ab853;if(this[_0x122469(0x75)][_0x122469(0x83)]&&_0x43da2f&&''!==_0x43da2f[_0x122469(0x8b)]()){const _0x2c7f7b=new RegExp(_0x43da2f[_0x122469(0x6c)](/[.*+?^${}()|[\]\\]/g,_0x122469(0x8c)),'gi');_0x466f0b=_0x4ab853[_0x122469(0x7e)](_0x25a4da=>_0x2c7f7b[_0x122469(0x88)](_0x25a4da[_0x122469(0x6d)]));}for(const _0x38ad3f of _0x466f0b){const _0x271004=new _0x56ddbb(this[_0x122469(0x82)],_0x38ad3f);_0x271004['on'](_0x122469(0x79),()=>{const _0x1d5407=_0x122469;this[_0x1d5407(0x80)](this[_0x1d5407(0x75)],_0x38ad3f);}),this[_0x122469(0x85)][_0x122469(0x6e)](_0x271004);}this[_0x122469(0x75)][_0x122469(0x83)]&&this[_0x122469(0x77)](_0x43da2f);}[_0x5075af(0x77)](_0xf8bf5d){const _0x51a0dd=_0x5075af;this[_0x51a0dd(0x75)][_0x51a0dd(0x83)]&&this[_0x51a0dd(0x85)][_0x51a0dd(0x72)](_0x3e4265=>{const _0x27531a=_0x51a0dd;_0x3e4265[_0x27531a(0x77)](_0xf8bf5d);});}[_0x5075af(0x84)](_0x10ffbd,_0x206359){const _0x9dede6=_0x5075af;for(const _0x5d832e of this[_0x9dede6(0x85)]){const _0x58d097=_0x5d832e;_0x58d097[_0x9dede6(0x6b)]['id']===_0x10ffbd&&_0x58d097[_0x9dede6(0x84)](_0x206359);}}[_0x5075af(0x80)](_0x40a435,_0x8948d9){const _0x721c87=_0x5075af;this[_0x721c87(0x71)](_0x721c87(0x87),{'source':_0x40a435,'resource':_0x8948d9});}}function _0x2709(){const _0x540e1f=['clear','_source','5305236sxTjNC','highlightText','2119486Eqtsjr','execute','1771896ZvTGvG','44490gzLAvP','extendTemplate','1EVSyxu','filter','setResources','_handleResourceSelection','3OwjiWz','locale','useDefaultFiltering','updateResourceState','items','936fHwKLK','addResourceToContext','test','1370OKKTPF','ck-ai-chat-resources__list','trim','\x5c$&','27YlJcck','resource','replace','label','add','79871pcCVAO','2907709JSHRFJ','fire','forEach','621916lLLhct'];_0x2709=function(){return _0x540e1f;};return _0x2709();}
@@ -0,0 +1,61 @@
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 Locale } from 'ckeditor5/src/utils.js';
6
+ import { ButtonView, IconView, type InputTextView, LabeledFieldView } from 'ckeditor5/src/ui.js';
7
+ /**
8
+ * A specialized search input view for AI context resources.
9
+ *
10
+ * This view extends the standard labeled field view to provide search functionality
11
+ * with an icon, reset button, and proper event handling for resource filtering.
12
+ * It maintains the current search query and provides immediate search feedback.
13
+ */
14
+ export declare class AIChatContextResourcesSearchInputView extends LabeledFieldView<InputTextView> {
15
+ /**
16
+ * The loupe icon displayed next to the search input field.
17
+ * Only present when the view is configured to show the search icon.
18
+ */
19
+ iconView?: IconView;
20
+ /**
21
+ * The button that clears the search input and refocuses the field.
22
+ * Only present when the view is configured to show the reset button.
23
+ */
24
+ resetButtonView?: ButtonView;
25
+ /**
26
+ * Creates a new AI context resources search input view.
27
+ *
28
+ * @param locale The locale instance for internationalization
29
+ */
30
+ constructor(locale: Locale);
31
+ /**
32
+ * Resets the search field to its default state and triggers an empty search.
33
+ */
34
+ reset(): void;
35
+ /**
36
+ * Triggers a search with the given query string.
37
+ *
38
+ * @param query The search query string
39
+ */
40
+ search(query: string): void;
41
+ /**
42
+ * Gets the current search query value.
43
+ *
44
+ * @returns The current search query string, or empty string if no query
45
+ */
46
+ getQuery(): string;
47
+ }
48
+ /**
49
+ * Event fired when the search input is reset.
50
+ */
51
+ export type AIChatContextResourcesSearchInputViewResetEvent = {
52
+ name: 'reset';
53
+ args: [];
54
+ };
55
+ /**
56
+ * Event fired when a search is triggered.
57
+ */
58
+ export type AIChatContextResourcesSearchInputViewSearchEvent = {
59
+ name: 'search';
60
+ args: [query: string];
61
+ };
@@ -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
+ import{ButtonView as _0x58042b,IconView as _0x37bff8,LabeledFieldView as th,createLabeledInputText as _0x373bf6}from'ckeditor5/src/ui.js';import{IconLoupe as _0x2d62dd,IconCancel as _0x4f64fb}from'ckeditor5/src/icons.js';import{getTranslation as _0x176280}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends th{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0xd3d2b7){const t=_0xd3d2b7['t'],_0x20f94b={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x373bf6,'label':_0x176280(_0xd3d2b7,'AI_CHAT_SEARCH_RESOURCES')};super(_0xd3d2b7,_0x20f94b['creator']),this['label']=_0x20f94b['label'],this['_viewConfig']=_0x20f94b,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0xd3d2b7,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x5b9d2c){this['fire']('search',_0x5b9d2c);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x37bff8(),this['iconView']['content']=_0x2d62dd,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x5d0fc3,t){this['resetButtonView']=new _0x58042b(_0x5d0fc3),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x4f64fb,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x1e55c9=>!_0x1e55c9),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
@@ -0,0 +1,54 @@
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/aichat/ui/controls/resources/aichatresourcesview
7
+ */
8
+ import { View } from 'ckeditor5/src/ui.js';
9
+ import { type Locale } from 'ckeditor5/src/utils.js';
10
+ import { type AIContextResourceState, type AIContextProvider } from '../../../../aichat/model/aichatcontext.js';
11
+ /**
12
+ * Main view component for AI context resources management.
13
+ *
14
+ * This view combines a search input and resources list, managing the complete
15
+ * user experience for browsing and selecting resources from an AI context provider.
16
+ * It handles loading states, search functionality, and resource state updates.
17
+ */
18
+ export declare class AIChatContextResourcesView extends View {
19
+ /**
20
+ * Creates a new AI context resources view.
21
+ *
22
+ * @param locale The locale instance for internationalization
23
+ * @param source The AI context provider source for this resources view
24
+ */
25
+ constructor(locale: Locale, source: AIContextProvider);
26
+ /**
27
+ * Renders the view and initiates initial resource loading.
28
+ */
29
+ render(): void;
30
+ /**
31
+ * Loads resources for the current source with the given search query.
32
+ * Generates a unique identifier to prevent race conditions between requests.
33
+ *
34
+ * @param query The search query string to filter resources
35
+ */
36
+ loadResources(query: string): void;
37
+ /**
38
+ * Sets the resources to display, with race condition protection.
39
+ * Only processes the response if it matches the latest request UID.
40
+ * Respects the source's highlighting configuration when setting resources.
41
+ *
42
+ * @param resources Array of resource states to display
43
+ * @param uid Optional unique identifier for the request (for race condition protection)
44
+ */
45
+ setResources(resources: Array<AIContextResourceState>, uid?: string): void;
46
+ /**
47
+ * Updates the state of a specific resource in the list.
48
+ * Delegates to the resources list view to handle the actual update.
49
+ *
50
+ * @param resourceId The unique identifier of the resource to update
51
+ * @param isInContext Whether the resource is currently in the context
52
+ */
53
+ updateResourceState(resourceId: string, isInContext: boolean): void;
54
+ }
@@ -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 _0x56c208=_0x5030;(function(_0x5b26a5,_0x32c0c6){const _0x2ce2a2=_0x5030,_0x42452e=_0x5b26a5();while(!![]){try{const _0x47cf8b=-parseInt(_0x2ce2a2(0xca))/0x1+-parseInt(_0x2ce2a2(0xbf))/0x2+parseInt(_0x2ce2a2(0xd6))/0x3*(parseInt(_0x2ce2a2(0xc6))/0x4)+-parseInt(_0x2ce2a2(0xd4))/0x5*(parseInt(_0x2ce2a2(0xbc))/0x6)+-parseInt(_0x2ce2a2(0xcb))/0x7+-parseInt(_0x2ce2a2(0xd1))/0x8+parseInt(_0x2ce2a2(0xc2))/0x9;if(_0x47cf8b===_0x32c0c6)break;else _0x42452e['push'](_0x42452e['shift']());}catch(_0x29b7a1){_0x42452e['push'](_0x42452e['shift']());}}}(_0x800c,0x23d2b));function _0x800c(){const _0x45a71f=['bindTemplate','addResourceToContext','4258035OgRDKs','_searchView','_createResourcesListView','_source','265068xUqluY','_latestLoadResourcesUid','locale','updateResourceState','76662ULbdPp','69363darlyt','setResources','_createSearchSection','aiChatResources','fire','useDefaultFiltering','661720Pgsbxi','extendTemplate','isLoading','1415ydDpIa','setTemplate','12GPqVZL','_createSearchView','search','children','highlightText','ck\x20ck-search','ck-hidden','loadSourceResources','_resourcesListView','render','loadResources','delegate','set','div','_skeletonLoader','ck-ai-chat-resources','6186TNMBhZ','getQuery','_createSkeletonView','260786iCuLvy'];_0x800c=function(){return _0x45a71f;};return _0x800c();}import{View as _0x188a4e,ViewCollection as _0x4a5ea7}from'ckeditor5/src/ui.js';import{uid as _0x12807d}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x5715d5}from'./aichatresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x536d8a}from'./aichatresourcessearchinputview.js';function _0x5030(_0x7e6059,_0x101673){const _0x800c15=_0x800c();return _0x5030=function(_0x50301f,_0x3c560f){_0x50301f=_0x50301f-0xb6;let _0x1d8184=_0x800c15[_0x50301f];return _0x1d8184;},_0x5030(_0x7e6059,_0x101673);}import{AISkeletonView as _0x5e0bf7,SKELETON_DEFINITIONS as _0x4273b1}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x188a4e{[_0x56c208(0xc3)];[_0x56c208(0xde)];[_0x56c208(0xba)];[_0x56c208(0xc5)];[_0x56c208(0xd9)];[_0x56c208(0xc7)]=null;constructor(_0x303f9e,_0x304330){const _0x286695=_0x56c208;super(_0x303f9e),this[_0x286695(0xc5)]=_0x304330,this[_0x286695(0xb8)](_0x286695(0xd3),!0x0),this[_0x286695(0xc3)]=this[_0x286695(0xd7)]();const _0x34925b=this[_0x286695(0xcd)]();this[_0x286695(0xde)]=this[_0x286695(0xc4)](),this[_0x286695(0xba)]=this[_0x286695(0xbe)](),this[_0x286695(0xd9)]=new _0x4a5ea7([_0x34925b,this[_0x286695(0xba)],this[_0x286695(0xde)]]),this[_0x286695(0xd5)]({'tag':_0x286695(0xb9),'attributes':{'class':_0x286695(0xbb)},'children':this[_0x286695(0xd9)]});}[_0x56c208(0xd7)](){const _0x1d5b8b=_0x56c208;return new _0x536d8a(this[_0x1d5b8b(0xc8)]);}[_0x56c208(0xcd)](){const _0x4ab293=_0x56c208,_0x333b5f=new _0x188a4e(this[_0x4ab293(0xc8)]);return _0x333b5f[_0x4ab293(0xd5)]({'tag':_0x4ab293(0xb9),'attributes':{'class':_0x4ab293(0xdb)},'children':[this[_0x4ab293(0xc3)]]}),this[_0x4ab293(0xc3)]['on'](_0x4ab293(0xd8),(_0x683b85,_0x55f4ff)=>{const _0x328ef8=_0x4ab293;this[_0x328ef8(0xb6)](_0x55f4ff),this[_0x328ef8(0xc5)][_0x328ef8(0xd0)]&&this[_0x328ef8(0xde)][_0x328ef8(0xda)](_0x55f4ff);}),_0x333b5f;}[_0x56c208(0xc4)](){const _0x1d3aaf=_0x56c208,_0x3ca266=new _0x5715d5(this[_0x1d3aaf(0xc8)],this[_0x1d3aaf(0xc5)]);return _0x3ca266[_0x1d3aaf(0xb7)](_0x1d3aaf(0xc1))['to'](this),_0x3ca266[_0x1d3aaf(0xd2)]({'attributes':{'class':this[_0x1d3aaf(0xc0)]['if'](_0x1d3aaf(0xd3),_0x1d3aaf(0xdc))}}),_0x3ca266;}[_0x56c208(0xbe)](){const _0x20de4a=_0x56c208,_0x2e499d=new _0x5e0bf7(this[_0x20de4a(0xc8)],_0x4273b1[_0x20de4a(0xce)]);return _0x2e499d[_0x20de4a(0xd2)]({'attributes':{'class':[this[_0x20de4a(0xc0)]['if'](_0x20de4a(0xd3),_0x20de4a(0xdc),_0xaa056b=>!_0xaa056b)]}}),_0x2e499d;}[_0x56c208(0xdf)](){const _0xd1d594=_0x56c208;super[_0xd1d594(0xdf)](),this[_0xd1d594(0xb6)]('');}[_0x56c208(0xb6)](_0x3257e3){const _0x5a4eaa=_0x56c208,_0x2004a0=_0x12807d();this[_0x5a4eaa(0xc7)]=_0x2004a0,this[_0x5a4eaa(0xcf)](_0x5a4eaa(0xdd),{'sourceId':this[_0x5a4eaa(0xc5)]['id'],'query':_0x3257e3,'uid':_0x2004a0}),this[_0x5a4eaa(0xd3)]=!0x0;}[_0x56c208(0xcc)](_0x1a8a2e,_0x4f79df){const _0x5ccd5a=_0x56c208;if(_0x4f79df&&_0x4f79df!==this[_0x5ccd5a(0xc7)])return;const _0x1e910e=this[_0x5ccd5a(0xc5)][_0x5ccd5a(0xd0)]?this[_0x5ccd5a(0xc3)][_0x5ccd5a(0xbd)]():'';this[_0x5ccd5a(0xde)][_0x5ccd5a(0xcc)](_0x1a8a2e,_0x1e910e),requestAnimationFrame(()=>{const _0x9c4c39=_0x5ccd5a;this[_0x9c4c39(0xd3)]=!0x1;});}[_0x56c208(0xc9)](_0x710b82,_0xd76882){const _0x58353f=_0x56c208;this[_0x58353f(0xde)][_0x58353f(0xc9)](_0x710b82,_0xd76882);}}
@@ -0,0 +1,27 @@
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/aichat/ui/feed/aichatfeedcontextchipsview
7
+ */
8
+ import { View, type BodyCollection } from 'ckeditor5/src/ui.js';
9
+ import { type Locale } from 'ckeditor5/src/utils.js';
10
+ import { type AIContextItem } from '../../../aicore/model/aicontext.js';
11
+ /**
12
+ * A view that manages context chips with overflow handling and show more functionality.
13
+ */
14
+ export declare class AIChatFeedContextChipsView extends View {
15
+ /**
16
+ * @inheritDoc
17
+ */
18
+ constructor(locale: Locale, contextItems: Array<AIContextItem>, bodyCollection: BodyCollection);
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ render(): void;
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ destroy(): void;
27
+ }
@@ -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 _0x2cafc3=_0x4fda;(function(_0x4968e1,_0x142322){const _0xc44284=_0x4fda,_0x1c8028=_0x4968e1();while(!![]){try{const _0x3eeed5=-parseInt(_0xc44284(0x182))/0x1*(parseInt(_0xc44284(0x176))/0x2)+parseInt(_0xc44284(0x17f))/0x3*(-parseInt(_0xc44284(0x177))/0x4)+-parseInt(_0xc44284(0x16d))/0x5+parseInt(_0xc44284(0x175))/0x6+-parseInt(_0xc44284(0x179))/0x7*(parseInt(_0xc44284(0x180))/0x8)+-parseInt(_0xc44284(0x171))/0x9+parseInt(_0xc44284(0x18a))/0xa*(parseInt(_0xc44284(0x17d))/0xb);if(_0x3eeed5===_0x142322)break;else _0x1c8028['push'](_0x1c8028['shift']());}catch(_0x2ba557){_0x1c8028['push'](_0x1c8028['shift']());}}}(_0x11bb,0x2284a));import{View as _0x4aecb3}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0xa03f3b}from'../controls/aichatcontextitembuttonview.js';function _0x4fda(_0x312b97,_0x364c9e){const _0x11bbbe=_0x11bb();return _0x4fda=function(_0x4fda9c,_0x3e8ae3){_0x4fda9c=_0x4fda9c-0x16c;let _0x321cc0=_0x11bbbe[_0x4fda9c];return _0x321cc0;},_0x4fda(_0x312b97,_0x364c9e);}function _0x11bb(){const _0x4bd13c=['ck-ai-chat__feed__context-chips','_overflowManager','ck-ai-chat-context-chips-wrapper-balloon','274626IIynWM','render','ck-ai-chat-context-chips-wrapper','setTemplate','1488282rrhBtZ','296Zpqfzd','60klSFES','element','15988PWKeTG','_bodyCollection','_contextChips','destroy','3143734UwKPoN','div','42006rMDSTU','224ByWuze','reorganizeChips','1658LHSGZG','querySelector','ck-ai-chat-controls_context_show-more-button','_createContextChips','add','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat-controls-button','createCollection','20SXnxyM','locale','setContainerElement','ck-reset_all','641845AVAXYM'];_0x11bb=function(){return _0x4bd13c;};return _0x11bb();}import{AIChatChipsOverflowManager as _0x39b4bb}from'../controls/aichatchipsoverflowmanager.js';const Fo=_0x2cafc3(0x16e),$o=_0x2cafc3(0x173),qo=_0x2cafc3(0x170),Vo=_0x2cafc3(0x188),Io=_0x2cafc3(0x184),Po=_0x2cafc3(0x187);export class AIChatFeedContextChipsView extends _0x4aecb3{[_0x2cafc3(0x17b)]=this[_0x2cafc3(0x189)]();[_0x2cafc3(0x16f)];[_0x2cafc3(0x17a)];constructor(_0x3dc9ca,_0x24d629,_0x489134){const _0x730376=_0x2cafc3;super(_0x3dc9ca),this[_0x730376(0x17a)]=_0x489134,this[_0x730376(0x185)](_0x24d629);const _0x424045={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Po,'overflowContainer':qo,'controlsButton':Vo}};this[_0x730376(0x16f)]=new _0x39b4bb(_0x3dc9ca,this[_0x730376(0x17b)],_0x424045,this[_0x730376(0x17a)],this),this[_0x730376(0x174)]({'tag':_0x730376(0x17e),'attributes':{'class':[Fo,'ck',_0x730376(0x16c)]},'children':[{'tag':_0x730376(0x17e),'attributes':{'class':$o},'children':this[_0x730376(0x17b)]}]});}[_0x2cafc3(0x172)](){const _0x45a5b2=_0x2cafc3;super[_0x45a5b2(0x172)]();const _0x49d6de=this[_0x45a5b2(0x178)][_0x45a5b2(0x183)]('.'+$o);_0x49d6de&&(this[_0x45a5b2(0x16f)][_0x45a5b2(0x18c)](_0x49d6de),this[_0x45a5b2(0x16f)][_0x45a5b2(0x181)]());}[_0x2cafc3(0x17c)](){const _0xe43cce=_0x2cafc3;super[_0xe43cce(0x17c)](),this[_0xe43cce(0x16f)][_0xe43cce(0x17c)]();}[_0x2cafc3(0x185)](_0x43c852){const _0xee0046=_0x2cafc3;for(const _0x345f71 of _0x43c852){const _0xe1556e=new _0xa03f3b(this[_0xee0046(0x18b)],_0x345f71,!0x0,!0x1);this[_0xee0046(0x17b)][_0xee0046(0x186)](_0xe1556e);}}}
@@ -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/aichat/ui/feed/aichatfeederroritemview
7
+ */
8
+ import { AIChatFeedItemView, type AIChatItemViewOptions } from './aichatfeeditemview.js';
9
+ /**
10
+ * A view for error messages in the chat feed.
11
+ */
12
+ export declare class AIChatFeedErrorItemView extends AIChatFeedItemView {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ options: AIChatFeedErrorItemViewOptions;
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ constructor(options: AIChatFeedErrorItemViewOptions);
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ render(): void;
25
+ /**
26
+ * Sets the content of the error item.
27
+ */
28
+ setContent(content: string): void;
29
+ }
30
+ export interface AIChatFeedErrorItemViewOptions extends AIChatItemViewOptions {
31
+ /**
32
+ * The static error message to be displayed immediately while rendering the view.
33
+ */
34
+ initialContent: string;
35
+ /**
36
+ * The level of the error.
37
+ */
38
+ level?: 'warning' | 'error';
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
+ var _0x5e1957=_0x2703;function _0x2703(_0x8f224f,_0x234ce8){var _0x18b7f7=_0x18b7();return _0x2703=function(_0x2703d1,_0x303a79){_0x2703d1=_0x2703d1-0xdb;var _0x5d6895=_0x18b7f7[_0x2703d1];return _0x5d6895;},_0x2703(_0x8f224f,_0x234ce8);}function _0x18b7(){var _0x507367=['300572lVrAMu','warning','8xHhscc','markAsDone','render','ck-ai-chat-error','setContent','1122464zMkuLT','extendTemplate','innerHTML','1956504xyFYWu','options','9606gJPqxT','level','element','initialContent','17552070yfGzNk','ck-ai-chat-error_warning','2868784blRtoE','2769102VDuckb','3555KHRWrb'];_0x18b7=function(){return _0x507367;};return _0x18b7();}(function(_0x2e96d3,_0x1c4aab){var _0x339043=_0x2703,_0x400ec7=_0x2e96d3();while(!![]){try{var _0x4cd380=parseInt(_0x339043(0xe8))/0x1+parseInt(_0x339043(0xe6))/0x2+-parseInt(_0x339043(0xdd))/0x3+parseInt(_0x339043(0xe5))/0x4+parseInt(_0x339043(0xe7))/0x5*(parseInt(_0x339043(0xdf))/0x6)+-parseInt(_0x339043(0xef))/0x7+-parseInt(_0x339043(0xea))/0x8*(parseInt(_0x339043(0xe3))/0x9);if(_0x4cd380===_0x1c4aab)break;else _0x400ec7['push'](_0x400ec7['shift']());}catch(_0x5335b1){_0x400ec7['push'](_0x400ec7['shift']());}}}(_0x18b7,0xbde98));import{AIChatFeedItemView as _0x51c034}from'./aichatfeeditemview.js';export class AIChatFeedErrorItemView extends _0x51c034{constructor(_0x3d4f88){var _0x4dd29e=_0x2703;super(_0x3d4f88),this[_0x4dd29e(0xdb)]({'attributes':{'class':[_0x4dd29e(0xed),_0x4dd29e(0xe9)===_0x3d4f88[_0x4dd29e(0xe0)]?_0x4dd29e(0xe4):'']}});}[_0x5e1957(0xec)](){var _0x36cf26=_0x5e1957;super[_0x36cf26(0xec)](),this[_0x36cf26(0xee)](this[_0x36cf26(0xde)][_0x36cf26(0xe2)]),this[_0x36cf26(0xeb)]();}[_0x5e1957(0xee)](_0x10166d){var _0x223a5c=_0x5e1957;this[_0x223a5c(0xe1)][_0x223a5c(0xdc)]=_0x10166d;}}
@@ -0,0 +1,29 @@
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 Locale } from 'ckeditor5/src/utils.js';
6
+ import { type AICapabilitiesConfig } from '../../../aicore/model/aicapabilities.js';
7
+ import { AIChatFeedItemView, type AIChatItemViewOptions } from './aichatfeeditemview.js';
8
+ /**
9
+ * A view for displaying interaction-level information in the AI chat feed.
10
+ *
11
+ * This view shows which capabilities (web search, reasoning) were used for the entire interaction,
12
+ * and should be displayed above all replies for that interaction.
13
+ */
14
+ export declare class AIChatFeedInteractionHeaderView extends AIChatFeedItemView<AIChatFeedInteractionHeaderViewOptions> {
15
+ /**
16
+ * @inheritDoc
17
+ */
18
+ constructor(locale: Locale, options: AIChatFeedInteractionHeaderViewOptions);
19
+ }
20
+ export interface AIChatFeedInteractionHeaderViewOptions extends AIChatItemViewOptions {
21
+ /**
22
+ * The capabilities configuration for the interaction header.
23
+ */
24
+ capabilities: AICapabilitiesConfig;
25
+ /**
26
+ * ID of the interaction this header belongs to.
27
+ */
28
+ id: string;
29
+ }
@@ -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(_0x304518,_0x11def8){const _0x434759=_0x745a,_0x59dad8=_0x304518();while(!![]){try{const _0x4479a3=-parseInt(_0x434759(0x104))/0x1*(parseInt(_0x434759(0x10d))/0x2)+parseInt(_0x434759(0x10b))/0x3+-parseInt(_0x434759(0x102))/0x4+parseInt(_0x434759(0x101))/0x5+parseInt(_0x434759(0x100))/0x6+parseInt(_0x434759(0x105))/0x7+-parseInt(_0x434759(0x115))/0x8;if(_0x4479a3===_0x11def8)break;else _0x59dad8['push'](_0x59dad8['shift']());}catch(_0x19d5b6){_0x59dad8['push'](_0x59dad8['shift']());}}}(_0x268f,0x4a670));import{IconBulb as _0xc7608a,IconWeb as _0x14b487}from'@ckeditor/ckeditor5-icons';import{IconView as _0x209a9a,View as _0x2fb8d6}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x2d0f39}from'./aichatfeeditemview.js';function _0x745a(_0x4691da,_0x377428){const _0x268f06=_0x268f();return _0x745a=function(_0x745a5e,_0x10cf5e){_0x745a5e=_0x745a5e-0xfe;let _0x3dec0f=_0x268f06[_0x745a5e];return _0x3dec0f;},_0x745a(_0x4691da,_0x377428);}import{getTranslation as _0x25d005}from'../../../aicore/utils/common-translations.js';function _0x268f(){const _0x17300a=['capabilities','100869BMTgeg','setTemplate','38IPkcIY','add','push','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','ck-ai-chat__feed__interaction-header','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','ck-ai-chat__feed__interaction-header__capabilities__text','ck-ai-chat__feed__interaction-header__capabilities','2847720ppsZwi','extendTemplate','ck-hidden','284304QSXlnC','2801680QNaQYN','804028YvnfZJ','content','61SsZnsi','1550780fXZWKC','children','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','div','span'];_0x268f=function(){return _0x17300a;};return _0x268f();}export class AIChatFeedInteractionHeaderView extends _0x2d0f39{constructor(_0x4ad3e6,_0x34bd9a){const _0x259012=_0x745a;super(_0x34bd9a);const {isWebSearchEnabled:_0x204835,isReasoningEnabled:_0x174c9f}=_0x34bd9a[_0x259012(0x10a)],_0x5bd2f8=[];let _0x1f09a6='';_0x204835&&_0x174c9f?(_0x1f09a6=_0x25d005(_0x4ad3e6,_0x259012(0x110)),_0x5bd2f8[_0x259012(0x10f)](e_(_0x14b487)),_0x5bd2f8[_0x259012(0x10f)](e_(_0xc7608a))):_0x204835?(_0x1f09a6=_0x25d005(_0x4ad3e6,_0x259012(0x107)),_0x5bd2f8[_0x259012(0x10f)](e_(_0x14b487))):_0x174c9f&&(_0x1f09a6=_0x25d005(_0x4ad3e6,_0x259012(0x112)),_0x5bd2f8[_0x259012(0x10f)](e_(_0xc7608a))),this[_0x259012(0xfe)]({'attributes':{'class':[_0x259012(0x111),_0x1f09a6?'':_0x259012(0xff)]}});const _0x8460d9=new _0x2fb8d6();_0x8460d9[_0x259012(0x10c)]({'tag':_0x259012(0x108),'attributes':{'class':['ck',_0x259012(0x114)]},'children':[..._0x5bd2f8,{'tag':_0x259012(0x109),'attributes':{'class':[_0x259012(0x113)]},'children':[_0x1f09a6]}]}),this[_0x259012(0x106)][_0x259012(0x10e)](_0x8460d9);}}function e_(_0x2e8934){const _0x254262=_0x745a,_0x317e3e=new _0x209a9a();return _0x317e3e[_0x254262(0x103)]=_0x2e8934,_0x317e3e;}
@@ -0,0 +1,46 @@
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/aichat/ui/feed/aichatfeeditemview
7
+ */
8
+ import { View } from 'ckeditor5/src/ui.js';
9
+ import { type Document } from '../../../aicore/utils/htmlparser.js';
10
+ /**
11
+ * A base class for all item views in the chat feed.
12
+ */
13
+ export declare abstract class AIChatFeedItemView<TOptions extends AIChatItemViewOptions = AIChatItemViewOptions> extends View<HTMLDivElement> {
14
+ /**
15
+ * The options of the item passed to the constructor.
16
+ */
17
+ options: TOptions;
18
+ /**
19
+ * A flag indicating that the streaming has finished in this item. It is reflected in the CSS class.
20
+ */
21
+ isDone: boolean;
22
+ /**
23
+ * Specifies whether the item should be visible or not.
24
+ */
25
+ isVisible: boolean;
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ constructor(options: TOptions);
30
+ /**
31
+ * Marks the item as done.
32
+ *
33
+ * **Note**: It removes the animations from the content.
34
+ */
35
+ markAsDone(): void;
36
+ /**
37
+ * Streams the content into an arbitrary HTML element.
38
+ */
39
+ protected streamIntoElement(parsedContent: Document, targetElement: HTMLElement, abortSignal?: AbortSignal): Promise<void>;
40
+ }
41
+ export interface AIChatItemViewOptions {
42
+ /**
43
+ * The ID of the item.
44
+ */
45
+ id: string;
46
+ }