@ckeditor/ckeditor5-ai 47.0.0-alpha.1 → 47.0.0-alpha.3
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/build/ai.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.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.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hu.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/ko.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/nl.js +1 -1
- package/build/translations/no.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/sk.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/tr.js +1 -1
- package/build/translations/uk.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 +59 -38
- package/dist/index.css +77 -39
- package/dist/index.js +4 -4
- 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 +40 -1
- package/lang/translations/ar.po +171 -171
- package/lang/translations/bg.po +155 -155
- package/lang/translations/bn.po +155 -155
- package/lang/translations/ca.po +155 -155
- package/lang/translations/cs.po +159 -159
- package/lang/translations/da.po +155 -155
- package/lang/translations/de.po +155 -155
- package/lang/translations/el.po +155 -155
- package/lang/translations/es.po +155 -155
- package/lang/translations/et.po +155 -155
- package/lang/translations/fi.po +155 -155
- package/lang/translations/fr.po +155 -155
- package/lang/translations/he.po +155 -155
- package/lang/translations/hi.po +155 -155
- package/lang/translations/hu.po +155 -155
- package/lang/translations/id.po +151 -151
- package/lang/translations/it.po +155 -155
- package/lang/translations/ja.po +151 -151
- package/lang/translations/ko.po +151 -151
- package/lang/translations/lt.po +159 -159
- package/lang/translations/lv.po +159 -159
- package/lang/translations/ms.po +151 -151
- package/lang/translations/nl.po +155 -155
- package/lang/translations/no.po +155 -155
- package/lang/translations/pl.po +159 -159
- package/lang/translations/pt-br.po +155 -155
- package/lang/translations/pt.po +155 -155
- package/lang/translations/ro.po +159 -159
- package/lang/translations/ru.po +159 -159
- package/lang/translations/sk.po +159 -159
- package/lang/translations/sr.po +159 -159
- package/lang/translations/sv.po +155 -155
- package/lang/translations/th.po +151 -151
- package/lang/translations/tr.po +155 -155
- package/lang/translations/uk.po +159 -159
- package/lang/translations/vi.po +151 -151
- package/lang/translations/zh-cn.po +151 -151
- package/lang/translations/zh.po +151 -151
- package/package.json +16 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.d.ts +2 -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.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- 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.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/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.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.d.ts +2 -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/aichat/utils/scrollmanager.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 +1 -1
- 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/aiconfig.d.ts +5 -0
- 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/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.d.ts +2 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +2 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +2 -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.d.ts +2 -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/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/utils/common-translations.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.d.ts +31 -0
- package/src/aireviewmode/aireviewcheckdefinitions.js +23 -0
- package/src/aireviewmode/aireviewmode.d.ts +37 -0
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.d.ts +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +24 -8
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +12 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.d.ts +2 -19
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.d.ts +2 -5
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +6 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +24 -2
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +4 -0
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +4 -0
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +30 -0
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +12 -2
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +1 -0
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +1 -0
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +4 -0
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.d.ts +1 -0
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +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/index.d.ts +3 -2
- package/src/index.js +1 -1
- package/theme/aichat/aichat-controls/aichat-controls-loader.css +1 -1
- package/theme/aichat/aichat-controls.css +4 -0
- package/theme/aichat/aichatfeed.css +10 -2
- package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +19 -0
- package/theme/aireviewmode/aireviewmode-check-run-result.css +45 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +0 -35
- package/theme/aitabs/tabs/tabbuttonview.css +1 -0
- package/src/aireviewmode/utils/common-translations.d.ts +0 -9
- package/src/aireviewmode/utils/common-translations.js +0 -23
|
@@ -11,4 +11,8 @@ import { AIReviewCheckRun } from './aireviewcheckrun.js';
|
|
|
11
11
|
* Represents a single system review check run and its results.
|
|
12
12
|
*/
|
|
13
13
|
export declare class AIReviewSystemCheckRun extends AIReviewCheckRun {
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
get title(): string;
|
|
14
18
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x17ab(){const _0x6d9b7f=['useArgs','126621cOJSTg','_reviewArgs','title','join','length','1434728hXkkAj','label','3wfzxqk','_reviewParams','2268490uplAMQ','push','callSystemReview','36xyzjwC','24KVNFhL','_aiConnector','options','find','4194068ohRUez','content','_sourceCheck','data','_createApiRequest','790anQCSI','1415994YbQgIL','_composeReviewName','7061054ZckusG','23427kncsMF','_documentData'];_0x17ab=function(){return _0x6d9b7f;};return _0x17ab();}const _0x473a53=_0x50fb;(function(_0x85cb3d,_0xc7f56d){const _0x130816=_0x50fb,_0x52bd9d=_0x85cb3d();while(!![]){try{const _0x29c6e2=parseInt(_0x130816(0x10e))/0x1*(-parseInt(_0x130816(0x101))/0x2)+-parseInt(_0x130816(0x118))/0x3*(parseInt(_0x130816(0x105))/0x4)+-parseInt(_0x130816(0x11a))/0x5+-parseInt(_0x130816(0x10b))/0x6+parseInt(_0x130816(0x10d))/0x7+parseInt(_0x130816(0x116))/0x8*(parseInt(_0x130816(0x11d))/0x9)+-parseInt(_0x130816(0x10a))/0xa*(-parseInt(_0x130816(0x111))/0xb);if(_0x29c6e2===_0xc7f56d)break;else _0x52bd9d['push'](_0x52bd9d['shift']());}catch(_0x2770ca){_0x52bd9d['push'](_0x52bd9d['shift']());}}}(_0x17ab,0x966b5));function _0x50fb(_0x264dde,_0x4e4ff9){const _0x17ab88=_0x17ab();return _0x50fb=function(_0x50fbdb,_0x71f2c){_0x50fbdb=_0x50fbdb-0x101;let _0x3b8dc3=_0x17ab88[_0x50fbdb];return _0x3b8dc3;},_0x50fb(_0x264dde,_0x4e4ff9);}import{AIReviewCheckRun as _0x124142}from'./aireviewcheckrun.js';export class AIReviewSystemCheckRun extends _0x124142{get[_0x473a53(0x113)](){const _0x2d1267=_0x473a53;if(!this[_0x2d1267(0x119)]||0x0===this[_0x2d1267(0x119)][_0x2d1267(0x115)]||this[_0x2d1267(0x107)][_0x2d1267(0x110)])return this[_0x2d1267(0x107)][_0x2d1267(0x113)];const _0x22702d=[];if(this[_0x2d1267(0x119)][_0x2d1267(0x115)]>0x0&&this[_0x2d1267(0x107)][_0x2d1267(0x103)])for(let _0x817cc1=0x0;_0x817cc1<this[_0x2d1267(0x119)][_0x2d1267(0x115)];_0x817cc1++){if(!this[_0x2d1267(0x119)][_0x817cc1]||!this[_0x2d1267(0x107)][_0x2d1267(0x103)][_0x817cc1])continue;const _0x1d3b4a=this[_0x2d1267(0x107)][_0x2d1267(0x103)][_0x817cc1],_0x356206=_0x1d3b4a[_0x2d1267(0x108)]?.[_0x2d1267(0x104)](_0x396cb6=>_0x396cb6['id']===this[_0x2d1267(0x119)][_0x817cc1]);_0x356206&&_0x22702d[_0x2d1267(0x11b)](_0x356206[_0x2d1267(0x117)]);}return this[_0x2d1267(0x107)][_0x2d1267(0x113)]+':\x20'+_0x22702d[_0x2d1267(0x114)](',\x20');}[_0x473a53(0x109)](){const _0x449bc8=_0x473a53;return this[_0x449bc8(0x102)][_0x449bc8(0x11c)]({'reviewName':this[_0x449bc8(0x10c)](),'content':this[_0x449bc8(0x10f)][_0x449bc8(0x106)],'args':this[_0x449bc8(0x112)]});}[_0x473a53(0x10c)](){const _0x4fd3a6=_0x473a53;return!this[_0x4fd3a6(0x119)]||0x0===this[_0x4fd3a6(0x119)][_0x4fd3a6(0x115)]||this[_0x4fd3a6(0x107)][_0x4fd3a6(0x110)]?this[_0x4fd3a6(0x107)]['id']:[this[_0x4fd3a6(0x107)]['id'],...this[_0x4fd3a6(0x119)]][_0x4fd3a6(0x114)]('-');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x37ce1f=_0x1a98;(function(_0x4caf0a,_0x38bdc5){var _0x24e25c=_0x1a98,_0x2c3f15=_0x4caf0a();while(!![]){try{var _0x38ba80=parseInt(_0x24e25c(0x158))/0x1*(parseInt(_0x24e25c(0x14e))/0x2)+-parseInt(_0x24e25c(0x153))/0x3*(-parseInt(_0x24e25c(0x15d))/0x4)+parseInt(_0x24e25c(0x159))/0x5*(parseInt(_0x24e25c(0x160))/0x6)+-parseInt(_0x24e25c(0x14c))/0x7+parseInt(_0x24e25c(0x162))/0x8+-parseInt(_0x24e25c(0x150))/0x9*(-parseInt(_0x24e25c(0x152))/0xa)+-parseInt(_0x24e25c(0x15a))/0xb;if(_0x38ba80===_0x38bdc5)break;else _0x2c3f15['push'](_0x2c3f15['shift']());}catch(_0x53547d){_0x2c3f15['push'](_0x2c3f15['shift']());}}}(_0x14c2,0x1d075));function _0x1a98(_0x321eb6,_0x151caa){var _0x14c28c=_0x14c2();return _0x1a98=function(_0x1a9841,_0x471744){_0x1a9841=_0x1a9841-0x146;var _0x44fefe=_0x14c28c[_0x1a9841];return _0x44fefe;},_0x1a98(_0x321eb6,_0x151caa);}import{TextareaView as _0x555bfd}from'ckeditor5/src/ui.js';export class AIReviewModePromptInputView extends _0x555bfd{static [_0x37ce1f(0x161)]=0x1;static [_0x37ce1f(0x154)]=0xc;constructor(_0x587139){var _0x43f751=_0x37ce1f;super(_0x587139),this[_0x43f751(0x14a)](_0x43f751(0x146),!0x0),this[_0x43f751(0x15b)]=AIReviewModePromptInputView[_0x43f751(0x161)],this[_0x43f751(0x147)]=AIReviewModePromptInputView[_0x43f751(0x154)],this[_0x43f751(0x148)]({'attributes':{'id':_0x43f751(0x14f),'class':['ck',_0x43f751(0x14b)]}}),this[_0x43f751(0x148)]({'on':{'click':this[_0x43f751(0x149)]['to'](_0x2d6e28=>{var _0x2c14cb=_0x43f751;_0x2d6e28[_0x2c14cb(0x15c)]();})}});}[_0x37ce1f(0x14d)](){var _0x194109=_0x37ce1f;super[_0x194109(0x14d)](),this['on'](_0x194109(0x156),()=>{var _0x15a486=_0x194109;this[_0x15a486(0x146)]=''===this[_0x15a486(0x151)][_0x15a486(0x15f)]?.[_0x15a486(0x15e)]();});}[_0x37ce1f(0x157)](_0x21e9ca){var _0x4ea793=_0x37ce1f;this[_0x4ea793(0x14a)](_0x4ea793(0x155),_0x21e9ca);}}function _0x14c2(){var _0x444f4a=['trim','value','6yhDscc','MIN_ROWS','208704thXXzL','isEmpty','maxRows','extendTemplate','bindTemplate','set','ck-review-mode__prompt-input','36757ivAyYZ','render','1210YIKalk','ai-review-mode-prompt-input','513GRjmfb','element','12020tMZrAC','1851MYMhMr','MAX_ROWS','placeholder','update','setPlaceholderText','27KJwozH','181495ExEyTY','1774212ocLvCW','minRows','stopPropagation','896qIgFuN'];_0x14c2=function(){return _0x444f4a;};return _0x14c2();}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aireviewmode/ui/customcontrols/aireviewmodeballoonsuggestionview
|
|
7
|
+
*/
|
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { BalloonPanelView, type BodyCollection } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import { AIReviewModeReviewCheckListItemResultsView } from './aireviewmodechecklistitemresultview.js';
|
|
11
|
+
import type { AIReviewCheckResultChange } from '../model/aireviewcheckresultchange.js';
|
|
12
|
+
import '../../../theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css';
|
|
13
|
+
import '../../../theme/aireviewmode/aireviewmode-check-run-result.css';
|
|
14
|
+
export declare class AIReviewModeBalloonSuggestionItemView extends BalloonPanelView {
|
|
15
|
+
/**
|
|
16
|
+
* Creates an instance of the review mode suggestion panel view.
|
|
17
|
+
*
|
|
18
|
+
* @param locale The localization services instance.
|
|
19
|
+
*/
|
|
20
|
+
resultItemView: AIReviewModeReviewCheckListItemResultsView;
|
|
21
|
+
constructor(locale: Locale, bodyCollection: BodyCollection);
|
|
22
|
+
updateContent(change: AIReviewCheckResultChange): void;
|
|
23
|
+
showBalloon(change: AIReviewCheckResultChange, target: HTMLElement): void;
|
|
24
|
+
hideBalloon(): void;
|
|
25
|
+
deactivateChange(): void;
|
|
26
|
+
}
|
|
27
|
+
export type AIReviewModeUIDeactivateChangeEvent = {
|
|
28
|
+
name: 'deactivateChange';
|
|
29
|
+
args: [];
|
|
30
|
+
};
|
|
@@ -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 _0x8d02da=_0x4486;function _0x4486(_0x2cf953,_0x56e93f){const _0x4e9ea5=_0x4e9e();return _0x4486=function(_0x44863c,_0x4ac655){_0x44863c=_0x44863c-0x76;let _0x1be889=_0x4e9ea5[_0x44863c];return _0x1be889;},_0x4486(_0x2cf953,_0x56e93f);}(function(_0x46d84e,_0x396038){const _0x457eb3=_0x4486,_0xef8989=_0x46d84e();while(!![]){try{const _0x176d61=-parseInt(_0x457eb3(0x89))/0x1*(parseInt(_0x457eb3(0x85))/0x2)+parseInt(_0x457eb3(0x9d))/0x3+parseInt(_0x457eb3(0x82))/0x4*(-parseInt(_0x457eb3(0x9a))/0x5)+parseInt(_0x457eb3(0x9e))/0x6+parseInt(_0x457eb3(0x79))/0x7+-parseInt(_0x457eb3(0x88))/0x8*(parseInt(_0x457eb3(0x9f))/0x9)+parseInt(_0x457eb3(0x91))/0xa*(parseInt(_0x457eb3(0x86))/0xb);if(_0x176d61===_0x396038)break;else _0xef8989['push'](_0xef8989['shift']());}catch(_0x474e53){_0xef8989['push'](_0xef8989['shift']());}}}(_0x4e9e,0xd3cef));import{BalloonPanelView as _0x21a7a8,View as _0x3d6850,clickOutsideHandler as _0x5aa3cb}from'ckeditor5/src/ui.js';import{AIReviewModeReviewCheckListItemResultsView as _0x5cb5b0}from'./aireviewmodechecklistitemresultview.js';import'../../../theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css';import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeBalloonSuggestionItemView extends _0x21a7a8{[_0x8d02da(0x8f)];constructor(_0xba41b3,_0x56f8ca){const _0x122e8a=_0x8d02da;super(_0xba41b3),this[_0x122e8a(0x92)]({'isVisible':!0x1,'position':'se','class':null,'top':0x0,'left':0x0}),this[_0x122e8a(0x7a)]({'tag':_0x122e8a(0x99),'attributes':{'class':[_0x122e8a(0x95)],'tabindex':'-1'}}),this[_0x122e8a(0x80)][_0x122e8a(0x7c)](this[_0x122e8a(0x8d)]()),_0x56f8ca[_0x122e8a(0x7c)](this),_0x5aa3cb({'emitter':this,'activator':()=>this[_0x122e8a(0x84)],'contextElements':[this[_0x122e8a(0x8e)]],'callback':()=>{const _0xd44804=_0x122e8a;this[_0xd44804(0x76)](),this[_0xd44804(0x8c)]();}});}[_0x8d02da(0x8a)](_0x17a632){const _0x3488ac=_0x8d02da;this[_0x3488ac(0x8f)][_0x3488ac(0x94)]=_0x17a632['id'],this[_0x3488ac(0x8f)][_0x3488ac(0x9c)][_0x3488ac(0x8e)][_0x3488ac(0x98)]=_0x17a632[_0x3488ac(0x8b)];}[_0x8d02da(0x96)](_0x2572ae,_0x3c7af9){const _0x22e692=_0x8d02da;this[_0x22e692(0x8a)](_0x2572ae),this[_0x22e692(0x90)](),this[_0x22e692(0x81)]({'target':_0x3c7af9});}[_0x8d02da(0x76)](){const _0x71844f=_0x8d02da;this[_0x71844f(0x7d)](),this[_0x71844f(0x97)]();}[_0x8d02da(0x8c)](){const _0x22f0e3=_0x8d02da;this[_0x22f0e3(0x9b)](_0x22f0e3(0x8c));}[_0x8d02da(0x8d)](){const _0x3bc77e=_0x8d02da,_0x403717=new _0x3d6850();return this[_0x3bc77e(0x8f)]=new _0x5cb5b0(this[_0x3bc77e(0x7e)],''),this[_0x3bc77e(0x8f)][_0x3bc77e(0x9c)][_0x3bc77e(0x7a)]({'attributes':{'class':[_0x3bc77e(0x77)]}}),this[_0x3bc77e(0x8f)][_0x3bc77e(0x93)](_0x3bc77e(0x83),_0x3bc77e(0x7b))['to'](this),_0x403717[_0x3bc77e(0x78)]({'tag':_0x3bc77e(0x99),'attributes':{'class':[_0x3bc77e(0x95),_0x3bc77e(0x87)]},'children':[{'tag':'p','attributes':{'class':[_0x3bc77e(0x7f)]},'children':[this[_0x3bc77e(0x8f)]]}]}),_0x403717;}}function _0x4e9e(){const _0x2dafc6=['1697340IGdbSo','117ZIlGZD','hideBalloon','ck-content','setTemplate','6220382OuEzIY','extendTemplate','dismissChange','add','hide','locale','ck-ai-review-mode__suggestion-text','content','pin','4dGMNGa','acceptChange','isVisible','197740fGkgBg','5451259rIPPDb','ck-ai-review-mode-balloon-panel-suggestion','383288KTBPig','5TKURUL','updateContent','contentDiffed','deactivateChange','_createContentView','element','resultItemView','show','10bETqwt','set','delegate','changeId','ck-reset','showBalloon','unpin','innerHTML','div','6129105YYVpVI','fire','resultResponseView','4630488JLkpsR'];_0x4e9e=function(){return _0x2dafc6;};return _0x4e9e();}
|
|
@@ -12,15 +12,25 @@ export declare class AIReviewModeReviewCheckListItemResultsView extends View {
|
|
|
12
12
|
acceptButtonView: ButtonView;
|
|
13
13
|
dismissButtonView: ButtonView;
|
|
14
14
|
infoButtonView: ButtonView;
|
|
15
|
+
/**
|
|
16
|
+
* @observable
|
|
17
|
+
*/
|
|
18
|
+
changeId: string;
|
|
19
|
+
/**
|
|
20
|
+
* @observable
|
|
21
|
+
*/
|
|
15
22
|
isInfoToggleOn: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* @observable
|
|
25
|
+
*/
|
|
16
26
|
isActive: boolean;
|
|
17
27
|
readonly id: string;
|
|
18
28
|
constructor(locale: Locale, id: string);
|
|
19
29
|
setItemAsActive(): void;
|
|
20
30
|
setItemAsInactive(): void;
|
|
21
31
|
}
|
|
22
|
-
export type
|
|
23
|
-
name: '
|
|
32
|
+
export type AIReviewModeActivateChangeEvent = {
|
|
33
|
+
name: 'activateChange';
|
|
24
34
|
args: [
|
|
25
35
|
{
|
|
26
36
|
id: string;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa36437=_0x1880;function _0x1880(_0x5cf50a,_0x55a652){const _0x367461=_0x3674();return _0x1880=function(_0x1880b5,_0x1a6911){_0x1880b5=_0x1880b5-0x138;let _0x529c3d=_0x367461[_0x1880b5];return _0x529c3d;},_0x1880(_0x5cf50a,_0x55a652);}(function(_0x192c05,_0x10415b){const _0x106eb5=_0x1880,_0x19b0fc=_0x192c05();while(!![]){try{const _0x38fa1e=parseInt(_0x106eb5(0x153))/0x1+-parseInt(_0x106eb5(0x146))/0x2*(parseInt(_0x106eb5(0x15d))/0x3)+parseInt(_0x106eb5(0x142))/0x4+-parseInt(_0x106eb5(0x16b))/0x5+-parseInt(_0x106eb5(0x16a))/0x6*(-parseInt(_0x106eb5(0x138))/0x7)+parseInt(_0x106eb5(0x151))/0x8+-parseInt(_0x106eb5(0x149))/0x9;if(_0x38fa1e===_0x10415b)break;else _0x19b0fc['push'](_0x19b0fc['shift']());}catch(_0x254829){_0x19b0fc['push'](_0x19b0fc['shift']());}}}(_0x3674,0x8de7e));import{View as _0x4132ce,ButtonView as _0x5d8f88}from'ckeditor5/src/ui.js';import{IconInfo as _0x1dfa4f}from'ckeditor5/src/icons.js';import{getTranslation as _0x1ced07}from'../../aicore/utils/common-translations.js';function _0x3674(){const _0x588bcb=['Toggle\x20info\x20view','bind','extendTemplate','ck-ai-review-mode__check-run-result_active','div','AI_REVIEW_MODE_LEARN_MORE','activateChange','fire','6RtJODB','3232805taRwyn','7562681IvmaRd','click','isInfoToggleOn','dismissChange','_createInfoButtonView','menuitemcheckbox','isOn','_createDismissButtonView','dismissButtonView','locale','3207660ivfgLc','changeId','setTemplate','_createAcceptButtonView','2524uWwGvf','bindTemplate','ck-ai-review-mode__check-run-result-footer','18557028HaCroA','_createResultResponseView','AI_REVIEW_MODE_ACCEPT_CHANGE','AI_REVIEW_MODE_DISMISS_CHANGE','log','ck-ai-review-mode__check-run-result-response','setItemAsInactive','acceptButtonView','2903856pxEHeM','setItemAsActive','1152951jMZHnL','execute','isActive','acceptChange','stopPropagation','resultResponseView','ck-ai-button-secondary\x20ck-ai-review-mode__check-run-result-accept-button','set','ck-ai-button-tertiary-filled\x20ck-ai-review-mode__check-run-result-dismiss-button','ck-ai-button-tertiary-filled\x20ck-ai-review-mode__check-run-result-info-button\x20ck-hidden','258dJldVi','ck-ai-review-mode__check-run-result','ck-content','infoButtonView','ck-ai-review-mode__check-run-result-action-buttons'];_0x3674=function(){return _0x588bcb;};return _0x3674();}export class AIReviewModeReviewCheckListItemResultsView extends _0x4132ce{[_0xa36437(0x158)];[_0xa36437(0x150)];[_0xa36437(0x140)];[_0xa36437(0x160)];constructor(_0x59b460,_0x2bbad6){const _0x4e7a1e=_0xa36437;super(_0x59b460),this['id']=_0x2bbad6,this[_0x4e7a1e(0x15a)](_0x4e7a1e(0x143),_0x2bbad6),this[_0x4e7a1e(0x158)]=this[_0x4e7a1e(0x14a)](),this[_0x4e7a1e(0x150)]=this[_0x4e7a1e(0x145)](),this[_0x4e7a1e(0x140)]=this[_0x4e7a1e(0x13f)](),this[_0x4e7a1e(0x160)]=this[_0x4e7a1e(0x13c)](),this[_0x4e7a1e(0x15a)](_0x4e7a1e(0x13a),!0x1),this[_0x4e7a1e(0x15a)](_0x4e7a1e(0x155),!0x1),this[_0x4e7a1e(0x144)]({'tag':_0x4e7a1e(0x166),'attributes':{'class':[_0x4e7a1e(0x15e),this[_0x4e7a1e(0x147)]['if'](_0x4e7a1e(0x155),_0x4e7a1e(0x165))]},'on':{'click':this[_0x4e7a1e(0x147)]['to'](_0x4e7a1e(0x139))},'children':[this[_0x4e7a1e(0x158)],{'tag':_0x4e7a1e(0x166),'attributes':{'class':[_0x4e7a1e(0x148)]},'children':[{'tag':_0x4e7a1e(0x166),'attributes':{'class':[_0x4e7a1e(0x161)]},'children':[this[_0x4e7a1e(0x150)],this[_0x4e7a1e(0x140)]]},this[_0x4e7a1e(0x160)]]}]}),this['on'](_0x4e7a1e(0x139),()=>{const _0x47989a=_0x4e7a1e;this[_0x47989a(0x169)](_0x47989a(0x168),{'id':_0x2bbad6,'source':this});});}[_0xa36437(0x152)](){const _0x43749e=_0xa36437;this[_0x43749e(0x155)]=!0x0;}[_0xa36437(0x14f)](){const _0x2d8d47=_0xa36437;this[_0x2d8d47(0x155)]=!0x1;}[_0xa36437(0x14a)](){const _0x4eeb7b=_0xa36437,_0x519de6=new _0x4132ce(this[_0x4eeb7b(0x141)]);return _0x519de6[_0x4eeb7b(0x144)]({'tag':_0x4eeb7b(0x166),'attributes':{'class':['ck',_0x4eeb7b(0x15f),_0x4eeb7b(0x14e)]}}),_0x519de6;}[_0xa36437(0x145)](){const _0x2fe2e2=_0xa36437,_0x123c84=new _0x5d8f88(this[_0x2fe2e2(0x141)]);return _0x123c84[_0x2fe2e2(0x15a)]({'label':_0x1ced07(this[_0x2fe2e2(0x141)],_0x2fe2e2(0x14b)),'withText':!0x0,'class':_0x2fe2e2(0x159)}),_0x123c84[_0x2fe2e2(0x164)]({'on':{'click':this[_0x2fe2e2(0x147)]['to'](_0x13663e=>{const _0x123bac=_0x2fe2e2;this[_0x123bac(0x169)](_0x123bac(0x156),{'id':this[_0x123bac(0x143)]}),_0x13663e[_0x123bac(0x157)]();})}}),_0x123c84;}[_0xa36437(0x13f)](){const _0x643b6c=_0xa36437,_0x3b4e18=new _0x5d8f88(this[_0x643b6c(0x141)]);return _0x3b4e18[_0x643b6c(0x15a)]({'label':_0x1ced07(this[_0x643b6c(0x141)],_0x643b6c(0x14c)),'withText':!0x0,'class':_0x643b6c(0x15b)}),_0x3b4e18[_0x643b6c(0x164)]({'on':{'click':this[_0x643b6c(0x147)]['to'](_0x4304ff=>{const _0x5e72b7=_0x643b6c;this[_0x5e72b7(0x169)](_0x5e72b7(0x13b),{'id':this[_0x5e72b7(0x143)]}),_0x4304ff[_0x5e72b7(0x157)]();})}}),_0x3b4e18;}[_0xa36437(0x13c)](){const _0x2d7a48=_0xa36437,_0xc76526=new _0x5d8f88(this[_0x2d7a48(0x141)]);return _0xc76526[_0x2d7a48(0x15a)]({'label':_0x1ced07(this[_0x2d7a48(0x141)],_0x2d7a48(0x167)),'icon':_0x1dfa4f,'tooltip':!0x0,'isToggleable':!0x0,'role':_0x2d7a48(0x13d),'class':_0x2d7a48(0x15c)}),_0xc76526[_0x2d7a48(0x163)](_0x2d7a48(0x13e))['to'](this,_0x2d7a48(0x13a),_0x41446d=>_0x41446d),_0xc76526['on'](_0x2d7a48(0x154),()=>{const _0x436c29=_0x2d7a48;console[_0x436c29(0x14d)](_0x436c29(0x162)),this[_0x436c29(0x13a)]=!this[_0x436c29(0x13a)];}),_0xc76526;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Collection as
|
|
23
|
+
import{Collection as _0x33040a}from'ckeditor5/src/utils.js';import{View as _0x2cbb7f,ButtonView as _0x785360,FormRowView as _0x332140,createDropdown as _0x2936b9,addListToDropdown as _0x587e5e,UIModel as _0x10033a,ButtonLabelView as _0x4cbf39}from'ckeditor5/src/ui.js';import{AIReviewModePromptInputView as _0x1d0011}from'./aireviemodepromptinputview.js';export class AIReviewModeCustomCheckView extends _0x2cbb7f{['submitButtonView'];['cancelButtonView'];['promptInputView'];['_modelSelectionDropdown'];['_modelSelectionDropdownItems'];['_check'];['_defaultValue'];['_defaultLabel'];constructor(_0x3ab094,_0xa24af){super(_0x3ab094),this['_check']=_0xa24af,this['set']('prompt',''),this['set']('modelId',''),this['_defaultValue']=_0xa24af['models']&&_0xa24af['models']['length']>0x0?_0xa24af['models'][0x0]['id']:'',this['_defaultLabel']=_0xa24af['models']&&_0xa24af['models']['length']>0x0?_0xa24af['models'][0x0]['name']:'',this['submitButtonView']=this['_createSubmitButtonView'](),this['cancelButtonView']=this['_createCancelButtonView'](),this['promptInputView']=new _0x1d0011(_0x3ab094),this['promptInputView']['bind']('value')['to'](this,'prompt'),this['promptInputView']['on']('input',()=>{this['prompt']=this['promptInputView']['element']['value'];}),this['_modelSelectionDropdown']=this['_createModelSelectionDropdown'](),this['_modelSelectionDropdownItems']=new _0x33040a(),this['_setModelList'](),_0x587e5e(this['_modelSelectionDropdown'],this['_modelSelectionDropdownItems']);const _0x204a6b=new _0x2cbb7f(_0x3ab094);_0x204a6b['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-custom-actions-footer']},'children':[this['_modelSelectionDropdown'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized-custom-actions-buttons']},'children':[this['cancelButtonView'],this['submitButtonView']]}]}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-custom-actions']},'children':[new _0x332140(this['locale'],{'children':[this['promptInputView']]}),new _0x332140(this['locale'],{'children':[_0x204a6b]})]});}['resetToDefault'](){this['prompt']='',this['modelId']=this['_defaultValue'],this['_modelSelectionDropdown']['buttonView']['label']=this['_defaultLabel'];}['_createSubmitButtonView'](){const _0x27fb9f=new _0x785360(this['locale']),t=this['locale']['t'];return _0x27fb9f['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x27fb9f['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x271d07=>{_0x271d07['stopPropagation']();})}}),_0x27fb9f['on']('execute',()=>{this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0});}),_0x27fb9f;}['_createCancelButtonView'](){const _0x14ff45=new _0x785360(this['locale']),t=this['locale']['t'];return _0x14ff45['set']({'label':t('Cancel'),'withText':!0x0,'class':'ck-ai-button-tertiary-filled'}),_0x14ff45['on']('execute',()=>{this['resetToDefault']();}),_0x14ff45;}['_setModelList'](){this['_modelSelectionDropdownItems']['clear']();const _0x575aa8=this['_check']['models'];if(this['resetToDefault'](),_0x575aa8?.['length'])for(const _0x53a369 of _0x575aa8){const _0x51306c=new _0x10033a({'label':_0x53a369['name'],'withText':!0x0,'role':'menuitemradio','id':_0x53a369['id'],'model':_0x53a369});_0x51306c['bind']('isOn')['to'](this,'modelId',_0x2d61a3=>_0x2d61a3===_0x53a369['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x51306c,'labelView':new Ds(this['locale'],_0x53a369)});}}['_createModelSelectionDropdown'](){const _0xc4f540=_0x2936b9(this['locale']);return _0xc4f540['set']({'panelPosition':'se','class':'ck-ai-review-mode__check-list-item-model-dropdown'}),_0xc4f540['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x2d54a6=>{_0x2d54a6['stopPropagation']();})}}),_0xc4f540['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0,'tooltip':!0x0}),this['listenTo'](_0xc4f540,'execute',_0x439595=>{this['modelId']=_0x439595['source']['model']['id'],_0xc4f540['buttonView']['label']=_0x439595['source']['label'];}),_0xc4f540;}}class Ds extends _0x4cbf39{constructor(_0x7f74c0,_0x133e4a){super();const _0x5eb5c1=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x5eb5c1['to']('style'),'id':_0x5eb5c1['to']('id')},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-name']},'children':[{'text':_0x5eb5c1['to']('text')}]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-description']},'children':[{'tag':'span','children':[{'text':_0x133e4a['description']}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x167858=_0x20f7;(function(_0x4643ad,_0x8103cb){const _0x46a81c=_0x20f7,_0x1d5bae=_0x4643ad();while(!![]){try{const _0x3a7766=parseInt(_0x46a81c(0x12c))/0x1+-parseInt(_0x46a81c(0x128))/0x2+-parseInt(_0x46a81c(0x133))/0x3+parseInt(_0x46a81c(0x123))/0x4*(parseInt(_0x46a81c(0x129))/0x5)+-parseInt(_0x46a81c(0x12e))/0x6*(parseInt(_0x46a81c(0x130))/0x7)+-parseInt(_0x46a81c(0x11b))/0x8+parseInt(_0x46a81c(0x12b))/0x9*(parseInt(_0x46a81c(0x11c))/0xa);if(_0x3a7766===_0x8103cb)break;else _0x1d5bae['push'](_0x1d5bae['shift']());}catch(_0x5b24a2){_0x1d5bae['push'](_0x1d5bae['shift']());}}}(_0x5359,0x98ae5));import{ListItemView as _0x4844eb,ViewCollection as _0x4e0183}from'ckeditor5/src/ui.js';import{AIReviewModeReviewCommandListItemView as _0xabf105}from'./aireviewmodereviewcommandlistitemview.js';function _0x20f7(_0x95999c,_0x7d626){const _0x5359ee=_0x5359();return _0x20f7=function(_0x20f78a,_0x45a518){_0x20f78a=_0x20f78a-0x118;let _0x4eb9b5=_0x5359ee[_0x20f78a];return _0x4eb9b5;},_0x20f7(_0x95999c,_0x7d626);}import'../../../theme/aireviewmode/aireviewmode-check-list.css';export class AIReviewModeReviewCheckListView extends _0x4844eb{[_0x167858(0x126)];constructor(_0x51fa98){const _0x2cf04c=_0x167858;super(_0x51fa98),this[_0x2cf04c(0x126)]=new _0x4e0183();const _0x58e836=this[_0x2cf04c(0x125)];this[_0x2cf04c(0x122)]({'tag':_0x2cf04c(0x118),'attributes':{'class':[_0x2cf04c(0x12a),_0x58e836['if'](_0x2cf04c(0x11a),_0x2cf04c(0x12f),_0x44a6d4=>!_0x44a6d4)]},'children':this[_0x2cf04c(0x126)]});}[_0x167858(0x11e)](_0x5c68c0){const _0x470385=_0x167858;this[_0x470385(0x126)][_0x470385(0x119)]();for(const [_0x450ac8,_0x4fca42]of _0x5c68c0[_0x470385(0x12d)]()){const _0x1af17f=new _0xabf105(this[_0x470385(0x120)],_0x4fca42,_0x450ac8);_0x1af17f[_0x470385(0x121)](_0x470385(0x124))['to'](this),this[_0x470385(0x126)][_0x470385(0x11d)](_0x1af17f);}}[_0x167858(0x127)](){const _0x3c9a9d=_0x167858;return this[_0x3c9a9d(0x126)][_0x3c9a9d(0x131)]>0x0;}[_0x167858(0x132)](){const _0x3f29b4=_0x167858;for(const _0x3c9091 of this[_0x3f29b4(0x126)])_0x3c9091 instanceof _0xabf105&&_0x3c9091[_0x3f29b4(0x11f)]();}}function _0x5359(){const _0x239076=['delegate','setTemplate','189928tygDHG','runReviewCheck','bindTemplate','_checkViews','hasChecks','2313936JlDCvd','20cYUHhu','ck-ai-review-mode__check-list','9uGLjTa','231826bDulaK','entries','12ckjqOl','ck-hidden','665763VchnWj','length','resetAllParameterizedChecks','390726nmGXFe','div','clear','isVisible','6019792FmmGKH','24335290YQlXOm','add','setChecks','resetToDefault','locale'];_0x5359=function(){return _0x239076;};return _0x5359();}
|
|
@@ -10,6 +10,7 @@ import { ListItemView, View, ViewCollection } from 'ckeditor5/src/ui.js';
|
|
|
10
10
|
import { AIReviewModeReviewCheckListItemResultsView } from './aireviewmodechecklistitemresultview.js';
|
|
11
11
|
import { AIDisclaimerView } from '../../aicore/ui/aidisclaimerview.js';
|
|
12
12
|
import '../../../theme/aireviewmode/aireviewmode-check-run.css';
|
|
13
|
+
import '../../../theme/aireviewmode/aireviewmode-check-run-result.css';
|
|
13
14
|
export declare class AIReviewModeReviewCheckResultsView extends ListItemView {
|
|
14
15
|
resultsHeader: View;
|
|
15
16
|
reviewDisclaimer: AIDisclaimerView;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ListItemView as
|
|
23
|
+
import{ListItemView as _0x52a128,View as _0x1d6a7f,ViewCollection as _0x1614a8,ButtonView as _0x3d86bb}from'ckeditor5/src/ui.js';import{IconStop as _0x49b8ce,IconEye as _0x4c7c3f,IconEyeCrossedOut as _0x49c561}from'ckeditor5/src/icons.js';import{AIReviewModeReviewCheckListItemResultsView as _0x13090e}from'./aireviewmodechecklistitemresultview.js';import{AISkeletonView as _0x4ea5dc,SKELETON_DEFINITIONS as _0x54c0ef}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x588ba0}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0x1d99ca}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0xe21ddc}from'../../aicore/ui/aispinner.js';import'../../../theme/aireviewmode/aireviewmode-check-run.css';import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeReviewCheckResultsView extends _0x52a128{['_resultViews'];['resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];constructor(_0x897a83){super(_0x897a83),this['_resultViews']=new _0x1614a8(),this['_cancelButtonView']=this['_createCancelButtonView'](),this['_acceptAllButtonView']=this['_createAcceptAllButtonView'](),this['_exitReviewButtonView']=this['_createExitReviewButtonView'](),this['_toggleDiffButtonView']=this['_createToggleDiffButtonView'](),this['resultsHeader']=this['_createResultHeaderView'](),this['_errorMessageView']=this['_createErrorView'](),this['reviewDisclaimer']=new _0x588ba0(_0x897a83),this['set']('isLoading',!0x1),this['set']('isToggleDiffOn',!0x1),this['set']('isResultReady',!0x1),this['set']('headerTitle',''),this['set']('isError',!0x1),this['set']('showErrorMessage',!0x1),this['set']('errorType','general');const _0x14324c=this['_createCombinedSkeletonLoader'](),_0x35e235=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run',_0x35e235['if']('isVisible','ck-hidden',_0x1802a1=>!_0x1802a1)]},'children':[this['resultsHeader'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-wrapper']},'children':[this['_errorMessageView'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x4fe6ad=>_0x4fe6ad)]},'children':this['_resultViews']},_0x14324c]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x13ffc1){const _0x4ffbd8=new _0x13090e(this['locale'],_0x13ffc1['id']);_0x4ffbd8['delegate']('acceptChange','dismissChange','activateChange')['to'](this),this['_resultViews']['add'](_0x4ffbd8),_0x4ffbd8['resultResponseView']['element']['innerHTML']=_0x13ffc1['contentDiffed'];}['hideResult'](_0x16d328){const _0x4633ef=this['_resultViews']['find'](_0x46bb7a=>_0x46bb7a['id']===_0x16d328);_0x4633ef&&(_0x4633ef['element']?.['classList']['add']('ck-ai-review-mode__check-run-result_removing'),_0x4633ef['element']?.['addEventListener']('animationend',()=>{this['_resultViews']['remove'](_0x4633ef),_0x4633ef['destroy']();},{'once':!0x0}));}['setTitle'](_0x53290e){this['headerTitle']=_0x53290e;}['showChunkErrorMessage'](){this['errorType']='chunk',this['showErrorMessage']=!0x0;}['showGeneralErrorMessage'](){this['isError']=!0x0,this['errorType']='general',this['showErrorMessage']=!0x0;}['resetErrorState'](){this['isError']=!0x1,this['errorType']='general',this['showErrorMessage']=!0x1;}['_createSkeletonLoader'](){return new _0x4ea5dc(this['locale'],_0x54c0ef['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x5903cf=new _0x1d6a7f(this['locale']),_0x1c214c=[];for(let _0x28c274=0x0;_0x28c274<0x10;_0x28c274++){const _0x179769=this['_createSkeletonLoader']();_0x179769['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-run-skeleton-item']}}),_0x1c214c['push'](_0x179769);}return _0x5903cf['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x19edba=>!_0x19edba)]},'children':_0x1c214c}),_0x5903cf;}['_createErrorView'](){const _0x118672=new _0x1d6a7f(this['locale']),_0x17e949=new _0x3d86bb(this['locale']),t=this['locale']['t'];return _0x118672['delegate']('retryReview')['to'](this),_0x17e949['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai-review-mode__check-run-error-retry-button'}),_0x17e949['on']('execute',()=>{this['fire']('retryReview');}),_0x118672['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x2c9d6d=>!_0x2c9d6d),this['bindTemplate']['if']('errorType','ck-ai-review-mode__check-run-error-container_border-bottom',_0x23b940=>'chunk'===_0x23b940)]},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-chat-error','ck-ai-chat-error_full-width','ck-ai-review-mode__check-run-error-message',this['bindTemplate']['if']('errorType','ck-ai-chat-error_warning',_0x6e38e8=>'chunk'===_0x6e38e8)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x2b3e09=>'general'!==_0x2b3e09)]},'children':[{'text':_0x1d99ca(this['locale'],'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}]},{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x2cc74e=>'chunk'!==_0x2cc74e)]},'children':[{'text':_0x1d99ca(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x17e949]}),_0x118672;}['_createCancelButtonView'](){const _0x569c03=new _0x3d86bb(this['locale']);return _0x569c03['set']({'label':_0x1d99ca(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ai-chat-controls-loader__cancel-button'],'icon':_0x49b8ce}),_0x569c03['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x2a3c3a=>_0x2a3c3a)]}}),_0x569c03['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x569c03;}['_createToggleDiffButtonView'](){const _0x5e6312=new _0x3d86bb(this['locale']);_0x5e6312['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x5e6312['bind']('isEnabled')['to'](this,'isError',_0x17b9fe=>!_0x17b9fe),_0x5e6312['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai-review-mode__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x1c1042=>!_0x1c1042)]}});const _0x4dafc=_0x1d99ca(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x5d0a94=_0x1d99ca(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x5e6312['bind']('isOn')['to'](this,'isToggleDiffOn',_0x445f82=>_0x445f82),_0x5e6312['bind']('icon')['to'](this,'isToggleDiffOn',_0x598645=>_0x598645?_0x4c7c3f:_0x49c561),_0x5e6312['bind']('label')['to'](this,'isToggleDiffOn',_0x235531=>_0x235531?_0x4dafc:_0x5d0a94),_0x5e6312['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x5e6312;}['_createAcceptAllButtonView'](){const _0x40b783=new _0x3d86bb(this['locale']);return _0x40b783['set']({'label':_0x1d99ca(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x40b783['bind']('isEnabled')['to'](this,'isError',_0x4736d8=>!_0x4736d8),_0x40b783['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai-review-mode__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0xb9843b=>!_0xb9843b)]}}),_0x40b783['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x40b783;}['_createExitReviewButtonView'](){const _0x1f8934=new _0x3d86bb(this['locale']);return _0x1f8934['set']({'label':_0x1d99ca(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x1f8934['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary-filled','ck-ai-review-mode__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x49ae65=>!_0x49ae65)]}}),_0x1f8934['on']('execute',()=>{this['fire']('leaveReviewModeResultList');}),_0x1f8934;}['_createResultHeaderView'](){const _0x37178d=new _0x1d6a7f(this['locale']),_0x43e3b0=new _0xe21ddc();return _0x43e3b0['bind']('isVisible')['to'](this,'isResultReady',_0x4d6c27=>!_0x4d6c27),_0x37178d['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header']},'children':[{'tag':'span','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title']},'children':[{'text':this['bindTemplate']['to']('headerTitle')}]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-buttons']},'children':[_0x43e3b0,this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView']]}]}),_0x37178d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ListItemView as
|
|
23
|
+
import{ListItemView as _0x57803f,IconView as _0xcfa2ef,View as _0x37a70b,ViewCollection as _0x2a1b5c,ButtonView as _0x5dd4c7,clickOutsideHandler as _0x420b06}from'ckeditor5/src/ui.js';import{IconChevronRight as _0x4d9fee}from'ckeditor5/src/icons.js';import{AIReviewModeFormManagerView as _0xe0b410}from'./form/aireviewmodeformmanager.js';import{AIReviewModeCustomCheckView as _0x2b8d0b}from'./aireviewmodecustomcheckview.js';export class AIReviewModeReviewCommandListItemView extends _0x57803f{['_formItemsCollection']=new _0x2a1b5c();['_customCheckView']=null;constructor(_0x3b431e,_0x598bbf,_0x5c48cd){super(_0x3b431e),this['set']('isParametrizedViewOpen',!0x1),this['set']('isListItemRendered',!0x1),this['set']('isItemParametrized',_0x598bbf['isParameterized']);const _0x36d6f8=this['_createIconView']();this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item',this['bindTemplate']['if']('isParametrizedViewOpen','ck-ai-review-mode__check-list-item_selected',_0x21fe64=>_0x21fe64),this['bindTemplate']['if']('isListItemRendered','ck-ai-review-mode__check-list-item_rendered',_0x2d3e79=>_0x2d3e79)],'style':{'--ck-ai-check-list-item-index':_0x5c48cd}},'on':{'click':this['bindTemplate']['to']('click')},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-main-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-title']},'children':[{'tag':'span','attributes':{'class':['ck-ai-review-mode__check-list-item-title-text']},'children':[{'text':_0x598bbf['title']}]},_0x36d6f8]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-description']},'children':[{'text':_0x598bbf['description']}]}]}]},..._0x598bbf['isParameterized']?[this['_createParameterizedView'](_0x598bbf)]:[],...'custom'===_0x598bbf['id']?[this['_createCustomView'](_0x598bbf)]:[]]}),this['on']('click',()=>{_0x598bbf['isParameterized']?this['isParametrizedViewOpen']=!0x0:this['fire']('runReviewCheck',{'id':_0x598bbf['id']});}),requestAnimationFrame(()=>{this['isListItemRendered']=!0x0;});}['render'](){super['render'](),this['isItemParametrized']&&_0x420b06({'emitter':this,'activator':()=>!0x0===this['isParametrizedViewOpen'],'contextElements':[this['element']],'callback':()=>{this['isParametrizedViewOpen']=!0x1;}});}['resetToDefault'](){this['isParametrizedViewOpen']=!0x1,this['_formItemsCollection']['forEach'](_0x1283d3=>{_0x1283d3['resetToDefault']();}),this['_customCheckView']&&this['_customCheckView']['resetToDefault']();}['_createIconView'](){const _0x3eb073=new _0xcfa2ef();return _0x3eb073['content']=_0x4d9fee,_0x3eb073['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-list-item-title-icon']}}),_0x3eb073;}['_createParameterizedView'](_0x32d3fa){const _0x26e740=new _0x37a70b(),_0x4456cd=this['_createFormView'](_0x32d3fa);return _0x26e740['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x597f49=>!_0x597f49)]},'children':[_0x4456cd]}),_0x26e740;}['_createFormView'](_0x122b71){const _0x3c1925=new _0x37a70b(),_0x415cc6=Array['isArray'](_0x122b71['options'])?_0x122b71['options']:[],_0xc1aa83=new _0x5dd4c7(this['locale']),t=this['locale']['t'];_0xc1aa83['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0xc1aa83['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x30dfe5=>{_0x30dfe5['stopPropagation']();})}}),_0xc1aa83['on']('execute',()=>{const _0x3bd124=[],_0x46757f={};this['_formItemsCollection']['forEach'](_0xc98ee6=>{_0x3bd124['push'](_0xc98ee6['value']),_0x122b71['useArgs']&&_0x122b71['options']&&(_0x46757f[_0xc98ee6['argsKey']]=_0xc98ee6['value']);}),this['fire']('runReviewCheck',{'id':_0x122b71['id'],'params':_0x3bd124['length']?_0x3bd124:void 0x0,'args':Object['keys'](_0x46757f)['length']?_0x46757f:void 0x0});});const _0x2c53e8=_0x415cc6['length'];return _0x415cc6['forEach']((_0x1ccd9e,_0x1c116a)=>{const _0x4fb960=_0x1c116a===_0x2c53e8-0x1;this['_formItemsCollection']['add'](new _0xe0b410(this['locale'],_0x1ccd9e,_0x4fb960?_0xc1aa83:null));}),_0x3c1925['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized-form']},'children':this['_formItemsCollection']}),_0x3c1925;}['_createCustomView'](_0x7f58cc){return this['_customCheckView']=new _0x2b8d0b(this['locale'],_0x7f58cc),this['_customCheckView']['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized','ck-ai-review-mode__check-list-item-parameterized_custom',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x31a12f=>!_0x31a12f)]}}),this['_customCheckView']['delegate']('runReviewCheck')['to'](this),this['_customCheckView'];}}
|
|
@@ -10,6 +10,10 @@ import { ListItemView, View } from 'ckeditor5/src/ui.js';
|
|
|
10
10
|
import '../../../theme/aireviewmode/aireviewmode-review-completed.css';
|
|
11
11
|
export declare class AIReviewModeReviewCompletedView extends ListItemView {
|
|
12
12
|
resultsHeader: View;
|
|
13
|
+
/**
|
|
14
|
+
* @observable
|
|
15
|
+
*/
|
|
16
|
+
viewType: 'completed' | 'unmodified';
|
|
13
17
|
constructor(locale: Locale);
|
|
14
18
|
}
|
|
15
19
|
export type AIReviewModeFinishReviewEvent = {
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x26f5(_0x2f6f52,_0x363694){const _0x970720=_0x9707();return _0x26f5=function(_0x26f5df,_0x220c35){_0x26f5df=_0x26f5df-0xfc;let _0x2ec49e=_0x970720[_0x26f5df];return _0x2ec49e;},_0x26f5(_0x2f6f52,_0x363694);}const _0x410731=_0x26f5;function _0x9707(){const _0x56046f=['resultsHeader','AI_REVIEW_MODE_EMPTY_RESULTS_TEXT','ck-ai-review-mode__review-completed-header-title','885372vKpyZa','2063990wCSJis','completed','54SlBiqJ','ck-ai-review-mode__review-completed-content-icon','setTemplate','isVisible','AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL','span','939370SGKjeE','locale','set','ck-ai-review-mode__review-completed-content-text','ck-ai-review-mode__review-completed','AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE','940175LDwpLf','ck-ai-review-mode__review-completed-header-buttons','_finishReviewButtonView','15526VNDliG','55204liEFGr','div','ck-ai-review-mode__review-completed-header','ck-hidden','1900080gbNDNk','1416UTtmxE','ck-ai-review-mode__review-completed-content','_createResultHeaderView','bindTemplate','5mSarfQ','AI_REVIEW_MODE_COMPLETED_TEXT','_createFinishReviewButtonView','finishReview','viewType','fire','ck-ai-button-primary','execute'];_0x9707=function(){return _0x56046f;};return _0x9707();}(function(_0x530f5e,_0x3fc627){const _0x17d568=_0x26f5,_0x885333=_0x530f5e();while(!![]){try{const _0x5b387f=parseInt(_0x17d568(0x121))/0x1+parseInt(_0x17d568(0x11b))/0x2+-parseInt(_0x17d568(0x112))/0x3+-parseInt(_0x17d568(0xfe))/0x4*(parseInt(_0x17d568(0x107))/0x5)+parseInt(_0x17d568(0x102))/0x6+parseInt(_0x17d568(0xfd))/0x7*(parseInt(_0x17d568(0x103))/0x8)+-parseInt(_0x17d568(0x115))/0x9*(parseInt(_0x17d568(0x113))/0xa);if(_0x5b387f===_0x3fc627)break;else _0x885333['push'](_0x885333['shift']());}catch(_0x262b1c){_0x885333['push'](_0x885333['shift']());}}}(_0x9707,0x8b99f));import{ListItemView as _0x2d17d5,View as _0x4f44c7,ButtonView as _0x4fd078}from'ckeditor5/src/ui.js';import{getTranslation as _0x1f1afb}from'../../aicore/utils/common-translations.js';import'../../../theme/aireviewmode/aireviewmode-review-completed.css';export class AIReviewModeReviewCompletedView extends _0x2d17d5{[_0x410731(0x10f)];[_0x410731(0xfc)];constructor(_0x28df1f){const _0x3f966c=_0x410731;super(_0x28df1f),this[_0x3f966c(0xfc)]=this[_0x3f966c(0x109)](),this[_0x3f966c(0x10f)]=this[_0x3f966c(0x105)](),this[_0x3f966c(0x11d)](_0x3f966c(0x10b),_0x3f966c(0x114));const _0x4e4238=this[_0x3f966c(0x106)];this[_0x3f966c(0x117)]({'tag':_0x3f966c(0xff),'attributes':{'class':[_0x3f966c(0x11f),_0x4e4238['if'](_0x3f966c(0x118),_0x3f966c(0x101),_0x47d381=>!_0x47d381)]},'children':[this[_0x3f966c(0x10f)],{'tag':_0x3f966c(0xff),'attributes':{'class':[_0x3f966c(0x104)]},'children':[{'tag':_0x3f966c(0x11a),'attributes':{'class':[_0x3f966c(0x116)]},'children':[{'text':'🎉'}]},{'tag':'p','attributes':{'class':[_0x3f966c(0x11e)]},'children':[{'text':_0x4e4238['to'](_0x3f966c(0x10b),_0x3628fc=>_0x1f1afb(_0x28df1f,_0x3f966c(0x114)===_0x3628fc?_0x3f966c(0x108):_0x3f966c(0x110)))}]}]}]});}[_0x410731(0x109)](){const _0x84feda=_0x410731,_0x440cc1=new _0x4fd078(this[_0x84feda(0x11c)]);return _0x440cc1[_0x84feda(0x11d)]({'label':_0x1f1afb(this[_0x84feda(0x11c)],_0x84feda(0x119)),'withText':!0x0,'class':_0x84feda(0x10d)}),_0x440cc1['on'](_0x84feda(0x10e),()=>{const _0x1cf198=_0x84feda;this[_0x1cf198(0x10c)](_0x1cf198(0x10a));}),_0x440cc1;}[_0x410731(0x105)](){const _0x1a4bf7=_0x410731,_0x25bb6d=new _0x4f44c7(this[_0x1a4bf7(0x11c)]);return _0x25bb6d[_0x1a4bf7(0x117)]({'tag':_0x1a4bf7(0xff),'attributes':{'class':[_0x1a4bf7(0x100)]},'children':[{'tag':_0x1a4bf7(0x11a),'attributes':{'class':[_0x1a4bf7(0x111)]},'children':[{'text':_0x1f1afb(this[_0x1a4bf7(0x11c)],_0x1a4bf7(0x120))}]},{'tag':_0x1a4bf7(0xff),'attributes':{'class':[_0x1a4bf7(0x122)]},'children':[this[_0x1a4bf7(0xfc)]]}]}),_0x25bb6d;}}
|
|
@@ -36,6 +36,7 @@ export declare class AIReviewModeView extends View {
|
|
|
36
36
|
}): void;
|
|
37
37
|
showReviewCompletedView(): void;
|
|
38
38
|
showActionsWhenResultIsReady(): void;
|
|
39
|
+
showNoChangesView(): void;
|
|
39
40
|
hideActionsWhenResultIsReady(): void;
|
|
40
41
|
showGeneralErrorView(): void;
|
|
41
42
|
showChunkErrorView(): void;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x4616(_0x4a92f5,_0x54e336){var _0x4684b9=_0x4684();return _0x4616=function(_0x4616d6,_0xf6dfc8){_0x4616d6=_0x4616d6-0x192;var _0x35d61e=_0x4684b9[_0x4616d6];return _0x35d61e;},_0x4616(_0x4a92f5,_0x54e336);}var _0x5a3594=_0x4616;function _0x4684(){var _0x3d9e76=['reviewCheckListView','reviewCheckResultsView','finishReview','ck-ai-review-mode','isResultReady','clearResults','AI_REVIEW_MODE','ck-reset_all','ltr','reviewModeHeader','ck-rounded-corners','445028pdwxfk','showNoChangesView','414PKOSzJ','showChunkErrorView','4nwcmpH','showChunkErrorMessage','102OzsuiG','5578128cqBUgn','completed','isVisible','240045qLTYWF','reviewCompletedView','showGeneralErrorView','16703292cBRvfx','hideActionsWhenResultIsReady','showGeneralErrorMessage','ck-ai-header\x20ck-ai-header_review-mode','273909lSTrnH','div','setTemplate','resetErrorState','showReviewCheckListView','delegate','showReviewCompletedView','isLoading','showActionsWhenResultIsReady','resetAllParameterizedChecks','addResult','showReviewCheckResultsView','119240CXmdtK','4EEXHjb','addCheckRunResult','viewType','11wtDRhd','unmodified','set','3200036ZQyDFg'];_0x4684=function(){return _0x3d9e76;};return _0x4684();}(function(_0x47b0df,_0x47f22f){var _0x7695a2=_0x4616,_0x4a0cce=_0x47b0df();while(!![]){try{var _0x2f922e=parseInt(_0x7695a2(0x1a4))/0x1*(-parseInt(_0x7695a2(0x192))/0x2)+parseInt(_0x7695a2(0x1b5))/0x3*(-parseInt(_0x7695a2(0x1a8))/0x4)+parseInt(_0x7695a2(0x1ae))/0x5*(parseInt(_0x7695a2(0x1aa))/0x6)+-parseInt(_0x7695a2(0x198))/0x7+-parseInt(_0x7695a2(0x1ab))/0x8+-parseInt(_0x7695a2(0x1a6))/0x9*(-parseInt(_0x7695a2(0x1c1))/0xa)+-parseInt(_0x7695a2(0x195))/0xb*(-parseInt(_0x7695a2(0x1b1))/0xc);if(_0x2f922e===_0x47f22f)break;else _0x4a0cce['push'](_0x4a0cce['shift']());}catch(_0x542242){_0x4a0cce['push'](_0x4a0cce['shift']());}}}(_0x4684,0x97919));import{View as _0x5e3e14,FormHeaderView as _0x3b3262}from'ckeditor5/src/ui.js';import{IconAIReview as _0x459c0b}from'ckeditor5/src/icons.js';import{AIReviewModeReviewCheckListView as _0x314b63}from'./aireviewmodereviewchecklistview.js';import{AI_REVIEW_MODE_UI_EVENT_NAMES as _0x9e3171}from'../aireviewmodeui.js';import{AIReviewModeReviewCheckResultsView as _0x3b6c90}from'./aireviewmodereviewcheckresultsview.js';import{AIReviewModeReviewCompletedView as _0x55da31}from'./aireviewmodereviewcompletedview.js';import{getTranslation as _0x1e494c}from'../../aicore/utils/common-translations.js';export class AIReviewModeView extends _0x5e3e14{[_0x5a3594(0x1a2)];[_0x5a3594(0x199)];[_0x5a3594(0x19a)];[_0x5a3594(0x1af)];constructor(_0x58963b){var _0x48d292=_0x5a3594;super(_0x58963b),this[_0x48d292(0x1a2)]=new _0x3b3262(_0x58963b,{'label':_0x1e494c(_0x58963b,_0x48d292(0x19f)),'icon':_0x459c0b,'class':_0x48d292(0x1b4)}),this[_0x48d292(0x199)]=new _0x314b63(_0x58963b),this[_0x48d292(0x199)][_0x48d292(0x1ba)](..._0x9e3171)['to'](this),this[_0x48d292(0x19a)]=new _0x3b6c90(_0x58963b),this[_0x48d292(0x19a)][_0x48d292(0x1ba)](..._0x9e3171)['to'](this),this[_0x48d292(0x1af)]=new _0x55da31(_0x58963b),this[_0x48d292(0x1af)][_0x48d292(0x1ba)](_0x48d292(0x19b))['to'](this),this[_0x48d292(0x199)][_0x48d292(0x197)](_0x48d292(0x1ad),!0x1),this[_0x48d292(0x19a)][_0x48d292(0x197)](_0x48d292(0x1ad),!0x1),this[_0x48d292(0x19a)][_0x48d292(0x197)](_0x48d292(0x1bc),!0x1),this[_0x48d292(0x19a)][_0x48d292(0x197)](_0x48d292(0x19d),!0x1),this[_0x48d292(0x1af)][_0x48d292(0x197)](_0x48d292(0x1ad),!0x1),this[_0x48d292(0x1b7)]({'tag':_0x48d292(0x1b6),'attributes':{'class':['ck',_0x48d292(0x1a0),_0x48d292(0x19c),_0x48d292(0x1a3)],'dir':_0x48d292(0x1a1)},'children':[this[_0x48d292(0x1a2)],this[_0x48d292(0x199)],this[_0x48d292(0x19a)],this[_0x48d292(0x1af)]]});}[_0x5a3594(0x1b9)](){var _0x41cd43=_0x5a3594;this[_0x41cd43(0x199)][_0x41cd43(0x1be)](),this[_0x41cd43(0x199)][_0x41cd43(0x197)](_0x41cd43(0x1ad),!0x0),this[_0x41cd43(0x19a)][_0x41cd43(0x197)](_0x41cd43(0x1ad),!0x1),this[_0x41cd43(0x1af)][_0x41cd43(0x197)](_0x41cd43(0x1ad),!0x1);}[_0x5a3594(0x1c0)](){var _0x466f0a=_0x5a3594;this[_0x466f0a(0x1b2)](),this[_0x466f0a(0x19a)][_0x466f0a(0x1b8)](),this[_0x466f0a(0x199)][_0x466f0a(0x197)](_0x466f0a(0x1ad),!0x1),this[_0x466f0a(0x19a)][_0x466f0a(0x197)](_0x466f0a(0x1ad),!0x0),this[_0x466f0a(0x19a)][_0x466f0a(0x19e)](),this[_0x466f0a(0x19a)][_0x466f0a(0x197)](_0x466f0a(0x1bc),!0x0);}[_0x5a3594(0x193)](_0x43d8f4){var _0x1743f7=_0x5a3594;this[_0x1743f7(0x19a)][_0x1743f7(0x1bf)](_0x43d8f4),this[_0x1743f7(0x19a)][_0x1743f7(0x197)](_0x1743f7(0x1bc),!0x1);}[_0x5a3594(0x1bb)](){var _0x452467=_0x5a3594;this[_0x452467(0x199)][_0x452467(0x197)](_0x452467(0x1ad),!0x1),this[_0x452467(0x19a)][_0x452467(0x197)](_0x452467(0x1ad),!0x1),this[_0x452467(0x1af)][_0x452467(0x197)](_0x452467(0x194),_0x452467(0x1ac)),this[_0x452467(0x1af)][_0x452467(0x197)](_0x452467(0x1ad),!0x0);}[_0x5a3594(0x1bd)](){var _0x7ca144=_0x5a3594;this[_0x7ca144(0x19a)][_0x7ca144(0x19d)]=!0x0;}[_0x5a3594(0x1a5)](){var _0x526177=_0x5a3594;this[_0x526177(0x199)][_0x526177(0x197)](_0x526177(0x1ad),!0x1),this[_0x526177(0x19a)][_0x526177(0x197)](_0x526177(0x1ad),!0x1),this[_0x526177(0x1af)][_0x526177(0x197)](_0x526177(0x194),_0x526177(0x196)),this[_0x526177(0x1af)][_0x526177(0x197)](_0x526177(0x1ad),!0x0);}[_0x5a3594(0x1b2)](){var _0x376de6=_0x5a3594;this[_0x376de6(0x19a)][_0x376de6(0x19d)]=!0x1;}[_0x5a3594(0x1b0)](){var _0xbbfa68=_0x5a3594;this[_0xbbfa68(0x19a)][_0xbbfa68(0x197)](_0xbbfa68(0x1bc),!0x1),this[_0xbbfa68(0x1bd)](),this[_0xbbfa68(0x19a)][_0xbbfa68(0x1b3)]();}[_0x5a3594(0x1a7)](){var _0x4fd1d9=_0x5a3594;this[_0x4fd1d9(0x19a)][_0x4fd1d9(0x197)](_0x4fd1d9(0x1bc),!0x1),this[_0x4fd1d9(0x1bd)](),this[_0x4fd1d9(0x19a)][_0x4fd1d9(0x1a9)]();}}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
9
9
|
import { type View, ListItemView } from 'ckeditor5/src/ui.js';
|
|
10
|
-
import { type AIReviewCheckOptions } from '../../
|
|
10
|
+
import { type AIReviewCheckOptions } from '../../aireviewcheckdefinitions.js';
|
|
11
11
|
export declare class AIReviewModeFormManagerView extends ListItemView {
|
|
12
12
|
value: string;
|
|
13
13
|
argsKey: string | undefined;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x467ca5=_0x120c;(function(_0x2606be,_0x40d166){const _0x5cf065=_0x120c,_0x24f920=_0x2606be();while(!![]){try{const _0x4efa5a=parseInt(_0x5cf065(0x1da))/0x1*(parseInt(_0x5cf065(0x1ce))/0x2)+-parseInt(_0x5cf065(0x1c4))/0x3*(parseInt(_0x5cf065(0x1ca))/0x4)+parseInt(_0x5cf065(0x1c5))/0x5+-parseInt(_0x5cf065(0x1d8))/0x6+-parseInt(_0x5cf065(0x1d0))/0x7+parseInt(_0x5cf065(0x1d2))/0x8*(parseInt(_0x5cf065(0x1c0))/0x9)+parseInt(_0x5cf065(0x1d9))/0xa;if(_0x4efa5a===_0x40d166)break;else _0x24f920['push'](_0x24f920['shift']());}catch(_0x579b29){_0x24f920['push'](_0x24f920['shift']());}}}(_0x1c2e,0x5a428));function _0x1c2e(){const _0x165538=['2080460BcSnRf','bind','ck-ai-review-mode__form-item','ck-form__row_with-submit','dropdown','44bUrdmt','children','formValue','setTemplate','27466CKgejs','resetToDefault','195118FampAn','value','34376LGQhJh','set','locale','add','_formItem','div','4111656LqEFrh','5416690TVcdYa','19aZOgdz','261diKejy','argsKey','formType','ck-reset_all','71031qrXSWt'];_0x1c2e=function(){return _0x165538;};return _0x1c2e();}import{FormRowView as _0x5010b8,ListItemView as _0x27076e}from'ckeditor5/src/ui.js';import{AIReviewModeFormDropdownView as _0x5c2917}from'./aireviewmodeformdropdown.js';function _0x120c(_0x3e0a88,_0x59ec3a){const _0x1c2e18=_0x1c2e();return _0x120c=function(_0x120cac,_0x162c7b){_0x120cac=_0x120cac-0x1c0;let _0x6a9e01=_0x1c2e18[_0x120cac];return _0x6a9e01;},_0x120c(_0x3e0a88,_0x59ec3a);}export class AIReviewModeFormManagerView extends _0x27076e{[_0x467ca5(0x1d6)]=null;constructor(_0x5d4d50,_0x20b03a,_0x2cd049){const _0x5e4a3f=_0x467ca5;super(_0x5d4d50),this[_0x5e4a3f(0x1c1)]=_0x20b03a?.[_0x5e4a3f(0x1c1)];if(_0x5e4a3f(0x1c9)===_0x20b03a[_0x5e4a3f(0x1c2)])this[_0x5e4a3f(0x1d6)]=new _0x5c2917(this[_0x5e4a3f(0x1d4)],_0x20b03a);this[_0x5e4a3f(0x1d3)](_0x5e4a3f(0x1d1),''),this[_0x5e4a3f(0x1c6)](_0x5e4a3f(0x1d1))['to'](this[_0x5e4a3f(0x1d6)],_0x5e4a3f(0x1cc));const _0x1bc998=new _0x5010b8(this[_0x5e4a3f(0x1d4)],{'children':[this[_0x5e4a3f(0x1d6)]],'class':[_0x2cd049?_0x5e4a3f(0x1c8):'']});_0x2cd049&&_0x1bc998[_0x5e4a3f(0x1cb)][_0x5e4a3f(0x1d5)](_0x2cd049),this[_0x5e4a3f(0x1cd)]({'tag':_0x5e4a3f(0x1d7),'attributes':{'class':['ck',_0x5e4a3f(0x1c7),_0x5e4a3f(0x1c3)]},'children':[_0x1bc998]});}[_0x467ca5(0x1cf)](){const _0x118902=_0x467ca5;this[_0x118902(0x1d6)][_0x118902(0x1cf)]();}}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
9
|
import { View } from 'ckeditor5/src/ui.js';
|
|
10
|
-
import type { AIReviewCheckOptions } from '../../
|
|
10
|
+
import type { AIReviewCheckOptions } from '../../aireviewcheckdefinitions.js';
|
|
11
11
|
export declare class AIReviewModeFormDropdownView extends View {
|
|
12
12
|
/**
|
|
13
13
|
* The `value` of the currently selected option.
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x749cbe=_0x19fc;function _0x19fc(_0x52d95e,_0x39cc64){const _0x4ac503=_0x4ac5();return _0x19fc=function(_0x19fc3a,_0xeaf66c){_0x19fc3a=_0x19fc3a-0x1b6;let _0x33b99a=_0x4ac503[_0x19fc3a];return _0x33b99a;},_0x19fc(_0x52d95e,_0x39cc64);}(function(_0x48e61d,_0x305ee9){const _0x1882d4=_0x19fc,_0x12111d=_0x48e61d();while(!![]){try{const _0x1423d4=-parseInt(_0x1882d4(0x1da))/0x1+-parseInt(_0x1882d4(0x1cb))/0x2*(-parseInt(_0x1882d4(0x1ba))/0x3)+parseInt(_0x1882d4(0x1d4))/0x4+-parseInt(_0x1882d4(0x1c1))/0x5*(-parseInt(_0x1882d4(0x1cf))/0x6)+-parseInt(_0x1882d4(0x1c3))/0x7+-parseInt(_0x1882d4(0x1e0))/0x8*(parseInt(_0x1882d4(0x1be))/0x9)+parseInt(_0x1882d4(0x1cd))/0xa*(parseInt(_0x1882d4(0x1d7))/0xb);if(_0x1423d4===_0x305ee9)break;else _0x12111d['push'](_0x12111d['shift']());}catch(_0x188a8d){_0x12111d['push'](_0x12111d['shift']());}}}(_0x4ac5,0xbdbc0));import{Collection as _0x3bc9bc}from'ckeditor5/src/utils.js';import{View as _0x1e42f0,createDropdown as _0x4e50e6,addListToDropdown as _0x545c81,UIModel as _0x2abdb5}from'ckeditor5/src/ui.js';export class AIReviewModeFormDropdownView extends _0x1e42f0{[_0x749cbe(0x1ce)];[_0x749cbe(0x1d1)];[_0x749cbe(0x1cc)];constructor(_0x3ac388,_0x40fa52){const _0x525a87=_0x749cbe;super(_0x3ac388),this[_0x525a87(0x1d1)]=_0x40fa52[_0x525a87(0x1c0)]||(_0x40fa52[_0x525a87(0x1bc)][_0x525a87(0x1d5)]>0x0?_0x40fa52[_0x525a87(0x1bc)][0x0]['id']:''),this[_0x525a87(0x1cc)]=_0x40fa52[_0x525a87(0x1bc)][_0x525a87(0x1db)](_0x1d1150=>_0x1d1150['id']===this[_0x525a87(0x1d1)])?.[_0x525a87(0x1bb)]||'',this[_0x525a87(0x1c2)](_0x525a87(0x1d6),''),this[_0x525a87(0x1ce)]=_0x4e50e6(this[_0x525a87(0x1c6)]);const _0x1f9665=this[_0x525a87(0x1dc)](_0x40fa52[_0x525a87(0x1bc)]);_0x545c81(this[_0x525a87(0x1ce)],_0x1f9665,{'role':_0x525a87(0x1c5),'ariaLabel':_0x40fa52[_0x525a87(0x1bb)]}),this[_0x525a87(0x1ce)][_0x525a87(0x1c9)][_0x525a87(0x1c2)]({'label':this[_0x525a87(0x1cc)],'withText':!0x0}),this[_0x525a87(0x1ce)][_0x525a87(0x1d0)]({'on':{'click':this[_0x525a87(0x1c4)]['to'](_0x153b22=>{const _0x3869f9=_0x525a87;_0x153b22[_0x3869f9(0x1b9)]();})}}),this[_0x525a87(0x1c7)](this[_0x525a87(0x1ce)],_0x525a87(0x1bf),_0x58d1f5=>{const _0xf1e391=_0x525a87;this[_0xf1e391(0x1d6)]=_0x58d1f5[_0xf1e391(0x1df)][_0xf1e391(0x1b6)]['id'],this[_0xf1e391(0x1ce)][_0xf1e391(0x1c9)][_0xf1e391(0x1bb)]=_0x58d1f5[_0xf1e391(0x1df)][_0xf1e391(0x1b6)][_0xf1e391(0x1bb)];}),this[_0x525a87(0x1dd)]({'tag':_0x525a87(0x1d8),'attributes':{'class':['ck',_0x525a87(0x1d9),_0x525a87(0x1bd),_0x525a87(0x1b8)]},'children':[this[_0x525a87(0x1ce)]]});}[_0x749cbe(0x1c8)](){const _0x43fc3e=_0x749cbe;this[_0x43fc3e(0x1d6)]=this[_0x43fc3e(0x1d1)],this[_0x43fc3e(0x1ce)][_0x43fc3e(0x1c9)][_0x43fc3e(0x1bb)]=this[_0x43fc3e(0x1cc)];}[_0x749cbe(0x1dc)](_0x16c618=[]){const _0x2fd758=_0x749cbe,_0x394d2d=new _0x3bc9bc();this[_0x2fd758(0x1c8)]();for(const _0x116974 of _0x16c618){const _0x432218=new _0x2abdb5({'label':_0x116974[_0x2fd758(0x1bb)],'withText':!0x0,'role':_0x2fd758(0x1d2),'id':_0x116974['id'],'model':_0x116974});_0x432218[_0x2fd758(0x1d3)](_0x2fd758(0x1b7))['to'](this,_0x2fd758(0x1d6),_0x56ba6a=>_0x56ba6a===_0x432218['id']);const _0x5b47c7={'type':_0x2fd758(0x1ca),'model':_0x432218};_0x394d2d[_0x2fd758(0x1de)](_0x5b47c7);}return _0x394d2d;}}function _0x4ac5(){const _0x43181e=['buttonView','button','1272lCdhpf','_defaultLabel','11883080CknLmL','_dropdownView','2410836ZGJhvl','extendTemplate','_defaultValue','menuitemradio','bind','4877184PkFrAh','length','formValue','11iyBQGX','div','ck-reset_all','1146566knkkgz','find','_prepareListOptions','setTemplate','add','source','245792gyBskY','model','isOn','ck-ai-review-mode__check-list-item-parameterized-form-element_dropdown','stopPropagation','816UwRpoZ','label','data','ck-ai-review-mode__check-list-item-parameterized-form-element','297VWFGbN','execute','default','5AKmQWK','set','313544KmxWyR','bindTemplate','menu','locale','listenTo','resetToDefault'];_0x4ac5=function(){return _0x43181e;};return _0x4ac5();}
|