@ckeditor/ckeditor5-restricted-editing 37.0.0-alpha.0 → 37.0.0-alpha.2

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": "37.0.0-alpha.0",
3
+ "version": "37.0.0-alpha.2",
4
4
  "description": "Restricted editing feature for CKEditor 5 editors.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -11,24 +11,24 @@
11
11
  ],
12
12
  "main": "src/index.js",
13
13
  "dependencies": {
14
- "ckeditor5": "^37.0.0-alpha.0"
14
+ "ckeditor5": "^37.0.0-alpha.2"
15
15
  },
16
16
  "devDependencies": {
17
- "@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.0",
18
- "@ckeditor/ckeditor5-block-quote": "^37.0.0-alpha.0",
19
- "@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.0",
20
- "@ckeditor/ckeditor5-core": "^37.0.0-alpha.0",
21
- "@ckeditor/ckeditor5-dev-utils": "^34.0.0",
22
- "@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.0",
23
- "@ckeditor/ckeditor5-engine": "^37.0.0-alpha.0",
24
- "@ckeditor/ckeditor5-link": "^37.0.0-alpha.0",
25
- "@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.0",
26
- "@ckeditor/ckeditor5-table": "^37.0.0-alpha.0",
27
- "@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.0",
28
- "@ckeditor/ckeditor5-typing": "^37.0.0-alpha.0",
29
- "@ckeditor/ckeditor5-ui": "^37.0.0-alpha.0",
30
- "@ckeditor/ckeditor5-undo": "^37.0.0-alpha.0",
31
- "@ckeditor/ckeditor5-utils": "^37.0.0-alpha.0",
17
+ "@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.2",
18
+ "@ckeditor/ckeditor5-block-quote": "^37.0.0-alpha.2",
19
+ "@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.2",
20
+ "@ckeditor/ckeditor5-core": "^37.0.0-alpha.2",
21
+ "@ckeditor/ckeditor5-dev-utils": "^35.0.0",
22
+ "@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.2",
23
+ "@ckeditor/ckeditor5-engine": "^37.0.0-alpha.2",
24
+ "@ckeditor/ckeditor5-link": "^37.0.0-alpha.2",
25
+ "@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.2",
26
+ "@ckeditor/ckeditor5-table": "^37.0.0-alpha.2",
27
+ "@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.2",
28
+ "@ckeditor/ckeditor5-typing": "^37.0.0-alpha.2",
29
+ "@ckeditor/ckeditor5-ui": "^37.0.0-alpha.2",
30
+ "@ckeditor/ckeditor5-undo": "^37.0.0-alpha.2",
31
+ "@ckeditor/ckeditor5-utils": "^37.0.0-alpha.2",
32
32
  "typescript": "^4.8.4",
33
33
  "webpack": "^5.58.1",
34
34
  "webpack-cli": "^4.9.0"
@@ -57,7 +57,7 @@
57
57
  ],
58
58
  "scripts": {
59
59
  "dll:build": "webpack",
60
- "build": "tsc -p ./tsconfig.release.json",
60
+ "build": "tsc -p ./tsconfig.json",
61
61
  "postversion": "npm run build"
62
62
  },
63
63
  "types": "src/index.d.ts"
@@ -0,0 +1,29 @@
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 { RestrictedEditingMode, RestrictedEditingModeEditing, RestrictedEditingModeUI, StandardEditingMode, StandardEditingModeEditing, StandardEditingModeUI, RestrictedEditingConfig, RestrictedEditingExceptionCommand, RestrictedEditingModeNavigationCommand } from './index';
6
+ declare module '@ckeditor/ckeditor5-core' {
7
+ interface PluginsMap {
8
+ [RestrictedEditingMode.pluginName]: RestrictedEditingMode;
9
+ [RestrictedEditingModeEditing.pluginName]: RestrictedEditingModeEditing;
10
+ [RestrictedEditingModeUI.pluginName]: RestrictedEditingModeUI;
11
+ [StandardEditingMode.pluginName]: StandardEditingMode;
12
+ [StandardEditingModeEditing.pluginName]: StandardEditingModeEditing;
13
+ [StandardEditingModeUI.pluginName]: StandardEditingModeUI;
14
+ }
15
+ interface CommandsMap {
16
+ restrictedEditingException: RestrictedEditingExceptionCommand;
17
+ goToPreviousRestrictedEditingException: RestrictedEditingModeNavigationCommand;
18
+ goToNextRestrictedEditingException: RestrictedEditingModeNavigationCommand;
19
+ }
20
+ interface EditorConfig {
21
+ /**
22
+ * The configuration of the restricted editing mode feature. Introduced by the
23
+ * {@link module:restricted-editing/restrictededitingmode~RestrictedEditingMode} feature.
24
+ *
25
+ * Read more in {@link module:restricted-editing/restrictededitingconfig~RestrictedEditingConfig}.
26
+ */
27
+ restrictedEditing?: RestrictedEditingConfig;
28
+ }
29
+ }
@@ -0,0 +1,5 @@
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
+ export {};
package/src/index.d.ts CHANGED
@@ -11,3 +11,7 @@ export { default as RestrictedEditingModeUI } from './restrictededitingmodeui';
11
11
  export { default as StandardEditingMode } from './standardeditingmode';
12
12
  export { default as StandardEditingModeEditing } from './standardeditingmodeediting';
13
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';
package/src/index.js CHANGED
@@ -11,3 +11,4 @@ export { default as RestrictedEditingModeUI } from './restrictededitingmodeui';
11
11
  export { default as StandardEditingMode } from './standardeditingmode';
12
12
  export { default as StandardEditingModeEditing } from './standardeditingmodeediting';
13
13
  export { default as StandardEditingModeUI } from './standardeditingmodeui';
14
+ import './augmentation';
@@ -42,7 +42,7 @@ export interface RestrictedEditingConfig {
42
42
  * ```
43
43
  *
44
44
  * To make a command always enabled (also outside non-restricted areas) use
45
- * {@link module:restricted-editing/restrictededitingconfig~RestrictedEditingModeEditing#enableCommand} method.
45
+ * {@link module:restricted-editing/restrictededitingmodeediting~RestrictedEditingModeEditing#enableCommand} method.
46
46
  */
47
47
  allowedCommands: Array<string>;
48
48
  /**
@@ -58,14 +58,3 @@ export interface RestrictedEditingConfig {
58
58
  */
59
59
  allowedAttributes: Array<string>;
60
60
  }
61
- declare module '@ckeditor/ckeditor5-core' {
62
- /**
63
- * The configuration of the restricted editing mode feature. Introduced by the
64
- * {@link module:restricted-editing/restrictededitingmode~RestrictedEditingMode} feature.
65
- *
66
- * Read more in {@link module:restricted-editing/restrictededitingmode~RestrictedEditingModeConfig}.
67
- */
68
- interface EditorConfig {
69
- restrictedEditing?: RestrictedEditingConfig;
70
- }
71
- }
@@ -28,8 +28,3 @@ export default class RestrictedEditingExceptionCommand extends Command {
28
28
  export interface RestrictedEditingExceptionCommandParams {
29
29
  forceValue?: unknown;
30
30
  }
31
- declare module '@ckeditor/ckeditor5-core' {
32
- interface CommandsMap {
33
- restrictedEditingException: RestrictedEditingExceptionCommand;
34
- }
35
- }
@@ -25,8 +25,3 @@ export default class RestrictedEditingMode extends Plugin {
25
25
  */
26
26
  static get requires(): PluginDependencies;
27
27
  }
28
- declare module '@ckeditor/ckeditor5-core' {
29
- interface PluginsMap {
30
- [RestrictedEditingMode.pluginName]: RestrictedEditingMode;
31
- }
32
- }
@@ -81,8 +81,3 @@ export default class RestrictedEditingModeEditing extends Plugin {
81
81
  */
82
82
  private _disableCommands;
83
83
  }
84
- declare module '@ckeditor/ckeditor5-core' {
85
- interface PluginsMap {
86
- [RestrictedEditingModeEditing.pluginName]: RestrictedEditingModeEditing;
87
- }
88
- }
@@ -40,9 +40,3 @@ export default class RestrictedEditingModeNavigationCommand extends Command {
40
40
  * {@link module:restricted-editing/restrictededitingmodenavigationcommand~RestrictedEditingModeNavigationCommand} can work.
41
41
  */
42
42
  export type RestrictedEditingModeNavigationDirection = 'forward' | 'backward';
43
- declare module '@ckeditor/ckeditor5-core' {
44
- interface CommandsMap {
45
- goToPreviousRestrictedEditingException: RestrictedEditingModeNavigationCommand;
46
- goToNextRestrictedEditingException: RestrictedEditingModeNavigationCommand;
47
- }
48
- }
@@ -30,8 +30,3 @@ export default class RestrictedEditingModeUI extends Plugin {
30
30
  */
31
31
  private _getButtonDefinition;
32
32
  }
33
- declare module '@ckeditor/ckeditor5-core' {
34
- interface PluginsMap {
35
- [RestrictedEditingModeUI.pluginName]: RestrictedEditingModeUI;
36
- }
37
- }
@@ -22,8 +22,3 @@ export default class StandardEditingMode extends Plugin {
22
22
  static get pluginName(): 'StandardEditingMode';
23
23
  static get requires(): PluginDependencies;
24
24
  }
25
- declare module '@ckeditor/ckeditor5-core' {
26
- interface PluginsMap {
27
- [StandardEditingMode.pluginName]: StandardEditingMode;
28
- }
29
- }
@@ -23,8 +23,3 @@ export default class StandardEditingModeEditing extends Plugin {
23
23
  */
24
24
  init(): void;
25
25
  }
26
- declare module '@ckeditor/ckeditor5-core' {
27
- interface PluginsMap {
28
- [StandardEditingModeEditing.pluginName]: StandardEditingModeEditing;
29
- }
30
- }
@@ -21,8 +21,3 @@ export default class StandardEditingModeUI extends Plugin {
21
21
  */
22
22
  init(): void;
23
23
  }
24
- declare module '@ckeditor/ckeditor5-core' {
25
- interface PluginsMap {
26
- [StandardEditingModeUI.pluginName]: StandardEditingModeUI;
27
- }
28
- }