@ckeditor/ckeditor5-ai 46.1.1 → 47.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +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 +2742 -0
- package/dist/index.css +3141 -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 +163 -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/{legacyerrors.js → aiassistant/legacyerrors.js} +1 -1
- 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 +92 -30
- 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 +102 -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 +23 -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 +255 -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/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 _0x184194=_0x5d83;function _0x2fbe(){const _0x20e68d=['isDone','removeAttribute','88zBumMd','ck-ai-chat__feed__item_done','ck-ai-chat__feed__item','isVisible','streamIntoElement','set','ck-ai-chat__feed__text-item','623556ddznFV','8205183LPGmFp','ck-hidden','bindTemplate','cleanUpAnimations','options','stream','1599027hwlYFp','createCollection','children','element','div','markAsDone','content','forEach','data-id','2935920oYedId','4PuDqkU','1500245tYNWqD','1733652yqfmts','1000517wetBZl','setTemplate','querySelectorAll','htmlStreamer','animation:\x20ck-html-streamer-fade-in\x20.5s','[data-id]'];_0x2fbe=function(){return _0x20e68d;};return _0x2fbe();}(function(_0x2f8fc1,_0x613f41){const _0x50819f=_0x5d83,_0x493cf7=_0x2f8fc1();while(!![]){try{const _0x3d07a8=parseInt(_0x50819f(0x1bb))/0x1+parseInt(_0x50819f(0x1ba))/0x2+parseInt(_0x50819f(0x1d1))/0x3+parseInt(_0x50819f(0x1b8))/0x4*(-parseInt(_0x50819f(0x1b9))/0x5)+parseInt(_0x50819f(0x1b7))/0x6+-parseInt(_0x50819f(0x1cb))/0x7+-parseInt(_0x50819f(0x1c3))/0x8*(parseInt(_0x50819f(0x1ca))/0x9);if(_0x3d07a8===_0x613f41)break;else _0x493cf7['push'](_0x493cf7['shift']());}catch(_0x37ec80){_0x493cf7['push'](_0x493cf7['shift']());}}}(_0x2fbe,0x9ffe2));import{View as _0x16f1b2}from'ckeditor5/src/ui.js';import{HTMLStreamer as _0x167ea8}from'../../../aicore/utils/htmlstreamer.js';function _0x5d83(_0x318df6,_0x3d21b7){const _0x2fbef3=_0x2fbe();return _0x5d83=function(_0x5d839a,_0x36954c){_0x5d839a=_0x5d839a-0x1b0;let _0x47274a=_0x2fbef3[_0x5d839a];return _0x47274a;},_0x5d83(_0x318df6,_0x3d21b7);}export class AIChatFeedItemView extends _0x16f1b2{[_0x184194(0x1cf)];[_0x184194(0x1b4)]='';[_0x184194(0x1be)];[_0x184194(0x1b0)];constructor(_0xc489be){const _0x40b5b4=_0x184194;super();const _0x3d9e06=this[_0x40b5b4(0x1cd)];this[_0x40b5b4(0x1c8)](_0x40b5b4(0x1c1),!0x1),this[_0x40b5b4(0x1c8)](_0x40b5b4(0x1c6),!0x0),this[_0x40b5b4(0x1be)]=new _0x167ea8({'textNodeStyle':_0x40b5b4(0x1bf),'delay':0x14}),this[_0x40b5b4(0x1cf)]=_0xc489be,this[_0x40b5b4(0x1b0)]=this[_0x40b5b4(0x1d2)](),this[_0x40b5b4(0x1bc)]({'tag':_0x40b5b4(0x1b2),'attributes':{'class':['ck',_0x40b5b4(0x1c5),_0x3d9e06['if'](_0x40b5b4(0x1c1),_0x40b5b4(0x1c4)),_0x3d9e06['if'](_0x40b5b4(0x1c6),_0x40b5b4(0x1cc),_0x47c410=>!_0x47c410),_0x40b5b4(0x1c9)],'data-cke-ai-id':this[_0x40b5b4(0x1cf)]['id']},'children':this[_0x40b5b4(0x1b0)]});}[_0x184194(0x1b3)](){const _0x4ef959=_0x184194;this[_0x4ef959(0x1be)][_0x4ef959(0x1ce)]({'targetElement':this[_0x4ef959(0x1b1)]}),this[_0x4ef959(0x1b1)][_0x4ef959(0x1bd)](_0x4ef959(0x1c0))[_0x4ef959(0x1b5)](_0x3368d5=>{const _0x16aa7a=_0x4ef959;_0x3368d5[_0x16aa7a(0x1c2)](_0x16aa7a(0x1b6));}),this[_0x4ef959(0x1c1)]=!0x0;}async[_0x184194(0x1c7)](_0x5908ec,_0x4d9861,_0x2c6c00){const _0x31afee=_0x184194;await this[_0x31afee(0x1be)][_0x31afee(0x1d0)]({'document':_0x5908ec,'targetElement':_0x4d9861,'abortSignal':_0x2c6c00});}}
|
|
@@ -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
|
+
function _0x55ad(){const _0x4421ed=['updateContent','map','1059510gKboXd','setTemplate','locale','innerHTML','1088220UzicJX','ck-ai-chat__feed__ai-reply','updateSources','children','element','29871072BIoxjv','9253896djTinG','2476545OkpZiO','isVisible','replyContainer','static','add','8jnjQyl','markAsDone','1249464gWlTsW','options','extendTemplate','ck-reset_all-excluded','render','streaming','ck-ai-chat__feed__ai-reply-container','streamIntoElement','initialContent','div','3418756TPqWfx','addMany'];_0x55ad=function(){return _0x4421ed;};return _0x55ad();}const _0x426132=_0xd94b;(function(_0xd15524,_0x3a22df){const _0x4e3cd9=_0xd94b,_0x359bc7=_0xd15524();while(!![]){try{const _0x153dcd=parseInt(_0x4e3cd9(0x1b8))/0x1+parseInt(_0x4e3cd9(0x1b4))/0x2+-parseInt(_0x4e3cd9(0x1ca))/0x3+parseInt(_0x4e3cd9(0x1c8))/0x4*(parseInt(_0x4e3cd9(0x1c3))/0x5)+parseInt(_0x4e3cd9(0x1c2))/0x6+-parseInt(_0x4e3cd9(0x1bc))/0x7+-parseInt(_0x4e3cd9(0x1c1))/0x8;if(_0x153dcd===_0x3a22df)break;else _0x359bc7['push'](_0x359bc7['shift']());}catch(_0x2381a5){_0x359bc7['push'](_0x359bc7['shift']());}}}(_0x55ad,0xf3296));import{AIChatFeedItemView as _0x3dfab9}from'./aichatfeeditemview.js';import{parse as _0x2afe33,render as _0x31a6d5}from'../../../aicore/utils/htmlparser.js';import{View as _0x481a24}from'ckeditor5/src/ui.js';function _0xd94b(_0x3c4a3d,_0x114b7b){const _0x55ad99=_0x55ad();return _0xd94b=function(_0xd94b6d,_0x1295fc){_0xd94b6d=_0xd94b6d-0x1b0;let _0x30ffa4=_0x55ad99[_0xd94b6d];return _0x30ffa4;},_0xd94b(_0x3c4a3d,_0x114b7b);}import{AIWebSourcesView as _0x3dbd5b,AIWebSourceView as _0x17aaf0}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export class AIChatFeedReplyItemView extends _0x3dfab9{[_0x426132(0x1c5)];constructor(_0x48caa8){const _0xad11=_0x426132;super(_0x48caa8),this[_0xad11(0x1cc)]({'attributes':{'class':[_0xad11(0x1bd)]}}),this[_0xad11(0x1c5)]=new _0x481a24(),this[_0xad11(0x1c5)][_0xad11(0x1b9)]({'tag':_0xad11(0x1b3),'attributes':{'class':['ck',_0xad11(0x1cd),_0xad11(0x1b0)]}}),this[_0xad11(0x1bf)][_0xad11(0x1c7)](this[_0xad11(0x1c5)]);}async[_0x426132(0x1ce)](){const _0xe11516=_0x426132;super[_0xe11516(0x1ce)](),this[_0xe11516(0x1cb)][_0xe11516(0x1b2)]&&(await this[_0xe11516(0x1b6)]({'parsedContent':_0x2afe33(this[_0xe11516(0x1cb)][_0xe11516(0x1b2)]),'renderingStrategy':_0xe11516(0x1c6)}),this[_0xe11516(0x1c9)]());}async[_0x426132(0x1b6)]({parsedContent:_0x16ac17,renderingStrategy:_0x3f762f,abortSignal:_0x339280}){const _0xa40ff1=_0x426132;_0xa40ff1(0x1cf)===_0x3f762f?await this[_0xa40ff1(0x1b1)](_0x16ac17,this[_0xa40ff1(0x1c5)][_0xa40ff1(0x1c0)],_0x339280):this[_0xa40ff1(0x1c5)][_0xa40ff1(0x1c0)][_0xa40ff1(0x1bb)]=_0x31a6d5(_0x16ac17);}[_0x426132(0x1be)](_0x268b0f){const _0x3518c4=_0x426132,_0x34ff9b=new _0x3dbd5b(this[_0x3518c4(0x1ba)]);_0x34ff9b[_0x3518c4(0x1bf)][_0x3518c4(0x1b5)](_0x268b0f[_0x3518c4(0x1b7)](_0x38b5dc=>new _0x17aaf0(this[_0x3518c4(0x1ba)],_0x38b5dc))),_0x34ff9b[_0x3518c4(0x1c4)]=!0x0,this[_0x3518c4(0x1bf)][_0x3518c4(0x1c7)](_0x34ff9b);}}
|
|
@@ -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
|
+
function _0x1775(){const _0x1124c9=['execute','children','updateLabels','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','add','content','insertSuggestion','button','destroy','insertSuggestionModel','set','ck-ai-chat__feed__ai-suggestion__actions__balloon','left','showChangeInText','actionsDropdown','bindTemplate','open','Apply','bind','isEnabled','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','listenTo','applySuggestion','uiLanguageDirection','319041PLuzuX','3MhRCWY','ck-ai-chat__feed__ai-suggestion__actions','attachToDom','_setUpList','showChangeInTextModel','_setUpKeystrokes','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','keystrokeHandler','1031742HUwGDW','listItemModels','width','2444676BgTMNP','fire','bodyCollection','balloonPanelView','arrowless','1322293Vhajqz','source','listView','balloonPanelClass','class','actionName','bottom','createCollection','246259hLXgVz','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','focus','216kgYRzz','ltr','ck-hidden','hide','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','locale','1243488DqKyrl','unbind','510290TNQoXt','pin','keys','setTemplate','tooltip','arrowView','detachFromDom','div','element','isVisible','esc','label','delegate','items'];_0x1775=function(){return _0x1124c9;};return _0x1775();}const _0x1d6c3a=_0x5e71;(function(_0x4a15cf,_0x87d96d){const _0x5848ee=_0x5e71,_0x34b05f=_0x4a15cf();while(!![]){try{const _0x2b77ae=parseInt(_0x5848ee(0x13b))/0x1+-parseInt(_0x5848ee(0x12b))/0x2+parseInt(_0x5848ee(0x123))/0x3*(-parseInt(_0x5848ee(0xfa))/0x4)+parseInt(_0x5848ee(0xfc))/0x5+-parseInt(_0x5848ee(0x12e))/0x6+parseInt(_0x5848ee(0x133))/0x7+-parseInt(_0x5848ee(0x13e))/0x8*(-parseInt(_0x5848ee(0x122))/0x9);if(_0x2b77ae===_0x87d96d)break;else _0x34b05f['push'](_0x34b05f['shift']());}catch(_0x35ae68){_0x34b05f['push'](_0x34b05f['shift']());}}}(_0x1775,0x3f836));import{KeystrokeHandler as _0x101edd}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x392c89,BodyCollection as _0x1131db,clickOutsideHandler as _0x2095df,ListItemButtonView as _0x2b2c90,ListItemView as _0x4a30b6,ListView as _0x2c0cbe,SplitButtonView as _0x2d20bf,UIModel as _0x40ddad,View as _0x46543f}from'ckeditor5/src/ui.js';import{IconAddComment as _0x8b2ac0,IconDocumentWithLoupe as _0x423bb6}from'ckeditor5/src/icons.js';import{getTranslation as _0x37734a}from'../../../aicore/utils/common-translations.js';export class AIChatFeedSuggestionItemActionsView extends _0x46543f{[_0x1d6c3a(0x118)];[_0x1d6c3a(0x10b)];[_0x1d6c3a(0x127)];[_0x1d6c3a(0x113)];constructor(_0x2792be){const _0x366189=_0x1d6c3a;super(_0x2792be);const _0x4ddd15=this[_0x366189(0x119)];this[_0x366189(0x114)](_0x366189(0x11d),!0x0),this[_0x366189(0x114)](_0x366189(0x105),!0x0),this[_0x366189(0x127)]=new _0x40ddad({'label':_0x37734a(_0x2792be,_0x366189(0x142)),'icon':_0x423bb6,'withText':!0x0,'type':_0x366189(0x111),'actionName':_0x366189(0x117)}),this[_0x366189(0x113)]=new _0x40ddad({'label':_0x37734a(_0x2792be,_0x366189(0x13c)),'icon':_0x8b2ac0,'withText':!0x0,'type':_0x366189(0x111),'actionName':_0x366189(0x110)}),this[_0x366189(0x118)]=new zo(_0x2792be,{'listItemModels':[this[_0x366189(0x127)],this[_0x366189(0x113)]]}),this[_0x366189(0x118)]['on'](_0x366189(0x10a),()=>{const _0x2fffdb=_0x366189;this[_0x2fffdb(0x12f)](_0x2fffdb(0x120));}),this[_0x366189(0x118)]['on'](_0x366189(0x117),()=>{const _0x409b9a=_0x366189;this[_0x409b9a(0x12f)](_0x409b9a(0x117));}),this[_0x366189(0x118)]['on'](_0x366189(0x110),()=>{const _0x59a86a=_0x366189;this[_0x59a86a(0x12f)](_0x59a86a(0x110));}),this[_0x366189(0x118)][_0x366189(0x114)]({'label':_0x366189(0x11b),'tooltip':_0x37734a(this[_0x366189(0xf9)],_0x366189(0x11e)),'withText':!0x0,'class':_0x366189(0x124),'balloonPanelClass':_0x366189(0x115)}),this[_0x366189(0x118)][_0x366189(0x11c)](_0x366189(0x11d))['to'](this),this[_0x366189(0x10b)]=this[_0x366189(0x13a)]([this[_0x366189(0x118)]]),this[_0x366189(0xff)]({'tag':_0x366189(0x103),'attributes':{'class':['ck',_0x366189(0x124),_0x4ddd15['if'](_0x366189(0x105),_0x366189(0x140),_0x566477=>!_0x566477)]},'children':[this[_0x366189(0x118)]]});}[_0x1d6c3a(0x10c)](_0x416be9){const _0x2a4f77=_0x1d6c3a,_0x15d5fb=this[_0x2a4f77(0xf9)];this[_0x2a4f77(0x118)][_0x2a4f77(0x114)]({'label':_0x37734a(_0x15d5fb,_0x2a4f77(0x129),_0x416be9),'tooltip':_0x37734a(_0x15d5fb,_0x2a4f77(0x11e),_0x416be9)}),this[_0x2a4f77(0x127)][_0x2a4f77(0x107)]=_0x37734a(_0x15d5fb,_0x2a4f77(0x142),_0x416be9),this[_0x2a4f77(0x113)][_0x2a4f77(0x107)]=_0x37734a(_0x15d5fb,_0x2a4f77(0x13c),_0x416be9);}}class zo extends _0x2d20bf{[_0x1d6c3a(0x130)];[_0x1d6c3a(0x131)];[_0x1d6c3a(0x135)];[_0x1d6c3a(0x12a)];constructor(_0xe6713a,_0x295dc5){const _0x1f884b=_0x1d6c3a;super(_0xe6713a),this[_0x1f884b(0x131)]=new _0x392c89(this[_0x1f884b(0xf9)]),this[_0x1f884b(0x130)]=new _0x1131db(this[_0x1f884b(0xf9)]),this[_0x1f884b(0x130)][_0x1f884b(0x125)](),this[_0x1f884b(0x114)](_0x1f884b(0x136),''),this[_0x1f884b(0x131)][_0x1f884b(0x11c)](_0x1f884b(0x137))['to'](this,_0x1f884b(0x136)),this[_0x1f884b(0x135)]=this[_0x1f884b(0x126)](_0x295dc5[_0x1f884b(0x12c)]),this[_0x1f884b(0x130)][_0x1f884b(0x10e)](this[_0x1f884b(0x131)]),this[_0x1f884b(0x131)][_0x1f884b(0x10f)][_0x1f884b(0x10e)](this[_0x1f884b(0x135)]),this[_0x1f884b(0x101)][_0x1f884b(0xfb)](_0x1f884b(0x100)),this[_0x1f884b(0x101)][_0x1f884b(0x114)](_0x1f884b(0x100),_0x37734a(this[_0x1f884b(0xf9)],_0x1f884b(0x10d))),this[_0x1f884b(0x128)](),this['on'](_0x1f884b(0x10a),()=>{const _0x41fbd3=_0x1f884b;this[_0x41fbd3(0x131)][_0x41fbd3(0x141)](),this[_0x41fbd3(0x101)][_0x41fbd3(0x13d)]();}),this['on'](_0x1f884b(0x11a),()=>{const _0x514174=_0x1f884b;this[_0x514174(0x131)][_0x514174(0x105)]?(this[_0x514174(0x131)][_0x514174(0x141)](),this[_0x514174(0x101)][_0x514174(0x13d)]()):(this[_0x514174(0x131)][_0x514174(0xfd)]({'target':this[_0x514174(0x104)],'positions':[_0x514174(0x13f)===this[_0x514174(0xf9)][_0x514174(0x121)]?Jo:Qo]}),this[_0x514174(0x135)][_0x514174(0x13d)]());}),_0x2095df({'emitter':this[_0x1f884b(0x131)],'callback':()=>{const _0xa4b1b0=_0x1f884b;this[_0xa4b1b0(0x131)][_0xa4b1b0(0x141)]();},'activator':()=>this[_0x1f884b(0x131)][_0x1f884b(0x105)],'contextElements':()=>[this[_0x1f884b(0x104)],this[_0x1f884b(0x131)][_0x1f884b(0x104)]]});}[_0x1d6c3a(0x126)](_0x29a8b8){const _0x4e66c4=_0x1d6c3a,_0xc44af3=this[_0x4e66c4(0xf9)],_0x492903=new _0x2c0cbe(_0xc44af3);for(const _0x2d8b13 of _0x29a8b8){const _0x2b7886=new _0x4a30b6(_0xc44af3),_0x1c15e1=new _0x2b2c90(_0xc44af3);_0x1c15e1[_0x4e66c4(0x11c)](...Object[_0x4e66c4(0xfe)](_0x2d8b13))['to'](_0x2d8b13),_0x1c15e1[_0x4e66c4(0x108)](_0x4e66c4(0x10a))['to'](_0x492903),_0x2b7886[_0x4e66c4(0x10b)][_0x4e66c4(0x10e)](_0x1c15e1),_0x492903[_0x4e66c4(0x109)][_0x4e66c4(0x10e)](_0x2b7886);}return _0x492903[_0x4e66c4(0x109)][_0x4e66c4(0x108)](_0x4e66c4(0x10a))['to'](this),_0x492903['on'](_0x4e66c4(0x10a),_0x1a0602=>{const _0x28480b=_0x4e66c4,_0xd44fa2=_0x1a0602[_0x28480b(0x134)];this[_0x28480b(0x12f)](_0xd44fa2[_0x28480b(0x138)]),this[_0x28480b(0x131)][_0x28480b(0x141)](),this[_0x28480b(0x101)][_0x28480b(0x13d)]();}),_0x492903;}[_0x1d6c3a(0x128)](){const _0x464181=_0x1d6c3a;this[_0x464181(0x12a)]=new _0x101edd(),this[_0x464181(0x12a)][_0x464181(0x11f)](this[_0x464181(0x131)][_0x464181(0x104)]),this[_0x464181(0x12a)][_0x464181(0x114)](_0x464181(0x106),(_0xdecd68,_0x25e11d)=>{const _0x12e128=_0x464181;this[_0x12e128(0x131)][_0x12e128(0x141)](),this[_0x12e128(0x101)][_0x12e128(0x13d)](),_0x25e11d();});}[_0x1d6c3a(0x112)](){const _0x57e162=_0x1d6c3a;super[_0x57e162(0x112)](),this[_0x57e162(0x12a)][_0x57e162(0x112)](),this[_0x57e162(0x131)][_0x57e162(0x112)](),this[_0x57e162(0x130)][_0x57e162(0x102)]();}}function Jo(_0x538eae){const _0xf3da9f=_0x1d6c3a;return{'top':_0x538eae[_0xf3da9f(0x139)],'left':_0x538eae[_0xf3da9f(0x116)],'name':_0xf3da9f(0x132),'config':{'withArrow':!0x1}};}function _0x5e71(_0x4c388b,_0x2156bf){const _0x17753a=_0x1775();return _0x5e71=function(_0x5e711b,_0x1ea22a){_0x5e711b=_0x5e711b-0xf9;let _0x15778d=_0x17753a[_0x5e711b];return _0x15778d;},_0x5e71(_0x4c388b,_0x2156bf);}function Qo(_0x586260,_0x298c4a){const _0xdc4752=_0x1d6c3a;return{'top':_0x586260[_0xdc4752(0x139)],'left':_0x586260[_0xdc4752(0x116)]-(_0x298c4a[_0xdc4752(0x12d)]-_0x586260[_0xdc4752(0x12d)]),'name':_0xdc4752(0x132),'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
|
+
function _0x34ab(_0x4f72c7,_0xc7a36){var _0x2c4477=_0x2c44();return _0x34ab=function(_0x34ab37,_0x3053ee){_0x34ab37=_0x34ab37-0x117;var _0x2f46a0=_0x2c4477[_0x34ab37];return _0x2f46a0;},_0x34ab(_0x4f72c7,_0xc7a36);}var _0x258dc0=_0x34ab;(function(_0x4273b0,_0x573ab1){var _0x1a1146=_0x34ab,_0x188b7a=_0x4273b0();while(!![]){try{var _0x3f87a7=parseInt(_0x1a1146(0x12f))/0x1+-parseInt(_0x1a1146(0x11d))/0x2*(-parseInt(_0x1a1146(0x120))/0x3)+parseInt(_0x1a1146(0x12d))/0x4*(-parseInt(_0x1a1146(0x137))/0x5)+parseInt(_0x1a1146(0x119))/0x6*(parseInt(_0x1a1146(0x139))/0x7)+-parseInt(_0x1a1146(0x13c))/0x8+parseInt(_0x1a1146(0x11b))/0x9+-parseInt(_0x1a1146(0x124))/0xa;if(_0x3f87a7===_0x573ab1)break;else _0x188b7a['push'](_0x188b7a['shift']());}catch(_0x204e87){_0x188b7a['push'](_0x188b7a['shift']());}}}(_0x2c44,0x32364));function _0x2c44(){var _0x55ca0a=['showDiff','updateContent','1420xCxBfB','fire','546zHAMih','addMany','ck-ai-chat__feed__ai-suggestion','547128RReNzL','areActionsDisabled','partsCount','getPartView','updateLabels','insertSuggestion','mouseOverSuggestion','23796svtXgT','rejectSuggestion','2209203XbAurq','hasNonEmptyParts','2KpIHvC','markAsDone','options','1114602AjERrR','updatePartState','hasPendingParts','bind','7322950mrGnHU','toggleSuggestionDisplayMode','extendTemplate','bodyView','updateSources','like','isEnabled','actionsView','containerView','4508DuHgIk','applySuggestion','400073IgteGH','showChangeInText','dislike','mouseLeaveSuggestion','children','isVisible'];_0x2c44=function(){return _0x55ca0a;};return _0x2c44();}import{AIChatFeedItemView as _0xbf2be1}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0x454cfc}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIChatFeedSuggestionItemActionsView as _0x1083f4}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0xbf2be1{[_0x258dc0(0x12c)];[_0x258dc0(0x12b)];constructor(_0x1e802e,_0x4e46e2){var _0x5c4e90=_0x258dc0;super(_0x4e46e2),this[_0x5c4e90(0x12c)]=new _0x454cfc(_0x1e802e,{'showDiff':_0x4e46e2[_0x5c4e90(0x135)],'areActionsDisabled':_0x4e46e2[_0x5c4e90(0x13d)]}),this[_0x5c4e90(0x12c)]['on'](_0x5c4e90(0x125),(_0x55fe41,_0x59c49f)=>{var _0x5d80f0=_0x5c4e90;this[_0x5d80f0(0x138)](_0x5d80f0(0x125),{'replyId':this[_0x5d80f0(0x11f)]['id'],'showDiff':_0x59c49f[_0x5d80f0(0x135)]});}),this[_0x5c4e90(0x12c)]['on'](_0x5c4e90(0x129),()=>{var _0x5ce8a5=_0x5c4e90;this[_0x5ce8a5(0x138)](_0x5ce8a5(0x129),{'replyId':this[_0x5ce8a5(0x11f)]['id']});}),this[_0x5c4e90(0x12c)]['on'](_0x5c4e90(0x131),()=>{var _0x25fb61=_0x5c4e90;this[_0x25fb61(0x138)](_0x25fb61(0x131),{'replyId':this[_0x25fb61(0x11f)]['id']});}),this[_0x5c4e90(0x12c)]['on'](_0x5c4e90(0x130),(_0x5be716,{index:_0x41397f})=>{var _0x4caebc=_0x5c4e90;this[_0x4caebc(0x138)](_0x4caebc(0x130),{'replyId':this[_0x4caebc(0x11f)]['id'],'partIndex':_0x41397f});}),this[_0x5c4e90(0x12c)]['on'](_0x5c4e90(0x117),(_0x527474,{index:_0x20fd97})=>{var _0x476a94=_0x5c4e90;this[_0x476a94(0x138)](_0x476a94(0x117),{'replyId':this[_0x476a94(0x11f)]['id'],'partIndex':_0x20fd97});}),this[_0x5c4e90(0x12c)]['on'](_0x5c4e90(0x11a),(_0xfec3b1,{index:_0x254518})=>{var _0x288204=_0x5c4e90;this[_0x288204(0x138)](_0x288204(0x11a),{'replyId':this[_0x288204(0x11f)]['id'],'partIndex':_0x254518});}),this[_0x5c4e90(0x12c)]['on'](_0x5c4e90(0x118),(_0x2d026e,{index:_0x435d7b})=>{var _0x467110=_0x5c4e90;this[_0x467110(0x138)](_0x467110(0x118),{'replyId':this[_0x467110(0x11f)]['id'],'partIndex':_0x435d7b});}),this[_0x5c4e90(0x12c)]['on'](_0x5c4e90(0x132),(_0x32cc7b,{index:_0x1aeda6})=>{var _0x35963d=_0x5c4e90;this[_0x35963d(0x138)](_0x35963d(0x132),{'replyId':this[_0x35963d(0x11f)]['id'],'partIndex':_0x1aeda6});}),this[_0x5c4e90(0x12b)]=new _0x1083f4(_0x1e802e),this[_0x5c4e90(0x12b)]['on'](_0x5c4e90(0x130),()=>{var _0x17777f=_0x5c4e90;this[_0x17777f(0x138)](_0x17777f(0x130),{'replyId':this[_0x17777f(0x11f)]['id']});}),this[_0x5c4e90(0x12b)]['on'](_0x5c4e90(0x117),()=>{var _0xda02b9=_0x5c4e90;this[_0xda02b9(0x138)](_0xda02b9(0x117),{'replyId':this[_0xda02b9(0x11f)]['id']});}),this[_0x5c4e90(0x12b)]['on'](_0x5c4e90(0x12e),()=>{var _0x1c7c5f=_0x5c4e90;this[_0x1c7c5f(0x138)](_0x1c7c5f(0x12e),{'replyId':this[_0x1c7c5f(0x11f)]['id']});}),_0x4e46e2[_0x5c4e90(0x13d)]?this[_0x5c4e90(0x12b)][_0x5c4e90(0x12a)]=!0x1:this[_0x5c4e90(0x12b)][_0x5c4e90(0x123)](_0x5c4e90(0x12a))['to'](this[_0x5c4e90(0x12c)][_0x5c4e90(0x127)],_0x5c4e90(0x122)),this[_0x5c4e90(0x133)][_0x5c4e90(0x13a)]([this[_0x5c4e90(0x12c)],this[_0x5c4e90(0x12b)]]),this[_0x5c4e90(0x126)]({'attributes':{'class':[_0x5c4e90(0x13b)]}});}async[_0x258dc0(0x136)](_0x23b2ac){var _0x33771c=_0x258dc0;await this[_0x33771c(0x12c)][_0x33771c(0x136)](_0x23b2ac),this[_0x33771c(0x12b)][_0x33771c(0x140)](this[_0x33771c(0x12c)][_0x33771c(0x127)][_0x33771c(0x13e)]);}[_0x258dc0(0x121)](_0x3f9ea8,_0x5266d3){var _0x38fecf=_0x258dc0;this[_0x38fecf(0x12c)][_0x38fecf(0x127)][_0x38fecf(0x121)](_0x3f9ea8,_0x5266d3);}[_0x258dc0(0x128)](_0x177a27){var _0x4bf56e=_0x258dc0;this[_0x4bf56e(0x12c)][_0x4bf56e(0x128)](_0x177a27);}[_0x258dc0(0x13f)](_0x3fb9de){var _0x32df47=_0x258dc0;return this[_0x32df47(0x12c)][_0x32df47(0x127)][_0x32df47(0x13f)](_0x3fb9de);}[_0x258dc0(0x11e)](){var _0x3d282b=_0x258dc0;super[_0x3d282b(0x11e)](),this[_0x3d282b(0x12c)][_0x3d282b(0x11e)](),this[_0x3d282b(0x12b)][_0x3d282b(0x134)]=this[_0x3d282b(0x12c)][_0x3d282b(0x127)][_0x3d282b(0x11c)];}}
|
|
@@ -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
|
+
function _0x5148(){var _0x55e4d7=['5396415pjwOJZ','children','div','innerHTML','9888ooVTHt','ck-ai-chat__feed__user-message','element','4VRHDlH','_messageContentView','4956870szPQOb','filter','_bodyCollection','ck-ai-chat__feed__context-chips','_locale','render','initialContent','add','803467Hjbftu','30Ryirqq','setTemplate','260883DkgZrA','contextItems','extendTemplate','18iOiTbM','hidden','_createContextChipsView','_contextChipsView','_createMessageContentView','options','length','1344348fwoguL','markAsDone','ck-ai-chat__feed__message-content','4708024HyLTir'];_0x5148=function(){return _0x55e4d7;};return _0x5148();}var _0x1f7025=_0x3dd0;(function(_0x4034db,_0x4e11d3){var _0x266a06=_0x3dd0,_0x4ea885=_0x4034db();while(!![]){try{var _0x442f0a=parseInt(_0x266a06(0xb9))/0x1*(-parseInt(_0x266a06(0xbc))/0x2)+-parseInt(_0x266a06(0xc9))/0x3+-parseInt(_0x266a06(0xd3))/0x4+-parseInt(_0x266a06(0xb5))/0x5+parseInt(_0x266a06(0xc7))/0x6*(parseInt(_0x266a06(0xc6))/0x7)+-parseInt(_0x266a06(0xb4))/0x8*(-parseInt(_0x266a06(0xcc))/0x9)+parseInt(_0x266a06(0xbe))/0xa;if(_0x442f0a===_0x4e11d3)break;else _0x4ea885['push'](_0x4ea885['shift']());}catch(_0x142089){_0x4ea885['push'](_0x4ea885['shift']());}}}(_0x5148,0xb0e0b));import{AIChatFeedItemView as _0x288cff}from'./aichatfeeditemview.js';function _0x3dd0(_0x53c8ab,_0x4fe932){var _0x5148b0=_0x5148();return _0x3dd0=function(_0x3dd07d,_0xdcbae2){_0x3dd07d=_0x3dd07d-0xb2;var _0x25cd64=_0x5148b0[_0x3dd07d];return _0x25cd64;},_0x3dd0(_0x53c8ab,_0x4fe932);}import{AIChatFeedContextChipsView as _0xab42ed}from'./aichatfeedcontextchipsview.js';import{View as _0x5e23ab}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x288cff{[_0x1f7025(0xcf)]=null;[_0x1f7025(0xc2)];[_0x1f7025(0xc0)];[_0x1f7025(0xbd)];constructor(_0x2c8eed,_0x2b48af,_0x20f15d){var _0x4fb117=_0x1f7025;super(_0x2b48af),this[_0x4fb117(0xc2)]=_0x2c8eed,this[_0x4fb117(0xc0)]=_0x20f15d,this[_0x4fb117(0xce)](),this[_0x4fb117(0xd0)](),this[_0x4fb117(0xcb)]({'attributes':{'class':[_0x4fb117(0xba)]}});}[_0x1f7025(0xce)](){var _0x5ac498=_0x1f7025;this[_0x5ac498(0xd1)][_0x5ac498(0xca)]&&this[_0x5ac498(0xd1)][_0x5ac498(0xca)][_0x5ac498(0xd2)]>0x0&&(this[_0x5ac498(0xcf)]=new _0xab42ed(this[_0x5ac498(0xc2)],this[_0x5ac498(0xd1)][_0x5ac498(0xca)][_0x5ac498(0xbf)](_0x3bc89f=>!_0x3bc89f[_0x5ac498(0xcd)]),this[_0x5ac498(0xc0)]),this[_0x5ac498(0xcf)][_0x5ac498(0xcb)]({'attributes':{'class':_0x5ac498(0xc1)}}),this[_0x5ac498(0xb6)][_0x5ac498(0xc5)](this[_0x5ac498(0xcf)]));}[_0x1f7025(0xd0)](){var _0x4de43c=_0x1f7025;this[_0x4de43c(0xbd)]=new _0x5e23ab(this[_0x4de43c(0xc2)]),this[_0x4de43c(0xbd)][_0x4de43c(0xc8)]({'tag':_0x4de43c(0xb7),'attributes':{'class':_0x4de43c(0xb3)}}),this[_0x4de43c(0xb6)][_0x4de43c(0xc5)](this[_0x4de43c(0xbd)]);}[_0x1f7025(0xc3)](){var _0x3a065b=_0x1f7025;super[_0x3a065b(0xc3)](),this[_0x3a065b(0xbd)][_0x3a065b(0xbb)][_0x3a065b(0xb8)]=this[_0x3a065b(0xd1)][_0x3a065b(0xc4)],this[_0x3a065b(0xb2)]();}}
|
|
@@ -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
|
+
function _0x34f2(_0x1411c3,_0x59d284){const _0x3ae8ea=_0x3ae8();return _0x34f2=function(_0x34f2eb,_0x4951c0){_0x34f2eb=_0x34f2eb-0x197;let _0x21878c=_0x3ae8ea[_0x34f2eb];return _0x21878c;},_0x34f2(_0x1411c3,_0x59d284);}function _0x3ae8(){const _0x2df164=['selectModel','9328143NEAClM','toggleReasoning','24buxXRy','abortPromptStream','resizeTabs','2227393ZtJQOZ','startConversation','10cxzXKZ','removeContextItem','toggleWebSearch','addDocumentToContext','5UmzmJL','54888axIqoV','4QSfrhO','addFileToContext','addUrlToContext','1930362KbOsKV','loadSourceResources','addResourceToContext','sendUserMessage','1820250tkJGpL','303276fufvvb','8UCMoCT','6271704QBluyx'];_0x3ae8=function(){return _0x2df164;};return _0x3ae8();}const _0x4dee57=_0x34f2;(function(_0x263ec6,_0x4e6c9e){const _0x63f4b2=_0x34f2,_0x38afd9=_0x263ec6();while(!![]){try{const _0x5c7f27=parseInt(_0x63f4b2(0x1a7))/0x1+-parseInt(_0x63f4b2(0x1a2))/0x2+parseInt(_0x63f4b2(0x19e))/0x3*(parseInt(_0x63f4b2(0x19f))/0x4)+-parseInt(_0x63f4b2(0x19d))/0x5*(parseInt(_0x63f4b2(0x1a9))/0x6)+-parseInt(_0x63f4b2(0x197))/0x7*(-parseInt(_0x63f4b2(0x1a8))/0x8)+parseInt(_0x63f4b2(0x1a6))/0x9*(parseInt(_0x63f4b2(0x199))/0xa)+-parseInt(_0x63f4b2(0x1ab))/0xb*(-parseInt(_0x63f4b2(0x1ad))/0xc);if(_0x5c7f27===_0x4e6c9e)break;else _0x38afd9['push'](_0x38afd9['shift']());}catch(_0x29d7fc){_0x38afd9['push'](_0x38afd9['shift']());}}}(_0x3ae8,0x80cde));import{AI_SUGGESTION_UI_EVENT_NAMES as _0x34648e}from'../../aicore/utils/eventnames.js';export const AI_CHAT_UI_EVENT_NAMES=[..._0x34648e,_0x4dee57(0x198),_0x4dee57(0x1af),_0x4dee57(0x1a5),_0x4dee57(0x1ae),_0x4dee57(0x19c),_0x4dee57(0x1a0),_0x4dee57(0x1a1),_0x4dee57(0x1a4),_0x4dee57(0x19a),_0x4dee57(0x1a3),_0x4dee57(0x19b),_0x4dee57(0x1ac),_0x4dee57(0x1aa)];
|
|
@@ -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 _0x192e4c=_0x112a;function _0xbd94(){const _0x2c78b6=['2580mPOaqX','9785094KODZgi','_processQueue','callback','length','_queueEmpty','_abortController','once','queue','enqueue','abort','134eYLLMI','3ddXjAB','3321682skVoSy','shift','createTask','reject','fire','48QEezkR','resolve','1070HTHTfY','isProcessing','2375432PMbuKr','2770skNOBF','push','17001KlFVEY','313552faDoes','signal','completePromise','queueEmptyPromise'];_0xbd94=function(){return _0x2c78b6;};return _0xbd94();}function _0x112a(_0x18a10d,_0x1aef21){const _0xbd9465=_0xbd94();return _0x112a=function(_0x112a6f,_0x1b08ee){_0x112a6f=_0x112a6f-0x9c;let _0xbe1ee3=_0xbd9465[_0x112a6f];return _0xbe1ee3;},_0x112a(_0x18a10d,_0x1aef21);}(function(_0x1e9dfe,_0x2253b1){const _0x3d6198=_0x112a,_0x1e8fd4=_0x1e9dfe();while(!![]){try{const _0x473db8=parseInt(_0x3d6198(0xb8))/0x1*(-parseInt(_0x3d6198(0xa6))/0x2)+parseInt(_0x3d6198(0xb9))/0x3*(parseInt(_0x3d6198(0xa5))/0x4)+parseInt(_0x3d6198(0xa3))/0x5*(parseInt(_0x3d6198(0xa1))/0x6)+-parseInt(_0x3d6198(0x9c))/0x7+parseInt(_0x3d6198(0xa9))/0x8+parseInt(_0x3d6198(0xa8))/0x9*(-parseInt(_0x3d6198(0xad))/0xa)+parseInt(_0x3d6198(0xae))/0xb;if(_0x473db8===_0x2253b1)break;else _0x1e8fd4['push'](_0x1e8fd4['shift']());}catch(_0x4afc82){_0x1e8fd4['push'](_0x1e8fd4['shift']());}}}(_0xbd94,0x5c008));import{EmitterMixin as _0x37354a}from'ckeditor5/src/utils.js';export class PromiseQueue extends _0x37354a(){[_0x192e4c(0xb5)]=[];[_0x192e4c(0xa4)]=!0x1;[_0x192e4c(0xb3)];async[_0x192e4c(0xb6)](_0xf1f4bd){const _0xe7fee9=_0x192e4c,_0x13362e=this[_0xe7fee9(0x9e)](_0xf1f4bd);return this[_0xe7fee9(0xb5)][_0xe7fee9(0xa7)](_0x13362e),this[_0xe7fee9(0xaf)](),_0x13362e[_0xe7fee9(0xab)];}[_0x192e4c(0xb7)](){const _0xa8b354=_0x192e4c;this[_0xa8b354(0xa4)]&&(this[_0xa8b354(0xb3)][_0xa8b354(0xb7)](),this[_0xa8b354(0xb3)]=void 0x0,this[_0xa8b354(0xb5)]=[],this[_0xa8b354(0xa0)](_0xa8b354(0xb2)),this[_0xa8b354(0xa4)]=!0x1);}get[_0x192e4c(0xac)](){const _0x1b59f0=_0x192e4c;return this[_0x1b59f0(0xb5)][_0x1b59f0(0xb1)]||this[_0x1b59f0(0xa4)]?new Promise(_0x1236a1=>{const _0x530f10=_0x1b59f0;this[_0x530f10(0xb4)](_0x530f10(0xb2),()=>{_0x1236a1();});}):Promise[_0x1b59f0(0xa2)]();}async[_0x192e4c(0xaf)](){const _0xcb4d74=_0x192e4c;if(!this[_0xcb4d74(0xa4)]){this[_0xcb4d74(0xb3)]=new AbortController(),this[_0xcb4d74(0xa4)]=!0x0;try{for(;this[_0xcb4d74(0xb5)][_0xcb4d74(0xb1)]&&this[_0xcb4d74(0xa4)];){const _0x5ea480=this[_0xcb4d74(0xb5)][_0xcb4d74(0x9d)]();try{await _0x5ea480[_0xcb4d74(0xb0)](this[_0xcb4d74(0xb3)][_0xcb4d74(0xaa)]),_0x5ea480[_0xcb4d74(0xa2)]();}catch(_0xee76fc){_0x5ea480[_0xcb4d74(0x9f)](_0xee76fc);}}}finally{this[_0xcb4d74(0xa4)]=!0x1,this[_0xcb4d74(0xb3)]=void 0x0;}this[_0xcb4d74(0xa0)](_0xcb4d74(0xb2));}}[_0x192e4c(0x9e)](_0x249498){let _0x219ba7,_0x542cb5;const _0x3cbffd=new Promise((_0x997779,_0x27859b)=>{_0x219ba7=_0x997779,_0x542cb5=_0x27859b;});return{'callback':_0x249498,'resolve':_0x219ba7,'reject':_0x542cb5,'completePromise':_0x3cbffd};}}
|
|
@@ -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 _0x261c(_0x31443f,_0x56bdb0){const _0xe0c253=_0xe0c2();return _0x261c=function(_0x261ceb,_0x48cfd4){_0x261ceb=_0x261ceb-0x111;let _0x128729=_0xe0c253[_0x261ceb];return _0x128729;},_0x261c(_0x31443f,_0x56bdb0);}const _0x33661c=_0x261c;(function(_0x183e5e,_0x5dcba5){const _0x3e0794=_0x261c,_0x26cf04=_0x183e5e();while(!![]){try{const _0x489321=parseInt(_0x3e0794(0x11d))/0x1*(-parseInt(_0x3e0794(0x127))/0x2)+-parseInt(_0x3e0794(0x11b))/0x3+parseInt(_0x3e0794(0x119))/0x4+parseInt(_0x3e0794(0x13a))/0x5*(-parseInt(_0x3e0794(0x11e))/0x6)+-parseInt(_0x3e0794(0x12b))/0x7*(parseInt(_0x3e0794(0x117))/0x8)+parseInt(_0x3e0794(0x129))/0x9*(-parseInt(_0x3e0794(0x113))/0xa)+-parseInt(_0x3e0794(0x139))/0xb*(-parseInt(_0x3e0794(0x132))/0xc);if(_0x489321===_0x5dcba5)break;else _0x26cf04['push'](_0x26cf04['shift']());}catch(_0x5906fd){_0x26cf04['push'](_0x26cf04['shift']());}}}(_0xe0c2,0x60890));const ls=[_0x33661c(0x11f),_0x33661c(0x112),_0x33661c(0x12c),_0x33661c(0x118)],ms=[_0x33661c(0x114),_0x33661c(0x116),_0x33661c(0x12a),_0x33661c(0x135),_0x33661c(0x137),_0x33661c(0x130),'\x20'];export class ScrollManager{[_0x33661c(0x120)];[_0x33661c(0x138)];[_0x33661c(0x128)];[_0x33661c(0x121)];[_0x33661c(0x13d)];constructor(_0x504640){const _0x51e7ed=_0x33661c;this[_0x51e7ed(0x120)]=_0x504640,this[_0x51e7ed(0x138)]=null,this[_0x51e7ed(0x128)]=!0x1,this[_0x51e7ed(0x121)]=new AbortController(),this[_0x51e7ed(0x13d)]=!0x1;for(const _0x4ed301 of ls){const _0x793aba=_0x51e7ed(0x118)!==_0x4ed301;this[_0x51e7ed(0x120)][_0x51e7ed(0x111)](_0x4ed301,this[_0x51e7ed(0x11a)][_0x51e7ed(0x124)](this),{'passive':_0x793aba,'signal':this[_0x51e7ed(0x121)][_0x51e7ed(0x122)]});}}[_0x33661c(0x134)](){const _0x43f046=_0x33661c;this[_0x43f046(0x128)]||(this[_0x43f046(0x128)]=!0x0,this[_0x43f046(0x13d)]=!0x1,this[_0x43f046(0x138)]=requestAnimationFrame(this[_0x43f046(0x12d)][_0x43f046(0x124)](this)));}[_0x33661c(0x13b)](){requestAnimationFrame(()=>{const _0x42ee8d=_0x261c;this[_0x42ee8d(0x126)]();});}[_0x33661c(0x13c)](){const _0x498e38=_0x33661c;this[_0x498e38(0x126)](),this[_0x498e38(0x121)][_0x498e38(0x123)]();}[_0x33661c(0x126)](){const _0x173e4e=_0x33661c;null!==this[_0x173e4e(0x138)]&&(cancelAnimationFrame(this[_0x173e4e(0x138)]),this[_0x173e4e(0x138)]=null),this[_0x173e4e(0x128)]&&(this[_0x173e4e(0x128)]=!0x1),this[_0x173e4e(0x13d)]=!0x1;}[_0x33661c(0x11a)](_0x39b7ed){const _0x3a210e=_0x33661c;if(this[_0x3a210e(0x128)]){if(_0x3a210e(0x118)===_0x39b7ed[_0x3a210e(0x136)]){const _0x3609e2=_0x39b7ed[_0x3a210e(0x12e)];if(!ms[_0x3a210e(0x12f)](_0x3609e2))return;}_0x39b7ed instanceof WheelEvent?_0x39b7ed[_0x3a210e(0x11c)]<0x0?this[_0x3a210e(0x13d)]=!0x0:this[_0x3a210e(0x13d)]=!this[_0x3a210e(0x115)]():this[_0x3a210e(0x13d)]=!0x0;}}[_0x33661c(0x115)](){const _0x12c235=_0x33661c,{scrollTop:_0x47428f,scrollHeight:_0x2fe9e7,clientHeight:_0x3a27ca}=this[_0x12c235(0x120)];return _0x2fe9e7-_0x47428f-_0x3a27ca<=0x5;}[_0x33661c(0x12d)](){const _0x1e47b4=_0x33661c;this[_0x1e47b4(0x128)]&&(this[_0x1e47b4(0x13d)]||this[_0x1e47b4(0x120)][_0x1e47b4(0x131)]({'top':this[_0x1e47b4(0x120)][_0x1e47b4(0x125)],'behavior':_0x1e47b4(0x133)}),this[_0x1e47b4(0x138)]=requestAnimationFrame(this[_0x1e47b4(0x12d)][_0x1e47b4(0x124)](this)));}}function _0xe0c2(){const _0x42fff3=['animationFrameId','2717198RhGsDh','229445BfjhEM','stop','destroy','isUserPaused','addEventListener','touchstart','3970oTUTGk','ArrowUp','_isAtBottom','ArrowDown','746056IcACvB','keydown','2098536MnGdei','_onUserEvent','1321494JpIbzU','deltaY','2EeikaD','90MlQage','wheel','element','abortController','signal','abort','bind','scrollHeight','_stop','43418kGaBAF','isRunning','8469egRXWT','PageUp','42ILfdWl','pointerdown','_rafUpdate','key','includes','End','scrollTo','96bFfKcN','auto','start','PageDown','type','Home'];_0xe0c2=function(){return _0x42fff3;};return _0xe0c2();}
|
|
@@ -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 _0x290321=_0x17d7;(function(_0x200435,_0x26d2c2){var _0x2026be=_0x17d7,_0x3ef039=_0x200435();while(!![]){try{var _0x3122fe=-parseInt(_0x2026be(0x194))/0x1*(-parseInt(_0x2026be(0x19e))/0x2)+-parseInt(_0x2026be(0x195))/0x3*(parseInt(_0x2026be(0x190))/0x4)+-parseInt(_0x2026be(0x193))/0x5+-parseInt(_0x2026be(0x19d))/0x6*(parseInt(_0x2026be(0x199))/0x7)+-parseInt(_0x2026be(0x19a))/0x8*(parseInt(_0x2026be(0x197))/0x9)+-parseInt(_0x2026be(0x18e))/0xa*(parseInt(_0x2026be(0x18f))/0xb)+parseInt(_0x2026be(0x198))/0xc;if(_0x3122fe===_0x26d2c2)break;else _0x3ef039['push'](_0x3ef039['shift']());}catch(_0x2b1133){_0x3ef039['push'](_0x3ef039['shift']());}}}(_0x2cd9,0x51428));import{ContextPlugin as _0x4b17b3}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0xe46390}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x2a6151}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x4b17b3{static get[_0x290321(0x191)](){return[_0xe46390,_0x2a6151];}static get[_0x290321(0x19c)](){var _0x381652=_0x290321;return _0x381652(0x192);}static get[_0x290321(0x196)](){return!0x0;}static get[_0x290321(0x19b)](){return!0x0;}}function _0x17d7(_0x478ae3,_0x22c07c){var _0x2cd95d=_0x2cd9();return _0x17d7=function(_0x17d7ee,_0x46c95e){_0x17d7ee=_0x17d7ee-0x18e;var _0x328912=_0x2cd95d[_0x17d7ee];return _0x328912;},_0x17d7(_0x478ae3,_0x22c07c);}function _0x2cd9(){var _0x50ac01=['8oIpLqY','isPremiumPlugin','pluginName','104070jcPRng','2NkKEJI','231600AReaze','33oVjoxG','4bWxhpB','requires','AIChatHistory','1637510qKwBik','422473cSCFRi','1392837dKznvp','isOfficialPlugin','2492703XFGKUH','12999420PdehcV','14FxiFem'];_0x2cd9=function(){return _0x50ac01;};return _0x2cd9();}
|