@ckeditor/ckeditor5-heading 38.2.0-alpha.0 → 38.2.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-heading",
3
- "version": "38.2.0-alpha.0",
3
+ "version": "38.2.0-alpha.1",
4
4
  "description": "Headings feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,7 +13,7 @@
13
13
  "main": "src/index.js",
14
14
  "type": "module",
15
15
  "dependencies": {
16
- "ckeditor5": "38.2.0-alpha.0"
16
+ "ckeditor5": "38.2.0-alpha.1"
17
17
  },
18
18
  "engines": {
19
19
  "node": ">=16.0.0",
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import type { Heading, HeadingCommand, HeadingConfig, HeadingEditing, HeadingUI, Title, TitleConfig } from './index';
5
+ import type { Heading, HeadingCommand, HeadingConfig, HeadingEditing, HeadingUI, Title, TitleConfig } from './index.js';
6
6
  declare module '@ckeditor/ckeditor5-core' {
7
7
  interface EditorConfig {
8
8
  /**
package/src/heading.d.ts CHANGED
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module heading/heading
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import HeadingEditing from './headingediting';
10
- import HeadingUI from './headingui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import HeadingEditing from './headingediting.js';
10
+ import HeadingUI from './headingui.js';
11
11
  import '../theme/heading.css';
12
12
  /**
13
13
  * The headings feature.
package/src/heading.js CHANGED
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module heading/heading
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import HeadingEditing from './headingediting';
10
- import HeadingUI from './headingui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import HeadingEditing from './headingediting.js';
10
+ import HeadingUI from './headingui.js';
11
11
  import '../theme/heading.css';
12
12
  /**
13
13
  * The headings feature.
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module heading/headingbuttonsui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The `HeadingButtonsUI` plugin defines a set of UI buttons that can be used instead of the
11
11
  * standard drop down component.
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module heading/headingbuttonsui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { ButtonView } from 'ckeditor5/src/ui';
10
- import { getLocalizedOptions } from './utils';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { ButtonView } from 'ckeditor5/src/ui.js';
10
+ import { getLocalizedOptions } from './utils.js';
11
11
  import iconHeading1 from '../theme/icons/heading1.svg';
12
12
  import iconHeading2 from '../theme/icons/heading2.svg';
13
13
  import iconHeading3 from '../theme/icons/heading3.svg';
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module heading/headingcommand
7
7
  */
8
- import { Command, type Editor } from 'ckeditor5/src/core';
8
+ import { Command, type Editor } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The heading command. It is used by the {@link module:heading/heading~Heading heading feature} to apply headings.
11
11
  */
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module heading/headingcommand
7
7
  */
8
- import { Command } from 'ckeditor5/src/core';
9
- import { first } from 'ckeditor5/src/utils';
8
+ import { Command } from 'ckeditor5/src/core.js';
9
+ import { first } from 'ckeditor5/src/utils.js';
10
10
  /**
11
11
  * The heading command. It is used by the {@link module:heading/heading~Heading heading feature} to apply headings.
12
12
  */
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module heading/headingconfig
7
7
  */
8
- import type { ViewElementDefinition } from 'ckeditor5/src/engine';
8
+ import type { ViewElementDefinition } from 'ckeditor5/src/engine.js';
9
9
  /**
10
10
  * The configuration of the heading feature.
11
11
  * The option is used by the {@link module:heading/headingediting~HeadingEditing} feature.
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module heading/headingediting
7
7
  */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- import { Paragraph } from 'ckeditor5/src/paragraph';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
+ import { Paragraph } from 'ckeditor5/src/paragraph.js';
10
10
  /**
11
11
  * The headings engine feature. It handles switching between block formats – headings and paragraph.
12
12
  * This class represents the engine part of the heading feature. See also {@link module:heading/heading~Heading}.
@@ -5,10 +5,10 @@
5
5
  /**
6
6
  * @module heading/headingediting
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { Paragraph } from 'ckeditor5/src/paragraph';
10
- import { priorities } from 'ckeditor5/src/utils';
11
- import HeadingCommand from './headingcommand';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { Paragraph } from 'ckeditor5/src/paragraph.js';
10
+ import { priorities } from 'ckeditor5/src/utils.js';
11
+ import HeadingCommand from './headingcommand.js';
12
12
  const defaultModelElement = 'paragraph';
13
13
  /**
14
14
  * The headings engine feature. It handles switching between block formats – headings and paragraph.
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module heading/headingui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  import '../theme/heading.css';
10
10
  /**
11
11
  * The headings UI feature. It introduces the `headings` dropdown.
package/src/headingui.js CHANGED
@@ -5,10 +5,10 @@
5
5
  /**
6
6
  * @module heading/headingui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { Model, createDropdown, addListToDropdown } from 'ckeditor5/src/ui';
10
- import { Collection } from 'ckeditor5/src/utils';
11
- import { getLocalizedOptions } from './utils';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { Model, createDropdown, addListToDropdown } from 'ckeditor5/src/ui.js';
10
+ import { Collection } from 'ckeditor5/src/utils.js';
11
+ import { getLocalizedOptions } from './utils.js';
12
12
  import '../theme/heading.css';
13
13
  /**
14
14
  * The headings UI feature. It introduces the `headings` dropdown.
package/src/index.d.ts CHANGED
@@ -5,12 +5,12 @@
5
5
  /**
6
6
  * @module heading
7
7
  */
8
- export { default as Heading } from './heading';
9
- export type { HeadingOption } from './headingconfig';
10
- export { default as HeadingEditing } from './headingediting';
11
- export { default as HeadingUI } from './headingui';
12
- export { default as HeadingButtonsUI } from './headingbuttonsui';
13
- export { default as Title, type TitleConfig } from './title';
14
- export type { HeadingConfig } from './headingconfig';
15
- export type { default as HeadingCommand } from './headingcommand';
16
- import './augmentation';
8
+ export { default as Heading } from './heading.js';
9
+ export type { HeadingOption } from './headingconfig.js';
10
+ export { default as HeadingEditing } from './headingediting.js';
11
+ export { default as HeadingUI } from './headingui.js';
12
+ export { default as HeadingButtonsUI } from './headingbuttonsui.js';
13
+ export { default as Title, type TitleConfig } from './title.js';
14
+ export type { HeadingConfig } from './headingconfig.js';
15
+ export type { default as HeadingCommand } from './headingcommand.js';
16
+ import './augmentation.js';
package/src/index.js CHANGED
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module heading
7
7
  */
8
- export { default as Heading } from './heading';
9
- export { default as HeadingEditing } from './headingediting';
10
- export { default as HeadingUI } from './headingui';
11
- export { default as HeadingButtonsUI } from './headingbuttonsui';
12
- export { default as Title } from './title';
13
- import './augmentation';
8
+ export { default as Heading } from './heading.js';
9
+ export { default as HeadingEditing } from './headingediting.js';
10
+ export { default as HeadingUI } from './headingui.js';
11
+ export { default as HeadingButtonsUI } from './headingbuttonsui.js';
12
+ export { default as Title } from './title.js';
13
+ import './augmentation.js';
package/src/title.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module heading/title
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The Title plugin.
11
11
  *
package/src/title.js CHANGED
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module heading/title
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { first } from 'ckeditor5/src/utils';
10
- import { DowncastWriter, enablePlaceholder, hidePlaceholder, needsPlaceholder, showPlaceholder } from 'ckeditor5/src/engine';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { first } from 'ckeditor5/src/utils.js';
10
+ import { DowncastWriter, enablePlaceholder, hidePlaceholder, needsPlaceholder, showPlaceholder } from 'ckeditor5/src/engine.js';
11
11
  // A list of element names that should be treated by the Title plugin as title-like.
12
12
  // This means that an element of a type from this list will be changed to a title element
13
13
  // when it is the first element in the root.
package/src/utils.d.ts CHANGED
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module heading/utils
7
7
  */
8
- import type { Editor } from 'ckeditor5/src/core';
9
- import type { HeadingOption } from './headingconfig';
8
+ import type { Editor } from 'ckeditor5/src/core.js';
9
+ import type { HeadingOption } from './headingconfig.js';
10
10
  /**
11
11
  * Returns heading options as defined in `config.heading.options` but processed to consider
12
12
  * the editor localization, i.e. to display {@link module:heading/headingconfig~HeadingOption}