@atlaskit/editor-plugin-selection-toolbar 1.1.7 → 1.1.9
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 +4 -4
- package/CHANGELOG.md +73 -58
- package/LICENSE.md +6 -8
- package/dist/cjs/plugin.js +9 -0
- package/dist/es2019/plugin.js +9 -0
- package/dist/esm/plugin.js +9 -0
- package/package.json +3 -5
- package/report.api.md +9 -8
package/.eslintrc.js
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,155 +1,170 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection-toolbar
|
|
2
2
|
|
|
3
|
+
## 1.1.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#108898](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/108898)
|
|
8
|
+
[`eeaaf0ea11d9a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/eeaaf0ea11d9a) -
|
|
9
|
+
[ED-23455] Fix the issue where selection floating toolbar does not appear when clicking drag
|
|
10
|
+
handle
|
|
11
|
+
|
|
12
|
+
## 1.1.8
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 1.1.7
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
6
21
|
|
|
7
|
-
-
|
|
22
|
+
- Updated dependencies
|
|
8
23
|
|
|
9
24
|
## 1.1.6
|
|
10
25
|
|
|
11
26
|
### Patch Changes
|
|
12
27
|
|
|
13
|
-
-
|
|
28
|
+
- Updated dependencies
|
|
14
29
|
|
|
15
30
|
## 1.1.5
|
|
16
31
|
|
|
17
32
|
### Patch Changes
|
|
18
33
|
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
|
|
34
|
+
- [#99563](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99563)
|
|
35
|
+
[`3d4ddbef36b8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3d4ddbef36b8) -
|
|
36
|
+
[ux] [EDF-629] Revert floating toolbar click handler changes
|
|
22
37
|
|
|
23
38
|
## 1.1.4
|
|
24
39
|
|
|
25
40
|
### Patch Changes
|
|
26
41
|
|
|
27
|
-
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
42
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
|
43
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
|
44
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
|
45
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
|
46
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
|
32
47
|
|
|
33
48
|
## 1.1.3
|
|
34
49
|
|
|
35
50
|
### Patch Changes
|
|
36
51
|
|
|
37
|
-
-
|
|
52
|
+
- Updated dependencies
|
|
38
53
|
|
|
39
54
|
## 1.1.2
|
|
40
55
|
|
|
41
56
|
### Patch Changes
|
|
42
57
|
|
|
43
|
-
-
|
|
44
|
-
|
|
45
|
-
|
|
58
|
+
- [#96198](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96198)
|
|
59
|
+
[`b69d14268915`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b69d14268915) -
|
|
60
|
+
[ux] EDF-629 fixed floating toolbar elements stealing selection from editor
|
|
46
61
|
|
|
47
62
|
## 1.1.1
|
|
48
63
|
|
|
49
64
|
### Patch Changes
|
|
50
65
|
|
|
51
|
-
-
|
|
52
|
-
|
|
53
|
-
|
|
66
|
+
- [#94316](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94316)
|
|
67
|
+
[`35fd5ed8e1d7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/35fd5ed8e1d7) -
|
|
68
|
+
Upgrading internal dependency `bind-event-listener` to `@^3.0.0`
|
|
54
69
|
|
|
55
70
|
## 1.1.0
|
|
56
71
|
|
|
57
72
|
### Minor Changes
|
|
58
73
|
|
|
59
|
-
-
|
|
60
|
-
|
|
61
|
-
|
|
74
|
+
- [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
|
|
75
|
+
[`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
|
|
76
|
+
bumped editor-prosemirror version to 4.0.0
|
|
62
77
|
|
|
63
78
|
### Patch Changes
|
|
64
79
|
|
|
65
|
-
-
|
|
80
|
+
- Updated dependencies
|
|
66
81
|
|
|
67
82
|
## 1.0.2
|
|
68
83
|
|
|
69
84
|
### Patch Changes
|
|
70
85
|
|
|
71
|
-
-
|
|
72
|
-
|
|
73
|
-
|
|
86
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
87
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
88
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
74
89
|
|
|
75
90
|
## 1.0.1
|
|
76
91
|
|
|
77
92
|
### Patch Changes
|
|
78
93
|
|
|
79
|
-
-
|
|
94
|
+
- Updated dependencies
|
|
80
95
|
|
|
81
96
|
## 1.0.0
|
|
82
97
|
|
|
83
98
|
### Major Changes
|
|
84
99
|
|
|
85
|
-
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
100
|
+
- [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
|
|
101
|
+
[`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
|
|
102
|
+
This changeset exists to bump all editor plugins that currently don't have a major version. This
|
|
103
|
+
is to address an issue with Jira plugin consumption.
|
|
89
104
|
|
|
90
105
|
### Patch Changes
|
|
91
106
|
|
|
92
|
-
-
|
|
107
|
+
- Updated dependencies
|
|
93
108
|
|
|
94
109
|
## 0.2.1
|
|
95
110
|
|
|
96
111
|
### Patch Changes
|
|
97
112
|
|
|
98
|
-
-
|
|
99
|
-
|
|
100
|
-
|
|
113
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
|
114
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
|
115
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
|
101
116
|
|
|
102
117
|
## 0.2.0
|
|
103
118
|
|
|
104
119
|
### Minor Changes
|
|
105
120
|
|
|
106
|
-
-
|
|
107
|
-
|
|
108
|
-
|
|
121
|
+
- [#68277](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68277)
|
|
122
|
+
[`fe0abf4abc01`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fe0abf4abc01) -
|
|
123
|
+
Enable the selection toolbar to work with live pages view mode
|
|
109
124
|
|
|
110
125
|
## 0.1.5
|
|
111
126
|
|
|
112
127
|
### Patch Changes
|
|
113
128
|
|
|
114
|
-
-
|
|
129
|
+
- Updated dependencies
|
|
115
130
|
|
|
116
131
|
## 0.1.4
|
|
117
132
|
|
|
118
133
|
### Patch Changes
|
|
119
134
|
|
|
120
|
-
-
|
|
121
|
-
|
|
122
|
-
|
|
135
|
+
- [#65802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65802)
|
|
136
|
+
[`438ead060875`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/438ead060875) -
|
|
137
|
+
Ensure all editor plugins are marked as singletons
|
|
123
138
|
|
|
124
139
|
## 0.1.3
|
|
125
140
|
|
|
126
141
|
### Patch Changes
|
|
127
142
|
|
|
128
|
-
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
143
|
+
- [#43081](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43081)
|
|
144
|
+
[`efe83787c45`](https://bitbucket.org/atlassian/atlassian-frontend/commits/efe83787c45) - [ux]
|
|
145
|
+
ED-20762 Remove blur dom event handler to prevent the toolbar disappearing when using the keyboard
|
|
146
|
+
to access it.
|
|
132
147
|
|
|
133
148
|
## 0.1.2
|
|
134
149
|
|
|
135
150
|
### Patch Changes
|
|
136
151
|
|
|
137
|
-
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
152
|
+
- [#42935](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42935)
|
|
153
|
+
[`d9e2cafc03e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d9e2cafc03e) - [ux]
|
|
154
|
+
ED-20664 Fix position of floating toolbar on non full-page editors when using
|
|
155
|
+
editor-plugin-selection-toolbar
|
|
156
|
+
- [#42935](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42935)
|
|
157
|
+
[`31e453b325e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/31e453b325e) - [ux]
|
|
158
|
+
ED-20807 Prevents the selection toolbar from extending outside of the Editor.
|
|
159
|
+
- [#42935](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42935)
|
|
160
|
+
[`bc3880e7c3c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bc3880e7c3c) - [ux]
|
|
161
|
+
ED-20806 Prevents the selection toolbar from overriding the table floating toolbar by preventing
|
|
162
|
+
rendering on anything that's not a text selection.
|
|
148
163
|
|
|
149
164
|
## 0.1.1
|
|
150
165
|
|
|
151
166
|
### Patch Changes
|
|
152
167
|
|
|
153
|
-
-
|
|
154
|
-
|
|
155
|
-
|
|
168
|
+
- [#42201](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42201)
|
|
169
|
+
[`36241a43553`](https://bitbucket.org/atlassian/atlassian-frontend/commits/36241a43553) - ED-20653
|
|
170
|
+
Removes the selection toolbar when the view loses focus.
|
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/dist/cjs/plugin.js
CHANGED
|
@@ -57,9 +57,18 @@ var selectionToolbarPlugin = exports.selectionToolbarPlugin = function selection
|
|
|
57
57
|
}));
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
|
+
var unbindEditorViewFocus = (0, _bindEventListener.bind)(_view.dom, {
|
|
61
|
+
type: 'focus',
|
|
62
|
+
listener: function listener() {
|
|
63
|
+
_view.dispatch(_view.state.tr.setMeta(_pluginKey.selectionToolbarPluginKey, {
|
|
64
|
+
selectionStable: true
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
});
|
|
60
68
|
return {
|
|
61
69
|
destroy: function destroy() {
|
|
62
70
|
unbind();
|
|
71
|
+
unbindEditorViewFocus();
|
|
63
72
|
}
|
|
64
73
|
};
|
|
65
74
|
},
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -49,9 +49,18 @@ export const selectionToolbarPlugin = options => {
|
|
|
49
49
|
}));
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
|
+
const unbindEditorViewFocus = bind(view.dom, {
|
|
53
|
+
type: 'focus',
|
|
54
|
+
listener: () => {
|
|
55
|
+
view.dispatch(view.state.tr.setMeta(selectionToolbarPluginKey, {
|
|
56
|
+
selectionStable: true
|
|
57
|
+
}));
|
|
58
|
+
}
|
|
59
|
+
});
|
|
52
60
|
return {
|
|
53
61
|
destroy() {
|
|
54
62
|
unbind();
|
|
63
|
+
unbindEditorViewFocus();
|
|
55
64
|
}
|
|
56
65
|
};
|
|
57
66
|
},
|
package/dist/esm/plugin.js
CHANGED
|
@@ -50,9 +50,18 @@ export var selectionToolbarPlugin = function selectionToolbarPlugin(options) {
|
|
|
50
50
|
}));
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
|
+
var unbindEditorViewFocus = bind(_view.dom, {
|
|
54
|
+
type: 'focus',
|
|
55
|
+
listener: function listener() {
|
|
56
|
+
_view.dispatch(_view.state.tr.setMeta(selectionToolbarPluginKey, {
|
|
57
|
+
selectionStable: true
|
|
58
|
+
}));
|
|
59
|
+
}
|
|
60
|
+
});
|
|
53
61
|
return {
|
|
54
62
|
destroy: function destroy() {
|
|
55
63
|
unbind();
|
|
64
|
+
unbindEditorViewFocus();
|
|
56
65
|
}
|
|
57
66
|
};
|
|
58
67
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection-toolbar",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"description": "@atlaskit/editor-plugin-selection-toolbar for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
".": "./src/index.ts"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@atlaskit/editor-common": "^
|
|
36
|
+
"@atlaskit/editor-common": "^82.2.0",
|
|
37
37
|
"@atlaskit/editor-plugin-editor-viewmode": "^1.1.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
39
39
|
"@babel/runtime": "^7.0.0",
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
"@af/visual-regression": "*",
|
|
47
47
|
"@atlaskit/ssr": "*",
|
|
48
48
|
"@atlaskit/visual-regression": "*",
|
|
49
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
50
49
|
"@testing-library/react": "^12.1.5",
|
|
51
50
|
"react-dom": "^16.8.0",
|
|
52
51
|
"typescript": "~5.4.2",
|
|
@@ -81,6 +80,5 @@
|
|
|
81
80
|
"emotion"
|
|
82
81
|
]
|
|
83
82
|
}
|
|
84
|
-
}
|
|
85
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
83
|
+
}
|
|
86
84
|
}
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/editor-plugin-selection-toolbar"
|
|
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,12 +23,12 @@ export type SelectionToolbarPlugin = typeof selectionToolbarPlugin;
|
|
|
22
23
|
|
|
23
24
|
// @public (undocumented)
|
|
24
25
|
export const selectionToolbarPlugin: NextEditorPlugin<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
'selectionToolbar',
|
|
27
|
+
{
|
|
28
|
+
pluginConfiguration: {
|
|
29
|
+
preferenceToolbarAboveSelection?: boolean;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
31
32
|
>;
|
|
32
33
|
|
|
33
34
|
// (No @packageDocumentation comment for this package)
|
|
@@ -41,7 +42,7 @@ export const selectionToolbarPlugin: NextEditorPlugin<
|
|
|
41
42
|
|
|
42
43
|
```json
|
|
43
44
|
{
|
|
44
|
-
|
|
45
|
+
"react": "^16.8.0"
|
|
45
46
|
}
|
|
46
47
|
```
|
|
47
48
|
|