@atlaskit/editor-plugin-floating-toolbar 9.1.2 → 9.1.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,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 9.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e00b363b9fa30`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e00b363b9fa30) -
|
|
8
|
+
[ux] EDITOR-4481 Clean up platform_editor_toolbar_aifc_user_intent_fix
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 9.1.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 9.1.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -274,14 +274,8 @@ function ContentComponent(_ref5) {
|
|
|
274
274
|
var isTextSelected = selection instanceof _state.TextSelection && !selection.empty;
|
|
275
275
|
|
|
276
276
|
// don't dismiss table toolbar when a cell selection is caused by clicking the drag handle (which has it's own userIntent)
|
|
277
|
-
if ((0
|
|
278
|
-
|
|
279
|
-
return null;
|
|
280
|
-
}
|
|
281
|
-
} else {
|
|
282
|
-
if (isTextSelected && config.className !== 'hyperlink-floating-toolbar' || isCellSelection) {
|
|
283
|
-
return null;
|
|
284
|
-
}
|
|
277
|
+
if (isTextSelected && config.className !== 'hyperlink-floating-toolbar' || isCellSelection && (userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'default') {
|
|
278
|
+
return null;
|
|
285
279
|
}
|
|
286
280
|
}
|
|
287
281
|
var items = config.items;
|
|
@@ -265,14 +265,8 @@ export function ContentComponent({
|
|
|
265
265
|
const isTextSelected = selection instanceof TextSelection && !selection.empty;
|
|
266
266
|
|
|
267
267
|
// don't dismiss table toolbar when a cell selection is caused by clicking the drag handle (which has it's own userIntent)
|
|
268
|
-
if (
|
|
269
|
-
|
|
270
|
-
return null;
|
|
271
|
-
}
|
|
272
|
-
} else {
|
|
273
|
-
if (isTextSelected && config.className !== 'hyperlink-floating-toolbar' || isCellSelection) {
|
|
274
|
-
return null;
|
|
275
|
-
}
|
|
268
|
+
if (isTextSelected && config.className !== 'hyperlink-floating-toolbar' || isCellSelection && (userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'default') {
|
|
269
|
+
return null;
|
|
276
270
|
}
|
|
277
271
|
}
|
|
278
272
|
let {
|
|
@@ -264,14 +264,8 @@ export function ContentComponent(_ref5) {
|
|
|
264
264
|
var isTextSelected = selection instanceof TextSelection && !selection.empty;
|
|
265
265
|
|
|
266
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 (
|
|
268
|
-
|
|
269
|
-
return null;
|
|
270
|
-
}
|
|
271
|
-
} else {
|
|
272
|
-
if (isTextSelected && config.className !== 'hyperlink-floating-toolbar' || isCellSelection) {
|
|
273
|
-
return null;
|
|
274
|
-
}
|
|
267
|
+
if (isTextSelected && config.className !== 'hyperlink-floating-toolbar' || isCellSelection && (userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'default') {
|
|
268
|
+
return null;
|
|
275
269
|
}
|
|
276
270
|
}
|
|
277
271
|
var items = config.items;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-floating-toolbar",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.4",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"atlaskit:src": "src/index.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaskit/adf-utils": "^19.
|
|
24
|
+
"@atlaskit/adf-utils": "^19.27.0",
|
|
25
25
|
"@atlaskit/button": "^23.9.0",
|
|
26
26
|
"@atlaskit/checkbox": "^17.3.0",
|
|
27
27
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"@atlaskit/editor-plugin-user-intent": "^5.0.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
39
39
|
"@atlaskit/emoji": "^69.10.0",
|
|
40
|
-
"@atlaskit/icon": "^
|
|
40
|
+
"@atlaskit/icon": "^30.0.0",
|
|
41
41
|
"@atlaskit/menu": "^8.4.0",
|
|
42
42
|
"@atlaskit/modal-dialog": "^14.10.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
44
|
"@atlaskit/primitives": "^17.1.0",
|
|
45
45
|
"@atlaskit/select": "^21.7.0",
|
|
46
46
|
"@atlaskit/theme": "^21.0.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
48
|
-
"@atlaskit/tokens": "^10.
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^17.0.0",
|
|
48
|
+
"@atlaskit/tokens": "^10.1.0",
|
|
49
49
|
"@atlaskit/tooltip": "^20.14.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@emotion/react": "^11.7.1",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"react-loadable": "^5.1.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@atlaskit/editor-common": "^111.
|
|
59
|
+
"@atlaskit/editor-common": "^111.9.0",
|
|
60
60
|
"react": "^18.2.0",
|
|
61
61
|
"react-dom": "^18.2.0"
|
|
62
62
|
},
|
|
@@ -117,9 +117,6 @@
|
|
|
117
117
|
},
|
|
118
118
|
"platform_editor_a11y_add_role_to_popup": {
|
|
119
119
|
"type": "boolean"
|
|
120
|
-
},
|
|
121
|
-
"platform_editor_toolbar_aifc_user_intent_fix": {
|
|
122
|
-
"type": "boolean"
|
|
123
120
|
}
|
|
124
121
|
}
|
|
125
122
|
}
|