@ckeditor/ckeditor5-ai 46.1.1-alpha.3 → 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,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 _0x1a539e=_0x399b;(function(_0x51e297,_0x2a9fec){const _0x57b54b=_0x399b,_0x2c3b37=_0x51e297();while(!![]){try{const _0xc752dc=parseInt(_0x57b54b(0x107))/0x1*(parseInt(_0x57b54b(0x116))/0x2)+-parseInt(_0x57b54b(0x115))/0x3*(-parseInt(_0x57b54b(0x10c))/0x4)+parseInt(_0x57b54b(0xf6))/0x5+parseInt(_0x57b54b(0x10b))/0x6+parseInt(_0x57b54b(0x112))/0x7*(-parseInt(_0x57b54b(0x101))/0x8)+-parseInt(_0x57b54b(0x118))/0x9*(-parseInt(_0x57b54b(0x103))/0xa)+parseInt(_0x57b54b(0x108))/0xb*(-parseInt(_0x57b54b(0xf7))/0xc);if(_0xc752dc===_0x2a9fec)break;else _0x2c3b37['push'](_0x2c3b37['shift']());}catch(_0x558830){_0x2c3b37['push'](_0x2c3b37['shift']());}}}(_0x3280,0xc297c));import{View as _0x49ead3}from'ckeditor5/src/ui.js';function _0x399b(_0x1f6da9,_0x20eb43){const _0x3280a4=_0x3280();return _0x399b=function(_0x399b6,_0x4bb2df){_0x399b6=_0x399b6-0xf5;let _0x1aa54c=_0x3280a4[_0x399b6];return _0x1aa54c;},_0x399b(_0x1f6da9,_0x20eb43);}function _0x3280(){const _0x3f2b15=['9BSLJjX','566822DzcQru','htmlStreamer','414oOscWe','element','isDone','animation:\x20ck-html-streamer-fade-in\x20.5s','3217280opNttV','5820636uGiHmI','content','stream','removeAttribute','setTemplate','children','cleanUpAnimations','[data-id]','options','ck-ai-chat__feed__item_done','2408crmXYt','ck-hidden','37900GBniit','div','forEach','createCollection','4tnFmMm','66qxVuhc','ck-ai-chat__feed__item','streamIntoElement','9253782MWenId','293272KppYBc','bindTemplate','ck-ai-chat__feed__text-item','markAsDone','set','querySelectorAll','147hmINQH','data-id','isVisible'];_0x3280=function(){return _0x3f2b15;};return _0x3280();}import{HTMLStreamer as _0x1b18b9}from'../../../aicore/utils/htmlstreamer.js';export class AIChatFeedItemView extends _0x49ead3{[_0x1a539e(0xff)];[_0x1a539e(0xf8)]='';[_0x1a539e(0x117)];[_0x1a539e(0xfc)];constructor(_0x193ab5){const _0x2d0caf=_0x1a539e;super();const _0x295d05=this[_0x2d0caf(0x10d)];this[_0x2d0caf(0x110)](_0x2d0caf(0x11a),!0x1),this[_0x2d0caf(0x110)](_0x2d0caf(0x114),!0x0),this[_0x2d0caf(0x117)]=new _0x1b18b9({'textNodeStyle':_0x2d0caf(0xf5),'delay':0x14}),this[_0x2d0caf(0xff)]=_0x193ab5,this[_0x2d0caf(0xfc)]=this[_0x2d0caf(0x106)](),this[_0x2d0caf(0xfb)]({'tag':_0x2d0caf(0x104),'attributes':{'class':['ck',_0x2d0caf(0x109),_0x295d05['if'](_0x2d0caf(0x11a),_0x2d0caf(0x100)),_0x295d05['if'](_0x2d0caf(0x114),_0x2d0caf(0x102),_0x2789d0=>!_0x2789d0),_0x2d0caf(0x10e)],'data-cke-ai-id':this[_0x2d0caf(0xff)]['id']},'children':this[_0x2d0caf(0xfc)]});}[_0x1a539e(0x10f)](){const _0x2b4db8=_0x1a539e;this[_0x2b4db8(0x117)][_0x2b4db8(0xfd)]({'targetElement':this[_0x2b4db8(0x119)]}),this[_0x2b4db8(0x119)][_0x2b4db8(0x111)](_0x2b4db8(0xfe))[_0x2b4db8(0x105)](_0x5d7b46=>{const _0x2e4b8b=_0x2b4db8;_0x5d7b46[_0x2e4b8b(0xfa)](_0x2e4b8b(0x113));}),this[_0x2b4db8(0x11a)]=!0x0;}async[_0x1a539e(0x10a)](_0x5c4bae,_0x518508,_0x4faba1){const _0x1836ad=_0x1a539e;await this[_0x1836ad(0x117)][_0x1836ad(0xf9)]({'document':_0x5c4bae,'targetElement':_0x518508,'abortSignal':_0x4faba1});}}
|
|
@@ -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/aichatfeedreplyitemview
|
|
7
|
+
*/
|
|
8
|
+
import { AIChatFeedItemView, type AIChatItemViewOptions } from './aichatfeeditemview.js';
|
|
9
|
+
import { type Document } from '../../../aicore/utils/htmlparser.js';
|
|
10
|
+
import { type AIContentRenderingStrategy } from '../../../aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js';
|
|
11
|
+
import { type AIReplySource } from '../../../aicore/model/aireply.js';
|
|
12
|
+
/**
|
|
13
|
+
* A view for an AI reply item in the AI chat feed.
|
|
14
|
+
*
|
|
15
|
+
* The reply can be either a static message (marked as done immediately) or a content that gets updated over time.
|
|
16
|
+
*
|
|
17
|
+
* The content of the reply is always streamed into its reply container.
|
|
18
|
+
*/
|
|
19
|
+
export declare class AIChatFeedReplyItemView extends AIChatFeedItemView {
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
constructor(options: AIChatFeedReplyItemViewOptions);
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
render(): Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
updateContent({ parsedContent, renderingStrategy, abortSignal }: {
|
|
32
|
+
parsedContent: Document;
|
|
33
|
+
renderingStrategy: AIContentRenderingStrategy;
|
|
34
|
+
abortSignal?: AbortSignal;
|
|
35
|
+
}): Promise<void>;
|
|
36
|
+
updateSources(sources: Array<AIReplySource>): void;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Options for the {@link AIChatFeedReplyItemView} class.
|
|
40
|
+
*/
|
|
41
|
+
export interface AIChatFeedReplyItemViewOptions extends AIChatItemViewOptions {
|
|
42
|
+
/**
|
|
43
|
+
* The initial message to be streamed immediately while rendering the view.
|
|
44
|
+
*/
|
|
45
|
+
initialContent?: string;
|
|
46
|
+
}
|
|
@@ -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 _0x1e3278=_0x2de5;(function(_0x3083ed,_0x4c276d){const _0x4d87db=_0x2de5,_0xa8b494=_0x3083ed();while(!![]){try{const _0x55f911=parseInt(_0x4d87db(0x204))/0x1*(-parseInt(_0x4d87db(0x1f7))/0x2)+-parseInt(_0x4d87db(0x20a))/0x3+parseInt(_0x4d87db(0x1ff))/0x4*(-parseInt(_0x4d87db(0x20b))/0x5)+parseInt(_0x4d87db(0x1f3))/0x6*(parseInt(_0x4d87db(0x205))/0x7)+-parseInt(_0x4d87db(0x1e9))/0x8+parseInt(_0x4d87db(0x209))/0x9*(parseInt(_0x4d87db(0x1fd))/0xa)+parseInt(_0x4d87db(0x1f0))/0xb*(parseInt(_0x4d87db(0x1ef))/0xc);if(_0x55f911===_0x4c276d)break;else _0xa8b494['push'](_0xa8b494['shift']());}catch(_0x18138e){_0xa8b494['push'](_0xa8b494['shift']());}}}(_0x2f05,0xe258a));import{AIChatFeedItemView as _0x551583}from'./aichatfeeditemview.js';import{parse as _0x4f0e15,render as _0x1fbeec}from'../../../aicore/utils/htmlparser.js';import{View as _0x2fa4d6}from'ckeditor5/src/ui.js';function _0x2de5(_0x44d38b,_0x18d8e6){const _0x2f0543=_0x2f05();return _0x2de5=function(_0x2de575,_0x25ccf3){_0x2de575=_0x2de575-0x1e8;let _0x57646b=_0x2f0543[_0x2de575];return _0x57646b;},_0x2de5(_0x44d38b,_0x18d8e6);}import{AIWebSourcesView as _0x45bdb4,AIWebSourceView as _0x4ac47f}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export class AIChatFeedReplyItemView extends _0x551583{[_0x1e3278(0x1f1)];constructor(_0x532af6){const _0x5ee9c0=_0x1e3278;super(_0x532af6),this[_0x5ee9c0(0x1f8)]({'attributes':{'class':[_0x5ee9c0(0x1ea)]}}),this[_0x5ee9c0(0x1f1)]=new _0x2fa4d6(),this[_0x5ee9c0(0x1f1)][_0x5ee9c0(0x1f9)]({'tag':_0x5ee9c0(0x1e8),'attributes':{'class':['ck',_0x5ee9c0(0x1eb),_0x5ee9c0(0x206)]}}),this[_0x5ee9c0(0x1fc)][_0x5ee9c0(0x201)](this[_0x5ee9c0(0x1f1)]);}async[_0x1e3278(0x1ec)](){const _0x14626c=_0x1e3278;super[_0x14626c(0x1ec)](),this[_0x14626c(0x1fa)][_0x14626c(0x1f6)]&&(await this[_0x14626c(0x1fe)]({'parsedContent':_0x4f0e15(this[_0x14626c(0x1fa)][_0x14626c(0x1f6)]),'renderingStrategy':_0x14626c(0x203)}),this[_0x14626c(0x1f4)]());}async[_0x1e3278(0x1fe)]({parsedContent:_0x493e6c,renderingStrategy:_0x1cdcf2,abortSignal:_0x47b237}){const _0x320106=_0x1e3278;_0x320106(0x1f5)===_0x1cdcf2?await this[_0x320106(0x202)](_0x493e6c,this[_0x320106(0x1f1)][_0x320106(0x1ee)],_0x47b237):this[_0x320106(0x1f1)][_0x320106(0x1ee)][_0x320106(0x208)]=_0x1fbeec(_0x493e6c);}[_0x1e3278(0x200)](_0x2b2b37){const _0x4526e4=_0x1e3278,_0x3b00bc=new _0x45bdb4(this[_0x4526e4(0x1f2)]);_0x3b00bc[_0x4526e4(0x1fc)][_0x4526e4(0x207)](_0x2b2b37[_0x4526e4(0x1ed)](_0x4ba216=>new _0x4ac47f(this[_0x4526e4(0x1f2)],_0x4ba216))),_0x3b00bc[_0x4526e4(0x1fb)]=!0x0,this[_0x4526e4(0x1fc)][_0x4526e4(0x201)](_0x3b00bc);}}function _0x2f05(){const _0x12b21d=['81iNvXyP','5023821IQfUCP','1019375cnKYJR','div','7395672JnIetw','ck-ai-chat__feed__ai-reply','ck-reset_all-excluded','render','map','element','62580KPLCqc','4763lqaeXm','replyContainer','locale','138NWdOYs','markAsDone','streaming','initialContent','209176eksjyp','extendTemplate','setTemplate','options','displayHeader','children','1017370gaClBR','updateContent','12IzhCho','updateSources','add','streamIntoElement','static','2kqEbLv','357077xyaZXF','ck-ai-chat__feed__ai-reply-container','addMany','innerHTML'];_0x2f05=function(){return _0x12b21d;};return _0x2f05();}
|
|
@@ -0,0 +1,74 @@
|
|
|
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/aichatfeedsuggestionitemactionsview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
10
|
+
/**
|
|
11
|
+
* A view for the actions of an AI suggestion item in the AI chat feed.
|
|
12
|
+
*
|
|
13
|
+
* It hosts a dropdown with actions that can be applied to the suggestion.
|
|
14
|
+
*/
|
|
15
|
+
export declare class AIChatFeedSuggestionItemActionsView extends View {
|
|
16
|
+
/**
|
|
17
|
+
* Specifies whether the view should be interactive or not.
|
|
18
|
+
*/
|
|
19
|
+
isEnabled: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Specifies whether the view should be visible or not.
|
|
22
|
+
*/
|
|
23
|
+
isVisible: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
constructor(locale: Locale);
|
|
28
|
+
/**
|
|
29
|
+
* Updates the labels of the actions based on the number of parts in the suggestion.
|
|
30
|
+
*/
|
|
31
|
+
updateLabels(partsCount: number): void;
|
|
32
|
+
}
|
|
33
|
+
export type AIShowChangeInTextEvent = {
|
|
34
|
+
name: 'showChangeInText';
|
|
35
|
+
args: [{
|
|
36
|
+
replyId: string;
|
|
37
|
+
partIndex?: number;
|
|
38
|
+
}];
|
|
39
|
+
};
|
|
40
|
+
export type AIInsertSuggestionEvent = {
|
|
41
|
+
name: 'insertSuggestion';
|
|
42
|
+
args: [{
|
|
43
|
+
replyId: string;
|
|
44
|
+
partIndex?: number;
|
|
45
|
+
}];
|
|
46
|
+
};
|
|
47
|
+
export type AIApplySuggestionEvent = {
|
|
48
|
+
name: 'applySuggestion';
|
|
49
|
+
args: [{
|
|
50
|
+
replyId: string;
|
|
51
|
+
partIndex?: number;
|
|
52
|
+
}];
|
|
53
|
+
};
|
|
54
|
+
export type AIRejectSuggestionEvent = {
|
|
55
|
+
name: 'rejectSuggestion';
|
|
56
|
+
args: [{
|
|
57
|
+
replyId: string;
|
|
58
|
+
partIndex: number;
|
|
59
|
+
}];
|
|
60
|
+
};
|
|
61
|
+
export type AIMouseOverSuggestionEvent = {
|
|
62
|
+
name: 'mouseOverSuggestion';
|
|
63
|
+
args: [{
|
|
64
|
+
replyId: string;
|
|
65
|
+
partIndex: number;
|
|
66
|
+
}];
|
|
67
|
+
};
|
|
68
|
+
export type AIMouseLeaveSuggestionEvent = {
|
|
69
|
+
name: 'mouseLeaveSuggestion';
|
|
70
|
+
args: [{
|
|
71
|
+
replyId: string;
|
|
72
|
+
partIndex: number;
|
|
73
|
+
}];
|
|
74
|
+
};
|
|
@@ -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 _0x28e87a=_0x3149;(function(_0x1b7ce5,_0x35f1d2){const _0x3bf598=_0x3149,_0x5a3947=_0x1b7ce5();while(!![]){try{const _0x423b13=-parseInt(_0x3bf598(0x14d))/0x1*(-parseInt(_0x3bf598(0x12f))/0x2)+parseInt(_0x3bf598(0x11e))/0x3+-parseInt(_0x3bf598(0x15a))/0x4*(-parseInt(_0x3bf598(0x136))/0x5)+parseInt(_0x3bf598(0x14b))/0x6*(parseInt(_0x3bf598(0x151))/0x7)+parseInt(_0x3bf598(0x13c))/0x8+parseInt(_0x3bf598(0x14f))/0x9*(-parseInt(_0x3bf598(0x135))/0xa)+-parseInt(_0x3bf598(0x14a))/0xb*(parseInt(_0x3bf598(0x124))/0xc);if(_0x423b13===_0x35f1d2)break;else _0x5a3947['push'](_0x5a3947['shift']());}catch(_0xae8994){_0x5a3947['push'](_0x5a3947['shift']());}}}(_0x59e1,0x7e3dd));import{KeystrokeHandler as _0x2189dd}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x15b0e0,BodyCollection as _0x3dd0f3,clickOutsideHandler as _0x2af511,ListItemButtonView as _0x5e7a4a,ListItemView as _0x336485,ListView as _0x5e6042,SplitButtonView as _0xd5af3a,UIModel as _0x51a4fe,View as _0x5803b4}from'ckeditor5/src/ui.js';function _0x3149(_0x2209c1,_0x940444){const _0x59e18f=_0x59e1();return _0x3149=function(_0x3149b5,_0x520f20){_0x3149b5=_0x3149b5-0x114;let _0x2192b9=_0x59e18f[_0x3149b5];return _0x2192b9;},_0x3149(_0x2209c1,_0x940444);}import{IconAddComment as _0x2fdaf9,IconDocumentWithLoupe as _0x64e659}from'ckeditor5/src/icons.js';import{getTranslation as _0x49be6c}from'../../../aicore/utils/common-translations.js';function _0x59e1(){const _0x485547=['balloonPanelClass','label','actionsDropdown','ck-ai-chat__feed__ai-suggestion__actions','left','9812bqprIF','1002NGhmDT','listenTo','381aIWxyG','source','9dOKDAH','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','7343pdrSLX','pin','listView','div','execute','isEnabled','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','bind','showChangeInText','10348KrRPeJ','delegate','esc','ltr','bindTemplate','ck-ai-chat__feed__ai-suggestion__actions__balloon','locale','bottom','_setUpKeystrokes','keystrokeHandler','hide','insertSuggestion','applySuggestion','open','updateLabels','unbind','isVisible','2995539HleWXb','balloonPanelView','arrowView','uiLanguageDirection','bodyCollection','add','19176nfeold','showChangeInTextModel','Apply','tooltip','keys','button','_setUpList','class','items','set','focus','2578kuFcwo','children','actionName','fire','listItemModels','attachToDom','7349750kqvtKn','1835MfZibs','width','destroy','detachFromDom','ck-hidden','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','505936HODfsl','element','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','content','insertSuggestionModel','createCollection','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','arrowless','setTemplate'];_0x59e1=function(){return _0x485547;};return _0x59e1();}export class AIChatFeedSuggestionItemActionsView extends _0x5803b4{[_0x28e87a(0x147)];[_0x28e87a(0x130)];[_0x28e87a(0x125)];[_0x28e87a(0x140)];constructor(_0x189c06){const _0x505c27=_0x28e87a;super(_0x189c06);const _0x153580=this[_0x505c27(0x15e)];this[_0x505c27(0x12d)](_0x505c27(0x156),!0x0),this[_0x505c27(0x12d)](_0x505c27(0x11d),!0x0),this[_0x505c27(0x125)]=new _0x51a4fe({'label':_0x49be6c(_0x189c06,_0x505c27(0x13b)),'icon':_0x64e659,'withText':!0x0,'type':_0x505c27(0x129),'actionName':_0x505c27(0x159)}),this[_0x505c27(0x140)]=new _0x51a4fe({'label':_0x49be6c(_0x189c06,_0x505c27(0x13e)),'icon':_0x2fdaf9,'withText':!0x0,'type':_0x505c27(0x129),'actionName':_0x505c27(0x118)}),this[_0x505c27(0x147)]=new Ko(_0x189c06,{'listItemModels':[this[_0x505c27(0x125)],this[_0x505c27(0x140)]]}),this[_0x505c27(0x147)]['on'](_0x505c27(0x155),()=>{const _0x3643ea=_0x505c27;this[_0x3643ea(0x132)](_0x3643ea(0x119));}),this[_0x505c27(0x147)]['on'](_0x505c27(0x159),()=>{const _0x3c3a92=_0x505c27;this[_0x3c3a92(0x132)](_0x3c3a92(0x159));}),this[_0x505c27(0x147)]['on'](_0x505c27(0x118),()=>{const _0x86fa9f=_0x505c27;this[_0x86fa9f(0x132)](_0x86fa9f(0x118));}),this[_0x505c27(0x147)][_0x505c27(0x12d)]({'label':_0x505c27(0x126),'tooltip':_0x49be6c(this[_0x505c27(0x160)],_0x505c27(0x157)),'withText':!0x0,'class':_0x505c27(0x148),'balloonPanelClass':_0x505c27(0x15f)}),this[_0x505c27(0x147)][_0x505c27(0x158)](_0x505c27(0x156))['to'](this),this[_0x505c27(0x130)]=this[_0x505c27(0x141)]([this[_0x505c27(0x147)]]),this[_0x505c27(0x144)]({'tag':_0x505c27(0x154),'attributes':{'class':['ck',_0x505c27(0x148),_0x153580['if'](_0x505c27(0x11d),_0x505c27(0x13a),_0x42fcc3=>!_0x42fcc3)]},'children':[this[_0x505c27(0x147)]]});}[_0x28e87a(0x11b)](_0x1cf2d8){const _0x34cacc=_0x28e87a,_0x1e6461=this[_0x34cacc(0x160)];this[_0x34cacc(0x147)][_0x34cacc(0x12d)]({'label':_0x49be6c(_0x1e6461,_0x34cacc(0x150),_0x1cf2d8),'tooltip':_0x49be6c(_0x1e6461,_0x34cacc(0x157),_0x1cf2d8)}),this[_0x34cacc(0x125)][_0x34cacc(0x146)]=_0x49be6c(_0x1e6461,_0x34cacc(0x13b),_0x1cf2d8),this[_0x34cacc(0x140)][_0x34cacc(0x146)]=_0x49be6c(_0x1e6461,_0x34cacc(0x13e),_0x1cf2d8);}}class Ko extends _0xd5af3a{[_0x28e87a(0x122)];[_0x28e87a(0x11f)];[_0x28e87a(0x153)];[_0x28e87a(0x116)];constructor(_0x3a3601,_0x313d6f){const _0x38b979=_0x28e87a;super(_0x3a3601),this[_0x38b979(0x11f)]=new _0x15b0e0(this[_0x38b979(0x160)]),this[_0x38b979(0x122)]=new _0x3dd0f3(this[_0x38b979(0x160)]),this[_0x38b979(0x122)][_0x38b979(0x134)](),this[_0x38b979(0x12d)](_0x38b979(0x145),''),this[_0x38b979(0x11f)][_0x38b979(0x158)](_0x38b979(0x12b))['to'](this,_0x38b979(0x145)),this[_0x38b979(0x153)]=this[_0x38b979(0x12a)](_0x313d6f[_0x38b979(0x133)]),this[_0x38b979(0x122)][_0x38b979(0x123)](this[_0x38b979(0x11f)]),this[_0x38b979(0x11f)][_0x38b979(0x13f)][_0x38b979(0x123)](this[_0x38b979(0x153)]),this[_0x38b979(0x120)][_0x38b979(0x11c)](_0x38b979(0x127)),this[_0x38b979(0x120)][_0x38b979(0x12d)](_0x38b979(0x127),_0x49be6c(this[_0x38b979(0x160)],_0x38b979(0x142))),this[_0x38b979(0x115)](),this['on'](_0x38b979(0x155),()=>{const _0x36219c=_0x38b979;this[_0x36219c(0x11f)][_0x36219c(0x117)](),this[_0x36219c(0x120)][_0x36219c(0x12e)]();}),this['on'](_0x38b979(0x11a),()=>{const _0x3bd61a=_0x38b979;this[_0x3bd61a(0x11f)][_0x3bd61a(0x11d)]?(this[_0x3bd61a(0x11f)][_0x3bd61a(0x117)](),this[_0x3bd61a(0x120)][_0x3bd61a(0x12e)]()):(this[_0x3bd61a(0x11f)][_0x3bd61a(0x152)]({'target':this[_0x3bd61a(0x13d)],'positions':[_0x3bd61a(0x15d)===this[_0x3bd61a(0x160)][_0x3bd61a(0x121)]?qo:zo]}),this[_0x3bd61a(0x153)][_0x3bd61a(0x12e)]());}),_0x2af511({'emitter':this[_0x38b979(0x11f)],'callback':()=>{const _0xe9a2d5=_0x38b979;this[_0xe9a2d5(0x11f)][_0xe9a2d5(0x117)]();},'activator':()=>this[_0x38b979(0x11f)][_0x38b979(0x11d)],'contextElements':()=>[this[_0x38b979(0x13d)],this[_0x38b979(0x11f)][_0x38b979(0x13d)]]});}[_0x28e87a(0x12a)](_0x5c181f){const _0x474d90=_0x28e87a,_0x926ad4=this[_0x474d90(0x160)],_0x18f6ea=new _0x5e6042(_0x926ad4);for(const _0x1cd291 of _0x5c181f){const _0x2d7422=new _0x336485(_0x926ad4),_0xb05eb3=new _0x5e7a4a(_0x926ad4);_0xb05eb3[_0x474d90(0x158)](...Object[_0x474d90(0x128)](_0x1cd291))['to'](_0x1cd291),_0xb05eb3[_0x474d90(0x15b)](_0x474d90(0x155))['to'](_0x18f6ea),_0x2d7422[_0x474d90(0x130)][_0x474d90(0x123)](_0xb05eb3),_0x18f6ea[_0x474d90(0x12c)][_0x474d90(0x123)](_0x2d7422);}return _0x18f6ea[_0x474d90(0x12c)][_0x474d90(0x15b)](_0x474d90(0x155))['to'](this),_0x18f6ea['on'](_0x474d90(0x155),_0x37cdd2=>{const _0x3dabe0=_0x474d90,_0xbf8dde=_0x37cdd2[_0x3dabe0(0x14e)];this[_0x3dabe0(0x132)](_0xbf8dde[_0x3dabe0(0x131)]),this[_0x3dabe0(0x11f)][_0x3dabe0(0x117)](),this[_0x3dabe0(0x120)][_0x3dabe0(0x12e)]();}),_0x18f6ea;}[_0x28e87a(0x115)](){const _0x2bca94=_0x28e87a;this[_0x2bca94(0x116)]=new _0x2189dd(),this[_0x2bca94(0x116)][_0x2bca94(0x14c)](this[_0x2bca94(0x11f)][_0x2bca94(0x13d)]),this[_0x2bca94(0x116)][_0x2bca94(0x12d)](_0x2bca94(0x15c),(_0x46d04e,_0x519de5)=>{const _0x1d4b18=_0x2bca94;this[_0x1d4b18(0x11f)][_0x1d4b18(0x117)](),this[_0x1d4b18(0x120)][_0x1d4b18(0x12e)](),_0x519de5();});}[_0x28e87a(0x138)](){const _0x524b38=_0x28e87a;super[_0x524b38(0x138)](),this[_0x524b38(0x116)][_0x524b38(0x138)](),this[_0x524b38(0x11f)][_0x524b38(0x138)](),this[_0x524b38(0x122)][_0x524b38(0x139)]();}}function qo(_0x27f7d7){const _0xacf570=_0x28e87a;return{'top':_0x27f7d7[_0xacf570(0x114)],'left':_0x27f7d7[_0xacf570(0x149)],'name':_0xacf570(0x143),'config':{'withArrow':!0x1}};}function zo(_0x345aee,_0x1a3d13){const _0xeb6881=_0x28e87a;return{'top':_0x345aee[_0xeb6881(0x114)],'left':_0x345aee[_0xeb6881(0x149)]-(_0x1a3d13[_0xeb6881(0x137)]-_0x345aee[_0xeb6881(0x137)]),'name':_0xeb6881(0x143),'config':{'withArrow':!0x1}};}
|
|
@@ -0,0 +1,74 @@
|
|
|
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/aichatfeedsuggestionitemview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { AIChatFeedItemView, type AIChatItemViewOptions } from './aichatfeeditemview.js';
|
|
10
|
+
import { type AISuggestionContentPartDefinition } from '../../../aicore/utils/getsuggestionpartsfromreply.js';
|
|
11
|
+
import { type AIReplySource } from '../../../aicore/model/aireply.js';
|
|
12
|
+
import { type AISuggestionBodyViewContentPartView, type AIContentRenderingStrategy } from '../../../aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js';
|
|
13
|
+
/**
|
|
14
|
+
* A view for an AI suggestion item in the AI chat feed.
|
|
15
|
+
*
|
|
16
|
+
* It hosts a suggestion container and a suggestion actions view.
|
|
17
|
+
*
|
|
18
|
+
* It allows for displaying suggestion content and its preview.
|
|
19
|
+
*/
|
|
20
|
+
export declare class AIChatFeedSuggestionItemView extends AIChatFeedItemView {
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
options: AIChatFeedSuggestionItemViewOptions;
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
constructor(locale: Locale, options: AIChatFeedSuggestionItemViewOptions);
|
|
29
|
+
/**
|
|
30
|
+
* Updates the suggestion content.
|
|
31
|
+
*/
|
|
32
|
+
updateContent(options: {
|
|
33
|
+
parts: Array<AISuggestionContentPartDefinition>;
|
|
34
|
+
renderingStrategy: AIContentRenderingStrategy;
|
|
35
|
+
abortSignal: AbortSignal;
|
|
36
|
+
}): Promise<void>;
|
|
37
|
+
updatePartState(index: number, state: string): void;
|
|
38
|
+
updateSources(sources: Array<AIReplySource>): void;
|
|
39
|
+
getPartView(index: number): AISuggestionBodyViewContentPartView | null;
|
|
40
|
+
/**
|
|
41
|
+
* Marks the suggestion as done and additionally updates the visibility of the actions view
|
|
42
|
+
* depending if any suggestion parts are actionable.
|
|
43
|
+
*/
|
|
44
|
+
markAsDone(): void;
|
|
45
|
+
}
|
|
46
|
+
export type AIReplyLikeEvent = {
|
|
47
|
+
name: 'like';
|
|
48
|
+
args: [{
|
|
49
|
+
replyId: string;
|
|
50
|
+
}];
|
|
51
|
+
};
|
|
52
|
+
export type AIReplyDislikeEvent = {
|
|
53
|
+
name: 'dislike';
|
|
54
|
+
args: [{
|
|
55
|
+
replyId: string;
|
|
56
|
+
}];
|
|
57
|
+
};
|
|
58
|
+
export type AIToggleSuggestionDisplayModeEvent = {
|
|
59
|
+
name: 'toggleSuggestionDisplayMode';
|
|
60
|
+
args: [{
|
|
61
|
+
replyId: string;
|
|
62
|
+
showDiff: boolean;
|
|
63
|
+
}];
|
|
64
|
+
};
|
|
65
|
+
export interface AIChatFeedSuggestionItemViewOptions extends AIChatItemViewOptions {
|
|
66
|
+
/**
|
|
67
|
+
* A flag indicating whether the item actions should be disabled.
|
|
68
|
+
*/
|
|
69
|
+
areActionsDisabled: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* A flag indicating whether the suggestion should show the diff or final suggestion.
|
|
72
|
+
*/
|
|
73
|
+
showDiff: boolean;
|
|
74
|
+
}
|
|
@@ -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
|
+
var _0x317046=_0x204c;(function(_0x554734,_0x5d77ff){var _0x1be89e=_0x204c,_0x2f22c9=_0x554734();while(!![]){try{var _0x2600b7=parseInt(_0x1be89e(0x158))/0x1+-parseInt(_0x1be89e(0x173))/0x2+-parseInt(_0x1be89e(0x168))/0x3*(parseInt(_0x1be89e(0x14f))/0x4)+parseInt(_0x1be89e(0x169))/0x5*(-parseInt(_0x1be89e(0x15b))/0x6)+-parseInt(_0x1be89e(0x162))/0x7*(parseInt(_0x1be89e(0x16a))/0x8)+-parseInt(_0x1be89e(0x15f))/0x9+parseInt(_0x1be89e(0x152))/0xa;if(_0x2600b7===_0x5d77ff)break;else _0x2f22c9['push'](_0x2f22c9['shift']());}catch(_0x3a766f){_0x2f22c9['push'](_0x2f22c9['shift']());}}}(_0x36f1,0xe3c6c));function _0x36f1(){var _0x28f84d=['markAsDone','getPartView','1492100QeOesv','mouseOverSuggestion','areActionsDisabled','bodyView','extendTemplate','rejectSuggestion','8tDyqPR','insertSuggestion','updatePartState','42303720RhqqXP','showDiff','showChangeInText','updateSources','children','containerView','323443yHXfYg','updateContent','dislike','30SjFcvJ','hasNonEmptyParts','isVisible','mouseLeaveSuggestion','12050712KAOsNd','fire','updateLabels','28elwEyP','applySuggestion','bind','actionsView','toggleSuggestionDisplayMode','addMany','679593TkpGTa','311155ChWSGL','1543216SsTLrV','hasPendingParts','like','partsCount','options','isEnabled','ck-ai-chat__feed__ai-suggestion'];_0x36f1=function(){return _0x28f84d;};return _0x36f1();}import{AIChatFeedItemView as _0x44a005}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0x1805a0}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x204c(_0xbd11db,_0x1913e5){var _0x36f1ef=_0x36f1();return _0x204c=function(_0x204c11,_0x395995){_0x204c11=_0x204c11-0x14b;var _0x382fb9=_0x36f1ef[_0x204c11];return _0x382fb9;},_0x204c(_0xbd11db,_0x1913e5);}import{AIChatFeedSuggestionItemActionsView as _0x3c665a}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x44a005{[_0x317046(0x157)];[_0x317046(0x165)];constructor(_0x51daf1,_0x5d735e){var _0x2b9edf=_0x317046;super(_0x5d735e),this[_0x2b9edf(0x157)]=new _0x1805a0(_0x51daf1,{'showDiff':_0x5d735e[_0x2b9edf(0x153)],'areActionsDisabled':_0x5d735e[_0x2b9edf(0x14b)]}),this[_0x2b9edf(0x157)]['on'](_0x2b9edf(0x166),(_0x26ab28,_0x36c6e2)=>{var _0x57e696=_0x2b9edf;this[_0x57e696(0x160)](_0x57e696(0x166),{'replyId':this[_0x57e696(0x16e)]['id'],'showDiff':_0x36c6e2[_0x57e696(0x153)]});}),this[_0x2b9edf(0x157)]['on'](_0x2b9edf(0x16c),()=>{var _0x29b7ee=_0x2b9edf;this[_0x29b7ee(0x160)](_0x29b7ee(0x16c),{'replyId':this[_0x29b7ee(0x16e)]['id']});}),this[_0x2b9edf(0x157)]['on'](_0x2b9edf(0x15a),()=>{var _0x912692=_0x2b9edf;this[_0x912692(0x160)](_0x912692(0x15a),{'replyId':this[_0x912692(0x16e)]['id']});}),this[_0x2b9edf(0x157)]['on'](_0x2b9edf(0x154),(_0x3c8c71,{index:_0x3256e1})=>{var _0x2e0017=_0x2b9edf;this[_0x2e0017(0x160)](_0x2e0017(0x154),{'replyId':this[_0x2e0017(0x16e)]['id'],'partIndex':_0x3256e1});}),this[_0x2b9edf(0x157)]['on'](_0x2b9edf(0x150),(_0x5248f0,{index:_0xaa46eb})=>{var _0x415397=_0x2b9edf;this[_0x415397(0x160)](_0x415397(0x150),{'replyId':this[_0x415397(0x16e)]['id'],'partIndex':_0xaa46eb});}),this[_0x2b9edf(0x157)]['on'](_0x2b9edf(0x14e),(_0x3223f9,{index:_0x1d47ed})=>{var _0x565798=_0x2b9edf;this[_0x565798(0x160)](_0x565798(0x14e),{'replyId':this[_0x565798(0x16e)]['id'],'partIndex':_0x1d47ed});}),this[_0x2b9edf(0x157)]['on'](_0x2b9edf(0x174),(_0x3ff5d8,{index:_0x497734})=>{var _0x34d86a=_0x2b9edf;this[_0x34d86a(0x160)](_0x34d86a(0x174),{'replyId':this[_0x34d86a(0x16e)]['id'],'partIndex':_0x497734});}),this[_0x2b9edf(0x157)]['on'](_0x2b9edf(0x15e),(_0x5a4977,{index:_0x20e519})=>{var _0x32b0b4=_0x2b9edf;this[_0x32b0b4(0x160)](_0x32b0b4(0x15e),{'replyId':this[_0x32b0b4(0x16e)]['id'],'partIndex':_0x20e519});}),this[_0x2b9edf(0x165)]=new _0x3c665a(_0x51daf1),this[_0x2b9edf(0x165)]['on'](_0x2b9edf(0x154),()=>{var _0xff9a33=_0x2b9edf;this[_0xff9a33(0x160)](_0xff9a33(0x154),{'replyId':this[_0xff9a33(0x16e)]['id']});}),this[_0x2b9edf(0x165)]['on'](_0x2b9edf(0x150),()=>{var _0x613673=_0x2b9edf;this[_0x613673(0x160)](_0x613673(0x150),{'replyId':this[_0x613673(0x16e)]['id']});}),this[_0x2b9edf(0x165)]['on'](_0x2b9edf(0x163),()=>{var _0x4b8bd4=_0x2b9edf;this[_0x4b8bd4(0x160)](_0x4b8bd4(0x163),{'replyId':this[_0x4b8bd4(0x16e)]['id']});}),_0x5d735e[_0x2b9edf(0x14b)]?this[_0x2b9edf(0x165)][_0x2b9edf(0x16f)]=!0x1:this[_0x2b9edf(0x165)][_0x2b9edf(0x164)](_0x2b9edf(0x16f))['to'](this[_0x2b9edf(0x157)][_0x2b9edf(0x14c)],_0x2b9edf(0x16b)),this[_0x2b9edf(0x156)][_0x2b9edf(0x167)]([this[_0x2b9edf(0x157)],this[_0x2b9edf(0x165)]]),this[_0x2b9edf(0x14d)]({'attributes':{'class':[_0x2b9edf(0x170)]}});}async[_0x317046(0x159)](_0x33ca09){var _0x5617d8=_0x317046;await this[_0x5617d8(0x157)][_0x5617d8(0x159)](_0x33ca09),this[_0x5617d8(0x165)][_0x5617d8(0x161)](this[_0x5617d8(0x157)][_0x5617d8(0x14c)][_0x5617d8(0x16d)]);}[_0x317046(0x151)](_0x1b040e,_0x152a70){var _0x145c0f=_0x317046;this[_0x145c0f(0x157)][_0x145c0f(0x14c)][_0x145c0f(0x151)](_0x1b040e,_0x152a70);}[_0x317046(0x155)](_0x139cfe){var _0x5bc32b=_0x317046;this[_0x5bc32b(0x157)][_0x5bc32b(0x155)](_0x139cfe);}[_0x317046(0x172)](_0x190b9c){var _0x1e6dc4=_0x317046;return this[_0x1e6dc4(0x157)][_0x1e6dc4(0x14c)][_0x1e6dc4(0x172)](_0x190b9c);}[_0x317046(0x171)](){var _0xcca95d=_0x317046;super[_0xcca95d(0x171)](),this[_0xcca95d(0x157)][_0xcca95d(0x171)](),this[_0xcca95d(0x165)][_0xcca95d(0x15d)]=this[_0xcca95d(0x157)][_0xcca95d(0x14c)][_0xcca95d(0x15c)];}}
|
|
@@ -0,0 +1,40 @@
|
|
|
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/aichatfeedusermessageitem
|
|
7
|
+
*/
|
|
8
|
+
import { AIChatFeedItemView, type AIChatItemViewOptions } from './aichatfeeditemview.js';
|
|
9
|
+
import { type AIContextItem } from '../../../aicore/model/aicontext.js';
|
|
10
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
11
|
+
import { type BodyCollection } from 'ckeditor5/src/ui.js';
|
|
12
|
+
/**
|
|
13
|
+
* A view for a user message item in the AI chat feed.
|
|
14
|
+
*
|
|
15
|
+
* It displays the content of the message without streaming.
|
|
16
|
+
*/
|
|
17
|
+
export declare class AIChatFeedUserMessageItemView extends AIChatFeedItemView<AIChatFeedUserMessageItemViewOptions> {
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
options: AIChatFeedUserMessageItemViewOptions;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
constructor(locale: Locale, options: AIChatFeedUserMessageItemViewOptions, bodyCollection: BodyCollection);
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
render(): void;
|
|
30
|
+
}
|
|
31
|
+
export interface AIChatFeedUserMessageItemViewOptions extends AIChatItemViewOptions {
|
|
32
|
+
/**
|
|
33
|
+
* The static user message to be displayed immediately while rendering the view.
|
|
34
|
+
*/
|
|
35
|
+
initialContent: string;
|
|
36
|
+
/**
|
|
37
|
+
* The context items to be displayed.
|
|
38
|
+
*/
|
|
39
|
+
contextItems: Array<AIContextItem>;
|
|
40
|
+
}
|
|
@@ -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
|
+
var _0x4216a0=_0x1ebf;(function(_0x400d51,_0x4df70a){var _0x1fa270=_0x1ebf,_0x42f3d6=_0x400d51();while(!![]){try{var _0x536d73=-parseInt(_0x1fa270(0x189))/0x1+-parseInt(_0x1fa270(0x183))/0x2*(parseInt(_0x1fa270(0x187))/0x3)+parseInt(_0x1fa270(0x195))/0x4*(parseInt(_0x1fa270(0x19c))/0x5)+-parseInt(_0x1fa270(0x186))/0x6+-parseInt(_0x1fa270(0x190))/0x7*(-parseInt(_0x1fa270(0x19d))/0x8)+-parseInt(_0x1fa270(0x18e))/0x9*(parseInt(_0x1fa270(0x188))/0xa)+parseInt(_0x1fa270(0x193))/0xb*(parseInt(_0x1fa270(0x184))/0xc);if(_0x536d73===_0x4df70a)break;else _0x42f3d6['push'](_0x42f3d6['shift']());}catch(_0x3ddb9f){_0x42f3d6['push'](_0x42f3d6['shift']());}}}(_0x9977,0x30063));import{AIChatFeedItemView as _0x4a96cf}from'./aichatfeeditemview.js';function _0x1ebf(_0x516c8f,_0x5d3263){var _0x99774c=_0x9977();return _0x1ebf=function(_0x1ebf71,_0x2316b0){_0x1ebf71=_0x1ebf71-0x17e;var _0x51c3d7=_0x99774c[_0x1ebf71];return _0x51c3d7;},_0x1ebf(_0x516c8f,_0x5d3263);}import{AIChatFeedContextChipsView as _0x32ca4b}from'./aichatfeedcontextchipsview.js';import{View as _0x1bddf7}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x4a96cf{[_0x4216a0(0x18c)]=null;[_0x4216a0(0x18a)];[_0x4216a0(0x17f)];[_0x4216a0(0x18f)];constructor(_0x4cf38b,_0x31c4a8,_0x265a06){var _0x26fd5a=_0x4216a0;super(_0x31c4a8),this[_0x26fd5a(0x18a)]=_0x4cf38b,this[_0x26fd5a(0x17f)]=_0x265a06,this[_0x26fd5a(0x180)](),this[_0x26fd5a(0x191)](),this[_0x26fd5a(0x19f)]({'attributes':{'class':[_0x26fd5a(0x1a1)]}});}[_0x4216a0(0x180)](){var _0x118cd7=_0x4216a0;this[_0x118cd7(0x1a0)][_0x118cd7(0x181)]&&this[_0x118cd7(0x1a0)][_0x118cd7(0x181)][_0x118cd7(0x182)]>0x0&&(this[_0x118cd7(0x18c)]=new _0x32ca4b(this[_0x118cd7(0x18a)],this[_0x118cd7(0x1a0)][_0x118cd7(0x181)][_0x118cd7(0x199)](_0x2b7d8e=>!_0x2b7d8e[_0x118cd7(0x194)]),this[_0x118cd7(0x17f)]),this[_0x118cd7(0x18c)][_0x118cd7(0x19f)]({'attributes':{'class':_0x118cd7(0x197)}}),this[_0x118cd7(0x19e)][_0x118cd7(0x17e)](this[_0x118cd7(0x18c)]));}[_0x4216a0(0x191)](){var _0x3ff8d9=_0x4216a0;this[_0x3ff8d9(0x18f)]=new _0x1bddf7(this[_0x3ff8d9(0x18a)]),this[_0x3ff8d9(0x18f)][_0x3ff8d9(0x19b)]({'tag':_0x3ff8d9(0x198),'attributes':{'class':_0x3ff8d9(0x18b)}}),this[_0x3ff8d9(0x19e)][_0x3ff8d9(0x17e)](this[_0x3ff8d9(0x18f)]);}[_0x4216a0(0x196)](){var _0x2c9e9b=_0x4216a0;super[_0x2c9e9b(0x196)](),this[_0x2c9e9b(0x18f)][_0x2c9e9b(0x185)][_0x2c9e9b(0x19a)]=this[_0x2c9e9b(0x1a0)][_0x2c9e9b(0x18d)],this[_0x2c9e9b(0x192)]();}}function _0x9977(){var _0x28eca8=['_locale','ck-ai-chat__feed__message-content','_contextChipsView','initialContent','1179zvoFwM','_messageContentView','6195XiolQO','_createMessageContentView','markAsDone','187zttLhb','hidden','916gumsnw','render','ck-ai-chat__feed__context-chips','div','filter','innerHTML','setTemplate','6620jHjRuV','944FhUyBK','children','extendTemplate','options','ck-ai-chat__feed__user-message','add','_bodyCollection','_createContextChipsView','contextItems','length','4IDdunY','377208OVvqTJ','element','1707984JgLyiN','244041MIPVML','10330vylpJY','162616hzYaSD'];_0x9977=function(){return _0x28eca8;};return _0x9977();}
|
|
@@ -0,0 +1,5 @@
|
|
|
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
|
+
export declare const AI_CHAT_UI_EVENT_NAMES: readonly ["showChangeInText", "insertSuggestion", "applySuggestion", "rejectSuggestion", "mouseOverSuggestion", "mouseLeaveSuggestion", "toggleSuggestionDisplayMode", "like", "dislike", "startConversation", "resizeTabs", "sendUserMessage", "abortPromptStream", "addDocumentToContext", "addFileToContext", "addUrlToContext", "addResourceToContext", "removeContextItem", "loadSourceResources", "toggleWebSearch", "toggleReasoning", "selectModel"];
|
|
@@ -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 _0x4ee168=_0x4479;(function(_0x53ff84,_0x55861f){const _0x4228aa=_0x4479,_0x364fca=_0x53ff84();while(!![]){try{const _0x5a8e89=-parseInt(_0x4228aa(0x15f))/0x1+parseInt(_0x4228aa(0x16a))/0x2*(-parseInt(_0x4228aa(0x168))/0x3)+parseInt(_0x4228aa(0x159))/0x4+-parseInt(_0x4228aa(0x15c))/0x5+parseInt(_0x4228aa(0x15e))/0x6+parseInt(_0x4228aa(0x161))/0x7+parseInt(_0x4228aa(0x167))/0x8*(-parseInt(_0x4228aa(0x163))/0x9);if(_0x5a8e89===_0x55861f)break;else _0x364fca['push'](_0x364fca['shift']());}catch(_0x248c15){_0x364fca['push'](_0x364fca['shift']());}}}(_0x4272,0xbfacc));function _0x4479(_0x3f73b5,_0x20be06){const _0x427280=_0x4272();return _0x4479=function(_0x447928,_0x224cd6){_0x447928=_0x447928-0x157;let _0x900a=_0x427280[_0x447928];return _0x900a;},_0x4479(_0x3f73b5,_0x20be06);}function _0x4272(){const _0x344b49=['10481044LApwOi','toggleReasoning','1068129oRUlkc','addResourceToContext','addDocumentToContext','removeContextItem','24AAczZi','1095918qjKfqi','loadSourceResources','2WFvbvz','startConversation','toggleWebSearch','addFileToContext','resizeTabs','1848192BgSFhS','addUrlToContext','selectModel','4300680jwwhWF','sendUserMessage','6759294XICOsN','719304kdveeZ','abortPromptStream'];_0x4272=function(){return _0x344b49;};return _0x4272();}import{AI_SUGGESTION_UI_EVENT_NAMES as _0xd0396d}from'../../aicore/utils/eventnames.js';export const AI_CHAT_UI_EVENT_NAMES=[..._0xd0396d,_0x4ee168(0x16b),_0x4ee168(0x158),_0x4ee168(0x15d),_0x4ee168(0x160),_0x4ee168(0x165),_0x4ee168(0x157),_0x4ee168(0x15a),_0x4ee168(0x164),_0x4ee168(0x166),_0x4ee168(0x169),_0x4ee168(0x16c),_0x4ee168(0x162),_0x4ee168(0x15b)];
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
declare const PromiseQueue_base: {
|
|
6
|
+
new (): import("ckeditor5/src/utils.js").Emitter;
|
|
7
|
+
prototype: import("ckeditor5/src/utils.js").Emitter;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* @module ai/aichat/utils/promisequeue
|
|
11
|
+
*/
|
|
12
|
+
export declare class PromiseQueue extends PromiseQueue_base {
|
|
13
|
+
isProcessing: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Adds a task to the queue. An abort signal is provided to the callback to allow it to abort the task.
|
|
16
|
+
*/
|
|
17
|
+
enqueue(callback: PromiseQueueTaskCallback): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Aborts the queue, rejects all pending tasks and resets it to initial state.
|
|
20
|
+
*/
|
|
21
|
+
abort(): void;
|
|
22
|
+
/**
|
|
23
|
+
* A promise that resolves when the queue is empty.
|
|
24
|
+
*/
|
|
25
|
+
get queueEmptyPromise(): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Processes the queue sequentially.
|
|
28
|
+
*/
|
|
29
|
+
private _processQueue;
|
|
30
|
+
}
|
|
31
|
+
type PromiseQueueTaskCallback = (signal: AbortSignal) => Promise<void>;
|
|
32
|
+
export {};
|
|
@@ -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 _0x11c286=_0x842e;(function(_0x111655,_0x1b8755){const _0x6247c8=_0x842e,_0x4c9ebf=_0x111655();while(!![]){try{const _0x18ef16=parseInt(_0x6247c8(0x10b))/0x1+parseInt(_0x6247c8(0x10a))/0x2+-parseInt(_0x6247c8(0x116))/0x3+parseInt(_0x6247c8(0x122))/0x4+parseInt(_0x6247c8(0x119))/0x5+parseInt(_0x6247c8(0x10e))/0x6+-parseInt(_0x6247c8(0x11d))/0x7;if(_0x18ef16===_0x1b8755)break;else _0x4c9ebf['push'](_0x4c9ebf['shift']());}catch(_0x4cecaa){_0x4c9ebf['push'](_0x4c9ebf['shift']());}}}(_0xd169,0x681fc));function _0x842e(_0x57be9c,_0x24e182){const _0xd1695b=_0xd169();return _0x842e=function(_0x842e31,_0x2866a3){_0x842e31=_0x842e31-0x10a;let _0x42e4cd=_0xd1695b[_0x842e31];return _0x42e4cd;},_0x842e(_0x57be9c,_0x24e182);}import{EmitterMixin as _0xeeaad0}from'ckeditor5/src/utils.js';export class PromiseQueue extends _0xeeaad0(){[_0x11c286(0x111)]=[];[_0x11c286(0x120)]=!0x1;[_0x11c286(0x11e)];async[_0x11c286(0x117)](_0x1c19d7){const _0x59e62f=_0x11c286,_0x5ad1cf=this[_0x59e62f(0x112)](_0x1c19d7);return this[_0x59e62f(0x111)][_0x59e62f(0x11f)](_0x5ad1cf),this[_0x59e62f(0x115)](),_0x5ad1cf[_0x59e62f(0x123)];}[_0x11c286(0x11c)](){const _0x52fe6b=_0x11c286;this[_0x52fe6b(0x120)]&&(this[_0x52fe6b(0x11e)][_0x52fe6b(0x11c)](),this[_0x52fe6b(0x11e)]=void 0x0,this[_0x52fe6b(0x111)]=[],this[_0x52fe6b(0x11b)](_0x52fe6b(0x113)),this[_0x52fe6b(0x120)]=!0x1);}get[_0x11c286(0x10c)](){const _0x19fe3b=_0x11c286;return this[_0x19fe3b(0x111)][_0x19fe3b(0x11a)]||this[_0x19fe3b(0x120)]?new Promise(_0x596edd=>{const _0x4bb72f=_0x19fe3b;this[_0x4bb72f(0x121)](_0x4bb72f(0x113),()=>{_0x596edd();});}):Promise[_0x19fe3b(0x110)]();}async[_0x11c286(0x115)](){const _0x58203e=_0x11c286;if(!this[_0x58203e(0x120)]){this[_0x58203e(0x11e)]=new AbortController(),this[_0x58203e(0x120)]=!0x0;try{for(;this[_0x58203e(0x111)][_0x58203e(0x11a)]&&this[_0x58203e(0x120)];){const _0x241e4a=this[_0x58203e(0x111)][_0x58203e(0x10d)]();try{await _0x241e4a[_0x58203e(0x118)](this[_0x58203e(0x11e)][_0x58203e(0x10f)]),_0x241e4a[_0x58203e(0x110)]();}catch(_0x5008ec){_0x241e4a[_0x58203e(0x114)](_0x5008ec);}}}finally{this[_0x58203e(0x120)]=!0x1,this[_0x58203e(0x11e)]=void 0x0;}this[_0x58203e(0x11b)](_0x58203e(0x113));}}[_0x11c286(0x112)](_0x15a540){let _0x3fad18,_0x50dd70;const _0xb26ce8=new Promise((_0xb39648,_0x173061)=>{_0x3fad18=_0xb39648,_0x50dd70=_0x173061;});return{'callback':_0x15a540,'resolve':_0x3fad18,'reject':_0x50dd70,'completePromise':_0xb26ce8};}}function _0xd169(){const _0x4bce0d=['length','fire','abort','10348170TVybWo','_abortController','push','isProcessing','once','1048616GkaNKj','completePromise','991088NWtrOR','679010DRaDUe','queueEmptyPromise','shift','3818250GoBrEt','signal','resolve','queue','createTask','_queueEmpty','reject','_processQueue','2544576wJhUGa','enqueue','callback','3399555RNiVqv'];_0xd169=function(){return _0x4bce0d;};return _0xd169();}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
* The scroll manager for an element. Once started, it auto-scrolls to the bottom of the element as its
|
|
7
|
+
* children change unless the user interacts with the element.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ScrollManager {
|
|
10
|
+
constructor(element: HTMLElement);
|
|
11
|
+
/**
|
|
12
|
+
* Starts the auto-scrolling.
|
|
13
|
+
*/
|
|
14
|
+
start(): void;
|
|
15
|
+
/**
|
|
16
|
+
* Stops the auto-scrolling.
|
|
17
|
+
*/
|
|
18
|
+
stop(): void;
|
|
19
|
+
/**
|
|
20
|
+
* Destroys the scroll manager.
|
|
21
|
+
*/
|
|
22
|
+
destroy(): void;
|
|
23
|
+
}
|
|
@@ -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 _0x4375(){const _0x5e0708=['stop','ArrowDown','_rafUpdate','8850985hFOPUx','_onUserEvent','7672DpvGxa','_stop','type','abortController','ArrowUp','33PXccHn','keydown','4148uJZmfO','isRunning','PageDown','1342230dlygcd','scrollHeight','scrollTo','destroy','147xrpybp','bind','_isAtBottom','start','3357aOKtYo','signal','6LIuscm','animationFrameId','auto','204pfgqfF','11911557qhMZOK','PageUp','Home','includes','addEventListener','isUserPaused','element','12rlkyEx','End','wheel','abort','pointerdown','deltaY','touchstart','8774125gtUuXL','key'];_0x4375=function(){return _0x5e0708;};return _0x4375();}const _0x39cf27=_0xd35f;(function(_0x50b197,_0x4d4b89){const _0x366fb8=_0xd35f,_0x48d1b6=_0x50b197();while(!![]){try{const _0x276e03=parseInt(_0x366fb8(0x8f))/0x1*(-parseInt(_0x366fb8(0x88))/0x2)+parseInt(_0x366fb8(0x86))/0x3*(-parseInt(_0x366fb8(0x98))/0x4)+parseInt(_0x366fb8(0x7a))/0x5*(-parseInt(_0x366fb8(0x95))/0x6)+parseInt(_0x366fb8(0x99))/0x7+parseInt(_0x366fb8(0x81))/0x8*(parseInt(_0x366fb8(0x93))/0x9)+parseInt(_0x366fb8(0x8b))/0xa+-parseInt(_0x366fb8(0x7f))/0xb*(-parseInt(_0x366fb8(0x73))/0xc);if(_0x276e03===_0x4d4b89)break;else _0x48d1b6['push'](_0x48d1b6['shift']());}catch(_0x29eee8){_0x48d1b6['push'](_0x48d1b6['shift']());}}}(_0x4375,0xe4fe0));function _0xd35f(_0x18dea2,_0x515d60){const _0x4375b5=_0x4375();return _0xd35f=function(_0xd35fa7,_0x3eaaca){_0xd35fa7=_0xd35fa7-0x72;let _0x5c2b66=_0x4375b5[_0xd35fa7];return _0x5c2b66;},_0xd35f(_0x18dea2,_0x515d60);}const ms=[_0x39cf27(0x75),_0x39cf27(0x79),_0x39cf27(0x77),_0x39cf27(0x87)],ps=[_0x39cf27(0x85),_0x39cf27(0x7d),_0x39cf27(0x9a),_0x39cf27(0x8a),_0x39cf27(0x9b),_0x39cf27(0x74),'\x20'];export class ScrollManager{[_0x39cf27(0x72)];[_0x39cf27(0x96)];[_0x39cf27(0x89)];[_0x39cf27(0x84)];[_0x39cf27(0x9e)];constructor(_0x259dc2){const _0x18b85f=_0x39cf27;this[_0x18b85f(0x72)]=_0x259dc2,this[_0x18b85f(0x96)]=null,this[_0x18b85f(0x89)]=!0x1,this[_0x18b85f(0x84)]=new AbortController(),this[_0x18b85f(0x9e)]=!0x1;for(const _0x169480 of ms){const _0x18dcf8=_0x18b85f(0x87)!==_0x169480;this[_0x18b85f(0x72)][_0x18b85f(0x9d)](_0x169480,this[_0x18b85f(0x80)][_0x18b85f(0x90)](this),{'passive':_0x18dcf8,'signal':this[_0x18b85f(0x84)][_0x18b85f(0x94)]});}}[_0x39cf27(0x92)](){const _0x1cdf0d=_0x39cf27;this[_0x1cdf0d(0x89)]||(this[_0x1cdf0d(0x89)]=!0x0,this[_0x1cdf0d(0x9e)]=!0x1,this[_0x1cdf0d(0x96)]=requestAnimationFrame(this[_0x1cdf0d(0x7e)][_0x1cdf0d(0x90)](this)));}[_0x39cf27(0x7c)](){requestAnimationFrame(()=>{const _0x424457=_0xd35f;this[_0x424457(0x82)]();});}[_0x39cf27(0x8e)](){const _0x10e0fb=_0x39cf27;this[_0x10e0fb(0x82)](),this[_0x10e0fb(0x84)][_0x10e0fb(0x76)]();}[_0x39cf27(0x82)](){const _0x3df118=_0x39cf27;null!==this[_0x3df118(0x96)]&&(cancelAnimationFrame(this[_0x3df118(0x96)]),this[_0x3df118(0x96)]=null),this[_0x3df118(0x89)]&&(this[_0x3df118(0x89)]=!0x1),this[_0x3df118(0x9e)]=!0x1;}[_0x39cf27(0x80)](_0x57acf5){const _0x47941e=_0x39cf27;if(this[_0x47941e(0x89)]){if(_0x47941e(0x87)===_0x57acf5[_0x47941e(0x83)]){const _0x443e07=_0x57acf5[_0x47941e(0x7b)];if(!ps[_0x47941e(0x9c)](_0x443e07))return;}_0x57acf5 instanceof WheelEvent?_0x57acf5[_0x47941e(0x78)]<0x0?this[_0x47941e(0x9e)]=!0x0:this[_0x47941e(0x9e)]=!this[_0x47941e(0x91)]():this[_0x47941e(0x9e)]=!0x0;}}[_0x39cf27(0x91)](){const _0x101cf5=_0x39cf27,{scrollTop:_0x5b590c,scrollHeight:_0x4bcbf9,clientHeight:_0x398386}=this[_0x101cf5(0x72)];return _0x4bcbf9-_0x5b590c-_0x398386<=0x5;}[_0x39cf27(0x7e)](){const _0x48efe6=_0x39cf27;this[_0x48efe6(0x89)]&&(this[_0x48efe6(0x9e)]||this[_0x48efe6(0x72)][_0x48efe6(0x8d)]({'top':this[_0x48efe6(0x72)][_0x48efe6(0x8c)],'behavior':_0x48efe6(0x97)}),this[_0x48efe6(0x96)]=requestAnimationFrame(this[_0x48efe6(0x7e)][_0x48efe6(0x90)](this)));}}
|
|
@@ -0,0 +1,30 @@
|
|
|
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/aichathistory/aichathistory
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { ContextPlugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { AIChatHistoryController } from './aichathistorycontroller.js';
|
|
11
|
+
import { AIChatHistoryUI } from './aichathistoryui.js';
|
|
12
|
+
export { AIChatHistoryItem } from './model/aichathistoryitem.js';
|
|
13
|
+
export declare class AIChatHistory extends ContextPlugin {
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static get requires(): readonly [typeof AIChatHistoryController, typeof AIChatHistoryUI];
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get pluginName(): "AIChatHistory";
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get isOfficialPlugin(): true;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static get isPremiumPlugin(): true;
|
|
30
|
+
}
|
|
@@ -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
|
+
var _0x4376bc=_0x573e;(function(_0x15814a,_0x2c96dd){var _0x5626cd=_0x573e,_0x24a7a8=_0x15814a();while(!![]){try{var _0x18b104=parseInt(_0x5626cd(0xe9))/0x1*(-parseInt(_0x5626cd(0xeb))/0x2)+parseInt(_0x5626cd(0xde))/0x3*(-parseInt(_0x5626cd(0xe6))/0x4)+-parseInt(_0x5626cd(0xdf))/0x5+-parseInt(_0x5626cd(0xe7))/0x6+-parseInt(_0x5626cd(0xe0))/0x7+-parseInt(_0x5626cd(0xec))/0x8*(parseInt(_0x5626cd(0xe4))/0x9)+parseInt(_0x5626cd(0xea))/0xa*(parseInt(_0x5626cd(0xed))/0xb);if(_0x18b104===_0x2c96dd)break;else _0x24a7a8['push'](_0x24a7a8['shift']());}catch(_0x2bc866){_0x24a7a8['push'](_0x24a7a8['shift']());}}}(_0x36de,0x8bf4e));import{ContextPlugin as _0x1eae8c}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x83fe99}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x54845c}from'./aichathistoryui.js';function _0x573e(_0x3a4c73,_0xa91d04){var _0x36de58=_0x36de();return _0x573e=function(_0x573e1b,_0x49188e){_0x573e1b=_0x573e1b-0xde;var _0x8d7ce9=_0x36de58[_0x573e1b];return _0x8d7ce9;},_0x573e(_0x3a4c73,_0xa91d04);}export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x1eae8c{static get[_0x4376bc(0xe8)](){return[_0x83fe99,_0x54845c];}static get[_0x4376bc(0xe2)](){var _0x29cfc3=_0x4376bc;return _0x29cfc3(0xe1);}static get[_0x4376bc(0xe3)](){return!0x0;}static get[_0x4376bc(0xe5)](){return!0x0;}}function _0x36de(){var _0x196141=['AIChatHistory','pluginName','isOfficialPlugin','9ACgfzT','isPremiumPlugin','1269116yOSXRH','4814226jQAiyS','requires','70593IEAPYw','10MJOONw','6liZcWi','6975776KKzXna','49852407iQWOGO','9xCaENE','3927515wMPCjc','2347191Sqsrso'];_0x36de=function(){return _0x196141;};return _0x36de();}
|