@atlaskit/media-ui 26.0.0 → 26.0.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/customMediaPlayer/index.js +1 -1
- package/dist/cjs/mediaImage/index.js +2 -2
- package/dist/es2019/customMediaPlayer/index.js +1 -1
- package/dist/es2019/mediaImage/index.js +2 -2
- package/dist/esm/customMediaPlayer/index.js +1 -1
- package/dist/esm/mediaImage/index.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/media-ui
|
|
2
2
|
|
|
3
|
+
## 26.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#159249](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/159249)
|
|
8
|
+
[`665bb2f24332d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/665bb2f24332d) -
|
|
9
|
+
fix React 18 StrictMode issue
|
|
10
|
+
|
|
11
|
+
## 26.0.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 26.0.0
|
|
4
18
|
|
|
5
19
|
### Major Changes
|
|
@@ -54,7 +54,7 @@ function _createSuper(t) { var r = _isNativeReflectConstruct(); return function
|
|
|
54
54
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */ // Keep media player components used in media-viewer to use static colors from the new color palette to
|
|
55
55
|
// support the hybrid theming in media viewer https://product-fabric.atlassian.net/browse/DSP-6067
|
|
56
56
|
var packageName = "@atlaskit/media-ui";
|
|
57
|
-
var packageVersion = "26.0.
|
|
57
|
+
var packageVersion = "26.0.2";
|
|
58
58
|
var MEDIUM_VIDEO_MAX_WIDTH = 400;
|
|
59
59
|
var SMALL_VIDEO_MAX_WIDTH = 160;
|
|
60
60
|
var MINIMUM_DURATION_BEFORE_SAVING_TIME = 60;
|
|
@@ -14,7 +14,6 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
14
14
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
15
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
|
-
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
18
17
|
var _styled = require("./styled");
|
|
19
18
|
var _imageMetaData = require("../imageMetaData");
|
|
20
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -58,7 +57,8 @@ var MediaImage = exports.MediaImage = /*#__PURE__*/function (_Component) {
|
|
|
58
57
|
(0, _createClass2.default)(MediaImage, [{
|
|
59
58
|
key: "componentDidMount",
|
|
60
59
|
value: function componentDidMount() {
|
|
61
|
-
var
|
|
60
|
+
var _this$imageRef$curren;
|
|
61
|
+
var parent = (_this$imageRef$curren = this.imageRef.current) === null || _this$imageRef$curren === void 0 ? void 0 : _this$imageRef$curren.parentElement;
|
|
62
62
|
if (!parent) {
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
@@ -37,7 +37,7 @@ import { SkipTenBackwardIcon, SkipTenForwardIcon } from './icons';
|
|
|
37
37
|
import { getControlsWrapperClassName } from './getControlsWrapperClassName';
|
|
38
38
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
39
39
|
const packageName = "@atlaskit/media-ui";
|
|
40
|
-
const packageVersion = "26.0.
|
|
40
|
+
const packageVersion = "26.0.2";
|
|
41
41
|
const MEDIUM_VIDEO_MAX_WIDTH = 400;
|
|
42
42
|
const SMALL_VIDEO_MAX_WIDTH = 160;
|
|
43
43
|
const MINIMUM_DURATION_BEFORE_SAVING_TIME = 60;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import ReactDOM from 'react-dom';
|
|
4
3
|
import { Component } from 'react';
|
|
5
4
|
import { ImageComponent } from './styled';
|
|
6
5
|
import { getCssFromImageOrientation, isRotated } from '../imageMetaData';
|
|
@@ -37,7 +36,8 @@ export class MediaImage extends Component {
|
|
|
37
36
|
// and if it does recalculate the image height and width
|
|
38
37
|
|
|
39
38
|
componentDidMount() {
|
|
40
|
-
|
|
39
|
+
var _this$imageRef$curren;
|
|
40
|
+
const parent = (_this$imageRef$curren = this.imageRef.current) === null || _this$imageRef$curren === void 0 ? void 0 : _this$imageRef$curren.parentElement;
|
|
41
41
|
if (!parent) {
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
@@ -47,7 +47,7 @@ import { SkipTenBackwardIcon, SkipTenForwardIcon } from './icons';
|
|
|
47
47
|
import { getControlsWrapperClassName } from './getControlsWrapperClassName';
|
|
48
48
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
49
49
|
var packageName = "@atlaskit/media-ui";
|
|
50
|
-
var packageVersion = "26.0.
|
|
50
|
+
var packageVersion = "26.0.2";
|
|
51
51
|
var MEDIUM_VIDEO_MAX_WIDTH = 400;
|
|
52
52
|
var SMALL_VIDEO_MAX_WIDTH = 160;
|
|
53
53
|
var MINIMUM_DURATION_BEFORE_SAVING_TIME = 60;
|
|
@@ -8,7 +8,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
8
8
|
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React from 'react';
|
|
11
|
-
import ReactDOM from 'react-dom';
|
|
12
11
|
import { Component } from 'react';
|
|
13
12
|
import { ImageComponent } from './styled';
|
|
14
13
|
import { getCssFromImageOrientation, isRotated } from '../imageMetaData';
|
|
@@ -49,7 +48,8 @@ export var MediaImage = /*#__PURE__*/function (_Component) {
|
|
|
49
48
|
_createClass(MediaImage, [{
|
|
50
49
|
key: "componentDidMount",
|
|
51
50
|
value: function componentDidMount() {
|
|
52
|
-
var
|
|
51
|
+
var _this$imageRef$curren;
|
|
52
|
+
var parent = (_this$imageRef$curren = this.imageRef.current) === null || _this$imageRef$curren === void 0 ? void 0 : _this$imageRef$curren.parentElement;
|
|
53
53
|
if (!parent) {
|
|
54
54
|
return;
|
|
55
55
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-ui",
|
|
3
|
-
"version": "26.0.
|
|
3
|
+
"version": "26.0.2",
|
|
4
4
|
"description": "Includes common components and utilities used by other media packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"@atlaskit/locale": "^2.8.0",
|
|
31
31
|
"@atlaskit/media-common": "^11.7.0",
|
|
32
32
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
33
|
-
"@atlaskit/primitives": "^
|
|
33
|
+
"@atlaskit/primitives": "^13.0.0",
|
|
34
34
|
"@atlaskit/range": "^7.4.0",
|
|
35
|
-
"@atlaskit/select": "^18.
|
|
35
|
+
"@atlaskit/select": "^18.4.0",
|
|
36
36
|
"@atlaskit/spinner": "^16.3.0",
|
|
37
37
|
"@atlaskit/theme": "^14.0.0",
|
|
38
38
|
"@atlaskit/tokens": "^2.0.0",
|