@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,24 @@
|
|
|
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 _0x541d78=_0x1d5d;(function(_0x28f8b2,_0x159de3){const _0x56b73b=_0x1d5d,_0x572792=_0x28f8b2();while(!![]){try{const _0x41eb73=-parseInt(_0x56b73b(0x9e))/0x1+parseInt(_0x56b73b(0xfd))/0x2+parseInt(_0x56b73b(0xed))/0x3+-parseInt(_0x56b73b(0xa0))/0x4+-parseInt(_0x56b73b(0x100))/0x5+-parseInt(_0x56b73b(0xdb))/0x6*(-parseInt(_0x56b73b(0xd8))/0x7)+-parseInt(_0x56b73b(0xc2))/0x8*(-parseInt(_0x56b73b(0xc1))/0x9);if(_0x41eb73===_0x159de3)break;else _0x572792['push'](_0x572792['shift']());}catch(_0x1276c4){_0x572792['push'](_0x572792['shift']());}}}(_0x599f,0xa734a));import{ObservableMixin as _0x1c2ab9}from'ckeditor5/src/utils.js';import{AIRequestError as _0x329c99}from'../adapters/aiadapter.js';import{Matcher as _0x30cc49,ViewUpcastWriter as _0x3025e7}from'ckeditor5/src/engine.js';function _0x1d5d(_0xe2ff7f,_0x172692){const _0x599ffb=_0x599f();return _0x1d5d=function(_0x1d5d2e,_0x4d1eb2){_0x1d5d2e=_0x1d5d2e-0x9e;let _0x4cd764=_0x599ffb[_0x1d5d2e];return _0x4cd764;},_0x1d5d(_0xe2ff7f,_0x172692);}const hs=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');function _0x599f(){const _0x38575f=['listenTo','reset','2411973MUBglr','_sanitizeHTML','reverse','startProcessing','editing','from','_stripMarkdownSyntax','view','abort','mainAction','handleError','render','catch','setContentOf','htmlProcessor','substring','1659086dKnrzl','innerHTML','querySelector','6005230zQEOcC','84644WbPMok','push','2729228DVJsTv','editor','isProcessing','```html','isRendered','markers','```','div','_isH1TagSupportEnabled','once','parseFromString','previousContext','data','startsWith','childNodes','currentContext','domConverter','viewToDom','document','destroy','config','initialContext','finally','_sanitizationContainer','<h1></h1>','match','set','custom','value','_domParser','toModel','stringify','processor','36CrERnT','1070888STVOyM','previousQuery','tryAgainEvent','updateView','_normalizeResponseHeadings','toView','clear','createElement','trim','_parseAndNormalizeContent','previousLabel','exec','nodeType','rename','ELEMENT_NODE','stopListening','then','serializeToString','_handleQuery','finishProcessing','endsWith','stopProcessing','623MKiWGk','get','element','32622OzYYpK','submitPrompt','name','previousActionId','body','currentResponse','set:currentContext','text/html','textAdapter','message','ai.assistant.preserveComments','remove','length','_xmlSerializer','makeRequest','prompt'];_0x599f=function(){return _0x38575f;};return _0x599f();}export class AIAssistantController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1c2ab9(){[_0x541d78(0xa1)];[_0x541d78(0xe3)];[_0x541d78(0xf4)];[_0x541d78(0xb7)];[_0x541d78(0xbd)];[_0x541d78(0xe8)];constructor(_0x5110f4,_0x5dfbcf,_0x1cf68b){const _0x511e12=_0x541d78;super(),this[_0x511e12(0xa1)]=_0x5110f4,this[_0x511e12(0xe3)]=_0x5dfbcf,this[_0x511e12(0xb7)]=document[_0x511e12(0xc9)](_0x511e12(0xa7)),this[_0x511e12(0xbd)]=new DOMParser(),this[_0x511e12(0xe8)]=new XMLSerializer(),this[_0x511e12(0xf4)]=_0x1cf68b,this[_0x511e12(0xba)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x511e12(0xe1),(_0x4f9c96,_0x109523,_0xd4c91a)=>{const _0x193e1a=_0x511e12;this[_0x193e1a(0xf4)][_0x193e1a(0xbc)]=this[_0x193e1a(0xee)](_0xd4c91a);}),this[_0x511e12(0xeb)](this[_0x511e12(0xf4)],_0x511e12(0xdc),(_0x1e226b,_0x121862)=>{const _0x508849=_0x511e12,_0x12166a=this[_0x508849(0xaf)]||this[_0x508849(0xb5)];this[_0x508849(0xd4)](_0x121862,_0x12166a,_0x508849(0xbb));}),this[_0x511e12(0xeb)](this[_0x511e12(0xf4)],_0x511e12(0xc4),()=>{const _0x2d05f1=_0x511e12;this[_0x2d05f1(0xf4)][_0x2d05f1(0xea)]=this[_0x2d05f1(0xcc)],this[_0x2d05f1(0xd4)](this[_0x2d05f1(0xc3)],this[_0x2d05f1(0xab)],this[_0x2d05f1(0xde)],this[_0x2d05f1(0xcc)]);}),this[_0x511e12(0xeb)](this[_0x511e12(0xf4)],_0x511e12(0xd7),()=>{const _0x68e59b=_0x511e12;this[_0x68e59b(0xd7)]();});}[_0x541d78(0xb3)](){const _0x3a67bd=_0x541d78;this[_0x3a67bd(0xd1)]();}async[_0x541d78(0xc5)]({actionId:_0x1f952b,query:_0x3a62d3,htmlContent:_0x292033,label:_0x2b97de,mainActionLabel:_0x7614c0}){const _0x11649d=_0x541d78;this[_0x11649d(0xf4)][_0x11649d(0xea)]=_0x2b97de,this[_0x11649d(0xf4)][_0x11649d(0xf6)]=_0x7614c0,this[_0x11649d(0xb5)]=_0x292033,_0x3a62d3&&(this[_0x11649d(0xf4)][_0x11649d(0xa4)]?this[_0x11649d(0xd4)](_0x3a62d3,_0x292033,_0x1f952b,_0x2b97de):this[_0x11649d(0xf4)][_0x11649d(0xa9)](_0x11649d(0xf8),()=>{const _0x4bc140=_0x11649d;this[_0x4bc140(0xd4)](_0x3a62d3,_0x292033,_0x1f952b,_0x2b97de);}));}[_0x541d78(0xd7)](){const _0x478e8d=_0x541d78;this[_0x478e8d(0xa2)]&&(this[_0x478e8d(0xa2)]=!0x1,this[_0x478e8d(0xf4)][_0x478e8d(0xd5)](),this[_0x478e8d(0xe3)][_0x478e8d(0xf5)]());}[_0x541d78(0xec)](){const _0x47bdf6=_0x541d78;this[_0x47bdf6(0xb5)]='',this[_0x47bdf6(0xaf)]='',this[_0x47bdf6(0xe0)]='',this[_0x47bdf6(0xab)]='',this[_0x47bdf6(0xc3)]='',this[_0x47bdf6(0xcc)]='',this[_0x47bdf6(0xde)]=void 0x0,this[_0x47bdf6(0xf4)][_0x47bdf6(0xec)](),this[_0x47bdf6(0xd7)]();}async[_0x541d78(0xd4)](_0x65faf9,_0x231307,_0x14f04f,_0x5409e9){const _0x4c6b92=_0x541d78;return this[_0x4c6b92(0xa2)]=!0x0,this[_0x4c6b92(0xf4)][_0x4c6b92(0xf0)](),this[_0x4c6b92(0xab)]=_0x231307,this[_0x4c6b92(0xc3)]=_0x65faf9,this[_0x4c6b92(0xcc)]=_0x5409e9||_0x65faf9,this[_0x4c6b92(0xde)]=_0x14f04f,new Promise(_0x401346=>{const _0x23eec1=_0x4c6b92;this[_0x23eec1(0xe3)][_0x23eec1(0xe9)]({'query':_0x65faf9,'context':_0x231307,'onData':_0x1cbfc2=>{const _0x2669d1=_0x23eec1;this[_0x2669d1(0xe0)]=_0x1cbfc2,this[_0x2669d1(0xaf)]=this[_0x2669d1(0xcb)](this[_0x2669d1(0xe0)]);},'actionId':_0x14f04f})[_0x23eec1(0xd2)](()=>{const _0x3a7a74=_0x23eec1;!this[_0x3a7a74(0xaf)]&&this[_0x3a7a74(0xe0)]&&(this[_0x3a7a74(0xaf)]=this[_0x3a7a74(0xcb)](this[_0x3a7a74(0xe0)],!0x0));})[_0x23eec1(0xf9)](_0x523f35=>{const _0x2f4bcf=_0x23eec1;_0x523f35 instanceof _0x329c99?this[_0x2f4bcf(0xf4)][_0x2f4bcf(0xf7)](_0x523f35[_0x2f4bcf(0xe4)]):this[_0x2f4bcf(0xf4)][_0x2f4bcf(0xf7)](),_0x401346();})[_0x23eec1(0xb6)](()=>{const _0x7f9e5f=_0x23eec1;this[_0x7f9e5f(0xd7)](),_0x401346();});});}[_0x541d78(0xcb)](_0x4214da,_0x10d74c=!0x1){const _0x4c5749=_0x541d78,_0x2b7d08=hs[_0x4c5749(0xcd)](_0x4214da);_0x4214da=_0x2b7d08?_0x4214da[_0x4c5749(0xfc)](_0x2b7d08[0x1][_0x4c5749(0xe7)]):_0x4214da[_0x4c5749(0xe7)]<0x64&&!_0x10d74c?'':this[_0x4c5749(0xf3)](_0x4214da);const _0x27ebca=this[_0x4c5749(0xbd)][_0x4c5749(0xaa)](_0x4214da,_0x4c5749(0xe2));if(_0x2b7d08){const _0x2a7ec8=Array[_0x4c5749(0xf2)](_0x27ebca[_0x4c5749(0xdf)][_0x4c5749(0xae)]);_0x2a7ec8[_0x4c5749(0xef)]();for(const _0xa0f06 of _0x2a7ec8){if(_0xa0f06[_0x4c5749(0xce)]==Node[_0x4c5749(0xd0)])break;_0xa0f06[_0x4c5749(0xe6)]();}}const _0x349035=this[_0x4c5749(0xa1)][_0x4c5749(0xac)][_0x4c5749(0xc0)][_0x4c5749(0xc7)](this[_0x4c5749(0xe8)][_0x4c5749(0xd3)](_0x27ebca[_0x4c5749(0xdf)]));this[_0x4c5749(0xa8)]()||this[_0x4c5749(0xc6)](_0x349035);const _0x81df2c=this[_0x4c5749(0xa1)][_0x4c5749(0xb4)][_0x4c5749(0xd9)](_0x4c5749(0xe5)),_0x4e0565=this[_0x4c5749(0xa1)][_0x4c5749(0xac)][_0x4c5749(0xbe)](_0x349035);return _0x81df2c||_0x4e0565[_0x4c5749(0xa5)][_0x4c5749(0xc8)](),this[_0x4c5749(0xa1)][_0x4c5749(0xac)][_0x4c5749(0xbf)](_0x4e0565);}[_0x541d78(0xc6)](_0x569f18){const _0x6a3fc6=_0x541d78,_0x3bcd87=new _0x3025e7(this[_0x6a3fc6(0xa1)][_0x6a3fc6(0xf1)][_0x6a3fc6(0xf4)][_0x6a3fc6(0xb2)]),_0x4fb1c5=new _0x30cc49({'name':/^h[1-5]$/}),_0x10ecc6=[];let _0x2b9aa5=!0x1;for(const _0x529707 of _0x569f18)_0x529707['is'](_0x6a3fc6(0xda))&&_0x4fb1c5[_0x6a3fc6(0xb9)](_0x529707)&&(_0x10ecc6[_0x6a3fc6(0x9f)](_0x529707),'h1'==_0x529707[_0x6a3fc6(0xdd)]&&(_0x2b9aa5=!0x0));if(_0x2b9aa5){for(const _0x2fca02 of _0x10ecc6)_0x3bcd87[_0x6a3fc6(0xcf)]('h'+(parseInt(_0x2fca02[_0x6a3fc6(0xdd)][0x1])+0x1),_0x2fca02);}}[_0x541d78(0xa8)](){const _0x2d7cc8=_0x541d78,{data:_0x113878,editing:_0x1a230e}=this[_0x2d7cc8(0xa1)],_0x4bb77e=_0x113878[_0x2d7cc8(0xfb)][_0x2d7cc8(0xc7)](_0x2d7cc8(0xb8)),_0x2e471c=_0x113878[_0x2d7cc8(0xc7)](_0x113878[_0x2d7cc8(0xbe)](_0x4bb77e));return!!_0x1a230e[_0x2d7cc8(0xf4)][_0x2d7cc8(0xb0)][_0x2d7cc8(0xb1)](_0x2e471c)[_0x2d7cc8(0xff)]('h1');}[_0x541d78(0xee)](_0x25dcd7){const _0x3e9de8=_0x541d78;return this[_0x3e9de8(0xa1)][_0x3e9de8(0xf1)][_0x3e9de8(0xf4)][_0x3e9de8(0xb0)][_0x3e9de8(0xfa)](this[_0x3e9de8(0xb7)],_0x25dcd7),this[_0x3e9de8(0xb7)][_0x3e9de8(0xfe)];}[_0x541d78(0xf3)](_0x384ed6){const _0x3a2137=_0x541d78,_0x1aedb5=_0x384ed6[_0x3a2137(0xca)]();return _0x1aedb5[_0x3a2137(0xad)](_0x3a2137(0xa3))?_0x1aedb5[_0x3a2137(0xd6)](_0x3a2137(0xa6))?_0x1aedb5[_0x3a2137(0xfc)](0x7,_0x1aedb5[_0x3a2137(0xe7)]-0x3):_0x1aedb5[_0x3a2137(0xfc)](0x7):_0x384ed6;}}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* @module ai/ui/aiformcontentarea
|
|
6
|
+
* @module ai/aiassistant/ui/form/aiformcontentarea
|
|
7
7
|
*/
|
|
8
8
|
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
9
|
import { View, ButtonView } from 'ckeditor5/src/ui.js';
|
|
@@ -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 _0x55530f=_0x3796;function _0x33b8(){const _0x2e6a3e=['icon','copy','ck-hidden','value','div','appendLoader','createElement','ClipboardItem','set','absolute','setStartAfter','scrollHeight','scrollTo','body','ck-ai-form__copy-button-wrapper','2fcJJrf','setContent','left','_copyHTMLToClipboard','copyButtonView','position','mousedown','isVisible','ck-ai-form__content-area-wrapper','wheel','ck-ai-form__content-area','AI\x20is\x20writing...','style','focus','clipboard','class','smooth','9435925Xxxjiw','<span>[</span>','.ck-ai-form__loader','\x20ck-ai-form__copy-button--copied','_createCopyButton','loaderView','createRange','render','ck-content','listenTo','4rQYMkl','addRange','locale','text/html','change:isProcessing','ck-ai-form__content-field','setTemplate','-9999px','ck-ai-form__copy-button','lastElementChild','41259582DUjqrS','appendChild','execute','firstElementChild','contentFieldView','Copy','write','isProcessing','change:value','innerHTML','18351BBZqzI','removeAllRanges','bind','querySelector','12528912kngrLI','execCommand','remove','isEnabled','setEndBefore','element','bindTemplate','ck-ai-form__content-area--processing','1531794fmOMnQ','ck-ai-form__loader','textContent','<span>]</span>','_createLoader','getSelection','12312237keeHkq','ck-reset_all-excluded','text/plain','3923529LPvqvF'];_0x33b8=function(){return _0x2e6a3e;};return _0x33b8();}function _0x3796(_0x51c5bc,_0x374263){const _0x33b853=_0x33b8();return _0x3796=function(_0x3796bb,_0x167f48){_0x3796bb=_0x3796bb-0x91;let _0x120248=_0x33b853[_0x3796bb];return _0x120248;},_0x3796(_0x51c5bc,_0x374263);}(function(_0x2c1784,_0x1b938b){const _0xc9c9ee=_0x3796,_0x2e2b6f=_0x2c1784();while(!![]){try{const _0xcef183=parseInt(_0xc9c9ee(0xcd))/0x1+-parseInt(_0xc9c9ee(0x9e))/0x2*(-parseInt(_0xc9c9ee(0xe2))/0x3)+-parseInt(_0xc9c9ee(0xb9))/0x4*(parseInt(_0xc9c9ee(0xaf))/0x5)+parseInt(_0xc9c9ee(0xd9))/0x6+-parseInt(_0xc9c9ee(0xdf))/0x7+-parseInt(_0xc9c9ee(0xd1))/0x8+parseInt(_0xc9c9ee(0xc3))/0x9;if(_0xcef183===_0x1b938b)break;else _0x2e2b6f['push'](_0x2e2b6f['shift']());}catch(_0x52151d){_0x2e2b6f['push'](_0x2e2b6f['shift']());}}}(_0x33b8,0xe8d65));import{global as _0x246d90}from'ckeditor5/src/utils.js';import{View as _0x4c5e76,ButtonView as _0x2934fb,SpinnerView as _0x1501b5}from'ckeditor5/src/ui.js';import{IconCheck as _0x27765d,IconCopy as _0x310c5a}from'ckeditor5/src/icons.js';import{getTranslation as _0x19831e}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x4c5e76{[_0x55530f(0xc7)];[_0x55530f(0xa2)];constructor(_0x3ecd9,_0x3c3ee5=''){const _0x3c3122=_0x55530f;super(_0x3ecd9),this[_0x3c3122(0x97)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x207f49=this[_0x3c3122(0xd7)];this[_0x3c3122(0xc7)]=new ContentFieldView(_0x3ecd9,_0x3c3ee5),this[_0x3c3122(0xa2)]=this[_0x3c3122(0xb3)](),this[_0x3c3122(0xbf)]({'tag':_0x3c3122(0x93),'attributes':{'class':['ck',_0x3c3122(0xa6),_0x207f49['if'](_0x3c3122(0xa5),_0x3c3122(0x91),_0x25ae0e=>!_0x25ae0e)],'tabindex':'-1'},'children':[{'tag':_0x3c3122(0x93),'attributes':{'class':['ck',_0x3c3122(0xa8),_0x207f49['if'](_0x3c3122(0xca),_0x3c3122(0xd8))]},'children':[this[_0x3c3122(0xc7)],{'tag':_0x3c3122(0x93),'attributes':{'class':['ck',_0x3c3122(0x9d)]},'children':[this[_0x3c3122(0xa2)]]}]}]});}[_0x55530f(0xb6)](){const _0x40fbcf=_0x55530f;super[_0x40fbcf(0xb6)](),this[_0x40fbcf(0x92)]&&this[_0x40fbcf(0xc7)][_0x40fbcf(0x9f)](this[_0x40fbcf(0x92)]);let _0x2397aa=!0x1;this['on'](_0x40fbcf(0xcb),(_0x45676a,_0x3a3509,_0x4940d4)=>{const _0x496d6c=_0x40fbcf,_0x2367bd=!this[_0x496d6c(0xc7)][_0x496d6c(0xd6)][_0x496d6c(0xd0)](_0x496d6c(0xb1));this[_0x496d6c(0xc7)][_0x496d6c(0x9f)](_0x4940d4),this[_0x496d6c(0xca)]&&_0x2367bd&&!_0x2397aa&&this[_0x496d6c(0xd6)][_0x496d6c(0x9b)]({'top':this[_0x496d6c(0xd6)][_0x496d6c(0x9a)],'behavior':_0x496d6c(0xae)});}),this['on'](_0x40fbcf(0xbd),(_0x5f403b,_0x474c35,_0x5101dc)=>{const _0x18af14=_0x40fbcf;_0x2397aa=!0x1,_0x5101dc?(this[_0x18af14(0x92)]=null,this[_0x18af14(0xc7)][_0x18af14(0x94)]()):this[_0x18af14(0x92)]||this[_0x18af14(0xc7)][_0x18af14(0x9f)]('');}),this[_0x40fbcf(0xb8)](this[_0x40fbcf(0xd6)],_0x40fbcf(0xa7),()=>{_0x2397aa=!0x0;}),this[_0x40fbcf(0xb8)](this[_0x40fbcf(0xd6)],_0x40fbcf(0xa4),()=>{_0x2397aa=!0x0;});}[_0x55530f(0xab)](){const _0x340b5d=_0x55530f;this[_0x340b5d(0xd6)][_0x340b5d(0xab)]();}[_0x55530f(0xb3)](){const _0x168ede=_0x55530f,_0x2295ba=this[_0x168ede(0xbb)],_0x5c3122=new _0x2934fb(this[_0x168ede(0xbb)]),_0xc8e741=_0x168ede(0xc1);return _0x5c3122[_0x168ede(0x97)]({'label':_0x19831e(_0x2295ba,_0x168ede(0xc8)),'icon':_0x310c5a,'class':_0xc8e741,'tooltip':!0x0}),_0x5c3122[_0x168ede(0xcf)](_0x168ede(0xa5))['to'](this,_0x168ede(0x92),_0x764486=>!!_0x764486),_0x5c3122[_0x168ede(0xcf)](_0x168ede(0xd4))['to'](this,_0x168ede(0xca),_0x143024=>!_0x143024),_0x5c3122['on'](_0x168ede(0xc5),()=>{const _0x1cf377=_0x168ede;this[_0x1cf377(0xa1)](this[_0x1cf377(0xc7)][_0x1cf377(0xd6)]),_0x5c3122[_0x1cf377(0xe3)]=_0x27765d,_0x5c3122[_0x1cf377(0xad)]=_0xc8e741+_0x1cf377(0xb2),this[_0x1cf377(0xab)](),setTimeout(()=>{const _0x1c3572=_0x1cf377;_0x5c3122[_0x1c3572(0xe3)]=_0x310c5a,_0x5c3122[_0x1c3572(0xad)]=_0xc8e741;},0x3e8);}),_0x5c3122;}[_0x55530f(0xa1)](_0x160b6b){const _0x436989=_0x55530f,{window:_0x527d1f,document:_0x26699f}=_0x246d90;if(_0x527d1f[_0x436989(0x96)]){const {Blob:_0x3ce83b,ClipboardItem:_0x214bdf}=_0x527d1f,_0x209832=[new _0x214bdf({'text/html':new _0x3ce83b([_0x160b6b[_0x436989(0xcc)]],{'type':_0x436989(0xbc)}),'text/plain':new _0x3ce83b([_0x160b6b[_0x436989(0xdb)]||''],{'type':_0x436989(0xe1)})})];navigator[_0x436989(0xac)][_0x436989(0xc9)](_0x209832);}else{const _0x1d8a0f=_0x26699f[_0x436989(0x95)](_0x436989(0x93));_0x1d8a0f[_0x436989(0xaa)][_0x436989(0xa3)]=_0x436989(0x98),_0x1d8a0f[_0x436989(0xaa)][_0x436989(0xa0)]=_0x436989(0xc0),_0x1d8a0f[_0x436989(0xcc)]=_0x436989(0xb0)+_0x160b6b[_0x436989(0xcc)]+_0x436989(0xdc),_0x26699f[_0x436989(0x9c)][_0x436989(0xc4)](_0x1d8a0f);const _0x3bc9b5=_0x26699f[_0x436989(0xb5)]();_0x3bc9b5[_0x436989(0x99)](_0x1d8a0f[_0x436989(0xc6)]),_0x3bc9b5[_0x436989(0xd5)](_0x1d8a0f[_0x436989(0xc2)]);const _0x3a10c5=_0x527d1f[_0x436989(0xde)]();_0x3a10c5[_0x436989(0xce)](),_0x3a10c5[_0x436989(0xba)](_0x3bc9b5),_0x26699f[_0x436989(0xd2)](_0x436989(0xe4)),_0x1d8a0f[_0x436989(0xd3)]();}}}export class ContentFieldView extends _0x4c5e76{constructor(_0x3cf1aa,_0x367982=''){const _0x3a2010=_0x55530f;super(_0x3cf1aa),this[_0x3a2010(0xb4)]=this[_0x3a2010(0xdd)](),this[_0x3a2010(0xbf)]({'tag':_0x3a2010(0x93),'attributes':{'class':['ck',_0x3a2010(0xb7),_0x367982,_0x3a2010(0xe0),_0x3a2010(0xbe)]}});}[_0x55530f(0x9f)](_0x506e61){const _0x4634c3=_0x55530f;this[_0x4634c3(0xd6)][_0x4634c3(0xcc)]=_0x506e61;}[_0x55530f(0x94)](){const _0x256b82=_0x55530f;this[_0x256b82(0xd6)][_0x256b82(0xc4)](this[_0x256b82(0xb4)][_0x256b82(0xd6)]);}[_0x55530f(0xdd)](){const _0x7d46ab=_0x55530f,_0x560387=new _0x4c5e76(),_0x568e7b=this[_0x7d46ab(0xbb)],_0x5ef92b=new _0x1501b5();return _0x5ef92b[_0x7d46ab(0xa5)]=!0x0,_0x560387[_0x7d46ab(0xbf)]({'tag':_0x7d46ab(0x93),'attributes':{'class':['ck',_0x7d46ab(0xda)]},'children':[_0x5ef92b,{'text':_0x19831e(_0x568e7b,_0x7d46ab(0xa9))}]}),_0x560387[_0x7d46ab(0xb6)](),_0x560387;}}
|
|
@@ -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 _0x279a(){const _0x47ed70=['6DIkYXr','div','ck-ai-form__error','1225856uSHHmN','set','text','bindTemplate','17044ZnsTml','setTemplate','1320870ZeFsPB','13348232hcsJRN','10834299SiQPeV','content','15867396aUYLQQ','135210roaOxh','1146Waixhg','10PAkxyW'];_0x279a=function(){return _0x47ed70;};return _0x279a();}(function(_0x4588be,_0x70d4e9){const _0x2e3f2a=_0x390f,_0x24126b=_0x4588be();while(!![]){try{const _0x53724a=parseInt(_0x2e3f2a(0x127))/0x1+parseInt(_0x2e3f2a(0x121))/0x2+parseInt(_0x2e3f2a(0x122))/0x3*(-parseInt(_0x2e3f2a(0x12b))/0x4)+parseInt(_0x2e3f2a(0x11c))/0x5*(-parseInt(_0x2e3f2a(0x124))/0x6)+parseInt(_0x2e3f2a(0x11e))/0x7+parseInt(_0x2e3f2a(0x11d))/0x8+-parseInt(_0x2e3f2a(0x120))/0x9*(parseInt(_0x2e3f2a(0x123))/0xa);if(_0x53724a===_0x70d4e9)break;else _0x24126b['push'](_0x24126b['shift']());}catch(_0x4afe9b){_0x24126b['push'](_0x24126b['shift']());}}}(_0x279a,0xd0b2b));function _0x390f(_0x2638bd,_0x2f993d){const _0x279a9d=_0x279a();return _0x390f=function(_0x390f3f,_0x595203){_0x390f3f=_0x390f3f-0x11b;let _0x15a21e=_0x279a9d[_0x390f3f];return _0x15a21e;},_0x390f(_0x2638bd,_0x2f993d);}import{IconError as _0x54058b}from'ckeditor5/src/icons.js';import{View as _0x44cf68,IconView as _0x456e06}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x44cf68{constructor(_0x318751,_0x4732d2=''){const _0x5b0d41=_0x390f;super(_0x318751);const _0x9dc3f5=new _0x456e06(),_0x40ecc2=this[_0x5b0d41(0x12a)];this[_0x5b0d41(0x128)](_0x5b0d41(0x129),_0x4732d2),_0x9dc3f5[_0x5b0d41(0x11f)]=_0x54058b,this[_0x5b0d41(0x11b)]({'tag':_0x5b0d41(0x125),'attributes':{'class':['ck',_0x5b0d41(0x126)]},'children':[_0x9dc3f5,{'text':_0x40ecc2['to'](_0x5b0d41(0x129))}]});}}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* @module ai/ui/aiformpromptview
|
|
6
|
+
* @module ai/aiassistant/ui/form/aiformpromptview
|
|
7
7
|
*/
|
|
8
8
|
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
9
|
import { AutocompleteView, ButtonView, type TextareaView, type AutocompleteViewConfig } from 'ckeditor5/src/ui.js';
|
|
@@ -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 _0xca353f=_0x5efc;(function(_0x5e481c,_0xf1de2e){const _0x13d5bf=_0x5efc,_0x3faa1b=_0x5e481c();while(!![]){try{const _0x5a195f=-parseInt(_0x13d5bf(0x15f))/0x1*(-parseInt(_0x13d5bf(0x169))/0x2)+-parseInt(_0x13d5bf(0x16c))/0x3+-parseInt(_0x13d5bf(0x159))/0x4+parseInt(_0x13d5bf(0x174))/0x5+-parseInt(_0x13d5bf(0x16d))/0x6+-parseInt(_0x13d5bf(0x15d))/0x7*(-parseInt(_0x13d5bf(0x15b))/0x8)+-parseInt(_0x13d5bf(0x179))/0x9*(parseInt(_0x13d5bf(0x146))/0xa);if(_0x5a195f===_0xf1de2e)break;else _0x3faa1b['push'](_0x3faa1b['shift']());}catch(_0x81b82e){_0x3faa1b['push'](_0x3faa1b['shift']());}}}(_0xad5f,0x77d9a));import{Rect as _0x22aa8f,global as _0x45d06f,isVisible as _0x5d666e}from'ckeditor5/src/utils.js';function _0x5efc(_0x3b1aa2,_0x361292){const _0xad5f61=_0xad5f();return _0x5efc=function(_0x5efc40,_0x30c0cf){_0x5efc40=_0x5efc40-0x142;let _0xd3a8eb=_0xad5f61[_0x5efc40];return _0xd3a8eb;},_0x5efc(_0x3b1aa2,_0x361292);}import{IconAIHistory as _0x464722,IconSubmit as _0x22e350}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x1b88e2,ButtonView as _0x343bd6}from'ckeditor5/src/ui.js';import{getTranslation as _0x29639c}from'../../utils/common-translations.js';function _0xad5f(){const _0x36e544=['queryView','submit','focus','ck-ai-form__toggle-history','render','4343555nKWpuU','keystrokes','resultsView','left','target','6854373MVlXUX','submitButtonView','isVisible','fieldWrapperChildren','fire','isEmpty','showHistoryButtonView','10tGMHGx','element','value','excludeScrollbarsAndBorders','children','fieldView','focusLast','Submit','window','execute','set','uiLanguageDirection','maxRows','style','_createShowHistoryButton','add','focusFirst','requestAnimationFrame','locale','285820qrmHEV','History','35864Uesrqm','isEnabled','427vhqyft','filteredView','809605WCEnbc','width','_createSubmitButton','right','ck-ai-form__submit','focusCycler','minRows','enter','update','bind','2pnUUfg','focusableChildren','rtl','1653507LcZMff','459912TtKZXd','isOn'];_0xad5f=function(){return _0x36e544;};return _0xad5f();}export class AIFormPromptView extends _0x1b88e2{[_0xca353f(0x17a)];[_0xca353f(0x145)];constructor(_0x38f9f2,_0x3fcfb0){const _0x286b14=_0xca353f;super(_0x38f9f2,_0x3fcfb0),this[_0x286b14(0x16f)][_0x286b14(0x14b)][_0x286b14(0x165)]=0x1,this[_0x286b14(0x16f)][_0x286b14(0x14b)][_0x286b14(0x152)]=0x3,this[_0x286b14(0x17a)]=this[_0x286b14(0x161)](),this[_0x286b14(0x145)]=this[_0x286b14(0x154)](),this[_0x286b14(0x16a)][_0x286b14(0x155)](this[_0x286b14(0x145)],0x1),this[_0x286b14(0x16a)][_0x286b14(0x155)](this[_0x286b14(0x17a)]);}[_0xca353f(0x173)](){const _0x3873a9=_0xca353f;super[_0x3873a9(0x173)](),this[_0x3873a9(0x16f)][_0x3873a9(0x142)][_0x3873a9(0x155)](this[_0x3873a9(0x145)]),this[_0x3873a9(0x14a)][_0x3873a9(0x155)](this[_0x3873a9(0x17a)]),this[_0x3873a9(0x175)][_0x3873a9(0x150)](_0x3873a9(0x166),(_0x5493ad,_0x46ff50)=>{const _0x5a4c8c=_0x3873a9;_0x5493ad[_0x5a4c8c(0x178)]==this[_0x5a4c8c(0x16f)][_0x5a4c8c(0x14b)][_0x5a4c8c(0x147)]&&(this[_0x5a4c8c(0x170)](),_0x46ff50());});}[_0xca353f(0x161)](){const _0x47e396=_0xca353f,_0x36f347=new _0x343bd6(this[_0x47e396(0x158)]),_0x59d093=this[_0x47e396(0x158)];return _0x36f347[_0x47e396(0x150)]({'icon':_0x22e350,'label':_0x29639c(_0x59d093,_0x47e396(0x14d)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x47e396(0x163)}),_0x36f347['on'](_0x47e396(0x14f),()=>{const _0x36613a=_0x47e396;this[_0x36613a(0x170)]();}),_0x36f347[_0x47e396(0x168)](_0x47e396(0x15c))['to'](this[_0x47e396(0x16f)][_0x47e396(0x14b)],_0x47e396(0x144),this,_0x47e396(0x15c),(_0x19ad89,_0x28bda1)=>!_0x19ad89&&_0x28bda1),_0x36f347;}[_0xca353f(0x154)](){const _0x4819cb=_0xca353f,_0x30f6f7=new _0x343bd6(this[_0x4819cb(0x158)]),_0x51dd6b=this[_0x4819cb(0x176)],_0x282f6b=this[_0x4819cb(0x158)];_0x30f6f7[_0x4819cb(0x150)]({'label':_0x29639c(_0x282f6b,_0x4819cb(0x15a)),'withText':!0x1,'icon':_0x464722,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x4819cb(0x172)}),_0x30f6f7[_0x4819cb(0x168)](_0x4819cb(0x16e))['to'](_0x51dd6b,_0x4819cb(0x17b)),_0x30f6f7[_0x4819cb(0x168)](_0x4819cb(0x15c))['to'](this,_0x4819cb(0x15c)),_0x30f6f7['on'](_0x4819cb(0x14f),()=>{const _0xb9a143=_0x4819cb;_0x51dd6b[_0xb9a143(0x17b)]=!_0x51dd6b[_0xb9a143(0x17b)],_0x51dd6b[_0xb9a143(0x17b)]?this[_0xb9a143(0x15e)][_0xb9a143(0x171)]():this[_0xb9a143(0x171)]();});const _0x17d117=()=>{const _0x35c098=_0x4819cb;_0x45d06f[_0x35c098(0x14e)][_0x35c098(0x157)](()=>{const _0x296131=_0x35c098;if(_0x5d666e(this[_0x296131(0x147)])){const _0x3f8eec=new _0x22aa8f(this[_0x296131(0x16f)][_0x296131(0x14b)][_0x296131(0x147)]),_0x11f1b4=_0x3f8eec[_0x296131(0x160)],_0x1abb62=_0x296131(0x16b)===_0x282f6b[_0x296131(0x151)]?_0x296131(0x177):_0x296131(0x162);_0x3f8eec[_0x296131(0x149)](),_0x30f6f7[_0x296131(0x147)][_0x296131(0x153)][_0x1abb62]=_0x11f1b4-_0x3f8eec[_0x296131(0x160)]+0x1+'px';}});};return this[_0x4819cb(0x16f)][_0x4819cb(0x14b)]['on'](_0x4819cb(0x167),_0x17d117),this['on'](_0x4819cb(0x173),_0x17d117),_0x30f6f7;}[_0xca353f(0x170)](){const _0x119b8f=_0xca353f,_0x382645=this[_0x119b8f(0x16f)][_0x119b8f(0x14b)][_0x119b8f(0x147)][_0x119b8f(0x148)];this[_0x119b8f(0x143)](_0x119b8f(0x170),_0x382645);}[_0xca353f(0x171)](_0x28f91b){const _0x428b1a=_0xca353f;-0x1===_0x28f91b?this[_0x428b1a(0x164)][_0x428b1a(0x14c)]():this[_0x428b1a(0x164)][_0x428b1a(0x156)]();}}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* @module ai/ui/aiformtoolbarview
|
|
6
|
+
* @module ai/aiassistant/ui/form/aiformtoolbarview
|
|
7
7
|
*/
|
|
8
8
|
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
9
9
|
import { ToolbarView, ButtonView } from 'ckeditor5/src/ui.js';
|
|
@@ -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 _0x1c9165=_0x1f48;function _0x1f48(_0x3805ae,_0x4d2914){const _0x20c9d0=_0x20c9();return _0x1f48=function(_0x1f48b7,_0x12f347){_0x1f48b7=_0x1f48b7-0x150;let _0x1e11cd=_0x20c9d0[_0x1f48b7];return _0x1e11cd;},_0x1f48(_0x3805ae,_0x4d2914);}function _0x20c9(){const _0x4b47ab=['3SyCKJD','AI_','insert','3ApAcoF','REPLACE','392ploWYy','115tqsaxm','4741964tlpKEb','275caZVoh','bindTemplate','_CONTENT','mainAction','set','label','477956MIAPoz','insertButton','174867xIqnQf','ck-button-action','isVisible','tryAgainButton','addMany','replace','ck-ai-form__toolbar','336DwEqhP','Insert\x20below','Stop','bind','toUpperCase','locale','ck-hidden','items','8904753GdgsVY','227094tjndJO','819234BItGLt','replaceButton','extendTemplate','483130LQHZxu','Try\x20again','stopButton','_createButton'];_0x20c9=function(){return _0x4b47ab;};return _0x20c9();}(function(_0x3a5284,_0x47774a){const _0x28b3fe=_0x1f48,_0x558cd4=_0x3a5284();while(!![]){try{const _0x742230=-parseInt(_0x28b3fe(0x15a))/0x1*(parseInt(_0x28b3fe(0x165))/0x2)+-parseInt(_0x28b3fe(0x157))/0x3*(parseInt(_0x28b3fe(0x15e))/0x4)+-parseInt(_0x28b3fe(0x15d))/0x5*(-parseInt(_0x28b3fe(0x177))/0x6)+-parseInt(_0x28b3fe(0x167))/0x7*(-parseInt(_0x28b3fe(0x15c))/0x8)+parseInt(_0x28b3fe(0x176))/0x9+parseInt(_0x28b3fe(0x153))/0xa*(parseInt(_0x28b3fe(0x15f))/0xb)+parseInt(_0x28b3fe(0x16e))/0xc*(-parseInt(_0x28b3fe(0x150))/0xd);if(_0x742230===_0x47774a)break;else _0x558cd4['push'](_0x558cd4['shift']());}catch(_0x2c8111){_0x558cd4['push'](_0x558cd4['shift']());}}}(_0x20c9,0x9890d));import{ToolbarView as _0x520af2,ButtonView as _0x430e07}from'ckeditor5/src/ui.js';import{getTranslation as _0x300c46}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x1c9165(0x16c),'INSERT':_0x1c9165(0x159)};export class AIFormToolbarView extends _0x520af2{constructor(_0x42f2bf){const _0x1a0234=_0x1c9165;super(_0x42f2bf),this[_0x1a0234(0x163)](_0x1a0234(0x169),!0x1),this[_0x1a0234(0x163)](_0x1a0234(0x162),AIFormToolbarViewMainActionLabel[_0x1a0234(0x15b)]),this[_0x1a0234(0x151)]=this[_0x1a0234(0x156)]('',_0x1a0234(0x168)),this[_0x1a0234(0x151)][_0x1a0234(0x171)](_0x1a0234(0x164))['to'](this,_0x1a0234(0x162),_0x9fadd4=>_0x300c46(_0x42f2bf,_0x1a0234(0x158)+_0x9fadd4[_0x1a0234(0x172)]()+_0x1a0234(0x161))),this[_0x1a0234(0x166)]=this[_0x1a0234(0x156)](_0x300c46(_0x42f2bf,_0x1a0234(0x16f))),this[_0x1a0234(0x16a)]=this[_0x1a0234(0x156)](_0x300c46(_0x42f2bf,_0x1a0234(0x154))),this[_0x1a0234(0x155)]=this[_0x1a0234(0x156)](_0x300c46(_0x42f2bf,_0x1a0234(0x170)));const _0x25c92d=this[_0x1a0234(0x160)];this[_0x1a0234(0x152)]({'attributes':{'class':[_0x1a0234(0x16d),_0x25c92d['if'](_0x1a0234(0x169),_0x1a0234(0x174),_0x50b59e=>!_0x50b59e)]}}),this[_0x1a0234(0x175)][_0x1a0234(0x16b)]([this[_0x1a0234(0x151)],this[_0x1a0234(0x166)],this[_0x1a0234(0x16a)],this[_0x1a0234(0x155)]]);}[_0x1c9165(0x156)](_0x596de0,_0xef2c8c){const _0x3ba12c=_0x1c9165,_0x699100=new _0x430e07(this[_0x3ba12c(0x173)]);return _0x699100[_0x3ba12c(0x163)]({'label':_0x596de0,'class':_0xef2c8c||'','isVisible':!0x0,'withText':!0x0}),_0x699100;}}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* @module ai/ui/aiformview
|
|
6
|
+
* @module ai/aiassistant/ui/form/aiformview
|
|
7
7
|
*/
|
|
8
8
|
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
|
|
9
9
|
import { View, type ViewWithFocusCycler } from 'ckeditor5/src/ui.js';
|
|
@@ -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 _0x477c03=_0x443d;(function(_0x5e77da,_0x488a78){const _0x139b5b=_0x443d,_0x301a76=_0x5e77da();while(!![]){try{const _0x27891f=parseInt(_0x139b5b(0x83))/0x1+parseInt(_0x139b5b(0x8b))/0x2+parseInt(_0x139b5b(0x8f))/0x3+-parseInt(_0x139b5b(0x6a))/0x4+-parseInt(_0x139b5b(0x78))/0x5*(parseInt(_0x139b5b(0xa6))/0x6)+parseInt(_0x139b5b(0xa9))/0x7*(-parseInt(_0x139b5b(0xb2))/0x8)+-parseInt(_0x139b5b(0xab))/0x9;if(_0x27891f===_0x488a78)break;else _0x301a76['push'](_0x301a76['shift']());}catch(_0x4582f6){_0x301a76['push'](_0x301a76['shift']());}}}(_0xb21a,0xc5923));import{FocusTracker as _0x23a702,KeystrokeHandler as _0x502dd2}from'ckeditor5/src/utils.js';import{View as _0x2e3d74,FocusCycler as _0x577535,createLabeledTextarea as _0xc302f0}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x3b932d,AIFormToolbarViewMainActionLabel as _0x259e34}from'./aiformtoolbarview.js';function _0x443d(_0x19aa6d,_0x54c4f6){const _0xb21af6=_0xb21a();return _0x443d=function(_0x443dc9,_0x2512a0){_0x443dc9=_0x443dc9-0x66;let _0x33712c=_0xb21af6[_0x443dc9];return _0x33712c;},_0x443d(_0x19aa6d,_0x54c4f6);}import{AIFormContentArea as _0x14f794}from'./aiformcontentarea.js';import{AIFormErrorView as _0x408304}from'./aiformerrorview.js';import{AIFormPromptView as _0x46da91}from'./aiformpromptview.js';function _0xb21a(){const _0x51e0e5=['AI_ERROR_FAILED','render','isEnabled','Ask\x20AI\x20to\x20edit\x20or\x20generate','prompt','errorView','toolbar','1203027RxqGqi','_createHistoryView','historyGroupView','clear','bind','bindTo','search','isVisible','2074514uodHUT','replaceButton','_focusables','element','4725885klEKQh','value','text','clearHistory','trim','keystrokes','fieldView','replaceContent','reset','locale','div','shift\x20+\x20tab','stopProcessing','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','insertContentBelow','Ask\x20AI\x20to\x20improve\x20generated\x20text','add','bindTemplate','focusTracker','setTemplate','copyButtonView','stopButton','_createPromptView','6616884QbscmS','items','REPLACE','7WPJViB','delegate','9160857JgQmQN','set','mainAction','contentArea','promptView','focus','handleError','2832152aUCxYF','fire','tryAgainButton','focusFirst','_promptHistory','submit','execute','finishProcessing','ck-hidden','submitPrompt','tryAgainEvent','insertButton','2126488jOyHGf','focusLast','chain','label','isError','ck-ai-form-content','tab','focusCycler','startProcessing','createCollection','high','ck-ai-form','_createToolbar','listenTo','5igXBLP','Empty\x20history','queryView','isProcessing'];_0xb21a=function(){return _0x51e0e5;};return _0xb21a();}import{AIHistoryListView as _0x5cc8e1}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x51b9a9}from'./aihistorylistitemview.js';import{PromptHistory as _0x61b04d}from'./prompthistory.js';import{getTranslation as _0x48ee33}from'../../utils/common-translations.js';import{escape as _0x30375f}from'es-toolkit/compat';export class AIFormView extends _0x2e3d74{[_0x477c03(0xa1)];[_0x477c03(0x94)];[_0x477c03(0xae)];[_0x477c03(0x82)];[_0x477c03(0xaf)];[_0x477c03(0x81)];[_0x477c03(0x8d)];[_0x477c03(0x71)];[_0x477c03(0xb6)];constructor(_0x69b72b,_0x10a43f,_0x216a8d=''){const _0x2354fc=_0x477c03;super(_0x69b72b),this[_0x2354fc(0xac)](_0x2354fc(0x7e),!0x0),this[_0x2354fc(0xac)](_0x2354fc(0x7b),!0x1),this[_0x2354fc(0xac)](_0x2354fc(0x80),''),this[_0x2354fc(0xac)](_0x2354fc(0x90),''),this[_0x2354fc(0xac)](_0x2354fc(0x6e),!0x1),this[_0x2354fc(0xac)](_0x2354fc(0xad),_0x259e34[_0x2354fc(0xa8)]),this[_0x2354fc(0xb6)]=new _0x61b04d(),this[_0x2354fc(0x81)]=new _0x408304(_0x69b72b),this[_0x2354fc(0xae)]=new _0x14f794(_0x69b72b,_0x216a8d),this[_0x2354fc(0xae)][_0x2354fc(0x87)](_0x2354fc(0x7b))['to'](this),this[_0x2354fc(0xae)][_0x2354fc(0x87)](_0x2354fc(0x90))['to'](this),this[_0x2354fc(0x82)]=this[_0x2354fc(0x76)](),this[_0x2354fc(0x82)][_0x2354fc(0x87)](_0x2354fc(0xad))['to'](this),this[_0x2354fc(0xaf)]=this[_0x2354fc(0xa5)](),this[_0x2354fc(0xa1)]=new _0x23a702(),this[_0x2354fc(0x94)]=new _0x502dd2(),this[_0x2354fc(0x8d)]=this[_0x2354fc(0x73)]([this[_0x2354fc(0xae)],this[_0x2354fc(0xae)][_0x2354fc(0xa3)],this[_0x2354fc(0x82)],this[_0x2354fc(0xaf)]]),this[_0x2354fc(0x71)]=new _0x577535({'focusables':this[_0x2354fc(0x8d)],'focusTracker':this[_0x2354fc(0xa1)],'keystrokeHandler':this[_0x2354fc(0x94)],'actions':{'focusPrevious':_0x2354fc(0x9a),'focusNext':_0x2354fc(0x70)}}),this[_0x2354fc(0x71)][_0x2354fc(0x6c)](this[_0x2354fc(0xaf)][_0x2354fc(0x71)]),this[_0x2354fc(0xaf)][_0x2354fc(0x7a)][_0x2354fc(0x95)][_0x2354fc(0x87)](_0x2354fc(0x90))['to'](this,_0x2354fc(0x80));const _0x560f4f=this[_0x2354fc(0xa0)];this[_0x2354fc(0xa2)]({'tag':_0x2354fc(0x99),'attributes':{'class':['ck',_0x2354fc(0x75),_0x10a43f],'tabindex':'-1'},'children':[{'tag':_0x2354fc(0x99),'attributes':{'class':['ck',_0x2354fc(0x6f)]},'children':[{'tag':_0x2354fc(0x99),'attributes':{'class':[_0x560f4f['if'](_0x2354fc(0x6e),_0x2354fc(0x66),_0x2d8c93=>!_0x2d8c93)]},'children':[this[_0x2354fc(0x81)]]},this[_0x2354fc(0xae)],this[_0x2354fc(0x82)],this[_0x2354fc(0xaf)]]}]});}[_0x477c03(0x7d)](){const _0x5ea680=_0x477c03;super[_0x5ea680(0x7d)](),this[_0x5ea680(0xa1)][_0x5ea680(0x9f)](this[_0x5ea680(0xae)][_0x5ea680(0x8e)]),this[_0x5ea680(0xa1)][_0x5ea680(0x9f)](this[_0x5ea680(0xae)][_0x5ea680(0xa3)][_0x5ea680(0x8e)]),this[_0x5ea680(0xa1)][_0x5ea680(0x9f)](this[_0x5ea680(0x82)][_0x5ea680(0x8e)]),this[_0x5ea680(0xa1)][_0x5ea680(0x9f)](this[_0x5ea680(0xaf)][_0x5ea680(0x8e)]),this[_0x5ea680(0x94)][_0x5ea680(0x77)](this[_0x5ea680(0x8e)]);}[_0x477c03(0xb0)](_0x5b4483=0x1){const _0x25a86d=_0x477c03;-0x1===_0x5b4483?this[_0x25a86d(0x71)][_0x25a86d(0x6b)]():this[_0x25a86d(0x71)][_0x25a86d(0xb5)]();}[_0x477c03(0x97)](){const _0x3767ca=_0x477c03;this[_0x3767ca(0x80)]='',this[_0x3767ca(0x90)]='',this[_0x3767ca(0x6e)]=!0x1,this[_0x3767ca(0xaf)][_0x3767ca(0x97)](),this[_0x3767ca(0xae)][_0x3767ca(0x8a)]=!0x1,this[_0x3767ca(0x82)][_0x3767ca(0x8a)]=!0x1;}[_0x477c03(0xa5)](){const _0x1e40f6=_0x477c03,_0x3b2535=this[_0x1e40f6(0x98)],_0xd2c314=new _0x46da91(_0x3b2535,{'queryView':{'label':_0x48ee33(_0x3b2535,_0x1e40f6(0x7f)),'creator':_0xc302f0,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x48ee33(_0x3b2535,_0x1e40f6(0x79)),'secondary':_0x48ee33(_0x3b2535,_0x1e40f6(0x9c))}}},'filteredView':this[_0x1e40f6(0x84)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0xd2c314[_0x1e40f6(0x87)](_0x1e40f6(0x7e))['to'](this,_0x1e40f6(0x7e),this,_0x1e40f6(0x7b),(_0x55e641,_0x31daa4)=>_0x55e641&&!_0x31daa4),this[_0x1e40f6(0x77)](_0xd2c314,_0x1e40f6(0xb7),(_0x4f3a3f,_0xdde7a4)=>{const _0x2ff5b8=_0x1e40f6;this[_0x2ff5b8(0x80)]=_0xdde7a4;const _0x45e713=_0x30375f(_0xdde7a4);this[_0x2ff5b8(0xb3)](_0x2ff5b8(0x67),_0x45e713),_0xdde7a4[_0x2ff5b8(0x93)]()&&this[_0x2ff5b8(0xb6)][_0x2ff5b8(0x9f)]({'prompt':_0x45e713},0x0);},{'priority':_0x1e40f6(0x74)}),_0xd2c314;}[_0x477c03(0x84)](){const _0x17882e=_0x477c03,_0x22dda6=new _0x5cc8e1(this[_0x17882e(0x98)]);return _0x22dda6[_0x17882e(0x85)][_0x17882e(0xa7)][_0x17882e(0x88)](this[_0x17882e(0xb6)])['as'](_0x51b9a9),_0x22dda6['on'](_0x17882e(0x92),()=>{const _0x3377d4=_0x17882e;this[_0x3377d4(0xb6)][_0x3377d4(0x86)](),this[_0x3377d4(0xaf)][_0x3377d4(0x89)](''),this[_0x3377d4(0xaf)][_0x3377d4(0xb0)]();}),_0x22dda6;}[_0x477c03(0x76)](){const _0x33cae0=_0x477c03,_0x2e1761=new _0x3b932d(this[_0x33cae0(0x98)]);return _0x2e1761[_0x33cae0(0x8c)][_0x33cae0(0x87)](_0x33cae0(0x7e))['to'](this,_0x33cae0(0x7e),this,_0x33cae0(0x7b),this,_0x33cae0(0x90),(_0x249e4f,_0x4806ce,_0x5f4e0a)=>_0x249e4f&&!_0x4806ce&&!!_0x5f4e0a),_0x2e1761[_0x33cae0(0x8c)][_0x33cae0(0xaa)](_0x33cae0(0xb8))['to'](this,_0x33cae0(0x96)),_0x2e1761[_0x33cae0(0x69)][_0x33cae0(0x87)](_0x33cae0(0x7e))['to'](this,_0x33cae0(0x7e),this,_0x33cae0(0x7b),this,_0x33cae0(0x90),(_0x235d01,_0x2a3fa1,_0x533cac)=>_0x235d01&&!_0x2a3fa1&&!!_0x533cac),_0x2e1761[_0x33cae0(0x69)][_0x33cae0(0xaa)](_0x33cae0(0xb8))['to'](this,_0x33cae0(0x9d)),_0x2e1761[_0x33cae0(0xb4)][_0x33cae0(0x87)](_0x33cae0(0x7e))['to'](this,_0x33cae0(0x7e),this,_0x33cae0(0x7b),(_0x4d800e,_0x17bb9d)=>_0x4d800e&&!_0x17bb9d),_0x2e1761[_0x33cae0(0xb4)][_0x33cae0(0xaa)](_0x33cae0(0xb8))['to'](this,_0x33cae0(0x68)),_0x2e1761[_0x33cae0(0xa4)][_0x33cae0(0x87)](_0x33cae0(0x7e))['to'](this,_0x33cae0(0x7b)),_0x2e1761[_0x33cae0(0xa4)][_0x33cae0(0xaa)](_0x33cae0(0xb8))['to'](this,_0x33cae0(0x9b)),_0x2e1761;}[_0x477c03(0x72)](){const _0x1fb5ca=_0x477c03;this[_0x1fb5ca(0x90)]='',this[_0x1fb5ca(0x6e)]=!0x1,this[_0x1fb5ca(0x7b)]=!0x0,this[_0x1fb5ca(0xae)][_0x1fb5ca(0x8a)]=!0x0,this[_0x1fb5ca(0x82)][_0x1fb5ca(0x8a)]=!0x0,this[_0x1fb5ca(0xae)][_0x1fb5ca(0xb0)]();}[_0x477c03(0xb9)](){const _0x434f67=_0x477c03,_0x569a97=this[_0x434f67(0x98)];this[_0x434f67(0x7b)]=!0x1,this[_0x434f67(0x80)]='',this[_0x434f67(0xaf)][_0x434f67(0x97)](),this[_0x434f67(0x90)]&&(this[_0x434f67(0xaf)][_0x434f67(0x7a)][_0x434f67(0x6d)]=_0x48ee33(_0x569a97,_0x434f67(0x9e)));}[_0x477c03(0xb1)](_0x43381c){const _0x3057c9=_0x477c03,_0x8a4893=this[_0x3057c9(0x98)];this[_0x3057c9(0xb9)](),this[_0x3057c9(0x6e)]=!0x0,this[_0x3057c9(0x81)][_0x3057c9(0x91)]=_0x43381c||_0x48ee33(_0x8a4893,_0x3057c9(0x7c)),this[_0x3057c9(0x90)]||(this[_0x3057c9(0xae)][_0x3057c9(0x8a)]=!0x1);}}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* @module ai/ui/aihistorylistitemview
|
|
6
|
+
* @module ai/aiassistant/ui/form/aihistorylistitemview
|
|
7
7
|
*/
|
|
8
8
|
import { ListItemView } from 'ckeditor5/src/ui.js';
|
|
9
9
|
import type { PromptHistoryEntry } from './prompthistory.js';
|
|
@@ -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(_0x277bc5,_0x4ec794){const _0x5bccf0=_0x46cd,_0x21917f=_0x277bc5();while(!![]){try{const _0xd2a484=-parseInt(_0x5bccf0(0x149))/0x1+-parseInt(_0x5bccf0(0x141))/0x2*(-parseInt(_0x5bccf0(0x13c))/0x3)+parseInt(_0x5bccf0(0x139))/0x4*(parseInt(_0x5bccf0(0x142))/0x5)+parseInt(_0x5bccf0(0x145))/0x6*(parseInt(_0x5bccf0(0x13f))/0x7)+-parseInt(_0x5bccf0(0x143))/0x8*(parseInt(_0x5bccf0(0x14b))/0x9)+-parseInt(_0x5bccf0(0x13a))/0xa*(-parseInt(_0x5bccf0(0x13e))/0xb)+-parseInt(_0x5bccf0(0x144))/0xc;if(_0xd2a484===_0x4ec794)break;else _0x21917f['push'](_0x21917f['shift']());}catch(_0x4fe899){_0x21917f['push'](_0x21917f['shift']());}}}(_0x57d9,0xdb005));function _0x46cd(_0x51db0d,_0x14ed50){const _0x57d9e4=_0x57d9();return _0x46cd=function(_0x46cd1c,_0xf0af44){_0x46cd1c=_0x46cd1c-0x139;let _0x466e0a=_0x57d9e4[_0x46cd1c];return _0x466e0a;},_0x46cd(_0x51db0d,_0x14ed50);}import{ListItemView as _0x27ac19,ButtonView as _0x4a41c3,ButtonLabelView as _0x3c1a98}from'ckeditor5/src/ui.js';import{unescape as _0x199161}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x27ac19{constructor(_0x23c2ec){const _0xb0f45b=_0x46cd;super();const _0x5d423c=new _0x3c1a98(),_0x4ae49f=new _0x4a41c3(this[_0xb0f45b(0x140)],_0x5d423c);this[_0xb0f45b(0x148)][_0xb0f45b(0x14a)](_0x4ae49f),_0x4ae49f[_0xb0f45b(0x13d)]({'label':_0x23c2ec[_0xb0f45b(0x13b)],'withText':!0x0}),_0x4ae49f['on'](_0xb0f45b(0x146),()=>{const _0x4f098c=_0xb0f45b;this[_0x4f098c(0x147)](_0x4f098c(0x146),{'value':_0x199161(_0x23c2ec[_0x4f098c(0x13b)])});});}}function _0x57d9(){const _0x3da515=['2947720zGhVrE','237552iYcwCB','24yfBXkH','execute','fire','children','1383914QPUgIs','add','9eCxHol','237572UyNdqH','2103490idmFit','prompt','624711lnEZmx','set','33ZAnFcQ','707854nlqpmG','locale','2dNyFPf','120IchtqB'];_0x57d9=function(){return _0x3da515;};return _0x57d9();}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* @module ai/ui/aihistorylistview
|
|
6
|
+
* @module ai/aiassistant/ui/form/aihistorylistview
|
|
7
7
|
*/
|
|
8
8
|
import { ListView, ListItemGroupView, ButtonView, type FilteredView } from 'ckeditor5/src/ui.js';
|
|
9
9
|
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
@@ -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 _0x585d(_0x102119,_0x5c384b){const _0x369238=_0x3692();return _0x585d=function(_0x585d2b,_0x5178a8){_0x585d2b=_0x585d2b-0x1b1;let _0x5ceb3c=_0x369238[_0x585d2b];return _0x5ceb3c;},_0x585d(_0x102119,_0x5c384b);}const _0x5dd902=_0x585d;(function(_0x425dc7,_0x35c03a){const _0x8903d7=_0x585d,_0x5f1c47=_0x425dc7();while(!![]){try{const _0x5652e6=parseInt(_0x8903d7(0x1c4))/0x1+parseInt(_0x8903d7(0x1cb))/0x2*(parseInt(_0x8903d7(0x1c3))/0x3)+parseInt(_0x8903d7(0x1b8))/0x4*(-parseInt(_0x8903d7(0x1c1))/0x5)+-parseInt(_0x8903d7(0x1ba))/0x6*(-parseInt(_0x8903d7(0x1b3))/0x7)+parseInt(_0x8903d7(0x1c0))/0x8+parseInt(_0x8903d7(0x1c8))/0x9+-parseInt(_0x8903d7(0x1b9))/0xa;if(_0x5652e6===_0x35c03a)break;else _0x5f1c47['push'](_0x5f1c47['shift']());}catch(_0xdbede9){_0x5f1c47['push'](_0x5f1c47['shift']());}}}(_0x3692,0xefe2e));import{ListView as _0x2d8844,ListItemGroupView as _0x4648b9,ButtonView as _0x3c773f}from'ckeditor5/src/ui.js';import{getTranslation as _0x561553}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x2d8844{[_0x5dd902(0x1be)];[_0x5dd902(0x1c9)];constructor(_0x503e29){const _0x4d0f8f=_0x5dd902;super(_0x503e29),this[_0x4d0f8f(0x1c9)]=this[_0x4d0f8f(0x1b5)](),this[_0x4d0f8f(0x1be)]=new _0x4648b9(),this[_0x4d0f8f(0x1be)][_0x4d0f8f(0x1b2)][_0x4d0f8f(0x1b4)](this[_0x4d0f8f(0x1c9)],0x1),this[_0x4d0f8f(0x1be)][_0x4d0f8f(0x1bc)]=_0x561553(_0x503e29,_0x4d0f8f(0x1c2)),this[_0x4d0f8f(0x1be)][_0x4d0f8f(0x1bb)][_0x4d0f8f(0x1c6)](_0x4d0f8f(0x1c7))['to'](this),this[_0x4d0f8f(0x1bb)][_0x4d0f8f(0x1b4)](this[_0x4d0f8f(0x1be)]);}[_0x5dd902(0x1ca)](){const _0x405ff6=_0x5dd902;let _0x3a02bb=0x0;for(const _0x2bdb5d of this[_0x405ff6(0x1bb)])_0x3a02bb+=_0x2bdb5d[_0x405ff6(0x1bb)][_0x405ff6(0x1b6)];return{'resultsCount':_0x3a02bb,'totalItemsCount':_0x3a02bb};}[_0x5dd902(0x1b5)](){const _0x162275=_0x5dd902,_0x3b7dfa=this[_0x162275(0x1b7)],_0x560640=new _0x3c773f(this[_0x162275(0x1b7)]);return _0x560640[_0x162275(0x1bf)]({'label':'('+_0x561553(_0x3b7dfa,_0x162275(0x1c5))+')','withText':!0x0}),_0x560640['on'](_0x162275(0x1c7),()=>this[_0x162275(0x1b1)](_0x162275(0x1bd))),_0x560640;}}function _0x3692(){const _0x10ebde=['787688MQFjZV','41814750sYaFej','18aoqaRT','items','label','clearHistory','historyGroupView','set','14566200obMhqo','40QyUsIB','Prompt\x20history','4312347eSYHAc','135508hRgpQi','Clear','delegate','execute','14698584cAcwOu','clearHistoryButton','filter','2omntoP','fire','children','3995873Tgwylz','add','_createClearHistoryButton','length','locale'];_0x3692=function(){return _0x10ebde;};return _0x3692();}
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aiassistant/ui/form/prompthistory
|
|
7
|
+
*/
|
|
5
8
|
import { Collection } from 'ckeditor5/src/utils.js';
|
|
6
9
|
/**
|
|
7
10
|
* A collection that stores the prompt history in the session storage as a side effect.
|
|
@@ -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 _0x2cefcc=_0x5e70;(function(_0x1f9def,_0x493f97){const _0x365d0e=_0x5e70,_0x14c66b=_0x1f9def();while(!![]){try{const _0x44f611=-parseInt(_0x365d0e(0xcd))/0x1*(-parseInt(_0x365d0e(0xc4))/0x2)+parseInt(_0x365d0e(0xb8))/0x3*(-parseInt(_0x365d0e(0xca))/0x4)+parseInt(_0x365d0e(0xc7))/0x5*(parseInt(_0x365d0e(0xbf))/0x6)+-parseInt(_0x365d0e(0xbe))/0x7+parseInt(_0x365d0e(0xb4))/0x8*(-parseInt(_0x365d0e(0xbc))/0x9)+parseInt(_0x365d0e(0xc1))/0xa+parseInt(_0x365d0e(0xba))/0xb*(parseInt(_0x365d0e(0xc5))/0xc);if(_0x44f611===_0x493f97)break;else _0x14c66b['push'](_0x14c66b['shift']());}catch(_0x3d1bf0){_0x14c66b['push'](_0x14c66b['shift']());}}}(_0x2c86,0x7edf8));function _0x2c86(){const _0x2ac12b=['setItem','4WXiizC','toLowerCase','addMany','863669wBxMIN','getItem','length','2008oLlqaW','CKEditor/AIFormView/PromptHistory','stringify','last','2737077qEZJMC','trim','40535ZejWLI','remove','26541Xjuwtr','_saveToSessionStorage','1964018vKshek','2298138lyDNdU','prompt','5170170McicFh','add','_loadFromSessionStorage','2bXBjfE','2244xedwPz','map','5VAYDQs','parse'];_0x2c86=function(){return _0x2ac12b;};return _0x2c86();}import{Collection as _0x77a0c0}from'ckeditor5/src/utils.js';const ro=_0x2cefcc(0xb5);export class PromptHistory extends _0x77a0c0{constructor(){const _0x3d20ab=_0x2cefcc;super(),this[_0x3d20ab(0xc3)](),this['on'](_0x3d20ab(0xc2),(_0x1caf7f,_0x5c558f)=>{const _0x47ef7f=_0x3d20ab,_0x124f82=no(_0x5c558f[_0x47ef7f(0xc0)]);for(const _0x4f0c94 of this)if(_0x4f0c94!=_0x5c558f&&no(_0x4f0c94[_0x47ef7f(0xc0)])===_0x124f82){this[_0x47ef7f(0xbb)](_0x4f0c94);break;}this[_0x47ef7f(0xcf)]>0x14&&this[_0x47ef7f(0xbb)](this[_0x47ef7f(0xb7)]),this[_0x47ef7f(0xbd)]();}),this['on'](_0x3d20ab(0xbb),()=>{const _0x46cd86=_0x3d20ab;this[_0x46cd86(0xbd)]();});}[_0x2cefcc(0xc3)](){const _0x55db83=_0x2cefcc,_0x4e672b=sessionStorage[_0x55db83(0xce)](ro)||'[]';this[_0x55db83(0xcc)](JSON[_0x55db83(0xc8)](_0x4e672b));}[_0x2cefcc(0xbd)](){const _0x3974c9=_0x2cefcc;sessionStorage[_0x3974c9(0xc9)](ro,JSON[_0x3974c9(0xb6)](this[_0x3974c9(0xc6)](_0x18c1c5=>_0x18c1c5)));}}function _0x5e70(_0x1fa8b2,_0x5bc7e4){const _0x2c866c=_0x2c86();return _0x5e70=function(_0x5e70a4,_0x5538a1){_0x5e70a4=_0x5e70a4-0xb4;let _0x2071b7=_0x2c866c[_0x5e70a4];return _0x2071b7;},_0x5e70(_0x1fa8b2,_0x5bc7e4);}function no(_0x155749){const _0x4e2215=_0x2cefcc;return _0x155749[_0x4e2215(0xcb)]()[_0x4e2215(0xb9)]();}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* @module ai/ui/showaiassistantcommand
|
|
6
|
+
* @module ai/aiassistant/ui/showaiassistantcommand
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
9
|
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
@@ -33,7 +33,7 @@ export declare class ShowAIAssistantCommand extends Command {
|
|
|
33
33
|
* @param label Label to be displayed in the AI assistant query input field while the AI assistant processes the initial query.
|
|
34
34
|
* @param actionId The id of the executed action. It can be used in extended and custom adapters to customize the request. It
|
|
35
35
|
* will be prefixed with `aiAssistant:`. See also
|
|
36
|
-
* {@link module:ai/adapters/aitextadapter~AITextAdapterRequestData#actionId `AITextAdapterRequestData#actionId`}.
|
|
36
|
+
* {@link module:ai/aiassistant/adapters/aitextadapter~AITextAdapterRequestData#actionId `AITextAdapterRequestData#actionId`}.
|
|
37
37
|
* @fires execute
|
|
38
38
|
*/
|
|
39
39
|
execute(query?: string, label?: string, actionId?: string): void;
|
|
@@ -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 _0x450d66=_0x7d40;(function(_0x432170,_0x3b45e1){const _0x58d001=_0x7d40,_0x33d48a=_0x432170();while(!![]){try{const _0x4b01cc=-parseInt(_0x58d001(0x162))/0x1+parseInt(_0x58d001(0x166))/0x2*(parseInt(_0x58d001(0x13e))/0x3)+parseInt(_0x58d001(0x15b))/0x4*(parseInt(_0x58d001(0x149))/0x5)+-parseInt(_0x58d001(0x145))/0x6*(parseInt(_0x58d001(0x152))/0x7)+parseInt(_0x58d001(0x153))/0x8+-parseInt(_0x58d001(0x158))/0x9+-parseInt(_0x58d001(0x163))/0xa*(-parseInt(_0x58d001(0x155))/0xb);if(_0x4b01cc===_0x3b45e1)break;else _0x33d48a['push'](_0x33d48a['shift']());}catch(_0x34084a){_0x33d48a['push'](_0x33d48a['shift']());}}}(_0x7932,0x4fe3b));import{Command as _0x2c5aec}from'ckeditor5/src/core.js';function _0x7d40(_0x264f5a,_0x30f76e){const _0x793293=_0x7932();return _0x7d40=function(_0x7d402d,_0x56105f){_0x7d402d=_0x7d402d-0x13b;let _0x456817=_0x793293[_0x7d402d];return _0x456817;},_0x7d40(_0x264f5a,_0x30f76e);}function _0x7932(){const _0x250f32=['showUI','length','9777WtaoIJ','values','from','name','isCollapsed','selection','includes','549210UECIel','plugins','element','refresh','41455IEXIpk','enabledCommandsIds','_hasContext','add','getItems','isEnabled','get','editor','getSelectedBlocks','35jQduTN','789200ifkxdK','execute','77hpjdYA','change:_hasContext','model','3157938KKSUKh','change:isEnabled','isEmpty','20EMcJuN','_commandDefinitions','set','config','custom','requiresContent','document','127499LEIEtC','854970Svowsq','ai.assistant.disabledElements','getRanges','322HWgGIl','hasContent','getFirstRange'];_0x7932=function(){return _0x250f32;};return _0x7932();}import{AIAssistantUI as _0x5d3498}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x2c5aec{[_0x450d66(0x15c)];constructor(_0x4cb4df,_0x51314c){const _0x3bf558=_0x450d66;super(_0x4cb4df),this[_0x3bf558(0x15c)]=_0x51314c,this[_0x3bf558(0x15d)](_0x3bf558(0x14a),[]),this['on'](_0x3bf558(0x156),(_0x3698b4,_0x342214,_0x5837c4)=>{const _0x33808c=_0x3bf558;this[_0x33808c(0x14e)]&&(this[_0x33808c(0x14a)]=ns(this[_0x33808c(0x15c)],_0x5837c4));}),this[_0x3bf558(0x15d)](_0x3bf558(0x14b),!0x1),this['on'](_0x3bf558(0x159),(_0x1ad7b4,_0x280f7a,_0x7bb5c2)=>{const _0x34d0c9=_0x3bf558;this[_0x34d0c9(0x14a)]=_0x7bb5c2?ns(this[_0x34d0c9(0x15c)],this[_0x34d0c9(0x14b)]):[];});}[_0x450d66(0x148)](){const _0x3431fc=_0x450d66,_0x4a6fdd=this[_0x3431fc(0x150)][_0x3431fc(0x157)];this[_0x3431fc(0x14b)]=function(_0x4ce0ae){const _0x174107=_0x3431fc,_0x5b34bd=_0x4ce0ae[_0x174107(0x161)][_0x174107(0x143)];return _0x5b34bd[_0x174107(0x142)]?0x0!==[..._0x5b34bd[_0x174107(0x151)]()][_0x174107(0x13d)]&&![..._0x5b34bd[_0x174107(0x151)]()][0x0][_0x174107(0x15a)]:!!_0x4ce0ae[_0x174107(0x167)](_0x5b34bd[_0x174107(0x13b)]());}(_0x4a6fdd);const _0x15c7fe=_0x4a6fdd[_0x3431fc(0x161)][_0x3431fc(0x143)],_0x22a028=this[_0x3431fc(0x150)][_0x3431fc(0x15e)][_0x3431fc(0x14f)](_0x3431fc(0x164));for(const _0x21c4a2 of _0x15c7fe[_0x3431fc(0x165)]())for(const _0x10ad17 of _0x21c4a2[_0x3431fc(0x14d)]())if(_0x10ad17['is'](_0x3431fc(0x147))&&_0x22a028[_0x3431fc(0x144)](_0x10ad17[_0x3431fc(0x141)]))return void(this[_0x3431fc(0x14e)]=!0x1);this[_0x3431fc(0x14e)]=!0x0;}[_0x450d66(0x154)](_0x4c98d9='',_0x578d30='',_0x3f2c55=_0x450d66(0x15f)){const _0x5e5b07=_0x450d66;this[_0x5e5b07(0x150)][_0x5e5b07(0x146)][_0x5e5b07(0x14f)](_0x5d3498)[_0x5e5b07(0x13c)](_0x4c98d9,_0x578d30,_0x3f2c55);}}function ns(_0x469567,_0x126610){const _0x77882b=_0x450d66,_0x2f7cb5=new Set();for(const _0x370952 of _0x469567[_0x77882b(0x13f)]())(_0x126610||!0x1===_0x370952[_0x77882b(0x160)])&&_0x2f7cb5[_0x77882b(0x14c)](_0x370952['id']);return Array[_0x77882b(0x140)](_0x2f7cb5);}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* @module ai/utils/common-translations
|
|
6
|
+
* @module ai/aiassistant/utils/common-translations
|
|
7
7
|
*/
|
|
8
8
|
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
9
9
|
export declare function getTranslation(locale: Locale, id: string, values?: string | Array<string> | number): string;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x3ed714,_0x50d708,_0x48abb6){const t=_0x3ed714['t'];switch(_0x50d708){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x48abb6);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x48abb6);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x48abb6);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x50d708;}}
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* @module ai/utils/normalizecommandsconfig
|
|
6
|
+
* @module ai/aiassistant/utils/normalizecommandsconfig
|
|
7
7
|
*/
|
|
8
8
|
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
9
9
|
import type { AIGroupDefinition, AICommandDefinition } from '../aiassistant.js';
|
|
10
10
|
export declare const UNGROUPED_COMMANDS_GROUP_ID = "_ungrouppedCommands";
|
|
11
11
|
/**
|
|
12
|
-
* Normalizes the `config.ai.
|
|
12
|
+
* Normalizes the `config.ai.assistant.commands` configuration taking into account different possible config formats (or lack thereof).
|
|
13
13
|
*/
|
|
14
14
|
export declare function normalizeCommandsConfig(config: Array<AIGroupDefinition | AICommandDefinition>, locale: Locale): Array<AIGroupDefinition>;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(
|
|
23
|
+
export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x347b11,_0x3f7289){const _0x42894c=(0x0,_0x3f7289['t'])('Other');return _0x347b11['length']?'groupId'in _0x347b11[0x0]?_0x347b11:[{'groupId':'_ungrouppedCommands','groupLabel':_0x42894c,'order':0x1/0x0,'commands':_0x347b11}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x42894c,'order':0x1/0x0,'commands':[]}];}
|
|
@@ -0,0 +1,72 @@
|
|
|
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 { ContextPlugin } from 'ckeditor5/src/core.js';
|
|
6
|
+
import { AIConnector } from '../aicore/aiconnector.js';
|
|
7
|
+
import { type View } from 'ckeditor5/src/ui.js';
|
|
8
|
+
import { AIEditing } from '../aicore/aiediting.js';
|
|
9
|
+
import { AIBalloonView } from './ui/aiballoonview.js';
|
|
10
|
+
import '../../theme/aiballoon/aiballoon.css';
|
|
11
|
+
import { type ModelRange } from 'ckeditor5/src/engine.js';
|
|
12
|
+
/**
|
|
13
|
+
* Event names that can be fired by the AI Balloon plugin.
|
|
14
|
+
* Includes all view events plus dialog-specific events.
|
|
15
|
+
*/
|
|
16
|
+
export declare const AI_BALLOON_EVENT_NAMES: readonly ["applySuggestion", "insertSuggestion", "showNext", "showPrevious", "dialogClosed"];
|
|
17
|
+
/**
|
|
18
|
+
* Configuration object for opening the AI Balloon.
|
|
19
|
+
*/
|
|
20
|
+
export interface AIBalloonConfig {
|
|
21
|
+
index: number;
|
|
22
|
+
title: string;
|
|
23
|
+
icon?: string;
|
|
24
|
+
mainView: View;
|
|
25
|
+
ranges: Array<ModelRange>;
|
|
26
|
+
showRotator: boolean;
|
|
27
|
+
showApplyButton: boolean;
|
|
28
|
+
showSuggestButton: boolean;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The AI Balloon plugin provides a balloon dialog interface for displaying and interacting with AI suggestions.
|
|
32
|
+
*/
|
|
33
|
+
export declare class AIBalloon extends ContextPlugin {
|
|
34
|
+
/**
|
|
35
|
+
* @inheritDoc
|
|
36
|
+
*/
|
|
37
|
+
static get requires(): readonly [typeof AIConnector, typeof AIEditing];
|
|
38
|
+
/**
|
|
39
|
+
* @inheritDoc
|
|
40
|
+
*/
|
|
41
|
+
static get pluginName(): "AIBalloon";
|
|
42
|
+
/**
|
|
43
|
+
* @inheritDoc
|
|
44
|
+
*/
|
|
45
|
+
static get isOfficialPlugin(): true;
|
|
46
|
+
/**
|
|
47
|
+
* @inheritDoc
|
|
48
|
+
*/
|
|
49
|
+
static get isPremiumPlugin(): true;
|
|
50
|
+
/**
|
|
51
|
+
* A flag indicating whether the AI Balloon dialog is currently open.
|
|
52
|
+
*/
|
|
53
|
+
isOpen: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* The current balloon view instance.
|
|
56
|
+
*/
|
|
57
|
+
balloonView: AIBalloonView;
|
|
58
|
+
/**
|
|
59
|
+
* Opens the AI Balloon dialog with the provided configuration.
|
|
60
|
+
*
|
|
61
|
+
* @param config Configuration object containing dialog settings and content data
|
|
62
|
+
*/
|
|
63
|
+
open(config: AIBalloonConfig): void;
|
|
64
|
+
/**
|
|
65
|
+
* Closes the currently open AI Balloon dialog.
|
|
66
|
+
*/
|
|
67
|
+
close(): void;
|
|
68
|
+
}
|
|
69
|
+
export type AIBalloonDialogClosedEvent = {
|
|
70
|
+
name: 'dialogClosed';
|
|
71
|
+
args: [];
|
|
72
|
+
};
|