@ckeditor/ckeditor5-page-break 36.0.1 → 37.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-page-break",
3
- "version": "36.0.1",
3
+ "version": "37.0.0-alpha.0",
4
4
  "description": "Page break feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,20 +12,20 @@
12
12
  ],
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "ckeditor5": "^36.0.1"
15
+ "ckeditor5": "^37.0.0-alpha.0"
16
16
  },
17
17
  "devDependencies": {
18
- "@ckeditor/ckeditor5-cloud-services": "^36.0.1",
19
- "@ckeditor/ckeditor5-core": "^36.0.1",
20
- "@ckeditor/ckeditor5-dev-utils": "^32.0.0",
21
- "@ckeditor/ckeditor5-easy-image": "^36.0.1",
22
- "@ckeditor/ckeditor5-editor-classic": "^36.0.1",
23
- "@ckeditor/ckeditor5-engine": "^36.0.1",
24
- "@ckeditor/ckeditor5-image": "^36.0.1",
25
- "@ckeditor/ckeditor5-paragraph": "^36.0.1",
26
- "@ckeditor/ckeditor5-theme-lark": "^36.0.1",
27
- "@ckeditor/ckeditor5-ui": "^36.0.1",
28
- "@ckeditor/ckeditor5-widget": "^36.0.1",
18
+ "@ckeditor/ckeditor5-cloud-services": "^37.0.0-alpha.0",
19
+ "@ckeditor/ckeditor5-core": "^37.0.0-alpha.0",
20
+ "@ckeditor/ckeditor5-dev-utils": "^34.0.0",
21
+ "@ckeditor/ckeditor5-easy-image": "^37.0.0-alpha.0",
22
+ "@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.0",
23
+ "@ckeditor/ckeditor5-engine": "^37.0.0-alpha.0",
24
+ "@ckeditor/ckeditor5-image": "^37.0.0-alpha.0",
25
+ "@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.0",
26
+ "@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.0",
27
+ "@ckeditor/ckeditor5-ui": "^37.0.0-alpha.0",
28
+ "@ckeditor/ckeditor5-widget": "^37.0.0-alpha.0",
29
29
  "typescript": "^4.8.4",
30
30
  "webpack": "^5.58.1",
31
31
  "webpack-cli": "^4.9.0"
@@ -56,5 +56,6 @@
56
56
  "dll:build": "webpack",
57
57
  "build": "tsc -p ./tsconfig.release.json",
58
58
  "postversion": "npm run build"
59
- }
59
+ },
60
+ "types": "src/index.d.ts"
60
61
  }
package/src/index.d.ts ADDED
@@ -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
+ /**
6
+ * @module page-break
7
+ */
8
+ export { default as PageBreak } from './pagebreak';
9
+ export { default as PageBreakEditing } from './pagebreakediting';
10
+ export { default as PageBreakUI } from './pagebreakui';
@@ -0,0 +1,30 @@
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 page-break/pagebreak
7
+ */
8
+ import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
9
+ /**
10
+ * The page break feature.
11
+ *
12
+ * It provides the possibility to insert a page break into the rich-text editor.
13
+ *
14
+ * For a detailed overview, check the {@glink features/page-break Page break feature} documentation.
15
+ */
16
+ export default class PageBreak extends Plugin {
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ static get requires(): PluginDependencies;
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get pluginName(): 'PageBreak';
25
+ }
26
+ declare module '@ckeditor/ckeditor5-core' {
27
+ interface PluginsMap {
28
+ [PageBreak.pluginName]: PageBreak;
29
+ }
30
+ }
@@ -0,0 +1,34 @@
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 page-break/pagebreakcommand
7
+ */
8
+ import { Command } from 'ckeditor5/src/core';
9
+ /**
10
+ * The page break command.
11
+ *
12
+ * The command is registered by {@link module:page-break/pagebreakediting~PageBreakEditing} as `'pageBreak'`.
13
+ *
14
+ * To insert a page break at the current selection, execute the command:
15
+ *
16
+ * editor.execute( 'pageBreak' );
17
+ */
18
+ export default class PageBreakCommand extends Command {
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ refresh(): void;
23
+ /**
24
+ * Executes the command.
25
+ *
26
+ * @fires execute
27
+ */
28
+ execute(): void;
29
+ }
30
+ declare module '@ckeditor/ckeditor5-core' {
31
+ interface CommandsMap {
32
+ pageBreak: PageBreakCommand;
33
+ }
34
+ }
@@ -0,0 +1,27 @@
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 page-break/pagebreakediting
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import '../theme/pagebreak.css';
10
+ /**
11
+ * The page break editing feature.
12
+ */
13
+ export default class PageBreakEditing extends Plugin {
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ static get pluginName(): 'PageBreakEditing';
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ init(): void;
22
+ }
23
+ declare module '@ckeditor/ckeditor5-core' {
24
+ interface PluginsMap {
25
+ [PageBreakEditing.pluginName]: PageBreakEditing;
26
+ }
27
+ }
@@ -0,0 +1,26 @@
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 page-break/pagebreakui
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * The page break UI plugin.
11
+ */
12
+ export default class PageBreakUI extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ static get pluginName(): 'PageBreakUI';
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ init(): void;
21
+ }
22
+ declare module '@ckeditor/ckeditor5-core' {
23
+ interface PluginsMap {
24
+ [PageBreakUI.pluginName]: PageBreakUI;
25
+ }
26
+ }