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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (624) hide show
  1. package/LICENSE.md +18 -5
  2. package/README.md +10 -9
  3. package/build/ai.js +2 -2
  4. package/build/translations/af.js +1 -1
  5. package/build/translations/ar.js +1 -1
  6. package/build/translations/ast.js +1 -1
  7. package/build/translations/az.js +1 -1
  8. package/build/translations/be.js +1 -1
  9. package/build/translations/bg.js +1 -1
  10. package/build/translations/bn.js +1 -1
  11. package/build/translations/bs.js +1 -1
  12. package/build/translations/ca.js +1 -1
  13. package/build/translations/cs.js +1 -1
  14. package/build/translations/da.js +1 -1
  15. package/build/translations/de-ch.js +1 -1
  16. package/build/translations/de.js +1 -1
  17. package/build/translations/el.js +1 -1
  18. package/build/translations/en-au.js +1 -1
  19. package/build/translations/en-gb.js +1 -1
  20. package/build/translations/eo.js +1 -1
  21. package/build/translations/es-co.js +1 -1
  22. package/build/translations/es.js +1 -1
  23. package/build/translations/et.js +1 -1
  24. package/build/translations/eu.js +1 -1
  25. package/build/translations/fa.js +1 -1
  26. package/build/translations/fi.js +1 -1
  27. package/build/translations/fr.js +1 -1
  28. package/build/translations/gl.js +1 -1
  29. package/build/translations/gu.js +1 -1
  30. package/build/translations/he.js +1 -1
  31. package/build/translations/hi.js +1 -1
  32. package/build/translations/hr.js +1 -1
  33. package/build/translations/hu.js +1 -1
  34. package/build/translations/hy.js +1 -1
  35. package/build/translations/id.js +1 -1
  36. package/build/translations/it.js +1 -1
  37. package/build/translations/ja.js +1 -1
  38. package/build/translations/jv.js +1 -1
  39. package/build/translations/kk.js +1 -1
  40. package/build/translations/km.js +1 -1
  41. package/build/translations/kn.js +1 -1
  42. package/build/translations/ko.js +1 -1
  43. package/build/translations/ku.js +1 -1
  44. package/build/translations/lt.js +1 -1
  45. package/build/translations/lv.js +1 -1
  46. package/build/translations/ms.js +1 -1
  47. package/build/translations/nb.js +1 -1
  48. package/build/translations/ne.js +1 -1
  49. package/build/translations/nl.js +1 -1
  50. package/build/translations/no.js +1 -1
  51. package/build/translations/oc.js +1 -1
  52. package/build/translations/pl.js +1 -1
  53. package/build/translations/pt-br.js +1 -1
  54. package/build/translations/pt.js +1 -1
  55. package/build/translations/ro.js +1 -1
  56. package/build/translations/ru.js +1 -1
  57. package/build/translations/si.js +1 -1
  58. package/build/translations/sk.js +1 -1
  59. package/build/translations/sl.js +1 -1
  60. package/build/translations/sq.js +1 -1
  61. package/build/translations/sr-latn.js +1 -1
  62. package/build/translations/sr.js +1 -1
  63. package/build/translations/sv.js +1 -1
  64. package/build/translations/th.js +1 -1
  65. package/build/translations/ti.js +1 -1
  66. package/build/translations/tk.js +1 -1
  67. package/build/translations/tr.js +1 -1
  68. package/build/translations/tt.js +1 -1
  69. package/build/translations/ug.js +1 -1
  70. package/build/translations/uk.js +1 -1
  71. package/build/translations/ur.js +1 -1
  72. package/build/translations/uz.js +1 -1
  73. package/build/translations/vi.js +1 -1
  74. package/build/translations/zh-cn.js +1 -1
  75. package/build/translations/zh.js +1 -1
  76. package/ckeditor5-metadata.json +24 -3
  77. package/dist/index-content.css +0 -1
  78. package/dist/index-editor.css +2648 -0
  79. package/dist/index.css +3047 -0
  80. package/dist/index.js +4 -2
  81. package/dist/translations/af.js +1 -1
  82. package/dist/translations/af.umd.js +1 -1
  83. package/dist/translations/ar.js +1 -1
  84. package/dist/translations/ar.umd.js +1 -1
  85. package/dist/translations/ast.js +1 -1
  86. package/dist/translations/ast.umd.js +1 -1
  87. package/dist/translations/az.js +1 -1
  88. package/dist/translations/az.umd.js +1 -1
  89. package/dist/translations/be.js +1 -1
  90. package/dist/translations/be.umd.js +1 -1
  91. package/dist/translations/bg.js +1 -1
  92. package/dist/translations/bg.umd.js +1 -1
  93. package/dist/translations/bn.js +1 -1
  94. package/dist/translations/bn.umd.js +1 -1
  95. package/dist/translations/bs.js +1 -1
  96. package/dist/translations/bs.umd.js +1 -1
  97. package/dist/translations/ca.js +1 -1
  98. package/dist/translations/ca.umd.js +1 -1
  99. package/dist/translations/cs.js +1 -1
  100. package/dist/translations/cs.umd.js +1 -1
  101. package/dist/translations/da.js +1 -1
  102. package/dist/translations/da.umd.js +1 -1
  103. package/dist/translations/de-ch.js +1 -1
  104. package/dist/translations/de-ch.umd.js +1 -1
  105. package/dist/translations/de.js +1 -1
  106. package/dist/translations/de.umd.js +1 -1
  107. package/dist/translations/el.js +1 -1
  108. package/dist/translations/el.umd.js +1 -1
  109. package/dist/translations/en-au.js +1 -1
  110. package/dist/translations/en-au.umd.js +1 -1
  111. package/dist/translations/en-gb.js +1 -1
  112. package/dist/translations/en-gb.umd.js +1 -1
  113. package/dist/translations/en.js +1 -1
  114. package/dist/translations/en.umd.js +1 -1
  115. package/dist/translations/eo.js +1 -1
  116. package/dist/translations/eo.umd.js +1 -1
  117. package/dist/translations/es-co.js +1 -1
  118. package/dist/translations/es-co.umd.js +1 -1
  119. package/dist/translations/es.js +1 -1
  120. package/dist/translations/es.umd.js +1 -1
  121. package/dist/translations/et.js +1 -1
  122. package/dist/translations/et.umd.js +1 -1
  123. package/dist/translations/eu.js +1 -1
  124. package/dist/translations/eu.umd.js +1 -1
  125. package/dist/translations/fa.js +1 -1
  126. package/dist/translations/fa.umd.js +1 -1
  127. package/dist/translations/fi.js +1 -1
  128. package/dist/translations/fi.umd.js +1 -1
  129. package/dist/translations/fr.js +1 -1
  130. package/dist/translations/fr.umd.js +1 -1
  131. package/dist/translations/gl.js +1 -1
  132. package/dist/translations/gl.umd.js +1 -1
  133. package/dist/translations/gu.js +1 -1
  134. package/dist/translations/gu.umd.js +1 -1
  135. package/dist/translations/he.js +1 -1
  136. package/dist/translations/he.umd.js +1 -1
  137. package/dist/translations/hi.js +1 -1
  138. package/dist/translations/hi.umd.js +1 -1
  139. package/dist/translations/hr.js +1 -1
  140. package/dist/translations/hr.umd.js +1 -1
  141. package/dist/translations/hu.js +1 -1
  142. package/dist/translations/hu.umd.js +1 -1
  143. package/dist/translations/hy.js +1 -1
  144. package/dist/translations/hy.umd.js +1 -1
  145. package/dist/translations/id.js +1 -1
  146. package/dist/translations/id.umd.js +1 -1
  147. package/dist/translations/it.js +1 -1
  148. package/dist/translations/it.umd.js +1 -1
  149. package/dist/translations/ja.js +1 -1
  150. package/dist/translations/ja.umd.js +1 -1
  151. package/dist/translations/jv.js +1 -1
  152. package/dist/translations/jv.umd.js +1 -1
  153. package/dist/translations/kk.js +1 -1
  154. package/dist/translations/kk.umd.js +1 -1
  155. package/dist/translations/km.js +1 -1
  156. package/dist/translations/km.umd.js +1 -1
  157. package/dist/translations/kn.js +1 -1
  158. package/dist/translations/kn.umd.js +1 -1
  159. package/dist/translations/ko.js +1 -1
  160. package/dist/translations/ko.umd.js +1 -1
  161. package/dist/translations/ku.js +1 -1
  162. package/dist/translations/ku.umd.js +1 -1
  163. package/dist/translations/lt.js +1 -1
  164. package/dist/translations/lt.umd.js +1 -1
  165. package/dist/translations/lv.js +1 -1
  166. package/dist/translations/lv.umd.js +1 -1
  167. package/dist/translations/ms.js +1 -1
  168. package/dist/translations/ms.umd.js +1 -1
  169. package/dist/translations/nb.js +1 -1
  170. package/dist/translations/nb.umd.js +1 -1
  171. package/dist/translations/ne.js +1 -1
  172. package/dist/translations/ne.umd.js +1 -1
  173. package/dist/translations/nl.js +1 -1
  174. package/dist/translations/nl.umd.js +1 -1
  175. package/dist/translations/no.js +1 -1
  176. package/dist/translations/no.umd.js +1 -1
  177. package/dist/translations/oc.js +1 -1
  178. package/dist/translations/oc.umd.js +1 -1
  179. package/dist/translations/pl.js +1 -1
  180. package/dist/translations/pl.umd.js +1 -1
  181. package/dist/translations/pt-br.js +1 -1
  182. package/dist/translations/pt-br.umd.js +1 -1
  183. package/dist/translations/pt.js +1 -1
  184. package/dist/translations/pt.umd.js +1 -1
  185. package/dist/translations/ro.js +1 -1
  186. package/dist/translations/ro.umd.js +1 -1
  187. package/dist/translations/ru.js +1 -1
  188. package/dist/translations/ru.umd.js +1 -1
  189. package/dist/translations/si.js +1 -1
  190. package/dist/translations/si.umd.js +1 -1
  191. package/dist/translations/sk.js +1 -1
  192. package/dist/translations/sk.umd.js +1 -1
  193. package/dist/translations/sl.js +1 -1
  194. package/dist/translations/sl.umd.js +1 -1
  195. package/dist/translations/sq.js +1 -1
  196. package/dist/translations/sq.umd.js +1 -1
  197. package/dist/translations/sr-latn.js +1 -1
  198. package/dist/translations/sr-latn.umd.js +1 -1
  199. package/dist/translations/sr.js +1 -1
  200. package/dist/translations/sr.umd.js +1 -1
  201. package/dist/translations/sv.js +1 -1
  202. package/dist/translations/sv.umd.js +1 -1
  203. package/dist/translations/th.js +1 -1
  204. package/dist/translations/th.umd.js +1 -1
  205. package/dist/translations/ti.js +1 -1
  206. package/dist/translations/ti.umd.js +1 -1
  207. package/dist/translations/tk.js +1 -1
  208. package/dist/translations/tk.umd.js +1 -1
  209. package/dist/translations/tr.js +1 -1
  210. package/dist/translations/tr.umd.js +1 -1
  211. package/dist/translations/tt.js +1 -1
  212. package/dist/translations/tt.umd.js +1 -1
  213. package/dist/translations/ug.js +1 -1
  214. package/dist/translations/ug.umd.js +1 -1
  215. package/dist/translations/uk.js +1 -1
  216. package/dist/translations/uk.umd.js +1 -1
  217. package/dist/translations/ur.js +1 -1
  218. package/dist/translations/ur.umd.js +1 -1
  219. package/dist/translations/uz.js +1 -1
  220. package/dist/translations/uz.umd.js +1 -1
  221. package/dist/translations/vi.js +1 -1
  222. package/dist/translations/vi.umd.js +1 -1
  223. package/dist/translations/zh-cn.js +1 -1
  224. package/dist/translations/zh-cn.umd.js +1 -1
  225. package/dist/translations/zh.js +1 -1
  226. package/dist/translations/zh.umd.js +1 -1
  227. package/lang/contexts.json +162 -1
  228. package/lang/translations/af.po +612 -0
  229. package/lang/translations/ar.po +628 -0
  230. package/lang/translations/ast.po +612 -0
  231. package/lang/translations/az.po +612 -0
  232. package/lang/translations/be.po +616 -0
  233. package/lang/translations/bg.po +612 -0
  234. package/lang/translations/bn.po +612 -0
  235. package/lang/translations/bs.po +616 -0
  236. package/lang/translations/ca.po +612 -0
  237. package/lang/translations/cs.po +616 -0
  238. package/lang/translations/da.po +612 -0
  239. package/lang/translations/de-ch.po +612 -0
  240. package/lang/translations/de.po +612 -0
  241. package/lang/translations/el.po +612 -0
  242. package/lang/translations/en-au.po +612 -0
  243. package/lang/translations/en-gb.po +612 -0
  244. package/lang/translations/en.po +612 -0
  245. package/lang/translations/eo.po +612 -0
  246. package/lang/translations/es-co.po +612 -0
  247. package/lang/translations/es.po +612 -0
  248. package/lang/translations/et.po +612 -0
  249. package/lang/translations/eu.po +612 -0
  250. package/lang/translations/fa.po +608 -0
  251. package/lang/translations/fi.po +612 -0
  252. package/lang/translations/fr.po +612 -0
  253. package/lang/translations/gl.po +612 -0
  254. package/lang/translations/gu.po +612 -0
  255. package/lang/translations/he.po +612 -0
  256. package/lang/translations/hi.po +612 -0
  257. package/lang/translations/hr.po +616 -0
  258. package/lang/translations/hu.po +612 -0
  259. package/lang/translations/hy.po +612 -0
  260. package/lang/translations/id.po +608 -0
  261. package/lang/translations/it.po +612 -0
  262. package/lang/translations/ja.po +608 -0
  263. package/lang/translations/jv.po +612 -0
  264. package/lang/translations/kk.po +612 -0
  265. package/lang/translations/km.po +608 -0
  266. package/lang/translations/kn.po +612 -0
  267. package/lang/translations/ko.po +608 -0
  268. package/lang/translations/ku.po +612 -0
  269. package/lang/translations/lt.po +616 -0
  270. package/lang/translations/lv.po +616 -0
  271. package/lang/translations/ms.po +608 -0
  272. package/lang/translations/nb.po +612 -0
  273. package/lang/translations/ne.po +612 -0
  274. package/lang/translations/nl.po +612 -0
  275. package/lang/translations/no.po +612 -0
  276. package/lang/translations/oc.po +612 -0
  277. package/lang/translations/pl.po +616 -0
  278. package/lang/translations/pt-br.po +612 -0
  279. package/lang/translations/pt.po +612 -0
  280. package/lang/translations/ro.po +616 -0
  281. package/lang/translations/ru.po +616 -0
  282. package/lang/translations/si.po +612 -0
  283. package/lang/translations/sk.po +616 -0
  284. package/lang/translations/sl.po +620 -0
  285. package/lang/translations/sq.po +612 -0
  286. package/lang/translations/sr-latn.po +616 -0
  287. package/lang/translations/sr.po +616 -0
  288. package/lang/translations/sv.po +612 -0
  289. package/lang/translations/th.po +608 -0
  290. package/lang/translations/ti.po +612 -0
  291. package/lang/translations/tk.po +612 -0
  292. package/lang/translations/tr.po +612 -0
  293. package/lang/translations/tt.po +608 -0
  294. package/lang/translations/ug.po +608 -0
  295. package/lang/translations/uk.po +616 -0
  296. package/lang/translations/ur.po +612 -0
  297. package/lang/translations/uz.po +612 -0
  298. package/lang/translations/vi.po +608 -0
  299. package/lang/translations/zh-cn.po +608 -0
  300. package/lang/translations/zh.po +608 -0
  301. package/package.json +23 -11
  302. package/src/aiactions/aiactions.d.ts +48 -0
  303. package/src/aiactions/aiactions.js +23 -0
  304. package/src/aiactions/model/aiactionsinteraction.d.ts +48 -0
  305. package/src/aiactions/model/aiactionsinteraction.js +23 -0
  306. package/src/aiactions/model/aiactionsreply.d.ts +15 -0
  307. package/src/aiactions/model/aiactionsreply.js +23 -0
  308. package/src/{adapters → aiassistant/adapters}/aiadapter.d.ts +1 -1
  309. package/src/aiassistant/adapters/aiadapter.js +23 -0
  310. package/src/{adapters → aiassistant/adapters}/aitextadapter.d.ts +9 -9
  311. package/src/aiassistant/adapters/aitextadapter.js +23 -0
  312. package/src/{adapters → aiassistant/adapters}/awstextadapter.d.ts +36 -23
  313. package/src/aiassistant/adapters/awstextadapter.js +23 -0
  314. package/src/{adapters → aiassistant/adapters}/openaitextadapter.d.ts +38 -25
  315. package/src/aiassistant/adapters/openaitextadapter.js +23 -0
  316. package/src/{aiassistant.d.ts → aiassistant/aiassistant.d.ts} +54 -13
  317. package/src/aiassistant/aiassistant.js +23 -0
  318. package/src/aiassistant/aiassistantediting.js +23 -0
  319. package/src/{aiassistantui.d.ts → aiassistant/aiassistantui.d.ts} +4 -4
  320. package/src/aiassistant/aiassistantui.js +23 -0
  321. package/src/aiassistant/legacyerrors.js +23 -0
  322. package/src/{ui → aiassistant/ui}/aiassistantcontroller.d.ts +5 -4
  323. package/src/aiassistant/ui/aiassistantcontroller.js +24 -0
  324. package/src/{ui → aiassistant/ui}/form/aiformcontentarea.d.ts +1 -1
  325. package/src/aiassistant/ui/form/aiformcontentarea.js +23 -0
  326. package/src/aiassistant/ui/form/aiformerrorview.js +23 -0
  327. package/src/{ui → aiassistant/ui}/form/aiformpromptview.d.ts +1 -1
  328. package/src/aiassistant/ui/form/aiformpromptview.js +23 -0
  329. package/src/{ui → aiassistant/ui}/form/aiformtoolbarview.d.ts +1 -1
  330. package/src/aiassistant/ui/form/aiformtoolbarview.js +23 -0
  331. package/src/{ui → aiassistant/ui}/form/aiformview.d.ts +1 -1
  332. package/src/aiassistant/ui/form/aiformview.js +23 -0
  333. package/src/{ui → aiassistant/ui}/form/aihistorylistitemview.d.ts +1 -1
  334. package/src/aiassistant/ui/form/aihistorylistitemview.js +23 -0
  335. package/src/{ui → aiassistant/ui}/form/aihistorylistview.d.ts +1 -1
  336. package/src/aiassistant/ui/form/aihistorylistview.js +23 -0
  337. package/src/{ui → aiassistant/ui}/form/prompthistory.d.ts +3 -0
  338. package/src/aiassistant/ui/form/prompthistory.js +23 -0
  339. package/src/{ui → aiassistant/ui}/showaiassistantcommand.d.ts +2 -2
  340. package/src/aiassistant/ui/showaiassistantcommand.js +23 -0
  341. package/src/{utils → aiassistant/utils}/common-translations.d.ts +1 -1
  342. package/src/{utils → aiassistant/utils}/common-translations.js +1 -1
  343. package/src/{utils → aiassistant/utils}/normalizecommandsconfig.d.ts +2 -2
  344. package/src/{utils → aiassistant/utils}/normalizecommandsconfig.js +1 -1
  345. package/src/aiballoon/aiballoon.d.ts +72 -0
  346. package/src/aiballoon/aiballoon.js +23 -0
  347. package/src/aiballoon/ui/aiballoondisclaimerview.d.ts +17 -0
  348. package/src/aiballoon/ui/aiballoondisclaimerview.js +23 -0
  349. package/src/aiballoon/ui/aiballoontoolbarview.d.ts +31 -0
  350. package/src/aiballoon/ui/aiballoontoolbarview.js +23 -0
  351. package/src/aiballoon/ui/aiballoonview.d.ts +109 -0
  352. package/src/aiballoon/ui/aiballoonview.js +23 -0
  353. package/src/aichat/aichat.d.ts +79 -0
  354. package/src/aichat/aichat.js +23 -0
  355. package/src/aichat/aichatcontroller.d.ts +68 -0
  356. package/src/aichat/aichatcontroller.js +23 -0
  357. package/src/aichat/aichatui.d.ts +297 -0
  358. package/src/aichat/aichatui.js +23 -0
  359. package/src/aichat/model/aichatcontext.d.ts +360 -0
  360. package/src/aichat/model/aichatcontext.js +23 -0
  361. package/src/aichat/model/aichatconversation.d.ts +270 -0
  362. package/src/aichat/model/aichatconversation.js +23 -0
  363. package/src/aichat/model/aichatinteraction.d.ts +46 -0
  364. package/src/aichat/model/aichatinteraction.js +23 -0
  365. package/src/aichat/model/aichatmodels.d.ts +77 -0
  366. package/src/aichat/model/aichatmodels.js +23 -0
  367. package/src/aichat/ui/aichatcontrolsview.d.ts +98 -0
  368. package/src/aichat/ui/aichatcontrolsview.js +23 -0
  369. package/src/aichat/ui/aichatfeedview.d.ts +114 -0
  370. package/src/aichat/ui/aichatfeedview.js +23 -0
  371. package/src/aichat/ui/aichatheaderview.d.ts +29 -0
  372. package/src/aichat/ui/aichatheaderview.js +23 -0
  373. package/src/aichat/ui/aichatview.d.ts +37 -0
  374. package/src/aichat/ui/aichatview.js +23 -0
  375. package/src/aichat/ui/controls/aichatchipsoverflowmanager.d.ts +71 -0
  376. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +23 -0
  377. package/src/aichat/ui/controls/aichatcontextitembuttonview.d.ts +46 -0
  378. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +23 -0
  379. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.d.ts +89 -0
  380. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +23 -0
  381. package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +105 -0
  382. package/src/aichat/ui/controls/aichatcontextpanelview.js +23 -0
  383. package/src/aichat/ui/controls/aichatcontrolsloaderview.d.ts +12 -0
  384. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +23 -0
  385. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.d.ts +89 -0
  386. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +23 -0
  387. package/src/aichat/ui/controls/aichatpromptinputview.d.ts +44 -0
  388. package/src/aichat/ui/controls/aichatpromptinputview.js +23 -0
  389. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.d.ts +17 -0
  390. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +23 -0
  391. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.d.ts +61 -0
  392. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +23 -0
  393. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +100 -0
  394. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +23 -0
  395. package/src/aichat/ui/controls/resources/aichatresourceslistview.d.ts +49 -0
  396. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +23 -0
  397. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.d.ts +61 -0
  398. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +23 -0
  399. package/src/aichat/ui/controls/resources/aichatresourcesview.d.ts +54 -0
  400. package/src/aichat/ui/controls/resources/aichatresourcesview.js +23 -0
  401. package/src/aichat/ui/feed/aichatfeedcontextchipsview.d.ts +27 -0
  402. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +23 -0
  403. package/src/aichat/ui/feed/aichatfeederroritemview.d.ts +39 -0
  404. package/src/aichat/ui/feed/aichatfeederroritemview.js +23 -0
  405. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +29 -0
  406. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +23 -0
  407. package/src/aichat/ui/feed/aichatfeeditemview.d.ts +46 -0
  408. package/src/aichat/ui/feed/aichatfeeditemview.js +23 -0
  409. package/src/aichat/ui/feed/aichatfeedreplyitemview.d.ts +46 -0
  410. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +23 -0
  411. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +74 -0
  412. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +23 -0
  413. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +74 -0
  414. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +23 -0
  415. package/src/aichat/ui/feed/aichatfeedusermessageitem.d.ts +40 -0
  416. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +23 -0
  417. package/src/aichat/utils/eventnames.d.ts +5 -0
  418. package/src/aichat/utils/eventnames.js +23 -0
  419. package/src/aichat/utils/promisequeue.d.ts +32 -0
  420. package/src/aichat/utils/promisequeue.js +23 -0
  421. package/src/aichat/utils/scrollmanager.d.ts +23 -0
  422. package/src/aichat/utils/scrollmanager.js +23 -0
  423. package/src/aichathistory/aichathistory.d.ts +30 -0
  424. package/src/aichathistory/aichathistory.js +23 -0
  425. package/src/aichathistory/aichathistorycontroller.d.ts +40 -0
  426. package/src/aichathistory/aichathistorycontroller.js +23 -0
  427. package/src/aichathistory/aichathistoryui.d.ts +112 -0
  428. package/src/aichathistory/aichathistoryui.js +23 -0
  429. package/src/aichathistory/model/aichathistoryconversations.d.ts +114 -0
  430. package/src/aichathistory/model/aichathistoryconversations.js +23 -0
  431. package/src/aichathistory/model/aichathistoryitem.d.ts +59 -0
  432. package/src/aichathistory/model/aichathistoryitem.js +23 -0
  433. package/src/aichathistory/ui/aichathistorylistitemview.d.ts +42 -0
  434. package/src/aichathistory/ui/aichathistorylistitemview.js +23 -0
  435. package/src/aichathistory/ui/aichathistorylistview.d.ts +31 -0
  436. package/src/aichathistory/ui/aichathistorylistview.js +23 -0
  437. package/src/aichathistory/ui/aichathistorysectionlistview.d.ts +17 -0
  438. package/src/aichathistory/ui/aichathistorysectionlistview.js +23 -0
  439. package/src/aichathistory/ui/aichathistoryview.d.ts +41 -0
  440. package/src/aichathistory/ui/aichathistoryview.js +23 -0
  441. package/src/aiconfig.d.ts +82 -31
  442. package/src/aicore/aiconnector.d.ts +302 -0
  443. package/src/aicore/aiconnector.js +23 -0
  444. package/src/aicore/aiediting.d.ts +61 -0
  445. package/src/aicore/aiediting.js +23 -0
  446. package/src/aicore/model/aicapabilities.d.ts +55 -0
  447. package/src/aicore/model/aicapabilities.js +23 -0
  448. package/src/aicore/model/aicontext.d.ts +53 -0
  449. package/src/aicore/model/aicontext.js +23 -0
  450. package/src/aicore/model/aiinteraction.d.ts +135 -0
  451. package/src/aicore/model/aiinteraction.js +23 -0
  452. package/src/aicore/model/aireply.d.ts +178 -0
  453. package/src/aicore/model/aireply.js +23 -0
  454. package/src/aicore/pipeline/airesponseapplier.d.ts +291 -0
  455. package/src/aicore/pipeline/airesponseapplier.js +24 -0
  456. package/src/aicore/pipeline/airesponseparser.d.ts +27 -0
  457. package/src/aicore/pipeline/airesponseparser.js +24 -0
  458. package/src/aicore/ui/aidisclaimerview.d.ts +17 -0
  459. package/src/aicore/ui/aidisclaimerview.js +23 -0
  460. package/src/aicore/ui/aiskeleton.d.ts +37 -0
  461. package/src/aicore/ui/aiskeleton.js +23 -0
  462. package/src/aicore/ui/aispinner.d.ts +14 -0
  463. package/src/aicore/ui/aispinner.js +23 -0
  464. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.d.ts +62 -0
  465. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +23 -0
  466. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +38 -0
  467. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +23 -0
  468. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +80 -0
  469. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +23 -0
  470. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +39 -0
  471. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +23 -0
  472. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.d.ts +39 -0
  473. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +23 -0
  474. package/src/aicore/utils/common-translations.d.ts +9 -0
  475. package/src/aicore/utils/common-translations.js +23 -0
  476. package/src/aicore/utils/createresizebutton.d.ts +12 -0
  477. package/src/aicore/utils/createresizebutton.js +23 -0
  478. package/src/aicore/utils/documentposition.d.ts +41 -0
  479. package/src/aicore/utils/documentposition.js +23 -0
  480. package/src/aicore/utils/documentrange.d.ts +46 -0
  481. package/src/aicore/utils/documentrange.js +23 -0
  482. package/src/aicore/utils/eventnames.d.ts +9 -0
  483. package/src/aicore/utils/eventnames.js +23 -0
  484. package/src/aicore/utils/geteditorfromcontext.d.ts +6 -0
  485. package/src/aicore/utils/geteditorfromcontext.js +23 -0
  486. package/src/aicore/utils/getoperationsfromreply.d.ts +21 -0
  487. package/src/aicore/utils/getoperationsfromreply.js +23 -0
  488. package/src/aicore/utils/getsuggestionpartsfromreply.d.ts +19 -0
  489. package/src/aicore/utils/getsuggestionpartsfromreply.js +23 -0
  490. package/src/aicore/utils/htmlparser.d.ts +35 -0
  491. package/src/aicore/utils/htmlparser.js +23 -0
  492. package/src/aicore/utils/htmlstreamer.d.ts +123 -0
  493. package/src/aicore/utils/htmlstreamer.js +23 -0
  494. package/src/aiquickactions/aiquickactions.d.ts +41 -0
  495. package/src/aiquickactions/aiquickactions.js +23 -0
  496. package/src/aiquickactions/aiquickactionscommand.d.ts +12 -0
  497. package/src/aiquickactions/aiquickactionscommand.js +23 -0
  498. package/src/aiquickactions/aiquickactionsediting.d.ts +23 -0
  499. package/src/aiquickactions/aiquickactionsediting.js +23 -0
  500. package/src/aiquickactions/aiquickactionsui.d.ts +150 -0
  501. package/src/aiquickactions/aiquickactionsui.js +23 -0
  502. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +30 -0
  503. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +23 -0
  504. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +45 -0
  505. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +23 -0
  506. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +45 -0
  507. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +23 -0
  508. package/src/aiquickactions/utils/common-translations.d.ts +9 -0
  509. package/src/aiquickactions/utils/common-translations.js +23 -0
  510. package/src/aireviewmode/aireviewmode.d.ts +30 -0
  511. package/src/aireviewmode/aireviewmode.js +23 -0
  512. package/src/aireviewmode/aireviewmodecontroller.d.ts +32 -0
  513. package/src/aireviewmode/aireviewmodecontroller.js +23 -0
  514. package/src/aireviewmode/aireviewmodeediting.d.ts +129 -0
  515. package/src/aireviewmode/aireviewmodeediting.js +23 -0
  516. package/src/aireviewmode/aireviewmodeui.d.ts +73 -0
  517. package/src/aireviewmode/aireviewmodeui.js +23 -0
  518. package/src/aireviewmode/model/aireviewcheck.d.ts +60 -0
  519. package/src/aireviewmode/model/aireviewcheck.js +23 -0
  520. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +17 -0
  521. package/src/aireviewmode/model/aireviewcheckcustom.js +23 -0
  522. package/src/aireviewmode/model/aireviewchecklist.d.ts +31 -0
  523. package/src/aireviewmode/model/aireviewchecklist.js +23 -0
  524. package/src/aireviewmode/model/aireviewcheckresult.d.ts +39 -0
  525. package/src/aireviewmode/model/aireviewcheckresult.js +23 -0
  526. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +42 -0
  527. package/src/aireviewmode/model/aireviewcheckresultchange.js +23 -0
  528. package/src/aireviewmode/model/aireviewcheckrun.d.ts +101 -0
  529. package/src/aireviewmode/model/aireviewcheckrun.js +23 -0
  530. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +18 -0
  531. package/src/aireviewmode/model/aireviewcustomcheckrun.js +23 -0
  532. package/src/aireviewmode/model/aireviewmodels.d.ts +26 -0
  533. package/src/aireviewmode/model/aireviewmodels.js +23 -0
  534. package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +14 -0
  535. package/src/aireviewmode/model/aireviewsystemcheckrun.js +23 -0
  536. package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +29 -0
  537. package/src/aireviewmode/ui/aireviemodepromptinputview.js +23 -0
  538. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +46 -0
  539. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +23 -0
  540. package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +19 -0
  541. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +23 -0
  542. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.d.ts +23 -0
  543. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +23 -0
  544. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +80 -0
  545. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +23 -0
  546. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +45 -0
  547. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +23 -0
  548. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +18 -0
  549. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +23 -0
  550. package/src/aireviewmode/ui/aireviewmodeview.d.ts +42 -0
  551. package/src/aireviewmode/ui/aireviewmodeview.js +23 -0
  552. package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +16 -0
  553. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +23 -0
  554. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +20 -0
  555. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +23 -0
  556. package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +16 -0
  557. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +23 -0
  558. package/src/aireviewmode/utils/common-translations.d.ts +9 -0
  559. package/src/aireviewmode/utils/common-translations.js +23 -0
  560. package/src/aitabs/aitabs.d.ts +92 -0
  561. package/src/aitabs/aitabs.js +23 -0
  562. package/src/aitabs/aitabsmainview.d.ts +45 -0
  563. package/src/aitabs/aitabsmainview.js +23 -0
  564. package/src/aitabs/tabs/aitabsview.d.ts +147 -0
  565. package/src/aitabs/tabs/aitabsview.js +23 -0
  566. package/src/aitabs/tabs/tabbuttonview.d.ts +47 -0
  567. package/src/aitabs/tabs/tabbuttonview.js +23 -0
  568. package/src/aitabs/tabs/tabpanelview.d.ts +44 -0
  569. package/src/aitabs/tabs/tabpanelview.js +23 -0
  570. package/src/augmentation.d.ts +22 -6
  571. package/src/index.d.ts +40 -9
  572. package/src/index.js +1 -1
  573. package/theme/aiballoon/aiballoon.css +207 -0
  574. package/theme/aichat/aichat-controls/aichat-context-chip.css +139 -0
  575. package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +194 -0
  576. package/theme/aichat/aichat-controls/aichat-context-controls.css +46 -0
  577. package/theme/aichat/aichat-controls/aichat-controls-button.css +74 -0
  578. package/theme/aichat/aichat-controls/aichat-controls-loader.css +93 -0
  579. package/theme/aichat/aichat-controls/prompt-capabilities.css +46 -0
  580. package/theme/aichat/aichat-controls/prompt-input.css +55 -0
  581. package/theme/aichat/aichat-controls.css +154 -0
  582. package/theme/aichat/aichat.css +68 -0
  583. package/theme/aichat/aichatfeed.css +376 -0
  584. package/theme/aichat/aichathistory.css +235 -0
  585. package/theme/aichat/aiminitoolbar.css +94 -0
  586. package/theme/aichat/aisuggestioncontainer.css +203 -0
  587. package/theme/aiquickactions/aiquickactions.css +43 -0
  588. package/theme/aireviewmode/aireviewmode-check-list.css +154 -0
  589. package/theme/aireviewmode/aireviewmode-check-run.css +202 -0
  590. package/theme/aireviewmode/aireviewmode-review-completed.css +52 -0
  591. package/theme/aireviewmode/aireviewmode.css +73 -0
  592. package/theme/aitabs/aitabsview.css +64 -0
  593. package/theme/aitabs/tabs/tabbuttonview.css +74 -0
  594. package/theme/aitabs/tabs/tabsview.css +78 -0
  595. package/theme/common/aibutton.css +145 -0
  596. package/theme/common/aichaterror.css +61 -0
  597. package/theme/common/aidisclaimer.css +29 -0
  598. package/theme/common/aiheader.css +88 -0
  599. package/theme/common/aiskeleton.css +54 -0
  600. package/theme/common/aispinner.css +58 -0
  601. package/src/adapters/aiadapter.js +0 -23
  602. package/src/adapters/aitextadapter.js +0 -23
  603. package/src/adapters/awstextadapter.js +0 -23
  604. package/src/adapters/openaitextadapter.js +0 -23
  605. package/src/aiassistant.js +0 -23
  606. package/src/aiassistantediting.js +0 -23
  607. package/src/aiassistantui.js +0 -23
  608. package/src/legacyerrors.js +0 -23
  609. package/src/ui/aiassistantcontroller.js +0 -24
  610. package/src/ui/form/aiformcontentarea.js +0 -23
  611. package/src/ui/form/aiformerrorview.js +0 -23
  612. package/src/ui/form/aiformpromptview.js +0 -23
  613. package/src/ui/form/aiformtoolbarview.js +0 -23
  614. package/src/ui/form/aiformview.js +0 -23
  615. package/src/ui/form/aihistorylistitemview.js +0 -23
  616. package/src/ui/form/aihistorylistview.js +0 -23
  617. package/src/ui/form/prompthistory.js +0 -23
  618. package/src/ui/showaiassistantcommand.js +0 -23
  619. /package/src/{aiassistantediting.d.ts → aiassistant/aiassistantediting.d.ts} +0 -0
  620. /package/src/{legacyerrors.d.ts → aiassistant/legacyerrors.d.ts} +0 -0
  621. /package/src/{ui → aiassistant/ui}/form/aiformerrorview.d.ts +0 -0
  622. /package/theme/{ai-dropdown.css → aiassistant/ai-dropdown.css} +0 -0
  623. /package/theme/{ai-form.css → aiassistant/ai-form.css} +0 -0
  624. /package/theme/{ai.css → aiassistant/ai.css} +0 -0
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ function _0xfaa6(_0x13e5a4,_0x325647){var _0x5e4250=_0x5e42();return _0xfaa6=function(_0xfaa6b,_0x380067){_0xfaa6b=_0xfaa6b-0x166;var _0x4cbe88=_0x5e4250[_0xfaa6b];return _0x4cbe88;},_0xfaa6(_0x13e5a4,_0x325647);}function _0x5e42(){var _0x5bde3e=['isPremiumPlugin','requires','5282778kqdlGB','3703NNckdu','pluginName','756986YbOhLo','isOfficialPlugin','5TjIFZI','504096Osoubs','1139084GzajHe','7720950yLRVKY','1456XbXXDb','AIReviewMode','18198BwudSM','57717SJvhkz'];_0x5e42=function(){return _0x5bde3e;};return _0x5e42();}var _0x2bcc2d=_0xfaa6;(function(_0x31aad4,_0x1d5784){var _0x225168=_0xfaa6,_0x549202=_0x31aad4();while(!![]){try{var _0x30085f=parseInt(_0x225168(0x172))/0x1+parseInt(_0x225168(0x166))/0x2+-parseInt(_0x225168(0x16f))/0x3+parseInt(_0x225168(0x167))/0x4*(-parseInt(_0x225168(0x174))/0x5)+parseInt(_0x225168(0x16b))/0x6*(parseInt(_0x225168(0x170))/0x7)+parseInt(_0x225168(0x169))/0x8*(parseInt(_0x225168(0x16c))/0x9)+-parseInt(_0x225168(0x168))/0xa;if(_0x30085f===_0x1d5784)break;else _0x549202['push'](_0x549202['shift']());}catch(_0x479f0e){_0x549202['push'](_0x549202['shift']());}}}(_0x5e42,0xeb131));import{ContextPlugin as _0x51e21e}from'ckeditor5/src/core.js';import{AIReviewModeController as _0x37da6c}from'./aireviewmodecontroller.js';import{AIReviewModeUI as _0x41a0c5}from'./aireviewmodeui.js';import{AIReviewModeEditing as _0x364b4b}from'./aireviewmodeediting.js';export class AIReviewMode extends _0x51e21e{static get[_0x2bcc2d(0x16e)](){return[_0x37da6c,_0x41a0c5,_0x364b4b];}static get[_0x2bcc2d(0x171)](){var _0x30a0f4=_0x2bcc2d;return _0x30a0f4(0x16a);}static get[_0x2bcc2d(0x173)](){return!0x0;}static get[_0x2bcc2d(0x16d)](){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
+ function _0x3e2b(){const _0x4d2dfc=['leaveReviewMode','aireviewmode-source-check-not-found','72776eBIfIM','finishReview','documentData','ck-ai-review-mode-highlights','data','remove','2103CKySVu','loading','contentNew','_currentReviewCheckRun','status','updateChangeState','AIReviewModeController','reviewCheckRunUpdated','2ImAZrh','classList','changes','setAvailableChecks','showActionsWhenResultIsReady','48LGXepl','56cnuCvS','isOfficialPlugin','_aiConnector','_onDiffChange','context','checks','_aiReviewModeUi','_onReviewModeRunLeave','acceptChange','12rcgzDN','_isDiffOn','prompt','rejected','isChangeActive','markChangeAsRejected','abortReviewStream','AIConnector','applyChange','getDocumentData','pluginName','plugins','switchToEdit','runReviewCheck','reviewCheckResultAccepted','reviewCheckResultReady','markChangeAsAccepted','restart','rejectChange','title','error-chunk','_logError','4366531MtadwO','showGeneralErrorView','showReviewCompletedView','_aiReviewModeEditing','resetActiveStateInResults','clearAllMarkers','change','ck-ai-review-mode-diff','3179840qWoQOX','models','scrollToSuggestionInDocument','contentInitial','includes','markAllChangesAsAccepted','440601EBBrFl','scrollToChangeInEditorContent','dismissChange','7120Beswcv','showCheckRunResults','showReviewCheckList','stopListening','leaveReviewModeResultList','addResultChanges','switchToReadOnly','1008pZgbsX','markChangePositionInEditorContent','get','ai-request-aborted','model','acceptAllChanges','toggleDiff','getActiveChanges','6123375aWUjOg','showCheckRunResult','abort','setCheckResultTitle','custom','finished','requires','source','init','args','getContentElement','message','getReviewCheckList','aireviewmode-check-run-failed','error-general','reviewCheckResultAdded','111676mcNLSl','showChunkErrorView','ready','aireviewmode-no-current-check-run','accepted','add','start','fire','getCheckById','isPremiumPlugin','result','setItemAsActive','listenTo','diffContent','getAll','reviewCheckResultRejected','10CjmxOt','_aiReviewCheckList','find','isCustom','AIReviewModeEditing','AIReviewModeUI','length','retryReview'];_0x3e2b=function(){return _0x4d2dfc;};return _0x3e2b();}const _0x1db9a2=_0x55df;(function(_0x528649,_0x3280de){const _0x428de9=_0x55df,_0x26778e=_0x528649();while(!![]){try{const _0x591c3f=-parseInt(_0x428de9(0x192))/0x1*(parseInt(_0x428de9(0x16a))/0x2)+parseInt(_0x428de9(0x18a))/0x3*(parseInt(_0x428de9(0x1c8))/0x4)+-parseInt(_0x428de9(0x1bf))/0x5*(-parseInt(_0x428de9(0x1a1))/0x6)+parseInt(_0x428de9(0x1c5))/0x7*(-parseInt(_0x428de9(0x197))/0x8)+parseInt(_0x428de9(0x1d7))/0x9*(parseInt(_0x428de9(0x17a))/0xa)+parseInt(_0x428de9(0x184))/0xb*(-parseInt(_0x428de9(0x1cf))/0xc)+parseInt(_0x428de9(0x1b7))/0xd*(-parseInt(_0x428de9(0x198))/0xe);if(_0x591c3f===_0x3280de)break;else _0x26778e['push'](_0x26778e['shift']());}catch(_0x5b3b6c){_0x26778e['push'](_0x26778e['shift']());}}}(_0x3e2b,0xc61c9));function _0x55df(_0x48f6d7,_0x4a5cde){const _0x3e2bfb=_0x3e2b();return _0x55df=function(_0x55df7a,_0x2dc887){_0x55df7a=_0x55df7a-0x160;let _0xa56736=_0x3e2bfb[_0x55df7a];return _0xa56736;},_0x55df(_0x48f6d7,_0x4a5cde);}import{ContextPlugin as _0x36dead}from'ckeditor5/src/core.js';import{CKEditorError as _0x4a9659,logError as _0x1b103b}from'ckeditor5/src/utils.js';import{AIConnector as _0x2b5be9}from'../aicore/aiconnector.js';import{AIReviewCheckList as _0x56d798}from'./model/aireviewchecklist.js';import{AIReviewSystemCheckRun as _0x32920d}from'./model/aireviewsystemcheckrun.js';import{AIReviewCustomCheckRun as _0x18a1e5}from'./model/aireviewcustomcheckrun.js';import{AIReviewModels as _0x1dc178}from'./model/aireviewmodels.js';export class AIReviewModeController extends _0x36dead{[_0x1db9a2(0x19a)];[_0x1db9a2(0x19e)];[_0x1db9a2(0x1ba)];[_0x1db9a2(0x17b)];[_0x1db9a2(0x18d)];[_0x1db9a2(0x1a2)]=!0x1;static get[_0x1db9a2(0x160)](){return[_0x2b5be9];}static get[_0x1db9a2(0x1ab)](){const _0x44038d=_0x1db9a2;return _0x44038d(0x190);}static get[_0x1db9a2(0x199)](){return!0x0;}static get[_0x1db9a2(0x173)](){return!0x0;}[_0x1db9a2(0x162)](){const _0x2882a1=_0x1db9a2;this[_0x2882a1(0x19a)]=this[_0x2882a1(0x19c)][_0x2882a1(0x1ac)][_0x2882a1(0x1d1)](_0x2882a1(0x1a8)),this[_0x2882a1(0x19e)]=this[_0x2882a1(0x19c)][_0x2882a1(0x1ac)][_0x2882a1(0x1d1)](_0x2882a1(0x17f)),this[_0x2882a1(0x1ba)]=this[_0x2882a1(0x19c)][_0x2882a1(0x1ac)][_0x2882a1(0x1d1)](_0x2882a1(0x17e)),this[_0x2882a1(0x17b)]=new _0x56d798(),this[_0x2882a1(0x176)](this[_0x2882a1(0x19e)],_0x2882a1(0x166),async()=>{const _0x2ae34e=_0x2882a1,_0x5be1ba=new _0x1dc178({'connector':this[_0x2ae34e(0x19a)]});this[_0x2ae34e(0x17b)][_0x2ae34e(0x19d)][_0x2ae34e(0x17c)](_0x30b48d=>_0x2ae34e(0x1db)===_0x30b48d['id'])[_0x2ae34e(0x1c0)]=await _0x5be1ba[_0x2ae34e(0x178)](),this[_0x2ae34e(0x19e)][_0x2ae34e(0x195)](this[_0x2ae34e(0x17b)][_0x2ae34e(0x19d)]);}),this[_0x2882a1(0x176)](this[_0x2882a1(0x19e)],_0x2882a1(0x1ae),async(_0x3e1a98,_0x5c571e)=>{const _0x104c04=_0x2882a1,_0x12c639=this[_0x104c04(0x17b)][_0x104c04(0x172)](_0x5c571e['id']);if(_0x12c639){this[_0x104c04(0x19b)](this[_0x104c04(0x1a2)]),this[_0x104c04(0x19e)][_0x104c04(0x1da)](_0x12c639[_0x104c04(0x1b4)]),_0x5c571e[_0x104c04(0x17d)]?this[_0x104c04(0x18d)]=new _0x18a1e5(_0x5c571e[_0x104c04(0x163)][_0x104c04(0x1a3)],_0x5c571e[_0x104c04(0x163)][_0x104c04(0x1d3)],this[_0x104c04(0x1ba)][_0x104c04(0x1aa)](),_0x12c639,this[_0x104c04(0x19a)]):this[_0x104c04(0x18d)]=new _0x32920d(this[_0x104c04(0x1ba)][_0x104c04(0x1aa)](),_0x12c639,this[_0x104c04(0x19a)],_0x5c571e[_0x104c04(0x163)]),this[_0x104c04(0x18d)]['on'](_0x104c04(0x191),(_0x261200,_0x1bcb61)=>{const _0x212f80=_0x104c04;_0x212f80(0x188)===_0x1bcb61[_0x212f80(0x18e)]||_0x212f80(0x18b)===_0x1bcb61[_0x212f80(0x18e)]?(this[_0x212f80(0x1ba)][_0x212f80(0x1ce)](),this[_0x212f80(0x19e)][_0x212f80(0x1c9)](_0x1bcb61)):_0x212f80(0x1dc)===_0x1bcb61[_0x212f80(0x18e)]?this[_0x212f80(0x19e)][_0x212f80(0x1b9)]():_0x212f80(0x16c)===_0x1bcb61[_0x212f80(0x18e)]?this[_0x212f80(0x19e)][_0x212f80(0x196)]():_0x212f80(0x168)===_0x1bcb61[_0x212f80(0x18e)]?this[_0x212f80(0x19e)][_0x212f80(0x1b8)]():_0x212f80(0x1b5)===_0x1bcb61[_0x212f80(0x18e)]&&this[_0x212f80(0x19e)][_0x212f80(0x16b)]();}),this[_0x104c04(0x18d)]['on'](_0x104c04(0x169),(_0xdc72c1,_0x3aec98)=>{const _0x217386=_0x104c04;if(!this[_0x217386(0x18d)])throw new _0x4a9659(_0x217386(0x16d),this);const _0x1ad110=this[_0x217386(0x1ba)][_0x217386(0x177)](_0x3aec98[_0x217386(0x174)][_0x217386(0x1c2)],_0x3aec98[_0x217386(0x174)][_0x217386(0x18c)]);_0x3aec98[_0x217386(0x161)][_0x217386(0x1cd)](_0x3aec98[_0x217386(0x174)]['id'],_0x1ad110);}),this[_0x104c04(0x18d)]['on'](_0x104c04(0x1b0),(_0x3dae61,_0x473545)=>{const _0x4b1870=_0x104c04;for(const _0x497a22 of _0x473545[_0x4b1870(0x194)])this[_0x4b1870(0x19e)][_0x4b1870(0x1d8)](_0x497a22);this[_0x4b1870(0x1ba)][_0x4b1870(0x1d0)](_0x473545[_0x4b1870(0x194)],_0x473545[_0x4b1870(0x161)][_0x4b1870(0x186)]);}),this[_0x104c04(0x18d)]['on'](_0x104c04(0x1af),(_0xb54b4d,_0x4931dd)=>{const _0x50a7e8=_0x104c04;this[_0x50a7e8(0x19e)][_0x50a7e8(0x18f)](_0x4931dd[_0x50a7e8(0x1bd)]['id'],_0x50a7e8(0x16e));}),this[_0x104c04(0x18d)]['on'](_0x104c04(0x179),(_0xdbec90,_0x51478a)=>{const _0x445d39=_0x104c04;this[_0x445d39(0x19e)][_0x445d39(0x18f)](_0x51478a[_0x445d39(0x1bd)]['id'],_0x445d39(0x1a4));});try{await this[_0x104c04(0x18d)][_0x104c04(0x170)]();}catch(_0x51aa2b){_0x51aa2b instanceof Error&&_0x51aa2b[_0x104c04(0x165)][_0x104c04(0x1c3)](_0x104c04(0x1d2))||(_0x51aa2b instanceof _0x4a9659?this[_0x104c04(0x1b6)](_0x51aa2b):this[_0x104c04(0x1b6)](new _0x4a9659(_0x104c04(0x167),this,{'error':_0x51aa2b})));}}else this[_0x104c04(0x1b6)](new _0x4a9659(_0x104c04(0x183),this,{'checkId':_0x5c571e['id']}));}),this[_0x2882a1(0x176)](this[_0x2882a1(0x19e)],_0x2882a1(0x182),()=>{const _0x441340=_0x2882a1;this[_0x441340(0x19f)]();}),this[_0x2882a1(0x176)](this[_0x2882a1(0x19e)],_0x2882a1(0x1cc),()=>{const _0xf69e97=_0x2882a1;this[_0xf69e97(0x19f)](!0x0);}),this[_0x2882a1(0x176)](this[_0x2882a1(0x19e)],_0x2882a1(0x1a7),async()=>{const _0x224478=_0x2882a1;this[_0x224478(0x19f)](!0x0);}),this[_0x2882a1(0x176)](this[_0x2882a1(0x19e)],_0x2882a1(0x1d4),async()=>{const _0x2e8470=_0x2882a1;if(!this[_0x2e8470(0x18d)])return;const _0x33de51=this[_0x2e8470(0x18d)][_0x2e8470(0x1d6)]();if(_0x33de51[_0x2e8470(0x180)]){for(const _0x5beab2 of _0x33de51)this[_0x2e8470(0x1ba)][_0x2e8470(0x1a9)](_0x5beab2['id']);this[_0x2e8470(0x18d)][_0x2e8470(0x1c4)]();}}),this[_0x2882a1(0x176)](this[_0x2882a1(0x19e)],_0x2882a1(0x1a0),async(_0x6831a3,_0x570a7b)=>{const _0x24ff6c=_0x2882a1;this[_0x24ff6c(0x18d)]&&this[_0x24ff6c(0x18d)][_0x24ff6c(0x1a5)](_0x570a7b['id'])&&(this[_0x24ff6c(0x1ba)][_0x24ff6c(0x1a9)](_0x570a7b['id']),this[_0x24ff6c(0x18d)][_0x24ff6c(0x1b1)](_0x570a7b['id']));}),this[_0x2882a1(0x176)](this[_0x2882a1(0x19e)],_0x2882a1(0x1c7),async(_0x27a9cf,_0x8d218a)=>{const _0x4cb7b1=_0x2882a1;this[_0x4cb7b1(0x18d)]&&this[_0x4cb7b1(0x18d)][_0x4cb7b1(0x1a5)](_0x8d218a['id'])&&(this[_0x4cb7b1(0x1ba)][_0x4cb7b1(0x1b3)](_0x8d218a['id']),this[_0x4cb7b1(0x18d)][_0x4cb7b1(0x1a6)](_0x8d218a['id']));}),this[_0x2882a1(0x176)](this[_0x2882a1(0x19e)],_0x2882a1(0x1d5),(_0x26d155,_0x2265b5)=>{const _0x1f967e=_0x2882a1;this[_0x1f967e(0x1a2)]=_0x2265b5['on'],this[_0x1f967e(0x19b)](this[_0x1f967e(0x1a2)]);}),this[_0x2882a1(0x176)](this[_0x2882a1(0x19e)],_0x2882a1(0x185),()=>{const _0x5bb6e5=_0x2882a1;this[_0x5bb6e5(0x19e)][_0x5bb6e5(0x171)](_0x5bb6e5(0x166));}),this[_0x2882a1(0x176)](this[_0x2882a1(0x19e)],_0x2882a1(0x181),async()=>{const _0x3b66b4=_0x2882a1;this[_0x3b66b4(0x18d)]&&this[_0x3b66b4(0x18d)][_0x3b66b4(0x1b2)]();}),this[_0x2882a1(0x176)](this[_0x2882a1(0x19e)],_0x2882a1(0x1c1),async(_0x32f084,_0x122879)=>{const _0x3ae5e6=_0x2882a1,{source:_0x190806}=_0x122879;this[_0x3ae5e6(0x19e)][_0x3ae5e6(0x1bb)](),_0x190806[_0x3ae5e6(0x175)](),this[_0x3ae5e6(0x1ba)][_0x3ae5e6(0x1c6)]({'id':_0x122879['id']});});}[_0x1db9a2(0x19f)](_0x165c17=!0x1){const _0x57eef9=_0x1db9a2;this[_0x57eef9(0x18d)]&&(this[_0x57eef9(0x18d)][_0x57eef9(0x1d9)](),this[_0x57eef9(0x18d)][_0x57eef9(0x1cb)](),this[_0x57eef9(0x18d)]=void 0x0),_0x165c17&&this[_0x57eef9(0x19e)][_0x57eef9(0x1ca)](),this[_0x57eef9(0x1ba)][_0x57eef9(0x1bc)](),this[_0x57eef9(0x1ba)][_0x57eef9(0x1ad)]();const _0x1795c5=this[_0x57eef9(0x1ba)][_0x57eef9(0x164)]();_0x1795c5&&(_0x1795c5[_0x57eef9(0x193)][_0x57eef9(0x189)](_0x57eef9(0x1be)),_0x1795c5[_0x57eef9(0x193)][_0x57eef9(0x189)](_0x57eef9(0x187)));}[_0x1db9a2(0x19b)](_0x5efdf4){const _0x5aa43c=_0x1db9a2,_0x1650ff=this[_0x5aa43c(0x1ba)][_0x5aa43c(0x164)]();_0x1650ff&&(_0x1650ff[_0x5aa43c(0x193)][_0x5aa43c(0x189)](_0x5aa43c(0x1be)),_0x1650ff[_0x5aa43c(0x193)][_0x5aa43c(0x189)](_0x5aa43c(0x187)),_0x1650ff[_0x5aa43c(0x193)][_0x5aa43c(0x16f)](_0x5efdf4?_0x5aa43c(0x1be):_0x5aa43c(0x187)));}[_0x1db9a2(0x1b6)](_0x410f36){const _0x5c88f6=_0x1db9a2;_0x1b103b(_0x410f36[_0x5c88f6(0x165)]),this[_0x5c88f6(0x19e)][_0x5c88f6(0x1b8)]();}}
@@ -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(changeId: 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 _0x3372(){const _0x324b27=['htmlProcessor','getShiftedBy','remove-context','DocumentCompare','No\x20element\x20found\x20for\x20ID:\x20','_findAdjacentContextDistance','innerHTML','getRange','data','[data-id=\x22','start','oldRange','log','offset','index','dataDowncast','getDocumentData','hasContentAfter','ai-review-mode','nodes','rejectChange','addMarker','enableReadOnlyMode','_getMarkersDataForGroup','documentFragment','isTouching','_getTopElement','AIEditing','jumpTo','_getOperationEnd','htmlWriter','createPositionAt','clear','insert','model:$text','ck-ai_review-mode-marker_context-','editingDowncast','context','33642895LBlbtr','elements','baseVersion','applyOperation','afterInit','_getChangeContext','929982CjOfQe','forward','getPath','newRange','marker','toData','deleteContent','getHtml','markerName','clone','_groupAdjacentOperations','_createGetContentUsingDataIdFn','getDiff','map','add','ck-ai_review-mode-marker_add','parse','text','isAtStart','keys','getChildren','push','_createGetContentFn','stringify','from','7856fUYpLB','createDocumentFragment','operationsA','ck-ai_review-mode-marker_context-start','markerToHighlight','type','end','suggestion:deletion:id:authorId:','operationsIsolated','startsWith','isPremiumPlugin','getRoots','hasClass','getChild','isInline','addOperation','9OYGKmn','change','delete','domConverter','createSelection','getOperations','howMany','document','_markers','set','backward','path','AIReviewModeEditing','downcast','pluginName','ck-ai_review-mode-marker_hide','span','79FFadVO','_removeChildren','_changePosition','parent','createPositionAfter','5esMeAG','reviewmode-','remove-only','applyChange','requires','markers','length','position','removeMarker','$documentFragment','_changePositionOwnerDocument','_appendChild','switchToEdit','exec','getAttribute','markChangePositionInEditorContent','_shiftOperation','3866991SHFJCC','plugins','append','toView','ck-ai_review-mode-marker_underline','switchToReadOnly','warn','createRawElement','ellipsisBefore','scrollToChangeInEditorContent','diffContent','every','schema','ck-ai_review-mode-marker_context-end','isAtEnd','version','_translateOperationToEditorContent','remove-text','history','createUIElement','affectsData','createText','isOfficialPlugin','element','querySelector','_nextDataId','hasContentBefore','concat','filter','values','ck-ai_review-mode-marker_strikethrough','11701310KrBaAC','model','_changeRangeOwnerDocument','clearAllMarkers','groupId','disableReadOnlyMode','1610VtYykp','for','name','insertContent','_changeOperationOwnerDocument','processor','7343zZvSEb','ellipsisAfter','attributeToAttribute','_insertMarkers','markerToElement','suggestion-context','$textProxy','_setAttribute','$markedRemove','Scroll\x20to\x20change\x20in\x20editor\x20content','viewToDom','offsetSize','createRange','caption','_getOperationStart','_changeRange','getContentElement','isOpening','getRoot','get','outerHTML','_createGetContextFn','_clone','4168396DoTPmn','childCount','isDocumentOperation','suggestion:insertion:id:authorId:','batch','toDomElement','conversion'];_0x3372=function(){return _0x324b27;};return _0x3372();}const _0x232c92=_0x8933;(function(_0x18a616,_0x503ac8){const _0x1b6040=_0x8933,_0x2ffd27=_0x18a616();while(!![]){try{const _0x372c25=-parseInt(_0x1b6040(0x16c))/0x1*(parseInt(_0x1b6040(0x1a7))/0x2)+-parseInt(_0x1b6040(0x182))/0x3+parseInt(_0x1b6040(0xff))/0x4*(parseInt(_0x1b6040(0x171))/0x5)+parseInt(_0x1b6040(0x132))/0x6+parseInt(_0x1b6040(0x1ad))/0x7*(-parseInt(_0x1b6040(0x14b))/0x8)+parseInt(_0x1b6040(0x15b))/0x9*(-parseInt(_0x1b6040(0x1a1))/0xa)+parseInt(_0x1b6040(0x12c))/0xb;if(_0x372c25===_0x503ac8)break;else _0x2ffd27['push'](_0x2ffd27['shift']());}catch(_0x52c92f){_0x2ffd27['push'](_0x2ffd27['shift']());}}}(_0x3372,0xab8ec));import{InsertOperation as _0x475387,MarkerOperation as _0x418905,ModelDocumentFragment as _0x27d8bf,ModelPosition as _0x3f2e59,ModelRange as _0x10c1a7,ModelTreeWalker as _0x4863ef,transformOperationSets as _0x5ef0ac}from'ckeditor5/src/engine.js';import{uid as _0x121c7}from'ckeditor5/src/utils.js';import{ContextPlugin as _0x243d23}from'ckeditor5/src/core.js';import{DocumentCompare as _0x58911f,DATA_ID_MODEL_ATTRIBUTE as _0x11be53,DATA_ID_VIEW_ATTRIBUTE as _0x1bbf96}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x8933(_0xe7fc2a,_0x48dfa6){const _0x337263=_0x3372();return _0x8933=function(_0x8933c7,_0x162ac0){_0x8933c7=_0x8933c7-0xf1;let _0x1a9705=_0x337263[_0x8933c7];return _0x1a9705;},_0x8933(_0xe7fc2a,_0x48dfa6);}import{getEditorFromContext as _0x1e6b73}from'../aicore/utils/geteditorfromcontext.js';import{AIEditing as _0x14d1e3}from'../aicore/aiediting.js';const Zt=_0x232c92(0x172);export class AIReviewModeEditing extends _0x243d23{static get[_0x232c92(0x169)](){const _0x45f995=_0x232c92;return _0x45f995(0x167);}static get[_0x232c92(0x175)](){return[_0x58911f,_0x14d1e3];}static get[_0x232c92(0x198)](){return!0x0;}static get[_0x232c92(0x155)](){return!0x0;}[_0x232c92(0x163)]=new Map();[_0x232c92(0x130)](){const _0x1c3bab=_0x232c92,_0x4e65a9=_0x1e6b73(this[_0x1c3bab(0x12b)]);_0x4e65a9[_0x1c3bab(0x105)][_0x1c3bab(0x1a8)](_0x1c3bab(0x12a))[_0x1c3bab(0x1b1)]({'model':Zt+_0x1c3bab(0x127),'view':(_0x2f65e7,{writer:_0x2488a9})=>{const _0x5d50e5=_0x1c3bab,_0x1c2a79=this[_0x5d50e5(0x163)][_0x5d50e5(0xfb)](_0x2f65e7[_0x5d50e5(0x13a)]);return _0x2488a9[_0x5d50e5(0x195)](_0x5d50e5(0x16b),{'class':_0x5d50e5(0x141)},function(_0x3abe69){const _0x38b9de=_0x5d50e5,_0x27bf62=this[_0x38b9de(0x104)](_0x3abe69);return _0x27bf62[_0x38b9de(0x10c)]=_0x1c2a79?.[_0x38b9de(0x143)]||'',_0x27bf62;});}}),_0x4e65a9[_0x1c3bab(0x105)][_0x1c3bab(0x1a8)](_0x1c3bab(0x115))[_0x1c3bab(0x1b1)]({'model':Zt+_0x1c3bab(0x1b2),'view':(_0x36ee9a,{writer:_0x4b84d2})=>_0x4b84d2[_0x1c3bab(0x189)](_0x1c3bab(0x16b),{'class':_0x1c3bab(0x129)+(_0x36ee9a[_0x1c3bab(0xf9)]?_0x1c3bab(0x110):_0x1c3bab(0x151))})}),_0x4e65a9[_0x1c3bab(0x105)][_0x1c3bab(0x1a8)](_0x1c3bab(0x12a))[_0x1c3bab(0x14f)]({'model':Zt+_0x1c3bab(0x173),'view':()=>({'classes':_0x1c3bab(0x1a0)})}),_0x4e65a9[_0x1c3bab(0x105)][_0x1c3bab(0x1a8)](_0x1c3bab(0x12a))[_0x1c3bab(0x14f)]({'model':Zt+_0x1c3bab(0x108),'view':()=>({'classes':_0x1c3bab(0x186)})}),_0x4e65a9[_0x1c3bab(0x105)][_0x1c3bab(0x1a8)](_0x1c3bab(0x12a))[_0x1c3bab(0x14f)]({'model':Zt+_0x1c3bab(0x193),'view':()=>({'classes':_0x1c3bab(0x16a)})}),_0x4e65a9[_0x1c3bab(0x105)][_0x1c3bab(0x1a8)](_0x1c3bab(0x168))[_0x1c3bab(0x1af)]({'model':_0x11be53,'view':_0x1bbf96});}[_0x232c92(0x116)](){const _0x36ed7f=_0x232c92,_0x2529e1=this[_0x36ed7f(0x12b)][_0x36ed7f(0x183)][_0x36ed7f(0xfb)](_0x36ed7f(0x121)),_0x152258=_0x1e6b73(this[_0x36ed7f(0x12b)]),_0x2326f0=_0x152258[_0x36ed7f(0x1a2)],_0x2bc44d=new _0x27d8bf();for(const _0x153124 of _0x2326f0[_0x36ed7f(0x162)][_0x36ed7f(0xfa)]()[_0x36ed7f(0x146)]()){const _0x573d76=_0x153124[_0x36ed7f(0xfe)](!0x0);_0x2bc44d[_0x36ed7f(0x17c)](_0x573d76);}for(const _0x24dbc1 of _0x2326f0[_0x36ed7f(0x176)])_0x2bc44d[_0x36ed7f(0x176)][_0x36ed7f(0x164)](_0x24dbc1[_0x36ed7f(0x1a9)],this[_0x36ed7f(0x1a3)](_0x24dbc1[_0x36ed7f(0x10d)]()[_0x36ed7f(0x13b)](),_0x2bc44d));const _0x15b969=new _0x4863ef({'ignoreElementEnd':!0x0,'startPosition':_0x2326f0[_0x36ed7f(0x125)](_0x2bc44d,0x0)}),_0x2deae3=new Set(),_0x197354=new Map();for(const {item:_0x13039c}of _0x15b969){if(!_0x13039c['is'](_0x36ed7f(0x1b3)))continue;const _0x2229f5=_0x13039c[_0x36ed7f(0x16f)];if((!_0x2229f5||!_0x2229f5['is'](_0x36ed7f(0x199),_0x36ed7f(0xf5)))&&(_0x2229f5&&_0x2229f5['is'](_0x36ed7f(0x199)))){let _0x4aaa3e=_0x2229f5[_0x36ed7f(0x17f)](_0x11be53);_0x4aaa3e||(_0x4aaa3e=_0x2529e1[_0x36ed7f(0x19b)](_0x2deae3),_0x2229f5[_0x36ed7f(0x1b4)](_0x11be53,_0x4aaa3e)),_0x2deae3[_0x36ed7f(0x140)](_0x4aaa3e);const _0x4b2179=this[_0x36ed7f(0x120)](_0x2229f5);_0x197354[_0x36ed7f(0x164)](_0x4aaa3e,{'path':_0x2229f5[_0x36ed7f(0x134)](),'getContent':this[_0x36ed7f(0x13d)](_0x4b2179[_0x36ed7f(0xfe)](!0x0),_0x4aaa3e,_0x152258[_0x36ed7f(0x10e)])}),_0x15b969[_0x36ed7f(0x122)](_0x2326f0[_0x36ed7f(0x170)](_0x2229f5));}}return{'content':_0x152258[_0x36ed7f(0x10e)][_0x36ed7f(0x1ac)][_0x36ed7f(0x137)](_0x152258[_0x36ed7f(0x10e)][_0x36ed7f(0x185)](_0x2bc44d)),'version':_0x152258[_0x36ed7f(0x1a2)][_0x36ed7f(0x162)][_0x36ed7f(0x191)],'elements':_0x197354};}[_0x232c92(0x18c)](_0x509bce,_0x1aa9d4){const _0x114100=_0x232c92,_0x384140=_0x1e6b73(this[_0x114100(0x12b)]),_0x3f2254=_0x384140[_0x114100(0x10e)][_0x114100(0x142)](_0x509bce,_0x114100(0x17a)),_0x424006=_0x384140[_0x114100(0x1a2)][_0x114100(0x125)](_0x3f2254,0x0),_0x42014a=this[_0x114100(0x12b)][_0x114100(0x183)][_0x114100(0xfb)](_0x114100(0x109))[_0x114100(0x13e)](_0x509bce,_0x1aa9d4,{'anchor':_0x424006,'markDeletions':!0x0})[_0x114100(0x160)]()[_0x114100(0x19e)](_0x1a837f=>_0x114100(0x127)===_0x1a837f[_0x114100(0x150)]||_0x114100(0x136)===_0x1a837f[_0x114100(0x150)]&&_0x1a837f[_0x114100(0x1a9)][_0x114100(0x154)](_0x114100(0x1b5))),_0x48c971=this[_0x114100(0x13c)](_0x42014a),_0xeb5dce=[];let _0x13ec46=0x0;return _0x384140[_0x114100(0x1a2)][_0x114100(0x15c)](_0x598eef=>{const _0x2433aa=_0x114100;for(let _0x3f606c=0x0;_0x3f606c<_0x48c971[_0x2433aa(0x177)];_0x3f606c++){const _0x2e2376=_0x48c971[_0x3f606c],_0x592fb8=_0x598eef[_0x2433aa(0x14c)]();for(const _0x297abd of _0x3f2254[_0x2433aa(0x146)]())_0x598eef[_0x2433aa(0x184)](_0x297abd[_0x2433aa(0xfe)](!0x0),_0x592fb8);for(const _0x37776e of _0x2e2376[_0x2433aa(0x153)])if(_0x2433aa(0x127)===_0x37776e[_0x2433aa(0x150)]){const _0x25bc44=_0x37776e;_0x25bc44[_0x2433aa(0x12e)]=null,_0x25bc44[_0x2433aa(0x101)]=!0x1,this[_0x2433aa(0x1ab)](_0x25bc44,_0x592fb8),_0x598eef[_0x2433aa(0x103)][_0x2433aa(0x15a)](_0x37776e),_0x384140[_0x2433aa(0x1a2)][_0x2433aa(0x12f)](_0x37776e);const _0x4aa32f=_0x2433aa(0x102)+_0x13ec46++,_0x37a375=_0x384140[_0x2433aa(0x1a2)][_0x2433aa(0xf4)](_0x25bc44[_0x2433aa(0x178)],_0x25bc44[_0x2433aa(0x178)][_0x2433aa(0x107)](_0x25bc44[_0x2433aa(0x161)]));_0x592fb8[_0x2433aa(0x176)][_0x2433aa(0x164)](_0x4aa32f,_0x37a375);}else{if(_0x2433aa(0x136)===_0x37776e[_0x2433aa(0x150)]&&_0x37776e[_0x2433aa(0x1a9)][_0x2433aa(0x154)](_0x2433aa(0x1b5))){const _0x632234=_0x37776e,_0x15d853=_0x2433aa(0x152)+_0x13ec46++;this[_0x2433aa(0x1ab)](_0x632234,_0x592fb8),_0x592fb8[_0x2433aa(0x176)][_0x2433aa(0x164)](_0x15d853,_0x632234[_0x2433aa(0x135)]);}}const _0x1078fe=this[_0x2433aa(0x131)](this[_0x2433aa(0x17b)](this[_0x2433aa(0xf6)](_0x2e2376[_0x2433aa(0x153)][0x0]),_0x592fb8),this[_0x2433aa(0x17b)](this[_0x2433aa(0x123)](_0x2e2376[_0x2433aa(0x153)][_0x2e2376[_0x2433aa(0x153)][_0x2433aa(0x177)]-0x1]),_0x592fb8));_0x592fb8[_0x2433aa(0x176)][_0x2433aa(0x164)](Zt+_0x2433aa(0x1b2),new _0x10c1a7(_0x1078fe[_0x2433aa(0x110)],_0x1078fe[_0x2433aa(0x151)])),_0xeb5dce[_0x2433aa(0x147)]({..._0x2e2376,'context':this[_0x2433aa(0xfd)](_0x592fb8,_0x384140[_0x2433aa(0x10e)],{'ellipsisBefore':_0x1078fe[_0x2433aa(0x19c)],'ellipsisAfter':_0x1078fe[_0x2433aa(0x117)]}),'content':this[_0x2433aa(0x148)](_0x592fb8,_0x384140[_0x2433aa(0x10e)])});}}),_0xeb5dce;}[_0x232c92(0x180)](_0x538e52,_0x653c80){const _0x25d4bb=_0x232c92,_0x10eeef=_0x538e52[0x0][_0x25d4bb(0x16f)]['id'],_0x2743b3=_0x653c80[_0x25d4bb(0x12d)][_0x25d4bb(0xfb)](_0x10eeef);if(!_0x2743b3)return void console[_0x25d4bb(0x188)](_0x25d4bb(0x10a)+_0x10eeef);const _0x209a02=_0x2743b3[_0x25d4bb(0x166)],_0x28fc0d=_0x1e6b73(this[_0x25d4bb(0x12b)]),_0x3a4d79=_0x28fc0d[_0x25d4bb(0x1a2)][_0x25d4bb(0x162)][_0x25d4bb(0x194)][_0x25d4bb(0x160)](_0x653c80[_0x25d4bb(0x191)]),_0x5dd300=[];for(const _0x3faf1c of _0x538e52){const _0x53ef08=_0x3faf1c[_0x25d4bb(0x153)][_0x25d4bb(0x13f)](_0x1f66f3=>this[_0x25d4bb(0x192)](_0x1f66f3,_0x209a02,_0x28fc0d[_0x25d4bb(0x1a2)][_0x25d4bb(0x162)][_0x25d4bb(0x156)]()[0x0]));if(!_0x53ef08||!_0x53ef08[_0x25d4bb(0x177)])continue;const _0x494d0b=_0x53ef08[_0x25d4bb(0x18d)](_0x458424=>_0x25d4bb(0x136)===_0x458424[_0x25d4bb(0x150)]&&_0x458424[_0x25d4bb(0x1a9)][_0x25d4bb(0x154)](_0x25d4bb(0x1b5))),_0xd20e77={'document':_0x28fc0d[_0x25d4bb(0x1a2)][_0x25d4bb(0x162)],'useRelations':!0x1,'padWithNoOps':!0x1},_0xd98b8a=_0x5ef0ac(_0x53ef08,_0x3a4d79,_0xd20e77)[_0x25d4bb(0x14d)];for(const _0xfe912c of _0xd98b8a)if(_0x25d4bb(0x127)===_0xfe912c[_0x25d4bb(0x150)]){const _0x21f5b4=_0xfe912c,_0x1fdef0=_0x21f5b4[_0x25d4bb(0x119)];let _0x3d8cec='';for(const _0x2dfdbc of _0x1fdef0)_0x2dfdbc&&_0x2dfdbc['is'](_0x25d4bb(0x128))&&(_0x3d8cec+=_0x2dfdbc[_0x25d4bb(0x10e)]);_0x5dd300[_0x25d4bb(0x147)]({'start':_0x21f5b4[_0x25d4bb(0x178)],'end':_0x21f5b4[_0x25d4bb(0x178)],'type':_0x25d4bb(0x127),'groupId':_0x3faf1c['id'],'text':_0x3d8cec});}else{if(_0x25d4bb(0x136)===_0xfe912c[_0x25d4bb(0x150)]&&_0xfe912c[_0x25d4bb(0x1a9)][_0x25d4bb(0x154)](_0x25d4bb(0x1b5))){const _0x1c5db2=_0xfe912c;let _0x392468=_0x25d4bb(0x193);if(_0x494d0b){const _0x4f58f5=this[_0x25d4bb(0x10b)](_0x1c5db2[_0x25d4bb(0x135)][_0x25d4bb(0x110)],_0x25d4bb(0x165),_0x28fc0d[_0x25d4bb(0x1a2)][_0x25d4bb(0x18e)]),_0x3b90fd=this[_0x25d4bb(0x10b)](_0x1c5db2[_0x25d4bb(0x135)][_0x25d4bb(0x151)],_0x25d4bb(0x133),_0x28fc0d[_0x25d4bb(0x1a2)][_0x25d4bb(0x18e)]);if(_0x4f58f5||_0x3b90fd){const _0x4cb111=_0x1c5db2[_0x25d4bb(0x135)][_0x25d4bb(0x110)][_0x25d4bb(0x107)](-_0x4f58f5),_0x49696d=_0x1c5db2[_0x25d4bb(0x135)][_0x25d4bb(0x151)][_0x25d4bb(0x107)](_0x3b90fd);_0x5dd300[_0x25d4bb(0x147)]({'start':_0x4cb111,'end':_0x49696d,'groupId':_0x3faf1c['id'],'type':_0x25d4bb(0x108)});}else _0x392468=_0x25d4bb(0x173);}_0x5dd300[_0x25d4bb(0x147)]({'start':_0x1c5db2[_0x25d4bb(0x135)][_0x25d4bb(0x110)],'end':_0x1c5db2[_0x25d4bb(0x135)][_0x25d4bb(0x151)],'groupId':_0x3faf1c['id'],'type':_0x392468});}}}this[_0x25d4bb(0x1b0)](_0x5dd300);}[_0x232c92(0x1a4)](){const _0x14651f=_0x232c92;_0x1e6b73(this[_0x14651f(0x12b)])[_0x14651f(0x1a2)][_0x14651f(0x15c)](_0x4bfc56=>{const _0x43aeaf=_0x14651f;for(const _0x4a45fe of this[_0x43aeaf(0x163)][_0x43aeaf(0x145)]())_0x4bfc56[_0x43aeaf(0x179)](_0x4a45fe);}),this[_0x14651f(0x163)][_0x14651f(0x126)]();}[_0x232c92(0x187)](){const _0x310326=_0x232c92;_0x1e6b73(this[_0x310326(0x12b)])[_0x310326(0x11c)](_0x310326(0x118));}[_0x232c92(0x17d)](){const _0x1653b3=_0x232c92;_0x1e6b73(this[_0x1653b3(0x12b)])[_0x1653b3(0x1a6)](_0x1653b3(0x118));}[_0x232c92(0x174)](_0x38d3e8){const _0x10b11c=_0x232c92,_0xd46555=_0x1e6b73(this[_0x10b11c(0x12b)]),_0x56bc64=_0xd46555[_0x10b11c(0x1a2)],_0x12a914=this[_0x10b11c(0x11d)](_0x38d3e8);_0x56bc64[_0x10b11c(0x15c)](_0x7ba3a=>{const _0x428d46=_0x10b11c;for(const _0x11be36 of _0x12a914){const _0x45740a=_0xd46555[_0x428d46(0x1a2)][_0x428d46(0x176)][_0x428d46(0xfb)](_0x11be36['id']);_0x45740a&&(_0x428d46(0x127)===_0x11be36[_0x428d46(0x150)]?_0x56bc64[_0x428d46(0x1aa)](_0x7ba3a[_0x428d46(0x197)](_0x11be36[_0x428d46(0x143)]||''),_0x45740a[_0x428d46(0x10d)]()[_0x428d46(0x110)]):_0x428d46(0x193)!==_0x11be36[_0x428d46(0x150)]&&_0x428d46(0x173)!==_0x11be36[_0x428d46(0x150)]||_0x56bc64[_0x428d46(0x138)](_0x56bc64[_0x428d46(0x15f)](_0x45740a[_0x428d46(0x10d)]())),_0x7ba3a[_0x428d46(0x179)](_0x11be36['id']),this[_0x428d46(0x163)][_0x428d46(0x15d)](_0x11be36['id']));}});}[_0x232c92(0x11a)](_0x23c71d){const _0x5965bf=_0x232c92,_0x436dcb=_0x1e6b73(this[_0x5965bf(0x12b)]),_0x327edd=this[_0x5965bf(0x11d)](_0x23c71d);_0x436dcb[_0x5965bf(0x1a2)][_0x5965bf(0x15c)](_0x532f4e=>{const _0x497170=_0x5965bf;for(const _0x597c8f of _0x327edd)_0x532f4e[_0x497170(0x179)](_0x597c8f['id']),this[_0x497170(0x163)][_0x497170(0x15d)](_0x597c8f['id']);});}[_0x232c92(0xf8)](){const _0x62346d=_0x232c92,_0x11a21c=_0x1e6b73(this[_0x62346d(0x12b)]);return _0x11a21c&&_0x11a21c['ui']&&_0x11a21c['ui'][_0x62346d(0x199)]?_0x11a21c['ui'][_0x62346d(0x199)]:null;}[_0x232c92(0x192)](_0x276815,_0x2cec18,_0x202cd6){const _0x33a039=_0x232c92;if(_0x33a039(0x127)===_0x276815[_0x33a039(0x150)]){const _0x205014=_0x276815;return new _0x475387(this[_0x33a039(0x16e)](_0x205014[_0x33a039(0x178)],_0x2cec18[_0x33a039(0x19d)](_0x205014[_0x33a039(0x178)][_0x33a039(0x113)]),_0x202cd6),_0x205014[_0x33a039(0x119)],_0x205014[_0x33a039(0x12e)]);}if(_0x33a039(0x136)===_0x276815[_0x33a039(0x150)]&&_0x276815[_0x33a039(0x1a9)][_0x33a039(0x154)](_0x33a039(0x1b5))){const _0x3a2874=_0x276815;return new _0x418905(_0x3a2874[_0x33a039(0x1a9)],_0x3a2874[_0x33a039(0x111)],this[_0x33a039(0xf7)](_0x3a2874[_0x33a039(0x135)],_0x2cec18[_0x33a039(0x19d)](_0x3a2874[_0x33a039(0x135)][_0x33a039(0x110)][_0x33a039(0x113)]),_0x2cec18[_0x33a039(0x19d)](_0x3a2874[_0x33a039(0x135)][_0x33a039(0x151)][_0x33a039(0x113)]),_0x202cd6),_0x3a2874[_0x33a039(0x163)],_0x3a2874[_0x33a039(0x196)],_0x3a2874[_0x33a039(0x12e)]);}return _0x276815;}[_0x232c92(0x13c)](_0x3bdeab){const _0x532a6f=_0x232c92;if(!_0x3bdeab[_0x532a6f(0x177)])return[];const _0x2f5fea=[];let _0x2aafa8=0x0,_0x17aea4=0x0,_0x55e502=[];for(let _0x3b322b=0x0;_0x3b322b<=_0x3bdeab[_0x532a6f(0x177)];_0x3b322b++){const _0x8c8614=_0x3bdeab[_0x3b322b],_0x401d5a=_0x3bdeab[_0x3b322b-0x1];!_0x8c8614||_0x401d5a&&!this[_0x532a6f(0x123)](_0x401d5a)[_0x532a6f(0x11f)](this[_0x532a6f(0xf6)](_0x8c8614))?(_0x2f5fea[_0x532a6f(0x147)]({'operations':_0x55e502,'operationsIsolated':_0x55e502[_0x532a6f(0x13f)](_0x1d8aed=>this[_0x532a6f(0x181)](_0x1d8aed[_0x532a6f(0x13b)](),-_0x17aea4)),'groupOffset':_0x2aafa8}),_0x55e502=_0x8c8614?[_0x8c8614]:[],_0x17aea4+=_0x2aafa8,_0x2aafa8=0x0):_0x55e502[_0x532a6f(0x147)](_0x8c8614),_0x8c8614&&_0x532a6f(0x127)===_0x8c8614[_0x532a6f(0x150)]&&(_0x2aafa8+=_0x8c8614[_0x532a6f(0x161)]);}return _0x2f5fea;}[_0x232c92(0x18b)](_0x1d2493){const _0x294d29=_0x232c92;console[_0x294d29(0x112)](_0x294d29(0xf1),_0x1d2493['id']);}[_0x232c92(0x10b)](_0x2e6c77,_0x4f5c80,_0x44cf90,_0x265284=0x1){const _0x1cef68=_0x232c92,_0x18c5ca=new _0x4863ef({'startPosition':_0x2e6c77,'direction':_0x4f5c80});let _0x3accfc=0x0;for(let _0x2f05ae=0x0;_0x2f05ae<_0x265284;_0x2f05ae++){let _0x547f69=0x0,_0x1a1774=!0x1,_0x4d1b76=_0x1cef68(0x133)===_0x4f5c80?/^\W*\w+/:/\w+\W*$/;for(const {item:_0x534111}of _0x18c5ca)if(_0x534111['is'](_0x1cef68(0x1b3))){const _0x5c5a2c=_0x4d1b76[_0x1cef68(0x17e)](_0x534111[_0x1cef68(0x10e)]);if(_0x5c5a2c&&_0x5c5a2c[_0x1cef68(0x177)]){if(_0x547f69+=_0x1cef68(0x133)===_0x4f5c80?_0x5c5a2c[_0x1cef68(0x114)]+_0x5c5a2c[0x0][_0x1cef68(0x177)]:_0x534111[_0x1cef68(0x10e)][_0x1cef68(0x177)]-_0x5c5a2c[_0x1cef68(0x114)],_0x5c5a2c[0x0][_0x1cef68(0x177)]!==_0x534111[_0x1cef68(0x10e)][_0x1cef68(0x177)])break;_0x1a1774=!0x0,_0x4d1b76=_0x1cef68(0x133)===_0x4f5c80?/^\w+/:/\w+$/;}else{if(_0x1a1774)break;_0x547f69+=_0x534111[_0x1cef68(0xf3)];}}else{if(_0x534111['is'](_0x1cef68(0x199))){_0x44cf90[_0x1cef68(0x159)](_0x534111)&&!_0x1a1774&&(_0x547f69+=0x1);break;}}_0x3accfc+=_0x547f69,_0x18c5ca[_0x1cef68(0x122)](_0x2e6c77[_0x1cef68(0x107)](_0x1cef68(0x133)===_0x4f5c80?_0x3accfc:-_0x3accfc));}return _0x3accfc;}[_0x232c92(0x131)](_0x1d0325,_0x5187f6){const _0xac2303=_0x232c92,_0x223db8=_0x1e6b73(this[_0xac2303(0x12b)])[_0xac2303(0x1a2)][_0xac2303(0x18e)],_0x418906=this[_0xac2303(0x10b)](_0x1d0325,_0xac2303(0x165),_0x223db8,0x6),_0x228e38=this[_0xac2303(0x10b)](_0x5187f6,_0xac2303(0x133),_0x223db8,0x6),_0x396e5b=_0x1d0325[_0xac2303(0x107)](-_0x418906),_0x133f2d=_0x5187f6[_0xac2303(0x107)](_0x228e38);return{'start':_0x396e5b,'end':_0x133f2d,'hasContentBefore':!_0x396e5b[_0xac2303(0x144)],'hasContentAfter':!_0x133f2d[_0xac2303(0x190)]};}[_0x232c92(0x1b0)](_0xfa93fd){const _0xf3cbb9=_0x232c92;_0x1e6b73(this[_0xf3cbb9(0x12b)])[_0xf3cbb9(0x1a2)][_0xf3cbb9(0x15c)](_0x55a73b=>{const _0x5ec637=_0xf3cbb9;for(const _0x4e61be of _0xfa93fd){const _0x82dbfe=''+Zt+_0x4e61be[_0x5ec637(0x150)]+':'+_0x4e61be[_0x5ec637(0x1a5)]+'_'+_0x121c7();this[_0x5ec637(0x163)][_0x5ec637(0x164)](_0x82dbfe,{'id':_0x82dbfe,'groupId':_0x4e61be[_0x5ec637(0x1a5)],'type':_0x4e61be[_0x5ec637(0x150)],'text':_0x4e61be[_0x5ec637(0x143)]}),_0x55a73b[_0x5ec637(0x11b)](_0x82dbfe,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x55a73b[_0x5ec637(0xf4)](_0x4e61be[_0x5ec637(0x110)],_0x4e61be[_0x5ec637(0x151)])});}});}[_0x232c92(0xfd)](_0x21879b,_0x454eb6,_0x3e0228){let _0x12ac6d='';return()=>{const _0x506b52=_0x8933;if(!_0x12ac6d){const _0x455314=_0x454eb6[_0x506b52(0x185)](_0x21879b,{'showSuggestionHighlights':!0x0}),_0x14d8be=_0x455314[_0x506b52(0x158)](0x0);if(!_0x14d8be)return'';let _0xf7a9b9=!0x1;const _0x577e5e=[];for(const _0x24f4be of _0x14d8be[_0x506b52(0x146)]())_0x24f4be['is'](_0x506b52(0x199),_0x506b52(0x16b))&&_0x24f4be[_0x506b52(0x157)](_0x506b52(0x18f))&&(_0xf7a9b9=!0x1),_0xf7a9b9&&_0x577e5e[_0x506b52(0x147)](_0x24f4be),_0x24f4be['is'](_0x506b52(0x199),_0x506b52(0x16b))&&_0x24f4be[_0x506b52(0x157)](_0x506b52(0x14e))&&(_0xf7a9b9=!0x0);_0x14d8be[_0x506b52(0x16d)](0x0,_0x14d8be[_0x506b52(0x100)]),_0x3e0228?.[_0x506b52(0x18a)]&&_0x14d8be[_0x506b52(0x17c)]('…'),_0x14d8be[_0x506b52(0x17c)](_0x577e5e),_0x3e0228?.[_0x506b52(0x1ae)]&&_0x14d8be[_0x506b52(0x17c)]('…');const _0xed05b7=_0x454eb6[_0x506b52(0x106)][_0x506b52(0x15e)][_0x506b52(0xf2)](_0x455314),_0x3f3ce7=_0x454eb6[_0x506b52(0x106)][_0x506b52(0x124)][_0x506b52(0x139)](_0xed05b7);_0x12ac6d=_0x3f3ce7;}return _0x12ac6d;};}[_0x232c92(0x148)](_0x4aa6cf,_0x40a2a1){const _0x16e312=_0x232c92;let _0x17e470='';return()=>(_0x17e470||(_0x17e470=_0x40a2a1[_0x16e312(0x149)](_0x4aa6cf,{'showSuggestionHighlights':!0x0})),_0x17e470);}[_0x232c92(0x13d)](_0x58c13c,_0x541d1c,_0x391868){let _0x16f7a7='';return()=>{const _0x3a6761=_0x8933;if(!_0x16f7a7){const _0x15038e=_0x391868[_0x3a6761(0x185)](new _0x27d8bf(_0x58c13c)),_0x4b6d32=_0x391868[_0x3a6761(0x106)][_0x3a6761(0x15e)][_0x3a6761(0xf2)](_0x15038e)[_0x3a6761(0x19a)](_0x3a6761(0x10f)+_0x541d1c+'\x22]');_0x16f7a7=_0x4b6d32?.[_0x3a6761(0xfc)]||'';}return _0x16f7a7;};}[_0x232c92(0x11d)](_0x5d7835){const _0x5f228a=_0x232c92;return Array[_0x5f228a(0x14a)](this[_0x5f228a(0x163)][_0x5f228a(0x19f)]())[_0x5f228a(0x19e)](_0x4ba916=>_0x4ba916[_0x5f228a(0x1a5)]===_0x5d7835);}[_0x232c92(0xf6)](_0x4314b3){const _0x5de9ba=_0x232c92;return _0x5de9ba(0x127)===_0x4314b3[_0x5de9ba(0x150)]?_0x4314b3[_0x5de9ba(0x178)]:_0x4314b3[_0x5de9ba(0x135)][_0x5de9ba(0x110)];}[_0x232c92(0x123)](_0x274383,_0x2f14f9=!0x1){const _0x3ad764=_0x232c92;return _0x3ad764(0x127)===_0x274383[_0x3ad764(0x150)]?_0x2f14f9?_0x274383[_0x3ad764(0x178)]:_0x274383[_0x3ad764(0x178)][_0x3ad764(0x107)](_0x274383[_0x3ad764(0x161)]):_0x274383[_0x3ad764(0x135)][_0x3ad764(0x151)];}[_0x232c92(0x181)](_0x51d5ef,_0x57e233){const _0x2db952=_0x232c92;return _0x2db952(0x127)===_0x51d5ef[_0x2db952(0x150)]?_0x51d5ef[_0x2db952(0x178)]=_0x51d5ef[_0x2db952(0x178)][_0x2db952(0x107)](_0x57e233):_0x2db952(0x136)===_0x51d5ef[_0x2db952(0x150)]&&_0x51d5ef[_0x2db952(0x135)]&&(_0x51d5ef[_0x2db952(0x135)]=new _0x10c1a7(_0x51d5ef[_0x2db952(0x135)][_0x2db952(0x110)][_0x2db952(0x107)](_0x57e233),_0x51d5ef[_0x2db952(0x135)][_0x2db952(0x151)][_0x2db952(0x107)](_0x57e233))),_0x51d5ef;}[_0x232c92(0x1ab)](_0x3645c8,_0x553562){const _0x2587cc=_0x232c92;_0x2587cc(0x127)===_0x3645c8[_0x2587cc(0x150)]?_0x3645c8[_0x2587cc(0x178)]=this[_0x2587cc(0x17b)](_0x3645c8[_0x2587cc(0x178)],_0x553562):_0x2587cc(0x136)===_0x3645c8[_0x2587cc(0x150)]&&_0x3645c8[_0x2587cc(0x135)]&&(_0x3645c8[_0x2587cc(0x135)]=this[_0x2587cc(0x1a3)](_0x3645c8[_0x2587cc(0x135)],_0x553562));}[_0x232c92(0x17b)](_0x1e5d54,_0x243fa1){const _0x4b8737=_0x232c92;return new _0x3f2e59(_0x243fa1,_0x1e5d54[_0x4b8737(0x166)]);}[_0x232c92(0x1a3)](_0x307a1f,_0x5675de){const _0x2e4aec=_0x232c92;return new _0x10c1a7(this[_0x2e4aec(0x17b)](_0x307a1f[_0x2e4aec(0x110)],_0x5675de),this[_0x2e4aec(0x17b)](_0x307a1f[_0x2e4aec(0x151)],_0x5675de));}[_0x232c92(0x16e)](_0x1c872f,_0x35b0e7,_0x118f63){return new _0x3f2e59(_0x118f63,[..._0x35b0e7]);}[_0x232c92(0xf7)](_0x602fbf,_0x409699,_0x399af1,_0x35ffe6){const _0x3343f6=_0x232c92;return new _0x10c1a7(this[_0x3343f6(0x16e)](_0x602fbf[_0x3343f6(0x110)],_0x409699,_0x35ffe6),this[_0x3343f6(0x16e)](_0x602fbf[_0x3343f6(0x151)],_0x399af1,_0x35ffe6));}[_0x232c92(0x120)](_0x6f3c5e){const _0x512ea4=_0x232c92;let _0x315820=_0x6f3c5e;for(;_0x315820[_0x512ea4(0x16f)]&&!_0x315820[_0x512ea4(0x16f)]['is'](_0x512ea4(0x11e));)_0x315820=_0x315820[_0x512ea4(0x16f)];return _0x315820;}}
@@ -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", "runCustomCheckReview", "cancelCustomCheck", "setCustomCheckModel", "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 _0x35be16=_0x542a;(function(_0xd5dd01,_0x25747c){const _0x168bda=_0x542a,_0x41e9e0=_0xd5dd01();while(!![]){try{const _0x3f3991=-parseInt(_0x168bda(0xb3))/0x1*(parseInt(_0x168bda(0x85))/0x2)+parseInt(_0x168bda(0x86))/0x3*(-parseInt(_0x168bda(0xc9))/0x4)+-parseInt(_0x168bda(0xa1))/0x5+parseInt(_0x168bda(0x82))/0x6+parseInt(_0x168bda(0xca))/0x7*(-parseInt(_0x168bda(0xb0))/0x8)+parseInt(_0x168bda(0x94))/0x9+parseInt(_0x168bda(0xa9))/0xa;if(_0x3f3991===_0x25747c)break;else _0x41e9e0['push'](_0x41e9e0['shift']());}catch(_0x5cf178){_0x41e9e0['push'](_0x41e9e0['shift']());}}}(_0x86ee,0x29e92));function _0x86ee(){const _0x431ebf=['setChecks','updateChangeState','plugins','runCustomCheckReview','toggleDiff','1432ZxNfRH','init','abortReviewStream','137cPFaAt','cancelCustomCheck','isOfficialPlugin','showCheckRunResults','leaveReviewMode','acceptAllChanges','isPremiumPlugin','runReviewCheck','_reviewModeView','reviewMode','hideResult','leaveReviewModeResultList','showGeneralErrorView','activateTab','dismissChange','showReviewCheckList','showReviewCheckResultsView','setItemAsInactive','showReviewCompletedView','scrollToSuggestionInDocument','showChunkErrorView','setTitle','1350524TRhonC','9541CEffVh','hideActionsWhenResultIsReady','205068PVwQhi','acceptChange','getReviewCheckList','2650liFgxV','3aganft','reviewCheckResultsView','retryReview','error-chunk','addTab','showActionsWhenResultIsReady','error-general','pluginName','learnMore','view','setCheckResultTitle','hasChecks','locale','showCheckRunResult','1024137jzikjk','showReviewCheckListView','getResults','setAvailableChecks','Review\x20Mode','rejected','AITabs','accepted','delegate','setCustomCheckModel','forEach','context','fire','1507495DhAAlg','reviewCheckListView','get','AIReviewModeUI','requires','status','addCheckRunResult','resetActiveStateInResults','10883270CQjlzR','finishReview'];_0x86ee=function(){return _0x431ebf;};return _0x86ee();}import{ContextPlugin as _0x3e2ae4}from'ckeditor5/src/core.js';function _0x542a(_0x1c868c,_0x5dc729){const _0x86ee17=_0x86ee();return _0x542a=function(_0x542a1b,_0x4141c9){_0x542a1b=_0x542a1b-0x82;let _0x23f898=_0x86ee17[_0x542a1b];return _0x23f898;},_0x542a(_0x1c868c,_0x5dc729);}import{IconAIReview as _0x590293}from'ckeditor5/src/icons.js';import{AITabs as _0x229010}from'../aitabs/aitabs.js';import{AIReviewModeView as _0x54bcb2}from'./ui/aireviewmodeview.js';import'../../theme/aireviewmode/aireviewmode.css';export const AI_REVIEW_MODE_UI_EVENT_NAMES=[_0x35be16(0x84),_0x35be16(0xba),_0x35be16(0xae),_0x35be16(0xb4),_0x35be16(0x9d),_0x35be16(0xb2),_0x35be16(0xaf),_0x35be16(0xb8),_0x35be16(0xbe),_0x35be16(0xc6),_0x35be16(0x83),_0x35be16(0xc1),_0x35be16(0x8e),_0x35be16(0xaa),_0x35be16(0x88)];export class AIReviewModeUI extends _0x3e2ae4{[_0x35be16(0xbb)];static get[_0x35be16(0xa5)](){return[_0x229010];}static get[_0x35be16(0x8d)](){const _0x1bee65=_0x35be16;return _0x1bee65(0xa4);}static get[_0x35be16(0xb5)](){return!0x0;}static get[_0x35be16(0xb9)](){return!0x0;}constructor(_0x53ccb0){const _0x7f6ce2=_0x35be16;super(_0x53ccb0),this[_0x7f6ce2(0xbb)]=new _0x54bcb2(this[_0x7f6ce2(0x9f)][_0x7f6ce2(0x92)]),this[_0x7f6ce2(0xbb)][_0x7f6ce2(0x9c)](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this);}[_0x35be16(0xb1)](){const _0x14c5a2=_0x35be16,_0xbe6388=this[_0x14c5a2(0x9f)][_0x14c5a2(0xad)][_0x14c5a2(0xa3)](_0x14c5a2(0x9a));_0xbe6388[_0x14c5a2(0x8f)]['on'](_0x14c5a2(0xc0),(_0x4b6656,_0x455c1a)=>{const _0x166970=_0x14c5a2;_0x166970(0xbc)===_0x455c1a?this[_0x166970(0xa0)](_0x166970(0x84)):this[_0x166970(0xa0)](_0x166970(0xb7));}),_0xbe6388[_0x14c5a2(0x8f)][_0x14c5a2(0x8a)]({'id':_0x14c5a2(0xbc),'buttonLabel':_0x14c5a2(0x98),'buttonIcon':_0x590293,'order':0x0,'content':this[_0x14c5a2(0xbb)]});}[_0x35be16(0x97)](_0x19fe8c){const _0x105f56=_0x35be16;this[_0x105f56(0xbb)][_0x105f56(0xa2)][_0x105f56(0x91)]()||this[_0x105f56(0xbb)][_0x105f56(0xa2)][_0x105f56(0xab)](_0x19fe8c),this[_0x105f56(0xbb)][_0x105f56(0x95)]();}[_0x35be16(0xc2)](){const _0x5bbe08=_0x35be16;this[_0x5bbe08(0xa0)](_0x5bbe08(0x84));}[_0x35be16(0xb6)](_0x55724f){const _0x9df434=_0x35be16;_0x55724f&&(_0x9df434(0x8c)!==_0x55724f[_0x9df434(0xa6)]?_0x9df434(0x89)!==_0x55724f[_0x9df434(0xa6)]?this[_0x9df434(0xbb)][_0x9df434(0xc3)]():this[_0x9df434(0xc7)]():this[_0x9df434(0xbf)]());}[_0x35be16(0x93)](_0x4f6b1d){const _0x771dd=_0x35be16;this[_0x771dd(0xbb)][_0x771dd(0xa7)](_0x4f6b1d);}[_0x35be16(0xbf)](){const _0x10ad03=_0x35be16;this[_0x10ad03(0xbb)][_0x10ad03(0xbf)]();}[_0x35be16(0xc7)](){const _0x491821=_0x35be16;this[_0x491821(0xbb)][_0x491821(0xc7)]();}[_0x35be16(0x90)](_0x51b02c){const _0x251a28=_0x35be16;this[_0x251a28(0xbb)][_0x251a28(0x87)][_0x251a28(0xc8)](_0x51b02c);}[_0x35be16(0xa8)](){const _0x3f6463=_0x35be16;this[_0x3f6463(0xbb)][_0x3f6463(0x87)][_0x3f6463(0x96)]()[_0x3f6463(0x9e)](_0x4d316c=>_0x4d316c[_0x3f6463(0xc4)]());}[_0x35be16(0xac)](_0xc5b475,_0x4b6b75){const _0x807897=_0x35be16;_0x807897(0x9b)!==_0x4b6b75&&_0x807897(0x99)!==_0x4b6b75||this[_0x807897(0xbb)][_0x807897(0x87)][_0x807897(0xbd)](_0xc5b475);}[_0x35be16(0xc5)](){const _0x59df1b=_0x35be16;this[_0x59df1b(0xbb)][_0x59df1b(0xc5)]();}[_0x35be16(0x8b)](){const _0x3d7417=_0x35be16;this[_0x3d7417(0xbb)][_0x3d7417(0x8b)]();}[_0x35be16(0xcb)](){const _0x2d5339=_0x35be16;this[_0x2d5339(0xbb)][_0x2d5339(0xcb)]();}}
@@ -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
+ var _0x144764=_0x5d7a;function _0x5f1a(){var _0x49a399=['title','784536cHOHhD','1097432PxjEiQ','options','1291825WdzOvX','6YTdaTJ','useArgs','1175427TphgJT','7177700wWMHRR','16UyhKTg','isParameterized','1342665qDIkch','description','71xmTlxO','7778ixhxxZ'];_0x5f1a=function(){return _0x49a399;};return _0x5f1a();}(function(_0x2d2e7b,_0x21fcec){var _0x1b229d=_0x5d7a,_0x14c928=_0x2d2e7b();while(!![]){try{var _0x286109=-parseInt(_0x1b229d(0x184))/0x1*(-parseInt(_0x1b229d(0x185))/0x2)+-parseInt(_0x1b229d(0x182))/0x3+-parseInt(_0x1b229d(0x187))/0x4+-parseInt(_0x1b229d(0x17b))/0x5*(parseInt(_0x1b229d(0x17c))/0x6)+parseInt(_0x1b229d(0x179))/0x7*(parseInt(_0x1b229d(0x180))/0x8)+-parseInt(_0x1b229d(0x17e))/0x9+parseInt(_0x1b229d(0x17f))/0xa;if(_0x286109===_0x21fcec)break;else _0x14c928['push'](_0x14c928['shift']());}catch(_0x250f77){_0x14c928['push'](_0x14c928['shift']());}}}(_0x5f1a,0x43160));function _0x5d7a(_0x1fee58,_0x19a0ee){var _0x5f1a4d=_0x5f1a();return _0x5d7a=function(_0x5d7a0d,_0x3888c3){_0x5d7a0d=_0x5d7a0d-0x179;var _0x44d4ef=_0x5f1a4d[_0x5d7a0d];return _0x44d4ef;},_0x5d7a(_0x1fee58,_0x19a0ee);}export class AIReviewCheck{['id'];[_0x144764(0x186)];[_0x144764(0x183)];[_0x144764(0x181)];[_0x144764(0x17d)];[_0x144764(0x17a)];constructor({id:_0x367469,title:_0x147f3b,description:_0x56d3fc,isParameterized:_0x3ed087,useArgs:_0x12a378,options:_0x58b6da}){var _0x19d02d=_0x144764;this['id']=_0x367469,this[_0x19d02d(0x186)]=_0x147f3b,this[_0x19d02d(0x183)]=_0x56d3fc,this[_0x19d02d(0x181)]=_0x3ed087,this[_0x19d02d(0x17d)]=_0x12a378,this[_0x19d02d(0x17a)]=_0x58b6da;}}
@@ -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 _0x4fe643=_0x3b92;(function(_0x160b42,_0x17f4a6){var _0x27ae57=_0x3b92,_0x3c1b92=_0x160b42();while(!![]){try{var _0x3ac38a=-parseInt(_0x27ae57(0xb8))/0x1*(-parseInt(_0x27ae57(0xbd))/0x2)+parseInt(_0x27ae57(0xc0))/0x3*(parseInt(_0x27ae57(0xb7))/0x4)+parseInt(_0x27ae57(0xbc))/0x5*(-parseInt(_0x27ae57(0xbe))/0x6)+parseInt(_0x27ae57(0xba))/0x7+parseInt(_0x27ae57(0xc2))/0x8+-parseInt(_0x27ae57(0xbf))/0x9+parseInt(_0x27ae57(0xc3))/0xa*(-parseInt(_0x27ae57(0xc1))/0xb);if(_0x3ac38a===_0x17f4a6)break;else _0x3c1b92['push'](_0x3c1b92['shift']());}catch(_0x35ca1d){_0x3c1b92['push'](_0x3c1b92['shift']());}}}(_0x2854,0x36cfb));function _0x2854(){var _0x427935=['models','2645419JLjLSu','_models','45gKnUGG','453834jQzQoT','159564KhHIaR','1031310TrqtWr','385509NwKJar','506KzwSxh','2073584fitnji','90020JcZKgH','4dVNmIw','1sgTTRU'];_0x2854=function(){return _0x427935;};return _0x2854();}import{AIReviewCheck as _0x10111f}from'./aireviewcheck.js';function _0x3b92(_0x4b78dd,_0x4c6d6e){var _0x285454=_0x2854();return _0x3b92=function(_0x3b9227,_0x309e78){_0x3b9227=_0x3b9227-0xb7;var _0x3f0507=_0x285454[_0x3b9227];return _0x3f0507;},_0x3b92(_0x4b78dd,_0x4c6d6e);}export class AIReviewCheckCustom extends _0x10111f{[_0x4fe643(0xbb)]=[];get[_0x4fe643(0xb9)](){var _0x1d44a3=_0x4fe643;return this[_0x1d44a3(0xbb)];}set[_0x4fe643(0xb9)](_0x287e22){var _0x213bd8=_0x4fe643;this[_0x213bd8(0xbb)]=_0x287e22;}}
@@ -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 _0x13b4d9=_0x580b;(function(_0xd16e00,_0x218a3c){const _0x4af4c8=_0x580b,_0x145376=_0xd16e00();while(!![]){try{const _0x2e7346=parseInt(_0x4af4c8(0x221))/0x1*(parseInt(_0x4af4c8(0x1ee))/0x2)+parseInt(_0x4af4c8(0x227))/0x3*(parseInt(_0x4af4c8(0x20f))/0x4)+parseInt(_0x4af4c8(0x234))/0x5*(parseInt(_0x4af4c8(0x1fc))/0x6)+-parseInt(_0x4af4c8(0x1f8))/0x7+parseInt(_0x4af4c8(0x1f0))/0x8+parseInt(_0x4af4c8(0x203))/0x9*(parseInt(_0x4af4c8(0x1fa))/0xa)+-parseInt(_0x4af4c8(0x223))/0xb*(parseInt(_0x4af4c8(0x1f6))/0xc);if(_0x2e7346===_0x218a3c)break;else _0x145376['push'](_0x145376['shift']());}catch(_0x1cca56){_0x145376['push'](_0x145376['shift']());}}}(_0x13c5,0xc4555));function _0x580b(_0x58f0ff,_0x55e25d){const _0x13c582=_0x13c5();return _0x580b=function(_0x580b5f,_0x31cc9c){_0x580b5f=_0x580b5f-0x1df;let _0xf002a0=_0x13c582[_0x580b5f];return _0xf002a0;},_0x580b(_0x58f0ff,_0x55e25d);}import{ObservableMixin as _0xd2d854}from'ckeditor5/src/utils.js';import{AIReviewCheck as _0x33f8e2}from'./aireviewcheck.js';function _0x13c5(){const _0x5cbca9=['Correctness','5409WFpsKR','Friendly','casual','japanese','length','spanish','Adjust\x20length','Spanish','_getAvailableReviewChecks','Direct','Enhance\x20the\x20overall\x20readability\x20of\x20the\x20text.','confident','Ensure\x20the\x20text\x20is\x20factually\x20accurate\x20and\x20free\x20of\x20errors.','10XtXVhG','getCheckById','shorter','professional','portuguese','Casual','translate','readability','Italian','dropdown','label','correctness','friendly','Shorter','Chinese\x20(Simplified)','_checks','English','clarity',':\x20\x0a','130kxrWuL','direct','5520072gAfLNR','find','useArgs','Readability','make-tone','Translate\x20the\x20text\x20into\x20another\x20language.','732QDcnVX','options','4957316WrjtmJ','Korean','30KktIWI','checks','1012914dZtTRW','Japanese','reduce','title','Confident','getExpandedChecks','French','4037094ueNJXQ','korean','German','Adjust\x20tone\x20and\x20style','english','Translate','Russian','_getExpandedReviewChecks','french','longer','data','Clarity','2764kufpmB','Type\x20a\x20custom\x20command\x20to\x20review\x20the\x20content\x20exactly\x20as\x20you\x20need.','isParameterized','Improve\x20the\x20clarity\x20and\x20readability\x20of\x20the\x20text.','map','Choose\x20tone\x20and\x20style\x20to\x20change\x20content\x20as\x20you\x20need.','Portuguese','Longer','german','Refine\x20text\x20length\x20to\x20match\x20your\x20needs.','chinese','language','join','custom','italian','Professional','Select\x20language','flatMap','9371JORAqy','make','489764bamuRP','russian','Custom\x20command'];_0x13c5=function(){return _0x5cbca9;};return _0x13c5();}import{AIReviewCheckCustom as _0x2d96e8}from'./aireviewcheckcustom.js';const ia=[{'id':_0x13b4d9(0x21c),'title':_0x13b4d9(0x225),'description':_0x13b4d9(0x210),'isParameterized':!0x0},{'id':_0x13b4d9(0x1e6),'title':_0x13b4d9(0x226),'description':_0x13b4d9(0x233),'isParameterized':!0x1},{'id':_0x13b4d9(0x1ec),'title':_0x13b4d9(0x20e),'description':_0x13b4d9(0x212),'isParameterized':!0x1},{'id':_0x13b4d9(0x1e2),'title':_0x13b4d9(0x1f3),'description':_0x13b4d9(0x231),'isParameterized':!0x1},{'id':_0x13b4d9(0x222),'title':_0x13b4d9(0x22d),'description':_0x13b4d9(0x218),'isParameterized':!0x0,'options':[{'formType':_0x13b4d9(0x1e4),'label':_0x13b4d9(0x22d),'default':_0x13b4d9(0x20c),'data':[{'label':_0x13b4d9(0x216),'id':_0x13b4d9(0x20c)},{'label':_0x13b4d9(0x1e8),'id':_0x13b4d9(0x236)}]}]},{'id':_0x13b4d9(0x1f4),'title':_0x13b4d9(0x206),'description':_0x13b4d9(0x214),'isParameterized':!0x0,'options':[{'formType':_0x13b4d9(0x1e4),'label':_0x13b4d9(0x206),'default':_0x13b4d9(0x229),'data':[{'label':_0x13b4d9(0x1e0),'id':_0x13b4d9(0x229)},{'label':_0x13b4d9(0x230),'id':_0x13b4d9(0x1ef)},{'label':_0x13b4d9(0x228),'id':_0x13b4d9(0x1e7)},{'label':_0x13b4d9(0x200),'id':_0x13b4d9(0x232)},{'label':_0x13b4d9(0x21e),'id':_0x13b4d9(0x237)}]}]},{'id':_0x13b4d9(0x1e1),'title':_0x13b4d9(0x208),'description':_0x13b4d9(0x1f5),'isParameterized':!0x0,'useArgs':!0x0,'options':[{'formType':_0x13b4d9(0x1e4),'label':_0x13b4d9(0x21f),'default':_0x13b4d9(0x22c),'argsKey':_0x13b4d9(0x21a),'data':[{'label':_0x13b4d9(0x1eb),'id':_0x13b4d9(0x207)},{'label':_0x13b4d9(0x22e),'id':_0x13b4d9(0x22c)},{'label':_0x13b4d9(0x202),'id':_0x13b4d9(0x20b)},{'label':_0x13b4d9(0x205),'id':_0x13b4d9(0x217)},{'label':_0x13b4d9(0x1e9),'id':_0x13b4d9(0x219)},{'label':_0x13b4d9(0x1fd),'id':_0x13b4d9(0x22a)},{'label':_0x13b4d9(0x209),'id':_0x13b4d9(0x224)},{'label':_0x13b4d9(0x215),'id':_0x13b4d9(0x1df)},{'label':_0x13b4d9(0x1f9),'id':_0x13b4d9(0x204)},{'label':_0x13b4d9(0x1e3),'id':_0x13b4d9(0x21d)}]}]}];export class AIReviewCheckList extends _0xd2d854(){[_0x13b4d9(0x1ea)];constructor(){const _0xd3a563=_0x13b4d9;super(),this[_0xd3a563(0x1ea)]=this[_0xd3a563(0x22f)]();}get[_0x13b4d9(0x1fb)](){const _0x5f108a=_0x13b4d9;return this[_0x5f108a(0x1ea)];}get[_0x13b4d9(0x201)](){const _0x18eebe=_0x13b4d9;return this[_0x18eebe(0x20a)]();}[_0x13b4d9(0x235)](_0xff1b9b){const _0x40eb6f=_0x13b4d9;return this[_0x40eb6f(0x201)][_0x40eb6f(0x1f1)](_0x35ab77=>_0x35ab77['id']===_0xff1b9b);}[_0x13b4d9(0x22f)](){const _0xfa54d4=_0x13b4d9;return ia[_0xfa54d4(0x213)](_0x5a5daf=>_0xfa54d4(0x21c)===_0x5a5daf['id']?new _0x2d96e8(_0x5a5daf):new _0x33f8e2(_0x5a5daf));}[_0x13b4d9(0x20a)](){const _0x571798=_0x13b4d9;return ia[_0x571798(0x220)](_0x3d586f=>{const _0x56d7c9=_0x571798;if(_0x3d586f?.[_0x56d7c9(0x1f2)])return[_0x3d586f];if(_0x3d586f[_0x56d7c9(0x211)]&&_0x3d586f[_0x56d7c9(0x1f7)]?.[_0x56d7c9(0x22b)]){const _0x39891e=_0x3d586f[_0x56d7c9(0x1f7)][_0x56d7c9(0x213)](_0x33ed69=>_0x33ed69[_0x56d7c9(0x20d)]||[]);return _0x39891e[_0x56d7c9(0x1fe)]((_0x16c054,_0x9dff29)=>_0x16c054[_0x56d7c9(0x220)](_0xc6c99c=>_0x9dff29[_0x56d7c9(0x213)](_0x2c28dd=>[..._0xc6c99c,_0x2c28dd])),[[]])[_0x56d7c9(0x213)](_0x53b8fb=>{const _0x1a6c5b=_0x56d7c9,_0x29ba65=_0x53b8fb[_0x1a6c5b(0x213)](_0x5b3330=>_0x5b3330['id'])[_0x1a6c5b(0x21b)]('-'),_0x375bd4=_0x53b8fb[_0x1a6c5b(0x213)](_0x5b2944=>_0x5b2944[_0x1a6c5b(0x1e5)])[_0x1a6c5b(0x21b)](',\x20');return{..._0x3d586f,'id':_0x3d586f['id']+'-'+_0x29ba65,'title':_0x3d586f[_0x1a6c5b(0x1ff)]+_0x1a6c5b(0x1ed)+_0x375bd4,'selectedOptions':_0x53b8fb};});}return[_0x3d586f];});}}