@ckeditor/ckeditor5-adapter-ckfinder 36.0.1 → 37.0.0-alpha.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-adapter-ckfinder",
3
- "version": "36.0.1",
3
+ "version": "37.0.0-alpha.1",
4
4
  "description": "CKFinder adapter for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,23 +12,23 @@
12
12
  ],
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "ckeditor5": "^36.0.1"
15
+ "ckeditor5": "^37.0.0-alpha.1"
16
16
  },
17
17
  "devDependencies": {
18
- "@ckeditor/ckeditor5-basic-styles": "^36.0.1",
19
- "@ckeditor/ckeditor5-core": "^36.0.1",
20
- "@ckeditor/ckeditor5-clipboard": "^36.0.1",
21
- "@ckeditor/ckeditor5-dev-utils": "^32.0.0",
22
- "@ckeditor/ckeditor5-editor-classic": "^36.0.1",
23
- "@ckeditor/ckeditor5-enter": "^36.0.1",
24
- "@ckeditor/ckeditor5-heading": "^36.0.1",
25
- "@ckeditor/ckeditor5-image": "^36.0.1",
26
- "@ckeditor/ckeditor5-list": "^36.0.1",
27
- "@ckeditor/ckeditor5-paragraph": "^36.0.1",
28
- "@ckeditor/ckeditor5-theme-lark": "^36.0.1",
29
- "@ckeditor/ckeditor5-typing": "^36.0.1",
30
- "@ckeditor/ckeditor5-undo": "^36.0.1",
31
- "@ckeditor/ckeditor5-upload": "^36.0.1",
18
+ "@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.1",
19
+ "@ckeditor/ckeditor5-core": "^37.0.0-alpha.1",
20
+ "@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.1",
21
+ "@ckeditor/ckeditor5-dev-utils": "^35.0.0",
22
+ "@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.1",
23
+ "@ckeditor/ckeditor5-enter": "^37.0.0-alpha.1",
24
+ "@ckeditor/ckeditor5-heading": "^37.0.0-alpha.1",
25
+ "@ckeditor/ckeditor5-image": "^37.0.0-alpha.1",
26
+ "@ckeditor/ckeditor5-list": "^37.0.0-alpha.1",
27
+ "@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.1",
28
+ "@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.1",
29
+ "@ckeditor/ckeditor5-typing": "^37.0.0-alpha.1",
30
+ "@ckeditor/ckeditor5-undo": "^37.0.0-alpha.1",
31
+ "@ckeditor/ckeditor5-upload": "^37.0.0-alpha.1",
32
32
  "typescript": "^4.8.4",
33
33
  "webpack": "^5.58.1",
34
34
  "webpack-cli": "^4.9.0"
@@ -57,7 +57,8 @@
57
57
  ],
58
58
  "scripts": {
59
59
  "dll:build": "webpack",
60
- "build": "tsc -p ./tsconfig.release.json",
60
+ "build": "tsc -p ./tsconfig.json",
61
61
  "postversion": "npm run build"
62
- }
62
+ },
63
+ "types": "src/index.d.ts"
63
64
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, 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
+ import type { UploadAdapter } from './index';
6
+ declare module '@ckeditor/ckeditor5-core' {
7
+ interface PluginsMap {
8
+ [UploadAdapter.pluginName]: UploadAdapter;
9
+ }
10
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, 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
+ export {};
package/src/index.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, 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
+ * @module adapter-ckfinder
7
+ */
8
+ export { default as UploadAdapter } from './uploadadapter';
9
+ import './augmentation';
package/src/index.js CHANGED
@@ -6,3 +6,4 @@
6
6
  * @module adapter-ckfinder
7
7
  */
8
8
  export { default as UploadAdapter } from './uploadadapter';
9
+ import './augmentation';
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, 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
+ * @module adapter-ckfinder/uploadadapter
7
+ */
8
+ import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
9
+ /**
10
+ * A plugin that enables file uploads in CKEditor 5 using the CKFinder server–side connector.
11
+ *
12
+ * See the {@glink features/file-management/ckfinder "CKFinder file manager integration"} guide to learn how to configure
13
+ * and use this feature as well as find out more about the full integration with the file manager
14
+ * provided by the {@link module:ckfinder/ckfinder~CKFinder} plugin.
15
+ *
16
+ * Check out the {@glink features/images/image-upload/image-upload comprehensive "Image upload overview"} guide to learn
17
+ * about other ways to upload images into CKEditor 5.
18
+ */
19
+ export default class CKFinderUploadAdapter extends Plugin {
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ static get requires(): PluginDependencies;
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ static get pluginName(): 'CKFinderUploadAdapter';
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ init(): void;
32
+ }
@@ -12,12 +12,12 @@ import { getCsrfToken } from './utils';
12
12
  /**
13
13
  * A plugin that enables file uploads in CKEditor 5 using the CKFinder server–side connector.
14
14
  *
15
- * See the {@glink features/images/image-upload/ckfinder "CKFinder file manager integration" guide} to learn how to configure
15
+ * See the {@glink features/file-management/ckfinder "CKFinder file manager integration"} guide to learn how to configure
16
16
  * and use this feature as well as find out more about the full integration with the file manager
17
17
  * provided by the {@link module:ckfinder/ckfinder~CKFinder} plugin.
18
18
  *
19
- * Check out the {@glink features/images/image-upload/image-upload comprehensive "Image upload overview"} to learn about
20
- * other ways to upload images into CKEditor 5.
19
+ * Check out the {@glink features/images/image-upload/image-upload comprehensive "Image upload overview"} guide to learn
20
+ * about other ways to upload images into CKEditor 5.
21
21
  */
22
22
  export default class CKFinderUploadAdapter extends Plugin {
23
23
  /**
package/src/utils.d.ts ADDED
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, 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
+ * Returns the CSRF token value. The value is a hash stored in `document.cookie`
7
+ * under the `ckCsrfToken` key. The CSRF token can be used to secure the communication
8
+ * between the web browser and the CKFinder server.
9
+ */
10
+ export declare function getCsrfToken(): string;
11
+ /**
12
+ * Returns the value of the cookie with a given name or `null` if the cookie is not found.
13
+ */
14
+ export declare function getCookie(name: string): string | null;
15
+ /**
16
+ * Sets the value of the cookie with a given name.
17
+ */
18
+ export declare function setCookie(name: string, value: string): void;