@atlaskit/smart-card 27.8.3 → 27.9.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 +16 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/views/flexible/styled.js +4 -4
- package/dist/cjs/view/CardWithUrl/component.js +3 -0
- package/dist/cjs/view/CardWithUrl/loader.js +2 -0
- package/dist/cjs/view/EmbedModal/components/link-info/styled.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +16 -12
- package/dist/cjs/view/FlexibleCard/components/actions/action/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-indicator-tooltip.js +7 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/container/hover-card-control/index.js +4 -2
- package/dist/cjs/view/FlexibleCard/components/container/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +3 -3
- package/dist/cjs/view/FlexibleCard/index.js +2 -0
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +6 -3
- package/dist/cjs/view/HoverCard/components/views/forbidden/styled.js +3 -3
- package/dist/cjs/view/HoverCard/components/views/resolved/styled.js +3 -3
- package/dist/cjs/view/HoverCard/components/views/resolving/styled.js +3 -3
- package/dist/cjs/view/HoverCard/components/views/unauthorised/styled.js +3 -3
- package/dist/cjs/view/HoverCard/styled.js +4 -4
- package/dist/cjs/view/InlineCard/ResolvedView/index.js +3 -1
- package/dist/cjs/view/InlineCard/index.js +2 -0
- package/dist/cjs/view/LinkUrl/LinkWarningModal/styled.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/RelatedLinksModal/components/related-links-list/index.js +2 -2
- package/dist/cjs/view/common/ai-icon/index.js +24 -26
- package/dist/cjs/view/common/ai-prism/ai-glowing-border/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/views/flexible/styled.js +4 -4
- package/dist/es2019/view/CardWithUrl/component.js +3 -0
- package/dist/es2019/view/CardWithUrl/loader.js +2 -0
- package/dist/es2019/view/EmbedModal/components/link-info/styled.js +4 -4
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +16 -12
- package/dist/es2019/view/FlexibleCard/components/actions/action/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-indicator-tooltip.js +4 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/container/hover-card-control/index.js +4 -2
- package/dist/es2019/view/FlexibleCard/components/container/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +3 -3
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +3 -3
- package/dist/es2019/view/FlexibleCard/index.js +2 -0
- package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +6 -3
- package/dist/es2019/view/HoverCard/components/views/forbidden/styled.js +3 -3
- package/dist/es2019/view/HoverCard/components/views/resolved/styled.js +3 -3
- package/dist/es2019/view/HoverCard/components/views/resolving/styled.js +3 -3
- package/dist/es2019/view/HoverCard/components/views/unauthorised/styled.js +3 -3
- package/dist/es2019/view/HoverCard/styled.js +4 -4
- package/dist/es2019/view/InlineCard/ResolvedView/index.js +3 -1
- package/dist/es2019/view/InlineCard/index.js +2 -0
- package/dist/es2019/view/LinkUrl/LinkWarningModal/styled.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/RelatedLinksModal/components/related-links-list/index.js +2 -2
- package/dist/es2019/view/common/ai-icon/index.js +100 -104
- package/dist/es2019/view/common/ai-prism/ai-glowing-border/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/views/flexible/styled.js +4 -4
- package/dist/esm/view/CardWithUrl/component.js +3 -0
- package/dist/esm/view/CardWithUrl/loader.js +2 -0
- package/dist/esm/view/EmbedModal/components/link-info/styled.js +4 -4
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +16 -12
- package/dist/esm/view/FlexibleCard/components/actions/action/index.js +3 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-indicator-tooltip.js +7 -3
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/esm/view/FlexibleCard/components/container/hover-card-control/index.js +4 -2
- package/dist/esm/view/FlexibleCard/components/container/index.js +3 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +3 -3
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +3 -3
- package/dist/esm/view/FlexibleCard/index.js +2 -0
- package/dist/esm/view/HoverCard/components/HoverCardComponent.js +6 -3
- package/dist/esm/view/HoverCard/components/views/forbidden/styled.js +3 -3
- package/dist/esm/view/HoverCard/components/views/resolved/styled.js +3 -3
- package/dist/esm/view/HoverCard/components/views/resolving/styled.js +3 -3
- package/dist/esm/view/HoverCard/components/views/unauthorised/styled.js +3 -3
- package/dist/esm/view/HoverCard/styled.js +4 -4
- package/dist/esm/view/InlineCard/ResolvedView/index.js +3 -1
- package/dist/esm/view/InlineCard/index.js +2 -0
- package/dist/esm/view/LinkUrl/LinkWarningModal/styled.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/RelatedLinksModal/components/related-links-list/index.js +2 -2
- package/dist/esm/view/common/ai-icon/index.js +25 -27
- package/dist/esm/view/common/ai-prism/ai-glowing-border/index.js +1 -1
- package/dist/types/view/Card/index.d.ts +1 -1
- package/dist/types/view/Card/types.d.ts +2 -0
- package/dist/types/view/CardWithUrl/types.d.ts +2 -0
- package/dist/types/view/FlexibleCard/components/container/hover-card-control/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/container/hover-card-control/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/container/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/container/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/types.d.ts +5 -0
- package/dist/types/view/HoverCard/types.d.ts +7 -0
- package/dist/types/view/InlineCard/ResolvedView/index.d.ts +2 -0
- package/dist/types/view/InlineCard/types.d.ts +2 -0
- package/dist/types-ts4.5/view/Card/index.d.ts +1 -1
- package/dist/types-ts4.5/view/Card/types.d.ts +2 -0
- package/dist/types-ts4.5/view/CardWithUrl/types.d.ts +2 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/container/hover-card-control/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/container/hover-card-control/types.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/container/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/container/types.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/types.d.ts +5 -0
- package/dist/types-ts4.5/view/HoverCard/types.d.ts +7 -0
- package/dist/types-ts4.5/view/InlineCard/ResolvedView/index.d.ts +2 -0
- package/dist/types-ts4.5/view/InlineCard/types.d.ts +2 -0
- package/package.json +12 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 27.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#117451](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117451)
|
|
8
|
+
[`0ecc0082a92e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0ecc0082a92e6) -
|
|
9
|
+
Add hover card configs prop, with an option to control fade in delay
|
|
10
|
+
|
|
11
|
+
## 27.8.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#117063](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117063)
|
|
16
|
+
[`5b862e8b58b77`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5b862e8b58b77) -
|
|
17
|
+
Fix AI summary icon partly showing blue colour when redesign feature flag is enabled
|
|
18
|
+
|
|
3
19
|
## 27.8.3
|
|
4
20
|
|
|
5
21
|
### 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.9.0"
|
|
26
26
|
};
|
|
27
27
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
28
28
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -10,7 +10,7 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
10
10
|
|
|
11
11
|
// in editor prosemirror adds padding-left so we need to overwrite it
|
|
12
12
|
// renderer overwrites the margin-right so we need to add it here
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
14
14
|
var metadataBlockCss = exports.metadataBlockCss = (0, _react.css)({
|
|
15
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
16
16
|
'span[data-smart-element-avatar-group]': {
|
|
@@ -25,7 +25,7 @@ var metadataBlockCss = exports.metadataBlockCss = (0, _react.css)({
|
|
|
25
25
|
lineHeight: '1rem'
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
29
29
|
var titleBlockCss = exports.titleBlockCss = (0, _react.css)({
|
|
30
30
|
gap: "var(--ds-space-100, 0.5em)",
|
|
31
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
@@ -34,7 +34,7 @@ var titleBlockCss = exports.titleBlockCss = (0, _react.css)({
|
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
38
38
|
var footerBlockCss = exports.footerBlockCss = (0, _react.css)({
|
|
39
39
|
height: '1.5rem',
|
|
40
40
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
@@ -46,7 +46,7 @@ var footerBlockCss = exports.footerBlockCss = (0, _react.css)({
|
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
50
50
|
var flexibleBlockCardStyle = exports.flexibleBlockCardStyle = (0, _react.css)({
|
|
51
51
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
52
52
|
'& > div': {
|
|
@@ -49,6 +49,7 @@ function Component(_ref) {
|
|
|
49
49
|
ui = _ref.ui,
|
|
50
50
|
children = _ref.children,
|
|
51
51
|
showHoverPreview = _ref.showHoverPreview,
|
|
52
|
+
hoverPreviewOptions = _ref.hoverPreviewOptions,
|
|
52
53
|
showAuthTooltip = _ref.showAuthTooltip,
|
|
53
54
|
analyticsEvents = _ref.analyticsEvents,
|
|
54
55
|
useLegacyBlockCard = _ref.useLegacyBlockCard;
|
|
@@ -198,6 +199,7 @@ function Component(_ref) {
|
|
|
198
199
|
renderers: renderers,
|
|
199
200
|
ui: ui,
|
|
200
201
|
showHoverPreview: showHoverPreview,
|
|
202
|
+
hoverPreviewOptions: hoverPreviewOptions,
|
|
201
203
|
showAuthTooltip: showAuthTooltip,
|
|
202
204
|
actionOptions: actionOptions,
|
|
203
205
|
url: url,
|
|
@@ -229,6 +231,7 @@ function Component(_ref) {
|
|
|
229
231
|
testId: testId,
|
|
230
232
|
inlinePreloaderStyle: inlinePreloaderStyle,
|
|
231
233
|
showHoverPreview: showHoverPreview,
|
|
234
|
+
hoverPreviewOptions: hoverPreviewOptions,
|
|
232
235
|
showAuthTooltip: showAuthTooltip,
|
|
233
236
|
actionOptions: actionOptions
|
|
234
237
|
});
|
|
@@ -59,6 +59,7 @@ function CardWithURLRenderer(props) {
|
|
|
59
59
|
children = props.children,
|
|
60
60
|
ui = props.ui,
|
|
61
61
|
showHoverPreview = props.showHoverPreview,
|
|
62
|
+
hoverPreviewOptions = props.hoverPreviewOptions,
|
|
62
63
|
showAuthTooltip = props.showAuthTooltip,
|
|
63
64
|
analyticsEvents = props.analyticsEvents,
|
|
64
65
|
placeholder = props.placeholder,
|
|
@@ -129,6 +130,7 @@ function CardWithURLRenderer(props) {
|
|
|
129
130
|
inlinePreloaderStyle: inlinePreloaderStyle,
|
|
130
131
|
ui: ui,
|
|
131
132
|
showHoverPreview: showHoverPreview,
|
|
133
|
+
hoverPreviewOptions: hoverPreviewOptions,
|
|
132
134
|
showAuthTooltip: showAuthTooltip,
|
|
133
135
|
analyticsEvents: analyticsEvents,
|
|
134
136
|
placeholder: placeholder,
|
|
@@ -7,7 +7,7 @@ exports.titleCss = exports.iconCss = exports.containerStyles = exports.actionCss
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
|
|
10
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
11
|
var containerStyles = exports.containerStyles = (0, _react.css)({
|
|
12
12
|
alignItems: 'center',
|
|
13
13
|
display: 'flex',
|
|
@@ -22,7 +22,7 @@ var iconSize = '24px';
|
|
|
22
22
|
// EDM-7328: CSS Specificity
|
|
23
23
|
// An embed modal icon css for img, span, svg has specificity weight of 0-1-1.
|
|
24
24
|
// Specify flex ui icon selector to increase specificity weight to 0-2-1.
|
|
25
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
26
26
|
var iconCss = exports.iconCss = (0, _react.css)({
|
|
27
27
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
28
28
|
'&, [data-smart-element-icon] img, [data-smart-element-icon] span, [data-smart-element-icon] svg, img, span, svg': {
|
|
@@ -35,7 +35,7 @@ var iconCss = exports.iconCss = (0, _react.css)({
|
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
var height = '20px';
|
|
38
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
39
39
|
var titleCss = exports.titleCss = (0, _react.css)({
|
|
40
40
|
flex: '1 1 auto',
|
|
41
41
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
@@ -57,7 +57,7 @@ var titleCss = exports.titleCss = (0, _react.css)({
|
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
61
61
|
var actionCss = exports.actionCss = (0, _react.css)({
|
|
62
62
|
display: 'flex',
|
|
63
63
|
flex: '0 0 auto',
|
package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js
CHANGED
|
@@ -58,17 +58,21 @@ var ActionButton = function ActionButton(_ref) {
|
|
|
58
58
|
}),
|
|
59
59
|
size: size
|
|
60
60
|
}) : iconOption;
|
|
61
|
-
return
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
61
|
+
return (
|
|
62
|
+
/*#__PURE__*/
|
|
63
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
64
|
+
_react.default.createElement(_primitives.Pressable, (0, _extends2.default)({
|
|
65
|
+
xcss: [buttonStyles, xcss]
|
|
66
|
+
}, tooltipProps, {
|
|
67
|
+
onClick: onClick,
|
|
68
|
+
testId: testId
|
|
69
|
+
}), /*#__PURE__*/_react.default.createElement(_primitives.Inline, {
|
|
70
|
+
alignBlock: "center",
|
|
71
|
+
grow: "fill",
|
|
72
|
+
space: space
|
|
73
|
+
}, icon, /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
74
|
+
xcss: contentStyles
|
|
75
|
+
}, content)))
|
|
76
|
+
);
|
|
73
77
|
};
|
|
74
78
|
var _default = exports.default = ActionButton;
|
|
@@ -71,7 +71,9 @@ var Action = function Action(_ref) {
|
|
|
71
71
|
onClick: onClick,
|
|
72
72
|
size: size,
|
|
73
73
|
testId: testId,
|
|
74
|
-
tooltipMessage: tooltipMessage || content
|
|
74
|
+
tooltipMessage: tooltipMessage || content
|
|
75
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
76
|
+
,
|
|
75
77
|
xcss: xcss,
|
|
76
78
|
tooltipOnHide: tooltipOnHide,
|
|
77
79
|
hideTooltipOnMouseDown: hideTooltipOnMouseDown,
|
|
@@ -90,7 +90,7 @@ var ActionBlock = function ActionBlock(_ref) {
|
|
|
90
90
|
onError: onError,
|
|
91
91
|
onLoadingChange: onLoadingChange,
|
|
92
92
|
size: size
|
|
93
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
93
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
94
94
|
,
|
|
95
95
|
xcss: (0, _primitives.xcss)({
|
|
96
96
|
paddingInline: padding
|
|
@@ -36,9 +36,13 @@ var AIIndicatorTooltip = function AIIndicatorTooltip(_ref) {
|
|
|
36
36
|
content: content,
|
|
37
37
|
tag: "span"
|
|
38
38
|
}, function (tooltipProps) {
|
|
39
|
-
return
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
return (
|
|
40
|
+
/*#__PURE__*/
|
|
41
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
42
|
+
_react.default.createElement(_primitives.Box, (0, _extends2.default)({
|
|
43
|
+
xcss: [triggerStyles, overrideXcss]
|
|
44
|
+
}, tooltipProps), trigger)
|
|
45
|
+
);
|
|
42
46
|
});
|
|
43
47
|
};
|
|
44
48
|
var _default = exports.default = AIIndicatorTooltip;
|
|
@@ -38,7 +38,7 @@ var RelatedUrlList = function RelatedUrlList(_ref) {
|
|
|
38
38
|
var intl = (0, _reactIntlNext.useIntl)();
|
|
39
39
|
return resolvedResults.length > 0 ?
|
|
40
40
|
/*#__PURE__*/
|
|
41
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
42
42
|
_react.default.createElement(_primitives.Stack, {
|
|
43
43
|
testId: testId,
|
|
44
44
|
xcss: (0, _primitives.xcss)({
|
|
@@ -29,7 +29,7 @@ var ResolvedResultsStack = function ResolvedResultsStack(_ref) {
|
|
|
29
29
|
space: "space.050",
|
|
30
30
|
testId: "".concat(testId, "-items-wrapper"),
|
|
31
31
|
as: "ul"
|
|
32
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
33
33
|
,
|
|
34
34
|
xcss: (0, _primitives.xcss)({
|
|
35
35
|
paddingLeft: 'space.0',
|
|
@@ -85,7 +85,7 @@ var getBaseStyles = exports.getBaseStyles = function getBaseStyles(direction, si
|
|
|
85
85
|
});
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles
|
|
88
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
89
89
|
var highlightRemoveStyles = exports.highlightRemoveStyles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\toutline: none !important;\n\toutline-color: inherit;\n\tcolor: inherit;\n\t-webkit-tap-highlight-color: transparent;\n\t-webkit-touch-callout: none;\n\t-webkit-user-select: none;\n\t-moz-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none;\n"])));
|
|
90
90
|
var isActionGroup = function isActionGroup(node) {
|
|
91
91
|
return /*#__PURE__*/_react.default.isValidElement(node) && node.type === _actionGroup.default;
|
|
@@ -22,7 +22,8 @@ var HoverCardControl = function HoverCardControl(_ref) {
|
|
|
22
22
|
testId = _ref.testId,
|
|
23
23
|
url = _ref.url,
|
|
24
24
|
_ref$delay = _ref.delay,
|
|
25
|
-
delay = _ref$delay === void 0 ? FLEXIBLE_HOVER_CARD_CAN_OPEN_DELAY : _ref$delay
|
|
25
|
+
delay = _ref$delay === void 0 ? FLEXIBLE_HOVER_CARD_CAN_OPEN_DELAY : _ref$delay,
|
|
26
|
+
hoverPreviewOptions = _ref.hoverPreviewOptions;
|
|
26
27
|
var _useState = (0, _react.useState)(true),
|
|
27
28
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
28
29
|
canOpen = _useState2[0],
|
|
@@ -69,7 +70,8 @@ var HoverCardControl = function HoverCardControl(_ref) {
|
|
|
69
70
|
closeOnChildClick: true,
|
|
70
71
|
hidePreviewButton: hideHoverCardPreviewButton,
|
|
71
72
|
actionOptions: actionOptions,
|
|
72
|
-
url: url
|
|
73
|
+
url: url,
|
|
74
|
+
hoverPreviewOptions: hoverPreviewOptions
|
|
73
75
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
74
76
|
onMouseLeave: onMouseLeave,
|
|
75
77
|
onMouseMove: onMouseMove,
|
|
@@ -187,6 +187,7 @@ var Container = function Container(_ref3) {
|
|
|
187
187
|
showAuthTooltip = _ref3$showAuthTooltip === void 0 ? false : _ref3$showAuthTooltip,
|
|
188
188
|
_ref3$showHoverPrevie = _ref3.showHoverPreview,
|
|
189
189
|
showHoverPreview = _ref3$showHoverPrevie === void 0 ? false : _ref3$showHoverPrevie,
|
|
190
|
+
hoverPreviewOptions = _ref3.hoverPreviewOptions,
|
|
190
191
|
actionOptions = _ref3.actionOptions,
|
|
191
192
|
_ref3$size = _ref3.size,
|
|
192
193
|
size = _ref3$size === void 0 ? _constants.SmartLinkSize.Medium : _ref3$size,
|
|
@@ -214,7 +215,8 @@ var Container = function Container(_ref3) {
|
|
|
214
215
|
isAuthTooltip: canShowAuthTooltip,
|
|
215
216
|
actionOptions: actionOptions,
|
|
216
217
|
testId: testId,
|
|
217
|
-
url: context.url
|
|
218
|
+
url: context.url,
|
|
219
|
+
hoverPreviewOptions: hoverPreviewOptions
|
|
218
220
|
}, container);
|
|
219
221
|
}
|
|
220
222
|
return container;
|
|
@@ -9,7 +9,7 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
9
9
|
var _utils = require("../../../../utils");
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
11
|
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
13
13
|
var dropdownItemGroupStyles = exports.dropdownItemGroupStyles = (0, _react.css)({
|
|
14
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
15
15
|
button: {
|
|
@@ -30,7 +30,7 @@ var sharedBlockStyles = (0, _react.css)({
|
|
|
30
30
|
alignItems: 'center'
|
|
31
31
|
});
|
|
32
32
|
|
|
33
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
34
34
|
var contentStyles = exports.contentStyles = (0, _react.css)(sharedBlockStyles, {
|
|
35
35
|
marginTop: "var(--ds-space-025, 2px)",
|
|
36
36
|
alignItems: 'flex-start',
|
|
@@ -42,7 +42,7 @@ var contentStyles = exports.contentStyles = (0, _react.css)(sharedBlockStyles, {
|
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
|
|
45
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
46
46
|
var linkStyles = exports.linkStyles = (0, _react.css)(sharedBlockStyles, {
|
|
47
47
|
cursor: 'pointer',
|
|
48
48
|
fontSize: '0.875rem',
|
|
@@ -7,7 +7,7 @@ exports.triggerLozengeStyles = exports.triggerButtonStyles = exports.dropdownIte
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
|
|
10
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
11
|
var triggerButtonStyles = exports.triggerButtonStyles = (0, _react.css)({
|
|
12
12
|
all: 'unset',
|
|
13
13
|
backgroundColor: 'transparent',
|
|
@@ -31,7 +31,7 @@ var triggerButtonStyles = exports.triggerButtonStyles = (0, _react.css)({
|
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
|
|
34
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-exported-styles
|
|
34
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
35
35
|
var triggerLozengeStyles = exports.triggerLozengeStyles = (0, _react.css)({
|
|
36
36
|
alignItems: 'center',
|
|
37
37
|
display: 'flex',
|
|
@@ -41,7 +41,7 @@ var triggerLozengeStyles = exports.triggerLozengeStyles = (0, _react.css)({
|
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
45
45
|
var dropdownItemGroupStyles = exports.dropdownItemGroupStyles = (0, _react.css)({
|
|
46
46
|
maxHeight: '300px',
|
|
47
47
|
overflowY: 'auto',
|
|
@@ -39,6 +39,7 @@ var FlexibleCard = function FlexibleCard(_ref) {
|
|
|
39
39
|
renderers = _ref.renderers,
|
|
40
40
|
showAuthTooltip = _ref.showAuthTooltip,
|
|
41
41
|
showHoverPreview = _ref.showHoverPreview,
|
|
42
|
+
hoverPreviewOptions = _ref.hoverPreviewOptions,
|
|
42
43
|
actionOptions = _ref.actionOptions,
|
|
43
44
|
testId = _ref.testId,
|
|
44
45
|
ui = _ref.ui,
|
|
@@ -104,6 +105,7 @@ var FlexibleCard = function FlexibleCard(_ref) {
|
|
|
104
105
|
onClick: onClick,
|
|
105
106
|
retry: retry,
|
|
106
107
|
showHoverPreview: showHoverPreview,
|
|
108
|
+
hoverPreviewOptions: hoverPreviewOptions,
|
|
107
109
|
actionOptions: actionOptions,
|
|
108
110
|
showAuthTooltip: showAuthTooltip,
|
|
109
111
|
status: status
|
|
@@ -33,6 +33,7 @@ var FADE_IN_DELAY = 500;
|
|
|
33
33
|
var FADE_OUT_DELAY = 300;
|
|
34
34
|
var RESOLVE_DELAY = 100;
|
|
35
35
|
var HoverCardComponent = exports.HoverCardComponent = function HoverCardComponent(_ref) {
|
|
36
|
+
var _hoverPreviewOptions$;
|
|
36
37
|
var children = _ref.children,
|
|
37
38
|
url = _ref.url,
|
|
38
39
|
_ref$id = _ref.id,
|
|
@@ -51,7 +52,9 @@ var HoverCardComponent = exports.HoverCardComponent = function HoverCardComponen
|
|
|
51
52
|
_ref$zIndex = _ref.zIndex,
|
|
52
53
|
zIndex = _ref$zIndex === void 0 ? _styled.HOVER_CARD_Z_INDEX : _ref$zIndex,
|
|
53
54
|
_ref$noFadeDelay = _ref.noFadeDelay,
|
|
54
|
-
noFadeDelay = _ref$noFadeDelay === void 0 ? false : _ref$noFadeDelay
|
|
55
|
+
noFadeDelay = _ref$noFadeDelay === void 0 ? false : _ref$noFadeDelay,
|
|
56
|
+
hoverPreviewOptions = _ref.hoverPreviewOptions;
|
|
57
|
+
var fadeInDelay = (_hoverPreviewOptions$ = hoverPreviewOptions === null || hoverPreviewOptions === void 0 ? void 0 : hoverPreviewOptions.fadeInDelay) !== null && _hoverPreviewOptions$ !== void 0 ? _hoverPreviewOptions$ : FADE_IN_DELAY;
|
|
55
58
|
var _React$useState = _react2.default.useState(false),
|
|
56
59
|
_React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2),
|
|
57
60
|
isOpen = _React$useState2[0],
|
|
@@ -161,10 +164,10 @@ var HoverCardComponent = exports.HoverCardComponent = function HoverCardComponen
|
|
|
161
164
|
} else {
|
|
162
165
|
fadeInTimeoutId.current = setTimeout(function () {
|
|
163
166
|
setIsOpen(true);
|
|
164
|
-
},
|
|
167
|
+
}, fadeInDelay);
|
|
165
168
|
}
|
|
166
169
|
}
|
|
167
|
-
}, [initResolve, isOpen, setMousePosition, noFadeDelay]);
|
|
170
|
+
}, [initResolve, isOpen, setMousePosition, noFadeDelay, fadeInDelay]);
|
|
168
171
|
var linkActions = (0, _useSmartLinkActions.useSmartLinkActions)({
|
|
169
172
|
url: url,
|
|
170
173
|
appearance: _constants.CardDisplay.HoverCardPreview,
|
|
@@ -9,14 +9,14 @@ var _react = require("@emotion/react");
|
|
|
9
9
|
|
|
10
10
|
var titleFontWeight = '600';
|
|
11
11
|
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
13
13
|
var titleBlockStyles = exports.titleBlockStyles = (0, _react.css)({
|
|
14
14
|
justifyContent: 'center',
|
|
15
15
|
fontWeight: titleFontWeight,
|
|
16
16
|
marginTop: "var(--ds-space-100, 8px)"
|
|
17
17
|
});
|
|
18
18
|
|
|
19
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
20
20
|
var mainTextStyles = exports.mainTextStyles = (0, _react.css)({
|
|
21
21
|
display: 'inline',
|
|
22
22
|
justifyContent: 'center',
|
|
@@ -25,7 +25,7 @@ var mainTextStyles = exports.mainTextStyles = (0, _react.css)({
|
|
|
25
25
|
textAlign: 'center'
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
29
29
|
var connectButtonStyles = exports.connectButtonStyles = (0, _react.css)({
|
|
30
30
|
justifyContent: 'center',
|
|
31
31
|
marginTop: "var(--ds-space-100, 8px)"
|
|
@@ -11,15 +11,15 @@ var _styled = require("../../../styled");
|
|
|
11
11
|
var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
12
|
var elementGap = '0.5rem';
|
|
13
13
|
|
|
14
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles
|
|
14
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
15
15
|
var metadataBlockCss = exports.metadataBlockCss = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tgap: 0px;\n\t/* primary element group */\n\t[data-smart-element-group]:nth-of-type(1) {\n\t\tflex-grow: 7;\n\n\t\t// a separator between text-based element\n\t\t", "\n\n\t\t/* horizontal spacing between elements in group */\n > span {\n\t\t\tmargin-right: ", ";\n\t\t}\n\t}\n\t/* secondary element group */\n\t[data-smart-element-group]:nth-of-type(2) {\n\t\tflex-grow: 3;\n\t\t/* horizontal spacing between elements in group */\n\t\t> span {\n\t\t\tmargin-left: ", ";\n\t\t}\n\t}\n\n\t[data-smart-element-group] {\n\t\tline-height: 1rem;\n\t}\n"])), _styled.separatorCss, elementGap, elementGap);
|
|
16
16
|
|
|
17
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
18
18
|
var footerBlockCss = exports.footerBlockCss = (0, _react.css)({
|
|
19
19
|
height: '1.5rem'
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
23
23
|
var hiddenSnippetStyles = exports.hiddenSnippetStyles = (0, _react.css)({
|
|
24
24
|
visibility: 'hidden',
|
|
25
25
|
position: 'absolute'
|
|
@@ -7,14 +7,14 @@ exports.titleBlockStyles = exports.skeletonContainer = exports.loadingViewContai
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
|
|
10
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
11
|
var loadingViewContainer = exports.loadingViewContainer = (0, _react.css)({
|
|
12
12
|
display: 'flex',
|
|
13
13
|
flexDirection: 'column',
|
|
14
14
|
padding: "var(--ds-space-200, 1rem)"
|
|
15
15
|
});
|
|
16
16
|
|
|
17
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
18
18
|
var skeletonContainer = exports.skeletonContainer = (0, _react.css)({
|
|
19
19
|
display: 'flex',
|
|
20
20
|
flexDirection: 'column',
|
|
@@ -34,7 +34,7 @@ var getTitleStyles = exports.getTitleStyles = function getTitleStyles(height) {
|
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
38
38
|
var titleBlockStyles = exports.titleBlockStyles = (0, _react.css)({
|
|
39
39
|
width: '100%',
|
|
40
40
|
gap: "var(--ds-space-100, 0.5rem)"
|
|
@@ -11,13 +11,13 @@ var blockGap = '0.5rem';
|
|
|
11
11
|
var iconGap = '0.5rem';
|
|
12
12
|
var titleFontWeight = '500';
|
|
13
13
|
|
|
14
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
15
15
|
var connectButtonStyles = exports.connectButtonStyles = (0, _react.css)({
|
|
16
16
|
justifyContent: 'flex-end',
|
|
17
17
|
marginTop: blockGap
|
|
18
18
|
});
|
|
19
19
|
|
|
20
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
21
21
|
var titleBlockStyles = exports.titleBlockStyles = (0, _react.css)({
|
|
22
22
|
gap: "".concat(blockGap, " ").concat(iconGap),
|
|
23
23
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
@@ -26,7 +26,7 @@ var titleBlockStyles = exports.titleBlockStyles = (0, _react.css)({
|
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
30
30
|
var mainTextStyles = exports.mainTextStyles = (0, _react.css)({
|
|
31
31
|
marginTop: blockGap,
|
|
32
32
|
fontSize: '0.75rem'
|
|
@@ -28,7 +28,7 @@ var CARD_GAP_PX = exports.CARD_GAP_PX = 10;
|
|
|
28
28
|
var blockGap = '0.5rem';
|
|
29
29
|
var elementGap = '0.5rem';
|
|
30
30
|
|
|
31
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
32
32
|
var separatorCss = exports.separatorCss = (0, _react.css)({
|
|
33
33
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
34
34
|
'[data-separator] + [data-separator]:before': {
|
|
@@ -36,10 +36,10 @@ var separatorCss = exports.separatorCss = (0, _react.css)({
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
|
|
39
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles
|
|
39
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
40
40
|
var HoverCardContainer = exports.HoverCardContainer = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tbackground: none;\n\tborder-width: 0;\n\tbox-sizing: border-box;\n\twidth: ", "rem;\n\n\t.", " {\n\t\tdisplay: none;\n\t}\n"])), (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.hover-card-ai-summaries') ? NEW_CARD_WIDTH_REM : CARD_WIDTH_REM, _index.loadingPlaceholderClassName);
|
|
41
41
|
|
|
42
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles
|
|
42
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
43
43
|
var titleBlockCss = exports.titleBlockCss = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\tgap: ", ";\n\n\t", "\n\n\t// title and subtitle element group\n [data-smart-element-group] {\n\t\t// gap between title and subtitle\n\t\tgap: 0.06rem;\n\t\tdisplay: flex;\n\t\t/* subtitle element group */\n\t\t> [data-smart-element-group] {\n\t\t\t> span {\n\t\t\t\tmargin-right: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t[data-smart-element='Title'] {\n\t\tfont-weight: 600;\n\t}\n"])), blockGap, separatorCss, elementGap);
|
|
44
44
|
var getTransitionStyles = exports.getTransitionStyles = function getTransitionStyles(snippetHeight) {
|
|
45
45
|
return (0, _react.css)({
|
|
@@ -49,7 +49,7 @@ var getTransitionStyles = exports.getTransitionStyles = function getTransitionSt
|
|
|
49
49
|
});
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
53
53
|
var popupContainerStyles = exports.popupContainerStyles = (0, _react.css)({
|
|
54
54
|
borderRadius: "var(--ds-border-radius-200, 8px)",
|
|
55
55
|
backgroundColor: "var(--ds-surface-overlay, white)",
|
|
@@ -60,6 +60,7 @@ var InlineCardResolvedView = exports.InlineCardResolvedView = /*#__PURE__*/funct
|
|
|
60
60
|
titlePrefix = _this$props.titlePrefix,
|
|
61
61
|
_this$props$showHover = _this$props.showHoverPreview,
|
|
62
62
|
showHoverPreview = _this$props$showHover === void 0 ? false : _this$props$showHover,
|
|
63
|
+
hoverPreviewOptions = _this$props.hoverPreviewOptions,
|
|
63
64
|
actionOptions = _this$props.actionOptions;
|
|
64
65
|
var inlineCardResolvedView = /*#__PURE__*/_react.default.createElement(_Frame.Frame, {
|
|
65
66
|
testId: testId,
|
|
@@ -77,7 +78,8 @@ var InlineCardResolvedView = exports.InlineCardResolvedView = /*#__PURE__*/funct
|
|
|
77
78
|
return /*#__PURE__*/_react.default.createElement(_index.HoverCard, {
|
|
78
79
|
id: id,
|
|
79
80
|
url: link,
|
|
80
|
-
actionOptions: actionOptions
|
|
81
|
+
actionOptions: actionOptions,
|
|
82
|
+
hoverPreviewOptions: hoverPreviewOptions
|
|
81
83
|
}, inlineCardResolvedView);
|
|
82
84
|
}
|
|
83
85
|
return inlineCardResolvedView;
|
|
@@ -70,6 +70,7 @@ var InlineCard = exports.InlineCard = function InlineCard(_ref) {
|
|
|
70
70
|
testId = _ref.testId,
|
|
71
71
|
inlinePreloaderStyle = _ref.inlinePreloaderStyle,
|
|
72
72
|
showHoverPreview = _ref.showHoverPreview,
|
|
73
|
+
hoverPreviewOptions = _ref.hoverPreviewOptions,
|
|
73
74
|
showAuthTooltip = _ref.showAuthTooltip,
|
|
74
75
|
actionOptions = _ref.actionOptions;
|
|
75
76
|
var _useAnalyticsEvents = (0, _analyticsNext.useAnalyticsEvents)(),
|
|
@@ -120,6 +121,7 @@ var InlineCard = exports.InlineCard = function InlineCard(_ref) {
|
|
|
120
121
|
return /*#__PURE__*/_react.default.createElement(_ResolvedView.InlineCardResolvedView, (0, _extends2.default)({}, resolvedProps, {
|
|
121
122
|
id: id,
|
|
122
123
|
showHoverPreview: showHoverPreview,
|
|
124
|
+
hoverPreviewOptions: hoverPreviewOptions,
|
|
123
125
|
actionOptions: actionOptions,
|
|
124
126
|
link: url,
|
|
125
127
|
isSelected: isSelected,
|
|
@@ -7,7 +7,7 @@ exports.breakWordsCss = void 0;
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
|
|
10
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
11
|
var breakWordsCss = exports.breakWordsCss = (0, _react.css)({
|
|
12
12
|
whiteSpace: 'pre-line',
|
|
13
13
|
wordBreak: 'break-all'
|
|
@@ -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.9.0",
|
|
21
21
|
componentName: 'linkUrl'
|
|
22
22
|
};
|
|
23
23
|
var Link = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -22,7 +22,7 @@ var RelatedLinksList = function RelatedLinksList(_ref) {
|
|
|
22
22
|
testId: testId
|
|
23
23
|
}, (0, _react.jsx)(_primitives.Box, {
|
|
24
24
|
paddingBlockStart: "space.050"
|
|
25
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
26
26
|
,
|
|
27
27
|
xcss: (0, _primitives.xcss)({
|
|
28
28
|
font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
@@ -36,7 +36,7 @@ var RelatedLinksList = function RelatedLinksList(_ref) {
|
|
|
36
36
|
testId: "".concat(testId, "-item-").concat(idx)
|
|
37
37
|
}));
|
|
38
38
|
})), urls.length === 0 &&
|
|
39
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
40
40
|
(0, _react.jsx)(_primitives.Box, {
|
|
41
41
|
paddingBlock: "space.100",
|
|
42
42
|
xcss: (0, _primitives.xcss)({
|