@ckeditor/ckeditor5-ai 46.1.1 → 47.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +18 -5
- package/README.md +10 -9
- package/build/ai.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/be.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/ckeditor5-metadata.json +24 -3
- package/dist/index-content.css +0 -1
- package/dist/index-editor.css +2648 -0
- package/dist/index.css +3047 -0
- package/dist/index.js +4 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +162 -1
- package/lang/translations/af.po +612 -0
- package/lang/translations/ar.po +628 -0
- package/lang/translations/ast.po +612 -0
- package/lang/translations/az.po +612 -0
- package/lang/translations/be.po +616 -0
- package/lang/translations/bg.po +612 -0
- package/lang/translations/bn.po +612 -0
- package/lang/translations/bs.po +616 -0
- package/lang/translations/ca.po +612 -0
- package/lang/translations/cs.po +616 -0
- package/lang/translations/da.po +612 -0
- package/lang/translations/de-ch.po +612 -0
- package/lang/translations/de.po +612 -0
- package/lang/translations/el.po +612 -0
- package/lang/translations/en-au.po +612 -0
- package/lang/translations/en-gb.po +612 -0
- package/lang/translations/en.po +612 -0
- package/lang/translations/eo.po +612 -0
- package/lang/translations/es-co.po +612 -0
- package/lang/translations/es.po +612 -0
- package/lang/translations/et.po +612 -0
- package/lang/translations/eu.po +612 -0
- package/lang/translations/fa.po +608 -0
- package/lang/translations/fi.po +612 -0
- package/lang/translations/fr.po +612 -0
- package/lang/translations/gl.po +612 -0
- package/lang/translations/gu.po +612 -0
- package/lang/translations/he.po +612 -0
- package/lang/translations/hi.po +612 -0
- package/lang/translations/hr.po +616 -0
- package/lang/translations/hu.po +612 -0
- package/lang/translations/hy.po +612 -0
- package/lang/translations/id.po +608 -0
- package/lang/translations/it.po +612 -0
- package/lang/translations/ja.po +608 -0
- package/lang/translations/jv.po +612 -0
- package/lang/translations/kk.po +612 -0
- package/lang/translations/km.po +608 -0
- package/lang/translations/kn.po +612 -0
- package/lang/translations/ko.po +608 -0
- package/lang/translations/ku.po +612 -0
- package/lang/translations/lt.po +616 -0
- package/lang/translations/lv.po +616 -0
- package/lang/translations/ms.po +608 -0
- package/lang/translations/nb.po +612 -0
- package/lang/translations/ne.po +612 -0
- package/lang/translations/nl.po +612 -0
- package/lang/translations/no.po +612 -0
- package/lang/translations/oc.po +612 -0
- package/lang/translations/pl.po +616 -0
- package/lang/translations/pt-br.po +612 -0
- package/lang/translations/pt.po +612 -0
- package/lang/translations/ro.po +616 -0
- package/lang/translations/ru.po +616 -0
- package/lang/translations/si.po +612 -0
- package/lang/translations/sk.po +616 -0
- package/lang/translations/sl.po +620 -0
- package/lang/translations/sq.po +612 -0
- package/lang/translations/sr-latn.po +616 -0
- package/lang/translations/sr.po +616 -0
- package/lang/translations/sv.po +612 -0
- package/lang/translations/th.po +608 -0
- package/lang/translations/ti.po +612 -0
- package/lang/translations/tk.po +612 -0
- package/lang/translations/tr.po +612 -0
- package/lang/translations/tt.po +608 -0
- package/lang/translations/ug.po +608 -0
- package/lang/translations/uk.po +616 -0
- package/lang/translations/ur.po +612 -0
- package/lang/translations/uz.po +612 -0
- package/lang/translations/vi.po +608 -0
- package/lang/translations/zh-cn.po +608 -0
- package/lang/translations/zh.po +608 -0
- package/package.json +23 -11
- package/src/aiactions/aiactions.d.ts +48 -0
- package/src/aiactions/aiactions.js +23 -0
- package/src/aiactions/model/aiactionsinteraction.d.ts +48 -0
- package/src/aiactions/model/aiactionsinteraction.js +23 -0
- package/src/aiactions/model/aiactionsreply.d.ts +15 -0
- package/src/aiactions/model/aiactionsreply.js +23 -0
- package/src/{adapters → aiassistant/adapters}/aiadapter.d.ts +1 -1
- package/src/aiassistant/adapters/aiadapter.js +23 -0
- package/src/{adapters → aiassistant/adapters}/aitextadapter.d.ts +9 -9
- package/src/aiassistant/adapters/aitextadapter.js +23 -0
- package/src/{adapters → aiassistant/adapters}/awstextadapter.d.ts +36 -23
- package/src/aiassistant/adapters/awstextadapter.js +23 -0
- package/src/{adapters → aiassistant/adapters}/openaitextadapter.d.ts +38 -25
- package/src/aiassistant/adapters/openaitextadapter.js +23 -0
- package/src/{aiassistant.d.ts → aiassistant/aiassistant.d.ts} +54 -13
- package/src/aiassistant/aiassistant.js +23 -0
- package/src/aiassistant/aiassistantediting.js +23 -0
- package/src/{aiassistantui.d.ts → aiassistant/aiassistantui.d.ts} +4 -4
- package/src/aiassistant/aiassistantui.js +23 -0
- package/src/aiassistant/legacyerrors.js +23 -0
- package/src/{ui → aiassistant/ui}/aiassistantcontroller.d.ts +5 -4
- package/src/aiassistant/ui/aiassistantcontroller.js +24 -0
- package/src/{ui → aiassistant/ui}/form/aiformcontentarea.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +23 -0
- package/src/aiassistant/ui/form/aiformerrorview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aiformpromptview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aiformtoolbarview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aiformview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aihistorylistitemview.d.ts +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aihistorylistview.d.ts +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/prompthistory.d.ts +3 -0
- package/src/aiassistant/ui/form/prompthistory.js +23 -0
- package/src/{ui → aiassistant/ui}/showaiassistantcommand.d.ts +2 -2
- package/src/aiassistant/ui/showaiassistantcommand.js +23 -0
- package/src/{utils → aiassistant/utils}/common-translations.d.ts +1 -1
- package/src/{utils → aiassistant/utils}/common-translations.js +1 -1
- package/src/{utils → aiassistant/utils}/normalizecommandsconfig.d.ts +2 -2
- package/src/{utils → aiassistant/utils}/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.d.ts +72 -0
- package/src/aiballoon/aiballoon.js +23 -0
- package/src/aiballoon/ui/aiballoondisclaimerview.d.ts +17 -0
- package/src/aiballoon/ui/aiballoondisclaimerview.js +23 -0
- package/src/aiballoon/ui/aiballoontoolbarview.d.ts +31 -0
- package/src/aiballoon/ui/aiballoontoolbarview.js +23 -0
- package/src/aiballoon/ui/aiballoonview.d.ts +109 -0
- package/src/aiballoon/ui/aiballoonview.js +23 -0
- package/src/aichat/aichat.d.ts +79 -0
- package/src/aichat/aichat.js +23 -0
- package/src/aichat/aichatcontroller.d.ts +68 -0
- package/src/aichat/aichatcontroller.js +23 -0
- package/src/aichat/aichatui.d.ts +297 -0
- package/src/aichat/aichatui.js +23 -0
- package/src/aichat/model/aichatcontext.d.ts +360 -0
- package/src/aichat/model/aichatcontext.js +23 -0
- package/src/aichat/model/aichatconversation.d.ts +270 -0
- package/src/aichat/model/aichatconversation.js +23 -0
- package/src/aichat/model/aichatinteraction.d.ts +46 -0
- package/src/aichat/model/aichatinteraction.js +23 -0
- package/src/aichat/model/aichatmodels.d.ts +77 -0
- package/src/aichat/model/aichatmodels.js +23 -0
- package/src/aichat/ui/aichatcontrolsview.d.ts +98 -0
- package/src/aichat/ui/aichatcontrolsview.js +23 -0
- package/src/aichat/ui/aichatfeedview.d.ts +114 -0
- package/src/aichat/ui/aichatfeedview.js +23 -0
- package/src/aichat/ui/aichatheaderview.d.ts +29 -0
- package/src/aichat/ui/aichatheaderview.js +23 -0
- package/src/aichat/ui/aichatview.d.ts +37 -0
- package/src/aichat/ui/aichatview.js +23 -0
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.d.ts +71 -0
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +23 -0
- package/src/aichat/ui/controls/aichatcontextitembuttonview.d.ts +46 -0
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +23 -0
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.d.ts +89 -0
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +23 -0
- package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +105 -0
- package/src/aichat/ui/controls/aichatcontextpanelview.js +23 -0
- package/src/aichat/ui/controls/aichatcontrolsloaderview.d.ts +12 -0
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +23 -0
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.d.ts +89 -0
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +23 -0
- package/src/aichat/ui/controls/aichatpromptinputview.d.ts +44 -0
- package/src/aichat/ui/controls/aichatpromptinputview.js +23 -0
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.d.ts +17 -0
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.d.ts +61 -0
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +100 -0
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourceslistview.d.ts +49 -0
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.d.ts +61 -0
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcesview.d.ts +54 -0
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.d.ts +27 -0
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +23 -0
- package/src/aichat/ui/feed/aichatfeederroritemview.d.ts +39 -0
- package/src/aichat/ui/feed/aichatfeederroritemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +29 -0
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +23 -0
- package/src/aichat/ui/feed/aichatfeeditemview.d.ts +46 -0
- package/src/aichat/ui/feed/aichatfeeditemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedreplyitemview.d.ts +46 -0
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +74 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +74 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedusermessageitem.d.ts +40 -0
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +23 -0
- package/src/aichat/utils/eventnames.d.ts +5 -0
- package/src/aichat/utils/eventnames.js +23 -0
- package/src/aichat/utils/promisequeue.d.ts +32 -0
- package/src/aichat/utils/promisequeue.js +23 -0
- package/src/aichat/utils/scrollmanager.d.ts +23 -0
- package/src/aichat/utils/scrollmanager.js +23 -0
- package/src/aichathistory/aichathistory.d.ts +30 -0
- package/src/aichathistory/aichathistory.js +23 -0
- package/src/aichathistory/aichathistorycontroller.d.ts +40 -0
- package/src/aichathistory/aichathistorycontroller.js +23 -0
- package/src/aichathistory/aichathistoryui.d.ts +112 -0
- package/src/aichathistory/aichathistoryui.js +23 -0
- package/src/aichathistory/model/aichathistoryconversations.d.ts +114 -0
- package/src/aichathistory/model/aichathistoryconversations.js +23 -0
- package/src/aichathistory/model/aichathistoryitem.d.ts +59 -0
- package/src/aichathistory/model/aichathistoryitem.js +23 -0
- package/src/aichathistory/ui/aichathistorylistitemview.d.ts +42 -0
- package/src/aichathistory/ui/aichathistorylistitemview.js +23 -0
- package/src/aichathistory/ui/aichathistorylistview.d.ts +31 -0
- package/src/aichathistory/ui/aichathistorylistview.js +23 -0
- package/src/aichathistory/ui/aichathistorysectionlistview.d.ts +17 -0
- package/src/aichathistory/ui/aichathistorysectionlistview.js +23 -0
- package/src/aichathistory/ui/aichathistoryview.d.ts +41 -0
- package/src/aichathistory/ui/aichathistoryview.js +23 -0
- package/src/aiconfig.d.ts +82 -31
- package/src/aicore/aiconnector.d.ts +302 -0
- package/src/aicore/aiconnector.js +23 -0
- package/src/aicore/aiediting.d.ts +61 -0
- package/src/aicore/aiediting.js +23 -0
- package/src/aicore/model/aicapabilities.d.ts +55 -0
- package/src/aicore/model/aicapabilities.js +23 -0
- package/src/aicore/model/aicontext.d.ts +53 -0
- package/src/aicore/model/aicontext.js +23 -0
- package/src/aicore/model/aiinteraction.d.ts +135 -0
- package/src/aicore/model/aiinteraction.js +23 -0
- package/src/aicore/model/aireply.d.ts +178 -0
- package/src/aicore/model/aireply.js +23 -0
- package/src/aicore/pipeline/airesponseapplier.d.ts +291 -0
- package/src/aicore/pipeline/airesponseapplier.js +24 -0
- package/src/aicore/pipeline/airesponseparser.d.ts +27 -0
- package/src/aicore/pipeline/airesponseparser.js +24 -0
- package/src/aicore/ui/aidisclaimerview.d.ts +17 -0
- package/src/aicore/ui/aidisclaimerview.js +23 -0
- package/src/aicore/ui/aiskeleton.d.ts +37 -0
- package/src/aicore/ui/aiskeleton.js +23 -0
- package/src/aicore/ui/aispinner.d.ts +14 -0
- package/src/aicore/ui/aispinner.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.d.ts +62 -0
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +38 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +80 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +39 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.d.ts +39 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +23 -0
- package/src/aicore/utils/common-translations.d.ts +9 -0
- package/src/aicore/utils/common-translations.js +23 -0
- package/src/aicore/utils/createresizebutton.d.ts +12 -0
- package/src/aicore/utils/createresizebutton.js +23 -0
- package/src/aicore/utils/documentposition.d.ts +41 -0
- package/src/aicore/utils/documentposition.js +23 -0
- package/src/aicore/utils/documentrange.d.ts +46 -0
- package/src/aicore/utils/documentrange.js +23 -0
- package/src/aicore/utils/eventnames.d.ts +9 -0
- package/src/aicore/utils/eventnames.js +23 -0
- package/src/aicore/utils/geteditorfromcontext.d.ts +6 -0
- package/src/aicore/utils/geteditorfromcontext.js +23 -0
- package/src/aicore/utils/getoperationsfromreply.d.ts +21 -0
- package/src/aicore/utils/getoperationsfromreply.js +23 -0
- package/src/aicore/utils/getsuggestionpartsfromreply.d.ts +19 -0
- package/src/aicore/utils/getsuggestionpartsfromreply.js +23 -0
- package/src/aicore/utils/htmlparser.d.ts +35 -0
- package/src/aicore/utils/htmlparser.js +23 -0
- package/src/aicore/utils/htmlstreamer.d.ts +123 -0
- package/src/aicore/utils/htmlstreamer.js +23 -0
- package/src/aiquickactions/aiquickactions.d.ts +41 -0
- package/src/aiquickactions/aiquickactions.js +23 -0
- package/src/aiquickactions/aiquickactionscommand.d.ts +12 -0
- package/src/aiquickactions/aiquickactionscommand.js +23 -0
- package/src/aiquickactions/aiquickactionsediting.d.ts +23 -0
- package/src/aiquickactions/aiquickactionsediting.js +23 -0
- package/src/aiquickactions/aiquickactionsui.d.ts +150 -0
- package/src/aiquickactions/aiquickactionsui.js +23 -0
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +30 -0
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +23 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +45 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +23 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +45 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +23 -0
- package/src/aiquickactions/utils/common-translations.d.ts +9 -0
- package/src/aiquickactions/utils/common-translations.js +23 -0
- package/src/aireviewmode/aireviewmode.d.ts +30 -0
- package/src/aireviewmode/aireviewmode.js +23 -0
- package/src/aireviewmode/aireviewmodecontroller.d.ts +32 -0
- package/src/aireviewmode/aireviewmodecontroller.js +23 -0
- package/src/aireviewmode/aireviewmodeediting.d.ts +129 -0
- package/src/aireviewmode/aireviewmodeediting.js +23 -0
- package/src/aireviewmode/aireviewmodeui.d.ts +73 -0
- package/src/aireviewmode/aireviewmodeui.js +23 -0
- package/src/aireviewmode/model/aireviewcheck.d.ts +60 -0
- package/src/aireviewmode/model/aireviewcheck.js +23 -0
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +17 -0
- package/src/aireviewmode/model/aireviewcheckcustom.js +23 -0
- package/src/aireviewmode/model/aireviewchecklist.d.ts +31 -0
- package/src/aireviewmode/model/aireviewchecklist.js +23 -0
- package/src/aireviewmode/model/aireviewcheckresult.d.ts +39 -0
- package/src/aireviewmode/model/aireviewcheckresult.js +23 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +42 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.js +23 -0
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +101 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +23 -0
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +18 -0
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +23 -0
- package/src/aireviewmode/model/aireviewmodels.d.ts +26 -0
- package/src/aireviewmode/model/aireviewmodels.js +23 -0
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +14 -0
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +23 -0
- package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +29 -0
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +46 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +19 -0
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.d.ts +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +80 -0
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +45 -0
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +18 -0
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodeview.d.ts +42 -0
- package/src/aireviewmode/ui/aireviewmodeview.js +23 -0
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +16 -0
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +23 -0
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +20 -0
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +23 -0
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +16 -0
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +23 -0
- package/src/aireviewmode/utils/common-translations.d.ts +9 -0
- package/src/aireviewmode/utils/common-translations.js +23 -0
- package/src/aitabs/aitabs.d.ts +92 -0
- package/src/aitabs/aitabs.js +23 -0
- package/src/aitabs/aitabsmainview.d.ts +45 -0
- package/src/aitabs/aitabsmainview.js +23 -0
- package/src/aitabs/tabs/aitabsview.d.ts +147 -0
- package/src/aitabs/tabs/aitabsview.js +23 -0
- package/src/aitabs/tabs/tabbuttonview.d.ts +47 -0
- package/src/aitabs/tabs/tabbuttonview.js +23 -0
- package/src/aitabs/tabs/tabpanelview.d.ts +44 -0
- package/src/aitabs/tabs/tabpanelview.js +23 -0
- package/src/augmentation.d.ts +22 -6
- package/src/index.d.ts +40 -9
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +207 -0
- package/theme/aichat/aichat-controls/aichat-context-chip.css +139 -0
- package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +194 -0
- package/theme/aichat/aichat-controls/aichat-context-controls.css +46 -0
- package/theme/aichat/aichat-controls/aichat-controls-button.css +74 -0
- package/theme/aichat/aichat-controls/aichat-controls-loader.css +93 -0
- package/theme/aichat/aichat-controls/prompt-capabilities.css +46 -0
- package/theme/aichat/aichat-controls/prompt-input.css +55 -0
- package/theme/aichat/aichat-controls.css +154 -0
- package/theme/aichat/aichat.css +68 -0
- package/theme/aichat/aichatfeed.css +376 -0
- package/theme/aichat/aichathistory.css +235 -0
- package/theme/aichat/aiminitoolbar.css +94 -0
- package/theme/aichat/aisuggestioncontainer.css +203 -0
- package/theme/aiquickactions/aiquickactions.css +43 -0
- package/theme/aireviewmode/aireviewmode-check-list.css +154 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +202 -0
- package/theme/aireviewmode/aireviewmode-review-completed.css +52 -0
- package/theme/aireviewmode/aireviewmode.css +73 -0
- package/theme/aitabs/aitabsview.css +64 -0
- package/theme/aitabs/tabs/tabbuttonview.css +74 -0
- package/theme/aitabs/tabs/tabsview.css +78 -0
- package/theme/common/aibutton.css +145 -0
- package/theme/common/aichaterror.css +61 -0
- package/theme/common/aidisclaimer.css +29 -0
- package/theme/common/aiheader.css +88 -0
- package/theme/common/aiskeleton.css +54 -0
- package/theme/common/aispinner.css +58 -0
- package/src/adapters/aiadapter.js +0 -23
- package/src/adapters/aitextadapter.js +0 -23
- package/src/adapters/awstextadapter.js +0 -23
- package/src/adapters/openaitextadapter.js +0 -23
- package/src/aiassistant.js +0 -23
- package/src/aiassistantediting.js +0 -23
- package/src/aiassistantui.js +0 -23
- package/src/legacyerrors.js +0 -23
- package/src/ui/aiassistantcontroller.js +0 -24
- package/src/ui/form/aiformcontentarea.js +0 -23
- package/src/ui/form/aiformerrorview.js +0 -23
- package/src/ui/form/aiformpromptview.js +0 -23
- package/src/ui/form/aiformtoolbarview.js +0 -23
- package/src/ui/form/aiformview.js +0 -23
- package/src/ui/form/aihistorylistitemview.js +0 -23
- package/src/ui/form/aihistorylistview.js +0 -23
- package/src/ui/form/prompthistory.js +0 -23
- package/src/ui/showaiassistantcommand.js +0 -23
- /package/src/{aiassistantediting.d.ts → aiassistant/aiassistantediting.d.ts} +0 -0
- /package/src/{legacyerrors.d.ts → aiassistant/legacyerrors.d.ts} +0 -0
- /package/src/{ui → aiassistant/ui}/form/aiformerrorview.d.ts +0 -0
- /package/theme/{ai-dropdown.css → aiassistant/ai-dropdown.css} +0 -0
- /package/theme/{ai-form.css → aiassistant/ai-form.css} +0 -0
- /package/theme/{ai.css → aiassistant/ai.css} +0 -0
|
@@ -0,0 +1,62 @@
|
|
|
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/aicore/ui/aiminitoolbarview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { ToolbarView, type ViewCollection } from 'ckeditor5/src/ui.js';
|
|
10
|
+
/**
|
|
11
|
+
* Configuration interface for AIMiniToolbarView buttons.
|
|
12
|
+
*/
|
|
13
|
+
export interface AIMiniToolbarConfig {
|
|
14
|
+
/**
|
|
15
|
+
* Whether to show the copy button.
|
|
16
|
+
*/
|
|
17
|
+
showCopy?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Configuration for the show changes button. If undefined, the button won't be shown.
|
|
20
|
+
*/
|
|
21
|
+
showChanges?: 'icon' | 'full';
|
|
22
|
+
/**
|
|
23
|
+
* Whether to show the like button.
|
|
24
|
+
*/
|
|
25
|
+
showLike?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Whether to show the dislike button.
|
|
28
|
+
*/
|
|
29
|
+
showDislike?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Custom views to add to the toolbar as the last items.
|
|
32
|
+
*/
|
|
33
|
+
customView?: ViewCollection;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* A view for the mini toolbar in the AI suggestion preview.
|
|
37
|
+
*
|
|
38
|
+
* It hosts the copy, like and dislike buttons.
|
|
39
|
+
*/
|
|
40
|
+
export declare class AIMiniToolbarView extends ToolbarView {
|
|
41
|
+
/**
|
|
42
|
+
* Observable property that indicates whether the toolbar is in loading state.
|
|
43
|
+
* When true, all buttons should be disabled.
|
|
44
|
+
*/
|
|
45
|
+
isLoading: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* @inheritDoc
|
|
48
|
+
*/
|
|
49
|
+
constructor(locale: Locale, config: AIMiniToolbarConfig | undefined, showDiff: boolean);
|
|
50
|
+
}
|
|
51
|
+
export type AIMiniToolbarLikeEvent = {
|
|
52
|
+
name: 'like';
|
|
53
|
+
args: [];
|
|
54
|
+
};
|
|
55
|
+
export type AIMiniToolbarDislikeEvent = {
|
|
56
|
+
name: 'dislike';
|
|
57
|
+
args: [];
|
|
58
|
+
};
|
|
59
|
+
export type AIMiniToolbarToggleShowChangesEvent = {
|
|
60
|
+
name: 'toggleShowChanges';
|
|
61
|
+
args: [isOn: boolean];
|
|
62
|
+
};
|
|
@@ -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 _0x59b2f3=_0x2a22;(function(_0x1e01b2,_0x82ff3b){const _0x1d32ae=_0x2a22,_0x27338e=_0x1e01b2();while(!![]){try{const _0xd48e71=-parseInt(_0x1d32ae(0x120))/0x1*(-parseInt(_0x1d32ae(0x107))/0x2)+parseInt(_0x1d32ae(0x108))/0x3+parseInt(_0x1d32ae(0xf4))/0x4+-parseInt(_0x1d32ae(0x110))/0x5+parseInt(_0x1d32ae(0x106))/0x6+parseInt(_0x1d32ae(0x10f))/0x7+-parseInt(_0x1d32ae(0xf7))/0x8*(parseInt(_0x1d32ae(0xff))/0x9);if(_0xd48e71===_0x82ff3b)break;else _0x27338e['push'](_0x27338e['shift']());}catch(_0x3fe054){_0x27338e['push'](_0x27338e['shift']());}}}(_0x3b56,0x2effb));import{ButtonView as _0x2ab2e4,IconView as _0x4078a0,ToolbarView as _0x9dac30}from'ckeditor5/src/ui.js';import{IconCheck as _0x395b0c,IconCopy as _0x4fc28c,IconShowChangesOff as _0x4d52ee,IconShowChangesOn as _0x13ee2e,IconThumbDown as _0x853116,IconThumbUp as _0x593d86}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x482a2c}from'../../utils/common-translations.js';function _0x2a22(_0x53e492,_0x32c4ee){const _0x3b56be=_0x3b56();return _0x2a22=function(_0x2a22a8,_0x22b847){_0x2a22a8=_0x2a22a8-0xf1;let _0x543e0d=_0x3b56be[_0x2a22a8];return _0x543e0d;},_0x2a22(_0x53e492,_0x32c4ee);}export class AIMiniToolbarView extends _0x9dac30{[_0x59b2f3(0xfa)];[_0x59b2f3(0x114)];[_0x59b2f3(0x11d)];[_0x59b2f3(0x103)];[_0x59b2f3(0x112)];constructor(_0x21995b,_0x2fdf4={},_0x19c4e1){const _0x2a7b07=_0x59b2f3;super(_0x21995b),this[_0x2a7b07(0x119)](_0x2a7b07(0x118),!0x1),this[_0x2a7b07(0x112)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x2fdf4};const _0x1b406f=!(this[_0x2a7b07(0x112)][_0x2a7b07(0x117)]||this[_0x2a7b07(0x112)][_0x2a7b07(0x122)]||this[_0x2a7b07(0x112)][_0x2a7b07(0x116)]||this[_0x2a7b07(0x112)][_0x2a7b07(0xf8)]||this[_0x2a7b07(0x112)][_0x2a7b07(0x11e)]?.[_0x2a7b07(0xfb)]);this[_0x2a7b07(0x10c)]=_0x1b406f?_0x2a7b07(0x100):_0x2a7b07(0xf1),this[_0x2a7b07(0x112)][_0x2a7b07(0x117)]&&(this[_0x2a7b07(0xfd)](),this[_0x2a7b07(0xfe)][_0x2a7b07(0x10b)](this[_0x2a7b07(0xfa)])),this[_0x2a7b07(0x112)][_0x2a7b07(0x122)]&&(this[_0x2a7b07(0x105)](_0x19c4e1),this[_0x2a7b07(0xfe)][_0x2a7b07(0x10b)](this[_0x2a7b07(0x103)])),this[_0x2a7b07(0x11c)](),this[_0x2a7b07(0x112)][_0x2a7b07(0x116)]&&this[_0x2a7b07(0xfe)][_0x2a7b07(0x10b)](this[_0x2a7b07(0x114)]),this[_0x2a7b07(0x112)][_0x2a7b07(0xf8)]&&this[_0x2a7b07(0xfe)][_0x2a7b07(0x10b)](this[_0x2a7b07(0x11d)]),this[_0x2a7b07(0x112)][_0x2a7b07(0x11e)]&&this[_0x2a7b07(0xfe)][_0x2a7b07(0xf2)](this[_0x2a7b07(0x112)][_0x2a7b07(0x11e)]);}[_0x59b2f3(0x11c)](){const _0x529741=_0x59b2f3;this[_0x529741(0x114)]=new _0x2ab2e4(this[_0x529741(0x101)]),this[_0x529741(0x114)][_0x529741(0x119)]({'icon':_0x593d86,'label':_0x482a2c(this[_0x529741(0x101)],_0x529741(0x10d)),'tooltip':!0x0}),this[_0x529741(0x114)][_0x529741(0xf5)](_0x529741(0x10e))['to'](this,_0x529741(0x118),_0x293d59=>!_0x293d59),this[_0x529741(0x114)]['on'](_0x529741(0x111),()=>{const _0x50be89=_0x529741;this[_0x50be89(0x10a)](_0x50be89(0x113));}),this[_0x529741(0x11d)]=new _0x2ab2e4(this[_0x529741(0x101)]),this[_0x529741(0x11d)][_0x529741(0x119)]({'icon':_0x853116,'label':_0x482a2c(this[_0x529741(0x101)],_0x529741(0x104)),'tooltip':!0x0}),this[_0x529741(0x11d)][_0x529741(0xf5)](_0x529741(0x10e))['to'](this,_0x529741(0x118),_0x14918f=>!_0x14918f),this[_0x529741(0x11d)]['on'](_0x529741(0x111),()=>{const _0x89fc6a=_0x529741;this[_0x89fc6a(0x10a)](_0x89fc6a(0x109));});}[_0x59b2f3(0xfd)](){const _0xc6e5d5=_0x59b2f3;this[_0xc6e5d5(0xfa)]=new _0x2ab2e4(this[_0xc6e5d5(0x101)]),this[_0xc6e5d5(0xfa)][_0xc6e5d5(0x119)]({'icon':_0x4fc28c,'label':_0x482a2c(this[_0xc6e5d5(0x101)],_0xc6e5d5(0x115)),'class':_0xc6e5d5(0xf9),'tooltip':!0x0}),this[_0xc6e5d5(0xfa)][_0xc6e5d5(0xf5)](_0xc6e5d5(0x10e))['to'](this,_0xc6e5d5(0x118),_0x5541cd=>!_0x5541cd);const _0x3fb725=new _0x4078a0();_0x3fb725[_0xc6e5d5(0x119)]({'content':_0x395b0c}),_0x3fb725[_0xc6e5d5(0x11b)]({'attributes':{'class':[_0xc6e5d5(0xf6)]}}),this[_0xc6e5d5(0xfa)]['on'](_0xc6e5d5(0x111),()=>{const _0x5da571=_0xc6e5d5;this[_0x5da571(0xfa)][_0x5da571(0x10c)]=_0x5da571(0x11a),setTimeout(()=>{const _0x2d3adc=_0x5da571;this[_0x2d3adc(0xfa)][_0x2d3adc(0x10c)]=_0x2d3adc(0xf9);},0x7d0);}),this[_0xc6e5d5(0xfa)][_0xc6e5d5(0x11f)][_0xc6e5d5(0x10b)](_0x3fb725);}[_0x59b2f3(0x105)](_0x594142){const _0x193dd1=_0x59b2f3;this[_0x193dd1(0x103)]=new _0x2ab2e4(this[_0x193dd1(0x101)]),this[_0x193dd1(0x103)][_0x193dd1(0x119)]({'icon':_0x4d52ee,'label':_0x482a2c(this[_0x193dd1(0x101)],_0x193dd1(0xfc)),'withText':_0x193dd1(0xf3)==this[_0x193dd1(0x112)][_0x193dd1(0x122)],'isOn':_0x594142}),this[_0x193dd1(0x103)][_0x193dd1(0xf5)](_0x193dd1(0x10e))['to'](this,_0x193dd1(0x118),_0x4a4d7e=>!_0x4a4d7e),this[_0x193dd1(0x103)]['on'](_0x193dd1(0x111),()=>{const _0x4e1942=_0x193dd1,_0x109181=!this[_0x4e1942(0x103)][_0x4e1942(0x121)];this[_0x4e1942(0x103)][_0x4e1942(0x119)]({'isOn':_0x109181,'icon':_0x109181?_0x13ee2e:_0x4d52ee}),this[_0x4e1942(0x10a)](_0x4e1942(0x102),_0x109181);});}}function _0x3b56(){const _0x5740c5=['showCopy','isLoading','set','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','extendTemplate','_setupRatingButtons','dislikeButton','customView','children','151705OrfZKr','isOn','showChanges','ck-ai-mini-toolbar','addMany','full','731640DcvzLx','bind','ck-ai-mini-toolbar-copy-button__check-mark','2699888zcpfUU','showDislike','ck-ai-mini-toolbar-copy-button','copyButton','length','AI_SUGGESTION_BUTTON_SHOW_CHANGES','_setupCopyButton','items','9zKgtIT','ck-ai-mini-toolbar\x20ck-hidden','locale','toggleShowChanges','showChangesButton','AI_MINI_TOOLBAR_DISLIKE','_setupShowChangesButton','2122416qZJcMm','2wQmJxS','136749Xxtsee','dislike','fire','add','class','AI_MINI_TOOLBAR_LIKE','isEnabled','1081577FUqKiH','1792260lwFGss','execute','_config','like','likeButton','AI_MINI_TOOLBAR_COPY','showLike'];_0x3b56=function(){return _0x5740c5;};return _0x3b56();}
|
|
@@ -0,0 +1,38 @@
|
|
|
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/aicore/ui/suggestioncontainer/aisuggestionbodyview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import { AISuggestionBodyViewContentPartView, type AIContentRenderingStrategy } from './aisuggestioncontentpartview.js';
|
|
11
|
+
import { type AISuggestionContentPartDefinition } from '../../utils/getsuggestionpartsfromreply.js';
|
|
12
|
+
/**
|
|
13
|
+
* The inner view of the suggestion container that displays the content of the suggestion (or multiple parts of it).
|
|
14
|
+
*/
|
|
15
|
+
export declare class AISuggestionBodyView extends View<HTMLDivElement> {
|
|
16
|
+
hasPendingParts: boolean;
|
|
17
|
+
constructor(locale: Locale, { areActionsDisabled }: {
|
|
18
|
+
areActionsDisabled: boolean;
|
|
19
|
+
});
|
|
20
|
+
get partsCount(): number;
|
|
21
|
+
updateContentParts({ parts, renderingStrategy, abortSignal }: {
|
|
22
|
+
parts: Array<AISuggestionContentPartDefinition>;
|
|
23
|
+
renderingStrategy: AIContentRenderingStrategy;
|
|
24
|
+
abortSignal?: AbortSignal;
|
|
25
|
+
}): Promise<void>;
|
|
26
|
+
updatePartState(index: number, state: string): void;
|
|
27
|
+
getPartView(index: number): AISuggestionBodyViewContentPartView | null;
|
|
28
|
+
/**
|
|
29
|
+
* Marks the body view as done.
|
|
30
|
+
*
|
|
31
|
+
* Updates the visibility of the empty parts warning that will show up if some parts in the suggestion are empty.
|
|
32
|
+
*/
|
|
33
|
+
markAsDone(): void;
|
|
34
|
+
/**
|
|
35
|
+
* Specifies whether the suggestion body view has some parts that have any content that can be browsed or accepted.
|
|
36
|
+
*/
|
|
37
|
+
get hasNonEmptyParts(): boolean;
|
|
38
|
+
}
|
|
@@ -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 _0x9d064e=_0x1379;(function(_0x3ac17f,_0x1f4f8e){const _0x41ce8e=_0x1379,_0xdb6bb9=_0x3ac17f();while(!![]){try{const _0x2a9a4a=parseInt(_0x41ce8e(0xf4))/0x1*(-parseInt(_0x41ce8e(0xec))/0x2)+-parseInt(_0x41ce8e(0xf6))/0x3+parseInt(_0x41ce8e(0xcd))/0x4+-parseInt(_0x41ce8e(0xf3))/0x5*(parseInt(_0x41ce8e(0xf5))/0x6)+-parseInt(_0x41ce8e(0xd2))/0x7+parseInt(_0x41ce8e(0xee))/0x8*(parseInt(_0x41ce8e(0xc5))/0x9)+parseInt(_0x41ce8e(0xd0))/0xa*(parseInt(_0x41ce8e(0xe4))/0xb);if(_0x2a9a4a===_0x1f4f8e)break;else _0xdb6bb9['push'](_0xdb6bb9['shift']());}catch(_0x13ebd6){_0xdb6bb9['push'](_0xdb6bb9['shift']());}}}(_0xa73c,0x1c800));import{View as _0x4d2adc}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0xe4cf00}from'./aisuggestioncontentpartview.js';function _0x1379(_0x3f7475,_0x2f7242){const _0xa73cb9=_0xa73c();return _0x1379=function(_0x137958,_0x8a01db){_0x137958=_0x137958-0xc2;let _0xc00a49=_0xa73cb9[_0x137958];return _0xc00a49;},_0x1379(_0x3f7475,_0x2f7242);}function _0xa73c(){const _0x338fc5=['isVisible','ck-reset_all-excluded','partsCount','67688IqiMLb','createCollection','ck-content','10UghvRj','AI_SUGGESTION_NO_PARTS_WARNING','1507618YzhOsB','_emptyPartsWarningView','first','setContent','hasNonEmptyParts','set','warning','state','hasPendingParts','updatePartState','abort','getPartView','ck-ai-suggestion__body__content-parts','addEventListener','_updateContentPartsPromiseQueue','pending','content','updateContentParts','6277689TasiQp','_areActionsDisabled','ck-ai-suggestion__body','toggleHeader','length','AI_SUGGESTION_EMPTY_PART_WARNING','get','queueEmptyPromise','6fUKpaZ','locale','917608kAKDlr','from','_children','find','index','5855GpbfCp','44734xCiQul','474oJHKsb','430503FDlcXB','enqueue','add','empty-parts-warning','markAsDone','delegate','setTemplate','9bgNTkh','updateContent','some','div','partDefinition'];_0xa73c=function(){return _0x338fc5;};return _0xa73c();}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x45cb83}from'../../utils/eventnames.js';import{PromiseQueue as _0x34c76f}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x522559}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x4139a6}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x4d2adc{[_0x9d064e(0xf0)];[_0x9d064e(0xe5)];[_0x9d064e(0xe0)];[_0x9d064e(0xd3)];constructor(_0x546b7e,{areActionsDisabled:_0x592a13}){const _0x293fa7=_0x9d064e;super(_0x546b7e),this[_0x293fa7(0xe5)]=_0x592a13,this[_0x293fa7(0xd7)](_0x293fa7(0xda),!0x1),this[_0x293fa7(0xf0)]=this[_0x293fa7(0xce)](),this[_0x293fa7(0xe0)]=new _0x34c76f(),this[_0x293fa7(0xd3)]=new _0x522559({'id':_0x293fa7(0xf9),'initialContent':_0x4139a6(_0x546b7e,_0x293fa7(0xe9)),'level':_0x293fa7(0xd8)}),this[_0x293fa7(0xd3)][_0x293fa7(0xca)]=!0x1,this[_0x293fa7(0xc4)]({'tag':_0x293fa7(0xc8),'attributes':{'class':['ck',_0x293fa7(0xcb),_0x293fa7(0xe6),_0x293fa7(0xcf)]},'children':[{'tag':_0x293fa7(0xc8),'attributes':{'class':['ck',_0x293fa7(0xde)]},'children':this[_0x293fa7(0xf0)]},this[_0x293fa7(0xd3)]]});}get[_0x9d064e(0xcc)](){const _0x2444cc=_0x9d064e;return this[_0x2444cc(0xf0)][_0x2444cc(0xe8)];}async[_0x9d064e(0xe3)]({parts:_0x150169,renderingStrategy:_0x190afc,abortSignal:_0x5d12ac}){const _0x283a75=_0x9d064e;for(const _0x35a498 of _0x150169)this[_0x283a75(0xe0)][_0x283a75(0xf7)](async _0x5a6a08=>{const _0x4ed1d2=_0x283a75;let _0x376d06=this[_0x4ed1d2(0xf0)][_0x4ed1d2(0xf1)](_0x35592f=>_0x35592f[_0x4ed1d2(0xc9)][_0x4ed1d2(0xf2)]==_0x35a498[_0x4ed1d2(0xf2)]);_0x376d06||(_0x376d06=new _0xe4cf00(this[_0x4ed1d2(0xed)],{'part':_0x35a498,'areActionsDisabled':this[_0x4ed1d2(0xe5)]}),_0x376d06[_0x4ed1d2(0xc3)](..._0x45cb83)['to'](this),this[_0x4ed1d2(0xf0)][_0x4ed1d2(0xf8)](_0x376d06),this[_0x4ed1d2(0xda)]=!0x0),0x2===this[_0x4ed1d2(0xf0)][_0x4ed1d2(0xe8)]&&this[_0x4ed1d2(0xf0)][_0x4ed1d2(0xd4)][_0x4ed1d2(0xe7)](!0x0),_0x376d06[_0x4ed1d2(0xe7)](this[_0x4ed1d2(0xf0)][_0x4ed1d2(0xe8)]>0x1),await _0x376d06[_0x4ed1d2(0xc6)]({'part':_0x35a498,'renderingStrategy':_0x190afc,'abortSignal':_0x5a6a08});});return _0x5d12ac?.[_0x283a75(0xdf)](_0x283a75(0xdc),()=>{const _0x2a05c6=_0x283a75;this[_0x2a05c6(0xe0)][_0x2a05c6(0xdc)]();}),this[_0x283a75(0xe0)][_0x283a75(0xeb)];}[_0x9d064e(0xdb)](_0x415841,_0x253d33){const _0x242f7c=_0x9d064e;this[_0x242f7c(0xf0)][_0x242f7c(0xea)](_0x415841)[_0x242f7c(0xd9)]=_0x253d33,this[_0x242f7c(0xda)]=_0x242f7c(0xe1)==_0x253d33||Array[_0x242f7c(0xef)](this[_0x242f7c(0xf0)])[_0x242f7c(0xc7)](_0x406df3=>_0x242f7c(0xe1)==_0x406df3[_0x242f7c(0xd9)]);}[_0x9d064e(0xdd)](_0x50b6f6){const _0x42e449=_0x9d064e;return this[_0x42e449(0xf0)][_0x42e449(0xea)](_0x50b6f6);}[_0x9d064e(0xc2)](){const _0x4833b6=_0x9d064e,_0x5d31e6=!this[_0x4833b6(0xf0)][_0x4833b6(0xf1)](_0x19a87c=>!!_0x19a87c[_0x4833b6(0xc9)][_0x4833b6(0xe2)]),_0x5d7edc=!!this[_0x4833b6(0xf0)][_0x4833b6(0xf1)](_0x94aa59=>!_0x94aa59[_0x4833b6(0xc9)][_0x4833b6(0xe2)]);this[_0x4833b6(0xd3)][_0x4833b6(0xca)]=_0x5d7edc,_0x5d31e6?this[_0x4833b6(0xd3)][_0x4833b6(0xd5)](_0x4139a6(this[_0x4833b6(0xed)],_0x4833b6(0xd1))):this[_0x4833b6(0xd3)][_0x4833b6(0xd5)](_0x4139a6(this[_0x4833b6(0xed)],_0x4833b6(0xe9)));}get[_0x9d064e(0xd6)](){const _0x18c4ca=_0x9d064e;return!!this[_0x18c4ca(0xf0)][_0x18c4ca(0xf1)](_0x59b3aa=>!!_0x59b3aa[_0x18c4ca(0xc9)][_0x18c4ca(0xe2)]);}}
|
|
@@ -0,0 +1,80 @@
|
|
|
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/aicore/ui/aisuggestioncontainer/aisuggestioncontainerview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { View, type ViewCollection, ButtonView } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import { type AIMiniToolbarConfig } from './aiminitoolbarview.js';
|
|
11
|
+
import { type AISuggestionContentPartDefinition } from '../../utils/getsuggestionpartsfromreply.js';
|
|
12
|
+
import { type AIContentRenderingStrategy } from './aisuggestioncontentpartview.js';
|
|
13
|
+
import { type AIReplySource } from '../../model/aireply.js';
|
|
14
|
+
/**
|
|
15
|
+
* This view displays a suggestion from the AI.
|
|
16
|
+
*
|
|
17
|
+
* It comes with a header with a switch button to show/hide the changes.
|
|
18
|
+
*
|
|
19
|
+
* It also has a body view and a changes views that are toggled by the toggle button.
|
|
20
|
+
*
|
|
21
|
+
* It comes with a mini toolbar with copy, like and dislike buttons.
|
|
22
|
+
*/
|
|
23
|
+
export declare class AISuggestionContainerView extends View<HTMLDivElement> {
|
|
24
|
+
/**
|
|
25
|
+
* Observable property that indicates whether the view is in loading state.
|
|
26
|
+
* When true, all interactive elements should be disabled.
|
|
27
|
+
*/
|
|
28
|
+
isLoading: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
constructor(locale: Locale, { showDiff, areActionsDisabled, miniToolbarConfig, hideHeader, showLoader }: AISuggestionContainerViewOptions);
|
|
33
|
+
updateContent(options: {
|
|
34
|
+
parts: Array<AISuggestionContentPartDefinition>;
|
|
35
|
+
renderingStrategy: AIContentRenderingStrategy;
|
|
36
|
+
abortSignal?: AbortSignal;
|
|
37
|
+
}): Promise<void>;
|
|
38
|
+
updateSources(sources: Array<AIReplySource>): void;
|
|
39
|
+
/**
|
|
40
|
+
* Shows the loader if it exists.
|
|
41
|
+
*/
|
|
42
|
+
showLoader(): void;
|
|
43
|
+
/**
|
|
44
|
+
* Hides the loader if it exists.
|
|
45
|
+
*/
|
|
46
|
+
hideLoader(): void;
|
|
47
|
+
/**
|
|
48
|
+
* Marks the suggestion container as done.
|
|
49
|
+
*/
|
|
50
|
+
markAsDone(): void;
|
|
51
|
+
/**
|
|
52
|
+
* Sets the view to loading state, disabling all interactive elements.
|
|
53
|
+
*/
|
|
54
|
+
setLoading(): void;
|
|
55
|
+
/**
|
|
56
|
+
* Clears the loading state, enabling all interactive elements.
|
|
57
|
+
*/
|
|
58
|
+
clearLoading(): void;
|
|
59
|
+
}
|
|
60
|
+
export type AISuggestionContainerToggleSuggestionDisplayModeEvent = {
|
|
61
|
+
name: 'toggleSuggestionDisplayMode';
|
|
62
|
+
args: [{
|
|
63
|
+
showDiff: boolean;
|
|
64
|
+
}];
|
|
65
|
+
};
|
|
66
|
+
export type AISuggestionContainerViewOptions = {
|
|
67
|
+
showDiff: boolean;
|
|
68
|
+
areActionsDisabled: boolean;
|
|
69
|
+
miniToolbarConfig?: AIMiniToolbarConfig;
|
|
70
|
+
hideHeader?: boolean;
|
|
71
|
+
showLoader?: boolean;
|
|
72
|
+
};
|
|
73
|
+
export declare class AIWebSourcesView extends View {
|
|
74
|
+
children: ViewCollection;
|
|
75
|
+
displayHeader: boolean;
|
|
76
|
+
constructor(locale: Locale);
|
|
77
|
+
}
|
|
78
|
+
export declare class AIWebSourceView extends ButtonView {
|
|
79
|
+
constructor(locale: Locale, source: AIReplySource);
|
|
80
|
+
}
|
|
@@ -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 _0x4eb3c7=_0x9890;(function(_0x58fc7c,_0x40b552){const _0x4806fb=_0x9890,_0x3c2641=_0x58fc7c();while(!![]){try{const _0x242ccf=-parseInt(_0x4806fb(0x1fd))/0x1*(parseInt(_0x4806fb(0x1ef))/0x2)+parseInt(_0x4806fb(0x1f6))/0x3*(-parseInt(_0x4806fb(0x1ea))/0x4)+parseInt(_0x4806fb(0x1c9))/0x5+parseInt(_0x4806fb(0x1f5))/0x6*(parseInt(_0x4806fb(0x1f8))/0x7)+parseInt(_0x4806fb(0x1fe))/0x8+-parseInt(_0x4806fb(0x1d1))/0x9+parseInt(_0x4806fb(0x1cc))/0xa;if(_0x242ccf===_0x40b552)break;else _0x3c2641['push'](_0x3c2641['shift']());}catch(_0x3f5a54){_0x3c2641['push'](_0x3c2641['shift']());}}}(_0x51b3,0x43885));import{IconWeb as _0x2b4536}from'@ckeditor/ckeditor5-icons';import{View as _0x2a2c9f,ButtonView as _0x5dcbf9,IconView as _0x5b37fd}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x139c36}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x39b46a}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x5d9ea8}from'./aisuggestionbodyview.js';function _0x51b3(){const _0x2328f6=['1267kOpthN','ck-ai-suggestion__loader-text','areChangesVisible','updateContentParts','isVisible','19hjRhve','3172864VQxlkS','_createLoaderView','ck\x20ck-ai-web-source','Sources','setTemplate','bind','ck-rounded-corners','updateSources','ck-ai-suggestion__container','670270woeRLW','isShowChangesToggleVisible','isOn','6396260xheScm','bodyView','ck-hidden','div','map','4909518OpiHmg','title','setLoading','isLoading','headerView','children','locale','small','delegate','bindTemplate','add','createCollection','span','hasNonEmptyParts','content','extendTemplate','miniToolbarView','clearLoading','ck-ai-suggestion__loader','displayHeader','toggleShowChanges','fire','hideLoader','loaderView','set','18356zCJeiU','addMany','sourcesView','toggleSuggestionDisplayMode','markAsDone','35894vCgyUF','showLoader','AI_CHAT_IS_WRITING','ck-ai-web-sources','isLoaderVisible','updateContent','4782kHYcbf','99fBEASQ','ck-ai-web-sources__header'];_0x51b3=function(){return _0x2328f6;};return _0x51b3();}function _0x9890(_0xcccf91,_0x44826d){const _0x51b3fa=_0x51b3();return _0x9890=function(_0x9890de,_0x188f90){_0x9890de=_0x9890de-0x1c7;let _0xd8876=_0x51b3fa[_0x9890de];return _0xd8876;},_0x9890(_0xcccf91,_0x44826d);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x17f3d5}from'../../utils/eventnames.js';import{AISpinnerView as _0x19a957}from'../aispinner.js';import{getTranslation as _0x3e1adb}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x2a2c9f{[_0x4eb3c7(0x1cd)];[_0x4eb3c7(0x1d6)];[_0x4eb3c7(0x1d5)];[_0x4eb3c7(0x1e1)];[_0x4eb3c7(0x1e8)];[_0x4eb3c7(0x1ec)];constructor(_0x186634,{showDiff:_0x154f81,areActionsDisabled:_0x5aafa0,miniToolbarConfig:_0x8fce2d,hideHeader:_0x585527,showLoader:_0x198439}){const _0x5d154e=_0x4eb3c7;super(_0x186634),this[_0x5d154e(0x1e9)](_0x5d154e(0x1fa),!0x1),this[_0x5d154e(0x1e9)](_0x5d154e(0x1f3),!!_0x198439),this[_0x5d154e(0x1e9)](_0x5d154e(0x1d4),!0x1),this[_0x5d154e(0x1d6)]=this[_0x5d154e(0x1dc)](),_0x585527||(this[_0x5d154e(0x1d5)]=new _0x39b46a(_0x186634,{'showDiff':_0x154f81}),this[_0x5d154e(0x1d5)]['on'](_0x5d154e(0x1e5),(_0x3514f8,_0x499dd0)=>{const _0x1bc735=_0x5d154e;this[_0x1bc735(0x1fa)]=_0x499dd0[_0x1bc735(0x1cb)],this[_0x1bc735(0x1e6)](_0x1bc735(0x1ed),{'showDiff':_0x499dd0[_0x1bc735(0x1cb)]});}),this[_0x5d154e(0x1d6)][_0x5d154e(0x1db)](this[_0x5d154e(0x1d5)])),this[_0x5d154e(0x1cd)]=new _0x5d9ea8(_0x186634,{'areActionsDisabled':_0x5aafa0}),this[_0x5d154e(0x1cd)][_0x5d154e(0x1d9)](..._0x17f3d5)['to'](this),this[_0x5d154e(0x1cd)][_0x5d154e(0x1e0)]({'attributes':{'class':[this[_0x5d154e(0x1da)]['if'](_0x5d154e(0x1f3),_0x5d154e(0x1ce))]}}),this[_0x5d154e(0x1e1)]=new _0x139c36(_0x186634,_0x8fce2d,_0x154f81),this[_0x5d154e(0x1e1)][_0x5d154e(0x1d9)](..._0x17f3d5)['to'](this),this[_0x5d154e(0x1e1)]['on'](_0x5d154e(0x1e5),(_0x2ead8f,_0x37a23d)=>{const _0x3962c4=_0x5d154e;this[_0x3962c4(0x1fa)]=_0x37a23d,this[_0x3962c4(0x1e6)](_0x3962c4(0x1ed),{'showDiff':_0x37a23d});}),this[_0x5d154e(0x1e1)][_0x5d154e(0x203)](_0x5d154e(0x1d4))['to'](this),this[_0x5d154e(0x1d6)][_0x5d154e(0x1db)](this[_0x5d154e(0x1cd)]),this[_0x5d154e(0x1d6)][_0x5d154e(0x1db)](this[_0x5d154e(0x1e1)]),this[_0x5d154e(0x1ec)]=new AIWebSourcesView(this[_0x5d154e(0x1d7)]),this[_0x5d154e(0x1d6)][_0x5d154e(0x1db)](this[_0x5d154e(0x1ec)]),_0x198439&&(this[_0x5d154e(0x1e8)]=this[_0x5d154e(0x1ff)](),this[_0x5d154e(0x1d6)][_0x5d154e(0x1db)](this[_0x5d154e(0x1e8)])),this[_0x5d154e(0x202)]({'tag':_0x5d154e(0x1cf),'attributes':{'class':['ck',_0x5d154e(0x1c8),_0x5d154e(0x204)]},'children':this[_0x5d154e(0x1d6)]});}async[_0x4eb3c7(0x1f4)](_0x31fdd3){const _0x42c948=_0x4eb3c7;await this[_0x42c948(0x1cd)][_0x42c948(0x1fb)](_0x31fdd3);}[_0x4eb3c7(0x1c7)](_0x5b4752){const _0x5aa04c=_0x4eb3c7;this[_0x5aa04c(0x1ec)][_0x5aa04c(0x1d6)][_0x5aa04c(0x1eb)](_0x5b4752[_0x5aa04c(0x1d0)](_0xa634d7=>new AIWebSourceView(this[_0x5aa04c(0x1d7)],_0xa634d7))),this[_0x5aa04c(0x1ec)][_0x5aa04c(0x1e4)]=!0x0;}[_0x4eb3c7(0x1f0)](){const _0x58a1ec=_0x4eb3c7;this[_0x58a1ec(0x1e8)]&&(this[_0x58a1ec(0x1f3)]=!0x0);}[_0x4eb3c7(0x1e7)](){const _0x35196e=_0x4eb3c7;this[_0x35196e(0x1e8)]&&(this[_0x35196e(0x1f3)]=!0x1);}[_0x4eb3c7(0x1ee)](){const _0x29ce15=_0x4eb3c7;this[_0x29ce15(0x1cd)][_0x29ce15(0x1ee)](),this[_0x29ce15(0x1d5)]&&(this[_0x29ce15(0x1d5)][_0x29ce15(0x1ca)]=this[_0x29ce15(0x1cd)][_0x29ce15(0x1de)]);}[_0x4eb3c7(0x1d3)](){const _0x46035b=_0x4eb3c7;this[_0x46035b(0x1d4)]=!0x0;}[_0x4eb3c7(0x1e2)](){const _0x380ed1=_0x4eb3c7;this[_0x380ed1(0x1d4)]=!0x1;}[_0x4eb3c7(0x1ff)](){const _0x5626ea=_0x4eb3c7,_0x42e987=new _0x2a2c9f(this[_0x5626ea(0x1d7)]),_0x53f861=new _0x19a957(_0x5626ea(0x1d8));_0x53f861[_0x5626ea(0x1fc)]=!0x0;const _0x4d15c5=new _0x2a2c9f(this[_0x5626ea(0x1d7)]);return _0x4d15c5[_0x5626ea(0x202)]({'tag':_0x5626ea(0x1dd),'attributes':{'class':['ck',_0x5626ea(0x1f9)]},'children':[_0x3e1adb(this[_0x5626ea(0x1d7)],_0x5626ea(0x1f1))]}),_0x42e987[_0x5626ea(0x202)]({'tag':_0x5626ea(0x1cf),'attributes':{'class':['ck',_0x5626ea(0x1e3),this[_0x5626ea(0x1da)]['if'](_0x5626ea(0x1f3),_0x5626ea(0x1ce),_0x191b8c=>!_0x191b8c)]},'children':[_0x53f861,_0x4d15c5]}),_0x42e987;}}export class AIWebSourcesView extends _0x2a2c9f{[_0x4eb3c7(0x1d6)];constructor(_0x3b4b67){const _0x7594fa=_0x4eb3c7;super(_0x3b4b67),this[_0x7594fa(0x1d6)]=this[_0x7594fa(0x1dc)](),this[_0x7594fa(0x1e9)](_0x7594fa(0x1e4),!0x1),this[_0x7594fa(0x202)]({'tag':_0x7594fa(0x1cf),'attributes':{'class':['ck',_0x7594fa(0x1f2)]},'children':this[_0x7594fa(0x1d6)]});const _0x4f5668=new _0x2a2c9f(this[_0x7594fa(0x1d7)]),_0x5becd6=new _0x5b37fd();_0x5becd6[_0x7594fa(0x1df)]=_0x2b4536,_0x4f5668[_0x7594fa(0x202)]({'tag':_0x7594fa(0x1cf),'attributes':{'class':['ck',_0x7594fa(0x1f7),this[_0x7594fa(0x1da)]['if'](_0x7594fa(0x1e4),_0x7594fa(0x1ce),_0x2ab67b=>!_0x2ab67b)]},'children':[_0x5becd6,{'tag':_0x7594fa(0x1dd),'children':[{'text':_0x7594fa(0x201)}]}]}),this[_0x7594fa(0x1d6)][_0x7594fa(0x1db)](_0x4f5668);}}export class AIWebSourceView extends _0x5dcbf9{constructor(_0x5429b5,_0x41a765){const _0x3f87f8=_0x4eb3c7;super(_0x5429b5),this[_0x3f87f8(0x1e9)]({'icon':_0x2b4536,'label':_0x41a765[_0x3f87f8(0x1d2)],'tooltip':_0x41a765[_0x3f87f8(0x1d2)],'class':[_0x3f87f8(0x200)],'withText':!0x0});}}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aicore/ui/suggestioncontainer/aisuggestioncontentpartview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import { type AISuggestionContentPartDefinition } from '../../utils/getsuggestionpartsfromreply.js';
|
|
11
|
+
/**
|
|
12
|
+
* A view that displays a single part in the suggestion content.
|
|
13
|
+
*/
|
|
14
|
+
export declare class AISuggestionBodyViewContentPartView extends View<HTMLDivElement> {
|
|
15
|
+
partDefinition: AISuggestionContentPartDefinition;
|
|
16
|
+
state: string;
|
|
17
|
+
isEnabled: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Controls the visibility of the content part.
|
|
20
|
+
*/
|
|
21
|
+
isVisible: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
constructor(locale: Locale, { part, areActionsDisabled }: {
|
|
26
|
+
part: AISuggestionContentPartDefinition;
|
|
27
|
+
areActionsDisabled: boolean;
|
|
28
|
+
});
|
|
29
|
+
updateContent({ part, renderingStrategy, abortSignal }: {
|
|
30
|
+
part: AISuggestionContentPartDefinition;
|
|
31
|
+
renderingStrategy: AIContentRenderingStrategy;
|
|
32
|
+
abortSignal?: AbortSignal;
|
|
33
|
+
}): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Toggles the visibility of the part header. For instance, the header does not make sense for an only part in the suggestion.
|
|
36
|
+
*/
|
|
37
|
+
toggleHeader(shouldBeVisible: boolean): void;
|
|
38
|
+
}
|
|
39
|
+
export type AIContentRenderingStrategy = 'streaming' | 'static';
|
|
@@ -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 _0x35563b=_0x22d7;function _0x22d7(_0x10bda3,_0x3685d9){const _0x41ccc7=_0x41cc();return _0x22d7=function(_0x22d7bd,_0x1c7b9b){_0x22d7bd=_0x22d7bd-0x1df;let _0x297391=_0x41ccc7[_0x22d7bd];return _0x297391;},_0x22d7(_0x10bda3,_0x3685d9);}(function(_0x122b69,_0x4ea2e4){const _0x225005=_0x22d7,_0x4d00d9=_0x122b69();while(!![]){try{const _0x268dea=-parseInt(_0x225005(0x21a))/0x1+-parseInt(_0x225005(0x208))/0x2+-parseInt(_0x225005(0x1fd))/0x3+-parseInt(_0x225005(0x205))/0x4*(parseInt(_0x225005(0x20a))/0x5)+parseInt(_0x225005(0x1e1))/0x6+parseInt(_0x225005(0x1f0))/0x7*(-parseInt(_0x225005(0x1f8))/0x8)+-parseInt(_0x225005(0x207))/0x9*(-parseInt(_0x225005(0x1e3))/0xa);if(_0x268dea===_0x4ea2e4)break;else _0x4d00d9['push'](_0x4d00d9['shift']());}catch(_0x4ba594){_0x4d00d9['push'](_0x4d00d9['shift']());}}}(_0x41cc,0xa33c2));import{View as _0x34cf8d,IconView as _0x36f926,ToolbarView as _0x1340d8,ButtonView as _0x42bdb8}from'ckeditor5/src/ui.js';import{IconAddComment as _0x1aa0d9,IconDocumentWithLoupe as _0x4816f5,IconDocumentWithCheckmark as _0x3fb1a5,IconDocumentWithCross as _0x465efa,IconRemove as _0x5bde62,IconThreeStars as _0x15c30d}from'ckeditor5/src/icons.js';import{HTMLStreamer as _0x4537d5}from'../../utils/htmlstreamer.js';import{getTranslation as _0x410140}from'../../utils/common-translations.js';import{serialize as _0x194dfa}from'../../utils/htmlparser.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x5cc914}from'../../utils/eventnames.js';export class AISuggestionBodyViewContentPartView extends _0x34cf8d{[_0x35563b(0x1fc)];[_0x35563b(0x1ed)];[_0x35563b(0x226)];[_0x35563b(0x221)];constructor(_0x509bb6,{part:_0x419c64,areActionsDisabled:_0x1a7eff}){const _0x1d40a=_0x35563b;super(_0x509bb6),this[_0x1d40a(0x20d)](_0x1d40a(0x220),_0x419c64),this[_0x1d40a(0x20d)](_0x1d40a(0x222),_0x1d40a(0x218)),this[_0x1d40a(0x20d)](_0x1d40a(0x204),!0x1),this[_0x1d40a(0x210)](_0x1d40a(0x1f1))['to'](this,_0x1d40a(0x222),_0x148a86=>_0x1d40a(0x218)==_0x148a86&&!_0x1a7eff),this[_0x1d40a(0x1ed)]=this[_0x1d40a(0x20e)](),this[_0x1d40a(0x1fc)]=new _0x4537d5({'textNodeStyle':_0x1d40a(0x1e9),'delay':0x14}),this[_0x1d40a(0x226)]=new In(_0x509bb6,_0x419c64),this[_0x1d40a(0x226)][_0x1d40a(0x210)](_0x1d40a(0x220))['to'](this),this[_0x1d40a(0x226)][_0x1d40a(0x210)](_0x1d40a(0x1f1))['to'](this),this[_0x1d40a(0x226)][_0x1d40a(0x210)](_0x1d40a(0x222))['to'](this),this[_0x1d40a(0x226)][_0x1d40a(0x1f2)](..._0x5cc914)['to'](this);const _0x342f2a=this[_0x1d40a(0x214)];this[_0x1d40a(0x221)]=new _0x34cf8d(),this[_0x1d40a(0x221)][_0x1d40a(0x209)]({'tag':_0x1d40a(0x203),'attributes':{'class':['ck',_0x1d40a(0x1f6)]}}),this[_0x1d40a(0x1ed)][_0x1d40a(0x1e7)]([this[_0x1d40a(0x221)]]),this[_0x1d40a(0x209)]({'tag':_0x1d40a(0x203),'attributes':{'class':['ck',_0x1d40a(0x21c),_0x342f2a['to'](_0x1d40a(0x222),_0xb13d1a=>_0x1d40a(0x1e6)+_0xb13d1a),_0x342f2a['to'](_0x1d40a(0x1f1),_0x1742bd=>_0x1742bd?_0x1d40a(0x20b):void 0x0),_0x342f2a['if'](_0x1d40a(0x204),_0x1d40a(0x217),_0x100b2e=>!_0x100b2e)]},'children':this[_0x1d40a(0x1ed)],'on':{'mouseenter':_0x342f2a['to'](()=>{const _0x2f05d6=_0x1d40a;this[_0x2f05d6(0x1f1)]&&this[_0x2f05d6(0x212)](_0x2f05d6(0x1e8),{'index':_0x419c64[_0x2f05d6(0x1ee)]});}),'mouseleave':_0x342f2a['to'](()=>{const _0x23d619=_0x1d40a;this[_0x23d619(0x1f1)]&&this[_0x23d619(0x212)](_0x23d619(0x202),{'index':_0x419c64[_0x23d619(0x1ee)]});})}});}async[_0x35563b(0x1f5)]({part:_0x3ff5da,renderingStrategy:_0x4945b6,abortSignal:_0x1bd76b}){const _0x545a16=_0x35563b;this[_0x545a16(0x220)]=_0x3ff5da,this[_0x545a16(0x204)]=!!this[_0x545a16(0x220)][_0x545a16(0x20c)],this[_0x545a16(0x220)][_0x545a16(0x20c)]&&(_0x545a16(0x213)===_0x4945b6?await this[_0x545a16(0x1fc)][_0x545a16(0x224)]({'document':this[_0x545a16(0x220)][_0x545a16(0x20c)],'targetElement':this[_0x545a16(0x221)][_0x545a16(0x21e)],'abortSignal':_0x1bd76b}):this[_0x545a16(0x221)][_0x545a16(0x21e)][_0x545a16(0x1ec)]=_0x194dfa(this[_0x545a16(0x220)][_0x545a16(0x20c)]));}[_0x35563b(0x206)](_0x384f14){const _0x24b002=_0x35563b;_0x384f14?this[_0x24b002(0x1ed)][_0x24b002(0x1ef)](this[_0x24b002(0x226)])||this[_0x24b002(0x1ed)][_0x24b002(0x1e4)](this[_0x24b002(0x226)],0x0):this[_0x24b002(0x1ed)][_0x24b002(0x1ef)](this[_0x24b002(0x226)])&&this[_0x24b002(0x1ed)][_0x24b002(0x211)](this[_0x24b002(0x226)]);}}class In extends _0x34cf8d{[_0x35563b(0x1ed)];[_0x35563b(0x216)];[_0x35563b(0x21d)];[_0x35563b(0x1fb)];constructor(_0x412113,_0x3bb650){const _0x15a558=_0x35563b;super(_0x412113),this[_0x15a558(0x20d)](_0x15a558(0x220),_0x3bb650),this[_0x15a558(0x20d)](_0x15a558(0x1f1),!0x0),this[_0x15a558(0x20d)](_0x15a558(0x222),_0x15a558(0x218));const _0x49928f=new _0x36f926();_0x49928f[_0x15a558(0x20c)]=_0x15c30d,_0x49928f[_0x15a558(0x1f3)]({'attributes':{'class':[_0x15a558(0x1e0)]}});const _0x1e22d9=new _0x42bdb8(_0x412113);_0x1e22d9[_0x15a558(0x20d)]({'label':_0x410140(_0x412113,_0x15a558(0x225)),'tooltip':!0x0,'withText':!0x1,'icon':_0x4816f5}),_0x1e22d9[_0x15a558(0x210)](_0x15a558(0x1f1))['to'](this),_0x1e22d9['on'](_0x15a558(0x1ea),()=>{const _0xf3c7f0=_0x15a558;this[_0xf3c7f0(0x212)](_0xf3c7f0(0x1fa),{'index':_0x3bb650[_0xf3c7f0(0x1ee)]});});const _0x24df71=new _0x42bdb8(_0x412113);_0x24df71[_0x15a558(0x20d)]({'label':_0x410140(_0x412113,_0x15a558(0x1e2)),'tooltip':!0x0,'withText':!0x1,'icon':_0x1aa0d9}),_0x24df71[_0x15a558(0x210)](_0x15a558(0x1f1))['to'](this),_0x24df71['on'](_0x15a558(0x1ea),()=>{const _0x23fb89=_0x15a558;this[_0x23fb89(0x212)](_0x23fb89(0x1f4),{'index':_0x3bb650[_0x23fb89(0x1ee)]});});const _0x6ee68b=new _0x42bdb8(_0x412113);_0x6ee68b[_0x15a558(0x20d)]({'label':_0x410140(_0x412113,_0x15a558(0x215)),'tooltip':!0x0,'withText':!0x1,'icon':_0x5bde62}),_0x6ee68b['on'](_0x15a558(0x1ea),()=>{const _0x10c746=_0x15a558;this[_0x10c746(0x212)](_0x10c746(0x21b),{'index':_0x3bb650[_0x10c746(0x1ee)]});}),_0x6ee68b[_0x15a558(0x210)](_0x15a558(0x1f1))['to'](this),this[_0x15a558(0x216)]=new _0x1340d8(_0x412113),this[_0x15a558(0x216)][_0x15a558(0x1eb)][_0x15a558(0x1e7)]([_0x1e22d9,_0x24df71,_0x6ee68b]),this[_0x15a558(0x21d)]=new _0x36f926(),this[_0x15a558(0x21d)][_0x15a558(0x20c)]=_0x3fb1a5,this[_0x15a558(0x21d)][_0x15a558(0x1f3)]({'attributes':{'class':[_0x15a558(0x20f)],'data-cke-tooltip-text':_0x410140(_0x412113,_0x15a558(0x1fe)),'data-cke-tooltip-position':'n'}}),this[_0x15a558(0x1fb)]=new _0x36f926(),this[_0x15a558(0x1fb)][_0x15a558(0x20c)]=_0x465efa,this[_0x15a558(0x1fb)][_0x15a558(0x1f3)]({'attributes':{'class':[_0x15a558(0x1f9)],'data-cke-tooltip-text':_0x410140(_0x412113,_0x15a558(0x21f)),'data-cke-tooltip-position':'n'}});const _0x3f1add=new _0x34cf8d(_0x412113);_0x3f1add[_0x15a558(0x209)]({'tag':_0x15a558(0x1ff),'attributes':{'class':['ck',_0x15a558(0x1df)]},'children':[_0x410140(_0x412113,_0x15a558(0x201),(_0x3bb650[_0x15a558(0x1ee)]+0x1)[_0x15a558(0x223)]())]}),this[_0x15a558(0x1ed)]=this[_0x15a558(0x20e)](),this[_0x15a558(0x1ed)][_0x15a558(0x1e7)]([_0x49928f,_0x3f1add,this[_0x15a558(0x216)]]),this[_0x15a558(0x209)]({'tag':_0x15a558(0x203),'attributes':{'class':['ck',_0x15a558(0x200)]},'children':this[_0x15a558(0x1ed)]}),this['on'](_0x15a558(0x1e5),(_0x489fda,_0x138d8c,_0x574798,_0x8966a5)=>{const _0x46cecc=_0x15a558;switch(_0x8966a5){case _0x46cecc(0x218):this[_0x46cecc(0x1ed)][_0x46cecc(0x211)](this[_0x46cecc(0x216)]);break;case _0x46cecc(0x219):this[_0x46cecc(0x1ed)][_0x46cecc(0x211)](this[_0x46cecc(0x21d)]);break;case _0x46cecc(0x1f7):this[_0x46cecc(0x1ed)][_0x46cecc(0x211)](this[_0x46cecc(0x1fb)]);}switch(_0x574798){case _0x46cecc(0x218):this[_0x46cecc(0x1ed)][_0x46cecc(0x1e4)](this[_0x46cecc(0x216)]);break;case _0x46cecc(0x219):this[_0x46cecc(0x1ed)][_0x46cecc(0x1e4)](this[_0x46cecc(0x21d)]);break;case _0x46cecc(0x1f7):this[_0x46cecc(0x1ed)][_0x46cecc(0x1e4)](this[_0x46cecc(0x1fb)]);}});}}function _0x41cc(){const _0x2ee5a6=['toString','stream','AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT','headerView','ck-ai-suggestion__body__content-part__title__label','ck-ai-suggestion__body__content-part__icon-title','7283556QwwSSG','AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION','43972970uUIxid','add','change:state','ck-ai-suggestion__body__content-part_','addMany','mouseOverSuggestion','animation:\x20ck-html-streamer-fade-in\x20.5s','execute','items','innerHTML','children','index','has','1251628uavHJI','isEnabled','delegate','extendTemplate','insertSuggestion','updateContent','ck-ai-suggestion__body__content-part__content','rejected','32jhqsVl','ck-ai-suggestion__body__content-part__icon-rejected','showChangeInText','_iconStateRejected','htmlStreamer','2406324QCAood','AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','span','ck-ai-suggestion__body__content-part__title','AI_SUGGESTION_CONTENT_PART_TITLE','mouseLeaveSuggestion','div','isVisible','4XKswvM','toggleHeader','9alCgnR','2153124EkLGGv','setTemplate','6450185VDyhXg','ck-ai-suggestion__body__content-part_active','content','set','createCollection','ck-ai-suggestion__body__content-part__icon-accepted','bind','remove','fire','streaming','bindTemplate','AI_SUGGESTION_CONTENT_PART_DELETE','_toolbarView','ck-hidden','pending','accepted','1058690XxBTXQ','rejectSuggestion','ck-ai-suggestion__body__content-part','_iconStateAccepted','element','AI_SUGGESTION_CONTENT_PART_REJECTED','partDefinition','contentView','state'];_0x41cc=function(){return _0x2ee5a6;};return _0x41cc();}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/acore/ui/aisuggestioncontainer/aisuggestionheaderview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { ButtonView, View } from 'ckeditor5/src/ui.js';
|
|
10
|
+
/**
|
|
11
|
+
* The header of the suggestion container.
|
|
12
|
+
*
|
|
13
|
+
* It contains a title, a toggle button to show/hide the changes and an icon.
|
|
14
|
+
*/
|
|
15
|
+
export declare class AISuggestionHeaderView extends View<HTMLDivElement> {
|
|
16
|
+
/**
|
|
17
|
+
* Specifies whether the show changes toggle should be visible or not.
|
|
18
|
+
*/
|
|
19
|
+
isShowChangesToggleVisible: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
constructor(locale: Locale, options: {
|
|
24
|
+
showDiff: boolean;
|
|
25
|
+
showHeader?: boolean;
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
export declare class ShowChangesToggleView extends ButtonView {
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
render(): void;
|
|
33
|
+
}
|
|
34
|
+
export type AISuggestionHeaderToggleShowChangesEvent = {
|
|
35
|
+
name: 'toggleShowChanges';
|
|
36
|
+
args: [{
|
|
37
|
+
isOn: boolean;
|
|
38
|
+
}];
|
|
39
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x1c1edc=_0x5d88;function _0x5d88(_0x589e0d,_0x570cb9){const _0x63704e=_0x6370();return _0x5d88=function(_0x5d8839,_0x1a7184){_0x5d8839=_0x5d8839-0x14c;let _0x2297c1=_0x63704e[_0x5d8839];return _0x2297c1;},_0x5d88(_0x589e0d,_0x570cb9);}(function(_0x42e8b4,_0x5276ed){const _0x1a1792=_0x5d88,_0xa2f3a2=_0x42e8b4();while(!![]){try{const _0x54bc71=-parseInt(_0x1a1792(0x156))/0x1+-parseInt(_0x1a1792(0x159))/0x2+-parseInt(_0x1a1792(0x164))/0x3*(parseInt(_0x1a1792(0x150))/0x4)+-parseInt(_0x1a1792(0x163))/0x5*(-parseInt(_0x1a1792(0x15b))/0x6)+-parseInt(_0x1a1792(0x15e))/0x7*(-parseInt(_0x1a1792(0x16c))/0x8)+parseInt(_0x1a1792(0x15d))/0x9+parseInt(_0x1a1792(0x167))/0xa*(-parseInt(_0x1a1792(0x153))/0xb);if(_0x54bc71===_0x5276ed)break;else _0xa2f3a2['push'](_0xa2f3a2['shift']());}catch(_0x28ada9){_0xa2f3a2['push'](_0xa2f3a2['shift']());}}}(_0x6370,0x7da76));import{getTranslation as _0x5818d4}from'../../utils/common-translations.js';import{ButtonView as _0x555186,IconView as _0x14ba6d,View as _0x100267}from'ckeditor5/src/ui.js';import{IconDocument as _0x909634,IconShowChangesOff as _0x445e79,IconShowChangesOn as _0x312fb9}from'ckeditor5/src/icons.js';function _0x6370(){const _0x11ff24=['render','1806572XCssmW','div','6FYIVVX','ck-ai-suggestion__header__show-changes-toggle','7885800ordcgg','2674cXBgug','AI_SUGGESTION_HEADER_TITLE','iconView','isVisible','toggleShowChanges','4441415ePDSBt','69hVUUhb','filter','AI_SUGGESTION_BUTTON_SHOW_CHANGES','975940ThrGpw','ck-hidden','bind','showChangesToggleView','icon','21128pujgBk','ck-ai-suggestion__header','remove','execute','span','content','fire','isShowChangesToggleVisible','setTemplate','isOn','10844yAIcEu','children','showDiff','121GZdaEf','showHeader','add','219494nFCnYm','set'];_0x6370=function(){return _0x11ff24;};return _0x6370();}export class AISuggestionHeaderView extends _0x100267{[_0x1c1edc(0x16a)];constructor(_0x22e9d0,_0x322fd8){const _0x2fc1a8=_0x1c1edc;super(_0x22e9d0),this[_0x2fc1a8(0x157)](_0x2fc1a8(0x14d),!0x0),this[_0x2fc1a8(0x16a)]=new ShowChangesToggleView(_0x22e9d0),this[_0x2fc1a8(0x16a)][_0x2fc1a8(0x157)]({'class':_0x2fc1a8(0x15c),'label':_0x5818d4(_0x22e9d0,_0x2fc1a8(0x166)),'withText':!0x0}),this[_0x2fc1a8(0x16a)][_0x2fc1a8(0x14f)]=_0x322fd8[_0x2fc1a8(0x152)],this[_0x2fc1a8(0x16a)][_0x2fc1a8(0x169)](_0x2fc1a8(0x161))['to'](this,_0x2fc1a8(0x14d)),this[_0x2fc1a8(0x16a)][_0x2fc1a8(0x169)](_0x2fc1a8(0x16b))['to'](this[_0x2fc1a8(0x16a)],_0x2fc1a8(0x14f),_0x13b014=>_0x13b014?_0x312fb9:_0x445e79),this[_0x2fc1a8(0x16a)]['on'](_0x2fc1a8(0x16f),()=>{const _0x260f99=_0x2fc1a8;this[_0x260f99(0x16a)][_0x260f99(0x14f)]=!this[_0x260f99(0x16a)][_0x260f99(0x14f)],this[_0x260f99(0x14c)](_0x260f99(0x162),{'isOn':this[_0x260f99(0x16a)][_0x260f99(0x14f)]});});const _0x98bad2=new _0x14ba6d();_0x98bad2[_0x2fc1a8(0x171)]=_0x909634,this[_0x2fc1a8(0x14e)]({'tag':_0x2fc1a8(0x15a),'attributes':{'class':['ck',_0x2fc1a8(0x16d),!0x1===_0x322fd8[_0x2fc1a8(0x154)]?_0x2fc1a8(0x168):null][_0x2fc1a8(0x165)](Boolean)},'children':[_0x98bad2,{'tag':_0x2fc1a8(0x170),'children':[_0x5818d4(_0x22e9d0,_0x2fc1a8(0x15f))]},this[_0x2fc1a8(0x16a)]]});}}export class ShowChangesToggleView extends _0x555186{[_0x1c1edc(0x158)](){const _0x553771=_0x1c1edc;super[_0x553771(0x158)](),this[_0x553771(0x151)][_0x553771(0x16e)](this[_0x553771(0x160)]),this[_0x553771(0x151)][_0x553771(0x155)](this[_0x553771(0x160)]);}}
|
|
@@ -0,0 +1,9 @@
|
|
|
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/aicore/utils/common-translations
|
|
7
|
+
*/
|
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
export declare function getTranslation(locale: Locale, id: string, values?: string | number | Array<string | number>): string;
|
|
@@ -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
|
+
export function getTranslation(_0x693a51,_0xa13578,_0x4f36a3){const t=_0x693a51['t'];switch(_0xa13578){case'AI_SUGGESTION_HEADER_TITLE':return t({'id':'AI_SUGGESTION_HEADER_TITLE','string':'Suggested\x20content'});case'AI_SUGGESTION_BUTTON_SHOW_CHANGES':return t({'id':'AI_SUGGESTION_BUTTON_SHOW_CHANGES','string':'Show\x20changes'});case'AI_MINI_TOOLBAR_LIKE':return t({'id':'AI_MINI_TOOLBAR_LIKE','string':'I\x20like\x20this\x20response'});case'AI_MINI_TOOLBAR_DISLIKE':return t({'id':'AI_MINI_TOOLBAR_DISLIKE','string':'I\x20don\x27t\x20like\x20this\x20response'});case'AI_MINI_TOOLBAR_COPY':return t({'id':'AI_MINI_TOOLBAR_COPY','string':'Copy\x20to\x20clipboard'});case'AI_SUGGESTION_CONTENT_PART_TITLE':return t({'id':'AI_SUGGESTION_CONTENT_PART_TITLE','string':'Suggestion\x20%0'},_0x4f36a3);case'AI_SUGGESTION_CONTENT_PART_REJECTED':return t({'id':'AI_SUGGESTION_CONTENT_PART_REJECTED','string':'Change\x20was\x20rejected'});case'AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED':return t({'id':'AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','string':'Change\x20is\x20already\x20applied'});case'AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT':return t({'id':'AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT','string':'Show\x20in\x20the\x20text'});case'AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION':return t({'id':'AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION','string':'Add\x20as\x20suggestion'});case'AI_SUGGESTION_CONTENT_PART_DELETE':return t({'id':'AI_SUGGESTION_CONTENT_PART_DELETE','string':'Delete'});case'AI_DISCLAIMER_TEXT':return t({'id':'AI_DISCLAIMER_TEXT','string':'AI\x20can\x20make\x20mistakes.\x20Please\x20double-check\x20responses.'});case'AI_TABS_LABEL_MAXIMIZE':return t({'id':'AI_TABS_LABEL_MAXIMIZE','string':'Maximize'});case'AI_TABS_LABEL_MINIMIZE':return t({'id':'AI_TABS_LABEL_MINIMIZE','string':'Minimize'});case'AI_CHAT_HEADING':return t({'id':'AI_CHAT_HEADING','string':'AI\x20Chat'});case'AI_CHAT_UNTITLED_CONVERSATION':return t({'id':'AI_CHAT_UNTITLED_CONVERSATION','string':'Untitled\x20conversation'});case'AI_CHAT_LABEL_NEW_CHAT':return t({'id':'AI_CHAT_LABEL_NEW_CHAT','string':'New\x20chat'});case'AI_CHAT_STOP_GENERATING':return t({'id':'AI_CHAT_STOP_GENERATING','string':'Stop\x20generating'});case'AI_CHAT_IS_WRITING':return t({'id':'AI_CHAT_IS_WRITING','string':'AI\x20is\x20writing...'});case'AI_CHAT_PROMPT_EMPTY_ERROR':return t({'id':'AI_CHAT_PROMPT_EMPTY_ERROR','string':'This\x20field\x20cannot\x20be\x20empty.'});case'AI_CHAT_LABEL_SUBMIT':return t({'id':'AI_CHAT_LABEL_SUBMIT','string':'Submit'});case'AI_CHAT_WELCOME_MESSAGE':return t({'id':'AI_CHAT_WELCOME_MESSAGE','string':'Hi,\x20I\x27m\x20your\x20AI\x20assistant.\x20Think\x20of\x20me\x20as\x20your\x20writing\x20buddy,\x20reviewer,\x20or\x20research\x20partner.\x20I\x20can\x20suggest\x20changes\x20to\x20your\x20document,\x20help\x20generate\x20ideas,\x20offer\x20feedback,\x20discuss\x20attached\x20files,\x20and\x20much\x20more!'});case'AI_CHAT_ABORTED_MESSAGE':return t({'id':'AI_CHAT_ABORTED_MESSAGE','string':'The\x20request\x20was\x20aborted.'});case'AI_CHAT_GENERIC_ERROR':return t({'id':'AI_CHAT_GENERIC_ERROR','string':'Something\x20went\x20wrong\x20while\x20processing\x20your\x20request.\x20Please\x20try\x20again.'});case'AI_CHAT_UNABLE_TO_START_CONVERSATION':return t({'id':'AI_CHAT_UNABLE_TO_START_CONVERSATION','string':'Unable\x20to\x20start\x20conversation.\x20Please\x20make\x20sure\x20you\x20are\x20online\x20and\x20try\x20again.'});case'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE':return t({'id':'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','string':'Failed\x20to\x20upload\x20files:\x20%0.\x20Please\x20try\x20again.'},_0x4f36a3);case'AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES':return t({'id':'AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','string':'Unable\x20to\x20load\x20resources\x20from\x20%0.\x20Please\x20try\x20again.'},_0x4f36a3);case'AI_CHAT_RESOURCE_LOAD_FAILED':return t({'id':'AI_CHAT_RESOURCE_LOAD_FAILED','string':'Failed\x20to\x20load\x20resource.\x20Please\x20try\x20again.'});case'AI_CHAT_CONTEXT_CURRENT_DOCUMENT':return t({'id':'AI_CHAT_CONTEXT_CURRENT_DOCUMENT','string':'Current\x20document'});case'AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT':return t({'id':'AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','string':'Remove\x20from\x20context'});case'AI_CHAT_CONTEXT_ADD_CONTEXT':return t({'id':'AI_CHAT_CONTEXT_ADD_CONTEXT','string':'Add\x20context'});case'AI_CHAT_CONTEXT_URL_LABEL':return t({'id':'AI_CHAT_CONTEXT_URL_LABEL','string':'URL'});case'AI_CHAT_CONTEXT_FILE_LABEL':return t({'id':'AI_CHAT_CONTEXT_FILE_LABEL','string':'File'});case'AI_CHAT_CONTEXT_CURRENT_CONTEXT_LABEL':return t({'id':'AI_CHAT_CONTEXT_CURRENT_CONTEXT_LABEL','string':'Current\x20context'});case'AI_CHAT_SEARCH_WEB':return t({'id':'AI_CHAT_SEARCH_WEB','string':'Web\x20search'});case'AI_CHAT_ENABLE_WEB_SEARCH':return t({'id':'AI_CHAT_ENABLE_WEB_SEARCH','string':'Enable\x20web\x20search'});case'AI_CHAT_DISABLE_WEB_SEARCH':return t({'id':'AI_CHAT_DISABLE_WEB_SEARCH','string':'Disable\x20web\x20search'});case'AI_CHAT_REASONING':return t({'id':'AI_CHAT_REASONING','string':'Reasoning'});case'AI_CHAT_ENABLE_REASONING':return t({'id':'AI_CHAT_ENABLE_REASONING','string':'Enable\x20reasoning'});case'AI_CHAT_DISABLE_REASONING':return t({'id':'AI_CHAT_DISABLE_REASONING','string':'Disable\x20reasoning'});case'AI_CHAT_COMMANDS':return t({'id':'AI_CHAT_COMMANDS','string':'Commands'});case'AI_CHAT_SEARCH_RESOURCES':return t({'id':'AI_CHAT_SEARCH_RESOURCES','string':'Search\x20resources'});case'AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT':return t({'id':'AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','string':'Back\x20to\x20context\x20options'});case'AI_CHAT_CONTEXT_URL_ADD_URL':return t({'id':'AI_CHAT_CONTEXT_URL_ADD_URL','string':'Add\x20URL'});case'AI_CHAT_CONTEXT_URL_PLACEHOLDER':return t({'id':'AI_CHAT_CONTEXT_URL_PLACEHOLDER','string':'Add\x20URL...'});case'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL':return t({'id':'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','string':'Failed\x20to\x20upload\x20URL:\x20%0.\x20Please\x20try\x20again.'},_0x4f36a3);case'AI_CHAT_CONTEXT_INVALID_DATA':return t({'id':'AI_CHAT_CONTEXT_INVALID_DATA','string':'Invalid\x20context\x20data\x20type\x20for\x20the\x20selected\x20resource.'});case'AI_CHAT_CONTEXT_UNSUPPORTED_TYPE':return t({'id':'AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','string':'Unsupported\x20resource\x20type.\x20Only\x20files\x20and\x20URLs\x20are\x20supported.'});case'AI_CHAT_CONTEXT_URL_EMPTY_ERROR':return t({'id':'AI_CHAT_CONTEXT_URL_EMPTY_ERROR','string':'URL\x20cannot\x20be\x20empty.'});case'AI_CHAT_CONTEXT_URL_INVALID_ERROR':return t({'id':'AI_CHAT_CONTEXT_URL_INVALID_ERROR','string':'Please\x20enter\x20a\x20valid\x20URL.'});case'AI_CHAT_FEED_LOADING_MESSAGE_REGULAR':return t({'id':'AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','string':'AI\x20is\x20preparing\x20a\x20response...'});case'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH':return t({'id':'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','string':'AI\x20is\x20searching\x20the\x20web\x20to\x20provide\x20the\x20most\x20accurate\x20answer...'});case'AI_CHAT_FEED_LOADING_MESSAGE_REASONING':return t({'id':'AI_CHAT_FEED_LOADING_MESSAGE_REASONING','string':'AI\x20is\x20performing\x20deep\x20research\x20to\x20provide\x20the\x20most\x20accurate\x20answer...'});case'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING':return t({'id':'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','string':'AI\x20is\x20performing\x20deep\x20research\x20and\x20searching\x20the\x20web\x20to\x20provide\x20the\x20most\x20accurate\x20answer...'});case'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH':return t({'id':'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','string':'Scanned\x20the\x20internet\x20for\x20insights'});case'AI_CHAT_FEED_REPLY_ITEM_USED_REASONING':return t({'id':'AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','string':'Thought\x20for\x20a\x20few\x20minutes'});case'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING':return t({'id':'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','string':'Took\x20a\x20moment\x20to\x20think\x20and\x20search\x20the\x20web'});case'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR':return t({'id':'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','string':'Ask\x20AI\x20anything...'});case'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH':return t({'id':'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','string':'Ask\x20AI\x20anything\x20(web\x20search\x20enabled)...'});case'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING':return t({'id':'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','string':'Ask\x20AI\x20anything\x20(reasoning\x20enabled)...'});case'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING':return t({'id':'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','string':'Ask\x20AI\x20anything\x20(web\x20search\x20and\x20reasoning\x20enabled)...'});case'AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT':return t({'id':'AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','string':'Show\x20change\x20in\x20text','plural':'Show\x20changes\x20in\x20text'},_0x4f36a3);case'AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION':return t({'id':'AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','string':'Insert\x20suggestion','plural':'Insert\x20suggestions'},_0x4f36a3);case'AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL':return t({'id':'AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','string':'Apply','plural':'Apply\x20all'},_0x4f36a3);case'AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP':return t({'id':'AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','string':'Apply\x20suggestion','plural':'Apply\x20all\x20suggestions'},_0x4f36a3);case'AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP':return t({'id':'AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','string':'More\x20options'},_0x4f36a3);case'AI_CHAT_MODEL_SELECTOR_GROUP':return t({'id':'AI_CHAT_MODEL_SELECTOR_GROUP','string':'Models'});case'AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP':return t({'id':'AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','string':'Select\x20a\x20model'});case'AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP':return t({'id':'AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','string':'Start\x20a\x20new\x20conversation\x20to\x20change\x20a\x20model'});case'AI_CHAT_CAPABILITIES_YES':return t({'id':'AI_CHAT_CAPABILITIES_YES','string':'Yes'});case'AI_CHAT_CAPABILITIES_NO':return t({'id':'AI_CHAT_CAPABILITIES_NO','string':'No'});case'AI_CHAT_CONTEXT_SOURCES_LABEL':return t({'id':'AI_CHAT_CONTEXT_SOURCES_LABEL','string':'Sources'});case'AI_CHAT_HISTORY_HEADING':return t({'id':'AI_CHAT_HISTORY_HEADING','string':'Chat\x20History'});case'AI_CHAT_HISTORY_SEARCH_LABEL':return t({'id':'AI_CHAT_HISTORY_SEARCH_LABEL','string':'Search\x20history'});case'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY':return t({'id':'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','string':'No\x20chats\x20were\x20found\x20matching\x20\x22%0\x22.'},_0x4f36a3);case'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY':return t({'id':'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','string':'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.'});case'AI_CHAT_HISTORY_EMPTY_MESSAGE':return t({'id':'AI_CHAT_HISTORY_EMPTY_MESSAGE','string':'Your\x20chat\x20history\x20is\x20currently\x20empty.\x20After\x20you\x20create\x20some\x20conversations,\x20you\x20will\x20be\x20able\x20to\x20revisit\x20them\x20here.'});case'AI_CHAT_HISTORY_GO_TO_CHAT_BUTTON':return t({'id':'AI_CHAT_HISTORY_GO_TO_CHAT_BUTTON','string':'Go\x20to\x20chat'});case'AI_CHAT_HISTORY_PIN_BUTTON':return t({'id':'AI_CHAT_HISTORY_PIN_BUTTON','string':'Pin'});case'AI_CHAT_HISTORY_SHOW_MORE_ITEMS':return t({'id':'AI_CHAT_HISTORY_SHOW_MORE_ITEMS','string':'Show\x20more\x20items'});case'AI_CHAT_HISTORY_EDIT_NAME':return t({'id':'AI_CHAT_HISTORY_EDIT_NAME','string':'Edit\x20name'});case'AI_CHAT_HISTORY_REMOVE':return t({'id':'AI_CHAT_HISTORY_REMOVE','string':'Remove'});case'AI_CHAT_HISTORY_REMOVE_CONFIRM':return t({'id':'AI_CHAT_HISTORY_REMOVE_CONFIRM','string':'Do\x20you\x20want\x20to\x20remove\x20this\x20chat?'});case'AI_CHAT_HISTORY_ACCEPT':return t({'id':'AI_CHAT_HISTORY_ACCEPT','string':'Accept'});case'AI_CHAT_HISTORY_CANCEL':return t({'id':'AI_CHAT_HISTORY_CANCEL','string':'Cancel'});case'AI_CHAT_HISTORY_LOADING_REMOVING':return t({'id':'AI_CHAT_HISTORY_LOADING_REMOVING','string':'Removing\x20the\x20chat...'});case'AI_CHAT_HISTORY_LOADING_RENAMING':return t({'id':'AI_CHAT_HISTORY_LOADING_RENAMING','string':'Renaming\x20the\x20chat...'});case'AI_CHAT_HISTORY_LOADING_PINNING':return t({'id':'AI_CHAT_HISTORY_LOADING_PINNING','string':'Pinning\x20the\x20chat...'});case'AI_CHAT_HISTORY_LOADING_UNPINNING':return t({'id':'AI_CHAT_HISTORY_LOADING_UNPINNING','string':'Unpinning\x20the\x20chat...'});case'AI_CHAT_HISTORY_CATEGORY_PINNED':return t({'id':'AI_CHAT_HISTORY_CATEGORY_PINNED','string':'Pinned'});case'AI_CHAT_HISTORY_CATEGORY_TODAY':return t({'id':'AI_CHAT_HISTORY_CATEGORY_TODAY','string':'Today'});case'AI_CHAT_HISTORY_CATEGORY_YESTERDAY':return t({'id':'AI_CHAT_HISTORY_CATEGORY_YESTERDAY','string':'Yesterday'});case'AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS':return t({'id':'AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','string':'Last\x2014\x20days'});case'AI_CHAT_HISTORY_CATEGORY_LATER':return t({'id':'AI_CHAT_HISTORY_CATEGORY_LATER','string':'Later'});case'AI_CHAT_HISTORY_ERROR_UPDATE_TITLE':return t({'id':'AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','string':'Sorry,\x20we\x20couldn\x27t\x20change\x20the\x20\x22%0\x22\x20chat\x20name.\x20Please\x20try\x20again\x20in\x20a\x20moment.'},_0x4f36a3);case'AI_CHAT_HISTORY_ERROR_UPDATE_PINNED':return t({'id':'AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','string':'Sorry,\x20we\x20couldn\x27t\x20%0\x20the\x20\x22%1\x22\x20chat.\x20Please\x20try\x20again\x20in\x20a\x20moment.'},_0x4f36a3);case'AI_CHAT_HISTORY_ERROR_REMOVE_ITEM':return t({'id':'AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','string':'Sorry,\x20we\x20couldn\x27t\x20delete\x20the\x20\x22%0\x22\x20chat.\x20Please\x20try\x20again\x20in\x20a\x20moment.'},_0x4f36a3);case'AI_CHAT_HISTORY_ERROR_LOAD_ITEMS':return t({'id':'AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','string':'Sorry,\x20we\x20couldn\x27t\x20generate\x20the\x20chat\x20history.\x20Please\x20try\x20again\x20in\x20a\x20moment.'});case'AI_CHAT_HISTORY_ERROR_GENERIC':return t({'id':'AI_CHAT_HISTORY_ERROR_GENERIC','string':'Something\x20went\x20wrong.\x20Please\x20try\x20again\x20in\x20a\x20moment.'});case'AI_CHAT_HISTORY_PIN_ACTION':return t({'id':'AI_CHAT_HISTORY_PIN_ACTION','string':'pin'});case'AI_CHAT_HISTORY_UNPIN_ACTION':return t({'id':'AI_CHAT_HISTORY_UNPIN_ACTION','string':'unpin'});case'AI_BALLOON_APPLY_BUTTON':return t({'id':'AI_BALLOON_APPLY_BUTTON','string':'Apply'});case'AI_BALLOON_SUGGEST_BUTTON':return t({'id':'AI_BALLOON_SUGGEST_BUTTON','string':'Suggest'});case'AI_BALLOON_NEXT_TOOLTIP':return t({'id':'AI_BALLOON_NEXT_TOOLTIP','string':'Next'});case'AI_BALLOON_PREVIOUS_TOOLTIP':return t({'id':'AI_BALLOON_PREVIOUS_TOOLTIP','string':'Previous'});case'AI_SUGGESTION_NO_PARTS_WARNING':return t({'id':'AI_SUGGESTION_NO_PARTS_WARNING','string':'The\x20suggestion\x20can’t\x20be\x20applied\x20to\x20the\x20editor\x20because\x20the\x20system\x20can’t\x20display\x20it\x20correctly..'});case'AI_SUGGESTION_EMPTY_PART_WARNING':return t({'id':'AI_SUGGESTION_EMPTY_PART_WARNING','string':'Some\x20suggestions\x20can’t\x20be\x20applied\x20to\x20the\x20editor\x20because\x20the\x20system\x20can’t\x20display\x20them\x20correctly.'});case'AI_ACTIONS_TRY_AGAIN':return t({'id':'AI_ACTIONS_TRY_AGAIN','string':'Try\x20again'});case'AI_MODEL_DESCRIPTION_AGENT-1':return t({'id':'AI_MODEL_DESCRIPTION_AGENT-1','string':'Automatically\x20selects\x20the\x20best\x20model\x20for\x20speed,\x20quality,\x20and\x20cost'});case'AI_MODEL_DESCRIPTION_GPT-5':return t({'id':'AI_MODEL_DESCRIPTION_GPT-5','string':'OpenAI\x27s\x20flagship\x20model\x20for\x20advanced\x20reasoning,\x20creativity,\x20and\x20complex\x20tasks'});case'AI_MODEL_DESCRIPTION_GPT-5-MINI':return t({'id':'AI_MODEL_DESCRIPTION_GPT-5-MINI','string':'A\x20lightweight\x20version\x20of\x20GPT-5\x20for\x20faster,\x20more\x20cost-efficient\x20responses'});case'AI_MODEL_DESCRIPTION_GPT-4.1':return t({'id':'AI_MODEL_DESCRIPTION_GPT-4.1','string':'OpenAI\x27s\x20model\x20for\x20reliable\x20reasoning,\x20speed,\x20and\x20versatility'});case'AI_MODEL_DESCRIPTION_GPT-4.1-MINI':return t({'id':'AI_MODEL_DESCRIPTION_GPT-4.1-MINI','string':'A\x20lighter\x20variant\x20of\x20GPT-4.1\x20that\x20balances\x20speed\x20and\x20cost\x20while\x20maintaining\x20solid\x20accuracy'});case'AI_MODEL_DESCRIPTION_CLAUDE-3-5-HAIKU':return t({'id':'AI_MODEL_DESCRIPTION_CLAUDE-3-5-HAIKU','string':'Anthropic\x27s\x20fast,\x20cost-efficient\x20model\x20for\x20simpler\x20tasks'});case'AI_MODEL_DESCRIPTION_CLAUDE-4-SONNET':return t({'id':'AI_MODEL_DESCRIPTION_CLAUDE-4-SONNET','string':'Advanced\x20model\x20with\x20strong\x20reasoning\x20and\x20reliability\x20for\x20complex\x20tasks'});case'AI_MODEL_DESCRIPTION_GEMINI-2-5-PRO':return t({'id':'AI_MODEL_DESCRIPTION_GEMINI-2-5-PRO','string':'Google\x27s\x20advanced\x20model\x20for\x20versatile\x20problem-solving\x20and\x20research'});case'AI_MODEL_DESCRIPTION_GEMINI-2-5-FLASH':return t({'id':'AI_MODEL_DESCRIPTION_GEMINI-2-5-FLASH','string':'Lightweight\x20Gemini\x20model\x20for\x20fast,\x20cost-efficient\x20interactions'});default:return _0xa13578;}}
|
|
@@ -0,0 +1,12 @@
|
|
|
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/aicore/utils/createresizebutton
|
|
7
|
+
*/
|
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { ButtonView, type View } from 'ckeditor5/src/ui.js';
|
|
10
|
+
export declare function createResizeButton<T extends View & {
|
|
11
|
+
isMaximized: boolean;
|
|
12
|
+
}>(locale: Locale, view: T): ButtonView;
|
|
@@ -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 _0x439c(_0x1026b4,_0x494fea){const _0x38cd2c=_0x38cd();return _0x439c=function(_0x439cbf,_0x1f6dc1){_0x439cbf=_0x439cbf-0x144;let _0x44c585=_0x38cd2c[_0x439cbf];return _0x44c585;},_0x439c(_0x1026b4,_0x494fea);}(function(_0x169537,_0x522228){const _0x5b195f=_0x439c,_0x2c74ef=_0x169537();while(!![]){try{const _0x5eb87a=-parseInt(_0x5b195f(0x155))/0x1*(parseInt(_0x5b195f(0x157))/0x2)+-parseInt(_0x5b195f(0x154))/0x3*(parseInt(_0x5b195f(0x15a))/0x4)+-parseInt(_0x5b195f(0x153))/0x5+parseInt(_0x5b195f(0x150))/0x6*(parseInt(_0x5b195f(0x152))/0x7)+parseInt(_0x5b195f(0x14c))/0x8+-parseInt(_0x5b195f(0x156))/0x9*(-parseInt(_0x5b195f(0x14a))/0xa)+parseInt(_0x5b195f(0x147))/0xb;if(_0x5eb87a===_0x522228)break;else _0x2c74ef['push'](_0x2c74ef['shift']());}catch(_0x527549){_0x2c74ef['push'](_0x2c74ef['shift']());}}}(_0x38cd,0x9612a));import{ButtonView as _0x3c1c6f}from'ckeditor5/src/ui.js';function _0x38cd(){const _0xc96919=['AI_TABS_LABEL_MAXIMIZE','set','2801337wbuCdz','isOn','ck-ai-tabs__resize\x20ck-ai-button-tertiary-text','5288450CjodJT','AI_TABS_LABEL_MINIMIZE','2052032afIrAs','fire','bind','resizeTabs','264KfOcxT','isMaximized','125188ikSpOG','5855280DTuoVE','15HKgRPC','1mAGaMP','18kZbXlu','848986LXnBJW','label','icon','116408osAvNH','execute'];_0x38cd=function(){return _0xc96919;};return _0x38cd();}import{IconMaximize as _0x1ae86b,IconMinimize as _0x45673e}from'ckeditor5/src/icons.js';import{getTranslation as _0x4a8a77}from'../../aicore/utils/common-translations.js';export function createResizeButton(_0xb06542,_0x4af1c1){const _0x9535c1=_0x439c,_0x1246df=new _0x3c1c6f(_0xb06542),_0x587ae7=_0x4a8a77(_0xb06542,_0x9535c1(0x14b)),_0x39c868=_0x4a8a77(_0xb06542,_0x9535c1(0x145));return _0x1246df[_0x9535c1(0x146)]({'withText':!0x1,'icon':_0x1ae86b,'tooltip':!0x0,'class':_0x9535c1(0x149)}),_0x1246df[_0x9535c1(0x14e)](_0x9535c1(0x158))['to'](_0x4af1c1,_0x9535c1(0x151),_0x2e92e7=>_0x2e92e7?_0x587ae7:_0x39c868),_0x1246df[_0x9535c1(0x14e)](_0x9535c1(0x159))['to'](_0x4af1c1,_0x9535c1(0x151),_0x2a58c1=>_0x2a58c1?_0x45673e:_0x1ae86b),_0x1246df[_0x9535c1(0x14e)](_0x9535c1(0x148))['to'](_0x4af1c1,_0x9535c1(0x151)),_0x1246df['on'](_0x9535c1(0x144),()=>{const _0x2ce6ef=_0x9535c1;_0x4af1c1[_0x2ce6ef(0x14d)](_0x2ce6ef(0x14f));}),_0x1246df;}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 AnyNode, type Document, type DocumentPath } from './htmlparser.js';
|
|
6
|
+
/**
|
|
7
|
+
* Represents a position in htmlparser's Document.
|
|
8
|
+
*
|
|
9
|
+
* * When the parent of the position is not a `Text`, the index represents the index of a child.
|
|
10
|
+
* * When the parent of the positions is a `Text`, the index represents a character in that text node.
|
|
11
|
+
*/
|
|
12
|
+
export declare class DocumentPosition {
|
|
13
|
+
readonly parent: AnyNode;
|
|
14
|
+
readonly index: number;
|
|
15
|
+
readonly document: Document;
|
|
16
|
+
constructor(document: Document, parent: AnyNode, index: number);
|
|
17
|
+
get path(): DocumentPath;
|
|
18
|
+
isEqual(otherPosition: DocumentPosition): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Returns the next node in the document. It traverses both horizontally and vertically (like a walker).
|
|
21
|
+
*/
|
|
22
|
+
get nextNode(): AnyNode | null;
|
|
23
|
+
/**
|
|
24
|
+
* Returns the previous node in the document. It traverses both horizontally and vertically (like a walker).
|
|
25
|
+
*/
|
|
26
|
+
get previousNode(): AnyNode | null;
|
|
27
|
+
/**
|
|
28
|
+
* Returns a position nudged to the word boundary so that the position does not split a word.
|
|
29
|
+
*
|
|
30
|
+
* For instance:
|
|
31
|
+
* * "fo^o bar baz" nudged to "start" will return "^foo bar baz",
|
|
32
|
+
* * "fo^o bar baz" nudged to "end" will return "foo ^bar baz",
|
|
33
|
+
* * "^foo bar baz" nudged any way will return "^foo bar baz",
|
|
34
|
+
* * "foo ^bar baz" nudged any way will return "foo ^bar baz",
|
|
35
|
+
*/
|
|
36
|
+
getNudgedToWordBoundary(gravity?: 'start' | 'end'): DocumentPosition;
|
|
37
|
+
static createAfter(document: Document, node: AnyNode): DocumentPosition | null;
|
|
38
|
+
static createBefore(document: Document, node: AnyNode): DocumentPosition | null;
|
|
39
|
+
static createAt(document: Document, node: AnyNode, where?: 'start' | 'end' | number): DocumentPosition;
|
|
40
|
+
static createFromPath(document: Document, path: DocumentPath): DocumentPosition;
|
|
41
|
+
}
|