@ckeditor/ckeditor5-ai 46.1.1 → 47.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +18 -5
- package/README.md +10 -9
- package/build/ai.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/be.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/ckeditor5-metadata.json +24 -3
- package/dist/index-content.css +0 -1
- package/dist/index-editor.css +2648 -0
- package/dist/index.css +3047 -0
- package/dist/index.js +4 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +162 -1
- package/lang/translations/af.po +612 -0
- package/lang/translations/ar.po +628 -0
- package/lang/translations/ast.po +612 -0
- package/lang/translations/az.po +612 -0
- package/lang/translations/be.po +616 -0
- package/lang/translations/bg.po +612 -0
- package/lang/translations/bn.po +612 -0
- package/lang/translations/bs.po +616 -0
- package/lang/translations/ca.po +612 -0
- package/lang/translations/cs.po +616 -0
- package/lang/translations/da.po +612 -0
- package/lang/translations/de-ch.po +612 -0
- package/lang/translations/de.po +612 -0
- package/lang/translations/el.po +612 -0
- package/lang/translations/en-au.po +612 -0
- package/lang/translations/en-gb.po +612 -0
- package/lang/translations/en.po +612 -0
- package/lang/translations/eo.po +612 -0
- package/lang/translations/es-co.po +612 -0
- package/lang/translations/es.po +612 -0
- package/lang/translations/et.po +612 -0
- package/lang/translations/eu.po +612 -0
- package/lang/translations/fa.po +608 -0
- package/lang/translations/fi.po +612 -0
- package/lang/translations/fr.po +612 -0
- package/lang/translations/gl.po +612 -0
- package/lang/translations/gu.po +612 -0
- package/lang/translations/he.po +612 -0
- package/lang/translations/hi.po +612 -0
- package/lang/translations/hr.po +616 -0
- package/lang/translations/hu.po +612 -0
- package/lang/translations/hy.po +612 -0
- package/lang/translations/id.po +608 -0
- package/lang/translations/it.po +612 -0
- package/lang/translations/ja.po +608 -0
- package/lang/translations/jv.po +612 -0
- package/lang/translations/kk.po +612 -0
- package/lang/translations/km.po +608 -0
- package/lang/translations/kn.po +612 -0
- package/lang/translations/ko.po +608 -0
- package/lang/translations/ku.po +612 -0
- package/lang/translations/lt.po +616 -0
- package/lang/translations/lv.po +616 -0
- package/lang/translations/ms.po +608 -0
- package/lang/translations/nb.po +612 -0
- package/lang/translations/ne.po +612 -0
- package/lang/translations/nl.po +612 -0
- package/lang/translations/no.po +612 -0
- package/lang/translations/oc.po +612 -0
- package/lang/translations/pl.po +616 -0
- package/lang/translations/pt-br.po +612 -0
- package/lang/translations/pt.po +612 -0
- package/lang/translations/ro.po +616 -0
- package/lang/translations/ru.po +616 -0
- package/lang/translations/si.po +612 -0
- package/lang/translations/sk.po +616 -0
- package/lang/translations/sl.po +620 -0
- package/lang/translations/sq.po +612 -0
- package/lang/translations/sr-latn.po +616 -0
- package/lang/translations/sr.po +616 -0
- package/lang/translations/sv.po +612 -0
- package/lang/translations/th.po +608 -0
- package/lang/translations/ti.po +612 -0
- package/lang/translations/tk.po +612 -0
- package/lang/translations/tr.po +612 -0
- package/lang/translations/tt.po +608 -0
- package/lang/translations/ug.po +608 -0
- package/lang/translations/uk.po +616 -0
- package/lang/translations/ur.po +612 -0
- package/lang/translations/uz.po +612 -0
- package/lang/translations/vi.po +608 -0
- package/lang/translations/zh-cn.po +608 -0
- package/lang/translations/zh.po +608 -0
- package/package.json +23 -11
- package/src/aiactions/aiactions.d.ts +48 -0
- package/src/aiactions/aiactions.js +23 -0
- package/src/aiactions/model/aiactionsinteraction.d.ts +48 -0
- package/src/aiactions/model/aiactionsinteraction.js +23 -0
- package/src/aiactions/model/aiactionsreply.d.ts +15 -0
- package/src/aiactions/model/aiactionsreply.js +23 -0
- package/src/{adapters → aiassistant/adapters}/aiadapter.d.ts +1 -1
- package/src/aiassistant/adapters/aiadapter.js +23 -0
- package/src/{adapters → aiassistant/adapters}/aitextadapter.d.ts +9 -9
- package/src/aiassistant/adapters/aitextadapter.js +23 -0
- package/src/{adapters → aiassistant/adapters}/awstextadapter.d.ts +36 -23
- package/src/aiassistant/adapters/awstextadapter.js +23 -0
- package/src/{adapters → aiassistant/adapters}/openaitextadapter.d.ts +38 -25
- package/src/aiassistant/adapters/openaitextadapter.js +23 -0
- package/src/{aiassistant.d.ts → aiassistant/aiassistant.d.ts} +54 -13
- package/src/aiassistant/aiassistant.js +23 -0
- package/src/aiassistant/aiassistantediting.js +23 -0
- package/src/{aiassistantui.d.ts → aiassistant/aiassistantui.d.ts} +4 -4
- package/src/aiassistant/aiassistantui.js +23 -0
- package/src/aiassistant/legacyerrors.js +23 -0
- package/src/{ui → aiassistant/ui}/aiassistantcontroller.d.ts +5 -4
- package/src/aiassistant/ui/aiassistantcontroller.js +24 -0
- package/src/{ui → aiassistant/ui}/form/aiformcontentarea.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +23 -0
- package/src/aiassistant/ui/form/aiformerrorview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aiformpromptview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aiformtoolbarview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aiformview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aihistorylistitemview.d.ts +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aihistorylistview.d.ts +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/prompthistory.d.ts +3 -0
- package/src/aiassistant/ui/form/prompthistory.js +23 -0
- package/src/{ui → aiassistant/ui}/showaiassistantcommand.d.ts +2 -2
- package/src/aiassistant/ui/showaiassistantcommand.js +23 -0
- package/src/{utils → aiassistant/utils}/common-translations.d.ts +1 -1
- package/src/{utils → aiassistant/utils}/common-translations.js +1 -1
- package/src/{utils → aiassistant/utils}/normalizecommandsconfig.d.ts +2 -2
- package/src/{utils → aiassistant/utils}/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.d.ts +72 -0
- package/src/aiballoon/aiballoon.js +23 -0
- package/src/aiballoon/ui/aiballoondisclaimerview.d.ts +17 -0
- package/src/aiballoon/ui/aiballoondisclaimerview.js +23 -0
- package/src/aiballoon/ui/aiballoontoolbarview.d.ts +31 -0
- package/src/aiballoon/ui/aiballoontoolbarview.js +23 -0
- package/src/aiballoon/ui/aiballoonview.d.ts +109 -0
- package/src/aiballoon/ui/aiballoonview.js +23 -0
- package/src/aichat/aichat.d.ts +79 -0
- package/src/aichat/aichat.js +23 -0
- package/src/aichat/aichatcontroller.d.ts +68 -0
- package/src/aichat/aichatcontroller.js +23 -0
- package/src/aichat/aichatui.d.ts +297 -0
- package/src/aichat/aichatui.js +23 -0
- package/src/aichat/model/aichatcontext.d.ts +360 -0
- package/src/aichat/model/aichatcontext.js +23 -0
- package/src/aichat/model/aichatconversation.d.ts +270 -0
- package/src/aichat/model/aichatconversation.js +23 -0
- package/src/aichat/model/aichatinteraction.d.ts +46 -0
- package/src/aichat/model/aichatinteraction.js +23 -0
- package/src/aichat/model/aichatmodels.d.ts +77 -0
- package/src/aichat/model/aichatmodels.js +23 -0
- package/src/aichat/ui/aichatcontrolsview.d.ts +98 -0
- package/src/aichat/ui/aichatcontrolsview.js +23 -0
- package/src/aichat/ui/aichatfeedview.d.ts +114 -0
- package/src/aichat/ui/aichatfeedview.js +23 -0
- package/src/aichat/ui/aichatheaderview.d.ts +29 -0
- package/src/aichat/ui/aichatheaderview.js +23 -0
- package/src/aichat/ui/aichatview.d.ts +37 -0
- package/src/aichat/ui/aichatview.js +23 -0
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.d.ts +71 -0
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +23 -0
- package/src/aichat/ui/controls/aichatcontextitembuttonview.d.ts +46 -0
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +23 -0
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.d.ts +89 -0
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +23 -0
- package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +105 -0
- package/src/aichat/ui/controls/aichatcontextpanelview.js +23 -0
- package/src/aichat/ui/controls/aichatcontrolsloaderview.d.ts +12 -0
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +23 -0
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.d.ts +89 -0
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +23 -0
- package/src/aichat/ui/controls/aichatpromptinputview.d.ts +44 -0
- package/src/aichat/ui/controls/aichatpromptinputview.js +23 -0
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.d.ts +17 -0
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.d.ts +61 -0
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +100 -0
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourceslistview.d.ts +49 -0
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.d.ts +61 -0
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcesview.d.ts +54 -0
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.d.ts +27 -0
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +23 -0
- package/src/aichat/ui/feed/aichatfeederroritemview.d.ts +39 -0
- package/src/aichat/ui/feed/aichatfeederroritemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +29 -0
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +23 -0
- package/src/aichat/ui/feed/aichatfeeditemview.d.ts +46 -0
- package/src/aichat/ui/feed/aichatfeeditemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedreplyitemview.d.ts +46 -0
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +74 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +74 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedusermessageitem.d.ts +40 -0
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +23 -0
- package/src/aichat/utils/eventnames.d.ts +5 -0
- package/src/aichat/utils/eventnames.js +23 -0
- package/src/aichat/utils/promisequeue.d.ts +32 -0
- package/src/aichat/utils/promisequeue.js +23 -0
- package/src/aichat/utils/scrollmanager.d.ts +23 -0
- package/src/aichat/utils/scrollmanager.js +23 -0
- package/src/aichathistory/aichathistory.d.ts +30 -0
- package/src/aichathistory/aichathistory.js +23 -0
- package/src/aichathistory/aichathistorycontroller.d.ts +40 -0
- package/src/aichathistory/aichathistorycontroller.js +23 -0
- package/src/aichathistory/aichathistoryui.d.ts +112 -0
- package/src/aichathistory/aichathistoryui.js +23 -0
- package/src/aichathistory/model/aichathistoryconversations.d.ts +114 -0
- package/src/aichathistory/model/aichathistoryconversations.js +23 -0
- package/src/aichathistory/model/aichathistoryitem.d.ts +59 -0
- package/src/aichathistory/model/aichathistoryitem.js +23 -0
- package/src/aichathistory/ui/aichathistorylistitemview.d.ts +42 -0
- package/src/aichathistory/ui/aichathistorylistitemview.js +23 -0
- package/src/aichathistory/ui/aichathistorylistview.d.ts +31 -0
- package/src/aichathistory/ui/aichathistorylistview.js +23 -0
- package/src/aichathistory/ui/aichathistorysectionlistview.d.ts +17 -0
- package/src/aichathistory/ui/aichathistorysectionlistview.js +23 -0
- package/src/aichathistory/ui/aichathistoryview.d.ts +41 -0
- package/src/aichathistory/ui/aichathistoryview.js +23 -0
- package/src/aiconfig.d.ts +82 -31
- package/src/aicore/aiconnector.d.ts +302 -0
- package/src/aicore/aiconnector.js +23 -0
- package/src/aicore/aiediting.d.ts +61 -0
- package/src/aicore/aiediting.js +23 -0
- package/src/aicore/model/aicapabilities.d.ts +55 -0
- package/src/aicore/model/aicapabilities.js +23 -0
- package/src/aicore/model/aicontext.d.ts +53 -0
- package/src/aicore/model/aicontext.js +23 -0
- package/src/aicore/model/aiinteraction.d.ts +135 -0
- package/src/aicore/model/aiinteraction.js +23 -0
- package/src/aicore/model/aireply.d.ts +178 -0
- package/src/aicore/model/aireply.js +23 -0
- package/src/aicore/pipeline/airesponseapplier.d.ts +291 -0
- package/src/aicore/pipeline/airesponseapplier.js +24 -0
- package/src/aicore/pipeline/airesponseparser.d.ts +27 -0
- package/src/aicore/pipeline/airesponseparser.js +24 -0
- package/src/aicore/ui/aidisclaimerview.d.ts +17 -0
- package/src/aicore/ui/aidisclaimerview.js +23 -0
- package/src/aicore/ui/aiskeleton.d.ts +37 -0
- package/src/aicore/ui/aiskeleton.js +23 -0
- package/src/aicore/ui/aispinner.d.ts +14 -0
- package/src/aicore/ui/aispinner.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.d.ts +62 -0
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +38 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +80 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +39 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.d.ts +39 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +23 -0
- package/src/aicore/utils/common-translations.d.ts +9 -0
- package/src/aicore/utils/common-translations.js +23 -0
- package/src/aicore/utils/createresizebutton.d.ts +12 -0
- package/src/aicore/utils/createresizebutton.js +23 -0
- package/src/aicore/utils/documentposition.d.ts +41 -0
- package/src/aicore/utils/documentposition.js +23 -0
- package/src/aicore/utils/documentrange.d.ts +46 -0
- package/src/aicore/utils/documentrange.js +23 -0
- package/src/aicore/utils/eventnames.d.ts +9 -0
- package/src/aicore/utils/eventnames.js +23 -0
- package/src/aicore/utils/geteditorfromcontext.d.ts +6 -0
- package/src/aicore/utils/geteditorfromcontext.js +23 -0
- package/src/aicore/utils/getoperationsfromreply.d.ts +21 -0
- package/src/aicore/utils/getoperationsfromreply.js +23 -0
- package/src/aicore/utils/getsuggestionpartsfromreply.d.ts +19 -0
- package/src/aicore/utils/getsuggestionpartsfromreply.js +23 -0
- package/src/aicore/utils/htmlparser.d.ts +35 -0
- package/src/aicore/utils/htmlparser.js +23 -0
- package/src/aicore/utils/htmlstreamer.d.ts +123 -0
- package/src/aicore/utils/htmlstreamer.js +23 -0
- package/src/aiquickactions/aiquickactions.d.ts +41 -0
- package/src/aiquickactions/aiquickactions.js +23 -0
- package/src/aiquickactions/aiquickactionscommand.d.ts +12 -0
- package/src/aiquickactions/aiquickactionscommand.js +23 -0
- package/src/aiquickactions/aiquickactionsediting.d.ts +23 -0
- package/src/aiquickactions/aiquickactionsediting.js +23 -0
- package/src/aiquickactions/aiquickactionsui.d.ts +150 -0
- package/src/aiquickactions/aiquickactionsui.js +23 -0
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +30 -0
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +23 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +45 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +23 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +45 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +23 -0
- package/src/aiquickactions/utils/common-translations.d.ts +9 -0
- package/src/aiquickactions/utils/common-translations.js +23 -0
- package/src/aireviewmode/aireviewmode.d.ts +30 -0
- package/src/aireviewmode/aireviewmode.js +23 -0
- package/src/aireviewmode/aireviewmodecontroller.d.ts +32 -0
- package/src/aireviewmode/aireviewmodecontroller.js +23 -0
- package/src/aireviewmode/aireviewmodeediting.d.ts +129 -0
- package/src/aireviewmode/aireviewmodeediting.js +23 -0
- package/src/aireviewmode/aireviewmodeui.d.ts +73 -0
- package/src/aireviewmode/aireviewmodeui.js +23 -0
- package/src/aireviewmode/model/aireviewcheck.d.ts +60 -0
- package/src/aireviewmode/model/aireviewcheck.js +23 -0
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +17 -0
- package/src/aireviewmode/model/aireviewcheckcustom.js +23 -0
- package/src/aireviewmode/model/aireviewchecklist.d.ts +31 -0
- package/src/aireviewmode/model/aireviewchecklist.js +23 -0
- package/src/aireviewmode/model/aireviewcheckresult.d.ts +39 -0
- package/src/aireviewmode/model/aireviewcheckresult.js +23 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +42 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.js +23 -0
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +101 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +23 -0
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +18 -0
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +23 -0
- package/src/aireviewmode/model/aireviewmodels.d.ts +26 -0
- package/src/aireviewmode/model/aireviewmodels.js +23 -0
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +14 -0
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +23 -0
- package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +29 -0
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +46 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +19 -0
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.d.ts +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +80 -0
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +45 -0
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +18 -0
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodeview.d.ts +42 -0
- package/src/aireviewmode/ui/aireviewmodeview.js +23 -0
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +16 -0
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +23 -0
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +20 -0
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +23 -0
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +16 -0
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +23 -0
- package/src/aireviewmode/utils/common-translations.d.ts +9 -0
- package/src/aireviewmode/utils/common-translations.js +23 -0
- package/src/aitabs/aitabs.d.ts +92 -0
- package/src/aitabs/aitabs.js +23 -0
- package/src/aitabs/aitabsmainview.d.ts +45 -0
- package/src/aitabs/aitabsmainview.js +23 -0
- package/src/aitabs/tabs/aitabsview.d.ts +147 -0
- package/src/aitabs/tabs/aitabsview.js +23 -0
- package/src/aitabs/tabs/tabbuttonview.d.ts +47 -0
- package/src/aitabs/tabs/tabbuttonview.js +23 -0
- package/src/aitabs/tabs/tabpanelview.d.ts +44 -0
- package/src/aitabs/tabs/tabpanelview.js +23 -0
- package/src/augmentation.d.ts +22 -6
- package/src/index.d.ts +40 -9
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +207 -0
- package/theme/aichat/aichat-controls/aichat-context-chip.css +139 -0
- package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +194 -0
- package/theme/aichat/aichat-controls/aichat-context-controls.css +46 -0
- package/theme/aichat/aichat-controls/aichat-controls-button.css +74 -0
- package/theme/aichat/aichat-controls/aichat-controls-loader.css +93 -0
- package/theme/aichat/aichat-controls/prompt-capabilities.css +46 -0
- package/theme/aichat/aichat-controls/prompt-input.css +55 -0
- package/theme/aichat/aichat-controls.css +154 -0
- package/theme/aichat/aichat.css +68 -0
- package/theme/aichat/aichatfeed.css +376 -0
- package/theme/aichat/aichathistory.css +235 -0
- package/theme/aichat/aiminitoolbar.css +94 -0
- package/theme/aichat/aisuggestioncontainer.css +203 -0
- package/theme/aiquickactions/aiquickactions.css +43 -0
- package/theme/aireviewmode/aireviewmode-check-list.css +154 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +202 -0
- package/theme/aireviewmode/aireviewmode-review-completed.css +52 -0
- package/theme/aireviewmode/aireviewmode.css +73 -0
- package/theme/aitabs/aitabsview.css +64 -0
- package/theme/aitabs/tabs/tabbuttonview.css +74 -0
- package/theme/aitabs/tabs/tabsview.css +78 -0
- package/theme/common/aibutton.css +145 -0
- package/theme/common/aichaterror.css +61 -0
- package/theme/common/aidisclaimer.css +29 -0
- package/theme/common/aiheader.css +88 -0
- package/theme/common/aiskeleton.css +54 -0
- package/theme/common/aispinner.css +58 -0
- package/src/adapters/aiadapter.js +0 -23
- package/src/adapters/aitextadapter.js +0 -23
- package/src/adapters/awstextadapter.js +0 -23
- package/src/adapters/openaitextadapter.js +0 -23
- package/src/aiassistant.js +0 -23
- package/src/aiassistantediting.js +0 -23
- package/src/aiassistantui.js +0 -23
- package/src/legacyerrors.js +0 -23
- package/src/ui/aiassistantcontroller.js +0 -24
- package/src/ui/form/aiformcontentarea.js +0 -23
- package/src/ui/form/aiformerrorview.js +0 -23
- package/src/ui/form/aiformpromptview.js +0 -23
- package/src/ui/form/aiformtoolbarview.js +0 -23
- package/src/ui/form/aiformview.js +0 -23
- package/src/ui/form/aihistorylistitemview.js +0 -23
- package/src/ui/form/aihistorylistview.js +0 -23
- package/src/ui/form/prompthistory.js +0 -23
- package/src/ui/showaiassistantcommand.js +0 -23
- /package/src/{aiassistantediting.d.ts → aiassistant/aiassistantediting.d.ts} +0 -0
- /package/src/{legacyerrors.d.ts → aiassistant/legacyerrors.d.ts} +0 -0
- /package/src/{ui → aiassistant/ui}/form/aiformerrorview.d.ts +0 -0
- /package/theme/{ai-dropdown.css → aiassistant/ai-dropdown.css} +0 -0
- /package/theme/{ai-form.css → aiassistant/ai-form.css} +0 -0
- /package/theme/{ai.css → aiassistant/ai.css} +0 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { type Editor, Plugin } from 'ckeditor5/src/core.js';
|
|
6
|
+
import { type AIActionsNames, AIConnector } from '../aicore/aiconnector.js';
|
|
7
|
+
import { Dialog } from 'ckeditor5/src/ui.js';
|
|
8
|
+
import { AIEditing } from '../aicore/aiediting.js';
|
|
9
|
+
import { AIActionsInteraction } from './model/aiactionsinteraction.js';
|
|
10
|
+
import { AIBalloon } from '../aiballoon/aiballoon.js';
|
|
11
|
+
import { DocumentCompare } from '@ckeditor/ckeditor5-collaboration-core';
|
|
12
|
+
export declare class AIActions extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
static get requires(): readonly [typeof AIConnector, typeof Dialog, typeof AIEditing, typeof AIBalloon, typeof DocumentCompare];
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
static get pluginName(): "AIActions";
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static get isOfficialPlugin(): true;
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
static get isPremiumPlugin(): true;
|
|
29
|
+
/**
|
|
30
|
+
* The busy state of the AI actions.
|
|
31
|
+
*
|
|
32
|
+
* It is set to `true` when there are AI response being streamed or rendered.
|
|
33
|
+
*
|
|
34
|
+
* @observable
|
|
35
|
+
*/
|
|
36
|
+
isBusy: boolean;
|
|
37
|
+
constructor(editor: Editor);
|
|
38
|
+
stopInteraction(): void;
|
|
39
|
+
get previousInteractions(): ReadonlyArray<AIActionsInteraction>;
|
|
40
|
+
executeAction(action: AIActionDefinition, label: string, icon?: string): Promise<void>;
|
|
41
|
+
private _createInteraction;
|
|
42
|
+
}
|
|
43
|
+
export type AIActionDefinition = {
|
|
44
|
+
actionName?: AIActionsNames;
|
|
45
|
+
args?: Record<string, string>;
|
|
46
|
+
userMessage?: string;
|
|
47
|
+
model?: string;
|
|
48
|
+
};
|
|
@@ -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 _0x2f419b=_0x426c;(function(_0xc3c9ec,_0x5ad8ea){const _0x13094c=_0x426c,_0x3a2390=_0xc3c9ec();while(!![]){try{const _0x4cc845=-parseInt(_0x13094c(0x151))/0x1+-parseInt(_0x13094c(0x147))/0x2+-parseInt(_0x13094c(0x111))/0x3*(parseInt(_0x13094c(0x17d))/0x4)+parseInt(_0x13094c(0x18a))/0x5*(-parseInt(_0x13094c(0x17b))/0x6)+parseInt(_0x13094c(0x12c))/0x7*(-parseInt(_0x13094c(0x188))/0x8)+-parseInt(_0x13094c(0x18d))/0x9+parseInt(_0x13094c(0x175))/0xa;if(_0x4cc845===_0x5ad8ea)break;else _0x3a2390['push'](_0x3a2390['shift']());}catch(_0xa7c59){_0x3a2390['push'](_0x3a2390['shift']());}}}(_0x48da,0x29310));import{Plugin as _0x456813}from'ckeditor5/src/core.js';import{AIConnector as _0x3cab9d}from'../aicore/aiconnector.js';function _0x426c(_0x277977,_0x15b276){const _0x48da3f=_0x48da();return _0x426c=function(_0x426cae,_0x143622){_0x426cae=_0x426cae-0x10f;let _0x153d9f=_0x48da3f[_0x426cae];return _0x153d9f;},_0x426c(_0x277977,_0x15b276);}import{AISuggestionContainerView as _0x47e4f8}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x1b3ca2,ButtonView as _0x560ae6,ViewCollection as _0x35b9d3}from'ckeditor5/src/ui.js';import{AIEditing as _0x2d638a}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x39c737}from'./model/aiactionsinteraction.js';import{first as _0x5ef032}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x27b152,IconRefresh as _0x4647f1}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x30b688}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x323602}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x3914b3}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x4c4dd3}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x1de616}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x1ef260}from'../aicore/utils/getoperationsfromreply.js';function _0x48da(){const _0x90b009=['_stopInteraction','getDocumentContext','TrackChangesEditing','isEnabled','executeAction','_customViews','documentFragment','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','baseVersion','Error\x20updating\x20content\x20in\x20replyContentUpdated:','_anchorOperation','error','updateContent','requires','toData','getLimitElement','streaming','_clearSuggestionContent','selection','insertSuggestion','isPremiumPlugin','queueEmptyPromise','_applyOperationsAsSuggestions','503172AiHgJW','stopListening','length','documentContextContent','isBusy','AI_ACTIONS_TRY_AGAIN','_previousInteractions','message','_appendChild','operationsA','226536uuDjKu','has','applyOperation','getSelectedContent','set','getFirstRange','setLoading','_children','ai-request-aborted','_setLoadingState','Error\x20updating\x20content\x20in\x20replyCreated:','change','TableSelection','No\x20current\x20interaction\x20to\x20refresh','end','AIConnector','enqueue','AIActions','bind','interactionFinished','ck-ai-custom-action-button','random','static','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','hasPendingParts','getAncestors','getCommonAncestor','open','abort','path','data','listenTo','catch','applySuggestion','_clone','schema','12645780VrXLQg','_refreshInteraction','replyCreated','_interaction','stopInteraction','icon','942biAfEh','history','204bllffg','hideLoader','processor','replyContentUpdated','_promiseQueue','push','changeGroups','getRanges','_executeActionRegular','addOperation','map','8IyzcoZ','add','7615coKWpl','first','showLoader','186057tXJCMf','model','pluginName','_createInteraction','AIBalloon','isCollapsed','getSelectedBlocks','execute','_isAbortError','getOperations','editor','clearLoading','_clearLoadingState','isOfficialPlugin','focus','replies','document','_wrapWithCommonAncestors','_clearInteractionHistory','toggleSuggestionDisplayMode','get','getSelectionAsFragment','_currentInteractionParams','15039qPuSvh','stop','version','modelToViewWithIds','getSelectedTableCells','dialogClosed','locale','root','batch','_executeActionOnTable','slice','previousInteractions','main','startsWith','_insertSuggestion','bodyView','warn','_applySuggestion','Error\x20refreshing\x20interaction:','stickiness','_balloonShowDiff','_setupCustomViews','remove','start','_aiConnector','plugins','setSelection','716023PCaVhq','getFirstPosition','balloonView','close'];_0x48da=function(){return _0x90b009;};return _0x48da();}import{ModelDocumentFragment as _0x439e36,ModelRange as _0x56bdd3,ModelPosition as _0x1947c7,transformOperationSets as _0x3f1a0f}from'ckeditor5/src/engine.js';export class AIActions extends _0x456813{static get[_0x2f419b(0x13d)](){return[_0x3cab9d,_0x1b3ca2,_0x2d638a,_0x30b688,_0x1de616];}static get[_0x2f419b(0x18f)](){const _0x1606f0=_0x2f419b;return _0x1606f0(0x162);}static get[_0x2f419b(0x19a)](){return!0x0;}static get[_0x2f419b(0x144)](){return!0x0;}[_0x2f419b(0x129)];[_0x2f419b(0x14d)]=[];[_0x2f419b(0x110)];[_0x2f419b(0x125)]=!0x1;[_0x2f419b(0x135)]=new _0x35b9d3();[_0x2f419b(0x181)];constructor(_0x3188fd){const _0x2ef5cc=_0x2f419b;super(_0x3188fd),this[_0x2ef5cc(0x129)]=this[_0x2ef5cc(0x197)][_0x2ef5cc(0x12a)][_0x2ef5cc(0x1a1)](_0x2ef5cc(0x160)),this[_0x2ef5cc(0x155)](_0x2ef5cc(0x14b),!0x1),this[_0x2ef5cc(0x181)]=new _0x323602(),this[_0x2ef5cc(0x126)]();}[_0x2f419b(0x179)](){const _0x1b2ab2=_0x2f419b;this[_0x1b2ab2(0x130)]();}get[_0x2f419b(0x11c)](){const _0xfd4ff5=_0x2f419b;return this[_0xfd4ff5(0x14d)];}async[_0x2f419b(0x134)](_0x47416a,_0x11115f,_0xb7af4a){const _0x507e57=_0x2f419b;if(this[_0x507e57(0x197)][_0x507e57(0x12a)][_0x507e57(0x152)](_0x507e57(0x15d))){if(this[_0x507e57(0x197)][_0x507e57(0x12a)][_0x507e57(0x1a1)](_0x507e57(0x15d))[_0x507e57(0x115)]())return this[_0x507e57(0x11a)](_0x47416a,_0x11115f,_0xb7af4a);}return this[_0x507e57(0x185)](_0x47416a,_0x11115f,_0xb7af4a);}[_0x2f419b(0x185)](_0x1af561,_0x5f3d00,_0x55b9e1){const _0x2ec0ee=_0x2f419b,_0x5bbc04=this[_0x2ec0ee(0x197)][_0x2ec0ee(0x12a)][_0x2ec0ee(0x1a1)](_0x2d638a),_0xf9a0c1=this[_0x2ec0ee(0x197)][_0x2ec0ee(0x12a)][_0x2ec0ee(0x1a1)](_0x30b688),_0x5b18d7=this[_0x2ec0ee(0x197)][_0x2ec0ee(0x18e)][_0x2ec0ee(0x19d)][_0x2ec0ee(0x142)];if(_0x5b18d7[_0x2ec0ee(0x192)]){const _0x5e6e82=_0x5ef032(_0x5b18d7[_0x2ec0ee(0x193)]())||this[_0x2ec0ee(0x197)][_0x2ec0ee(0x18e)][_0x2ec0ee(0x174)][_0x2ec0ee(0x13f)](_0x5b18d7);this[_0x2ec0ee(0x197)][_0x2ec0ee(0x18e)][_0x2ec0ee(0x15c)](_0x149c39=>{const _0x4b2d6c=_0x2ec0ee;_0x149c39[_0x4b2d6c(0x12b)](_0x5e6e82,'in');});}const _0x23c29b=this[_0x2ec0ee(0x19e)](this[_0x2ec0ee(0x197)][_0x2ec0ee(0x18e)][_0x2ec0ee(0x154)](_0x5b18d7),_0x5b18d7),_0x469b0d=_0x5bbc04[_0x2ec0ee(0x114)](_0x23c29b),_0x73eed1=this[_0x2ec0ee(0x197)][_0x2ec0ee(0x16f)][_0x2ec0ee(0x17f)][_0x2ec0ee(0x13e)](_0x469b0d),_0x50ce68=this[_0x2ec0ee(0x197)][_0x2ec0ee(0x18e)][_0x2ec0ee(0x19d)][_0x2ec0ee(0x113)],_0x540c4a=[..._0x5b18d7[_0x2ec0ee(0x184)]()],_0x452d21=new _0x47e4f8(this[_0x2ec0ee(0x197)][_0x2ec0ee(0x117)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x2ec0ee(0x17a),'customView':this[_0x2ec0ee(0x135)]}});_0xf9a0c1[_0x2ec0ee(0x16c)]({'index':0x3e8*Math[_0x2ec0ee(0x166)]()%0x3e8,'title':_0x5f3d00,'icon':_0x55b9e1||_0x27b152,'mainView':_0x452d21,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x540c4a}),this[_0x2ec0ee(0x15a)](_0x452d21,_0xf9a0c1);const _0x633e60=_0x5b18d7[_0x2ec0ee(0x12d)]();return this[_0x2ec0ee(0x170)](_0xf9a0c1,_0x2ec0ee(0x172),()=>{const _0x243f4b=_0x2ec0ee;this[_0x243f4b(0x122)](_0x633e60);}),this[_0x2ec0ee(0x170)](_0xf9a0c1,_0x2ec0ee(0x143),()=>{const _0x48158c=_0x2ec0ee;this[_0x48158c(0x11f)](_0x633e60);}),this[_0x2ec0ee(0x170)](_0xf9a0c1,_0x2ec0ee(0x116),()=>{const _0x758102=_0x2ec0ee;this[_0x758102(0x130)](),this[_0x758102(0x19f)](),this[_0x758102(0x148)](_0xf9a0c1);}),this[_0x2ec0ee(0x190)](_0x73eed1,_0x50ce68,_0x452d21,_0xf9a0c1,_0x1af561);}[_0x2f419b(0x11a)](_0x2ac72a,_0x2c0e1f,_0xb14890){const _0x12f33e=_0x2f419b,_0x3656d6=this[_0x12f33e(0x197)][_0x12f33e(0x12a)][_0x12f33e(0x1a1)](_0x2d638a),_0x520dcc=this[_0x12f33e(0x197)][_0x12f33e(0x12a)][_0x12f33e(0x1a1)](_0x30b688),_0x5d6ad2=this[_0x12f33e(0x197)][_0x12f33e(0x18e)][_0x12f33e(0x19d)][_0x12f33e(0x142)],_0x573f59=this[_0x12f33e(0x197)][_0x12f33e(0x12a)][_0x12f33e(0x1a1)](_0x12f33e(0x15d))[_0x12f33e(0x10f)](),_0x19d722=_0x3656d6[_0x12f33e(0x114)](_0x573f59),_0x396f97=this[_0x12f33e(0x197)][_0x12f33e(0x16f)][_0x12f33e(0x17f)][_0x12f33e(0x13e)](_0x19d722),_0x119090=this[_0x12f33e(0x197)][_0x12f33e(0x18e)][_0x12f33e(0x19d)][_0x12f33e(0x113)],_0x3e3aac=[..._0x5d6ad2[_0x12f33e(0x184)]()],_0x57df76=new _0x47e4f8(this[_0x12f33e(0x197)][_0x12f33e(0x117)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x12f33e(0x17a),'customView':this[_0x12f33e(0x135)]}});_0x520dcc[_0x12f33e(0x16c)]({'index':0x0,'title':_0x2c0e1f,'icon':_0xb14890||_0x27b152,'mainView':_0x57df76,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x3e3aac}),this[_0x12f33e(0x15a)](_0x57df76,_0x520dcc);const _0x412f37=_0x5d6ad2[_0x12f33e(0x12d)]();return this[_0x12f33e(0x170)](_0x520dcc,_0x12f33e(0x172),()=>{const _0x4d93d0=_0x12f33e;this[_0x4d93d0(0x122)](_0x412f37);}),this[_0x12f33e(0x170)](_0x520dcc,_0x12f33e(0x143),()=>{const _0x473652=_0x12f33e;this[_0x473652(0x11f)](_0x412f37);}),this[_0x12f33e(0x170)](_0x520dcc,_0x12f33e(0x116),()=>{const _0x58df08=_0x12f33e;this[_0x58df08(0x181)][_0x58df08(0x16d)](),this[_0x58df08(0x14b)]=!0x1,this[_0x58df08(0x148)](_0x520dcc);}),this[_0x12f33e(0x190)](_0x396f97,_0x119090,_0x57df76,_0x520dcc,_0x2ac72a);}[_0x2f419b(0x19e)](_0x1779f4,_0x32b26b){const _0x4e4239=_0x2f419b,_0x2963d6=_0x32b26b[_0x4e4239(0x156)]()[_0x4e4239(0x16b)](),_0x16baba=_0x2963d6['is'](_0x4e4239(0x136))?[]:_0x2963d6[_0x4e4239(0x16a)]({'includeSelf':!0x0})[_0x4e4239(0x11b)](0x1);if(_0x16baba[_0x4e4239(0x149)]){const _0x403b80=_0x16baba[_0x4e4239(0x187)](_0x3ef1c8=>_0x3ef1c8[_0x4e4239(0x173)](!0x1));for(let _0x3aeb5d=0x1;_0x3aeb5d<_0x403b80[_0x4e4239(0x149)];_0x3aeb5d++)_0x403b80[_0x3aeb5d-0x1][_0x4e4239(0x14f)](_0x403b80[_0x3aeb5d]);return _0x403b80[_0x403b80[_0x4e4239(0x149)]-0x1][_0x4e4239(0x14f)](_0x1779f4),new _0x439e36(_0x403b80[0x0]);}return _0x1779f4;}async[_0x2f419b(0x190)](_0x501599,_0x2cac38,_0x2b2ed6,_0x2e2747,_0x23ca33){const _0x1b95c9=_0x2f419b,_0x47dafc=this[_0x1b95c9(0x197)];this[_0x1b95c9(0x110)]={'action':_0x23ca33,'content':_0x501599,'version':_0x2cac38,'mainView':_0x2b2ed6,'aiBalloon':_0x2e2747},this[_0x1b95c9(0x178)]=new _0x39c737({'connector':this[_0x1b95c9(0x129)],'editor':_0x47dafc,'content':_0x501599,'version':_0x2cac38,..._0x23ca33});const _0x19d556=(_0x5a134a,_0x55bbd5,_0x40c173=this[_0x1b95c9(0x125)],_0x5e1df6=_0x1b95c9(0x140))=>this[_0x1b95c9(0x181)][_0x1b95c9(0x161)](async _0x4fd17c=>{const _0x3e78a5=_0x1b95c9;try{const _0x195a02=_0x4c4dd3({'editor':_0x47dafc,'changeGroups':_0x5a134a[_0x3e78a5(0x183)],'documentContextContent':_0x5a134a[_0x3e78a5(0x14a)],'showDiff':_0x40c173,'trimUnchanged':!0x1});await _0x55bbd5[_0x3e78a5(0x13c)]({'parts':_0x195a02,'renderingStrategy':_0x5e1df6,'abortSignal':_0x4fd17c});}catch(_0x183d6d){if(this[_0x3e78a5(0x195)](_0x183d6d))return;throw _0x183d6d;}});this[_0x1b95c9(0x178)]['on'](_0x1b95c9(0x177),(_0x24c309,_0x24a778)=>{const _0x39e239=_0x1b95c9;_0x2b2ed6[_0x39e239(0x17e)](),_0x19d556(_0x24a778,_0x2b2ed6)[_0x39e239(0x171)](_0x4b70c8=>{const _0x3caa0b=_0x39e239;this[_0x3caa0b(0x195)](_0x4b70c8)||console[_0x3caa0b(0x13b)](_0x3caa0b(0x15b),_0x4b70c8);});}),this[_0x1b95c9(0x178)]['on'](_0x1b95c9(0x180),(_0x1cb0d7,_0x1a7536)=>{const _0x4e2c4f=_0x1b95c9;_0x19d556(_0x1a7536,_0x2b2ed6)[_0x4e2c4f(0x171)](_0x241cf2=>{const _0x405e26=_0x4e2c4f;this[_0x405e26(0x195)](_0x241cf2)||console[_0x405e26(0x13b)](_0x405e26(0x139),_0x241cf2);});}),this[_0x1b95c9(0x178)]['on'](_0x1b95c9(0x164),async()=>{const _0x167c7f=_0x1b95c9;try{await this[_0x167c7f(0x199)](_0x2b2ed6,_0x2e2747);}catch(_0xef2547){this[_0x167c7f(0x195)](_0xef2547)||console[_0x167c7f(0x13b)](_0x167c7f(0x168),_0xef2547);}}),this[_0x1b95c9(0x170)](_0x2b2ed6,_0x1b95c9(0x1a0),(_0x35ce01,{showDiff:_0x31b1d3})=>{const _0xc721c6=_0x1b95c9;this[_0xc721c6(0x125)]=_0x31b1d3;const _0x12778b=this[_0xc721c6(0x178)][_0xc721c6(0x19c)][this[_0xc721c6(0x178)][_0xc721c6(0x19c)][_0xc721c6(0x149)]-0x1];_0x12778b&&_0x19d556(_0x12778b,_0x2b2ed6,_0x31b1d3,_0xc721c6(0x167))[_0xc721c6(0x171)](_0x1fa597=>{const _0x428495=_0xc721c6;this[_0x428495(0x195)](_0x1fa597)||console[_0x428495(0x13b)](_0x428495(0x137),_0x1fa597);});}),this[_0x1b95c9(0x15a)](_0x2b2ed6,_0x2e2747);try{return await this[_0x1b95c9(0x178)][_0x1b95c9(0x128)]();}catch(_0x331a9a){if(this[_0x1b95c9(0x195)](_0x331a9a))return;throw _0x331a9a;}}[_0x2f419b(0x11f)](_0x53387a){const _0x3a7082=_0x2f419b,_0x2d34cd=this[_0x3a7082(0x197)],_0x58e8e3=this[_0x3a7082(0x197)][_0x3a7082(0x12a)][_0x3a7082(0x1a1)](_0x1de616),_0x5b29cb=this[_0x3a7082(0x178)],_0x21530b=this[_0x3a7082(0x178)][_0x3a7082(0x19c)][this[_0x3a7082(0x178)][_0x3a7082(0x19c)][_0x3a7082(0x149)]-0x1],_0x2c751b=_0x21530b[_0x3a7082(0x183)],_0x71613d=_0x1ef260({'editor':_0x2d34cd,'reply':_0x21530b,'interaction':_0x5b29cb,'groups':_0x2c751b,'transform':!0x1,'documentCompare':_0x58e8e3,'documentCompareOptions':{'anchor':_0x3a7082(0x11d),'markDeletions':!0x0}});for(const _0x1787d2 of _0x71613d)this[_0x3a7082(0x13a)](_0x53387a,_0x1787d2);const _0x487bcc=_0x5b29cb[_0x3a7082(0x131)]()[_0x3a7082(0x113)],_0x167b0b=_0x2d34cd[_0x3a7082(0x18e)][_0x3a7082(0x19d)][_0x3a7082(0x17c)][_0x3a7082(0x196)](_0x487bcc),_0x3bd104={'document':_0x2d34cd[_0x3a7082(0x18e)][_0x3a7082(0x19d)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x50b10f=_0x3f1a0f(_0x71613d,_0x167b0b,_0x3bd104)[_0x3a7082(0x150)];_0x2d34cd[_0x3a7082(0x18e)][_0x3a7082(0x15c)](_0x3917f1=>{const _0x19cc4b=_0x3a7082;_0x3917f1[_0x19cc4b(0x12b)](_0x2d34cd[_0x19cc4b(0x18e)][_0x19cc4b(0x19d)][_0x19cc4b(0x142)][_0x19cc4b(0x19b)]),_0x2d34cd[_0x19cc4b(0x12a)][_0x19cc4b(0x1a1)](_0x19cc4b(0x132))[_0x19cc4b(0x146)](_0x50b10f);}),this[_0x3a7082(0x197)][_0x3a7082(0x12a)][_0x3a7082(0x1a1)](_0x3a7082(0x191))[_0x3a7082(0x12f)]();}[_0x2f419b(0x122)](_0x7f7a5a){const _0x1decfb=_0x2f419b,_0xa3a76=this[_0x1decfb(0x197)],_0x5b5250=this[_0x1decfb(0x197)][_0x1decfb(0x12a)][_0x1decfb(0x1a1)](_0x1de616),_0xc3133d=this[_0x1decfb(0x178)],_0x43743c=this[_0x1decfb(0x178)][_0x1decfb(0x19c)][this[_0x1decfb(0x178)][_0x1decfb(0x19c)][_0x1decfb(0x149)]-0x1],_0x12847b=_0x43743c[_0x1decfb(0x183)],_0x2361cf=_0x1ef260({'editor':_0xa3a76,'reply':_0x43743c,'interaction':_0xc3133d,'groups':_0x12847b,'transform':!0x1,'documentCompare':_0x5b5250,'documentCompareOptions':{'anchor':_0x1decfb(0x11d),'markDeletions':!0x1}});for(const _0x5cf35d of _0x2361cf)this[_0x1decfb(0x13a)](_0x7f7a5a,_0x5cf35d);const _0x220ddb=_0xc3133d[_0x1decfb(0x131)]()[_0x1decfb(0x113)],_0x42fcd3=_0xa3a76[_0x1decfb(0x18e)][_0x1decfb(0x19d)][_0x1decfb(0x17c)][_0x1decfb(0x196)](_0x220ddb),_0x5b6bb5={'document':_0xa3a76[_0x1decfb(0x18e)][_0x1decfb(0x19d)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x7e28c2=_0x3f1a0f(_0x2361cf,_0x42fcd3,_0x5b6bb5)[_0x1decfb(0x150)];_0xa3a76[_0x1decfb(0x18e)][_0x1decfb(0x15c)](_0x6858df=>{const _0xbf3448=_0x1decfb;_0x6858df[_0xbf3448(0x12b)](_0xa3a76[_0xbf3448(0x18e)][_0xbf3448(0x19d)][_0xbf3448(0x142)][_0xbf3448(0x19b)]);for(const _0x5eca11 of _0x7e28c2)_0x5eca11[_0xbf3448(0x138)]=_0xa3a76[_0xbf3448(0x18e)][_0xbf3448(0x19d)][_0xbf3448(0x113)],_0x6858df[_0xbf3448(0x119)][_0xbf3448(0x186)](_0x5eca11),_0xa3a76[_0xbf3448(0x18e)][_0xbf3448(0x153)](_0x5eca11);}),this[_0x1decfb(0x197)][_0x1decfb(0x12a)][_0x1decfb(0x1a1)](_0x1decfb(0x191))[_0x1decfb(0x12f)]();}[_0x2f419b(0x13a)](_0x94b70b,_0x26b3f0){const _0x26673d=_0x2f419b;for(const _0x4bb4d3 in _0x26b3f0){const _0x3b5ab0=_0x26b3f0[_0x4bb4d3];_0x3b5ab0 instanceof _0x56bdd3?_0x26b3f0[_0x4bb4d3]=new _0x56bdd3(_0x36ed8a(_0x3b5ab0[_0x26673d(0x128)]),_0x36ed8a(_0x3b5ab0[_0x26673d(0x15f)])):_0x3b5ab0 instanceof _0x1947c7&&(_0x26b3f0[_0x4bb4d3]=_0x36ed8a(_0x3b5ab0));}function _0x36ed8a(_0x58f4e5){const _0x2c341c=_0x26673d;if(_0x58f4e5[_0x2c341c(0x118)]!=_0x94b70b[_0x2c341c(0x118)])return _0x58f4e5;const _0x4eb169=_0x58f4e5[_0x2c341c(0x16e)][_0x2c341c(0x11b)]();for(let _0x19010b=0x0;_0x19010b<_0x94b70b[_0x2c341c(0x16e)][_0x2c341c(0x149)]&&_0x19010b<_0x4eb169[_0x2c341c(0x149)];_0x19010b++){const _0x2bfa50=0x0!=_0x4eb169[_0x19010b];if(_0x4eb169[_0x19010b]+=_0x94b70b[_0x2c341c(0x16e)][_0x19010b],_0x2bfa50)break;}return new _0x1947c7(_0x58f4e5[_0x2c341c(0x118)],_0x4eb169,_0x58f4e5[_0x2c341c(0x124)]);}}[_0x2f419b(0x176)](){const _0x1f2b02=_0x2f419b;if(!this[_0x1f2b02(0x110)])return void console[_0x1f2b02(0x121)](_0x1f2b02(0x15e));this[_0x1f2b02(0x178)]&&(this[_0x1f2b02(0x14d)][_0x1f2b02(0x182)](this[_0x1f2b02(0x178)]),this[_0x1f2b02(0x130)]());const {action:_0x581dfc,content:_0x22b0d9,version:_0x5603d0,mainView:_0x547f27,aiBalloon:_0x100451}=this[_0x1f2b02(0x110)];this[_0x1f2b02(0x141)](_0x547f27),_0x547f27[_0x1f2b02(0x18c)](),this[_0x1f2b02(0x190)](_0x22b0d9,_0x5603d0,_0x547f27,_0x100451,_0x581dfc)[_0x1f2b02(0x171)](_0x3ef345=>{const _0x554ca7=_0x1f2b02;this[_0x554ca7(0x195)](_0x3ef345)||console[_0x554ca7(0x13b)](_0x554ca7(0x123),_0x3ef345);});}[_0x2f419b(0x141)](_0x68bc26){const _0x43db39=_0x2f419b,_0x41fb8b=_0x68bc26[_0x43db39(0x120)][_0x43db39(0x158)];for(;_0x41fb8b[_0x43db39(0x149)]>0x0;)_0x41fb8b[_0x43db39(0x127)](_0x41fb8b[_0x43db39(0x18b)]);_0x68bc26[_0x43db39(0x120)][_0x43db39(0x169)]=!0x1;}[_0x2f419b(0x195)](_0x2274b6){const _0x3213f2=_0x2f419b;return!!_0x2274b6[_0x3213f2(0x14e)]&&_0x2274b6[_0x3213f2(0x14e)][_0x3213f2(0x11e)](_0x3213f2(0x159));}[_0x2f419b(0x19f)](){const _0x54eb07=_0x2f419b;this[_0x54eb07(0x14d)]=[],this[_0x54eb07(0x110)]=void 0x0;}[_0x2f419b(0x130)](){const _0x349cf0=_0x2f419b;this[_0x349cf0(0x178)]&&this[_0x349cf0(0x178)][_0x349cf0(0x112)](),this[_0x349cf0(0x181)][_0x349cf0(0x16d)](),this[_0x349cf0(0x14b)]=!0x1;}[_0x2f419b(0x126)](){const _0x29d0eb=_0x2f419b,_0x38bcec=new _0x560ae6(this[_0x29d0eb(0x197)][_0x29d0eb(0x117)]);_0x38bcec[_0x29d0eb(0x155)]({'icon':_0x4647f1,'label':_0x3914b3(this[_0x29d0eb(0x197)][_0x29d0eb(0x117)],_0x29d0eb(0x14c)),'tooltip':!0x0,'class':_0x29d0eb(0x165)}),_0x38bcec[_0x29d0eb(0x163)](_0x29d0eb(0x133))['to'](this,_0x29d0eb(0x14b),_0x2cd76d=>!_0x2cd76d),_0x38bcec['on'](_0x29d0eb(0x194),()=>{const _0x285aa8=_0x29d0eb;this[_0x285aa8(0x176)]();}),this[_0x29d0eb(0x135)][_0x29d0eb(0x189)](_0x38bcec);}[_0x2f419b(0x15a)](_0x5ae2f9,_0x109fa){const _0x4c0de3=_0x2f419b;_0x5ae2f9[_0x4c0de3(0x157)](),_0x109fa[_0x4c0de3(0x12e)][_0x4c0de3(0x157)](),this[_0x4c0de3(0x14b)]=!0x0;}async[_0x2f419b(0x199)](_0x3dbf7a,_0x4a54db){const _0xc0e043=_0x2f419b;await this[_0xc0e043(0x181)][_0xc0e043(0x145)],this[_0xc0e043(0x14b)]=!0x1,_0x3dbf7a[_0xc0e043(0x198)](),_0x4a54db[_0xc0e043(0x12e)][_0xc0e043(0x198)]();}}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { AIInteraction, type AIInteractionOptions } from '../../aicore/model/aiinteraction.js';
|
|
6
|
+
import { type AIActionsNames, type AIConnectorRequest } from '../../aicore/aiconnector.js';
|
|
7
|
+
import { type AIContextItem } from '../../aicore/model/aicontext.js';
|
|
8
|
+
import { AIActionsReply } from './aiactionsreply.js';
|
|
9
|
+
import { type AIActionDefinition } from '../aiactions.js';
|
|
10
|
+
export declare class AIActionsInteraction extends AIInteraction {
|
|
11
|
+
/**
|
|
12
|
+
* The content of the document for the command to refer to.
|
|
13
|
+
*/
|
|
14
|
+
readonly content: string;
|
|
15
|
+
/**
|
|
16
|
+
* The version of the document the content was extracted from.
|
|
17
|
+
*/
|
|
18
|
+
readonly version: number;
|
|
19
|
+
/**
|
|
20
|
+
* The name of the action to execute. Specified only for predefined actions.
|
|
21
|
+
*/
|
|
22
|
+
readonly actionName?: AIActionsNames;
|
|
23
|
+
/**
|
|
24
|
+
* The arguments to pass to the action. Specified only for predefined actions.
|
|
25
|
+
*/
|
|
26
|
+
readonly args?: Record<string, string>;
|
|
27
|
+
/**
|
|
28
|
+
* The user message that was sent to the AI endpoint. Specified only for custom actions.
|
|
29
|
+
*/
|
|
30
|
+
readonly userMessage?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The model of the command. Specified only for custom actions.
|
|
33
|
+
*/
|
|
34
|
+
readonly model?: string;
|
|
35
|
+
constructor(options: AIActionsInteractionOptions);
|
|
36
|
+
sendRequest(): Promise<AIConnectorRequest>;
|
|
37
|
+
getDocumentContext(): AIContextItem | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Override createReply to use the same content that was sent to AI for comparison.
|
|
40
|
+
* This ensures we compare AI response against the selection, not the entire document.
|
|
41
|
+
* Uses AIActionsReply for single suggestion without context.
|
|
42
|
+
*/
|
|
43
|
+
createReply(options: ConstructorParameters<typeof AIActionsReply>[0]): AIActionsReply;
|
|
44
|
+
}
|
|
45
|
+
export type AIActionsInteractionOptions = {
|
|
46
|
+
content: string;
|
|
47
|
+
version: number;
|
|
48
|
+
} & AIActionDefinition & AIInteractionOptions;
|
|
@@ -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 _0x5c33c2=_0x1c32;(function(_0x282acc,_0x59523f){const _0x4353b1=_0x1c32,_0x5ba8a0=_0x282acc();while(!![]){try{const _0x902a9f=parseInt(_0x4353b1(0x1dc))/0x1*(parseInt(_0x4353b1(0x1ce))/0x2)+parseInt(_0x4353b1(0x1cf))/0x3*(parseInt(_0x4353b1(0x1e6))/0x4)+-parseInt(_0x4353b1(0x1e4))/0x5*(parseInt(_0x4353b1(0x1d1))/0x6)+parseInt(_0x4353b1(0x1e5))/0x7+parseInt(_0x4353b1(0x1d0))/0x8+-parseInt(_0x4353b1(0x1d3))/0x9*(parseInt(_0x4353b1(0x1e7))/0xa)+-parseInt(_0x4353b1(0x1d6))/0xb*(parseInt(_0x4353b1(0x1d7))/0xc);if(_0x902a9f===_0x59523f)break;else _0x5ba8a0['push'](_0x5ba8a0['shift']());}catch(_0x5a4ab4){_0x5ba8a0['push'](_0x5ba8a0['shift']());}}}(_0x4bdb,0xb0c6e));function _0x1c32(_0x5d9535,_0x4fefa7){const _0x4bdb02=_0x4bdb();return _0x1c32=function(_0x1c32dc,_0xc046b2){_0x1c32dc=_0x1c32dc-0x1cc;let _0x44c8c8=_0x4bdb02[_0x1c32dc];return _0x44c8c8;},_0x1c32(_0x5d9535,_0x4fefa7);}import{AIInteraction as _0xfc6ff4,AI_MODEL_EVENT_NAMES as _0xa0526d}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0xe7a72d}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x4e6ab9}from'./aiactionsreply.js';export class AIActionsInteraction extends _0xfc6ff4{[_0x5c33c2(0x1dd)];[_0x5c33c2(0x1ea)];[_0x5c33c2(0x1ec)];[_0x5c33c2(0x1de)];[_0x5c33c2(0x1df)];[_0x5c33c2(0x1cd)];constructor(_0x468cf8){const _0x41ee19=_0x5c33c2;super(_0x468cf8),this[_0x41ee19(0x1dd)]=_0x468cf8[_0x41ee19(0x1dd)],this[_0x41ee19(0x1ea)]=_0x468cf8[_0x41ee19(0x1ea)],this[_0x41ee19(0x1ec)]=_0x468cf8[_0x41ee19(0x1ec)],this[_0x41ee19(0x1de)]=_0x468cf8[_0x41ee19(0x1de)],this[_0x41ee19(0x1df)]=_0x468cf8[_0x41ee19(0x1df)],this[_0x41ee19(0x1cd)]=_0x468cf8[_0x41ee19(0x1cd)];}async[_0x5c33c2(0x1d9)](){const _0x49cac3=_0x5c33c2;return this[_0x49cac3(0x1ec)]?this[_0x49cac3(0x1e3)][_0x49cac3(0x1da)]({'content':this[_0x49cac3(0x1dd)],'actionName':this[_0x49cac3(0x1ec)],'args':this[_0x49cac3(0x1de)]}):this[_0x49cac3(0x1e3)][_0x49cac3(0x1ed)]({'content':this[_0x49cac3(0x1dd)],'message':this[_0x49cac3(0x1df)],'model':this[_0x49cac3(0x1cd)],'outputFormat':_0x49cac3(0x1e8)});}[_0x5c33c2(0x1d2)](){const _0x561c41=_0x5c33c2;return{'type':_0xe7a72d[_0x561c41(0x1eb)],'content':this[_0x561c41(0x1dd)],'version':this[_0x561c41(0x1ea)],'label':_0x561c41(0x1d8),'uiId':_0x561c41(0x1d5)};}[_0x5c33c2(0x1db)](_0x5821b0){const _0x2baf35=_0x5c33c2,_0x3434b8=new _0x4e6ab9({'editor':this[_0x2baf35(0x1d4)],'documentContextContent':this[_0x2baf35(0x1dd)],..._0x5821b0});return this[_0x2baf35(0x1e0)][_0x2baf35(0x1e9)](_0x3434b8),_0x3434b8[_0x2baf35(0x1e1)](..._0xa0526d)['to'](this),this[_0x2baf35(0x1e2)](_0x2baf35(0x1cc),_0x3434b8),_0x3434b8;}}function _0x4bdb(){const _0x682350=['executeAction','createReply','670863lzOaGc','content','args','userMessage','replies','delegate','fire','connector','20RIDqaN','6759886HNkAXe','4ENQMRs','10eoMJFW','html','push','version','TEXT','actionName','executeCustomAction','replyCreated','model','2vFONgV','3326229bMMNAL','11583320QqRVTY','799362OqgyYl','getDocumentContext','8508906jzCSJl','editor','current-document','3047ZXhWmA','86244sydANE','Current\x20document','sendRequest'];_0x4bdb=function(){return _0x682350;};return _0x4bdb();}
|
|
@@ -0,0 +1,15 @@
|
|
|
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/aiactions/model/aiactionsreply
|
|
7
|
+
*/
|
|
8
|
+
import { AIReply } from '../../aicore/model/aireply.js';
|
|
9
|
+
/**
|
|
10
|
+
* Represents a reply from the AI endpoint specifically for AI Actions.
|
|
11
|
+
* This class handles the unique behavior needed for AI Actions mode,
|
|
12
|
+
* where suggestions are presented as single change groups without context merging.
|
|
13
|
+
*/
|
|
14
|
+
export declare class AIActionsReply extends AIReply {
|
|
15
|
+
}
|
|
@@ -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 _0x72b31f=_0x4212;(function(_0x5492b1,_0x331718){const _0x56e04d=_0x4212,_0x1619db=_0x5492b1();while(!![]){try{const _0x334c73=-parseInt(_0x56e04d(0x1b2))/0x1+parseInt(_0x56e04d(0x1c1))/0x2+-parseInt(_0x56e04d(0x1c0))/0x3*(parseInt(_0x56e04d(0x1b5))/0x4)+-parseInt(_0x56e04d(0x1ac))/0x5+parseInt(_0x56e04d(0x1b9))/0x6+parseInt(_0x56e04d(0x1bb))/0x7*(-parseInt(_0x56e04d(0x1af))/0x8)+-parseInt(_0x56e04d(0x1b3))/0x9*(-parseInt(_0x56e04d(0x1b7))/0xa);if(_0x334c73===_0x331718)break;else _0x1619db['push'](_0x1619db['shift']());}catch(_0x146c7a){_0x1619db['push'](_0x1619db['shift']());}}}(_0x47fc,0xa2534));function _0x4212(_0x4f78fc,_0x5609e8){const _0x47fc89=_0x47fc();return _0x4212=function(_0x4212d6,_0x3304c0){_0x4212d6=_0x4212d6-0x1ac;let _0x591193=_0x47fc89[_0x4212d6];return _0x591193;},_0x4212(_0x4f78fc,_0x5609e8);}import{AIReply as _0x18aa77}from'../../aicore/model/aireply.js';function _0x47fc(){const _0x5a4b36=['changeGroups','24biciga','parsedMergedContent','push','25946gIddBi','99738YwCfRb','cloneNode','148GmmDoX','modified','1710ZulAwB','children','4794684IvLdCJ','updateChangeGroups','2322383WXkOog','parsedContent','pending','data-id','length','47673XiAGTm','8608WiBvvD','2121680RRhFuP','ai-actions-content'];_0x47fc=function(){return _0x5a4b36;};return _0x47fc();}import{isTag as _0x223943,getAttribute as _0x27202e}from'../../aicore/utils/htmlparser.js';export class AIActionsReply extends _0x18aa77{[_0x72b31f(0x1ba)](){const _0x24cb44=_0x72b31f;if(this[_0x24cb44(0x1b0)]=this[_0x24cb44(0x1bc)][_0x24cb44(0x1b4)](!0x0),this[_0x24cb44(0x1bc)][_0x24cb44(0x1b8)][_0x24cb44(0x1bf)]>0x0){const _0x42db91=[];for(const _0x593711 of this[_0x24cb44(0x1bc)][_0x24cb44(0x1b8)])if(_0x223943(_0x593711)){const _0x5887d2=_0x27202e(_0x593711,_0x24cb44(0x1be));_0x5887d2&&_0x42db91[_0x24cb44(0x1b1)]({'node':_0x593711,'type':_0x24cb44(0x1b6),'id':_0x5887d2});}_0x42db91[_0x24cb44(0x1bf)]>0x0?this[_0x24cb44(0x1ae)]=[{'changes':_0x42db91,'state':_0x24cb44(0x1bd),'index':0x0}]:this[_0x24cb44(0x1ae)]=[{'changes':[{'node':this[_0x24cb44(0x1bc)][_0x24cb44(0x1b8)][0x0],'type':_0x24cb44(0x1b6),'id':_0x24cb44(0x1ad)}],'state':_0x24cb44(0x1bd),'index':0x0}];}else this[_0x24cb44(0x1ae)]=[];}}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
var _0xeeecca=_0x31b8;(function(_0x239102,_0x3ad4a3){var _0x8903d3=_0x31b8,_0x2122ff=_0x239102();while(!![]){try{var _0x17a365=parseInt(_0x8903d3(0x148))/0x1*(-parseInt(_0x8903d3(0x145))/0x2)+-parseInt(_0x8903d3(0x14a))/0x3+parseInt(_0x8903d3(0x143))/0x4*(-parseInt(_0x8903d3(0x154))/0x5)+parseInt(_0x8903d3(0x155))/0x6+parseInt(_0x8903d3(0x150))/0x7+-parseInt(_0x8903d3(0x14b))/0x8*(-parseInt(_0x8903d3(0x152))/0x9)+-parseInt(_0x8903d3(0x142))/0xa*(-parseInt(_0x8903d3(0x151))/0xb);if(_0x17a365===_0x3ad4a3)break;else _0x2122ff['push'](_0x2122ff['shift']());}catch(_0x578930){_0x2122ff['push'](_0x2122ff['shift']());}}}(_0x2350,0x47422));import{Plugin as _0x1c8699}from'ckeditor5/src/core.js';function _0x31b8(_0x491725,_0x2740fe){var _0x2350ee=_0x2350();return _0x31b8=function(_0x31b816,_0xad8a8b){_0x31b816=_0x31b816-0x142;var _0x5df69c=_0x2350ee[_0x31b816];return _0x5df69c;},_0x31b8(_0x491725,_0x2740fe);}import{CKEditorError as _0x165ab3}from'ckeditor5/src/utils.js';function _0x2350(){var _0x35f86c=['55557XEouWK','AIRequestError','5115mDhazc','1550520OfaUHl','5930mBxxuc','2004Dfdybc','isPremiumPlugin','9460suQQut','textAdapter','pluginName','17sWAtmB','afterInit','888717pmkXtu','312UzGkNy','aiadapter-text-adapter-not-set','AIAdapter','isOfficialPlugin','name','3374266zdDKxl','3707knggpC'];_0x2350=function(){return _0x35f86c;};return _0x2350();}export class AIAdapter extends _0x1c8699{static get[_0xeeecca(0x147)](){var _0x27e202=_0xeeecca;return _0x27e202(0x14d);}static get[_0xeeecca(0x14e)](){return!0x0;}static get[_0xeeecca(0x144)](){return!0x0;}[_0xeeecca(0x149)](){var _0x7d7770=_0xeeecca;if(!this[_0x7d7770(0x146)])throw new _0x165ab3(_0x7d7770(0x14c),null);}}export class AIRequestError extends Error{constructor(_0x22d807){var _0x17ca85=_0xeeecca;super(_0x22d807),this[_0x17ca85(0x14f)]=_0x17ca85(0x153);}}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* @module ai/adapters/aitextadapter
|
|
6
|
+
* @module ai/aiassistant/adapters/aitextadapter
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
9
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
@@ -12,10 +12,10 @@ import { AIAdapter } from './aiadapter.js';
|
|
|
12
12
|
* Abstract base class for AI adapters that perform text-related requests.
|
|
13
13
|
*
|
|
14
14
|
* Concrete AI text adapter implementation plugin, after loaded by the editor, will set itself as
|
|
15
|
-
* {@link module:ai/adapters/aiadapter~AIAdapter#textAdapter `AIAdapter#textAdapter`}.
|
|
15
|
+
* {@link module:ai/aiassistant/adapters/aiadapter~AIAdapter#textAdapter `AIAdapter#textAdapter`}.
|
|
16
16
|
*
|
|
17
17
|
* Then, features making text-related AI requests will use that concrete adapter through
|
|
18
|
-
* {@link module:ai/adapters/aitextadapter~AITextAdapter#makeRequest `AIAdapter#textAdapter#makeRequest()`}.
|
|
18
|
+
* {@link module:ai/aiassistant/adapters/aitextadapter~AITextAdapter#makeRequest `AIAdapter#textAdapter#makeRequest()`}.
|
|
19
19
|
*
|
|
20
20
|
* You can create your own adapter that may connect to any model by extending this abstract class.
|
|
21
21
|
*/
|
|
@@ -52,8 +52,8 @@ export declare abstract class AITextAdapter extends Plugin {
|
|
|
52
52
|
*
|
|
53
53
|
* Implements basic error handling for errors thrown by `sendRequest()`:
|
|
54
54
|
*
|
|
55
|
-
* * {@link module:ai/adapters/aiadapter~AIRequestError `AIRequestError`} is re-thrown, and it is expected
|
|
56
|
-
* that made the request (e.g. by displaying some error notification).
|
|
55
|
+
* * {@link module:ai/aiassistant/adapters/aiadapter~AIRequestError `AIRequestError`} is re-thrown, and it is expected
|
|
56
|
+
* to be handled by the feature that made the request (e.g. by displaying some error notification).
|
|
57
57
|
* * {@link module:utils/ckeditorerror~CKEditorError `CKEditorError`} is unexpected, is logged to the console, and re-thrown.
|
|
58
58
|
* * `'AbortError'` is expected and is silenced. It is thrown when the request is aborted and does not need to be handled.
|
|
59
59
|
*
|
|
@@ -114,8 +114,8 @@ export type AITextAdapterRequestData = {
|
|
|
114
114
|
* This way, you can perform an authorization request to your application and receive the authorization token (and also implement
|
|
115
115
|
* any custom logic on the back-end side). The headers object is then used to make the actual call to the AI service.
|
|
116
116
|
*
|
|
117
|
-
* The function is passed {@link module:ai/adapters/aitextadapter~AITextAdapterRequestData#actionId `actionId`}
|
|
118
|
-
* possible to further customize the headers.
|
|
117
|
+
* The function is passed {@link module:ai/aiassistant/adapters/aitextadapter~AITextAdapterRequestData#actionId `actionId`}
|
|
118
|
+
* parameter to make it possible to further customize the headers.
|
|
119
119
|
*
|
|
120
120
|
* If the function fails for any reason, the promise should be rejected. In this case, a feature that made the request should display
|
|
121
121
|
* an error notification.
|
|
@@ -131,8 +131,8 @@ export type AIRequestHeaders = Record<string, string> | ((actionId: string) => P
|
|
|
131
131
|
* If the provided value is a function, it should be a function that returns a `Promise` which resolves with the request parameters
|
|
132
132
|
* object. This gives you more flexibility to provide parameters for the AI model.
|
|
133
133
|
*
|
|
134
|
-
* The function is passed {@link module:ai/adapters/aitextadapter~AITextAdapterRequestData#actionId `actionId`}
|
|
135
|
-
* possible to further customize the parameters.
|
|
134
|
+
* The function is passed {@link module:ai/aiassistant/adapters/aitextadapter~AITextAdapterRequestData#actionId `actionId`}
|
|
135
|
+
* parameter to make it possible to further customize the parameters.
|
|
136
136
|
*
|
|
137
137
|
* If the function fails for any reason, the promise should be rejected. In this case, the feature that made the request should display
|
|
138
138
|
* an error notification.
|
|
@@ -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 _0xcfac96=_0x4fb3;(function(_0x2a341f,_0x55c030){const _0x340155=_0x4fb3,_0x538f6e=_0x2a341f();while(!![]){try{const _0x9521d7=-parseInt(_0x340155(0x19f))/0x1+-parseInt(_0x340155(0x1c0))/0x2+-parseInt(_0x340155(0x1a4))/0x3*(-parseInt(_0x340155(0x1bb))/0x4)+parseInt(_0x340155(0x1a9))/0x5*(parseInt(_0x340155(0x1b9))/0x6)+-parseInt(_0x340155(0x1a2))/0x7*(parseInt(_0x340155(0x1a3))/0x8)+parseInt(_0x340155(0x1a0))/0x9*(-parseInt(_0x340155(0x1b2))/0xa)+parseInt(_0x340155(0x1ad))/0xb*(parseInt(_0x340155(0x1b3))/0xc);if(_0x9521d7===_0x55c030)break;else _0x538f6e['push'](_0x538f6e['shift']());}catch(_0x5abb40){_0x538f6e['push'](_0x538f6e['shift']());}}}(_0x25b5,0x60273));import{Plugin as _0x5aa083}from'ckeditor5/src/core.js';function _0x4fb3(_0x7603ed,_0x147f0a){const _0x25b5ad=_0x25b5();return _0x4fb3=function(_0x4fb33f,_0x5ebf43){_0x4fb33f=_0x4fb33f-0x19d;let _0x2a8687=_0x25b5ad[_0x4fb33f];return _0x2a8687;},_0x4fb3(_0x7603ed,_0x147f0a);}import{CKEditorError as _0x3a737e}from'ckeditor5/src/utils.js';import{AIAdapter as _0x3b4f06,AIRequestError as _0x2df644}from'./aiadapter.js';import{getTranslation as _0x3cd201}from'../utils/common-translations.js';export class AITextAdapter extends _0x5aa083{[_0xcfac96(0x1c2)];static get[_0xcfac96(0x1a6)](){return[_0x3b4f06];}constructor(_0x7a0ad0){const _0x579ad7=_0xcfac96;super(_0x7a0ad0),this[_0x579ad7(0x1c2)]=new AbortController();}[_0xcfac96(0x1a8)](){const _0x59980f=_0xcfac96;this[_0x59980f(0x1c3)][_0x59980f(0x1af)][_0x59980f(0x1b6)](_0x3b4f06)[_0x59980f(0x19d)]=this;}[_0xcfac96(0x1ae)](){const _0x180b1f=_0xcfac96;this[_0x180b1f(0x1c2)][_0x180b1f(0x1a7)][_0x180b1f(0x19e)]||(this[_0x180b1f(0x1c2)][_0x180b1f(0x1ae)](),this[_0x180b1f(0x1c2)]=new AbortController());}async[_0xcfac96(0x1b8)](_0x290545){const _0x357640=_0xcfac96;return this[_0x357640(0x1b1)](_0x290545)[_0x357640(0x1a1)](_0x1e8a7d=>{const _0x3a7245=_0x357640;if(_0x1e8a7d instanceof _0x2df644)return Promise[_0x3a7245(0x1be)](_0x1e8a7d);if(_0x3a7245(0x1ab)==_0x1e8a7d[_0x3a7245(0x1aa)])return Promise[_0x3a7245(0x1b7)]();throw console[_0x3a7245(0x1bc)](_0x1e8a7d),new _0x3a737e(_0x3a7245(0x1a5),null);});}async[_0xcfac96(0x1bd)](_0x5398fc,_0x54d3d0){const _0x287ca6=_0xcfac96,_0x751f5c=this[_0x287ca6(0x1c3)][_0x287ca6(0x1ac)],_0x48ff75={'Content-Type':_0x287ca6(0x1c1)};if(_0x287ca6(0x1ba)==typeof _0x5398fc)Object[_0x287ca6(0x1b4)](_0x48ff75,_0x5398fc);else{if(_0x5398fc)try{const _0x38213a=await _0x5398fc(_0x54d3d0);Object[_0x287ca6(0x1b4)](_0x48ff75,_0x38213a);}catch{return Promise[_0x287ca6(0x1be)](new _0x2df644(_0x3cd201(_0x751f5c,_0x287ca6(0x1bf))));}}return _0x48ff75;}async[_0xcfac96(0x1b5)](_0x2a12af,_0x264a93){const _0x2cd5c1=_0xcfac96,_0x346eeb=this[_0x2cd5c1(0x1c3)][_0x2cd5c1(0x1ac)];if(_0x2cd5c1(0x1ba)==typeof _0x2a12af)return _0x2a12af;try{return await _0x2a12af(_0x264a93);}catch{return Promise[_0x2cd5c1(0x1be)](new _0x2df644(_0x3cd201(_0x346eeb,_0x2cd5c1(0x1b0))));}}}function _0x25b5(){const _0x2c4f4d=['abortController','editor','textAdapter','aborted','17755coRewV','153NknaPV','catch','14swaLgc','2736232ckAfVR','237LtMTIp','aitextadapter-send-request-failed','requires','signal','init','5oixLbn','name','AbortError','locale','11jPvNGK','abort','plugins','AI_ERROR_GET_PARAMETERS','sendRequest','266990SEbsdN','18632532qNwSmm','assign','_prepareRequestParameters','get','resolve','makeRequest','1607460mOfUwS','object','19640DZdYhs','error','_prepareRequestHeaders','reject','AI_ERROR_GET_HEADERS','1317944YCjCEu','application/json'];_0x25b5=function(){return _0x2c4f4d;};return _0x25b5();}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* @module ai/adapters/awstextadapter
|
|
6
|
+
* @module ai/aiassistant/adapters/awstextadapter
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
9
|
import { type Editor } from 'ckeditor5/src/core.js';
|
|
@@ -12,7 +12,7 @@ import { type BedrockRuntimeClientConfig } from '@aws-sdk/client-bedrock-runtime
|
|
|
12
12
|
/**
|
|
13
13
|
* Adapter for AI text-related requests that supports the Amazon Bedrock service.
|
|
14
14
|
*
|
|
15
|
-
* See also {@link module:ai/adapters/aitextadapter~AITextAdapter}.
|
|
15
|
+
* See also {@link module:ai/aiassistant/adapters/aitextadapter~AITextAdapter}.
|
|
16
16
|
*/
|
|
17
17
|
export declare class AWSTextAdapter extends AITextAdapter {
|
|
18
18
|
/**
|
|
@@ -39,7 +39,8 @@ export declare class AWSTextAdapter extends AITextAdapter {
|
|
|
39
39
|
* @param query The user's query. The instruction which the model should perform.
|
|
40
40
|
* @param context The context for the instruction. Usually this will be a part of the editor content. Can be empty.
|
|
41
41
|
* @param model Model that is used to perform the request.
|
|
42
|
-
* @param actionId ID of the performed action.
|
|
42
|
+
* @param actionId ID of the performed action.
|
|
43
|
+
* See {@link module:ai/aiassistant/adapters/aitextadapter~AITextAdapterRequestData#actionId}.
|
|
43
44
|
*/
|
|
44
45
|
preparePrompt(query: string, context: string, model: string, actionId: string): Promise<string>;
|
|
45
46
|
/**
|
|
@@ -47,22 +48,26 @@ export declare class AWSTextAdapter extends AITextAdapter {
|
|
|
47
48
|
*
|
|
48
49
|
* For example, for `anthropic.claude-instant-v1` it will return `anthropic.claude`.
|
|
49
50
|
*
|
|
50
|
-
* Throws {@link module:ai/adapters/aiadapter~AIRequestError `AIRequestError`} if a given model is not supported.
|
|
51
|
+
* Throws {@link module:ai/aiassistant/adapters/aiadapter~AIRequestError `AIRequestError`} if a given model is not supported.
|
|
51
52
|
*/
|
|
52
53
|
getModelFamily(model: string): AIAWSModelFamily;
|
|
53
54
|
}
|
|
54
55
|
/**
|
|
55
56
|
* The configuration for the Amazon Bedrock adapter.
|
|
56
57
|
*
|
|
57
|
-
* The properties defined in this configuration are set in the `config.ai.aws` namespace.
|
|
58
|
+
* The properties defined in this configuration are set in the `config.ai.assistant.adapter.aws` namespace.
|
|
58
59
|
*
|
|
59
60
|
* ```ts
|
|
60
61
|
* ClassicEditor
|
|
61
62
|
* .create( editorElement, {
|
|
62
63
|
* ai: {
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
64
|
+
* assistant: {
|
|
65
|
+
* adapter: {
|
|
66
|
+
* aws: {
|
|
67
|
+
* apiUrl: 'https://url.to.your.application/ai'
|
|
68
|
+
* }
|
|
69
|
+
* }
|
|
70
|
+
* }
|
|
66
71
|
* }
|
|
67
72
|
* } )
|
|
68
73
|
* .then( ... )
|
|
@@ -95,12 +100,16 @@ export interface AIAWSTextAdapterConfig {
|
|
|
95
100
|
* ```js
|
|
96
101
|
* {
|
|
97
102
|
* ai: {
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
103
|
+
* assistant: {
|
|
104
|
+
* adapter: {
|
|
105
|
+
* aws: {
|
|
106
|
+
* requestHeaders: {
|
|
107
|
+
* 'Authorization': 'Bearer YOUR_API_KEY'
|
|
108
|
+
* }
|
|
109
|
+
* }
|
|
110
|
+
* // ...
|
|
101
111
|
* }
|
|
102
112
|
* }
|
|
103
|
-
* // ...
|
|
104
113
|
* }
|
|
105
114
|
* }
|
|
106
115
|
* ```
|
|
@@ -112,22 +121,26 @@ export interface AIAWSTextAdapterConfig {
|
|
|
112
121
|
* ```js
|
|
113
122
|
* {
|
|
114
123
|
* ai: {
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
124
|
+
* assistant: {
|
|
125
|
+
* adapter: {
|
|
126
|
+
* aws: {
|
|
127
|
+
* requestHeaders: async () => {
|
|
128
|
+
* const jwt = await fetch( 'https://example.com/jwt-endpoint' );
|
|
129
|
+
*
|
|
130
|
+
* return {
|
|
131
|
+
* 'Authorization': 'Bearer ' + jwt
|
|
132
|
+
* }
|
|
133
|
+
* }
|
|
121
134
|
* }
|
|
135
|
+
* // ...
|
|
122
136
|
* }
|
|
123
137
|
* }
|
|
124
|
-
* // ...
|
|
125
138
|
* }
|
|
126
139
|
* }
|
|
127
140
|
* ```
|
|
128
141
|
*
|
|
129
|
-
* The function is passed the {@link module:ai/adapters/aitextadapter~AITextAdapterRequestData#actionId `actionId`}
|
|
130
|
-
* possible to further customize the headers.
|
|
142
|
+
* The function is passed the {@link module:ai/aiassistant/adapters/aitextadapter~AITextAdapterRequestData#actionId `actionId`}
|
|
143
|
+
* parameter to make it possible to further customize the headers.
|
|
131
144
|
*
|
|
132
145
|
* If the function fails for any reason, the promise should be rejected. In this case, a feature that made the request should display
|
|
133
146
|
* an error notification.
|
|
@@ -147,8 +160,8 @@ export interface AIAWSTextAdapterConfig {
|
|
|
147
160
|
* If the provided value is a function, it should be a function that returns a promise which resolves with the request parameters
|
|
148
161
|
* object. This gives you more flexibility to provide parameters for the AI model.
|
|
149
162
|
*
|
|
150
|
-
* The function is passed the {@link module:ai/adapters/aitextadapter~AITextAdapterRequestData#actionId `actionId`}
|
|
151
|
-
* possible to further customize the parameters.
|
|
163
|
+
* The function is passed the {@link module:ai/aiassistant/adapters/aitextadapter~AITextAdapterRequestData#actionId `actionId`}
|
|
164
|
+
* parameter to make it possible to further customize the parameters.
|
|
152
165
|
*
|
|
153
166
|
* If the function fails for any reason, the promise should be rejected. In this case, the feature that made the request should display
|
|
154
167
|
* an error notification.
|
|
@@ -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 _0x219d9a=_0x403e;(function(_0x57ef8c,_0x30e1fb){const _0xcfd941=_0x403e,_0x30d8f8=_0x57ef8c();while(!![]){try{const _0x135be1=-parseInt(_0xcfd941(0x1a0))/0x1+parseInt(_0xcfd941(0x1ab))/0x2+parseInt(_0xcfd941(0x16f))/0x3*(parseInt(_0xcfd941(0x171))/0x4)+parseInt(_0xcfd941(0x1a1))/0x5+-parseInt(_0xcfd941(0x194))/0x6*(-parseInt(_0xcfd941(0x189))/0x7)+-parseInt(_0xcfd941(0x191))/0x8+-parseInt(_0xcfd941(0x19b))/0x9;if(_0x135be1===_0x30e1fb)break;else _0x30d8f8['push'](_0x30d8f8['shift']());}catch(_0x207359){_0x30d8f8['push'](_0x30d8f8['shift']());}}}(_0x5760,0xca223));import{AITextAdapter as _0x8efebf}from'./aitextadapter.js';import{AIRequestError as _0x5bbfbf}from'./aiadapter.js';function _0x5760(){const _0x26f658=['231hiGbeC','split','generations','text','\x0a\x0aAssistant:','bedrock-2023-05-31','pluginName','completion','3168680wTDDel','meta.llama','AI_ERROR_UNSUPPORTED_MODEL','8952nEMqrr','ai.assistant.adapter.aws.requestParameters','read','_bedrockClientConfig','\x0a[/INST]','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','application/json','8352405tQZqQa','send','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','sendRequest','anthropic.claude-v2','257830JxKjdG','2719005FieEfg','anthropic.claude','Instruction:\x0a','ai.assistant.adapter.aws.bedrockClientConfig','_processProxyRequest','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','ai.assistant.adapter.aws.apiUrl','_getGeneratedText','\x0a<</SYS>>\x0a[INST]\x0a','data','1090388OQvfdG','stringify','editor','decode','_prepareRequestParameters','bytes','getModelFamily','ai21.j2','Human:\x0a','ai.assistant.adapter.aws.requestHeaders','completions','signal','preparePrompt','_readStreamableResponse','_readAsyncIterableResponse','_apiUrl','getReader','filter','body','224412QKLOLS','utf-8','68rGaZqE','join','parse','get','_processAWSRequest','cohere.command','_requestHeaders','resolve','config','test','define','_prepareRequestHeaders','json','chunk','length','<<SYS>>\x0a','locale','abortController','_readStaticResponse','AWSTextAdapter','generation','_requestParameters','map','POST'];_0x5760=function(){return _0x26f658;};return _0x5760();}import{BedrockRuntimeClient as _0x193317,InvokeModelCommand as _0x28b336,InvokeModelWithResponseStreamCommand as _0x3d3e73}from'@aws-sdk/client-bedrock-runtime';function _0x403e(_0xf34020,_0x4a36e8){const _0x576016=_0x5760();return _0x403e=function(_0x403e99,_0x1e6325){_0x403e99=_0x403e99-0x160;let _0x5628ce=_0x576016[_0x403e99];return _0x5628ce;},_0x403e(_0xf34020,_0x4a36e8);}import{getTranslation as _0x1f0caf}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x8efebf{[_0x219d9a(0x16b)];[_0x219d9a(0x177)];[_0x219d9a(0x197)];[_0x219d9a(0x186)];static get[_0x219d9a(0x18f)](){const _0x200f1e=_0x219d9a;return _0x200f1e(0x184);}constructor(_0x433071){const _0x28b73e=_0x219d9a;super(_0x433071),_0x433071[_0x28b73e(0x179)][_0x28b73e(0x174)](_0x28b73e(0x195))||_0x433071[_0x28b73e(0x179)][_0x28b73e(0x17b)](_0x28b73e(0x195),{'model':_0x28b73e(0x19f),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x28b73e(0x18e),'stream':!0x0}),this[_0x28b73e(0x16b)]=_0x433071[_0x28b73e(0x179)][_0x28b73e(0x174)](_0x28b73e(0x1a7)),this[_0x28b73e(0x197)]=_0x433071[_0x28b73e(0x179)][_0x28b73e(0x174)](_0x28b73e(0x1a4)),this[_0x28b73e(0x177)]=_0x433071[_0x28b73e(0x179)][_0x28b73e(0x174)](_0x28b73e(0x165)),this[_0x28b73e(0x186)]=_0x433071[_0x28b73e(0x179)][_0x28b73e(0x174)](_0x28b73e(0x195));}async[_0x219d9a(0x19e)]({query:_0x405f0d,context:_0x47a665,onData:_0x2725b0,actionId:_0x2856ad}){const _0x450952=_0x219d9a,{model:_0x209fb2,stream:_0x4882e2,..._0x5ef406}=await this[_0x450952(0x160)](this[_0x450952(0x186)],_0x2856ad),_0x4825be={'prompt':await this[_0x450952(0x168)](_0x405f0d,_0x47a665,_0x209fb2,_0x2856ad),..._0x5ef406};this[_0x450952(0x16b)]?await this[_0x450952(0x1a5)](_0x4825be,_0x209fb2,_0x4882e2,_0x2725b0,_0x2856ad):await this[_0x450952(0x175)](_0x4825be,_0x209fb2,_0x4882e2,_0x2725b0);}async[_0x219d9a(0x168)](_0x5960d8,_0x49072b,_0x451226,_0x54097a){const _0x497128=_0x219d9a;let _0x2703fc,_0xe11c38;return _0x49072b?(_0x2703fc=_0x497128(0x199),_0xe11c38=_0x497128(0x1a3)+_0x5960d8+_0x497128(0x19d)+_0x49072b):(_0x2703fc=_0x497128(0x1a6),_0xe11c38=_0x5960d8),_0x497128(0x192)==this[_0x497128(0x162)](_0x451226)?_0x497128(0x180)+_0x2703fc+_0x497128(0x1a9)+_0xe11c38+_0x497128(0x198):_0x497128(0x164)+_0x2703fc+'\x0a'+_0xe11c38+_0x497128(0x18d);}[_0x219d9a(0x162)](_0xf2ce0c){const _0x366a08=_0x219d9a;if(/^anthropic\.claude/[_0x366a08(0x17a)](_0xf2ce0c))return _0x366a08(0x1a2);if(/^ai21\.j2/[_0x366a08(0x17a)](_0xf2ce0c))return _0x366a08(0x163);if(/^cohere\.command/[_0x366a08(0x17a)](_0xf2ce0c))return _0x366a08(0x176);if(/^meta\.llama/[_0x366a08(0x17a)](_0xf2ce0c))return _0x366a08(0x192);throw new _0x5bbfbf(_0x1f0caf(this[_0x366a08(0x1ad)][_0x366a08(0x181)],_0x366a08(0x193),_0xf2ce0c));}async[_0x219d9a(0x1a5)](_0x18a68f,_0x31c740,_0x1e9b14,_0x1e5919,_0xc4fe40){const _0x433add=_0x219d9a,_0xdb068d={'method':_0x433add(0x188),'headers':await this[_0x433add(0x17c)](this[_0x433add(0x177)],_0xc4fe40),'body':JSON[_0x433add(0x1ac)]({..._0x18a68f,'model':_0x31c740,'stream':_0x1e9b14}),'signal':this[_0x433add(0x182)][_0x433add(0x167)]},_0x648f17=await fetch(this[_0x433add(0x16b)],_0xdb068d);_0x1e9b14?await this[_0x433add(0x169)](_0x648f17,_0x31c740,_0x1e5919):await this[_0x433add(0x183)](_0x648f17,_0x31c740,_0x1e5919);}async[_0x219d9a(0x175)](_0x1c0fd6,_0x274b69,_0x25e6f5,_0x606158){const _0x55b6d9=_0x219d9a,_0x3591a5=new _0x193317(this[_0x55b6d9(0x197)]),_0x133b2e={'body':JSON[_0x55b6d9(0x1ac)](_0x1c0fd6),'contentType':_0x55b6d9(0x19a),'accept':_0x55b6d9(0x19a),'modelId':_0x274b69};let _0x1ff8d2;if(_0x25e6f5){const _0x166c6f=new _0x3d3e73(_0x133b2e);_0x1ff8d2=await _0x3591a5[_0x55b6d9(0x19c)](_0x166c6f,{'abortSignal':this[_0x55b6d9(0x182)][_0x55b6d9(0x167)]}),await this[_0x55b6d9(0x16a)](_0x1ff8d2,_0x274b69,_0x606158);}else{const _0x2fcd66=new _0x28b336(_0x133b2e);_0x1ff8d2=await _0x3591a5[_0x55b6d9(0x19c)](_0x2fcd66,{'abortSignal':this[_0x55b6d9(0x182)][_0x55b6d9(0x167)]}),await this[_0x55b6d9(0x183)](_0x1ff8d2,_0x274b69,_0x606158);}}async[_0x219d9a(0x16a)](_0x2a56cc,_0x2930fd,_0x425930){const _0x5ba0ca=_0x219d9a,_0x3c4e10=_0x2a56cc[_0x5ba0ca(0x16e)],_0x42a457=new TextDecoder(_0x5ba0ca(0x170));let _0x1207d1='';for await(const _0x20c238 of _0x3c4e10)if(_0x20c238[_0x5ba0ca(0x17e)]){const _0x56287e=_0x42a457[_0x5ba0ca(0x1ae)](_0x20c238[_0x5ba0ca(0x17e)][_0x5ba0ca(0x161)]),_0x42f0ba=JSON[_0x5ba0ca(0x173)](_0x56287e);_0x1207d1+=this[_0x5ba0ca(0x1a8)](_0x42f0ba,_0x2930fd),_0x425930(_0x1207d1);}return Promise[_0x5ba0ca(0x178)]();}async[_0x219d9a(0x169)](_0x162e5e,_0xca2119,_0x15f456){const _0x9d37a9=_0x219d9a,_0x4fcef9=_0x162e5e[_0x9d37a9(0x16e)],_0x55cd6d=new TextDecoder(_0x9d37a9(0x170)),_0x190144=_0x4fcef9[_0x9d37a9(0x16c)]();let _0x1bdc22='',_0x29b352='',_0x2482c2=!0x1;for(;!_0x2482c2;){const {done:_0x4d3ea9,value:_0xe1f212}=await _0x190144[_0x9d37a9(0x196)]();if(_0x2482c2=_0x4d3ea9,_0x2482c2)break;const _0x426beb=(_0x1bdc22+_0x55cd6d[_0x9d37a9(0x1ae)](_0xe1f212))[_0x9d37a9(0x18a)]('\x0a')[_0x9d37a9(0x187)](_0x46c242=>{const _0x594675=_0x9d37a9;try{return _0x1bdc22='',JSON[_0x594675(0x173)](_0x46c242);}catch{return _0x1bdc22=_0x46c242,null;}})[_0x9d37a9(0x16d)](_0x40b1b4=>null!==_0x40b1b4);_0x426beb[_0x9d37a9(0x17f)]&&(_0x29b352+=_0x426beb[_0x9d37a9(0x187)](_0x5bbcf3=>this[_0x9d37a9(0x1a8)](_0x5bbcf3,_0xca2119))[_0x9d37a9(0x172)](''),_0x15f456(_0x29b352));}return Promise[_0x9d37a9(0x178)]();}async[_0x219d9a(0x183)](_0x1185e7,_0x511194,_0x198873){const _0x39aac4=_0x219d9a;let _0x5cc202;return _0x5cc202=_0x1185e7 instanceof Response?await _0x1185e7[_0x39aac4(0x17d)]():JSON[_0x39aac4(0x173)](new TextDecoder(_0x39aac4(0x170))[_0x39aac4(0x1ae)](_0x1185e7[_0x39aac4(0x16e)])),(_0x198873(this[_0x39aac4(0x1a8)](_0x5cc202,_0x511194)),Promise[_0x39aac4(0x178)]());}[_0x219d9a(0x1a8)](_0x2f2c41,_0x33b40b){const _0x41d4a2=_0x219d9a;switch(this[_0x41d4a2(0x162)](_0x33b40b)){case _0x41d4a2(0x1a2):return _0x2f2c41[_0x41d4a2(0x190)];case _0x41d4a2(0x163):return _0x2f2c41[_0x41d4a2(0x166)][0x0][_0x41d4a2(0x1aa)][_0x41d4a2(0x18c)];case _0x41d4a2(0x176):return _0x2f2c41[_0x41d4a2(0x18b)][0x0][_0x41d4a2(0x18c)];case _0x41d4a2(0x192):return _0x2f2c41[_0x41d4a2(0x185)];}}}
|