@ckeditor/ckeditor5-restricted-editing 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-restricted-editing",
3
- "version": "38.2.0-alpha.0",
3
+ "version": "38.2.0-alpha.1",
4
4
  "description": "Restricted editing feature for CKEditor 5 editors.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,7 +12,7 @@
12
12
  "main": "src/index.js",
13
13
  "type": "module",
14
14
  "dependencies": {
15
- "ckeditor5": "38.2.0-alpha.0"
15
+ "ckeditor5": "38.2.0-alpha.1"
16
16
  },
17
17
  "engines": {
18
18
  "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 { RestrictedEditingMode, RestrictedEditingModeEditing, RestrictedEditingModeUI, StandardEditingMode, StandardEditingModeEditing, StandardEditingModeUI, RestrictedEditingConfig, RestrictedEditingExceptionCommand, RestrictedEditingModeNavigationCommand } from './index';
5
+ import type { RestrictedEditingMode, RestrictedEditingModeEditing, RestrictedEditingModeUI, StandardEditingMode, StandardEditingModeEditing, StandardEditingModeUI, RestrictedEditingConfig, RestrictedEditingExceptionCommand, RestrictedEditingModeNavigationCommand } from './index.js';
6
6
  declare module '@ckeditor/ckeditor5-core' {
7
7
  interface PluginsMap {
8
8
  [RestrictedEditingMode.pluginName]: RestrictedEditingMode;
package/src/index.d.ts CHANGED
@@ -5,13 +5,13 @@
5
5
  /**
6
6
  * @module restricted-editing
7
7
  */
8
- export { default as RestrictedEditingMode } from './restrictededitingmode';
9
- export { default as RestrictedEditingModeEditing } from './restrictededitingmodeediting';
10
- export { default as RestrictedEditingModeUI } from './restrictededitingmodeui';
11
- export { default as StandardEditingMode } from './standardeditingmode';
12
- export { default as StandardEditingModeEditing } from './standardeditingmodeediting';
13
- export { default as StandardEditingModeUI } from './standardeditingmodeui';
14
- export type { RestrictedEditingConfig } from './restrictededitingconfig';
15
- export type { default as RestrictedEditingExceptionCommand } from './restrictededitingexceptioncommand';
16
- export type { default as RestrictedEditingModeNavigationCommand } from './restrictededitingmodenavigationcommand';
17
- import './augmentation';
8
+ export { default as RestrictedEditingMode } from './restrictededitingmode.js';
9
+ export { default as RestrictedEditingModeEditing } from './restrictededitingmodeediting.js';
10
+ export { default as RestrictedEditingModeUI } from './restrictededitingmodeui.js';
11
+ export { default as StandardEditingMode } from './standardeditingmode.js';
12
+ export { default as StandardEditingModeEditing } from './standardeditingmodeediting.js';
13
+ export { default as StandardEditingModeUI } from './standardeditingmodeui.js';
14
+ export type { RestrictedEditingConfig } from './restrictededitingconfig.js';
15
+ export type { default as RestrictedEditingExceptionCommand } from './restrictededitingexceptioncommand.js';
16
+ export type { default as RestrictedEditingModeNavigationCommand } from './restrictededitingmodenavigationcommand.js';
17
+ import './augmentation.js';
package/src/index.js CHANGED
@@ -5,10 +5,10 @@
5
5
  /**
6
6
  * @module restricted-editing
7
7
  */
8
- export { default as RestrictedEditingMode } from './restrictededitingmode';
9
- export { default as RestrictedEditingModeEditing } from './restrictededitingmodeediting';
10
- export { default as RestrictedEditingModeUI } from './restrictededitingmodeui';
11
- export { default as StandardEditingMode } from './standardeditingmode';
12
- export { default as StandardEditingModeEditing } from './standardeditingmodeediting';
13
- export { default as StandardEditingModeUI } from './standardeditingmodeui';
14
- import './augmentation';
8
+ export { default as RestrictedEditingMode } from './restrictededitingmode.js';
9
+ export { default as RestrictedEditingModeEditing } from './restrictededitingmodeediting.js';
10
+ export { default as RestrictedEditingModeUI } from './restrictededitingmodeui.js';
11
+ export { default as StandardEditingMode } from './standardeditingmode.js';
12
+ export { default as StandardEditingModeEditing } from './standardeditingmodeediting.js';
13
+ export { default as StandardEditingModeUI } from './standardeditingmodeui.js';
14
+ import './augmentation.js';
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module restricted-editing/restrictededitingexceptioncommand
7
7
  */
8
- import { Command } from 'ckeditor5/src/core';
8
+ import { Command } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The command that toggles exceptions from the restricted editing on text.
11
11
  */
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module restricted-editing/restrictededitingexceptioncommand
7
7
  */
8
- import { Command } from 'ckeditor5/src/core';
8
+ import { Command } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The command that toggles exceptions from the restricted editing on text.
11
11
  */
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module restricted-editing/restrictededitingmode/converters
7
7
  */
8
- import type { Editor } from 'ckeditor5/src/core';
9
- import { type MatcherPattern, type ModelPostFixer, type UpcastDispatcher } from 'ckeditor5/src/engine';
8
+ import type { Editor } from 'ckeditor5/src/core.js';
9
+ import { type MatcherPattern, type ModelPostFixer, type UpcastDispatcher } from 'ckeditor5/src/engine.js';
10
10
  /**
11
11
  * Adds a visual highlight style to a restricted editing exception that the selection is anchored to.
12
12
  *
@@ -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 { Matcher } from 'ckeditor5/src/engine';
6
- import { getMarkerAtPosition } from './utils';
5
+ import { Matcher } from 'ckeditor5/src/engine.js';
6
+ import { getMarkerAtPosition } from './utils.js';
7
7
  const HIGHLIGHT_CLASS = 'restricted-editing-exception_selected';
8
8
  /**
9
9
  * Adds a visual highlight style to a restricted editing exception that the selection is anchored to.
@@ -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 type { Editor } from 'ckeditor5/src/core';
6
- import type { DocumentSelection, Marker, Position, Range } from 'ckeditor5/src/engine';
5
+ import type { Editor } from 'ckeditor5/src/core.js';
6
+ import type { DocumentSelection, Marker, Position, Range } from 'ckeditor5/src/engine.js';
7
7
  /**
8
8
  * @module restricted-editing/restrictededitingmode/utils
9
9
  */
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module restricted-editing/restrictededitingmode
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import RestrictedEditingModeEditing from './restrictededitingmodeediting';
10
- import RestrictedEditingModeUI from './restrictededitingmodeui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import RestrictedEditingModeEditing from './restrictededitingmodeediting.js';
10
+ import RestrictedEditingModeUI from './restrictededitingmodeui.js';
11
11
  import '../theme/restrictedediting.css';
12
12
  /**
13
13
  * The restricted editing mode plugin.
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module restricted-editing/restrictededitingmode
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import RestrictedEditingModeEditing from './restrictededitingmodeediting';
10
- import RestrictedEditingModeUI from './restrictededitingmodeui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import RestrictedEditingModeEditing from './restrictededitingmodeediting.js';
10
+ import RestrictedEditingModeUI from './restrictededitingmodeui.js';
11
11
  import '../theme/restrictedediting.css';
12
12
  /**
13
13
  * The restricted editing mode plugin.
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module restricted-editing/restrictededitingmodeediting
7
7
  */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The restricted editing mode editing feature.
11
11
  *
@@ -5,10 +5,10 @@
5
5
  /**
6
6
  * @module restricted-editing/restrictededitingmodeediting
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import RestrictedEditingModeNavigationCommand from './restrictededitingmodenavigationcommand';
10
- import { extendMarkerOnTypingPostFixer, resurrectCollapsedMarkerPostFixer, setupExceptionHighlighting, upcastHighlightToMarker } from './restrictededitingmode/converters';
11
- import { getMarkerAtPosition, isSelectionInMarker } from './restrictededitingmode/utils';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import RestrictedEditingModeNavigationCommand from './restrictededitingmodenavigationcommand.js';
10
+ import { extendMarkerOnTypingPostFixer, resurrectCollapsedMarkerPostFixer, setupExceptionHighlighting, upcastHighlightToMarker } from './restrictededitingmode/converters.js';
11
+ import { getMarkerAtPosition, isSelectionInMarker } from './restrictededitingmode/utils.js';
12
12
  const COMMAND_FORCE_DISABLE_ID = 'RestrictedEditingMode';
13
13
  /**
14
14
  * The restricted editing mode editing feature.
@@ -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 command that allows navigation across the exceptions in the edited document.
8
8
  */
@@ -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 } from 'ckeditor5/src/core';
5
+ import { Command } from 'ckeditor5/src/core.js';
6
6
  /**
7
7
  * The command that allows navigation across the exceptions in the edited document.
8
8
  */
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module restricted-editing/restrictededitingmodeui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The restricted editing mode UI feature.
11
11
  *
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module restricted-editing/restrictededitingmodeui
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';
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
11
  import lockIcon from '../theme/icons/contentlock.svg';
12
12
  /**
13
13
  * The restricted editing mode UI feature.
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module restricted-editing/standardeditingmode
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import StandardEditingModeEditing from './standardeditingmodeediting';
10
- import StandardEditingModeUI from './standardeditingmodeui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import StandardEditingModeEditing from './standardeditingmodeediting.js';
10
+ import StandardEditingModeUI from './standardeditingmodeui.js';
11
11
  import '../theme/restrictedediting.css';
12
12
  /**
13
13
  * The standard editing mode plugin.
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module restricted-editing/standardeditingmode
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import StandardEditingModeEditing from './standardeditingmodeediting';
10
- import StandardEditingModeUI from './standardeditingmodeui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import StandardEditingModeEditing from './standardeditingmodeediting.js';
10
+ import StandardEditingModeUI from './standardeditingmodeui.js';
11
11
  import '../theme/restrictedediting.css';
12
12
  /**
13
13
  * The standard editing mode plugin.
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module restricted-editing/standardeditingmodeediting
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The standard editing mode editing feature.
11
11
  *
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module restricted-editing/standardeditingmodeediting
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import RestrictedEditingExceptionCommand from './restrictededitingexceptioncommand';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import RestrictedEditingExceptionCommand from './restrictededitingexceptioncommand.js';
10
10
  /**
11
11
  * The standard editing mode editing feature.
12
12
  *
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module restricted-editing/standardeditingmodeui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The standard editing mode UI feature.
11
11
  *
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module restricted-editing/standardeditingmodeui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { ButtonView } from 'ckeditor5/src/ui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { ButtonView } from 'ckeditor5/src/ui.js';
10
10
  import unlockIcon from '../theme/icons/contentunlock.svg';
11
11
  /**
12
12
  * The standard editing mode UI feature.