@ckeditor/ckeditor5-ai 46.1.1 → 47.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +18 -5
- package/README.md +10 -9
- package/build/ai.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/be.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/ckeditor5-metadata.json +24 -3
- package/dist/index-content.css +0 -1
- package/dist/index-editor.css +2742 -0
- package/dist/index.css +3141 -0
- package/dist/index.js +4 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +163 -1
- package/lang/translations/af.po +612 -0
- package/lang/translations/ar.po +628 -0
- package/lang/translations/ast.po +612 -0
- package/lang/translations/az.po +612 -0
- package/lang/translations/be.po +616 -0
- package/lang/translations/bg.po +612 -0
- package/lang/translations/bn.po +612 -0
- package/lang/translations/bs.po +616 -0
- package/lang/translations/ca.po +612 -0
- package/lang/translations/cs.po +616 -0
- package/lang/translations/da.po +612 -0
- package/lang/translations/de-ch.po +612 -0
- package/lang/translations/de.po +612 -0
- package/lang/translations/el.po +612 -0
- package/lang/translations/en-au.po +612 -0
- package/lang/translations/en-gb.po +612 -0
- package/lang/translations/en.po +612 -0
- package/lang/translations/eo.po +612 -0
- package/lang/translations/es-co.po +612 -0
- package/lang/translations/es.po +612 -0
- package/lang/translations/et.po +612 -0
- package/lang/translations/eu.po +612 -0
- package/lang/translations/fa.po +608 -0
- package/lang/translations/fi.po +612 -0
- package/lang/translations/fr.po +612 -0
- package/lang/translations/gl.po +612 -0
- package/lang/translations/gu.po +612 -0
- package/lang/translations/he.po +612 -0
- package/lang/translations/hi.po +612 -0
- package/lang/translations/hr.po +616 -0
- package/lang/translations/hu.po +612 -0
- package/lang/translations/hy.po +612 -0
- package/lang/translations/id.po +608 -0
- package/lang/translations/it.po +612 -0
- package/lang/translations/ja.po +608 -0
- package/lang/translations/jv.po +612 -0
- package/lang/translations/kk.po +612 -0
- package/lang/translations/km.po +608 -0
- package/lang/translations/kn.po +612 -0
- package/lang/translations/ko.po +608 -0
- package/lang/translations/ku.po +612 -0
- package/lang/translations/lt.po +616 -0
- package/lang/translations/lv.po +616 -0
- package/lang/translations/ms.po +608 -0
- package/lang/translations/nb.po +612 -0
- package/lang/translations/ne.po +612 -0
- package/lang/translations/nl.po +612 -0
- package/lang/translations/no.po +612 -0
- package/lang/translations/oc.po +612 -0
- package/lang/translations/pl.po +616 -0
- package/lang/translations/pt-br.po +612 -0
- package/lang/translations/pt.po +612 -0
- package/lang/translations/ro.po +616 -0
- package/lang/translations/ru.po +616 -0
- package/lang/translations/si.po +612 -0
- package/lang/translations/sk.po +616 -0
- package/lang/translations/sl.po +620 -0
- package/lang/translations/sq.po +612 -0
- package/lang/translations/sr-latn.po +616 -0
- package/lang/translations/sr.po +616 -0
- package/lang/translations/sv.po +612 -0
- package/lang/translations/th.po +608 -0
- package/lang/translations/ti.po +612 -0
- package/lang/translations/tk.po +612 -0
- package/lang/translations/tr.po +612 -0
- package/lang/translations/tt.po +608 -0
- package/lang/translations/ug.po +608 -0
- package/lang/translations/uk.po +616 -0
- package/lang/translations/ur.po +612 -0
- package/lang/translations/uz.po +612 -0
- package/lang/translations/vi.po +608 -0
- package/lang/translations/zh-cn.po +608 -0
- package/lang/translations/zh.po +608 -0
- package/package.json +23 -11
- package/src/aiactions/aiactions.d.ts +48 -0
- package/src/aiactions/aiactions.js +23 -0
- package/src/aiactions/model/aiactionsinteraction.d.ts +48 -0
- package/src/aiactions/model/aiactionsinteraction.js +23 -0
- package/src/aiactions/model/aiactionsreply.d.ts +15 -0
- package/src/aiactions/model/aiactionsreply.js +23 -0
- package/src/{adapters → aiassistant/adapters}/aiadapter.d.ts +1 -1
- package/src/aiassistant/adapters/aiadapter.js +23 -0
- package/src/{adapters → aiassistant/adapters}/aitextadapter.d.ts +9 -9
- package/src/aiassistant/adapters/aitextadapter.js +23 -0
- package/src/{adapters → aiassistant/adapters}/awstextadapter.d.ts +36 -23
- package/src/aiassistant/adapters/awstextadapter.js +23 -0
- package/src/{adapters → aiassistant/adapters}/openaitextadapter.d.ts +38 -25
- package/src/aiassistant/adapters/openaitextadapter.js +23 -0
- package/src/{aiassistant.d.ts → aiassistant/aiassistant.d.ts} +54 -13
- package/src/aiassistant/aiassistant.js +23 -0
- package/src/aiassistant/aiassistantediting.js +23 -0
- package/src/{aiassistantui.d.ts → aiassistant/aiassistantui.d.ts} +4 -4
- package/src/aiassistant/aiassistantui.js +23 -0
- package/src/{legacyerrors.js → aiassistant/legacyerrors.js} +1 -1
- package/src/{ui → aiassistant/ui}/aiassistantcontroller.d.ts +5 -4
- package/src/aiassistant/ui/aiassistantcontroller.js +24 -0
- package/src/{ui → aiassistant/ui}/form/aiformcontentarea.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +23 -0
- package/src/aiassistant/ui/form/aiformerrorview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aiformpromptview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aiformtoolbarview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aiformview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aihistorylistitemview.d.ts +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aihistorylistview.d.ts +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/prompthistory.d.ts +3 -0
- package/src/aiassistant/ui/form/prompthistory.js +23 -0
- package/src/{ui → aiassistant/ui}/showaiassistantcommand.d.ts +2 -2
- package/src/aiassistant/ui/showaiassistantcommand.js +23 -0
- package/src/{utils → aiassistant/utils}/common-translations.d.ts +1 -1
- package/src/{utils → aiassistant/utils}/common-translations.js +1 -1
- package/src/{utils → aiassistant/utils}/normalizecommandsconfig.d.ts +2 -2
- package/src/{utils → aiassistant/utils}/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.d.ts +72 -0
- package/src/aiballoon/aiballoon.js +23 -0
- package/src/aiballoon/ui/aiballoondisclaimerview.d.ts +17 -0
- package/src/aiballoon/ui/aiballoondisclaimerview.js +23 -0
- package/src/aiballoon/ui/aiballoontoolbarview.d.ts +31 -0
- package/src/aiballoon/ui/aiballoontoolbarview.js +23 -0
- package/src/aiballoon/ui/aiballoonview.d.ts +109 -0
- package/src/aiballoon/ui/aiballoonview.js +23 -0
- package/src/aichat/aichat.d.ts +79 -0
- package/src/aichat/aichat.js +23 -0
- package/src/aichat/aichatcontroller.d.ts +68 -0
- package/src/aichat/aichatcontroller.js +23 -0
- package/src/aichat/aichatui.d.ts +297 -0
- package/src/aichat/aichatui.js +23 -0
- package/src/aichat/model/aichatcontext.d.ts +360 -0
- package/src/aichat/model/aichatcontext.js +23 -0
- package/src/aichat/model/aichatconversation.d.ts +270 -0
- package/src/aichat/model/aichatconversation.js +23 -0
- package/src/aichat/model/aichatinteraction.d.ts +46 -0
- package/src/aichat/model/aichatinteraction.js +23 -0
- package/src/aichat/model/aichatmodels.d.ts +77 -0
- package/src/aichat/model/aichatmodels.js +23 -0
- package/src/aichat/ui/aichatcontrolsview.d.ts +98 -0
- package/src/aichat/ui/aichatcontrolsview.js +23 -0
- package/src/aichat/ui/aichatfeedview.d.ts +114 -0
- package/src/aichat/ui/aichatfeedview.js +23 -0
- package/src/aichat/ui/aichatheaderview.d.ts +29 -0
- package/src/aichat/ui/aichatheaderview.js +23 -0
- package/src/aichat/ui/aichatview.d.ts +37 -0
- package/src/aichat/ui/aichatview.js +23 -0
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.d.ts +71 -0
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +23 -0
- package/src/aichat/ui/controls/aichatcontextitembuttonview.d.ts +46 -0
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +23 -0
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.d.ts +89 -0
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +23 -0
- package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +105 -0
- package/src/aichat/ui/controls/aichatcontextpanelview.js +23 -0
- package/src/aichat/ui/controls/aichatcontrolsloaderview.d.ts +12 -0
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +23 -0
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.d.ts +89 -0
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +23 -0
- package/src/aichat/ui/controls/aichatpromptinputview.d.ts +44 -0
- package/src/aichat/ui/controls/aichatpromptinputview.js +23 -0
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.d.ts +17 -0
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.d.ts +61 -0
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +100 -0
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourceslistview.d.ts +49 -0
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.d.ts +61 -0
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcesview.d.ts +54 -0
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.d.ts +27 -0
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +23 -0
- package/src/aichat/ui/feed/aichatfeederroritemview.d.ts +39 -0
- package/src/aichat/ui/feed/aichatfeederroritemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +29 -0
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +23 -0
- package/src/aichat/ui/feed/aichatfeeditemview.d.ts +46 -0
- package/src/aichat/ui/feed/aichatfeeditemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedreplyitemview.d.ts +46 -0
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +74 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +74 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedusermessageitem.d.ts +40 -0
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +23 -0
- package/src/aichat/utils/eventnames.d.ts +5 -0
- package/src/aichat/utils/eventnames.js +23 -0
- package/src/aichat/utils/promisequeue.d.ts +32 -0
- package/src/aichat/utils/promisequeue.js +23 -0
- package/src/aichat/utils/scrollmanager.d.ts +23 -0
- package/src/aichat/utils/scrollmanager.js +23 -0
- package/src/aichathistory/aichathistory.d.ts +30 -0
- package/src/aichathistory/aichathistory.js +23 -0
- package/src/aichathistory/aichathistorycontroller.d.ts +40 -0
- package/src/aichathistory/aichathistorycontroller.js +23 -0
- package/src/aichathistory/aichathistoryui.d.ts +112 -0
- package/src/aichathistory/aichathistoryui.js +23 -0
- package/src/aichathistory/model/aichathistoryconversations.d.ts +114 -0
- package/src/aichathistory/model/aichathistoryconversations.js +23 -0
- package/src/aichathistory/model/aichathistoryitem.d.ts +59 -0
- package/src/aichathistory/model/aichathistoryitem.js +23 -0
- package/src/aichathistory/ui/aichathistorylistitemview.d.ts +42 -0
- package/src/aichathistory/ui/aichathistorylistitemview.js +23 -0
- package/src/aichathistory/ui/aichathistorylistview.d.ts +31 -0
- package/src/aichathistory/ui/aichathistorylistview.js +23 -0
- package/src/aichathistory/ui/aichathistorysectionlistview.d.ts +17 -0
- package/src/aichathistory/ui/aichathistorysectionlistview.js +23 -0
- package/src/aichathistory/ui/aichathistoryview.d.ts +41 -0
- package/src/aichathistory/ui/aichathistoryview.js +23 -0
- package/src/aiconfig.d.ts +92 -30
- package/src/aicore/aiconnector.d.ts +302 -0
- package/src/aicore/aiconnector.js +23 -0
- package/src/aicore/aiediting.d.ts +61 -0
- package/src/aicore/aiediting.js +23 -0
- package/src/aicore/model/aicapabilities.d.ts +55 -0
- package/src/aicore/model/aicapabilities.js +23 -0
- package/src/aicore/model/aicontext.d.ts +53 -0
- package/src/aicore/model/aicontext.js +23 -0
- package/src/aicore/model/aiinteraction.d.ts +135 -0
- package/src/aicore/model/aiinteraction.js +23 -0
- package/src/aicore/model/aireply.d.ts +178 -0
- package/src/aicore/model/aireply.js +23 -0
- package/src/aicore/pipeline/airesponseapplier.d.ts +291 -0
- package/src/aicore/pipeline/airesponseapplier.js +24 -0
- package/src/aicore/pipeline/airesponseparser.d.ts +27 -0
- package/src/aicore/pipeline/airesponseparser.js +24 -0
- package/src/aicore/ui/aidisclaimerview.d.ts +17 -0
- package/src/aicore/ui/aidisclaimerview.js +23 -0
- package/src/aicore/ui/aiskeleton.d.ts +37 -0
- package/src/aicore/ui/aiskeleton.js +23 -0
- package/src/aicore/ui/aispinner.d.ts +14 -0
- package/src/aicore/ui/aispinner.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.d.ts +62 -0
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +38 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +80 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +39 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.d.ts +39 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +23 -0
- package/src/aicore/utils/common-translations.d.ts +9 -0
- package/src/aicore/utils/common-translations.js +23 -0
- package/src/aicore/utils/createresizebutton.d.ts +12 -0
- package/src/aicore/utils/createresizebutton.js +23 -0
- package/src/aicore/utils/documentposition.d.ts +41 -0
- package/src/aicore/utils/documentposition.js +23 -0
- package/src/aicore/utils/documentrange.d.ts +46 -0
- package/src/aicore/utils/documentrange.js +23 -0
- package/src/aicore/utils/eventnames.d.ts +9 -0
- package/src/aicore/utils/eventnames.js +23 -0
- package/src/aicore/utils/geteditorfromcontext.d.ts +6 -0
- package/src/aicore/utils/geteditorfromcontext.js +23 -0
- package/src/aicore/utils/getoperationsfromreply.d.ts +21 -0
- package/src/aicore/utils/getoperationsfromreply.js +23 -0
- package/src/aicore/utils/getsuggestionpartsfromreply.d.ts +19 -0
- package/src/aicore/utils/getsuggestionpartsfromreply.js +23 -0
- package/src/aicore/utils/htmlparser.d.ts +35 -0
- package/src/aicore/utils/htmlparser.js +23 -0
- package/src/aicore/utils/htmlstreamer.d.ts +123 -0
- package/src/aicore/utils/htmlstreamer.js +23 -0
- package/src/aiquickactions/aiquickactions.d.ts +41 -0
- package/src/aiquickactions/aiquickactions.js +23 -0
- package/src/aiquickactions/aiquickactionscommand.d.ts +12 -0
- package/src/aiquickactions/aiquickactionscommand.js +23 -0
- package/src/aiquickactions/aiquickactionsediting.d.ts +23 -0
- package/src/aiquickactions/aiquickactionsediting.js +23 -0
- package/src/aiquickactions/aiquickactionsui.d.ts +150 -0
- package/src/aiquickactions/aiquickactionsui.js +23 -0
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +30 -0
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +23 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +45 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +23 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +45 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +23 -0
- package/src/aiquickactions/utils/common-translations.d.ts +9 -0
- package/src/aiquickactions/utils/common-translations.js +23 -0
- package/src/aireviewmode/aireviewmode.d.ts +30 -0
- package/src/aireviewmode/aireviewmode.js +23 -0
- package/src/aireviewmode/aireviewmodecontroller.d.ts +32 -0
- package/src/aireviewmode/aireviewmodecontroller.js +23 -0
- package/src/aireviewmode/aireviewmodeediting.d.ts +129 -0
- package/src/aireviewmode/aireviewmodeediting.js +23 -0
- package/src/aireviewmode/aireviewmodeui.d.ts +73 -0
- package/src/aireviewmode/aireviewmodeui.js +23 -0
- package/src/aireviewmode/model/aireviewcheck.d.ts +60 -0
- package/src/aireviewmode/model/aireviewcheck.js +23 -0
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +17 -0
- package/src/aireviewmode/model/aireviewcheckcustom.js +23 -0
- package/src/aireviewmode/model/aireviewchecklist.d.ts +31 -0
- package/src/aireviewmode/model/aireviewchecklist.js +23 -0
- package/src/aireviewmode/model/aireviewcheckresult.d.ts +39 -0
- package/src/aireviewmode/model/aireviewcheckresult.js +23 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +42 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.js +23 -0
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +102 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +23 -0
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +18 -0
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +23 -0
- package/src/aireviewmode/model/aireviewmodels.d.ts +26 -0
- package/src/aireviewmode/model/aireviewmodels.js +23 -0
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +14 -0
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +23 -0
- package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +29 -0
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +46 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +23 -0
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.d.ts +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +80 -0
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +45 -0
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +18 -0
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodeview.d.ts +42 -0
- package/src/aireviewmode/ui/aireviewmodeview.js +23 -0
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +16 -0
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +23 -0
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +20 -0
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +23 -0
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +16 -0
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +23 -0
- package/src/aireviewmode/utils/common-translations.d.ts +9 -0
- package/src/aireviewmode/utils/common-translations.js +23 -0
- package/src/aitabs/aitabs.d.ts +92 -0
- package/src/aitabs/aitabs.js +23 -0
- package/src/aitabs/aitabsmainview.d.ts +45 -0
- package/src/aitabs/aitabsmainview.js +23 -0
- package/src/aitabs/tabs/aitabsview.d.ts +147 -0
- package/src/aitabs/tabs/aitabsview.js +23 -0
- package/src/aitabs/tabs/tabbuttonview.d.ts +47 -0
- package/src/aitabs/tabs/tabbuttonview.js +23 -0
- package/src/aitabs/tabs/tabpanelview.d.ts +44 -0
- package/src/aitabs/tabs/tabpanelview.js +23 -0
- package/src/augmentation.d.ts +22 -6
- package/src/index.d.ts +40 -9
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +207 -0
- package/theme/aichat/aichat-controls/aichat-context-chip.css +139 -0
- package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +194 -0
- package/theme/aichat/aichat-controls/aichat-context-controls.css +46 -0
- package/theme/aichat/aichat-controls/aichat-controls-button.css +74 -0
- package/theme/aichat/aichat-controls/aichat-controls-loader.css +93 -0
- package/theme/aichat/aichat-controls/prompt-capabilities.css +46 -0
- package/theme/aichat/aichat-controls/prompt-input.css +55 -0
- package/theme/aichat/aichat-controls.css +154 -0
- package/theme/aichat/aichat.css +68 -0
- package/theme/aichat/aichatfeed.css +376 -0
- package/theme/aichat/aichathistory.css +235 -0
- package/theme/aichat/aiminitoolbar.css +94 -0
- package/theme/aichat/aisuggestioncontainer.css +203 -0
- package/theme/aiquickactions/aiquickactions.css +43 -0
- package/theme/aireviewmode/aireviewmode-check-list.css +255 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +202 -0
- package/theme/aireviewmode/aireviewmode-review-completed.css +52 -0
- package/theme/aireviewmode/aireviewmode.css +73 -0
- package/theme/aitabs/aitabsview.css +64 -0
- package/theme/aitabs/tabs/tabbuttonview.css +74 -0
- package/theme/aitabs/tabs/tabsview.css +78 -0
- package/theme/common/aibutton.css +145 -0
- package/theme/common/aichaterror.css +61 -0
- package/theme/common/aidisclaimer.css +29 -0
- package/theme/common/aiheader.css +88 -0
- package/theme/common/aiskeleton.css +54 -0
- package/theme/common/aispinner.css +58 -0
- package/src/adapters/aiadapter.js +0 -23
- package/src/adapters/aitextadapter.js +0 -23
- package/src/adapters/awstextadapter.js +0 -23
- package/src/adapters/openaitextadapter.js +0 -23
- package/src/aiassistant.js +0 -23
- package/src/aiassistantediting.js +0 -23
- package/src/aiassistantui.js +0 -23
- package/src/ui/aiassistantcontroller.js +0 -24
- package/src/ui/form/aiformcontentarea.js +0 -23
- package/src/ui/form/aiformerrorview.js +0 -23
- package/src/ui/form/aiformpromptview.js +0 -23
- package/src/ui/form/aiformtoolbarview.js +0 -23
- package/src/ui/form/aiformview.js +0 -23
- package/src/ui/form/aihistorylistitemview.js +0 -23
- package/src/ui/form/aihistorylistview.js +0 -23
- package/src/ui/form/prompthistory.js +0 -23
- package/src/ui/showaiassistantcommand.js +0 -23
- /package/src/{aiassistantediting.d.ts → aiassistant/aiassistantediting.d.ts} +0 -0
- /package/src/{legacyerrors.d.ts → aiassistant/legacyerrors.d.ts} +0 -0
- /package/src/{ui → aiassistant/ui}/form/aiformerrorview.d.ts +0 -0
- /package/theme/{ai-dropdown.css → aiassistant/ai-dropdown.css} +0 -0
- /package/theme/{ai-form.css → aiassistant/ai-form.css} +0 -0
- /package/theme/{ai.css → aiassistant/ai.css} +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @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/aireviewmodereviewchecklistview
|
|
7
|
+
*/
|
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { ListItemView } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import type { AIReviewCheck } from '../model/aireviewcheck.js';
|
|
11
|
+
import '../../../theme/aireviewmode/aireviewmode-check-list.css';
|
|
12
|
+
export declare class AIReviewModeReviewCheckListView extends ListItemView {
|
|
13
|
+
constructor(locale: Locale);
|
|
14
|
+
/**
|
|
15
|
+
* Sets the checks to be displayed in the list.
|
|
16
|
+
*/
|
|
17
|
+
setChecks(checks: Array<AIReviewCheck>): void;
|
|
18
|
+
/**
|
|
19
|
+
* Indicates whether there are any checks in the list.
|
|
20
|
+
*/
|
|
21
|
+
hasChecks(): boolean;
|
|
22
|
+
resetAllParameterizedChecks(): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x970a67=_0x2491;(function(_0x1dcc39,_0x402130){const _0x415045=_0x2491,_0x5946c4=_0x1dcc39();while(!![]){try{const _0x10e3eb=-parseInt(_0x415045(0x1c1))/0x1+-parseInt(_0x415045(0x1c5))/0x2*(-parseInt(_0x415045(0x1c4))/0x3)+parseInt(_0x415045(0x1c3))/0x4+-parseInt(_0x415045(0x1ca))/0x5+-parseInt(_0x415045(0x1ce))/0x6+-parseInt(_0x415045(0x1ba))/0x7*(parseInt(_0x415045(0x1b6))/0x8)+-parseInt(_0x415045(0x1c9))/0x9*(-parseInt(_0x415045(0x1be))/0xa);if(_0x10e3eb===_0x402130)break;else _0x5946c4['push'](_0x5946c4['shift']());}catch(_0x5ba7f1){_0x5946c4['push'](_0x5946c4['shift']());}}}(_0x415c,0x6a10e));function _0x415c(){const _0x2e3ce6=['_checkViews','bindTemplate','1362810GomNCk','clear','isVisible','delegate','1120624rhNfeB','entries','resetAllParameterizedChecks','ck-hidden','28CIkIMa','add','resetToDefault','length','140aunRBW','runReviewCheck','locale','781811VDbOoL','hasChecks','2130808XwLfrA','390BSwTsI','5532PyQHRc','setTemplate','setChecks','div','816714oXiEJX','795110lVSQMN','ck-ai-review-mode__check-list'];_0x415c=function(){return _0x2e3ce6;};return _0x415c();}import{ListItemView as _0xb7bb21,ViewCollection as _0xebac79}from'ckeditor5/src/ui.js';function _0x2491(_0x587413,_0x9cac03){const _0x415ce5=_0x415c();return _0x2491=function(_0x24915a,_0x1f95f3){_0x24915a=_0x24915a-0x1b6;let _0x4abce3=_0x415ce5[_0x24915a];return _0x4abce3;},_0x2491(_0x587413,_0x9cac03);}import{AIReviewModeReviewCommandListItemView as _0x4cbfe1}from'./aireviewmodereviewcommandlistitemview.js';import'../../../theme/aireviewmode/aireviewmode-check-list.css';export class AIReviewModeReviewCheckListView extends _0xb7bb21{[_0x970a67(0x1cc)];constructor(_0x28588c){const _0x2df72a=_0x970a67;super(_0x28588c),this[_0x2df72a(0x1cc)]=new _0xebac79();const _0x48e499=this[_0x2df72a(0x1cd)];this[_0x2df72a(0x1c6)]({'tag':_0x2df72a(0x1c8),'attributes':{'class':[_0x2df72a(0x1cb),_0x48e499['if'](_0x2df72a(0x1d0),_0x2df72a(0x1b9),_0xac5367=>!_0xac5367)]},'children':this[_0x2df72a(0x1cc)]});}[_0x970a67(0x1c7)](_0x1d83a3){const _0x17ae12=_0x970a67;this[_0x17ae12(0x1cc)][_0x17ae12(0x1cf)]();for(const [_0x4841e8,_0x4b1ca5]of _0x1d83a3[_0x17ae12(0x1b7)]()){const _0x4486da=new _0x4cbfe1(this[_0x17ae12(0x1c0)],_0x4b1ca5,_0x4841e8);_0x4486da[_0x17ae12(0x1d1)](_0x17ae12(0x1bf))['to'](this),this[_0x17ae12(0x1cc)][_0x17ae12(0x1bb)](_0x4486da);}}[_0x970a67(0x1c2)](){const _0x45f6b0=_0x970a67;return this[_0x45f6b0(0x1cc)][_0x45f6b0(0x1bd)]>0x0;}[_0x970a67(0x1b8)](){const _0x106dc3=_0x970a67;for(const _0x20abce of this[_0x106dc3(0x1cc)])_0x20abce instanceof _0x4cbfe1&&_0x20abce[_0x106dc3(0x1bc)]();}}
|
|
@@ -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/aireviewmode/ui/aireviewmodereviewcheckresultsview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { ListItemView, View, ViewCollection } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import { AIReviewModeReviewCheckListItemResultsView } from './aireviewmodechecklistitemresultview.js';
|
|
11
|
+
import { AIDisclaimerView } from '../../aicore/ui/aidisclaimerview.js';
|
|
12
|
+
import '../../../theme/aireviewmode/aireviewmode-check-run.css';
|
|
13
|
+
export declare class AIReviewModeReviewCheckResultsView extends ListItemView {
|
|
14
|
+
resultsHeader: View;
|
|
15
|
+
reviewDisclaimer: AIDisclaimerView;
|
|
16
|
+
/**
|
|
17
|
+
* The title of the current check results.
|
|
18
|
+
*
|
|
19
|
+
* @observable
|
|
20
|
+
*/
|
|
21
|
+
headerTitle: string;
|
|
22
|
+
/**
|
|
23
|
+
* The loading state of the controls.
|
|
24
|
+
*
|
|
25
|
+
* @observable
|
|
26
|
+
*/
|
|
27
|
+
isLoading: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The toggle diff state of the controls.
|
|
30
|
+
*
|
|
31
|
+
* @observable
|
|
32
|
+
*/
|
|
33
|
+
isToggleDiffOn: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Indicates whether the results are ready and can be interacted with.
|
|
36
|
+
*
|
|
37
|
+
* @observable
|
|
38
|
+
*/
|
|
39
|
+
isResultReady: boolean;
|
|
40
|
+
isError: boolean;
|
|
41
|
+
showErrorMessage: boolean;
|
|
42
|
+
errorType: 'chunk' | 'general' | undefined;
|
|
43
|
+
constructor(locale: Locale);
|
|
44
|
+
clearResults(): void;
|
|
45
|
+
getResults(): ViewCollection<AIReviewModeReviewCheckListItemResultsView>;
|
|
46
|
+
addResult(result: {
|
|
47
|
+
contentDiffed: string;
|
|
48
|
+
id: string;
|
|
49
|
+
}): void;
|
|
50
|
+
hideResult(id: string): void;
|
|
51
|
+
/**
|
|
52
|
+
* Sets the title of the current check results.
|
|
53
|
+
*
|
|
54
|
+
* @param title The title to set in the header.
|
|
55
|
+
*/
|
|
56
|
+
setTitle(title: string): void;
|
|
57
|
+
showChunkErrorMessage(): void;
|
|
58
|
+
showGeneralErrorMessage(): void;
|
|
59
|
+
resetErrorState(): void;
|
|
60
|
+
}
|
|
61
|
+
export type AIAbortReviewStreamEvent = {
|
|
62
|
+
name: 'abortReviewStream';
|
|
63
|
+
args: [];
|
|
64
|
+
};
|
|
65
|
+
export type AILeaveReviewModeResultListEvent = {
|
|
66
|
+
name: 'leaveReviewModeResultList';
|
|
67
|
+
args: [];
|
|
68
|
+
};
|
|
69
|
+
export type AIAcceptAllChangesEvent = {
|
|
70
|
+
name: 'acceptAllChanges';
|
|
71
|
+
args: [];
|
|
72
|
+
};
|
|
73
|
+
export type AIToggleDiffEvent = {
|
|
74
|
+
name: 'toggleDiff';
|
|
75
|
+
args: [
|
|
76
|
+
{
|
|
77
|
+
on: boolean;
|
|
78
|
+
}
|
|
79
|
+
];
|
|
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
|
+
import{ListItemView as _0x181fd7,View as _0x5cddfe,ViewCollection as _0x42cac6,ButtonView as _0x2d30b6}from'ckeditor5/src/ui.js';import{IconStop as _0x103391,IconEye as _0x580772,IconEyeCrossedOut as _0x1f3c19}from'ckeditor5/src/icons.js';import{AIReviewModeReviewCheckListItemResultsView as _0x5dae6a}from'./aireviewmodechecklistitemresultview.js';import{AISkeletonView as _0x20c95f,SKELETON_DEFINITIONS as _0xa12850}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x58431c}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0xa3b51a}from'../utils/common-translations.js';import{AISpinnerView as _0x1a0965}from'../../aicore/ui/aispinner.js';import'../../../theme/aireviewmode/aireviewmode-check-run.css';export class AIReviewModeReviewCheckResultsView extends _0x181fd7{['_resultViews'];['resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];constructor(_0x444211){super(_0x444211),this['_resultViews']=new _0x42cac6(),this['_cancelButtonView']=this['_createCancelButtonView'](),this['_acceptAllButtonView']=this['_createAcceptAllButtonView'](),this['_exitReviewButtonView']=this['_createExitReviewButtonView'](),this['_toggleDiffButtonView']=this['_createToggleDiffButtonView'](),this['resultsHeader']=this['_createResultHeaderView'](),this['_errorMessageView']=this['_createErrorView'](),this['reviewDisclaimer']=new _0x58431c(_0x444211),this['set']('isLoading',!0x1),this['set']('isToggleDiffOn',!0x1),this['set']('isResultReady',!0x1),this['set']('headerTitle',''),this['set']('isError',!0x1),this['set']('showErrorMessage',!0x1),this['set']('errorType','general');const _0x304030=this['_createCombinedSkeletonLoader'](),_0x3b8434=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run',_0x3b8434['if']('isVisible','ck-hidden',_0x4578c2=>!_0x4578c2)]},'children':[this['resultsHeader'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-wrapper']},'children':[this['_errorMessageView'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x500882=>_0x500882)]},'children':this['_resultViews']},_0x304030]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x5281e9){const _0xe2a7c6=new _0x5dae6a(this['locale'],_0x5281e9['id']);_0xe2a7c6['delegate']('acceptChange','dismissChange','scrollToSuggestionInDocument')['to'](this),this['_resultViews']['add'](_0xe2a7c6),_0xe2a7c6['resultResponseView']['element']['innerHTML']=_0x5281e9['contentDiffed'];}['hideResult'](_0x469812){const _0x58f095=this['_resultViews']['find'](_0x23ef2a=>_0x23ef2a['id']===_0x469812);_0x58f095&&(_0x58f095['element']?.['classList']['add']('ck-ai-review-mode__check-run-result_removing'),_0x58f095['element']?.['addEventListener']('animationend',()=>{this['_resultViews']['remove'](_0x58f095),_0x58f095['destroy']();},{'once':!0x0}));}['setTitle'](_0x387783){this['headerTitle']=_0x387783;}['showChunkErrorMessage'](){this['errorType']='chunk',this['showErrorMessage']=!0x0;}['showGeneralErrorMessage'](){this['isError']=!0x0,this['errorType']='general',this['showErrorMessage']=!0x0;}['resetErrorState'](){this['isError']=!0x1,this['errorType']='general',this['showErrorMessage']=!0x1;}['_createSkeletonLoader'](){return new _0x20c95f(this['locale'],_0xa12850['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x54afa5=new _0x5cddfe(this['locale']),_0x5637b2=[];for(let _0x47b92e=0x0;_0x47b92e<0x10;_0x47b92e++){const _0x28dd7f=this['_createSkeletonLoader']();_0x28dd7f['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-run-skeleton-item']}}),_0x5637b2['push'](_0x28dd7f);}return _0x54afa5['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x16e925=>!_0x16e925)]},'children':_0x5637b2}),_0x54afa5;}['_createErrorView'](){const _0x2c0ea3=new _0x5cddfe(this['locale']),_0x23e661=new _0x2d30b6(this['locale']),t=this['locale']['t'];return _0x2c0ea3['delegate']('retryReview')['to'](this),_0x23e661['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai-review-mode__check-run-error-retry-button'}),_0x23e661['on']('execute',()=>{this['fire']('retryReview');}),_0x2c0ea3['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x4eacde=>!_0x4eacde),this['bindTemplate']['if']('errorType','ck-ai-review-mode__check-run-error-container_border-bottom',_0x3b8479=>'chunk'===_0x3b8479)]},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-chat-error','ck-ai-chat-error_full-width','ck-ai-review-mode__check-run-error-message',this['bindTemplate']['if']('errorType','ck-ai-chat-error_warning',_0x13bf29=>'chunk'===_0x13bf29)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x7e40f=>'general'!==_0x7e40f)]},'children':[{'text':_0xa3b51a(this['locale'],'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}]},{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x54d9ba=>'chunk'!==_0x54d9ba)]},'children':[{'text':_0xa3b51a(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x23e661]}),_0x2c0ea3;}['_createCancelButtonView'](){const _0x370c9d=new _0x2d30b6(this['locale']);return _0x370c9d['set']({'label':_0xa3b51a(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ai-chat-controls-loader__cancel-button'],'icon':_0x103391}),_0x370c9d['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x3490a2=>_0x3490a2)]}}),_0x370c9d['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x370c9d;}['_createToggleDiffButtonView'](){const _0x21e22a=new _0x2d30b6(this['locale']);_0x21e22a['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x21e22a['bind']('isEnabled')['to'](this,'isError',_0x1f10d3=>!_0x1f10d3),_0x21e22a['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai-review-mode__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x38b237=>!_0x38b237)]}});const _0x47657c=_0xa3b51a(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x45258e=_0xa3b51a(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x21e22a['bind']('isOn')['to'](this,'isToggleDiffOn',_0x5c0832=>_0x5c0832),_0x21e22a['bind']('icon')['to'](this,'isToggleDiffOn',_0x526b1c=>_0x526b1c?_0x580772:_0x1f3c19),_0x21e22a['bind']('label')['to'](this,'isToggleDiffOn',_0x3a64bd=>_0x3a64bd?_0x47657c:_0x45258e),_0x21e22a['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x21e22a;}['_createAcceptAllButtonView'](){const _0x4768dd=new _0x2d30b6(this['locale']);return _0x4768dd['set']({'label':_0xa3b51a(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x4768dd['bind']('isEnabled')['to'](this,'isError',_0x8554af=>!_0x8554af),_0x4768dd['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai-review-mode__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x1146df=>!_0x1146df)]}}),_0x4768dd['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x4768dd;}['_createExitReviewButtonView'](){const _0x151aeb=new _0x2d30b6(this['locale']);return _0x151aeb['set']({'label':_0xa3b51a(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x151aeb['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary-filled','ck-ai-review-mode__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x593727=>!_0x593727)]}}),_0x151aeb['on']('execute',()=>{this['fire']('leaveReviewModeResultList');}),_0x151aeb;}['_createResultHeaderView'](){const _0x4bc3d6=new _0x5cddfe(this['locale']),_0x240287=new _0x1a0965();return _0x240287['bind']('isVisible')['to'](this,'isResultReady',_0x5904c5=>!_0x5904c5),_0x4bc3d6['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header']},'children':[{'tag':'span','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title']},'children':[{'text':this['bindTemplate']['to']('headerTitle')}]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-buttons']},'children':[_0x240287,this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView']]}]}),_0x4bc3d6;}}
|
|
@@ -0,0 +1,45 @@
|
|
|
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/aireviewmodereviewcommandlistitemview
|
|
7
|
+
*/
|
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { ListItemView } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import type { AIReviewCheck } from '../model/aireviewcheck.js';
|
|
11
|
+
/**
|
|
12
|
+
* A view representing an item in the list of tempaltes.
|
|
13
|
+
*
|
|
14
|
+
* @protected
|
|
15
|
+
*/
|
|
16
|
+
export declare class AIReviewModeReviewCommandListItemView extends ListItemView {
|
|
17
|
+
/**
|
|
18
|
+
* The loading state of the controls.
|
|
19
|
+
*
|
|
20
|
+
* @observable
|
|
21
|
+
*/
|
|
22
|
+
isItemParametrized: boolean;
|
|
23
|
+
isParametrizedViewOpen: boolean;
|
|
24
|
+
isListItemRendered: boolean;
|
|
25
|
+
constructor(locale: Locale, check: AIReviewCheck, index: number);
|
|
26
|
+
render(): void;
|
|
27
|
+
/**
|
|
28
|
+
* Resets all form items in the parameterized view to their default values.
|
|
29
|
+
*/
|
|
30
|
+
resetToDefault(): void;
|
|
31
|
+
}
|
|
32
|
+
export type AIReviewModeUIRunReviewCheckEvent = {
|
|
33
|
+
name: 'runReviewCheck';
|
|
34
|
+
args: [
|
|
35
|
+
{
|
|
36
|
+
id: string;
|
|
37
|
+
args?: {
|
|
38
|
+
language?: string;
|
|
39
|
+
model?: string;
|
|
40
|
+
prompt?: string;
|
|
41
|
+
};
|
|
42
|
+
isCustom?: boolean;
|
|
43
|
+
}
|
|
44
|
+
];
|
|
45
|
+
};
|
|
@@ -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
|
+
import{ListItemView as _0x297d7c,IconView as _0x1911df,View as _0x32a467,ViewCollection as _0x1f751b,ButtonView as _0x5f4296,clickOutsideHandler as _0x59388d}from'ckeditor5/src/ui.js';import{IconChevronRight as _0x290b61}from'ckeditor5/src/icons.js';import{AIReviewModeFormManagerView as _0x3bbc38}from'./form/aireviewmodeformmanager.js';import{AIReviewModeCustomCheckView as _0x4ec43d}from'./aireviewmodecustomcheckview.js';export class AIReviewModeReviewCommandListItemView extends _0x297d7c{['_formItemsCollection']=new _0x1f751b();['_customCheckView']=null;constructor(_0x4e300b,_0x267c99,_0x3ab896){super(_0x4e300b),this['set']('isParametrizedViewOpen',!0x1),this['set']('isListItemRendered',!0x1),this['set']('isItemParametrized',_0x267c99['isParameterized']);const _0x4f3c28=this['_createIconView']();this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item',this['bindTemplate']['if']('isParametrizedViewOpen','ck-ai-review-mode__check-list-item_selected',_0x330cc7=>_0x330cc7),this['bindTemplate']['if']('isListItemRendered','ck-ai-review-mode__check-list-item_rendered',_0x177538=>_0x177538)],'style':{'--ck-ai-check-list-item-index':_0x3ab896}},'on':{'click':this['bindTemplate']['to']('click')},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-main-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-title']},'children':[{'tag':'span','attributes':{'class':['ck-ai-review-mode__check-list-item-title-text']},'children':[{'text':_0x267c99['title']}]},_0x4f3c28]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-description']},'children':[{'text':_0x267c99['description']}]}]}]},..._0x267c99['isParameterized']?[this['_createParameterizedView'](_0x267c99)]:[],...'custom'===_0x267c99['id']?[this['_createCustomView'](_0x267c99)]:[]]}),this['on']('click',()=>{_0x267c99['isParameterized']?this['isParametrizedViewOpen']=!0x0:this['fire']('runReviewCheck',{'id':_0x267c99['id']});}),requestAnimationFrame(()=>{this['isListItemRendered']=!0x0;});}['render'](){super['render'](),this['isItemParametrized']&&_0x59388d({'emitter':this,'activator':()=>!0x0===this['isParametrizedViewOpen'],'contextElements':[this['element']],'callback':()=>{this['isParametrizedViewOpen']=!0x1;}});}['resetToDefault'](){this['isParametrizedViewOpen']=!0x1,this['_formItemsCollection']['forEach'](_0x561cbe=>{_0x561cbe['resetToDefault']();}),this['_customCheckView']&&this['_customCheckView']['resetToDefault']();}['_createIconView'](){const _0x248cbb=new _0x1911df();return _0x248cbb['content']=_0x290b61,_0x248cbb['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-list-item-title-icon']}}),_0x248cbb;}['_createParameterizedView'](_0x47d382){const _0xa15756=new _0x32a467(),_0x1e0901=this['_createFormView'](_0x47d382);return _0xa15756['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x153558=>!_0x153558)]},'children':[_0x1e0901]}),_0xa15756;}['_createFormView'](_0x494504){const _0x20bbd8=new _0x32a467(),_0x2dbebf=Array['isArray'](_0x494504['options'])?_0x494504['options']:[],_0x15d523=new _0x5f4296(this['locale']),t=this['locale']['t'];_0x15d523['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x15d523['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x4af039=>{_0x4af039['stopPropagation']();})}}),_0x15d523['on']('execute',()=>{const _0x2353a9=[];let _0xf25063;this['_formItemsCollection']['forEach'](_0x9e742b=>{_0x2353a9['push'](_0x9e742b['value']),_0x494504['useArgs']&&_0x494504['options']&&(_0xf25063={[_0x9e742b['argsKey']]:_0x9e742b['value']});});const _0xd99259=_0x494504['useArgs']?_0x494504['id']:[_0x494504['id'],..._0x2353a9]['join']('-');this['fire']('runReviewCheck',{'id':_0xd99259,'args':_0xf25063});});const _0x104d9e=_0x2dbebf['length'];return _0x2dbebf['forEach']((_0x1aae3f,_0x2ad764)=>{const _0x39a631=_0x2ad764===_0x104d9e-0x1;this['_formItemsCollection']['add'](new _0x3bbc38(this['locale'],_0x1aae3f,_0x39a631?_0x15d523:null));}),_0x20bbd8['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized-form']},'children':this['_formItemsCollection']}),_0x20bbd8;}['_createCustomView'](_0x2f7b7b){return this['_customCheckView']=new _0x4ec43d(this['locale'],_0x2f7b7b),this['_customCheckView']['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized','ck-ai-review-mode__check-list-item-parameterized_custom',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x33e2d8=>!_0x33e2d8)]}}),this['_customCheckView']['delegate']('runReviewCheck')['to'](this),this['_customCheckView'];}}
|
|
@@ -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/ui/aireviewmodereviewcompletedview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { ListItemView, View } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import '../../../theme/aireviewmode/aireviewmode-review-completed.css';
|
|
11
|
+
export declare class AIReviewModeReviewCompletedView extends ListItemView {
|
|
12
|
+
resultsHeader: View;
|
|
13
|
+
constructor(locale: Locale);
|
|
14
|
+
}
|
|
15
|
+
export type AIReviewModeFinishReviewEvent = {
|
|
16
|
+
name: 'finishReview';
|
|
17
|
+
args: [];
|
|
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
|
+
const _0x3890c6=_0x5855;(function(_0x86646b,_0x1e08ec){const _0x1e8fd5=_0x5855,_0x3747de=_0x86646b();while(!![]){try{const _0x55dc43=-parseInt(_0x1e8fd5(0x10b))/0x1+parseInt(_0x1e8fd5(0x107))/0x2*(parseInt(_0x1e8fd5(0x106))/0x3)+-parseInt(_0x1e8fd5(0x10d))/0x4*(parseInt(_0x1e8fd5(0xff))/0x5)+parseInt(_0x1e8fd5(0x108))/0x6*(parseInt(_0x1e8fd5(0xf8))/0x7)+-parseInt(_0x1e8fd5(0x113))/0x8*(parseInt(_0x1e8fd5(0xf6))/0x9)+parseInt(_0x1e8fd5(0x10c))/0xa+parseInt(_0x1e8fd5(0x117))/0xb*(parseInt(_0x1e8fd5(0x111))/0xc);if(_0x55dc43===_0x1e08ec)break;else _0x3747de['push'](_0x3747de['shift']());}catch(_0xc805b7){_0x3747de['push'](_0x3747de['shift']());}}}(_0x269a,0x68ad3));function _0x5855(_0x11480c,_0x46a67e){const _0x269a2b=_0x269a();return _0x5855=function(_0x58550e,_0x117523){_0x58550e=_0x58550e-0xf6;let _0x10a901=_0x269a2b[_0x58550e];return _0x10a901;},_0x5855(_0x11480c,_0x46a67e);}import{ListItemView as _0x267968,View as _0x20736b,ButtonView as _0x5465a9}from'ckeditor5/src/ui.js';import{getTranslation as _0x23bc64}from'../utils/common-translations.js';function _0x269a(){const _0x3139c7=['setTemplate','_finishReviewButtonView','execute','2319jLgdpa','266lZYsWm','1333362xHdeRD','span','ck-hidden','247780myFvoE','3632490jnlEnX','37580LTEtiA','set','resultsHeader','ck-ai-review-mode__review-completed-header','6828jqRysT','div','108104AMCekg','ck-ai-review-mode__review-completed-content-text','locale','ck-ai-review-mode__review-completed-content','2981xPROsR','AI_REVIEW_MODE_COMPLETED_TEXT','fire','ck-ai-review-mode__review-completed','ck-ai-review-mode__review-completed-header-title','369GcpfxP','ck-ai-review-mode__review-completed-header-buttons','21KwlJzi','_createFinishReviewButtonView','_createResultHeaderView','ck-ai-review-mode__review-completed-content-icon','AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE','ck-ai-button-primary','AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL','30RiAqgQ','bindTemplate','isVisible','finishReview'];_0x269a=function(){return _0x3139c7;};return _0x269a();}import'../../../theme/aireviewmode/aireviewmode-review-completed.css';export class AIReviewModeReviewCompletedView extends _0x267968{[_0x3890c6(0x10f)];[_0x3890c6(0x104)];constructor(_0xbf9331){const _0xcaa652=_0x3890c6;super(_0xbf9331),this[_0xcaa652(0x104)]=this[_0xcaa652(0xf9)](),this[_0xcaa652(0x10f)]=this[_0xcaa652(0xfa)]();const _0x5b5ffa=this[_0xcaa652(0x100)];this[_0xcaa652(0x103)]({'tag':_0xcaa652(0x112),'attributes':{'class':[_0xcaa652(0x11a),_0x5b5ffa['if'](_0xcaa652(0x101),_0xcaa652(0x10a),_0x296233=>!_0x296233)]},'children':[this[_0xcaa652(0x10f)],{'tag':_0xcaa652(0x112),'attributes':{'class':[_0xcaa652(0x116)]},'children':[{'tag':_0xcaa652(0x109),'attributes':{'class':[_0xcaa652(0xfb)]},'children':[{'text':'🎉'}]},{'tag':'p','attributes':{'class':[_0xcaa652(0x114)]},'children':[{'text':_0x23bc64(_0xbf9331,_0xcaa652(0x118))}]}]}]});}[_0x3890c6(0xf9)](){const _0x507c98=_0x3890c6,_0x37e37c=new _0x5465a9(this[_0x507c98(0x115)]);return _0x37e37c[_0x507c98(0x10e)]({'label':_0x23bc64(this[_0x507c98(0x115)],_0x507c98(0xfe)),'withText':!0x0,'class':_0x507c98(0xfd)}),_0x37e37c['on'](_0x507c98(0x105),()=>{const _0x566964=_0x507c98;this[_0x566964(0x119)](_0x566964(0x102));}),_0x37e37c;}[_0x3890c6(0xfa)](){const _0x39d6fc=_0x3890c6,_0x1b049a=new _0x20736b(this[_0x39d6fc(0x115)]);return _0x1b049a[_0x39d6fc(0x103)]({'tag':_0x39d6fc(0x112),'attributes':{'class':[_0x39d6fc(0x110)]},'children':[{'tag':_0x39d6fc(0x109),'attributes':{'class':[_0x39d6fc(0x11b)]},'children':[{'text':_0x23bc64(this[_0x39d6fc(0x115)],_0x39d6fc(0xfc))}]},{'tag':_0x39d6fc(0x112),'attributes':{'class':[_0x39d6fc(0xf7)]},'children':[this[_0x39d6fc(0x104)]]}]}),_0x1b049a;}}
|
|
@@ -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
|
+
/**
|
|
6
|
+
* @module ai/aireviewmode/ui/aireviewmodeview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { View, FormHeaderView } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import { AIReviewModeReviewCheckListView } from './aireviewmodereviewchecklistview.js';
|
|
11
|
+
import { AIReviewModeReviewCheckResultsView } from './aireviewmodereviewcheckresultsview.js';
|
|
12
|
+
import { AIReviewModeReviewCompletedView } from './aireviewmodereviewcompletedview.js';
|
|
13
|
+
export declare class AIReviewModeView extends View {
|
|
14
|
+
/**
|
|
15
|
+
* The header of the AI Review Mode.
|
|
16
|
+
*/
|
|
17
|
+
reviewModeHeader: FormHeaderView;
|
|
18
|
+
/**
|
|
19
|
+
* The review check list view of the AI Review Mode.
|
|
20
|
+
*/
|
|
21
|
+
reviewCheckListView: AIReviewModeReviewCheckListView;
|
|
22
|
+
/**
|
|
23
|
+
* The check run results view of the AI Review Mode.
|
|
24
|
+
*/
|
|
25
|
+
reviewCheckResultsView: AIReviewModeReviewCheckResultsView;
|
|
26
|
+
/**
|
|
27
|
+
* The review completed view of the AI Review Mode.
|
|
28
|
+
*/
|
|
29
|
+
reviewCompletedView: AIReviewModeReviewCompletedView;
|
|
30
|
+
constructor(locale: Locale);
|
|
31
|
+
showReviewCheckListView(): void;
|
|
32
|
+
showReviewCheckResultsView(): void;
|
|
33
|
+
addCheckRunResult(result: {
|
|
34
|
+
contentDiffed: string;
|
|
35
|
+
id: string;
|
|
36
|
+
}): void;
|
|
37
|
+
showReviewCompletedView(): void;
|
|
38
|
+
showActionsWhenResultIsReady(): void;
|
|
39
|
+
hideActionsWhenResultIsReady(): void;
|
|
40
|
+
showGeneralErrorView(): void;
|
|
41
|
+
showChunkErrorView(): void;
|
|
42
|
+
}
|
|
@@ -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 _0x3c0990=_0x23a4;(function(_0xca0dc3,_0x2ef1f0){var _0x189985=_0x23a4,_0x55ba14=_0xca0dc3();while(!![]){try{var _0x24658a=parseInt(_0x189985(0x189))/0x1+parseInt(_0x189985(0x190))/0x2+parseInt(_0x189985(0x177))/0x3*(-parseInt(_0x189985(0x18b))/0x4)+parseInt(_0x189985(0x18e))/0x5*(-parseInt(_0x189985(0x188))/0x6)+-parseInt(_0x189985(0x176))/0x7*(parseInt(_0x189985(0x17d))/0x8)+-parseInt(_0x189985(0x172))/0x9+-parseInt(_0x189985(0x16f))/0xa*(-parseInt(_0x189985(0x16d))/0xb);if(_0x24658a===_0x2ef1f0)break;else _0x55ba14['push'](_0x55ba14['shift']());}catch(_0x37c002){_0x55ba14['push'](_0x55ba14['shift']());}}}(_0x139d,0xaae21));import{View as _0x157959,FormHeaderView as _0x5d8ef9}from'ckeditor5/src/ui.js';import{IconAIReview as _0x4f52f1}from'ckeditor5/src/icons.js';import{AIReviewModeReviewCheckListView as _0x267d2a}from'./aireviewmodereviewchecklistview.js';import{AI_REVIEW_MODE_UI_EVENT_NAMES as _0x3f52d4}from'../aireviewmodeui.js';import{AIReviewModeReviewCheckResultsView as _0x114041}from'./aireviewmodereviewcheckresultsview.js';function _0x139d(){var _0x4720c4=['showActionsWhenResultIsReady','2519826aJdEnP','1102531jPawHV','ck-rounded-corners','2375836BOpFEl','ck-ai-review-mode','addCheckRunResult','5BWKPTr','ltr','1013888IGASGQ','resetErrorState','ck-ai-header\x20ck-ai-header_review-mode','reviewCheckListView','setTemplate','ck-content\x20','reviewModeHeader','showReviewCompletedView','ck-reset_all','11MopTol','showGeneralErrorView','14605320IJBhgq','finishReview','showReviewCheckListView','4275585umLpdZ','div','isLoading','showChunkErrorMessage','455MEYQux','3CJysIY','addResult','delegate','isVisible','AI_REVIEW_MODE','hideActionsWhenResultIsReady','108440aZRToj','set','showChunkErrorView','resetAllParameterizedChecks','reviewCompletedView','showGeneralErrorMessage','reviewCheckResultsView','clearResults','showReviewCheckResultsView','isResultReady'];_0x139d=function(){return _0x4720c4;};return _0x139d();}import{AIReviewModeReviewCompletedView as _0x1916d8}from'./aireviewmodereviewcompletedview.js';function _0x23a4(_0x561d33,_0x12c938){var _0x139daa=_0x139d();return _0x23a4=function(_0x23a4cc,_0x3e0790){_0x23a4cc=_0x23a4cc-0x166;var _0x46f7a7=_0x139daa[_0x23a4cc];return _0x46f7a7;},_0x23a4(_0x561d33,_0x12c938);}import{getTranslation as _0x3da511}from'../utils/common-translations.js';export class AIReviewModeView extends _0x157959{[_0x3c0990(0x16a)];[_0x3c0990(0x167)];[_0x3c0990(0x183)];[_0x3c0990(0x181)];constructor(_0x5189b3){var _0x2aa36a=_0x3c0990;super(_0x5189b3),this[_0x2aa36a(0x16a)]=new _0x5d8ef9(_0x5189b3,{'label':_0x3da511(_0x5189b3,_0x2aa36a(0x17b)),'icon':_0x4f52f1,'class':_0x2aa36a(0x166)}),this[_0x2aa36a(0x167)]=new _0x267d2a(_0x5189b3),this[_0x2aa36a(0x167)][_0x2aa36a(0x179)](..._0x3f52d4)['to'](this),this[_0x2aa36a(0x183)]=new _0x114041(_0x5189b3),this[_0x2aa36a(0x183)][_0x2aa36a(0x179)](..._0x3f52d4)['to'](this),this[_0x2aa36a(0x181)]=new _0x1916d8(_0x5189b3),this[_0x2aa36a(0x181)][_0x2aa36a(0x179)](_0x2aa36a(0x170))['to'](this),this[_0x2aa36a(0x167)][_0x2aa36a(0x17e)](_0x2aa36a(0x17a),!0x1),this[_0x2aa36a(0x183)][_0x2aa36a(0x17e)](_0x2aa36a(0x17a),!0x1),this[_0x2aa36a(0x183)][_0x2aa36a(0x17e)](_0x2aa36a(0x174),!0x1),this[_0x2aa36a(0x183)][_0x2aa36a(0x17e)](_0x2aa36a(0x186),!0x1),this[_0x2aa36a(0x181)][_0x2aa36a(0x17e)](_0x2aa36a(0x17a),!0x1),this[_0x2aa36a(0x168)]({'tag':_0x2aa36a(0x173),'attributes':{'class':['ck',_0x2aa36a(0x169),_0x2aa36a(0x16c),_0x2aa36a(0x18c),_0x2aa36a(0x18a)],'dir':_0x2aa36a(0x18f)},'children':[this[_0x2aa36a(0x16a)],this[_0x2aa36a(0x167)],this[_0x2aa36a(0x183)],this[_0x2aa36a(0x181)]]});}[_0x3c0990(0x171)](){var _0x3bb3d0=_0x3c0990;this[_0x3bb3d0(0x167)][_0x3bb3d0(0x180)](),this[_0x3bb3d0(0x167)][_0x3bb3d0(0x17e)](_0x3bb3d0(0x17a),!0x0),this[_0x3bb3d0(0x183)][_0x3bb3d0(0x17e)](_0x3bb3d0(0x17a),!0x1),this[_0x3bb3d0(0x181)][_0x3bb3d0(0x17e)](_0x3bb3d0(0x17a),!0x1);}[_0x3c0990(0x185)](){var _0x24a66a=_0x3c0990;this[_0x24a66a(0x17c)](),this[_0x24a66a(0x183)][_0x24a66a(0x191)](),this[_0x24a66a(0x167)][_0x24a66a(0x17e)](_0x24a66a(0x17a),!0x1),this[_0x24a66a(0x183)][_0x24a66a(0x17e)](_0x24a66a(0x17a),!0x0),this[_0x24a66a(0x183)][_0x24a66a(0x184)](),this[_0x24a66a(0x183)][_0x24a66a(0x17e)](_0x24a66a(0x174),!0x0);}[_0x3c0990(0x18d)](_0x216cd9){var _0xc0ca30=_0x3c0990;this[_0xc0ca30(0x183)][_0xc0ca30(0x178)](_0x216cd9),this[_0xc0ca30(0x183)][_0xc0ca30(0x17e)](_0xc0ca30(0x174),!0x1);}[_0x3c0990(0x16b)](){var _0xf3460d=_0x3c0990;this[_0xf3460d(0x167)][_0xf3460d(0x17e)](_0xf3460d(0x17a),!0x1),this[_0xf3460d(0x183)][_0xf3460d(0x17e)](_0xf3460d(0x17a),!0x1),this[_0xf3460d(0x181)][_0xf3460d(0x17e)](_0xf3460d(0x17a),!0x0);}[_0x3c0990(0x187)](){var _0x274bd9=_0x3c0990;this[_0x274bd9(0x183)][_0x274bd9(0x186)]=!0x0;}[_0x3c0990(0x17c)](){var _0x1bf6b0=_0x3c0990;this[_0x1bf6b0(0x183)][_0x1bf6b0(0x186)]=!0x1;}[_0x3c0990(0x16e)](){var _0x156be4=_0x3c0990;this[_0x156be4(0x183)][_0x156be4(0x17e)](_0x156be4(0x174),!0x1),this[_0x156be4(0x187)](),this[_0x156be4(0x183)][_0x156be4(0x182)]();}[_0x3c0990(0x17f)](){var _0x27d468=_0x3c0990;this[_0x27d468(0x183)][_0x27d468(0x17e)](_0x27d468(0x174),!0x1),this[_0x27d468(0x187)](),this[_0x27d468(0x183)][_0x27d468(0x175)]();}}
|
|
@@ -0,0 +1,16 @@
|
|
|
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/form/aireviewmodeformamanager
|
|
7
|
+
*/
|
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { type View, ListItemView } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import { type AIReviewCheckOptions } from '../../model/aireviewcheck.js';
|
|
11
|
+
export declare class AIReviewModeFormManagerView extends ListItemView {
|
|
12
|
+
value: string;
|
|
13
|
+
argsKey: string | undefined;
|
|
14
|
+
constructor(locale: Locale, options: AIReviewCheckOptions, submitButton: View | null);
|
|
15
|
+
resetToDefault(): void;
|
|
16
|
+
}
|
|
@@ -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 _0x2204(_0x3f4280,_0x7ed745){const _0x1196d2=_0x1196();return _0x2204=function(_0x2204d8,_0x495757){_0x2204d8=_0x2204d8-0xde;let _0x21899f=_0x1196d2[_0x2204d8];return _0x21899f;},_0x2204(_0x3f4280,_0x7ed745);}const _0x24aeb0=_0x2204;function _0x1196(){const _0x3576ed=['3996kevvZm','ck-ai-review-mode__form-item','36203687wFfKTh','_formItem','div','18300xTetaB','12HMxuRh','10KbbFxU','42SQpoMj','561FJYAJS','ck-reset_all','59689tVfyrt','locale','add','formValue','13361238bVgYWr','2143575BwTxIw','formType','resetToDefault','dropdown','1705iNFArA','bind','children','ck-form__row_with-submit','set','argsKey','24qgmmfc','value','5972967PwGDae','setTemplate'];_0x1196=function(){return _0x3576ed;};return _0x1196();}(function(_0x2095a2,_0x584217){const _0x36ad84=_0x2204,_0x193ca1=_0x2095a2();while(!![]){try{const _0x39cc25=-parseInt(_0x36ad84(0xe3))/0x1*(parseInt(_0x36ad84(0xe0))/0x2)+-parseInt(_0x36ad84(0xe1))/0x3*(parseInt(_0x36ad84(0xfb))/0x4)+-parseInt(_0x36ad84(0xec))/0x5*(parseInt(_0x36ad84(0xf6))/0x6)+parseInt(_0x36ad84(0xf4))/0x7+parseInt(_0x36ad84(0xf2))/0x8*(parseInt(_0x36ad84(0xe8))/0x9)+parseInt(_0x36ad84(0xdf))/0xa*(-parseInt(_0x36ad84(0xe7))/0xb)+parseInt(_0x36ad84(0xde))/0xc*(parseInt(_0x36ad84(0xf8))/0xd);if(_0x39cc25===_0x584217)break;else _0x193ca1['push'](_0x193ca1['shift']());}catch(_0x58a66b){_0x193ca1['push'](_0x193ca1['shift']());}}}(_0x1196,0xc3c9b));import{FormRowView as _0x5ec5f3,ListItemView as _0x443c91}from'ckeditor5/src/ui.js';import{AIReviewModeFormDropdownView as _0xa30d76}from'./aireviewmodeformdropdown.js';export class AIReviewModeFormManagerView extends _0x443c91{[_0x24aeb0(0xf9)]=null;constructor(_0x9ffc8d,_0xc2d88c,_0x27bca9){const _0xc3845c=_0x24aeb0;super(_0x9ffc8d),this[_0xc3845c(0xf1)]=_0xc2d88c?.[_0xc3845c(0xf1)];if(_0xc3845c(0xeb)===_0xc2d88c[_0xc3845c(0xe9)])this[_0xc3845c(0xf9)]=new _0xa30d76(this[_0xc3845c(0xe4)],_0xc2d88c);this[_0xc3845c(0xf0)](_0xc3845c(0xf3),''),this[_0xc3845c(0xed)](_0xc3845c(0xf3))['to'](this[_0xc3845c(0xf9)],_0xc3845c(0xe6));const _0x31e2fa=new _0x5ec5f3(this[_0xc3845c(0xe4)],{'children':[this[_0xc3845c(0xf9)]],'class':[_0x27bca9?_0xc3845c(0xef):'']});_0x27bca9&&_0x31e2fa[_0xc3845c(0xee)][_0xc3845c(0xe5)](_0x27bca9),this[_0xc3845c(0xf5)]({'tag':_0xc3845c(0xfa),'attributes':{'class':['ck',_0xc3845c(0xf7),_0xc3845c(0xe2)]},'children':[_0x31e2fa]});}[_0x24aeb0(0xea)](){const _0x317b22=_0x24aeb0;this[_0x317b22(0xf9)][_0x317b22(0xea)]();}}
|
|
@@ -0,0 +1,20 @@
|
|
|
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/form/aireviewmodeformamanager
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import type { AIReviewCheckOptions } from '../../model/aireviewcheck.js';
|
|
11
|
+
export declare class AIReviewModeFormDropdownView extends View {
|
|
12
|
+
/**
|
|
13
|
+
* The `value` of the currently selected option.
|
|
14
|
+
*
|
|
15
|
+
* @observable
|
|
16
|
+
*/
|
|
17
|
+
formValue: string | null;
|
|
18
|
+
constructor(locale: Locale, options: AIReviewCheckOptions);
|
|
19
|
+
resetToDefault(): void;
|
|
20
|
+
}
|
|
@@ -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 _0x169458=_0x4746;function _0x24b6(){const _0x1f06cd=['7MAReTd','bindTemplate','_dropdownView','1128304KUFspU','isOn','listenTo','72hfiUTY','setTemplate','data','set','18tnbyXb','12340viIbBB','ck-reset_all','29668BemETj','find','_defaultValue','resetToDefault','length','model','656840wBfLRY','formValue','765FvyaQG','add','ck-ai-review-mode__check-list-item-parameterized-form-element','1071191dStxkP','1788966hucjXM','ck-ai-review-mode__check-list-item-parameterized-form-element_dropdown','46714TgrsIn','div','button','stopPropagation','_defaultLabel','locale','buttonView','14maWqmh','default','execute','source','label','extendTemplate','_prepareListOptions','bind','menuitemradio','menu'];_0x24b6=function(){return _0x1f06cd;};return _0x24b6();}(function(_0x5c854b,_0x422bde){const _0x1337fc=_0x4746,_0x3abf89=_0x5c854b();while(!![]){try{const _0x329b8b=-parseInt(_0x1337fc(0x1e5))/0x1*(-parseInt(_0x1337fc(0x1ec))/0x2)+-parseInt(_0x1337fc(0x1d4))/0x3*(-parseInt(_0x1337fc(0x1d7))/0x4)+parseInt(_0x1337fc(0x1dd))/0x5+parseInt(_0x1337fc(0x1e3))/0x6+parseInt(_0x1337fc(0x1f6))/0x7*(-parseInt(_0x1337fc(0x1f9))/0x8)+parseInt(_0x1337fc(0x1df))/0x9*(parseInt(_0x1337fc(0x1d5))/0xa)+parseInt(_0x1337fc(0x1e2))/0xb*(-parseInt(_0x1337fc(0x1fc))/0xc);if(_0x329b8b===_0x422bde)break;else _0x3abf89['push'](_0x3abf89['shift']());}catch(_0x55a298){_0x3abf89['push'](_0x3abf89['shift']());}}}(_0x24b6,0x2c173));import{Collection as _0x4ff77c}from'ckeditor5/src/utils.js';import{View as _0x189a1e,createDropdown as _0xddf60e,addListToDropdown as _0x190dab,UIModel as _0x1db8f0}from'ckeditor5/src/ui.js';function _0x4746(_0x5ac309,_0x34fa1b){const _0x24b656=_0x24b6();return _0x4746=function(_0x4746e9,_0x55fa7a){_0x4746e9=_0x4746e9-0x1d3;let _0x2fc8a5=_0x24b656[_0x4746e9];return _0x2fc8a5;},_0x4746(_0x5ac309,_0x34fa1b);}export class AIReviewModeFormDropdownView extends _0x189a1e{[_0x169458(0x1f8)];[_0x169458(0x1d9)];[_0x169458(0x1e9)];constructor(_0x23bd80,_0x432f9f){const _0x27e7fa=_0x169458;super(_0x23bd80),this[_0x27e7fa(0x1d9)]=_0x432f9f[_0x27e7fa(0x1ed)]||(_0x432f9f[_0x27e7fa(0x1fe)][_0x27e7fa(0x1db)]>0x0?_0x432f9f[_0x27e7fa(0x1fe)][0x0]['id']:''),this[_0x27e7fa(0x1e9)]=_0x432f9f[_0x27e7fa(0x1fe)][_0x27e7fa(0x1d8)](_0x2de60a=>_0x2de60a['id']===this[_0x27e7fa(0x1d9)])?.[_0x27e7fa(0x1f0)]||'',this[_0x27e7fa(0x1d3)](_0x27e7fa(0x1de),''),this[_0x27e7fa(0x1f8)]=_0xddf60e(this[_0x27e7fa(0x1ea)]);const _0x315369=this[_0x27e7fa(0x1f2)](_0x432f9f[_0x27e7fa(0x1fe)]);_0x190dab(this[_0x27e7fa(0x1f8)],_0x315369,{'role':_0x27e7fa(0x1f5),'ariaLabel':_0x432f9f[_0x27e7fa(0x1f0)]}),this[_0x27e7fa(0x1f8)][_0x27e7fa(0x1eb)][_0x27e7fa(0x1d3)]({'label':this[_0x27e7fa(0x1e9)],'withText':!0x0}),this[_0x27e7fa(0x1f8)][_0x27e7fa(0x1f1)]({'on':{'click':this[_0x27e7fa(0x1f7)]['to'](_0x160c9e=>{const _0x20dab6=_0x27e7fa;_0x160c9e[_0x20dab6(0x1e8)]();})}}),this[_0x27e7fa(0x1fb)](this[_0x27e7fa(0x1f8)],_0x27e7fa(0x1ee),_0x3617c3=>{const _0x2f324c=_0x27e7fa;this[_0x2f324c(0x1de)]=_0x3617c3[_0x2f324c(0x1ef)][_0x2f324c(0x1dc)]['id'],this[_0x2f324c(0x1f8)][_0x2f324c(0x1eb)][_0x2f324c(0x1f0)]=_0x3617c3[_0x2f324c(0x1ef)][_0x2f324c(0x1dc)][_0x2f324c(0x1f0)];}),this[_0x27e7fa(0x1fd)]({'tag':_0x27e7fa(0x1e6),'attributes':{'class':['ck',_0x27e7fa(0x1d6),_0x27e7fa(0x1e1),_0x27e7fa(0x1e4)]},'children':[this[_0x27e7fa(0x1f8)]]});}[_0x169458(0x1da)](){const _0x2f6699=_0x169458;this[_0x2f6699(0x1de)]=this[_0x2f6699(0x1d9)],this[_0x2f6699(0x1f8)][_0x2f6699(0x1eb)][_0x2f6699(0x1f0)]=this[_0x2f6699(0x1e9)];}[_0x169458(0x1f2)](_0x51bce9=[]){const _0x17f680=_0x169458,_0xa8475d=new _0x4ff77c();this[_0x17f680(0x1da)]();for(const _0x121e44 of _0x51bce9){const _0x1f6bdc=new _0x1db8f0({'label':_0x121e44[_0x17f680(0x1f0)],'withText':!0x0,'role':_0x17f680(0x1f4),'id':_0x121e44['id'],'model':_0x121e44});_0x1f6bdc[_0x17f680(0x1f3)](_0x17f680(0x1fa))['to'](this,_0x17f680(0x1de),_0x3c69eb=>_0x3c69eb===_0x1f6bdc['id']);const _0x2e2995={'type':_0x17f680(0x1e7),'model':_0x1f6bdc};_0xa8475d[_0x17f680(0x1e0)](_0x2e2995);}return _0xa8475d;}}
|
|
@@ -0,0 +1,16 @@
|
|
|
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/form/aireviewmodeformmanager
|
|
7
|
+
*/
|
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { type View, ListItemView } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import { type AIReviewCheckOptions } from '../../model/aireviewcheck.js';
|
|
11
|
+
export declare class AIReviewModeFormManagerView extends ListItemView {
|
|
12
|
+
value: string;
|
|
13
|
+
argsKey: string | undefined;
|
|
14
|
+
constructor(locale: Locale, options: AIReviewCheckOptions, submitButton: View | null);
|
|
15
|
+
resetToDefault(): void;
|
|
16
|
+
}
|
|
@@ -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 _0x2204(_0x3f4280,_0x7ed745){const _0x1196d2=_0x1196();return _0x2204=function(_0x2204d8,_0x495757){_0x2204d8=_0x2204d8-0xde;let _0x21899f=_0x1196d2[_0x2204d8];return _0x21899f;},_0x2204(_0x3f4280,_0x7ed745);}const _0x24aeb0=_0x2204;function _0x1196(){const _0x3576ed=['3996kevvZm','ck-ai-review-mode__form-item','36203687wFfKTh','_formItem','div','18300xTetaB','12HMxuRh','10KbbFxU','42SQpoMj','561FJYAJS','ck-reset_all','59689tVfyrt','locale','add','formValue','13361238bVgYWr','2143575BwTxIw','formType','resetToDefault','dropdown','1705iNFArA','bind','children','ck-form__row_with-submit','set','argsKey','24qgmmfc','value','5972967PwGDae','setTemplate'];_0x1196=function(){return _0x3576ed;};return _0x1196();}(function(_0x2095a2,_0x584217){const _0x36ad84=_0x2204,_0x193ca1=_0x2095a2();while(!![]){try{const _0x39cc25=-parseInt(_0x36ad84(0xe3))/0x1*(parseInt(_0x36ad84(0xe0))/0x2)+-parseInt(_0x36ad84(0xe1))/0x3*(parseInt(_0x36ad84(0xfb))/0x4)+-parseInt(_0x36ad84(0xec))/0x5*(parseInt(_0x36ad84(0xf6))/0x6)+parseInt(_0x36ad84(0xf4))/0x7+parseInt(_0x36ad84(0xf2))/0x8*(parseInt(_0x36ad84(0xe8))/0x9)+parseInt(_0x36ad84(0xdf))/0xa*(-parseInt(_0x36ad84(0xe7))/0xb)+parseInt(_0x36ad84(0xde))/0xc*(parseInt(_0x36ad84(0xf8))/0xd);if(_0x39cc25===_0x584217)break;else _0x193ca1['push'](_0x193ca1['shift']());}catch(_0x58a66b){_0x193ca1['push'](_0x193ca1['shift']());}}}(_0x1196,0xc3c9b));import{FormRowView as _0x5ec5f3,ListItemView as _0x443c91}from'ckeditor5/src/ui.js';import{AIReviewModeFormDropdownView as _0xa30d76}from'./aireviewmodeformdropdown.js';export class AIReviewModeFormManagerView extends _0x443c91{[_0x24aeb0(0xf9)]=null;constructor(_0x9ffc8d,_0xc2d88c,_0x27bca9){const _0xc3845c=_0x24aeb0;super(_0x9ffc8d),this[_0xc3845c(0xf1)]=_0xc2d88c?.[_0xc3845c(0xf1)];if(_0xc3845c(0xeb)===_0xc2d88c[_0xc3845c(0xe9)])this[_0xc3845c(0xf9)]=new _0xa30d76(this[_0xc3845c(0xe4)],_0xc2d88c);this[_0xc3845c(0xf0)](_0xc3845c(0xf3),''),this[_0xc3845c(0xed)](_0xc3845c(0xf3))['to'](this[_0xc3845c(0xf9)],_0xc3845c(0xe6));const _0x31e2fa=new _0x5ec5f3(this[_0xc3845c(0xe4)],{'children':[this[_0xc3845c(0xf9)]],'class':[_0x27bca9?_0xc3845c(0xef):'']});_0x27bca9&&_0x31e2fa[_0xc3845c(0xee)][_0xc3845c(0xe5)](_0x27bca9),this[_0xc3845c(0xf5)]({'tag':_0xc3845c(0xfa),'attributes':{'class':['ck',_0xc3845c(0xf7),_0xc3845c(0xe2)]},'children':[_0x31e2fa]});}[_0x24aeb0(0xea)](){const _0x317b22=_0x24aeb0;this[_0x317b22(0xf9)][_0x317b22(0xea)]();}}
|
|
@@ -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/aireviewmode/utils/common-translations
|
|
7
|
+
*/
|
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
export declare function getTranslation(locale: Locale, id: string): 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(_0x3bbd43,_0x5248ee){const {t:t}=_0x3bbd43;switch(_0x5248ee){case'AI_REVIEW_MODE_STOP_GENERATING':return t({'id':'AI_REVIEW_MODE_STOP_GENERATING','string':'Stop\x20generating'});case'AI_REVIEW_MODE_HIDE_CHANGES':return t({'id':'AI_REVIEW_MODE_HIDE_CHANGES','string':'Hide\x20changes'});case'AI_REVIEW_MODE_SHOW_CHANGES':return t({'id':'AI_REVIEW_MODE_SHOW_CHANGES','string':'Show\x20changes'});case'AI_REVIEW_MODE_ACCEPT_ALL':return t({'id':'AI_REVIEW_MODE_ACCEPT_ALL','string':'Accept\x20all'});case'AI_REVIEW_MODE_EXIT_REVIEW':return t({'id':'AI_REVIEW_MODE_EXIT_REVIEW','string':'Exit\x20review'});case'AI_REVIEW_MODE_ACCEPT_CHANGE':return t({'id':'AI_REVIEW_MODE_ACCEPT_CHANGE','string':'Accept'});case'AI_REVIEW_MODE_DISMISS_CHANGE':return t({'id':'AI_REVIEW_MODE_DISMISS_CHANGE','string':'Dismiss'});case'AI_REVIEW_MODE_LEARN_MORE':return t({'id':'AI_REVIEW_MODE_LEARN_MORE','string':'Learn\x20more'});case'AI_REVIEW_MODE_COMPLETED_TEXT':return t({'id':'AI_REVIEW_MODE_COMPLETED_TEXT','string':'There\x27s\x20nothing\x20left\x20to\x20review.\x20You\x20can\x20now\x20return\x20to\x20the\x20command\x20list.'});case'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL':return t({'id':'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL','string':'Finish\x20Review'});case'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE':return t({'id':'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE','string':'Review\x20complete.\x20Finish\x20when\x20ready.'});case'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE':return t({'id':'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE','string':'Sorry,\x20we\x20couldn\x27t\x20generate\x20the\x20whole\x20review\x20properly.\x20Please\x20try\x20again\x20in\x20a\x20moment.'});case'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE':return t({'id':'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE','string':'Not\x20everything\x20went\x20through,\x20but\x20the\x20completed\x20items\x20are\x20listed\x20below.'});case'AI_REVIEW_MODE':return t({'id':'AI_REVIEW_MODE','string':'Review\x20Mode'});default:return _0x5248ee;}}
|