@ckeditor/ckeditor5-ai 47.5.0 → 47.6.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/966.ai.js +5 -0
- package/build/ai.js +1 -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/en.js +1 -0
- 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 +387 -403
- package/dist/index.css +441 -413
- package/dist/index.js +5 -5
- 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 +1 -0
- package/lang/translations/af.po +8 -4
- package/lang/translations/ar.po +8 -4
- package/lang/translations/ast.po +8 -4
- package/lang/translations/az.po +8 -4
- package/lang/translations/be.po +8 -4
- package/lang/translations/bg.po +8 -4
- package/lang/translations/bn.po +8 -4
- package/lang/translations/bs.po +8 -4
- package/lang/translations/ca.po +8 -4
- package/lang/translations/cs.po +8 -4
- package/lang/translations/da.po +8 -4
- package/lang/translations/de-ch.po +8 -4
- package/lang/translations/de.po +8 -4
- package/lang/translations/el.po +8 -4
- package/lang/translations/en-au.po +8 -4
- package/lang/translations/en-gb.po +8 -4
- package/lang/translations/en.po +8 -4
- package/lang/translations/eo.po +8 -4
- package/lang/translations/es-co.po +8 -4
- package/lang/translations/es.po +8 -4
- package/lang/translations/et.po +8 -4
- package/lang/translations/eu.po +8 -4
- package/lang/translations/fa.po +8 -4
- package/lang/translations/fi.po +8 -4
- package/lang/translations/fr.po +8 -4
- package/lang/translations/gl.po +8 -4
- package/lang/translations/gu.po +8 -4
- package/lang/translations/he.po +8 -4
- package/lang/translations/hi.po +8 -4
- package/lang/translations/hr.po +8 -4
- package/lang/translations/hu.po +8 -4
- package/lang/translations/hy.po +8 -4
- package/lang/translations/id.po +8 -4
- package/lang/translations/it.po +8 -4
- package/lang/translations/ja.po +8 -4
- package/lang/translations/jv.po +8 -4
- package/lang/translations/kk.po +8 -4
- package/lang/translations/km.po +8 -4
- package/lang/translations/kn.po +8 -4
- package/lang/translations/ko.po +8 -4
- package/lang/translations/ku.po +8 -4
- package/lang/translations/lt.po +8 -4
- package/lang/translations/lv.po +8 -4
- package/lang/translations/ms.po +8 -4
- package/lang/translations/nb.po +8 -4
- package/lang/translations/ne.po +8 -4
- package/lang/translations/nl.po +8 -4
- package/lang/translations/no.po +8 -4
- package/lang/translations/oc.po +8 -4
- package/lang/translations/pl.po +8 -4
- package/lang/translations/pt-br.po +8 -4
- package/lang/translations/pt.po +8 -4
- package/lang/translations/ro.po +8 -4
- package/lang/translations/ru.po +8 -4
- package/lang/translations/si.po +8 -4
- package/lang/translations/sk.po +8 -4
- package/lang/translations/sl.po +8 -4
- package/lang/translations/sq.po +8 -4
- package/lang/translations/sr-latn.po +8 -4
- package/lang/translations/sr.po +8 -4
- package/lang/translations/sv.po +8 -4
- package/lang/translations/th.po +8 -4
- package/lang/translations/ti.po +8 -4
- package/lang/translations/tk.po +8 -4
- package/lang/translations/tr.po +8 -4
- package/lang/translations/tt.po +8 -4
- package/lang/translations/ug.po +8 -4
- package/lang/translations/uk.po +8 -4
- package/lang/translations/ur.po +8 -4
- package/lang/translations/uz.po +8 -4
- package/lang/translations/vi.po +8 -4
- package/lang/translations/zh-cn.po +8 -4
- package/lang/translations/zh.po +8 -4
- package/package.json +21 -21
- package/src/aiactions/aiactions.js +1 -1
- 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/aiballoonview.js +1 -1
- package/src/aichat/aichat.d.ts +12 -8
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +4 -0
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +24 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.d.ts +13 -0
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.d.ts +5 -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.d.ts +5 -0
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.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/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- 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.js +1 -1
- 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/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -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.d.ts +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- 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/aichatshortcuts/aichatshortcuts.d.ts +324 -0
- package/src/aichatshortcuts/aichatshortcuts.js +23 -0
- package/src/aichatshortcuts/ui/aichatshortcutsview.d.ts +23 -0
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +23 -0
- package/src/aichatshortcuts/ui/aichatshortcutview.d.ts +23 -0
- package/src/aichatshortcuts/ui/aichatshortcutview.js +23 -0
- package/src/aiconfig.d.ts +7 -0
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.d.ts +8 -0
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.d.ts +7 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- 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.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.d.ts +1 -0
- 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.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/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -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.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/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.d.ts +4 -0
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.d.ts +3 -3
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/types.d.ts +11 -2
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.d.ts +4 -0
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.d.ts +95 -0
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.d.ts +5 -0
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +6 -3
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.d.ts +35 -0
- package/src/aireviewmode/model/aireviewcheckextra.js +23 -0
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +2 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.d.ts +20 -0
- package/src/aireviewmode/model/aireviewextracheckrun.js +23 -0
- package/src/aireviewmode/model/aireviewmodechecklist.d.ts +10 -0
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- 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/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.d.ts +5 -0
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/augmentation.d.ts +2 -0
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.d.ts +2 -1
- package/src/index.js +1 -1
- package/theme/aichat/aichat-controls/aichat-context-controls.css +0 -1
- package/theme/aichat/aichat-controls/aichat-controls-button.css +22 -23
- package/theme/aichat/aichat-controls/prompt-input.css +23 -0
- package/theme/aichat/aichat-controls.css +0 -19
- package/theme/aichat/aichathistory.css +1 -1
- package/theme/aichat/aiminitoolbar.css +0 -16
- package/theme/aichatshortcuts/aichatshortcuts.css +84 -0
- package/theme/aieditorintegration/aitogglebutton.css +5 -11
- package/theme/aiquickactions/aiquickactions.css +6 -11
- package/theme/aiquickactions/aiquickactionsballoon.css +37 -29
- package/theme/aireviewcore/aireviewcore-check-run.css +4 -0
- package/theme/aireviewcore/aireviewcore.css +4 -4
- package/theme/aitabs/aitabsresizebutton.css +14 -0
- package/theme/aitranslate/aitranslate.css +4 -0
- package/theme/common/aibutton.css +56 -67
- package/theme/common/aiheader.css +1 -1
- package/theme/common/aisuggestioncontentparttoolbar.css +1 -1
- package/theme/common/aisuggestionstreamablecontent.css +4 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20413c=_0xff1c;(function(_0x328152,_0x40b442){const _0x52d2f8=_0xff1c,_0x245801=_0x328152();while(!![]){try{const _0x57b50f=-parseInt(_0x52d2f8(0x73))/0x1*(-parseInt(_0x52d2f8(0xa3))/0x2)+-parseInt(_0x52d2f8(0x8c))/0x3*(parseInt(_0x52d2f8(0x80))/0x4)+parseInt(_0x52d2f8(0xa0))/0x5+-parseInt(_0x52d2f8(0x7d))/0x6+-parseInt(_0x52d2f8(0x98))/0x7+-parseInt(_0x52d2f8(0x7f))/0x8+-parseInt(_0x52d2f8(0x95))/0x9*(-parseInt(_0x52d2f8(0x7b))/0xa);if(_0x57b50f===_0x40b442)break;else _0x245801['push'](_0x245801['shift']());}catch(_0x401283){_0x245801['push'](_0x245801['shift']());}}}(_0x17f5,0x384ed));function _0x17f5(){const _0x45693b=['value','maxRows','enter','isEnabled','uiLanguageDirection','left','isVisible','71271bxmqDz','isOn','fieldWrapperChildren','showHistoryButtonView','_createShowHistoryButton','rtl','bind','window','keystrokes','38169mxdvij','focusCycler','submitButtonView','2613611QrFmNs','resultsView','focusFirst','submit','requestAnimationFrame','isEmpty','render','right','1205750GDJVck','add','fire','6paznmL','fieldView','minRows','_createSubmitButton','set','locale','focusableChildren','ck-ai-form__submit','ck-ai-form__toggle-history','Submit','68821QbCXUX','focusLast','update','focus','width','filteredView','element','execute','710fxrKog','children','331596BNkmLw','style','335472BfzBcR','8jXrrdm','queryView','History','excludeScrollbarsAndBorders','target'];_0x17f5=function(){return _0x45693b;};return _0x17f5();}import{Rect as _0xe401de,global as _0x1a2154,isVisible as _0x42d695}from'ckeditor5/src/utils.js';import{IconAIHistory as _0x6bfc78,IconSubmit as _0x232dff}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x2232af,ButtonView as _0x5cf1ce}from'ckeditor5/src/ui.js';function _0xff1c(_0x24fb73,_0x12d164){const _0x17f59e=_0x17f5();return _0xff1c=function(_0xff1c08,_0x3929b1){_0xff1c08=_0xff1c08-0x70;let _0x3e09d3=_0x17f59e[_0xff1c08];return _0x3e09d3;},_0xff1c(_0x24fb73,_0x12d164);}import{getTranslation as _0x3aeb52}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x2232af{[_0x20413c(0x97)];[_0x20413c(0x8f)];constructor(_0x281861,_0x44cff2){const _0x305831=_0x20413c;super(_0x281861,_0x44cff2),this[_0x305831(0x81)][_0x305831(0xa4)][_0x305831(0xa5)]=0x1,this[_0x305831(0x81)][_0x305831(0xa4)][_0x305831(0x86)]=0x3,this[_0x305831(0x97)]=this[_0x305831(0xa6)](),this[_0x305831(0x8f)]=this[_0x305831(0x90)](),this[_0x305831(0xa9)][_0x305831(0xa1)](this[_0x305831(0x8f)],0x1),this[_0x305831(0xa9)][_0x305831(0xa1)](this[_0x305831(0x97)]);}[_0x20413c(0x9e)](){const _0x478ffa=_0x20413c;super[_0x478ffa(0x9e)](),this[_0x478ffa(0x81)][_0x478ffa(0x8e)][_0x478ffa(0xa1)](this[_0x478ffa(0x8f)]),this[_0x478ffa(0x7c)][_0x478ffa(0xa1)](this[_0x478ffa(0x97)]),this[_0x478ffa(0x94)][_0x478ffa(0xa7)](_0x478ffa(0x87),(_0x37492c,_0x4300ce)=>{const _0x2f5f79=_0x478ffa;_0x37492c[_0x2f5f79(0x84)]==this[_0x2f5f79(0x81)][_0x2f5f79(0xa4)][_0x2f5f79(0x79)]&&(this[_0x2f5f79(0x9b)](),_0x4300ce());});}[_0x20413c(0xa6)](){const _0x171551=_0x20413c,_0xacd7c2=new _0x5cf1ce(this[_0x171551(0xa8)]),_0x2e059b=this[_0x171551(0xa8)];return _0xacd7c2[_0x171551(0xa7)]({'icon':_0x232dff,'label':_0x3aeb52(_0x2e059b,_0x171551(0x72)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x171551(0x70)}),_0xacd7c2['on'](_0x171551(0x7a),()=>{const _0x24a506=_0x171551;this[_0x24a506(0x9b)]();}),_0xacd7c2[_0x171551(0x92)](_0x171551(0x88))['to'](this[_0x171551(0x81)][_0x171551(0xa4)],_0x171551(0x9d),this,_0x171551(0x88),(_0x46c96c,_0x2eaf21)=>!_0x46c96c&&_0x2eaf21),_0xacd7c2;}[_0x20413c(0x90)](){const _0x5944ce=_0x20413c,_0x217a1b=new _0x5cf1ce(this[_0x5944ce(0xa8)]),_0x510d89=this[_0x5944ce(0x99)],_0x430736=this[_0x5944ce(0xa8)];_0x217a1b[_0x5944ce(0xa7)]({'label':_0x3aeb52(_0x430736,_0x5944ce(0x82)),'withText':!0x1,'icon':_0x6bfc78,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x5944ce(0x71)}),_0x217a1b[_0x5944ce(0x92)](_0x5944ce(0x8d))['to'](_0x510d89,_0x5944ce(0x8b)),_0x217a1b[_0x5944ce(0x92)](_0x5944ce(0x88))['to'](this,_0x5944ce(0x88)),_0x217a1b['on'](_0x5944ce(0x7a),()=>{const _0x386887=_0x5944ce;_0x510d89[_0x386887(0x8b)]=!_0x510d89[_0x386887(0x8b)],_0x510d89[_0x386887(0x8b)]?this[_0x386887(0x78)][_0x386887(0x76)]():this[_0x386887(0x76)]();});const _0x33aef=()=>{const _0x34b830=_0x5944ce;_0x1a2154[_0x34b830(0x93)][_0x34b830(0x9c)](()=>{const _0x5db2dc=_0x34b830;if(_0x42d695(this[_0x5db2dc(0x79)])){const _0x1c19b0=new _0xe401de(this[_0x5db2dc(0x81)][_0x5db2dc(0xa4)][_0x5db2dc(0x79)]),_0x50812e=_0x1c19b0[_0x5db2dc(0x77)],_0x2eaf75=_0x5db2dc(0x91)===_0x430736[_0x5db2dc(0x89)]?_0x5db2dc(0x8a):_0x5db2dc(0x9f);_0x1c19b0[_0x5db2dc(0x83)](),_0x217a1b[_0x5db2dc(0x79)][_0x5db2dc(0x7e)][_0x2eaf75]=_0x50812e-_0x1c19b0[_0x5db2dc(0x77)]+0x1+'px';}});};return this[_0x5944ce(0x81)][_0x5944ce(0xa4)]['on'](_0x5944ce(0x75),_0x33aef),this['on'](_0x5944ce(0x9e),_0x33aef),_0x217a1b;}[_0x20413c(0x9b)](){const _0x336d75=_0x20413c,_0x1c9d31=this[_0x336d75(0x81)][_0x336d75(0xa4)][_0x336d75(0x79)][_0x336d75(0x85)];this[_0x336d75(0xa2)](_0x336d75(0x9b),_0x1c9d31);}[_0x20413c(0x76)](_0x33caa9){const _0x3c2eac=_0x20413c;-0x1===_0x33caa9?this[_0x3c2eac(0x96)][_0x3c2eac(0x74)]():this[_0x3c2eac(0x96)][_0x3c2eac(0x9a)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x459b(_0x1253e3,_0x4f7f6d){const _0x114429=_0x1144();return _0x459b=function(_0x459b44,_0x101a2b){_0x459b44=_0x459b44-0x9a;let _0x1ae0cf=_0x114429[_0x459b44];return _0x1ae0cf;},_0x459b(_0x1253e3,_0x4f7f6d);}const _0x3d28b7=_0x459b;(function(_0x48ad97,_0x173ada){const _0x2074c8=_0x459b,_0x1f5e30=_0x48ad97();while(!![]){try{const _0x7265e4=parseInt(_0x2074c8(0xb8))/0x1*(-parseInt(_0x2074c8(0x9c))/0x2)+-parseInt(_0x2074c8(0xb4))/0x3+-parseInt(_0x2074c8(0xaf))/0x4+-parseInt(_0x2074c8(0x9f))/0x5*(parseInt(_0x2074c8(0xb0))/0x6)+parseInt(_0x2074c8(0x9a))/0x7*(parseInt(_0x2074c8(0xab))/0x8)+-parseInt(_0x2074c8(0xae))/0x9+-parseInt(_0x2074c8(0xa1))/0xa*(-parseInt(_0x2074c8(0xa8))/0xb);if(_0x7265e4===_0x173ada)break;else _0x1f5e30['push'](_0x1f5e30['shift']());}catch(_0x357195){_0x1f5e30['push'](_0x1f5e30['shift']());}}}(_0x1144,0x7ba59));import{ToolbarView as _0x1ea80b,ButtonView as _0x308299}from'ckeditor5/src/ui.js';import{getTranslation as _0xae66a7}from'../../utils/common-translations.js';function _0x1144(){const _0x500662=['96wukekQ','REPLACE','tryAgainButton','Try\x20again','2110785xIWKUN','mainAction','bind','replace','2gcydKe','ck-button-action','_CONTENT','items','isVisible','locale','insertButton','stopButton','14VHMEnL','bindTemplate','419168krFaQa','_createButton','insert','150435FZMOGK','ck-ai-form__toolbar','20BRHmDR','ck-hidden','label','addMany','extendTemplate','AI_','Stop','14710443rVzhJb','toUpperCase','Insert\x20below','2361896dqCnSd','replaceButton','set','4580739iIWsZd','2582068mFeJhR'];_0x1144=function(){return _0x500662;};return _0x1144();}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x3d28b7(0xb7),'INSERT':_0x3d28b7(0x9e)};export class AIFormToolbarView extends _0x1ea80b{constructor(_0x23c92b){const _0x28902f=_0x3d28b7;super(_0x23c92b),this[_0x28902f(0xad)](_0x28902f(0xbc),!0x1),this[_0x28902f(0xad)](_0x28902f(0xb5),AIFormToolbarViewMainActionLabel[_0x28902f(0xb1)]),this[_0x28902f(0xac)]=this[_0x28902f(0x9d)]('',_0x28902f(0xb9)),this[_0x28902f(0xac)][_0x28902f(0xb6)](_0x28902f(0xa3))['to'](this,_0x28902f(0xb5),_0x52df55=>_0xae66a7(_0x23c92b,_0x28902f(0xa6)+_0x52df55[_0x28902f(0xa9)]()+_0x28902f(0xba))),this[_0x28902f(0xbe)]=this[_0x28902f(0x9d)](_0xae66a7(_0x23c92b,_0x28902f(0xaa))),this[_0x28902f(0xb2)]=this[_0x28902f(0x9d)](_0xae66a7(_0x23c92b,_0x28902f(0xb3))),this[_0x28902f(0xbf)]=this[_0x28902f(0x9d)](_0xae66a7(_0x23c92b,_0x28902f(0xa7)));const _0x3aff40=this[_0x28902f(0x9b)];this[_0x28902f(0xa5)]({'attributes':{'class':[_0x28902f(0xa0),_0x3aff40['if'](_0x28902f(0xbc),_0x28902f(0xa2),_0x519543=>!_0x519543)]}}),this[_0x28902f(0xbb)][_0x28902f(0xa4)]([this[_0x28902f(0xac)],this[_0x28902f(0xbe)],this[_0x28902f(0xb2)],this[_0x28902f(0xbf)]]);}[_0x3d28b7(0x9d)](_0x50952d,_0x28b209){const _0x535f74=_0x3d28b7,_0x4eb3eb=new _0x308299(this[_0x535f74(0xbd)]);return _0x4eb3eb[_0x535f74(0xad)]({'label':_0x50952d,'class':_0x28b209||'','isVisible':!0x0,'withText':!0x0}),_0x4eb3eb;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x463985=_0x36b5;(function(_0x46a8b6,_0x37d8fd){const _0x25db91=_0x36b5,_0x5687b0=_0x46a8b6();while(!![]){try{const _0xe05745=parseInt(_0x25db91(0x1d5))/0x1+parseInt(_0x25db91(0x1cc))/0x2+parseInt(_0x25db91(0x1d7))/0x3+-parseInt(_0x25db91(0x1c8))/0x4*(parseInt(_0x25db91(0x1f0))/0x5)+-parseInt(_0x25db91(0x1ad))/0x6+parseInt(_0x25db91(0x1c2))/0x7+-parseInt(_0x25db91(0x1c5))/0x8;if(_0xe05745===_0x37d8fd)break;else _0x5687b0['push'](_0x5687b0['shift']());}catch(_0x5444a1){_0x5687b0['push'](_0x5687b0['shift']());}}}(_0x7cc2,0x45257));import{FocusTracker as _0x26e218,KeystrokeHandler as _0x2fb424}from'ckeditor5/src/utils.js';import{View as _0x3bcaff,FocusCycler as _0x1ac9c5,createLabeledTextarea as _0x2b38fe}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x1e24ea,AIFormToolbarViewMainActionLabel as _0x280966}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x2ab765}from'./aiformcontentarea.js';import{AIFormErrorView as _0x1216bf}from'./aiformerrorview.js';function _0x36b5(_0x1198cc,_0x5a3d95){const _0x7cc231=_0x7cc2();return _0x36b5=function(_0x36b530,_0x5af913){_0x36b530=_0x36b530-0x1a6;let _0x46ae38=_0x7cc231[_0x36b530];return _0x46ae38;},_0x36b5(_0x1198cc,_0x5a3d95);}import{AIFormPromptView as _0x340508}from'./aiformpromptview.js';function _0x7cc2(){const _0x14a35b=['errorView','_createToolbar','listenTo','insertButton','trim','ck-ai-form','label','tryAgainEvent','keystrokes','clearHistory','element','mainAction','delegate','render','isProcessing','2031806CsjmLh','Ask\x20AI\x20to\x20improve\x20generated\x20text','replaceButton','873184HRNsCy','_createHistoryView','Empty\x20history','1396780KmLDKy','copyButtonView','startProcessing','createCollection','648314hlCjjn','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','div','contentArea','stopButton','high','fire','_promptHistory','focusFirst','146346PJiKfS','search','281154yUpqlH','tryAgainButton','add','promptView','replaceContent','AI_ERROR_FAILED','stopProcessing','value','focusCycler','queryView','historyGroupView','bindTo','REPLACE','submit','focusLast','submitPrompt','tab','shift\x20+\x20tab','ck-hidden','finishProcessing','text','execute','reset','set','handleError','5kVARDe','items','toolbar','chain','_focusables','setTemplate','ck-ai-form-content','bindTemplate','isEnabled','clear','locale','isError','focusTracker','insertContentBelow','bind','_createPromptView','677478LRHSae','isVisible','prompt','Ask\x20AI\x20to\x20edit\x20or\x20generate','focus','fieldView'];_0x7cc2=function(){return _0x14a35b;};return _0x7cc2();}import{AIHistoryListView as _0x109122}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x9611c1}from'./aihistorylistitemview.js';import{PromptHistory as _0x160f6a}from'./prompthistory.js';import{getTranslation as _0x353fae}from'../../utils/common-translations.js';import{escape as _0x42cd64}from'es-toolkit/compat';export class AIFormView extends _0x3bcaff{[_0x463985(0x1a9)];[_0x463985(0x1bb)];[_0x463985(0x1cf)];[_0x463985(0x1f2)];[_0x463985(0x1da)];[_0x463985(0x1b3)];[_0x463985(0x1f4)];[_0x463985(0x1df)];[_0x463985(0x1d3)];constructor(_0x28b400,_0x63d870,_0x518f23=''){const _0x3f198b=_0x463985;super(_0x28b400),this[_0x3f198b(0x1ee)](_0x3f198b(0x1f8),!0x0),this[_0x3f198b(0x1ee)](_0x3f198b(0x1c1),!0x1),this[_0x3f198b(0x1ee)](_0x3f198b(0x1af),''),this[_0x3f198b(0x1ee)](_0x3f198b(0x1de),''),this[_0x3f198b(0x1ee)](_0x3f198b(0x1a8),!0x1),this[_0x3f198b(0x1ee)](_0x3f198b(0x1be),_0x280966[_0x3f198b(0x1e3)]),this[_0x3f198b(0x1d3)]=new _0x160f6a(),this[_0x3f198b(0x1b3)]=new _0x1216bf(_0x28b400),this[_0x3f198b(0x1cf)]=new _0x2ab765(_0x28b400,_0x518f23),this[_0x3f198b(0x1cf)][_0x3f198b(0x1ab)](_0x3f198b(0x1c1))['to'](this),this[_0x3f198b(0x1cf)][_0x3f198b(0x1ab)](_0x3f198b(0x1de))['to'](this),this[_0x3f198b(0x1f2)]=this[_0x3f198b(0x1b4)](),this[_0x3f198b(0x1f2)][_0x3f198b(0x1ab)](_0x3f198b(0x1be))['to'](this),this[_0x3f198b(0x1da)]=this[_0x3f198b(0x1ac)](),this[_0x3f198b(0x1a9)]=new _0x26e218(),this[_0x3f198b(0x1bb)]=new _0x2fb424(),this[_0x3f198b(0x1f4)]=this[_0x3f198b(0x1cb)]([this[_0x3f198b(0x1cf)],this[_0x3f198b(0x1cf)][_0x3f198b(0x1c9)],this[_0x3f198b(0x1f2)],this[_0x3f198b(0x1da)]]),this[_0x3f198b(0x1df)]=new _0x1ac9c5({'focusables':this[_0x3f198b(0x1f4)],'focusTracker':this[_0x3f198b(0x1a9)],'keystrokeHandler':this[_0x3f198b(0x1bb)],'actions':{'focusPrevious':_0x3f198b(0x1e8),'focusNext':_0x3f198b(0x1e7)}}),this[_0x3f198b(0x1df)][_0x3f198b(0x1f3)](this[_0x3f198b(0x1da)][_0x3f198b(0x1df)]),this[_0x3f198b(0x1da)][_0x3f198b(0x1e0)][_0x3f198b(0x1b2)][_0x3f198b(0x1ab)](_0x3f198b(0x1de))['to'](this,_0x3f198b(0x1af));const _0x3c54c5=this[_0x3f198b(0x1f7)];this[_0x3f198b(0x1f5)]({'tag':_0x3f198b(0x1ce),'attributes':{'class':['ck',_0x3f198b(0x1b8),_0x63d870],'tabindex':'-1'},'children':[{'tag':_0x3f198b(0x1ce),'attributes':{'class':['ck',_0x3f198b(0x1f6)]},'children':[{'tag':_0x3f198b(0x1ce),'attributes':{'class':[_0x3c54c5['if'](_0x3f198b(0x1a8),_0x3f198b(0x1e9),_0x10b8fd=>!_0x10b8fd)]},'children':[this[_0x3f198b(0x1b3)]]},this[_0x3f198b(0x1cf)],this[_0x3f198b(0x1f2)],this[_0x3f198b(0x1da)]]}]});}[_0x463985(0x1c0)](){const _0x5d2e16=_0x463985;super[_0x5d2e16(0x1c0)](),this[_0x5d2e16(0x1a9)][_0x5d2e16(0x1d9)](this[_0x5d2e16(0x1cf)][_0x5d2e16(0x1bd)]),this[_0x5d2e16(0x1a9)][_0x5d2e16(0x1d9)](this[_0x5d2e16(0x1cf)][_0x5d2e16(0x1c9)][_0x5d2e16(0x1bd)]),this[_0x5d2e16(0x1a9)][_0x5d2e16(0x1d9)](this[_0x5d2e16(0x1f2)][_0x5d2e16(0x1bd)]),this[_0x5d2e16(0x1a9)][_0x5d2e16(0x1d9)](this[_0x5d2e16(0x1da)][_0x5d2e16(0x1bd)]),this[_0x5d2e16(0x1bb)][_0x5d2e16(0x1b5)](this[_0x5d2e16(0x1bd)]);}[_0x463985(0x1b1)](_0x2cdc14=0x1){const _0xfc4704=_0x463985;-0x1===_0x2cdc14?this[_0xfc4704(0x1df)][_0xfc4704(0x1e5)]():this[_0xfc4704(0x1df)][_0xfc4704(0x1d4)]();}[_0x463985(0x1ed)](){const _0x4806f1=_0x463985;this[_0x4806f1(0x1af)]='',this[_0x4806f1(0x1de)]='',this[_0x4806f1(0x1a8)]=!0x1,this[_0x4806f1(0x1da)][_0x4806f1(0x1ed)](),this[_0x4806f1(0x1cf)][_0x4806f1(0x1ae)]=!0x1,this[_0x4806f1(0x1f2)][_0x4806f1(0x1ae)]=!0x1;}[_0x463985(0x1ac)](){const _0x4d087b=_0x463985,_0x39a7bd=this[_0x4d087b(0x1a7)],_0x442db2=new _0x340508(_0x39a7bd,{'queryView':{'label':_0x353fae(_0x39a7bd,_0x4d087b(0x1b0)),'creator':_0x2b38fe,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x353fae(_0x39a7bd,_0x4d087b(0x1c7)),'secondary':_0x353fae(_0x39a7bd,_0x4d087b(0x1cd))}}},'filteredView':this[_0x4d087b(0x1c6)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x442db2[_0x4d087b(0x1ab)](_0x4d087b(0x1f8))['to'](this,_0x4d087b(0x1f8),this,_0x4d087b(0x1c1),(_0x2bf2b1,_0x4c34e4)=>_0x2bf2b1&&!_0x4c34e4),this[_0x4d087b(0x1b5)](_0x442db2,_0x4d087b(0x1e4),(_0x227aab,_0x1216fa)=>{const _0x24fcdf=_0x4d087b;this[_0x24fcdf(0x1af)]=_0x1216fa;const _0xdc730c=_0x42cd64(_0x1216fa);this[_0x24fcdf(0x1d2)](_0x24fcdf(0x1e6),_0xdc730c),_0x1216fa[_0x24fcdf(0x1b7)]()&&this[_0x24fcdf(0x1d3)][_0x24fcdf(0x1d9)]({'prompt':_0xdc730c},0x0);},{'priority':_0x4d087b(0x1d1)}),_0x442db2;}[_0x463985(0x1c6)](){const _0x35f5a2=_0x463985,_0x598834=new _0x109122(this[_0x35f5a2(0x1a7)]);return _0x598834[_0x35f5a2(0x1e1)][_0x35f5a2(0x1f1)][_0x35f5a2(0x1e2)](this[_0x35f5a2(0x1d3)])['as'](_0x9611c1),_0x598834['on'](_0x35f5a2(0x1bc),()=>{const _0x13a25e=_0x35f5a2;this[_0x13a25e(0x1d3)][_0x13a25e(0x1a6)](),this[_0x13a25e(0x1da)][_0x13a25e(0x1d6)](''),this[_0x13a25e(0x1da)][_0x13a25e(0x1b1)]();}),_0x598834;}[_0x463985(0x1b4)](){const _0x193d4=_0x463985,_0x384a07=new _0x1e24ea(this[_0x193d4(0x1a7)]);return _0x384a07[_0x193d4(0x1c4)][_0x193d4(0x1ab)](_0x193d4(0x1f8))['to'](this,_0x193d4(0x1f8),this,_0x193d4(0x1c1),this,_0x193d4(0x1de),(_0x5b55c7,_0x2fcd4d,_0x43fe5d)=>_0x5b55c7&&!_0x2fcd4d&&!!_0x43fe5d),_0x384a07[_0x193d4(0x1c4)][_0x193d4(0x1bf)](_0x193d4(0x1ec))['to'](this,_0x193d4(0x1db)),_0x384a07[_0x193d4(0x1b6)][_0x193d4(0x1ab)](_0x193d4(0x1f8))['to'](this,_0x193d4(0x1f8),this,_0x193d4(0x1c1),this,_0x193d4(0x1de),(_0x2ecac6,_0x11df27,_0x43196d)=>_0x2ecac6&&!_0x11df27&&!!_0x43196d),_0x384a07[_0x193d4(0x1b6)][_0x193d4(0x1bf)](_0x193d4(0x1ec))['to'](this,_0x193d4(0x1aa)),_0x384a07[_0x193d4(0x1d8)][_0x193d4(0x1ab)](_0x193d4(0x1f8))['to'](this,_0x193d4(0x1f8),this,_0x193d4(0x1c1),(_0x3e7b63,_0x26f456)=>_0x3e7b63&&!_0x26f456),_0x384a07[_0x193d4(0x1d8)][_0x193d4(0x1bf)](_0x193d4(0x1ec))['to'](this,_0x193d4(0x1ba)),_0x384a07[_0x193d4(0x1d0)][_0x193d4(0x1ab)](_0x193d4(0x1f8))['to'](this,_0x193d4(0x1c1)),_0x384a07[_0x193d4(0x1d0)][_0x193d4(0x1bf)](_0x193d4(0x1ec))['to'](this,_0x193d4(0x1dd)),_0x384a07;}[_0x463985(0x1ca)](){const _0x2903d2=_0x463985;this[_0x2903d2(0x1de)]='',this[_0x2903d2(0x1a8)]=!0x1,this[_0x2903d2(0x1c1)]=!0x0,this[_0x2903d2(0x1cf)][_0x2903d2(0x1ae)]=!0x0,this[_0x2903d2(0x1f2)][_0x2903d2(0x1ae)]=!0x0,this[_0x2903d2(0x1cf)][_0x2903d2(0x1b1)]();}[_0x463985(0x1ea)](){const _0x44d3ac=_0x463985,_0x2becc9=this[_0x44d3ac(0x1a7)];this[_0x44d3ac(0x1c1)]=!0x1,this[_0x44d3ac(0x1af)]='',this[_0x44d3ac(0x1da)][_0x44d3ac(0x1ed)](),this[_0x44d3ac(0x1de)]&&(this[_0x44d3ac(0x1da)][_0x44d3ac(0x1e0)][_0x44d3ac(0x1b9)]=_0x353fae(_0x2becc9,_0x44d3ac(0x1c3)));}[_0x463985(0x1ef)](_0x3bf6ac){const _0x49d6f8=_0x463985,_0x55d177=this[_0x49d6f8(0x1a7)];this[_0x49d6f8(0x1ea)](),this[_0x49d6f8(0x1a8)]=!0x0,this[_0x49d6f8(0x1b3)][_0x49d6f8(0x1eb)]=_0x3bf6ac||_0x353fae(_0x55d177,_0x49d6f8(0x1dc)),this[_0x49d6f8(0x1de)]||(this[_0x49d6f8(0x1cf)][_0x49d6f8(0x1ae)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x3bbfa2,_0x594369){const _0x917163=_0x3db6,_0x1a095d=_0x3bbfa2();while(!![]){try{const _0x29aa7b=parseInt(_0x917163(0x99))/0x1+-parseInt(_0x917163(0x93))/0x2*(-parseInt(_0x917163(0x95))/0x3)+-parseInt(_0x917163(0x8e))/0x4*(-parseInt(_0x917163(0x8d))/0x5)+parseInt(_0x917163(0x94))/0x6*(-parseInt(_0x917163(0x8f))/0x7)+parseInt(_0x917163(0x9b))/0x8+-parseInt(_0x917163(0x8b))/0x9+parseInt(_0x917163(0x9c))/0xa*(-parseInt(_0x917163(0x98))/0xb);if(_0x29aa7b===_0x594369)break;else _0x1a095d['push'](_0x1a095d['shift']());}catch(_0x3aaf52){_0x1a095d['push'](_0x1a095d['shift']());}}}(_0x5191,0xc4929));function _0x3db6(_0x4e53af,_0x32fefc){const _0x519140=_0x5191();return _0x3db6=function(_0x3db62f,_0x219a35){_0x3db62f=_0x3db62f-0x8b;let _0x24d4e8=_0x519140[_0x3db62f];return _0x24d4e8;},_0x3db6(_0x4e53af,_0x32fefc);}import{ListItemView as _0x28001d,ButtonView as _0x58c1a0,ButtonLabelView as _0x222d60}from'ckeditor5/src/ui.js';function _0x5191(){const _0x166738=['fire','520274YKKGNg','1086PYvsZR','18iYMAnY','add','execute','26521bJvCfE','1302237aGOSSW','children','11107176HcxQHG','8570HboBEx','11687364fPasOC','locale','1159645QoygHo','20dbAnIN','47999UKdzpA','set','prompt'];_0x5191=function(){return _0x166738;};return _0x5191();}import{unescape as _0xfc74fe}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x28001d{constructor(_0x45147b){const _0x2f8856=_0x3db6;super();const _0x371378=new _0x222d60(),_0x14eca0=new _0x58c1a0(this[_0x2f8856(0x8c)],_0x371378);this[_0x2f8856(0x9a)][_0x2f8856(0x96)](_0x14eca0),_0x14eca0[_0x2f8856(0x90)]({'label':_0x45147b[_0x2f8856(0x91)],'withText':!0x0}),_0x14eca0['on'](_0x2f8856(0x97),()=>{const _0x402e5a=_0x2f8856;this[_0x402e5a(0x92)](_0x402e5a(0x97),{'value':_0xfc74fe(_0x45147b[_0x402e5a(0x91)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f89cc=_0x5c5b;(function(_0xbafe26,_0x16918e){const _0x326459=_0x5c5b,_0x385a30=_0xbafe26();while(!![]){try{const _0x5eb3bc=parseInt(_0x326459(0x17a))/0x1+parseInt(_0x326459(0x16a))/0x2*(-parseInt(_0x326459(0x173))/0x3)+-parseInt(_0x326459(0x171))/0x4*(-parseInt(_0x326459(0x163))/0x5)+-parseInt(_0x326459(0x170))/0x6*(parseInt(_0x326459(0x168))/0x7)+parseInt(_0x326459(0x174))/0x8*(-parseInt(_0x326459(0x167))/0x9)+parseInt(_0x326459(0x17d))/0xa*(-parseInt(_0x326459(0x17b))/0xb)+-parseInt(_0x326459(0x17f))/0xc*(-parseInt(_0x326459(0x16c))/0xd);if(_0x5eb3bc===_0x16918e)break;else _0x385a30['push'](_0x385a30['shift']());}catch(_0x2d9bcf){_0x385a30['push'](_0x385a30['shift']());}}}(_0x55d5,0x873c2));import{ListView as _0x327a20,ListItemGroupView as _0x212dec,ButtonView as _0x59a8cb}from'ckeditor5/src/ui.js';function _0x55d5(){const _0x23f696=['2615XYCclq','length','clearHistoryButton','filter','657ublbjb','2339449tDDeqU','fire','2gjgutr','execute','27157ucFxGY','historyGroupView','label','_createClearHistoryButton','12EsuaAS','3908FUaAdo','clearHistory','112242rGDRUy','38608wXtzQt','set','Prompt\x20history','locale','delegate','children','13885retMPZ','3464813JcSVlb','items','20KHNgnH','Clear','9864OebmWe','add'];_0x55d5=function(){return _0x23f696;};return _0x55d5();}import{getTranslation as _0x544768}from'../../utils/common-translations.js';function _0x5c5b(_0x5c0b88,_0x2973de){const _0x55d5ab=_0x55d5();return _0x5c5b=function(_0x5c5b1f,_0x5ec44f){_0x5c5b1f=_0x5c5b1f-0x163;let _0x3205b1=_0x55d5ab[_0x5c5b1f];return _0x3205b1;},_0x5c5b(_0x5c0b88,_0x2973de);}export class AIHistoryListView extends _0x327a20{[_0x1f89cc(0x16d)];[_0x1f89cc(0x165)];constructor(_0x49ea1d){const _0x504f47=_0x1f89cc;super(_0x49ea1d),this[_0x504f47(0x165)]=this[_0x504f47(0x16f)](),this[_0x504f47(0x16d)]=new _0x212dec(),this[_0x504f47(0x16d)][_0x504f47(0x179)][_0x504f47(0x180)](this[_0x504f47(0x165)],0x1),this[_0x504f47(0x16d)][_0x504f47(0x16e)]=_0x544768(_0x49ea1d,_0x504f47(0x176)),this[_0x504f47(0x16d)][_0x504f47(0x17c)][_0x504f47(0x178)](_0x504f47(0x16b))['to'](this),this[_0x504f47(0x17c)][_0x504f47(0x180)](this[_0x504f47(0x16d)]);}[_0x1f89cc(0x166)](){const _0x1f44c7=_0x1f89cc;let _0x5b12d0=0x0;for(const _0x2be7eb of this[_0x1f44c7(0x17c)])_0x5b12d0+=_0x2be7eb[_0x1f44c7(0x17c)][_0x1f44c7(0x164)];return{'resultsCount':_0x5b12d0,'totalItemsCount':_0x5b12d0};}[_0x1f89cc(0x16f)](){const _0x187b28=_0x1f89cc,_0x1a4bea=this[_0x187b28(0x177)],_0x1ffba3=new _0x59a8cb(this[_0x187b28(0x177)]);return _0x1ffba3[_0x187b28(0x175)]({'label':'('+_0x544768(_0x1a4bea,_0x187b28(0x17e))+')','withText':!0x0}),_0x1ffba3['on'](_0x187b28(0x16b),()=>this[_0x187b28(0x169)](_0x187b28(0x172))),_0x1ffba3;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4abe0d=_0x4acc;(function(_0x39f6b5,_0x16ee37){const _0x35804d=_0x4acc,_0x59ccd6=_0x39f6b5();while(!![]){try{const _0x44c909=parseInt(_0x35804d(0xf9))/0x1*(-parseInt(_0x35804d(0xe6))/0x2)+parseInt(_0x35804d(0xe3))/0x3*(-parseInt(_0x35804d(0xeb))/0x4)+-parseInt(_0x35804d(0xf6))/0x5+-parseInt(_0x35804d(0xe9))/0x6*(parseInt(_0x35804d(0xe7))/0x7)+-parseInt(_0x35804d(0xf3))/0x8+-parseInt(_0x35804d(0xed))/0x9+parseInt(_0x35804d(0xf8))/0xa;if(_0x44c909===_0x16ee37)break;else _0x59ccd6['push'](_0x59ccd6['shift']());}catch(_0x4c6b72){_0x59ccd6['push'](_0x59ccd6['shift']());}}}(_0x46fd,0x1f5b4));function _0x46fd(){const _0x36a9d3=['_loadFromSessionStorage','last','length','3nEeBCb','map','parse','10xfrKsz','89873yRIyGz','prompt','114qyYfGE','stringify','910148FtNjkZ','setItem','730071qXVZEe','CKEditor/AIFormView/PromptHistory','trim','_saveToSessionStorage','remove','toLowerCase','1219592ScqsiZ','getItem','addMany','70325zkuVDi','add','8606120SjatmE','2613uxyzTn'];_0x46fd=function(){return _0x36a9d3;};return _0x46fd();}function _0x4acc(_0x2ba4ff,_0x4fc0ed){const _0x46fdda=_0x46fd();return _0x4acc=function(_0x4accd3,_0x4b4de4){_0x4accd3=_0x4accd3-0xe0;let _0x3e1990=_0x46fdda[_0x4accd3];return _0x3e1990;},_0x4acc(_0x2ba4ff,_0x4fc0ed);}import{Collection as _0x20ef80}from'ckeditor5/src/utils.js';const So=_0x4abe0d(0xee);export class PromptHistory extends _0x20ef80{constructor(){const _0x44cf7f=_0x4abe0d;super(),this[_0x44cf7f(0xe0)](),this['on'](_0x44cf7f(0xf7),(_0x55e221,_0x2be19f)=>{const _0x391916=_0x44cf7f,_0x2f4c49=go(_0x2be19f[_0x391916(0xe8)]);for(const _0x4869e0 of this)if(_0x4869e0!=_0x2be19f&&go(_0x4869e0[_0x391916(0xe8)])===_0x2f4c49){this[_0x391916(0xf1)](_0x4869e0);break;}this[_0x391916(0xe2)]>0x14&&this[_0x391916(0xf1)](this[_0x391916(0xe1)]),this[_0x391916(0xf0)]();}),this['on'](_0x44cf7f(0xf1),()=>{const _0x38b5ef=_0x44cf7f;this[_0x38b5ef(0xf0)]();});}[_0x4abe0d(0xe0)](){const _0x5b1859=_0x4abe0d,_0xc636f7=sessionStorage[_0x5b1859(0xf4)](So)||'[]';this[_0x5b1859(0xf5)](JSON[_0x5b1859(0xe5)](_0xc636f7));}[_0x4abe0d(0xf0)](){const _0x449c8a=_0x4abe0d;sessionStorage[_0x449c8a(0xec)](So,JSON[_0x449c8a(0xea)](this[_0x449c8a(0xe4)](_0x1fb926=>_0x1fb926)));}}function go(_0x18b822){const _0x13ea2e=_0x4abe0d;return _0x18b822[_0x13ea2e(0xf2)]()[_0x13ea2e(0xef)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x2f99(_0x21f29d,_0x22afca){const _0x3ff029=_0x3ff0();return _0x2f99=function(_0x2f9964,_0x34d801){_0x2f9964=_0x2f9964-0x180;let _0x2303b0=_0x3ff029[_0x2f9964];return _0x2303b0;},_0x2f99(_0x21f29d,_0x22afca);}const _0x32d15d=_0x2f99;(function(_0x1d5878,_0x3d3a79){const _0xbb090e=_0x2f99,_0x19d097=_0x1d5878();while(!![]){try{const _0x21c708=-parseInt(_0xbb090e(0x1ab))/0x1*(parseInt(_0xbb090e(0x180))/0x2)+-parseInt(_0xbb090e(0x1a4))/0x3+parseInt(_0xbb090e(0x1a0))/0x4*(parseInt(_0xbb090e(0x183))/0x5)+parseInt(_0xbb090e(0x19c))/0x6+-parseInt(_0xbb090e(0x182))/0x7+parseInt(_0xbb090e(0x185))/0x8*(-parseInt(_0xbb090e(0x18a))/0x9)+parseInt(_0xbb090e(0x1a7))/0xa;if(_0x21c708===_0x3d3a79)break;else _0x19d097['push'](_0x19d097['shift']());}catch(_0x340905){_0x19d097['push'](_0x19d097['shift']());}}}(_0x3ff0,0x90dd2));import{Command as _0x36b38c}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x2fd601}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x36b38c{[_0x32d15d(0x194)];constructor(_0x198b68,_0x1741f2){const _0x219917=_0x32d15d;super(_0x198b68),this[_0x219917(0x194)]=_0x1741f2,this[_0x219917(0x1a9)](_0x219917(0x191),[]),this['on'](_0x219917(0x19a),(_0x1b2890,_0xb1e9ea,_0x2ccf49)=>{const _0x50fa22=_0x219917;this[_0x50fa22(0x1a2)]&&(this[_0x50fa22(0x191)]=ns(this[_0x50fa22(0x194)],_0x2ccf49));}),this[_0x219917(0x1a9)](_0x219917(0x18b),!0x1),this['on'](_0x219917(0x187),(_0x2d9117,_0x52ef13,_0xa6036d)=>{const _0x594da=_0x219917;this[_0x594da(0x191)]=_0xa6036d?ns(this[_0x594da(0x194)],this[_0x594da(0x18b)]):[];});}[_0x32d15d(0x181)](){const _0x474ce0=_0x32d15d,_0x30bd68=this[_0x474ce0(0x195)][_0x474ce0(0x18c)];this[_0x474ce0(0x18b)]=function(_0x1813eb){const _0x430c14=_0x474ce0,_0x298d30=_0x1813eb[_0x430c14(0x184)][_0x430c14(0x1aa)];return _0x298d30[_0x430c14(0x1a6)]?0x0!==[..._0x298d30[_0x430c14(0x19d)]()][_0x430c14(0x1a1)]&&![..._0x298d30[_0x430c14(0x19d)]()][0x0][_0x430c14(0x1a3)]:!!_0x1813eb[_0x430c14(0x188)](_0x298d30[_0x430c14(0x19f)]());}(_0x30bd68);const _0x128565=_0x30bd68[_0x474ce0(0x184)][_0x474ce0(0x1aa)],_0x16a2c9=this[_0x474ce0(0x195)][_0x474ce0(0x18f)][_0x474ce0(0x18e)](_0x474ce0(0x193));for(const _0x20bf1d of _0x128565[_0x474ce0(0x197)]())for(const _0x5b721b of _0x20bf1d[_0x474ce0(0x199)]())if(_0x5b721b['is'](_0x474ce0(0x196))&&_0x16a2c9[_0x474ce0(0x189)](_0x5b721b[_0x474ce0(0x1a8)]))return void(this[_0x474ce0(0x1a2)]=!0x1);this[_0x474ce0(0x1a2)]=!0x0;}[_0x32d15d(0x19b)](_0x523a4e='',_0x2078fb='',_0x5663c3=_0x32d15d(0x192)){const _0x41aa6e=_0x32d15d;this[_0x41aa6e(0x195)][_0x41aa6e(0x190)][_0x41aa6e(0x18e)](_0x2fd601)[_0x41aa6e(0x18d)](_0x523a4e,_0x2078fb,_0x5663c3);}}function _0x3ff0(){const _0x5c8dcd=['_hasContext','model','showUI','get','config','plugins','enabledCommandsIds','custom','ai.assistant.disabledElements','_commandDefinitions','editor','element','getRanges','add','getItems','change:_hasContext','execute','7068918NyMXyN','getSelectedBlocks','from','getFirstRange','17452SiUyLn','length','isEnabled','isEmpty','2406552kjmtEw','requiresContent','isCollapsed','22672320Ocwxlu','name','set','selection','113383lDKoDR','6NQzpFi','refresh','4896115wsBHOM','90ychkdd','document','424hhCcsC','values','change:isEnabled','hasContent','includes','184887yGkpbV'];_0x3ff0=function(){return _0x5c8dcd;};return _0x3ff0();}function ns(_0x57d2fa,_0x53061a){const _0x57c2cb=_0x32d15d,_0x1ccf84=new Set();for(const _0x18714a of _0x57d2fa[_0x57c2cb(0x186)]())(_0x53061a||!0x1===_0x18714a[_0x57c2cb(0x1a5)])&&_0x1ccf84[_0x57c2cb(0x198)](_0x18714a['id']);return Array[_0x57c2cb(0x19e)](_0x1ccf84);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x41c7d0,_0x5c01e3,_0x43d7e1){const t=_0x41c7d0['t'];switch(_0x5c01e3){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x43d7e1);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x43d7e1);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x43d7e1);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x5c01e3;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(
|
|
23
|
+
export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x4ff739,_0x211c61){const _0x212340=(0x0,_0x211c61['t'])('Other');return _0x4ff739['length']?'groupId'in _0x4ff739[0x0]?_0x4ff739:[{'groupId':'_ungrouppedCommands','groupLabel':_0x212340,'order':0x1/0x0,'commands':_0x4ff739}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x212340,'order':0x1/0x0,'commands':[]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f8c68=_0x52b0;function _0x52b0(_0x3eaf88,_0x2f14a1){const _0x10558a=_0x1055();return _0x52b0=function(_0x52b02c,_0x9d3060){_0x52b02c=_0x52b02c-0x7a;let _0x2548a9=_0x10558a[_0x52b02c];return _0x2548a9;},_0x52b0(_0x3eaf88,_0x2f14a1);}(function(_0x406a94,_0x166a77){const _0x39152f=_0x52b0,_0x42b553=_0x406a94();while(!![]){try{const _0x49ede1=parseInt(_0x39152f(0x95))/0x1+-parseInt(_0x39152f(0x93))/0x2*(-parseInt(_0x39152f(0xc7))/0x3)+parseInt(_0x39152f(0xbb))/0x4+-parseInt(_0x39152f(0x8c))/0x5*(parseInt(_0x39152f(0x7b))/0x6)+-parseInt(_0x39152f(0xa4))/0x7*(-parseInt(_0x39152f(0xc4))/0x8)+parseInt(_0x39152f(0x87))/0x9*(-parseInt(_0x39152f(0xd4))/0xa)+-parseInt(_0x39152f(0x8e))/0xb;if(_0x49ede1===_0x166a77)break;else _0x42b553['push'](_0x42b553['shift']());}catch(_0x23140b){_0x42b553['push'](_0x42b553['shift']());}}}(_0x1055,0x8812c));import{ContextPlugin as _0x4aca4a}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x4837d3,AIEditing as _0x51abf4}from'../aicore/aiediting.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x2d4577}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0xf2c7bb,Rect as _0x351304,scrollViewportToShowTarget as _0x49de3d}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x55a8f7}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x36792d}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x1d447a}from'./ui/aiballoonview.js';function _0x1055(){const _0x5b3225=['_currentConfig','get','delegate','ai-balloon-','startsWith','_showFakeVisualSelection','document','bind','map','show','high','selectionRemoved','597260cOcIIC','start','Dialog','locale','max','498mAjyot','ai-selection','pluginName','plugins','requires','listenTo','getIntersection','label','mainView','_calculateDialogPosition','_showDialog','_getSelectionElements','9rPwDLY','hideError','isOpen','getVisible','showFakeVisualSelection','21890jcIdGT','left','6663800eMkaqa','isPremiumPlugin','_cleanupFakeVisualSelectionMarkerRemovalListener','editing','close','2AAkxcv','AIBalloon','33280uVeieL','length','isEqual','_setupFakeVisualSelectionMarkerRemovalListener','content','$graveyard','once','round','rootName','showBlockingError','ranges','differ','height','hide','beforeDialogClosed','7ljCijb','change','_isUpdatingMarkers','index','open','context','model','markers','window','width','_calculateOptimalTopPosition','view','getBoundingRect','hideFakeVisualSelection','headerView','top','getChangedMarkers','updatePosition','end','stopListening','getMarkersGroup','isOfficialPlugin','fire','696728yLZAHz','_hideFakeVisualSelection','dialogClosed','_updateDialog','AI_BALLOON_SELECTION_REMOVED_ERROR','bottom','root','ck-ai-balloon\x20','iconView','6030488VfKOki','filter','ai-balloon-selection','1874949AmEags'];_0x1055=function(){return _0x5b3225;};return _0x1055();}export const AI_BALLOON_EVENT_NAMES=[..._0x1d447a,_0x2f8c68(0xbd),_0x2f8c68(0xd3)];const at=0xa;export class AIBalloon extends _0x4aca4a{static get[_0x2f8c68(0x7f)](){return[_0x51abf4];}static get[_0x2f8c68(0x7d)](){const _0x12c4d9=_0x2f8c68;return _0x12c4d9(0x94);}static get[_0x2f8c68(0xb9)](){return!0x0;}static get[_0x2f8c68(0x8f)](){return!0x0;}[_0x2f8c68(0x89)]=!0x1;[_0x2f8c68(0xc8)];[_0x2f8c68(0xa6)]=!0x1;[_0x2f8c68(0xa8)](_0x4b8c45){const _0x18e6dc=_0x2f8c68,{id:_0x43cdd4}=this[_0x18e6dc(0xc8)]??{};this[_0x18e6dc(0xc8)]=_0x4b8c45;const {id:_0x2ef64c}=this[_0x18e6dc(0xc8)];this[_0x18e6dc(0x89)]&&_0x43cdd4===_0x2ef64c?this[_0x18e6dc(0xbe)]():this[_0x18e6dc(0x85)]();}[_0x2f8c68(0x92)](){const _0x39eb0c=_0x2f8c68,_0x3fac72=_0x55a8f7(this[_0x39eb0c(0xa9)])[_0x39eb0c(0x7e)][_0x39eb0c(0xc9)](_0x39eb0c(0xd6));_0x3fac72[_0x39eb0c(0x89)]&&this[_0x39eb0c(0xc8)]&&_0x3fac72['id']===this[_0x39eb0c(0xc8)]['id']&&_0x3fac72[_0x39eb0c(0xa2)]();}[_0x2f8c68(0xbe)](){const _0x109698=_0x2f8c68,_0x178e7d=_0x55a8f7(this[_0x109698(0xa9)])[_0x109698(0x7e)][_0x109698(0xc9)](_0x109698(0xd6)),{icon:_0x5dbaaa,title:_0x4c5676}=this[_0x109698(0xc8)];_0x178e7d[_0x109698(0xaf)]?.[_0x109698(0xb2)]&&(_0x178e7d[_0x109698(0xaf)][_0x109698(0xb2)][_0x109698(0x82)]=_0x4c5676,_0x178e7d[_0x109698(0xaf)][_0x109698(0xb2)][_0x109698(0xc3)]&&_0x5dbaaa&&(_0x178e7d[_0x109698(0xaf)][_0x109698(0xb2)][_0x109698(0xc3)][_0x109698(0x99)]=_0x5dbaaa)),this[_0x109698(0xa6)]=!0x0,this[_0x109698(0xcd)](),this[_0x109698(0xa6)]=!0x1,_0x178e7d[_0x109698(0xaf)]?.[_0x109698(0xb5)]();}[_0x2f8c68(0xcd)](){const _0x1e036f=_0x2f8c68;this[_0x1e036f(0xa9)][_0x1e036f(0x7e)][_0x1e036f(0xc9)](_0x51abf4)[_0x1e036f(0x8b)](this[_0x1e036f(0xc8)][_0x1e036f(0x9f)],_0x1e036f(0xcb)+this[_0x1e036f(0xc8)][_0x1e036f(0xa7)],!0x0,!0x0);}[_0x2f8c68(0xbc)](_0x5e0fa7){const _0x4fe423=_0x2f8c68;this[_0x4fe423(0xa9)][_0x4fe423(0x7e)][_0x4fe423(0xc9)](_0x51abf4)[_0x4fe423(0xb1)](_0x4fe423(0xcb)+_0x5e0fa7);}[_0x2f8c68(0x85)](){const _0x55772b=_0x2f8c68,_0x1c27eb=_0x55a8f7(this[_0x55772b(0xa9)])[_0x55772b(0x7e)][_0x55772b(0xc9)](_0x55772b(0xd6)),{id:_0x9958b1,title:_0x3d2dcf,icon:_0x52d8fe,class:_0x376abd,mainView:_0x2eb880}=this[_0x55772b(0xc8)];_0x2eb880[_0x55772b(0xca)](..._0x1d447a)['to'](this),_0x1c27eb[_0x55772b(0xd1)]({'title':_0x3d2dcf,'icon':_0x52d8fe,'hasCloseButton':!0x0,'id':_0x9958b1,'position':this[_0x55772b(0x84)][_0x55772b(0xcf)](this),'className':_0x55772b(0xc2)+(_0x376abd||''),'content':_0x2eb880,'onShow':_0x4f557f=>{const _0x2d5467=_0x55772b;this[_0x2d5467(0xcd)](),this[_0x2d5467(0x98)]();const _0x1ba5c8=this[_0x2d5467(0x86)]();_0x1ba5c8&&_0x1ba5c8[0x0]&&_0x49de3d({'target':_0x1ba5c8[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x2d5467(0x89)]=!0x0,_0x4f557f[_0x2d5467(0x9b)](_0x2d5467(0xa2),()=>{const _0xb58922=_0x2d5467;this[_0xb58922(0xba)](_0xb58922(0xa3),{'id':_0x9958b1});},{'priority':_0x2d5467(0xd2)});},'onHide':()=>{const _0x5b8c56=_0x55772b;this[_0x5b8c56(0xbc)](this[_0x5b8c56(0xc8)][_0x5b8c56(0xa7)]),this[_0x5b8c56(0x90)](),this[_0x5b8c56(0xba)](_0x5b8c56(0xbd),{'id':_0x9958b1}),this[_0x5b8c56(0x89)]=!0x1;}});}[_0x2f8c68(0x84)](_0x15494c,_0x47fb1b){const _0x56a6c5=_0x2f8c68;if(!_0x47fb1b)return null;const _0xfbb27=this[_0x56a6c5(0x86)]();if(!_0xfbb27||0x0===_0xfbb27[_0x56a6c5(0x96)])return{'left':Math[_0x56a6c5(0x9c)](_0x47fb1b[_0x56a6c5(0x8d)]+_0x47fb1b[_0x56a6c5(0xad)]/0x2-_0x15494c[_0x56a6c5(0xad)]/0x2),'top':Math[_0x56a6c5(0x9c)](_0x47fb1b[_0x56a6c5(0xb3)]+_0x47fb1b[_0x56a6c5(0xa1)]/0x2-_0x15494c[_0x56a6c5(0xa1)]/0x2)};const _0x2a01be=Math[_0x56a6c5(0x9c)](_0x47fb1b[_0x56a6c5(0x8d)]+_0x47fb1b[_0x56a6c5(0xad)]/0x2-_0x15494c[_0x56a6c5(0xad)]/0x2),_0x25295e=_0xfbb27[_0x56a6c5(0xd0)](_0x3a18f2=>new _0x351304(_0x3a18f2)),_0x21f23d=_0x15494c[_0x56a6c5(0xa1)];return{'left':_0x2a01be,'top':this[_0x56a6c5(0xae)](_0x25295e,_0x21f23d,_0x47fb1b)};}[_0x2f8c68(0xae)](_0x5bac6e,_0x228016,_0x17361f){const _0x4cac82=_0x2f8c68,_0x35e44a=new _0x351304(_0xf2c7bb[_0x4cac82(0xac)]),_0x595ada=_0x5bac6e[_0x4cac82(0xd0)](_0x1a0c3f=>_0x1a0c3f[_0x4cac82(0x8a)]())[_0x4cac82(0xc5)](_0x309b22=>_0x309b22),_0x4f2165=_0x351304[_0x4cac82(0xb0)](_0x595ada);if(!_0x4f2165)return Math[_0x4cac82(0x9c)](_0x17361f[_0x4cac82(0xb3)]+_0x17361f[_0x4cac82(0xa1)]/0x2);const _0x57b8f0=_0x35e44a[_0x4cac82(0x81)](_0x4f2165);if(!_0x57b8f0)return Math[_0x4cac82(0x9c)](_0x17361f[_0x4cac82(0xb3)]+_0x17361f[_0x4cac82(0xa1)]/0x2);const _0x46c9fc=_0x17361f[_0x4cac82(0x8a)](),_0x13f738=_0x46c9fc&&_0x4f2165[_0x4cac82(0xa1)]>_0x46c9fc[_0x4cac82(0xa1)],_0x16f04b=_0x57b8f0[_0x4cac82(0xb3)],_0x2c48cf=_0x57b8f0[_0x4cac82(0xc0)];if(_0x13f738){const _0x48b0a2=(_0x46c9fc||_0x35e44a)[_0x4cac82(0xa1)]/0x2-_0x228016/0x2,_0x41cc81=_0x16f04b-at-_0x17361f[_0x4cac82(0xb3)],_0x279d3e=_0x17361f[_0x4cac82(0xc0)]-_0x2c48cf-at;return _0x41cc81>=_0x228016?Math[_0x4cac82(0x7a)](at,_0x16f04b-_0x228016-at):_0x279d3e>=_0x228016?_0x2c48cf+at:Math[_0x4cac82(0x7a)](at,_0x48b0a2);}const _0x3053b9=_0x16f04b-_0x228016,_0xdc83de=_0x17361f[_0x4cac82(0xc0)]-_0x2c48cf-at,_0x5c935a=_0x16f04b-at-_0x17361f[_0x4cac82(0xb3)];let _0x4efcaf;if(_0xdc83de>=_0x228016)_0x4efcaf=_0x2c48cf+at;else{if(_0x5c935a>=_0x228016)_0x4efcaf=_0x3053b9-at;else _0x4efcaf=_0x16f04b+_0x4f2165[_0x4cac82(0xa1)]/0x2-_0x228016/0x2;}return _0x4efcaf;}[_0x2f8c68(0x98)](){const _0x3dc586=_0x2f8c68,_0xb51600=_0x55a8f7(this[_0x3dc586(0xa9)]);this[_0x3dc586(0x80)](_0xb51600[_0x3dc586(0xaa)][_0x3dc586(0xce)],_0x3dc586(0xa5),()=>{const _0x1a3ab9=_0x3dc586;if(!this[_0x1a3ab9(0xa6)]){for(const {name:_0x322113,data:{newRange:_0x58e24c}}of _0xb51600[_0x1a3ab9(0xaa)][_0x1a3ab9(0xce)][_0x1a3ab9(0xa0)][_0x1a3ab9(0xb4)]())if(_0x322113[_0x1a3ab9(0xcc)](_0x4837d3+':')&&(_0x58e24c&&(_0x58e24c[_0x1a3ab9(0xd5)][_0x1a3ab9(0x97)](_0x58e24c[_0x1a3ab9(0xb6)])||_0x1a3ab9(0x9a)==_0x58e24c[_0x1a3ab9(0xc1)][_0x1a3ab9(0x9d)])||null==_0x58e24c)){const _0x5db400=_0x36792d(this[_0x1a3ab9(0xa9)][_0x1a3ab9(0xd7)],_0x1a3ab9(0xbf));this[_0x1a3ab9(0xc8)][_0x1a3ab9(0x83)][_0x1a3ab9(0x9e)](_0x5db400),this[_0x1a3ab9(0xba)](_0x1a3ab9(0xd3));}}});}[_0x2f8c68(0x90)](){const _0x13ba56=_0x2f8c68,_0x1396b7=_0x55a8f7(this[_0x13ba56(0xa9)]);this[_0x13ba56(0xc8)][_0x13ba56(0x83)][_0x13ba56(0x88)](),this[_0x13ba56(0xb7)](_0x1396b7[_0x13ba56(0xaa)][_0x13ba56(0xce)]);}[_0x2f8c68(0x86)](){const _0x276ca6=_0x2f8c68,_0x2fbd0e=_0x55a8f7(this[_0x276ca6(0xa9)]);return _0x2d4577(_0x2fbd0e[_0x276ca6(0x91)],[..._0x2fbd0e[_0x276ca6(0xaa)][_0x276ca6(0xab)][_0x276ca6(0xb8)](_0x276ca6(0x7c)),..._0x2fbd0e[_0x276ca6(0xaa)][_0x276ca6(0xab)][_0x276ca6(0xb8)](_0x276ca6(0xc6))]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x8a7a7=_0x1d95;(function(_0x30c2ac,_0x3d25fc){const _0x2e42ca=_0x1d95,_0x6dc776=_0x30c2ac();while(!![]){try{const _0x2f692a=parseInt(_0x2e42ca(0x13f))/0x1*(-parseInt(_0x2e42ca(0x13d))/0x2)+parseInt(_0x2e42ca(0x14a))/0x3*(parseInt(_0x2e42ca(0x153))/0x4)+parseInt(_0x2e42ca(0x152))/0x5+-parseInt(_0x2e42ca(0x155))/0x6*(parseInt(_0x2e42ca(0x13c))/0x7)+parseInt(_0x2e42ca(0x147))/0x8+parseInt(_0x2e42ca(0x144))/0x9+parseInt(_0x2e42ca(0x13e))/0xa;if(_0x2f692a===_0x3d25fc)break;else _0x6dc776['push'](_0x6dc776['shift']());}catch(_0x492232){_0x6dc776['push'](_0x6dc776['shift']());}}}(_0x48ff,0x535f4));function _0x1d95(_0x154e5e,_0x47f853){const _0x48ffc7=_0x48ff();return _0x1d95=function(_0x1d9581,_0x45ce03){_0x1d9581=_0x1d9581-0x13a;let _0x28a613=_0x48ffc7[_0x1d9581];return _0x28a613;},_0x1d95(_0x154e5e,_0x47f853);}function _0x48ff(){const _0x1be21a=['showNext','1456295TZEFnS','16jmcjNJ','locale','6jddzBM','_isErrorVisible','bindTemplate','showError','hideError','set','3916591KomXno','3310cSLUaF','3667010rwhezL','187sVLLCT','setTemplate','_errorView','ck-hidden','showPrevious','177849JKXLTf','ck-ai-balloon-error','insertSuggestion','3084360jNJXPx','_errorMessage','applySuggestion','110418WVQoSE','_createErrorView','div','ck-ai-suggestion__error-text','span','showBlockingError','ck-ai-suggestion__error'];_0x48ff=function(){return _0x1be21a;};return _0x48ff();}import{View as _0x6a0e3b}from'ckeditor5/src/ui.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x8a7a7(0x149),_0x8a7a7(0x146),_0x8a7a7(0x151),_0x8a7a7(0x143)];export class AIBalloonView extends _0x6a0e3b{[_0x8a7a7(0x141)];constructor(_0x243cc4){const _0x2775ad=_0x8a7a7;super(_0x243cc4),this[_0x2775ad(0x13b)](_0x2775ad(0x148),''),this[_0x2775ad(0x13b)](_0x2775ad(0x156),!0x1);}[_0x8a7a7(0x14f)](_0x564538){const _0x1c4ca8=_0x8a7a7;this[_0x1c4ca8(0x158)](_0x564538);}[_0x8a7a7(0x158)](_0x9d38e8){const _0x190e69=_0x8a7a7;this[_0x190e69(0x141)]||(this[_0x190e69(0x141)]=this[_0x190e69(0x14b)]()),this[_0x190e69(0x148)]=_0x9d38e8,this[_0x190e69(0x156)]=!0x0;}[_0x8a7a7(0x13a)](){const _0x1c8de5=_0x8a7a7;this[_0x1c8de5(0x156)]=!0x1;}[_0x8a7a7(0x14b)](){const _0x23286c=_0x8a7a7,_0x4cbfd6=new _0x6a0e3b(this[_0x23286c(0x154)]),_0x4e27ae=new _0x6a0e3b(this[_0x23286c(0x154)]);return _0x4e27ae[_0x23286c(0x140)]({'tag':_0x23286c(0x14e),'attributes':{'class':['ck',_0x23286c(0x14d)]},'children':[{'text':this[_0x23286c(0x157)]['to'](_0x23286c(0x148))}]}),_0x4cbfd6[_0x23286c(0x140)]({'tag':_0x23286c(0x14c),'attributes':{'class':['ck',_0x23286c(0x150),_0x23286c(0x145),this[_0x23286c(0x157)]['if'](_0x23286c(0x156),_0x23286c(0x142),_0x31b136=>!_0x31b136)]},'children':[_0x4e27ae]}),_0x4cbfd6;}}
|
package/src/aichat/aichat.d.ts
CHANGED
|
@@ -46,13 +46,13 @@ export declare class AIChat extends ContextPlugin {
|
|
|
46
46
|
/**
|
|
47
47
|
* Submits a user message to the currently active conversation.
|
|
48
48
|
*
|
|
49
|
-
* You can pass additional parameters with the message using `attributes` property.
|
|
49
|
+
* You can pass additional parameters with the message using the `attributes` property.
|
|
50
50
|
*
|
|
51
|
-
*
|
|
51
|
+
* The following properties are currently supported in `attributes`:
|
|
52
52
|
*
|
|
53
53
|
* * `displayedPrompt` (`string`) - If set, will be displayed instead of the actual `message`. You can use it to display a shorter,
|
|
54
54
|
* or otherwise different or friendlier user message. This is also respected in the conversation history. Original `message` will
|
|
55
|
-
* be
|
|
55
|
+
* still be used to query the AI model.
|
|
56
56
|
*
|
|
57
57
|
* Besides supported properties, `attributes` can be used to save any additional metadata with the message, which can be used by your
|
|
58
58
|
* integration in any way. Data passed in `attributes` will be saved in the conversation history. If your integration connects external
|
|
@@ -70,7 +70,7 @@ export declare class AIChat extends ContextPlugin {
|
|
|
70
70
|
/**
|
|
71
71
|
* Registers a function that is called when data from a custom AI tool is received from the backend service.
|
|
72
72
|
*
|
|
73
|
-
* This data can be
|
|
73
|
+
* This data can only be received if you connect your own custom AI tool with the Cloud Services AI backend. By registering a callback
|
|
74
74
|
* function, you can implement custom handling for this data, such as displaying custom elements inside the AI chat component, or
|
|
75
75
|
* setting a custom loading message.
|
|
76
76
|
*
|
|
@@ -78,17 +78,17 @@ export declare class AIChat extends ContextPlugin {
|
|
|
78
78
|
*
|
|
79
79
|
* * `toolData` – data returned by the tool,
|
|
80
80
|
* * `api` – the {@link module:ai/aichat/aichat~AIChatInteractionAPI AI Chat Interaction API},
|
|
81
|
-
* enables manipulating the current interaction
|
|
81
|
+
* enables manipulating the current interaction according to the received data.
|
|
82
82
|
*
|
|
83
83
|
* The callback is called for data received from all tools that you have connected, and both for tool results and tool notifications.
|
|
84
84
|
* Check `toolData.toolName` and `toolData.type` to handle various tools and actions. You can register multiple callbacks to better
|
|
85
85
|
* organize your code.
|
|
86
86
|
*
|
|
87
|
-
* Please remember, that your tool is fully responsible for generating contents of `toolData.data` and `toolData.attributes`.
|
|
87
|
+
* Please remember, that your tool is fully responsible for generating the contents of `toolData.data` and `toolData.attributes`.
|
|
88
88
|
*
|
|
89
89
|
* Example usage:
|
|
90
90
|
*
|
|
91
|
-
* 1. Register a callback that changes loading message when tool "my-tool" returns a notification:
|
|
91
|
+
* 1. Register a callback that changes the loading message when tool "my-tool" returns a notification:
|
|
92
92
|
*
|
|
93
93
|
* ```ts
|
|
94
94
|
* aiChat.registerToolDataCallback( ( toolData, api ) => {
|
|
@@ -98,7 +98,7 @@ export declare class AIChat extends ContextPlugin {
|
|
|
98
98
|
* } );
|
|
99
99
|
* ```
|
|
100
100
|
*
|
|
101
|
-
* 2. Register a callback to create custom text chat reply based on custom tool data:
|
|
101
|
+
* 2. Register a callback to create a custom text chat reply based on custom tool data:
|
|
102
102
|
*
|
|
103
103
|
* ```ts
|
|
104
104
|
* aiChat.registerToolDataCallback( ( toolData, api ) => {
|
|
@@ -173,6 +173,10 @@ export interface AIChatConfig {
|
|
|
173
173
|
* @default 'new'
|
|
174
174
|
*/
|
|
175
175
|
initialConversation?: string;
|
|
176
|
+
/**
|
|
177
|
+
* The welcome message to be displayed when the AI chat is initialized. When not set, the default welcome message will be used.
|
|
178
|
+
*/
|
|
179
|
+
welcomeMessage?: string;
|
|
176
180
|
}
|
|
177
181
|
/**
|
|
178
182
|
* An API allowing to manipulate the {@link module:ai/aichat/aichat~AIChat AI Chat} interaction while it is being streamed
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x423e8d=_0x2ed1;function _0x2ed1(_0x4062d2,_0x776ef1){var _0x33e2dc=_0x33e2();return _0x2ed1=function(_0x2ed16b,_0x5d66fb){_0x2ed16b=_0x2ed16b-0x199;var _0x5cdec6=_0x33e2dc[_0x2ed16b];return _0x5cdec6;},_0x2ed1(_0x4062d2,_0x776ef1);}(function(_0x375227,_0x2972c3){var _0x248edb=_0x2ed1,_0xf4525c=_0x375227();while(!![]){try{var _0x1f69fb=parseInt(_0x248edb(0x1a4))/0x1+parseInt(_0x248edb(0x1a7))/0x2*(-parseInt(_0x248edb(0x19a))/0x3)+parseInt(_0x248edb(0x1b1))/0x4+parseInt(_0x248edb(0x199))/0x5+parseInt(_0x248edb(0x1a3))/0x6*(parseInt(_0x248edb(0x1b5))/0x7)+-parseInt(_0x248edb(0x19f))/0x8*(-parseInt(_0x248edb(0x1b2))/0x9)+-parseInt(_0x248edb(0x1ae))/0xa;if(_0x1f69fb===_0x2972c3)break;else _0xf4525c['push'](_0xf4525c['shift']());}catch(_0x39c91d){_0xf4525c['push'](_0xf4525c['shift']());}}}(_0x33e2,0xa7d5c));import{ContextPlugin as _0xbec9a1}from'ckeditor5/src/core.js';function _0x33e2(){var _0xa3f114=['plugins','addSelectionToChatContext','pluginName','registerToolDataCallback','23108390MxkvCl','startConversation','sendMessage','5026048vKcAgG','36Sbzmrj','ai.chat.initialConversation','removeSelectionFromChatContext','25697jStlrb','_registerToolDataCallback','4730995pQhmST','15108mkERsi','focusPromptInput','AIChat','isPremiumPlugin','ai.chat.context','2410048dLYvQV','get','config','context','618GnuQYL','249859eRsRyS','isOfficialPlugin','requires','412NsZvmz','define','new'];_0x33e2=function(){return _0xa3f114;};return _0x33e2();}import{AIChatController as _0x2c53ea}from'./aichatcontroller.js';import{AIEditing as _0x4d8e41}from'../aicore/aiediting.js';import{AIChatUI as _0x3db97d}from'./aichatui.js';import{AIChatHistory as _0x4ecc6b}from'../aichathistory/aichathistory.js';export class AIChat extends _0xbec9a1{static get[_0x423e8d(0x1a6)](){return[_0x2c53ea,_0x4d8e41,_0x3db97d,_0x4ecc6b];}static get[_0x423e8d(0x1ac)](){var _0x30f4f3=_0x423e8d;return _0x30f4f3(0x19c);}static get[_0x423e8d(0x1a5)](){return!0x0;}static get[_0x423e8d(0x19d)](){return!0x0;}constructor(_0x17b068){var _0x3f0db0=_0x423e8d;super(_0x17b068),this[_0x3f0db0(0x1a2)][_0x3f0db0(0x1a1)][_0x3f0db0(0x1a8)](_0x3f0db0(0x19e),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x3f0db0(0x1a2)][_0x3f0db0(0x1a1)][_0x3f0db0(0x1a8)](_0x3f0db0(0x1b3),_0x3f0db0(0x1a9));}async[_0x423e8d(0x1ab)](){var _0x51c17a=_0x423e8d;await this[_0x51c17a(0x1a2)][_0x51c17a(0x1aa)][_0x51c17a(0x1a0)](_0x2c53ea)[_0x51c17a(0x1ab)]();}async[_0x423e8d(0x1af)](){var _0x170d1a=_0x423e8d;await this[_0x170d1a(0x1a2)][_0x170d1a(0x1aa)][_0x170d1a(0x1a0)](_0x2c53ea)[_0x170d1a(0x1af)]();}async[_0x423e8d(0x1b0)]({message:_0x2ff38a,attributes:_0x5d08b4}){var _0x58d7d3=_0x423e8d;await this[_0x58d7d3(0x1a2)][_0x58d7d3(0x1aa)][_0x58d7d3(0x1a0)](_0x2c53ea)[_0x58d7d3(0x1b0)]({'message':_0x2ff38a,'attributes':_0x5d08b4});}[_0x423e8d(0x1b4)](){var _0x5eb0ca=_0x423e8d;this[_0x5eb0ca(0x1a2)][_0x5eb0ca(0x1aa)][_0x5eb0ca(0x1a0)](_0x2c53ea)[_0x5eb0ca(0x1b4)]();}[_0x423e8d(0x19b)](){var _0x2356ea=_0x423e8d;this[_0x2356ea(0x1a2)][_0x2356ea(0x1aa)][_0x2356ea(0x1a0)](_0x2c53ea)[_0x2356ea(0x19b)]();}[_0x423e8d(0x1ad)](_0x5d3459){var _0x5b31a2=_0x423e8d;this[_0x5b31a2(0x1a2)][_0x5b31a2(0x1aa)][_0x5b31a2(0x1a0)](_0x2c53ea)[_0x5b31a2(0x1b6)](_0x5d3459);}}
|