@ckeditor/ckeditor5-restricted-editing 37.0.0-alpha.0 → 37.0.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 +18 -18
- package/src/augmentation.d.ts +29 -0
- package/src/augmentation.js +5 -0
- package/src/index.d.ts +4 -0
- package/src/index.js +1 -0
- package/src/restrictededitingconfig.d.ts +1 -12
- package/src/restrictededitingexceptioncommand.d.ts +0 -5
- package/src/restrictededitingmode.d.ts +0 -5
- package/src/restrictededitingmodeediting.d.ts +0 -5
- package/src/restrictededitingmodenavigationcommand.d.ts +0 -6
- package/src/restrictededitingmodeui.d.ts +0 -5
- package/src/standardeditingmode.d.ts +0 -5
- package/src/standardeditingmodeediting.d.ts +0 -5
- package/src/standardeditingmodeui.d.ts +0 -5
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-restricted-editing",
|
3
|
-
"version": "37.0.0-alpha.
|
3
|
+
"version": "37.0.0-alpha.1",
|
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.
|
14
|
+
"ckeditor5": "^37.0.0-alpha.1"
|
15
15
|
},
|
16
16
|
"devDependencies": {
|
17
|
-
"@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.
|
18
|
-
"@ckeditor/ckeditor5-block-quote": "^37.0.0-alpha.
|
19
|
-
"@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.
|
20
|
-
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.
|
21
|
-
"@ckeditor/ckeditor5-dev-utils": "^
|
22
|
-
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.
|
23
|
-
"@ckeditor/ckeditor5-engine": "^37.0.0-alpha.
|
24
|
-
"@ckeditor/ckeditor5-link": "^37.0.0-alpha.
|
25
|
-
"@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.
|
26
|
-
"@ckeditor/ckeditor5-table": "^37.0.0-alpha.
|
27
|
-
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.
|
28
|
-
"@ckeditor/ckeditor5-typing": "^37.0.0-alpha.
|
29
|
-
"@ckeditor/ckeditor5-ui": "^37.0.0-alpha.
|
30
|
-
"@ckeditor/ckeditor5-undo": "^37.0.0-alpha.
|
31
|
-
"@ckeditor/ckeditor5-utils": "^37.0.0-alpha.
|
17
|
+
"@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.1",
|
18
|
+
"@ckeditor/ckeditor5-block-quote": "^37.0.0-alpha.1",
|
19
|
+
"@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.1",
|
20
|
+
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.1",
|
21
|
+
"@ckeditor/ckeditor5-dev-utils": "^35.0.0",
|
22
|
+
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.1",
|
23
|
+
"@ckeditor/ckeditor5-engine": "^37.0.0-alpha.1",
|
24
|
+
"@ckeditor/ckeditor5-link": "^37.0.0-alpha.1",
|
25
|
+
"@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.1",
|
26
|
+
"@ckeditor/ckeditor5-table": "^37.0.0-alpha.1",
|
27
|
+
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.1",
|
28
|
+
"@ckeditor/ckeditor5-typing": "^37.0.0-alpha.1",
|
29
|
+
"@ckeditor/ckeditor5-ui": "^37.0.0-alpha.1",
|
30
|
+
"@ckeditor/ckeditor5-undo": "^37.0.0-alpha.1",
|
31
|
+
"@ckeditor/ckeditor5-utils": "^37.0.0-alpha.1",
|
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.
|
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
|
+
}
|
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/
|
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
|
-
}
|
@@ -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
|
-
}
|
@@ -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
|
-
}
|