@atlaskit/editor-plugin-decorations 8.0.0 → 8.0.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/CHANGELOG.md +13 -0
- package/README.md +16 -2
- package/dist/types/pm-plugins/main.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/main.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-decorations
|
|
2
2
|
|
|
3
|
+
## 8.0.2
|
|
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
|
+
|
|
10
|
+
## 8.0.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 8.0.0
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,10 +1,23 @@
|
|
|
1
|
-
# Editor
|
|
1
|
+
# Editor Plugin Decorations
|
|
2
2
|
|
|
3
3
|
Decorations 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 Decorations plugin provides visual styling capabilities for editor nodes through ProseMirror decorations. It enables hover effects and danger state styling on nodes, such as layouts, tables, and other container elements. The plugin integrates seamlessly with `@atlaskit/editor-core` to manage decoration state and lifecycle.
|
|
11
|
+
|
|
12
|
+
## Key features
|
|
13
|
+
|
|
14
|
+
- **Node decorations** - Apply visual decorations to specific nodes in the editor
|
|
15
|
+
- **Hover effects** - Add hover-based styling to nodes and their contents
|
|
16
|
+
- **Danger state styling** - Highlight nodes with danger styling (e.g., for destructive actions)
|
|
17
|
+
- **Table support** - Apply decorations to tables and their individual cells
|
|
18
|
+
- **Layout support** - Apply decorations to layout sections and columns with nested content handling
|
|
19
|
+
- **State management** - Automatic decoration state tracking and cleanup
|
|
20
|
+
|
|
8
21
|
## Install
|
|
9
22
|
---
|
|
10
23
|
- **Install** - *yarn add @atlaskit/editor-plugin-decorations*
|
|
@@ -25,6 +38,7 @@ Please see [Atlaskit - Editor plugin decorations](https://atlaskit.atlassian.com
|
|
|
25
38
|
## Support
|
|
26
39
|
---
|
|
27
40
|
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.
|
|
41
|
+
|
|
28
42
|
## License
|
|
29
43
|
---
|
|
30
|
-
|
|
44
|
+
Please see [Atlassian Frontend - License](https://hello.atlassian.net/wiki/spaces/AF/pages/2589099144/Documentation#License) for more licensing information.
|
|
@@ -3,7 +3,7 @@ import type { Command } from '@atlaskit/editor-common/types';
|
|
|
3
3
|
import { type NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
6
|
-
export declare const decorationStateKey: PluginKey
|
|
6
|
+
export declare const decorationStateKey: PluginKey;
|
|
7
7
|
export declare enum ACTIONS {
|
|
8
8
|
DECORATION_ADD = 0,
|
|
9
9
|
DECORATION_REMOVE = 1
|
|
@@ -3,7 +3,7 @@ import type { Command } from '@atlaskit/editor-common/types';
|
|
|
3
3
|
import { type NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
6
|
-
export declare const decorationStateKey: PluginKey
|
|
6
|
+
export declare const decorationStateKey: PluginKey;
|
|
7
7
|
export declare enum ACTIONS {
|
|
8
8
|
DECORATION_ADD = 0,
|
|
9
9
|
DECORATION_REMOVE = 1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-decorations",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.2",
|
|
4
4
|
"description": "Decorations plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
23
23
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
24
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
24
|
+
"@atlaskit/tmp-editor-statsig": "^36.3.0",
|
|
25
25
|
"@babel/runtime": "^7.0.0"
|
|
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
|
},
|