@atlaskit/editor-plugin-selection 1.2.5 → 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 +64 -58
- 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,163 +1,169 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection
|
|
2
2
|
|
|
3
|
+
## 1.2.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
3
9
|
## 1.2.5
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
|
7
|
-
-
|
|
13
|
+
- Updated dependencies
|
|
8
14
|
|
|
9
15
|
## 1.2.4
|
|
10
16
|
|
|
11
17
|
### Patch Changes
|
|
12
18
|
|
|
13
|
-
-
|
|
19
|
+
- Updated dependencies
|
|
14
20
|
|
|
15
21
|
## 1.2.3
|
|
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.2.2
|
|
26
32
|
|
|
27
33
|
### Patch Changes
|
|
28
34
|
|
|
29
|
-
-
|
|
35
|
+
- Updated dependencies
|
|
30
36
|
|
|
31
37
|
## 1.2.1
|
|
32
38
|
|
|
33
39
|
### Patch Changes
|
|
34
40
|
|
|
35
|
-
-
|
|
36
|
-
|
|
37
|
-
|
|
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.
|
|
38
44
|
|
|
39
45
|
## 1.2.0
|
|
40
46
|
|
|
41
47
|
### Minor Changes
|
|
42
48
|
|
|
43
|
-
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
|
46
52
|
|
|
47
53
|
### Patch Changes
|
|
48
54
|
|
|
49
|
-
-
|
|
55
|
+
- Updated dependencies
|
|
50
56
|
|
|
51
57
|
## 1.1.3
|
|
52
58
|
|
|
53
59
|
### Patch Changes
|
|
54
60
|
|
|
55
|
-
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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.
|
|
60
66
|
|
|
61
67
|
## 1.1.2
|
|
62
68
|
|
|
63
69
|
### Patch Changes
|
|
64
70
|
|
|
65
|
-
-
|
|
66
|
-
|
|
67
|
-
|
|
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.
|
|
68
74
|
|
|
69
75
|
## 1.1.1
|
|
70
76
|
|
|
71
77
|
### Patch Changes
|
|
72
78
|
|
|
73
|
-
-
|
|
74
|
-
|
|
75
|
-
|
|
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`
|
|
76
82
|
|
|
77
83
|
## 1.1.0
|
|
78
84
|
|
|
79
85
|
### Minor Changes
|
|
80
86
|
|
|
81
|
-
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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.
|
|
85
91
|
|
|
86
92
|
### Patch Changes
|
|
87
93
|
|
|
88
|
-
-
|
|
94
|
+
- Updated dependencies
|
|
89
95
|
|
|
90
96
|
## 1.0.2
|
|
91
97
|
|
|
92
98
|
### Patch Changes
|
|
93
99
|
|
|
94
|
-
-
|
|
100
|
+
- Updated dependencies
|
|
95
101
|
|
|
96
102
|
## 1.0.1
|
|
97
103
|
|
|
98
104
|
### Patch Changes
|
|
99
105
|
|
|
100
|
-
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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.
|
|
104
110
|
|
|
105
111
|
## 1.0.0
|
|
106
112
|
|
|
107
113
|
### Major Changes
|
|
108
114
|
|
|
109
|
-
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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.
|
|
113
119
|
|
|
114
120
|
## 0.2.2
|
|
115
121
|
|
|
116
122
|
### Patch Changes
|
|
117
123
|
|
|
118
|
-
-
|
|
119
|
-
|
|
120
|
-
|
|
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
|
|
121
127
|
|
|
122
128
|
## 0.2.1
|
|
123
129
|
|
|
124
130
|
### Patch Changes
|
|
125
131
|
|
|
126
|
-
-
|
|
132
|
+
- Updated dependencies
|
|
127
133
|
|
|
128
134
|
## 0.2.0
|
|
129
135
|
|
|
130
136
|
### Minor Changes
|
|
131
137
|
|
|
132
|
-
-
|
|
133
|
-
|
|
134
|
-
|
|
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
|
|
135
141
|
|
|
136
142
|
### Patch Changes
|
|
137
143
|
|
|
138
|
-
-
|
|
144
|
+
- Updated dependencies
|
|
139
145
|
|
|
140
146
|
## 0.1.3
|
|
141
147
|
|
|
142
148
|
### Patch Changes
|
|
143
149
|
|
|
144
|
-
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
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.
|
|
148
154
|
|
|
149
155
|
## 0.1.2
|
|
150
156
|
|
|
151
157
|
### Patch Changes
|
|
152
158
|
|
|
153
|
-
-
|
|
154
|
-
|
|
155
|
-
|
|
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
|
|
156
162
|
|
|
157
163
|
## 0.1.1
|
|
158
164
|
|
|
159
165
|
### Patch Changes
|
|
160
166
|
|
|
161
|
-
-
|
|
162
|
-
|
|
163
|
-
|
|
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
|
|