@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,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 _0x657b9e=_0x3432;(function(_0x9ec60e,_0x548d53){var _0xafcac2=_0x3432,_0x296c73=_0x9ec60e();while(!![]){try{var _0x15c90d=-parseInt(_0xafcac2(0x11d))/0x1*(-parseInt(_0xafcac2(0x126))/0x2)+-parseInt(_0xafcac2(0x11a))/0x3*(-parseInt(_0xafcac2(0x11f))/0x4)+parseInt(_0xafcac2(0x129))/0x5*(parseInt(_0xafcac2(0x12b))/0x6)+parseInt(_0xafcac2(0x123))/0x7*(parseInt(_0xafcac2(0x124))/0x8)+parseInt(_0xafcac2(0x127))/0x9*(-parseInt(_0xafcac2(0x119))/0xa)+parseInt(_0xafcac2(0x12a))/0xb*(-parseInt(_0xafcac2(0x11c))/0xc)+parseInt(_0xafcac2(0x122))/0xd*(-parseInt(_0xafcac2(0x121))/0xe);if(_0x15c90d===_0x548d53)break;else _0x296c73['push'](_0x296c73['shift']());}catch(_0x2bc466){_0x296c73['push'](_0x296c73['shift']());}}}(_0x4c24,0x740f8));import{ContextPlugin as _0x4bb0de}from'ckeditor5/src/core.js';import{AIReviewModeController as _0x3757cd}from'./aireviewmodecontroller.js';import{AIReviewModeUI as _0x5de8fb}from'./aireviewmodeui.js';function _0x3432(_0x2b8dce,_0x1fd6dd){var _0x4c24d2=_0x4c24();return _0x3432=function(_0x3432b5,_0x533eaa){_0x3432b5=_0x3432b5-0x119;var _0x4dfe30=_0x4c24d2[_0x3432b5];return _0x4dfe30;},_0x3432(_0x2b8dce,_0x1fd6dd);}function _0x4c24(){var _0x2e0668=['713430ToUYPT','pluginName','5iyYfee','5164918PkOKKL','5614446XUEtrR','50iUxVjO','90411sPmBLo','AIReviewMode','12piseRz','326fUjQeN','isOfficialPlugin','20eLzPgf','isPremiumPlugin','1358LBFhMB','65546czjvkI','4876550XFHUKE','8JAxWwk','requires','290iuyGfI'];_0x4c24=function(){return _0x2e0668;};return _0x4c24();}import{AIReviewModeEditing as _0x12be35}from'./aireviewmodeediting.js';export class AIReviewMode extends _0x4bb0de{static get[_0x657b9e(0x125)](){return[_0x3757cd,_0x5de8fb,_0x12be35];}static get[_0x657b9e(0x128)](){var _0x2c5566=_0x657b9e;return _0x2c5566(0x11b);}static get[_0x657b9e(0x11e)](){return!0x0;}static get[_0x657b9e(0x120)](){return!0x0;}}
@@ -0,0 +1,32 @@
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/aireviewmode/aireviewmodecontroller
7
+ * @publicApi
8
+ */
9
+ import { ContextPlugin } from 'ckeditor5/src/core.js';
10
+ import { AIConnector } from '../aicore/aiconnector.js';
11
+ export declare class AIReviewModeController extends ContextPlugin {
12
+ /**
13
+ * @inheritDoc
14
+ */
15
+ static get requires(): readonly [typeof AIConnector];
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ static get pluginName(): "AIReviewModeController";
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ static get isOfficialPlugin(): true;
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ static get isPremiumPlugin(): true;
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ init(): void;
32
+ }
@@ -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 _0x2aa994=_0x5914;(function(_0x33ad0d,_0x3259ef){const _0x5a1d35=_0x5914,_0x19c1b3=_0x33ad0d();while(!![]){try{const _0x2462f8=parseInt(_0x5a1d35(0x120))/0x1+-parseInt(_0x5a1d35(0x176))/0x2+-parseInt(_0x5a1d35(0x163))/0x3+parseInt(_0x5a1d35(0x151))/0x4*(parseInt(_0x5a1d35(0x14e))/0x5)+-parseInt(_0x5a1d35(0x153))/0x6+-parseInt(_0x5a1d35(0x11b))/0x7+parseInt(_0x5a1d35(0x11e))/0x8*(parseInt(_0x5a1d35(0x187))/0x9);if(_0x2462f8===_0x3259ef)break;else _0x19c1b3['push'](_0x19c1b3['shift']());}catch(_0x189408){_0x19c1b3['push'](_0x19c1b3['shift']());}}}(_0x566f,0x2a3f2));import{ContextPlugin as _0x4abc02}from'ckeditor5/src/core.js';import{CKEditorError as _0x1f40b1,logError as _0xc09db4}from'ckeditor5/src/utils.js';import{AIConnector as _0x344a36}from'../aicore/aiconnector.js';import{AIReviewCheckList as _0x40c6f9}from'./model/aireviewchecklist.js';import{AIReviewSystemCheckRun as _0x36f148}from'./model/aireviewsystemcheckrun.js';import{AIReviewCustomCheckRun as _0x3ca40c}from'./model/aireviewcustomcheckrun.js';function _0x566f(){const _0x4bd5d1=['setAvailableChecks','finished','acceptAllChanges','aireviewmode-check-run-failed','dismissChange','args','model','reviewCheckRunUpdated','isOfficialPlugin','isCustom','status','abortReviewStream','showReviewCompletedView','markChangePositionInEditorContent','listenTo','getDocumentData','rejectChange','get','switchToReadOnly','init','markAllChangesAsAccepted','error-chunk','_aiReviewCheckList','reviewCheckResultReady','getContentElement','aireviewmode-no-current-check-run','ck-ai-review-mode-highlights','start','AIReviewModeController','aireviewmode-source-check-not-found','map','showChunkErrorView','requires','toggleDiff','markChangeAsAccepted','isChangeActive','_currentReviewCheckRun','loading','_onReviewModeRunLeave','restart','checks','aborted','_onDiffChange','pluginName','accepted','75970qQcifa','AIConnector','result','8LOgukh','runReviewCheck','967014uezPPB','showActionsWhenResultIsReady','showCheckRunResult','contentNew','length','_isDiffOn','models','abort','message','_aiReviewModeUi','markChangeAsRejected','_aiConnector','clearAllMarkers','scrollToChangeInEditorContent','prompt','classList','147558IhTHie','resetActiveStateInResults','retryReview','scrollToSuggestionInDocument','rejected','_aiReviewModeEditing','switchToEdit','AIReviewModeEditing','title','getReviewCheckList','showCheckRunResults','find','AIReviewModeUI','showReviewCheckList','includes','error-general','contentInitial','reviewCheckResultAdded','forceReadyState','406178BnTULa','add','diffContent','plugins','isPremiumPlugin','source','context','ready','change','stopListening','setCheckResultTitle','getActiveChanges','getCheckById','setItemAsActive','addResultChanges','custom','remove','888453ruzCaw','reviewCheckResultRejected','reviewCheckResultAccepted','showGeneralErrorView','ai-request-aborted','leaveReviewModeResultList','data','getAll','finishReview','processedResultsCount','leaveReviewMode','ck-ai-review-mode-diff','changes','documentData','updateChangeState','1795710IXGmKf','_logError','applyChange','40XHFmRx','acceptChange','319043Reizsm'];_0x566f=function(){return _0x4bd5d1;};return _0x566f();}import{AIReviewModels as _0x1a1226}from'./model/aireviewmodels.js';function _0x5914(_0x377c66,_0x18ab59){const _0x566ff8=_0x566f();return _0x5914=function(_0x591437,_0xebf552){_0x591437=_0x591437-0x10e;let _0x1293b7=_0x566ff8[_0x591437];return _0x1293b7;},_0x5914(_0x377c66,_0x18ab59);}export class AIReviewModeController extends _0x4abc02{[_0x2aa994(0x15e)];[_0x2aa994(0x15c)];[_0x2aa994(0x168)];[_0x2aa994(0x137)];[_0x2aa994(0x145)];[_0x2aa994(0x158)]=!0x1;static get[_0x2aa994(0x141)](){return[_0x344a36];}static get[_0x2aa994(0x14c)](){const _0x50a428=_0x2aa994;return _0x50a428(0x13d);}static get[_0x2aa994(0x129)](){return!0x0;}static get[_0x2aa994(0x17a)](){return!0x0;}[_0x2aa994(0x134)](){const _0x9f278c=_0x2aa994;this[_0x9f278c(0x15e)]=this[_0x9f278c(0x17c)][_0x9f278c(0x179)][_0x9f278c(0x132)](_0x9f278c(0x14f)),this[_0x9f278c(0x15c)]=this[_0x9f278c(0x17c)][_0x9f278c(0x179)][_0x9f278c(0x132)](_0x9f278c(0x16f)),this[_0x9f278c(0x168)]=this[_0x9f278c(0x17c)][_0x9f278c(0x179)][_0x9f278c(0x132)](_0x9f278c(0x16a)),this[_0x9f278c(0x137)]=new _0x40c6f9(),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x16c),async()=>{const _0x83b8df=_0x9f278c,_0x5bac4b=new _0x1a1226({'connector':this[_0x83b8df(0x15e)]});this[_0x83b8df(0x137)][_0x83b8df(0x149)][_0x83b8df(0x16e)](_0x5889bc=>_0x83b8df(0x185)===_0x5889bc['id'])[_0x83b8df(0x159)]=await _0x5bac4b[_0x83b8df(0x113)](),this[_0x83b8df(0x15c)][_0x83b8df(0x121)](this[_0x83b8df(0x137)][_0x83b8df(0x149)]);}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x152),async(_0x2e19cf,_0x352a5d)=>{const _0x31e523=_0x9f278c,_0x593bc2=this[_0x31e523(0x137)][_0x31e523(0x182)](_0x352a5d['id']);if(_0x593bc2){this[_0x31e523(0x14b)](this[_0x31e523(0x158)]),_0x352a5d[_0x31e523(0x12a)]?(this[_0x31e523(0x15c)][_0x31e523(0x180)](_0x352a5d[_0x31e523(0x126)][_0x31e523(0x161)]),this[_0x31e523(0x145)]=new _0x3ca40c(_0x352a5d[_0x31e523(0x126)][_0x31e523(0x161)],_0x352a5d[_0x31e523(0x126)][_0x31e523(0x127)],this[_0x31e523(0x168)][_0x31e523(0x130)](),_0x593bc2,this[_0x31e523(0x15e)])):(this[_0x31e523(0x15c)][_0x31e523(0x180)](_0x593bc2[_0x31e523(0x16b)]),this[_0x31e523(0x145)]=new _0x36f148(this[_0x31e523(0x168)][_0x31e523(0x130)](),_0x593bc2,this[_0x31e523(0x15e)],_0x352a5d[_0x31e523(0x126)])),this[_0x31e523(0x145)]['on'](_0x31e523(0x128),(_0x8b7488,_0x55cc01)=>{const _0x2b105d=_0x31e523;_0x2b105d(0x112)===_0x55cc01[_0x2b105d(0x12b)]||_0x2b105d(0x146)===_0x55cc01[_0x2b105d(0x12b)]?(this[_0x2b105d(0x168)][_0x2b105d(0x133)](),this[_0x2b105d(0x15c)][_0x2b105d(0x16d)](_0x55cc01)):_0x2b105d(0x122)===_0x55cc01[_0x2b105d(0x12b)]?this[_0x2b105d(0x15c)][_0x2b105d(0x12d)]():_0x2b105d(0x17d)===_0x55cc01[_0x2b105d(0x12b)]?this[_0x2b105d(0x15c)][_0x2b105d(0x154)]():_0x2b105d(0x172)===_0x55cc01[_0x2b105d(0x12b)]?this[_0x2b105d(0x15c)][_0x2b105d(0x10f)]():_0x2b105d(0x136)===_0x55cc01[_0x2b105d(0x12b)]?this[_0x2b105d(0x15c)][_0x2b105d(0x140)]():_0x2b105d(0x14a)===_0x55cc01[_0x2b105d(0x12b)]&&(this[_0x2b105d(0x145)]&&this[_0x2b105d(0x145)][_0x2b105d(0x115)]>0x0?setTimeout(()=>{const _0x225423=_0x2b105d;this[_0x225423(0x145)]?.[_0x225423(0x175)]();},0x0):this[_0x2b105d(0x147)](!0x0));}),this[_0x31e523(0x145)]['on'](_0x31e523(0x174),(_0x2fadc6,_0x3b02fa)=>{const _0x5c9dff=_0x31e523;if(!this[_0x5c9dff(0x145)])throw new _0x1f40b1(_0x5c9dff(0x13a),this);const _0x394c69=this[_0x5c9dff(0x168)][_0x5c9dff(0x178)](_0x3b02fa[_0x5c9dff(0x150)][_0x5c9dff(0x173)],_0x3b02fa[_0x5c9dff(0x150)][_0x5c9dff(0x156)]);_0x3b02fa[_0x5c9dff(0x17b)][_0x5c9dff(0x184)](_0x3b02fa[_0x5c9dff(0x150)]['id'],_0x394c69);}),this[_0x31e523(0x145)]['on'](_0x31e523(0x138),(_0xeb1277,_0x3dd365)=>{const _0x2a8f02=_0x31e523;for(const _0xfcd510 of _0x3dd365[_0x2a8f02(0x118)])this[_0x2a8f02(0x15c)][_0x2a8f02(0x155)](_0xfcd510);this[_0x2a8f02(0x168)][_0x2a8f02(0x12e)](_0x3dd365[_0x2a8f02(0x118)],_0x3dd365[_0x2a8f02(0x17b)][_0x2a8f02(0x119)]);}),this[_0x31e523(0x145)]['on'](_0x31e523(0x10e),(_0x325bb0,_0x401012)=>{const _0x13686f=_0x31e523;this[_0x13686f(0x15c)][_0x13686f(0x11a)](_0x401012[_0x13686f(0x17e)]['id'],_0x13686f(0x14d));}),this[_0x31e523(0x145)]['on'](_0x31e523(0x188),(_0x407336,_0x59f5ae)=>{const _0x579ada=_0x31e523;this[_0x579ada(0x15c)][_0x579ada(0x11a)](_0x59f5ae[_0x579ada(0x17e)]['id'],_0x579ada(0x167));});try{await this[_0x31e523(0x145)][_0x31e523(0x13c)]();}catch(_0x541894){_0x541894 instanceof Error&&_0x541894[_0x31e523(0x15b)][_0x31e523(0x171)](_0x31e523(0x110))||(_0x541894 instanceof _0x1f40b1?this[_0x31e523(0x11c)](_0x541894):this[_0x31e523(0x11c)](new _0x1f40b1(_0x31e523(0x124),this,{'error':_0x541894})));}}else this[_0x31e523(0x11c)](new _0x1f40b1(_0x31e523(0x13e),this,{'checkId':_0x352a5d['id']}));}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x116),()=>{const _0x59806c=_0x9f278c;this[_0x59806c(0x147)]();}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x111),()=>{const _0x1fc966=_0x9f278c;this[_0x1fc966(0x147)](!0x0);}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x12c),()=>{const _0x2c2210=_0x9f278c;this[_0x2c2210(0x145)]&&this[_0x2c2210(0x145)][_0x2c2210(0x15a)]();}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x114),()=>{const _0x43e7c=_0x9f278c;this[_0x43e7c(0x147)](!0x0);}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x123),async()=>{const _0x5f0ba2=_0x9f278c;if(!this[_0x5f0ba2(0x145)])return;const _0x152f17=this[_0x5f0ba2(0x145)][_0x5f0ba2(0x181)]();_0x152f17[_0x5f0ba2(0x157)]&&(this[_0x5f0ba2(0x168)][_0x5f0ba2(0x11d)](_0x152f17[_0x5f0ba2(0x13f)](_0x46d633=>_0x46d633['id'])),this[_0x5f0ba2(0x145)][_0x5f0ba2(0x135)]());}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x11f),async(_0x1438a5,_0x38524a)=>{const _0x444ef4=_0x9f278c;this[_0x444ef4(0x145)]&&this[_0x444ef4(0x145)][_0x444ef4(0x144)](_0x38524a['id'])&&(this[_0x444ef4(0x168)][_0x444ef4(0x11d)]([_0x38524a['id']]),this[_0x444ef4(0x145)][_0x444ef4(0x143)](_0x38524a['id']));}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x125),async(_0x112585,_0x44b7e5)=>{const _0xc2f55b=_0x9f278c;this[_0xc2f55b(0x145)]&&this[_0xc2f55b(0x145)][_0xc2f55b(0x144)](_0x44b7e5['id'])&&(this[_0xc2f55b(0x168)][_0xc2f55b(0x131)](_0x44b7e5['id']),this[_0xc2f55b(0x145)][_0xc2f55b(0x15d)](_0x44b7e5['id']));}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x142),(_0x8198e0,_0x1a878c)=>{const _0x25adb9=_0x9f278c;this[_0x25adb9(0x158)]=_0x1a878c['on'],this[_0x25adb9(0x14b)](this[_0x25adb9(0x158)]);}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x165),async()=>{const _0x378496=_0x9f278c;this[_0x378496(0x145)]&&this[_0x378496(0x145)][_0x378496(0x148)]();}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x166),async(_0x46f1d4,_0x103703)=>{const _0x531a2f=_0x9f278c,{source:_0x52e533}=_0x103703;this[_0x531a2f(0x15c)][_0x531a2f(0x164)](),_0x52e533[_0x531a2f(0x183)](),this[_0x531a2f(0x168)][_0x531a2f(0x160)]({'id':_0x103703['id']});});}[_0x2aa994(0x147)](_0x209334=!0x1){const _0x811d4c=_0x2aa994;this[_0x811d4c(0x145)]&&(this[_0x811d4c(0x145)][_0x811d4c(0x15a)](),this[_0x811d4c(0x145)][_0x811d4c(0x17f)](),this[_0x811d4c(0x145)]=void 0x0),_0x209334&&this[_0x811d4c(0x15c)][_0x811d4c(0x170)](),this[_0x811d4c(0x168)][_0x811d4c(0x15f)](),this[_0x811d4c(0x168)][_0x811d4c(0x169)]();const _0x528643=this[_0x811d4c(0x168)][_0x811d4c(0x139)]();_0x528643&&(_0x528643[_0x811d4c(0x162)][_0x811d4c(0x186)](_0x811d4c(0x117)),_0x528643[_0x811d4c(0x162)][_0x811d4c(0x186)](_0x811d4c(0x13b)));}[_0x2aa994(0x14b)](_0xe30553){const _0x23d127=_0x2aa994,_0xb5fac7=this[_0x23d127(0x168)][_0x23d127(0x139)]();_0xb5fac7&&(_0xb5fac7[_0x23d127(0x162)][_0x23d127(0x186)](_0x23d127(0x117)),_0xb5fac7[_0x23d127(0x162)][_0x23d127(0x186)](_0x23d127(0x13b)),_0xb5fac7[_0x23d127(0x162)][_0x23d127(0x177)](_0xe30553?_0x23d127(0x117):_0x23d127(0x13b)));}[_0x2aa994(0x11c)](_0x17e24b){const _0x128897=_0x2aa994;_0xc09db4(_0x17e24b[_0x128897(0x15b)]),this[_0x128897(0x15c)][_0x128897(0x10f)]();}}
@@ -0,0 +1,129 @@
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/aireviewmode/aireviewmodeediting
7
+ * @publicApi
8
+ */
9
+ import { InsertOperation, MarkerOperation, ModelPosition, type Operation } from 'ckeditor5/src/engine.js';
10
+ import { ContextPlugin } from 'ckeditor5/src/core.js';
11
+ import { DocumentCompare } from 'ckeditor5-collaboration/src/collaboration-core.js';
12
+ import { type AIReviewCheckResultChange } from './model/aireviewcheckresultchange.js';
13
+ import { AIEditing } from '../aicore/aiediting.js';
14
+ export declare class AIReviewModeEditing extends ContextPlugin {
15
+ /**
16
+ * @inheritDoc
17
+ */
18
+ static get pluginName(): "AIReviewModeEditing";
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ static get requires(): readonly [typeof DocumentCompare, typeof AIEditing];
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ static get isOfficialPlugin(): true;
27
+ /**
28
+ * @inheritDoc
29
+ */
30
+ static get isPremiumPlugin(): true;
31
+ /**
32
+ * @inheritDoc
33
+ */
34
+ afterInit(): void;
35
+ /**
36
+ * Returns the data (as string and flat list of container elements) and version of the current document.
37
+ *
38
+ * This method also applied `data-id` attributes to all elements that are direct parents of text nodes.
39
+ * These attributes are used by AI API to determine that given element can be changed.
40
+ *
41
+ * Additionally, each element is converted from model to HTML string in the context of the entire structure
42
+ * to ensure that the conversion is accurate (e.g. table cells need to be inside a table row, which needs to be inside a table).
43
+ */
44
+ getDocumentData(): AIDocumentData;
45
+ /**
46
+ * Compares two pieces of content, calculates operations, groups them and returns diffed content
47
+ * and additional data for each group.
48
+ *
49
+ * Each group contains:
50
+ * - `operations`: list of operations that are part of the group.
51
+ * - `operationsIsolated`: list of operations that are part of the group but with positions/ranges re-calculated
52
+ * to allow applying them in isolation (without other operations that would affect their positions).
53
+ * - `groupOffset`: how many characters were inserted in this group.
54
+ * - `content`: function that returns content (as HTML string) of the entire content with all changes applied and context marked.
55
+ * - `context`: function that returns part of the content (as HTML string) consider as group context, with all changes applied
56
+ * for this specific context.
57
+ *
58
+ * The `context` is a range within a block that includes operations from a specific group, starts after the previous change, and ends
59
+ * before the next change. If there is a single group, it spans over the entire block element contents.
60
+ *
61
+ * For example:
62
+ * Initial content: <p>Foo bar baz. 123 456 789.</p>
63
+ * New content: <p>Foo bax baz. 123 789.</p>
64
+ *
65
+ * This can be visualized as ('[]' shows removal, '{}' shows insertion):
66
+ * <p>Foo[ bar]{ bax} baz. 123[ 456] 789.</p>
67
+ *
68
+ * There are 2 separate operation groups:
69
+ * - " bar" -> " bax" (marker remove operation + insert operation)
70
+ * - " 456" removed (marker remove operation)
71
+ *
72
+ * The context of each group (marked with '()') is:
73
+ * Group 1: <p>(Foo[ bar]{ bax} baz. 123) 456 789.</p>
74
+ * Group 2: <p>Foo bar( baz. 123 456 789.)</p>
75
+ *
76
+ * Operations processing logic is simplified assuming only `Insert` and `Marker` operations. Other operations, even if present
77
+ * in the calculated operations, are ignored.
78
+ */
79
+ diffContent(contentInitial: string, contentNew: string): Array<AIReviewModeChangeData>;
80
+ markChangePositionInEditorContent(changes: Array<AIReviewCheckResultChange>, documentData: AIDocumentData): void;
81
+ clearAllMarkers(): void;
82
+ switchToReadOnly(): void;
83
+ switchToEdit(): void;
84
+ applyChange(changeIds: Array<string>): void;
85
+ rejectChange(changeId: string): void;
86
+ getContentElement(): HTMLElement | null;
87
+ /**
88
+ * TODO: Scroll to change in editor content.
89
+ */
90
+ scrollToChangeInEditorContent(data: {
91
+ id: string;
92
+ }): void;
93
+ }
94
+ export type AIDocumentDataElement = {
95
+ path: Array<number>;
96
+ getContent: () => string;
97
+ };
98
+ export type AIDocumentData = {
99
+ content: string;
100
+ version: number;
101
+ elements: Map<string, AIDocumentDataElement>;
102
+ };
103
+ export type AIDiffResult = {
104
+ content: string;
105
+ operations: Array<Operation>;
106
+ };
107
+ export type AIReviewModeMarkerInsertData = {
108
+ start: ModelPosition;
109
+ end: ModelPosition;
110
+ type: AIReviewModeMarkerType;
111
+ groupId: string;
112
+ text?: string;
113
+ };
114
+ export type AIReviewModeMarkerData = {
115
+ id: string;
116
+ groupId: string;
117
+ type: AIReviewModeMarkerType;
118
+ text?: string;
119
+ };
120
+ export type AIReviewModeMarkerType = 'insert' | 'remove-text' | 'remove-only' | 'remove-context';
121
+ export type AIReviewModeChangeRange = {
122
+ operations: Array<InsertOperation | MarkerOperation>;
123
+ operationsIsolated: Array<InsertOperation | MarkerOperation>;
124
+ groupOffset: number;
125
+ };
126
+ export type AIReviewModeChangeData = AIReviewModeChangeRange & {
127
+ content: () => string;
128
+ context: () => string;
129
+ };
@@ -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 _0x4cc5(){const _0x69089e=['328347SmageU','element','applyChange','processor','markChangePositionInEditorContent','startsWith','ck-ai_review-mode-marker_context-start','operationsIsolated','outerHTML','_insertMarkers','map','caption','values','change','remove-only','getPath','_groupAdjacentOperations','847fIAzDD','concat','isOfficialPlugin','getRoots','nodes','toData','Scroll\x20to\x20change\x20in\x20editor\x20content','ck-ai_review-mode-marker_strikethrough','hasContentAfter','data','switchToReadOnly','remove-context','addOperation','_shiftOperation','isOpening','end','exec','name','markerToElement','createUIElement','filter','isTouching','4137054tQPYPF','markers','DocumentCompare','offset','toView','suggestion:insertion:id:authorId:','delete','ck-ai_review-mode-marker_underline','stringify','_setAttribute','deleteContent','No\x20element\x20found\x20for\x20ID:\x20','htmlWriter','_createGetContextFn','baseVersion','_appendChild','offsetSize','isPremiumPlugin','[data-id=\x22','373591bTsoXQ','getAttribute','diffContent','push','_changeRangeOwnerDocument','documentFragment','applyOperation','warn','get','model','innerHTML','domConverter','_removeChildren','suggestion-context','type','rejectChange','context','parse','editingDowncast','getHtml','index','reviewmode-','getShiftedBy','jumpTo','isAtEnd','version','createPositionAfter','_getMarkersDataForGroup','length','querySelector','affectsData','88xykHqt','_createGetContentFn','_changePositionOwnerDocument','isAtStart','flat','_getOperationStart','batch','412uYoxuW','marker','backward','ck-ai_review-mode-marker_context-end','clear','model:$text','createRawElement','getOperations','ck-ai_review-mode-marker_hide','removeMarker','isInline','schema','_getTopElement','_nextDataId','getDocumentData','getContentElement','_markers','dataDowncast','ai-review-mode','$textProxy','$markedRemove','insertContent','enableReadOnlyMode','set','newRange','ck-ai_review-mode-marker_context-','start','hasClass','createDocumentFragment','pluginName','span','position','history','_changeOperationOwnerDocument','elements','_changeRange','conversion','downcast','getChildren','htmlProcessor','document','addMarker','disableReadOnlyMode','for','every','insert','hasContentBefore','getChild','isDocumentOperation','_clone','remove-text','forward','clone','4066908KfYEte','getDiff','AIEditing','log','32961CxOsKh','7TAQhry','oldRange','requires','_getChangeContext','clearAllMarkers','getRoot','from','2pWpxCT','4486105rzqMWc','viewToDom','ck-ai_review-mode-marker_add','suggestion:deletion:id:authorId:','_getOperationEnd','createRange','_translateOperationToEditorContent','createSelection','append','afterInit','markerName','childCount','createText','16130YkAzKH','_createGetContentUsingDataIdFn','parent','ellipsisAfter','createPositionAt','_changePosition','groupId','ellipsisBefore','howMany','text','plugins','_findAdjacentContextDistance','add','toDomElement','$documentFragment','keys','AIReviewModeEditing','attributeToAttribute','getRange','scrollToChangeInEditorContent','markerToHighlight','switchToEdit','path','operationsA'];_0x4cc5=function(){return _0x69089e;};return _0x4cc5();}const _0x1ebd13=_0x2553;(function(_0x3f15e7,_0x697561){const _0x249ca0=_0x2553,_0x4a08f8=_0x3f15e7();while(!![]){try{const _0xb13f5e=parseInt(_0x249ca0(0x203))/0x1*(-parseInt(_0x249ca0(0x1a3))/0x2)+-parseInt(_0x249ca0(0x19b))/0x3*(-parseInt(_0x249ca0(0x162))/0x4)+-parseInt(_0x249ca0(0x1a4))/0x5+parseInt(_0x249ca0(0x1f0))/0x6*(parseInt(_0x249ca0(0x19c))/0x7)+parseInt(_0x249ca0(0x15b))/0x8*(-parseInt(_0x249ca0(0x1c9))/0x9)+-parseInt(_0x249ca0(0x1b1))/0xa*(-parseInt(_0x249ca0(0x1da))/0xb)+parseInt(_0x249ca0(0x197))/0xc;if(_0xb13f5e===_0x697561)break;else _0x4a08f8['push'](_0x4a08f8['shift']());}catch(_0x1b5e21){_0x4a08f8['push'](_0x4a08f8['shift']());}}}(_0x4cc5,0x9573b));import{InsertOperation as _0x5ad732,MarkerOperation as _0x1ec959,ModelDocumentFragment as _0x33550f,ModelPosition as _0x9c055e,ModelRange as _0x2e17f0,ModelTreeWalker as _0x433dc0,transformOperationSets as _0x4779a4}from'ckeditor5/src/engine.js';import{uid as _0x5a1824}from'ckeditor5/src/utils.js';import{ContextPlugin as _0x4549a3}from'ckeditor5/src/core.js';function _0x2553(_0x5b2c45,_0x209b7b){const _0x4cc5bd=_0x4cc5();return _0x2553=function(_0x2553b3,_0x12680a){_0x2553b3=_0x2553b3-0x149;let _0x46026d=_0x4cc5bd[_0x2553b3];return _0x46026d;},_0x2553(_0x5b2c45,_0x209b7b);}import{DocumentCompare as _0x6663a0,DATA_ID_MODEL_ATTRIBUTE as _0x487153,DATA_ID_VIEW_ATTRIBUTE as _0x2ebc94}from'ckeditor5-collaboration/src/collaboration-core.js';import{getEditorFromContext as _0x2630e4}from'../aicore/utils/geteditorfromcontext.js';import{AIEditing as _0x28ac9c}from'../aicore/aiediting.js';const Xt=_0x1ebd13(0x151);export class AIReviewModeEditing extends _0x4549a3{static get[_0x1ebd13(0x17f)](){const _0x59808a=_0x1ebd13;return _0x59808a(0x1c1);}static get[_0x1ebd13(0x19e)](){return[_0x6663a0,_0x28ac9c];}static get[_0x1ebd13(0x1dc)](){return!0x0;}static get[_0x1ebd13(0x201)](){return!0x0;}[_0x1ebd13(0x172)]=new Map();[_0x1ebd13(0x1ad)](){const _0x234b91=_0x1ebd13,_0x3b68=_0x2630e4(this[_0x234b91(0x14c)]);_0x3b68[_0x234b91(0x186)][_0x234b91(0x18d)](_0x234b91(0x14e))[_0x234b91(0x1ec)]({'model':Xt+_0x234b91(0x18f),'view':(_0x4cce96,{writer:_0x6483aa})=>{const _0x3b7ae8=_0x234b91,_0x25538c=this[_0x3b7ae8(0x172)][_0x3b7ae8(0x20b)](_0x4cce96[_0x3b7ae8(0x1ae)]);return _0x6483aa[_0x3b7ae8(0x1ed)](_0x3b7ae8(0x180),{'class':_0x3b7ae8(0x1a6)},function(_0x4b72a5){const _0x10b709=_0x3b7ae8,_0x33c224=this[_0x10b709(0x1be)](_0x4b72a5);return _0x33c224[_0x10b709(0x20d)]=_0x25538c?.[_0x10b709(0x1ba)]||'',_0x33c224;});}}),_0x3b68[_0x234b91(0x186)][_0x234b91(0x18d)](_0x234b91(0x173))[_0x234b91(0x1ec)]({'model':Xt+_0x234b91(0x149),'view':(_0x4adc72,{writer:_0x2e4b04})=>_0x2e4b04[_0x234b91(0x168)](_0x234b91(0x180),{'class':_0x234b91(0x17b)+(_0x4adc72[_0x234b91(0x1e8)]?_0x234b91(0x17c):_0x234b91(0x1e9))})}),_0x3b68[_0x234b91(0x186)][_0x234b91(0x18d)](_0x234b91(0x14e))[_0x234b91(0x1c5)]({'model':Xt+_0x234b91(0x1d7),'view':()=>({'classes':_0x234b91(0x1e1)})}),_0x3b68[_0x234b91(0x186)][_0x234b91(0x18d)](_0x234b91(0x14e))[_0x234b91(0x1c5)]({'model':Xt+_0x234b91(0x1e5),'view':()=>({'classes':_0x234b91(0x1f7)})}),_0x3b68[_0x234b91(0x186)][_0x234b91(0x18d)](_0x234b91(0x14e))[_0x234b91(0x1c5)]({'model':Xt+_0x234b91(0x194),'view':()=>({'classes':_0x234b91(0x16a)})}),_0x3b68[_0x234b91(0x186)][_0x234b91(0x18d)](_0x234b91(0x187))[_0x234b91(0x1c2)]({'model':_0x487153,'view':_0x2ebc94});}[_0x1ebd13(0x170)](){const _0xee34=_0x1ebd13,_0x5ae7ae=this[_0xee34(0x14c)][_0xee34(0x1bb)][_0xee34(0x20b)](_0xee34(0x199)),_0x24e0e5=_0x2630e4(this[_0xee34(0x14c)]),_0x3e07a4=_0x24e0e5[_0xee34(0x20c)],_0x10febe=new _0x33550f();for(const _0x256def of _0x3e07a4[_0xee34(0x18a)][_0xee34(0x1a1)]()[_0xee34(0x188)]()){const _0xdf9d44=_0x256def[_0xee34(0x193)](!0x0);_0x10febe[_0xee34(0x1ff)](_0xdf9d44);}for(const _0x238407 of _0x3e07a4[_0xee34(0x1f1)])_0x10febe[_0xee34(0x1f1)][_0xee34(0x179)](_0x238407[_0xee34(0x1eb)],this[_0xee34(0x207)](_0x238407[_0xee34(0x1c3)]()[_0xee34(0x196)](),_0x10febe));const _0x3ff01b=new _0x433dc0({'ignoreElementEnd':!0x0,'startPosition':_0x3e07a4[_0xee34(0x1b5)](_0x10febe,0x0)}),_0x211e72=new Set(),_0x21f18d=new Map();for(const {item:_0x193829}of _0x3ff01b){if(!_0x193829['is'](_0xee34(0x175)))continue;const _0x46128f=_0x193829[_0xee34(0x1b3)];if((!_0x46128f||!_0x46128f['is'](_0xee34(0x1ca),_0xee34(0x1d4)))&&(_0x46128f&&_0x46128f['is'](_0xee34(0x1ca)))){let _0x1b003d=_0x46128f[_0xee34(0x204)](_0x487153);_0x1b003d||(_0x1b003d=_0x5ae7ae[_0xee34(0x16f)](_0x211e72),_0x46128f[_0xee34(0x1f9)](_0x487153,_0x1b003d)),_0x211e72[_0xee34(0x1bd)](_0x1b003d);const _0x4271e7=this[_0xee34(0x16e)](_0x46128f);_0x21f18d[_0xee34(0x179)](_0x1b003d,{'path':_0x46128f[_0xee34(0x1d8)](),'getContent':this[_0xee34(0x1b2)](_0x4271e7[_0xee34(0x193)](!0x0),_0x1b003d,_0x24e0e5[_0xee34(0x1e3)])}),_0x3ff01b[_0xee34(0x153)](_0x3e07a4[_0xee34(0x156)](_0x46128f));}}return{'content':_0x24e0e5[_0xee34(0x1e3)][_0xee34(0x1cc)][_0xee34(0x1df)](_0x24e0e5[_0xee34(0x1e3)][_0xee34(0x1f4)](_0x10febe)),'version':_0x24e0e5[_0xee34(0x20c)][_0xee34(0x18a)][_0xee34(0x155)],'elements':_0x21f18d};}[_0x1ebd13(0x205)](_0x55ca5d,_0x5029b8){const _0x3b10cc=_0x1ebd13,_0x46d468=_0x2630e4(this[_0x3b10cc(0x14c)]),_0x100e7d=_0x46d468[_0x3b10cc(0x1e3)][_0x3b10cc(0x14d)](_0x55ca5d,_0x3b10cc(0x1bf)),_0x20e6c8=_0x46d468[_0x3b10cc(0x20c)][_0x3b10cc(0x1b5)](_0x100e7d,0x0),_0x57810a=this[_0x3b10cc(0x14c)][_0x3b10cc(0x1bb)][_0x3b10cc(0x20b)](_0x3b10cc(0x1f2))[_0x3b10cc(0x198)](_0x55ca5d,_0x5029b8,{'anchor':_0x20e6c8,'markDeletions':!0x0})[_0x3b10cc(0x169)]()[_0x3b10cc(0x1ee)](_0x223f8b=>_0x3b10cc(0x18f)===_0x223f8b[_0x3b10cc(0x14a)]||_0x3b10cc(0x163)===_0x223f8b[_0x3b10cc(0x14a)]&&_0x223f8b[_0x3b10cc(0x1eb)][_0x3b10cc(0x1ce)](_0x3b10cc(0x176))),_0x1085d5=this[_0x3b10cc(0x1d9)](_0x57810a),_0x365ae7=[];let _0x170e28=0x0;return _0x46d468[_0x3b10cc(0x20c)][_0x3b10cc(0x1d6)](_0x8d6608=>{const _0x18ff6d=_0x3b10cc;for(let _0x2e0da1=0x0;_0x2e0da1<_0x1085d5[_0x18ff6d(0x158)];_0x2e0da1++){const _0x223c9b=_0x1085d5[_0x2e0da1],_0x393e04=_0x8d6608[_0x18ff6d(0x17e)]();for(const _0x36da08 of _0x100e7d[_0x18ff6d(0x188)]())_0x8d6608[_0x18ff6d(0x1ac)](_0x36da08[_0x18ff6d(0x193)](!0x0),_0x393e04);for(const _0x2eec64 of _0x223c9b[_0x18ff6d(0x1d0)])if(_0x18ff6d(0x18f)===_0x2eec64[_0x18ff6d(0x14a)]){const _0x2f3744=_0x2eec64;_0x2f3744[_0x18ff6d(0x1fe)]=null,_0x2f3744[_0x18ff6d(0x192)]=!0x1,this[_0x18ff6d(0x183)](_0x2f3744,_0x393e04),_0x8d6608[_0x18ff6d(0x161)][_0x18ff6d(0x1e6)](_0x2eec64),_0x46d468[_0x18ff6d(0x20c)][_0x18ff6d(0x209)](_0x2eec64);const _0x2f6e2f=_0x18ff6d(0x1f5)+_0x170e28++,_0x4fc221=_0x46d468[_0x18ff6d(0x20c)][_0x18ff6d(0x1a9)](_0x2f3744[_0x18ff6d(0x181)],_0x2f3744[_0x18ff6d(0x181)][_0x18ff6d(0x152)](_0x2f3744[_0x18ff6d(0x1b9)]));_0x393e04[_0x18ff6d(0x1f1)][_0x18ff6d(0x179)](_0x2f6e2f,_0x4fc221);}else{if(_0x18ff6d(0x163)===_0x2eec64[_0x18ff6d(0x14a)]&&_0x2eec64[_0x18ff6d(0x1eb)][_0x18ff6d(0x1ce)](_0x18ff6d(0x176))){const _0x497b8e=_0x2eec64,_0x3ecb80=_0x18ff6d(0x1a7)+_0x170e28++;this[_0x18ff6d(0x183)](_0x497b8e,_0x393e04),_0x393e04[_0x18ff6d(0x1f1)][_0x18ff6d(0x179)](_0x3ecb80,_0x497b8e[_0x18ff6d(0x17a)]);}}const _0x360b49=this[_0x18ff6d(0x19f)](this[_0x18ff6d(0x15d)](this[_0x18ff6d(0x160)](_0x223c9b[_0x18ff6d(0x1d0)][0x0]),_0x393e04),this[_0x18ff6d(0x15d)](this[_0x18ff6d(0x1a8)](_0x223c9b[_0x18ff6d(0x1d0)][_0x223c9b[_0x18ff6d(0x1d0)][_0x18ff6d(0x158)]-0x1]),_0x393e04));_0x393e04[_0x18ff6d(0x1f1)][_0x18ff6d(0x179)](Xt+_0x18ff6d(0x149),new _0x2e17f0(_0x360b49[_0x18ff6d(0x17c)],_0x360b49[_0x18ff6d(0x1e9)])),_0x365ae7[_0x18ff6d(0x206)]({..._0x223c9b,'context':this[_0x18ff6d(0x1fd)](_0x393e04,_0x46d468[_0x18ff6d(0x1e3)],{'ellipsisBefore':_0x360b49[_0x18ff6d(0x190)],'ellipsisAfter':_0x360b49[_0x18ff6d(0x1e2)]}),'content':this[_0x18ff6d(0x15c)](_0x393e04,_0x46d468[_0x18ff6d(0x1e3)])});}}),_0x365ae7;}[_0x1ebd13(0x1cd)](_0xc4f16b,_0x423f6e){const _0x28c59c=_0x1ebd13,_0x2df371=_0xc4f16b[0x0][_0x28c59c(0x1b3)]['id'],_0xfa36d3=_0x423f6e[_0x28c59c(0x184)][_0x28c59c(0x20b)](_0x2df371);if(!_0xfa36d3)return void console[_0x28c59c(0x20a)](_0x28c59c(0x1fb)+_0x2df371);const _0x17d9d6=_0xfa36d3[_0x28c59c(0x1c7)],_0x5e57dc=_0x2630e4(this[_0x28c59c(0x14c)]),_0x51a4bd=_0x5e57dc[_0x28c59c(0x20c)][_0x28c59c(0x18a)][_0x28c59c(0x182)][_0x28c59c(0x169)](_0x423f6e[_0x28c59c(0x155)]),_0x44fa67=[];for(const _0xd0710b of _0xc4f16b){const _0x40ea17=_0xd0710b[_0x28c59c(0x1d0)][_0x28c59c(0x1d3)](_0x18d1ad=>this[_0x28c59c(0x1aa)](_0x18d1ad,_0x17d9d6,_0x5e57dc[_0x28c59c(0x20c)][_0x28c59c(0x18a)][_0x28c59c(0x1dd)]()[0x0]));if(!_0x40ea17||!_0x40ea17[_0x28c59c(0x158)])continue;const _0x18e578=_0x40ea17[_0x28c59c(0x18e)](_0x183d13=>_0x28c59c(0x163)===_0x183d13[_0x28c59c(0x14a)]&&_0x183d13[_0x28c59c(0x1eb)][_0x28c59c(0x1ce)](_0x28c59c(0x176))),_0x175c56={'document':_0x5e57dc[_0x28c59c(0x20c)][_0x28c59c(0x18a)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x25b2c8=_0x4779a4(_0x40ea17,_0x51a4bd,_0x175c56)[_0x28c59c(0x1c8)];for(const _0x7d8fbf of _0x25b2c8)if(_0x28c59c(0x18f)===_0x7d8fbf[_0x28c59c(0x14a)]){const _0x2780d5=_0x7d8fbf,_0x1f5d20=_0x2780d5[_0x28c59c(0x1de)];let _0x1fae3d='';for(const _0x42c3e4 of _0x1f5d20)_0x42c3e4&&_0x42c3e4['is'](_0x28c59c(0x167))&&(_0x1fae3d+=_0x42c3e4[_0x28c59c(0x1e3)]);_0x44fa67[_0x28c59c(0x206)]({'start':_0x2780d5[_0x28c59c(0x181)],'end':_0x2780d5[_0x28c59c(0x181)],'type':_0x28c59c(0x18f),'groupId':_0xd0710b['id'],'text':_0x1fae3d});}else{if(_0x28c59c(0x163)===_0x7d8fbf[_0x28c59c(0x14a)]&&_0x7d8fbf[_0x28c59c(0x1eb)][_0x28c59c(0x1ce)](_0x28c59c(0x176))){const _0x5f4b36=_0x7d8fbf;let _0x567878=_0x28c59c(0x194);if(_0x18e578){const _0x2b1272=this[_0x28c59c(0x1bc)](_0x5f4b36[_0x28c59c(0x17a)][_0x28c59c(0x17c)],_0x28c59c(0x164),_0x5e57dc[_0x28c59c(0x20c)][_0x28c59c(0x16d)]),_0x1fe526=this[_0x28c59c(0x1bc)](_0x5f4b36[_0x28c59c(0x17a)][_0x28c59c(0x1e9)],_0x28c59c(0x195),_0x5e57dc[_0x28c59c(0x20c)][_0x28c59c(0x16d)]);if(_0x2b1272||_0x1fe526){const _0x14dea2=_0x5f4b36[_0x28c59c(0x17a)][_0x28c59c(0x17c)][_0x28c59c(0x152)](-_0x2b1272),_0x4f59d4=_0x5f4b36[_0x28c59c(0x17a)][_0x28c59c(0x1e9)][_0x28c59c(0x152)](_0x1fe526);_0x44fa67[_0x28c59c(0x206)]({'start':_0x14dea2,'end':_0x4f59d4,'groupId':_0xd0710b['id'],'type':_0x28c59c(0x1e5)});}else _0x567878=_0x28c59c(0x1d7);}_0x44fa67[_0x28c59c(0x206)]({'start':_0x5f4b36[_0x28c59c(0x17a)][_0x28c59c(0x17c)],'end':_0x5f4b36[_0x28c59c(0x17a)][_0x28c59c(0x1e9)],'groupId':_0xd0710b['id'],'type':_0x567878});}}}this[_0x28c59c(0x1d2)](_0x44fa67);}[_0x1ebd13(0x1a0)](){const _0x24fee5=_0x1ebd13;_0x2630e4(this[_0x24fee5(0x14c)])[_0x24fee5(0x20c)][_0x24fee5(0x1d6)](_0x4e509e=>{const _0x13e97b=_0x24fee5;for(const _0x55e2ff of this[_0x13e97b(0x172)][_0x13e97b(0x1c0)]())_0x4e509e[_0x13e97b(0x16b)](_0x55e2ff);}),this[_0x24fee5(0x172)][_0x24fee5(0x166)]();}[_0x1ebd13(0x1e4)](){const _0x5c2b46=_0x1ebd13;_0x2630e4(this[_0x5c2b46(0x14c)])[_0x5c2b46(0x178)](_0x5c2b46(0x174));}[_0x1ebd13(0x1c6)](){const _0x5f4a26=_0x1ebd13;_0x2630e4(this[_0x5f4a26(0x14c)])[_0x5f4a26(0x18c)](_0x5f4a26(0x174));}[_0x1ebd13(0x1cb)](_0x21a52a){const _0x1e85ed=_0x1ebd13,_0xd3c113=_0x2630e4(this[_0x1e85ed(0x14c)]),_0x39bb9f=_0xd3c113[_0x1e85ed(0x20c)],_0x231efe=_0x21a52a[_0x1e85ed(0x1d3)](_0x2f025f=>this[_0x1e85ed(0x157)](_0x2f025f))[_0x1e85ed(0x15f)]();_0x39bb9f[_0x1e85ed(0x1d6)](_0x59c36c=>{const _0x3a0de9=_0x1e85ed;for(const _0xfff5db of _0x231efe){const _0x4d8103=_0xd3c113[_0x3a0de9(0x20c)][_0x3a0de9(0x1f1)][_0x3a0de9(0x20b)](_0xfff5db['id']);_0x4d8103&&(_0x3a0de9(0x18f)===_0xfff5db[_0x3a0de9(0x14a)]?_0x39bb9f[_0x3a0de9(0x177)](_0x59c36c[_0x3a0de9(0x1b0)](_0xfff5db[_0x3a0de9(0x1ba)]||''),_0x4d8103[_0x3a0de9(0x1c3)]()[_0x3a0de9(0x17c)]):_0x3a0de9(0x194)!==_0xfff5db[_0x3a0de9(0x14a)]&&_0x3a0de9(0x1d7)!==_0xfff5db[_0x3a0de9(0x14a)]||_0x39bb9f[_0x3a0de9(0x1fa)](_0x39bb9f[_0x3a0de9(0x1ab)](_0x4d8103[_0x3a0de9(0x1c3)]())),_0x59c36c[_0x3a0de9(0x16b)](_0xfff5db['id']),this[_0x3a0de9(0x172)][_0x3a0de9(0x1f6)](_0xfff5db['id']));}});}[_0x1ebd13(0x14b)](_0x29fd5b){const _0x1369f0=_0x1ebd13,_0x305b0c=_0x2630e4(this[_0x1369f0(0x14c)]),_0x2311e2=this[_0x1369f0(0x157)](_0x29fd5b);_0x305b0c[_0x1369f0(0x20c)][_0x1369f0(0x1d6)](_0x9e2732=>{const _0x115690=_0x1369f0;for(const _0x3260be of _0x2311e2)_0x9e2732[_0x115690(0x16b)](_0x3260be['id']),this[_0x115690(0x172)][_0x115690(0x1f6)](_0x3260be['id']);});}[_0x1ebd13(0x171)](){const _0x3924df=_0x1ebd13,_0x29a640=_0x2630e4(this[_0x3924df(0x14c)]);return _0x29a640&&_0x29a640['ui']&&_0x29a640['ui'][_0x3924df(0x1ca)]?_0x29a640['ui'][_0x3924df(0x1ca)]:null;}[_0x1ebd13(0x1aa)](_0x318a8b,_0x128d0b,_0x13c22e){const _0xf0754f=_0x1ebd13;if(_0xf0754f(0x18f)===_0x318a8b[_0xf0754f(0x14a)]){const _0x93a4c0=_0x318a8b;return new _0x5ad732(this[_0xf0754f(0x1b6)](_0x93a4c0[_0xf0754f(0x181)],_0x128d0b[_0xf0754f(0x1db)](_0x93a4c0[_0xf0754f(0x181)][_0xf0754f(0x1f3)]),_0x13c22e),_0x93a4c0[_0xf0754f(0x1de)],_0x93a4c0[_0xf0754f(0x1fe)]);}if(_0xf0754f(0x163)===_0x318a8b[_0xf0754f(0x14a)]&&_0x318a8b[_0xf0754f(0x1eb)][_0xf0754f(0x1ce)](_0xf0754f(0x176))){const _0x5e8546=_0x318a8b;return new _0x1ec959(_0x5e8546[_0xf0754f(0x1eb)],_0x5e8546[_0xf0754f(0x19d)],this[_0xf0754f(0x185)](_0x5e8546[_0xf0754f(0x17a)],_0x128d0b[_0xf0754f(0x1db)](_0x5e8546[_0xf0754f(0x17a)][_0xf0754f(0x17c)][_0xf0754f(0x1f3)]),_0x128d0b[_0xf0754f(0x1db)](_0x5e8546[_0xf0754f(0x17a)][_0xf0754f(0x1e9)][_0xf0754f(0x1f3)]),_0x13c22e),_0x5e8546[_0xf0754f(0x172)],_0x5e8546[_0xf0754f(0x15a)],_0x5e8546[_0xf0754f(0x1fe)]);}return _0x318a8b;}[_0x1ebd13(0x1d9)](_0x56874e){const _0x5a54b7=_0x1ebd13;if(!_0x56874e[_0x5a54b7(0x158)])return[];const _0x1aeb64=[];let _0x4806c2=0x0,_0x5cdcde=0x0,_0x56ea0f=[];for(let _0x173b45=0x0;_0x173b45<=_0x56874e[_0x5a54b7(0x158)];_0x173b45++){const _0x2ac573=_0x56874e[_0x173b45],_0x2a266c=_0x56874e[_0x173b45-0x1];!_0x2ac573||_0x2a266c&&!this[_0x5a54b7(0x1a8)](_0x2a266c)[_0x5a54b7(0x1ef)](this[_0x5a54b7(0x160)](_0x2ac573))?(_0x1aeb64[_0x5a54b7(0x206)]({'operations':_0x56ea0f,'operationsIsolated':_0x56ea0f[_0x5a54b7(0x1d3)](_0xe14b79=>this[_0x5a54b7(0x1e7)](_0xe14b79[_0x5a54b7(0x196)](),-_0x5cdcde)),'groupOffset':_0x4806c2}),_0x56ea0f=_0x2ac573?[_0x2ac573]:[],_0x5cdcde+=_0x4806c2,_0x4806c2=0x0):_0x56ea0f[_0x5a54b7(0x206)](_0x2ac573),_0x2ac573&&_0x5a54b7(0x18f)===_0x2ac573[_0x5a54b7(0x14a)]&&(_0x4806c2+=_0x2ac573[_0x5a54b7(0x1b9)]);}return _0x1aeb64;}[_0x1ebd13(0x1c4)](_0x70eb56){const _0x4724fc=_0x1ebd13;console[_0x4724fc(0x19a)](_0x4724fc(0x1e0),_0x70eb56['id']);}[_0x1ebd13(0x1bc)](_0x5989b4,_0x4b0157,_0x49bbc7,_0x52d9de=0x1){const _0x5ab860=_0x1ebd13,_0x155203=new _0x433dc0({'startPosition':_0x5989b4,'direction':_0x4b0157});let _0x1e8249=0x0;for(let _0x2a0713=0x0;_0x2a0713<_0x52d9de;_0x2a0713++){let _0x4b124c=0x0,_0x3efdac=!0x1,_0x2c7858=_0x5ab860(0x195)===_0x4b0157?/^\W*\w+/:/\w+\W*$/;for(const {item:_0x3cae08}of _0x155203)if(_0x3cae08['is'](_0x5ab860(0x175))){const _0x2847c8=_0x2c7858[_0x5ab860(0x1ea)](_0x3cae08[_0x5ab860(0x1e3)]);if(_0x2847c8&&_0x2847c8[_0x5ab860(0x158)]){if(_0x4b124c+=_0x5ab860(0x195)===_0x4b0157?_0x2847c8[_0x5ab860(0x150)]+_0x2847c8[0x0][_0x5ab860(0x158)]:_0x3cae08[_0x5ab860(0x1e3)][_0x5ab860(0x158)]-_0x2847c8[_0x5ab860(0x150)],_0x2847c8[0x0][_0x5ab860(0x158)]!==_0x3cae08[_0x5ab860(0x1e3)][_0x5ab860(0x158)])break;_0x3efdac=!0x0,_0x2c7858=_0x5ab860(0x195)===_0x4b0157?/^\w+/:/\w+$/;}else{if(_0x3efdac)break;_0x4b124c+=_0x3cae08[_0x5ab860(0x200)];}}else{if(_0x3cae08['is'](_0x5ab860(0x1ca))){_0x49bbc7[_0x5ab860(0x16c)](_0x3cae08)&&!_0x3efdac&&(_0x4b124c+=0x1);break;}}_0x1e8249+=_0x4b124c,_0x155203[_0x5ab860(0x153)](_0x5989b4[_0x5ab860(0x152)](_0x5ab860(0x195)===_0x4b0157?_0x1e8249:-_0x1e8249));}return _0x1e8249;}[_0x1ebd13(0x19f)](_0x4a27da,_0x5b2e3a){const _0x1572f3=_0x1ebd13,_0x182a40=_0x2630e4(this[_0x1572f3(0x14c)])[_0x1572f3(0x20c)][_0x1572f3(0x16d)],_0x2e94e2=this[_0x1572f3(0x1bc)](_0x4a27da,_0x1572f3(0x164),_0x182a40,0x6),_0x477186=this[_0x1572f3(0x1bc)](_0x5b2e3a,_0x1572f3(0x195),_0x182a40,0x6),_0x4d72a8=_0x4a27da[_0x1572f3(0x152)](-_0x2e94e2),_0x5c2827=_0x5b2e3a[_0x1572f3(0x152)](_0x477186);return{'start':_0x4d72a8,'end':_0x5c2827,'hasContentBefore':!_0x4d72a8[_0x1572f3(0x15e)],'hasContentAfter':!_0x5c2827[_0x1572f3(0x154)]};}[_0x1ebd13(0x1d2)](_0x4a4455){const _0x22d5b9=_0x1ebd13;_0x2630e4(this[_0x22d5b9(0x14c)])[_0x22d5b9(0x20c)][_0x22d5b9(0x1d6)](_0x23429c=>{const _0x36525d=_0x22d5b9;for(const _0x41ec96 of _0x4a4455){const _0xd0fa6b=''+Xt+_0x41ec96[_0x36525d(0x14a)]+':'+_0x41ec96[_0x36525d(0x1b7)]+'_'+_0x5a1824();this[_0x36525d(0x172)][_0x36525d(0x179)](_0xd0fa6b,{'id':_0xd0fa6b,'groupId':_0x41ec96[_0x36525d(0x1b7)],'type':_0x41ec96[_0x36525d(0x14a)],'text':_0x41ec96[_0x36525d(0x1ba)]}),_0x23429c[_0x36525d(0x18b)](_0xd0fa6b,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x23429c[_0x36525d(0x1a9)](_0x41ec96[_0x36525d(0x17c)],_0x41ec96[_0x36525d(0x1e9)])});}});}[_0x1ebd13(0x1fd)](_0x2093c5,_0x47b778,_0x28f5a1){let _0x2bafe0='';return()=>{const _0x38fd63=_0x2553;if(!_0x2bafe0){const _0x45b5e9=_0x47b778[_0x38fd63(0x1f4)](_0x2093c5,{'showSuggestionHighlights':!0x0}),_0x50f233=_0x45b5e9[_0x38fd63(0x191)](0x0);if(!_0x50f233)return'';let _0x14ed07=!0x1;const _0x574c48=[];for(const _0x4c8f57 of _0x50f233[_0x38fd63(0x188)]())_0x4c8f57['is'](_0x38fd63(0x1ca),_0x38fd63(0x180))&&_0x4c8f57[_0x38fd63(0x17d)](_0x38fd63(0x165))&&(_0x14ed07=!0x1),_0x14ed07&&_0x574c48[_0x38fd63(0x206)](_0x4c8f57),_0x4c8f57['is'](_0x38fd63(0x1ca),_0x38fd63(0x180))&&_0x4c8f57[_0x38fd63(0x17d)](_0x38fd63(0x1cf))&&(_0x14ed07=!0x0);_0x50f233[_0x38fd63(0x20f)](0x0,_0x50f233[_0x38fd63(0x1af)]),_0x28f5a1?.[_0x38fd63(0x1b8)]&&_0x50f233[_0x38fd63(0x1ff)]('…'),_0x50f233[_0x38fd63(0x1ff)](_0x574c48),_0x28f5a1?.[_0x38fd63(0x1b4)]&&_0x50f233[_0x38fd63(0x1ff)]('…');const _0x226a1a=_0x47b778[_0x38fd63(0x189)][_0x38fd63(0x20e)][_0x38fd63(0x1a5)](_0x45b5e9),_0x301525=_0x47b778[_0x38fd63(0x189)][_0x38fd63(0x1fc)][_0x38fd63(0x14f)](_0x226a1a);_0x2bafe0=_0x301525;}return _0x2bafe0;};}[_0x1ebd13(0x15c)](_0x436179,_0x1a5563){const _0x5381c4=_0x1ebd13;let _0x2486cb='';return()=>(_0x2486cb||(_0x2486cb=_0x1a5563[_0x5381c4(0x1f8)](_0x436179,{'showSuggestionHighlights':!0x0})),_0x2486cb);}[_0x1ebd13(0x1b2)](_0x15ae5f,_0x167dca,_0x7c1ab9){let _0x9b5a46='';return()=>{const _0x5bb8ea=_0x2553;if(!_0x9b5a46){const _0x2d5026=_0x7c1ab9[_0x5bb8ea(0x1f4)](new _0x33550f(_0x15ae5f)),_0x2b5b1c=_0x7c1ab9[_0x5bb8ea(0x189)][_0x5bb8ea(0x20e)][_0x5bb8ea(0x1a5)](_0x2d5026)[_0x5bb8ea(0x159)](_0x5bb8ea(0x202)+_0x167dca+'\x22]');_0x9b5a46=_0x2b5b1c?.[_0x5bb8ea(0x1d1)]||'';}return _0x9b5a46;};}[_0x1ebd13(0x157)](_0x2f34cb){const _0x12b9da=_0x1ebd13;return Array[_0x12b9da(0x1a2)](this[_0x12b9da(0x172)][_0x12b9da(0x1d5)]())[_0x12b9da(0x1ee)](_0x964586=>_0x964586[_0x12b9da(0x1b7)]===_0x2f34cb);}[_0x1ebd13(0x160)](_0x37df4c){const _0x34a605=_0x1ebd13;return _0x34a605(0x18f)===_0x37df4c[_0x34a605(0x14a)]?_0x37df4c[_0x34a605(0x181)]:_0x37df4c[_0x34a605(0x17a)][_0x34a605(0x17c)];}[_0x1ebd13(0x1a8)](_0x47d924,_0x2570a5=!0x1){const _0x421507=_0x1ebd13;return _0x421507(0x18f)===_0x47d924[_0x421507(0x14a)]?_0x2570a5?_0x47d924[_0x421507(0x181)]:_0x47d924[_0x421507(0x181)][_0x421507(0x152)](_0x47d924[_0x421507(0x1b9)]):_0x47d924[_0x421507(0x17a)][_0x421507(0x1e9)];}[_0x1ebd13(0x1e7)](_0x5e655b,_0x2f1e4d){const _0x4d46ad=_0x1ebd13;return _0x4d46ad(0x18f)===_0x5e655b[_0x4d46ad(0x14a)]?_0x5e655b[_0x4d46ad(0x181)]=_0x5e655b[_0x4d46ad(0x181)][_0x4d46ad(0x152)](_0x2f1e4d):_0x4d46ad(0x163)===_0x5e655b[_0x4d46ad(0x14a)]&&_0x5e655b[_0x4d46ad(0x17a)]&&(_0x5e655b[_0x4d46ad(0x17a)]=new _0x2e17f0(_0x5e655b[_0x4d46ad(0x17a)][_0x4d46ad(0x17c)][_0x4d46ad(0x152)](_0x2f1e4d),_0x5e655b[_0x4d46ad(0x17a)][_0x4d46ad(0x1e9)][_0x4d46ad(0x152)](_0x2f1e4d))),_0x5e655b;}[_0x1ebd13(0x183)](_0xd61c41,_0x3284a4){const _0x98532=_0x1ebd13;_0x98532(0x18f)===_0xd61c41[_0x98532(0x14a)]?_0xd61c41[_0x98532(0x181)]=this[_0x98532(0x15d)](_0xd61c41[_0x98532(0x181)],_0x3284a4):_0x98532(0x163)===_0xd61c41[_0x98532(0x14a)]&&_0xd61c41[_0x98532(0x17a)]&&(_0xd61c41[_0x98532(0x17a)]=this[_0x98532(0x207)](_0xd61c41[_0x98532(0x17a)],_0x3284a4));}[_0x1ebd13(0x15d)](_0x4c8166,_0x861488){const _0xc203ca=_0x1ebd13;return new _0x9c055e(_0x861488,_0x4c8166[_0xc203ca(0x1c7)]);}[_0x1ebd13(0x207)](_0x5a178e,_0x2d38e9){const _0x5492c2=_0x1ebd13;return new _0x2e17f0(this[_0x5492c2(0x15d)](_0x5a178e[_0x5492c2(0x17c)],_0x2d38e9),this[_0x5492c2(0x15d)](_0x5a178e[_0x5492c2(0x1e9)],_0x2d38e9));}[_0x1ebd13(0x1b6)](_0x15c6b4,_0x4b67d9,_0x56f201){return new _0x9c055e(_0x56f201,[..._0x4b67d9]);}[_0x1ebd13(0x185)](_0x5c1049,_0x1d4a62,_0xce7073,_0x582a4e){const _0x1c9754=_0x1ebd13;return new _0x2e17f0(this[_0x1c9754(0x1b6)](_0x5c1049[_0x1c9754(0x17c)],_0x1d4a62,_0x582a4e),this[_0x1c9754(0x1b6)](_0x5c1049[_0x1c9754(0x1e9)],_0xce7073,_0x582a4e));}[_0x1ebd13(0x16e)](_0x186f25){const _0x6c69be=_0x1ebd13;let _0x361361=_0x186f25;for(;_0x361361[_0x6c69be(0x1b3)]&&!_0x361361[_0x6c69be(0x1b3)]['is'](_0x6c69be(0x208));)_0x361361=_0x361361[_0x6c69be(0x1b3)];return _0x361361;}}
@@ -0,0 +1,73 @@
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/aireviewmode/aireviewmodeui
7
+ * @publicApi
8
+ */
9
+ import { type Context, type Editor, ContextPlugin } from 'ckeditor5/src/core.js';
10
+ import { AITabs } from '../aitabs/aitabs.js';
11
+ import { type AIReviewCheck } from './model/aireviewcheck.js';
12
+ import { type AIReviewCheckRunUpdatedEvent } from './model/aireviewcheckrun.js';
13
+ import '../../theme/aireviewmode/aireviewmode.css';
14
+ export declare const AI_REVIEW_MODE_UI_EVENT_NAMES: readonly ["getReviewCheckList", "runReviewCheck", "abortReviewStream", "toggleDiff", "acceptAllChanges", "leaveReviewModeResultList", "scrollToSuggestionInDocument", "acceptChange", "dismissChange", "learnMore", "finishReview", "retryReview"];
15
+ export declare class AIReviewModeUI extends ContextPlugin {
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ static get requires(): readonly [typeof AITabs];
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ static get pluginName(): "AIReviewModeUI";
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ static get isOfficialPlugin(): true;
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ static get isPremiumPlugin(): true;
32
+ /**
33
+ * @inheritDoc
34
+ */
35
+ constructor(context: Context | Editor);
36
+ /**
37
+ * @inheritDoc
38
+ */
39
+ init(): void;
40
+ /**
41
+ * Sets the available checks in the AI Review Mode list view.
42
+ */
43
+ setAvailableChecks(checks: Array<AIReviewCheck>): void;
44
+ showReviewCheckList(): void;
45
+ /**
46
+ * Shows the result of a review check run.
47
+ */
48
+ showCheckRunResults(data: AIReviewCheckRunUpdatedEvent['args'][0]): void;
49
+ showCheckRunResult(result: {
50
+ contentDiffed: string;
51
+ id: string;
52
+ }): void;
53
+ showGeneralErrorView(): void;
54
+ showChunkErrorView(): void;
55
+ setCheckResultTitle(title: string): void;
56
+ resetActiveStateInResults(): void;
57
+ updateChangeState(id: string, status: 'active' | 'accepted' | 'rejected'): void;
58
+ showReviewCompletedView(): void;
59
+ showActionsWhenResultIsReady(): void;
60
+ hideActionsWhenResultIsReady(): void;
61
+ }
62
+ export type AIReviewModeUIGetReviewCheckListEvent = {
63
+ name: 'getReviewCheckList';
64
+ args: [];
65
+ };
66
+ export type AIReviewModeUILeaveReviewModeEvent = {
67
+ name: 'leaveReviewMode';
68
+ args: [];
69
+ };
70
+ export type AIReviewModeUIRetryReviewEvent = {
71
+ name: 'retryReview';
72
+ args: [];
73
+ };
@@ -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 _0x9571d=_0x30cf;(function(_0x229e81,_0x38ee90){const _0x7f5f98=_0x30cf,_0x2b356e=_0x229e81();while(!![]){try{const _0x3095e1=parseInt(_0x7f5f98(0x88))/0x1*(parseInt(_0x7f5f98(0xac))/0x2)+-parseInt(_0x7f5f98(0x98))/0x3*(-parseInt(_0x7f5f98(0x73))/0x4)+parseInt(_0x7f5f98(0x8b))/0x5*(-parseInt(_0x7f5f98(0x9a))/0x6)+parseInt(_0x7f5f98(0x9e))/0x7*(-parseInt(_0x7f5f98(0x8d))/0x8)+parseInt(_0x7f5f98(0x9c))/0x9*(-parseInt(_0x7f5f98(0x93))/0xa)+parseInt(_0x7f5f98(0x87))/0xb+-parseInt(_0x7f5f98(0x6f))/0xc*(-parseInt(_0x7f5f98(0x7c))/0xd);if(_0x3095e1===_0x38ee90)break;else _0x2b356e['push'](_0x2b356e['shift']());}catch(_0x24eef9){_0x2b356e['push'](_0x2b356e['shift']());}}}(_0x3d4e,0xd287e));import{ContextPlugin as _0x2564bf}from'ckeditor5/src/core.js';import{IconAIReview as _0x97a7ec}from'ckeditor5/src/icons.js';function _0x30cf(_0x31cb11,_0x30b420){const _0x3d4e93=_0x3d4e();return _0x30cf=function(_0x30cf12,_0xe78c7e){_0x30cf12=_0x30cf12-0x6d;let _0x52a69d=_0x3d4e93[_0x30cf12];return _0x52a69d;},_0x30cf(_0x31cb11,_0x30b420);}function _0x3d4e(){const _0x5727a4=['reviewCheckResultsView','showReviewCheckList','pluginName','abortReviewStream','acceptAllChanges','AIReviewModeUI','activateTab','learnMore','error-chunk','17861580bjkftD','1GOkMvi','reviewMode','showCheckRunResults','124625ehtMyW','getReviewCheckList','8WCTfZN','setAvailableChecks','setTitle','delegate','showReviewCheckListView','AITabs','10EcnTax','finishReview','isOfficialPlugin','leaveReviewModeResultList','showChunkErrorView','63mrgfEK','acceptChange','408SdeKrD','leaveReviewMode','7226829mdZmIb','_reviewModeView','9384781pCWLKg','rejected','runReviewCheck','addCheckRunResult','getResults','dismissChange','reviewCheckListView','setItemAsInactive','setChecks','view','addTab','forEach','context','hasChecks','2876270DPLGNH','requires','resetActiveStateInResults','showReviewCheckResultsView','updateChangeState','toggleDiff','accepted','showActionsWhenResultIsReady','plugins','hideActionsWhenResultIsReady','showReviewCompletedView','status','fire','24KWBSRP','showCheckRunResult','init','setCheckResultTitle','51676ECyoYY','locale','showGeneralErrorView','scrollToSuggestionInDocument','error-general','get','AI_REVIEW_MODE','hideResult','isPremiumPlugin','8889946Fobgvb','retryReview'];_0x3d4e=function(){return _0x5727a4;};return _0x3d4e();}import{AITabs as _0x23b417}from'../aitabs/aitabs.js';import{AIReviewModeView as _0x277dd2}from'./ui/aireviewmodeview.js';import{getTranslation as _0x5998ec}from'./utils/common-translations.js';import'../../theme/aireviewmode/aireviewmode.css';export const AI_REVIEW_MODE_UI_EVENT_NAMES=[_0x9571d(0x8c),_0x9571d(0xa0),_0x9571d(0x81),_0x9571d(0xb1),_0x9571d(0x82),_0x9571d(0x96),_0x9571d(0x76),_0x9571d(0x99),_0x9571d(0xa3),_0x9571d(0x85),_0x9571d(0x94),_0x9571d(0x7d)];export class AIReviewModeUI extends _0x2564bf{[_0x9571d(0x9d)];static get[_0x9571d(0xad)](){return[_0x23b417];}static get[_0x9571d(0x80)](){const _0x936859=_0x9571d;return _0x936859(0x83);}static get[_0x9571d(0x95)](){return!0x0;}static get[_0x9571d(0x7b)](){return!0x0;}constructor(_0x29749b){const _0x2f9022=_0x9571d;super(_0x29749b),this[_0x2f9022(0x9d)]=new _0x277dd2(this[_0x2f9022(0xaa)][_0x2f9022(0x74)]),this[_0x2f9022(0x9d)][_0x2f9022(0x90)](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this);}[_0x9571d(0x71)](){const _0x4bb325=_0x9571d,_0x5a41d2=this[_0x4bb325(0xaa)][_0x4bb325(0xb4)][_0x4bb325(0x78)](_0x4bb325(0x92));_0x5a41d2[_0x4bb325(0xa7)]['on'](_0x4bb325(0x84),(_0x265618,_0x250443)=>{const _0x21c6cc=_0x4bb325;_0x21c6cc(0x89)===_0x250443?this[_0x21c6cc(0x6e)](_0x21c6cc(0x8c)):this[_0x21c6cc(0x6e)](_0x21c6cc(0x9b));}),_0x5a41d2[_0x4bb325(0xa7)][_0x4bb325(0xa8)]({'id':_0x4bb325(0x89),'buttonLabel':_0x5998ec(this[_0x4bb325(0xaa)][_0x4bb325(0x74)],_0x4bb325(0x79)),'buttonIcon':_0x97a7ec,'order':0x0,'content':this[_0x4bb325(0x9d)]});}[_0x9571d(0x8e)](_0x2dea41){const _0x2a4143=_0x9571d;this[_0x2a4143(0x9d)][_0x2a4143(0xa4)][_0x2a4143(0xab)]()||this[_0x2a4143(0x9d)][_0x2a4143(0xa4)][_0x2a4143(0xa6)](_0x2dea41),this[_0x2a4143(0x9d)][_0x2a4143(0x91)]();}[_0x9571d(0x7f)](){const _0x1d53e6=_0x9571d;this[_0x1d53e6(0x6e)](_0x1d53e6(0x8c));}[_0x9571d(0x8a)](_0x192d20){const _0x26bd1d=_0x9571d;_0x192d20&&(_0x26bd1d(0x77)!==_0x192d20[_0x26bd1d(0x6d)]?_0x26bd1d(0x86)!==_0x192d20[_0x26bd1d(0x6d)]?this[_0x26bd1d(0x9d)][_0x26bd1d(0xaf)]():this[_0x26bd1d(0x97)]():this[_0x26bd1d(0x75)]());}[_0x9571d(0x70)](_0xba9fa6){const _0x773ecc=_0x9571d;this[_0x773ecc(0x9d)][_0x773ecc(0xa1)](_0xba9fa6);}[_0x9571d(0x75)](){const _0x8ec122=_0x9571d;this[_0x8ec122(0x9d)][_0x8ec122(0x75)]();}[_0x9571d(0x97)](){const _0x153a0c=_0x9571d;this[_0x153a0c(0x9d)][_0x153a0c(0x97)]();}[_0x9571d(0x72)](_0x6cd903){const _0x2a3486=_0x9571d;this[_0x2a3486(0x9d)][_0x2a3486(0x7e)][_0x2a3486(0x8f)](_0x6cd903);}[_0x9571d(0xae)](){const _0x17caae=_0x9571d;this[_0x17caae(0x9d)][_0x17caae(0x7e)][_0x17caae(0xa2)]()[_0x17caae(0xa9)](_0x942b20=>_0x942b20[_0x17caae(0xa5)]());}[_0x9571d(0xb0)](_0x39ba02,_0x4940e8){const _0x1133a1=_0x9571d;_0x1133a1(0xb2)!==_0x4940e8&&_0x1133a1(0x9f)!==_0x4940e8||this[_0x1133a1(0x9d)][_0x1133a1(0x7e)][_0x1133a1(0x7a)](_0x39ba02);}[_0x9571d(0xb6)](){const _0x17be89=_0x9571d;this[_0x17be89(0x9d)][_0x17be89(0xb6)]();}[_0x9571d(0xb3)](){const _0x218ab3=_0x9571d;this[_0x218ab3(0x9d)][_0x218ab3(0xb3)]();}[_0x9571d(0xb5)](){const _0x5dd8d8=_0x9571d;this[_0x5dd8d8(0x9d)][_0x5dd8d8(0xb5)]();}}
@@ -0,0 +1,60 @@
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/aireviewmode/model/aireviewcheck
7
+ * @publicApi
8
+ */
9
+ /**
10
+ * Represents the single type of check that can be performed in the AI Review Mode.
11
+ */
12
+ export declare class AIReviewCheck {
13
+ /**
14
+ * The unique ID of the check.
15
+ */
16
+ readonly id: string;
17
+ /**
18
+ * The title of the check.
19
+ */
20
+ readonly title: string;
21
+ /**
22
+ * The description of the check.
23
+ */
24
+ readonly description: string;
25
+ /**
26
+ * Indicates whether the check requires additional parameters.
27
+ * For example, a "Change to [tone]" check would require a tone parameter.
28
+ */
29
+ isParameterized: boolean;
30
+ /**
31
+ * Indicates whether the check should use additional arguments (like language) when executed.
32
+ */
33
+ useArgs?: boolean;
34
+ /**
35
+ * Additional options for the check, if any.
36
+ */
37
+ options?: Array<AIReviewCheckOptions>;
38
+ /**
39
+ * Creates a new instance of the AIReviewCheck.
40
+ */
41
+ constructor({ id, title, description, isParameterized, useArgs, options }: {
42
+ id: string;
43
+ title: string;
44
+ description: string;
45
+ isParameterized: boolean;
46
+ useArgs?: boolean;
47
+ options?: Array<AIReviewCheckOptions>;
48
+ });
49
+ }
50
+ export type AIReviewCheckOptionData = {
51
+ label: string;
52
+ id: string;
53
+ };
54
+ export type AIReviewCheckOptions = {
55
+ formType: string;
56
+ label?: string;
57
+ default?: string;
58
+ data?: Array<AIReviewCheckOptionData>;
59
+ argsKey?: string;
60
+ };
@@ -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 _0xa087(_0x41dbe5,_0x3ef7c6){var _0xe5589a=_0xe558();return _0xa087=function(_0xa0875f,_0x38838c){_0xa0875f=_0xa0875f-0xd7;var _0x512f6e=_0xe5589a[_0xa0875f];return _0x512f6e;},_0xa087(_0x41dbe5,_0x3ef7c6);}var _0x553e07=_0xa087;(function(_0x3831ba,_0x2ecc9d){var _0xfaf71=_0xa087,_0x2b675b=_0x3831ba();while(!![]){try{var _0x3bd585=parseInt(_0xfaf71(0xe1))/0x1+-parseInt(_0xfaf71(0xdd))/0x2+-parseInt(_0xfaf71(0xda))/0x3+parseInt(_0xfaf71(0xdb))/0x4*(-parseInt(_0xfaf71(0xdc))/0x5)+parseInt(_0xfaf71(0xe0))/0x6+-parseInt(_0xfaf71(0xde))/0x7+parseInt(_0xfaf71(0xe3))/0x8;if(_0x3bd585===_0x2ecc9d)break;else _0x2b675b['push'](_0x2b675b['shift']());}catch(_0x4d859a){_0x2b675b['push'](_0x2b675b['shift']());}}}(_0xe558,0xb3d8b));export class AIReviewCheck{['id'];[_0x553e07(0xd9)];[_0x553e07(0xe2)];[_0x553e07(0xdf)];[_0x553e07(0xd7)];[_0x553e07(0xd8)];constructor({id:_0x5a257e,title:_0x1369bb,description:_0x13f075,isParameterized:_0x57b117,useArgs:_0x30142f,options:_0x4a7441}){var _0x3b1cec=_0x553e07;this['id']=_0x5a257e,this[_0x3b1cec(0xd9)]=_0x1369bb,this[_0x3b1cec(0xe2)]=_0x13f075,this[_0x3b1cec(0xdf)]=_0x57b117,this[_0x3b1cec(0xd7)]=_0x30142f,this[_0x3b1cec(0xd8)]=_0x4a7441;}}function _0xe558(){var _0x201471=['1452087PYIhKZ','description','7748352BiHCDC','useArgs','options','title','3490458qIkADo','30596joTblc','845mhgcGl','97290aULZPW','1789410yIUvRV','isParameterized','6458772eZbUkV'];_0xe558=function(){return _0x201471;};return _0xe558();}
@@ -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/aireviewmode/model/aireviewcheckcustom
7
+ * @publicApi
8
+ */
9
+ import { AIReviewCheck } from './aireviewcheck.js';
10
+ import { type AIReviewModel } from './aireviewmodels.js';
11
+ /**
12
+ * Represents the single type of custom check that can be performed in the AI Review Mode.
13
+ */
14
+ export declare class AIReviewCheckCustom extends AIReviewCheck {
15
+ get models(): Array<AIReviewModel>;
16
+ set models(models: Array<AIReviewModel>);
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
+ var _0x2ff41a=_0x3cdf;(function(_0x25854a,_0x1967ec){var _0x23f2a0=_0x3cdf,_0xc8d0bd=_0x25854a();while(!![]){try{var _0x3763e8=parseInt(_0x23f2a0(0x161))/0x1*(parseInt(_0x23f2a0(0x162))/0x2)+-parseInt(_0x23f2a0(0x157))/0x3*(-parseInt(_0x23f2a0(0x15a))/0x4)+parseInt(_0x23f2a0(0x164))/0x5+parseInt(_0x23f2a0(0x15f))/0x6*(-parseInt(_0x23f2a0(0x159))/0x7)+parseInt(_0x23f2a0(0x160))/0x8+-parseInt(_0x23f2a0(0x15e))/0x9*(parseInt(_0x23f2a0(0x15b))/0xa)+parseInt(_0x23f2a0(0x15c))/0xb*(-parseInt(_0x23f2a0(0x158))/0xc);if(_0x3763e8===_0x1967ec)break;else _0xc8d0bd['push'](_0xc8d0bd['shift']());}catch(_0x3bcc6b){_0xc8d0bd['push'](_0xc8d0bd['shift']());}}}(_0x1878,0xeadf8));import{AIReviewCheck as _0x4bdb79}from'./aireviewcheck.js';function _0x1878(){var _0x132b8f=['15987422wVdsKT','models','333zzFjeK','12WsYmLm','8438408FhCLjM','1711697SLGuPK','2ROKewu','_models','7092005YpUTrB','1570830nQzriR','24BGeLcU','3696742oyUfXn','8DTWUhj','82990ojdSDl'];_0x1878=function(){return _0x132b8f;};return _0x1878();}function _0x3cdf(_0x440b7b,_0x2e155f){var _0x18786a=_0x1878();return _0x3cdf=function(_0x3cdf14,_0x19dede){_0x3cdf14=_0x3cdf14-0x157;var _0x5068b8=_0x18786a[_0x3cdf14];return _0x5068b8;},_0x3cdf(_0x440b7b,_0x2e155f);}export class AIReviewCheckCustom extends _0x4bdb79{[_0x2ff41a(0x163)]=[];get[_0x2ff41a(0x15d)](){var _0x33256a=_0x2ff41a;return this[_0x33256a(0x163)];}set[_0x2ff41a(0x15d)](_0xf5dcb8){var _0x1d178f=_0x2ff41a;this[_0x1d178f(0x163)]=_0xf5dcb8;}}
@@ -0,0 +1,31 @@
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 { AIReviewCheck } from './aireviewcheck.js';
6
+ declare const AIReviewCheckList_base: {
7
+ new (): import("ckeditor5/src/utils.js").Observable;
8
+ prototype: import("ckeditor5/src/utils.js").Observable;
9
+ };
10
+ /**
11
+ * Represents the list of review checks that can be performed in the AI Review Mode.
12
+ */
13
+ export declare class AIReviewCheckList extends /* #__PURE__ */ AIReviewCheckList_base {
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ constructor();
18
+ /**
19
+ * The list of available review checks.
20
+ */
21
+ get checks(): Array<AIReviewCheck>;
22
+ /**
23
+ * The list of available review checks including expanded parameterized checks.
24
+ */
25
+ get getExpandedChecks(): Array<any>;
26
+ /**
27
+ * Returns the check by its ID.
28
+ */
29
+ getCheckById(id: string): AIReviewCheck | undefined;
30
+ }
31
+ 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 _0x2d218d=_0x4673;(function(_0x1f5870,_0x47fba8){const _0x1ad669=_0x4673,_0x27b370=_0x1f5870();while(!![]){try{const _0x239838=parseInt(_0x1ad669(0x14a))/0x1*(-parseInt(_0x1ad669(0x133))/0x2)+parseInt(_0x1ad669(0x167))/0x3*(-parseInt(_0x1ad669(0x153))/0x4)+-parseInt(_0x1ad669(0x15d))/0x5*(parseInt(_0x1ad669(0x14f))/0x6)+parseInt(_0x1ad669(0x147))/0x7+parseInt(_0x1ad669(0x15c))/0x8+parseInt(_0x1ad669(0x14e))/0x9+-parseInt(_0x1ad669(0x135))/0xa*(-parseInt(_0x1ad669(0x16c))/0xb);if(_0x239838===_0x47fba8)break;else _0x27b370['push'](_0x27b370['shift']());}catch(_0x2efc06){_0x27b370['push'](_0x27b370['shift']());}}}(_0x190e,0x9e626));function _0x4673(_0x578899,_0x5b0bc3){const _0x190e3a=_0x190e();return _0x4673=function(_0x467396,_0x1981f1){_0x467396=_0x467396-0x11a;let _0x250433=_0x190e3a[_0x467396];return _0x250433;},_0x4673(_0x578899,_0x5b0bc3);}import{ObservableMixin as _0x5aff3c}from'ckeditor5/src/utils.js';import{AIReviewCheck as _0x52d6ec}from'./aireviewcheck.js';function _0x190e(){const _0x228f79=['english','Ensure\x20the\x20text\x20is\x20factually\x20accurate\x20and\x20free\x20of\x20errors.','Japanese','Direct','data','Russian','Shorter','join','German','reduce','checks','Clarity','japanese','dropdown','clarity','russian','isParameterized','_getExpandedReviewChecks','Spanish','Translate\x20the\x20text\x20into\x20another\x20language.','custom','2IrOhqw','spanish','3490nhDtxg','getCheckById','make-tone','shorter','Casual','Choose\x20tone\x20and\x20style\x20to\x20change\x20content\x20as\x20you\x20need.','direct','friendly','make','Type\x20a\x20custom\x20command\x20to\x20review\x20the\x20content\x20exactly\x20as\x20you\x20need.','map','Adjust\x20tone\x20and\x20style','Select\x20language','Korean','French','correctness','german','Portuguese','1916789XaVPqv','readability','Custom\x20command','941508vgocAt','Longer','language','longer','5950314yfMLBn','2526BJIVhk','translate','Translate','label','4eKLdOD','Improve\x20the\x20clarity\x20and\x20readability\x20of\x20the\x20text.','Enhance\x20the\x20overall\x20readability\x20of\x20the\x20text.','Italian','chinese','french','Adjust\x20length','confident',':\x20\x0a','8237240QQLCqa','7855tirJbN','Refine\x20text\x20length\x20to\x20match\x20your\x20needs.','English','Readability','length','Chinese\x20(Simplified)','Friendly','flatMap','_checks','find','284379ZCRrSL','options','korean','useArgs','Confident','12034gqoYDj','title','_getAvailableReviewChecks','casual','Correctness','Professional','portuguese','italian','professional','getExpandedChecks'];_0x190e=function(){return _0x228f79;};return _0x190e();}import{AIReviewCheckCustom as _0x5de422}from'./aireviewcheckcustom.js';const ta=[{'id':_0x2d218d(0x132),'title':_0x2d218d(0x149),'description':_0x2d218d(0x13e),'isParameterized':!0x0},{'id':_0x2d218d(0x144),'title':_0x2d218d(0x170),'description':_0x2d218d(0x11f),'isParameterized':!0x1},{'id':_0x2d218d(0x12c),'title':_0x2d218d(0x129),'description':_0x2d218d(0x154),'isParameterized':!0x1},{'id':_0x2d218d(0x148),'title':_0x2d218d(0x160),'description':_0x2d218d(0x155),'isParameterized':!0x1},{'id':_0x2d218d(0x13d),'title':_0x2d218d(0x159),'description':_0x2d218d(0x15e),'isParameterized':!0x0,'options':[{'formType':_0x2d218d(0x12b),'label':_0x2d218d(0x159),'default':_0x2d218d(0x14d),'data':[{'label':_0x2d218d(0x14b),'id':_0x2d218d(0x14d)},{'label':_0x2d218d(0x124),'id':_0x2d218d(0x138)}]}]},{'id':_0x2d218d(0x137),'title':_0x2d218d(0x140),'description':_0x2d218d(0x13a),'isParameterized':!0x0,'options':[{'formType':_0x2d218d(0x12b),'label':_0x2d218d(0x140),'default':_0x2d218d(0x16f),'data':[{'label':_0x2d218d(0x139),'id':_0x2d218d(0x16f)},{'label':_0x2d218d(0x121),'id':_0x2d218d(0x13b)},{'label':_0x2d218d(0x163),'id':_0x2d218d(0x13c)},{'label':_0x2d218d(0x16b),'id':_0x2d218d(0x15a)},{'label':_0x2d218d(0x171),'id':_0x2d218d(0x11c)}]}]},{'id':_0x2d218d(0x150),'title':_0x2d218d(0x151),'description':_0x2d218d(0x131),'isParameterized':!0x0,'useArgs':!0x0,'options':[{'formType':_0x2d218d(0x12b),'label':_0x2d218d(0x141),'default':_0x2d218d(0x134),'argsKey':_0x2d218d(0x14c),'data':[{'label':_0x2d218d(0x15f),'id':_0x2d218d(0x11e)},{'label':_0x2d218d(0x130),'id':_0x2d218d(0x134)},{'label':_0x2d218d(0x143),'id':_0x2d218d(0x158)},{'label':_0x2d218d(0x126),'id':_0x2d218d(0x145)},{'label':_0x2d218d(0x162),'id':_0x2d218d(0x157)},{'label':_0x2d218d(0x120),'id':_0x2d218d(0x12a)},{'label':_0x2d218d(0x123),'id':_0x2d218d(0x12d)},{'label':_0x2d218d(0x146),'id':_0x2d218d(0x11a)},{'label':_0x2d218d(0x142),'id':_0x2d218d(0x169)},{'label':_0x2d218d(0x156),'id':_0x2d218d(0x11b)}]}]}];export class AIReviewCheckList extends _0x5aff3c(){[_0x2d218d(0x165)];constructor(){const _0x2f73ab=_0x2d218d;super(),this[_0x2f73ab(0x165)]=this[_0x2f73ab(0x16e)]();}get[_0x2d218d(0x128)](){const _0x543bd5=_0x2d218d;return this[_0x543bd5(0x165)];}get[_0x2d218d(0x11d)](){const _0x1318b9=_0x2d218d;return this[_0x1318b9(0x12f)]();}[_0x2d218d(0x136)](_0x284849){const _0x276089=_0x2d218d;return this[_0x276089(0x11d)][_0x276089(0x166)](_0x310280=>_0x310280['id']===_0x284849);}[_0x2d218d(0x16e)](){const _0x4be089=_0x2d218d;return ta[_0x4be089(0x13f)](_0x19a4d4=>_0x4be089(0x132)===_0x19a4d4['id']?new _0x5de422(_0x19a4d4):new _0x52d6ec(_0x19a4d4));}[_0x2d218d(0x12f)](){const _0x48e4b2=_0x2d218d;return ta[_0x48e4b2(0x164)](_0x32daf6=>{const _0x92858b=_0x48e4b2;if(_0x32daf6?.[_0x92858b(0x16a)])return[_0x32daf6];if(_0x32daf6[_0x92858b(0x12e)]&&_0x32daf6[_0x92858b(0x168)]?.[_0x92858b(0x161)]){const _0x3bf3d1=_0x32daf6[_0x92858b(0x168)][_0x92858b(0x13f)](_0x3cbc74=>_0x3cbc74[_0x92858b(0x122)]||[]);return _0x3bf3d1[_0x92858b(0x127)]((_0x379caf,_0x4afe06)=>_0x379caf[_0x92858b(0x164)](_0x44a97f=>_0x4afe06[_0x92858b(0x13f)](_0x5f5696=>[..._0x44a97f,_0x5f5696])),[[]])[_0x92858b(0x13f)](_0x31ed6a=>{const _0x1b4b39=_0x92858b,_0x167de7=_0x31ed6a[_0x1b4b39(0x13f)](_0x5dd8b1=>_0x5dd8b1['id'])[_0x1b4b39(0x125)]('-'),_0x1c16a8=_0x31ed6a[_0x1b4b39(0x13f)](_0x4ddf8e=>_0x4ddf8e[_0x1b4b39(0x152)])[_0x1b4b39(0x125)](',\x20');return{..._0x32daf6,'id':_0x32daf6['id']+'-'+_0x167de7,'title':_0x32daf6[_0x1b4b39(0x16d)]+_0x1b4b39(0x15b)+_0x1c16a8,'selectedOptions':_0x31ed6a};});}return[_0x32daf6];});}}