@atlaskit/editor-plugin-decorations 0.2.2 → 0.2.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,11 @@
1
1
  # @atlaskit/editor-plugin-decorations
2
2
 
3
+ ## 0.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#41648](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41648) [`20f43769aa7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/20f43769aa7) - [ED-19746] Extract mentions plugin from editor-core to its own package: @atlaskit/editor-plugin-mentions
8
+
3
9
  ## 0.2.2
4
10
 
5
11
  ### Patch Changes
@@ -16,13 +22,13 @@
16
22
 
17
23
  ### Minor Changes
18
24
 
19
- - [`ad3c5c21079`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad3c5c21079) - Updating all plugins with minor version to correct issue with semver.
25
+ - [#39325](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39325) [`ad3c5c21079`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad3c5c21079) - Updating all plugins with minor version to correct issue with semver.
20
26
 
21
27
  ## 0.1.5
22
28
 
23
29
  ### Patch Changes
24
30
 
25
- - [`8467bdcdf4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8467bdcdf4f) - Removing `dependencies` prop from PluginInjectionAPI and changing
31
+ - [#39010](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39010) [`8467bdcdf4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8467bdcdf4f) - Removing `dependencies` prop from PluginInjectionAPI and changing
26
32
  signature of `NextEditorPlugin`.
27
33
 
28
34
  Previously a `NextEditorPlugin` would be consumed as so:
@@ -52,7 +58,7 @@
52
58
 
53
59
  ### Patch Changes
54
60
 
55
- - [`24e27147cbd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/24e27147cbd) - Added atlaskit docs to all existing plugins.
61
+ - [#39177](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39177) [`24e27147cbd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/24e27147cbd) - Added atlaskit docs to all existing plugins.
56
62
 
57
63
  ## 0.1.3
58
64
 
@@ -64,11 +70,11 @@
64
70
 
65
71
  ### Patch Changes
66
72
 
67
- - [`4e6f1bf8511`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4e6f1bf8511) - [ED-19233] Import prosemirror libraries from internal facade package
73
+ - [#37785](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37785) [`4e6f1bf8511`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4e6f1bf8511) - [ED-19233] Import prosemirror libraries from internal facade package
68
74
 
69
75
  ## 0.1.1
70
76
 
71
77
  ### Patch Changes
72
78
 
73
- - [`73b5128036b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/73b5128036b) - [ED-17082] Mark package as a singleton one
79
+ - [#35782](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35782) [`73b5128036b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/73b5128036b) - [ED-17082] Mark package as a singleton one
74
80
  - Updated dependencies
package/README.md CHANGED
@@ -27,4 +27,4 @@ Please see [Atlaskit - Editor plugin decorations](https://atlaskit.atlassian.com
27
27
  For internal Atlassian, visit the slack channel [#help-editor](https://atlassian.slack.com/archives/CFG3PSQ9E) for support or visit [go/editor-help](https://go/editor-help) to submit a bug.
28
28
  ## License
29
29
  ---
30
- Please see [Atlassian Frontend - License](https://developer.atlassian.com/cloud/framework/atlassian-frontend/#license) for more licensing information.
30
+ Please see [Atlassian Frontend - License](https://hello.atlassian.net/wiki/spaces/AF/pages/2589099144/Documentation#License) for more licensing information.
@@ -12,7 +12,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
12
12
  * Decorations plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
13
13
  * from `@atlaskit/editor-core`.
14
14
  */
15
- var decorationsPlugin = function decorationsPlugin() {
15
+ var decorationsPlugin = exports.decorationsPlugin = function decorationsPlugin() {
16
16
  return {
17
17
  name: 'decorations',
18
18
  pmPlugins: function pmPlugins() {
@@ -36,5 +36,4 @@ var decorationsPlugin = function decorationsPlugin() {
36
36
  return _pmPlugin.decorationStateKey.getState(editorState);
37
37
  }
38
38
  };
39
- };
40
- exports.decorationsPlugin = decorationsPlugin;
39
+ };
@@ -8,15 +8,13 @@ var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
8
8
  var _state = require("@atlaskit/editor-prosemirror/state");
9
9
  var _utils = require("@atlaskit/editor-prosemirror/utils");
10
10
  var _view = require("@atlaskit/editor-prosemirror/view");
11
- var decorationStateKey = new _state.PluginKey('decorationPlugin');
12
- exports.decorationStateKey = decorationStateKey;
13
- var ACTIONS = /*#__PURE__*/function (ACTIONS) {
11
+ var decorationStateKey = exports.decorationStateKey = new _state.PluginKey('decorationPlugin');
12
+ var ACTIONS = exports.ACTIONS = /*#__PURE__*/function (ACTIONS) {
14
13
  ACTIONS[ACTIONS["DECORATION_ADD"] = 0] = "DECORATION_ADD";
15
14
  ACTIONS[ACTIONS["DECORATION_REMOVE"] = 1] = "DECORATION_REMOVE";
16
15
  return ACTIONS;
17
16
  }({});
18
- exports.ACTIONS = ACTIONS;
19
- var removeDecoration = function removeDecoration(state, dispatch) {
17
+ var removeDecoration = exports.removeDecoration = function removeDecoration(state, dispatch) {
20
18
  var tr = state.tr;
21
19
  if (dispatch) {
22
20
  dispatch(tr.setMeta(decorationStateKey, {
@@ -26,8 +24,7 @@ var removeDecoration = function removeDecoration(state, dispatch) {
26
24
  }
27
25
  return false;
28
26
  };
29
- exports.removeDecoration = removeDecoration;
30
- var hoverDecoration = function hoverDecoration(nodeType, add) {
27
+ var hoverDecoration = exports.hoverDecoration = function hoverDecoration(nodeType, add) {
31
28
  var className = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'danger';
32
29
  return function (state, dispatch) {
33
30
  var from;
@@ -72,8 +69,7 @@ var hoverDecoration = function hoverDecoration(nodeType, add) {
72
69
  return true;
73
70
  };
74
71
  };
75
- exports.hoverDecoration = hoverDecoration;
76
- var _default = function _default() {
72
+ var _default = exports.default = function _default() {
77
73
  return new _safePlugin.SafePlugin({
78
74
  key: decorationStateKey,
79
75
  state: {
@@ -121,5 +117,4 @@ var _default = function _default() {
121
117
  }
122
118
  }
123
119
  });
124
- };
125
- exports.default = _default;
120
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-decorations",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Decorations plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -23,7 +23,7 @@
23
23
  ".": "./src/index.ts"
24
24
  },
25
25
  "dependencies": {
26
- "@atlaskit/editor-common": "^76.0.0",
26
+ "@atlaskit/editor-common": "^76.11.0",
27
27
  "@atlaskit/editor-prosemirror": "1.1.0",
28
28
  "@babel/runtime": "^7.0.0"
29
29
  },
@@ -31,6 +31,7 @@
31
31
  "react": "^16.8.0"
32
32
  },
33
33
  "devDependencies": {
34
+ "@atlaskit/editor-plugin-mentions": "^0.1.0",
34
35
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
35
36
  "@testing-library/react": "^12.1.5",
36
37
  "react-dom": "^16.8.0",