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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (623) hide show
  1. package/LICENSE.md +18 -5
  2. package/README.md +10 -9
  3. package/build/ai.js +2 -2
  4. package/build/translations/af.js +1 -1
  5. package/build/translations/ar.js +1 -1
  6. package/build/translations/ast.js +1 -1
  7. package/build/translations/az.js +1 -1
  8. package/build/translations/be.js +1 -1
  9. package/build/translations/bg.js +1 -1
  10. package/build/translations/bn.js +1 -1
  11. package/build/translations/bs.js +1 -1
  12. package/build/translations/ca.js +1 -1
  13. package/build/translations/cs.js +1 -1
  14. package/build/translations/da.js +1 -1
  15. package/build/translations/de-ch.js +1 -1
  16. package/build/translations/de.js +1 -1
  17. package/build/translations/el.js +1 -1
  18. package/build/translations/en-au.js +1 -1
  19. package/build/translations/en-gb.js +1 -1
  20. package/build/translations/eo.js +1 -1
  21. package/build/translations/es-co.js +1 -1
  22. package/build/translations/es.js +1 -1
  23. package/build/translations/et.js +1 -1
  24. package/build/translations/eu.js +1 -1
  25. package/build/translations/fa.js +1 -1
  26. package/build/translations/fi.js +1 -1
  27. package/build/translations/fr.js +1 -1
  28. package/build/translations/gl.js +1 -1
  29. package/build/translations/gu.js +1 -1
  30. package/build/translations/he.js +1 -1
  31. package/build/translations/hi.js +1 -1
  32. package/build/translations/hr.js +1 -1
  33. package/build/translations/hu.js +1 -1
  34. package/build/translations/hy.js +1 -1
  35. package/build/translations/id.js +1 -1
  36. package/build/translations/it.js +1 -1
  37. package/build/translations/ja.js +1 -1
  38. package/build/translations/jv.js +1 -1
  39. package/build/translations/kk.js +1 -1
  40. package/build/translations/km.js +1 -1
  41. package/build/translations/kn.js +1 -1
  42. package/build/translations/ko.js +1 -1
  43. package/build/translations/ku.js +1 -1
  44. package/build/translations/lt.js +1 -1
  45. package/build/translations/lv.js +1 -1
  46. package/build/translations/ms.js +1 -1
  47. package/build/translations/nb.js +1 -1
  48. package/build/translations/ne.js +1 -1
  49. package/build/translations/nl.js +1 -1
  50. package/build/translations/no.js +1 -1
  51. package/build/translations/oc.js +1 -1
  52. package/build/translations/pl.js +1 -1
  53. package/build/translations/pt-br.js +1 -1
  54. package/build/translations/pt.js +1 -1
  55. package/build/translations/ro.js +1 -1
  56. package/build/translations/ru.js +1 -1
  57. package/build/translations/si.js +1 -1
  58. package/build/translations/sk.js +1 -1
  59. package/build/translations/sl.js +1 -1
  60. package/build/translations/sq.js +1 -1
  61. package/build/translations/sr-latn.js +1 -1
  62. package/build/translations/sr.js +1 -1
  63. package/build/translations/sv.js +1 -1
  64. package/build/translations/th.js +1 -1
  65. package/build/translations/ti.js +1 -1
  66. package/build/translations/tk.js +1 -1
  67. package/build/translations/tr.js +1 -1
  68. package/build/translations/tt.js +1 -1
  69. package/build/translations/ug.js +1 -1
  70. package/build/translations/uk.js +1 -1
  71. package/build/translations/ur.js +1 -1
  72. package/build/translations/uz.js +1 -1
  73. package/build/translations/vi.js +1 -1
  74. package/build/translations/zh-cn.js +1 -1
  75. package/build/translations/zh.js +1 -1
  76. package/ckeditor5-metadata.json +24 -3
  77. package/dist/index-content.css +0 -1
  78. package/dist/index-editor.css +2742 -0
  79. package/dist/index.css +3141 -0
  80. package/dist/index.js +4 -2
  81. package/dist/translations/af.js +1 -1
  82. package/dist/translations/af.umd.js +1 -1
  83. package/dist/translations/ar.js +1 -1
  84. package/dist/translations/ar.umd.js +1 -1
  85. package/dist/translations/ast.js +1 -1
  86. package/dist/translations/ast.umd.js +1 -1
  87. package/dist/translations/az.js +1 -1
  88. package/dist/translations/az.umd.js +1 -1
  89. package/dist/translations/be.js +1 -1
  90. package/dist/translations/be.umd.js +1 -1
  91. package/dist/translations/bg.js +1 -1
  92. package/dist/translations/bg.umd.js +1 -1
  93. package/dist/translations/bn.js +1 -1
  94. package/dist/translations/bn.umd.js +1 -1
  95. package/dist/translations/bs.js +1 -1
  96. package/dist/translations/bs.umd.js +1 -1
  97. package/dist/translations/ca.js +1 -1
  98. package/dist/translations/ca.umd.js +1 -1
  99. package/dist/translations/cs.js +1 -1
  100. package/dist/translations/cs.umd.js +1 -1
  101. package/dist/translations/da.js +1 -1
  102. package/dist/translations/da.umd.js +1 -1
  103. package/dist/translations/de-ch.js +1 -1
  104. package/dist/translations/de-ch.umd.js +1 -1
  105. package/dist/translations/de.js +1 -1
  106. package/dist/translations/de.umd.js +1 -1
  107. package/dist/translations/el.js +1 -1
  108. package/dist/translations/el.umd.js +1 -1
  109. package/dist/translations/en-au.js +1 -1
  110. package/dist/translations/en-au.umd.js +1 -1
  111. package/dist/translations/en-gb.js +1 -1
  112. package/dist/translations/en-gb.umd.js +1 -1
  113. package/dist/translations/en.js +1 -1
  114. package/dist/translations/en.umd.js +1 -1
  115. package/dist/translations/eo.js +1 -1
  116. package/dist/translations/eo.umd.js +1 -1
  117. package/dist/translations/es-co.js +1 -1
  118. package/dist/translations/es-co.umd.js +1 -1
  119. package/dist/translations/es.js +1 -1
  120. package/dist/translations/es.umd.js +1 -1
  121. package/dist/translations/et.js +1 -1
  122. package/dist/translations/et.umd.js +1 -1
  123. package/dist/translations/eu.js +1 -1
  124. package/dist/translations/eu.umd.js +1 -1
  125. package/dist/translations/fa.js +1 -1
  126. package/dist/translations/fa.umd.js +1 -1
  127. package/dist/translations/fi.js +1 -1
  128. package/dist/translations/fi.umd.js +1 -1
  129. package/dist/translations/fr.js +1 -1
  130. package/dist/translations/fr.umd.js +1 -1
  131. package/dist/translations/gl.js +1 -1
  132. package/dist/translations/gl.umd.js +1 -1
  133. package/dist/translations/gu.js +1 -1
  134. package/dist/translations/gu.umd.js +1 -1
  135. package/dist/translations/he.js +1 -1
  136. package/dist/translations/he.umd.js +1 -1
  137. package/dist/translations/hi.js +1 -1
  138. package/dist/translations/hi.umd.js +1 -1
  139. package/dist/translations/hr.js +1 -1
  140. package/dist/translations/hr.umd.js +1 -1
  141. package/dist/translations/hu.js +1 -1
  142. package/dist/translations/hu.umd.js +1 -1
  143. package/dist/translations/hy.js +1 -1
  144. package/dist/translations/hy.umd.js +1 -1
  145. package/dist/translations/id.js +1 -1
  146. package/dist/translations/id.umd.js +1 -1
  147. package/dist/translations/it.js +1 -1
  148. package/dist/translations/it.umd.js +1 -1
  149. package/dist/translations/ja.js +1 -1
  150. package/dist/translations/ja.umd.js +1 -1
  151. package/dist/translations/jv.js +1 -1
  152. package/dist/translations/jv.umd.js +1 -1
  153. package/dist/translations/kk.js +1 -1
  154. package/dist/translations/kk.umd.js +1 -1
  155. package/dist/translations/km.js +1 -1
  156. package/dist/translations/km.umd.js +1 -1
  157. package/dist/translations/kn.js +1 -1
  158. package/dist/translations/kn.umd.js +1 -1
  159. package/dist/translations/ko.js +1 -1
  160. package/dist/translations/ko.umd.js +1 -1
  161. package/dist/translations/ku.js +1 -1
  162. package/dist/translations/ku.umd.js +1 -1
  163. package/dist/translations/lt.js +1 -1
  164. package/dist/translations/lt.umd.js +1 -1
  165. package/dist/translations/lv.js +1 -1
  166. package/dist/translations/lv.umd.js +1 -1
  167. package/dist/translations/ms.js +1 -1
  168. package/dist/translations/ms.umd.js +1 -1
  169. package/dist/translations/nb.js +1 -1
  170. package/dist/translations/nb.umd.js +1 -1
  171. package/dist/translations/ne.js +1 -1
  172. package/dist/translations/ne.umd.js +1 -1
  173. package/dist/translations/nl.js +1 -1
  174. package/dist/translations/nl.umd.js +1 -1
  175. package/dist/translations/no.js +1 -1
  176. package/dist/translations/no.umd.js +1 -1
  177. package/dist/translations/oc.js +1 -1
  178. package/dist/translations/oc.umd.js +1 -1
  179. package/dist/translations/pl.js +1 -1
  180. package/dist/translations/pl.umd.js +1 -1
  181. package/dist/translations/pt-br.js +1 -1
  182. package/dist/translations/pt-br.umd.js +1 -1
  183. package/dist/translations/pt.js +1 -1
  184. package/dist/translations/pt.umd.js +1 -1
  185. package/dist/translations/ro.js +1 -1
  186. package/dist/translations/ro.umd.js +1 -1
  187. package/dist/translations/ru.js +1 -1
  188. package/dist/translations/ru.umd.js +1 -1
  189. package/dist/translations/si.js +1 -1
  190. package/dist/translations/si.umd.js +1 -1
  191. package/dist/translations/sk.js +1 -1
  192. package/dist/translations/sk.umd.js +1 -1
  193. package/dist/translations/sl.js +1 -1
  194. package/dist/translations/sl.umd.js +1 -1
  195. package/dist/translations/sq.js +1 -1
  196. package/dist/translations/sq.umd.js +1 -1
  197. package/dist/translations/sr-latn.js +1 -1
  198. package/dist/translations/sr-latn.umd.js +1 -1
  199. package/dist/translations/sr.js +1 -1
  200. package/dist/translations/sr.umd.js +1 -1
  201. package/dist/translations/sv.js +1 -1
  202. package/dist/translations/sv.umd.js +1 -1
  203. package/dist/translations/th.js +1 -1
  204. package/dist/translations/th.umd.js +1 -1
  205. package/dist/translations/ti.js +1 -1
  206. package/dist/translations/ti.umd.js +1 -1
  207. package/dist/translations/tk.js +1 -1
  208. package/dist/translations/tk.umd.js +1 -1
  209. package/dist/translations/tr.js +1 -1
  210. package/dist/translations/tr.umd.js +1 -1
  211. package/dist/translations/tt.js +1 -1
  212. package/dist/translations/tt.umd.js +1 -1
  213. package/dist/translations/ug.js +1 -1
  214. package/dist/translations/ug.umd.js +1 -1
  215. package/dist/translations/uk.js +1 -1
  216. package/dist/translations/uk.umd.js +1 -1
  217. package/dist/translations/ur.js +1 -1
  218. package/dist/translations/ur.umd.js +1 -1
  219. package/dist/translations/uz.js +1 -1
  220. package/dist/translations/uz.umd.js +1 -1
  221. package/dist/translations/vi.js +1 -1
  222. package/dist/translations/vi.umd.js +1 -1
  223. package/dist/translations/zh-cn.js +1 -1
  224. package/dist/translations/zh-cn.umd.js +1 -1
  225. package/dist/translations/zh.js +1 -1
  226. package/dist/translations/zh.umd.js +1 -1
  227. package/lang/contexts.json +163 -1
  228. package/lang/translations/af.po +612 -0
  229. package/lang/translations/ar.po +628 -0
  230. package/lang/translations/ast.po +612 -0
  231. package/lang/translations/az.po +612 -0
  232. package/lang/translations/be.po +616 -0
  233. package/lang/translations/bg.po +612 -0
  234. package/lang/translations/bn.po +612 -0
  235. package/lang/translations/bs.po +616 -0
  236. package/lang/translations/ca.po +612 -0
  237. package/lang/translations/cs.po +616 -0
  238. package/lang/translations/da.po +612 -0
  239. package/lang/translations/de-ch.po +612 -0
  240. package/lang/translations/de.po +612 -0
  241. package/lang/translations/el.po +612 -0
  242. package/lang/translations/en-au.po +612 -0
  243. package/lang/translations/en-gb.po +612 -0
  244. package/lang/translations/en.po +612 -0
  245. package/lang/translations/eo.po +612 -0
  246. package/lang/translations/es-co.po +612 -0
  247. package/lang/translations/es.po +612 -0
  248. package/lang/translations/et.po +612 -0
  249. package/lang/translations/eu.po +612 -0
  250. package/lang/translations/fa.po +608 -0
  251. package/lang/translations/fi.po +612 -0
  252. package/lang/translations/fr.po +612 -0
  253. package/lang/translations/gl.po +612 -0
  254. package/lang/translations/gu.po +612 -0
  255. package/lang/translations/he.po +612 -0
  256. package/lang/translations/hi.po +612 -0
  257. package/lang/translations/hr.po +616 -0
  258. package/lang/translations/hu.po +612 -0
  259. package/lang/translations/hy.po +612 -0
  260. package/lang/translations/id.po +608 -0
  261. package/lang/translations/it.po +612 -0
  262. package/lang/translations/ja.po +608 -0
  263. package/lang/translations/jv.po +612 -0
  264. package/lang/translations/kk.po +612 -0
  265. package/lang/translations/km.po +608 -0
  266. package/lang/translations/kn.po +612 -0
  267. package/lang/translations/ko.po +608 -0
  268. package/lang/translations/ku.po +612 -0
  269. package/lang/translations/lt.po +616 -0
  270. package/lang/translations/lv.po +616 -0
  271. package/lang/translations/ms.po +608 -0
  272. package/lang/translations/nb.po +612 -0
  273. package/lang/translations/ne.po +612 -0
  274. package/lang/translations/nl.po +612 -0
  275. package/lang/translations/no.po +612 -0
  276. package/lang/translations/oc.po +612 -0
  277. package/lang/translations/pl.po +616 -0
  278. package/lang/translations/pt-br.po +612 -0
  279. package/lang/translations/pt.po +612 -0
  280. package/lang/translations/ro.po +616 -0
  281. package/lang/translations/ru.po +616 -0
  282. package/lang/translations/si.po +612 -0
  283. package/lang/translations/sk.po +616 -0
  284. package/lang/translations/sl.po +620 -0
  285. package/lang/translations/sq.po +612 -0
  286. package/lang/translations/sr-latn.po +616 -0
  287. package/lang/translations/sr.po +616 -0
  288. package/lang/translations/sv.po +612 -0
  289. package/lang/translations/th.po +608 -0
  290. package/lang/translations/ti.po +612 -0
  291. package/lang/translations/tk.po +612 -0
  292. package/lang/translations/tr.po +612 -0
  293. package/lang/translations/tt.po +608 -0
  294. package/lang/translations/ug.po +608 -0
  295. package/lang/translations/uk.po +616 -0
  296. package/lang/translations/ur.po +612 -0
  297. package/lang/translations/uz.po +612 -0
  298. package/lang/translations/vi.po +608 -0
  299. package/lang/translations/zh-cn.po +608 -0
  300. package/lang/translations/zh.po +608 -0
  301. package/package.json +23 -11
  302. package/src/aiactions/aiactions.d.ts +48 -0
  303. package/src/aiactions/aiactions.js +23 -0
  304. package/src/aiactions/model/aiactionsinteraction.d.ts +48 -0
  305. package/src/aiactions/model/aiactionsinteraction.js +23 -0
  306. package/src/aiactions/model/aiactionsreply.d.ts +15 -0
  307. package/src/aiactions/model/aiactionsreply.js +23 -0
  308. package/src/{adapters → aiassistant/adapters}/aiadapter.d.ts +1 -1
  309. package/src/aiassistant/adapters/aiadapter.js +23 -0
  310. package/src/{adapters → aiassistant/adapters}/aitextadapter.d.ts +9 -9
  311. package/src/aiassistant/adapters/aitextadapter.js +23 -0
  312. package/src/{adapters → aiassistant/adapters}/awstextadapter.d.ts +36 -23
  313. package/src/aiassistant/adapters/awstextadapter.js +23 -0
  314. package/src/{adapters → aiassistant/adapters}/openaitextadapter.d.ts +38 -25
  315. package/src/aiassistant/adapters/openaitextadapter.js +23 -0
  316. package/src/{aiassistant.d.ts → aiassistant/aiassistant.d.ts} +54 -13
  317. package/src/aiassistant/aiassistant.js +23 -0
  318. package/src/aiassistant/aiassistantediting.js +23 -0
  319. package/src/{aiassistantui.d.ts → aiassistant/aiassistantui.d.ts} +4 -4
  320. package/src/aiassistant/aiassistantui.js +23 -0
  321. package/src/{legacyerrors.js → aiassistant/legacyerrors.js} +1 -1
  322. package/src/{ui → aiassistant/ui}/aiassistantcontroller.d.ts +5 -4
  323. package/src/aiassistant/ui/aiassistantcontroller.js +24 -0
  324. package/src/{ui → aiassistant/ui}/form/aiformcontentarea.d.ts +1 -1
  325. package/src/aiassistant/ui/form/aiformcontentarea.js +23 -0
  326. package/src/aiassistant/ui/form/aiformerrorview.js +23 -0
  327. package/src/{ui → aiassistant/ui}/form/aiformpromptview.d.ts +1 -1
  328. package/src/aiassistant/ui/form/aiformpromptview.js +23 -0
  329. package/src/{ui → aiassistant/ui}/form/aiformtoolbarview.d.ts +1 -1
  330. package/src/aiassistant/ui/form/aiformtoolbarview.js +23 -0
  331. package/src/{ui → aiassistant/ui}/form/aiformview.d.ts +1 -1
  332. package/src/aiassistant/ui/form/aiformview.js +23 -0
  333. package/src/{ui → aiassistant/ui}/form/aihistorylistitemview.d.ts +1 -1
  334. package/src/aiassistant/ui/form/aihistorylistitemview.js +23 -0
  335. package/src/{ui → aiassistant/ui}/form/aihistorylistview.d.ts +1 -1
  336. package/src/aiassistant/ui/form/aihistorylistview.js +23 -0
  337. package/src/{ui → aiassistant/ui}/form/prompthistory.d.ts +3 -0
  338. package/src/aiassistant/ui/form/prompthistory.js +23 -0
  339. package/src/{ui → aiassistant/ui}/showaiassistantcommand.d.ts +2 -2
  340. package/src/aiassistant/ui/showaiassistantcommand.js +23 -0
  341. package/src/{utils → aiassistant/utils}/common-translations.d.ts +1 -1
  342. package/src/{utils → aiassistant/utils}/common-translations.js +1 -1
  343. package/src/{utils → aiassistant/utils}/normalizecommandsconfig.d.ts +2 -2
  344. package/src/{utils → aiassistant/utils}/normalizecommandsconfig.js +1 -1
  345. package/src/aiballoon/aiballoon.d.ts +72 -0
  346. package/src/aiballoon/aiballoon.js +23 -0
  347. package/src/aiballoon/ui/aiballoondisclaimerview.d.ts +17 -0
  348. package/src/aiballoon/ui/aiballoondisclaimerview.js +23 -0
  349. package/src/aiballoon/ui/aiballoontoolbarview.d.ts +31 -0
  350. package/src/aiballoon/ui/aiballoontoolbarview.js +23 -0
  351. package/src/aiballoon/ui/aiballoonview.d.ts +109 -0
  352. package/src/aiballoon/ui/aiballoonview.js +23 -0
  353. package/src/aichat/aichat.d.ts +79 -0
  354. package/src/aichat/aichat.js +23 -0
  355. package/src/aichat/aichatcontroller.d.ts +68 -0
  356. package/src/aichat/aichatcontroller.js +23 -0
  357. package/src/aichat/aichatui.d.ts +297 -0
  358. package/src/aichat/aichatui.js +23 -0
  359. package/src/aichat/model/aichatcontext.d.ts +360 -0
  360. package/src/aichat/model/aichatcontext.js +23 -0
  361. package/src/aichat/model/aichatconversation.d.ts +270 -0
  362. package/src/aichat/model/aichatconversation.js +23 -0
  363. package/src/aichat/model/aichatinteraction.d.ts +46 -0
  364. package/src/aichat/model/aichatinteraction.js +23 -0
  365. package/src/aichat/model/aichatmodels.d.ts +77 -0
  366. package/src/aichat/model/aichatmodels.js +23 -0
  367. package/src/aichat/ui/aichatcontrolsview.d.ts +98 -0
  368. package/src/aichat/ui/aichatcontrolsview.js +23 -0
  369. package/src/aichat/ui/aichatfeedview.d.ts +114 -0
  370. package/src/aichat/ui/aichatfeedview.js +23 -0
  371. package/src/aichat/ui/aichatheaderview.d.ts +29 -0
  372. package/src/aichat/ui/aichatheaderview.js +23 -0
  373. package/src/aichat/ui/aichatview.d.ts +37 -0
  374. package/src/aichat/ui/aichatview.js +23 -0
  375. package/src/aichat/ui/controls/aichatchipsoverflowmanager.d.ts +71 -0
  376. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +23 -0
  377. package/src/aichat/ui/controls/aichatcontextitembuttonview.d.ts +46 -0
  378. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +23 -0
  379. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.d.ts +89 -0
  380. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +23 -0
  381. package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +105 -0
  382. package/src/aichat/ui/controls/aichatcontextpanelview.js +23 -0
  383. package/src/aichat/ui/controls/aichatcontrolsloaderview.d.ts +12 -0
  384. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +23 -0
  385. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.d.ts +89 -0
  386. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +23 -0
  387. package/src/aichat/ui/controls/aichatpromptinputview.d.ts +44 -0
  388. package/src/aichat/ui/controls/aichatpromptinputview.js +23 -0
  389. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.d.ts +17 -0
  390. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +23 -0
  391. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.d.ts +61 -0
  392. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +23 -0
  393. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +100 -0
  394. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +23 -0
  395. package/src/aichat/ui/controls/resources/aichatresourceslistview.d.ts +49 -0
  396. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +23 -0
  397. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.d.ts +61 -0
  398. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +23 -0
  399. package/src/aichat/ui/controls/resources/aichatresourcesview.d.ts +54 -0
  400. package/src/aichat/ui/controls/resources/aichatresourcesview.js +23 -0
  401. package/src/aichat/ui/feed/aichatfeedcontextchipsview.d.ts +27 -0
  402. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +23 -0
  403. package/src/aichat/ui/feed/aichatfeederroritemview.d.ts +39 -0
  404. package/src/aichat/ui/feed/aichatfeederroritemview.js +23 -0
  405. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +29 -0
  406. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +23 -0
  407. package/src/aichat/ui/feed/aichatfeeditemview.d.ts +46 -0
  408. package/src/aichat/ui/feed/aichatfeeditemview.js +23 -0
  409. package/src/aichat/ui/feed/aichatfeedreplyitemview.d.ts +46 -0
  410. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +23 -0
  411. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +74 -0
  412. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +23 -0
  413. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +74 -0
  414. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +23 -0
  415. package/src/aichat/ui/feed/aichatfeedusermessageitem.d.ts +40 -0
  416. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +23 -0
  417. package/src/aichat/utils/eventnames.d.ts +5 -0
  418. package/src/aichat/utils/eventnames.js +23 -0
  419. package/src/aichat/utils/promisequeue.d.ts +32 -0
  420. package/src/aichat/utils/promisequeue.js +23 -0
  421. package/src/aichat/utils/scrollmanager.d.ts +23 -0
  422. package/src/aichat/utils/scrollmanager.js +23 -0
  423. package/src/aichathistory/aichathistory.d.ts +30 -0
  424. package/src/aichathistory/aichathistory.js +23 -0
  425. package/src/aichathistory/aichathistorycontroller.d.ts +40 -0
  426. package/src/aichathistory/aichathistorycontroller.js +23 -0
  427. package/src/aichathistory/aichathistoryui.d.ts +112 -0
  428. package/src/aichathistory/aichathistoryui.js +23 -0
  429. package/src/aichathistory/model/aichathistoryconversations.d.ts +114 -0
  430. package/src/aichathistory/model/aichathistoryconversations.js +23 -0
  431. package/src/aichathistory/model/aichathistoryitem.d.ts +59 -0
  432. package/src/aichathistory/model/aichathistoryitem.js +23 -0
  433. package/src/aichathistory/ui/aichathistorylistitemview.d.ts +42 -0
  434. package/src/aichathistory/ui/aichathistorylistitemview.js +23 -0
  435. package/src/aichathistory/ui/aichathistorylistview.d.ts +31 -0
  436. package/src/aichathistory/ui/aichathistorylistview.js +23 -0
  437. package/src/aichathistory/ui/aichathistorysectionlistview.d.ts +17 -0
  438. package/src/aichathistory/ui/aichathistorysectionlistview.js +23 -0
  439. package/src/aichathistory/ui/aichathistoryview.d.ts +41 -0
  440. package/src/aichathistory/ui/aichathistoryview.js +23 -0
  441. package/src/aiconfig.d.ts +92 -30
  442. package/src/aicore/aiconnector.d.ts +302 -0
  443. package/src/aicore/aiconnector.js +23 -0
  444. package/src/aicore/aiediting.d.ts +61 -0
  445. package/src/aicore/aiediting.js +23 -0
  446. package/src/aicore/model/aicapabilities.d.ts +55 -0
  447. package/src/aicore/model/aicapabilities.js +23 -0
  448. package/src/aicore/model/aicontext.d.ts +53 -0
  449. package/src/aicore/model/aicontext.js +23 -0
  450. package/src/aicore/model/aiinteraction.d.ts +135 -0
  451. package/src/aicore/model/aiinteraction.js +23 -0
  452. package/src/aicore/model/aireply.d.ts +178 -0
  453. package/src/aicore/model/aireply.js +23 -0
  454. package/src/aicore/pipeline/airesponseapplier.d.ts +291 -0
  455. package/src/aicore/pipeline/airesponseapplier.js +24 -0
  456. package/src/aicore/pipeline/airesponseparser.d.ts +27 -0
  457. package/src/aicore/pipeline/airesponseparser.js +24 -0
  458. package/src/aicore/ui/aidisclaimerview.d.ts +17 -0
  459. package/src/aicore/ui/aidisclaimerview.js +23 -0
  460. package/src/aicore/ui/aiskeleton.d.ts +37 -0
  461. package/src/aicore/ui/aiskeleton.js +23 -0
  462. package/src/aicore/ui/aispinner.d.ts +14 -0
  463. package/src/aicore/ui/aispinner.js +23 -0
  464. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.d.ts +62 -0
  465. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +23 -0
  466. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +38 -0
  467. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +23 -0
  468. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +80 -0
  469. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +23 -0
  470. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +39 -0
  471. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +23 -0
  472. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.d.ts +39 -0
  473. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +23 -0
  474. package/src/aicore/utils/common-translations.d.ts +9 -0
  475. package/src/aicore/utils/common-translations.js +23 -0
  476. package/src/aicore/utils/createresizebutton.d.ts +12 -0
  477. package/src/aicore/utils/createresizebutton.js +23 -0
  478. package/src/aicore/utils/documentposition.d.ts +41 -0
  479. package/src/aicore/utils/documentposition.js +23 -0
  480. package/src/aicore/utils/documentrange.d.ts +46 -0
  481. package/src/aicore/utils/documentrange.js +23 -0
  482. package/src/aicore/utils/eventnames.d.ts +9 -0
  483. package/src/aicore/utils/eventnames.js +23 -0
  484. package/src/aicore/utils/geteditorfromcontext.d.ts +6 -0
  485. package/src/aicore/utils/geteditorfromcontext.js +23 -0
  486. package/src/aicore/utils/getoperationsfromreply.d.ts +21 -0
  487. package/src/aicore/utils/getoperationsfromreply.js +23 -0
  488. package/src/aicore/utils/getsuggestionpartsfromreply.d.ts +19 -0
  489. package/src/aicore/utils/getsuggestionpartsfromreply.js +23 -0
  490. package/src/aicore/utils/htmlparser.d.ts +35 -0
  491. package/src/aicore/utils/htmlparser.js +23 -0
  492. package/src/aicore/utils/htmlstreamer.d.ts +123 -0
  493. package/src/aicore/utils/htmlstreamer.js +23 -0
  494. package/src/aiquickactions/aiquickactions.d.ts +41 -0
  495. package/src/aiquickactions/aiquickactions.js +23 -0
  496. package/src/aiquickactions/aiquickactionscommand.d.ts +12 -0
  497. package/src/aiquickactions/aiquickactionscommand.js +23 -0
  498. package/src/aiquickactions/aiquickactionsediting.d.ts +23 -0
  499. package/src/aiquickactions/aiquickactionsediting.js +23 -0
  500. package/src/aiquickactions/aiquickactionsui.d.ts +150 -0
  501. package/src/aiquickactions/aiquickactionsui.js +23 -0
  502. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +30 -0
  503. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +23 -0
  504. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +45 -0
  505. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +23 -0
  506. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +45 -0
  507. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +23 -0
  508. package/src/aiquickactions/utils/common-translations.d.ts +9 -0
  509. package/src/aiquickactions/utils/common-translations.js +23 -0
  510. package/src/aireviewmode/aireviewmode.d.ts +30 -0
  511. package/src/aireviewmode/aireviewmode.js +23 -0
  512. package/src/aireviewmode/aireviewmodecontroller.d.ts +32 -0
  513. package/src/aireviewmode/aireviewmodecontroller.js +23 -0
  514. package/src/aireviewmode/aireviewmodeediting.d.ts +129 -0
  515. package/src/aireviewmode/aireviewmodeediting.js +23 -0
  516. package/src/aireviewmode/aireviewmodeui.d.ts +73 -0
  517. package/src/aireviewmode/aireviewmodeui.js +23 -0
  518. package/src/aireviewmode/model/aireviewcheck.d.ts +60 -0
  519. package/src/aireviewmode/model/aireviewcheck.js +23 -0
  520. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +17 -0
  521. package/src/aireviewmode/model/aireviewcheckcustom.js +23 -0
  522. package/src/aireviewmode/model/aireviewchecklist.d.ts +31 -0
  523. package/src/aireviewmode/model/aireviewchecklist.js +23 -0
  524. package/src/aireviewmode/model/aireviewcheckresult.d.ts +39 -0
  525. package/src/aireviewmode/model/aireviewcheckresult.js +23 -0
  526. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +42 -0
  527. package/src/aireviewmode/model/aireviewcheckresultchange.js +23 -0
  528. package/src/aireviewmode/model/aireviewcheckrun.d.ts +102 -0
  529. package/src/aireviewmode/model/aireviewcheckrun.js +23 -0
  530. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +18 -0
  531. package/src/aireviewmode/model/aireviewcustomcheckrun.js +23 -0
  532. package/src/aireviewmode/model/aireviewmodels.d.ts +26 -0
  533. package/src/aireviewmode/model/aireviewmodels.js +23 -0
  534. package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +14 -0
  535. package/src/aireviewmode/model/aireviewsystemcheckrun.js +23 -0
  536. package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +29 -0
  537. package/src/aireviewmode/ui/aireviemodepromptinputview.js +23 -0
  538. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +46 -0
  539. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +23 -0
  540. package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +23 -0
  541. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +23 -0
  542. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.d.ts +23 -0
  543. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +23 -0
  544. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +80 -0
  545. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +23 -0
  546. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +45 -0
  547. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +23 -0
  548. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +18 -0
  549. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +23 -0
  550. package/src/aireviewmode/ui/aireviewmodeview.d.ts +42 -0
  551. package/src/aireviewmode/ui/aireviewmodeview.js +23 -0
  552. package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +16 -0
  553. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +23 -0
  554. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +20 -0
  555. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +23 -0
  556. package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +16 -0
  557. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +23 -0
  558. package/src/aireviewmode/utils/common-translations.d.ts +9 -0
  559. package/src/aireviewmode/utils/common-translations.js +23 -0
  560. package/src/aitabs/aitabs.d.ts +92 -0
  561. package/src/aitabs/aitabs.js +23 -0
  562. package/src/aitabs/aitabsmainview.d.ts +45 -0
  563. package/src/aitabs/aitabsmainview.js +23 -0
  564. package/src/aitabs/tabs/aitabsview.d.ts +147 -0
  565. package/src/aitabs/tabs/aitabsview.js +23 -0
  566. package/src/aitabs/tabs/tabbuttonview.d.ts +47 -0
  567. package/src/aitabs/tabs/tabbuttonview.js +23 -0
  568. package/src/aitabs/tabs/tabpanelview.d.ts +44 -0
  569. package/src/aitabs/tabs/tabpanelview.js +23 -0
  570. package/src/augmentation.d.ts +22 -6
  571. package/src/index.d.ts +40 -9
  572. package/src/index.js +1 -1
  573. package/theme/aiballoon/aiballoon.css +207 -0
  574. package/theme/aichat/aichat-controls/aichat-context-chip.css +139 -0
  575. package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +194 -0
  576. package/theme/aichat/aichat-controls/aichat-context-controls.css +46 -0
  577. package/theme/aichat/aichat-controls/aichat-controls-button.css +74 -0
  578. package/theme/aichat/aichat-controls/aichat-controls-loader.css +93 -0
  579. package/theme/aichat/aichat-controls/prompt-capabilities.css +46 -0
  580. package/theme/aichat/aichat-controls/prompt-input.css +55 -0
  581. package/theme/aichat/aichat-controls.css +154 -0
  582. package/theme/aichat/aichat.css +68 -0
  583. package/theme/aichat/aichatfeed.css +376 -0
  584. package/theme/aichat/aichathistory.css +235 -0
  585. package/theme/aichat/aiminitoolbar.css +94 -0
  586. package/theme/aichat/aisuggestioncontainer.css +203 -0
  587. package/theme/aiquickactions/aiquickactions.css +43 -0
  588. package/theme/aireviewmode/aireviewmode-check-list.css +255 -0
  589. package/theme/aireviewmode/aireviewmode-check-run.css +202 -0
  590. package/theme/aireviewmode/aireviewmode-review-completed.css +52 -0
  591. package/theme/aireviewmode/aireviewmode.css +73 -0
  592. package/theme/aitabs/aitabsview.css +64 -0
  593. package/theme/aitabs/tabs/tabbuttonview.css +74 -0
  594. package/theme/aitabs/tabs/tabsview.css +78 -0
  595. package/theme/common/aibutton.css +145 -0
  596. package/theme/common/aichaterror.css +61 -0
  597. package/theme/common/aidisclaimer.css +29 -0
  598. package/theme/common/aiheader.css +88 -0
  599. package/theme/common/aiskeleton.css +54 -0
  600. package/theme/common/aispinner.css +58 -0
  601. package/src/adapters/aiadapter.js +0 -23
  602. package/src/adapters/aitextadapter.js +0 -23
  603. package/src/adapters/awstextadapter.js +0 -23
  604. package/src/adapters/openaitextadapter.js +0 -23
  605. package/src/aiassistant.js +0 -23
  606. package/src/aiassistantediting.js +0 -23
  607. package/src/aiassistantui.js +0 -23
  608. package/src/ui/aiassistantcontroller.js +0 -24
  609. package/src/ui/form/aiformcontentarea.js +0 -23
  610. package/src/ui/form/aiformerrorview.js +0 -23
  611. package/src/ui/form/aiformpromptview.js +0 -23
  612. package/src/ui/form/aiformtoolbarview.js +0 -23
  613. package/src/ui/form/aiformview.js +0 -23
  614. package/src/ui/form/aihistorylistitemview.js +0 -23
  615. package/src/ui/form/aihistorylistview.js +0 -23
  616. package/src/ui/form/prompthistory.js +0 -23
  617. package/src/ui/showaiassistantcommand.js +0 -23
  618. /package/src/{aiassistantediting.d.ts → aiassistant/aiassistantediting.d.ts} +0 -0
  619. /package/src/{legacyerrors.d.ts → aiassistant/legacyerrors.d.ts} +0 -0
  620. /package/src/{ui → aiassistant/ui}/form/aiformerrorview.d.ts +0 -0
  621. /package/theme/{ai-dropdown.css → aiassistant/ai-dropdown.css} +0 -0
  622. /package/theme/{ai-form.css → aiassistant/ai-form.css} +0 -0
  623. /package/theme/{ai.css → aiassistant/ai.css} +0 -0
@@ -0,0 +1,92 @@
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/aitabs/aitabs
7
+ * @publicApi
8
+ */
9
+ import { type Context, ContextPlugin, Editor } from 'ckeditor5/src/core.js';
10
+ import { AITabsMainView } from './aitabsmainview.js';
11
+ import { type AIContainerSide, type AIContainerType } from '../aiconfig.js';
12
+ /**
13
+ * The AI Tabs plugin. It delivers the tabs view that hosts AI-powered features in the editor.
14
+ *
15
+ * Note: The feature is configured via the {@link module:ai/aiconfig~AIConfig#container} property.
16
+ */
17
+ export declare class AITabs extends ContextPlugin {
18
+ /**
19
+ * The view that allows for hosting AI-powered features in the editor.
20
+ */
21
+ view: AITabsMainView;
22
+ /**
23
+ * The container of the AI Tabs view.
24
+ */
25
+ container: HTMLElement | null;
26
+ /**
27
+ * Indicates whether the resize button should be displayed.
28
+ */
29
+ showResizeButton: boolean;
30
+ /**
31
+ * The type of the AI Tabs view as configured in {@link module:ai/aiconfig~AIConfig#container}
32
+ *
33
+ * See {@link #switchType} to learn how to switch between the UI types.
34
+ */
35
+ type: AIContainerType;
36
+ /**
37
+ * The position of the AI Tabs view.
38
+ *
39
+ * @default 'right'
40
+ */
41
+ side: AIContainerSide;
42
+ /**
43
+ * @inheritDoc
44
+ */
45
+ static get pluginName(): "AITabs";
46
+ /**
47
+ * @inheritDoc
48
+ */
49
+ static get isOfficialPlugin(): true;
50
+ /**
51
+ * @inheritDoc
52
+ */
53
+ static get isPremiumPlugin(): true;
54
+ /**
55
+ * @inheritDoc
56
+ */
57
+ constructor(context: Context | Editor);
58
+ /**
59
+ * Switches between the UI type of the tabs.
60
+ *
61
+ * See {@link module:ai/aiconfig~AIConfig#container} to learn more about possible types.
62
+ */
63
+ switchType(type: AIContainerType): void;
64
+ /**
65
+ * Switches between the side of the AI Tabs view.
66
+ *
67
+ * See {@link module:ai/aiconfig~AIConfig#container} to learn more about possible sides.
68
+ */
69
+ switchSide(side: AIContainerSide): void;
70
+ /**
71
+ * Toggles the resizing of the tabs view.
72
+ */
73
+ resize(): void;
74
+ /**
75
+ * @inheritDoc
76
+ */
77
+ destroy(): void;
78
+ }
79
+ /**
80
+ * An event fired when the user wants to toggle the chat resizing.
81
+ */
82
+ export type AIResizedTabsEvent = {
83
+ name: 'resizedTabs';
84
+ args: [isMaximized: boolean];
85
+ };
86
+ /**
87
+ * An event fired when the user wants to resize the chat.
88
+ */
89
+ export type AIResizeTabsEvent = {
90
+ name: 'resizeTabs';
91
+ args: [];
92
+ };
@@ -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 _0x15bfb4=_0x543a;function _0xcbfc(){const _0x2f99af=['36ObjUrU','isPremiumPlugin','overlay','get','element','sidebar','bind','config','destroy','ai-tabs-configuration-not-found','focusTracker','switchSide','654rBeZFl','showResizeButton','includes','3630072QHZLBf','339441MdFbyS','510462atOnRb','ai-tabs-unsupported-ui-side','context','ai-tabs-unsupported-ui-type','1917KlfPCs','set','resize','20797iBmWAY','332945FntGCw','add','render','AITabs','body','42znWiXW','type','view','locale','custom','isMaximized','ai.container','pluginName','isOfficialPlugin','switchType','container','side','remove','resizedTabs','right','appendChild','fire','ai-tabs-sidebar-container-element-not-found','22211400cEzinu'];_0xcbfc=function(){return _0x2f99af;};return _0xcbfc();}(function(_0x24123c,_0x28c370){const _0x3ce02a=_0x543a,_0x26fc49=_0x24123c();while(!![]){try{const _0x3e1a29=parseInt(_0x3ce02a(0xdb))/0x1*(-parseInt(_0x3ce02a(0xd2))/0x2)+-parseInt(_0x3ce02a(0xd6))/0x3*(parseInt(_0x3ce02a(0xc6))/0x4)+-parseInt(_0x3ce02a(0xdf))/0x5*(-parseInt(_0x3ce02a(0xe4))/0x6)+-parseInt(_0x3ce02a(0xde))/0x7+-parseInt(_0x3ce02a(0xd5))/0x8+parseInt(_0x3ce02a(0xd7))/0x9+parseInt(_0x3ce02a(0xc5))/0xa;if(_0x3e1a29===_0x28c370)break;else _0x26fc49['push'](_0x26fc49['shift']());}catch(_0x492871){_0x26fc49['push'](_0x26fc49['shift']());}}}(_0xcbfc,0x9cc15));import{ContextPlugin as _0x22a847,Editor as _0x47dd26}from'ckeditor5/src/core.js';import{CKEditorError as _0x2822d}from'ckeditor5/src/utils.js';function _0x543a(_0x5a8814,_0x3ef430){const _0xcbfcbc=_0xcbfc();return _0x543a=function(_0x543a44,_0x1dcbbf){_0x543a44=_0x543a44-0xc0;let _0x5078c0=_0xcbfcbc[_0x543a44];return _0x5078c0;},_0x543a(_0x5a8814,_0x3ef430);}import{AITabsMainView as _0xa32927,AI_TABS_VIEW_SIDES as _0x130743,AI_TABS_VIEW_TYPES as _0x4be6a7}from'./aitabsmainview.js';export class AITabs extends _0x22a847{[_0x15bfb4(0xe6)];[_0x15bfb4(0xee)]=null;[_0x15bfb4(0xd3)]=!0x0;static get[_0x15bfb4(0xeb)](){const _0x37d5fa=_0x15bfb4;return _0x37d5fa(0xe2);}static get[_0x15bfb4(0xec)](){return!0x0;}static get[_0x15bfb4(0xc7)](){return!0x0;}constructor(_0x4ef73a){const _0xee567f=_0x15bfb4;super(_0x4ef73a);const _0x2ddc8f=this[_0xee567f(0xd9)][_0xee567f(0xcd)][_0xee567f(0xc9)](_0xee567f(0xea));if(this[_0xee567f(0xdc)](_0xee567f(0xef),_0xee567f(0xc1)),!_0x2ddc8f)throw new _0x2822d(_0xee567f(0xcf));if(void 0x0!==_0x2ddc8f[_0xee567f(0xd3)]&&(this[_0xee567f(0xd3)]=_0x2ddc8f[_0xee567f(0xd3)]),_0xee567f(0xcb)!==_0x2ddc8f[_0xee567f(0xe5)]&&_0xee567f(0xc8)!==_0x2ddc8f[_0xee567f(0xe5)]||_0x2ddc8f[_0xee567f(0xef)]&&(this[_0xee567f(0xef)]=_0x2ddc8f[_0xee567f(0xef)]),_0xee567f(0xcb)===_0x2ddc8f[_0xee567f(0xe5)]){if(this[_0xee567f(0xee)]=_0x2ddc8f[_0xee567f(0xca)],this[_0xee567f(0xdc)](_0xee567f(0xe5),_0xee567f(0xcb)),!this[_0xee567f(0xee)])throw new _0x2822d(_0xee567f(0xc4));}else _0xee567f(0xc8)===_0x2ddc8f[_0xee567f(0xe5)]?(this[_0xee567f(0xee)]=document[_0xee567f(0xe3)],this[_0xee567f(0xdc)](_0xee567f(0xe5),_0xee567f(0xc8))):(this[_0xee567f(0xee)]=null,this[_0xee567f(0xdc)](_0xee567f(0xe5),_0xee567f(0xe8)));this[_0xee567f(0xe6)]=new _0xa32927(this[_0xee567f(0xd9)][_0xee567f(0xe7)],{'side':this[_0xee567f(0xef)],'type':this[_0xee567f(0xe5)]}),this[_0xee567f(0xe6)][_0xee567f(0xe1)](),this[_0xee567f(0xe6)][_0xee567f(0xcc)](_0xee567f(0xef))['to'](this,_0xee567f(0xef)),this[_0xee567f(0xe6)][_0xee567f(0xcc)](_0xee567f(0xe5))['to'](this,_0xee567f(0xe5)),this[_0xee567f(0xee)]&&this[_0xee567f(0xee)][_0xee567f(0xc2)](this[_0xee567f(0xe6)][_0xee567f(0xca)]),this[_0xee567f(0xd9)]instanceof _0x47dd26&&this[_0xee567f(0xd9)]['ui'][_0xee567f(0xd0)][_0xee567f(0xe0)](this[_0xee567f(0xe6)][_0xee567f(0xca)]);}[_0x15bfb4(0xed)](_0x1c0dcd){const _0x333bdc=_0x15bfb4;if(_0x1c0dcd&&this[_0x333bdc(0xe5)]!==_0x1c0dcd){if(!_0x4be6a7[_0x333bdc(0xd4)](_0x1c0dcd))throw new _0x2822d(_0x333bdc(0xda));this[_0x333bdc(0xe5)]=_0x1c0dcd;}}[_0x15bfb4(0xd1)](_0x9b8812){const _0x95a16e=_0x15bfb4;if(_0x9b8812&&this[_0x95a16e(0xef)]!==_0x9b8812){if(!_0x130743[_0x95a16e(0xd4)](_0x9b8812))throw new _0x2822d(_0x95a16e(0xd8));this[_0x95a16e(0xef)]=_0x9b8812;}}[_0x15bfb4(0xdd)](){const _0xcd1fd6=_0x15bfb4;this[_0xcd1fd6(0xe6)][_0xcd1fd6(0xe9)]=!this[_0xcd1fd6(0xe6)][_0xcd1fd6(0xe9)],this[_0xcd1fd6(0xc3)](_0xcd1fd6(0xc0),this[_0xcd1fd6(0xe6)][_0xcd1fd6(0xe9)]);}[_0x15bfb4(0xce)](){const _0x40ab87=_0x15bfb4;super[_0x40ab87(0xce)](),this[_0x40ab87(0xe6)][_0x40ab87(0xce)](),this[_0x40ab87(0xe6)][_0x40ab87(0xca)]&&this[_0x40ab87(0xe6)][_0x40ab87(0xca)][_0x40ab87(0xf0)]();}}
@@ -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/aitabs/aitabsmainview
7
+ * @publicApi
8
+ */
9
+ import type { Locale } from 'ckeditor5/src/utils.js';
10
+ import { AITabsView, type AITabsViewOptions } from './tabs/aitabsview.js';
11
+ import '../../theme/aitabs/aitabsview.css';
12
+ /**
13
+ * The supported types of the `AITabsView`.
14
+ */
15
+ export declare const AI_TABS_VIEW_TYPES: readonly ["overlay", "sidebar", "custom"];
16
+ /**
17
+ * The supported sides of the `AITabsView`.
18
+ */
19
+ export declare const AI_TABS_VIEW_SIDES: readonly ["left", "right"];
20
+ /**
21
+ * The view that hosts AI-powered features in the editor.
22
+ */
23
+ export declare class AITabsMainView extends AITabsView {
24
+ /**
25
+ * The type of the view.
26
+ */
27
+ type: AITabsMainViewOptions['type'];
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ constructor(locale: Locale, options?: AITabsMainViewOptions);
32
+ }
33
+ /**
34
+ * The options for the `AITabsView` class constructor.
35
+ */
36
+ export type AITabsMainViewOptions = AITabsViewOptions & {
37
+ /**
38
+ * The type of the AI Tabs view. The possible values are:
39
+ *
40
+ * * `'overlay'` - the tabs are displayed as an overlay on top of the web page,
41
+ * * `'sidebar'` - the tabs are displayed in a user-defined container,
42
+ * * `'custom'` - the tabs are displayed as a custom UI, the integrator is responsible for the layout.
43
+ */
44
+ type?: (typeof AI_TABS_VIEW_TYPES)[number];
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
+ const _0x2e7631=_0x5f4f;(function(_0x1039f4,_0x42475b){const _0x4dd94c=_0x5f4f,_0x2e3525=_0x1039f4();while(!![]){try{const _0x38b0ce=-parseInt(_0x4dd94c(0x173))/0x1*(-parseInt(_0x4dd94c(0x17f))/0x2)+-parseInt(_0x4dd94c(0x176))/0x3*(-parseInt(_0x4dd94c(0x17e))/0x4)+-parseInt(_0x4dd94c(0x169))/0x5*(-parseInt(_0x4dd94c(0x16c))/0x6)+-parseInt(_0x4dd94c(0x16d))/0x7+-parseInt(_0x4dd94c(0x179))/0x8+parseInt(_0x4dd94c(0x16f))/0x9+-parseInt(_0x4dd94c(0x17d))/0xa;if(_0x38b0ce===_0x42475b)break;else _0x2e3525['push'](_0x2e3525['shift']());}catch(_0x31f1db){_0x2e3525['push'](_0x2e3525['shift']());}}}(_0x4ff7,0x2a502));function _0x4ff7(){const _0x40e092=['14qYEgqQ','ck-ai-tabs','bindTemplate','custom','1463530UmVHrE','extendTemplate','ck-ai-tabs__sidebar','6hhWdqv','131306wXpyhd','type','2701845hweLXt','withText','add','ck-ai-tabs__overlay','40418QmaqtF','buttonViews','left','69SXBDhd','side','overlay','1387888GPDbNI','set','sidebar','right','7918220qbvPkd','48964EedqYy'];_0x4ff7=function(){return _0x40e092;};return _0x4ff7();}import{AITabsView as _0x22c864}from'./tabs/aitabsview.js';import'../../theme/aitabs/aitabsview.css';function _0x5f4f(_0x4c4e92,_0x96724){const _0x4ff7d2=_0x4ff7();return _0x5f4f=function(_0x5f4ff7,_0x4615a2){_0x5f4ff7=_0x5f4ff7-0x166;let _0x5b89d6=_0x4ff7d2[_0x5f4ff7];return _0x5b89d6;},_0x5f4f(_0x4c4e92,_0x96724);}export const AI_TABS_VIEW_TYPES=[_0x2e7631(0x178),_0x2e7631(0x17b),_0x2e7631(0x168)];export const AI_TABS_VIEW_SIDES=[_0x2e7631(0x175),_0x2e7631(0x17c)];export class AITabsMainView extends _0x22c864{constructor(_0x4e3f3a,_0x841e83={}){const _0x43e465=_0x2e7631;super(_0x4e3f3a,_0x841e83),this[_0x43e465(0x17a)](_0x43e465(0x16e),_0x841e83[_0x43e465(0x16e)]||_0x43e465(0x17b)),this[_0x43e465(0x17a)](_0x43e465(0x177),_0x841e83[_0x43e465(0x177)]||_0x43e465(0x17c));const _0x58c175=this[_0x43e465(0x167)];this[_0x43e465(0x16a)]({'attributes':{'class':[_0x43e465(0x166),_0x58c175['if'](_0x43e465(0x16e),_0x43e465(0x172),_0x55507e=>_0x43e465(0x178)===_0x55507e),_0x58c175['if'](_0x43e465(0x16e),_0x43e465(0x16b),_0x510639=>_0x43e465(0x17b)===_0x510639)]}}),this[_0x43e465(0x174)]['on'](_0x43e465(0x171),(_0x3901ac,_0x6100e1)=>{const _0x169232=_0x43e465;_0x6100e1[_0x169232(0x17a)](_0x169232(0x170),!0x1);});}}
@@ -0,0 +1,147 @@
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/aitabs/tabs/aitabsview
7
+ * @publicApi
8
+ */
9
+ import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
10
+ import { type ArrayOrItem, type Locale } from 'ckeditor5/src/utils.js';
11
+ import { TabButtonView } from './tabbuttonview.js';
12
+ import { TabPanelView } from './tabpanelview.js';
13
+ import '../../../theme/aitabs/tabs/tabsview.css';
14
+ export declare const AI_TABS_POSITIONS: readonly ["top", "left", "right"];
15
+ /**
16
+ * A view component that manages the tabs and their panels.
17
+ */
18
+ export declare class AITabsView extends View {
19
+ /**
20
+ * The collection of button views.
21
+ */
22
+ buttonViews: ViewCollection<TabButtonView>;
23
+ /**
24
+ * The collection of panel views.
25
+ */
26
+ panelViews: ViewCollection<TabPanelView>;
27
+ /**
28
+ * An additional CSS class added to the {@link #element}.
29
+ *
30
+ * @observable
31
+ */
32
+ class?: string;
33
+ /**
34
+ * The ID of the active tab.
35
+ *
36
+ * See {@link #getTabIds}.
37
+ *
38
+ * @observable
39
+ */
40
+ activeTab: string | null;
41
+ /**
42
+ * The position of the tabs.
43
+ *
44
+ * @observable
45
+ */
46
+ side: typeof AI_TABS_POSITIONS[number];
47
+ /**
48
+ * Indicates whether the tabs view is maximized.
49
+ *
50
+ * @observable
51
+ */
52
+ isMaximized: boolean;
53
+ /**
54
+ * Creates a new AITabsView instance.
55
+ */
56
+ constructor(locale: Locale, options?: AITabsViewOptions);
57
+ /**
58
+ * Returns the IDs of all tabs as defined in the {@link #addTab} method.
59
+ *
60
+ * Also see: {@link #getTab}.
61
+ *
62
+ * @returns {Array<string>} The IDs of all tabs.
63
+ */
64
+ getTabIds(): Array<string>;
65
+ /**
66
+ * Returns the pair of tab button and panel of a specific id.
67
+ *
68
+ * Note: Use {@link #getTabIds} to learn how to get the IDs of all tabs.
69
+ */
70
+ getTab(tabId: string): {
71
+ button: TabButtonView;
72
+ panel: TabPanelView;
73
+ } | null;
74
+ /**
75
+ * Adds a new tab to the tabs view.
76
+ *
77
+ * Note: Use {@link #activateTab} to activate the tab after adding it.
78
+ *
79
+ * Note: You can hide or show the tab after adding it using {@link #hideTab} and {@link #showTab}.
80
+ */
81
+ addTab(config: AITabsAddTabOptions): {
82
+ button: TabButtonView;
83
+ panel: TabPanelView;
84
+ };
85
+ /**
86
+ * Activates a tab by its ID.
87
+ *
88
+ * Note: Use {@link #getTabIds} to learn how to get the IDs of all tabs.
89
+ *
90
+ * Note: If `null` is passed, the current active tab will be deactivated and its panel will be hidden.
91
+ */
92
+ activateTab(id: string | null): void;
93
+ /**
94
+ * Shows the tab of a specific id.
95
+ *
96
+ * Note: Use {@link #getTabIds} to learn how to get the IDs of all tabs.
97
+ */
98
+ showTab(id: string): void;
99
+ /**
100
+ * Hides the tab of a specific id.
101
+ *
102
+ * Note: Use {@link #getTabIds} to learn how to get the IDs of all tabs.
103
+ */
104
+ hideTab(id: string): void;
105
+ }
106
+ /**
107
+ * The options for the `AITabsView#addTab()` method.
108
+ */
109
+ export type AITabsAddTabOptions = {
110
+ /**
111
+ * The unique ID of the tab.
112
+ */
113
+ id: string;
114
+ /**
115
+ * The label of the tab button.
116
+ */
117
+ buttonLabel: string;
118
+ /**
119
+ * The icon of the tab button. See {@link module:ui/button/buttonview~ButtonView#icon} to learn more.
120
+ */
121
+ buttonIcon?: string;
122
+ /**
123
+ * The order of the tab. If not provided, the tab will be added to the end of the tabs list.
124
+ */
125
+ order?: number;
126
+ /**
127
+ * The content of the tab. If not provided, the tab will be empty.
128
+ */
129
+ content?: View;
130
+ };
131
+ /**
132
+ * The options for the `AITabsView` class constructor.
133
+ */
134
+ export type AITabsViewOptions = {
135
+ /**
136
+ * Additional children of the tabs view.
137
+ */
138
+ children?: Array<View>;
139
+ /**
140
+ * The position of the tabs.
141
+ */
142
+ side?: typeof AI_TABS_POSITIONS[number];
143
+ /**
144
+ * An additional CSS class added to the {@link module:ai/aitabs/tabs/aitabsview~AITabsView#element}.
145
+ */
146
+ class?: ArrayOrItem<string>;
147
+ };
@@ -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 _0x53f090=_0x15e2;function _0x15e2(_0x59e36a,_0x389c33){const _0x3f763c=_0x3f76();return _0x15e2=function(_0x15e2a8,_0x4c0a8b){_0x15e2a8=_0x15e2a8-0x96;let _0x9dd545=_0x3f763c[_0x15e2a8];return _0x9dd545;},_0x15e2(_0x59e36a,_0x389c33);}(function(_0x3f1678,_0x3939a9){const _0x2ac492=_0x15e2,_0x104c55=_0x3f1678();while(!![]){try{const _0x52cbdd=parseInt(_0x2ac492(0xdf))/0x1*(parseInt(_0x2ac492(0xc9))/0x2)+parseInt(_0x2ac492(0xa4))/0x3+-parseInt(_0x2ac492(0xd6))/0x4+parseInt(_0x2ac492(0xca))/0x5+parseInt(_0x2ac492(0xbb))/0x6+-parseInt(_0x2ac492(0xa1))/0x7+-parseInt(_0x2ac492(0xbd))/0x8;if(_0x52cbdd===_0x3939a9)break;else _0x104c55['push'](_0x104c55['shift']());}catch(_0x20fb9c){_0x104c55['push'](_0x104c55['shift']());}}}(_0x3f76,0x869c3));function _0x3f76(){const _0x5b7537=['fire','_showPanel','addTab:','getTab','getTabIds','ck-ai-tabs_maximized','activeTab','bindTemplate','keys','show:','ck-tabs__buttons-container_','content','ck-tabs__panels-container','panelViews','3017310iIBcZi','_hideButton','248368kfhmcy','ck-tabs__panels-container_','label','_hidePanel','setTemplate','ck-tabs__buttons-container','isVisible','side','top','button','bind','order','1218116XCUjnE','1181040pyLNlf','showTab','hide','createCollection','ck-tabs_','_setupButton','hideTab','reduce','children','panel','ck-tabs','find','3752096hIGobT','div','ui-tabsview-tab-not-found','show','isMaximized','buttonLabel','activateTab','locale','addTab','1oDMPSi','_tabs','activateTab:','set','left','getIndex','execute','right','add','_getPanel','icon','render','6232793TvFSqb','get','buttonIcon','3188043oWmyLC','isOn','buttonViews','_showButton','hide:','ck-reset','_getButton','length','class'];_0x3f76=function(){return _0x5b7537;};return _0x3f76();}import{View as _0x1a9592}from'ckeditor5/src/ui.js';import{toArray as _0x40f0e9,CKEditorError as _0x2641a6}from'ckeditor5/src/utils.js';import{TabButtonView as _0x3c9062}from'./tabbuttonview.js';import{TabPanelView as _0x190e0e}from'./tabpanelview.js';import'../../../theme/aitabs/tabs/tabsview.css';export const AI_TABS_POSITIONS=[_0x53f090(0xc5),_0x53f090(0x99),_0x53f090(0x9c)];export class AITabsView extends _0x1a9592{[_0x53f090(0xa6)]=this[_0x53f090(0xcd)]();[_0x53f090(0xba)]=this[_0x53f090(0xcd)]();[_0x53f090(0x96)]=new Map();constructor(_0x2ec753,_0x57c229={}){const _0x333662=_0x53f090;super(_0x2ec753),this[_0x333662(0x98)](_0x333662(0xac),void 0x0),this[_0x333662(0x98)](_0x333662(0xb3),null),this[_0x333662(0x98)](_0x333662(0xc4),_0x57c229[_0x333662(0xc4)]||_0x333662(0xc5)),this[_0x333662(0x98)](_0x333662(0xda),!0x1);const _0x1ef65f=this[_0x333662(0xb4)];this[_0x333662(0xc1)]({'tag':_0x333662(0xd7),'attributes':{'class':['ck',_0x333662(0xa9),_0x333662(0xd4),..._0x40f0e9(_0x57c229[_0x333662(0xac)]||[]),_0x1ef65f['to'](_0x333662(0xc4),_0x52e838=>_0x333662(0xce)+_0x52e838),_0x1ef65f['to'](_0x333662(0xac)),_0x1ef65f['to'](_0x333662(0xda),_0x1a0243=>_0x1a0243?_0x333662(0xb2):'')],'tabindex':'0'},'children':[{'tag':_0x333662(0xd7),'attributes':{'class':['ck',_0x333662(0xc2),_0x1ef65f['to'](_0x333662(0xc4),_0x562a05=>_0x333662(0xb7)+_0x562a05)]},'children':this[_0x333662(0xa6)]},{'tag':_0x333662(0xd7),'attributes':{'class':['ck',_0x333662(0xb9),_0x1ef65f['to'](_0x333662(0xc4),_0x5d4ef4=>_0x333662(0xbe)+_0x5d4ef4)]},'children':this[_0x333662(0xba)]},..._0x40f0e9(_0x57c229[_0x333662(0xd2)]||[])]});}[_0x53f090(0xb1)](){const _0x1de257=_0x53f090;return[...this[_0x1de257(0x96)][_0x1de257(0xb5)]()];}[_0x53f090(0xb0)](_0x2ab388){const _0x4cf13d=_0x53f090,_0xced442=this[_0x4cf13d(0x96)][_0x4cf13d(0xa2)](_0x2ab388);return _0xced442||null;}[_0x53f090(0xde)](_0x28210c){const _0x58a299=_0x53f090,_0x5c2602=this[_0x58a299(0xcf)]({'id':_0x28210c['id'],'label':_0x28210c[_0x58a299(0xdb)],'icon':_0x28210c[_0x58a299(0xa3)],'order':_0x28210c[_0x58a299(0xc8)]}),_0x2b9095=new _0x190e0e(this[_0x58a299(0xdd)]);return _0x2b9095[_0x58a299(0xa0)](),_0x28210c[_0x58a299(0xb8)]&&_0x2b9095[_0x58a299(0xd2)][_0x58a299(0x9d)](_0x28210c[_0x58a299(0xb8)]),this[_0x58a299(0xba)][_0x58a299(0x9d)](_0x2b9095),this[_0x58a299(0x96)][_0x58a299(0x98)](_0x28210c['id'],{'button':_0x5c2602,'panel':_0x2b9095,'order':void 0x0!==_0x28210c[_0x58a299(0xc8)]?_0x28210c[_0x58a299(0xc8)]:null}),this[_0x58a299(0xad)](_0x58a299(0xaf)+_0x28210c['id'],{'id':_0x28210c['id'],'button':_0x5c2602,'panel':_0x2b9095}),null===this[_0x58a299(0xb3)]?this[_0x58a299(0xdc)](_0x28210c['id']):this[_0x58a299(0xc0)](_0x28210c['id']),{'button':_0x5c2602,'panel':_0x2b9095};}[_0x53f090(0xdc)](_0x341bd8){const _0x108275=_0x53f090;if(null!==_0x341bd8&&!this[_0x108275(0xb0)](_0x341bd8))throw new _0x2641a6(_0x108275(0xd8),{'tabs':this,'tabId':_0x341bd8});this[_0x108275(0xb3)]!==_0x341bd8&&(this[_0x108275(0xb3)]&&this[_0x108275(0xc0)](this[_0x108275(0xb3)]),this[_0x108275(0xb3)]=_0x341bd8,_0x341bd8&&this[_0x108275(0xae)](_0x341bd8),this[_0x108275(0xad)](_0x108275(0x97)+_0x341bd8,_0x341bd8));}[_0x53f090(0xcb)](_0x4fded9){const _0xf072e3=_0x53f090;if(!this[_0xf072e3(0xb0)](_0x4fded9))throw new _0x2641a6(_0xf072e3(0xd8),{'tabs':this,'tabId':_0x4fded9});this[_0xf072e3(0xae)](_0x4fded9),this[_0xf072e3(0xa7)](_0x4fded9),this[_0xf072e3(0xad)](_0xf072e3(0xb6)+_0x4fded9,_0x4fded9);}[_0x53f090(0xd0)](_0x50da92){const _0x5b5939=_0x53f090;if(!this[_0x5b5939(0xb0)](_0x50da92))throw new _0x2641a6(_0x5b5939(0xd8),{'tabs':this,'tabId':_0x50da92});const _0x36f6d8=this[_0x5b5939(0xb3)];this[_0x5b5939(0xc0)](_0x50da92),this[_0x5b5939(0xbc)](_0x50da92);const _0x19d2e2=this[_0x5b5939(0xb1)]();_0x36f6d8===_0x50da92&&_0x19d2e2[_0x5b5939(0xab)]>0x1&&this[_0x5b5939(0xdc)](_0x19d2e2[_0x5b5939(0xd5)](_0x492c9e=>_0x492c9e!==_0x50da92)),this[_0x5b5939(0xad)](_0x5b5939(0xa8)+_0x50da92,_0x50da92);}[_0x53f090(0x9e)](_0x712991){const _0x518ece=_0x53f090,_0x32cfb9=this[_0x518ece(0x96)][_0x518ece(0xa2)](_0x712991);return _0x32cfb9?_0x32cfb9[_0x518ece(0xd3)]:null;}[_0x53f090(0xae)](_0x19deff){const _0x3bfd3f=_0x53f090;null!==this[_0x3bfd3f(0xb3)]&&this[_0x3bfd3f(0xb3)]!==_0x19deff||this[_0x3bfd3f(0x9e)](_0x19deff)[_0x3bfd3f(0xd9)]();}[_0x53f090(0xc0)](_0x508ad4){const _0x3c6215=_0x53f090,_0x49f333=this[_0x3c6215(0x9e)](_0x508ad4);_0x49f333[_0x3c6215(0xc3)]&&(this[_0x3c6215(0xb3)]===_0x508ad4&&(this[_0x3c6215(0xb3)]=null),_0x49f333[_0x3c6215(0xcc)]());}[_0x53f090(0xaa)](_0x422e43){const _0x26edc3=_0x53f090,_0x1c41b8=this[_0x26edc3(0x96)][_0x26edc3(0xa2)](_0x422e43);return _0x1c41b8?_0x1c41b8[_0x26edc3(0xc6)]:null;}[_0x53f090(0xa7)](_0x3159d){const _0x3fa559=_0x53f090;this[_0x3fa559(0xaa)](_0x3159d)[_0x3fa559(0xd9)]();}[_0x53f090(0xbc)](_0x1a672e){const _0xd38217=_0x53f090;this[_0xd38217(0xaa)](_0x1a672e)[_0xd38217(0xcc)]();}[_0x53f090(0xcf)](_0x45a956){const _0x6a6cd8=_0x53f090,_0x214322=new _0x3c9062(this[_0x6a6cd8(0xdd)],{'side':this[_0x6a6cd8(0xc4)]}),_0x3c4e97=this[_0x6a6cd8(0xa6)];if(_0x214322[_0x6a6cd8(0x98)]({'label':_0x45a956[_0x6a6cd8(0xbf)],'icon':_0x45a956[_0x6a6cd8(0x9f)],'tooltip':!0x0,'withText':!0x0}),_0x214322[_0x6a6cd8(0xc7)](_0x6a6cd8(0xa5))['to'](this,_0x6a6cd8(0xb3),_0x2aeff4=>_0x2aeff4===_0x45a956['id']),_0x214322[_0x6a6cd8(0xc7)](_0x6a6cd8(0xc4))['to'](this,_0x6a6cd8(0xc4)),_0x45a956[_0x6a6cd8(0xc8)]){const _0x418c60=[...this[_0x6a6cd8(0x96)]][_0x6a6cd8(0xd1)]((_0x23a740,_0x39e1ea)=>{const _0x155c0d=_0x6a6cd8,_0x482368=_0x39e1ea[0x0],{order:_0x480bf0}=_0x39e1ea[0x1];return!_0x480bf0||_0x480bf0>_0x45a956[_0x155c0d(0xc8)]?_0x23a740:_0x480bf0>=_0x23a740[_0x155c0d(0xc8)]?{'id':_0x482368,'order':_0x480bf0}:_0x23a740;},{'id':'','order':0x0}),_0x12e0bf=_0x3c4e97[_0x6a6cd8(0x9a)](this[_0x6a6cd8(0xaa)](_0x418c60['id']));_0x3c4e97[_0x6a6cd8(0x9d)](_0x214322,_0x12e0bf+0x1);}else _0x3c4e97[_0x6a6cd8(0x9d)](_0x214322);return _0x214322['on'](_0x6a6cd8(0x9b),()=>{const _0x115d8a=_0x6a6cd8;this[_0x115d8a(0xdc)](_0x45a956['id']);}),_0x214322;}}
@@ -0,0 +1,47 @@
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/aitabs/tabs/tabbuttonview
7
+ */
8
+ import { ButtonView } from 'ckeditor5/src/ui.js';
9
+ import { type ArrayOrItem, type Locale } from 'ckeditor5/src/utils.js';
10
+ import type { AI_TABS_POSITIONS } from './aitabsview.js';
11
+ import '../../../theme/aitabs/tabs/tabbuttonview.css';
12
+ /**
13
+ * A button that toggles the visibility of a tab in the tabs view component.
14
+ */
15
+ export declare class TabButtonView extends ButtonView {
16
+ /**
17
+ * The position of the tab button.
18
+ *
19
+ * @observable
20
+ */
21
+ side: typeof AI_TABS_POSITIONS[number];
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ constructor(locale?: Locale, options?: TabButtonViewOptions);
26
+ /**
27
+ * Shows the tab button.
28
+ */
29
+ show(): void;
30
+ /**
31
+ * Hides the tab button.
32
+ */
33
+ hide(): void;
34
+ }
35
+ /**
36
+ * The options for the `TabButtonView` class.
37
+ */
38
+ export type TabButtonViewOptions = {
39
+ /**
40
+ * An additional CSS class added to the {@link #element}.
41
+ */
42
+ class?: ArrayOrItem<string>;
43
+ /**
44
+ * The position of the tab button.
45
+ */
46
+ side?: typeof AI_TABS_POSITIONS[number];
47
+ };
@@ -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 _0x392908=_0x81a1;(function(_0x156efa,_0x4ee7d0){const _0x337829=_0x81a1,_0x1ae98d=_0x156efa();while(!![]){try{const _0x3246b1=-parseInt(_0x337829(0x1dd))/0x1*(parseInt(_0x337829(0x1e9))/0x2)+parseInt(_0x337829(0x1e6))/0x3+-parseInt(_0x337829(0x1ef))/0x4*(-parseInt(_0x337829(0x1e5))/0x5)+-parseInt(_0x337829(0x1df))/0x6+parseInt(_0x337829(0x1ea))/0x7*(-parseInt(_0x337829(0x1e0))/0x8)+parseInt(_0x337829(0x1e4))/0x9+-parseInt(_0x337829(0x1ed))/0xa*(-parseInt(_0x337829(0x1ee))/0xb);if(_0x3246b1===_0x4ee7d0)break;else _0x1ae98d['push'](_0x1ae98d['shift']());}catch(_0x68d85e){_0x1ae98d['push'](_0x1ae98d['shift']());}}}(_0x5128,0xb9c22));import{ButtonView as _0x3dedbb}from'ckeditor5/src/ui.js';import{toArray as _0x4a0135}from'ckeditor5/src/utils.js';import'../../../theme/aitabs/tabs/tabbuttonview.css';export class TabButtonView extends _0x3dedbb{constructor(_0x2a03c8,_0xff8369={}){const _0x5373d8=_0x81a1;super(_0x2a03c8),this[_0x5373d8(0x1e3)]=!0x0,this[_0x5373d8(0x1eb)](_0x5373d8(0x1de),_0xff8369[_0x5373d8(0x1de)]||_0x5373d8(0x1e1));const _0x197dc4=this[_0x5373d8(0x1ec)];this[_0x5373d8(0x1f1)]({'attributes':{'class':[_0x5373d8(0x1e7),..._0x4a0135(_0xff8369[_0x5373d8(0x1f3)]||[]),_0x197dc4['to'](_0x5373d8(0x1de),_0x538c58=>_0x5373d8(0x1f0)+_0x538c58),_0x197dc4['to'](_0x5373d8(0x1f3))]}});}[_0x392908(0x1f2)](){const _0x359402=_0x392908;this[_0x359402(0x1eb)](_0x359402(0x1e8),!0x0);}[_0x392908(0x1e2)](){const _0x348e6f=_0x392908;this[_0x348e6f(0x1eb)](_0x348e6f(0x1e8),!0x1);}}function _0x81a1(_0x574959,_0x5ee998){const _0x5128b8=_0x5128();return _0x81a1=function(_0x81a144,_0x507c14){_0x81a144=_0x81a144-0x1dd;let _0x446853=_0x5128b8[_0x81a144];return _0x446853;},_0x81a1(_0x574959,_0x5ee998);}function _0x5128(){const _0x40127d=['2643045ENYbkO','ck-tab-button','isVisible','8EUArBa','182uqrWfs','set','bindTemplate','10YacDUR','13533542EmEPqd','412JiFjyK','ck-tab-button_','extendTemplate','show','class','311791AANLUg','side','7496868mchFWy','111640ZkmQGW','top','hide','isToggleable','3867903LKwuoF','52390tNpFgr'];_0x5128=function(){return _0x40127d;};return _0x5128();}
@@ -0,0 +1,44 @@
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/aitabs/tabs/tabpanelview
7
+ */
8
+ import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
9
+ import { type ArrayOrItem, type Locale } from 'ckeditor5/src/utils.js';
10
+ /**
11
+ * A panel that contains the content of a tab in the tabs view component.
12
+ */
13
+ export declare class TabPanelView extends View {
14
+ /**
15
+ * An additional CSS class added to the {@link #element}.
16
+ *
17
+ * @observable
18
+ */
19
+ class?: string;
20
+ /**
21
+ * A collection of child views.
22
+ */
23
+ children: ViewCollection;
24
+ /**
25
+ * Whether the panel is visible.
26
+ *
27
+ * @observable
28
+ */
29
+ isVisible: boolean;
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ constructor(locale?: Locale, options?: {
34
+ class?: ArrayOrItem<string>;
35
+ });
36
+ /**
37
+ * Shows the panel.
38
+ */
39
+ show(): void;
40
+ /**
41
+ * Hides the panel.
42
+ */
43
+ hide(): void;
44
+ }
@@ -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 _0x5915(_0x530198,_0x1647ad){const _0x3a6bdd=_0x3a6b();return _0x5915=function(_0x59157e,_0x303b49){_0x59157e=_0x59157e-0x198;let _0x4b8427=_0x3a6bdd[_0x59157e];return _0x4b8427;},_0x5915(_0x530198,_0x1647ad);}const _0x574b81=_0x5915;function _0x3a6b(){const _0x10a98d=['set','333146ZdQYzV','65979zCoQRt','show','setTemplate','6IIWlCw','ck-hidden','hide','ck-tab-panel','createCollection','1017ntoeXF','bindTemplate','32uCavtF','228GtIUvB','1vsEmjy','class','div','isVisible','825015MFFLPN','110136PsgCem','children','18238aZDRmu','3760aEzTZb','383474KgLUYB'];_0x3a6b=function(){return _0x10a98d;};return _0x3a6b();}(function(_0xc9fc98,_0x4f294c){const _0x19bf2d=_0x5915,_0x5435ba=_0xc9fc98();while(!![]){try{const _0x5c36de=-parseInt(_0x19bf2d(0x1af))/0x1*(-parseInt(_0x19bf2d(0x1a2))/0x2)+-parseInt(_0x19bf2d(0x1a3))/0x3*(parseInt(_0x19bf2d(0x1ad))/0x4)+parseInt(_0x19bf2d(0x19b))/0x5+parseInt(_0x19bf2d(0x1a6))/0x6*(-parseInt(_0x19bf2d(0x1a0))/0x7)+parseInt(_0x19bf2d(0x19c))/0x8+-parseInt(_0x19bf2d(0x1ab))/0x9*(parseInt(_0x19bf2d(0x19f))/0xa)+-parseInt(_0x19bf2d(0x19e))/0xb*(-parseInt(_0x19bf2d(0x1ae))/0xc);if(_0x5c36de===_0x4f294c)break;else _0x5435ba['push'](_0x5435ba['shift']());}catch(_0x52a4c3){_0x5435ba['push'](_0x5435ba['shift']());}}}(_0x3a6b,0x194cf));import{View as _0x190a3e}from'ckeditor5/src/ui.js';import{toArray as _0x1f09e5}from'ckeditor5/src/utils.js';export class TabPanelView extends _0x190a3e{[_0x574b81(0x19d)];constructor(_0x4c704c,_0x1f5739={}){const _0xb6e5d5=_0x574b81;super(_0x4c704c);const _0x58e9dc=this[_0xb6e5d5(0x1ac)];this[_0xb6e5d5(0x1a1)](_0xb6e5d5(0x19a),!0x1),this[_0xb6e5d5(0x19d)]=this[_0xb6e5d5(0x1aa)](),this[_0xb6e5d5(0x1a5)]({'tag':_0xb6e5d5(0x199),'attributes':{'class':[_0xb6e5d5(0x1a9),..._0x1f09e5(_0x1f5739[_0xb6e5d5(0x198)]||[]),_0x58e9dc['to'](_0xb6e5d5(0x198)),_0x58e9dc['if'](_0xb6e5d5(0x19a),_0xb6e5d5(0x1a7),_0x5aa2d4=>!_0x5aa2d4)]},'children':this[_0xb6e5d5(0x19d)]});}[_0x574b81(0x1a4)](){const _0x4cd789=_0x574b81;this[_0x4cd789(0x1a1)](_0x4cd789(0x19a),!0x0);}[_0x574b81(0x1a8)](){const _0x3085b0=_0x574b81;this[_0x3085b0(0x1a1)](_0x3085b0(0x19a),!0x1);}}
@@ -2,12 +2,20 @@
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- import { type AIAssistant } from './aiassistant.js';
6
- import { type ShowAIAssistantCommand } from './ui/showaiassistantcommand.js';
7
- import { type AIAssistantEditing } from './aiassistantediting.js';
8
- import { type AIAssistantUI } from './aiassistantui.js';
9
- import { type AIConfig } from './aiconfig.js';
10
- import { type AIAdapter } from './adapters/aiadapter.js';
5
+ import type { AIConfig } from './aiconfig.js';
6
+ import type { AIAssistant } from './aiassistant/aiassistant.js';
7
+ import type { ShowAIAssistantCommand } from './aiassistant/ui/showaiassistantcommand.js';
8
+ import type { AIAssistantEditing } from './aiassistant/aiassistantediting.js';
9
+ import type { AIAssistantUI } from './aiassistant/aiassistantui.js';
10
+ import type { AIAdapter } from './aiassistant/adapters/aiadapter.js';
11
+ import type { AITabs } from './aitabs/aitabs.js';
12
+ import type { AIConnector } from './aicore/aiconnector.js';
13
+ import type { AIChat } from './aichat/aichat.js';
14
+ import type { AIChatController } from './aichat/aichatcontroller.js';
15
+ import type { AIEditing } from './aicore/aiediting.js';
16
+ import type { AIChatUI } from './aichat/aichatui.js';
17
+ import type { AIActions } from './aiactions/aiactions.js';
18
+ import type { AIBalloon } from './aiballoon/aiballoon.js';
11
19
  declare module '@ckeditor/ckeditor5-core' {
12
20
  interface EditorConfig {
13
21
  /**
@@ -20,6 +28,14 @@ declare module '@ckeditor/ckeditor5-core' {
20
28
  [AIAssistant.pluginName]: AIAssistant;
21
29
  [AIAssistantUI.pluginName]: AIAssistantUI;
22
30
  [AIAssistantEditing.pluginName]: AIAssistantEditing;
31
+ [AITabs.pluginName]: AITabs;
32
+ [AIConnector.pluginName]: AIConnector;
33
+ [AIChat.pluginName]: AIChat;
34
+ [AIChatController.pluginName]: AIChatController;
35
+ [AIEditing.pluginName]: AIEditing;
36
+ [AIChatUI.pluginName]: AIChatUI;
37
+ [AIActions.pluginName]: AIActions;
38
+ [AIBalloon.pluginName]: AIBalloon;
23
39
  }
24
40
  interface CommandsMap {
25
41
  showAIAssistant: ShowAIAssistantCommand;
package/src/index.d.ts CHANGED
@@ -5,13 +5,44 @@
5
5
  /**
6
6
  * @module ai
7
7
  */
8
- export { AIAssistant, getDefaultAICommands, type AIAssistantConfig, type AIGroupDefinition, type AICommandDefinition } from './aiassistant.js';
9
- export { AIAssistantUI } from './aiassistantui.js';
10
- export type { AIConfig } from './aiconfig.js';
11
- export { AIAdapter, AIRequestError } from './adapters/aiadapter.js';
12
- export { AITextAdapter, type AITextAdapterRequestData, type AIRequestHeaders, type AIRequestParameters, type AITextAdapterDataCallback } from './adapters/aitextadapter.js';
13
- export { OpenAITextAdapter, type OpenAITextAdapterConfig } from './adapters/openaitextadapter.js';
14
- export { AWSTextAdapter, type AIAWSTextAdapterConfig, type AIAWSModelFamily } from './adapters/awstextadapter.js';
15
- export type { AIRequestMessageItem } from './adapters/openaitextadapter.js';
16
- export { ShowAIAssistantCommand } from './ui/showaiassistantcommand.js';
8
+ export { AIAssistant, getDefaultAICommands, type AIAssistantConfig, type AIGroupDefinition, type AICommandDefinition } from './aiassistant/aiassistant.js';
9
+ export { AIAssistantUI } from './aiassistant/aiassistantui.js';
10
+ export { type AIConfig, type AIContainerType, type AIContainerSide, type AIContainerBase, type AIContainerSidebar, type AIContainerOverlay, type AIContainerCustom, type AIContainerConfig } from './aiconfig.js';
11
+ export { AIAdapter, AIRequestError } from './aiassistant/adapters/aiadapter.js';
12
+ export { AITextAdapter, type AITextAdapterRequestData, type AIRequestHeaders, type AIRequestParameters, type AITextAdapterDataCallback } from './aiassistant/adapters/aitextadapter.js';
13
+ export { OpenAITextAdapter, type OpenAITextAdapterConfig, type AIRequestMessageItem } from './aiassistant/adapters/openaitextadapter.js';
14
+ export { AWSTextAdapter, type AIAWSTextAdapterConfig, type AIAWSModelFamily } from './aiassistant/adapters/awstextadapter.js';
15
+ export { ShowAIAssistantCommand } from './aiassistant/ui/showaiassistantcommand.js';
16
+ export { AITabs } from './aitabs/aitabs.js';
17
+ export { AIConnector } from './aicore/aiconnector.js';
18
+ export { createResizeButton } from './aicore/utils/createresizebutton.js';
19
+ export { AIChat, type AIChatConfig } from './aichat/aichat.js';
20
+ export { AIChatController } from './aichat/aichatcontroller.js';
21
+ export { AIEditing } from './aicore/aiediting.js';
22
+ export { AIChatUI } from './aichat/aichatui.js';
23
+ export { type AITabsMainView, type AITabsMainViewOptions } from './aitabs/aitabsmainview.js';
24
+ export { type AITabsView, type AITabsAddTabOptions, type AITabsViewOptions } from './aitabs/tabs/aitabsview.js';
25
+ export { type AIResizedTabsEvent, type AIResizeTabsEvent } from './aitabs/aitabs.js';
26
+ export { type AIChatContextConfig, type AIAddContextOptionsState, type AIChatContextItemAddedEvent, type AIChatContextItemRemovedEvent, type AIChatContextSentEvent, type AIChatContextAddContextOptionsChangedEvent, type AIContextProvider, type AIContextResource, type AIContextResourceState, type AIContextProviderState, type AIContextTextResource, type AIChatContextUploadProgressChangedEvent } from './aichat/model/aichatcontext.js';
27
+ export { type AIContextItemType, type AIContextItemRequestData, type AIContextItem, type AIContextTextResourceType } from './aicore/model/aicontext.js';
28
+ export { type AIChatModel, type AIChatModelsConfig } from './aichat/model/aichatmodels.js';
29
+ export { type AIGenericRequest, type AIConversationStartReply, type AIConversationStartRequest, type AIEventSourceMessageParsed, type AIQueryAssistantReply, type AIConnectorRequest, type AIConnectorQueryAssistantData, type AIUploadReply, type AIUploadRequest, type AIModelData, type AIModelRequest, type AIFetchDocumentReply, type AIFetchDocumentRequest, type AIConversationItem, type AIFetchConversationsRequest, type AIDeleteConversationRequest, type AIUserMessage, type AIAssistantMessage, type AIConversationMessage, type AIGetConversationReply, type AIGetConversationRequest, type AIGetConversationMessagesRequest, type AIUpdateConversationRequest, type AIDeleteFileRequest, type AIDeleteDocumentRequest, type AIDeleteWebResourceRequest, type AIConnectorExecuteActionData, type AIConnectorExecuteCustomActionData, type AIActionsNames, type AIConnectorSystemReviewData, type AIConnectorCustomReviewData } from './aicore/aiconnector.js';
30
+ export { type AIChatUIStartConversationEvent, type AIChatUISendUserMessageEvent, type AIChatUIAbortPromptStreamEvent, type AIChatUIAddDocumentToContextEvent, type AIChatUIAddFileToContextEvent, type AIChatUIRemoveContextItemEvent } from './aichat/aichatui.js';
31
+ export { AIChatHistory } from './aichathistory/aichathistory.js';
32
+ export { AIChatHistoryController } from './aichathistory/aichathistorycontroller.js';
33
+ export { AIChatHistoryUI, type AIChatHistoryItemData, type AIChatHistoryCategoryData } from './aichathistory/aichathistoryui.js';
34
+ export { AIQuickActions, type AIQuickActionsConfig, type AICustomQuickActionDefinition, type AIQuickActionRequestData } from './aiquickactions/aiquickactions.js';
35
+ export { AIQuickActionsUI, AIQuickActionType, type AIQuickActionsGroupDefinition, type AIQuickActionDefinition } from './aiquickactions/aiquickactionsui.js';
36
+ export { AIActions } from './aiactions/aiactions.js';
37
+ export { AIBalloon } from './aiballoon/aiballoon.js';
38
+ export { AIReviewMode } from './aireviewmode/aireviewmode.js';
39
+ export { AIReviewModeController } from './aireviewmode/aireviewmodecontroller.js';
40
+ export { AIReviewModeEditing, type AIDocumentDataElement, type AIDocumentData, type AIDiffResult, type AIReviewModeChangeRange, type AIReviewModeChangeData } from './aireviewmode/aireviewmodeediting.js';
41
+ export { AIReviewModeUI } from './aireviewmode/aireviewmodeui.js';
42
+ export { AIReviewCheck, type AIReviewCheckOptionData, type AIReviewCheckOptions } from './aireviewmode/model/aireviewcheck.js';
43
+ export { AIReviewCheckResult } from './aireviewmode/model/aireviewcheckresult.js';
44
+ export { AIReviewCheckRun } from './aireviewmode/model/aireviewcheckrun.js';
45
+ export { type AIReviewCheckRunUpdatedEvent } from './aireviewmode/model/aireviewcheckrun.js';
46
+ export { type AIReviewCheckRunStatus } from './aireviewmode/model/aireviewcheckrun.js';
47
+ export { type AIReviewCheckResultChange } from './aireviewmode/model/aireviewcheckresultchange.js';
17
48
  import './augmentation.js';