@ckeditor/ckeditor5-ai 46.1.1-alpha.3 → 47.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (624) 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 +2648 -0
  79. package/dist/index.css +3047 -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 +162 -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/aiassistant/legacyerrors.js +23 -0
  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 +82 -31
  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 +101 -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 +19 -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 +154 -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/legacyerrors.js +0 -23
  609. package/src/ui/aiassistantcontroller.js +0 -24
  610. package/src/ui/form/aiformcontentarea.js +0 -23
  611. package/src/ui/form/aiformerrorview.js +0 -23
  612. package/src/ui/form/aiformpromptview.js +0 -23
  613. package/src/ui/form/aiformtoolbarview.js +0 -23
  614. package/src/ui/form/aiformview.js +0 -23
  615. package/src/ui/form/aihistorylistitemview.js +0 -23
  616. package/src/ui/form/aihistorylistview.js +0 -23
  617. package/src/ui/form/prompthistory.js +0 -23
  618. package/src/ui/showaiassistantcommand.js +0 -23
  619. /package/src/{aiassistantediting.d.ts → aiassistant/aiassistantediting.d.ts} +0 -0
  620. /package/src/{legacyerrors.d.ts → aiassistant/legacyerrors.d.ts} +0 -0
  621. /package/src/{ui → aiassistant/ui}/form/aiformerrorview.d.ts +0 -0
  622. /package/theme/{ai-dropdown.css → aiassistant/ai-dropdown.css} +0 -0
  623. /package/theme/{ai-form.css → aiassistant/ai-form.css} +0 -0
  624. /package/theme/{ai.css → aiassistant/ai.css} +0 -0
@@ -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 _0xdd30c0=_0x1de0;function _0x1649(){const _0x29604c=['stopListening','8036148HlHaKw','convertMarkdownToHTML','content','push','documentContextContent','conversation-title','1340WvfmKG','span','modified','cloneNode','changeGroups','data-unstable','map','updateChangeGroups','changes','7PvyFIU','forEach','25696FYcIuW','editor','length','every','type','merge','newNodeIds','change:content','replyChangeGroupStateUpdated','3762qfdKbM','modification-delta','8QwAiDK','set','new','modifiedNodeIds','onContentChange','aiResponseParser','reasoning','57145608MNZGHF','removedNodeIds','nextSibling','areActionsDisabled','done','replyContentUpdated','setChangeGroupState','95524UketRB','fire','index','context','node','1218810hvHoAx','data-id','interactionId','pending','text-delta','source','29lOBRUS','47230rFvwHP','includes','parsedContent','destroy','color:\x20#808080;\x20font-style:\x20italic','aiResponseApplier','filter','state','Removed\x20content.\x20Use\x20\x22Show\x20changes\x22\x20to\x20learn\x20more.','previousSibling','unshift','removed','parsedMergedContent','isDone','parseAndNormalizeHTML','sources','appendContent','2790252dLwrIH','values'];_0x1649=function(){return _0x29604c;};return _0x1649();}(function(_0x22d499,_0xbb3b11){const _0x575772=_0x1de0,_0x2aa856=_0x22d499();while(!![]){try{const _0x5afe3d=parseInt(_0x575772(0x108))/0x1*(-parseInt(_0x575772(0x109))/0x2)+parseInt(_0x575772(0xd0))/0x3+parseInt(_0x575772(0xef))/0x4*(-parseInt(_0x575772(0x102))/0x5)+-parseInt(_0x575772(0xd3))/0x6*(parseInt(_0x575772(0xe2))/0x7)+parseInt(_0x575772(0xe4))/0x8*(-parseInt(_0x575772(0xed))/0x9)+parseInt(_0x575772(0xd9))/0xa*(-parseInt(_0x575772(0xfd))/0xb)+parseInt(_0x575772(0xf6))/0xc;if(_0x5afe3d===_0xbb3b11)break;else _0x2aa856['push'](_0x2aa856['shift']());}catch(_0x31888f){_0x2aa856['push'](_0x2aa856['shift']());}}}(_0x1649,0xa49b5));import{ObservableMixin as _0x36e2d6,uid as _0xef5c9d}from'ckeditor5/src/utils.js';import{Element as _0x26dadd,findAll as _0x5dcd4b,getAttribute as _0x1ab64a,getParents as _0x1d965a,Document as _0x558f1b,parse as _0x2f76e4,Text as _0x10f8bf}from'../utils/htmlparser.js';import{AIResponseParser as _0x140c84}from'../pipeline/airesponseparser.js';function _0x1de0(_0xd1780d,_0x2680b6){const _0x16493b=_0x1649();return _0x1de0=function(_0x1de00f,_0x505072){_0x1de00f=_0x1de00f-0xca;let _0x10c77f=_0x16493b[_0x1de00f];return _0x10c77f;},_0x1de0(_0xd1780d,_0x2680b6);}import{AIResponseApplier as _0x5fd3fc}from'../pipeline/airesponseapplier.js';export const AI_REPLY_TYPES=[_0xdd30c0(0xee),_0xdd30c0(0x106)];export const AI_REPLY_TYPES_IGNORED=[_0xdd30c0(0xf5)];export const AI_REPLY_TITLE_TYPE=_0xdd30c0(0xd8);export class AIReply extends _0x36e2d6(){['id'];[_0xdd30c0(0x104)];[_0xdd30c0(0xe8)];[_0xdd30c0(0xce)]=[];[_0xdd30c0(0x10b)]=new _0x558f1b([]);[_0xdd30c0(0xcb)]=new _0x558f1b([]);[_0xdd30c0(0xdd)]=[];[_0xdd30c0(0xf9)]=!0x1;[_0xdd30c0(0xd7)];[_0xdd30c0(0xf4)];[_0xdd30c0(0x10e)];[_0xdd30c0(0xe5)];constructor({type:_0x31e25b,content:_0x234544='',isDone:_0x12a4c3=!0x1,interactionId:_0x5336c4,areActionsDisabled:_0x39b276,documentContextContent:_0x38229e,editor:_0x4c15a6}){const _0x5a8d5c=_0xdd30c0;super(),this['id']=_0xef5c9d(),this[_0x5a8d5c(0x104)]=_0x5336c4,this[_0x5a8d5c(0xe8)]=_0x31e25b,this[_0x5a8d5c(0xf9)]=!!_0x39b276,this[_0x5a8d5c(0xe5)]=_0x4c15a6,this[_0x5a8d5c(0xf4)]=new _0x140c84(),this[_0x5a8d5c(0x10e)]=new _0x5fd3fc(),this[_0x5a8d5c(0xd7)]=_0x2f76e4(_0x38229e||''),this[_0x5a8d5c(0xf0)](_0x5a8d5c(0xcc),_0x12a4c3),this['on'](_0x5a8d5c(0xeb),()=>{const _0x4d913d=_0x5a8d5c;this[_0x4d913d(0xf3)]();}),this[_0x5a8d5c(0xf0)](_0x5a8d5c(0xd5),_0x234544);}[_0xdd30c0(0xcf)](_0x3aa785){const _0x40e0c4=_0xdd30c0;this[_0x40e0c4(0xf0)](_0x40e0c4(0xd5),this[_0x40e0c4(0xd5)]+_0x3aa785);}[_0xdd30c0(0xfa)](){const _0x376e3b=_0xdd30c0;this[_0x376e3b(0xcc)]||(this[_0x376e3b(0xf0)](_0x376e3b(0xcc),!0x0),this[_0x376e3b(0xf3)]());}[_0xdd30c0(0x10c)](){const _0xa637a2=_0xdd30c0;this[_0xa637a2(0xd2)]();}[_0xdd30c0(0xfc)](_0x8f00a8,_0x5854ba){const _0x6a1390=_0xdd30c0;this[_0x6a1390(0xdd)][_0x8f00a8][_0x6a1390(0x110)]=_0x5854ba,this[_0x6a1390(0xfe)](_0x6a1390(0xec),{'reply':this,'index':_0x8f00a8,'state':_0x5854ba});}[_0xdd30c0(0xf3)](){const _0x2c1ac1=_0xdd30c0;if(_0x2c1ac1(0xee)===this[_0x2c1ac1(0xe8)]){this[_0x2c1ac1(0x10b)]=this[_0x2c1ac1(0xf4)][_0x2c1ac1(0xcd)](this[_0x2c1ac1(0xd5)]);const _0x34d415=this[_0x2c1ac1(0xdd)];this[_0x2c1ac1(0xe0)]();const _0x5ccd82=function(_0x202319,_0x828be7){const _0x485bca=_0x2c1ac1,_0x243bea=[];for(const _0x6553f5 of _0x828be7){const _0x3bfecf=_0x202319[_0x6553f5[_0x485bca(0xff)]];_0x3bfecf?_0x3bfecf[_0x485bca(0xe1)][_0x485bca(0xe6)]!==_0x6553f5[_0x485bca(0xe1)][_0x485bca(0xe6)]?_0x243bea[_0x485bca(0xd6)](_0x6553f5):_0x3bfecf[_0x485bca(0xe1)][_0x485bca(0xe3)]((_0xfd0a2,_0x134141)=>{const _0x4d7050=_0x485bca,_0x362b1e=_0x6553f5[_0x4d7050(0xe1)][_0x134141];_0xfd0a2['id']!==_0x362b1e['id']&&_0x243bea[_0x4d7050(0xd6)](_0x6553f5);}):_0x243bea[_0x485bca(0xd6)](_0x6553f5);}return _0x243bea;}(_0x34d415,this[_0x2c1ac1(0xdd)]);(_0x5ccd82[_0x2c1ac1(0xe6)]||this[_0x2c1ac1(0xcc)])&&this[_0x2c1ac1(0xfe)](_0x2c1ac1(0xfb),this,_0x5ccd82);}else this[_0x2c1ac1(0x10b)]=this[_0x2c1ac1(0xf4)][_0x2c1ac1(0xd4)](this[_0x2c1ac1(0xd5)]),this[_0x2c1ac1(0xfe)](_0x2c1ac1(0xfb),this);}[_0xdd30c0(0xe0)](){const _0x29bcaf=_0xdd30c0,_0x2caeeb=new _0x26dadd('p',{},[new _0x26dadd(_0x29bcaf(0xda),{'style':_0x29bcaf(0x10d)},[new _0x10f8bf(_0x29bcaf(0x111))])]),_0x444f65=this[_0x29bcaf(0x10e)][_0x29bcaf(0xe9)](this[_0x29bcaf(0x10b)],this[_0x29bcaf(0xd7)][_0x29bcaf(0xdc)](!0x0),{'markUnstableElements':!this[_0x29bcaf(0xcc)],'replaceRemovedWith':_0x2caeeb,'cutAfterLastChange':!this[_0x29bcaf(0xcc)]});if(!_0x444f65[_0x29bcaf(0xf2)][_0x29bcaf(0xe6)]&&!this[_0x29bcaf(0xcc)])return;this[_0x29bcaf(0xcb)]=_0x444f65[_0x29bcaf(0x10b)];let _0x54ba93=[];if(_0x5dcd4b(_0x380f77=>{const _0x53f880=_0x29bcaf,_0x56f9f=_0x1ab64a(_0x380f77,_0x53f880(0x103));if(!_0x56f9f||!_0xc9fbce(_0x56f9f))return!0x1;const _0x72b909=[_0x380f77,..._0x1d965a(_0x380f77)]['at'](-0x2);if(_0x380f77!=_0x72b909){const _0x636d2f=_0x1ab64a(_0x72b909,_0x53f880(0x103));_0xc9fbce(_0x636d2f)||(_0x54ba93[_0x53f880(0xd6)]({'node':_0x72b909,'id':_0x636d2f,'type':_0x53f880(0xdb)}),_0x444f65[_0x53f880(0xf2)][_0x53f880(0xd6)](_0x636d2f));}else _0x444f65[_0x53f880(0xf2)][_0x53f880(0x10a)](_0x56f9f)?_0x54ba93[_0x53f880(0xd6)]({'node':_0x380f77,'type':_0x53f880(0xdb),'id':_0x56f9f}):_0x444f65[_0x53f880(0xea)][_0x53f880(0x10a)](_0x56f9f)?_0x54ba93[_0x53f880(0xd6)]({'node':_0x380f77,'type':_0x53f880(0xf1),'id':_0x56f9f,'anchorId':_0x1ab64a(_0x380f77[_0x53f880(0x112)],_0x53f880(0x103))}):_0x54ba93[_0x53f880(0xd6)]({'node':_0x380f77,'type':_0x53f880(0xca),'id':_0x56f9f});return!0x0;},this[_0x29bcaf(0xcb)]),_0x54ba93=_0x54ba93[_0x29bcaf(0x10f)](({node:_0x2e7848})=>[..._0x1d965a(_0x2e7848),_0x2e7848][_0x29bcaf(0xe7)](_0x31a375=>!_0x1ab64a(_0x31a375,_0x29bcaf(0xde)))),0x0==_0x54ba93[_0x29bcaf(0xe6)])return;const _0x2bcb52=[[_0x54ba93[0x0]]];for(let _0x33a649=0x1;_0x33a649<_0x54ba93[_0x29bcaf(0xe6)];_0x33a649++){const _0x574c60=_0x2bcb52[_0x2bcb52[_0x29bcaf(0xe6)]-0x1],_0x5d25cf=_0x574c60[_0x574c60[_0x29bcaf(0xe6)]-0x1];_0x54ba93[_0x33a649][_0x29bcaf(0x101)][_0x29bcaf(0x112)]==_0x5d25cf[_0x29bcaf(0x101)]&&_0x29bcaf(0xdb)!=_0x54ba93[_0x33a649][_0x29bcaf(0xe8)]&&_0x29bcaf(0xdb)!=_0x5d25cf[_0x29bcaf(0xe8)]?_0x574c60[_0x29bcaf(0xd6)](_0x54ba93[_0x33a649]):_0x2bcb52[_0x29bcaf(0xd6)]([_0x54ba93[_0x33a649]]);}for(const _0x440dbd of _0x2bcb52){const _0x293f0c=_0x440dbd[0x0],_0x598ea2=_0x440dbd[_0x440dbd[_0x29bcaf(0xe6)]-0x1],_0x134271=_0x59795c(_0x293f0c[_0x29bcaf(0x101)][_0x29bcaf(0x112)]);_0x134271&&_0x440dbd[_0x29bcaf(0x113)](_0x134271);const _0x1d438f=_0x59795c(_0x598ea2[_0x29bcaf(0x101)][_0x29bcaf(0xf8)]);_0x1d438f&&_0x440dbd[_0x29bcaf(0xd6)](_0x1d438f);}function _0xc9fbce(_0x2dd7a4){const _0xfe238a=_0x29bcaf;return _0x444f65[_0xfe238a(0xf2)][_0xfe238a(0x10a)](_0x2dd7a4)||_0x444f65[_0xfe238a(0xea)][_0xfe238a(0x10a)](_0x2dd7a4)||_0x444f65[_0xfe238a(0xf7)][_0xfe238a(0x10a)](_0x2dd7a4);}function _0x59795c(_0x1dd910){const _0x32e9a4=_0x29bcaf;if(_0x1dd910&&_0x1ab64a(_0x1dd910,_0x32e9a4(0x103))&&!_0x1ab64a(_0x1dd910,_0x32e9a4(0xde))){const _0x1f0cc1=_0x1ab64a(_0x1dd910,_0x32e9a4(0x103));if(!_0xc9fbce(_0x1f0cc1))return{'node':_0x1dd910,'type':_0x32e9a4(0x100),'id':_0x1f0cc1};}return null;}this[_0x29bcaf(0xdd)]=_0x2bcb52[_0x29bcaf(0xdf)]((_0x109178,_0x1346e8)=>({'changes':_0x109178,'state':_0x29bcaf(0x105),'index':_0x1346e8}));}}export function isValidReplyType(_0x3c3095){const _0xcdd214=_0xdd30c0;return Object[_0xcdd214(0xd1)](AI_REPLY_TYPES)[_0xcdd214(0x10a)](_0x3c3095);}export function isIgnoredReplyType(_0x4d67f0){const _0x5d1009=_0xdd30c0;return AI_REPLY_TYPES_IGNORED[_0x5d1009(0x10a)](_0x4d67f0);}export function isReplyTitleType(_0x43c74a){return _0x43c74a===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x26ea49){const _0xca9e61=_0xdd30c0;return _0xca9e61(0x107)===_0x26ea49;}
@@ -0,0 +1,291 @@
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 Element, type Document } from '../utils/htmlparser.js';
6
+ declare const AIResponseApplier_base: {
7
+ new (): import("ckeditor5/src/utils.js").Observable;
8
+ prototype: import("ckeditor5/src/utils.js").Observable;
9
+ };
10
+ /**
11
+ * AIResponseApplier is a part of the AI API response processing pipeline.
12
+ *
13
+ * The main purpose of this class is to merge HTML suggestions (modified content chunks) returned
14
+ * from the AI API into the existing editor content. This is "black box" processing, which means that
15
+ * the class does not know anything about the editor content structure, it just merges the content
16
+ * based on provided HTML data (part/suggestion and content) and 'data-id' attributes.
17
+ */
18
+ export declare class AIResponseApplier extends /* #__PURE__ -- @preserve */ AIResponseApplier_base {
19
+ constructor(generateUid?: () => string);
20
+ /**
21
+ * Merges the given content part (AI suggestion) with the provided editor content.
22
+ *
23
+ * The main purpose of this function is to merge a piece of AI modified content (`contentPart`)
24
+ * into the given content (editor content, `content`).
25
+ *
26
+ * This is done based on a few rules:
27
+ *
28
+ * 1. Any removed element is not present in the `contentPart` itself but is represented by a special
29
+ * "removed comment" node: `<!-- removed data-id="some_id" -->`. This comment node is located
30
+ * in the same position (relative position to other present nodes) as the element in the original
31
+ * content.
32
+ * 2. Any newly added element is presented in the `contentPart` with a special `data-id="new-element"`
33
+ * attribute.
34
+ * 3. Any existing (from the original `content`) and modified element is presented in the `contentPart`
35
+ * with the same `data-id` value as in the original `content`. Its contents may be different (tag,
36
+ * attributes, entire subtree may change). Also modified elements don't have to be a top level elements
37
+ * from the original `content`, which means the `contentPart` may not keep the original structure
38
+ * or nesting order of the elements.
39
+ *
40
+ * Each type of modification is handled differently when merged into the `content`:
41
+ *
42
+ * 1. Modified elements (with `data-id` attribute with a value which exists in the `content`) replaces
43
+ * the existing element with the same `data-id`, without changing its position in the `content`.
44
+ * 2. Removed elements (marked with a special "removed comment") are removed from the `content` based
45
+ * on the `data-id` comment value.
46
+ * 3. New elements (marked with `data-id="new-element"`) are inserted into the `content` based on their
47
+ * relative position to other nodes in the `contentPart`. The detailed rules for inserting new elements are
48
+ * described in the next section.
49
+ * 4. Invalid elements (elements with `data-id` attribute which value is not present in the `content`,
50
+ * or without `data-id` attribute at all) are ignored and not inserted into the `content`.
51
+ *
52
+ * The position on which new elements from the `contentPart` are inserted into the `content`
53
+ * is determined based on the reference nodes. The reference node is:
54
+ *
55
+ * - A node in the `contentPart` which also exists in the `content` with the same `data-id` attribute value.
56
+ * - A special "removed comment" node which points to the existing element in the `content`.
57
+ * - A special "existing document" comment node which implicates that there should be any content
58
+ * before/after the new element position on which it is inserted into the `content`.
59
+ *
60
+ * The algorithm operates on the top level nodes of the `contentPart` which means only direct root children
61
+ * of the `contentPart` are processed. Nested elements are not processed directly, but as a children
62
+ * of the top level nodes they are included in the merge process.
63
+ *
64
+ * The algorithm iterates over the `contentPart` top level nodes and tries to find a position (directly or via reference node)
65
+ * for any element which should be merged into the `content`.
66
+ *
67
+ * Example 1: Modified element.
68
+ *
69
+ * ```html
70
+ * // content:
71
+ * <p data-id="1">Foo</p>
72
+ * <p data-id="2">Bar</p>
73
+ * <p data-id="3">Cup</p>
74
+ *
75
+ * // contentPart:
76
+ * <p data-id="1">New content</p>
77
+ *
78
+ * // merge result:
79
+ * <p data-id="1">New content</p>
80
+ * <p data-id="2">Bar</p>
81
+ * <p data-id="3">Cup</p>
82
+ * ```
83
+ *
84
+ * Example 2: Multiple modified element.
85
+ *
86
+ * ```html
87
+ * // content:
88
+ * <p data-id="1">Foo</p>
89
+ * <p data-id="2">Bar</p>
90
+ * <p data-id="3">Cup</p>
91
+ *
92
+ * // contentPart:
93
+ * <p data-id="1">New content</p>
94
+ * <!-- existing document !-->
95
+ * <p data-id="3">Another <strong>change</strong></p>
96
+ *
97
+ * // merge result:
98
+ * <p data-id="1">New content</p>
99
+ * <p data-id="2">Bar</p>
100
+ * <p data-id="3">Another <strong>change</strong></p>
101
+ * ```
102
+ *
103
+ * Example 3: Removed element.
104
+ *
105
+ * ```html
106
+ * // content:
107
+ * <p data-id="1">Foo</p>
108
+ * <p data-id="2">Bar</p>
109
+ * <p data-id="3">Cup</p>
110
+ *
111
+ * // contentPart:
112
+ * <!-- removed data-id="1" !-->
113
+ *
114
+ * // merge result:
115
+ * <p data-id="2">Bar</p>
116
+ * <p data-id="3">Cup</p>
117
+ * ```
118
+ *
119
+ * Example 4: New element with reference node before.
120
+ *
121
+ * ```html
122
+ * // content:
123
+ * <p data-id="1">Foo</p>
124
+ * <p data-id="2">Bar</p>
125
+ * <p data-id="3">Cup</p>
126
+ *
127
+ * // contentPart:
128
+ * <p data-id="1">Foo</p>
129
+ * <p data-id="new-element">New element</p>
130
+ * <!-- existing document !-->
131
+ *
132
+ * // merge result:
133
+ * <p data-id="1">Foo</p>
134
+ * <p data-id="new-id">New element</p>
135
+ * <p data-id="2">Bar</p>
136
+ * <p data-id="3">Cup</p>
137
+ * ```
138
+ *
139
+ * Example 5: New element with reference node after.
140
+ *
141
+ * ```html
142
+ * // content:
143
+ * <p data-id="1">Foo</p>
144
+ * <p data-id="2">Bar</p>
145
+ * <p data-id="3">Cup</p>
146
+ *
147
+ * // contentPart:
148
+ * <!-- existing document !-->
149
+ * <p data-id="new-element">New element</p>
150
+ * <p data-id="3">Cup</p>
151
+ *
152
+ * // merge result:
153
+ * <p data-id="1">Foo</p>
154
+ * <p data-id="2">Bar</p>
155
+ * <p data-id="new-id">New element</p>
156
+ * <p data-id="3">Cup</p>
157
+ * ```
158
+ *
159
+ * Example 6: New element at the start of the content.
160
+ *
161
+ * ```html
162
+ * // content:
163
+ * <p data-id="1">Foo</p>
164
+ * <p data-id="2">Bar</p>
165
+ * <p data-id="3">Cup</p>
166
+ *
167
+ * // contentPart:
168
+ * <p data-id="new-element">New element</p>
169
+ * <!-- existing document !-->
170
+ *
171
+ * // merge result:
172
+ * <p data-id="new-id">New element</p>
173
+ * <p data-id="1">Foo</p>
174
+ * <p data-id="2">Bar</p>
175
+ * <p data-id="3">Cup</p>
176
+ * ```
177
+ *
178
+ * Example 7: New element at the end of the content.
179
+ *
180
+ * ```html
181
+ * // content:
182
+ * <p data-id="1">Foo</p>
183
+ * <p data-id="2">Bar</p>
184
+ * <p data-id="3">Cup</p>
185
+ *
186
+ * // contentPart:
187
+ * <!-- existing document !-->
188
+ * <p data-id="new-element">New element</p>
189
+ *
190
+ * // merge result:
191
+ * <p data-id="1">Foo</p>
192
+ * <p data-id="2">Bar</p>
193
+ * <p data-id="3">Cup</p>
194
+ * <p data-id="new-id">New element</p>
195
+ * ```
196
+ *
197
+ * Example 8: New element after removed element.
198
+ *
199
+ * ```html
200
+ * // content:
201
+ * <p data-id="1">Foo</p>
202
+ * <p data-id="2">Bar</p>
203
+ * <p data-id="3">Cup</p>
204
+ *
205
+ * // contentPart:
206
+ * <!-- removed data-id="2" !-->
207
+ * <p data-id="new-element">New element</p>
208
+ *
209
+ * // merge result:
210
+ * <p data-id="1">Foo</p>
211
+ * <p data-id="new-id">New element</p>
212
+ * <p data-id="3">Cup</p>
213
+ * ```
214
+ *
215
+ * Example 9: Wrapped element.
216
+ *
217
+ * ```html
218
+ * // content:
219
+ * <p data-id="1">Foo</p>
220
+ * <p data-id="2">Bar</p>
221
+ * <p data-id="3">Cup</p>
222
+ *
223
+ * // contentPart:
224
+ * <p data-id="1">Foo</p>
225
+ * <div data-id="new-element">
226
+ * <p data-id="2">Bar</p>
227
+ * </div>
228
+ *
229
+ * // merge result:
230
+ * <p data-id="1">Foo</p>
231
+ * <div data-id="new-id">
232
+ * <p data-id="2">Bar</p>
233
+ * </div>
234
+ * <p data-id="3">Cup</p>
235
+ * ```
236
+ *
237
+ * Example 10: Modification of nested elements.
238
+ *
239
+ * ```html
240
+ * // content:
241
+ * <table data-id="1">
242
+ * <tr data-id="11">
243
+ * <td data-id="111">Foo</td>
244
+ * </tr>
245
+ * <tr data-id="12">
246
+ * <td data-id="121">Bar</td>
247
+ * <td data-id="122">Cup</td>
248
+ * </tr>
249
+ * </table>
250
+ *
251
+ * // contentPart:
252
+ * <tr data-id="12">
253
+ * <td data-id="new-element">New content</td>
254
+ * </tr>
255
+ *
256
+ * // merge result:
257
+ * <table data-id="1">
258
+ * <tr data-id="11">
259
+ * <td data-id="111">Foo</td>
260
+ * </tr>
261
+ * <tr data-id="12">
262
+ * <td data-id="new-id">New content</td>
263
+ * </tr>
264
+ * </table>
265
+ * ```
266
+ *
267
+ * Since existing elements are either modifications or only reference nodes in the `contentPart`, there is an additional logic
268
+ * for checking if such elements are identical to the existing ones in the `content`. This way the algorithm can correctly detect
269
+ * if an existing element was modified or not.
270
+ *
271
+ * Additionally, this method supports the following options:
272
+ * - `cutAfterLastChange`: if set to `true`, the content will be cut after the last modified element.
273
+ * - `markUnstableElements`: if set to `true`, the function will mark all elements starting from the last tag element
274
+ * as unstable by adding a special 'data-unstable' attribute to them.
275
+ * - `markUnstableElementsDepth`: if set, it will determine how deep the unstable marking should go.
276
+ */
277
+ merge(contentPart: Document, parsedContent: Document, options?: MergeOptions): MergeResult;
278
+ }
279
+ export type MergeResult = {
280
+ parsedContent: Document;
281
+ newNodeIds: Array<string>;
282
+ modifiedNodeIds: Array<string>;
283
+ removedNodeIds: Array<string>;
284
+ };
285
+ export type MergeOptions = {
286
+ cutAfterLastChange?: boolean;
287
+ markUnstableElements?: boolean;
288
+ markUnstableElementsDepth?: number;
289
+ replaceRemovedWith?: Element;
290
+ };
291
+ export {};
@@ -0,0 +1,24 @@
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 _0x58ee84=_0x144b;(function(_0x466b93,_0x454a38){const _0x53861b=_0x144b,_0x715d2e=_0x466b93();while(!![]){try{const _0x5661b0=-parseInt(_0x53861b(0x1d5))/0x1*(parseInt(_0x53861b(0x1bb))/0x2)+-parseInt(_0x53861b(0x1d0))/0x3*(parseInt(_0x53861b(0x1ea))/0x4)+-parseInt(_0x53861b(0x1e6))/0x5*(-parseInt(_0x53861b(0x1b9))/0x6)+-parseInt(_0x53861b(0x1ee))/0x7*(-parseInt(_0x53861b(0x1d1))/0x8)+-parseInt(_0x53861b(0x1cf))/0x9+-parseInt(_0x53861b(0x1e0))/0xa+parseInt(_0x53861b(0x1b6))/0xb;if(_0x5661b0===_0x454a38)break;else _0x715d2e['push'](_0x715d2e['shift']());}catch(_0x49c45b){_0x715d2e['push'](_0x715d2e['shift']());}}}(_0x57bb,0xee236));import{ObservableMixin as _0xc2f498,uid as _0x57da87}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0xd9d391,findByAttribute as _0x48633c,getAttribute as _0xfc180b,isComment as _0x52578c,isTag as _0xa45678,insertElement as _0x1220b3,moveElement as _0x47ceb9,removeElement as _0x4c57ad,replaceElement as _0x29dd58,serialize as _0x3cb9a0,setAttribute as _0x43d89f,clone as _0x1b726c,findAllComments as _0x4b5199,getParents as _0x1570d8,getNodeNestingLevel as _0x591bb8,areNodesSame as _0x563ee1,removeElementsAfter as _0x34a99e}from'../utils/htmlparser.js';function _0x57bb(){const _0x1c4030=['5411584OiXXsF','_findPrevElementWithDataId','data-wrapped-id','beforebegin','4TlyiUI','_insertNodes','from','_isExistingContentComment','parentNode','forEach','afterend','new-element','replaceRemovedWith','_hasWrappedParent','_markUnstableElements','7979570GGNzVa','_getNodeDataId','afterbegin','indexOf','length','_markLastTagElementUnstable','5zWgEDH','_touchedNodesState','lastTouchedId','removedIds','52vGfgyf','nodeType','cloneNode','markUnstableElements','14GuNdVm','match','nextSibling','_replaceNode','_findReferenceNode','_storeDeletedElementIds','_getUid','childNodes','includes','_markWrappedElements','merge','_existingDataIds','true','slice','data-removed','cutAfterLastChange','46945503DoWopC','_isNewNode','filter','1230918DlZgEO','markUnstableElementsDepth','645944QmwKWC','previousSibling','trim','_generateUid','data-id','push','modifiedIds','_findFallbackReferenceNode','_isExistingNode','newIds','reverse','_isDelNode','lastChild','map','has','_findNextElementWithDataId','splice','invalidIds','data-unstable','_removeSpecialComments','13421304tKBqGG','292917VwmzxC'];_0x57bb=function(){return _0x1c4030;};return _0x57bb();}function _0x144b(_0x4b180c,_0x16cad2){const _0x57bb97=_0x57bb();return _0x144b=function(_0x144b86,_0x3fb3c5){_0x144b86=_0x144b86-0x1ac;let _0x482577=_0x57bb97[_0x144b86];return _0x482577;},_0x144b(_0x4b180c,_0x16cad2);}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0xc2f498(){[_0x58ee84(0x1be)];[_0x58ee84(0x1e7)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x58ee84(0x1b1)]=new Set();constructor(_0x389ee4){const _0x507d56=_0x58ee84;super(),this[_0x507d56(0x1be)]=_0x389ee4||_0x57da87;}[_0x58ee84(0x1b0)](_0x2650e5,_0x448e8c,_0x309b2e){const _0x4a81ed=_0x58ee84,_0x28246c=_0x1b726c(_0x2650e5);if(0x0===_0x448e8c[_0x4a81ed(0x1ad)][_0x4a81ed(0x1e4)]){const _0x2b6559=[];return _0xd9d391(_0x4a81ed(0x1bf),_0x4a81ed(0x1dc),_0x28246c)[_0x4a81ed(0x1da)](_0x11c0dc=>{const _0x2d8b76=_0x4a81ed,_0x2d656=this[_0x2d8b76(0x1be)]();_0x43d89f(_0x11c0dc,_0x2d8b76(0x1bf),_0x2d656),_0x2b6559[_0x2d8b76(0x1c0)](_0x2d656);}),this[_0x4a81ed(0x1ce)](_0x28246c),{'parsedContent':_0x28246c,'newNodeIds':_0x2b6559,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x309b2e&&_0x309b2e[_0x4a81ed(0x1ed)]&&this[_0x4a81ed(0x1e5)](_0x28246c),this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1c4)]=[],this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1c1)]=[],this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1e9)]=[],this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1cc)]=[],this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1e8)]=null,this[_0x4a81ed(0x1b1)]=new Set(_0xd9d391(_0x4a81ed(0x1bf),null,_0x448e8c)[_0x4a81ed(0x1c8)](_0x1e179d=>_0xfc180b(_0x1e179d,_0x4a81ed(0x1bf)))[_0x4a81ed(0x1b8)](_0x5e204f=>!!_0x5e204f));let _0x338ed3=-0x1,_0x3575e1=!0x1;const _0x1519cf=_0x28246c[_0x4a81ed(0x1ad)],_0x49e7c7=Array[_0x4a81ed(0x1d7)](_0x1519cf)[_0x4a81ed(0x1b8)](_0x22c45b=>!(0x3===_0x22c45b[_0x4a81ed(0x1eb)]&&''===_0x3cb9a0(_0x22c45b)[_0x4a81ed(0x1bd)]())),_0x49db9=_0x49e7c7[_0x4a81ed(0x1e4)];for(let _0x4f3729=0x0;_0x4f3729<_0x49db9;_0x4f3729++){const _0x146969=_0x49e7c7[_0x4f3729],_0x243da3=_0x49e7c7[_0x4f3729+0x1];if(this[_0x4a81ed(0x1b7)](_0x146969)){if(-0x1===_0x338ed3&&(_0x338ed3=_0x4f3729),this[_0x4a81ed(0x1af)](_0x146969),!this[_0x4a81ed(0x1b7)](_0x243da3)){const [_0x53dc11,_0xb1c365]=this[_0x4a81ed(0x1f2)](_0x146969,_0x3575e1,_0x448e8c);if(_0x53dc11){const _0x3c29f0=Array[_0x4a81ed(0x1d7)](_0x49e7c7)[_0x4a81ed(0x1b3)](_0x338ed3,_0x4f3729+0x1);this[_0x4a81ed(0x1d6)](_0x53dc11,_0x3c29f0,_0xb1c365),_0x338ed3=-0x1;}}}else{if(this[_0x4a81ed(0x1d8)](_0x146969))_0x3575e1=!0x0;else{if(this[_0x4a81ed(0x1c3)](_0x146969)){const _0x57f42c=_0xfc180b(_0x146969,_0x4a81ed(0x1bf));if(_0x57f42c&&this[_0x4a81ed(0x1b1)][_0x4a81ed(0x1c9)](_0x57f42c)){const _0x5a6980=_0x48633c(_0x4a81ed(0x1bf),_0x57f42c,_0x448e8c);this[_0x4a81ed(0x1f1)](_0x5a6980,_0x146969);}if(this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1e9)][_0x4a81ed(0x1ae)](_0x57f42c)){const _0x5aba3d=this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1e9)][_0x4a81ed(0x1e3)](_0x57f42c);this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1e9)][_0x4a81ed(0x1cb)](_0x5aba3d,0x1);}}else{if(this[_0x4a81ed(0x1c6)](_0x146969)){const _0x4188bf=_0xfc180b(_0x146969,_0x4a81ed(0x1bf));this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1c1)][_0x4a81ed(0x1ae)](_0x4188bf)||this[_0x4a81ed(0x1f3)](_0x146969);}}}}}for(const _0x15ef89 of this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1e9)]){const _0xb4bb78=_0x48633c(_0x4a81ed(0x1bf),_0x15ef89,_0x448e8c);if(_0xb4bb78){if(_0x309b2e&&_0x309b2e[_0x4a81ed(0x1dd)]){this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1e8)]=_0x15ef89;const _0x5eedd1=_0x309b2e[_0x4a81ed(0x1dd)][_0x4a81ed(0x1ec)](!0x0);_0x43d89f(_0x5eedd1,_0x4a81ed(0x1bf),_0x15ef89),_0x43d89f(_0x5eedd1,_0x4a81ed(0x1b4),_0x4a81ed(0x1b2)),_0x29dd58(_0xb4bb78,_0x5eedd1);}else _0x4c57ad(_0xb4bb78);}}if(_0xd9d391(_0x4a81ed(0x1d3),null,_0x448e8c)[_0x4a81ed(0x1da)](_0x47f9cd=>{const _0xf6e34=_0x4a81ed,_0x44de2f=_0xfc180b(_0x47f9cd,_0xf6e34(0x1d3)),_0x1506b6=_0x48633c(_0xf6e34(0x1bf),_0x44de2f,_0x448e8c);_0x1506b6&&_0x47ceb9(_0x1506b6,_0x47f9cd);}),_0xd9d391(_0x4a81ed(0x1bf),_0x4a81ed(0x1dc),_0x448e8c)[_0x4a81ed(0x1da)](_0x5256a7=>{const _0x2f0ad0=_0x4a81ed,_0x32ca5d=this[_0x2f0ad0(0x1ac)](_0x5256a7);_0x43d89f(_0x5256a7,_0x2f0ad0(0x1bf),_0x32ca5d),this[_0x2f0ad0(0x1e7)][_0x2f0ad0(0x1c4)][_0x2f0ad0(0x1c0)](_0x32ca5d);}),this[_0x4a81ed(0x1ce)](_0x448e8c),_0x309b2e&&_0x309b2e[_0x4a81ed(0x1ed)]&&this[_0x4a81ed(0x1df)](_0x448e8c,_0x309b2e[_0x4a81ed(0x1ba)]||0x0),_0x309b2e&&_0x309b2e[_0x4a81ed(0x1b5)]&&this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1e8)]){let _0x25a6a1=_0x48633c(_0x4a81ed(0x1bf),this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1e8)],_0x448e8c);for(;_0x25a6a1;)_0x34a99e(_0x25a6a1),_0x25a6a1=_0x25a6a1[_0x4a81ed(0x1d9)];}return{'parsedContent':_0x448e8c,'newNodeIds':this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1c4)],'modifiedNodeIds':this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1c1)],'removedNodeIds':this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1e9)]};}[_0x58ee84(0x1d6)](_0x3b2f0a,_0x15e370,_0x4a0c01){const _0x2d09e1=_0x58ee84;for(const _0x31c32f of _0x15e370){const _0x44ac7d=this[_0x2d09e1(0x1ac)](_0x31c32f);_0x43d89f(_0x31c32f,_0x2d09e1(0x1bf),_0x44ac7d),this[_0x2d09e1(0x1e7)][_0x2d09e1(0x1c4)][_0x2d09e1(0x1c0)](_0x44ac7d),this[_0x2d09e1(0x1e7)][_0x2d09e1(0x1e8)]=_0x44ac7d;}const _0x3c666a=_0x2d09e1(0x1e2)===_0x4a0c01||_0x2d09e1(0x1db)===_0x4a0c01?_0x15e370[_0x2d09e1(0x1c5)]():_0x15e370;for(const _0x2e0e30 of _0x3c666a)_0x1220b3(_0x3b2f0a,_0x2e0e30,_0x4a0c01);}[_0x58ee84(0x1f1)](_0x532777,_0xc62141){const _0x2f5990=_0x58ee84;if(!_0x532777)return;if(_0x563ee1(_0x532777,_0xc62141))return;const _0x4b540e=this[_0x2f5990(0x1ac)](_0x532777);_0x43d89f(_0xc62141,_0x2f5990(0x1bf),_0x4b540e),this[_0x2f5990(0x1e7)][_0x2f5990(0x1c1)][_0x2f5990(0x1c0)](_0x4b540e),this[_0x2f5990(0x1e7)][_0x2f5990(0x1e8)]=_0x4b540e,_0x29dd58(_0x532777,_0xc62141[_0x2f5990(0x1ec)](!0x0));}[_0x58ee84(0x1f2)](_0x4edb29,_0x23cc02,_0x5bfb04){const _0x489e4e=_0x58ee84,_0xf7708b=this[_0x489e4e(0x1d2)](_0x4edb29,!0x1);if(_0xf7708b){const _0x3b7db7=this[_0x489e4e(0x1e1)](_0xf7708b),_0x3d52d8=_0x48633c(_0x489e4e(0x1bf),_0x3b7db7,_0x5bfb04);if(_0x3d52d8)return[_0x3d52d8,_0x489e4e(0x1db)];this[_0x489e4e(0x1e7)][_0x489e4e(0x1cc)][_0x489e4e(0x1c0)](_0x3b7db7);}const _0x1b20b3=this[_0x489e4e(0x1ca)](_0x4edb29,!0x1);if(_0x1b20b3){const _0x19c972=this[_0x489e4e(0x1e1)](_0x1b20b3),_0x3315bf=_0x48633c(_0x489e4e(0x1bf),_0x19c972,_0x5bfb04);if(_0x3315bf)return[_0x3315bf,_0x489e4e(0x1d4)];this[_0x489e4e(0x1e7)][_0x489e4e(0x1cc)][_0x489e4e(0x1c0)](_0x19c972);}return _0x23cc02?_0x4edb29[_0x489e4e(0x1f0)]?this[_0x489e4e(0x1c2)](_0x4edb29,_0x5bfb04):[_0x5bfb04[_0x489e4e(0x1ad)][_0x5bfb04[_0x489e4e(0x1ad)][_0x489e4e(0x1e4)]-0x1],_0x489e4e(0x1db)]:[_0x5bfb04[_0x489e4e(0x1ad)][0x0],_0x489e4e(0x1d4)];}[_0x58ee84(0x1c2)](_0x263741,_0x3a509a){const _0xe03a28=_0x58ee84,_0x5e8895=[],_0x53f299=this[_0xe03a28(0x1d2)](_0x263741,!0x0);if(_0x53f299){const _0xcba031=this[_0xe03a28(0x1e1)](_0x53f299),_0x3669d4=_0x48633c(_0xe03a28(0x1bf),_0xcba031,_0x3a509a);_0x3669d4&&_0x5e8895[_0xe03a28(0x1c0)]([_0x3669d4,_0xe03a28(0x1db)]);}const _0xf2bad=this[_0xe03a28(0x1ca)](_0x263741,!0x0);if(_0xf2bad){const _0x7257a2=this[_0xe03a28(0x1e1)](_0xf2bad),_0x20afb6=_0x48633c(_0xe03a28(0x1bf),_0x7257a2,_0x3a509a);_0x20afb6&&_0x5e8895[_0xe03a28(0x1c0)]([_0x20afb6,_0xe03a28(0x1d4)]);}if(_0x5e8895[_0xe03a28(0x1e4)]>0x1)return _0x591bb8(_0x5e8895[0x0][0x0])<=_0x591bb8(_0x5e8895[0x1][0x0])?_0x5e8895[0x0]:_0x5e8895[0x1];return 0x1===_0x5e8895[_0xe03a28(0x1e4)]?_0x5e8895[0x0]:[_0x3a509a[_0xe03a28(0x1c7)],_0xe03a28(0x1db)];}[_0x58ee84(0x1ca)](_0x3a39e5,_0x215cb4){const _0x156818=_0x58ee84;let _0x28f9de=_0x3a39e5[_0x156818(0x1f0)],_0x501e6f=null,_0x267660=!0x1;for(;_0x28f9de;){if(_0x52578c(_0x28f9de)){if(this[_0x156818(0x1c6)](_0x28f9de)&&(_0x501e6f=_0x28f9de),this[_0x156818(0x1d8)](_0x28f9de)&&_0x215cb4&&!_0x267660){_0x267660=!0x0,_0x28f9de=_0x28f9de[_0x156818(0x1f0)];continue;}break;}const _0x5de11d=_0xfc180b(_0x28f9de,_0x156818(0x1bf));if(_0x5de11d&&_0x156818(0x1dc)!==_0x5de11d&&this[_0x156818(0x1b1)][_0x156818(0x1c9)](_0x5de11d)){_0x501e6f=_0x28f9de;break;}_0x28f9de=_0x28f9de[_0x156818(0x1f0)];}return _0x501e6f;}[_0x58ee84(0x1d2)](_0x306d70,_0x454c73){const _0x274fe6=_0x58ee84;let _0x3e88ae=_0x306d70[_0x274fe6(0x1bc)],_0x59bd62=null,_0x5662b3=!0x1;for(;_0x3e88ae;){if(_0x52578c(_0x3e88ae)){if(this[_0x274fe6(0x1c6)](_0x3e88ae)&&(_0x59bd62=_0x3e88ae),this[_0x274fe6(0x1d8)](_0x3e88ae)&&_0x454c73&&!_0x5662b3){_0x5662b3=!0x0,_0x3e88ae=_0x3e88ae[_0x274fe6(0x1bc)];continue;}break;}const _0x29e655=_0xfc180b(_0x3e88ae,_0x274fe6(0x1bf));if(_0x29e655&&_0x274fe6(0x1dc)!==_0x29e655&&this[_0x274fe6(0x1b1)][_0x274fe6(0x1c9)](_0x29e655)){_0x59bd62=_0x3e88ae;break;}_0x3e88ae=_0x3e88ae[_0x274fe6(0x1bc)];}return _0x59bd62;}[_0x58ee84(0x1af)](_0x4f79cf){const _0x14f0af=_0x58ee84;_0xa45678(_0x4f79cf)&&_0xd9d391(_0x14f0af(0x1bf),null,_0x4f79cf)[_0x14f0af(0x1da)](_0x17f85c=>{const _0x4a9309=_0x14f0af;if(this[_0x4a9309(0x1c3)](_0x17f85c)&&!this[_0x4a9309(0x1de)](_0x17f85c)){const _0x21bde4=_0xfc180b(_0x17f85c,_0x4a9309(0x1bf));_0x43d89f(_0x17f85c,_0x4a9309(0x1d3),_0x21bde4),_0x43d89f(_0x17f85c,_0x4a9309(0x1bf),null);}});}[_0x58ee84(0x1e1)](_0x4b7bef){const _0x17c6af=_0x58ee84;if(!_0x4b7bef)return null;if(_0xa45678(_0x4b7bef))return _0xfc180b(_0x4b7bef,_0x17c6af(0x1bf));if(_0x52578c(_0x4b7bef)){const _0x1f92fe=_0x3cb9a0(_0x4b7bef)[_0x17c6af(0x1ef)](/removed[\s*-]data-id="([^"]+)"/);if(_0x1f92fe&&_0x1f92fe[0x1])return _0x1f92fe[0x1];}return null;}[_0x58ee84(0x1f3)](_0x4d2f03){const _0x2457d6=_0x58ee84;if(_0x52578c(_0x4d2f03)){const _0x3d0486=_0x3cb9a0(_0x4d2f03)[_0x2457d6(0x1ef)](/removed[\s*-]data-id="([^"]+)"/);_0x3d0486&&_0x3d0486[0x1]&&this[_0x2457d6(0x1e7)][_0x2457d6(0x1e9)][_0x2457d6(0x1c0)](_0x3d0486[0x1]);}}[_0x58ee84(0x1ac)](_0x49c472){const _0x41387f=_0x58ee84;return this[_0x41387f(0x1c3)](_0x49c472)?_0xfc180b(_0x49c472,_0x41387f(0x1bf)):this[_0x41387f(0x1be)]();}[_0x58ee84(0x1ce)](_0x18992c){const _0x3181d7=_0x58ee84;_0x4b5199(_0x18992c)[_0x3181d7(0x1b8)](_0x1b5956=>this[_0x3181d7(0x1c6)](_0x1b5956)||this[_0x3181d7(0x1d8)](_0x1b5956))[_0x3181d7(0x1da)](_0x512996=>{_0x4c57ad(_0x512996);});}[_0x58ee84(0x1e5)](_0x17b665){const _0x2e0608=_0x58ee84,_0x54ecdb=_0x17b665[_0x2e0608(0x1ad)],_0x2ed95a=_0x54ecdb[_0x54ecdb[_0x2e0608(0x1e4)]-0x1];_0x2ed95a&&_0xa45678(_0x2ed95a)&&_0x43d89f(_0x2ed95a,_0x2e0608(0x1cd),_0x2e0608(0x1b2));}[_0x58ee84(0x1df)](_0x5a65df,_0x1a9e36){const _0x4038dd=_0x58ee84,_0x552f35=_0x48633c(_0x4038dd(0x1cd),_0x4038dd(0x1b2),_0x5a65df);if(!_0x552f35)return;const _0x4a6c86=_0x1570d8(_0x552f35)[_0x4038dd(0x1b3)](0x0,-0x1),_0x503380=_0x4a6c86[_0x4038dd(0x1e4)];let _0x15862f=_0x552f35;if(_0x503380>_0x1a9e36){let _0x4db8a3=_0x503380,_0x49f699=null;for(;_0x4db8a3>_0x1a9e36&&_0x4db8a3>=0x0;)_0x4db8a3--,_0x49f699=_0x4a6c86[_0x4db8a3];_0x49f699&&(_0x15862f=_0x49f699,_0x43d89f(_0x552f35,_0x4038dd(0x1cd),null),_0x43d89f(_0x49f699,_0x4038dd(0x1cd),_0x4038dd(0x1b2)));}else{if(_0x503380<_0x1a9e36){let _0x441a73=_0x503380,_0x48b5ef=_0x552f35;for(;_0x441a73<_0x1a9e36;){const _0x682927=_0x48b5ef[_0x4038dd(0x1ad)][_0x4038dd(0x1b8)](_0x7c513e=>_0xa45678(_0x7c513e));if(0x0===_0x682927[_0x4038dd(0x1e4)])break;_0x441a73++,_0x48b5ef=_0x682927[_0x682927[_0x4038dd(0x1e4)]-0x1];}_0x48b5ef&&(_0x15862f=_0x48b5ef,_0x43d89f(_0x552f35,_0x4038dd(0x1cd),null),_0x43d89f(_0x48b5ef,_0x4038dd(0x1cd),_0x4038dd(0x1b2)));}}let _0x4f3b1b=_0x15862f;for(;_0x4f3b1b;){for(;_0x4f3b1b[_0x4038dd(0x1f0)];)_0x4f3b1b=_0x4f3b1b[_0x4038dd(0x1f0)],_0xa45678(_0x4f3b1b)&&_0x43d89f(_0x4f3b1b,_0x4038dd(0x1cd),_0x4038dd(0x1b2));_0x4f3b1b=_0x4f3b1b[_0x4038dd(0x1d9)];}}[_0x58ee84(0x1b7)](_0x5bc76e){const _0x1383ff=_0x58ee84;return Boolean(_0x1383ff(0x1dc)===_0xfc180b(_0x5bc76e,_0x1383ff(0x1bf)));}[_0x58ee84(0x1c3)](_0x325394){const _0x1734f3=_0x58ee84;return Boolean((_0xfc180b(_0x325394,_0x1734f3(0x1bf))||'')[_0x1734f3(0x1e4)]>0x0&&_0x1734f3(0x1dc)!==_0xfc180b(_0x325394,_0x1734f3(0x1bf)));}[_0x58ee84(0x1c6)](_0x2c0157){const _0x1b7bc1=_0x58ee84;return!!_0x2c0157&&Boolean(_0x52578c(_0x2c0157)&&_0x3cb9a0(_0x2c0157)[_0x1b7bc1(0x1ef)](/removed[\s*-]data-id="[^"]+"/));}[_0x58ee84(0x1de)](_0x1e3379){const _0x7ed168=_0x58ee84;let _0x1a0c5c=_0x1e3379[_0x7ed168(0x1d9)];for(;_0x1a0c5c;){if(_0xfc180b(_0x1a0c5c,_0x7ed168(0x1d3)))return!0x0;_0x1a0c5c=_0x1a0c5c[_0x7ed168(0x1d9)];}return!0x1;}[_0x58ee84(0x1d8)](_0x457a19){const _0x302f6b=_0x58ee84;return Boolean(_0x52578c(_0x457a19)&&_0x3cb9a0(_0x457a19)[_0x302f6b(0x1ef)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -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
+ import { type Document } from '../utils/htmlparser.js';
6
+ declare const AIResponseParser_base: {
7
+ new (): import("ckeditor5/src/utils.js").Observable;
8
+ prototype: import("ckeditor5/src/utils.js").Observable;
9
+ };
10
+ /**
11
+ * An utility for parsing AI responses.
12
+ *
13
+ * It can handle markdown and HTML content. The main purpose of this class is to clean-up
14
+ * the HTML content for further processing.
15
+ */
16
+ export declare class AIResponseParser extends /* #__PURE__ -- @preserve */ AIResponseParser_base {
17
+ constructor();
18
+ /**
19
+ * Converts the given Markdown string to HTML. During conversion HTML is sanitized and normalized.
20
+ */
21
+ convertMarkdownToHTML(markdown: string): Document;
22
+ /**
23
+ * Parses, sanitizes and normalizes given HTML string.
24
+ */
25
+ parseAndNormalizeHTML(html: string): Document;
26
+ }
27
+ export {};
@@ -0,0 +1,24 @@
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 _0x3b43(_0x3ff088,_0x56ae8c){const _0x243684=_0x2436();return _0x3b43=function(_0x3b430a,_0x12577e){_0x3b430a=_0x3b430a-0x70;let _0x3f6e44=_0x243684[_0x3b430a];return _0x3f6e44;},_0x3b43(_0x3ff088,_0x56ae8c);}const _0x361180=_0x3b43;(function(_0x149004,_0x80cc33){const _0x24ef46=_0x3b43,_0x4b8b5f=_0x149004();while(!![]){try{const _0x364b85=-parseInt(_0x24ef46(0x7c))/0x1+-parseInt(_0x24ef46(0x70))/0x2*(-parseInt(_0x24ef46(0x78))/0x3)+parseInt(_0x24ef46(0x7a))/0x4*(-parseInt(_0x24ef46(0x83))/0x5)+-parseInt(_0x24ef46(0x7d))/0x6*(-parseInt(_0x24ef46(0x74))/0x7)+parseInt(_0x24ef46(0x72))/0x8*(parseInt(_0x24ef46(0x76))/0x9)+parseInt(_0x24ef46(0x71))/0xa*(-parseInt(_0x24ef46(0x81))/0xb)+parseInt(_0x24ef46(0x84))/0xc;if(_0x364b85===_0x80cc33)break;else _0x4b8b5f['push'](_0x4b8b5f['shift']());}catch(_0x4febdb){_0x4b8b5f['push'](_0x4b8b5f['shift']());}}}(_0x2436,0x21249));import{ObservableMixin as _0x3685bc}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x45418f}from'@ckeditor/ckeditor5-markdown-gfm';function _0x2436(){const _0x3b8abd=['66029hKtWNA','528396Ggfsok','_parseHTML','children','parse','1800139ahTAIv','convertMarkdownToHTML','35juMwnb','508824ZMIIMy','156tYDkLk','10PzUGvN','1660208iNdbvy','parseAndNormalizeHTML','7sEtrXx','_m2html','9AszQUC','</dummy>','6858MtWbUb','<dummy>','86212zyQpwZ','replace'];_0x2436=function(){return _0x3b8abd;};return _0x2436();}import{parse as _0x2827f6}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x3685bc(){[_0x361180(0x75)];constructor(){const _0x72aa94=_0x361180;super(),this[_0x72aa94(0x75)]=new _0x45418f();}[_0x361180(0x82)](_0x35a0ed){const _0x31c8fd=_0x361180,_0x241ae6=this[_0x31c8fd(0x75)][_0x31c8fd(0x80)](_0x35a0ed);return this[_0x31c8fd(0x73)](_0x241ae6);}[_0x361180(0x73)](_0x4194b4){const _0x23d660=_0x361180;return this[_0x23d660(0x7e)](_0x4194b4);}[_0x361180(0x7e)](_0x4f334c){const _0x4820b=_0x361180,_0x10727b=_0x4f334c[_0x4820b(0x7b)](/^\t+/gm,'\x20')[_0x4820b(0x7b)](/\n*/g,'')[_0x4820b(0x7b)](/\s+/g,'\x20')[_0x4820b(0x7b)](/<[^>]*?$/g,''),_0x24510e=_0x2827f6(_0x4820b(0x79)+_0x10727b+_0x4820b(0x77));return _0x24510e[_0x4820b(0x7f)]=_0x24510e[_0x4820b(0x7f)][0x0][_0x4820b(0x7f)],_0x24510e;}}
@@ -0,0 +1,17 @@
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/aidisclaimerview
7
+ */
8
+ import { type Locale } from 'ckeditor5/src/utils.js';
9
+ import { View } from 'ckeditor5/src/ui.js';
10
+ /**
11
+ * The disclaimer view of the AI plugin.
12
+ *
13
+ * It displays information about the AI, such as a reminder to double-check responses.
14
+ */
15
+ export declare class AIDisclaimerView extends View {
16
+ constructor(locale: Locale);
17
+ }
@@ -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 _0xeedd(){var _0x59d168=['44vdpXbt','3573XGhtAS','ck-ai-disclaimer','div','203WqmqkL','111544wFLAgA','8442WJhrmY','45078FvANNW','setTemplate','4216IPcqRh','AI_DISCLAIMER_TEXT','5650WHyHxG','51933DDnirC','3251540YGNNmg','ck-ai-disclaimer__content','2025526OOOhMS'];_0xeedd=function(){return _0x59d168;};return _0xeedd();}(function(_0x544a86,_0x5901d9){var _0x420c92=_0x3071,_0x989455=_0x544a86();while(!![]){try{var _0x4df3c7=-parseInt(_0x420c92(0x10a))/0x1+-parseInt(_0x420c92(0x114))/0x2+-parseInt(_0x420c92(0x111))/0x3*(-parseInt(_0x420c92(0x115))/0x4)+-parseInt(_0x420c92(0x112))/0x5+-parseInt(_0x420c92(0x10b))/0x6*(-parseInt(_0x420c92(0x109))/0x7)+-parseInt(_0x420c92(0x10e))/0x8*(parseInt(_0x420c92(0x116))/0x9)+parseInt(_0x420c92(0x110))/0xa*(parseInt(_0x420c92(0x10c))/0xb);if(_0x4df3c7===_0x5901d9)break;else _0x989455['push'](_0x989455['shift']());}catch(_0x3876f3){_0x989455['push'](_0x989455['shift']());}}}(_0xeedd,0x89648));import{View as _0x55bb1c}from'ckeditor5/src/ui.js';import{getTranslation as _0x9a54f2}from'../../aicore/utils/common-translations.js';function _0x3071(_0x1d65e5,_0x5cfa33){var _0xeedd36=_0xeedd();return _0x3071=function(_0x30717c,_0x292c81){_0x30717c=_0x30717c-0x108;var _0x473c83=_0xeedd36[_0x30717c];return _0x473c83;},_0x3071(_0x1d65e5,_0x5cfa33);}export class AIDisclaimerView extends _0x55bb1c{constructor(_0x240d3e){var _0x2302ef=_0x3071;super(_0x240d3e),this[_0x2302ef(0x10d)]({'tag':_0x2302ef(0x108),'attributes':{'class':['ck',_0x2302ef(0x117)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x2302ef(0x113)]},'children':[{'text':_0x9a54f2(_0x240d3e,_0x2302ef(0x10f))}]}]});}}
@@ -0,0 +1,37 @@
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 { View } from 'ckeditor5/src/ui.js';
6
+ import { type Locale } from 'ckeditor5/src/utils.js';
7
+ /**
8
+ * @module ai/aicore/ui/aiskeleton
9
+ */
10
+ export declare class AISkeletonView extends View {
11
+ /**
12
+ * @inheritDoc
13
+ */
14
+ constructor(locale: Locale | undefined, skeletonItemsList: Array<SkeletonDefinition>);
15
+ }
16
+ /**
17
+ * The predefined skeleton definitions for the AI skeleton view.
18
+ */
19
+ export declare const SKELETON_DEFINITIONS: Record<string, Array<SkeletonDefinition>>;
20
+ export type SkeletonDefinition = {
21
+ tag: string;
22
+ attributes: {
23
+ class?: string;
24
+ width: string;
25
+ height: string;
26
+ align: AlignOptions;
27
+ };
28
+ };
29
+ export type SkeletonItem = {
30
+ tag: string;
31
+ attributes: {
32
+ class: Array<string>;
33
+ style: string;
34
+ };
35
+ };
36
+ type AlignOptions = 'left' | 'right' | 'center';
37
+ export {};
@@ -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 _0x4d2712=_0x199d;(function(_0x40ff8b,_0x17d574){const _0x2d190c=_0x199d,_0x434326=_0x40ff8b();while(!![]){try{const _0x4cc641=-parseInt(_0x2d190c(0x7a))/0x1+parseInt(_0x2d190c(0x81))/0x2*(-parseInt(_0x2d190c(0x85))/0x3)+-parseInt(_0x2d190c(0x6e))/0x4+parseInt(_0x2d190c(0x8f))/0x5*(parseInt(_0x2d190c(0x88))/0x6)+-parseInt(_0x2d190c(0x71))/0x7*(-parseInt(_0x2d190c(0x67))/0x8)+-parseInt(_0x2d190c(0x68))/0x9+parseInt(_0x2d190c(0x69))/0xa*(parseInt(_0x2d190c(0x8c))/0xb);if(_0x4cc641===_0x17d574)break;else _0x434326['push'](_0x434326['shift']());}catch(_0x279473){_0x434326['push'](_0x434326['shift']());}}}(_0x1d09,0xb74fe));function _0x199d(_0x3603a1,_0x1ac1f4){const _0x1d096e=_0x1d09();return _0x199d=function(_0x199d1b,_0x3d3ee6){_0x199d1b=_0x199d1b-0x67;let _0x26a133=_0x1d096e[_0x199d1b];return _0x26a133;},_0x199d(_0x3603a1,_0x1ac1f4);}import{View as _0x807f82}from'ckeditor5/src/ui.js';function _0x1d09(){const _0x1c83b5=['center','fill','2mIBxeH',';\x20height:\x20','24px','right','2080533YoerkD','44px','ck-ai-skeleton__item','96pvkwol','150px','div','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','66JSTmfq','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','map','369035SzIkex','_createSkeletonItems','319928KwQvqn','1683351qgquSb','4779210igyxqh','setTemplate','width:\x20','left','ck-ai-skeleton','5169204qIofXZ','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','width','42GsIPZR','40px','88px','250px','class','128px','attributes','72px','140px','1364687ThClMU','tag','height','align','100%'];_0x1d09=function(){return _0x1c83b5;};return _0x1d09();}export class AISkeletonView extends _0x807f82{constructor(_0x55235e,_0x3beaeb){const _0x4c20e1=_0x199d;super(_0x55235e),this[_0x4c20e1(0x6a)]({'tag':_0x4c20e1(0x8a),'attributes':{'class':['ck',_0x4c20e1(0x6d)]},'children':this[_0x4c20e1(0x90)](_0x3beaeb)});}[_0x4d2712(0x90)](_0xaa41fc){const _0x54c9fa=_0x4d2712,_0x485cc8=['ck',_0x54c9fa(0x87)];return _0xaa41fc[_0x54c9fa(0x8e)](_0x408b8c=>{const _0x434380=_0x54c9fa;let _0x22312a='';switch(_0x408b8c[_0x434380(0x77)][_0x434380(0x7d)]){case _0x434380(0x84):_0x22312a=_0x434380(0x6f);break;case _0x434380(0x7f):_0x22312a=_0x434380(0x8b);break;case _0x434380(0x6c):_0x22312a=_0x434380(0x8d);}return{'tag':_0x408b8c[_0x434380(0x7b)],'attributes':{'class':[..._0x485cc8,_0x408b8c[_0x434380(0x77)][_0x434380(0x75)]?_0x408b8c[_0x434380(0x77)][_0x434380(0x75)]:''],'style':_0x434380(0x6b)+_0x408b8c[_0x434380(0x77)][_0x434380(0x70)]+_0x434380(0x82)+_0x408b8c[_0x434380(0x77)][_0x434380(0x7c)]+';'+_0x22312a}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x4d2712(0x8a),'attributes':{'width':_0x4d2712(0x7e),'height':_0x4d2712(0x78),'align':_0x4d2712(0x84)}},{'tag':_0x4d2712(0x8a),'attributes':{'width':_0x4d2712(0x74),'height':_0x4d2712(0x72),'align':_0x4d2712(0x84)}},{'tag':_0x4d2712(0x8a),'attributes':{'width':_0x4d2712(0x7e),'height':_0x4d2712(0x73),'align':_0x4d2712(0x84)}},{'tag':_0x4d2712(0x8a),'attributes':{'width':_0x4d2712(0x89),'height':_0x4d2712(0x72),'align':_0x4d2712(0x84)}},{'tag':_0x4d2712(0x8a),'attributes':{'width':_0x4d2712(0x7e),'height':_0x4d2712(0x79),'align':_0x4d2712(0x84)}},{'tag':_0x4d2712(0x8a),'attributes':{'width':_0x4d2712(0x74),'height':_0x4d2712(0x72),'align':_0x4d2712(0x84)}},{'tag':_0x4d2712(0x8a),'attributes':{'width':_0x4d2712(0x7e),'height':_0x4d2712(0x73),'align':_0x4d2712(0x84)}}],'aiHistory':ta(0x5,_0x4d2712(0x7e),_0x4d2712(0x86),_0x4d2712(0x84)),'aiChatResources':ta(0x8,_0x4d2712(0x7e),_0x4d2712(0x83),_0x4d2712(0x84)),'aiReviewChecks':[{'tag':_0x4d2712(0x8a),'attributes':{'width':_0x4d2712(0x76),'height':_0x4d2712(0x83),'align':_0x4d2712(0x6c)}},{'tag':_0x4d2712(0x8a),'attributes':{'width':_0x4d2712(0x7e),'height':_0x4d2712(0x83),'align':_0x4d2712(0x6c)}},{'tag':_0x4d2712(0x8a),'attributes':{'width':_0x4d2712(0x76),'height':_0x4d2712(0x83),'align':_0x4d2712(0x6c)}}]};function ta(_0x4a12d8,_0x10115e,_0x16e108,_0x48b37){const _0xa2e2ce=_0x4d2712;return new Array(_0x4a12d8)[_0xa2e2ce(0x80)](null)[_0xa2e2ce(0x8e)](()=>({'tag':_0xa2e2ce(0x8a),'attributes':{'width':_0x10115e,'height':_0x16e108,'align':_0x48b37}}));}
@@ -0,0 +1,14 @@
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/aispinner
7
+ */
8
+ import { SpinnerView } from 'ckeditor5/src/ui.js';
9
+ export declare class AISpinnerView extends SpinnerView {
10
+ /**
11
+ * @inheritDoc
12
+ */
13
+ constructor(size?: 'small' | 'tiny' | undefined);
14
+ }
@@ -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 _0x5bf9(_0x1ffa3d,_0x20319a){const _0x17da05=_0x17da();return _0x5bf9=function(_0x5bf96e,_0xe18d73){_0x5bf96e=_0x5bf96e-0x91;let _0x287ad5=_0x17da05[_0x5bf96e];return _0x287ad5;},_0x5bf9(_0x1ffa3d,_0x20319a);}(function(_0x551925,_0x430211){const _0x4e950f=_0x5bf9,_0x1cb50f=_0x551925();while(!![]){try{const _0x223b41=parseInt(_0x4e950f(0x9b))/0x1*(-parseInt(_0x4e950f(0x9c))/0x2)+-parseInt(_0x4e950f(0x99))/0x3+parseInt(_0x4e950f(0x92))/0x4+-parseInt(_0x4e950f(0x9a))/0x5+-parseInt(_0x4e950f(0x94))/0x6*(parseInt(_0x4e950f(0x98))/0x7)+parseInt(_0x4e950f(0x95))/0x8+parseInt(_0x4e950f(0x96))/0x9;if(_0x223b41===_0x430211)break;else _0x1cb50f['push'](_0x1cb50f['shift']());}catch(_0x4470cc){_0x1cb50f['push'](_0x1cb50f['shift']());}}}(_0x17da,0x3f07c));import{SpinnerView as _0x1d0a70}from'ckeditor5/src/ui.js';export class AISpinnerView extends _0x1d0a70{constructor(_0x3c0880=void 0x0){const _0x29579d=_0x5bf9;super();const _0x464d30=_0x3c0880?_0x29579d(0x97)+_0x3c0880:'';this[_0x29579d(0x93)]({'tag':_0x29579d(0x91),'attributes':{'class':[_0x29579d(0x9d),_0x464d30]}});}}function _0x17da(){const _0x50d8a5=['1937592ZaTDbN','9553203gdPXMS','ck-ai-spinner_','1154405kbZOCs','59019qkJjAs','1262995rtmBCd','107zckpaJ','7580haGoPI','ck-ai-spinner','span','508212WGqeBP','extendTemplate','18mLfIoF'];_0x17da=function(){return _0x50d8a5;};return _0x17da();}