@atlaskit/editor-plugin-editor-disabled 8.0.0 → 8.0.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/CHANGELOG.md +7 -0
- package/README.md +19 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-editor-disabled
|
|
2
2
|
|
|
3
|
+
## 8.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`5985f38f7104e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5985f38f7104e) -
|
|
8
|
+
Update README.md and 0-intro.tsx
|
|
9
|
+
|
|
3
10
|
## 8.0.0
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,19 +1,31 @@
|
|
|
1
|
-
# Editor
|
|
1
|
+
# Editor Plugin Editor Disabled
|
|
2
2
|
|
|
3
3
|
Editor disabled plugin for @atlaskit/editor-core
|
|
4
4
|
|
|
5
5
|
**Note:** This component is designed for internal Atlassian development.
|
|
6
6
|
External contributors will be able to use this component but will not be able to submit issues.
|
|
7
7
|
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
The Editor Disabled plugin manages the enabled and disabled state of the Atlassian Editor. It provides functionality to track whether the editor is editable and allows plugins to control editor editability through a centralized state management system. This plugin integrates with `@atlaskit/editor-core` to handle editor state synchronization and expose shared state for components that need to respond to editor enabled/disabled changes.
|
|
11
|
+
|
|
12
|
+
## Key features
|
|
13
|
+
|
|
14
|
+
- **State tracking** - Track editor enabled/disabled state and share it with other components
|
|
15
|
+
- **Plugin-controlled editability** - Allow plugins to disable the editor programmatically
|
|
16
|
+
- **Shared state management** - Expose editor state through `useSharedPluginState` for components like panels and floating toolbars
|
|
17
|
+
- **Configuration options** - Set initial disabled state on plugin initialization
|
|
18
|
+
- **Command support** - Toggle editor disabled state via the `toggleDisabled` command
|
|
19
|
+
|
|
8
20
|
## Install
|
|
9
|
-
|
|
21
|
+
|
|
10
22
|
- **Install** - *yarn add @atlaskit/editor-plugin-editor-disabled*
|
|
11
23
|
- **npm** - [@atlaskit/editor-plugin-editor-disabled](https://www.npmjs.com/package/@atlaskit/editor-plugin-editor-disabled)
|
|
12
24
|
- **Source** - [Bitbucket](https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/editor/editor-plugin-editor-disabled)
|
|
13
25
|
- **Bundle** - [unpkg.com](https://unpkg.com/@atlaskit/editor-plugin-editor-disabled/dist/)
|
|
14
26
|
|
|
15
27
|
## Usage
|
|
16
|
-
|
|
28
|
+
|
|
17
29
|
**Internal use only**
|
|
18
30
|
|
|
19
31
|
@atlaskit/editor-plugin-editor-disabled is intended for internal use by the @atlaskit/editor-core and as a plugin dependency of the Editor within your product.
|
|
@@ -23,8 +35,9 @@ Direct use of this component is not supported.
|
|
|
23
35
|
Please see [Atlaskit - Editor plugin editor disabled](https://atlaskit.atlassian.com/packages/editor/editor-plugin-editor-disabled) for documentation and examples for this package.
|
|
24
36
|
|
|
25
37
|
## Support
|
|
26
|
-
|
|
38
|
+
|
|
27
39
|
For internal Atlassian, visit the slack channel [#help-editor](https://atlassian.slack.com/archives/CFG3PSQ9E) for support or visit [go/editor-help](https://go/editor-help) to submit a bug.
|
|
40
|
+
|
|
28
41
|
## License
|
|
29
|
-
|
|
30
|
-
|
|
42
|
+
|
|
43
|
+
Please see [Atlassian Frontend - License](https://hello.atlassian.net/wiki/spaces/AF/pages/2589099144/Documentation#License) for more licensing information.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-editor-disabled",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"description": "Editor disabled plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"raf-schd": "^4.0.3"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@atlaskit/editor-common": "^112.
|
|
28
|
+
"@atlaskit/editor-common": "^112.2.0",
|
|
29
29
|
"react": "^18.2.0",
|
|
30
30
|
"react-dom": "^18.2.0"
|
|
31
31
|
},
|