@atlaskit/editor-plugin-decorations 0.2.2 → 0.2.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,17 @@
1
1
  # @atlaskit/editor-plugin-decorations
2
2
 
3
+ ## 0.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#42477](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42477) [`8f5175dc714`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8f5175dc714) - Decouple layout plugin from editor-core
8
+
9
+ ## 0.2.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [#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
14
+
3
15
  ## 0.2.2
4
16
 
5
17
  ### Patch Changes
@@ -16,13 +28,13 @@
16
28
 
17
29
  ### Minor Changes
18
30
 
19
- - [`ad3c5c21079`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad3c5c21079) - Updating all plugins with minor version to correct issue with semver.
31
+ - [#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
32
 
21
33
  ## 0.1.5
22
34
 
23
35
  ### Patch Changes
24
36
 
25
- - [`8467bdcdf4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8467bdcdf4f) - Removing `dependencies` prop from PluginInjectionAPI and changing
37
+ - [#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
38
  signature of `NextEditorPlugin`.
27
39
 
28
40
  Previously a `NextEditorPlugin` would be consumed as so:
@@ -52,7 +64,7 @@
52
64
 
53
65
  ### Patch Changes
54
66
 
55
- - [`24e27147cbd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/24e27147cbd) - Added atlaskit docs to all existing plugins.
67
+ - [#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
68
 
57
69
  ## 0.1.3
58
70
 
@@ -64,11 +76,11 @@
64
76
 
65
77
  ### Patch Changes
66
78
 
67
- - [`4e6f1bf8511`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4e6f1bf8511) - [ED-19233] Import prosemirror libraries from internal facade package
79
+ - [#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
80
 
69
81
  ## 0.1.1
70
82
 
71
83
  ### Patch Changes
72
84
 
73
- - [`73b5128036b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/73b5128036b) - [ED-17082] Mark package as a singleton one
85
+ - [#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
86
  - 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.4",
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.17.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",