@ckeditor/ckeditor5-horizontal-line 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/horizontalline.d.ts +25 -0
- package/src/horizontallinecommand.d.ts +28 -0
- package/src/horizontallineediting.d.ts +22 -0
- package/src/horizontallineui.d.ts +21 -0
- package/src/index.d.ts +12 -0
- package/src/index.js +1 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-horizontal-line",
|
3
|
-
"version": "
|
3
|
+
"version": "37.0.0-alpha.1",
|
4
4
|
"description": "Horizontal line 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 { HorizontalLine, HorizontalLineCommand, HorizontalLineEditing, HorizontalLineUI } from './index';
|
6
|
+
declare module '@ckeditor/ckeditor5-core' {
|
7
|
+
interface PluginsMap {
|
8
|
+
[HorizontalLine.pluginName]: HorizontalLine;
|
9
|
+
[HorizontalLineEditing.pluginName]: HorizontalLineEditing;
|
10
|
+
[HorizontalLineUI.pluginName]: HorizontalLineUI;
|
11
|
+
}
|
12
|
+
interface CommandsMap {
|
13
|
+
horizontalLine: HorizontalLineCommand;
|
14
|
+
}
|
15
|
+
}
|
@@ -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 horizontal-line/horizontalline
|
7
|
+
*/
|
8
|
+
import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
|
9
|
+
/**
|
10
|
+
* The horizontal line feature.
|
11
|
+
*
|
12
|
+
* It provides the possibility to insert a horizontal line into the rich-text editor.
|
13
|
+
*
|
14
|
+
* For a detailed overview, check the {@glink features/horizontal-line Horizontal line feature} documentation.
|
15
|
+
*/
|
16
|
+
export default class HorizontalLine extends Plugin {
|
17
|
+
/**
|
18
|
+
* @inheritDoc
|
19
|
+
*/
|
20
|
+
static get requires(): PluginDependencies;
|
21
|
+
/**
|
22
|
+
* @inheritDoc
|
23
|
+
*/
|
24
|
+
static get pluginName(): 'HorizontalLine';
|
25
|
+
}
|
@@ -0,0 +1,28 @@
|
|
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 { Command } from 'ckeditor5/src/core';
|
6
|
+
/**
|
7
|
+
* The horizontal line command.
|
8
|
+
*
|
9
|
+
* The command is registered by {@link module:horizontal-line/horizontallineediting~HorizontalLineEditing} as `'horizontalLine'`.
|
10
|
+
*
|
11
|
+
* To insert a horizontal line at the current selection, execute the command:
|
12
|
+
*
|
13
|
+
* ```ts
|
14
|
+
* editor.execute( 'horizontalLine' );
|
15
|
+
* ```
|
16
|
+
*/
|
17
|
+
export default class HorizontalLineCommand extends Command {
|
18
|
+
/**
|
19
|
+
* @inheritDoc
|
20
|
+
*/
|
21
|
+
refresh(): void;
|
22
|
+
/**
|
23
|
+
* Executes the command.
|
24
|
+
*
|
25
|
+
* @fires execute
|
26
|
+
*/
|
27
|
+
execute(): void;
|
28
|
+
}
|
@@ -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 horizontal-line/horizontallineediting
|
7
|
+
*/
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
9
|
+
import '../theme/horizontalline.css';
|
10
|
+
/**
|
11
|
+
* The horizontal line editing feature.
|
12
|
+
*/
|
13
|
+
export default class HorizontalLineEditing extends Plugin {
|
14
|
+
/**
|
15
|
+
* @inheritDoc
|
16
|
+
*/
|
17
|
+
static get pluginName(): 'HorizontalLineEditing';
|
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 horizontal-line/horizontallineui
|
7
|
+
*/
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
9
|
+
/**
|
10
|
+
* The horizontal line UI plugin.
|
11
|
+
*/
|
12
|
+
export default class HorizontalLineUI extends Plugin {
|
13
|
+
/**
|
14
|
+
* @inheritDoc
|
15
|
+
*/
|
16
|
+
static get pluginName(): 'HorizontalLineUI';
|
17
|
+
/**
|
18
|
+
* @inheritDoc
|
19
|
+
*/
|
20
|
+
init(): void;
|
21
|
+
}
|
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 horizontal-line
|
7
|
+
*/
|
8
|
+
export { default as HorizontalLine } from './horizontalline';
|
9
|
+
export { default as HorizontalLineEditing } from './horizontallineediting';
|
10
|
+
export { default as HorizontalLineUI } from './horizontallineui';
|
11
|
+
export type { default as HorizontalLineCommand } from './horizontallinecommand';
|
12
|
+
import './augmentation';
|
package/src/index.js
CHANGED