@atlaskit/media-card 72.1.0 → 73.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.
- package/CHANGELOG.md +46 -0
- package/dist/cjs/errors.js +4 -2
- package/dist/cjs/files/cardImageView/cardOverlay/styled.js +1 -1
- package/dist/cjs/files/cardImageView/index.js +1 -1
- package/dist/cjs/files/cardImageView/styled.js +1 -1
- package/dist/cjs/index.js +8 -8
- package/dist/cjs/root/card/cardAnalytics.js +1 -1
- package/dist/cjs/root/card/getCardPreview/cache.js +1 -1
- package/dist/cjs/root/card/getCardPreview/filePreviewStatus.js +4 -1
- package/dist/cjs/root/card/getCardPreview/helpers.js +1 -1
- package/dist/cjs/root/card/getCardPreview/index.js +10 -7
- package/dist/cjs/root/card/getCardStatus.js +1 -1
- package/dist/cjs/root/card/index.js +6 -8
- package/dist/cjs/root/cardView.js +1 -1
- package/dist/cjs/root/inline/mediaInlineCard.js +19 -8
- package/dist/cjs/root/inlinePlayer.js +1 -1
- package/dist/cjs/root/styled.js +7 -3
- package/dist/cjs/root/ui/actionsBar/styled.js +1 -1
- package/dist/cjs/root/ui/blanket/styled.js +1 -1
- package/dist/cjs/root/ui/common.js +1 -1
- package/dist/cjs/root/ui/iconMessage/index.js +5 -3
- package/dist/cjs/root/ui/iconWrapper/styled.js +1 -1
- package/dist/cjs/root/ui/loadingRateLimited/loadingRateLimited.js +4 -2
- package/dist/cjs/root/ui/loadingRateLimited/styled.js +1 -1
- package/dist/cjs/root/ui/playButton/styled.js +1 -1
- package/dist/cjs/root/ui/progressBar/styled.js +1 -1
- package/dist/cjs/root/ui/styled.js +1 -1
- package/dist/cjs/root/ui/tickBox/styled.js +1 -1
- package/dist/cjs/root/ui/titleBox/failedTitleBox.js +4 -2
- package/dist/cjs/root/ui/titleBox/styled.js +1 -1
- package/dist/cjs/root/ui/titleBox/titleBox.js +2 -2
- package/dist/cjs/styles/index.js +25 -23
- package/dist/cjs/styles/mixins.js +1 -1
- package/dist/cjs/utils/analytics.js +2 -1
- package/dist/cjs/utils/breakpoint.js +1 -1
- package/dist/cjs/utils/cardActions/index.js +10 -10
- package/dist/cjs/utils/cardActions/styled.js +1 -1
- package/dist/cjs/utils/cardDimensions.js +1 -1
- package/dist/cjs/utils/getErrorMessage.js +2 -2
- package/dist/cjs/utils/index.js +46 -46
- package/dist/cjs/utils/lightCards/styled.js +1 -1
- package/dist/cjs/utils/objectURLCache.js +1 -1
- package/dist/cjs/utils/viewportDetector.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/root/card/getCardPreview/filePreviewStatus.js +4 -1
- package/dist/es2019/root/card/index.js +5 -8
- package/dist/es2019/root/inline/mediaInlineCard.js +18 -7
- package/dist/es2019/root/styled.js +2 -1
- package/dist/es2019/root/ui/iconMessage/index.js +3 -2
- package/dist/es2019/root/ui/loadingRateLimited/loadingRateLimited.js +3 -2
- package/dist/es2019/root/ui/titleBox/failedTitleBox.js +3 -2
- package/dist/es2019/root/ui/titleBox/titleBox.js +1 -1
- package/dist/es2019/utils/getErrorMessage.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/root/card/getCardPreview/filePreviewStatus.js +4 -1
- package/dist/esm/root/card/index.js +5 -8
- package/dist/esm/root/inline/mediaInlineCard.js +18 -7
- package/dist/esm/root/styled.js +3 -2
- package/dist/esm/root/ui/iconMessage/index.js +3 -2
- package/dist/esm/root/ui/loadingRateLimited/loadingRateLimited.js +3 -2
- package/dist/esm/root/ui/titleBox/failedTitleBox.js +3 -2
- package/dist/esm/root/ui/titleBox/titleBox.js +1 -1
- package/dist/esm/utils/getErrorMessage.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/root/card/cardLoader.d.ts +2 -2
- package/dist/types/root/card/index.d.ts +5 -8
- package/dist/types/root/cardView.d.ts +2 -2
- package/dist/types/root/inline/mediaInlineCard.d.ts +3 -5
- package/dist/types/root/styled.d.ts +1 -0
- package/dist/types/root/ui/iconMessage/index.d.ts +2 -2
- package/dist/types/root/ui/loadingRateLimited/loadingRateLimited.d.ts +1 -0
- package/dist/types/root/ui/playButton/playButton.d.ts +1 -0
- package/dist/types/root/ui/progressBar/progressBar.d.ts +1 -0
- package/dist/types/root/ui/tickBox/tickBox.d.ts +1 -0
- package/dist/types/root/ui/titleBox/failedTitleBox.d.ts +2 -2
- package/dist/types/root/ui/titleBox/titleBox.d.ts +1 -9
- package/dist/types/utils/getErrorMessage.d.ts +1 -0
- package/package.json +7 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useState, useEffect } from 'react';
|
|
3
3
|
import ReactDOM from 'react-dom';
|
|
4
|
-
import { injectIntl } from 'react-intl';
|
|
4
|
+
import { injectIntl, IntlProvider, createIntl } from 'react-intl-next';
|
|
5
5
|
import { MediaInlineCardLoadedView, MediaInlineCardLoadingView, MediaInlineCardErroredView, messages } from '@atlaskit/media-ui';
|
|
6
6
|
import { MediaTypeIcon } from '@atlaskit/media-ui/media-type-icon';
|
|
7
7
|
import { MediaViewer } from '@atlaskit/media-viewer';
|
|
@@ -63,6 +63,15 @@ export var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
|
|
|
63
63
|
return null;
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
+
var renderContent = function renderContent(children) {
|
|
67
|
+
return intl ? children : /*#__PURE__*/React.createElement(IntlProvider, {
|
|
68
|
+
locale: "en"
|
|
69
|
+
}, children);
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
var defaultIntl = createIntl({
|
|
73
|
+
locale: 'en'
|
|
74
|
+
});
|
|
66
75
|
useEffect(function () {
|
|
67
76
|
mediaClient.file.getFileState(identifier.id, {
|
|
68
77
|
collectionName: identifier.collectionName
|
|
@@ -78,14 +87,14 @@ export var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
|
|
|
78
87
|
|
|
79
88
|
if (!fileState) {
|
|
80
89
|
return /*#__PURE__*/React.createElement(MediaInlineCardLoadingView, {
|
|
81
|
-
message: intl.formatMessage(messages.loading_file),
|
|
90
|
+
message: (intl || defaultIntl).formatMessage(messages.loading_file),
|
|
82
91
|
isSelected: isSelected
|
|
83
92
|
});
|
|
84
93
|
}
|
|
85
94
|
|
|
86
95
|
if (isErrored) {
|
|
87
96
|
return /*#__PURE__*/React.createElement(MediaInlineCardErroredView, {
|
|
88
|
-
message: intl.formatMessage(messages.couldnt_load_file),
|
|
97
|
+
message: (intl || defaultIntl).formatMessage(messages.couldnt_load_file),
|
|
89
98
|
isSelected: isSelected
|
|
90
99
|
});
|
|
91
100
|
}
|
|
@@ -99,7 +108,7 @@ export var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
|
|
|
99
108
|
|
|
100
109
|
if (fileState.status === 'failed-processing') {
|
|
101
110
|
return /*#__PURE__*/React.createElement(MediaInlineCardErroredView, {
|
|
102
|
-
message: intl.formatMessage(messages.couldnt_load_file),
|
|
111
|
+
message: (intl || defaultIntl).formatMessage(messages.couldnt_load_file),
|
|
103
112
|
isSelected: isSelected
|
|
104
113
|
});
|
|
105
114
|
}
|
|
@@ -131,7 +140,7 @@ export var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
|
|
|
131
140
|
formattedDate = formatDate(fileState.createdAt, locale);
|
|
132
141
|
}
|
|
133
142
|
|
|
134
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tooltip, {
|
|
143
|
+
return renderContent( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tooltip, {
|
|
135
144
|
position: "bottom",
|
|
136
145
|
content: formattedDate,
|
|
137
146
|
tag: "span"
|
|
@@ -140,6 +149,8 @@ export var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
|
|
|
140
149
|
title: name,
|
|
141
150
|
onClick: onMediaInlineCardClick,
|
|
142
151
|
isSelected: isSelected
|
|
143
|
-
})), mediaViewer);
|
|
152
|
+
})), mediaViewer));
|
|
144
153
|
};
|
|
145
|
-
export var MediaInlineCard = injectIntl(MediaInlineCardInternal
|
|
154
|
+
export var MediaInlineCard = injectIntl(MediaInlineCardInternal, {
|
|
155
|
+
enforceContext: false
|
|
156
|
+
});
|
package/dist/esm/root/styled.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
|
|
3
|
-
var _templateObject, _templateObject2;
|
|
3
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
4
4
|
|
|
5
5
|
import styled from 'styled-components';
|
|
6
6
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
@@ -32,4 +32,5 @@ export var InlinePlayerWrapper = styled.div(_templateObject2 || (_templateObject
|
|
|
32
32
|
}, function (props) {
|
|
33
33
|
return getDimensionsWithDefault(props.dimensions).height || 'auto';
|
|
34
34
|
}, borderRadius(), getSelectedBorderStyle);
|
|
35
|
-
InlinePlayerWrapper.displayName = 'InlinePlayerWrapper';
|
|
35
|
+
InlinePlayerWrapper.displayName = 'InlinePlayerWrapper';
|
|
36
|
+
export var FormattedMessageWrapper = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral([""])));
|
|
@@ -2,7 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { IconMessageWrapper } from './styled';
|
|
4
4
|
import { messages } from '@atlaskit/media-ui';
|
|
5
|
-
import { FormattedMessage } from 'react-intl';
|
|
5
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
6
|
+
import { FormattedMessageWrapper } from '../../styled';
|
|
6
7
|
export var IconMessage = function IconMessage(_ref) {
|
|
7
8
|
var messageDescriptor = _ref.messageDescriptor,
|
|
8
9
|
_ref$animated = _ref.animated,
|
|
@@ -12,7 +13,7 @@ export var IconMessage = function IconMessage(_ref) {
|
|
|
12
13
|
return /*#__PURE__*/React.createElement(IconMessageWrapper, {
|
|
13
14
|
animated: animated,
|
|
14
15
|
reducedFont: reducedFont
|
|
15
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, messageDescriptor));
|
|
16
|
+
}, /*#__PURE__*/React.createElement(FormattedMessageWrapper, null, /*#__PURE__*/React.createElement(FormattedMessage, messageDescriptor)));
|
|
16
17
|
};
|
|
17
18
|
export var CreatingPreview = function CreatingPreview(_ref2) {
|
|
18
19
|
var disableAnimation = _ref2.disableAnimation;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { errorIcon } from '@atlaskit/media-ui/errorIcon';
|
|
3
3
|
import { WarningIconWrapper, LoadingRateLimitedContainer, CouldntLoadWrapper, ErrorWrapper, LoadingRateLimitedTextWrapper } from './styled';
|
|
4
|
+
import { FormattedMessageWrapper } from '../../styled';
|
|
4
5
|
import { messages } from '@atlaskit/media-ui';
|
|
5
|
-
import { FormattedMessage } from 'react-intl';
|
|
6
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
6
7
|
import { Breakpoint } from '../common';
|
|
7
8
|
export var LoadingRateLimited = function LoadingRateLimited(_ref) {
|
|
8
9
|
var _ref$breakpoint = _ref.breakpoint,
|
|
@@ -12,5 +13,5 @@ export var LoadingRateLimited = function LoadingRateLimited(_ref) {
|
|
|
12
13
|
return /*#__PURE__*/React.createElement(LoadingRateLimitedContainer, null, /*#__PURE__*/React.createElement(WarningIconWrapper, null, errorIcon), /*#__PURE__*/React.createElement(LoadingRateLimitedTextWrapper, {
|
|
13
14
|
breakpoint: breakpoint,
|
|
14
15
|
positionBottom: positionBottom
|
|
15
|
-
}, /*#__PURE__*/React.createElement(CouldntLoadWrapper, null, /*#__PURE__*/React.createElement(FormattedMessage, messages.couldnt_load_file)), /*#__PURE__*/React.createElement(ErrorWrapper, null, /*#__PURE__*/React.createElement(FormattedMessage, messages.error_429))));
|
|
16
|
+
}, /*#__PURE__*/React.createElement(CouldntLoadWrapper, null, /*#__PURE__*/React.createElement(FormattedMessageWrapper, null, /*#__PURE__*/React.createElement(FormattedMessage, messages.couldnt_load_file))), /*#__PURE__*/React.createElement(ErrorWrapper, null, /*#__PURE__*/React.createElement(FormattedMessageWrapper, null, /*#__PURE__*/React.createElement(FormattedMessage, messages.error_429)))));
|
|
16
17
|
};
|
|
@@ -3,7 +3,8 @@ import { TitleBoxWrapper, ErrorMessageWrapper } from './styled';
|
|
|
3
3
|
import EditorWarningIcon from '@atlaskit/icon/glyph/editor/warning';
|
|
4
4
|
import { messages } from '@atlaskit/media-ui';
|
|
5
5
|
import { R300 } from '@atlaskit/theme/colors';
|
|
6
|
-
import { FormattedMessage } from 'react-intl';
|
|
6
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
7
|
+
import { FormattedMessageWrapper } from '../../styled';
|
|
7
8
|
export var FailedTitleBox = function FailedTitleBox(_ref) {
|
|
8
9
|
var breakpoint = _ref.breakpoint,
|
|
9
10
|
_ref$customMessage = _ref.customMessage,
|
|
@@ -14,5 +15,5 @@ export var FailedTitleBox = function FailedTitleBox(_ref) {
|
|
|
14
15
|
label: 'Warning',
|
|
15
16
|
size: 'small',
|
|
16
17
|
primaryColor: R300
|
|
17
|
-
}), /*#__PURE__*/React.createElement(FormattedMessage, customMessage)));
|
|
18
|
+
}), /*#__PURE__*/React.createElement(FormattedMessageWrapper, null, /*#__PURE__*/React.createElement(FormattedMessage, customMessage))));
|
|
18
19
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import LockFilledIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
3
|
-
import { injectIntl } from 'react-intl';
|
|
3
|
+
import { injectIntl } from 'react-intl-next';
|
|
4
4
|
import { TitleBoxWrapper, TitleBoxHeader, TitleBoxFooter, TitleBoxIcon } from './styled';
|
|
5
5
|
import { Truncate } from '@atlaskit/media-ui/truncateText';
|
|
6
6
|
import { formatDate } from '@atlaskit/media-ui/formatDate';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FormattedMessage } from 'react-intl';
|
|
2
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
3
3
|
import { messages } from '@atlaskit/media-ui';
|
|
4
4
|
export var getErrorMessage = function getErrorMessage(status) {
|
|
5
5
|
return status === 'error' && /*#__PURE__*/React.createElement(FormattedMessage, messages.failed_to_load);
|
package/dist/esm/version.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { WithMediaClientConfigProps } from '@atlaskit/media-client';
|
|
3
|
-
import type {
|
|
4
|
-
export declare type CardWithMediaClientConfigProps = WithMediaClientConfigProps<
|
|
3
|
+
import type { CardBaseProps } from '.';
|
|
4
|
+
export declare type CardWithMediaClientConfigProps = WithMediaClientConfigProps<CardBaseProps>;
|
|
5
5
|
declare const CardLoader: React.FC<CardWithMediaClientConfigProps>;
|
|
6
6
|
export default CardLoader;
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
/// <reference types="react-intl" />
|
|
2
1
|
import React, { Component } from 'react';
|
|
3
2
|
import { UIAnalyticsEvent, WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
3
|
import { FileIdentifier } from '@atlaskit/media-client';
|
|
5
4
|
import { Subscription } from 'rxjs/Subscription';
|
|
5
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
6
6
|
import { CardAction, CardProps, CardState } from '../..';
|
|
7
|
-
export declare type
|
|
8
|
-
export declare class CardBase extends Component<
|
|
7
|
+
export declare type CardBaseProps = CardProps & WithAnalyticsEventsProps & Partial<WrappedComponentProps>;
|
|
8
|
+
export declare class CardBase extends Component<CardBaseProps, CardState> {
|
|
9
9
|
private hasBeenMounted;
|
|
10
10
|
private timeElapsedTillCommenced;
|
|
11
11
|
subscription?: Subscription;
|
|
12
12
|
static defaultProps: Partial<CardProps>;
|
|
13
|
-
|
|
14
|
-
intl: ReactIntl.IntlShape;
|
|
15
|
-
};
|
|
16
|
-
constructor(props: CardWithAnalyticsEventsProps);
|
|
13
|
+
constructor(props: CardBaseProps);
|
|
17
14
|
componentDidMount(): void;
|
|
18
15
|
componentDidUpdate(prevProps: CardProps, prevState: CardState): void;
|
|
19
16
|
componentWillUnmount(): void;
|
|
@@ -52,4 +49,4 @@ export declare class CardBase extends Component<CardWithAnalyticsEventsProps, Ca
|
|
|
52
49
|
onClick: (event: React.MouseEvent<HTMLDivElement>, analyticsEvent?: UIAnalyticsEvent | undefined) => void;
|
|
53
50
|
onMouseEnter: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
54
51
|
}
|
|
55
|
-
export declare const Card: React.ComponentType<
|
|
52
|
+
export declare const Card: React.ComponentType<CardBaseProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { MouseEvent } from 'react';
|
|
2
|
-
import { FormattedMessage } from 'react-intl';
|
|
3
2
|
import { MediaItemType, FileDetails } from '@atlaskit/media-client';
|
|
4
3
|
import { WithAnalyticsEventsProps, UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
5
4
|
import { SharedCardProps, CardStatus } from '../index';
|
|
6
5
|
import { MediaCardError } from '../errors';
|
|
6
|
+
import { MessageDescriptor } from 'react-intl-next';
|
|
7
7
|
export interface CardViewOwnProps extends SharedCardProps {
|
|
8
8
|
readonly status: CardStatus;
|
|
9
9
|
readonly mediaItemType: MediaItemType;
|
|
@@ -39,7 +39,7 @@ export interface RenderConfigByStatus {
|
|
|
39
39
|
renderSpinner?: boolean;
|
|
40
40
|
renderFailedTitleBox?: boolean;
|
|
41
41
|
renderTickBox?: boolean;
|
|
42
|
-
customTitleMessage?:
|
|
42
|
+
customTitleMessage?: MessageDescriptor;
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
45
|
* This is classic vanilla CardView class. To create an instance of class one would need to supply
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
2
|
import { FileIdentifier, MediaClient } from '@atlaskit/media-client';
|
|
3
|
-
import {
|
|
3
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
import { MediaViewerDataSource } from '@atlaskit/media-viewer';
|
|
5
5
|
export interface MediaInlineCardProps {
|
|
6
6
|
identifier: FileIdentifier;
|
|
@@ -10,7 +10,5 @@ export interface MediaInlineCardProps {
|
|
|
10
10
|
onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
|
|
11
11
|
mediaViewerDataSource?: MediaViewerDataSource;
|
|
12
12
|
}
|
|
13
|
-
export declare const MediaInlineCardInternal: FC<MediaInlineCardProps &
|
|
14
|
-
export declare const MediaInlineCard: React.
|
|
15
|
-
WrappedComponent: ReactIntl.ComponentConstructor<MediaInlineCardProps & InjectedIntlProps>;
|
|
16
|
-
};
|
|
13
|
+
export declare const MediaInlineCardInternal: FC<MediaInlineCardProps & WrappedComponentProps>;
|
|
14
|
+
export declare const MediaInlineCard: React.FC<MediaInlineCardProps>;
|
|
@@ -12,4 +12,5 @@ declare type InlinePlayerWrapper = {
|
|
|
12
12
|
selected?: boolean;
|
|
13
13
|
};
|
|
14
14
|
export declare const InlinePlayerWrapper: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & InlinePlayerWrapper, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & InlinePlayerWrapper>;
|
|
15
|
+
export declare const FormattedMessageWrapper: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
|
15
16
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { MessageDescriptor } from 'react-intl-next';
|
|
3
3
|
export declare type InternalIconMessageProps = {
|
|
4
|
-
messageDescriptor:
|
|
4
|
+
messageDescriptor: MessageDescriptor;
|
|
5
5
|
animated?: boolean;
|
|
6
6
|
reducedFont?: boolean;
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Breakpoint } from '../common';
|
|
3
|
-
import {
|
|
3
|
+
import { MessageDescriptor } from 'react-intl-next';
|
|
4
4
|
export declare type OnRetryFunction = () => void;
|
|
5
5
|
export declare type FailedTitleBoxProps = {
|
|
6
6
|
breakpoint: Breakpoint;
|
|
7
|
-
customMessage?:
|
|
7
|
+
customMessage?: MessageDescriptor;
|
|
8
8
|
};
|
|
9
9
|
export declare const FailedTitleBox: React.FC<FailedTitleBoxProps>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react-intl" />
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { TitleBoxIcon as TitleBoxIconType } from '../../../index';
|
|
4
3
|
import { Breakpoint } from '../common';
|
|
@@ -12,13 +11,6 @@ export declare type TitleBoxProps = {
|
|
|
12
11
|
declare type FormattedDateProps = {
|
|
13
12
|
timestamp: number;
|
|
14
13
|
};
|
|
15
|
-
declare
|
|
16
|
-
intl?: {
|
|
17
|
-
locale?: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export declare const FormattedDate: React.ComponentClass<FormattedDateProps & WithIntlProps, any> & {
|
|
21
|
-
WrappedComponent: ReactIntl.ComponentConstructor<FormattedDateProps & WithIntlProps & ReactIntl.InjectedIntlProps>;
|
|
22
|
-
};
|
|
14
|
+
export declare const FormattedDate: React.ComponentType<FormattedDateProps>;
|
|
23
15
|
export declare const TitleBox: ({ name, createdAt, breakpoint, titleBoxBgColor, titleBoxIcon, }: TitleBoxProps) => JSX.Element;
|
|
24
16
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-card",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "73.0.0",
|
|
4
4
|
"description": "Includes all media card related components, CardView, CardViewSmall, Card...",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@atlaskit/in-product-testing": "^0.1.0",
|
|
36
36
|
"@atlaskit/media-client": "^14.3.0",
|
|
37
37
|
"@atlaskit/media-common": "^2.10.0",
|
|
38
|
-
"@atlaskit/media-ui": "^
|
|
39
|
-
"@atlaskit/media-viewer": "^
|
|
38
|
+
"@atlaskit/media-ui": "^18.0.0",
|
|
39
|
+
"@atlaskit/media-viewer": "^46.0.0",
|
|
40
40
|
"@atlaskit/spinner": "^15.1.0",
|
|
41
41
|
"@atlaskit/theme": "^12.0.0",
|
|
42
42
|
"@atlaskit/tooltip": "^17.5.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": "^16.8.0",
|
|
53
53
|
"react-dom": "^16.8.0",
|
|
54
|
-
"react-intl": "
|
|
54
|
+
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
55
55
|
"rxjs": "^5.5.0",
|
|
56
56
|
"styled-components": "^3.2.6"
|
|
57
57
|
},
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
"@atlaskit/button": "^16.1.0",
|
|
63
63
|
"@atlaskit/checkbox": "^12.3.0",
|
|
64
64
|
"@atlaskit/docs": "*",
|
|
65
|
-
"@atlaskit/inline-message": "^11.
|
|
65
|
+
"@atlaskit/inline-message": "^11.2.0",
|
|
66
66
|
"@atlaskit/item": "^12.0.0",
|
|
67
67
|
"@atlaskit/media-core": "^32.2.0",
|
|
68
|
-
"@atlaskit/media-test-helpers": "^
|
|
68
|
+
"@atlaskit/media-test-helpers": "^29.0.0",
|
|
69
69
|
"@atlaskit/radio": "^5.3.2",
|
|
70
70
|
"@atlaskit/range": "^5.1.0",
|
|
71
71
|
"@atlaskit/select": "^15.2.1",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"local-cypress": "^1.2.1",
|
|
85
85
|
"react": "^16.8.0",
|
|
86
86
|
"react-dom": "^16.8.0",
|
|
87
|
-
"react-intl": "
|
|
87
|
+
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
88
88
|
"rxjs": "^5.5.0",
|
|
89
89
|
"typescript": "3.9.6",
|
|
90
90
|
"uuid": "^3.1.0",
|