@atlaskit/media-ui 28.7.38 → 28.7.40
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 +12 -0
- 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/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/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/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 +3 -2
- package/dist/types/inactivityDetector/styled-compiled.d.ts +2 -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 +3 -2
- package/dist/types-ts4.5/inactivityDetector/styled-compiled.d.ts +2 -1
- package/example-helpers/styled.ts +44 -11
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -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;
|
|
@@ -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()
|
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;
|
|
@@ -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 = {
|
|
@@ -10,7 +11,7 @@ export declare const useTextTracks: ({ fileState, collectionName, type }: UseTex
|
|
|
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 {};
|
|
@@ -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,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 = {
|
|
@@ -10,7 +11,7 @@ export declare const useTextTracks: ({ fileState, collectionName, type }: UseTex
|
|
|
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 {};
|
|
@@ -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,21 +1,33 @@
|
|
|
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 { DetailedHTMLProps, HTMLAttributes, LiHTMLAttributes, ButtonHTMLAttributes, LabelHTMLAttributes } from 'react';
|
|
4
7
|
|
|
5
8
|
// 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
|
|
9
|
+
export const InputWrapper: StyledComponent<{
|
|
10
|
+
theme?: Theme;
|
|
11
|
+
as?: React.ElementType;
|
|
12
|
+
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}> = styled.div({
|
|
7
13
|
margin: `${token('space.250')} 0`,
|
|
8
14
|
});
|
|
9
15
|
|
|
10
16
|
// 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
|
|
17
|
+
export const PreviewList: StyledComponent<{
|
|
18
|
+
theme?: Theme;
|
|
19
|
+
as?: React.ElementType;
|
|
20
|
+
}, DetailedHTMLProps<HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}> = styled.ul({
|
|
12
21
|
margin: 0,
|
|
13
22
|
padding: 0,
|
|
14
23
|
listStyleType: 'none',
|
|
15
24
|
});
|
|
16
25
|
|
|
17
26
|
// 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
|
|
27
|
+
export const PreviewItem: StyledComponent<{
|
|
28
|
+
theme?: Theme;
|
|
29
|
+
as?: React.ElementType;
|
|
30
|
+
}, DetailedHTMLProps<LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}> = styled.li({
|
|
19
31
|
borderRadius: token('space.100'),
|
|
20
32
|
border: `${token('border.width', '1px')} solid ${token('color.border')}`,
|
|
21
33
|
padding: token('space.100'),
|
|
@@ -26,7 +38,10 @@ export const PreviewItem = styled.li({
|
|
|
26
38
|
});
|
|
27
39
|
|
|
28
40
|
// 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
|
|
41
|
+
export const Code: StyledComponent<{
|
|
42
|
+
theme?: Theme;
|
|
43
|
+
as?: React.ElementType;
|
|
44
|
+
}, DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, {}> = styled.code({
|
|
30
45
|
padding: token('space.050'),
|
|
31
46
|
borderRadius: token('space.050'),
|
|
32
47
|
backgroundColor: token('color.background.inverse.subtle'),
|
|
@@ -35,7 +50,10 @@ export const Code = styled.code({
|
|
|
35
50
|
});
|
|
36
51
|
|
|
37
52
|
// 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
|
|
53
|
+
export const CloseButton: StyledComponent<{
|
|
54
|
+
theme?: Theme;
|
|
55
|
+
as?: React.ElementType;
|
|
56
|
+
}, DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}> = styled.button({
|
|
39
57
|
position: 'absolute',
|
|
40
58
|
top: token('space.050'),
|
|
41
59
|
right: token('space.050'),
|
|
@@ -43,31 +61,46 @@ export const CloseButton = styled.button({
|
|
|
43
61
|
});
|
|
44
62
|
|
|
45
63
|
// 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
|
|
64
|
+
export const PreviewImageContainer: StyledComponent<{
|
|
65
|
+
theme?: Theme;
|
|
66
|
+
as?: React.ElementType;
|
|
67
|
+
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}> = styled.div({
|
|
47
68
|
marginTop: token('space.100'),
|
|
48
69
|
marginBottom: token('space.100'),
|
|
49
70
|
});
|
|
50
71
|
|
|
51
72
|
// 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
|
|
73
|
+
export const OrientationSelectWrapper: StyledComponent<{
|
|
74
|
+
theme?: Theme;
|
|
75
|
+
as?: React.ElementType;
|
|
76
|
+
}, DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}> = styled.label({
|
|
53
77
|
marginBottom: token('space.250'),
|
|
54
78
|
display: 'block',
|
|
55
79
|
});
|
|
56
80
|
|
|
57
81
|
// 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
|
|
82
|
+
export const TimeRangeWrapper: StyledComponent<{
|
|
83
|
+
theme?: Theme;
|
|
84
|
+
as?: React.ElementType;
|
|
85
|
+
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}> = styled.div({
|
|
59
86
|
marginTop: token('space.500'),
|
|
60
87
|
});
|
|
61
88
|
|
|
62
89
|
// 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
|
|
90
|
+
export const Container: StyledComponent<{
|
|
91
|
+
theme?: Theme;
|
|
92
|
+
as?: React.ElementType;
|
|
93
|
+
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}> = styled.div({
|
|
64
94
|
display: 'flex',
|
|
65
95
|
flexDirection: 'row',
|
|
66
96
|
flexWrap: 'wrap',
|
|
67
97
|
});
|
|
68
98
|
|
|
69
99
|
// 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
|
|
100
|
+
export const Group: StyledComponent<{
|
|
101
|
+
theme?: Theme;
|
|
102
|
+
as?: React.ElementType;
|
|
103
|
+
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}> = styled.div({
|
|
71
104
|
width: '250px',
|
|
72
105
|
padding: token('space.250'),
|
|
73
106
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-ui",
|
|
3
|
-
"version": "28.7.
|
|
3
|
+
"version": "28.7.40",
|
|
4
4
|
"description": "Includes common components and utilities used by other media packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@atlaskit/afm-i18n-platform-media-media-ui": "2.7.0",
|
|
27
27
|
"@atlaskit/analytics-next": "^11.2.0",
|
|
28
|
-
"@atlaskit/button": "^23.
|
|
28
|
+
"@atlaskit/button": "^23.11.0",
|
|
29
29
|
"@atlaskit/code": "^17.4.0",
|
|
30
30
|
"@atlaskit/css": "^0.19.0",
|
|
31
31
|
"@atlaskit/flag": "^17.9.0",
|
|
@@ -37,15 +37,15 @@
|
|
|
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",
|
|
44
|
-
"@atlaskit/react-ufo": "^5.
|
|
44
|
+
"@atlaskit/react-ufo": "^5.12.0",
|
|
45
45
|
"@atlaskit/select": "^21.10.0",
|
|
46
|
-
"@atlaskit/spinner": "^19.
|
|
47
|
-
"@atlaskit/theme": "^
|
|
48
|
-
"@atlaskit/tokens": "^
|
|
46
|
+
"@atlaskit/spinner": "^19.1.0",
|
|
47
|
+
"@atlaskit/theme": "^23.0.0",
|
|
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",
|