@atlaskit/editor-plugin-selection 1.2.4 → 1.2.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/CHANGELOG.md +69 -57
- package/LICENSE.md +6 -8
- package/dist/types/gap-cursor/selection.d.ts +1 -1
- package/dist/types/pm-plugins/events/keydown.d.ts +1 -1
- package/dist/types-ts4.5/gap-cursor/selection.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/events/keydown.d.ts +1 -1
- package/package.json +3 -5
- package/report.api.md +15 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,157 +1,169 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection
|
|
2
2
|
|
|
3
|
+
## 1.2.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.2.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 1.2.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
6
18
|
|
|
7
|
-
-
|
|
19
|
+
- Updated dependencies
|
|
8
20
|
|
|
9
21
|
## 1.2.3
|
|
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.2.2
|
|
20
32
|
|
|
21
33
|
### Patch Changes
|
|
22
34
|
|
|
23
|
-
-
|
|
35
|
+
- Updated dependencies
|
|
24
36
|
|
|
25
37
|
## 1.2.1
|
|
26
38
|
|
|
27
39
|
### Patch Changes
|
|
28
40
|
|
|
29
|
-
-
|
|
30
|
-
|
|
31
|
-
|
|
41
|
+
- [#92552](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92552)
|
|
42
|
+
[`7cd874b858c8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7cd874b858c8) -
|
|
43
|
+
Check target elements are actually HTMLElement rather than typecasting.
|
|
32
44
|
|
|
33
45
|
## 1.2.0
|
|
34
46
|
|
|
35
47
|
### Minor Changes
|
|
36
48
|
|
|
37
|
-
-
|
|
38
|
-
|
|
39
|
-
|
|
49
|
+
- [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
|
|
50
|
+
[`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
|
|
51
|
+
bumped editor-prosemirror version to 4.0.0
|
|
40
52
|
|
|
41
53
|
### Patch Changes
|
|
42
54
|
|
|
43
|
-
-
|
|
55
|
+
- Updated dependencies
|
|
44
56
|
|
|
45
57
|
## 1.1.3
|
|
46
58
|
|
|
47
59
|
### Patch Changes
|
|
48
60
|
|
|
49
|
-
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
61
|
+
- [#90897](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90897)
|
|
62
|
+
[`f7d77187a439`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f7d77187a439) -
|
|
63
|
+
[ux] [ED-22841] Adjust isCollpasedExpand function to allow for the new singlePlayerExpand plugin
|
|
64
|
+
which replaces the standard expand when livePage and the `platform.editor.single-player-expand`
|
|
65
|
+
feature flag is enabled.
|
|
54
66
|
|
|
55
67
|
## 1.1.2
|
|
56
68
|
|
|
57
69
|
### Patch Changes
|
|
58
70
|
|
|
59
|
-
-
|
|
60
|
-
|
|
61
|
-
|
|
71
|
+
- [#89247](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89247)
|
|
72
|
+
[`a65b4a0870d8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a65b4a0870d8) -
|
|
73
|
+
The internal composition of this package has changed. There is no expected change in behavior.
|
|
62
74
|
|
|
63
75
|
## 1.1.1
|
|
64
76
|
|
|
65
77
|
### Patch Changes
|
|
66
78
|
|
|
67
|
-
-
|
|
68
|
-
|
|
69
|
-
|
|
79
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
80
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
81
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
70
82
|
|
|
71
83
|
## 1.1.0
|
|
72
84
|
|
|
73
85
|
### Minor Changes
|
|
74
86
|
|
|
75
|
-
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
87
|
+
- [#75042](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75042)
|
|
88
|
+
[`ce823f018248`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ce823f018248) -
|
|
89
|
+
[ux] ED-21987 Diverge expands in live pages so that they are not multiplayer, and are closed by
|
|
90
|
+
default.
|
|
79
91
|
|
|
80
92
|
### Patch Changes
|
|
81
93
|
|
|
82
|
-
-
|
|
94
|
+
- Updated dependencies
|
|
83
95
|
|
|
84
96
|
## 1.0.2
|
|
85
97
|
|
|
86
98
|
### Patch Changes
|
|
87
99
|
|
|
88
|
-
-
|
|
100
|
+
- Updated dependencies
|
|
89
101
|
|
|
90
102
|
## 1.0.1
|
|
91
103
|
|
|
92
104
|
### Patch Changes
|
|
93
105
|
|
|
94
|
-
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
106
|
+
- [#70261](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70261)
|
|
107
|
+
[`a92879d672c6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a92879d672c6) -
|
|
108
|
+
[ux] ED-21620: Corrected the selection functions for atom nodes that are triggered on pressing the
|
|
109
|
+
right and left arrow keys.
|
|
98
110
|
|
|
99
111
|
## 1.0.0
|
|
100
112
|
|
|
101
113
|
### Major Changes
|
|
102
114
|
|
|
103
|
-
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
115
|
+
- [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
|
|
116
|
+
[`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
|
|
117
|
+
This changeset exists to bump all editor plugins that currently don't have a major version. This
|
|
118
|
+
is to address an issue with Jira plugin consumption.
|
|
107
119
|
|
|
108
120
|
## 0.2.2
|
|
109
121
|
|
|
110
122
|
### Patch Changes
|
|
111
123
|
|
|
112
|
-
-
|
|
113
|
-
|
|
114
|
-
|
|
124
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
|
125
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
|
126
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
|
115
127
|
|
|
116
128
|
## 0.2.1
|
|
117
129
|
|
|
118
130
|
### Patch Changes
|
|
119
131
|
|
|
120
|
-
-
|
|
132
|
+
- Updated dependencies
|
|
121
133
|
|
|
122
134
|
## 0.2.0
|
|
123
135
|
|
|
124
136
|
### Minor Changes
|
|
125
137
|
|
|
126
|
-
-
|
|
127
|
-
|
|
128
|
-
|
|
138
|
+
- [#65084](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65084)
|
|
139
|
+
[`609bca09a972`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/609bca09a972) -
|
|
140
|
+
expose selection as part of the shared state
|
|
129
141
|
|
|
130
142
|
### Patch Changes
|
|
131
143
|
|
|
132
|
-
-
|
|
144
|
+
- Updated dependencies
|
|
133
145
|
|
|
134
146
|
## 0.1.3
|
|
135
147
|
|
|
136
148
|
### Patch Changes
|
|
137
149
|
|
|
138
|
-
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
150
|
+
- [#63289](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63289)
|
|
151
|
+
[`f75faa16e84d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f75faa16e84d) -
|
|
152
|
+
[ux] ED-20209: Fixed selection behaviour for Atomic and empty+selectable nodes and updated related
|
|
153
|
+
tests.
|
|
142
154
|
|
|
143
155
|
## 0.1.2
|
|
144
156
|
|
|
145
157
|
### Patch Changes
|
|
146
158
|
|
|
147
|
-
-
|
|
148
|
-
|
|
149
|
-
|
|
159
|
+
- [#61696](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61696)
|
|
160
|
+
[`fcc2b35ad97b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fcc2b35ad97b) -
|
|
161
|
+
ED-21505: Added better selections and highlights for MBE nodes on Editor
|
|
150
162
|
|
|
151
163
|
## 0.1.1
|
|
152
164
|
|
|
153
165
|
### Patch Changes
|
|
154
166
|
|
|
155
|
-
-
|
|
156
|
-
|
|
157
|
-
|
|
167
|
+
- [#57079](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/57079)
|
|
168
|
+
[`d15db1b00c5a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d15db1b00c5a) -
|
|
169
|
+
[ED-21267] Improve arrow navigation across MultiBodiedExtensions
|
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 +1 @@
|
|
|
1
|
-
export { GapCursorSelection, JSON_ID, Side, GapBookmark
|
|
1
|
+
export { GapCursorSelection, JSON_ID, Side, GapBookmark } from '@atlaskit/editor-common/selection';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { GapCursorSelection, JSON_ID, Side, GapBookmark
|
|
1
|
+
export { GapCursorSelection, JSON_ID, Side, GapBookmark } from '@atlaskit/editor-common/selection';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"description": "Selection plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"runReact18": false
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaskit/editor-common": "^
|
|
24
|
+
"@atlaskit/editor-common": "^82.0.0",
|
|
25
25
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
26
|
-
"@atlaskit/editor-shared-styles": "^2.
|
|
26
|
+
"@atlaskit/editor-shared-styles": "^2.12.0",
|
|
27
27
|
"@atlaskit/editor-tables": "^2.7.0",
|
|
28
28
|
"@atlaskit/platform-feature-flags": "^0.2.4",
|
|
29
29
|
"@babel/runtime": "^7.0.0"
|
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
"react": "^16.8.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
36
35
|
"typescript": "~5.4.2"
|
|
37
36
|
},
|
|
38
37
|
"techstack": {
|
|
@@ -72,7 +71,6 @@
|
|
|
72
71
|
".": "./src/index.ts",
|
|
73
72
|
"./types": "./src/types.ts"
|
|
74
73
|
},
|
|
75
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
|
|
76
74
|
"stricter": {
|
|
77
75
|
"no-unused-dependencies": {
|
|
78
76
|
"checkDevDependencies": true
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/editor-plugin-selection"
|
|
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
|
|
@@ -26,20 +27,20 @@ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
|
26
27
|
|
|
27
28
|
// @public (undocumented)
|
|
28
29
|
export type EditorSelectionAPI = {
|
|
29
|
-
|
|
30
|
+
selectNearNode: SetSelectionRelativeToNode;
|
|
30
31
|
};
|
|
31
32
|
|
|
32
33
|
// @public (undocumented)
|
|
33
34
|
export type SelectionPlugin = NextEditorPlugin<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
'selection',
|
|
36
|
+
{
|
|
37
|
+
pluginConfiguration: SelectionPluginOptions | undefined;
|
|
38
|
+
actions: EditorSelectionAPI;
|
|
39
|
+
commands: {
|
|
40
|
+
displayGapCursor: (toggle: boolean) => EditorCommand;
|
|
41
|
+
};
|
|
42
|
+
sharedState: SelectionSharedState;
|
|
43
|
+
}
|
|
43
44
|
>;
|
|
44
45
|
|
|
45
46
|
// @public (undocumented)
|
|
@@ -50,8 +51,8 @@ interface SelectionPluginOptions extends LongPressSelectionPluginOptions {}
|
|
|
50
51
|
|
|
51
52
|
// @public (undocumented)
|
|
52
53
|
export type SetSelectionRelativeToNode = (props: {
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
selectionRelativeToNode?: RelativeSelectionPos;
|
|
55
|
+
selection?: Selection_2 | null;
|
|
55
56
|
}) => (state: EditorState) => Transaction;
|
|
56
57
|
|
|
57
58
|
// (No @packageDocumentation comment for this package)
|
|
@@ -65,7 +66,7 @@ export type SetSelectionRelativeToNode = (props: {
|
|
|
65
66
|
|
|
66
67
|
```json
|
|
67
68
|
{
|
|
68
|
-
|
|
69
|
+
"react": "^16.8.0"
|
|
69
70
|
}
|
|
70
71
|
```
|
|
71
72
|
|