@atlaskit/editor-core 187.44.0 → 187.44.2
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 +14 -0
- package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +2 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +2 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/plugins/media/nodeviews/mediaSingle.js +2 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 187.44.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`66fc865caaf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/66fc865caaf) - Added handling for case when mediaSingle childNode is null
|
|
8
|
+
- [`f98f51cda72`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f98f51cda72) - Fixed typo in comment
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 187.44.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 187.44.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -226,7 +226,7 @@ var MediaSingleNode = /*#__PURE__*/function (_Component) {
|
|
|
226
226
|
tr.setSelection(_state.NodeSelection.create(tr.doc, pos));
|
|
227
227
|
return dispatch(tr);
|
|
228
228
|
});
|
|
229
|
-
//
|
|
229
|
+
// Workaround for iOS 16 Caption selection issue
|
|
230
230
|
// @see https://product-fabric.atlassian.net/browse/MEX-2012
|
|
231
231
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onMediaSingleClicked", function (event) {
|
|
232
232
|
var _this$captionPlaceHol;
|
|
@@ -320,7 +320,7 @@ var MediaSingleNode = /*#__PURE__*/function (_Component) {
|
|
|
320
320
|
widthType = _ref4.widthType,
|
|
321
321
|
mediaSingleWidthAttribute = _ref4.width;
|
|
322
322
|
var childNode = node.firstChild;
|
|
323
|
-
var attrs = childNode.attrs;
|
|
323
|
+
var attrs = (childNode === null || childNode === void 0 ? void 0 : childNode.attrs) || {};
|
|
324
324
|
|
|
325
325
|
// original width and height of child media node (scaled)
|
|
326
326
|
var width = attrs.width,
|
|
@@ -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 = "187.44.
|
|
9
|
+
var version = "187.44.2";
|
|
10
10
|
exports.version = version;
|
|
11
11
|
var nextMajorVersion = function nextMajorVersion() {
|
|
12
12
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
@@ -151,7 +151,7 @@ export default class MediaSingleNode extends Component {
|
|
|
151
151
|
tr.setSelection(NodeSelection.create(tr.doc, pos));
|
|
152
152
|
return dispatch(tr);
|
|
153
153
|
});
|
|
154
|
-
//
|
|
154
|
+
// Workaround for iOS 16 Caption selection issue
|
|
155
155
|
// @see https://product-fabric.atlassian.net/browse/MEX-2012
|
|
156
156
|
_defineProperty(this, "onMediaSingleClicked", event => {
|
|
157
157
|
var _this$captionPlaceHol;
|
|
@@ -222,7 +222,7 @@ export default class MediaSingleNode extends Component {
|
|
|
222
222
|
width: mediaSingleWidthAttribute
|
|
223
223
|
} = node.attrs;
|
|
224
224
|
const childNode = node.firstChild;
|
|
225
|
-
const attrs = childNode.attrs;
|
|
225
|
+
const attrs = (childNode === null || childNode === void 0 ? void 0 : childNode.attrs) || {};
|
|
226
226
|
|
|
227
227
|
// original width and height of child media node (scaled)
|
|
228
228
|
let {
|
|
@@ -217,7 +217,7 @@ var MediaSingleNode = /*#__PURE__*/function (_Component) {
|
|
|
217
217
|
tr.setSelection(NodeSelection.create(tr.doc, pos));
|
|
218
218
|
return dispatch(tr);
|
|
219
219
|
});
|
|
220
|
-
//
|
|
220
|
+
// Workaround for iOS 16 Caption selection issue
|
|
221
221
|
// @see https://product-fabric.atlassian.net/browse/MEX-2012
|
|
222
222
|
_defineProperty(_assertThisInitialized(_this), "onMediaSingleClicked", function (event) {
|
|
223
223
|
var _this$captionPlaceHol;
|
|
@@ -311,7 +311,7 @@ var MediaSingleNode = /*#__PURE__*/function (_Component) {
|
|
|
311
311
|
widthType = _ref4.widthType,
|
|
312
312
|
mediaSingleWidthAttribute = _ref4.width;
|
|
313
313
|
var childNode = node.firstChild;
|
|
314
|
-
var attrs = childNode.attrs;
|
|
314
|
+
var attrs = (childNode === null || childNode === void 0 ? void 0 : childNode.attrs) || {};
|
|
315
315
|
|
|
316
316
|
// original width and height of child media node (scaled)
|
|
317
317
|
var width = attrs.width,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "187.44.
|
|
3
|
+
"version": "187.44.2",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@atlaskit/editor-plugin-focus": "^0.2.0",
|
|
76
76
|
"@atlaskit/editor-plugin-grid": "^0.2.0",
|
|
77
77
|
"@atlaskit/editor-plugin-guideline": "^0.5.0",
|
|
78
|
-
"@atlaskit/editor-plugin-hyperlink": "^0.
|
|
78
|
+
"@atlaskit/editor-plugin-hyperlink": "^0.5.0",
|
|
79
79
|
"@atlaskit/editor-plugin-image-upload": "^0.2.0",
|
|
80
80
|
"@atlaskit/editor-plugin-list": "^1.2.0",
|
|
81
81
|
"@atlaskit/editor-plugin-placeholder": "^0.1.0",
|
|
@@ -101,10 +101,10 @@
|
|
|
101
101
|
"@atlaskit/media-filmstrip": "^47.0.0",
|
|
102
102
|
"@atlaskit/media-picker": "^66.2.0",
|
|
103
103
|
"@atlaskit/media-ui": "^25.0.0",
|
|
104
|
-
"@atlaskit/media-viewer": "^48.
|
|
104
|
+
"@atlaskit/media-viewer": "^48.1.0",
|
|
105
105
|
"@atlaskit/mention": "^22.1.0",
|
|
106
106
|
"@atlaskit/menu": "^1.10.0",
|
|
107
|
-
"@atlaskit/modal-dialog": "^12.
|
|
107
|
+
"@atlaskit/modal-dialog": "^12.7.0",
|
|
108
108
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
109
109
|
"@atlaskit/prosemirror-collab": "^0.2.0",
|
|
110
110
|
"@atlaskit/prosemirror-input-rules": "^2.4.0",
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"@af/visual-regression": "*",
|
|
155
155
|
"@atlaskit/code": "^14.6.0",
|
|
156
156
|
"@atlaskit/collab-provider": "9.12.3",
|
|
157
|
-
"@atlaskit/dropdown-menu": "^11.
|
|
157
|
+
"@atlaskit/dropdown-menu": "^11.14.0",
|
|
158
158
|
"@atlaskit/editor-extension-dropbox": "^0.4.0",
|
|
159
159
|
"@atlaskit/editor-plugin-table": "^3.0.0",
|
|
160
160
|
"@atlaskit/flag": "^15.2.0",
|