@ckeditor/ckeditor5-page-break 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 +16 -15
- package/src/augmentation.d.ts +15 -0
- package/src/augmentation.js +5 -0
- package/src/index.d.ts +12 -0
- package/src/index.js +1 -0
- package/src/pagebreak.d.ts +25 -0
- package/src/pagebreakcommand.d.ts +29 -0
- package/src/pagebreakediting.d.ts +22 -0
- package/src/pagebreakui.d.ts +21 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-page-break",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "37.0.0-alpha.1",
|
|
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": "^
|
|
15
|
+
"ckeditor5": "^37.0.0-alpha.1"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@ckeditor/ckeditor5-cloud-services": "^
|
|
19
|
-
"@ckeditor/ckeditor5-core": "^
|
|
20
|
-
"@ckeditor/ckeditor5-dev-utils": "^
|
|
21
|
-
"@ckeditor/ckeditor5-easy-image": "^
|
|
22
|
-
"@ckeditor/ckeditor5-editor-classic": "^
|
|
23
|
-
"@ckeditor/ckeditor5-engine": "^
|
|
24
|
-
"@ckeditor/ckeditor5-image": "^
|
|
25
|
-
"@ckeditor/ckeditor5-paragraph": "^
|
|
26
|
-
"@ckeditor/ckeditor5-theme-lark": "^
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "^
|
|
28
|
-
"@ckeditor/ckeditor5-widget": "^
|
|
18
|
+
"@ckeditor/ckeditor5-cloud-services": "^37.0.0-alpha.1",
|
|
19
|
+
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.1",
|
|
20
|
+
"@ckeditor/ckeditor5-dev-utils": "^35.0.0",
|
|
21
|
+
"@ckeditor/ckeditor5-easy-image": "^37.0.0-alpha.1",
|
|
22
|
+
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.1",
|
|
23
|
+
"@ckeditor/ckeditor5-engine": "^37.0.0-alpha.1",
|
|
24
|
+
"@ckeditor/ckeditor5-image": "^37.0.0-alpha.1",
|
|
25
|
+
"@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.1",
|
|
26
|
+
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.1",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "^37.0.0-alpha.1",
|
|
28
|
+
"@ckeditor/ckeditor5-widget": "^37.0.0-alpha.1",
|
|
29
29
|
"typescript": "^4.8.4",
|
|
30
30
|
"webpack": "^5.58.1",
|
|
31
31
|
"webpack-cli": "^4.9.0"
|
|
@@ -54,7 +54,8 @@
|
|
|
54
54
|
],
|
|
55
55
|
"scripts": {
|
|
56
56
|
"dll:build": "webpack",
|
|
57
|
-
"build": "tsc -p ./tsconfig.
|
|
57
|
+
"build": "tsc -p ./tsconfig.json",
|
|
58
58
|
"postversion": "npm run build"
|
|
59
|
-
}
|
|
59
|
+
},
|
|
60
|
+
"types": "src/index.d.ts"
|
|
60
61
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { PageBreak, PageBreakEditing, PageBreakUI, PageBreakCommand } from './index';
|
|
6
|
+
declare module '@ckeditor/ckeditor5-core' {
|
|
7
|
+
interface PluginsMap {
|
|
8
|
+
[PageBreak.pluginName]: PageBreak;
|
|
9
|
+
[PageBreakEditing.pluginName]: PageBreakEditing;
|
|
10
|
+
[PageBreakUI.pluginName]: PageBreakUI;
|
|
11
|
+
}
|
|
12
|
+
interface CommandsMap {
|
|
13
|
+
pageBreak: PageBreakCommand;
|
|
14
|
+
}
|
|
15
|
+
}
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
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';
|
|
11
|
+
export type { default as PageBreakCommand } from './pagebreakcommand';
|
|
12
|
+
import './augmentation';
|
package/src/index.js
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
}
|