@atlaskit/smart-card 26.9.1 → 26.9.3

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.
Files changed (110) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/extractors/block/index.js +10 -10
  3. package/dist/cjs/extractors/common/actions/extractPreviewAction.js +3 -3
  4. package/dist/cjs/extractors/common/byline/extractByline.js +5 -5
  5. package/dist/cjs/extractors/common/icon/extractIcon.js +4 -4
  6. package/dist/cjs/extractors/common/lozenge/extractLozenge.js +2 -2
  7. package/dist/cjs/extractors/common/lozenge/extractTaskType.js +2 -2
  8. package/dist/cjs/extractors/embed/index.js +5 -5
  9. package/dist/cjs/extractors/flexible/actions/extract-preview-action.js +5 -6
  10. package/dist/cjs/extractors/flexible/actions/extract-view-action.js +2 -2
  11. package/dist/cjs/extractors/flexible/collaboratorGroup/index.js +3 -3
  12. package/dist/cjs/extractors/flexible/extract-preview.js +2 -2
  13. package/dist/cjs/extractors/flexible/extract-priority.js +2 -2
  14. package/dist/cjs/extractors/flexible/extract-state.js +2 -2
  15. package/dist/cjs/extractors/flexible/icon/extract-jsonld-data-icon.js +2 -2
  16. package/dist/cjs/extractors/flexible/icon/extract-provider-icon.js +2 -2
  17. package/dist/cjs/extractors/flexible/icon/extract-url-icon.js +2 -2
  18. package/dist/cjs/extractors/flexible/index.js +6 -6
  19. package/dist/cjs/extractors/flexible/utils.js +4 -4
  20. package/dist/cjs/extractors/inline/index.js +4 -4
  21. package/dist/cjs/hoverCard.js +1 -1
  22. package/dist/cjs/version.json +1 -1
  23. package/dist/cjs/view/BlockCard/views/flexible/FlexibleForbiddenView.js +2 -2
  24. package/dist/cjs/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +2 -2
  25. package/dist/cjs/view/FlexibleCard/components/container/index.js +1 -0
  26. package/dist/cjs/view/FlexibleCard/utils.js +2 -2
  27. package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +7 -3
  28. package/dist/cjs/view/HoverCard/components/views/unauthorised/index.js +2 -2
  29. package/dist/cjs/view/HoverCard/index.js +18 -2
  30. package/dist/cjs/view/HoverCard/utils.js +2 -2
  31. package/dist/cjs/view/InlineCard/index.js +4 -4
  32. package/dist/es2019/extractors/block/index.js +1 -1
  33. package/dist/es2019/extractors/common/actions/extractPreviewAction.js +1 -1
  34. package/dist/es2019/extractors/common/byline/extractByline.js +1 -1
  35. package/dist/es2019/extractors/common/icon/extractIcon.js +1 -1
  36. package/dist/es2019/extractors/common/lozenge/extractLozenge.js +1 -1
  37. package/dist/es2019/extractors/common/lozenge/extractTaskType.js +1 -1
  38. package/dist/es2019/extractors/embed/index.js +1 -1
  39. package/dist/es2019/extractors/flexible/actions/extract-preview-action.js +1 -2
  40. package/dist/es2019/extractors/flexible/actions/extract-view-action.js +1 -1
  41. package/dist/es2019/extractors/flexible/collaboratorGroup/index.js +1 -1
  42. package/dist/es2019/extractors/flexible/extract-preview.js +1 -1
  43. package/dist/es2019/extractors/flexible/extract-priority.js +1 -1
  44. package/dist/es2019/extractors/flexible/extract-state.js +1 -1
  45. package/dist/es2019/extractors/flexible/icon/extract-jsonld-data-icon.js +1 -1
  46. package/dist/es2019/extractors/flexible/icon/extract-provider-icon.js +1 -1
  47. package/dist/es2019/extractors/flexible/icon/extract-url-icon.js +1 -1
  48. package/dist/es2019/extractors/flexible/index.js +1 -1
  49. package/dist/es2019/extractors/flexible/utils.js +1 -1
  50. package/dist/es2019/extractors/inline/index.js +1 -1
  51. package/dist/es2019/hoverCard.js +1 -1
  52. package/dist/es2019/version.json +1 -1
  53. package/dist/es2019/view/BlockCard/views/flexible/FlexibleForbiddenView.js +1 -1
  54. package/dist/es2019/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +1 -1
  55. package/dist/es2019/view/FlexibleCard/components/container/index.js +1 -0
  56. package/dist/es2019/view/FlexibleCard/utils.js +1 -1
  57. package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +6 -3
  58. package/dist/es2019/view/HoverCard/components/views/unauthorised/index.js +1 -1
  59. package/dist/es2019/view/HoverCard/index.js +14 -1
  60. package/dist/es2019/view/HoverCard/utils.js +1 -1
  61. package/dist/es2019/view/InlineCard/index.js +1 -1
  62. package/dist/esm/extractors/block/index.js +1 -1
  63. package/dist/esm/extractors/common/actions/extractPreviewAction.js +1 -1
  64. package/dist/esm/extractors/common/byline/extractByline.js +1 -1
  65. package/dist/esm/extractors/common/icon/extractIcon.js +1 -1
  66. package/dist/esm/extractors/common/lozenge/extractLozenge.js +1 -1
  67. package/dist/esm/extractors/common/lozenge/extractTaskType.js +1 -1
  68. package/dist/esm/extractors/embed/index.js +1 -1
  69. package/dist/esm/extractors/flexible/actions/extract-preview-action.js +1 -2
  70. package/dist/esm/extractors/flexible/actions/extract-view-action.js +1 -1
  71. package/dist/esm/extractors/flexible/collaboratorGroup/index.js +1 -1
  72. package/dist/esm/extractors/flexible/extract-preview.js +1 -1
  73. package/dist/esm/extractors/flexible/extract-priority.js +1 -1
  74. package/dist/esm/extractors/flexible/extract-state.js +1 -1
  75. package/dist/esm/extractors/flexible/icon/extract-jsonld-data-icon.js +1 -1
  76. package/dist/esm/extractors/flexible/icon/extract-provider-icon.js +1 -1
  77. package/dist/esm/extractors/flexible/icon/extract-url-icon.js +1 -1
  78. package/dist/esm/extractors/flexible/index.js +1 -1
  79. package/dist/esm/extractors/flexible/utils.js +1 -1
  80. package/dist/esm/extractors/inline/index.js +1 -1
  81. package/dist/esm/hoverCard.js +1 -1
  82. package/dist/esm/version.json +1 -1
  83. package/dist/esm/view/BlockCard/views/flexible/FlexibleForbiddenView.js +1 -1
  84. package/dist/esm/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +1 -1
  85. package/dist/esm/view/FlexibleCard/components/container/index.js +1 -0
  86. package/dist/esm/view/FlexibleCard/utils.js +1 -1
  87. package/dist/esm/view/HoverCard/components/HoverCardComponent.js +7 -3
  88. package/dist/esm/view/HoverCard/components/views/unauthorised/index.js +1 -1
  89. package/dist/esm/view/HoverCard/index.js +15 -0
  90. package/dist/esm/view/HoverCard/utils.js +1 -1
  91. package/dist/esm/view/InlineCard/index.js +1 -1
  92. package/dist/types/extractors/block/index.d.ts +1 -1
  93. package/dist/types/extractors/common/icon/extractIcon.d.ts +1 -1
  94. package/dist/types/extractors/flexible/collaboratorGroup/index.d.ts +1 -1
  95. package/dist/types/hoverCard.d.ts +1 -1
  96. package/dist/types/state/flexible-ui-context/types.d.ts +1 -1
  97. package/dist/types/view/Card/types.d.ts +2 -1
  98. package/dist/types/view/HoverCard/index.d.ts +13 -2
  99. package/dist/types/view/HoverCard/types.d.ts +14 -1
  100. package/dist/types-ts4.5/extractors/block/index.d.ts +1 -1
  101. package/dist/types-ts4.5/extractors/common/icon/extractIcon.d.ts +1 -1
  102. package/dist/types-ts4.5/extractors/flexible/collaboratorGroup/index.d.ts +1 -1
  103. package/dist/types-ts4.5/hoverCard.d.ts +1 -1
  104. package/dist/types-ts4.5/state/flexible-ui-context/types.d.ts +1 -1
  105. package/dist/types-ts4.5/view/Card/types.d.ts +2 -1
  106. package/dist/types-ts4.5/view/HoverCard/index.d.ts +13 -2
  107. package/dist/types-ts4.5/view/HoverCard/types.d.ts +14 -1
  108. package/package.json +2 -15
  109. package/report.api.md +1 -1
  110. package/tmp/api-report-tmp.d.ts +1 -1
@@ -10,7 +10,7 @@ import BlockCardFooter from '../../components/flexible/footer';
10
10
  import { ForbiddenAction } from '../../actions/flexible/ForbiddenAction';
11
11
  import Text from '../../../FlexibleCard/components/elements/text';
12
12
  import { getForbiddenJsonLd } from '../../../../utils/jsonld';
13
- import { extractProvider } from '@atlaskit/linking-common/extractors';
13
+ import { extractProvider } from '@atlaskit/link-extractors';
14
14
  import { extractRequestAccessContext } from '../../../../extractors/common/context';
15
15
 
16
16
  /**
@@ -6,7 +6,7 @@ import { AuthorizeAction } from '../../actions/flexible/AuthorizeAction';
6
6
  import BlockCardFooter from '../../components/flexible/footer';
7
7
  import { CustomBlock, TitleBlock } from '../../../FlexibleCard/components/blocks';
8
8
  import { SmartLinkStatus } from '../../../../constants';
9
- import { extractProvider } from '@atlaskit/linking-common/extractors';
9
+ import { extractProvider } from '@atlaskit/link-extractors';
10
10
  import UnauthorisedViewContent from '../../../common/UnauthorisedViewContent';
11
11
  import { css } from '@emotion/react';
12
12
  import { tokens } from '../../../../utils/token';
@@ -189,6 +189,7 @@ var Container = function Container(_ref3) {
189
189
  if (context !== null && context !== void 0 && context.url && (canShowHoverPreview || canShowAuthTooltip)) {
190
190
  return jsx(HoverCard, {
191
191
  url: context === null || context === void 0 ? void 0 : context.url,
192
+ allowEventPropagation: true,
192
193
  canOpen: hoverCardCanOpen,
193
194
  closeOnChildClick: true,
194
195
  hidePreviewButton: hideHoverCardPreviewButton
@@ -5,7 +5,7 @@ import { messages } from '../../messages';
5
5
  import extractFlexibleUiContext from '../../extractors/flexible';
6
6
  import { extractErrorIcon } from '../../extractors/flexible/icon';
7
7
  import { handleOnClick } from '../../utils';
8
- import { extractProvider } from '@atlaskit/linking-common/extractors';
8
+ import { extractProvider } from '@atlaskit/link-extractors';
9
9
  import extractProviderIcon from '../../extractors/flexible/icon/extract-provider-icon';
10
10
  export var getContextByStatus = function getContextByStatus(params) {
11
11
  var _ref = params !== null && params !== void 0 ? params : {},
@@ -30,7 +30,9 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
30
30
  _ref$hidePreviewButto = _ref.hidePreviewButton,
31
31
  hidePreviewButton = _ref$hidePreviewButto === void 0 ? false : _ref$hidePreviewButto,
32
32
  _ref$showServerAction = _ref.showServerActions,
33
- showServerActions = _ref$showServerAction === void 0 ? false : _ref$showServerAction;
33
+ showServerActions = _ref$showServerAction === void 0 ? false : _ref$showServerAction,
34
+ _ref$allowEventPropag = _ref.allowEventPropagation,
35
+ allowEventPropagation = _ref$allowEventPropag === void 0 ? false : _ref$allowEventPropag;
34
36
  var _React$useState = React.useState(false),
35
37
  _React$useState2 = _slicedToArray(_React$useState, 2),
36
38
  isOpen = _React$useState2[0],
@@ -154,11 +156,13 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
154
156
 
155
157
  // Stop hover preview content to propagate event to parent.
156
158
  var onChildClick = useCallback(function (e) {
157
- e.stopPropagation();
159
+ if (!allowEventPropagation) {
160
+ e.stopPropagation();
161
+ }
158
162
  if (closeOnChildClick) {
159
163
  hideCard();
160
164
  }
161
- }, [closeOnChildClick, hideCard]);
165
+ }, [allowEventPropagation, closeOnChildClick, hideCard]);
162
166
  var content = useCallback(function (_ref2) {
163
167
  var update = _ref2.update;
164
168
  var hoverCardContentProps = {
@@ -4,7 +4,7 @@ import { FormattedMessage } from 'react-intl-next';
4
4
  import FlexibleCard from '../../../../FlexibleCard';
5
5
  import { messages } from '../../../../../messages';
6
6
  import { CustomBlock } from '../../../../FlexibleCard/components/blocks';
7
- import { extractProvider } from '@atlaskit/linking-common/extractors';
7
+ import { extractProvider } from '@atlaskit/link-extractors';
8
8
  import { connectButtonStyles, mainTextStyles, titleBlockStyles } from './styled';
9
9
  import UnauthorisedViewContent from '../../../../common/UnauthorisedViewContent';
10
10
  import ActionGroup from '../../../../FlexibleCard/components/blocks/action-group';
@@ -25,6 +25,21 @@ var HoverCardWithErrorBoundary = function HoverCardWithErrorBoundary(props) {
25
25
  }, jsx(HoverCardComponent, props, children));
26
26
  };
27
27
  var HoverCardWithoutAnalyticsContext = withAnalyticsEvents()(HoverCardWithErrorBoundary);
28
+
29
+ /**
30
+ * A hover preview component using within smart links,
31
+ * e.g. inline card's hover preview and auth tooltip, flexible card's hover preview.
32
+ *
33
+ * This component contains additional props that smart-card internal components
34
+ * use to configure hover preview behaviour.
35
+ */
28
36
  export var HoverCard = function HoverCard(props) {
29
37
  return jsx(HoverCardWithoutAnalyticsContext, props);
38
+ };
39
+
40
+ /**
41
+ * A standalone hover preview component
42
+ */
43
+ export var StandaloneHoverCard = function StandaloneHoverCard(props) {
44
+ return jsx(HoverCard, props);
30
45
  };
@@ -1,5 +1,5 @@
1
1
  import { ElementName } from '../../constants';
2
- import { extractType } from '@atlaskit/linking-common/extractors';
2
+ import { extractType } from '@atlaskit/link-extractors';
3
3
  import { extractOwnedBy } from '../../extractors/flexible/utils';
4
4
  export var getSimulatedMetadata = function getSimulatedMetadata() {
5
5
  var extensionKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
@@ -9,7 +9,7 @@ import { InlineCardForbiddenView } from './ForbiddenView';
9
9
  import { InlineCardResolvedView } from './ResolvedView';
10
10
  import { InlineCardResolvingView } from './ResolvingView';
11
11
  import { InlineCardUnauthorizedView } from './UnauthorisedView';
12
- import { extractProvider } from '@atlaskit/linking-common/extractors';
12
+ import { extractProvider } from '@atlaskit/link-extractors';
13
13
  import { useFeatureFlag } from '@atlaskit/link-provider';
14
14
  import { getExtensionKey } from '../../state/helpers';
15
15
  export { InlineCardResolvedView, InlineCardResolvingView, InlineCardErroredView, InlineCardForbiddenView, InlineCardUnauthorizedView };
@@ -1,6 +1,6 @@
1
1
  import { JsonLd } from 'json-ld-types';
2
2
  import { CardProviderRenderers } from '@atlaskit/link-provider';
3
- import { LinkPerson } from '@atlaskit/linking-common/extractors';
3
+ import { LinkPerson } from '@atlaskit/link-extractors';
4
4
  import { ExtractBlockOpts } from './types';
5
5
  import { CardPlatform } from '../../view/Card';
6
6
  import { BlockCardResolvedViewProps } from '../../view/BlockCard';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { JsonLd } from 'json-ld-types';
3
- import { LinkProvider } from '@atlaskit/linking-common/extractors';
3
+ import { LinkProvider } from '@atlaskit/link-extractors';
4
4
  import { LinkTaskType } from '../lozenge/extractTaskType';
5
5
  export type IconPriority = 'type' | 'provider';
6
6
  export interface IconOpts {
@@ -1,4 +1,4 @@
1
1
  import { JsonLd } from 'json-ld-types';
2
- import { LinkPerson } from '@atlaskit/linking-common/extractors';
2
+ import { LinkPerson } from '@atlaskit/link-extractors';
3
3
  export type LinkTypeUpdatedBy = JsonLd.Data.Document | JsonLd.Data.Project | JsonLd.Data.SourceCodePullRequest | JsonLd.Data.SourceCodeReference | JsonLd.Data.SourceCodeRepository | JsonLd.Data.Task;
4
4
  export declare const extractPersonsUpdatedBy: (jsonLd: LinkTypeUpdatedBy) => LinkPerson[] | undefined;
@@ -1,2 +1,2 @@
1
- export { HoverCard } from './view/HoverCard';
1
+ export { StandaloneHoverCard as HoverCard } from './view/HoverCard';
2
2
  export type { HoverCardProps } from './view/HoverCard/types';
@@ -1,5 +1,5 @@
1
1
  import { LinkLozenge } from '../../extractors/common/lozenge/types';
2
- import { LinkPerson } from '@atlaskit/linking-common/extractors';
2
+ import { LinkPerson } from '@atlaskit/link-extractors';
3
3
  import { IconType, MediaType } from '../../constants';
4
4
  /**
5
5
  * This provides the data that will be used by Smart Links Flexible UI to populate it's
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
- import { CardAppearance, CardPlatform } from '@atlaskit/linking-common';
3
+ import { CardAppearance } from '@atlaskit/linking-common';
4
+ import { CardPlatform } from '@atlaskit/link-extractors';
4
5
  import { AnalyticsFacade } from '../../state/analytics';
5
6
  import { FlexibleUiOptions } from '../FlexibleCard/types';
6
7
  import { InlinePreloaderStyle, OnErrorCallback } from '../types';
@@ -1,3 +1,14 @@
1
1
  import { jsx } from '@emotion/react';
2
- import { HoverCardProps } from './types';
3
- export declare const HoverCard: (props: HoverCardProps) => jsx.JSX.Element;
2
+ import { HoverCardInternalProps, HoverCardProps } from './types';
3
+ /**
4
+ * A hover preview component using within smart links,
5
+ * e.g. inline card's hover preview and auth tooltip, flexible card's hover preview.
6
+ *
7
+ * This component contains additional props that smart-card internal components
8
+ * use to configure hover preview behaviour.
9
+ */
10
+ export declare const HoverCard: (props: HoverCardProps & HoverCardInternalProps) => jsx.JSX.Element;
11
+ /**
12
+ * A standalone hover preview component
13
+ */
14
+ export declare const StandaloneHoverCard: (props: HoverCardProps) => jsx.JSX.Element;
@@ -43,7 +43,20 @@ export interface HoverCardProps extends WithAnalyticsEventsProps {
43
43
  */
44
44
  showServerActions?: boolean;
45
45
  }
46
- export interface HoverCardComponentProps extends HoverCardProps {
46
+ /**
47
+ * An internal props that internal smart-card components can use to configure
48
+ * hover preview behaviour. The prop contains here are suitable for unsafe
49
+ * or experiment props that will not be or are yet ready to be available on
50
+ * standalone hover card.
51
+ */
52
+ export interface HoverCardInternalProps {
53
+ /**
54
+ * Allow click event to bubble up from hover preview trigger component.
55
+ * @see EDM-7187 for further details
56
+ */
57
+ allowEventPropagation?: boolean;
58
+ }
59
+ export interface HoverCardComponentProps extends HoverCardProps, HoverCardInternalProps {
47
60
  analyticsHandler?: AnalyticsHandler;
48
61
  analytics?: AnalyticsFacade;
49
62
  canOpen?: boolean;
@@ -1,6 +1,6 @@
1
1
  import { JsonLd } from 'json-ld-types';
2
2
  import { CardProviderRenderers } from '@atlaskit/link-provider';
3
- import { LinkPerson } from '@atlaskit/linking-common/extractors';
3
+ import { LinkPerson } from '@atlaskit/link-extractors';
4
4
  import { ExtractBlockOpts } from './types';
5
5
  import { CardPlatform } from '../../view/Card';
6
6
  import { BlockCardResolvedViewProps } from '../../view/BlockCard';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { JsonLd } from 'json-ld-types';
3
- import { LinkProvider } from '@atlaskit/linking-common/extractors';
3
+ import { LinkProvider } from '@atlaskit/link-extractors';
4
4
  import { LinkTaskType } from '../lozenge/extractTaskType';
5
5
  export type IconPriority = 'type' | 'provider';
6
6
  export interface IconOpts {
@@ -1,4 +1,4 @@
1
1
  import { JsonLd } from 'json-ld-types';
2
- import { LinkPerson } from '@atlaskit/linking-common/extractors';
2
+ import { LinkPerson } from '@atlaskit/link-extractors';
3
3
  export type LinkTypeUpdatedBy = JsonLd.Data.Document | JsonLd.Data.Project | JsonLd.Data.SourceCodePullRequest | JsonLd.Data.SourceCodeReference | JsonLd.Data.SourceCodeRepository | JsonLd.Data.Task;
4
4
  export declare const extractPersonsUpdatedBy: (jsonLd: LinkTypeUpdatedBy) => LinkPerson[] | undefined;
@@ -1,2 +1,2 @@
1
- export { HoverCard } from './view/HoverCard';
1
+ export { StandaloneHoverCard as HoverCard } from './view/HoverCard';
2
2
  export type { HoverCardProps } from './view/HoverCard/types';
@@ -1,5 +1,5 @@
1
1
  import { LinkLozenge } from '../../extractors/common/lozenge/types';
2
- import { LinkPerson } from '@atlaskit/linking-common/extractors';
2
+ import { LinkPerson } from '@atlaskit/link-extractors';
3
3
  import { IconType, MediaType } from '../../constants';
4
4
  /**
5
5
  * This provides the data that will be used by Smart Links Flexible UI to populate it's
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
- import { CardAppearance, CardPlatform } from '@atlaskit/linking-common';
3
+ import { CardAppearance } from '@atlaskit/linking-common';
4
+ import { CardPlatform } from '@atlaskit/link-extractors';
4
5
  import { AnalyticsFacade } from '../../state/analytics';
5
6
  import { FlexibleUiOptions } from '../FlexibleCard/types';
6
7
  import { InlinePreloaderStyle, OnErrorCallback } from '../types';
@@ -1,3 +1,14 @@
1
1
  import { jsx } from '@emotion/react';
2
- import { HoverCardProps } from './types';
3
- export declare const HoverCard: (props: HoverCardProps) => jsx.JSX.Element;
2
+ import { HoverCardInternalProps, HoverCardProps } from './types';
3
+ /**
4
+ * A hover preview component using within smart links,
5
+ * e.g. inline card's hover preview and auth tooltip, flexible card's hover preview.
6
+ *
7
+ * This component contains additional props that smart-card internal components
8
+ * use to configure hover preview behaviour.
9
+ */
10
+ export declare const HoverCard: (props: HoverCardProps & HoverCardInternalProps) => jsx.JSX.Element;
11
+ /**
12
+ * A standalone hover preview component
13
+ */
14
+ export declare const StandaloneHoverCard: (props: HoverCardProps) => jsx.JSX.Element;
@@ -43,7 +43,20 @@ export interface HoverCardProps extends WithAnalyticsEventsProps {
43
43
  */
44
44
  showServerActions?: boolean;
45
45
  }
46
- export interface HoverCardComponentProps extends HoverCardProps {
46
+ /**
47
+ * An internal props that internal smart-card components can use to configure
48
+ * hover preview behaviour. The prop contains here are suitable for unsafe
49
+ * or experiment props that will not be or are yet ready to be available on
50
+ * standalone hover card.
51
+ */
52
+ export interface HoverCardInternalProps {
53
+ /**
54
+ * Allow click event to bubble up from hover preview trigger component.
55
+ * @see EDM-7187 for further details
56
+ */
57
+ allowEventPropagation?: boolean;
58
+ }
59
+ export interface HoverCardComponentProps extends HoverCardProps, HoverCardInternalProps {
47
60
  analyticsHandler?: AnalyticsHandler;
48
61
  analytics?: AnalyticsFacade;
49
62
  canOpen?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "26.9.1",
3
+ "version": "26.9.3",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -44,6 +44,7 @@
44
44
  "@atlaskit/in-product-testing": "^0.2.0",
45
45
  "@atlaskit/link-analytics": "^8.2.0",
46
46
  "@atlaskit/link-client-extension": "^1.5.0",
47
+ "@atlaskit/link-extractors": "^1.1.0",
47
48
  "@atlaskit/linking-common": "^3.2.0",
48
49
  "@atlaskit/linking-types": "^8.1.0",
49
50
  "@atlaskit/logo": "^13.14.0",
@@ -79,25 +80,11 @@
79
80
  },
80
81
  "devDependencies": {
81
82
  "@atlaskit/avatar": "^21.3.0",
82
- "@atlaskit/checkbox": "^12.6.0",
83
- "@atlaskit/code": "^14.6.0",
84
83
  "@atlaskit/css-reset": "^6.5.0",
85
- "@atlaskit/docs": "*",
86
- "@atlaskit/form": "^8.11.0",
87
- "@atlaskit/inline-message": "^11.5.0",
88
84
  "@atlaskit/link-test-helpers": "^4.1.0",
89
85
  "@atlaskit/lozenge": "^11.4.0",
90
86
  "@atlaskit/media-integration-test-helpers": "^3.0.0",
91
87
  "@atlaskit/media-test-helpers": "^33.0.0",
92
- "@atlaskit/page": "^12.3.0",
93
- "@atlaskit/radio": "^5.6.0",
94
- "@atlaskit/range": "^7.1.0",
95
- "@atlaskit/section-message": "^6.4.0",
96
- "@atlaskit/select": "^16.5.0",
97
- "@atlaskit/table-tree": "^9.6.0",
98
- "@atlaskit/tabs": "^13.4.0",
99
- "@atlaskit/textfield": "^5.5.0",
100
- "@atlaskit/toggle": "^12.6.0",
101
88
  "@atlaskit/visual-regression": "*",
102
89
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
103
90
  "@atlassian/feature-flags-test-utils": "^0.1.1",
package/report.api.md CHANGED
@@ -23,7 +23,7 @@ import { BlockCardAdf } from '@atlaskit/linking-common';
23
23
  import { CardAdf } from '@atlaskit/linking-common';
24
24
  import { CardAppearance } from '@atlaskit/linking-common';
25
25
  import { CardContext } from '@atlaskit/link-provider';
26
- import { CardPlatform } from '@atlaskit/linking-common';
26
+ import { CardPlatform } from '@atlaskit/link-extractors';
27
27
  import { CardType } from '@atlaskit/linking-common';
28
28
  import { CardClient as Client } from '@atlaskit/link-provider';
29
29
  import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
@@ -12,7 +12,7 @@ import { BlockCardAdf } from '@atlaskit/linking-common';
12
12
  import { CardAdf } from '@atlaskit/linking-common';
13
13
  import { CardAppearance } from '@atlaskit/linking-common';
14
14
  import { CardContext } from '@atlaskit/link-provider';
15
- import { CardPlatform } from '@atlaskit/linking-common';
15
+ import { CardPlatform } from '@atlaskit/link-extractors';
16
16
  import { CardType } from '@atlaskit/linking-common';
17
17
  import { CardClient as Client } from '@atlaskit/link-provider';
18
18
  import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';