@atlaskit/editor-plugin-decorations 1.1.3 → 1.1.5
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/.eslintrc.js +12 -12
- package/CHANGELOG.md +85 -74
- package/LICENSE.md +6 -8
- package/dist/types/pm-plugin.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugin.d.ts +1 -1
- package/package.json +4 -6
- package/report.api.md +15 -14
package/.eslintrc.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
rules: {
|
|
3
|
+
'@typescript-eslint/no-duplicate-imports': 'error',
|
|
4
|
+
'@typescript-eslint/no-explicit-any': 'error',
|
|
5
|
+
},
|
|
6
|
+
overrides: [
|
|
7
|
+
{
|
|
8
|
+
files: ['**/__tests__/**/*.{js,ts,tsx}', '**/examples/**/*.{js,ts,tsx}'],
|
|
9
|
+
rules: {
|
|
10
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
14
|
};
|
package/CHANGELOG.md
CHANGED
|
@@ -1,188 +1,199 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-decorations
|
|
2
2
|
|
|
3
|
+
## 1.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.1.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 1.1.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
6
18
|
|
|
7
|
-
-
|
|
19
|
+
- Updated dependencies
|
|
8
20
|
|
|
9
21
|
## 1.1.2
|
|
10
22
|
|
|
11
23
|
### Patch Changes
|
|
12
24
|
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
25
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
|
26
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
|
27
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
|
28
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
|
29
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
|
18
30
|
|
|
19
31
|
## 1.1.1
|
|
20
32
|
|
|
21
33
|
### Patch Changes
|
|
22
34
|
|
|
23
|
-
-
|
|
35
|
+
- Updated dependencies
|
|
24
36
|
|
|
25
37
|
## 1.1.0
|
|
26
38
|
|
|
27
39
|
### Minor Changes
|
|
28
40
|
|
|
29
|
-
-
|
|
30
|
-
|
|
31
|
-
|
|
41
|
+
- [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
|
|
42
|
+
[`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
|
|
43
|
+
bumped editor-prosemirror version to 4.0.0
|
|
32
44
|
|
|
33
45
|
### Patch Changes
|
|
34
46
|
|
|
35
|
-
-
|
|
47
|
+
- Updated dependencies
|
|
36
48
|
|
|
37
49
|
## 1.0.2
|
|
38
50
|
|
|
39
51
|
### Patch Changes
|
|
40
52
|
|
|
41
|
-
-
|
|
42
|
-
|
|
43
|
-
|
|
53
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
54
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
55
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
44
56
|
|
|
45
57
|
## 1.0.1
|
|
46
58
|
|
|
47
59
|
### Patch Changes
|
|
48
60
|
|
|
49
|
-
-
|
|
61
|
+
- Updated dependencies
|
|
50
62
|
|
|
51
63
|
## 1.0.0
|
|
52
64
|
|
|
53
65
|
### Major Changes
|
|
54
66
|
|
|
55
|
-
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
67
|
+
- [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
|
|
68
|
+
[`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
|
|
69
|
+
This changeset exists to bump all editor plugins that currently don't have a major version. This
|
|
70
|
+
is to address an issue with Jira plugin consumption.
|
|
59
71
|
|
|
60
72
|
## 0.2.8
|
|
61
73
|
|
|
62
74
|
### Patch Changes
|
|
63
75
|
|
|
64
|
-
-
|
|
65
|
-
|
|
66
|
-
|
|
76
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
|
77
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
|
78
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
|
67
79
|
|
|
68
80
|
## 0.2.7
|
|
69
81
|
|
|
70
82
|
### Patch Changes
|
|
71
83
|
|
|
72
|
-
-
|
|
84
|
+
- Updated dependencies
|
|
73
85
|
|
|
74
86
|
## 0.2.6
|
|
75
87
|
|
|
76
88
|
### Patch Changes
|
|
77
89
|
|
|
78
|
-
-
|
|
79
|
-
|
|
80
|
-
|
|
90
|
+
- [#42604](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42604)
|
|
91
|
+
[`182627d0f5e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/182627d0f5e) -
|
|
92
|
+
Extracted panel plugin from editor-core as @atlaskit/editor-plugin-panel
|
|
81
93
|
|
|
82
94
|
## 0.2.5
|
|
83
95
|
|
|
84
96
|
### Patch Changes
|
|
85
97
|
|
|
86
|
-
-
|
|
87
|
-
|
|
88
|
-
|
|
98
|
+
- [#42505](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42505)
|
|
99
|
+
[`48e5f1efdde`](https://bitbucket.org/atlassian/atlassian-frontend/commits/48e5f1efdde) - Extract
|
|
100
|
+
layout plugin into new package @atlaskit/editor-plugin-layout.
|
|
89
101
|
|
|
90
102
|
## 0.2.4
|
|
91
103
|
|
|
92
104
|
### Patch Changes
|
|
93
105
|
|
|
94
|
-
-
|
|
95
|
-
|
|
96
|
-
|
|
106
|
+
- [#42477](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42477)
|
|
107
|
+
[`8f5175dc714`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8f5175dc714) - Decouple
|
|
108
|
+
layout plugin from editor-core
|
|
97
109
|
|
|
98
110
|
## 0.2.3
|
|
99
111
|
|
|
100
112
|
### Patch Changes
|
|
101
113
|
|
|
102
|
-
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
114
|
+
- [#41648](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41648)
|
|
115
|
+
[`20f43769aa7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/20f43769aa7) -
|
|
116
|
+
[ED-19746] Extract mentions plugin from editor-core to its own package:
|
|
117
|
+
@atlaskit/editor-plugin-mentions
|
|
106
118
|
|
|
107
119
|
## 0.2.2
|
|
108
120
|
|
|
109
121
|
### Patch Changes
|
|
110
122
|
|
|
111
|
-
-
|
|
123
|
+
- Updated dependencies
|
|
112
124
|
|
|
113
125
|
## 0.2.1
|
|
114
126
|
|
|
115
127
|
### Patch Changes
|
|
116
128
|
|
|
117
|
-
-
|
|
129
|
+
- Updated dependencies
|
|
118
130
|
|
|
119
131
|
## 0.2.0
|
|
120
132
|
|
|
121
133
|
### Minor Changes
|
|
122
134
|
|
|
123
|
-
-
|
|
124
|
-
|
|
125
|
-
|
|
135
|
+
- [#39325](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39325)
|
|
136
|
+
[`ad3c5c21079`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad3c5c21079) - Updating
|
|
137
|
+
all plugins with minor version to correct issue with semver.
|
|
126
138
|
|
|
127
139
|
## 0.1.5
|
|
128
140
|
|
|
129
141
|
### Patch Changes
|
|
130
142
|
|
|
131
|
-
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
`NextEditorPlugin`.
|
|
143
|
+
- [#39010](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39010)
|
|
144
|
+
[`8467bdcdf4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8467bdcdf4f) - Removing
|
|
145
|
+
`dependencies` prop from PluginInjectionAPI and changing signature of `NextEditorPlugin`.
|
|
135
146
|
|
|
136
|
-
|
|
147
|
+
Previously a `NextEditorPlugin` would be consumed as so:
|
|
137
148
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
149
|
+
```ts
|
|
150
|
+
const plugin: NextEditorPlugin< ... > = (config, api) => {
|
|
151
|
+
// Can use api like so:
|
|
152
|
+
api.dependencies.core.actions.execute( ... )
|
|
153
|
+
return { ... }
|
|
154
|
+
}
|
|
155
|
+
```
|
|
145
156
|
|
|
146
|
-
|
|
147
|
-
|
|
157
|
+
Now these have become named parameters like so and the `pluginInjectionAPI` is used without the
|
|
158
|
+
`dependencies` prop:
|
|
148
159
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
160
|
+
```ts
|
|
161
|
+
const plugin: NextEditorPlugin< ... > = ({ config, api }) => {
|
|
162
|
+
// Can use api like so:
|
|
163
|
+
api.core.actions.execute( ... )
|
|
164
|
+
return { ... }
|
|
165
|
+
}
|
|
166
|
+
```
|
|
156
167
|
|
|
157
|
-
-
|
|
168
|
+
- Updated dependencies
|
|
158
169
|
|
|
159
170
|
## 0.1.4
|
|
160
171
|
|
|
161
172
|
### Patch Changes
|
|
162
173
|
|
|
163
|
-
-
|
|
164
|
-
|
|
165
|
-
|
|
174
|
+
- [#39177](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39177)
|
|
175
|
+
[`24e27147cbd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/24e27147cbd) - Added
|
|
176
|
+
atlaskit docs to all existing plugins.
|
|
166
177
|
|
|
167
178
|
## 0.1.3
|
|
168
179
|
|
|
169
180
|
### Patch Changes
|
|
170
181
|
|
|
171
|
-
-
|
|
182
|
+
- Updated dependencies
|
|
172
183
|
|
|
173
184
|
## 0.1.2
|
|
174
185
|
|
|
175
186
|
### Patch Changes
|
|
176
187
|
|
|
177
|
-
-
|
|
178
|
-
|
|
179
|
-
|
|
188
|
+
- [#37785](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37785)
|
|
189
|
+
[`4e6f1bf8511`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4e6f1bf8511) -
|
|
190
|
+
[ED-19233] Import prosemirror libraries from internal facade package
|
|
180
191
|
|
|
181
192
|
## 0.1.1
|
|
182
193
|
|
|
183
194
|
### Patch Changes
|
|
184
195
|
|
|
185
|
-
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
-
|
|
196
|
+
- [#35782](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35782)
|
|
197
|
+
[`73b5128036b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/73b5128036b) -
|
|
198
|
+
[ED-17082] Mark package as a singleton one
|
|
199
|
+
- Updated dependencies
|
package/LICENSE.md
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
Copyright 2023 Atlassian Pty Ltd
|
|
2
2
|
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
|
|
5
|
-
You may obtain a copy of the License at
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
|
|
4
|
+
compliance with the License. You may obtain a copy of the License at
|
|
6
5
|
|
|
7
6
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
7
|
|
|
9
|
-
Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
distributed
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
limitations under the License.
|
|
8
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is
|
|
9
|
+
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
10
|
+
implied. See the License for the specific language governing permissions and limitations under the
|
|
11
|
+
License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import type { Command } from '@atlaskit/editor-common/types';
|
|
3
|
-
import { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import { type NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import { Decoration } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
export declare const decorationStateKey: PluginKey<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import type { Command } from '@atlaskit/editor-common/types';
|
|
3
|
-
import { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import { type NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import { Decoration } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
export declare const decorationStateKey: PluginKey<any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-decorations",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "Decorations plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
".": "./src/index.ts"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaskit/editor-common": "^
|
|
27
|
+
"@atlaskit/editor-common": "^82.0.0",
|
|
28
28
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
29
29
|
"@babel/runtime": "^7.0.0"
|
|
30
30
|
},
|
|
@@ -32,8 +32,7 @@
|
|
|
32
32
|
"react": "^16.8.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@atlaskit/editor-plugin-mentions": "^1.
|
|
36
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
35
|
+
"@atlaskit/editor-plugin-mentions": "^1.5.0",
|
|
37
36
|
"@testing-library/react": "^12.1.5",
|
|
38
37
|
"react-dom": "^16.8.0",
|
|
39
38
|
"typescript": "~5.4.2",
|
|
@@ -68,6 +67,5 @@
|
|
|
68
67
|
"emotion"
|
|
69
68
|
]
|
|
70
69
|
}
|
|
71
|
-
}
|
|
72
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
70
|
+
}
|
|
73
71
|
}
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/editor-plugin-decorations"
|
|
4
4
|
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
8
|
|
|
8
9
|
### Table of contents
|
|
@@ -22,14 +23,14 @@ import { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
|
22
23
|
|
|
23
24
|
// @public (undocumented)
|
|
24
25
|
export type DecorationsPlugin = NextEditorPlugin<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
'decorations',
|
|
27
|
+
{
|
|
28
|
+
sharedState: DecorationState;
|
|
29
|
+
actions: {
|
|
30
|
+
hoverDecoration: HoverDecorationHandler;
|
|
31
|
+
removeDecoration: typeof removeDecoration;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
33
34
|
>;
|
|
34
35
|
|
|
35
36
|
// @public
|
|
@@ -37,14 +38,14 @@ export const decorationsPlugin: DecorationsPlugin;
|
|
|
37
38
|
|
|
38
39
|
// @public (undocumented)
|
|
39
40
|
export type DecorationState = {
|
|
40
|
-
|
|
41
|
+
decoration?: Decoration;
|
|
41
42
|
};
|
|
42
43
|
|
|
43
44
|
// @public (undocumented)
|
|
44
45
|
const hoverDecoration: (
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
nodeType: Array<NodeType> | NodeType,
|
|
47
|
+
add: boolean,
|
|
48
|
+
className?: string,
|
|
48
49
|
) => Command;
|
|
49
50
|
|
|
50
51
|
// @public (undocumented)
|
|
@@ -64,7 +65,7 @@ const removeDecoration: Command;
|
|
|
64
65
|
|
|
65
66
|
```json
|
|
66
67
|
{
|
|
67
|
-
|
|
68
|
+
"react": "^16.8.0"
|
|
68
69
|
}
|
|
69
70
|
```
|
|
70
71
|
|