@ckeditor/ckeditor5-ai 47.6.1 → 48.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +2 -1
- package/ckeditor5-metadata.json +10 -10
- package/dist/aiactions/aiactions.d.ts +90 -0
- package/{src → dist}/aiactions/model/aiactionsinteraction.d.ts +2 -2
- package/{src → dist}/aiassistant/adapters/aiadapter.d.ts +1 -1
- package/{src → dist}/aiassistant/adapters/aitextadapter.d.ts +1 -1
- package/{src → dist}/aiassistant/adapters/awstextadapter.d.ts +2 -2
- package/{src → dist}/aiassistant/adapters/openaitextadapter.d.ts +2 -2
- package/{src → dist}/aiassistant/aiassistant.d.ts +3 -3
- package/{src → dist}/aiassistant/aiassistantediting.d.ts +2 -2
- package/{src → dist}/aiassistant/aiassistantui.d.ts +3 -3
- package/{src → dist}/aiassistant/ui/aiassistantcontroller.d.ts +3 -3
- package/{src → dist}/aiassistant/ui/form/aiformcontentarea.d.ts +2 -2
- package/{src → dist}/aiassistant/ui/form/aiformerrorview.d.ts +2 -2
- package/{src → dist}/aiassistant/ui/form/aiformpromptview.d.ts +2 -2
- package/{src → dist}/aiassistant/ui/form/aiformtoolbarview.d.ts +2 -2
- package/{src → dist}/aiassistant/ui/form/aiformview.d.ts +2 -2
- package/{src → dist}/aiassistant/ui/form/aihistorylistitemview.d.ts +1 -1
- package/{src → dist}/aiassistant/ui/form/aihistorylistview.d.ts +2 -2
- package/{src → dist}/aiassistant/ui/form/prompthistory.d.ts +1 -1
- package/{src → dist}/aiassistant/ui/showaiassistantcommand.d.ts +1 -1
- package/{src → dist}/aiassistant/utils/common-translations.d.ts +1 -1
- package/{src → dist}/aiassistant/utils/normalizecommandsconfig.d.ts +1 -1
- package/{src → dist}/aiballoon/aiballoon.d.ts +2 -2
- package/{src → dist}/aiballoon/ui/aiballoonview.d.ts +2 -2
- package/dist/aichat/aichat.d.ts +95 -0
- package/{src → dist}/aichat/aichatballoon.d.ts +2 -2
- package/{src/aichat/aichat.d.ts → dist/aichat/aichatcontroller.d.ts} +122 -89
- package/{src → dist}/aichat/aichatui.d.ts +5 -5
- package/{src → dist}/aichat/model/aichatcontext.d.ts +91 -17
- package/{src → dist}/aichat/model/aichatconversation.d.ts +4 -4
- package/{src → dist}/aichat/model/aichatinteraction.d.ts +1 -4
- package/{src → dist}/aichat/ui/aichatballoonview.d.ts +2 -2
- package/{src → dist}/aichat/ui/aichatcontrolsview.d.ts +2 -2
- package/{src → dist}/aichat/ui/aichatfeedview.d.ts +2 -2
- package/{src → dist}/aichat/ui/aichatheaderview.d.ts +2 -2
- package/{src → dist}/aichat/ui/aichatview.d.ts +3 -2
- package/{src → dist}/aichat/ui/controls/aichatchipsoverflowmanager.d.ts +2 -2
- package/{src → dist}/aichat/ui/controls/aichatcontextitembuttonview.d.ts +2 -2
- package/{src → dist}/aichat/ui/controls/aichatcontextpanelurlinputview.d.ts +2 -2
- package/{src → dist}/aichat/ui/controls/aichatcontextpanelview.d.ts +2 -2
- package/{src → dist}/aichat/ui/controls/aichatcontrolsloaderview.d.ts +2 -2
- package/{src → dist}/aichat/ui/controls/aichatpromptcapabilitiesview.d.ts +2 -2
- package/{src → dist}/aichat/ui/controls/aichatpromptinputview.d.ts +2 -2
- package/{src → dist}/aichat/ui/controls/aichatpromptsuggestionslistview.d.ts +1 -1
- package/{src → dist}/aichat/ui/controls/resources/aichatcontextresourceslistview.d.ts +2 -2
- package/{src → dist}/aichat/ui/controls/resources/aichatcontextresourcesview.d.ts +2 -2
- package/{src → dist}/aichat/ui/controls/resources/aichatresourcelistitemview.d.ts +2 -2
- package/{src → dist}/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +2 -2
- package/{src → dist}/aichat/ui/controls/resources/aichatresourcessearchinputview.d.ts +2 -2
- package/{src → dist}/aichat/ui/feed/aichatfeedcontextchipsview.d.ts +2 -2
- package/{src → dist}/aichat/ui/feed/aichatfeedcustomelementview.d.ts +7 -1
- package/{src → dist}/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +1 -1
- package/{src → dist}/aichat/ui/feed/aichatfeeditemview.d.ts +1 -1
- package/{src → dist}/aichat/ui/feed/aichatfeedreplyitemview.d.ts +2 -2
- package/{src → dist}/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +2 -2
- package/{src → dist}/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +2 -2
- package/{src → dist}/aichat/ui/feed/aichatfeedusermessageitem.d.ts +2 -2
- package/{src → dist}/aichat/utils/promisequeue.d.ts +2 -2
- package/{src → dist}/aichathistory/aichathistory.d.ts +1 -1
- package/{src → dist}/aichathistory/aichathistorycontroller.d.ts +1 -1
- package/{src → dist}/aichathistory/aichathistoryui.d.ts +1 -1
- package/{src → dist}/aichathistory/model/aichathistoryconversations.d.ts +2 -2
- package/{src → dist}/aichathistory/model/aichathistoryitem.d.ts +2 -2
- package/{src → dist}/aichathistory/ui/aichathistorylistitemview.d.ts +2 -2
- package/{src → dist}/aichathistory/ui/aichathistorylistview.d.ts +1 -1
- package/{src → dist}/aichathistory/ui/aichathistorysectionlistview.d.ts +1 -1
- package/{src → dist}/aichathistory/ui/aichathistoryview.d.ts +2 -2
- package/{src → dist}/aichatshortcuts/aichatshortcuts.d.ts +17 -17
- package/{src → dist}/aichatshortcuts/ui/aichatshortcutsview.d.ts +2 -2
- package/{src → dist}/aichatshortcuts/ui/aichatshortcutview.d.ts +2 -2
- package/{src → dist}/aiconfig.d.ts +7 -9
- package/{src → dist}/aicore/aiconnector.d.ts +4 -12
- package/{src → dist}/aicore/aiediting.d.ts +27 -6
- package/{src → dist}/aicore/model/aicapabilities.d.ts +2 -2
- package/{src → dist}/aicore/model/aiinteraction.d.ts +17 -13
- package/{src → dist}/aicore/model/aimodels.d.ts +6 -4
- package/{src → dist}/aicore/model/aireply.d.ts +12 -50
- package/{src → dist}/aicore/pipeline/airesponseapplier.d.ts +2 -2
- package/{src → dist}/aicore/pipeline/airesponseparser.d.ts +2 -2
- package/{src → dist}/aicore/ui/aidisclaimerview.d.ts +2 -2
- package/{src → dist}/aicore/ui/aiskeleton.d.ts +2 -2
- package/{src → dist}/aicore/ui/aispinner.d.ts +1 -1
- package/{src → dist}/aicore/ui/suggestioncontainer/aiminitoolbarview.d.ts +2 -2
- package/{src → dist}/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +2 -2
- package/{src → dist}/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +2 -2
- package/{src → dist}/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.d.ts +2 -2
- package/{src → dist}/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.d.ts +2 -2
- package/{src → dist}/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.d.ts +2 -2
- package/{src → dist}/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +2 -2
- package/{src → dist}/aicore/ui/suggestioncontainer/aisuggestionheaderview.d.ts +2 -2
- package/{src → dist}/aicore/ui/suggestioncontainer/aisuggestionloaderview.d.ts +2 -2
- package/{src → dist}/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.d.ts +2 -2
- package/{src → dist}/aicore/ui/suggestioncontainer/aiwebsourcesview.d.ts +2 -2
- package/dist/aicore/utils/buttonclasses.d.ts +12 -0
- package/{src → dist}/aicore/utils/common-translations.d.ts +1 -1
- package/{src → dist}/aicore/utils/createresizebutton.d.ts +2 -2
- package/{src → dist}/aicore/utils/geteditorfromcontext.d.ts +1 -1
- package/{src → dist}/aicore/utils/getoperationsfromreply.d.ts +3 -3
- package/{src → dist}/aicore/utils/getsuggestionpartsfromreply.d.ts +1 -1
- package/{src → dist}/aieditorintegration/aieditorintegration.d.ts +2 -2
- package/{src → dist}/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +1 -1
- package/{src → dist}/aieditorintegration/aitogglebutton/toggleaicommand.d.ts +1 -1
- package/{src → dist}/aiquickactions/aiquickactions.d.ts +110 -52
- package/{src → dist}/aiquickactions/aiquickactionscommand.d.ts +1 -1
- package/{src → dist}/aiquickactions/aiquickactionsediting.d.ts +1 -1
- package/{src → dist}/aiquickactions/aiquickactionsui.d.ts +16 -30
- package/{src → dist}/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +2 -2
- package/{src → dist}/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +3 -3
- package/{src → dist}/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +2 -2
- package/{src → dist}/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.d.ts +2 -2
- package/{src → dist}/aiquickactions/ui/balloon/aiactionsballoontoolbarview.d.ts +2 -2
- package/{src → dist}/aiquickactions/ui/balloon/aiactionsballoonview.d.ts +2 -2
- package/{src → dist}/aiquickactions/ui/dropdownmenubuttonwithhighlightview.d.ts +1 -1
- package/{src → dist}/aireviewcore/aireviewcorecontroller.d.ts +1 -1
- package/{src → dist}/aireviewcore/aireviewcoreediting.d.ts +4 -4
- package/{src → dist}/aireviewcore/aireviewcoreui.d.ts +2 -1
- package/{src → dist}/aireviewcore/model/aireviewchecklist.d.ts +2 -2
- package/{src → dist}/aireviewcore/model/aireviewcheckresult.d.ts +2 -2
- package/{src → dist}/aireviewcore/model/aireviewcheckresultchange.d.ts +3 -3
- package/{src → dist}/aireviewcore/model/aireviewcheckrun.d.ts +2 -2
- package/{src → dist}/aireviewcore/ui/aireviewcoreballoonsuggestionview.d.ts +2 -2
- package/{src → dist}/aireviewcore/ui/aireviewcorechecklistitemresultview.d.ts +2 -2
- package/{src → dist}/aireviewcore/ui/aireviewcorecustomcheckview.d.ts +2 -2
- package/{src → dist}/aireviewcore/ui/aireviewcorefinishreviewbuttonview.d.ts +2 -2
- package/{src → dist}/aireviewcore/ui/aireviewcoregeneralerrorview.d.ts +2 -2
- package/{src → dist}/aireviewcore/ui/aireviewcorepromptinputview.d.ts +2 -2
- package/{src → dist}/aireviewcore/ui/aireviewcorereviewchecklistview.d.ts +2 -2
- package/{src → dist}/aireviewcore/ui/aireviewcorereviewcommandlistitemview.d.ts +2 -2
- package/{src → dist}/aireviewcore/ui/aireviewcorereviewcompletedview.d.ts +2 -2
- package/{src → dist}/aireviewcore/ui/aireviewcoreuicheckresultsview.d.ts +2 -2
- package/{src → dist}/aireviewcore/ui/aireviewcoreview.d.ts +2 -2
- package/{src → dist}/aireviewcore/ui/form/aireviewcoreformdropdown.d.ts +2 -2
- package/{src → dist}/aireviewcore/ui/form/aireviewcoreformmanager.d.ts +2 -2
- package/{src → dist}/aireviewmode/aireviewmode.d.ts +6 -4
- package/{src → dist}/aireviewmode/aireviewmodecontroller.d.ts +1 -1
- package/{src → dist}/aitabs/aitabs.d.ts +4 -1
- package/{src → dist}/aitabs/aitabsmainview.d.ts +4 -1
- package/{src → dist}/aitabs/tabs/aitabsview.d.ts +22 -2
- package/{src → dist}/aitabs/tabs/tabbuttonview.d.ts +2 -2
- package/{src → dist}/aitabs/tabs/tabpanelview.d.ts +2 -2
- package/{src → dist}/aitranslate/aitranslate.d.ts +47 -4
- package/{src → dist}/aitranslate/aitranslatecontroller.d.ts +1 -1
- package/{src → dist}/aitranslate/ui/aitranslatecheckresultsview.d.ts +1 -1
- package/dist/index-content.css +95 -0
- package/dist/index-editor.css +2711 -2793
- package/dist/index.css +2699 -3521
- package/{src → dist}/index.d.ts +7 -6
- 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/package.json +26 -51
- package/build/966.ai.js +0 -5
- package/build/ai.js +0 -4
- package/build/translations/af.js +0 -1
- package/build/translations/ar.js +0 -1
- package/build/translations/ast.js +0 -1
- package/build/translations/az.js +0 -1
- package/build/translations/be.js +0 -1
- package/build/translations/bg.js +0 -1
- package/build/translations/bn.js +0 -1
- package/build/translations/bs.js +0 -1
- package/build/translations/ca.js +0 -1
- package/build/translations/cs.js +0 -1
- package/build/translations/da.js +0 -1
- package/build/translations/de-ch.js +0 -1
- package/build/translations/de.js +0 -1
- package/build/translations/el.js +0 -1
- package/build/translations/en-au.js +0 -1
- package/build/translations/en-gb.js +0 -1
- package/build/translations/en.js +0 -1
- package/build/translations/eo.js +0 -1
- package/build/translations/es-co.js +0 -1
- package/build/translations/es.js +0 -1
- package/build/translations/et.js +0 -1
- package/build/translations/eu.js +0 -1
- package/build/translations/fa.js +0 -1
- package/build/translations/fi.js +0 -1
- package/build/translations/fr.js +0 -1
- package/build/translations/gl.js +0 -1
- package/build/translations/gu.js +0 -1
- package/build/translations/he.js +0 -1
- package/build/translations/hi.js +0 -1
- package/build/translations/hr.js +0 -1
- package/build/translations/hu.js +0 -1
- package/build/translations/hy.js +0 -1
- package/build/translations/id.js +0 -1
- package/build/translations/it.js +0 -1
- package/build/translations/ja.js +0 -1
- package/build/translations/jv.js +0 -1
- package/build/translations/kk.js +0 -1
- package/build/translations/km.js +0 -1
- package/build/translations/kn.js +0 -1
- package/build/translations/ko.js +0 -1
- package/build/translations/ku.js +0 -1
- package/build/translations/lt.js +0 -1
- package/build/translations/lv.js +0 -1
- package/build/translations/ms.js +0 -1
- package/build/translations/nb.js +0 -1
- package/build/translations/ne.js +0 -1
- package/build/translations/nl.js +0 -1
- package/build/translations/no.js +0 -1
- package/build/translations/oc.js +0 -1
- package/build/translations/pl.js +0 -1
- package/build/translations/pt-br.js +0 -1
- package/build/translations/pt.js +0 -1
- package/build/translations/ro.js +0 -1
- package/build/translations/ru.js +0 -1
- package/build/translations/si.js +0 -1
- package/build/translations/sk.js +0 -1
- package/build/translations/sl.js +0 -1
- package/build/translations/sq.js +0 -1
- package/build/translations/sr-latn.js +0 -1
- package/build/translations/sr.js +0 -1
- package/build/translations/sv.js +0 -1
- package/build/translations/th.js +0 -1
- package/build/translations/ti.js +0 -1
- package/build/translations/tk.js +0 -1
- package/build/translations/tr.js +0 -1
- package/build/translations/tt.js +0 -1
- package/build/translations/ug.js +0 -1
- package/build/translations/uk.js +0 -1
- package/build/translations/ur.js +0 -1
- package/build/translations/uz.js +0 -1
- package/build/translations/vi.js +0 -1
- package/build/translations/zh-cn.js +0 -1
- package/build/translations/zh.js +0 -1
- package/lang/contexts.json +0 -286
- package/lang/translations/af.po +0 -1144
- package/lang/translations/ar.po +0 -1144
- package/lang/translations/ast.po +0 -1144
- package/lang/translations/az.po +0 -1144
- package/lang/translations/be.po +0 -1144
- package/lang/translations/bg.po +0 -1144
- package/lang/translations/bn.po +0 -1144
- package/lang/translations/bs.po +0 -1144
- package/lang/translations/ca.po +0 -1144
- package/lang/translations/cs.po +0 -1144
- package/lang/translations/da.po +0 -1144
- package/lang/translations/de-ch.po +0 -1144
- package/lang/translations/de.po +0 -1144
- package/lang/translations/el.po +0 -1144
- package/lang/translations/en-au.po +0 -1144
- package/lang/translations/en-gb.po +0 -1144
- package/lang/translations/en.po +0 -1144
- package/lang/translations/eo.po +0 -1144
- package/lang/translations/es-co.po +0 -1144
- package/lang/translations/es.po +0 -1144
- package/lang/translations/et.po +0 -1144
- package/lang/translations/eu.po +0 -1144
- package/lang/translations/fa.po +0 -1144
- package/lang/translations/fi.po +0 -1144
- package/lang/translations/fr.po +0 -1144
- package/lang/translations/gl.po +0 -1144
- package/lang/translations/gu.po +0 -1144
- package/lang/translations/he.po +0 -1144
- package/lang/translations/hi.po +0 -1144
- package/lang/translations/hr.po +0 -1144
- package/lang/translations/hu.po +0 -1144
- package/lang/translations/hy.po +0 -1144
- package/lang/translations/id.po +0 -1144
- package/lang/translations/it.po +0 -1144
- package/lang/translations/ja.po +0 -1144
- package/lang/translations/jv.po +0 -1144
- package/lang/translations/kk.po +0 -1144
- package/lang/translations/km.po +0 -1144
- package/lang/translations/kn.po +0 -1144
- package/lang/translations/ko.po +0 -1144
- package/lang/translations/ku.po +0 -1144
- package/lang/translations/lt.po +0 -1144
- package/lang/translations/lv.po +0 -1144
- package/lang/translations/ms.po +0 -1144
- package/lang/translations/nb.po +0 -1144
- package/lang/translations/ne.po +0 -1144
- package/lang/translations/nl.po +0 -1144
- package/lang/translations/no.po +0 -1144
- package/lang/translations/oc.po +0 -1144
- package/lang/translations/pl.po +0 -1144
- package/lang/translations/pt-br.po +0 -1144
- package/lang/translations/pt.po +0 -1144
- package/lang/translations/ro.po +0 -1144
- package/lang/translations/ru.po +0 -1144
- package/lang/translations/si.po +0 -1144
- package/lang/translations/sk.po +0 -1144
- package/lang/translations/sl.po +0 -1144
- package/lang/translations/sq.po +0 -1144
- package/lang/translations/sr-latn.po +0 -1144
- package/lang/translations/sr.po +0 -1144
- package/lang/translations/sv.po +0 -1144
- package/lang/translations/th.po +0 -1144
- package/lang/translations/ti.po +0 -1144
- package/lang/translations/tk.po +0 -1144
- package/lang/translations/tr.po +0 -1144
- package/lang/translations/tt.po +0 -1144
- package/lang/translations/ug.po +0 -1144
- package/lang/translations/uk.po +0 -1144
- package/lang/translations/ur.po +0 -1144
- package/lang/translations/uz.po +0 -1144
- package/lang/translations/vi.po +0 -1144
- package/lang/translations/zh-cn.po +0 -1144
- package/lang/translations/zh.po +0 -1144
- package/src/aiactions/aiactions.d.ts +0 -53
- package/src/aiactions/aiactions.js +0 -23
- package/src/aiactions/model/aiactionsinteraction.js +0 -23
- package/src/aiactions/model/aiactionsreply.js +0 -23
- package/src/aiassistant/adapters/aiadapter.js +0 -23
- package/src/aiassistant/adapters/aitextadapter.js +0 -23
- package/src/aiassistant/adapters/awstextadapter.js +0 -23
- package/src/aiassistant/adapters/openaitextadapter.js +0 -23
- package/src/aiassistant/aiassistant.js +0 -23
- package/src/aiassistant/aiassistantediting.js +0 -23
- package/src/aiassistant/aiassistantui.js +0 -23
- package/src/aiassistant/legacyerrors.js +0 -23
- package/src/aiassistant/ui/aiassistantcontroller.js +0 -24
- package/src/aiassistant/ui/form/aiformcontentarea.js +0 -23
- package/src/aiassistant/ui/form/aiformerrorview.js +0 -23
- package/src/aiassistant/ui/form/aiformpromptview.js +0 -23
- package/src/aiassistant/ui/form/aiformtoolbarview.js +0 -23
- package/src/aiassistant/ui/form/aiformview.js +0 -23
- package/src/aiassistant/ui/form/aihistorylistitemview.js +0 -23
- package/src/aiassistant/ui/form/aihistorylistview.js +0 -23
- package/src/aiassistant/ui/form/prompthistory.js +0 -23
- package/src/aiassistant/ui/showaiassistantcommand.js +0 -23
- package/src/aiassistant/utils/common-translations.js +0 -23
- package/src/aiassistant/utils/normalizecommandsconfig.js +0 -23
- package/src/aiballoon/aiballoon.js +0 -23
- package/src/aiballoon/ui/aiballoonview.js +0 -23
- package/src/aichat/aichat.js +0 -23
- package/src/aichat/aichatballoon.js +0 -23
- package/src/aichat/aichatcontroller.d.ts +0 -77
- package/src/aichat/aichatcontroller.js +0 -23
- package/src/aichat/aichatui.js +0 -23
- package/src/aichat/model/aichatcontext.js +0 -23
- package/src/aichat/model/aichatconversation.js +0 -23
- package/src/aichat/model/aichatinteraction.js +0 -23
- package/src/aichat/ui/aichatballoonview.js +0 -23
- package/src/aichat/ui/aichatcontrolsview.js +0 -23
- package/src/aichat/ui/aichatfeedview.js +0 -23
- package/src/aichat/ui/aichatheaderview.js +0 -23
- package/src/aichat/ui/aichatview.js +0 -23
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +0 -23
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +0 -23
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +0 -23
- package/src/aichat/ui/controls/aichatcontextpanelview.js +0 -23
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +0 -23
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +0 -23
- package/src/aichat/ui/controls/aichatpromptinputview.js +0 -23
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +0 -23
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +0 -23
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +0 -23
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +0 -23
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +0 -23
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +0 -23
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +0 -23
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +0 -23
- package/src/aichat/ui/feed/aichatfeederroritemview.js +0 -23
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +0 -23
- package/src/aichat/ui/feed/aichatfeeditemview.js +0 -23
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +0 -23
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +0 -23
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +0 -23
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +0 -23
- package/src/aichat/utils/eventnames.js +0 -23
- package/src/aichat/utils/promisequeue.js +0 -23
- package/src/aichathistory/aichathistory.js +0 -23
- package/src/aichathistory/aichathistorycontroller.js +0 -23
- package/src/aichathistory/aichathistoryui.js +0 -23
- package/src/aichathistory/model/aichathistoryconversations.js +0 -23
- package/src/aichathistory/model/aichathistoryitem.js +0 -23
- package/src/aichathistory/ui/aichathistorylistitemview.js +0 -24
- package/src/aichathistory/ui/aichathistorylistview.js +0 -23
- package/src/aichathistory/ui/aichathistorysectionlistview.js +0 -23
- package/src/aichathistory/ui/aichathistoryview.js +0 -23
- package/src/aichatshortcuts/aichatshortcuts.js +0 -23
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +0 -23
- package/src/aichatshortcuts/ui/aichatshortcutview.js +0 -23
- package/src/aiconfig.js +0 -23
- package/src/aicore/aiconnector.js +0 -23
- package/src/aicore/aiediting.js +0 -23
- package/src/aicore/model/aicapabilities.js +0 -23
- package/src/aicore/model/aicontext.js +0 -23
- package/src/aicore/model/aiinteraction.js +0 -23
- package/src/aicore/model/aimodels.js +0 -23
- package/src/aicore/model/aireply.js +0 -23
- package/src/aicore/pipeline/airesponseapplier.js +0 -24
- package/src/aicore/pipeline/airesponseparser.js +0 -24
- package/src/aicore/ui/aidisclaimerview.js +0 -23
- package/src/aicore/ui/aiskeleton.js +0 -23
- package/src/aicore/ui/aispinner.js +0 -23
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +0 -23
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +0 -23
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +0 -23
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +0 -23
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +0 -23
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +0 -23
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +0 -23
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +0 -23
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +0 -23
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +0 -23
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +0 -23
- package/src/aicore/utils/common-translations.js +0 -23
- package/src/aicore/utils/createresizebutton.js +0 -23
- package/src/aicore/utils/documentposition.js +0 -23
- package/src/aicore/utils/documentrange.js +0 -23
- package/src/aicore/utils/eventnames.js +0 -23
- package/src/aicore/utils/geteditorfromcontext.js +0 -23
- package/src/aicore/utils/getoperationsfromreply.js +0 -23
- package/src/aicore/utils/getsuggestionpartsfromreply.js +0 -23
- package/src/aicore/utils/htmlparser.js +0 -23
- package/src/aicore/utils/htmlstreamer.js +0 -23
- package/src/aicore/utils/scrollmanager.js +0 -23
- package/src/aieditorintegration/aieditorintegration.js +0 -23
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +0 -23
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +0 -23
- package/src/aiquickactions/aiquickactions.js +0 -23
- package/src/aiquickactions/aiquickactionscommand.js +0 -23
- package/src/aiquickactions/aiquickactionsediting.js +0 -23
- package/src/aiquickactions/aiquickactionsui.js +0 -23
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +0 -23
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +0 -23
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +0 -23
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +0 -23
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +0 -23
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +0 -23
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +0 -23
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +0 -23
- package/src/aireviewcore/aireviewcorecontroller.js +0 -23
- package/src/aireviewcore/aireviewcoreediting.js +0 -23
- package/src/aireviewcore/aireviewcoreui.js +0 -23
- package/src/aireviewcore/model/aireviewcheck.js +0 -23
- package/src/aireviewcore/model/aireviewchecklist.js +0 -23
- package/src/aireviewcore/model/aireviewcheckresult.js +0 -23
- package/src/aireviewcore/model/aireviewcheckresultchange.js +0 -23
- package/src/aireviewcore/model/aireviewcheckrun.js +0 -23
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +0 -23
- package/src/aireviewcore/types.js +0 -23
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +0 -23
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +0 -23
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +0 -23
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +0 -23
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +0 -23
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +0 -23
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +0 -23
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +0 -23
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +0 -23
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +0 -23
- package/src/aireviewcore/ui/aireviewcoreview.js +0 -23
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +0 -23
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +0 -23
- package/src/aireviewmode/aireviewcheckdefinitions.js +0 -23
- package/src/aireviewmode/aireviewmode.js +0 -23
- package/src/aireviewmode/aireviewmodecontroller.js +0 -23
- package/src/aireviewmode/aireviewmodeui.js +0 -23
- package/src/aireviewmode/model/aireviewcheckcustom.js +0 -23
- package/src/aireviewmode/model/aireviewcheckextra.js +0 -23
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +0 -23
- package/src/aireviewmode/model/aireviewextracheckrun.js +0 -23
- package/src/aireviewmode/model/aireviewmodechecklist.js +0 -23
- package/src/aitabs/aitabs.js +0 -23
- package/src/aitabs/aitabsmainview.js +0 -23
- package/src/aitabs/tabs/aitabsview.js +0 -23
- package/src/aitabs/tabs/tabbuttonview.js +0 -23
- package/src/aitabs/tabs/tabpanelview.js +0 -23
- package/src/aitranslate/aitranslate.js +0 -23
- package/src/aitranslate/aitranslatecontroller.js +0 -23
- package/src/aitranslate/aitranslateui.js +0 -23
- package/src/aitranslate/model/aitranslatecheck.js +0 -23
- package/src/aitranslate/model/aitranslatechecklist.js +0 -23
- package/src/aitranslate/model/aitranslatecheckrun.js +0 -23
- package/src/aitranslate/ui/aitranslatechecklistview.js +0 -23
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +0 -23
- package/src/augmentation.js +0 -23
- package/src/errors.js +0 -23
- package/src/errorsmap.js +0 -23
- package/src/index.js +0 -23
- package/theme/aiassistant/ai-dropdown.css +0 -37
- package/theme/aiassistant/ai-form.css +0 -262
- package/theme/aiassistant/ai.css +0 -120
- package/theme/aiballoon/aiballoon.css +0 -58
- package/theme/aichat/aichat-controls/aichat-context-chip.css +0 -139
- package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +0 -207
- package/theme/aichat/aichat-controls/aichat-context-controls.css +0 -45
- package/theme/aichat/aichat-controls/aichat-controls-button.css +0 -75
- package/theme/aichat/aichat-controls/aichat-controls-loader.css +0 -77
- package/theme/aichat/aichat-controls/model-unavailable-message.css +0 -39
- package/theme/aichat/aichat-controls/prompt-capabilities.css +0 -45
- package/theme/aichat/aichat-controls/prompt-input.css +0 -78
- package/theme/aichat/aichat-controls.css +0 -121
- package/theme/aichat/aichat.css +0 -55
- package/theme/aichat/aichatballoon.css +0 -122
- package/theme/aichat/aichatfeed.css +0 -430
- package/theme/aichat/aichathistory.css +0 -264
- package/theme/aichat/aiminitoolbar.css +0 -79
- package/theme/aichat/aisuggestioncontainer.css +0 -172
- package/theme/aichatshortcuts/aichatshortcuts.css +0 -84
- package/theme/aieditorintegration/aitogglebutton.css +0 -17
- package/theme/aiquickactions/aiquickactions.css +0 -177
- package/theme/aiquickactions/aiquickactionsballoon.css +0 -119
- package/theme/aireviewcore/aireviewcore-balloon-panel-suggestion.css +0 -47
- package/theme/aireviewcore/aireviewcore-check-list.css +0 -278
- package/theme/aireviewcore/aireviewcore-check-run-result.css +0 -103
- package/theme/aireviewcore/aireviewcore-check-run.css +0 -237
- package/theme/aireviewcore/aireviewcore-review-completed.css +0 -52
- package/theme/aireviewcore/aireviewcore.css +0 -134
- package/theme/aitabs/aitabsresizebutton.css +0 -14
- package/theme/aitabs/aitabsview.css +0 -69
- package/theme/aitabs/tabs/tabbuttonview.css +0 -76
- package/theme/aitabs/tabs/tabsview.css +0 -89
- package/theme/aitranslate/aitranslate.css +0 -116
- package/theme/common/aibutton.css +0 -157
- package/theme/common/aidisclaimer.css +0 -29
- package/theme/common/aiheader.css +0 -99
- package/theme/common/ainotification.css +0 -65
- package/theme/common/aiskeleton.css +0 -54
- package/theme/common/aispinner.css +0 -58
- package/theme/common/aisuggestioncontentpartstate.css +0 -33
- package/theme/common/aisuggestioncontentparttoolbar.css +0 -34
- package/theme/common/aisuggestionstreamablecontent.css +0 -62
- package/theme/common/aitrackchanges.css +0 -29
- /package/{src → dist}/aiactions/model/aiactionsreply.d.ts +0 -0
- /package/{src → dist}/aiassistant/legacyerrors.d.ts +0 -0
- /package/{src → dist}/aichat/ui/feed/aichatfeederroritemview.d.ts +0 -0
- /package/{src → dist}/aichat/utils/eventnames.d.ts +0 -0
- /package/{src → dist}/aicore/model/aicontext.d.ts +0 -0
- /package/{src → dist}/aicore/utils/documentposition.d.ts +0 -0
- /package/{src → dist}/aicore/utils/documentrange.d.ts +0 -0
- /package/{src → dist}/aicore/utils/eventnames.d.ts +0 -0
- /package/{src → dist}/aicore/utils/htmlparser.d.ts +0 -0
- /package/{src → dist}/aicore/utils/htmlstreamer.d.ts +0 -0
- /package/{src → dist}/aicore/utils/scrollmanager.d.ts +0 -0
- /package/{src → dist}/aiquickactions/ui/aiquickactionsfilteredlistview.d.ts +0 -0
- /package/{src → dist}/aireviewcore/model/aireviewcheck.d.ts +0 -0
- /package/{src → dist}/aireviewcore/model/aireviewsystemcheckrun.d.ts +0 -0
- /package/{src → dist}/aireviewcore/types.d.ts +0 -0
- /package/{src → dist}/aireviewmode/aireviewcheckdefinitions.d.ts +0 -0
- /package/{src → dist}/aireviewmode/aireviewmodeui.d.ts +0 -0
- /package/{src → dist}/aireviewmode/model/aireviewcheckcustom.d.ts +0 -0
- /package/{src → dist}/aireviewmode/model/aireviewcheckextra.d.ts +0 -0
- /package/{src → dist}/aireviewmode/model/aireviewcustomcheckrun.d.ts +0 -0
- /package/{src → dist}/aireviewmode/model/aireviewextracheckrun.d.ts +0 -0
- /package/{src → dist}/aireviewmode/model/aireviewmodechecklist.d.ts +0 -0
- /package/{src → dist}/aitranslate/aitranslateui.d.ts +0 -0
- /package/{src → dist}/aitranslate/model/aitranslatecheck.d.ts +0 -0
- /package/{src → dist}/aitranslate/model/aitranslatechecklist.d.ts +0 -0
- /package/{src → dist}/aitranslate/model/aitranslatecheckrun.d.ts +0 -0
- /package/{src → dist}/aitranslate/ui/aitranslatechecklistview.d.ts +0 -0
- /package/{src → dist}/augmentation.d.ts +0 -0
- /package/{src → dist}/errors.d.ts +0 -0
- /package/{src → dist}/errorsmap.d.ts +0 -0
|
@@ -2,19 +2,11 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import { type Editor, type Context, ContextPlugin } from 'ckeditor5
|
|
5
|
+
import { type Editor, type Context, ContextPlugin } from '@ckeditor/ckeditor5-core';
|
|
6
|
+
import { CloudServices } from '@ckeditor/ckeditor5-cloud-services';
|
|
6
7
|
import { type AIContextItemRequestData, type AIContextItemType } from './model/aicontext.js';
|
|
7
8
|
import { type AICapabilitiesRequestData } from './model/aicapabilities.js';
|
|
8
|
-
|
|
9
|
-
CONTINUE = "continue",
|
|
10
|
-
FIX_GRAMMAR = "fix-grammar",
|
|
11
|
-
IMPROVE_WRITING = "improve-writing",
|
|
12
|
-
MAKE_LONGER = "make-longer",
|
|
13
|
-
MAKE_SHORTER = "make-shorter",
|
|
14
|
-
MAKE_TONE_CASUAL = "make-tone-casual",
|
|
15
|
-
MAKE_TONE_FORMAL = "make-tone-formal",
|
|
16
|
-
TRANSLATE = "translate"
|
|
17
|
-
}
|
|
9
|
+
import { type AIActionsNames } from '../aiactions/aiactions.js';
|
|
18
10
|
/**
|
|
19
11
|
* A plugin that handles communication with the AI API.
|
|
20
12
|
*/
|
|
@@ -22,7 +14,7 @@ export declare class AIConnector extends ContextPlugin {
|
|
|
22
14
|
/**
|
|
23
15
|
* @inheritDoc
|
|
24
16
|
*/
|
|
25
|
-
static get requires(): readonly [
|
|
17
|
+
static get requires(): readonly [typeof CloudServices];
|
|
26
18
|
/**
|
|
27
19
|
* @inheritDoc
|
|
28
20
|
*/
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aicore/aiediting
|
|
7
7
|
*/
|
|
8
|
-
import { type ModelRange, type ModelDocumentFragment } from 'ckeditor5
|
|
9
|
-
import { ContextPlugin, type Context, Editor } from 'ckeditor5
|
|
8
|
+
import { type ModelRange, type ModelDocumentFragment } from '@ckeditor/ckeditor5-engine';
|
|
9
|
+
import { ContextPlugin, type Context, Editor } from '@ckeditor/ckeditor5-core';
|
|
10
10
|
export declare const AI_VISUAL_SELECTION_MARKER_NAME = "ai-selection";
|
|
11
11
|
export declare class AIEditing extends ContextPlugin {
|
|
12
12
|
/**
|
|
@@ -52,13 +52,34 @@ export declare class AIEditing extends ContextPlugin {
|
|
|
52
52
|
* it is necessary to provide an `id` when showing fake selection. Then, when the fake selection should be hidden, `id` must be
|
|
53
53
|
* passed as well. This mechanism prevents a feature from mistakenly hiding a fake selection set by another feature.
|
|
54
54
|
*/
|
|
55
|
-
showFakeVisualSelection(
|
|
55
|
+
showFakeVisualSelection(fakeSelectionData: FakeSelectionData): void;
|
|
56
56
|
/**
|
|
57
57
|
* Removes a fake visual selection from the document.
|
|
58
58
|
*
|
|
59
|
-
*
|
|
60
|
-
* called. This mechanism prevents a feature from mistakenly hiding a fake selection set by another feature.
|
|
59
|
+
* @param id ID of the fake visual selection to remove.
|
|
61
60
|
*/
|
|
62
|
-
hideFakeVisualSelection(id: string):
|
|
61
|
+
hideFakeVisualSelection(id: string): void;
|
|
63
62
|
modelToDataWithIds(modelFragment: ModelDocumentFragment): Promise<string>;
|
|
64
63
|
}
|
|
64
|
+
type FakeSelectionData = {
|
|
65
|
+
/**
|
|
66
|
+
* Ranges on which fake selection should be shown.
|
|
67
|
+
*/
|
|
68
|
+
ranges: Array<ModelRange>;
|
|
69
|
+
/**
|
|
70
|
+
* Fake selection ID.
|
|
71
|
+
*
|
|
72
|
+
* Used when removing fake selection.
|
|
73
|
+
*
|
|
74
|
+
* Used as a part of CSS class set on fake selection DOM elements (`ck-fake-ai-selection-${ id }`).
|
|
75
|
+
*/
|
|
76
|
+
id: string;
|
|
77
|
+
/**
|
|
78
|
+
* Fake selection priority.
|
|
79
|
+
*
|
|
80
|
+
* There can be only one fake selection displayed at once. Priority is used to inform which fake selection should be displayed when
|
|
81
|
+
* multiple features asked to show fake selection on different ranges.
|
|
82
|
+
*/
|
|
83
|
+
priority: number;
|
|
84
|
+
};
|
|
85
|
+
export {};
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export declare const CAPABILITIES_MODEL_EVENT_NAMES: readonly ["capabilitiesUpdated"];
|
|
6
6
|
declare const AICapabilities_base: {
|
|
7
|
-
new (): import("ckeditor5
|
|
8
|
-
prototype: import("ckeditor5
|
|
7
|
+
new (): import("@ckeditor/ckeditor5-utils").Emitter;
|
|
8
|
+
prototype: import("@ckeditor/ckeditor5-utils").Emitter;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Manages the AI capabilities configuration and state.
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { type AIConnector } from '../aiconnector.js';
|
|
6
6
|
import { AIReply } from './aireply.js';
|
|
7
|
-
import { type Editor } from 'ckeditor5
|
|
7
|
+
import { type Editor } from '@ckeditor/ckeditor5-core';
|
|
8
8
|
declare const AIInteraction_base: {
|
|
9
|
-
new (): import("ckeditor5
|
|
10
|
-
prototype: import("ckeditor5
|
|
9
|
+
new (): import("@ckeditor/ckeditor5-utils").Emitter;
|
|
10
|
+
prototype: import("@ckeditor/ckeditor5-utils").Emitter;
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
13
|
* An interaction is a single request to the AI endpoint. It is created when a user message is sent and finishes when the
|
|
@@ -15,7 +15,8 @@ declare const AIInteraction_base: {
|
|
|
15
15
|
*
|
|
16
16
|
* An interaction hosts a collection of {@link #replies} and fires various events that may be handled to update the UI accordingly.
|
|
17
17
|
*
|
|
18
|
-
* This is
|
|
18
|
+
* @experimental **Experimental:** This is a production-ready API but may change in minor releases
|
|
19
|
+
* without the standard deprecation policy. Check the changelog for migration guidance.
|
|
19
20
|
*/
|
|
20
21
|
export declare abstract class AIInteraction extends /* #__PURE__ */ AIInteraction_base {
|
|
21
22
|
/**
|
|
@@ -33,29 +34,32 @@ export declare abstract class AIInteraction extends /* #__PURE__ */ AIInteractio
|
|
|
33
34
|
*/
|
|
34
35
|
currentReply?: AIReply;
|
|
35
36
|
constructor({ connector, editor }: AIInteractionOptions);
|
|
36
|
-
/**
|
|
37
|
-
* Starts the interaction. It sends the user message to the AI endpoint and starts listening for replies.
|
|
38
|
-
*
|
|
39
|
-
* As the data is received from the AI endpoint, `AIInteraction` handle these data chunks and fires various events. These events
|
|
40
|
-
* can be further handled in order to update the UI accordingly.
|
|
41
|
-
*
|
|
42
|
-
* Interaction can be stopped by calling the {@link #stop} method.
|
|
43
|
-
*/
|
|
44
|
-
start(): Promise<void>;
|
|
45
37
|
/**
|
|
46
38
|
* Stops the interaction. It marks the last reply as done and aborts the current request to the AI endpoint.
|
|
39
|
+
*
|
|
40
|
+
* @experimental **Experimental:** This is a production-ready API but may change in minor releases
|
|
41
|
+
* without the standard deprecation policy. Check the changelog for migration guidance.
|
|
47
42
|
*/
|
|
48
43
|
stop(): void;
|
|
49
44
|
/**
|
|
50
45
|
* Gets a reply by its ID.
|
|
46
|
+
*
|
|
47
|
+
* @experimental **Experimental:** This is a production-ready API but may change in minor releases
|
|
48
|
+
* without the standard deprecation policy. Check the changelog for migration guidance.
|
|
51
49
|
*/
|
|
52
50
|
getReply(id: string): AIReply | undefined;
|
|
53
51
|
/**
|
|
54
52
|
* Destroys the interaction. It marks the last reply as done and aborts the current request to the AI endpoint.
|
|
53
|
+
*
|
|
54
|
+
* @experimental **Experimental:** This is a production-ready API but may change in minor releases
|
|
55
|
+
* without the standard deprecation policy. Check the changelog for migration guidance.
|
|
55
56
|
*/
|
|
56
57
|
destroy(): void;
|
|
57
58
|
/**
|
|
58
59
|
* Creates a reply and adds it to the interaction.
|
|
60
|
+
*
|
|
61
|
+
* @experimental **Experimental:** This is a production-ready API but may change in minor releases
|
|
62
|
+
* without the standard deprecation policy. Check the changelog for migration guidance.
|
|
59
63
|
*/
|
|
60
64
|
createReply(options: ConstructorParameters<typeof AIReply>[0]): AIReply;
|
|
61
65
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module ai/aicore/model/aimodels
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { type Locale } from 'ckeditor5
|
|
9
|
+
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
10
10
|
import { type AIConnector, type AIModelData } from '../../aicore/aiconnector.js';
|
|
11
11
|
/**
|
|
12
12
|
* Configuration for AI models.
|
|
@@ -21,13 +21,15 @@ export interface AIModelsConfig {
|
|
|
21
21
|
*/
|
|
22
22
|
displayedModels?: string | Array<string>;
|
|
23
23
|
/**
|
|
24
|
-
* Decides whether the model selector UI is visible across all AI features (Chat and Review Mode).
|
|
24
|
+
* Decides whether the model selector UI is visible across all AI features (Chat and Review Mode).
|
|
25
|
+
*
|
|
26
|
+
* @default true
|
|
25
27
|
*/
|
|
26
28
|
showModelSelector?: boolean;
|
|
27
29
|
}
|
|
28
30
|
declare const AIModels_base: {
|
|
29
|
-
new (): import("ckeditor5
|
|
30
|
-
prototype: import("ckeditor5
|
|
31
|
+
new (): import("@ckeditor/ckeditor5-utils").Emitter;
|
|
32
|
+
prototype: import("@ckeditor/ckeditor5-utils").Emitter;
|
|
31
33
|
};
|
|
32
34
|
/**
|
|
33
35
|
* Stores the list of available AI models acquired from the AI connector.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import { Element, Document } from '../utils/htmlparser.js';
|
|
6
|
-
import { type Editor } from 'ckeditor5
|
|
6
|
+
import { type Editor } from '@ckeditor/ckeditor5-core';
|
|
7
7
|
import { type AISuggestionContentPartDefinition } from '../utils/getsuggestionpartsfromreply.js';
|
|
8
8
|
import type { AISource } from '../aiconnector.js';
|
|
9
9
|
/**
|
|
@@ -14,8 +14,8 @@ import type { AISource } from '../aiconnector.js';
|
|
|
14
14
|
*/
|
|
15
15
|
export type AIReplyType = 'modification' | 'text';
|
|
16
16
|
declare const AIReply_base: {
|
|
17
|
-
new (): import("ckeditor5
|
|
18
|
-
prototype: import("ckeditor5
|
|
17
|
+
new (): import("@ckeditor/ckeditor5-utils").Observable;
|
|
18
|
+
prototype: import("@ckeditor/ckeditor5-utils").Observable;
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
21
21
|
* Represents a single reply from the AI endpoint.
|
|
@@ -37,6 +37,8 @@ export declare class AIReply extends /* #__PURE__ */ AIReply_base {
|
|
|
37
37
|
readonly type: AIReplyType;
|
|
38
38
|
/**
|
|
39
39
|
* The content of the reply as received from AI endpoint.
|
|
40
|
+
*
|
|
41
|
+
* @observable
|
|
40
42
|
*/
|
|
41
43
|
content: string;
|
|
42
44
|
/**
|
|
@@ -45,25 +47,20 @@ export declare class AIReply extends /* #__PURE__ */ AIReply_base {
|
|
|
45
47
|
sources: Array<AISource>;
|
|
46
48
|
/**
|
|
47
49
|
* The parsed content of the reply.
|
|
50
|
+
*
|
|
51
|
+
* This property is automatically updated after reply {@link #content} changes. You can add a listener to `replyContentUpdated` event
|
|
52
|
+
* in order to react to these changes.
|
|
53
|
+
*
|
|
54
|
+
* Note, that this property type is not DOM Document, but a simplified version provided by `domhandler` library.
|
|
48
55
|
*/
|
|
49
56
|
parsedContent: Document;
|
|
50
|
-
/**
|
|
51
|
-
* The parsed content of the reply after merging with the current document context.
|
|
52
|
-
*/
|
|
53
|
-
parsedMergedContent: Document;
|
|
54
|
-
/**
|
|
55
|
-
* TODO
|
|
56
|
-
*/
|
|
57
|
-
changeGroups: Array<AIReplyChangeGroup>;
|
|
58
57
|
/**
|
|
59
58
|
* Whether the reply is done. The reply is done once the AI endpoint emitted the last chunk of the content
|
|
60
59
|
* that matches the reply's type.
|
|
60
|
+
*
|
|
61
|
+
* @observable
|
|
61
62
|
*/
|
|
62
63
|
isDone: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* The document context of the reply.
|
|
65
|
-
*/
|
|
66
|
-
documentContextContent: Document;
|
|
67
64
|
/**
|
|
68
65
|
* @inheritDoc
|
|
69
66
|
*/
|
|
@@ -83,29 +80,10 @@ export declare class AIReply extends /* #__PURE__ */ AIReply_base {
|
|
|
83
80
|
* See {@link #content} for more information.
|
|
84
81
|
*/
|
|
85
82
|
appendContent(content: string): void;
|
|
86
|
-
/**
|
|
87
|
-
* Marks the reply as done.
|
|
88
|
-
*
|
|
89
|
-
* See {@link #isDone} for more information.
|
|
90
|
-
*/
|
|
91
|
-
done(): void;
|
|
92
83
|
/**
|
|
93
84
|
* Destroys the reply.
|
|
94
85
|
*/
|
|
95
86
|
destroy(): void;
|
|
96
|
-
/**
|
|
97
|
-
* Changes the state of change group at `index` to `state`.
|
|
98
|
-
*
|
|
99
|
-
* Fires event.
|
|
100
|
-
*/
|
|
101
|
-
setChangeGroupState(index: number, state: AIReplyChangeGroupState): void;
|
|
102
|
-
/**
|
|
103
|
-
* Returns the content parts of the reply that correspond to {@link #changeGroups}.
|
|
104
|
-
*/
|
|
105
|
-
getContentParts({ showDiff, groupIndex }: {
|
|
106
|
-
showDiff: boolean;
|
|
107
|
-
groupIndex?: number;
|
|
108
|
-
}): Array<AISuggestionContentPartDefinition>;
|
|
109
87
|
}
|
|
110
88
|
/**
|
|
111
89
|
* An event emitted by an {@link module:ai/aicore/model/aireply~AIReply} when it's
|
|
@@ -120,22 +98,6 @@ export type AIReplyContentUpdatedEvent = {
|
|
|
120
98
|
updatedChangeGroups?: Array<AIReplyChangeGroup>
|
|
121
99
|
];
|
|
122
100
|
};
|
|
123
|
-
/**
|
|
124
|
-
* An event emitted by an {@link module:ai/aicore/model/aireply~AIReply} when it's
|
|
125
|
-
* {@link module:ai/aicore/model/aireply~AIReply#content} gets updated or the reply is marked as done.
|
|
126
|
-
*
|
|
127
|
-
* @eventName ~AIReply#replyContentUpdated
|
|
128
|
-
*/
|
|
129
|
-
export type AIReplyChangeGroupStateUpdated = {
|
|
130
|
-
name: 'replyChangeGroupStateUpdated';
|
|
131
|
-
args: [
|
|
132
|
-
{
|
|
133
|
-
reply: AIReply;
|
|
134
|
-
index: number;
|
|
135
|
-
state: AIReplyChangeGroupState;
|
|
136
|
-
}
|
|
137
|
-
];
|
|
138
|
-
};
|
|
139
101
|
export type AIReplyHotNode = {
|
|
140
102
|
node: Element;
|
|
141
103
|
id: string;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { type Element, type Document } from '../utils/htmlparser.js';
|
|
6
6
|
declare const AIResponseApplier_base: {
|
|
7
|
-
new (): import("ckeditor5
|
|
8
|
-
prototype: import("ckeditor5
|
|
7
|
+
new (): import("@ckeditor/ckeditor5-utils").Observable;
|
|
8
|
+
prototype: import("@ckeditor/ckeditor5-utils").Observable;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* AIResponseApplier is a part of the AI API response processing pipeline.
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { type Document } from '../utils/htmlparser.js';
|
|
6
6
|
declare const AIResponseParser_base: {
|
|
7
|
-
new (): import("ckeditor5
|
|
8
|
-
prototype: import("ckeditor5
|
|
7
|
+
new (): import("@ckeditor/ckeditor5-utils").Observable;
|
|
8
|
+
prototype: import("@ckeditor/ckeditor5-utils").Observable;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* An utility for parsing AI responses.
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aicore/ui/aidisclaimerview
|
|
7
7
|
*/
|
|
8
|
-
import { type Locale } from 'ckeditor5
|
|
9
|
-
import { View } from 'ckeditor5
|
|
8
|
+
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
9
|
+
import { View } from '@ckeditor/ckeditor5-ui';
|
|
10
10
|
import '../../../theme/common/aidisclaimer.css';
|
|
11
11
|
/**
|
|
12
12
|
* The disclaimer view of the AI plugin.
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aicore/ui/aiskeleton
|
|
7
7
|
*/
|
|
8
|
-
import { View } from 'ckeditor5
|
|
9
|
-
import { type Locale } from 'ckeditor5
|
|
8
|
+
import { View } from '@ckeditor/ckeditor5-ui';
|
|
9
|
+
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
10
10
|
import '../../../theme/common/aiskeleton.css';
|
|
11
11
|
export declare class AISkeletonView extends View {
|
|
12
12
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aicore/ui/aispinner
|
|
7
7
|
*/
|
|
8
|
-
import { SpinnerView } from 'ckeditor5
|
|
8
|
+
import { SpinnerView } from '@ckeditor/ckeditor5-ui';
|
|
9
9
|
import '../../../theme/common/aispinner.css';
|
|
10
10
|
export declare class AISpinnerView extends SpinnerView {
|
|
11
11
|
/**
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aicore/ui/suggestioncontainer/aiminitoolbarview
|
|
7
7
|
*/
|
|
8
|
-
import { type Locale } from 'ckeditor5
|
|
9
|
-
import { ToolbarView, type ViewCollection } from 'ckeditor5
|
|
8
|
+
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
9
|
+
import { ToolbarView, type ViewCollection } from '@ckeditor/ckeditor5-ui';
|
|
10
10
|
import '../../../../theme/aichat/aiminitoolbar.css';
|
|
11
11
|
/**
|
|
12
12
|
* Configuration interface for AIMiniToolbarView buttons.
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aicore/ui/suggestioncontainer/aisuggestionbodyview
|
|
7
7
|
*/
|
|
8
|
-
import { type Locale } from 'ckeditor5
|
|
9
|
-
import { type BodyCollection, View } from 'ckeditor5
|
|
8
|
+
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
9
|
+
import { type BodyCollection, View } from '@ckeditor/ckeditor5-ui';
|
|
10
10
|
import { AISuggestionBodyViewContentPartView } from './aisuggestioncontentpartview.js';
|
|
11
11
|
import { type AIContentRenderingStrategy } from './aisuggestionstreamablecontentview.js';
|
|
12
12
|
import { type AISuggestionContentPartDefinition } from '../../utils/getsuggestionpartsfromreply.js';
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aicore/ui/suggestioncontainer/aisuggestioncontainerview
|
|
7
7
|
*/
|
|
8
|
-
import { type Locale } from 'ckeditor5
|
|
9
|
-
import { View, type BodyCollection } from 'ckeditor5
|
|
8
|
+
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
9
|
+
import { View, type BodyCollection } from '@ckeditor/ckeditor5-ui';
|
|
10
10
|
import { type AISuggestionContentPartDefinition } from '../../utils/getsuggestionpartsfromreply.js';
|
|
11
11
|
import { type AIContentRenderingStrategy } from './aisuggestionstreamablecontentview.js';
|
|
12
12
|
import { type AISource } from '../../aiconnector.js';
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview
|
|
7
7
|
*/
|
|
8
|
-
import { View } from 'ckeditor5
|
|
8
|
+
import { View } from '@ckeditor/ckeditor5-ui';
|
|
9
9
|
import { type AISuggestionActionName } from '../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';
|
|
10
10
|
import { type AISuggestionContentPartDefinition } from '../../utils/getsuggestionpartsfromreply.js';
|
|
11
|
-
import { type Locale } from 'ckeditor5
|
|
11
|
+
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
12
12
|
import { AISuggestionContentPartToolbarView } from './aisuggestioncontentparttoolbarview.js';
|
|
13
13
|
import { type AIReplyChangeGroupState } from '../../model/aireply.js';
|
|
14
14
|
/**
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview
|
|
7
7
|
*/
|
|
8
|
-
import { IconView, View } from 'ckeditor5
|
|
9
|
-
import { type Locale } from 'ckeditor5
|
|
8
|
+
import { IconView, View } from '@ckeditor/ckeditor5-ui';
|
|
9
|
+
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
10
10
|
import '../../../../theme/common/aisuggestioncontentpartstate.css';
|
|
11
11
|
export declare const ICON_STATE_MAP: {
|
|
12
12
|
readonly accepted: string;
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview
|
|
7
7
|
*/
|
|
8
|
-
import { ToolbarView } from 'ckeditor5
|
|
9
|
-
import { type Locale } from 'ckeditor5
|
|
8
|
+
import { ToolbarView } from '@ckeditor/ckeditor5-ui';
|
|
9
|
+
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
10
10
|
import { type AISuggestionActionName } from '../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';
|
|
11
11
|
import '../../../../theme/common/aisuggestioncontentparttoolbar.css';
|
|
12
12
|
/**
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aicore/ui/suggestioncontainer/aisuggestioncontentpartview
|
|
7
7
|
*/
|
|
8
|
-
import { type Locale } from 'ckeditor5
|
|
9
|
-
import { View } from 'ckeditor5
|
|
8
|
+
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
9
|
+
import { View } from '@ckeditor/ckeditor5-ui';
|
|
10
10
|
import { type AISuggestionContentPartDefinition } from '../../utils/getsuggestionpartsfromreply.js';
|
|
11
11
|
import { type AIReplyChangeGroupState } from '../../model/aireply.js';
|
|
12
12
|
import { type AISuggestionActionName } from '../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aicore/ui/suggestioncontainer/aisuggestionheaderview
|
|
7
7
|
*/
|
|
8
|
-
import { type Locale } from 'ckeditor5
|
|
9
|
-
import { ButtonView, View } from 'ckeditor5
|
|
8
|
+
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
9
|
+
import { ButtonView, View } from '@ckeditor/ckeditor5-ui';
|
|
10
10
|
/**
|
|
11
11
|
* The header of the suggestion container.
|
|
12
12
|
*
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aicore/ui/suggestioncontainer/aisuggestionloaderview
|
|
7
7
|
*/
|
|
8
|
-
import { View } from 'ckeditor5
|
|
9
|
-
import { type Locale } from 'ckeditor5
|
|
8
|
+
import { View } from '@ckeditor/ckeditor5-ui';
|
|
9
|
+
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
10
10
|
/**
|
|
11
11
|
* The view that displays the loader for the suggestion ("AI is writing..." text and a spinner).
|
|
12
12
|
*/
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview
|
|
7
7
|
*/
|
|
8
|
-
import { View } from 'ckeditor5
|
|
9
|
-
import { type Locale } from 'ckeditor5
|
|
8
|
+
import { View } from '@ckeditor/ckeditor5-ui';
|
|
9
|
+
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
10
10
|
import { type AISuggestionContentPartDefinition } from '../../utils/getsuggestionpartsfromreply.js';
|
|
11
11
|
import '../../../../theme/common/aisuggestionstreamablecontent.css';
|
|
12
12
|
/**
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aicore/ui/suggestioncontainer/aiwebsourcesview
|
|
7
7
|
*/
|
|
8
|
-
import { View, ButtonView, BalloonPanelView, type BodyCollection } from 'ckeditor5
|
|
9
|
-
import { type Locale } from 'ckeditor5
|
|
8
|
+
import { View, ButtonView, BalloonPanelView, type BodyCollection } from '@ckeditor/ckeditor5-ui';
|
|
9
|
+
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
10
10
|
import { type AISource } from '../../aiconnector.js';
|
|
11
11
|
/**
|
|
12
12
|
* The view that displays the web sources of the suggestion.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aicore/utils/buttonclasses
|
|
7
|
+
*/
|
|
8
|
+
export declare const AI_BUTTON_CLASSES: {
|
|
9
|
+
readonly PRIMARY: "ck-ai-button-primary";
|
|
10
|
+
readonly SECONDARY: "ck-ai-button-secondary";
|
|
11
|
+
readonly TERTIARY: "ck-ai-button-tertiary";
|
|
12
|
+
};
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aicore/utils/common-translations
|
|
7
7
|
*/
|
|
8
|
-
import type { Locale } from 'ckeditor5
|
|
8
|
+
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
9
9
|
export declare function getTranslation(locale: Locale, id: string, values?: string | number | Array<string | number>): string;
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aicore/utils/createresizebutton
|
|
7
7
|
*/
|
|
8
|
-
import type { Locale } from 'ckeditor5
|
|
9
|
-
import { ButtonView, type View } from 'ckeditor5
|
|
8
|
+
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
9
|
+
import { ButtonView, type View } from '@ckeditor/ckeditor5-ui';
|
|
10
10
|
import '../../../theme/aitabs/aitabsresizebutton.css';
|
|
11
11
|
export declare function createResizeButton<T extends View & {
|
|
12
12
|
isMaximized: boolean;
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import { type ContextInterface, Editor } from 'ckeditor5
|
|
5
|
+
import { type ContextInterface, Editor } from '@ckeditor/ckeditor5-core';
|
|
6
6
|
export declare function getEditorFromContext(context: ContextInterface): Editor;
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aicore/utils/getoperationsfromreply
|
|
7
7
|
*/
|
|
8
|
-
import { type DocumentCompare, type DocumentCompareOptions } from 'ckeditor5-collaboration
|
|
9
|
-
import { type Operation } from 'ckeditor5
|
|
8
|
+
import { type DocumentCompare, type DocumentCompareOptions } from '@ckeditor/ckeditor5-collaboration-core';
|
|
9
|
+
import { type Operation } from '@ckeditor/ckeditor5-engine';
|
|
10
10
|
import { type AIInteraction } from '../model/aiinteraction.js';
|
|
11
11
|
import type { AIReply, AIReplyChangeGroup } from '../model/aireply.js';
|
|
12
|
-
import { type Editor } from 'ckeditor5
|
|
12
|
+
import { type Editor } from '@ckeditor/ckeditor5-core';
|
|
13
13
|
export declare function getOperationsFromReply({ editor, interaction, reply, groups, transform, documentCompare, documentCompareOptions }: {
|
|
14
14
|
editor: Editor;
|
|
15
15
|
interaction: AIInteraction;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aicore/utils/getsuggestionpartsfromreply
|
|
7
7
|
*/
|
|
8
|
-
import { type Editor } from 'ckeditor5
|
|
8
|
+
import { type Editor } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
import { Document } from './htmlparser.js';
|
|
10
10
|
import { type AIReplyChangeGroup } from '../model/aireply.js';
|
|
11
11
|
export declare function getSuggestionPartsFromReply({ editor, changeGroups, documentContextContent, showDiff, trimUnchanged }: {
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
* @module ai/aieditorintegration/aieditorintegration
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5
|
|
9
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
10
10
|
import { AIToggleButtonUI } from './aitogglebutton/aitogglebuttonui.js';
|
|
11
11
|
import { AIChatBalloon } from '../aichat/aichatballoon.js';
|
|
12
|
-
import { SuggestionsConversion } from 'ckeditor5-collaboration
|
|
12
|
+
import { SuggestionsConversion } from '@ckeditor/ckeditor5-collaboration-core';
|
|
13
13
|
/**
|
|
14
14
|
* The AI Editor Integration plugin. It registers AI-related components in the editor
|
|
15
15
|
* and provides the necessary UI elements for AI functionality.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module ai/aieditorintegration/aitogglebutton/aitogglebuttonui
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5
|
|
9
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
10
10
|
import { AITabs } from '../../aitabs/aitabs.js';
|
|
11
11
|
import '../../../theme/aieditorintegration/aitogglebutton.css';
|
|
12
12
|
/**
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module ai/aieditorintegration/aitogglebutton/toggleaicommand
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Command, type Editor } from 'ckeditor5
|
|
9
|
+
import { Command, type Editor } from '@ckeditor/ckeditor5-core';
|
|
10
10
|
export declare class ToggleAICommand extends Command {
|
|
11
11
|
constructor(editor: Editor);
|
|
12
12
|
/**
|