@atlaskit/media-ui 28.7.40 → 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 +14 -0
- package/dist/cjs/customMediaPlayer/dropdownControlCommon.js +1 -2
- 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/cjs/customMediaPlayer/styled-compiled.js +0 -1
- package/dist/es2019/customMediaPlayer/dropdownControlCommon.js +1 -2
- 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/es2019/customMediaPlayer/styled-compiled.js +0 -1
- package/dist/esm/customMediaPlayer/dropdownControlCommon.js +1 -2
- 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/dist/esm/customMediaPlayer/styled-compiled.js +0 -1
- package/dist/types/MediaInlineCard/Frame/styled-compiled.d.ts +1 -1
- package/dist/types/MediaInlineCard/Frame/styled.d.ts +1 -1
- package/dist/types/customMediaPlayer/analytics/utils/analytics.d.ts +1 -1
- package/dist/types/customMediaPlayer/mediaPlayer/useTextTracks.d.ts +1 -1
- package/dist/types/customMediaPlayer/react-video-renderer/track.d.ts +1 -1
- package/dist/types/customMediaPlayer/styled-compiled.d.ts +4 -4
- package/dist/types/customMediaPlayer/styled.d.ts +2 -2
- package/dist/types/inactivityDetector/styled-compiled.d.ts +1 -1
- package/dist/types/inactivityDetector/styled.d.ts +1 -1
- package/dist/types/mediaImage/index.d.ts +1 -1
- package/dist/types-ts4.5/MediaInlineCard/Frame/styled-compiled.d.ts +1 -1
- package/dist/types-ts4.5/MediaInlineCard/Frame/styled.d.ts +1 -1
- package/dist/types-ts4.5/customMediaPlayer/analytics/utils/analytics.d.ts +1 -1
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/useTextTracks.d.ts +1 -1
- package/dist/types-ts4.5/customMediaPlayer/react-video-renderer/track.d.ts +1 -1
- package/dist/types-ts4.5/customMediaPlayer/styled-compiled.d.ts +4 -4
- package/dist/types-ts4.5/customMediaPlayer/styled.d.ts +2 -2
- package/dist/types-ts4.5/inactivityDetector/styled-compiled.d.ts +1 -1
- package/dist/types-ts4.5/inactivityDetector/styled.d.ts +1 -1
- package/dist/types-ts4.5/mediaImage/index.d.ts +1 -1
- package/example-helpers/styled.ts +87 -41
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/media-ui
|
|
2
2
|
|
|
3
|
+
## 28.7.42
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 28.7.41
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`ddd049a745d38`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ddd049a745d38) -
|
|
14
|
+
Internal change to how legacy colors are applied. No visual changes.
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 28.7.40
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -13,7 +13,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
13
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
var _select = require("@atlaskit/select");
|
|
16
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
17
16
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
18
17
|
var _excluded = ["children"];
|
|
19
18
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -39,7 +38,7 @@ var popupCustomStyles = exports.popupCustomStyles = {
|
|
|
39
38
|
var isFocused = _ref.isFocused,
|
|
40
39
|
isSelected = _ref.isSelected;
|
|
41
40
|
return _objectSpread(_objectSpread({}, styles), {}, {
|
|
42
|
-
color: isSelected ? '#579dff' :
|
|
41
|
+
color: isSelected ? '#579dff' : '#E6EDFA',
|
|
43
42
|
backgroundColor: isSelected ? '#082145' : isFocused ? '#a1bdd914' : '#22272b',
|
|
44
43
|
':active': {
|
|
45
44
|
backgroundColor: '#a6c5e229'
|
|
@@ -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);
|
|
@@ -12,7 +12,6 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
16
15
|
var _getControlsWrapperClassName = require("./getControlsWrapperClassName");
|
|
17
16
|
var _excluded = ["showSlider", "children"],
|
|
18
17
|
_excluded2 = ["children"],
|
|
@@ -8,7 +8,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
8
8
|
// with the compiled react, we are leaving the static colors in tact for now.
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { components } from '@atlaskit/select';
|
|
11
|
-
import { DN900 } from '@atlaskit/theme/colors';
|
|
12
11
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
13
12
|
import { Flex } from '@atlaskit/primitives/compiled';
|
|
14
13
|
export const popupCustomStyles = {
|
|
@@ -28,7 +27,7 @@ export const popupCustomStyles = {
|
|
|
28
27
|
isSelected
|
|
29
28
|
}) => ({
|
|
30
29
|
...styles,
|
|
31
|
-
color: isSelected ? '#579dff' :
|
|
30
|
+
color: isSelected ? '#579dff' : '#E6EDFA',
|
|
32
31
|
backgroundColor: isSelected ? '#082145' : isFocused ? '#a1bdd914' : '#22272b',
|
|
33
32
|
':active': {
|
|
34
33
|
backgroundColor: '#a6c5e229'
|
|
@@ -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
|
|
@@ -5,7 +5,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
6
6
|
|
|
7
7
|
import React, { forwardRef } from 'react';
|
|
8
|
-
import { R300 } from '@atlaskit/theme/colors';
|
|
9
8
|
import { getControlsWrapperClassName } from './getControlsWrapperClassName';
|
|
10
9
|
const volumeStyles = null;
|
|
11
10
|
const showSliderVolumeStyles = null;
|
|
@@ -13,7 +13,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
13
13
|
// with the compiled react, we are leaving the static colors in tact for now.
|
|
14
14
|
import React from 'react';
|
|
15
15
|
import { components } from '@atlaskit/select';
|
|
16
|
-
import { DN900 } from '@atlaskit/theme/colors';
|
|
17
16
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
18
17
|
import { Flex } from '@atlaskit/primitives/compiled';
|
|
19
18
|
export var popupCustomStyles = {
|
|
@@ -34,7 +33,7 @@ export var popupCustomStyles = {
|
|
|
34
33
|
var isFocused = _ref.isFocused,
|
|
35
34
|
isSelected = _ref.isSelected;
|
|
36
35
|
return _objectSpread(_objectSpread({}, styles), {}, {
|
|
37
|
-
color: isSelected ? '#579dff' :
|
|
36
|
+
color: isSelected ? '#579dff' : '#E6EDFA',
|
|
38
37
|
backgroundColor: isSelected ? '#082145' : isFocused ? '#a1bdd914' : '#22272b',
|
|
39
38
|
':active': {
|
|
40
39
|
backgroundColor: '#a6c5e229'
|
|
@@ -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);
|
|
@@ -21,7 +21,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
21
21
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
22
22
|
|
|
23
23
|
import React, { forwardRef } from 'react';
|
|
24
|
-
import { R300 } from '@atlaskit/theme/colors';
|
|
25
24
|
import { getControlsWrapperClassName } from './getControlsWrapperClassName';
|
|
26
25
|
var volumeStyles = null;
|
|
27
26
|
var showSliderVolumeStyles = null;
|
|
@@ -7,4 +7,4 @@ export interface WrapperProps {
|
|
|
7
7
|
isSelected?: boolean;
|
|
8
8
|
isError?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare const Wrapper: React.ForwardRefExoticComponent<Omit<WrapperProps & React.ClassAttributes<HTMLSpanElement> & React.HTMLAttributes<HTMLSpanElement>,
|
|
10
|
+
export declare const Wrapper: React.ForwardRefExoticComponent<Omit<WrapperProps & React.ClassAttributes<HTMLSpanElement> & React.HTMLAttributes<HTMLSpanElement>, 'ref'> & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type WrapperProps } from './styled-compiled';
|
|
3
|
-
export declare const Wrapper: React.ForwardRefExoticComponent<Omit<WrapperProps & React.ClassAttributes<HTMLSpanElement> & React.HTMLAttributes<HTMLSpanElement>,
|
|
3
|
+
export declare const Wrapper: React.ForwardRefExoticComponent<Omit<WrapperProps & React.ClassAttributes<HTMLSpanElement> & React.HTMLAttributes<HTMLSpanElement>, 'ref'> & React.RefAttributes<HTMLSpanElement>>;
|
|
4
4
|
export type { WrapperProps } from './styled-compiled';
|
|
@@ -16,4 +16,4 @@ export type CustomMediaPlayerUIEventPayload = UIEventPayload<UIAttributes & {
|
|
|
16
16
|
export type CustomMediaPlayerUIEvent = 'mediaButtonClick' | 'shortcutPress' | 'playPauseBlanketClick' | 'timeRangeNavigate' | 'volumeRangeNavigate' | 'playbackSpeedChange';
|
|
17
17
|
export type CustomMediaPlayerAnalyticsEventPayload = CustomMediaPlayerScreenEventPayload | MediaButtonClickEventPayload | PlaybackSpeedChangeEventPayload | PlayPauseBlanketClickEventPayload | ShortcutPressEventPayload | TimeRangeNavigateEventPayload | CaptionSucceededEventPayload | CaptionFailedEventPayload | CustomMediaPlayerUIEventPayload | FirstPlayedTrackEventPayload | PlayedTrackEventPayload;
|
|
18
18
|
export declare function fireAnalyticsEvent(payload: CustomMediaPlayerAnalyticsEventPayload, createAnalyticsEvent?: CreateUIAnalyticsEvent): void;
|
|
19
|
-
export declare const createAndFireMediaCustomMediaPlayerEvent: (payload: CustomMediaPlayerAnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => UIAnalyticsEvent;
|
|
19
|
+
export declare const createAndFireMediaCustomMediaPlayerEvent: (payload: CustomMediaPlayerAnalyticsEventPayload) => ((createAnalyticsEvent: CreateUIAnalyticsEvent) => UIAnalyticsEvent);
|
|
@@ -7,7 +7,7 @@ type UseTextTracksProps = {
|
|
|
7
7
|
collectionName?: string;
|
|
8
8
|
type: CustomMediaPlayerType;
|
|
9
9
|
};
|
|
10
|
-
export declare const useTextTracks: ({ fileState, collectionName, type }: UseTextTracksProps) => {
|
|
10
|
+
export declare const useTextTracks: ({ fileState, collectionName, type, }: UseTextTracksProps) => {
|
|
11
11
|
textTracks: VideoTextTracks;
|
|
12
12
|
verifyUserCaptionsEnabled: () => void;
|
|
13
13
|
areCaptionsEnabled: boolean;
|
|
@@ -6,5 +6,5 @@ type TextTracksProps = {
|
|
|
6
6
|
onLoad?: () => void;
|
|
7
7
|
onError?: (artifactName: string, lang: string, label: string) => void;
|
|
8
8
|
};
|
|
9
|
-
export declare const TextTracks: React.MemoExoticComponent<({ videoTextTracks, textTracksPosition, onLoad, onError
|
|
9
|
+
export declare const TextTracks: React.MemoExoticComponent<({ videoTextTracks, textTracksPosition, onLoad, onError }: TextTracksProps) => React.JSX.Element[]>;
|
|
10
10
|
export {};
|
|
@@ -11,17 +11,17 @@ export type VolumeWrapperProps = {
|
|
|
11
11
|
};
|
|
12
12
|
export declare const VolumeWrapper: ({ showSlider, children, ...props }: VolumeWrapperProps & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
|
|
13
13
|
export declare const CurrentTime: ({ children, ...props }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
|
|
14
|
-
export declare const TimeLine: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>,
|
|
14
|
+
export declare const TimeLine: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, 'ref'> & React.RefAttributes<unknown>>;
|
|
15
15
|
export declare const CurrentTimeLine: ({ children, ...props }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
|
|
16
16
|
export declare const Thumb: ({ children, ...props }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
|
|
17
|
-
export declare const CurrentTimeLineThumb: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>,
|
|
17
|
+
export declare const CurrentTimeLineThumb: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, 'ref'> & React.RefAttributes<unknown>>;
|
|
18
18
|
export declare const BufferedTime: ({ children, ...props }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
|
|
19
19
|
export declare const LeftControls: ({ children, ...props }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
|
|
20
20
|
export declare const RightControls: ({ children, ...props }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
|
|
21
21
|
type ControlsWrapperProps = {
|
|
22
22
|
controlsHidden: boolean;
|
|
23
23
|
};
|
|
24
|
-
export declare const ControlsWrapper: React.ForwardRefExoticComponent<Omit<ControlsWrapperProps & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>,
|
|
24
|
+
export declare const ControlsWrapper: React.ForwardRefExoticComponent<Omit<ControlsWrapperProps & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, 'ref'> & React.RefAttributes<unknown>>;
|
|
25
25
|
export declare const VolumeToggleWrapper: ({ isMuted, children, ...props }: MutedIndicatorProps & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
|
|
26
26
|
export declare const VolumeTimeRangeWrapper: ({ children, ...props }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
|
|
27
27
|
export declare const MutedIndicator: ({ isMuted, children, ...props }: MutedIndicatorProps & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
|
|
@@ -31,5 +31,5 @@ export interface CurrentTimeTooltipProps {
|
|
|
31
31
|
timeLineThumbIsFocus: boolean;
|
|
32
32
|
}
|
|
33
33
|
export declare const CurrentTimeTooltip: ({ isDragging, timeLineThumbIsHover, timeLineThumbIsFocus, children, ...props }: CurrentTimeTooltipProps & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
|
|
34
|
-
export declare const TimeRangeWrapper: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>,
|
|
34
|
+
export declare const TimeRangeWrapper: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, 'ref'> & React.RefAttributes<unknown>>;
|
|
35
35
|
export {};
|
|
@@ -2,10 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { type VolumeWrapperProps, type MutedIndicatorProps } from './styled-compiled';
|
|
3
3
|
export declare const VolumeWrapper: (props: VolumeWrapperProps & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => React.JSX.Element;
|
|
4
4
|
export declare const CurrentTime: (props: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => React.JSX.Element;
|
|
5
|
-
export declare const TimeLine: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>,
|
|
5
|
+
export declare const TimeLine: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, 'ref'> & React.RefAttributes<unknown>>;
|
|
6
6
|
export declare const CurrentTimeLine: (props: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => React.JSX.Element;
|
|
7
7
|
export declare const Thumb: (props: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => React.JSX.Element;
|
|
8
|
-
export declare const CurrentTimeLineThumb: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>,
|
|
8
|
+
export declare const CurrentTimeLineThumb: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, 'ref'> & React.RefAttributes<unknown>>;
|
|
9
9
|
export declare const BufferedTime: (props: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => React.JSX.Element;
|
|
10
10
|
export declare const LeftControls: (props: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => React.JSX.Element;
|
|
11
11
|
export declare const RightControls: (props: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => React.JSX.Element;
|
|
@@ -2,4 +2,4 @@ import { type ClassAttributes, type ForwardRefExoticComponent, type HTMLAttribut
|
|
|
2
2
|
export interface ContentWrapperProps {
|
|
3
3
|
controlsAreVisible: boolean;
|
|
4
4
|
}
|
|
5
|
-
export declare const InactivityDetectorWrapper: ForwardRefExoticComponent<Omit<ContentWrapperProps & ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>,
|
|
5
|
+
export declare const InactivityDetectorWrapper: ForwardRefExoticComponent<Omit<ContentWrapperProps & ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>, 'ref'> & RefAttributes<unknown>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ContentWrapperProps } from './styled-compiled';
|
|
3
|
-
export declare const InactivityDetectorWrapper: React.ForwardRefExoticComponent<Omit<ContentWrapperProps & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>,
|
|
3
|
+
export declare const InactivityDetectorWrapper: React.ForwardRefExoticComponent<Omit<ContentWrapperProps & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, 'ref'> & React.RefAttributes<unknown>>;
|
|
4
4
|
export type { ContentWrapperProps } from './styled-compiled';
|
|
@@ -19,4 +19,4 @@ export interface MediaImageState {
|
|
|
19
19
|
parentWidth: number;
|
|
20
20
|
parentHeight: number;
|
|
21
21
|
}
|
|
22
|
-
export declare const MediaImage: React.ForwardRefExoticComponent<Omit<MediaImageProps,
|
|
22
|
+
export declare const MediaImage: React.ForwardRefExoticComponent<Omit<MediaImageProps, 'ref'> & React.RefAttributes<HTMLDivElement | HTMLImageElement>>;
|
|
@@ -7,4 +7,4 @@ export interface WrapperProps {
|
|
|
7
7
|
isSelected?: boolean;
|
|
8
8
|
isError?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare const Wrapper: React.ForwardRefExoticComponent<Omit<WrapperProps & React.ClassAttributes<HTMLSpanElement> & React.HTMLAttributes<HTMLSpanElement>,
|
|
10
|
+
export declare const Wrapper: React.ForwardRefExoticComponent<Omit<WrapperProps & React.ClassAttributes<HTMLSpanElement> & React.HTMLAttributes<HTMLSpanElement>, 'ref'> & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type WrapperProps } from './styled-compiled';
|
|
3
|
-
export declare const Wrapper: React.ForwardRefExoticComponent<Omit<WrapperProps & React.ClassAttributes<HTMLSpanElement> & React.HTMLAttributes<HTMLSpanElement>,
|
|
3
|
+
export declare const Wrapper: React.ForwardRefExoticComponent<Omit<WrapperProps & React.ClassAttributes<HTMLSpanElement> & React.HTMLAttributes<HTMLSpanElement>, 'ref'> & React.RefAttributes<HTMLSpanElement>>;
|
|
4
4
|
export type { WrapperProps } from './styled-compiled';
|
|
@@ -16,4 +16,4 @@ export type CustomMediaPlayerUIEventPayload = UIEventPayload<UIAttributes & {
|
|
|
16
16
|
export type CustomMediaPlayerUIEvent = 'mediaButtonClick' | 'shortcutPress' | 'playPauseBlanketClick' | 'timeRangeNavigate' | 'volumeRangeNavigate' | 'playbackSpeedChange';
|
|
17
17
|
export type CustomMediaPlayerAnalyticsEventPayload = CustomMediaPlayerScreenEventPayload | MediaButtonClickEventPayload | PlaybackSpeedChangeEventPayload | PlayPauseBlanketClickEventPayload | ShortcutPressEventPayload | TimeRangeNavigateEventPayload | CaptionSucceededEventPayload | CaptionFailedEventPayload | CustomMediaPlayerUIEventPayload | FirstPlayedTrackEventPayload | PlayedTrackEventPayload;
|
|
18
18
|
export declare function fireAnalyticsEvent(payload: CustomMediaPlayerAnalyticsEventPayload, createAnalyticsEvent?: CreateUIAnalyticsEvent): void;
|
|
19
|
-
export declare const createAndFireMediaCustomMediaPlayerEvent: (payload: CustomMediaPlayerAnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => UIAnalyticsEvent;
|
|
19
|
+
export declare const createAndFireMediaCustomMediaPlayerEvent: (payload: CustomMediaPlayerAnalyticsEventPayload) => ((createAnalyticsEvent: CreateUIAnalyticsEvent) => UIAnalyticsEvent);
|
|
@@ -7,7 +7,7 @@ type UseTextTracksProps = {
|
|
|
7
7
|
collectionName?: string;
|
|
8
8
|
type: CustomMediaPlayerType;
|
|
9
9
|
};
|
|
10
|
-
export declare const useTextTracks: ({ fileState, collectionName, type }: UseTextTracksProps) => {
|
|
10
|
+
export declare const useTextTracks: ({ fileState, collectionName, type, }: UseTextTracksProps) => {
|
|
11
11
|
textTracks: VideoTextTracks;
|
|
12
12
|
verifyUserCaptionsEnabled: () => void;
|
|
13
13
|
areCaptionsEnabled: boolean;
|
|
@@ -6,5 +6,5 @@ type TextTracksProps = {
|
|
|
6
6
|
onLoad?: () => void;
|
|
7
7
|
onError?: (artifactName: string, lang: string, label: string) => void;
|
|
8
8
|
};
|
|
9
|
-
export declare const TextTracks: React.MemoExoticComponent<({ videoTextTracks, textTracksPosition, onLoad, onError
|
|
9
|
+
export declare const TextTracks: React.MemoExoticComponent<({ videoTextTracks, textTracksPosition, onLoad, onError }: TextTracksProps) => React.JSX.Element[]>;
|
|
10
10
|
export {};
|
|
@@ -11,17 +11,17 @@ export type VolumeWrapperProps = {
|
|
|
11
11
|
};
|
|
12
12
|
export declare const VolumeWrapper: ({ showSlider, children, ...props }: VolumeWrapperProps & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
|
|
13
13
|
export declare const CurrentTime: ({ children, ...props }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
|
|
14
|
-
export declare const TimeLine: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>,
|
|
14
|
+
export declare const TimeLine: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, 'ref'> & React.RefAttributes<unknown>>;
|
|
15
15
|
export declare const CurrentTimeLine: ({ children, ...props }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
|
|
16
16
|
export declare const Thumb: ({ children, ...props }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
|
|
17
|
-
export declare const CurrentTimeLineThumb: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>,
|
|
17
|
+
export declare const CurrentTimeLineThumb: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, 'ref'> & React.RefAttributes<unknown>>;
|
|
18
18
|
export declare const BufferedTime: ({ children, ...props }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
|
|
19
19
|
export declare const LeftControls: ({ children, ...props }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
|
|
20
20
|
export declare const RightControls: ({ children, ...props }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
|
|
21
21
|
type ControlsWrapperProps = {
|
|
22
22
|
controlsHidden: boolean;
|
|
23
23
|
};
|
|
24
|
-
export declare const ControlsWrapper: React.ForwardRefExoticComponent<Omit<ControlsWrapperProps & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>,
|
|
24
|
+
export declare const ControlsWrapper: React.ForwardRefExoticComponent<Omit<ControlsWrapperProps & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, 'ref'> & React.RefAttributes<unknown>>;
|
|
25
25
|
export declare const VolumeToggleWrapper: ({ isMuted, children, ...props }: MutedIndicatorProps & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
|
|
26
26
|
export declare const VolumeTimeRangeWrapper: ({ children, ...props }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
|
|
27
27
|
export declare const MutedIndicator: ({ isMuted, children, ...props }: MutedIndicatorProps & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
|
|
@@ -31,5 +31,5 @@ export interface CurrentTimeTooltipProps {
|
|
|
31
31
|
timeLineThumbIsFocus: boolean;
|
|
32
32
|
}
|
|
33
33
|
export declare const CurrentTimeTooltip: ({ isDragging, timeLineThumbIsHover, timeLineThumbIsFocus, children, ...props }: CurrentTimeTooltipProps & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
|
|
34
|
-
export declare const TimeRangeWrapper: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>,
|
|
34
|
+
export declare const TimeRangeWrapper: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, 'ref'> & React.RefAttributes<unknown>>;
|
|
35
35
|
export {};
|
|
@@ -2,10 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { type VolumeWrapperProps, type MutedIndicatorProps } from './styled-compiled';
|
|
3
3
|
export declare const VolumeWrapper: (props: VolumeWrapperProps & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => React.JSX.Element;
|
|
4
4
|
export declare const CurrentTime: (props: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => React.JSX.Element;
|
|
5
|
-
export declare const TimeLine: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>,
|
|
5
|
+
export declare const TimeLine: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, 'ref'> & React.RefAttributes<unknown>>;
|
|
6
6
|
export declare const CurrentTimeLine: (props: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => React.JSX.Element;
|
|
7
7
|
export declare const Thumb: (props: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => React.JSX.Element;
|
|
8
|
-
export declare const CurrentTimeLineThumb: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>,
|
|
8
|
+
export declare const CurrentTimeLineThumb: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, 'ref'> & React.RefAttributes<unknown>>;
|
|
9
9
|
export declare const BufferedTime: (props: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => React.JSX.Element;
|
|
10
10
|
export declare const LeftControls: (props: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => React.JSX.Element;
|
|
11
11
|
export declare const RightControls: (props: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => React.JSX.Element;
|
|
@@ -2,4 +2,4 @@ import { type ClassAttributes, type ForwardRefExoticComponent, type HTMLAttribut
|
|
|
2
2
|
export interface ContentWrapperProps {
|
|
3
3
|
controlsAreVisible: boolean;
|
|
4
4
|
}
|
|
5
|
-
export declare const InactivityDetectorWrapper: ForwardRefExoticComponent<Omit<ContentWrapperProps & ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>,
|
|
5
|
+
export declare const InactivityDetectorWrapper: ForwardRefExoticComponent<Omit<ContentWrapperProps & ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>, 'ref'> & RefAttributes<unknown>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ContentWrapperProps } from './styled-compiled';
|
|
3
|
-
export declare const InactivityDetectorWrapper: React.ForwardRefExoticComponent<Omit<ContentWrapperProps & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>,
|
|
3
|
+
export declare const InactivityDetectorWrapper: React.ForwardRefExoticComponent<Omit<ContentWrapperProps & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, 'ref'> & React.RefAttributes<unknown>>;
|
|
4
4
|
export type { ContentWrapperProps } from './styled-compiled';
|
|
@@ -19,4 +19,4 @@ export interface MediaImageState {
|
|
|
19
19
|
parentWidth: number;
|
|
20
20
|
parentHeight: number;
|
|
21
21
|
}
|
|
22
|
-
export declare const MediaImage: React.ForwardRefExoticComponent<Omit<MediaImageProps,
|
|
22
|
+
export declare const MediaImage: React.ForwardRefExoticComponent<Omit<MediaImageProps, 'ref'> & React.RefAttributes<HTMLDivElement | HTMLImageElement>>;
|
|
@@ -3,31 +3,49 @@ import { token } from '@atlaskit/tokens';
|
|
|
3
3
|
import type { Theme } from '@emotion/react';
|
|
4
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
5
|
import styled, { type StyledComponent } from '@emotion/styled';
|
|
6
|
-
import type {
|
|
6
|
+
import type {
|
|
7
|
+
DetailedHTMLProps,
|
|
8
|
+
HTMLAttributes,
|
|
9
|
+
LiHTMLAttributes,
|
|
10
|
+
ButtonHTMLAttributes,
|
|
11
|
+
LabelHTMLAttributes,
|
|
12
|
+
} from 'react';
|
|
7
13
|
|
|
8
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
9
|
-
export const InputWrapper: StyledComponent<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
15
|
+
export const InputWrapper: StyledComponent<
|
|
16
|
+
{
|
|
17
|
+
theme?: Theme;
|
|
18
|
+
as?: React.ElementType;
|
|
19
|
+
},
|
|
20
|
+
DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
21
|
+
{}
|
|
22
|
+
> = styled.div({
|
|
13
23
|
margin: `${token('space.250')} 0`,
|
|
14
24
|
});
|
|
15
25
|
|
|
16
26
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
17
|
-
export const PreviewList: StyledComponent<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
27
|
+
export const PreviewList: StyledComponent<
|
|
28
|
+
{
|
|
29
|
+
theme?: Theme;
|
|
30
|
+
as?: React.ElementType;
|
|
31
|
+
},
|
|
32
|
+
DetailedHTMLProps<HTMLAttributes<HTMLUListElement>, HTMLUListElement>,
|
|
33
|
+
{}
|
|
34
|
+
> = styled.ul({
|
|
21
35
|
margin: 0,
|
|
22
36
|
padding: 0,
|
|
23
37
|
listStyleType: 'none',
|
|
24
38
|
});
|
|
25
39
|
|
|
26
40
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
27
|
-
export const PreviewItem: StyledComponent<
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
41
|
+
export const PreviewItem: StyledComponent<
|
|
42
|
+
{
|
|
43
|
+
theme?: Theme;
|
|
44
|
+
as?: React.ElementType;
|
|
45
|
+
},
|
|
46
|
+
DetailedHTMLProps<LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>,
|
|
47
|
+
{}
|
|
48
|
+
> = styled.li({
|
|
31
49
|
borderRadius: token('space.100'),
|
|
32
50
|
border: `${token('border.width', '1px')} solid ${token('color.border')}`,
|
|
33
51
|
padding: token('space.100'),
|
|
@@ -38,10 +56,14 @@ export const PreviewItem: StyledComponent<{
|
|
|
38
56
|
});
|
|
39
57
|
|
|
40
58
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
41
|
-
export const Code: StyledComponent<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
59
|
+
export const Code: StyledComponent<
|
|
60
|
+
{
|
|
61
|
+
theme?: Theme;
|
|
62
|
+
as?: React.ElementType;
|
|
63
|
+
},
|
|
64
|
+
DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>,
|
|
65
|
+
{}
|
|
66
|
+
> = styled.code({
|
|
45
67
|
padding: token('space.050'),
|
|
46
68
|
borderRadius: token('space.050'),
|
|
47
69
|
backgroundColor: token('color.background.inverse.subtle'),
|
|
@@ -50,10 +72,14 @@ export const Code: StyledComponent<{
|
|
|
50
72
|
});
|
|
51
73
|
|
|
52
74
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
53
|
-
export const CloseButton: StyledComponent<
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
75
|
+
export const CloseButton: StyledComponent<
|
|
76
|
+
{
|
|
77
|
+
theme?: Theme;
|
|
78
|
+
as?: React.ElementType;
|
|
79
|
+
},
|
|
80
|
+
DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>,
|
|
81
|
+
{}
|
|
82
|
+
> = styled.button({
|
|
57
83
|
position: 'absolute',
|
|
58
84
|
top: token('space.050'),
|
|
59
85
|
right: token('space.050'),
|
|
@@ -61,46 +87,66 @@ export const CloseButton: StyledComponent<{
|
|
|
61
87
|
});
|
|
62
88
|
|
|
63
89
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
64
|
-
export const PreviewImageContainer: StyledComponent<
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
90
|
+
export const PreviewImageContainer: StyledComponent<
|
|
91
|
+
{
|
|
92
|
+
theme?: Theme;
|
|
93
|
+
as?: React.ElementType;
|
|
94
|
+
},
|
|
95
|
+
DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
96
|
+
{}
|
|
97
|
+
> = styled.div({
|
|
68
98
|
marginTop: token('space.100'),
|
|
69
99
|
marginBottom: token('space.100'),
|
|
70
100
|
});
|
|
71
101
|
|
|
72
102
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
73
|
-
export const OrientationSelectWrapper: StyledComponent<
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
103
|
+
export const OrientationSelectWrapper: StyledComponent<
|
|
104
|
+
{
|
|
105
|
+
theme?: Theme;
|
|
106
|
+
as?: React.ElementType;
|
|
107
|
+
},
|
|
108
|
+
DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>,
|
|
109
|
+
{}
|
|
110
|
+
> = styled.label({
|
|
77
111
|
marginBottom: token('space.250'),
|
|
78
112
|
display: 'block',
|
|
79
113
|
});
|
|
80
114
|
|
|
81
115
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
82
|
-
export const TimeRangeWrapper: StyledComponent<
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
116
|
+
export const TimeRangeWrapper: StyledComponent<
|
|
117
|
+
{
|
|
118
|
+
theme?: Theme;
|
|
119
|
+
as?: React.ElementType;
|
|
120
|
+
},
|
|
121
|
+
DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
122
|
+
{}
|
|
123
|
+
> = styled.div({
|
|
86
124
|
marginTop: token('space.500'),
|
|
87
125
|
});
|
|
88
126
|
|
|
89
127
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
90
|
-
export const Container: StyledComponent<
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
128
|
+
export const Container: StyledComponent<
|
|
129
|
+
{
|
|
130
|
+
theme?: Theme;
|
|
131
|
+
as?: React.ElementType;
|
|
132
|
+
},
|
|
133
|
+
DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
134
|
+
{}
|
|
135
|
+
> = styled.div({
|
|
94
136
|
display: 'flex',
|
|
95
137
|
flexDirection: 'row',
|
|
96
138
|
flexWrap: 'wrap',
|
|
97
139
|
});
|
|
98
140
|
|
|
99
141
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
100
|
-
export const Group: StyledComponent<
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
142
|
+
export const Group: StyledComponent<
|
|
143
|
+
{
|
|
144
|
+
theme?: Theme;
|
|
145
|
+
as?: React.ElementType;
|
|
146
|
+
},
|
|
147
|
+
DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
148
|
+
{}
|
|
149
|
+
> = styled.div({
|
|
104
150
|
width: '250px',
|
|
105
151
|
padding: token('space.250'),
|
|
106
152
|
});
|
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",
|