@ckeditor/ckeditor5-horizontal-line 36.0.0 → 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-horizontal-line",
3
- "version": "36.0.0",
3
+ "version": "37.0.0-alpha.0",
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": "^36.0.0"
15
+ "ckeditor5": "^37.0.0-alpha.0"
16
16
  },
17
17
  "devDependencies": {
18
- "@ckeditor/ckeditor5-cloud-services": "^36.0.0",
19
- "@ckeditor/ckeditor5-core": "^36.0.0",
20
- "@ckeditor/ckeditor5-dev-utils": "^32.0.0",
21
- "@ckeditor/ckeditor5-easy-image": "^36.0.0",
22
- "@ckeditor/ckeditor5-editor-classic": "^36.0.0",
23
- "@ckeditor/ckeditor5-engine": "^36.0.0",
24
- "@ckeditor/ckeditor5-image": "^36.0.0",
25
- "@ckeditor/ckeditor5-paragraph": "^36.0.0",
26
- "@ckeditor/ckeditor5-theme-lark": "^36.0.0",
27
- "@ckeditor/ckeditor5-ui": "^36.0.0",
28
- "@ckeditor/ckeditor5-widget": "^36.0.0",
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
  }
@@ -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 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
+ }
26
+ declare module '@ckeditor/ckeditor5-core' {
27
+ interface PluginsMap {
28
+ [HorizontalLine.pluginName]: HorizontalLine;
29
+ }
30
+ }
@@ -0,0 +1,33 @@
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
+ }
29
+ declare module '@ckeditor/ckeditor5-core' {
30
+ interface CommandsMap {
31
+ horizontalLine: HorizontalLineCommand;
32
+ }
33
+ }
@@ -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 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
+ }
23
+ declare module '@ckeditor/ckeditor5-core' {
24
+ interface PluginsMap {
25
+ [HorizontalLineEditing.pluginName]: HorizontalLineEditing;
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 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
+ }
22
+ declare module '@ckeditor/ckeditor5-core' {
23
+ interface PluginsMap {
24
+ [HorizontalLineUI.pluginName]: HorizontalLineUI;
25
+ }
26
+ }
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 horizontal-line
7
+ */
8
+ export { default as HorizontalLine } from './horizontalline';
9
+ export { default as HorizontalLineEditing } from './horizontallineediting';
10
+ export { default as HorizontalLineUI } from './horizontallineui';