@atlaskit/editor-plugin-selection 0.1.3 → 0.2.0

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,15 @@
1
1
  # @atlaskit/editor-plugin-selection
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#65084](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65084) [`609bca09a972`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/609bca09a972) - expose selection as part of the shared state
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
3
13
  ## 0.1.3
4
14
 
5
15
  ### Patch Changes
@@ -44,7 +44,8 @@ var selectionPlugin = exports.selectionPlugin = function selectionPlugin(_ref2)
44
44
  }
45
45
  var pluginState = _types.selectionPluginKey.getState(editorState);
46
46
  return {
47
- selectionRelativeToNode: pluginState === null || pluginState === void 0 ? void 0 : pluginState.selectionRelativeToNode
47
+ selectionRelativeToNode: pluginState === null || pluginState === void 0 ? void 0 : pluginState.selectionRelativeToNode,
48
+ selection: pluginState === null || pluginState === void 0 ? void 0 : pluginState.selection
48
49
  };
49
50
  },
50
51
  pmPlugins: function pmPlugins() {
@@ -35,7 +35,8 @@ export const selectionPlugin = ({
35
35
  }
36
36
  const pluginState = selectionPluginKey.getState(editorState);
37
37
  return {
38
- selectionRelativeToNode: pluginState === null || pluginState === void 0 ? void 0 : pluginState.selectionRelativeToNode
38
+ selectionRelativeToNode: pluginState === null || pluginState === void 0 ? void 0 : pluginState.selectionRelativeToNode,
39
+ selection: pluginState === null || pluginState === void 0 ? void 0 : pluginState.selection
39
40
  };
40
41
  },
41
42
  pmPlugins() {
@@ -37,7 +37,8 @@ export var selectionPlugin = function selectionPlugin(_ref2) {
37
37
  }
38
38
  var pluginState = selectionPluginKey.getState(editorState);
39
39
  return {
40
- selectionRelativeToNode: pluginState === null || pluginState === void 0 ? void 0 : pluginState.selectionRelativeToNode
40
+ selectionRelativeToNode: pluginState === null || pluginState === void 0 ? void 0 : pluginState.selectionRelativeToNode,
41
+ selection: pluginState === null || pluginState === void 0 ? void 0 : pluginState.selection
41
42
  };
42
43
  },
43
44
  pmPlugins: function pmPlugins() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection",
3
- "version": "0.1.3",
3
+ "version": "0.2.0",
4
4
  "description": "Selection plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -21,7 +21,7 @@
21
21
  "runReact18": false
22
22
  },
23
23
  "dependencies": {
24
- "@atlaskit/editor-common": "^76.34.0",
24
+ "@atlaskit/editor-common": "^76.39.0",
25
25
  "@atlaskit/editor-prosemirror": "1.1.0",
26
26
  "@atlaskit/editor-shared-styles": "^2.9.0",
27
27
  "@atlaskit/editor-tables": "^2.3.10",
@@ -44,7 +44,6 @@
44
44
  "@atlaskit/media-test-helpers": "^33.0.0",
45
45
  "@atlaskit/ssr": "*",
46
46
  "@atlaskit/visual-regression": "*",
47
- "@atlaskit/webdriver-runner": "*",
48
47
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
49
48
  "@testing-library/react": "^12.1.5",
50
49
  "react-dom": "^16.8.0",