@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,12 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ import { Command } from 'ckeditor5/src/core.js';
6
+ import { type AIQuickActionDefinition } from './aiquickactionsui.js';
7
+ /**
8
+ * AI Quick Actions command for executing various AI-powered actions.
9
+ */
10
+ export declare class AIQuickActionsCommand extends Command {
11
+ execute(action: AIQuickActionDefinition): void;
12
+ }
@@ -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 _0x6c45(_0x4af5f7,_0x44a19a){const _0x3aca7a=_0x3aca();return _0x6c45=function(_0x6c45c8,_0x60b99f){_0x6c45c8=_0x6c45c8-0x1e6;let _0x25075a=_0x3aca7a[_0x6c45c8];return _0x25075a;},_0x6c45(_0x4af5f7,_0x44a19a);}const _0x316a0e=_0x6c45;function _0x3aca(){const _0xe15d42=['AIActions','icon','ACTION','actionName','AIChat','editor','execute','focusPromptInput','change','has','locale','get','ai-quick-actions-plugin-not-found','_expandSelectionIfCollapsed','CHAT','schema','handleAIReviewAction','selection','log','1bMrnWq','_handleAIActionsAction','plugins','_handleAIChatAction','executeAction','getSelectedBlocks','displayedPrompt','isCollapsed','model','sendMessage','_handleAIReviewAction','REVIEW','946632LzwRoU','type','AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','prompt','5iLWuIb','startConversation','2270008yHCxEk','addSelectionToChatContext','192708XZXBlY','860702WpawkC','2223620XmEiKD','ask-ai','AIReviewMode','document','getLimitElement','setSelection','842664rNzpcG','args','2727567YcPIDg'];_0x3aca=function(){return _0xe15d42;};return _0x3aca();}(function(_0x25c44b,_0x2331a8){const _0x273d5b=_0x6c45,_0x3ab761=_0x25c44b();while(!![]){try{const _0x253da5=parseInt(_0x273d5b(0x208))/0x1*(-parseInt(_0x273d5b(0x1eb))/0x2)+parseInt(_0x273d5b(0x1f2))/0x3+-parseInt(_0x273d5b(0x1ea))/0x4+parseInt(_0x273d5b(0x1e6))/0x5*(parseInt(_0x273d5b(0x214))/0x6)+-parseInt(_0x273d5b(0x1ec))/0x7+parseInt(_0x273d5b(0x1e8))/0x8+parseInt(_0x273d5b(0x1f4))/0x9;if(_0x253da5===_0x2331a8)break;else _0x3ab761['push'](_0x3ab761['shift']());}catch(_0x3aaea2){_0x3ab761['push'](_0x3ab761['shift']());}}}(_0x3aca,0x37fa6));import{Command as _0x45e57d}from'ckeditor5/src/core.js';import{CKEditorError as _0x5077bf,first as _0x5d6cae}from'ckeditor5/src/utils.js';import{AIQuickActionType as _0x5e4425}from'./aiquickactionsui.js';import{getTranslation as _0x1950a3}from'./utils/common-translations.js';export class AIQuickActionsCommand extends _0x45e57d{[_0x316a0e(0x1fb)](_0x1e6e4c){const _0x57c27e=_0x316a0e;switch(_0x1e6e4c[_0x57c27e(0x215)]){case _0x5e4425[_0x57c27e(0x203)]:if(!this[_0x57c27e(0x1fa)][_0x57c27e(0x20a)][_0x57c27e(0x1fe)](_0x57c27e(0x1f9))){const _0x1508d5=_0x1950a3(this[_0x57c27e(0x1fa)][_0x57c27e(0x1ff)],_0x57c27e(0x216),_0x57c27e(0x1f9));throw new _0x5077bf(_0x57c27e(0x201),this[_0x57c27e(0x1fa)],{'errorMessage':_0x1508d5});}this[_0x57c27e(0x20b)](_0x1e6e4c);break;case _0x5e4425[_0x57c27e(0x1f7)]:if(!this[_0x57c27e(0x1fa)][_0x57c27e(0x20a)][_0x57c27e(0x1fe)](_0x57c27e(0x1f5))){const _0x4a186d=_0x1950a3(this[_0x57c27e(0x1fa)][_0x57c27e(0x1ff)],_0x57c27e(0x216),_0x57c27e(0x1f5));throw new _0x5077bf(_0x57c27e(0x201),this[_0x57c27e(0x1fa)],{'errorMessage':_0x4a186d});}this[_0x57c27e(0x209)](_0x1e6e4c);break;case _0x5e4425[_0x57c27e(0x213)]:if(!this[_0x57c27e(0x1fa)][_0x57c27e(0x20a)][_0x57c27e(0x1fe)](_0x57c27e(0x1ee))){const _0x4f853b=_0x1950a3(this[_0x57c27e(0x1fa)][_0x57c27e(0x1ff)],_0x57c27e(0x216),_0x57c27e(0x1ee));throw new _0x5077bf(_0x57c27e(0x201),this[_0x57c27e(0x1fa)],{'errorMessage':_0x4f853b});}this[_0x57c27e(0x212)](_0x1e6e4c);}}async[_0x316a0e(0x20b)](_0xedf391){const _0x2ea2f8=_0x316a0e,_0x113dd4=this[_0x2ea2f8(0x1fa)][_0x2ea2f8(0x20a)][_0x2ea2f8(0x200)](_0x2ea2f8(0x1f9));if(_0x2ea2f8(0x1ed)===_0xedf391['id'])this[_0x2ea2f8(0x202)](),await _0x113dd4[_0x2ea2f8(0x1e9)](),_0x113dd4[_0x2ea2f8(0x1fc)]();else await _0x113dd4[_0x2ea2f8(0x1e7)](),await _0x113dd4[_0x2ea2f8(0x1e9)](),await _0x113dd4[_0x2ea2f8(0x211)]({'message':_0xedf391[_0x2ea2f8(0x217)]||_0xedf391[_0x2ea2f8(0x20e)],'quickActionData':{'id':_0xedf391['id'],'displayedPrompt':_0xedf391[_0x2ea2f8(0x20e)]}});}[_0x316a0e(0x202)](){const _0x6446e6=_0x316a0e,_0x4cb2f2=this[_0x6446e6(0x1fa)],_0x38e389=_0x4cb2f2[_0x6446e6(0x210)][_0x6446e6(0x1ef)][_0x6446e6(0x206)];if(!_0x38e389[_0x6446e6(0x20f)])return;const _0x5aecff=_0x5d6cae(_0x38e389[_0x6446e6(0x20d)]())||_0x4cb2f2[_0x6446e6(0x210)][_0x6446e6(0x204)][_0x6446e6(0x1f0)](_0x38e389);_0x4cb2f2[_0x6446e6(0x210)][_0x6446e6(0x1fd)](_0x3fee5c=>{const _0x265ee5=_0x6446e6;_0x3fee5c[_0x265ee5(0x1f1)](_0x5aecff,'in');});}async[_0x316a0e(0x209)](_0x51f293){const _0xa08a17=_0x316a0e,_0x4799eb=this[_0xa08a17(0x1fa)][_0xa08a17(0x20a)][_0xa08a17(0x200)](_0xa08a17(0x1f5)),_0x5a36ca=_0x51f293[_0xa08a17(0x217)]?{'userMessage':_0x51f293[_0xa08a17(0x217)],'model':_0x51f293[_0xa08a17(0x210)]}:{'actionName':_0x51f293[_0xa08a17(0x1f8)]||_0x51f293['id'],'args':_0x51f293[_0xa08a17(0x1f3)]};await _0x4799eb[_0xa08a17(0x20c)](_0x5a36ca,_0x51f293[_0xa08a17(0x20e)],_0x51f293[_0xa08a17(0x1f6)]);}async[_0x316a0e(0x212)](_0x268289){const _0x48c109=_0x316a0e;console[_0x48c109(0x207)](_0x48c109(0x205),_0x268289);}}
@@ -0,0 +1,23 @@
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 { Plugin } from 'ckeditor5/src/core.js';
6
+ export declare class AIQuickActionsEditing extends Plugin {
7
+ /**
8
+ * @inheritDoc
9
+ */
10
+ static get pluginName(): "AIQuickActionsEditing";
11
+ /**
12
+ * @inheritDoc
13
+ */
14
+ static get isOfficialPlugin(): true;
15
+ /**
16
+ * @inheritDoc
17
+ */
18
+ static get isPremiumPlugin(): true;
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ init(): void;
23
+ }
@@ -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 _0x1019(_0x2217f4,_0x3a833f){const _0x1c35d3=_0x1c35();return _0x1019=function(_0x101911,_0x300acc){_0x101911=_0x101911-0x11c;let _0x13ac5c=_0x1c35d3[_0x101911];return _0x13ac5c;},_0x1019(_0x2217f4,_0x3a833f);}const _0x8857ff=_0x1019;(function(_0x28120a,_0x5ae844){const _0x29fc71=_0x1019,_0x2f88ef=_0x28120a();while(!![]){try{const _0x5d0f70=-parseInt(_0x29fc71(0x11c))/0x1*(parseInt(_0x29fc71(0x129))/0x2)+parseInt(_0x29fc71(0x12d))/0x3+-parseInt(_0x29fc71(0x123))/0x4*(-parseInt(_0x29fc71(0x135))/0x5)+parseInt(_0x29fc71(0x133))/0x6*(parseInt(_0x29fc71(0x125))/0x7)+parseInt(_0x29fc71(0x127))/0x8*(-parseInt(_0x29fc71(0x131))/0x9)+parseInt(_0x29fc71(0x136))/0xa*(-parseInt(_0x29fc71(0x130))/0xb)+parseInt(_0x29fc71(0x137))/0xc;if(_0x5d0f70===_0x5ae844)break;else _0x2f88ef['push'](_0x2f88ef['shift']());}catch(_0x1257c0){_0x2f88ef['push'](_0x2f88ef['shift']());}}}(_0x1c35,0xbb99e));import{Plugin as _0x37f42b}from'ckeditor5/src/core.js';import{AIQuickActionsCommand as _0x400eac}from'./aiquickactionscommand.js';export class AIQuickActionsEditing extends _0x37f42b{static get[_0x8857ff(0x122)](){const _0x507c29=_0x8857ff;return _0x507c29(0x12e);}static get[_0x8857ff(0x124)](){return!0x0;}static get[_0x8857ff(0x134)](){return!0x0;}[_0x8857ff(0x132)](){const _0x283c4d=_0x8857ff,_0x46df70=this[_0x283c4d(0x138)],_0x4a0efc=new _0x400eac(this[_0x283c4d(0x138)]);if(_0x46df70[_0x283c4d(0x11d)][_0x283c4d(0x126)](_0x283c4d(0x11e),_0x4a0efc),_0x46df70[_0x283c4d(0x139)][_0x283c4d(0x12f)](_0x283c4d(0x128))){const _0x571030=this[_0x283c4d(0x138)][_0x283c4d(0x139)][_0x283c4d(0x120)](_0x283c4d(0x128));_0x46df70[_0x283c4d(0x121)][_0x283c4d(0x12b)][_0x283c4d(0x13a)]['on'](_0x283c4d(0x11f),(_0x47b485,_0x2dc9d3)=>{const _0x10bd4e=_0x283c4d;_0x2dc9d3[_0x10bd4e(0x12c)]&&_0x571030[_0x10bd4e(0x12a)]();});}}}function _0x1c35(){const _0x23d812=['4xwQVua','isOfficialPlugin','457009ZamPIy','add','64CSjYrX','AIChat','422aucEMi','removeSelectionFromChatContext','document','directChange','305355HWvUhz','AIQuickActionsEditing','has','110NkFzcT','874683TYbIwe','init','48cEoAxu','isPremiumPlugin','2371555hMRuMa','706000HPHIwr','23775252CIOUZq','editor','plugins','selection','3923lEfoWw','commands','aiQuickAction','change:range','get','model','pluginName'];_0x1c35=function(){return _0x23d812;};return _0x1c35();}
@@ -0,0 +1,150 @@
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 { Plugin } from 'ckeditor5/src/core.js';
6
+ import { type Locale } from 'ckeditor5/src/utils.js';
7
+ import { BalloonToolbar } from 'ckeditor5/src/ui.js';
8
+ import '../../theme/aiquickactions/aiquickactions.css';
9
+ /**
10
+ * Defines the different types of AI quick actions available in the editor.
11
+ * Each type determines how the action will be presented and executed.
12
+ */
13
+ export declare enum AIQuickActionType {
14
+ /**
15
+ * Actions that open the AI Chat interface for interactive conversations.
16
+ */
17
+ CHAT = "CHAT",
18
+ /**
19
+ * Actions that display results in a balloon popup for quick inline operations.
20
+ */
21
+ ACTION = "ACTION",
22
+ /**
23
+ * Actions that open the AI Review interface for detailed content analysis.
24
+ */
25
+ REVIEW = "REVIEW"
26
+ }
27
+ /**
28
+ * Maps AI quick action types to their corresponding CKEditor plugin names.
29
+ * Used for checking plugin availability and determining which actions to display.
30
+ */
31
+ export declare enum AIQuickActionTypeToPluginName {
32
+ CHAT = "AIChat",
33
+ ACTION = "AIActions",
34
+ REVIEW = "AIReviewMode"
35
+ }
36
+ /**
37
+ * UI plugin for AI Quick Actions that provides a set of predefined AI-powered tools.
38
+ *
39
+ * This plugin manages the creation and configuration of AI quick action buttons and dropdowns
40
+ * in the editor's toolbar. It handles both individual actions and grouped actions, automatically
41
+ * filtering based on available plugins and creating the appropriate UI components.
42
+ *
43
+ * The plugin supports three types of AI actions:
44
+ * - AICHAT: Opens interactive AI chat interface
45
+ * - AIACTIONS: Shows results in inline balloon popups
46
+ * - REVIEW: Opens detailed AI review interface
47
+ */
48
+ export declare class AIQuickActionsUI extends Plugin {
49
+ /**
50
+ * @inheritDoc
51
+ */
52
+ static get requires(): readonly [typeof BalloonToolbar];
53
+ /**
54
+ * @inheritDoc
55
+ */
56
+ static get pluginName(): "AIQuickActionsUI";
57
+ /**
58
+ * @inheritDoc
59
+ */
60
+ static get isOfficialPlugin(): true;
61
+ /**
62
+ * @inheritDoc
63
+ */
64
+ static get isPremiumPlugin(): true;
65
+ /**
66
+ * Initializes the AI Quick Actions UI plugin.
67
+ *
68
+ * Sets up the default quick actions configuration and creates all necessary
69
+ * UI components and commands for the quick actions functionality.
70
+ *
71
+ * @inheritDoc
72
+ */
73
+ init(): void;
74
+ /**
75
+ * Returns the default quick actions configuration.
76
+ *
77
+ * @param locale The editor's locale for text translation
78
+ * @returns Array of quick action definitions and groups
79
+ */
80
+ static getDefaultQuickActions(locale: Locale): Array<AIQuickActionsGroupDefinition | AIQuickActionDefinition>;
81
+ }
82
+ /**
83
+ * Defines a group of related AI quick actions that appear together in a dropdown.
84
+ *
85
+ * Groups allow organizing multiple related actions under a single menu item,
86
+ * such as "Change Tone" containing "More Casual", "More Professional", etc.
87
+ */
88
+ export type AIQuickActionsGroupDefinition = {
89
+ /**
90
+ * Unique identifier for the action group.
91
+ */
92
+ id: string;
93
+ /**
94
+ * Display label for the group.
95
+ */
96
+ label: string;
97
+ /**
98
+ * Array of actions contained within this group.
99
+ */
100
+ actions: Array<AIQuickActionDefinition>;
101
+ /**
102
+ * Optional icon to display for the group.
103
+ */
104
+ icon?: string;
105
+ };
106
+ /**
107
+ * Defines an individual AI quick action that can be executed by the user.
108
+ *
109
+ * Actions can exist independently or as part of a group. Each action specifies
110
+ * its type to determine the execution interface (chat, balloon, or review).
111
+ */
112
+ export type AIQuickActionDefinition = {
113
+ /**
114
+ * Unique identifier for the action.
115
+ */
116
+ id: string;
117
+ /**
118
+ * Display label for the action.
119
+ */
120
+ displayedPrompt: string;
121
+ /**
122
+ * Type determining how the action will be executed.
123
+ */
124
+ type: AIQuickActionType;
125
+ /**
126
+ * Optional icon to display for the action.
127
+ */
128
+ icon?: string;
129
+ /**
130
+ * Optional action name to be used for actions with args.
131
+ */
132
+ actionName?: string;
133
+ /**
134
+ * Optional parameters for the call.
135
+ */
136
+ args?: Record<string, string>;
137
+ /**
138
+ * Optional predefined prompt text for the action.
139
+ */
140
+ prompt?: string;
141
+ /**
142
+ * Optional model to be used.
143
+ */
144
+ model?: string;
145
+ /**
146
+ * Reference to parent group (if action is part of a group).
147
+ * Excludes the actions array to prevent circular references.
148
+ */
149
+ parent?: Omit<AIQuickActionsGroupDefinition, 'actions'>;
150
+ };
@@ -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 _0x544c45=_0x3b7c;(function(_0x3ee3d5,_0x1cfe59){const _0x4b575b=_0x3b7c,_0x1f813c=_0x3ee3d5();while(!![]){try{const _0x22cd61=-parseInt(_0x4b575b(0x146))/0x1+parseInt(_0x4b575b(0x160))/0x2+-parseInt(_0x4b575b(0x130))/0x3*(parseInt(_0x4b575b(0x140))/0x4)+parseInt(_0x4b575b(0x117))/0x5*(-parseInt(_0x4b575b(0x17e))/0x6)+parseInt(_0x4b575b(0x12d))/0x7*(parseInt(_0x4b575b(0x151))/0x8)+-parseInt(_0x4b575b(0x122))/0x9+parseInt(_0x4b575b(0x14b))/0xa;if(_0x22cd61===_0x1cfe59)break;else _0x1f813c['push'](_0x1f813c['shift']());}catch(_0x2ed7d8){_0x1f813c['push'](_0x1f813c['shift']());}}}(_0xc67b,0xb5894));import{IconAIAdjustLength as _0xa0c01f,IconAIAskAI as _0x3d6657,IconAIChangeTone as _0x55a3a1,IconAIChatCommands as _0x540794,IconAIContinueWriting as _0x463787,IconAIGrammarCheck as _0x3e0f4f,IconAIImproveWriting as _0xed7fa,IconAIOther as _0x4e1a8e,IconAIQuickActions as _0x4882dd,IconAITranslate as _0x225037}from'@ckeditor/ckeditor5-icons';import{Plugin as _0x10a5d}from'ckeditor5/src/core.js';import{getTranslation as _0x2cdac2}from'./utils/common-translations.js';import{aiQuickActionsDropdownCreator as _0x4df572}from'./ui/aiquickactionsdropdowncreator.js';import{aiQuickActionsButtonCreator as _0x2fc662}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0x102ff8,BalloonToolbar as _0x1fd19d}from'ckeditor5/src/ui.js';import'../../theme/aiquickactions/aiquickactions.css';function _0x3b7c(_0x2a7597,_0x4af34d){const _0xc67b82=_0xc67b();return _0x3b7c=function(_0x3b7c74,_0x1e158b){_0x3b7c74=_0x3b7c74-0x10a;let _0x54e17c=_0xc67b82[_0x3b7c74];return _0x54e17c;},_0x3b7c(_0x2a7597,_0x4af34d);}const zt=_0x544c45(0x123),Wt=_0x544c45(0x13d),Jt=_0x544c45(0x133);export var AIQuickActionType;!function(_0x51d2b5){const _0x7b41b3=_0x544c45;_0x51d2b5[_0x7b41b3(0x157)]=_0x7b41b3(0x157),_0x51d2b5[_0x7b41b3(0x16e)]=_0x7b41b3(0x16e),_0x51d2b5[_0x7b41b3(0x169)]=_0x7b41b3(0x169);}(AIQuickActionType||(AIQuickActionType={}));function _0xc67b(){const _0x23d2ab=['355416iGXAno','explain','get','AI_QUICK_ACTIONS_MORE_CASUAL','translate-to-french','continue-writing','translate-to-russian','_quickActionsDefinition','AI_QUICK_ACTIONS_SUMMARIZE','improve-writing','japanese','AIReviewMode','translate-to-korean','make-tone-professional','filter','editor','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','isOfficialPlugin','fix-grammar-and-spelling','45lPuupJ','AI_QUICK_ACTIONS_TRANSLATE','DisplayNames','config','AI_QUICK_ACTIONS_MORE_CONFIDENT','_shouldIncludeAction','summarize','forEach','korean','french','aiQuickActions','510300NhtYJG','<task>For\x20given\x20selected\x20part\x20of\x20HTML\x20document\x20you\x20must\x20explain\x20the\x20meaning\x20of\x20it\x27s\x20content\x20clearly\x20and\x20in\x20plain\x20language.</task><rules>1.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is:-\x20If\x20it\x20looks\x20like\x20a\x20definition\x20explain\x20the\x20concept\x20in\x20simple\x20terms.-\x20If\x20it\x20looks\x20like\x20a\x20description\x20clarify\x20what\x20it\x20is\x20describing\x20and\x20why\x20it\x20matters.-\x20If\x20it\x20contains\x20technical\x20terms\x20or\x20jargon\x20break\x20them\x20down\x20into\x20everyday\x20language.-\x20If\x20it\x20looks\x20instructional\x20restate\x20as\x20clear\x20steps\x20someone\x20can\x20follow.-\x20If\x20it\x20provides\x20examples\x20explain\x20what\x20the\x20example\x20shows\x20and\x20why\x20it\x27s\x20relevant.-\x20If\x20it\x20presents\x20an\x20argument\x20or\x20claim\x20restate\x20the\x20claim\x20neutrally\x20and\x20explain\x20its\x20purpose.-\x20If\x20it\x20is\x20narrative/story-like\x20explain\x20what\x20event\x20or\x20situation\x20is\x20being\x20described.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20explain\x20what\x20the\x20data\x20indicates.-\x20If\x20it\x20is\x20a\x20quotation\x20explain\x20the\x20meaning\x20of\x20the\x20quote\x20in\x20context.-\x20If\x20it\x20compares/contrasts\x20things\x20explain\x20the\x20key\x20differences\x20or\x20similarities\x20simply.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20give\x20a\x20clear,\x20plain-language\x20explanation\x20of\x20its\x20meaning,\x20focusing\x20on\x20usefulness.2.\x20Provide\x20context\x20if\x20the\x20meaning\x20could\x20be\x20unclear\x20without\x20it.\x20(e.g.,\x20explain\x20where\x20such\x20a\x20term\x20might\x20be\x20used,\x20or\x20why\x20it\x20is\x20important).3.\x20Keep\x20the\x20explanation\x20short\x20but\x20complete\x20(2–5\x20sentences).Avoid\x20overly\x20technical\x20detail\x20unless\x20it\x20is\x20necessary\x20for\x20understanding.4.\x20Do\x20not\x20simply\x20repeat\x20the\x20original\x20text\x20—\x20restate\x20and\x20expand\x20it\x20in\x20plain\x20words.5.\x20If\x20possible,\x20add\x20a\x20short\x20example\x20or\x20analogy\x20to\x20make\x20it\x20easier\x20to\x20understand.6.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20explanation.7.\x20Your\x20explanation\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20explanation.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','add','pluginName','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','make-tone-confident','AIQuickActionsUI','english','AI_QUICK_ACTIONS_CONTINUE_WRITING','translate-to-italian','AI_QUICK_ACTIONS_ADJUST_LENGTH','7LShWIl','adjust-length','locale','681924czSGKQ','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','AI_QUICK_ACTIONS_CHANGE_TONE','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20extract\x20and\x20present\x20the\x20key\x20points\x20from\x20its\x20content.</task><rules>1.\x20Present\x20the\x20output\x20as\x20a\x20clear,\x20structured\x20list\x20(bullets\x20or\x20numbered).-\x20Each\x20point\x20should\x20be\x20concise\x20(one\x20sentence\x20or\x20less).-\x20Do\x20not\x20merge\x20distinct\x20ideas\x20into\x20one\x20bullet.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20extraction\x20style:-\x20If\x20it\x20is\x20descriptive\x20capture\x20the\x20main\x20attributes\x20or\x20features.-\x20If\x20it\x20is\x20argumentative\x20extract\x20the\x20main\x20claim\x20and\x20supporting\x20reasons\x20separately.-\x20If\x20it\x20is\x20narrative/story-like\x20extract\x20the\x20main\x20events\x20in\x20chronological\x20order.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20highlight\x20the\x20most\x20important\x20facts\x20or\x20numbers.-\x20If\x20it\x20is\x20instructional\x20list\x20the\x20steps\x20or\x20main\x20actions\x20in\x20simplified\x20form.-\x20If\x20it\x20provides\x20comparisons\x20extract\x20the\x20contrasted\x20items\x20and\x20their\x20differences/similarities.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20category\x20above\x20extract\x20the\x20main\x20ideas\x20in\x20plain,\x20short\x20statements.3.\x20Keep\x20the\x20list\x20between\x203–7\x20items\x20where\x20possible.-\x20If\x20the\x20text\x20is\x20very\x20short,\x20fewer\x20items\x20are\x20fine.-\x20If\x20it\x20is\x20very\x20long,\x20focus\x20on\x20the\x20most\x20important\x20ideas\x20only.4.\x20Do\x20not\x20copy\x20long\x20text\x20fragments\x20—\x20restate\x20in\x20simple\x20words.5.\x20Do\x20not\x20add\x20interpretation,\x20evaluation,\x20or\x20commentary\x20beyond\x20the\x20text.6.\x20Ensure\x20the\x20list\x20can\x20stand\x20alone\x20without\x20requiring\x20the\x20reader\x20to\x20see\x20the\x20original\x20document.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20key\x20points.8.\x20Your\x20key\x20points\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20extracted\x20key\x20points.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','AI_QUICK_ACTIONS_OTHER','translate-to-portuguese','componentFactory','_initializeQuickActionsComponents','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','type','change-tone','AIActions','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20summarize\x20its\x20content\x20in\x20a\x20few\x20sentences,\x20keeping\x20only\x20the\x20essential\x20meaning.</task><rules>1.\x20Your\x20summary\x20should\x20be\x20short\x20and\x20clear:-\x20Aim\x20for\x202–4\x20sentences\x20unless\x20the\x20text\x20is\x20extremely\x20short.-\x20Focus\x20on\x20capturing\x20the\x20main\x20idea(s)\x20without\x20unnecessary\x20detail.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20summary\x20style:-\x20If\x20it\x20is\x20descriptive\x20condense\x20the\x20description\x20into\x20its\x20core\x20idea.-\x20If\x20it\x20is\x20argumentative\x20or\x20opinion-based\x20summarize\x20the\x20main\x20claim\x20and\x20reasoning\x20neutrally.-\x20If\x20it\x20is\x20narrative/story-like\x20capture\x20the\x20main\x20event\x20or\x20outcome\x20without\x20side\x20details.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20summarize\x20what\x20the\x20data\x20shows\x20in\x20plain\x20language.-\x20If\x20it\x20is\x20instructional\x20restate\x20the\x20overall\x20purpose\x20of\x20the\x20steps\x20without\x20listing\x20every\x20step.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20provide\x20a\x20general\x20concise\x20summary.3.\x20Provide\x20context\x20if\x20necessary\x20for\x20clarity:-\x20Mention\x20the\x20subject\x20or\x20topic\x20explicitly\x20so\x20the\x20summary\x20can\x20stand\x20alone.4.\x20Do\x20not\x20simply\x20copy\x20sentences\x20from\x20the\x20original\x20text\x20—\x20rephrase\x20in\x20plain\x20language.5.\x20Avoid\x20adding\x20new\x20information\x20or\x20interpretation\x20not\x20present\x20in\x20the\x20text.6.\x20Summarize\x20in\x20a\x20way\x20that\x20would\x20make\x20sense\x20to\x20someone\x20who\x20has\x20not\x20read\x20the\x20original\x20text.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20summary.8.\x20Your\x20summary\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20summary.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','has','AI_QUICK_ACTIONS_IMPROVE_WRITING','20xGJPAg','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','highlight-key-points','length','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','AI_QUICK_ACTIONS_MORE_FRIENDLY','1180712OjTlUI','AI_QUICK_ACTIONS_MORE_DIRECT','ask-ai','translate','ai.quickActions.extraCommands','14696380qvTxLd','getDefaultQuickActions','AI_QUICK_ACTIONS_EXPLAIN','replace','language','make-tone-direct','8901048FEoqok','find','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','chinese','_getDefaultAndCustomActions','make-shorter','CHAT','map','make-tone-friendly','translate-to-english','English','AI_QUICK_ACTIONS_CHAT_COMMANDS','AI_QUICK_ACTIONS_HEADING','russian','AI_QUICK_ACTIONS_ASK_AI','2136758TgQYFX','portuguese','attachToDom','plugins','requires','AI_QUICK_ACTIONS_MAKE_SHORTER','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','ai.quickActions.removeCommands','includes','REVIEW','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','make-longer','translate-to-japanese','init','ACTION','uiLanguage','translate-to-chinese','AIChat','push','_prepareQuickActionsDefinition','AI_QUICK_ACTIONS_MAKE_LONGER','chat-commands','_initializeQuickActionsComponentsAndCommands','_initializeQuickActionsDropdown','other','make-tone-casual','actions','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','isPremiumPlugin','italian'];_0xc67b=function(){return _0x23d2ab;};return _0xc67b();}export var AIQuickActionTypeToPluginName;!function(_0x1e4a97){const _0x48555c=_0x544c45;_0x1e4a97[_0x48555c(0x157)]=_0x48555c(0x171),_0x1e4a97[_0x48555c(0x16e)]=_0x48555c(0x13c),_0x1e4a97[_0x48555c(0x169)]=_0x48555c(0x10f);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));export class AIQuickActionsUI extends _0x10a5d{static get[_0x544c45(0x164)](){return[_0x1fd19d];}static get[_0x544c45(0x125)](){const _0x2fd5e0=_0x544c45;return _0x2fd5e0(0x128);}static get[_0x544c45(0x115)](){return!0x0;}static get[_0x544c45(0x17c)](){return!0x0;}[_0x544c45(0x16d)](){const _0x15b392=_0x544c45;this[_0x15b392(0x173)](this[_0x15b392(0x155)]()),this[_0x15b392(0x176)]();}static[_0x544c45(0x14c)](_0x44edc4){return function(_0x515041){const _0x5a034b=_0x3b7c,_0x21d3c9=new Intl[(_0x5a034b(0x119))](['en'],{'type':_0x5a034b(0x14f)})['of'](_0x515041[_0x5a034b(0x16f)]),_0x472988=_0x21d3c9||_0x5a034b(0x15b),_0x7bfc3f=[{'id':_0x5a034b(0x148),'displayedPrompt':_0x2cdac2(_0x515041,_0x5a034b(0x15f)),'type':AIQuickActionType[_0x5a034b(0x157)],'icon':_0x3d6657},{'id':_0x5a034b(0x175),'label':_0x2cdac2(_0x515041,_0x5a034b(0x15c)),'icon':_0x540794,'actions':[{'id':_0x5a034b(0x17f),'displayedPrompt':_0x2cdac2(_0x515041,_0x5a034b(0x14d)),'prompt':zt[_0x5a034b(0x14e)]('%0',_0x472988),'type':AIQuickActionType[_0x5a034b(0x157)]},{'id':_0x5a034b(0x11d),'displayedPrompt':_0x2cdac2(_0x515041,_0x5a034b(0x10c)),'prompt':Wt[_0x5a034b(0x14e)]('%0',_0x472988),'type':AIQuickActionType[_0x5a034b(0x157)]},{'id':_0x5a034b(0x142),'displayedPrompt':_0x2cdac2(_0x515041,_0x5a034b(0x141)),'prompt':Jt[_0x5a034b(0x14e)]('%0',_0x472988),'type':AIQuickActionType[_0x5a034b(0x157)]}]},{'id':_0x5a034b(0x10d),'displayedPrompt':_0x2cdac2(_0x515041,_0x5a034b(0x13f)),'type':AIQuickActionType[_0x5a034b(0x16e)],'icon':_0xed7fa},{'id':_0x5a034b(0x183),'displayedPrompt':_0x2cdac2(_0x515041,_0x5a034b(0x12a)),'type':AIQuickActionType[_0x5a034b(0x16e)],'icon':_0x463787},{'id':_0x5a034b(0x116),'displayedPrompt':_0x2cdac2(_0x515041,_0x5a034b(0x144)),'type':AIQuickActionType[_0x5a034b(0x16e)],'icon':_0x3e0f4f},{'id':_0x5a034b(0x12e),'label':_0x2cdac2(_0x515041,_0x5a034b(0x12c)),'icon':_0xa0c01f,'actions':[{'id':_0x5a034b(0x156),'displayedPrompt':_0x2cdac2(_0x515041,_0x5a034b(0x165)),'type':AIQuickActionType[_0x5a034b(0x16e)]},{'id':_0x5a034b(0x16b),'displayedPrompt':_0x2cdac2(_0x515041,_0x5a034b(0x174)),'type':AIQuickActionType[_0x5a034b(0x16e)]}]},{'id':_0x5a034b(0x13b),'label':_0x2cdac2(_0x515041,_0x5a034b(0x132)),'icon':_0x55a3a1,'actions':[{'id':_0x5a034b(0x179),'displayedPrompt':_0x2cdac2(_0x515041,_0x5a034b(0x181)),'type':AIQuickActionType[_0x5a034b(0x16e)]},{'id':_0x5a034b(0x150),'displayedPrompt':_0x2cdac2(_0x515041,_0x5a034b(0x147)),'type':AIQuickActionType[_0x5a034b(0x16e)]},{'id':_0x5a034b(0x159),'displayedPrompt':_0x2cdac2(_0x515041,_0x5a034b(0x145)),'type':AIQuickActionType[_0x5a034b(0x16e)]},{'id':_0x5a034b(0x127),'displayedPrompt':_0x2cdac2(_0x515041,_0x5a034b(0x11b)),'type':AIQuickActionType[_0x5a034b(0x16e)]},{'id':_0x5a034b(0x111),'displayedPrompt':_0x2cdac2(_0x515041,_0x5a034b(0x16a)),'type':AIQuickActionType[_0x5a034b(0x16e)]}]},{'id':_0x5a034b(0x149),'label':_0x2cdac2(_0x515041,_0x5a034b(0x118)),'icon':_0x225037,'actions':[{'id':_0x5a034b(0x15a),'displayedPrompt':_0x2cdac2(_0x515041,_0x5a034b(0x139)),'type':AIQuickActionType[_0x5a034b(0x16e)],'actionName':_0x5a034b(0x149),'args':{'language':_0x5a034b(0x129)}},{'id':_0x5a034b(0x170),'displayedPrompt':_0x2cdac2(_0x515041,_0x5a034b(0x17b)),'type':AIQuickActionType[_0x5a034b(0x16e)],'actionName':_0x5a034b(0x149),'args':{'language':_0x5a034b(0x154)}},{'id':_0x5a034b(0x182),'displayedPrompt':_0x2cdac2(_0x515041,_0x5a034b(0x134)),'type':AIQuickActionType[_0x5a034b(0x16e)],'actionName':_0x5a034b(0x149),'args':{'language':_0x5a034b(0x120)}},{'id':_0x5a034b(0x16c),'displayedPrompt':_0x2cdac2(_0x515041,_0x5a034b(0x126)),'type':AIQuickActionType[_0x5a034b(0x16e)],'actionName':_0x5a034b(0x149),'args':{'language':_0x5a034b(0x10e)}},{'id':_0x5a034b(0x136),'displayedPrompt':_0x2cdac2(_0x515041,_0x5a034b(0x166)),'type':AIQuickActionType[_0x5a034b(0x16e)],'actionName':_0x5a034b(0x149),'args':{'language':_0x5a034b(0x161)}},{'id':_0x5a034b(0x110),'displayedPrompt':_0x2cdac2(_0x515041,_0x5a034b(0x114)),'type':AIQuickActionType[_0x5a034b(0x16e)],'actionName':_0x5a034b(0x149),'args':{'language':_0x5a034b(0x11f)}},{'id':_0x5a034b(0x12b),'displayedPrompt':_0x2cdac2(_0x515041,_0x5a034b(0x153)),'type':AIQuickActionType[_0x5a034b(0x16e)],'actionName':_0x5a034b(0x149),'args':{'language':_0x5a034b(0x17d)}},{'id':_0x5a034b(0x10a),'displayedPrompt':_0x2cdac2(_0x515041,_0x5a034b(0x131)),'type':AIQuickActionType[_0x5a034b(0x16e)],'actionName':_0x5a034b(0x149),'args':{'language':_0x5a034b(0x15e)}}]},{'id':_0x5a034b(0x178),'label':_0x2cdac2(_0x515041,_0x5a034b(0x135)),'icon':_0x4e1a8e,'actions':[]}];return _0x7bfc3f;}(_0x44edc4);}[_0x544c45(0x155)](){const _0x2dc49d=_0x544c45,_0x2171b8=AIQuickActionsUI[_0x2dc49d(0x14c)](this[_0x2dc49d(0x113)][_0x2dc49d(0x12f)]),_0x43ddce=(this[_0x2dc49d(0x113)][_0x2dc49d(0x11a)][_0x2dc49d(0x180)](_0x2dc49d(0x14a))||[])[_0x2dc49d(0x158)](_0x14aa0e=>({..._0x14aa0e,'icon':void 0x0}));return _0x2171b8[_0x2dc49d(0x152)](_0x5ec3f9=>_0x2dc49d(0x178)===_0x5ec3f9['id'])[_0x2dc49d(0x17a)][_0x2dc49d(0x172)](..._0x43ddce),_0x2171b8;}[_0x544c45(0x176)](){const _0x28ff2e=_0x544c45,_0x28cdcc=new _0x102ff8(this[_0x28ff2e(0x113)][_0x28ff2e(0x12f)]);_0x28cdcc[_0x28ff2e(0x162)](),this[_0x28ff2e(0x177)](_0x28cdcc),this[_0x28ff2e(0x138)](_0x28cdcc);}[_0x544c45(0x177)](_0x440963){const _0x4bc19b=_0x544c45;this[_0x4bc19b(0x113)]['ui'][_0x4bc19b(0x137)][_0x4bc19b(0x124)](_0x4bc19b(0x121),_0x4df572(this[_0x4bc19b(0x113)],this[_0x4bc19b(0x10b)],{'icon':_0x4882dd,'label':_0x2cdac2(this[_0x4bc19b(0x113)][_0x4bc19b(0x12f)],_0x4bc19b(0x15d))},_0x440963));}[_0x544c45(0x173)](_0x5c9252){const _0x881045=_0x544c45;this[_0x881045(0x10b)]=_0x5c9252[_0x881045(0x158)](_0x4513d1=>{const _0x94ddbe=_0x881045;if(_0x94ddbe(0x17a)in _0x4513d1){const _0x239930=_0x4513d1;return{..._0x239930,'actions':_0x239930[_0x94ddbe(0x17a)][_0x94ddbe(0x158)](_0xb537ae=>{const {actions:_0x3ca53a,..._0x49a92b}=_0x239930;return{..._0xb537ae,'parent':_0x49a92b};})[_0x94ddbe(0x112)](_0x304cb9=>this[_0x94ddbe(0x11c)](_0x304cb9))};}return _0x4513d1;})[_0x881045(0x112)](_0x3350b9=>_0x881045(0x17a)in _0x3350b9?_0x3350b9[_0x881045(0x17a)][_0x881045(0x143)]>0x0:this[_0x881045(0x11c)](_0x3350b9));}[_0x544c45(0x11c)](_0x4710d9){const _0xddbd42=_0x544c45,_0x5471c5=this[_0xddbd42(0x113)][_0xddbd42(0x11a)][_0xddbd42(0x180)](_0xddbd42(0x167))||[];return this[_0xddbd42(0x113)][_0xddbd42(0x163)][_0xddbd42(0x13e)](AIQuickActionTypeToPluginName[_0x4710d9[_0xddbd42(0x13a)]])&&!_0x5471c5[_0xddbd42(0x168)](_0x4710d9['id']);}[_0x544c45(0x138)](_0x1732fa){const _0x3298ae=_0x544c45;this[_0x3298ae(0x10b)][_0x3298ae(0x11e)](_0x5adf0b=>{const _0x25f067=_0x3298ae;if(_0x25f067(0x17a)in _0x5adf0b){const _0x53820c=_0x4df572(this[_0x25f067(0x113)],_0x5adf0b[_0x25f067(0x17a)],_0x5adf0b,_0x1732fa);this[_0x25f067(0x113)]['ui'][_0x25f067(0x137)][_0x25f067(0x124)](_0x5adf0b['id'],_0x53820c),_0x5adf0b[_0x25f067(0x17a)][_0x25f067(0x11e)](_0x28589f=>{const _0x592363=_0x25f067,_0x37e681=_0x2fc662(this[_0x592363(0x113)],_0x28589f);this[_0x592363(0x113)]['ui'][_0x592363(0x137)][_0x592363(0x124)](_0x28589f['id'],_0x37e681);});}else{const _0x405d7b=_0x2fc662(this[_0x25f067(0x113)],_0x5adf0b);this[_0x25f067(0x113)]['ui'][_0x25f067(0x137)][_0x25f067(0x124)](_0x5adf0b['id'],_0x405d7b);}});}}
@@ -0,0 +1,30 @@
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/aiquickactions/ui/aiquickactionsbuttoncreator
7
+ */
8
+ import { type Editor } from 'ckeditor5/src/core.js';
9
+ import { ButtonView } from 'ckeditor5/src/ui.js';
10
+ import { type AIQuickActionDefinition } from '../aiquickactionsui.js';
11
+ /**
12
+ * Creates a button factory function for AI Quick Actions.
13
+ *
14
+ * This function returns a factory that creates ButtonView instances for individual AI quick actions.
15
+ * Each button is configured with the action's properties (label, icon, type) and sets up the
16
+ * execution logic that triggers the AI command when clicked.
17
+ *
18
+ * The button automatically:
19
+ * - Uses the action's icon or falls back to parent group icon or default icon
20
+ * - Focuses the editor when executed
21
+ * - Hides any open balloon toolbar
22
+ * - Executes the aiQuickActions command with the action details
23
+ *
24
+ * @param editor The CKEditor instance that will contain the button
25
+ * @param action The AI quick action definition containing configuration
26
+ * @param withText Whether to show the text label on the button
27
+ * @param withIcon Whether to show the icon on the button
28
+ * @returns Factory function that creates a ButtonView instance
29
+ */
30
+ export declare function aiQuickActionsButtonCreator(editor: Editor, action: AIQuickActionDefinition, withText?: boolean, withIcon?: boolean): () => ButtonView;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ (function(_0x9a0e18,_0x4eb8cc){const _0x54f181=_0x15bf,_0x3e199b=_0x9a0e18();while(!![]){try{const _0x4963fe=parseInt(_0x54f181(0x16d))/0x1*(-parseInt(_0x54f181(0x170))/0x2)+parseInt(_0x54f181(0x164))/0x3+-parseInt(_0x54f181(0x17a))/0x4+-parseInt(_0x54f181(0x179))/0x5*(-parseInt(_0x54f181(0x178))/0x6)+-parseInt(_0x54f181(0x169))/0x7*(parseInt(_0x54f181(0x16e))/0x8)+parseInt(_0x54f181(0x165))/0x9+parseInt(_0x54f181(0x168))/0xa;if(_0x4963fe===_0x4eb8cc)break;else _0x3e199b['push'](_0x3e199b['shift']());}catch(_0x29818f){_0x3e199b['push'](_0x3e199b['shift']());}}}(_0x31b1,0xe3c09));import{ButtonView as _0x323a05}from'ckeditor5/src/ui.js';function _0x15bf(_0x4515bb,_0x1b795d){const _0x31b15c=_0x31b1();return _0x15bf=function(_0x15bfc5,_0x2da493){_0x15bfc5=_0x15bfc5-0x164;let _0x12967e=_0x31b15c[_0x15bfc5];return _0x12967e;},_0x15bf(_0x4515bb,_0x1b795d);}import{IconAIQuickActions as _0x34772b}from'@ckeditor/ckeditor5-icons';export function aiQuickActionsButtonCreator(_0x4ed1e1,_0x25fb38,_0x55e348=!0x1,_0x3607b7=!0x0){return()=>{const _0x54c61c=_0x15bf,_0x47504e=_0x4ed1e1[_0x54c61c(0x174)],_0x36f73a=new _0x323a05(_0x47504e),_0x50cc06=_0x36f73a[_0x54c61c(0x16b)];_0x36f73a[_0x54c61c(0x175)]({'on':{'mouseenter':_0x50cc06['to'](()=>{const _0x30d013=_0x54c61c;_0x36f73a[_0x30d013(0x171)]();})}});const _0x6ce7e4=_0x25fb38[_0x54c61c(0x176)]??_0x25fb38[_0x54c61c(0x16a)]?.[_0x54c61c(0x176)];return _0x36f73a[_0x54c61c(0x16f)]({'label':_0x25fb38[_0x54c61c(0x167)],'withText':_0x55e348,'role':_0x54c61c(0x16c),'icon':_0x3607b7?_0x6ce7e4??_0x34772b:void 0x0,'tooltip':!_0x55e348}),_0x36f73a['on'](_0x54c61c(0x173),()=>{const _0x1a95cb=_0x54c61c;_0x4ed1e1[_0x1a95cb(0x17b)][_0x1a95cb(0x177)][_0x1a95cb(0x171)](),_0x4ed1e1[_0x1a95cb(0x172)][_0x1a95cb(0x173)](_0x1a95cb(0x166),_0x25fb38);}),_0x36f73a;};}function _0x31b1(){const _0x4751df=['focus','commands','execute','locale','extendTemplate','icon','view','6QFIIpW','2102045bcdGSJ','2877680QRjeVB','editing','4892169zVfPjG','4962006aRAqMj','aiQuickAction','displayedPrompt','12761480UhMuAc','620179ncDPeR','parent','bindTemplate','menuitem','24EoBnHK','168dhUlcr','set','30482mnVfts'];_0x31b1=function(){return _0x4751df;};return _0x31b1();}
@@ -0,0 +1,45 @@
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/aiquickactions/ui/aiquickactionsview
7
+ */
8
+ import { type Editor } from 'ckeditor5/src/core.js';
9
+ import { View, type BodyCollection, type DropdownView, type ViewWithFocusCycler, FocusCycler } from 'ckeditor5/src/ui.js';
10
+ import { type AIQuickActionDefinition, type AIQuickActionsGroupDefinition } from '../aiquickactionsui.js';
11
+ import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils.js';
12
+ /**
13
+ * The content view for AI Quick Actions dropdown that renders a structured list of AI commands.
14
+ *
15
+ * This class manages the complete UI for AI Quick Actions, including:
16
+ * - Individual action buttons
17
+ * - Grouped actions with nested menus
18
+ * - Focus management and keyboard navigation
19
+ * - Hover-based menu interactions
20
+ * - Nested panel positioning and visibility
21
+ *
22
+ * The view supports both flat actions and hierarchical action groups with nested menus
23
+ * that appear on hover. It handles proper focus cycling, accessibility roles, and
24
+ * manages the lifecycle of nested balloon panels.
25
+ */
26
+ export declare class AIQuickActionsDropdownContentView extends View implements ViewWithFocusCycler {
27
+ /**
28
+ * Tracks information about DOM focus in the form.
29
+ */
30
+ readonly focusTracker: FocusTracker;
31
+ /**
32
+ * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
33
+ */
34
+ readonly keystrokes: KeystrokeHandler;
35
+ /**
36
+ * Helps cycling over {@link #_focusables} in the form.
37
+ */
38
+ readonly focusCycler: FocusCycler;
39
+ constructor(editor: Editor, content: Array<AIQuickActionsGroupDefinition | AIQuickActionDefinition>, dropdownView: DropdownView, bodyCollection: BodyCollection);
40
+ /**
41
+ * @inheritDoc
42
+ */
43
+ destroy(): void;
44
+ focus(): void;
45
+ }
@@ -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 _0xb918(_0x548d66,_0x1b7c3e){const _0x22959c=_0x2295();return _0xb918=function(_0xb91866,_0x325242){_0xb91866=_0xb91866-0x8a;let _0x34d782=_0x22959c[_0xb91866];return _0x34d782;},_0xb918(_0x548d66,_0x1b7c3e);}const _0x3cdfe5=_0xb918;(function(_0x454a82,_0x393d95){const _0x354bd7=_0xb918,_0x15b64a=_0x454a82();while(!![]){try{const _0x57b257=parseInt(_0x354bd7(0xd6))/0x1+parseInt(_0x354bd7(0xbd))/0x2+-parseInt(_0x354bd7(0xc2))/0x3*(parseInt(_0x354bd7(0x97))/0x4)+parseInt(_0x354bd7(0x91))/0x5+parseInt(_0x354bd7(0x9a))/0x6*(-parseInt(_0x354bd7(0xae))/0x7)+parseInt(_0x354bd7(0xad))/0x8*(parseInt(_0x354bd7(0xa5))/0x9)+-parseInt(_0x354bd7(0xc1))/0xa;if(_0x57b257===_0x393d95)break;else _0x15b64a['push'](_0x15b64a['shift']());}catch(_0x41a735){_0x15b64a['push'](_0x15b64a['shift']());}}}(_0x2295,0x8361f));import{View as _0x2fab0f,ListItemView as _0x48ad34,ListView as _0x23d9e2,BalloonPanelView as _0x31d671,DropdownMenuPanelPositioningFunctions as _0x3d1905,DropdownMenuButtonView as _0x17ac5f,ViewCollection as _0x385f7f,FocusCycler as _0x2c3067}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0x5abe14}from'@ckeditor/ckeditor5-icons';import{FocusTracker as _0x3338fa,KeystrokeHandler as _0x427e28}from'ckeditor5/src/utils.js';import{aiQuickActionsButtonCreator as _0x3e0f85}from'./aiquickactionsbuttoncreator.js';function _0x2295(){const _0x13074f=['ArrowRight','icon','add','ArrowLeft','show','div','_createActionButton','eastSouth','detachFromDom','bindTemplate','focus','ck-reset_all','forEach','_focusables','get','clear','role','hide','ck-ai-quick-actions','600989ZFLjpa','ck-ai-quick-actions-group-panel','_createListItems','setTemplate','_createActionGroupButton','set','bind','uiLanguageDirection','closest','_showNestedPanel','pin','4518505Duvvdo','keystrokes','label','ck-rounded-corners','_isMovingToNestedMenu','.ck-ai-quick-actions-group-list','24380dHpQGQ','ck-ai-quick-actions-group-button','_hideAllNestedPanels','192558JGwCZl','isOn','rtl','menuitem','optionsListView','content','ck-dropdown-menu-list','addEventListener','_hideNestedPanel','_setupGroupMenuBehavior','contains','25335tiliEt','menu','isVisible','children','extendTemplate','actions','.ck-ai-quick-actions-group-panel','.ck-ai-quick-actions-group-button','2832lWQILn','7YiuamL','addMany','focusTracker','destroy','items','_openNestedPanels','key','locale','element','ck-dropdown-menu__nested-menu__panel','render','ck-ai-quick-actions-group-list','_bodyCollection','delete','focusCycler','1164334BbCJIP','mouseleave','relatedTarget','_createGroupActionsList','23119960cSEGoU','99OQqBdN'];_0x2295=function(){return _0x13074f;};return _0x2295();}const gs=_0x3cdfe5(0xa6),As=_0x3cdfe5(0x9d);export class AIQuickActionsDropdownContentView extends _0x2fab0f{[_0x3cdfe5(0xba)];[_0x3cdfe5(0x9e)];[_0x3cdfe5(0xb0)];[_0x3cdfe5(0x92)];[_0x3cdfe5(0xd0)];[_0x3cdfe5(0xbc)];[_0x3cdfe5(0xb3)]=new Set();constructor(_0xa06fe2,_0x347a8a,_0x4c84f8,_0x3f149a){const _0x988903=_0x3cdfe5,_0x33bcc8=_0xa06fe2[_0x988903(0xb5)];super(_0x33bcc8),this[_0x988903(0xba)]=_0x3f149a;const _0x2192ca=this[_0x988903(0xd8)](_0xa06fe2,_0x347a8a,_0x4c84f8);this[_0x988903(0x9e)]=new _0x23d9e2(_0x33bcc8),this[_0x988903(0x9e)][_0x988903(0xd3)]=gs,this[_0x988903(0x9e)][_0x988903(0xb2)][_0x988903(0xaf)](_0x2192ca),this[_0x988903(0xb0)]=new _0x3338fa(),this[_0x988903(0x92)]=new _0x427e28(),this[_0x988903(0xd0)]=_0x2192ca,this[_0x988903(0xbc)]=new _0x2c3067({'focusables':this[_0x988903(0xd0)],'focusTracker':this[_0x988903(0xb0)],'keystrokeHandler':this[_0x988903(0x92)]}),this[_0x988903(0xd9)]({'tag':_0x988903(0xc8),'attributes':{'class':['ck',_0x988903(0xce),_0x988903(0xd5),_0x988903(0x94)],'dir':_0x33bcc8[_0x988903(0x8d)]},'children':[this[_0x988903(0x9e)]]});}[_0x3cdfe5(0xd8)](_0x499dee,_0x1c7e1b,_0x545700){const _0x16d109=_0x3cdfe5,_0xf39cf0=new _0x385f7f();return _0x1c7e1b[_0x16d109(0xcf)](_0x1fd5f1=>{const _0x1de292=_0x16d109;_0x1de292(0xaa)in _0x1fd5f1?_0xf39cf0[_0x1de292(0xc5)](this[_0x1de292(0x8a)](_0x499dee,_0x1fd5f1,_0x545700)):_0xf39cf0[_0x1de292(0xc5)](this[_0x1de292(0xc9)](_0x499dee,_0x1fd5f1));}),_0xf39cf0;}[_0x3cdfe5(0xc9)](_0x181f19,_0x4c85ab){const _0x19852c=_0x3cdfe5,_0x6a83d=new _0x48ad34(this[_0x19852c(0xb5)]),_0x20e065=_0x3e0f85(_0x181f19,_0x4c85ab,!0x0)();return _0x6a83d[_0x19852c(0xa8)][_0x19852c(0xc5)](_0x20e065),_0x6a83d;}[_0x3cdfe5(0x8a)](_0x279ff2,_0x59c288,_0x2ad645){const _0x5334e0=_0x3cdfe5,_0x18aaff=new _0x48ad34(this[_0x5334e0(0xb5)]),_0x40f33e=new _0x17ac5f(this[_0x5334e0(0xb5)]),_0x50abad=_0x40f33e[_0x5334e0(0xcc)],_0x24ecfa=_0x5334e0(0x9c)===_0x2ad645[_0x5334e0(0xb5)][_0x5334e0(0x8d)]?_0x5334e0(0xc3):_0x5334e0(0xc6),_0x48e81d=this[_0x5334e0(0xc0)](_0x279ff2,_0x59c288[_0x5334e0(0xaa)],_0x2ad645);_0x40f33e[_0x5334e0(0x8b)]({'label':_0x59c288[_0x5334e0(0x93)],'withText':!0x0,'role':As,'icon':_0x59c288[_0x5334e0(0xc4)]??_0x5abe14}),_0x40f33e[_0x5334e0(0xa9)]({'on':{'mouseenter':_0x50abad['to'](()=>{const _0x46a0dc=_0x5334e0;_0x40f33e[_0x46a0dc(0xcd)]();})}});const _0x372075=new _0x31d671(this[_0x5334e0(0xb5)]);return _0x372075[_0x5334e0(0xa9)]({'attributes':{'class':['ck',_0x5334e0(0xce),_0x5334e0(0xd7),_0x5334e0(0xb7)]},'on':{'keydown':_0x50abad['to'](_0x3bab06=>{const _0x140a9f=_0x5334e0;_0x3bab06[_0x140a9f(0xb4)]==_0x24ecfa&&(_0x40f33e[_0x140a9f(0xcd)](),this[_0x140a9f(0xa2)](_0x372075));})}}),_0x40f33e[_0x5334e0(0x8c)](_0x5334e0(0x9b))['to'](_0x372075,_0x5334e0(0xa7)),this[_0x5334e0(0xba)][_0x5334e0(0xc5)](_0x372075),_0x372075[_0x5334e0(0x9f)][_0x5334e0(0xc5)](_0x48e81d),this[_0x5334e0(0xa3)](_0x40f33e,_0x372075),_0x18aaff[_0x5334e0(0xa8)][_0x5334e0(0xc5)](_0x40f33e),_0x18aaff;}[_0x3cdfe5(0xc0)](_0x13560b,_0x2f4c42,_0x22df20){const _0x2973a6=_0x3cdfe5,_0x12730c=new _0x23d9e2(this[_0x2973a6(0xb5)]);return _0x12730c[_0x2973a6(0xa9)]({'attributes':{'class':['ck',_0x2973a6(0xce),_0x2973a6(0xb9),_0x2973a6(0xa0)]}}),_0x2f4c42[_0x2973a6(0xcf)](_0x93e5ce=>{const _0x319192=_0x2973a6,_0x539192=new _0x48ad34(this[_0x319192(0xb5)]),_0x53c1a3=_0x3e0f85(_0x13560b,_0x93e5ce,!0x0,!0x1)();_0x539192[_0x319192(0xa8)][_0x319192(0xc5)](_0x53c1a3),_0x22df20[_0x319192(0xb0)][_0x319192(0xc5)](_0x53c1a3),_0x12730c[_0x319192(0xb2)][_0x319192(0xc5)](_0x539192);}),_0x12730c;}[_0x3cdfe5(0xa3)](_0x6b24f2,_0x554966){const _0x10de9b=_0x3cdfe5,_0x2b343d=_0x6b24f2[_0x10de9b(0xcc)],_0x36ad1b=_0x10de9b(0x9c)===_0x6b24f2[_0x10de9b(0xb5)][_0x10de9b(0x8d)]?_0x10de9b(0xc6):_0x10de9b(0xc3);_0x6b24f2[_0x10de9b(0xa9)]({'attributes':{'class':[_0x10de9b(0x98)]},'on':{'mouseenter':_0x2b343d['to'](()=>{const _0x55c80b=_0x10de9b;this[_0x55c80b(0x8f)](_0x554966,_0x6b24f2);}),'mouseleave':_0x2b343d['to'](_0x3e8c5d=>{const _0x335dbc=_0x10de9b,_0x255541=_0x3e8c5d[_0x335dbc(0xbf)];this[_0x335dbc(0x95)](_0x255541,_0x554966)||this[_0x335dbc(0xa2)](_0x554966);}),'keydown':_0x2b343d['to'](_0x37c479=>{const _0x5f4ebd=_0x10de9b;_0x37c479[_0x5f4ebd(0xb4)]==_0x36ad1b&&(this[_0x5f4ebd(0x8f)](_0x554966,_0x6b24f2),_0x554966[_0x5f4ebd(0x9f)][_0x5f4ebd(0xd1)](0x0)[_0x5f4ebd(0xcd)]());})}}),_0x554966['on'](_0x10de9b(0xb8),()=>{const _0x264621=_0x10de9b;_0x554966[_0x264621(0xb6)]?.[_0x264621(0xa1)](_0x264621(0xbe),_0xb1a82=>{const _0x3a1542=_0x264621,_0x1276ab=_0xb1a82[_0x3a1542(0xbf)];_0x6b24f2[_0x3a1542(0xb6)]?.[_0x3a1542(0xa4)](_0x1276ab)||this[_0x3a1542(0x95)](_0x1276ab,_0x554966)||this[_0x3a1542(0xa2)](_0x554966);});});}[_0x3cdfe5(0x8f)](_0x355aa1,_0x363beb){const _0x1bb74f=_0x3cdfe5;this[_0x1bb74f(0xb3)][_0x1bb74f(0xcf)](_0x101798=>{const _0x3cd277=_0x1bb74f;_0x101798!==_0x355aa1&&_0x101798[_0x3cd277(0xa7)]&&_0x101798[_0x3cd277(0xd4)]();}),_0x355aa1[_0x1bb74f(0xc7)](),_0x355aa1[_0x1bb74f(0x90)]({'positions':[_0x3d1905[_0x1bb74f(0xca)]],'target':_0x363beb[_0x1bb74f(0xb6)],'fitInViewport':!0x0}),this[_0x1bb74f(0xb3)][_0x1bb74f(0xc5)](_0x355aa1);}[_0x3cdfe5(0xa2)](_0x4ac8e2){const _0x363f42=_0x3cdfe5;_0x4ac8e2[_0x363f42(0xd4)](),this[_0x363f42(0xb3)][_0x363f42(0xbb)](_0x4ac8e2);}[_0x3cdfe5(0x99)](){const _0x459f02=_0x3cdfe5;this[_0x459f02(0xb3)][_0x459f02(0xcf)](_0x5dd1c7=>_0x5dd1c7[_0x459f02(0xd4)]()),this[_0x459f02(0xb3)][_0x459f02(0xd2)]();}[_0x3cdfe5(0x95)](_0x55a372,_0x1bbbff){const _0x19ace2=_0x3cdfe5;if(!_0x55a372)return!0x1;if(_0x1bbbff[_0x19ace2(0xb6)]?.[_0x19ace2(0xa4)](_0x55a372))return!0x0;const _0x23bd76=_0x55a372;return _0x23bd76[_0x19ace2(0x8e)]&&(null!==_0x23bd76[_0x19ace2(0x8e)](_0x19ace2(0xab))||null!==_0x23bd76[_0x19ace2(0x8e)](_0x19ace2(0x96))||null!==_0x23bd76[_0x19ace2(0x8e)](_0x19ace2(0xac)));}[_0x3cdfe5(0xb1)](){const _0x5c6d03=_0x3cdfe5;this[_0x5c6d03(0x99)](),this[_0x5c6d03(0xba)][_0x5c6d03(0xcb)](),super[_0x5c6d03(0xb1)]();}[_0x3cdfe5(0xcd)](){const _0x34c3f6=_0x3cdfe5;this[_0x34c3f6(0x9e)][_0x34c3f6(0xcd)]();}}
@@ -0,0 +1,45 @@
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/aiquickactions/ui/aiquickactionsdropdowncreator
7
+ */
8
+ import { type Editor } from 'ckeditor5/src/core.js';
9
+ import { type BodyCollection, type DropdownView } from 'ckeditor5/src/ui.js';
10
+ import { type AIQuickActionsGroupDefinition, type AIQuickActionDefinition } from '../aiquickactionsui.js';
11
+ /**
12
+ * Configuration for the dropdown button appearance.
13
+ */
14
+ type DropdownButtonDefinition = {
15
+ /**
16
+ * Icon to display on the button.
17
+ */
18
+ icon: string;
19
+ /**
20
+ * Label text for the button.
21
+ */
22
+ label: string;
23
+ };
24
+ /**
25
+ * Creates a dropdown factory function for AI Quick Actions.
26
+ *
27
+ * This function returns a factory that creates DropdownView instances containing AI quick actions.
28
+ * The dropdown can contain either individual actions or groups of actions, and automatically
29
+ * handles the UI interaction patterns including:
30
+ *
31
+ * Features:
32
+ * - Configurable button with icon and label
33
+ * - Panel containing AI Quick Actions view
34
+ * - Read-only state binding to editor
35
+ * - Automatic closing and focus management
36
+ * - Balloon toolbar hiding on action selection
37
+ *
38
+ * @param editor The CKEditor instance that will contain the dropdown
39
+ * @param content Array of AI action definitions or groups to display in the dropdown
40
+ * @param buttonDefinition Configuration for the dropdown button (icon, label)
41
+ * @param bodyCollection Body collection for managing UI elements
42
+ * @returns Factory function that creates a DropdownView instance
43
+ */
44
+ export declare function aiQuickActionsDropdownCreator(editor: Editor, content: Array<AIQuickActionsGroupDefinition | AIQuickActionDefinition>, buttonDefinition: AIQuickActionsGroupDefinition | DropdownButtonDefinition, bodyCollection: BodyCollection): () => DropdownView;
45
+ 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
+ (function(_0xc92ca2,_0x63adee){const _0x5ae40f=_0x57d8,_0x4480b9=_0xc92ca2();while(!![]){try{const _0x1777f9=-parseInt(_0x5ae40f(0x185))/0x1*(parseInt(_0x5ae40f(0x18b))/0x2)+-parseInt(_0x5ae40f(0x196))/0x3+parseInt(_0x5ae40f(0x191))/0x4*(-parseInt(_0x5ae40f(0x192))/0x5)+-parseInt(_0x5ae40f(0x18d))/0x6*(parseInt(_0x5ae40f(0x194))/0x7)+parseInt(_0x5ae40f(0x18a))/0x8*(-parseInt(_0x5ae40f(0x189))/0x9)+parseInt(_0x5ae40f(0x182))/0xa*(parseInt(_0x5ae40f(0x18f))/0xb)+-parseInt(_0x5ae40f(0x183))/0xc*(-parseInt(_0x5ae40f(0x197))/0xd);if(_0x1777f9===_0x63adee)break;else _0x4480b9['push'](_0x4480b9['shift']());}catch(_0x5db34d){_0x4480b9['push'](_0x4480b9['shift']());}}}(_0x3bce,0xdb935));import{createDropdown as _0x3cf295}from'ckeditor5/src/ui.js';function _0x3bce(){const _0x2a1df4=['144NAPAru','91350DWlxHI','panelView','3749151lZZkzI','buttonView','2260602mVIwqJ','182RJlDKv','1040290YyOjfI','3446976ItfqBS','set','23115UJnfZt','icon','add','children','11825613uUzguj','8PElXWo','6ZREEXQ','label','6hTZopX','ck-ai-quick-actions-dropdown','22NNqRCF','locale'];_0x3bce=function(){return _0x2a1df4;};return _0x3bce();}import{IconAIQuickActions as _0x13de24}from'@ckeditor/ckeditor5-icons';import{AIQuickActionsDropdownContentView as _0x38fc7d}from'./aiquickactionsdropdowncontentview.js';function _0x57d8(_0x53fb8b,_0x2b5d71){const _0x3bcef7=_0x3bce();return _0x57d8=function(_0x57d8a6,_0x26382d){_0x57d8a6=_0x57d8a6-0x182;let _0xe74a20=_0x3bcef7[_0x57d8a6];return _0xe74a20;},_0x57d8(_0x53fb8b,_0x2b5d71);}export function aiQuickActionsDropdownCreator(_0x534a5a,_0x24f54b,_0xb92bfd,_0x2fac89){return()=>{const _0x59d1db=_0x57d8,_0x3e23f0=_0x534a5a[_0x59d1db(0x190)],_0x171818=_0x3cf295(_0x3e23f0);_0x171818[_0x59d1db(0x195)][_0x59d1db(0x184)]({'icon':_0xb92bfd[_0x59d1db(0x186)]??_0x13de24,'label':_0xb92bfd[_0x59d1db(0x18c)],'tooltip':!0x0}),_0x171818[_0x59d1db(0x184)]({'class':_0x59d1db(0x18e)});const _0x575309=new _0x38fc7d(_0x534a5a,_0x24f54b,_0x171818,_0x2fac89);return _0x171818[_0x59d1db(0x193)][_0x59d1db(0x188)][_0x59d1db(0x187)](_0x575309),_0x171818;};}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module ai/aiquickactions/utils/common-translations
7
+ */
8
+ import type { Locale } from 'ckeditor5/src/utils.js';
9
+ export declare function getTranslation(locale: Locale, id: string, values?: string | number): string;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export function getTranslation(_0x50af0e,_0x522f19,_0x5baf86){const t=_0x50af0e['t'];switch(_0x522f19){case'AI_QUICK_ACTIONS_HEADING':return t({'id':'AI_QUICK_ACTIONS_HEADING','string':'AI\x20Quick\x20Actions'});case'AI_QUICK_ACTIONS_ASK_AI':return t({'id':'AI_QUICK_ACTIONS_ASK_AI','string':'Ask\x20AI'});case'AI_QUICK_ACTIONS_CHAT_COMMANDS':return t({'id':'AI_QUICK_ACTIONS_CHAT_COMMANDS','string':'Chat\x20commands'});case'AI_QUICK_ACTIONS_IMPROVE_WRITING':return t({'id':'AI_QUICK_ACTIONS_IMPROVE_WRITING','string':'Improve\x20writing'});case'AI_QUICK_ACTIONS_CONTINUE_WRITING':return t({'id':'AI_QUICK_ACTIONS_CONTINUE_WRITING','string':'Continue\x20writing'});case'AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING':return t({'id':'AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','string':'Fix\x20grammar\x20&\x20spelling'});case'AI_QUICK_ACTIONS_ADJUST_LENGTH':return t({'id':'AI_QUICK_ACTIONS_ADJUST_LENGTH','string':'Adjust\x20length'});case'AI_QUICK_ACTIONS_CHANGE_TONE':return t({'id':'AI_QUICK_ACTIONS_CHANGE_TONE','string':'Change\x20tone'});case'AI_QUICK_ACTIONS_TRANSLATE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE','string':'Translate'});case'AI_QUICK_ACTIONS_EXPLAIN':return t({'id':'AI_QUICK_ACTIONS_EXPLAIN','string':'Explain'});case'AI_QUICK_ACTIONS_SUMMARIZE':return t({'id':'AI_QUICK_ACTIONS_SUMMARIZE','string':'Summarize'});case'AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS':return t({'id':'AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','string':'Highlight\x20key\x20points'});case'AI_QUICK_ACTIONS_MAKE_SHORTER':return t({'id':'AI_QUICK_ACTIONS_MAKE_SHORTER','string':'Make\x20shorter'});case'AI_QUICK_ACTIONS_MAKE_LONGER':return t({'id':'AI_QUICK_ACTIONS_MAKE_LONGER','string':'Make\x20longer'});case'AI_QUICK_ACTIONS_MORE_CASUAL':return t({'id':'AI_QUICK_ACTIONS_MORE_CASUAL','string':'More\x20casual'});case'AI_QUICK_ACTIONS_MORE_DIRECT':return t({'id':'AI_QUICK_ACTIONS_MORE_DIRECT','string':'More\x20direct'});case'AI_QUICK_ACTIONS_MORE_FRIENDLY':return t({'id':'AI_QUICK_ACTIONS_MORE_FRIENDLY','string':'More\x20friendly'});case'AI_QUICK_ACTIONS_MORE_CONFIDENT':return t({'id':'AI_QUICK_ACTIONS_MORE_CONFIDENT','string':'More\x20confident'});case'AI_QUICK_ACTIONS_MORE_PROFESSIONAL':return t({'id':'AI_QUICK_ACTIONS_MORE_PROFESSIONAL','string':'More\x20professional'});case'AI_QUICK_ACTIONS_ADJUST_BASED_ON_DOCUMENT':return t({'id':'AI_QUICK_ACTIONS_ADJUST_BASED_ON_DOCUMENT','string':'Adjust\x20based\x20on\x20the\x20rest\x20of\x20the\x20document'});case'AI_QUICK_ACTIONS_TRANSLATE_ENGLISH':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','string':'English'});case'AI_QUICK_ACTIONS_TRANSLATE_CHINESE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_CHINESE','string':'Chinese\x20(Simplified)'});case'AI_QUICK_ACTIONS_TRANSLATE_FRENCH':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_FRENCH','string':'French'});case'AI_QUICK_ACTIONS_TRANSLATE_JAPANESE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','string':'Japanese'});case'AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','string':'Portuguese'});case'AI_QUICK_ACTIONS_TRANSLATE_KOREAN':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_KOREAN','string':'Korean'});case'AI_QUICK_ACTIONS_TRANSLATE_ITALIAN':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','string':'Italian'});case'AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','string':'Russian'});case'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND':return t({'id':'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','string':'%0\x20plugin\x20is\x20required\x20but\x20not\x20found.'},_0x5baf86);case'AI_QUICK_ACTIONS_OTHER':return t({'id':'AI_QUICK_ACTIONS_OTHER','string':'Other'});default:return _0x522f19;}}
@@ -0,0 +1,30 @@
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/aireviewmode
7
+ * @publicApi
8
+ */
9
+ import { ContextPlugin } from 'ckeditor5/src/core.js';
10
+ import { AIReviewModeController } from './aireviewmodecontroller.js';
11
+ import { AIReviewModeUI } from './aireviewmodeui.js';
12
+ import { AIReviewModeEditing } from './aireviewmodeediting.js';
13
+ export declare class AIReviewMode extends ContextPlugin {
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ static get requires(): readonly [typeof AIReviewModeController, typeof AIReviewModeUI, typeof AIReviewModeEditing];
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get pluginName(): "AIReviewMode";
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get isOfficialPlugin(): true;
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ static get isPremiumPlugin(): true;
30
+ }