@ckeditor/ckeditor5-ai 47.0.0-alpha.5 → 47.0.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +4 -0
- package/build/ai.js +1 -1
- package/ckeditor5-metadata.json +14 -0
- package/dist/index-editor.css +70 -19
- package/dist/index.css +80 -19
- 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 +6 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.d.ts +0 -2
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.d.ts +1 -0
- 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.d.ts +3 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +4 -0
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +9 -2
- 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.d.ts +6 -0
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.d.ts +4 -0
- 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.d.ts +1 -0
- 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.d.ts +8 -2
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +9 -0
- 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 +17 -0
- package/src/aicore/aiconnector.d.ts +13 -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.d.ts +41 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.d.ts +2 -2
- 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 +16 -0
- 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/aieditorintegration/aieditorintegration.d.ts +35 -0
- package/src/aieditorintegration/aieditorintegration.js +23 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +38 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +23 -0
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.d.ts +16 -0
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +23 -0
- 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/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.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 +4 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.d.ts +6 -0
- 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/augmentation.d.ts +6 -0
- package/src/index.d.ts +4 -1
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +17 -4
- package/theme/aichat/aichat-controls.css +6 -0
- package/theme/aichat/aichat.css +2 -0
- package/theme/aichat/aichathistory.css +26 -9
- package/theme/aichat/aiminitoolbar.css +8 -0
- package/theme/aichat/aisuggestioncontainer.css +14 -2
- package/theme/aireviewmode/aireviewmode-check-run-result.css +6 -0
- package/theme/aitabs/aitabsview.css +6 -1
- package/theme/common/aibutton.css +0 -4
- package/theme/common/aiheader.css +1 -0
- package/src/aiquickactions/utils/common-translations.d.ts +0 -9
- package/src/aiquickactions/utils/common-translations.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x48d4c0=_0x5589;(function(_0x2b8214,_0x219cb2){const _0x215e5f=_0x5589,_0xeaafd4=_0x2b8214();while(!![]){try{const _0x42d35f=parseInt(_0x215e5f(0xa4))/0x1+parseInt(_0x215e5f(0xa1))/0x2+-parseInt(_0x215e5f(0xb4))/0x3+-parseInt(_0x215e5f(0xb5))/0x4*(-parseInt(_0x215e5f(0x9e))/0x5)+-parseInt(_0x215e5f(0xaa))/0x6+-parseInt(_0x215e5f(0xa7))/0x7*(parseInt(_0x215e5f(0xa0))/0x8)+-parseInt(_0x215e5f(0xa8))/0x9*(-parseInt(_0x215e5f(0xa5))/0xa);if(_0x42d35f===_0x219cb2)break;else _0xeaafd4['push'](_0xeaafd4['shift']());}catch(_0x38df3b){_0xeaafd4['push'](_0xeaafd4['shift']());}}}(_0x2642,0xcbdfd));import{FormRowView as _0x5deefa,ListItemView as _0x5418f8}from'ckeditor5/src/ui.js';function _0x5589(_0x42a71c,_0x363eb4){const _0x2642d8=_0x2642();return _0x5589=function(_0x558979,_0x3998d8){_0x558979=_0x558979-0x9e;let _0xf1cd73=_0x2642d8[_0x558979];return _0xf1cd73;},_0x5589(_0x42a71c,_0x363eb4);}import{AIReviewModeFormDropdownView as _0x3d018e}from'./aireviewmodeformdropdown.js';export class AIReviewModeFormManagerView extends _0x5418f8{[_0x48d4c0(0xac)]=null;constructor(_0x1010a4,_0x3b893f,_0x3aa37f){const _0x5600e3=_0x48d4c0;super(_0x1010a4),this[_0x5600e3(0xb3)]=_0x3b893f?.[_0x5600e3(0xb3)];if(_0x5600e3(0xa2)===_0x3b893f[_0x5600e3(0x9f)])this[_0x5600e3(0xac)]=new _0x3d018e(this[_0x5600e3(0xa3)],_0x3b893f);this[_0x5600e3(0xae)](_0x5600e3(0xa9),''),this[_0x5600e3(0xb1)](_0x5600e3(0xa9))['to'](this[_0x5600e3(0xac)],_0x5600e3(0xb7));const _0x33e352=new _0x5deefa(this[_0x5600e3(0xa3)],{'children':[this[_0x5600e3(0xac)]],'class':[_0x3aa37f?_0x5600e3(0xab):'']});_0x3aa37f&&_0x33e352[_0x5600e3(0xaf)][_0x5600e3(0xad)](_0x3aa37f),this[_0x5600e3(0xa6)]({'tag':_0x5600e3(0xb0),'attributes':{'class':['ck',_0x5600e3(0xb6),_0x5600e3(0xb2)]},'children':[_0x33e352]});}[_0x48d4c0(0xb8)](){const _0x4d67d8=_0x48d4c0;this[_0x4d67d8(0xac)][_0x4d67d8(0xb8)]();}}function _0x2642(){const _0x42426d=['value','9440742byrVkI','ck-form__row_with-submit','_formItem','add','set','children','div','bind','ck-reset_all','argsKey','1477407HyQZZc','1682672xFkcnV','ck-ai-review-mode__form-item','formValue','resetToDefault','5EMcwAP','formType','5033936pXvkHb','1972038qpMsTx','dropdown','locale','1235719IaiVbJ','1268330WMbthX','setTemplate','7EgHcIC','63ZmqbOM'];_0x2642=function(){return _0x42426d;};return _0x2642();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x29f4(_0x12a11b,_0x5d0e45){const _0x5baec1=_0x5bae();return _0x29f4=function(_0x29f4b8,_0xd8c5c6){_0x29f4b8=_0x29f4b8-0xb0;let _0x204371=_0x5baec1[_0x29f4b8];return _0x204371;},_0x29f4(_0x12a11b,_0x5d0e45);}function _0x5bae(){const _0x2edc59=['16ZowSXP','260464KhvaTr','set','listenTo','data','1082943yZNLmt','locale','add','5402606vYyAmu','button','div','60urrWhZ','1494806YoNwej','formValue','resetToDefault','execute','ck-reset_all','ck-ai-review-mode__check-list-item-parameterized-form-element','1555127rSJmQQ','isOn','1096020jkFWSz','25egazcw','length','label','model','bind','source','buttonView','_defaultLabel','menu','menuitemradio','12nlzTHY','_dropdownView','stopPropagation','1104546JcUjfV','bindTemplate','find','extendTemplate','setTemplate','ck-ai-review-mode__check-list-item-parameterized-form-element_dropdown','_defaultValue','_prepareListOptions','default'];_0x5bae=function(){return _0x2edc59;};return _0x5bae();}const _0x113078=_0x29f4;(function(_0x258369,_0x6e7b9f){const _0x476628=_0x29f4,_0x163e73=_0x258369();while(!![]){try{const _0x1054c9=-parseInt(_0x476628(0xcc))/0x1+parseInt(_0x476628(0xc1))/0x2*(-parseInt(_0x476628(0xb4))/0x3)+parseInt(_0x476628(0xd4))/0x4+parseInt(_0x476628(0xd5))/0x5*(-parseInt(_0x476628(0xb7))/0x6)+-parseInt(_0x476628(0xd2))/0x7*(-parseInt(_0x476628(0xc0))/0x8)+parseInt(_0x476628(0xc5))/0x9+parseInt(_0x476628(0xcb))/0xa*(parseInt(_0x476628(0xc8))/0xb);if(_0x1054c9===_0x6e7b9f)break;else _0x163e73['push'](_0x163e73['shift']());}catch(_0x58a3a5){_0x163e73['push'](_0x163e73['shift']());}}}(_0x5bae,0xcf5bd));import{Collection as _0x44508b}from'ckeditor5/src/utils.js';import{View as _0x28f57e,createDropdown as _0x14bf79,addListToDropdown as _0x3b639b,UIModel as _0x152690}from'ckeditor5/src/ui.js';export class AIReviewModeFormDropdownView extends _0x28f57e{[_0x113078(0xb5)];[_0x113078(0xbd)];[_0x113078(0xb1)];constructor(_0x3191ed,_0x3c2c9f){const _0x4449a7=_0x113078;super(_0x3191ed),this[_0x4449a7(0xbd)]=_0x3c2c9f[_0x4449a7(0xbf)]||(_0x3c2c9f[_0x4449a7(0xc4)][_0x4449a7(0xd6)]>0x0?_0x3c2c9f[_0x4449a7(0xc4)][0x0]['id']:''),this[_0x4449a7(0xb1)]=_0x3c2c9f[_0x4449a7(0xc4)][_0x4449a7(0xb9)](_0x3443f9=>_0x3443f9['id']===this[_0x4449a7(0xbd)])?.[_0x4449a7(0xd7)]||'',this[_0x4449a7(0xc2)](_0x4449a7(0xcd),''),this[_0x4449a7(0xb5)]=_0x14bf79(this[_0x4449a7(0xc6)]);const _0x3a66a3=this[_0x4449a7(0xbe)](_0x3c2c9f[_0x4449a7(0xc4)]);_0x3b639b(this[_0x4449a7(0xb5)],_0x3a66a3,{'role':_0x4449a7(0xb2),'ariaLabel':_0x3c2c9f[_0x4449a7(0xd7)]}),this[_0x4449a7(0xb5)][_0x4449a7(0xb0)][_0x4449a7(0xc2)]({'label':this[_0x4449a7(0xb1)],'withText':!0x0}),this[_0x4449a7(0xb5)][_0x4449a7(0xba)]({'on':{'click':this[_0x4449a7(0xb8)]['to'](_0x5d29a8=>{const _0x45e85e=_0x4449a7;_0x5d29a8[_0x45e85e(0xb6)]();})}}),this[_0x4449a7(0xc3)](this[_0x4449a7(0xb5)],_0x4449a7(0xcf),_0x21c656=>{const _0x3ceb8f=_0x4449a7;this[_0x3ceb8f(0xcd)]=_0x21c656[_0x3ceb8f(0xda)][_0x3ceb8f(0xd8)]['id'],this[_0x3ceb8f(0xb5)][_0x3ceb8f(0xb0)][_0x3ceb8f(0xd7)]=_0x21c656[_0x3ceb8f(0xda)][_0x3ceb8f(0xd8)][_0x3ceb8f(0xd7)];}),this[_0x4449a7(0xbb)]({'tag':_0x4449a7(0xca),'attributes':{'class':['ck',_0x4449a7(0xd0),_0x4449a7(0xd1),_0x4449a7(0xbc)]},'children':[this[_0x4449a7(0xb5)]]});}[_0x113078(0xce)](){const _0x5b1cff=_0x113078;this[_0x5b1cff(0xcd)]=this[_0x5b1cff(0xbd)],this[_0x5b1cff(0xb5)][_0x5b1cff(0xb0)][_0x5b1cff(0xd7)]=this[_0x5b1cff(0xb1)];}[_0x113078(0xbe)](_0x3873b1=[]){const _0x5005a1=_0x113078,_0x5319aa=new _0x44508b();this[_0x5005a1(0xce)]();for(const _0x437944 of _0x3873b1){const _0x4ddd1d=new _0x152690({'label':_0x437944[_0x5005a1(0xd7)],'withText':!0x0,'role':_0x5005a1(0xb3),'id':_0x437944['id'],'model':_0x437944});_0x4ddd1d[_0x5005a1(0xd9)](_0x5005a1(0xd3))['to'](this,_0x5005a1(0xcd),_0x52f7a9=>_0x52f7a9===_0x4ddd1d['id']);const _0x51752a={'type':_0x5005a1(0xc9),'model':_0x4ddd1d};_0x5319aa[_0x5005a1(0xc7)](_0x51752a);}return _0x5319aa;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x48d4c0=_0x5589;(function(_0x2b8214,_0x219cb2){const _0x215e5f=_0x5589,_0xeaafd4=_0x2b8214();while(!![]){try{const _0x42d35f=parseInt(_0x215e5f(0xa4))/0x1+parseInt(_0x215e5f(0xa1))/0x2+-parseInt(_0x215e5f(0xb4))/0x3+-parseInt(_0x215e5f(0xb5))/0x4*(-parseInt(_0x215e5f(0x9e))/0x5)+-parseInt(_0x215e5f(0xaa))/0x6+-parseInt(_0x215e5f(0xa7))/0x7*(parseInt(_0x215e5f(0xa0))/0x8)+-parseInt(_0x215e5f(0xa8))/0x9*(-parseInt(_0x215e5f(0xa5))/0xa);if(_0x42d35f===_0x219cb2)break;else _0xeaafd4['push'](_0xeaafd4['shift']());}catch(_0x38df3b){_0xeaafd4['push'](_0xeaafd4['shift']());}}}(_0x2642,0xcbdfd));import{FormRowView as _0x5deefa,ListItemView as _0x5418f8}from'ckeditor5/src/ui.js';function _0x5589(_0x42a71c,_0x363eb4){const _0x2642d8=_0x2642();return _0x5589=function(_0x558979,_0x3998d8){_0x558979=_0x558979-0x9e;let _0xf1cd73=_0x2642d8[_0x558979];return _0xf1cd73;},_0x5589(_0x42a71c,_0x363eb4);}import{AIReviewModeFormDropdownView as _0x3d018e}from'./aireviewmodeformdropdown.js';export class AIReviewModeFormManagerView extends _0x5418f8{[_0x48d4c0(0xac)]=null;constructor(_0x1010a4,_0x3b893f,_0x3aa37f){const _0x5600e3=_0x48d4c0;super(_0x1010a4),this[_0x5600e3(0xb3)]=_0x3b893f?.[_0x5600e3(0xb3)];if(_0x5600e3(0xa2)===_0x3b893f[_0x5600e3(0x9f)])this[_0x5600e3(0xac)]=new _0x3d018e(this[_0x5600e3(0xa3)],_0x3b893f);this[_0x5600e3(0xae)](_0x5600e3(0xa9),''),this[_0x5600e3(0xb1)](_0x5600e3(0xa9))['to'](this[_0x5600e3(0xac)],_0x5600e3(0xb7));const _0x33e352=new _0x5deefa(this[_0x5600e3(0xa3)],{'children':[this[_0x5600e3(0xac)]],'class':[_0x3aa37f?_0x5600e3(0xab):'']});_0x3aa37f&&_0x33e352[_0x5600e3(0xaf)][_0x5600e3(0xad)](_0x3aa37f),this[_0x5600e3(0xa6)]({'tag':_0x5600e3(0xb0),'attributes':{'class':['ck',_0x5600e3(0xb6),_0x5600e3(0xb2)]},'children':[_0x33e352]});}[_0x48d4c0(0xb8)](){const _0x4d67d8=_0x48d4c0;this[_0x4d67d8(0xac)][_0x4d67d8(0xb8)]();}}function _0x2642(){const _0x42426d=['value','9440742byrVkI','ck-form__row_with-submit','_formItem','add','set','children','div','bind','ck-reset_all','argsKey','1477407HyQZZc','1682672xFkcnV','ck-ai-review-mode__form-item','formValue','resetToDefault','5EMcwAP','formType','5033936pXvkHb','1972038qpMsTx','dropdown','locale','1235719IaiVbJ','1268330WMbthX','setTemplate','7EgHcIC','63ZmqbOM'];_0x2642=function(){return _0x42426d;};return _0x2642();}
|
package/src/aitabs/aitabs.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x245bb2=_0x1f12;(function(_0x556ff1,_0x216949){const _0x40023c=_0x1f12,_0x210dfa=_0x556ff1();while(!![]){try{const _0x3358c0=-parseInt(_0x40023c(0xaf))/0x1+-parseInt(_0x40023c(0xa6))/0x2*(parseInt(_0x40023c(0xa3))/0x3)+parseInt(_0x40023c(0xb4))/0x4+parseInt(_0x40023c(0xb5))/0x5*(parseInt(_0x40023c(0x9c))/0x6)+-parseInt(_0x40023c(0x9a))/0x7+parseInt(_0x40023c(0xb8))/0x8*(-parseInt(_0x40023c(0x9f))/0x9)+parseInt(_0x40023c(0x95))/0xa;if(_0x3358c0===_0x216949)break;else _0x210dfa['push'](_0x210dfa['shift']());}catch(_0x183931){_0x210dfa['push'](_0x210dfa['shift']());}}}(_0x1d1b,0x1c66c));import{ContextPlugin as _0x5a8989,Editor as _0x1326c3}from'ckeditor5/src/core.js';import{CKEditorError as _0x308793}from'ckeditor5/src/utils.js';function _0x1f12(_0x48307c,_0x1e3660){const _0x1d1b29=_0x1d1b();return _0x1f12=function(_0x1f1253,_0x3efe58){_0x1f1253=_0x1f1253-0x91;let _0x1c54cb=_0x1d1b29[_0x1f1253];return _0x1c54cb;},_0x1f12(_0x48307c,_0x1e3660);}import{AITabsMainView as _0x28e120,AI_TABS_VIEW_SIDES as _0x38d904,AI_TABS_VIEW_TYPES as _0x314df8}from'./aitabsmainview.js';export class AITabs extends _0x5a8989{[_0x245bb2(0xa0)];[_0x245bb2(0x94)]=null;[_0x245bb2(0x99)]=!0x0;static get[_0x245bb2(0xbc)](){const _0x198b12=_0x245bb2;return _0x198b12(0xbf);}static get[_0x245bb2(0x93)](){return!0x0;}static get[_0x245bb2(0xb3)](){return!0x0;}constructor(_0x2883a2){const _0xddc03=_0x245bb2;super(_0x2883a2);const _0x2fb03a=this[_0xddc03(0xac)][_0xddc03(0x9d)][_0xddc03(0xbe)](_0xddc03(0x91));if(this[_0xddc03(0xb9)](_0xddc03(0xa1),_0xddc03(0xa2)),!_0x2fb03a)throw new _0x308793(_0xddc03(0x98));if(void 0x0!==_0x2fb03a[_0xddc03(0x99)]&&(this[_0xddc03(0x99)]=_0x2fb03a[_0xddc03(0x99)]),_0xddc03(0x9b)!==_0x2fb03a[_0xddc03(0x9e)]&&_0xddc03(0xae)!==_0x2fb03a[_0xddc03(0x9e)]||_0x2fb03a[_0xddc03(0xa1)]&&(this[_0xddc03(0xa1)]=_0x2fb03a[_0xddc03(0xa1)]),_0xddc03(0x9b)===_0x2fb03a[_0xddc03(0x9e)]){if(this[_0xddc03(0x94)]=_0x2fb03a[_0xddc03(0xb2)],this[_0xddc03(0xb9)](_0xddc03(0x9e),_0xddc03(0x9b)),!this[_0xddc03(0x94)])throw new _0x308793(_0xddc03(0xa7));}else _0xddc03(0xae)===_0x2fb03a[_0xddc03(0x9e)]?(this[_0xddc03(0x94)]=document[_0xddc03(0xab)],this[_0xddc03(0xb9)](_0xddc03(0x9e),_0xddc03(0xae))):(this[_0xddc03(0x94)]=null,this[_0xddc03(0xb9)](_0xddc03(0x9e),_0xddc03(0xba)));this[_0xddc03(0xa0)]=new _0x28e120(this[_0xddc03(0xac)][_0xddc03(0xb1)],{'side':this[_0xddc03(0xa1)],'type':this[_0xddc03(0x9e)]}),this[_0xddc03(0xa0)][_0xddc03(0x97)](),this[_0xddc03(0xa0)][_0xddc03(0xaa)](_0xddc03(0xa1))['to'](this,_0xddc03(0xa1)),this[_0xddc03(0xa0)][_0xddc03(0xaa)](_0xddc03(0x9e))['to'](this,_0xddc03(0x9e)),this[_0xddc03(0x94)]&&this[_0xddc03(0x94)][_0xddc03(0xc0)](this[_0xddc03(0xa0)][_0xddc03(0xb2)]),this[_0xddc03(0xac)]instanceof _0x1326c3&&this[_0xddc03(0xac)]['ui'][_0xddc03(0xbd)][_0xddc03(0xad)](this[_0xddc03(0xa0)][_0xddc03(0xb2)]);}[_0x245bb2(0xa4)](_0x3b9b44){const _0x372ac5=_0x245bb2;if(_0x3b9b44&&this[_0x372ac5(0x9e)]!==_0x3b9b44){if(!_0x314df8[_0x372ac5(0xbb)](_0x3b9b44))throw new _0x308793(_0x372ac5(0x92));this[_0x372ac5(0x9e)]=_0x3b9b44;}}[_0x245bb2(0xa9)](_0x33b139){const _0x40607f=_0x245bb2;if(_0x33b139&&this[_0x40607f(0xa1)]!==_0x33b139){if(!_0x38d904[_0x40607f(0xbb)](_0x33b139))throw new _0x308793(_0x40607f(0xb7));this[_0x40607f(0xa1)]=_0x33b139;}}[_0x245bb2(0xa5)](){const _0x3b52c7=_0x245bb2;this[_0x3b52c7(0xa0)][_0x3b52c7(0xb6)]=!this[_0x3b52c7(0xa0)][_0x3b52c7(0xb6)],this[_0x3b52c7(0xa8)](_0x3b52c7(0x96),this[_0x3b52c7(0xa0)][_0x3b52c7(0xb6)]);}[_0x245bb2(0xc1)](){const _0x24f0b2=_0x245bb2;super[_0x24f0b2(0xc1)](),this[_0x24f0b2(0xa0)][_0x24f0b2(0xc1)](),this[_0x24f0b2(0xa0)][_0x24f0b2(0xb2)]&&this[_0x24f0b2(0xa0)][_0x24f0b2(0xb2)][_0x24f0b2(0xb0)]();}}function _0x1d1b(){const _0x4fe940=['fire','switchSide','bind','body','context','add','overlay','130460ExKodx','remove','locale','element','isPremiumPlugin','97872xmyQhG','409715knKawz','isMaximized','ai-tabs-unsupported-ui-side','1170984MktLZV','set','custom','includes','pluginName','focusTracker','get','AITabs','appendChild','destroy','ai.container','ai-tabs-unsupported-ui-type','isOfficialPlugin','container','3412400oGLpec','resizedTabs','render','ai-tabs-configuration-not-found','showResizeButton','276710LuMUvH','sidebar','12TdVCpz','config','type','9XIhbTh','view','side','right','290697oaoOwZ','switchType','resize','2Ixtsrh','ai-tabs-sidebar-container-element-not-found'];_0x1d1b=function(){return _0x4fe940;};return _0x1d1b();}
|
|
@@ -25,6 +25,12 @@ export declare class AITabsMainView extends AITabsView {
|
|
|
25
25
|
* The type of the view.
|
|
26
26
|
*/
|
|
27
27
|
type: AITabsMainViewOptions['type'];
|
|
28
|
+
/**
|
|
29
|
+
* Whether the AI tabs view is visible.
|
|
30
|
+
*
|
|
31
|
+
* @observable
|
|
32
|
+
*/
|
|
33
|
+
isVisible: boolean;
|
|
28
34
|
/**
|
|
29
35
|
* @inheritDoc
|
|
30
36
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1525(_0x1ab629,_0x5057f4){const _0x46eb99=_0x46eb();return _0x1525=function(_0x152553,_0x2232eb){_0x152553=_0x152553-0x188;let _0x303fd6=_0x46eb99[_0x152553];return _0x303fd6;},_0x1525(_0x1ab629,_0x5057f4);}const _0x1dbc5e=_0x1525;(function(_0x3d2d1a,_0x4dc756){const _0x52ab28=_0x1525,_0x54467d=_0x3d2d1a();while(!![]){try{const _0x357504=-parseInt(_0x52ab28(0x19a))/0x1*(-parseInt(_0x52ab28(0x193))/0x2)+-parseInt(_0x52ab28(0x19f))/0x3*(-parseInt(_0x52ab28(0x199))/0x4)+parseInt(_0x52ab28(0x188))/0x5*(parseInt(_0x52ab28(0x1a2))/0x6)+-parseInt(_0x52ab28(0x18b))/0x7+parseInt(_0x52ab28(0x18f))/0x8*(-parseInt(_0x52ab28(0x198))/0x9)+parseInt(_0x52ab28(0x19c))/0xa*(parseInt(_0x52ab28(0x191))/0xb)+parseInt(_0x52ab28(0x19b))/0xc;if(_0x357504===_0x4dc756)break;else _0x54467d['push'](_0x54467d['shift']());}catch(_0x529e1b){_0x54467d['push'](_0x54467d['shift']());}}}(_0x46eb,0x82e21));import{AITabsView as _0x545916}from'./tabs/aitabsview.js';import'../../theme/aitabs/aitabsview.css';function _0x46eb(){const _0x18e6ef=['set','2RKvTbo','extendTemplate','right','left','custom','2447901PRjkQC','4zjZwKV','271457PMnSoK','5438760dSMrNE','3730WCcWOo','withText','overlay','515649JCMGmb','ck-ai-tabs__overlay','add','769608DKSTMB','isVisible','ck-hidden','ck-ai-tabs__sidebar','10keSdyE','ck-ai-tabs','side','5677882EgQpmV','buttonViews','bindTemplate','sidebar','24mXDxUr','type','29788kNPeml'];_0x46eb=function(){return _0x18e6ef;};return _0x46eb();}export const AI_TABS_VIEW_TYPES=[_0x1dbc5e(0x19e),_0x1dbc5e(0x18e),_0x1dbc5e(0x197)];export const AI_TABS_VIEW_SIDES=[_0x1dbc5e(0x196),_0x1dbc5e(0x195)];export class AITabsMainView extends _0x545916{constructor(_0x5eec3f,_0x396966={}){const _0x225404=_0x1dbc5e;super(_0x5eec3f,_0x396966),this[_0x225404(0x192)](_0x225404(0x190),_0x396966[_0x225404(0x190)]||_0x225404(0x18e)),this[_0x225404(0x192)](_0x225404(0x18a),_0x396966[_0x225404(0x18a)]||_0x225404(0x195)),this[_0x225404(0x192)](_0x225404(0x1a3),!0x0);const _0x2ced29=this[_0x225404(0x18d)];this[_0x225404(0x194)]({'attributes':{'class':[_0x225404(0x189),_0x2ced29['if'](_0x225404(0x190),_0x225404(0x1a0),_0x53d653=>_0x225404(0x19e)===_0x53d653),_0x2ced29['if'](_0x225404(0x190),_0x225404(0x1a5),_0x3e4f5e=>_0x225404(0x18e)===_0x3e4f5e),_0x2ced29['if'](_0x225404(0x1a3),_0x225404(0x1a4),_0x7e9bc8=>!_0x7e9bc8)]}}),this[_0x225404(0x18c)]['on'](_0x225404(0x1a1),(_0x2ea831,_0x4bb6b1)=>{const _0x2ceb8e=_0x225404;_0x4bb6b1[_0x2ceb8e(0x192)](_0x2ceb8e(0x19d),!0x1);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bc728=_0x565e;(function(_0x240231,_0x1871c8){const _0x20519c=_0x565e,_0x2cd5df=_0x240231();while(!![]){try{const _0x43ad67=parseInt(_0x20519c(0x15e))/0x1+parseInt(_0x20519c(0x151))/0x2*(-parseInt(_0x20519c(0x15d))/0x3)+parseInt(_0x20519c(0x12e))/0x4+-parseInt(_0x20519c(0x146))/0x5+-parseInt(_0x20519c(0x160))/0x6*(-parseInt(_0x20519c(0x16f))/0x7)+parseInt(_0x20519c(0x175))/0x8+-parseInt(_0x20519c(0x15f))/0x9*(parseInt(_0x20519c(0x159))/0xa);if(_0x43ad67===_0x1871c8)break;else _0x2cd5df['push'](_0x2cd5df['shift']());}catch(_0x33411e){_0x2cd5df['push'](_0x2cd5df['shift']());}}}(_0xc05d,0xab2cf));import{View as _0x5bc796}from'ckeditor5/src/ui.js';import{toArray as _0x2aa4c6,CKEditorError as _0x448591}from'ckeditor5/src/utils.js';import{TabButtonView as _0x1f1067}from'./tabbuttonview.js';import{TabPanelView as _0x880c78}from'./tabpanelview.js';function _0xc05d(){const _0x27a9ad=['311169qoRJSn','855701EouQOH','12001581NyHUMi','128946laeFSV','render','getTabIds','left','ck-tabs__buttons-container_','hide:','showTab','activeTab','label','addTab','execute','children','setTemplate','bindTemplate','ck-tabs','301gJgqzy','_getPanel','ck-tabs__panels-container_','_hidePanel','isOn','class','7806472XGxKXe','show','activateTab:','add','set','48412inSwmT','_hideButton','reduce','right','get','activateTab','_getButton','icon','_tabs','ck-ai-tabs_maximized','div','isMaximized','locale','content','button','ck-tabs_','panelViews','createCollection','getIndex','isVisible','_showPanel','fire','length','hideTab','1072335oPcrJC','bind','side','keys','order','getTab','buttonIcon','find','_showButton','addTab:','hide','10BSVHoY','ck-tabs__buttons-container','top','buttonLabel','_setupButton','panel','ck-reset','ui-tabsview-tab-not-found','10kNxBIN','buttonViews','show:','ck-tabs__panels-container'];_0xc05d=function(){return _0x27a9ad;};return _0xc05d();}import'../../../theme/aitabs/tabs/tabsview.css';export const AI_TABS_POSITIONS=[_0x1bc728(0x153),_0x1bc728(0x163),_0x1bc728(0x131)];function _0x565e(_0x50d710,_0x5535b5){const _0xc05d08=_0xc05d();return _0x565e=function(_0x565e76,_0x27ff07){_0x565e76=_0x565e76-0x12a;let _0x3a34e6=_0xc05d08[_0x565e76];return _0x3a34e6;},_0x565e(_0x50d710,_0x5535b5);}export class AITabsView extends _0x5bc796{[_0x1bc728(0x15a)]=this[_0x1bc728(0x13f)]();[_0x1bc728(0x13e)]=this[_0x1bc728(0x13f)]();[_0x1bc728(0x136)]=new Map();constructor(_0x41defd,_0x2b544d={}){const _0x19160f=_0x1bc728;super(_0x41defd),this[_0x19160f(0x12d)](_0x19160f(0x174),void 0x0),this[_0x19160f(0x12d)](_0x19160f(0x167),null),this[_0x19160f(0x12d)](_0x19160f(0x148),_0x2b544d[_0x19160f(0x148)]||_0x19160f(0x153)),this[_0x19160f(0x12d)](_0x19160f(0x139),!0x1);const _0x477c03=this[_0x19160f(0x16d)];this[_0x19160f(0x16c)]({'tag':_0x19160f(0x138),'attributes':{'class':['ck',_0x19160f(0x157),_0x19160f(0x16e),..._0x2aa4c6(_0x2b544d[_0x19160f(0x174)]||[]),_0x477c03['to'](_0x19160f(0x148),_0x3ed0ab=>_0x19160f(0x13d)+_0x3ed0ab),_0x477c03['to'](_0x19160f(0x174)),_0x477c03['to'](_0x19160f(0x139),_0x54ddec=>_0x54ddec?_0x19160f(0x137):'')],'tabindex':'0'},'children':[{'tag':_0x19160f(0x138),'attributes':{'class':['ck',_0x19160f(0x152),_0x477c03['to'](_0x19160f(0x148),_0x2bb335=>_0x19160f(0x164)+_0x2bb335)]},'children':this[_0x19160f(0x15a)]},{'tag':_0x19160f(0x138),'attributes':{'class':['ck',_0x19160f(0x15c),_0x477c03['to'](_0x19160f(0x148),_0x34f3d2=>_0x19160f(0x171)+_0x34f3d2)]},'children':this[_0x19160f(0x13e)]},..._0x2aa4c6(_0x2b544d[_0x19160f(0x16b)]||[])]});}[_0x1bc728(0x162)](){const _0x39769e=_0x1bc728;return[...this[_0x39769e(0x136)][_0x39769e(0x149)]()];}[_0x1bc728(0x14b)](_0x4a67c3){const _0x18db8a=_0x1bc728,_0x139310=this[_0x18db8a(0x136)][_0x18db8a(0x132)](_0x4a67c3);return _0x139310||null;}[_0x1bc728(0x169)](_0x1b9aa1){const _0x280a95=_0x1bc728,_0x268c22=this[_0x280a95(0x155)]({'id':_0x1b9aa1['id'],'label':_0x1b9aa1[_0x280a95(0x154)],'icon':_0x1b9aa1[_0x280a95(0x14c)],'order':_0x1b9aa1[_0x280a95(0x14a)]}),_0x1726cf=new _0x880c78(this[_0x280a95(0x13a)]);return _0x1726cf[_0x280a95(0x161)](),_0x1b9aa1[_0x280a95(0x13b)]&&_0x1726cf[_0x280a95(0x16b)][_0x280a95(0x12c)](_0x1b9aa1[_0x280a95(0x13b)]),this[_0x280a95(0x13e)][_0x280a95(0x12c)](_0x1726cf),this[_0x280a95(0x136)][_0x280a95(0x12d)](_0x1b9aa1['id'],{'button':_0x268c22,'panel':_0x1726cf,'order':void 0x0!==_0x1b9aa1[_0x280a95(0x14a)]?_0x1b9aa1[_0x280a95(0x14a)]:null}),this[_0x280a95(0x143)](_0x280a95(0x14f)+_0x1b9aa1['id'],{'id':_0x1b9aa1['id'],'button':_0x268c22,'panel':_0x1726cf}),null===this[_0x280a95(0x167)]?this[_0x280a95(0x133)](_0x1b9aa1['id']):this[_0x280a95(0x172)](_0x1b9aa1['id']),{'button':_0x268c22,'panel':_0x1726cf};}[_0x1bc728(0x133)](_0x57339b){const _0x413225=_0x1bc728;if(null!==_0x57339b&&!this[_0x413225(0x14b)](_0x57339b))throw new _0x448591(_0x413225(0x158),{'tabs':this,'tabId':_0x57339b});this[_0x413225(0x167)]!==_0x57339b&&(this[_0x413225(0x167)]&&this[_0x413225(0x172)](this[_0x413225(0x167)]),this[_0x413225(0x167)]=_0x57339b,_0x57339b&&this[_0x413225(0x142)](_0x57339b),this[_0x413225(0x143)](_0x413225(0x12b)+_0x57339b,_0x57339b));}[_0x1bc728(0x166)](_0x120637){const _0x1ff618=_0x1bc728;if(!this[_0x1ff618(0x14b)](_0x120637))throw new _0x448591(_0x1ff618(0x158),{'tabs':this,'tabId':_0x120637});this[_0x1ff618(0x142)](_0x120637),this[_0x1ff618(0x14e)](_0x120637),this[_0x1ff618(0x143)](_0x1ff618(0x15b)+_0x120637,_0x120637);}[_0x1bc728(0x145)](_0x51636f){const _0x175c14=_0x1bc728;if(!this[_0x175c14(0x14b)](_0x51636f))throw new _0x448591(_0x175c14(0x158),{'tabs':this,'tabId':_0x51636f});const _0x5ca02a=this[_0x175c14(0x167)];this[_0x175c14(0x172)](_0x51636f),this[_0x175c14(0x12f)](_0x51636f);const _0x5e69c0=this[_0x175c14(0x162)]();_0x5ca02a===_0x51636f&&_0x5e69c0[_0x175c14(0x144)]>0x1&&this[_0x175c14(0x133)](_0x5e69c0[_0x175c14(0x14d)](_0xa78330=>_0xa78330!==_0x51636f)),this[_0x175c14(0x143)](_0x175c14(0x165)+_0x51636f,_0x51636f);}[_0x1bc728(0x170)](_0x5d95a4){const _0x2953d5=_0x1bc728,_0x512347=this[_0x2953d5(0x136)][_0x2953d5(0x132)](_0x5d95a4);return _0x512347?_0x512347[_0x2953d5(0x156)]:null;}[_0x1bc728(0x142)](_0x8e05a0){const _0x1a12dd=_0x1bc728;null!==this[_0x1a12dd(0x167)]&&this[_0x1a12dd(0x167)]!==_0x8e05a0||this[_0x1a12dd(0x170)](_0x8e05a0)[_0x1a12dd(0x12a)]();}[_0x1bc728(0x172)](_0x545dfc){const _0x469559=_0x1bc728,_0x1eb62a=this[_0x469559(0x170)](_0x545dfc);_0x1eb62a[_0x469559(0x141)]&&(this[_0x469559(0x167)]===_0x545dfc&&(this[_0x469559(0x167)]=null),_0x1eb62a[_0x469559(0x150)]());}[_0x1bc728(0x134)](_0x22e7f7){const _0x54705e=_0x1bc728,_0xfdb79c=this[_0x54705e(0x136)][_0x54705e(0x132)](_0x22e7f7);return _0xfdb79c?_0xfdb79c[_0x54705e(0x13c)]:null;}[_0x1bc728(0x14e)](_0x25d0a7){const _0x1f5f8a=_0x1bc728;this[_0x1f5f8a(0x134)](_0x25d0a7)[_0x1f5f8a(0x12a)]();}[_0x1bc728(0x12f)](_0x27555a){const _0x43141e=_0x1bc728;this[_0x43141e(0x134)](_0x27555a)[_0x43141e(0x150)]();}[_0x1bc728(0x155)](_0x2db28e){const _0x281508=_0x1bc728,_0x3b5208=new _0x1f1067(this[_0x281508(0x13a)],{'side':this[_0x281508(0x148)]}),_0x558471=this[_0x281508(0x15a)];if(_0x3b5208[_0x281508(0x12d)]({'label':_0x2db28e[_0x281508(0x168)],'icon':_0x2db28e[_0x281508(0x135)],'tooltip':!0x0,'withText':!0x0}),_0x3b5208[_0x281508(0x147)](_0x281508(0x173))['to'](this,_0x281508(0x167),_0x19c138=>_0x19c138===_0x2db28e['id']),_0x3b5208[_0x281508(0x147)](_0x281508(0x148))['to'](this,_0x281508(0x148)),_0x2db28e[_0x281508(0x14a)]){const _0x50e1bf=[...this[_0x281508(0x136)]][_0x281508(0x130)]((_0xfaca76,_0x111544)=>{const _0x3eefaf=_0x281508,_0x41ce3e=_0x111544[0x0],{order:_0x4a3bf2}=_0x111544[0x1];return!_0x4a3bf2||_0x4a3bf2>_0x2db28e[_0x3eefaf(0x14a)]?_0xfaca76:_0x4a3bf2>=_0xfaca76[_0x3eefaf(0x14a)]?{'id':_0x41ce3e,'order':_0x4a3bf2}:_0xfaca76;},{'id':'','order':0x0}),_0x4695c6=_0x558471[_0x281508(0x140)](this[_0x281508(0x134)](_0x50e1bf['id']));_0x558471[_0x281508(0x12c)](_0x3b5208,_0x4695c6+0x1);}else _0x558471[_0x281508(0x12c)](_0x3b5208);return _0x3b5208['on'](_0x281508(0x16a),()=>{const _0x3146f0=_0x281508;this[_0x3146f0(0x133)](_0x2db28e['id']);}),_0x3b5208;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x379b42=_0x3078;(function(_0x494a53,_0x5f3729){const _0xc646f9=_0x3078,_0x429ec3=_0x494a53();while(!![]){try{const _0x42a74b=-parseInt(_0xc646f9(0x77))/0x1+parseInt(_0xc646f9(0x81))/0x2*(-parseInt(_0xc646f9(0x73))/0x3)+parseInt(_0xc646f9(0x82))/0x4+parseInt(_0xc646f9(0x72))/0x5+parseInt(_0xc646f9(0x75))/0x6+-parseInt(_0xc646f9(0x7d))/0x7*(-parseInt(_0xc646f9(0x76))/0x8)+parseInt(_0xc646f9(0x74))/0x9;if(_0x42a74b===_0x5f3729)break;else _0x429ec3['push'](_0x429ec3['shift']());}catch(_0xe4f4fb){_0x429ec3['push'](_0x429ec3['shift']());}}}(_0x2e5f,0xe43ed));import{ButtonView as _0xff668c}from'ckeditor5/src/ui.js';import{toArray as _0x5ac1ee}from'ckeditor5/src/utils.js';import'../../../theme/aitabs/tabs/tabbuttonview.css';function _0x2e5f(){const _0x3e67ff=['18921kEFknx','9273834IUKEcv','4400118xiCyRN','8cBEBrp','1730739LubAlZ','show','bindTemplate','hide','set','side','8071749HNDODa','extendTemplate','class','ck-tab-button','472nBodPY','4756932xrnBGv','ck-tab-button_','top','isToggleable','isVisible','239825KFubkh'];_0x2e5f=function(){return _0x3e67ff;};return _0x2e5f();}function _0x3078(_0xb9895e,_0x4e0584){const _0x2e5f29=_0x2e5f();return _0x3078=function(_0x3078c4,_0x3e1329){_0x3078c4=_0x3078c4-0x6f;let _0x2d8b3c=_0x2e5f29[_0x3078c4];return _0x2d8b3c;},_0x3078(_0xb9895e,_0x4e0584);}export class TabButtonView extends _0xff668c{constructor(_0x14b11d,_0x38f0e6={}){const _0x3341df=_0x3078;super(_0x14b11d),this[_0x3341df(0x70)]=!0x0,this[_0x3341df(0x7b)](_0x3341df(0x7c),_0x38f0e6[_0x3341df(0x7c)]||_0x3341df(0x6f));const _0x94fd6f=this[_0x3341df(0x79)];this[_0x3341df(0x7e)]({'attributes':{'class':[_0x3341df(0x80),..._0x5ac1ee(_0x38f0e6[_0x3341df(0x7f)]||[]),_0x94fd6f['to'](_0x3341df(0x7c),_0x5e60f6=>_0x3341df(0x83)+_0x5e60f6),_0x94fd6f['to'](_0x3341df(0x7f))]}});}[_0x379b42(0x78)](){const _0x2c313a=_0x379b42;this[_0x2c313a(0x7b)](_0x2c313a(0x71),!0x0);}[_0x379b42(0x7a)](){const _0x58b3c8=_0x379b42;this[_0x58b3c8(0x7b)](_0x58b3c8(0x71),!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0xac4bff=_0x5dd5;function _0x5dd5(_0x487052,_0x20115c){const _0x4bcb54=_0x4bcb();return _0x5dd5=function(_0x5dd55b,_0x41c603){_0x5dd55b=_0x5dd55b-0x151;let _0x2db652=_0x4bcb54[_0x5dd55b];return _0x2db652;},_0x5dd5(_0x487052,_0x20115c);}(function(_0x224256,_0x929740){const _0x33532a=_0x5dd5,_0x1aea58=_0x224256();while(!![]){try{const _0xd4b1ea=-parseInt(_0x33532a(0x156))/0x1+-parseInt(_0x33532a(0x157))/0x2+parseInt(_0x33532a(0x161))/0x3*(parseInt(_0x33532a(0x160))/0x4)+parseInt(_0x33532a(0x152))/0x5+-parseInt(_0x33532a(0x164))/0x6+-parseInt(_0x33532a(0x15b))/0x7+parseInt(_0x33532a(0x15c))/0x8;if(_0xd4b1ea===_0x929740)break;else _0x1aea58['push'](_0x1aea58['shift']());}catch(_0x2ed185){_0x1aea58['push'](_0x1aea58['shift']());}}}(_0x4bcb,0x468e0));import{View as _0x13493a}from'ckeditor5/src/ui.js';import{toArray as _0x487c80}from'ckeditor5/src/utils.js';export class TabPanelView extends _0x13493a{[_0xac4bff(0x158)];constructor(_0x344f3c,_0x3b7dbf={}){const _0x834bd3=_0xac4bff;super(_0x344f3c);const _0xa565bc=this[_0x834bd3(0x154)];this[_0x834bd3(0x151)](_0x834bd3(0x155),!0x1),this[_0x834bd3(0x151)](_0x834bd3(0x159),''),this[_0x834bd3(0x158)]=this[_0x834bd3(0x15f)](),this[_0x834bd3(0x163)]({'tag':_0x834bd3(0x153),'attributes':{'class':[_0x834bd3(0x15d),..._0x487c80(_0x3b7dbf[_0x834bd3(0x159)]||[]),_0xa565bc['to'](_0x834bd3(0x159)),_0xa565bc['if'](_0x834bd3(0x155),_0x834bd3(0x15e),_0x25d83b=>!_0x25d83b)]},'children':this[_0x834bd3(0x158)]});}[_0xac4bff(0x15a)](){const _0x1997e2=_0xac4bff;this[_0x1997e2(0x151)](_0x1997e2(0x155),!0x0);}[_0xac4bff(0x162)](){const _0x5bee45=_0xac4bff;this[_0x5bee45(0x151)](_0x5bee45(0x155),!0x1);}}function _0x4bcb(){const _0x4c0283=['set','938590ruEZsU','div','bindTemplate','isVisible','520781xUlYFi','88482HTGHHD','children','class','show','2147425VZJreE','6348168GvbEZE','ck-tab-panel','ck-hidden','createCollection','721884Qzqhhf','9aVsvka','hide','setTemplate','2171178fQMifL'];_0x4bcb=function(){return _0x4c0283;};return _0x4bcb();}
|
package/src/augmentation.d.ts
CHANGED
|
@@ -9,6 +9,9 @@ import type { AIAssistantEditing } from './aiassistant/aiassistantediting.js';
|
|
|
9
9
|
import type { AIAssistantUI } from './aiassistant/aiassistantui.js';
|
|
10
10
|
import type { AIAdapter } from './aiassistant/adapters/aiadapter.js';
|
|
11
11
|
import type { AITabs } from './aitabs/aitabs.js';
|
|
12
|
+
import type { AIEditorIntegration } from './aieditorintegration/aieditorintegration.js';
|
|
13
|
+
import type { AIToggleButtonUI } from './aieditorintegration/aitogglebutton/aitogglebuttonui.js';
|
|
14
|
+
import type { ToggleAICommand } from './aieditorintegration/aitogglebutton/toggleaicommand.js';
|
|
12
15
|
import type { AIConnector } from './aicore/aiconnector.js';
|
|
13
16
|
import type { AIChat } from './aichat/aichat.js';
|
|
14
17
|
import type { AIChatController } from './aichat/aichatcontroller.js';
|
|
@@ -29,6 +32,8 @@ declare module '@ckeditor/ckeditor5-core' {
|
|
|
29
32
|
[AIAssistantUI.pluginName]: AIAssistantUI;
|
|
30
33
|
[AIAssistantEditing.pluginName]: AIAssistantEditing;
|
|
31
34
|
[AITabs.pluginName]: AITabs;
|
|
35
|
+
[AIEditorIntegration.pluginName]: AIEditorIntegration;
|
|
36
|
+
[AIToggleButtonUI.pluginName]: AIToggleButtonUI;
|
|
32
37
|
[AIConnector.pluginName]: AIConnector;
|
|
33
38
|
[AIChat.pluginName]: AIChat;
|
|
34
39
|
[AIChatController.pluginName]: AIChatController;
|
|
@@ -39,5 +44,6 @@ declare module '@ckeditor/ckeditor5-core' {
|
|
|
39
44
|
}
|
|
40
45
|
interface CommandsMap {
|
|
41
46
|
showAIAssistant: ShowAIAssistantCommand;
|
|
47
|
+
toggleAI: ToggleAICommand;
|
|
42
48
|
}
|
|
43
49
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -20,13 +20,16 @@ export { AIChat, type AIChatConfig } from './aichat/aichat.js';
|
|
|
20
20
|
export { AIChatController } from './aichat/aichatcontroller.js';
|
|
21
21
|
export { AIEditing } from './aicore/aiediting.js';
|
|
22
22
|
export { AIChatUI } from './aichat/aichatui.js';
|
|
23
|
+
export { AIEditorIntegration } from './aieditorintegration/aieditorintegration.js';
|
|
24
|
+
export { AIToggleButtonUI } from './aieditorintegration/aitogglebutton/aitogglebuttonui.js';
|
|
25
|
+
export { ToggleAICommand } from './aieditorintegration/aitogglebutton/toggleaicommand.js';
|
|
23
26
|
export { type AITabsMainView, type AITabsMainViewOptions } from './aitabs/aitabsmainview.js';
|
|
24
27
|
export { type AITabsView, type AITabsAddTabOptions, type AITabsViewOptions } from './aitabs/tabs/aitabsview.js';
|
|
25
28
|
export { type AIResizedTabsEvent, type AIResizeTabsEvent } from './aitabs/aitabs.js';
|
|
26
29
|
export { type AIChatContextConfig, type AIAddContextOptionsState, type AIChatContextItemAddedEvent, type AIChatContextItemRemovedEvent, type AIChatContextSentEvent, type AIChatContextAddContextOptionsChangedEvent, type AIContextProvider, type AIContextResource, type AIContextResourceState, type AIContextProviderState, type AIContextTextResource, type AIChatContextUploadProgressChangedEvent } from './aichat/model/aichatcontext.js';
|
|
27
30
|
export { type AIContextItemType, type AIContextItemRequestData, type AIContextItem, type AIContextTextResourceType } from './aicore/model/aicontext.js';
|
|
28
31
|
export { type AIChatModel, type AIChatModelsConfig } from './aichat/model/aichatmodels.js';
|
|
29
|
-
export { type AIGenericRequest, type AIConversationStartReply, type AIConversationStartRequest, type AIEventSourceMessageParsed, type AIQueryAssistantReply, type AIConnectorRequest, type AIConnectorQueryAssistantData, type AIUploadReply, type AIUploadRequest, type AIModelData, type AIModelRequest, type AIFetchDocumentReply, type AIFetchDocumentRequest, type AIConversationItem, type AIFetchConversationsRequest, type AIDeleteConversationRequest, type AIUserMessage, type AIAssistantMessage, type AIConversationMessage, type AIGetConversationReply, type AIGetConversationRequest, type AIGetConversationMessagesRequest, type AIUpdateConversationRequest, type AIDeleteFileRequest, type AIDeleteDocumentRequest, type AIDeleteWebResourceRequest, type AIConnectorExecuteActionData, type AIConnectorExecuteCustomActionData, type AIActionsNames, type AIConnectorSystemReviewData, type AIConnectorCustomReviewData } from './aicore/aiconnector.js';
|
|
32
|
+
export { type AIGenericRequest, type AIConversationStartReply, type AIConversationStartRequest, type AIEventSourceMessageParsed, type AIQueryAssistantReply, type AIConnectorRequest, type AIConnectorQueryAssistantData, type AIUploadReply, type AIUploadRequest, type AIModelData, type AIModelRequest, type AIFetchDocumentReply, type AIFetchDocumentRequest, type AIConversationItem, type AIFetchConversationsRequest, type AIDeleteConversationRequest, type AIUserMessage, type AIAssistantMessage, type AIConversationMessage, type AIGetConversationReply, type AIGetConversationRequest, type AIGetConversationMessagesRequest, type AIUpdateConversationRequest, type AIDeleteFileRequest, type AIDeleteDocumentRequest, type AIDeleteWebResourceRequest, type AIConnectorExecuteActionData, type AIConnectorExecuteCustomActionData, type AIActionsNames, type AIConnectorSystemReviewData, type AIConnectorCustomReviewData, type AIUpdateRating, type AIRating } from './aicore/aiconnector.js';
|
|
30
33
|
export { type AIChatUIStartConversationEvent, type AIChatUISendUserMessageEvent, type AIChatUIAbortPromptStreamEvent, type AIChatUIAddDocumentToContextEvent, type AIChatUIAddFileToContextEvent, type AIChatUIRemoveContextItemEvent } from './aichat/aichatui.js';
|
|
31
34
|
export { AIChatHistory } from './aichathistory/aichathistory.js';
|
|
32
35
|
export { AIChatHistoryController } from './aichathistory/aichathistorycontroller.js';
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2a8d9b,_0x431a02){var _0x536272=_0x398b,_0x2f9846=_0x2a8d9b();while(!![]){try{var _0xe4b565=parseInt(_0x536272(0x13e))/0x1+-parseInt(_0x536272(0x137))/0x2*(-parseInt(_0x536272(0x134))/0x3)+parseInt(_0x536272(0x136))/0x4*(-parseInt(_0x536272(0x13d))/0x5)+-parseInt(_0x536272(0x13a))/0x6*(parseInt(_0x536272(0x13b))/0x7)+-parseInt(_0x536272(0x13c))/0x8*(parseInt(_0x536272(0x138))/0x9)+-parseInt(_0x536272(0x135))/0xa*(-parseInt(_0x536272(0x139))/0xb)+parseInt(_0x536272(0x133))/0xc;if(_0xe4b565===_0x431a02)break;else _0x2f9846['push'](_0x2f9846['shift']());}catch(_0x3ee6dc){_0x2f9846['push'](_0x2f9846['shift']());}}}(_0x2209,0xc2896));export{AIAssistant,getDefaultAICommands}from'./aiassistant/aiassistant.js';export{AIAssistantUI}from'./aiassistant/aiassistantui.js';export{AIAdapter,AIRequestError}from'./aiassistant/adapters/aiadapter.js';export{AITextAdapter}from'./aiassistant/adapters/aitextadapter.js';export{OpenAITextAdapter}from'./aiassistant/adapters/openaitextadapter.js';export{AWSTextAdapter}from'./aiassistant/adapters/awstextadapter.js';export{ShowAIAssistantCommand}from'./aiassistant/ui/showaiassistantcommand.js';export{AITabs}from'./aitabs/aitabs.js';function _0x398b(_0x324f8f,_0x2787f3){var _0x2209bf=_0x2209();return _0x398b=function(_0x398b62,_0x44825c){_0x398b62=_0x398b62-0x133;var _0xdeb704=_0x2209bf[_0x398b62];return _0xdeb704;},_0x398b(_0x324f8f,_0x2787f3);}function _0x2209(){var _0x363bfc=['119500TRGWem','14205951DEnIOn','517kQwzRR','336lysNtE','68579LGnKkk','8FAcXSZ','5QJOGNm','263994dqrQwU','14304540KYnMeH','33EAJFNh','209230JvWCBf','691108KzTawM'];_0x2209=function(){return _0x363bfc;};return _0x2209();}export{AIConnector}from'./aicore/aiconnector.js';export{createResizeButton}from'./aicore/utils/createresizebutton.js';export{AIChat}from'./aichat/aichat.js';export{AIChatController}from'./aichat/aichatcontroller.js';export{AIEditing}from'./aicore/aiediting.js';export{AIChatUI}from'./aichat/aichatui.js';export{AIEditorIntegration}from'./aieditorintegration/aieditorintegration.js';export{AIToggleButtonUI}from'./aieditorintegration/aitogglebutton/aitogglebuttonui.js';export{ToggleAICommand}from'./aieditorintegration/aitogglebutton/toggleaicommand.js';export{AIChatHistory}from'./aichathistory/aichathistory.js';export{AIChatHistoryController}from'./aichathistory/aichathistorycontroller.js';export{AIChatHistoryUI}from'./aichathistory/aichathistoryui.js';export{AIQuickActions}from'./aiquickactions/aiquickactions.js';export{AIQuickActionsUI,AIQuickActionType}from'./aiquickactions/aiquickactionsui.js';export{AIActions}from'./aiactions/aiactions.js';export{AIBalloon}from'./aiballoon/aiballoon.js';export{AIReviewMode}from'./aireviewmode/aireviewmode.js';export{AIReviewModeController}from'./aireviewmode/aireviewmodecontroller.js';export{AIReviewModeEditing}from'./aireviewmode/aireviewmodeediting.js';export{AIReviewModeUI}from'./aireviewmode/aireviewmodeui.js';export{AIReviewCheck}from'./aireviewmode/model/aireviewcheck.js';export{AIReviewCheckResult}from'./aireviewmode/model/aireviewcheckresult.js';export{AIReviewCheckRun}from'./aireviewmode/model/aireviewcheckrun.js';import'./augmentation.js';
|
|
@@ -144,7 +144,6 @@
|
|
|
144
144
|
&:disabled {
|
|
145
145
|
color: var(--ck-ai-button-primary-disabled-color);
|
|
146
146
|
background-color: var(--ck-ai-button-primary-disabled-background-color);
|
|
147
|
-
cursor: not-allowed;
|
|
148
147
|
}
|
|
149
148
|
}
|
|
150
149
|
|
|
@@ -166,7 +165,6 @@
|
|
|
166
165
|
color: var(--ck-ai-button-secondary-disabled-color);
|
|
167
166
|
background-color: var(--ck-ai-button-secondary-disabled-background-color);
|
|
168
167
|
border: 1px solid var(--ck-ai-button-secondary-disabled-border-color);
|
|
169
|
-
cursor: not-allowed;
|
|
170
168
|
}
|
|
171
169
|
}
|
|
172
170
|
}
|
|
@@ -188,6 +186,20 @@
|
|
|
188
186
|
}
|
|
189
187
|
}
|
|
190
188
|
|
|
189
|
+
.ck-ai-suggestion__container .ck.ck-ai-suggestion__error {
|
|
190
|
+
padding: var(--ck-spacing-large) !important;
|
|
191
|
+
height: 150px;
|
|
192
|
+
|
|
193
|
+
.ck-ai-suggestion__error-text {
|
|
194
|
+
background-color: hsla(15, 100%, 97%, 1);
|
|
195
|
+
border: 1px solid hsla(14, 100%, 68%, 1);
|
|
196
|
+
color: hsla(0, 0%, 20%, 1);
|
|
197
|
+
padding: var(--ck-spacing-medium);
|
|
198
|
+
display: block;
|
|
199
|
+
border-radius: var(--ck-border-radius);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
191
203
|
/*
|
|
192
204
|
* Classes used by the "fake visual selection" displayed in the content
|
|
193
205
|
* when the AI Balloon is open.
|
|
@@ -202,6 +214,7 @@
|
|
|
202
214
|
outline-color: var(--ck-color-ai-selection);
|
|
203
215
|
}
|
|
204
216
|
|
|
205
|
-
.ck.ck-
|
|
206
|
-
|
|
217
|
+
.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-ai-quick-actions-group-panel {
|
|
218
|
+
/* Override the height of the panel because the default height adds 2px scrollbar. */
|
|
219
|
+
max-height: 316px;
|
|
207
220
|
}
|
package/theme/aichat/aichat.css
CHANGED
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
--ck-ai-chat-color-text: hsla(263, 59%, 52%, 1);
|
|
28
28
|
--ck-ai-chat-color-icon: hsla(0, 0%, 44%, 1);
|
|
29
29
|
--ck-ai-chat-border-width: 1px;
|
|
30
|
+
--ck-ai-chat-suggestion-icon-default-color: hsl(0, 0%, 44%);
|
|
31
|
+
--ck-ai-chat-suggestion-border-hover-color: hsl(262, 64%, 78%);
|
|
30
32
|
|
|
31
33
|
--ck-ai-chat-button-active-background-color: hsla(262, 100%, 96%, 1);
|
|
32
34
|
--ck-ai-chat-button-active-color: hsla(263, 59%, 52%, 1);
|
|
@@ -201,15 +201,32 @@
|
|
|
201
201
|
margin: var(--ck-spacing-large) 0;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
.ck-ai-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
min-height:
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
color: var(--ck-ai-
|
|
204
|
+
.ck-ai-chat__start-conversation {
|
|
205
|
+
/* TODO: Extract this to a separate class to avoid duplication (same component and styling in Chat header) */
|
|
206
|
+
/* Custom value unlike the rest of editor UI (derived from --ck-font-size-base, defaults to 13px). */
|
|
207
|
+
font-size: 11.7px;
|
|
208
|
+
min-height: unset;
|
|
209
|
+
border: 1px solid var(--ck-ai-border-color-button);
|
|
210
|
+
border-radius: var(--ck-border-radius);
|
|
211
|
+
gap: var(--ck-spacing-small);
|
|
212
|
+
color: var(--ck-ai-chat-color-text);
|
|
213
|
+
|
|
214
|
+
&:hover {
|
|
215
|
+
background-color: var(--ck-ai-chat-button-active-background-color);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
& > .ck-button__label {
|
|
219
|
+
/* Custom value unlike the rest of editor UI. */
|
|
220
|
+
line-height: 1.4em;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
& > .ck-button__icon {
|
|
224
|
+
/* Custom value unlike the rest of editor UI (defaults to 14px). See how it's used in the icon.css */
|
|
225
|
+
--ck-icon-font-size: .632em;
|
|
226
|
+
|
|
227
|
+
margin-inline-end: 0;
|
|
228
|
+
color: var(--ck-ai-chat-color-text);
|
|
229
|
+
}
|
|
213
230
|
}
|
|
214
231
|
}
|
|
215
232
|
|
|
@@ -25,6 +25,14 @@
|
|
|
25
25
|
bottom: 0;
|
|
26
26
|
transform: translateY(50%);
|
|
27
27
|
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
& .ck-ai-interaction-counter {
|
|
31
|
+
color: var(--ck-ai-chat-color-icon);
|
|
32
|
+
letter-spacing: 2.6px;
|
|
33
|
+
font-family: var(--ck-ai-balloon-font-family);
|
|
34
|
+
}
|
|
35
|
+
|
|
28
36
|
& .ck.ck-button {
|
|
29
37
|
font-size: .9em;
|
|
30
38
|
font-family: var(--ck-ai-chat-font-family);
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
|
|
121
121
|
& .ck-button {
|
|
122
122
|
margin: 0;
|
|
123
|
-
|
|
123
|
+
color: var(--ck-ai-chat-suggestion-icon-default-color);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
}
|
|
@@ -130,6 +130,12 @@
|
|
|
130
130
|
padding-bottom: 0;
|
|
131
131
|
margin-bottom: var(--ck-spacing-medium);
|
|
132
132
|
}
|
|
133
|
+
|
|
134
|
+
&.ck.ck-content:not(:focus) {
|
|
135
|
+
/* Reset default padding and border of `ck-content` class. */
|
|
136
|
+
padding: 0;
|
|
137
|
+
border: 0;
|
|
138
|
+
}
|
|
133
139
|
}
|
|
134
140
|
|
|
135
141
|
&:hover .ck-ai-suggestion__body__content-part__title .ck-toolbar {
|
|
@@ -146,6 +152,12 @@
|
|
|
146
152
|
}
|
|
147
153
|
}
|
|
148
154
|
|
|
155
|
+
& .ck-ai-suggestion__body__content-part_pending:hover {
|
|
156
|
+
& .ck-toolbar .ck-icon {
|
|
157
|
+
color: var(--ck-ai-background-color-action-button);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
149
161
|
/* TODO: This is only a temporary implementation for preview demo purposes. Make it nice. */
|
|
150
162
|
& .ck-ai-suggestion__body__content-part_active:hover::before {
|
|
151
163
|
content: '';
|
|
@@ -153,7 +165,7 @@
|
|
|
153
165
|
left: calc((-1 * var(--ck-spacing-large)) - 1px);
|
|
154
166
|
top: 5px;
|
|
155
167
|
height: 100%;
|
|
156
|
-
border-left:
|
|
168
|
+
border-left: 3px solid var(--ck-ai-chat-suggestion-border-hover-color);
|
|
157
169
|
}
|
|
158
170
|
|
|
159
171
|
& .ck-ai-suggestion__body__content-part_active:last-child::before {
|
|
@@ -11,6 +11,12 @@
|
|
|
11
11
|
& > .ck-ai-review-mode__check-run-result-response {
|
|
12
12
|
overflow: hidden;
|
|
13
13
|
|
|
14
|
+
&.ck.ck-content:not(:focus) {
|
|
15
|
+
/* Reset default padding and border of `ck-content` class. */
|
|
16
|
+
padding: 0;
|
|
17
|
+
border: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
14
20
|
& > * {
|
|
15
21
|
white-space: normal;
|
|
16
22
|
}
|
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
&.ck-disabled {
|
|
57
57
|
color: var(--ck-ai-button-primary-disabled-color);
|
|
58
58
|
background-color: var(--ck-ai-button-primary-disabled-background-color);
|
|
59
|
-
cursor: not-allowed;
|
|
60
59
|
|
|
61
60
|
& > .ck.ck-button__label,
|
|
62
61
|
& > .ck-button__icon {
|
|
@@ -84,7 +83,6 @@
|
|
|
84
83
|
color: var(--ck-ai-button-secondary-disabled-color);
|
|
85
84
|
background-color: var(--ck-ai-button-secondary-disabled-background-color);
|
|
86
85
|
border: 1px solid var(--ck-ai-button-secondary-disabled-border-color);
|
|
87
|
-
cursor: not-allowed;
|
|
88
86
|
|
|
89
87
|
& > .ck.ck-button__label,
|
|
90
88
|
& > .ck-button__icon {
|
|
@@ -105,7 +103,6 @@
|
|
|
105
103
|
&:disabled,
|
|
106
104
|
&.ck-disabled {
|
|
107
105
|
color: var(--ck-ai-button-tertiary-disabled-text-color);
|
|
108
|
-
cursor: not-allowed;
|
|
109
106
|
|
|
110
107
|
& > .ck.ck-button__label,
|
|
111
108
|
& > .ck-button__icon {
|
|
@@ -134,7 +131,6 @@
|
|
|
134
131
|
&.ck-disabled {
|
|
135
132
|
color: var(--ck-ai-button-tertiary-filled-disabled-color);
|
|
136
133
|
background-color: var(--ck-ai-button-tertiary-filled-disabled-background-color);
|
|
137
|
-
cursor: not-allowed;
|
|
138
134
|
|
|
139
135
|
& > .ck.ck-button__label,
|
|
140
136
|
& > .ck-button__icon {
|