@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.
Files changed (192) hide show
  1. package/LICENSE.md +7 -2
  2. package/README.md +17 -6
  3. package/dist/index.js +208 -238
  4. package/dist/index.js.map +1 -1
  5. package/dist/translations/af.d.ts +8 -0
  6. package/dist/translations/af.js +5 -0
  7. package/dist/translations/af.umd.js +11 -0
  8. package/dist/translations/ar.js +1 -1
  9. package/dist/translations/ar.umd.js +1 -1
  10. package/dist/translations/ast.d.ts +8 -0
  11. package/dist/translations/ast.js +5 -0
  12. package/dist/translations/ast.umd.js +11 -0
  13. package/dist/translations/bs.d.ts +8 -0
  14. package/dist/translations/bs.js +5 -0
  15. package/dist/translations/bs.umd.js +11 -0
  16. package/dist/translations/cs.js +1 -1
  17. package/dist/translations/cs.umd.js +1 -1
  18. package/dist/translations/en.js +1 -1
  19. package/dist/translations/en.umd.js +1 -1
  20. package/dist/translations/eo.d.ts +8 -0
  21. package/dist/translations/eo.js +5 -0
  22. package/dist/translations/eo.umd.js +11 -0
  23. package/dist/translations/es-co.js +1 -1
  24. package/dist/translations/es-co.umd.js +1 -1
  25. package/dist/translations/es.js +1 -1
  26. package/dist/translations/es.umd.js +1 -1
  27. package/dist/translations/eu.d.ts +8 -0
  28. package/dist/translations/eu.js +5 -0
  29. package/dist/translations/eu.umd.js +11 -0
  30. package/dist/translations/fa.js +1 -1
  31. package/dist/translations/fa.umd.js +1 -1
  32. package/dist/translations/fr.js +1 -1
  33. package/dist/translations/fr.umd.js +1 -1
  34. package/dist/translations/gu.d.ts +8 -0
  35. package/dist/translations/gu.js +5 -0
  36. package/dist/translations/gu.umd.js +11 -0
  37. package/dist/translations/he.js +1 -1
  38. package/dist/translations/he.umd.js +1 -1
  39. package/dist/translations/hr.js +1 -1
  40. package/dist/translations/hr.umd.js +1 -1
  41. package/dist/translations/hy.d.ts +8 -0
  42. package/dist/translations/hy.js +5 -0
  43. package/dist/translations/hy.umd.js +11 -0
  44. package/dist/translations/it.js +1 -1
  45. package/dist/translations/it.umd.js +1 -1
  46. package/dist/translations/jv.d.ts +8 -0
  47. package/dist/translations/jv.js +5 -0
  48. package/dist/translations/jv.umd.js +11 -0
  49. package/dist/translations/kk.d.ts +8 -0
  50. package/dist/translations/kk.js +5 -0
  51. package/dist/translations/kk.umd.js +11 -0
  52. package/dist/translations/km.d.ts +8 -0
  53. package/dist/translations/km.js +5 -0
  54. package/dist/translations/km.umd.js +11 -0
  55. package/dist/translations/kn.d.ts +8 -0
  56. package/dist/translations/kn.js +5 -0
  57. package/dist/translations/kn.umd.js +11 -0
  58. package/dist/translations/lt.js +1 -1
  59. package/dist/translations/lt.umd.js +1 -1
  60. package/dist/translations/lv.js +1 -1
  61. package/dist/translations/lv.umd.js +1 -1
  62. package/dist/translations/oc.d.ts +8 -0
  63. package/dist/translations/oc.js +5 -0
  64. package/dist/translations/oc.umd.js +11 -0
  65. package/dist/translations/pl.js +1 -1
  66. package/dist/translations/pl.umd.js +1 -1
  67. package/dist/translations/pt-br.js +1 -1
  68. package/dist/translations/pt-br.umd.js +1 -1
  69. package/dist/translations/pt.js +1 -1
  70. package/dist/translations/pt.umd.js +1 -1
  71. package/dist/translations/ro.js +1 -1
  72. package/dist/translations/ro.umd.js +1 -1
  73. package/dist/translations/ru.js +1 -1
  74. package/dist/translations/ru.umd.js +1 -1
  75. package/dist/translations/si.d.ts +8 -0
  76. package/dist/translations/si.js +5 -0
  77. package/dist/translations/si.umd.js +11 -0
  78. package/dist/translations/sk.js +1 -1
  79. package/dist/translations/sk.umd.js +1 -1
  80. package/dist/translations/sl.d.ts +8 -0
  81. package/dist/translations/sl.js +5 -0
  82. package/dist/translations/sl.umd.js +11 -0
  83. package/dist/translations/sr-latn.js +1 -1
  84. package/dist/translations/sr-latn.umd.js +1 -1
  85. package/dist/translations/sr.js +1 -1
  86. package/dist/translations/sr.umd.js +1 -1
  87. package/dist/translations/ti.d.ts +8 -0
  88. package/dist/translations/ti.js +5 -0
  89. package/dist/translations/ti.umd.js +11 -0
  90. package/dist/translations/tt.d.ts +8 -0
  91. package/dist/translations/tt.js +5 -0
  92. package/dist/translations/tt.umd.js +11 -0
  93. package/dist/translations/ug.js +1 -1
  94. package/dist/translations/ug.umd.js +1 -1
  95. package/dist/translations/uk.js +1 -1
  96. package/dist/translations/uk.umd.js +1 -1
  97. package/dist/translations/uz.js +1 -1
  98. package/dist/translations/uz.umd.js +1 -1
  99. package/lang/translations/af.po +16 -0
  100. package/lang/translations/ar.po +4 -10
  101. package/lang/translations/ast.po +16 -0
  102. package/lang/translations/az.po +3 -9
  103. package/lang/translations/bg.po +3 -9
  104. package/lang/translations/bn.po +3 -9
  105. package/lang/translations/bs.po +16 -0
  106. package/lang/translations/ca.po +3 -9
  107. package/lang/translations/cs.po +4 -10
  108. package/lang/translations/da.po +3 -9
  109. package/lang/translations/de-ch.po +3 -9
  110. package/lang/translations/de.po +3 -9
  111. package/lang/translations/el.po +3 -9
  112. package/lang/translations/en-au.po +3 -9
  113. package/lang/translations/en-gb.po +3 -9
  114. package/lang/translations/en.po +5 -11
  115. package/lang/translations/eo.po +16 -0
  116. package/lang/translations/es-co.po +4 -10
  117. package/lang/translations/es.po +4 -10
  118. package/lang/translations/et.po +3 -9
  119. package/lang/translations/eu.po +16 -0
  120. package/lang/translations/fa.po +4 -10
  121. package/lang/translations/fi.po +3 -9
  122. package/lang/translations/fr.po +4 -10
  123. package/lang/translations/gl.po +3 -9
  124. package/lang/translations/gu.po +16 -0
  125. package/lang/translations/he.po +4 -10
  126. package/lang/translations/hi.po +3 -9
  127. package/lang/translations/hr.po +4 -10
  128. package/lang/translations/hu.po +3 -9
  129. package/lang/translations/hy.po +16 -0
  130. package/lang/translations/id.po +3 -9
  131. package/lang/translations/it.po +4 -10
  132. package/lang/translations/ja.po +3 -9
  133. package/lang/translations/jv.po +16 -0
  134. package/lang/translations/kk.po +16 -0
  135. package/lang/translations/km.po +16 -0
  136. package/lang/translations/kn.po +16 -0
  137. package/lang/translations/ko.po +3 -9
  138. package/lang/translations/ku.po +3 -9
  139. package/lang/translations/lt.po +4 -10
  140. package/lang/translations/lv.po +4 -10
  141. package/lang/translations/ms.po +3 -9
  142. package/lang/translations/nb.po +3 -9
  143. package/lang/translations/ne.po +3 -9
  144. package/lang/translations/nl.po +3 -9
  145. package/lang/translations/no.po +3 -9
  146. package/lang/translations/oc.po +16 -0
  147. package/lang/translations/pl.po +4 -10
  148. package/lang/translations/pt-br.po +4 -10
  149. package/lang/translations/pt.po +4 -10
  150. package/lang/translations/ro.po +4 -10
  151. package/lang/translations/ru.po +4 -10
  152. package/lang/translations/si.po +16 -0
  153. package/lang/translations/sk.po +4 -10
  154. package/lang/translations/sl.po +16 -0
  155. package/lang/translations/sq.po +3 -9
  156. package/lang/translations/sr-latn.po +4 -10
  157. package/lang/translations/sr.po +4 -10
  158. package/lang/translations/sv.po +3 -9
  159. package/lang/translations/th.po +3 -9
  160. package/lang/translations/ti.po +16 -0
  161. package/lang/translations/tk.po +3 -9
  162. package/lang/translations/tr.po +3 -9
  163. package/lang/translations/tt.po +16 -0
  164. package/lang/translations/ug.po +4 -10
  165. package/lang/translations/uk.po +4 -10
  166. package/lang/translations/ur.po +3 -9
  167. package/lang/translations/uz.po +4 -10
  168. package/lang/translations/vi.po +3 -9
  169. package/lang/translations/zh-cn.po +3 -9
  170. package/lang/translations/zh.po +3 -9
  171. package/package.json +22 -5
  172. package/src/adapters/base64uploadadapter.d.ts +1 -1
  173. package/src/adapters/base64uploadadapter.js +1 -1
  174. package/src/adapters/simpleuploadadapter.d.ts +1 -1
  175. package/src/adapters/simpleuploadadapter.js +1 -1
  176. package/src/augmentation.d.ts +1 -1
  177. package/src/augmentation.js +1 -1
  178. package/src/filereader.d.ts +1 -1
  179. package/src/filereader.js +1 -1
  180. package/src/filerepository.d.ts +1 -1
  181. package/src/filerepository.js +1 -1
  182. package/src/index.d.ts +1 -1
  183. package/src/index.js +1 -1
  184. package/src/uploadconfig.d.ts +1 -1
  185. package/src/uploadconfig.js +1 -1
  186. package/dist/adapters/base64uploadadapter.d.ts +0 -41
  187. package/dist/adapters/simpleuploadadapter.d.ts +0 -56
  188. package/dist/augmentation.d.ts +0 -24
  189. package/dist/filereader.d.ts +0 -60
  190. package/dist/filerepository.d.ts +0 -350
  191. package/dist/index.d.ts +0 -16
  192. package/dist/uploadconfig.d.ts +0 -94
@@ -1,18 +1,12 @@
1
1
  # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
- # !!! IMPORTANT !!!
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
4
  #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
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"
@@ -1,20 +1,14 @@
1
1
  # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
- # !!! IMPORTANT !!!
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
4
  #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
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=1; plural=0;\n"
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."
@@ -1,18 +1,12 @@
1
1
  # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
- # !!! IMPORTANT !!!
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
4
  #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
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
- # !!! IMPORTANT !!!
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
4
  #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
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"
@@ -1,18 +1,12 @@
1
1
  # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
- # !!! IMPORTANT !!!
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
4
  #
5
- # Before you edit this file, please keep in mind that contributing to the project
6
- # translations is possible ONLY via the Transifex online service.
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-20241017.0",
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-20241017.0",
16
- "@ckeditor/ckeditor5-utils": "0.0.0-internal-20241017.0"
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": "GPL-2.0-or-later",
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-oss-license
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-oss-license
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-oss-license
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-oss-license
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-oss-license
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' {
@@ -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-oss-license
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  export {};
@@ -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-oss-license
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-oss-license
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * @module upload/filereader
@@ -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-oss-license
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * @module upload/filerepository
@@ -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-oss-license
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-oss-license
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-oss-license
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * @module upload
@@ -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-oss-license
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * @module upload/uploadconfig
@@ -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-oss-license
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
- }
@@ -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
- }
@@ -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 {};