@atlaskit/media-ui 17.2.0 → 18.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 +42 -0
- package/dist/cjs/BlockCard/actions/AuthorizeAction.js +2 -2
- package/dist/cjs/BlockCard/actions/DownloadAction.js +3 -3
- package/dist/cjs/BlockCard/actions/ForbiddenAction.js +2 -2
- package/dist/cjs/BlockCard/actions/PreviewAction.js +4 -4
- package/dist/cjs/BlockCard/actions/RetryAction.js +2 -2
- package/dist/cjs/BlockCard/actions/ViewAction.js +3 -3
- package/dist/cjs/BlockCard/components/Action.js +1 -1
- package/dist/cjs/BlockCard/components/ActionIcon.js +1 -1
- package/dist/cjs/BlockCard/components/Content.js +1 -1
- package/dist/cjs/BlockCard/components/ContentFooter.js +1 -1
- package/dist/cjs/BlockCard/components/ContentHeader.js +1 -1
- package/dist/cjs/BlockCard/components/Frame.js +1 -1
- package/dist/cjs/BlockCard/components/Icon.js +1 -1
- package/dist/cjs/BlockCard/components/MetadataList.js +1 -1
- package/dist/cjs/BlockCard/components/ModalHeader.js +3 -3
- package/dist/cjs/BlockCard/components/Name.js +1 -1
- package/dist/cjs/BlockCard/index.js +14 -14
- package/dist/cjs/BlockCard/utils/constants.js +1 -1
- package/dist/cjs/BlockCard/utils/index.js +1 -1
- package/dist/cjs/BlockCard/views/ErroredView.js +3 -3
- package/dist/cjs/BlockCard/views/ForbiddenView.js +3 -3
- package/dist/cjs/BlockCard/views/NotFoundView.js +3 -3
- package/dist/cjs/BlockCard/views/ResolvedView.js +1 -1
- package/dist/cjs/BlockCard/views/ResolvingView.js +3 -3
- package/dist/cjs/BlockCard/views/UnauthorizedView.js +2 -2
- package/dist/cjs/EmbedCard/components/styled.js +1 -1
- package/dist/cjs/EmbedCard/views/ErroredView.js +3 -3
- package/dist/cjs/EmbedCard/views/UnresolvedView.js +4 -4
- package/dist/cjs/InlineCard/ErroredView/index.js +2 -2
- package/dist/cjs/InlineCard/ForbiddenView/index.js +4 -4
- package/dist/cjs/InlineCard/Icon.js +1 -1
- package/dist/cjs/InlineCard/IconAndTitleLayout/styled.js +1 -1
- package/dist/cjs/InlineCard/UnauthorisedView/index.js +2 -2
- package/dist/cjs/InlineCard/index.js +8 -8
- package/dist/cjs/InlineCard/styled.js +1 -1
- package/dist/cjs/MediaInlineCard/Icon.js +1 -1
- package/dist/cjs/MediaInlineCard/IconAndTitleLayout/styled.js +1 -1
- package/dist/cjs/MediaInlineCard/index.js +4 -4
- package/dist/cjs/camera.js +1 -1
- package/dist/cjs/classNames.js +24 -24
- package/dist/cjs/codeViewer.js +1 -1
- package/dist/cjs/customMediaPlayer/analytics/index.js +14 -14
- package/dist/cjs/customMediaPlayer/analytics/utils/analytics.js +2 -1
- package/dist/cjs/customMediaPlayer/fullscreen.js +1 -1
- package/dist/cjs/customMediaPlayer/index.js +3 -3
- package/dist/cjs/customMediaPlayer/playbackSpeedControls.js +3 -3
- package/dist/cjs/customMediaPlayer/styled.js +1 -1
- package/dist/cjs/embeds.js +6 -6
- package/dist/cjs/formatDate.js +1 -1
- package/dist/cjs/i18n/index.js +36 -36
- package/dist/cjs/imageMetaData/imageOrientationUtil.js +1 -1
- package/dist/cjs/imageMetaData/index.js +6 -6
- package/dist/cjs/imageMetaData/parsePNG.js +1 -1
- package/dist/cjs/imageMetaData/types.js +1 -1
- package/dist/cjs/index.js +135 -135
- package/dist/cjs/messages.js +2 -2
- package/dist/cjs/mixins.js +1 -1
- package/dist/cjs/shortcut.js +1 -1
- package/dist/cjs/truncateText.js +1 -1
- package/dist/cjs/util.js +4 -3
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/BlockCard/actions/AuthorizeAction.js +1 -1
- package/dist/es2019/BlockCard/actions/DownloadAction.js +1 -1
- package/dist/es2019/BlockCard/actions/ForbiddenAction.js +1 -1
- package/dist/es2019/BlockCard/actions/PreviewAction.js +1 -1
- package/dist/es2019/BlockCard/actions/RetryAction.js +1 -1
- package/dist/es2019/BlockCard/actions/ViewAction.js +1 -1
- package/dist/es2019/BlockCard/components/ModalHeader.js +1 -1
- package/dist/es2019/BlockCard/views/ErroredView.js +1 -1
- package/dist/es2019/BlockCard/views/ForbiddenView.js +1 -1
- package/dist/es2019/BlockCard/views/NotFoundView.js +1 -1
- package/dist/es2019/BlockCard/views/ResolvingView.js +1 -1
- package/dist/es2019/BlockCard/views/UnauthorizedView.js +1 -1
- package/dist/es2019/EmbedCard/views/ErroredView.js +1 -1
- package/dist/es2019/EmbedCard/views/UnresolvedView.js +1 -1
- package/dist/es2019/InlineCard/ErroredView/index.js +1 -1
- package/dist/es2019/InlineCard/ForbiddenView/index.js +1 -1
- package/dist/es2019/InlineCard/UnauthorisedView/index.js +1 -1
- package/dist/es2019/customMediaPlayer/index.js +1 -1
- package/dist/es2019/customMediaPlayer/playbackSpeedControls.js +1 -1
- package/dist/es2019/messages.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/BlockCard/actions/AuthorizeAction.js +1 -1
- package/dist/esm/BlockCard/actions/DownloadAction.js +1 -1
- package/dist/esm/BlockCard/actions/ForbiddenAction.js +1 -1
- package/dist/esm/BlockCard/actions/PreviewAction.js +1 -1
- package/dist/esm/BlockCard/actions/RetryAction.js +1 -1
- package/dist/esm/BlockCard/actions/ViewAction.js +1 -1
- package/dist/esm/BlockCard/components/ModalHeader.js +1 -1
- package/dist/esm/BlockCard/views/ErroredView.js +1 -1
- package/dist/esm/BlockCard/views/ForbiddenView.js +1 -1
- package/dist/esm/BlockCard/views/NotFoundView.js +1 -1
- package/dist/esm/BlockCard/views/ResolvingView.js +1 -1
- package/dist/esm/BlockCard/views/UnauthorizedView.js +1 -1
- package/dist/esm/EmbedCard/views/ErroredView.js +1 -1
- package/dist/esm/EmbedCard/views/UnresolvedView.js +1 -1
- package/dist/esm/InlineCard/ErroredView/index.js +1 -1
- package/dist/esm/InlineCard/ForbiddenView/index.js +1 -1
- package/dist/esm/InlineCard/UnauthorisedView/index.js +1 -1
- package/dist/esm/customMediaPlayer/index.js +1 -1
- package/dist/esm/customMediaPlayer/playbackSpeedControls.js +1 -1
- package/dist/esm/messages.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/BlockCard/actions/ForbiddenAction.d.ts +1 -2
- package/dist/types/BlockCard/components/ActionIcon.d.ts +1 -0
- package/dist/types/BlockCard/components/ActionList.d.ts +1 -0
- package/dist/types/BlockCard/components/Link.d.ts +1 -0
- package/dist/types/BlockCard/components/MetadataList.d.ts +1 -0
- package/dist/types/BlockCard/components/Thumbnail.d.ts +1 -0
- package/dist/types/BlockCard/views/ResolvingView.d.ts +1 -0
- package/dist/types/EmbedCard/views/ErroredView.d.ts +1 -0
- package/dist/types/customMediaPlayer/icons.d.ts +1 -0
- package/dist/types/customMediaPlayer/index.d.ts +3 -3
- package/dist/types/customMediaPlayer/playbackSpeedControls.d.ts +3 -5
- package/dist/types/errorIcon.d.ts +1 -0
- package/dist/types/messages.d.ts +2 -2
- package/dist/types/mime-type-icon.d.ts +1 -0
- package/package.json +4 -4
|
@@ -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 { downloadUrl } from '@atlaskit/media-common';
|
|
4
4
|
import { messages } from '../../messages';
|
|
5
5
|
export async function downloadFunction({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { FormattedMessage } from 'react-intl';
|
|
3
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
4
4
|
import { messages } from '../../messages';
|
|
5
5
|
export const ForbiddenAction = (handler, id = 'connect-other-account', message = messages.try_another_account, context = '') => ({
|
|
6
6
|
id,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import ReactDOM from 'react-dom';
|
|
4
|
-
import { IntlProvider, FormattedMessage } from 'react-intl';
|
|
4
|
+
import { IntlProvider, FormattedMessage } from 'react-intl-next';
|
|
5
5
|
import { messages } from '../../messages';
|
|
6
6
|
|
|
7
7
|
/*
|
|
@@ -6,7 +6,7 @@ import EditorCloseIcon from '@atlaskit/icon/glyph/editor/close';
|
|
|
6
6
|
import ShortcutIcon from '@atlaskit/icon/glyph/shortcut';
|
|
7
7
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
8
8
|
import { N100, N30A } from '@atlaskit/theme/colors';
|
|
9
|
-
import { FormattedMessage } from 'react-intl';
|
|
9
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
10
10
|
import { gs } from '../utils';
|
|
11
11
|
import { Icon } from './Icon';
|
|
12
12
|
import { MetadataList } from './MetadataList';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/core';
|
|
3
|
-
import { FormattedMessage } from 'react-intl';
|
|
3
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
4
4
|
import { useMemo } from 'react';
|
|
5
5
|
import { R300 } from '@atlaskit/theme/colors';
|
|
6
6
|
import WarningIcon from '@atlaskit/icon/glyph/warning';
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { jsx } from '@emotion/core';
|
|
5
|
-
import { FormattedMessage } from 'react-intl';
|
|
5
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import { R300 } from '@atlaskit/theme/colors';
|
|
7
7
|
import LockIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
8
8
|
import { Frame } from '../components/Frame';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/core';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { FormattedMessage } from 'react-intl';
|
|
4
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
5
5
|
import { R300 } from '@atlaskit/theme/colors';
|
|
6
6
|
import WarningIcon from '@atlaskit/icon/glyph/warning';
|
|
7
7
|
import { Frame } from '../components/Frame';
|
|
@@ -5,7 +5,7 @@ import { N50, N90 } from '@atlaskit/theme/colors';
|
|
|
5
5
|
import { fontSize } from '@atlaskit/theme/constants';
|
|
6
6
|
import { Frame } from '../components/Frame';
|
|
7
7
|
import { gs } from '../utils';
|
|
8
|
-
import { FormattedMessage } from 'react-intl';
|
|
8
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
9
9
|
import { messages } from '../../messages';
|
|
10
10
|
export const blockCardResolvingViewClassName = 'block-card-resolving-view';
|
|
11
11
|
export const ResolvingView = ({
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { jsx } from '@emotion/core';
|
|
5
|
-
import { FormattedMessage } from 'react-intl';
|
|
5
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import { Frame } from '../components/Frame';
|
|
7
7
|
import { Provider } from '../components/Provider';
|
|
8
8
|
import { Byline } from '../components/Byline';
|
|
@@ -5,7 +5,7 @@ import ErrorIcon from '@atlaskit/icon/glyph/error';
|
|
|
5
5
|
import { fontSize } from '@atlaskit/theme/constants';
|
|
6
6
|
import { R300 } from '@atlaskit/theme/colors';
|
|
7
7
|
import { Frame } from '../../BlockCard/components/Frame';
|
|
8
|
-
import { FormattedMessage } from 'react-intl';
|
|
8
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
9
9
|
import { messages } from '../../messages';
|
|
10
10
|
import { gs } from '../../BlockCard/utils';
|
|
11
11
|
export const ErroredView = ({
|
|
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
import { jsx } from '@emotion/core';
|
|
5
5
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
6
6
|
import { fontSize } from '@atlaskit/theme/constants';
|
|
7
|
-
import { FormattedMessage } from 'react-intl';
|
|
7
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
8
8
|
import { messages } from '../../messages';
|
|
9
9
|
import { gs as gridSize } from '../../BlockCard/utils';
|
|
10
10
|
export const EmbedCardUnresolvedView = ({
|
|
@@ -7,7 +7,7 @@ import { Frame } from '../Frame';
|
|
|
7
7
|
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
8
8
|
import { AKIconWrapper } from '../Icon';
|
|
9
9
|
import { messages } from '../../messages';
|
|
10
|
-
import { FormattedMessage } from 'react-intl';
|
|
10
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
11
11
|
import { LinkAppearance, IconStyledButton, LowercaseAppearance, NoLinkAppearance } from '../styled';
|
|
12
12
|
export class InlineCardErroredView extends React.Component {
|
|
13
13
|
constructor(...args) {
|
|
@@ -8,7 +8,7 @@ import { Frame } from '../Frame';
|
|
|
8
8
|
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
9
9
|
import { AKIconWrapper } from '../Icon';
|
|
10
10
|
import { messages } from '../../messages';
|
|
11
|
-
import { FormattedMessage } from 'react-intl';
|
|
11
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
12
12
|
import { IconStyledButton, LowercaseAppearance, LinkAppearance } from '../styled';
|
|
13
13
|
const FallbackForbiddenIcon = /*#__PURE__*/React.createElement(AKIconWrapper, null, /*#__PURE__*/React.createElement(LockIcon, {
|
|
14
14
|
label: "error",
|
|
@@ -3,7 +3,7 @@ import Button from '@atlaskit/button/custom-theme-button';
|
|
|
3
3
|
import LockIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
4
4
|
import { N500, R400 } from '@atlaskit/theme/colors';
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { FormattedMessage } from 'react-intl';
|
|
6
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
7
7
|
import { messages } from '../../messages';
|
|
8
8
|
import { Frame } from '../Frame';
|
|
9
9
|
import { AKIconWrapper } from '../Icon';
|
|
@@ -23,7 +23,7 @@ import { formatDuration } from '../formatDuration';
|
|
|
23
23
|
import { hideControlsClassName } from '../classNames';
|
|
24
24
|
import { Shortcut, keyCodes } from '../shortcut';
|
|
25
25
|
import { toggleFullscreen, getFullscreenElement } from './fullscreen';
|
|
26
|
-
import { injectIntl } from 'react-intl';
|
|
26
|
+
import { injectIntl } from 'react-intl-next';
|
|
27
27
|
import { messages } from '../messages';
|
|
28
28
|
import simultaneousPlayManager from './simultaneousPlayManager';
|
|
29
29
|
import { TimeSaver } from './timeSaver';
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { PopupSelect } from '@atlaskit/select';
|
|
5
5
|
import { B200, N900, N0, N600 } from '@atlaskit/theme/colors';
|
|
6
|
-
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
6
|
+
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
7
7
|
import Tooltip from '@atlaskit/tooltip';
|
|
8
8
|
import MediaButton from '../MediaButton';
|
|
9
9
|
import { messages } from '../messages';
|
package/dist/es2019/messages.js
CHANGED
package/dist/es2019/version.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { FormattedMessage } from 'react-intl';
|
|
4
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
5
5
|
import { downloadUrl } from '@atlaskit/media-common';
|
|
6
6
|
import { messages } from '../../messages';
|
|
7
7
|
export function downloadFunction(_x) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { FormattedMessage } from 'react-intl';
|
|
3
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
4
4
|
import { messages } from '../../messages';
|
|
5
5
|
export var ForbiddenAction = function ForbiddenAction(handler) {
|
|
6
6
|
var id = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'connect-other-account';
|
|
@@ -10,7 +10,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
10
10
|
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import ReactDOM from 'react-dom';
|
|
13
|
-
import { IntlProvider, FormattedMessage } from 'react-intl';
|
|
13
|
+
import { IntlProvider, FormattedMessage } from 'react-intl-next';
|
|
14
14
|
import { messages } from '../../messages';
|
|
15
15
|
|
|
16
16
|
/*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { FormattedMessage } from 'react-intl';
|
|
4
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
5
5
|
import { messages } from '../../messages';
|
|
6
6
|
export var RetryAction = function RetryAction(handler) {
|
|
7
7
|
return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { FormattedMessage } from 'react-intl';
|
|
4
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
5
5
|
import { messages } from '../../messages';
|
|
6
6
|
export function viewFunction(_x) {
|
|
7
7
|
return _viewFunction.apply(this, arguments);
|
|
@@ -6,7 +6,7 @@ import EditorCloseIcon from '@atlaskit/icon/glyph/editor/close';
|
|
|
6
6
|
import ShortcutIcon from '@atlaskit/icon/glyph/shortcut';
|
|
7
7
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
8
8
|
import { N100, N30A } from '@atlaskit/theme/colors';
|
|
9
|
-
import { FormattedMessage } from 'react-intl';
|
|
9
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
10
10
|
import { gs } from '../utils';
|
|
11
11
|
import { Icon } from './Icon';
|
|
12
12
|
import { MetadataList } from './MetadataList';
|
|
@@ -6,7 +6,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6
6
|
|
|
7
7
|
/** @jsx jsx */
|
|
8
8
|
import { jsx } from '@emotion/core';
|
|
9
|
-
import { FormattedMessage } from 'react-intl';
|
|
9
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
10
10
|
import { useMemo } from 'react';
|
|
11
11
|
import { R300 } from '@atlaskit/theme/colors';
|
|
12
12
|
import WarningIcon from '@atlaskit/icon/glyph/warning';
|
|
@@ -3,7 +3,7 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
3
3
|
|
|
4
4
|
/** @jsx jsx */
|
|
5
5
|
import { jsx } from '@emotion/core';
|
|
6
|
-
import { FormattedMessage } from 'react-intl';
|
|
6
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
7
7
|
import { R300 } from '@atlaskit/theme/colors';
|
|
8
8
|
import LockIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
9
9
|
import { Frame } from '../components/Frame';
|
|
@@ -7,7 +7,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
7
7
|
/** @jsx jsx */
|
|
8
8
|
import { jsx } from '@emotion/core';
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import { FormattedMessage } from 'react-intl';
|
|
10
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
11
11
|
import { R300 } from '@atlaskit/theme/colors';
|
|
12
12
|
import WarningIcon from '@atlaskit/icon/glyph/warning';
|
|
13
13
|
import { Frame } from '../components/Frame';
|
|
@@ -5,7 +5,7 @@ import { N50, N90 } from '@atlaskit/theme/colors';
|
|
|
5
5
|
import { fontSize } from '@atlaskit/theme/constants';
|
|
6
6
|
import { Frame } from '../components/Frame';
|
|
7
7
|
import { gs } from '../utils';
|
|
8
|
-
import { FormattedMessage } from 'react-intl';
|
|
8
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
9
9
|
import { messages } from '../../messages';
|
|
10
10
|
export var blockCardResolvingViewClassName = 'block-card-resolving-view';
|
|
11
11
|
export var ResolvingView = function ResolvingView(_ref) {
|
|
@@ -7,7 +7,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
7
7
|
|
|
8
8
|
/** @jsx jsx */
|
|
9
9
|
import { jsx } from '@emotion/core';
|
|
10
|
-
import { FormattedMessage } from 'react-intl';
|
|
10
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
11
11
|
import { Frame } from '../components/Frame';
|
|
12
12
|
import { Provider } from '../components/Provider';
|
|
13
13
|
import { Byline } from '../components/Byline';
|
|
@@ -5,7 +5,7 @@ import ErrorIcon from '@atlaskit/icon/glyph/error';
|
|
|
5
5
|
import { fontSize } from '@atlaskit/theme/constants';
|
|
6
6
|
import { R300 } from '@atlaskit/theme/colors';
|
|
7
7
|
import { Frame } from '../../BlockCard/components/Frame';
|
|
8
|
-
import { FormattedMessage } from 'react-intl';
|
|
8
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
9
9
|
import { messages } from '../../messages';
|
|
10
10
|
import { gs } from '../../BlockCard/utils';
|
|
11
11
|
export var ErroredView = function ErroredView(_ref) {
|
|
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
import { jsx } from '@emotion/core';
|
|
5
5
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
6
6
|
import { fontSize } from '@atlaskit/theme/constants';
|
|
7
|
-
import { FormattedMessage } from 'react-intl';
|
|
7
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
8
8
|
import { messages } from '../../messages';
|
|
9
9
|
import { gs as gridSize } from '../../BlockCard/utils';
|
|
10
10
|
export var EmbedCardUnresolvedView = function EmbedCardUnresolvedView(_ref) {
|
|
@@ -18,7 +18,7 @@ import { Frame } from '../Frame';
|
|
|
18
18
|
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
19
19
|
import { AKIconWrapper } from '../Icon';
|
|
20
20
|
import { messages } from '../../messages';
|
|
21
|
-
import { FormattedMessage } from 'react-intl';
|
|
21
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
22
22
|
import { LinkAppearance, IconStyledButton, LowercaseAppearance, NoLinkAppearance } from '../styled';
|
|
23
23
|
export var InlineCardErroredView = /*#__PURE__*/function (_React$Component) {
|
|
24
24
|
_inherits(InlineCardErroredView, _React$Component);
|
|
@@ -19,7 +19,7 @@ import { Frame } from '../Frame';
|
|
|
19
19
|
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
20
20
|
import { AKIconWrapper } from '../Icon';
|
|
21
21
|
import { messages } from '../../messages';
|
|
22
|
-
import { FormattedMessage } from 'react-intl';
|
|
22
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
23
23
|
import { IconStyledButton, LowercaseAppearance, LinkAppearance } from '../styled';
|
|
24
24
|
var FallbackForbiddenIcon = /*#__PURE__*/React.createElement(AKIconWrapper, null, /*#__PURE__*/React.createElement(LockIcon, {
|
|
25
25
|
label: "error",
|
|
@@ -14,7 +14,7 @@ import Button from '@atlaskit/button/custom-theme-button';
|
|
|
14
14
|
import LockIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
15
15
|
import { N500, R400 } from '@atlaskit/theme/colors';
|
|
16
16
|
import React from 'react';
|
|
17
|
-
import { FormattedMessage } from 'react-intl';
|
|
17
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
18
18
|
import { messages } from '../../messages';
|
|
19
19
|
import { Frame } from '../Frame';
|
|
20
20
|
import { AKIconWrapper } from '../Icon';
|
|
@@ -38,7 +38,7 @@ import { formatDuration } from '../formatDuration';
|
|
|
38
38
|
import { hideControlsClassName } from '../classNames';
|
|
39
39
|
import { Shortcut, keyCodes } from '../shortcut';
|
|
40
40
|
import { toggleFullscreen, getFullscreenElement } from './fullscreen';
|
|
41
|
-
import { injectIntl } from 'react-intl';
|
|
41
|
+
import { injectIntl } from 'react-intl-next';
|
|
42
42
|
import { messages } from '../messages';
|
|
43
43
|
import simultaneousPlayManager from './simultaneousPlayManager';
|
|
44
44
|
import { TimeSaver } from './timeSaver';
|
|
@@ -18,7 +18,7 @@ import React from 'react';
|
|
|
18
18
|
import { Component } from 'react';
|
|
19
19
|
import { PopupSelect } from '@atlaskit/select';
|
|
20
20
|
import { B200, N900, N0, N600 } from '@atlaskit/theme/colors';
|
|
21
|
-
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
21
|
+
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
22
22
|
import Tooltip from '@atlaskit/tooltip';
|
|
23
23
|
import MediaButton from '../MediaButton';
|
|
24
24
|
import { messages } from '../messages';
|
package/dist/esm/messages.js
CHANGED
package/dist/esm/version.json
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { FormattedMessage } from 'react-intl';
|
|
2
1
|
import { ActionProps } from '../components/Action';
|
|
3
|
-
export declare const ForbiddenAction: (handler: () => void, id?: string, message?:
|
|
2
|
+
export declare const ForbiddenAction: (handler: () => void, id?: string, message?: import("react-intl-next").MessageDescriptor, context?: string) => ActionProps;
|
|
@@ -5,7 +5,7 @@ import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
|
5
5
|
import { NumericalCardDimensions } from '@atlaskit/media-common';
|
|
6
6
|
import { CustomMediaPlayerType } from './types';
|
|
7
7
|
import { WithPlaybackProps, WithMediaPlayerState } from './analytics';
|
|
8
|
-
import {
|
|
8
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
9
9
|
import { WithShowControlMethodProp } from '../types';
|
|
10
10
|
import { TimeSaverConfig } from './timeSaver';
|
|
11
11
|
export interface CustomMediaPlayerProps extends WithPlaybackProps, WithShowControlMethodProp {
|
|
@@ -25,7 +25,7 @@ export interface CustomMediaPlayerProps extends WithPlaybackProps, WithShowContr
|
|
|
25
25
|
export interface CustomMediaPlayerState extends WithMediaPlayerState {
|
|
26
26
|
}
|
|
27
27
|
export declare type Action = () => void;
|
|
28
|
-
export declare class CustomMediaPlayerBase extends Component<CustomMediaPlayerProps &
|
|
28
|
+
export declare class CustomMediaPlayerBase extends Component<CustomMediaPlayerProps & WrappedComponentProps & WithAnalyticsEventsProps, CustomMediaPlayerState> {
|
|
29
29
|
videoWrapperRef?: HTMLElement;
|
|
30
30
|
private actions?;
|
|
31
31
|
private videoState;
|
|
@@ -72,4 +72,4 @@ export declare class CustomMediaPlayerBase extends Component<CustomMediaPlayerPr
|
|
|
72
72
|
private pausePlayByButtonClick;
|
|
73
73
|
render(): JSX.Element;
|
|
74
74
|
}
|
|
75
|
-
export declare const CustomMediaPlayer: React.
|
|
75
|
+
export declare const CustomMediaPlayer: React.ComponentType<CustomMediaPlayerProps & WithAnalyticsEventsProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { NumericalCardDimensions } from '@atlaskit/media-common';
|
|
4
|
-
import {
|
|
4
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
5
5
|
export interface PlaybackSpeedControlsProps {
|
|
6
6
|
playbackSpeed: number;
|
|
7
7
|
onPlaybackSpeedChange: (playbackSpeed: number) => void;
|
|
@@ -11,7 +11,7 @@ export interface PlaybackSpeedControlsProps {
|
|
|
11
11
|
export interface PlaybackSpeedControlsState {
|
|
12
12
|
popupHeight: number;
|
|
13
13
|
}
|
|
14
|
-
export declare class PlaybackSpeedControls extends Component<PlaybackSpeedControlsProps &
|
|
14
|
+
export declare class PlaybackSpeedControls extends Component<PlaybackSpeedControlsProps & WrappedComponentProps, PlaybackSpeedControlsState> {
|
|
15
15
|
state: PlaybackSpeedControlsState;
|
|
16
16
|
private onPlaybackSpeedChange;
|
|
17
17
|
private speedOptions;
|
|
@@ -19,7 +19,5 @@ export declare class PlaybackSpeedControls extends Component<PlaybackSpeedContro
|
|
|
19
19
|
private onResize;
|
|
20
20
|
render(): JSX.Element;
|
|
21
21
|
}
|
|
22
|
-
declare const _default: React.
|
|
23
|
-
WrappedComponent: ReactIntl.ComponentConstructor<PlaybackSpeedControlsProps & InjectedIntlProps>;
|
|
24
|
-
};
|
|
22
|
+
declare const _default: React.FC<PlaybackSpeedControlsProps>;
|
|
25
23
|
export default _default;
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MessageDescriptor } from 'react-intl-next';
|
|
2
2
|
export declare type RequestAccessMessageKey = 'request_access_description' | 'click_to_join_description' | 'request_access_pending_description' | 'click_to_join' | 'request_access' | 'request_access_pending' | 'forbidden_description' | 'request_denied_description';
|
|
3
3
|
export declare type MessageKey = 'retry' | 'failed_to_load' | 'failed_to_upload' | 'recent_uploads' | 'upload_file' | 'drag_and_drop_your_files' | 'drag_and_drop_your_files_and_folders' | 'drop_your_files' | 'upload' | 'cancel' | 'search_all_gifs' | 'cant_retrieve_gifs' | 'cant_retrieve_files' | 'check_your_network' | 'try_again' | 'try_another_account' | 'no_gifs_found' | 'no_gifs_found_suggestion' | 'load_more_gifs' | 'add_account' | 'unlink_account' | 'upload_file_from' | 'connect_to' | 'connect_account_description' | 'connect_link_account' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'invalid_permissions' | 'invalid_permissions_description' | 'upload_an_avatar' | 'loading' | 'loading_file' | 'save' | 'or' | 'upload_photo' | 'default_avatars' | 'drag_and_drop_images_here' | 'upload_image' | 'image_url_invalid_error' | 'image_format_invalid_error' | 'image_size_too_large_error' | 'something_went_wrong' | 'might_be_a_hiccup' | 'couldnt_generate_preview' | 'couldnt_generate_encrypted_entry_preview' | 'cant_preview_file_type' | 'item_not_found_in_list' | 'not_found_title' | 'not_found_description' | 'no_pdf_artifacts' | 'give_feedback' | 'try_downloading_file' | 'webgl_warning_description' | 'unable_to_annotate_image' | 'learn_more' | 'accounts' | 'actions' | 'error_hint_retry' | 'error_hint_critical' | 'close' | 'could_not_load_editor' | 'could_not_save_image' | 'could_not_load_link' | 'annotate' | 'annotate_tool_arrow' | 'annotate_tool_text' | 'annotate_tool_shape' | 'annotate_tool_brush' | 'annotate_tool_blur' | 'annotate_tool_line_thickness' | 'annotate_tool_color' | 'annotate_confirmation_close_anyway' | 'annotate_confirmation_heading' | 'annotate_confirmation_content' | 'drop_your_files_here' | 'share_files_instantly' | 'insert_files' | 'zoom_out' | 'zoom_in' | 'remove_image' | 'play' | 'pause' | 'disable_fullscreen' | 'enable_fullscreen' | 'error_loading_file' | 'error_generating_preview' | 'download' | 'unknown' | 'document' | 'audio' | 'video' | 'image' | 'archive' | 'email' | 'text' | 'displayThumbnail' | 'search' | 'view' | 'viewIn' | 'viewOriginal' | 'playbackSpeed' | 'skipBackward' | 'skipForward' | 'playbackDefaultSpeed' | 'preview' | 'preview_unavailable' | 'preview_currently_unavailable' | 'creating_preview' | 'couldnt_load_file' | 'error_429' | 'close_and_reopen' | 'viewer_rateLimited' | 'zip_entry_load_fail' | RequestAccessMessageKey;
|
|
4
4
|
declare type Messages = {
|
|
5
|
-
[K in MessageKey]:
|
|
5
|
+
[K in MessageKey]: MessageDescriptor;
|
|
6
6
|
};
|
|
7
7
|
export declare const messages: Messages;
|
|
8
8
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.0.0",
|
|
4
4
|
"description": "Includes common components and utilities used by other media packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"react": "^16.8.0",
|
|
74
74
|
"react-dom": "^16.8.0",
|
|
75
|
-
"react-intl": "
|
|
75
|
+
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
76
76
|
"styled-components": "^3.2.6"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@atlaskit/docs": "*",
|
|
84
84
|
"@atlaskit/field-base": "^15.0.5",
|
|
85
85
|
"@atlaskit/media-integration-test-helpers": "^2.5.0",
|
|
86
|
-
"@atlaskit/media-test-helpers": "^
|
|
86
|
+
"@atlaskit/media-test-helpers": "^29.0.0",
|
|
87
87
|
"@atlaskit/page": "^12.0.6",
|
|
88
88
|
"@atlaskit/ssr": "*",
|
|
89
89
|
"@atlaskit/textfield": "^5.0.5",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"jsverify": "^0.8.3",
|
|
99
99
|
"react": "^16.8.0",
|
|
100
100
|
"react-dom": "^16.8.0",
|
|
101
|
-
"react-intl": "
|
|
101
|
+
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
102
102
|
"typescript": "3.9.6",
|
|
103
103
|
"wait-for-expect": "^1.2.0"
|
|
104
104
|
},
|