@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,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
|
+
declare const AIReviewCheckResult_base: {
|
|
6
|
+
new (): import("ckeditor5/src/utils.js").Emitter;
|
|
7
|
+
prototype: import("ckeditor5/src/utils.js").Emitter;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Represents a single change of the document that is a result of an review check run.
|
|
11
|
+
*/
|
|
12
|
+
export declare class AIReviewCheckResult extends /* #__PURE__ */ AIReviewCheckResult_base {
|
|
13
|
+
/**
|
|
14
|
+
* The id of the change.
|
|
15
|
+
*/
|
|
16
|
+
readonly id: string;
|
|
17
|
+
/**
|
|
18
|
+
* The content of the change.
|
|
19
|
+
*/
|
|
20
|
+
readonly contentNew: string;
|
|
21
|
+
/**
|
|
22
|
+
* The initial content of the change.
|
|
23
|
+
*/
|
|
24
|
+
readonly contentInitial: string;
|
|
25
|
+
/**
|
|
26
|
+
* The document version for which this result was created.
|
|
27
|
+
*/
|
|
28
|
+
readonly documentVersion: number;
|
|
29
|
+
/**
|
|
30
|
+
* Creates a new instance of the AIReviewCheckResult.
|
|
31
|
+
*/
|
|
32
|
+
constructor({ id, contentNew, contentInitial, documentVersion }: {
|
|
33
|
+
id: string;
|
|
34
|
+
contentNew: string;
|
|
35
|
+
contentInitial: string;
|
|
36
|
+
documentVersion: number;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x4f0e(_0x3c7575,_0x1e6b85){var _0x59e1be=_0x59e1();return _0x4f0e=function(_0x4f0e60,_0x76d85){_0x4f0e60=_0x4f0e60-0x7a;var _0x11d3f2=_0x59e1be[_0x4f0e60];return _0x11d3f2;},_0x4f0e(_0x3c7575,_0x1e6b85);}var _0x2280c9=_0x4f0e;(function(_0x4353b3,_0x36d479){var _0x4be903=_0x4f0e,_0x5de63e=_0x4353b3();while(!![]){try{var _0x3ae2b8=parseInt(_0x4be903(0x7c))/0x1*(-parseInt(_0x4be903(0x80))/0x2)+-parseInt(_0x4be903(0x87))/0x3*(parseInt(_0x4be903(0x86))/0x4)+-parseInt(_0x4be903(0x81))/0x5*(parseInt(_0x4be903(0x7f))/0x6)+-parseInt(_0x4be903(0x7e))/0x7*(parseInt(_0x4be903(0x83))/0x8)+parseInt(_0x4be903(0x84))/0x9+-parseInt(_0x4be903(0x7a))/0xa*(-parseInt(_0x4be903(0x88))/0xb)+parseInt(_0x4be903(0x82))/0xc;if(_0x3ae2b8===_0x36d479)break;else _0x5de63e['push'](_0x5de63e['shift']());}catch(_0x3ea9ea){_0x5de63e['push'](_0x5de63e['shift']());}}}(_0x59e1,0x4f195));function _0x59e1(){var _0x425d81=['507258QFXZfo','2213525gEiLfd','15949716dbnHlX','900008zabrTS','3843324hEzzox','documentVersion','2288IHCWgG','1320kKhEks','22561ANWBdS','1070FxeNpZ','contentNew','2iKsShk','contentInitial','28KDFgUB','6OXqxZt'];_0x59e1=function(){return _0x425d81;};return _0x59e1();}import{EmitterMixin as _0x548e8d}from'ckeditor5/src/utils.js';export class AIReviewCheckResult extends _0x548e8d(){['id'];[_0x2280c9(0x7b)];[_0x2280c9(0x7d)];[_0x2280c9(0x85)];constructor({id:_0x55797c,contentNew:_0x194abb,contentInitial:_0x539dc4,documentVersion:_0x6a1a9a}){var _0x2a67d5=_0x2280c9;super(),this['id']=_0x55797c,this[_0x2a67d5(0x7b)]=_0x194abb,this[_0x2a67d5(0x7d)]=_0x539dc4,this[_0x2a67d5(0x85)]=_0x6a1a9a;}}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { type AIReviewCheckResult } from './aireviewcheckresult.js';
|
|
6
|
+
import { type AIReviewModeChangeData } from '../aireviewmodeediting.js';
|
|
7
|
+
import { type Operation } from 'ckeditor5/src/engine.js';
|
|
8
|
+
declare const AIReviewCheckResultChange_base: {
|
|
9
|
+
new (): import("ckeditor5/src/utils.js").Observable;
|
|
10
|
+
prototype: import("ckeditor5/src/utils.js").Observable;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Represents a single change of the document that is a result of an review check run.
|
|
14
|
+
*/
|
|
15
|
+
export declare class AIReviewCheckResultChange extends /* #__PURE__ */ AIReviewCheckResultChange_base {
|
|
16
|
+
/**
|
|
17
|
+
* The id of the change.
|
|
18
|
+
*/
|
|
19
|
+
readonly id: string;
|
|
20
|
+
/**
|
|
21
|
+
* Parent result of the change.
|
|
22
|
+
*
|
|
23
|
+
* Each change belongs to a single result, while each result can have multiple changes.
|
|
24
|
+
* This is because the AI API returns multiple changes in a single result and the plugin
|
|
25
|
+
* splits them into separate changes.
|
|
26
|
+
*/
|
|
27
|
+
readonly parent: AIReviewCheckResult;
|
|
28
|
+
/**
|
|
29
|
+
* The status of the change.
|
|
30
|
+
*
|
|
31
|
+
* @observable
|
|
32
|
+
*/
|
|
33
|
+
status: 'active' | 'accepted' | 'rejected';
|
|
34
|
+
/**
|
|
35
|
+
* Creates a new instance of the AIReviewCheckResult.
|
|
36
|
+
*/
|
|
37
|
+
constructor(id: string, data: AIReviewModeChangeData, parent: AIReviewCheckResult);
|
|
38
|
+
get contentDiffed(): string;
|
|
39
|
+
get operations(): Array<Operation>;
|
|
40
|
+
get operationsIsolated(): Array<Operation>;
|
|
41
|
+
}
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
var _0x1c02f1=_0x118a;function _0x118a(_0x2a41b2,_0x457ecf){var _0x39e560=_0x39e5();return _0x118a=function(_0x118a82,_0x3e1c25){_0x118a82=_0x118a82-0x71;var _0x24ac23=_0x39e560[_0x118a82];return _0x24ac23;},_0x118a(_0x2a41b2,_0x457ecf);}(function(_0x453f14,_0x1c443e){var _0xe892c5=_0x118a,_0x4070c6=_0x453f14();while(!![]){try{var _0x25b942=-parseInt(_0xe892c5(0x7c))/0x1*(parseInt(_0xe892c5(0x85))/0x2)+parseInt(_0xe892c5(0x82))/0x3+parseInt(_0xe892c5(0x73))/0x4*(-parseInt(_0xe892c5(0x78))/0x5)+parseInt(_0xe892c5(0x76))/0x6*(parseInt(_0xe892c5(0x81))/0x7)+parseInt(_0xe892c5(0x7a))/0x8*(parseInt(_0xe892c5(0x75))/0x9)+-parseInt(_0xe892c5(0x79))/0xa*(-parseInt(_0xe892c5(0x7f))/0xb)+-parseInt(_0xe892c5(0x87))/0xc*(parseInt(_0xe892c5(0x74))/0xd);if(_0x25b942===_0x1c443e)break;else _0x4070c6['push'](_0x4070c6['shift']());}catch(_0x4879d8){_0x4070c6['push'](_0x4070c6['shift']());}}}(_0x39e5,0x9f1a0));function _0x39e5(){var _0x36e708=['operations','13003wgTmDx','_editorOperations','parent','2260247TMcKUS','contentDiffed','7926177zllWvL','2329905rAfhtl','active','set','12ZsDFtT','operationsIsolated','90708WkkuPW','context','status','916tiMCOk','3133bCuOTl','9BcHsLe','6jfxyWi','_data','16095HDJtDQ','50XFEpkS','2817896rjPOor'];_0x39e5=function(){return _0x36e708;};return _0x39e5();}import{ObservableMixin as _0x42a29a}from'ckeditor5/src/utils.js';export class AIReviewCheckResultChange extends _0x42a29a(){['id'];[_0x1c02f1(0x7e)];[_0x1c02f1(0x77)];[_0x1c02f1(0x7d)]=[];constructor(_0x12a37a,_0x1f88c3,_0xa3f09){var _0x3a4022=_0x1c02f1;super(),this['id']=_0x12a37a,this[_0x3a4022(0x7e)]=_0xa3f09,this[_0x3a4022(0x77)]=_0x1f88c3,this[_0x3a4022(0x84)](_0x3a4022(0x72),_0x3a4022(0x83));}get[_0x1c02f1(0x80)](){var _0x2c95c9=_0x1c02f1;return this[_0x2c95c9(0x77)][_0x2c95c9(0x71)]();}get[_0x1c02f1(0x7b)](){var _0x25bbc7=_0x1c02f1;return this[_0x25bbc7(0x77)][_0x25bbc7(0x7b)];}get[_0x1c02f1(0x86)](){var _0x5d8fe1=_0x1c02f1;return this[_0x5d8fe1(0x77)][_0x5d8fe1(0x86)];}}
|
|
@@ -0,0 +1,101 @@
|
|
|
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 AIReviewCheck } from './aireviewcheck.js';
|
|
6
|
+
import { AIReviewCheckResult } from './aireviewcheckresult.js';
|
|
7
|
+
import { type AIReviewModeChangeData, type AIDocumentData } from '../aireviewmodeediting.js';
|
|
8
|
+
import { type AIConnector } from '../../aicore/aiconnector.js';
|
|
9
|
+
import { AIReviewCheckResultChange } from './aireviewcheckresultchange.js';
|
|
10
|
+
declare const AIReviewCheckRun_base: {
|
|
11
|
+
new (): import("ckeditor5/src/utils.js").Observable;
|
|
12
|
+
prototype: import("ckeditor5/src/utils.js").Observable;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Represents a single review check run and its results.
|
|
16
|
+
*/
|
|
17
|
+
export declare abstract class AIReviewCheckRun extends /* #__PURE__ */ AIReviewCheckRun_base {
|
|
18
|
+
/**
|
|
19
|
+
* The status of the check run.
|
|
20
|
+
*/
|
|
21
|
+
status: AIReviewCheckRunStatus;
|
|
22
|
+
/**
|
|
23
|
+
* The check run ID.
|
|
24
|
+
*/
|
|
25
|
+
readonly id: string;
|
|
26
|
+
constructor(documentData: AIDocumentData, sourceCheck: AIReviewCheck, connector: AIConnector, args?: Record<string, any>);
|
|
27
|
+
/**
|
|
28
|
+
* Returns the document data obtained at the time of the check run.
|
|
29
|
+
*/
|
|
30
|
+
get documentData(): AIDocumentData;
|
|
31
|
+
/**
|
|
32
|
+
* Returns the number of successfully processed results.
|
|
33
|
+
*/
|
|
34
|
+
get processedResultsCount(): number;
|
|
35
|
+
/**
|
|
36
|
+
* Starts the check run resulting in an API call. After the call is finished, the status
|
|
37
|
+
* and list of changes are updated.
|
|
38
|
+
*/
|
|
39
|
+
start(): Promise<void>;
|
|
40
|
+
/**
|
|
41
|
+
* Restarts the check run by clearing previous results and starting a new run.
|
|
42
|
+
*/
|
|
43
|
+
restart(): Promise<void>;
|
|
44
|
+
addResultChanges(resultId: string, changes: Array<AIReviewModeChangeData>): void;
|
|
45
|
+
/**
|
|
46
|
+
* Aborts the check run.
|
|
47
|
+
*/
|
|
48
|
+
abort(): void;
|
|
49
|
+
isChangeActive(changeId: string): boolean;
|
|
50
|
+
getActiveChanges(): Array<AIReviewCheckResultChange>;
|
|
51
|
+
markAllChangesAsAccepted(): void;
|
|
52
|
+
markChangeAsAccepted(changeId: string): void;
|
|
53
|
+
markChangeAsRejected(changeId: string): void;
|
|
54
|
+
}
|
|
55
|
+
export type AIReviewCheckRunUpdatedEvent = {
|
|
56
|
+
name: 'reviewCheckRunUpdated';
|
|
57
|
+
args: [
|
|
58
|
+
{
|
|
59
|
+
status: AIReviewCheckRunStatus;
|
|
60
|
+
run: AIReviewCheckRun;
|
|
61
|
+
error?: Error;
|
|
62
|
+
}
|
|
63
|
+
];
|
|
64
|
+
};
|
|
65
|
+
export type AIReviewCheckResultAddedEvent = {
|
|
66
|
+
name: 'reviewCheckResultAdded';
|
|
67
|
+
args: [
|
|
68
|
+
{
|
|
69
|
+
result: AIReviewCheckResult;
|
|
70
|
+
source: AIReviewCheckRun;
|
|
71
|
+
}
|
|
72
|
+
];
|
|
73
|
+
};
|
|
74
|
+
export type AIReviewCheckResultReadyEvent = {
|
|
75
|
+
name: 'reviewCheckResultReady';
|
|
76
|
+
args: [
|
|
77
|
+
{
|
|
78
|
+
changes: Array<AIReviewCheckResultChange>;
|
|
79
|
+
result: AIReviewCheckResult;
|
|
80
|
+
source: AIReviewCheckRun;
|
|
81
|
+
}
|
|
82
|
+
];
|
|
83
|
+
};
|
|
84
|
+
export type AIReviewCheckResultChangeAcceptedEvent = {
|
|
85
|
+
name: 'reviewCheckResultAccepted';
|
|
86
|
+
args: [
|
|
87
|
+
{
|
|
88
|
+
change: AIReviewCheckResultChange;
|
|
89
|
+
}
|
|
90
|
+
];
|
|
91
|
+
};
|
|
92
|
+
export type AIReviewCheckResultChangeRejectedEvent = {
|
|
93
|
+
name: 'reviewCheckResultRejected';
|
|
94
|
+
args: [
|
|
95
|
+
{
|
|
96
|
+
change: AIReviewCheckResultChange;
|
|
97
|
+
}
|
|
98
|
+
];
|
|
99
|
+
};
|
|
100
|
+
export type AIReviewCheckRunStatus = 'initialized' | 'loading' | 'data' | 'ready' | 'error-chunk' | 'error-general' | 'aborted' | 'finished';
|
|
101
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x13cdf5=_0x56ff;(function(_0xa26973,_0x24d624){const _0x4b7d5e=_0x56ff,_0x2c2412=_0xa26973();while(!![]){try{const _0x82ceff=parseInt(_0x4b7d5e(0x101))/0x1*(-parseInt(_0x4b7d5e(0x103))/0x2)+-parseInt(_0x4b7d5e(0x135))/0x3+parseInt(_0x4b7d5e(0x117))/0x4+-parseInt(_0x4b7d5e(0x13b))/0x5*(-parseInt(_0x4b7d5e(0x137))/0x6)+-parseInt(_0x4b7d5e(0x126))/0x7*(parseInt(_0x4b7d5e(0x111))/0x8)+-parseInt(_0x4b7d5e(0x127))/0x9*(-parseInt(_0x4b7d5e(0x10b))/0xa)+-parseInt(_0x4b7d5e(0x130))/0xb;if(_0x82ceff===_0x24d624)break;else _0x2c2412['push'](_0x2c2412['shift']());}catch(_0x4a3458){_0x2c2412['push'](_0x2c2412['shift']());}}}(_0x32ee,0x663d2));function _0x56ff(_0x2f60fb,_0x5cfa16){const _0x32ee16=_0x32ee();return _0x56ff=function(_0x56ff42,_0x4999eb){_0x56ff42=_0x56ff42-0xf5;let _0x405d89=_0x32ee16[_0x56ff42];return _0x405d89;},_0x56ff(_0x2f60fb,_0x5cfa16);}import{ObservableMixin as _0x46c129,uid as _0x4c1ecf}from'ckeditor5/src/utils.js';import{AIReviewCheckResult as _0xc59c3}from'./aireviewcheckresult.js';import{AIReviewCheckResultChange as _0x232168}from'./aireviewcheckresultchange.js';function _0x32ee(){const _0x3e1abc=['reviewCheckResultReady','rejected','dataId','operation','error-chunk','addResultChanges','active','507ZWpHUY','documentData','1290zfEcOn','elements','ready','isChangeActive','data','getActiveChanges','_checkIfFinished','getStream','10bPlBpA','push','forEach','Not\x20implemented.','_changes','status','3145880wTqejV','abort','markChangeAsAccepted','start','loading','error-general','448108ggCwmk','getContent','_results','clear','filter','_activeRequest','_createApiRequest','size','markChangeAsRejected','reviewCheckResultAccepted','_aiConnector','finished','accepted','processedResultsCount','reviewCheckResultAdded','7bAeqGr','7359561cSLSOb','fire','find','abortController','_currentError','markAllChangesAsAccepted','_addReviewCheckResult','_sourceCheck','reviewCheckRunUpdated','2343561UxEotJ','aborted','length','unmodified','_documentData','726090dtXzQt','initialized','330VswdOU','textDelta','reviewCheckResultRejected','set','60395eKlRxR','error','change:status','restart','_reviewArgs','get','version'];_0x32ee=function(){return _0x3e1abc;};return _0x32ee();}export class AIReviewCheckRun extends _0x46c129(){['id']=_0x4c1ecf();[_0x13cdf5(0x119)]=new Map();[_0x13cdf5(0x10f)]=[];[_0x13cdf5(0x134)];[_0x13cdf5(0x12e)];[_0x13cdf5(0x121)];[_0x13cdf5(0xf7)];[_0x13cdf5(0x11c)]=null;[_0x13cdf5(0x12b)];constructor(_0x4b757c,_0x454e7d,_0x5652c0,_0x5bd746){const _0x304b29=_0x13cdf5;super(),this[_0x304b29(0x134)]=_0x4b757c,this[_0x304b29(0x12e)]=_0x454e7d,this[_0x304b29(0x121)]=_0x5652c0,this[_0x304b29(0xf7)]=_0x5bd746,this['on'](_0x304b29(0xf5),(_0x3cf483,_0x2d007b,_0x51a2ce)=>{const _0x5d2681=_0x304b29;this[_0x5d2681(0x128)](_0x5d2681(0x12f),{'status':_0x51a2ce,'run':this,'error':this[_0x5d2681(0x12b)]});}),this[_0x304b29(0x13a)](_0x304b29(0x110),_0x304b29(0x136));}get[_0x13cdf5(0x102)](){const _0x53082d=_0x13cdf5;return this[_0x53082d(0x134)];}get[_0x13cdf5(0x124)](){const _0x2781b6=_0x13cdf5;return this[_0x2781b6(0x119)][_0x2781b6(0x11e)];}async[_0x13cdf5(0x114)](){const _0x36074b=_0x13cdf5;this[_0x36074b(0x110)]=_0x36074b(0x115),this[_0x36074b(0x12b)]=void 0x0;try{this[_0x36074b(0x11c)]=this[_0x36074b(0x11d)]();const _0x4a2d10=await this[_0x36074b(0x11c)][_0x36074b(0x10a)]();this[_0x36074b(0x110)]=_0x36074b(0x107);for await(const _0x946b7 of _0x4a2d10)_0x36074b(0x133)!==_0x946b7[_0x36074b(0x107)][_0x36074b(0xfd)]&&(_0x36074b(0x13c)!==_0x946b7[_0x36074b(0x107)][_0x36074b(0xfd)]?this[_0x36074b(0x12d)](_0x946b7[_0x36074b(0x107)][_0x36074b(0xfc)],_0x946b7[_0x36074b(0x107)][_0x36074b(0x138)]):this[_0x36074b(0x110)]=_0x36074b(0xfe));_0x36074b(0xfe)!==this[_0x36074b(0x110)]&&(this[_0x36074b(0x110)]=_0x36074b(0x105));}catch(_0x5260e2){this[_0x36074b(0x12b)]=_0x5260e2,this[_0x36074b(0x110)]=_0x36074b(0x116);}finally{this[_0x36074b(0x11c)]=null;}}async[_0x13cdf5(0xf6)](){const _0x5b4761=_0x13cdf5;this[_0x5b4761(0x119)][_0x5b4761(0x11a)](),this[_0x5b4761(0x10f)][_0x5b4761(0x132)]=0x0,this[_0x5b4761(0x12b)]=void 0x0,await this[_0x5b4761(0x114)]();}[_0x13cdf5(0xff)](_0x1e7b28,_0x2b4c84){const _0x5dc3d3=_0x13cdf5,_0x37fd17=this[_0x5dc3d3(0x119)][_0x5dc3d3(0xf8)](_0x1e7b28);if(!_0x37fd17)return;const _0x26c579=[];_0x2b4c84[_0x5dc3d3(0x10d)]((_0x4f8829,_0x189ad7)=>{const _0x3c9129=_0x5dc3d3,_0xce7074=new _0x232168(_0x37fd17['id']+'-'+_0x189ad7,_0x4f8829,_0x37fd17);_0xce7074['on'](_0x3c9129(0xf5),()=>{const _0x439476=_0x3c9129;_0x439476(0x123)===_0xce7074[_0x439476(0x110)]?this[_0x439476(0x128)](_0x439476(0x120),{'change':_0xce7074}):_0x439476(0xfb)===_0xce7074[_0x439476(0x110)]&&this[_0x439476(0x128)](_0x439476(0x139),{'change':_0xce7074});}),this[_0x3c9129(0x10f)][_0x3c9129(0x10c)](_0xce7074),_0x26c579[_0x3c9129(0x10c)](_0xce7074);}),this[_0x5dc3d3(0x128)](_0x5dc3d3(0xfa),{'changes':_0x26c579,'result':_0x37fd17,'source':this});}[_0x13cdf5(0x112)](){const _0x4c24c1=_0x13cdf5;this[_0x4c24c1(0x11c)]&&(this[_0x4c24c1(0x11c)][_0x4c24c1(0x12a)][_0x4c24c1(0x112)](),this[_0x4c24c1(0x11c)]=null,this[_0x4c24c1(0x110)]=_0x4c24c1(0x131));}[_0x13cdf5(0x106)](_0x32d8cc){const _0x3d8191=_0x13cdf5,_0x1017cf=this[_0x3d8191(0x10f)][_0x3d8191(0x129)](_0xcf316=>_0xcf316['id']===_0x32d8cc);return!(!_0x1017cf||_0x3d8191(0x100)!==_0x1017cf[_0x3d8191(0x110)]);}[_0x13cdf5(0x108)](){const _0xe356a3=_0x13cdf5;return this[_0xe356a3(0x10f)][_0xe356a3(0x11b)](_0x4ba3e0=>_0xe356a3(0x100)===_0x4ba3e0[_0xe356a3(0x110)]);}[_0x13cdf5(0x12c)](){const _0x465da1=_0x13cdf5;for(const _0x5352da of this[_0x465da1(0x10f)])_0x465da1(0x100)===_0x5352da[_0x465da1(0x110)]&&(_0x5352da[_0x465da1(0x110)]=_0x465da1(0x123));this[_0x465da1(0x109)]();}[_0x13cdf5(0x113)](_0x3a1390){const _0x401c73=_0x13cdf5,_0x19c402=this[_0x401c73(0x10f)][_0x401c73(0x129)](_0x16cdfd=>_0x16cdfd['id']===_0x3a1390);_0x19c402&&_0x401c73(0x100)===_0x19c402[_0x401c73(0x110)]&&(_0x19c402[_0x401c73(0x110)]=_0x401c73(0x123)),this[_0x401c73(0x109)]();}[_0x13cdf5(0x11f)](_0x36d25c){const _0x6b4efc=_0x13cdf5,_0xd3b7b1=this[_0x6b4efc(0x10f)][_0x6b4efc(0x129)](_0x1fb8ca=>_0x1fb8ca['id']===_0x36d25c);_0xd3b7b1&&_0x6b4efc(0x100)===_0xd3b7b1[_0x6b4efc(0x110)]&&(_0xd3b7b1[_0x6b4efc(0x110)]=_0x6b4efc(0xfb)),this[_0x6b4efc(0x109)]();}[_0x13cdf5(0x12d)](_0x1bcc12,_0x296105){const _0x1fc897=_0x13cdf5,_0x1fab8c=this[_0x1fc897(0x134)][_0x1fc897(0x104)][_0x1fc897(0xf8)](_0x1bcc12);if(!_0x1fab8c)return;const _0x4a9ca7=_0x1fab8c[_0x1fc897(0x118)]();if(_0x4a9ca7===_0x296105)return;const _0x1637ac=new _0xc59c3({'id':_0x1bcc12,'contentInitial':_0x4a9ca7,'contentNew':_0x296105,'documentVersion':this[_0x1fc897(0x134)][_0x1fc897(0xf9)]});this[_0x1fc897(0x119)][_0x1fc897(0x13a)](_0x1637ac['id'],_0x1637ac),this[_0x1fc897(0x128)](_0x1fc897(0x125),{'result':_0x1637ac,'source':this});}[_0x13cdf5(0x109)](){const _0x3f54f9=_0x13cdf5;if(_0x3f54f9(0x105)!==this[_0x3f54f9(0x110)])return;0x0===this[_0x3f54f9(0x10f)][_0x3f54f9(0x11b)](_0xfa939d=>_0x3f54f9(0x100)===_0xfa939d[_0x3f54f9(0x110)])[_0x3f54f9(0x132)]&&(this[_0x3f54f9(0x110)]=_0x3f54f9(0x122));}[_0x13cdf5(0x11d)](){const _0x5e6be9=_0x13cdf5;throw new Error(_0x5e6be9(0x10e));}}
|
|
@@ -0,0 +1,18 @@
|
|
|
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/aireviewmode/model/aireviewcustomcheckrun
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { AIReviewCheckRun } from './aireviewcheckrun.js';
|
|
10
|
+
import { type AIConnector } from '../../aicore/aiconnector.js';
|
|
11
|
+
import { type AIDocumentData } from '../aireviewmodeediting.js';
|
|
12
|
+
import { type AIReviewCheck } from './aireviewcheck.js';
|
|
13
|
+
/**
|
|
14
|
+
* Represents a single custom review check run and its results.
|
|
15
|
+
*/
|
|
16
|
+
export declare class AIReviewCustomCheckRun extends AIReviewCheckRun {
|
|
17
|
+
constructor(prompt: string, model: string, documentData: AIDocumentData, sourceCheck: AIReviewCheck, connector: AIConnector);
|
|
18
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
var _0x140a3d=_0x1af2;(function(_0x16cd71,_0x12be11){var _0x575f41=_0x1af2,_0x744c5e=_0x16cd71();while(!![]){try{var _0x256a73=parseInt(_0x575f41(0x117))/0x1*(parseInt(_0x575f41(0x119))/0x2)+-parseInt(_0x575f41(0x11b))/0x3+-parseInt(_0x575f41(0x120))/0x4+parseInt(_0x575f41(0x124))/0x5+parseInt(_0x575f41(0x116))/0x6*(-parseInt(_0x575f41(0x118))/0x7)+parseInt(_0x575f41(0x11f))/0x8*(parseInt(_0x575f41(0x125))/0x9)+parseInt(_0x575f41(0x11a))/0xa*(parseInt(_0x575f41(0x126))/0xb);if(_0x256a73===_0x12be11)break;else _0x744c5e['push'](_0x744c5e['shift']());}catch(_0x2f136f){_0x744c5e['push'](_0x744c5e['shift']());}}}(_0x1ac0,0xcac7b));function _0x1af2(_0x1818c6,_0x3d4e9d){var _0x1ac0b6=_0x1ac0();return _0x1af2=function(_0x1af217,_0x4743b8){_0x1af217=_0x1af217-0x116;var _0x4758ba=_0x1ac0b6[_0x1af217];return _0x4758ba;},_0x1af2(_0x1818c6,_0x3d4e9d);}import{AIReviewCheckRun as _0x4de5c9}from'./aireviewcheckrun.js';export class AIReviewCustomCheckRun extends _0x4de5c9{[_0x140a3d(0x122)];[_0x140a3d(0x11c)];constructor(_0x1c6c33,_0x45c868,_0xf3e02,_0x3e0cbb,_0x166e05){var _0xc747f9=_0x140a3d;super(_0xf3e02,_0x3e0cbb,_0x166e05),this[_0xc747f9(0x122)]=_0x1c6c33,this[_0xc747f9(0x11c)]=_0x45c868;}[_0x140a3d(0x11e)](){var _0x3675e8=_0x140a3d;return this[_0x3675e8(0x121)][_0x3675e8(0x123)]({'content':this[_0x3675e8(0x11d)][_0x3675e8(0x127)],'prompt':this[_0x3675e8(0x122)],'model':this[_0x3675e8(0x11c)]});}}function _0x1ac0(){var _0x2147b8=['6221560wXzEfN','_aiConnector','_prompt','callCustomReview','6631555WxNEZC','12392379RLLURM','11wBfwUJ','content','41862HqWdlB','526744uYOfby','1211bHxGzb','2etJEpk','4583710wwlalr','286077fzypMW','_model','_documentData','_createApiRequest','8axCbZZ'];_0x1ac0=function(){return _0x2147b8;};return _0x1ac0();}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 AIConnector, type AIModelData } from '../../aicore/aiconnector.js';
|
|
6
|
+
declare const AIReviewModels_base: {
|
|
7
|
+
new (): import("ckeditor5/src/utils.js").Emitter;
|
|
8
|
+
prototype: import("ckeditor5/src/utils.js").Emitter;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Stores the list of available AI review models.
|
|
12
|
+
*/
|
|
13
|
+
export declare class AIReviewModels extends /* #__PURE__ */ AIReviewModels_base {
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
constructor({ connector }: {
|
|
18
|
+
connector: AIConnector;
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* Returns a list of available AI review models.
|
|
22
|
+
*/
|
|
23
|
+
getAll(): Promise<Array<AIReviewModel>>;
|
|
24
|
+
}
|
|
25
|
+
export type AIReviewModel = AIModelData;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x5ba5ac=_0x4fd4;(function(_0x16163f,_0x5f38a5){const _0x515667=_0x4fd4,_0x3edcf6=_0x16163f();while(!![]){try{const _0x5348a9=-parseInt(_0x515667(0x15f))/0x1*(parseInt(_0x515667(0x155))/0x2)+-parseInt(_0x515667(0x161))/0x3+-parseInt(_0x515667(0x157))/0x4*(parseInt(_0x515667(0x15c))/0x5)+parseInt(_0x515667(0x15b))/0x6*(-parseInt(_0x515667(0x163))/0x7)+-parseInt(_0x515667(0x164))/0x8+-parseInt(_0x515667(0x15a))/0x9*(parseInt(_0x515667(0x165))/0xa)+parseInt(_0x515667(0x158))/0xb;if(_0x5348a9===_0x5f38a5)break;else _0x3edcf6['push'](_0x3edcf6['shift']());}catch(_0x3fa381){_0x3edcf6['push'](_0x3edcf6['shift']());}}}(_0x27e0,0xe37e0));function _0x27e0(){const _0x268808=['339689XnZhqH','3382920HPfOqC','10840VxLuNp','getAll','22cAwQWi','_modelList','4zQUzVm','61792819slxGhd','list','11664derSwZ','54dOyqIU','1397815RjscDC','length','getModels','63002usrkpA','_connector','4345992FvOKHw','items'];_0x27e0=function(){return _0x268808;};return _0x27e0();}import{EmitterMixin as _0x395198}from'ckeditor5/src/utils.js';function _0x4fd4(_0x3eda6a,_0x1f2f9d){const _0x27e08a=_0x27e0();return _0x4fd4=function(_0x4fd4e2,_0x13c3e7){_0x4fd4e2=_0x4fd4e2-0x155;let _0x78f60e=_0x27e08a[_0x4fd4e2];return _0x78f60e;},_0x4fd4(_0x3eda6a,_0x1f2f9d);}export class AIReviewModels extends _0x395198(){[_0x5ba5ac(0x156)]=[];[_0x5ba5ac(0x160)];constructor({connector:_0x45e528}){const _0x18428a=_0x5ba5ac;super(),this[_0x18428a(0x160)]=_0x45e528;}async[_0x5ba5ac(0x166)](){const _0x52eb10=_0x5ba5ac;if(!this[_0x52eb10(0x156)][_0x52eb10(0x15d)])try{const _0x3e1a8b=this[_0x52eb10(0x160)][_0x52eb10(0x15e)](),_0x2bae77=await _0x3e1a8b[_0x52eb10(0x159)]();this[_0x52eb10(0x156)]=_0x2bae77[_0x52eb10(0x162)];}catch{}return this[_0x52eb10(0x156)];}}
|
|
@@ -0,0 +1,14 @@
|
|
|
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/aireviewmode/model/aireviewsystemcheckrun
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { AIReviewCheckRun } from './aireviewcheckrun.js';
|
|
10
|
+
/**
|
|
11
|
+
* Represents a single system review check run and its results.
|
|
12
|
+
*/
|
|
13
|
+
export declare class AIReviewSystemCheckRun extends AIReviewCheckRun {
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
var _0x1e1937=_0x1b23;function _0x1ce4(){var _0x472eec=['callSystemReview','28432SCgPFO','_createApiRequest','content','3406081wwVdjL','_aiConnector','5817zXDOZQ','4073880SxQKPv','1265208EQuwYx','1804SuDyKa','_sourceCheck','_documentData','26QwfITY','164178JdnYrs','_reviewArgs','1340oOAvMh','3151140NGYYrm'];_0x1ce4=function(){return _0x472eec;};return _0x1ce4();}(function(_0x2b9b79,_0x1d660e){var _0x2ecdc2=_0x1b23,_0x15ddde=_0x2b9b79();while(!![]){try{var _0x1552f1=parseInt(_0x2ecdc2(0x1a1))/0x1*(parseInt(_0x2ecdc2(0x1a7))/0x2)+parseInt(_0x2ecdc2(0x19b))/0x3*(parseInt(_0x2ecdc2(0x19e))/0x4)+parseInt(_0x2ecdc2(0x1a5))/0x5+parseInt(_0x2ecdc2(0x19c))/0x6+parseInt(_0x2ecdc2(0x199))/0x7+-parseInt(_0x2ecdc2(0x19d))/0x8+parseInt(_0x2ecdc2(0x1a2))/0x9*(-parseInt(_0x2ecdc2(0x1a4))/0xa);if(_0x1552f1===_0x1d660e)break;else _0x15ddde['push'](_0x15ddde['shift']());}catch(_0x3fe054){_0x15ddde['push'](_0x15ddde['shift']());}}}(_0x1ce4,0x6ac45));function _0x1b23(_0x2338f7,_0x4b05ac){var _0x1ce40b=_0x1ce4();return _0x1b23=function(_0x1b235d,_0x160cbe){_0x1b235d=_0x1b235d-0x197;var _0x518655=_0x1ce40b[_0x1b235d];return _0x518655;},_0x1b23(_0x2338f7,_0x4b05ac);}import{AIReviewCheckRun as _0x2a5e8f}from'./aireviewcheckrun.js';export class AIReviewSystemCheckRun extends _0x2a5e8f{[_0x1e1937(0x197)](){var _0x56239d=_0x1e1937;return this[_0x56239d(0x19a)][_0x56239d(0x1a6)]({'reviewName':this[_0x56239d(0x19f)]['id'],'content':this[_0x56239d(0x1a0)][_0x56239d(0x198)],'args':this[_0x56239d(0x1a3)]});}}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aireviewmode/ui/customcontrols/aireviemodepromptinputview
|
|
7
|
+
*/
|
|
8
|
+
import { TextareaView } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
10
|
+
export declare class AIReviewModePromptInputView extends TextareaView {
|
|
11
|
+
/**
|
|
12
|
+
* Flag indicating if the input is empty.
|
|
13
|
+
* @observable
|
|
14
|
+
*/
|
|
15
|
+
isEmpty: boolean;
|
|
16
|
+
constructor(locale: Locale);
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
render(): void;
|
|
21
|
+
/**
|
|
22
|
+
* Sets the placeholder text for the input.
|
|
23
|
+
*/
|
|
24
|
+
setPlaceholderText(placeholder: string): void;
|
|
25
|
+
}
|
|
26
|
+
export type AIChatSendUserMessageEvent = {
|
|
27
|
+
name: 'sendUserMessage';
|
|
28
|
+
args: [query: string];
|
|
29
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
var _0x48b193=_0x3ec7;(function(_0x2b7e99,_0x596c64){var _0x2dfd27=_0x3ec7,_0x66f334=_0x2b7e99();while(!![]){try{var _0x254659=-parseInt(_0x2dfd27(0x201))/0x1*(parseInt(_0x2dfd27(0x202))/0x2)+-parseInt(_0x2dfd27(0x1ff))/0x3+-parseInt(_0x2dfd27(0x1fe))/0x4+parseInt(_0x2dfd27(0x1fd))/0x5*(parseInt(_0x2dfd27(0x1f2))/0x6)+parseInt(_0x2dfd27(0x1fc))/0x7+-parseInt(_0x2dfd27(0x1f4))/0x8*(parseInt(_0x2dfd27(0x206))/0x9)+-parseInt(_0x2dfd27(0x1fa))/0xa*(-parseInt(_0x2dfd27(0x209))/0xb);if(_0x254659===_0x596c64)break;else _0x66f334['push'](_0x66f334['shift']());}catch(_0x32ef72){_0x66f334['push'](_0x66f334['shift']());}}}(_0x35ee,0x8209b));function _0x35ee(){var _0x39b03f=['MIN_ROWS','3736eIvYaw','set','minRows','isEmpty','maxRows','ck-review-mode__prompt-input','50xeeeBK','element','5647383SdxWBa','185lEqWzh','758128MoqDZx','1874076uFTTst','MAX_ROWS','4tEnBeV','84246qvrrty','placeholder','trim','value','12546kBEXgc','update','setPlaceholderText','994334PagbIb','bindTemplate','ai-review-mode-prompt-input','extendTemplate','render','stopPropagation','147180ghngvl'];_0x35ee=function(){return _0x39b03f;};return _0x35ee();}import{TextareaView as _0x5878ca}from'ckeditor5/src/ui.js';function _0x3ec7(_0xd3d377,_0xf6143f){var _0x35ee85=_0x35ee();return _0x3ec7=function(_0x3ec741,_0x3a264b){_0x3ec741=_0x3ec741-0x1f2;var _0x5048a0=_0x35ee85[_0x3ec741];return _0x5048a0;},_0x3ec7(_0xd3d377,_0xf6143f);}export class AIReviewModePromptInputView extends _0x5878ca{static [_0x48b193(0x1f3)]=0x1;static [_0x48b193(0x200)]=0xc;constructor(_0x580584){var _0x5eb025=_0x48b193;super(_0x580584),this[_0x5eb025(0x1f5)](_0x5eb025(0x1f7),!0x0),this[_0x5eb025(0x1f6)]=AIReviewModePromptInputView[_0x5eb025(0x1f3)],this[_0x5eb025(0x1f8)]=AIReviewModePromptInputView[_0x5eb025(0x200)],this[_0x5eb025(0x20c)]({'attributes':{'id':_0x5eb025(0x20b),'class':['ck',_0x5eb025(0x1f9)]}}),this[_0x5eb025(0x20c)]({'on':{'click':this[_0x5eb025(0x20a)]['to'](_0xbdab3=>{var _0xfeef8f=_0x5eb025;_0xbdab3[_0xfeef8f(0x20e)]();})}});}[_0x48b193(0x20d)](){var _0x1553aa=_0x48b193;super[_0x1553aa(0x20d)](),this['on'](_0x1553aa(0x207),()=>{var _0x42e5cc=_0x1553aa;this[_0x42e5cc(0x1f7)]=''===this[_0x42e5cc(0x1fb)][_0x42e5cc(0x205)]?.[_0x42e5cc(0x204)]();});}[_0x48b193(0x208)](_0x4ee90d){var _0x23fbd7=_0x48b193;this[_0x23fbd7(0x1f5)](_0x23fbd7(0x203),_0x4ee90d);}}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aireviewmode/ui/aireviewmodechecklistitemresultview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { View, ButtonView } from 'ckeditor5/src/ui.js';
|
|
10
|
+
export declare class AIReviewModeReviewCheckListItemResultsView extends View {
|
|
11
|
+
resultResponseView: View;
|
|
12
|
+
acceptButtonView: ButtonView;
|
|
13
|
+
dismissButtonView: ButtonView;
|
|
14
|
+
infoButtonView: ButtonView;
|
|
15
|
+
isInfoToggleOn: boolean;
|
|
16
|
+
isActive: boolean;
|
|
17
|
+
readonly id: string;
|
|
18
|
+
constructor(locale: Locale, id: string);
|
|
19
|
+
setItemAsActive(): void;
|
|
20
|
+
setItemAsInactive(): void;
|
|
21
|
+
}
|
|
22
|
+
export type AIScrollToSuggestionInDocumentEvent = {
|
|
23
|
+
name: 'scrollToSuggestionInDocument';
|
|
24
|
+
args: [
|
|
25
|
+
{
|
|
26
|
+
id: string;
|
|
27
|
+
source: AIReviewModeReviewCheckListItemResultsView;
|
|
28
|
+
}
|
|
29
|
+
];
|
|
30
|
+
};
|
|
31
|
+
export type AIReviewModeAcceptChangeEvent = {
|
|
32
|
+
name: 'acceptChange';
|
|
33
|
+
args: [
|
|
34
|
+
{
|
|
35
|
+
id: string;
|
|
36
|
+
}
|
|
37
|
+
];
|
|
38
|
+
};
|
|
39
|
+
export type AIReviewModeDismissChangeEvent = {
|
|
40
|
+
name: 'dismissChange';
|
|
41
|
+
args: [
|
|
42
|
+
{
|
|
43
|
+
id: string;
|
|
44
|
+
}
|
|
45
|
+
];
|
|
46
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x184f70=_0x8f15;(function(_0x597e5d,_0x149499){const _0x1d3ace=_0x8f15,_0xb0585a=_0x597e5d();while(!![]){try{const _0x848389=parseInt(_0x1d3ace(0xc2))/0x1+parseInt(_0x1d3ace(0xb4))/0x2*(parseInt(_0x1d3ace(0xab))/0x3)+-parseInt(_0x1d3ace(0x9f))/0x4+parseInt(_0x1d3ace(0x9e))/0x5*(-parseInt(_0x1d3ace(0xa1))/0x6)+-parseInt(_0x1d3ace(0xb6))/0x7+parseInt(_0x1d3ace(0xba))/0x8*(parseInt(_0x1d3ace(0xc6))/0x9)+parseInt(_0x1d3ace(0xcc))/0xa;if(_0x848389===_0x149499)break;else _0xb0585a['push'](_0xb0585a['shift']());}catch(_0x47aa85){_0xb0585a['push'](_0xb0585a['shift']());}}}(_0x5179,0x1a5da));import{View as _0x439baf,ButtonView as _0x14769f}from'ckeditor5/src/ui.js';function _0x8f15(_0x5c85b7,_0xcc68eb){const _0x5179c5=_0x5179();return _0x8f15=function(_0x8f1565,_0x47baa8){_0x8f1565=_0x8f1565-0x9d;let _0x3a0faa=_0x5179c5[_0x8f1565];return _0x3a0faa;},_0x8f15(_0x5c85b7,_0xcc68eb);}function _0x5179(){const _0x36826e=['ck-ai-review-mode__check-run-result_active','1443000muZjOY','div','AI_REVIEW_MODE_ACCEPT_CHANGE','ck-ai-review-mode__check-run-result','AI_REVIEW_MODE_LEARN_MORE','1032695NNIjCk','819144lgtPLB','bindTemplate','6jmyYZu','dismissButtonView','isOn','setItemAsActive','resultResponseView','ck-ai-button-tertiary-filled\x20ck-ai-review-mode__check-run-result-info-button\x20ck-hidden','_createAcceptButtonView','menuitemcheckbox','dismissChange','_createInfoButtonView','58659rgYpsg','ck-ai-review-mode__check-run-result-footer','log','stopPropagation','bind','acceptChange','setTemplate','extendTemplate','execute','18czcyiU','ck-ai-review-mode__check-run-result-action-buttons','854252ROAUqk','Toggle\x20info\x20view','AI_REVIEW_MODE_DISMISS_CHANGE','ck-ai-button-secondary\x20ck-ai-review-mode__check-run-result-accept-button','64XcaQMZ','isActive','locale','click','_createResultResponseView','acceptButtonView','infoButtonView','setItemAsInactive','108526hFlAYg','ck-ai-button-tertiary-filled\x20ck-ai-review-mode__check-run-result-dismiss-button','ck-ai-review-mode__check-run-result-response','fire','239121adEkRP','set','isInfoToggleOn','scrollToSuggestionInDocument','_createDismissButtonView'];_0x5179=function(){return _0x36826e;};return _0x5179();}import{IconInfo as _0x2eba1e}from'ckeditor5/src/icons.js';import{getTranslation as _0x6c9ce1}from'../utils/common-translations.js';export class AIReviewModeReviewCheckListItemResultsView extends _0x439baf{[_0x184f70(0xa5)];[_0x184f70(0xbf)];[_0x184f70(0xa2)];[_0x184f70(0xc0)];constructor(_0x54bbf7,_0x38d4ba){const _0x155188=_0x184f70;super(_0x54bbf7),this['id']=_0x38d4ba,this[_0x155188(0xa5)]=this[_0x155188(0xbe)](),this[_0x155188(0xbf)]=this[_0x155188(0xa7)](_0x38d4ba),this[_0x155188(0xa2)]=this[_0x155188(0xca)](_0x38d4ba),this[_0x155188(0xc0)]=this[_0x155188(0xaa)](),this[_0x155188(0xc7)](_0x155188(0xc8),!0x1),this[_0x155188(0xc7)](_0x155188(0xbb),!0x1),this[_0x155188(0xb1)]({'tag':_0x155188(0xcd),'attributes':{'class':[_0x155188(0xcf),this[_0x155188(0xa0)]['if'](_0x155188(0xbb),_0x155188(0xcb))]},'on':{'click':this[_0x155188(0xa0)]['to'](_0x155188(0xbd))},'children':[this[_0x155188(0xa5)],{'tag':_0x155188(0xcd),'attributes':{'class':[_0x155188(0xac)]},'children':[{'tag':_0x155188(0xcd),'attributes':{'class':[_0x155188(0xb5)]},'children':[this[_0x155188(0xbf)],this[_0x155188(0xa2)]]},this[_0x155188(0xc0)]]}]}),this['on'](_0x155188(0xbd),()=>{const _0x4f1084=_0x155188;this[_0x4f1084(0xc5)](_0x4f1084(0xc9),{'id':_0x38d4ba,'source':this});});}[_0x184f70(0xa4)](){const _0x25abac=_0x184f70;this[_0x25abac(0xbb)]=!0x0;}[_0x184f70(0xc1)](){const _0x4adf0e=_0x184f70;this[_0x4adf0e(0xbb)]=!0x1;}[_0x184f70(0xbe)](){const _0x429a42=_0x184f70,_0x38608b=new _0x439baf(this[_0x429a42(0xbc)]);return _0x38608b[_0x429a42(0xb1)]({'tag':_0x429a42(0xcd),'attributes':{'class':[_0x429a42(0xc4)]}}),_0x38608b;}[_0x184f70(0xa7)](_0x2d6dd8){const _0x4fc250=_0x184f70,_0x2c19ca=new _0x14769f(this[_0x4fc250(0xbc)]);return _0x2c19ca[_0x4fc250(0xc7)]({'label':_0x6c9ce1(this[_0x4fc250(0xbc)],_0x4fc250(0xce)),'withText':!0x0,'class':_0x4fc250(0xb9)}),_0x2c19ca[_0x4fc250(0xb2)]({'on':{'click':this[_0x4fc250(0xa0)]['to'](_0x547b71=>{const _0x277585=_0x4fc250;this[_0x277585(0xc5)](_0x277585(0xb0),{'id':_0x2d6dd8}),_0x547b71[_0x277585(0xae)]();})}}),_0x2c19ca;}[_0x184f70(0xca)](_0x35efce){const _0x4f549d=_0x184f70,_0x29d4b5=new _0x14769f(this[_0x4f549d(0xbc)]);return _0x29d4b5[_0x4f549d(0xc7)]({'label':_0x6c9ce1(this[_0x4f549d(0xbc)],_0x4f549d(0xb8)),'withText':!0x0,'class':_0x4f549d(0xc3)}),_0x29d4b5[_0x4f549d(0xb2)]({'on':{'click':this[_0x4f549d(0xa0)]['to'](_0x4e9271=>{const _0x44889c=_0x4f549d;this[_0x44889c(0xc5)](_0x44889c(0xa9),{'id':_0x35efce}),_0x4e9271[_0x44889c(0xae)]();})}}),_0x29d4b5;}[_0x184f70(0xaa)](){const _0x245c08=_0x184f70,_0x293ee9=new _0x14769f(this[_0x245c08(0xbc)]);return _0x293ee9[_0x245c08(0xc7)]({'label':_0x6c9ce1(this[_0x245c08(0xbc)],_0x245c08(0x9d)),'icon':_0x2eba1e,'tooltip':!0x0,'isToggleable':!0x0,'role':_0x245c08(0xa8),'class':_0x245c08(0xa6)}),_0x293ee9[_0x245c08(0xaf)](_0x245c08(0xa3))['to'](this,_0x245c08(0xc8),_0x51e9ed=>_0x51e9ed),_0x293ee9['on'](_0x245c08(0xb3),()=>{const _0x1f151b=_0x245c08;console[_0x1f151b(0xad)](_0x1f151b(0xb7)),this[_0x1f151b(0xc8)]=!this[_0x1f151b(0xc8)];}),_0x293ee9;}}
|
|
@@ -0,0 +1,19 @@
|
|
|
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/aireviewmode/ui/aireviewmodecustomcheckview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { View, ButtonView } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import { AIReviewModePromptInputView } from './aireviemodepromptinputview.js';
|
|
11
|
+
import type { AIReviewCheckCustom } from '../model/aireviewcheckcustom.js';
|
|
12
|
+
export declare class AIReviewModeCustomCheckView extends View {
|
|
13
|
+
prompt: string;
|
|
14
|
+
modelId: string;
|
|
15
|
+
submitButtonView: ButtonView;
|
|
16
|
+
cancelButtonView: ButtonView;
|
|
17
|
+
promptInputView: AIReviewModePromptInputView;
|
|
18
|
+
constructor(locale: Locale, check: AIReviewCheckCustom);
|
|
19
|
+
}
|
|
@@ -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 _0x4fc5f3=_0x5753;(function(_0xf5fd88,_0x3df584){const _0x51e84c=_0x5753,_0x4a8314=_0xf5fd88();while(!![]){try{const _0x16092b=-parseInt(_0x51e84c(0x1e0))/0x1*(parseInt(_0x51e84c(0x1d5))/0x2)+-parseInt(_0x51e84c(0x1ee))/0x3+-parseInt(_0x51e84c(0x1e8))/0x4*(-parseInt(_0x51e84c(0x1d9))/0x5)+parseInt(_0x51e84c(0x204))/0x6+parseInt(_0x51e84c(0x1eb))/0x7*(parseInt(_0x51e84c(0x1d3))/0x8)+parseInt(_0x51e84c(0x1ce))/0x9+-parseInt(_0x51e84c(0x1fa))/0xa;if(_0x16092b===_0x3df584)break;else _0x4a8314['push'](_0x4a8314['shift']());}catch(_0xda6f46){_0x4a8314['push'](_0x4a8314['shift']());}}}(_0x3ade,0x1ce6d));import{Collection as _0x126ee7}from'ckeditor5/src/utils.js';function _0x5753(_0x522488,_0x4773a8){const _0x3ade2a=_0x3ade();return _0x5753=function(_0x575370,_0x77a761){_0x575370=_0x575370-0x1cc;let _0x1ada9a=_0x3ade2a[_0x575370];return _0x1ada9a;},_0x5753(_0x522488,_0x4773a8);}import{View as _0x118929,ButtonView as _0x4b4771,FormRowView as _0x468052,createDropdown as _0x250610,addListToDropdown as _0x3b5973,UIModel as _0x54f0d9,ButtonLabelView as _0x4b6d07}from'ckeditor5/src/ui.js';import{AIReviewModePromptInputView as _0x19f24a}from'./aireviemodepromptinputview.js';function _0x3ade(){const _0x286665=['submitButtonView','cancelCustomCheck','locale','element','608076EWypmw','source','_modelSelectionDropdownItems','prompt','Review','clear','1183932IxqpMv','model','models','add','log','232vACybs','value','224ECJLIk','fire','_check','_modelSelectionDropdown','86770PSCOQr','cancelButtonView','stopPropagation','input','runReviewCheck','ck-ai-review-mode__check-list-item-custom-actions-footer','modelId','1699fjaIGk','listenTo','setTemplate','extendTemplate','buttonView','_setModelList','ck-ai-review-mode__check-list-item-custom-actions','name','12PBvoGn','bindTemplate','_createSubmitButtonView','55307PzhnHx','label','menuitemradio','353094zfTSsc','Custom\x20check\x20canceled','execute','_createModelSelectionDropdown','length','set','div','button','bind','ck-ai-button-primary','_createCancelButtonView','ck-ai-review-mode__check-list-item-parameterized-custom-actions-buttons','877180rzvOEA','Cancel','isOn','ck-ai-button-tertiary-filled','custom','promptInputView'];_0x3ade=function(){return _0x286665;};return _0x3ade();}export class AIReviewModeCustomCheckView extends _0x118929{[_0x4fc5f3(0x200)];[_0x4fc5f3(0x1da)];[_0x4fc5f3(0x1ff)];[_0x4fc5f3(0x1d8)];[_0x4fc5f3(0x206)];[_0x4fc5f3(0x1d7)];constructor(_0x1ed69d,_0x2a04b1){const _0x16664d=_0x4fc5f3;super(_0x1ed69d),this[_0x16664d(0x1d7)]=_0x2a04b1,this[_0x16664d(0x1f3)](_0x16664d(0x207),''),this[_0x16664d(0x1f3)](_0x16664d(0x1df),''),this[_0x16664d(0x200)]=this[_0x16664d(0x1ea)](),this[_0x16664d(0x1da)]=this[_0x16664d(0x1f8)](),this[_0x16664d(0x1ff)]=new _0x19f24a(_0x1ed69d),this[_0x16664d(0x1ff)][_0x16664d(0x1f6)](_0x16664d(0x1d4))['to'](this,_0x16664d(0x207)),this[_0x16664d(0x1ff)]['on'](_0x16664d(0x1dc),()=>{const _0x24929d=_0x16664d;this[_0x24929d(0x207)]=this[_0x24929d(0x1ff)][_0x24929d(0x203)][_0x24929d(0x1d4)];}),this[_0x16664d(0x1d8)]=this[_0x16664d(0x1f1)](),this[_0x16664d(0x206)]=new _0x126ee7(),this[_0x16664d(0x1e5)](),_0x3b5973(this[_0x16664d(0x1d8)],this[_0x16664d(0x206)]);const _0x209535=new _0x118929(_0x1ed69d);_0x209535[_0x16664d(0x1e2)]({'tag':_0x16664d(0x1f4),'attributes':{'class':[_0x16664d(0x1de)]},'children':[this[_0x16664d(0x1d8)],{'tag':_0x16664d(0x1f4),'attributes':{'class':[_0x16664d(0x1f9)]},'children':[this[_0x16664d(0x1da)],this[_0x16664d(0x200)]]}]}),this[_0x16664d(0x1e2)]({'tag':_0x16664d(0x1f4),'attributes':{'class':[_0x16664d(0x1e6)]},'children':[new _0x468052(this[_0x16664d(0x202)],{'children':[this[_0x16664d(0x1ff)]]}),new _0x468052(this[_0x16664d(0x202)],{'children':[_0x209535]})]});}[_0x4fc5f3(0x1ea)](){const _0x48699a=_0x4fc5f3,_0x1b61db=new _0x4b4771(this[_0x48699a(0x202)]);return _0x1b61db[_0x48699a(0x1f3)]({'label':_0x48699a(0x1cc),'withText':!0x0,'class':_0x48699a(0x1f7)}),_0x1b61db[_0x48699a(0x1e3)]({'on':{'click':this[_0x48699a(0x1e9)]['to'](_0x2fe714=>{const _0x342f0e=_0x48699a;_0x2fe714[_0x342f0e(0x1db)]();})}}),_0x1b61db['on'](_0x48699a(0x1f0),()=>{const _0x532075=_0x48699a;this[_0x532075(0x1d6)](_0x532075(0x1dd),{'id':_0x532075(0x1fe),'args':{'prompt':this[_0x532075(0x207)],'model':this[_0x532075(0x1df)]},'isCustom':!0x0});}),_0x1b61db;}[_0x4fc5f3(0x1f8)](){const _0x3bb6e3=_0x4fc5f3,_0x4d813e=new _0x4b4771(this[_0x3bb6e3(0x202)]);return _0x4d813e[_0x3bb6e3(0x1f3)]({'label':_0x3bb6e3(0x1fb),'withText':!0x0,'class':_0x3bb6e3(0x1fd)}),_0x4d813e['on'](_0x3bb6e3(0x1f0),()=>{const _0x232b19=_0x3bb6e3;console[_0x232b19(0x1d2)](_0x232b19(0x1ef)),this[_0x232b19(0x207)]='',this[_0x232b19(0x1d6)](_0x232b19(0x201));}),_0x4d813e;}[_0x4fc5f3(0x1e5)](){const _0x4a67e7=_0x4fc5f3;this[_0x4a67e7(0x206)][_0x4a67e7(0x1cd)]();const _0x4ae1b1=this[_0x4a67e7(0x1d7)][_0x4a67e7(0x1d0)];if(_0x4ae1b1?.[_0x4a67e7(0x1f2)])for(const _0x2205fd of _0x4ae1b1){const _0x4c9657=new _0x54f0d9({'label':_0x2205fd[_0x4a67e7(0x1e7)],'withText':!0x0,'role':_0x4a67e7(0x1ed),'id':_0x2205fd['id'],'model':_0x2205fd});_0x4c9657[_0x4a67e7(0x1f6)](_0x4a67e7(0x1fc))['to'](this,_0x4a67e7(0x1df),_0x42e440=>_0x42e440===_0x2205fd['id']),this[_0x4a67e7(0x206)][_0x4a67e7(0x1d1)]({'type':_0x4a67e7(0x1f5),'model':_0x4c9657,'labelView':new _0x4b6d07()});}}[_0x4fc5f3(0x1f1)](){const _0x27813c=_0x4fc5f3,_0x4e071d=_0x250610(this[_0x27813c(0x202)]);return _0x4e071d[_0x27813c(0x1f3)]({'panelPosition':'se'}),_0x4e071d[_0x27813c(0x1e3)]({'on':{'click':this[_0x27813c(0x1e9)]['to'](_0x4a5ee3=>{const _0x41d634=_0x27813c;_0x4a5ee3[_0x41d634(0x1db)]();})}}),_0x4e071d[_0x27813c(0x1e4)][_0x27813c(0x1f3)]({'label':this[_0x27813c(0x1d7)][_0x27813c(0x1d0)][0x0][_0x27813c(0x1e7)],'withText':!0x0,'tooltip':!0x0}),this[_0x27813c(0x1e1)](_0x4e071d,_0x27813c(0x1f0),_0x1091fc=>{const _0x53d163=_0x27813c;this[_0x53d163(0x1df)]=_0x1091fc[_0x53d163(0x205)][_0x53d163(0x1cf)]['id'],_0x4e071d[_0x53d163(0x1e4)][_0x53d163(0x1ec)]=_0x1091fc[_0x53d163(0x205)][_0x53d163(0x1ec)];}),_0x4e071d;}}
|