@atlaskit/media-ui 29.3.1 → 30.0.1
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/AGENTS.md +56 -0
- package/CHANGELOG.md +35 -0
- package/ErroredView/package.json +1 -8
- package/LoadedView/package.json +1 -8
- package/LoadingView/package.json +1 -8
- package/MediaButton/package.json +1 -8
- package/abuseModal/package.json +1 -8
- package/browser/package.json +1 -8
- package/camera/package.json +1 -8
- package/classNames/package.json +1 -8
- package/codeViewer/package.json +1 -8
- package/customMediaPlayer/package.json +1 -8
- package/dist/cjs/customMediaPlayer/dropdownControlCommon.js +57 -2
- package/dist/cjs/customMediaPlayer/index.js +1 -1
- package/dist/cjs/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/languageDetector.js +2 -2
- package/dist/cjs/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.js +17 -17
- package/dist/cjs/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploader.js +13 -13
- package/dist/cjs/customMediaPlayer/mediaPlayer/captions/captionDeleteConfirmationModal.js +13 -13
- package/dist/cjs/customMediaPlayer/mediaPlayer/captionsAdminControls.js +5 -2
- package/dist/cjs/customMediaPlayer/mediaPlayer/captionsSelectControls.js +5 -2
- package/dist/cjs/customMediaPlayer/mediaPlayer/mediaPlayer.js +1 -1
- package/dist/cjs/customMediaPlayer/mediaPlayer/mediaPlayerBase.js +23 -16
- package/dist/cjs/customMediaPlayer/mediaPlayer/testHelpers/_MockedMediaProvider.js +1 -1
- package/dist/cjs/customMediaPlayer/playbackSpeedControls.js +5 -2
- package/dist/cjs/imageMetaData/index.js +24 -24
- package/dist/cjs/imageMetaData/metatags.js +17 -17
- package/dist/cjs/imageMetaData/parseJPEG.js +6 -6
- package/dist/cjs/imageMetaData/parsePNG.js +20 -20
- package/dist/cjs/test-helpers/index.js +0 -19
- package/dist/cjs/util.js +28 -26
- package/dist/es2019/customMediaPlayer/dropdownControlCommon.js +57 -1
- package/dist/es2019/customMediaPlayer/index.js +1 -1
- package/dist/es2019/customMediaPlayer/mediaPlayer/captionsAdminControls.js +5 -4
- package/dist/es2019/customMediaPlayer/mediaPlayer/captionsSelectControls.js +5 -3
- package/dist/es2019/customMediaPlayer/mediaPlayer/mediaPlayer.js +1 -1
- package/dist/es2019/customMediaPlayer/mediaPlayer/mediaPlayerBase.js +13 -5
- package/dist/es2019/customMediaPlayer/playbackSpeedControls.js +5 -3
- package/dist/es2019/test-helpers/index.js +0 -1
- package/dist/esm/customMediaPlayer/dropdownControlCommon.js +56 -1
- package/dist/esm/customMediaPlayer/index.js +1 -1
- package/dist/esm/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/languageDetector.js +2 -2
- package/dist/esm/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.js +17 -17
- package/dist/esm/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploader.js +13 -13
- package/dist/esm/customMediaPlayer/mediaPlayer/captions/captionDeleteConfirmationModal.js +12 -12
- package/dist/esm/customMediaPlayer/mediaPlayer/captionsAdminControls.js +6 -4
- package/dist/esm/customMediaPlayer/mediaPlayer/captionsSelectControls.js +6 -3
- package/dist/esm/customMediaPlayer/mediaPlayer/mediaPlayer.js +1 -1
- package/dist/esm/customMediaPlayer/mediaPlayer/mediaPlayerBase.js +23 -16
- package/dist/esm/customMediaPlayer/mediaPlayer/testHelpers/_MockedMediaProvider.js +1 -1
- package/dist/esm/customMediaPlayer/playbackSpeedControls.js +6 -3
- package/dist/esm/imageMetaData/index.js +24 -24
- package/dist/esm/imageMetaData/metatags.js +17 -17
- package/dist/esm/imageMetaData/parseJPEG.js +6 -6
- package/dist/esm/imageMetaData/parsePNG.js +20 -20
- package/dist/esm/test-helpers/index.js +0 -1
- package/dist/esm/util.js +28 -26
- package/dist/types/customMediaPlayer/dropdownControlCommon.d.ts +6 -0
- package/dist/types/customMediaPlayer/mediaPlayer/captionsAdminControls.d.ts +2 -1
- package/dist/types/customMediaPlayer/mediaPlayer/captionsSelectControls.d.ts +1 -0
- package/dist/types/customMediaPlayer/playbackSpeedControls.d.ts +1 -0
- package/dist/types/test-helpers/index.d.ts +0 -1
- package/ellipsify/compiled/package.json +1 -8
- package/ellipsify/package.json +1 -8
- package/errorIcon/package.json +1 -8
- package/formatDate/package.json +1 -8
- package/formatDuration/package.json +1 -8
- package/humanReadableSize/package.json +1 -8
- package/imageMetaData/package.json +1 -8
- package/imageMetaData/types/package.json +1 -8
- package/imageOrientationUtil/package.json +1 -8
- package/inactivityDetector/package.json +1 -8
- package/intersectionObserver/package.json +1 -8
- package/locales/package.json +1 -8
- package/media-type-icon/compiled/package.json +1 -8
- package/media-type-icon/package.json +1 -8
- package/mediaImage/package.json +1 -8
- package/mediaPlayer/package.json +1 -8
- package/mediaPlayer/types/package.json +1 -8
- package/messages/package.json +1 -8
- package/mime-type-icon/package.json +1 -8
- package/mixins/package.json +1 -8
- package/modalSpinner/package.json +1 -8
- package/package.json +36 -39
- package/shortcut/package.json +1 -8
- package/timeRange/package.json +1 -8
- package/truncateText/compiled/package.json +1 -8
- package/truncateText/package.json +1 -8
- package/types/package.json +1 -8
- package/util/package.json +1 -8
- package/dist/cjs/test-helpers/mountWithIntlContext.js +0 -70
- package/dist/es2019/test-helpers/mountWithIntlContext.js +0 -59
- package/dist/esm/test-helpers/mountWithIntlContext.js +0 -64
- package/dist/types/test-helpers/mountWithIntlContext.d.ts +0 -12
- package/dist/types-ts4.5/MediaButton.d.ts +0 -15
- package/dist/types-ts4.5/MediaInlineCard/ErroredView/index.d.ts +0 -16
- package/dist/types-ts4.5/MediaInlineCard/Frame/index.d.ts +0 -18
- package/dist/types-ts4.5/MediaInlineCard/Frame/styled-compiled.d.ts +0 -10
- package/dist/types-ts4.5/MediaInlineCard/Frame/styled.d.ts +0 -4
- package/dist/types-ts4.5/MediaInlineCard/Icon-compiled.d.ts +0 -2
- package/dist/types-ts4.5/MediaInlineCard/Icon.d.ts +0 -3
- package/dist/types-ts4.5/MediaInlineCard/IconAndTitleLayout/index.d.ts +0 -17
- package/dist/types-ts4.5/MediaInlineCard/IconAndTitleLayout/styled-compiled.d.ts +0 -8
- package/dist/types-ts4.5/MediaInlineCard/IconAndTitleLayout/styled.d.ts +0 -9
- package/dist/types-ts4.5/MediaInlineCard/LoadedView/index.d.ts +0 -19
- package/dist/types-ts4.5/MediaInlineCard/LoadingView/index.d.ts +0 -18
- package/dist/types-ts4.5/MediaInlineCard/LoadingView/styled-compiled.d.ts +0 -1
- package/dist/types-ts4.5/MediaInlineCard/LoadingView/styled.d.ts +0 -2
- package/dist/types-ts4.5/MediaInlineCard/index.d.ts +0 -6
- package/dist/types-ts4.5/abuseModal/abuseModal.d.ts +0 -10
- package/dist/types-ts4.5/abuseModal/index.d.ts +0 -4
- package/dist/types-ts4.5/browser.d.ts +0 -6
- package/dist/types-ts4.5/camera.d.ts +0 -62
- package/dist/types-ts4.5/classNames.d.ts +0 -1
- package/dist/types-ts4.5/codeViewer.d.ts +0 -8
- package/dist/types-ts4.5/customMediaPlayer/analytics/events/operational/captions.d.ts +0 -36
- package/dist/types-ts4.5/customMediaPlayer/analytics/events/screen/customMediaPlayer.d.ts +0 -5
- package/dist/types-ts4.5/customMediaPlayer/analytics/events/track/playCount.d.ts +0 -5
- package/dist/types-ts4.5/customMediaPlayer/analytics/events/track/played.d.ts +0 -5
- package/dist/types-ts4.5/customMediaPlayer/analytics/events/ui/mediaButtonClicked.d.ts +0 -5
- package/dist/types-ts4.5/customMediaPlayer/analytics/events/ui/playPauseBlanketClicked.d.ts +0 -5
- package/dist/types-ts4.5/customMediaPlayer/analytics/events/ui/playbackSpeedChanged.d.ts +0 -5
- package/dist/types-ts4.5/customMediaPlayer/analytics/events/ui/shortcutPressed.d.ts +0 -5
- package/dist/types-ts4.5/customMediaPlayer/analytics/events/ui/timeRangeNavigated.d.ts +0 -5
- package/dist/types-ts4.5/customMediaPlayer/analytics/index.d.ts +0 -12
- package/dist/types-ts4.5/customMediaPlayer/analytics/utils/analytics.d.ts +0 -19
- package/dist/types-ts4.5/customMediaPlayer/analytics/utils/playbackAttributes.d.ts +0 -24
- package/dist/types-ts4.5/customMediaPlayer/dropdownControlCommon.d.ts +0 -9
- package/dist/types-ts4.5/customMediaPlayer/fullscreen.d.ts +0 -5
- package/dist/types-ts4.5/customMediaPlayer/getControlsWrapperClassName.d.ts +0 -1
- package/dist/types-ts4.5/customMediaPlayer/index-compiled.d.ts +0 -78
- package/dist/types-ts4.5/customMediaPlayer/index.d.ts +0 -8
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/apiFeedback.d.ts +0 -13
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/index.d.ts +0 -2
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/languageDetector.d.ts +0 -1
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.d.ts +0 -12
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploader.d.ts +0 -3
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/util.d.ts +0 -1
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/artifactUploader/captionsUploaderBrowser.d.ts +0 -17
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/artifactUploader/filePickers/browser.d.ts +0 -9
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/artifactUploader/index.d.ts +0 -2
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/artifactUploader/types.d.ts +0 -12
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/captionDeleteConfirmationModal.d.ts +0 -16
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/formatLocale.d.ts +0 -1
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/index.d.ts +0 -3
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/selectTracks.d.ts +0 -2
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/userPreferences.d.ts +0 -5
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captionsAdminControls.d.ts +0 -12
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captionsSelectControls.d.ts +0 -13
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/index.d.ts +0 -2
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/mediaPlayer.d.ts +0 -4
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/mediaPlayerBase.d.ts +0 -23
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/testHelpers/_MockedMediaProvider.d.ts +0 -46
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/testHelpers/_helpers.d.ts +0 -2
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/types.d.ts +0 -36
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/useTextTracks.d.ts +0 -17
- package/dist/types-ts4.5/customMediaPlayer/playPauseBlanket-compiled.d.ts +0 -6
- package/dist/types-ts4.5/customMediaPlayer/playPauseBlanket.d.ts +0 -2
- package/dist/types-ts4.5/customMediaPlayer/playbackSpeedControls.d.ts +0 -23
- package/dist/types-ts4.5/customMediaPlayer/react-video-renderer/index.d.ts +0 -3
- package/dist/types-ts4.5/customMediaPlayer/react-video-renderer/text.d.ts +0 -20
- package/dist/types-ts4.5/customMediaPlayer/react-video-renderer/track.d.ts +0 -10
- package/dist/types-ts4.5/customMediaPlayer/react-video-renderer/utils.d.ts +0 -1
- package/dist/types-ts4.5/customMediaPlayer/react-video-renderer/video.d.ts +0 -107
- package/dist/types-ts4.5/customMediaPlayer/simultaneousPlayManager.d.ts +0 -9
- package/dist/types-ts4.5/customMediaPlayer/styled-compiled.d.ts +0 -35
- package/dist/types-ts4.5/customMediaPlayer/styled.d.ts +0 -15
- package/dist/types-ts4.5/customMediaPlayer/timeRange.d.ts +0 -44
- package/dist/types-ts4.5/customMediaPlayer/timeSaver.d.ts +0 -14
- package/dist/types-ts4.5/customMediaPlayer/types.d.ts +0 -4
- package/dist/types-ts4.5/customMediaPlayer/volumeRange.d.ts +0 -10
- package/dist/types-ts4.5/ellipsify-compiled.d.ts +0 -9
- package/dist/types-ts4.5/ellipsify.d.ts +0 -4
- package/dist/types-ts4.5/errorIcon.d.ts +0 -2
- package/dist/types-ts4.5/formatDate.d.ts +0 -11
- package/dist/types-ts4.5/formatDuration.d.ts +0 -7
- package/dist/types-ts4.5/humanReadableSize.d.ts +0 -4
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -8
- package/dist/types-ts4.5/i18n/da.d.ts +0 -8
- package/dist/types-ts4.5/i18n/de.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -8
- package/dist/types-ts4.5/i18n/es.d.ts +0 -8
- package/dist/types-ts4.5/i18n/et.d.ts +0 -94
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -8
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/hr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -8
- package/dist/types-ts4.5/i18n/index.d.ts +0 -37
- package/dist/types-ts4.5/i18n/is.d.ts +0 -70
- package/dist/types-ts4.5/i18n/it.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -8
- package/dist/types-ts4.5/i18n/languages.d.ts +0 -28
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -8
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -8
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +0 -94
- package/dist/types-ts4.5/i18n/ro.d.ts +0 -70
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sk.d.ts +0 -94
- package/dist/types-ts4.5/i18n/sl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sr_RS.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sr_YR.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -8
- package/dist/types-ts4.5/i18n/th.d.ts +0 -8
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -8
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -8
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -8
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -8
- package/dist/types-ts4.5/imageMetaData/imageOrientationUtil.d.ts +0 -5
- package/dist/types-ts4.5/imageMetaData/index.d.ts +0 -10
- package/dist/types-ts4.5/imageMetaData/metatags.d.ts +0 -2
- package/dist/types-ts4.5/imageMetaData/parseJPEG.d.ts +0 -2
- package/dist/types-ts4.5/imageMetaData/parsePNG.d.ts +0 -3
- package/dist/types-ts4.5/imageMetaData/parsePNGXMP.d.ts +0 -2
- package/dist/types-ts4.5/imageMetaData/types.d.ts +0 -46
- package/dist/types-ts4.5/inactivityDetector/inactivityDetector.d.ts +0 -25
- package/dist/types-ts4.5/inactivityDetector/styled-compiled.d.ts +0 -5
- package/dist/types-ts4.5/inactivityDetector/styled.d.ts +0 -4
- package/dist/types-ts4.5/index.d.ts +0 -37
- package/dist/types-ts4.5/intersectionObserver.d.ts +0 -1
- package/dist/types-ts4.5/locales.d.ts +0 -4
- package/dist/types-ts4.5/media-type-icon-compiled.d.ts +0 -19
- package/dist/types-ts4.5/media-type-icon.d.ts +0 -6
- package/dist/types-ts4.5/mediaImage/index.d.ts +0 -22
- package/dist/types-ts4.5/mediaImage/styled.d.ts +0 -6
- package/dist/types-ts4.5/messages.d.ts +0 -8
- package/dist/types-ts4.5/mime-type-icon.d.ts +0 -10
- package/dist/types-ts4.5/mixins.d.ts +0 -7
- package/dist/types-ts4.5/modalSpinner-compiled.d.ts +0 -6
- package/dist/types-ts4.5/modalSpinner.d.ts +0 -3
- package/dist/types-ts4.5/shortcut.d.ts +0 -25
- package/dist/types-ts4.5/test-helpers/MockGlobalImage.d.ts +0 -2
- package/dist/types-ts4.5/test-helpers/atlassianLogoUrl.d.ts +0 -1
- package/dist/types-ts4.5/test-helpers/fakeI18n.d.ts +0 -1
- package/dist/types-ts4.5/test-helpers/fileReader.d.ts +0 -19
- package/dist/types-ts4.5/test-helpers/index.d.ts +0 -6
- package/dist/types-ts4.5/test-helpers/mountWithIntlContext.d.ts +0 -12
- package/dist/types-ts4.5/test-helpers/renderWithIntl.d.ts +0 -3
- package/dist/types-ts4.5/truncateText-compiled.d.ts +0 -20
- package/dist/types-ts4.5/truncateText.d.ts +0 -7
- package/dist/types-ts4.5/types.d.ts +0 -16
- package/dist/types-ts4.5/util.d.ts +0 -23
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const IconWrapper: ({ children, ...props }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => JSX.Element;
|
|
2
|
-
export declare const EmojiWrapper: ({ children, ...props }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => JSX.Element;
|
|
3
|
-
export declare const IconTitleWrapper: ({ children, ...props }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => JSX.Element;
|
|
4
|
-
export declare const LozengeWrapper: ({ children, ...props }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => JSX.Element;
|
|
5
|
-
export declare const LozengeBlockWrapper: ({ children, ...props }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => JSX.Element;
|
|
6
|
-
export declare const RightIconPositionWrapper: ({ children, ...props }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => JSX.Element;
|
|
7
|
-
export declare const IconPositionWrapper: ({ children, ...props }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => JSX.Element;
|
|
8
|
-
export declare const IconEmptyWrapper: ({ children, ...props }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const IconWrapper: (props: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => React.JSX.Element;
|
|
3
|
-
export declare const EmojiWrapper: (props: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => React.JSX.Element;
|
|
4
|
-
export declare const IconTitleWrapper: (props: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => React.JSX.Element;
|
|
5
|
-
export declare const LozengeWrapper: (props: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => React.JSX.Element;
|
|
6
|
-
export declare const LozengeBlockWrapper: (props: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => React.JSX.Element;
|
|
7
|
-
export declare const RightIconPositionWrapper: (props: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => React.JSX.Element;
|
|
8
|
-
export declare const IconPositionWrapper: (props: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => React.JSX.Element;
|
|
9
|
-
export declare const IconEmptyWrapper: (props: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => React.JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface MediaInlineCardLoadedViewProps {
|
|
3
|
-
/** The optional con of the service (e.g. Dropbox/Asana/Google/etc) to display */
|
|
4
|
-
icon?: React.ReactNode;
|
|
5
|
-
/** The name of the resource */
|
|
6
|
-
title?: string;
|
|
7
|
-
/** A flag that determines whether the card is selected in edit mode. */
|
|
8
|
-
isSelected?: boolean;
|
|
9
|
-
/** The optional click handler */
|
|
10
|
-
onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
|
|
11
|
-
/** A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests */
|
|
12
|
-
testId?: string;
|
|
13
|
-
/** The Emoji icon prefix that was added to the title text via Add emoji button */
|
|
14
|
-
titlePrefix?: React.ReactNode;
|
|
15
|
-
innerRef?: React.Ref<HTMLSpanElement>;
|
|
16
|
-
}
|
|
17
|
-
export declare class MediaInlineCardLoadedView extends React.Component<MediaInlineCardLoadedViewProps> {
|
|
18
|
-
render(): React.JSX.Element;
|
|
19
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type InlinePreloaderStyle } from '../../types';
|
|
3
|
-
export interface MediaInlineCardLoadingViewProps {
|
|
4
|
-
/** The file name to display */
|
|
5
|
-
message: string;
|
|
6
|
-
inlinePreloaderStyle?: InlinePreloaderStyle;
|
|
7
|
-
/** The optional click handler */
|
|
8
|
-
onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
|
|
9
|
-
/** A flag that determines whether the card is selected in edit mode. */
|
|
10
|
-
isSelected?: boolean;
|
|
11
|
-
/** A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests */
|
|
12
|
-
testId?: string;
|
|
13
|
-
innerRef?: React.Ref<HTMLSpanElement>;
|
|
14
|
-
withoutHover?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare class MediaInlineCardLoadingView extends React.Component<MediaInlineCardLoadingViewProps> {
|
|
17
|
-
render(): React.JSX.Element;
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SpinnerWrapper: ({ children, ...props }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { MediaInlineCardLoadingView } from './LoadingView';
|
|
2
|
-
export type { MediaInlineCardLoadingViewProps } from './LoadingView';
|
|
3
|
-
export { MediaInlineCardLoadedView } from './LoadedView';
|
|
4
|
-
export type { MediaInlineCardLoadedViewProps } from './LoadedView';
|
|
5
|
-
export { MediaInlineCardErroredView } from './ErroredView';
|
|
6
|
-
export type { MediaInlineCardErroredViewProps } from './ErroredView';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl';
|
|
3
|
-
export type AbuseModalProps = {
|
|
4
|
-
isOpen: boolean;
|
|
5
|
-
onConfirm: () => void;
|
|
6
|
-
onClose: () => void;
|
|
7
|
-
};
|
|
8
|
-
export declare const AbuseModal: React.FC<WithIntlProps<AbuseModalProps & WrappedComponentProps>> & {
|
|
9
|
-
WrappedComponent: React.ComponentType<AbuseModalProps & WrappedComponentProps>;
|
|
10
|
-
};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
export declare class Vector2 {
|
|
2
|
-
readonly x: number;
|
|
3
|
-
readonly y: number;
|
|
4
|
-
constructor(x: number, y: number);
|
|
5
|
-
add({ x: thatX, y: thatY }: Vector2): Vector2;
|
|
6
|
-
sub({ x: thatX, y: thatY }: Vector2): Vector2;
|
|
7
|
-
scaled(scalar: number): Vector2;
|
|
8
|
-
map(fn: (component: number) => number): Vector2;
|
|
9
|
-
clone(): Vector2;
|
|
10
|
-
rounded(): Vector2;
|
|
11
|
-
toString(): string;
|
|
12
|
-
}
|
|
13
|
-
export declare class Rectangle {
|
|
14
|
-
readonly width: number;
|
|
15
|
-
readonly height: number;
|
|
16
|
-
constructor(width: number, height: number);
|
|
17
|
-
get aspectRatio(): number;
|
|
18
|
-
get center(): Vector2;
|
|
19
|
-
scaled(scale: number): Rectangle;
|
|
20
|
-
resized(width: number, height: number): Rectangle;
|
|
21
|
-
flipped(): Rectangle;
|
|
22
|
-
scaleToFit(containing: Rectangle): number;
|
|
23
|
-
scaleToFitLargestSide(containing: Rectangle): number;
|
|
24
|
-
scaleToFitSmallestSide(containing: Rectangle): number;
|
|
25
|
-
clone(): Rectangle;
|
|
26
|
-
}
|
|
27
|
-
export declare class Bounds extends Rectangle {
|
|
28
|
-
readonly x: number;
|
|
29
|
-
readonly y: number;
|
|
30
|
-
readonly width: number;
|
|
31
|
-
readonly height: number;
|
|
32
|
-
constructor(x: number, y: number, width: number, height: number);
|
|
33
|
-
get origin(): Vector2;
|
|
34
|
-
get corner(): Vector2;
|
|
35
|
-
get center(): Vector2;
|
|
36
|
-
get rect(): Rectangle;
|
|
37
|
-
get left(): number;
|
|
38
|
-
get top(): number;
|
|
39
|
-
get right(): number;
|
|
40
|
-
get bottom(): number;
|
|
41
|
-
flipped(): Bounds;
|
|
42
|
-
scaled(scale: number): Bounds;
|
|
43
|
-
relativeTo(bounds: Bounds): Bounds;
|
|
44
|
-
clone(): Bounds;
|
|
45
|
-
map(fn: (value: number) => number): Bounds;
|
|
46
|
-
hFlipWithin(containerBounds: Bounds): Bounds;
|
|
47
|
-
vFlipWithin(containerBounds: Bounds): Bounds;
|
|
48
|
-
rotate90DegWithin(containerBounds: Bounds): Bounds;
|
|
49
|
-
translated(xDelta: number, yDelta: number): Bounds;
|
|
50
|
-
equals(bounds: Bounds): boolean;
|
|
51
|
-
}
|
|
52
|
-
export declare class Camera {
|
|
53
|
-
readonly viewport: Rectangle;
|
|
54
|
-
readonly originalImg: Rectangle;
|
|
55
|
-
constructor(viewport: Rectangle, originalImg: Rectangle);
|
|
56
|
-
resizedViewport(newViewport: Rectangle): Camera;
|
|
57
|
-
get scaleToFit(): number;
|
|
58
|
-
get scaleDownToFit(): number;
|
|
59
|
-
get fittedImg(): Rectangle;
|
|
60
|
-
scaledImg(newScale: number): Rectangle;
|
|
61
|
-
scaledOffset(prevOffset: Vector2, prevScale: number, newScale: number): Vector2;
|
|
62
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const hideControlsClassName = "mvng-hide-controls";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { SupportedLanguages } from '@atlaskit/code/types';
|
|
2
|
-
/**
|
|
3
|
-
* Given an item, it grabs the file name of that item. For example, an item with the filename item.txt
|
|
4
|
-
* would return the extension txt
|
|
5
|
-
*/
|
|
6
|
-
export declare function getExtension(filename: string): string;
|
|
7
|
-
export declare function isCodeViewerItem(name: string, mimetype?: string): boolean;
|
|
8
|
-
export declare function getLanguageType(name: string, mimetype?: string): SupportedLanguages | null;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { type OperationalEventPayload, type OperationalAttributes, type WithTraceContext, type MediaTraceContext } from '@atlaskit/media-common';
|
|
2
|
-
import type { CustomMediaPlayerType, WithCustomMediaPlayerType } from '../../../types';
|
|
3
|
-
import { type RequestMetadata } from '@atlaskit/media-client';
|
|
4
|
-
export type CaptionAttributes = {
|
|
5
|
-
selectedTrackIndex: number;
|
|
6
|
-
availableCaptionTracks: number;
|
|
7
|
-
selectedTrackLanguage: string | null;
|
|
8
|
-
artifactName?: string;
|
|
9
|
-
};
|
|
10
|
-
export type WithErrorAttributes = {
|
|
11
|
-
failReason: 'upload-fail' | 'delete-fail' | 'fetch-fail' | 'render-fail' | 'unknown';
|
|
12
|
-
error: string;
|
|
13
|
-
errorDetail: string;
|
|
14
|
-
request?: RequestMetadata;
|
|
15
|
-
};
|
|
16
|
-
export type WithCaptionAttributes = {
|
|
17
|
-
captionAttributes: CaptionAttributes;
|
|
18
|
-
};
|
|
19
|
-
export declare function generateBaseAttributes(type: CustomMediaPlayerType, captionAttributes: CaptionAttributes, fileId?: string, traceContext?: MediaTraceContext): {
|
|
20
|
-
traceContext: MediaTraceContext | undefined;
|
|
21
|
-
fileAttributes?: {
|
|
22
|
-
fileId: string;
|
|
23
|
-
} | undefined;
|
|
24
|
-
type: CustomMediaPlayerType;
|
|
25
|
-
captionAttributes: CaptionAttributes;
|
|
26
|
-
};
|
|
27
|
-
export type CaptionFailedEventAction = 'uploadFailed' | 'deleteFailed' | 'displayFailed';
|
|
28
|
-
export type CaptionFailedEventPayload = OperationalEventPayload<OperationalAttributes & WithCaptionAttributes & WithCustomMediaPlayerType & WithTraceContext & WithErrorAttributes, CaptionFailedEventAction, 'mediaPlayerCaption'>;
|
|
29
|
-
export type CaptionSucceededEventAction = 'uploadSucceeded' | 'deleteSucceeded' | 'displaySucceeded';
|
|
30
|
-
export type CaptionSucceededEventPayload = OperationalEventPayload<OperationalAttributes & WithCaptionAttributes & WithCustomMediaPlayerType & WithTraceContext, CaptionSucceededEventAction, 'mediaPlayerCaption'>;
|
|
31
|
-
export declare const createCaptionUploadFailedEventPayload: (type: CustomMediaPlayerType, captionAttributes: CaptionAttributes, fileId: string, error: Error, traceContext: MediaTraceContext) => CaptionFailedEventPayload;
|
|
32
|
-
export declare const createCaptionDeleteFailedEventPayload: (type: CustomMediaPlayerType, captionAttributes: CaptionAttributes, fileId: string, error: Error, traceContext: MediaTraceContext) => CaptionFailedEventPayload;
|
|
33
|
-
export declare const createCaptionDisplayFailedEventPayload: (type: CustomMediaPlayerType, failReason: WithErrorAttributes["failReason"], captionAttributes: CaptionAttributes, fileId: string, error: Error, traceContext?: MediaTraceContext) => CaptionFailedEventPayload;
|
|
34
|
-
export declare const createCaptionUploadSucceededEventPayload: (type: CustomMediaPlayerType, captionAttributes: CaptionAttributes, fileId: string, traceContext: MediaTraceContext) => CaptionSucceededEventPayload;
|
|
35
|
-
export declare const createCaptionDeleteSucceededEventPayload: (type: CustomMediaPlayerType, captionAttributes: CaptionAttributes, fileId: string, traceContext: MediaTraceContext) => CaptionSucceededEventPayload;
|
|
36
|
-
export declare const createCaptionDisplaySucceededEventPayload: (type: CustomMediaPlayerType, captionAttributes: CaptionAttributes, fileId: string, traceContext?: MediaTraceContext) => CaptionSucceededEventPayload;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type ScreenAttributes, type ScreenEventPayload } from '@atlaskit/media-common';
|
|
2
|
-
import { type PlaybackState, type WithPlaybackAttributes } from '../../utils/playbackAttributes';
|
|
3
|
-
import { type CustomMediaPlayerType, type WithCustomMediaPlayerType } from '../../../types';
|
|
4
|
-
export type CustomMediaPlayerScreenEventPayload = ScreenEventPayload<ScreenAttributes & WithPlaybackAttributes & WithCustomMediaPlayerType, 'customMediaPlayerScreen'>;
|
|
5
|
-
export declare const createCustomMediaPlayerScreenEvent: (type: CustomMediaPlayerType, playbackState: PlaybackState, fileId?: string) => CustomMediaPlayerScreenEventPayload;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type TrackAttributes, type TrackEventPayload } from '@atlaskit/media-common';
|
|
2
|
-
import { type PlaybackState, type WithPlaybackAttributes } from '../../utils/playbackAttributes';
|
|
3
|
-
import { type CustomMediaPlayerType, type WithCustomMediaPlayerType } from '../../../types';
|
|
4
|
-
export type FirstPlayedTrackEventPayload = TrackEventPayload<TrackAttributes & WithPlaybackAttributes & WithCustomMediaPlayerType, 'firstPlayed', 'customMediaPlayer'>;
|
|
5
|
-
export declare const createFirstPlayedTrackEvent: (type: CustomMediaPlayerType, playbackState: PlaybackState, fileId?: string) => FirstPlayedTrackEventPayload;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type TrackAttributes, type TrackEventPayload } from '@atlaskit/media-common';
|
|
2
|
-
import { type PlaybackState, type WithPlaybackAttributes } from '../../utils/playbackAttributes';
|
|
3
|
-
import { type CustomMediaPlayerType, type WithCustomMediaPlayerType } from '../../../types';
|
|
4
|
-
export type PlayedTrackEventPayload = TrackEventPayload<TrackAttributes & WithPlaybackAttributes & WithCustomMediaPlayerType, 'played', 'customMediaPlayer'>;
|
|
5
|
-
export declare const createPlayedTrackEvent: (type: CustomMediaPlayerType, playbackState: PlaybackState, fileId?: string) => PlayedTrackEventPayload;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UIAttributes, type UIEventPayload } from '@atlaskit/media-common';
|
|
2
|
-
import { type PlaybackState, type WithPlaybackAttributes } from '../../utils/playbackAttributes';
|
|
3
|
-
import { type CustomMediaPlayerType, type WithCustomMediaPlayerType } from '../../../types';
|
|
4
|
-
export type MediaButtonClickEventPayload = UIEventPayload<UIAttributes & WithPlaybackAttributes & WithCustomMediaPlayerType, 'clicked', 'button'>;
|
|
5
|
-
export declare function createMediaButtonClickedEvent(type: CustomMediaPlayerType, playbackState: PlaybackState, buttonType?: string, fileId?: string): MediaButtonClickEventPayload;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UIAttributes, type UIEventPayload } from '@atlaskit/media-common';
|
|
2
|
-
import { type PlaybackState, type WithPlaybackAttributes } from '../../utils/playbackAttributes';
|
|
3
|
-
import { type CustomMediaPlayerType, type WithCustomMediaPlayerType } from '../../../types';
|
|
4
|
-
export type PlayPauseBlanketClickEventPayload = UIEventPayload<UIAttributes & WithPlaybackAttributes & WithCustomMediaPlayerType, 'clicked', 'playPauseBlanket'>;
|
|
5
|
-
export declare function createPlayPauseBlanketClickedEvent(type: CustomMediaPlayerType, playbackState: PlaybackState, fileId?: string): PlayPauseBlanketClickEventPayload;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UIAttributes, type UIEventPayload } from '@atlaskit/media-common';
|
|
2
|
-
import { type PlaybackState, type WithPlaybackAttributes } from '../../utils/playbackAttributes';
|
|
3
|
-
import { type CustomMediaPlayerType, type WithCustomMediaPlayerType } from '../../../types';
|
|
4
|
-
export type PlaybackSpeedChangeEventPayload = UIEventPayload<UIAttributes & WithPlaybackAttributes & WithCustomMediaPlayerType, 'changed', 'playbackSpeed'>;
|
|
5
|
-
export declare function createPlaybackSpeedChangedEvent(type: CustomMediaPlayerType, playbackState: PlaybackState, fileId?: string): PlaybackSpeedChangeEventPayload;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UIAttributes, type UIEventPayload } from '@atlaskit/media-common';
|
|
2
|
-
import { type PlaybackState, type WithPlaybackAttributes } from '../../utils/playbackAttributes';
|
|
3
|
-
import { type CustomMediaPlayerType, type WithCustomMediaPlayerType } from '../../../types';
|
|
4
|
-
export type ShortcutPressEventPayload = UIEventPayload<UIAttributes & WithPlaybackAttributes & WithCustomMediaPlayerType, 'pressed', 'shortcut'>;
|
|
5
|
-
export declare function createMediaShortcutPressedEvent(type: CustomMediaPlayerType, playbackState: PlaybackState, shortcutType?: string, fileId?: string): ShortcutPressEventPayload;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UIAttributes, type UIEventPayload } from '@atlaskit/media-common';
|
|
2
|
-
import { type PlaybackState, type WithPlaybackAttributes } from '../../utils/playbackAttributes';
|
|
3
|
-
import { type CustomMediaPlayerType, type WithCustomMediaPlayerType } from '../../../types';
|
|
4
|
-
export type TimeRangeNavigateEventPayload = UIEventPayload<UIAttributes & WithPlaybackAttributes & WithCustomMediaPlayerType, 'navigated', 'timeRange'>;
|
|
5
|
-
export declare function createTimeRangeNavigatedEvent(type: CustomMediaPlayerType, playbackState: PlaybackState, actionSubjectId?: string, fileId?: string): TimeRangeNavigateEventPayload;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export { createCustomMediaPlayerScreenEvent } from './events/screen/customMediaPlayer';
|
|
2
|
-
export { createMediaButtonClickedEvent } from './events/ui/mediaButtonClicked';
|
|
3
|
-
export { createPlaybackSpeedChangedEvent } from './events/ui/playbackSpeedChanged';
|
|
4
|
-
export { createPlayPauseBlanketClickedEvent } from './events/ui/playPauseBlanketClicked';
|
|
5
|
-
export { createMediaShortcutPressedEvent } from './events/ui/shortcutPressed';
|
|
6
|
-
export { createTimeRangeNavigatedEvent } from './events/ui/timeRangeNavigated';
|
|
7
|
-
export { createCaptionUploadSucceededEventPayload, createCaptionDeleteSucceededEventPayload, createCaptionDisplaySucceededEventPayload, createCaptionUploadFailedEventPayload, createCaptionDeleteFailedEventPayload, createCaptionDisplayFailedEventPayload, } from './events/operational/captions';
|
|
8
|
-
export { createFirstPlayedTrackEvent } from './events/track/playCount';
|
|
9
|
-
export { createPlayedTrackEvent } from './events/track/played';
|
|
10
|
-
export type { CustomMediaPlayerUIEvent, CustomMediaPlayerUIEventPayload, CustomMediaPlayerAnalyticsEventPayload, } from './utils/analytics';
|
|
11
|
-
export { createAndFireMediaCustomMediaPlayerEvent, fireAnalyticsEvent } from './utils/analytics';
|
|
12
|
-
export type { PlaybackAttributes, PlaybackState, WithPlaybackProps, WithMediaPlayerState, } from './utils/playbackAttributes';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type CreateUIAnalyticsEvent, type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
-
import { type UIAttributes, type UIEventPayload } from '@atlaskit/media-common';
|
|
3
|
-
import { type CustomMediaPlayerScreenEventPayload } from '../events/screen/customMediaPlayer';
|
|
4
|
-
import { type MediaButtonClickEventPayload } from '../events/ui/mediaButtonClicked';
|
|
5
|
-
import { type PlaybackSpeedChangeEventPayload } from '../events/ui/playbackSpeedChanged';
|
|
6
|
-
import { type PlayPauseBlanketClickEventPayload } from '../events/ui/playPauseBlanketClicked';
|
|
7
|
-
import { type ShortcutPressEventPayload } from '../events/ui/shortcutPressed';
|
|
8
|
-
import { type TimeRangeNavigateEventPayload } from '../events/ui/timeRangeNavigated';
|
|
9
|
-
import { type CaptionSucceededEventPayload, type CaptionFailedEventPayload } from '../events/operational/captions';
|
|
10
|
-
import { type FirstPlayedTrackEventPayload } from '../events/track/playCount';
|
|
11
|
-
import { type PlayedTrackEventPayload } from '../events/track/played';
|
|
12
|
-
import { type CustomMediaPlayerType } from '../../types';
|
|
13
|
-
export type CustomMediaPlayerUIEventPayload = UIEventPayload<UIAttributes & {
|
|
14
|
-
type: CustomMediaPlayerType;
|
|
15
|
-
}, 'default', 'customMediaPlayer'>;
|
|
16
|
-
export type CustomMediaPlayerUIEvent = 'mediaButtonClick' | 'shortcutPress' | 'playPauseBlanketClick' | 'timeRangeNavigate' | 'volumeRangeNavigate' | 'playbackSpeedChange';
|
|
17
|
-
export type CustomMediaPlayerAnalyticsEventPayload = CustomMediaPlayerScreenEventPayload | MediaButtonClickEventPayload | PlaybackSpeedChangeEventPayload | PlayPauseBlanketClickEventPayload | ShortcutPressEventPayload | TimeRangeNavigateEventPayload | CaptionSucceededEventPayload | CaptionFailedEventPayload | CustomMediaPlayerUIEventPayload | FirstPlayedTrackEventPayload | PlayedTrackEventPayload;
|
|
18
|
-
export declare function fireAnalyticsEvent(payload: CustomMediaPlayerAnalyticsEventPayload, createAnalyticsEvent?: CreateUIAnalyticsEvent): void;
|
|
19
|
-
export declare const createAndFireMediaCustomMediaPlayerEvent: (payload: CustomMediaPlayerAnalyticsEventPayload) => ((createAnalyticsEvent: CreateUIAnalyticsEvent) => UIAnalyticsEvent);
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type VideoState, type VideoStatus } from '../../react-video-renderer';
|
|
2
|
-
export type WithPlaybackProps = {
|
|
3
|
-
readonly isAutoPlay: boolean;
|
|
4
|
-
readonly isHDAvailable?: boolean;
|
|
5
|
-
readonly isHDActive?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export type WithMediaPlayerState = {
|
|
8
|
-
playerSize: 'small' | 'medium' | 'large' | 'xlarge';
|
|
9
|
-
isFullScreenEnabled: boolean;
|
|
10
|
-
playbackSpeed: number;
|
|
11
|
-
};
|
|
12
|
-
export type PlaybackState = WithPlaybackProps & WithMediaPlayerState & Partial<VideoState>;
|
|
13
|
-
export type PlaybackAttributes = WithPlaybackProps & WithMediaPlayerState & {
|
|
14
|
-
durationInSec?: number;
|
|
15
|
-
absoluteTimeInSec?: number;
|
|
16
|
-
relativeTime?: number;
|
|
17
|
-
status?: VideoStatus;
|
|
18
|
-
volume?: number;
|
|
19
|
-
isMuted?: boolean;
|
|
20
|
-
};
|
|
21
|
-
export type WithPlaybackAttributes = {
|
|
22
|
-
playbackAttributes: Partial<PlaybackAttributes>;
|
|
23
|
-
};
|
|
24
|
-
export declare function createPlaybackAttributes(playbackState: PlaybackState): Partial<PlaybackAttributes>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type PopupSelect, type OptionType, type StylesConfig } from '@atlaskit/select';
|
|
3
|
-
export declare const popupCustomStyles: StylesConfig<OptionType>;
|
|
4
|
-
export declare const popperProps: PopupSelect['props']['popperProps'];
|
|
5
|
-
export declare const popupSelectComponents: PopupSelect['props']['components'];
|
|
6
|
-
export declare const createPopupSelectComponentsWithIcon: (IconComponent: React.ComponentType<{
|
|
7
|
-
label: string;
|
|
8
|
-
value: string;
|
|
9
|
-
}>) => PopupSelect["props"]["components"];
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const findVendorSpecificProp: (object: any, propNames: string | string[]) => any;
|
|
2
|
-
export declare const requestFullscreen: (element: HTMLElement) => void;
|
|
3
|
-
export declare const exitFullscreen: () => void;
|
|
4
|
-
export declare const getFullscreenElement: () => HTMLElement | undefined;
|
|
5
|
-
export declare const toggleFullscreen: (element?: HTMLElement) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getControlsWrapperClassName: (wasPlayedOnce: boolean) => "" | "mvng-hide-controls";
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Component } from 'react';
|
|
3
|
-
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
|
-
import { type MediaFeatureFlags, type NumericalCardDimensions } from '@atlaskit/media-common';
|
|
5
|
-
import { type WithMediaPlayerState, type WithPlaybackProps } from './analytics';
|
|
6
|
-
import { type WrappedComponentProps } from 'react-intl';
|
|
7
|
-
import { type TimeSaverConfig } from './timeSaver';
|
|
8
|
-
import { type CustomMediaPlayerType } from './types';
|
|
9
|
-
import { type WithShowControlMethodProp } from '../types';
|
|
10
|
-
export interface CustomMediaPlayerProps extends WithPlaybackProps, WithShowControlMethodProp {
|
|
11
|
-
readonly type: CustomMediaPlayerType;
|
|
12
|
-
readonly src: string;
|
|
13
|
-
readonly fileId?: string;
|
|
14
|
-
readonly isShortcutEnabled?: boolean;
|
|
15
|
-
readonly lastWatchTimeConfig?: TimeSaverConfig;
|
|
16
|
-
readonly onCanPlay?: () => void;
|
|
17
|
-
readonly onError?: () => void;
|
|
18
|
-
readonly onPlay?: () => void;
|
|
19
|
-
readonly onPause?: () => void;
|
|
20
|
-
readonly onTimeChanged?: () => void;
|
|
21
|
-
readonly onDownloadClick?: () => void;
|
|
22
|
-
readonly onFirstPlay?: () => void;
|
|
23
|
-
readonly onFullscreenChange?: (fullscreen: boolean) => void;
|
|
24
|
-
readonly originalDimensions?: NumericalCardDimensions;
|
|
25
|
-
readonly featureFlags?: MediaFeatureFlags;
|
|
26
|
-
readonly poster?: string;
|
|
27
|
-
readonly videoControlsWrapperRef?: React.Ref<HTMLDivElement>;
|
|
28
|
-
}
|
|
29
|
-
export interface CustomMediaPlayerState extends WithMediaPlayerState {
|
|
30
|
-
}
|
|
31
|
-
export type Action = () => void;
|
|
32
|
-
export declare class CustomMediaPlayerBase extends Component<CustomMediaPlayerProps & WrappedComponentProps & WithAnalyticsEventsProps, CustomMediaPlayerState> {
|
|
33
|
-
videoWrapperRef: React.RefObject<HTMLDivElement>;
|
|
34
|
-
private actions?;
|
|
35
|
-
private videoState;
|
|
36
|
-
private wasPlayedOnce;
|
|
37
|
-
private lastCurrentTime;
|
|
38
|
-
private readonly timeSaver;
|
|
39
|
-
private clickToTogglePlayTimeoutId;
|
|
40
|
-
state: CustomMediaPlayerState;
|
|
41
|
-
componentDidMount(): void;
|
|
42
|
-
private fireFirstPlayedTrackEvent;
|
|
43
|
-
componentWillUnmount(): void;
|
|
44
|
-
private onFullScreenChange;
|
|
45
|
-
private onTimeChanged;
|
|
46
|
-
private onVolumeChanged;
|
|
47
|
-
private getDefaultTime;
|
|
48
|
-
private onCurrentTimeChange;
|
|
49
|
-
private renderCurrentTime;
|
|
50
|
-
private onPlaybackSpeedChange;
|
|
51
|
-
private renderSpeedControls;
|
|
52
|
-
private renderVolume;
|
|
53
|
-
private toggleFullscreen;
|
|
54
|
-
private onFullScreenButtonClick;
|
|
55
|
-
private onResize;
|
|
56
|
-
private renderFullScreenButton;
|
|
57
|
-
private renderDownloadButton;
|
|
58
|
-
private renderShortcuts;
|
|
59
|
-
private renderPlayPauseButton;
|
|
60
|
-
private renderSkipBackwardButton;
|
|
61
|
-
private renderSkipForwardButton;
|
|
62
|
-
private renderSpinner;
|
|
63
|
-
private setActions;
|
|
64
|
-
pause: () => void;
|
|
65
|
-
private play;
|
|
66
|
-
private getMediaButtonClickHandler;
|
|
67
|
-
private getKeyboardShortcutHandler;
|
|
68
|
-
private createAndFireUIEvent;
|
|
69
|
-
private onViewed;
|
|
70
|
-
private resetPendingPlayPauseToggleTimer;
|
|
71
|
-
private doubleClickToFullscreen;
|
|
72
|
-
private togglePlayByBlanketClick;
|
|
73
|
-
private startPlayByBlanketClick;
|
|
74
|
-
private pausePlayByBlanketClick;
|
|
75
|
-
private startPlayByButtonClick;
|
|
76
|
-
private pausePlayByButtonClick;
|
|
77
|
-
render(): React.JSX.Element;
|
|
78
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type WrappedComponentProps } from 'react-intl';
|
|
3
|
-
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
|
-
import { type CustomMediaPlayerProps } from './index-compiled';
|
|
5
|
-
export declare const CustomMediaPlayerBase: (props: CustomMediaPlayerProps & WrappedComponentProps & WithAnalyticsEventsProps) => React.JSX.Element;
|
|
6
|
-
export declare const CustomMediaPlayer: React.ComponentType<CustomMediaPlayerProps & WithAnalyticsEventsProps>;
|
|
7
|
-
export { type CustomMediaPlayerProps } from './index-compiled';
|
|
8
|
-
export type { CustomMediaPlayerState, Action } from './index-compiled';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl';
|
|
3
|
-
export type NotificationTypes = 'success' | 'error' | null;
|
|
4
|
-
export interface ApiFeedbackProps {
|
|
5
|
-
notificationType: NotificationTypes;
|
|
6
|
-
onDismissed: () => void;
|
|
7
|
-
successDescription: string;
|
|
8
|
-
errorDescription: string;
|
|
9
|
-
}
|
|
10
|
-
declare const _default_1: React.FC<WithIntlProps<ApiFeedbackProps & WrappedComponentProps>> & {
|
|
11
|
-
WrappedComponent: React.ComponentType<ApiFeedbackProps & WrappedComponentProps>;
|
|
12
|
-
};
|
|
13
|
-
export default _default_1;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const detectLanguage: (file: File) => Promise<string | null>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type WrappedComponentProps, type WithIntlProps } from 'react-intl';
|
|
3
|
-
type UploadCaptionsFormProps = {
|
|
4
|
-
isOpen: boolean;
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
uploadFn: (file: File, locale: string) => Promise<void>;
|
|
7
|
-
file?: File;
|
|
8
|
-
};
|
|
9
|
-
declare const _default_1: React.FC<WithIntlProps<UploadCaptionsFormProps & WrappedComponentProps>> & {
|
|
10
|
-
WrappedComponent: React.ComponentType<UploadCaptionsFormProps & WrappedComponentProps>;
|
|
11
|
-
};
|
|
12
|
-
export default _default_1;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { MediaClient, FileIdentifier } from '@atlaskit/media-client';
|
|
2
|
-
import type { ArtifactUploaderProps } from '../types';
|
|
3
|
-
export declare const createUploadCaptionsFn: (mediaClient: MediaClient, identifier: FileIdentifier, onStart?: ArtifactUploaderProps["onStart"], onEnd?: ArtifactUploaderProps["onEnd"], onError?: ArtifactUploaderProps["onError"]) => (file: File, locale: string) => Promise<void>;
|
package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/util.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const parseError: (error: unknown) => Error;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ArtifactUploaderProps } from './types';
|
|
3
|
-
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl';
|
|
4
|
-
export type CaptionsUploaderBrowserProps = ArtifactUploaderProps & {
|
|
5
|
-
isOpen: boolean;
|
|
6
|
-
onClose: () => void;
|
|
7
|
-
};
|
|
8
|
-
declare const _default_1: React.FC<WithIntlProps<ArtifactUploaderProps & {
|
|
9
|
-
isOpen: boolean;
|
|
10
|
-
onClose: () => void;
|
|
11
|
-
} & WrappedComponentProps>> & {
|
|
12
|
-
WrappedComponent: React.ComponentType<ArtifactUploaderProps & {
|
|
13
|
-
isOpen: boolean;
|
|
14
|
-
onClose: () => void;
|
|
15
|
-
} & WrappedComponentProps>;
|
|
16
|
-
};
|
|
17
|
-
export default _default_1;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type ArtifactSupportedType } from '../types';
|
|
3
|
-
export interface BrowserPickerProps {
|
|
4
|
-
type: ArtifactSupportedType;
|
|
5
|
-
isOpen?: boolean;
|
|
6
|
-
onClose?: () => void;
|
|
7
|
-
onFilesPicked?: (file: FileList) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const BrowserPicker: ({ isOpen, type, onFilesPicked, onClose, }: BrowserPickerProps) => React.JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type FileIdentifier, type MediaItemDetails } from '@atlaskit/media-client';
|
|
2
|
-
import { type MediaTraceContext } from '@atlaskit/media-common';
|
|
3
|
-
export declare const artifactUploadTypes: {
|
|
4
|
-
captions: string[];
|
|
5
|
-
};
|
|
6
|
-
export type ArtifactSupportedType = keyof typeof artifactUploadTypes;
|
|
7
|
-
export interface ArtifactUploaderProps {
|
|
8
|
-
identifier: FileIdentifier;
|
|
9
|
-
onStart?: (file: File, traceContext: MediaTraceContext) => void;
|
|
10
|
-
onEnd?: (metadata: MediaItemDetails, traceContext: MediaTraceContext) => void;
|
|
11
|
-
onError?: (error: Error, traceContext: MediaTraceContext) => void;
|
|
12
|
-
}
|
package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/captionDeleteConfirmationModal.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type FileIdentifier } from '@atlaskit/media-client';
|
|
3
|
-
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl';
|
|
4
|
-
import { type MediaTraceContext } from '@atlaskit/media-common';
|
|
5
|
-
export interface CaptionDeleteConfirmationModalProps {
|
|
6
|
-
identifier: FileIdentifier;
|
|
7
|
-
artifactName?: string;
|
|
8
|
-
onClose: () => void;
|
|
9
|
-
onStart?: (context: MediaTraceContext) => void;
|
|
10
|
-
onEnd?: (context: MediaTraceContext) => void;
|
|
11
|
-
onError?: (error: Error, artifactName: string, context: MediaTraceContext) => void;
|
|
12
|
-
}
|
|
13
|
-
declare const _default_1: React.FC<WithIntlProps<CaptionDeleteConfirmationModalProps & WrappedComponentProps>> & {
|
|
14
|
-
WrappedComponent: React.ComponentType<CaptionDeleteConfirmationModalProps & WrappedComponentProps>;
|
|
15
|
-
};
|
|
16
|
-
export default _default_1;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const formatLocale: (baseLocale: string, locale: string) => string;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type MediaUserPreferences } from '@atlaskit/media-client-react';
|
|
2
|
-
export declare const getUserCaptionsLocale: (mediaUserPreferences: MediaUserPreferences) => string | undefined;
|
|
3
|
-
export declare const setUserCaptionsLocale: (mediaUserPreferences: MediaUserPreferences, locale: string) => void;
|
|
4
|
-
export declare const setUserCaptionsEnabled: (mediaUserPreferences: MediaUserPreferences, areCaptionsEnabled: boolean) => void;
|
|
5
|
-
export declare const getUserCaptionsEnabled: (mediaUserPreferences: MediaUserPreferences) => boolean;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type VideoTextTracks } from '../react-video-renderer';
|
|
3
|
-
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl';
|
|
4
|
-
export interface CaptionsAdminControlsProps {
|
|
5
|
-
textTracks?: VideoTextTracks;
|
|
6
|
-
onUpload: () => void;
|
|
7
|
-
onDelete: (artifactName: string) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const _CaptionsAdminControls: ({ intl, textTracks, onUpload, onDelete, }: CaptionsAdminControlsProps & WrappedComponentProps) => React.JSX.Element;
|
|
10
|
-
export declare const CaptionsAdminControls: React.FC<WithIntlProps<CaptionsAdminControlsProps & WrappedComponentProps>> & {
|
|
11
|
-
WrappedComponent: React.ComponentType<CaptionsAdminControlsProps & WrappedComponentProps>;
|
|
12
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type VideoTextTracks } from '../react-video-renderer';
|
|
3
|
-
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl';
|
|
4
|
-
export interface CaptionsSelectControlsProps {
|
|
5
|
-
textTracks: VideoTextTracks;
|
|
6
|
-
onSelected: (selected: number) => void;
|
|
7
|
-
areCaptionsEnabled: boolean;
|
|
8
|
-
onCaptionsEnabledChange: (areCaptionsEnabled: boolean) => void;
|
|
9
|
-
selectedTracksIndex: number;
|
|
10
|
-
}
|
|
11
|
-
export declare const CaptionsSelectControls: React.FC<WithIntlProps<CaptionsSelectControlsProps & WrappedComponentProps>> & {
|
|
12
|
-
WrappedComponent: React.ComponentType<CaptionsSelectControlsProps & WrappedComponentProps>;
|
|
13
|
-
};
|