@ckeditor/ckeditor5-ai 46.1.1 → 47.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +18 -5
- package/README.md +10 -9
- package/build/ai.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/be.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/ckeditor5-metadata.json +24 -3
- package/dist/index-content.css +0 -1
- package/dist/index-editor.css +2742 -0
- package/dist/index.css +3141 -0
- package/dist/index.js +4 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +163 -1
- package/lang/translations/af.po +612 -0
- package/lang/translations/ar.po +628 -0
- package/lang/translations/ast.po +612 -0
- package/lang/translations/az.po +612 -0
- package/lang/translations/be.po +616 -0
- package/lang/translations/bg.po +612 -0
- package/lang/translations/bn.po +612 -0
- package/lang/translations/bs.po +616 -0
- package/lang/translations/ca.po +612 -0
- package/lang/translations/cs.po +616 -0
- package/lang/translations/da.po +612 -0
- package/lang/translations/de-ch.po +612 -0
- package/lang/translations/de.po +612 -0
- package/lang/translations/el.po +612 -0
- package/lang/translations/en-au.po +612 -0
- package/lang/translations/en-gb.po +612 -0
- package/lang/translations/en.po +612 -0
- package/lang/translations/eo.po +612 -0
- package/lang/translations/es-co.po +612 -0
- package/lang/translations/es.po +612 -0
- package/lang/translations/et.po +612 -0
- package/lang/translations/eu.po +612 -0
- package/lang/translations/fa.po +608 -0
- package/lang/translations/fi.po +612 -0
- package/lang/translations/fr.po +612 -0
- package/lang/translations/gl.po +612 -0
- package/lang/translations/gu.po +612 -0
- package/lang/translations/he.po +612 -0
- package/lang/translations/hi.po +612 -0
- package/lang/translations/hr.po +616 -0
- package/lang/translations/hu.po +612 -0
- package/lang/translations/hy.po +612 -0
- package/lang/translations/id.po +608 -0
- package/lang/translations/it.po +612 -0
- package/lang/translations/ja.po +608 -0
- package/lang/translations/jv.po +612 -0
- package/lang/translations/kk.po +612 -0
- package/lang/translations/km.po +608 -0
- package/lang/translations/kn.po +612 -0
- package/lang/translations/ko.po +608 -0
- package/lang/translations/ku.po +612 -0
- package/lang/translations/lt.po +616 -0
- package/lang/translations/lv.po +616 -0
- package/lang/translations/ms.po +608 -0
- package/lang/translations/nb.po +612 -0
- package/lang/translations/ne.po +612 -0
- package/lang/translations/nl.po +612 -0
- package/lang/translations/no.po +612 -0
- package/lang/translations/oc.po +612 -0
- package/lang/translations/pl.po +616 -0
- package/lang/translations/pt-br.po +612 -0
- package/lang/translations/pt.po +612 -0
- package/lang/translations/ro.po +616 -0
- package/lang/translations/ru.po +616 -0
- package/lang/translations/si.po +612 -0
- package/lang/translations/sk.po +616 -0
- package/lang/translations/sl.po +620 -0
- package/lang/translations/sq.po +612 -0
- package/lang/translations/sr-latn.po +616 -0
- package/lang/translations/sr.po +616 -0
- package/lang/translations/sv.po +612 -0
- package/lang/translations/th.po +608 -0
- package/lang/translations/ti.po +612 -0
- package/lang/translations/tk.po +612 -0
- package/lang/translations/tr.po +612 -0
- package/lang/translations/tt.po +608 -0
- package/lang/translations/ug.po +608 -0
- package/lang/translations/uk.po +616 -0
- package/lang/translations/ur.po +612 -0
- package/lang/translations/uz.po +612 -0
- package/lang/translations/vi.po +608 -0
- package/lang/translations/zh-cn.po +608 -0
- package/lang/translations/zh.po +608 -0
- package/package.json +23 -11
- package/src/aiactions/aiactions.d.ts +48 -0
- package/src/aiactions/aiactions.js +23 -0
- package/src/aiactions/model/aiactionsinteraction.d.ts +48 -0
- package/src/aiactions/model/aiactionsinteraction.js +23 -0
- package/src/aiactions/model/aiactionsreply.d.ts +15 -0
- package/src/aiactions/model/aiactionsreply.js +23 -0
- package/src/{adapters → aiassistant/adapters}/aiadapter.d.ts +1 -1
- package/src/aiassistant/adapters/aiadapter.js +23 -0
- package/src/{adapters → aiassistant/adapters}/aitextadapter.d.ts +9 -9
- package/src/aiassistant/adapters/aitextadapter.js +23 -0
- package/src/{adapters → aiassistant/adapters}/awstextadapter.d.ts +36 -23
- package/src/aiassistant/adapters/awstextadapter.js +23 -0
- package/src/{adapters → aiassistant/adapters}/openaitextadapter.d.ts +38 -25
- package/src/aiassistant/adapters/openaitextadapter.js +23 -0
- package/src/{aiassistant.d.ts → aiassistant/aiassistant.d.ts} +54 -13
- package/src/aiassistant/aiassistant.js +23 -0
- package/src/aiassistant/aiassistantediting.js +23 -0
- package/src/{aiassistantui.d.ts → aiassistant/aiassistantui.d.ts} +4 -4
- package/src/aiassistant/aiassistantui.js +23 -0
- package/src/{legacyerrors.js → aiassistant/legacyerrors.js} +1 -1
- package/src/{ui → aiassistant/ui}/aiassistantcontroller.d.ts +5 -4
- package/src/aiassistant/ui/aiassistantcontroller.js +24 -0
- package/src/{ui → aiassistant/ui}/form/aiformcontentarea.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +23 -0
- package/src/aiassistant/ui/form/aiformerrorview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aiformpromptview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aiformtoolbarview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aiformview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aihistorylistitemview.d.ts +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aihistorylistview.d.ts +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/prompthistory.d.ts +3 -0
- package/src/aiassistant/ui/form/prompthistory.js +23 -0
- package/src/{ui → aiassistant/ui}/showaiassistantcommand.d.ts +2 -2
- package/src/aiassistant/ui/showaiassistantcommand.js +23 -0
- package/src/{utils → aiassistant/utils}/common-translations.d.ts +1 -1
- package/src/{utils → aiassistant/utils}/common-translations.js +1 -1
- package/src/{utils → aiassistant/utils}/normalizecommandsconfig.d.ts +2 -2
- package/src/{utils → aiassistant/utils}/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.d.ts +72 -0
- package/src/aiballoon/aiballoon.js +23 -0
- package/src/aiballoon/ui/aiballoondisclaimerview.d.ts +17 -0
- package/src/aiballoon/ui/aiballoondisclaimerview.js +23 -0
- package/src/aiballoon/ui/aiballoontoolbarview.d.ts +31 -0
- package/src/aiballoon/ui/aiballoontoolbarview.js +23 -0
- package/src/aiballoon/ui/aiballoonview.d.ts +109 -0
- package/src/aiballoon/ui/aiballoonview.js +23 -0
- package/src/aichat/aichat.d.ts +79 -0
- package/src/aichat/aichat.js +23 -0
- package/src/aichat/aichatcontroller.d.ts +68 -0
- package/src/aichat/aichatcontroller.js +23 -0
- package/src/aichat/aichatui.d.ts +297 -0
- package/src/aichat/aichatui.js +23 -0
- package/src/aichat/model/aichatcontext.d.ts +360 -0
- package/src/aichat/model/aichatcontext.js +23 -0
- package/src/aichat/model/aichatconversation.d.ts +270 -0
- package/src/aichat/model/aichatconversation.js +23 -0
- package/src/aichat/model/aichatinteraction.d.ts +46 -0
- package/src/aichat/model/aichatinteraction.js +23 -0
- package/src/aichat/model/aichatmodels.d.ts +77 -0
- package/src/aichat/model/aichatmodels.js +23 -0
- package/src/aichat/ui/aichatcontrolsview.d.ts +98 -0
- package/src/aichat/ui/aichatcontrolsview.js +23 -0
- package/src/aichat/ui/aichatfeedview.d.ts +114 -0
- package/src/aichat/ui/aichatfeedview.js +23 -0
- package/src/aichat/ui/aichatheaderview.d.ts +29 -0
- package/src/aichat/ui/aichatheaderview.js +23 -0
- package/src/aichat/ui/aichatview.d.ts +37 -0
- package/src/aichat/ui/aichatview.js +23 -0
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.d.ts +71 -0
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +23 -0
- package/src/aichat/ui/controls/aichatcontextitembuttonview.d.ts +46 -0
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +23 -0
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.d.ts +89 -0
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +23 -0
- package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +105 -0
- package/src/aichat/ui/controls/aichatcontextpanelview.js +23 -0
- package/src/aichat/ui/controls/aichatcontrolsloaderview.d.ts +12 -0
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +23 -0
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.d.ts +89 -0
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +23 -0
- package/src/aichat/ui/controls/aichatpromptinputview.d.ts +44 -0
- package/src/aichat/ui/controls/aichatpromptinputview.js +23 -0
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.d.ts +17 -0
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.d.ts +61 -0
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +100 -0
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourceslistview.d.ts +49 -0
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.d.ts +61 -0
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcesview.d.ts +54 -0
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.d.ts +27 -0
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +23 -0
- package/src/aichat/ui/feed/aichatfeederroritemview.d.ts +39 -0
- package/src/aichat/ui/feed/aichatfeederroritemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +29 -0
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +23 -0
- package/src/aichat/ui/feed/aichatfeeditemview.d.ts +46 -0
- package/src/aichat/ui/feed/aichatfeeditemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedreplyitemview.d.ts +46 -0
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +74 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +74 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedusermessageitem.d.ts +40 -0
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +23 -0
- package/src/aichat/utils/eventnames.d.ts +5 -0
- package/src/aichat/utils/eventnames.js +23 -0
- package/src/aichat/utils/promisequeue.d.ts +32 -0
- package/src/aichat/utils/promisequeue.js +23 -0
- package/src/aichat/utils/scrollmanager.d.ts +23 -0
- package/src/aichat/utils/scrollmanager.js +23 -0
- package/src/aichathistory/aichathistory.d.ts +30 -0
- package/src/aichathistory/aichathistory.js +23 -0
- package/src/aichathistory/aichathistorycontroller.d.ts +40 -0
- package/src/aichathistory/aichathistorycontroller.js +23 -0
- package/src/aichathistory/aichathistoryui.d.ts +112 -0
- package/src/aichathistory/aichathistoryui.js +23 -0
- package/src/aichathistory/model/aichathistoryconversations.d.ts +114 -0
- package/src/aichathistory/model/aichathistoryconversations.js +23 -0
- package/src/aichathistory/model/aichathistoryitem.d.ts +59 -0
- package/src/aichathistory/model/aichathistoryitem.js +23 -0
- package/src/aichathistory/ui/aichathistorylistitemview.d.ts +42 -0
- package/src/aichathistory/ui/aichathistorylistitemview.js +23 -0
- package/src/aichathistory/ui/aichathistorylistview.d.ts +31 -0
- package/src/aichathistory/ui/aichathistorylistview.js +23 -0
- package/src/aichathistory/ui/aichathistorysectionlistview.d.ts +17 -0
- package/src/aichathistory/ui/aichathistorysectionlistview.js +23 -0
- package/src/aichathistory/ui/aichathistoryview.d.ts +41 -0
- package/src/aichathistory/ui/aichathistoryview.js +23 -0
- package/src/aiconfig.d.ts +92 -30
- package/src/aicore/aiconnector.d.ts +302 -0
- package/src/aicore/aiconnector.js +23 -0
- package/src/aicore/aiediting.d.ts +61 -0
- package/src/aicore/aiediting.js +23 -0
- package/src/aicore/model/aicapabilities.d.ts +55 -0
- package/src/aicore/model/aicapabilities.js +23 -0
- package/src/aicore/model/aicontext.d.ts +53 -0
- package/src/aicore/model/aicontext.js +23 -0
- package/src/aicore/model/aiinteraction.d.ts +135 -0
- package/src/aicore/model/aiinteraction.js +23 -0
- package/src/aicore/model/aireply.d.ts +178 -0
- package/src/aicore/model/aireply.js +23 -0
- package/src/aicore/pipeline/airesponseapplier.d.ts +291 -0
- package/src/aicore/pipeline/airesponseapplier.js +24 -0
- package/src/aicore/pipeline/airesponseparser.d.ts +27 -0
- package/src/aicore/pipeline/airesponseparser.js +24 -0
- package/src/aicore/ui/aidisclaimerview.d.ts +17 -0
- package/src/aicore/ui/aidisclaimerview.js +23 -0
- package/src/aicore/ui/aiskeleton.d.ts +37 -0
- package/src/aicore/ui/aiskeleton.js +23 -0
- package/src/aicore/ui/aispinner.d.ts +14 -0
- package/src/aicore/ui/aispinner.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.d.ts +62 -0
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +38 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +80 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +39 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.d.ts +39 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +23 -0
- package/src/aicore/utils/common-translations.d.ts +9 -0
- package/src/aicore/utils/common-translations.js +23 -0
- package/src/aicore/utils/createresizebutton.d.ts +12 -0
- package/src/aicore/utils/createresizebutton.js +23 -0
- package/src/aicore/utils/documentposition.d.ts +41 -0
- package/src/aicore/utils/documentposition.js +23 -0
- package/src/aicore/utils/documentrange.d.ts +46 -0
- package/src/aicore/utils/documentrange.js +23 -0
- package/src/aicore/utils/eventnames.d.ts +9 -0
- package/src/aicore/utils/eventnames.js +23 -0
- package/src/aicore/utils/geteditorfromcontext.d.ts +6 -0
- package/src/aicore/utils/geteditorfromcontext.js +23 -0
- package/src/aicore/utils/getoperationsfromreply.d.ts +21 -0
- package/src/aicore/utils/getoperationsfromreply.js +23 -0
- package/src/aicore/utils/getsuggestionpartsfromreply.d.ts +19 -0
- package/src/aicore/utils/getsuggestionpartsfromreply.js +23 -0
- package/src/aicore/utils/htmlparser.d.ts +35 -0
- package/src/aicore/utils/htmlparser.js +23 -0
- package/src/aicore/utils/htmlstreamer.d.ts +123 -0
- package/src/aicore/utils/htmlstreamer.js +23 -0
- package/src/aiquickactions/aiquickactions.d.ts +41 -0
- package/src/aiquickactions/aiquickactions.js +23 -0
- package/src/aiquickactions/aiquickactionscommand.d.ts +12 -0
- package/src/aiquickactions/aiquickactionscommand.js +23 -0
- package/src/aiquickactions/aiquickactionsediting.d.ts +23 -0
- package/src/aiquickactions/aiquickactionsediting.js +23 -0
- package/src/aiquickactions/aiquickactionsui.d.ts +150 -0
- package/src/aiquickactions/aiquickactionsui.js +23 -0
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +30 -0
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +23 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +45 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +23 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +45 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +23 -0
- package/src/aiquickactions/utils/common-translations.d.ts +9 -0
- package/src/aiquickactions/utils/common-translations.js +23 -0
- package/src/aireviewmode/aireviewmode.d.ts +30 -0
- package/src/aireviewmode/aireviewmode.js +23 -0
- package/src/aireviewmode/aireviewmodecontroller.d.ts +32 -0
- package/src/aireviewmode/aireviewmodecontroller.js +23 -0
- package/src/aireviewmode/aireviewmodeediting.d.ts +129 -0
- package/src/aireviewmode/aireviewmodeediting.js +23 -0
- package/src/aireviewmode/aireviewmodeui.d.ts +73 -0
- package/src/aireviewmode/aireviewmodeui.js +23 -0
- package/src/aireviewmode/model/aireviewcheck.d.ts +60 -0
- package/src/aireviewmode/model/aireviewcheck.js +23 -0
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +17 -0
- package/src/aireviewmode/model/aireviewcheckcustom.js +23 -0
- package/src/aireviewmode/model/aireviewchecklist.d.ts +31 -0
- package/src/aireviewmode/model/aireviewchecklist.js +23 -0
- package/src/aireviewmode/model/aireviewcheckresult.d.ts +39 -0
- package/src/aireviewmode/model/aireviewcheckresult.js +23 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +42 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.js +23 -0
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +102 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +23 -0
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +18 -0
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +23 -0
- package/src/aireviewmode/model/aireviewmodels.d.ts +26 -0
- package/src/aireviewmode/model/aireviewmodels.js +23 -0
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +14 -0
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +23 -0
- package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +29 -0
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +46 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +23 -0
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.d.ts +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +80 -0
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +45 -0
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +18 -0
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodeview.d.ts +42 -0
- package/src/aireviewmode/ui/aireviewmodeview.js +23 -0
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +16 -0
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +23 -0
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +20 -0
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +23 -0
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +16 -0
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +23 -0
- package/src/aireviewmode/utils/common-translations.d.ts +9 -0
- package/src/aireviewmode/utils/common-translations.js +23 -0
- package/src/aitabs/aitabs.d.ts +92 -0
- package/src/aitabs/aitabs.js +23 -0
- package/src/aitabs/aitabsmainview.d.ts +45 -0
- package/src/aitabs/aitabsmainview.js +23 -0
- package/src/aitabs/tabs/aitabsview.d.ts +147 -0
- package/src/aitabs/tabs/aitabsview.js +23 -0
- package/src/aitabs/tabs/tabbuttonview.d.ts +47 -0
- package/src/aitabs/tabs/tabbuttonview.js +23 -0
- package/src/aitabs/tabs/tabpanelview.d.ts +44 -0
- package/src/aitabs/tabs/tabpanelview.js +23 -0
- package/src/augmentation.d.ts +22 -6
- package/src/index.d.ts +40 -9
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +207 -0
- package/theme/aichat/aichat-controls/aichat-context-chip.css +139 -0
- package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +194 -0
- package/theme/aichat/aichat-controls/aichat-context-controls.css +46 -0
- package/theme/aichat/aichat-controls/aichat-controls-button.css +74 -0
- package/theme/aichat/aichat-controls/aichat-controls-loader.css +93 -0
- package/theme/aichat/aichat-controls/prompt-capabilities.css +46 -0
- package/theme/aichat/aichat-controls/prompt-input.css +55 -0
- package/theme/aichat/aichat-controls.css +154 -0
- package/theme/aichat/aichat.css +68 -0
- package/theme/aichat/aichatfeed.css +376 -0
- package/theme/aichat/aichathistory.css +235 -0
- package/theme/aichat/aiminitoolbar.css +94 -0
- package/theme/aichat/aisuggestioncontainer.css +203 -0
- package/theme/aiquickactions/aiquickactions.css +43 -0
- package/theme/aireviewmode/aireviewmode-check-list.css +255 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +202 -0
- package/theme/aireviewmode/aireviewmode-review-completed.css +52 -0
- package/theme/aireviewmode/aireviewmode.css +73 -0
- package/theme/aitabs/aitabsview.css +64 -0
- package/theme/aitabs/tabs/tabbuttonview.css +74 -0
- package/theme/aitabs/tabs/tabsview.css +78 -0
- package/theme/common/aibutton.css +145 -0
- package/theme/common/aichaterror.css +61 -0
- package/theme/common/aidisclaimer.css +29 -0
- package/theme/common/aiheader.css +88 -0
- package/theme/common/aiskeleton.css +54 -0
- package/theme/common/aispinner.css +58 -0
- package/src/adapters/aiadapter.js +0 -23
- package/src/adapters/aitextadapter.js +0 -23
- package/src/adapters/awstextadapter.js +0 -23
- package/src/adapters/openaitextadapter.js +0 -23
- package/src/aiassistant.js +0 -23
- package/src/aiassistantediting.js +0 -23
- package/src/aiassistantui.js +0 -23
- package/src/ui/aiassistantcontroller.js +0 -24
- package/src/ui/form/aiformcontentarea.js +0 -23
- package/src/ui/form/aiformerrorview.js +0 -23
- package/src/ui/form/aiformpromptview.js +0 -23
- package/src/ui/form/aiformtoolbarview.js +0 -23
- package/src/ui/form/aiformview.js +0 -23
- package/src/ui/form/aihistorylistitemview.js +0 -23
- package/src/ui/form/aihistorylistview.js +0 -23
- package/src/ui/form/prompthistory.js +0 -23
- package/src/ui/showaiassistantcommand.js +0 -23
- /package/src/{aiassistantediting.d.ts → aiassistant/aiassistantediting.d.ts} +0 -0
- /package/src/{legacyerrors.d.ts → aiassistant/legacyerrors.d.ts} +0 -0
- /package/src/{ui → aiassistant/ui}/form/aiformerrorview.d.ts +0 -0
- /package/theme/{ai-dropdown.css → aiassistant/ai-dropdown.css} +0 -0
- /package/theme/{ai-form.css → aiassistant/ai-form.css} +0 -0
- /package/theme/{ai.css → aiassistant/ai.css} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { Command } from 'ckeditor5/src/core.js';
|
|
6
|
+
import { type AIQuickActionDefinition } from './aiquickactionsui.js';
|
|
7
|
+
/**
|
|
8
|
+
* AI Quick Actions command for executing various AI-powered actions.
|
|
9
|
+
*/
|
|
10
|
+
export declare class AIQuickActionsCommand extends Command {
|
|
11
|
+
execute(action: AIQuickActionDefinition): void;
|
|
12
|
+
}
|
|
@@ -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 _0x28761e=_0x3803;(function(_0x25c06,_0x58b48b){const _0x212c16=_0x3803,_0xe05ee=_0x25c06();while(!![]){try{const _0x487bf1=-parseInt(_0x212c16(0xfe))/0x1*(-parseInt(_0x212c16(0x113))/0x2)+-parseInt(_0x212c16(0xe7))/0x3*(-parseInt(_0x212c16(0x101))/0x4)+parseInt(_0x212c16(0xf5))/0x5*(-parseInt(_0x212c16(0xef))/0x6)+-parseInt(_0x212c16(0x119))/0x7+-parseInt(_0x212c16(0x10c))/0x8*(-parseInt(_0x212c16(0xe5))/0x9)+parseInt(_0x212c16(0x108))/0xa+-parseInt(_0x212c16(0x110))/0xb;if(_0x487bf1===_0x58b48b)break;else _0xe05ee['push'](_0xe05ee['shift']());}catch(_0xf6be3a){_0xe05ee['push'](_0xe05ee['shift']());}}}(_0x15ce,0x70b5f));import{Command as _0x31b3cb}from'ckeditor5/src/core.js';import{CKEditorError as _0x4e34ce,first as _0x537699}from'ckeditor5/src/utils.js';function _0x3803(_0x30d044,_0x4b6ef8){const _0x15ce07=_0x15ce();return _0x3803=function(_0x380324,_0x36a72){_0x380324=_0x380324-0xe3;let _0x45b0cf=_0x15ce07[_0x380324];return _0x45b0cf;},_0x3803(_0x30d044,_0x4b6ef8);}import{AIQuickActionType as _0x16b434}from'./aiquickactionsui.js';function _0x15ce(){const _0x5f23a7=['chat','81zLXyBw','startConversation','78609ypENDO','_handleAIChatAction','REVIEW','actionName','handleAIReviewAction','sendMessage','AIChat','getSelectedBlocks','3426czFLTm','AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','activateTab','setSelection','locale','document','7835CTysAy','prompt','schema','AITabs','ask-ai','CHAT','displayedPrompt','executeAction','log','15259nUoxdo','editor','_expandSelectionIfCollapsed','124HrARJY','model','plugins','_handleAIReviewAction','icon','addSelectionToChatContext','selection','3729540ydVMew','isCollapsed','view','args','492792chhUNO','AIActions','change','ai-quick-actions-plugin-not-found','4603797hJZVOC','type','AIChatController','8hbsSrh','removeSelectionFromChatContext','_handleAIActionsAction','focusPromptInput','getLimitElement','execute','180089KQTjRS','ACTION','get','AIReviewMode','has'];_0x15ce=function(){return _0x5f23a7;};return _0x15ce();}import{getTranslation as _0x12d2fd}from'./utils/common-translations.js';export class AIQuickActionsCommand extends _0x31b3cb{[_0x28761e(0x118)](_0x2b94d7){const _0x1ad0fd=_0x28761e;switch(_0x2b94d7[_0x1ad0fd(0x111)]){case _0x16b434[_0x1ad0fd(0xfa)]:if(!this[_0x1ad0fd(0xff)][_0x1ad0fd(0x103)][_0x1ad0fd(0xe3)](_0x1ad0fd(0xed))){const _0x302b68=_0x12d2fd(this[_0x1ad0fd(0xff)][_0x1ad0fd(0xf3)],_0x1ad0fd(0xf0),_0x1ad0fd(0xed));throw new _0x4e34ce(_0x1ad0fd(0x10f),this[_0x1ad0fd(0xff)],{'errorMessage':_0x302b68});}this[_0x1ad0fd(0xe8)](_0x2b94d7);break;case _0x16b434[_0x1ad0fd(0x11a)]:if(!this[_0x1ad0fd(0xff)][_0x1ad0fd(0x103)][_0x1ad0fd(0xe3)](_0x1ad0fd(0x10d))){const _0x3d37c2=_0x12d2fd(this[_0x1ad0fd(0xff)][_0x1ad0fd(0xf3)],_0x1ad0fd(0xf0),_0x1ad0fd(0x10d));throw new _0x4e34ce(_0x1ad0fd(0x10f),this[_0x1ad0fd(0xff)],{'errorMessage':_0x3d37c2});}this[_0x1ad0fd(0x115)](_0x2b94d7);break;case _0x16b434[_0x1ad0fd(0xe9)]:if(!this[_0x1ad0fd(0xff)][_0x1ad0fd(0x103)][_0x1ad0fd(0xe3)](_0x1ad0fd(0x11c))){const _0x24471a=_0x12d2fd(this[_0x1ad0fd(0xff)][_0x1ad0fd(0xf3)],_0x1ad0fd(0xf0),_0x1ad0fd(0x11c));throw new _0x4e34ce(_0x1ad0fd(0x10f),this[_0x1ad0fd(0xff)],{'errorMessage':_0x24471a});}this[_0x1ad0fd(0x104)](_0x2b94d7);}}async[_0x28761e(0xe8)](_0x5bedfa){const _0x56d24b=_0x28761e,_0x87bdfa=this[_0x56d24b(0xff)][_0x56d24b(0x103)][_0x56d24b(0x11b)](_0x56d24b(0xed)),_0xc769aa=this[_0x56d24b(0xff)][_0x56d24b(0x103)][_0x56d24b(0x11b)](_0x56d24b(0x112));if(this[_0x56d24b(0xff)][_0x56d24b(0x103)][_0x56d24b(0x11b)](_0x56d24b(0xf8))[_0x56d24b(0x10a)][_0x56d24b(0xf1)](_0x56d24b(0xe4)),_0x56d24b(0xf9)===_0x5bedfa['id'])_0xc769aa[_0x56d24b(0x114)](),this[_0x56d24b(0x100)](),await _0x87bdfa[_0x56d24b(0x106)](),_0x87bdfa[_0x56d24b(0x116)]();else await _0x87bdfa[_0x56d24b(0xe6)](),await _0x87bdfa[_0x56d24b(0x106)](),await _0x87bdfa[_0x56d24b(0xec)]({'message':_0x5bedfa[_0x56d24b(0xf6)]||_0x5bedfa[_0x56d24b(0xfb)],'quickActionData':{'id':_0x5bedfa['id'],'displayedPrompt':_0x5bedfa[_0x56d24b(0xfb)]}});}[_0x28761e(0x100)](){const _0x121c25=_0x28761e,_0x9e99c6=this[_0x121c25(0xff)],_0x1ad447=_0x9e99c6[_0x121c25(0x102)][_0x121c25(0xf4)][_0x121c25(0x107)];if(!_0x1ad447[_0x121c25(0x109)])return;const _0x1f33cb=_0x537699(_0x1ad447[_0x121c25(0xee)]())||_0x9e99c6[_0x121c25(0x102)][_0x121c25(0xf7)][_0x121c25(0x117)](_0x1ad447);_0x9e99c6[_0x121c25(0x102)][_0x121c25(0x10e)](_0x315ab9=>{const _0x1eddcc=_0x121c25;_0x315ab9[_0x1eddcc(0xf2)](_0x1f33cb,'in');});}async[_0x28761e(0x115)](_0x148bc0){const _0x5547ed=_0x28761e,_0x4563b2=this[_0x5547ed(0xff)][_0x5547ed(0x103)][_0x5547ed(0x11b)](_0x5547ed(0x10d)),_0x20e862=_0x148bc0[_0x5547ed(0xf6)]?{'userMessage':_0x148bc0[_0x5547ed(0xf6)],'model':_0x148bc0[_0x5547ed(0x102)]}:{'actionName':_0x148bc0[_0x5547ed(0xea)]||_0x148bc0['id'],'args':_0x148bc0[_0x5547ed(0x10b)]};await _0x4563b2[_0x5547ed(0xfc)](_0x20e862,_0x148bc0[_0x5547ed(0xfb)],_0x148bc0[_0x5547ed(0x105)]);}async[_0x28761e(0x104)](_0x36ee0d){const _0x246547=_0x28761e;console[_0x246547(0xfd)](_0x246547(0xeb),_0x36ee0d);}}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
6
|
+
export declare class AIQuickActionsEditing extends Plugin {
|
|
7
|
+
/**
|
|
8
|
+
* @inheritDoc
|
|
9
|
+
*/
|
|
10
|
+
static get pluginName(): "AIQuickActionsEditing";
|
|
11
|
+
/**
|
|
12
|
+
* @inheritDoc
|
|
13
|
+
*/
|
|
14
|
+
static get isOfficialPlugin(): true;
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
static get isPremiumPlugin(): true;
|
|
19
|
+
/**
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
*/
|
|
22
|
+
init(): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x26e072=_0x4811;(function(_0x44d3f9,_0xa25f76){const _0x54153c=_0x4811,_0x599388=_0x44d3f9();while(!![]){try{const _0x54813b=-parseInt(_0x54153c(0x18f))/0x1*(parseInt(_0x54153c(0x19e))/0x2)+parseInt(_0x54153c(0x195))/0x3*(parseInt(_0x54153c(0x196))/0x4)+-parseInt(_0x54153c(0x194))/0x5*(parseInt(_0x54153c(0x1a3))/0x6)+parseInt(_0x54153c(0x18a))/0x7*(-parseInt(_0x54153c(0x18e))/0x8)+parseInt(_0x54153c(0x189))/0x9*(-parseInt(_0x54153c(0x1a1))/0xa)+parseInt(_0x54153c(0x199))/0xb+parseInt(_0x54153c(0x18c))/0xc;if(_0x54813b===_0xa25f76)break;else _0x599388['push'](_0x599388['shift']());}catch(_0x46fb5f){_0x599388['push'](_0x599388['shift']());}}}(_0xfae5,0x752ee));import{Plugin as _0x6b7d81}from'ckeditor5/src/core.js';function _0x4811(_0x53e570,_0x2e92f2){const _0xfae53d=_0xfae5();return _0x4811=function(_0x4811e3,_0x191726){_0x4811e3=_0x4811e3-0x189;let _0x263262=_0xfae53d[_0x4811e3];return _0x263262;},_0x4811(_0x53e570,_0x2e92f2);}import{AIQuickActionsCommand as _0x55e5de}from'./aiquickactionscommand.js';export class AIQuickActionsEditing extends _0x6b7d81{static get[_0x26e072(0x1a5)](){const _0x59899f=_0x26e072;return _0x59899f(0x1a6);}static get[_0x26e072(0x191)](){return!0x0;}static get[_0x26e072(0x19b)](){return!0x0;}[_0x26e072(0x1a0)](){const _0x20b4a2=_0x26e072,_0x31fdf7=this[_0x20b4a2(0x18d)],_0x1ad3f2=new _0x55e5de(this[_0x20b4a2(0x18d)]);if(_0x31fdf7[_0x20b4a2(0x197)][_0x20b4a2(0x18b)](_0x20b4a2(0x19f),_0x1ad3f2),_0x31fdf7[_0x20b4a2(0x190)][_0x20b4a2(0x1a4)](_0x20b4a2(0x198))){const _0x25362f=this[_0x20b4a2(0x18d)][_0x20b4a2(0x190)][_0x20b4a2(0x19c)](_0x20b4a2(0x198));_0x31fdf7[_0x20b4a2(0x192)][_0x20b4a2(0x19a)][_0x20b4a2(0x19d)]['on'](_0x20b4a2(0x1a7),(_0x4c1eeb,_0x97b7c2)=>{const _0x2976ba=_0x20b4a2;_0x97b7c2[_0x2976ba(0x193)]&&_0x25362f[_0x2976ba(0x1a2)]();});}}}function _0xfae5(){const _0x2673ab=['plugins','isOfficialPlugin','model','directChange','1453055UyUCkm','1902741kKwLRm','4PtXuKG','commands','AIChat','1131119kpmBBJ','document','isPremiumPlugin','get','selection','1336748EWwBGv','aiQuickAction','init','44900sVsxbY','removeSelectionFromChatContext','12dyKAom','has','pluginName','AIQuickActionsEditing','change:range','360NcmdOn','5700198gbSJSX','add','23836992uCqHFR','editor','8dncgYR','1txsxEO'];_0xfae5=function(){return _0x2673ab;};return _0xfae5();}
|
|
@@ -0,0 +1,150 @@
|
|
|
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 { Plugin } from 'ckeditor5/src/core.js';
|
|
6
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
7
|
+
import { BalloonToolbar } from 'ckeditor5/src/ui.js';
|
|
8
|
+
import '../../theme/aiquickactions/aiquickactions.css';
|
|
9
|
+
/**
|
|
10
|
+
* Defines the different types of AI quick actions available in the editor.
|
|
11
|
+
* Each type determines how the action will be presented and executed.
|
|
12
|
+
*/
|
|
13
|
+
export declare enum AIQuickActionType {
|
|
14
|
+
/**
|
|
15
|
+
* Actions that open the AI Chat interface for interactive conversations.
|
|
16
|
+
*/
|
|
17
|
+
CHAT = "CHAT",
|
|
18
|
+
/**
|
|
19
|
+
* Actions that display results in a balloon popup for quick inline operations.
|
|
20
|
+
*/
|
|
21
|
+
ACTION = "ACTION",
|
|
22
|
+
/**
|
|
23
|
+
* Actions that open the AI Review interface for detailed content analysis.
|
|
24
|
+
*/
|
|
25
|
+
REVIEW = "REVIEW"
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Maps AI quick action types to their corresponding CKEditor plugin names.
|
|
29
|
+
* Used for checking plugin availability and determining which actions to display.
|
|
30
|
+
*/
|
|
31
|
+
export declare enum AIQuickActionTypeToPluginName {
|
|
32
|
+
CHAT = "AIChat",
|
|
33
|
+
ACTION = "AIActions",
|
|
34
|
+
REVIEW = "AIReviewMode"
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* UI plugin for AI Quick Actions that provides a set of predefined AI-powered tools.
|
|
38
|
+
*
|
|
39
|
+
* This plugin manages the creation and configuration of AI quick action buttons and dropdowns
|
|
40
|
+
* in the editor's toolbar. It handles both individual actions and grouped actions, automatically
|
|
41
|
+
* filtering based on available plugins and creating the appropriate UI components.
|
|
42
|
+
*
|
|
43
|
+
* The plugin supports three types of AI actions:
|
|
44
|
+
* - AICHAT: Opens interactive AI chat interface
|
|
45
|
+
* - AIACTIONS: Shows results in inline balloon popups
|
|
46
|
+
* - REVIEW: Opens detailed AI review interface
|
|
47
|
+
*/
|
|
48
|
+
export declare class AIQuickActionsUI extends Plugin {
|
|
49
|
+
/**
|
|
50
|
+
* @inheritDoc
|
|
51
|
+
*/
|
|
52
|
+
static get requires(): readonly [typeof BalloonToolbar];
|
|
53
|
+
/**
|
|
54
|
+
* @inheritDoc
|
|
55
|
+
*/
|
|
56
|
+
static get pluginName(): "AIQuickActionsUI";
|
|
57
|
+
/**
|
|
58
|
+
* @inheritDoc
|
|
59
|
+
*/
|
|
60
|
+
static get isOfficialPlugin(): true;
|
|
61
|
+
/**
|
|
62
|
+
* @inheritDoc
|
|
63
|
+
*/
|
|
64
|
+
static get isPremiumPlugin(): true;
|
|
65
|
+
/**
|
|
66
|
+
* Initializes the AI Quick Actions UI plugin.
|
|
67
|
+
*
|
|
68
|
+
* Sets up the default quick actions configuration and creates all necessary
|
|
69
|
+
* UI components and commands for the quick actions functionality.
|
|
70
|
+
*
|
|
71
|
+
* @inheritDoc
|
|
72
|
+
*/
|
|
73
|
+
init(): void;
|
|
74
|
+
/**
|
|
75
|
+
* Returns the default quick actions configuration.
|
|
76
|
+
*
|
|
77
|
+
* @param locale The editor's locale for text translation
|
|
78
|
+
* @returns Array of quick action definitions and groups
|
|
79
|
+
*/
|
|
80
|
+
static getDefaultQuickActions(locale: Locale): Array<AIQuickActionsGroupDefinition | AIQuickActionDefinition>;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Defines a group of related AI quick actions that appear together in a dropdown.
|
|
84
|
+
*
|
|
85
|
+
* Groups allow organizing multiple related actions under a single menu item,
|
|
86
|
+
* such as "Change Tone" containing "More Casual", "More Professional", etc.
|
|
87
|
+
*/
|
|
88
|
+
export type AIQuickActionsGroupDefinition = {
|
|
89
|
+
/**
|
|
90
|
+
* Unique identifier for the action group.
|
|
91
|
+
*/
|
|
92
|
+
id: string;
|
|
93
|
+
/**
|
|
94
|
+
* Display label for the group.
|
|
95
|
+
*/
|
|
96
|
+
label: string;
|
|
97
|
+
/**
|
|
98
|
+
* Array of actions contained within this group.
|
|
99
|
+
*/
|
|
100
|
+
actions: Array<AIQuickActionDefinition>;
|
|
101
|
+
/**
|
|
102
|
+
* Optional icon to display for the group.
|
|
103
|
+
*/
|
|
104
|
+
icon?: string;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* Defines an individual AI quick action that can be executed by the user.
|
|
108
|
+
*
|
|
109
|
+
* Actions can exist independently or as part of a group. Each action specifies
|
|
110
|
+
* its type to determine the execution interface (chat, balloon, or review).
|
|
111
|
+
*/
|
|
112
|
+
export type AIQuickActionDefinition = {
|
|
113
|
+
/**
|
|
114
|
+
* Unique identifier for the action.
|
|
115
|
+
*/
|
|
116
|
+
id: string;
|
|
117
|
+
/**
|
|
118
|
+
* Display label for the action.
|
|
119
|
+
*/
|
|
120
|
+
displayedPrompt: string;
|
|
121
|
+
/**
|
|
122
|
+
* Type determining how the action will be executed.
|
|
123
|
+
*/
|
|
124
|
+
type: AIQuickActionType;
|
|
125
|
+
/**
|
|
126
|
+
* Optional icon to display for the action.
|
|
127
|
+
*/
|
|
128
|
+
icon?: string;
|
|
129
|
+
/**
|
|
130
|
+
* Optional action name to be used for actions with args.
|
|
131
|
+
*/
|
|
132
|
+
actionName?: string;
|
|
133
|
+
/**
|
|
134
|
+
* Optional parameters for the call.
|
|
135
|
+
*/
|
|
136
|
+
args?: Record<string, string>;
|
|
137
|
+
/**
|
|
138
|
+
* Optional predefined prompt text for the action.
|
|
139
|
+
*/
|
|
140
|
+
prompt?: string;
|
|
141
|
+
/**
|
|
142
|
+
* Optional model to be used.
|
|
143
|
+
*/
|
|
144
|
+
model?: string;
|
|
145
|
+
/**
|
|
146
|
+
* Reference to parent group (if action is part of a group).
|
|
147
|
+
* Excludes the actions array to prevent circular references.
|
|
148
|
+
*/
|
|
149
|
+
parent?: Omit<AIQuickActionsGroupDefinition, 'actions'>;
|
|
150
|
+
};
|
|
@@ -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 _0x5e0868=_0xae8e;function _0xae8e(_0x4b5b32,_0x9ab965){const _0x9419af=_0x9419();return _0xae8e=function(_0xae8e6f,_0x19edde){_0xae8e6f=_0xae8e6f-0xa9;let _0x4901e5=_0x9419af[_0xae8e6f];return _0x4901e5;},_0xae8e(_0x4b5b32,_0x9ab965);}(function(_0x101232,_0x14b403){const _0x4ff3a6=_0xae8e,_0x5af25f=_0x101232();while(!![]){try{const _0x1ffedc=parseInt(_0x4ff3a6(0xc4))/0x1+-parseInt(_0x4ff3a6(0x11f))/0x2+-parseInt(_0x4ff3a6(0x10f))/0x3*(parseInt(_0x4ff3a6(0xe5))/0x4)+parseInt(_0x4ff3a6(0x10a))/0x5*(parseInt(_0x4ff3a6(0xd6))/0x6)+-parseInt(_0x4ff3a6(0xc1))/0x7*(parseInt(_0x4ff3a6(0xe0))/0x8)+-parseInt(_0x4ff3a6(0xc2))/0x9*(parseInt(_0x4ff3a6(0xfd))/0xa)+parseInt(_0x4ff3a6(0x118))/0xb;if(_0x1ffedc===_0x14b403)break;else _0x5af25f['push'](_0x5af25f['shift']());}catch(_0x4c2089){_0x5af25f['push'](_0x5af25f['shift']());}}}(_0x9419,0x7d36a));import{IconAIAdjustLength as _0x274000,IconAIAskAI as _0x39117d,IconAIChangeTone as _0x3e0f57,IconAIChatCommands as _0x53dc4e,IconAIContinueWriting as _0x22f19b,IconAIGrammarCheck as _0x36ac01,IconAIImproveWriting as _0x2ee413,IconAIOther as _0xc80403,IconAIQuickActions as _0x505405,IconAITranslate as _0x5d5f2b}from'@ckeditor/ckeditor5-icons';import{Plugin as _0x1540f8}from'ckeditor5/src/core.js';import{getTranslation as _0x251cd9}from'./utils/common-translations.js';import{aiQuickActionsDropdownCreator as _0x400983}from'./ui/aiquickactionsdropdowncreator.js';import{aiQuickActionsButtonCreator as _0x358021}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0x18b454,BalloonToolbar as _0x548310}from'ckeditor5/src/ui.js';import'../../theme/aiquickactions/aiquickactions.css';const Ft=_0x5e0868(0xb5),zt=_0x5e0868(0xa9),Wt=_0x5e0868(0x111);export var AIQuickActionType;!function(_0x5e1fea){const _0x235d1a=_0x5e0868;_0x5e1fea[_0x235d1a(0xee)]=_0x235d1a(0xee),_0x5e1fea[_0x235d1a(0xbc)]=_0x235d1a(0xbc),_0x5e1fea[_0x235d1a(0xf0)]=_0x235d1a(0xf0);}(AIQuickActionType||(AIQuickActionType={}));function _0x9419(){const _0xb325d4=['457046RItBZB','other','AI_QUICK_ACTIONS_IMPROVE_WRITING','config','italian','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20summarize\x20its\x20content\x20in\x20a\x20few\x20sentences,\x20keeping\x20only\x20the\x20essential\x20meaning.</task><rules>1.\x20Your\x20summary\x20should\x20be\x20short\x20and\x20clear:-\x20Aim\x20for\x202–4\x20sentences\x20unless\x20the\x20text\x20is\x20extremely\x20short.-\x20Focus\x20on\x20capturing\x20the\x20main\x20idea(s)\x20without\x20unnecessary\x20detail.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20summary\x20style:-\x20If\x20it\x20is\x20descriptive\x20condense\x20the\x20description\x20into\x20its\x20core\x20idea.-\x20If\x20it\x20is\x20argumentative\x20or\x20opinion-based\x20summarize\x20the\x20main\x20claim\x20and\x20reasoning\x20neutrally.-\x20If\x20it\x20is\x20narrative/story-like\x20capture\x20the\x20main\x20event\x20or\x20outcome\x20without\x20side\x20details.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20summarize\x20what\x20the\x20data\x20shows\x20in\x20plain\x20language.-\x20If\x20it\x20is\x20instructional\x20restate\x20the\x20overall\x20purpose\x20of\x20the\x20steps\x20without\x20listing\x20every\x20step.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20provide\x20a\x20general\x20concise\x20summary.3.\x20Provide\x20context\x20if\x20necessary\x20for\x20clarity:-\x20Mention\x20the\x20subject\x20or\x20topic\x20explicitly\x20so\x20the\x20summary\x20can\x20stand\x20alone.4.\x20Do\x20not\x20simply\x20copy\x20sentences\x20from\x20the\x20original\x20text\x20—\x20rephrase\x20in\x20plain\x20language.5.\x20Avoid\x20adding\x20new\x20information\x20or\x20interpretation\x20not\x20present\x20in\x20the\x20text.6.\x20Summarize\x20in\x20a\x20way\x20that\x20would\x20make\x20sense\x20to\x20someone\x20who\x20has\x20not\x20read\x20the\x20original\x20text.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20summary.8.\x20Your\x20summary\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20summary.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','ai.quickActions.removeCommands','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','length','ask-ai','make-tone-professional','isPremiumPlugin','highlight-key-points','adjust-length','translate-to-english','_initializeQuickActionsComponentsAndCommands','AI_QUICK_ACTIONS_MORE_DIRECT','<task>For\x20given\x20selected\x20part\x20of\x20HTML\x20document\x20you\x20must\x20explain\x20the\x20meaning\x20of\x20it\x27s\x20content\x20clearly\x20and\x20in\x20plain\x20language.</task><rules>1.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is:-\x20If\x20it\x20looks\x20like\x20a\x20definition\x20explain\x20the\x20concept\x20in\x20simple\x20terms.-\x20If\x20it\x20looks\x20like\x20a\x20description\x20clarify\x20what\x20it\x20is\x20describing\x20and\x20why\x20it\x20matters.-\x20If\x20it\x20contains\x20technical\x20terms\x20or\x20jargon\x20break\x20them\x20down\x20into\x20everyday\x20language.-\x20If\x20it\x20looks\x20instructional\x20restate\x20as\x20clear\x20steps\x20someone\x20can\x20follow.-\x20If\x20it\x20provides\x20examples\x20explain\x20what\x20the\x20example\x20shows\x20and\x20why\x20it\x27s\x20relevant.-\x20If\x20it\x20presents\x20an\x20argument\x20or\x20claim\x20restate\x20the\x20claim\x20neutrally\x20and\x20explain\x20its\x20purpose.-\x20If\x20it\x20is\x20narrative/story-like\x20explain\x20what\x20event\x20or\x20situation\x20is\x20being\x20described.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20explain\x20what\x20the\x20data\x20indicates.-\x20If\x20it\x20is\x20a\x20quotation\x20explain\x20the\x20meaning\x20of\x20the\x20quote\x20in\x20context.-\x20If\x20it\x20compares/contrasts\x20things\x20explain\x20the\x20key\x20differences\x20or\x20similarities\x20simply.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20give\x20a\x20clear,\x20plain-language\x20explanation\x20of\x20its\x20meaning,\x20focusing\x20on\x20usefulness.2.\x20Provide\x20context\x20if\x20the\x20meaning\x20could\x20be\x20unclear\x20without\x20it.\x20(e.g.,\x20explain\x20where\x20such\x20a\x20term\x20might\x20be\x20used,\x20or\x20why\x20it\x20is\x20important).3.\x20Keep\x20the\x20explanation\x20short\x20but\x20complete\x20(2–5\x20sentences).Avoid\x20overly\x20technical\x20detail\x20unless\x20it\x20is\x20necessary\x20for\x20understanding.4.\x20Do\x20not\x20simply\x20repeat\x20the\x20original\x20text\x20—\x20restate\x20and\x20expand\x20it\x20in\x20plain\x20words.5.\x20If\x20possible,\x20add\x20a\x20short\x20example\x20or\x20analogy\x20to\x20make\x20it\x20easier\x20to\x20understand.6.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20explanation.7.\x20Your\x20explanation\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20explanation.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','AI_QUICK_ACTIONS_CHANGE_TONE','AIQuickActionsUI','_getDefaultAndCustomActions','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','add','make-tone-friendly','ACTION','requires','find','AI_QUICK_ACTIONS_CHAT_COMMANDS','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','1694OrMaLH','18EyFzuu','translate-to-chinese','80207PKHabC','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','_shouldIncludeAction','_prepareQuickActionsDefinition','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','AI_QUICK_ACTIONS_MAKE_LONGER','AI_QUICK_ACTIONS_MORE_FRIENDLY','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','AI_QUICK_ACTIONS_ADJUST_LENGTH','fix-grammar','make-longer','chat-commands','locale','filter','summarize','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','pluginName','English','1524816YJvrsm','includes','AI_QUICK_ACTIONS_MORE_CASUAL','AI_QUICK_ACTIONS_OTHER','explain','get','improve-writing','english','type','push','19160CfQDAh','AI_QUICK_ACTIONS_EXPLAIN','AI_QUICK_ACTIONS_TRANSLATE','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','AIReviewMode','20StupGE','has','translate-to-japanese','_initializeQuickActionsDropdown','forEach','attachToDom','portuguese','_initializeQuickActionsComponents','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','CHAT','make-tone-confident','REVIEW','translate','DisplayNames','AI_QUICK_ACTIONS_MAKE_SHORTER','japanese','continue','make-tone-casual','AI_QUICK_ACTIONS_HEADING','replace','translate-to-french','translate-to-russian','french','translate-to-portuguese','727480npGZdK','init','AIActions','actions','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','korean','chinese','editor','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','AI_QUICK_ACTIONS_CONTINUE_WRITING','AIChat','translate-to-korean','translate-to-italian','10vuHVGo','_quickActionsDefinition','uiLanguage','componentFactory','AI_QUICK_ACTIONS_ASK_AI','578373eaNrUg','language','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20extract\x20and\x20present\x20the\x20key\x20points\x20from\x20its\x20content.</task><rules>1.\x20Present\x20the\x20output\x20as\x20a\x20clear,\x20structured\x20list\x20(bullets\x20or\x20numbered).-\x20Each\x20point\x20should\x20be\x20concise\x20(one\x20sentence\x20or\x20less).-\x20Do\x20not\x20merge\x20distinct\x20ideas\x20into\x20one\x20bullet.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20extraction\x20style:-\x20If\x20it\x20is\x20descriptive\x20capture\x20the\x20main\x20attributes\x20or\x20features.-\x20If\x20it\x20is\x20argumentative\x20extract\x20the\x20main\x20claim\x20and\x20supporting\x20reasons\x20separately.-\x20If\x20it\x20is\x20narrative/story-like\x20extract\x20the\x20main\x20events\x20in\x20chronological\x20order.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20highlight\x20the\x20most\x20important\x20facts\x20or\x20numbers.-\x20If\x20it\x20is\x20instructional\x20list\x20the\x20steps\x20or\x20main\x20actions\x20in\x20simplified\x20form.-\x20If\x20it\x20provides\x20comparisons\x20extract\x20the\x20contrasted\x20items\x20and\x20their\x20differences/similarities.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20category\x20above\x20extract\x20the\x20main\x20ideas\x20in\x20plain,\x20short\x20statements.3.\x20Keep\x20the\x20list\x20between\x203–7\x20items\x20where\x20possible.-\x20If\x20the\x20text\x20is\x20very\x20short,\x20fewer\x20items\x20are\x20fine.-\x20If\x20it\x20is\x20very\x20long,\x20focus\x20on\x20the\x20most\x20important\x20ideas\x20only.4.\x20Do\x20not\x20copy\x20long\x20text\x20fragments\x20—\x20restate\x20in\x20simple\x20words.5.\x20Do\x20not\x20add\x20interpretation,\x20evaluation,\x20or\x20commentary\x20beyond\x20the\x20text.6.\x20Ensure\x20the\x20list\x20can\x20stand\x20alone\x20without\x20requiring\x20the\x20reader\x20to\x20see\x20the\x20original\x20document.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20key\x20points.8.\x20Your\x20key\x20points\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20extracted\x20key\x20points.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','make-tone-direct','map','isOfficialPlugin','change-tone','ai.quickActions.extraCommands','AI_QUICK_ACTIONS_SUMMARIZE','20261549RXpUDU','make-shorter','AI_QUICK_ACTIONS_MORE_CONFIDENT','russian','aiQuickActions','getDefaultQuickActions','plugins'];_0x9419=function(){return _0xb325d4;};return _0x9419();}export var AIQuickActionTypeToPluginName;!function(_0x285375){const _0x17912a=_0x5e0868;_0x285375[_0x17912a(0xee)]=_0x17912a(0x107),_0x285375[_0x17912a(0xbc)]=_0x17912a(0xff),_0x285375[_0x17912a(0xf0)]=_0x17912a(0xe4);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));export class AIQuickActionsUI extends _0x1540f8{static get[_0x5e0868(0xbd)](){return[_0x548310];}static get[_0x5e0868(0xd4)](){const _0xd1ae8c=_0x5e0868;return _0xd1ae8c(0xb7);}static get[_0x5e0868(0x114)](){return!0x0;}static get[_0x5e0868(0xaf)](){return!0x0;}[_0x5e0868(0xfe)](){const _0x490086=_0x5e0868;this[_0x490086(0xc7)](this[_0x490086(0xb8)]()),this[_0x490086(0xb3)]();}static[_0x5e0868(0x11d)](_0x5ec5f6){return function(_0x4c5eda){const _0x1a6508=_0xae8e,_0x4aa483=new Intl[(_0x1a6508(0xf2))](['en'],{'type':_0x1a6508(0x110)})['of'](_0x4c5eda[_0x1a6508(0x10c)]),_0x22744d=_0x4aa483||_0x1a6508(0xd5),_0x5e3ea7=[{'id':_0x1a6508(0xad),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0x10e)),'type':AIQuickActionType[_0x1a6508(0xee)],'icon':_0x39117d},{'id':_0x1a6508(0xcf),'label':_0x251cd9(_0x4c5eda,_0x1a6508(0xbf)),'icon':_0x53dc4e,'actions':[{'id':_0x1a6508(0xda),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xe1)),'prompt':Ft[_0x1a6508(0xf8)]('%0',_0x22744d),'type':AIQuickActionType[_0x1a6508(0xee)]},{'id':_0x1a6508(0xd2),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0x117)),'prompt':zt[_0x1a6508(0xf8)]('%0',_0x22744d),'type':AIQuickActionType[_0x1a6508(0xee)]},{'id':_0x1a6508(0xb0),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xd3)),'prompt':Wt[_0x1a6508(0xf8)]('%0',_0x22744d),'type':AIQuickActionType[_0x1a6508(0xee)]}]},{'id':_0x1a6508(0xdc),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0x121)),'type':AIQuickActionType[_0x1a6508(0xbc)],'icon':_0x2ee413},{'id':_0x1a6508(0xf5),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0x106)),'type':AIQuickActionType[_0x1a6508(0xbc)],'icon':_0x22f19b},{'id':_0x1a6508(0xcd),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xc8)),'type':AIQuickActionType[_0x1a6508(0xbc)],'icon':_0x36ac01},{'id':_0x1a6508(0xb1),'label':_0x251cd9(_0x4c5eda,_0x1a6508(0xcc)),'icon':_0x274000,'actions':[{'id':_0x1a6508(0x119),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xf3)),'type':AIQuickActionType[_0x1a6508(0xbc)]},{'id':_0x1a6508(0xce),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xc9)),'type':AIQuickActionType[_0x1a6508(0xbc)]}]},{'id':_0x1a6508(0x115),'label':_0x251cd9(_0x4c5eda,_0x1a6508(0xb6)),'icon':_0x3e0f57,'actions':[{'id':_0x1a6508(0xf6),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xd8)),'type':AIQuickActionType[_0x1a6508(0xbc)]},{'id':_0x1a6508(0x112),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xb4)),'type':AIQuickActionType[_0x1a6508(0xbc)]},{'id':_0x1a6508(0xbb),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xca)),'type':AIQuickActionType[_0x1a6508(0xbc)]},{'id':_0x1a6508(0xef),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0x11a)),'type':AIQuickActionType[_0x1a6508(0xbc)]},{'id':_0x1a6508(0xae),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xc5)),'type':AIQuickActionType[_0x1a6508(0xbc)]}]},{'id':_0x1a6508(0xf1),'label':_0x251cd9(_0x4c5eda,_0x1a6508(0xe2)),'icon':_0x5d5f2b,'actions':[{'id':_0x1a6508(0xb2),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xab)),'type':AIQuickActionType[_0x1a6508(0xbc)],'actionName':_0x1a6508(0xf1),'args':{'language':_0x1a6508(0xdd)}},{'id':_0x1a6508(0xc3),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xcb)),'type':AIQuickActionType[_0x1a6508(0xbc)],'actionName':_0x1a6508(0xf1),'args':{'language':_0x1a6508(0x103)}},{'id':_0x1a6508(0xf9),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0x101)),'type':AIQuickActionType[_0x1a6508(0xbc)],'actionName':_0x1a6508(0xf1),'args':{'language':_0x1a6508(0xfb)}},{'id':_0x1a6508(0xe7),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0x105)),'type':AIQuickActionType[_0x1a6508(0xbc)],'actionName':_0x1a6508(0xf1),'args':{'language':_0x1a6508(0xf4)}},{'id':_0x1a6508(0xfc),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xe3)),'type':AIQuickActionType[_0x1a6508(0xbc)],'actionName':_0x1a6508(0xf1),'args':{'language':_0x1a6508(0xeb)}},{'id':_0x1a6508(0x108),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xc0)),'type':AIQuickActionType[_0x1a6508(0xbc)],'actionName':_0x1a6508(0xf1),'args':{'language':_0x1a6508(0x102)}},{'id':_0x1a6508(0x109),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xed)),'type':AIQuickActionType[_0x1a6508(0xbc)],'actionName':_0x1a6508(0xf1),'args':{'language':_0x1a6508(0x123)}},{'id':_0x1a6508(0xfa),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xb9)),'type':AIQuickActionType[_0x1a6508(0xbc)],'actionName':_0x1a6508(0xf1),'args':{'language':_0x1a6508(0x11b)}}]},{'id':_0x1a6508(0x120),'label':_0x251cd9(_0x4c5eda,_0x1a6508(0xd9)),'icon':_0xc80403,'actions':[]}];return _0x5e3ea7;}(_0x5ec5f6);}[_0x5e0868(0xb8)](){const _0xb0d515=_0x5e0868,_0x16c4f3=AIQuickActionsUI[_0xb0d515(0x11d)](this[_0xb0d515(0x104)][_0xb0d515(0xd0)]),_0x52f186=(this[_0xb0d515(0x104)][_0xb0d515(0x122)][_0xb0d515(0xdb)](_0xb0d515(0x116))||[])[_0xb0d515(0x113)](_0xf3eed9=>({..._0xf3eed9,'icon':void 0x0}));return _0x16c4f3[_0xb0d515(0xbe)](_0x353a64=>_0xb0d515(0x120)===_0x353a64['id'])[_0xb0d515(0x100)][_0xb0d515(0xdf)](..._0x52f186),_0x16c4f3;}[_0x5e0868(0xb3)](){const _0x533e6b=_0x5e0868,_0x3297be=new _0x18b454(this[_0x533e6b(0x104)][_0x533e6b(0xd0)]);_0x3297be[_0x533e6b(0xea)](),this[_0x533e6b(0xe8)](_0x3297be),this[_0x533e6b(0xec)](_0x3297be);}[_0x5e0868(0xe8)](_0x45ffed){const _0x479e15=_0x5e0868;this[_0x479e15(0x104)]['ui'][_0x479e15(0x10d)][_0x479e15(0xba)](_0x479e15(0x11c),_0x400983(this[_0x479e15(0x104)],this[_0x479e15(0x10b)],{'icon':_0x505405,'label':_0x251cd9(this[_0x479e15(0x104)][_0x479e15(0xd0)],_0x479e15(0xf7))},_0x45ffed));}[_0x5e0868(0xc7)](_0xeba46){const _0x40be7c=_0x5e0868;this[_0x40be7c(0x10b)]=_0xeba46[_0x40be7c(0x113)](_0x57a3c7=>{const _0x8d2902=_0x40be7c;if(_0x8d2902(0x100)in _0x57a3c7){const _0x2726e9=_0x57a3c7;return{..._0x2726e9,'actions':_0x2726e9[_0x8d2902(0x100)][_0x8d2902(0x113)](_0x2f9416=>{const {actions:_0x39fe94,..._0x3f8313}=_0x2726e9;return{..._0x2f9416,'parent':_0x3f8313};})[_0x8d2902(0xd1)](_0x3a51ee=>this[_0x8d2902(0xc6)](_0x3a51ee))};}return _0x57a3c7;})[_0x40be7c(0xd1)](_0x1dcb5b=>_0x40be7c(0x100)in _0x1dcb5b?_0x1dcb5b[_0x40be7c(0x100)][_0x40be7c(0xac)]>0x0:this[_0x40be7c(0xc6)](_0x1dcb5b));}[_0x5e0868(0xc6)](_0x231e09){const _0x91ca37=_0x5e0868,_0x270242=this[_0x91ca37(0x104)][_0x91ca37(0x122)][_0x91ca37(0xdb)](_0x91ca37(0xaa))||[];return this[_0x91ca37(0x104)][_0x91ca37(0x11e)][_0x91ca37(0xe6)](AIQuickActionTypeToPluginName[_0x231e09[_0x91ca37(0xde)]])&&!_0x270242[_0x91ca37(0xd7)](_0x231e09['id']);}[_0x5e0868(0xec)](_0x34279a){const _0x173526=_0x5e0868;this[_0x173526(0x10b)][_0x173526(0xe9)](_0x32e7a9=>{const _0x2e80d1=_0x173526;if(_0x2e80d1(0x100)in _0x32e7a9){const _0x5dbd71=_0x400983(this[_0x2e80d1(0x104)],_0x32e7a9[_0x2e80d1(0x100)],_0x32e7a9,_0x34279a);this[_0x2e80d1(0x104)]['ui'][_0x2e80d1(0x10d)][_0x2e80d1(0xba)](_0x32e7a9['id'],_0x5dbd71),_0x32e7a9[_0x2e80d1(0x100)][_0x2e80d1(0xe9)](_0x5b6527=>{const _0x5ad369=_0x2e80d1,_0x21369a=_0x358021(this[_0x5ad369(0x104)],_0x5b6527);this[_0x5ad369(0x104)]['ui'][_0x5ad369(0x10d)][_0x5ad369(0xba)](_0x5b6527['id'],_0x21369a);});}else{const _0x36f32c=_0x358021(this[_0x2e80d1(0x104)],_0x32e7a9);this[_0x2e80d1(0x104)]['ui'][_0x2e80d1(0x10d)][_0x2e80d1(0xba)](_0x32e7a9['id'],_0x36f32c);}});}}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aiquickactions/ui/aiquickactionsbuttoncreator
|
|
7
|
+
*/
|
|
8
|
+
import { type Editor } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { ButtonView } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import { type AIQuickActionDefinition } from '../aiquickactionsui.js';
|
|
11
|
+
/**
|
|
12
|
+
* Creates a button factory function for AI Quick Actions.
|
|
13
|
+
*
|
|
14
|
+
* This function returns a factory that creates ButtonView instances for individual AI quick actions.
|
|
15
|
+
* Each button is configured with the action's properties (label, icon, type) and sets up the
|
|
16
|
+
* execution logic that triggers the AI command when clicked.
|
|
17
|
+
*
|
|
18
|
+
* The button automatically:
|
|
19
|
+
* - Uses the action's icon or falls back to parent group icon or default icon
|
|
20
|
+
* - Focuses the editor when executed
|
|
21
|
+
* - Hides any open balloon toolbar
|
|
22
|
+
* - Executes the aiQuickActions command with the action details
|
|
23
|
+
*
|
|
24
|
+
* @param editor The CKEditor instance that will contain the button
|
|
25
|
+
* @param action The AI quick action definition containing configuration
|
|
26
|
+
* @param withText Whether to show the text label on the button
|
|
27
|
+
* @param withIcon Whether to show the icon on the button
|
|
28
|
+
* @returns Factory function that creates a ButtonView instance
|
|
29
|
+
*/
|
|
30
|
+
export declare function aiQuickActionsButtonCreator(editor: Editor, action: AIQuickActionDefinition, withText?: boolean, withIcon?: boolean): () => ButtonView;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x4e73(_0x44e701,_0x294cc7){const _0x5ec835=_0x5ec8();return _0x4e73=function(_0x4e73b7,_0x223dff){_0x4e73b7=_0x4e73b7-0xe5;let _0x5539bb=_0x5ec835[_0x4e73b7];return _0x5539bb;},_0x4e73(_0x44e701,_0x294cc7);}function _0x5ec8(){const _0x233edf=['1013132JfhUWd','commands','icon','focus','2200644tSiwlv','38810eHwgTs','extendTemplate','displayedPrompt','menuitem','execute','5kFNfSS','set','parent','3407aQiEZB','869019PCOeQg','19831BGMfLy','200vUGxQi','bindTemplate','view','locale','editing','187zVbDBh','152QewQCg','207546QdjbiR','aiQuickAction'];_0x5ec8=function(){return _0x233edf;};return _0x5ec8();}(function(_0x2cb3e3,_0x3d7563){const _0x3389df=_0x4e73,_0xe86b70=_0x2cb3e3();while(!![]){try{const _0x213223=parseInt(_0x3389df(0xf1))/0x1*(parseInt(_0x3389df(0xfa))/0x2)+parseInt(_0x3389df(0xf2))/0x3+-parseInt(_0x3389df(0xfd))/0x4+parseInt(_0x3389df(0xee))/0x5*(-parseInt(_0x3389df(0xfb))/0x6)+parseInt(_0x3389df(0xf3))/0x7*(parseInt(_0x3389df(0xf4))/0x8)+-parseInt(_0x3389df(0xe8))/0x9+parseInt(_0x3389df(0xe9))/0xa*(parseInt(_0x3389df(0xf9))/0xb);if(_0x213223===_0x3d7563)break;else _0xe86b70['push'](_0xe86b70['shift']());}catch(_0x41c2e6){_0xe86b70['push'](_0xe86b70['shift']());}}}(_0x5ec8,0x255b9));import{ButtonView as _0x1ca61a}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0xb22ab4}from'@ckeditor/ckeditor5-icons';export function aiQuickActionsButtonCreator(_0xe214f4,_0x4febe1,_0x1920e4=!0x1,_0x123434=!0x0){return()=>{const _0x7424b2=_0x4e73,_0x4961c9=_0xe214f4[_0x7424b2(0xf7)],_0x4eb19b=new _0x1ca61a(_0x4961c9),_0x3d5243=_0x4eb19b[_0x7424b2(0xf5)];_0x4eb19b[_0x7424b2(0xea)]({'on':{'mouseenter':_0x3d5243['to'](()=>{const _0xf0978f=_0x7424b2;_0x4eb19b[_0xf0978f(0xe7)]();})}});const _0x12a190=_0x4febe1[_0x7424b2(0xe6)]??_0x4febe1[_0x7424b2(0xf0)]?.[_0x7424b2(0xe6)];return _0x4eb19b[_0x7424b2(0xef)]({'label':_0x4febe1[_0x7424b2(0xeb)],'withText':_0x1920e4,'role':_0x7424b2(0xec),'icon':_0x123434?_0x12a190??_0xb22ab4:void 0x0,'tooltip':!_0x1920e4}),_0x4eb19b['on'](_0x7424b2(0xed),()=>{const _0x118762=_0x7424b2;_0xe214f4[_0x118762(0xf8)][_0x118762(0xf6)][_0x118762(0xe7)](),_0xe214f4[_0x118762(0xe5)][_0x118762(0xed)](_0x118762(0xfc),_0x4febe1);}),_0x4eb19b;};}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aiquickactions/ui/aiquickactionsview
|
|
7
|
+
*/
|
|
8
|
+
import { type Editor } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { View, type BodyCollection, type DropdownView, type ViewWithFocusCycler, FocusCycler } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import { type AIQuickActionDefinition, type AIQuickActionsGroupDefinition } from '../aiquickactionsui.js';
|
|
11
|
+
import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils.js';
|
|
12
|
+
/**
|
|
13
|
+
* The content view for AI Quick Actions dropdown that renders a structured list of AI commands.
|
|
14
|
+
*
|
|
15
|
+
* This class manages the complete UI for AI Quick Actions, including:
|
|
16
|
+
* - Individual action buttons
|
|
17
|
+
* - Grouped actions with nested menus
|
|
18
|
+
* - Focus management and keyboard navigation
|
|
19
|
+
* - Hover-based menu interactions
|
|
20
|
+
* - Nested panel positioning and visibility
|
|
21
|
+
*
|
|
22
|
+
* The view supports both flat actions and hierarchical action groups with nested menus
|
|
23
|
+
* that appear on hover. It handles proper focus cycling, accessibility roles, and
|
|
24
|
+
* manages the lifecycle of nested balloon panels.
|
|
25
|
+
*/
|
|
26
|
+
export declare class AIQuickActionsDropdownContentView extends View implements ViewWithFocusCycler {
|
|
27
|
+
/**
|
|
28
|
+
* Tracks information about DOM focus in the form.
|
|
29
|
+
*/
|
|
30
|
+
readonly focusTracker: FocusTracker;
|
|
31
|
+
/**
|
|
32
|
+
* An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
|
|
33
|
+
*/
|
|
34
|
+
readonly keystrokes: KeystrokeHandler;
|
|
35
|
+
/**
|
|
36
|
+
* Helps cycling over {@link #_focusables} in the form.
|
|
37
|
+
*/
|
|
38
|
+
readonly focusCycler: FocusCycler;
|
|
39
|
+
constructor(editor: Editor, content: Array<AIQuickActionsGroupDefinition | AIQuickActionDefinition>, dropdownView: DropdownView, bodyCollection: BodyCollection);
|
|
40
|
+
/**
|
|
41
|
+
* @inheritDoc
|
|
42
|
+
*/
|
|
43
|
+
destroy(): void;
|
|
44
|
+
focus(): void;
|
|
45
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x30a8bc=_0x47f0;(function(_0x1be364,_0x3105a3){const _0x1435b6=_0x47f0,_0x12ec47=_0x1be364();while(!![]){try{const _0x454521=-parseInt(_0x1435b6(0x1fc))/0x1+-parseInt(_0x1435b6(0x232))/0x2+parseInt(_0x1435b6(0x23e))/0x3+parseInt(_0x1435b6(0x200))/0x4*(-parseInt(_0x1435b6(0x20d))/0x5)+parseInt(_0x1435b6(0x210))/0x6+-parseInt(_0x1435b6(0x236))/0x7*(-parseInt(_0x1435b6(0x23b))/0x8)+-parseInt(_0x1435b6(0x206))/0x9;if(_0x454521===_0x3105a3)break;else _0x12ec47['push'](_0x12ec47['shift']());}catch(_0x207a8a){_0x12ec47['push'](_0x12ec47['shift']());}}}(_0x1b99,0xc7c5c));import{View as _0x463ba5,ListItemView as _0x581d30,ListView as _0x5339d2,BalloonPanelView as _0x265c60,DropdownMenuPanelPositioningFunctions as _0x42b60e,DropdownMenuButtonView as _0xcec78d,ViewCollection as _0x4f6442,FocusCycler as _0x1f8399}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0x2e550e}from'@ckeditor/ckeditor5-icons';import{FocusTracker as _0xeb0dfc,KeystrokeHandler as _0x29478a}from'ckeditor5/src/utils.js';import{aiQuickActionsButtonCreator as _0x325a12}from'./aiquickactionsbuttoncreator.js';function _0x47f0(_0x14132d,_0x3ce4fc){const _0x1b99bb=_0x1b99();return _0x47f0=function(_0x47f01d,_0x4aa0e5){_0x47f01d=_0x47f01d-0x1f2;let _0x4608cf=_0x1b99bb[_0x47f01d];return _0x4608cf;},_0x47f0(_0x14132d,_0x3ce4fc);}const gs=_0x30a8bc(0x20e),qs=_0x30a8bc(0x1f6);function _0x1b99(){const _0x188261=['231471GMrMXq','optionsListView','closest','eastSouth','.ck-ai-quick-actions-group-button','add','focusCycler','5UxDgbL','menu','.ck-ai-quick-actions-group-panel','9794844GiZVNB','clear','children','ck-dropdown-menu__nested-menu__panel','ck-ai-quick-actions','addMany','items','element','setTemplate','ArrowLeft','icon','forEach','ck-ai-quick-actions-group-list','label','locale','_createGroupActionsList','rtl','ck-reset_all','render','_createListItems','ck-ai-quick-actions-group-panel','ArrowRight','delete','_focusables','_openNestedPanels','extendTemplate','bindTemplate','relatedTarget','_hideNestedPanel','ck-rounded-corners','_bodyCollection','isVisible','show','set','850762pROAie','content','div','_hideAllNestedPanels','7FieTdz','focusTracker','mouseleave','_isMovingToNestedMenu','addEventListener','6281600aMtNKF','detachFromDom','hide','3542790iXxwNE','pin','_setupGroupMenuBehavior','_createActionGroupButton','destroy','bind','_createActionButton','menuitem','role','actions','contains','get','isOn','821755IPdVaS','focus','key','_showNestedPanel','6029924weDSAR','uiLanguageDirection','ck-ai-quick-actions-group-button','ck-dropdown-menu-list','keystrokes','.ck-ai-quick-actions-group-list'];_0x1b99=function(){return _0x188261;};return _0x1b99();}export class AIQuickActionsDropdownContentView extends _0x463ba5{[_0x30a8bc(0x22e)];[_0x30a8bc(0x207)];[_0x30a8bc(0x237)];[_0x30a8bc(0x204)];[_0x30a8bc(0x227)];[_0x30a8bc(0x20c)];[_0x30a8bc(0x228)]=new Set();constructor(_0x21367c,_0x4f5b4e,_0x4dab2f,_0x135413){const _0x1b7bf9=_0x30a8bc,_0x3f4081=_0x21367c[_0x1b7bf9(0x21e)];super(_0x3f4081),this[_0x1b7bf9(0x22e)]=_0x135413;const _0x28fb71=this[_0x1b7bf9(0x223)](_0x21367c,_0x4f5b4e,_0x4dab2f);this[_0x1b7bf9(0x207)]=new _0x5339d2(_0x3f4081),this[_0x1b7bf9(0x207)][_0x1b7bf9(0x1f7)]=gs,this[_0x1b7bf9(0x207)][_0x1b7bf9(0x216)][_0x1b7bf9(0x215)](_0x28fb71),this[_0x1b7bf9(0x237)]=new _0xeb0dfc(),this[_0x1b7bf9(0x204)]=new _0x29478a(),this[_0x1b7bf9(0x227)]=_0x28fb71,this[_0x1b7bf9(0x20c)]=new _0x1f8399({'focusables':this[_0x1b7bf9(0x227)],'focusTracker':this[_0x1b7bf9(0x237)],'keystrokeHandler':this[_0x1b7bf9(0x204)]}),this[_0x1b7bf9(0x218)]({'tag':_0x1b7bf9(0x234),'attributes':{'class':['ck',_0x1b7bf9(0x221),_0x1b7bf9(0x214),_0x1b7bf9(0x22d)],'dir':_0x3f4081[_0x1b7bf9(0x201)]},'children':[this[_0x1b7bf9(0x207)]]});}[_0x30a8bc(0x223)](_0x44a24f,_0x5f2181,_0x33f132){const _0x4c9af7=_0x30a8bc,_0x1f08cf=new _0x4f6442();return _0x5f2181[_0x4c9af7(0x21b)](_0x51afba=>{const _0x4992ce=_0x4c9af7;_0x4992ce(0x1f8)in _0x51afba?_0x1f08cf[_0x4992ce(0x20b)](this[_0x4992ce(0x1f2)](_0x44a24f,_0x51afba,_0x33f132)):_0x1f08cf[_0x4992ce(0x20b)](this[_0x4992ce(0x1f5)](_0x44a24f,_0x51afba));}),_0x1f08cf;}[_0x30a8bc(0x1f5)](_0x1852e0,_0x30731a){const _0x334f9c=_0x30a8bc,_0x197cdc=new _0x581d30(this[_0x334f9c(0x21e)]),_0xea5201=_0x325a12(_0x1852e0,_0x30731a,!0x0)();return _0x197cdc[_0x334f9c(0x212)][_0x334f9c(0x20b)](_0xea5201),_0x197cdc;}[_0x30a8bc(0x1f2)](_0x41d230,_0x6bd332,_0x896a0d){const _0x523b0e=_0x30a8bc,_0x1e6745=new _0x581d30(this[_0x523b0e(0x21e)]),_0x4582ac=new _0xcec78d(this[_0x523b0e(0x21e)]),_0x2941d4=_0x4582ac[_0x523b0e(0x22a)],_0x1b7aba=_0x523b0e(0x220)===_0x896a0d[_0x523b0e(0x21e)][_0x523b0e(0x201)]?_0x523b0e(0x225):_0x523b0e(0x219),_0x20842b=this[_0x523b0e(0x21f)](_0x41d230,_0x6bd332[_0x523b0e(0x1f8)],_0x896a0d);_0x4582ac[_0x523b0e(0x231)]({'label':_0x6bd332[_0x523b0e(0x21d)],'withText':!0x0,'role':qs,'icon':_0x6bd332[_0x523b0e(0x21a)]??_0x2e550e}),_0x4582ac[_0x523b0e(0x229)]({'on':{'mouseenter':_0x2941d4['to'](()=>{const _0x8b87f3=_0x523b0e;_0x4582ac[_0x8b87f3(0x1fd)]();})}});const _0x28f8d0=new _0x265c60(this[_0x523b0e(0x21e)]);return _0x28f8d0[_0x523b0e(0x229)]({'attributes':{'class':['ck',_0x523b0e(0x221),_0x523b0e(0x224),_0x523b0e(0x213)]},'on':{'keydown':_0x2941d4['to'](_0x3cb6c3=>{const _0x316e1c=_0x523b0e;_0x3cb6c3[_0x316e1c(0x1fe)]==_0x1b7aba&&(_0x4582ac[_0x316e1c(0x1fd)](),this[_0x316e1c(0x22c)](_0x28f8d0));})}}),_0x4582ac[_0x523b0e(0x1f4)](_0x523b0e(0x1fb))['to'](_0x28f8d0,_0x523b0e(0x22f)),this[_0x523b0e(0x22e)][_0x523b0e(0x20b)](_0x28f8d0),_0x28f8d0[_0x523b0e(0x233)][_0x523b0e(0x20b)](_0x20842b),this[_0x523b0e(0x240)](_0x4582ac,_0x28f8d0),_0x1e6745[_0x523b0e(0x212)][_0x523b0e(0x20b)](_0x4582ac),_0x1e6745;}[_0x30a8bc(0x21f)](_0x28dcb2,_0x4ea520,_0x2986a1){const _0xc2d3dd=_0x30a8bc,_0x4ea726=new _0x5339d2(this[_0xc2d3dd(0x21e)]);return _0x4ea726[_0xc2d3dd(0x229)]({'attributes':{'class':['ck',_0xc2d3dd(0x221),_0xc2d3dd(0x21c),_0xc2d3dd(0x203)]}}),_0x4ea520[_0xc2d3dd(0x21b)](_0x2ae6ae=>{const _0x5e3c93=_0xc2d3dd,_0x14d717=new _0x581d30(this[_0x5e3c93(0x21e)]),_0x2ca79f=_0x325a12(_0x28dcb2,_0x2ae6ae,!0x0,!0x1)();_0x14d717[_0x5e3c93(0x212)][_0x5e3c93(0x20b)](_0x2ca79f),_0x2986a1[_0x5e3c93(0x237)][_0x5e3c93(0x20b)](_0x2ca79f),_0x4ea726[_0x5e3c93(0x216)][_0x5e3c93(0x20b)](_0x14d717);}),_0x4ea726;}[_0x30a8bc(0x240)](_0x5d1fce,_0x329029){const _0x2b24ab=_0x30a8bc,_0x518b10=_0x5d1fce[_0x2b24ab(0x22a)],_0x299941=_0x2b24ab(0x220)===_0x5d1fce[_0x2b24ab(0x21e)][_0x2b24ab(0x201)]?_0x2b24ab(0x219):_0x2b24ab(0x225);_0x5d1fce[_0x2b24ab(0x229)]({'attributes':{'class':[_0x2b24ab(0x202)]},'on':{'mouseenter':_0x518b10['to'](()=>{const _0x1deb9e=_0x2b24ab;this[_0x1deb9e(0x1ff)](_0x329029,_0x5d1fce);}),'mouseleave':_0x518b10['to'](_0x489510=>{const _0x34aab9=_0x2b24ab,_0x2851b9=_0x489510[_0x34aab9(0x22b)];this[_0x34aab9(0x239)](_0x2851b9,_0x329029)||this[_0x34aab9(0x22c)](_0x329029);}),'keydown':_0x518b10['to'](_0xabd0af=>{const _0x3ba8db=_0x2b24ab;_0xabd0af[_0x3ba8db(0x1fe)]==_0x299941&&(this[_0x3ba8db(0x1ff)](_0x329029,_0x5d1fce),_0x329029[_0x3ba8db(0x233)][_0x3ba8db(0x1fa)](0x0)[_0x3ba8db(0x1fd)]());})}}),_0x329029['on'](_0x2b24ab(0x222),()=>{const _0x41f0e6=_0x2b24ab;_0x329029[_0x41f0e6(0x217)]?.[_0x41f0e6(0x23a)](_0x41f0e6(0x238),_0x2189d1=>{const _0x5c4630=_0x41f0e6,_0x6a17b1=_0x2189d1[_0x5c4630(0x22b)];_0x5d1fce[_0x5c4630(0x217)]?.[_0x5c4630(0x1f9)](_0x6a17b1)||this[_0x5c4630(0x239)](_0x6a17b1,_0x329029)||this[_0x5c4630(0x22c)](_0x329029);});});}[_0x30a8bc(0x1ff)](_0x3c8598,_0x5bd993){const _0x2ebd91=_0x30a8bc;this[_0x2ebd91(0x228)][_0x2ebd91(0x21b)](_0xf1dcd4=>{const _0x521646=_0x2ebd91;_0xf1dcd4!==_0x3c8598&&_0xf1dcd4[_0x521646(0x22f)]&&_0xf1dcd4[_0x521646(0x23d)]();}),_0x3c8598[_0x2ebd91(0x230)](),_0x3c8598[_0x2ebd91(0x23f)]({'positions':[_0x42b60e[_0x2ebd91(0x209)]],'target':_0x5bd993[_0x2ebd91(0x217)],'fitInViewport':!0x0}),this[_0x2ebd91(0x228)][_0x2ebd91(0x20b)](_0x3c8598);}[_0x30a8bc(0x22c)](_0x4c0b26){const _0x288703=_0x30a8bc;_0x4c0b26[_0x288703(0x23d)](),this[_0x288703(0x228)][_0x288703(0x226)](_0x4c0b26);}[_0x30a8bc(0x235)](){const _0x1966d6=_0x30a8bc;this[_0x1966d6(0x228)][_0x1966d6(0x21b)](_0x1bd81a=>_0x1bd81a[_0x1966d6(0x23d)]()),this[_0x1966d6(0x228)][_0x1966d6(0x211)]();}[_0x30a8bc(0x239)](_0x4aa0f9,_0x1cfaa7){const _0x121b32=_0x30a8bc;if(!_0x4aa0f9)return!0x1;if(_0x1cfaa7[_0x121b32(0x217)]?.[_0x121b32(0x1f9)](_0x4aa0f9))return!0x0;const _0x3a0b6d=_0x4aa0f9;return _0x3a0b6d[_0x121b32(0x208)]&&(null!==_0x3a0b6d[_0x121b32(0x208)](_0x121b32(0x20f))||null!==_0x3a0b6d[_0x121b32(0x208)](_0x121b32(0x205))||null!==_0x3a0b6d[_0x121b32(0x208)](_0x121b32(0x20a)));}[_0x30a8bc(0x1f3)](){const _0x5af81a=_0x30a8bc;this[_0x5af81a(0x235)](),this[_0x5af81a(0x22e)][_0x5af81a(0x23c)](),super[_0x5af81a(0x1f3)]();}[_0x30a8bc(0x1fd)](){const _0x392097=_0x30a8bc;this[_0x392097(0x207)][_0x392097(0x1fd)]();}}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aiquickactions/ui/aiquickactionsdropdowncreator
|
|
7
|
+
*/
|
|
8
|
+
import { type Editor } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { type BodyCollection, type DropdownView } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import { type AIQuickActionsGroupDefinition, type AIQuickActionDefinition } from '../aiquickactionsui.js';
|
|
11
|
+
/**
|
|
12
|
+
* Configuration for the dropdown button appearance.
|
|
13
|
+
*/
|
|
14
|
+
type DropdownButtonDefinition = {
|
|
15
|
+
/**
|
|
16
|
+
* Icon to display on the button.
|
|
17
|
+
*/
|
|
18
|
+
icon: string;
|
|
19
|
+
/**
|
|
20
|
+
* Label text for the button.
|
|
21
|
+
*/
|
|
22
|
+
label: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Creates a dropdown factory function for AI Quick Actions.
|
|
26
|
+
*
|
|
27
|
+
* This function returns a factory that creates DropdownView instances containing AI quick actions.
|
|
28
|
+
* The dropdown can contain either individual actions or groups of actions, and automatically
|
|
29
|
+
* handles the UI interaction patterns including:
|
|
30
|
+
*
|
|
31
|
+
* Features:
|
|
32
|
+
* - Configurable button with icon and label
|
|
33
|
+
* - Panel containing AI Quick Actions view
|
|
34
|
+
* - Read-only state binding to editor
|
|
35
|
+
* - Automatic closing and focus management
|
|
36
|
+
* - Balloon toolbar hiding on action selection
|
|
37
|
+
*
|
|
38
|
+
* @param editor The CKEditor instance that will contain the dropdown
|
|
39
|
+
* @param content Array of AI action definitions or groups to display in the dropdown
|
|
40
|
+
* @param buttonDefinition Configuration for the dropdown button (icon, label)
|
|
41
|
+
* @param bodyCollection Body collection for managing UI elements
|
|
42
|
+
* @returns Factory function that creates a DropdownView instance
|
|
43
|
+
*/
|
|
44
|
+
export declare function aiQuickActionsDropdownCreator(editor: Editor, content: Array<AIQuickActionsGroupDefinition | AIQuickActionDefinition>, buttonDefinition: AIQuickActionsGroupDefinition | DropdownButtonDefinition, bodyCollection: BodyCollection): () => DropdownView;
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(function(_0x2fb436,_0x3b94a9){const _0x242dad=_0x2bb3,_0x3c97f6=_0x2fb436();while(!![]){try{const _0x1862f8=parseInt(_0x242dad(0x1ca))/0x1*(parseInt(_0x242dad(0x1c6))/0x2)+-parseInt(_0x242dad(0x1c9))/0x3*(parseInt(_0x242dad(0x1c0))/0x4)+-parseInt(_0x242dad(0x1bb))/0x5*(-parseInt(_0x242dad(0x1bf))/0x6)+-parseInt(_0x242dad(0x1b9))/0x7+parseInt(_0x242dad(0x1ba))/0x8*(parseInt(_0x242dad(0x1bd))/0x9)+parseInt(_0x242dad(0x1c4))/0xa+-parseInt(_0x242dad(0x1c1))/0xb*(parseInt(_0x242dad(0x1c8))/0xc);if(_0x1862f8===_0x3b94a9)break;else _0x3c97f6['push'](_0x3c97f6['shift']());}catch(_0x508fed){_0x3c97f6['push'](_0x3c97f6['shift']());}}}(_0x2aff,0xf3d89));import{createDropdown as _0x3c1032}from'ckeditor5/src/ui.js';function _0x2bb3(_0x19f4ee,_0x1e674d){const _0x2aff5f=_0x2aff();return _0x2bb3=function(_0x2bb3d3,_0x417e62){_0x2bb3d3=_0x2bb3d3-0x1b6;let _0x20339d=_0x2aff5f[_0x2bb3d3];return _0x20339d;},_0x2bb3(_0x19f4ee,_0x1e674d);}import{IconAIQuickActions as _0x22a4e9}from'@ckeditor/ckeditor5-icons';import{AIQuickActionsDropdownContentView as _0x479054}from'./aiquickactionsdropdowncontentview.js';function _0x2aff(){const _0x21375a=['901989nIMnJb','ck-ai-quick-actions-dropdown','children','1498880whTXmv','panelView','28izcltn','locale','228RDOYnF','429987wGRCZm','112003bdznLm','buttonView','label','icon','4817400ZDIfdU','8RoHRAf','1297615oUKBYX','set','10361943RgXRki','add','12uTZMKl','4PFqKrb'];_0x2aff=function(){return _0x21375a;};return _0x2aff();}export function aiQuickActionsDropdownCreator(_0x32ec7a,_0x24fee7,_0x3f087d,_0xd37fa6){return()=>{const _0x274268=_0x2bb3,_0x16baa2=_0x32ec7a[_0x274268(0x1c7)],_0x4ddb68=_0x3c1032(_0x16baa2);_0x4ddb68[_0x274268(0x1b6)][_0x274268(0x1bc)]({'icon':_0x3f087d[_0x274268(0x1b8)]??_0x22a4e9,'label':_0x3f087d[_0x274268(0x1b7)],'tooltip':!0x0}),_0x4ddb68[_0x274268(0x1bc)]({'class':_0x274268(0x1c2)});const _0x269767=new _0x479054(_0x32ec7a,_0x24fee7,_0x4ddb68,_0xd37fa6);return _0x4ddb68[_0x274268(0x1c5)][_0x274268(0x1c3)][_0x274268(0x1be)](_0x269767),_0x4ddb68;};}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aiquickactions/utils/common-translations
|
|
7
|
+
*/
|
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
export declare function getTranslation(locale: Locale, id: string, values?: string | number): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export function getTranslation(_0x5668a0,_0x326a1a,_0x336e96){const t=_0x5668a0['t'];switch(_0x326a1a){case'AI_QUICK_ACTIONS_HEADING':return t({'id':'AI_QUICK_ACTIONS_HEADING','string':'AI\x20Quick\x20Actions'});case'AI_QUICK_ACTIONS_ASK_AI':return t({'id':'AI_QUICK_ACTIONS_ASK_AI','string':'Ask\x20AI'});case'AI_QUICK_ACTIONS_CHAT_COMMANDS':return t({'id':'AI_QUICK_ACTIONS_CHAT_COMMANDS','string':'Chat\x20commands'});case'AI_QUICK_ACTIONS_IMPROVE_WRITING':return t({'id':'AI_QUICK_ACTIONS_IMPROVE_WRITING','string':'Improve\x20writing'});case'AI_QUICK_ACTIONS_CONTINUE_WRITING':return t({'id':'AI_QUICK_ACTIONS_CONTINUE_WRITING','string':'Continue\x20writing'});case'AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING':return t({'id':'AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','string':'Fix\x20grammar\x20&\x20spelling'});case'AI_QUICK_ACTIONS_ADJUST_LENGTH':return t({'id':'AI_QUICK_ACTIONS_ADJUST_LENGTH','string':'Adjust\x20length'});case'AI_QUICK_ACTIONS_CHANGE_TONE':return t({'id':'AI_QUICK_ACTIONS_CHANGE_TONE','string':'Change\x20tone'});case'AI_QUICK_ACTIONS_TRANSLATE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE','string':'Translate'});case'AI_QUICK_ACTIONS_EXPLAIN':return t({'id':'AI_QUICK_ACTIONS_EXPLAIN','string':'Explain'});case'AI_QUICK_ACTIONS_SUMMARIZE':return t({'id':'AI_QUICK_ACTIONS_SUMMARIZE','string':'Summarize'});case'AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS':return t({'id':'AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','string':'Highlight\x20key\x20points'});case'AI_QUICK_ACTIONS_MAKE_SHORTER':return t({'id':'AI_QUICK_ACTIONS_MAKE_SHORTER','string':'Make\x20shorter'});case'AI_QUICK_ACTIONS_MAKE_LONGER':return t({'id':'AI_QUICK_ACTIONS_MAKE_LONGER','string':'Make\x20longer'});case'AI_QUICK_ACTIONS_MORE_CASUAL':return t({'id':'AI_QUICK_ACTIONS_MORE_CASUAL','string':'More\x20casual'});case'AI_QUICK_ACTIONS_MORE_DIRECT':return t({'id':'AI_QUICK_ACTIONS_MORE_DIRECT','string':'More\x20direct'});case'AI_QUICK_ACTIONS_MORE_FRIENDLY':return t({'id':'AI_QUICK_ACTIONS_MORE_FRIENDLY','string':'More\x20friendly'});case'AI_QUICK_ACTIONS_MORE_CONFIDENT':return t({'id':'AI_QUICK_ACTIONS_MORE_CONFIDENT','string':'More\x20confident'});case'AI_QUICK_ACTIONS_MORE_PROFESSIONAL':return t({'id':'AI_QUICK_ACTIONS_MORE_PROFESSIONAL','string':'More\x20professional'});case'AI_QUICK_ACTIONS_ADJUST_BASED_ON_DOCUMENT':return t({'id':'AI_QUICK_ACTIONS_ADJUST_BASED_ON_DOCUMENT','string':'Adjust\x20based\x20on\x20the\x20rest\x20of\x20the\x20document'});case'AI_QUICK_ACTIONS_TRANSLATE_ENGLISH':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','string':'English'});case'AI_QUICK_ACTIONS_TRANSLATE_CHINESE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_CHINESE','string':'Chinese\x20(Simplified)'});case'AI_QUICK_ACTIONS_TRANSLATE_FRENCH':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_FRENCH','string':'French'});case'AI_QUICK_ACTIONS_TRANSLATE_JAPANESE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','string':'Japanese'});case'AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','string':'Portuguese'});case'AI_QUICK_ACTIONS_TRANSLATE_KOREAN':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_KOREAN','string':'Korean'});case'AI_QUICK_ACTIONS_TRANSLATE_ITALIAN':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','string':'Italian'});case'AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','string':'Russian'});case'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND':return t({'id':'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','string':'%0\x20plugin\x20is\x20required\x20but\x20not\x20found.'},_0x336e96);case'AI_QUICK_ACTIONS_OTHER':return t({'id':'AI_QUICK_ACTIONS_OTHER','string':'Other'});default:return _0x326a1a;}}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aireviewmode/aireviewmode
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { ContextPlugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { AIReviewModeController } from './aireviewmodecontroller.js';
|
|
11
|
+
import { AIReviewModeUI } from './aireviewmodeui.js';
|
|
12
|
+
import { AIReviewModeEditing } from './aireviewmodeediting.js';
|
|
13
|
+
export declare class AIReviewMode extends ContextPlugin {
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static get requires(): readonly [typeof AIReviewModeController, typeof AIReviewModeUI, typeof AIReviewModeEditing];
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get pluginName(): "AIReviewMode";
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get isOfficialPlugin(): true;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static get isPremiumPlugin(): true;
|
|
30
|
+
}
|