@atlaskit/editor-plugin-decorations 1.1.4 → 1.1.6
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 +86 -75
- package/LICENSE.md +6 -8
- package/package.json +70 -72
- 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,205 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-decorations
|
|
2
2
|
|
|
3
|
+
## 1.1.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.1.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 1.1.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
6
18
|
|
|
7
|
-
-
|
|
19
|
+
- Updated dependencies
|
|
8
20
|
|
|
9
21
|
## 1.1.3
|
|
10
22
|
|
|
11
23
|
### Patch Changes
|
|
12
24
|
|
|
13
|
-
-
|
|
25
|
+
- Updated dependencies
|
|
14
26
|
|
|
15
27
|
## 1.1.2
|
|
16
28
|
|
|
17
29
|
### Patch Changes
|
|
18
30
|
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
31
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
|
32
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
|
33
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
|
34
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
|
35
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
|
24
36
|
|
|
25
37
|
## 1.1.1
|
|
26
38
|
|
|
27
39
|
### Patch Changes
|
|
28
40
|
|
|
29
|
-
-
|
|
41
|
+
- Updated dependencies
|
|
30
42
|
|
|
31
43
|
## 1.1.0
|
|
32
44
|
|
|
33
45
|
### Minor Changes
|
|
34
46
|
|
|
35
|
-
-
|
|
36
|
-
|
|
37
|
-
|
|
47
|
+
- [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
|
|
48
|
+
[`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
|
|
49
|
+
bumped editor-prosemirror version to 4.0.0
|
|
38
50
|
|
|
39
51
|
### Patch Changes
|
|
40
52
|
|
|
41
|
-
-
|
|
53
|
+
- Updated dependencies
|
|
42
54
|
|
|
43
55
|
## 1.0.2
|
|
44
56
|
|
|
45
57
|
### Patch Changes
|
|
46
58
|
|
|
47
|
-
-
|
|
48
|
-
|
|
49
|
-
|
|
59
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
60
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
61
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
50
62
|
|
|
51
63
|
## 1.0.1
|
|
52
64
|
|
|
53
65
|
### Patch Changes
|
|
54
66
|
|
|
55
|
-
-
|
|
67
|
+
- Updated dependencies
|
|
56
68
|
|
|
57
69
|
## 1.0.0
|
|
58
70
|
|
|
59
71
|
### Major Changes
|
|
60
72
|
|
|
61
|
-
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
73
|
+
- [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
|
|
74
|
+
[`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
|
|
75
|
+
This changeset exists to bump all editor plugins that currently don't have a major version. This
|
|
76
|
+
is to address an issue with Jira plugin consumption.
|
|
65
77
|
|
|
66
78
|
## 0.2.8
|
|
67
79
|
|
|
68
80
|
### Patch Changes
|
|
69
81
|
|
|
70
|
-
-
|
|
71
|
-
|
|
72
|
-
|
|
82
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
|
83
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
|
84
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
|
73
85
|
|
|
74
86
|
## 0.2.7
|
|
75
87
|
|
|
76
88
|
### Patch Changes
|
|
77
89
|
|
|
78
|
-
-
|
|
90
|
+
- Updated dependencies
|
|
79
91
|
|
|
80
92
|
## 0.2.6
|
|
81
93
|
|
|
82
94
|
### Patch Changes
|
|
83
95
|
|
|
84
|
-
-
|
|
85
|
-
|
|
86
|
-
|
|
96
|
+
- [#42604](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42604)
|
|
97
|
+
[`182627d0f5e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/182627d0f5e) -
|
|
98
|
+
Extracted panel plugin from editor-core as @atlaskit/editor-plugin-panel
|
|
87
99
|
|
|
88
100
|
## 0.2.5
|
|
89
101
|
|
|
90
102
|
### Patch Changes
|
|
91
103
|
|
|
92
|
-
-
|
|
93
|
-
|
|
94
|
-
|
|
104
|
+
- [#42505](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42505)
|
|
105
|
+
[`48e5f1efdde`](https://bitbucket.org/atlassian/atlassian-frontend/commits/48e5f1efdde) - Extract
|
|
106
|
+
layout plugin into new package @atlaskit/editor-plugin-layout.
|
|
95
107
|
|
|
96
108
|
## 0.2.4
|
|
97
109
|
|
|
98
110
|
### Patch Changes
|
|
99
111
|
|
|
100
|
-
-
|
|
101
|
-
|
|
102
|
-
|
|
112
|
+
- [#42477](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42477)
|
|
113
|
+
[`8f5175dc714`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8f5175dc714) - Decouple
|
|
114
|
+
layout plugin from editor-core
|
|
103
115
|
|
|
104
116
|
## 0.2.3
|
|
105
117
|
|
|
106
118
|
### Patch Changes
|
|
107
119
|
|
|
108
|
-
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
120
|
+
- [#41648](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41648)
|
|
121
|
+
[`20f43769aa7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/20f43769aa7) -
|
|
122
|
+
[ED-19746] Extract mentions plugin from editor-core to its own package:
|
|
123
|
+
@atlaskit/editor-plugin-mentions
|
|
112
124
|
|
|
113
125
|
## 0.2.2
|
|
114
126
|
|
|
115
127
|
### Patch Changes
|
|
116
128
|
|
|
117
|
-
-
|
|
129
|
+
- Updated dependencies
|
|
118
130
|
|
|
119
131
|
## 0.2.1
|
|
120
132
|
|
|
121
133
|
### Patch Changes
|
|
122
134
|
|
|
123
|
-
-
|
|
135
|
+
- Updated dependencies
|
|
124
136
|
|
|
125
137
|
## 0.2.0
|
|
126
138
|
|
|
127
139
|
### Minor Changes
|
|
128
140
|
|
|
129
|
-
-
|
|
130
|
-
|
|
131
|
-
|
|
141
|
+
- [#39325](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39325)
|
|
142
|
+
[`ad3c5c21079`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad3c5c21079) - Updating
|
|
143
|
+
all plugins with minor version to correct issue with semver.
|
|
132
144
|
|
|
133
145
|
## 0.1.5
|
|
134
146
|
|
|
135
147
|
### Patch Changes
|
|
136
148
|
|
|
137
|
-
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
`NextEditorPlugin`.
|
|
149
|
+
- [#39010](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39010)
|
|
150
|
+
[`8467bdcdf4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8467bdcdf4f) - Removing
|
|
151
|
+
`dependencies` prop from PluginInjectionAPI and changing signature of `NextEditorPlugin`.
|
|
141
152
|
|
|
142
|
-
|
|
153
|
+
Previously a `NextEditorPlugin` would be consumed as so:
|
|
143
154
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
155
|
+
```ts
|
|
156
|
+
const plugin: NextEditorPlugin< ... > = (config, api) => {
|
|
157
|
+
// Can use api like so:
|
|
158
|
+
api.dependencies.core.actions.execute( ... )
|
|
159
|
+
return { ... }
|
|
160
|
+
}
|
|
161
|
+
```
|
|
151
162
|
|
|
152
|
-
|
|
153
|
-
|
|
163
|
+
Now these have become named parameters like so and the `pluginInjectionAPI` is used without the
|
|
164
|
+
`dependencies` prop:
|
|
154
165
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
166
|
+
```ts
|
|
167
|
+
const plugin: NextEditorPlugin< ... > = ({ config, api }) => {
|
|
168
|
+
// Can use api like so:
|
|
169
|
+
api.core.actions.execute( ... )
|
|
170
|
+
return { ... }
|
|
171
|
+
}
|
|
172
|
+
```
|
|
162
173
|
|
|
163
|
-
-
|
|
174
|
+
- Updated dependencies
|
|
164
175
|
|
|
165
176
|
## 0.1.4
|
|
166
177
|
|
|
167
178
|
### Patch Changes
|
|
168
179
|
|
|
169
|
-
-
|
|
170
|
-
|
|
171
|
-
|
|
180
|
+
- [#39177](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39177)
|
|
181
|
+
[`24e27147cbd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/24e27147cbd) - Added
|
|
182
|
+
atlaskit docs to all existing plugins.
|
|
172
183
|
|
|
173
184
|
## 0.1.3
|
|
174
185
|
|
|
175
186
|
### Patch Changes
|
|
176
187
|
|
|
177
|
-
-
|
|
188
|
+
- Updated dependencies
|
|
178
189
|
|
|
179
190
|
## 0.1.2
|
|
180
191
|
|
|
181
192
|
### Patch Changes
|
|
182
193
|
|
|
183
|
-
-
|
|
184
|
-
|
|
185
|
-
|
|
194
|
+
- [#37785](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37785)
|
|
195
|
+
[`4e6f1bf8511`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4e6f1bf8511) -
|
|
196
|
+
[ED-19233] Import prosemirror libraries from internal facade package
|
|
186
197
|
|
|
187
198
|
## 0.1.1
|
|
188
199
|
|
|
189
200
|
### Patch Changes
|
|
190
201
|
|
|
191
|
-
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
-
|
|
202
|
+
- [#35782](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35782)
|
|
203
|
+
[`73b5128036b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/73b5128036b) -
|
|
204
|
+
[ED-17082] Mark package as a singleton one
|
|
205
|
+
- 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,73 +1,71 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
73
|
-
}
|
|
2
|
+
"name": "@atlaskit/editor-plugin-decorations",
|
|
3
|
+
"version": "1.1.6",
|
|
4
|
+
"description": "Decorations plugin for @atlaskit/editor-core",
|
|
5
|
+
"author": "Atlassian Pty Ltd",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"registry": "https://registry.npmjs.org/"
|
|
9
|
+
},
|
|
10
|
+
"atlassian": {
|
|
11
|
+
"team": "Editor: Lego",
|
|
12
|
+
"singleton": true,
|
|
13
|
+
"releaseModel": "continuous",
|
|
14
|
+
"runReact18": false
|
|
15
|
+
},
|
|
16
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
17
|
+
"main": "dist/cjs/index.js",
|
|
18
|
+
"module": "dist/esm/index.js",
|
|
19
|
+
"module:es2019": "dist/es2019/index.js",
|
|
20
|
+
"types": "dist/types/index.d.ts",
|
|
21
|
+
"sideEffects": false,
|
|
22
|
+
"atlaskit:src": "src/index.ts",
|
|
23
|
+
"af:exports": {
|
|
24
|
+
".": "./src/index.ts"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@atlaskit/editor-common": "^83.0.0",
|
|
28
|
+
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
29
|
+
"@babel/runtime": "^7.0.0"
|
|
30
|
+
},
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"react": "^16.8.0"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@atlaskit/editor-plugin-mentions": "^1.7.0",
|
|
36
|
+
"@testing-library/react": "^12.1.5",
|
|
37
|
+
"react-dom": "^16.8.0",
|
|
38
|
+
"typescript": "~5.4.2",
|
|
39
|
+
"wait-for-expect": "^1.2.0"
|
|
40
|
+
},
|
|
41
|
+
"techstack": {
|
|
42
|
+
"@atlassian/frontend": {
|
|
43
|
+
"import-structure": [
|
|
44
|
+
"atlassian-conventions"
|
|
45
|
+
],
|
|
46
|
+
"circular-dependencies": [
|
|
47
|
+
"file-and-folder-level"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"@repo/internal": {
|
|
51
|
+
"dom-events": "use-bind-event-listener",
|
|
52
|
+
"analytics": [
|
|
53
|
+
"analytics-next"
|
|
54
|
+
],
|
|
55
|
+
"design-tokens": [
|
|
56
|
+
"color"
|
|
57
|
+
],
|
|
58
|
+
"theming": [
|
|
59
|
+
"react-context"
|
|
60
|
+
],
|
|
61
|
+
"ui-components": [
|
|
62
|
+
"lite-mode"
|
|
63
|
+
],
|
|
64
|
+
"deprecation": "no-deprecated-imports",
|
|
65
|
+
"styling": [
|
|
66
|
+
"emotion",
|
|
67
|
+
"emotion"
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
}
|
|
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
|
|