@atlaskit/editor-plugin-floating-toolbar 5.2.3 → 5.2.4
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,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 5.2.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`bacdc0ed302a6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bacdc0ed302a6) -
|
|
8
|
+
[ED-29067] Fix a bug where link picker is not shown when texts are selected and link button is
|
|
9
|
+
clicked
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 5.2.3
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -248,7 +248,7 @@ function ContentComponent(_ref5) {
|
|
|
248
248
|
var selection = editorView.state.selection;
|
|
249
249
|
var isCellSelection = '$anchorCell' in selection && !selection.empty;
|
|
250
250
|
var isTextSelected = selection instanceof _state.TextSelection && !selection.empty;
|
|
251
|
-
if (isTextSelected || isCellSelection) {
|
|
251
|
+
if (isTextSelected && (!(0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_1', 'isEnabled', true) || config.className !== 'hyperlink-floating-toolbar') || isCellSelection) {
|
|
252
252
|
return null;
|
|
253
253
|
}
|
|
254
254
|
}
|
|
@@ -240,7 +240,7 @@ export function ContentComponent({
|
|
|
240
240
|
const selection = editorView.state.selection;
|
|
241
241
|
const isCellSelection = '$anchorCell' in selection && !selection.empty;
|
|
242
242
|
const isTextSelected = selection instanceof TextSelection && !selection.empty;
|
|
243
|
-
if (isTextSelected || isCellSelection) {
|
|
243
|
+
if (isTextSelected && (!expValEquals('platform_editor_toolbar_aifc_patch_1', 'isEnabled', true) || config.className !== 'hyperlink-floating-toolbar') || isCellSelection) {
|
|
244
244
|
return null;
|
|
245
245
|
}
|
|
246
246
|
}
|
|
@@ -239,7 +239,7 @@ export function ContentComponent(_ref5) {
|
|
|
239
239
|
var selection = editorView.state.selection;
|
|
240
240
|
var isCellSelection = '$anchorCell' in selection && !selection.empty;
|
|
241
241
|
var isTextSelected = selection instanceof TextSelection && !selection.empty;
|
|
242
|
-
if (isTextSelected || isCellSelection) {
|
|
242
|
+
if (isTextSelected && (!expValEquals('platform_editor_toolbar_aifc_patch_1', 'isEnabled', true) || config.className !== 'hyperlink-floating-toolbar') || isCellSelection) {
|
|
243
243
|
return null;
|
|
244
244
|
}
|
|
245
245
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-floating-toolbar",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.4",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/primitives": "^14.12.0",
|
|
46
46
|
"@atlaskit/select": "^21.2.0",
|
|
47
47
|
"@atlaskit/theme": "^20.0.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^11.
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^11.12.0",
|
|
49
49
|
"@atlaskit/tokens": "^6.1.0",
|
|
50
50
|
"@atlaskit/tooltip": "^20.4.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": "^107.
|
|
60
|
+
"@atlaskit/editor-common": "^107.35.0",
|
|
61
61
|
"react": "^18.2.0",
|
|
62
62
|
"react-dom": "^18.2.0"
|
|
63
63
|
},
|