@ckeditor/ckeditor5-ai 44.1.0-alpha.5 → 44.2.0-alpha.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/LICENSE.md +1 -1
- package/README.md +1 -1
- package/build/ai.js +2 -2
- package/build/translations/cs.js +1 -1
- package/dist/index-content.css +2 -2
- package/dist/index-editor.css +2 -2
- package/dist/index.css +9 -9
- package/dist/index.js +3 -3
- package/dist/translations/af.d.ts +2 -2
- package/dist/translations/af.js +2 -2
- package/dist/translations/af.umd.js +2 -2
- package/dist/translations/ar.d.ts +2 -2
- package/dist/translations/ar.js +2 -2
- package/dist/translations/ar.umd.js +2 -2
- package/dist/translations/ast.d.ts +2 -2
- package/dist/translations/ast.js +2 -2
- package/dist/translations/ast.umd.js +2 -2
- package/dist/translations/az.d.ts +2 -2
- package/dist/translations/az.js +2 -2
- package/dist/translations/az.umd.js +2 -2
- package/dist/translations/bg.d.ts +2 -2
- package/dist/translations/bg.js +2 -2
- package/dist/translations/bg.umd.js +2 -2
- package/dist/translations/bn.d.ts +2 -2
- package/dist/translations/bn.js +2 -2
- package/dist/translations/bn.umd.js +2 -2
- package/dist/translations/bs.d.ts +2 -2
- package/dist/translations/bs.js +2 -2
- package/dist/translations/bs.umd.js +2 -2
- package/dist/translations/ca.d.ts +2 -2
- package/dist/translations/ca.js +2 -2
- package/dist/translations/ca.umd.js +2 -2
- package/dist/translations/cs.d.ts +2 -2
- package/dist/translations/cs.js +2 -2
- package/dist/translations/cs.umd.js +2 -2
- package/dist/translations/da.d.ts +2 -2
- package/dist/translations/da.js +2 -2
- package/dist/translations/da.umd.js +2 -2
- package/dist/translations/de-ch.d.ts +2 -2
- package/dist/translations/de-ch.js +2 -2
- package/dist/translations/de-ch.umd.js +2 -2
- package/dist/translations/de.d.ts +2 -2
- package/dist/translations/de.js +2 -2
- package/dist/translations/de.umd.js +2 -2
- package/dist/translations/el.d.ts +2 -2
- package/dist/translations/el.js +2 -2
- package/dist/translations/el.umd.js +2 -2
- package/dist/translations/en-au.d.ts +2 -2
- package/dist/translations/en-au.js +2 -2
- package/dist/translations/en-au.umd.js +2 -2
- package/dist/translations/en-gb.d.ts +2 -2
- package/dist/translations/en-gb.js +2 -2
- package/dist/translations/en-gb.umd.js +2 -2
- package/dist/translations/en.d.ts +2 -2
- package/dist/translations/en.js +2 -2
- package/dist/translations/en.umd.js +2 -2
- package/dist/translations/eo.d.ts +2 -2
- package/dist/translations/eo.js +2 -2
- package/dist/translations/eo.umd.js +2 -2
- package/dist/translations/es-co.d.ts +2 -2
- package/dist/translations/es-co.js +2 -2
- package/dist/translations/es-co.umd.js +2 -2
- package/dist/translations/es.d.ts +2 -2
- package/dist/translations/es.js +2 -2
- package/dist/translations/es.umd.js +2 -2
- package/dist/translations/et.d.ts +2 -2
- package/dist/translations/et.js +2 -2
- package/dist/translations/et.umd.js +2 -2
- package/dist/translations/eu.d.ts +2 -2
- package/dist/translations/eu.js +2 -2
- package/dist/translations/eu.umd.js +2 -2
- package/dist/translations/fa.d.ts +2 -2
- package/dist/translations/fa.js +2 -2
- package/dist/translations/fa.umd.js +2 -2
- package/dist/translations/fi.d.ts +2 -2
- package/dist/translations/fi.js +2 -2
- package/dist/translations/fi.umd.js +2 -2
- package/dist/translations/fr.d.ts +2 -2
- package/dist/translations/fr.js +2 -2
- package/dist/translations/fr.umd.js +2 -2
- package/dist/translations/gl.d.ts +2 -2
- package/dist/translations/gl.js +2 -2
- package/dist/translations/gl.umd.js +2 -2
- package/dist/translations/gu.d.ts +2 -2
- package/dist/translations/gu.js +2 -2
- package/dist/translations/gu.umd.js +2 -2
- package/dist/translations/he.d.ts +2 -2
- package/dist/translations/he.js +2 -2
- package/dist/translations/he.umd.js +2 -2
- package/dist/translations/hi.d.ts +2 -2
- package/dist/translations/hi.js +2 -2
- package/dist/translations/hi.umd.js +2 -2
- package/dist/translations/hr.d.ts +2 -2
- package/dist/translations/hr.js +2 -2
- package/dist/translations/hr.umd.js +2 -2
- package/dist/translations/hu.d.ts +2 -2
- package/dist/translations/hu.js +2 -2
- package/dist/translations/hu.umd.js +2 -2
- package/dist/translations/hy.d.ts +2 -2
- package/dist/translations/hy.js +2 -2
- package/dist/translations/hy.umd.js +2 -2
- package/dist/translations/id.d.ts +2 -2
- package/dist/translations/id.js +2 -2
- package/dist/translations/id.umd.js +2 -2
- package/dist/translations/it.d.ts +2 -2
- package/dist/translations/it.js +2 -2
- package/dist/translations/it.umd.js +2 -2
- package/dist/translations/ja.d.ts +2 -2
- package/dist/translations/ja.js +2 -2
- package/dist/translations/ja.umd.js +2 -2
- package/dist/translations/jv.d.ts +2 -2
- package/dist/translations/jv.js +2 -2
- package/dist/translations/jv.umd.js +2 -2
- package/dist/translations/kk.d.ts +2 -2
- package/dist/translations/kk.js +2 -2
- package/dist/translations/kk.umd.js +2 -2
- package/dist/translations/km.d.ts +2 -2
- package/dist/translations/km.js +2 -2
- package/dist/translations/km.umd.js +2 -2
- package/dist/translations/kn.d.ts +2 -2
- package/dist/translations/kn.js +2 -2
- package/dist/translations/kn.umd.js +2 -2
- package/dist/translations/ko.d.ts +2 -2
- package/dist/translations/ko.js +2 -2
- package/dist/translations/ko.umd.js +2 -2
- package/dist/translations/ku.d.ts +2 -2
- package/dist/translations/ku.js +2 -2
- package/dist/translations/ku.umd.js +2 -2
- package/dist/translations/lt.d.ts +2 -2
- package/dist/translations/lt.js +2 -2
- package/dist/translations/lt.umd.js +2 -2
- package/dist/translations/lv.d.ts +2 -2
- package/dist/translations/lv.js +2 -2
- package/dist/translations/lv.umd.js +2 -2
- package/dist/translations/ms.d.ts +2 -2
- package/dist/translations/ms.js +2 -2
- package/dist/translations/ms.umd.js +2 -2
- package/dist/translations/nb.d.ts +2 -2
- package/dist/translations/nb.js +2 -2
- package/dist/translations/nb.umd.js +2 -2
- package/dist/translations/ne.d.ts +2 -2
- package/dist/translations/ne.js +2 -2
- package/dist/translations/ne.umd.js +2 -2
- package/dist/translations/nl.d.ts +2 -2
- package/dist/translations/nl.js +2 -2
- package/dist/translations/nl.umd.js +2 -2
- package/dist/translations/no.d.ts +2 -2
- package/dist/translations/no.js +2 -2
- package/dist/translations/no.umd.js +2 -2
- package/dist/translations/oc.d.ts +2 -2
- package/dist/translations/oc.js +2 -2
- package/dist/translations/oc.umd.js +2 -2
- package/dist/translations/pl.d.ts +2 -2
- package/dist/translations/pl.js +2 -2
- package/dist/translations/pl.umd.js +2 -2
- package/dist/translations/pt-br.d.ts +2 -2
- package/dist/translations/pt-br.js +2 -2
- package/dist/translations/pt-br.umd.js +2 -2
- package/dist/translations/pt.d.ts +2 -2
- package/dist/translations/pt.js +2 -2
- package/dist/translations/pt.umd.js +2 -2
- package/dist/translations/ro.d.ts +2 -2
- package/dist/translations/ro.js +2 -2
- package/dist/translations/ro.umd.js +2 -2
- package/dist/translations/ru.d.ts +2 -2
- package/dist/translations/ru.js +2 -2
- package/dist/translations/ru.umd.js +2 -2
- package/dist/translations/si.d.ts +2 -2
- package/dist/translations/si.js +2 -2
- package/dist/translations/si.umd.js +2 -2
- package/dist/translations/sk.d.ts +2 -2
- package/dist/translations/sk.js +2 -2
- package/dist/translations/sk.umd.js +2 -2
- package/dist/translations/sl.d.ts +2 -2
- package/dist/translations/sl.js +2 -2
- package/dist/translations/sl.umd.js +2 -2
- package/dist/translations/sq.d.ts +2 -2
- package/dist/translations/sq.js +2 -2
- package/dist/translations/sq.umd.js +2 -2
- package/dist/translations/sr-latn.d.ts +2 -2
- package/dist/translations/sr-latn.js +2 -2
- package/dist/translations/sr-latn.umd.js +2 -2
- package/dist/translations/sr.d.ts +2 -2
- package/dist/translations/sr.js +2 -2
- package/dist/translations/sr.umd.js +2 -2
- package/dist/translations/sv.d.ts +2 -2
- package/dist/translations/sv.js +2 -2
- package/dist/translations/sv.umd.js +2 -2
- package/dist/translations/th.d.ts +2 -2
- package/dist/translations/th.js +2 -2
- package/dist/translations/th.umd.js +2 -2
- package/dist/translations/ti.d.ts +2 -2
- package/dist/translations/ti.js +2 -2
- package/dist/translations/ti.umd.js +2 -2
- package/dist/translations/tk.d.ts +2 -2
- package/dist/translations/tk.js +2 -2
- package/dist/translations/tk.umd.js +2 -2
- package/dist/translations/tr.d.ts +2 -2
- package/dist/translations/tr.js +2 -2
- package/dist/translations/tr.umd.js +2 -2
- package/dist/translations/tt.d.ts +2 -2
- package/dist/translations/tt.js +2 -2
- package/dist/translations/tt.umd.js +2 -2
- package/dist/translations/ug.d.ts +2 -2
- package/dist/translations/ug.js +2 -2
- package/dist/translations/ug.umd.js +2 -2
- package/dist/translations/uk.d.ts +2 -2
- package/dist/translations/uk.js +2 -2
- package/dist/translations/uk.umd.js +2 -2
- package/dist/translations/ur.d.ts +2 -2
- package/dist/translations/ur.js +2 -2
- package/dist/translations/ur.umd.js +2 -2
- package/dist/translations/uz.d.ts +2 -2
- package/dist/translations/uz.js +2 -2
- package/dist/translations/uz.umd.js +2 -2
- package/dist/translations/vi.d.ts +2 -2
- package/dist/translations/vi.js +2 -2
- package/dist/translations/vi.umd.js +2 -2
- package/dist/translations/zh-cn.d.ts +2 -2
- package/dist/translations/zh-cn.js +2 -2
- package/dist/translations/zh-cn.umd.js +2 -2
- package/dist/translations/zh.d.ts +2 -2
- package/dist/translations/zh.js +2 -2
- package/dist/translations/zh.umd.js +2 -2
- package/lang/translations/af.po +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/ast.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +2 -2
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/eo.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/eu.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/gu.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/hy.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/kk.po +1 -1
- package/lang/translations/km.po +1 -1
- package/lang/translations/kn.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nb.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/oc.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/si.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sl.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/ti.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/uz.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +31 -8
- package/src/adapters/aiadapter.d.ts +1 -1
- package/src/adapters/aiadapter.js +2 -2
- package/src/adapters/aitextadapter.d.ts +1 -1
- package/src/adapters/aitextadapter.js +2 -2
- package/src/adapters/awstextadapter.d.ts +1 -1
- package/src/adapters/awstextadapter.js +2 -2
- package/src/adapters/openaitextadapter.d.ts +1 -1
- package/src/adapters/openaitextadapter.js +2 -2
- package/src/aiassistant.d.ts +21 -3
- package/src/aiassistant.js +2 -2
- package/src/aiassistantediting.d.ts +3 -3
- package/src/aiassistantediting.js +2 -2
- package/src/aiassistantui.d.ts +1 -1
- package/src/aiassistantui.js +2 -2
- package/src/aiconfig.d.ts +1 -1
- package/src/aiconfig.js +1 -1
- package/src/augmentation.d.ts +1 -1
- package/src/augmentation.js +1 -1
- package/src/index.d.ts +3 -2
- package/src/index.js +2 -2
- package/src/legacyerrors.d.ts +1 -1
- package/src/legacyerrors.js +2 -2
- package/src/ui/aiassistantcontroller.d.ts +1 -1
- package/src/ui/aiassistantcontroller.js +3 -3
- package/src/ui/form/aiformcontentarea.d.ts +1 -1
- package/src/ui/form/aiformcontentarea.js +2 -2
- package/src/ui/form/aiformerrorview.d.ts +1 -1
- package/src/ui/form/aiformerrorview.js +2 -2
- package/src/ui/form/aiformpromptview.d.ts +1 -1
- package/src/ui/form/aiformpromptview.js +2 -2
- package/src/ui/form/aiformtoolbarview.d.ts +1 -1
- package/src/ui/form/aiformtoolbarview.js +2 -2
- package/src/ui/form/aiformview.d.ts +1 -1
- package/src/ui/form/aiformview.js +2 -2
- package/src/ui/form/aihistorylistitemview.d.ts +1 -1
- package/src/ui/form/aihistorylistitemview.js +2 -2
- package/src/ui/form/aihistorylistview.d.ts +1 -1
- package/src/ui/form/aihistorylistview.js +2 -2
- package/src/ui/form/prompthistory.d.ts +1 -1
- package/src/ui/form/prompthistory.js +2 -2
- package/src/ui/showaiassistantcommand.d.ts +1 -1
- package/src/ui/showaiassistantcommand.js +2 -2
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +2 -2
- package/src/utils/normalizecommandsconfig.d.ts +1 -1
- package/src/utils/normalizecommandsconfig.js +2 -2
- package/theme/ai-dropdown.css +1 -1
- package/theme/ai-form.css +1 -1
- package/theme/ai.css +1 -1
- package/dist/adapters/aiadapter.d.ts +0 -60
- package/dist/adapters/aitextadapter.d.ts +0 -150
- package/dist/adapters/awstextadapter.d.ts +0 -183
- package/dist/adapters/openaitextadapter.d.ts +0 -187
- package/dist/aiassistant.d.ts +0 -393
- package/dist/aiassistantediting.d.ts +0 -59
- package/dist/aiassistantui.d.ts +0 -62
- package/dist/aiconfig.d.ts +0 -73
- package/dist/augmentation.d.ts +0 -31
- package/dist/index.d.ts +0 -17
- package/dist/legacyerrors.d.ts +0 -9
- package/dist/ui/aiassistantcontroller.d.ts +0 -113
- package/dist/ui/form/aiformcontentarea.d.ts +0 -52
- package/dist/ui/form/aiformerrorview.d.ts +0 -30
- package/dist/ui/form/aiformpromptview.d.ts +0 -50
- package/dist/ui/form/aiformtoolbarview.d.ts +0 -62
- package/dist/ui/form/aiformview.d.ts +0 -145
- package/dist/ui/form/aihistorylistitemview.d.ts +0 -22
- package/dist/ui/form/aihistorylistview.d.ts +0 -39
- package/dist/ui/form/prompthistory.d.ts +0 -24
- package/dist/ui/showaiassistantcommand.d.ts +0 -44
- package/dist/utils/common-translations.d.ts +0 -13
- package/dist/utils/normalizecommandsconfig.d.ts +0 -18
package/lang/translations/sl.po
CHANGED
package/lang/translations/sq.po
CHANGED
package/lang/translations/sr.po
CHANGED
package/lang/translations/sv.po
CHANGED
package/lang/translations/th.po
CHANGED
package/lang/translations/ti.po
CHANGED
package/lang/translations/tk.po
CHANGED
package/lang/translations/tr.po
CHANGED
package/lang/translations/tt.po
CHANGED
package/lang/translations/ug.po
CHANGED
package/lang/translations/uk.po
CHANGED
package/lang/translations/ur.po
CHANGED
package/lang/translations/uz.po
CHANGED
package/lang/translations/vi.po
CHANGED
package/lang/translations/zh.po
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ai",
|
|
3
|
-
"version": "44.
|
|
3
|
+
"version": "44.2.0-alpha.0",
|
|
4
4
|
"description": "AI Assistant feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -24,13 +24,14 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@aws-sdk/client-bedrock-runtime": "3.621.0",
|
|
27
|
-
"@ckeditor/ckeditor5-clipboard": "44.
|
|
28
|
-
"@ckeditor/ckeditor5-core": "44.
|
|
29
|
-
"@ckeditor/ckeditor5-engine": "44.
|
|
30
|
-
"@ckeditor/ckeditor5-
|
|
31
|
-
"@ckeditor/ckeditor5-
|
|
32
|
-
"ckeditor5": "44.
|
|
33
|
-
"ckeditor5
|
|
27
|
+
"@ckeditor/ckeditor5-clipboard": "44.2.0-alpha.0",
|
|
28
|
+
"@ckeditor/ckeditor5-core": "44.2.0-alpha.0",
|
|
29
|
+
"@ckeditor/ckeditor5-engine": "44.2.0-alpha.0",
|
|
30
|
+
"@ckeditor/ckeditor5-table": "44.2.0-alpha.0",
|
|
31
|
+
"@ckeditor/ckeditor5-ui": "44.2.0-alpha.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "44.2.0-alpha.0",
|
|
33
|
+
"ckeditor5": "44.2.0-alpha.0",
|
|
34
|
+
"ckeditor5-collaboration": "44.2.0-alpha.0",
|
|
34
35
|
"lodash-es": "4.17.21"
|
|
35
36
|
},
|
|
36
37
|
"type": "module",
|
|
@@ -49,5 +50,27 @@
|
|
|
49
50
|
"url": "https://support.ckeditor.com/hc/en-us/requests/new"
|
|
50
51
|
},
|
|
51
52
|
"types": "src/index.d.ts",
|
|
53
|
+
"exports": {
|
|
54
|
+
".": {
|
|
55
|
+
"types": "./src/index.d.ts",
|
|
56
|
+
"import": "./src/index.js",
|
|
57
|
+
"default": "./src/index.js"
|
|
58
|
+
},
|
|
59
|
+
"./dist/*": {
|
|
60
|
+
"types": "./src/index.d.ts",
|
|
61
|
+
"import": "./dist/*",
|
|
62
|
+
"default": "./dist/*"
|
|
63
|
+
},
|
|
64
|
+
"./src/*": {
|
|
65
|
+
"types": "./src/*.d.ts",
|
|
66
|
+
"import": "./src/*",
|
|
67
|
+
"default": "./src/*"
|
|
68
|
+
},
|
|
69
|
+
"./build/*": "./build/*",
|
|
70
|
+
"./lang/*": "./lang/*",
|
|
71
|
+
"./theme/*": "./theme/*",
|
|
72
|
+
"./ckeditor5-metadata.json": "./ckeditor5-metadata.json",
|
|
73
|
+
"./package.json": "./package.json"
|
|
74
|
+
},
|
|
52
75
|
"obfuscated": true
|
|
53
76
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x7074f1=_0x2fe6;function _0x2fe6(_0x45b8e2,_0x43de80){var _0x4269cb=_0x4269();return _0x2fe6=function(_0x2fe6c6,_0x442542){_0x2fe6c6=_0x2fe6c6-0x1de;var _0x102a58=_0x4269cb[_0x2fe6c6];return _0x102a58;},_0x2fe6(_0x45b8e2,_0x43de80);}(function(_0x50639a,_0x305dd4){var _0x5baac0=_0x2fe6,_0x4b87f0=_0x50639a();while(!![]){try{var _0x3f6475=-parseInt(_0x5baac0(0x1ed))/0x1+parseInt(_0x5baac0(0x1f0))/0x2*(-parseInt(_0x5baac0(0x1ef))/0x3)+parseInt(_0x5baac0(0x1eb))/0x4+parseInt(_0x5baac0(0x1e0))/0x5*(-parseInt(_0x5baac0(0x1e4))/0x6)+parseInt(_0x5baac0(0x1e8))/0x7*(-parseInt(_0x5baac0(0x1e5))/0x8)+-parseInt(_0x5baac0(0x1e3))/0x9+parseInt(_0x5baac0(0x1e6))/0xa;if(_0x3f6475===_0x305dd4)break;else _0x4b87f0['push'](_0x4b87f0['shift']());}catch(_0x51f9ff){_0x4b87f0['push'](_0x4b87f0['shift']());}}}(_0x4269,0x31f44));import{Plugin as _0x17fa68}from'ckeditor5/src/core.js';import{CKEditorError as _0x3f37cc}from'ckeditor5/src/utils.js';function _0x4269(){var _0x27086e=['130kNUnVE','isPremiumPlugin','pluginName','1054764yZGDsn','14298XUxcBb','2216pPDgJg','13079160BuCRMN','textAdapter','6692fviUsa','afterInit','name','80012Woyumv','AIRequestError','401813ieZpDK','aiadapter-text-adapter-not-set','416292IFrxJB','4FUduLN','isOfficialPlugin','AIAdapter'];_0x4269=function(){return _0x27086e;};return _0x4269();}export default class K extends _0x17fa68{static get[_0x7074f1(0x1e2)](){var _0x56e9eb=_0x7074f1;return _0x56e9eb(0x1df);}static get[_0x7074f1(0x1de)](){return!0x0;}static get[_0x7074f1(0x1e1)](){return!0x0;}[_0x7074f1(0x1e9)](){var _0x43b36c=_0x7074f1;if(!this[_0x43b36c(0x1e7)])throw new _0x3f37cc(_0x43b36c(0x1ee),null);}}export class AIRequestError extends Error{constructor(_0x4d5933){var _0x414f72=_0x7074f1;super(_0x4d5933),this[_0x414f72(0x1ea)]=_0x414f72(0x1ec);}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4276d9=_0x2706;(function(_0x3b0938,_0xd3eaf7){const _0x12e3af=_0x2706,_0x31ac87=_0x3b0938();while(!![]){try{const _0x163de8=-parseInt(_0x12e3af(0xf4))/0x1*(parseInt(_0x12e3af(0xf6))/0x2)+-parseInt(_0x12e3af(0x112))/0x3*(-parseInt(_0x12e3af(0x106))/0x4)+parseInt(_0x12e3af(0x108))/0x5*(-parseInt(_0x12e3af(0x110))/0x6)+-parseInt(_0x12e3af(0x104))/0x7*(parseInt(_0x12e3af(0xf5))/0x8)+-parseInt(_0x12e3af(0x111))/0x9+parseInt(_0x12e3af(0x109))/0xa+parseInt(_0x12e3af(0xfc))/0xb;if(_0x163de8===_0xd3eaf7)break;else _0x31ac87['push'](_0x31ac87['shift']());}catch(_0x4a6830){_0x31ac87['push'](_0x31ac87['shift']());}}}(_0x1d11,0xedca1));import{Plugin as _0x46ee10}from'ckeditor5/src/core.js';import{CKEditorError as _0x3571d3}from'ckeditor5/src/utils.js';function _0x1d11(){const _0x2366ff=['415305gjrBgq','12TciGUo','requires','resolve','object','reject','editor','makeRequest','sendRequest','55UfxuOw','168jbOPSp','4528jcpFzq','name','assign','_prepareRequestHeaders','AbortError','_prepareRequestParameters','13627438SaqHbT','init','aborted','textAdapter','AI_ERROR_GET_PARAMETERS','error','plugins','application/json','136241sUtOZk','get','1622644otbZyi','abort','5pojNuY','5051720eGnIPv','signal','AI_ERROR_GET_HEADERS','abortController','locale','aitextadapter-send-request-failed','catch','10879806EjamID'];_0x1d11=function(){return _0x2366ff;};return _0x1d11();}import{default as _0x4ccaa5,AIRequestError as _0xa40e83}from'./aiadapter.js';import{getTranslation as _0x4b6a39}from'../utils/common-translations.js';function _0x2706(_0x6cbbd7,_0x3c8279){const _0x1d114a=_0x1d11();return _0x2706=function(_0x2706d8,_0x588b2a){_0x2706d8=_0x2706d8-0xf0;let _0x2b6fe3=_0x1d114a[_0x2706d8];return _0x2b6fe3;},_0x2706(_0x6cbbd7,_0x3c8279);}export default class P extends _0x46ee10{static get[_0x4276d9(0x113)](){return[_0x4ccaa5];}constructor(_0x354732){const _0x1d7eb7=_0x4276d9;super(_0x354732),this[_0x1d7eb7(0x10c)]=new AbortController();}[_0x4276d9(0xfd)](){const _0x3e32c4=_0x4276d9;this[_0x3e32c4(0xf1)][_0x3e32c4(0x102)][_0x3e32c4(0x105)](_0x4ccaa5)[_0x3e32c4(0xff)]=this;}[_0x4276d9(0x107)](){const _0x17473d=_0x4276d9;this[_0x17473d(0x10c)][_0x17473d(0x10a)][_0x17473d(0xfe)]||(this[_0x17473d(0x10c)][_0x17473d(0x107)](),this[_0x17473d(0x10c)]=new AbortController());}async[_0x4276d9(0xf2)](_0x2c1545){const _0x1c6599=_0x4276d9;return this[_0x1c6599(0xf3)](_0x2c1545)[_0x1c6599(0x10f)](_0x11f4d1=>{const _0x39b2ed=_0x1c6599;if(_0x11f4d1 instanceof _0xa40e83)return Promise[_0x39b2ed(0xf0)](_0x11f4d1);if(_0x39b2ed(0xfa)==_0x11f4d1[_0x39b2ed(0xf7)])return Promise[_0x39b2ed(0x114)]();throw console[_0x39b2ed(0x101)](_0x11f4d1),new _0x3571d3(_0x39b2ed(0x10e),null);});}async[_0x4276d9(0xf9)](_0x54bdbf,_0x35429a){const _0x33c904=_0x4276d9,_0x1e5a3b=this[_0x33c904(0xf1)][_0x33c904(0x10d)],_0x3a01f5={'Content-Type':_0x33c904(0x103)};if(_0x33c904(0x115)==typeof _0x54bdbf)Object[_0x33c904(0xf8)](_0x3a01f5,_0x54bdbf);else{if(_0x54bdbf)try{const _0x40a6c7=await _0x54bdbf(_0x35429a);Object[_0x33c904(0xf8)](_0x3a01f5,_0x40a6c7);}catch(_0x268b30){return Promise[_0x33c904(0xf0)](new _0xa40e83(_0x4b6a39(_0x1e5a3b,_0x33c904(0x10b))));}}return _0x3a01f5;}async[_0x4276d9(0xfb)](_0x45d0fa,_0x18b26b){const _0x196972=_0x4276d9,_0x55e4b8=this[_0x196972(0xf1)][_0x196972(0x10d)];if(_0x196972(0x115)==typeof _0x45d0fa)return _0x45d0fa;try{return await _0x45d0fa(_0x18b26b);}catch(_0x3a653d){return Promise[_0x196972(0xf0)](new _0xa40e83(_0x4b6a39(_0x55e4b8,_0x196972(0x100))));}}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7c38f4=_0x269f;(function(_0x53b675,_0x2b07d2){const _0x48622f=_0x269f,_0x35ffc9=_0x53b675();while(!![]){try{const _0x265867=-parseInt(_0x48622f(0x10c))/0x1+-parseInt(_0x48622f(0x11f))/0x2*(-parseInt(_0x48622f(0x111))/0x3)+-parseInt(_0x48622f(0x104))/0x4+-parseInt(_0x48622f(0x13b))/0x5*(parseInt(_0x48622f(0x138))/0x6)+parseInt(_0x48622f(0x123))/0x7+-parseInt(_0x48622f(0x110))/0x8+parseInt(_0x48622f(0x126))/0x9;if(_0x265867===_0x2b07d2)break;else _0x35ffc9['push'](_0x35ffc9['shift']());}catch(_0x5085c8){_0x35ffc9['push'](_0x35ffc9['shift']());}}}(_0x2cb0,0x8a2ec));import{default as _0x2d0064}from'./aitextadapter.js';function _0x269f(_0x3d3f1c,_0x35abfd){const _0x2cb018=_0x2cb0();return _0x269f=function(_0x269fb5,_0x3c2ef9){_0x269fb5=_0x269fb5-0xf2;let _0x4a2d57=_0x2cb018[_0x269fb5];return _0x4a2d57;},_0x269f(_0x3d3f1c,_0x35abfd);}import{AIRequestError as _0x542a57}from'./aiadapter.js';import{BedrockRuntimeClient as _0x17db26,InvokeModelCommand as _0x15aa03,InvokeModelWithResponseStreamCommand as _0x5293c7}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x49fed9}from'../utils/common-translations.js';export default class O extends _0x2d0064{static get[_0x7c38f4(0x12e)](){const _0x462e84=_0x7c38f4;return _0x462e84(0x11d);}constructor(_0x299cc6){const _0x49afa1=_0x7c38f4;super(_0x299cc6),_0x299cc6[_0x49afa1(0xfb)][_0x49afa1(0x12f)](_0x49afa1(0x11a))||_0x299cc6[_0x49afa1(0xfb)][_0x49afa1(0x135)](_0x49afa1(0x11a),{'model':_0x49afa1(0x125),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x49afa1(0x132),'stream':!0x0}),this[_0x49afa1(0x143)]=_0x299cc6[_0x49afa1(0xfb)][_0x49afa1(0x12f)](_0x49afa1(0xf5)),this[_0x49afa1(0xf3)]=_0x299cc6[_0x49afa1(0xfb)][_0x49afa1(0x12f)](_0x49afa1(0x134)),this[_0x49afa1(0xf9)]=_0x299cc6[_0x49afa1(0xfb)][_0x49afa1(0x12f)](_0x49afa1(0x10e)),this[_0x49afa1(0x11c)]=_0x299cc6[_0x49afa1(0xfb)][_0x49afa1(0x12f)](_0x49afa1(0x11a));}async[_0x7c38f4(0x133)]({query:_0x3ab456,context:_0x10e5fe,onData:_0x390a30,actionId:_0x56524d}){const _0x1f9137=_0x7c38f4,{model:_0x5bc5fd,stream:_0x541d79,..._0x57b576}=await this[_0x1f9137(0x107)](this[_0x1f9137(0x11c)],_0x56524d),_0x18c57d={'prompt':await this[_0x1f9137(0x122)](_0x3ab456,_0x10e5fe,_0x5bc5fd,_0x56524d),..._0x57b576};this[_0x1f9137(0x143)]?await this[_0x1f9137(0x11b)](_0x18c57d,_0x5bc5fd,_0x541d79,_0x390a30,_0x56524d):await this[_0x1f9137(0x121)](_0x18c57d,_0x5bc5fd,_0x541d79,_0x390a30);}async[_0x7c38f4(0x122)](_0x4929ae,_0x5b1361,_0x597c20,_0x1132ec){const _0x2b44fa=_0x7c38f4;let _0x44c78a,_0x1988b2;return _0x5b1361?(_0x44c78a=_0x2b44fa(0x13f),_0x1988b2=_0x2b44fa(0x117)+_0x4929ae+_0x2b44fa(0xf8)+_0x5b1361):(_0x44c78a=_0x2b44fa(0x10a),_0x1988b2=_0x4929ae),_0x2b44fa(0x12a)==this[_0x2b44fa(0x108)](_0x597c20)?_0x2b44fa(0x127)+_0x44c78a+_0x2b44fa(0x10f)+_0x1988b2+_0x2b44fa(0x109):_0x2b44fa(0x13c)+_0x44c78a+'\x0a'+_0x1988b2+_0x2b44fa(0x129);}[_0x7c38f4(0x108)](_0x4ed4e0){const _0x22b8bb=_0x7c38f4;if(/^anthropic\.claude/[_0x22b8bb(0x131)](_0x4ed4e0))return _0x22b8bb(0xf7);if(/^ai21\.j2/[_0x22b8bb(0x131)](_0x4ed4e0))return _0x22b8bb(0x114);if(/^cohere\.command/[_0x22b8bb(0x131)](_0x4ed4e0))return _0x22b8bb(0x142);if(/^meta\.llama/[_0x22b8bb(0x131)](_0x4ed4e0))return _0x22b8bb(0x12a);throw new _0x542a57(_0x49fed9(this[_0x22b8bb(0x128)][_0x22b8bb(0x10b)],_0x22b8bb(0x103),_0x4ed4e0));}async[_0x7c38f4(0x11b)](_0x47efb3,_0x355153,_0x445eaf,_0x5b6057,_0x3b97a5){const _0x425799=_0x7c38f4,_0x54e0ff={'method':_0x425799(0x139),'headers':await this[_0x425799(0xf2)](this[_0x425799(0xf9)],_0x3b97a5),'body':JSON[_0x425799(0xfe)]({..._0x47efb3,'model':_0x355153,'stream':_0x445eaf}),'signal':this[_0x425799(0x113)][_0x425799(0x13e)]},_0x39ce0e=await fetch(this[_0x425799(0x143)],_0x54e0ff);_0x445eaf?await this[_0x425799(0x118)](_0x39ce0e,_0x355153,_0x5b6057):await this[_0x425799(0x136)](_0x39ce0e,_0x355153,_0x5b6057);}async[_0x7c38f4(0x121)](_0x48d1bf,_0x2940fb,_0x1291c5,_0x310023){const _0x56be09=_0x7c38f4,_0x4085cc=new _0x17db26(this[_0x56be09(0xf3)]),_0xaf354b={'body':JSON[_0x56be09(0xfe)](_0x48d1bf),'contentType':_0x56be09(0xf6),'accept':_0x56be09(0xf6),'modelId':_0x2940fb};let _0x27ad97;if(_0x1291c5){const _0x1f9416=new _0x5293c7(_0xaf354b);_0x27ad97=await _0x4085cc[_0x56be09(0x112)](_0x1f9416,{'abortSignal':this[_0x56be09(0x113)][_0x56be09(0x13e)]}),await this[_0x56be09(0xfc)](_0x27ad97,_0x2940fb,_0x310023);}else{const _0x405344=new _0x15aa03(_0xaf354b);_0x27ad97=await _0x4085cc[_0x56be09(0x112)](_0x405344,{'abortSignal':this[_0x56be09(0x113)][_0x56be09(0x13e)]}),await this[_0x56be09(0x136)](_0x27ad97,_0x2940fb,_0x310023);}}async[_0x7c38f4(0xfc)](_0x3dedd0,_0xa24d82,_0x6c7b09){const _0x48e0ad=_0x7c38f4,_0x5b8496=_0x3dedd0[_0x48e0ad(0x100)],_0x38954f=new TextDecoder(_0x48e0ad(0x12b));let _0x24e3fd='';for await(const _0x4c2029 of _0x5b8496)if(_0x4c2029[_0x48e0ad(0xfa)]){const _0x6cb7fe=_0x38954f[_0x48e0ad(0x119)](_0x4c2029[_0x48e0ad(0xfa)][_0x48e0ad(0x140)]),_0x54087e=JSON[_0x48e0ad(0xfd)](_0x6cb7fe);_0x24e3fd+=this[_0x48e0ad(0x12d)](_0x54087e,_0xa24d82),_0x6c7b09(_0x24e3fd);}return Promise[_0x48e0ad(0xf4)]();}async[_0x7c38f4(0x118)](_0x332104,_0x4d27ac,_0x21eb4e){const _0x40c12d=_0x7c38f4,_0x257138=_0x332104[_0x40c12d(0x100)],_0x6deb89=new TextDecoder(_0x40c12d(0x12b)),_0x293947=_0x257138[_0x40c12d(0x124)]();let _0x25d017='',_0x45bacb='',_0xadf1dc=!0x1;for(;!_0xadf1dc;){const {done:_0x1df20a,value:_0x9f5449}=await _0x293947[_0x40c12d(0x13a)]();if(_0xadf1dc=_0x1df20a,_0xadf1dc)break;const _0x508c0e=(_0x25d017+_0x6deb89[_0x40c12d(0x119)](_0x9f5449))[_0x40c12d(0x120)]('\x0a')[_0x40c12d(0x101)](_0x206cb2=>{const _0x41587e=_0x40c12d;try{return _0x25d017='',JSON[_0x41587e(0xfd)](_0x206cb2);}catch(_0x235c31){return _0x25d017=_0x206cb2,null;}})[_0x40c12d(0x130)](_0x2d36fd=>null!==_0x2d36fd);_0x508c0e[_0x40c12d(0xff)]&&(_0x45bacb+=_0x508c0e[_0x40c12d(0x101)](_0x587716=>this[_0x40c12d(0x12d)](_0x587716,_0x4d27ac))[_0x40c12d(0x105)](''),_0x21eb4e(_0x45bacb));}return Promise[_0x40c12d(0xf4)]();}async[_0x7c38f4(0x136)](_0x3e3f9f,_0x26ecc6,_0xc8e6bf){const _0xbb1ac4=_0x7c38f4;let _0x1d7fb6;return _0x1d7fb6=_0x3e3f9f instanceof Response?await _0x3e3f9f[_0xbb1ac4(0x137)]():JSON[_0xbb1ac4(0xfd)](Buffer[_0xbb1ac4(0x102)](_0x3e3f9f[_0xbb1ac4(0x100)])[_0xbb1ac4(0x12c)](_0xbb1ac4(0x11e))),(_0xc8e6bf(this[_0xbb1ac4(0x12d)](_0x1d7fb6,_0x26ecc6)),Promise[_0xbb1ac4(0xf4)]());}[_0x7c38f4(0x12d)](_0x10323f,_0x11eee0){const _0x18d0fc=_0x7c38f4;switch(this[_0x18d0fc(0x108)](_0x11eee0)){case _0x18d0fc(0xf7):return _0x10323f[_0x18d0fc(0x115)];case _0x18d0fc(0x114):return _0x10323f[_0x18d0fc(0x141)][0x0][_0x18d0fc(0x116)][_0x18d0fc(0x106)];case _0x18d0fc(0x142):return _0x10323f[_0x18d0fc(0x13d)][0x0][_0x18d0fc(0x106)];case _0x18d0fc(0x12a):return _0x10323f[_0x18d0fc(0x10d)];}}}function _0x2cb0(){const _0x224d3b=['locale','665129qlCpIP','generation','ai.aws.requestHeaders','\x0a<</SYS>>\x0a[INST]\x0a','4809016klFrWK','16539ryRzam','send','abortController','ai21.j2','completion','data','Instruction:\x0a','_readStreamableResponse','decode','ai.aws.requestParameters','_processProxyRequest','_requestParameters','AWSTextAdapter','utf8','338enQZoc','split','_processAWSRequest','preparePrompt','7467243BNLMkI','getReader','anthropic.claude-v2','2239470yzHeox','<<SYS>>\x0a','editor','\x0a\x0aAssistant:','meta.llama','utf-8','toString','_getGeneratedText','pluginName','get','filter','test','bedrock-2023-05-31','sendRequest','ai.aws.bedrockClientConfig','define','_readStaticResponse','json','6jSYrvl','POST','read','1094295TcKKJG','Human:\x0a','generations','signal','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','bytes','completions','cohere.command','_apiUrl','_prepareRequestHeaders','_bedrockClientConfig','resolve','ai.aws.apiUrl','application/json','anthropic.claude','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_requestHeaders','chunk','config','_readAsyncIterableResponse','parse','stringify','length','body','map','from','AI_ERROR_UNSUPPORTED_MODEL','784660oxFqDJ','join','text','_prepareRequestParameters','getModelFamily','\x0a[/INST]','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.'];_0x2cb0=function(){return _0x224d3b;};return _0x2cb0();}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x19a7(){const _0xe7b15f=['get','sendRequest','ai.openAI.requestHeaders','stringify','content','ai.openAI.apiUrl','context_length_exceeded','OpenAITextAdapter','length','3438VnleeF','_cleanUpData','replace','parse','user','1cJBpLF','2010408aGKOZh','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','https://api.openai.com/v1/chat/completions','stream','1485492LNfdQN','Instruction:\x0a','filter','_isBufferIncomplete','includes','601398RXdqCX','map','delta','_requestHeaders','split','read','AI_ERROR_MODERATION','_prepareRequestParameters','Moderation','_requestParameters','resolve','text','config','POST','[DONE]','44TXwdTB','_apiUrl','537654AjBOPT','reject','ai.openAI.requestParameters','signal','129895wxNHcu','AI_ERROR_CONTEXT_LENGTH','define','data:\x20','system','gpt-3.5-turbo','locale','choices','6700ZemdcH','decode','abortController','prepareMessages','pluginName','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','message','_readStaticResponse','_readStreamableResponse','join','json','editor','body','521487pABhtn','getReader','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','_prepareRequestHeaders'];_0x19a7=function(){return _0xe7b15f;};return _0x19a7();}function _0x29b9(_0x3094e3,_0x4bcff2){const _0x19a7c2=_0x19a7();return _0x29b9=function(_0x29b929,_0x2c7189){_0x29b929=_0x29b929-0x16e;let _0x643d4b=_0x19a7c2[_0x29b929];return _0x643d4b;},_0x29b9(_0x3094e3,_0x4bcff2);}const _0x2c0f17=_0x29b9;(function(_0x351cf8,_0x476559){const _0x4ed314=_0x29b9,_0x5266d6=_0x351cf8();while(!![]){try{const _0x3cdcd7=parseInt(_0x4ed314(0x1b0))/0x1*(-parseInt(_0x4ed314(0x185))/0x2)+-parseInt(_0x4ed314(0x19e))/0x3+parseInt(_0x4ed314(0x183))/0x4*(parseInt(_0x4ed314(0x189))/0x5)+parseInt(_0x4ed314(0x16f))/0x6+parseInt(_0x4ed314(0x174))/0x7+parseInt(_0x4ed314(0x1b1))/0x8+parseInt(_0x4ed314(0x1ab))/0x9*(-parseInt(_0x4ed314(0x191))/0xa);if(_0x3cdcd7===_0x476559)break;else _0x5266d6['push'](_0x5266d6['shift']());}catch(_0x3505f0){_0x5266d6['push'](_0x5266d6['shift']());}}}(_0x19a7,0x29fc2));import{default as _0x580bc1}from'./aitextadapter.js';import{AIRequestError as _0x38be6d}from'./aiadapter.js';import{getTranslation as _0x5e1ed9}from'../utils/common-translations.js';export default class H extends _0x580bc1{static get[_0x2c0f17(0x195)](){const _0x2c1926=_0x2c0f17;return _0x2c1926(0x1a9);}constructor(_0x3a3ea9){const _0x44262d=_0x2c0f17;super(_0x3a3ea9),_0x3a3ea9[_0x44262d(0x180)][_0x44262d(0x18b)](_0x44262d(0x1a7),_0x44262d(0x1b3)),_0x3a3ea9[_0x44262d(0x180)][_0x44262d(0x1a2)](_0x44262d(0x187))||_0x3a3ea9[_0x44262d(0x180)][_0x44262d(0x18b)](_0x44262d(0x187),{'model':_0x44262d(0x18e),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x44262d(0x184)]=_0x3a3ea9[_0x44262d(0x180)][_0x44262d(0x1a2)](_0x44262d(0x1a7)),this[_0x44262d(0x177)]=_0x3a3ea9[_0x44262d(0x180)][_0x44262d(0x1a2)](_0x44262d(0x1a4))||{},this[_0x44262d(0x17d)]=_0x3a3ea9[_0x44262d(0x180)][_0x44262d(0x1a2)](_0x44262d(0x187));}async[_0x2c0f17(0x1a3)]({query:_0x145d3a,context:_0x2635e4,onData:_0xf05a29,actionId:_0x1bf8e5}){const _0x5b0138=_0x2c0f17,_0x4f0829=this[_0x5b0138(0x19c)][_0x5b0138(0x18f)],_0x185741=await this[_0x5b0138(0x194)](_0x145d3a,_0x2635e4,_0x1bf8e5),_0xa21f79=await this[_0x5b0138(0x1a1)](this[_0x5b0138(0x177)],_0x1bf8e5),_0x5644cf=await this[_0x5b0138(0x17b)](this[_0x5b0138(0x17d)],_0x1bf8e5),_0x1b1647={'messages':_0x185741,..._0x5644cf},_0x41d3e5={'method':_0x5b0138(0x181),'headers':_0xa21f79,'body':JSON[_0x5b0138(0x1a5)](_0x1b1647),'signal':this[_0x5b0138(0x193)][_0x5b0138(0x188)]},_0x54f8ca=await fetch(this[_0x5b0138(0x184)],_0x41d3e5);if(_0x54f8ca['ok'])return _0x5644cf[_0x5b0138(0x16e)]?await this[_0x5b0138(0x199)](_0x54f8ca,_0xf05a29):await this[_0x5b0138(0x198)](_0x54f8ca,_0xf05a29),Promise[_0x5b0138(0x17e)]();{const _0x15b0bf=await _0x54f8ca[_0x5b0138(0x17f)]();return _0x15b0bf[_0x5b0138(0x173)](_0x5b0138(0x1a8))?Promise[_0x5b0138(0x186)](new _0x38be6d(_0x5e1ed9(_0x4f0829,_0x5b0138(0x18a)))):_0x15b0bf[_0x5b0138(0x173)](_0x5b0138(0x17c))?Promise[_0x5b0138(0x186)](new _0x38be6d(_0x5e1ed9(_0x4f0829,_0x5b0138(0x17a)))):Promise[_0x5b0138(0x186)](new Error(_0x15b0bf));}}async[_0x2c0f17(0x194)](_0x3688d3,_0x294cd7,_0x2fa825){const _0x59ba8c=_0x2c0f17;let _0x22bbd7,_0x3f5db7;return _0x294cd7?(_0x22bbd7=_0x59ba8c(0x196),_0x3f5db7=_0x59ba8c(0x170)+_0x3688d3+_0x59ba8c(0x1b2)+_0x294cd7):(_0x22bbd7=_0x59ba8c(0x1a0),_0x3f5db7=_0x3688d3),[{'role':_0x59ba8c(0x18d),'content':_0x22bbd7},{'role':_0x59ba8c(0x1af),'content':_0x3f5db7}];}async[_0x2c0f17(0x199)](_0x49048d,_0x17de6b){const _0x220368=_0x2c0f17,_0xdeb890=_0x49048d[_0x220368(0x19d)][_0x220368(0x19f)](),_0x1fcba8=new TextDecoder();let _0x4c4e43='',_0x25b837='',_0x1b7092='',_0x20eab8=!0x1;for(;!_0x20eab8;){const {done:_0x432e5c,value:_0xb25688}=await _0xdeb890[_0x220368(0x179)](),_0xdb894c=_0x4c4e43+_0x1fcba8[_0x220368(0x192)](_0xb25688);let _0x1be346='';_0x20eab8=_0x432e5c;try{_0x1be346=this[_0x220368(0x1ac)](_0xdb894c),_0x4c4e43='';}catch(_0x2af9f1){_0x4c4e43=_0xdb894c;continue;}_0x25b837+=_0x1be346,!_0x20eab8&&this[_0x220368(0x172)](_0x25b837)||_0x25b837&&(_0x1b7092+=_0x25b837,_0x25b837='',_0x17de6b(_0x1b7092));}return Promise[_0x220368(0x17e)]();}async[_0x2c0f17(0x198)](_0x38aa20,_0x18f0d0){const _0x2809b1=_0x2c0f17;return _0x18f0d0((await _0x38aa20[_0x2809b1(0x19b)]())[_0x2809b1(0x190)][0x0][_0x2809b1(0x197)][_0x2809b1(0x1a6)]),Promise[_0x2809b1(0x17e)]();}[_0x2c0f17(0x172)](_0x3e0abb){const _0x3a2fee=_0x2c0f17,_0x54c2fe=_0x3e0abb[_0x3a2fee(0x178)]('<')[_0x3a2fee(0x1aa)]!==_0x3e0abb[_0x3a2fee(0x178)]('>')[_0x3a2fee(0x1aa)],_0xf38d85=_0x3e0abb[_0x3a2fee(0x1aa)]<0x1e;return _0x54c2fe&&_0xf38d85;}[_0x2c0f17(0x1ac)](_0x551656){const _0x4705cc=_0x2c0f17;return _0x551656[_0x4705cc(0x178)](/\n(?![^{]*\})/g)[_0x4705cc(0x175)](_0x406948=>_0x406948[_0x4705cc(0x1ad)](_0x4705cc(0x18c),''))[_0x4705cc(0x171)](_0x665295=>_0x665295&&_0x665295[_0x4705cc(0x1aa)]>0x0&&_0x4705cc(0x182)!==_0x665295)[_0x4705cc(0x175)](_0x2cba12=>{const _0x41beb0=_0x4705cc,{choices:_0x3e9632}=JSON[_0x41beb0(0x1ae)](_0x2cba12);if(_0x3e9632[0x0]&&_0x3e9632[0x0][_0x41beb0(0x176)]&&_0x3e9632[0x0][_0x41beb0(0x176)][_0x41beb0(0x1a6)])return _0x3e9632[0x0][_0x41beb0(0x176)][_0x41beb0(0x1a6)];})[_0x4705cc(0x171)](_0x51d2cf=>_0x51d2cf)[_0x4705cc(0x19a)]('');}}
|
package/src/aiassistant.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
@@ -279,7 +279,7 @@ export interface AIAssistantConfig {
|
|
|
279
279
|
*/
|
|
280
280
|
extraCommandGroups?: Array<GroupDefinition>;
|
|
281
281
|
/**
|
|
282
|
-
* A list of ids of AI commands to be removed.
|
|
282
|
+
* A list of ids of AI commands and ids of commnad groups to be removed.
|
|
283
283
|
*
|
|
284
284
|
* Learn more about {@link module:ai/aiassistant~CommandDefinition command definition and its id}.
|
|
285
285
|
*
|
|
@@ -290,6 +290,7 @@ export interface AIAssistantConfig {
|
|
|
290
290
|
* aiAssistant: {
|
|
291
291
|
* removeCommands: [
|
|
292
292
|
* 'improveWriting',
|
|
293
|
+
* 'changeTone',
|
|
293
294
|
* // ...
|
|
294
295
|
* ],
|
|
295
296
|
* // ...
|
|
@@ -324,11 +325,28 @@ export interface AIAssistantConfig {
|
|
|
324
325
|
* @default [ 'media', 'rawHtml', 'tableOfContents' ]
|
|
325
326
|
*/
|
|
326
327
|
disabledElements?: Array<string>;
|
|
328
|
+
/**
|
|
329
|
+
* Determines whether the comment markers should be preserved when the editor content is processed by the AI Assistant.
|
|
330
|
+
*
|
|
331
|
+
* Note, that this behavior depends on copy-paste comments functionality setting
|
|
332
|
+
* (see {@link module:comments/config~CommentsConfig#copyMarkers `CommentsConfig#copyMarkers`}):
|
|
333
|
+
*
|
|
334
|
+
* * When set to `'never'`, comment markers will not be preserved.
|
|
335
|
+
* * When set to `'default'`, comment markers will be preserved only for "replace" action.
|
|
336
|
+
* * When set to `'always'`, comment markers will be preserved both for "replace" and "insert below" actions.
|
|
337
|
+
*
|
|
338
|
+
* Note, that whether the comment markers will be correctly handled also depends on the AI model response,
|
|
339
|
+
* and how it processes the request.
|
|
340
|
+
*
|
|
341
|
+
* @default true
|
|
342
|
+
*/
|
|
343
|
+
preserveComments?: boolean;
|
|
327
344
|
}
|
|
328
345
|
export type GroupDefinition = {
|
|
329
346
|
/**
|
|
330
347
|
* The unique identifier of the group. It can be referenced while extending existing groups
|
|
331
|
-
* using {@link module:ai/aiassistant~AIAssistantConfig#extraCommandGroups}
|
|
348
|
+
* using {@link module:ai/aiassistant~AIAssistantConfig#extraCommandGroups} or removing command groups using
|
|
349
|
+
* {@link module:ai/aiassistant~AIAssistantConfig#removeCommands}.
|
|
332
350
|
*/
|
|
333
351
|
groupId: string;
|
|
334
352
|
/**
|
package/src/aiassistant.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x4b5d4c=_0x4f9a;(function(_0x537476,_0x24f322){const _0x2e6125=_0x4f9a,_0x187109=_0x537476();while(!![]){try{const _0x20dc5b=parseInt(_0x2e6125(0x17b))/0x1+parseInt(_0x2e6125(0x1ae))/0x2*(parseInt(_0x2e6125(0x152))/0x3)+parseInt(_0x2e6125(0x1ac))/0x4+parseInt(_0x2e6125(0x191))/0x5*(-parseInt(_0x2e6125(0x181))/0x6)+parseInt(_0x2e6125(0x16c))/0x7*(-parseInt(_0x2e6125(0x1ad))/0x8)+parseInt(_0x2e6125(0x19d))/0x9*(-parseInt(_0x2e6125(0x19f))/0xa)+parseInt(_0x2e6125(0x189))/0xb;if(_0x20dc5b===_0x24f322)break;else _0x187109['push'](_0x187109['shift']());}catch(_0x53e23a){_0x187109['push'](_0x187109['shift']());}}}(_0x3737,0x60ed7));function _0x4f9a(_0x39c83b,_0x5557de){const _0x373797=_0x3737();return _0x4f9a=function(_0x4f9af7,_0x10ab52){_0x4f9af7=_0x4f9af7-0x148;let _0x4a6d22=_0x373797[_0x4f9af7];return _0x4a6d22;},_0x4f9a(_0x39c83b,_0x5557de);}import{Plugin as _0xb9259c}from'ckeditor5/src/core.js';import _0xa761c4 from'./aiassistantui.js';import _0x2b4d2c from'./aiassistantediting.js';import{getTranslation as _0x3e308c}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x464d01}from'./utils/normalizecommandsconfig.js';export default class r extends _0xb9259c{static get[_0x4b5d4c(0x153)](){return[_0xa761c4,_0x2b4d2c];}static get[_0x4b5d4c(0x183)](){const _0x4ba78d=_0x4b5d4c;return _0x4ba78d(0x15e);}static get[_0x4b5d4c(0x1b6)](){return!0x0;}static get[_0x4b5d4c(0x198)](){return!0x0;}constructor(_0x141afc){const _0x1d6e90=_0x4b5d4c;super(_0x141afc);const _0xea6cda=_0x141afc[_0x1d6e90(0x19c)],_0x10f2e5=_0x141afc[_0x1d6e90(0x17c)];_0xea6cda[_0x1d6e90(0x175)](_0x1d6e90(0x16f),!0x0),_0xea6cda[_0x1d6e90(0x175)](_0x1d6e90(0x18e),getDefaultCommands(_0x10f2e5)),_0xea6cda[_0x1d6e90(0x175)](_0x1d6e90(0x15a),[]),_0xea6cda[_0x1d6e90(0x175)](_0x1d6e90(0x154),[]);let _0x5ac83e=_0x464d01(_0xea6cda[_0x1d6e90(0x14b)](_0x1d6e90(0x18e)),_0x10f2e5);const _0x11e182=_0xea6cda[_0x1d6e90(0x14b)](_0x1d6e90(0x15a)),_0xe456f=_0xea6cda[_0x1d6e90(0x14b)](_0x1d6e90(0x154));_0x11e182[_0x1d6e90(0x17a)](_0x6dfce4=>{const _0x2408c6=_0x1d6e90,_0x1e4495=_0x5ac83e[_0x2408c6(0x178)](_0x1845ca=>_0x1845ca[_0x2408c6(0x19e)]===_0x6dfce4[_0x2408c6(0x19e)]);_0x1e4495?_0x1e4495[_0x2408c6(0x161)]=_0x1e4495[_0x2408c6(0x161)][_0x2408c6(0x186)](_0x6dfce4[_0x2408c6(0x161)]):_0x5ac83e[_0x2408c6(0x194)](_0x6dfce4);}),_0x5ac83e=_0x5ac83e[_0x1d6e90(0x159)](_0x22db3c=>!_0xe456f[_0x1d6e90(0x177)](_0x22db3c[_0x1d6e90(0x19e)])),_0x5ac83e[_0x1d6e90(0x17a)](_0x2ef9cd=>{const _0xf96e77=_0x1d6e90;_0x2ef9cd[_0xf96e77(0x161)]=_0x2ef9cd[_0xf96e77(0x161)][_0xf96e77(0x159)](_0xb6f639=>!_0xe456f[_0xf96e77(0x177)](_0xb6f639['id']));}),_0xea6cda[_0x1d6e90(0x158)](_0x1d6e90(0x18e),_0x5ac83e);}}function _0x3737(){const _0x37f0b1=['makeShorter','English','config','996579ldnayQ','groupId','10BNAzDn','translateChinese','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Continue','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','professional','Generate\x20from\x20selection','editOrReview','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Change\x20style','Translate\x20the\x20content\x20to\x20English\x20language.','translateEnglish','2332860OsRvya','8siaANR','42860gFpAUp','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','changeTone','Translate','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Make\x20shorter','friendly','isOfficialPlugin','Poetic','Simplified\x20Chinese','legal','Translate\x20the\x20content\x20to\x20Arabic\x20language.','get','casual','Journalism','Portuguese','Confident','German','makeLonger','33tVXRcx','requires','ai.aiAssistant.removeCommands','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','translateSpanish','confident','set','filter','ai.aiAssistant.extraCommandGroups','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Legal','translatePortuguese','AIAssistant','translateGerman','Translate\x20the\x20content\x20to\x20Spanish\x20language.','commands','changeStyle','Summarize','Arabic','direct','journalism','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','continue','Spanish','translateFrench','generate','4748653Pyxsui','translate','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','ai.aiAssistant.preserveComments','translateHindi','summarize','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','define','poetic','includes','find','French','forEach','771127JtwNrW','locale','Change\x20tone','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Make\x20longer','improveWriting','2716278OJSuuQ','translateArabic','pluginName','simplifyLanguage','Translate\x20the\x20content\x20to\x20French\x20language.','concat','Edit\x20or\x20review','Simplify\x20language','536426LDhTXV','Improve\x20writing','Friendly','Business','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','ai.aiAssistant.commands','Casual','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','5yZsnMY','Translate\x20the\x20content\x20to\x20German\x20language.','Hindi','push','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Direct','Professional','isPremiumPlugin','business'];_0x3737=function(){return _0x37f0b1;};return _0x3737();}export function getDefaultCommands(_0x86dc00){const _0x5e44e0=_0x4b5d4c;return[{'groupId':_0x5e44e0(0x1a7),'groupLabel':_0x3e308c(_0x86dc00,_0x5e44e0(0x187)),'commands':[{'id':_0x5e44e0(0x180),'label':_0x3e308c(_0x86dc00,_0x5e44e0(0x18a)),'prompt':_0x5e44e0(0x1a1)},{'id':_0x5e44e0(0x19a),'label':_0x3e308c(_0x86dc00,_0x5e44e0(0x1b4)),'prompt':_0x5e44e0(0x174)},{'id':_0x5e44e0(0x151),'label':_0x3e308c(_0x86dc00,_0x5e44e0(0x17f)),'prompt':_0x5e44e0(0x17e)},{'id':_0x5e44e0(0x184),'label':_0x3e308c(_0x86dc00,_0x5e44e0(0x188)),'prompt':_0x5e44e0(0x1b3)}]},{'groupId':_0x5e44e0(0x16b),'groupLabel':_0x3e308c(_0x86dc00,_0x5e44e0(0x1a6)),'commands':[{'id':_0x5e44e0(0x171),'label':_0x3e308c(_0x86dc00,_0x5e44e0(0x163)),'prompt':_0x5e44e0(0x15b)},{'id':_0x5e44e0(0x168),'label':_0x3e308c(_0x86dc00,_0x5e44e0(0x1a3)),'prompt':_0x5e44e0(0x190)}]},{'groupId':_0x5e44e0(0x1b0),'groupLabel':_0x3e308c(_0x86dc00,_0x5e44e0(0x17d)),'commands':[{'id':_0x5e44e0(0x1a5),'label':_0x3e308c(_0x86dc00,_0x5e44e0(0x197)),'prompt':_0x5e44e0(0x155)},{'id':_0x5e44e0(0x14c),'label':_0x3e308c(_0x86dc00,_0x5e44e0(0x18f)),'prompt':_0x5e44e0(0x1b2)},{'id':_0x5e44e0(0x165),'label':_0x3e308c(_0x86dc00,_0x5e44e0(0x196)),'prompt':_0x5e44e0(0x173)},{'id':_0x5e44e0(0x157),'label':_0x3e308c(_0x86dc00,_0x5e44e0(0x14f)),'prompt':_0x5e44e0(0x172)},{'id':_0x5e44e0(0x1b5),'label':_0x3e308c(_0x86dc00,_0x5e44e0(0x18b)),'prompt':_0x5e44e0(0x18d)}]},{'groupId':_0x5e44e0(0x162),'groupLabel':_0x3e308c(_0x86dc00,_0x5e44e0(0x1a9)),'commands':[{'id':_0x5e44e0(0x199),'label':_0x3e308c(_0x86dc00,_0x5e44e0(0x18c)),'prompt':_0x5e44e0(0x195)},{'id':_0x5e44e0(0x149),'label':_0x3e308c(_0x86dc00,_0x5e44e0(0x15c)),'prompt':_0x5e44e0(0x167)},{'id':_0x5e44e0(0x166),'label':_0x3e308c(_0x86dc00,_0x5e44e0(0x14d)),'prompt':_0x5e44e0(0x1a4)},{'id':_0x5e44e0(0x176),'label':_0x3e308c(_0x86dc00,_0x5e44e0(0x1b7)),'prompt':_0x5e44e0(0x1a8)}]},{'groupId':_0x5e44e0(0x16d),'groupLabel':_0x3e308c(_0x86dc00,_0x5e44e0(0x1b1)),'commands':[{'id':_0x5e44e0(0x1ab),'label':_0x3e308c(_0x86dc00,_0x5e44e0(0x19b)),'prompt':_0x5e44e0(0x1aa)},{'id':_0x5e44e0(0x156),'label':_0x3e308c(_0x86dc00,_0x5e44e0(0x169)),'prompt':_0x5e44e0(0x160)},{'id':_0x5e44e0(0x15d),'label':_0x3e308c(_0x86dc00,_0x5e44e0(0x14e)),'prompt':_0x5e44e0(0x16e)},{'id':_0x5e44e0(0x15f),'label':_0x3e308c(_0x86dc00,_0x5e44e0(0x150)),'prompt':_0x5e44e0(0x192)},{'id':_0x5e44e0(0x16a),'label':_0x3e308c(_0x86dc00,_0x5e44e0(0x179)),'prompt':_0x5e44e0(0x185)},{'id':_0x5e44e0(0x1a0),'label':_0x3e308c(_0x86dc00,_0x5e44e0(0x148)),'prompt':_0x5e44e0(0x1af)},{'id':_0x5e44e0(0x170),'label':_0x3e308c(_0x86dc00,_0x5e44e0(0x193)),'prompt':_0x5e44e0(0x1a2)},{'id':_0x5e44e0(0x182),'label':_0x3e308c(_0x86dc00,_0x5e44e0(0x164)),'prompt':_0x5e44e0(0x14a)}]}];}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
6
|
-
import type
|
|
6
|
+
import { type Position } from 'ckeditor5/src/engine.js';
|
|
7
7
|
/**
|
|
8
8
|
* The AI assistant editing plugin.
|
|
9
9
|
*/
|
|
@@ -47,7 +47,7 @@ export default class AIAssistantEditing extends Plugin {
|
|
|
47
47
|
*
|
|
48
48
|
* If a position is not provided, the insertion will replace the visual selection marker.
|
|
49
49
|
*/
|
|
50
|
-
insertContent(
|
|
50
|
+
insertContent(html: string, position?: Position): void;
|
|
51
51
|
/**
|
|
52
52
|
* Converts the HTML string into the model fragment and inserts it below the visual selection marker.
|
|
53
53
|
*/
|