@atlaskit/smart-card 20.0.6 → 20.1.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 +29 -0
- package/dist/cjs/state/actions/constants.js +4 -2
- package/dist/cjs/state/actions/index.js +51 -19
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/BlockCard/index.js +29 -0
- package/dist/cjs/view/CardWithUrl/component.js +7 -2
- package/dist/cjs/view/CardWithUrl/loader.js +2 -0
- package/dist/cjs/view/EmbedCard/index.js +29 -0
- package/dist/cjs/view/FlexibleCard/index.js +34 -7
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +9 -1
- package/dist/cjs/view/InlineCard/index.js +29 -0
- package/dist/es2019/state/actions/constants.js +2 -1
- package/dist/es2019/state/actions/index.js +46 -18
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/BlockCard/index.js +29 -0
- package/dist/es2019/view/CardWithUrl/component.js +7 -2
- package/dist/es2019/view/CardWithUrl/loader.js +2 -0
- package/dist/es2019/view/EmbedCard/index.js +29 -0
- package/dist/es2019/view/FlexibleCard/index.js +32 -7
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +6 -0
- package/dist/es2019/view/InlineCard/index.js +29 -0
- package/dist/esm/state/actions/constants.js +2 -1
- package/dist/esm/state/actions/index.js +51 -20
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/BlockCard/index.js +29 -0
- package/dist/esm/view/CardWithUrl/component.js +7 -2
- package/dist/esm/view/CardWithUrl/loader.js +2 -0
- package/dist/esm/view/EmbedCard/index.js +29 -0
- package/dist/esm/view/FlexibleCard/index.js +33 -7
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +8 -1
- package/dist/esm/view/InlineCard/index.js +29 -0
- package/dist/types/state/actions/constants.d.ts +1 -0
- package/dist/types/state/actions/index.d.ts +1 -0
- package/dist/types/state/hooks/useSmartLink.d.ts +1 -0
- package/dist/types/view/BlockCard/types.d.ts +2 -0
- package/dist/types/view/Card/index.d.ts +1 -1
- package/dist/types/view/Card/types.d.ts +2 -1
- package/dist/types/view/CardWithUrl/component.d.ts +1 -1
- package/dist/types/view/CardWithUrl/types.d.ts +2 -1
- package/dist/types/view/EmbedCard/components/styled.d.ts +16 -16
- package/dist/types/view/EmbedCard/types.d.ts +2 -0
- package/dist/types/view/FlexibleCard/types.d.ts +9 -4
- package/dist/types/view/HoverCard/types.d.ts +1 -0
- package/dist/types/view/InlineCard/Frame/styled.d.ts +1 -1
- package/dist/types/view/InlineCard/Icon.d.ts +3 -3
- package/dist/types/view/InlineCard/IconAndTitleLayout/styled.d.ts +9 -9
- package/dist/types/view/InlineCard/ResolvingView/styled.d.ts +13 -5
- package/dist/types/view/InlineCard/styled.d.ts +8 -4
- package/dist/types/view/InlineCard/types.d.ts +2 -1
- package/dist/types/view/types.d.ts +6 -0
- package/package.json +4 -4
|
@@ -31,6 +31,7 @@ export var BlockCard = function BlockCard(_ref) {
|
|
|
31
31
|
renderers = _ref.renderers,
|
|
32
32
|
isSelected = _ref.isSelected,
|
|
33
33
|
onResolve = _ref.onResolve,
|
|
34
|
+
onError = _ref.onError,
|
|
34
35
|
testId = _ref.testId,
|
|
35
36
|
showActions = _ref.showActions,
|
|
36
37
|
platform = _ref.platform;
|
|
@@ -68,6 +69,13 @@ export var BlockCard = function BlockCard(_ref) {
|
|
|
68
69
|
}));
|
|
69
70
|
|
|
70
71
|
case 'unauthorized':
|
|
72
|
+
if (onError) {
|
|
73
|
+
onError({
|
|
74
|
+
url: url,
|
|
75
|
+
status: status
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
|
|
71
79
|
var unauthorizedViewProps = extractBlockProps(data, meta, extractorOpts);
|
|
72
80
|
return /*#__PURE__*/React.createElement(BlockCardUnauthorisedView, _extends({}, unauthorizedViewProps, {
|
|
73
81
|
isSelected: isSelected,
|
|
@@ -78,6 +86,13 @@ export var BlockCard = function BlockCard(_ref) {
|
|
|
78
86
|
}));
|
|
79
87
|
|
|
80
88
|
case 'forbidden':
|
|
89
|
+
if (onError) {
|
|
90
|
+
onError({
|
|
91
|
+
url: url,
|
|
92
|
+
status: status
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
|
|
81
96
|
var forbiddenViewProps = extractBlockProps(data, meta, extractorOpts);
|
|
82
97
|
var cardMetadata = (_details$meta = details === null || details === void 0 ? void 0 : details.meta) !== null && _details$meta !== void 0 ? _details$meta : getUnauthorizedJsonLd().meta;
|
|
83
98
|
var requestAccessContext = extractRequestAccessContext({
|
|
@@ -94,6 +109,13 @@ export var BlockCard = function BlockCard(_ref) {
|
|
|
94
109
|
}));
|
|
95
110
|
|
|
96
111
|
case 'not_found':
|
|
112
|
+
if (onError) {
|
|
113
|
+
onError({
|
|
114
|
+
url: url,
|
|
115
|
+
status: status
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
|
|
97
119
|
var notFoundViewProps = extractBlockProps(data, meta, extractorOpts);
|
|
98
120
|
return /*#__PURE__*/React.createElement(BlockCardNotFoundView, _extends({}, notFoundViewProps, {
|
|
99
121
|
isSelected: isSelected,
|
|
@@ -103,6 +125,13 @@ export var BlockCard = function BlockCard(_ref) {
|
|
|
103
125
|
|
|
104
126
|
case 'fallback':
|
|
105
127
|
case 'errored':
|
|
128
|
+
if (onError) {
|
|
129
|
+
onError({
|
|
130
|
+
url: url,
|
|
131
|
+
status: status
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
|
|
106
135
|
if (authFlow && authFlow === 'disabled') {
|
|
107
136
|
return /*#__PURE__*/React.createElement(CardLinkView, {
|
|
108
137
|
link: url,
|
|
@@ -20,6 +20,7 @@ export function CardWithUrlContent(_ref) {
|
|
|
20
20
|
appearance = _ref.appearance,
|
|
21
21
|
dispatchAnalytics = _ref.dispatchAnalytics,
|
|
22
22
|
onResolve = _ref.onResolve,
|
|
23
|
+
onError = _ref.onError,
|
|
23
24
|
testId = _ref.testId,
|
|
24
25
|
showActions = _ref.showActions,
|
|
25
26
|
inheritDimensions = _ref.inheritDimensions,
|
|
@@ -97,7 +98,7 @@ export function CardWithUrlContent(_ref) {
|
|
|
97
98
|
if (isFinalState(state.status)) {
|
|
98
99
|
analytics.ui.renderSuccessEvent(appearance, state.status, id, definitionId, extensionKey);
|
|
99
100
|
}
|
|
100
|
-
}, [appearance, state.
|
|
101
|
+
}, [appearance, state.status, url, definitionId, extensionKey, analytics.ui, id]);
|
|
101
102
|
|
|
102
103
|
if (isFlexibleUi) {
|
|
103
104
|
var cardState = state;
|
|
@@ -121,7 +122,8 @@ export function CardWithUrlContent(_ref) {
|
|
|
121
122
|
ui: ui,
|
|
122
123
|
url: url,
|
|
123
124
|
testId: testId,
|
|
124
|
-
onResolve: onResolve
|
|
125
|
+
onResolve: onResolve,
|
|
126
|
+
onError: onError
|
|
125
127
|
}, children);
|
|
126
128
|
} // We have to keep this last to prevent hook order from being violated
|
|
127
129
|
|
|
@@ -141,6 +143,7 @@ export function CardWithUrlContent(_ref) {
|
|
|
141
143
|
handleFrameClick: handleClickWrapper,
|
|
142
144
|
isSelected: isSelected,
|
|
143
145
|
onResolve: onResolve,
|
|
146
|
+
onError: onError,
|
|
144
147
|
testId: testId,
|
|
145
148
|
inlinePreloaderStyle: inlinePreloaderStyle,
|
|
146
149
|
showHoverPreview: showHoverPreview
|
|
@@ -160,6 +163,7 @@ export function CardWithUrlContent(_ref) {
|
|
|
160
163
|
handleAnalytics: dispatchAnalytics,
|
|
161
164
|
isSelected: isSelected,
|
|
162
165
|
onResolve: onResolve,
|
|
166
|
+
onError: onError,
|
|
163
167
|
testId: testId,
|
|
164
168
|
showActions: showActions,
|
|
165
169
|
platform: platform
|
|
@@ -179,6 +183,7 @@ export function CardWithUrlContent(_ref) {
|
|
|
179
183
|
isFrameVisible: isFrameVisible,
|
|
180
184
|
platform: platform,
|
|
181
185
|
onResolve: onResolve,
|
|
186
|
+
onError: onError,
|
|
182
187
|
testId: testId,
|
|
183
188
|
inheritDimensions: inheritDimensions,
|
|
184
189
|
showActions: showActions,
|
|
@@ -32,6 +32,7 @@ export function CardWithURLRenderer(props) {
|
|
|
32
32
|
onClick = props.onClick,
|
|
33
33
|
container = props.container,
|
|
34
34
|
onResolve = props.onResolve,
|
|
35
|
+
onError = props.onError,
|
|
35
36
|
testId = props.testId,
|
|
36
37
|
showActions = props.showActions,
|
|
37
38
|
inheritDimensions = props.inheritDimensions,
|
|
@@ -89,6 +90,7 @@ export function CardWithURLRenderer(props) {
|
|
|
89
90
|
dispatchAnalytics: dispatchAnalytics,
|
|
90
91
|
container: container,
|
|
91
92
|
onResolve: onResolve,
|
|
93
|
+
onError: onError,
|
|
92
94
|
testId: testId,
|
|
93
95
|
showActions: showActions,
|
|
94
96
|
inheritDimensions: inheritDimensions,
|
|
@@ -30,6 +30,7 @@ export var EmbedCard = /*#__PURE__*/React.forwardRef(function (_ref, iframeRef)
|
|
|
30
30
|
isFrameVisible = _ref.isFrameVisible,
|
|
31
31
|
platform = _ref.platform,
|
|
32
32
|
onResolve = _ref.onResolve,
|
|
33
|
+
onError = _ref.onError,
|
|
33
34
|
testId = _ref.testId,
|
|
34
35
|
inheritDimensions = _ref.inheritDimensions;
|
|
35
36
|
var data = details && details.data || getEmptyJsonLd();
|
|
@@ -89,6 +90,13 @@ export var EmbedCard = /*#__PURE__*/React.forwardRef(function (_ref, iframeRef)
|
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
case 'unauthorized':
|
|
93
|
+
if (onError) {
|
|
94
|
+
onError({
|
|
95
|
+
url: url,
|
|
96
|
+
status: status
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
|
|
92
100
|
var unauthorisedViewProps = extractEmbedProps(data, meta, platform);
|
|
93
101
|
return /*#__PURE__*/React.createElement(EmbedCardUnauthorisedView, _extends({}, unauthorisedViewProps, {
|
|
94
102
|
isSelected: isSelected,
|
|
@@ -98,6 +106,13 @@ export var EmbedCard = /*#__PURE__*/React.forwardRef(function (_ref, iframeRef)
|
|
|
98
106
|
}));
|
|
99
107
|
|
|
100
108
|
case 'forbidden':
|
|
109
|
+
if (onError) {
|
|
110
|
+
onError({
|
|
111
|
+
url: url,
|
|
112
|
+
status: status
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
|
|
101
116
|
var forbiddenViewProps = extractEmbedProps(data, meta, platform);
|
|
102
117
|
var cardMetadata = (_details$meta = details === null || details === void 0 ? void 0 : details.meta) !== null && _details$meta !== void 0 ? _details$meta : getUnauthorizedJsonLd().meta;
|
|
103
118
|
var requestAccessContext = extractRequestAccessContext({
|
|
@@ -114,6 +129,13 @@ export var EmbedCard = /*#__PURE__*/React.forwardRef(function (_ref, iframeRef)
|
|
|
114
129
|
}));
|
|
115
130
|
|
|
116
131
|
case 'not_found':
|
|
132
|
+
if (onError) {
|
|
133
|
+
onError({
|
|
134
|
+
url: url,
|
|
135
|
+
status: status
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
|
|
117
139
|
var notFoundViewProps = extractEmbedProps(data, meta, platform);
|
|
118
140
|
return /*#__PURE__*/React.createElement(EmbedCardNotFoundView, _extends({}, notFoundViewProps, {
|
|
119
141
|
isSelected: isSelected,
|
|
@@ -123,6 +145,13 @@ export var EmbedCard = /*#__PURE__*/React.forwardRef(function (_ref, iframeRef)
|
|
|
123
145
|
|
|
124
146
|
case 'fallback':
|
|
125
147
|
case 'errored':
|
|
148
|
+
if (onError) {
|
|
149
|
+
onError({
|
|
150
|
+
url: url,
|
|
151
|
+
status: status
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
|
|
126
155
|
return /*#__PURE__*/React.createElement(EmbedCardErroredView, {
|
|
127
156
|
onRetry: handleErrorRetry,
|
|
128
157
|
inheritDimensions: inheritDimensions,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
|
+
import { SmartLinkStatus } from '../../constants';
|
|
3
4
|
import Container from './components/container';
|
|
4
5
|
import { FlexibleUiContext } from '../../state/flexible-ui-context';
|
|
5
6
|
import { getContextByStatus, getRetryOptions } from './utils';
|
|
@@ -14,24 +15,49 @@ var FlexibleCard = function FlexibleCard(_ref) {
|
|
|
14
15
|
var cardState = _ref.cardState,
|
|
15
16
|
children = _ref.children,
|
|
16
17
|
onAuthorize = _ref.onAuthorize,
|
|
18
|
+
onError = _ref.onError,
|
|
19
|
+
onResolve = _ref.onResolve,
|
|
17
20
|
renderers = _ref.renderers,
|
|
18
21
|
ui = _ref.ui,
|
|
19
22
|
url = _ref.url,
|
|
20
23
|
onClick = _ref.onClick,
|
|
21
|
-
testId = _ref.testId
|
|
22
|
-
onResolve = _ref.onResolve;
|
|
24
|
+
testId = _ref.testId;
|
|
23
25
|
var cardType = cardState.status,
|
|
24
26
|
details = cardState.details;
|
|
25
27
|
var status = cardType;
|
|
26
28
|
var context = getContextByStatus(url, status, details, renderers);
|
|
27
29
|
var retry = getRetryOptions(url, status, details, onAuthorize);
|
|
30
|
+
|
|
31
|
+
var _ref2 = context || {},
|
|
32
|
+
title = _ref2.title;
|
|
33
|
+
|
|
28
34
|
useEffect(function () {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
switch (status) {
|
|
36
|
+
case SmartLinkStatus.Resolved:
|
|
37
|
+
if (onResolve) {
|
|
38
|
+
onResolve({
|
|
39
|
+
title: title,
|
|
40
|
+
url: url
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
break;
|
|
45
|
+
|
|
46
|
+
case SmartLinkStatus.Errored:
|
|
47
|
+
case SmartLinkStatus.Fallback:
|
|
48
|
+
case SmartLinkStatus.Forbidden:
|
|
49
|
+
case SmartLinkStatus.NotFound:
|
|
50
|
+
case SmartLinkStatus.Unauthorized:
|
|
51
|
+
if (onError) {
|
|
52
|
+
onError({
|
|
53
|
+
status: status,
|
|
54
|
+
url: url
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
break;
|
|
33
59
|
}
|
|
34
|
-
}, [onResolve, status, url]);
|
|
60
|
+
}, [onError, onResolve, status, title, url]);
|
|
35
61
|
return /*#__PURE__*/React.createElement(FlexibleUiContext.Provider, {
|
|
36
62
|
value: context
|
|
37
63
|
}, /*#__PURE__*/React.createElement(Container, _extends({
|
|
@@ -4,6 +4,7 @@ import React, { useCallback, useEffect, useMemo } from 'react';
|
|
|
4
4
|
import { ActionName, SmartLinkPosition, SmartLinkSize } from '../../../constants';
|
|
5
5
|
import extractPreview from '../../../extractors/flexible/extract-preview';
|
|
6
6
|
import { extractMetadata } from '../../../extractors/hover/extractMetadata';
|
|
7
|
+
import { useSmartCardActions } from '../../../state/actions';
|
|
7
8
|
import { getExtensionKey } from '../../../state/helpers';
|
|
8
9
|
import { isSpecialEvent } from '../../../utils';
|
|
9
10
|
import FlexibleCard from '../../FlexibleCard';
|
|
@@ -49,7 +50,9 @@ export var toFooterActions = function toFooterActions(cardActions, onActionClick
|
|
|
49
50
|
var HoverCardContent = function HoverCardContent(_ref) {
|
|
50
51
|
var _cardState$details;
|
|
51
52
|
|
|
52
|
-
var
|
|
53
|
+
var _ref$id = _ref.id,
|
|
54
|
+
id = _ref$id === void 0 ? '' : _ref$id,
|
|
55
|
+
analytics = _ref.analytics,
|
|
53
56
|
_ref$cardActions = _ref.cardActions,
|
|
54
57
|
cardActions = _ref$cardActions === void 0 ? [] : _ref$cardActions,
|
|
55
58
|
cardState = _ref.cardState,
|
|
@@ -57,6 +60,10 @@ var HoverCardContent = function HoverCardContent(_ref) {
|
|
|
57
60
|
onResolve = _ref.onResolve,
|
|
58
61
|
renderers = _ref.renderers,
|
|
59
62
|
url = _ref.url;
|
|
63
|
+
var actions = useSmartCardActions(id, url, analytics);
|
|
64
|
+
useEffect(function () {
|
|
65
|
+
actions.loadMetadata();
|
|
66
|
+
}, [actions]);
|
|
60
67
|
useEffect(function () {
|
|
61
68
|
// Since hover preview only render on resolved status,
|
|
62
69
|
// there is no need to check for statuses.
|
|
@@ -22,6 +22,7 @@ export var InlineCard = function InlineCard(_ref) {
|
|
|
22
22
|
isSelected = _ref.isSelected,
|
|
23
23
|
renderers = _ref.renderers,
|
|
24
24
|
onResolve = _ref.onResolve,
|
|
25
|
+
onError = _ref.onError,
|
|
25
26
|
testId = _ref.testId,
|
|
26
27
|
inlinePreloaderStyle = _ref.inlinePreloaderStyle,
|
|
27
28
|
showHoverPreview = _ref.showHoverPreview;
|
|
@@ -61,6 +62,13 @@ export var InlineCard = function InlineCard(_ref) {
|
|
|
61
62
|
}));
|
|
62
63
|
|
|
63
64
|
case 'unauthorized':
|
|
65
|
+
if (onError) {
|
|
66
|
+
onError({
|
|
67
|
+
url: url,
|
|
68
|
+
status: status
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
|
|
64
72
|
var provider = extractProvider(cardDetails);
|
|
65
73
|
return /*#__PURE__*/React.createElement(InlineCardUnauthorizedView, {
|
|
66
74
|
icon: provider && provider.icon,
|
|
@@ -72,6 +80,13 @@ export var InlineCard = function InlineCard(_ref) {
|
|
|
72
80
|
});
|
|
73
81
|
|
|
74
82
|
case 'forbidden':
|
|
83
|
+
if (onError) {
|
|
84
|
+
onError({
|
|
85
|
+
url: url,
|
|
86
|
+
status: status
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
|
|
75
90
|
var providerForbidden = extractProvider(cardDetails);
|
|
76
91
|
var cardMetadata = (_details$meta = details === null || details === void 0 ? void 0 : details.meta) !== null && _details$meta !== void 0 ? _details$meta : getUnauthorizedJsonLd().meta;
|
|
77
92
|
var requestAccessContext = extractRequestAccessContext({
|
|
@@ -91,6 +106,13 @@ export var InlineCard = function InlineCard(_ref) {
|
|
|
91
106
|
});
|
|
92
107
|
|
|
93
108
|
case 'not_found':
|
|
109
|
+
if (onError) {
|
|
110
|
+
onError({
|
|
111
|
+
url: url,
|
|
112
|
+
status: status
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
|
|
94
116
|
var providerNotFound = extractProvider(cardDetails);
|
|
95
117
|
return /*#__PURE__*/React.createElement(InlineCardErroredView, {
|
|
96
118
|
url: url,
|
|
@@ -103,6 +125,13 @@ export var InlineCard = function InlineCard(_ref) {
|
|
|
103
125
|
|
|
104
126
|
case 'fallback':
|
|
105
127
|
case 'errored':
|
|
128
|
+
if (onError) {
|
|
129
|
+
onError({
|
|
130
|
+
url: url,
|
|
131
|
+
status: status
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
|
|
106
135
|
return /*#__PURE__*/React.createElement(CardLinkView, {
|
|
107
136
|
link: url,
|
|
108
137
|
isSelected: isSelected,
|
|
@@ -3,3 +3,4 @@ export declare const ANALYTICS_ERROR = "errored";
|
|
|
3
3
|
export declare const ANALYTICS_FALLBACK = "fallback";
|
|
4
4
|
export declare const ERROR_MESSAGE_OAUTH = "Provider.authFlow is not set to OAuth2.";
|
|
5
5
|
export declare const ERROR_MESSAGE_FATAL = "Fatal error resolving URL";
|
|
6
|
+
export declare const ERROR_MESSAGE_METADATA = "Error resolving metadata.";
|
|
@@ -8,4 +8,5 @@ export declare const useSmartCardActions: (id: string, url: string, analytics: A
|
|
|
8
8
|
reload: () => void;
|
|
9
9
|
authorize: (appearance: CardAppearance) => void;
|
|
10
10
|
invoke: (opts: InvokeClientOpts | InvokeServerOpts, appearance: CardInnerAppearance) => Promise<JsonLd.Response | void>;
|
|
11
|
+
loadMetadata: () => Promise<void> | undefined;
|
|
11
12
|
};
|
|
@@ -7,6 +7,7 @@ export declare function useSmartLink(id: string, url: string, dispatchAnalytics:
|
|
|
7
7
|
reload: () => void;
|
|
8
8
|
authorize: (appearance: import("@atlaskit/linking-common").CardAppearance) => void;
|
|
9
9
|
invoke: (opts: import("../../model/invoke-opts").InvokeClientOpts | import("../../model/invoke-opts").InvokeServerOpts, appearance: import("../../view/Card/types").CardInnerAppearance) => Promise<void | import("json-ld-types").JsonLd.Response<import("json-ld-types").JsonLd.Data.BaseData>>;
|
|
10
|
+
loadMetadata: () => Promise<void> | undefined;
|
|
10
11
|
};
|
|
11
12
|
config: (import("@atlaskit/link-provider").CardProviderCacheOpts & import("@atlaskit/link-provider").CardAuthFlowOpts) | undefined;
|
|
12
13
|
analytics: {
|
|
@@ -4,6 +4,7 @@ import { CardState } from '../../state/types';
|
|
|
4
4
|
import { InvokeHandler } from '../../model/invoke-handler';
|
|
5
5
|
import { AnalyticsHandler } from '../../utils/types';
|
|
6
6
|
import { OnResolveCallback, CardPlatform } from '../Card/types';
|
|
7
|
+
import { OnErrorCallback } from '../types';
|
|
7
8
|
export declare type BlockCardProps = {
|
|
8
9
|
id: string;
|
|
9
10
|
url: string;
|
|
@@ -16,6 +17,7 @@ export declare type BlockCardProps = {
|
|
|
16
17
|
handleFrameClick: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
|
|
17
18
|
isSelected?: boolean;
|
|
18
19
|
onResolve?: OnResolveCallback;
|
|
20
|
+
onError?: OnErrorCallback;
|
|
19
21
|
testId?: string;
|
|
20
22
|
showActions?: boolean;
|
|
21
23
|
renderers?: CardProviderRenderers;
|
|
@@ -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, "children" | "data" | "appearance" | "testId" | "isSelected" | "inheritDimensions" | "id" | "placeholder" | "onClick" | "analyticsContext" | "key" | "url" | "ui" | "showActions" | "onResolve" | "platform" | "isFrameVisible" | "embedIframeRef" | "showHoverPreview" | "inlinePreloaderStyle" | "importer" | "container" | "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, "children" | "data" | "appearance" | "testId" | "isSelected" | "inheritDimensions" | "id" | "placeholder" | "onError" | "onClick" | "analyticsContext" | "key" | "url" | "ui" | "showActions" | "onResolve" | "platform" | "isFrameVisible" | "embedIframeRef" | "showHoverPreview" | "inlinePreloaderStyle" | "importer" | "container" | "analyticsEvents" | "forwardedRef"> & React.RefAttributes<any>>;
|
|
5
5
|
export type { CardAppearance, CardProps, CardPlatform };
|
|
@@ -3,7 +3,7 @@ import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
|
3
3
|
import { CardAppearance, CardPlatform } from '@atlaskit/linking-common';
|
|
4
4
|
import { AnalyticsFacade } from '../../state/analytics';
|
|
5
5
|
import { FlexibleUiOptions } from '../FlexibleCard/types';
|
|
6
|
-
import { InlinePreloaderStyle } from '../types';
|
|
6
|
+
import { InlinePreloaderStyle, OnErrorCallback } from '../types';
|
|
7
7
|
export type { CardAppearance, CardPlatform };
|
|
8
8
|
export declare type CardInnerAppearance = CardAppearance | 'preview' | 'flexible';
|
|
9
9
|
export declare type OnResolveCallback = (data: {
|
|
@@ -25,6 +25,7 @@ export interface CardProps extends WithAnalyticsEventsProps {
|
|
|
25
25
|
testId?: string;
|
|
26
26
|
showActions?: boolean;
|
|
27
27
|
onResolve?: OnResolveCallback;
|
|
28
|
+
onError?: OnErrorCallback;
|
|
28
29
|
inheritDimensions?: boolean;
|
|
29
30
|
embedIframeRef?: React.Ref<HTMLIFrameElement>;
|
|
30
31
|
inlinePreloaderStyle?: InlinePreloaderStyle;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CardWithUrlContentProps } from './types';
|
|
3
|
-
export declare function CardWithUrlContent({ id, url, isSelected, isFrameVisible, platform, onClick, appearance, dispatchAnalytics, onResolve, testId, showActions, inheritDimensions, embedIframeRef, inlinePreloaderStyle, ui, children, showHoverPreview, analyticsEvents, }: CardWithUrlContentProps): JSX.Element;
|
|
3
|
+
export declare function CardWithUrlContent({ id, url, isSelected, isFrameVisible, platform, onClick, appearance, dispatchAnalytics, onResolve, onError, testId, showActions, inheritDimensions, embedIframeRef, inlinePreloaderStyle, ui, children, showHoverPreview, analyticsEvents, }: CardWithUrlContentProps): JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { EventHandler, MouseEvent, KeyboardEvent } from 'react';
|
|
|
2
2
|
import { CardAppearance, CardPlatform, OnResolveCallback } from '../Card/types';
|
|
3
3
|
import { AnalyticsHandler } from '../../utils/types';
|
|
4
4
|
import { FlexibleUiOptions } from '../FlexibleCard/types';
|
|
5
|
-
import { InlinePreloaderStyle } from '../types';
|
|
5
|
+
import { InlinePreloaderStyle, OnErrorCallback } from '../types';
|
|
6
6
|
import { AnalyticsFacade } from '../../state/analytics';
|
|
7
7
|
export declare type CardWithUrlContentProps = {
|
|
8
8
|
id: string;
|
|
@@ -16,6 +16,7 @@ export declare type CardWithUrlContentProps = {
|
|
|
16
16
|
dispatchAnalytics: AnalyticsHandler;
|
|
17
17
|
testId?: string;
|
|
18
18
|
onResolve?: OnResolveCallback;
|
|
19
|
+
onError?: OnErrorCallback;
|
|
19
20
|
showActions?: boolean;
|
|
20
21
|
inheritDimensions?: boolean;
|
|
21
22
|
embedIframeRef?: React.Ref<HTMLIFrameElement>;
|
|
@@ -13,33 +13,33 @@ export interface WrapperProps {
|
|
|
13
13
|
export declare const borderRadius: string;
|
|
14
14
|
export declare const ellipsis: (maxWidth?: string | number) => string;
|
|
15
15
|
export declare const csssize: (value?: string | number) => string;
|
|
16
|
-
export declare const LinkWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, WrapperProps,
|
|
17
|
-
export declare const Wrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, WrapperProps,
|
|
16
|
+
export declare const LinkWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, WrapperProps, object>;
|
|
17
|
+
export declare const Wrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, WrapperProps, object>;
|
|
18
18
|
export declare const embedHeaderHeight = 32;
|
|
19
|
-
export declare const Header: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
19
|
+
export declare const Header: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
20
20
|
export interface PlaceholderProps {
|
|
21
21
|
isPlaceholder: boolean;
|
|
22
22
|
}
|
|
23
|
-
export declare const IconWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, PlaceholderProps,
|
|
24
|
-
export declare const TextWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, PlaceholderProps,
|
|
23
|
+
export declare const IconWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, PlaceholderProps, object>;
|
|
24
|
+
export declare const TextWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, PlaceholderProps, object>;
|
|
25
25
|
export interface ContentProps {
|
|
26
26
|
isInteractive: boolean;
|
|
27
27
|
}
|
|
28
|
-
export declare const Content: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ContentProps,
|
|
28
|
+
export declare const Content: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ContentProps, object>;
|
|
29
29
|
export interface ImageProps {
|
|
30
30
|
size: number;
|
|
31
31
|
}
|
|
32
|
-
export declare const Image: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, ImageProps,
|
|
32
|
+
export declare const Image: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, ImageProps, object>;
|
|
33
33
|
export declare const maxAvatarCount = 6;
|
|
34
|
-
export declare const ContentWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
35
|
-
export declare const Title: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
36
|
-
export declare const Byline: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
37
|
-
export declare const Description: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
38
|
-
export declare const ResolvedViewIconWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
34
|
+
export declare const ContentWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
35
|
+
export declare const Title: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
36
|
+
export declare const Byline: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
37
|
+
export declare const Description: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
38
|
+
export declare const ResolvedViewIconWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
39
39
|
export interface ThumbnailProps {
|
|
40
40
|
src: string;
|
|
41
41
|
}
|
|
42
|
-
export declare const Thumbnail: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ThumbnailProps,
|
|
43
|
-
export declare const UsersWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
44
|
-
export declare const ActionsWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
45
|
-
export declare const AlertWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
42
|
+
export declare const Thumbnail: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ThumbnailProps, object>;
|
|
43
|
+
export declare const UsersWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
44
|
+
export declare const ActionsWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
45
|
+
export declare const AlertWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
@@ -5,6 +5,7 @@ import { CardPlatform, OnResolveCallback } from '../Card/types';
|
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
6
|
import { ActionProps } from '../BlockCard/components/Action';
|
|
7
7
|
import { RequestAccessMessageKey } from '../../messages';
|
|
8
|
+
import { OnErrorCallback } from '../types';
|
|
8
9
|
export declare type EmbedCardProps = {
|
|
9
10
|
url: string;
|
|
10
11
|
cardState: CardState;
|
|
@@ -18,6 +19,7 @@ export declare type EmbedCardProps = {
|
|
|
18
19
|
isFrameVisible?: boolean;
|
|
19
20
|
platform?: CardPlatform;
|
|
20
21
|
onResolve?: OnResolveCallback;
|
|
22
|
+
onError?: OnErrorCallback;
|
|
21
23
|
testId?: string;
|
|
22
24
|
inheritDimensions?: boolean;
|
|
23
25
|
showActions?: boolean;
|
|
@@ -5,6 +5,7 @@ import { CardProviderRenderers } from '@atlaskit/link-provider';
|
|
|
5
5
|
import { SmartLinkSize, SmartLinkTheme } from '../../constants';
|
|
6
6
|
import { CardAppearance } from '../../view/Card';
|
|
7
7
|
import { OnResolveCallback } from '../Card/types';
|
|
8
|
+
import { OnErrorCallback } from '../types';
|
|
8
9
|
export declare type FlexibleCardProps = {
|
|
9
10
|
/**
|
|
10
11
|
* @internal A unique ID for a Smart Link.
|
|
@@ -36,6 +37,14 @@ export declare type FlexibleCardProps = {
|
|
|
36
37
|
* @internal
|
|
37
38
|
*/
|
|
38
39
|
onAuthorize?: () => void;
|
|
40
|
+
/**
|
|
41
|
+
* function to be called after a flexible card has rendered its error states
|
|
42
|
+
*/
|
|
43
|
+
onError?: OnErrorCallback;
|
|
44
|
+
/**
|
|
45
|
+
* function to be called after a flexible card has rendered its resolved state
|
|
46
|
+
*/
|
|
47
|
+
onResolve?: OnResolveCallback;
|
|
39
48
|
/**
|
|
40
49
|
* Any additional renderers required by Flexible UI. Currently used by icon
|
|
41
50
|
* to render Emoji.
|
|
@@ -56,10 +65,6 @@ export declare type FlexibleCardProps = {
|
|
|
56
65
|
* Determines the URL of the Smart Link.
|
|
57
66
|
*/
|
|
58
67
|
url: string;
|
|
59
|
-
/**
|
|
60
|
-
* function to be called after a flexible card has rendered its resolved state
|
|
61
|
-
*/
|
|
62
|
-
onResolve?: OnResolveCallback;
|
|
63
68
|
};
|
|
64
69
|
export declare type FlexibleUiOptions = {
|
|
65
70
|
/**
|
|
@@ -5,4 +5,4 @@ export interface WrapperProps {
|
|
|
5
5
|
withoutHover?: boolean;
|
|
6
6
|
withoutBackground?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export declare const Wrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, WrapperProps,
|
|
8
|
+
export declare const Wrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, WrapperProps, object>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const Icon: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>,
|
|
3
|
-
export declare const AKIconWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>,
|
|
4
|
-
export declare const Shimmer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>,
|
|
2
|
+
export declare const Icon: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, Pick<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement>, keyof import("react").ImgHTMLAttributes<HTMLImageElement>>, object>;
|
|
3
|
+
export declare const AKIconWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
|
|
4
|
+
export declare const Shimmer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const IconObjectOverrides = "\n & > span {\n height: 16px;\n width: 14px;\n position: absolute;\n top: 0;\n left: 0;\n line-height: 14px;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
3
3
|
export declare const IconOverrides = "\n & > * > span {\n height: 16px;\n width: 14px;\n position: absolute;\n top: 0;\n left: 0;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
4
|
-
export declare const IconWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>,
|
|
5
|
-
export declare const EmojiWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>,
|
|
6
|
-
export declare const IconTitleWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>,
|
|
7
|
-
export declare const LozengeWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>,
|
|
8
|
-
export declare const LozengeBlockWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>,
|
|
9
|
-
export declare const RightIconPositionWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>,
|
|
10
|
-
export declare const IconPositionWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>,
|
|
11
|
-
export declare const IconEmptyWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>,
|
|
4
|
+
export declare const IconWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
|
|
5
|
+
export declare const EmojiWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
|
|
6
|
+
export declare const IconTitleWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
|
|
7
|
+
export declare const LozengeWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
|
|
8
|
+
export declare const LozengeBlockWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
|
|
9
|
+
export declare const RightIconPositionWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
|
|
10
|
+
export declare const IconPositionWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
|
|
11
|
+
export declare const IconEmptyWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
|
|
12
12
|
export declare const TitleWrapperClassName = "smart-link-title-wrapper";
|
|
13
|
-
export declare const TitleWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>,
|
|
13
|
+
export declare const TitleWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
|