@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,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/aichathistory/aichathistorycontroller
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { ContextPlugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { AIConnector } from '../aicore/aiconnector.js';
|
|
11
|
+
import { AIChatController } from '../aichat/aichatcontroller.js';
|
|
12
|
+
import { AITabs } from '../aitabs/aitabs.js';
|
|
13
|
+
import { AIChatHistoryUI } from './aichathistoryui.js';
|
|
14
|
+
import { AIChatHistoryConversations } from './model/aichathistoryconversations.js';
|
|
15
|
+
export declare class AIChatHistoryController extends ContextPlugin {
|
|
16
|
+
/**
|
|
17
|
+
* The `AIChatHistoryConversations` model instance.
|
|
18
|
+
*/
|
|
19
|
+
history: AIChatHistoryConversations;
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
static get requires(): readonly [typeof AIConnector, typeof AIChatController, typeof AIChatHistoryUI, typeof AITabs];
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
static get pluginName(): "AIChatHistoryController";
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
static get isOfficialPlugin(): true;
|
|
32
|
+
/**
|
|
33
|
+
* @inheritDoc
|
|
34
|
+
*/
|
|
35
|
+
static get isPremiumPlugin(): true;
|
|
36
|
+
/**
|
|
37
|
+
* @inheritDoc
|
|
38
|
+
*/
|
|
39
|
+
init(): void;
|
|
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
|
+
const _0xdb4125=_0x1c28;(function(_0x41019b,_0x508d73){const _0x4aff27=_0x1c28,_0x1fc6a1=_0x41019b();while(!![]){try{const _0x40740e=-parseInt(_0x4aff27(0xb3))/0x1+-parseInt(_0x4aff27(0x118))/0x2*(parseInt(_0x4aff27(0xe8))/0x3)+-parseInt(_0x4aff27(0xdb))/0x4+-parseInt(_0x4aff27(0xd5))/0x5+-parseInt(_0x4aff27(0xf0))/0x6*(-parseInt(_0x4aff27(0xfc))/0x7)+-parseInt(_0x4aff27(0xcf))/0x8+parseInt(_0x4aff27(0xce))/0x9*(parseInt(_0x4aff27(0x107))/0xa);if(_0x40740e===_0x508d73)break;else _0x1fc6a1['push'](_0x1fc6a1['shift']());}catch(_0x5ee381){_0x1fc6a1['push'](_0x1fc6a1['shift']());}}}(_0xbf4f,0x34496));function _0xbf4f(){const _0x4314cd=['21ywXIfs','editConversationTitle','getItem','activateTab:history','getDate','view','remove','items','1076034QQPHWn','updateItemLoadingState','init','get','unpin','itemId','resizedTabs','resizeTabs','createdAt','_clearItemLoading','AI_CHAT_HISTORY_CATEGORY_LATER','rename','14LgOjlM','_generateErrorMessage','openChat','AI_CHAT_HISTORY_CATEGORY_PINNED','requires','activeConversation','_aiConnector','title','_handleTogglePin','_handleHistoryErrorUI','AI_CHAT_HISTORY_CATEGORY_TODAY','10bGtwhy','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','plugins','removeHistoryItem','getItems','AI_CHAT_HISTORY_PIN_ACTION','selectConversation','_handleSelectConversation','context','_updateHistoryItemsUI','map','pluginName','setDate','setConversationPinned','history','resize','itemRemoved','106202jvsrdc','357348LBOIpo','setLoadingSkeleton','change:activeConversation','error','pin','itemsLoaded','getFullYear','handleRemovedConversation','itemUpdated','loadItems','toLocaleDateString','isPremiumPlugin','operation','setIsMaximized','removeConversation','updateItemPinned','locale','listenTo','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','_getCategorizedItems','chat','isOfficialPlugin','_handleRemove','_aiChatController','updateItems','10830483jEXCkD','1895904lQLjya','AI_CHAT_UNTITLED_CONVERSATION','_handleEditTitle','length','_setIsMaximized','getGroupId','442265rTaEiP','pinned','AI_CHAT_HISTORY_UNPIN_ACTION','_aiChatHistoryUi','removeItem','_showConversationHistory','1173612ZMpSXl','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','push','showError','AI_CHAT_HISTORY_ERROR_GENERIC','_setItemLoading','getMonth','loadConversation','AIChatHistoryController','activateTab','updateItemTitle','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','updates'];_0xbf4f=function(){return _0x4314cd;};return _0xbf4f();}import{ContextPlugin as _0x13ca89}from'ckeditor5/src/core.js';import{AIConnector as _0x5068df}from'../aicore/aiconnector.js';import{AIChatController as _0x485328}from'../aichat/aichatcontroller.js';import{AITabs as _0x29a21b}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x65b23a}from'./aichathistoryui.js';function _0x1c28(_0x57f1ab,_0x4638b8){const _0xbf4f3f=_0xbf4f();return _0x1c28=function(_0x1c2865,_0x35e05e){_0x1c2865=_0x1c2865-0xb3;let _0x8c4605=_0xbf4f3f[_0x1c2865];return _0x8c4605;},_0x1c28(_0x57f1ab,_0x4638b8);}import{AIChatHistoryConversations as _0xe50dab}from'./model/aichathistoryconversations.js';import{getTranslation as _0x34372f}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x13ca89{[_0xdb4125(0x102)];[_0xdb4125(0xd8)];[_0xdb4125(0xcc)];static get[_0xdb4125(0x100)](){return[_0x5068df,_0x485328,_0x65b23a,_0x29a21b];}static get[_0xdb4125(0x112)](){const _0x8c050c=_0xdb4125;return _0x8c050c(0xe3);}static get[_0xdb4125(0xca)](){return!0x0;}static get[_0xdb4125(0xbe)](){return!0x0;}[_0xdb4125(0xf2)](){const _0xdd0149=_0xdb4125;this[_0xdd0149(0x102)]=this[_0xdd0149(0x10f)][_0xdd0149(0x109)][_0xdd0149(0xf3)](_0x5068df),this[_0xdd0149(0xd8)]=this[_0xdd0149(0x10f)][_0xdd0149(0x109)][_0xdd0149(0xf3)](_0x65b23a),this[_0xdd0149(0xcc)]=this[_0xdd0149(0x10f)][_0xdd0149(0x109)][_0xdd0149(0xf3)](_0x485328);const _0xe624c=this[_0xdd0149(0x10f)][_0xdd0149(0x109)][_0xdd0149(0xf3)](_0x29a21b),_0x5ebc52=this[_0xdd0149(0xcc)][_0xdd0149(0xd4)]();this[_0xdd0149(0x115)]=new _0xe50dab({'connector':this[_0xdd0149(0x102)],'group':_0x5ebc52}),this[_0xdd0149(0xc4)](this[_0xdd0149(0xd8)],_0xdd0149(0xc1),(_0x540995,_0x2a55e6)=>{const _0x5dc4a8=_0xdd0149;this[_0x5dc4a8(0xe0)](_0x2a55e6['id'],_0x5dc4a8(0xee)),this[_0x5dc4a8(0xcb)](_0x2a55e6['id']);}),this[_0xdd0149(0xc4)](this[_0xdd0149(0xd8)],_0xdd0149(0xe9),(_0x3eb89f,_0x5018c6)=>{const _0x511614=_0xdd0149;this[_0x511614(0xe0)](_0x5018c6['id'],_0x511614(0xfb)),this[_0x511614(0xd1)](_0x5018c6['id'],_0x5018c6[_0x511614(0x103)]);}),this[_0xdd0149(0xc4)](this[_0xdd0149(0x115)],_0xdd0149(0xbb),(_0x375d65,_0x29dc9c)=>{const _0x536470=_0xdd0149;void 0x0!==_0x29dc9c[_0x536470(0xe7)][_0x536470(0x103)]&&this[_0x536470(0xd8)][_0x536470(0xe5)](_0x29dc9c[_0x536470(0xf5)],_0x29dc9c[_0x536470(0xe7)][_0x536470(0x103)]),void 0x0!==_0x29dc9c[_0x536470(0xe7)][_0x536470(0xd6)]&&this[_0x536470(0x110)](),this[_0x536470(0xf9)](_0x29dc9c[_0x536470(0xf5)]);}),this[_0xdd0149(0xc4)](this[_0xdd0149(0x115)],_0xdd0149(0x117),(_0x5c0828,_0x420acd)=>{const _0x14e074=_0xdd0149;this[_0x14e074(0xcc)][_0x14e074(0xba)](_0x420acd[_0x14e074(0xf5)]),this[_0x14e074(0xd8)][_0x14e074(0x10a)](_0x420acd[_0x14e074(0xf5)]),this[_0x14e074(0xf9)](_0x420acd[_0x14e074(0xf5)]);}),this[_0xdd0149(0xc4)](this[_0xdd0149(0x115)],_0xdd0149(0xb8),()=>{const _0x93ed58=_0xdd0149;this[_0x93ed58(0x110)]();}),this[_0xdd0149(0xc4)](this[_0xdd0149(0x115)],_0xdd0149(0xb6),(_0x1bca19,_0x4d0802)=>{const _0x3c036c=_0xdd0149;this[_0x3c036c(0x105)](_0x4d0802[_0x3c036c(0xb6)],_0x4d0802[_0x3c036c(0xbf)],_0x4d0802[_0x3c036c(0xf5)]);}),this[_0xdd0149(0xc4)](this[_0xdd0149(0xd8)],_0xdd0149(0x10d),(_0x292e7d,_0x481ed0)=>{const _0x10db4b=_0xdd0149;this[_0x10db4b(0x10e)](_0x481ed0['id']);}),this[_0xdd0149(0xc4)](this[_0xdd0149(0xd8)],_0xdd0149(0x114),(_0x573cd1,_0x43b751)=>{const _0x35ef1b=_0xdd0149,_0x3c199e=_0x43b751[_0x35ef1b(0xd6)]?_0x35ef1b(0xb7):_0x35ef1b(0xf4);this[_0x35ef1b(0xe0)](_0x43b751['id'],_0x3c199e),this[_0x35ef1b(0x104)](_0x43b751['id'],_0x43b751[_0x35ef1b(0xd6)]);}),this[_0xdd0149(0xc4)](this[_0xdd0149(0xd8)],_0xdd0149(0xfe),()=>{const _0x7058ce=_0xdd0149;_0xe624c[_0x7058ce(0xed)][_0x7058ce(0xe4)](_0x7058ce(0xc9));}),this[_0xdd0149(0xc4)](this[_0xdd0149(0xcc)],_0xdd0149(0xb5),()=>{const _0x57f036=_0xdd0149;this[_0x57f036(0x110)]();}),_0xe624c[_0xdd0149(0xed)]['on'](_0xdd0149(0xeb),()=>{const _0x3e15b5=_0xdd0149;this[_0x3e15b5(0xda)]();}),this[_0xdd0149(0xc4)](_0xe624c,_0xdd0149(0xf6),(_0x179136,_0x34117f)=>{const _0x2e8e83=_0xdd0149;this[_0x2e8e83(0xd3)](_0x34117f);}),this[_0xdd0149(0xc4)](this[_0xdd0149(0xd8)],_0xdd0149(0xf7),()=>{const _0x5c3f23=_0xdd0149;_0xe624c[_0x5c3f23(0x116)]();});}async[_0xdb4125(0xd1)](_0x4341a7,_0x5c013b){const _0x429930=_0xdb4125;await this[_0x429930(0x115)][_0x429930(0xe5)](_0x4341a7,_0x5c013b);}async[_0xdb4125(0x104)](_0x181746,_0x3068e3){const _0x3021ea=_0xdb4125;await this[_0x3021ea(0x115)][_0x3021ea(0xc2)](_0x181746,_0x3068e3);}async[_0xdb4125(0xcb)](_0x12b059){const _0x954aa6=_0xdb4125;await this[_0x954aa6(0x115)][_0x954aa6(0xd9)](_0x12b059);}async[_0xdb4125(0x10e)](_0x3bc289){const _0x28f019=_0xdb4125;await this[_0x28f019(0xcc)][_0x28f019(0xe2)](_0x3bc289);}async[_0xdb4125(0xda)](){const _0x423393=_0xdb4125;this[_0x423393(0xd8)][_0x423393(0xde)](''),this[_0x423393(0xd8)][_0x423393(0xb4)](!0x0),await this[_0x423393(0x115)][_0x423393(0xf2)](),this[_0x423393(0xd8)][_0x423393(0xb4)](!0x1);}[_0xdb4125(0x110)](){const _0x4b459b=_0xdb4125,_0xb61b3c=this[_0x4b459b(0xcc)][_0x4b459b(0x101)]?.['id'],_0x3a8b7a=this[_0x4b459b(0xc8)]()[_0x4b459b(0x111)](_0x4309d7=>({'title':_0x4309d7[_0x4b459b(0x103)],'items':_0x4309d7[_0x4b459b(0xef)][_0x4b459b(0x111)](_0x4f2602=>({'id':_0x4f2602['id'],'title':_0x4f2602[_0x4b459b(0x103)]||_0x34372f(this[_0x4b459b(0x10f)][_0x4b459b(0xc3)],_0x4b459b(0xd0)),'createdAt':new Date(_0x4f2602[_0x4b459b(0xf8)])[_0x4b459b(0xbd)](),'active':_0x4f2602['id']===_0xb61b3c,'pinned':_0x4f2602[_0x4b459b(0xd6)]}))}));this[_0x4b459b(0xd8)][_0x4b459b(0xcd)](_0x3a8b7a);}[_0xdb4125(0xe0)](_0x1cebf2,_0x25cb10){const _0x344bf0=_0xdb4125;this[_0x344bf0(0xd8)][_0x344bf0(0xf1)](_0x1cebf2,_0x25cb10,!0x0);}[_0xdb4125(0xf9)](_0x929125){const _0x5b9c8d=_0xdb4125;this[_0x5b9c8d(0xd8)][_0x5b9c8d(0xf1)](_0x929125,null,!0x1);}[_0xdb4125(0x105)](_0x1e9bb7,_0x53aede,_0x48aae5){const _0x75079b=_0xdb4125,_0x47406f=this[_0x75079b(0xfd)](_0x53aede,_0x48aae5);this[_0x75079b(0xd8)][_0x75079b(0xde)](_0x47406f),_0x48aae5&&this[_0x75079b(0xf9)](_0x48aae5),this[_0x75079b(0xd8)][_0x75079b(0xb4)](!0x1);}[_0xdb4125(0xfd)](_0x318101,_0x5130bc){const _0x792011=_0xdb4125,_0xae750b=_0x5130bc?this[_0x792011(0x115)][_0x792011(0xea)](_0x5130bc):null,_0x104dae=_0xae750b?.[_0x792011(0x103)]||_0x34372f(this[_0x792011(0x10f)][_0x792011(0xc3)],_0x792011(0xd0));switch(_0x318101){case _0x792011(0xe5):return _0x34372f(this[_0x792011(0x10f)][_0x792011(0xc3)],_0x792011(0xe6),_0x104dae);case _0x792011(0xc2):{const _0x2fa521=_0x34372f(this[_0x792011(0x10f)][_0x792011(0xc3)],_0xae750b?.[_0x792011(0xd6)]?_0x792011(0xd7):_0x792011(0x10c));return _0x34372f(this[_0x792011(0x10f)][_0x792011(0xc3)],_0x792011(0xc6),[_0x2fa521,_0x104dae]);}case _0x792011(0xd9):return _0x34372f(this[_0x792011(0x10f)][_0x792011(0xc3)],_0x792011(0x108),_0x104dae);case _0x792011(0xf2):case _0x792011(0xbc):return _0x34372f(this[_0x792011(0x10f)][_0x792011(0xc3)],_0x792011(0xc7));default:return _0x34372f(this[_0x792011(0x10f)][_0x792011(0xc3)],_0x792011(0xdf));}}[_0xdb4125(0xc8)](){const _0x40ab1c=_0xdb4125,_0x10580a=new Date(),_0x158608=new Date(_0x10580a[_0x40ab1c(0xb9)](),_0x10580a[_0x40ab1c(0xe1)](),_0x10580a[_0x40ab1c(0xec)]()),_0x5713c7=new Date(_0x158608);_0x5713c7[_0x40ab1c(0x113)](_0x5713c7[_0x40ab1c(0xec)]()-0x1);const _0x215ec1=new Date(_0x158608);_0x215ec1[_0x40ab1c(0x113)](_0x215ec1[_0x40ab1c(0xec)]()-0xe);const _0x14b8d0=this[_0x40ab1c(0x115)][_0x40ab1c(0x10b)]({'pinned':!0x0}),_0x27a791=this[_0x40ab1c(0x115)][_0x40ab1c(0x10b)]({'from':_0x158608,'to':_0x158608}),_0x5cbde1=this[_0x40ab1c(0x115)][_0x40ab1c(0x10b)]({'from':_0x5713c7,'to':_0x5713c7}),_0x95e451=this[_0x40ab1c(0x115)][_0x40ab1c(0x10b)]({'from':_0x215ec1,'to':_0x5713c7}),_0x5bc4d5=this[_0x40ab1c(0x115)][_0x40ab1c(0x10b)]({'to':_0x215ec1}),_0x45e582=[];return _0x14b8d0[_0x40ab1c(0xd2)]>0x0&&_0x45e582[_0x40ab1c(0xdd)]({'title':_0x34372f(this[_0x40ab1c(0x10f)][_0x40ab1c(0xc3)],_0x40ab1c(0xff)),'items':_0x14b8d0}),_0x27a791[_0x40ab1c(0xd2)]>0x0&&_0x45e582[_0x40ab1c(0xdd)]({'title':_0x34372f(this[_0x40ab1c(0x10f)][_0x40ab1c(0xc3)],_0x40ab1c(0x106)),'items':_0x27a791}),_0x5cbde1[_0x40ab1c(0xd2)]>0x0&&_0x45e582[_0x40ab1c(0xdd)]({'title':_0x34372f(this[_0x40ab1c(0x10f)][_0x40ab1c(0xc3)],_0x40ab1c(0xdc)),'items':_0x5cbde1}),_0x95e451[_0x40ab1c(0xd2)]>0x0&&_0x45e582[_0x40ab1c(0xdd)]({'title':_0x34372f(this[_0x40ab1c(0x10f)][_0x40ab1c(0xc3)],_0x40ab1c(0xc5)),'items':_0x95e451}),_0x5bc4d5[_0x40ab1c(0xd2)]>0x0&&_0x45e582[_0x40ab1c(0xdd)]({'title':_0x34372f(this[_0x40ab1c(0x10f)][_0x40ab1c(0xc3)],_0x40ab1c(0xfa)),'items':_0x5bc4d5}),_0x45e582;}[_0xdb4125(0xd3)](_0x394232){const _0x16fdad=_0xdb4125;this[_0x16fdad(0xd8)][_0x16fdad(0xc0)](_0x394232);}}
|
|
@@ -0,0 +1,112 @@
|
|
|
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/aichathistoryui
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { type Context, type Editor, ContextPlugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { AITabs } from '../aitabs/aitabs.js';
|
|
11
|
+
import '../../theme/aichat/aichathistory.css';
|
|
12
|
+
export declare const AI_CHAT_HISTORY_UI_EVENT_NAMES: readonly ["showConversationHistory", "removeConversation", "editConversationTitle", "setConversationPinned", "selectConversation", "openChat", "resizeTabs"];
|
|
13
|
+
export declare class AIChatHistoryUI extends ContextPlugin {
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static get requires(): readonly [typeof AITabs];
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get pluginName(): "AIChatHistoryUI";
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get isOfficialPlugin(): true;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static get isPremiumPlugin(): true;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
constructor(context: Context | Editor);
|
|
34
|
+
/**
|
|
35
|
+
* Removes a conversation item from the history list.
|
|
36
|
+
*/
|
|
37
|
+
removeHistoryItem(id: string): void;
|
|
38
|
+
/**
|
|
39
|
+
* Updates the history items with categorized data.
|
|
40
|
+
*/
|
|
41
|
+
updateItems(categories: Array<AIChatHistoryCategoryData>): void;
|
|
42
|
+
/**
|
|
43
|
+
* Updates the title of a specific history item in the UI.
|
|
44
|
+
*/
|
|
45
|
+
updateItemTitle(itemId: string, title: string): void;
|
|
46
|
+
/**
|
|
47
|
+
* Updates the loading state of a specific history item in the UI.
|
|
48
|
+
*/
|
|
49
|
+
updateItemLoadingState(itemId: string, operation: string | null, isLoading: boolean): void;
|
|
50
|
+
/**
|
|
51
|
+
* Toggles the loading skeleton in the history view.
|
|
52
|
+
*/
|
|
53
|
+
setLoadingSkeleton(isLoading: boolean): void;
|
|
54
|
+
/**
|
|
55
|
+
* Shows an error message in the history view.
|
|
56
|
+
*/
|
|
57
|
+
showError(message: string): void;
|
|
58
|
+
/**
|
|
59
|
+
* Hides the error message in the history view.
|
|
60
|
+
*/
|
|
61
|
+
hideError(): void;
|
|
62
|
+
setIsMaximized(isMaximized: boolean): void;
|
|
63
|
+
}
|
|
64
|
+
export type AIChatHistoryItemData = {
|
|
65
|
+
id: string;
|
|
66
|
+
title: string;
|
|
67
|
+
createdAt: string;
|
|
68
|
+
active: boolean;
|
|
69
|
+
pinned?: boolean;
|
|
70
|
+
};
|
|
71
|
+
export type AIChatHistoryCategoryData = {
|
|
72
|
+
title: string;
|
|
73
|
+
items: Array<AIChatHistoryItemData>;
|
|
74
|
+
};
|
|
75
|
+
export type AIChatHistoryUIRemoveConversationEvent = {
|
|
76
|
+
name: 'removeConversation';
|
|
77
|
+
args: [
|
|
78
|
+
{
|
|
79
|
+
id: string;
|
|
80
|
+
}
|
|
81
|
+
];
|
|
82
|
+
};
|
|
83
|
+
export type AIChatHistoryUIEditTitleEvent = {
|
|
84
|
+
name: 'editConversationTitle';
|
|
85
|
+
args: [
|
|
86
|
+
{
|
|
87
|
+
id: string;
|
|
88
|
+
title: string;
|
|
89
|
+
}
|
|
90
|
+
];
|
|
91
|
+
};
|
|
92
|
+
export type AIChatHistoryUISelectConversationEvent = {
|
|
93
|
+
name: 'selectConversation';
|
|
94
|
+
args: [
|
|
95
|
+
{
|
|
96
|
+
id: string;
|
|
97
|
+
}
|
|
98
|
+
];
|
|
99
|
+
};
|
|
100
|
+
export type AIChatHistoryUISetPinnedEvent = {
|
|
101
|
+
name: 'setConversationPinned';
|
|
102
|
+
args: [
|
|
103
|
+
{
|
|
104
|
+
id: string;
|
|
105
|
+
pinned: boolean;
|
|
106
|
+
}
|
|
107
|
+
];
|
|
108
|
+
};
|
|
109
|
+
export type AIChatHistoryUIOpenChatEvent = {
|
|
110
|
+
name: 'openChat';
|
|
111
|
+
args: [];
|
|
112
|
+
};
|
|
@@ -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 _0x3296(_0x500850,_0x15e67f){const _0x1a932f=_0x1a93();return _0x3296=function(_0x32968a,_0x1f4fae){_0x32968a=_0x32968a-0xbf;let _0xae29ea=_0x1a932f[_0x32968a];return _0xae29ea;},_0x3296(_0x500850,_0x15e67f);}const _0x16a7e7=_0x3296;(function(_0x1ab441,_0x2b53a6){const _0x5f36bd=_0x3296,_0x5d8a7f=_0x1ab441();while(!![]){try{const _0x45c45b=parseInt(_0x5f36bd(0xca))/0x1*(parseInt(_0x5f36bd(0xcf))/0x2)+-parseInt(_0x5f36bd(0xd4))/0x3*(-parseInt(_0x5f36bd(0xec))/0x4)+parseInt(_0x5f36bd(0xdd))/0x5*(parseInt(_0x5f36bd(0xe1))/0x6)+parseInt(_0x5f36bd(0xe3))/0x7+parseInt(_0x5f36bd(0xc9))/0x8+parseInt(_0x5f36bd(0xd1))/0x9+parseInt(_0x5f36bd(0xc1))/0xa*(-parseInt(_0x5f36bd(0xe4))/0xb);if(_0x45c45b===_0x2b53a6)break;else _0x5d8a7f['push'](_0x5d8a7f['shift']());}catch(_0x3323ca){_0x5d8a7f['push'](_0x5d8a7f['shift']());}}}(_0x1a93,0x92e6e));import{ContextPlugin as _0x3e177d}from'ckeditor5/src/core.js';import{AITabs as _0x4acc99}from'../aitabs/aitabs.js';import{IconAIHistory as _0xa02769}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x3853cf}from'./ui/aichathistoryview.js';import{getTranslation as _0x4e6121}from'../aicore/utils/common-translations.js';function _0x1a93(){const _0x2330cd=['locale','showConversationHistory','showResizeButton','24883690qBwpbe','editConversationTitle','updateItems','resizeTabs','history','updateItemLoadingState','showError','AI_CHAT_HISTORY_HEADING','33288LLVYcp','3457fkEVDH','hideError','plugins','removeConversation','isMaximized','158lKquQz','removeHistoryItem','7401861ZvkucU','selectConversation','setIsMaximized','69PQjgpr','isPremiumPlugin','pluginName','addTab','AITabs','updateHistoryItemsWithCategories','isLoading','openChat','updateItemTitle','109905KmSuze','AIChatHistoryUI','context','errorMessage','66WoqyFj','get','6082076awSzFe','11lJaLsg','_historyView','setConversationPinned','setLoadingSkeleton','view','delegate','requires','isOfficialPlugin','152996lHOHKJ'];_0x1a93=function(){return _0x2330cd;};return _0x1a93();}import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x16a7e7(0xbf),_0x16a7e7(0xcd),_0x16a7e7(0xc2),_0x16a7e7(0xe6),_0x16a7e7(0xd2),_0x16a7e7(0xdb),_0x16a7e7(0xc4)];export class AIChatHistoryUI extends _0x3e177d{static get[_0x16a7e7(0xea)](){return[_0x4acc99];}[_0x16a7e7(0xe5)];static get[_0x16a7e7(0xd6)](){const _0x399c7d=_0x16a7e7;return _0x399c7d(0xde);}static get[_0x16a7e7(0xeb)](){return!0x0;}static get[_0x16a7e7(0xd5)](){return!0x0;}constructor(_0x513805){const _0xa8b0c3=_0x16a7e7;super(_0x513805);const _0x22740c=this[_0xa8b0c3(0xdf)][_0xa8b0c3(0xcc)][_0xa8b0c3(0xe2)](_0xa8b0c3(0xd8));this[_0xa8b0c3(0xe5)]=new _0x3853cf(this[_0xa8b0c3(0xdf)][_0xa8b0c3(0xed)],_0x22740c[_0xa8b0c3(0xc0)]),this[_0xa8b0c3(0xe5)][_0xa8b0c3(0xe9)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x22740c[_0xa8b0c3(0xe8)][_0xa8b0c3(0xd7)]({'id':_0xa8b0c3(0xc5),'buttonLabel':_0x4e6121(this[_0xa8b0c3(0xdf)][_0xa8b0c3(0xed)],_0xa8b0c3(0xc8)),'buttonIcon':_0xa02769,'order':0x0,'content':this[_0xa8b0c3(0xe5)]});}[_0x16a7e7(0xd0)](_0x28a121){const _0x3dd0f6=_0x16a7e7;this[_0x3dd0f6(0xe5)][_0x3dd0f6(0xd0)](_0x28a121);}[_0x16a7e7(0xc3)](_0x5ccc59){const _0x2e21a5=_0x16a7e7;this[_0x2e21a5(0xe5)][_0x2e21a5(0xd9)](_0x5ccc59);}[_0x16a7e7(0xdc)](_0x55649b,_0x5e9002){const _0x449b0e=_0x16a7e7;this[_0x449b0e(0xe5)][_0x449b0e(0xdc)](_0x55649b,_0x5e9002);}[_0x16a7e7(0xc6)](_0x3cd6cf,_0x33da50,_0x2c5376){const _0x5a7817=_0x16a7e7;this[_0x5a7817(0xe5)][_0x5a7817(0xc6)](_0x3cd6cf,_0x33da50,_0x2c5376);}[_0x16a7e7(0xe7)](_0x4d6f9d){const _0x23b1aa=_0x16a7e7;this[_0x23b1aa(0xe5)][_0x23b1aa(0xda)]=_0x4d6f9d;}[_0x16a7e7(0xc7)](_0x47448b){const _0xfd65a8=_0x16a7e7;this[_0xfd65a8(0xe5)][_0xfd65a8(0xe0)]=_0x47448b;}[_0x16a7e7(0xcb)](){const _0x3bdb75=_0x16a7e7;this[_0x3bdb75(0xe5)][_0x3bdb75(0xe0)]='';}[_0x16a7e7(0xd3)](_0x27b79f){const _0x35f7c5=_0x16a7e7;this[_0x35f7c5(0xe5)][_0x35f7c5(0xce)]=_0x27b79f;}}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { AIChatHistoryItem } from './aichathistoryitem.js';
|
|
6
|
+
import { type AIConnector, type AIConversationItem } from '../../aicore/aiconnector.js';
|
|
7
|
+
declare const AIChatHistoryConversations_base: {
|
|
8
|
+
new (): import("ckeditor5/src/utils.js").Emitter;
|
|
9
|
+
prototype: import("ckeditor5/src/utils.js").Emitter;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Represents the chat history conversations that manages a collection of history items.
|
|
13
|
+
*
|
|
14
|
+
* The history conversations provides methods to add, remove, update, and query history items.
|
|
15
|
+
* It emits events when the history changes, allowing UI components to react accordingly.
|
|
16
|
+
*/
|
|
17
|
+
export declare class AIChatHistoryConversations extends /* #__PURE__ */ AIChatHistoryConversations_base {
|
|
18
|
+
/**
|
|
19
|
+
* The collection of history items.
|
|
20
|
+
*/
|
|
21
|
+
items: Array<AIChatHistoryItem>;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
constructor({ connector, group }: {
|
|
26
|
+
connector: AIConnector;
|
|
27
|
+
group: string;
|
|
28
|
+
});
|
|
29
|
+
/**
|
|
30
|
+
* Initializes the history by loading conversations from the API.
|
|
31
|
+
*/
|
|
32
|
+
init(): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Adds a new item to the history.
|
|
35
|
+
*/
|
|
36
|
+
addItem(item: AIChatHistoryItem): void;
|
|
37
|
+
/**
|
|
38
|
+
* Removes an item from the history by ID.
|
|
39
|
+
*/
|
|
40
|
+
removeItem(id: string): Promise<boolean>;
|
|
41
|
+
/**
|
|
42
|
+
* Gets an item by ID.
|
|
43
|
+
*/
|
|
44
|
+
getItem(id: string): AIChatHistoryItem | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Updates the title of an item.
|
|
47
|
+
*/
|
|
48
|
+
updateItemTitle(id: string, title: string): Promise<boolean>;
|
|
49
|
+
/**
|
|
50
|
+
* Updates the pinned status of an item.
|
|
51
|
+
*/
|
|
52
|
+
updateItemPinned(id: string, pinned: boolean): Promise<boolean>;
|
|
53
|
+
/**
|
|
54
|
+
* Loads items from conversation data.
|
|
55
|
+
*/
|
|
56
|
+
loadItems(conversationData: Array<AIConversationItem>): void;
|
|
57
|
+
/**
|
|
58
|
+
* Gets items with optional filtering by pinned status and date range.
|
|
59
|
+
*
|
|
60
|
+
* This method allows flexible querying of items with various combinations of filters.
|
|
61
|
+
* When date range is provided, it compares only dates (year, month, day) ignoring time components.
|
|
62
|
+
* By default, returns only non-pinned items.
|
|
63
|
+
*
|
|
64
|
+
* @param options.pinned Filter by pinned status. If true, returns only pinned items. If false, returns only non-pinned items.
|
|
65
|
+
* If undefined, returns only non-pinned items (default behavior).
|
|
66
|
+
* @param options.from Older date (inclusive, optional). If not provided, returns items older than 'to' date.
|
|
67
|
+
* Only date part is considered.
|
|
68
|
+
* @param options.to Newer date (inclusive). Only date part is considered.
|
|
69
|
+
*/
|
|
70
|
+
getItems(options?: {
|
|
71
|
+
pinned?: boolean;
|
|
72
|
+
from?: Date;
|
|
73
|
+
to?: Date;
|
|
74
|
+
}): Array<AIChatHistoryItem>;
|
|
75
|
+
}
|
|
76
|
+
export type AIChatHistoryConversationsItemRemovedEvent = {
|
|
77
|
+
name: 'itemRemoved';
|
|
78
|
+
args: [
|
|
79
|
+
{
|
|
80
|
+
itemId: string;
|
|
81
|
+
}
|
|
82
|
+
];
|
|
83
|
+
};
|
|
84
|
+
export type AIChatHistoryConversationsItemUpdatedEvent = {
|
|
85
|
+
name: 'itemUpdated';
|
|
86
|
+
args: [
|
|
87
|
+
{
|
|
88
|
+
itemId: string;
|
|
89
|
+
updates: {
|
|
90
|
+
title?: string;
|
|
91
|
+
pinned?: boolean;
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
];
|
|
95
|
+
};
|
|
96
|
+
export type AIChatHistoryConversationsItemsLoadedEvent = {
|
|
97
|
+
name: 'itemsLoaded';
|
|
98
|
+
args: [
|
|
99
|
+
{
|
|
100
|
+
items: Array<AIChatHistoryItem>;
|
|
101
|
+
}
|
|
102
|
+
];
|
|
103
|
+
};
|
|
104
|
+
export type AIChatHistoryConversationsErrorEvent = {
|
|
105
|
+
name: 'error';
|
|
106
|
+
args: [
|
|
107
|
+
{
|
|
108
|
+
error: Error;
|
|
109
|
+
operation: string;
|
|
110
|
+
itemId?: string;
|
|
111
|
+
}
|
|
112
|
+
];
|
|
113
|
+
};
|
|
114
|
+
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
|
+
function _0x3899(_0x5e4b37,_0xff3d21){const _0x44a1af=_0x44a1();return _0x3899=function(_0x38998b,_0x1b5b26){_0x38998b=_0x38998b-0xb0;let _0x1c755b=_0x44a1af[_0x38998b];return _0x1c755b;},_0x3899(_0x5e4b37,_0xff3d21);}const _0x99ba0a=_0x3899;(function(_0xea19c4,_0x73f820){const _0x108738=_0x3899,_0x50a47e=_0xea19c4();while(!![]){try{const _0xeda491=-parseInt(_0x108738(0xd2))/0x1*(-parseInt(_0x108738(0xd5))/0x2)+parseInt(_0x108738(0xd7))/0x3+-parseInt(_0x108738(0xdb))/0x4*(parseInt(_0x108738(0xc3))/0x5)+parseInt(_0x108738(0xca))/0x6*(parseInt(_0x108738(0xd8))/0x7)+-parseInt(_0x108738(0xd1))/0x8*(-parseInt(_0x108738(0xc8))/0x9)+-parseInt(_0x108738(0xc7))/0xa*(-parseInt(_0x108738(0xc9))/0xb)+parseInt(_0x108738(0xd9))/0xc*(-parseInt(_0x108738(0xb6))/0xd);if(_0xeda491===_0x73f820)break;else _0x50a47e['push'](_0x50a47e['shift']());}catch(_0x17ec6e){_0x50a47e['push'](_0x50a47e['shift']());}}}(_0x44a1,0xc5bc9));function _0x44a1(){const _0x3734a8=['addItem','145RTpYiG','getResult','updateItemTitle','connector','494110pgCnzV','2798667dLNLLv','209ANDqUR','6HTBNcW','error','updatePinned','removeItem','getConversations','group','init','40XJTaXs','23jmKDky','createdAt','getItems','105062XVNsXG','getFullYear','2069556bPSNCr','6925583ZrHdvM','54382356mplfwJ','filter','5416cEFRgl','getMonth','updateTitle','items','pinned','push','getTime','fire','fetchConversations','itemRemoved','from','splice','map','13TruQIa','loadItems','getItem','itemsLoaded','getDate','updateConversation','findIndex','deleteConversation','execute','itemUpdated','updateItemPinned','find'];_0x44a1=function(){return _0x3734a8;};return _0x44a1();}import{EmitterMixin as _0x16cc89}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x5c5d42}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x16cc89(){[_0x99ba0a(0xde)]=[];[_0x99ba0a(0xc6)];[_0x99ba0a(0xcf)];constructor({connector:_0x4da901,group:_0x54ef06}){const _0x4cb664=_0x99ba0a;super(),this[_0x4cb664(0xc6)]=_0x4da901,this[_0x4cb664(0xcf)]=_0x54ef06;}async[_0x99ba0a(0xd0)](){const _0x59ed32=_0x99ba0a;try{const _0x10fc57=this[_0x59ed32(0xc6)][_0x59ed32(0xb1)](this[_0x59ed32(0xcf)]),_0x35a743=await _0x10fc57[_0x59ed32(0xce)]();this[_0x59ed32(0xb7)](_0x35a743);}catch(_0xf0926b){this[_0x59ed32(0xb0)](_0x59ed32(0xcb),{'error':_0xf0926b,'operation':_0x59ed32(0xd0)});}}[_0x99ba0a(0xc2)](_0x52c91f){const _0x4a1e1e=_0x99ba0a;this[_0x4a1e1e(0xde)][_0x4a1e1e(0xe0)](_0x52c91f);}async[_0x99ba0a(0xcd)](_0x2ddef3){const _0x191e76=_0x99ba0a,_0x2a6b72=this[_0x191e76(0xde)][_0x191e76(0xbc)](_0x2dbcf4=>_0x2dbcf4['id']===_0x2ddef3);if(-0x1===_0x2a6b72)return!0x1;try{return await this[_0x191e76(0xc6)][_0x191e76(0xbd)](_0x2ddef3)[_0x191e76(0xbe)](),this[_0x191e76(0xde)][_0x191e76(0xb4)](_0x2a6b72,0x1),this[_0x191e76(0xb0)](_0x191e76(0xb2),{'itemId':_0x2ddef3}),!0x0;}catch(_0x59ac23){return this[_0x191e76(0xb0)](_0x191e76(0xcb),{'error':_0x59ac23,'operation':_0x191e76(0xcd),'itemId':_0x2ddef3}),!0x1;}}[_0x99ba0a(0xb8)](_0x435e9a){const _0x506890=_0x99ba0a;return this[_0x506890(0xde)][_0x506890(0xc1)](_0x4309dd=>_0x4309dd['id']===_0x435e9a);}async[_0x99ba0a(0xc5)](_0x15b1b6,_0x1e9437){const _0x3dd29a=_0x99ba0a,_0x4341ab=this[_0x3dd29a(0xb8)](_0x15b1b6);if(!_0x4341ab)return!0x1;try{return await this[_0x3dd29a(0xc6)][_0x3dd29a(0xbb)](_0x15b1b6,{'title':_0x1e9437})[_0x3dd29a(0xc4)](),_0x4341ab[_0x3dd29a(0xdd)](_0x1e9437),this[_0x3dd29a(0xb0)](_0x3dd29a(0xbf),{'itemId':_0x15b1b6,'updates':{'title':_0x1e9437}}),!0x0;}catch(_0x34dbbc){return this[_0x3dd29a(0xb0)](_0x3dd29a(0xcb),{'error':_0x34dbbc,'operation':_0x3dd29a(0xc5),'itemId':_0x15b1b6}),!0x1;}}async[_0x99ba0a(0xc0)](_0x3c4673,_0x33d095){const _0x338dba=_0x99ba0a,_0x574864=this[_0x338dba(0xb8)](_0x3c4673);if(!_0x574864)return!0x1;try{return await this[_0x338dba(0xc6)][_0x338dba(0xbb)](_0x3c4673,{'pinned':_0x33d095})[_0x338dba(0xc4)](),_0x574864[_0x338dba(0xcc)](_0x33d095),this[_0x338dba(0xb0)](_0x338dba(0xbf),{'itemId':_0x3c4673,'updates':{'pinned':_0x33d095}}),!0x0;}catch(_0x37e846){return this[_0x338dba(0xb0)](_0x338dba(0xcb),{'error':_0x37e846,'operation':_0x338dba(0xc0),'itemId':_0x3c4673}),!0x1;}}[_0x99ba0a(0xb7)](_0x27b482){const _0x1c9b0e=_0x99ba0a;try{this[_0x1c9b0e(0xde)]=[],_0x27b482[_0x1c9b0e(0xb5)](_0x3768b0=>{const _0x13d463=_0x1c9b0e;this[_0x13d463(0xc2)](new _0x5c5d42(_0x3768b0));}),this[_0x1c9b0e(0xb0)](_0x1c9b0e(0xb9),{'items':[...this[_0x1c9b0e(0xde)]]});}catch(_0x13d778){this[_0x1c9b0e(0xb0)](_0x1c9b0e(0xcb),{'error':_0x13d778,'operation':_0x1c9b0e(0xb7)});}}[_0x99ba0a(0xd4)](_0x3d49f9={}){const _0x5a81ef=_0x99ba0a,_0x111cab=void 0x0!==_0x3d49f9[_0x5a81ef(0xdf)]&&_0x3d49f9[_0x5a81ef(0xdf)],_0x1f3680=_0x3d49f9[_0x5a81ef(0xb3)]?new Date(_0x3d49f9[_0x5a81ef(0xb3)][_0x5a81ef(0xd6)](),_0x3d49f9[_0x5a81ef(0xb3)][_0x5a81ef(0xdc)](),_0x3d49f9[_0x5a81ef(0xb3)][_0x5a81ef(0xba)]()):null,_0x1a719b=_0x3d49f9['to']?new Date(_0x3d49f9['to'][_0x5a81ef(0xd6)](),_0x3d49f9['to'][_0x5a81ef(0xdc)](),_0x3d49f9['to'][_0x5a81ef(0xba)]()):null;return this[_0x5a81ef(0xde)][_0x5a81ef(0xda)](_0xc5ec3a=>{const _0x11efd7=_0x5a81ef;if(_0xc5ec3a[_0x11efd7(0xdf)]!==_0x111cab)return!0x1;if(_0x1a719b){const _0x19c37c=new Date(_0xc5ec3a[_0x11efd7(0xd3)][_0x11efd7(0xd6)](),_0xc5ec3a[_0x11efd7(0xd3)][_0x11efd7(0xdc)](),_0xc5ec3a[_0x11efd7(0xd3)][_0x11efd7(0xba)]());return _0x1f3680?_0x1f3680[_0x11efd7(0xe1)]()===_0x1a719b[_0x11efd7(0xe1)]()?_0x19c37c[_0x11efd7(0xe1)]()===_0x1f3680[_0x11efd7(0xe1)]():_0x19c37c<_0x1a719b&&_0x19c37c>=_0x1f3680:_0x19c37c<_0x1a719b;}return!0x0;});}}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { type AIConversationItem } from '../../aicore/aiconnector.js';
|
|
6
|
+
declare const AIChatHistoryItem_base: {
|
|
7
|
+
new (): import("ckeditor5/src/utils.js").Observable;
|
|
8
|
+
prototype: import("ckeditor5/src/utils.js").Observable;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Represents a single item in the chat history.
|
|
12
|
+
*
|
|
13
|
+
* An item contains basic information about a conversation that can be displayed
|
|
14
|
+
* in the history list and used to restore or manage the conversation.
|
|
15
|
+
*/
|
|
16
|
+
export declare class AIChatHistoryItem extends /* #__PURE__ */ AIChatHistoryItem_base {
|
|
17
|
+
/**
|
|
18
|
+
* The unique ID of the conversation.
|
|
19
|
+
*/
|
|
20
|
+
readonly id: string;
|
|
21
|
+
/**
|
|
22
|
+
* The title or name of the conversation.
|
|
23
|
+
*/
|
|
24
|
+
title: string;
|
|
25
|
+
/**
|
|
26
|
+
* The timestamp when the conversation was created.
|
|
27
|
+
*/
|
|
28
|
+
readonly createdAt: Date;
|
|
29
|
+
/**
|
|
30
|
+
* The timestamp when the conversation was last updated.
|
|
31
|
+
*/
|
|
32
|
+
updatedAt: Date | null;
|
|
33
|
+
/**
|
|
34
|
+
* Informs if the conversation is pinned.
|
|
35
|
+
*/
|
|
36
|
+
pinned: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* @inheritDoc
|
|
39
|
+
*/
|
|
40
|
+
constructor({ id, title, createdAt, updatedAt, pinned }: AIConversationItem);
|
|
41
|
+
/**
|
|
42
|
+
* Updates only the title of the item.
|
|
43
|
+
*/
|
|
44
|
+
updateTitle(title: string): void;
|
|
45
|
+
/**
|
|
46
|
+
* Updates the pinned status of the item.
|
|
47
|
+
*/
|
|
48
|
+
updatePinned(pinned: boolean): void;
|
|
49
|
+
}
|
|
50
|
+
export type AIChatHistoryItemUpdatedEvent = {
|
|
51
|
+
name: 'itemUpdated';
|
|
52
|
+
args: [
|
|
53
|
+
{
|
|
54
|
+
itemId: string;
|
|
55
|
+
updates: Partial<Pick<AIChatHistoryItem, 'title' | 'pinned'>>;
|
|
56
|
+
}
|
|
57
|
+
];
|
|
58
|
+
};
|
|
59
|
+
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
|
+
var _0x1b1c50=_0x4f4e;(function(_0x24fd96,_0x3b2ba2){var _0x50b694=_0x4f4e,_0x533cba=_0x24fd96();while(!![]){try{var _0x3c6014=parseInt(_0x50b694(0x18d))/0x1+-parseInt(_0x50b694(0x190))/0x2+-parseInt(_0x50b694(0x18e))/0x3+parseInt(_0x50b694(0x18a))/0x4*(-parseInt(_0x50b694(0x191))/0x5)+-parseInt(_0x50b694(0x186))/0x6*(-parseInt(_0x50b694(0x189))/0x7)+parseInt(_0x50b694(0x188))/0x8*(-parseInt(_0x50b694(0x192))/0x9)+-parseInt(_0x50b694(0x193))/0xa*(parseInt(_0x50b694(0x187))/0xb);if(_0x3c6014===_0x3b2ba2)break;else _0x533cba['push'](_0x533cba['shift']());}catch(_0x30287b){_0x533cba['push'](_0x533cba['shift']());}}}(_0x4e62,0x7db7a));function _0x4e62(){var _0x96c45f=['4ZsbUQa','updatePinned','title','849258bIZQhv','407319IsNIuJ','createdAt','296420bYFYVj','2310925LVGCkp','72kVdyci','10dTKfDU','updatedAt','set','pinned','updateTitle','3103614PHLWpL','824263zogsIR','30488qzxmmU','7GUWhwx'];_0x4e62=function(){return _0x96c45f;};return _0x4e62();}import{ObservableMixin as _0x5810f7}from'ckeditor5/src/utils.js';function _0x4f4e(_0x276575,_0x2ca4b2){var _0x4e62c8=_0x4e62();return _0x4f4e=function(_0x4f4eb2,_0x19e50c){_0x4f4eb2=_0x4f4eb2-0x184;var _0x251558=_0x4e62c8[_0x4f4eb2];return _0x251558;},_0x4f4e(_0x276575,_0x2ca4b2);}import{escape as _0xf56dbe}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x5810f7(){['id'];[_0x1b1c50(0x18f)];constructor({id:_0x20c00f,title:_0x245aff,createdAt:_0x38dbec,updatedAt:_0x316457,pinned:_0x14e9a1}){var _0x242d95=_0x1b1c50;super(),this['id']=_0x20c00f,this[_0x242d95(0x18f)]=new Date(_0x38dbec),this[_0x242d95(0x195)](_0x242d95(0x18c),_0x245aff),this[_0x242d95(0x195)](_0x242d95(0x194),_0x316457?new Date(_0x316457):null),this[_0x242d95(0x195)](_0x242d95(0x184),_0x14e9a1||!0x1);}[_0x1b1c50(0x185)](_0x4fd279){var _0x3aafc8=_0x1b1c50;this[_0x3aafc8(0x195)](_0x3aafc8(0x18c),_0xf56dbe(_0x4fd279)),this[_0x3aafc8(0x194)]=new Date();}[_0x1b1c50(0x18b)](_0x441b42){var _0x44a8df=_0x1b1c50;this[_0x44a8df(0x195)](_0x44a8df(0x184),_0x441b42),this[_0x44a8df(0x194)]=new Date();}}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { ListItemView } from 'ckeditor5/src/ui.js';
|
|
6
|
+
interface AIChatHistoryListItemViewConfig {
|
|
7
|
+
title: string;
|
|
8
|
+
createdAt: string;
|
|
9
|
+
active: boolean;
|
|
10
|
+
pinned?: boolean;
|
|
11
|
+
id: string;
|
|
12
|
+
}
|
|
13
|
+
declare const AIChatHistoryListItemView_base: import("ckeditor5/src/utils.js").Mixed<typeof ListItemView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin.js").ConfirmApi>;
|
|
14
|
+
export declare class AIChatHistoryListItemView extends AIChatHistoryListItemView_base {
|
|
15
|
+
id: string;
|
|
16
|
+
isVisible: boolean;
|
|
17
|
+
pinned: boolean;
|
|
18
|
+
isEdit: boolean;
|
|
19
|
+
loadingState: string | null;
|
|
20
|
+
showConfirm: (key: string, element: unknown) => Promise<void>;
|
|
21
|
+
cancelConfirm: () => void;
|
|
22
|
+
constructor(locale: any, config: AIChatHistoryListItemViewConfig);
|
|
23
|
+
/**
|
|
24
|
+
* Updates the title of the history item.
|
|
25
|
+
*/
|
|
26
|
+
updateTitle(title: string): void;
|
|
27
|
+
/**
|
|
28
|
+
* Updates the loading state of the history item.
|
|
29
|
+
*/
|
|
30
|
+
updateLoadingState(operation: string | null, isLoading: boolean): void;
|
|
31
|
+
/**
|
|
32
|
+
* Checks if the item matches the given regular expression.
|
|
33
|
+
*/
|
|
34
|
+
isMatching(regExp: RegExp): {
|
|
35
|
+
title: boolean;
|
|
36
|
+
} | null;
|
|
37
|
+
/**
|
|
38
|
+
* Highlights text in the title view based on the given regular expression.
|
|
39
|
+
*/
|
|
40
|
+
highlightText(regExp: RegExp | null): void;
|
|
41
|
+
}
|
|
42
|
+
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 _0x24616a=_0x1a2e;(function(_0x4ba90d,_0x4f2dbe){const _0x49e648=_0x1a2e,_0x4e9cfa=_0x4ba90d();while(!![]){try{const _0x50c326=parseInt(_0x49e648(0x1f4))/0x1*(-parseInt(_0x49e648(0x22f))/0x2)+parseInt(_0x49e648(0x1ee))/0x3+-parseInt(_0x49e648(0x1f2))/0x4*(-parseInt(_0x49e648(0x207))/0x5)+-parseInt(_0x49e648(0x239))/0x6*(-parseInt(_0x49e648(0x20d))/0x7)+-parseInt(_0x49e648(0x206))/0x8*(-parseInt(_0x49e648(0x20e))/0x9)+-parseInt(_0x49e648(0x23e))/0xa*(-parseInt(_0x49e648(0x24a))/0xb)+-parseInt(_0x49e648(0x201))/0xc;if(_0x50c326===_0x4f2dbe)break;else _0x4e9cfa['push'](_0x4e9cfa['shift']());}catch(_0x1b831b){_0x4e9cfa['push'](_0x4e9cfa['shift']());}}}(_0x2e3a,0x31c69));import{ListItemView as _0xf902d6,HighlightedTextView as _0x183bc7,ButtonView as _0x11c0bd,ListView as _0x534b52,IconView as _0x3b2897,createDropdown as _0x237abd,InputTextView as _0x13401b}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x5c5815,IconPin as _0x58f0a9,IconCheck as _0x5ed807,IconCancel as _0x5a8aa0}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x3c0695,ConfirmMixin as _0x31a416}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x2e3a(){const _0x33f747=['ck-confirm-view-submit','936444vAdUbp','listitem','AI_CHAT_HISTORY_LOADING_RENAMING','ck-ai-chat-history__item-main-content','_createPinButtonView','40tEtMVH','1990LkDnWA','_createCancelEditButtonView','edit:cancel','isOn','match','loadingState','16198xUbmmJ','48663gMLSab','add','clear','_commitEditInputValue','ck-hidden','ck-ai-chat-history__item-content','_createMenuDropdownView','tiny','AI_CHAT_HISTORY_LOADING_UNPINNING','AI_CHAT_HISTORY_EDIT_NAME','createCollection','isMatching','ck-ai-chat-history__item-check','LOADING_LABELS','key','panelPosition','bind','panelView','ck-ai-chat-history__item-row','AI_CHAT_HISTORY_LOADING_PINNING','focus','ck-ai-loader','AI_CHAT_HISTORY_LOADING_REMOVING','addMany','ck-ai-chat-history__item-actions','div','AI_CHAT_HISTORY_REMOVE','set','text','value','ck-ai-chat-history__item','bindTemplate','children','146aJptbp','ck-ai-chat-history__item-date','Enter','change:isEdit','fire','buttonView','label','isEdit','ck-ai-loader__text','actions','228MtzNmN','element','updateTitle','AI_CHAT_HISTORY_CANCEL','showConfirm','11480SahPao','_createAcceptEditButtonView','AI_CHAT_HISTORY_ACCEPT','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','highlightText','click','extendTemplate','_titleView','_createSpinnerView','ck-ai-chat-history__item-check-container','ck-confirm-view-cancel','span','1177rTKwfJ','AI_CHAT_HISTORY_REMOVE_CONFIRM','editConversationTitle','AI_CHAT_HISTORY_PIN_BUTTON','string','pinned','items','updateLoadingState','357012lICpwo','locale','ck-ai-chat-history__item--active','ck-ai-chat-history__item-title','1116AvgBgc','_createEditInputView','2547mRNXqX','_createCheckView','isVisible','removeConversation','setTemplate','execute','withText','selectConversation','setConversationPinned','then','mainContent','ck-ai-chat-history__item--edit'];_0x2e3a=function(){return _0x33f747;};return _0x2e3a();}import{escape as _0xaa5651}from'es-toolkit/compat';import{AISpinnerView as _0x1e26f0}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x1959e7}from'../../aicore/utils/common-translations.js';function _0x1a2e(_0x1812e7,_0x4ae0c6){const _0x2e3adb=_0x2e3a();return _0x1a2e=function(_0x1a2e62,_0x278c3c){_0x1a2e62=_0x1a2e62-0x1e8;let _0x1fa0bf=_0x2e3adb[_0x1a2e62];return _0x1fa0bf;},_0x1a2e(_0x1812e7,_0x4ae0c6);}export class AIChatHistoryListItemView extends _0x31a416(_0xf902d6){['id'];static [_0x24616a(0x21b)]={'remove':_0x24616a(0x224),'rename':_0x24616a(0x203),'pin':_0x24616a(0x221),'unpin':_0x24616a(0x216)};[_0x24616a(0x238)];[_0x24616a(0x1fe)];[_0x24616a(0x245)];constructor(_0xc0a2b6,_0x1f462a){const _0x4bf4db=_0x24616a;super(_0xc0a2b6);const _0x5d704d=this[_0x4bf4db(0x22d)];this[_0x4bf4db(0x229)](_0x4bf4db(0x236),!0x1),this[_0x4bf4db(0x229)](_0x4bf4db(0x1f6),!0x0),this[_0x4bf4db(0x229)](_0x4bf4db(0x1eb),!!_0x1f462a[_0x4bf4db(0x1eb)]),this[_0x4bf4db(0x229)](_0x4bf4db(0x20c),null),this['id']=_0x1f462a['id'];const {title:_0x444411,createdAt:_0x4f1fd3,active:_0x1e8f7f=!0x1}=_0x1f462a;this[_0x4bf4db(0x245)]=new _0x183bc7(),this[_0x4bf4db(0x245)][_0x4bf4db(0x22a)]=_0x444411,this[_0x4bf4db(0x245)][_0x4bf4db(0x244)]({'attributes':{'class':[_0x4bf4db(0x1f1)]}});const _0x21a9f1=this[_0x4bf4db(0x1f5)](),_0x15f58a=this[_0x4bf4db(0x205)](_0xc0a2b6),_0x227857=this[_0x4bf4db(0x214)](),_0x42c0b8=this[_0x4bf4db(0x1f3)](_0xc0a2b6,_0x444411),_0x21a786=this[_0x4bf4db(0x23f)](_0xc0a2b6,_0x42c0b8),_0x5807a6=this[_0x4bf4db(0x208)](_0xc0a2b6,_0x42c0b8);this[_0x4bf4db(0x238)]=this[_0x4bf4db(0x218)](),this[_0x4bf4db(0x1fe)]=this[_0x4bf4db(0x218)](),this[_0x4bf4db(0x1fe)][_0x4bf4db(0x20f)](this[_0x4bf4db(0x245)]),this[_0x4bf4db(0x238)][_0x4bf4db(0x20f)](_0x15f58a),this[_0x4bf4db(0x238)][_0x4bf4db(0x20f)](_0x227857),this['on'](_0x4bf4db(0x232),(_0x451f82,_0x16f7e2,_0x3eeae9)=>{const _0x38d277=_0x4bf4db;this[_0x38d277(0x238)][_0x38d277(0x210)](),this[_0x38d277(0x1fe)][_0x38d277(0x210)](),_0x3eeae9?(this[_0x38d277(0x238)][_0x38d277(0x20f)](_0x21a786),this[_0x38d277(0x238)][_0x38d277(0x20f)](_0x5807a6),this[_0x38d277(0x1fe)][_0x38d277(0x20f)](_0x42c0b8),_0x42c0b8[_0x38d277(0x23a)][_0x38d277(0x222)]()):(this[_0x38d277(0x238)][_0x38d277(0x20f)](_0x15f58a),this[_0x38d277(0x238)][_0x38d277(0x20f)](_0x227857),this[_0x38d277(0x1fe)][_0x38d277(0x20f)](this[_0x38d277(0x245)]));}),this[_0x4bf4db(0x1f8)]({'tag':'li','attributes':{'class':[_0x4bf4db(0x22c),_0x1e8f7f?_0x4bf4db(0x1f0):'',_0x5d704d['if'](_0x4bf4db(0x1f6),_0x4bf4db(0x212),_0x36788e=>!_0x36788e),_0x5d704d['if'](_0x4bf4db(0x236),_0x4bf4db(0x1ff))],'role':_0x4bf4db(0x202)},'children':[{'tag':_0x4bf4db(0x249),'attributes':{'class':[_0x4bf4db(0x247)]},'children':[{'tag':_0x4bf4db(0x227),'attributes':{'class':[_0x4bf4db(0x21a),_0x5d704d['if'](_0x4bf4db(0x20c),_0x4bf4db(0x212),_0x36e35f=>!!_0x36e35f)]},'children':_0x1e8f7f?[_0x21a9f1]:[]},{'tag':_0x4bf4db(0x227),'attributes':{'class':[_0x4bf4db(0x223),_0x5d704d['if'](_0x4bf4db(0x20c),_0x4bf4db(0x212),_0xc8492b=>!_0xc8492b)]},'children':[this[_0x4bf4db(0x246)]()]}]},{'tag':_0x4bf4db(0x227),'attributes':{'class':[_0x4bf4db(0x220)]},'children':[{'tag':_0x4bf4db(0x227),'attributes':{'class':[_0x4bf4db(0x213)]},'on':{'click':this[_0x4bf4db(0x22d)]['to'](_0x4bf4db(0x243))},'children':[{'tag':_0x4bf4db(0x227),'attributes':{'class':[_0x4bf4db(0x204)]},'children':[{'tag':_0x4bf4db(0x227),'attributes':{'class':[_0x4bf4db(0x1f1),_0x5d704d['if'](_0x4bf4db(0x20c),_0x4bf4db(0x212),_0x5865fb=>!!_0x5865fb)]},'children':this[_0x4bf4db(0x1fe)]},{'tag':_0x4bf4db(0x227),'attributes':{'class':[_0x4bf4db(0x237),_0x5d704d['if'](_0x4bf4db(0x20c),_0x4bf4db(0x212),_0xc42760=>!_0xc42760)]},'children':[{'text':_0x5d704d['to'](_0x4bf4db(0x20c),_0x5ab7f9=>_0x5ab7f9?_0x1959e7(this[_0x4bf4db(0x1ef)],AIChatHistoryListItemView[_0x4bf4db(0x21b)][_0x5ab7f9]):'')}]}]},{'tag':_0x4bf4db(0x249),'attributes':{'class':[_0x4bf4db(0x230)]},'children':[_0x4f1fd3]}]},{'tag':_0x4bf4db(0x227),'attributes':{'class':[_0x4bf4db(0x226)]},'children':this[_0x4bf4db(0x238)]}]}]}),this['on'](_0x4bf4db(0x243),()=>{const _0x47e09d=_0x4bf4db;this[_0x47e09d(0x236)]||this[_0x47e09d(0x233)](_0x47e09d(0x1fb),{'id':this['id']});});}[_0x24616a(0x23b)](_0x2d8c9a){const _0x55852e=_0x24616a;this[_0x55852e(0x245)][_0x55852e(0x22a)]=_0xaa5651(_0x2d8c9a);}[_0x24616a(0x1ed)](_0x1cd8f8,_0x122fe7){const _0x4f177a=_0x24616a;this[_0x4f177a(0x229)](_0x4f177a(0x20c),_0x122fe7?_0x1cd8f8:null);}[_0x24616a(0x1f5)](){const _0x3e249c=_0x24616a,_0x16e704=new _0x3b2897();return _0x16e704[_0x3e249c(0x229)]({'content':_0x5ed807}),_0x16e704;}[_0x24616a(0x205)](_0x317e61){const _0x513eca=_0x24616a,_0x1b84a6=new _0x11c0bd(_0x317e61);return _0x1b84a6[_0x513eca(0x229)]({'label':_0x1959e7(_0x317e61,_0x513eca(0x1e9)),'icon':_0x58f0a9,'withText':!0x1,'tooltip':!0x0}),_0x1b84a6[_0x513eca(0x21e)](_0x513eca(0x20a))['to'](this,_0x513eca(0x1eb)),_0x1b84a6['on'](_0x513eca(0x1f9),()=>{const _0x4a8071=_0x513eca,_0xd4cb31=!this[_0x4a8071(0x1eb)];this[_0x4a8071(0x233)](_0x4a8071(0x1fc),{'id':this['id'],'pinned':_0xd4cb31});}),_0x1b84a6;}[_0x24616a(0x214)](){const _0x314857=_0x24616a,_0x385fe1=_0x237abd(this[_0x314857(0x1ef)],_0x3c0695),_0x15a9ec=_0x385fe1[_0x314857(0x21f)][_0x314857(0x22e)];_0x385fe1[_0x314857(0x234)][_0x314857(0x229)]({'label':_0x1959e7(this[_0x314857(0x1ef)],_0x314857(0x241)),'icon':_0x5c5815}),_0x385fe1[_0x314857(0x21d)]='sw';const _0x5a4ece=new _0x11c0bd(this[_0x314857(0x1ef)]);_0x5a4ece[_0x314857(0x235)]=_0x1959e7(this[_0x314857(0x1ef)],_0x314857(0x217)),_0x5a4ece[_0x314857(0x1fa)]=!0x0,_0x5a4ece['on'](_0x314857(0x1f9),()=>{const _0x53149a=_0x314857;this[_0x53149a(0x236)]=!0x0;});const _0x2574b8=new _0x11c0bd(this[_0x314857(0x1ef)]);_0x2574b8[_0x314857(0x235)]=_0x1959e7(this[_0x314857(0x1ef)],_0x314857(0x228)),_0x2574b8[_0x314857(0x1fa)]=!0x0,_0x2574b8['on'](_0x314857(0x1f9),()=>{const _0x15f528=_0x314857;this[_0x15f528(0x23d)](_0x1959e7(this[_0x15f528(0x1ef)],_0x15f528(0x24b)),this[_0x15f528(0x23a)])[_0x15f528(0x1fd)](()=>{const _0x2ab318=_0x15f528;this[_0x2ab318(0x233)](_0x2ab318(0x1f7),{'id':this['id']});});});const _0x9179a6=new _0x534b52(this[_0x314857(0x1ef)]),_0x113c3e=new _0xf902d6(this[_0x314857(0x1ef)]);_0x113c3e[_0x314857(0x22e)][_0x314857(0x20f)](_0x5a4ece);const _0x8242ab=new _0xf902d6(this[_0x314857(0x1ef)]);return _0x8242ab[_0x314857(0x22e)][_0x314857(0x20f)](_0x2574b8),_0x9179a6[_0x314857(0x1ec)][_0x314857(0x225)]([_0x113c3e,_0x8242ab]),_0x15a9ec[_0x314857(0x20f)](_0x9179a6),_0x385fe1;}[_0x24616a(0x1f3)](_0x31f627,_0x1418a6){const _0x11b98f=_0x24616a,_0xba2155=new _0x13401b(_0x31f627),_0x5c110b=_0xba2155[_0x11b98f(0x22d)];return _0xba2155[_0x11b98f(0x22b)]=_0x1418a6,_0xba2155[_0x11b98f(0x244)]({'on':{'keydown':_0x5c110b['to'](_0x310438=>{const _0x29fc36=_0x11b98f;_0x29fc36(0x231)==_0x310438[_0x29fc36(0x21c)]&&this[_0x29fc36(0x211)](_0xba2155);})}}),_0xba2155;}[_0x24616a(0x23f)](_0x3761ef,_0x3eaaa6){const _0x18e58d=_0x24616a,_0x15bf18=new _0x11c0bd(_0x3761ef);return _0x15bf18[_0x18e58d(0x229)]({'icon':_0x5ed807,'withText':!0x1,'tooltip':_0x1959e7(_0x3761ef,_0x18e58d(0x240))}),_0x15bf18[_0x18e58d(0x244)]({'attributes':{'class':[_0x18e58d(0x200)]}}),_0x15bf18['on'](_0x18e58d(0x1f9),()=>{const _0x2ab1e4=_0x18e58d;this[_0x2ab1e4(0x211)](_0x3eaaa6);}),_0x15bf18;}[_0x24616a(0x211)](_0x52a198){const _0x63935c=_0x24616a,_0x2376f4=_0x52a198[_0x63935c(0x23a)][_0x63935c(0x22b)]||'';this[_0x63935c(0x245)][_0x63935c(0x22a)]=_0x2376f4,this[_0x63935c(0x236)]=!0x1,this[_0x63935c(0x233)](_0x63935c(0x1e8),{'id':this['id'],'title':_0x2376f4});}[_0x24616a(0x208)](_0x3437b4,_0x2ba6fd){const _0x646964=_0x24616a,_0x1f3042=new _0x11c0bd(_0x3437b4);return _0x1f3042[_0x646964(0x229)]({'icon':_0x5a8aa0,'withText':!0x1,'tooltip':_0x1959e7(_0x3437b4,_0x646964(0x23c))}),_0x1f3042[_0x646964(0x244)]({'attributes':{'class':[_0x646964(0x248)]}}),_0x1f3042['on'](_0x646964(0x1f9),()=>{const _0x49a787=_0x646964;this[_0x49a787(0x236)]=!0x1,_0x2ba6fd[_0x49a787(0x22b)]=this[_0x49a787(0x245)][_0x49a787(0x22a)]||'',this[_0x49a787(0x233)](_0x49a787(0x209));}),_0x1f3042;}[_0x24616a(0x246)](){const _0x3067b4=_0x24616a,_0x24b015=new _0x1e26f0(_0x3067b4(0x215));return _0x24b015[_0x3067b4(0x1f6)]=!0x0,_0x24b015;}[_0x24616a(0x219)](_0x36a8c4){const _0xdc5eb1=_0x24616a;return this[_0xdc5eb1(0x245)]&&_0xdc5eb1(0x1ea)==typeof this[_0xdc5eb1(0x245)][_0xdc5eb1(0x22a)]&&this[_0xdc5eb1(0x245)][_0xdc5eb1(0x22a)][_0xdc5eb1(0x20b)](_0x36a8c4)?{'title':!0x0}:null;}[_0x24616a(0x242)](_0x7a347e){const _0x1fd647=_0x24616a;this[_0x1fd647(0x245)][_0x1fd647(0x242)](_0x7a347e);}}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { ListItemView } from 'ckeditor5/src/ui.js';
|
|
6
|
+
import type { AIChatHistoryListItemView } from './aichathistorylistitemview.js';
|
|
7
|
+
export interface AIChatHistoryListViewConfig {
|
|
8
|
+
title: string;
|
|
9
|
+
items: Array<AIChatHistoryListItemView>;
|
|
10
|
+
}
|
|
11
|
+
export declare class AIChatHistoryListView extends ListItemView {
|
|
12
|
+
title: string;
|
|
13
|
+
itemsViews: Array<AIChatHistoryListItemView>;
|
|
14
|
+
isVisible: boolean;
|
|
15
|
+
constructor(locale: any, { title, items }: AIChatHistoryListViewConfig);
|
|
16
|
+
/**
|
|
17
|
+
* Filters the list items based on the given regular expression.
|
|
18
|
+
*/
|
|
19
|
+
filter(regExp: RegExp | null): {
|
|
20
|
+
resultsCount: number;
|
|
21
|
+
totalItemsCount: number;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Gets an item from the list by its ID.
|
|
25
|
+
*/
|
|
26
|
+
getItem(id: string): AIChatHistoryListItemView | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Removes an item from the list.
|
|
29
|
+
*/
|
|
30
|
+
removeItem(item: AIChatHistoryListItemView): void;
|
|
31
|
+
}
|
|
@@ -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 _0xd515(){const _0x351bc9=['length','find','126hdKdBg','set','9XZQhlv','bindTemplate','7274561rHvXft','itemsViews','isVisible','isMatching','757030UBlEuT','ck-ai-chat-history__section','filter','div','ck-hidden','_itemsListView','997100YEzYMy','splice','addMany','indexOf','highlightText','getItem','setTemplate','144152xjdwyT','removeItem','items','46277OzfmLe','remove','ck-ai-chat-history__section-title','4150068FDqNXW','1940XQEOaJ','524825ANloBO','title','30kahKMN'];_0xd515=function(){return _0x351bc9;};return _0xd515();}const _0x2029a8=_0x21a7;(function(_0x49e86b,_0x4bc4c6){const _0x211e8f=_0x21a7,_0x4baf27=_0x49e86b();while(!![]){try{const _0x4a4190=parseInt(_0x211e8f(0x1d1))/0x1+-parseInt(_0x211e8f(0x1ed))/0x2*(-parseInt(_0x211e8f(0x1e7))/0x3)+-parseInt(_0x211e8f(0x1de))/0x4+parseInt(_0x211e8f(0x1e0))/0x5*(-parseInt(_0x211e8f(0x1e2))/0x6)+-parseInt(_0x211e8f(0x1e9))/0x7+-parseInt(_0x211e8f(0x1d8))/0x8*(-parseInt(_0x211e8f(0x1e5))/0x9)+-parseInt(_0x211e8f(0x1df))/0xa*(-parseInt(_0x211e8f(0x1db))/0xb);if(_0x4a4190===_0x4bc4c6)break;else _0x4baf27['push'](_0x4baf27['shift']());}catch(_0x15b18b){_0x4baf27['push'](_0x4baf27['shift']());}}}(_0xd515,0x925d0));function _0x21a7(_0x2f8723,_0x324e0a){const _0xd515d0=_0xd515();return _0x21a7=function(_0x21a767,_0x4757de){_0x21a767=_0x21a767-0x1d0;let _0x5a7b68=_0xd515d0[_0x21a767];return _0x5a7b68;},_0x21a7(_0x2f8723,_0x324e0a);}import{ListItemView as _0x51f390,View as _0x5b009c,ListView as _0x134371}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x51f390{[_0x2029a8(0x1e1)];[_0x2029a8(0x1ea)];[_0x2029a8(0x1d0)];constructor(_0x5a38c4,{title:_0x376cea,items:_0x27d9bf}){const _0x1e6a2b=_0x2029a8;super(_0x5a38c4);const _0x387d01=this[_0x1e6a2b(0x1e8)];this[_0x1e6a2b(0x1e6)](_0x1e6a2b(0x1eb),!0x0),this[_0x1e6a2b(0x1e1)]=_0x376cea,this[_0x1e6a2b(0x1ea)]=_0x27d9bf;const _0x50d277=new _0x5b009c(_0x5a38c4);_0x50d277[_0x1e6a2b(0x1d7)]({'tag':_0x1e6a2b(0x1f0),'attributes':{'class':[_0x1e6a2b(0x1dd)]},'children':[this[_0x1e6a2b(0x1e1)]]}),this[_0x1e6a2b(0x1d0)]=new _0x134371(_0x5a38c4),this[_0x1e6a2b(0x1d0)][_0x1e6a2b(0x1da)][_0x1e6a2b(0x1d3)](this[_0x1e6a2b(0x1ea)]),this[_0x1e6a2b(0x1d7)]({'tag':'li','attributes':{'class':[_0x1e6a2b(0x1ee),_0x387d01['if'](_0x1e6a2b(0x1eb),_0x1e6a2b(0x1f1),_0x325b53=>!_0x325b53)]},'children':[_0x50d277,this[_0x1e6a2b(0x1d0)]]});}[_0x2029a8(0x1ef)](_0x4c9c99){const _0x460739=_0x2029a8,_0x134753=this[_0x460739(0x1ea)][_0x460739(0x1e3)];let _0xf93abe=0x0;for(const _0x1ed95b of this[_0x460739(0x1ea)]){if(_0x4c9c99){const _0x38fb55=_0x1ed95b[_0x460739(0x1ec)](_0x4c9c99);_0x1ed95b[_0x460739(0x1eb)]=!!_0x38fb55,_0x1ed95b[_0x460739(0x1d5)](_0x4c9c99);}else _0x1ed95b[_0x460739(0x1eb)]=!0x0,_0x1ed95b[_0x460739(0x1d5)](null);_0x1ed95b[_0x460739(0x1eb)]&&_0xf93abe++;}return this[_0x460739(0x1eb)]=_0xf93abe>0x0,{'resultsCount':_0xf93abe,'totalItemsCount':_0x134753};}[_0x2029a8(0x1d6)](_0x3580a7){const _0x180508=_0x2029a8;return this[_0x180508(0x1ea)][_0x180508(0x1e4)](_0x27ff2d=>_0x27ff2d['id']===_0x3580a7);}[_0x2029a8(0x1d9)](_0x575b71){const _0x16a0b7=_0x2029a8,_0x23e526=this[_0x16a0b7(0x1ea)][_0x16a0b7(0x1d4)](_0x575b71);-0x1!==_0x23e526&&(this[_0x16a0b7(0x1ea)][_0x16a0b7(0x1d2)](_0x23e526,0x1),this[_0x16a0b7(0x1d0)][_0x16a0b7(0x1da)][_0x16a0b7(0x1dc)](_0x575b71));}}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { ListView, type FilteredView } from 'ckeditor5/src/ui.js';
|
|
6
|
+
import type { AIChatHistoryListView } from './aichathistorylistview.js';
|
|
7
|
+
export declare class AIChatHistorySectionListView extends ListView implements FilteredView {
|
|
8
|
+
sections: Array<AIChatHistoryListView>;
|
|
9
|
+
constructor(locale: any, sections: Array<AIChatHistoryListView>);
|
|
10
|
+
/**
|
|
11
|
+
* Filters all sections based on the given regular expression.
|
|
12
|
+
*/
|
|
13
|
+
filter(regExp: RegExp | null): {
|
|
14
|
+
resultsCount: number;
|
|
15
|
+
totalItemsCount: number;
|
|
16
|
+
};
|
|
17
|
+
}
|