@atlaskit/media-ui 19.0.0 → 21.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 +35 -0
- package/dist/cjs/MediaInlineCard/IconAndTitleLayout/styled.js +2 -2
- package/dist/cjs/classNames.js +0 -101
- package/dist/cjs/customMediaPlayer/analytics/utils/playbackAttributes.js +3 -7
- package/dist/cjs/index.js +0 -112
- package/dist/cjs/mime-type-icon.js +5 -3
- package/dist/cjs/util.js +1 -8
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/MediaInlineCard/IconAndTitleLayout/styled.js +2 -4
- package/dist/es2019/classNames.js +1 -12
- package/dist/es2019/customMediaPlayer/analytics/utils/playbackAttributes.js +1 -2
- package/dist/es2019/index.js +0 -5
- package/dist/es2019/mime-type-icon.js +4 -3
- package/dist/es2019/util.js +1 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/MediaInlineCard/IconAndTitleLayout/styled.js +2 -2
- package/dist/esm/classNames.js +1 -12
- package/dist/esm/customMediaPlayer/analytics/utils/playbackAttributes.js +1 -2
- package/dist/esm/index.js +0 -5
- package/dist/esm/mime-type-icon.js +5 -3
- package/dist/esm/util.js +1 -4
- package/dist/esm/version.json +1 -1
- package/dist/types/MediaInlineCard/Icon.d.ts +2 -2
- package/dist/types/MediaInlineCard/IconAndTitleLayout/styled.d.ts +9 -9
- package/dist/types/MediaInlineCard/LoadingView/styled.d.ts +3 -3
- package/dist/types/classNames.d.ts +0 -11
- package/dist/types/customMediaPlayer/getControlsWrapperClassName.d.ts +1 -1
- package/dist/types/customMediaPlayer/playPauseBlanket.d.ts +1 -1
- package/dist/types/customMediaPlayer/styled.d.ts +14 -14
- package/dist/types/index.d.ts +1 -10
- package/dist/types/mime-type-icon.d.ts +2 -1
- package/dist/types/modalSpinner.d.ts +2 -2
- package/dist/types/types.d.ts +0 -7
- package/dist/types/util.d.ts +0 -1
- package/package.json +7 -17
- package/dist/cjs/BlockCard/actions/AuthorizeAction.js +0 -29
- package/dist/cjs/BlockCard/actions/DownloadAction.js +0 -69
- package/dist/cjs/BlockCard/actions/ForbiddenAction.js +0 -38
- package/dist/cjs/BlockCard/actions/PreviewAction.js +0 -134
- package/dist/cjs/BlockCard/actions/RetryAction.js +0 -49
- package/dist/cjs/BlockCard/actions/ViewAction.js +0 -67
- package/dist/cjs/BlockCard/components/Action.js +0 -70
- package/dist/cjs/BlockCard/components/ActionIcon.js +0 -57
- package/dist/cjs/BlockCard/components/ActionList.js +0 -75
- package/dist/cjs/BlockCard/components/Byline.js +0 -46
- package/dist/cjs/BlockCard/components/CollaboratorList.js +0 -53
- package/dist/cjs/BlockCard/components/Content.js +0 -33
- package/dist/cjs/BlockCard/components/ContentFooter.js +0 -33
- package/dist/cjs/BlockCard/components/ContentHeader.js +0 -34
- package/dist/cjs/BlockCard/components/Emoji.js +0 -31
- package/dist/cjs/BlockCard/components/Frame.js +0 -95
- package/dist/cjs/BlockCard/components/Icon.js +0 -60
- package/dist/cjs/BlockCard/components/Link.js +0 -28
- package/dist/cjs/BlockCard/components/Metadata.js +0 -60
- package/dist/cjs/BlockCard/components/MetadataList.js +0 -43
- package/dist/cjs/BlockCard/components/Modal.js +0 -132
- package/dist/cjs/BlockCard/components/ModalHeader.js +0 -111
- package/dist/cjs/BlockCard/components/Name.js +0 -47
- package/dist/cjs/BlockCard/components/Provider.js +0 -49
- package/dist/cjs/BlockCard/components/Thumbnail.js +0 -71
- package/dist/cjs/BlockCard/components/UnresolvedText.js +0 -22
- package/dist/cjs/BlockCard/index.js +0 -79
- package/dist/cjs/BlockCard/utils/constants.js +0 -13
- package/dist/cjs/BlockCard/utils/handlers.js +0 -16
- package/dist/cjs/BlockCard/utils/index.js +0 -27
- package/dist/cjs/BlockCard/views/ErroredView.js +0 -100
- package/dist/cjs/BlockCard/views/ForbiddenView.js +0 -112
- package/dist/cjs/BlockCard/views/NotFoundView.js +0 -96
- package/dist/cjs/BlockCard/views/ResolvedView.js +0 -144
- package/dist/cjs/BlockCard/views/ResolvingView.js +0 -55
- package/dist/cjs/BlockCard/views/UnauthorizedView.js +0 -93
- package/dist/cjs/EmbedCard/components/ExpandedFrame.js +0 -93
- package/dist/cjs/EmbedCard/components/Frame.js +0 -65
- package/dist/cjs/EmbedCard/components/ImageIcon.js +0 -44
- package/dist/cjs/EmbedCard/components/styled.js +0 -187
- package/dist/cjs/EmbedCard/views/ErroredView.js +0 -66
- package/dist/cjs/EmbedCard/views/ForbiddenView.js +0 -85
- package/dist/cjs/EmbedCard/views/NotFoundView.js +0 -51
- package/dist/cjs/EmbedCard/views/ResolvedView.js +0 -75
- package/dist/cjs/EmbedCard/views/UnauthorisedView.js +0 -58
- package/dist/cjs/EmbedCard/views/UnresolvedView.js +0 -83
- package/dist/cjs/InlineCard/ErroredView/index.js +0 -122
- package/dist/cjs/InlineCard/ForbiddenView/index.js +0 -148
- package/dist/cjs/InlineCard/Frame/index.js +0 -71
- package/dist/cjs/InlineCard/Frame/styled.js +0 -96
- package/dist/cjs/InlineCard/Icon.js +0 -37
- package/dist/cjs/InlineCard/IconAndTitleLayout/index.js +0 -140
- package/dist/cjs/InlineCard/IconAndTitleLayout/styled.js +0 -76
- package/dist/cjs/InlineCard/ResolvedView/index.js +0 -88
- package/dist/cjs/InlineCard/ResolvingView/index.js +0 -91
- package/dist/cjs/InlineCard/ResolvingView/styled.js +0 -19
- package/dist/cjs/InlineCard/UnauthorisedView/index.js +0 -118
- package/dist/cjs/InlineCard/index.js +0 -45
- package/dist/cjs/InlineCard/styled.js +0 -43
- package/dist/cjs/LinkView/index.js +0 -51
- package/dist/cjs/common.js +0 -5
- package/dist/cjs/embeds.js +0 -61
- package/dist/es2019/BlockCard/actions/AuthorizeAction.js +0 -9
- package/dist/es2019/BlockCard/actions/DownloadAction.js +0 -22
- package/dist/es2019/BlockCard/actions/ForbiddenAction.js +0 -14
- package/dist/es2019/BlockCard/actions/PreviewAction.js +0 -70
- package/dist/es2019/BlockCard/actions/RetryAction.js +0 -8
- package/dist/es2019/BlockCard/actions/ViewAction.js +0 -21
- package/dist/es2019/BlockCard/components/Action.js +0 -42
- package/dist/es2019/BlockCard/components/ActionIcon.js +0 -42
- package/dist/es2019/BlockCard/components/ActionList.js +0 -42
- package/dist/es2019/BlockCard/components/Byline.js +0 -33
- package/dist/es2019/BlockCard/components/CollaboratorList.js +0 -36
- package/dist/es2019/BlockCard/components/Content.js +0 -18
- package/dist/es2019/BlockCard/components/ContentFooter.js +0 -18
- package/dist/es2019/BlockCard/components/ContentHeader.js +0 -21
- package/dist/es2019/BlockCard/components/Emoji.js +0 -18
- package/dist/es2019/BlockCard/components/Frame.js +0 -68
- package/dist/es2019/BlockCard/components/Icon.js +0 -42
- package/dist/es2019/BlockCard/components/Link.js +0 -17
- package/dist/es2019/BlockCard/components/Metadata.js +0 -46
- package/dist/es2019/BlockCard/components/MetadataList.js +0 -26
- package/dist/es2019/BlockCard/components/Modal.js +0 -94
- package/dist/es2019/BlockCard/components/ModalHeader.js +0 -86
- package/dist/es2019/BlockCard/components/Name.js +0 -31
- package/dist/es2019/BlockCard/components/Provider.js +0 -38
- package/dist/es2019/BlockCard/components/Thumbnail.js +0 -49
- package/dist/es2019/BlockCard/components/UnresolvedText.js +0 -13
- package/dist/es2019/BlockCard/index.js +0 -9
- package/dist/es2019/BlockCard/utils/constants.js +0 -4
- package/dist/es2019/BlockCard/utils/handlers.js +0 -7
- package/dist/es2019/BlockCard/utils/index.js +0 -9
- package/dist/es2019/BlockCard/views/ErroredView.js +0 -57
- package/dist/es2019/BlockCard/views/ForbiddenView.js +0 -72
- package/dist/es2019/BlockCard/views/NotFoundView.js +0 -56
- package/dist/es2019/BlockCard/views/ResolvedView.js +0 -97
- package/dist/es2019/BlockCard/views/ResolvingView.js +0 -31
- package/dist/es2019/BlockCard/views/UnauthorizedView.js +0 -56
- package/dist/es2019/EmbedCard/components/ExpandedFrame.js +0 -69
- package/dist/es2019/EmbedCard/components/Frame.js +0 -37
- package/dist/es2019/EmbedCard/components/ImageIcon.js +0 -28
- package/dist/es2019/EmbedCard/components/styled.js +0 -293
- package/dist/es2019/EmbedCard/views/ErroredView.js +0 -43
- package/dist/es2019/EmbedCard/views/ForbiddenView.js +0 -68
- package/dist/es2019/EmbedCard/views/NotFoundView.js +0 -33
- package/dist/es2019/EmbedCard/views/ResolvedView.js +0 -53
- package/dist/es2019/EmbedCard/views/UnauthorisedView.js +0 -40
- package/dist/es2019/EmbedCard/views/UnresolvedView.js +0 -67
- package/dist/es2019/InlineCard/ErroredView/index.js +0 -70
- package/dist/es2019/InlineCard/ForbiddenView/index.js +0 -98
- package/dist/es2019/InlineCard/Frame/index.js +0 -55
- package/dist/es2019/InlineCard/Frame/styled.js +0 -108
- package/dist/es2019/InlineCard/Icon.js +0 -62
- package/dist/es2019/InlineCard/IconAndTitleLayout/index.js +0 -99
- package/dist/es2019/InlineCard/IconAndTitleLayout/styled.js +0 -102
- package/dist/es2019/InlineCard/ResolvedView/index.js +0 -46
- package/dist/es2019/InlineCard/ResolvingView/index.js +0 -48
- package/dist/es2019/InlineCard/ResolvingView/styled.js +0 -6
- package/dist/es2019/InlineCard/UnauthorisedView/index.js +0 -66
- package/dist/es2019/InlineCard/index.js +0 -5
- package/dist/es2019/InlineCard/styled.js +0 -39
- package/dist/es2019/LinkView/index.js +0 -11
- package/dist/es2019/common.js +0 -1
- package/dist/es2019/embeds.js +0 -7
- package/dist/esm/BlockCard/actions/AuthorizeAction.js +0 -15
- package/dist/esm/BlockCard/actions/DownloadAction.js +0 -51
- package/dist/esm/BlockCard/actions/ForbiddenAction.js +0 -23
- package/dist/esm/BlockCard/actions/PreviewAction.js +0 -105
- package/dist/esm/BlockCard/actions/RetryAction.js +0 -33
- package/dist/esm/BlockCard/actions/ViewAction.js +0 -50
- package/dist/esm/BlockCard/components/Action.js +0 -53
- package/dist/esm/BlockCard/components/ActionIcon.js +0 -42
- package/dist/esm/BlockCard/components/ActionList.js +0 -55
- package/dist/esm/BlockCard/components/Byline.js +0 -34
- package/dist/esm/BlockCard/components/CollaboratorList.js +0 -39
- package/dist/esm/BlockCard/components/Content.js +0 -20
- package/dist/esm/BlockCard/components/ContentFooter.js +0 -20
- package/dist/esm/BlockCard/components/ContentHeader.js +0 -22
- package/dist/esm/BlockCard/components/Emoji.js +0 -17
- package/dist/esm/BlockCard/components/Frame.js +0 -75
- package/dist/esm/BlockCard/components/Icon.js +0 -42
- package/dist/esm/BlockCard/components/Link.js +0 -17
- package/dist/esm/BlockCard/components/Metadata.js +0 -45
- package/dist/esm/BlockCard/components/MetadataList.js +0 -27
- package/dist/esm/BlockCard/components/Modal.js +0 -125
- package/dist/esm/BlockCard/components/ModalHeader.js +0 -87
- package/dist/esm/BlockCard/components/Name.js +0 -33
- package/dist/esm/BlockCard/components/Provider.js +0 -37
- package/dist/esm/BlockCard/components/Thumbnail.js +0 -53
- package/dist/esm/BlockCard/components/UnresolvedText.js +0 -12
- package/dist/esm/BlockCard/index.js +0 -9
- package/dist/esm/BlockCard/utils/constants.js +0 -4
- package/dist/esm/BlockCard/utils/handlers.js +0 -7
- package/dist/esm/BlockCard/utils/index.js +0 -14
- package/dist/esm/BlockCard/views/ErroredView.js +0 -73
- package/dist/esm/BlockCard/views/ForbiddenView.js +0 -82
- package/dist/esm/BlockCard/views/NotFoundView.js +0 -70
- package/dist/esm/BlockCard/views/ResolvedView.js +0 -112
- package/dist/esm/BlockCard/views/ResolvingView.js +0 -34
- package/dist/esm/BlockCard/views/UnauthorizedView.js +0 -71
- package/dist/esm/EmbedCard/components/ExpandedFrame.js +0 -79
- package/dist/esm/EmbedCard/components/Frame.js +0 -45
- package/dist/esm/EmbedCard/components/ImageIcon.js +0 -30
- package/dist/esm/EmbedCard/components/styled.js +0 -117
- package/dist/esm/EmbedCard/views/ErroredView.js +0 -46
- package/dist/esm/EmbedCard/views/ForbiddenView.js +0 -67
- package/dist/esm/EmbedCard/views/NotFoundView.js +0 -33
- package/dist/esm/EmbedCard/views/ResolvedView.js +0 -55
- package/dist/esm/EmbedCard/views/UnauthorisedView.js +0 -40
- package/dist/esm/EmbedCard/views/UnresolvedView.js +0 -66
- package/dist/esm/InlineCard/ErroredView/index.js +0 -96
- package/dist/esm/InlineCard/ForbiddenView/index.js +0 -122
- package/dist/esm/InlineCard/Frame/index.js +0 -53
- package/dist/esm/InlineCard/Frame/styled.js +0 -79
- package/dist/esm/InlineCard/Icon.js +0 -18
- package/dist/esm/InlineCard/IconAndTitleLayout/index.js +0 -122
- package/dist/esm/InlineCard/IconAndTitleLayout/styled.js +0 -36
- package/dist/esm/InlineCard/ResolvedView/index.js +0 -70
- package/dist/esm/InlineCard/ResolvingView/index.js +0 -72
- package/dist/esm/InlineCard/ResolvingView/styled.js +0 -7
- package/dist/esm/InlineCard/UnauthorisedView/index.js +0 -92
- package/dist/esm/InlineCard/index.js +0 -5
- package/dist/esm/InlineCard/styled.js +0 -20
- package/dist/esm/LinkView/index.js +0 -35
- package/dist/esm/common.js +0 -1
- package/dist/esm/embeds.js +0 -7
- package/dist/types/BlockCard/actions/AuthorizeAction.d.ts +0 -2
- package/dist/types/BlockCard/actions/DownloadAction.d.ts +0 -8
- package/dist/types/BlockCard/actions/ForbiddenAction.d.ts +0 -2
- package/dist/types/BlockCard/actions/PreviewAction.d.ts +0 -26
- package/dist/types/BlockCard/actions/RetryAction.d.ts +0 -2
- package/dist/types/BlockCard/actions/ViewAction.d.ts +0 -8
- package/dist/types/BlockCard/components/Action.d.ts +0 -11
- package/dist/types/BlockCard/components/ActionIcon.d.ts +0 -12
- package/dist/types/BlockCard/components/ActionList.d.ts +0 -6
- package/dist/types/BlockCard/components/Byline.d.ts +0 -8
- package/dist/types/BlockCard/components/CollaboratorList.d.ts +0 -13
- package/dist/types/BlockCard/components/Content.d.ts +0 -7
- package/dist/types/BlockCard/components/ContentFooter.d.ts +0 -7
- package/dist/types/BlockCard/components/ContentHeader.d.ts +0 -8
- package/dist/types/BlockCard/components/Emoji.d.ts +0 -5
- package/dist/types/BlockCard/components/Frame.d.ts +0 -14
- package/dist/types/BlockCard/components/Icon.d.ts +0 -9
- package/dist/types/BlockCard/components/Link.d.ts +0 -7
- package/dist/types/BlockCard/components/Metadata.d.ts +0 -8
- package/dist/types/BlockCard/components/MetadataList.d.ts +0 -8
- package/dist/types/BlockCard/components/Modal.d.ts +0 -28
- package/dist/types/BlockCard/components/ModalHeader.d.ts +0 -17
- package/dist/types/BlockCard/components/Name.d.ts +0 -10
- package/dist/types/BlockCard/components/Provider.d.ts +0 -6
- package/dist/types/BlockCard/components/Thumbnail.d.ts +0 -9
- package/dist/types/BlockCard/components/UnresolvedText.d.ts +0 -6
- package/dist/types/BlockCard/index.d.ts +0 -10
- package/dist/types/BlockCard/utils/constants.d.ts +0 -3
- package/dist/types/BlockCard/utils/handlers.d.ts +0 -2
- package/dist/types/BlockCard/utils/index.d.ts +0 -5
- package/dist/types/BlockCard/views/ErroredView.d.ts +0 -12
- package/dist/types/BlockCard/views/ForbiddenView.d.ts +0 -21
- package/dist/types/BlockCard/views/NotFoundView.d.ts +0 -15
- package/dist/types/BlockCard/views/ResolvedView.d.ts +0 -32
- package/dist/types/BlockCard/views/ResolvingView.d.ts +0 -8
- package/dist/types/BlockCard/views/UnauthorizedView.d.ts +0 -17
- package/dist/types/EmbedCard/components/ExpandedFrame.d.ts +0 -23
- package/dist/types/EmbedCard/components/Frame.d.ts +0 -7
- package/dist/types/EmbedCard/components/ImageIcon.d.ts +0 -9
- package/dist/types/EmbedCard/components/styled.d.ts +0 -42
- package/dist/types/EmbedCard/views/ErroredView.d.ts +0 -8
- package/dist/types/EmbedCard/views/ForbiddenView.d.ts +0 -13
- package/dist/types/EmbedCard/views/NotFoundView.d.ts +0 -11
- package/dist/types/EmbedCard/views/ResolvedView.d.ts +0 -27
- package/dist/types/EmbedCard/views/UnauthorisedView.d.ts +0 -12
- package/dist/types/EmbedCard/views/UnresolvedView.d.ts +0 -18
- package/dist/types/InlineCard/ErroredView/index.d.ts +0 -21
- package/dist/types/InlineCard/ForbiddenView/index.d.ts +0 -25
- package/dist/types/InlineCard/Frame/index.d.ts +0 -16
- package/dist/types/InlineCard/Frame/styled.d.ts +0 -8
- package/dist/types/InlineCard/Icon.d.ts +0 -4
- package/dist/types/InlineCard/IconAndTitleLayout/index.d.ts +0 -19
- package/dist/types/InlineCard/IconAndTitleLayout/styled.d.ts +0 -13
- package/dist/types/InlineCard/ResolvedView/index.d.ts +0 -26
- package/dist/types/InlineCard/ResolvingView/index.d.ts +0 -18
- package/dist/types/InlineCard/ResolvingView/styled.d.ts +0 -6
- package/dist/types/InlineCard/UnauthorisedView/index.d.ts +0 -20
- package/dist/types/InlineCard/index.d.ts +0 -10
- package/dist/types/InlineCard/styled.d.ts +0 -5
- package/dist/types/LinkView/index.d.ts +0 -5
- package/dist/types/common.d.ts +0 -6
- package/dist/types/embeds.d.ts +0 -13
- package/embeds/package.json +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# @atlaskit/media-ui
|
|
2
2
|
|
|
3
|
+
## 21.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`e579e144052`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e579e144052) - [ux] EDM-2821: Fix media inline wrap after icon
|
|
8
|
+
|
|
9
|
+
### Minor Changes
|
|
10
|
+
|
|
11
|
+
- [`0c27d2645ad`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0c27d2645ad) - Removed unused dependencies
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`fb1cf506701`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fb1cf506701) - [ux] ED-14487: polyfill ResizeObserver and IntersectionObserver for unit tests, but mock isIntersectionObserverSupported() for tests related to smart-cards
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
18
|
+
## 20.1.0
|
|
19
|
+
|
|
20
|
+
### Minor Changes
|
|
21
|
+
|
|
22
|
+
- [`a05dcf1b9d6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a05dcf1b9d6) - allow to pass size prop to MediaMimeTypeIcon
|
|
23
|
+
|
|
24
|
+
## 20.0.0
|
|
25
|
+
|
|
26
|
+
### Major Changes
|
|
27
|
+
|
|
28
|
+
- [`d6a20cc81b8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6a20cc81b8) - Remove smart-card views and utils from media-ui
|
|
29
|
+
|
|
30
|
+
### Minor Changes
|
|
31
|
+
|
|
32
|
+
- [`8742dbe70bd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8742dbe70bd) - MEX-1102 Removed lodash dependencies from media component and converted all to local functions (lightweight helpers)
|
|
33
|
+
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- Updated dependencies
|
|
37
|
+
|
|
3
38
|
## 19.0.0
|
|
4
39
|
|
|
5
40
|
### Major Changes
|
|
@@ -33,12 +33,12 @@ exports.IconWrapper = IconWrapper;
|
|
|
33
33
|
|
|
34
34
|
var EmojiWrapper = _styled.default.span(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-block;\n margin-right: 2px;\n user-select: none;\n ", "\n ", "\n"])), IconOverrides, IconObjectOverrides); // The main 'wrapping' element, title of the content.
|
|
35
35
|
// NB: `white-space` adds little whitespace before wrapping.
|
|
36
|
-
// NB: `
|
|
36
|
+
// NB: `word-break` line breaks as soon as an overflow takes place.
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
exports.EmojiWrapper = EmojiWrapper;
|
|
40
40
|
|
|
41
|
-
var IconTitleWrapper = _styled.default.span(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
41
|
+
var IconTitleWrapper = _styled.default.span(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n white-space: pre-wrap;\n word-break: break-all;\n"]))); // TODO: Replace overrides with proper AtlasKit solution.
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
exports.IconTitleWrapper = IconTitleWrapper;
|
package/dist/cjs/classNames.js
CHANGED
|
@@ -3,107 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "blockCardContentClassName", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _Content.blockCardContentClassName;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "blockCardContentHeaderClassName", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _ContentHeader.blockCardContentHeaderClassName;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "blockCardContentHeaderNameClassName", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _Name.blockCardContentHeaderNameClassName;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "blockCardErroredViewClassName", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function get() {
|
|
27
|
-
return _ErroredView.blockCardErroredViewClassName;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "blockCardForbiddenViewClassName", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function get() {
|
|
33
|
-
return _ForbiddenView.blockCardForbiddenViewClassName;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "blockCardForbiddenViewLinkClassName", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function get() {
|
|
39
|
-
return _ForbiddenView.blockCardForbiddenViewLinkClassName;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "blockCardIconImageClassName", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function get() {
|
|
45
|
-
return _Icon.blockCardIconImageClassName;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "blockCardNotFoundViewClassName", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function get() {
|
|
51
|
-
return _NotFoundView.blockCardNotFoundViewClassName;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "blockCardResolvedViewByClassName", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function get() {
|
|
57
|
-
return _ResolvedView.blockCardResolvedViewByClassName;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, "blockCardResolvedViewClassName", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function get() {
|
|
63
|
-
return _ResolvedView.blockCardResolvedViewClassName;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(exports, "blockCardResolvingViewClassName", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function get() {
|
|
69
|
-
return _ResolvingView.blockCardResolvingViewClassName;
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
Object.defineProperty(exports, "contentFooterClassName", {
|
|
73
|
-
enumerable: true,
|
|
74
|
-
get: function get() {
|
|
75
|
-
return _ContentFooter.contentFooterClassName;
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
6
|
exports.hideControlsClassName = void 0;
|
|
79
|
-
Object.defineProperty(exports, "metadataListClassName", {
|
|
80
|
-
enumerable: true,
|
|
81
|
-
get: function get() {
|
|
82
|
-
return _MetadataList.metadataListClassName;
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
var _ContentFooter = require("./BlockCard/components/ContentFooter");
|
|
87
|
-
|
|
88
|
-
var _MetadataList = require("./BlockCard/components/MetadataList");
|
|
89
|
-
|
|
90
|
-
var _ResolvingView = require("./BlockCard/views/ResolvingView");
|
|
91
|
-
|
|
92
|
-
var _ResolvedView = require("./BlockCard/views/ResolvedView");
|
|
93
|
-
|
|
94
|
-
var _ForbiddenView = require("./BlockCard/views/ForbiddenView");
|
|
95
|
-
|
|
96
|
-
var _Icon = require("./BlockCard/components/Icon");
|
|
97
|
-
|
|
98
|
-
var _Content = require("./BlockCard/components/Content");
|
|
99
|
-
|
|
100
|
-
var _ContentHeader = require("./BlockCard/components/ContentHeader");
|
|
101
|
-
|
|
102
|
-
var _Name = require("./BlockCard/components/Name");
|
|
103
|
-
|
|
104
|
-
var _NotFoundView = require("./BlockCard/views/NotFoundView");
|
|
105
|
-
|
|
106
|
-
var _ErroredView = require("./BlockCard/views/ErroredView");
|
|
107
|
-
|
|
108
7
|
var hideControlsClassName = 'mvng-hide-controls';
|
|
109
8
|
exports.hideControlsClassName = hideControlsClassName;
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.createPlaybackAttributes = createPlaybackAttributes;
|
|
9
7
|
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
var _omitBy = _interopRequireDefault(require("lodash/omitBy"));
|
|
8
|
+
var _mediaCommon = require("@atlaskit/media-common");
|
|
13
9
|
|
|
14
10
|
function createPlaybackAttributes(playbackState) {
|
|
15
11
|
var isAutoPlay = playbackState.isAutoPlay,
|
|
@@ -23,7 +19,7 @@ function createPlaybackAttributes(playbackState) {
|
|
|
23
19
|
volume = playbackState.volume,
|
|
24
20
|
duration = playbackState.duration,
|
|
25
21
|
isMuted = playbackState.isMuted;
|
|
26
|
-
return (0,
|
|
22
|
+
return (0, _mediaCommon.omitBy)({
|
|
27
23
|
isAutoPlay: isAutoPlay,
|
|
28
24
|
isHDAvailable: isHDAvailable,
|
|
29
25
|
isHDActive: isHDActive,
|
|
@@ -36,5 +32,5 @@ function createPlaybackAttributes(playbackState) {
|
|
|
36
32
|
status: status,
|
|
37
33
|
volume: volume,
|
|
38
34
|
isMuted: isMuted
|
|
39
|
-
},
|
|
35
|
+
}, _mediaCommon.isUndefined);
|
|
40
36
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -7,48 +7,6 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
|
-
Object.defineProperty(exports, "AuthorizeAction", {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function get() {
|
|
13
|
-
return _BlockCard.AuthorizeAction;
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
Object.defineProperty(exports, "BlockCardErroredView", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function get() {
|
|
19
|
-
return _BlockCard.BlockCardErroredView;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
Object.defineProperty(exports, "BlockCardForbiddenView", {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function get() {
|
|
25
|
-
return _BlockCard.BlockCardForbiddenView;
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
Object.defineProperty(exports, "BlockCardNotFoundView", {
|
|
29
|
-
enumerable: true,
|
|
30
|
-
get: function get() {
|
|
31
|
-
return _BlockCard.BlockCardNotFoundView;
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
Object.defineProperty(exports, "BlockCardResolvedView", {
|
|
35
|
-
enumerable: true,
|
|
36
|
-
get: function get() {
|
|
37
|
-
return _BlockCard.BlockCardResolvedView;
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
Object.defineProperty(exports, "BlockCardResolvingView", {
|
|
41
|
-
enumerable: true,
|
|
42
|
-
get: function get() {
|
|
43
|
-
return _BlockCard.BlockCardResolvingView;
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
Object.defineProperty(exports, "BlockCardUnauthorisedView", {
|
|
47
|
-
enumerable: true,
|
|
48
|
-
get: function get() {
|
|
49
|
-
return _BlockCard.BlockCardUnauthorisedView;
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
10
|
Object.defineProperty(exports, "Bounds", {
|
|
53
11
|
enumerable: true,
|
|
54
12
|
get: function get() {
|
|
@@ -61,24 +19,12 @@ Object.defineProperty(exports, "Camera", {
|
|
|
61
19
|
return _camera.Camera;
|
|
62
20
|
}
|
|
63
21
|
});
|
|
64
|
-
Object.defineProperty(exports, "CardLinkView", {
|
|
65
|
-
enumerable: true,
|
|
66
|
-
get: function get() {
|
|
67
|
-
return _LinkView.CardLinkView;
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
22
|
Object.defineProperty(exports, "CustomMediaPlayer", {
|
|
71
23
|
enumerable: true,
|
|
72
24
|
get: function get() {
|
|
73
25
|
return _index2.CustomMediaPlayer;
|
|
74
26
|
}
|
|
75
27
|
});
|
|
76
|
-
Object.defineProperty(exports, "DownloadAction", {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
get: function get() {
|
|
79
|
-
return _DownloadAction.DownloadAction;
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
28
|
Object.defineProperty(exports, "Ellipsify", {
|
|
83
29
|
enumerable: true,
|
|
84
30
|
get: function get() {
|
|
@@ -91,12 +37,6 @@ Object.defineProperty(exports, "ExifOrientation", {
|
|
|
91
37
|
return _imageMetaData.ExifOrientation;
|
|
92
38
|
}
|
|
93
39
|
});
|
|
94
|
-
Object.defineProperty(exports, "ForbiddenAction", {
|
|
95
|
-
enumerable: true,
|
|
96
|
-
get: function get() {
|
|
97
|
-
return _BlockCard.ForbiddenAction;
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
40
|
Object.defineProperty(exports, "InactivityDetector", {
|
|
101
41
|
enumerable: true,
|
|
102
42
|
get: function get() {
|
|
@@ -109,36 +49,6 @@ Object.defineProperty(exports, "InfiniteScroll", {
|
|
|
109
49
|
return _infiniteScroll.InfiniteScroll;
|
|
110
50
|
}
|
|
111
51
|
});
|
|
112
|
-
Object.defineProperty(exports, "InlineCardErroredView", {
|
|
113
|
-
enumerable: true,
|
|
114
|
-
get: function get() {
|
|
115
|
-
return _InlineCard.InlineCardErroredView;
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
Object.defineProperty(exports, "InlineCardForbiddenView", {
|
|
119
|
-
enumerable: true,
|
|
120
|
-
get: function get() {
|
|
121
|
-
return _InlineCard.InlineCardForbiddenView;
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
Object.defineProperty(exports, "InlineCardResolvedView", {
|
|
125
|
-
enumerable: true,
|
|
126
|
-
get: function get() {
|
|
127
|
-
return _InlineCard.InlineCardResolvedView;
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
Object.defineProperty(exports, "InlineCardResolvingView", {
|
|
131
|
-
enumerable: true,
|
|
132
|
-
get: function get() {
|
|
133
|
-
return _InlineCard.InlineCardResolvingView;
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
Object.defineProperty(exports, "InlineCardUnauthorizedView", {
|
|
137
|
-
enumerable: true,
|
|
138
|
-
get: function get() {
|
|
139
|
-
return _InlineCard.InlineCardUnauthorizedView;
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
52
|
Object.defineProperty(exports, "MediaButton", {
|
|
143
53
|
enumerable: true,
|
|
144
54
|
get: function get() {
|
|
@@ -181,12 +91,6 @@ Object.defineProperty(exports, "ModalSpinner", {
|
|
|
181
91
|
return _modalSpinner.default;
|
|
182
92
|
}
|
|
183
93
|
});
|
|
184
|
-
Object.defineProperty(exports, "PreviewAction", {
|
|
185
|
-
enumerable: true,
|
|
186
|
-
get: function get() {
|
|
187
|
-
return _BlockCard.PreviewAction;
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
94
|
Object.defineProperty(exports, "Rectangle", {
|
|
191
95
|
enumerable: true,
|
|
192
96
|
get: function get() {
|
|
@@ -217,12 +121,6 @@ Object.defineProperty(exports, "Vector2", {
|
|
|
217
121
|
return _camera.Vector2;
|
|
218
122
|
}
|
|
219
123
|
});
|
|
220
|
-
Object.defineProperty(exports, "ViewAction", {
|
|
221
|
-
enumerable: true,
|
|
222
|
-
get: function get() {
|
|
223
|
-
return _ViewAction.ViewAction;
|
|
224
|
-
}
|
|
225
|
-
});
|
|
226
124
|
Object.defineProperty(exports, "absolute", {
|
|
227
125
|
enumerable: true,
|
|
228
126
|
get: function get() {
|
|
@@ -425,18 +323,8 @@ Object.defineProperty(exports, "toHumanReadableMediaSize", {
|
|
|
425
323
|
|
|
426
324
|
var untypedLocales = _interopRequireWildcard(require("./i18n/index"));
|
|
427
325
|
|
|
428
|
-
var _DownloadAction = require("./BlockCard/actions/DownloadAction");
|
|
429
|
-
|
|
430
|
-
var _ViewAction = require("./BlockCard/actions/ViewAction");
|
|
431
|
-
|
|
432
|
-
var _BlockCard = require("./BlockCard");
|
|
433
|
-
|
|
434
|
-
var _InlineCard = require("./InlineCard");
|
|
435
|
-
|
|
436
326
|
var _MediaInlineCard = require("./MediaInlineCard");
|
|
437
327
|
|
|
438
|
-
var _LinkView = require("./LinkView");
|
|
439
|
-
|
|
440
328
|
var _ellipsify = require("./ellipsify");
|
|
441
329
|
|
|
442
330
|
var _humanReadableSize = require("./humanReadableSize");
|
|
@@ -24,7 +24,9 @@ var MimeTypeIcon = function MimeTypeIcon(_ref) {
|
|
|
24
24
|
mimeType = _ref$mimeType === void 0 ? 'unknown' : _ref$mimeType,
|
|
25
25
|
_ref$name = _ref.name,
|
|
26
26
|
name = _ref$name === void 0 ? 'unknown' : _ref$name,
|
|
27
|
-
testId = _ref.testId
|
|
27
|
+
testId = _ref.testId,
|
|
28
|
+
_ref$size = _ref.size,
|
|
29
|
+
size = _ref$size === void 0 ? 'large' : _ref$size;
|
|
28
30
|
// retrieve mimetype icon and label
|
|
29
31
|
var iconInfo = (0, _util.getMimeIcon)(mimeType, name); // a corresponding mimetype icon and label was found.
|
|
30
32
|
|
|
@@ -33,7 +35,7 @@ var MimeTypeIcon = function MimeTypeIcon(_ref) {
|
|
|
33
35
|
return /*#__PURE__*/_react.default.createElement(_mediaTypeIcon.IconWrapper, {
|
|
34
36
|
"data-testid": testId,
|
|
35
37
|
"data-type": iconInfo.label,
|
|
36
|
-
size:
|
|
38
|
+
size: size
|
|
37
39
|
}, /*#__PURE__*/_react.default.createElement(Icon, {
|
|
38
40
|
label: iconInfo.label
|
|
39
41
|
}));
|
|
@@ -44,7 +46,7 @@ var MimeTypeIcon = function MimeTypeIcon(_ref) {
|
|
|
44
46
|
return /*#__PURE__*/_react.default.createElement(_mediaTypeIcon.MediaTypeIcon, {
|
|
45
47
|
testId: testId,
|
|
46
48
|
type: mediaType,
|
|
47
|
-
size:
|
|
49
|
+
size: size
|
|
48
50
|
});
|
|
49
51
|
};
|
|
50
52
|
|
package/dist/cjs/util.js
CHANGED
|
@@ -11,7 +11,6 @@ exports.fileToDataURI = fileToDataURI;
|
|
|
11
11
|
exports.findParentByClassname = void 0;
|
|
12
12
|
exports.getFileInfo = getFileInfo;
|
|
13
13
|
exports.getFileInfoFromSrc = getFileInfoFromSrc;
|
|
14
|
-
exports.getIframeSandboxAttribute = void 0;
|
|
15
14
|
exports.getMimeIcon = getMimeIcon;
|
|
16
15
|
exports.loadImage = loadImage;
|
|
17
16
|
exports.readImageNaturalOrientationFromDOM = readImageNaturalOrientationFromDOM;
|
|
@@ -361,10 +360,4 @@ function getMimeIcon(mimeType, fileName) {
|
|
|
361
360
|
|
|
362
361
|
|
|
363
362
|
return undefined;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
var getIframeSandboxAttribute = function getIframeSandboxAttribute(isTrusted) {
|
|
367
|
-
return isTrusted ? undefined : 'allow-downloads allow-forms allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts';
|
|
368
|
-
};
|
|
369
|
-
|
|
370
|
-
exports.getIframeSandboxAttribute = getIframeSandboxAttribute;
|
|
363
|
+
}
|
package/dist/cjs/version.json
CHANGED
|
@@ -52,13 +52,11 @@ export const EmojiWrapper = styled.span`
|
|
|
52
52
|
${IconObjectOverrides}
|
|
53
53
|
`; // The main 'wrapping' element, title of the content.
|
|
54
54
|
// NB: `white-space` adds little whitespace before wrapping.
|
|
55
|
-
// NB: `
|
|
55
|
+
// NB: `word-break` line breaks as soon as an overflow takes place.
|
|
56
56
|
|
|
57
57
|
export const IconTitleWrapper = styled.span`
|
|
58
|
-
hyphens: auto;
|
|
59
58
|
white-space: pre-wrap;
|
|
60
|
-
|
|
61
|
-
word-break: break-word;
|
|
59
|
+
word-break: break-all;
|
|
62
60
|
`; // TODO: Replace overrides with proper AtlasKit solution.
|
|
63
61
|
|
|
64
62
|
export const LozengeWrapper = styled.span`
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
export const hideControlsClassName = 'mvng-hide-controls';
|
|
2
|
-
export { contentFooterClassName } from './BlockCard/components/ContentFooter';
|
|
3
|
-
export { metadataListClassName } from './BlockCard/components/MetadataList';
|
|
4
|
-
export { blockCardResolvingViewClassName } from './BlockCard/views/ResolvingView';
|
|
5
|
-
export { blockCardResolvedViewClassName, blockCardResolvedViewByClassName } from './BlockCard/views/ResolvedView';
|
|
6
|
-
export { blockCardForbiddenViewClassName, blockCardForbiddenViewLinkClassName } from './BlockCard/views/ForbiddenView';
|
|
7
|
-
export { blockCardIconImageClassName } from './BlockCard/components/Icon';
|
|
8
|
-
export { blockCardContentClassName } from './BlockCard/components/Content';
|
|
9
|
-
export { blockCardContentHeaderClassName } from './BlockCard/components/ContentHeader';
|
|
10
|
-
export { blockCardContentHeaderNameClassName } from './BlockCard/components/Name';
|
|
11
|
-
export { blockCardNotFoundViewClassName } from './BlockCard/views/NotFoundView';
|
|
12
|
-
export { blockCardErroredViewClassName } from './BlockCard/views/ErroredView';
|
|
1
|
+
export const hideControlsClassName = 'mvng-hide-controls';
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import * as untypedLocales from './i18n/index';
|
|
2
2
|
const locales = untypedLocales;
|
|
3
|
-
export { DownloadAction } from './BlockCard/actions/DownloadAction';
|
|
4
|
-
export { ViewAction } from './BlockCard/actions/ViewAction';
|
|
5
|
-
export { AuthorizeAction, BlockCardErroredView, BlockCardNotFoundView, BlockCardForbiddenView, BlockCardResolvedView, BlockCardResolvingView, BlockCardUnauthorisedView, ForbiddenAction, PreviewAction } from './BlockCard';
|
|
6
|
-
export { InlineCardErroredView, InlineCardForbiddenView, InlineCardResolvedView, InlineCardResolvingView, InlineCardUnauthorizedView } from './InlineCard';
|
|
7
3
|
export { MediaInlineCardErroredView, MediaInlineCardLoadedView, MediaInlineCardLoadingView } from './MediaInlineCard';
|
|
8
|
-
export { CardLinkView } from './LinkView';
|
|
9
4
|
export { Ellipsify } from './ellipsify';
|
|
10
5
|
export { toHumanReadableMediaSize } from './humanReadableSize';
|
|
11
6
|
export { absolute, borderRadius, borderRadiusBottom, center, easeInOutCubic, ellipsis, fadeIn, size } from './mixins';
|
|
@@ -11,7 +11,8 @@ export const MimeTypeIcon = ({
|
|
|
11
11
|
mediaType = 'unknown',
|
|
12
12
|
mimeType = 'unknown',
|
|
13
13
|
name = 'unknown',
|
|
14
|
-
testId
|
|
14
|
+
testId,
|
|
15
|
+
size = 'large'
|
|
15
16
|
}) => {
|
|
16
17
|
// retrieve mimetype icon and label
|
|
17
18
|
const iconInfo = getMimeIcon(mimeType, name); // a corresponding mimetype icon and label was found.
|
|
@@ -21,7 +22,7 @@ export const MimeTypeIcon = ({
|
|
|
21
22
|
return /*#__PURE__*/React.createElement(IconWrapper, {
|
|
22
23
|
"data-testid": testId,
|
|
23
24
|
"data-type": iconInfo.label,
|
|
24
|
-
size:
|
|
25
|
+
size: size
|
|
25
26
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
26
27
|
label: iconInfo.label
|
|
27
28
|
}));
|
|
@@ -32,6 +33,6 @@ export const MimeTypeIcon = ({
|
|
|
32
33
|
return /*#__PURE__*/React.createElement(MediaTypeIcon, {
|
|
33
34
|
testId: testId,
|
|
34
35
|
type: mediaType,
|
|
35
|
-
size:
|
|
36
|
+
size: size
|
|
36
37
|
});
|
|
37
38
|
};
|
package/dist/es2019/util.js
CHANGED
|
@@ -239,5 +239,4 @@ export function getMimeIcon(mimeType, fileName) {
|
|
|
239
239
|
|
|
240
240
|
|
|
241
241
|
return undefined;
|
|
242
|
-
}
|
|
243
|
-
export const getIframeSandboxAttribute = isTrusted => isTrusted ? undefined : 'allow-downloads allow-forms allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts';
|
|
242
|
+
}
|
package/dist/es2019/version.json
CHANGED
|
@@ -17,9 +17,9 @@ export var IconWrapper = styled.span(_templateObject || (_templateObject = _tagg
|
|
|
17
17
|
|
|
18
18
|
export var EmojiWrapper = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: inline-block;\n margin-right: 2px;\n user-select: none;\n ", "\n ", "\n"])), IconOverrides, IconObjectOverrides); // The main 'wrapping' element, title of the content.
|
|
19
19
|
// NB: `white-space` adds little whitespace before wrapping.
|
|
20
|
-
// NB: `
|
|
20
|
+
// NB: `word-break` line breaks as soon as an overflow takes place.
|
|
21
21
|
|
|
22
|
-
export var IconTitleWrapper = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n
|
|
22
|
+
export var IconTitleWrapper = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n white-space: pre-wrap;\n word-break: break-all;\n"]))); // TODO: Replace overrides with proper AtlasKit solution.
|
|
23
23
|
|
|
24
24
|
export var LozengeWrapper = styled.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: inline-block;\n vertical-align: 1px;\n & > span {\n margin-left: 4px;\n padding: 2px 0 2px 0;\n }\n"]))); // TODO: Replace overrides with proper AtlasKit solution.
|
|
25
25
|
|
package/dist/esm/classNames.js
CHANGED
|
@@ -1,12 +1 @@
|
|
|
1
|
-
export var hideControlsClassName = 'mvng-hide-controls';
|
|
2
|
-
export { contentFooterClassName } from './BlockCard/components/ContentFooter';
|
|
3
|
-
export { metadataListClassName } from './BlockCard/components/MetadataList';
|
|
4
|
-
export { blockCardResolvingViewClassName } from './BlockCard/views/ResolvingView';
|
|
5
|
-
export { blockCardResolvedViewClassName, blockCardResolvedViewByClassName } from './BlockCard/views/ResolvedView';
|
|
6
|
-
export { blockCardForbiddenViewClassName, blockCardForbiddenViewLinkClassName } from './BlockCard/views/ForbiddenView';
|
|
7
|
-
export { blockCardIconImageClassName } from './BlockCard/components/Icon';
|
|
8
|
-
export { blockCardContentClassName } from './BlockCard/components/Content';
|
|
9
|
-
export { blockCardContentHeaderClassName } from './BlockCard/components/ContentHeader';
|
|
10
|
-
export { blockCardContentHeaderNameClassName } from './BlockCard/components/Name';
|
|
11
|
-
export { blockCardNotFoundViewClassName } from './BlockCard/views/NotFoundView';
|
|
12
|
-
export { blockCardErroredViewClassName } from './BlockCard/views/ErroredView';
|
|
1
|
+
export var hideControlsClassName = 'mvng-hide-controls';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import isUndefined from '
|
|
2
|
-
import omitBy from 'lodash/omitBy';
|
|
1
|
+
import { isUndefined, omitBy } from '@atlaskit/media-common';
|
|
3
2
|
export function createPlaybackAttributes(playbackState) {
|
|
4
3
|
var isAutoPlay = playbackState.isAutoPlay,
|
|
5
4
|
isHDAvailable = playbackState.isHDAvailable,
|
package/dist/esm/index.js
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import * as untypedLocales from './i18n/index';
|
|
2
2
|
var locales = untypedLocales;
|
|
3
|
-
export { DownloadAction } from './BlockCard/actions/DownloadAction';
|
|
4
|
-
export { ViewAction } from './BlockCard/actions/ViewAction';
|
|
5
|
-
export { AuthorizeAction, BlockCardErroredView, BlockCardNotFoundView, BlockCardForbiddenView, BlockCardResolvedView, BlockCardResolvingView, BlockCardUnauthorisedView, ForbiddenAction, PreviewAction } from './BlockCard';
|
|
6
|
-
export { InlineCardErroredView, InlineCardForbiddenView, InlineCardResolvedView, InlineCardResolvingView, InlineCardUnauthorizedView } from './InlineCard';
|
|
7
3
|
export { MediaInlineCardErroredView, MediaInlineCardLoadedView, MediaInlineCardLoadingView } from './MediaInlineCard';
|
|
8
|
-
export { CardLinkView } from './LinkView';
|
|
9
4
|
export { Ellipsify } from './ellipsify';
|
|
10
5
|
export { toHumanReadableMediaSize } from './humanReadableSize';
|
|
11
6
|
export { absolute, borderRadius, borderRadiusBottom, center, easeInOutCubic, ellipsis, fadeIn, size } from './mixins';
|
|
@@ -14,7 +14,9 @@ export var MimeTypeIcon = function MimeTypeIcon(_ref) {
|
|
|
14
14
|
mimeType = _ref$mimeType === void 0 ? 'unknown' : _ref$mimeType,
|
|
15
15
|
_ref$name = _ref.name,
|
|
16
16
|
name = _ref$name === void 0 ? 'unknown' : _ref$name,
|
|
17
|
-
testId = _ref.testId
|
|
17
|
+
testId = _ref.testId,
|
|
18
|
+
_ref$size = _ref.size,
|
|
19
|
+
size = _ref$size === void 0 ? 'large' : _ref$size;
|
|
18
20
|
// retrieve mimetype icon and label
|
|
19
21
|
var iconInfo = getMimeIcon(mimeType, name); // a corresponding mimetype icon and label was found.
|
|
20
22
|
|
|
@@ -23,7 +25,7 @@ export var MimeTypeIcon = function MimeTypeIcon(_ref) {
|
|
|
23
25
|
return /*#__PURE__*/React.createElement(IconWrapper, {
|
|
24
26
|
"data-testid": testId,
|
|
25
27
|
"data-type": iconInfo.label,
|
|
26
|
-
size:
|
|
28
|
+
size: size
|
|
27
29
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
28
30
|
label: iconInfo.label
|
|
29
31
|
}));
|
|
@@ -34,6 +36,6 @@ export var MimeTypeIcon = function MimeTypeIcon(_ref) {
|
|
|
34
36
|
return /*#__PURE__*/React.createElement(MediaTypeIcon, {
|
|
35
37
|
testId: testId,
|
|
36
38
|
type: mediaType,
|
|
37
|
-
size:
|
|
39
|
+
size: size
|
|
38
40
|
});
|
|
39
41
|
};
|
package/dist/esm/util.js
CHANGED
|
@@ -318,7 +318,4 @@ export function getMimeIcon(mimeType, fileName) {
|
|
|
318
318
|
|
|
319
319
|
|
|
320
320
|
return undefined;
|
|
321
|
-
}
|
|
322
|
-
export var getIframeSandboxAttribute = function getIframeSandboxAttribute(isTrusted) {
|
|
323
|
-
return isTrusted ? undefined : 'allow-downloads allow-forms allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts';
|
|
324
|
-
};
|
|
321
|
+
}
|
package/dist/esm/version.json
CHANGED