@ckeditor/ckeditor5-ai 47.0.0-alpha.6 → 47.0.0-alpha.8
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 +4 -0
- 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/dist/index-editor.css +147 -23
- package/dist/index.css +182 -24
- package/dist/index.js +4 -4
- 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 +5 -0
- package/lang/translations/af.po +224 -0
- package/lang/translations/ar.po +232 -0
- package/lang/translations/ast.po +224 -0
- package/lang/translations/az.po +224 -0
- package/lang/translations/be.po +226 -0
- package/lang/translations/bg.po +224 -0
- package/lang/translations/bn.po +224 -0
- package/lang/translations/bs.po +226 -0
- package/lang/translations/ca.po +224 -0
- package/lang/translations/cs.po +226 -0
- package/lang/translations/da.po +224 -0
- package/lang/translations/de-ch.po +224 -0
- package/lang/translations/de.po +224 -0
- package/lang/translations/el.po +224 -0
- package/lang/translations/en-au.po +224 -0
- package/lang/translations/en-gb.po +224 -0
- package/lang/translations/en.po +224 -0
- package/lang/translations/eo.po +224 -0
- package/lang/translations/es-co.po +224 -0
- package/lang/translations/es.po +224 -0
- package/lang/translations/et.po +224 -0
- package/lang/translations/eu.po +224 -0
- package/lang/translations/fa.po +222 -0
- package/lang/translations/fi.po +224 -0
- package/lang/translations/fr.po +224 -0
- package/lang/translations/gl.po +224 -0
- package/lang/translations/gu.po +224 -0
- package/lang/translations/he.po +224 -0
- package/lang/translations/hi.po +224 -0
- package/lang/translations/hr.po +226 -0
- package/lang/translations/hu.po +224 -0
- package/lang/translations/hy.po +224 -0
- package/lang/translations/id.po +222 -0
- package/lang/translations/it.po +224 -0
- package/lang/translations/ja.po +222 -0
- package/lang/translations/jv.po +224 -0
- package/lang/translations/kk.po +224 -0
- package/lang/translations/km.po +222 -0
- package/lang/translations/kn.po +224 -0
- package/lang/translations/ko.po +222 -0
- package/lang/translations/ku.po +224 -0
- package/lang/translations/lt.po +226 -0
- package/lang/translations/lv.po +226 -0
- package/lang/translations/ms.po +222 -0
- package/lang/translations/nb.po +224 -0
- package/lang/translations/ne.po +224 -0
- package/lang/translations/nl.po +224 -0
- package/lang/translations/no.po +224 -0
- package/lang/translations/oc.po +224 -0
- package/lang/translations/pl.po +226 -0
- package/lang/translations/pt-br.po +224 -0
- package/lang/translations/pt.po +224 -0
- package/lang/translations/ro.po +226 -0
- package/lang/translations/ru.po +226 -0
- package/lang/translations/si.po +224 -0
- package/lang/translations/sk.po +226 -0
- package/lang/translations/sl.po +228 -0
- package/lang/translations/sq.po +224 -0
- package/lang/translations/sr-latn.po +226 -0
- package/lang/translations/sr.po +226 -0
- package/lang/translations/sv.po +224 -0
- package/lang/translations/th.po +222 -0
- package/lang/translations/ti.po +224 -0
- package/lang/translations/tk.po +224 -0
- package/lang/translations/tr.po +224 -0
- package/lang/translations/tt.po +222 -0
- package/lang/translations/ug.po +222 -0
- package/lang/translations/uk.po +226 -0
- package/lang/translations/ur.po +224 -0
- package/lang/translations/uz.po +224 -0
- package/lang/translations/vi.po +222 -0
- package/lang/translations/zh-cn.po +222 -0
- package/lang/translations/zh.po +222 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.d.ts +0 -2
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.d.ts +1 -0
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.d.ts +3 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.d.ts +12 -4
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +0 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +7 -3
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +1 -227
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.d.ts +3 -0
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.d.ts +0 -30
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.d.ts +4 -0
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +1 -0
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +8 -2
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +9 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.d.ts +0 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.d.ts +0 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aiconfig.d.ts +64 -9
- package/src/aicore/aiconnector.d.ts +13 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.d.ts +0 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.d.ts +41 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.d.ts +2 -2
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +16 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.d.ts +0 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +1 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.d.ts +164 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.d.ts +0 -49
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.d.ts +0 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.d.ts +29 -0
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.d.ts +0 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +1 -2
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +0 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +4 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +0 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.d.ts +6 -16
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +17 -4
- package/theme/aichat/aichat.css +1 -0
- package/theme/aichat/aichatfeed.css +39 -0
- package/theme/aichat/aichathistory.css +26 -9
- package/theme/aichat/aiminitoolbar.css +8 -0
- package/theme/aichat/aisuggestioncontainer.css +6 -0
- package/theme/aieditorintegration/aitogglebutton.css +23 -0
- package/theme/aiquickactions/aiquickactions.css +23 -4
- package/theme/aireviewmode/aireviewmode-check-run-result.css +3 -2
- package/theme/aireviewmode/aireviewmode.css +23 -0
- package/theme/aitabs/aitabsview.css +6 -1
- package/theme/common/aibutton.css +1 -5
- package/theme/common/aiheader.css +1 -0
- package/theme/common/aitrackchanges.css +13 -0
- package/src/aiquickactions/utils/common-translations.d.ts +0 -9
- package/src/aiquickactions/utils/common-translations.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1e282c=_0x45ab;(function(_0x3ef094,_0x567bb5){const _0x41b99e=_0x45ab,_0xabf7f8=_0x3ef094();while(!![]){try{const _0x3c414a=-parseInt(_0x41b99e(0x184))/0x1*(-parseInt(_0x41b99e(0x183))/0x2)+-parseInt(_0x41b99e(0x179))/0x3*(parseInt(_0x41b99e(0x185))/0x4)+parseInt(_0x41b99e(0x180))/0x5*(parseInt(_0x41b99e(0x177))/0x6)+-parseInt(_0x41b99e(0x186))/0x7*(parseInt(_0x41b99e(0x17e))/0x8)+parseInt(_0x41b99e(0x181))/0x9+-parseInt(_0x41b99e(0x17d))/0xa+parseInt(_0x41b99e(0x178))/0xb*(parseInt(_0x41b99e(0x17b))/0xc);if(_0x3c414a===_0x567bb5)break;else _0xabf7f8['push'](_0xabf7f8['shift']());}catch(_0x238002){_0xabf7f8['push'](_0xabf7f8['shift']());}}}(_0x4578,0xe74f0));function _0x45ab(_0x433151,_0x301cf){const _0x4578cf=_0x4578();return _0x45ab=function(_0x45ab92,_0x57ec1c){_0x45ab92=_0x45ab92-0x177;let _0x525652=_0x4578cf[_0x45ab92];return _0x525652;},_0x45ab(_0x433151,_0x301cf);}import{ListView as _0x4db15b}from'ckeditor5/src/ui.js';function _0x4578(){const _0x1652c4=['8QpXzfy','258419RYkJic','4bPCQWG','204022gCTNsl','sections','addMany','4875918xueSyN','22jiVpeO','2944533UZCqjj','ck-ai-chat-history__sections','5079372rImVAx','items','7412410PwdsJO','264QxhWOF','filter','10mEAveZ','1138194wqoTcL','extendTemplate'];_0x4578=function(){return _0x1652c4;};return _0x4578();}export class AIChatHistorySectionListView extends _0x4db15b{[_0x1e282c(0x187)];constructor(_0x5bbc04,_0x2d7f98){const _0x5c4d44=_0x1e282c;super(_0x5bbc04),this[_0x5c4d44(0x187)]=_0x2d7f98,this[_0x5c4d44(0x17c)][_0x5c4d44(0x188)](this[_0x5c4d44(0x187)]),this[_0x5c4d44(0x182)]({'attributes':{'class':[_0x5c4d44(0x17a)]}});}[_0x1e282c(0x17f)](_0x2aec2d){const _0x71daa6=_0x1e282c;let _0x1f369a=0x0,_0x3879d2=0x0;for(const _0x3546be of this[_0x71daa6(0x187)]){const {resultsCount:_0x185687,totalItemsCount:_0x54ac62}=_0x3546be[_0x71daa6(0x17f)](_0x2aec2d);_0x1f369a+=_0x185687,_0x3879d2+=_0x54ac62;}return{'resultsCount':_0x1f369a,'totalItemsCount':_0x3879d2};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xa758c5=_0x43c0;function _0x43c0(_0x3cfe27,_0xd94975){const _0x5e6ef8=_0x5e6e();return _0x43c0=function(_0x43c0cb,_0x58ca63){_0x43c0cb=_0x43c0cb-0xce;let _0x22425d=_0x5e6ef8[_0x43c0cb];return _0x22425d;},_0x43c0(_0x3cfe27,_0xd94975);}function _0x5e6e(){const _0x2629ed=['items','change:errorMessage','clear','updateItemTitle','ck-ai-chat-error__dismiss-button','6367704WiTfWq','AI_CHAT_HISTORY_GO_TO_CHAT_BUTTON','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','bindTemplate','some','resizeButton','getItem','children','ck-ai-header\x20ck-ai-header_history','remove','isMaximized','_refreshSearch','set','fieldView','change:isLoading','openChat','isLoading','locale','isEmptyViewVisible','_createSearchView','div','push','setTemplate','ck-ai-chat-history','_createErrorView','emptyView','bind','AI_CHAT_HISTORY_HEADING','sectionsView','indexOf','element','ltr','ck-reset_all','_createEmptyStateView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','ck-ai-chat-history__empty-message','searchView','updateTitle','14182EYABvR','removeHistoryItem','AI_CHAT_HISTORY_SEARCH_LABEL','title','AI_CHAT_HISTORY_EMPTY_MESSAGE','removeItem','add','search','errorView','length','3896WROicl','aiHistory','2454525OEdujg','delegate','ck-rounded-corners','updateLoadingState','isVisible','queryView','updateItemLoadingState','fire','_createSkeletonView','change:hasItems','execute','value','_createListItemViews','ck-ai-chat-history__empty','updateHistoryItemsWithCategories','ck-ai-chat-history__open-chat-button','sections','ck-ai-chat-error','isSearchViewVisible','extendTemplate','skeletonView','hasItems','687688VCqqXV','itemsViews','32173632oOqmUL','_updateViewVisibility','render','5panzFA','errorMessage','ck-hidden','ck-ai-chat-history__content','addMany','splice','2207580FhKGPi','80986nQFiCQ'];_0x5e6e=function(){return _0x2629ed;};return _0x5e6e();}(function(_0x15c168,_0x5cfb47){const _0x4d4d0a=_0x43c0,_0x164ebe=_0x15c168();while(!![]){try{const _0x5e8610=parseInt(_0x4d4d0a(0x10f))/0x1+parseInt(_0x4d4d0a(0x10e))/0x2+parseInt(_0x4d4d0a(0xed))/0x3+-parseInt(_0x4d4d0a(0x103))/0x4*(-parseInt(_0x4d4d0a(0x108))/0x5)+parseInt(_0x4d4d0a(0x115))/0x6+parseInt(_0x4d4d0a(0xe1))/0x7*(parseInt(_0x4d4d0a(0xeb))/0x8)+-parseInt(_0x4d4d0a(0x105))/0x9;if(_0x5e8610===_0x5cfb47)break;else _0x164ebe['push'](_0x164ebe['shift']());}catch(_0x33a38f){_0x164ebe['push'](_0x164ebe['shift']());}}}(_0x5e6e,0x9e323));import{View as _0x37d288,SearchTextView as _0x4d56c9,FormHeaderView as _0x5a5627,ButtonView as _0xff997a}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x19ab9a,IconCancel as _0x45f1b7}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x13eddf}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x450130}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x687942}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x4ec8fd}from'../aichathistoryui.js';import{AISkeletonView as _0x30e960,SKELETON_DEFINITIONS as _0x5849fd}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x573891}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x408d68}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x37d288{[_0xa758c5(0xdf)];[_0xa758c5(0xe9)];[_0xa758c5(0x101)];[_0xa758c5(0xd4)];[_0xa758c5(0xd7)];[_0xa758c5(0x11a)];constructor(_0x512ed0,_0x1f8210){const _0x54ad18=_0xa758c5;super(_0x512ed0),this[_0x54ad18(0x121)](_0x54ad18(0x102),!0x1),this[_0x54ad18(0x121)](_0x54ad18(0x125),!0x0),this[_0x54ad18(0x121)](_0x54ad18(0x109),''),this[_0x54ad18(0x121)](_0x54ad18(0x11f),!0x1),this[_0x54ad18(0x121)](_0x54ad18(0xff),!0x1),this[_0x54ad18(0x121)](_0x54ad18(0x127),!0x1);const _0x436d1a=new _0x5a5627(_0x512ed0,{'label':_0x408d68(_0x512ed0,_0x54ad18(0xd6)),'icon':_0x19ab9a,'class':_0x54ad18(0x11d)});_0x1f8210&&(this[_0x54ad18(0x11a)]=_0x573891(_0x512ed0,this),_0x436d1a[_0x54ad18(0x11c)][_0x54ad18(0xe7)](this[_0x54ad18(0x11a)])),this[_0x54ad18(0xd7)]=new _0x13eddf(_0x512ed0,[]),this[_0x54ad18(0xd7)][_0x54ad18(0xee)](..._0x4ec8fd)['to'](this),this[_0x54ad18(0xe9)]=this[_0x54ad18(0xd3)](),this[_0x54ad18(0x101)]=this[_0x54ad18(0xf5)](),this[_0x54ad18(0xd4)]=this[_0x54ad18(0xdc)](),this[_0x54ad18(0xdf)]=this[_0x54ad18(0xce)](),this['on'](_0x54ad18(0x123),()=>this[_0x54ad18(0x106)]()),this['on'](_0x54ad18(0xf6),()=>this[_0x54ad18(0x106)]()),this['on'](_0x54ad18(0x111),()=>this[_0x54ad18(0x106)]()),this[_0x54ad18(0xd1)]({'tag':_0x54ad18(0xcf),'attributes':{'class':['ck',_0x54ad18(0xdb),_0x54ad18(0xd2),_0x54ad18(0xef)],'dir':_0x54ad18(0xda)},'children':[_0x436d1a,{'tag':_0x54ad18(0xcf),'attributes':{'class':[_0x54ad18(0x10b)]},'children':[this[_0x54ad18(0x101)],this[_0x54ad18(0xe9)],this[_0x54ad18(0xd4)],this[_0x54ad18(0xdf)]]}]});}[_0xa758c5(0x106)](){const _0x198a4f=_0xa758c5;this[_0x198a4f(0xff)]=!this[_0x198a4f(0x125)]&&this[_0x198a4f(0x102)]&&!this[_0x198a4f(0x109)],this[_0x198a4f(0x127)]=!this[_0x198a4f(0x125)]&&!this[_0x198a4f(0x102)]&&!this[_0x198a4f(0x109)];}[_0xa758c5(0xce)](){const _0x2bb396=_0xa758c5,_0x4f7139=new _0x4d56c9(this[_0x2bb396(0x126)],{'filteredView':this[_0x2bb396(0xd7)],'queryView':{'label':_0x408d68(this[_0x2bb396(0x126)],_0x2bb396(0xe3))},'infoView':{'text':{'notFound':{'primary':_0x50b448=>_0x408d68(this[_0x2bb396(0x126)],_0x2bb396(0xdd),_0x50b448),'secondary':_0x408d68(this[_0x2bb396(0x126)],_0x2bb396(0x117))}}}});return _0x4f7139['on'](_0x2bb396(0x107),()=>{const _0x56bf4b=_0x2bb396;this[_0x56bf4b(0xdf)][_0x56bf4b(0x11c)][_0x56bf4b(0xe7)](this[_0x56bf4b(0xe9)],0x1);}),_0x4f7139[_0x2bb396(0x100)]({'attributes':{'class':[this[_0x2bb396(0x118)]['if'](_0x2bb396(0xff),_0x2bb396(0x10a),_0x12af1e=>!_0x12af1e)]}}),_0x4f7139;}[_0xa758c5(0xf5)](){const _0x214a8b=_0xa758c5,_0x47c071=new _0x30e960(this[_0x214a8b(0x126)],_0x5849fd[_0x214a8b(0xec)]);return _0x47c071[_0x214a8b(0x100)]({'attributes':{'class':[this[_0x214a8b(0x118)]['if'](_0x214a8b(0x125),_0x214a8b(0x10a),_0x431656=>!_0x431656)]}}),_0x47c071;}[_0xa758c5(0xd3)](){const _0x8a585f=_0xa758c5,_0x529c8d=new _0x37d288(this[_0x8a585f(0x126)]),_0x56b074=new _0xff997a(this[_0x8a585f(0x126)]);return _0x56b074[_0x8a585f(0x121)]({'withText':!0x1,'icon':_0x45f1b7,'class':_0x8a585f(0x114)}),_0x56b074[_0x8a585f(0xd5)](_0x8a585f(0xf1))['to'](this,_0x8a585f(0x102),_0x5069a3=>!!_0x5069a3),_0x56b074['on'](_0x8a585f(0xf7),()=>{const _0x4ac8c0=_0x8a585f;this[_0x4ac8c0(0x109)]='';}),_0x529c8d[_0x8a585f(0xd1)]({'tag':_0x8a585f(0xcf),'attributes':{'class':['ck',_0x8a585f(0xfe),this[_0x8a585f(0x118)]['if'](_0x8a585f(0x109),_0x8a585f(0x10a),_0x53673e=>!_0x53673e)]},'children':[{'tag':'p','children':[{'text':this[_0x8a585f(0x118)]['to'](_0x8a585f(0x109))}]},_0x56b074]}),_0x529c8d;}[_0xa758c5(0xdc)](){const _0x319482=_0xa758c5,_0x3303bb=new _0xff997a(this[_0x319482(0x126)]);_0x3303bb[_0x319482(0x121)]({'withText':!0x0,'label':_0x408d68(this[_0x319482(0x126)],_0x319482(0x116)),'class':_0x319482(0xfc)}),_0x3303bb['on'](_0x319482(0xf7),()=>{const _0x50cf8e=_0x319482;this[_0x50cf8e(0xf4)](_0x50cf8e(0x124));});const _0x3ab047=new _0x37d288(this[_0x319482(0x126)]);return _0x3ab047[_0x319482(0xd1)]({'tag':_0x319482(0xcf),'attributes':{'class':[_0x319482(0xfa),this[_0x319482(0x118)]['if'](_0x319482(0x127),_0x319482(0x10a),_0x3624f2=>!_0x3624f2)]},'children':[{'tag':'p','attributes':{'class':[_0x319482(0xde)]},'children':[_0x408d68(this[_0x319482(0x126)],_0x319482(0xe5))]},_0x3303bb]}),_0x3ab047;}[_0xa758c5(0xf9)](_0x358ed4,_0x5c931){const _0x39d4b5=_0xa758c5,_0x4808d2=[];for(const _0x56c44c of _0x358ed4){const _0x142527=new _0x687942(_0x5c931,_0x56c44c);_0x142527[_0x39d4b5(0xee)](..._0x4ec8fd)['to'](this),_0x4808d2[_0x39d4b5(0xd0)](_0x142527);}return _0x4808d2;}[_0xa758c5(0xfb)](_0x11948d){const _0x15c008=_0xa758c5,_0x5bc5f7=this[_0x15c008(0x126)]||'en',_0xb0e5e5=[];for(const _0x7ac4c2 of _0x11948d){const _0x18bd21=this[_0x15c008(0xf9)](_0x7ac4c2[_0x15c008(0x110)],_0x5bc5f7);_0xb0e5e5[_0x15c008(0xd0)](new _0x450130(_0x5bc5f7,{'title':_0x7ac4c2[_0x15c008(0xe4)],'items':_0x18bd21}));}this[_0x15c008(0xd7)][_0x15c008(0xfd)]=_0xb0e5e5,this[_0x15c008(0xd7)][_0x15c008(0x110)][_0x15c008(0x112)](),this[_0x15c008(0xd7)][_0x15c008(0x110)][_0x15c008(0x10c)](_0xb0e5e5),this[_0x15c008(0x102)]=_0x11948d[_0x15c008(0x119)](_0x2dd723=>_0x2dd723[_0x15c008(0x110)][_0x15c008(0xea)]>0x0),this[_0x15c008(0x120)]();}[_0xa758c5(0xe2)](_0x2e77a3){const _0x39aaae=_0xa758c5;for(const _0x4202a6 of this[_0x39aaae(0xd7)][_0x39aaae(0xfd)]){const _0x402627=_0x4202a6[_0x39aaae(0x11b)](_0x2e77a3);if(_0x402627){if(_0x4202a6[_0x39aaae(0xe6)](_0x402627),0x0===_0x4202a6[_0x39aaae(0x104)][_0x39aaae(0xea)]){const _0x5bf79c=this[_0x39aaae(0xd7)][_0x39aaae(0xfd)][_0x39aaae(0xd8)](_0x4202a6);-0x1!==_0x5bf79c&&(this[_0x39aaae(0xd7)][_0x39aaae(0xfd)][_0x39aaae(0x10d)](_0x5bf79c,0x1),this[_0x39aaae(0xd7)][_0x39aaae(0x110)][_0x39aaae(0x11e)](_0x4202a6));}this[_0x39aaae(0x102)]=this[_0x39aaae(0xd7)][_0x39aaae(0xfd)][_0x39aaae(0xea)]>0x0,this[_0x39aaae(0x120)]();break;}}}[_0xa758c5(0x113)](_0x49468c,_0x120aaa){const _0x8b8bd8=_0xa758c5;for(const _0x5169b7 of this[_0x8b8bd8(0xd7)][_0x8b8bd8(0xfd)]){const _0xa1a9c3=_0x5169b7[_0x8b8bd8(0x11b)](_0x49468c);if(_0xa1a9c3){_0xa1a9c3[_0x8b8bd8(0xe0)](_0x120aaa);break;}}}[_0xa758c5(0xf3)](_0x1b7dd5,_0x35803a,_0x2bccea){const _0x76c33c=_0xa758c5;for(const _0x3a2c03 of this[_0x76c33c(0xd7)][_0x76c33c(0xfd)]){const _0x36546a=_0x3a2c03[_0x76c33c(0x11b)](_0x1b7dd5);if(_0x36546a){_0x36546a[_0x76c33c(0xf0)](_0x35803a,_0x2bccea);break;}}}[_0xa758c5(0x120)](){const _0x5cc75d=_0xa758c5;if(this[_0x5cc75d(0x102)]){const _0x5aafec=this[_0x5cc75d(0xdf)][_0x5cc75d(0xf2)][_0x5cc75d(0x122)]?.[_0x5cc75d(0xd9)]?.[_0x5cc75d(0xf8)]||'';this[_0x5cc75d(0xdf)][_0x5cc75d(0xe8)](_0x5aafec);}}}
|
|
23
|
+
const _0x51f3ab=_0x2c5b;(function(_0x4dbc3e,_0xec6521){const _0x42e062=_0x2c5b,_0x36d5b7=_0x4dbc3e();while(!![]){try{const _0x51f3aa=-parseInt(_0x42e062(0x212))/0x1*(-parseInt(_0x42e062(0x1fd))/0x2)+-parseInt(_0x42e062(0x1d9))/0x3+parseInt(_0x42e062(0x20a))/0x4*(-parseInt(_0x42e062(0x1d0))/0x5)+-parseInt(_0x42e062(0x1df))/0x6+parseInt(_0x42e062(0x1f2))/0x7*(parseInt(_0x42e062(0x1db))/0x8)+-parseInt(_0x42e062(0x1d4))/0x9*(parseInt(_0x42e062(0x1fc))/0xa)+-parseInt(_0x42e062(0x1ce))/0xb*(-parseInt(_0x42e062(0x1e3))/0xc);if(_0x51f3aa===_0xec6521)break;else _0x36d5b7['push'](_0x36d5b7['shift']());}catch(_0x46e86f){_0x36d5b7['push'](_0x36d5b7['shift']());}}}(_0x3cee,0xdf54d));import{View as _0x5a3873,SearchTextView as _0x4d4b16,FormHeaderView as _0x2f2620,ButtonView as _0x425e13}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x34178d,IconCancel as _0x5a88d0,IconPlus as _0x2680cd}from'ckeditor5/src/icons.js';function _0x3cee(){const _0x29a4fd=['isMaximized','change:errorMessage','setTemplate','splice','remove','extendTemplate','ck-ai-chat__start-conversation','itemsViews','ck-ai-chat-history','ck-ai-header\x20ck-ai-header_history','ck-reset_all','ck-ai-chat-history__empty-message','addMany','updateItemTitle','ck-rounded-corners','79079CVUQRu','AI_CHAT_HISTORY_SEARCH_LABEL','17905ThNcJz','ck-ai-chat-error','children','execute','27eKrgVv','render','ck-ai-chat-history__empty','_createErrorView','_createSearchView','796464OkckUh','fieldView','808QMQxGx','items','sections','value','4100238XfjOYT','change:hasItems','errorMessage','resizeButton','1068NVGnRd','emptyView','bindTemplate','searchView','change:isLoading','delegate','search','element','isSearchViewVisible','div','_updateViewVisibility','ltr','_createEmptyStateView','getItem','openChat','63707vOJkij','indexOf','locale','skeletonView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','add','title','push','some','2003470HiakqZ','6lLBITA','isEmptyViewVisible','isVisible','errorView','aiHistory','AI_CHAT_HISTORY_EMPTY_MESSAGE','_refreshSearch','isLoading','_createListItemViews','updateTitle','length','ck-hidden','hasItems','1004PFTYzW','removeItem','AI_CHAT_LABEL_NEW_CHAT','updateHistoryItemsWithCategories','fire','set','ck-ai-chat-error__dismiss-button','sectionsView','601492jFJiAb','ck-ai-chat-history__content','updateItemLoadingState','updateLoadingState','clear','AI_CHAT_HISTORY_HEADING','queryView','_createSkeletonView','removeHistoryItem','bind'];_0x3cee=function(){return _0x29a4fd;};return _0x3cee();}import{AIChatHistorySectionListView as _0x5122e6}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x26d34e}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x359a6f}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0xd7faff}from'../aichathistoryui.js';import{AISkeletonView as _0x28fa08,SKELETON_DEFINITIONS as _0x3ea2cc}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x14160e}from'../../aicore/utils/createresizebutton.js';function _0x2c5b(_0x5295a4,_0x4be560){const _0x3cee68=_0x3cee();return _0x2c5b=function(_0x2c5b94,_0x49a087){_0x2c5b94=_0x2c5b94-0x1ce;let _0x25786c=_0x3cee68[_0x2c5b94];return _0x25786c;},_0x2c5b(_0x5295a4,_0x4be560);}import{getTranslation as _0xa2f439}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x5a3873{[_0x51f3ab(0x1e6)];[_0x51f3ab(0x200)];[_0x51f3ab(0x1f5)];[_0x51f3ab(0x1e4)];[_0x51f3ab(0x211)];[_0x51f3ab(0x1e2)];constructor(_0x656f0e,_0x47452b){const _0x39e3cd=_0x51f3ab;super(_0x656f0e),this[_0x39e3cd(0x20f)](_0x39e3cd(0x209),!0x1),this[_0x39e3cd(0x20f)](_0x39e3cd(0x204),!0x0),this[_0x39e3cd(0x20f)](_0x39e3cd(0x1e1),''),this[_0x39e3cd(0x20f)](_0x39e3cd(0x21c),!0x1),this[_0x39e3cd(0x20f)](_0x39e3cd(0x1eb),!0x1),this[_0x39e3cd(0x20f)](_0x39e3cd(0x1fe),!0x1);const _0x531f16=new _0x2f2620(_0x656f0e,{'label':_0xa2f439(_0x656f0e,_0x39e3cd(0x217)),'icon':_0x34178d,'class':_0x39e3cd(0x225)});_0x47452b&&(this[_0x39e3cd(0x1e2)]=_0x14160e(_0x656f0e,this),_0x531f16[_0x39e3cd(0x1d2)][_0x39e3cd(0x1f8)](this[_0x39e3cd(0x1e2)])),this[_0x39e3cd(0x211)]=new _0x5122e6(_0x656f0e,[]),this[_0x39e3cd(0x211)][_0x39e3cd(0x1e8)](..._0xd7faff)['to'](this),this[_0x39e3cd(0x200)]=this[_0x39e3cd(0x1d7)](),this[_0x39e3cd(0x1f5)]=this[_0x39e3cd(0x219)](),this[_0x39e3cd(0x1e4)]=this[_0x39e3cd(0x1ef)](),this[_0x39e3cd(0x1e6)]=this[_0x39e3cd(0x1d8)](),this['on'](_0x39e3cd(0x1e7),()=>this[_0x39e3cd(0x1ed)]()),this['on'](_0x39e3cd(0x1e0),()=>this[_0x39e3cd(0x1ed)]()),this['on'](_0x39e3cd(0x21d),()=>this[_0x39e3cd(0x1ed)]()),this[_0x39e3cd(0x21e)]({'tag':_0x39e3cd(0x1ec),'attributes':{'class':['ck',_0x39e3cd(0x226),_0x39e3cd(0x224),_0x39e3cd(0x22a)],'dir':_0x39e3cd(0x1ee)},'children':[_0x531f16,{'tag':_0x39e3cd(0x1ec),'attributes':{'class':[_0x39e3cd(0x213)]},'children':[this[_0x39e3cd(0x1f5)],this[_0x39e3cd(0x200)],this[_0x39e3cd(0x1e4)],this[_0x39e3cd(0x1e6)]]}]});}[_0x51f3ab(0x1ed)](){const _0x4b7ed2=_0x51f3ab;this[_0x4b7ed2(0x1eb)]=!this[_0x4b7ed2(0x204)]&&this[_0x4b7ed2(0x209)]&&!this[_0x4b7ed2(0x1e1)],this[_0x4b7ed2(0x1fe)]=!this[_0x4b7ed2(0x204)]&&!this[_0x4b7ed2(0x209)]&&!this[_0x4b7ed2(0x1e1)];}[_0x51f3ab(0x1d8)](){const _0xec066e=_0x51f3ab,_0x489ab6=new _0x4d4b16(this[_0xec066e(0x1f4)],{'filteredView':this[_0xec066e(0x211)],'queryView':{'label':_0xa2f439(this[_0xec066e(0x1f4)],_0xec066e(0x1cf))},'infoView':{'text':{'notFound':{'primary':_0x26a6fb=>_0xa2f439(this[_0xec066e(0x1f4)],_0xec066e(0x1f7),_0x26a6fb),'secondary':_0xa2f439(this[_0xec066e(0x1f4)],_0xec066e(0x1f6))}}}});return _0x489ab6['on'](_0xec066e(0x1d5),()=>{const _0x2e9d66=_0xec066e;this[_0x2e9d66(0x1e6)][_0x2e9d66(0x1d2)][_0x2e9d66(0x1f8)](this[_0x2e9d66(0x200)],0x1);}),_0x489ab6[_0xec066e(0x221)]({'attributes':{'class':[this[_0xec066e(0x1e5)]['if'](_0xec066e(0x1eb),_0xec066e(0x208),_0x5a41af=>!_0x5a41af)]}}),_0x489ab6;}[_0x51f3ab(0x219)](){const _0x1cb07c=_0x51f3ab,_0x3b5050=new _0x28fa08(this[_0x1cb07c(0x1f4)],_0x3ea2cc[_0x1cb07c(0x201)]);return _0x3b5050[_0x1cb07c(0x221)]({'attributes':{'class':[this[_0x1cb07c(0x1e5)]['if'](_0x1cb07c(0x204),_0x1cb07c(0x208),_0x1c3ebe=>!_0x1c3ebe)]}}),_0x3b5050;}[_0x51f3ab(0x1d7)](){const _0x18f7be=_0x51f3ab,_0x2bcd9a=new _0x5a3873(this[_0x18f7be(0x1f4)]),_0x56e3ad=new _0x425e13(this[_0x18f7be(0x1f4)]);return _0x56e3ad[_0x18f7be(0x20f)]({'withText':!0x1,'icon':_0x5a88d0,'class':_0x18f7be(0x210)}),_0x56e3ad[_0x18f7be(0x21b)](_0x18f7be(0x1ff))['to'](this,_0x18f7be(0x209),_0x4f3371=>!!_0x4f3371),_0x56e3ad['on'](_0x18f7be(0x1d3),()=>{const _0x5a8817=_0x18f7be;this[_0x5a8817(0x1e1)]='';}),_0x2bcd9a[_0x18f7be(0x21e)]({'tag':_0x18f7be(0x1ec),'attributes':{'class':['ck',_0x18f7be(0x1d1),this[_0x18f7be(0x1e5)]['if'](_0x18f7be(0x1e1),_0x18f7be(0x208),_0x45be5c=>!_0x45be5c)]},'children':[{'tag':'p','children':[{'text':this[_0x18f7be(0x1e5)]['to'](_0x18f7be(0x1e1))}]},_0x56e3ad]}),_0x2bcd9a;}[_0x51f3ab(0x1ef)](){const _0x15011d=_0x51f3ab,_0x1c5bd8=new _0x425e13(this[_0x15011d(0x1f4)]);_0x1c5bd8[_0x15011d(0x20f)]({'label':_0xa2f439(this[_0x15011d(0x1f4)],_0x15011d(0x20c)),'withText':!0x0,'icon':_0x2680cd,'class':_0x15011d(0x222)}),_0x1c5bd8['on'](_0x15011d(0x1d3),()=>{const _0x35c76e=_0x15011d;this[_0x35c76e(0x20e)](_0x35c76e(0x1f1));});const _0x49e0c6=new _0x5a3873(this[_0x15011d(0x1f4)]);return _0x49e0c6[_0x15011d(0x21e)]({'tag':_0x15011d(0x1ec),'attributes':{'class':[_0x15011d(0x1d6),this[_0x15011d(0x1e5)]['if'](_0x15011d(0x1fe),_0x15011d(0x208),_0x24b482=>!_0x24b482)]},'children':[{'tag':'p','attributes':{'class':[_0x15011d(0x227)]},'children':[_0xa2f439(this[_0x15011d(0x1f4)],_0x15011d(0x202))]},_0x1c5bd8]}),_0x49e0c6;}[_0x51f3ab(0x205)](_0x1959b7,_0x439a19){const _0x348a31=_0x51f3ab,_0x31e896=[];for(const _0x20428a of _0x1959b7){const _0xc25e4a=new _0x359a6f(_0x439a19,_0x20428a);_0xc25e4a[_0x348a31(0x1e8)](..._0xd7faff)['to'](this),_0x31e896[_0x348a31(0x1fa)](_0xc25e4a);}return _0x31e896;}[_0x51f3ab(0x20d)](_0x1acd0a){const _0x590129=_0x51f3ab,_0x58e5d3=this[_0x590129(0x1f4)]||'en',_0x2d4a26=[];for(const _0x55567b of _0x1acd0a){const _0x14b85b=this[_0x590129(0x205)](_0x55567b[_0x590129(0x1dc)],_0x58e5d3);_0x2d4a26[_0x590129(0x1fa)](new _0x26d34e(_0x58e5d3,{'title':_0x55567b[_0x590129(0x1f9)],'items':_0x14b85b}));}this[_0x590129(0x211)][_0x590129(0x1dd)]=_0x2d4a26,this[_0x590129(0x211)][_0x590129(0x1dc)][_0x590129(0x216)](),this[_0x590129(0x211)][_0x590129(0x1dc)][_0x590129(0x228)](_0x2d4a26),this[_0x590129(0x209)]=_0x1acd0a[_0x590129(0x1fb)](_0x174d71=>_0x174d71[_0x590129(0x1dc)][_0x590129(0x207)]>0x0),this[_0x590129(0x203)]();}[_0x51f3ab(0x21a)](_0x3770ff){const _0x931c8f=_0x51f3ab;for(const _0x2e38ae of this[_0x931c8f(0x211)][_0x931c8f(0x1dd)]){const _0x233314=_0x2e38ae[_0x931c8f(0x1f0)](_0x3770ff);if(_0x233314){if(_0x2e38ae[_0x931c8f(0x20b)](_0x233314),0x0===_0x2e38ae[_0x931c8f(0x223)][_0x931c8f(0x207)]){const _0x501040=this[_0x931c8f(0x211)][_0x931c8f(0x1dd)][_0x931c8f(0x1f3)](_0x2e38ae);-0x1!==_0x501040&&(this[_0x931c8f(0x211)][_0x931c8f(0x1dd)][_0x931c8f(0x21f)](_0x501040,0x1),this[_0x931c8f(0x211)][_0x931c8f(0x1dc)][_0x931c8f(0x220)](_0x2e38ae));}this[_0x931c8f(0x209)]=this[_0x931c8f(0x211)][_0x931c8f(0x1dd)][_0x931c8f(0x207)]>0x0,this[_0x931c8f(0x203)]();break;}}}[_0x51f3ab(0x229)](_0x242603,_0x7291ba){const _0x1a3c96=_0x51f3ab;for(const _0x2708fc of this[_0x1a3c96(0x211)][_0x1a3c96(0x1dd)]){const _0x459aef=_0x2708fc[_0x1a3c96(0x1f0)](_0x242603);if(_0x459aef){_0x459aef[_0x1a3c96(0x206)](_0x7291ba);break;}}}[_0x51f3ab(0x214)](_0x355fee,_0x35b3bd,_0x574a28){const _0x449cc3=_0x51f3ab;for(const _0x1f8b83 of this[_0x449cc3(0x211)][_0x449cc3(0x1dd)]){const _0x139db0=_0x1f8b83[_0x449cc3(0x1f0)](_0x355fee);if(_0x139db0){_0x139db0[_0x449cc3(0x215)](_0x35b3bd,_0x574a28);break;}}}[_0x51f3ab(0x203)](){const _0x3e7bb1=_0x51f3ab;if(this[_0x3e7bb1(0x209)]){const _0x333089=this[_0x3e7bb1(0x1e6)][_0x3e7bb1(0x218)][_0x3e7bb1(0x1da)]?.[_0x3e7bb1(0x1ea)]?.[_0x3e7bb1(0x1de)]||'';this[_0x3e7bb1(0x1e6)][_0x3e7bb1(0x1e9)](_0x333089);}}}
|
package/src/aiconfig.d.ts
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import type { AIAssistantConfig } from './aiassistant/aiassistant.js';
|
|
10
10
|
import { type AIChatConfig } from './aichat/aichat.js';
|
|
11
|
+
import { type AISuggestionActionName } from './aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';
|
|
11
12
|
import { type AIQuickActionsConfig } from './aiquickactions/aiquickactions.js';
|
|
12
13
|
import { type AIReviewModeConfig } from './aireviewmode/aireviewmode.js';
|
|
13
14
|
/**
|
|
@@ -57,13 +58,31 @@ export interface AIConfig {
|
|
|
57
58
|
*/
|
|
58
59
|
chat?: AIChatConfig;
|
|
59
60
|
/**
|
|
60
|
-
* The configuration of the AI
|
|
61
|
+
* The configuration of the AI Quick Actions feature.
|
|
62
|
+
*
|
|
63
|
+
* Read more in {@link module:ai/aiquickactions/aiquickactions~AIQuickActionsConfig}.
|
|
61
64
|
*/
|
|
62
65
|
quickActions?: AIQuickActionsConfig;
|
|
63
66
|
/**
|
|
64
67
|
* The configuration of the {@link module:ai/aireviewmode/aireviewmode~AIReviewMode AI Review Mode feature}.
|
|
65
68
|
*/
|
|
66
69
|
reviewMode?: AIReviewModeConfig;
|
|
70
|
+
/**
|
|
71
|
+
* The configuration of the advanced reply dropdown in the AI chat feed. It also affects the buttons in quick actions balloon.
|
|
72
|
+
*
|
|
73
|
+
* It defines which actions and in which order will be displayed in the dropdown in the AI chat feed.
|
|
74
|
+
* The first action is used as the default action for the dropdown button.
|
|
75
|
+
* By default, it contains the following actions:
|
|
76
|
+
*
|
|
77
|
+
* Note, that the quick actions balloon does not display `'showChangeInText'` button.
|
|
78
|
+
*
|
|
79
|
+
* Note, that the `'applySuggestion'` button is hidden when track changes feature is turned on.
|
|
80
|
+
*
|
|
81
|
+
* ```ts
|
|
82
|
+
* [ 'applySuggestion', 'insertSuggestion', 'showChangeInText' ]
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
availableReplyActions?: Array<AISuggestionActionName>;
|
|
67
86
|
}
|
|
68
87
|
export type AIContainerType = 'sidebar' | 'overlay' | 'custom';
|
|
69
88
|
export type AIContainerSide = 'left' | 'right';
|
|
@@ -77,13 +96,31 @@ export interface AIContainerBase {
|
|
|
77
96
|
showResizeButton?: boolean;
|
|
78
97
|
}
|
|
79
98
|
/**
|
|
80
|
-
* The configuration of the AI user interface container in the sidebar mode.
|
|
99
|
+
* The configuration of the AI user interface container in the sidebar mode. Provide an existing DOM
|
|
100
|
+
* element to use as the container the AI user interface will automatically render into that element.
|
|
81
101
|
*
|
|
82
|
-
*
|
|
102
|
+
* Additionally, the {@link module:ai/aitabs/aitabs~AITabs tab buttons} can be positioned on the preferred
|
|
103
|
+
* side of the container.
|
|
83
104
|
*
|
|
84
|
-
*
|
|
105
|
+
* ```ts
|
|
106
|
+
* ClassicEditor
|
|
107
|
+
* .create( document.querySelector( '#editor' ), {
|
|
108
|
+
* // ... Other configuration options ...
|
|
109
|
+
* ai: {
|
|
110
|
+
* container: {
|
|
111
|
+
* type: 'sidebar',
|
|
85
112
|
*
|
|
86
|
-
*
|
|
113
|
+
* // Existing DOM element to use as the container for the AI user interface.
|
|
114
|
+
* element: document.querySelector( '#ai-sidebar-container' ),
|
|
115
|
+
*
|
|
116
|
+
* // (Optional) The preferred side of the element to position the tab buttons.
|
|
117
|
+
* side: 'right'
|
|
118
|
+
* },
|
|
119
|
+
* }
|
|
120
|
+
* } )
|
|
121
|
+
* .then( ... )
|
|
122
|
+
* .catch( ... );
|
|
123
|
+
* ```
|
|
87
124
|
*/
|
|
88
125
|
export interface AIContainerSidebar extends AIContainerBase {
|
|
89
126
|
type: 'sidebar';
|
|
@@ -91,8 +128,24 @@ export interface AIContainerSidebar extends AIContainerBase {
|
|
|
91
128
|
side?: AIContainerSide;
|
|
92
129
|
}
|
|
93
130
|
/**
|
|
94
|
-
* The configuration of the AI user interface container in the overlay mode.
|
|
95
|
-
* interface is displayed on top of the web page on a preferred side.
|
|
131
|
+
* The configuration of the AI user interface container in the overlay mode. In this mode, the AI user
|
|
132
|
+
* interface is displayed on top of the web page on a preferred side. This mode is best suited
|
|
133
|
+
* for integrations with limited space.
|
|
134
|
+
*
|
|
135
|
+
* ```ts
|
|
136
|
+
* ClassicEditor
|
|
137
|
+
* .create( document.querySelector( '#editor' ), {
|
|
138
|
+
* // ... Other configuration options ...
|
|
139
|
+
* ai: {
|
|
140
|
+
* container: {
|
|
141
|
+
* type: 'overlay',
|
|
142
|
+
* side: 'right'
|
|
143
|
+
* },
|
|
144
|
+
* }
|
|
145
|
+
* } )
|
|
146
|
+
* .then( ... )
|
|
147
|
+
* .catch( ... );
|
|
148
|
+
* ```
|
|
96
149
|
*/
|
|
97
150
|
export interface AIContainerOverlay extends AIContainerBase {
|
|
98
151
|
type: 'overlay';
|
|
@@ -105,11 +158,13 @@ export interface AIContainerOverlay extends AIContainerBase {
|
|
|
105
158
|
*
|
|
106
159
|
* * Use {@link module:ai/aitabs/aitabs~AITabs#view} to access the view of the AI user interface,
|
|
107
160
|
* * Use {@link module:ai/aitabs/tabs/aitabsview~AITabsView#getTabIds} to read available IDs of individual tabs in the AI user interface,
|
|
108
|
-
* * Use {@link module:ai/aitabs/tabs/aitabsview~AITabsView#getTab} to access individual tab views in the AI user interface
|
|
161
|
+
* * Use {@link module:ai/aitabs/tabs/aitabsview~AITabsView#getTab} to access individual tab views in the AI user interface,
|
|
162
|
+
* * Use {@link module:ai/aitabs/tabs/aitabsview~AITabsView#addTab} to add a new tab to the AI user interface,
|
|
163
|
+
* * Use {@link module:ai/aitabs/tabs/aitabsview~AITabsView#activateTab} to switch between tabs from the code.
|
|
109
164
|
*
|
|
110
165
|
* For example, to integrate the AI user interface with custom containers on the web page, use the following code:
|
|
111
166
|
*
|
|
112
|
-
* ```
|
|
167
|
+
* ```ts
|
|
113
168
|
* const tabsPlugin = editor.plugins.get( 'AITabs' );
|
|
114
169
|
*
|
|
115
170
|
* for ( const id of tabsPlugin.view.getTabIds() ) {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aicore/aiconnector
|
|
7
|
-
* @publicApi
|
|
8
7
|
*/
|
|
9
8
|
import { type EventSourceMessage } from 'eventsource-parser';
|
|
10
9
|
import { type Editor, type Context, ContextPlugin } from 'ckeditor5/src/core.js';
|
|
@@ -131,6 +130,11 @@ export declare class AIConnector extends ContextPlugin {
|
|
|
131
130
|
* Sends a request to the AI API '/reviews/custom/calls' endpoint and returns a response stream reader.
|
|
132
131
|
*/
|
|
133
132
|
callCustomReview({ content, prompt, model }: AIConnectorCustomReviewData): AIConnectorRequest;
|
|
133
|
+
upsertAIChatRating(conversationId: string, messageId: string, rating: AIRating): AIUpdateRating;
|
|
134
|
+
upsertAIActionRating(actionName: string, callId: string, rating: AIRating): AIUpdateRating;
|
|
135
|
+
upsertCustomAIActionRating(callId: string, rating: AIRating): AIUpdateRating;
|
|
136
|
+
upsertAIReviewRating(reviewName: string, callId: string, rating: AIRating, dataId?: string): AIUpdateRating;
|
|
137
|
+
upsertCustomAIReviewRating(callId: string, rating: AIRating, dataId?: string): AIUpdateRating;
|
|
134
138
|
}
|
|
135
139
|
export type AIGenericRequest = {
|
|
136
140
|
request: Promise<Response>;
|
|
@@ -300,3 +304,11 @@ export type AIConnectorCustomReviewData = {
|
|
|
300
304
|
prompt: string;
|
|
301
305
|
model: string;
|
|
302
306
|
};
|
|
307
|
+
export type AIUpdateRating = {
|
|
308
|
+
execute: () => Promise<void>;
|
|
309
|
+
abortController: AbortController;
|
|
310
|
+
};
|
|
311
|
+
export type AIRating = {
|
|
312
|
+
positiveCount: number;
|
|
313
|
+
totalCount: number;
|
|
314
|
+
};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x1257(_0x287869,_0x35e36d){const _0xc63f4e=_0xc63f();return _0x1257=function(_0x125724,_0x5db24c){_0x125724=_0x125724-0x13f;let _0x470d42=_0xc63f4e[_0x125724];return _0x470d42;},_0x1257(_0x287869,_0x35e36d);}const _0x4b09db=_0x1257;(function(_0x3649e9,_0x2ae105){const _0x5bbd05=_0x1257,_0x5eaa6e=_0x3649e9();while(!![]){try{const _0x34aa31=-parseInt(_0x5bbd05(0x1bf))/0x1+-parseInt(_0x5bbd05(0x14b))/0x2+-parseInt(_0x5bbd05(0x1aa))/0x3+-parseInt(_0x5bbd05(0x1b3))/0x4+-parseInt(_0x5bbd05(0x16b))/0x5*(parseInt(_0x5bbd05(0x168))/0x6)+-parseInt(_0x5bbd05(0x150))/0x7*(-parseInt(_0x5bbd05(0x172))/0x8)+parseInt(_0x5bbd05(0x146))/0x9*(parseInt(_0x5bbd05(0x188))/0xa);if(_0x34aa31===_0x2ae105)break;else _0x5eaa6e['push'](_0x5eaa6e['shift']());}catch(_0x287e42){_0x5eaa6e['push'](_0x5eaa6e['shift']());}}}(_0xc63f,0xa05bc));import{createParser as _0x58b8b9}from'eventsource-parser';function _0xc63f(){const _0x2e8fac=['fetchConversation','/actions/system/','/models/1','catch','fetchConversationMessages','374909ObzVvd','fetchConversations','Content-Type','isPremiumPlugin','name','https://ai.cke-cs.com/v1','application/json','/conversations?','data','/documents/','search','621ZpnqzL','reset','read','/calls','AIConnector','1415504UyrBjW','deleteFile','MAKE_SHORTER','PATCH','attributes','64099NiVHYS','body','/conversations','/files','ai-request-failed','json','ai-request-aborted','CloudServices','_token','Bearer\x20','get','queryAssistant','pluginName','getModels','continue','MAKE_LONGER','fetchDocument','/reviews/custom/calls','then','requires','executeCustomAction','map','deleteDocument','push','5790jownru','startConversation','uploadFile','6140xLtrGt','stringify','uploadDocument','locale','parse','improve-writing','AI_MODEL_DESCRIPTION_','752QbntSL','statusText','keys','deleteWebResource','/actions/custom/calls','status','limit','plugins','deleteConversation','make-shorter','_sendApiRequest','init','uploadUrl','AbortError','config','toString','releaseLock','toUpperCase','fix-grammar','make-tone-casual','/documents','group','542820iIUarQ','DELETE','/reviews/system/','make-longer','IMPROVE_WRITING','TRANSLATE','excludeEmpty','getReader','/web-resources/','executeAction','abortController','context','translate','/messages','ai.serviceUrl','ai-missing-token','updateConversation','CONTINUE','callSystemReview','append','items','decode','_getStreamReader','100','/conversations/','_handleError','true','MAKE_TONE_FORMAL','value','POST','length','signal','request','file','1908819VJDFjO','/web-resources','GET','FIX_GRAMMAR','_decoder','callCustomReview','/files/','isOfficialPlugin','token','4181736DrWjnr','MAKE_TONE_CASUAL','feed','text','make-tone-formal','define','_apiUrl'];_0xc63f=function(){return _0x2e8fac;};return _0xc63f();}import{ContextPlugin as _0x4d729b}from'ckeditor5/src/core.js';import{CKEditorError as _0x44c60c}from'ckeditor5/src/utils.js';import{getTranslation as _0x4d3c15}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x1ca0f6){const _0x2bab08=_0x1257;_0x1ca0f6[_0x2bab08(0x199)]=_0x2bab08(0x15e),_0x1ca0f6[_0x2bab08(0x1ad)]=_0x2bab08(0x184),_0x1ca0f6[_0x2bab08(0x18c)]=_0x2bab08(0x170),_0x1ca0f6[_0x2bab08(0x15f)]=_0x2bab08(0x18b),_0x1ca0f6[_0x2bab08(0x14d)]=_0x2bab08(0x17b),_0x1ca0f6[_0x2bab08(0x1b4)]=_0x2bab08(0x185),_0x1ca0f6[_0x2bab08(0x1a3)]=_0x2bab08(0x1b7),_0x1ca0f6[_0x2bab08(0x18d)]=_0x2bab08(0x194);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x4d729b{[_0x4b09db(0x1b9)];[_0x4b09db(0x158)];[_0x4b09db(0x1ae)];static get[_0x4b09db(0x163)](){const _0x35eac1=_0x4b09db;return[_0x35eac1(0x157)];}static get[_0x4b09db(0x15c)](){const _0x59f5d7=_0x4b09db;return _0x59f5d7(0x14a);}static get[_0x4b09db(0x1b1)](){return!0x0;}static get[_0x4b09db(0x1c2)](){return!0x0;}constructor(_0x8a26e9){const _0x5d5ba8=_0x4b09db;super(_0x8a26e9),this[_0x5d5ba8(0x193)][_0x5d5ba8(0x180)][_0x5d5ba8(0x1b8)](_0x5d5ba8(0x196),_0x5d5ba8(0x140)),this[_0x5d5ba8(0x1b9)]=this[_0x5d5ba8(0x193)][_0x5d5ba8(0x180)][_0x5d5ba8(0x15a)](_0x5d5ba8(0x196)),this[_0x5d5ba8(0x158)]=null,this[_0x5d5ba8(0x1ae)]=new TextDecoder();}[_0x4b09db(0x17d)](){const _0x43047b=_0x4b09db,_0x24e877=this[_0x43047b(0x193)][_0x43047b(0x179)][_0x43047b(0x15a)](_0x43047b(0x157));if(!_0x24e877[_0x43047b(0x1b2)])throw new _0x44c60c(_0x43047b(0x197),this);this[_0x43047b(0x158)]=_0x24e877[_0x43047b(0x1b2)];}[_0x4b09db(0x169)](_0x18c8c3,_0x398bd4){const _0x10308a=_0x4b09db,_0x3411d2=this[_0x10308a(0x17c)](_0x10308a(0x152),_0x10308a(0x1a5),{'id':_0x18c8c3,'group':_0x398bd4});return{'getConversation':async()=>(await _0x3411d2[_0x10308a(0x1a8)])[_0x10308a(0x155)](),'abortController':_0x3411d2[_0x10308a(0x192)]};}[_0x4b09db(0x15b)]({message:_0x1baca4,conversationId:_0xa34248,parts:_0x573e38,capabilities:_0x382c91,model:_0x32d645,quickActionData:_0x18a9b7}){const _0x5fdcf9=_0x4b09db,_0x3ed37a={..._0x18a9b7&&{'quickActionData':_0x18a9b7}},_0x1830fb={'prompt':_0x1baca4,'content':_0x573e38,'model':_0x32d645,..._0x382c91&&{'capabilities':_0x382c91},...Object[_0x5fdcf9(0x174)](_0x3ed37a)[_0x5fdcf9(0x1a6)]>0x0&&{'attributes':_0x3ed37a}},_0x99ee8a=this[_0x5fdcf9(0x17c)](_0x5fdcf9(0x1a0)+_0xa34248+_0x5fdcf9(0x195),_0x5fdcf9(0x1a5),_0x1830fb);return{'getStream':async()=>{const _0x4a1852=_0x5fdcf9,_0x3753ca=(await _0x99ee8a[_0x4a1852(0x1a8)])[_0x4a1852(0x151)];return this[_0x4a1852(0x19e)](_0x3753ca);},'abortController':_0x99ee8a[_0x5fdcf9(0x192)]};}[_0x4b09db(0x164)]({content:_0x47e31e,message:_0x63d180,model:_0x2ce474,outputFormat:_0x3ea86b}){const _0x2a1796=_0x4b09db,_0x560961={'content':[{'type':_0x2a1796(0x1b6),'content':_0x47e31e}],'prompt':_0x63d180,'model':_0x2ce474,'outputFormat':_0x3ea86b},_0x182b1a=this[_0x2a1796(0x17c)](_0x2a1796(0x176),_0x2a1796(0x1a5),_0x560961);return{'getStream':async()=>{const _0x49bbb6=_0x2a1796,_0x20599a=(await _0x182b1a[_0x49bbb6(0x1a8)])[_0x49bbb6(0x151)];return this[_0x49bbb6(0x19e)](_0x20599a);},'abortController':_0x182b1a[_0x2a1796(0x192)]};}[_0x4b09db(0x191)]({actionName:_0x24f70d,content:_0x26b8d5,args:_0x5dd61c}){const _0x3fab0a=_0x4b09db,_0x2edf61={'content':[{'type':_0x3fab0a(0x1b6),'content':_0x26b8d5}],'args':_0x5dd61c},_0x4e5597=this[_0x3fab0a(0x17c)](_0x3fab0a(0x1bb)+_0x24f70d+_0x3fab0a(0x149),_0x3fab0a(0x1a5),_0x2edf61);return{'getStream':async()=>{const _0x231f2c=_0x3fab0a,_0x4e187b=(await _0x4e5597[_0x231f2c(0x1a8)])[_0x231f2c(0x151)];return this[_0x231f2c(0x19e)](_0x4e187b);},'abortController':_0x4e5597[_0x3fab0a(0x192)]};}[_0x4b09db(0x16a)](_0x4287f0,_0x39d8fa,_0x382e30){const _0x4581e8=_0x4b09db,_0x2328c3=new FormData();_0x2328c3[_0x4581e8(0x19b)](_0x4581e8(0x1a9),_0x39d8fa,_0x39d8fa[_0x4581e8(0x13f)]),_0x382e30&&_0x2328c3[_0x4581e8(0x19b)](_0x4581e8(0x14f),JSON[_0x4581e8(0x16c)](_0x382e30));const _0x3ba93e=this[_0x4581e8(0x17c)](_0x4581e8(0x1a0)+_0x4287f0+_0x4581e8(0x153),_0x4581e8(0x1a5),_0x2328c3);return{'getId':async()=>(await _0x3ba93e[_0x4581e8(0x1a8)])[_0x4581e8(0x155)](),'abortController':_0x3ba93e[_0x4581e8(0x192)]};}[_0x4b09db(0x160)](_0x5e0f41,_0x2afa8f){const _0x16e3ee=_0x4b09db,_0x1f5071=this[_0x16e3ee(0x17c)](_0x16e3ee(0x1a0)+_0x5e0f41+_0x16e3ee(0x144)+_0x2afa8f,_0x16e3ee(0x1ac));return{'getDocument':async()=>(await _0x1f5071[_0x16e3ee(0x1a8)])[_0x16e3ee(0x155)](),'abortController':_0x1f5071[_0x16e3ee(0x192)]};}[_0x4b09db(0x16d)](_0x21b9e3,_0x211b8c,_0x42b708){const _0x197013=_0x4b09db,_0x1bd5b4={'content':_0x211b8c};_0x42b708&&(_0x1bd5b4[_0x197013(0x14f)]=_0x42b708);const _0x4c1fc9=this[_0x197013(0x17c)](_0x197013(0x1a0)+_0x21b9e3+_0x197013(0x186),_0x197013(0x1a5),_0x1bd5b4);return{'getId':async()=>(await _0x4c1fc9[_0x197013(0x1a8)])[_0x197013(0x155)](),'abortController':_0x4c1fc9[_0x197013(0x192)]};}[_0x4b09db(0x1c0)](_0x2eb72c,_0x414466){const _0x55ed1c=_0x4b09db,_0x5204f5=new URLSearchParams();_0x5204f5[_0x55ed1c(0x19b)](_0x55ed1c(0x18e),_0x55ed1c(0x1a2)),_0x5204f5[_0x55ed1c(0x19b)](_0x55ed1c(0x178),_0x55ed1c(0x19f)),_0x5204f5[_0x55ed1c(0x19b)](_0x55ed1c(0x187),_0x2eb72c),_0x414466&&_0x5204f5[_0x55ed1c(0x19b)](_0x55ed1c(0x145),_0x414466);const _0x5311f3=this[_0x55ed1c(0x17c)](_0x55ed1c(0x142)+_0x5204f5[_0x55ed1c(0x181)](),_0x55ed1c(0x1ac));return{'getConversations':async()=>{const _0x17e795=_0x55ed1c,_0xbef52=await _0x5311f3[_0x17e795(0x1a8)];return(await _0xbef52[_0x17e795(0x155)]())[_0x17e795(0x19c)];},'abortController':_0x5311f3[_0x55ed1c(0x192)]};}[_0x4b09db(0x17a)](_0x408398){const _0x251095=_0x4b09db,_0x45fb96=this[_0x251095(0x17c)](_0x251095(0x1a0)+_0x408398,_0x251095(0x189));return{'execute':async()=>{const _0x4d2cfe=_0x251095;await _0x45fb96[_0x4d2cfe(0x1a8)];},'abortController':_0x45fb96[_0x251095(0x192)]};}[_0x4b09db(0x198)](_0x5cbe2d,_0x5e8c58){const _0x1e538b=_0x4b09db,_0x28be61=this[_0x1e538b(0x17c)](_0x1e538b(0x1a0)+_0x5cbe2d,_0x1e538b(0x14e),_0x5e8c58);return{'getResult':async()=>(await _0x28be61[_0x1e538b(0x1a8)],_0x5e8c58),'abortController':_0x28be61[_0x1e538b(0x192)]};}[_0x4b09db(0x1ba)](_0x1cddaf){const _0xfebbaf=_0x4b09db,_0x592bbf=this[_0xfebbaf(0x17c)](_0xfebbaf(0x1a0)+_0x1cddaf,_0xfebbaf(0x1ac));return{'getConversation':async()=>(await _0x592bbf[_0xfebbaf(0x1a8)])[_0xfebbaf(0x155)](),'abortController':_0x592bbf[_0xfebbaf(0x192)]};}[_0x4b09db(0x1be)](_0x573376){const _0x43a816=_0x4b09db,_0x7a73e9=this[_0x43a816(0x17c)](_0x43a816(0x1a0)+_0x573376+_0x43a816(0x195),_0x43a816(0x1ac));return{'getMessages':async()=>{const _0x3577d9=_0x43a816,_0x438919=await _0x7a73e9[_0x3577d9(0x1a8)];return(await _0x438919[_0x3577d9(0x155)]())[_0x3577d9(0x19c)];},'abortController':_0x7a73e9[_0x43a816(0x192)]};}[_0x4b09db(0x17e)](_0x1b0efd,_0x20f17b,_0x47b752){const _0x2823ea=_0x4b09db,_0x4cfad7=this[_0x2823ea(0x17c)](_0x2823ea(0x1a0)+_0x1b0efd+_0x2823ea(0x1ab),_0x2823ea(0x1a5),{'url':_0x20f17b,'attributes':_0x47b752});return{'getId':async()=>(await _0x4cfad7[_0x2823ea(0x1a8)])[_0x2823ea(0x155)](),'abortController':_0x4cfad7[_0x2823ea(0x192)]};}[_0x4b09db(0x15d)](){const _0x57820b=_0x4b09db,_0x21bafc=this[_0x57820b(0x17c)](_0x57820b(0x1bc),_0x57820b(0x1ac));return{'list':async()=>{const _0xa88c2c=_0x57820b,_0x596551=await(await _0x21bafc[_0xa88c2c(0x1a8)])[_0xa88c2c(0x155)](),_0x179508=_0x596551[_0xa88c2c(0x19c)][_0xa88c2c(0x165)](_0x4dd29a=>({..._0x4dd29a,'description':_0x4d3c15(this[_0xa88c2c(0x193)][_0xa88c2c(0x16e)],_0xa88c2c(0x171)+_0x4dd29a['id'][_0xa88c2c(0x183)]())}));return{..._0x596551,'items':_0x179508};},'abortController':_0x21bafc[_0x57820b(0x192)]};}[_0x4b09db(0x14c)](_0x3f4f2f,_0x14dda2){const _0x5ec7db=_0x4b09db,_0x147877=this[_0x5ec7db(0x17c)](_0x5ec7db(0x1a0)+_0x3f4f2f+_0x5ec7db(0x1b0)+_0x14dda2,_0x5ec7db(0x189));return{'execute':async()=>{const _0x27c14e=_0x5ec7db;await _0x147877[_0x27c14e(0x1a8)];},'abortController':_0x147877[_0x5ec7db(0x192)]};}[_0x4b09db(0x166)](_0x53b194,_0x434bd2){const _0xc1faab=_0x4b09db,_0x5a22fd=this[_0xc1faab(0x17c)](_0xc1faab(0x1a0)+_0x53b194+_0xc1faab(0x144)+_0x434bd2,_0xc1faab(0x189));return{'execute':async()=>{const _0x5e28b0=_0xc1faab;await _0x5a22fd[_0x5e28b0(0x1a8)];},'abortController':_0x5a22fd[_0xc1faab(0x192)]};}[_0x4b09db(0x175)](_0x67eebc,_0xc55bad){const _0x2eae1b=_0x4b09db,_0x44cf43=this[_0x2eae1b(0x17c)](_0x2eae1b(0x1a0)+_0x67eebc+_0x2eae1b(0x190)+_0xc55bad,_0x2eae1b(0x189));return{'execute':async()=>{const _0x32f91a=_0x2eae1b;await _0x44cf43[_0x32f91a(0x1a8)];},'abortController':_0x44cf43[_0x2eae1b(0x192)]};}[_0x4b09db(0x19a)]({reviewName:_0x3c8d04,content:_0xb60ad9,args:_0x2f10b5}){const _0x27abfe=_0x4b09db,_0x8e5c68=this[_0x27abfe(0x17c)](_0x27abfe(0x18a)+_0x3c8d04+_0x27abfe(0x149),_0x27abfe(0x1a5),{'content':[{'type':_0x27abfe(0x1b6),'content':_0xb60ad9}],'args':_0x2f10b5});return{'getStream':async()=>{const _0x5b27a8=_0x27abfe,_0x3a755a=(await _0x8e5c68[_0x5b27a8(0x1a8)])[_0x5b27a8(0x151)];return this[_0x5b27a8(0x19e)](_0x3a755a);},'abortController':_0x8e5c68[_0x27abfe(0x192)]};}[_0x4b09db(0x1af)]({content:_0x2550fb,prompt:_0x5659c1,model:_0x2c46db}){const _0x3b7c8e=_0x4b09db,_0x484b0d=this[_0x3b7c8e(0x17c)](_0x3b7c8e(0x161),_0x3b7c8e(0x1a5),{'content':[{'type':_0x3b7c8e(0x1b6),'content':_0x2550fb}],'prompt':_0x5659c1,'model':_0x2c46db});return{'getStream':async()=>{const _0x275297=_0x3b7c8e,_0x27ba91=(await _0x484b0d[_0x275297(0x1a8)])[_0x275297(0x151)];return this[_0x275297(0x19e)](_0x27ba91);},'abortController':_0x484b0d[_0x3b7c8e(0x192)]};}[_0x4b09db(0x17c)](_0x1377d4,_0x372dda,_0x4d868a){const _0x51f990=_0x4b09db,_0x441564=new AbortController(),_0x43f3a4=_0x4d868a instanceof FormData,_0x59d463={'Authorization':_0x51f990(0x159)+this[_0x51f990(0x158)]?.[_0x51f990(0x1a4)]};_0x4d868a&&!_0x43f3a4&&(_0x59d463[_0x51f990(0x1c1)]=_0x51f990(0x141));const _0x422463={'method':_0x372dda,'headers':_0x59d463,'signal':_0x441564[_0x51f990(0x1a7)]};return _0x4d868a&&(_0x422463[_0x51f990(0x151)]=_0x43f3a4?_0x4d868a:JSON[_0x51f990(0x16c)](_0x4d868a)),{'request':fetch(''+this[_0x51f990(0x1b9)]+_0x1377d4,_0x422463)[_0x51f990(0x1bd)](_0x53aa32=>{const _0x586b15=_0x51f990;this[_0x586b15(0x1a1)](_0x53aa32);})[_0x51f990(0x162)](_0x3c084b=>{const _0x325a56=_0x51f990;if(!_0x3c084b['ok'])throw new _0x44c60c(_0x325a56(0x154),this,{'url':this[_0x325a56(0x1b9)],'path':_0x1377d4,'method':_0x372dda,'body':_0x4d868a,'status':(_0x3c084b||{})[_0x325a56(0x177)],'statusText':(_0x3c084b||{})[_0x325a56(0x173)]});return _0x3c084b;}),'abortController':_0x441564};}async*[_0x4b09db(0x19e)](_0x24ef35){const _0x3ca5da=_0x4b09db,_0x2efbb7=[],_0x442084=_0x24ef35[_0x3ca5da(0x18f)](),_0xd49bd9=_0x58b8b9({'onError':_0x32d751=>{const _0x166335=_0x3ca5da;this[_0x166335(0x1a1)](_0x32d751);},'onEvent':_0x1e3da5=>{const _0x517745=_0x3ca5da;_0x1e3da5[_0x517745(0x143)]=JSON[_0x517745(0x16f)](_0x1e3da5[_0x517745(0x143)]),_0x2efbb7[_0x517745(0x167)](_0x1e3da5);}});try{let _0x97b6d6=!0x1;for(;!_0x97b6d6;){const {done:_0x321fe9,value:_0x262fdf}=await _0x442084[_0x3ca5da(0x148)]();_0x321fe9&&(_0x97b6d6=!0x0),_0xd49bd9[_0x3ca5da(0x1b5)](this[_0x3ca5da(0x1ae)][_0x3ca5da(0x19d)](_0x262fdf,{'stream':!0x0})),yield*_0x2efbb7,_0x2efbb7[_0x3ca5da(0x1a6)]=0x0;}}catch(_0x4f478d){this[_0x3ca5da(0x1a1)](_0x4f478d);}finally{_0x442084[_0x3ca5da(0x182)](),_0xd49bd9[_0x3ca5da(0x147)]();}}[_0x4b09db(0x1a1)](_0x48eecf){const _0x323144=_0x4b09db;if(_0x48eecf instanceof _0x44c60c)throw _0x48eecf;if(_0x48eecf instanceof Error&&_0x323144(0x17f)===_0x48eecf[_0x323144(0x13f)])throw new _0x44c60c(_0x323144(0x156),this,{'originalError':_0x48eecf});throw new _0x44c60c(_0x323144(0x154),this,{'originalError':_0x48eecf});}}
|
|
23
|
+
const _0x78fc6a=_0xa7f3;(function(_0x400183,_0x5513f9){const _0x1aabed=_0xa7f3,_0x2fd7c3=_0x400183();while(!![]){try{const _0x487d2a=-parseInt(_0x1aabed(0xde))/0x1*(parseInt(_0x1aabed(0x13b))/0x2)+-parseInt(_0x1aabed(0x116))/0x3*(parseInt(_0x1aabed(0xe2))/0x4)+parseInt(_0x1aabed(0x12f))/0x5*(parseInt(_0x1aabed(0xd1))/0x6)+-parseInt(_0x1aabed(0xf1))/0x7*(-parseInt(_0x1aabed(0xd0))/0x8)+parseInt(_0x1aabed(0x118))/0x9*(-parseInt(_0x1aabed(0xe9))/0xa)+-parseInt(_0x1aabed(0xee))/0xb+parseInt(_0x1aabed(0x142))/0xc;if(_0x487d2a===_0x5513f9)break;else _0x2fd7c3['push'](_0x2fd7c3['shift']());}catch(_0x32ceea){_0x2fd7c3['push'](_0x2fd7c3['shift']());}}}(_0x298f,0x56346));import{createParser as _0x33dbd8}from'eventsource-parser';import{ContextPlugin as _0xebef71}from'ckeditor5/src/core.js';function _0xa7f3(_0x45822d,_0x50829b){const _0x298f6e=_0x298f();return _0xa7f3=function(_0xa7f35e,_0x2f66f2){_0xa7f35e=_0xa7f35e-0xb9;let _0x1aca4b=_0x298f6e[_0xa7f35e];return _0x1aca4b;},_0xa7f3(_0x45822d,_0x50829b);}import{CKEditorError as _0x392663}from'ckeditor5/src/utils.js';function _0x298f(){const _0x1b4970=['stringify','make-shorter','upsertAIActionRating','Bearer\x20','deleteFile','uploadFile','/conversations?','/models/1','make-tone-casual','isPremiumPlugin','_sendApiRequest','upsertCustomAIReviewRating','AI_MODEL_DESCRIPTION_','/messages','read','fix-grammar','continue','MAKE_TONE_FORMAL','append','executeCustomAction','/conversations','ai.serviceUrl','PATCH','statusText','CloudServices','/reviews/custom/calls/','decode','abortController','/actions/custom/calls/','attributes','904oczKxi','1876332mgRZGv','AIConnector','callCustomReview','locale','TRANSLATE','positiveCount','body','getModels','group','isOfficialPlugin','upsertCustomAIActionRating','startConversation','totalCount','69619LOuYLP','length','GET','status','144132YPYnaZ','100','true','ai-request-failed','deleteConversation','releaseLock','callSystemReview','20TnDIIs','/conversations/','name','init','file','561022MuFAgN','context','/calls','6965hAgMKr','deleteDocument','uploadDocument','/calls/','reset','/files','getReader','search','CONTINUE','map','/messages/','updateConversation','signal','make-tone-formal','toUpperCase','request','uploadUrl','plugins','pluginName','MAKE_TONE_CASUAL','PUT','feed','/web-resources/','/reviews/system/','upsertAIReviewRating','queryAssistant','fetchConversationMessages','limit','toString','_decoder','_getStreamReader','fetchConversation','json','/documents/','fetchConversations','fetchDocument','/web-resources','6MgReIm','FIX_GRAMMAR','2286tQZZSd','requires','/actions/custom/calls','https://ai.cke-cs.com/v1','make-longer','Content-Type','define','MAKE_LONGER','value','DELETE','_handleError','keys','translate','config','push','/actions/system/','items','POST','get','/files/','catch','/documents','/ratings','10VdCpOR','excludeEmpty','IMPROVE_WRITING','AbortError','_apiUrl','deleteWebResource','upsertAIChatRating','_token','data','ai-missing-token','parse','MAKE_SHORTER','8xswbSe','ai-request-aborted','improve-writing','text','then','token','application/json','207204uKjhqI','executeAction','/reviews/custom/calls'];_0x298f=function(){return _0x1b4970;};return _0x298f();}import{getTranslation as _0x549dc4}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x301d56){const _0xa2e54b=_0xa7f3;_0x301d56[_0xa2e54b(0xf9)]=_0xa2e54b(0xc2),_0x301d56[_0xa2e54b(0x117)]=_0xa2e54b(0xc1),_0x301d56[_0xa2e54b(0x131)]=_0xa2e54b(0x13d),_0x301d56[_0xa2e54b(0x11f)]=_0xa2e54b(0x11c),_0x301d56[_0xa2e54b(0x13a)]=_0xa2e54b(0x146),_0x301d56[_0xa2e54b(0x104)]=_0xa2e54b(0xba),_0x301d56[_0xa2e54b(0xc3)]=_0xa2e54b(0xfe),_0x301d56[_0xa2e54b(0xd5)]=_0xa2e54b(0x124);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0xebef71{[_0x78fc6a(0x133)];[_0x78fc6a(0x136)];[_0x78fc6a(0x10e)];static get[_0x78fc6a(0x119)](){const _0x3f24ad=_0x78fc6a;return[_0x3f24ad(0xca)];}static get[_0x78fc6a(0x103)](){const _0x53fdb2=_0x78fc6a;return _0x53fdb2(0xd2);}static get[_0x78fc6a(0xda)](){return!0x0;}static get[_0x78fc6a(0xbb)](){return!0x0;}constructor(_0x4beea0){const _0x3fbef4=_0x78fc6a;super(_0x4beea0),this[_0x3fbef4(0xef)][_0x3fbef4(0x125)][_0x3fbef4(0x11e)](_0x3fbef4(0xc7),_0x3fbef4(0x11b)),this[_0x3fbef4(0x133)]=this[_0x3fbef4(0xef)][_0x3fbef4(0x125)][_0x3fbef4(0x12a)](_0x3fbef4(0xc7)),this[_0x3fbef4(0x136)]=null,this[_0x3fbef4(0x10e)]=new TextDecoder();}[_0x78fc6a(0xec)](){const _0x20813f=_0x78fc6a,_0x32f780=this[_0x20813f(0xef)][_0x20813f(0x102)][_0x20813f(0x12a)](_0x20813f(0xca));if(!_0x32f780[_0x20813f(0x140)])throw new _0x392663(_0x20813f(0x138),this);this[_0x20813f(0x136)]=_0x32f780[_0x20813f(0x140)];}[_0x78fc6a(0xdc)](_0x5f0d51,_0xa778bb){const _0x59ee1e=_0x78fc6a,_0x4fcb73=this[_0x59ee1e(0xbc)](_0x59ee1e(0xc6),_0x59ee1e(0x129),{'id':_0x5f0d51,'group':_0xa778bb});return{'getConversation':async()=>(await _0x4fcb73[_0x59ee1e(0x100)])[_0x59ee1e(0x111)](),'abortController':_0x4fcb73[_0x59ee1e(0xcd)]};}[_0x78fc6a(0x10a)]({message:_0x5dfc28,conversationId:_0x11f064,parts:_0x1d2991,capabilities:_0x12e24a,model:_0x3e1149,quickActionData:_0x246219}){const _0x286052=_0x78fc6a,_0x5c4937={..._0x246219&&{'quickActionData':_0x246219}},_0x4859a4={'prompt':_0x5dfc28,'content':_0x1d2991,'model':_0x3e1149,..._0x12e24a&&{'capabilities':_0x12e24a},...Object[_0x286052(0x123)](_0x5c4937)[_0x286052(0xdf)]>0x0&&{'attributes':_0x5c4937}},_0x266f00=this[_0x286052(0xbc)](_0x286052(0xea)+_0x11f064+_0x286052(0xbf),_0x286052(0x129),_0x4859a4);return{'getStream':async()=>{const _0x216ba4=_0x286052,_0x107cba=(await _0x266f00[_0x216ba4(0x100)])[_0x216ba4(0xd7)];return this[_0x216ba4(0x10f)](_0x107cba);},'abortController':_0x266f00[_0x286052(0xcd)]};}[_0x78fc6a(0xc5)]({content:_0x1447ba,message:_0x5bc05a,model:_0x56d73e,outputFormat:_0x432fab}){const _0x31c97a=_0x78fc6a,_0x1b8e6b={'content':[{'type':_0x31c97a(0x13e),'content':_0x1447ba}],'prompt':_0x5bc05a,'model':_0x56d73e,'outputFormat':_0x432fab},_0x1fcbcf=this[_0x31c97a(0xbc)](_0x31c97a(0x11a),_0x31c97a(0x129),_0x1b8e6b);return{'getStream':async()=>{const _0x36fc22=_0x31c97a,_0x60617c=(await _0x1fcbcf[_0x36fc22(0x100)])[_0x36fc22(0xd7)];return this[_0x36fc22(0x10f)](_0x60617c);},'abortController':_0x1fcbcf[_0x31c97a(0xcd)]};}[_0x78fc6a(0x143)]({actionName:_0x46062a,content:_0x12246e,args:_0x37a756}){const _0x1ad0d6=_0x78fc6a,_0x9cf9da={'content':[{'type':_0x1ad0d6(0x13e),'content':_0x12246e}],'args':_0x37a756},_0x1caf0a=this[_0x1ad0d6(0xbc)](_0x1ad0d6(0x127)+_0x46062a+_0x1ad0d6(0xf0),_0x1ad0d6(0x129),_0x9cf9da);return{'getStream':async()=>{const _0x161868=_0x1ad0d6,_0x1b20f9=(await _0x1caf0a[_0x161868(0x100)])[_0x161868(0xd7)];return this[_0x161868(0x10f)](_0x1b20f9);},'abortController':_0x1caf0a[_0x1ad0d6(0xcd)]};}[_0x78fc6a(0x14a)](_0x1ac786,_0x11d706,_0x5695e7){const _0x407ef2=_0x78fc6a,_0xe91018=new FormData();_0xe91018[_0x407ef2(0xc4)](_0x407ef2(0xed),_0x11d706,_0x11d706[_0x407ef2(0xeb)]),_0x5695e7&&_0xe91018[_0x407ef2(0xc4)](_0x407ef2(0xcf),JSON[_0x407ef2(0x145)](_0x5695e7));const _0x37e6fc=this[_0x407ef2(0xbc)](_0x407ef2(0xea)+_0x1ac786+_0x407ef2(0xf6),_0x407ef2(0x129),_0xe91018);return{'getId':async()=>(await _0x37e6fc[_0x407ef2(0x100)])[_0x407ef2(0x111)](),'abortController':_0x37e6fc[_0x407ef2(0xcd)]};}[_0x78fc6a(0x114)](_0x27ad48,_0x31cceb){const _0x4e8711=_0x78fc6a,_0x423dd0=this[_0x4e8711(0xbc)](_0x4e8711(0xea)+_0x27ad48+_0x4e8711(0x112)+_0x31cceb,_0x4e8711(0xe0));return{'getDocument':async()=>(await _0x423dd0[_0x4e8711(0x100)])[_0x4e8711(0x111)](),'abortController':_0x423dd0[_0x4e8711(0xcd)]};}[_0x78fc6a(0xf3)](_0xc9a199,_0x4b2fcb,_0x324f8f){const _0x19a60c=_0x78fc6a,_0x57ffc8={'content':_0x4b2fcb};_0x324f8f&&(_0x57ffc8[_0x19a60c(0xcf)]=_0x324f8f);const _0x3e4071=this[_0x19a60c(0xbc)](_0x19a60c(0xea)+_0xc9a199+_0x19a60c(0x12d),_0x19a60c(0x129),_0x57ffc8);return{'getId':async()=>(await _0x3e4071[_0x19a60c(0x100)])[_0x19a60c(0x111)](),'abortController':_0x3e4071[_0x19a60c(0xcd)]};}[_0x78fc6a(0x113)](_0x19e824,_0xeed8f1){const _0x27e870=_0x78fc6a,_0x337af5=new URLSearchParams();_0x337af5[_0x27e870(0xc4)](_0x27e870(0x130),_0x27e870(0xe4)),_0x337af5[_0x27e870(0xc4)](_0x27e870(0x10c),_0x27e870(0xe3)),_0x337af5[_0x27e870(0xc4)](_0x27e870(0xd9),_0x19e824),_0xeed8f1&&_0x337af5[_0x27e870(0xc4)](_0x27e870(0xf8),_0xeed8f1);const _0x1405d0=this[_0x27e870(0xbc)](_0x27e870(0x14b)+_0x337af5[_0x27e870(0x10d)](),_0x27e870(0xe0));return{'getConversations':async()=>{const _0x479aa6=_0x27e870,_0xc62037=await _0x1405d0[_0x479aa6(0x100)];return(await _0xc62037[_0x479aa6(0x111)]())[_0x479aa6(0x128)];},'abortController':_0x1405d0[_0x27e870(0xcd)]};}[_0x78fc6a(0xe6)](_0x23b6c0){const _0x23b860=_0x78fc6a,_0x1d9304=this[_0x23b860(0xbc)](_0x23b860(0xea)+_0x23b6c0,_0x23b860(0x121));return{'execute':async()=>{const _0x94e661=_0x23b860;await _0x1d9304[_0x94e661(0x100)];},'abortController':_0x1d9304[_0x23b860(0xcd)]};}[_0x78fc6a(0xfc)](_0x312f95,_0x55c8ff){const _0x2b21b6=_0x78fc6a,_0xcd4f24=this[_0x2b21b6(0xbc)](_0x2b21b6(0xea)+_0x312f95,_0x2b21b6(0xc8),_0x55c8ff);return{'getResult':async()=>(await _0xcd4f24[_0x2b21b6(0x100)],_0x55c8ff),'abortController':_0xcd4f24[_0x2b21b6(0xcd)]};}[_0x78fc6a(0x110)](_0x1e97f6){const _0x525557=_0x78fc6a,_0x23b5e5=this[_0x525557(0xbc)](_0x525557(0xea)+_0x1e97f6,_0x525557(0xe0));return{'getConversation':async()=>(await _0x23b5e5[_0x525557(0x100)])[_0x525557(0x111)](),'abortController':_0x23b5e5[_0x525557(0xcd)]};}[_0x78fc6a(0x10b)](_0x433deb){const _0x913731=_0x78fc6a,_0x427a03=this[_0x913731(0xbc)](_0x913731(0xea)+_0x433deb+_0x913731(0xbf),_0x913731(0xe0));return{'getMessages':async()=>{const _0x3b2d33=_0x913731,_0x4e6e81=await _0x427a03[_0x3b2d33(0x100)];return(await _0x4e6e81[_0x3b2d33(0x111)]())[_0x3b2d33(0x128)];},'abortController':_0x427a03[_0x913731(0xcd)]};}[_0x78fc6a(0x101)](_0x2dafef,_0x25e529,_0x17793d){const _0x3dac43=_0x78fc6a,_0x43dc71=this[_0x3dac43(0xbc)](_0x3dac43(0xea)+_0x2dafef+_0x3dac43(0x115),_0x3dac43(0x129),{'url':_0x25e529,'attributes':_0x17793d});return{'getId':async()=>(await _0x43dc71[_0x3dac43(0x100)])[_0x3dac43(0x111)](),'abortController':_0x43dc71[_0x3dac43(0xcd)]};}[_0x78fc6a(0xd8)](){const _0x56853c=_0x78fc6a,_0x2ee2f1=this[_0x56853c(0xbc)](_0x56853c(0xb9),_0x56853c(0xe0));return{'list':async()=>{const _0x5c4389=_0x56853c,_0xb86afb=await(await _0x2ee2f1[_0x5c4389(0x100)])[_0x5c4389(0x111)](),_0x51909f=_0xb86afb[_0x5c4389(0x128)][_0x5c4389(0xfa)](_0x4a1f39=>({..._0x4a1f39,'description':_0x549dc4(this[_0x5c4389(0xef)][_0x5c4389(0xd4)],_0x5c4389(0xbe)+_0x4a1f39['id'][_0x5c4389(0xff)]())}));return{..._0xb86afb,'items':_0x51909f};},'abortController':_0x2ee2f1[_0x56853c(0xcd)]};}[_0x78fc6a(0x149)](_0x443529,_0x416979){const _0x36dbaf=_0x78fc6a,_0x2f2039=this[_0x36dbaf(0xbc)](_0x36dbaf(0xea)+_0x443529+_0x36dbaf(0x12b)+_0x416979,_0x36dbaf(0x121));return{'execute':async()=>{const _0x5adad2=_0x36dbaf;await _0x2f2039[_0x5adad2(0x100)];},'abortController':_0x2f2039[_0x36dbaf(0xcd)]};}[_0x78fc6a(0xf2)](_0x3f7be5,_0x21dd02){const _0x2fbcc0=_0x78fc6a,_0x2cfc3e=this[_0x2fbcc0(0xbc)](_0x2fbcc0(0xea)+_0x3f7be5+_0x2fbcc0(0x112)+_0x21dd02,_0x2fbcc0(0x121));return{'execute':async()=>{const _0xe1613d=_0x2fbcc0;await _0x2cfc3e[_0xe1613d(0x100)];},'abortController':_0x2cfc3e[_0x2fbcc0(0xcd)]};}[_0x78fc6a(0x134)](_0x3a195d,_0x1253a2){const _0x31dce3=_0x78fc6a,_0x155987=this[_0x31dce3(0xbc)](_0x31dce3(0xea)+_0x3a195d+_0x31dce3(0x107)+_0x1253a2,_0x31dce3(0x121));return{'execute':async()=>{const _0x34c9dc=_0x31dce3;await _0x155987[_0x34c9dc(0x100)];},'abortController':_0x155987[_0x31dce3(0xcd)]};}[_0x78fc6a(0xe8)]({reviewName:_0x3bfe2f,content:_0x4d1e17,args:_0x393e74}){const _0x6a5932=_0x78fc6a,_0x23de36=this[_0x6a5932(0xbc)](_0x6a5932(0x108)+_0x3bfe2f+_0x6a5932(0xf0),_0x6a5932(0x129),{'content':[{'type':_0x6a5932(0x13e),'content':_0x4d1e17}],'args':_0x393e74});return{'getStream':async()=>{const _0x398e48=_0x6a5932,_0x349b24=(await _0x23de36[_0x398e48(0x100)])[_0x398e48(0xd7)];return this[_0x398e48(0x10f)](_0x349b24);},'abortController':_0x23de36[_0x6a5932(0xcd)]};}[_0x78fc6a(0xd3)]({content:_0x35e332,prompt:_0x5bb83e,model:_0x753d83}){const _0xf99520=_0x78fc6a,_0x1078f0=this[_0xf99520(0xbc)](_0xf99520(0x144),_0xf99520(0x129),{'content':[{'type':_0xf99520(0x13e),'content':_0x35e332}],'prompt':_0x5bb83e,'model':_0x753d83});return{'getStream':async()=>{const _0x514a97=_0xf99520,_0x158227=(await _0x1078f0[_0x514a97(0x100)])[_0x514a97(0xd7)];return this[_0x514a97(0x10f)](_0x158227);},'abortController':_0x1078f0[_0xf99520(0xcd)]};}[_0x78fc6a(0x135)](_0x454c0c,_0x1e7a86,_0xcef420){const _0x1cbcd4=_0x78fc6a,_0x1a31dd=this[_0x1cbcd4(0xbc)](_0x1cbcd4(0xea)+_0x454c0c+_0x1cbcd4(0xfb)+_0x1e7a86+_0x1cbcd4(0x12e),_0x1cbcd4(0x105),{'positiveCount':_0xcef420[_0x1cbcd4(0xd6)],'totalCount':_0xcef420[_0x1cbcd4(0xdd)]});return{'execute':async()=>{const _0x1a651c=_0x1cbcd4;await _0x1a31dd[_0x1a651c(0x100)];},'abortController':_0x1a31dd[_0x1cbcd4(0xcd)]};}[_0x78fc6a(0x147)](_0x199a2b,_0x358deb,_0x24fac2){const _0x37bf04=_0x78fc6a,_0x1a4d9a=this[_0x37bf04(0xbc)](_0x37bf04(0x127)+_0x199a2b+_0x37bf04(0xf4)+_0x358deb+_0x37bf04(0x12e),_0x37bf04(0x105),{'positiveCount':_0x24fac2[_0x37bf04(0xd6)],'totalCount':_0x24fac2[_0x37bf04(0xdd)]});return{'execute':async()=>{const _0x43d43e=_0x37bf04;await _0x1a4d9a[_0x43d43e(0x100)];},'abortController':_0x1a4d9a[_0x37bf04(0xcd)]};}[_0x78fc6a(0xdb)](_0x444158,_0x4feb31){const _0x14e1e6=_0x78fc6a,_0x37b84c=this[_0x14e1e6(0xbc)](_0x14e1e6(0xce)+_0x444158+_0x14e1e6(0x12e),_0x14e1e6(0x105),{'positiveCount':_0x4feb31[_0x14e1e6(0xd6)],'totalCount':_0x4feb31[_0x14e1e6(0xdd)]});return{'execute':async()=>{const _0x3d242c=_0x14e1e6;await _0x37b84c[_0x3d242c(0x100)];},'abortController':_0x37b84c[_0x14e1e6(0xcd)]};}[_0x78fc6a(0x109)](_0xf318f7,_0x2979bc,_0x1ab9ae,_0x27f8e9){const _0x101b2f=_0x78fc6a,_0x584540=this[_0x101b2f(0xbc)](_0x101b2f(0x108)+_0xf318f7+_0x101b2f(0xf4)+_0x2979bc+_0x101b2f(0x12e),_0x101b2f(0x105),{'positiveCount':_0x1ab9ae[_0x101b2f(0xd6)],'totalCount':_0x1ab9ae[_0x101b2f(0xdd)],'dataId':_0x27f8e9});return{'execute':async()=>{const _0x3d9d11=_0x101b2f;await _0x584540[_0x3d9d11(0x100)];},'abortController':_0x584540[_0x101b2f(0xcd)]};}[_0x78fc6a(0xbd)](_0xd6bf18,_0x1bc0fc,_0xa5befe){const _0x4d7fed=_0x78fc6a,_0x49991c=this[_0x4d7fed(0xbc)](_0x4d7fed(0xcb)+_0xd6bf18+_0x4d7fed(0x12e),_0x4d7fed(0x105),{'positiveCount':_0x1bc0fc[_0x4d7fed(0xd6)],'totalCount':_0x1bc0fc[_0x4d7fed(0xdd)],'dataId':_0xa5befe});return{'execute':async()=>{const _0x46efe2=_0x4d7fed;await _0x49991c[_0x46efe2(0x100)];},'abortController':_0x49991c[_0x4d7fed(0xcd)]};}[_0x78fc6a(0xbc)](_0x36013d,_0x411921,_0x563dc3){const _0x532d45=_0x78fc6a,_0x52d9ae=new AbortController(),_0x34e1f0=_0x563dc3 instanceof FormData,_0x1ed89d={'Authorization':_0x532d45(0x148)+this[_0x532d45(0x136)]?.[_0x532d45(0x120)]};_0x563dc3&&!_0x34e1f0&&(_0x1ed89d[_0x532d45(0x11d)]=_0x532d45(0x141));const _0x5c43e9={'method':_0x411921,'headers':_0x1ed89d,'signal':_0x52d9ae[_0x532d45(0xfd)]};return _0x563dc3&&(_0x5c43e9[_0x532d45(0xd7)]=_0x34e1f0?_0x563dc3:JSON[_0x532d45(0x145)](_0x563dc3)),{'request':fetch(''+this[_0x532d45(0x133)]+_0x36013d,_0x5c43e9)[_0x532d45(0x12c)](_0x36dc8f=>{const _0x401abd=_0x532d45;this[_0x401abd(0x122)](_0x36dc8f);})[_0x532d45(0x13f)](_0x568d0b=>{const _0x1702e1=_0x532d45;if(!_0x568d0b['ok'])throw new _0x392663(_0x1702e1(0xe5),this,{'url':this[_0x1702e1(0x133)],'path':_0x36013d,'method':_0x411921,'body':_0x563dc3,'status':(_0x568d0b||{})[_0x1702e1(0xe1)],'statusText':(_0x568d0b||{})[_0x1702e1(0xc9)]});return _0x568d0b;}),'abortController':_0x52d9ae};}async*[_0x78fc6a(0x10f)](_0x2a6946){const _0x17d7a5=_0x78fc6a,_0x3ef970=[],_0x2b66d9=_0x2a6946[_0x17d7a5(0xf7)](),_0xf69544=_0x33dbd8({'onError':_0xf3386c=>{const _0x36a13b=_0x17d7a5;this[_0x36a13b(0x122)](_0xf3386c);},'onEvent':_0x1946d3=>{const _0x466f9e=_0x17d7a5;_0x1946d3[_0x466f9e(0x137)]=JSON[_0x466f9e(0x139)](_0x1946d3[_0x466f9e(0x137)]),_0x3ef970[_0x466f9e(0x126)](_0x1946d3);}});try{let _0x1d7b90=!0x1;for(;!_0x1d7b90;){const {done:_0xbec77e,value:_0x5a0c50}=await _0x2b66d9[_0x17d7a5(0xc0)]();_0xbec77e&&(_0x1d7b90=!0x0),_0xf69544[_0x17d7a5(0x106)](this[_0x17d7a5(0x10e)][_0x17d7a5(0xcc)](_0x5a0c50,{'stream':!0x0})),yield*_0x3ef970,_0x3ef970[_0x17d7a5(0xdf)]=0x0;}}catch(_0x4d7447){this[_0x17d7a5(0x122)](_0x4d7447);}finally{_0x2b66d9[_0x17d7a5(0xe7)](),_0xf69544[_0x17d7a5(0xf5)]();}}[_0x78fc6a(0x122)](_0x2f5406){const _0x256941=_0x78fc6a;if(_0x2f5406 instanceof _0x392663)throw _0x2f5406;if(_0x2f5406 instanceof Error&&_0x256941(0x132)===_0x2f5406[_0x256941(0xeb)])throw new _0x392663(_0x256941(0x13c),this,{'originalError':_0x2f5406});throw new _0x392663(_0x256941(0xe5),this,{'originalError':_0x2f5406});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x48f6fa=_0xb22e;(function(_0x5891f6,_0x8990f){const _0x367502=_0xb22e,_0x2f8e08=_0x5891f6();while(!![]){try{const _0x1abcd6=parseInt(_0x367502(0x13b))/0x1*(-parseInt(_0x367502(0x129))/0x2)+parseInt(_0x367502(0x10c))/0x3*(-parseInt(_0x367502(0x11a))/0x4)+-parseInt(_0x367502(0x158))/0x5+parseInt(_0x367502(0x170))/0x6*(parseInt(_0x367502(0x122))/0x7)+-parseInt(_0x367502(0x12d))/0x8*(parseInt(_0x367502(0x174))/0x9)+parseInt(_0x367502(0x163))/0xa*(-parseInt(_0x367502(0x11d))/0xb)+parseInt(_0x367502(0x114))/0xc*(parseInt(_0x367502(0x16a))/0xd);if(_0x1abcd6===_0x8990f)break;else _0x2f8e08['push'](_0x2f8e08['shift']());}catch(_0x410cf6){_0x2f8e08['push'](_0x2f8e08['shift']());}}}(_0x51b4,0x6028c));import{ViewDowncastWriter as _0x558524}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x2edf55,Editor as _0x3a75fb}from'ckeditor5/src/core.js';import{uid as _0x2ad9a9}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x1838a9}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x48f6fa(0x173);function _0xb22e(_0x5c6210,_0x29fe4c){const _0x51b442=_0x51b4();return _0xb22e=function(_0xb22ed3,_0x363b7c){_0xb22ed3=_0xb22ed3-0x10b;let _0x39c846=_0x51b442[_0xb22ed3];return _0x39c846;},_0xb22e(_0x5c6210,_0x29fe4c);}function _0x51b4(){const _0x8fc3a5=['selection','_getMarkersInDocumentOrder','2569605IkvVMl','isAfter',':end>','getSelectionText','sort','emptyElement','ck-ai-assistant-ui_theme','for','createUIElement','_setDataIdsOnChildren','setAttribute','7441330AvNhPz','isOfficialPlugin','editors','ready','schema','getSelectedContent','document','30612712OysbMG','has','markerName','removeAllRanges','createRange','getMarkersGroup','2059158aEDEgB','get','listenTo','ai-selection','533052bGRXJs','editing','getWalker','isContent','81ffdHGL','convertAiChatSelectionMarker','getChildren','add','getSelection','element','markerToHighlight','ai-selection:','12LViOWF','data-id','modelToViewWithIds','markerToElement','substring','view','55824wegrCb','_sessionId','getRoot','11fHUyOS','editingDowncast','floor','markers','length','7VWrYvw','name','AIEditing','hideFakeVisualSelection','getDocumentData','model','end','2VhwbNn','version','fromCharCode','getStart','32ftPnJs','addMarker','_integrateEditor','dataDowncast','start','createRangeIn','showFakeVisualSelection','containerElement','toData','toView','push','random','_nextDataId','$textProxy','432371RWglGA','join','ck-fake-ai-selection','context','isPremiumPlugin','afterInit',':start>','getLastMatchingPosition','_displayedFakeSelectionId','isBefore','pluginName','RealTimeCollaborationClient','_displayedFakeSelectionLocked','removeMarker','from','isOpening','plugins','conversion','data','isAtEnd','indexOf','processor',':start></','change',':end></','sessionId','trim'];_0x51b4=function(){return _0x8fc3a5;};return _0x51b4();}export class AIEditing extends _0x2edf55{[_0x48f6fa(0x143)]=null;[_0x48f6fa(0x147)]=!0x1;[_0x48f6fa(0x11b)];static get[_0x48f6fa(0x145)](){const _0x21c445=_0x48f6fa;return _0x21c445(0x124);}static get[_0x48f6fa(0x164)](){return!0x0;}static get[_0x48f6fa(0x13f)](){return!0x0;}get[_0x48f6fa(0x154)](){const _0x4a7d12=_0x48f6fa;if(!this[_0x4a7d12(0x11b)]){const _0x49ade1=_0x1838a9(this[_0x4a7d12(0x13e)]),_0x5bc230=_0x49ade1[_0x4a7d12(0x14b)][_0x4a7d12(0x16b)](_0x4a7d12(0x146))&&_0x49ade1[_0x4a7d12(0x14b)][_0x4a7d12(0x171)](_0x4a7d12(0x146))[_0x4a7d12(0x154)];this[_0x4a7d12(0x11b)]=_0x5bc230||_0x2ad9a9();}return this[_0x4a7d12(0x11b)];}[_0x48f6fa(0x126)](){const _0x286184=_0x48f6fa,_0x5b78c=_0x1838a9(this[_0x286184(0x13e)]),_0x31a594=_0x5b78c[_0x286184(0x127)],_0x7c6159=_0x5b78c[_0x286184(0x14d)][_0x286184(0x136)](_0x31a594[_0x286184(0x169)][_0x286184(0x11c)](),{'convertAiChatSelectionMarker':!0x0}),_0x1f2e65=new _0x558524(_0x5b78c[_0x286184(0x175)][_0x286184(0x119)][_0x286184(0x169)]);this[_0x286184(0x161)](_0x7c6159,_0x1f2e65);let _0x55aa42=_0x5b78c[_0x286184(0x14d)][_0x286184(0x150)][_0x286184(0x135)](_0x7c6159);const _0x444f46=this[_0x286184(0x157)](),_0x21b9a4=[];for(const _0x278635 of _0x444f46){const _0x25d624='<'+_0x278635[_0x286184(0x123)]+_0x286184(0x151)+_0x278635[_0x286184(0x123)]+_0x286184(0x141),_0x5243db=_0x55aa42[_0x286184(0x14f)](_0x25d624);_0x55aa42=_0x55aa42[_0x286184(0x118)](0x0,_0x5243db)+_0x55aa42[_0x286184(0x118)](_0x5243db+_0x25d624[_0x286184(0x121)]);const _0x2c917c='<'+_0x278635[_0x286184(0x123)]+_0x286184(0x153)+_0x278635[_0x286184(0x123)]+_0x286184(0x15a),_0x5bb4b3=_0x55aa42[_0x286184(0x14f)](_0x2c917c);_0x55aa42=_0x55aa42[_0x286184(0x118)](0x0,_0x5bb4b3)+_0x55aa42[_0x286184(0x118)](_0x5bb4b3+_0x2c917c[_0x286184(0x121)]),_0x21b9a4[_0x286184(0x137)]({'markerName':_0x278635[_0x286184(0x123)],'start':_0x5243db,'end':_0x5bb4b3,'htmlFragment':_0x55aa42[_0x286184(0x118)](_0x5243db,_0x5bb4b3)});}return{'content':_0x55aa42,'version':_0x5b78c[_0x286184(0x127)][_0x286184(0x169)][_0x286184(0x12a)],'sessionId':this[_0x286184(0x154)],'selections':_0x21b9a4};}async[_0x48f6fa(0x140)](){const _0x4c28f9=_0x48f6fa;this[_0x4c28f9(0x13e)]instanceof _0x3a75fb?this[_0x4c28f9(0x12f)](this[_0x4c28f9(0x13e)]):this[_0x4c28f9(0x172)](this[_0x4c28f9(0x13e)][_0x4c28f9(0x165)],_0x4c28f9(0x10f),(_0xff38f6,_0x2584c6)=>{const _0x561dc6=_0x4c28f9;_0x2584c6['on'](_0x561dc6(0x166),()=>{const _0x37276f=_0x561dc6;this[_0x37276f(0x12f)](_0x2584c6);});});}[_0x48f6fa(0x12f)](_0x4a74a8){const _0x5d4b09=_0x48f6fa;_0x4a74a8[_0x5d4b09(0x14c)][_0x5d4b09(0x15f)](_0x5d4b09(0x11e))[_0x5d4b09(0x112)]({'model':_0x5d4b09(0x173),'view':{'classes':[_0x5d4b09(0x13d),_0x5d4b09(0x15e)],'priority':0xc}}),_0x4a74a8[_0x5d4b09(0x14c)][_0x5d4b09(0x15f)](_0x5d4b09(0x130))[_0x5d4b09(0x117)]({'model':_0x5d4b09(0x173),'view':(_0x5d8e9a,{writer:_0x2e41ec,options:_0x66b4c2})=>_0x66b4c2[_0x5d4b09(0x10d)]?_0x2e41ec[_0x5d4b09(0x160)](_0x5d8e9a[_0x5d4b09(0x16c)]+':'+(_0x5d8e9a[_0x5d4b09(0x14a)]?_0x5d4b09(0x131):_0x5d4b09(0x128))):null});}[_0x48f6fa(0x133)](_0x5da32d,_0x54277d,_0x346563=!0x1,_0x331d29=!0x1){const _0x13011d=_0x48f6fa;if(this[_0x13011d(0x147)]&&!_0x331d29)return!0x1;this[_0x13011d(0x143)]&&this[_0x13011d(0x125)](this[_0x13011d(0x143)]),this[_0x13011d(0x143)]=_0x54277d,this[_0x13011d(0x147)]=_0x346563;const _0x2c1072=_0x1838a9(this[_0x13011d(0x13e)])[_0x13011d(0x127)];return _0x2c1072[_0x13011d(0x152)](_0x201b84=>{const _0x20ec8f=_0x13011d;let _0x4dfcd6=0x0;for(let _0x18c058 of _0x5da32d){const _0x5302f0=_0x20ec8f(0x113)+_0x4dfcd6;if(_0x18c058[_0x20ec8f(0x131)][_0x20ec8f(0x14e)]){const _0x221318=_0x18c058[_0x20ec8f(0x131)][_0x20ec8f(0x142)](({item:_0x37b063})=>!_0x2c1072[_0x20ec8f(0x167)][_0x20ec8f(0x10b)](_0x37b063),{'boundaries':_0x18c058});_0x18c058=_0x201b84[_0x20ec8f(0x16e)](_0x221318,_0x18c058[_0x20ec8f(0x128)]);}_0x201b84[_0x20ec8f(0x12e)](_0x5302f0,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x18c058}),_0x4dfcd6++;}}),window[_0x13011d(0x110)]()?.[_0x13011d(0x16d)](),!0x0;}[_0x48f6fa(0x125)](_0x2e0139){const _0x1a1b12=_0x48f6fa;if(this[_0x1a1b12(0x143)]!=_0x2e0139)return!0x1;this[_0x1a1b12(0x143)]=null,this[_0x1a1b12(0x147)]=!0x1;const _0x3c3695=_0x1838a9(this[_0x1a1b12(0x13e)]),_0x18601b=_0x3c3695[_0x1a1b12(0x127)][_0x1a1b12(0x120)][_0x1a1b12(0x16f)](_0x1a1b12(0x173));return _0x3c3695[_0x1a1b12(0x127)][_0x1a1b12(0x152)](_0x4cb331=>{const _0x5c2b0c=_0x1a1b12;for(const _0xcad37b of _0x18601b)_0x4cb331[_0x5c2b0c(0x148)](_0xcad37b);}),!0x0;}[_0x48f6fa(0x116)](_0x321a51){const _0x2ac4c3=_0x48f6fa,_0x464ffd=_0x1838a9(this[_0x2ac4c3(0x13e)]),_0x45a6d6=_0x464ffd[_0x2ac4c3(0x14d)][_0x2ac4c3(0x136)](_0x321a51),_0x12be8a=new _0x558524(_0x464ffd[_0x2ac4c3(0x175)][_0x2ac4c3(0x119)][_0x2ac4c3(0x169)]);return this[_0x2ac4c3(0x161)](_0x45a6d6,_0x12be8a),_0x45a6d6;}[_0x48f6fa(0x161)](_0x23d44e,_0x50b5e3){const _0x2d4c5d=_0x48f6fa;let _0x6f69d7=!0x1;const _0x1c88b0=new Set();for(const _0xb90608 of _0x23d44e[_0x2d4c5d(0x10e)]()){const _0x12e19a=_0xb90608['is'](_0x2d4c5d(0x15d))||_0xb90608['is'](_0x2d4c5d(0x134));if(!_0xb90608['is'](_0x2d4c5d(0x111)))continue;(this[_0x2d4c5d(0x161)](_0xb90608,_0x50b5e3)||_0x12e19a)&&(_0x50b5e3[_0x2d4c5d(0x162)](_0x2d4c5d(0x115),this[_0x2d4c5d(0x139)](_0x1c88b0),_0xb90608),_0x6f69d7=!0x0);}return _0x6f69d7;}[_0x48f6fa(0x139)](_0x1a5c7c){const _0xec8019=_0x48f6fa;let _0x4d4f96;do{_0x4d4f96='';for(let _0x4ec4b2=0x0;_0x4ec4b2<0x4;_0x4ec4b2++)_0x4d4f96+=String[_0xec8019(0x12b)](0x61+Math[_0xec8019(0x11f)](0x1a*Math[_0xec8019(0x138)]()));}while(_0x1a5c7c[_0xec8019(0x16b)](_0x4d4f96));return _0x1a5c7c[_0xec8019(0x10f)](_0x4d4f96),_0x4d4f96;}[_0x48f6fa(0x15b)](){const _0x13a00d=_0x48f6fa,{model:_0xa77aef}=_0x1838a9(this[_0x13a00d(0x13e)]),_0x3867ba=_0xa77aef[_0x13a00d(0x169)][_0x13a00d(0x156)],_0xae160d=_0xa77aef[_0x13a00d(0x168)](_0x3867ba),_0x2976f5=[],_0x444d2d=_0xa77aef[_0x13a00d(0x132)](_0xae160d)[_0x13a00d(0x176)]();for(const {item:_0x249023}of _0x444d2d)_0x249023['is'](_0x13a00d(0x13a))?_0x2976f5[_0x13a00d(0x137)](_0x249023[_0x13a00d(0x14d)]):_0x249023['is'](_0x13a00d(0x111))&&_0x2976f5[_0x13a00d(0x121)]>0x0&&'\x20'!==_0x2976f5[_0x2976f5[_0x13a00d(0x121)]-0x1]&&_0x2976f5[_0x13a00d(0x137)]('\x20');return'\x22'+_0x2976f5[_0x13a00d(0x13c)]('')[_0x13a00d(0x155)]()+'\x22';}[_0x48f6fa(0x157)](){const _0x38ce21=_0x48f6fa,_0xe0fda1=_0x1838a9(this[_0x38ce21(0x13e)])[_0x38ce21(0x127)];return Array[_0x38ce21(0x149)](_0xe0fda1[_0x38ce21(0x120)][_0x38ce21(0x16f)](_0x38ce21(0x173)))[_0x38ce21(0x15c)]((_0xa4a041,_0x3ddf45)=>_0xa4a041[_0x38ce21(0x12c)]()[_0x38ce21(0x144)](_0x3ddf45[_0x38ce21(0x12c)]())?-0x1:_0xa4a041[_0x38ce21(0x12c)]()[_0x38ce21(0x159)](_0x3ddf45[_0x38ce21(0x12c)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x6892df=_0x3ad0;(function(_0x23e2bc,_0xa7167e){const _0x23a94f=_0x3ad0,_0x465fbd=_0x23e2bc();while(!![]){try{const _0x10b5e7=-parseInt(_0x23a94f(0x99))/0x1+-parseInt(_0x23a94f(0xa5))/0x2+parseInt(_0x23a94f(0x95))/0x3+-parseInt(_0x23a94f(0xa4))/0x4*(-parseInt(_0x23a94f(0xa7))/0x5)+-parseInt(_0x23a94f(0x97))/0x6+parseInt(_0x23a94f(0x94))/0x7*(parseInt(_0x23a94f(0xa6))/0x8)+-parseInt(_0x23a94f(0xa3))/0x9*(-parseInt(_0x23a94f(0x98))/0xa);if(_0x10b5e7===_0xa7167e)break;else _0x465fbd['push'](_0x465fbd['shift']());}catch(_0x2cc8a6){_0x465fbd['push'](_0x465fbd['shift']());}}}(_0x2e73,0x8edc4));import{EmitterMixin as _0x113772}from'ckeditor5/src/utils.js';function _0x2e73(){const _0x5865ec=['4710990NvnYBt','23911610sikESr','992511enSzPB','_isReasoningEnabled','toggleWebSearch','webSearch','reasoning','_isWebSearchEnabled','reset','isWebSearchEnabled','getCapabilitiesRequestData','init','9NJYVQc','859600QNQkLS','781078IcWpAJ','979976dSPejD','5HBFGax','fire','toggleReasoning','setWebSearch','setReasoning','isReasoningEnabled','capabilitiesUpdated','7bWQTQU','74439yuZShr','getCapabilitiesConfig'];_0x2e73=function(){return _0x5865ec;};return _0x2e73();}function _0x3ad0(_0x567a2d,_0xb76415){const _0x2e73aa=_0x2e73();return _0x3ad0=function(_0x3ad05e,_0xa9ed41){_0x3ad05e=_0x3ad05e-0x91;let _0x4b5737=_0x2e73aa[_0x3ad05e];return _0x4b5737;},_0x3ad0(_0x567a2d,_0xb76415);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x6892df(0x93)];export class AICapabilities extends _0x113772(){[_0x6892df(0x9e)];[_0x6892df(0x9a)];constructor(){const _0x3416ef=_0x6892df;super(),this[_0x3416ef(0x9e)]=!0x1,this[_0x3416ef(0x9a)]=!0x1;}[_0x6892df(0xa2)](){const _0x48909d=_0x6892df;this[_0x48909d(0x9f)]();}[_0x6892df(0x9f)](){const _0x61beb7=_0x6892df;this[_0x61beb7(0xaa)](!0x1),this[_0x61beb7(0x91)](!0x1);}[_0x6892df(0x96)](){const _0x1fc7eb=_0x6892df;return{'isWebSearchEnabled':this[_0x1fc7eb(0x9e)],'isReasoningEnabled':this[_0x1fc7eb(0x9a)]};}static[_0x6892df(0xa1)](_0x43f82c){const _0x20ee7e=_0x6892df,_0x22678b={};return _0x43f82c&&_0x43f82c[_0x20ee7e(0xa0)]&&(_0x22678b[_0x20ee7e(0x9c)]={}),_0x43f82c&&_0x43f82c[_0x20ee7e(0x92)]&&(_0x22678b[_0x20ee7e(0x9d)]={}),_0x22678b;}[_0x6892df(0x9b)](){const _0xc2533d=_0x6892df;this[_0xc2533d(0xaa)](!this[_0xc2533d(0x9e)]);}[_0x6892df(0xa9)](){const _0x36fc64=_0x6892df;this[_0x36fc64(0x91)](!this[_0x36fc64(0x9a)]);}[_0x6892df(0xaa)](_0x4c1b07){const _0x2f4d6f=_0x6892df;_0x4c1b07!==this[_0x2f4d6f(0x9e)]&&(this[_0x2f4d6f(0x9e)]=_0x4c1b07,this[_0x2f4d6f(0xa8)](_0x2f4d6f(0x93),this[_0x2f4d6f(0x96)]()));}[_0x6892df(0x91)](_0x3cabf8){const _0x117013=_0x6892df;_0x3cabf8!==this[_0x117013(0x9a)]&&(this[_0x117013(0x9a)]=_0x3cabf8,this[_0x117013(0xa8)](_0x117013(0x93),this[_0x117013(0x96)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x46a831,_0x3ea776){var _0x182365=_0x2272,_0x19b770=_0x46a831();while(!![]){try{var _0x5f0d8b=parseInt(_0x182365(0x15d))/0x1+-parseInt(_0x182365(0x15e))/0x2*(-parseInt(_0x182365(0x167))/0x3)+parseInt(_0x182365(0x16a))/0x4*(parseInt(_0x182365(0x163))/0x5)+-parseInt(_0x182365(0x15c))/0x6+parseInt(_0x182365(0x168))/0x7+-parseInt(_0x182365(0x166))/0x8+-parseInt(_0x182365(0x15b))/0x9;if(_0x5f0d8b===_0x3ea776)break;else _0x19b770['push'](_0x19b770['shift']());}catch(_0x85f2e0){_0x19b770['push'](_0x19b770['shift']());}}}(_0xc32f,0x2d1f1));function _0x2272(_0x4d7347,_0x2d016e){var _0xc32f95=_0xc32f();return _0x2272=function(_0x22726c,_0x45e3c3){_0x22726c=_0x22726c-0x157;var _0x5c3d19=_0xc32f95[_0x22726c];return _0x5c3d19;},_0x2272(_0x4d7347,_0x2d016e);}export var AIContextItemType;!function(_0x39d5f8){var _0x3c9270=_0x2272;_0x39d5f8[_0x3c9270(0x158)]=_0x3c9270(0x164),_0x39d5f8[_0x3c9270(0x159)]=_0x3c9270(0x16d),_0x39d5f8[_0x3c9270(0x161)]=_0x3c9270(0x160),_0x39d5f8[_0x3c9270(0x169)]=_0x3c9270(0x162),_0x39d5f8[_0x3c9270(0x165)]=_0x3c9270(0x16c);}(AIContextItemType||(AIContextItemType={}));function _0xc32f(){var _0x371f2c=['HTML','FILE','DOCUMENT','html','1643445qAKBcy','441972byutcT','174400OseqIH','12122unUGiC','markdown','web-resource','URL','text','6875zcmvhX','file','SELECTION','2324192MrVWlt','57faedTN','2507218rmXvPd','TEXT','244LrMmkM','MARKDOWN','selection','document'];_0xc32f=function(){return _0x371f2c;};return _0xc32f();}export var AIContextTextResourceType;!function(_0x29b63a){var _0x2c88e2=_0x2272;_0x29b63a[_0x2c88e2(0x169)]=_0x2c88e2(0x162),_0x29b63a[_0x2c88e2(0x16b)]=_0x2c88e2(0x15f),_0x29b63a[_0x2c88e2(0x157)]=_0x2c88e2(0x15a);}(AIContextTextResourceType||(AIContextTextResourceType={}));
|
|
@@ -6,7 +6,7 @@ import { type AIConnectorRequest, type AIConnector } from '../aiconnector.js';
|
|
|
6
6
|
import { AIReply } from './aireply.js';
|
|
7
7
|
import { type Editor } from 'ckeditor5/src/core.js';
|
|
8
8
|
import { type AIContextItem } from './aicontext.js';
|
|
9
|
-
export declare const AI_MODEL_EVENT_NAMES: readonly ["interactionCreated", "interactionStarted", "interactionStopped", "interactionFinished", "interactionDestroyed", "replyCreated", "replyContentUpdated", "replyChangeGroupStateUpdated", "setConversationTitle", "error"];
|
|
9
|
+
export declare const AI_MODEL_EVENT_NAMES: readonly ["interactionCreated", "interactionStarted", "interactionStopped", "interactionFinished", "interactionDestroyed", "replyCreated", "replyContentUpdated", "replyChangeGroupStateUpdated", "setConversationTitle", "webSearchStarted", "webSearchFinished", "reasoningStarted", "reasoningFinished", "error"];
|
|
10
10
|
declare const AIInteraction_base: {
|
|
11
11
|
new (): import("ckeditor5/src/utils.js").Emitter;
|
|
12
12
|
prototype: import("ckeditor5/src/utils.js").Emitter;
|
|
@@ -29,6 +29,14 @@ export declare abstract class AIInteraction extends /* #__PURE__ */ AIInteractio
|
|
|
29
29
|
* The AI endpoint replies to the user message.
|
|
30
30
|
*/
|
|
31
31
|
replies: Array<AIReply>;
|
|
32
|
+
/**
|
|
33
|
+
* Message ID returned by the AI endpoint used for rating requests.
|
|
34
|
+
*/
|
|
35
|
+
messageId?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Action call ID returned by the AI endpoint used for rating requests.
|
|
38
|
+
*/
|
|
39
|
+
actionCallId?: string;
|
|
32
40
|
constructor({ connector, editor }: AIInteractionOptions);
|
|
33
41
|
/**
|
|
34
42
|
* Sends the request to the AI endpoint.
|
|
@@ -132,4 +140,36 @@ export type AISetConversationTitleEvent = {
|
|
|
132
140
|
name: 'setConversationTitle';
|
|
133
141
|
args: [title: string, shouldAnimate?: boolean];
|
|
134
142
|
};
|
|
143
|
+
/**
|
|
144
|
+
* An event emitted by an {@link module:ai/aicore/model/aiinteraction~AIInteraction} when
|
|
145
|
+
* the web search was performed.
|
|
146
|
+
*/
|
|
147
|
+
export type AIWebSearchStartedEvent<TInteraction extends AIInteraction = AIInteraction> = {
|
|
148
|
+
name: 'webSearchStarted';
|
|
149
|
+
args: [interaction: TInteraction];
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* An event emitted by an {@link module:ai/aicore/model/aiinteraction~AIInteraction} when
|
|
153
|
+
* the web search was performed.
|
|
154
|
+
*/
|
|
155
|
+
export type AIWebSearchFinishedEvent<TInteraction extends AIInteraction = AIInteraction> = {
|
|
156
|
+
name: 'webSearchFinished';
|
|
157
|
+
args: [interaction: TInteraction];
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* An event emitted by an {@link module:ai/aicore/model/aiinteraction~AIInteraction} when
|
|
161
|
+
* the reasoning was performed.
|
|
162
|
+
*/
|
|
163
|
+
export type AIReasoningStartedEvent<TInteraction extends AIInteraction = AIInteraction> = {
|
|
164
|
+
name: 'reasoningStarted';
|
|
165
|
+
args: [interaction: TInteraction];
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* An event emitted by an {@link module:ai/aicore/model/aiinteraction~AIInteraction} when
|
|
169
|
+
* the reasoning was performed.
|
|
170
|
+
*/
|
|
171
|
+
export type AIReasoningFinishedEvent<TInteraction extends AIInteraction = AIInteraction> = {
|
|
172
|
+
name: 'reasoningFinished';
|
|
173
|
+
args: [interaction: TInteraction];
|
|
174
|
+
};
|
|
135
175
|
export {};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x482d(){const _0x2651f8=['data','getReply','reasoningStarted','conversationTitle','isDestroyed','7214247NuOCrJ','content','sources','destroy','10HNcxoH','11MJePtd','2320784JxfxPy','reasoning','currentRequest','sendRequest','splice','setConversationTitle','connector','editor','_finalizeInteraction','error','8979588ZtnPrr','textDelta','reasoningFinished','_isReasoning','replyChangeGroupStateUpdated','replyContentUpdated','action-metadata','modification-delta','message-metadata','64agztSs','replies','interactionStarted','2WFzTLG','actionCallId','136370ejChuQ','ai-interaction-invalid-event-type','68265bqbLJg','source','forEach','delegate','interactionCreated','web-search','appendContent','messageId','replyCreated','length','find','474638iSlvpE','start','interactionStopped','278022IWUOuW','currentReply','interactionDestroyed','webSearchFinished','abortController','getStream','stop','stopListening','interactionFinished','_isWebSearching','fire','7udYXoz','webSearchStarted','event','createReply','push','done','callId','getDocumentContext','ai-chat-interaction-error','isStopped','abort'];_0x482d=function(){return _0x2651f8;};return _0x482d();}const _0x3a7d27=_0x2a90;(function(_0x340d55,_0x1da761){const _0x4d43ac=_0x2a90,_0xe924d1=_0x340d55();while(!![]){try{const _0x5c3ad7=-parseInt(_0x4d43ac(0x1c5))/0x1*(-parseInt(_0x4d43ac(0x18b))/0x2)+parseInt(_0x4d43ac(0x1c9))/0x3+-parseInt(_0x4d43ac(0x1c2))/0x4*(parseInt(_0x4d43ac(0x1c7))/0x5)+-parseInt(_0x4d43ac(0x18e))/0x6*(-parseInt(_0x4d43ac(0x199))/0x7)+parseInt(_0x4d43ac(0x1af))/0x8+-parseInt(_0x4d43ac(0x1a9))/0x9*(-parseInt(_0x4d43ac(0x1ad))/0xa)+-parseInt(_0x4d43ac(0x1ae))/0xb*(parseInt(_0x4d43ac(0x1b9))/0xc);if(_0x5c3ad7===_0x1da761)break;else _0xe924d1['push'](_0xe924d1['shift']());}catch(_0x3dc4ea){_0xe924d1['push'](_0xe924d1['shift']());}}}(_0x482d,0x6e0a8));import{CKEditorError as _0x365065,EmitterMixin as _0x32641a,logWarning as _0x407339,uid as _0x5b849f}from'ckeditor5/src/utils.js';import{AIReply as _0x2acb9f,isIgnoredReplyType as _0x26c6ed,isValidReplyType as _0xb82fbc,isReplyTitleType as _0x58fc0d,isSourceType as _0x301cf1}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x3a7d27(0x184),_0x3a7d27(0x1c4),_0x3a7d27(0x18d),_0x3a7d27(0x196),_0x3a7d27(0x190),_0x3a7d27(0x188),_0x3a7d27(0x1be),_0x3a7d27(0x1bd),_0x3a7d27(0x1b4),_0x3a7d27(0x19a),_0x3a7d27(0x191),_0x3a7d27(0x1a6),_0x3a7d27(0x1bb),_0x3a7d27(0x1b8)];function _0x2a90(_0x317990,_0x1e73a4){const _0x482dd1=_0x482d();return _0x2a90=function(_0x2a907d,_0x3efe83){_0x2a907d=_0x2a907d-0x183;let _0x4aa2a3=_0x482dd1[_0x2a907d];return _0x4aa2a3;},_0x2a90(_0x317990,_0x1e73a4);}export class AIInteraction extends _0x32641a(){['id'];[_0x3a7d27(0x1c3)]=[];[_0x3a7d27(0x18f)];[_0x3a7d27(0x187)];[_0x3a7d27(0x1c6)];[_0x3a7d27(0x1b1)];[_0x3a7d27(0x1b5)];[_0x3a7d27(0x1a2)]=!0x1;[_0x3a7d27(0x1a8)]=!0x1;[_0x3a7d27(0x1b6)];[_0x3a7d27(0x1bc)]=!0x1;[_0x3a7d27(0x197)]=!0x1;constructor({connector:_0x32c869,editor:_0x3a9c51}){const _0xe79e6b=_0x3a7d27;super(),this['id']=_0x5b849f(),this[_0xe79e6b(0x1b5)]=_0x32c869,this[_0xe79e6b(0x1a2)]=!0x0,this[_0xe79e6b(0x1b6)]=_0x3a9c51;}async[_0x3a7d27(0x18c)](){const _0x44c990=_0x3a7d27;let _0x511722;const _0x2104bf=[];this[_0x44c990(0x1a2)]=!0x1;try{this[_0x44c990(0x1b1)]=await this[_0x44c990(0x1b2)](),this[_0x44c990(0x198)](_0x44c990(0x1c4),this);const _0x5d11a7=await this[_0x44c990(0x1b1)][_0x44c990(0x193)]();for await(const _0x1d24e3 of _0x5d11a7){if(this[_0x44c990(0x1a2)])return;if(_0x44c990(0x1b8)===_0x1d24e3[_0x44c990(0x19b)])return void this[_0x44c990(0x198)](_0x44c990(0x1b8),{'error':new _0x365065(_0x44c990(0x1a1),this)});if(_0x44c990(0x1c1)!==_0x1d24e3[_0x44c990(0x19b)]){if(_0x44c990(0x1bf)!==_0x1d24e3[_0x44c990(0x19b)]){if(_0x58fc0d(_0x1d24e3[_0x44c990(0x19b)])&&this[_0x44c990(0x1b4)](_0x1d24e3[_0x44c990(0x1a4)][_0x44c990(0x1a7)],!0x0),_0x301cf1(_0x1d24e3[_0x44c990(0x19b)]))_0x2104bf[_0x44c990(0x19d)](_0x1d24e3[_0x44c990(0x1a4)][_0x44c990(0x1ca)]);else{if(_0xb82fbc(_0x1d24e3[_0x44c990(0x19b)])){if(_0x1d24e3[_0x44c990(0x19b)]!==_0x511722){if(_0x511722=_0x1d24e3[_0x44c990(0x19b)],_0x44c990(0x185)===_0x1d24e3[_0x44c990(0x19b)]){this[_0x44c990(0x197)]||(this[_0x44c990(0x197)]=!0x0,this[_0x44c990(0x198)](_0x44c990(0x19a),this));continue;}if(_0x44c990(0x1b0)===_0x1d24e3[_0x44c990(0x19b)]){this[_0x44c990(0x1bc)]||(this[_0x44c990(0x1bc)]=!0x0,this[_0x44c990(0x198)](_0x44c990(0x1a6),this));continue;}this[_0x44c990(0x1bc)]&&(this[_0x44c990(0x1bc)]=!0x1,this[_0x44c990(0x198)](_0x44c990(0x1bb),this)),this[_0x44c990(0x197)]&&(this[_0x44c990(0x197)]=!0x1,this[_0x44c990(0x198)](_0x44c990(0x191),this)),this[_0x44c990(0x18f)]&&this[_0x44c990(0x18f)][_0x44c990(0x19e)](),this[_0x44c990(0x18f)]=this[_0x44c990(0x19c)]({'type':_0x1d24e3[_0x44c990(0x19b)],'interactionId':this['id']}),_0x2104bf[_0x44c990(0x189)]>0x0&&_0x44c990(0x1c0)===_0x1d24e3[_0x44c990(0x19b)]&&(this[_0x44c990(0x18f)][_0x44c990(0x1ab)]=_0x2104bf[_0x44c990(0x1b3)](0x0));}_0x1d24e3[_0x44c990(0x1a4)][_0x44c990(0x1ba)]&&this[_0x44c990(0x18f)][_0x44c990(0x186)](_0x1d24e3[_0x44c990(0x1a4)][_0x44c990(0x1ba)]);}else _0x26c6ed(_0x1d24e3[_0x44c990(0x19b)])||_0x407339(_0x44c990(0x1c8),{'chunk':_0x1d24e3});}}else this[_0x44c990(0x1c6)]=_0x1d24e3[_0x44c990(0x1a4)][_0x44c990(0x19f)];}else this[_0x44c990(0x187)]=_0x1d24e3[_0x44c990(0x1a4)]['id'];}}finally{this[_0x44c990(0x1a2)]||(_0x2104bf[_0x44c990(0x189)]>0x0&&(this[_0x44c990(0x18f)][_0x44c990(0x1ab)]=_0x2104bf[_0x44c990(0x1b3)](0x0)),this[_0x44c990(0x1b7)](),this[_0x44c990(0x198)](_0x44c990(0x196),this));}}[_0x3a7d27(0x194)](){const _0x5eef3f=_0x3a7d27;this[_0x5eef3f(0x1a2)]||(this[_0x5eef3f(0x1b7)](),this[_0x5eef3f(0x198)](_0x5eef3f(0x18d),this));}[_0x3a7d27(0x1a5)](_0x56025e){const _0x260c5b=_0x3a7d27;return this[_0x260c5b(0x1c3)][_0x260c5b(0x18a)](_0x5536a3=>_0x5536a3['id']===_0x56025e);}[_0x3a7d27(0x1ac)](){const _0x200fe1=_0x3a7d27;this[_0x200fe1(0x1a8)]||(this[_0x200fe1(0x194)](),this[_0x200fe1(0x1c3)][_0x200fe1(0x1cb)](_0x209aba=>_0x209aba[_0x200fe1(0x1ac)]()),this[_0x200fe1(0x1c3)]=[],this[_0x200fe1(0x1a8)]=!0x0,this[_0x200fe1(0x198)](_0x200fe1(0x190),this),this[_0x200fe1(0x195)]());}[_0x3a7d27(0x19c)](_0x548f20){const _0x49effe=_0x3a7d27,_0x3c6948=new _0x2acb9f({'editor':this[_0x49effe(0x1b6)],'documentContextContent':this[_0x49effe(0x1a0)]()?.[_0x49effe(0x1aa)],..._0x548f20});return this[_0x49effe(0x1c3)][_0x49effe(0x19d)](_0x3c6948),_0x3c6948[_0x49effe(0x183)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x49effe(0x198)](_0x49effe(0x188),_0x3c6948),_0x3c6948;}[_0x3a7d27(0x1b4)](_0x48b271,_0x572435=!0x1){const _0x203f78=_0x3a7d27;this[_0x203f78(0x198)](_0x203f78(0x1b4),_0x48b271,_0x572435);}[_0x3a7d27(0x1b7)](){const _0x72999=_0x3a7d27;this[_0x72999(0x1a2)]=!0x0,this[_0x72999(0x1b1)]&&this[_0x72999(0x1b1)][_0x72999(0x192)][_0x72999(0x1a3)](),this[_0x72999(0x18f)]&&this[_0x72999(0x18f)][_0x72999(0x19e)](),this[_0x72999(0x1b1)]=this[_0x72999(0x18f)]=void 0x0;}}
|
|
@@ -8,11 +8,11 @@ import { type AISuggestionContentPartDefinition } from '../utils/getsuggestionpa
|
|
|
8
8
|
/**
|
|
9
9
|
* The reply types that are provided by the AI endpoint.
|
|
10
10
|
*/
|
|
11
|
-
export declare const AI_REPLY_TYPES: readonly ["modification-delta", "text-delta"];
|
|
11
|
+
export declare const AI_REPLY_TYPES: readonly ["modification-delta", "text-delta", "web-search", "reasoning"];
|
|
12
12
|
/**
|
|
13
13
|
* The reply types that are intentionally ignored.
|
|
14
14
|
*/
|
|
15
|
-
export declare const AI_REPLY_TYPES_IGNORED: readonly ["
|
|
15
|
+
export declare const AI_REPLY_TYPES_IGNORED: readonly ["conversation-title"];
|
|
16
16
|
/**
|
|
17
17
|
* The type of the reply that is responsible for the conversation title.
|
|
18
18
|
*/
|