@atlaskit/smart-card 18.0.7 → 18.0.8
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/loader.js +9 -11
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/CardWithUrl/loader.js +21 -23
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/CardWithUrl/loader.js +9 -11
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 18.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d9b55e7cd29`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d9b55e7cd29) - Add classname for placeholder element that is shown while we load js module
|
|
8
|
+
|
|
3
9
|
## 18.0.7
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/cjs/version.json
CHANGED
|
@@ -23,7 +23,7 @@ var _reactErrorBoundary = require("react-error-boundary");
|
|
|
23
23
|
|
|
24
24
|
var _ufoExperiences = require("../../state/analytics/ufoExperiences");
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _LazyFallback = require("./component-lazy/LazyFallback");
|
|
27
27
|
|
|
28
28
|
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); }
|
|
29
29
|
|
|
@@ -106,15 +106,7 @@ function CardWithURLRenderer(props) {
|
|
|
106
106
|
throw new Error('@atlaskit/smart-card: url property is missing.');
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
|
|
110
|
-
FallbackComponent: ErrorFallback,
|
|
111
|
-
onError: logError
|
|
112
|
-
}, /*#__PURE__*/_react.default.createElement(_react.Suspense, {
|
|
113
|
-
fallback: /*#__PURE__*/_react.default.createElement(_LinkView.CardLinkView, {
|
|
114
|
-
key: 'chunk-placeholder',
|
|
115
|
-
link: url
|
|
116
|
-
})
|
|
117
|
-
}, /*#__PURE__*/_react.default.createElement(LazyCardWithUrlContent, {
|
|
109
|
+
var cardWithUrlProps = {
|
|
118
110
|
id: id,
|
|
119
111
|
url: url,
|
|
120
112
|
appearance: appearance,
|
|
@@ -131,7 +123,13 @@ function CardWithURLRenderer(props) {
|
|
|
131
123
|
embedIframeRef: embedIframeRef,
|
|
132
124
|
inlinePreloaderStyle: inlinePreloaderStyle,
|
|
133
125
|
ui: ui
|
|
134
|
-
}
|
|
126
|
+
};
|
|
127
|
+
return /*#__PURE__*/_react.default.createElement(_reactErrorBoundary.ErrorBoundary, {
|
|
128
|
+
FallbackComponent: ErrorFallback,
|
|
129
|
+
onError: logError
|
|
130
|
+
}, /*#__PURE__*/_react.default.createElement(_react.Suspense, {
|
|
131
|
+
fallback: /*#__PURE__*/_react.default.createElement(_LazyFallback.LoadingCardLink, cardWithUrlProps)
|
|
132
|
+
}, /*#__PURE__*/_react.default.createElement(LazyCardWithUrlContent, cardWithUrlProps, children)));
|
|
135
133
|
}
|
|
136
134
|
|
|
137
135
|
var ErrorFallback = function ErrorFallback() {
|
package/dist/es2019/version.json
CHANGED
|
@@ -4,7 +4,7 @@ import { uiRenderFailedEvent, fireSmartLinkEvent } from '../../utils/analytics';
|
|
|
4
4
|
import { clearMarks, clearMeasures } from '../../utils/performance';
|
|
5
5
|
import { ErrorBoundary } from 'react-error-boundary';
|
|
6
6
|
import { failUfoExperience, startUfoExperience } from '../../state/analytics/ufoExperiences';
|
|
7
|
-
import {
|
|
7
|
+
import { LoadingCardLink } from './component-lazy/LazyFallback';
|
|
8
8
|
const LazyCardWithUrlContent = /*#__PURE__*/lazy(() => import(
|
|
9
9
|
/* webpackChunkName: "@atlaskit-internal_smartcard-urlcardcontent" */
|
|
10
10
|
'./component-lazy/index'));
|
|
@@ -78,32 +78,30 @@ export function CardWithURLRenderer(props) {
|
|
|
78
78
|
throw new Error('@atlaskit/smart-card: url property is missing.');
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
const cardWithUrlProps = {
|
|
82
|
+
id,
|
|
83
|
+
url,
|
|
84
|
+
appearance,
|
|
85
|
+
onClick,
|
|
86
|
+
isSelected,
|
|
87
|
+
isFrameVisible,
|
|
88
|
+
dispatchAnalytics,
|
|
89
|
+
container,
|
|
90
|
+
onResolve,
|
|
91
|
+
testId,
|
|
92
|
+
showActions,
|
|
93
|
+
inheritDimensions,
|
|
94
|
+
platform,
|
|
95
|
+
embedIframeRef,
|
|
96
|
+
inlinePreloaderStyle,
|
|
97
|
+
ui
|
|
98
|
+
};
|
|
81
99
|
return /*#__PURE__*/React.createElement(ErrorBoundary, {
|
|
82
100
|
FallbackComponent: ErrorFallback,
|
|
83
101
|
onError: logError
|
|
84
102
|
}, /*#__PURE__*/React.createElement(Suspense, {
|
|
85
|
-
fallback: /*#__PURE__*/React.createElement(
|
|
86
|
-
|
|
87
|
-
link: url
|
|
88
|
-
})
|
|
89
|
-
}, /*#__PURE__*/React.createElement(LazyCardWithUrlContent, {
|
|
90
|
-
id: id,
|
|
91
|
-
url: url,
|
|
92
|
-
appearance: appearance,
|
|
93
|
-
onClick: onClick,
|
|
94
|
-
isSelected: isSelected,
|
|
95
|
-
isFrameVisible: isFrameVisible,
|
|
96
|
-
dispatchAnalytics: dispatchAnalytics,
|
|
97
|
-
container: container,
|
|
98
|
-
onResolve: onResolve,
|
|
99
|
-
testId: testId,
|
|
100
|
-
showActions: showActions,
|
|
101
|
-
inheritDimensions: inheritDimensions,
|
|
102
|
-
platform: platform,
|
|
103
|
-
embedIframeRef: embedIframeRef,
|
|
104
|
-
inlinePreloaderStyle: inlinePreloaderStyle,
|
|
105
|
-
ui: ui
|
|
106
|
-
}, children)));
|
|
103
|
+
fallback: /*#__PURE__*/React.createElement(LoadingCardLink, cardWithUrlProps)
|
|
104
|
+
}, /*#__PURE__*/React.createElement(LazyCardWithUrlContent, cardWithUrlProps, children)));
|
|
107
105
|
}
|
|
108
106
|
|
|
109
107
|
const ErrorFallback = () => {
|
package/dist/esm/version.json
CHANGED
|
@@ -5,7 +5,7 @@ import { uiRenderFailedEvent, fireSmartLinkEvent } from '../../utils/analytics';
|
|
|
5
5
|
import { clearMarks, clearMeasures } from '../../utils/performance';
|
|
6
6
|
import { ErrorBoundary } from 'react-error-boundary';
|
|
7
7
|
import { failUfoExperience, startUfoExperience } from '../../state/analytics/ufoExperiences';
|
|
8
|
-
import {
|
|
8
|
+
import { LoadingCardLink } from './component-lazy/LazyFallback';
|
|
9
9
|
var LazyCardWithUrlContent = /*#__PURE__*/lazy(function () {
|
|
10
10
|
return import(
|
|
11
11
|
/* webpackChunkName: "@atlaskit-internal_smartcard-urlcardcontent" */
|
|
@@ -82,15 +82,7 @@ export function CardWithURLRenderer(props) {
|
|
|
82
82
|
throw new Error('@atlaskit/smart-card: url property is missing.');
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
FallbackComponent: ErrorFallback,
|
|
87
|
-
onError: logError
|
|
88
|
-
}, /*#__PURE__*/React.createElement(Suspense, {
|
|
89
|
-
fallback: /*#__PURE__*/React.createElement(CardLinkView, {
|
|
90
|
-
key: 'chunk-placeholder',
|
|
91
|
-
link: url
|
|
92
|
-
})
|
|
93
|
-
}, /*#__PURE__*/React.createElement(LazyCardWithUrlContent, {
|
|
85
|
+
var cardWithUrlProps = {
|
|
94
86
|
id: id,
|
|
95
87
|
url: url,
|
|
96
88
|
appearance: appearance,
|
|
@@ -107,7 +99,13 @@ export function CardWithURLRenderer(props) {
|
|
|
107
99
|
embedIframeRef: embedIframeRef,
|
|
108
100
|
inlinePreloaderStyle: inlinePreloaderStyle,
|
|
109
101
|
ui: ui
|
|
110
|
-
}
|
|
102
|
+
};
|
|
103
|
+
return /*#__PURE__*/React.createElement(ErrorBoundary, {
|
|
104
|
+
FallbackComponent: ErrorFallback,
|
|
105
|
+
onError: logError
|
|
106
|
+
}, /*#__PURE__*/React.createElement(Suspense, {
|
|
107
|
+
fallback: /*#__PURE__*/React.createElement(LoadingCardLink, cardWithUrlProps)
|
|
108
|
+
}, /*#__PURE__*/React.createElement(LazyCardWithUrlContent, cardWithUrlProps, children)));
|
|
111
109
|
}
|
|
112
110
|
|
|
113
111
|
var ErrorFallback = function ErrorFallback() {
|