@ckeditor/ckeditor5-ai 0.0.0-internal-20241017.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/CHANGELOG.md +4 -0
- package/LICENSE.md +26 -0
- package/README.md +38 -0
- package/build/ai.js +5 -0
- package/build/translations/af.js +1 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/es-co.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/jv.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/ti.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/uz.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/ckeditor5-metadata.json +23 -0
- package/dist/adapters/aiadapter.d.ts +60 -0
- package/dist/adapters/aitextadapter.d.ts +150 -0
- package/dist/adapters/awstextadapter.d.ts +183 -0
- package/dist/adapters/openaitextadapter.d.ts +187 -0
- package/dist/aiassistant.d.ts +393 -0
- package/dist/aiassistantediting.d.ts +59 -0
- package/dist/aiassistantui.d.ts +62 -0
- package/dist/aiconfig.d.ts +73 -0
- package/dist/augmentation.d.ts +31 -0
- package/dist/index-content.css +6 -0
- package/dist/index-editor.css +297 -0
- package/dist/index.css +392 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +24 -0
- package/dist/legacyerrors.d.ts +24 -0
- package/dist/translations/af.d.ts +8 -0
- package/dist/translations/af.js +23 -0
- package/dist/translations/af.umd.js +23 -0
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +23 -0
- package/dist/translations/ar.umd.js +23 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +23 -0
- package/dist/translations/bg.umd.js +23 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +23 -0
- package/dist/translations/bn.umd.js +23 -0
- package/dist/translations/bs.d.ts +8 -0
- package/dist/translations/bs.js +23 -0
- package/dist/translations/bs.umd.js +23 -0
- package/dist/translations/ca.d.ts +8 -0
- package/dist/translations/ca.js +23 -0
- package/dist/translations/ca.umd.js +23 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +23 -0
- package/dist/translations/cs.umd.js +23 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +23 -0
- package/dist/translations/da.umd.js +23 -0
- package/dist/translations/de-ch.d.ts +8 -0
- package/dist/translations/de-ch.js +23 -0
- package/dist/translations/de-ch.umd.js +23 -0
- package/dist/translations/de.d.ts +8 -0
- package/dist/translations/de.js +23 -0
- package/dist/translations/de.umd.js +23 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +23 -0
- package/dist/translations/el.umd.js +23 -0
- package/dist/translations/en-au.d.ts +8 -0
- package/dist/translations/en-au.js +23 -0
- package/dist/translations/en-au.umd.js +23 -0
- package/dist/translations/en.d.ts +8 -0
- package/dist/translations/en.js +23 -0
- package/dist/translations/en.umd.js +23 -0
- package/dist/translations/es-co.d.ts +8 -0
- package/dist/translations/es-co.js +23 -0
- package/dist/translations/es-co.umd.js +23 -0
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +23 -0
- package/dist/translations/es.umd.js +23 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +23 -0
- package/dist/translations/et.umd.js +23 -0
- package/dist/translations/fa.d.ts +8 -0
- package/dist/translations/fa.js +23 -0
- package/dist/translations/fa.umd.js +23 -0
- package/dist/translations/fi.d.ts +8 -0
- package/dist/translations/fi.js +23 -0
- package/dist/translations/fi.umd.js +23 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +23 -0
- package/dist/translations/fr.umd.js +23 -0
- package/dist/translations/gl.d.ts +8 -0
- package/dist/translations/gl.js +23 -0
- package/dist/translations/gl.umd.js +23 -0
- package/dist/translations/he.d.ts +8 -0
- package/dist/translations/he.js +23 -0
- package/dist/translations/he.umd.js +23 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +23 -0
- package/dist/translations/hi.umd.js +23 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +23 -0
- package/dist/translations/hr.umd.js +23 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +23 -0
- package/dist/translations/hu.umd.js +23 -0
- package/dist/translations/id.d.ts +8 -0
- package/dist/translations/id.js +23 -0
- package/dist/translations/id.umd.js +23 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +23 -0
- package/dist/translations/it.umd.js +23 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +23 -0
- package/dist/translations/ja.umd.js +23 -0
- package/dist/translations/jv.d.ts +8 -0
- package/dist/translations/jv.js +23 -0
- package/dist/translations/jv.umd.js +23 -0
- package/dist/translations/ko.d.ts +8 -0
- package/dist/translations/ko.js +23 -0
- package/dist/translations/ko.umd.js +23 -0
- package/dist/translations/lt.d.ts +8 -0
- package/dist/translations/lt.js +23 -0
- package/dist/translations/lt.umd.js +23 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +23 -0
- package/dist/translations/lv.umd.js +23 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +23 -0
- package/dist/translations/ms.umd.js +23 -0
- package/dist/translations/nl.d.ts +8 -0
- package/dist/translations/nl.js +23 -0
- package/dist/translations/nl.umd.js +23 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +23 -0
- package/dist/translations/no.umd.js +23 -0
- package/dist/translations/pl.d.ts +8 -0
- package/dist/translations/pl.js +23 -0
- package/dist/translations/pl.umd.js +23 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +23 -0
- package/dist/translations/pt-br.umd.js +23 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +23 -0
- package/dist/translations/pt.umd.js +23 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +23 -0
- package/dist/translations/ro.umd.js +23 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +23 -0
- package/dist/translations/ru.umd.js +23 -0
- package/dist/translations/sk.d.ts +8 -0
- package/dist/translations/sk.js +23 -0
- package/dist/translations/sk.umd.js +23 -0
- package/dist/translations/sr-latn.d.ts +8 -0
- package/dist/translations/sr-latn.js +23 -0
- package/dist/translations/sr-latn.umd.js +23 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +23 -0
- package/dist/translations/sr.umd.js +23 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +23 -0
- package/dist/translations/sv.umd.js +23 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +23 -0
- package/dist/translations/th.umd.js +23 -0
- package/dist/translations/ti.d.ts +8 -0
- package/dist/translations/ti.js +23 -0
- package/dist/translations/ti.umd.js +23 -0
- package/dist/translations/tk.d.ts +8 -0
- package/dist/translations/tk.js +23 -0
- package/dist/translations/tk.umd.js +23 -0
- package/dist/translations/tr.d.ts +8 -0
- package/dist/translations/tr.js +23 -0
- package/dist/translations/tr.umd.js +23 -0
- package/dist/translations/tt.d.ts +8 -0
- package/dist/translations/tt.js +23 -0
- package/dist/translations/tt.umd.js +23 -0
- package/dist/translations/ug.d.ts +8 -0
- package/dist/translations/ug.js +23 -0
- package/dist/translations/ug.umd.js +23 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +23 -0
- package/dist/translations/uk.umd.js +23 -0
- package/dist/translations/ur.d.ts +8 -0
- package/dist/translations/ur.js +23 -0
- package/dist/translations/ur.umd.js +23 -0
- package/dist/translations/uz.d.ts +8 -0
- package/dist/translations/uz.js +23 -0
- package/dist/translations/uz.umd.js +23 -0
- package/dist/translations/vi.d.ts +8 -0
- package/dist/translations/vi.js +23 -0
- package/dist/translations/vi.umd.js +23 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +23 -0
- package/dist/translations/zh-cn.umd.js +23 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.js +23 -0
- package/dist/translations/zh.umd.js +23 -0
- package/dist/ui/aiassistantcontroller.d.ts +113 -0
- package/dist/ui/form/aiformcontentarea.d.ts +52 -0
- package/dist/ui/form/aiformerrorview.d.ts +30 -0
- package/dist/ui/form/aiformpromptview.d.ts +50 -0
- package/dist/ui/form/aiformtoolbarview.d.ts +62 -0
- package/dist/ui/form/aiformview.d.ts +145 -0
- package/dist/ui/form/aihistorylistitemview.d.ts +22 -0
- package/dist/ui/form/aihistorylistview.d.ts +39 -0
- package/dist/ui/form/prompthistory.d.ts +24 -0
- package/dist/ui/showaiassistantcommand.d.ts +44 -0
- package/dist/utils/common-translations.d.ts +13 -0
- package/dist/utils/normalizecommandsconfig.d.ts +18 -0
- package/lang/contexts.json +56 -0
- package/lang/translations/af.po +230 -0
- package/lang/translations/ar.po +230 -0
- package/lang/translations/bg.po +230 -0
- package/lang/translations/bn.po +230 -0
- package/lang/translations/bs.po +230 -0
- package/lang/translations/ca.po +230 -0
- package/lang/translations/cs.po +230 -0
- package/lang/translations/da.po +230 -0
- package/lang/translations/de-ch.po +230 -0
- package/lang/translations/de.po +230 -0
- package/lang/translations/el.po +230 -0
- package/lang/translations/en-au.po +230 -0
- package/lang/translations/en.po +230 -0
- package/lang/translations/es-co.po +230 -0
- package/lang/translations/es.po +230 -0
- package/lang/translations/et.po +230 -0
- package/lang/translations/fa.po +230 -0
- package/lang/translations/fi.po +230 -0
- package/lang/translations/fr.po +230 -0
- package/lang/translations/gl.po +230 -0
- package/lang/translations/he.po +230 -0
- package/lang/translations/hi.po +230 -0
- package/lang/translations/hr.po +230 -0
- package/lang/translations/hu.po +230 -0
- package/lang/translations/id.po +230 -0
- package/lang/translations/it.po +230 -0
- package/lang/translations/ja.po +230 -0
- package/lang/translations/jv.po +230 -0
- package/lang/translations/ko.po +230 -0
- package/lang/translations/lt.po +230 -0
- package/lang/translations/lv.po +230 -0
- package/lang/translations/ms.po +230 -0
- package/lang/translations/nl.po +230 -0
- package/lang/translations/no.po +230 -0
- package/lang/translations/pl.po +230 -0
- package/lang/translations/pt-br.po +230 -0
- package/lang/translations/pt.po +230 -0
- package/lang/translations/ro.po +230 -0
- package/lang/translations/ru.po +230 -0
- package/lang/translations/sk.po +230 -0
- package/lang/translations/sr-latn.po +230 -0
- package/lang/translations/sr.po +230 -0
- package/lang/translations/sv.po +230 -0
- package/lang/translations/th.po +230 -0
- package/lang/translations/ti.po +230 -0
- package/lang/translations/tk.po +230 -0
- package/lang/translations/tr.po +230 -0
- package/lang/translations/tt.po +230 -0
- package/lang/translations/ug.po +230 -0
- package/lang/translations/uk.po +230 -0
- package/lang/translations/ur.po +230 -0
- package/lang/translations/uz.po +230 -0
- package/lang/translations/vi.po +230 -0
- package/lang/translations/zh-cn.po +230 -0
- package/lang/translations/zh.po +230 -0
- package/package.json +53 -0
- package/src/adapters/aiadapter.d.ts +56 -0
- package/src/adapters/aiadapter.js +23 -0
- package/src/adapters/aitextadapter.d.ts +146 -0
- package/src/adapters/aitextadapter.js +23 -0
- package/src/adapters/awstextadapter.d.ts +179 -0
- package/src/adapters/awstextadapter.js +23 -0
- package/src/adapters/openaitextadapter.d.ts +183 -0
- package/src/adapters/openaitextadapter.js +23 -0
- package/src/aiassistant.d.ts +389 -0
- package/src/aiassistant.js +23 -0
- package/src/aiassistantediting.d.ts +55 -0
- package/src/aiassistantediting.js +23 -0
- package/src/aiassistantui.d.ts +58 -0
- package/src/aiassistantui.js +23 -0
- package/src/aiconfig.d.ts +69 -0
- package/src/aiconfig.js +23 -0
- package/src/augmentation.d.ts +27 -0
- package/src/augmentation.js +23 -0
- package/src/index.d.ts +13 -0
- package/src/index.js +23 -0
- package/src/legacyerrors.d.ts +20 -0
- package/src/legacyerrors.js +23 -0
- package/src/ui/aiassistantcontroller.d.ts +109 -0
- package/src/ui/aiassistantcontroller.js +24 -0
- package/src/ui/form/aiformcontentarea.d.ts +48 -0
- package/src/ui/form/aiformcontentarea.js +23 -0
- package/src/ui/form/aiformerrorview.d.ts +26 -0
- package/src/ui/form/aiformerrorview.js +23 -0
- package/src/ui/form/aiformpromptview.d.ts +46 -0
- package/src/ui/form/aiformpromptview.js +23 -0
- package/src/ui/form/aiformtoolbarview.d.ts +58 -0
- package/src/ui/form/aiformtoolbarview.js +23 -0
- package/src/ui/form/aiformview.d.ts +141 -0
- package/src/ui/form/aiformview.js +23 -0
- package/src/ui/form/aihistorylistitemview.d.ts +18 -0
- package/src/ui/form/aihistorylistitemview.js +23 -0
- package/src/ui/form/aihistorylistview.d.ts +35 -0
- package/src/ui/form/aihistorylistview.js +23 -0
- package/src/ui/form/prompthistory.d.ts +20 -0
- package/src/ui/form/prompthistory.js +23 -0
- package/src/ui/showaiassistantcommand.d.ts +40 -0
- package/src/ui/showaiassistantcommand.js +23 -0
- package/src/utils/common-translations.d.ts +9 -0
- package/src/utils/common-translations.js +23 -0
- package/src/utils/normalizecommandsconfig.d.ts +14 -0
- package/src/utils/normalizecommandsconfig.js +23 -0
- package/theme/ai-dropdown.css +37 -0
- package/theme/ai-form.css +262 -0
- package/theme/ai.css +120 -0
- package/theme/icons/copy.svg +1 -0
- package/theme/icons/error.svg +1 -0
- package/theme/icons/magic-wand.svg +1 -0
- package/theme/icons/submit.svg +1 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(_0x520f1a=>{const {uz:{dictionary:_0x112c64,getPluralForm:_0x207175}}={'uz':{'dictionary':{'Edit\x20or\x20review':'','Improve\x20writing':'','Make\x20shorter':'','Make\x20longer':'','Simplify\x20language':'','Generate\x20from\x20selection':'','Summarize':'','Continue':'','Change\x20tone':'','Professional':'','Casual':'','Direct':'','Confident':'','Friendly':'','Change\x20style':'','Business':'','Legal':'','Journalism':'','Poetic':'','Translate':'','English':'','Spanish':'','German':'','Portuguese':'','French':'','Simplified\x20Chinese':'','Hindi':'','Arabic':'','AI\x20Assistant':'','AI\x20Commands':'','Ask\x20AI\x20to\x20edit\x20or\x20generate':'','Ask\x20AI\x20to\x20improve\x20generated\x20text':'','Copy':'','Submit':'','Insert\x20below':'','Try\x20again':'','Stop':'','AI\x20is\x20writing...':'','AI\x20is\x20writing':'','Generated\x20content:\x20%0':'','Error\x20during\x20AI\x20content\x20generation:\x20%0':'','History':'','Empty\x20history':'','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'','Prompt\x20history':'','AI_REPLACE_CONTENT':'','AI_INSERT_CONTENT':'Kiritish','AI_ERROR_GET_HEADERS':'','AI_ERROR_GET_PARAMETERS':'','AI_ERROR_UNSUPPORTED_MODEL':'','AI_ERROR_CONTEXT_LENGTH':'','AI_ERROR_MODERATION':'','AI_ERROR_FAILED':''},'getPluralForm':_0x5b5312=>0x0}};_0x520f1a['uz']||={'dictionary':{},'getPluralForm':null},_0x520f1a['uz']['dictionary']=Object['assign'](_0x520f1a['uz']['dictionary'],_0x112c64),_0x520f1a['uz']['getPluralForm']=_0x207175;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Translations } from '@ckeditor/ckeditor5-utils';
|
|
7
|
+
declare const translations: Translations;
|
|
8
|
+
export default translations;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export default{'vi':{'dictionary':{'Edit\x20or\x20review':'Sửa\x20hoặc\x20xem\x20lại','Improve\x20writing':'Cải\x20thiện\x20văn\x20bản','Make\x20shorter':'Viết\x20ngắn\x20hơn','Make\x20longer':'Viết\x20dài\x20hơn','Simplify\x20language':'Đơn\x20giản\x20hóa\x20ngôn\x20ngữ','Generate\x20from\x20selection':'Tạo\x20từ\x20lựa\x20chọn','Summarize':'Tóm\x20tắt','Continue':'Tiếp\x20tục','Change\x20tone':'Thay\x20đổi\x20giọng\x20văn','Professional':'Chuyên\x20nghiệp','Casual':'Đời\x20thường','Direct':'Trực\x20tiếp','Confident':'Tự\x20tin','Friendly':'Thân\x20thiện','Change\x20style':'Thay\x20đổi\x20văn\x20phong','Business':'Kinh\x20doanh','Legal':'Pháp\x20luật','Journalism':'Báo\x20chí','Poetic':'Thơ\x20ca','Translate':'Dịch','English':'Tiếng\x20Anh','Spanish':'Tiếng\x20Tây\x20Ban\x20Nha','German':'Tiếng\x20Đức','Portuguese':'Tiếng\x20Bồ\x20Đào\x20Nha','French':'Tiếng\x20Pháp','Simplified\x20Chinese':'Tiếng\x20Trung\x20giản\x20thể','Hindi':'Tiếng\x20Hindi','Arabic':'Tiếng\x20Ả\x20Rập','AI\x20Assistant':'Trợ\x20lí\x20AI','AI\x20Commands':'Lệnh\x20AI','Ask\x20AI\x20to\x20edit\x20or\x20generate':'Bảo\x20AI\x20sửa\x20hoặc\x20tạo\x20mới','Ask\x20AI\x20to\x20improve\x20generated\x20text':'Bảo\x20AI\x20cải\x20thiện\x20văn\x20bản\x20đã\x20tạo','Copy':'Sao\x20chép','Submit':'Gửi','Insert\x20below':'Chèn\x20vào\x20bên\x20dưới','Try\x20again':'Thử\x20lại','Stop':'Dừng','AI\x20is\x20writing...':'AI\x20đang\x20viết...','AI\x20is\x20writing':'AI\x20đang\x20viết','Generated\x20content:\x20%0':'Nội\x20dung\x20đã\x20tạo:\x20%0','Error\x20during\x20AI\x20content\x20generation:\x20%0':'Xảy\x20ra\x20lỗi\x20trong\x20quá\x20trình\x20tạo\x20nội\x20dung\x20AI:\x20%0','History':'Lịch\x20sử','Empty\x20history':'Lịch\x20sử\x20trống','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'Hãy\x20bảo\x20AI\x20và\x20lời\x20nhắc\x20của\x20bạn\x20sẽ\x20được\x20liệt\x20kê\x20ở\x20đây\x20để\x20sử\x20dụng\x20sau.','Prompt\x20history':'Lịch\x20sử\x20lời\x20nhắc','AI_REPLACE_CONTENT':'Thay\x20thế','AI_INSERT_CONTENT':'Chèn','AI_ERROR_GET_HEADERS':'Chuẩn\x20bị\x20tiêu\x20đề\x20yêu\x20cầu\x20không\x20thành\x20công','AI_ERROR_GET_PARAMETERS':'Không\x20thể\x20chuẩn\x20bị\x20tham\x20số\x20yêu\x20cầu','AI_ERROR_UNSUPPORTED_MODEL':'Không\x20hỗ\x20trợ\x20mô\x20hình\x20AI\x20được\x20yêu\x20cầu\x20(\x22%0\x22)','AI_ERROR_CONTEXT_LENGTH':'Nội\x20dung\x20đã\x20chọn\x20quá\x20dài','AI_ERROR_MODERATION':'Truy\x20vấn\x20được\x20yêu\x20cầu\x20không\x20tuân\x20thủ\x20quy\x20tắc\x20kiểm\x20duyệt','AI_ERROR_FAILED':'Không\x20kết\x20nối\x20được\x20với\x20dịch\x20vụ\x20AI'},'getPluralForm':_0x31d964=>0x0}};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(_0x37394d=>{const {vi:{dictionary:_0x48ef25,getPluralForm:_0x47815a}}={'vi':{'dictionary':{'Edit\x20or\x20review':'Sửa\x20hoặc\x20xem\x20lại','Improve\x20writing':'Cải\x20thiện\x20văn\x20bản','Make\x20shorter':'Viết\x20ngắn\x20hơn','Make\x20longer':'Viết\x20dài\x20hơn','Simplify\x20language':'Đơn\x20giản\x20hóa\x20ngôn\x20ngữ','Generate\x20from\x20selection':'Tạo\x20từ\x20lựa\x20chọn','Summarize':'Tóm\x20tắt','Continue':'Tiếp\x20tục','Change\x20tone':'Thay\x20đổi\x20giọng\x20văn','Professional':'Chuyên\x20nghiệp','Casual':'Đời\x20thường','Direct':'Trực\x20tiếp','Confident':'Tự\x20tin','Friendly':'Thân\x20thiện','Change\x20style':'Thay\x20đổi\x20văn\x20phong','Business':'Kinh\x20doanh','Legal':'Pháp\x20luật','Journalism':'Báo\x20chí','Poetic':'Thơ\x20ca','Translate':'Dịch','English':'Tiếng\x20Anh','Spanish':'Tiếng\x20Tây\x20Ban\x20Nha','German':'Tiếng\x20Đức','Portuguese':'Tiếng\x20Bồ\x20Đào\x20Nha','French':'Tiếng\x20Pháp','Simplified\x20Chinese':'Tiếng\x20Trung\x20giản\x20thể','Hindi':'Tiếng\x20Hindi','Arabic':'Tiếng\x20Ả\x20Rập','AI\x20Assistant':'Trợ\x20lí\x20AI','AI\x20Commands':'Lệnh\x20AI','Ask\x20AI\x20to\x20edit\x20or\x20generate':'Bảo\x20AI\x20sửa\x20hoặc\x20tạo\x20mới','Ask\x20AI\x20to\x20improve\x20generated\x20text':'Bảo\x20AI\x20cải\x20thiện\x20văn\x20bản\x20đã\x20tạo','Copy':'Sao\x20chép','Submit':'Gửi','Insert\x20below':'Chèn\x20vào\x20bên\x20dưới','Try\x20again':'Thử\x20lại','Stop':'Dừng','AI\x20is\x20writing...':'AI\x20đang\x20viết...','AI\x20is\x20writing':'AI\x20đang\x20viết','Generated\x20content:\x20%0':'Nội\x20dung\x20đã\x20tạo:\x20%0','Error\x20during\x20AI\x20content\x20generation:\x20%0':'Xảy\x20ra\x20lỗi\x20trong\x20quá\x20trình\x20tạo\x20nội\x20dung\x20AI:\x20%0','History':'Lịch\x20sử','Empty\x20history':'Lịch\x20sử\x20trống','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'Hãy\x20bảo\x20AI\x20và\x20lời\x20nhắc\x20của\x20bạn\x20sẽ\x20được\x20liệt\x20kê\x20ở\x20đây\x20để\x20sử\x20dụng\x20sau.','Prompt\x20history':'Lịch\x20sử\x20lời\x20nhắc','AI_REPLACE_CONTENT':'Thay\x20thế','AI_INSERT_CONTENT':'Chèn','AI_ERROR_GET_HEADERS':'Chuẩn\x20bị\x20tiêu\x20đề\x20yêu\x20cầu\x20không\x20thành\x20công','AI_ERROR_GET_PARAMETERS':'Không\x20thể\x20chuẩn\x20bị\x20tham\x20số\x20yêu\x20cầu','AI_ERROR_UNSUPPORTED_MODEL':'Không\x20hỗ\x20trợ\x20mô\x20hình\x20AI\x20được\x20yêu\x20cầu\x20(\x22%0\x22)','AI_ERROR_CONTEXT_LENGTH':'Nội\x20dung\x20đã\x20chọn\x20quá\x20dài','AI_ERROR_MODERATION':'Truy\x20vấn\x20được\x20yêu\x20cầu\x20không\x20tuân\x20thủ\x20quy\x20tắc\x20kiểm\x20duyệt','AI_ERROR_FAILED':'Không\x20kết\x20nối\x20được\x20với\x20dịch\x20vụ\x20AI'},'getPluralForm':_0x64283c=>0x0}};_0x37394d['vi']||={'dictionary':{},'getPluralForm':null},_0x37394d['vi']['dictionary']=Object['assign'](_0x37394d['vi']['dictionary'],_0x48ef25),_0x37394d['vi']['getPluralForm']=_0x47815a;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Translations } from '@ckeditor/ckeditor5-utils';
|
|
7
|
+
declare const translations: Translations;
|
|
8
|
+
export default translations;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export default{'zh-cn':{'dictionary':{'Edit\x20or\x20review':'编辑或审核','Improve\x20writing':'改进写作','Make\x20shorter':'缩短','Make\x20longer':'加长','Simplify\x20language':'简化语言','Generate\x20from\x20selection':'根据选择内容生成','Summarize':'摘要','Continue':'继续','Change\x20tone':'更改基调','Professional':'专业','Casual':'随意','Direct':'直接','Confident':'自信','Friendly':'友好','Change\x20style':'更改风格','Business':'商务','Legal':'法律','Journalism':'旅游','Poetic':'诗意','Translate':'翻译','English':'英语','Spanish':'西班牙语','German':'德语','Portuguese':'葡萄牙语','French':'法语','Simplified\x20Chinese':'简体中文','Hindi':'印地语','Arabic':'阿拉伯语','AI\x20Assistant':'AI\x20助手','AI\x20Commands':'AI\x20命令','Ask\x20AI\x20to\x20edit\x20or\x20generate':'要求\x20AI\x20编辑或生成','Ask\x20AI\x20to\x20improve\x20generated\x20text':'要求\x20AI\x20改进生成的文本','Copy':'复制','Submit':'提交','Insert\x20below':'在下面插入','Try\x20again':'重试','Stop':'停止','AI\x20is\x20writing...':'AI\x20正在撰写……','AI\x20is\x20writing':'人工智能正在写作','Generated\x20content:\x20%0':'生成的内容:%0','Error\x20during\x20AI\x20content\x20generation:\x20%0':'人工智能生成内容时出错:%0','History':'历史记录','Empty\x20history':'空历史记录','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'向\x20AI\x20提问,您的提示词将在此处列出,供您以后使用。','Prompt\x20history':'提示词历史记录','AI_REPLACE_CONTENT':'替换','AI_INSERT_CONTENT':'插入','AI_ERROR_GET_HEADERS':'准备请求头失败','AI_ERROR_GET_PARAMETERS':'请求参数准备失败','AI_ERROR_UNSUPPORTED_MODEL':'不支持请求的\x20AI\x20模型\x20(\x22%0\x22)','AI_ERROR_CONTEXT_LENGTH':'选择的内容过长','AI_ERROR_MODERATION':'请求的查询不符合审查规则','AI_ERROR_FAILED':'跟\x20AI\x20服务通信失败'},'getPluralForm':_0x18e0ea=>0x0}};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(_0x336d9c=>{const {'zh-cn':{dictionary:_0x28e830,getPluralForm:_0x1c419b}}={'zh-cn':{'dictionary':{'Edit\x20or\x20review':'编辑或审核','Improve\x20writing':'改进写作','Make\x20shorter':'缩短','Make\x20longer':'加长','Simplify\x20language':'简化语言','Generate\x20from\x20selection':'根据选择内容生成','Summarize':'摘要','Continue':'继续','Change\x20tone':'更改基调','Professional':'专业','Casual':'随意','Direct':'直接','Confident':'自信','Friendly':'友好','Change\x20style':'更改风格','Business':'商务','Legal':'法律','Journalism':'旅游','Poetic':'诗意','Translate':'翻译','English':'英语','Spanish':'西班牙语','German':'德语','Portuguese':'葡萄牙语','French':'法语','Simplified\x20Chinese':'简体中文','Hindi':'印地语','Arabic':'阿拉伯语','AI\x20Assistant':'AI\x20助手','AI\x20Commands':'AI\x20命令','Ask\x20AI\x20to\x20edit\x20or\x20generate':'要求\x20AI\x20编辑或生成','Ask\x20AI\x20to\x20improve\x20generated\x20text':'要求\x20AI\x20改进生成的文本','Copy':'复制','Submit':'提交','Insert\x20below':'在下面插入','Try\x20again':'重试','Stop':'停止','AI\x20is\x20writing...':'AI\x20正在撰写……','AI\x20is\x20writing':'人工智能正在写作','Generated\x20content:\x20%0':'生成的内容:%0','Error\x20during\x20AI\x20content\x20generation:\x20%0':'人工智能生成内容时出错:%0','History':'历史记录','Empty\x20history':'空历史记录','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'向\x20AI\x20提问,您的提示词将在此处列出,供您以后使用。','Prompt\x20history':'提示词历史记录','AI_REPLACE_CONTENT':'替换','AI_INSERT_CONTENT':'插入','AI_ERROR_GET_HEADERS':'准备请求头失败','AI_ERROR_GET_PARAMETERS':'请求参数准备失败','AI_ERROR_UNSUPPORTED_MODEL':'不支持请求的\x20AI\x20模型\x20(\x22%0\x22)','AI_ERROR_CONTEXT_LENGTH':'选择的内容过长','AI_ERROR_MODERATION':'请求的查询不符合审查规则','AI_ERROR_FAILED':'跟\x20AI\x20服务通信失败'},'getPluralForm':_0xcdd245=>0x0}};_0x336d9c['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x336d9c['zh-cn']['dictionary']=Object['assign'](_0x336d9c['zh-cn']['dictionary'],_0x28e830),_0x336d9c['zh-cn']['getPluralForm']=_0x1c419b;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Translations } from '@ckeditor/ckeditor5-utils';
|
|
7
|
+
declare const translations: Translations;
|
|
8
|
+
export default translations;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export default{'zh':{'dictionary':{'Edit\x20or\x20review':'編輯或檢閱','Improve\x20writing':'改善寫作','Make\x20shorter':'短一點','Make\x20longer':'長一點','Simplify\x20language':'簡化用語','Generate\x20from\x20selection':'依選擇範圍生成','Summarize':'總結','Continue':'繼續','Change\x20tone':'改變語調','Professional':'專業','Casual':'非正式','Direct':'直接','Confident':'自信','Friendly':'友善','Change\x20style':'改變風格','Business':'業務','Legal':'法務','Journalism':'報導','Poetic':'詩意','Translate':'翻譯','English':'英文','Spanish':'西班牙文','German':'德文','Portuguese':'葡萄牙文','French':'法文','Simplified\x20Chinese':'簡體中文','Hindi':'印地文','Arabic':'阿拉伯文','AI\x20Assistant':'AI\x20助理','AI\x20Commands':'AI\x20指令','Ask\x20AI\x20to\x20edit\x20or\x20generate':'要求\x20AI\x20編輯或生成內容','Ask\x20AI\x20to\x20improve\x20generated\x20text':'要求\x20AI\x20改善生成的文字','Copy':'複製','Submit':'送出','Insert\x20below':'在下方插入','Try\x20again':'重試','Stop':'停止','AI\x20is\x20writing...':'AI\x20撰寫中...','AI\x20is\x20writing':'AI\x20撰寫中','Generated\x20content:\x20%0':'生成的內容:%0','Error\x20during\x20AI\x20content\x20generation:\x20%0':'AI\x20內容生成期間發生錯誤:%0','History':'紀錄','Empty\x20history':'無紀錄','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'要求\x20AI\x20和您的提示詞會列出在此處,供您稍後使用。','Prompt\x20history':'提示詞紀錄','AI_REPLACE_CONTENT':'取代','AI_INSERT_CONTENT':'插入','AI_ERROR_GET_HEADERS':'要求標頭準備失敗','AI_ERROR_GET_PARAMETERS':'要求參數準備失敗','AI_ERROR_UNSUPPORTED_MODEL':'不支援要求的\x20AI\x20模型(\x22%0\x22)','AI_ERROR_CONTEXT_LENGTH':'選取內容過長','AI_ERROR_MODERATION':'提交的要求未通過審核規則','AI_ERROR_FAILED':'與\x20AI\x20服務通訊失敗'},'getPluralForm':_0x5f54de=>0x0}};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(_0x45a6f6=>{const {zh:{dictionary:_0x361b38,getPluralForm:_0x438349}}={'zh':{'dictionary':{'Edit\x20or\x20review':'編輯或檢閱','Improve\x20writing':'改善寫作','Make\x20shorter':'短一點','Make\x20longer':'長一點','Simplify\x20language':'簡化用語','Generate\x20from\x20selection':'依選擇範圍生成','Summarize':'總結','Continue':'繼續','Change\x20tone':'改變語調','Professional':'專業','Casual':'非正式','Direct':'直接','Confident':'自信','Friendly':'友善','Change\x20style':'改變風格','Business':'業務','Legal':'法務','Journalism':'報導','Poetic':'詩意','Translate':'翻譯','English':'英文','Spanish':'西班牙文','German':'德文','Portuguese':'葡萄牙文','French':'法文','Simplified\x20Chinese':'簡體中文','Hindi':'印地文','Arabic':'阿拉伯文','AI\x20Assistant':'AI\x20助理','AI\x20Commands':'AI\x20指令','Ask\x20AI\x20to\x20edit\x20or\x20generate':'要求\x20AI\x20編輯或生成內容','Ask\x20AI\x20to\x20improve\x20generated\x20text':'要求\x20AI\x20改善生成的文字','Copy':'複製','Submit':'送出','Insert\x20below':'在下方插入','Try\x20again':'重試','Stop':'停止','AI\x20is\x20writing...':'AI\x20撰寫中...','AI\x20is\x20writing':'AI\x20撰寫中','Generated\x20content:\x20%0':'生成的內容:%0','Error\x20during\x20AI\x20content\x20generation:\x20%0':'AI\x20內容生成期間發生錯誤:%0','History':'紀錄','Empty\x20history':'無紀錄','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'要求\x20AI\x20和您的提示詞會列出在此處,供您稍後使用。','Prompt\x20history':'提示詞紀錄','AI_REPLACE_CONTENT':'取代','AI_INSERT_CONTENT':'插入','AI_ERROR_GET_HEADERS':'要求標頭準備失敗','AI_ERROR_GET_PARAMETERS':'要求參數準備失敗','AI_ERROR_UNSUPPORTED_MODEL':'不支援要求的\x20AI\x20模型(\x22%0\x22)','AI_ERROR_CONTEXT_LENGTH':'選取內容過長','AI_ERROR_MODERATION':'提交的要求未通過審核規則','AI_ERROR_FAILED':'與\x20AI\x20服務通訊失敗'},'getPluralForm':_0x52923e=>0x0}};_0x45a6f6['zh']||={'dictionary':{},'getPluralForm':null},_0x45a6f6['zh']['dictionary']=Object['assign'](_0x45a6f6['zh']['dictionary'],_0x361b38),_0x45a6f6['zh']['getPluralForm']=_0x438349;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
import type AITextAdapter from '../adapters/aitextadapter.js';
|
|
10
|
+
import type { default as AIFormView } from './form/aiformview.js';
|
|
11
|
+
import type { AIFormToolbarViewMainActionLabel } from './form/aiformtoolbarview.js';
|
|
12
|
+
import type { Editor } from 'ckeditor5/src/core.js';
|
|
13
|
+
declare const AIAssistantController_base: {
|
|
14
|
+
new (): import("ckeditor5/src/utils.js").Observable;
|
|
15
|
+
prototype: import("ckeditor5/src/utils.js").Observable;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Controller for the AI assistant.
|
|
19
|
+
*
|
|
20
|
+
* It takes a AI form view, listens to events fired by that view and based on them performs actions on an AI handler.
|
|
21
|
+
* This controller is also responsible for streaming the AI response for the UI.
|
|
22
|
+
*/
|
|
23
|
+
export default class AIAssistantController extends /* #__PURE__ -- @preserve */ AIAssistantController_base {
|
|
24
|
+
/**
|
|
25
|
+
* The editor instance.
|
|
26
|
+
*/
|
|
27
|
+
readonly editor: Editor;
|
|
28
|
+
/**
|
|
29
|
+
* An instance of the {@link module:ai/adapters/aitextadapter~AITextAdapter}.
|
|
30
|
+
*/
|
|
31
|
+
readonly textAdapter: AITextAdapter;
|
|
32
|
+
/**
|
|
33
|
+
* An instance of the {@link module:ai/ui/aiformview~AIFormView}.
|
|
34
|
+
*/
|
|
35
|
+
readonly view: AIFormView;
|
|
36
|
+
/**
|
|
37
|
+
* It is the selected HTML content from the editor on which the dialog has been initialized.
|
|
38
|
+
*/
|
|
39
|
+
initialContext: string;
|
|
40
|
+
/**
|
|
41
|
+
* The latest value returned by the AI while executing the request. It is before parsing and normalization.
|
|
42
|
+
*/
|
|
43
|
+
currentResponse: string;
|
|
44
|
+
/**
|
|
45
|
+
* The latest value returned by the AI while executing the request. It is after parsing and normalization. It will be used as context
|
|
46
|
+
* for the next calls.
|
|
47
|
+
*
|
|
48
|
+
* This value is also displayed in the view (after sanitization).
|
|
49
|
+
*/
|
|
50
|
+
currentContext: string;
|
|
51
|
+
/**
|
|
52
|
+
* The previous value of the context for the AI request. It is kept to handle the try again event.
|
|
53
|
+
*
|
|
54
|
+
* Initially it is the selected HTML content from the editor. Subsequently, the context is replaced by each response from AI.
|
|
55
|
+
*
|
|
56
|
+
* @observable
|
|
57
|
+
*/
|
|
58
|
+
previousContext?: string;
|
|
59
|
+
/**
|
|
60
|
+
* The previous value of the user query. It is kept to handle the try again event.
|
|
61
|
+
*
|
|
62
|
+
* @observable
|
|
63
|
+
*/
|
|
64
|
+
previousQuery?: string;
|
|
65
|
+
/**
|
|
66
|
+
* The label of the previous executed query. It is connected to {@link ~AIAssistantController#previousQuery `previousQuery`} and is kept
|
|
67
|
+
* to handle the "try again" event.
|
|
68
|
+
*
|
|
69
|
+
* @observable
|
|
70
|
+
*/
|
|
71
|
+
previousLabel?: string;
|
|
72
|
+
/**
|
|
73
|
+
* The id of the previous executed action. It is kept to handle the try again event.
|
|
74
|
+
*
|
|
75
|
+
* @observable
|
|
76
|
+
*/
|
|
77
|
+
previousActionId?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Flag that indicates if the processing is in progress.
|
|
80
|
+
*
|
|
81
|
+
* @observable
|
|
82
|
+
*/
|
|
83
|
+
isProcessing: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* @param adapter AI connector instance.
|
|
86
|
+
* @param view AI form view.
|
|
87
|
+
*/
|
|
88
|
+
constructor(editor: Editor, adapter: AITextAdapter, view: AIFormView);
|
|
89
|
+
/**
|
|
90
|
+
* Destroys `AIAssistantController` instance.
|
|
91
|
+
*/
|
|
92
|
+
destroy(): void;
|
|
93
|
+
/**
|
|
94
|
+
* Handles the initial query for a new context and inits the listener for the visible view.
|
|
95
|
+
*
|
|
96
|
+
* This function should be called whenever the AI dialog is displayed.
|
|
97
|
+
*
|
|
98
|
+
* @param options
|
|
99
|
+
* @param options.actionId ID of the performed action. See {@link module:ai/adapters/aitextadapter~AITextAdapterRequestData#actionId}.
|
|
100
|
+
* @param options.htmlContent The selected HTML content on which the AI should base.
|
|
101
|
+
* @param options.query The initial query to be processed.
|
|
102
|
+
* @param options.label The label that will be displayed in the view.
|
|
103
|
+
* @param options.mainActionLabel The action label for the main insertion button.
|
|
104
|
+
*/
|
|
105
|
+
updateView({ actionId, query, htmlContent, label, mainActionLabel }: {
|
|
106
|
+
actionId: string;
|
|
107
|
+
query: string;
|
|
108
|
+
htmlContent: string;
|
|
109
|
+
label: string;
|
|
110
|
+
mainActionLabel: typeof AIFormToolbarViewMainActionLabel[keyof typeof AIFormToolbarViewMainActionLabel];
|
|
111
|
+
}): Promise<void>;
|
|
112
|
+
}
|
|
113
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module ai/ui/aiformcontentarea
|
|
11
|
+
*/
|
|
12
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
13
|
+
import { View, ButtonView } from 'ckeditor5/src/ui.js';
|
|
14
|
+
/**
|
|
15
|
+
* A class representing the text area view of the AI assistant.
|
|
16
|
+
*/
|
|
17
|
+
export default class AIFormContentArea extends View {
|
|
18
|
+
/**
|
|
19
|
+
* The value which is displayed in the content field.
|
|
20
|
+
*
|
|
21
|
+
* @observable
|
|
22
|
+
*/
|
|
23
|
+
value: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* Controls whether the content area is visible.
|
|
26
|
+
*
|
|
27
|
+
* @observable
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
isVisible: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Indicates if the content area is during processing which can change inner values.
|
|
33
|
+
*/
|
|
34
|
+
isProcessing: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* The textarea view.
|
|
37
|
+
*/
|
|
38
|
+
contentFieldView: ContentFieldView;
|
|
39
|
+
/**
|
|
40
|
+
* The copy button displayed in the bottom-right corner of text area.
|
|
41
|
+
*/
|
|
42
|
+
copyButtonView: ButtonView;
|
|
43
|
+
/**
|
|
44
|
+
* @inheritDoc
|
|
45
|
+
*/
|
|
46
|
+
constructor(locale: Locale, extraCssClass?: string);
|
|
47
|
+
/**
|
|
48
|
+
* @inheritDoc
|
|
49
|
+
*/
|
|
50
|
+
render(): void;
|
|
51
|
+
focus(): void;
|
|
52
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module ai/ui/aiformerrorview
|
|
11
|
+
*/
|
|
12
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
13
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
14
|
+
/**
|
|
15
|
+
* A class representing the error view of the AI assistant.
|
|
16
|
+
*/
|
|
17
|
+
export default class AIFormErrorView extends View {
|
|
18
|
+
/**
|
|
19
|
+
* The text of the error.
|
|
20
|
+
*
|
|
21
|
+
* @observable
|
|
22
|
+
*/
|
|
23
|
+
text: string;
|
|
24
|
+
/**
|
|
25
|
+
* Creates an instance of the {@link module:ai/ui/aiformerrorview~AIFormErrorView} class.
|
|
26
|
+
*
|
|
27
|
+
* @param locale The localization services instance.
|
|
28
|
+
*/
|
|
29
|
+
constructor(locale: Locale, text?: string);
|
|
30
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module ai/ui/aiformpromptview
|
|
11
|
+
*/
|
|
12
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
13
|
+
import { AutocompleteView, ButtonView, type TextareaView, type AutocompleteViewConfig } from 'ckeditor5/src/ui.js';
|
|
14
|
+
/**
|
|
15
|
+
* A textarea field allowing to ask AI.
|
|
16
|
+
*/
|
|
17
|
+
export default class AIFormPromptView extends AutocompleteView<TextareaView> {
|
|
18
|
+
/**
|
|
19
|
+
* The submit button view.
|
|
20
|
+
*/
|
|
21
|
+
submitButtonView: ButtonView;
|
|
22
|
+
/**
|
|
23
|
+
* The button that shows and hides the history autocomplete panel.
|
|
24
|
+
*/
|
|
25
|
+
showHistoryButtonView: ButtonView;
|
|
26
|
+
/**
|
|
27
|
+
* Creates `AIFormPromptView` instance.
|
|
28
|
+
*
|
|
29
|
+
* @param locale The localization services instance.
|
|
30
|
+
* @param config Autocomplete config.
|
|
31
|
+
*/
|
|
32
|
+
constructor(locale: Locale, config: AutocompleteViewConfig<TextareaView>);
|
|
33
|
+
/**
|
|
34
|
+
* @inheritDoc
|
|
35
|
+
*/
|
|
36
|
+
render(): void;
|
|
37
|
+
/**
|
|
38
|
+
* @inheritDoc
|
|
39
|
+
*/
|
|
40
|
+
focus(direction?: 1 | -1): void;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Fired when the query is submitted by the user.
|
|
44
|
+
*
|
|
45
|
+
* @eventName ~AIFormPromptView#submit
|
|
46
|
+
*/
|
|
47
|
+
export type AIFormPromptViewSubmitEvent = {
|
|
48
|
+
name: 'submit';
|
|
49
|
+
args: [query: string];
|
|
50
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module ai/ui/aiformtoolbarview
|
|
11
|
+
*/
|
|
12
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
13
|
+
import { ToolbarView, ButtonView } from 'ckeditor5/src/ui.js';
|
|
14
|
+
/**
|
|
15
|
+
* The action name affecting the label of {@link ~AIFormToolbarView#replaceButton}.
|
|
16
|
+
*
|
|
17
|
+
* Available keys are:
|
|
18
|
+
* * `AIFormToolbarViewMainActionLabel.REPLACE`,
|
|
19
|
+
* * `AIFormToolbarViewMainActionLabel.INSERT`
|
|
20
|
+
*/
|
|
21
|
+
export declare const AIFormToolbarViewMainActionLabel: {
|
|
22
|
+
readonly REPLACE: "replace";
|
|
23
|
+
readonly INSERT: "insert";
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* A class representing the text area view of the AI assistant.
|
|
27
|
+
*/
|
|
28
|
+
export default class AIFormToolbarView extends ToolbarView {
|
|
29
|
+
/**
|
|
30
|
+
* Controls whether the toolbar is visible.
|
|
31
|
+
*
|
|
32
|
+
* @observable
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
isVisible: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Button that is used to replace the selected content by the generated one.
|
|
38
|
+
*/
|
|
39
|
+
replaceButton: ButtonView;
|
|
40
|
+
/**
|
|
41
|
+
* Button that is used to insert the generated content below the selection.
|
|
42
|
+
*/
|
|
43
|
+
insertButton: ButtonView;
|
|
44
|
+
/**
|
|
45
|
+
* Button that is used to regenerate the response.
|
|
46
|
+
*/
|
|
47
|
+
tryAgainButton: ButtonView;
|
|
48
|
+
/**
|
|
49
|
+
* Button that is used to stop the processing of the request.
|
|
50
|
+
*/
|
|
51
|
+
stopButton: ButtonView;
|
|
52
|
+
/**
|
|
53
|
+
* The action name affecting the label of {@link #replaceButton}.
|
|
54
|
+
*
|
|
55
|
+
* @default 'replace'
|
|
56
|
+
*/
|
|
57
|
+
mainAction: typeof AIFormToolbarViewMainActionLabel[keyof typeof AIFormToolbarViewMainActionLabel];
|
|
58
|
+
/**
|
|
59
|
+
* @inheritDoc
|
|
60
|
+
*/
|
|
61
|
+
constructor(locale: Locale);
|
|
62
|
+
}
|