@atlaskit/editor-plugin-expand 2.5.1 → 2.5.3
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,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-expand
|
|
2
2
|
|
|
3
|
+
## 2.5.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#133153](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/133153)
|
|
8
|
+
[`8b4916b8bcdd1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8b4916b8bcdd1) -
|
|
9
|
+
[ux] [ED-24442] Fix logic on what expand node floating toolbar anchors on by checking for nested
|
|
10
|
+
expand before expand in findParentExpandNode function
|
|
11
|
+
|
|
12
|
+
## 2.5.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 2.5.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -31,5 +31,5 @@ Object.defineProperty(exports, "transformSliceToRemoveOpenNestedExpand", {
|
|
|
31
31
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
32
32
|
var _transforms = require("@atlaskit/editor-common/transforms");
|
|
33
33
|
var findParentExpandNode = exports.findParentExpandNode = function findParentExpandNode(state) {
|
|
34
|
-
return (0, _utils.findParentNodeOfType)(state.schema.nodes.
|
|
34
|
+
return (0, _utils.findParentNodeOfType)(state.schema.nodes.nestedExpand)(state.selection) || (0, _utils.findParentNodeOfType)(state.schema.nodes.expand)(state.selection);
|
|
35
35
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
2
2
|
export { findExpand, transformSliceToRemoveOpenExpand, transformSliceToRemoveOpenNestedExpand, transformSliceNestedExpandToExpand } from '@atlaskit/editor-common/transforms';
|
|
3
3
|
export const findParentExpandNode = state => {
|
|
4
|
-
return findParentNodeOfType(state.schema.nodes.
|
|
4
|
+
return findParentNodeOfType(state.schema.nodes.nestedExpand)(state.selection) || findParentNodeOfType(state.schema.nodes.expand)(state.selection);
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
2
2
|
export { findExpand, transformSliceToRemoveOpenExpand, transformSliceToRemoveOpenNestedExpand, transformSliceNestedExpandToExpand } from '@atlaskit/editor-common/transforms';
|
|
3
3
|
export var findParentExpandNode = function findParentExpandNode(state) {
|
|
4
|
-
return findParentNodeOfType(state.schema.nodes.
|
|
4
|
+
return findParentNodeOfType(state.schema.nodes.nestedExpand)(state.selection) || findParentNodeOfType(state.schema.nodes.expand)(state.selection);
|
|
5
5
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-expand",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.3",
|
|
4
4
|
"description": "Expand plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/adf-schema": "^40.8.1",
|
|
37
|
-
"@atlaskit/button": "^20.
|
|
38
|
-
"@atlaskit/editor-common": "^
|
|
39
|
-
"@atlaskit/editor-plugin-analytics": "^1.
|
|
40
|
-
"@atlaskit/editor-plugin-decorations": "^1.
|
|
41
|
-
"@atlaskit/editor-plugin-editor-disabled": "^1.
|
|
42
|
-
"@atlaskit/editor-plugin-selection": "^1.
|
|
43
|
-
"@atlaskit/editor-plugin-selection-marker": "^1.
|
|
37
|
+
"@atlaskit/button": "^20.1.0",
|
|
38
|
+
"@atlaskit/editor-common": "^88.1.0",
|
|
39
|
+
"@atlaskit/editor-plugin-analytics": "^1.8.0",
|
|
40
|
+
"@atlaskit/editor-plugin-decorations": "^1.3.0",
|
|
41
|
+
"@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
|
|
42
|
+
"@atlaskit/editor-plugin-selection": "^1.4.0",
|
|
43
|
+
"@atlaskit/editor-plugin-selection-marker": "^1.5.0",
|
|
44
44
|
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
45
45
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
46
46
|
"@atlaskit/editor-tables": "^2.8.0",
|
|
47
|
-
"@atlaskit/icon": "^22.
|
|
47
|
+
"@atlaskit/icon": "^22.14.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
49
49
|
"@atlaskit/tooltip": "^18.7.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
61
|
-
"@atlaskit/editor-plugin-content-insertion": "^1.
|
|
61
|
+
"@atlaskit/editor-plugin-content-insertion": "^1.8.0",
|
|
62
62
|
"@atlaskit/editor-plugin-guideline": "^1.2.0",
|
|
63
|
-
"@atlaskit/editor-plugin-quick-insert": "^1.
|
|
63
|
+
"@atlaskit/editor-plugin-quick-insert": "^1.3.0",
|
|
64
64
|
"@atlaskit/editor-plugin-table": "^7.25.0",
|
|
65
|
-
"@atlaskit/editor-plugin-type-ahead": "^1.
|
|
66
|
-
"@atlaskit/editor-plugin-width": "^1.
|
|
65
|
+
"@atlaskit/editor-plugin-type-ahead": "^1.8.0",
|
|
66
|
+
"@atlaskit/editor-plugin-width": "^1.3.0",
|
|
67
67
|
"@testing-library/react": "^12.1.5",
|
|
68
68
|
"react-test-renderer": "^16.8.0",
|
|
69
69
|
"typescript": "~5.4.2"
|