@atlaskit/smart-card 26.4.1 → 26.5.1

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 26.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`61cb5313358`](https://bitbucket.org/atlassian/atlassian-frontend/commits/61cb5313358) - Removing unused dependencies and dev dependencies
8
+ - Updated dependencies
9
+
10
+ ## 26.5.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`ce79111f98f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ce79111f98f) - Card component will stop throwing any uncaught errors. Any existing consumer relying on this behaviour should start using `fallbackComponent` to provide fallback ui and `onError` to act on such errors. See CardProps type for more docs.
15
+ Reason this is a minor bump and not a major version is because the previous behaviour of error propagation was actually a bug and was not a public contract with clients. This minor version fixes this bug and requires the client to update their code.
16
+
3
17
  ## 26.4.1
4
18
 
5
19
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "26.4.1",
3
+ "version": "26.5.1",
4
4
  "sideEffects": false
5
5
  }
@@ -61,7 +61,8 @@ function CardWithURLRenderer(props) {
61
61
  showHoverPreview = props.showHoverPreview,
62
62
  showAuthTooltip = props.showAuthTooltip,
63
63
  analyticsEvents = props.analyticsEvents,
64
- placeholder = props.placeholder;
64
+ placeholder = props.placeholder,
65
+ fallbackComponent = props.fallbackComponent;
65
66
 
66
67
  // Wrapper around analytics.
67
68
  var dispatchAnalytics = (0, _react.useMemo)(function () {
@@ -89,7 +90,7 @@ function CardWithURLRenderer(props) {
89
90
  };
90
91
  }, [appearance, createAnalyticsEvent]);
91
92
  var analytics = (0, _analytics2.useSmartLinkAnalytics)(url !== null && url !== void 0 ? url : '', dispatchAnalytics, id);
92
- var logError = (0, _react.useCallback)(function (error, info) {
93
+ var errorHandler = (0, _react.useCallback)(function (error, info) {
93
94
  var componentStack = info.componentStack;
94
95
  var errorInfo = {
95
96
  componentStack: componentStack
@@ -113,14 +114,22 @@ function CardWithURLRenderer(props) {
113
114
  errorInfo: errorInfo
114
115
  });
115
116
  }
116
-
117
- // Rethrow to hand control to the consumer of Smart-card.
118
- // In the case of editor this allows the Smart Link to fallback to a blue link.
119
- throw error;
120
- }, [analytics.operational, analytics.ui, appearance, id]);
117
+ onError && onError({
118
+ status: 'errored',
119
+ url: url !== null && url !== void 0 ? url : '',
120
+ err: error
121
+ });
122
+ }, [analytics.operational, analytics.ui, appearance, id, onError, url]);
121
123
  if (!url) {
122
124
  throw new Error('@atlaskit/smart-card: url property is missing.');
123
125
  }
126
+ var defaultFallBackComponent = function defaultFallBackComponent() {
127
+ return null;
128
+ };
129
+ var FallbackComponent = fallbackComponent !== null && fallbackComponent !== void 0 ? fallbackComponent : defaultFallBackComponent;
130
+ var ErrorFallback = function ErrorFallback() {
131
+ return /*#__PURE__*/_react.default.createElement(FallbackComponent, null);
132
+ };
124
133
  var cardWithUrlProps = {
125
134
  id: id,
126
135
  url: url,
@@ -149,11 +158,8 @@ function CardWithURLRenderer(props) {
149
158
  };
150
159
  return /*#__PURE__*/_react.default.createElement(_reactErrorBoundary.ErrorBoundary, {
151
160
  FallbackComponent: ErrorFallback,
152
- onError: logError
161
+ onError: errorHandler
153
162
  }, /*#__PURE__*/_react.default.createElement(_react.Suspense, {
154
163
  fallback: /*#__PURE__*/_react.default.createElement(_LazyFallback.LoadingCardLink, cardWithUrlProps)
155
164
  }, /*#__PURE__*/_react.default.createElement(LazyCardWithUrlContent, cardWithUrlProps, children)));
156
- }
157
- var ErrorFallback = function ErrorFallback() {
158
- return null;
159
- };
165
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "26.4.1",
3
+ "version": "26.5.1",
4
4
  "sideEffects": false
5
5
  }
@@ -41,7 +41,8 @@ export function CardWithURLRenderer(props) {
41
41
  showHoverPreview,
42
42
  showAuthTooltip,
43
43
  analyticsEvents,
44
- placeholder
44
+ placeholder,
45
+ fallbackComponent
45
46
  } = props;
46
47
 
47
48
  // Wrapper around analytics.
@@ -70,7 +71,7 @@ export function CardWithURLRenderer(props) {
70
71
  };
71
72
  }, [appearance, createAnalyticsEvent]);
72
73
  const analytics = useSmartLinkAnalytics(url !== null && url !== void 0 ? url : '', dispatchAnalytics, id);
73
- const logError = useCallback((error, info) => {
74
+ const errorHandler = useCallback((error, info) => {
74
75
  const {
75
76
  componentStack
76
77
  } = info;
@@ -96,14 +97,18 @@ export function CardWithURLRenderer(props) {
96
97
  errorInfo
97
98
  });
98
99
  }
99
-
100
- // Rethrow to hand control to the consumer of Smart-card.
101
- // In the case of editor this allows the Smart Link to fallback to a blue link.
102
- throw error;
103
- }, [analytics.operational, analytics.ui, appearance, id]);
100
+ onError && onError({
101
+ status: 'errored',
102
+ url: url !== null && url !== void 0 ? url : '',
103
+ err: error
104
+ });
105
+ }, [analytics.operational, analytics.ui, appearance, id, onError, url]);
104
106
  if (!url) {
105
107
  throw new Error('@atlaskit/smart-card: url property is missing.');
106
108
  }
109
+ const defaultFallBackComponent = () => null;
110
+ const FallbackComponent = fallbackComponent !== null && fallbackComponent !== void 0 ? fallbackComponent : defaultFallBackComponent;
111
+ const ErrorFallback = () => /*#__PURE__*/React.createElement(FallbackComponent, null);
107
112
  const cardWithUrlProps = {
108
113
  id,
109
114
  url,
@@ -132,11 +137,8 @@ export function CardWithURLRenderer(props) {
132
137
  };
133
138
  return /*#__PURE__*/React.createElement(ErrorBoundary, {
134
139
  FallbackComponent: ErrorFallback,
135
- onError: logError
140
+ onError: errorHandler
136
141
  }, /*#__PURE__*/React.createElement(Suspense, {
137
142
  fallback: /*#__PURE__*/React.createElement(LoadingCardLink, cardWithUrlProps)
138
143
  }, /*#__PURE__*/React.createElement(LazyCardWithUrlContent, cardWithUrlProps, children)));
139
- }
140
- const ErrorFallback = () => {
141
- return null;
142
- };
144
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "26.4.1",
3
+ "version": "26.5.1",
4
4
  "sideEffects": false
5
5
  }
@@ -49,7 +49,8 @@ export function CardWithURLRenderer(props) {
49
49
  showHoverPreview = props.showHoverPreview,
50
50
  showAuthTooltip = props.showAuthTooltip,
51
51
  analyticsEvents = props.analyticsEvents,
52
- placeholder = props.placeholder;
52
+ placeholder = props.placeholder,
53
+ fallbackComponent = props.fallbackComponent;
53
54
 
54
55
  // Wrapper around analytics.
55
56
  var dispatchAnalytics = useMemo(function () {
@@ -77,7 +78,7 @@ export function CardWithURLRenderer(props) {
77
78
  };
78
79
  }, [appearance, createAnalyticsEvent]);
79
80
  var analytics = useSmartLinkAnalytics(url !== null && url !== void 0 ? url : '', dispatchAnalytics, id);
80
- var logError = useCallback(function (error, info) {
81
+ var errorHandler = useCallback(function (error, info) {
81
82
  var componentStack = info.componentStack;
82
83
  var errorInfo = {
83
84
  componentStack: componentStack
@@ -101,14 +102,22 @@ export function CardWithURLRenderer(props) {
101
102
  errorInfo: errorInfo
102
103
  });
103
104
  }
104
-
105
- // Rethrow to hand control to the consumer of Smart-card.
106
- // In the case of editor this allows the Smart Link to fallback to a blue link.
107
- throw error;
108
- }, [analytics.operational, analytics.ui, appearance, id]);
105
+ onError && onError({
106
+ status: 'errored',
107
+ url: url !== null && url !== void 0 ? url : '',
108
+ err: error
109
+ });
110
+ }, [analytics.operational, analytics.ui, appearance, id, onError, url]);
109
111
  if (!url) {
110
112
  throw new Error('@atlaskit/smart-card: url property is missing.');
111
113
  }
114
+ var defaultFallBackComponent = function defaultFallBackComponent() {
115
+ return null;
116
+ };
117
+ var FallbackComponent = fallbackComponent !== null && fallbackComponent !== void 0 ? fallbackComponent : defaultFallBackComponent;
118
+ var ErrorFallback = function ErrorFallback() {
119
+ return /*#__PURE__*/React.createElement(FallbackComponent, null);
120
+ };
112
121
  var cardWithUrlProps = {
113
122
  id: id,
114
123
  url: url,
@@ -137,11 +146,8 @@ export function CardWithURLRenderer(props) {
137
146
  };
138
147
  return /*#__PURE__*/React.createElement(ErrorBoundary, {
139
148
  FallbackComponent: ErrorFallback,
140
- onError: logError
149
+ onError: errorHandler
141
150
  }, /*#__PURE__*/React.createElement(Suspense, {
142
151
  fallback: /*#__PURE__*/React.createElement(LoadingCardLink, cardWithUrlProps)
143
152
  }, /*#__PURE__*/React.createElement(LazyCardWithUrlContent, cardWithUrlProps, children)));
144
- }
145
- var ErrorFallback = function ErrorFallback() {
146
- return null;
147
- };
153
+ }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { CardAppearance, CardPlatform, CardProps } from './types';
3
3
  import { WrappedComponentProps } from 'react-intl-next';
4
- export declare const Card: React.ForwardRefExoticComponent<Pick<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<CardProps & WrappedComponentProps<"intl">>>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "url" | "children" | "data" | "key" | "id" | "placeholder" | "onError" | "onClick" | "appearance" | "testId" | "analyticsContext" | "isSelected" | "inheritDimensions" | "ui" | "showActions" | "showHoverPreview" | "showServerActions" | "onResolve" | "showAuthTooltip" | "platform" | "frameStyle" | "embedIframeRef" | "inlinePreloaderStyle" | "isFrameVisible" | "importer" | "container" | "embedIframeUrlType" | "analyticsEvents" | "forwardedRef"> & React.RefAttributes<any>>;
4
+ export declare const Card: React.ForwardRefExoticComponent<Pick<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<CardProps & WrappedComponentProps<"intl">>>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "url" | "children" | "data" | "key" | "id" | "placeholder" | "onError" | "onClick" | "appearance" | "testId" | "analyticsContext" | "isSelected" | "inheritDimensions" | "ui" | "showActions" | "showHoverPreview" | "showServerActions" | "onResolve" | "showAuthTooltip" | "platform" | "frameStyle" | "embedIframeRef" | "inlinePreloaderStyle" | "isFrameVisible" | "importer" | "container" | "fallbackComponent" | "embedIframeUrlType" | "analyticsEvents" | "forwardedRef"> & React.RefAttributes<any>>;
5
5
  export type { CardAppearance, CardProps, CardPlatform };
@@ -28,6 +28,11 @@ export interface CardProps extends WithAnalyticsEventsProps {
28
28
  onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
29
29
  importer?: (target: any) => void;
30
30
  container?: HTMLElement;
31
+ /**
32
+ * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-3226 Internal documentation for deprecation (no external access)}
33
+ * Likely here for legacy reason where editor would store data in ADF instead of resolving it everytime
34
+ * https://product-fabric.atlassian.net/browse/EDM-6813
35
+ */
31
36
  data?: any;
32
37
  url?: string;
33
38
  testId?: string;
@@ -41,7 +46,22 @@ export interface CardProps extends WithAnalyticsEventsProps {
41
46
  */
42
47
  showServerActions?: boolean;
43
48
  onResolve?: OnResolveCallback;
49
+ /**
50
+ * A callback function currently invoked in two cases
51
+ * 1. When the {@link CardState.status} is one of {@link ErrorCardType}. "err" property in argument will be undefined in this case
52
+ * This does not mean that smart card failed to render.
53
+ * 2. When there is any unhandled error inside smart card while rendering, resulting in failure to render smart card succesfully.
54
+ * "err" property in argument will be provided in this case.
55
+ * Presence of an err property indicates that the client should either render their own fallback
56
+ * or provide a fallbackComponent prop which will be rendered instead smart card component.
57
+ * If fallbackComponent is not provided, smart card will render null
58
+ */
44
59
  onError?: OnErrorCallback;
60
+ /**
61
+ * A component that will be rendered when smart card fails to render
62
+ * because of uncaught errors
63
+ */
64
+ fallbackComponent?: React.ComponentType;
45
65
  /** This props determines if dimensions of an embed card are to be inherited from the parent.
46
66
  * The parent container needs to override a style '.loader-wrapper' and set the desirable height there. (for instance, 'height: 100%')
47
67
  */
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { CardAppearance, CardPlatform, CardProps } from './types';
3
3
  import { WrappedComponentProps } from 'react-intl-next';
4
- export declare const Card: React.ForwardRefExoticComponent<Pick<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<CardProps & WrappedComponentProps<"intl">>>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "url" | "children" | "data" | "key" | "id" | "placeholder" | "onError" | "onClick" | "appearance" | "testId" | "analyticsContext" | "isSelected" | "inheritDimensions" | "ui" | "showActions" | "showHoverPreview" | "showServerActions" | "onResolve" | "showAuthTooltip" | "platform" | "frameStyle" | "embedIframeRef" | "inlinePreloaderStyle" | "isFrameVisible" | "importer" | "container" | "embedIframeUrlType" | "analyticsEvents" | "forwardedRef"> & React.RefAttributes<any>>;
4
+ export declare const Card: React.ForwardRefExoticComponent<Pick<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<CardProps & WrappedComponentProps<"intl">>>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "url" | "children" | "data" | "key" | "id" | "placeholder" | "onError" | "onClick" | "appearance" | "testId" | "analyticsContext" | "isSelected" | "inheritDimensions" | "ui" | "showActions" | "showHoverPreview" | "showServerActions" | "onResolve" | "showAuthTooltip" | "platform" | "frameStyle" | "embedIframeRef" | "inlinePreloaderStyle" | "isFrameVisible" | "importer" | "container" | "fallbackComponent" | "embedIframeUrlType" | "analyticsEvents" | "forwardedRef"> & React.RefAttributes<any>>;
5
5
  export type { CardAppearance, CardProps, CardPlatform };
@@ -28,6 +28,11 @@ export interface CardProps extends WithAnalyticsEventsProps {
28
28
  onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
29
29
  importer?: (target: any) => void;
30
30
  container?: HTMLElement;
31
+ /**
32
+ * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-3226 Internal documentation for deprecation (no external access)}
33
+ * Likely here for legacy reason where editor would store data in ADF instead of resolving it everytime
34
+ * https://product-fabric.atlassian.net/browse/EDM-6813
35
+ */
31
36
  data?: any;
32
37
  url?: string;
33
38
  testId?: string;
@@ -41,7 +46,22 @@ export interface CardProps extends WithAnalyticsEventsProps {
41
46
  */
42
47
  showServerActions?: boolean;
43
48
  onResolve?: OnResolveCallback;
49
+ /**
50
+ * A callback function currently invoked in two cases
51
+ * 1. When the {@link CardState.status} is one of {@link ErrorCardType}. "err" property in argument will be undefined in this case
52
+ * This does not mean that smart card failed to render.
53
+ * 2. When there is any unhandled error inside smart card while rendering, resulting in failure to render smart card succesfully.
54
+ * "err" property in argument will be provided in this case.
55
+ * Presence of an err property indicates that the client should either render their own fallback
56
+ * or provide a fallbackComponent prop which will be rendered instead smart card component.
57
+ * If fallbackComponent is not provided, smart card will render null
58
+ */
44
59
  onError?: OnErrorCallback;
60
+ /**
61
+ * A component that will be rendered when smart card fails to render
62
+ * because of uncaught errors
63
+ */
64
+ fallbackComponent?: React.ComponentType;
45
65
  /** This props determines if dimensions of an embed card are to be inherited from the parent.
46
66
  * The parent container needs to override a style '.loader-wrapper' and set the desirable height there. (for instance, 'height: 100%')
47
67
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "26.4.1",
3
+ "version": "26.5.1",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -54,7 +54,7 @@
54
54
  "@atlaskit/popup": "^1.6.0",
55
55
  "@atlaskit/spinner": "^15.5.0",
56
56
  "@atlaskit/theme": "^12.5.0",
57
- "@atlaskit/tokens": "^1.4.0",
57
+ "@atlaskit/tokens": "^1.5.0",
58
58
  "@atlaskit/tooltip": "^17.8.0",
59
59
  "@atlaskit/ufo": "^0.2.0",
60
60
  "@babel/runtime": "^7.0.0",
@@ -71,7 +71,7 @@
71
71
  "uuid": "^3.1.0"
72
72
  },
73
73
  "peerDependencies": {
74
- "@atlaskit/link-provider": "^1.6.3",
74
+ "@atlaskit/link-provider": "^1.6.4",
75
75
  "react": "^16.8.0",
76
76
  "react-dom": "^16.8.0",
77
77
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -82,21 +82,19 @@
82
82
  "@atlaskit/code": "^14.6.0",
83
83
  "@atlaskit/css-reset": "^6.5.0",
84
84
  "@atlaskit/docs": "*",
85
- "@atlaskit/field-base": "^15.2.0",
86
85
  "@atlaskit/form": "^8.11.0",
87
86
  "@atlaskit/inline-message": "^11.5.0",
88
87
  "@atlaskit/link-test-helpers": "^4.0.0",
89
88
  "@atlaskit/lozenge": "^11.4.0",
90
- "@atlaskit/media-integration-test-helpers": "^2.6.0",
89
+ "@atlaskit/media-integration-test-helpers": "^3.0.0",
91
90
  "@atlaskit/media-test-helpers": "^33.0.0",
92
91
  "@atlaskit/page": "^12.3.0",
93
92
  "@atlaskit/radio": "^5.6.0",
94
93
  "@atlaskit/range": "^7.1.0",
95
94
  "@atlaskit/section-message": "^6.4.0",
96
- "@atlaskit/select": "^16.4.0",
95
+ "@atlaskit/select": "^16.5.0",
97
96
  "@atlaskit/table-tree": "^9.4.0",
98
97
  "@atlaskit/tabs": "^13.4.0",
99
- "@atlaskit/textarea": "^4.7.0",
100
98
  "@atlaskit/textfield": "^5.5.0",
101
99
  "@atlaskit/toggle": "^12.6.0",
102
100
  "@atlaskit/visual-regression": "*",
package/report.api.md CHANGED
@@ -246,6 +246,7 @@ export const Card: React_2.ForwardRefExoticComponent<
246
246
  | 'data'
247
247
  | 'embedIframeRef'
248
248
  | 'embedIframeUrlType'
249
+ | 'fallbackComponent'
249
250
  | 'forwardedRef'
250
251
  | 'frameStyle'
251
252
  | 'id'
@@ -296,12 +297,13 @@ export interface CardProps extends WithAnalyticsEventsProps {
296
297
  children?: React.ReactNode;
297
298
  // (undocumented)
298
299
  container?: HTMLElement;
299
- // (undocumented)
300
+ // @deprecated (undocumented)
300
301
  data?: any;
301
302
  // (undocumented)
302
303
  embedIframeRef?: React.Ref<HTMLIFrameElement>;
303
304
  // (undocumented)
304
305
  embedIframeUrlType?: EmbedIframeUrlType;
306
+ fallbackComponent?: React.ComponentType;
305
307
  frameStyle?: FrameStyle;
306
308
  // (undocumented)
307
309
  id?: string;
@@ -316,7 +318,6 @@ export interface CardProps extends WithAnalyticsEventsProps {
316
318
  isSelected?: boolean;
317
319
  // (undocumented)
318
320
  onClick?: React.EventHandler<React.KeyboardEvent | React.MouseEvent>;
319
- // (undocumented)
320
321
  onError?: OnErrorCallback;
321
322
  // (undocumented)
322
323
  onResolve?: OnResolveCallback;
@@ -1284,7 +1285,7 @@ type VoteCount = {
1284
1285
 
1285
1286
  ```json
1286
1287
  {
1287
- "@atlaskit/link-provider": "^1.6.3",
1288
+ "@atlaskit/link-provider": "^1.6.4",
1288
1289
  "react": "^16.8.0",
1289
1290
  "react-dom": "^16.8.0",
1290
1291
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -179,7 +179,7 @@ type BlockProps = {
179
179
  };
180
180
 
181
181
  // @public (undocumented)
182
- export const Card: React_2.ForwardRefExoticComponent<Pick<Omit<React_2.PropsWithChildren<WithIntlProps<CardProps & WrappedComponentProps<"intl">>>, keyof WithAnalyticsEventsProps> & React_2.RefAttributes<any> & WithContextProps, "analyticsContext" | "analyticsEvents" | "appearance" | "children" | "container" | "data" | "embedIframeRef" | "embedIframeUrlType" | "forwardedRef" | "frameStyle" | "id" | "importer" | "inheritDimensions" | "inlinePreloaderStyle" | "isFrameVisible" | "isSelected" | "key" | "onClick" | "onError" | "onResolve" | "placeholder" | "platform" | "showActions" | "showAuthTooltip" | "showHoverPreview" | "showServerActions" | "testId" | "ui" | "url"> & React_2.RefAttributes<any>>;
182
+ export const Card: React_2.ForwardRefExoticComponent<Pick<Omit<React_2.PropsWithChildren<WithIntlProps<CardProps & WrappedComponentProps<"intl">>>, keyof WithAnalyticsEventsProps> & React_2.RefAttributes<any> & WithContextProps, "analyticsContext" | "analyticsEvents" | "appearance" | "children" | "container" | "data" | "embedIframeRef" | "embedIframeUrlType" | "fallbackComponent" | "forwardedRef" | "frameStyle" | "id" | "importer" | "inheritDimensions" | "inlinePreloaderStyle" | "isFrameVisible" | "isSelected" | "key" | "onClick" | "onError" | "onResolve" | "placeholder" | "platform" | "showActions" | "showAuthTooltip" | "showHoverPreview" | "showServerActions" | "testId" | "ui" | "url"> & React_2.RefAttributes<any>>;
183
183
 
184
184
  export { CardAdf }
185
185
 
@@ -202,12 +202,13 @@ export interface CardProps extends WithAnalyticsEventsProps {
202
202
  children?: React.ReactNode;
203
203
  // (undocumented)
204
204
  container?: HTMLElement;
205
- // (undocumented)
205
+ // @deprecated (undocumented)
206
206
  data?: any;
207
207
  // (undocumented)
208
208
  embedIframeRef?: React.Ref<HTMLIFrameElement>;
209
209
  // (undocumented)
210
210
  embedIframeUrlType?: EmbedIframeUrlType;
211
+ fallbackComponent?: React.ComponentType;
211
212
  frameStyle?: FrameStyle;
212
213
  // (undocumented)
213
214
  id?: string;
@@ -222,7 +223,6 @@ export interface CardProps extends WithAnalyticsEventsProps {
222
223
  isSelected?: boolean;
223
224
  // (undocumented)
224
225
  onClick?: React.EventHandler<React.KeyboardEvent | React.MouseEvent>;
225
- // (undocumented)
226
226
  onError?: OnErrorCallback;
227
227
  // (undocumented)
228
228
  onResolve?: OnResolveCallback;