@atlaskit/smart-card 17.7.12 → 18.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 18.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`cff21812950`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cff21812950) - add smart link actions to footer of hover card, plus small styling changes
8
+
9
+ ## 18.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`75c16ae4964`](https://bitbucket.org/atlassian/atlassian-frontend/commits/75c16ae4964) - refactor code to use atlaskit/popup instead of atlaskit/tooltip as a base component
14
+
15
+ ## 18.0.0
16
+
17
+ ### Major Changes
18
+
19
+ - [`dd429d9fdca`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dd429d9fdca) - [ux] EDM-2822: Fix smart link wraps just after the icon
20
+
21
+ ### Patch Changes
22
+
23
+ - [`fb1cf506701`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fb1cf506701) - [ux] ED-14487: polyfill ResizeObserver and IntersectionObserver for unit tests, but mock isIntersectionObserverSupported() for tests related to smart-cards
24
+ - Updated dependencies
25
+
3
26
  ## 17.7.12
4
27
 
5
28
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "17.7.12",
3
+ "version": "18.0.2",
4
4
  "sideEffects": false
5
5
  }
@@ -2,36 +2,121 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
 
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+
5
7
  Object.defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
8
10
  exports.HoverCard = void 0;
9
11
 
10
- var _react = _interopRequireDefault(require("react"));
12
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
+
14
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
15
 
12
- var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
16
+ var _core = require("@emotion/core");
17
+
18
+ var _react = _interopRequireWildcard(require("react"));
13
19
 
14
20
  var _blocks = require("../FlexibleCard/components/blocks");
15
21
 
16
22
  var _Card = require("../Card");
17
23
 
24
+ var _popup = _interopRequireDefault(require("@atlaskit/popup"));
25
+
26
+ var _constants = require("../../constants");
27
+
28
+ var _useSmartLinkActions = require("../../state/hooks-external/useSmartLinkActions");
29
+
18
30
  var _styled = require("./styled");
19
31
 
32
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
33
+
34
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
35
+
36
+ /** @jsx jsx */
20
37
  var HoverCard = function HoverCard(_ref) {
21
38
  var children = _ref.children,
22
39
  url = _ref.url;
40
+ var delay = 300;
23
41
 
24
- var cardComponent = /*#__PURE__*/_react.default.createElement(_Card.Card, {
25
- appearance: "block",
26
- url: url
27
- }, /*#__PURE__*/_react.default.createElement(_blocks.TitleBlock, null), /*#__PURE__*/_react.default.createElement(_blocks.SnippetBlock, null), /*#__PURE__*/_react.default.createElement(_blocks.FooterBlock, null));
42
+ var _React$useState = _react.default.useState(false),
43
+ _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2),
44
+ isOpen = _React$useState2[0],
45
+ setIsOpen = _React$useState2[1];
28
46
 
29
- return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
30
- content: cardComponent,
31
- component: _styled.HoverCardContainer,
47
+ var fadeOutTimeoutId = (0, _react.useRef)();
48
+ var fadeInTimeoutId = (0, _react.useRef)();
49
+ var initHideCard = (0, _react.useCallback)(function () {
50
+ if (fadeInTimeoutId.current) {
51
+ clearTimeout(fadeInTimeoutId.current);
52
+ }
53
+
54
+ fadeOutTimeoutId.current = setTimeout(function () {
55
+ setIsOpen(false);
56
+ }, delay);
57
+ }, [delay]);
58
+ var initShowCard = (0, _react.useCallback)(function () {
59
+ if (fadeOutTimeoutId.current) {
60
+ clearTimeout(fadeOutTimeoutId.current);
61
+ }
62
+
63
+ fadeInTimeoutId.current = setTimeout(function () {
64
+ setIsOpen(true);
65
+ }, delay);
66
+ }, [delay]); //TODO: EDM-2905: Add analytics events
67
+
68
+ var analyticsHandler = (0, _react.useCallback)(function () {}, []);
69
+ var linkActions = (0, _useSmartLinkActions.useSmartLinkActions)({
70
+ url: url,
71
+ appearance: 'block',
72
+ analyticsHandler: analyticsHandler
73
+ });
74
+ var actions = (0, _react.useMemo)(function () {
75
+ return linkActions.map(function (action) {
76
+ return {
77
+ content: action.text,
78
+ name: _constants.ActionName.CustomAction,
79
+ onClick: function onClick() {
80
+ return action.invoke();
81
+ },
82
+ testId: action.id
83
+ };
84
+ });
85
+ }, [linkActions]);
86
+
87
+ var cardComponent = function cardComponent() {
88
+ return (0, _core.jsx)("div", {
89
+ onMouseEnter: initShowCard,
90
+ onMouseLeave: initHideCard,
91
+ css: _styled.HoverCardContainer
92
+ }, (0, _core.jsx)(_Card.Card, {
93
+ appearance: "block",
94
+ url: url,
95
+ ui: {
96
+ hideElevation: true,
97
+ size: _constants.SmartLinkSize.Large
98
+ }
99
+ }, (0, _core.jsx)(_blocks.TitleBlock, null), (0, _core.jsx)(_blocks.SnippetBlock, null), (0, _core.jsx)(_blocks.FooterBlock, {
100
+ actions: actions
101
+ })));
102
+ };
103
+
104
+ var onClose = (0, _react.useCallback)(function () {
105
+ return setIsOpen(false);
106
+ }, []);
107
+ return (0, _core.jsx)(_popup.default, {
32
108
  testId: "hover-card",
33
- tag: "span"
34
- }, children);
109
+ isOpen: isOpen,
110
+ onClose: onClose,
111
+ placement: "bottom",
112
+ content: cardComponent,
113
+ trigger: function trigger(triggerProps) {
114
+ return (0, _core.jsx)("span", (0, _extends2.default)({}, triggerProps, {
115
+ onMouseEnter: initShowCard,
116
+ onMouseLeave: initHideCard
117
+ }), children);
118
+ }
119
+ });
35
120
  };
36
121
 
37
122
  exports.HoverCard = HoverCard;
@@ -9,11 +9,9 @@ exports.HoverCardContainer = void 0;
9
9
 
10
10
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
11
 
12
- var _styled = _interopRequireDefault(require("@emotion/styled"));
13
-
14
- var _tooltip = require("@atlaskit/tooltip");
12
+ var _core = require("@emotion/core");
15
13
 
16
14
  var _templateObject;
17
15
 
18
- var HoverCardContainer = (0, _styled.default)(_tooltip.TooltipPrimitive)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background: none;\n border-width: 0;\n box-sizing: content-box; /* do not set this to border-box or it will break the overflow handling */\n max-width: 500px;\n padding: 0;\n"])));
16
+ var HoverCardContainer = (0, _core.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background: none;\n border-width: 0;\n max-width: 500px;\n padding: 0;\n"])));
19
17
  exports.HoverCardContainer = HoverCardContainer;
@@ -33,12 +33,12 @@ exports.IconWrapper = IconWrapper;
33
33
 
34
34
  var EmojiWrapper = _styled.default.span(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-block;\n margin-right: 2px;\n user-select: none;\n ", "\n ", "\n"])), IconOverrides, IconObjectOverrides); // The main 'wrapping' element, title of the content.
35
35
  // NB: `white-space` adds little whitespace before wrapping.
36
- // NB: `hyphens` enables hyphenation on word break.
36
+ // NB: `word-break` line breaks as soon as an overflow takes place.
37
37
 
38
38
 
39
39
  exports.EmojiWrapper = EmojiWrapper;
40
40
 
41
- var IconTitleWrapper = _styled.default.span(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n hyphens: auto;\n white-space: pre-wrap;\n overflow-wrap: break-word;\n word-break: break-word;\n"]))); // TODO: Replace overrides with proper AtlasKit solution.
41
+ var IconTitleWrapper = _styled.default.span(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n white-space: pre-wrap;\n word-break: break-all;\n"]))); // TODO: Replace overrides with proper AtlasKit solution.
42
42
 
43
43
 
44
44
  exports.IconTitleWrapper = IconTitleWrapper;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "17.7.12",
3
+ "version": "18.0.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,20 +1,79 @@
1
- import React from 'react';
2
- import Tooltip from '@atlaskit/tooltip';
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+
3
+ /** @jsx jsx */
4
+ import { jsx } from '@emotion/core';
5
+ import React, { useCallback, useRef, useMemo } from 'react';
3
6
  import { TitleBlock, SnippetBlock, FooterBlock } from '../FlexibleCard/components/blocks';
4
7
  import { Card } from '../Card';
8
+ import Popup from '@atlaskit/popup';
9
+ import { SmartLinkSize, ActionName } from '../../constants';
10
+ import { useSmartLinkActions } from '../../state/hooks-external/useSmartLinkActions';
5
11
  import { HoverCardContainer } from './styled';
6
12
  export const HoverCard = ({
7
13
  children,
8
14
  url
9
15
  }) => {
10
- const cardComponent = /*#__PURE__*/React.createElement(Card, {
16
+ const delay = 300;
17
+ const [isOpen, setIsOpen] = React.useState(false);
18
+ const fadeOutTimeoutId = useRef();
19
+ const fadeInTimeoutId = useRef();
20
+ const initHideCard = useCallback(() => {
21
+ if (fadeInTimeoutId.current) {
22
+ clearTimeout(fadeInTimeoutId.current);
23
+ }
24
+
25
+ fadeOutTimeoutId.current = setTimeout(() => {
26
+ setIsOpen(false);
27
+ }, delay);
28
+ }, [delay]);
29
+ const initShowCard = useCallback(() => {
30
+ if (fadeOutTimeoutId.current) {
31
+ clearTimeout(fadeOutTimeoutId.current);
32
+ }
33
+
34
+ fadeInTimeoutId.current = setTimeout(() => {
35
+ setIsOpen(true);
36
+ }, delay);
37
+ }, [delay]); //TODO: EDM-2905: Add analytics events
38
+
39
+ const analyticsHandler = useCallback(() => {}, []);
40
+ const linkActions = useSmartLinkActions({
41
+ url,
42
+ appearance: 'block',
43
+ analyticsHandler
44
+ });
45
+ const actions = useMemo(() => linkActions.map(action => ({
46
+ content: action.text,
47
+ name: ActionName.CustomAction,
48
+ onClick: () => action.invoke(),
49
+ testId: action.id
50
+ })), [linkActions]);
51
+
52
+ const cardComponent = () => jsx("div", {
53
+ onMouseEnter: initShowCard,
54
+ onMouseLeave: initHideCard,
55
+ css: HoverCardContainer
56
+ }, jsx(Card, {
11
57
  appearance: "block",
12
- url: url
13
- }, /*#__PURE__*/React.createElement(TitleBlock, null), /*#__PURE__*/React.createElement(SnippetBlock, null), /*#__PURE__*/React.createElement(FooterBlock, null));
14
- return /*#__PURE__*/React.createElement(Tooltip, {
15
- content: cardComponent,
16
- component: HoverCardContainer,
58
+ url: url,
59
+ ui: {
60
+ hideElevation: true,
61
+ size: SmartLinkSize.Large
62
+ }
63
+ }, jsx(TitleBlock, null), jsx(SnippetBlock, null), jsx(FooterBlock, {
64
+ actions: actions
65
+ })));
66
+
67
+ const onClose = useCallback(() => setIsOpen(false), []);
68
+ return jsx(Popup, {
17
69
  testId: "hover-card",
18
- tag: "span"
19
- }, children);
70
+ isOpen: isOpen,
71
+ onClose: onClose,
72
+ placement: "bottom",
73
+ content: cardComponent,
74
+ trigger: triggerProps => jsx("span", _extends({}, triggerProps, {
75
+ onMouseEnter: initShowCard,
76
+ onMouseLeave: initHideCard
77
+ }), children)
78
+ });
20
79
  };
@@ -1,9 +1,7 @@
1
- import styled from '@emotion/styled';
2
- import { TooltipPrimitive } from '@atlaskit/tooltip';
3
- export const HoverCardContainer = styled(TooltipPrimitive)`
1
+ import { css } from '@emotion/core';
2
+ export const HoverCardContainer = css`
4
3
  background: none;
5
4
  border-width: 0;
6
- box-sizing: content-box; /* do not set this to border-box or it will break the overflow handling */
7
5
  max-width: 500px;
8
6
  padding: 0;
9
7
  `;
@@ -52,13 +52,11 @@ export const EmojiWrapper = styled.span`
52
52
  ${IconObjectOverrides}
53
53
  `; // The main 'wrapping' element, title of the content.
54
54
  // NB: `white-space` adds little whitespace before wrapping.
55
- // NB: `hyphens` enables hyphenation on word break.
55
+ // NB: `word-break` line breaks as soon as an overflow takes place.
56
56
 
57
57
  export const IconTitleWrapper = styled.span`
58
- hyphens: auto;
59
58
  white-space: pre-wrap;
60
- overflow-wrap: break-word;
61
- word-break: break-word;
59
+ word-break: break-all;
62
60
  `; // TODO: Replace overrides with proper AtlasKit solution.
63
61
 
64
62
  export const LozengeWrapper = styled.span`
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "17.7.12",
3
+ "version": "18.0.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,19 +1,96 @@
1
- import React from 'react';
2
- import Tooltip from '@atlaskit/tooltip';
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
+
4
+ /** @jsx jsx */
5
+ import { jsx } from '@emotion/core';
6
+ import React, { useCallback, useRef, useMemo } from 'react';
3
7
  import { TitleBlock, SnippetBlock, FooterBlock } from '../FlexibleCard/components/blocks';
4
8
  import { Card } from '../Card';
9
+ import Popup from '@atlaskit/popup';
10
+ import { SmartLinkSize, ActionName } from '../../constants';
11
+ import { useSmartLinkActions } from '../../state/hooks-external/useSmartLinkActions';
5
12
  import { HoverCardContainer } from './styled';
6
13
  export var HoverCard = function HoverCard(_ref) {
7
14
  var children = _ref.children,
8
15
  url = _ref.url;
9
- var cardComponent = /*#__PURE__*/React.createElement(Card, {
10
- appearance: "block",
11
- url: url
12
- }, /*#__PURE__*/React.createElement(TitleBlock, null), /*#__PURE__*/React.createElement(SnippetBlock, null), /*#__PURE__*/React.createElement(FooterBlock, null));
13
- return /*#__PURE__*/React.createElement(Tooltip, {
14
- content: cardComponent,
15
- component: HoverCardContainer,
16
+ var delay = 300;
17
+
18
+ var _React$useState = React.useState(false),
19
+ _React$useState2 = _slicedToArray(_React$useState, 2),
20
+ isOpen = _React$useState2[0],
21
+ setIsOpen = _React$useState2[1];
22
+
23
+ var fadeOutTimeoutId = useRef();
24
+ var fadeInTimeoutId = useRef();
25
+ var initHideCard = useCallback(function () {
26
+ if (fadeInTimeoutId.current) {
27
+ clearTimeout(fadeInTimeoutId.current);
28
+ }
29
+
30
+ fadeOutTimeoutId.current = setTimeout(function () {
31
+ setIsOpen(false);
32
+ }, delay);
33
+ }, [delay]);
34
+ var initShowCard = useCallback(function () {
35
+ if (fadeOutTimeoutId.current) {
36
+ clearTimeout(fadeOutTimeoutId.current);
37
+ }
38
+
39
+ fadeInTimeoutId.current = setTimeout(function () {
40
+ setIsOpen(true);
41
+ }, delay);
42
+ }, [delay]); //TODO: EDM-2905: Add analytics events
43
+
44
+ var analyticsHandler = useCallback(function () {}, []);
45
+ var linkActions = useSmartLinkActions({
46
+ url: url,
47
+ appearance: 'block',
48
+ analyticsHandler: analyticsHandler
49
+ });
50
+ var actions = useMemo(function () {
51
+ return linkActions.map(function (action) {
52
+ return {
53
+ content: action.text,
54
+ name: ActionName.CustomAction,
55
+ onClick: function onClick() {
56
+ return action.invoke();
57
+ },
58
+ testId: action.id
59
+ };
60
+ });
61
+ }, [linkActions]);
62
+
63
+ var cardComponent = function cardComponent() {
64
+ return jsx("div", {
65
+ onMouseEnter: initShowCard,
66
+ onMouseLeave: initHideCard,
67
+ css: HoverCardContainer
68
+ }, jsx(Card, {
69
+ appearance: "block",
70
+ url: url,
71
+ ui: {
72
+ hideElevation: true,
73
+ size: SmartLinkSize.Large
74
+ }
75
+ }, jsx(TitleBlock, null), jsx(SnippetBlock, null), jsx(FooterBlock, {
76
+ actions: actions
77
+ })));
78
+ };
79
+
80
+ var onClose = useCallback(function () {
81
+ return setIsOpen(false);
82
+ }, []);
83
+ return jsx(Popup, {
16
84
  testId: "hover-card",
17
- tag: "span"
18
- }, children);
85
+ isOpen: isOpen,
86
+ onClose: onClose,
87
+ placement: "bottom",
88
+ content: cardComponent,
89
+ trigger: function trigger(triggerProps) {
90
+ return jsx("span", _extends({}, triggerProps, {
91
+ onMouseEnter: initShowCard,
92
+ onMouseLeave: initHideCard
93
+ }), children);
94
+ }
95
+ });
19
96
  };
@@ -2,6 +2,5 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
 
3
3
  var _templateObject;
4
4
 
5
- import styled from '@emotion/styled';
6
- import { TooltipPrimitive } from '@atlaskit/tooltip';
7
- export var HoverCardContainer = styled(TooltipPrimitive)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: none;\n border-width: 0;\n box-sizing: content-box; /* do not set this to border-box or it will break the overflow handling */\n max-width: 500px;\n padding: 0;\n"])));
5
+ import { css } from '@emotion/core';
6
+ export var HoverCardContainer = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: none;\n border-width: 0;\n max-width: 500px;\n padding: 0;\n"])));
@@ -17,9 +17,9 @@ export var IconWrapper = styled.span(_templateObject || (_templateObject = _tagg
17
17
 
18
18
  export var EmojiWrapper = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: inline-block;\n margin-right: 2px;\n user-select: none;\n ", "\n ", "\n"])), IconOverrides, IconObjectOverrides); // The main 'wrapping' element, title of the content.
19
19
  // NB: `white-space` adds little whitespace before wrapping.
20
- // NB: `hyphens` enables hyphenation on word break.
20
+ // NB: `word-break` line breaks as soon as an overflow takes place.
21
21
 
22
- export var IconTitleWrapper = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n hyphens: auto;\n white-space: pre-wrap;\n overflow-wrap: break-word;\n word-break: break-word;\n"]))); // TODO: Replace overrides with proper AtlasKit solution.
22
+ export var IconTitleWrapper = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n white-space: pre-wrap;\n word-break: break-all;\n"]))); // TODO: Replace overrides with proper AtlasKit solution.
23
23
 
24
24
  export var LozengeWrapper = styled.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: inline-block;\n vertical-align: 1px;\n & > span {\n margin-left: 4px;\n padding: 2px 0 2px 0;\n }\n"]))); // TODO: Replace overrides with proper AtlasKit solution.
25
25
 
@@ -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<Pick<React.PropsWithChildren<import("react-intl-next").WithIntlProps<CardProps & WrappedComponentProps<"intl">>>, "children" | "data" | "appearance" | "testId" | "isSelected" | "inheritDimensions" | "onClick" | "url" | "forwardedRef" | "platform" | "isFrameVisible" | "importer" | "container" | "showActions" | "onResolve" | "embedIframeRef" | "inlinePreloaderStyle" | "ui"> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "children" | "data" | "appearance" | "testId" | "isSelected" | "inheritDimensions" | "onClick" | "analyticsContext" | "key" | "url" | "forwardedRef" | "platform" | "isFrameVisible" | "importer" | "container" | "showActions" | "onResolve" | "embedIframeRef" | "inlinePreloaderStyle" | "ui"> & React.RefAttributes<any>>;
4
+ export declare const Card: React.ForwardRefExoticComponent<Pick<Pick<React.PropsWithChildren<import("react-intl-next").WithIntlProps<CardProps & WrappedComponentProps<"intl">>>, "children" | "data" | "appearance" | "testId" | "isSelected" | "inheritDimensions" | "onClick" | "url" | "ui" | "showActions" | "onResolve" | "platform" | "forwardedRef" | "isFrameVisible" | "importer" | "container" | "embedIframeRef" | "inlinePreloaderStyle"> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "children" | "data" | "appearance" | "testId" | "isSelected" | "inheritDimensions" | "onClick" | "analyticsContext" | "key" | "url" | "ui" | "showActions" | "onResolve" | "platform" | "forwardedRef" | "isFrameVisible" | "importer" | "container" | "embedIframeRef" | "inlinePreloaderStyle"> & React.RefAttributes<any>>;
5
5
  export type { CardAppearance, CardProps, CardPlatform };
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
- export declare const HoverCardContainer: import("@emotion/styled-base").StyledComponent<Pick<import("@atlaskit/tooltip").TooltipPrimitiveProps, "children" | "style" | "testId" | "className" | "id" | "onMouseOut" | "onMouseOver" | "placement" | "truncate"> & import("react").RefAttributes<HTMLDivElement> & import("react").Attributes, Pick<Pick<import("@atlaskit/tooltip").TooltipPrimitiveProps, "children" | "style" | "testId" | "className" | "id" | "onMouseOut" | "onMouseOver" | "placement" | "truncate"> & import("react").RefAttributes<HTMLDivElement> & import("react").Attributes, "children" | "style" | "testId" | "className" | "id" | "onMouseOut" | "onMouseOver" | "placement" | "truncate">, any>;
1
+ export declare const HoverCardContainer: import("@emotion/utils").SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "17.7.12",
3
+ "version": "18.0.2",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -36,12 +36,13 @@
36
36
  "@atlaskit/logo": "^13.5.0",
37
37
  "@atlaskit/lozenge": "^11.1.0",
38
38
  "@atlaskit/media-common": "^2.11.0",
39
- "@atlaskit/media-ui": "^20.1.0",
39
+ "@atlaskit/media-ui": "^21.0.0",
40
40
  "@atlaskit/modal-dialog": "^12.2.0",
41
41
  "@atlaskit/outbound-auth-flow-client": "^3.3.0",
42
+ "@atlaskit/popup": "^1.3.0",
42
43
  "@atlaskit/spinner": "^15.1.0",
43
44
  "@atlaskit/theme": "^12.1.0",
44
- "@atlaskit/tokens": "^0.7.0",
45
+ "@atlaskit/tokens": "^0.8.0",
45
46
  "@atlaskit/tooltip": "^17.5.2",
46
47
  "@atlaskit/ufo": "^0.1.0",
47
48
  "@babel/runtime": "^7.0.0",
@@ -76,7 +77,7 @@
76
77
  "@atlaskit/inline-message": "^11.2.0",
77
78
  "@atlaskit/lozenge": "^11.1.0",
78
79
  "@atlaskit/media-integration-test-helpers": "^2.5.0",
79
- "@atlaskit/media-test-helpers": "^29.2.0",
80
+ "@atlaskit/media-test-helpers": "^29.3.0",
80
81
  "@atlaskit/page": "^12.1.0",
81
82
  "@atlaskit/radio": "^5.3.0",
82
83
  "@atlaskit/range": "^6.0.0",