@atlaskit/editor-core 182.1.0 → 182.1.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,12 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 182.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`dc608155b35`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dc608155b35) - [ux] ED-17486 stopped event propagation on Esc key on the main toolbar so that it is only focuses editor.
8
+ - Updated dependencies
9
+
3
10
  ## 182.1.0
4
11
 
5
12
  ### Minor Changes
@@ -105,6 +105,8 @@ var Editor = /*#__PURE__*/function (_React$Component) {
105
105
  if (!(editorView !== null && editorView !== void 0 && editorView.hasFocus())) {
106
106
  editorView === null || editorView === void 0 ? void 0 : editorView.focus();
107
107
  }
108
+ event.preventDefault();
109
+ event.stopPropagation();
108
110
  };
109
111
  return (0, _react2.jsx)(_WithFlash.default, {
110
112
  animate: maxContentSizeReached
@@ -91,6 +91,8 @@ var EditorToolbar = /*#__PURE__*/_react.default.memo(function (props) {
91
91
  var _props$editorView2;
92
92
  (_props$editorView2 = props.editorView) === null || _props$editorView2 === void 0 ? void 0 : _props$editorView2.focus();
93
93
  }
94
+ event.preventDefault();
95
+ event.stopPropagation();
94
96
  };
95
97
  return (0, _react2.jsx)(_context.ContextPanelConsumer, null, function (_ref) {
96
98
  var _props$featureFlags8, _props$featureFlags9, _props$featureFlags10;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.nextMajorVersion = exports.name = void 0;
7
7
  var name = "@atlaskit/editor-core";
8
8
  exports.name = name;
9
- var version = "182.1.0";
9
+ var version = "182.1.1";
10
10
  exports.version = version;
11
11
  var nextMajorVersion = function nextMajorVersion() {
12
12
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "182.1.0",
3
+ "version": "182.1.1",
4
4
  "sideEffects": false
5
5
  }
@@ -132,6 +132,8 @@ class Editor extends React.Component {
132
132
  if (!(editorView !== null && editorView !== void 0 && editorView.hasFocus())) {
133
133
  editorView === null || editorView === void 0 ? void 0 : editorView.focus();
134
134
  }
135
+ event.preventDefault();
136
+ event.stopPropagation();
135
137
  };
136
138
  return jsx(WithFlash, {
137
139
  animate: maxContentSizeReached
@@ -74,6 +74,8 @@ export const EditorToolbar = /*#__PURE__*/React.memo(props => {
74
74
  var _props$editorView2;
75
75
  (_props$editorView2 = props.editorView) === null || _props$editorView2 === void 0 ? void 0 : _props$editorView2.focus();
76
76
  }
77
+ event.preventDefault();
78
+ event.stopPropagation();
77
79
  };
78
80
  return jsx(ContextPanelConsumer, null, ({
79
81
  width: contextPanelWidth
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "182.1.0";
2
+ export const version = "182.1.1";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "182.1.0",
3
+ "version": "182.1.1",
4
4
  "sideEffects": false
5
5
  }
@@ -98,6 +98,8 @@ var Editor = /*#__PURE__*/function (_React$Component) {
98
98
  if (!(editorView !== null && editorView !== void 0 && editorView.hasFocus())) {
99
99
  editorView === null || editorView === void 0 ? void 0 : editorView.focus();
100
100
  }
101
+ event.preventDefault();
102
+ event.stopPropagation();
101
103
  };
102
104
  return jsx(WithFlash, {
103
105
  animate: maxContentSizeReached
@@ -80,6 +80,8 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
80
80
  var _props$editorView2;
81
81
  (_props$editorView2 = props.editorView) === null || _props$editorView2 === void 0 ? void 0 : _props$editorView2.focus();
82
82
  }
83
+ event.preventDefault();
84
+ event.stopPropagation();
83
85
  };
84
86
  return jsx(ContextPanelConsumer, null, function (_ref) {
85
87
  var _props$featureFlags8, _props$featureFlags9, _props$featureFlags10;
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "182.1.0";
2
+ export var version = "182.1.1";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "182.1.0",
3
+ "version": "182.1.1",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "182.1.0",
3
+ "version": "182.1.1",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -57,7 +57,7 @@
57
57
  "@atlaskit/link-analytics": "^7.0.0",
58
58
  "@atlaskit/link-picker": "^1.18.0",
59
59
  "@atlaskit/locale": "^2.3.0",
60
- "@atlaskit/logo": "^13.12.0",
60
+ "@atlaskit/logo": "^13.13.0",
61
61
  "@atlaskit/media-card": "^74.7.0",
62
62
  "@atlaskit/media-client": "^21.0.0",
63
63
  "@atlaskit/media-common": "^4.0.0",
@@ -73,7 +73,7 @@
73
73
  "@atlaskit/radio": "^5.4.0",
74
74
  "@atlaskit/section-message": "^6.3.0",
75
75
  "@atlaskit/select": "^16.1.0",
76
- "@atlaskit/smart-card": "^25.4.0",
76
+ "@atlaskit/smart-card": "^25.5.0",
77
77
  "@atlaskit/smart-user-picker": "^6.0.0",
78
78
  "@atlaskit/spinner": "^15.4.0",
79
79
  "@atlaskit/status": "^1.2.0",