@atlaskit/media-ui 28.7.41 → 28.7.42
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 +6 -0
- package/dist/cjs/customMediaPlayer/index.js +1 -1
- package/dist/cjs/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/languageDetector.js +5 -5
- package/dist/cjs/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.js +7 -6
- package/dist/cjs/customMediaPlayer/mediaPlayer/mediaPlayer.js +1 -1
- package/dist/es2019/customMediaPlayer/index.js +1 -1
- package/dist/es2019/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/languageDetector.js +3 -3
- package/dist/es2019/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.js +2 -1
- package/dist/es2019/customMediaPlayer/mediaPlayer/mediaPlayer.js +1 -1
- package/dist/esm/customMediaPlayer/index.js +1 -1
- package/dist/esm/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/languageDetector.js +3 -3
- package/dist/esm/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.js +2 -1
- package/dist/esm/customMediaPlayer/mediaPlayer/mediaPlayer.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -14,7 +14,7 @@ var CustomMediaPlayerBase = exports.CustomMediaPlayerBase = function CustomMedia
|
|
|
14
14
|
return /*#__PURE__*/_react.default.createElement(_indexCompiled.CustomMediaPlayerBase, props);
|
|
15
15
|
};
|
|
16
16
|
var packageName = "@atlaskit/media-ui";
|
|
17
|
-
var packageVersion = "
|
|
17
|
+
var packageVersion = "28.7.42";
|
|
18
18
|
|
|
19
19
|
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
20
20
|
var CustomMediaPlayer = exports.CustomMediaPlayer = (0, _mediaCommon.withMediaAnalyticsContext)({
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.detectLanguage = void 0;
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
|
-
var
|
|
10
|
+
var _defaultLocales = _interopRequireDefault(require("@atlaskit/locale/default-locales"));
|
|
11
11
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
12
12
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
13
13
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -29,7 +29,7 @@ var detectVtt = function detectVtt(file, _content) {
|
|
|
29
29
|
try {
|
|
30
30
|
var _loop = function _loop() {
|
|
31
31
|
var section = _step.value;
|
|
32
|
-
var detected =
|
|
32
|
+
var detected = _defaultLocales.default.find(function (locale) {
|
|
33
33
|
return normalize(section) === normalize(locale.value);
|
|
34
34
|
});
|
|
35
35
|
if (detected) {
|
|
@@ -54,7 +54,7 @@ var detectVtt = function detectVtt(file, _content) {
|
|
|
54
54
|
try {
|
|
55
55
|
var _loop2 = function _loop2() {
|
|
56
56
|
var section = _step2.value;
|
|
57
|
-
var detected =
|
|
57
|
+
var detected = _defaultLocales.default.find(function (locale) {
|
|
58
58
|
return normalizeNoRegion(section) === normalizeNoRegion(locale.value);
|
|
59
59
|
});
|
|
60
60
|
if (detected) {
|
|
@@ -70,9 +70,9 @@ var detectVtt = function detectVtt(file, _content) {
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
// Section results in a valid Intl.Locale
|
|
73
|
-
/*
|
|
73
|
+
/*
|
|
74
74
|
new Intl.Locale is quite permisive with its input.
|
|
75
|
-
It allows several text that do not really represent a locale. This is why we prioritize the previous checks
|
|
75
|
+
It allows several text that do not really represent a locale. This is why we prioritize the previous checks
|
|
76
76
|
*/
|
|
77
77
|
} catch (err) {
|
|
78
78
|
_iterator2.e(err);
|
package/dist/cjs/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.js
CHANGED
|
@@ -14,7 +14,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
14
14
|
var _reactIntlNext = require("react-intl-next");
|
|
15
15
|
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
16
16
|
var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
|
|
17
|
-
var _LocaleSelect =
|
|
17
|
+
var _LocaleSelect = _interopRequireDefault(require("@atlaskit/locale/LocaleSelect"));
|
|
18
|
+
var _defaultLocales = _interopRequireDefault(require("@atlaskit/locale/default-locales"));
|
|
18
19
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
19
20
|
var _file = _interopRequireDefault(require("@atlaskit/icon/core/file"));
|
|
20
21
|
var _form = require("@atlaskit/form");
|
|
@@ -39,7 +40,7 @@ var detectLocale = /*#__PURE__*/function () {
|
|
|
39
40
|
_context.next = 9;
|
|
40
41
|
break;
|
|
41
42
|
}
|
|
42
|
-
defaultLocale =
|
|
43
|
+
defaultLocale = _defaultLocales.default.find(function (l) {
|
|
43
44
|
return l.value === detectedLocale;
|
|
44
45
|
});
|
|
45
46
|
if (!defaultLocale) {
|
|
@@ -48,18 +49,18 @@ var detectLocale = /*#__PURE__*/function () {
|
|
|
48
49
|
}
|
|
49
50
|
return _context.abrupt("return", {
|
|
50
51
|
selectedLocale: defaultLocale,
|
|
51
|
-
locales:
|
|
52
|
+
locales: _defaultLocales.default
|
|
52
53
|
});
|
|
53
54
|
case 7:
|
|
54
55
|
customLocale = customLocaleOption(intl, detectedLocale);
|
|
55
56
|
return _context.abrupt("return", {
|
|
56
57
|
selectedLocale: customLocale,
|
|
57
|
-
locales: [].concat((0, _toConsumableArray2.default)(
|
|
58
|
+
locales: [].concat((0, _toConsumableArray2.default)(_defaultLocales.default), [customLocale])
|
|
58
59
|
});
|
|
59
60
|
case 9:
|
|
60
61
|
return _context.abrupt("return", {
|
|
61
|
-
selectedLocale:
|
|
62
|
-
locales:
|
|
62
|
+
selectedLocale: _defaultLocales.default[0],
|
|
63
|
+
locales: _defaultLocales.default
|
|
63
64
|
});
|
|
64
65
|
case 10:
|
|
65
66
|
case "end":
|
|
@@ -15,7 +15,7 @@ var _useTextTracks2 = require("./useTextTracks");
|
|
|
15
15
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
16
16
|
var _excluded = ["onPlay"];
|
|
17
17
|
var packageName = "@atlaskit/media-ui";
|
|
18
|
-
var packageVersion = "
|
|
18
|
+
var packageVersion = "28.7.42";
|
|
19
19
|
var MediaPlayerWihtoutContext = exports.MediaPlayerWihtoutContext = function MediaPlayerWihtoutContext(_ref) {
|
|
20
20
|
var _onPlay = _ref.onPlay,
|
|
21
21
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -5,7 +5,7 @@ import { CustomMediaPlayerBase as CompiledCustomMediaPlayerBase } from './index-
|
|
|
5
5
|
import { withMediaAnalyticsContext } from '@atlaskit/media-common';
|
|
6
6
|
export const CustomMediaPlayerBase = props => /*#__PURE__*/React.createElement(CompiledCustomMediaPlayerBase, props);
|
|
7
7
|
const packageName = "@atlaskit/media-ui";
|
|
8
|
-
const packageVersion = "
|
|
8
|
+
const packageVersion = "28.7.42";
|
|
9
9
|
|
|
10
10
|
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
11
11
|
export const CustomMediaPlayer = withMediaAnalyticsContext({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import defaultLocales from '@atlaskit/locale/default-locales';
|
|
2
2
|
const normalize = locale => {
|
|
3
3
|
return locale.toLowerCase();
|
|
4
4
|
};
|
|
@@ -27,9 +27,9 @@ const detectVtt = (file, _content) => {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
// Section results in a valid Intl.Locale
|
|
30
|
-
/*
|
|
30
|
+
/*
|
|
31
31
|
new Intl.Locale is quite permisive with its input.
|
|
32
|
-
It allows several text that do not really represent a locale. This is why we prioritize the previous checks
|
|
32
|
+
It allows several text that do not really represent a locale. This is why we prioritize the previous checks
|
|
33
33
|
*/
|
|
34
34
|
for (const section of sections) {
|
|
35
35
|
try {
|
package/dist/es2019/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.js
CHANGED
|
@@ -2,7 +2,8 @@ import React, { useEffect, useState } from 'react';
|
|
|
2
2
|
import { injectIntl } from 'react-intl-next';
|
|
3
3
|
import Button from '@atlaskit/button/new';
|
|
4
4
|
import Modal, { ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
|
|
5
|
-
import LocaleSelect
|
|
5
|
+
import LocaleSelect from '@atlaskit/locale/LocaleSelect';
|
|
6
|
+
import defaultLocales from '@atlaskit/locale/default-locales';
|
|
6
7
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
7
8
|
import { Box, Inline } from '@atlaskit/primitives/compiled';
|
|
8
9
|
import FileIcon from '@atlaskit/icon/core/file';
|
|
@@ -6,7 +6,7 @@ import { MediaPlayerBase } from './mediaPlayerBase';
|
|
|
6
6
|
import { useTextTracks } from './useTextTracks';
|
|
7
7
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
8
8
|
const packageName = "@atlaskit/media-ui";
|
|
9
|
-
const packageVersion = "
|
|
9
|
+
const packageVersion = "28.7.42";
|
|
10
10
|
export const MediaPlayerWihtoutContext = ({
|
|
11
11
|
onPlay,
|
|
12
12
|
...props
|
|
@@ -7,7 +7,7 @@ export var CustomMediaPlayerBase = function CustomMediaPlayerBase(props) {
|
|
|
7
7
|
return /*#__PURE__*/React.createElement(CompiledCustomMediaPlayerBase, props);
|
|
8
8
|
};
|
|
9
9
|
var packageName = "@atlaskit/media-ui";
|
|
10
|
-
var packageVersion = "
|
|
10
|
+
var packageVersion = "28.7.42";
|
|
11
11
|
|
|
12
12
|
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
13
13
|
export var CustomMediaPlayer = withMediaAnalyticsContext({
|
|
@@ -3,7 +3,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
3
3
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
4
4
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
5
5
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
6
|
-
import
|
|
6
|
+
import defaultLocales from '@atlaskit/locale/default-locales';
|
|
7
7
|
var normalize = function normalize(locale) {
|
|
8
8
|
return locale.toLowerCase();
|
|
9
9
|
};
|
|
@@ -63,9 +63,9 @@ var detectVtt = function detectVtt(file, _content) {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
// Section results in a valid Intl.Locale
|
|
66
|
-
/*
|
|
66
|
+
/*
|
|
67
67
|
new Intl.Locale is quite permisive with its input.
|
|
68
|
-
It allows several text that do not really represent a locale. This is why we prioritize the previous checks
|
|
68
|
+
It allows several text that do not really represent a locale. This is why we prioritize the previous checks
|
|
69
69
|
*/
|
|
70
70
|
} catch (err) {
|
|
71
71
|
_iterator2.e(err);
|
package/dist/esm/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.js
CHANGED
|
@@ -6,7 +6,8 @@ import React, { useEffect, useState } from 'react';
|
|
|
6
6
|
import { injectIntl } from 'react-intl-next';
|
|
7
7
|
import Button from '@atlaskit/button/new';
|
|
8
8
|
import Modal, { ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
|
|
9
|
-
import LocaleSelect
|
|
9
|
+
import LocaleSelect from '@atlaskit/locale/LocaleSelect';
|
|
10
|
+
import defaultLocales from '@atlaskit/locale/default-locales';
|
|
10
11
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
11
12
|
import { Box, Inline } from '@atlaskit/primitives/compiled';
|
|
12
13
|
import FileIcon from '@atlaskit/icon/core/file';
|
|
@@ -8,7 +8,7 @@ import { MediaPlayerBase } from './mediaPlayerBase';
|
|
|
8
8
|
import { useTextTracks } from './useTextTracks';
|
|
9
9
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
10
10
|
var packageName = "@atlaskit/media-ui";
|
|
11
|
-
var packageVersion = "
|
|
11
|
+
var packageVersion = "28.7.42";
|
|
12
12
|
export var MediaPlayerWihtoutContext = function MediaPlayerWihtoutContext(_ref) {
|
|
13
13
|
var _onPlay = _ref.onPlay,
|
|
14
14
|
props = _objectWithoutProperties(_ref, _excluded);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-ui",
|
|
3
|
-
"version": "28.7.
|
|
3
|
+
"version": "28.7.42",
|
|
4
4
|
"description": "Includes common components and utilities used by other media packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -32,20 +32,20 @@
|
|
|
32
32
|
"@atlaskit/form": "^15.5.0",
|
|
33
33
|
"@atlaskit/icon": "^34.0.0",
|
|
34
34
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
35
|
-
"@atlaskit/locale": "^
|
|
35
|
+
"@atlaskit/locale": "^4.0.0",
|
|
36
36
|
"@atlaskit/media-client": "^36.0.0",
|
|
37
37
|
"@atlaskit/media-client-react": "^5.0.0",
|
|
38
38
|
"@atlaskit/media-common": "^13.0.0",
|
|
39
39
|
"@atlaskit/media-state": "^2.0.0",
|
|
40
40
|
"@atlaskit/modal-dialog": "^14.15.0",
|
|
41
41
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
42
|
-
"@atlaskit/primitives": "^
|
|
42
|
+
"@atlaskit/primitives": "^19.0.0",
|
|
43
43
|
"@atlaskit/range": "^10.0.0",
|
|
44
|
-
"@atlaskit/react-ufo": "^5.
|
|
44
|
+
"@atlaskit/react-ufo": "^5.13.0",
|
|
45
45
|
"@atlaskit/select": "^21.10.0",
|
|
46
46
|
"@atlaskit/spinner": "^19.1.0",
|
|
47
47
|
"@atlaskit/theme": "^23.0.0",
|
|
48
|
-
"@atlaskit/tokens": "^
|
|
48
|
+
"@atlaskit/tokens": "^13.0.0",
|
|
49
49
|
"@atlaskit/tooltip": "^21.1.0",
|
|
50
50
|
"@atlaskit/width-detector": "^5.0.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|