@atlaskit/editor-core 182.1.1 → 182.1.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,12 +1,5 @@
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
-
10
3
  ## 182.1.0
11
4
 
12
5
  ### Minor Changes
@@ -551,7 +551,7 @@ var MediaNodeUpdater = /*#__PURE__*/function () {
551
551
  return _this.props.mediaProvider;
552
552
  case 2:
553
553
  mediaProvider = _context13.sent;
554
- if (!(!id || !collection || !(mediaProvider !== null && mediaProvider !== void 0 && mediaProvider.uploadParams))) {
554
+ if (mediaProvider !== null && mediaProvider !== void 0 && mediaProvider.uploadParams) {
555
555
  _context13.next = 5;
556
556
  break;
557
557
  }
@@ -105,8 +105,6 @@ 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();
110
108
  };
111
109
  return (0, _react2.jsx)(_WithFlash.default, {
112
110
  animate: maxContentSizeReached
@@ -91,8 +91,6 @@ 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();
96
94
  };
97
95
  return (0, _react2.jsx)(_context.ContextPanelConsumer, null, function (_ref) {
98
96
  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.1";
9
+ var version = "182.1.3";
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.1",
3
+ "version": "182.1.3",
4
4
  "sideEffects": false
5
5
  }
@@ -268,7 +268,7 @@ export class MediaNodeUpdater {
268
268
  });
269
269
  _defineProperty(this, "copyFile", async (id, collection, traceContext) => {
270
270
  const mediaProvider = await this.props.mediaProvider;
271
- if (!id || !collection || !(mediaProvider !== null && mediaProvider !== void 0 && mediaProvider.uploadParams)) {
271
+ if (!(mediaProvider !== null && mediaProvider !== void 0 && mediaProvider.uploadParams)) {
272
272
  return;
273
273
  }
274
274
  const nodeContextId = this.getNodeContextId();
@@ -132,8 +132,6 @@ 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();
137
135
  };
138
136
  return jsx(WithFlash, {
139
137
  animate: maxContentSizeReached
@@ -74,8 +74,6 @@ 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();
79
77
  };
80
78
  return jsx(ContextPanelConsumer, null, ({
81
79
  width: contextPanelWidth
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "182.1.1";
2
+ export const version = "182.1.3";
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.1",
3
+ "version": "182.1.3",
4
4
  "sideEffects": false
5
5
  }
@@ -544,7 +544,7 @@ export var MediaNodeUpdater = /*#__PURE__*/function () {
544
544
  return _this.props.mediaProvider;
545
545
  case 2:
546
546
  mediaProvider = _context13.sent;
547
- if (!(!id || !collection || !(mediaProvider !== null && mediaProvider !== void 0 && mediaProvider.uploadParams))) {
547
+ if (mediaProvider !== null && mediaProvider !== void 0 && mediaProvider.uploadParams) {
548
548
  _context13.next = 5;
549
549
  break;
550
550
  }
@@ -98,8 +98,6 @@ 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();
103
101
  };
104
102
  return jsx(WithFlash, {
105
103
  animate: maxContentSizeReached
@@ -80,8 +80,6 @@ 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();
85
83
  };
86
84
  return jsx(ContextPanelConsumer, null, function (_ref) {
87
85
  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.1";
2
+ export var version = "182.1.3";
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.1",
3
+ "version": "182.1.3",
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.1",
3
+ "version": "182.1.3",
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.13.0",
60
+ "@atlaskit/logo": "^13.12.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.5.0",
76
+ "@atlaskit/smart-card": "^25.4.0",
77
77
  "@atlaskit/smart-user-picker": "^6.0.0",
78
78
  "@atlaskit/spinner": "^15.4.0",
79
79
  "@atlaskit/status": "^1.2.0",