@ckeditor/ckeditor5-ai 46.1.1 → 47.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +18 -5
- package/README.md +10 -9
- package/build/ai.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/be.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/ckeditor5-metadata.json +24 -3
- package/dist/index-content.css +0 -1
- package/dist/index-editor.css +2648 -0
- package/dist/index.css +3047 -0
- package/dist/index.js +4 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +162 -1
- package/lang/translations/af.po +612 -0
- package/lang/translations/ar.po +628 -0
- package/lang/translations/ast.po +612 -0
- package/lang/translations/az.po +612 -0
- package/lang/translations/be.po +616 -0
- package/lang/translations/bg.po +612 -0
- package/lang/translations/bn.po +612 -0
- package/lang/translations/bs.po +616 -0
- package/lang/translations/ca.po +612 -0
- package/lang/translations/cs.po +616 -0
- package/lang/translations/da.po +612 -0
- package/lang/translations/de-ch.po +612 -0
- package/lang/translations/de.po +612 -0
- package/lang/translations/el.po +612 -0
- package/lang/translations/en-au.po +612 -0
- package/lang/translations/en-gb.po +612 -0
- package/lang/translations/en.po +612 -0
- package/lang/translations/eo.po +612 -0
- package/lang/translations/es-co.po +612 -0
- package/lang/translations/es.po +612 -0
- package/lang/translations/et.po +612 -0
- package/lang/translations/eu.po +612 -0
- package/lang/translations/fa.po +608 -0
- package/lang/translations/fi.po +612 -0
- package/lang/translations/fr.po +612 -0
- package/lang/translations/gl.po +612 -0
- package/lang/translations/gu.po +612 -0
- package/lang/translations/he.po +612 -0
- package/lang/translations/hi.po +612 -0
- package/lang/translations/hr.po +616 -0
- package/lang/translations/hu.po +612 -0
- package/lang/translations/hy.po +612 -0
- package/lang/translations/id.po +608 -0
- package/lang/translations/it.po +612 -0
- package/lang/translations/ja.po +608 -0
- package/lang/translations/jv.po +612 -0
- package/lang/translations/kk.po +612 -0
- package/lang/translations/km.po +608 -0
- package/lang/translations/kn.po +612 -0
- package/lang/translations/ko.po +608 -0
- package/lang/translations/ku.po +612 -0
- package/lang/translations/lt.po +616 -0
- package/lang/translations/lv.po +616 -0
- package/lang/translations/ms.po +608 -0
- package/lang/translations/nb.po +612 -0
- package/lang/translations/ne.po +612 -0
- package/lang/translations/nl.po +612 -0
- package/lang/translations/no.po +612 -0
- package/lang/translations/oc.po +612 -0
- package/lang/translations/pl.po +616 -0
- package/lang/translations/pt-br.po +612 -0
- package/lang/translations/pt.po +612 -0
- package/lang/translations/ro.po +616 -0
- package/lang/translations/ru.po +616 -0
- package/lang/translations/si.po +612 -0
- package/lang/translations/sk.po +616 -0
- package/lang/translations/sl.po +620 -0
- package/lang/translations/sq.po +612 -0
- package/lang/translations/sr-latn.po +616 -0
- package/lang/translations/sr.po +616 -0
- package/lang/translations/sv.po +612 -0
- package/lang/translations/th.po +608 -0
- package/lang/translations/ti.po +612 -0
- package/lang/translations/tk.po +612 -0
- package/lang/translations/tr.po +612 -0
- package/lang/translations/tt.po +608 -0
- package/lang/translations/ug.po +608 -0
- package/lang/translations/uk.po +616 -0
- package/lang/translations/ur.po +612 -0
- package/lang/translations/uz.po +612 -0
- package/lang/translations/vi.po +608 -0
- package/lang/translations/zh-cn.po +608 -0
- package/lang/translations/zh.po +608 -0
- package/package.json +23 -11
- package/src/aiactions/aiactions.d.ts +48 -0
- package/src/aiactions/aiactions.js +23 -0
- package/src/aiactions/model/aiactionsinteraction.d.ts +48 -0
- package/src/aiactions/model/aiactionsinteraction.js +23 -0
- package/src/aiactions/model/aiactionsreply.d.ts +15 -0
- package/src/aiactions/model/aiactionsreply.js +23 -0
- package/src/{adapters → aiassistant/adapters}/aiadapter.d.ts +1 -1
- package/src/aiassistant/adapters/aiadapter.js +23 -0
- package/src/{adapters → aiassistant/adapters}/aitextadapter.d.ts +9 -9
- package/src/aiassistant/adapters/aitextadapter.js +23 -0
- package/src/{adapters → aiassistant/adapters}/awstextadapter.d.ts +36 -23
- package/src/aiassistant/adapters/awstextadapter.js +23 -0
- package/src/{adapters → aiassistant/adapters}/openaitextadapter.d.ts +38 -25
- package/src/aiassistant/adapters/openaitextadapter.js +23 -0
- package/src/{aiassistant.d.ts → aiassistant/aiassistant.d.ts} +54 -13
- package/src/aiassistant/aiassistant.js +23 -0
- package/src/aiassistant/aiassistantediting.js +23 -0
- package/src/{aiassistantui.d.ts → aiassistant/aiassistantui.d.ts} +4 -4
- package/src/aiassistant/aiassistantui.js +23 -0
- package/src/aiassistant/legacyerrors.js +23 -0
- package/src/{ui → aiassistant/ui}/aiassistantcontroller.d.ts +5 -4
- package/src/aiassistant/ui/aiassistantcontroller.js +24 -0
- package/src/{ui → aiassistant/ui}/form/aiformcontentarea.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +23 -0
- package/src/aiassistant/ui/form/aiformerrorview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aiformpromptview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aiformtoolbarview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aiformview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aihistorylistitemview.d.ts +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aihistorylistview.d.ts +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/prompthistory.d.ts +3 -0
- package/src/aiassistant/ui/form/prompthistory.js +23 -0
- package/src/{ui → aiassistant/ui}/showaiassistantcommand.d.ts +2 -2
- package/src/aiassistant/ui/showaiassistantcommand.js +23 -0
- package/src/{utils → aiassistant/utils}/common-translations.d.ts +1 -1
- package/src/{utils → aiassistant/utils}/common-translations.js +1 -1
- package/src/{utils → aiassistant/utils}/normalizecommandsconfig.d.ts +2 -2
- package/src/{utils → aiassistant/utils}/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.d.ts +72 -0
- package/src/aiballoon/aiballoon.js +23 -0
- package/src/aiballoon/ui/aiballoondisclaimerview.d.ts +17 -0
- package/src/aiballoon/ui/aiballoondisclaimerview.js +23 -0
- package/src/aiballoon/ui/aiballoontoolbarview.d.ts +31 -0
- package/src/aiballoon/ui/aiballoontoolbarview.js +23 -0
- package/src/aiballoon/ui/aiballoonview.d.ts +109 -0
- package/src/aiballoon/ui/aiballoonview.js +23 -0
- package/src/aichat/aichat.d.ts +79 -0
- package/src/aichat/aichat.js +23 -0
- package/src/aichat/aichatcontroller.d.ts +68 -0
- package/src/aichat/aichatcontroller.js +23 -0
- package/src/aichat/aichatui.d.ts +297 -0
- package/src/aichat/aichatui.js +23 -0
- package/src/aichat/model/aichatcontext.d.ts +360 -0
- package/src/aichat/model/aichatcontext.js +23 -0
- package/src/aichat/model/aichatconversation.d.ts +270 -0
- package/src/aichat/model/aichatconversation.js +23 -0
- package/src/aichat/model/aichatinteraction.d.ts +46 -0
- package/src/aichat/model/aichatinteraction.js +23 -0
- package/src/aichat/model/aichatmodels.d.ts +77 -0
- package/src/aichat/model/aichatmodels.js +23 -0
- package/src/aichat/ui/aichatcontrolsview.d.ts +98 -0
- package/src/aichat/ui/aichatcontrolsview.js +23 -0
- package/src/aichat/ui/aichatfeedview.d.ts +114 -0
- package/src/aichat/ui/aichatfeedview.js +23 -0
- package/src/aichat/ui/aichatheaderview.d.ts +29 -0
- package/src/aichat/ui/aichatheaderview.js +23 -0
- package/src/aichat/ui/aichatview.d.ts +37 -0
- package/src/aichat/ui/aichatview.js +23 -0
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.d.ts +71 -0
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +23 -0
- package/src/aichat/ui/controls/aichatcontextitembuttonview.d.ts +46 -0
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +23 -0
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.d.ts +89 -0
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +23 -0
- package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +105 -0
- package/src/aichat/ui/controls/aichatcontextpanelview.js +23 -0
- package/src/aichat/ui/controls/aichatcontrolsloaderview.d.ts +12 -0
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +23 -0
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.d.ts +89 -0
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +23 -0
- package/src/aichat/ui/controls/aichatpromptinputview.d.ts +44 -0
- package/src/aichat/ui/controls/aichatpromptinputview.js +23 -0
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.d.ts +17 -0
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.d.ts +61 -0
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +100 -0
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourceslistview.d.ts +49 -0
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.d.ts +61 -0
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcesview.d.ts +54 -0
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.d.ts +27 -0
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +23 -0
- package/src/aichat/ui/feed/aichatfeederroritemview.d.ts +39 -0
- package/src/aichat/ui/feed/aichatfeederroritemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +29 -0
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +23 -0
- package/src/aichat/ui/feed/aichatfeeditemview.d.ts +46 -0
- package/src/aichat/ui/feed/aichatfeeditemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedreplyitemview.d.ts +46 -0
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +74 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +74 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedusermessageitem.d.ts +40 -0
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +23 -0
- package/src/aichat/utils/eventnames.d.ts +5 -0
- package/src/aichat/utils/eventnames.js +23 -0
- package/src/aichat/utils/promisequeue.d.ts +32 -0
- package/src/aichat/utils/promisequeue.js +23 -0
- package/src/aichat/utils/scrollmanager.d.ts +23 -0
- package/src/aichat/utils/scrollmanager.js +23 -0
- package/src/aichathistory/aichathistory.d.ts +30 -0
- package/src/aichathistory/aichathistory.js +23 -0
- package/src/aichathistory/aichathistorycontroller.d.ts +40 -0
- package/src/aichathistory/aichathistorycontroller.js +23 -0
- package/src/aichathistory/aichathistoryui.d.ts +112 -0
- package/src/aichathistory/aichathistoryui.js +23 -0
- package/src/aichathistory/model/aichathistoryconversations.d.ts +114 -0
- package/src/aichathistory/model/aichathistoryconversations.js +23 -0
- package/src/aichathistory/model/aichathistoryitem.d.ts +59 -0
- package/src/aichathistory/model/aichathistoryitem.js +23 -0
- package/src/aichathistory/ui/aichathistorylistitemview.d.ts +42 -0
- package/src/aichathistory/ui/aichathistorylistitemview.js +23 -0
- package/src/aichathistory/ui/aichathistorylistview.d.ts +31 -0
- package/src/aichathistory/ui/aichathistorylistview.js +23 -0
- package/src/aichathistory/ui/aichathistorysectionlistview.d.ts +17 -0
- package/src/aichathistory/ui/aichathistorysectionlistview.js +23 -0
- package/src/aichathistory/ui/aichathistoryview.d.ts +41 -0
- package/src/aichathistory/ui/aichathistoryview.js +23 -0
- package/src/aiconfig.d.ts +82 -31
- package/src/aicore/aiconnector.d.ts +302 -0
- package/src/aicore/aiconnector.js +23 -0
- package/src/aicore/aiediting.d.ts +61 -0
- package/src/aicore/aiediting.js +23 -0
- package/src/aicore/model/aicapabilities.d.ts +55 -0
- package/src/aicore/model/aicapabilities.js +23 -0
- package/src/aicore/model/aicontext.d.ts +53 -0
- package/src/aicore/model/aicontext.js +23 -0
- package/src/aicore/model/aiinteraction.d.ts +135 -0
- package/src/aicore/model/aiinteraction.js +23 -0
- package/src/aicore/model/aireply.d.ts +178 -0
- package/src/aicore/model/aireply.js +23 -0
- package/src/aicore/pipeline/airesponseapplier.d.ts +291 -0
- package/src/aicore/pipeline/airesponseapplier.js +24 -0
- package/src/aicore/pipeline/airesponseparser.d.ts +27 -0
- package/src/aicore/pipeline/airesponseparser.js +24 -0
- package/src/aicore/ui/aidisclaimerview.d.ts +17 -0
- package/src/aicore/ui/aidisclaimerview.js +23 -0
- package/src/aicore/ui/aiskeleton.d.ts +37 -0
- package/src/aicore/ui/aiskeleton.js +23 -0
- package/src/aicore/ui/aispinner.d.ts +14 -0
- package/src/aicore/ui/aispinner.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.d.ts +62 -0
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +38 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +80 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +39 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.d.ts +39 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +23 -0
- package/src/aicore/utils/common-translations.d.ts +9 -0
- package/src/aicore/utils/common-translations.js +23 -0
- package/src/aicore/utils/createresizebutton.d.ts +12 -0
- package/src/aicore/utils/createresizebutton.js +23 -0
- package/src/aicore/utils/documentposition.d.ts +41 -0
- package/src/aicore/utils/documentposition.js +23 -0
- package/src/aicore/utils/documentrange.d.ts +46 -0
- package/src/aicore/utils/documentrange.js +23 -0
- package/src/aicore/utils/eventnames.d.ts +9 -0
- package/src/aicore/utils/eventnames.js +23 -0
- package/src/aicore/utils/geteditorfromcontext.d.ts +6 -0
- package/src/aicore/utils/geteditorfromcontext.js +23 -0
- package/src/aicore/utils/getoperationsfromreply.d.ts +21 -0
- package/src/aicore/utils/getoperationsfromreply.js +23 -0
- package/src/aicore/utils/getsuggestionpartsfromreply.d.ts +19 -0
- package/src/aicore/utils/getsuggestionpartsfromreply.js +23 -0
- package/src/aicore/utils/htmlparser.d.ts +35 -0
- package/src/aicore/utils/htmlparser.js +23 -0
- package/src/aicore/utils/htmlstreamer.d.ts +123 -0
- package/src/aicore/utils/htmlstreamer.js +23 -0
- package/src/aiquickactions/aiquickactions.d.ts +41 -0
- package/src/aiquickactions/aiquickactions.js +23 -0
- package/src/aiquickactions/aiquickactionscommand.d.ts +12 -0
- package/src/aiquickactions/aiquickactionscommand.js +23 -0
- package/src/aiquickactions/aiquickactionsediting.d.ts +23 -0
- package/src/aiquickactions/aiquickactionsediting.js +23 -0
- package/src/aiquickactions/aiquickactionsui.d.ts +150 -0
- package/src/aiquickactions/aiquickactionsui.js +23 -0
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +30 -0
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +23 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +45 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +23 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +45 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +23 -0
- package/src/aiquickactions/utils/common-translations.d.ts +9 -0
- package/src/aiquickactions/utils/common-translations.js +23 -0
- package/src/aireviewmode/aireviewmode.d.ts +30 -0
- package/src/aireviewmode/aireviewmode.js +23 -0
- package/src/aireviewmode/aireviewmodecontroller.d.ts +32 -0
- package/src/aireviewmode/aireviewmodecontroller.js +23 -0
- package/src/aireviewmode/aireviewmodeediting.d.ts +129 -0
- package/src/aireviewmode/aireviewmodeediting.js +23 -0
- package/src/aireviewmode/aireviewmodeui.d.ts +73 -0
- package/src/aireviewmode/aireviewmodeui.js +23 -0
- package/src/aireviewmode/model/aireviewcheck.d.ts +60 -0
- package/src/aireviewmode/model/aireviewcheck.js +23 -0
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +17 -0
- package/src/aireviewmode/model/aireviewcheckcustom.js +23 -0
- package/src/aireviewmode/model/aireviewchecklist.d.ts +31 -0
- package/src/aireviewmode/model/aireviewchecklist.js +23 -0
- package/src/aireviewmode/model/aireviewcheckresult.d.ts +39 -0
- package/src/aireviewmode/model/aireviewcheckresult.js +23 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +42 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.js +23 -0
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +101 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +23 -0
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +18 -0
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +23 -0
- package/src/aireviewmode/model/aireviewmodels.d.ts +26 -0
- package/src/aireviewmode/model/aireviewmodels.js +23 -0
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +14 -0
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +23 -0
- package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +29 -0
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +46 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +19 -0
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.d.ts +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +80 -0
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +45 -0
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +18 -0
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodeview.d.ts +42 -0
- package/src/aireviewmode/ui/aireviewmodeview.js +23 -0
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +16 -0
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +23 -0
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +20 -0
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +23 -0
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +16 -0
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +23 -0
- package/src/aireviewmode/utils/common-translations.d.ts +9 -0
- package/src/aireviewmode/utils/common-translations.js +23 -0
- package/src/aitabs/aitabs.d.ts +92 -0
- package/src/aitabs/aitabs.js +23 -0
- package/src/aitabs/aitabsmainview.d.ts +45 -0
- package/src/aitabs/aitabsmainview.js +23 -0
- package/src/aitabs/tabs/aitabsview.d.ts +147 -0
- package/src/aitabs/tabs/aitabsview.js +23 -0
- package/src/aitabs/tabs/tabbuttonview.d.ts +47 -0
- package/src/aitabs/tabs/tabbuttonview.js +23 -0
- package/src/aitabs/tabs/tabpanelview.d.ts +44 -0
- package/src/aitabs/tabs/tabpanelview.js +23 -0
- package/src/augmentation.d.ts +22 -6
- package/src/index.d.ts +40 -9
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +207 -0
- package/theme/aichat/aichat-controls/aichat-context-chip.css +139 -0
- package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +194 -0
- package/theme/aichat/aichat-controls/aichat-context-controls.css +46 -0
- package/theme/aichat/aichat-controls/aichat-controls-button.css +74 -0
- package/theme/aichat/aichat-controls/aichat-controls-loader.css +93 -0
- package/theme/aichat/aichat-controls/prompt-capabilities.css +46 -0
- package/theme/aichat/aichat-controls/prompt-input.css +55 -0
- package/theme/aichat/aichat-controls.css +154 -0
- package/theme/aichat/aichat.css +68 -0
- package/theme/aichat/aichatfeed.css +376 -0
- package/theme/aichat/aichathistory.css +235 -0
- package/theme/aichat/aiminitoolbar.css +94 -0
- package/theme/aichat/aisuggestioncontainer.css +203 -0
- package/theme/aiquickactions/aiquickactions.css +43 -0
- package/theme/aireviewmode/aireviewmode-check-list.css +154 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +202 -0
- package/theme/aireviewmode/aireviewmode-review-completed.css +52 -0
- package/theme/aireviewmode/aireviewmode.css +73 -0
- package/theme/aitabs/aitabsview.css +64 -0
- package/theme/aitabs/tabs/tabbuttonview.css +74 -0
- package/theme/aitabs/tabs/tabsview.css +78 -0
- package/theme/common/aibutton.css +145 -0
- package/theme/common/aichaterror.css +61 -0
- package/theme/common/aidisclaimer.css +29 -0
- package/theme/common/aiheader.css +88 -0
- package/theme/common/aiskeleton.css +54 -0
- package/theme/common/aispinner.css +58 -0
- package/src/adapters/aiadapter.js +0 -23
- package/src/adapters/aitextadapter.js +0 -23
- package/src/adapters/awstextadapter.js +0 -23
- package/src/adapters/openaitextadapter.js +0 -23
- package/src/aiassistant.js +0 -23
- package/src/aiassistantediting.js +0 -23
- package/src/aiassistantui.js +0 -23
- package/src/legacyerrors.js +0 -23
- package/src/ui/aiassistantcontroller.js +0 -24
- package/src/ui/form/aiformcontentarea.js +0 -23
- package/src/ui/form/aiformerrorview.js +0 -23
- package/src/ui/form/aiformpromptview.js +0 -23
- package/src/ui/form/aiformtoolbarview.js +0 -23
- package/src/ui/form/aiformview.js +0 -23
- package/src/ui/form/aihistorylistitemview.js +0 -23
- package/src/ui/form/aihistorylistview.js +0 -23
- package/src/ui/form/prompthistory.js +0 -23
- package/src/ui/showaiassistantcommand.js +0 -23
- /package/src/{aiassistantediting.d.ts → aiassistant/aiassistantediting.d.ts} +0 -0
- /package/src/{legacyerrors.d.ts → aiassistant/legacyerrors.d.ts} +0 -0
- /package/src/{ui → aiassistant/ui}/form/aiformerrorview.d.ts +0 -0
- /package/theme/{ai-dropdown.css → aiassistant/ai-dropdown.css} +0 -0
- /package/theme/{ai-form.css → aiassistant/ai-form.css} +0 -0
- /package/theme/{ai.css → aiassistant/ai.css} +0 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
6
|
+
import { type BodyCollection } from 'ckeditor5/src/ui.js';
|
|
7
|
+
import { type AIContextProvider, type AIContextResourceState } from '../../../../aichat/model/aichatcontext.js';
|
|
8
|
+
/**
|
|
9
|
+
* Configuration interface for the AI chat resources balloon view.
|
|
10
|
+
*/
|
|
11
|
+
export interface AIChatResourcesBalloonViewConfig {
|
|
12
|
+
/**
|
|
13
|
+
* Callback fired when user requests to go back to the main context view.
|
|
14
|
+
*/
|
|
15
|
+
onBackToContext: () => void;
|
|
16
|
+
/**
|
|
17
|
+
* Callback fired when a resource is selected to be added to context.
|
|
18
|
+
*/
|
|
19
|
+
onResourceSelected: (source: AIContextProvider, resource: AIContextResourceState) => void;
|
|
20
|
+
/**
|
|
21
|
+
* Callback fired when source resources need to be loaded.
|
|
22
|
+
*/
|
|
23
|
+
onLoadSourceResources: (data: {
|
|
24
|
+
sourceId: string;
|
|
25
|
+
query: string;
|
|
26
|
+
uid: string;
|
|
27
|
+
}) => void;
|
|
28
|
+
/**
|
|
29
|
+
* Callback fired when the balloon is closed via click outside.
|
|
30
|
+
*/
|
|
31
|
+
onBalloonClosed: () => void;
|
|
32
|
+
/**
|
|
33
|
+
* Returns the element that limits balloon positioning.
|
|
34
|
+
*/
|
|
35
|
+
getLimiterElement: () => HTMLElement;
|
|
36
|
+
/**
|
|
37
|
+
* Returns the target element for balloon positioning.
|
|
38
|
+
*/
|
|
39
|
+
getTargetElement: () => HTMLElement;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Manages resource balloon panels for AI chat context sources.
|
|
43
|
+
*
|
|
44
|
+
* This class handles the creation, positioning, and lifecycle of balloon panels
|
|
45
|
+
* that display resources from various AI context providers. Each source can have
|
|
46
|
+
* its own balloon panel with search functionality and resource listing.
|
|
47
|
+
*/
|
|
48
|
+
export declare class AIChatResourcesBalloonView {
|
|
49
|
+
/**
|
|
50
|
+
* Creates a new AI chat resources balloon view manager.
|
|
51
|
+
*
|
|
52
|
+
* @param locale The locale instance for internationalization
|
|
53
|
+
* @param bodyCollection The body collection for managing balloon DOM lifecycle
|
|
54
|
+
* @param config Configuration object for balloon behavior and event handling
|
|
55
|
+
*/
|
|
56
|
+
constructor(locale: Locale, bodyCollection: BodyCollection, config: AIChatResourcesBalloonViewConfig);
|
|
57
|
+
/**
|
|
58
|
+
* Shows a source resources balloon for the given source provider.
|
|
59
|
+
* Creates a new balloon if one doesn't exist for this source, otherwise reuses the existing one.
|
|
60
|
+
*
|
|
61
|
+
* @param source The AI context provider source to show resources for
|
|
62
|
+
*/
|
|
63
|
+
showSourceResourcesBalloon(source: AIContextProvider): void;
|
|
64
|
+
/**
|
|
65
|
+
* Populates a source resource balloon with loaded resources.
|
|
66
|
+
* Only updates the balloon if it exists and is currently active.
|
|
67
|
+
*
|
|
68
|
+
* @param sourceId The unique identifier of the source
|
|
69
|
+
* @param resources Array of resource states to display
|
|
70
|
+
* @param uid Unique identifier for the resource loading request
|
|
71
|
+
*/
|
|
72
|
+
populateSourceResourceBalloon(sourceId: string, resources: Array<AIContextResourceState>, uid: string): void;
|
|
73
|
+
/**
|
|
74
|
+
* Closes the source resource balloon and cleans up its state.
|
|
75
|
+
* Uses requestAnimationFrame to ensure proper cleanup timing.
|
|
76
|
+
*
|
|
77
|
+
* @param sourceId The unique identifier of the source balloon to close
|
|
78
|
+
*/
|
|
79
|
+
closeSourceResourceBalloon(sourceId: string): void;
|
|
80
|
+
/**
|
|
81
|
+
* Checks if any resource balloon is currently visible.
|
|
82
|
+
*
|
|
83
|
+
* @returns True if at least one resource balloon is visible, false otherwise
|
|
84
|
+
*/
|
|
85
|
+
isAnyResourceBalloonVisible(): boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Updates the state of a specific resource in the balloon and repositions it.
|
|
88
|
+
* This method also handles balloon repositioning to ensure proper display.
|
|
89
|
+
*
|
|
90
|
+
* @param sourceId The unique identifier of the source
|
|
91
|
+
* @param resourceId The unique identifier of the resource to update
|
|
92
|
+
* @param isInContext Whether the resource is currently in the context
|
|
93
|
+
*/
|
|
94
|
+
updateResourceState(sourceId: string, resourceId: string, isInContext: boolean): void;
|
|
95
|
+
/**
|
|
96
|
+
* Destroys all resource balloons and cleans up resources.
|
|
97
|
+
* Should be called when the view is no longer needed to prevent memory leaks.
|
|
98
|
+
*/
|
|
99
|
+
destroy(): void;
|
|
100
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x16ec(){const _0x288491=['loadSourceResources','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','onLoadSourceResources','get','2428419ahDpGU','_createSourceResourceBalloonPanel','children','resource','updateResourceState','isVisible','pin','delete','isAnyResourceBalloonVisible','addResourceToContext','67614QwbVEA','_locale','3227409CqcrTV','label','setResources','hide','_getResourcesViewFromBalloon','_config','_createBalloonResourcesView','onBackToContext','extendTemplate','content','_setupSingleResourceBalloonClickOutsideHandler','showSourceResourcesBalloon','getTargetElement','clear','328964LylwVb','source','add','_sourceResourceBalloons','_addSourceResourceContent','onResourceSelected','185672zqBzPQ','_bodyCollection','set','destroy','ck-button-icon\x20ck-button-back','2117690JXQhZC','_createBalloonHeader','ck-ai-chat-context-controls__source-balloon-panel','execute','_createBackButton','3PKLPzH','getLimiterElement','6ZHEFNX','closeSourceResourceBalloon','10vPYhwi','values','element','show','onBalloonClosed','populateSourceResourceBalloon','2871456ufiExc'];_0x16ec=function(){return _0x288491;};return _0x16ec();}const _0x4ec5d2=_0x1efc;(function(_0xf0cebe,_0x292e5a){const _0x2888d5=_0x1efc,_0x350aad=_0xf0cebe();while(!![]){try{const _0x3f50eb=-parseInt(_0x2888d5(0x15a))/0x1+parseInt(_0x2888d5(0x16a))/0x2+-parseInt(_0x2888d5(0x17a))/0x3*(-parseInt(_0x2888d5(0x170))/0x4)+-parseInt(_0x2888d5(0x175))/0x5*(-parseInt(_0x2888d5(0x17c))/0x6)+-parseInt(_0x2888d5(0x150))/0x7+-parseInt(_0x2888d5(0x14a))/0x8+-parseInt(_0x2888d5(0x15c))/0x9*(-parseInt(_0x2888d5(0x17e))/0xa);if(_0x3f50eb===_0x292e5a)break;else _0x350aad['push'](_0x350aad['shift']());}catch(_0x27cc05){_0x350aad['push'](_0x350aad['shift']());}}}(_0x16ec,0x359b8));import{BalloonPanelView as _0x4b6660,ButtonView as _0x40c987,clickOutsideHandler as _0x59a7ed,FormHeaderView as _0x4e6f3a}from'ckeditor5/src/ui.js';function _0x1efc(_0x23eb1f,_0x892633){const _0x16ec6f=_0x16ec();return _0x1efc=function(_0x1efcdb,_0x4374c1){_0x1efcdb=_0x1efcdb-0x147;let _0x496fc8=_0x16ec6f[_0x1efcdb];return _0x496fc8;},_0x1efc(_0x23eb1f,_0x892633);}import{IconPreviousArrow as _0x110b85}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x5e0a97}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x482b43}from'./aichatresourcesview.js';const Or=_0x4ec5d2(0x177),Hr=_0x4ec5d2(0x174),Fr=_0x4ec5d2(0x14d);export class AIChatResourcesBalloonView{[_0x4ec5d2(0x16d)]=new Map();[_0x4ec5d2(0x171)];[_0x4ec5d2(0x15b)];[_0x4ec5d2(0x161)];constructor(_0x515882,_0x30c6a5,_0xa9de79){const _0x4fb36d=_0x4ec5d2;this[_0x4fb36d(0x15b)]=_0x515882,this[_0x4fb36d(0x171)]=_0x30c6a5,this[_0x4fb36d(0x161)]=_0xa9de79;}[_0x4ec5d2(0x167)](_0x581b11){const _0x2b4c3e=_0x4ec5d2;let _0x174adc=this[_0x2b4c3e(0x16d)][_0x2b4c3e(0x14f)](_0x581b11['id']);_0x174adc||(_0x174adc=this[_0x2b4c3e(0x151)](),this[_0x2b4c3e(0x16d)][_0x2b4c3e(0x172)](_0x581b11['id'],_0x174adc),this[_0x2b4c3e(0x166)](_0x174adc)),this[_0x2b4c3e(0x16e)](_0x174adc,_0x581b11),_0x174adc[_0x2b4c3e(0x147)]();const _0xac3598=this[_0x2b4c3e(0x161)][_0x2b4c3e(0x168)]();_0xac3598&&_0x174adc[_0x2b4c3e(0x156)]({'target':_0xac3598,'limiter':this[_0x2b4c3e(0x161)][_0x2b4c3e(0x17b)]()});}[_0x4ec5d2(0x149)](_0x5b6fb5,_0x24536c,_0x5ebfb8){const _0x46ef05=_0x4ec5d2,_0x33e174=this[_0x46ef05(0x16d)][_0x46ef05(0x14f)](_0x5b6fb5);if(!_0x33e174)return;const _0x2cfd01=this[_0x46ef05(0x160)](_0x33e174);_0x2cfd01&&_0x2cfd01[_0x46ef05(0x15e)](_0x24536c,_0x5ebfb8);}[_0x4ec5d2(0x17d)](_0xe8a370){const _0x56a84c=_0x4ec5d2,_0x5b00f8=this[_0x56a84c(0x16d)][_0x56a84c(0x14f)](_0xe8a370);_0x5b00f8&&requestAnimationFrame(()=>{const _0x2cb76e=_0x56a84c;_0x5b00f8[_0x2cb76e(0x15f)](),this[_0x2cb76e(0x16d)][_0x2cb76e(0x157)](_0xe8a370),this[_0x2cb76e(0x161)][_0x2cb76e(0x148)]();});}[_0x4ec5d2(0x158)](){const _0x3cebbd=_0x4ec5d2;for(const _0x48476a of this[_0x3cebbd(0x16d)][_0x3cebbd(0x17f)]())if(_0x48476a[_0x3cebbd(0x155)])return!0x0;return!0x1;}[_0x4ec5d2(0x154)](_0x512ba7,_0x1df90e,_0xc54c48){const _0x2d99df=_0x4ec5d2,_0x32c4b1=this[_0x2d99df(0x16d)][_0x2d99df(0x14f)](_0x512ba7);if(!_0x32c4b1||!_0x32c4b1[_0x2d99df(0x155)])return;const _0x456db0=this[_0x2d99df(0x161)][_0x2d99df(0x168)]();if(!_0x456db0)return;_0x32c4b1[_0x2d99df(0x156)]({'target':_0x456db0,'limiter':this[_0x2d99df(0x161)][_0x2d99df(0x17b)]()});const _0x55d032=this[_0x2d99df(0x160)](_0x32c4b1);_0x55d032&&_0x55d032[_0x2d99df(0x154)](_0x1df90e,_0xc54c48);}[_0x4ec5d2(0x173)](){const _0x19fbb0=_0x4ec5d2;for(const _0x5057e9 of this[_0x19fbb0(0x16d)][_0x19fbb0(0x17f)]())_0x5057e9[_0x19fbb0(0x173)]();this[_0x19fbb0(0x16d)][_0x19fbb0(0x169)]();}[_0x4ec5d2(0x151)](){const _0x52974e=_0x4ec5d2,_0x44c87c=new _0x4b6660(this[_0x52974e(0x15b)]);return _0x44c87c[_0x52974e(0x164)]({'attributes':{'class':Or}}),this[_0x52974e(0x171)][_0x52974e(0x16c)](_0x44c87c),_0x44c87c;}[_0x4ec5d2(0x16e)](_0x53a154,_0x2d5eed){const _0x43834f=_0x4ec5d2;_0x53a154[_0x43834f(0x165)][_0x43834f(0x169)]();const _0x2e07a0=this[_0x43834f(0x176)](_0x53a154,_0x2d5eed);_0x53a154[_0x43834f(0x165)][_0x43834f(0x16c)](_0x2e07a0);const _0x153b82=this[_0x43834f(0x162)](_0x2d5eed);_0x53a154[_0x43834f(0x165)][_0x43834f(0x16c)](_0x153b82);}[_0x4ec5d2(0x176)](_0xf42810,_0x5bb5d3){const _0x5771e0=_0x4ec5d2,_0x3f1633=this[_0x5771e0(0x179)](_0xf42810),_0x30ab6a=new _0x4e6f3a(this[_0x5771e0(0x15b)],{'label':_0x5bb5d3[_0x5771e0(0x15d)],'class':Fr});return _0x30ab6a[_0x5771e0(0x152)][_0x5771e0(0x16c)](_0x3f1633,0x0),_0x30ab6a;}[_0x4ec5d2(0x179)](_0x5b5600){const _0x122c2b=_0x4ec5d2,_0x26bb80=new _0x40c987(this[_0x122c2b(0x15b)]);return _0x26bb80[_0x122c2b(0x172)]({'icon':_0x110b85,'tooltip':_0x5e0a97(this[_0x122c2b(0x15b)],_0x122c2b(0x14c)),'tooltipPosition':'n','class':Hr}),_0x26bb80['on'](_0x122c2b(0x178),()=>{const _0xbc8255=_0x122c2b;_0x5b5600[_0xbc8255(0x15f)](),this[_0xbc8255(0x161)][_0xbc8255(0x163)]();}),_0x26bb80;}[_0x4ec5d2(0x162)](_0x292b04){const _0x29f6b1=_0x4ec5d2,_0xbd1710=new _0x482b43(this[_0x29f6b1(0x15b)],_0x292b04);return _0xbd1710['on'](_0x29f6b1(0x14b),(_0x53b246,_0xa78554)=>{const _0x336730=_0x29f6b1;this[_0x336730(0x161)][_0x336730(0x14e)](_0xa78554);}),_0xbd1710['on'](_0x29f6b1(0x159),(_0x11c88c,_0x14b30f)=>{const _0x8ec0b2=_0x29f6b1;this[_0x8ec0b2(0x161)][_0x8ec0b2(0x16f)](_0x14b30f[_0x8ec0b2(0x16b)],_0x14b30f[_0x8ec0b2(0x153)]),this[_0x8ec0b2(0x17d)](_0x292b04['id']);}),_0xbd1710;}[_0x4ec5d2(0x160)](_0x108dbf){const _0xceb3a6=_0x4ec5d2,_0x5af209=_0x108dbf[_0xceb3a6(0x165)][_0xceb3a6(0x14f)](0x1);return _0x5af209 instanceof _0x482b43?_0x5af209:null;}[_0x4ec5d2(0x166)](_0x2b9e0a){const _0x14e8e1=_0x4ec5d2;_0x59a7ed({'emitter':_0x2b9e0a,'contextElements':[_0x2b9e0a[_0x14e8e1(0x180)]],'callback':()=>{const _0x54d54c=_0x14e8e1;_0x2b9e0a[_0x54d54c(0x15f)](),this[_0x54d54c(0x161)][_0x54d54c(0x148)]();},'activator':()=>_0x2b9e0a[_0x14e8e1(0x155)]});}}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aichat/ui/controls/resources/aichatresourceslistview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { ListView } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import { type AIContextProvider, type AIContextResourceState } from '../../../../aichat/model/aichatcontext.js';
|
|
11
|
+
/**
|
|
12
|
+
* A specialized list view for displaying AI context resources.
|
|
13
|
+
*
|
|
14
|
+
* This view manages a collection of resource items for a specific AI context provider,
|
|
15
|
+
* handling resource selection, search highlighting, and state updates.
|
|
16
|
+
*/
|
|
17
|
+
export declare class AIChatContextResourcesListView extends ListView {
|
|
18
|
+
/**
|
|
19
|
+
* Creates a new AI context resources list view.
|
|
20
|
+
*
|
|
21
|
+
* @param locale The locale instance for internationalization
|
|
22
|
+
* @param source The AI context provider source for this resource list
|
|
23
|
+
*/
|
|
24
|
+
constructor(locale: Locale, source: AIContextProvider);
|
|
25
|
+
/**
|
|
26
|
+
* Sets the resources to display in the list.
|
|
27
|
+
* Clears existing items and creates new resource item views with proper event handling.
|
|
28
|
+
* When useDefaultFiltering is enabled, filters resources by query and applies highlighting.
|
|
29
|
+
*
|
|
30
|
+
* @param resources Array of resource states to display
|
|
31
|
+
* @param query Search query string used for filtering and text highlighting
|
|
32
|
+
*/
|
|
33
|
+
setResources(resources: Array<AIContextResourceState>, query: string): void;
|
|
34
|
+
/**
|
|
35
|
+
* Highlights text in all resource items based on the search query.
|
|
36
|
+
* Respects the source's useDefaultFiltering configuration.
|
|
37
|
+
*
|
|
38
|
+
* @param query The search query string to highlight in resource titles
|
|
39
|
+
*/
|
|
40
|
+
highlightText(query: string): void;
|
|
41
|
+
/**
|
|
42
|
+
* Updates the state of a specific resource in the list.
|
|
43
|
+
* Finds the resource item by ID and updates its context state.
|
|
44
|
+
*
|
|
45
|
+
* @param resourceId The unique identifier of the resource to update
|
|
46
|
+
* @param isInContext Whether the resource is currently in the context
|
|
47
|
+
*/
|
|
48
|
+
updateResourceState(resourceId: string, isInContext: boolean): void;
|
|
49
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x5b6d(_0x52d75f,_0x3518bd){const _0x168262=_0x1682();return _0x5b6d=function(_0x5b6ddc,_0x4a1496){_0x5b6ddc=_0x5b6ddc-0x116;let _0x53156e=_0x168262[_0x5b6ddc];return _0x53156e;},_0x5b6d(_0x52d75f,_0x3518bd);}const _0x5dfdf4=_0x5b6d;(function(_0x1e5729,_0x1dee21){const _0x1e7aa0=_0x5b6d,_0x13ff3e=_0x1e5729();while(!![]){try{const _0x36998e=-parseInt(_0x1e7aa0(0x12e))/0x1*(-parseInt(_0x1e7aa0(0x11c))/0x2)+-parseInt(_0x1e7aa0(0x118))/0x3*(-parseInt(_0x1e7aa0(0x120))/0x4)+-parseInt(_0x1e7aa0(0x11a))/0x5*(-parseInt(_0x1e7aa0(0x122))/0x6)+-parseInt(_0x1e7aa0(0x12d))/0x7+parseInt(_0x1e7aa0(0x119))/0x8*(parseInt(_0x1e7aa0(0x123))/0x9)+-parseInt(_0x1e7aa0(0x124))/0xa+-parseInt(_0x1e7aa0(0x134))/0xb*(-parseInt(_0x1e7aa0(0x12b))/0xc);if(_0x36998e===_0x1dee21)break;else _0x13ff3e['push'](_0x13ff3e['shift']());}catch(_0x2a72e5){_0x13ff3e['push'](_0x13ff3e['shift']());}}}(_0x1682,0xd1250));function _0x1682(){const _0x2a8c31=['_handleResourceSelection','items','setResources','\x5c$&','8011355TdBGQn','ck-ai-chat-resources__list','replace','test','add','clear','filter','6ZVrOPc','2356376HOYkov','6486385XzZaaH','execute','4lektWq','_source','highlightText','resource','1204812EyycQz','fire','6ZaPwKu','9KkOjni','16014890DzMvyy','locale','extendTemplate','trim','forEach','updateResourceState','useDefaultFiltering','12hZzXuP','addResourceToContext','11802126KNmOwS','610814QRZmDe','label'];_0x1682=function(){return _0x2a8c31;};return _0x1682();}import{ListView as _0x10ace8}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x2ea331}from'./aichatresourcelistitemview.js';const sc=_0x5dfdf4(0x135);export class AIChatContextResourcesListView extends _0x10ace8{[_0x5dfdf4(0x11d)];constructor(_0x5a315c,_0x291e89){const _0x28db7e=_0x5dfdf4;super(_0x5a315c),this[_0x28db7e(0x11d)]=_0x291e89,this[_0x28db7e(0x126)]({'attributes':{'class':[sc]}});}[_0x5dfdf4(0x132)](_0x3d9761,_0x426476){const _0x3619d6=_0x5dfdf4;this[_0x3619d6(0x131)][_0x3619d6(0x116)]();let _0x145c5e=_0x3d9761;if(this[_0x3619d6(0x11d)][_0x3619d6(0x12a)]&&_0x426476&&''!==_0x426476[_0x3619d6(0x127)]()){const _0xfb3850=new RegExp(_0x426476[_0x3619d6(0x136)](/[.*+?^${}()|[\]\\]/g,_0x3619d6(0x133)),'gi');_0x145c5e=_0x3d9761[_0x3619d6(0x117)](_0x3b618c=>_0xfb3850[_0x3619d6(0x137)](_0x3b618c[_0x3619d6(0x12f)]));}for(const _0xc0dd95 of _0x145c5e){const _0x5d370d=new _0x2ea331(this[_0x3619d6(0x125)],_0xc0dd95);_0x5d370d['on'](_0x3619d6(0x11b),()=>{const _0x532408=_0x3619d6;this[_0x532408(0x130)](this[_0x532408(0x11d)],_0xc0dd95);}),this[_0x3619d6(0x131)][_0x3619d6(0x138)](_0x5d370d);}this[_0x3619d6(0x11d)][_0x3619d6(0x12a)]&&this[_0x3619d6(0x11e)](_0x426476);}[_0x5dfdf4(0x11e)](_0x832d0e){const _0x4bc5ea=_0x5dfdf4;this[_0x4bc5ea(0x11d)][_0x4bc5ea(0x12a)]&&this[_0x4bc5ea(0x131)][_0x4bc5ea(0x128)](_0xa5a9c=>{const _0x19d763=_0x4bc5ea;_0xa5a9c[_0x19d763(0x11e)](_0x832d0e);});}[_0x5dfdf4(0x129)](_0x3b1564,_0x224393){const _0x4569f6=_0x5dfdf4;for(const _0x5072c6 of this[_0x4569f6(0x131)]){const _0x52f053=_0x5072c6;_0x52f053[_0x4569f6(0x11f)]['id']===_0x3b1564&&_0x52f053[_0x4569f6(0x129)](_0x224393);}}[_0x5dfdf4(0x130)](_0x3dbe38,_0x2fe12d){const _0x33ecee=_0x5dfdf4;this[_0x33ecee(0x121)](_0x33ecee(0x12c),{'source':_0x3dbe38,'resource':_0x2fe12d});}}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
6
|
+
import { ButtonView, IconView, type InputTextView, LabeledFieldView } from 'ckeditor5/src/ui.js';
|
|
7
|
+
/**
|
|
8
|
+
* A specialized search input view for AI context resources.
|
|
9
|
+
*
|
|
10
|
+
* This view extends the standard labeled field view to provide search functionality
|
|
11
|
+
* with an icon, reset button, and proper event handling for resource filtering.
|
|
12
|
+
* It maintains the current search query and provides immediate search feedback.
|
|
13
|
+
*/
|
|
14
|
+
export declare class AIChatContextResourcesSearchInputView extends LabeledFieldView<InputTextView> {
|
|
15
|
+
/**
|
|
16
|
+
* The loupe icon displayed next to the search input field.
|
|
17
|
+
* Only present when the view is configured to show the search icon.
|
|
18
|
+
*/
|
|
19
|
+
iconView?: IconView;
|
|
20
|
+
/**
|
|
21
|
+
* The button that clears the search input and refocuses the field.
|
|
22
|
+
* Only present when the view is configured to show the reset button.
|
|
23
|
+
*/
|
|
24
|
+
resetButtonView?: ButtonView;
|
|
25
|
+
/**
|
|
26
|
+
* Creates a new AI context resources search input view.
|
|
27
|
+
*
|
|
28
|
+
* @param locale The locale instance for internationalization
|
|
29
|
+
*/
|
|
30
|
+
constructor(locale: Locale);
|
|
31
|
+
/**
|
|
32
|
+
* Resets the search field to its default state and triggers an empty search.
|
|
33
|
+
*/
|
|
34
|
+
reset(): void;
|
|
35
|
+
/**
|
|
36
|
+
* Triggers a search with the given query string.
|
|
37
|
+
*
|
|
38
|
+
* @param query The search query string
|
|
39
|
+
*/
|
|
40
|
+
search(query: string): void;
|
|
41
|
+
/**
|
|
42
|
+
* Gets the current search query value.
|
|
43
|
+
*
|
|
44
|
+
* @returns The current search query string, or empty string if no query
|
|
45
|
+
*/
|
|
46
|
+
getQuery(): string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Event fired when the search input is reset.
|
|
50
|
+
*/
|
|
51
|
+
export type AIChatContextResourcesSearchInputViewResetEvent = {
|
|
52
|
+
name: 'reset';
|
|
53
|
+
args: [];
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Event fired when a search is triggered.
|
|
57
|
+
*/
|
|
58
|
+
export type AIChatContextResourcesSearchInputViewSearchEvent = {
|
|
59
|
+
name: 'search';
|
|
60
|
+
args: [query: string];
|
|
61
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
import{ButtonView as _0x419daf,IconView as _0x382075,LabeledFieldView as th,createLabeledInputText as _0x156332}from'ckeditor5/src/ui.js';import{IconLoupe as _0x9e98c,IconCancel as _0x5c33d1}from'ckeditor5/src/icons.js';import{getTranslation as _0x1f72ca}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends th{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x392460){const t=_0x392460['t'],_0x5adea9={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x156332,'label':_0x1f72ca(_0x392460,'AI_CHAT_SEARCH_RESOURCES')};super(_0x392460,_0x5adea9['creator']),this['label']=_0x5adea9['label'],this['_viewConfig']=_0x5adea9,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x392460,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x12acd2){this['fire']('search',_0x12acd2);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x382075(),this['iconView']['content']=_0x9e98c,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x4452fd,t){this['resetButtonView']=new _0x419daf(_0x4452fd),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x5c33d1,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x6364f7=>!_0x6364f7),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aichat/ui/controls/resources/aichatresourcesview
|
|
7
|
+
*/
|
|
8
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import { type AIContextResourceState, type AIContextProvider } from '../../../../aichat/model/aichatcontext.js';
|
|
11
|
+
/**
|
|
12
|
+
* Main view component for AI context resources management.
|
|
13
|
+
*
|
|
14
|
+
* This view combines a search input and resources list, managing the complete
|
|
15
|
+
* user experience for browsing and selecting resources from an AI context provider.
|
|
16
|
+
* It handles loading states, search functionality, and resource state updates.
|
|
17
|
+
*/
|
|
18
|
+
export declare class AIChatContextResourcesView extends View {
|
|
19
|
+
/**
|
|
20
|
+
* Creates a new AI context resources view.
|
|
21
|
+
*
|
|
22
|
+
* @param locale The locale instance for internationalization
|
|
23
|
+
* @param source The AI context provider source for this resources view
|
|
24
|
+
*/
|
|
25
|
+
constructor(locale: Locale, source: AIContextProvider);
|
|
26
|
+
/**
|
|
27
|
+
* Renders the view and initiates initial resource loading.
|
|
28
|
+
*/
|
|
29
|
+
render(): void;
|
|
30
|
+
/**
|
|
31
|
+
* Loads resources for the current source with the given search query.
|
|
32
|
+
* Generates a unique identifier to prevent race conditions between requests.
|
|
33
|
+
*
|
|
34
|
+
* @param query The search query string to filter resources
|
|
35
|
+
*/
|
|
36
|
+
loadResources(query: string): void;
|
|
37
|
+
/**
|
|
38
|
+
* Sets the resources to display, with race condition protection.
|
|
39
|
+
* Only processes the response if it matches the latest request UID.
|
|
40
|
+
* Respects the source's highlighting configuration when setting resources.
|
|
41
|
+
*
|
|
42
|
+
* @param resources Array of resource states to display
|
|
43
|
+
* @param uid Optional unique identifier for the request (for race condition protection)
|
|
44
|
+
*/
|
|
45
|
+
setResources(resources: Array<AIContextResourceState>, uid?: string): void;
|
|
46
|
+
/**
|
|
47
|
+
* Updates the state of a specific resource in the list.
|
|
48
|
+
* Delegates to the resources list view to handle the actual update.
|
|
49
|
+
*
|
|
50
|
+
* @param resourceId The unique identifier of the resource to update
|
|
51
|
+
* @param isInContext Whether the resource is currently in the context
|
|
52
|
+
*/
|
|
53
|
+
updateResourceState(resourceId: string, isInContext: boolean): void;
|
|
54
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x32a766=_0x5b93;(function(_0x24576c,_0x2f362a){const _0x3b5fec=_0x5b93,_0x39a344=_0x24576c();while(!![]){try{const _0x44f83b=parseInt(_0x3b5fec(0x8a))/0x1*(parseInt(_0x3b5fec(0x78))/0x2)+-parseInt(_0x3b5fec(0x94))/0x3*(parseInt(_0x3b5fec(0x89))/0x4)+-parseInt(_0x3b5fec(0x91))/0x5+parseInt(_0x3b5fec(0x7e))/0x6*(-parseInt(_0x3b5fec(0x70))/0x7)+parseInt(_0x3b5fec(0x73))/0x8+-parseInt(_0x3b5fec(0x86))/0x9+-parseInt(_0x3b5fec(0x7f))/0xa*(-parseInt(_0x3b5fec(0x8d))/0xb);if(_0x44f83b===_0x2f362a)break;else _0x39a344['push'](_0x39a344['shift']());}catch(_0x17342b){_0x39a344['push'](_0x39a344['shift']());}}}(_0x2ec2,0xd7eaa));import{View as _0x3d8e80,ViewCollection as _0x42ac9f}from'ckeditor5/src/ui.js';import{uid as _0x103186}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0xf10057}from'./aichatresourceslistview.js';function _0x5b93(_0x1dc478,_0x197ddb){const _0x2ec2d3=_0x2ec2();return _0x5b93=function(_0x5b9311,_0x46709b){_0x5b9311=_0x5b9311-0x6b;let _0x38a0f4=_0x2ec2d3[_0x5b9311];return _0x38a0f4;},_0x5b93(_0x1dc478,_0x197ddb);}import{AIChatContextResourcesSearchInputView as _0x4078a4}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x581a0d,SKELETON_DEFINITIONS as _0x1cf108}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x3d8e80{[_0x32a766(0x7d)];[_0x32a766(0x84)];[_0x32a766(0x8e)];[_0x32a766(0x72)];[_0x32a766(0x80)];[_0x32a766(0x79)]=null;constructor(_0x31f64d,_0x3c2c65){const _0x3fabae=_0x32a766;super(_0x31f64d),this[_0x3fabae(0x72)]=_0x3c2c65,this[_0x3fabae(0x74)](_0x3fabae(0x8b),!0x0),this[_0x3fabae(0x7d)]=this[_0x3fabae(0x88)]();const _0xb8fdf4=this[_0x3fabae(0x7c)]();this[_0x3fabae(0x84)]=this[_0x3fabae(0x6e)](),this[_0x3fabae(0x8e)]=this[_0x3fabae(0x77)](),this[_0x3fabae(0x80)]=new _0x42ac9f([_0xb8fdf4,this[_0x3fabae(0x8e)],this[_0x3fabae(0x84)]]),this[_0x3fabae(0x6c)]({'tag':_0x3fabae(0x90),'attributes':{'class':_0x3fabae(0x83)},'children':this[_0x3fabae(0x80)]});}[_0x32a766(0x88)](){const _0x358394=_0x32a766;return new _0x4078a4(this[_0x358394(0x93)]);}[_0x32a766(0x7c)](){const _0x4d9967=_0x32a766,_0x2b32c1=new _0x3d8e80(this[_0x4d9967(0x93)]);return _0x2b32c1[_0x4d9967(0x6c)]({'tag':_0x4d9967(0x90),'attributes':{'class':_0x4d9967(0x71)},'children':[this[_0x4d9967(0x7d)]]}),this[_0x4d9967(0x7d)]['on'](_0x4d9967(0x76),(_0x26aa71,_0x179215)=>{const _0x12a03d=_0x4d9967;this[_0x12a03d(0x85)](_0x179215),this[_0x12a03d(0x72)][_0x12a03d(0x87)]&&this[_0x12a03d(0x84)][_0x12a03d(0x7a)](_0x179215);}),_0x2b32c1;}[_0x32a766(0x6e)](){const _0x49c3b0=_0x32a766,_0x5d8772=new _0xf10057(this[_0x49c3b0(0x93)],this[_0x49c3b0(0x72)]);return _0x5d8772[_0x49c3b0(0x6d)](_0x49c3b0(0x82))['to'](this),_0x5d8772[_0x49c3b0(0x8f)]({'attributes':{'class':this[_0x49c3b0(0x8c)]['if'](_0x49c3b0(0x8b),_0x49c3b0(0x81))}}),_0x5d8772;}[_0x32a766(0x77)](){const _0x383c07=_0x32a766,_0x1dd35d=new _0x581a0d(this[_0x383c07(0x93)],_0x1cf108[_0x383c07(0x7b)]);return _0x1dd35d[_0x383c07(0x8f)]({'attributes':{'class':[this[_0x383c07(0x8c)]['if'](_0x383c07(0x8b),_0x383c07(0x81),_0x5d9735=>!_0x5d9735)]}}),_0x1dd35d;}[_0x32a766(0x6f)](){const _0x3c8c8e=_0x32a766;super[_0x3c8c8e(0x6f)](),this[_0x3c8c8e(0x85)]('');}[_0x32a766(0x85)](_0x3dd5e8){const _0x1f90f9=_0x32a766,_0x338043=_0x103186();this[_0x1f90f9(0x79)]=_0x338043,this[_0x1f90f9(0x92)](_0x1f90f9(0x96),{'sourceId':this[_0x1f90f9(0x72)]['id'],'query':_0x3dd5e8,'uid':_0x338043}),this[_0x1f90f9(0x8b)]=!0x0;}[_0x32a766(0x6b)](_0x3a1258,_0x2e5634){const _0x4e53bb=_0x32a766;if(_0x2e5634&&_0x2e5634!==this[_0x4e53bb(0x79)])return;const _0x205c0e=this[_0x4e53bb(0x72)][_0x4e53bb(0x87)]?this[_0x4e53bb(0x7d)][_0x4e53bb(0x75)]():'';this[_0x4e53bb(0x84)][_0x4e53bb(0x6b)](_0x3a1258,_0x205c0e),requestAnimationFrame(()=>{const _0x7e6bcb=_0x4e53bb;this[_0x7e6bcb(0x8b)]=!0x1;});}[_0x32a766(0x95)](_0x332b5b,_0x156602){const _0x3097f5=_0x32a766;this[_0x3097f5(0x84)][_0x3097f5(0x95)](_0x332b5b,_0x156602);}}function _0x2ec2(){const _0x34b927=['getQuery','search','_createSkeletonView','149054WOUMgv','_latestLoadResourcesUid','highlightText','aiChatResources','_createSearchSection','_searchView','2123064KYwlIU','50PjGDBx','children','ck-hidden','addResourceToContext','ck-ai-chat-resources','_resourcesListView','loadResources','1109448wJfmBe','useDefaultFiltering','_createSearchView','128aTZPJx','7GBBbzA','isLoading','bindTemplate','5468309oEtsPO','_skeletonLoader','extendTemplate','div','2795375WDdTNg','fire','locale','148779FoiUXu','updateResourceState','loadSourceResources','setResources','setTemplate','delegate','_createResourcesListView','render','14cylPbH','ck\x20ck-search','_source','6832968DkPhcd','set'];_0x2ec2=function(){return _0x34b927;};return _0x2ec2();}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aichat/ui/feed/aichatfeedcontextchipsview
|
|
7
|
+
*/
|
|
8
|
+
import { View, type BodyCollection } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import { type AIContextItem } from '../../../aicore/model/aicontext.js';
|
|
11
|
+
/**
|
|
12
|
+
* A view that manages context chips with overflow handling and show more functionality.
|
|
13
|
+
*/
|
|
14
|
+
export declare class AIChatFeedContextChipsView extends View {
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
constructor(locale: Locale, contextItems: Array<AIContextItem>, bodyCollection: BodyCollection);
|
|
19
|
+
/**
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
*/
|
|
22
|
+
render(): void;
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
destroy(): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x3aa4(_0x403e62,_0x2c864a){const _0x168dee=_0x168d();return _0x3aa4=function(_0x3aa481,_0x7c823c){_0x3aa481=_0x3aa481-0x17a;let _0x565b36=_0x168dee[_0x3aa481];return _0x565b36;},_0x3aa4(_0x403e62,_0x2c864a);}const _0x2481ac=_0x3aa4;(function(_0x4672e2,_0x2e303a){const _0x47bcd8=_0x3aa4,_0x530f21=_0x4672e2();while(!![]){try{const _0x5776ed=-parseInt(_0x47bcd8(0x18f))/0x1*(-parseInt(_0x47bcd8(0x190))/0x2)+-parseInt(_0x47bcd8(0x18a))/0x3+parseInt(_0x47bcd8(0x189))/0x4*(parseInt(_0x47bcd8(0x195))/0x5)+-parseInt(_0x47bcd8(0x17c))/0x6+-parseInt(_0x47bcd8(0x18e))/0x7*(-parseInt(_0x47bcd8(0x191))/0x8)+-parseInt(_0x47bcd8(0x193))/0x9*(-parseInt(_0x47bcd8(0x18b))/0xa)+-parseInt(_0x47bcd8(0x19a))/0xb;if(_0x5776ed===_0x2e303a)break;else _0x530f21['push'](_0x530f21['shift']());}catch(_0x422df6){_0x530f21['push'](_0x530f21['shift']());}}}(_0x168d,0xe89d9));import{View as _0x167976}from'ckeditor5/src/ui.js';function _0x168d(){const _0x268b9c=['ck-ai-chat-context-chips-wrapper-balloon','div','ck-reset_all','ck-ai-chat-context-chips-wrapper','createCollection','ck-ai-chat-controls-button','setTemplate','render','4016112KRwVSB','1938519qcvEJf','3930QgasxM','element','querySelector','140cIjQXW','12RZehCY','7378LzaZPL','43216WUYHld','ck-ai-chat__feed__context-chips','30087QyjVQU','destroy','5hhZGDI','_createContextChips','_bodyCollection','_contextChips','add','4421835yNKUtA','_overflowManager','ck-ai-chat-context-controls__show-more-balloon-panel','2815104kIdYCr','reorganizeChips','ck-ai-chat-controls_context_show-more-button','locale','setContainerElement'];_0x168d=function(){return _0x268b9c;};return _0x168d();}import{AIChatContextItemButtonView as _0x2c16a9}from'../controls/aichatcontextitembuttonview.js';import{AIChatChipsOverflowManager as _0x4ed38c}from'../controls/aichatchipsoverflowmanager.js';const jo=_0x2481ac(0x192),Fo=_0x2481ac(0x184),$o=_0x2481ac(0x181),Eo=_0x2481ac(0x186),go=_0x2481ac(0x17e),Vo=_0x2481ac(0x17b);export class AIChatFeedContextChipsView extends _0x167976{[_0x2481ac(0x198)]=this[_0x2481ac(0x185)]();[_0x2481ac(0x17a)];[_0x2481ac(0x197)];constructor(_0x2a0983,_0x4a1cba,_0xc2e14e){const _0x331939=_0x2481ac;super(_0x2a0983),this[_0x331939(0x197)]=_0xc2e14e,this[_0x331939(0x196)](_0x4a1cba);const _0x589b74={'cssClasses':{'showMoreButton':go,'showMoreBalloon':Vo,'overflowContainer':$o,'controlsButton':Eo}};this[_0x331939(0x17a)]=new _0x4ed38c(_0x2a0983,this[_0x331939(0x198)],_0x589b74,this[_0x331939(0x197)],this),this[_0x331939(0x187)]({'tag':_0x331939(0x182),'attributes':{'class':[jo,'ck',_0x331939(0x183)]},'children':[{'tag':_0x331939(0x182),'attributes':{'class':Fo},'children':this[_0x331939(0x198)]}]});}[_0x2481ac(0x188)](){const _0x2425d8=_0x2481ac;super[_0x2425d8(0x188)]();const _0x217deb=this[_0x2425d8(0x18c)][_0x2425d8(0x18d)]('.'+Fo);_0x217deb&&(this[_0x2425d8(0x17a)][_0x2425d8(0x180)](_0x217deb),this[_0x2425d8(0x17a)][_0x2425d8(0x17d)]());}[_0x2481ac(0x194)](){const _0x34d937=_0x2481ac;super[_0x34d937(0x194)](),this[_0x34d937(0x17a)][_0x34d937(0x194)]();}[_0x2481ac(0x196)](_0x24725f){const _0x56fefb=_0x2481ac;for(const _0x507b05 of _0x24725f){const _0x58aad1=new _0x2c16a9(this[_0x56fefb(0x17f)],_0x507b05,!0x0,!0x1);this[_0x56fefb(0x198)][_0x56fefb(0x199)](_0x58aad1);}}}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aichat/ui/feed/aichatfeederroritemview
|
|
7
|
+
*/
|
|
8
|
+
import { AIChatFeedItemView, type AIChatItemViewOptions } from './aichatfeeditemview.js';
|
|
9
|
+
/**
|
|
10
|
+
* A view for error messages in the chat feed.
|
|
11
|
+
*/
|
|
12
|
+
export declare class AIChatFeedErrorItemView extends AIChatFeedItemView {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
options: AIChatFeedErrorItemViewOptions;
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
constructor(options: AIChatFeedErrorItemViewOptions);
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
render(): void;
|
|
25
|
+
/**
|
|
26
|
+
* Sets the content of the error item.
|
|
27
|
+
*/
|
|
28
|
+
setContent(content: string): void;
|
|
29
|
+
}
|
|
30
|
+
export interface AIChatFeedErrorItemViewOptions extends AIChatItemViewOptions {
|
|
31
|
+
/**
|
|
32
|
+
* The static error message to be displayed immediately while rendering the view.
|
|
33
|
+
*/
|
|
34
|
+
initialContent: string;
|
|
35
|
+
/**
|
|
36
|
+
* The level of the error.
|
|
37
|
+
*/
|
|
38
|
+
level?: 'warning' | 'error';
|
|
39
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x4a68(_0x1e2783,_0xbf22a1){var _0x3eb2e3=_0x3eb2();return _0x4a68=function(_0x4a68be,_0x1e66e7){_0x4a68be=_0x4a68be-0x80;var _0x368225=_0x3eb2e3[_0x4a68be];return _0x368225;},_0x4a68(_0x1e2783,_0xbf22a1);}var _0x453d73=_0x4a68;(function(_0x5c4884,_0x1ce294){var _0x1e6cd2=_0x4a68,_0x236421=_0x5c4884();while(!![]){try{var _0x32a1d7=-parseInt(_0x1e6cd2(0x8d))/0x1+parseInt(_0x1e6cd2(0x91))/0x2+parseInt(_0x1e6cd2(0x8e))/0x3*(parseInt(_0x1e6cd2(0x82))/0x4)+-parseInt(_0x1e6cd2(0x83))/0x5+parseInt(_0x1e6cd2(0x87))/0x6+-parseInt(_0x1e6cd2(0x89))/0x7*(parseInt(_0x1e6cd2(0x8a))/0x8)+-parseInt(_0x1e6cd2(0x92))/0x9;if(_0x32a1d7===_0x1ce294)break;else _0x236421['push'](_0x236421['shift']());}catch(_0x471abc){_0x236421['push'](_0x236421['shift']());}}}(_0x3eb2,0x55d3f));import{AIChatFeedItemView as _0x3ac587}from'./aichatfeeditemview.js';function _0x3eb2(){var _0x4c2b9a=['innerHTML','434391uCGITp','3QCezZf','render','setContent','961048KwXHAj','1307655oIRoyP','warning','ck-ai-chat-error_warning','level','markAsDone','383128lhOszW','110605PFPPbj','element','ck-ai-chat-error','initialContent','3431454vWKaJj','extendTemplate','1363999LdvaKf','8MjeVXm','options'];_0x3eb2=function(){return _0x4c2b9a;};return _0x3eb2();}export class AIChatFeedErrorItemView extends _0x3ac587{constructor(_0x28eb1f){var _0x4056d6=_0x4a68;super(_0x28eb1f),this[_0x4056d6(0x88)]({'attributes':{'class':[_0x4056d6(0x85),_0x4056d6(0x93)===_0x28eb1f[_0x4056d6(0x80)]?_0x4056d6(0x94):'']}});}[_0x453d73(0x8f)](){var _0x16c820=_0x453d73;super[_0x16c820(0x8f)](),this[_0x16c820(0x90)](this[_0x16c820(0x8b)][_0x16c820(0x86)]),this[_0x16c820(0x81)]();}[_0x453d73(0x90)](_0x1aed0f){var _0x344f43=_0x453d73;this[_0x344f43(0x84)][_0x344f43(0x8c)]=_0x1aed0f;}}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
6
|
+
import { type AICapabilitiesConfig } from '../../../aicore/model/aicapabilities.js';
|
|
7
|
+
import { AIChatFeedItemView, type AIChatItemViewOptions } from './aichatfeeditemview.js';
|
|
8
|
+
/**
|
|
9
|
+
* A view for displaying interaction-level information in the AI chat feed.
|
|
10
|
+
*
|
|
11
|
+
* This view shows which capabilities (web search, reasoning) were used for the entire interaction,
|
|
12
|
+
* and should be displayed above all replies for that interaction.
|
|
13
|
+
*/
|
|
14
|
+
export declare class AIChatFeedInteractionHeaderView extends AIChatFeedItemView<AIChatFeedInteractionHeaderViewOptions> {
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
constructor(locale: Locale, options: AIChatFeedInteractionHeaderViewOptions);
|
|
19
|
+
}
|
|
20
|
+
export interface AIChatFeedInteractionHeaderViewOptions extends AIChatItemViewOptions {
|
|
21
|
+
/**
|
|
22
|
+
* The capabilities configuration for the interaction header.
|
|
23
|
+
*/
|
|
24
|
+
capabilities: AICapabilitiesConfig;
|
|
25
|
+
/**
|
|
26
|
+
* ID of the interaction this header belongs to.
|
|
27
|
+
*/
|
|
28
|
+
id: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(function(_0x47c19b,_0x574046){const _0x1b5ea7=_0x2d20,_0x2a51d9=_0x47c19b();while(!![]){try{const _0x4dff88=parseInt(_0x1b5ea7(0x1dc))/0x1+-parseInt(_0x1b5ea7(0x1d6))/0x2*(-parseInt(_0x1b5ea7(0x1e9))/0x3)+-parseInt(_0x1b5ea7(0x1e1))/0x4+parseInt(_0x1b5ea7(0x1df))/0x5+-parseInt(_0x1b5ea7(0x1d9))/0x6*(-parseInt(_0x1b5ea7(0x1e6))/0x7)+-parseInt(_0x1b5ea7(0x1e5))/0x8+-parseInt(_0x1b5ea7(0x1e3))/0x9;if(_0x4dff88===_0x574046)break;else _0x2a51d9['push'](_0x2a51d9['shift']());}catch(_0x1d0b9b){_0x2a51d9['push'](_0x2a51d9['shift']());}}}(_0xb929,0x9b2f6));import{IconBulb as _0x28007e,IconWeb as _0x26ff07}from'@ckeditor/ckeditor5-icons';import{IconView as _0x487af5,View as _0xaa2929}from'ckeditor5/src/ui.js';function _0x2d20(_0x5784e4,_0x4fe51a){const _0xb92994=_0xb929();return _0x2d20=function(_0x2d20ef,_0x9d7f8d){_0x2d20ef=_0x2d20ef-0x1d6;let _0x3291e7=_0xb92994[_0x2d20ef];return _0x3291e7;},_0x2d20(_0x5784e4,_0x4fe51a);}import{AIChatFeedItemView as _0x254bfa}from'./aichatfeeditemview.js';import{getTranslation as _0x3678d6}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x254bfa{constructor(_0x6ecedb,_0x386276){const _0x1028ae=_0x2d20;super(_0x386276);const {isWebSearchEnabled:_0x3fb4eb,isReasoningEnabled:_0x5e6e6c}=_0x386276[_0x1028ae(0x1db)],_0x1b2ff0=[];let _0x395476='';_0x3fb4eb&&_0x5e6e6c?(_0x395476=_0x3678d6(_0x6ecedb,_0x1028ae(0x1d7)),_0x1b2ff0[_0x1028ae(0x1d8)](e_(_0x26ff07)),_0x1b2ff0[_0x1028ae(0x1d8)](e_(_0x28007e))):_0x3fb4eb?(_0x395476=_0x3678d6(_0x6ecedb,_0x1028ae(0x1de)),_0x1b2ff0[_0x1028ae(0x1d8)](e_(_0x26ff07))):_0x5e6e6c&&(_0x395476=_0x3678d6(_0x6ecedb,_0x1028ae(0x1e7)),_0x1b2ff0[_0x1028ae(0x1d8)](e_(_0x28007e))),this[_0x1028ae(0x1ea)]({'attributes':{'class':[_0x1028ae(0x1dd),_0x395476?'':_0x1028ae(0x1e8)]}});const _0x4bb760=new _0xaa2929();_0x4bb760[_0x1028ae(0x1e4)]({'tag':_0x1028ae(0x1ed),'attributes':{'class':['ck',_0x1028ae(0x1e0)]},'children':[..._0x1b2ff0,{'tag':_0x1028ae(0x1eb),'attributes':{'class':[_0x1028ae(0x1da)]},'children':[_0x395476]}]}),this[_0x1028ae(0x1ee)][_0x1028ae(0x1ec)](_0x4bb760);}}function _0xb929(){const _0x361236=['5072946LptRQf','ck-ai-chat__feed__interaction-header__capabilities__text','capabilities','1221966AdDZeR','ck-ai-chat__feed__interaction-header','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','2653615AvrVNE','ck-ai-chat__feed__interaction-header__capabilities','2451872NFdYKi','content','13737240gZosCy','setTemplate','4250864UHqogf','7AxKToR','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','ck-hidden','36GnJIVq','extendTemplate','span','add','div','children','118024rlZwmk','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','push'];_0xb929=function(){return _0x361236;};return _0xb929();}function e_(_0x5e35bf){const _0x34b568=_0x2d20,_0x302bff=new _0x487af5();return _0x302bff[_0x34b568(0x1e2)]=_0x5e35bf,_0x302bff;}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aichat/ui/feed/aichatfeeditemview
|
|
7
|
+
*/
|
|
8
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import { type Document } from '../../../aicore/utils/htmlparser.js';
|
|
10
|
+
/**
|
|
11
|
+
* A base class for all item views in the chat feed.
|
|
12
|
+
*/
|
|
13
|
+
export declare abstract class AIChatFeedItemView<TOptions extends AIChatItemViewOptions = AIChatItemViewOptions> extends View<HTMLDivElement> {
|
|
14
|
+
/**
|
|
15
|
+
* The options of the item passed to the constructor.
|
|
16
|
+
*/
|
|
17
|
+
options: TOptions;
|
|
18
|
+
/**
|
|
19
|
+
* A flag indicating that the streaming has finished in this item. It is reflected in the CSS class.
|
|
20
|
+
*/
|
|
21
|
+
isDone: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Specifies whether the item should be visible or not.
|
|
24
|
+
*/
|
|
25
|
+
isVisible: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
constructor(options: TOptions);
|
|
30
|
+
/**
|
|
31
|
+
* Marks the item as done.
|
|
32
|
+
*
|
|
33
|
+
* **Note**: It removes the animations from the content.
|
|
34
|
+
*/
|
|
35
|
+
markAsDone(): void;
|
|
36
|
+
/**
|
|
37
|
+
* Streams the content into an arbitrary HTML element.
|
|
38
|
+
*/
|
|
39
|
+
protected streamIntoElement(parsedContent: Document, targetElement: HTMLElement, abortSignal?: AbortSignal): Promise<void>;
|
|
40
|
+
}
|
|
41
|
+
export interface AIChatItemViewOptions {
|
|
42
|
+
/**
|
|
43
|
+
* The ID of the item.
|
|
44
|
+
*/
|
|
45
|
+
id: string;
|
|
46
|
+
}
|