@atlaskit/editor-plugin-selection 0.1.3 → 0.2.1

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,21 @@
1
1
  # @atlaskit/editor-plugin-selection
2
2
 
3
+ ## 0.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 0.2.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#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
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 0.1.3
4
20
 
5
21
  ### 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,11 +1,11 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection",
3
- "version": "0.1.3",
3
+ "version": "0.2.1",
4
4
  "description": "Selection plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
7
7
  },
8
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend",
8
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
9
  "author": "Atlassian Pty Ltd",
10
10
  "license": "Apache-2.0",
11
11
  "main": "dist/cjs/index.js",
@@ -21,10 +21,10 @@
21
21
  "runReact18": false
22
22
  },
23
23
  "dependencies": {
24
- "@atlaskit/editor-common": "^76.34.0",
24
+ "@atlaskit/editor-common": "^77.0.0",
25
25
  "@atlaskit/editor-prosemirror": "1.1.0",
26
26
  "@atlaskit/editor-shared-styles": "^2.9.0",
27
- "@atlaskit/editor-tables": "^2.3.10",
27
+ "@atlaskit/editor-tables": "^2.4.0",
28
28
  "@babel/runtime": "^7.0.0"
29
29
  },
30
30
  "peerDependencies": {
@@ -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",