@ckeditor/ckeditor5-ai 47.0.0-alpha.0 → 47.0.0-alpha.2
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/dist/index-editor.css +114 -12
- package/dist/index.css +114 -12
- 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 +36 -1
- 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.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.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 +16 -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.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +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/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 +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +1 -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.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +6 -1
- 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/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +4 -0
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- 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.js +1 -1
- 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 +4 -0
- package/theme/aireviewmode/aireviewmode-check-list.css +112 -11
- 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
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59c5ad=_0x538d;(function(_0x5e0a97,_0x1eba30){const _0x2a745a=_0x538d,_0x52f904=_0x5e0a97();while(!![]){try{const _0x588dce=parseInt(_0x2a745a(0xf0))/0x1*(parseInt(_0x2a745a(0xec))/0x2)+-parseInt(_0x2a745a(0xe6))/0x3*(-parseInt(_0x2a745a(0xd7))/0x4)+parseInt(_0x2a745a(0xe0))/0x5*(-parseInt(_0x2a745a(0xfd))/0x6)+-parseInt(_0x2a745a(0xe1))/0x7+-parseInt(_0x2a745a(0xdd))/0x8+parseInt(_0x2a745a(0xda))/0x9+parseInt(_0x2a745a(0xe3))/0xa;if(_0x588dce===_0x1eba30)break;else _0x52f904['push'](_0x52f904['shift']());}catch(_0x14062e){_0x52f904['push'](_0x52f904['shift']());}}}(_0x5ee5,0xdfcfa));import{View as _0x4f5773,ButtonView as _0x35a2f5}from'ckeditor5/src/ui.js';import{IconInfo as _0x3252bb}from'ckeditor5/src/icons.js';import{getTranslation as _0x3f890b}from'../../aicore/utils/common-translations.js';function _0x538d(_0x3bad14,_0x147659){const _0x5ee54b=_0x5ee5();return _0x538d=function(_0x538d4c,_0x21949c){_0x538d4c=_0x538d4c-0xce;let _0x2c740f=_0x5ee54b[_0x538d4c];return _0x2c740f;},_0x538d(_0x3bad14,_0x147659);}function _0x5ee5(){const _0x1d5978=['_createAcceptButtonView','ck-ai-button-tertiary-filled\x20ck-ai-review-mode__check-run-result-info-button\x20ck-hidden','div','ck-ai-review-mode__check-run-result-response','isActive','_createDismissButtonView','setItemAsInactive','acceptChange','AI_REVIEW_MODE_DISMISS_CHANGE','11416TpiRVx','setItemAsActive','execute','9320643xKCFsK','_createResultResponseView','locale','9558392LAZhaR','isOn','click','115ETEiTg','8183343HJpuqo','scrollToSuggestionInDocument','11154200SIyMzn','stopPropagation','ck-ai-button-secondary\x20ck-ai-review-mode__check-run-result-accept-button','1683qdZThv','ck-ai-review-mode__check-run-result_active','resultResponseView','ck-ai-review-mode__check-run-result-action-buttons','bindTemplate','isInfoToggleOn','528FVDtPN','AI_REVIEW_MODE_ACCEPT_CHANGE','setTemplate','ck-ai-review-mode__check-run-result','4059HGeXDL','infoButtonView','log','Toggle\x20info\x20view','dismissButtonView','extendTemplate','bind','ck-ai-button-tertiary-filled\x20ck-ai-review-mode__check-run-result-dismiss-button','set','ck-ai-review-mode__check-run-result-footer','acceptButtonView','dismissChange','_createInfoButtonView','402558ZxnyCJ','fire','menuitemcheckbox','AI_REVIEW_MODE_LEARN_MORE'];_0x5ee5=function(){return _0x1d5978;};return _0x5ee5();}export class AIReviewModeReviewCheckListItemResultsView extends _0x4f5773{[_0x59c5ad(0xe8)];[_0x59c5ad(0xfa)];[_0x59c5ad(0xf4)];[_0x59c5ad(0xf1)];constructor(_0x103195,_0x4766f2){const _0x5d0faa=_0x59c5ad;super(_0x103195),this['id']=_0x4766f2,this[_0x5d0faa(0xe8)]=this[_0x5d0faa(0xdb)](),this[_0x5d0faa(0xfa)]=this[_0x5d0faa(0xce)](_0x4766f2),this[_0x5d0faa(0xf4)]=this[_0x5d0faa(0xd3)](_0x4766f2),this[_0x5d0faa(0xf1)]=this[_0x5d0faa(0xfc)](),this[_0x5d0faa(0xf8)](_0x5d0faa(0xeb),!0x1),this[_0x5d0faa(0xf8)](_0x5d0faa(0xd2),!0x1),this[_0x5d0faa(0xee)]({'tag':_0x5d0faa(0xd0),'attributes':{'class':[_0x5d0faa(0xef),this[_0x5d0faa(0xea)]['if'](_0x5d0faa(0xd2),_0x5d0faa(0xe7))]},'on':{'click':this[_0x5d0faa(0xea)]['to'](_0x5d0faa(0xdf))},'children':[this[_0x5d0faa(0xe8)],{'tag':_0x5d0faa(0xd0),'attributes':{'class':[_0x5d0faa(0xf9)]},'children':[{'tag':_0x5d0faa(0xd0),'attributes':{'class':[_0x5d0faa(0xe9)]},'children':[this[_0x5d0faa(0xfa)],this[_0x5d0faa(0xf4)]]},this[_0x5d0faa(0xf1)]]}]}),this['on'](_0x5d0faa(0xdf),()=>{const _0x181d4b=_0x5d0faa;this[_0x181d4b(0xfe)](_0x181d4b(0xe2),{'id':_0x4766f2,'source':this});});}[_0x59c5ad(0xd8)](){const _0x13c4d4=_0x59c5ad;this[_0x13c4d4(0xd2)]=!0x0;}[_0x59c5ad(0xd4)](){const _0x55eadf=_0x59c5ad;this[_0x55eadf(0xd2)]=!0x1;}[_0x59c5ad(0xdb)](){const _0x4cd589=_0x59c5ad,_0x2cf5e2=new _0x4f5773(this[_0x4cd589(0xdc)]);return _0x2cf5e2[_0x4cd589(0xee)]({'tag':_0x4cd589(0xd0),'attributes':{'class':[_0x4cd589(0xd1)]}}),_0x2cf5e2;}[_0x59c5ad(0xce)](_0x2ac6fc){const _0x35f476=_0x59c5ad,_0x279fb3=new _0x35a2f5(this[_0x35f476(0xdc)]);return _0x279fb3[_0x35f476(0xf8)]({'label':_0x3f890b(this[_0x35f476(0xdc)],_0x35f476(0xed)),'withText':!0x0,'class':_0x35f476(0xe5)}),_0x279fb3[_0x35f476(0xf5)]({'on':{'click':this[_0x35f476(0xea)]['to'](_0x2c8e23=>{const _0x854004=_0x35f476;this[_0x854004(0xfe)](_0x854004(0xd5),{'id':_0x2ac6fc}),_0x2c8e23[_0x854004(0xe4)]();})}}),_0x279fb3;}[_0x59c5ad(0xd3)](_0x691641){const _0x8cdd2b=_0x59c5ad,_0x251b87=new _0x35a2f5(this[_0x8cdd2b(0xdc)]);return _0x251b87[_0x8cdd2b(0xf8)]({'label':_0x3f890b(this[_0x8cdd2b(0xdc)],_0x8cdd2b(0xd6)),'withText':!0x0,'class':_0x8cdd2b(0xf7)}),_0x251b87[_0x8cdd2b(0xf5)]({'on':{'click':this[_0x8cdd2b(0xea)]['to'](_0x67a43a=>{const _0x2832ed=_0x8cdd2b;this[_0x2832ed(0xfe)](_0x2832ed(0xfb),{'id':_0x691641}),_0x67a43a[_0x2832ed(0xe4)]();})}}),_0x251b87;}[_0x59c5ad(0xfc)](){const _0x5bc5b9=_0x59c5ad,_0x45dcff=new _0x35a2f5(this[_0x5bc5b9(0xdc)]);return _0x45dcff[_0x5bc5b9(0xf8)]({'label':_0x3f890b(this[_0x5bc5b9(0xdc)],_0x5bc5b9(0x100)),'icon':_0x3252bb,'tooltip':!0x0,'isToggleable':!0x0,'role':_0x5bc5b9(0xff),'class':_0x5bc5b9(0xcf)}),_0x45dcff[_0x5bc5b9(0xf6)](_0x5bc5b9(0xde))['to'](this,_0x5bc5b9(0xeb),_0x4b5495=>_0x4b5495),_0x45dcff['on'](_0x5bc5b9(0xd9),()=>{const _0x29d480=_0x5bc5b9;console[_0x29d480(0xf2)](_0x29d480(0xf3)),this[_0x29d480(0xeb)]=!this[_0x29d480(0xeb)];}),_0x45dcff;}}
|
|
@@ -16,4 +16,8 @@ export declare class AIReviewModeCustomCheckView extends View {
|
|
|
16
16
|
cancelButtonView: ButtonView;
|
|
17
17
|
promptInputView: AIReviewModePromptInputView;
|
|
18
18
|
constructor(locale: Locale, check: AIReviewCheckCustom);
|
|
19
|
+
/**
|
|
20
|
+
* Resets the form to its default state.
|
|
21
|
+
*/
|
|
22
|
+
resetToDefault(): void;
|
|
19
23
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
import{Collection as _0x41c214}from'ckeditor5/src/utils.js';import{View as _0x1f468b,ButtonView as _0x53eba1,FormRowView as _0x3b2844,createDropdown as _0x35ee3f,addListToDropdown as _0x3c713c,UIModel as _0x558319,ButtonLabelView as _0x411cd2}from'ckeditor5/src/ui.js';import{AIReviewModePromptInputView as _0x165657}from'./aireviemodepromptinputview.js';export class AIReviewModeCustomCheckView extends _0x1f468b{['submitButtonView'];['cancelButtonView'];['promptInputView'];['_modelSelectionDropdown'];['_modelSelectionDropdownItems'];['_check'];['_defaultValue'];['_defaultLabel'];constructor(_0x415938,_0x1bb59f){super(_0x415938),this['_check']=_0x1bb59f,this['set']('prompt',''),this['set']('modelId',''),this['_defaultValue']=_0x1bb59f['models']&&_0x1bb59f['models']['length']>0x0?_0x1bb59f['models'][0x0]['id']:'',this['_defaultLabel']=_0x1bb59f['models']&&_0x1bb59f['models']['length']>0x0?_0x1bb59f['models'][0x0]['name']:'',this['submitButtonView']=this['_createSubmitButtonView'](),this['cancelButtonView']=this['_createCancelButtonView'](),this['promptInputView']=new _0x165657(_0x415938),this['promptInputView']['bind']('value')['to'](this,'prompt'),this['promptInputView']['on']('input',()=>{this['prompt']=this['promptInputView']['element']['value'];}),this['_modelSelectionDropdown']=this['_createModelSelectionDropdown'](),this['_modelSelectionDropdownItems']=new _0x41c214(),this['_setModelList'](),_0x3c713c(this['_modelSelectionDropdown'],this['_modelSelectionDropdownItems']);const _0x321f06=new _0x1f468b(_0x415938);_0x321f06['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 _0x3b2844(this['locale'],{'children':[this['promptInputView']]}),new _0x3b2844(this['locale'],{'children':[_0x321f06]})]});}['resetToDefault'](){this['prompt']='',this['modelId']=this['_defaultValue'],this['_modelSelectionDropdown']['buttonView']['label']=this['_defaultLabel'];}['_createSubmitButtonView'](){const _0x299f81=new _0x53eba1(this['locale']),t=this['locale']['t'];return _0x299f81['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x299f81['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x2335ba=>{_0x2335ba['stopPropagation']();})}}),_0x299f81['on']('execute',()=>{this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0});}),_0x299f81;}['_createCancelButtonView'](){const _0x47ea85=new _0x53eba1(this['locale']),t=this['locale']['t'];return _0x47ea85['set']({'label':t('Cancel'),'withText':!0x0,'class':'ck-ai-button-tertiary-filled'}),_0x47ea85['on']('execute',()=>{this['resetToDefault']();}),_0x47ea85;}['_setModelList'](){this['_modelSelectionDropdownItems']['clear']();const _0x9379cd=this['_check']['models'];if(this['resetToDefault'](),_0x9379cd?.['length'])for(const _0x193cc1 of _0x9379cd){const _0x1f4e31=new _0x558319({'label':_0x193cc1['name'],'withText':!0x0,'role':'menuitemradio','id':_0x193cc1['id'],'model':_0x193cc1});_0x1f4e31['bind']('isOn')['to'](this,'modelId',_0x4f5577=>_0x4f5577===_0x193cc1['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x1f4e31,'labelView':new js(this['locale'],_0x193cc1)});}}['_createModelSelectionDropdown'](){const _0x5c20a0=_0x35ee3f(this['locale']);return _0x5c20a0['set']({'panelPosition':'se','class':'ck-ai-review-mode__check-list-item-model-dropdown'}),_0x5c20a0['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x225dd5=>{_0x225dd5['stopPropagation']();})}}),_0x5c20a0['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0,'tooltip':!0x0}),this['listenTo'](_0x5c20a0,'execute',_0x1e8fff=>{this['modelId']=_0x1e8fff['source']['model']['id'],_0x5c20a0['buttonView']['label']=_0x1e8fff['source']['label'];}),_0x5c20a0;}}class js extends _0x411cd2{constructor(_0x44b0d1,_0x42a94a){super();const _0x207064=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x207064['to']('style'),'id':_0x207064['to']('id')},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-name']},'children':[{'text':_0x207064['to']('text')}]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-description']},'children':[{'tag':'span','children':[{'text':_0x42a94a['description']}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c827=_0x3227;(function(_0x23d2a3,_0x77a2a0){const _0x12de69=_0x3227,_0x2ad87a=_0x23d2a3();while(!![]){try{const _0x3add6c=parseInt(_0x12de69(0x14e))/0x1+parseInt(_0x12de69(0x152))/0x2+parseInt(_0x12de69(0x15f))/0x3*(-parseInt(_0x12de69(0x156))/0x4)+-parseInt(_0x12de69(0x15e))/0x5+-parseInt(_0x12de69(0x154))/0x6*(parseInt(_0x12de69(0x159))/0x7)+-parseInt(_0x12de69(0x157))/0x8*(-parseInt(_0x12de69(0x15b))/0x9)+-parseInt(_0x12de69(0x162))/0xa;if(_0x3add6c===_0x77a2a0)break;else _0x2ad87a['push'](_0x2ad87a['shift']());}catch(_0x3eaf20){_0x2ad87a['push'](_0x2ad87a['shift']());}}}(_0x1195,0x994d2));import{ListItemView as _0x1fade5,ViewCollection as _0x57992e}from'ckeditor5/src/ui.js';import{AIReviewModeReviewCommandListItemView as _0x2555a6}from'./aireviewmodereviewcommandlistitemview.js';import'../../../theme/aireviewmode/aireviewmode-check-list.css';export class AIReviewModeReviewCheckListView extends _0x1fade5{[_0x5c827(0x153)];constructor(_0x4bbaaa){const _0x1a36d7=_0x5c827;super(_0x4bbaaa),this[_0x1a36d7(0x153)]=new _0x57992e();const _0x42ec0a=this[_0x1a36d7(0x15d)];this[_0x1a36d7(0x168)]({'tag':_0x1a36d7(0x158),'attributes':{'class':[_0x1a36d7(0x15a),_0x42ec0a['if'](_0x1a36d7(0x151),_0x1a36d7(0x14f),_0x5b4062=>!_0x5b4062)]},'children':this[_0x1a36d7(0x153)]});}[_0x5c827(0x155)](_0x313267){const _0xb1a651=_0x5c827;this[_0xb1a651(0x153)][_0xb1a651(0x166)]();for(const [_0x1240de,_0xa10016]of _0x313267[_0xb1a651(0x160)]()){const _0x5eb537=new _0x2555a6(this[_0xb1a651(0x150)],_0xa10016,_0x1240de);_0x5eb537[_0xb1a651(0x167)](_0xb1a651(0x15c))['to'](this),this[_0xb1a651(0x153)][_0xb1a651(0x164)](_0x5eb537);}}[_0x5c827(0x165)](){const _0x41a1ea=_0x5c827;return this[_0x41a1ea(0x153)][_0x41a1ea(0x163)]>0x0;}[_0x5c827(0x169)](){const _0x593fa7=_0x5c827;for(const _0x5281bf of this[_0x593fa7(0x153)])_0x5281bf instanceof _0x2555a6&&_0x5281bf[_0x593fa7(0x161)]();}}function _0x3227(_0x29b06d,_0x31a23f){const _0x11958e=_0x1195();return _0x3227=function(_0x322734,_0x19e53d){_0x322734=_0x322734-0x14e;let _0xc98458=_0x11958e[_0x322734];return _0xc98458;},_0x3227(_0x29b06d,_0x31a23f);}function _0x1195(){const _0x475207=['setChecks','631156mKMqkI','64nGquAJ','div','196FezLeU','ck-ai-review-mode__check-list','305568VEOlRu','runReviewCheck','bindTemplate','1792910GGYuxM','15TadLlY','entries','resetToDefault','676850JZfoJv','length','add','hasChecks','clear','delegate','setTemplate','resetAllParameterizedChecks','1078790ytSVuC','ck-hidden','locale','isVisible','1834472uuKowJ','_checkViews','90966PatdiL'];_0x1195=function(){return _0x475207;};return _0x1195();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ListItemView as
|
|
23
|
+
import{ListItemView as _0x4bb746,View as _0x561c77,ViewCollection as _0x4ac094,ButtonView as _0x2681de}from'ckeditor5/src/ui.js';import{IconStop as _0x690863,IconEye as _0x1f10ab,IconEyeCrossedOut as _0x52eb14}from'ckeditor5/src/icons.js';import{AIReviewModeReviewCheckListItemResultsView as _0x4ebd43}from'./aireviewmodechecklistitemresultview.js';import{AISkeletonView as _0x43d5c5,SKELETON_DEFINITIONS as _0x3aa2dd}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x35daff}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0x5e5d6c}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0x468ae7}from'../../aicore/ui/aispinner.js';import'../../../theme/aireviewmode/aireviewmode-check-run.css';export class AIReviewModeReviewCheckResultsView extends _0x4bb746{['_resultViews'];['resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];constructor(_0x5a98a7){super(_0x5a98a7),this['_resultViews']=new _0x4ac094(),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 _0x35daff(_0x5a98a7),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 _0x10adab=this['_createCombinedSkeletonLoader'](),_0x5c44be=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run',_0x5c44be['if']('isVisible','ck-hidden',_0x1d42fc=>!_0x1d42fc)]},'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',_0x1a5577=>_0x1a5577)]},'children':this['_resultViews']},_0x10adab]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x249f8d){const _0x135978=new _0x4ebd43(this['locale'],_0x249f8d['id']);_0x135978['delegate']('acceptChange','dismissChange','scrollToSuggestionInDocument')['to'](this),this['_resultViews']['add'](_0x135978),_0x135978['resultResponseView']['element']['innerHTML']=_0x249f8d['contentDiffed'];}['hideResult'](_0x495e04){const _0x5118a5=this['_resultViews']['find'](_0xc2862=>_0xc2862['id']===_0x495e04);_0x5118a5&&(_0x5118a5['element']?.['classList']['add']('ck-ai-review-mode__check-run-result_removing'),_0x5118a5['element']?.['addEventListener']('animationend',()=>{this['_resultViews']['remove'](_0x5118a5),_0x5118a5['destroy']();},{'once':!0x0}));}['setTitle'](_0x692f76){this['headerTitle']=_0x692f76;}['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 _0x43d5c5(this['locale'],_0x3aa2dd['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x57c018=new _0x561c77(this['locale']),_0x1d40c0=[];for(let _0x3bb4fe=0x0;_0x3bb4fe<0x10;_0x3bb4fe++){const _0x5b1b94=this['_createSkeletonLoader']();_0x5b1b94['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-run-skeleton-item']}}),_0x1d40c0['push'](_0x5b1b94);}return _0x57c018['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x363d93=>!_0x363d93)]},'children':_0x1d40c0}),_0x57c018;}['_createErrorView'](){const _0x5b428e=new _0x561c77(this['locale']),_0x5c62ab=new _0x2681de(this['locale']),t=this['locale']['t'];return _0x5b428e['delegate']('retryReview')['to'](this),_0x5c62ab['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai-review-mode__check-run-error-retry-button'}),_0x5c62ab['on']('execute',()=>{this['fire']('retryReview');}),_0x5b428e['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x3381fa=>!_0x3381fa),this['bindTemplate']['if']('errorType','ck-ai-review-mode__check-run-error-container_border-bottom',_0x4f2d7c=>'chunk'===_0x4f2d7c)]},'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',_0x267f6f=>'chunk'===_0x267f6f)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x4c722a=>'general'!==_0x4c722a)]},'children':[{'text':_0x5e5d6c(this['locale'],'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}]},{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x22d2b7=>'chunk'!==_0x22d2b7)]},'children':[{'text':_0x5e5d6c(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x5c62ab]}),_0x5b428e;}['_createCancelButtonView'](){const _0x46006b=new _0x2681de(this['locale']);return _0x46006b['set']({'label':_0x5e5d6c(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ai-chat-controls-loader__cancel-button'],'icon':_0x690863}),_0x46006b['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x38c52c=>_0x38c52c)]}}),_0x46006b['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x46006b;}['_createToggleDiffButtonView'](){const _0x2cdf6b=new _0x2681de(this['locale']);_0x2cdf6b['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x2cdf6b['bind']('isEnabled')['to'](this,'isError',_0x4651d2=>!_0x4651d2),_0x2cdf6b['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai-review-mode__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x15cdec=>!_0x15cdec)]}});const _0x43f07e=_0x5e5d6c(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x31db35=_0x5e5d6c(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x2cdf6b['bind']('isOn')['to'](this,'isToggleDiffOn',_0x12304c=>_0x12304c),_0x2cdf6b['bind']('icon')['to'](this,'isToggleDiffOn',_0x2b10a0=>_0x2b10a0?_0x1f10ab:_0x52eb14),_0x2cdf6b['bind']('label')['to'](this,'isToggleDiffOn',_0x1c46dd=>_0x1c46dd?_0x43f07e:_0x31db35),_0x2cdf6b['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x2cdf6b;}['_createAcceptAllButtonView'](){const _0x555e20=new _0x2681de(this['locale']);return _0x555e20['set']({'label':_0x5e5d6c(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x555e20['bind']('isEnabled')['to'](this,'isError',_0x4e9be7=>!_0x4e9be7),_0x555e20['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai-review-mode__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x2ae0a6=>!_0x2ae0a6)]}}),_0x555e20['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x555e20;}['_createExitReviewButtonView'](){const _0x38849c=new _0x2681de(this['locale']);return _0x38849c['set']({'label':_0x5e5d6c(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x38849c['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary-filled','ck-ai-review-mode__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x138b5e=>!_0x138b5e)]}}),_0x38849c['on']('execute',()=>{this['fire']('leaveReviewModeResultList');}),_0x38849c;}['_createResultHeaderView'](){const _0x527367=new _0x561c77(this['locale']),_0x2ae7a=new _0x468ae7();return _0x2ae7a['bind']('isVisible')['to'](this,'isResultReady',_0xfc9c50=>!_0xfc9c50),_0x527367['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':[_0x2ae7a,this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView']]}]}),_0x527367;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
import{ListItemView as _0x3a1332,IconView as _0x58d69a,View as _0x18af4b,ViewCollection as _0x4147d3,ButtonView as _0x33829f,clickOutsideHandler as _0x5c559b}from'ckeditor5/src/ui.js';import{IconChevronRight as _0x422ad8}from'ckeditor5/src/icons.js';import{AIReviewModeFormManagerView as _0x486628}from'./form/aireviewmodeformmanager.js';import{AIReviewModeCustomCheckView as _0x447102}from'./aireviewmodecustomcheckview.js';export class AIReviewModeReviewCommandListItemView extends _0x3a1332{['_formItemsCollection']=new _0x4147d3();['_customCheckView']=null;constructor(_0x5d70b2,_0xabc48a,_0x19d943){super(_0x5d70b2),this['set']('isParametrizedViewOpen',!0x1),this['set']('isListItemRendered',!0x1),this['set']('isItemParametrized',_0xabc48a['isParameterized']);const _0x462ecc=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',_0x36cb47=>_0x36cb47),this['bindTemplate']['if']('isListItemRendered','ck-ai-review-mode__check-list-item_rendered',_0x200365=>_0x200365)],'style':{'--ck-ai-check-list-item-index':_0x19d943}},'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':_0xabc48a['title']}]},_0x462ecc]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-description']},'children':[{'text':_0xabc48a['description']}]}]}]},..._0xabc48a['isParameterized']?[this['_createParameterizedView'](_0xabc48a)]:[],...'custom'===_0xabc48a['id']?[this['_createCustomView'](_0xabc48a)]:[]]}),this['on']('click',()=>{_0xabc48a['isParameterized']?this['isParametrizedViewOpen']=!0x0:this['fire']('runReviewCheck',{'id':_0xabc48a['id']});}),requestAnimationFrame(()=>{this['isListItemRendered']=!0x0;});}['render'](){super['render'](),this['isItemParametrized']&&_0x5c559b({'emitter':this,'activator':()=>!0x0===this['isParametrizedViewOpen'],'contextElements':[this['element']],'callback':()=>{this['isParametrizedViewOpen']=!0x1;}});}['resetToDefault'](){this['isParametrizedViewOpen']=!0x1,this['_formItemsCollection']['forEach'](_0x44ff97=>{_0x44ff97['resetToDefault']();}),this['_customCheckView']&&this['_customCheckView']['resetToDefault']();}['_createIconView'](){const _0x1f4846=new _0x58d69a();return _0x1f4846['content']=_0x422ad8,_0x1f4846['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-list-item-title-icon']}}),_0x1f4846;}['_createParameterizedView'](_0x272685){const _0x46b3a4=new _0x18af4b(),_0x4f0c0a=this['_createFormView'](_0x272685);return _0x46b3a4['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x4f3b21=>!_0x4f3b21)]},'children':[_0x4f0c0a]}),_0x46b3a4;}['_createFormView'](_0x1739f1){const _0x3bda50=new _0x18af4b(),_0x1c48a9=Array['isArray'](_0x1739f1['options'])?_0x1739f1['options']:[],_0x4febd7=new _0x33829f(this['locale']),t=this['locale']['t'];_0x4febd7['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x4febd7['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x2e05ee=>{_0x2e05ee['stopPropagation']();})}}),_0x4febd7['on']('execute',()=>{const _0x12701d=[],_0x5d12f5={};this['_formItemsCollection']['forEach'](_0x503c1b=>{_0x12701d['push'](_0x503c1b['value']),_0x1739f1['useArgs']&&_0x1739f1['options']&&(_0x5d12f5[_0x503c1b['argsKey']]=_0x503c1b['value']);}),this['fire']('runReviewCheck',{'id':_0x1739f1['id'],'params':_0x12701d['length']?_0x12701d:void 0x0,'args':Object['keys'](_0x5d12f5)['length']?_0x5d12f5:void 0x0});});const _0x7263d1=_0x1c48a9['length'];return _0x1c48a9['forEach']((_0x32ae16,_0x56ac6c)=>{const _0x39fb11=_0x56ac6c===_0x7263d1-0x1;this['_formItemsCollection']['add'](new _0x486628(this['locale'],_0x32ae16,_0x39fb11?_0x4febd7:null));}),_0x3bda50['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized-form']},'children':this['_formItemsCollection']}),_0x3bda50;}['_createCustomView'](_0x1599ac){return this['_customCheckView']=new _0x447102(this['locale'],_0x1599ac),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',_0x283851=>!_0x283851)]}}),this['_customCheckView']['delegate']('runReviewCheck')['to'](this),this['_customCheckView'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x21533b=_0x290b;(function(_0x392ecc,_0x2c1344){const _0x482ae3=_0x290b,_0x43f3dc=_0x392ecc();while(!![]){try{const _0x26c508=parseInt(_0x482ae3(0x8c))/0x1+parseInt(_0x482ae3(0x8b))/0x2+parseInt(_0x482ae3(0x84))/0x3+-parseInt(_0x482ae3(0x88))/0x4*(-parseInt(_0x482ae3(0x82))/0x5)+-parseInt(_0x482ae3(0x81))/0x6+-parseInt(_0x482ae3(0x9c))/0x7+-parseInt(_0x482ae3(0x98))/0x8;if(_0x26c508===_0x2c1344)break;else _0x43f3dc['push'](_0x43f3dc['shift']());}catch(_0x581a72){_0x43f3dc['push'](_0x43f3dc['shift']());}}}(_0x48ac,0xbc305));import{ListItemView as _0x4b1fd2,View as _0x205024,ButtonView as _0x8bca0d}from'ckeditor5/src/ui.js';function _0x48ac(){const _0x3308c1=['ck-ai-button-primary','1759982fKvPVa','resultsHeader','execute','set','_createResultHeaderView','ck-ai-review-mode__review-completed','ck-hidden','5386890TrcTiF','225GIykRw','_finishReviewButtonView','3271692RBCGgD','fire','bindTemplate','ck-ai-review-mode__review-completed-content','37256NPJkde','ck-ai-review-mode__review-completed-header','AI_REVIEW_MODE_COMPLETED_TEXT','1112170xMYHiS','317991KscWaB','div','ck-ai-review-mode__review-completed-content-text','finishReview','ck-ai-review-mode__review-completed-header-buttons','ck-ai-review-mode__review-completed-content-icon','setTemplate','isVisible','AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE','locale','AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL','_createFinishReviewButtonView','3709664NebktJ','span','ck-ai-review-mode__review-completed-header-title'];_0x48ac=function(){return _0x3308c1;};return _0x48ac();}import{getTranslation as _0x402107}from'../../aicore/utils/common-translations.js';import'../../../theme/aireviewmode/aireviewmode-review-completed.css';function _0x290b(_0x35e489,_0x7db9b0){const _0x48ac81=_0x48ac();return _0x290b=function(_0x290b0f,_0x570444){_0x290b0f=_0x290b0f-0x7c;let _0x52de98=_0x48ac81[_0x290b0f];return _0x52de98;},_0x290b(_0x35e489,_0x7db9b0);}export class AIReviewModeReviewCompletedView extends _0x4b1fd2{[_0x21533b(0x9d)];[_0x21533b(0x83)];constructor(_0x5a1395){const _0x13d64a=_0x21533b;super(_0x5a1395),this[_0x13d64a(0x83)]=this[_0x13d64a(0x97)](),this[_0x13d64a(0x9d)]=this[_0x13d64a(0x7e)]();const _0x231ec4=this[_0x13d64a(0x86)];this[_0x13d64a(0x92)]({'tag':_0x13d64a(0x8d),'attributes':{'class':[_0x13d64a(0x7f),_0x231ec4['if'](_0x13d64a(0x93),_0x13d64a(0x80),_0x5a472e=>!_0x5a472e)]},'children':[this[_0x13d64a(0x9d)],{'tag':_0x13d64a(0x8d),'attributes':{'class':[_0x13d64a(0x87)]},'children':[{'tag':_0x13d64a(0x99),'attributes':{'class':[_0x13d64a(0x91)]},'children':[{'text':'🎉'}]},{'tag':'p','attributes':{'class':[_0x13d64a(0x8e)]},'children':[{'text':_0x402107(_0x5a1395,_0x13d64a(0x8a))}]}]}]});}[_0x21533b(0x97)](){const _0xa0ba26=_0x21533b,_0x47553a=new _0x8bca0d(this[_0xa0ba26(0x95)]);return _0x47553a[_0xa0ba26(0x7d)]({'label':_0x402107(this[_0xa0ba26(0x95)],_0xa0ba26(0x96)),'withText':!0x0,'class':_0xa0ba26(0x9b)}),_0x47553a['on'](_0xa0ba26(0x7c),()=>{const _0x3fc96=_0xa0ba26;this[_0x3fc96(0x85)](_0x3fc96(0x8f));}),_0x47553a;}[_0x21533b(0x7e)](){const _0x3877e7=_0x21533b,_0x374d8e=new _0x205024(this[_0x3877e7(0x95)]);return _0x374d8e[_0x3877e7(0x92)]({'tag':_0x3877e7(0x8d),'attributes':{'class':[_0x3877e7(0x89)]},'children':[{'tag':_0x3877e7(0x99),'attributes':{'class':[_0x3877e7(0x9a)]},'children':[{'text':_0x402107(this[_0x3877e7(0x95)],_0x3877e7(0x94))}]},{'tag':_0x3877e7(0x8d),'attributes':{'class':[_0x3877e7(0x90)]},'children':[this[_0x3877e7(0x83)]]}]}),_0x374d8e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xa73b86=_0x2e26;(function(_0x5658aa,_0x48b6ec){var _0x46172e=_0x2e26,_0x4b2f09=_0x5658aa();while(!![]){try{var _0x4ccb0f=-parseInt(_0x46172e(0x15f))/0x1*(parseInt(_0x46172e(0x15e))/0x2)+parseInt(_0x46172e(0x15c))/0x3*(parseInt(_0x46172e(0x156))/0x4)+parseInt(_0x46172e(0x15a))/0x5*(parseInt(_0x46172e(0x15b))/0x6)+-parseInt(_0x46172e(0x16c))/0x7+-parseInt(_0x46172e(0x161))/0x8*(-parseInt(_0x46172e(0x159))/0x9)+-parseInt(_0x46172e(0x142))/0xa+parseInt(_0x46172e(0x155))/0xb;if(_0x4ccb0f===_0x48b6ec)break;else _0x4b2f09['push'](_0x4b2f09['shift']());}catch(_0x424695){_0x4b2f09['push'](_0x4b2f09['shift']());}}}(_0x9680,0x60f4d));import{View as _0x1d92fb,FormHeaderView as _0x2b0aa3}from'ckeditor5/src/ui.js';import{IconAIReview as _0x44e85c}from'ckeditor5/src/icons.js';import{AIReviewModeReviewCheckListView as _0xe813c2}from'./aireviewmodereviewchecklistview.js';import{AI_REVIEW_MODE_UI_EVENT_NAMES as _0x3c0c6e}from'../aireviewmodeui.js';import{AIReviewModeReviewCheckResultsView as _0x5510f0}from'./aireviewmodereviewcheckresultsview.js';function _0x9680(){var _0x3719d5=['isResultReady','resetAllParameterizedChecks','setTemplate','showChunkErrorMessage','addCheckRunResult','ck-ai-review-mode','ck-content\x20','reviewCheckResultsView','2664200LmtWjH','showGeneralErrorView','4066990OKkJOc','showReviewCompletedView','ck-reset_all','reviewCheckListView','delegate','showActionsWhenResultIsReady','ck-ai-header\x20ck-ai-header_review-mode','resetErrorState','reviewCompletedView','ck-rounded-corners','AI_REVIEW_MODE','showReviewCheckResultsView','ltr','showChunkErrorView','showReviewCheckListView','div','isLoading','clearResults','addResult','915299uGSIRK','4aTYHdI','isVisible','reviewModeHeader','27zclDwQ','5hkaaQF','2524086aojwjA','1594653vXREIF','hideActionsWhenResultIsReady','968420OmacGR','1ccXCdU','finishReview','1688536nfMpjd','showGeneralErrorMessage','set'];_0x9680=function(){return _0x3719d5;};return _0x9680();}import{AIReviewModeReviewCompletedView as _0x5663f8}from'./aireviewmodereviewcompletedview.js';function _0x2e26(_0x1174d8,_0x4bc405){var _0x9680f=_0x9680();return _0x2e26=function(_0x2e262d,_0x87086e){_0x2e262d=_0x2e262d-0x141;var _0x1c8b8e=_0x9680f[_0x2e262d];return _0x1c8b8e;},_0x2e26(_0x1174d8,_0x4bc405);}import{getTranslation as _0x10d808}from'../../aicore/utils/common-translations.js';export class AIReviewModeView extends _0x1d92fb{[_0xa73b86(0x158)];[_0xa73b86(0x145)];[_0xa73b86(0x16b)];[_0xa73b86(0x14a)];constructor(_0x3274c7){var _0x27d3cd=_0xa73b86;super(_0x3274c7),this[_0x27d3cd(0x158)]=new _0x2b0aa3(_0x3274c7,{'label':_0x10d808(_0x3274c7,_0x27d3cd(0x14c)),'icon':_0x44e85c,'class':_0x27d3cd(0x148)}),this[_0x27d3cd(0x145)]=new _0xe813c2(_0x3274c7),this[_0x27d3cd(0x145)][_0x27d3cd(0x146)](..._0x3c0c6e)['to'](this),this[_0x27d3cd(0x16b)]=new _0x5510f0(_0x3274c7),this[_0x27d3cd(0x16b)][_0x27d3cd(0x146)](..._0x3c0c6e)['to'](this),this[_0x27d3cd(0x14a)]=new _0x5663f8(_0x3274c7),this[_0x27d3cd(0x14a)][_0x27d3cd(0x146)](_0x27d3cd(0x160))['to'](this),this[_0x27d3cd(0x145)][_0x27d3cd(0x163)](_0x27d3cd(0x157),!0x1),this[_0x27d3cd(0x16b)][_0x27d3cd(0x163)](_0x27d3cd(0x157),!0x1),this[_0x27d3cd(0x16b)][_0x27d3cd(0x163)](_0x27d3cd(0x152),!0x1),this[_0x27d3cd(0x16b)][_0x27d3cd(0x163)](_0x27d3cd(0x164),!0x1),this[_0x27d3cd(0x14a)][_0x27d3cd(0x163)](_0x27d3cd(0x157),!0x1),this[_0x27d3cd(0x166)]({'tag':_0x27d3cd(0x151),'attributes':{'class':['ck',_0x27d3cd(0x16a),_0x27d3cd(0x144),_0x27d3cd(0x169),_0x27d3cd(0x14b)],'dir':_0x27d3cd(0x14e)},'children':[this[_0x27d3cd(0x158)],this[_0x27d3cd(0x145)],this[_0x27d3cd(0x16b)],this[_0x27d3cd(0x14a)]]});}[_0xa73b86(0x150)](){var _0x3cbaf0=_0xa73b86;this[_0x3cbaf0(0x145)][_0x3cbaf0(0x165)](),this[_0x3cbaf0(0x145)][_0x3cbaf0(0x163)](_0x3cbaf0(0x157),!0x0),this[_0x3cbaf0(0x16b)][_0x3cbaf0(0x163)](_0x3cbaf0(0x157),!0x1),this[_0x3cbaf0(0x14a)][_0x3cbaf0(0x163)](_0x3cbaf0(0x157),!0x1);}[_0xa73b86(0x14d)](){var _0x4ff707=_0xa73b86;this[_0x4ff707(0x15d)](),this[_0x4ff707(0x16b)][_0x4ff707(0x149)](),this[_0x4ff707(0x145)][_0x4ff707(0x163)](_0x4ff707(0x157),!0x1),this[_0x4ff707(0x16b)][_0x4ff707(0x163)](_0x4ff707(0x157),!0x0),this[_0x4ff707(0x16b)][_0x4ff707(0x153)](),this[_0x4ff707(0x16b)][_0x4ff707(0x163)](_0x4ff707(0x152),!0x0);}[_0xa73b86(0x168)](_0x42f57d){var _0x32cfaf=_0xa73b86;this[_0x32cfaf(0x16b)][_0x32cfaf(0x154)](_0x42f57d),this[_0x32cfaf(0x16b)][_0x32cfaf(0x163)](_0x32cfaf(0x152),!0x1);}[_0xa73b86(0x143)](){var _0x5c2db1=_0xa73b86;this[_0x5c2db1(0x145)][_0x5c2db1(0x163)](_0x5c2db1(0x157),!0x1),this[_0x5c2db1(0x16b)][_0x5c2db1(0x163)](_0x5c2db1(0x157),!0x1),this[_0x5c2db1(0x14a)][_0x5c2db1(0x163)](_0x5c2db1(0x157),!0x0);}[_0xa73b86(0x147)](){var _0x54536d=_0xa73b86;this[_0x54536d(0x16b)][_0x54536d(0x164)]=!0x0;}[_0xa73b86(0x15d)](){var _0x5b6249=_0xa73b86;this[_0x5b6249(0x16b)][_0x5b6249(0x164)]=!0x1;}[_0xa73b86(0x141)](){var _0xbc260f=_0xa73b86;this[_0xbc260f(0x16b)][_0xbc260f(0x163)](_0xbc260f(0x152),!0x1),this[_0xbc260f(0x147)](),this[_0xbc260f(0x16b)][_0xbc260f(0x162)]();}[_0xa73b86(0x14f)](){var _0x475dcd=_0xa73b86;this[_0x475dcd(0x16b)][_0x475dcd(0x163)](_0x475dcd(0x152),!0x1),this[_0x475dcd(0x147)](),this[_0x475dcd(0x16b)][_0x475dcd(0x167)]();}}
|
|
@@ -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
|
-
const
|
|
23
|
+
const _0x3873ef=_0x5381;function _0x5381(_0x55658e,_0x584113){const _0x1078a8=_0x1078();return _0x5381=function(_0x5381f8,_0x43113a){_0x5381f8=_0x5381f8-0x195;let _0x83c305=_0x1078a8[_0x5381f8];return _0x83c305;},_0x5381(_0x55658e,_0x584113);}(function(_0x5543df,_0x332769){const _0x1529f1=_0x5381,_0x33a4b7=_0x5543df();while(!![]){try{const _0x15a770=parseInt(_0x1529f1(0x196))/0x1+parseInt(_0x1529f1(0x1a1))/0x2*(-parseInt(_0x1529f1(0x1a9))/0x3)+-parseInt(_0x1529f1(0x198))/0x4+parseInt(_0x1529f1(0x1a6))/0x5+-parseInt(_0x1529f1(0x19e))/0x6+parseInt(_0x1529f1(0x1a2))/0x7+parseInt(_0x1529f1(0x199))/0x8;if(_0x15a770===_0x332769)break;else _0x33a4b7['push'](_0x33a4b7['shift']());}catch(_0x460eb3){_0x33a4b7['push'](_0x33a4b7['shift']());}}}(_0x1078,0x81a1c));import{FormRowView as _0x55b240,ListItemView as _0x164e80}from'ckeditor5/src/ui.js';import{AIReviewModeFormDropdownView as _0x55daec}from'./aireviewmodeformdropdown.js';export class AIReviewModeFormManagerView extends _0x164e80{[_0x3873ef(0x19f)]=null;constructor(_0x511e00,_0x4786bb,_0x5289a3){const _0x2ddd57=_0x3873ef;super(_0x511e00),this[_0x2ddd57(0x195)]=_0x4786bb?.[_0x2ddd57(0x195)];if(_0x2ddd57(0x1a4)===_0x4786bb[_0x2ddd57(0x19d)])this[_0x2ddd57(0x19f)]=new _0x55daec(this[_0x2ddd57(0x1a5)],_0x4786bb);this[_0x2ddd57(0x197)](_0x2ddd57(0x1a8),''),this[_0x2ddd57(0x1ad)](_0x2ddd57(0x1a8))['to'](this[_0x2ddd57(0x19f)],_0x2ddd57(0x19a));const _0x3be534=new _0x55b240(this[_0x2ddd57(0x1a5)],{'children':[this[_0x2ddd57(0x19f)]],'class':[_0x5289a3?_0x2ddd57(0x19b):'']});_0x5289a3&&_0x3be534[_0x2ddd57(0x1a3)][_0x2ddd57(0x1aa)](_0x5289a3),this[_0x2ddd57(0x1ac)]({'tag':_0x2ddd57(0x1a0),'attributes':{'class':['ck',_0x2ddd57(0x1a7),_0x2ddd57(0x19c)]},'children':[_0x3be534]});}[_0x3873ef(0x1ab)](){const _0x55c118=_0x3873ef;this[_0x55c118(0x19f)][_0x55c118(0x1ab)]();}}function _0x1078(){const _0x2d3425=['formType','2172402gavtBf','_formItem','div','10CFkgHL','1078686SbTjlV','children','dropdown','locale','2690195ZErekR','ck-ai-review-mode__form-item','value','76974YLftUf','add','resetToDefault','setTemplate','bind','argsKey','832179dTOBqs','set','2881652ltnQtM','1739408kGHzVm','formValue','ck-form__row_with-submit','ck-reset_all'];_0x1078=function(){return _0x2d3425;};return _0x1078();}
|
|
@@ -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 _0x1d80c8=_0x3535;function _0x3535(_0x2e460b,_0x1526b9){const _0x2b5ee2=_0x2b5e();return _0x3535=function(_0x35358f,_0x4c9f3b){_0x35358f=_0x35358f-0x1eb;let _0x404722=_0x2b5ee2[_0x35358f];return _0x404722;},_0x3535(_0x2e460b,_0x1526b9);}(function(_0x22e6cb,_0x1e0c0f){const _0x36339b=_0x3535,_0x48ce43=_0x22e6cb();while(!![]){try{const _0x473e98=-parseInt(_0x36339b(0x20c))/0x1+-parseInt(_0x36339b(0x206))/0x2+parseInt(_0x36339b(0x200))/0x3+parseInt(_0x36339b(0x207))/0x4+-parseInt(_0x36339b(0x208))/0x5+parseInt(_0x36339b(0x1f4))/0x6+parseInt(_0x36339b(0x203))/0x7;if(_0x473e98===_0x1e0c0f)break;else _0x48ce43['push'](_0x48ce43['shift']());}catch(_0x482a3d){_0x48ce43['push'](_0x48ce43['shift']());}}}(_0x2b5e,0x40321));function _0x2b5e(){const _0x79d2ff=['271832ghbDlk','1221144vrSLlX','1840675lAJyvZ','_defaultLabel','_prepareListOptions','resetToDefault','420770ScJwbA','bindTemplate','ck-ai-review-mode__check-list-item-parameterized-form-element_dropdown','formValue','model','_defaultValue','execute','isOn','setTemplate','listenTo','length','data','extendTemplate','menu','add','1024812TUFqkd','button','bind','menuitemradio','source','buttonView','set','default','locale','ck-reset_all','_dropdownView','ck-ai-review-mode__check-list-item-parameterized-form-element','22272mZumSv','find','label','4929778vRdJvL','div','stopPropagation'];_0x2b5e=function(){return _0x79d2ff;};return _0x2b5e();}import{Collection as _0x236084}from'ckeditor5/src/utils.js';import{View as _0x3b6ac3,createDropdown as _0x5b02f5,addListToDropdown as _0x35d6c4,UIModel as _0x17c87b}from'ckeditor5/src/ui.js';export class AIReviewModeFormDropdownView extends _0x3b6ac3{[_0x1d80c8(0x1fe)];[_0x1d80c8(0x211)];[_0x1d80c8(0x209)];constructor(_0x1018c6,_0x475a3f){const _0x502d25=_0x1d80c8;super(_0x1018c6),this[_0x502d25(0x211)]=_0x475a3f[_0x502d25(0x1fb)]||(_0x475a3f[_0x502d25(0x1f0)][_0x502d25(0x1ef)]>0x0?_0x475a3f[_0x502d25(0x1f0)][0x0]['id']:''),this[_0x502d25(0x209)]=_0x475a3f[_0x502d25(0x1f0)][_0x502d25(0x201)](_0x3b9e17=>_0x3b9e17['id']===this[_0x502d25(0x211)])?.[_0x502d25(0x202)]||'',this[_0x502d25(0x1fa)](_0x502d25(0x20f),''),this[_0x502d25(0x1fe)]=_0x5b02f5(this[_0x502d25(0x1fc)]);const _0x58faeb=this[_0x502d25(0x20a)](_0x475a3f[_0x502d25(0x1f0)]);_0x35d6c4(this[_0x502d25(0x1fe)],_0x58faeb,{'role':_0x502d25(0x1f2),'ariaLabel':_0x475a3f[_0x502d25(0x202)]}),this[_0x502d25(0x1fe)][_0x502d25(0x1f9)][_0x502d25(0x1fa)]({'label':this[_0x502d25(0x209)],'withText':!0x0}),this[_0x502d25(0x1fe)][_0x502d25(0x1f1)]({'on':{'click':this[_0x502d25(0x20d)]['to'](_0x4d7986=>{const _0x2784e7=_0x502d25;_0x4d7986[_0x2784e7(0x205)]();})}}),this[_0x502d25(0x1ee)](this[_0x502d25(0x1fe)],_0x502d25(0x1eb),_0x124d11=>{const _0x353ef2=_0x502d25;this[_0x353ef2(0x20f)]=_0x124d11[_0x353ef2(0x1f8)][_0x353ef2(0x210)]['id'],this[_0x353ef2(0x1fe)][_0x353ef2(0x1f9)][_0x353ef2(0x202)]=_0x124d11[_0x353ef2(0x1f8)][_0x353ef2(0x210)][_0x353ef2(0x202)];}),this[_0x502d25(0x1ed)]({'tag':_0x502d25(0x204),'attributes':{'class':['ck',_0x502d25(0x1fd),_0x502d25(0x1ff),_0x502d25(0x20e)]},'children':[this[_0x502d25(0x1fe)]]});}[_0x1d80c8(0x20b)](){const _0x35476c=_0x1d80c8;this[_0x35476c(0x20f)]=this[_0x35476c(0x211)],this[_0x35476c(0x1fe)][_0x35476c(0x1f9)][_0x35476c(0x202)]=this[_0x35476c(0x209)];}[_0x1d80c8(0x20a)](_0x2d0fed=[]){const _0x4176f3=_0x1d80c8,_0x1b0a56=new _0x236084();this[_0x4176f3(0x20b)]();for(const _0x66ee1d of _0x2d0fed){const _0x26d723=new _0x17c87b({'label':_0x66ee1d[_0x4176f3(0x202)],'withText':!0x0,'role':_0x4176f3(0x1f7),'id':_0x66ee1d['id'],'model':_0x66ee1d});_0x26d723[_0x4176f3(0x1f6)](_0x4176f3(0x1ec))['to'](this,_0x4176f3(0x20f),_0x4fad59=>_0x4fad59===_0x26d723['id']);const _0x1be633={'type':_0x4176f3(0x1f5),'model':_0x26d723};_0x1b0a56[_0x4176f3(0x1f3)](_0x1be633);}return _0x1b0a56;}}
|
|
@@ -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
|
-
const
|
|
23
|
+
const _0x3873ef=_0x5381;function _0x5381(_0x55658e,_0x584113){const _0x1078a8=_0x1078();return _0x5381=function(_0x5381f8,_0x43113a){_0x5381f8=_0x5381f8-0x195;let _0x83c305=_0x1078a8[_0x5381f8];return _0x83c305;},_0x5381(_0x55658e,_0x584113);}(function(_0x5543df,_0x332769){const _0x1529f1=_0x5381,_0x33a4b7=_0x5543df();while(!![]){try{const _0x15a770=parseInt(_0x1529f1(0x196))/0x1+parseInt(_0x1529f1(0x1a1))/0x2*(-parseInt(_0x1529f1(0x1a9))/0x3)+-parseInt(_0x1529f1(0x198))/0x4+parseInt(_0x1529f1(0x1a6))/0x5+-parseInt(_0x1529f1(0x19e))/0x6+parseInt(_0x1529f1(0x1a2))/0x7+parseInt(_0x1529f1(0x199))/0x8;if(_0x15a770===_0x332769)break;else _0x33a4b7['push'](_0x33a4b7['shift']());}catch(_0x460eb3){_0x33a4b7['push'](_0x33a4b7['shift']());}}}(_0x1078,0x81a1c));import{FormRowView as _0x55b240,ListItemView as _0x164e80}from'ckeditor5/src/ui.js';import{AIReviewModeFormDropdownView as _0x55daec}from'./aireviewmodeformdropdown.js';export class AIReviewModeFormManagerView extends _0x164e80{[_0x3873ef(0x19f)]=null;constructor(_0x511e00,_0x4786bb,_0x5289a3){const _0x2ddd57=_0x3873ef;super(_0x511e00),this[_0x2ddd57(0x195)]=_0x4786bb?.[_0x2ddd57(0x195)];if(_0x2ddd57(0x1a4)===_0x4786bb[_0x2ddd57(0x19d)])this[_0x2ddd57(0x19f)]=new _0x55daec(this[_0x2ddd57(0x1a5)],_0x4786bb);this[_0x2ddd57(0x197)](_0x2ddd57(0x1a8),''),this[_0x2ddd57(0x1ad)](_0x2ddd57(0x1a8))['to'](this[_0x2ddd57(0x19f)],_0x2ddd57(0x19a));const _0x3be534=new _0x55b240(this[_0x2ddd57(0x1a5)],{'children':[this[_0x2ddd57(0x19f)]],'class':[_0x5289a3?_0x2ddd57(0x19b):'']});_0x5289a3&&_0x3be534[_0x2ddd57(0x1a3)][_0x2ddd57(0x1aa)](_0x5289a3),this[_0x2ddd57(0x1ac)]({'tag':_0x2ddd57(0x1a0),'attributes':{'class':['ck',_0x2ddd57(0x1a7),_0x2ddd57(0x19c)]},'children':[_0x3be534]});}[_0x3873ef(0x1ab)](){const _0x55c118=_0x3873ef;this[_0x55c118(0x19f)][_0x55c118(0x1ab)]();}}function _0x1078(){const _0x2d3425=['formType','2172402gavtBf','_formItem','div','10CFkgHL','1078686SbTjlV','children','dropdown','locale','2690195ZErekR','ck-ai-review-mode__form-item','value','76974YLftUf','add','resetToDefault','setTemplate','bind','argsKey','832179dTOBqs','set','2881652ltnQtM','1739408kGHzVm','formValue','ck-form__row_with-submit','ck-reset_all'];_0x1078=function(){return _0x2d3425;};return _0x1078();}
|
package/src/aitabs/aitabs.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21f00f=_0x3cfd;(function(_0xc0a71a,_0x1fd124){const _0x1d6ee6=_0x3cfd,_0x32d918=_0xc0a71a();while(!![]){try{const _0xa49b20=parseInt(_0x1d6ee6(0x10a))/0x1*(-parseInt(_0x1d6ee6(0xe4))/0x2)+parseInt(_0x1d6ee6(0xe8))/0x3+-parseInt(_0x1d6ee6(0xfe))/0x4*(parseInt(_0x1d6ee6(0xea))/0x5)+-parseInt(_0x1d6ee6(0x102))/0x6*(parseInt(_0x1d6ee6(0x100))/0x7)+parseInt(_0x1d6ee6(0xfd))/0x8+-parseInt(_0x1d6ee6(0x105))/0x9*(-parseInt(_0x1d6ee6(0xe2))/0xa)+-parseInt(_0x1d6ee6(0x10e))/0xb*(-parseInt(_0x1d6ee6(0xf9))/0xc);if(_0xa49b20===_0x1fd124)break;else _0x32d918['push'](_0x32d918['shift']());}catch(_0xda32ab){_0x32d918['push'](_0x32d918['shift']());}}}(_0x5d51,0xbb4a4));import{ContextPlugin as _0x11b388,Editor as _0x3b0bc4}from'ckeditor5/src/core.js';function _0x5d51(){const _0x647739=['ai.container','includes','appendChild','bind','isPremiumPlugin','switchSide','type','right','side','isMaximized','276gPpckl','remove','pluginName','add','394408XkABDb','2702156zJzand','showResizeButton','8824669pgYENX','locale','6nGXUFq','resizedTabs','set','19089RTAaoK','fire','context','overlay','focusTracker','37637OVpvfL','AITabs','ai-tabs-configuration-not-found','ai-tabs-unsupported-ui-type','1579303ipZnZo','resize','ai-tabs-sidebar-container-element-not-found','config','destroy','custom','render','1390tEguHj','sidebar','26jMVkpt','isOfficialPlugin','element','get','665601DcQkYW','ai-tabs-unsupported-ui-side','10XRucOz','body','switchType','container','view'];_0x5d51=function(){return _0x647739;};return _0x5d51();}import{CKEditorError as _0x268c0f}from'ckeditor5/src/utils.js';function _0x3cfd(_0x3cc032,_0x3b3fb5){const _0x5d5162=_0x5d51();return _0x3cfd=function(_0x3cfd74,_0x2ffc5d){_0x3cfd74=_0x3cfd74-0xdf;let _0x79f94=_0x5d5162[_0x3cfd74];return _0x79f94;},_0x3cfd(_0x3cc032,_0x3b3fb5);}import{AITabsMainView as _0x4fa6d5,AI_TABS_VIEW_SIDES as _0xdcefab,AI_TABS_VIEW_TYPES as _0x21969f}from'./aitabsmainview.js';export class AITabs extends _0x11b388{[_0x21f00f(0xee)];[_0x21f00f(0xed)]=null;[_0x21f00f(0xff)]=!0x0;static get[_0x21f00f(0xfb)](){const _0x4ffe19=_0x21f00f;return _0x4ffe19(0x10b);}static get[_0x21f00f(0xe5)](){return!0x0;}static get[_0x21f00f(0xf3)](){return!0x0;}constructor(_0x4bfb63){const _0xd53400=_0x21f00f;super(_0x4bfb63);const _0x2990be=this[_0xd53400(0x107)][_0xd53400(0x111)][_0xd53400(0xe7)](_0xd53400(0xef));if(this[_0xd53400(0x104)](_0xd53400(0xf7),_0xd53400(0xf6)),!_0x2990be)throw new _0x268c0f(_0xd53400(0x10c));if(void 0x0!==_0x2990be[_0xd53400(0xff)]&&(this[_0xd53400(0xff)]=_0x2990be[_0xd53400(0xff)]),_0xd53400(0xe3)!==_0x2990be[_0xd53400(0xf5)]&&_0xd53400(0x108)!==_0x2990be[_0xd53400(0xf5)]||_0x2990be[_0xd53400(0xf7)]&&(this[_0xd53400(0xf7)]=_0x2990be[_0xd53400(0xf7)]),_0xd53400(0xe3)===_0x2990be[_0xd53400(0xf5)]){if(this[_0xd53400(0xed)]=_0x2990be[_0xd53400(0xe6)],this[_0xd53400(0x104)](_0xd53400(0xf5),_0xd53400(0xe3)),!this[_0xd53400(0xed)])throw new _0x268c0f(_0xd53400(0x110));}else _0xd53400(0x108)===_0x2990be[_0xd53400(0xf5)]?(this[_0xd53400(0xed)]=document[_0xd53400(0xeb)],this[_0xd53400(0x104)](_0xd53400(0xf5),_0xd53400(0x108))):(this[_0xd53400(0xed)]=null,this[_0xd53400(0x104)](_0xd53400(0xf5),_0xd53400(0xe0)));this[_0xd53400(0xee)]=new _0x4fa6d5(this[_0xd53400(0x107)][_0xd53400(0x101)],{'side':this[_0xd53400(0xf7)],'type':this[_0xd53400(0xf5)]}),this[_0xd53400(0xee)][_0xd53400(0xe1)](),this[_0xd53400(0xee)][_0xd53400(0xf2)](_0xd53400(0xf7))['to'](this,_0xd53400(0xf7)),this[_0xd53400(0xee)][_0xd53400(0xf2)](_0xd53400(0xf5))['to'](this,_0xd53400(0xf5)),this[_0xd53400(0xed)]&&this[_0xd53400(0xed)][_0xd53400(0xf1)](this[_0xd53400(0xee)][_0xd53400(0xe6)]),this[_0xd53400(0x107)]instanceof _0x3b0bc4&&this[_0xd53400(0x107)]['ui'][_0xd53400(0x109)][_0xd53400(0xfc)](this[_0xd53400(0xee)][_0xd53400(0xe6)]);}[_0x21f00f(0xec)](_0x768e92){const _0x51c6fb=_0x21f00f;if(_0x768e92&&this[_0x51c6fb(0xf5)]!==_0x768e92){if(!_0x21969f[_0x51c6fb(0xf0)](_0x768e92))throw new _0x268c0f(_0x51c6fb(0x10d));this[_0x51c6fb(0xf5)]=_0x768e92;}}[_0x21f00f(0xf4)](_0x1cd851){const _0x3025b4=_0x21f00f;if(_0x1cd851&&this[_0x3025b4(0xf7)]!==_0x1cd851){if(!_0xdcefab[_0x3025b4(0xf0)](_0x1cd851))throw new _0x268c0f(_0x3025b4(0xe9));this[_0x3025b4(0xf7)]=_0x1cd851;}}[_0x21f00f(0x10f)](){const _0x172c71=_0x21f00f;this[_0x172c71(0xee)][_0x172c71(0xf8)]=!this[_0x172c71(0xee)][_0x172c71(0xf8)],this[_0x172c71(0x106)](_0x172c71(0x103),this[_0x172c71(0xee)][_0x172c71(0xf8)]);}[_0x21f00f(0xdf)](){const _0x52d103=_0x21f00f;super[_0x52d103(0xdf)](),this[_0x52d103(0xee)][_0x52d103(0xdf)](),this[_0x52d103(0xee)][_0x52d103(0xe6)]&&this[_0x52d103(0xee)][_0x52d103(0xe6)][_0x52d103(0xfa)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ac3bd=_0x1c21;(function(_0x120ab8,_0x3c4cb4){const _0x2f4679=_0x1c21,_0x17bdc5=_0x120ab8();while(!![]){try{const _0xfd4b69=parseInt(_0x2f4679(0x188))/0x1*(-parseInt(_0x2f4679(0x18f))/0x2)+-parseInt(_0x2f4679(0x187))/0x3+-parseInt(_0x2f4679(0x196))/0x4+parseInt(_0x2f4679(0x191))/0x5+-parseInt(_0x2f4679(0x185))/0x6+-parseInt(_0x2f4679(0x186))/0x7*(-parseInt(_0x2f4679(0x190))/0x8)+parseInt(_0x2f4679(0x18b))/0x9*(parseInt(_0x2f4679(0x18a))/0xa);if(_0xfd4b69===_0x3c4cb4)break;else _0x17bdc5['push'](_0x17bdc5['shift']());}catch(_0x166f5b){_0x17bdc5['push'](_0x17bdc5['shift']());}}}(_0x4573,0x4341f));import{AITabsView as _0x520449}from'./tabs/aitabsview.js';function _0x1c21(_0x3d0eaf,_0x16ef90){const _0x4573bf=_0x4573();return _0x1c21=function(_0x1c21af,_0x3a0813){_0x1c21af=_0x1c21af-0x17f;let _0x5b8c06=_0x4573bf[_0x1c21af];return _0x5b8c06;},_0x1c21(_0x3d0eaf,_0x16ef90);}import'../../theme/aitabs/aitabsview.css';export const AI_TABS_VIEW_TYPES=[_0x5ac3bd(0x17f),_0x5ac3bd(0x192),_0x5ac3bd(0x18e)];function _0x4573(){const _0x1cd97a=['type','ck-ai-tabs__sidebar','custom','72154kTalab','480gGBENs','2713685AoEzhu','sidebar','left','ck-ai-tabs','side','1884260zVgYjO','right','ck-ai-tabs__overlay','overlay','buttonViews','extendTemplate','set','bindTemplate','withText','3243216ZivREb','17227FSillV','850389ztJhjA','3RCbjCP','add','9883850BlFqIv','9DoFrAV'];_0x4573=function(){return _0x1cd97a;};return _0x4573();}export const AI_TABS_VIEW_SIDES=[_0x5ac3bd(0x193),_0x5ac3bd(0x197)];export class AITabsMainView extends _0x520449{constructor(_0xff2884,_0x41a37f={}){const _0x2b8320=_0x5ac3bd;super(_0xff2884,_0x41a37f),this[_0x2b8320(0x182)](_0x2b8320(0x18c),_0x41a37f[_0x2b8320(0x18c)]||_0x2b8320(0x192)),this[_0x2b8320(0x182)](_0x2b8320(0x195),_0x41a37f[_0x2b8320(0x195)]||_0x2b8320(0x197));const _0x11714e=this[_0x2b8320(0x183)];this[_0x2b8320(0x181)]({'attributes':{'class':[_0x2b8320(0x194),_0x11714e['if'](_0x2b8320(0x18c),_0x2b8320(0x198),_0x3a8928=>_0x2b8320(0x17f)===_0x3a8928),_0x11714e['if'](_0x2b8320(0x18c),_0x2b8320(0x18d),_0xc0b825=>_0x2b8320(0x192)===_0xc0b825)]}}),this[_0x2b8320(0x180)]['on'](_0x2b8320(0x189),(_0x414d31,_0x205667)=>{const _0x4b9f30=_0x2b8320;_0x205667[_0x4b9f30(0x182)](_0x4b9f30(0x184),!0x1);});}}
|