@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
package/LICENSE.md
CHANGED
|
@@ -28,10 +28,11 @@ The following libraries are included in CKEditor 5 under the [BSD-3-Clause
|
|
|
28
28
|
The following libraries are included in CKEditor 5 under the [MIT license](https://opensource.org/licenses/MIT):
|
|
29
29
|
|
|
30
30
|
* dom-serializer - Copyright (c) 2014 The cheeriojs contributors.
|
|
31
|
-
* es-toolkit - Copyright (c) 2024 Viva Republica, Inc.
|
|
31
|
+
* es-toolkit - Copyright (c) 2024 Viva Republica, Inc and Copyright OpenJS Foundation and other contributors.
|
|
32
32
|
* eventsource-parser - Copyright (c) 2025 Espen Hovlandsdal <espen@hovlandsdal.com>.
|
|
33
33
|
* htmlparser2 - Copyright 2010, 2011, Chris Winberry <chris@winberry.net>. All rights reserved.
|
|
34
34
|
* morphdom - Copyright (c) Patrick Steele-Idem <pnidem@gmail.com> (psteeleidem.com).
|
|
35
|
+
* rehype-sanitize - Copyright (c) 2016 Titus Wormer <tituswormer@gmail.com>.
|
|
35
36
|
|
|
36
37
|
Trademarks
|
|
37
38
|
----------
|
package/ckeditor5-metadata.json
CHANGED
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
"className": "AIAssistant",
|
|
6
6
|
"description": "Introduces AI tools for generating and improving content through the use of pre-defined commands or custom queries inserted by the user",
|
|
7
7
|
"docs": "features/ai/ai-assistant/ai-assistant-overview.html",
|
|
8
|
-
"path": "src/aiassistant/aiassistant.
|
|
8
|
+
"path": "src/aiassistant/aiassistant.ts",
|
|
9
9
|
"uiComponents": [
|
|
10
10
|
{
|
|
11
11
|
"type": "SplitButton",
|
|
12
12
|
"name": "aiCommands",
|
|
13
|
-
"
|
|
13
|
+
"iconName": "IconMagicWand"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"type": "Button",
|
|
17
17
|
"name": "aiAssistant",
|
|
18
|
-
"
|
|
18
|
+
"iconName": "IconAIChat"
|
|
19
19
|
}
|
|
20
20
|
]
|
|
21
21
|
},
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
"className": "AIChat",
|
|
25
25
|
"description": "Provides an interactive chat interface for AI-powered conversations with context awareness and model selection",
|
|
26
26
|
"docs": "features/ai/ckeditor-ai-overview.html",
|
|
27
|
-
"path": "src/aichat/aichat.
|
|
27
|
+
"path": "src/aichat/aichat.ts"
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"name": "AI Review Mode",
|
|
31
31
|
"className": "AIReviewMode",
|
|
32
32
|
"description": "Enables AI-powered content review with automated checks, suggestions, and diff visualization for content improvement",
|
|
33
33
|
"docs": "features/ai/ckeditor-ai-overview.html",
|
|
34
|
-
"path": "src/aireviewmode/aireviewmode.
|
|
34
|
+
"path": "src/aireviewmode/aireviewmode.ts"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"name": "AI Translate",
|
|
@@ -45,26 +45,26 @@
|
|
|
45
45
|
"className": "AIQuickActions",
|
|
46
46
|
"description": "Provides quick access to common AI-powered actions like improve writing, change tone, translate, and custom commands",
|
|
47
47
|
"docs": "features/ai/ckeditor-ai-overview.html",
|
|
48
|
-
"path": "src/aiquickactions/aiquickactions.
|
|
48
|
+
"path": "src/aiquickactions/aiquickactions.ts",
|
|
49
49
|
"uiComponents": [
|
|
50
50
|
{
|
|
51
51
|
"type": "SplitButton",
|
|
52
52
|
"name": "aiQuickActions",
|
|
53
|
-
"
|
|
53
|
+
"iconName": "IconAIQuickActions"
|
|
54
54
|
}
|
|
55
55
|
]
|
|
56
|
-
|
|
56
|
+
},
|
|
57
57
|
{
|
|
58
58
|
"name": "AI Editor Integration",
|
|
59
59
|
"className": "AIEditorIntegration",
|
|
60
60
|
"description": "Provides integration between AI-powered features and the editor",
|
|
61
61
|
"docs": "features/ai/ckeditor-ai-overview.html",
|
|
62
|
-
"path": "src/aieditorintegration/aieditorintegration.
|
|
62
|
+
"path": "src/aieditorintegration/aieditorintegration.ts",
|
|
63
63
|
"uiComponents": [
|
|
64
64
|
{
|
|
65
65
|
"type": "Button",
|
|
66
66
|
"name": "toggleAi",
|
|
67
|
-
"
|
|
67
|
+
"iconName": "IconAIAskAI"
|
|
68
68
|
}
|
|
69
69
|
]
|
|
70
70
|
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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/aiactions/aiactions
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { type Editor, Plugin } from '@ckeditor/ckeditor5-core';
|
|
10
|
+
import { AIConnector } from '../aicore/aiconnector.js';
|
|
11
|
+
import { Dialog } from '@ckeditor/ckeditor5-ui';
|
|
12
|
+
import { AIEditing } from '../aicore/aiediting.js';
|
|
13
|
+
import { AIBalloon } from '../aiballoon/aiballoon.js';
|
|
14
|
+
import { DocumentCompare } from '@ckeditor/ckeditor5-collaboration-core';
|
|
15
|
+
/**
|
|
16
|
+
* @experimental **Experimental:** Some methods of this class are production-ready but experimental and may change
|
|
17
|
+
* in minor releases without the standard deprecation policy. Check the changelog for migration guidance.
|
|
18
|
+
*/
|
|
19
|
+
export declare class AIActions extends Plugin {
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
static get requires(): readonly [typeof AIConnector, typeof Dialog, typeof AIEditing, typeof AIBalloon, typeof DocumentCompare];
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
static get pluginName(): "AIActions";
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
static get isOfficialPlugin(): true;
|
|
32
|
+
/**
|
|
33
|
+
* @inheritDoc
|
|
34
|
+
*/
|
|
35
|
+
static get isPremiumPlugin(): true;
|
|
36
|
+
/**
|
|
37
|
+
* The busy state of the AI actions.
|
|
38
|
+
*
|
|
39
|
+
* It is set to `true` when there are AI response being streamed or rendered.
|
|
40
|
+
*
|
|
41
|
+
* @observable
|
|
42
|
+
*/
|
|
43
|
+
isBusy: boolean;
|
|
44
|
+
constructor(editor: Editor);
|
|
45
|
+
/**
|
|
46
|
+
* Stops the currently running AI action interaction, aborting any in-progress streaming and resetting the busy state.
|
|
47
|
+
*
|
|
48
|
+
* @experimental **Experimental:** This is a production-ready API but may change in minor releases
|
|
49
|
+
* without the standard deprecation policy. Check the changelog for migration guidance.
|
|
50
|
+
*/
|
|
51
|
+
stopInteraction(): void;
|
|
52
|
+
/**
|
|
53
|
+
* Executes an AI action on the current editor selection. The action processes the selected content
|
|
54
|
+
* using the AI model and displays the result in an inline balloon.
|
|
55
|
+
*
|
|
56
|
+
* @experimental **Experimental:** This is a production-ready API but may change in minor releases
|
|
57
|
+
* without the standard deprecation policy. Check the changelog for migration guidance.
|
|
58
|
+
* @param action The action definition specifying which AI action to execute.
|
|
59
|
+
* @param label The display label shown in the balloon UI while the action is being processed.
|
|
60
|
+
* @param icon Optional icon to display alongside the label in the balloon UI.
|
|
61
|
+
*/
|
|
62
|
+
executeAction(action: AIActionDefinition, label: string, icon?: string): Promise<void>;
|
|
63
|
+
/**
|
|
64
|
+
* @inheritDoc
|
|
65
|
+
*/
|
|
66
|
+
destroy(): Promise<void>;
|
|
67
|
+
private _createInteraction;
|
|
68
|
+
}
|
|
69
|
+
export declare enum AIActionsNames {
|
|
70
|
+
CONTINUE = "continue",
|
|
71
|
+
FIX_GRAMMAR = "fix-grammar",
|
|
72
|
+
IMPROVE_WRITING = "improve-writing",
|
|
73
|
+
MAKE_LONGER = "make-longer",
|
|
74
|
+
MAKE_SHORTER = "make-shorter",
|
|
75
|
+
MAKE_TONE_CASUAL = "make-tone-casual",
|
|
76
|
+
MAKE_TONE_FORMAL = "make-tone-formal",
|
|
77
|
+
TRANSLATE = "translate"
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Defines the parameters for an AI action executed via
|
|
81
|
+
* {@link module:ai/aiactions/aiactions~AIActions#executeAction `executeAction()`}.
|
|
82
|
+
*
|
|
83
|
+
* For system actions, provide `actionName`. For custom actions, provide `userMessage` and `model`.
|
|
84
|
+
*/
|
|
85
|
+
export type AIActionDefinition = {
|
|
86
|
+
actionName?: AIActionsNames;
|
|
87
|
+
args?: Record<string, string>;
|
|
88
|
+
userMessage?: string;
|
|
89
|
+
model?: string;
|
|
90
|
+
};
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
* @module ai/aiactions/model/aiactionsinteraction
|
|
7
7
|
*/
|
|
8
8
|
import { AIInteraction, type AIInteractionOptions } from '../../aicore/model/aiinteraction.js';
|
|
9
|
-
import { type
|
|
9
|
+
import { type AIConnectorRequest } from '../../aicore/aiconnector.js';
|
|
10
|
+
import { type AIActionsNames, type AIActionDefinition } from '../aiactions.js';
|
|
10
11
|
import { type AIContextItem } from '../../aicore/model/aicontext.js';
|
|
11
12
|
import { AIActionsReply } from './aiactionsreply.js';
|
|
12
|
-
import { type AIActionDefinition } from '../aiactions.js';
|
|
13
13
|
export declare class AIActionsInteraction extends AIInteraction {
|
|
14
14
|
/**
|
|
15
15
|
* The content of the document for the command to refer to.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module ai/aiassistant/adapters/aiadapter
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5
|
|
9
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
10
10
|
import { type AITextAdapter } from './aitextadapter.js';
|
|
11
11
|
/**
|
|
12
12
|
* Main adapter plugin that is a common interface between AI features and AI adapters.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module ai/aiassistant/adapters/aitextadapter
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5
|
|
9
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
10
10
|
import { AIAdapter } from './aiadapter.js';
|
|
11
11
|
/**
|
|
12
12
|
* Abstract base class for AI adapters that perform text-related requests.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module ai/aiassistant/adapters/awstextadapter
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { type Editor } from 'ckeditor5
|
|
9
|
+
import { type Editor } from '@ckeditor/ckeditor5-core';
|
|
10
10
|
import { AITextAdapter, type AITextAdapterRequestData, type AIRequestHeaders, type AIRequestParameters } from './aitextadapter.js';
|
|
11
11
|
import { type BedrockRuntimeClientConfig } from '@aws-sdk/client-bedrock-runtime';
|
|
12
12
|
/**
|
|
@@ -59,7 +59,7 @@ export declare class AWSTextAdapter extends AITextAdapter {
|
|
|
59
59
|
*
|
|
60
60
|
* ```ts
|
|
61
61
|
* ClassicEditor
|
|
62
|
-
* .create(
|
|
62
|
+
* .create( {
|
|
63
63
|
* ai: {
|
|
64
64
|
* assistant: {
|
|
65
65
|
* adapter: {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module ai/aiassistant/adapters/openaitextadapter
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { type Editor } from 'ckeditor5
|
|
9
|
+
import { type Editor } from '@ckeditor/ckeditor5-core';
|
|
10
10
|
import { AITextAdapter, type AITextAdapterRequestData, type AIRequestHeaders, type AIRequestParameters } from './aitextadapter.js';
|
|
11
11
|
/**
|
|
12
12
|
* Adapter for AI text-related requests that supports OpenAI and Azure OpenAI services.
|
|
@@ -56,7 +56,7 @@ export declare class OpenAITextAdapter extends AITextAdapter {
|
|
|
56
56
|
*
|
|
57
57
|
* ```ts
|
|
58
58
|
* ClassicEditor
|
|
59
|
-
* .create(
|
|
59
|
+
* .create( {
|
|
60
60
|
* ai: {
|
|
61
61
|
* assistant: {
|
|
62
62
|
* adapter: {
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module ai/aiassistant/aiassistant
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { type Locale } from 'ckeditor5
|
|
10
|
-
import { Plugin, type Editor } from 'ckeditor5
|
|
9
|
+
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
10
|
+
import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
|
|
11
11
|
import { AIAssistantUI } from './aiassistantui.js';
|
|
12
12
|
import { AIAssistantEditing } from './aiassistantediting.js';
|
|
13
13
|
import type { OpenAITextAdapterConfig } from './adapters/openaitextadapter.js';
|
|
@@ -53,7 +53,7 @@ export declare function getDefaultAICommands(locale: Locale): Array<AIGroupDefin
|
|
|
53
53
|
*
|
|
54
54
|
* ```ts
|
|
55
55
|
* ClassicEditor
|
|
56
|
-
* .create(
|
|
56
|
+
* .create( {
|
|
57
57
|
* ai: {
|
|
58
58
|
* assistant: {
|
|
59
59
|
* // AI Assistant configuration.
|
|
@@ -2,8 +2,8 @@
|
|
|
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 { Plugin } from 'ckeditor5
|
|
6
|
-
import { type ModelPosition } from 'ckeditor5
|
|
5
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
6
|
+
import { type ModelPosition } from '@ckeditor/ckeditor5-engine';
|
|
7
7
|
/**
|
|
8
8
|
* The AI assistant editing plugin.
|
|
9
9
|
*/
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
* @module ai/aiassistant/aiassistantui
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin, type Editor } from 'ckeditor5
|
|
10
|
-
import { Dialog } from 'ckeditor5
|
|
9
|
+
import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
|
|
10
|
+
import { Dialog } from '@ckeditor/ckeditor5-ui';
|
|
11
11
|
import { AIAssistantEditing } from './aiassistantediting.js';
|
|
12
12
|
import { AIAdapter } from './adapters/aiadapter.js';
|
|
13
13
|
import '../../theme/aiassistant/ai.css';
|
|
14
14
|
import '../../theme/aiassistant/ai-dropdown.css';
|
|
15
15
|
import '../../theme/aiassistant/ai-form.css';
|
|
16
|
-
import { ClipboardMarkersUtils } from 'ckeditor5
|
|
16
|
+
import { ClipboardMarkersUtils } from '@ckeditor/ckeditor5-clipboard';
|
|
17
17
|
/**
|
|
18
18
|
* The UI plugin of the AI assistant.
|
|
19
19
|
*/
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
import { type AITextAdapter } from '../adapters/aitextadapter.js';
|
|
6
6
|
import type { AIFormView } from './form/aiformview.js';
|
|
7
7
|
import type { AIFormToolbarViewMainActionLabel } from './form/aiformtoolbarview.js';
|
|
8
|
-
import type { Editor } from 'ckeditor5
|
|
8
|
+
import type { Editor } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
declare const AIAssistantController_base: {
|
|
10
|
-
new (): import("ckeditor5
|
|
11
|
-
prototype: import("ckeditor5
|
|
10
|
+
new (): import("@ckeditor/ckeditor5-utils").Observable;
|
|
11
|
+
prototype: import("@ckeditor/ckeditor5-utils").Observable;
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
14
|
* Controller for the AI assistant.
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aiassistant/ui/form/aiformcontentarea
|
|
7
7
|
*/
|
|
8
|
-
import { type Locale } from 'ckeditor5
|
|
9
|
-
import { View, ButtonView } from 'ckeditor5
|
|
8
|
+
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
9
|
+
import { View, ButtonView } from '@ckeditor/ckeditor5-ui';
|
|
10
10
|
/**
|
|
11
11
|
* A class representing the text area view of the AI assistant.
|
|
12
12
|
*/
|
|
@@ -2,8 +2,8 @@
|
|
|
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 { View } from 'ckeditor5
|
|
6
|
-
import type { Locale } from 'ckeditor5
|
|
5
|
+
import { View } from '@ckeditor/ckeditor5-ui';
|
|
6
|
+
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
7
7
|
/**
|
|
8
8
|
* A class representing the error view of the AI assistant.
|
|
9
9
|
*/
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aiassistant/ui/form/aiformpromptview
|
|
7
7
|
*/
|
|
8
|
-
import { type Locale } from 'ckeditor5
|
|
9
|
-
import { AutocompleteView, ButtonView, type TextareaView, type AutocompleteViewConfig } from 'ckeditor5
|
|
8
|
+
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
9
|
+
import { AutocompleteView, ButtonView, type TextareaView, type AutocompleteViewConfig } from '@ckeditor/ckeditor5-ui';
|
|
10
10
|
/**
|
|
11
11
|
* A textarea field allowing to ask AI.
|
|
12
12
|
*/
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aiassistant/ui/form/aiformtoolbarview
|
|
7
7
|
*/
|
|
8
|
-
import type { Locale } from 'ckeditor5
|
|
9
|
-
import { ToolbarView, ButtonView } from 'ckeditor5
|
|
8
|
+
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
9
|
+
import { ToolbarView, ButtonView } from '@ckeditor/ckeditor5-ui';
|
|
10
10
|
/**
|
|
11
11
|
* The action name affecting the label of {@link ~AIFormToolbarView#replaceButton}.
|
|
12
12
|
*
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aiassistant/ui/form/aiformview
|
|
7
7
|
*/
|
|
8
|
-
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5
|
|
9
|
-
import { View, type ViewWithFocusCycler } from 'ckeditor5
|
|
8
|
+
import { FocusTracker, KeystrokeHandler, type Locale } from '@ckeditor/ckeditor5-utils';
|
|
9
|
+
import { View, type ViewWithFocusCycler } from '@ckeditor/ckeditor5-ui';
|
|
10
10
|
import { AIFormToolbarView, AIFormToolbarViewMainActionLabel } from './aiformtoolbarview.js';
|
|
11
11
|
import { AIFormContentArea } from './aiformcontentarea.js';
|
|
12
12
|
import { AIFormErrorView } from './aiformerrorview.js';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aiassistant/ui/form/aihistorylistitemview
|
|
7
7
|
*/
|
|
8
|
-
import { ListItemView } from 'ckeditor5
|
|
8
|
+
import { ListItemView } from '@ckeditor/ckeditor5-ui';
|
|
9
9
|
import type { PromptHistoryEntry } from './prompthistory.js';
|
|
10
10
|
/**
|
|
11
11
|
* A list item view that displays a historical prompt
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aiassistant/ui/form/aihistorylistview
|
|
7
7
|
*/
|
|
8
|
-
import { ListView, ListItemGroupView, ButtonView, type FilteredView } from 'ckeditor5
|
|
9
|
-
import type { Locale } from 'ckeditor5
|
|
8
|
+
import { ListView, ListItemGroupView, ButtonView, type FilteredView } from '@ckeditor/ckeditor5-ui';
|
|
9
|
+
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
10
10
|
/**
|
|
11
11
|
* A list view that displays a list of AI prompts with filter pass-through.
|
|
12
12
|
*
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aiassistant/ui/form/prompthistory
|
|
7
7
|
*/
|
|
8
|
-
import { Collection } from 'ckeditor5
|
|
8
|
+
import { Collection } from '@ckeditor/ckeditor5-utils';
|
|
9
9
|
/**
|
|
10
10
|
* A collection that stores the prompt history in the session storage as a side effect.
|
|
11
11
|
*/
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module ai/aiassistant/ui/showaiassistantcommand
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Command, type Editor } from 'ckeditor5
|
|
9
|
+
import { Command, type Editor } from '@ckeditor/ckeditor5-core';
|
|
10
10
|
import type { AICommandDefinition } from '../aiassistant.js';
|
|
11
11
|
/**
|
|
12
12
|
* Command that shows the AI Assistant user interface.
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aiassistant/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 | Array<string> | number): string;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aiassistant/utils/normalizecommandsconfig
|
|
7
7
|
*/
|
|
8
|
-
import type { Locale } from 'ckeditor5
|
|
8
|
+
import type { Locale } from '@ckeditor/ckeditor5-utils';
|
|
9
9
|
import type { AIGroupDefinition, AICommandDefinition } from '../aiassistant.js';
|
|
10
10
|
export declare const UNGROUPED_COMMANDS_GROUP_ID = "_ungrouppedCommands";
|
|
11
11
|
/**
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aiballoon/aiballoon
|
|
7
7
|
*/
|
|
8
|
-
import { ContextPlugin } from 'ckeditor5
|
|
8
|
+
import { ContextPlugin } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
import { AIEditing } from '../aicore/aiediting.js';
|
|
10
10
|
import '../../theme/aiballoon/aiballoon.css';
|
|
11
|
-
import { type ModelRange } from 'ckeditor5
|
|
11
|
+
import { type ModelRange } from '@ckeditor/ckeditor5-engine';
|
|
12
12
|
import { type AIBalloonView } from './ui/aiballoonview.js';
|
|
13
13
|
/**
|
|
14
14
|
* Event names that can be fired by the AI Balloon plugin.
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aiballoon/ui/aiballoonview
|
|
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
|
export declare const AI_BALLOON_VIEW_EVENT_NAMES: readonly ["applySuggestion", "insertSuggestion", "showNext", "showPrevious"];
|
|
11
11
|
/**
|
|
12
12
|
* The base class for all balloon views used by the `AIBalloon` plugin.
|
|
@@ -0,0 +1,95 @@
|
|
|
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/aichat/aichat
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { type Context, ContextPlugin, type Editor } from '@ckeditor/ckeditor5-core';
|
|
10
|
+
import { AIChatController } from './aichatcontroller.js';
|
|
11
|
+
import { AIEditing } from '../aicore/aiediting.js';
|
|
12
|
+
import { AIChatUI } from './aichatui.js';
|
|
13
|
+
import { type AIChatContextConfig } from './model/aichatcontext.js';
|
|
14
|
+
import { AIChatHistory } from '../aichathistory/aichathistory.js';
|
|
15
|
+
/**
|
|
16
|
+
* The AI Chat feature. It brings a conversational AI that can be used to aid content creation and editing. It introduces a dynamic chat
|
|
17
|
+
* interface designed to facilitate rich, multi-turn interactions between users and an AI Assistant.
|
|
18
|
+
*
|
|
19
|
+
* You can configure the feature by setting the {@link module:ai/aichat/aichat~AIChatConfig} property.
|
|
20
|
+
*
|
|
21
|
+
* See {@link module:ai/aichat/aichatcontroller~AIChatController} to learn about the public API available for this feature.
|
|
22
|
+
*
|
|
23
|
+
* Learn more about AI features in CKEditor in the {@glink features/ai/ckeditor-ai-overview AI Overview} documentation.
|
|
24
|
+
*/
|
|
25
|
+
export declare class AIChat extends ContextPlugin {
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static get requires(): readonly [typeof AIChatController, typeof AIEditing, typeof AIChatUI, typeof AIChatHistory];
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
static get pluginName(): "AIChat";
|
|
34
|
+
/**
|
|
35
|
+
* @inheritDoc
|
|
36
|
+
*/
|
|
37
|
+
static get isOfficialPlugin(): true;
|
|
38
|
+
/**
|
|
39
|
+
* @inheritDoc
|
|
40
|
+
*/
|
|
41
|
+
static get isPremiumPlugin(): true;
|
|
42
|
+
constructor(context: Context | Editor);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The configuration of the {@link module:ai/aichat/aichat~AIChat AI Chat feature}.
|
|
46
|
+
*
|
|
47
|
+
* The properties defined in this config are set in the `config.ai.chat` namespace.
|
|
48
|
+
*
|
|
49
|
+
* ```ts
|
|
50
|
+
* ClassicEditor
|
|
51
|
+
* .create( {
|
|
52
|
+
* ai: {
|
|
53
|
+
* chat: {
|
|
54
|
+
* // AI Chat configuration.
|
|
55
|
+
* }
|
|
56
|
+
* }
|
|
57
|
+
* } )
|
|
58
|
+
* .then( ... )
|
|
59
|
+
* .catch( ... );
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* See {@link module:ai/aiconfig~AIConfig the full AI configuration}.
|
|
63
|
+
*
|
|
64
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
65
|
+
*/
|
|
66
|
+
export interface AIChatConfig {
|
|
67
|
+
/**
|
|
68
|
+
* The configuration of the AI Chat context.
|
|
69
|
+
*
|
|
70
|
+
* Read more in {@link module:ai/aichat/model/aichatcontext~AIChatContextConfig}.
|
|
71
|
+
*/
|
|
72
|
+
context: AIChatContextConfig;
|
|
73
|
+
/**
|
|
74
|
+
* Decides which conversation will be loaded after the feature has initialized.
|
|
75
|
+
*
|
|
76
|
+
* Possible values are:
|
|
77
|
+
*
|
|
78
|
+
* * `'new'` - a new conversation is started (default),
|
|
79
|
+
* * `'lastCreated'` - the most recently created conversation will be loaded,
|
|
80
|
+
* * conversation ID - the conversation with given ID will be loaded.
|
|
81
|
+
*
|
|
82
|
+
* If `'lastCreated'` is set while the conversation history is empty, a new conversation will be started instead.
|
|
83
|
+
*
|
|
84
|
+
* If the conversation with the specified ID is not found, an error will be thrown.
|
|
85
|
+
*
|
|
86
|
+
* @default 'new'
|
|
87
|
+
*/
|
|
88
|
+
initialConversation?: string;
|
|
89
|
+
/**
|
|
90
|
+
* The welcome message to be displayed when the AI chat is initialized. When not set, the default welcome message will be used.
|
|
91
|
+
*
|
|
92
|
+
* @default 'Hi! I can help you draft, rewrite, and improve your text, explore ideas, research topics, and solve problems. How can I help right now?'
|
|
93
|
+
*/
|
|
94
|
+
welcomeMessage?: string;
|
|
95
|
+
}
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aichat/aichatballoon
|
|
7
7
|
*/
|
|
8
|
-
import { type Editor, Plugin } from 'ckeditor5
|
|
8
|
+
import { type Editor, Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
import { AIBalloon, type AIBalloonConfig } from '../aiballoon/aiballoon.js';
|
|
10
10
|
import { type AISuggestionContentPartDefinition } from '../aicore/utils/getsuggestionpartsfromreply.js';
|
|
11
11
|
import { type AIContentRenderingStrategy } from '../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';
|
|
12
12
|
import { type AIReplyChangeGroupState } from '../aicore/model/aireply.js';
|
|
13
|
-
import { Dialog } from 'ckeditor5
|
|
13
|
+
import { Dialog } from '@ckeditor/ckeditor5-ui';
|
|
14
14
|
/**
|
|
15
15
|
* The plugin responsible for the AI Balloon dialog in the Chat UI.
|
|
16
16
|
*
|