@atlaskit/smart-card 27.20.1 → 27.21.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 +14 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/CardWithUrl/component.js +4 -2
- package/dist/cjs/view/CardWithUrl/loader.js +4 -2
- package/dist/cjs/view/InlineCard/ResolvingView/index.js +3 -2
- package/dist/cjs/view/InlineCard/index.js +4 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/CardWithUrl/component.js +4 -2
- package/dist/es2019/view/CardWithUrl/loader.js +4 -2
- package/dist/es2019/view/InlineCard/ResolvingView/index.js +3 -2
- package/dist/es2019/view/InlineCard/index.js +4 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/CardWithUrl/component.js +4 -2
- package/dist/esm/view/CardWithUrl/loader.js +4 -2
- package/dist/esm/view/InlineCard/ResolvingView/index.js +3 -2
- package/dist/esm/view/InlineCard/index.js +4 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/view/Card/index.d.ts +1 -1
- package/dist/types/view/Card/types.d.ts +4 -0
- package/dist/types/view/CardWithUrl/types.d.ts +1 -0
- package/dist/types/view/InlineCard/ResolvingView/index.d.ts +2 -0
- package/dist/types/view/InlineCard/index.d.ts +1 -1
- package/dist/types/view/InlineCard/types.d.ts +1 -0
- package/dist/types-ts4.5/view/Card/index.d.ts +1 -1
- package/dist/types-ts4.5/view/Card/types.d.ts +4 -0
- package/dist/types-ts4.5/view/CardWithUrl/types.d.ts +1 -0
- package/dist/types-ts4.5/view/InlineCard/ResolvingView/index.d.ts +2 -0
- package/dist/types-ts4.5/view/InlineCard/index.d.ts +1 -1
- package/dist/types-ts4.5/view/InlineCard/types.d.ts +1 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 27.21.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#137752](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/137752)
|
|
8
|
+
[`4f651813d3319`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4f651813d3319) -
|
|
9
|
+
Added resolvingPlaceholder prop to allow for truncation of titles when smart cards are resolving
|
|
10
|
+
|
|
11
|
+
## 27.20.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 27.20.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -22,7 +22,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
22
22
|
var context = exports.context = {
|
|
23
23
|
componentName: 'smart-cards',
|
|
24
24
|
packageName: "@atlaskit/smart-card",
|
|
25
|
-
packageVersion: "27.
|
|
25
|
+
packageVersion: "27.21.0"
|
|
26
26
|
};
|
|
27
27
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
28
28
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -53,7 +53,8 @@ function Component(_ref) {
|
|
|
53
53
|
showAuthTooltip = _ref.showAuthTooltip,
|
|
54
54
|
analyticsEvents = _ref.analyticsEvents,
|
|
55
55
|
useLegacyBlockCard = _ref.useLegacyBlockCard,
|
|
56
|
-
removeTextHighlightingFromTitle = _ref.removeTextHighlightingFromTitle
|
|
56
|
+
removeTextHighlightingFromTitle = _ref.removeTextHighlightingFromTitle,
|
|
57
|
+
resolvingPlaceholder = _ref.resolvingPlaceholder;
|
|
57
58
|
var _useAnalyticsEvents = (0, _analyticsNext.useAnalyticsEvents)(),
|
|
58
59
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
59
60
|
|
|
@@ -235,7 +236,8 @@ function Component(_ref) {
|
|
|
235
236
|
hoverPreviewOptions: hoverPreviewOptions,
|
|
236
237
|
showAuthTooltip: showAuthTooltip,
|
|
237
238
|
actionOptions: actionOptions,
|
|
238
|
-
removeTextHighlightingFromTitle: removeTextHighlightingFromTitle
|
|
239
|
+
removeTextHighlightingFromTitle: removeTextHighlightingFromTitle,
|
|
240
|
+
resolvingPlaceholder: resolvingPlaceholder
|
|
239
241
|
});
|
|
240
242
|
case 'block':
|
|
241
243
|
return /*#__PURE__*/_react.default.createElement(_BlockCard.BlockCard, {
|
|
@@ -67,7 +67,8 @@ function CardWithURLRenderer(props) {
|
|
|
67
67
|
placeholder = props.placeholder,
|
|
68
68
|
fallbackComponent = props.fallbackComponent,
|
|
69
69
|
useLegacyBlockCard = props.useLegacyBlockCard,
|
|
70
|
-
removeTextHighlightingFromTitle = props.removeTextHighlightingFromTitle
|
|
70
|
+
removeTextHighlightingFromTitle = props.removeTextHighlightingFromTitle,
|
|
71
|
+
resolvingPlaceholder = props.resolvingPlaceholder;
|
|
71
72
|
var analytics = (0, _analytics.useSmartLinkAnalytics)(url !== null && url !== void 0 ? url : '', undefined, id);
|
|
72
73
|
var isFlexibleUi = (0, _flexible.isFlexibleUiCard)(children);
|
|
73
74
|
var errorHandler = (0, _react.useCallback)(function (error, info) {
|
|
@@ -138,7 +139,8 @@ function CardWithURLRenderer(props) {
|
|
|
138
139
|
analyticsEvents: analyticsEvents,
|
|
139
140
|
placeholder: placeholder,
|
|
140
141
|
useLegacyBlockCard: useLegacyBlockCard,
|
|
141
|
-
removeTextHighlightingFromTitle: removeTextHighlightingFromTitle
|
|
142
|
+
removeTextHighlightingFromTitle: removeTextHighlightingFromTitle,
|
|
143
|
+
resolvingPlaceholder: resolvingPlaceholder
|
|
142
144
|
};
|
|
143
145
|
return /*#__PURE__*/_react.default.createElement(_reactErrorBoundary.ErrorBoundary, {
|
|
144
146
|
FallbackComponent: ErrorFallback,
|
|
@@ -35,7 +35,8 @@ var InlineCardResolvingView = exports.InlineCardResolvingView = /*#__PURE__*/fun
|
|
|
35
35
|
inlinePreloaderStyle = _this$props.inlinePreloaderStyle,
|
|
36
36
|
_this$props$testId = _this$props.testId,
|
|
37
37
|
testId = _this$props$testId === void 0 ? 'inline-card-resolving-view' : _this$props$testId,
|
|
38
|
-
titleTextColor = _this$props.titleTextColor
|
|
38
|
+
titleTextColor = _this$props.titleTextColor,
|
|
39
|
+
resolvingPlaceholder = _this$props.resolvingPlaceholder;
|
|
39
40
|
if (inlinePreloaderStyle === 'on-right-without-skeleton') {
|
|
40
41
|
return /*#__PURE__*/_react.default.createElement(_Frame.Frame, {
|
|
41
42
|
withoutBackground: true,
|
|
@@ -54,7 +55,7 @@ var InlineCardResolvingView = exports.InlineCardResolvingView = /*#__PURE__*/fun
|
|
|
54
55
|
isSelected: isSelected,
|
|
55
56
|
link: url
|
|
56
57
|
}, /*#__PURE__*/_react.default.createElement(_IconAndTitleLayout.IconAndTitleLayout, {
|
|
57
|
-
title: url,
|
|
58
|
+
title: resolvingPlaceholder !== null && resolvingPlaceholder !== void 0 ? resolvingPlaceholder : url,
|
|
58
59
|
titleTextColor: titleTextColor
|
|
59
60
|
}, /*#__PURE__*/_react.default.createElement(_styled.SpinnerWrapper, {
|
|
60
61
|
className: "inline-resolving-spinner"
|
|
@@ -73,7 +73,8 @@ var InlineCard = exports.InlineCard = function InlineCard(_ref) {
|
|
|
73
73
|
hoverPreviewOptions = _ref.hoverPreviewOptions,
|
|
74
74
|
showAuthTooltip = _ref.showAuthTooltip,
|
|
75
75
|
actionOptions = _ref.actionOptions,
|
|
76
|
-
removeTextHighlightingFromTitle = _ref.removeTextHighlightingFromTitle
|
|
76
|
+
removeTextHighlightingFromTitle = _ref.removeTextHighlightingFromTitle,
|
|
77
|
+
resolvingPlaceholder = _ref.resolvingPlaceholder;
|
|
77
78
|
var _useAnalyticsEvents = (0, _analyticsNext.useAnalyticsEvents)(),
|
|
78
79
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
79
80
|
var status = cardState.status,
|
|
@@ -116,7 +117,8 @@ var InlineCard = exports.InlineCard = function InlineCard(_ref) {
|
|
|
116
117
|
isSelected: isSelected,
|
|
117
118
|
onClick: handleFrameClick,
|
|
118
119
|
testId: testIdWithStatus,
|
|
119
|
-
inlinePreloaderStyle: inlinePreloaderStyle
|
|
120
|
+
inlinePreloaderStyle: inlinePreloaderStyle,
|
|
121
|
+
resolvingPlaceholder: resolvingPlaceholder
|
|
120
122
|
});
|
|
121
123
|
case 'resolved':
|
|
122
124
|
return /*#__PURE__*/_react.default.createElement(_ResolvedView.InlineCardResolvedView, (0, _extends2.default)({}, resolvedProps, {
|
|
@@ -17,7 +17,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
|
|
|
17
17
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
18
18
|
var PACKAGE_DATA = {
|
|
19
19
|
packageName: "@atlaskit/smart-card",
|
|
20
|
-
packageVersion: "27.
|
|
20
|
+
packageVersion: "27.21.0",
|
|
21
21
|
componentName: 'linkUrl'
|
|
22
22
|
};
|
|
23
23
|
var Link = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export const context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card",
|
|
7
|
-
packageVersion: "27.
|
|
7
|
+
packageVersion: "27.21.0"
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -43,7 +43,8 @@ function Component({
|
|
|
43
43
|
showAuthTooltip,
|
|
44
44
|
analyticsEvents,
|
|
45
45
|
useLegacyBlockCard,
|
|
46
|
-
removeTextHighlightingFromTitle
|
|
46
|
+
removeTextHighlightingFromTitle,
|
|
47
|
+
resolvingPlaceholder
|
|
47
48
|
}) {
|
|
48
49
|
const {
|
|
49
50
|
createAnalyticsEvent
|
|
@@ -222,7 +223,8 @@ function Component({
|
|
|
222
223
|
hoverPreviewOptions: hoverPreviewOptions,
|
|
223
224
|
showAuthTooltip: showAuthTooltip,
|
|
224
225
|
actionOptions: actionOptions,
|
|
225
|
-
removeTextHighlightingFromTitle: removeTextHighlightingFromTitle
|
|
226
|
+
removeTextHighlightingFromTitle: removeTextHighlightingFromTitle,
|
|
227
|
+
resolvingPlaceholder: resolvingPlaceholder
|
|
226
228
|
});
|
|
227
229
|
case 'block':
|
|
228
230
|
return /*#__PURE__*/React.createElement(BlockCard, {
|
|
@@ -46,7 +46,8 @@ export function CardWithURLRenderer(props) {
|
|
|
46
46
|
placeholder,
|
|
47
47
|
fallbackComponent,
|
|
48
48
|
useLegacyBlockCard,
|
|
49
|
-
removeTextHighlightingFromTitle
|
|
49
|
+
removeTextHighlightingFromTitle,
|
|
50
|
+
resolvingPlaceholder
|
|
50
51
|
} = props;
|
|
51
52
|
const analytics = useSmartLinkAnalytics(url !== null && url !== void 0 ? url : '', undefined, id);
|
|
52
53
|
const isFlexibleUi = isFlexibleUiCard(children);
|
|
@@ -116,7 +117,8 @@ export function CardWithURLRenderer(props) {
|
|
|
116
117
|
analyticsEvents,
|
|
117
118
|
placeholder,
|
|
118
119
|
useLegacyBlockCard,
|
|
119
|
-
removeTextHighlightingFromTitle
|
|
120
|
+
removeTextHighlightingFromTitle,
|
|
121
|
+
resolvingPlaceholder
|
|
120
122
|
};
|
|
121
123
|
return /*#__PURE__*/React.createElement(ErrorBoundary, {
|
|
122
124
|
FallbackComponent: ErrorFallback,
|
|
@@ -12,7 +12,8 @@ export class InlineCardResolvingView extends React.Component {
|
|
|
12
12
|
isSelected,
|
|
13
13
|
inlinePreloaderStyle,
|
|
14
14
|
testId = 'inline-card-resolving-view',
|
|
15
|
-
titleTextColor
|
|
15
|
+
titleTextColor,
|
|
16
|
+
resolvingPlaceholder
|
|
16
17
|
} = this.props;
|
|
17
18
|
if (inlinePreloaderStyle === 'on-right-without-skeleton') {
|
|
18
19
|
return /*#__PURE__*/React.createElement(Frame, {
|
|
@@ -32,7 +33,7 @@ export class InlineCardResolvingView extends React.Component {
|
|
|
32
33
|
isSelected: isSelected,
|
|
33
34
|
link: url
|
|
34
35
|
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
35
|
-
title: url,
|
|
36
|
+
title: resolvingPlaceholder !== null && resolvingPlaceholder !== void 0 ? resolvingPlaceholder : url,
|
|
36
37
|
titleTextColor: titleTextColor
|
|
37
38
|
}, /*#__PURE__*/React.createElement(SpinnerWrapper, {
|
|
38
39
|
className: "inline-resolving-spinner"
|
|
@@ -33,7 +33,8 @@ export const InlineCard = ({
|
|
|
33
33
|
hoverPreviewOptions,
|
|
34
34
|
showAuthTooltip,
|
|
35
35
|
actionOptions,
|
|
36
|
-
removeTextHighlightingFromTitle
|
|
36
|
+
removeTextHighlightingFromTitle,
|
|
37
|
+
resolvingPlaceholder
|
|
37
38
|
}) => {
|
|
38
39
|
var _details$meta, _providerForbidden$te;
|
|
39
40
|
const {
|
|
@@ -81,7 +82,8 @@ export const InlineCard = ({
|
|
|
81
82
|
isSelected: isSelected,
|
|
82
83
|
onClick: handleFrameClick,
|
|
83
84
|
testId: testIdWithStatus,
|
|
84
|
-
inlinePreloaderStyle: inlinePreloaderStyle
|
|
85
|
+
inlinePreloaderStyle: inlinePreloaderStyle,
|
|
86
|
+
resolvingPlaceholder: resolvingPlaceholder
|
|
85
87
|
});
|
|
86
88
|
case 'resolved':
|
|
87
89
|
return /*#__PURE__*/React.createElement(InlineCardResolvedView, _extends({}, resolvedProps, {
|
|
@@ -7,7 +7,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
|
|
|
7
7
|
import LinkWarningModal from './LinkWarningModal';
|
|
8
8
|
const PACKAGE_DATA = {
|
|
9
9
|
packageName: "@atlaskit/smart-card",
|
|
10
|
-
packageVersion: "27.
|
|
10
|
+
packageVersion: "27.21.0",
|
|
11
11
|
componentName: 'linkUrl'
|
|
12
12
|
};
|
|
13
13
|
const Link = withLinkClickedEvent('a');
|
|
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
15
15
|
export var context = {
|
|
16
16
|
componentName: 'smart-cards',
|
|
17
17
|
packageName: "@atlaskit/smart-card",
|
|
18
|
-
packageVersion: "27.
|
|
18
|
+
packageVersion: "27.21.0"
|
|
19
19
|
};
|
|
20
20
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -43,7 +43,8 @@ function Component(_ref) {
|
|
|
43
43
|
showAuthTooltip = _ref.showAuthTooltip,
|
|
44
44
|
analyticsEvents = _ref.analyticsEvents,
|
|
45
45
|
useLegacyBlockCard = _ref.useLegacyBlockCard,
|
|
46
|
-
removeTextHighlightingFromTitle = _ref.removeTextHighlightingFromTitle
|
|
46
|
+
removeTextHighlightingFromTitle = _ref.removeTextHighlightingFromTitle,
|
|
47
|
+
resolvingPlaceholder = _ref.resolvingPlaceholder;
|
|
47
48
|
var _useAnalyticsEvents = useAnalyticsEvents(),
|
|
48
49
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
49
50
|
|
|
@@ -225,7 +226,8 @@ function Component(_ref) {
|
|
|
225
226
|
hoverPreviewOptions: hoverPreviewOptions,
|
|
226
227
|
showAuthTooltip: showAuthTooltip,
|
|
227
228
|
actionOptions: actionOptions,
|
|
228
|
-
removeTextHighlightingFromTitle: removeTextHighlightingFromTitle
|
|
229
|
+
removeTextHighlightingFromTitle: removeTextHighlightingFromTitle,
|
|
230
|
+
resolvingPlaceholder: resolvingPlaceholder
|
|
229
231
|
});
|
|
230
232
|
case 'block':
|
|
231
233
|
return /*#__PURE__*/React.createElement(BlockCard, {
|
|
@@ -54,7 +54,8 @@ export function CardWithURLRenderer(props) {
|
|
|
54
54
|
placeholder = props.placeholder,
|
|
55
55
|
fallbackComponent = props.fallbackComponent,
|
|
56
56
|
useLegacyBlockCard = props.useLegacyBlockCard,
|
|
57
|
-
removeTextHighlightingFromTitle = props.removeTextHighlightingFromTitle
|
|
57
|
+
removeTextHighlightingFromTitle = props.removeTextHighlightingFromTitle,
|
|
58
|
+
resolvingPlaceholder = props.resolvingPlaceholder;
|
|
58
59
|
var analytics = useSmartLinkAnalytics(url !== null && url !== void 0 ? url : '', undefined, id);
|
|
59
60
|
var isFlexibleUi = isFlexibleUiCard(children);
|
|
60
61
|
var errorHandler = useCallback(function (error, info) {
|
|
@@ -125,7 +126,8 @@ export function CardWithURLRenderer(props) {
|
|
|
125
126
|
analyticsEvents: analyticsEvents,
|
|
126
127
|
placeholder: placeholder,
|
|
127
128
|
useLegacyBlockCard: useLegacyBlockCard,
|
|
128
|
-
removeTextHighlightingFromTitle: removeTextHighlightingFromTitle
|
|
129
|
+
removeTextHighlightingFromTitle: removeTextHighlightingFromTitle,
|
|
130
|
+
resolvingPlaceholder: resolvingPlaceholder
|
|
129
131
|
};
|
|
130
132
|
return /*#__PURE__*/React.createElement(ErrorBoundary, {
|
|
131
133
|
FallbackComponent: ErrorFallback,
|
|
@@ -28,7 +28,8 @@ export var InlineCardResolvingView = /*#__PURE__*/function (_React$Component) {
|
|
|
28
28
|
inlinePreloaderStyle = _this$props.inlinePreloaderStyle,
|
|
29
29
|
_this$props$testId = _this$props.testId,
|
|
30
30
|
testId = _this$props$testId === void 0 ? 'inline-card-resolving-view' : _this$props$testId,
|
|
31
|
-
titleTextColor = _this$props.titleTextColor
|
|
31
|
+
titleTextColor = _this$props.titleTextColor,
|
|
32
|
+
resolvingPlaceholder = _this$props.resolvingPlaceholder;
|
|
32
33
|
if (inlinePreloaderStyle === 'on-right-without-skeleton') {
|
|
33
34
|
return /*#__PURE__*/React.createElement(Frame, {
|
|
34
35
|
withoutBackground: true,
|
|
@@ -47,7 +48,7 @@ export var InlineCardResolvingView = /*#__PURE__*/function (_React$Component) {
|
|
|
47
48
|
isSelected: isSelected,
|
|
48
49
|
link: url
|
|
49
50
|
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
50
|
-
title: url,
|
|
51
|
+
title: resolvingPlaceholder !== null && resolvingPlaceholder !== void 0 ? resolvingPlaceholder : url,
|
|
51
52
|
titleTextColor: titleTextColor
|
|
52
53
|
}, /*#__PURE__*/React.createElement(SpinnerWrapper, {
|
|
53
54
|
className: "inline-resolving-spinner"
|
|
@@ -34,7 +34,8 @@ export var InlineCard = function InlineCard(_ref) {
|
|
|
34
34
|
hoverPreviewOptions = _ref.hoverPreviewOptions,
|
|
35
35
|
showAuthTooltip = _ref.showAuthTooltip,
|
|
36
36
|
actionOptions = _ref.actionOptions,
|
|
37
|
-
removeTextHighlightingFromTitle = _ref.removeTextHighlightingFromTitle
|
|
37
|
+
removeTextHighlightingFromTitle = _ref.removeTextHighlightingFromTitle,
|
|
38
|
+
resolvingPlaceholder = _ref.resolvingPlaceholder;
|
|
38
39
|
var _useAnalyticsEvents = useAnalyticsEvents(),
|
|
39
40
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
40
41
|
var status = cardState.status,
|
|
@@ -77,7 +78,8 @@ export var InlineCard = function InlineCard(_ref) {
|
|
|
77
78
|
isSelected: isSelected,
|
|
78
79
|
onClick: handleFrameClick,
|
|
79
80
|
testId: testIdWithStatus,
|
|
80
|
-
inlinePreloaderStyle: inlinePreloaderStyle
|
|
81
|
+
inlinePreloaderStyle: inlinePreloaderStyle,
|
|
82
|
+
resolvingPlaceholder: resolvingPlaceholder
|
|
81
83
|
});
|
|
82
84
|
case 'resolved':
|
|
83
85
|
return /*#__PURE__*/React.createElement(InlineCardResolvedView, _extends({}, resolvedProps, {
|
|
@@ -10,7 +10,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
|
|
|
10
10
|
import LinkWarningModal from './LinkWarningModal';
|
|
11
11
|
var PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "27.
|
|
13
|
+
packageVersion: "27.21.0",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type CardAppearance, type CardPlatform, type CardProps } from './types';
|
|
3
3
|
import { type WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
export declare const Card: React.ForwardRefExoticComponent<Pick<Omit<import("react-intl-next").WithIntlProps<CardProps & WrappedComponentProps>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "url" | "appearance" | "container" | "children" | "data" | "key" | "id" | "placeholder" | "onError" | "onClick" | "testId" | "analyticsContext" | "isSelected" | "inheritDimensions" | "actionOptions" | "onResolve" | "ui" | "showHoverPreview" | "hoverPreviewOptions" | "showAuthTooltip" | "platform" | "isHovered" | "isFrameVisible" | "frameStyle" | "importer" | "showActions" | "showServerActions" | "fallbackComponent" | "embedIframeRef" | "embedIframeUrlType" | "inlinePreloaderStyle" | "analyticsEvents" | "useLegacyBlockCard" | "removeTextHighlightingFromTitle" | "forwardedRef"> & React.RefAttributes<any>>;
|
|
4
|
+
export declare const Card: React.ForwardRefExoticComponent<Pick<Omit<import("react-intl-next").WithIntlProps<CardProps & WrappedComponentProps>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "url" | "appearance" | "container" | "children" | "data" | "key" | "id" | "placeholder" | "onError" | "onClick" | "testId" | "analyticsContext" | "isSelected" | "inheritDimensions" | "actionOptions" | "onResolve" | "ui" | "showHoverPreview" | "hoverPreviewOptions" | "showAuthTooltip" | "platform" | "isHovered" | "isFrameVisible" | "frameStyle" | "importer" | "showActions" | "showServerActions" | "fallbackComponent" | "embedIframeRef" | "embedIframeUrlType" | "inlinePreloaderStyle" | "analyticsEvents" | "useLegacyBlockCard" | "removeTextHighlightingFromTitle" | "resolvingPlaceholder" | "forwardedRef"> & React.RefAttributes<any>>;
|
|
5
5
|
export type { CardAppearance, CardProps, CardPlatform };
|
|
@@ -119,4 +119,8 @@ export interface CardProps extends WithAnalyticsEventsProps {
|
|
|
119
119
|
* For example, when set to true: "my name | :~:text=highlight this" will be displayed as "my name"
|
|
120
120
|
*/
|
|
121
121
|
removeTextHighlightingFromTitle?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* When defined, this placeholder will be displayed while the smart card is resolving. This is only useful for inline cards.
|
|
124
|
+
*/
|
|
125
|
+
resolvingPlaceholder?: string;
|
|
122
126
|
}
|
|
@@ -11,6 +11,8 @@ export interface InlineCardResolvingViewProps {
|
|
|
11
11
|
/** A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests */
|
|
12
12
|
testId?: string;
|
|
13
13
|
titleTextColor?: string;
|
|
14
|
+
/** An optional placeholder displayed while the smart card is resolving. */
|
|
15
|
+
resolvingPlaceholder?: string;
|
|
14
16
|
}
|
|
15
17
|
export declare class InlineCardResolvingView extends React.Component<InlineCardResolvingViewProps> {
|
|
16
18
|
render(): JSX.Element;
|
|
@@ -6,4 +6,4 @@ import { InlineCardResolvedView } from './ResolvedView';
|
|
|
6
6
|
import { InlineCardResolvingView } from './ResolvingView';
|
|
7
7
|
import { InlineCardUnauthorizedView } from './UnauthorisedView';
|
|
8
8
|
export { InlineCardResolvedView, InlineCardResolvingView, InlineCardErroredView, InlineCardForbiddenView, InlineCardUnauthorizedView, };
|
|
9
|
-
export declare const InlineCard: ({ analytics, id, url, cardState, handleAuthorize, handleFrameClick, isSelected, isHovered, renderers, onResolve, onError, testId, inlinePreloaderStyle, showHoverPreview, hoverPreviewOptions, showAuthTooltip, actionOptions, removeTextHighlightingFromTitle, }: InlineCardProps) => JSX.Element;
|
|
9
|
+
export declare const InlineCard: ({ analytics, id, url, cardState, handleAuthorize, handleFrameClick, isSelected, isHovered, renderers, onResolve, onError, testId, inlinePreloaderStyle, showHoverPreview, hoverPreviewOptions, showAuthTooltip, actionOptions, removeTextHighlightingFromTitle, resolvingPlaceholder, }: InlineCardProps) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type CardAppearance, type CardPlatform, type CardProps } from './types';
|
|
3
3
|
import { type WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
export declare const Card: React.ForwardRefExoticComponent<Pick<Omit<import("react-intl-next").WithIntlProps<CardProps & WrappedComponentProps>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "url" | "appearance" | "container" | "children" | "data" | "key" | "id" | "placeholder" | "onError" | "onClick" | "testId" | "analyticsContext" | "isSelected" | "inheritDimensions" | "actionOptions" | "onResolve" | "ui" | "showHoverPreview" | "hoverPreviewOptions" | "showAuthTooltip" | "platform" | "isHovered" | "isFrameVisible" | "frameStyle" | "importer" | "showActions" | "showServerActions" | "fallbackComponent" | "embedIframeRef" | "embedIframeUrlType" | "inlinePreloaderStyle" | "analyticsEvents" | "useLegacyBlockCard" | "removeTextHighlightingFromTitle" | "forwardedRef"> & React.RefAttributes<any>>;
|
|
4
|
+
export declare const Card: React.ForwardRefExoticComponent<Pick<Omit<import("react-intl-next").WithIntlProps<CardProps & WrappedComponentProps>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "url" | "appearance" | "container" | "children" | "data" | "key" | "id" | "placeholder" | "onError" | "onClick" | "testId" | "analyticsContext" | "isSelected" | "inheritDimensions" | "actionOptions" | "onResolve" | "ui" | "showHoverPreview" | "hoverPreviewOptions" | "showAuthTooltip" | "platform" | "isHovered" | "isFrameVisible" | "frameStyle" | "importer" | "showActions" | "showServerActions" | "fallbackComponent" | "embedIframeRef" | "embedIframeUrlType" | "inlinePreloaderStyle" | "analyticsEvents" | "useLegacyBlockCard" | "removeTextHighlightingFromTitle" | "resolvingPlaceholder" | "forwardedRef"> & React.RefAttributes<any>>;
|
|
5
5
|
export type { CardAppearance, CardProps, CardPlatform };
|
|
@@ -119,4 +119,8 @@ export interface CardProps extends WithAnalyticsEventsProps {
|
|
|
119
119
|
* For example, when set to true: "my name | :~:text=highlight this" will be displayed as "my name"
|
|
120
120
|
*/
|
|
121
121
|
removeTextHighlightingFromTitle?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* When defined, this placeholder will be displayed while the smart card is resolving. This is only useful for inline cards.
|
|
124
|
+
*/
|
|
125
|
+
resolvingPlaceholder?: string;
|
|
122
126
|
}
|
|
@@ -11,6 +11,8 @@ export interface InlineCardResolvingViewProps {
|
|
|
11
11
|
/** A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests */
|
|
12
12
|
testId?: string;
|
|
13
13
|
titleTextColor?: string;
|
|
14
|
+
/** An optional placeholder displayed while the smart card is resolving. */
|
|
15
|
+
resolvingPlaceholder?: string;
|
|
14
16
|
}
|
|
15
17
|
export declare class InlineCardResolvingView extends React.Component<InlineCardResolvingViewProps> {
|
|
16
18
|
render(): JSX.Element;
|
|
@@ -6,4 +6,4 @@ import { InlineCardResolvedView } from './ResolvedView';
|
|
|
6
6
|
import { InlineCardResolvingView } from './ResolvingView';
|
|
7
7
|
import { InlineCardUnauthorizedView } from './UnauthorisedView';
|
|
8
8
|
export { InlineCardResolvedView, InlineCardResolvingView, InlineCardErroredView, InlineCardForbiddenView, InlineCardUnauthorizedView, };
|
|
9
|
-
export declare const InlineCard: ({ analytics, id, url, cardState, handleAuthorize, handleFrameClick, isSelected, isHovered, renderers, onResolve, onError, testId, inlinePreloaderStyle, showHoverPreview, hoverPreviewOptions, showAuthTooltip, actionOptions, removeTextHighlightingFromTitle, }: InlineCardProps) => JSX.Element;
|
|
9
|
+
export declare const InlineCard: ({ analytics, id, url, cardState, handleAuthorize, handleFrameClick, isSelected, isHovered, renderers, onResolve, onError, testId, inlinePreloaderStyle, showHoverPreview, hoverPreviewOptions, showAuthTooltip, actionOptions, removeTextHighlightingFromTitle, resolvingPlaceholder, }: InlineCardProps) => JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "27.
|
|
3
|
+
"version": "27.21.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"@atlaskit/avatar-group": "^9.11.0",
|
|
32
32
|
"@atlaskit/badge": "^16.4.0",
|
|
33
33
|
"@atlaskit/button": "^20.1.0",
|
|
34
|
-
"@atlaskit/checkbox": "^
|
|
34
|
+
"@atlaskit/checkbox": "^14.0.0",
|
|
35
35
|
"@atlaskit/dropdown-menu": "^12.18.0",
|
|
36
36
|
"@atlaskit/form": "^10.5.0",
|
|
37
37
|
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
38
38
|
"@atlaskit/heading": "^2.4.0",
|
|
39
|
-
"@atlaskit/icon": "^22.
|
|
39
|
+
"@atlaskit/icon": "^22.16.0",
|
|
40
40
|
"@atlaskit/icon-file-type": "^6.5.0",
|
|
41
41
|
"@atlaskit/icon-object": "^6.5.0",
|
|
42
42
|
"@atlaskit/icon-priority": "^6.3.0",
|