@atlaskit/smart-card 28.4.0 → 29.0.1
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 +28 -0
- package/dist/cjs/index.js +0 -6
- package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +2 -12
- package/dist/cjs/state/hooks/useSmartLink.js +2 -7
- package/dist/cjs/state/hooks-external/useSmartLinkActions.js +1 -2
- package/dist/cjs/state/hooks-external/useSmartLinkReload.js +2 -3
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/index.js +1 -14
- package/dist/cjs/view/CardWithUrl/component.js +2 -5
- package/dist/cjs/view/CardWithUrl/loader.js +1 -5
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +14 -4
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +1 -5
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +1 -1
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +1 -1
- package/dist/cjs/view/HoverCard/index.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/client/index.js +4 -0
- package/dist/es2019/index.js +20 -1
- package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +2 -12
- package/dist/es2019/state/hooks/useSmartLink.js +2 -7
- package/dist/es2019/state/hooks-external/useSmartLinkActions.js +1 -2
- package/dist/es2019/state/hooks-external/useSmartLinkReload.js +2 -3
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/index.js +0 -13
- package/dist/es2019/view/CardWithUrl/component.js +3 -6
- package/dist/es2019/view/CardWithUrl/loader.js +1 -5
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +14 -4
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +1 -5
- package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +1 -1
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +1 -1
- package/dist/es2019/view/HoverCard/index.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/client/index.js +4 -0
- package/dist/esm/index.js +20 -1
- package/dist/esm/state/analytics/useSmartLinkAnalytics.js +2 -12
- package/dist/esm/state/hooks/useSmartLink.js +2 -7
- package/dist/esm/state/hooks-external/useSmartLinkActions.js +1 -2
- package/dist/esm/state/hooks-external/useSmartLinkReload.js +2 -3
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/index.js +0 -13
- package/dist/esm/view/CardWithUrl/component.js +3 -6
- package/dist/esm/view/CardWithUrl/loader.js +1 -5
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +14 -4
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +1 -5
- package/dist/esm/view/HoverCard/components/HoverCardComponent.js +1 -1
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +1 -1
- package/dist/esm/view/HoverCard/index.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/client/index.d.ts +4 -0
- package/dist/types/index.d.ts +9 -1
- package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +2 -12
- package/dist/types/state/hooks/useSmartLink.d.ts +4 -11
- package/dist/types/state/hooks-external/useSmartLinkActions.d.ts +2 -10
- package/dist/types/state/hooks-external/useSmartLinkReload.d.ts +1 -10
- package/dist/types/utils/index.d.ts +0 -6
- package/dist/types/utils/mocks.d.ts +0 -1
- package/dist/types/view/Card/index.d.ts +1 -1
- package/dist/types/view/Card/types.d.ts +60 -66
- package/dist/types/view/CardWithData/types.d.ts +0 -6
- package/dist/types/view/CardWithUrl/types.d.ts +0 -19
- package/dist/types/view/HoverCard/types.d.ts +1 -7
- package/dist/types-ts4.5/client/index.d.ts +4 -0
- package/dist/types-ts4.5/index.d.ts +9 -1
- package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +2 -12
- package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +4 -11
- package/dist/types-ts4.5/state/hooks-external/useSmartLinkActions.d.ts +2 -10
- package/dist/types-ts4.5/state/hooks-external/useSmartLinkReload.d.ts +1 -10
- package/dist/types-ts4.5/utils/index.d.ts +0 -6
- package/dist/types-ts4.5/utils/mocks.d.ts +0 -1
- package/dist/types-ts4.5/view/Card/index.d.ts +1 -1
- package/dist/types-ts4.5/view/Card/types.d.ts +60 -66
- package/dist/types-ts4.5/view/CardWithData/types.d.ts +0 -6
- package/dist/types-ts4.5/view/CardWithUrl/types.d.ts +0 -19
- package/dist/types-ts4.5/view/HoverCard/types.d.ts +1 -7
- package/package.json +3 -3
|
@@ -10,12 +10,6 @@ export interface CardWithDataContentProps {
|
|
|
10
10
|
isSelected?: boolean;
|
|
11
11
|
testId?: string;
|
|
12
12
|
onResolve?: OnResolveCallback;
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-6348 Internal documentation for deprecation (no external access)}
|
|
15
|
-
*
|
|
16
|
-
* Prefer 'actionOptions' prop. Determines whether to show available server actions.
|
|
17
|
-
*/
|
|
18
|
-
showActions?: boolean;
|
|
19
13
|
actionOptions?: CardActionOptions;
|
|
20
14
|
inlinePreloaderStyle?: InlinePreloaderStyle;
|
|
21
15
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type EventHandler, type MouseEvent, type KeyboardEvent } from 'react';
|
|
2
2
|
import type { CardAppearance, CardPlatform, EmbedIframeUrlType, OnResolveCallback, CardActionOptions } from '../Card/types';
|
|
3
|
-
import { type AnalyticsHandler } from '../../utils/types';
|
|
4
3
|
import { type FlexibleUiOptions } from '../FlexibleCard/types';
|
|
5
4
|
import { type InlinePreloaderStyle, type OnErrorCallback } from '../types';
|
|
6
5
|
import { type AnalyticsFacade } from '../../state/analytics';
|
|
@@ -14,29 +13,11 @@ export type CardWithUrlContentProps = {
|
|
|
14
13
|
onClick?: EventHandler<MouseEvent | KeyboardEvent>;
|
|
15
14
|
isSelected?: boolean;
|
|
16
15
|
isHovered?: boolean;
|
|
17
|
-
isFrameVisible?: boolean;
|
|
18
16
|
frameStyle?: FrameStyle;
|
|
19
17
|
container?: HTMLElement;
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-2681 Internal documentation for deprecation (no external access)}
|
|
22
|
-
* Avoid prop drilling analytics handlers
|
|
23
|
-
*/
|
|
24
|
-
dispatchAnalytics?: AnalyticsHandler;
|
|
25
18
|
testId?: string;
|
|
26
19
|
onResolve?: OnResolveCallback;
|
|
27
20
|
onError?: OnErrorCallback;
|
|
28
|
-
/**
|
|
29
|
-
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-6348 Internal documentation for deprecation (no external access)}
|
|
30
|
-
*
|
|
31
|
-
* Prefer 'actionOptions' prop.
|
|
32
|
-
*/
|
|
33
|
-
showActions?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-6348 Internal documentation for deprecation (no external access)}
|
|
36
|
-
*
|
|
37
|
-
* Prefer 'actionOptions' prop.
|
|
38
|
-
*/
|
|
39
|
-
showServerActions?: boolean;
|
|
40
21
|
actionOptions?: CardActionOptions;
|
|
41
22
|
inheritDimensions?: boolean;
|
|
42
23
|
embedIframeRef?: React.Ref<HTMLIFrameElement>;
|
|
@@ -36,17 +36,11 @@ export interface HoverCardProps extends WithAnalyticsEventsProps {
|
|
|
36
36
|
*/
|
|
37
37
|
closeOnChildClick?: boolean;
|
|
38
38
|
/**
|
|
39
|
-
* @deprecated {@link https://hello.
|
|
39
|
+
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-14817 Internal documentation for deprecation (no external access)}
|
|
40
40
|
*
|
|
41
41
|
* Prefer 'actionOptions' prop. Determines if the hover card should display the "Open preview" button.
|
|
42
42
|
*/
|
|
43
43
|
hidePreviewButton?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-6348 Internal documentation for deprecation (no external access)}
|
|
46
|
-
*
|
|
47
|
-
* Prefer 'actionOptions' prop. Determines whether to show available server actions.
|
|
48
|
-
*/
|
|
49
|
-
showServerActions?: boolean;
|
|
50
44
|
/**
|
|
51
45
|
* Configure visibility of server and client actions
|
|
52
46
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "29.0.1",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@atlaskit/form": "^10.5.0",
|
|
37
37
|
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
38
38
|
"@atlaskit/heading": "^2.4.0",
|
|
39
|
-
"@atlaskit/icon": "^22.
|
|
39
|
+
"@atlaskit/icon": "^22.20.0",
|
|
40
40
|
"@atlaskit/icon-file-type": "^6.5.0",
|
|
41
41
|
"@atlaskit/icon-object": "^6.5.0",
|
|
42
42
|
"@atlaskit/icon-priority": "^6.3.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@atlaskit/modal-dialog": "^12.17.0",
|
|
52
52
|
"@atlaskit/outbound-auth-flow-client": "^3.4.0",
|
|
53
53
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
54
|
-
"@atlaskit/popup": "^1.
|
|
54
|
+
"@atlaskit/popup": "^1.28.0",
|
|
55
55
|
"@atlaskit/primitives": "^12.2.0",
|
|
56
56
|
"@atlaskit/section-message": "^6.6.0",
|
|
57
57
|
"@atlaskit/select": "^17.19.0",
|