@atlaskit/editor-plugin-decorations 1.1.4 → 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 +80 -75
- package/LICENSE.md +6 -8
- 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,194 +1,199 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-decorations
|
|
2
2
|
|
|
3
|
+
## 1.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
3
9
|
## 1.1.4
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
|
7
|
-
-
|
|
13
|
+
- Updated dependencies
|
|
8
14
|
|
|
9
15
|
## 1.1.3
|
|
10
16
|
|
|
11
17
|
### Patch Changes
|
|
12
18
|
|
|
13
|
-
-
|
|
19
|
+
- Updated dependencies
|
|
14
20
|
|
|
15
21
|
## 1.1.2
|
|
16
22
|
|
|
17
23
|
### Patch Changes
|
|
18
24
|
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
|
24
30
|
|
|
25
31
|
## 1.1.1
|
|
26
32
|
|
|
27
33
|
### Patch Changes
|
|
28
34
|
|
|
29
|
-
-
|
|
35
|
+
- Updated dependencies
|
|
30
36
|
|
|
31
37
|
## 1.1.0
|
|
32
38
|
|
|
33
39
|
### Minor Changes
|
|
34
40
|
|
|
35
|
-
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
|
38
44
|
|
|
39
45
|
### Patch Changes
|
|
40
46
|
|
|
41
|
-
-
|
|
47
|
+
- Updated dependencies
|
|
42
48
|
|
|
43
49
|
## 1.0.2
|
|
44
50
|
|
|
45
51
|
### Patch Changes
|
|
46
52
|
|
|
47
|
-
-
|
|
48
|
-
|
|
49
|
-
|
|
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`
|
|
50
56
|
|
|
51
57
|
## 1.0.1
|
|
52
58
|
|
|
53
59
|
### Patch Changes
|
|
54
60
|
|
|
55
|
-
-
|
|
61
|
+
- Updated dependencies
|
|
56
62
|
|
|
57
63
|
## 1.0.0
|
|
58
64
|
|
|
59
65
|
### Major Changes
|
|
60
66
|
|
|
61
|
-
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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.
|
|
65
71
|
|
|
66
72
|
## 0.2.8
|
|
67
73
|
|
|
68
74
|
### Patch Changes
|
|
69
75
|
|
|
70
|
-
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
|
73
79
|
|
|
74
80
|
## 0.2.7
|
|
75
81
|
|
|
76
82
|
### Patch Changes
|
|
77
83
|
|
|
78
|
-
-
|
|
84
|
+
- Updated dependencies
|
|
79
85
|
|
|
80
86
|
## 0.2.6
|
|
81
87
|
|
|
82
88
|
### Patch Changes
|
|
83
89
|
|
|
84
|
-
-
|
|
85
|
-
|
|
86
|
-
|
|
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
|
|
87
93
|
|
|
88
94
|
## 0.2.5
|
|
89
95
|
|
|
90
96
|
### Patch Changes
|
|
91
97
|
|
|
92
|
-
-
|
|
93
|
-
|
|
94
|
-
|
|
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.
|
|
95
101
|
|
|
96
102
|
## 0.2.4
|
|
97
103
|
|
|
98
104
|
### Patch Changes
|
|
99
105
|
|
|
100
|
-
-
|
|
101
|
-
|
|
102
|
-
|
|
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
|
|
103
109
|
|
|
104
110
|
## 0.2.3
|
|
105
111
|
|
|
106
112
|
### Patch Changes
|
|
107
113
|
|
|
108
|
-
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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
|
|
112
118
|
|
|
113
119
|
## 0.2.2
|
|
114
120
|
|
|
115
121
|
### Patch Changes
|
|
116
122
|
|
|
117
|
-
-
|
|
123
|
+
- Updated dependencies
|
|
118
124
|
|
|
119
125
|
## 0.2.1
|
|
120
126
|
|
|
121
127
|
### Patch Changes
|
|
122
128
|
|
|
123
|
-
-
|
|
129
|
+
- Updated dependencies
|
|
124
130
|
|
|
125
131
|
## 0.2.0
|
|
126
132
|
|
|
127
133
|
### Minor Changes
|
|
128
134
|
|
|
129
|
-
-
|
|
130
|
-
|
|
131
|
-
|
|
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.
|
|
132
138
|
|
|
133
139
|
## 0.1.5
|
|
134
140
|
|
|
135
141
|
### Patch Changes
|
|
136
142
|
|
|
137
|
-
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
`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`.
|
|
141
146
|
|
|
142
|
-
|
|
147
|
+
Previously a `NextEditorPlugin` would be consumed as so:
|
|
143
148
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
```ts
|
|
150
|
+
const plugin: NextEditorPlugin< ... > = (config, api) => {
|
|
151
|
+
// Can use api like so:
|
|
152
|
+
api.dependencies.core.actions.execute( ... )
|
|
153
|
+
return { ... }
|
|
154
|
+
}
|
|
155
|
+
```
|
|
151
156
|
|
|
152
|
-
|
|
153
|
-
|
|
157
|
+
Now these have become named parameters like so and the `pluginInjectionAPI` is used without the
|
|
158
|
+
`dependencies` prop:
|
|
154
159
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
160
|
+
```ts
|
|
161
|
+
const plugin: NextEditorPlugin< ... > = ({ config, api }) => {
|
|
162
|
+
// Can use api like so:
|
|
163
|
+
api.core.actions.execute( ... )
|
|
164
|
+
return { ... }
|
|
165
|
+
}
|
|
166
|
+
```
|
|
162
167
|
|
|
163
|
-
-
|
|
168
|
+
- Updated dependencies
|
|
164
169
|
|
|
165
170
|
## 0.1.4
|
|
166
171
|
|
|
167
172
|
### Patch Changes
|
|
168
173
|
|
|
169
|
-
-
|
|
170
|
-
|
|
171
|
-
|
|
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.
|
|
172
177
|
|
|
173
178
|
## 0.1.3
|
|
174
179
|
|
|
175
180
|
### Patch Changes
|
|
176
181
|
|
|
177
|
-
-
|
|
182
|
+
- Updated dependencies
|
|
178
183
|
|
|
179
184
|
## 0.1.2
|
|
180
185
|
|
|
181
186
|
### Patch Changes
|
|
182
187
|
|
|
183
|
-
-
|
|
184
|
-
|
|
185
|
-
|
|
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
|
|
186
191
|
|
|
187
192
|
## 0.1.1
|
|
188
193
|
|
|
189
194
|
### Patch Changes
|
|
190
195
|
|
|
191
|
-
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
-
|
|
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.
|
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
|
|