@atlaskit/editor-plugin-expand 2.5.2 → 2.5.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,22 @@
1
1
  # @atlaskit/editor-plugin-expand
2
2
 
3
+ ## 2.5.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#134213](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/134213)
8
+ [`93bd7032842ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/93bd7032842ec) -
9
+ [ux] [ED-24636] Bump ADF Schema package
10
+
11
+ ## 2.5.3
12
+
13
+ ### Patch Changes
14
+
15
+ - [#133153](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/133153)
16
+ [`8b4916b8bcdd1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8b4916b8bcdd1) -
17
+ [ux] [ED-24442] Fix logic on what expand node floating toolbar anchors on by checking for nested
18
+ expand before expand in findParentExpandNode function
19
+
3
20
  ## 2.5.2
4
21
 
5
22
  ### 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.expand)(state.selection) || (0, _utils.findParentNodeOfType)(state.schema.nodes.nestedExpand)(state.selection);
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.expand)(state.selection) || findParentNodeOfType(state.schema.nodes.nestedExpand)(state.selection);
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.expand)(state.selection) || findParentNodeOfType(state.schema.nodes.nestedExpand)(state.selection);
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.2",
3
+ "version": "2.5.4",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,9 +33,9 @@
33
33
  ".": "./src/index.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/adf-schema": "^40.8.1",
36
+ "@atlaskit/adf-schema": "^40.9.0",
37
37
  "@atlaskit/button": "^20.1.0",
38
- "@atlaskit/editor-common": "^88.0.0",
38
+ "@atlaskit/editor-common": "^88.2.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^1.8.0",
40
40
  "@atlaskit/editor-plugin-decorations": "^1.3.0",
41
41
  "@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
@@ -44,7 +44,7 @@
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.14.0",
47
+ "@atlaskit/icon": "^22.15.0",
48
48
  "@atlaskit/platform-feature-flags": "^0.3.0",
49
49
  "@atlaskit/tooltip": "^18.7.0",
50
50
  "@babel/runtime": "^7.0.0",