@atlaskit/media-ui 28.7.39 → 28.7.41
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/apiFeedback.js +2 -1
- package/dist/cjs/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.js +2 -1
- package/dist/cjs/customMediaPlayer/mediaPlayer/captions/artifactUploader/captionsUploaderBrowser.js +2 -1
- package/dist/cjs/customMediaPlayer/mediaPlayer/captions/captionDeleteConfirmationModal.js +2 -1
- 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/apiFeedback.js +2 -1
- package/dist/es2019/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.js +2 -1
- package/dist/es2019/customMediaPlayer/mediaPlayer/captions/artifactUploader/captionsUploaderBrowser.js +2 -1
- package/dist/es2019/customMediaPlayer/mediaPlayer/captions/captionDeleteConfirmationModal.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/apiFeedback.js +2 -1
- package/dist/esm/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.js +2 -1
- package/dist/esm/customMediaPlayer/mediaPlayer/captions/artifactUploader/captionsUploaderBrowser.js +2 -1
- package/dist/esm/customMediaPlayer/mediaPlayer/captions/captionDeleteConfirmationModal.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/abuseModal/abuseModal.d.ts +2 -2
- package/dist/types/customMediaPlayer/analytics/utils/analytics.d.ts +2 -2
- package/dist/types/customMediaPlayer/getControlsWrapperClassName.d.ts +1 -1
- package/dist/types/customMediaPlayer/mediaPlayer/captions/apiFeedback.d.ts +3 -3
- package/dist/types/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.d.ts +3 -3
- package/dist/types/customMediaPlayer/mediaPlayer/captions/artifactUploader/captionsUploaderBrowser.d.ts +3 -3
- package/dist/types/customMediaPlayer/mediaPlayer/captions/captionDeleteConfirmationModal.d.ts +3 -3
- package/dist/types/customMediaPlayer/mediaPlayer/captionsAdminControls.d.ts +2 -2
- package/dist/types/customMediaPlayer/mediaPlayer/captionsSelectControls.d.ts +2 -2
- package/dist/types/customMediaPlayer/mediaPlayer/mediaPlayerBase.d.ts +2 -1
- package/dist/types/customMediaPlayer/mediaPlayer/useTextTracks.d.ts +4 -3
- 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 +2 -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/abuseModal/abuseModal.d.ts +2 -2
- package/dist/types-ts4.5/customMediaPlayer/analytics/utils/analytics.d.ts +2 -2
- package/dist/types-ts4.5/customMediaPlayer/getControlsWrapperClassName.d.ts +1 -1
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/apiFeedback.d.ts +3 -3
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.d.ts +3 -3
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/artifactUploader/captionsUploaderBrowser.d.ts +3 -3
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/captionDeleteConfirmationModal.d.ts +3 -3
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captionsAdminControls.d.ts +2 -2
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captionsSelectControls.d.ts +2 -2
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/mediaPlayerBase.d.ts +2 -1
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/useTextTracks.d.ts +4 -3
- 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 +2 -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 +90 -11
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/media-ui
|
|
2
2
|
|
|
3
|
+
## 28.7.41
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ddd049a745d38`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ddd049a745d38) -
|
|
8
|
+
Internal change to how legacy colors are applied. No visual changes.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 28.7.40
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 28.7.39
|
|
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 = "0.0.0-development";
|
|
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)({
|
|
@@ -47,4 +47,5 @@ function ApiFeedback(_ref) {
|
|
|
47
47
|
onDismissed: onDismissed
|
|
48
48
|
}, flag);
|
|
49
49
|
}
|
|
50
|
-
var
|
|
50
|
+
var _default_1 = (0, _reactIntlNext.injectIntl)(ApiFeedback);
|
|
51
|
+
var _default = exports.default = _default_1;
|
package/dist/cjs/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.js
CHANGED
|
@@ -174,4 +174,5 @@ function UploadCaptionsForm(_ref2) {
|
|
|
174
174
|
onClick: submit
|
|
175
175
|
}, intl.formatMessage(_messages.messages.upload)))));
|
|
176
176
|
}
|
|
177
|
-
var
|
|
177
|
+
var _default_1 = (0, _reactIntlNext.injectIntl)(UploadCaptionsForm);
|
|
178
|
+
var _default = exports.default = _default_1;
|
package/dist/cjs/customMediaPlayer/mediaPlayer/captions/artifactUploader/captionsUploaderBrowser.js
CHANGED
|
@@ -76,4 +76,5 @@ var CaptionsUploaderBrowser = function CaptionsUploaderBrowser(_ref) {
|
|
|
76
76
|
errorDescription: intl.formatMessage(_messages.messages.video_captions_upload_error_description)
|
|
77
77
|
}));
|
|
78
78
|
};
|
|
79
|
-
var
|
|
79
|
+
var _default_1 = (0, _reactIntlNext.injectIntl)(CaptionsUploaderBrowser);
|
|
80
|
+
var _default = exports.default = _default_1;
|
|
@@ -64,7 +64,8 @@ var CaptionDeleteConfirmationModal = function CaptionDeleteConfirmationModal(_re
|
|
|
64
64
|
errorDescription: intl.formatMessage(_messages.messages.video_captions_delete_error_description)
|
|
65
65
|
}));
|
|
66
66
|
};
|
|
67
|
-
var
|
|
67
|
+
var _default_1 = (0, _reactIntlNext.injectIntl)(CaptionDeleteConfirmationModal);
|
|
68
|
+
var _default = exports.default = _default_1;
|
|
68
69
|
var deleteCaption = /*#__PURE__*/function () {
|
|
69
70
|
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(mediaClient, identifier, artifactName, onStart, onEnd, onError) {
|
|
70
71
|
var traceContext;
|
|
@@ -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 = "0.0.0-development";
|
|
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 = "0.0.0-development";
|
|
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({
|
|
@@ -56,4 +56,5 @@ const CaptionsUploaderBrowser = ({
|
|
|
56
56
|
errorDescription: intl.formatMessage(messages.video_captions_upload_error_description)
|
|
57
57
|
}));
|
|
58
58
|
};
|
|
59
|
-
|
|
59
|
+
const _default_1 = injectIntl(CaptionsUploaderBrowser);
|
|
60
|
+
export default _default_1;
|
package/dist/es2019/customMediaPlayer/mediaPlayer/captions/captionDeleteConfirmationModal.js
CHANGED
|
@@ -48,7 +48,8 @@ const CaptionDeleteConfirmationModal = ({
|
|
|
48
48
|
errorDescription: intl.formatMessage(messages.video_captions_delete_error_description)
|
|
49
49
|
}));
|
|
50
50
|
};
|
|
51
|
-
|
|
51
|
+
const _default_1 = injectIntl(CaptionDeleteConfirmationModal);
|
|
52
|
+
export default _default_1;
|
|
52
53
|
const deleteCaption = async (mediaClient, identifier, artifactName, onStart, onEnd, onError) => {
|
|
53
54
|
const traceContext = {
|
|
54
55
|
traceId: getRandomTelemetryId()
|
|
@@ -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 = "0.0.0-development";
|
|
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 = "0.0.0-development";
|
|
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({
|
package/dist/esm/customMediaPlayer/mediaPlayer/captions/artifactUploader/captionsUploaderBrowser.js
CHANGED
|
@@ -67,4 +67,5 @@ var CaptionsUploaderBrowser = function CaptionsUploaderBrowser(_ref) {
|
|
|
67
67
|
errorDescription: intl.formatMessage(messages.video_captions_upload_error_description)
|
|
68
68
|
}));
|
|
69
69
|
};
|
|
70
|
-
|
|
70
|
+
var _default_1 = injectIntl(CaptionsUploaderBrowser);
|
|
71
|
+
export default _default_1;
|
|
@@ -55,7 +55,8 @@ var CaptionDeleteConfirmationModal = function CaptionDeleteConfirmationModal(_re
|
|
|
55
55
|
errorDescription: intl.formatMessage(messages.video_captions_delete_error_description)
|
|
56
56
|
}));
|
|
57
57
|
};
|
|
58
|
-
|
|
58
|
+
var _default_1 = injectIntl(CaptionDeleteConfirmationModal);
|
|
59
|
+
export default _default_1;
|
|
59
60
|
var deleteCaption = /*#__PURE__*/function () {
|
|
60
61
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(mediaClient, identifier, artifactName, onStart, onEnd, onError) {
|
|
61
62
|
var traceContext;
|
|
@@ -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 = "0.0.0-development";
|
|
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';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
export type AbuseModalProps = {
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
onConfirm: () => void;
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
};
|
|
8
|
-
export declare const AbuseModal: React.FC<
|
|
8
|
+
export declare const AbuseModal: React.FC<WithIntlProps<AbuseModalProps & WrappedComponentProps>> & {
|
|
9
9
|
WrappedComponent: React.ComponentType<AbuseModalProps & WrappedComponentProps>;
|
|
10
10
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
1
|
+
import { type CreateUIAnalyticsEvent, type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
import { type UIAttributes, type UIEventPayload } from '@atlaskit/media-common';
|
|
3
3
|
import { type CustomMediaPlayerScreenEventPayload } from '../events/screen/customMediaPlayer';
|
|
4
4
|
import { type MediaButtonClickEventPayload } from '../events/ui/mediaButtonClicked';
|
|
@@ -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) =>
|
|
19
|
+
export declare const createAndFireMediaCustomMediaPlayerEvent: (payload: CustomMediaPlayerAnalyticsEventPayload) => ((createAnalyticsEvent: CreateUIAnalyticsEvent) => UIAnalyticsEvent);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getControlsWrapperClassName: (wasPlayedOnce: boolean) => "mvng-hide-controls"
|
|
1
|
+
export declare const getControlsWrapperClassName: (wasPlayedOnce: boolean) => "" | "mvng-hide-controls";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
export type NotificationTypes = 'success' | 'error' | null;
|
|
4
4
|
export interface ApiFeedbackProps {
|
|
5
5
|
notificationType: NotificationTypes;
|
|
@@ -7,7 +7,7 @@ export interface ApiFeedbackProps {
|
|
|
7
7
|
successDescription: string;
|
|
8
8
|
errorDescription: string;
|
|
9
9
|
}
|
|
10
|
-
declare const
|
|
10
|
+
declare const _default_1: React.FC<WithIntlProps<ApiFeedbackProps & WrappedComponentProps>> & {
|
|
11
11
|
WrappedComponent: React.ComponentType<ApiFeedbackProps & WrappedComponentProps>;
|
|
12
12
|
};
|
|
13
|
-
export default
|
|
13
|
+
export default _default_1;
|
package/dist/types/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import { type WrappedComponentProps, type WithIntlProps } from 'react-intl-next';
|
|
3
3
|
type UploadCaptionsFormProps = {
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
onClose: () => void;
|
|
6
6
|
uploadFn: (file: File, locale: string) => Promise<void>;
|
|
7
7
|
file?: File;
|
|
8
8
|
};
|
|
9
|
-
declare const
|
|
9
|
+
declare const _default_1: React.FC<WithIntlProps<UploadCaptionsFormProps & WrappedComponentProps>> & {
|
|
10
10
|
WrappedComponent: React.ComponentType<UploadCaptionsFormProps & WrappedComponentProps>;
|
|
11
11
|
};
|
|
12
|
-
export default
|
|
12
|
+
export default _default_1;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ArtifactUploaderProps } from './types';
|
|
3
|
-
import { type WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
export type CaptionsUploaderBrowserProps = ArtifactUploaderProps & {
|
|
5
5
|
isOpen: boolean;
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
};
|
|
8
|
-
declare const
|
|
8
|
+
declare const _default_1: React.FC<WithIntlProps<ArtifactUploaderProps & {
|
|
9
9
|
isOpen: boolean;
|
|
10
10
|
onClose: () => void;
|
|
11
11
|
} & WrappedComponentProps>> & {
|
|
@@ -14,4 +14,4 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Artifac
|
|
|
14
14
|
onClose: () => void;
|
|
15
15
|
} & WrappedComponentProps>;
|
|
16
16
|
};
|
|
17
|
-
export default
|
|
17
|
+
export default _default_1;
|
package/dist/types/customMediaPlayer/mediaPlayer/captions/captionDeleteConfirmationModal.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type FileIdentifier } from '@atlaskit/media-client';
|
|
3
|
-
import { type WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
import { type MediaTraceContext } from '@atlaskit/media-common';
|
|
5
5
|
export interface CaptionDeleteConfirmationModalProps {
|
|
6
6
|
identifier: FileIdentifier;
|
|
@@ -10,7 +10,7 @@ export interface CaptionDeleteConfirmationModalProps {
|
|
|
10
10
|
onEnd?: (context: MediaTraceContext) => void;
|
|
11
11
|
onError?: (error: Error, artifactName: string, context: MediaTraceContext) => void;
|
|
12
12
|
}
|
|
13
|
-
declare const
|
|
13
|
+
declare const _default_1: React.FC<WithIntlProps<CaptionDeleteConfirmationModalProps & WrappedComponentProps>> & {
|
|
14
14
|
WrappedComponent: React.ComponentType<CaptionDeleteConfirmationModalProps & WrappedComponentProps>;
|
|
15
15
|
};
|
|
16
|
-
export default
|
|
16
|
+
export default _default_1;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type VideoTextTracks } from '../react-video-renderer';
|
|
3
|
-
import { type WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
export interface CaptionsAdminControlsProps {
|
|
5
5
|
textTracks?: VideoTextTracks;
|
|
6
6
|
onUpload: () => void;
|
|
7
7
|
onDelete: (artifactName: string) => void;
|
|
8
8
|
}
|
|
9
9
|
export declare const _CaptionsAdminControls: ({ intl, textTracks, onUpload, onDelete, }: CaptionsAdminControlsProps & WrappedComponentProps) => React.JSX.Element;
|
|
10
|
-
export declare const CaptionsAdminControls: React.FC<
|
|
10
|
+
export declare const CaptionsAdminControls: React.FC<WithIntlProps<CaptionsAdminControlsProps & WrappedComponentProps>> & {
|
|
11
11
|
WrappedComponent: React.ComponentType<CaptionsAdminControlsProps & WrappedComponentProps>;
|
|
12
12
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type VideoTextTracks } from '../react-video-renderer';
|
|
3
|
-
import { type WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
export interface CaptionsSelectControlsProps {
|
|
5
5
|
textTracks: VideoTextTracks;
|
|
6
6
|
onSelected: (selected: number) => void;
|
|
@@ -8,6 +8,6 @@ export interface CaptionsSelectControlsProps {
|
|
|
8
8
|
onCaptionsEnabledChange: (areCaptionsEnabled: boolean) => void;
|
|
9
9
|
selectedTracksIndex: number;
|
|
10
10
|
}
|
|
11
|
-
export declare const CaptionsSelectControls: React.FC<
|
|
11
|
+
export declare const CaptionsSelectControls: React.FC<WithIntlProps<CaptionsSelectControlsProps & WrappedComponentProps>> & {
|
|
12
12
|
WrappedComponent: React.ComponentType<CaptionsSelectControlsProps & WrappedComponentProps>;
|
|
13
13
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type WithIntlProps } from 'react-intl-next';
|
|
3
4
|
import { type WrappedComponentProps } from 'react-intl-next';
|
|
4
5
|
import { type MediaPlayerBaseProps } from './types';
|
|
5
6
|
export interface CustomMediaPlayerState {
|
|
@@ -16,7 +17,7 @@ export declare const breakpoints: {
|
|
|
16
17
|
SMALL_VIDEO_MAX_WIDTH: number;
|
|
17
18
|
};
|
|
18
19
|
type MediaPlayerBaseOwnProps = MediaPlayerBaseProps & WrappedComponentProps & WithAnalyticsEventsProps;
|
|
19
|
-
export declare const MediaPlayerBase: React.FC<
|
|
20
|
+
export declare const MediaPlayerBase: React.FC<WithIntlProps<MediaPlayerBaseOwnProps>> & {
|
|
20
21
|
WrappedComponent: React.ComponentType<MediaPlayerBaseOwnProps>;
|
|
21
22
|
};
|
|
22
23
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type FileState } from '@atlaskit/media-state';
|
|
2
|
+
import { type Dispatch, type SetStateAction } from 'react';
|
|
2
3
|
import { type VideoTextTracks } from '../react-video-renderer';
|
|
3
4
|
import { type CustomMediaPlayerType } from '../types';
|
|
4
5
|
type UseTextTracksProps = {
|
|
@@ -6,11 +7,11 @@ type UseTextTracksProps = {
|
|
|
6
7
|
collectionName?: string;
|
|
7
8
|
type: CustomMediaPlayerType;
|
|
8
9
|
};
|
|
9
|
-
export declare const useTextTracks: ({ fileState, collectionName, type }: UseTextTracksProps) => {
|
|
10
|
+
export declare const useTextTracks: ({ fileState, collectionName, type, }: UseTextTracksProps) => {
|
|
10
11
|
textTracks: VideoTextTracks;
|
|
11
12
|
verifyUserCaptionsEnabled: () => void;
|
|
12
13
|
areCaptionsEnabled: boolean;
|
|
13
|
-
setSelectedTracksIndex:
|
|
14
|
-
setAreCaptionsEnabled:
|
|
14
|
+
setSelectedTracksIndex: Dispatch<SetStateAction<number>>;
|
|
15
|
+
setAreCaptionsEnabled: Dispatch<SetStateAction<boolean>>;
|
|
15
16
|
};
|
|
16
17
|
export {};
|
|
@@ -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;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { type ClassAttributes, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes } from 'react';
|
|
1
2
|
export interface ContentWrapperProps {
|
|
2
3
|
controlsAreVisible: boolean;
|
|
3
4
|
}
|
|
4
|
-
export declare const InactivityDetectorWrapper:
|
|
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';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
export type AbuseModalProps = {
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
onConfirm: () => void;
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
};
|
|
8
|
-
export declare const AbuseModal: React.FC<
|
|
8
|
+
export declare const AbuseModal: React.FC<WithIntlProps<AbuseModalProps & WrappedComponentProps>> & {
|
|
9
9
|
WrappedComponent: React.ComponentType<AbuseModalProps & WrappedComponentProps>;
|
|
10
10
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
1
|
+
import { type CreateUIAnalyticsEvent, type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
import { type UIAttributes, type UIEventPayload } from '@atlaskit/media-common';
|
|
3
3
|
import { type CustomMediaPlayerScreenEventPayload } from '../events/screen/customMediaPlayer';
|
|
4
4
|
import { type MediaButtonClickEventPayload } from '../events/ui/mediaButtonClicked';
|
|
@@ -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) =>
|
|
19
|
+
export declare const createAndFireMediaCustomMediaPlayerEvent: (payload: CustomMediaPlayerAnalyticsEventPayload) => ((createAnalyticsEvent: CreateUIAnalyticsEvent) => UIAnalyticsEvent);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getControlsWrapperClassName: (wasPlayedOnce: boolean) => "mvng-hide-controls"
|
|
1
|
+
export declare const getControlsWrapperClassName: (wasPlayedOnce: boolean) => "" | "mvng-hide-controls";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
export type NotificationTypes = 'success' | 'error' | null;
|
|
4
4
|
export interface ApiFeedbackProps {
|
|
5
5
|
notificationType: NotificationTypes;
|
|
@@ -7,7 +7,7 @@ export interface ApiFeedbackProps {
|
|
|
7
7
|
successDescription: string;
|
|
8
8
|
errorDescription: string;
|
|
9
9
|
}
|
|
10
|
-
declare const
|
|
10
|
+
declare const _default_1: React.FC<WithIntlProps<ApiFeedbackProps & WrappedComponentProps>> & {
|
|
11
11
|
WrappedComponent: React.ComponentType<ApiFeedbackProps & WrappedComponentProps>;
|
|
12
12
|
};
|
|
13
|
-
export default
|
|
13
|
+
export default _default_1;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import { type WrappedComponentProps, type WithIntlProps } from 'react-intl-next';
|
|
3
3
|
type UploadCaptionsFormProps = {
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
onClose: () => void;
|
|
6
6
|
uploadFn: (file: File, locale: string) => Promise<void>;
|
|
7
7
|
file?: File;
|
|
8
8
|
};
|
|
9
|
-
declare const
|
|
9
|
+
declare const _default_1: React.FC<WithIntlProps<UploadCaptionsFormProps & WrappedComponentProps>> & {
|
|
10
10
|
WrappedComponent: React.ComponentType<UploadCaptionsFormProps & WrappedComponentProps>;
|
|
11
11
|
};
|
|
12
|
-
export default
|
|
12
|
+
export default _default_1;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ArtifactUploaderProps } from './types';
|
|
3
|
-
import { type WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
export type CaptionsUploaderBrowserProps = ArtifactUploaderProps & {
|
|
5
5
|
isOpen: boolean;
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
};
|
|
8
|
-
declare const
|
|
8
|
+
declare const _default_1: React.FC<WithIntlProps<ArtifactUploaderProps & {
|
|
9
9
|
isOpen: boolean;
|
|
10
10
|
onClose: () => void;
|
|
11
11
|
} & WrappedComponentProps>> & {
|
|
@@ -14,4 +14,4 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Artifac
|
|
|
14
14
|
onClose: () => void;
|
|
15
15
|
} & WrappedComponentProps>;
|
|
16
16
|
};
|
|
17
|
-
export default
|
|
17
|
+
export default _default_1;
|
package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/captionDeleteConfirmationModal.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type FileIdentifier } from '@atlaskit/media-client';
|
|
3
|
-
import { type WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
import { type MediaTraceContext } from '@atlaskit/media-common';
|
|
5
5
|
export interface CaptionDeleteConfirmationModalProps {
|
|
6
6
|
identifier: FileIdentifier;
|
|
@@ -10,7 +10,7 @@ export interface CaptionDeleteConfirmationModalProps {
|
|
|
10
10
|
onEnd?: (context: MediaTraceContext) => void;
|
|
11
11
|
onError?: (error: Error, artifactName: string, context: MediaTraceContext) => void;
|
|
12
12
|
}
|
|
13
|
-
declare const
|
|
13
|
+
declare const _default_1: React.FC<WithIntlProps<CaptionDeleteConfirmationModalProps & WrappedComponentProps>> & {
|
|
14
14
|
WrappedComponent: React.ComponentType<CaptionDeleteConfirmationModalProps & WrappedComponentProps>;
|
|
15
15
|
};
|
|
16
|
-
export default
|
|
16
|
+
export default _default_1;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type VideoTextTracks } from '../react-video-renderer';
|
|
3
|
-
import { type WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
export interface CaptionsAdminControlsProps {
|
|
5
5
|
textTracks?: VideoTextTracks;
|
|
6
6
|
onUpload: () => void;
|
|
7
7
|
onDelete: (artifactName: string) => void;
|
|
8
8
|
}
|
|
9
9
|
export declare const _CaptionsAdminControls: ({ intl, textTracks, onUpload, onDelete, }: CaptionsAdminControlsProps & WrappedComponentProps) => React.JSX.Element;
|
|
10
|
-
export declare const CaptionsAdminControls: React.FC<
|
|
10
|
+
export declare const CaptionsAdminControls: React.FC<WithIntlProps<CaptionsAdminControlsProps & WrappedComponentProps>> & {
|
|
11
11
|
WrappedComponent: React.ComponentType<CaptionsAdminControlsProps & WrappedComponentProps>;
|
|
12
12
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type VideoTextTracks } from '../react-video-renderer';
|
|
3
|
-
import { type WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
export interface CaptionsSelectControlsProps {
|
|
5
5
|
textTracks: VideoTextTracks;
|
|
6
6
|
onSelected: (selected: number) => void;
|
|
@@ -8,6 +8,6 @@ export interface CaptionsSelectControlsProps {
|
|
|
8
8
|
onCaptionsEnabledChange: (areCaptionsEnabled: boolean) => void;
|
|
9
9
|
selectedTracksIndex: number;
|
|
10
10
|
}
|
|
11
|
-
export declare const CaptionsSelectControls: React.FC<
|
|
11
|
+
export declare const CaptionsSelectControls: React.FC<WithIntlProps<CaptionsSelectControlsProps & WrappedComponentProps>> & {
|
|
12
12
|
WrappedComponent: React.ComponentType<CaptionsSelectControlsProps & WrappedComponentProps>;
|
|
13
13
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type WithIntlProps } from 'react-intl-next';
|
|
3
4
|
import { type WrappedComponentProps } from 'react-intl-next';
|
|
4
5
|
import { type MediaPlayerBaseProps } from './types';
|
|
5
6
|
export interface CustomMediaPlayerState {
|
|
@@ -16,7 +17,7 @@ export declare const breakpoints: {
|
|
|
16
17
|
SMALL_VIDEO_MAX_WIDTH: number;
|
|
17
18
|
};
|
|
18
19
|
type MediaPlayerBaseOwnProps = MediaPlayerBaseProps & WrappedComponentProps & WithAnalyticsEventsProps;
|
|
19
|
-
export declare const MediaPlayerBase: React.FC<
|
|
20
|
+
export declare const MediaPlayerBase: React.FC<WithIntlProps<MediaPlayerBaseOwnProps>> & {
|
|
20
21
|
WrappedComponent: React.ComponentType<MediaPlayerBaseOwnProps>;
|
|
21
22
|
};
|
|
22
23
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type FileState } from '@atlaskit/media-state';
|
|
2
|
+
import { type Dispatch, type SetStateAction } from 'react';
|
|
2
3
|
import { type VideoTextTracks } from '../react-video-renderer';
|
|
3
4
|
import { type CustomMediaPlayerType } from '../types';
|
|
4
5
|
type UseTextTracksProps = {
|
|
@@ -6,11 +7,11 @@ type UseTextTracksProps = {
|
|
|
6
7
|
collectionName?: string;
|
|
7
8
|
type: CustomMediaPlayerType;
|
|
8
9
|
};
|
|
9
|
-
export declare const useTextTracks: ({ fileState, collectionName, type }: UseTextTracksProps) => {
|
|
10
|
+
export declare const useTextTracks: ({ fileState, collectionName, type, }: UseTextTracksProps) => {
|
|
10
11
|
textTracks: VideoTextTracks;
|
|
11
12
|
verifyUserCaptionsEnabled: () => void;
|
|
12
13
|
areCaptionsEnabled: boolean;
|
|
13
|
-
setSelectedTracksIndex:
|
|
14
|
-
setAreCaptionsEnabled:
|
|
14
|
+
setSelectedTracksIndex: Dispatch<SetStateAction<number>>;
|
|
15
|
+
setAreCaptionsEnabled: Dispatch<SetStateAction<boolean>>;
|
|
15
16
|
};
|
|
16
17
|
export {};
|
|
@@ -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;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { type ClassAttributes, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes } from 'react';
|
|
1
2
|
export interface ContentWrapperProps {
|
|
2
3
|
controlsAreVisible: boolean;
|
|
3
4
|
}
|
|
4
|
-
export declare const InactivityDetectorWrapper:
|
|
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>>;
|
|
@@ -1,21 +1,51 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled, @atlaskit/ui-styling-standard/no-styled -- Ignored via go/DSP-18766 */
|
|
1
2
|
import { token } from '@atlaskit/tokens';
|
|
3
|
+
import type { Theme } from '@emotion/react';
|
|
2
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
|
-
import styled from '@emotion/styled';
|
|
5
|
+
import styled, { type StyledComponent } from '@emotion/styled';
|
|
6
|
+
import type {
|
|
7
|
+
DetailedHTMLProps,
|
|
8
|
+
HTMLAttributes,
|
|
9
|
+
LiHTMLAttributes,
|
|
10
|
+
ButtonHTMLAttributes,
|
|
11
|
+
LabelHTMLAttributes,
|
|
12
|
+
} from 'react';
|
|
4
13
|
|
|
5
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
|
-
export const InputWrapper
|
|
15
|
+
export const InputWrapper: StyledComponent<
|
|
16
|
+
{
|
|
17
|
+
theme?: Theme;
|
|
18
|
+
as?: React.ElementType;
|
|
19
|
+
},
|
|
20
|
+
DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
21
|
+
{}
|
|
22
|
+
> = styled.div({
|
|
7
23
|
margin: `${token('space.250')} 0`,
|
|
8
24
|
});
|
|
9
25
|
|
|
10
26
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
|
-
export const PreviewList
|
|
27
|
+
export const PreviewList: StyledComponent<
|
|
28
|
+
{
|
|
29
|
+
theme?: Theme;
|
|
30
|
+
as?: React.ElementType;
|
|
31
|
+
},
|
|
32
|
+
DetailedHTMLProps<HTMLAttributes<HTMLUListElement>, HTMLUListElement>,
|
|
33
|
+
{}
|
|
34
|
+
> = styled.ul({
|
|
12
35
|
margin: 0,
|
|
13
36
|
padding: 0,
|
|
14
37
|
listStyleType: 'none',
|
|
15
38
|
});
|
|
16
39
|
|
|
17
40
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
18
|
-
export const PreviewItem
|
|
41
|
+
export const PreviewItem: StyledComponent<
|
|
42
|
+
{
|
|
43
|
+
theme?: Theme;
|
|
44
|
+
as?: React.ElementType;
|
|
45
|
+
},
|
|
46
|
+
DetailedHTMLProps<LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>,
|
|
47
|
+
{}
|
|
48
|
+
> = styled.li({
|
|
19
49
|
borderRadius: token('space.100'),
|
|
20
50
|
border: `${token('border.width', '1px')} solid ${token('color.border')}`,
|
|
21
51
|
padding: token('space.100'),
|
|
@@ -26,7 +56,14 @@ export const PreviewItem = styled.li({
|
|
|
26
56
|
});
|
|
27
57
|
|
|
28
58
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
29
|
-
export const Code
|
|
59
|
+
export const Code: StyledComponent<
|
|
60
|
+
{
|
|
61
|
+
theme?: Theme;
|
|
62
|
+
as?: React.ElementType;
|
|
63
|
+
},
|
|
64
|
+
DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>,
|
|
65
|
+
{}
|
|
66
|
+
> = styled.code({
|
|
30
67
|
padding: token('space.050'),
|
|
31
68
|
borderRadius: token('space.050'),
|
|
32
69
|
backgroundColor: token('color.background.inverse.subtle'),
|
|
@@ -35,7 +72,14 @@ export const Code = styled.code({
|
|
|
35
72
|
});
|
|
36
73
|
|
|
37
74
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
38
|
-
export const CloseButton
|
|
75
|
+
export const CloseButton: StyledComponent<
|
|
76
|
+
{
|
|
77
|
+
theme?: Theme;
|
|
78
|
+
as?: React.ElementType;
|
|
79
|
+
},
|
|
80
|
+
DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>,
|
|
81
|
+
{}
|
|
82
|
+
> = styled.button({
|
|
39
83
|
position: 'absolute',
|
|
40
84
|
top: token('space.050'),
|
|
41
85
|
right: token('space.050'),
|
|
@@ -43,31 +87,66 @@ export const CloseButton = styled.button({
|
|
|
43
87
|
});
|
|
44
88
|
|
|
45
89
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
46
|
-
export const PreviewImageContainer
|
|
90
|
+
export const PreviewImageContainer: StyledComponent<
|
|
91
|
+
{
|
|
92
|
+
theme?: Theme;
|
|
93
|
+
as?: React.ElementType;
|
|
94
|
+
},
|
|
95
|
+
DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
96
|
+
{}
|
|
97
|
+
> = styled.div({
|
|
47
98
|
marginTop: token('space.100'),
|
|
48
99
|
marginBottom: token('space.100'),
|
|
49
100
|
});
|
|
50
101
|
|
|
51
102
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
52
|
-
export const OrientationSelectWrapper
|
|
103
|
+
export const OrientationSelectWrapper: StyledComponent<
|
|
104
|
+
{
|
|
105
|
+
theme?: Theme;
|
|
106
|
+
as?: React.ElementType;
|
|
107
|
+
},
|
|
108
|
+
DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>,
|
|
109
|
+
{}
|
|
110
|
+
> = styled.label({
|
|
53
111
|
marginBottom: token('space.250'),
|
|
54
112
|
display: 'block',
|
|
55
113
|
});
|
|
56
114
|
|
|
57
115
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
58
|
-
export const TimeRangeWrapper
|
|
116
|
+
export const TimeRangeWrapper: StyledComponent<
|
|
117
|
+
{
|
|
118
|
+
theme?: Theme;
|
|
119
|
+
as?: React.ElementType;
|
|
120
|
+
},
|
|
121
|
+
DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
122
|
+
{}
|
|
123
|
+
> = styled.div({
|
|
59
124
|
marginTop: token('space.500'),
|
|
60
125
|
});
|
|
61
126
|
|
|
62
127
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
63
|
-
export const Container
|
|
128
|
+
export const Container: StyledComponent<
|
|
129
|
+
{
|
|
130
|
+
theme?: Theme;
|
|
131
|
+
as?: React.ElementType;
|
|
132
|
+
},
|
|
133
|
+
DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
134
|
+
{}
|
|
135
|
+
> = styled.div({
|
|
64
136
|
display: 'flex',
|
|
65
137
|
flexDirection: 'row',
|
|
66
138
|
flexWrap: 'wrap',
|
|
67
139
|
});
|
|
68
140
|
|
|
69
141
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
70
|
-
export const Group
|
|
142
|
+
export const Group: StyledComponent<
|
|
143
|
+
{
|
|
144
|
+
theme?: Theme;
|
|
145
|
+
as?: React.ElementType;
|
|
146
|
+
},
|
|
147
|
+
DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
148
|
+
{}
|
|
149
|
+
> = styled.div({
|
|
71
150
|
width: '250px',
|
|
72
151
|
padding: token('space.250'),
|
|
73
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.41",
|
|
4
4
|
"description": "Includes common components and utilities used by other media packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,7 +37,7 @@
|
|
|
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
|
-
"@atlaskit/modal-dialog": "^14.
|
|
40
|
+
"@atlaskit/modal-dialog": "^14.15.0",
|
|
41
41
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
42
42
|
"@atlaskit/primitives": "^18.1.0",
|
|
43
43
|
"@atlaskit/range": "^10.0.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
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": "^12.0.0",
|
|
49
49
|
"@atlaskit/tooltip": "^21.1.0",
|
|
50
50
|
"@atlaskit/width-detector": "^5.0.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|