@atlaskit/media-ui 22.4.1 → 23.0.0

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.
Files changed (115) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/customMediaPlayer/index.js +1 -1
  3. package/dist/cjs/index.js +0 -6
  4. package/dist/cjs/mixins.js +2 -9
  5. package/dist/cjs/version.json +1 -1
  6. package/dist/es2019/customMediaPlayer/index.js +1 -1
  7. package/dist/es2019/index.js +1 -1
  8. package/dist/es2019/mixins.js +1 -14
  9. package/dist/es2019/version.json +1 -1
  10. package/dist/esm/customMediaPlayer/index.js +1 -1
  11. package/dist/esm/index.js +1 -1
  12. package/dist/esm/mixins.js +1 -6
  13. package/dist/esm/version.json +1 -1
  14. package/dist/types/index.d.ts +1 -1
  15. package/dist/types/mixins.d.ts +0 -1
  16. package/dist/types-ts4.5/MediaButton.d.ts +15 -0
  17. package/dist/types-ts4.5/MediaInlineCard/ErroredView/index.d.ts +16 -0
  18. package/dist/types-ts4.5/MediaInlineCard/Frame/index.d.ts +17 -0
  19. package/dist/types-ts4.5/MediaInlineCard/Frame/styled.d.ts +8 -0
  20. package/dist/types-ts4.5/MediaInlineCard/Icon.d.ts +9 -0
  21. package/dist/types-ts4.5/MediaInlineCard/IconAndTitleLayout/index.d.ts +18 -0
  22. package/dist/types-ts4.5/MediaInlineCard/IconAndTitleLayout/styled.d.ts +39 -0
  23. package/dist/types-ts4.5/MediaInlineCard/LoadedView/index.d.ts +18 -0
  24. package/dist/types-ts4.5/MediaInlineCard/LoadingView/index.d.ts +17 -0
  25. package/dist/types-ts4.5/MediaInlineCard/LoadingView/styled.d.ts +9 -0
  26. package/dist/types-ts4.5/MediaInlineCard/index.d.ts +6 -0
  27. package/dist/types-ts4.5/MediaInlineCard/styled.d.ts +5 -0
  28. package/dist/types-ts4.5/browser.d.ts +6 -0
  29. package/dist/types-ts4.5/camera.d.ts +62 -0
  30. package/dist/types-ts4.5/classNames.d.ts +1 -0
  31. package/dist/types-ts4.5/codeViewer.d.ts +8 -0
  32. package/dist/types-ts4.5/customMediaPlayer/analytics/events/screen/customMediaPlayer.d.ts +5 -0
  33. package/dist/types-ts4.5/customMediaPlayer/analytics/events/track/playCount.d.ts +5 -0
  34. package/dist/types-ts4.5/customMediaPlayer/analytics/events/track/played.d.ts +5 -0
  35. package/dist/types-ts4.5/customMediaPlayer/analytics/events/ui/mediaButtonClicked.d.ts +5 -0
  36. package/dist/types-ts4.5/customMediaPlayer/analytics/events/ui/playPauseBlanketClicked.d.ts +5 -0
  37. package/dist/types-ts4.5/customMediaPlayer/analytics/events/ui/playbackSpeedChanged.d.ts +5 -0
  38. package/dist/types-ts4.5/customMediaPlayer/analytics/events/ui/shortcutPressed.d.ts +5 -0
  39. package/dist/types-ts4.5/customMediaPlayer/analytics/events/ui/timeRangeNavigated.d.ts +5 -0
  40. package/dist/types-ts4.5/customMediaPlayer/analytics/index.d.ts +11 -0
  41. package/dist/types-ts4.5/customMediaPlayer/analytics/utils/analytics.d.ts +18 -0
  42. package/dist/types-ts4.5/customMediaPlayer/analytics/utils/playbackAttributes.d.ts +24 -0
  43. package/dist/types-ts4.5/customMediaPlayer/fullscreen.d.ts +5 -0
  44. package/dist/types-ts4.5/customMediaPlayer/getControlsWrapperClassName.d.ts +1 -0
  45. package/dist/types-ts4.5/customMediaPlayer/icons.d.ts +4 -0
  46. package/dist/types-ts4.5/customMediaPlayer/index.d.ts +76 -0
  47. package/dist/types-ts4.5/customMediaPlayer/playPauseBlanket.d.ts +5 -0
  48. package/dist/types-ts4.5/customMediaPlayer/playbackSpeedControls.d.ts +23 -0
  49. package/dist/types-ts4.5/customMediaPlayer/simultaneousPlayManager.d.ts +9 -0
  50. package/dist/types-ts4.5/customMediaPlayer/styled.d.ts +90 -0
  51. package/dist/types-ts4.5/customMediaPlayer/timeRange.d.ts +29 -0
  52. package/dist/types-ts4.5/customMediaPlayer/timeSaver.d.ts +14 -0
  53. package/dist/types-ts4.5/customMediaPlayer/types.d.ts +4 -0
  54. package/dist/types-ts4.5/ellipsify.d.ts +13 -0
  55. package/dist/types-ts4.5/errorIcon.d.ts +2 -0
  56. package/dist/types-ts4.5/formatDate.d.ts +11 -0
  57. package/dist/types-ts4.5/formatDuration.d.ts +1 -0
  58. package/dist/types-ts4.5/humanReadableSize.d.ts +4 -0
  59. package/dist/types-ts4.5/i18n/cs.d.ts +132 -0
  60. package/dist/types-ts4.5/i18n/da.d.ts +132 -0
  61. package/dist/types-ts4.5/i18n/de.d.ts +132 -0
  62. package/dist/types-ts4.5/i18n/en.d.ts +132 -0
  63. package/dist/types-ts4.5/i18n/en_GB.d.ts +132 -0
  64. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +132 -0
  65. package/dist/types-ts4.5/i18n/es.d.ts +132 -0
  66. package/dist/types-ts4.5/i18n/et.d.ts +94 -0
  67. package/dist/types-ts4.5/i18n/fi.d.ts +132 -0
  68. package/dist/types-ts4.5/i18n/fr.d.ts +132 -0
  69. package/dist/types-ts4.5/i18n/hu.d.ts +132 -0
  70. package/dist/types-ts4.5/i18n/index.d.ts +35 -0
  71. package/dist/types-ts4.5/i18n/is.d.ts +70 -0
  72. package/dist/types-ts4.5/i18n/it.d.ts +132 -0
  73. package/dist/types-ts4.5/i18n/ja.d.ts +132 -0
  74. package/dist/types-ts4.5/i18n/ko.d.ts +132 -0
  75. package/dist/types-ts4.5/i18n/languages.d.ts +27 -0
  76. package/dist/types-ts4.5/i18n/nb.d.ts +132 -0
  77. package/dist/types-ts4.5/i18n/nl.d.ts +132 -0
  78. package/dist/types-ts4.5/i18n/pl.d.ts +132 -0
  79. package/dist/types-ts4.5/i18n/pt_BR.d.ts +132 -0
  80. package/dist/types-ts4.5/i18n/pt_PT.d.ts +94 -0
  81. package/dist/types-ts4.5/i18n/ro.d.ts +70 -0
  82. package/dist/types-ts4.5/i18n/ru.d.ts +132 -0
  83. package/dist/types-ts4.5/i18n/sk.d.ts +94 -0
  84. package/dist/types-ts4.5/i18n/sv.d.ts +132 -0
  85. package/dist/types-ts4.5/i18n/th.d.ts +132 -0
  86. package/dist/types-ts4.5/i18n/tr.d.ts +132 -0
  87. package/dist/types-ts4.5/i18n/uk.d.ts +132 -0
  88. package/dist/types-ts4.5/i18n/vi.d.ts +132 -0
  89. package/dist/types-ts4.5/i18n/zh.d.ts +132 -0
  90. package/dist/types-ts4.5/i18n/zh_TW.d.ts +132 -0
  91. package/dist/types-ts4.5/imageMetaData/imageOrientationUtil.d.ts +5 -0
  92. package/dist/types-ts4.5/imageMetaData/index.d.ts +10 -0
  93. package/dist/types-ts4.5/imageMetaData/metatags.d.ts +2 -0
  94. package/dist/types-ts4.5/imageMetaData/parseJPEG.d.ts +2 -0
  95. package/dist/types-ts4.5/imageMetaData/parsePNG.d.ts +3 -0
  96. package/dist/types-ts4.5/imageMetaData/parsePNGXMP.d.ts +2 -0
  97. package/dist/types-ts4.5/imageMetaData/types.d.ts +46 -0
  98. package/dist/types-ts4.5/inactivityDetector/inactivityDetector.d.ts +24 -0
  99. package/dist/types-ts4.5/inactivityDetector/styled.d.ts +8 -0
  100. package/dist/types-ts4.5/index.d.ts +36 -0
  101. package/dist/types-ts4.5/intersectionObserver.d.ts +1 -0
  102. package/dist/types-ts4.5/locales.d.ts +4 -0
  103. package/dist/types-ts4.5/media-type-icon.d.ts +21 -0
  104. package/dist/types-ts4.5/mediaImage/index.d.ts +29 -0
  105. package/dist/types-ts4.5/mediaImage/styled.d.ts +5 -0
  106. package/dist/types-ts4.5/messages.d.ts +8 -0
  107. package/dist/types-ts4.5/mime-type-icon.d.ts +11 -0
  108. package/dist/types-ts4.5/mixins.d.ts +7 -0
  109. package/dist/types-ts4.5/modalSpinner.d.ts +15 -0
  110. package/dist/types-ts4.5/shortcut.d.ts +28 -0
  111. package/dist/types-ts4.5/truncateText.d.ts +23 -0
  112. package/dist/types-ts4.5/types.d.ts +16 -0
  113. package/dist/types-ts4.5/util.d.ts +23 -0
  114. package/package.json +2 -3
  115. package/report.api.md +0 -3
@@ -0,0 +1,76 @@
1
+ import React from 'react';
2
+ import { Component } from 'react';
3
+ import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
4
+ import { MediaFeatureFlags } from '@atlaskit/media-common';
5
+ import { NumericalCardDimensions } from '@atlaskit/media-common';
6
+ import { CustomMediaPlayerType } from './types';
7
+ import { WithPlaybackProps, WithMediaPlayerState } from './analytics';
8
+ import { WrappedComponentProps } from 'react-intl-next';
9
+ import { WithShowControlMethodProp } from '../types';
10
+ import { TimeSaverConfig } from './timeSaver';
11
+ export interface CustomMediaPlayerProps extends WithPlaybackProps, WithShowControlMethodProp {
12
+ readonly type: CustomMediaPlayerType;
13
+ readonly src: string;
14
+ readonly fileId?: string;
15
+ readonly onHDToggleClick?: () => void;
16
+ readonly isShortcutEnabled?: boolean;
17
+ readonly lastWatchTimeConfig?: TimeSaverConfig;
18
+ readonly onCanPlay?: () => void;
19
+ readonly onError?: () => void;
20
+ readonly onDownloadClick?: () => void;
21
+ readonly onFirstPlay?: () => void;
22
+ readonly onFullscreenChange?: (fullscreen: boolean) => void;
23
+ readonly originalDimensions?: NumericalCardDimensions;
24
+ readonly featureFlags?: MediaFeatureFlags;
25
+ readonly poster?: string;
26
+ }
27
+ export interface CustomMediaPlayerState extends WithMediaPlayerState {
28
+ }
29
+ export type Action = () => void;
30
+ export declare class CustomMediaPlayerBase extends Component<CustomMediaPlayerProps & WrappedComponentProps & WithAnalyticsEventsProps, CustomMediaPlayerState> {
31
+ videoWrapperRef: React.RefObject<HTMLDivElement>;
32
+ private actions?;
33
+ private videoState;
34
+ private wasPlayedOnce;
35
+ private lastCurrentTime;
36
+ private readonly timeSaver;
37
+ private clickToTogglePlayTimoutId;
38
+ state: CustomMediaPlayerState;
39
+ componentDidMount(): void;
40
+ componentWillUnmount(): void;
41
+ private onFullScreenChange;
42
+ private onTimeChanged;
43
+ private onVolumeChanged;
44
+ private onCurrentTimeChange;
45
+ private renderCurrentTime;
46
+ private renderHDButton;
47
+ private onPlaybackSpeedChange;
48
+ private renderSpeedControls;
49
+ private renderVolume;
50
+ private toggleFullscreen;
51
+ private onFullScreenButtonClick;
52
+ private onResize;
53
+ private renderFullScreenButton;
54
+ private renderDownloadButton;
55
+ private renderShortcuts;
56
+ private renderPlayPauseButton;
57
+ private renderSkipBackwardButton;
58
+ private renderSkipForwardButton;
59
+ private renderSpinner;
60
+ private setActions;
61
+ pause: () => void;
62
+ private play;
63
+ private getMediaButtonClickHandler;
64
+ private getKeyboardShortcutHandler;
65
+ private createAndFireUIEvent;
66
+ private onViewed;
67
+ private resetPendingPlayPauseToggleTimer;
68
+ private doubleClickToFullscreen;
69
+ private togglePlayByBlanketClick;
70
+ private startPlayByBlanketClick;
71
+ private pausePlayByBlanketClick;
72
+ private startPlayByButtonClick;
73
+ private pausePlayByButtonClick;
74
+ render(): JSX.Element;
75
+ }
76
+ export declare const CustomMediaPlayer: React.ComponentType<CustomMediaPlayerProps & WithAnalyticsEventsProps>;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const PlayPauseBlanket: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { Component } from 'react';
3
+ import { NumericalCardDimensions } from '@atlaskit/media-common';
4
+ import { WrappedComponentProps } from 'react-intl-next';
5
+ export interface PlaybackSpeedControlsProps {
6
+ playbackSpeed: number;
7
+ onPlaybackSpeedChange: (playbackSpeed: number) => void;
8
+ originalDimensions?: NumericalCardDimensions;
9
+ onClick?: () => void;
10
+ }
11
+ export interface PlaybackSpeedControlsState {
12
+ popupHeight: number;
13
+ }
14
+ export declare class PlaybackSpeedControls extends Component<PlaybackSpeedControlsProps & WrappedComponentProps, PlaybackSpeedControlsState> {
15
+ state: PlaybackSpeedControlsState;
16
+ private onPlaybackSpeedChange;
17
+ private speedOptions;
18
+ private popupCustomStyles;
19
+ private onResize;
20
+ render(): JSX.Element;
21
+ }
22
+ declare const _default: React.FC<PlaybackSpeedControlsProps>;
23
+ export default _default;
@@ -0,0 +1,9 @@
1
+ export interface Pausable {
2
+ pause: () => any;
3
+ }
4
+ declare const _default: {
5
+ pauseOthers: (player: Pausable) => void;
6
+ subscribe: (player: Pausable) => void;
7
+ unsubscribe: (player: Pausable) => void;
8
+ };
9
+ export default _default;
@@ -0,0 +1,90 @@
1
+ /// <reference types="react" />
2
+ export interface MutedIndicatorProps {
3
+ isMuted: boolean;
4
+ }
5
+ export declare const CustomVideoWrapper: import("@emotion/styled").StyledComponent<{
6
+ theme?: import("@emotion/react").Theme | undefined;
7
+ as?: import("react").ElementType<any> | undefined;
8
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
9
+ export declare const VideoWrapper: import("@emotion/styled").StyledComponent<{
10
+ theme?: import("@emotion/react").Theme | undefined;
11
+ as?: import("react").ElementType<any> | undefined;
12
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
13
+ export declare const TimebarWrapper: import("@emotion/styled").StyledComponent<{
14
+ theme?: import("@emotion/react").Theme | undefined;
15
+ as?: import("react").ElementType<any> | undefined;
16
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
17
+ type VolumeWrapperProps = {
18
+ showSlider: boolean;
19
+ };
20
+ export declare const VolumeWrapper: import("@emotion/styled").StyledComponent<{
21
+ theme?: import("@emotion/react").Theme | undefined;
22
+ as?: import("react").ElementType<any> | undefined;
23
+ } & VolumeWrapperProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
24
+ export declare const TimeWrapper: import("@emotion/styled").StyledComponent<{
25
+ theme?: import("@emotion/react").Theme | undefined;
26
+ as?: import("react").ElementType<any> | undefined;
27
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
28
+ export declare const CurrentTime: import("@emotion/styled").StyledComponent<{
29
+ theme?: import("@emotion/react").Theme | undefined;
30
+ as?: import("react").ElementType<any> | undefined;
31
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
32
+ interface WithAsActiveProps {
33
+ showAsActive: boolean;
34
+ }
35
+ export declare const TimeLine: import("@emotion/styled").StyledComponent<{
36
+ theme?: import("@emotion/react").Theme | undefined;
37
+ as?: import("react").ElementType<any> | undefined;
38
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
39
+ export declare const CurrentTimeLine: import("@emotion/styled").StyledComponent<{
40
+ theme?: import("@emotion/react").Theme | undefined;
41
+ as?: import("react").ElementType<any> | undefined;
42
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
43
+ export declare const Thumb: import("@emotion/styled").StyledComponent<{
44
+ theme?: import("@emotion/react").Theme | undefined;
45
+ as?: import("react").ElementType<any> | undefined;
46
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
47
+ export declare const BufferedTime: import("@emotion/styled").StyledComponent<{
48
+ theme?: import("@emotion/react").Theme | undefined;
49
+ as?: import("react").ElementType<any> | undefined;
50
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
51
+ export declare const LeftControls: import("@emotion/styled").StyledComponent<{
52
+ theme?: import("@emotion/react").Theme | undefined;
53
+ as?: import("react").ElementType<any> | undefined;
54
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
55
+ export declare const RightControls: import("@emotion/styled").StyledComponent<{
56
+ theme?: import("@emotion/react").Theme | undefined;
57
+ as?: import("react").ElementType<any> | undefined;
58
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
59
+ export declare const ControlsWrapper: import("@emotion/styled").StyledComponent<{
60
+ theme?: import("@emotion/react").Theme | undefined;
61
+ as?: import("react").ElementType<any> | undefined;
62
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
63
+ export declare const VolumeToggleWrapper: import("@emotion/styled").StyledComponent<{
64
+ theme?: import("@emotion/react").Theme | undefined;
65
+ as?: import("react").ElementType<any> | undefined;
66
+ } & MutedIndicatorProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
67
+ export declare const VolumeTimeRangeWrapper: import("@emotion/styled").StyledComponent<{
68
+ theme?: import("@emotion/react").Theme | undefined;
69
+ as?: import("react").ElementType<any> | undefined;
70
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
71
+ export declare const MutedIndicator: import("@emotion/styled").StyledComponent<{
72
+ theme?: import("@emotion/react").Theme | undefined;
73
+ as?: import("react").ElementType<any> | undefined;
74
+ } & MutedIndicatorProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
75
+ export interface CurrentTimeTooltipProps {
76
+ isDragging: boolean;
77
+ }
78
+ export declare const CurrentTimeTooltip: import("@emotion/styled").StyledComponent<{
79
+ theme?: import("@emotion/react").Theme | undefined;
80
+ as?: import("react").ElementType<any> | undefined;
81
+ } & CurrentTimeTooltipProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
82
+ export declare const TimeRangeWrapper: import("@emotion/styled").StyledComponent<{
83
+ theme?: import("@emotion/react").Theme | undefined;
84
+ as?: import("react").ElementType<any> | undefined;
85
+ } & WithAsActiveProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
86
+ export declare const SpinnerWrapper: import("@emotion/styled").StyledComponent<{
87
+ theme?: import("@emotion/react").Theme | undefined;
88
+ as?: import("react").ElementType<any> | undefined;
89
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
90
+ export {};
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import { Component } from 'react';
3
+ export interface TimeRangeProps {
4
+ currentTime: number;
5
+ bufferedTime: number;
6
+ duration: number;
7
+ onChange: (newTime: number) => void;
8
+ disableThumbTooltip: boolean;
9
+ isAlwaysActive: boolean;
10
+ onChanged?: () => void;
11
+ }
12
+ export interface TimeRangeState {
13
+ isDragging: boolean;
14
+ dragStartClientX: number;
15
+ }
16
+ export declare class TimeRange extends Component<TimeRangeProps, TimeRangeState> {
17
+ thumbElement: React.RefObject<HTMLDivElement>;
18
+ wrapperElement: React.RefObject<HTMLDivElement>;
19
+ wrapperElementWidth: number;
20
+ state: TimeRangeState;
21
+ static defaultProps: Partial<TimeRangeProps>;
22
+ componentDidMount(): void;
23
+ componentWillUnmount(): void;
24
+ private setWrapperWidth;
25
+ onMouseMove: (e: MouseEvent) => void;
26
+ onMouseUp: () => void;
27
+ onThumbMouseDown: (e: React.SyntheticEvent<HTMLDivElement>) => void;
28
+ render(): JSX.Element;
29
+ }
@@ -0,0 +1,14 @@
1
+ export interface TimeSaverConfig {
2
+ contentId: string;
3
+ }
4
+ /**
5
+ * Modules that stores watch time (a number) in local storage by unique identifier.
6
+ * Used in Custom Media Player to enable the feature where a user would resume watching
7
+ * from where they left off.
8
+ */
9
+ export declare class TimeSaver {
10
+ readonly config?: TimeSaverConfig | undefined;
11
+ constructor(config?: TimeSaverConfig | undefined);
12
+ get defaultTime(): number;
13
+ set defaultTime(time: number);
14
+ }
@@ -0,0 +1,4 @@
1
+ export type CustomMediaPlayerType = 'audio' | 'video';
2
+ export type WithCustomMediaPlayerType = {
3
+ type: CustomMediaPlayerType;
4
+ };
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ export interface WrapperProps {
3
+ inline?: boolean;
4
+ }
5
+ export interface EllipsifyProps {
6
+ text?: string;
7
+ lines: number;
8
+ endLength?: number;
9
+ inline?: boolean;
10
+ testId?: string;
11
+ }
12
+ export declare const Ellipsify: ({ text, lines, endLength, inline, testId, }: EllipsifyProps) => JSX.Element;
13
+ export default Ellipsify;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const errorIcon: JSX.Element;
@@ -0,0 +1,11 @@
1
+ export declare const formatterOptions: Intl.DateTimeFormatOptions;
2
+ export type PartsFormatterOptions = {
3
+ day: string;
4
+ month: string;
5
+ year: string;
6
+ hour: string;
7
+ minute: string;
8
+ dayPeriod?: string;
9
+ };
10
+ export declare const partsFormatter: ({ day, month, year, hour, minute, dayPeriod, }: PartsFormatterOptions) => string;
11
+ export declare const formatDate: (timestamp: number, locale?: string) => string;
@@ -0,0 +1 @@
1
+ export declare const formatDuration: (seconds: number) => string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Takes a media (file) size in bytes and returns a human readable string
3
+ */
4
+ export declare function toHumanReadableMediaSize(size: number): string;
@@ -0,0 +1,132 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
7
+ declare const _default: {
8
+ 'fabric.media.accounts': string;
9
+ 'fabric.media.actions': string;
10
+ 'fabric.media.add_account': string;
11
+ 'fabric.media.annotate': string;
12
+ 'fabric.media.annotate.confirmation.close.anyway': string;
13
+ 'fabric.media.annotate.confirmation.content': string;
14
+ 'fabric.media.annotate.confirmation.heading': string;
15
+ 'fabric.media.annotate.tool.arrow': string;
16
+ 'fabric.media.annotate.tool.blur': string;
17
+ 'fabric.media.annotate.tool.brush': string;
18
+ 'fabric.media.annotate.tool.color': string;
19
+ 'fabric.media.annotate.tool.line.thickness': string;
20
+ 'fabric.media.annotate.tool.shape': string;
21
+ 'fabric.media.annotate.tool.text': string;
22
+ 'fabric.media.archive': string;
23
+ 'fabric.media.audio': string;
24
+ 'fabric.media.cancel': string;
25
+ 'fabric.media.cant_preview_file_type': string;
26
+ 'fabric.media.cant_retrieve_files': string;
27
+ 'fabric.media.cant_retrieve_gifs': string;
28
+ 'fabric.media.change_view': string;
29
+ 'fabric.media.check_your_network': string;
30
+ 'fabric.media.click_to_join': string;
31
+ 'fabric.media.click_to_join_description': string;
32
+ 'fabric.media.close': string;
33
+ 'fabric.media.close_and_reopen': string;
34
+ 'fabric.media.connect_account_description': string;
35
+ 'fabric.media.connect_link_account': string;
36
+ 'fabric.media.connect_link_account_card_view': string;
37
+ 'fabric.media.connect_link_account_card_view_description': string;
38
+ 'fabric.media.connect_link_account_card_view_name': string;
39
+ 'fabric.media.connect_to': string;
40
+ 'fabric.media.could_not_load_editor': string;
41
+ 'fabric.media.could_not_save_image': string;
42
+ 'fabric.media.couldnt_generate_encrypted_entry_preview': string;
43
+ 'fabric.media.couldnt_generate_preview': string;
44
+ 'fabric.media.couldnt_load_file': string;
45
+ 'fabric.media.couldnt_load_link': string;
46
+ 'fabric.media.creating_preview': string;
47
+ 'fabric.media.default_avatars': string;
48
+ 'fabric.media.disable_fullscreen': string;
49
+ 'fabric.media.display_thumbnail': string;
50
+ 'fabric.media.document': string;
51
+ 'fabric.media.download': string;
52
+ 'fabric.media.drag_and_drop_images_here': string;
53
+ 'fabric.media.drag_and_drop_your_files': string;
54
+ 'fabric.media.drag_and_drop_your_files_and_folders': string;
55
+ 'fabric.media.drop_your_files': string;
56
+ 'fabric.media.drop_your_files_here': string;
57
+ 'fabric.media.email': string;
58
+ 'fabric.media.enable_fullscreen': string;
59
+ 'fabric.media.error_429': string;
60
+ 'fabric.media.error_generating_preview': string;
61
+ 'fabric.media.error_hint_critical': string;
62
+ 'fabric.media.error_hint_retry': string;
63
+ 'fabric.media.error_loading_file': string;
64
+ 'fabric.media.failed_to_load': string;
65
+ 'fabric.media.failed_to_upload': string;
66
+ 'fabric.media.forbidden_description': string;
67
+ 'fabric.media.give_feedback': string;
68
+ 'fabric.media.image': string;
69
+ 'fabric.media.image_format_invalid_error': string;
70
+ 'fabric.media.image_size_too_large_error': string;
71
+ 'fabric.media.image_url_invalid_error': string;
72
+ 'fabric.media.insert_files': string;
73
+ 'fabric.media.invalid_permissions': string;
74
+ 'fabric.media.invalid_permissions_description': string;
75
+ 'fabric.media.item_not_found_in_list': string;
76
+ 'fabric.media.learn_more': string;
77
+ 'fabric.media.load_more_gifs': string;
78
+ 'fabric.media.loading': string;
79
+ 'fabric.media.loading_file': string;
80
+ 'fabric.media.might_be_a_hiccup': string;
81
+ 'fabric.media.no_gifs_found': string;
82
+ 'fabric.media.no_gifs_found_suggestion': string;
83
+ 'fabric.media.no_pdf_artifacts': string;
84
+ 'fabric.media.not_found_description': string;
85
+ 'fabric.media.not_found_title': string;
86
+ 'fabric.media.or': string;
87
+ 'fabric.media.pause': string;
88
+ 'fabric.media.play': string;
89
+ 'fabric.media.playback_default_speed': string;
90
+ 'fabric.media.playback_speed': string;
91
+ 'fabric.media.preview': string;
92
+ 'fabric.media.preview_currently_unavailable': string;
93
+ 'fabric.media.preview_unavailable': string;
94
+ 'fabric.media.recent_uploads': string;
95
+ 'fabric.media.remove_image': string;
96
+ 'fabric.media.request_access': string;
97
+ 'fabric.media.request_access_description': string;
98
+ 'fabric.media.request_access_pending': string;
99
+ 'fabric.media.request_access_pending_description': string;
100
+ 'fabric.media.request_denied_description': string;
101
+ 'fabric.media.retry': string;
102
+ 'fabric.media.save': string;
103
+ 'fabric.media.search': string;
104
+ 'fabric.media.search_all_gifs': string;
105
+ 'fabric.media.share_files_instantly': string;
106
+ 'fabric.media.skip_backward': string;
107
+ 'fabric.media.skip_forward': string;
108
+ 'fabric.media.something_went_wrong': string;
109
+ 'fabric.media.srclink': string;
110
+ 'fabric.media.srclinkunknown': string;
111
+ 'fabric.media.text': string;
112
+ 'fabric.media.try_again': string;
113
+ 'fabric.media.try_another_account': string;
114
+ 'fabric.media.try_downloading_file': string;
115
+ 'fabric.media.unable_to_annotate_image': string;
116
+ 'fabric.media.unknown': string;
117
+ 'fabric.media.unlink_account': string;
118
+ 'fabric.media.upload': string;
119
+ 'fabric.media.upload_an_avatar': string;
120
+ 'fabric.media.upload_file': string;
121
+ 'fabric.media.upload_file_from': string;
122
+ 'fabric.media.upload_image': string;
123
+ 'fabric.media.upload_photo': string;
124
+ 'fabric.media.video': string;
125
+ 'fabric.media.view': string;
126
+ 'fabric.media.viewer_rateLimited': string;
127
+ 'fabric.media.webgl_warning_description': string;
128
+ 'fabric.media.zip_entry_load_failed': string;
129
+ 'fabric.media.zoom_in': string;
130
+ 'fabric.media.zoom_out': string;
131
+ };
132
+ export default _default;
@@ -0,0 +1,132 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
7
+ declare const _default: {
8
+ 'fabric.media.accounts': string;
9
+ 'fabric.media.actions': string;
10
+ 'fabric.media.add_account': string;
11
+ 'fabric.media.annotate': string;
12
+ 'fabric.media.annotate.confirmation.close.anyway': string;
13
+ 'fabric.media.annotate.confirmation.content': string;
14
+ 'fabric.media.annotate.confirmation.heading': string;
15
+ 'fabric.media.annotate.tool.arrow': string;
16
+ 'fabric.media.annotate.tool.blur': string;
17
+ 'fabric.media.annotate.tool.brush': string;
18
+ 'fabric.media.annotate.tool.color': string;
19
+ 'fabric.media.annotate.tool.line.thickness': string;
20
+ 'fabric.media.annotate.tool.shape': string;
21
+ 'fabric.media.annotate.tool.text': string;
22
+ 'fabric.media.archive': string;
23
+ 'fabric.media.audio': string;
24
+ 'fabric.media.cancel': string;
25
+ 'fabric.media.cant_preview_file_type': string;
26
+ 'fabric.media.cant_retrieve_files': string;
27
+ 'fabric.media.cant_retrieve_gifs': string;
28
+ 'fabric.media.change_view': string;
29
+ 'fabric.media.check_your_network': string;
30
+ 'fabric.media.click_to_join': string;
31
+ 'fabric.media.click_to_join_description': string;
32
+ 'fabric.media.close': string;
33
+ 'fabric.media.close_and_reopen': string;
34
+ 'fabric.media.connect_account_description': string;
35
+ 'fabric.media.connect_link_account': string;
36
+ 'fabric.media.connect_link_account_card_view': string;
37
+ 'fabric.media.connect_link_account_card_view_description': string;
38
+ 'fabric.media.connect_link_account_card_view_name': string;
39
+ 'fabric.media.connect_to': string;
40
+ 'fabric.media.could_not_load_editor': string;
41
+ 'fabric.media.could_not_save_image': string;
42
+ 'fabric.media.couldnt_generate_encrypted_entry_preview': string;
43
+ 'fabric.media.couldnt_generate_preview': string;
44
+ 'fabric.media.couldnt_load_file': string;
45
+ 'fabric.media.couldnt_load_link': string;
46
+ 'fabric.media.creating_preview': string;
47
+ 'fabric.media.default_avatars': string;
48
+ 'fabric.media.disable_fullscreen': string;
49
+ 'fabric.media.display_thumbnail': string;
50
+ 'fabric.media.document': string;
51
+ 'fabric.media.download': string;
52
+ 'fabric.media.drag_and_drop_images_here': string;
53
+ 'fabric.media.drag_and_drop_your_files': string;
54
+ 'fabric.media.drag_and_drop_your_files_and_folders': string;
55
+ 'fabric.media.drop_your_files': string;
56
+ 'fabric.media.drop_your_files_here': string;
57
+ 'fabric.media.email': string;
58
+ 'fabric.media.enable_fullscreen': string;
59
+ 'fabric.media.error_429': string;
60
+ 'fabric.media.error_generating_preview': string;
61
+ 'fabric.media.error_hint_critical': string;
62
+ 'fabric.media.error_hint_retry': string;
63
+ 'fabric.media.error_loading_file': string;
64
+ 'fabric.media.failed_to_load': string;
65
+ 'fabric.media.failed_to_upload': string;
66
+ 'fabric.media.forbidden_description': string;
67
+ 'fabric.media.give_feedback': string;
68
+ 'fabric.media.image': string;
69
+ 'fabric.media.image_format_invalid_error': string;
70
+ 'fabric.media.image_size_too_large_error': string;
71
+ 'fabric.media.image_url_invalid_error': string;
72
+ 'fabric.media.insert_files': string;
73
+ 'fabric.media.invalid_permissions': string;
74
+ 'fabric.media.invalid_permissions_description': string;
75
+ 'fabric.media.item_not_found_in_list': string;
76
+ 'fabric.media.learn_more': string;
77
+ 'fabric.media.load_more_gifs': string;
78
+ 'fabric.media.loading': string;
79
+ 'fabric.media.loading_file': string;
80
+ 'fabric.media.might_be_a_hiccup': string;
81
+ 'fabric.media.no_gifs_found': string;
82
+ 'fabric.media.no_gifs_found_suggestion': string;
83
+ 'fabric.media.no_pdf_artifacts': string;
84
+ 'fabric.media.not_found_description': string;
85
+ 'fabric.media.not_found_title': string;
86
+ 'fabric.media.or': string;
87
+ 'fabric.media.pause': string;
88
+ 'fabric.media.play': string;
89
+ 'fabric.media.playback_default_speed': string;
90
+ 'fabric.media.playback_speed': string;
91
+ 'fabric.media.preview': string;
92
+ 'fabric.media.preview_currently_unavailable': string;
93
+ 'fabric.media.preview_unavailable': string;
94
+ 'fabric.media.recent_uploads': string;
95
+ 'fabric.media.remove_image': string;
96
+ 'fabric.media.request_access': string;
97
+ 'fabric.media.request_access_description': string;
98
+ 'fabric.media.request_access_pending': string;
99
+ 'fabric.media.request_access_pending_description': string;
100
+ 'fabric.media.request_denied_description': string;
101
+ 'fabric.media.retry': string;
102
+ 'fabric.media.save': string;
103
+ 'fabric.media.search': string;
104
+ 'fabric.media.search_all_gifs': string;
105
+ 'fabric.media.share_files_instantly': string;
106
+ 'fabric.media.skip_backward': string;
107
+ 'fabric.media.skip_forward': string;
108
+ 'fabric.media.something_went_wrong': string;
109
+ 'fabric.media.srclink': string;
110
+ 'fabric.media.srclinkunknown': string;
111
+ 'fabric.media.text': string;
112
+ 'fabric.media.try_again': string;
113
+ 'fabric.media.try_another_account': string;
114
+ 'fabric.media.try_downloading_file': string;
115
+ 'fabric.media.unable_to_annotate_image': string;
116
+ 'fabric.media.unknown': string;
117
+ 'fabric.media.unlink_account': string;
118
+ 'fabric.media.upload': string;
119
+ 'fabric.media.upload_an_avatar': string;
120
+ 'fabric.media.upload_file': string;
121
+ 'fabric.media.upload_file_from': string;
122
+ 'fabric.media.upload_image': string;
123
+ 'fabric.media.upload_photo': string;
124
+ 'fabric.media.video': string;
125
+ 'fabric.media.view': string;
126
+ 'fabric.media.viewer_rateLimited': string;
127
+ 'fabric.media.webgl_warning_description': string;
128
+ 'fabric.media.zip_entry_load_failed': string;
129
+ 'fabric.media.zoom_in': string;
130
+ 'fabric.media.zoom_out': string;
131
+ };
132
+ export default _default;