@ckeditor/ckeditor5-ai 44.1.0 → 44.2.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.
- package/LICENSE.md +1 -1
- package/README.md +1 -1
- package/build/ai.js +2 -2
- package/build/translations/cs.js +1 -1
- package/dist/index-content.css +2 -2
- package/dist/index-editor.css +2 -2
- package/dist/index.css +9 -9
- package/dist/index.js +3 -3
- package/dist/translations/af.d.ts +2 -2
- package/dist/translations/af.js +2 -2
- package/dist/translations/af.umd.js +2 -2
- package/dist/translations/ar.d.ts +2 -2
- package/dist/translations/ar.js +2 -2
- package/dist/translations/ar.umd.js +2 -2
- package/dist/translations/ast.d.ts +2 -2
- package/dist/translations/ast.js +2 -2
- package/dist/translations/ast.umd.js +2 -2
- package/dist/translations/az.d.ts +2 -2
- package/dist/translations/az.js +2 -2
- package/dist/translations/az.umd.js +2 -2
- package/dist/translations/bg.d.ts +2 -2
- package/dist/translations/bg.js +2 -2
- package/dist/translations/bg.umd.js +2 -2
- package/dist/translations/bn.d.ts +2 -2
- package/dist/translations/bn.js +2 -2
- package/dist/translations/bn.umd.js +2 -2
- package/dist/translations/bs.d.ts +2 -2
- package/dist/translations/bs.js +2 -2
- package/dist/translations/bs.umd.js +2 -2
- package/dist/translations/ca.d.ts +2 -2
- package/dist/translations/ca.js +2 -2
- package/dist/translations/ca.umd.js +2 -2
- package/dist/translations/cs.d.ts +2 -2
- package/dist/translations/cs.js +2 -2
- package/dist/translations/cs.umd.js +2 -2
- package/dist/translations/da.d.ts +2 -2
- package/dist/translations/da.js +2 -2
- package/dist/translations/da.umd.js +2 -2
- package/dist/translations/de-ch.d.ts +2 -2
- package/dist/translations/de-ch.js +2 -2
- package/dist/translations/de-ch.umd.js +2 -2
- package/dist/translations/de.d.ts +2 -2
- package/dist/translations/de.js +2 -2
- package/dist/translations/de.umd.js +2 -2
- package/dist/translations/el.d.ts +2 -2
- package/dist/translations/el.js +2 -2
- package/dist/translations/el.umd.js +2 -2
- package/dist/translations/en-au.d.ts +2 -2
- package/dist/translations/en-au.js +2 -2
- package/dist/translations/en-au.umd.js +2 -2
- package/dist/translations/en-gb.d.ts +2 -2
- package/dist/translations/en-gb.js +2 -2
- package/dist/translations/en-gb.umd.js +2 -2
- package/dist/translations/en.d.ts +2 -2
- package/dist/translations/en.js +2 -2
- package/dist/translations/en.umd.js +2 -2
- package/dist/translations/eo.d.ts +2 -2
- package/dist/translations/eo.js +2 -2
- package/dist/translations/eo.umd.js +2 -2
- package/dist/translations/es-co.d.ts +2 -2
- package/dist/translations/es-co.js +2 -2
- package/dist/translations/es-co.umd.js +2 -2
- package/dist/translations/es.d.ts +2 -2
- package/dist/translations/es.js +2 -2
- package/dist/translations/es.umd.js +2 -2
- package/dist/translations/et.d.ts +2 -2
- package/dist/translations/et.js +2 -2
- package/dist/translations/et.umd.js +2 -2
- package/dist/translations/eu.d.ts +2 -2
- package/dist/translations/eu.js +2 -2
- package/dist/translations/eu.umd.js +2 -2
- package/dist/translations/fa.d.ts +2 -2
- package/dist/translations/fa.js +2 -2
- package/dist/translations/fa.umd.js +2 -2
- package/dist/translations/fi.d.ts +2 -2
- package/dist/translations/fi.js +2 -2
- package/dist/translations/fi.umd.js +2 -2
- package/dist/translations/fr.d.ts +2 -2
- package/dist/translations/fr.js +2 -2
- package/dist/translations/fr.umd.js +2 -2
- package/dist/translations/gl.d.ts +2 -2
- package/dist/translations/gl.js +2 -2
- package/dist/translations/gl.umd.js +2 -2
- package/dist/translations/gu.d.ts +2 -2
- package/dist/translations/gu.js +2 -2
- package/dist/translations/gu.umd.js +2 -2
- package/dist/translations/he.d.ts +2 -2
- package/dist/translations/he.js +2 -2
- package/dist/translations/he.umd.js +2 -2
- package/dist/translations/hi.d.ts +2 -2
- package/dist/translations/hi.js +2 -2
- package/dist/translations/hi.umd.js +2 -2
- package/dist/translations/hr.d.ts +2 -2
- package/dist/translations/hr.js +2 -2
- package/dist/translations/hr.umd.js +2 -2
- package/dist/translations/hu.d.ts +2 -2
- package/dist/translations/hu.js +2 -2
- package/dist/translations/hu.umd.js +2 -2
- package/dist/translations/hy.d.ts +2 -2
- package/dist/translations/hy.js +2 -2
- package/dist/translations/hy.umd.js +2 -2
- package/dist/translations/id.d.ts +2 -2
- package/dist/translations/id.js +2 -2
- package/dist/translations/id.umd.js +2 -2
- package/dist/translations/it.d.ts +2 -2
- package/dist/translations/it.js +2 -2
- package/dist/translations/it.umd.js +2 -2
- package/dist/translations/ja.d.ts +2 -2
- package/dist/translations/ja.js +2 -2
- package/dist/translations/ja.umd.js +2 -2
- package/dist/translations/jv.d.ts +2 -2
- package/dist/translations/jv.js +2 -2
- package/dist/translations/jv.umd.js +2 -2
- package/dist/translations/kk.d.ts +2 -2
- package/dist/translations/kk.js +2 -2
- package/dist/translations/kk.umd.js +2 -2
- package/dist/translations/km.d.ts +2 -2
- package/dist/translations/km.js +2 -2
- package/dist/translations/km.umd.js +2 -2
- package/dist/translations/kn.d.ts +2 -2
- package/dist/translations/kn.js +2 -2
- package/dist/translations/kn.umd.js +2 -2
- package/dist/translations/ko.d.ts +2 -2
- package/dist/translations/ko.js +2 -2
- package/dist/translations/ko.umd.js +2 -2
- package/dist/translations/ku.d.ts +2 -2
- package/dist/translations/ku.js +2 -2
- package/dist/translations/ku.umd.js +2 -2
- package/dist/translations/lt.d.ts +2 -2
- package/dist/translations/lt.js +2 -2
- package/dist/translations/lt.umd.js +2 -2
- package/dist/translations/lv.d.ts +2 -2
- package/dist/translations/lv.js +2 -2
- package/dist/translations/lv.umd.js +2 -2
- package/dist/translations/ms.d.ts +2 -2
- package/dist/translations/ms.js +2 -2
- package/dist/translations/ms.umd.js +2 -2
- package/dist/translations/nb.d.ts +2 -2
- package/dist/translations/nb.js +2 -2
- package/dist/translations/nb.umd.js +2 -2
- package/dist/translations/ne.d.ts +2 -2
- package/dist/translations/ne.js +2 -2
- package/dist/translations/ne.umd.js +2 -2
- package/dist/translations/nl.d.ts +2 -2
- package/dist/translations/nl.js +2 -2
- package/dist/translations/nl.umd.js +2 -2
- package/dist/translations/no.d.ts +2 -2
- package/dist/translations/no.js +2 -2
- package/dist/translations/no.umd.js +2 -2
- package/dist/translations/oc.d.ts +2 -2
- package/dist/translations/oc.js +2 -2
- package/dist/translations/oc.umd.js +2 -2
- package/dist/translations/pl.d.ts +2 -2
- package/dist/translations/pl.js +2 -2
- package/dist/translations/pl.umd.js +2 -2
- package/dist/translations/pt-br.d.ts +2 -2
- package/dist/translations/pt-br.js +2 -2
- package/dist/translations/pt-br.umd.js +2 -2
- package/dist/translations/pt.d.ts +2 -2
- package/dist/translations/pt.js +2 -2
- package/dist/translations/pt.umd.js +2 -2
- package/dist/translations/ro.d.ts +2 -2
- package/dist/translations/ro.js +2 -2
- package/dist/translations/ro.umd.js +2 -2
- package/dist/translations/ru.d.ts +2 -2
- package/dist/translations/ru.js +2 -2
- package/dist/translations/ru.umd.js +2 -2
- package/dist/translations/si.d.ts +2 -2
- package/dist/translations/si.js +2 -2
- package/dist/translations/si.umd.js +2 -2
- package/dist/translations/sk.d.ts +2 -2
- package/dist/translations/sk.js +2 -2
- package/dist/translations/sk.umd.js +2 -2
- package/dist/translations/sl.d.ts +2 -2
- package/dist/translations/sl.js +2 -2
- package/dist/translations/sl.umd.js +2 -2
- package/dist/translations/sq.d.ts +2 -2
- package/dist/translations/sq.js +2 -2
- package/dist/translations/sq.umd.js +2 -2
- package/dist/translations/sr-latn.d.ts +2 -2
- package/dist/translations/sr-latn.js +2 -2
- package/dist/translations/sr-latn.umd.js +2 -2
- package/dist/translations/sr.d.ts +2 -2
- package/dist/translations/sr.js +2 -2
- package/dist/translations/sr.umd.js +2 -2
- package/dist/translations/sv.d.ts +2 -2
- package/dist/translations/sv.js +2 -2
- package/dist/translations/sv.umd.js +2 -2
- package/dist/translations/th.d.ts +2 -2
- package/dist/translations/th.js +2 -2
- package/dist/translations/th.umd.js +2 -2
- package/dist/translations/ti.d.ts +2 -2
- package/dist/translations/ti.js +2 -2
- package/dist/translations/ti.umd.js +2 -2
- package/dist/translations/tk.d.ts +2 -2
- package/dist/translations/tk.js +2 -2
- package/dist/translations/tk.umd.js +2 -2
- package/dist/translations/tr.d.ts +2 -2
- package/dist/translations/tr.js +2 -2
- package/dist/translations/tr.umd.js +2 -2
- package/dist/translations/tt.d.ts +2 -2
- package/dist/translations/tt.js +2 -2
- package/dist/translations/tt.umd.js +2 -2
- package/dist/translations/ug.d.ts +2 -2
- package/dist/translations/ug.js +2 -2
- package/dist/translations/ug.umd.js +2 -2
- package/dist/translations/uk.d.ts +2 -2
- package/dist/translations/uk.js +2 -2
- package/dist/translations/uk.umd.js +2 -2
- package/dist/translations/ur.d.ts +2 -2
- package/dist/translations/ur.js +2 -2
- package/dist/translations/ur.umd.js +2 -2
- package/dist/translations/uz.d.ts +2 -2
- package/dist/translations/uz.js +2 -2
- package/dist/translations/uz.umd.js +2 -2
- package/dist/translations/vi.d.ts +2 -2
- package/dist/translations/vi.js +2 -2
- package/dist/translations/vi.umd.js +2 -2
- package/dist/translations/zh-cn.d.ts +2 -2
- package/dist/translations/zh-cn.js +2 -2
- package/dist/translations/zh-cn.umd.js +2 -2
- package/dist/translations/zh.d.ts +2 -2
- package/dist/translations/zh.js +2 -2
- package/dist/translations/zh.umd.js +2 -2
- package/lang/translations/af.po +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/ast.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +2 -2
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/eo.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/eu.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/gu.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/hy.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/kk.po +1 -1
- package/lang/translations/km.po +1 -1
- package/lang/translations/kn.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nb.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/oc.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/si.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sl.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/ti.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/uz.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +31 -8
- package/src/adapters/aiadapter.d.ts +1 -1
- package/src/adapters/aiadapter.js +2 -2
- package/src/adapters/aitextadapter.d.ts +1 -1
- package/src/adapters/aitextadapter.js +2 -2
- package/src/adapters/awstextadapter.d.ts +1 -1
- package/src/adapters/awstextadapter.js +2 -2
- package/src/adapters/openaitextadapter.d.ts +1 -1
- package/src/adapters/openaitextadapter.js +2 -2
- package/src/aiassistant.d.ts +21 -3
- package/src/aiassistant.js +2 -2
- package/src/aiassistantediting.d.ts +3 -3
- package/src/aiassistantediting.js +2 -2
- package/src/aiassistantui.d.ts +1 -1
- package/src/aiassistantui.js +2 -2
- package/src/aiconfig.d.ts +1 -1
- package/src/aiconfig.js +1 -1
- package/src/augmentation.d.ts +1 -1
- package/src/augmentation.js +1 -1
- package/src/index.d.ts +3 -2
- package/src/index.js +2 -2
- package/src/legacyerrors.d.ts +1 -1
- package/src/legacyerrors.js +2 -2
- package/src/ui/aiassistantcontroller.d.ts +1 -1
- package/src/ui/aiassistantcontroller.js +3 -3
- package/src/ui/form/aiformcontentarea.d.ts +1 -1
- package/src/ui/form/aiformcontentarea.js +2 -2
- package/src/ui/form/aiformerrorview.d.ts +1 -1
- package/src/ui/form/aiformerrorview.js +2 -2
- package/src/ui/form/aiformpromptview.d.ts +1 -1
- package/src/ui/form/aiformpromptview.js +2 -2
- package/src/ui/form/aiformtoolbarview.d.ts +1 -1
- package/src/ui/form/aiformtoolbarview.js +2 -2
- package/src/ui/form/aiformview.d.ts +1 -1
- package/src/ui/form/aiformview.js +2 -2
- package/src/ui/form/aihistorylistitemview.d.ts +1 -1
- package/src/ui/form/aihistorylistitemview.js +2 -2
- package/src/ui/form/aihistorylistview.d.ts +1 -1
- package/src/ui/form/aihistorylistview.js +2 -2
- package/src/ui/form/prompthistory.d.ts +1 -1
- package/src/ui/form/prompthistory.js +2 -2
- package/src/ui/showaiassistantcommand.d.ts +1 -1
- package/src/ui/showaiassistantcommand.js +2 -2
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +2 -2
- package/src/utils/normalizecommandsconfig.d.ts +1 -1
- package/src/utils/normalizecommandsconfig.js +2 -2
- package/theme/ai-dropdown.css +1 -1
- package/theme/ai-form.css +1 -1
- package/theme/ai.css +1 -1
- package/dist/adapters/aiadapter.d.ts +0 -60
- package/dist/adapters/aitextadapter.d.ts +0 -150
- package/dist/adapters/awstextadapter.d.ts +0 -183
- package/dist/adapters/openaitextadapter.d.ts +0 -187
- package/dist/aiassistant.d.ts +0 -393
- package/dist/aiassistantediting.d.ts +0 -59
- package/dist/aiassistantui.d.ts +0 -62
- package/dist/aiconfig.d.ts +0 -73
- package/dist/augmentation.d.ts +0 -31
- package/dist/index.d.ts +0 -17
- package/dist/legacyerrors.d.ts +0 -9
- package/dist/ui/aiassistantcontroller.d.ts +0 -113
- package/dist/ui/form/aiformcontentarea.d.ts +0 -52
- package/dist/ui/form/aiformerrorview.d.ts +0 -30
- package/dist/ui/form/aiformpromptview.d.ts +0 -50
- package/dist/ui/form/aiformtoolbarview.d.ts +0 -62
- package/dist/ui/form/aiformview.d.ts +0 -145
- package/dist/ui/form/aihistorylistitemview.d.ts +0 -22
- package/dist/ui/form/aihistorylistview.d.ts +0 -39
- package/dist/ui/form/prompthistory.d.ts +0 -24
- package/dist/ui/showaiassistantcommand.d.ts +0 -44
- package/dist/utils/common-translations.d.ts +0 -13
- package/dist/utils/normalizecommandsconfig.d.ts +0 -18
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x596c(){const _0x46fb16=['locale','_createSubmitButton','fieldWrapperChildren','ck-ai-form__toggle-history','19SWRRqj','rtl','bind','focusFirst','right','render','width','maxRows','keystrokes','isOn','minRows','Submit','history','265878SBLQUp','_createShowHistoryButton','resultsView','isEmpty','22740DcvXpU','isVisible','718524VyezEd','add','History','execute','49118JeLOWX','showHistoryButtonView','focusableChildren','focusLast','uiLanguageDirection','fire','5589451tGmSXv','window','4399850sfQhjO','ck-ai-form__submit','submit','2143104QHJnIR','children','update','focusCycler','excludeScrollbarsAndBorders','element','queryView','fieldView','left','set','8DhSdbn','focus','value','requestAnimationFrame','enter','submitButtonView','target','style','filteredView','isEnabled','200TNvmlu'];_0x596c=function(){return _0x46fb16;};return _0x596c();}const _0x4f78fe=_0x5038;function _0x5038(_0x395780,_0x759a7b){const _0x596cbe=_0x596c();return _0x5038=function(_0x503819,_0x1b650f){_0x503819=_0x503819-0x131;let _0x23cc76=_0x596cbe[_0x503819];return _0x23cc76;},_0x5038(_0x395780,_0x759a7b);}(function(_0x55922e,_0x429deb){const _0xb4da08=_0x5038,_0x221cda=_0x55922e();while(!![]){try{const _0x488a5c=-parseInt(_0xb4da08(0x14f))/0x1*(parseInt(_0xb4da08(0x166))/0x2)+-parseInt(_0xb4da08(0x160))/0x3+parseInt(_0xb4da08(0x136))/0x4+-parseInt(_0xb4da08(0x133))/0x5+-parseInt(_0xb4da08(0x162))/0x6+parseInt(_0xb4da08(0x131))/0x7*(parseInt(_0xb4da08(0x140))/0x8)+parseInt(_0xb4da08(0x15c))/0x9*(parseInt(_0xb4da08(0x14a))/0xa);if(_0x488a5c===_0x429deb)break;else _0x221cda['push'](_0x221cda['shift']());}catch(_0x648776){_0x221cda['push'](_0x221cda['shift']());}}}(_0x596c,0x6e270));import{Rect as _0x36b12f,global as _0x11613e,isVisible as _0x4efdf0}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x5a0986,ButtonView as _0x291fbf}from'ckeditor5/src/ui.js';import{icons as _0x53456b}from'ckeditor5/src/core.js';import{getTranslation as _0x8c5768}from'../../utils/common-translations.js';import _0x3d0a7c from'../../../theme/icons/submit.svg';export default class ht extends _0x5a0986{constructor(_0x41dff8,_0x27193f){const _0x2a12e7=_0x5038;super(_0x41dff8,_0x27193f),this[_0x2a12e7(0x13c)][_0x2a12e7(0x13d)][_0x2a12e7(0x159)]=0x1,this[_0x2a12e7(0x13c)][_0x2a12e7(0x13d)][_0x2a12e7(0x156)]=0x3,this[_0x2a12e7(0x145)]=this[_0x2a12e7(0x14c)](),this[_0x2a12e7(0x167)]=this[_0x2a12e7(0x15d)](),this[_0x2a12e7(0x168)][_0x2a12e7(0x163)](this[_0x2a12e7(0x167)],0x1),this[_0x2a12e7(0x168)][_0x2a12e7(0x163)](this[_0x2a12e7(0x145)]);}[_0x4f78fe(0x154)](){const _0x1851a1=_0x4f78fe;super[_0x1851a1(0x154)](),this[_0x1851a1(0x13c)][_0x1851a1(0x14d)][_0x1851a1(0x163)](this[_0x1851a1(0x167)]),this[_0x1851a1(0x137)][_0x1851a1(0x163)](this[_0x1851a1(0x145)]),this[_0x1851a1(0x157)][_0x1851a1(0x13f)](_0x1851a1(0x144),(_0x15e7de,_0x5d6d8a)=>{const _0x5222a2=_0x1851a1;_0x15e7de[_0x5222a2(0x146)]==this[_0x5222a2(0x13c)][_0x5222a2(0x13d)][_0x5222a2(0x13b)]&&(this[_0x5222a2(0x135)](),_0x5d6d8a());});}[_0x4f78fe(0x14c)](){const _0x34d7d3=_0x4f78fe,_0x8604ea=new _0x291fbf(this[_0x34d7d3(0x14b)]),_0x2c52ea=this[_0x34d7d3(0x14b)];return _0x8604ea[_0x34d7d3(0x13f)]({'icon':_0x3d0a7c,'label':_0x8c5768(_0x2c52ea,_0x34d7d3(0x15a)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x34d7d3(0x134)}),_0x8604ea['on'](_0x34d7d3(0x165),()=>{const _0x1e2621=_0x34d7d3;this[_0x1e2621(0x135)]();}),_0x8604ea[_0x34d7d3(0x151)](_0x34d7d3(0x149))['to'](this[_0x34d7d3(0x13c)][_0x34d7d3(0x13d)],_0x34d7d3(0x15f),this,_0x34d7d3(0x149),(_0xe356ca,_0x564f73)=>!_0xe356ca&&_0x564f73),_0x8604ea;}[_0x4f78fe(0x15d)](){const _0x3710ae=_0x4f78fe,_0x40d8d2=new _0x291fbf(this[_0x3710ae(0x14b)]),_0x593e43=this[_0x3710ae(0x15e)],_0x4c5ad6=this[_0x3710ae(0x14b)];_0x40d8d2[_0x3710ae(0x13f)]({'label':_0x8c5768(_0x4c5ad6,_0x3710ae(0x164)),'withText':!0x1,'icon':_0x53456b[_0x3710ae(0x15b)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x3710ae(0x14e)}),_0x40d8d2[_0x3710ae(0x151)](_0x3710ae(0x158))['to'](_0x593e43,_0x3710ae(0x161)),_0x40d8d2[_0x3710ae(0x151)](_0x3710ae(0x149))['to'](this,_0x3710ae(0x149)),_0x40d8d2['on'](_0x3710ae(0x165),()=>{const _0x17daa1=_0x3710ae;_0x593e43[_0x17daa1(0x161)]=!_0x593e43[_0x17daa1(0x161)],_0x593e43[_0x17daa1(0x161)]?this[_0x17daa1(0x148)][_0x17daa1(0x141)]():this[_0x17daa1(0x141)]();});const _0x463c06=()=>{const _0x5d9161=_0x3710ae;_0x11613e[_0x5d9161(0x132)][_0x5d9161(0x143)](()=>{const _0x419b13=_0x5d9161;if(_0x4efdf0(this[_0x419b13(0x13b)])){const _0x5908f6=new _0x36b12f(this[_0x419b13(0x13c)][_0x419b13(0x13d)][_0x419b13(0x13b)]),_0x51791c=_0x5908f6[_0x419b13(0x155)],_0x5c3003=_0x419b13(0x150)===_0x4c5ad6[_0x419b13(0x16a)]?_0x419b13(0x13e):_0x419b13(0x153);_0x5908f6[_0x419b13(0x13a)](),_0x40d8d2[_0x419b13(0x13b)][_0x419b13(0x147)][_0x5c3003]=_0x51791c-_0x5908f6[_0x419b13(0x155)]+0x1+'px';}});};return this[_0x3710ae(0x13c)][_0x3710ae(0x13d)]['on'](_0x3710ae(0x138),_0x463c06),this['on'](_0x3710ae(0x154),_0x463c06),_0x40d8d2;}[_0x4f78fe(0x135)](){const _0x3e76fd=_0x4f78fe,_0x4fa2aa=this[_0x3e76fd(0x13c)][_0x3e76fd(0x13d)][_0x3e76fd(0x13b)][_0x3e76fd(0x142)];this[_0x3e76fd(0x16b)](_0x3e76fd(0x135),_0x4fa2aa);}[_0x4f78fe(0x141)](_0x4994eb){const _0x5cfa23=_0x4f78fe;-0x1===_0x4994eb?this[_0x5cfa23(0x139)][_0x5cfa23(0x169)]():this[_0x5cfa23(0x139)][_0x5cfa23(0x152)]();}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x592522=_0x5ed3;(function(_0x3239ba,_0x24285b){const _0xae49f3=_0x5ed3,_0x20defa=_0x3239ba();while(!![]){try{const _0x53cc75=parseInt(_0xae49f3(0x86))/0x1*(-parseInt(_0xae49f3(0x72))/0x2)+parseInt(_0xae49f3(0x93))/0x3*(-parseInt(_0xae49f3(0x87))/0x4)+-parseInt(_0xae49f3(0x75))/0x5*(parseInt(_0xae49f3(0x73))/0x6)+parseInt(_0xae49f3(0x7e))/0x7*(parseInt(_0xae49f3(0x77))/0x8)+parseInt(_0xae49f3(0x7c))/0x9+-parseInt(_0xae49f3(0x90))/0xa*(parseInt(_0xae49f3(0x7d))/0xb)+parseInt(_0xae49f3(0x80))/0xc*(parseInt(_0xae49f3(0x74))/0xd);if(_0x53cc75===_0x24285b)break;else _0x20defa['push'](_0x20defa['shift']());}catch(_0x50b07f){_0x20defa['push'](_0x20defa['shift']());}}}(_0x599d,0xa741a));import{ToolbarView as _0xae2156,ButtonView as _0x5f0511}from'ckeditor5/src/ui.js';function _0x5ed3(_0x57f73f,_0xad9699){const _0x599d1a=_0x599d();return _0x5ed3=function(_0x5ed3ff,_0x5d694a){_0x5ed3ff=_0x5ed3ff-0x6c;let _0x2388a5=_0x599d1a[_0x5ed3ff];return _0x2388a5;},_0x5ed3(_0x57f73f,_0xad9699);}import{getTranslation as _0x3999dd}from'../../utils/common-translations.js';function _0x599d(){const _0x772762=['19263IoYPwR','isVisible','replaceButton','replace','ck-ai-form__toolbar','items','label','1495586jkSbgw','3973278peNORC','221ZIYurt','10sbsTVQ','ck-hidden','1820248uKiqKc','insertButton','bind','toUpperCase','insert','12277215EGjbfk','231aIKNIV','21tMDNcq','tryAgainButton','1414212LYWPHI','extendTemplate','AI_','_CONTENT','Try\x20again','locale','1YGQyjB','44Dyqhci','Insert\x20below','Stop','REPLACE','addMany','stopButton','set','bindTemplate','mainAction','582030PHYXps','_createButton','ck-button-action'];_0x599d=function(){return _0x772762;};return _0x599d();}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x592522(0x6e),'INSERT':_0x592522(0x7b)};export default class at extends _0xae2156{constructor(_0x55af4f){const _0x2323e9=_0x592522;super(_0x55af4f),this[_0x2323e9(0x8d)](_0x2323e9(0x6c),!0x1),this[_0x2323e9(0x8d)](_0x2323e9(0x8f),AIFormToolbarViewMainActionLabel[_0x2323e9(0x8a)]),this[_0x2323e9(0x6d)]=this[_0x2323e9(0x91)]('',_0x2323e9(0x92)),this[_0x2323e9(0x6d)][_0x2323e9(0x79)](_0x2323e9(0x71))['to'](this,_0x2323e9(0x8f),_0x3f3da2=>_0x3999dd(_0x55af4f,_0x2323e9(0x82)+_0x3f3da2[_0x2323e9(0x7a)]()+_0x2323e9(0x83))),this[_0x2323e9(0x78)]=this[_0x2323e9(0x91)](_0x3999dd(_0x55af4f,_0x2323e9(0x88))),this[_0x2323e9(0x7f)]=this[_0x2323e9(0x91)](_0x3999dd(_0x55af4f,_0x2323e9(0x84))),this[_0x2323e9(0x8c)]=this[_0x2323e9(0x91)](_0x3999dd(_0x55af4f,_0x2323e9(0x89)));const _0x472d39=this[_0x2323e9(0x8e)];this[_0x2323e9(0x81)]({'attributes':{'class':[_0x2323e9(0x6f),_0x472d39['if'](_0x2323e9(0x6c),_0x2323e9(0x76),_0x4f7b0b=>!_0x4f7b0b)]}}),this[_0x2323e9(0x70)][_0x2323e9(0x8b)]([this[_0x2323e9(0x6d)],this[_0x2323e9(0x78)],this[_0x2323e9(0x7f)],this[_0x2323e9(0x8c)]]);}[_0x592522(0x91)](_0x32588a,_0x169629){const _0x43a934=_0x592522,_0x56021f=new _0x5f0511(this[_0x43a934(0x85)]);return _0x56021f[_0x43a934(0x8d)]({'label':_0x32588a,'class':_0x169629||'','isVisible':!0x0,'withText':!0x0}),_0x56021f;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5d676d=_0x1378;(function(_0x4e47c8,_0x8f194a){const _0x3d73e3=_0x1378,_0x3b2eff=_0x4e47c8();while(!![]){try{const _0x50a164=-parseInt(_0x3d73e3(0x1f4))/0x1+parseInt(_0x3d73e3(0x214))/0x2*(-parseInt(_0x3d73e3(0x1f5))/0x3)+-parseInt(_0x3d73e3(0x227))/0x4*(-parseInt(_0x3d73e3(0x1ed))/0x5)+parseInt(_0x3d73e3(0x1fd))/0x6*(parseInt(_0x3d73e3(0x1e6))/0x7)+-parseInt(_0x3d73e3(0x1fb))/0x8*(-parseInt(_0x3d73e3(0x1f6))/0x9)+-parseInt(_0x3d73e3(0x1e0))/0xa+parseInt(_0x3d73e3(0x221))/0xb;if(_0x50a164===_0x8f194a)break;else _0x3b2eff['push'](_0x3b2eff['shift']());}catch(_0x4d1e1d){_0x3b2eff['push'](_0x3b2eff['shift']());}}}(_0x1443,0x5f1b7));import{FocusTracker as _0xaccc98,KeystrokeHandler as _0x514169}from'ckeditor5/src/utils.js';import{View as _0x2baaad,FocusCycler as _0x4f6253,createLabeledTextarea as _0x2d3ac1}from'ckeditor5/src/ui.js';import _0xd94f72,{AIFormToolbarViewMainActionLabel as _0x55c38e}from'./aiformtoolbarview.js';import _0x35976b from'./aiformcontentarea.js';import _0x169f45 from'./aiformerrorview.js';function _0x1443(){const _0x1ff400=['items','setTemplate','ck-ai-form-content','render','copyButtonView','startProcessing','replaceButton','insertContentBelow','clear','submitPrompt','toolbar','4KPMtFR','label','Empty\x20history','_promptHistory','prompt','set','reset','focusTracker','trim','fire','text','_createToolbar','focusLast','16161596QtJDYP','AI_ERROR_FAILED','historyGroupView','tryAgainEvent','chain','delegate','52376FPXGfv','replaceContent','createCollection','tryAgainButton','isError','focus','bind','search','listenTo','ck-ai-form','contentArea','submit','keystrokes','isEnabled','focusCycler','6307210vaqJkv','stopProcessing','REPLACE','value','element','fieldView','7SkDeND','queryView','finishProcessing','bindTemplate','locale','isProcessing','focusFirst','5ypauCq','execute','_focusables','add','_createPromptView','mainAction','Ask\x20AI\x20to\x20edit\x20or\x20generate','277064jpDjjs','419598EqJuBa','9JiZBlm','promptView','high','shift\x20+\x20tab','Ask\x20AI\x20to\x20improve\x20generated\x20text','424712wSEBKo','tab','249942sahjeV','stopButton','handleError','isVisible','insertButton','ck-hidden','errorView','clearHistory','div','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','bindTo','_createHistoryView'];_0x1443=function(){return _0x1ff400;};return _0x1443();}import _0x4bbbaf from'./aiformpromptview.js';function _0x1378(_0x19fb55,_0x4d5c45){const _0x144320=_0x1443();return _0x1378=function(_0x13783e,_0x56c88a){_0x13783e=_0x13783e-0x1da;let _0x4a97df=_0x144320[_0x13783e];return _0x4a97df;},_0x1378(_0x19fb55,_0x4d5c45);}import _0x3a11ac from'./aihistorylistview.js';import _0x52e62e from'./aihistorylistitemview.js';import _0xa13095 from'./prompthistory.js';import{getTranslation as _0x4c52a9}from'../../utils/common-translations.js';import{escape as _0x3bd29d}from'lodash-es';export default class k extends _0x2baaad{constructor(_0x214a10,_0x44e4c6,_0x224104=''){const _0x559274=_0x1378;super(_0x214a10),this[_0x559274(0x219)](_0x559274(0x1de),!0x0),this[_0x559274(0x219)](_0x559274(0x1eb),!0x1),this[_0x559274(0x219)](_0x559274(0x218),''),this[_0x559274(0x219)](_0x559274(0x1e3),''),this[_0x559274(0x219)](_0x559274(0x22b),!0x1),this[_0x559274(0x219)](_0x559274(0x1f2),_0x55c38e[_0x559274(0x1e2)]),this[_0x559274(0x217)]=new _0xa13095(),this[_0x559274(0x203)]=new _0x169f45(_0x214a10),this[_0x559274(0x1db)]=new _0x35976b(_0x214a10,_0x224104),this[_0x559274(0x1db)][_0x559274(0x22d)](_0x559274(0x1eb))['to'](this),this[_0x559274(0x1db)][_0x559274(0x22d)](_0x559274(0x1e3))['to'](this),this[_0x559274(0x213)]=this[_0x559274(0x21f)](),this[_0x559274(0x213)][_0x559274(0x22d)](_0x559274(0x1f2))['to'](this),this[_0x559274(0x1f7)]=this[_0x559274(0x1f1)](),this[_0x559274(0x21b)]=new _0xaccc98(),this[_0x559274(0x1dd)]=new _0x514169(),this[_0x559274(0x1ef)]=this[_0x559274(0x229)]([this[_0x559274(0x1db)],this[_0x559274(0x1db)][_0x559274(0x20d)],this[_0x559274(0x213)],this[_0x559274(0x1f7)]]),this[_0x559274(0x1df)]=new _0x4f6253({'focusables':this[_0x559274(0x1ef)],'focusTracker':this[_0x559274(0x21b)],'keystrokeHandler':this[_0x559274(0x1dd)],'actions':{'focusPrevious':_0x559274(0x1f9),'focusNext':_0x559274(0x1fc)}}),this[_0x559274(0x1df)][_0x559274(0x225)](this[_0x559274(0x1f7)][_0x559274(0x1df)]),this[_0x559274(0x1f7)][_0x559274(0x1e7)][_0x559274(0x1e5)][_0x559274(0x22d)](_0x559274(0x1e3))['to'](this,_0x559274(0x218));const _0x15c896=this[_0x559274(0x1e9)];this[_0x559274(0x20a)]({'tag':_0x559274(0x205),'attributes':{'class':['ck',_0x559274(0x1da),_0x44e4c6],'tabindex':'-1'},'children':[{'tag':_0x559274(0x205),'attributes':{'class':['ck',_0x559274(0x20b)]},'children':[{'tag':_0x559274(0x205),'attributes':{'class':[_0x15c896['if'](_0x559274(0x22b),_0x559274(0x202),_0x1fe38c=>!_0x1fe38c)]},'children':[this[_0x559274(0x203)]]},this[_0x559274(0x1db)],this[_0x559274(0x213)],this[_0x559274(0x1f7)]]}]});}[_0x5d676d(0x20c)](){const _0x54e7d4=_0x5d676d;super[_0x54e7d4(0x20c)](),this[_0x54e7d4(0x21b)][_0x54e7d4(0x1f0)](this[_0x54e7d4(0x1db)][_0x54e7d4(0x1e4)]),this[_0x54e7d4(0x21b)][_0x54e7d4(0x1f0)](this[_0x54e7d4(0x1db)][_0x54e7d4(0x20d)][_0x54e7d4(0x1e4)]),this[_0x54e7d4(0x21b)][_0x54e7d4(0x1f0)](this[_0x54e7d4(0x213)][_0x54e7d4(0x1e4)]),this[_0x54e7d4(0x21b)][_0x54e7d4(0x1f0)](this[_0x54e7d4(0x1f7)][_0x54e7d4(0x1e4)]),this[_0x54e7d4(0x1dd)][_0x54e7d4(0x22f)](this[_0x54e7d4(0x1e4)]);}[_0x5d676d(0x22c)](_0x3807fb=0x1){const _0x3f7f88=_0x5d676d;-0x1===_0x3807fb?this[_0x3f7f88(0x1df)][_0x3f7f88(0x220)]():this[_0x3f7f88(0x1df)][_0x3f7f88(0x1ec)]();}[_0x5d676d(0x21a)](){const _0x1120af=_0x5d676d;this[_0x1120af(0x218)]='',this[_0x1120af(0x1e3)]='',this[_0x1120af(0x22b)]=!0x1,this[_0x1120af(0x1f7)][_0x1120af(0x21a)](),this[_0x1120af(0x1db)][_0x1120af(0x200)]=!0x1,this[_0x1120af(0x213)][_0x1120af(0x200)]=!0x1;}[_0x5d676d(0x1f1)](){const _0x3aec7e=_0x5d676d,_0x2eafeb=this[_0x3aec7e(0x1ea)],_0x5bda5f=new _0x4bbbaf(_0x2eafeb,{'queryView':{'label':_0x4c52a9(_0x2eafeb,_0x3aec7e(0x1f3)),'creator':_0x2d3ac1,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x4c52a9(_0x2eafeb,_0x3aec7e(0x216)),'secondary':_0x4c52a9(_0x2eafeb,_0x3aec7e(0x206))}}},'filteredView':this[_0x3aec7e(0x208)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x5bda5f[_0x3aec7e(0x22d)](_0x3aec7e(0x1de))['to'](this,_0x3aec7e(0x1de),this,_0x3aec7e(0x1eb),(_0x4e063f,_0x26da41)=>_0x4e063f&&!_0x26da41),this[_0x3aec7e(0x22f)](_0x5bda5f,_0x3aec7e(0x1dc),(_0x5f3105,_0x1dea4a)=>{const _0x43cb50=_0x3aec7e;this[_0x43cb50(0x218)]=_0x1dea4a;const _0x3b6ef3=_0x3bd29d(_0x1dea4a);this[_0x43cb50(0x21d)](_0x43cb50(0x212),_0x3b6ef3),_0x1dea4a[_0x43cb50(0x21c)]()&&this[_0x43cb50(0x217)][_0x43cb50(0x1f0)]({'prompt':_0x3b6ef3},0x0);},{'priority':_0x3aec7e(0x1f8)}),_0x5bda5f;}[_0x5d676d(0x208)](){const _0x5a7425=_0x5d676d,_0x4af018=new _0x3a11ac(this[_0x5a7425(0x1ea)]);return _0x4af018[_0x5a7425(0x223)][_0x5a7425(0x209)][_0x5a7425(0x207)](this[_0x5a7425(0x217)])['as'](_0x52e62e),_0x4af018['on'](_0x5a7425(0x204),()=>{const _0x48861f=_0x5a7425;this[_0x48861f(0x217)][_0x48861f(0x211)](),this[_0x48861f(0x1f7)][_0x48861f(0x22e)](''),this[_0x48861f(0x1f7)][_0x48861f(0x22c)]();}),_0x4af018;}[_0x5d676d(0x21f)](){const _0x2d6ec9=_0x5d676d,_0x1bb2d0=new _0xd94f72(this[_0x2d6ec9(0x1ea)]);return _0x1bb2d0[_0x2d6ec9(0x20f)][_0x2d6ec9(0x22d)](_0x2d6ec9(0x1de))['to'](this,_0x2d6ec9(0x1de),this,_0x2d6ec9(0x1eb),this,_0x2d6ec9(0x1e3),(_0x5e0e07,_0x5af799,_0x175cfd)=>_0x5e0e07&&!_0x5af799&&!!_0x175cfd),_0x1bb2d0[_0x2d6ec9(0x20f)][_0x2d6ec9(0x226)](_0x2d6ec9(0x1ee))['to'](this,_0x2d6ec9(0x228)),_0x1bb2d0[_0x2d6ec9(0x201)][_0x2d6ec9(0x22d)](_0x2d6ec9(0x1de))['to'](this,_0x2d6ec9(0x1de),this,_0x2d6ec9(0x1eb),this,_0x2d6ec9(0x1e3),(_0x2f6c0d,_0x308e04,_0x401119)=>_0x2f6c0d&&!_0x308e04&&!!_0x401119),_0x1bb2d0[_0x2d6ec9(0x201)][_0x2d6ec9(0x226)](_0x2d6ec9(0x1ee))['to'](this,_0x2d6ec9(0x210)),_0x1bb2d0[_0x2d6ec9(0x22a)][_0x2d6ec9(0x22d)](_0x2d6ec9(0x1de))['to'](this,_0x2d6ec9(0x1de),this,_0x2d6ec9(0x1eb),(_0x36663c,_0x529740)=>_0x36663c&&!_0x529740),_0x1bb2d0[_0x2d6ec9(0x22a)][_0x2d6ec9(0x226)](_0x2d6ec9(0x1ee))['to'](this,_0x2d6ec9(0x224)),_0x1bb2d0[_0x2d6ec9(0x1fe)][_0x2d6ec9(0x22d)](_0x2d6ec9(0x1de))['to'](this,_0x2d6ec9(0x1eb)),_0x1bb2d0[_0x2d6ec9(0x1fe)][_0x2d6ec9(0x226)](_0x2d6ec9(0x1ee))['to'](this,_0x2d6ec9(0x1e1)),_0x1bb2d0;}[_0x5d676d(0x20e)](){const _0x1551f3=_0x5d676d;this[_0x1551f3(0x1e3)]='',this[_0x1551f3(0x22b)]=!0x1,this[_0x1551f3(0x1eb)]=!0x0,this[_0x1551f3(0x1db)][_0x1551f3(0x200)]=!0x0,this[_0x1551f3(0x213)][_0x1551f3(0x200)]=!0x0,this[_0x1551f3(0x1db)][_0x1551f3(0x22c)]();}[_0x5d676d(0x1e8)](){const _0x41caa5=_0x5d676d,_0x337e4d=this[_0x41caa5(0x1ea)];this[_0x41caa5(0x1eb)]=!0x1,this[_0x41caa5(0x218)]='',this[_0x41caa5(0x1f7)][_0x41caa5(0x21a)](),this[_0x41caa5(0x1e3)]&&(this[_0x41caa5(0x1f7)][_0x41caa5(0x1e7)][_0x41caa5(0x215)]=_0x4c52a9(_0x337e4d,_0x41caa5(0x1fa)));}[_0x5d676d(0x1ff)](_0x57f0c0){const _0x36e5fb=_0x5d676d,_0x4ec0ac=this[_0x36e5fb(0x1ea)];this[_0x36e5fb(0x1e8)](),this[_0x36e5fb(0x22b)]=!0x0,this[_0x36e5fb(0x203)][_0x36e5fb(0x21e)]=_0x57f0c0||_0x4c52a9(_0x4ec0ac,_0x36e5fb(0x222)),this[_0x36e5fb(0x1e3)]||(this[_0x36e5fb(0x1db)][_0x36e5fb(0x200)]=!0x1);}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x206f95,_0x43157a){const _0x12ebcb=_0x4221,_0xc09507=_0x206f95();while(!![]){try{const _0x9624f7=parseInt(_0x12ebcb(0xee))/0x1+parseInt(_0x12ebcb(0xf6))/0x2*(-parseInt(_0x12ebcb(0xe9))/0x3)+-parseInt(_0x12ebcb(0xf1))/0x4+-parseInt(_0x12ebcb(0xea))/0x5*(parseInt(_0x12ebcb(0xeb))/0x6)+parseInt(_0x12ebcb(0xec))/0x7*(-parseInt(_0x12ebcb(0xf2))/0x8)+-parseInt(_0x12ebcb(0xf5))/0x9+-parseInt(_0x12ebcb(0xef))/0xa*(-parseInt(_0x12ebcb(0xed))/0xb);if(_0x9624f7===_0x43157a)break;else _0xc09507['push'](_0xc09507['shift']());}catch(_0x3a0f04){_0xc09507['push'](_0xc09507['shift']());}}}(_0x5db3,0xda70e));function _0x5db3(){const _0x14eb48=['3933ggIAib','528985DZMWzh','42bgMfpr','273AodRpa','78251294yTgvaZ','77894AaKAnL','10GSygFc','locale','6819628zaVytv','319552QLEZeL','execute','fire','11840454CdhwEF','1492VMxwje','children','prompt','set','add'];_0x5db3=function(){return _0x14eb48;};return _0x5db3();}import{ListItemView as _0x73801c,ButtonView as _0x32854a,ButtonLabelView as _0x3747be}from'ckeditor5/src/ui.js';function _0x4221(_0x36a9dd,_0x1fc346){const _0x5db311=_0x5db3();return _0x4221=function(_0x42216d,_0x3654a2){_0x42216d=_0x42216d-0xe5;let _0x23381d=_0x5db311[_0x42216d];return _0x23381d;},_0x4221(_0x36a9dd,_0x1fc346);}import{unescape as _0x2fad73}from'lodash-es';export default class hs extends _0x73801c{constructor(_0x599e51){const _0x3cecf9=_0x4221;super();const _0x50de76=new _0x3747be(),_0x4a9954=new _0x32854a(this[_0x3cecf9(0xf0)],_0x50de76);this[_0x3cecf9(0xe5)][_0x3cecf9(0xe8)](_0x4a9954),_0x4a9954[_0x3cecf9(0xe7)]({'label':_0x599e51[_0x3cecf9(0xe6)],'withText':!0x0}),_0x4a9954['on'](_0x3cecf9(0xf3),()=>{const _0x280a01=_0x3cecf9;this[_0x280a01(0xf4)](_0x280a01(0xf3),{'value':_0x2fad73(_0x599e51[_0x280a01(0xe6)])});});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e6e3f=_0x194c;(function(_0x31fd1a,_0x3c53f3){const _0x54d719=_0x194c,_0x52de8e=_0x31fd1a();while(!![]){try{const _0x269224=-parseInt(_0x54d719(0xab))/0x1*(-parseInt(_0x54d719(0x99))/0x2)+-parseInt(_0x54d719(0x97))/0x3+-parseInt(_0x54d719(0xa4))/0x4*(parseInt(_0x54d719(0x94))/0x5)+-parseInt(_0x54d719(0xaa))/0x6*(-parseInt(_0x54d719(0x9e))/0x7)+-parseInt(_0x54d719(0x8f))/0x8*(-parseInt(_0x54d719(0x9d))/0x9)+-parseInt(_0x54d719(0xa3))/0xa+parseInt(_0x54d719(0xa1))/0xb*(parseInt(_0x54d719(0xa2))/0xc);if(_0x269224===_0x3c53f3)break;else _0x52de8e['push'](_0x52de8e['shift']());}catch(_0x3d0b05){_0x52de8e['push'](_0x52de8e['shift']());}}}(_0x873e,0xabd71));function _0x194c(_0x4372b1,_0x59fd2e){const _0x873e20=_0x873e();return _0x194c=function(_0x194ce9,_0x15a936){_0x194ce9=_0x194ce9-0x8f;let _0x4122d0=_0x873e20[_0x194ce9];return _0x4122d0;},_0x194c(_0x4372b1,_0x59fd2e);}function _0x873e(){const _0x2e1cee=['10411550hoRvMQ','156OIyguA','historyGroupView','_createClearHistoryButton','items','fire','add','12YFdnZi','7qySdoR','6872KFLjAx','filter','Clear','clearHistory','locale','148415HnsUyT','label','length','2584509UZXaRU','clearHistoryButton','7846rryCRo','set','children','execute','14571CBDbin','1574342gURRAc','delegate','Prompt\x20history','1738hxDtWZ','144012vmqSGf'];_0x873e=function(){return _0x2e1cee;};return _0x873e();}import{ListView as _0x1da3e8,ListItemGroupView as _0x184808,ButtonView as _0x465068}from'ckeditor5/src/ui.js';import{getTranslation as _0x31b5db}from'../../utils/common-translations.js';export default class rs extends _0x1da3e8{constructor(_0x528469){const _0x30019c=_0x194c;super(_0x528469),this[_0x30019c(0x98)]=this[_0x30019c(0xa6)](),this[_0x30019c(0xa5)]=new _0x184808(),this[_0x30019c(0xa5)][_0x30019c(0x9b)][_0x30019c(0xa9)](this[_0x30019c(0x98)],0x1),this[_0x30019c(0xa5)][_0x30019c(0x95)]=_0x31b5db(_0x528469,_0x30019c(0xa0)),this[_0x30019c(0xa5)][_0x30019c(0xa7)][_0x30019c(0x9f)](_0x30019c(0x9c))['to'](this),this[_0x30019c(0xa7)][_0x30019c(0xa9)](this[_0x30019c(0xa5)]);}[_0x3e6e3f(0x90)](){const _0x5eac33=_0x3e6e3f;let _0x57b298=0x0;for(const _0x225f02 of this[_0x5eac33(0xa7)])_0x57b298+=_0x225f02[_0x5eac33(0xa7)][_0x5eac33(0x96)];return{'resultsCount':_0x57b298,'totalItemsCount':_0x57b298};}[_0x3e6e3f(0xa6)](){const _0x623215=_0x3e6e3f,_0x23e592=this[_0x623215(0x93)],_0x1ec1d9=new _0x465068(this[_0x623215(0x93)]);return _0x1ec1d9[_0x623215(0x9a)]({'label':'('+_0x31b5db(_0x23e592,_0x623215(0x91))+')','withText':!0x0}),_0x1ec1d9['on'](_0x623215(0x9c),()=>this[_0x623215(0xa8)](_0x623215(0x92))),_0x1ec1d9;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
5
|
import { Collection } from 'ckeditor5/src/utils.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x206f(_0x4224f3,_0x41be9d){const _0x19d3fc=_0x19d3();return _0x206f=function(_0x206f0c,_0x5b6093){_0x206f0c=_0x206f0c-0x152;let _0x3e303d=_0x19d3fc[_0x206f0c];return _0x3e303d;},_0x206f(_0x4224f3,_0x41be9d);}const _0x58aafb=_0x206f;(function(_0xc3aa24,_0x1a376e){const _0x45ca71=_0x206f,_0x10b856=_0xc3aa24();while(!![]){try{const _0x5b35ff=-parseInt(_0x45ca71(0x165))/0x1+-parseInt(_0x45ca71(0x161))/0x2+parseInt(_0x45ca71(0x153))/0x3*(-parseInt(_0x45ca71(0x16a))/0x4)+-parseInt(_0x45ca71(0x15c))/0x5+parseInt(_0x45ca71(0x166))/0x6*(parseInt(_0x45ca71(0x164))/0x7)+parseInt(_0x45ca71(0x15e))/0x8+parseInt(_0x45ca71(0x162))/0x9;if(_0x5b35ff===_0x1a376e)break;else _0x10b856['push'](_0x10b856['shift']());}catch(_0x2dbca7){_0x10b856['push'](_0x10b856['shift']());}}}(_0x19d3,0x1ab06));import{Collection as _0xa5f771}from'ckeditor5/src/utils.js';const cs=_0x58aafb(0x15a);export default class os extends _0xa5f771{constructor(){const _0x22e956=_0x58aafb;super(),this[_0x22e956(0x158)](),this['on'](_0x22e956(0x154),(_0x22431f,_0x1edd91)=>{const _0x1420c3=_0x22e956,_0x443cb=Ss(_0x1edd91[_0x1420c3(0x160)]);for(const _0xbd0625 of this)if(_0xbd0625!=_0x1edd91&&Ss(_0xbd0625[_0x1420c3(0x160)])===_0x443cb){this[_0x1420c3(0x157)](_0xbd0625);break;}this[_0x1420c3(0x15f)]>0x14&&this[_0x1420c3(0x157)](this[_0x1420c3(0x155)]),this[_0x1420c3(0x167)]();}),this['on'](_0x22e956(0x157),()=>{const _0x8a079c=_0x22e956;this[_0x8a079c(0x167)]();});}[_0x58aafb(0x158)](){const _0x5321c8=_0x58aafb,_0x41ff2c=sessionStorage[_0x5321c8(0x163)](cs)||'[]';this[_0x5321c8(0x15b)](JSON[_0x5321c8(0x152)](_0x41ff2c));}[_0x58aafb(0x167)](){const _0x36fe3f=_0x58aafb;sessionStorage[_0x36fe3f(0x15d)](cs,JSON[_0x36fe3f(0x159)](this[_0x36fe3f(0x156)](_0x3fe73a=>_0x3fe73a)));}}function Ss(_0x4633da){const _0xec6914=_0x58aafb;return _0x4633da[_0xec6914(0x168)]()[_0xec6914(0x169)]();}function _0x19d3(){const _0x152bd9=['trim','4PVZouc','parse','336912ZqgLim','add','last','map','remove','_loadFromSessionStorage','stringify','CKEditor/AIFormView/PromptHistory','addMany','978715kRsddZ','setItem','16600vVeNQd','length','prompt','303264JoFLDW','4433157kVudNK','getItem','7cyxYMv','20282Wsktvs','567786WxpKaB','_saveToSessionStorage','toLowerCase'];_0x19d3=function(){return _0x152bd9;};return _0x19d3();}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x91c8(_0x1c2012,_0x14b3a2){const _0x5a4e76=_0x5a4e();return _0x91c8=function(_0x91c80d,_0x51034f){_0x91c80d=_0x91c80d-0x143;let _0x439d6a=_0x5a4e76[_0x91c80d];return _0x439d6a;},_0x91c8(_0x1c2012,_0x14b3a2);}const _0x1047b0=_0x91c8;(function(_0x525a52,_0x3f1fbf){const _0x1b5496=_0x91c8,_0xb44e98=_0x525a52();while(!![]){try{const _0x43d869=parseInt(_0x1b5496(0x157))/0x1+-parseInt(_0x1b5496(0x165))/0x2+parseInt(_0x1b5496(0x144))/0x3+-parseInt(_0x1b5496(0x156))/0x4+-parseInt(_0x1b5496(0x15b))/0x5+-parseInt(_0x1b5496(0x155))/0x6+parseInt(_0x1b5496(0x152))/0x7;if(_0x43d869===_0x3f1fbf)break;else _0xb44e98['push'](_0xb44e98['shift']());}catch(_0x4655e8){_0xb44e98['push'](_0xb44e98['shift']());}}}(_0x5a4e,0x93bba));import{Command as _0x1de729}from'ckeditor5/src/core.js';import _0x348091 from'../aiassistantui.js';export default class E extends _0x1de729{constructor(_0x620904,_0x3f2af4){const _0x1714b9=_0x91c8;super(_0x620904),this[_0x1714b9(0x147)]=_0x3f2af4,this[_0x1714b9(0x162)](_0x1714b9(0x164),[]),this['on'](_0x1714b9(0x15e),(_0x1cdba9,_0x3237d6,_0x3b6347)=>{const _0x15b8f1=_0x1714b9;this[_0x15b8f1(0x161)]&&(this[_0x15b8f1(0x164)]=G(this[_0x15b8f1(0x147)],_0x3b6347));}),this[_0x1714b9(0x162)](_0x1714b9(0x146),!0x1),this['on'](_0x1714b9(0x158),(_0x1c85cb,_0x5017d4,_0x2ae92d)=>{const _0x649739=_0x1714b9;this[_0x649739(0x164)]=_0x2ae92d?G(this[_0x649739(0x147)],this[_0x649739(0x146)]):[];});}[_0x1047b0(0x145)](){const _0x319d89=_0x1047b0,_0x417302=this[_0x319d89(0x153)][_0x319d89(0x14c)];this[_0x319d89(0x146)]=function(_0x16da99){const _0x561068=_0x319d89,_0x2059ca=_0x16da99[_0x561068(0x154)][_0x561068(0x160)];return _0x2059ca[_0x561068(0x166)]?0x0!==[..._0x2059ca[_0x561068(0x163)]()][_0x561068(0x16a)]&&![..._0x2059ca[_0x561068(0x163)]()][0x0][_0x561068(0x150)]:!!_0x16da99[_0x561068(0x159)](_0x2059ca[_0x561068(0x15d)]());}(_0x417302);const _0x1a42aa=_0x417302[_0x319d89(0x154)][_0x319d89(0x160)],_0x239af7=this[_0x319d89(0x153)][_0x319d89(0x16b)][_0x319d89(0x14f)](_0x319d89(0x14b));for(const _0x5ba1f7 of _0x1a42aa[_0x319d89(0x15c)]())for(const _0xd3f319 of _0x5ba1f7[_0x319d89(0x151)]())if(_0xd3f319['is'](_0x319d89(0x143))&&_0x239af7[_0x319d89(0x15a)](_0xd3f319[_0x319d89(0x149)]))return void(this[_0x319d89(0x161)]=!0x1);this[_0x319d89(0x161)]=!0x0;}[_0x1047b0(0x148)](_0x1f7ded='',_0x216920='',_0x553a18=_0x1047b0(0x168)){const _0x18d4bf=_0x1047b0;this[_0x18d4bf(0x153)][_0x18d4bf(0x14a)][_0x18d4bf(0x14f)](_0x348091)[_0x18d4bf(0x15f)](_0x1f7ded,_0x216920,_0x553a18);}}function _0x5a4e(){const _0x474a83=['showUI','selection','isEnabled','set','getSelectedBlocks','enabledCommandsIds','887976QdQuoT','isCollapsed','requiresContent','custom','values','length','config','element','1432599lrRQwj','refresh','_hasContext','_commandDefinitions','execute','name','plugins','ai.aiAssistant.disabledElements','model','from','add','get','isEmpty','getItems','14262773CfsaaI','editor','document','6777528UKUBJb','947992BLUuJh','130318knRNdF','change:isEnabled','hasContent','includes','1148510BfvDql','getRanges','getFirstRange','change:_hasContext'];_0x5a4e=function(){return _0x474a83;};return _0x5a4e();}function G(_0x4ebc51,_0x45e4c2){const _0x1724f4=_0x1047b0,_0x5a7c35=new Set();for(const _0x5f1e61 of _0x4ebc51[_0x1724f4(0x169)]())(_0x45e4c2||!0x1===_0x5f1e61[_0x1724f4(0x167)])&&_0x5a7c35[_0x1724f4(0x14e)](_0x5f1e61['id']);return Array[_0x1724f4(0x14d)](_0x5a7c35);}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x12e494,_0x3ab8d6,_0x31e2b1){const t=_0x12e494['t'];switch(_0x3ab8d6){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x31e2b1);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x31e2b1);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x31e2b1);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x3ab8d6;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(
|
|
23
|
+
export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x18c2ca,_0x318861){const _0x2d2927=(0x0,_0x318861['t'])('Other');return _0x18c2ca['length']?'groupId'in _0x18c2ca[0x0]?_0x18c2ca:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2d2927,'order':0x1/0x0,'commands':_0x18c2ca}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2d2927,'order':0x1/0x0,'commands':[]}];}
|
package/theme/ai-dropdown.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
4
|
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
5
|
*
|
|
6
|
-
* Copyright (c) 2003-
|
|
6
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
7
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
8
|
*/
|
|
9
9
|
|
package/theme/ai-form.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
4
|
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
5
|
*
|
|
6
|
-
* Copyright (c) 2003-
|
|
6
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
7
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
8
|
*/
|
|
9
9
|
|
package/theme/ai.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
4
|
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
5
|
*
|
|
6
|
-
* Copyright (c) 2003-
|
|
6
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
7
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module ai/adapters/aiadapter
|
|
11
|
-
* @publicApi
|
|
12
|
-
*/
|
|
13
|
-
import { Plugin } from 'ckeditor5/src/core.js';
|
|
14
|
-
import type AITextAdapter from './aitextadapter.js';
|
|
15
|
-
/**
|
|
16
|
-
* Main adapter plugin that is a common interface between AI features and AI adapters.
|
|
17
|
-
*
|
|
18
|
-
* Various AI features require to make calls to AI services. On the other hand, there are various AI adapters that can be
|
|
19
|
-
* loaded, which provide access to different AI service providers.
|
|
20
|
-
*
|
|
21
|
-
* `AIAdapter` brings both parties together. Features use the `AIAdapter` API that is known to them. On the other hand, a concrete adapter
|
|
22
|
-
* implementation can inject itself into `AIAdapter`. This way features and adapters are decoupled.
|
|
23
|
-
*
|
|
24
|
-
* For example:
|
|
25
|
-
*
|
|
26
|
-
* * `AIAssistant` feature needs to make text AI requests, so it uses `AIAdapter#textAdapter`.
|
|
27
|
-
* * `OpenAITextAdapter` plugin, when loaded, sets itself as `AIAdapter#textAdapter`, so features can use it.
|
|
28
|
-
*/
|
|
29
|
-
export default class AIAdapter extends Plugin {
|
|
30
|
-
/**
|
|
31
|
-
* The instance of the loaded AI text adapter instance.
|
|
32
|
-
*
|
|
33
|
-
* The adapter is provided by a different plugin that has to be additionally loaded.
|
|
34
|
-
*/
|
|
35
|
-
textAdapter: AITextAdapter;
|
|
36
|
-
/**
|
|
37
|
-
* @inheritDoc
|
|
38
|
-
*/
|
|
39
|
-
static get pluginName(): "AIAdapter";
|
|
40
|
-
/**
|
|
41
|
-
* @inheritDoc
|
|
42
|
-
*/
|
|
43
|
-
static get isOfficialPlugin(): true;
|
|
44
|
-
/**
|
|
45
|
-
* @inheritDoc
|
|
46
|
-
*/
|
|
47
|
-
static get isPremiumPlugin(): true;
|
|
48
|
-
/**
|
|
49
|
-
* @inheritDoc
|
|
50
|
-
*/
|
|
51
|
-
afterInit(): void;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Error which may be thrown by various AI adapters.
|
|
55
|
-
*
|
|
56
|
-
* When this error is thrown it should be handled by the feature which used the adapter.
|
|
57
|
-
*/
|
|
58
|
-
export declare class AIRequestError extends Error {
|
|
59
|
-
constructor(message: string);
|
|
60
|
-
}
|