@ckeditor/ckeditor5-code-block 0.0.0-nightly-20231215.0 → 0.0.0-nightly-20231216.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-code-block",
3
- "version": "0.0.0-nightly-20231215.0",
3
+ "version": "0.0.0-nightly-20231216.0",
4
4
  "description": "Code block feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -10,9 +10,10 @@
10
10
  "ckeditor5-plugin",
11
11
  "ckeditor5-dll"
12
12
  ],
13
+ "type": "module",
13
14
  "main": "src/index.js",
14
15
  "dependencies": {
15
- "ckeditor5": "0.0.0-nightly-20231215.0"
16
+ "ckeditor5": "0.0.0-nightly-20231216.0"
16
17
  },
17
18
  "author": "CKSource (http://cksource.com/)",
18
19
  "license": "GPL-2.0-or-later",
@@ -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 { CodeBlock, CodeBlockCommand, CodeBlockConfig, CodeBlockEditing, CodeBlockUI, IndentCodeBlockCommand, OutdentCodeBlockCommand } from './index';
5
+ import type { CodeBlock, CodeBlockCommand, CodeBlockConfig, CodeBlockEditing, CodeBlockUI, IndentCodeBlockCommand, OutdentCodeBlockCommand } from './index.js';
6
6
  declare module '@ckeditor/ckeditor5-core' {
7
7
  interface EditorConfig {
8
8
  /**
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module code-block/codeblock
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import CodeBlockEditing from './codeblockediting';
10
- import CodeBlockUI from './codeblockui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import CodeBlockEditing from './codeblockediting.js';
10
+ import CodeBlockUI from './codeblockui.js';
11
11
  /**
12
12
  * The code block plugin.
13
13
  *
package/src/codeblock.js CHANGED
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module code-block/codeblock
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import CodeBlockEditing from './codeblockediting';
10
- import CodeBlockUI from './codeblockui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import CodeBlockEditing from './codeblockediting.js';
10
+ import CodeBlockUI from './codeblockui.js';
11
11
  /**
12
12
  * The code block plugin.
13
13
  *
@@ -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 { Command, type Editor } from 'ckeditor5/src/core';
5
+ import { Command, type Editor } from 'ckeditor5/src/core.js';
6
6
  /**
7
7
  * The code block command plugin.
8
8
  */
@@ -2,9 +2,9 @@
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 { Command } from 'ckeditor5/src/core';
6
- import { first } from 'ckeditor5/src/utils';
7
- import { getNormalizedAndLocalizedLanguageDefinitions, canBeCodeBlock } from './utils';
5
+ import { Command } from 'ckeditor5/src/core.js';
6
+ import { first } from 'ckeditor5/src/utils.js';
7
+ import { getNormalizedAndLocalizedLanguageDefinitions, canBeCodeBlock } from './utils.js';
8
8
  /**
9
9
  * The code block command plugin.
10
10
  */
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module code-block/codeblockediting
7
7
  */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- import { ShiftEnter } from 'ckeditor5/src/enter';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
+ import { ShiftEnter } from 'ckeditor5/src/enter.js';
10
10
  /**
11
11
  * The editing part of the code block feature.
12
12
  *
@@ -5,14 +5,14 @@
5
5
  /**
6
6
  * @module code-block/codeblockediting
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { ShiftEnter } from 'ckeditor5/src/enter';
10
- import { UpcastWriter } from 'ckeditor5/src/engine';
11
- import CodeBlockCommand from './codeblockcommand';
12
- import IndentCodeBlockCommand from './indentcodeblockcommand';
13
- import OutdentCodeBlockCommand from './outdentcodeblockcommand';
14
- import { getNormalizedAndLocalizedLanguageDefinitions, getLeadingWhiteSpaces, rawSnippetTextToViewDocumentFragment } from './utils';
15
- import { modelToViewCodeBlockInsertion, modelToDataViewSoftBreakInsertion, dataViewToModelCodeBlockInsertion, dataViewToModelTextNewlinesInsertion, dataViewToModelOrphanNodeConsumer } from './converters';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { ShiftEnter } from 'ckeditor5/src/enter.js';
10
+ import { UpcastWriter } from 'ckeditor5/src/engine.js';
11
+ import CodeBlockCommand from './codeblockcommand.js';
12
+ import IndentCodeBlockCommand from './indentcodeblockcommand.js';
13
+ import OutdentCodeBlockCommand from './outdentcodeblockcommand.js';
14
+ import { getNormalizedAndLocalizedLanguageDefinitions, getLeadingWhiteSpaces, rawSnippetTextToViewDocumentFragment } from './utils.js';
15
+ import { modelToViewCodeBlockInsertion, modelToDataViewSoftBreakInsertion, dataViewToModelCodeBlockInsertion, dataViewToModelTextNewlinesInsertion, dataViewToModelOrphanNodeConsumer } from './converters.js';
16
16
  const DEFAULT_ELEMENT = 'paragraph';
17
17
  /**
18
18
  * The editing part of the code block feature.
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module code-block/codeblockui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  import '../theme/codeblock.css';
10
10
  /**
11
11
  * The code block UI plugin.
@@ -5,10 +5,10 @@
5
5
  /**
6
6
  * @module code-block/codeblockui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { Collection } from 'ckeditor5/src/utils';
10
- import { Model, SplitButtonView, createDropdown, addListToDropdown } from 'ckeditor5/src/ui';
11
- import { getNormalizedAndLocalizedLanguageDefinitions } from './utils';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { Collection } from 'ckeditor5/src/utils.js';
10
+ import { Model, SplitButtonView, createDropdown, addListToDropdown } from 'ckeditor5/src/ui.js';
11
+ import { getNormalizedAndLocalizedLanguageDefinitions } from './utils.js';
12
12
  import codeBlockIcon from '../theme/icons/codeblock.svg';
13
13
  import '../theme/codeblock.css';
14
14
  /**
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module code-block/converters
7
7
  */
8
- import type { GetCallback } from 'ckeditor5/src/utils';
9
- import type { DowncastInsertEvent, Model, UpcastElementEvent, UpcastTextEvent, View } from 'ckeditor5/src/engine';
10
- import type { CodeBlockLanguageDefinition } from './codeblockconfig';
8
+ import type { GetCallback } from 'ckeditor5/src/utils.js';
9
+ import type { DowncastInsertEvent, Model, UpcastElementEvent, UpcastTextEvent, View } from 'ckeditor5/src/engine.js';
10
+ import type { CodeBlockLanguageDefinition } from './codeblockconfig.js';
11
11
  /**
12
12
  * A model-to-view (both editing and data) converter for the `codeBlock` element.
13
13
  *
package/src/converters.js CHANGED
@@ -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 { getPropertyAssociation } from './utils';
5
+ import { getPropertyAssociation } from './utils.js';
6
6
  /**
7
7
  * A model-to-view (both editing and data) converter for the `codeBlock` element.
8
8
  *
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module code-block/indentcodeblockcommand
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 code block indentation increase command plugin.
11
11
  */
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module code-block/indentcodeblockcommand
7
7
  */
8
- import { Command } from 'ckeditor5/src/core';
9
- import { getIndentOutdentPositions, isModelSelectionInCodeBlock } from './utils';
8
+ import { Command } from 'ckeditor5/src/core.js';
9
+ import { getIndentOutdentPositions, isModelSelectionInCodeBlock } from './utils.js';
10
10
  /**
11
11
  * The code block indentation increase command plugin.
12
12
  */
package/src/index.d.ts CHANGED
@@ -5,11 +5,11 @@
5
5
  /**
6
6
  * @module code-block
7
7
  */
8
- export { default as CodeBlock } from './codeblock';
9
- export { default as CodeBlockEditing } from './codeblockediting';
10
- export { default as CodeBlockUI } from './codeblockui';
11
- export type { default as CodeBlockCommand } from './codeblockcommand';
12
- export type { default as IndentCodeBlockCommand } from './indentcodeblockcommand';
13
- export type { default as OutdentCodeBlockCommand } from './outdentcodeblockcommand';
14
- export type { CodeBlockConfig } from './codeblockconfig';
15
- import './augmentation';
8
+ export { default as CodeBlock } from './codeblock.js';
9
+ export { default as CodeBlockEditing } from './codeblockediting.js';
10
+ export { default as CodeBlockUI } from './codeblockui.js';
11
+ export type { default as CodeBlockCommand } from './codeblockcommand.js';
12
+ export type { default as IndentCodeBlockCommand } from './indentcodeblockcommand.js';
13
+ export type { default as OutdentCodeBlockCommand } from './outdentcodeblockcommand.js';
14
+ export type { CodeBlockConfig } from './codeblockconfig.js';
15
+ import './augmentation.js';
package/src/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module code-block
7
7
  */
8
- export { default as CodeBlock } from './codeblock';
9
- export { default as CodeBlockEditing } from './codeblockediting';
10
- export { default as CodeBlockUI } from './codeblockui';
11
- import './augmentation';
8
+ export { default as CodeBlock } from './codeblock.js';
9
+ export { default as CodeBlockEditing } from './codeblockediting.js';
10
+ export { default as CodeBlockUI } from './codeblockui.js';
11
+ import './augmentation.js';
@@ -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 { Command, type Editor } from 'ckeditor5/src/core';
5
+ import { Command, type Editor } from 'ckeditor5/src/core.js';
6
6
  /**
7
7
  * The code block indentation decrease command plugin.
8
8
  */
@@ -2,8 +2,8 @@
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 { Command } from 'ckeditor5/src/core';
6
- import { getLeadingWhiteSpaces, getIndentOutdentPositions, isModelSelectionInCodeBlock } from './utils';
5
+ import { Command } from 'ckeditor5/src/core.js';
6
+ import { getLeadingWhiteSpaces, getIndentOutdentPositions, isModelSelectionInCodeBlock } from './utils.js';
7
7
  /**
8
8
  * The code block indentation decrease command plugin.
9
9
  */
package/src/utils.d.ts CHANGED
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module code-block/utils
7
7
  */
8
- import type { Editor } from 'ckeditor5/src/core';
9
- import type { CodeBlockLanguageDefinition } from './codeblockconfig';
10
- import type { DocumentSelection, Element, Model, Position, Schema, Text, UpcastWriter, ViewDocumentFragment } from 'ckeditor5/src/engine';
8
+ import type { Editor } from 'ckeditor5/src/core.js';
9
+ import type { CodeBlockLanguageDefinition } from './codeblockconfig.js';
10
+ import type { DocumentSelection, Element, Model, Position, Schema, Text, UpcastWriter, ViewDocumentFragment } from 'ckeditor5/src/engine.js';
11
11
  /**
12
12
  * Returns code block languages as defined in `config.codeBlock.languages` but processed:
13
13
  *
package/src/utils.js CHANGED
@@ -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 { first } from 'ckeditor5/src/utils';
5
+ import { first } from 'ckeditor5/src/utils.js';
6
6
  /**
7
7
  * Returns code block languages as defined in `config.codeBlock.languages` but processed:
8
8
  *