@ckeditor/ckeditor5-ai 0.0.0-nightly-20231115.0 → 0.0.0-nightly-20231116.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/translations/ar.po +13 -13
- package/lang/translations/bg.po +13 -13
- package/lang/translations/bn.po +13 -13
- package/lang/translations/ca.po +13 -13
- package/lang/translations/cs.po +13 -13
- package/lang/translations/da.po +13 -13
- package/lang/translations/de.po +13 -13
- package/lang/translations/el.po +13 -13
- package/lang/translations/es.po +13 -13
- package/lang/translations/et.po +13 -13
- package/lang/translations/fi.po +13 -13
- package/lang/translations/fr.po +13 -13
- package/lang/translations/he.po +13 -13
- package/lang/translations/hi.po +13 -13
- package/lang/translations/hu.po +13 -13
- package/lang/translations/id.po +13 -13
- package/lang/translations/it.po +13 -13
- package/lang/translations/ja.po +13 -13
- package/lang/translations/ko.po +13 -13
- package/lang/translations/lt.po +13 -13
- package/lang/translations/lv.po +13 -13
- package/lang/translations/ms.po +13 -13
- package/lang/translations/nl.po +13 -13
- package/lang/translations/no.po +13 -13
- package/lang/translations/pl.po +13 -13
- package/lang/translations/pt-br.po +13 -13
- package/lang/translations/pt.po +13 -13
- package/lang/translations/ro.po +13 -13
- package/lang/translations/ru.po +13 -13
- package/lang/translations/sk.po +13 -13
- package/lang/translations/sr.po +13 -13
- package/lang/translations/sv.po +13 -13
- package/lang/translations/th.po +13 -13
- package/lang/translations/tr.po +13 -13
- package/lang/translations/uk.po +13 -13
- package/lang/translations/vi.po +13 -13
- package/lang/translations/zh-cn.po +13 -13
- package/lang/translations/zh.po +13 -13
- package/package.json +3 -3
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/aiconnector.js +1 -1
- package/src/ui/aiassistantcontroller.js +1 -1
- package/src/ui/dropdown/aicommandslistview.js +1 -1
- package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
- package/src/ui/dropdown/labelwithhighlightview.js +1 -1
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/theme/ai-form.css +7 -2
package/lang/translations/vi.po
CHANGED
|
@@ -95,43 +95,43 @@ msgstr "Thơ ca"
|
|
|
95
95
|
|
|
96
96
|
msgctxt "AI command group label for translating the content."
|
|
97
97
|
msgid "Translate"
|
|
98
|
-
msgstr ""
|
|
98
|
+
msgstr "Dịch"
|
|
99
99
|
|
|
100
100
|
msgctxt "Label for the AI command. Example: (Translate to) English"
|
|
101
101
|
msgid "Translate to %0"
|
|
102
|
-
msgstr ""
|
|
102
|
+
msgstr "Dịch sang %0"
|
|
103
103
|
|
|
104
104
|
msgctxt "Translate to (English)"
|
|
105
105
|
msgid "English"
|
|
106
|
-
msgstr ""
|
|
106
|
+
msgstr "Tiếng Anh"
|
|
107
107
|
|
|
108
108
|
msgctxt "Translate to (Spanish)"
|
|
109
109
|
msgid "Spanish"
|
|
110
|
-
msgstr ""
|
|
110
|
+
msgstr "Tiếng Tây Ban Nha"
|
|
111
111
|
|
|
112
112
|
msgctxt "Translate to (German)"
|
|
113
113
|
msgid "German"
|
|
114
|
-
msgstr ""
|
|
114
|
+
msgstr "Tiếng Đức"
|
|
115
115
|
|
|
116
116
|
msgctxt "Translate to (Portuguese)"
|
|
117
117
|
msgid "Portuguese"
|
|
118
|
-
msgstr ""
|
|
118
|
+
msgstr "Tiếng Bồ Đào Nha"
|
|
119
119
|
|
|
120
120
|
msgctxt "Translate to (French)"
|
|
121
121
|
msgid "French"
|
|
122
|
-
msgstr ""
|
|
122
|
+
msgstr "Tiếng Pháp"
|
|
123
123
|
|
|
124
124
|
msgctxt "Translate to (Simplified Chinese)"
|
|
125
125
|
msgid "Simplified Chinese"
|
|
126
|
-
msgstr ""
|
|
126
|
+
msgstr "Tiếng Trung giản thể"
|
|
127
127
|
|
|
128
128
|
msgctxt "Translate to (Hindi)"
|
|
129
129
|
msgid "Hindi"
|
|
130
|
-
msgstr ""
|
|
130
|
+
msgstr "Tiếng Hindi"
|
|
131
131
|
|
|
132
132
|
msgctxt "Translate to (Arabic)"
|
|
133
133
|
msgid "Arabic"
|
|
134
|
-
msgstr ""
|
|
134
|
+
msgstr "Tiếng Ả Rập"
|
|
135
135
|
|
|
136
136
|
msgctxt "The heading element name displayed in the AI balloon and the button tooltip that opens the balloon."
|
|
137
137
|
msgid "AI Assistant"
|
|
@@ -211,15 +211,15 @@ msgstr "Chèn"
|
|
|
211
211
|
|
|
212
212
|
msgctxt "Error message displayed when the authorization request fails."
|
|
213
213
|
msgid "AI_ERROR_AUTH_REQUEST"
|
|
214
|
-
msgstr ""
|
|
214
|
+
msgstr "Yêu cầu cấp quyền thất bại"
|
|
215
215
|
|
|
216
216
|
msgctxt "Error message displayed when the content selected for AI processing is too long"
|
|
217
217
|
msgid "AI_ERROR_CONTEXT_LENGTH"
|
|
218
|
-
msgstr ""
|
|
218
|
+
msgstr "Nội dung đã chọn quá dài"
|
|
219
219
|
|
|
220
220
|
msgctxt "Error message displayed when a request is abusive, harmful or hateful and was rejected due to moderation rules."
|
|
221
221
|
msgid "AI_ERROR_MODERATION"
|
|
222
|
-
msgstr ""
|
|
222
|
+
msgstr "Truy vấn được yêu cầu không tuân thủ quy tắc kiểm duyệt"
|
|
223
223
|
|
|
224
224
|
msgctxt "Generic error message displayed when the request failed for unspecified reason."
|
|
225
225
|
msgid "AI_ERROR_FAILED"
|
|
@@ -95,43 +95,43 @@ msgstr "诗意"
|
|
|
95
95
|
|
|
96
96
|
msgctxt "AI command group label for translating the content."
|
|
97
97
|
msgid "Translate"
|
|
98
|
-
msgstr ""
|
|
98
|
+
msgstr "翻译"
|
|
99
99
|
|
|
100
100
|
msgctxt "Label for the AI command. Example: (Translate to) English"
|
|
101
101
|
msgid "Translate to %0"
|
|
102
|
-
msgstr ""
|
|
102
|
+
msgstr "翻译为%0"
|
|
103
103
|
|
|
104
104
|
msgctxt "Translate to (English)"
|
|
105
105
|
msgid "English"
|
|
106
|
-
msgstr ""
|
|
106
|
+
msgstr "英语"
|
|
107
107
|
|
|
108
108
|
msgctxt "Translate to (Spanish)"
|
|
109
109
|
msgid "Spanish"
|
|
110
|
-
msgstr ""
|
|
110
|
+
msgstr "西班牙语"
|
|
111
111
|
|
|
112
112
|
msgctxt "Translate to (German)"
|
|
113
113
|
msgid "German"
|
|
114
|
-
msgstr ""
|
|
114
|
+
msgstr "德语"
|
|
115
115
|
|
|
116
116
|
msgctxt "Translate to (Portuguese)"
|
|
117
117
|
msgid "Portuguese"
|
|
118
|
-
msgstr ""
|
|
118
|
+
msgstr "葡萄牙语"
|
|
119
119
|
|
|
120
120
|
msgctxt "Translate to (French)"
|
|
121
121
|
msgid "French"
|
|
122
|
-
msgstr ""
|
|
122
|
+
msgstr "法语"
|
|
123
123
|
|
|
124
124
|
msgctxt "Translate to (Simplified Chinese)"
|
|
125
125
|
msgid "Simplified Chinese"
|
|
126
|
-
msgstr ""
|
|
126
|
+
msgstr "简体中文"
|
|
127
127
|
|
|
128
128
|
msgctxt "Translate to (Hindi)"
|
|
129
129
|
msgid "Hindi"
|
|
130
|
-
msgstr ""
|
|
130
|
+
msgstr "印地语"
|
|
131
131
|
|
|
132
132
|
msgctxt "Translate to (Arabic)"
|
|
133
133
|
msgid "Arabic"
|
|
134
|
-
msgstr ""
|
|
134
|
+
msgstr "阿拉伯语"
|
|
135
135
|
|
|
136
136
|
msgctxt "The heading element name displayed in the AI balloon and the button tooltip that opens the balloon."
|
|
137
137
|
msgid "AI Assistant"
|
|
@@ -211,15 +211,15 @@ msgstr "插入"
|
|
|
211
211
|
|
|
212
212
|
msgctxt "Error message displayed when the authorization request fails."
|
|
213
213
|
msgid "AI_ERROR_AUTH_REQUEST"
|
|
214
|
-
msgstr ""
|
|
214
|
+
msgstr "授权请求失败"
|
|
215
215
|
|
|
216
216
|
msgctxt "Error message displayed when the content selected for AI processing is too long"
|
|
217
217
|
msgid "AI_ERROR_CONTEXT_LENGTH"
|
|
218
|
-
msgstr ""
|
|
218
|
+
msgstr "选择的内容过长"
|
|
219
219
|
|
|
220
220
|
msgctxt "Error message displayed when a request is abusive, harmful or hateful and was rejected due to moderation rules."
|
|
221
221
|
msgid "AI_ERROR_MODERATION"
|
|
222
|
-
msgstr ""
|
|
222
|
+
msgstr "请求的查询不符合审查规则"
|
|
223
223
|
|
|
224
224
|
msgctxt "Generic error message displayed when the request failed for unspecified reason."
|
|
225
225
|
msgid "AI_ERROR_FAILED"
|
package/lang/translations/zh.po
CHANGED
|
@@ -95,43 +95,43 @@ msgstr "詩意"
|
|
|
95
95
|
|
|
96
96
|
msgctxt "AI command group label for translating the content."
|
|
97
97
|
msgid "Translate"
|
|
98
|
-
msgstr ""
|
|
98
|
+
msgstr "翻譯"
|
|
99
99
|
|
|
100
100
|
msgctxt "Label for the AI command. Example: (Translate to) English"
|
|
101
101
|
msgid "Translate to %0"
|
|
102
|
-
msgstr ""
|
|
102
|
+
msgstr "翻譯為%0"
|
|
103
103
|
|
|
104
104
|
msgctxt "Translate to (English)"
|
|
105
105
|
msgid "English"
|
|
106
|
-
msgstr ""
|
|
106
|
+
msgstr "英文"
|
|
107
107
|
|
|
108
108
|
msgctxt "Translate to (Spanish)"
|
|
109
109
|
msgid "Spanish"
|
|
110
|
-
msgstr ""
|
|
110
|
+
msgstr "西班牙文"
|
|
111
111
|
|
|
112
112
|
msgctxt "Translate to (German)"
|
|
113
113
|
msgid "German"
|
|
114
|
-
msgstr ""
|
|
114
|
+
msgstr "德文"
|
|
115
115
|
|
|
116
116
|
msgctxt "Translate to (Portuguese)"
|
|
117
117
|
msgid "Portuguese"
|
|
118
|
-
msgstr ""
|
|
118
|
+
msgstr "葡萄牙文"
|
|
119
119
|
|
|
120
120
|
msgctxt "Translate to (French)"
|
|
121
121
|
msgid "French"
|
|
122
|
-
msgstr ""
|
|
122
|
+
msgstr "法文"
|
|
123
123
|
|
|
124
124
|
msgctxt "Translate to (Simplified Chinese)"
|
|
125
125
|
msgid "Simplified Chinese"
|
|
126
|
-
msgstr ""
|
|
126
|
+
msgstr "簡體中文"
|
|
127
127
|
|
|
128
128
|
msgctxt "Translate to (Hindi)"
|
|
129
129
|
msgid "Hindi"
|
|
130
|
-
msgstr ""
|
|
130
|
+
msgstr "印地文"
|
|
131
131
|
|
|
132
132
|
msgctxt "Translate to (Arabic)"
|
|
133
133
|
msgid "Arabic"
|
|
134
|
-
msgstr ""
|
|
134
|
+
msgstr "阿拉伯文"
|
|
135
135
|
|
|
136
136
|
msgctxt "The heading element name displayed in the AI balloon and the button tooltip that opens the balloon."
|
|
137
137
|
msgid "AI Assistant"
|
|
@@ -211,15 +211,15 @@ msgstr "插入"
|
|
|
211
211
|
|
|
212
212
|
msgctxt "Error message displayed when the authorization request fails."
|
|
213
213
|
msgid "AI_ERROR_AUTH_REQUEST"
|
|
214
|
-
msgstr ""
|
|
214
|
+
msgstr "授權請求失敗"
|
|
215
215
|
|
|
216
216
|
msgctxt "Error message displayed when the content selected for AI processing is too long"
|
|
217
217
|
msgid "AI_ERROR_CONTEXT_LENGTH"
|
|
218
|
-
msgstr ""
|
|
218
|
+
msgstr "選取內容過長"
|
|
219
219
|
|
|
220
220
|
msgctxt "Error message displayed when a request is abusive, harmful or hateful and was rejected due to moderation rules."
|
|
221
221
|
msgid "AI_ERROR_MODERATION"
|
|
222
|
-
msgstr ""
|
|
222
|
+
msgstr "提交的要求未通過審核規則"
|
|
223
223
|
|
|
224
224
|
msgctxt "Generic error message displayed when the request failed for unspecified reason."
|
|
225
225
|
msgid "AI_ERROR_FAILED"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ai",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20231116.0",
|
|
4
4
|
"description": "AI-powered features for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"ckeditor5": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
26
|
+
"ckeditor5": "0.0.0-nightly-20231116.0",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20231116.0",
|
|
28
28
|
"lodash-es": "4.17.21"
|
|
29
29
|
},
|
|
30
30
|
"main": "src/index.js",
|
package/src/aiassistant.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3b89=['define','business','commands','casual','set','summarize','Change\x20tone','continue','destroy','English','Casual','Translate\x20the\x20content\x20to\x20English\x20language.','aiLicenseKeyTrial','translateEnglish','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Professional','Hindi','Change\x20style','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20ai\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','Simplify\x20language','translate','aiAssistant.extraCommandGroups','Translate','changeTone','changeStyle','Simplified\x20Chinese','aiLicenseKeyInvalid','_licenseKeyCheckInterval','French','legal','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','ai-trial-license-key-reached-limit-changes','makeLonger','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','pluginName','Legal','info','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','aiLicenseKeyValid','Translate\x20the\x20content\x20to\x20Hindi\x20language.','confident','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','direct','Improve\x20writing','translatePortuguese','generate','Make\x20longer','forEach','Friendly','Confident','professional','Translate\x20to\x20%0','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Direct','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Poetic','editOrReview','AIAssistant','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','translateHindi','groupId','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','concat','simplifyLanguage','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','translateChinese','ai-invalid-license-key','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','aiAssistant.removeCommands','journalism','aiLicenseKeyTrialLimit:operations','translateFrench','Continue','friendly','Edit\x20or\x20review','Make\x20shorter','config','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Business','find','filter','push','Portuguese','translateArabic','get','German','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','aiAssistant.commands','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Translate\x20the\x20content\x20to\x20French\x20language.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','locale','translateGerman','poetic','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','translateSpanish','improveWriting','Journalism','Spanish','licenseKey','Summarize','Translate\x20the\x20content\x20to\x20German\x20language.'];(function(_0x41ce80,_0x3b8963){const _0x1f062f=function(_0x303e4b){while(--_0x303e4b){_0x41ce80['push'](_0x41ce80['shift']());}};_0x1f062f(++_0x3b8963);}(_0x3b89,0x75));const _0x1f06=function(_0x41ce80,_0x3b8963){_0x41ce80=_0x41ce80-0x0;let _0x1f062f=_0x3b89[_0x41ce80];return _0x1f062f;};import{CKEditorError as _0x50586b}from'ckeditor5/src/utils';import{Plugin as _0x303de5}from'ckeditor5/src/core';import _0x5bb8e3 from'./aiassistantui';import _0x2f6235 from'./aiassistantediting';import _0x3c66f7 from'./aiconnector';import{getTranslation as _0x1e26b2}from'./utils/common-translations';export const getDefaultCommands=_0x1cc767=>[{'groupId':_0x1f06('0x2c'),'groupLabel':_0x1e26b2(_0x1cc767,'Edit\x20or\x20review'),'commands':[{'id':_0x1f06('0x55'),'label':_0x1e26b2(_0x1cc767,_0x1f06('0x1e')),'prompt':_0x1f06('0x4c')},{'id':'makeShorter','label':_0x1e26b2(_0x1cc767,_0x1f06('0x3f')),'prompt':'Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.'},{'id':_0x1f06('0x13'),'label':_0x1e26b2(_0x1cc767,_0x1f06('0x21')),'prompt':_0x1f06('0x41')},{'id':_0x1f06('0x33'),'label':_0x1e26b2(_0x1cc767,_0x1f06('0x6')),'prompt':_0x1f06('0x29')}]},{'groupId':'generate','groupLabel':_0x1e26b2(_0x1cc767,'Generate\x20from\x20selection'),'commands':[{'id':'summarize','label':_0x1e26b2(_0x1cc767,_0x1f06('0x59')),'prompt':_0x1f06('0x34')},{'id':_0x1f06('0x62'),'label':_0x1e26b2(_0x1cc767,_0x1f06('0x3c')),'prompt':'Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.'}]},{'groupId':'changeTone','groupLabel':_0x1e26b2(_0x1cc767,'Change\x20tone'),'commands':[{'id':_0x1f06('0x25'),'label':_0x1e26b2(_0x1cc767,_0x1f06('0x2')),'prompt':_0x1f06('0x53')},{'id':_0x1f06('0x5e'),'label':_0x1e26b2(_0x1cc767,_0x1f06('0x65')),'prompt':_0x1f06('0x4d')},{'id':_0x1f06('0x1d'),'label':_0x1e26b2(_0x1cc767,_0x1f06('0x28')),'prompt':_0x1f06('0x27')},{'id':_0x1f06('0x1b'),'label':_0x1e26b2(_0x1cc767,_0x1f06('0x24')),'prompt':_0x1f06('0x2e')},{'id':_0x1f06('0x3d'),'label':_0x1e26b2(_0x1cc767,_0x1f06('0x23')),'prompt':_0x1f06('0x37')}]},{'groupId':_0x1f06('0xb'),'groupLabel':_0x1e26b2(_0x1cc767,_0x1f06('0x4')),'commands':[{'id':_0x1f06('0x5c'),'label':_0x1e26b2(_0x1cc767,_0x1f06('0x42')),'prompt':_0x1f06('0x31')},{'id':_0x1f06('0x10'),'label':_0x1e26b2(_0x1cc767,_0x1f06('0x16')),'prompt':_0x1f06('0x1')},{'id':_0x1f06('0x39'),'label':_0x1e26b2(_0x1cc767,_0x1f06('0x56')),'prompt':_0x1f06('0x11')},{'id':'poetic','label':_0x1e26b2(_0x1cc767,'Poetic'),'prompt':_0x1f06('0x4a')}]},{'groupId':_0x1f06('0x7'),'groupLabel':_0x1e26b2(_0x1cc767,'Translate'),'commands':[{'id':_0x1f06('0x0'),'label':_0x1e26b2(_0x1cc767,_0x1f06('0x26'),[_0x1e26b2(_0x1cc767,_0x1f06('0x64'))]),'prompt':_0x1f06('0x66')},{'id':_0x1f06('0x54'),'label':_0x1e26b2(_0x1cc767,_0x1f06('0x26'),[_0x1e26b2(_0x1cc767,_0x1f06('0x57'))]),'prompt':_0x1f06('0x4f')},{'id':_0x1f06('0x1f'),'label':_0x1e26b2(_0x1cc767,_0x1f06('0x26'),[_0x1e26b2(_0x1cc767,_0x1f06('0x46'))]),'prompt':_0x1f06('0x14')},{'id':_0x1f06('0x51'),'label':_0x1e26b2(_0x1cc767,_0x1f06('0x26'),[_0x1e26b2(_0x1cc767,_0x1f06('0x49'))]),'prompt':'Translate\x20the\x20content\x20to\x20German\x20language.'},{'id':_0x1f06('0x3b'),'label':_0x1e26b2(_0x1cc767,_0x1f06('0x26'),[_0x1e26b2(_0x1cc767,_0x1f06('0xf'))]),'prompt':_0x1f06('0x4e')},{'id':_0x1f06('0x35'),'label':_0x1e26b2(_0x1cc767,_0x1f06('0x26'),[_0x1e26b2(_0x1cc767,_0x1f06('0xc'))]),'prompt':_0x1f06('0x18')},{'id':'translateHindi','label':_0x1e26b2(_0x1cc767,_0x1f06('0x26'),[_0x1e26b2(_0x1cc767,'Hindi')]),'prompt':'Translate\x20the\x20content\x20to\x20Hindi\x20language.'},{'id':_0x1f06('0x47'),'label':_0x1e26b2(_0x1cc767,'Translate\x20to\x20%0',[_0x1e26b2(_0x1cc767,'Arabic')]),'prompt':_0x1f06('0x2a')}]}];export default class l extends _0x303de5{static get['requires'](){return[_0x5bb8e3,_0x2f6235,_0x3c66f7];}static get[_0x1f06('0x15')](){return _0x1f06('0x2d');}constructor(_0x37f0f6){super(_0x37f0f6);const _0xac5545=_0x37f0f6['config'];var _0x4f1dd2;_0xac5545['define'](_0x1f06('0x4b'),(_0x4f1dd2=_0x37f0f6[_0x1f06('0x50')],[{'groupId':_0x1f06('0x2c'),'groupLabel':_0x1e26b2(_0x4f1dd2,_0x1f06('0x3e')),'commands':[{'id':_0x1f06('0x55'),'label':_0x1e26b2(_0x4f1dd2,_0x1f06('0x1e')),'prompt':_0x1f06('0x4c')},{'id':'makeShorter','label':_0x1e26b2(_0x4f1dd2,_0x1f06('0x3f')),'prompt':_0x1f06('0x1c')},{'id':_0x1f06('0x13'),'label':_0x1e26b2(_0x4f1dd2,'Make\x20longer'),'prompt':_0x1f06('0x41')},{'id':_0x1f06('0x33'),'label':_0x1e26b2(_0x4f1dd2,_0x1f06('0x6')),'prompt':_0x1f06('0x29')}]},{'groupId':_0x1f06('0x20'),'groupLabel':_0x1e26b2(_0x4f1dd2,'Generate\x20from\x20selection'),'commands':[{'id':_0x1f06('0x60'),'label':_0x1e26b2(_0x4f1dd2,'Summarize'),'prompt':_0x1f06('0x34')},{'id':_0x1f06('0x62'),'label':_0x1e26b2(_0x4f1dd2,_0x1f06('0x3c')),'prompt':'Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.'}]},{'groupId':_0x1f06('0xa'),'groupLabel':_0x1e26b2(_0x4f1dd2,_0x1f06('0x61')),'commands':[{'id':_0x1f06('0x25'),'label':_0x1e26b2(_0x4f1dd2,'Professional'),'prompt':_0x1f06('0x53')},{'id':'casual','label':_0x1e26b2(_0x4f1dd2,_0x1f06('0x65')),'prompt':_0x1f06('0x4d')},{'id':_0x1f06('0x1d'),'label':_0x1e26b2(_0x4f1dd2,'Direct'),'prompt':'Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.'},{'id':'confident','label':_0x1e26b2(_0x4f1dd2,'Confident'),'prompt':_0x1f06('0x2e')},{'id':_0x1f06('0x3d'),'label':_0x1e26b2(_0x4f1dd2,_0x1f06('0x23')),'prompt':_0x1f06('0x37')}]},{'groupId':_0x1f06('0xb'),'groupLabel':_0x1e26b2(_0x4f1dd2,_0x1f06('0x4')),'commands':[{'id':'business','label':_0x1e26b2(_0x4f1dd2,_0x1f06('0x42')),'prompt':_0x1f06('0x31')},{'id':_0x1f06('0x10'),'label':_0x1e26b2(_0x4f1dd2,'Legal'),'prompt':_0x1f06('0x1')},{'id':_0x1f06('0x39'),'label':_0x1e26b2(_0x4f1dd2,_0x1f06('0x56')),'prompt':_0x1f06('0x11')},{'id':_0x1f06('0x52'),'label':_0x1e26b2(_0x4f1dd2,_0x1f06('0x2b')),'prompt':_0x1f06('0x4a')}]},{'groupId':_0x1f06('0x7'),'groupLabel':_0x1e26b2(_0x4f1dd2,_0x1f06('0x9')),'commands':[{'id':'translateEnglish','label':_0x1e26b2(_0x4f1dd2,_0x1f06('0x26'),[_0x1e26b2(_0x4f1dd2,'English')]),'prompt':_0x1f06('0x66')},{'id':_0x1f06('0x54'),'label':_0x1e26b2(_0x4f1dd2,_0x1f06('0x26'),[_0x1e26b2(_0x4f1dd2,_0x1f06('0x57'))]),'prompt':_0x1f06('0x4f')},{'id':_0x1f06('0x1f'),'label':_0x1e26b2(_0x4f1dd2,'Translate\x20to\x20%0',[_0x1e26b2(_0x4f1dd2,_0x1f06('0x46'))]),'prompt':_0x1f06('0x14')},{'id':_0x1f06('0x51'),'label':_0x1e26b2(_0x4f1dd2,'Translate\x20to\x20%0',[_0x1e26b2(_0x4f1dd2,'German')]),'prompt':_0x1f06('0x5a')},{'id':_0x1f06('0x3b'),'label':_0x1e26b2(_0x4f1dd2,_0x1f06('0x26'),[_0x1e26b2(_0x4f1dd2,_0x1f06('0xf'))]),'prompt':_0x1f06('0x4e')},{'id':'translateChinese','label':_0x1e26b2(_0x4f1dd2,_0x1f06('0x26'),[_0x1e26b2(_0x4f1dd2,_0x1f06('0xc'))]),'prompt':_0x1f06('0x18')},{'id':_0x1f06('0x2f'),'label':_0x1e26b2(_0x4f1dd2,_0x1f06('0x26'),[_0x1e26b2(_0x4f1dd2,_0x1f06('0x3'))]),'prompt':_0x1f06('0x1a')},{'id':_0x1f06('0x47'),'label':_0x1e26b2(_0x4f1dd2,_0x1f06('0x26'),[_0x1e26b2(_0x4f1dd2,'Arabic')]),'prompt':'Translate\x20the\x20content\x20to\x20Arabic\x20language.'}]}])),_0xac5545[_0x1f06('0x5b')]('aiAssistant.extraCommandGroups',[]),_0xac5545['define'](_0x1f06('0x38'),[]);const _0x2f1995=_0xac5545[_0x1f06('0x48')](_0x1f06('0x4b')),_0x772b05=_0xac5545[_0x1f06('0x48')](_0x1f06('0x8')),_0x11d44c=_0xac5545[_0x1f06('0x48')]('aiAssistant.removeCommands');_0x772b05[_0x1f06('0x22')](_0x274762=>{const _0x5e6694=_0x2f1995[_0x1f06('0x43')](_0x44ec52=>_0x44ec52[_0x1f06('0x30')]===_0x274762[_0x1f06('0x30')]);_0x5e6694?_0x5e6694[_0x1f06('0x5d')]=_0x5e6694[_0x1f06('0x5d')][_0x1f06('0x32')](_0x274762['commands']):_0x2f1995[_0x1f06('0x45')](_0x274762);}),_0x2f1995[_0x1f06('0x22')](_0x3a4aee=>{_0x3a4aee['commands']=_0x3a4aee[_0x1f06('0x5d')][_0x1f06('0x44')](_0x2ac237=>!_0x11d44c['includes'](_0x2ac237['id']));}),_0xac5545[_0x1f06('0x5f')](_0x1f06('0x4b'),_0x2f1995);}['init'](){const _0x326967=this['editor'];this[_0x1f06('0x58')]=_0x326967[_0x1f06('0x40')]['get'](_0x1f06('0x58')),this[_0x1f06('0xe')]=setInterval(()=>{let _0x241bbe;for(const _0x904cc7 in _0x326967){const _0x36581e=_0x904cc7,_0x2b7475=_0x326967[_0x36581e];if(_0x1f06('0x67')===_0x2b7475||_0x1f06('0xd')===_0x2b7475||'aiLicenseKeyValid'===_0x2b7475||_0x1f06('0x3a')===_0x2b7475){delete _0x326967[_0x36581e],_0x241bbe=_0x2b7475;break;}}if('aiLicenseKeyInvalid'===_0x241bbe)throw clearInterval(this[_0x1f06('0xe')]),new _0x50586b(_0x1f06('0x36'),null);if(_0x1f06('0x67')===_0x241bbe&&console[_0x1f06('0x17')](_0x1f06('0x5')),_0x1f06('0x3a')===_0x241bbe)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x50586b(_0x1f06('0x12'),null);_0x1f06('0x19')===_0x241bbe&&clearInterval(this[_0x1f06('0xe')]);},0x3e8);}[_0x1f06('0x63')](){this[_0x1f06('0xe')]&&clearInterval(this[_0x1f06('0xe')]);}}
|
|
23
|
+
const _0x3299=['Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Portuguese','Translate\x20the\x20content\x20to\x20Hindi\x20language.','French','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','AIAssistant','aiLicenseKeyInvalid','Simplify\x20language','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','define','translateHindi','ai-invalid-license-key','Translate\x20the\x20content\x20to\x20French\x20language.','confident','locale','get','translatePortuguese','makeLonger','groupId','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Business','Change\x20tone','makeShorter','config','translateGerman','Casual','Edit\x20or\x20review','filter','translateEnglish','aiAssistant.removeCommands','init','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','find','changeTone','Journalism','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Friendly','legal','translateArabic','translateChinese','Continue','translate','professional','simplifyLanguage','concat','business','Translate\x20the\x20content\x20to\x20German\x20language.','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Improve\x20writing','aiLicenseKeyTrialLimit:operations','Summarize','English','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20ai\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','translateSpanish','casual','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','friendly','Poetic','info','aiLicenseKeyValid','commands','translateFrench','German','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Translate\x20to\x20%0','Confident','Arabic','aiLicenseKeyTrial','Make\x20longer','Translate\x20the\x20content\x20to\x20English\x20language.','journalism','Direct','poetic','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','licenseKey','Generate\x20from\x20selection','editOrReview','aiAssistant.commands','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Translate','Hindi','Make\x20shorter','_licenseKeyCheckInterval','changeStyle','push','improveWriting','Legal','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Professional','generate','forEach','set','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Spanish','editor','aiAssistant.extraCommandGroups','direct','continue','requires','summarize','ai-trial-license-key-reached-limit-changes'];(function(_0xc565d,_0x329971){const _0x948163=function(_0x3b2044){while(--_0x3b2044){_0xc565d['push'](_0xc565d['shift']());}};_0x948163(++_0x329971);}(_0x3299,0x67));const _0x9481=function(_0xc565d,_0x329971){_0xc565d=_0xc565d-0x0;let _0x948163=_0x3299[_0xc565d];return _0x948163;};import{CKEditorError as _0x1f4be6}from'ckeditor5/src/utils';import{Plugin as _0x36d2fc}from'ckeditor5/src/core';import _0x16df90 from'./aiassistantui';import _0x3c17e5 from'./aiassistantediting';import _0xa0873c from'./aiconnector';import{getTranslation as _0x3362fa}from'./utils/common-translations';export const getDefaultCommands=_0x2882c1=>[{'groupId':_0x9481('0x56'),'groupLabel':_0x3362fa(_0x2882c1,_0x9481('0x1f')),'commands':[{'id':_0x9481('0x5f'),'label':_0x3362fa(_0x2882c1,'Improve\x20writing'),'prompt':_0x9481('0x5')},{'id':_0x9481('0x1b'),'label':_0x3362fa(_0x2882c1,_0x9481('0x5b')),'prompt':'Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.'},{'id':_0x9481('0x16'),'label':_0x3362fa(_0x2882c1,_0x9481('0x4e')),'prompt':_0x9481('0x34')},{'id':_0x9481('0x30'),'label':_0x3362fa(_0x2882c1,'Simplify\x20language'),'prompt':_0x9481('0x3e')}]},{'groupId':_0x9481('0x63'),'groupLabel':_0x3362fa(_0x2882c1,_0x9481('0x55')),'commands':[{'id':_0x9481('0x2'),'label':_0x3362fa(_0x2882c1,_0x9481('0x38')),'prompt':_0x9481('0x18')},{'id':_0x9481('0x0'),'label':_0x3362fa(_0x2882c1,_0x9481('0x2d')),'prompt':_0x9481('0x61')}]},{'groupId':_0x9481('0x26'),'groupLabel':_0x3362fa(_0x2882c1,_0x9481('0x1a')),'commands':[{'id':_0x9481('0x2f'),'label':_0x3362fa(_0x2882c1,_0x9481('0x62')),'prompt':_0x9481('0x35')},{'id':_0x9481('0x3d'),'label':_0x3362fa(_0x2882c1,'Casual'),'prompt':_0x9481('0x53')},{'id':_0x9481('0x6a'),'label':_0x3362fa(_0x2882c1,'Direct'),'prompt':_0x9481('0x48')},{'id':_0x9481('0x12'),'label':_0x3362fa(_0x2882c1,'Confident'),'prompt':_0x9481('0x47')},{'id':'friendly','label':_0x3362fa(_0x2882c1,_0x9481('0x29')),'prompt':_0x9481('0x3b')}]},{'groupId':_0x9481('0x5d'),'groupLabel':_0x3362fa(_0x2882c1,'Change\x20style'),'commands':[{'id':'business','label':_0x3362fa(_0x2882c1,_0x9481('0x19')),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.'},{'id':_0x9481('0x2a'),'label':_0x3362fa(_0x2882c1,_0x9481('0x60')),'prompt':_0x9481('0x9')},{'id':_0x9481('0x50'),'label':_0x3362fa(_0x2882c1,_0x9481('0x27')),'prompt':_0x9481('0x58')},{'id':_0x9481('0x52'),'label':_0x3362fa(_0x2882c1,_0x9481('0x40')),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.'}]},{'groupId':_0x9481('0x2e'),'groupLabel':_0x3362fa(_0x2882c1,_0x9481('0x59')),'commands':[{'id':_0x9481('0x21'),'label':_0x3362fa(_0x2882c1,_0x9481('0x4a'),[_0x3362fa(_0x2882c1,_0x9481('0x39'))]),'prompt':_0x9481('0x4f')},{'id':_0x9481('0x3c'),'label':_0x3362fa(_0x2882c1,'Translate\x20to\x20%0',[_0x3362fa(_0x2882c1,_0x9481('0x67'))]),'prompt':_0x9481('0x49')},{'id':_0x9481('0x15'),'label':_0x3362fa(_0x2882c1,_0x9481('0x4a'),[_0x3362fa(_0x2882c1,_0x9481('0x6'))]),'prompt':'Translate\x20the\x20content\x20to\x20Portuguese\x20language.'},{'id':_0x9481('0x1d'),'label':_0x3362fa(_0x2882c1,_0x9481('0x4a'),[_0x3362fa(_0x2882c1,_0x9481('0x45'))]),'prompt':_0x9481('0x33')},{'id':'translateFrench','label':_0x3362fa(_0x2882c1,'Translate\x20to\x20%0',[_0x3362fa(_0x2882c1,_0x9481('0x8'))]),'prompt':_0x9481('0x11')},{'id':'translateChinese','label':_0x3362fa(_0x2882c1,_0x9481('0x4a'),[_0x3362fa(_0x2882c1,'Simplified\x20Chinese')]),'prompt':'Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.'},{'id':_0x9481('0xf'),'label':_0x3362fa(_0x2882c1,_0x9481('0x4a'),[_0x3362fa(_0x2882c1,_0x9481('0x5a'))]),'prompt':'Translate\x20the\x20content\x20to\x20Hindi\x20language.'},{'id':_0x9481('0x2b'),'label':_0x3362fa(_0x2882c1,_0x9481('0x4a'),[_0x3362fa(_0x2882c1,_0x9481('0x4c'))]),'prompt':_0x9481('0x66')}]}];export default class l extends _0x36d2fc{static get[_0x9481('0x1')](){return[_0x16df90,_0x3c17e5,_0xa0873c];}static get['pluginName'](){return _0x9481('0xa');}constructor(_0x4e96bd){super(_0x4e96bd);const _0x1276aa=_0x4e96bd[_0x9481('0x1c')];var _0x4d74ba;_0x1276aa['define'](_0x9481('0x57'),(_0x4d74ba=_0x4e96bd[_0x9481('0x13')],[{'groupId':_0x9481('0x56'),'groupLabel':_0x3362fa(_0x4d74ba,_0x9481('0x1f')),'commands':[{'id':_0x9481('0x5f'),'label':_0x3362fa(_0x4d74ba,_0x9481('0x36')),'prompt':_0x9481('0x5')},{'id':_0x9481('0x1b'),'label':_0x3362fa(_0x4d74ba,_0x9481('0x5b')),'prompt':_0x9481('0x24')},{'id':_0x9481('0x16'),'label':_0x3362fa(_0x4d74ba,_0x9481('0x4e')),'prompt':'Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.'},{'id':_0x9481('0x30'),'label':_0x3362fa(_0x4d74ba,_0x9481('0xc')),'prompt':'Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.'}]},{'groupId':_0x9481('0x63'),'groupLabel':_0x3362fa(_0x4d74ba,_0x9481('0x55')),'commands':[{'id':_0x9481('0x2'),'label':_0x3362fa(_0x4d74ba,_0x9481('0x38')),'prompt':_0x9481('0x18')},{'id':'continue','label':_0x3362fa(_0x4d74ba,'Continue'),'prompt':_0x9481('0x61')}]},{'groupId':'changeTone','groupLabel':_0x3362fa(_0x4d74ba,'Change\x20tone'),'commands':[{'id':_0x9481('0x2f'),'label':_0x3362fa(_0x4d74ba,_0x9481('0x62')),'prompt':_0x9481('0x35')},{'id':_0x9481('0x3d'),'label':_0x3362fa(_0x4d74ba,_0x9481('0x1e')),'prompt':'Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.'},{'id':_0x9481('0x6a'),'label':_0x3362fa(_0x4d74ba,_0x9481('0x51')),'prompt':'Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.'},{'id':'confident','label':_0x3362fa(_0x4d74ba,_0x9481('0x4b')),'prompt':'Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.'},{'id':_0x9481('0x3f'),'label':_0x3362fa(_0x4d74ba,'Friendly'),'prompt':_0x9481('0x3b')}]},{'groupId':_0x9481('0x5d'),'groupLabel':_0x3362fa(_0x4d74ba,'Change\x20style'),'commands':[{'id':_0x9481('0x32'),'label':_0x3362fa(_0x4d74ba,'Business'),'prompt':_0x9481('0xd')},{'id':_0x9481('0x2a'),'label':_0x3362fa(_0x4d74ba,_0x9481('0x60')),'prompt':_0x9481('0x9')},{'id':_0x9481('0x50'),'label':_0x3362fa(_0x4d74ba,'Journalism'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.'},{'id':_0x9481('0x52'),'label':_0x3362fa(_0x4d74ba,_0x9481('0x40')),'prompt':_0x9481('0x46')}]},{'groupId':_0x9481('0x2e'),'groupLabel':_0x3362fa(_0x4d74ba,'Translate'),'commands':[{'id':_0x9481('0x21'),'label':_0x3362fa(_0x4d74ba,'Translate\x20to\x20%0',[_0x3362fa(_0x4d74ba,_0x9481('0x39'))]),'prompt':_0x9481('0x4f')},{'id':'translateSpanish','label':_0x3362fa(_0x4d74ba,_0x9481('0x4a'),[_0x3362fa(_0x4d74ba,_0x9481('0x67'))]),'prompt':'Translate\x20the\x20content\x20to\x20Spanish\x20language.'},{'id':_0x9481('0x15'),'label':_0x3362fa(_0x4d74ba,_0x9481('0x4a'),[_0x3362fa(_0x4d74ba,'Portuguese')]),'prompt':_0x9481('0x28')},{'id':_0x9481('0x1d'),'label':_0x3362fa(_0x4d74ba,_0x9481('0x4a'),[_0x3362fa(_0x4d74ba,_0x9481('0x45'))]),'prompt':_0x9481('0x33')},{'id':_0x9481('0x44'),'label':_0x3362fa(_0x4d74ba,_0x9481('0x4a'),[_0x3362fa(_0x4d74ba,'French')]),'prompt':_0x9481('0x11')},{'id':_0x9481('0x2c'),'label':_0x3362fa(_0x4d74ba,_0x9481('0x4a'),[_0x3362fa(_0x4d74ba,'Simplified\x20Chinese')]),'prompt':_0x9481('0x4')},{'id':_0x9481('0xf'),'label':_0x3362fa(_0x4d74ba,_0x9481('0x4a'),[_0x3362fa(_0x4d74ba,_0x9481('0x5a'))]),'prompt':_0x9481('0x7')},{'id':'translateArabic','label':_0x3362fa(_0x4d74ba,'Translate\x20to\x20%0',[_0x3362fa(_0x4d74ba,_0x9481('0x4c'))]),'prompt':_0x9481('0x66')}]}])),_0x1276aa[_0x9481('0xe')](_0x9481('0x69'),[]),_0x1276aa[_0x9481('0xe')](_0x9481('0x22'),[]);const _0x5fb03d=_0x1276aa['get'](_0x9481('0x57')),_0x510b81=_0x1276aa[_0x9481('0x14')](_0x9481('0x69')),_0x721796=_0x1276aa[_0x9481('0x14')](_0x9481('0x22'));_0x510b81[_0x9481('0x64')](_0x36bad8=>{const _0x35ce50=_0x5fb03d[_0x9481('0x25')](_0x177552=>_0x177552[_0x9481('0x17')]===_0x36bad8[_0x9481('0x17')]);_0x35ce50?_0x35ce50[_0x9481('0x43')]=_0x35ce50[_0x9481('0x43')][_0x9481('0x31')](_0x36bad8['commands']):_0x5fb03d[_0x9481('0x5e')](_0x36bad8);}),_0x5fb03d[_0x9481('0x64')](_0x426e12=>{_0x426e12[_0x9481('0x43')]=_0x426e12[_0x9481('0x43')][_0x9481('0x20')](_0x31afec=>!_0x721796['includes'](_0x31afec['id']));}),_0x1276aa[_0x9481('0x65')](_0x9481('0x57'),_0x5fb03d);}[_0x9481('0x23')](){const _0x39e720=this[_0x9481('0x68')];this[_0x9481('0x54')]=_0x39e720['config'][_0x9481('0x14')](_0x9481('0x54')),this[_0x9481('0x5c')]=setInterval(()=>{let _0x33ce0b;for(const _0x8b4ddb in _0x39e720){const _0x585cb9=_0x8b4ddb,_0x338b33=_0x39e720[_0x585cb9];if(_0x9481('0x4d')===_0x338b33||'aiLicenseKeyInvalid'===_0x338b33||'aiLicenseKeyValid'===_0x338b33||_0x9481('0x37')===_0x338b33){delete _0x39e720[_0x585cb9],_0x33ce0b=_0x338b33;break;}}if(_0x9481('0xb')===_0x33ce0b)throw clearInterval(this[_0x9481('0x5c')]),new _0x1f4be6(_0x9481('0x10'),null);if('aiLicenseKeyTrial'===_0x33ce0b&&console[_0x9481('0x41')](_0x9481('0x3a')),_0x9481('0x37')===_0x33ce0b)throw clearInterval(this[_0x9481('0x5c')]),new _0x1f4be6(_0x9481('0x3'),null);_0x9481('0x42')===_0x33ce0b&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}['destroy'](){this[_0x9481('0x5c')]&&clearInterval(this[_0x9481('0x5c')]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b50=['data','markerToElement','selection','addMarker','for','setSelection','editingDowncast','removeMarker','model','ck-fake-ai-selection_collapsed','editor','document','length','end','getLastMatchingPosition','change','ck-fake-ai-selection','has','start','init','showFakeVisualSelection','canEditAt','toModel','span','getSelectedBlocks','conversion','pop','createPositionAfter','isAtEnd','isContent','toView','insertContent','hideFakeVisualSelection','schema','markers','AIAssistantEditing','getFirstRange','insertContentBelow'];(function(_0x103139,_0x4b50e9){const _0x57b65e=function(_0x30690d){while(--_0x30690d){_0x103139['push'](_0x103139['shift']());}};_0x57b65e(++_0x4b50e9);}(_0x4b50,0xa8));const _0x57b6=function(_0x103139,_0x4b50e9){_0x103139=_0x103139-0x0;let _0x57b65e=_0x4b50[_0x103139];return _0x57b65e;};import{Plugin as _0x696763}from'ckeditor5/src/core';const s='ai-ui';export default class i extends _0x696763{static get['pluginName'](){return _0x57b6('0x13');}[_0x57b6('0x3')](){const {editor:_0x34d251}=this;_0x34d251['conversion'][_0x57b6('0x1a')](_0x57b6('0x1c'))['markerToHighlight']({'model':s,'view':{'classes':[_0x57b6('0x0')]}}),_0x34d251[_0x57b6('0x9')]['for'](_0x57b6('0x1c'))[_0x57b6('0x17')]({'model':s,'view':{'name':_0x57b6('0x7'),'classes':[_0x57b6('0x0'),_0x57b6('0x1f')]}});}[_0x57b6('0x4')](){const _0x25c0c2=this[_0x57b6('0x20')][_0x57b6('0x1e')];_0x25c0c2[_0x57b6('0x25')](_0x33eed4=>{const _0x460bed=_0x25c0c2['document'][_0x57b6('0x18')][_0x57b6('0x14')]();if(_0x25c0c2[_0x57b6('0x12')][_0x57b6('0x1')](s))_0x33eed4['updateMarker'](s,{'range':_0x460bed});else{if(_0x460bed['start'][_0x57b6('0xc')]){const _0x32fed9=_0x460bed[_0x57b6('0x2')][_0x57b6('0x24')](({item:_0x1782ae})=>!_0x25c0c2[_0x57b6('0x11')][_0x57b6('0xd')](_0x1782ae),{'boundaries':_0x460bed});_0x33eed4[_0x57b6('0x19')](s,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x33eed4['createRange'](_0x32fed9,_0x460bed[_0x57b6('0x23')])});}else _0x33eed4[_0x57b6('0x19')](s,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x460bed});}});}[_0x57b6('0x10')](){this[_0x57b6('0x20')][_0x57b6('0x1e')][_0x57b6('0x25')](_0xe9d2c4=>{_0xe9d2c4[_0x57b6('0x1d')](s);});}[_0x57b6('0xf')](_0x48bd20,_0x2770f7){const _0x53fc45=_0x2770f7||this[_0x57b6('0x20')][_0x57b6('0x1e')][_0x57b6('0x21')][_0x57b6('0x18')];if(!this[_0x57b6('0x20')][_0x57b6('0x1e')][_0x57b6('0x5')](_0x53fc45))return;const _0x2eb631=this['editor'][_0x57b6('0x16')]['processor'][_0x57b6('0xe')](_0x48bd20),_0xa7b391=this[_0x57b6('0x20')]['data'][_0x57b6('0x6')](_0x2eb631);this[_0x57b6('0x20')][_0x57b6('0x1e')][_0x57b6('0x25')](_0xed2af5=>{const _0x146109=this[_0x57b6('0x20')][_0x57b6('0x1e')][_0x57b6('0xf')](_0xa7b391,_0x53fc45);_0x146109&&_0xed2af5[_0x57b6('0x1b')](_0x146109);});}[_0x57b6('0x15')](_0x167a30){const {model:_0x10057f}=this[_0x57b6('0x20')],_0x2c887a=Array['from'](_0x10057f['document'][_0x57b6('0x18')][_0x57b6('0x8')]()),_0x25a35d=_0x2c887a[_0x57b6('0x22')]?_0x10057f[_0x57b6('0xb')](_0x2c887a[_0x57b6('0xa')]()):_0x10057f[_0x57b6('0x21')][_0x57b6('0x18')]['getLastPosition']();this[_0x57b6('0xf')](_0x167a30,_0x25a35d);}}
|