@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.
- package/CHANGELOG.md +15 -0
- package/CONTRIBUTING.md +1 -1
- package/dist/cjs/extractors/common/icon/extractIcon.js +1 -1
- package/dist/cjs/extractors/flexible/actions/extract-automation-action.js +1 -1
- package/dist/cjs/messages.js +2 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/EmbedCard/components/styled.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/main.js +5 -5
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/utils/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/container/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/utils.js +1 -1
- package/dist/cjs/view/HoverCard/components/views/resolved/styled.js +1 -1
- package/dist/cjs/view/HoverCard/styled.js +2 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/RelatedLinksModal/components/EmptyState.js +2 -2
- package/dist/cjs/view/RelatedLinksModal/views/resolving/index.js +27 -0
- package/dist/es2019/extractors/common/icon/extractIcon.js +1 -1
- package/dist/es2019/extractors/flexible/actions/extract-automation-action.js +1 -1
- package/dist/es2019/messages.js +2 -2
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/EmbedCard/components/styled.js +22 -22
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/main.js +5 -5
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/utils/index.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +16 -16
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +13 -13
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +13 -13
- package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +9 -9
- package/dist/es2019/view/FlexibleCard/components/container/index.js +15 -15
- package/dist/es2019/view/FlexibleCard/components/elements/avatar-group/index.js +9 -9
- package/dist/es2019/view/FlexibleCard/components/elements/badge/index.js +8 -8
- package/dist/es2019/view/FlexibleCard/components/utils.js +9 -9
- package/dist/es2019/view/HoverCard/components/views/resolved/styled.js +21 -21
- package/dist/es2019/view/HoverCard/styled.js +23 -23
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/RelatedLinksModal/components/EmptyState.js +2 -2
- package/dist/es2019/view/RelatedLinksModal/views/errored/index.js +2 -2
- package/dist/es2019/view/RelatedLinksModal/views/resolving/index.js +18 -0
- package/dist/es2019/view/RelatedLinksModal/views/unavailable/index.js +1 -1
- package/dist/esm/extractors/common/icon/extractIcon.js +1 -1
- package/dist/esm/extractors/flexible/actions/extract-automation-action.js +1 -1
- package/dist/esm/messages.js +2 -2
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/EmbedCard/components/styled.js +2 -2
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/main.js +5 -5
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/utils/index.js +2 -2
- package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/esm/view/FlexibleCard/components/container/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/avatar-group/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/utils.js +1 -1
- package/dist/esm/view/HoverCard/components/views/resolved/styled.js +1 -1
- package/dist/esm/view/HoverCard/styled.js +2 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/RelatedLinksModal/components/EmptyState.js +2 -2
- package/dist/esm/view/RelatedLinksModal/views/errored/index.js +2 -2
- package/dist/esm/view/RelatedLinksModal/views/resolving/index.js +20 -0
- package/dist/esm/view/RelatedLinksModal/views/unavailable/index.js +1 -1
- package/dist/types/extractors/flexible/actions/extract-automation-action.d.ts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +1 -1
- package/dist/types/state/hooks/use-invoke-client-action/index.d.ts +1 -1
- package/dist/types/state/hooks/useSmartLink.d.ts +1 -1
- package/dist/types/state/hooks-external/useSmartLinkReload.d.ts +1 -1
- package/dist/types/state/index.d.ts +1 -1
- package/dist/types/state/modal/index.d.ts +1 -1
- package/dist/types/types.d.ts +1 -1
- package/dist/types/utils/mocks.d.ts +1 -1
- package/dist/types/view/BlockCard/components/Action.d.ts +1 -1
- package/dist/types/view/BlockCard/components/ContentFooter.d.ts +1 -1
- package/dist/types/view/BlockCard/components/ContentHeader.d.ts +1 -1
- package/dist/types/view/BlockCard/components/Name.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/index.d.ts +1 -1
- 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
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/footer/main.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/utils/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.d.ts +1 -1
- package/dist/types/view/RelatedLinksModal/components/EmptyState.d.ts +1 -1
- package/dist/types/view/RelatedLinksModal/views/resolving/index.d.ts +3 -0
- package/dist/types-ts4.5/extractors/flexible/actions/extract-automation-action.d.ts +2 -2
- package/dist/types-ts4.5/index.d.ts +2 -2
- package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +1 -1
- package/dist/types-ts4.5/state/hooks/use-invoke-client-action/index.d.ts +1 -1
- package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +1 -1
- package/dist/types-ts4.5/state/hooks-external/useSmartLinkReload.d.ts +1 -1
- package/dist/types-ts4.5/state/index.d.ts +1 -1
- package/dist/types-ts4.5/state/modal/index.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +1 -1
- package/dist/types-ts4.5/utils/mocks.d.ts +1 -1
- package/dist/types-ts4.5/view/BlockCard/components/Action.d.ts +1 -1
- package/dist/types-ts4.5/view/BlockCard/components/ContentFooter.d.ts +1 -1
- package/dist/types-ts4.5/view/BlockCard/components/ContentHeader.d.ts +1 -1
- package/dist/types-ts4.5/view/BlockCard/components/Name.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/index.d.ts +1 -1
- 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
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/index.d.ts +1 -1
- 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
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/utils/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.d.ts +1 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/components/EmptyState.d.ts +1 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/views/resolving/index.d.ts +3 -0
- package/package.json +6 -6
- 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
|
|
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
|
|
2
|
-
import { type AutomationActionData } from
|
|
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;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
22
|
+
export declare function useSmartLinkReload({ url, analyticsHandler }: UseSmartLinkReloadOpts): () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { SmartCardContext, SmartCardProvider, useSmartLinkContext
|
|
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
|
|
4
|
+
export declare const SmartLinkModalProvider: ({ children }: SmartLinkModalProviderProps) => JSX.Element;
|
|
5
5
|
/**
|
|
6
6
|
* Open (lazy load) modal
|
|
7
7
|
*
|
package/dist/types/types.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
18
|
+
export declare const Name: ({ name, isLeftPadded, testId, textColor }: NameProps) => jsx.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { searchManuallyTriggeredRules, invokeManuallyTriggeredRule
|
|
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
|
|
6
|
+
declare const ParagraphInputPrompt: ({ userInputPrompt }: ParagraphInputPromptProps) => JSX.Element;
|
|
7
7
|
export default ParagraphInputPrompt;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AutomationMenuContextContainer, useAutomationMenu, type RuleExecutionState
|
|
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
|
|
7
|
+
export declare const AutomationModalFooter: ({ selectedRule, onClose }: AutomationModalFooterProps) => JSX.Element | null;
|
|
8
8
|
export {};
|
package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
8
|
+
export declare const EmptyState: ({ testId, header, description, renderImage }: EmptyStateProps) => JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { JsonLd } from
|
|
2
|
-
import { type AutomationActionData } from
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
22
|
+
export declare function useSmartLinkReload({ url, analyticsHandler }: UseSmartLinkReloadOpts): () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { SmartCardContext, SmartCardProvider, useSmartLinkContext
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
18
|
+
export declare const Name: ({ name, isLeftPadded, testId, textColor }: NameProps) => jsx.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { searchManuallyTriggeredRules, invokeManuallyTriggeredRule
|
|
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
|
|
6
|
+
declare const ParagraphInputPrompt: ({ userInputPrompt }: ParagraphInputPromptProps) => JSX.Element;
|
|
7
7
|
export default ParagraphInputPrompt;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AutomationMenuContextContainer, useAutomationMenu, type RuleExecutionState
|
|
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
|
|
7
|
+
export declare const AutomationModalFooter: ({ selectedRule, onClose }: AutomationModalFooterProps) => JSX.Element | null;
|
|
8
8
|
export {};
|
|
@@ -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
|
|
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
|
|
8
|
+
export declare const EmptyState: ({ testId, header, description, renderImage }: EmptyStateProps) => JSX.Element;
|
|
9
9
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "27.5.
|
|
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.
|
|
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": "^
|
|
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": "^
|
|
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.
|
|
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": "^
|
|
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",
|