@ckeditor/ckeditor5-upload 0.0.0-internal-20241017.0 → 0.0.0-internal-20241206.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 +7 -2
- package/README.md +17 -6
- package/dist/index.js +208 -238
- package/dist/index.js.map +1 -1
- package/dist/translations/af.d.ts +8 -0
- package/dist/translations/af.js +5 -0
- package/dist/translations/af.umd.js +11 -0
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.d.ts +8 -0
- package/dist/translations/ast.js +5 -0
- package/dist/translations/ast.umd.js +11 -0
- package/dist/translations/bs.d.ts +8 -0
- package/dist/translations/bs.js +5 -0
- package/dist/translations/bs.umd.js +11 -0
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.d.ts +8 -0
- package/dist/translations/eo.js +5 -0
- package/dist/translations/eo.umd.js +11 -0
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/eu.d.ts +8 -0
- package/dist/translations/eu.js +5 -0
- package/dist/translations/eu.umd.js +11 -0
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gu.d.ts +8 -0
- package/dist/translations/gu.js +5 -0
- package/dist/translations/gu.umd.js +11 -0
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hy.d.ts +8 -0
- package/dist/translations/hy.js +5 -0
- package/dist/translations/hy.umd.js +11 -0
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/jv.d.ts +8 -0
- package/dist/translations/jv.js +5 -0
- package/dist/translations/jv.umd.js +11 -0
- package/dist/translations/kk.d.ts +8 -0
- package/dist/translations/kk.js +5 -0
- package/dist/translations/kk.umd.js +11 -0
- package/dist/translations/km.d.ts +8 -0
- package/dist/translations/km.js +5 -0
- package/dist/translations/km.umd.js +11 -0
- package/dist/translations/kn.d.ts +8 -0
- package/dist/translations/kn.js +5 -0
- package/dist/translations/kn.umd.js +11 -0
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/oc.d.ts +8 -0
- package/dist/translations/oc.js +5 -0
- package/dist/translations/oc.umd.js +11 -0
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.d.ts +8 -0
- package/dist/translations/si.js +5 -0
- package/dist/translations/si.umd.js +11 -0
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.d.ts +8 -0
- package/dist/translations/sl.js +5 -0
- package/dist/translations/sl.umd.js +11 -0
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/ti.d.ts +8 -0
- package/dist/translations/ti.js +5 -0
- package/dist/translations/ti.umd.js +11 -0
- package/dist/translations/tt.d.ts +8 -0
- package/dist/translations/tt.js +5 -0
- package/dist/translations/tt.umd.js +11 -0
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/lang/translations/af.po +16 -0
- package/lang/translations/ar.po +4 -10
- package/lang/translations/ast.po +16 -0
- package/lang/translations/az.po +3 -9
- package/lang/translations/bg.po +3 -9
- package/lang/translations/bn.po +3 -9
- package/lang/translations/bs.po +16 -0
- package/lang/translations/ca.po +3 -9
- package/lang/translations/cs.po +4 -10
- package/lang/translations/da.po +3 -9
- package/lang/translations/de-ch.po +3 -9
- package/lang/translations/de.po +3 -9
- package/lang/translations/el.po +3 -9
- package/lang/translations/en-au.po +3 -9
- package/lang/translations/en-gb.po +3 -9
- package/lang/translations/en.po +5 -11
- package/lang/translations/eo.po +16 -0
- package/lang/translations/es-co.po +4 -10
- package/lang/translations/es.po +4 -10
- package/lang/translations/et.po +3 -9
- package/lang/translations/eu.po +16 -0
- package/lang/translations/fa.po +4 -10
- package/lang/translations/fi.po +3 -9
- package/lang/translations/fr.po +4 -10
- package/lang/translations/gl.po +3 -9
- package/lang/translations/gu.po +16 -0
- package/lang/translations/he.po +4 -10
- package/lang/translations/hi.po +3 -9
- package/lang/translations/hr.po +4 -10
- package/lang/translations/hu.po +3 -9
- package/lang/translations/hy.po +16 -0
- package/lang/translations/id.po +3 -9
- package/lang/translations/it.po +4 -10
- package/lang/translations/ja.po +3 -9
- package/lang/translations/jv.po +16 -0
- package/lang/translations/kk.po +16 -0
- package/lang/translations/km.po +16 -0
- package/lang/translations/kn.po +16 -0
- package/lang/translations/ko.po +3 -9
- package/lang/translations/ku.po +3 -9
- package/lang/translations/lt.po +4 -10
- package/lang/translations/lv.po +4 -10
- package/lang/translations/ms.po +3 -9
- package/lang/translations/nb.po +3 -9
- package/lang/translations/ne.po +3 -9
- package/lang/translations/nl.po +3 -9
- package/lang/translations/no.po +3 -9
- package/lang/translations/oc.po +16 -0
- package/lang/translations/pl.po +4 -10
- package/lang/translations/pt-br.po +4 -10
- package/lang/translations/pt.po +4 -10
- package/lang/translations/ro.po +4 -10
- package/lang/translations/ru.po +4 -10
- package/lang/translations/si.po +16 -0
- package/lang/translations/sk.po +4 -10
- package/lang/translations/sl.po +16 -0
- package/lang/translations/sq.po +3 -9
- package/lang/translations/sr-latn.po +4 -10
- package/lang/translations/sr.po +4 -10
- package/lang/translations/sv.po +3 -9
- package/lang/translations/th.po +3 -9
- package/lang/translations/ti.po +16 -0
- package/lang/translations/tk.po +3 -9
- package/lang/translations/tr.po +3 -9
- package/lang/translations/tt.po +16 -0
- package/lang/translations/ug.po +4 -10
- package/lang/translations/uk.po +4 -10
- package/lang/translations/ur.po +3 -9
- package/lang/translations/uz.po +4 -10
- package/lang/translations/vi.po +3 -9
- package/lang/translations/zh-cn.po +3 -9
- package/lang/translations/zh.po +3 -9
- package/package.json +22 -5
- package/src/adapters/base64uploadadapter.d.ts +1 -1
- package/src/adapters/base64uploadadapter.js +1 -1
- package/src/adapters/simpleuploadadapter.d.ts +1 -1
- package/src/adapters/simpleuploadadapter.js +1 -1
- package/src/augmentation.d.ts +1 -1
- package/src/augmentation.js +1 -1
- package/src/filereader.d.ts +1 -1
- package/src/filereader.js +1 -1
- package/src/filerepository.d.ts +1 -1
- package/src/filerepository.js +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/src/uploadconfig.d.ts +1 -1
- package/src/uploadconfig.js +1 -1
- package/dist/adapters/base64uploadadapter.d.ts +0 -41
- package/dist/adapters/simpleuploadadapter.d.ts +0 -56
- package/dist/augmentation.d.ts +0 -24
- package/dist/filereader.d.ts +0 -60
- package/dist/filerepository.d.ts +0 -350
- package/dist/index.d.ts +0 -16
- package/dist/uploadconfig.d.ts +0 -94
package/lang/translations/ur.po
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
|
-
#
|
|
3
|
+
# Want to contribute to this file? Submit your changes via a GitHub Pull Request.
|
|
4
4
|
#
|
|
5
|
-
#
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
|
9
|
-
#
|
|
10
|
-
# To learn more, check out the official contributor's guide:
|
|
11
|
-
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
5
|
+
# Check out the official contributor's guide:
|
|
6
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
12
7
|
#
|
|
13
8
|
msgid ""
|
|
14
9
|
msgstr ""
|
|
15
|
-
"Language-Team: Urdu (https://app.transifex.com/ckeditor/teams/11143/ur/)\n"
|
|
16
10
|
"Language: ur\n"
|
|
17
11
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
12
|
"Content-Type: text/plain; charset=UTF-8\n"
|
package/lang/translations/uz.po
CHANGED
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
|
-
#
|
|
3
|
+
# Want to contribute to this file? Submit your changes via a GitHub Pull Request.
|
|
4
4
|
#
|
|
5
|
-
#
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
|
9
|
-
#
|
|
10
|
-
# To learn more, check out the official contributor's guide:
|
|
11
|
-
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
5
|
+
# Check out the official contributor's guide:
|
|
6
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
12
7
|
#
|
|
13
8
|
msgid ""
|
|
14
9
|
msgstr ""
|
|
15
|
-
"Language-Team: Uzbek (https://app.transifex.com/ckeditor/teams/11143/uz/)\n"
|
|
16
10
|
"Language: uz\n"
|
|
17
|
-
"Plural-Forms: nplurals=
|
|
11
|
+
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
|
18
12
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
19
13
|
|
|
20
14
|
msgctxt "A message that a file upload is in progress."
|
package/lang/translations/vi.po
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
|
-
#
|
|
3
|
+
# Want to contribute to this file? Submit your changes via a GitHub Pull Request.
|
|
4
4
|
#
|
|
5
|
-
#
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
|
9
|
-
#
|
|
10
|
-
# To learn more, check out the official contributor's guide:
|
|
11
|
-
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
5
|
+
# Check out the official contributor's guide:
|
|
6
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
12
7
|
#
|
|
13
8
|
msgid ""
|
|
14
9
|
msgstr ""
|
|
15
|
-
"Language-Team: Vietnamese (https://app.transifex.com/ckeditor/teams/11143/vi/)\n"
|
|
16
10
|
"Language: vi\n"
|
|
17
11
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
12
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
|
-
#
|
|
3
|
+
# Want to contribute to this file? Submit your changes via a GitHub Pull Request.
|
|
4
4
|
#
|
|
5
|
-
#
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
|
9
|
-
#
|
|
10
|
-
# To learn more, check out the official contributor's guide:
|
|
11
|
-
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
5
|
+
# Check out the official contributor's guide:
|
|
6
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
12
7
|
#
|
|
13
8
|
msgid ""
|
|
14
9
|
msgstr ""
|
|
15
|
-
"Language-Team: Chinese (China) (https://app.transifex.com/ckeditor/teams/11143/zh_CN/)\n"
|
|
16
10
|
"Language: zh_CN\n"
|
|
17
11
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
12
|
"Content-Type: text/plain; charset=UTF-8\n"
|
package/lang/translations/zh.po
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
|
-
#
|
|
3
|
+
# Want to contribute to this file? Submit your changes via a GitHub Pull Request.
|
|
4
4
|
#
|
|
5
|
-
#
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
|
9
|
-
#
|
|
10
|
-
# To learn more, check out the official contributor's guide:
|
|
11
|
-
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
5
|
+
# Check out the official contributor's guide:
|
|
6
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
12
7
|
#
|
|
13
8
|
msgid ""
|
|
14
9
|
msgstr ""
|
|
15
|
-
"Language-Team: Chinese (Taiwan) (https://app.transifex.com/ckeditor/teams/11143/zh_TW/)\n"
|
|
16
10
|
"Language: zh_TW\n"
|
|
17
11
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
12
|
"Content-Type: text/plain; charset=UTF-8\n"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-upload",
|
|
3
|
-
"version": "0.0.0-internal-
|
|
3
|
+
"version": "0.0.0-internal-20241206.0",
|
|
4
4
|
"description": "Upload feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
"type": "module",
|
|
13
13
|
"main": "src/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@ckeditor/ckeditor5-core": "0.0.0-internal-
|
|
16
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-internal-
|
|
15
|
+
"@ckeditor/ckeditor5-core": "0.0.0-internal-20241206.0",
|
|
16
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-internal-20241206.0"
|
|
17
17
|
},
|
|
18
18
|
"author": "CKSource (http://cksource.com/)",
|
|
19
|
-
"license": "
|
|
19
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
20
20
|
"homepage": "https://ckeditor.com/ckeditor-5",
|
|
21
21
|
"bugs": "https://github.com/ckeditor/ckeditor5/issues",
|
|
22
22
|
"repository": {
|
|
@@ -33,5 +33,22 @@
|
|
|
33
33
|
"ckeditor5-metadata.json",
|
|
34
34
|
"CHANGELOG.md"
|
|
35
35
|
],
|
|
36
|
-
"types": "src/index.d.ts"
|
|
36
|
+
"types": "src/index.d.ts",
|
|
37
|
+
"exports": {
|
|
38
|
+
".": {
|
|
39
|
+
"types": "./src/index.d.ts",
|
|
40
|
+
"import": "./src/index.js"
|
|
41
|
+
},
|
|
42
|
+
"./dist/*": {
|
|
43
|
+
"types": "./src/index.d.ts",
|
|
44
|
+
"import": "./dist/*"
|
|
45
|
+
},
|
|
46
|
+
"./src/*": {
|
|
47
|
+
"types": "./src/index.d.ts",
|
|
48
|
+
"import": "./src/*"
|
|
49
|
+
},
|
|
50
|
+
"./lang/*": "./lang/*",
|
|
51
|
+
"./ckeditor5-metadata.json": "./ckeditor5-metadata.json",
|
|
52
|
+
"./package.json": "./package.json"
|
|
53
|
+
}
|
|
37
54
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module upload/adapters/base64uploadadapter
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module upload/adapters/base64uploadadapter
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module upload/adapters/simpleuploadadapter
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module upload/adapters/simpleuploadadapter
|
package/src/augmentation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import type { SimpleUploadConfig, FileRepository, SimpleUploadAdapter, Base64UploadAdapter } from './index.js';
|
|
6
6
|
declare module '@ckeditor/ckeditor5-core' {
|
package/src/augmentation.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
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-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
export {};
|
package/src/filereader.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
declare const FileReader_base: {
|
|
6
6
|
new (): import("@ckeditor/ckeditor5-utils").Observable;
|
package/src/filereader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module upload/filereader
|
package/src/filerepository.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module upload/filerepository
|
package/src/filerepository.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module upload/filerepository
|
package/src/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module upload
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module upload
|
package/src/uploadconfig.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module upload/uploadconfig
|
package/src/uploadconfig.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
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-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
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 upload/adapters/base64uploadadapter
|
|
11
|
-
*/
|
|
12
|
-
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
13
|
-
import FileRepository from '../filerepository.js';
|
|
14
|
-
/**
|
|
15
|
-
* A plugin that converts images inserted into the editor into [Base64 strings](https://en.wikipedia.org/wiki/Base64)
|
|
16
|
-
* in the {@glink getting-started/setup/getting-and-setting-data editor output}.
|
|
17
|
-
*
|
|
18
|
-
* This kind of image upload does not require server processing – images are stored with the rest of the text and
|
|
19
|
-
* displayed by the web browser without additional requests.
|
|
20
|
-
*
|
|
21
|
-
* Check out the {@glink features/images/image-upload/image-upload comprehensive "Image upload overview"} to learn about
|
|
22
|
-
* other ways to upload images into CKEditor 5.
|
|
23
|
-
*/
|
|
24
|
-
export default class Base64UploadAdapter extends Plugin {
|
|
25
|
-
/**
|
|
26
|
-
* @inheritDoc
|
|
27
|
-
*/
|
|
28
|
-
static get requires(): readonly [typeof FileRepository];
|
|
29
|
-
/**
|
|
30
|
-
* @inheritDoc
|
|
31
|
-
*/
|
|
32
|
-
static get pluginName(): "Base64UploadAdapter";
|
|
33
|
-
/**
|
|
34
|
-
* @inheritDoc
|
|
35
|
-
*/
|
|
36
|
-
static get isOfficialPlugin(): true;
|
|
37
|
-
/**
|
|
38
|
-
* @inheritDoc
|
|
39
|
-
*/
|
|
40
|
-
init(): void;
|
|
41
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
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 upload/adapters/simpleuploadadapter
|
|
11
|
-
*/
|
|
12
|
-
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
13
|
-
import FileRepository from '../filerepository.js';
|
|
14
|
-
/**
|
|
15
|
-
* The Simple upload adapter allows uploading images to an application running on your server using
|
|
16
|
-
* the [`XMLHttpRequest`](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) API with a
|
|
17
|
-
* minimal {@link module:upload/uploadconfig~SimpleUploadConfig editor configuration}.
|
|
18
|
-
*
|
|
19
|
-
* ```ts
|
|
20
|
-
* ClassicEditor
|
|
21
|
-
* .create( document.querySelector( '#editor' ), {
|
|
22
|
-
* simpleUpload: {
|
|
23
|
-
* uploadUrl: 'http://example.com',
|
|
24
|
-
* headers: {
|
|
25
|
-
* ...
|
|
26
|
-
* }
|
|
27
|
-
* }
|
|
28
|
-
* } )
|
|
29
|
-
* .then( ... )
|
|
30
|
-
* .catch( ... );
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
* See the {@glink features/images/image-upload/simple-upload-adapter "Simple upload adapter"} guide to learn how to
|
|
34
|
-
* learn more about the feature (configuration, server–side requirements, etc.).
|
|
35
|
-
*
|
|
36
|
-
* Check out the {@glink features/images/image-upload/image-upload comprehensive "Image upload overview"} to learn about
|
|
37
|
-
* other ways to upload images into CKEditor 5.
|
|
38
|
-
*/
|
|
39
|
-
export default class SimpleUploadAdapter extends Plugin {
|
|
40
|
-
/**
|
|
41
|
-
* @inheritDoc
|
|
42
|
-
*/
|
|
43
|
-
static get requires(): readonly [typeof FileRepository];
|
|
44
|
-
/**
|
|
45
|
-
* @inheritDoc
|
|
46
|
-
*/
|
|
47
|
-
static get pluginName(): "SimpleUploadAdapter";
|
|
48
|
-
/**
|
|
49
|
-
* @inheritDoc
|
|
50
|
-
*/
|
|
51
|
-
static get isOfficialPlugin(): true;
|
|
52
|
-
/**
|
|
53
|
-
* @inheritDoc
|
|
54
|
-
*/
|
|
55
|
-
init(): void;
|
|
56
|
-
}
|
package/dist/augmentation.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
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 { SimpleUploadConfig, FileRepository, SimpleUploadAdapter, Base64UploadAdapter } from './index.js';
|
|
10
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
11
|
-
interface EditorConfig {
|
|
12
|
-
/**
|
|
13
|
-
* The configuration of the {@link module:upload/adapters/simpleuploadadapter~SimpleUploadAdapter simple upload adapter}.
|
|
14
|
-
*
|
|
15
|
-
* Read more in {@link module:upload/uploadconfig~SimpleUploadConfig}.
|
|
16
|
-
*/
|
|
17
|
-
simpleUpload?: SimpleUploadConfig;
|
|
18
|
-
}
|
|
19
|
-
interface PluginsMap {
|
|
20
|
-
[FileRepository.pluginName]: FileRepository;
|
|
21
|
-
[SimpleUploadAdapter.pluginName]: SimpleUploadAdapter;
|
|
22
|
-
[Base64UploadAdapter.pluginName]: Base64UploadAdapter;
|
|
23
|
-
}
|
|
24
|
-
}
|
package/dist/filereader.d.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
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
|
-
declare const FileReader_base: {
|
|
10
|
-
new (): import("@ckeditor/ckeditor5-utils").Observable;
|
|
11
|
-
prototype: import("@ckeditor/ckeditor5-utils").Observable;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Wrapper over the native `FileReader`.
|
|
15
|
-
*/
|
|
16
|
-
export default class FileReader extends /* #__PURE__ */ FileReader_base {
|
|
17
|
-
total: number;
|
|
18
|
-
/**
|
|
19
|
-
* Instance of native FileReader.
|
|
20
|
-
*/
|
|
21
|
-
private readonly _reader;
|
|
22
|
-
/**
|
|
23
|
-
* Holds the data of an already loaded file. The file must be first loaded
|
|
24
|
-
* by using {@link module:upload/filereader~FileReader#read `read()`}.
|
|
25
|
-
*/
|
|
26
|
-
private _data?;
|
|
27
|
-
/**
|
|
28
|
-
* Number of bytes loaded.
|
|
29
|
-
*
|
|
30
|
-
* @readonly
|
|
31
|
-
* @observable
|
|
32
|
-
*/
|
|
33
|
-
loaded: number;
|
|
34
|
-
/**
|
|
35
|
-
* Creates an instance of the FileReader.
|
|
36
|
-
*/
|
|
37
|
-
constructor();
|
|
38
|
-
/**
|
|
39
|
-
* Returns error that occurred during file reading.
|
|
40
|
-
*/
|
|
41
|
-
get error(): DOMException | null;
|
|
42
|
-
/**
|
|
43
|
-
* Holds the data of an already loaded file. The file must be first loaded
|
|
44
|
-
* by using {@link module:upload/filereader~FileReader#read `read()`}.
|
|
45
|
-
*/
|
|
46
|
-
get data(): string | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* Reads the provided file.
|
|
49
|
-
*
|
|
50
|
-
* @param file Native File object.
|
|
51
|
-
* @returns Returns a promise that will be resolved with file's content.
|
|
52
|
-
* The promise will be rejected in case of an error or when the reading process is aborted.
|
|
53
|
-
*/
|
|
54
|
-
read(file: File): Promise<string>;
|
|
55
|
-
/**
|
|
56
|
-
* Aborts file reader.
|
|
57
|
-
*/
|
|
58
|
-
abort(): void;
|
|
59
|
-
}
|
|
60
|
-
export {};
|