@atlaskit/media-ui 26.0.1 → 26.1.0
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 +16 -0
- package/dist/cjs/customMediaPlayer/index.js +1 -1
- package/dist/cjs/i18n/index.js +7 -0
- package/dist/cjs/i18n/languages.js +2 -0
- package/dist/cjs/mediaImage/index.js +2 -2
- package/dist/es2019/customMediaPlayer/index.js +1 -1
- package/dist/es2019/i18n/index.js +4 -2
- package/dist/es2019/i18n/languages.js +2 -0
- package/dist/es2019/mediaImage/index.js +2 -2
- package/dist/esm/customMediaPlayer/index.js +1 -1
- package/dist/esm/i18n/index.js +4 -2
- package/dist/esm/i18n/languages.js +2 -0
- package/dist/esm/mediaImage/index.js +2 -2
- package/dist/types/i18n/index.d.ts +4 -2
- package/dist/types/i18n/languages.d.ts +1 -0
- package/dist/types-ts4.5/i18n/index.d.ts +4 -2
- package/dist/types-ts4.5/i18n/languages.d.ts +1 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/media-ui
|
|
2
2
|
|
|
3
|
+
## 26.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#161636](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/161636)
|
|
8
|
+
[`69629c54c803b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/69629c54c803b) -
|
|
9
|
+
Adding en-ZZ locale support to media-ui
|
|
10
|
+
|
|
11
|
+
## 26.0.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#159249](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/159249)
|
|
16
|
+
[`665bb2f24332d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/665bb2f24332d) -
|
|
17
|
+
fix React 18 StrictMode issue
|
|
18
|
+
|
|
3
19
|
## 26.0.1
|
|
4
20
|
|
|
5
21
|
### Patch 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.1.0";
|
|
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;
|
package/dist/cjs/i18n/index.js
CHANGED
|
@@ -34,6 +34,12 @@ Object.defineProperty(exports, "en_GB", {
|
|
|
34
34
|
return _en_GB.default;
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
|
+
Object.defineProperty(exports, "en_ZZ", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function get() {
|
|
40
|
+
return _en_ZZ.default;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
37
43
|
Object.defineProperty(exports, "es", {
|
|
38
44
|
enumerable: true,
|
|
39
45
|
get: function get() {
|
|
@@ -205,5 +211,6 @@ var _uk = _interopRequireDefault(require("./uk"));
|
|
|
205
211
|
var _vi = _interopRequireDefault(require("./vi"));
|
|
206
212
|
var _en = _interopRequireDefault(require("./en"));
|
|
207
213
|
var _en_GB = _interopRequireDefault(require("./en_GB"));
|
|
214
|
+
var _en_ZZ = _interopRequireDefault(require("./en_ZZ"));
|
|
208
215
|
var _is = _interopRequireDefault(require("./is"));
|
|
209
216
|
var _ro = _interopRequireDefault(require("./ro"));
|
|
@@ -11,6 +11,8 @@ var _default = exports.default = {
|
|
|
11
11
|
nl: 'Dutch',
|
|
12
12
|
en: 'English',
|
|
13
13
|
en_GB: 'English (United Kingdom)',
|
|
14
|
+
// Used by i18n team in staging to send visual context to translators
|
|
15
|
+
en_ZZ: 'English (Instrumented)',
|
|
14
16
|
et: 'Estonian',
|
|
15
17
|
fi: 'Finnish',
|
|
16
18
|
fr: 'French',
|
|
@@ -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.1.0";
|
|
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,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTE:
|
|
3
3
|
*
|
|
4
|
-
* This file
|
|
5
|
-
*
|
|
4
|
+
* This file was automatically generated by i18n-tools
|
|
5
|
+
* which is now deprecated. Changes must now be made
|
|
6
|
+
* manually.
|
|
6
7
|
*/
|
|
7
8
|
export { default as zh } from './zh';
|
|
8
9
|
export { default as zh_TW } from './zh_TW';
|
|
@@ -31,5 +32,6 @@ export { default as uk } from './uk';
|
|
|
31
32
|
export { default as vi } from './vi';
|
|
32
33
|
export { default as en } from './en';
|
|
33
34
|
export { default as en_GB } from './en_GB';
|
|
35
|
+
export { default as en_ZZ } from './en_ZZ';
|
|
34
36
|
export { default as is } from './is';
|
|
35
37
|
export { default as ro } from './ro';
|
|
@@ -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.1.0";
|
|
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;
|
package/dist/esm/i18n/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTE:
|
|
3
3
|
*
|
|
4
|
-
* This file
|
|
5
|
-
*
|
|
4
|
+
* This file was automatically generated by i18n-tools
|
|
5
|
+
* which is now deprecated. Changes must now be made
|
|
6
|
+
* manually.
|
|
6
7
|
*/
|
|
7
8
|
export { default as zh } from './zh';
|
|
8
9
|
export { default as zh_TW } from './zh_TW';
|
|
@@ -31,5 +32,6 @@ export { default as uk } from './uk';
|
|
|
31
32
|
export { default as vi } from './vi';
|
|
32
33
|
export { default as en } from './en';
|
|
33
34
|
export { default as en_GB } from './en_GB';
|
|
35
|
+
export { default as en_ZZ } from './en_ZZ';
|
|
34
36
|
export { default as is } from './is';
|
|
35
37
|
export { default as ro } from './ro';
|
|
@@ -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
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTE:
|
|
3
3
|
*
|
|
4
|
-
* This file
|
|
5
|
-
*
|
|
4
|
+
* This file was automatically generated by i18n-tools
|
|
5
|
+
* which is now deprecated. Changes must now be made
|
|
6
|
+
* manually.
|
|
6
7
|
*/
|
|
7
8
|
export { default as zh } from './zh';
|
|
8
9
|
export { default as zh_TW } from './zh_TW';
|
|
@@ -31,5 +32,6 @@ export { default as uk } from './uk';
|
|
|
31
32
|
export { default as vi } from './vi';
|
|
32
33
|
export { default as en } from './en';
|
|
33
34
|
export { default as en_GB } from './en_GB';
|
|
35
|
+
export { default as en_ZZ } from './en_ZZ';
|
|
34
36
|
export { default as is } from './is';
|
|
35
37
|
export { default as ro } from './ro';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTE:
|
|
3
3
|
*
|
|
4
|
-
* This file
|
|
5
|
-
*
|
|
4
|
+
* This file was automatically generated by i18n-tools
|
|
5
|
+
* which is now deprecated. Changes must now be made
|
|
6
|
+
* manually.
|
|
6
7
|
*/
|
|
7
8
|
export { default as zh } from './zh';
|
|
8
9
|
export { default as zh_TW } from './zh_TW';
|
|
@@ -31,5 +32,6 @@ export { default as uk } from './uk';
|
|
|
31
32
|
export { default as vi } from './vi';
|
|
32
33
|
export { default as en } from './en';
|
|
33
34
|
export { default as en_GB } from './en_GB';
|
|
35
|
+
export { default as en_ZZ } from './en_ZZ';
|
|
34
36
|
export { default as is } from './is';
|
|
35
37
|
export { default as ro } from './ro';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-ui",
|
|
3
|
-
"version": "26.0
|
|
3
|
+
"version": "26.1.0",
|
|
4
4
|
"description": "Includes common components and utilities used by other media packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
33
33
|
"@atlaskit/primitives": "^13.0.0",
|
|
34
34
|
"@atlaskit/range": "^7.4.0",
|
|
35
|
-
"@atlaskit/select": "^18.
|
|
35
|
+
"@atlaskit/select": "^18.5.0",
|
|
36
36
|
"@atlaskit/spinner": "^16.3.0",
|
|
37
37
|
"@atlaskit/theme": "^14.0.0",
|
|
38
|
-
"@atlaskit/tokens": "^2.
|
|
38
|
+
"@atlaskit/tokens": "^2.2.0",
|
|
39
39
|
"@atlaskit/tooltip": "^18.8.0",
|
|
40
40
|
"@atlaskit/width-detector": "^4.3.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0",
|