@atlaskit/media-card 79.9.2 → 79.11.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 +18 -0
- package/dist/cjs/card/ui/playButton/playButton.js +1 -4
- package/dist/cjs/card/ui/titleBox/titleBox.js +5 -0
- package/dist/cjs/card/ui/titleBox/titleBoxComponents-compiled.js +3 -1
- package/dist/es2019/card/ui/playButton/playButton.js +1 -4
- package/dist/es2019/card/ui/titleBox/titleBox.js +5 -0
- package/dist/es2019/card/ui/titleBox/titleBoxComponents-compiled.js +3 -1
- package/dist/esm/card/ui/playButton/playButton.js +1 -4
- package/dist/esm/card/ui/titleBox/titleBox.js +5 -0
- package/dist/esm/card/ui/titleBox/titleBoxComponents-compiled.js +3 -1
- package/dist/types/card/ui/titleBox/types.d.ts +1 -0
- package/dist/types-ts4.5/card/ui/titleBox/types.d.ts +1 -0
- package/package.json +8 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/media-card
|
|
2
2
|
|
|
3
|
+
## 79.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`762b79e21f96a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/762b79e21f96a) -
|
|
8
|
+
Migrated and cleaned up legacy iconography usage.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 79.10.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- [`84bb4ddb6b05a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/84bb4ddb6b05a) -
|
|
19
|
+
Adding a suppressHydrationWarning prop
|
|
20
|
+
|
|
3
21
|
## 79.9.2
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -6,15 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.PlayButton = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _vidPlay = _interopRequireDefault(require("@atlaskit/icon/glyph/vid-play"));
|
|
10
9
|
var _videoPlayOverlay = _interopRequireDefault(require("@atlaskit/icon/core/video-play-overlay"));
|
|
11
10
|
var _playButtonWrapper = require("./playButtonWrapper");
|
|
12
11
|
var _playButtonBackground = require("./playButtonBackground");
|
|
13
12
|
var PlayButton = exports.PlayButton = function PlayButton() {
|
|
14
13
|
return /*#__PURE__*/_react.default.createElement(_playButtonWrapper.PlayButtonWrapper, null, /*#__PURE__*/_react.default.createElement(_playButtonBackground.PlayButtonBackground, null), /*#__PURE__*/_react.default.createElement(_videoPlayOverlay.default, {
|
|
15
14
|
color: "currentColor",
|
|
16
|
-
label: "play"
|
|
17
|
-
LEGACY_size: "large",
|
|
18
|
-
LEGACY_fallbackIcon: _vidPlay.default
|
|
15
|
+
label: "play"
|
|
19
16
|
}));
|
|
20
17
|
};
|
|
@@ -10,6 +10,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
10
10
|
var _lockLockedLockFilled = _interopRequireDefault(require("@atlaskit/icon/core/migration/lock-locked--lock-filled"));
|
|
11
11
|
var _truncateText = require("@atlaskit/media-ui/truncateText");
|
|
12
12
|
var _formatDate = require("@atlaskit/media-ui/formatDate");
|
|
13
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
14
|
var _titleBoxComponents = require("./titleBoxComponents");
|
|
14
15
|
var placeholderText = ' ';
|
|
15
16
|
var isValidTimestamp = function isValidTimestamp(timeStamp) {
|
|
@@ -33,6 +34,10 @@ var TitleBox = exports.TitleBox = (0, _reactIntlNext.injectIntl)(function (_ref)
|
|
|
33
34
|
text: name !== null && name !== void 0 ? name : placeholderText
|
|
34
35
|
})), /*#__PURE__*/_react.default.createElement(_titleBoxComponents.TitleBoxFooter, {
|
|
35
36
|
hasIconOverlap: !!titleBoxIcon
|
|
37
|
+
// Suppressing it here because of a timezone mismatch in the createdAt text
|
|
38
|
+
// that can cause a late mutation in the attachments strip view
|
|
39
|
+
,
|
|
40
|
+
suppressHydrationWarning: (0, _platformFeatureFlags.fg)('jfp-magma-fix-attachments-hydration-error') ? true : false
|
|
36
41
|
}, createdAt !== undefined && isValidTimestamp(createdAt) ? (0, _formatDate.formatDate)(createdAt, (_intl$locale = intl === null || intl === void 0 ? void 0 : intl.locale) !== null && _intl$locale !== void 0 ? _intl$locale : 'en') : placeholderText), titleBoxIcon === 'LockFilledIcon' && /*#__PURE__*/_react.default.createElement(_titleBoxComponents.TitleBoxIcon, null, /*#__PURE__*/_react.default.createElement(_lockLockedLockFilled.default, {
|
|
37
42
|
color: "currentColor",
|
|
38
43
|
label: "",
|
|
@@ -59,9 +59,11 @@ var TitleBoxHeader = exports.TitleBoxHeader = function TitleBoxHeader(props) {
|
|
|
59
59
|
TitleBoxHeader.displayName = 'FailedTitleBoxHeader';
|
|
60
60
|
var titleBoxFooterStyles = null;
|
|
61
61
|
var TitleBoxFooter = exports.TitleBoxFooter = function TitleBoxFooter(props) {
|
|
62
|
-
var hasIconOverlap = props.hasIconOverlap
|
|
62
|
+
var hasIconOverlap = props.hasIconOverlap,
|
|
63
|
+
suppressHydrationWarning = props.suppressHydrationWarning;
|
|
63
64
|
return /*#__PURE__*/React.createElement("div", {
|
|
64
65
|
id: "titleBoxFooter",
|
|
66
|
+
suppressHydrationWarning: suppressHydrationWarning,
|
|
65
67
|
"data-testid": "title-box-footer"
|
|
66
68
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
67
69
|
,
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import LegacyVidPlayIcon from '@atlaskit/icon/glyph/vid-play';
|
|
3
2
|
import VidPlayIcon from '@atlaskit/icon/core/video-play-overlay';
|
|
4
3
|
import { PlayButtonWrapper } from './playButtonWrapper';
|
|
5
4
|
import { PlayButtonBackground } from './playButtonBackground';
|
|
6
5
|
export const PlayButton = () => {
|
|
7
6
|
return /*#__PURE__*/React.createElement(PlayButtonWrapper, null, /*#__PURE__*/React.createElement(PlayButtonBackground, null), /*#__PURE__*/React.createElement(VidPlayIcon, {
|
|
8
7
|
color: "currentColor",
|
|
9
|
-
label: "play"
|
|
10
|
-
LEGACY_size: "large",
|
|
11
|
-
LEGACY_fallbackIcon: LegacyVidPlayIcon
|
|
8
|
+
label: "play"
|
|
12
9
|
}));
|
|
13
10
|
};
|
|
@@ -3,6 +3,7 @@ import { injectIntl } from 'react-intl-next';
|
|
|
3
3
|
import LockFilledIcon from '@atlaskit/icon/core/migration/lock-locked--lock-filled';
|
|
4
4
|
import { Truncate } from '@atlaskit/media-ui/truncateText';
|
|
5
5
|
import { formatDate } from '@atlaskit/media-ui/formatDate';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import { TitleBoxWrapper, TitleBoxFooter, TitleBoxHeader, TitleBoxIcon } from './titleBoxComponents';
|
|
7
8
|
const placeholderText = ' ';
|
|
8
9
|
const isValidTimestamp = timeStamp => new Date(timeStamp).getTime() > 0;
|
|
@@ -25,6 +26,10 @@ export const TitleBox = injectIntl(({
|
|
|
25
26
|
text: name !== null && name !== void 0 ? name : placeholderText
|
|
26
27
|
})), /*#__PURE__*/React.createElement(TitleBoxFooter, {
|
|
27
28
|
hasIconOverlap: !!titleBoxIcon
|
|
29
|
+
// Suppressing it here because of a timezone mismatch in the createdAt text
|
|
30
|
+
// that can cause a late mutation in the attachments strip view
|
|
31
|
+
,
|
|
32
|
+
suppressHydrationWarning: fg('jfp-magma-fix-attachments-hydration-error') ? true : false
|
|
28
33
|
}, createdAt !== undefined && isValidTimestamp(createdAt) ? formatDate(createdAt, (_intl$locale = intl === null || intl === void 0 ? void 0 : intl.locale) !== null && _intl$locale !== void 0 ? _intl$locale : 'en') : placeholderText), titleBoxIcon === 'LockFilledIcon' && /*#__PURE__*/React.createElement(TitleBoxIcon, null, /*#__PURE__*/React.createElement(LockFilledIcon, {
|
|
29
34
|
color: "currentColor",
|
|
30
35
|
label: "",
|
|
@@ -57,10 +57,12 @@ TitleBoxHeader.displayName = 'FailedTitleBoxHeader';
|
|
|
57
57
|
const titleBoxFooterStyles = null;
|
|
58
58
|
export const TitleBoxFooter = props => {
|
|
59
59
|
const {
|
|
60
|
-
hasIconOverlap
|
|
60
|
+
hasIconOverlap,
|
|
61
|
+
suppressHydrationWarning
|
|
61
62
|
} = props;
|
|
62
63
|
return /*#__PURE__*/React.createElement("div", {
|
|
63
64
|
id: "titleBoxFooter",
|
|
65
|
+
suppressHydrationWarning: suppressHydrationWarning,
|
|
64
66
|
"data-testid": "title-box-footer"
|
|
65
67
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
66
68
|
,
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import LegacyVidPlayIcon from '@atlaskit/icon/glyph/vid-play';
|
|
3
2
|
import VidPlayIcon from '@atlaskit/icon/core/video-play-overlay';
|
|
4
3
|
import { PlayButtonWrapper } from './playButtonWrapper';
|
|
5
4
|
import { PlayButtonBackground } from './playButtonBackground';
|
|
6
5
|
export var PlayButton = function PlayButton() {
|
|
7
6
|
return /*#__PURE__*/React.createElement(PlayButtonWrapper, null, /*#__PURE__*/React.createElement(PlayButtonBackground, null), /*#__PURE__*/React.createElement(VidPlayIcon, {
|
|
8
7
|
color: "currentColor",
|
|
9
|
-
label: "play"
|
|
10
|
-
LEGACY_size: "large",
|
|
11
|
-
LEGACY_fallbackIcon: LegacyVidPlayIcon
|
|
8
|
+
label: "play"
|
|
12
9
|
}));
|
|
13
10
|
};
|
|
@@ -3,6 +3,7 @@ import { injectIntl } from 'react-intl-next';
|
|
|
3
3
|
import LockFilledIcon from '@atlaskit/icon/core/migration/lock-locked--lock-filled';
|
|
4
4
|
import { Truncate } from '@atlaskit/media-ui/truncateText';
|
|
5
5
|
import { formatDate } from '@atlaskit/media-ui/formatDate';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import { TitleBoxWrapper, TitleBoxFooter, TitleBoxHeader, TitleBoxIcon } from './titleBoxComponents';
|
|
7
8
|
var placeholderText = ' ';
|
|
8
9
|
var isValidTimestamp = function isValidTimestamp(timeStamp) {
|
|
@@ -26,6 +27,10 @@ export var TitleBox = injectIntl(function (_ref) {
|
|
|
26
27
|
text: name !== null && name !== void 0 ? name : placeholderText
|
|
27
28
|
})), /*#__PURE__*/React.createElement(TitleBoxFooter, {
|
|
28
29
|
hasIconOverlap: !!titleBoxIcon
|
|
30
|
+
// Suppressing it here because of a timezone mismatch in the createdAt text
|
|
31
|
+
// that can cause a late mutation in the attachments strip view
|
|
32
|
+
,
|
|
33
|
+
suppressHydrationWarning: fg('jfp-magma-fix-attachments-hydration-error') ? true : false
|
|
29
34
|
}, createdAt !== undefined && isValidTimestamp(createdAt) ? formatDate(createdAt, (_intl$locale = intl === null || intl === void 0 ? void 0 : intl.locale) !== null && _intl$locale !== void 0 ? _intl$locale : 'en') : placeholderText), titleBoxIcon === 'LockFilledIcon' && /*#__PURE__*/React.createElement(TitleBoxIcon, null, /*#__PURE__*/React.createElement(LockFilledIcon, {
|
|
30
35
|
color: "currentColor",
|
|
31
36
|
label: "",
|
|
@@ -51,9 +51,11 @@ export var TitleBoxHeader = function TitleBoxHeader(props) {
|
|
|
51
51
|
TitleBoxHeader.displayName = 'FailedTitleBoxHeader';
|
|
52
52
|
var titleBoxFooterStyles = null;
|
|
53
53
|
export var TitleBoxFooter = function TitleBoxFooter(props) {
|
|
54
|
-
var hasIconOverlap = props.hasIconOverlap
|
|
54
|
+
var hasIconOverlap = props.hasIconOverlap,
|
|
55
|
+
suppressHydrationWarning = props.suppressHydrationWarning;
|
|
55
56
|
return /*#__PURE__*/React.createElement("div", {
|
|
56
57
|
id: "titleBoxFooter",
|
|
58
|
+
suppressHydrationWarning: suppressHydrationWarning,
|
|
57
59
|
"data-testid": "title-box-footer"
|
|
58
60
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
59
61
|
,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-card",
|
|
3
|
-
"version": "79.
|
|
3
|
+
"version": "79.11.0",
|
|
4
4
|
"description": "Includes all media card related components, CardView, CardViewSmall, Card...",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
35
35
|
"@atlaskit/dropdown-menu": "^16.3.0",
|
|
36
36
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
37
|
-
"@atlaskit/icon": "^29.
|
|
37
|
+
"@atlaskit/icon": "^29.2.0",
|
|
38
38
|
"@atlaskit/link": "^3.2.0",
|
|
39
39
|
"@atlaskit/media-client": "^35.7.0",
|
|
40
40
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"@atlaskit/media-viewer": "^52.5.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
47
|
"@atlaskit/primitives": "^16.4.0",
|
|
48
|
-
"@atlaskit/react-ufo": "^4.
|
|
48
|
+
"@atlaskit/react-ufo": "^4.16.0",
|
|
49
49
|
"@atlaskit/spinner": "^19.0.0",
|
|
50
50
|
"@atlaskit/theme": "^21.0.0",
|
|
51
|
-
"@atlaskit/tokens": "^8.
|
|
51
|
+
"@atlaskit/tokens": "^8.6.0",
|
|
52
52
|
"@atlaskit/tooltip": "^20.11.0",
|
|
53
53
|
"@atlaskit/ufo": "^0.4.0",
|
|
54
54
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@af/integration-testing": "workspace:^",
|
|
72
72
|
"@atlaskit/analytics-listeners": "^9.1.0",
|
|
73
73
|
"@atlaskit/analytics-namespaced-context": "^7.2.0",
|
|
74
|
-
"@atlaskit/form": "^
|
|
74
|
+
"@atlaskit/form": "^15.0.0",
|
|
75
75
|
"@atlaskit/inline-message": "^15.4.0",
|
|
76
76
|
"@atlaskit/media-core": "^37.0.0",
|
|
77
77
|
"@atlaskit/media-picker": "^70.1.0",
|
|
@@ -143,6 +143,9 @@
|
|
|
143
143
|
},
|
|
144
144
|
"media-perf-ratio-calc-fix": {
|
|
145
145
|
"type": "boolean"
|
|
146
|
+
},
|
|
147
|
+
"jfp-magma-fix-attachments-hydration-error": {
|
|
148
|
+
"type": "boolean"
|
|
146
149
|
}
|
|
147
150
|
},
|
|
148
151
|
"techstack": {
|