@atlaskit/smart-card 24.2.0 → 24.3.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 +6 -0
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/CardWithUrl/component.js +1 -2
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/CardWithUrl/component.js +1 -2
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/CardWithUrl/component.js +1 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 24.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`9f903aa9c4e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9f903aa9c4e) - Fixes rethrow logic in flex ui to not rely on reference to APIError constructor.
|
|
8
|
+
|
|
3
9
|
## 24.2.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/cjs/version.json
CHANGED
|
@@ -18,7 +18,6 @@ var _InlineCard = require("../InlineCard");
|
|
|
18
18
|
var _EmbedCard = require("../EmbedCard");
|
|
19
19
|
var _flexible = require("../../utils/flexible");
|
|
20
20
|
var _FlexibleCard = _interopRequireDefault(require("../FlexibleCard"));
|
|
21
|
-
var _ = require("../..");
|
|
22
21
|
var _constants = require("../../constants");
|
|
23
22
|
var _click = require("../../utils/analytics/click");
|
|
24
23
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -172,7 +171,7 @@ function CardWithUrlContent(_ref) {
|
|
|
172
171
|
if (isFlexibleUi) {
|
|
173
172
|
var cardState = state;
|
|
174
173
|
if (error) {
|
|
175
|
-
if ((error === null || error === void 0 ? void 0 : error.
|
|
174
|
+
if ((error === null || error === void 0 ? void 0 : error.name) === 'APIError') {
|
|
176
175
|
cardState = {
|
|
177
176
|
status: 'errored'
|
|
178
177
|
};
|
package/dist/es2019/version.json
CHANGED
|
@@ -10,7 +10,6 @@ import { InlineCard } from '../InlineCard';
|
|
|
10
10
|
import { EmbedCard } from '../EmbedCard';
|
|
11
11
|
import { isFlexibleUiCard } from '../../utils/flexible';
|
|
12
12
|
import FlexibleCard from '../FlexibleCard';
|
|
13
|
-
import { APIError } from '../..';
|
|
14
13
|
import { CardDisplay } from '../../constants';
|
|
15
14
|
import { fireLinkClickedEvent } from '../../utils/analytics/click';
|
|
16
15
|
export function CardWithUrlContent({
|
|
@@ -159,7 +158,7 @@ export function CardWithUrlContent({
|
|
|
159
158
|
if (isFlexibleUi) {
|
|
160
159
|
let cardState = state;
|
|
161
160
|
if (error) {
|
|
162
|
-
if ((error === null || error === void 0 ? void 0 : error.
|
|
161
|
+
if ((error === null || error === void 0 ? void 0 : error.name) === 'APIError') {
|
|
163
162
|
cardState = {
|
|
164
163
|
status: 'errored'
|
|
165
164
|
};
|
package/dist/esm/version.json
CHANGED
|
@@ -10,7 +10,6 @@ import { InlineCard } from '../InlineCard';
|
|
|
10
10
|
import { EmbedCard } from '../EmbedCard';
|
|
11
11
|
import { isFlexibleUiCard } from '../../utils/flexible';
|
|
12
12
|
import FlexibleCard from '../FlexibleCard';
|
|
13
|
-
import { APIError } from '../..';
|
|
14
13
|
import { CardDisplay } from '../../constants';
|
|
15
14
|
import { fireLinkClickedEvent } from '../../utils/analytics/click';
|
|
16
15
|
export function CardWithUrlContent(_ref) {
|
|
@@ -162,7 +161,7 @@ export function CardWithUrlContent(_ref) {
|
|
|
162
161
|
if (isFlexibleUi) {
|
|
163
162
|
var cardState = state;
|
|
164
163
|
if (error) {
|
|
165
|
-
if ((error === null || error === void 0 ? void 0 : error.
|
|
164
|
+
if ((error === null || error === void 0 ? void 0 : error.name) === 'APIError') {
|
|
166
165
|
cardState = {
|
|
167
166
|
status: 'errored'
|
|
168
167
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.3.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"@atlaskit/avatar": "^21.1.0",
|
|
28
28
|
"@atlaskit/avatar-group": "^9.2.0",
|
|
29
29
|
"@atlaskit/button": "^16.5.0",
|
|
30
|
-
"@atlaskit/dropdown-menu": "^11.
|
|
30
|
+
"@atlaskit/dropdown-menu": "^11.6.0",
|
|
31
31
|
"@atlaskit/icon": "^21.11.0",
|
|
32
32
|
"@atlaskit/icon-file-type": "^6.3.0",
|
|
33
33
|
"@atlaskit/icon-object": "^6.2.0",
|
|
34
34
|
"@atlaskit/icon-priority": "^6.3.0",
|
|
35
35
|
"@atlaskit/in-product-testing": "^0.1.0",
|
|
36
|
-
"@atlaskit/linking-common": "^2.
|
|
36
|
+
"@atlaskit/linking-common": "^2.1.0",
|
|
37
37
|
"@atlaskit/logo": "^13.11.0",
|
|
38
38
|
"@atlaskit/lozenge": "^11.3.0",
|
|
39
39
|
"@atlaskit/media-common": "^2.19.0",
|