@atlaskit/smart-card 27.5.2 → 27.5.4

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 (115) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/CONTRIBUTING.md +1 -1
  3. package/dist/cjs/extractors/common/icon/extractIcon.js +1 -1
  4. package/dist/cjs/extractors/flexible/actions/extract-automation-action.js +1 -1
  5. package/dist/cjs/messages.js +2 -2
  6. package/dist/cjs/utils/analytics/analytics.js +1 -1
  7. package/dist/cjs/view/EmbedCard/components/styled.js +2 -2
  8. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.js +1 -1
  9. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/main.js +5 -5
  10. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/utils/index.js +2 -2
  11. package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +1 -1
  12. package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +1 -1
  13. package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +1 -1
  14. package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -1
  15. package/dist/cjs/view/FlexibleCard/components/container/index.js +1 -1
  16. package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +1 -1
  17. package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +1 -1
  18. package/dist/cjs/view/FlexibleCard/components/utils.js +1 -1
  19. package/dist/cjs/view/HoverCard/components/views/resolved/styled.js +1 -1
  20. package/dist/cjs/view/HoverCard/styled.js +2 -2
  21. package/dist/cjs/view/LinkUrl/index.js +1 -1
  22. package/dist/cjs/view/RelatedLinksModal/components/EmptyState.js +2 -2
  23. package/dist/cjs/view/RelatedLinksModal/views/resolving/index.js +27 -0
  24. package/dist/es2019/extractors/common/icon/extractIcon.js +1 -1
  25. package/dist/es2019/extractors/flexible/actions/extract-automation-action.js +1 -1
  26. package/dist/es2019/messages.js +2 -2
  27. package/dist/es2019/utils/analytics/analytics.js +1 -1
  28. package/dist/es2019/view/EmbedCard/components/styled.js +22 -22
  29. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.js +1 -1
  30. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/main.js +5 -5
  31. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/utils/index.js +2 -2
  32. package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +16 -16
  33. package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +13 -13
  34. package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +13 -13
  35. package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +9 -9
  36. package/dist/es2019/view/FlexibleCard/components/container/index.js +15 -15
  37. package/dist/es2019/view/FlexibleCard/components/elements/avatar-group/index.js +9 -9
  38. package/dist/es2019/view/FlexibleCard/components/elements/badge/index.js +8 -8
  39. package/dist/es2019/view/FlexibleCard/components/utils.js +9 -9
  40. package/dist/es2019/view/HoverCard/components/views/resolved/styled.js +21 -21
  41. package/dist/es2019/view/HoverCard/styled.js +23 -23
  42. package/dist/es2019/view/LinkUrl/index.js +1 -1
  43. package/dist/es2019/view/RelatedLinksModal/components/EmptyState.js +2 -2
  44. package/dist/es2019/view/RelatedLinksModal/views/errored/index.js +2 -2
  45. package/dist/es2019/view/RelatedLinksModal/views/resolving/index.js +18 -0
  46. package/dist/es2019/view/RelatedLinksModal/views/unavailable/index.js +1 -1
  47. package/dist/esm/extractors/common/icon/extractIcon.js +1 -1
  48. package/dist/esm/extractors/flexible/actions/extract-automation-action.js +1 -1
  49. package/dist/esm/messages.js +2 -2
  50. package/dist/esm/utils/analytics/analytics.js +1 -1
  51. package/dist/esm/view/EmbedCard/components/styled.js +2 -2
  52. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.js +1 -1
  53. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/main.js +5 -5
  54. package/dist/esm/view/FlexibleCard/components/actions/automation-action/utils/index.js +2 -2
  55. package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +1 -1
  56. package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +1 -1
  57. package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +1 -1
  58. package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -1
  59. package/dist/esm/view/FlexibleCard/components/container/index.js +1 -1
  60. package/dist/esm/view/FlexibleCard/components/elements/avatar-group/index.js +1 -1
  61. package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +1 -1
  62. package/dist/esm/view/FlexibleCard/components/utils.js +1 -1
  63. package/dist/esm/view/HoverCard/components/views/resolved/styled.js +1 -1
  64. package/dist/esm/view/HoverCard/styled.js +2 -2
  65. package/dist/esm/view/LinkUrl/index.js +1 -1
  66. package/dist/esm/view/RelatedLinksModal/components/EmptyState.js +2 -2
  67. package/dist/esm/view/RelatedLinksModal/views/errored/index.js +2 -2
  68. package/dist/esm/view/RelatedLinksModal/views/resolving/index.js +20 -0
  69. package/dist/esm/view/RelatedLinksModal/views/unavailable/index.js +1 -1
  70. package/dist/types/extractors/flexible/actions/extract-automation-action.d.ts +2 -2
  71. package/dist/types/index.d.ts +2 -2
  72. package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +1 -1
  73. package/dist/types/state/hooks/use-invoke-client-action/index.d.ts +1 -1
  74. package/dist/types/state/hooks/useSmartLink.d.ts +1 -1
  75. package/dist/types/state/hooks-external/useSmartLinkReload.d.ts +1 -1
  76. package/dist/types/state/index.d.ts +1 -1
  77. package/dist/types/state/modal/index.d.ts +1 -1
  78. package/dist/types/types.d.ts +1 -1
  79. package/dist/types/utils/mocks.d.ts +1 -1
  80. package/dist/types/view/BlockCard/components/Action.d.ts +1 -1
  81. package/dist/types/view/BlockCard/components/ContentFooter.d.ts +1 -1
  82. package/dist/types/view/BlockCard/components/ContentHeader.d.ts +1 -1
  83. package/dist/types/view/BlockCard/components/Name.d.ts +1 -1
  84. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/index.d.ts +1 -1
  85. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/paragraph-prompt/main.d.ts +1 -1
  86. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/index.d.ts +1 -1
  87. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/footer/main.d.ts +1 -1
  88. package/dist/types/view/FlexibleCard/components/actions/automation-action/utils/index.d.ts +1 -1
  89. package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.d.ts +1 -1
  90. package/dist/types/view/RelatedLinksModal/components/EmptyState.d.ts +1 -1
  91. package/dist/types/view/RelatedLinksModal/views/resolving/index.d.ts +3 -0
  92. package/dist/types-ts4.5/extractors/flexible/actions/extract-automation-action.d.ts +2 -2
  93. package/dist/types-ts4.5/index.d.ts +2 -2
  94. package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +1 -1
  95. package/dist/types-ts4.5/state/hooks/use-invoke-client-action/index.d.ts +1 -1
  96. package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +1 -1
  97. package/dist/types-ts4.5/state/hooks-external/useSmartLinkReload.d.ts +1 -1
  98. package/dist/types-ts4.5/state/index.d.ts +1 -1
  99. package/dist/types-ts4.5/state/modal/index.d.ts +1 -1
  100. package/dist/types-ts4.5/types.d.ts +1 -1
  101. package/dist/types-ts4.5/utils/mocks.d.ts +1 -1
  102. package/dist/types-ts4.5/view/BlockCard/components/Action.d.ts +1 -1
  103. package/dist/types-ts4.5/view/BlockCard/components/ContentFooter.d.ts +1 -1
  104. package/dist/types-ts4.5/view/BlockCard/components/ContentHeader.d.ts +1 -1
  105. package/dist/types-ts4.5/view/BlockCard/components/Name.d.ts +1 -1
  106. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/index.d.ts +1 -1
  107. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/paragraph-prompt/main.d.ts +1 -1
  108. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/index.d.ts +1 -1
  109. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/footer/main.d.ts +1 -1
  110. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/utils/index.d.ts +1 -1
  111. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.d.ts +1 -1
  112. package/dist/types-ts4.5/view/RelatedLinksModal/components/EmptyState.d.ts +1 -1
  113. package/dist/types-ts4.5/view/RelatedLinksModal/views/resolving/index.d.ts +3 -0
  114. package/package.json +6 -6
  115. package/report.api.md +775 -806
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { Box, xcss } from '@atlaskit/primitives';
3
+ import Spinner from '@atlaskit/spinner';
4
+ var style = xcss({
5
+ alignItems: 'center',
6
+ display: 'flex',
7
+ flexDirection: 'column',
8
+ height: '100%',
9
+ justifyContent: 'center'
10
+ });
11
+ var RelatedLinksResolvingView = function RelatedLinksResolvingView() {
12
+ return /*#__PURE__*/React.createElement(Box, {
13
+ xcss: style,
14
+ testId: "related-links-resolving-view"
15
+ }, /*#__PURE__*/React.createElement(Spinner, {
16
+ size: 'large',
17
+ testId: "related-links-resolving-view-spinner"
18
+ }));
19
+ };
20
+ export default RelatedLinksResolvingView;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { FormattedMessage, useIntl } from "react-intl-next";
2
+ import { FormattedMessage, useIntl } from 'react-intl-next';
3
3
  import { messages } from '../../../../messages';
4
4
  import { EmptyState } from '../../components/EmptyState';
5
5
  import { UnavailableSVG } from './unavailable-svg';
@@ -1,3 +1,3 @@
1
- import type { JsonLd } from "json-ld-types";
2
- import { type AutomationActionData } from "../../../state/flexible-ui-context/types";
1
+ import type { JsonLd } from 'json-ld-types';
2
+ import { type AutomationActionData } from '../../../state/flexible-ui-context/types';
3
3
  export declare const extractAutomationAction: (response: JsonLd.Response) => AutomationActionData | undefined;
@@ -1,6 +1,6 @@
1
1
  import { type JsonLd } from 'json-ld-types';
2
2
  export type ResolveResponse = JsonLd.Response;
3
- export { SmartCardProvider as Provider, SmartCardContext, useSmartLinkAnalytics, } from './state';
3
+ export { SmartCardProvider as Provider, SmartCardContext, useSmartLinkAnalytics } from './state';
4
4
  export type { ProviderProps, CardType } from './state';
5
5
  export type { CardAdf, InlineCardAdf, BlockCardAdf, EmbedCardAdf, DatasourceAdf, DatasourceAdfView, } from '@atlaskit/linking-common';
6
6
  export { APIError } from '@atlaskit/linking-common';
@@ -21,4 +21,4 @@ export { MetadataBlock, PreviewBlock, SnippetBlock, TitleBlock, FooterBlock, Cus
21
21
  export type { ActionItem, ElementItem, OnActionMenuOpenChangeOptions, } from './view/FlexibleCard/components/blocks/types';
22
22
  export type { AnalyticsAction, AnalyticsActionSubject, AnalyticsPayload, AnalyticsHandler, } from './utils/types';
23
23
  /** @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-661 Internal documentation for deprecation (no external access)} */
24
- export { editorCardProvider, EditorCardProvider, } from '@atlaskit/link-provider';
24
+ export { editorCardProvider, EditorCardProvider } from '@atlaskit/link-provider';
@@ -241,7 +241,7 @@ export declare const useSmartLinkAnalytics: (url: string, _dispatchAnalytics?: A
241
241
  * @param extensionKey The extensionKey of the Smart Link resolver invoked.
242
242
  * @returns
243
243
  */
244
- appAccountAuthStarted: ({ extensionKey, location, }: TrackAppAccountConnectedProps) => void;
244
+ appAccountAuthStarted: ({ extensionKey, location }: TrackAppAccountConnectedProps) => void;
245
245
  /**
246
246
  * Removed in EDM-5153: This is an even from an experiment.
247
247
  * @deprecated
@@ -2,5 +2,5 @@ import type { InvokeClientActionProps, UseInvokeClientActionProps } from './type
2
2
  /**
3
3
  * Invoke client action such as preview, download and open link
4
4
  */
5
- declare const useInvokeClientAction: ({ analytics }: UseInvokeClientActionProps) => ({ actionType, actionFn, extensionKey, display, }: InvokeClientActionProps) => Promise<void>;
5
+ declare const useInvokeClientAction: ({ analytics }: UseInvokeClientActionProps) => ({ actionType, actionFn, extensionKey, display }: InvokeClientActionProps) => Promise<void>;
6
6
  export default useInvokeClientAction;
@@ -50,7 +50,7 @@ dispatchAnalytics?: AnalyticsHandler): {
50
50
  };
51
51
  track: {
52
52
  appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
53
- appAccountAuthStarted: ({ extensionKey, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
53
+ appAccountAuthStarted: ({ extensionKey, location }: import("../../utils/analytics/types").CommonEventProps) => void;
54
54
  linkUpdated: () => void;
55
55
  smartLinkQuickActionStarted: (props: {
56
56
  smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("../../utils/analytics/analytics").TrackQuickActionType;
@@ -19,4 +19,4 @@ export interface UseSmartLinkReloadOpts {
19
19
  * @param
20
20
  * @returns
21
21
  */
22
- export declare function useSmartLinkReload({ url, analyticsHandler, }: UseSmartLinkReloadOpts): () => void;
22
+ export declare function useSmartLinkReload({ url, analyticsHandler }: UseSmartLinkReloadOpts): () => void;
@@ -1,4 +1,4 @@
1
- export { SmartCardContext, SmartCardProvider, useSmartLinkContext, } from '@atlaskit/link-provider';
1
+ export { SmartCardContext, SmartCardProvider, useSmartLinkContext } from '@atlaskit/link-provider';
2
2
  export type { CardContext, ProviderProps } from '@atlaskit/link-provider';
3
3
  export type { CardType } from '@atlaskit/linking-common';
4
4
  export { useSmartLink, usePrefetch } from './hooks';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { type SmartLinkModalAPI, type SmartLinkModalProviderProps } from './types';
3
3
  export declare const SmartLinkModalContext: React.Context<SmartLinkModalAPI>;
4
- export declare const SmartLinkModalProvider: ({ children, }: SmartLinkModalProviderProps) => JSX.Element;
4
+ export declare const SmartLinkModalProvider: ({ children }: SmartLinkModalProviderProps) => JSX.Element;
5
5
  /**
6
6
  * Open (lazy load) modal
7
7
  *
@@ -6,7 +6,7 @@ import { type AccessContext } from './view/types';
6
6
  import { type ActionProps } from './view/BlockCard/components/Action';
7
7
  export type ResolveResponse = JsonLd.Response;
8
8
  export type { ProviderProps, CardType } from './state';
9
- export type { CardProps, CardAppearance, CardPlatform, } from './view/Card/types';
9
+ export type { CardProps, CardAppearance, CardPlatform } from './view/Card/types';
10
10
  export interface RequestAccessContextProps extends AccessContext {
11
11
  action?: ActionProps;
12
12
  callToActionMessageKey?: RequestAccessMessageKey;
@@ -121,7 +121,7 @@ export declare const mockAnalytics: {
121
121
  };
122
122
  track: {
123
123
  appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").CommonEventProps) => void;
124
- appAccountAuthStarted: ({ extensionKey, location, }: import("./analytics/types").CommonEventProps) => void;
124
+ appAccountAuthStarted: ({ extensionKey, location }: import("./analytics/types").CommonEventProps) => void;
125
125
  linkUpdated: () => void;
126
126
  smartLinkQuickActionStarted: (props: {
127
127
  smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("./analytics/analytics").TrackQuickActionType;
@@ -10,4 +10,4 @@ export interface ActionProps {
10
10
  }
11
11
  export type ActionState = 'init' | 'loading' | 'success' | 'failure';
12
12
  export declare const spinnerDelay = 1000;
13
- export declare const Action: ({ promise, text, buttonAppearance, id, }: ActionProps) => jsx.JSX.Element;
13
+ export declare const Action: ({ promise, text, buttonAppearance, id }: ActionProps) => jsx.JSX.Element;
@@ -6,4 +6,4 @@ export interface ContentFooterProps {
6
6
  hasSpaceBetween?: boolean;
7
7
  }
8
8
  export declare const contentFooterClassName = "smart-link-content-footer";
9
- export declare const ContentFooter: ({ children, hasSpaceBetween, }: ContentFooterProps) => jsx.JSX.Element;
9
+ export declare const ContentFooter: ({ children, hasSpaceBetween }: ContentFooterProps) => jsx.JSX.Element;
@@ -13,4 +13,4 @@ export interface ContentHeaderProps {
13
13
  * Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
14
14
  */
15
15
  export declare const blockCardContentHeaderClassName = "block-card-content-header";
16
- export declare const ContentHeader: ({ onClick, link, children, }: ContentHeaderProps) => jsx.JSX.Element;
16
+ export declare const ContentHeader: ({ onClick, link, children }: ContentHeaderProps) => jsx.JSX.Element;
@@ -15,4 +15,4 @@ export interface NameProps {
15
15
  * Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
16
16
  */
17
17
  export declare const blockCardContentHeaderNameClassName = "block-card-content-header-name";
18
- export declare const Name: ({ name, isLeftPadded, testId, textColor, }: NameProps) => jsx.JSX.Element;
18
+ export declare const Name: ({ name, isLeftPadded, testId, textColor }: NameProps) => jsx.JSX.Element;
@@ -1,3 +1,3 @@
1
- export { searchManuallyTriggeredRules, invokeManuallyTriggeredRule, } from './services';
1
+ export { searchManuallyTriggeredRules, invokeManuallyTriggeredRule } from './services';
2
2
  export type { RuleScope, UserInputType, UserInputPrompt, UserInputValue, UserInputs, ManualRule, ManualRulesById, InvocationResult, InvocationResponse, InvokeManualRulePayload, GetManualRulesResponse, ManualRuleInvoker, } from './common/types';
3
3
  export { useManualRules, ManualRulesContainer, type ManualRulesContainerProps, type ManualRulesData, } from './main';
@@ -3,5 +3,5 @@ import type { UserInputParagraphPrompt } from '../../common/types';
3
3
  interface ParagraphInputPromptProps {
4
4
  userInputPrompt: UserInputParagraphPrompt;
5
5
  }
6
- declare const ParagraphInputPrompt: ({ userInputPrompt, }: ParagraphInputPromptProps) => JSX.Element;
6
+ declare const ParagraphInputPrompt: ({ userInputPrompt }: ParagraphInputPromptProps) => JSX.Element;
7
7
  export default ParagraphInputPrompt;
@@ -1 +1 @@
1
- export { AutomationMenuContextContainer, useAutomationMenu, type RuleExecutionState, } from './main';
1
+ export { AutomationMenuContextContainer, useAutomationMenu, type RuleExecutionState } from './main';
@@ -4,5 +4,5 @@ type AutomationModalFooterProps = {
4
4
  selectedRule: ManualRule | undefined;
5
5
  onClose: () => void;
6
6
  };
7
- export declare const AutomationModalFooter: ({ selectedRule, onClose, }: AutomationModalFooterProps) => JSX.Element | null;
7
+ export declare const AutomationModalFooter: ({ selectedRule, onClose }: AutomationModalFooterProps) => JSX.Element | null;
8
8
  export {};
@@ -1,4 +1,4 @@
1
- import { type MessageDescriptor } from "react-intl-next";
1
+ import { type MessageDescriptor } from 'react-intl-next';
2
2
  type ModalContent = {
3
3
  modalTitle: MessageDescriptor;
4
4
  modalDescription: MessageDescriptor;
@@ -8,5 +8,5 @@ export type FeatureDiscoveryProps = {
8
8
  * This implementation must be removed once the experiment is completed.
9
9
  * Cleanup on https://product-fabric.atlassian.net/browse/EDM-9649
10
10
  */
11
- declare const FeatureDiscovery: ({ children, testId, }: FeatureDiscoveryProps) => JSX.Element;
11
+ declare const FeatureDiscovery: ({ children, testId }: FeatureDiscoveryProps) => JSX.Element;
12
12
  export default FeatureDiscovery;
@@ -5,5 +5,5 @@ type EmptyStateProps = {
5
5
  description?: React.ReactNode;
6
6
  renderImage?: () => React.ReactNode;
7
7
  };
8
- export declare const EmptyState: ({ testId, header, description, renderImage, }: EmptyStateProps) => JSX.Element;
8
+ export declare const EmptyState: ({ testId, header, description, renderImage }: EmptyStateProps) => JSX.Element;
9
9
  export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const RelatedLinksResolvingView: () => JSX.Element;
3
+ export default RelatedLinksResolvingView;
@@ -1,3 +1,3 @@
1
- import type { JsonLd } from "json-ld-types";
2
- import { type AutomationActionData } from "../../../state/flexible-ui-context/types";
1
+ import type { JsonLd } from 'json-ld-types';
2
+ import { type AutomationActionData } from '../../../state/flexible-ui-context/types';
3
3
  export declare const extractAutomationAction: (response: JsonLd.Response) => AutomationActionData | undefined;
@@ -1,6 +1,6 @@
1
1
  import { type JsonLd } from 'json-ld-types';
2
2
  export type ResolveResponse = JsonLd.Response;
3
- export { SmartCardProvider as Provider, SmartCardContext, useSmartLinkAnalytics, } from './state';
3
+ export { SmartCardProvider as Provider, SmartCardContext, useSmartLinkAnalytics } from './state';
4
4
  export type { ProviderProps, CardType } from './state';
5
5
  export type { CardAdf, InlineCardAdf, BlockCardAdf, EmbedCardAdf, DatasourceAdf, DatasourceAdfView, } from '@atlaskit/linking-common';
6
6
  export { APIError } from '@atlaskit/linking-common';
@@ -21,4 +21,4 @@ export { MetadataBlock, PreviewBlock, SnippetBlock, TitleBlock, FooterBlock, Cus
21
21
  export type { ActionItem, ElementItem, OnActionMenuOpenChangeOptions, } from './view/FlexibleCard/components/blocks/types';
22
22
  export type { AnalyticsAction, AnalyticsActionSubject, AnalyticsPayload, AnalyticsHandler, } from './utils/types';
23
23
  /** @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-661 Internal documentation for deprecation (no external access)} */
24
- export { editorCardProvider, EditorCardProvider, } from '@atlaskit/link-provider';
24
+ export { editorCardProvider, EditorCardProvider } from '@atlaskit/link-provider';
@@ -241,7 +241,7 @@ export declare const useSmartLinkAnalytics: (url: string, _dispatchAnalytics?: A
241
241
  * @param extensionKey The extensionKey of the Smart Link resolver invoked.
242
242
  * @returns
243
243
  */
244
- appAccountAuthStarted: ({ extensionKey, location, }: TrackAppAccountConnectedProps) => void;
244
+ appAccountAuthStarted: ({ extensionKey, location }: TrackAppAccountConnectedProps) => void;
245
245
  /**
246
246
  * Removed in EDM-5153: This is an even from an experiment.
247
247
  * @deprecated
@@ -2,5 +2,5 @@ import type { InvokeClientActionProps, UseInvokeClientActionProps } from './type
2
2
  /**
3
3
  * Invoke client action such as preview, download and open link
4
4
  */
5
- declare const useInvokeClientAction: ({ analytics }: UseInvokeClientActionProps) => ({ actionType, actionFn, extensionKey, display, }: InvokeClientActionProps) => Promise<void>;
5
+ declare const useInvokeClientAction: ({ analytics }: UseInvokeClientActionProps) => ({ actionType, actionFn, extensionKey, display }: InvokeClientActionProps) => Promise<void>;
6
6
  export default useInvokeClientAction;
@@ -50,7 +50,7 @@ dispatchAnalytics?: AnalyticsHandler): {
50
50
  };
51
51
  track: {
52
52
  appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
53
- appAccountAuthStarted: ({ extensionKey, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
53
+ appAccountAuthStarted: ({ extensionKey, location }: import("../../utils/analytics/types").CommonEventProps) => void;
54
54
  linkUpdated: () => void;
55
55
  smartLinkQuickActionStarted: (props: {
56
56
  smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("../../utils/analytics/analytics").TrackQuickActionType;
@@ -19,4 +19,4 @@ export interface UseSmartLinkReloadOpts {
19
19
  * @param
20
20
  * @returns
21
21
  */
22
- export declare function useSmartLinkReload({ url, analyticsHandler, }: UseSmartLinkReloadOpts): () => void;
22
+ export declare function useSmartLinkReload({ url, analyticsHandler }: UseSmartLinkReloadOpts): () => void;
@@ -1,4 +1,4 @@
1
- export { SmartCardContext, SmartCardProvider, useSmartLinkContext, } from '@atlaskit/link-provider';
1
+ export { SmartCardContext, SmartCardProvider, useSmartLinkContext } from '@atlaskit/link-provider';
2
2
  export type { CardContext, ProviderProps } from '@atlaskit/link-provider';
3
3
  export type { CardType } from '@atlaskit/linking-common';
4
4
  export { useSmartLink, usePrefetch } from './hooks';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { type SmartLinkModalAPI, type SmartLinkModalProviderProps } from './types';
3
3
  export declare const SmartLinkModalContext: React.Context<SmartLinkModalAPI>;
4
- export declare const SmartLinkModalProvider: ({ children, }: SmartLinkModalProviderProps) => JSX.Element;
4
+ export declare const SmartLinkModalProvider: ({ children }: SmartLinkModalProviderProps) => JSX.Element;
5
5
  /**
6
6
  * Open (lazy load) modal
7
7
  *
@@ -6,7 +6,7 @@ import { type AccessContext } from './view/types';
6
6
  import { type ActionProps } from './view/BlockCard/components/Action';
7
7
  export type ResolveResponse = JsonLd.Response;
8
8
  export type { ProviderProps, CardType } from './state';
9
- export type { CardProps, CardAppearance, CardPlatform, } from './view/Card/types';
9
+ export type { CardProps, CardAppearance, CardPlatform } from './view/Card/types';
10
10
  export interface RequestAccessContextProps extends AccessContext {
11
11
  action?: ActionProps;
12
12
  callToActionMessageKey?: RequestAccessMessageKey;
@@ -121,7 +121,7 @@ export declare const mockAnalytics: {
121
121
  };
122
122
  track: {
123
123
  appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").CommonEventProps) => void;
124
- appAccountAuthStarted: ({ extensionKey, location, }: import("./analytics/types").CommonEventProps) => void;
124
+ appAccountAuthStarted: ({ extensionKey, location }: import("./analytics/types").CommonEventProps) => void;
125
125
  linkUpdated: () => void;
126
126
  smartLinkQuickActionStarted: (props: {
127
127
  smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("./analytics/analytics").TrackQuickActionType;
@@ -10,4 +10,4 @@ export interface ActionProps {
10
10
  }
11
11
  export type ActionState = 'init' | 'loading' | 'success' | 'failure';
12
12
  export declare const spinnerDelay = 1000;
13
- export declare const Action: ({ promise, text, buttonAppearance, id, }: ActionProps) => jsx.JSX.Element;
13
+ export declare const Action: ({ promise, text, buttonAppearance, id }: ActionProps) => jsx.JSX.Element;
@@ -6,4 +6,4 @@ export interface ContentFooterProps {
6
6
  hasSpaceBetween?: boolean;
7
7
  }
8
8
  export declare const contentFooterClassName = "smart-link-content-footer";
9
- export declare const ContentFooter: ({ children, hasSpaceBetween, }: ContentFooterProps) => jsx.JSX.Element;
9
+ export declare const ContentFooter: ({ children, hasSpaceBetween }: ContentFooterProps) => jsx.JSX.Element;
@@ -13,4 +13,4 @@ export interface ContentHeaderProps {
13
13
  * Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
14
14
  */
15
15
  export declare const blockCardContentHeaderClassName = "block-card-content-header";
16
- export declare const ContentHeader: ({ onClick, link, children, }: ContentHeaderProps) => jsx.JSX.Element;
16
+ export declare const ContentHeader: ({ onClick, link, children }: ContentHeaderProps) => jsx.JSX.Element;
@@ -15,4 +15,4 @@ export interface NameProps {
15
15
  * Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
16
16
  */
17
17
  export declare const blockCardContentHeaderNameClassName = "block-card-content-header-name";
18
- export declare const Name: ({ name, isLeftPadded, testId, textColor, }: NameProps) => jsx.JSX.Element;
18
+ export declare const Name: ({ name, isLeftPadded, testId, textColor }: NameProps) => jsx.JSX.Element;
@@ -1,3 +1,3 @@
1
- export { searchManuallyTriggeredRules, invokeManuallyTriggeredRule, } from './services';
1
+ export { searchManuallyTriggeredRules, invokeManuallyTriggeredRule } from './services';
2
2
  export type { RuleScope, UserInputType, UserInputPrompt, UserInputValue, UserInputs, ManualRule, ManualRulesById, InvocationResult, InvocationResponse, InvokeManualRulePayload, GetManualRulesResponse, ManualRuleInvoker, } from './common/types';
3
3
  export { useManualRules, ManualRulesContainer, type ManualRulesContainerProps, type ManualRulesData, } from './main';
@@ -3,5 +3,5 @@ import type { UserInputParagraphPrompt } from '../../common/types';
3
3
  interface ParagraphInputPromptProps {
4
4
  userInputPrompt: UserInputParagraphPrompt;
5
5
  }
6
- declare const ParagraphInputPrompt: ({ userInputPrompt, }: ParagraphInputPromptProps) => JSX.Element;
6
+ declare const ParagraphInputPrompt: ({ userInputPrompt }: ParagraphInputPromptProps) => JSX.Element;
7
7
  export default ParagraphInputPrompt;
@@ -1 +1 @@
1
- export { AutomationMenuContextContainer, useAutomationMenu, type RuleExecutionState, } from './main';
1
+ export { AutomationMenuContextContainer, useAutomationMenu, type RuleExecutionState } from './main';
@@ -4,5 +4,5 @@ type AutomationModalFooterProps = {
4
4
  selectedRule: ManualRule | undefined;
5
5
  onClose: () => void;
6
6
  };
7
- export declare const AutomationModalFooter: ({ selectedRule, onClose, }: AutomationModalFooterProps) => JSX.Element | null;
7
+ export declare const AutomationModalFooter: ({ selectedRule, onClose }: AutomationModalFooterProps) => JSX.Element | null;
8
8
  export {};
@@ -1,4 +1,4 @@
1
- import { type MessageDescriptor } from "react-intl-next";
1
+ import { type MessageDescriptor } from 'react-intl-next';
2
2
  type ModalContent = {
3
3
  modalTitle: MessageDescriptor;
4
4
  modalDescription: MessageDescriptor;
@@ -8,5 +8,5 @@ export type FeatureDiscoveryProps = {
8
8
  * This implementation must be removed once the experiment is completed.
9
9
  * Cleanup on https://product-fabric.atlassian.net/browse/EDM-9649
10
10
  */
11
- declare const FeatureDiscovery: ({ children, testId, }: FeatureDiscoveryProps) => JSX.Element;
11
+ declare const FeatureDiscovery: ({ children, testId }: FeatureDiscoveryProps) => JSX.Element;
12
12
  export default FeatureDiscovery;
@@ -5,5 +5,5 @@ type EmptyStateProps = {
5
5
  description?: React.ReactNode;
6
6
  renderImage?: () => React.ReactNode;
7
7
  };
8
- export declare const EmptyState: ({ testId, header, description, renderImage, }: EmptyStateProps) => JSX.Element;
8
+ export declare const EmptyState: ({ testId, header, description, renderImage }: EmptyStateProps) => JSX.Element;
9
9
  export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const RelatedLinksResolvingView: () => JSX.Element;
3
+ export default RelatedLinksResolvingView;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "27.5.2",
3
+ "version": "27.5.4",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -44,24 +44,24 @@
44
44
  "@atlaskit/icon-object": "^6.4.0",
45
45
  "@atlaskit/icon-priority": "^6.3.0",
46
46
  "@atlaskit/link-analytics": "^8.3.0",
47
- "@atlaskit/link-client-extension": "^1.8.0",
47
+ "@atlaskit/link-client-extension": "^1.9.0",
48
48
  "@atlaskit/link-extractors": "^1.5.0",
49
49
  "@atlaskit/linking-common": "^5.7.0",
50
50
  "@atlaskit/linking-types": "^8.9.0",
51
- "@atlaskit/logo": "^13.17.0",
51
+ "@atlaskit/logo": "^14.0.0",
52
52
  "@atlaskit/lozenge": "^11.7.0",
53
53
  "@atlaskit/menu": "^2.4.0",
54
54
  "@atlaskit/modal-dialog": "^12.13.0",
55
55
  "@atlaskit/outbound-auth-flow-client": "^3.4.0",
56
56
  "@atlaskit/platform-feature-flags": "^0.2.1",
57
57
  "@atlaskit/popup": "^1.17.0",
58
- "@atlaskit/primitives": "^6.5.0",
58
+ "@atlaskit/primitives": "^7.0.0",
59
59
  "@atlaskit/section-message": "^6.5.0",
60
60
  "@atlaskit/select": "^17.10.0",
61
61
  "@atlaskit/spinner": "^16.1.0",
62
62
  "@atlaskit/textarea": "^5.4.0",
63
63
  "@atlaskit/textfield": "^6.3.0",
64
- "@atlaskit/theme": "^12.8.0",
64
+ "@atlaskit/theme": "^12.9.0",
65
65
  "@atlaskit/tokens": "^1.49.0",
66
66
  "@atlaskit/tooltip": "^18.4.0",
67
67
  "@atlaskit/ufo": "^0.2.0",
@@ -99,7 +99,7 @@
99
99
  "@atlassian/analytics-tooling": "*",
100
100
  "@atlassian/feature-flags-test-utils": "^0.2.0",
101
101
  "@testing-library/dom": "^8.17.1",
102
- "@testing-library/jest-dom": "^5.16.5",
102
+ "@testing-library/jest-dom": "^6.4.5",
103
103
  "@testing-library/react": "^12.1.5",
104
104
  "@testing-library/react-hooks": "^8.0.1",
105
105
  "@testing-library/user-event": "^14.4.3",