@atlaskit/editor-plugin-floating-toolbar 8.2.8 → 8.2.10
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
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 8.2.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9842848622554`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9842848622554) -
|
|
8
|
+
ENGHEALTH-23797:Fixed aria prohibited attr from selection marker
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 8.2.9
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`4f5569bde5e64`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4f5569bde5e64) -
|
|
16
|
+
Add new 'dragHandleSelected' user intent, use this to control table toolbar when drag handle is
|
|
17
|
+
selected
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 8.2.8
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -270,8 +270,16 @@ function ContentComponent(_ref5) {
|
|
|
270
270
|
var selection = editorView.state.selection;
|
|
271
271
|
var isCellSelection = '$anchorCell' in selection && !selection.empty;
|
|
272
272
|
var isTextSelected = selection instanceof _state.TextSelection && !selection.empty;
|
|
273
|
-
|
|
274
|
-
|
|
273
|
+
|
|
274
|
+
// don't dismiss table toolbar when a cell selection is caused by clicking the drag handle (which has it's own userIntent)
|
|
275
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_toolbar_aifc_user_intent_fix')) {
|
|
276
|
+
if (isTextSelected && config.className !== 'hyperlink-floating-toolbar' || isCellSelection && (userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'default') {
|
|
277
|
+
return null;
|
|
278
|
+
}
|
|
279
|
+
} else {
|
|
280
|
+
if (isTextSelected && config.className !== 'hyperlink-floating-toolbar' || isCellSelection) {
|
|
281
|
+
return null;
|
|
282
|
+
}
|
|
275
283
|
}
|
|
276
284
|
}
|
|
277
285
|
var items = config.items;
|
|
@@ -423,6 +431,7 @@ function ContentComponent(_ref5) {
|
|
|
423
431
|
fallbackComponent: null
|
|
424
432
|
}, /*#__PURE__*/_react.default.createElement(_ui.Popup, {
|
|
425
433
|
ariaLabel: title,
|
|
434
|
+
role: (0, _platformFeatureFlags.fg)('platform_editor_a11y_add_role_to_popup') ? 'toolbar' : undefined,
|
|
426
435
|
offset: offset,
|
|
427
436
|
target: targetRef,
|
|
428
437
|
alignY: "bottom",
|
|
@@ -262,8 +262,16 @@ export function ContentComponent({
|
|
|
262
262
|
const selection = editorView.state.selection;
|
|
263
263
|
const isCellSelection = '$anchorCell' in selection && !selection.empty;
|
|
264
264
|
const isTextSelected = selection instanceof TextSelection && !selection.empty;
|
|
265
|
-
|
|
266
|
-
|
|
265
|
+
|
|
266
|
+
// don't dismiss table toolbar when a cell selection is caused by clicking the drag handle (which has it's own userIntent)
|
|
267
|
+
if (fg('platform_editor_toolbar_aifc_user_intent_fix')) {
|
|
268
|
+
if (isTextSelected && config.className !== 'hyperlink-floating-toolbar' || isCellSelection && (userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'default') {
|
|
269
|
+
return null;
|
|
270
|
+
}
|
|
271
|
+
} else {
|
|
272
|
+
if (isTextSelected && config.className !== 'hyperlink-floating-toolbar' || isCellSelection) {
|
|
273
|
+
return null;
|
|
274
|
+
}
|
|
267
275
|
}
|
|
268
276
|
}
|
|
269
277
|
let {
|
|
@@ -409,6 +417,7 @@ export function ContentComponent({
|
|
|
409
417
|
fallbackComponent: null
|
|
410
418
|
}, /*#__PURE__*/React.createElement(Popup, {
|
|
411
419
|
ariaLabel: title,
|
|
420
|
+
role: fg('platform_editor_a11y_add_role_to_popup') ? 'toolbar' : undefined,
|
|
412
421
|
offset: offset,
|
|
413
422
|
target: targetRef,
|
|
414
423
|
alignY: "bottom",
|
|
@@ -261,8 +261,16 @@ export function ContentComponent(_ref5) {
|
|
|
261
261
|
var selection = editorView.state.selection;
|
|
262
262
|
var isCellSelection = '$anchorCell' in selection && !selection.empty;
|
|
263
263
|
var isTextSelected = selection instanceof TextSelection && !selection.empty;
|
|
264
|
-
|
|
265
|
-
|
|
264
|
+
|
|
265
|
+
// don't dismiss table toolbar when a cell selection is caused by clicking the drag handle (which has it's own userIntent)
|
|
266
|
+
if (fg('platform_editor_toolbar_aifc_user_intent_fix')) {
|
|
267
|
+
if (isTextSelected && config.className !== 'hyperlink-floating-toolbar' || isCellSelection && (userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'default') {
|
|
268
|
+
return null;
|
|
269
|
+
}
|
|
270
|
+
} else {
|
|
271
|
+
if (isTextSelected && config.className !== 'hyperlink-floating-toolbar' || isCellSelection) {
|
|
272
|
+
return null;
|
|
273
|
+
}
|
|
266
274
|
}
|
|
267
275
|
}
|
|
268
276
|
var items = config.items;
|
|
@@ -414,6 +422,7 @@ export function ContentComponent(_ref5) {
|
|
|
414
422
|
fallbackComponent: null
|
|
415
423
|
}, /*#__PURE__*/React.createElement(Popup, {
|
|
416
424
|
ariaLabel: title,
|
|
425
|
+
role: fg('platform_editor_a11y_add_role_to_popup') ? 'toolbar' : undefined,
|
|
417
426
|
offset: offset,
|
|
418
427
|
target: targetRef,
|
|
419
428
|
alignY: "bottom",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-floating-toolbar",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.10",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,20 +32,20 @@
|
|
|
32
32
|
"@atlaskit/editor-plugin-editor-disabled": "^6.1.0",
|
|
33
33
|
"@atlaskit/editor-plugin-editor-viewmode": "^8.0.0",
|
|
34
34
|
"@atlaskit/editor-plugin-emoji": "^7.4.0",
|
|
35
|
-
"@atlaskit/editor-plugin-extension": "^9.
|
|
35
|
+
"@atlaskit/editor-plugin-extension": "^9.2.0",
|
|
36
36
|
"@atlaskit/editor-plugin-interaction": "^9.0.0",
|
|
37
|
-
"@atlaskit/editor-plugin-table": "^15.
|
|
37
|
+
"@atlaskit/editor-plugin-table": "^15.3.0",
|
|
38
38
|
"@atlaskit/editor-plugin-user-intent": "^4.0.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
40
40
|
"@atlaskit/emoji": "^69.6.0",
|
|
41
41
|
"@atlaskit/icon": "^28.5.0",
|
|
42
42
|
"@atlaskit/menu": "^8.4.0",
|
|
43
|
-
"@atlaskit/modal-dialog": "^14.
|
|
43
|
+
"@atlaskit/modal-dialog": "^14.6.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
45
|
"@atlaskit/primitives": "^16.0.0",
|
|
46
46
|
"@atlaskit/select": "^21.3.0",
|
|
47
47
|
"@atlaskit/theme": "^21.0.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^13.19.0",
|
|
49
49
|
"@atlaskit/tokens": "^7.0.0",
|
|
50
50
|
"@atlaskit/tooltip": "^20.6.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"react-loadable": "^5.1.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@atlaskit/editor-common": "^110.
|
|
60
|
+
"@atlaskit/editor-common": "^110.18.0",
|
|
61
61
|
"react": "^18.2.0",
|
|
62
62
|
"react-dom": "^18.2.0"
|
|
63
63
|
},
|
|
@@ -125,8 +125,14 @@
|
|
|
125
125
|
"platform_editor_fix_confirm_table_removal": {
|
|
126
126
|
"type": "boolean"
|
|
127
127
|
},
|
|
128
|
+
"platform_editor_a11y_add_role_to_popup": {
|
|
129
|
+
"type": "boolean"
|
|
130
|
+
},
|
|
128
131
|
"platform_editor_update_modal_close_button": {
|
|
129
132
|
"type": "boolean"
|
|
133
|
+
},
|
|
134
|
+
"platform_editor_toolbar_aifc_user_intent_fix": {
|
|
135
|
+
"type": "boolean"
|
|
130
136
|
}
|
|
131
137
|
}
|
|
132
138
|
}
|