@ckeditor/ckeditor5-ai 47.2.0-alpha.7 → 47.3.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +16 -20
- 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/dist/index-editor.css +285 -65
- package/dist/index.css +286 -68
- package/dist/index.js +5 -5
- 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 +10 -1
- package/lang/translations/af.po +36 -0
- package/lang/translations/ar.po +36 -0
- package/lang/translations/ast.po +36 -0
- package/lang/translations/az.po +36 -0
- package/lang/translations/be.po +36 -0
- package/lang/translations/bg.po +36 -0
- package/lang/translations/bn.po +36 -0
- package/lang/translations/bs.po +36 -0
- package/lang/translations/ca.po +36 -0
- package/lang/translations/cs.po +36 -0
- package/lang/translations/da.po +36 -0
- package/lang/translations/de-ch.po +36 -0
- package/lang/translations/de.po +36 -0
- package/lang/translations/el.po +36 -0
- package/lang/translations/en-au.po +36 -0
- package/lang/translations/en-gb.po +36 -0
- package/lang/translations/en.po +36 -0
- package/lang/translations/eo.po +36 -0
- package/lang/translations/es-co.po +36 -0
- package/lang/translations/es.po +36 -0
- package/lang/translations/et.po +36 -0
- package/lang/translations/eu.po +36 -0
- package/lang/translations/fa.po +36 -0
- package/lang/translations/fi.po +36 -0
- package/lang/translations/fr.po +36 -0
- package/lang/translations/gl.po +36 -0
- package/lang/translations/gu.po +36 -0
- package/lang/translations/he.po +36 -0
- package/lang/translations/hi.po +36 -0
- package/lang/translations/hr.po +36 -0
- package/lang/translations/hu.po +36 -0
- package/lang/translations/hy.po +36 -0
- package/lang/translations/id.po +36 -0
- package/lang/translations/it.po +36 -0
- package/lang/translations/ja.po +36 -0
- package/lang/translations/jv.po +36 -0
- package/lang/translations/kk.po +36 -0
- package/lang/translations/km.po +36 -0
- package/lang/translations/kn.po +36 -0
- package/lang/translations/ko.po +36 -0
- package/lang/translations/ku.po +36 -0
- package/lang/translations/lt.po +36 -0
- package/lang/translations/lv.po +36 -0
- package/lang/translations/ms.po +36 -0
- package/lang/translations/nb.po +36 -0
- package/lang/translations/ne.po +36 -0
- package/lang/translations/nl.po +36 -0
- package/lang/translations/no.po +36 -0
- package/lang/translations/oc.po +36 -0
- package/lang/translations/pl.po +36 -0
- package/lang/translations/pt-br.po +36 -0
- package/lang/translations/pt.po +36 -0
- package/lang/translations/ro.po +36 -0
- package/lang/translations/ru.po +36 -0
- package/lang/translations/si.po +36 -0
- package/lang/translations/sk.po +36 -0
- package/lang/translations/sl.po +36 -0
- package/lang/translations/sq.po +36 -0
- package/lang/translations/sr-latn.po +36 -0
- package/lang/translations/sr.po +36 -0
- package/lang/translations/sv.po +36 -0
- package/lang/translations/th.po +36 -0
- package/lang/translations/ti.po +36 -0
- package/lang/translations/tk.po +36 -0
- package/lang/translations/tr.po +36 -0
- package/lang/translations/tt.po +36 -0
- package/lang/translations/ug.po +36 -0
- package/lang/translations/uk.po +36 -0
- package/lang/translations/ur.po +36 -0
- package/lang/translations/uz.po +36 -0
- package/lang/translations/vi.po +36 -0
- package/lang/translations/zh-cn.po +36 -0
- package/lang/translations/zh.po +36 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.d.ts +8 -0
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.d.ts +12 -0
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +23 -0
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.d.ts +24 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.d.ts +5 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +39 -6
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +6 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +30 -5
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.d.ts +5 -0
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +23 -0
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.d.ts +29 -0
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +23 -0
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +16 -0
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +8 -2
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.d.ts +4 -0
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +6 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +11 -2
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.d.ts +24 -0
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.d.ts +7 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.d.ts +8 -0
- package/src/errorsmap.js +23 -0
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +26 -0
- package/theme/aichat/aichat.css +1 -3
- package/theme/aichat/aichathistory.css +1 -1
- package/theme/aichat/aisuggestioncontainer.css +1 -1
- package/theme/aiquickactions/aiquickactions.css +139 -25
- package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +24 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +13 -0
- package/theme/aireviewmode/aireviewmode.css +33 -10
- package/theme/common/{aichaterror.css → ainotification.css} +17 -14
- package/theme/common/aitrackchanges.css +9 -0
- package/src/aichat/utils/scrollmanager.js +0 -23
- /package/src/{aichat → aicore}/utils/scrollmanager.d.ts +0 -0
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x303f16=_0xf217;function _0xf217(_0xefc6eb,_0x319d7e){const _0x307a8f=_0x307a();return _0xf217=function(_0xf2170f,_0x3d459c){_0xf2170f=_0xf2170f-0x171;let _0x103e17=_0x307a8f[_0xf2170f];return _0x103e17;},_0xf217(_0xefc6eb,_0x319d7e);}(function(_0x50e702,_0x1c8dc9){const _0x184f1f=_0xf217,_0x32e7dc=_0x50e702();while(!![]){try{const _0x2b5e7d=parseInt(_0x184f1f(0x186))/0x1*(-parseInt(_0x184f1f(0x1ad))/0x2)+parseInt(_0x184f1f(0x17c))/0x3*(-parseInt(_0x184f1f(0x199))/0x4)+-parseInt(_0x184f1f(0x1af))/0x5*(parseInt(_0x184f1f(0x1a3))/0x6)+-parseInt(_0x184f1f(0x18a))/0x7*(-parseInt(_0x184f1f(0x173))/0x8)+-parseInt(_0x184f1f(0x19b))/0x9*(-parseInt(_0x184f1f(0x189))/0xa)+-parseInt(_0x184f1f(0x181))/0xb+parseInt(_0x184f1f(0x194))/0xc;if(_0x2b5e7d===_0x1c8dc9)break;else _0x32e7dc['push'](_0x32e7dc['shift']());}catch(_0x5b1853){_0x32e7dc['push'](_0x32e7dc['shift']());}}}(_0x307a,0x49f08));import _0x5ca1fb from'morphdom';import{NodeWithChildren as _0x18687d,Text as _0x133143,Element as _0xb0c66d,isText as _0x43710f,isDocument as _0x7736a4,isTag as _0x14e6d2,cloneNode as _0x48ee45,getChildren as _0x5e44fb,prepend as _0x9b4128,removeElement as _0x5f2154,textContent as _0x4040b0,render as _0x2ec986}from'./htmlparser.js';import{logWarning as _0x25bee6}from'ckeditor5/src/utils.js';export class HTMLStreamer{[_0x303f16(0x1a4)];[_0x303f16(0x176)]=!0x1;[_0x303f16(0x1ac)]=null;[_0x303f16(0x184)]=[];[_0x303f16(0x197)]=0x0;[_0x303f16(0x1a0)]=null;constructor(_0x48285e){const _0x9433a2=_0x303f16;this[_0x9433a2(0x1a4)]={'delay':_0x48285e[_0x9433a2(0x18b)]??0x14,'textNodeStyle':_0x48285e[_0x9433a2(0x175)],'onStreamUpdate':_0x48285e[_0x9433a2(0x17f)]||(()=>{})};}async[_0x303f16(0x190)]({document:_0x457867,targetElement:_0x2ee0fa,abortSignal:_0x25b0f9}){const _0x76000f=_0x303f16;this[_0x76000f(0x176)]&&this[_0x76000f(0x180)](),_0x25b0f9?.[_0x76000f(0x1a9)](_0x76000f(0x19f),this[_0x76000f(0x180)][_0x76000f(0x191)](this)),this[_0x76000f(0x1ac)]=_0x48ee45(_0x457867,!0x0),this[_0x76000f(0x184)]=this[_0x76000f(0x1ab)](),this[_0x76000f(0x176)]=!0x0,this[_0x76000f(0x197)]>this[_0x76000f(0x184)][_0x76000f(0x18c)]&&(_0x25bee6(_0x76000f(0x178),{'currentIndex':this[_0x76000f(0x197)],'nodeList':this[_0x76000f(0x184)]}),this[_0x76000f(0x197)]=this[_0x76000f(0x184)][_0x76000f(0x18c)]);for(let _0x281c5f=0x0;_0x281c5f<this[_0x76000f(0x197)];_0x281c5f++)this[_0x76000f(0x184)][_0x281c5f][_0x76000f(0x1aa)]=!0x0;let _0x213e8a=0x0;for(let _0xff7b9e=this[_0x76000f(0x197)];_0xff7b9e<this[_0x76000f(0x184)][_0x76000f(0x18c)];_0xff7b9e++){const _0x50288=Date[_0x76000f(0x193)](),_0x56d505=this[_0x76000f(0x184)][_0xff7b9e],_0xfc267c=_0x50288-_0x213e8a;_0x56d505[_0x76000f(0x1aa)]=!0x0;let _0xa65457=_0x56d505[_0x76000f(0x174)];for(;_0xa65457;)_0xa65457[_0x76000f(0x1aa)]=!0x0,_0xa65457=_0xa65457[_0x76000f(0x174)];if(_0xfc267c<this[_0x76000f(0x1a4)][_0x76000f(0x18b)])try{const {promise:_0x44ae90,abortController:_0x1f2b22}=pr(this[_0x76000f(0x1a4)][_0x76000f(0x18b)]-_0xfc267c);this[_0x76000f(0x1a0)]=_0x1f2b22,await _0x44ae90;}catch(_0x3bad7c){return;}_0x5ca1fb(_0x2ee0fa,'<'+_0x2ee0fa[_0x76000f(0x18d)]+'>'+this[_0x76000f(0x1a7)](this[_0x76000f(0x1ac)])+'</'+_0x2ee0fa[_0x76000f(0x18d)]+'>',{'childrenOnly':!0x0}),this[_0x76000f(0x1a4)][_0x76000f(0x17f)]&&this[_0x76000f(0x1a4)][_0x76000f(0x17f)](),this[_0x76000f(0x197)]=_0xff7b9e,_0x213e8a=Date[_0x76000f(0x193)]();}this[_0x76000f(0x176)]=!0x1;}[_0x303f16(0x182)]({targetElement:_0x5834c9}){const _0x593a76=_0x303f16;Array[_0x593a76(0x185)](_0x5834c9[_0x593a76(0x19a)](_0x593a76(0x1a2)))[_0x593a76(0x179)]()[_0x593a76(0x172)](_0x15890b=>{const _0x1c60e1=_0x593a76;_0x15890b[_0x1c60e1(0x183)](_0x15890b[_0x1c60e1(0x1ae)][0x0]);});}[_0x303f16(0x180)](){const _0x356920=_0x303f16;this[_0x356920(0x176)]=!0x1,this[_0x356920(0x1a0)]&&(this[_0x356920(0x1a0)][_0x356920(0x19f)](),this[_0x356920(0x1a0)]=null);}[_0x303f16(0x1a7)](_0x2ae960){const _0x2a84c6=_0x303f16;let _0x3566b4='';if(function(_0x376fa2){return _0x7736a4(_0x376fa2);}(_0x2ae960)){for(const _0x26c1bc of _0x2ae960[_0x2a84c6(0x177)])_0x3566b4+=this[_0x2a84c6(0x1a7)](_0x26c1bc);}else{if(dr(_0x2ae960)){if(!_0x2ae960[_0x2a84c6(0x1aa)])return'';const _0x34c20a=_0x2ae960,_0x219718=Object[_0x2a84c6(0x1a1)](_0x34c20a[_0x2a84c6(0x19e)])[_0x2a84c6(0x19d)](([_0x510d7d,_0x44c96e])=>_0x510d7d+'=\x22'+_0x44c96e+'\x22')[_0x2a84c6(0x1a8)]('\x20');_0x3566b4+='<'+_0x34c20a[_0x2a84c6(0x18d)]+(_0x219718?'\x20'+_0x219718:'')+'>';for(const _0x87d288 of _0x5e44fb(_0x34c20a))_0x3566b4+=this[_0x2a84c6(0x1a7)](_0x87d288);_0x3566b4+='</'+_0x34c20a[_0x2a84c6(0x18d)]+'>';}else{if(!ar(_0x2ae960))return'';if(!_0x2ae960[_0x2a84c6(0x1aa)])return'';!function(_0x48f08a){const _0x91a22a=_0x2a84c6;if(!_0x48f08a[_0x91a22a(0x174)]||!dr(_0x48f08a[_0x91a22a(0x174)]))return!0x1;if(!cr[_0x91a22a(0x198)](_0x48f08a[_0x91a22a(0x174)][_0x91a22a(0x18d)]))return!0x1;return!_0x4040b0(_0x48f08a)[_0x91a22a(0x18f)](/^\s*[<>]\s*$/);}(_0x2ae960)?_0x3566b4+=_0x2ec986(_0x2ae960):_0x3566b4+=_0x2ec986(new _0xb0c66d(_0x2a84c6(0x1a5),{'data-ck-html-streamer-word-chunk':'','style':this[_0x2a84c6(0x1a4)][_0x2a84c6(0x175)]},[_0x2ae960]));}}return _0x3566b4;}[_0x303f16(0x1ab)](){const _0x19ee4=_0x303f16,_0x1b3f08=[];return function(_0xdc2a28,_0x5e863d){const _0x3ed751=_0xf217,_0x32a0d6=_0x4edeb6=>{const _0xf4be2c=_0xf217;if(_0x5e863d(_0x4edeb6),_0x4edeb6 instanceof _0x18687d)for(let _0x4c7181=0x0;_0x4c7181<_0x4edeb6[_0xf4be2c(0x177)][_0xf4be2c(0x18c)];_0x4c7181++){const _0x17fe56=_0x4edeb6[_0xf4be2c(0x177)][_0x4c7181];_0x32a0d6(_0x17fe56);}};for(let _0x4907a1=0x0;_0x4907a1<_0xdc2a28[_0x3ed751(0x177)][_0x3ed751(0x18c)];_0x4907a1++)_0x32a0d6(_0xdc2a28[_0x3ed751(0x177)][_0x4907a1]);}(this[_0x19ee4(0x1ac)],_0x5d5b13=>{const _0x93734b=_0x19ee4;if(ar(_0x5d5b13)){const _0x1dafa4=this[_0x93734b(0x17b)](_0x5d5b13);_0x1dafa4[_0x93734b(0x18c)]&&_0x1b3f08[_0x93734b(0x17e)](..._0x1dafa4);}_0x5d5b13[_0x93734b(0x171)]||_0x5d5b13[_0x93734b(0x196)]||_0x1b3f08[_0x93734b(0x17e)](_0x5d5b13);}),_0x1b3f08;}[_0x303f16(0x17b)](_0x416633){const _0x2eca9e=_0x303f16;if(_0x416633[_0x2eca9e(0x171)]||_0x416633[_0x2eca9e(0x196)])return[];const _0x489ca2=_0x4040b0(_0x416633)[_0x2eca9e(0x18f)](/(?:\s*\S+\s*)/g),_0x275f55=[];if(_0x489ca2&&_0x489ca2[_0x2eca9e(0x18c)]>0x1){for(const _0x59ed52 of _0x489ca2){const _0xe4ca75=new _0x133143(_0x59ed52);_0xe4ca75[_0x2eca9e(0x196)]=!0x0,_0x9b4128(_0x416633,_0xe4ca75),_0x275f55[_0x2eca9e(0x17e)](_0xe4ca75);}_0x416633[_0x2eca9e(0x171)]=!0x0,_0x5f2154(_0x416633);}return _0x275f55;}}const cr=['p','li','td','th',_0x303f16(0x1a5),'h1','h2','h3','h4','h5','h6','b',_0x303f16(0x188),'i','em',_0x303f16(0x1a6),_0x303f16(0x195),_0x303f16(0x19c),_0x303f16(0x192),_0x303f16(0x17d),'a',_0x303f16(0x187),_0x303f16(0x17a)];function ar(_0x2c090b){return _0x43710f(_0x2c090b);}function _0x307a(){const _0xdb5afc=['renderNode','join','addEventListener','shouldBeStreamed','getParsedDocumentNodeList','document','1114818kEihIe','childNodes','25JjqzhW','isWordSplitSource','forEach','16unTJqG','parent','textNodeStyle','isStreaming','children','ai-html-streamer-current-index-out-of-bounds','reverse','div','splitTextNodeIntoWordNodes','306mqLIyK','sub','push','onStreamUpdate','stop','6318268wdUFno','cleanUpAnimations','replaceWith','nodesList','from','1sgNvBR','code','strong','2692570foJhrv','252679PfScjB','delay','length','tagName','signal','match','stream','bind','sup','now','20609112CukHKU','del','isWordSplitResult','currentIndex','includes','21288Agvkpc','querySelectorAll','9MllPAt','ins','map','attribs','abort','timeoutAbortController','entries','span[data-ck-html-streamer-word-chunk]','97656URTBnv','options','span','mark'];_0x307a=function(){return _0xdb5afc;};return _0x307a();}function dr(_0x4bdc2c){return _0x14e6d2(_0x4bdc2c);}function pr(_0x45d794){const _0x42a036=new AbortController();return{'promise':new Promise((_0x2fad9d,_0x4157a9)=>{const _0x77de84=_0xf217,_0x348b6d=setTimeout(_0x2fad9d,_0x45d794);_0x42a036[_0x77de84(0x18e)][_0x77de84(0x1a9)](_0x77de84(0x19f),()=>{clearTimeout(_0x348b6d),_0x4157a9();});}),'abortController':_0x42a036};}
|
|
@@ -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 _0x5b8049=_0x1a62;function _0x1a62(_0x10c07a,_0x5a9ebb){const _0x2220c0=_0x2220();return _0x1a62=function(_0x1a6247,_0x597757){_0x1a6247=_0x1a6247-0x1a9;let _0x405696=_0x2220c0[_0x1a6247];return _0x405696;},_0x1a62(_0x10c07a,_0x5a9ebb);}(function(_0xa42591,_0x273109){const _0x185945=_0x1a62,_0x7d3f4d=_0xa42591();while(!![]){try{const _0x1b672a=-parseInt(_0x185945(0x1ae))/0x1*(parseInt(_0x185945(0x1c3))/0x2)+parseInt(_0x185945(0x1c5))/0x3*(-parseInt(_0x185945(0x1b7))/0x4)+-parseInt(_0x185945(0x1b1))/0x5+-parseInt(_0x185945(0x1be))/0x6+-parseInt(_0x185945(0x1d2))/0x7+-parseInt(_0x185945(0x1b0))/0x8+parseInt(_0x185945(0x1cf))/0x9;if(_0x1b672a===_0x273109)break;else _0x7d3f4d['push'](_0x7d3f4d['shift']());}catch(_0xd8f907){_0x7d3f4d['push'](_0x7d3f4d['shift']());}}}(_0x2220,0x28c0d));function _0x2220(){const _0xde0938=['1854924wUxwAZ','_onUserEvent','_stop','scrollTo','start','8752GvOhbH','deltaY','46362njjwUP','abortController','pointerdown','wheel','touchstart','PageUp','includes','abort','bind','ArrowDown','8907507tWZUOe','Home','scrollHeight','1007622qqbAhB','PageDown','_isAtBottom','key','type','isRunning','14tGZetH','End','615480mtXwGi','75715nDBNzq','addEventListener','signal','isUserPaused','auto','destroy','56DmGnCc','ArrowUp','stop','_rafUpdate','animationFrameId','element','keydown'];_0x2220=function(){return _0xde0938;};return _0x2220();}const As=[_0x5b8049(0x1c8),_0x5b8049(0x1c9),_0x5b8049(0x1c7),_0x5b8049(0x1bd)],Fs=[_0x5b8049(0x1b8),_0x5b8049(0x1ce),_0x5b8049(0x1ca),_0x5b8049(0x1a9),_0x5b8049(0x1d0),_0x5b8049(0x1af),'\x20'];export class ScrollManager{[_0x5b8049(0x1bc)];[_0x5b8049(0x1bb)];[_0x5b8049(0x1ad)];[_0x5b8049(0x1c6)];[_0x5b8049(0x1b4)];constructor(_0x5e2352){const _0xd65d50=_0x5b8049;this[_0xd65d50(0x1bc)]=_0x5e2352,this[_0xd65d50(0x1bb)]=null,this[_0xd65d50(0x1ad)]=!0x1,this[_0xd65d50(0x1c6)]=new AbortController(),this[_0xd65d50(0x1b4)]=!0x1;for(const _0x2e3431 of As){const _0x26092a=_0xd65d50(0x1bd)!==_0x2e3431;this[_0xd65d50(0x1bc)][_0xd65d50(0x1b2)](_0x2e3431,this[_0xd65d50(0x1bf)][_0xd65d50(0x1cd)](this),{'passive':_0x26092a,'signal':this[_0xd65d50(0x1c6)][_0xd65d50(0x1b3)]});}}[_0x5b8049(0x1c2)](){const _0x4ef7bf=_0x5b8049;this[_0x4ef7bf(0x1ad)]||(this[_0x4ef7bf(0x1ad)]=!0x0,this[_0x4ef7bf(0x1b4)]=!0x1,this[_0x4ef7bf(0x1bb)]=requestAnimationFrame(this[_0x4ef7bf(0x1ba)][_0x4ef7bf(0x1cd)](this)));}[_0x5b8049(0x1b9)](){requestAnimationFrame(()=>{const _0x282177=_0x1a62;this[_0x282177(0x1c0)]();});}[_0x5b8049(0x1b6)](){const _0x100ccf=_0x5b8049;this[_0x100ccf(0x1c0)](),this[_0x100ccf(0x1c6)][_0x100ccf(0x1cc)]();}[_0x5b8049(0x1c0)](){const _0x54ad78=_0x5b8049;null!==this[_0x54ad78(0x1bb)]&&(cancelAnimationFrame(this[_0x54ad78(0x1bb)]),this[_0x54ad78(0x1bb)]=null),this[_0x54ad78(0x1ad)]&&(this[_0x54ad78(0x1ad)]=!0x1),this[_0x54ad78(0x1b4)]=!0x1;}[_0x5b8049(0x1bf)](_0x30da67){const _0xff89e9=_0x5b8049;if(this[_0xff89e9(0x1ad)]){if(_0xff89e9(0x1bd)===_0x30da67[_0xff89e9(0x1ac)]){const _0x512938=_0x30da67[_0xff89e9(0x1ab)];if(!Fs[_0xff89e9(0x1cb)](_0x512938))return;}_0x30da67 instanceof WheelEvent?_0x30da67[_0xff89e9(0x1c4)]<0x0?this[_0xff89e9(0x1b4)]=!0x0:this[_0xff89e9(0x1b4)]=!this[_0xff89e9(0x1aa)]():this[_0xff89e9(0x1b4)]=!0x0;}}[_0x5b8049(0x1aa)](){const _0x1274bd=_0x5b8049,{scrollTop:_0x260131,scrollHeight:_0x28558e,clientHeight:_0xc1270b}=this[_0x1274bd(0x1bc)];return _0x28558e-_0x260131-_0xc1270b<=0x5;}[_0x5b8049(0x1ba)](){const _0x208dcf=_0x5b8049;this[_0x208dcf(0x1ad)]&&(this[_0x208dcf(0x1b4)]||this[_0x208dcf(0x1bc)][_0x208dcf(0x1c1)]({'top':this[_0x208dcf(0x1bc)][_0x208dcf(0x1d1)],'behavior':_0x208dcf(0x1b5)}),this[_0x208dcf(0x1bb)]=requestAnimationFrame(this[_0x208dcf(0x1ba)][_0x208dcf(0x1cd)](this)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4442f9=_0x4c74;function _0x32ec(){var _0x4714fa=['2285LJJbcA','2168fGrAcb','pluginName','isPremiumPlugin','2946xWhqXa','5015540QebdBJ','2758085eIXZqS','2582744REVHQj','7AMUsRH','isOfficialPlugin','AIEditorIntegration','1lwttMl','9kvzXkL','12033852Wkjusc','957262MwLbCh','requires','7032EbnvtS'];_0x32ec=function(){return _0x4714fa;};return _0x32ec();}function _0x4c74(_0x4639a4,_0x1afd55){var _0x32ec89=_0x32ec();return _0x4c74=function(_0x4c74b2,_0x4a8ac7){_0x4c74b2=_0x4c74b2-0x6d;var _0x3f971a=_0x32ec89[_0x4c74b2];return _0x3f971a;},_0x4c74(_0x4639a4,_0x1afd55);}(function(_0x50e491,_0x31f9c1){var _0x5d5f8=_0x4c74,_0x4cb9e0=_0x50e491();while(!![]){try{var _0x2e39f3=parseInt(_0x5d5f8(0x7b))/0x1*(parseInt(_0x5d5f8(0x6d))/0x2)+parseInt(_0x5d5f8(0x74))/0x3*(parseInt(_0x5d5f8(0x71))/0x4)+parseInt(_0x5d5f8(0x70))/0x5*(parseInt(_0x5d5f8(0x6f))/0x6)+parseInt(_0x5d5f8(0x78))/0x7*(-parseInt(_0x5d5f8(0x77))/0x8)+parseInt(_0x5d5f8(0x7c))/0x9*(parseInt(_0x5d5f8(0x75))/0xa)+-parseInt(_0x5d5f8(0x76))/0xb+-parseInt(_0x5d5f8(0x7d))/0xc;if(_0x2e39f3===_0x31f9c1)break;else _0x4cb9e0['push'](_0x4cb9e0['shift']());}catch(_0x2f4dfa){_0x4cb9e0['push'](_0x4cb9e0['shift']());}}}(_0x32ec,0x73252));import{Plugin as _0x302205}from'ckeditor5/src/core.js';import{AIToggleButtonUI as _0x5f2ffc}from'./aitogglebutton/aitogglebuttonui.js';import{SuggestionsConversion as _0x5989d4}from'@ckeditor/ckeditor5-collaboration-core';export class AIEditorIntegration extends _0x302205{static get[_0x4442f9(0x6e)](){return[_0x5f2ffc,_0x5989d4];}static get[_0x4442f9(0x72)](){var _0x21200b=_0x4442f9;return _0x21200b(0x7a);}static get[_0x4442f9(0x79)](){return!0x0;}static get[_0x4442f9(0x73)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24cc4b=_0x1530;(function(_0x1e51de,_0x3c81cf){const _0x3e98c8=_0x1530,_0x5c9aef=_0x1e51de();while(!![]){try{const _0x3a7d05=parseInt(_0x3e98c8(0xc3))/0x1*(parseInt(_0x3e98c8(0xd8))/0x2)+parseInt(_0x3e98c8(0xcf))/0x3+parseInt(_0x3e98c8(0xbb))/0x4*(-parseInt(_0x3e98c8(0xc5))/0x5)+parseInt(_0x3e98c8(0xd7))/0x6*(parseInt(_0x3e98c8(0xce))/0x7)+-parseInt(_0x3e98c8(0xc8))/0x8+parseInt(_0x3e98c8(0xca))/0x9*(parseInt(_0x3e98c8(0xd2))/0xa)+-parseInt(_0x3e98c8(0xdb))/0xb;if(_0x3a7d05===_0x3c81cf)break;else _0x5c9aef['push'](_0x5c9aef['shift']());}catch(_0x294717){_0x5c9aef['push'](_0x5c9aef['shift']());}}}(_0x3544,0x7a22c));import{Plugin as _0x1719a4}from'ckeditor5/src/core.js';import{ToggleAICommand as _0x827ea6}from'./toggleaicommand.js';function _0x3544(){const _0x3ae50c=['toggleAi','locale','177920jyQFZx','execute','bind','menuBar:toggleAi','listenTo','1115682tXxKSh','820WOXRDi','isEnabled','componentFactory','16178712PgsEzG','commands','requires','init','994564TDBBXn','set','menuitemcheckbox','isOfficialPlugin','_createAIUIButton','value','get','isOn','2243zmVVEv','isPremiumPlugin','5kDDpZv','ck-ai-toggle-button','AIToggleButtonUI','5491704ASjfIu','editor','351LKvBGf','pluginName','AI_TOGGLE_BUTTON_LABEL','add','14fFsCns','2762256alHpGU'];_0x3544=function(){return _0x3ae50c;};return _0x3544();}import{ButtonView as _0x1f3b50,MenuBarMenuListItemButtonView as _0x1510fb}from'ckeditor5/src/ui.js';import{IconAIAskAI as _0x1d4dfb}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x20b1cc}from'../../aicore/utils/common-translations.js';import{AITabs as _0x3a3152}from'../../aitabs/aitabs.js';function _0x1530(_0xa8cd93,_0x1c3317){const _0x354497=_0x3544();return _0x1530=function(_0x1530a0,_0x29bb74){_0x1530a0=_0x1530a0-0xb9;let _0x1bac13=_0x354497[_0x1530a0];return _0x1bac13;},_0x1530(_0xa8cd93,_0x1c3317);}import'../../../theme/aieditorintegration/aitogglebutton.css';export class AIToggleButtonUI extends _0x1719a4{static get[_0x24cc4b(0xb9)](){return[_0x3a3152];}static get[_0x24cc4b(0xcb)](){const _0x47fa41=_0x24cc4b;return _0x47fa41(0xc7);}static get[_0x24cc4b(0xbe)](){return!0x0;}static get[_0x24cc4b(0xc4)](){return!0x0;}[_0x24cc4b(0xba)](){const _0x13f719=_0x24cc4b,_0x132c49=this[_0x13f719(0xc9)];_0x132c49[_0x13f719(0xdc)][_0x13f719(0xcd)](_0x13f719(0xd0),new _0x827ea6(_0x132c49)),_0x132c49['ui'][_0x13f719(0xda)][_0x13f719(0xcd)](_0x13f719(0xd0),()=>{const _0x587e35=_0x13f719,_0x5f391f=this[_0x587e35(0xbf)](_0x1f3b50);return _0x5f391f[_0x587e35(0xbc)]({'tooltip':!0x0,'class':_0x587e35(0xc6)}),_0x5f391f;}),_0x132c49['ui'][_0x13f719(0xda)][_0x13f719(0xcd)](_0x13f719(0xd5),()=>{const _0x418f16=_0x13f719,_0x3461d4=this[_0x418f16(0xbf)](_0x1510fb);return _0x3461d4[_0x418f16(0xbc)]({'role':_0x418f16(0xbd)}),_0x3461d4;});}[_0x24cc4b(0xbf)](_0x9db60){const _0x5f189f=_0x24cc4b,_0x33012f=this[_0x5f189f(0xc9)],_0x2c8ea4=_0x33012f[_0x5f189f(0xdc)][_0x5f189f(0xc1)](_0x5f189f(0xd0)),_0x862f0b=new _0x9db60(_0x33012f[_0x5f189f(0xd1)]);return _0x862f0b[_0x5f189f(0xbc)]({'label':_0x20b1cc(_0x33012f[_0x5f189f(0xd1)],_0x5f189f(0xcc)),'icon':_0x1d4dfb,'isToggleable':!0x0}),_0x862f0b[_0x5f189f(0xd4)](_0x5f189f(0xd9))['to'](_0x2c8ea4),_0x862f0b[_0x5f189f(0xd4)](_0x5f189f(0xc2))['to'](_0x2c8ea4,_0x5f189f(0xc0),_0x2f48f4=>!!_0x2f48f4),this[_0x5f189f(0xd6)](_0x862f0b,_0x5f189f(0xd3),()=>{const _0x5678a0=_0x5f189f;_0x2c8ea4[_0x5678a0(0xd3)]();}),_0x862f0b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55befb=_0x344a;(function(_0x529210,_0x13d6c1){const _0x3cfa70=_0x344a,_0x17b3d1=_0x529210();while(!![]){try{const _0x12dd0b=parseInt(_0x3cfa70(0x1ed))/0x1*(-parseInt(_0x3cfa70(0x1f4))/0x2)+parseInt(_0x3cfa70(0x1fb))/0x3+-parseInt(_0x3cfa70(0x1f5))/0x4+parseInt(_0x3cfa70(0x1ef))/0x5+parseInt(_0x3cfa70(0x1f6))/0x6+-parseInt(_0x3cfa70(0x1f0))/0x7*(-parseInt(_0x3cfa70(0x1f2))/0x8)+-parseInt(_0x3cfa70(0x1f7))/0x9;if(_0x12dd0b===_0x13d6c1)break;else _0x17b3d1['push'](_0x17b3d1['shift']());}catch(_0x41603d){_0x17b3d1['push'](_0x17b3d1['shift']());}}}(_0x59ca,0xad1f6));function _0x344a(_0x68a2c6,_0x2523aa){const _0x59caac=_0x59ca();return _0x344a=function(_0x344acc,_0x169c59){_0x344acc=_0x344acc-0x1ea;let _0x43cdc1=_0x59caac[_0x344acc];return _0x43cdc1;},_0x344a(_0x68a2c6,_0x2523aa);}function _0x59ca(){const _0x36dd36=['AITabs','4245170mNImKK','357wBhRKV','value','220456hdhbEh','isEnabled','2848NMAIpc','3535312SZbpxm','377124hBPICs','8573103rtlRYX','editor','execute','view','3679302KmVkDT','get','bind','plugins','isVisible','701UKRaCi'];_0x59ca=function(){return _0x36dd36;};return _0x59ca();}import{Command as _0x2fc561}from'ckeditor5/src/core.js';export class ToggleAICommand extends _0x2fc561{constructor(_0x3b13f5){const _0x4d4eb5=_0x344a;super(_0x3b13f5);const _0x7b8825=_0x3b13f5[_0x4d4eb5(0x1eb)][_0x4d4eb5(0x1fc)](_0x4d4eb5(0x1ee))[_0x4d4eb5(0x1fa)];this[_0x4d4eb5(0x1ea)](_0x4d4eb5(0x1f1))['to'](_0x7b8825,_0x4d4eb5(0x1ec)),this[_0x4d4eb5(0x1f3)]=!0x0;}[_0x55befb(0x1f9)](){const _0x1726c7=_0x55befb,_0x1bd98c=this[_0x1726c7(0x1f8)][_0x1726c7(0x1eb)][_0x1726c7(0x1fc)](_0x1726c7(0x1ee))[_0x1726c7(0x1fa)];_0x1bd98c[_0x1726c7(0x1ec)]=!_0x1bd98c[_0x1726c7(0x1ec)];}}
|
|
@@ -161,6 +161,29 @@ export interface AIQuickActionsConfig {
|
|
|
161
161
|
* ```
|
|
162
162
|
*/
|
|
163
163
|
removeCommands?: Array<string>;
|
|
164
|
+
/**
|
|
165
|
+
* Whether to enable search functionality in the AI Quick Actions dropdown.
|
|
166
|
+
*
|
|
167
|
+
* When enabled, users can search through available quick actions using a search input field.
|
|
168
|
+
* When disabled, the search input is hidden and all actions are displayed in a list.
|
|
169
|
+
*
|
|
170
|
+
* @default true
|
|
171
|
+
*
|
|
172
|
+
* ```ts
|
|
173
|
+
* ClassicEditor
|
|
174
|
+
* .create( editorElement, {
|
|
175
|
+
* // ... Other configuration options ...
|
|
176
|
+
* ai: {
|
|
177
|
+
* quickActions: {
|
|
178
|
+
* isSearchEnabled: false
|
|
179
|
+
* }
|
|
180
|
+
* }
|
|
181
|
+
* } )
|
|
182
|
+
* .then( ... )
|
|
183
|
+
* .catch( ... );
|
|
184
|
+
* ```
|
|
185
|
+
*/
|
|
186
|
+
isSearchEnabled?: boolean;
|
|
164
187
|
}
|
|
165
188
|
/**
|
|
166
189
|
* Defines a custom AI quick action with all required properties.
|
|
@@ -200,7 +223,7 @@ export interface AIQuickActionsConfig {
|
|
|
200
223
|
*}
|
|
201
224
|
* ```
|
|
202
225
|
*/
|
|
203
|
-
export type AICustomQuickActionDefinition = Required<Pick<AIQuickActionDefinition, 'id' | 'displayedPrompt' | 'prompt' | 'type'>> & {
|
|
226
|
+
export type AICustomQuickActionDefinition = Required<Pick<AIQuickActionDefinition, 'id' | 'displayedPrompt' | 'prompt' | 'type' | 'model'>> & {
|
|
204
227
|
requiresContent?: boolean;
|
|
205
228
|
};
|
|
206
229
|
export type AIQuickActionRequestData = Pick<AIQuickActionDefinition, 'id' | 'displayedPrompt'>;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5ea24b=_0xd094;(function(_0x369bcc,_0x2de46d){var _0xa5e9ae=_0xd094,_0x356e92=_0x369bcc();while(!![]){try{var _0x4ae56f=-parseInt(_0xa5e9ae(0x123))/0x1*(-parseInt(_0xa5e9ae(0x122))/0x2)+-parseInt(_0xa5e9ae(0x120))/0x3+-parseInt(_0xa5e9ae(0x130))/0x4*(-parseInt(_0xa5e9ae(0x129))/0x5)+-parseInt(_0xa5e9ae(0x127))/0x6+parseInt(_0xa5e9ae(0x125))/0x7+parseInt(_0xa5e9ae(0x121))/0x8*(-parseInt(_0xa5e9ae(0x12e))/0x9)+parseInt(_0xa5e9ae(0x126))/0xa;if(_0x4ae56f===_0x2de46d)break;else _0x356e92['push'](_0x356e92['shift']());}catch(_0x28de38){_0x356e92['push'](_0x356e92['shift']());}}}(_0x47d8,0x960aa));import{Plugin as _0x3d60d9}from'ckeditor5/src/core.js';import{AIQuickActionsUI as _0x284ba6}from'./aiquickactionsui.js';import{AIQuickActionsEditing as _0x374c77}from'./aiquickactionsediting.js';function _0xd094(_0x430b30,_0x2500c2){var _0x47d848=_0x47d8();return _0xd094=function(_0xd094ad,_0x100158){_0xd094ad=_0xd094ad-0x120;var _0x14316e=_0x47d848[_0xd094ad];return _0x14316e;},_0xd094(_0x430b30,_0x2500c2);}function _0x47d8(){var _0x32183c=['config','54774hLhItp','pluginName','21316Zbmeci','requires','1072800JskKpM','1528FDVTwq','29908xnJLBk','13rLHajk','define','418845ORWisR','18251300LLAVLI','5583816YDXwdu','isOfficialPlugin','925CGbKMV','ai.quickActions','isPremiumPlugin','AIQuickActions'];_0x47d8=function(){return _0x32183c;};return _0x47d8();}import{AIActions as _0x3578ed}from'../aiactions/aiactions.js';export class AIQuickActions extends _0x3d60d9{static get[_0x5ea24b(0x131)](){return[_0x284ba6,_0x374c77,_0x3578ed];}static get[_0x5ea24b(0x12f)](){var _0x209502=_0x5ea24b;return _0x209502(0x12c);}static get[_0x5ea24b(0x128)](){return!0x0;}static get[_0x5ea24b(0x12b)](){return!0x0;}constructor(_0x2e1760){var _0x4ddb86=_0x5ea24b;super(_0x2e1760),_0x2e1760[_0x4ddb86(0x12d)][_0x4ddb86(0x124)](_0x4ddb86(0x12a),{'extraCommands':[],'removeCommands':[],'isSearchEnabled':!0x0});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c9e5a=_0x2db2;(function(_0x313ef7,_0x2f06db){const _0x108dbc=_0x2db2,_0x57229a=_0x313ef7();while(!![]){try{const _0x3a5ede=parseInt(_0x108dbc(0x8c))/0x1*(parseInt(_0x108dbc(0xab))/0x2)+-parseInt(_0x108dbc(0xb1))/0x3*(-parseInt(_0x108dbc(0x99))/0x4)+parseInt(_0x108dbc(0x81))/0x5*(-parseInt(_0x108dbc(0x92))/0x6)+parseInt(_0x108dbc(0xa9))/0x7+-parseInt(_0x108dbc(0x94))/0x8*(parseInt(_0x108dbc(0x79))/0x9)+-parseInt(_0x108dbc(0x83))/0xa*(-parseInt(_0x108dbc(0x9b))/0xb)+-parseInt(_0x108dbc(0x90))/0xc*(parseInt(_0x108dbc(0x7c))/0xd);if(_0x3a5ede===_0x2f06db)break;else _0x57229a['push'](_0x57229a['shift']());}catch(_0x576b63){_0x57229a['push'](_0x57229a['shift']());}}}(_0x1985,0x1d76c));function _0x2db2(_0x17607e,_0x1cb096){const _0x19854b=_0x1985();return _0x2db2=function(_0x2db2f6,_0x3ba2c1){_0x2db2f6=_0x2db2f6-0x79;let _0x20713d=_0x19854b[_0x2db2f6];return _0x20713d;},_0x2db2(_0x17607e,_0x1cb096);}import{Command as _0x3d61d8}from'ckeditor5/src/core.js';import{CKEditorError as _0x2f8e70,first as _0x2e28a1}from'ckeditor5/src/utils.js';import{AIQuickActionType as _0x312bbf}from'./aiquickactionsui.js';import{getTranslation as _0x48d119}from'../aicore/utils/common-translations.js';function _0x1985(){const _0x51433f=['type','executeAction','has','log','execute','_expandSelectionIfCollapsed','AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','1041117yzbVvA','ai-quick-actions-plugin-not-found','2lqTuZj','AIChatController','displayedPrompt','startConversation','editor','schema','6069lyMhaQ','activateTab','document','other','addSelectionToChatContext','AIReviewMode','prompt','sendMessage','254673ykNSpf','ACTION','get','507689ggumJH','focusPromptInput','model','REVIEW','selection','5jsjJvV','parent','835910PYIuzH','plugins','locale','handleAIReviewAction','getSelectedBlocks','_handleAIReviewAction','_handleAIActionsAction','isCollapsed','icon','184447KXvhIR','chat','ask-ai','setSelection','48nxdwNJ','label','14604zoJcQd','view','40IvZVjb','AITabs','AIActions','CHAT','_handleAIChatAction','8qmGFAz','removeSelectionFromChatContext','11bqVzGe','actionName','args','AIChat','_handleAIActionsActionLabel','getLimitElement','change'];_0x1985=function(){return _0x51433f;};return _0x1985();}export class AIQuickActionsCommand extends _0x3d61d8{[_0x5c9e5a(0xa6)](_0x2a646d){const _0xf823a5=_0x5c9e5a;switch(this[_0xf823a5(0xa7)](),_0x2a646d[_0xf823a5(0xa2)]){case _0x312bbf[_0xf823a5(0x97)]:if(!this[_0xf823a5(0xaf)][_0xf823a5(0x84)][_0xf823a5(0xa4)](_0xf823a5(0x9e))){const _0x4ea34f=_0x48d119(this[_0xf823a5(0xaf)][_0xf823a5(0x85)],_0xf823a5(0xa8),_0xf823a5(0x9e));throw new _0x2f8e70(_0xf823a5(0xaa),this[_0xf823a5(0xaf)],{'errorMessage':_0x4ea34f});}this[_0xf823a5(0x98)](_0x2a646d);break;case _0x312bbf[_0xf823a5(0x7a)]:if(!this[_0xf823a5(0xaf)][_0xf823a5(0x84)][_0xf823a5(0xa4)](_0xf823a5(0x96))){const _0x337de9=_0x48d119(this[_0xf823a5(0xaf)][_0xf823a5(0x85)],_0xf823a5(0xa8),_0xf823a5(0x96));throw new _0x2f8e70(_0xf823a5(0xaa),this[_0xf823a5(0xaf)],{'errorMessage':_0x337de9});}this[_0xf823a5(0x89)](_0x2a646d);break;case _0x312bbf[_0xf823a5(0x7f)]:if(!this[_0xf823a5(0xaf)][_0xf823a5(0x84)][_0xf823a5(0xa4)](_0xf823a5(0xb6))){const _0x526f84=_0x48d119(this[_0xf823a5(0xaf)][_0xf823a5(0x85)],_0xf823a5(0xa8),_0xf823a5(0xb6));throw new _0x2f8e70(_0xf823a5(0xaa),this[_0xf823a5(0xaf)],{'errorMessage':_0x526f84});}this[_0xf823a5(0x88)](_0x2a646d);}}async[_0x5c9e5a(0x98)](_0x254ccf){const _0x284371=_0x5c9e5a,_0x1ceba3=this[_0x284371(0xaf)][_0x284371(0x84)][_0x284371(0x7b)](_0x284371(0x9e)),_0x24db92=this[_0x284371(0xaf)][_0x284371(0x84)][_0x284371(0x7b)](_0x284371(0xac));if(this[_0x284371(0xaf)][_0x284371(0x84)][_0x284371(0x7b)](_0x284371(0x95))[_0x284371(0x93)][_0x284371(0xb2)](_0x284371(0x8d)),_0x284371(0x8e)===_0x254ccf['id'])_0x24db92[_0x284371(0x9a)](),await _0x1ceba3[_0x284371(0xb5)](),_0x1ceba3[_0x284371(0x7d)]();else await _0x1ceba3[_0x284371(0xae)](),_0x24db92[_0x284371(0x9a)](),await _0x1ceba3[_0x284371(0xb5)](),_0x1ceba3[_0x284371(0x7d)](),await _0x1ceba3[_0x284371(0xb8)]({'message':_0x254ccf[_0x284371(0xb7)]||_0x254ccf[_0x284371(0xad)],'quickActionData':{'id':_0x254ccf['id'],'displayedPrompt':_0x254ccf[_0x284371(0xad)]}});}[_0x5c9e5a(0xa7)](){const _0x1e455f=_0x5c9e5a,_0xc2757c=this[_0x1e455f(0xaf)],_0x24c323=_0xc2757c[_0x1e455f(0x7e)][_0x1e455f(0xb3)][_0x1e455f(0x80)];if(!_0x24c323[_0x1e455f(0x8a)])return;const _0x567529=_0x2e28a1(_0x24c323[_0x1e455f(0x87)]())||_0xc2757c[_0x1e455f(0x7e)][_0x1e455f(0xb0)][_0x1e455f(0xa0)](_0x24c323);_0xc2757c[_0x1e455f(0x7e)][_0x1e455f(0xa1)](_0x3c2461=>{const _0x4924bc=_0x1e455f;_0x3c2461[_0x4924bc(0x8f)](_0x567529,'in');});}[_0x5c9e5a(0x9f)](_0x40384e){const _0x1074ae=_0x5c9e5a;return _0x40384e[_0x1074ae(0x82)]?.[_0x1074ae(0x91)]&&_0x1074ae(0xb4)!==_0x40384e[_0x1074ae(0x82)]?.['id']?_0x40384e[_0x1074ae(0x82)][_0x1074ae(0x91)]+':\x20'+_0x40384e[_0x1074ae(0xad)]:_0x40384e[_0x1074ae(0xad)];}async[_0x5c9e5a(0x89)](_0x3b93f8){const _0x3df8d9=_0x5c9e5a,_0x29508c=this[_0x3df8d9(0xaf)][_0x3df8d9(0x84)][_0x3df8d9(0x7b)](_0x3df8d9(0x96)),_0x4ff3bf=_0x3b93f8[_0x3df8d9(0xb7)]?{'userMessage':_0x3b93f8[_0x3df8d9(0xb7)],'model':_0x3b93f8[_0x3df8d9(0x7e)]}:{'actionName':_0x3b93f8[_0x3df8d9(0x9c)]||_0x3b93f8['id'],'args':_0x3b93f8[_0x3df8d9(0x9d)]},_0x30ad69=this[_0x3df8d9(0x9f)](_0x3b93f8);await _0x29508c[_0x3df8d9(0xa3)](_0x4ff3bf,_0x30ad69,_0x3b93f8[_0x3df8d9(0x8b)]);}async[_0x5c9e5a(0x88)](_0x3bccb0){const _0x173191=_0x5c9e5a;console[_0x173191(0xa5)](_0x173191(0x86),_0x3bccb0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1f7e(){const _0x9cad97=['AIChat','30491FbIwJM','630553wOazGL','pluginName','removeSelectionFromChatContext','add','editor','document','commands','8UKuDEu','aiQuickAction','2160710ayKrtV','model','isPremiumPlugin','directChange','AIQuickActionsEditing','selection','change:range','3038574OSbjJP','1585191KEtPxs','plugins','388452EKBhtq','has','init','6809864ssrTQs','get','isOfficialPlugin'];_0x1f7e=function(){return _0x9cad97;};return _0x1f7e();}const _0x158b7b=_0x4f69;(function(_0x5df58b,_0x564581){const _0x3ac689=_0x4f69,_0x440495=_0x5df58b();while(!![]){try{const _0x35db02=parseInt(_0x3ac689(0x12d))/0x1*(-parseInt(_0x3ac689(0x135))/0x2)+parseInt(_0x3ac689(0x124))/0x3+-parseInt(_0x3ac689(0x126))/0x4+parseInt(_0x3ac689(0x11c))/0x5+parseInt(_0x3ac689(0x123))/0x6+-parseInt(_0x3ac689(0x12e))/0x7+-parseInt(_0x3ac689(0x129))/0x8;if(_0x35db02===_0x564581)break;else _0x440495['push'](_0x440495['shift']());}catch(_0x2be18c){_0x440495['push'](_0x440495['shift']());}}}(_0x1f7e,0x4ad93));function _0x4f69(_0x5e70fe,_0x2a80e7){const _0x1f7eab=_0x1f7e();return _0x4f69=function(_0x4f694e,_0x14775c){_0x4f694e=_0x4f694e-0x11b;let _0x2766aa=_0x1f7eab[_0x4f694e];return _0x2766aa;},_0x4f69(_0x5e70fe,_0x2a80e7);}import{Plugin as _0x444aaf}from'ckeditor5/src/core.js';import{AIQuickActionsCommand as _0x453ea7}from'./aiquickactionscommand.js';export class AIQuickActionsEditing extends _0x444aaf{static get[_0x158b7b(0x12f)](){const _0x52e206=_0x158b7b;return _0x52e206(0x120);}static get[_0x158b7b(0x12b)](){return!0x0;}static get[_0x158b7b(0x11e)](){return!0x0;}[_0x158b7b(0x128)](){const _0x56d1ab=_0x158b7b,_0x713ddb=this[_0x56d1ab(0x132)],_0x12af62=new _0x453ea7(this[_0x56d1ab(0x132)]);if(_0x713ddb[_0x56d1ab(0x134)][_0x56d1ab(0x131)](_0x56d1ab(0x11b),_0x12af62),_0x713ddb[_0x56d1ab(0x125)][_0x56d1ab(0x127)](_0x56d1ab(0x12c))){const _0x25996c=this[_0x56d1ab(0x132)][_0x56d1ab(0x125)][_0x56d1ab(0x12a)](_0x56d1ab(0x12c));_0x713ddb[_0x56d1ab(0x11d)][_0x56d1ab(0x133)][_0x56d1ab(0x121)]['on'](_0x56d1ab(0x122),(_0x2be154,_0x3ecfe6)=>{const _0x4b3305=_0x56d1ab;_0x3ecfe6[_0x4b3305(0x11f)]&&_0x25996c[_0x4b3305(0x130)]();});}}}
|
|
@@ -70,7 +70,7 @@ export declare class AIQuickActionsUI extends Plugin {
|
|
|
70
70
|
*
|
|
71
71
|
* @inheritDoc
|
|
72
72
|
*/
|
|
73
|
-
init(): void
|
|
73
|
+
init(): Promise<void>;
|
|
74
74
|
/**
|
|
75
75
|
* Returns the default quick actions configuration.
|
|
76
76
|
*
|
|
@@ -110,6 +110,10 @@ export type AIQuickActionsGroupDefinition = {
|
|
|
110
110
|
* its type to determine the execution interface (chat, balloon, or review).
|
|
111
111
|
*/
|
|
112
112
|
export type AIQuickActionDefinition = {
|
|
113
|
+
/**
|
|
114
|
+
* Whether the action is enabled.
|
|
115
|
+
*/
|
|
116
|
+
isEnabled?: boolean;
|
|
113
117
|
/**
|
|
114
118
|
* Unique identifier for the action.
|
|
115
119
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3adbcf=_0x2e81;(function(_0xebeb73,_0x6e1c6b){const _0x3bda00=_0x2e81,_0x17acee=_0xebeb73();while(!![]){try{const _0x2e1739=-parseInt(_0x3bda00(0xd2))/0x1*(-parseInt(_0x3bda00(0x104))/0x2)+-parseInt(_0x3bda00(0xdb))/0x3*(parseInt(_0x3bda00(0x105))/0x4)+parseInt(_0x3bda00(0xcf))/0x5+parseInt(_0x3bda00(0x123))/0x6+-parseInt(_0x3bda00(0xdd))/0x7*(parseInt(_0x3bda00(0x98))/0x8)+parseInt(_0x3bda00(0xaa))/0x9*(-parseInt(_0x3bda00(0x11f))/0xa)+parseInt(_0x3bda00(0xfb))/0xb;if(_0x2e1739===_0x6e1c6b)break;else _0x17acee['push'](_0x17acee['shift']());}catch(_0x52d3f9){_0x17acee['push'](_0x17acee['shift']());}}}(_0x1879,0x23d8f));import{IconAIAdjustLength as _0x2df25a,IconAIChangeTone as _0x428948,IconAIChatCommands as _0x332eb6,IconAIContinueWriting as _0x4125bd,IconAIGrammarCheck as _0x3040d3,IconAIImproveWriting as _0x151391,IconAIOther as _0x90b91d,IconAIQuickActions as _0x54d85c,IconAITranslate as _0x599106}from'@ckeditor/ckeditor5-icons';function _0x2e81(_0x52a404,_0x212eaa){const _0x187989=_0x1879();return _0x2e81=function(_0x2e81f3,_0x2f5ac3){_0x2e81f3=_0x2e81f3-0x91;let _0x482372=_0x187989[_0x2e81f3];return _0x482372;},_0x2e81(_0x52a404,_0x212eaa);}import{Plugin as _0x353bdc}from'ckeditor5/src/core.js';function _0x1879(){const _0x749a79=['English','DisplayNames','displayedPrompt','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','make-tone-casual','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','9FslLjZ','fix-grammar','541009tYtkwh','buttonView','focus','translate-to-korean','replace','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','AI_QUICK_ACTIONS_ADJUST_LENGTH','chat-commands','make-shorter','adjust-length','french','delegate','componentFactory','aiQuickActions','type','includes','uiLanguage','attachToDom','length','AIQuickActionsUI','AI_QUICK_ACTIONS_MORE_DIRECT','_getDefaultAndCustomActions','explain','AIChat','AI_QUICK_ACTIONS_CONTINUE_WRITING','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','german','make-tone-friendly','_initializeQuickActionsDropdown','ai.quickActions.removeCommands','2131162NSUGGd','AIReviewMode','execute','AI_QUICK_ACTIONS_TRANSLATE','view','translate-to-russian','init','AI_QUICK_ACTIONS_MORE_CONFIDENT','editor','2gVxwpG','125288edNyXi','AI_QUICK_ACTIONS_HEADING','actions','continue','_initializeQuickActionsMenuBar','ai.quickActions.extraCommands','items','label','editing','map','icon','menuBarView','make-longer','chinese','push','REVIEW','isOfficialPlugin','make-tone-professional','AI_QUICK_ACTIONS_MAKE_LONGER','set','getDefaultQuickActions','_executeQuickAction','AI_QUICK_ACTIONS_CHAT_COMMANDS','make-tone-confident','has','highlight-key-points','380YBXKxk','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','close','change-tone','1713186EHWaiB','panelView','russian','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','AI_QUICK_ACTIONS_MORE_FRIENDLY','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','AI_QUICK_ACTIONS_EXPLAIN','AI_QUICK_ACTIONS_MORE_CASUAL','requires','CHAT','menu','translate-to-chinese','language','add','8HVpwxx','<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>','forEach','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','AI_QUICK_ACTIONS_TRANSLATE_SPANISH','english','AI_QUICK_ACTIONS_IMPROVE_WRITING','translate','pluginName','make-tone-direct','menuitem','_shouldIncludeAction','filter','_initializeQuickActionsComponentsAndCommands','translate-to-italian','menuBar:aiQuickActions','translate-to-french','some','47412yrHKFw','AI_QUICK_ACTIONS_ASK_AI','values','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','AI_QUICK_ACTIONS_TRANSLATE_GERMAN','other','find','AI_QUICK_ACTIONS_SUMMARIZE','commands','portuguese','<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>','plugins','spanish','translate-to-spanish','locale','isPremiumPlugin','ACTION','italian','AIActions','config','translate-to-portuguese','_quickActionsDefinition','korean','translate-to-japanese','japanese','AI_QUICK_ACTIONS_CHANGE_TONE','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','children','improve-writing','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','AI_QUICK_ACTIONS_MAKE_SHORTER','summarize','get','_initializeQuickActionsComponents','ask-ai','aiQuickAction','translate-to-german','192315AIWIep','AI_QUICK_ACTIONS_OTHER','<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>','532zxSfYz','translate-to-english','_prepareQuickActionsDefinition'];_0x1879=function(){return _0x749a79;};return _0x1879();}import{getTranslation as _0x4f9d0d}from'../aicore/utils/common-translations.js';import{aiQuickActionsDropdownCreator as _0x2d5d17}from'./ui/aiquickactionsdropdowncreator.js';import{aiQuickActionsButtonCreator as _0x16d319}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0x58ec7a,BalloonToolbar as _0x16d7c2,MenuBarMenuView as _0x23c2d7,MenuBarMenuListView as _0x49b08e,MenuBarMenuListItemView as _0x4af353,MenuBarMenuListItemButtonView as _0x5a5ab1}from'ckeditor5/src/ui.js';import'../../theme/aiquickactions/aiquickactions.css';const Ft=_0x3adbcf(0xb4),Wt=_0x3adbcf(0x99),Bt=_0x3adbcf(0xd1);export var AIQuickActionType;!function(_0x3504bf){const _0x46a503=_0x3adbcf;_0x3504bf[_0x46a503(0x93)]=_0x46a503(0x93),_0x3504bf[_0x46a503(0xba)]=_0x46a503(0xba),_0x3504bf[_0x46a503(0x114)]=_0x46a503(0x114);}(AIQuickActionType||(AIQuickActionType={}));export var AIQuickActionTypeToPluginName;!function(_0x285ec3){const _0x127fd9=_0x3adbcf;_0x285ec3[_0x127fd9(0x93)]=_0x127fd9(0xf4),_0x285ec3[_0x127fd9(0xba)]=_0x127fd9(0xbc),_0x285ec3[_0x127fd9(0x114)]=_0x127fd9(0xfc);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));export class AIQuickActionsUI extends _0x353bdc{static get[_0x3adbcf(0x92)](){return[_0x16d7c2];}static get[_0x3adbcf(0xa0)](){const _0x5dac2d=_0x3adbcf;return _0x5dac2d(0xf0);}static get[_0x3adbcf(0x115)](){return!0x0;}static get[_0x3adbcf(0xb9)](){return!0x0;}[_0x3adbcf(0x101)](){const _0x51c980=_0x3adbcf;this[_0x51c980(0xd4)](this[_0x51c980(0xf2)]()),this[_0x51c980(0xa5)]();}static[_0x3adbcf(0x119)](_0x4104ac){return function(_0x5a3d57){const _0x1fc602=_0x2e81,_0x5f3c85=new Intl[(_0x1fc602(0xd6))](['en'],{'type':_0x1fc602(0x96)})['of'](_0x5a3d57[_0x1fc602(0xed)]),_0x3eee4f=_0x5f3c85||_0x1fc602(0xd5),_0x561aa3=[{'id':_0x1fc602(0xcc),'displayedPrompt':_0x4f9d0d(_0x5a3d57,_0x1fc602(0xab)),'type':AIQuickActionType[_0x1fc602(0x93)],'icon':_0x332eb6},{'id':_0x1fc602(0xe4),'label':_0x4f9d0d(_0x5a3d57,_0x1fc602(0x11b)),'icon':_0x332eb6,'actions':[{'id':_0x1fc602(0xf3),'displayedPrompt':_0x4f9d0d(_0x5a3d57,_0x1fc602(0x129)),'prompt':Ft[_0x1fc602(0xe1)]('%0',_0x3eee4f),'type':AIQuickActionType[_0x1fc602(0x93)]},{'id':_0x1fc602(0xc9),'displayedPrompt':_0x4f9d0d(_0x5a3d57,_0x1fc602(0xb1)),'prompt':Wt[_0x1fc602(0xe1)]('%0',_0x3eee4f),'type':AIQuickActionType[_0x1fc602(0x93)]},{'id':_0x1fc602(0x11e),'displayedPrompt':_0x4f9d0d(_0x5a3d57,_0x1fc602(0x128)),'prompt':Bt[_0x1fc602(0xe1)]('%0',_0x3eee4f),'type':AIQuickActionType[_0x1fc602(0x93)]}]},{'id':_0x1fc602(0xc6),'displayedPrompt':_0x4f9d0d(_0x5a3d57,_0x1fc602(0x9e)),'type':AIQuickActionType[_0x1fc602(0xba)],'icon':_0x151391},{'id':_0x1fc602(0x108),'displayedPrompt':_0x4f9d0d(_0x5a3d57,_0x1fc602(0xf5)),'type':AIQuickActionType[_0x1fc602(0xba)],'icon':_0x4125bd},{'id':_0x1fc602(0xdc),'displayedPrompt':_0x4f9d0d(_0x5a3d57,_0x1fc602(0x9b)),'type':AIQuickActionType[_0x1fc602(0xba)],'icon':_0x3040d3},{'id':_0x1fc602(0xe6),'label':_0x4f9d0d(_0x5a3d57,_0x1fc602(0xe3)),'icon':_0x2df25a,'actions':[{'id':_0x1fc602(0xe5),'displayedPrompt':_0x4f9d0d(_0x5a3d57,_0x1fc602(0xc8)),'type':AIQuickActionType[_0x1fc602(0xba)]},{'id':_0x1fc602(0x111),'displayedPrompt':_0x4f9d0d(_0x5a3d57,_0x1fc602(0x117)),'type':AIQuickActionType[_0x1fc602(0xba)]}]},{'id':_0x1fc602(0x122),'label':_0x4f9d0d(_0x5a3d57,_0x1fc602(0xc3)),'icon':_0x428948,'actions':[{'id':_0x1fc602(0xd9),'displayedPrompt':_0x4f9d0d(_0x5a3d57,_0x1fc602(0x91)),'type':AIQuickActionType[_0x1fc602(0xba)]},{'id':_0x1fc602(0xa1),'displayedPrompt':_0x4f9d0d(_0x5a3d57,_0x1fc602(0xf1)),'type':AIQuickActionType[_0x1fc602(0xba)]},{'id':_0x1fc602(0xf8),'displayedPrompt':_0x4f9d0d(_0x5a3d57,_0x1fc602(0x127)),'type':AIQuickActionType[_0x1fc602(0xba)]},{'id':_0x1fc602(0x11c),'displayedPrompt':_0x4f9d0d(_0x5a3d57,_0x1fc602(0x102)),'type':AIQuickActionType[_0x1fc602(0xba)]},{'id':_0x1fc602(0x116),'displayedPrompt':_0x4f9d0d(_0x5a3d57,_0x1fc602(0x126)),'type':AIQuickActionType[_0x1fc602(0xba)]}]},{'id':_0x1fc602(0x9f),'label':_0x4f9d0d(_0x5a3d57,_0x1fc602(0xfe)),'icon':_0x599106,'actions':[{'id':_0x1fc602(0xd3),'displayedPrompt':_0x4f9d0d(_0x5a3d57,_0x1fc602(0xc7)),'type':AIQuickActionType[_0x1fc602(0xba)],'actionName':_0x1fc602(0x9f),'args':{'language':_0x1fc602(0x9d)}},{'id':_0x1fc602(0x95),'displayedPrompt':_0x4f9d0d(_0x5a3d57,_0x1fc602(0x120)),'type':AIQuickActionType[_0x1fc602(0xba)],'actionName':_0x1fc602(0x9f),'args':{'language':_0x1fc602(0x112)}},{'id':_0x1fc602(0xb7),'displayedPrompt':_0x4f9d0d(_0x5a3d57,_0x1fc602(0x9c)),'type':AIQuickActionType[_0x1fc602(0xba)],'actionName':_0x1fc602(0x9f),'args':{'language':_0x1fc602(0xb6)}},{'id':_0x1fc602(0xce),'displayedPrompt':_0x4f9d0d(_0x5a3d57,_0x1fc602(0xae)),'type':AIQuickActionType[_0x1fc602(0xba)],'actionName':_0x1fc602(0x9f),'args':{'language':_0x1fc602(0xf7)}},{'id':_0x1fc602(0xa8),'displayedPrompt':_0x4f9d0d(_0x5a3d57,_0x1fc602(0xda)),'type':AIQuickActionType[_0x1fc602(0xba)],'actionName':_0x1fc602(0x9f),'args':{'language':_0x1fc602(0xe7)}},{'id':_0x1fc602(0xc1),'displayedPrompt':_0x4f9d0d(_0x5a3d57,_0x1fc602(0xad)),'type':AIQuickActionType[_0x1fc602(0xba)],'actionName':_0x1fc602(0x9f),'args':{'language':_0x1fc602(0xc2)}},{'id':_0x1fc602(0xbe),'displayedPrompt':_0x4f9d0d(_0x5a3d57,_0x1fc602(0xd8)),'type':AIQuickActionType[_0x1fc602(0xba)],'actionName':_0x1fc602(0x9f),'args':{'language':_0x1fc602(0xb3)}},{'id':_0x1fc602(0xe0),'displayedPrompt':_0x4f9d0d(_0x5a3d57,_0x1fc602(0xf6)),'type':AIQuickActionType[_0x1fc602(0xba)],'actionName':_0x1fc602(0x9f),'args':{'language':_0x1fc602(0xc0)}},{'id':_0x1fc602(0xa6),'displayedPrompt':_0x4f9d0d(_0x5a3d57,_0x1fc602(0xe2)),'type':AIQuickActionType[_0x1fc602(0xba)],'actionName':_0x1fc602(0x9f),'args':{'language':_0x1fc602(0xbb)}},{'id':_0x1fc602(0x100),'displayedPrompt':_0x4f9d0d(_0x5a3d57,_0x1fc602(0xc4)),'type':AIQuickActionType[_0x1fc602(0xba)],'actionName':_0x1fc602(0x9f),'args':{'language':_0x1fc602(0x125)}}]},{'id':_0x1fc602(0xaf),'label':_0x4f9d0d(_0x5a3d57,_0x1fc602(0xd0)),'icon':_0x90b91d,'actions':[]}];return _0x561aa3;}(_0x4104ac);}[_0x3adbcf(0xf2)](){const _0x2762e9=_0x3adbcf,_0x1eb50c=AIQuickActionsUI[_0x2762e9(0x119)](this[_0x2762e9(0x103)][_0x2762e9(0xb8)]),_0x5523cd=(this[_0x2762e9(0x103)][_0x2762e9(0xbd)][_0x2762e9(0xca)](_0x2762e9(0x10a))||[])[_0x2762e9(0x10e)](_0x43dadc=>({..._0x43dadc,'icon':void 0x0}));return _0x1eb50c[_0x2762e9(0xb0)](_0x12a89b=>_0x2762e9(0xaf)===_0x12a89b['id'])[_0x2762e9(0x107)][_0x2762e9(0x113)](..._0x5523cd),_0x1eb50c;}[_0x3adbcf(0xa5)](){const _0x334f4b=_0x3adbcf,_0xbd0ea9=new _0x58ec7a(this[_0x334f4b(0x103)][_0x334f4b(0xb8)]);_0xbd0ea9[_0x334f4b(0xee)](),this[_0x334f4b(0xf9)](_0xbd0ea9),this[_0x334f4b(0x109)](),this[_0x334f4b(0xcb)](_0xbd0ea9);}[_0x3adbcf(0xf9)](_0x56dd8d){const _0xe1cfc=_0x3adbcf;this[_0xe1cfc(0x103)]['ui'][_0xe1cfc(0xe9)][_0xe1cfc(0x97)](_0xe1cfc(0xea),_0x2d5d17(this[_0xe1cfc(0x103)],this[_0xe1cfc(0xbf)],{'icon':_0x54d85c,'label':_0x4f9d0d(this[_0xe1cfc(0x103)][_0xe1cfc(0xb8)],_0xe1cfc(0x106))},_0x56dd8d));}[_0x3adbcf(0xd4)](_0x47e4c8){const _0x2666fa=_0x3adbcf;this[_0x2666fa(0xbf)]=_0x47e4c8[_0x2666fa(0x10e)](_0x539ff8=>{const _0x5e6b4d=_0x2666fa;if(_0x5e6b4d(0x107)in _0x539ff8){const _0x5de8d0=_0x539ff8;return{..._0x5de8d0,'actions':_0x5de8d0[_0x5e6b4d(0x107)][_0x5e6b4d(0x10e)](_0x119859=>{const {actions:_0x16d4c1,..._0x11e49d}=_0x5de8d0;return{..._0x119859,'parent':_0x11e49d};})[_0x5e6b4d(0xa4)](_0x34d7a4=>this[_0x5e6b4d(0xa3)](_0x34d7a4))};}return _0x539ff8;})[_0x2666fa(0xa4)](_0x51e43b=>_0x2666fa(0x107)in _0x51e43b?_0x51e43b[_0x2666fa(0x107)][_0x2666fa(0xef)]>0x0:this[_0x2666fa(0xa3)](_0x51e43b));}[_0x3adbcf(0xa3)](_0x21d0db){const _0x47cfa6=_0x3adbcf,_0x325ca7=this[_0x47cfa6(0x103)][_0x47cfa6(0xbd)][_0x47cfa6(0xca)](_0x47cfa6(0xfa))||[];return this[_0x47cfa6(0x103)][_0x47cfa6(0xb5)][_0x47cfa6(0x11d)](AIQuickActionTypeToPluginName[_0x21d0db[_0x47cfa6(0xeb)]])&&!_0x325ca7[_0x47cfa6(0xec)](_0x21d0db['id']);}[_0x3adbcf(0xcb)](_0x556a11){const _0x411c87=_0x3adbcf;this[_0x411c87(0xbf)][_0x411c87(0x9a)](_0x32a943=>{const _0x424a01=_0x411c87;if(_0x424a01(0x107)in _0x32a943){const _0x5a8bda=_0x2d5d17(this[_0x424a01(0x103)],_0x32a943[_0x424a01(0x107)],_0x32a943,_0x556a11);this[_0x424a01(0x103)]['ui'][_0x424a01(0xe9)][_0x424a01(0x97)](_0x32a943['id'],_0x5a8bda),_0x32a943[_0x424a01(0x107)][_0x424a01(0x9a)](_0x3d5901=>{const _0x5d09c1=_0x424a01,_0x50d391=_0x16d319(this[_0x5d09c1(0x103)],_0x3d5901);this[_0x5d09c1(0x103)]['ui'][_0x5d09c1(0xe9)][_0x5d09c1(0x97)](_0x3d5901['id'],_0x50d391);});}else{const _0x49c32f=_0x16d319(this[_0x424a01(0x103)],_0x32a943,!0x1,!0x0,!0x1);this[_0x424a01(0x103)]['ui'][_0x424a01(0xe9)][_0x424a01(0x97)](_0x32a943['id'],_0x49c32f);}});}[_0x3adbcf(0x109)](){const _0x196817=_0x3adbcf;this[_0x196817(0x103)]['ui'][_0x196817(0xe9)][_0x196817(0x97)](_0x196817(0xa7),_0x37c48c=>{const _0x248509=_0x196817,_0x4fccae=new _0x23c2d7(_0x37c48c),_0x3e59c7=_0x4f9d0d(_0x37c48c,_0x248509(0x106));_0x4fccae[_0x248509(0xde)][_0x248509(0x118)]({'label':_0x3e59c7,'icon':_0x54d85c});const _0x2840c0=new _0x49b08e(_0x37c48c);_0x2840c0[_0x248509(0x118)]({'ariaLabel':_0x3e59c7,'role':_0x248509(0x94)}),this[_0x248509(0xbf)][_0x248509(0x9a)](_0x46ae2e=>{const _0x234b0c=_0x248509;if(_0x234b0c(0x107)in _0x46ae2e){const _0x45dee8=_0x46ae2e,_0x5ab5e7=new _0x4af353(_0x37c48c,_0x4fccae),_0x3ec424=new _0x23c2d7(_0x37c48c),_0x5c586d=new _0x49b08e(_0x37c48c);_0x3ec424[_0x234b0c(0xde)][_0x234b0c(0x118)]({'label':_0x45dee8[_0x234b0c(0x10c)],'icon':_0x45dee8[_0x234b0c(0x10f)]}),_0x45dee8[_0x234b0c(0x107)][_0x234b0c(0x9a)](_0x231ea5=>{const _0x23781f=_0x234b0c,_0xc12cd0=new _0x4af353(_0x37c48c,_0x3ec424),_0x3af4d8=new _0x5a5ab1(_0x37c48c);_0x3af4d8[_0x23781f(0x118)]({'label':_0x231ea5[_0x23781f(0xd7)],'icon':_0x231ea5[_0x23781f(0x10f)],'role':_0x23781f(0xa2)}),_0x3af4d8['on'](_0x23781f(0xfd),()=>{const _0x2d2863=_0x23781f;this[_0x2d2863(0x11a)](_0x231ea5);}),_0x3af4d8[_0x23781f(0xe8)](_0x23781f(0xfd))['to'](_0x3ec424),_0xc12cd0[_0x23781f(0xc5)][_0x23781f(0x97)](_0x3af4d8),_0x5c586d[_0x23781f(0x10b)][_0x23781f(0x97)](_0xc12cd0);}),_0x3ec424[_0x234b0c(0x124)][_0x234b0c(0xc5)][_0x234b0c(0x97)](_0x5c586d),_0x5ab5e7[_0x234b0c(0xc5)][_0x234b0c(0x97)](_0x3ec424),_0x2840c0[_0x234b0c(0x10b)][_0x234b0c(0x97)](_0x5ab5e7);}else{const _0x27841c=_0x46ae2e,_0x19f6fd=new _0x4af353(_0x37c48c,_0x4fccae),_0x15a019=new _0x5a5ab1(_0x37c48c);_0x15a019[_0x234b0c(0x118)]({'label':_0x27841c[_0x234b0c(0xd7)],'icon':_0x27841c[_0x234b0c(0x10f)],'role':_0x234b0c(0xa2)}),_0x15a019['on'](_0x234b0c(0xfd),()=>{const _0x338023=_0x234b0c;this[_0x338023(0x11a)](_0x27841c);}),_0x15a019[_0x234b0c(0xe8)](_0x234b0c(0xfd))['to'](_0x4fccae),_0x19f6fd[_0x234b0c(0xc5)][_0x234b0c(0x97)](_0x15a019),_0x2840c0[_0x234b0c(0x10b)][_0x234b0c(0x97)](_0x19f6fd);}});const _0x4cdab6=Object[_0x248509(0xac)](AIQuickActionTypeToPluginName)[_0x248509(0xa9)](_0x184357=>this[_0x248509(0x103)][_0x248509(0xb5)][_0x248509(0x11d)](_0x184357));return _0x4fccae[_0x248509(0x118)]({'isEnabled':_0x4cdab6}),_0x4fccae[_0x248509(0x124)][_0x248509(0xc5)][_0x248509(0x97)](_0x2840c0),_0x4fccae;});}[_0x3adbcf(0x11a)](_0x1863f3){const _0x3551de=_0x3adbcf,_0x54af21=this[_0x3551de(0x103)];_0x54af21[_0x3551de(0x10d)][_0x3551de(0xff)][_0x3551de(0xdf)](),_0x54af21[_0x3551de(0xb2)][_0x3551de(0xfd)](_0x3551de(0xcd),_0x1863f3);const _0xc67838=_0x54af21['ui'][_0x3551de(0xff)][_0x3551de(0x110)];_0xc67838&&_0xc67838[_0x3551de(0x121)]&&_0xc67838[_0x3551de(0x121)]();}}
|
|
23
|
+
const _0x20b93b=_0xb883;function _0xb883(_0x52d07e,_0x1ff1e7){const _0x360400=_0x3604();return _0xb883=function(_0xb883d4,_0x28960c){_0xb883d4=_0xb883d4-0x9d;let _0x4fa129=_0x360400[_0xb883d4];return _0x4fa129;},_0xb883(_0x52d07e,_0x1ff1e7);}(function(_0x4573b3,_0x1eb250){const _0x18cb75=_0xb883,_0x33d19b=_0x4573b3();while(!![]){try{const _0x4a352b=parseInt(_0x18cb75(0xea))/0x1*(-parseInt(_0x18cb75(0x9e))/0x2)+parseInt(_0x18cb75(0x13a))/0x3*(parseInt(_0x18cb75(0xb2))/0x4)+parseInt(_0x18cb75(0x110))/0x5+-parseInt(_0x18cb75(0xc1))/0x6*(parseInt(_0x18cb75(0xc8))/0x7)+parseInt(_0x18cb75(0xfe))/0x8+parseInt(_0x18cb75(0xbb))/0x9*(-parseInt(_0x18cb75(0xd6))/0xa)+parseInt(_0x18cb75(0x134))/0xb;if(_0x4a352b===_0x1eb250)break;else _0x33d19b['push'](_0x33d19b['shift']());}catch(_0x5b0810){_0x33d19b['push'](_0x33d19b['shift']());}}}(_0x3604,0x7cbe7));import{IconAIAdjustLength as _0x43fcbf,IconAIChangeTone as _0x3b58cc,IconAIChatCommands as _0x45a643,IconAIContinueWriting as _0x468ba8,IconAIGrammarCheck as _0x27d8b5,IconAIImproveWriting as _0x39af0c,IconAIOther as _0x5be418,IconAIQuickActions as _0x31678c,IconAITranslate as _0x40c8f7}from'@ckeditor/ckeditor5-icons';function _0x3604(){const _0x4bced4=['menuBarView','DisplayNames','ACTION','uiLanguage','editor','AIConnector','french','explain','children','delegate','_initializeQuickActionsMenuBar','AI_QUICK_ACTIONS_ASK_AI','config','English','make-tone-friendly','translate-to-russian','CHAT','init','chat-commands','ask-ai','AI_QUICK_ACTIONS_MORE_FRIENDLY','19367282MSRjRw','map','AI_QUICK_ACTIONS_CHANGE_TONE','ai-quick-actions-models-unable-to-retrieve','ai.chat.models.displayedModels','korean','437895lnvkKJ','make-tone-confident','forEach','AIReviewMode','getDefaultQuickActions','label','54330BCklQe','russian','AI_QUICK_ACTIONS_OTHER','close','includes','filter','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','translate-to-french','values','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','view','aiQuickAction','translate-to-spanish','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','model','_getDefaultAndCustomActions','actions','make-tone-direct','ai-quick-actions-unavailable-model','buttonView','4bAvzfq','AI_QUICK_ACTIONS_TRANSLATE_GERMAN','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','translate-to-korean','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','language','improve-writing','_executeQuickAction','attachToDom','82278mSmBKg','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','pluginName','_initializeQuickActionsDropdown','AI_QUICK_ACTIONS_MORE_DIRECT','summarize','3054354DIGAKt','japanese','other','isEnabled','continue','requires','make-shorter','14bdKZGn','AI_QUICK_ACTIONS_TRANSLATE','aiQuickActions','adjust-length','<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>','make-tone-casual','ai.quickActions.isSearchEnabled','REVIEW','translate-to-italian','translate-to-german','fix-grammar','AI_QUICK_ACTIONS_CONTINUE_WRITING','<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>','translate-to-portuguese','740rsjHPr','set','translate-to-chinese','plugins','menuitem','translate','AIChat','push','commands','german','menu','editing','italian','displayedPrompt','spanish','AI_QUICK_ACTIONS_MORE_CASUAL','_prepareQuickActionsDefinition','AI_QUICK_ACTIONS_HEADING','AI_QUICK_ACTIONS_MAKE_SHORTER','add','4YVPcIq','getAvailableModels','make-tone-professional','AI_QUICK_ACTIONS_IMPROVE_WRITING','AI_QUICK_ACTIONS_MORE_CONFIDENT','AI_QUICK_ACTIONS_MAKE_LONGER','items','AI_QUICK_ACTIONS_EXPLAIN','replace','ai.quickActions.extraCommands','<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>','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','find','translate-to-english','AIActions','componentFactory','AI_QUICK_ACTIONS_CHAT_COMMANDS','_shouldIncludeAction','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','english','462064bSwKWN','menuBar:aiQuickActions','AI_QUICK_ACTIONS_TRANSLATE_SPANISH','make-longer','locale','AI_QUICK_ACTIONS_ADJUST_LENGTH','execute','_quickActionsDefinition','panelView','portuguese','AI_QUICK_ACTIONS_SUMMARIZE','length','icon','AIQuickActionsUI','highlight-key-points','some','type','translate-to-japanese','1749260uYpOgK','isPremiumPlugin','isOfficialPlugin','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','get','_initializeQuickActionsComponentsAndCommands','change-tone','chinese','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','message','focus','ai.quickActions.removeCommands','has','_initializeQuickActionsComponents'];_0x3604=function(){return _0x4bced4;};return _0x3604();}import{Plugin as _0x232ab4}from'ckeditor5/src/core.js';import{CKEditorError as _0x45cb85,logError as _0x4ae99c}from'ckeditor5/src/utils.js';import{getTranslation as _0x503b87}from'../aicore/utils/common-translations.js';import{aiQuickActionsDropdownCreator as _0x30e3bc}from'./ui/aiquickactionsdropdowncreator.js';import{aiQuickActionsButtonCreator as _0x2fd7b8}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0x7ec26,BalloonToolbar as _0x300bfa,MenuBarMenuView as _0x36daa0,MenuBarMenuListView as _0x372bf9,MenuBarMenuListItemView as _0x2d48bb,MenuBarMenuListItemButtonView as _0x331272}from'ckeditor5/src/ui.js';import'../../theme/aiquickactions/aiquickactions.css';import{AIModels as _0xa64237}from'../aicore/model/aimodels.js';const Lt=_0x20b93b(0xcc),Dt=_0x20b93b(0xd4),Ht=_0x20b93b(0xf4);export var AIQuickActionType;!function(_0x3a77dc){const _0x15511f=_0x20b93b;_0x3a77dc[_0x15511f(0x12f)]=_0x15511f(0x12f),_0x3a77dc[_0x15511f(0x121)]=_0x15511f(0x121),_0x3a77dc[_0x15511f(0xcf)]=_0x15511f(0xcf);}(AIQuickActionType||(AIQuickActionType={}));export var AIQuickActionTypeToPluginName;!function(_0x497514){const _0x1c8790=_0x20b93b;_0x497514[_0x1c8790(0x12f)]=_0x1c8790(0xdc),_0x497514[_0x1c8790(0x121)]=_0x1c8790(0xf8),_0x497514[_0x1c8790(0xcf)]=_0x1c8790(0x13d);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));export class AIQuickActionsUI extends _0x232ab4{static get[_0x20b93b(0xc6)](){return[_0x300bfa];}static get[_0x20b93b(0xbd)](){const _0x38dc2f=_0x20b93b;return _0x38dc2f(0x10b);}static get[_0x20b93b(0x112)](){return!0x0;}static get[_0x20b93b(0x111)](){return!0x0;}async[_0x20b93b(0x130)](){const _0x306538=_0x20b93b,_0x174925=await this[_0x306538(0xad)]();this[_0x306538(0xe6)](_0x174925),this[_0x306538(0x115)]();}static[_0x20b93b(0x13e)](_0x295eb4){return function(_0x5815a3){const _0x2a475e=_0xb883,_0x39ca64=new Intl[(_0x2a475e(0x120))](['en'],{'type':_0x2a475e(0xb7)})['of'](_0x5815a3[_0x2a475e(0x122)]),_0x15ba9c=_0x39ca64||_0x2a475e(0x12c),_0x12230a=[{'id':_0x2a475e(0x132),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0x12a)),'type':AIQuickActionType[_0x2a475e(0x12f)],'icon':_0x45a643},{'id':_0x2a475e(0x131),'label':_0x503b87(_0x5815a3,_0x2a475e(0xfa)),'icon':_0x45a643,'actions':[{'id':_0x2a475e(0x126),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xf1)),'prompt':Lt[_0x2a475e(0xf2)]('%0',_0x15ba9c),'type':AIQuickActionType[_0x2a475e(0x12f)]},{'id':_0x2a475e(0xc0),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0x108)),'prompt':Dt[_0x2a475e(0xf2)]('%0',_0x15ba9c),'type':AIQuickActionType[_0x2a475e(0x12f)]},{'id':_0x2a475e(0x10c),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xfc)),'prompt':Ht[_0x2a475e(0xf2)]('%0',_0x15ba9c),'type':AIQuickActionType[_0x2a475e(0x12f)]}]},{'id':_0x2a475e(0xb8),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xed)),'type':AIQuickActionType[_0x2a475e(0x121)],'icon':_0x39af0c},{'id':_0x2a475e(0xc5),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xd3)),'type':AIQuickActionType[_0x2a475e(0x121)],'icon':_0x468ba8},{'id':_0x2a475e(0xd2),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xab)),'type':AIQuickActionType[_0x2a475e(0x121)],'icon':_0x27d8b5},{'id':_0x2a475e(0xcb),'label':_0x503b87(_0x5815a3,_0x2a475e(0x103)),'icon':_0x43fcbf,'actions':[{'id':_0x2a475e(0xc7),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xe8)),'type':AIQuickActionType[_0x2a475e(0x121)]},{'id':_0x2a475e(0x101),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xef)),'type':AIQuickActionType[_0x2a475e(0x121)]}]},{'id':_0x2a475e(0x116),'label':_0x503b87(_0x5815a3,_0x2a475e(0x136)),'icon':_0x3b58cc,'actions':[{'id':_0x2a475e(0xcd),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xe5)),'type':AIQuickActionType[_0x2a475e(0x121)]},{'id':_0x2a475e(0xaf),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xbf)),'type':AIQuickActionType[_0x2a475e(0x121)]},{'id':_0x2a475e(0x12d),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0x133)),'type':AIQuickActionType[_0x2a475e(0x121)]},{'id':_0x2a475e(0x13b),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xee)),'type':AIQuickActionType[_0x2a475e(0x121)]},{'id':_0x2a475e(0xec),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0x118)),'type':AIQuickActionType[_0x2a475e(0x121)]}]},{'id':_0x2a475e(0xdb),'label':_0x503b87(_0x5815a3,_0x2a475e(0xc9)),'icon':_0x40c8f7,'actions':[{'id':_0x2a475e(0xf7),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xf5)),'type':AIQuickActionType[_0x2a475e(0x121)],'actionName':_0x2a475e(0xdb),'args':{'language':_0x2a475e(0xfd)}},{'id':_0x2a475e(0xd8),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xb6)),'type':AIQuickActionType[_0x2a475e(0x121)],'actionName':_0x2a475e(0xdb),'args':{'language':_0x2a475e(0x117)}},{'id':_0x2a475e(0xaa),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0x100)),'type':AIQuickActionType[_0x2a475e(0x121)],'actionName':_0x2a475e(0xdb),'args':{'language':_0x2a475e(0xe4)}},{'id':_0x2a475e(0xd1),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xb3)),'type':AIQuickActionType[_0x2a475e(0x121)],'actionName':_0x2a475e(0xdb),'args':{'language':_0x2a475e(0xdf)}},{'id':_0x2a475e(0xa5),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xb4)),'type':AIQuickActionType[_0x2a475e(0x121)],'actionName':_0x2a475e(0xdb),'args':{'language':_0x2a475e(0x125)}},{'id':_0x2a475e(0x10f),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0x113)),'type':AIQuickActionType[_0x2a475e(0x121)],'actionName':_0x2a475e(0xdb),'args':{'language':_0x2a475e(0xc2)}},{'id':_0x2a475e(0xd5),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0x119)),'type':AIQuickActionType[_0x2a475e(0x121)],'actionName':_0x2a475e(0xdb),'args':{'language':_0x2a475e(0x107)}},{'id':_0x2a475e(0xb5),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xbc)),'type':AIQuickActionType[_0x2a475e(0x121)],'actionName':_0x2a475e(0xdb),'args':{'language':_0x2a475e(0x139)}},{'id':_0x2a475e(0xd0),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xa7)),'type':AIQuickActionType[_0x2a475e(0x121)],'actionName':_0x2a475e(0xdb),'args':{'language':_0x2a475e(0xe2)}},{'id':_0x2a475e(0x12e),'displayedPrompt':_0x503b87(_0x5815a3,_0x2a475e(0xa4)),'type':AIQuickActionType[_0x2a475e(0x121)],'actionName':_0x2a475e(0xdb),'args':{'language':_0x2a475e(0x9f)}}]},{'id':_0x2a475e(0xc3),'label':_0x503b87(_0x5815a3,_0x2a475e(0xa0)),'icon':_0x5be418,'actions':[]}];return _0x12230a;}(_0x295eb4);}async[_0x20b93b(0xad)](){const _0x21e90b=_0x20b93b,_0x49f7a9=AIQuickActionsUI[_0x21e90b(0x13e)](this[_0x21e90b(0x123)][_0x21e90b(0x102)]),_0xe40394=this[_0x21e90b(0x123)][_0x21e90b(0x12b)][_0x21e90b(0x114)](_0x21e90b(0xf3))||[];let _0x535171=[];try{_0x535171=await new _0xa64237({'connector':this[_0x21e90b(0x123)][_0x21e90b(0xd9)][_0x21e90b(0x114)](_0x21e90b(0x124)),'availableModels':this[_0x21e90b(0x123)][_0x21e90b(0x12b)][_0x21e90b(0x114)](_0x21e90b(0x138))})[_0x21e90b(0xeb)]();}catch(_0xaf1dd9){const _0x1f5e1e=new _0x45cb85(_0x21e90b(0x137),this,{'error':_0xaf1dd9});_0x4ae99c(_0x1f5e1e[_0x21e90b(0x11a)]);}finally{const _0x42c966=_0xe40394[_0x21e90b(0x135)](_0x4cf33c=>({..._0x4cf33c,'icon':void 0x0}));_0x49f7a9[_0x21e90b(0xf6)](_0x560a18=>_0x21e90b(0xc3)===_0x560a18['id'])[_0x21e90b(0xae)][_0x21e90b(0xdd)](..._0x42c966),_0x49f7a9[_0x21e90b(0x13c)](_0x56e5d2=>{const _0x4a4136=_0x21e90b;if(_0x4a4136(0xae)in _0x56e5d2)_0x56e5d2[_0x4a4136(0xae)][_0x4a4136(0x13c)](_0x46777e=>{const _0x2382b0=_0x4a4136;if(_0x46777e[_0x2382b0(0xc4)]=!!_0x535171[_0x2382b0(0xf6)](_0x31ec73=>_0x31ec73['id']===_0x46777e[_0x2382b0(0xac)])||void 0x0===_0x46777e[_0x2382b0(0xac)],!_0x46777e[_0x2382b0(0xc4)]){const _0x36a1e4=new _0x45cb85(_0x2382b0(0xb0),this,{'actionId':_0x46777e['id'],'modelId':_0x46777e[_0x2382b0(0xac)]});_0x4ae99c(_0x36a1e4[_0x2382b0(0x11a)]);}});else{if(_0x56e5d2[_0x4a4136(0xc4)]=!!_0x535171[_0x4a4136(0xf6)](_0xdca018=>_0xdca018['id']===_0x56e5d2[_0x4a4136(0xac)])||void 0x0===_0x56e5d2[_0x4a4136(0xac)],!_0x56e5d2[_0x4a4136(0xc4)]){const _0x29ef7f=new _0x45cb85(_0x4a4136(0xb0),this,{'actionId':_0x56e5d2['id'],'modelId':_0x56e5d2[_0x4a4136(0xac)]});_0x4ae99c(_0x29ef7f[_0x4a4136(0x11a)]);}}});}return _0x49f7a9;}[_0x20b93b(0x115)](){const _0x12c3b5=_0x20b93b,_0x2c2978=new _0x7ec26(this[_0x12c3b5(0x123)][_0x12c3b5(0x102)]);_0x2c2978[_0x12c3b5(0xba)](),this[_0x12c3b5(0xbe)](_0x2c2978),this[_0x12c3b5(0x129)](),this[_0x12c3b5(0x11e)](_0x2c2978);}[_0x20b93b(0xbe)](_0x372285){const _0x385031=_0x20b93b,_0x43bdd2=this[_0x385031(0x123)][_0x385031(0x12b)][_0x385031(0x114)](_0x385031(0xce))??!0x0;this[_0x385031(0x123)]['ui'][_0x385031(0xf9)][_0x385031(0xe9)](_0x385031(0xca),_0x30e3bc({'editor':this[_0x385031(0x123)],'content':this[_0x385031(0x105)],'buttonDefinition':{'icon':_0x31678c,'label':_0x503b87(this[_0x385031(0x123)][_0x385031(0x102)],_0x385031(0xe7))},'bodyCollection':_0x372285,'hasSearch':_0x43bdd2}));}[_0x20b93b(0xe6)](_0x14bf79){const _0x482fe1=_0x20b93b;this[_0x482fe1(0x105)]=_0x14bf79[_0x482fe1(0x135)](_0x49dd03=>{const _0x1476ea=_0x482fe1;if(_0x1476ea(0xae)in _0x49dd03){const _0xc31ed8=_0x49dd03;return{..._0xc31ed8,'actions':_0xc31ed8[_0x1476ea(0xae)][_0x1476ea(0x135)](_0x331d06=>{const {actions:_0x274ac9,..._0x5a8904}=_0xc31ed8;return{..._0x331d06,'parent':_0x5a8904};})[_0x1476ea(0xa3)](_0x9e731e=>this[_0x1476ea(0xfb)](_0x9e731e))};}return _0x49dd03;})[_0x482fe1(0xa3)](_0x574c61=>_0x482fe1(0xae)in _0x574c61?_0x574c61[_0x482fe1(0xae)][_0x482fe1(0x109)]>0x0:this[_0x482fe1(0xfb)](_0x574c61));}[_0x20b93b(0xfb)](_0x437c92){const _0x54b645=_0x20b93b,_0x34cbcf=this[_0x54b645(0x123)][_0x54b645(0x12b)][_0x54b645(0x114)](_0x54b645(0x11c))||[];return this[_0x54b645(0x123)][_0x54b645(0xd9)][_0x54b645(0x11d)](AIQuickActionTypeToPluginName[_0x437c92[_0x54b645(0x10e)]])&&!_0x34cbcf[_0x54b645(0xa2)](_0x437c92['id']);}[_0x20b93b(0x11e)](_0x2b045f){const _0x22d73e=_0x20b93b;this[_0x22d73e(0x105)][_0x22d73e(0x13c)](_0x1a051b=>{const _0x4896a8=_0x22d73e;if(_0x4896a8(0xae)in _0x1a051b){const _0x2d470e=_0x30e3bc({'editor':this[_0x4896a8(0x123)],'content':_0x1a051b[_0x4896a8(0xae)],'buttonDefinition':_0x1a051b,'bodyCollection':_0x2b045f});this[_0x4896a8(0x123)]['ui'][_0x4896a8(0xf9)][_0x4896a8(0xe9)](_0x1a051b['id'],_0x2d470e),_0x1a051b[_0x4896a8(0xae)][_0x4896a8(0x13c)](_0x5d7d57=>{const _0xe273cc=_0x4896a8,_0x2223fc=_0x2fd7b8({'editor':this[_0xe273cc(0x123)],'action':_0x5d7d57});this[_0xe273cc(0x123)]['ui'][_0xe273cc(0xf9)][_0xe273cc(0xe9)](_0x5d7d57['id'],_0x2223fc);});}else{const _0x63bc75=_0x2fd7b8({'editor':this[_0x4896a8(0x123)],'action':_0x1a051b,'withText':!0x1,'withIcon':!0x0,'isInDropdown':!0x1});this[_0x4896a8(0x123)]['ui'][_0x4896a8(0xf9)][_0x4896a8(0xe9)](_0x1a051b['id'],_0x63bc75);}});}[_0x20b93b(0x129)](){const _0x579913=_0x20b93b;this[_0x579913(0x123)]['ui'][_0x579913(0xf9)][_0x579913(0xe9)](_0x579913(0xff),_0x4bd1a3=>{const _0x168677=_0x579913,_0x21da06=new _0x36daa0(_0x4bd1a3),_0x499ae8=_0x503b87(_0x4bd1a3,_0x168677(0xe7));_0x21da06[_0x168677(0xb1)][_0x168677(0xd7)]({'label':_0x499ae8,'icon':_0x31678c});const _0x5ef619=new _0x372bf9(_0x4bd1a3);_0x5ef619[_0x168677(0xd7)]({'ariaLabel':_0x499ae8,'role':_0x168677(0xe0)}),this[_0x168677(0x105)][_0x168677(0x13c)](_0x5760f2=>{const _0x42250b=_0x168677;if(_0x42250b(0xae)in _0x5760f2){const _0xdecf96=_0x5760f2,_0x255245=new _0x2d48bb(_0x4bd1a3,_0x21da06),_0x724c89=new _0x36daa0(_0x4bd1a3),_0x3a3c7a=new _0x372bf9(_0x4bd1a3);_0x724c89[_0x42250b(0xb1)][_0x42250b(0xd7)]({'label':_0xdecf96[_0x42250b(0x9d)],'icon':_0xdecf96[_0x42250b(0x10a)]}),_0xdecf96[_0x42250b(0xae)][_0x42250b(0x13c)](_0x4124ef=>{const _0x277184=_0x42250b,_0x4135cb=new _0x2d48bb(_0x4bd1a3,_0x724c89),_0x3ddd21=new _0x331272(_0x4bd1a3);_0x3ddd21[_0x277184(0xd7)]({'label':_0x4124ef[_0x277184(0xe3)],'icon':_0x4124ef[_0x277184(0x10a)],'role':_0x277184(0xda),'isEnabled':_0x4124ef[_0x277184(0xc4)]}),_0x3ddd21['on'](_0x277184(0x104),()=>{const _0x18251a=_0x277184;this[_0x18251a(0xb9)](_0x4124ef);}),_0x3ddd21[_0x277184(0x128)](_0x277184(0x104))['to'](_0x724c89),_0x4135cb[_0x277184(0x127)][_0x277184(0xe9)](_0x3ddd21),_0x3a3c7a[_0x277184(0xf0)][_0x277184(0xe9)](_0x4135cb);}),_0x724c89[_0x42250b(0x106)][_0x42250b(0x127)][_0x42250b(0xe9)](_0x3a3c7a),_0x255245[_0x42250b(0x127)][_0x42250b(0xe9)](_0x724c89),_0x5ef619[_0x42250b(0xf0)][_0x42250b(0xe9)](_0x255245);}else{const _0x1246f4=_0x5760f2,_0x89bfba=new _0x2d48bb(_0x4bd1a3,_0x21da06),_0x46a5d2=new _0x331272(_0x4bd1a3);_0x46a5d2[_0x42250b(0xd7)]({'label':_0x1246f4[_0x42250b(0xe3)],'icon':_0x1246f4[_0x42250b(0x10a)],'role':_0x42250b(0xda),'isEnabled':_0x1246f4[_0x42250b(0xc4)]}),_0x46a5d2['on'](_0x42250b(0x104),()=>{const _0x467f5a=_0x42250b;this[_0x467f5a(0xb9)](_0x1246f4);}),_0x46a5d2[_0x42250b(0x128)](_0x42250b(0x104))['to'](_0x21da06),_0x89bfba[_0x42250b(0x127)][_0x42250b(0xe9)](_0x46a5d2),_0x5ef619[_0x42250b(0xf0)][_0x42250b(0xe9)](_0x89bfba);}});const _0x13efa8=Object[_0x168677(0xa6)](AIQuickActionTypeToPluginName)[_0x168677(0x10d)](_0x35e422=>this[_0x168677(0x123)][_0x168677(0xd9)][_0x168677(0x11d)](_0x35e422));return _0x21da06[_0x168677(0xd7)]({'isEnabled':_0x13efa8}),_0x21da06[_0x168677(0x106)][_0x168677(0x127)][_0x168677(0xe9)](_0x5ef619),_0x21da06;});}[_0x20b93b(0xb9)](_0x231f8a){const _0x1647fa=_0x20b93b,_0x5bd3a9=this[_0x1647fa(0x123)];_0x5bd3a9[_0x1647fa(0xe1)][_0x1647fa(0xa8)][_0x1647fa(0x11b)](),_0x5bd3a9[_0x1647fa(0xde)][_0x1647fa(0x104)](_0x1647fa(0xa9),_0x231f8a);const _0x475944=_0x5bd3a9['ui'][_0x1647fa(0xa8)][_0x1647fa(0x11f)];_0x475944&&_0x475944[_0x1647fa(0xa1)]&&_0x475944[_0x1647fa(0xa1)]();}}
|
|
@@ -8,6 +8,43 @@
|
|
|
8
8
|
import { type Editor } from 'ckeditor5/src/core.js';
|
|
9
9
|
import { ButtonView } from 'ckeditor5/src/ui.js';
|
|
10
10
|
import { type AIQuickActionDefinition } from '../aiquickactionsui.js';
|
|
11
|
+
/**
|
|
12
|
+
* Configuration options for aiQuickActionsButtonCreator.
|
|
13
|
+
*/
|
|
14
|
+
export interface AIQuickActionsButtonCreatorOptions {
|
|
15
|
+
/**
|
|
16
|
+
* The CKEditor instance that will contain the button.
|
|
17
|
+
*/
|
|
18
|
+
editor: Editor;
|
|
19
|
+
/**
|
|
20
|
+
* The AI quick action definition containing configuration.
|
|
21
|
+
*/
|
|
22
|
+
action: AIQuickActionDefinition;
|
|
23
|
+
/**
|
|
24
|
+
* Whether to show the text label on the button.
|
|
25
|
+
*
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
withText?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Whether to show the icon on the button.
|
|
31
|
+
*
|
|
32
|
+
* @default true
|
|
33
|
+
*/
|
|
34
|
+
withIcon?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Whether the button is in a dropdown.
|
|
37
|
+
*
|
|
38
|
+
* @default true
|
|
39
|
+
*/
|
|
40
|
+
isInDropdown?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Optional callback to check if focus should be prevented.
|
|
43
|
+
*
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
shouldPreventFocus?: () => boolean;
|
|
47
|
+
}
|
|
11
48
|
/**
|
|
12
49
|
* Creates a button factory function for AI Quick Actions.
|
|
13
50
|
*
|
|
@@ -21,11 +58,7 @@ import { type AIQuickActionDefinition } from '../aiquickactionsui.js';
|
|
|
21
58
|
* - Hides any open balloon toolbar
|
|
22
59
|
* - Executes the aiQuickActions command with the action details
|
|
23
60
|
*
|
|
24
|
-
* @param
|
|
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
|
-
* @param isInDropdown Whether the button is in a dropdown
|
|
61
|
+
* @param options Configuration options for the button creator
|
|
29
62
|
* @returns Factory function that creates a ButtonView instance
|
|
30
63
|
*/
|
|
31
|
-
export declare function aiQuickActionsButtonCreator(
|
|
64
|
+
export declare function aiQuickActionsButtonCreator(options: AIQuickActionsButtonCreatorOptions): () => ButtonView;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x505f36,_0x7bff8d){const _0x35346c=_0x3c1b,_0x441339=_0x505f36();while(!![]){try{const _0x292b0e=-parseInt(_0x35346c(0xa4))/0x1+-parseInt(_0x35346c(0xac))/0x2*(-parseInt(_0x35346c(0xaf))/0x3)+parseInt(_0x35346c(0x9c))/0x4+-parseInt(_0x35346c(0xab))/0x5*(-parseInt(_0x35346c(0xb3))/0x6)+parseInt(_0x35346c(0x9e))/0x7+parseInt(_0x35346c(0xb2))/0x8+parseInt(_0x35346c(0xa0))/0x9*(-parseInt(_0x35346c(0xa9))/0xa);if(_0x292b0e===_0x7bff8d)break;else _0x441339['push'](_0x441339['shift']());}catch(_0x376a4a){_0x441339['push'](_0x441339['shift']());}}}(_0x4fd2,0xb28d4));function _0x3c1b(_0x3d2c84,_0x1bf6c6){const _0x4fd23c=_0x4fd2();return _0x3c1b=function(_0x3c1b32,_0x1d2c56){_0x3c1b32=_0x3c1b32-0x9b;let _0x4e2696=_0x4fd23c[_0x3c1b32];return _0x4e2696;},_0x3c1b(_0x3d2c84,_0x1bf6c6);}import{ButtonView as _0x16c171}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0x38aa52}from'@ckeditor/ckeditor5-icons';function _0x4fd2(){const _0x1d01e1=['2108512FEgHEA','isEnabled','1760717XsEHKX','bindTemplate','9UMDZZd','locale','execute','menuitem','542578yRaozm','editing','focus','set','icon','23027910olLdeN','view','420ABdDEe','16IPuqUO','aiQuickAction','commands','319242PIUTWS','displayedPrompt','parent','5630384dKHhpR','88782SxTbIC','extendTemplate','ck-ai-quick-actions-button'];_0x4fd2=function(){return _0x1d01e1;};return _0x4fd2();}export function aiQuickActionsButtonCreator(_0x195b47){const {editor:_0x328d48,action:_0x4972f3,withText:_0x1bc26b=!0x1,withIcon:_0x4d73ba=!0x0,isInDropdown:_0x4c6327=!0x0,shouldPreventFocus:_0x5d8772=!0x1}=_0x195b47;return()=>{const _0x1faebc=_0x3c1b,_0x386c3e=_0x328d48[_0x1faebc(0xa1)],_0x2e0075=new _0x16c171(_0x386c3e),_0x2ec12d=_0x2e0075[_0x1faebc(0x9f)];_0x4c6327&&_0x2e0075[_0x1faebc(0xb4)]({'on':{'mouseenter':_0x2ec12d['to'](()=>{const _0x30d2e4=_0x1faebc;_0x5d8772&&_0x5d8772()||_0x2e0075[_0x30d2e4(0xa6)]();})}});const _0x26d402=_0x4972f3[_0x1faebc(0xa8)]??_0x4972f3[_0x1faebc(0xb1)]?.[_0x1faebc(0xa8)];return _0x2e0075[_0x1faebc(0xa7)]({'label':_0x4972f3[_0x1faebc(0xb0)],'withText':_0x1bc26b,'role':_0x1faebc(0xa3),'icon':_0x4d73ba?_0x26d402??_0x38aa52:void 0x0,'tooltip':!_0x1bc26b,'class':_0x1faebc(0x9b),'isEnabled':_0x4972f3[_0x1faebc(0x9d)]}),_0x2e0075['on'](_0x1faebc(0xa2),()=>{const _0x3c4abe=_0x1faebc;_0x328d48[_0x3c4abe(0xa5)][_0x3c4abe(0xaa)][_0x3c4abe(0xa6)](),_0x328d48[_0x3c4abe(0xae)][_0x3c4abe(0xa2)](_0x3c4abe(0xad),_0x4972f3);}),_0x2e0075;};}
|
|
@@ -36,7 +36,12 @@ export declare class AIQuickActionsDropdownContentView extends View implements V
|
|
|
36
36
|
* Helps cycling over {@link #_focusables} in the form.
|
|
37
37
|
*/
|
|
38
38
|
readonly focusCycler: FocusCycler;
|
|
39
|
-
constructor(editor: Editor, content: Array<AIQuickActionsGroupDefinition | AIQuickActionDefinition>, dropdownView: DropdownView, bodyCollection: BodyCollection);
|
|
39
|
+
constructor(editor: Editor, content: Array<AIQuickActionsGroupDefinition | AIQuickActionDefinition>, dropdownView: DropdownView, bodyCollection: BodyCollection, hasSearch?: boolean);
|
|
40
|
+
/**
|
|
41
|
+
* Resets the search input and restores all list items.
|
|
42
|
+
* Called when the dropdown is closed to ensure clean state on next open.
|
|
43
|
+
*/
|
|
44
|
+
resetSearch(): void;
|
|
40
45
|
/**
|
|
41
46
|
* @inheritDoc
|
|
42
47
|
*/
|