@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.
Files changed (75) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/cjs/index.js +0 -6
  3. package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +2 -12
  4. package/dist/cjs/state/hooks/useSmartLink.js +2 -7
  5. package/dist/cjs/state/hooks-external/useSmartLinkActions.js +1 -2
  6. package/dist/cjs/state/hooks-external/useSmartLinkReload.js +2 -3
  7. package/dist/cjs/utils/analytics/analytics.js +1 -1
  8. package/dist/cjs/utils/index.js +1 -14
  9. package/dist/cjs/view/CardWithUrl/component.js +2 -5
  10. package/dist/cjs/view/CardWithUrl/loader.js +1 -5
  11. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +14 -4
  12. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +1 -5
  13. package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +1 -1
  14. package/dist/cjs/view/HoverCard/components/HoverCardContent.js +1 -1
  15. package/dist/cjs/view/HoverCard/index.js +1 -1
  16. package/dist/cjs/view/LinkUrl/index.js +1 -1
  17. package/dist/es2019/client/index.js +4 -0
  18. package/dist/es2019/index.js +20 -1
  19. package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +2 -12
  20. package/dist/es2019/state/hooks/useSmartLink.js +2 -7
  21. package/dist/es2019/state/hooks-external/useSmartLinkActions.js +1 -2
  22. package/dist/es2019/state/hooks-external/useSmartLinkReload.js +2 -3
  23. package/dist/es2019/utils/analytics/analytics.js +1 -1
  24. package/dist/es2019/utils/index.js +0 -13
  25. package/dist/es2019/view/CardWithUrl/component.js +3 -6
  26. package/dist/es2019/view/CardWithUrl/loader.js +1 -5
  27. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +14 -4
  28. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +1 -5
  29. package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +1 -1
  30. package/dist/es2019/view/HoverCard/components/HoverCardContent.js +1 -1
  31. package/dist/es2019/view/HoverCard/index.js +1 -1
  32. package/dist/es2019/view/LinkUrl/index.js +1 -1
  33. package/dist/esm/client/index.js +4 -0
  34. package/dist/esm/index.js +20 -1
  35. package/dist/esm/state/analytics/useSmartLinkAnalytics.js +2 -12
  36. package/dist/esm/state/hooks/useSmartLink.js +2 -7
  37. package/dist/esm/state/hooks-external/useSmartLinkActions.js +1 -2
  38. package/dist/esm/state/hooks-external/useSmartLinkReload.js +2 -3
  39. package/dist/esm/utils/analytics/analytics.js +1 -1
  40. package/dist/esm/utils/index.js +0 -13
  41. package/dist/esm/view/CardWithUrl/component.js +3 -6
  42. package/dist/esm/view/CardWithUrl/loader.js +1 -5
  43. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +14 -4
  44. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +1 -5
  45. package/dist/esm/view/HoverCard/components/HoverCardComponent.js +1 -1
  46. package/dist/esm/view/HoverCard/components/HoverCardContent.js +1 -1
  47. package/dist/esm/view/HoverCard/index.js +1 -1
  48. package/dist/esm/view/LinkUrl/index.js +1 -1
  49. package/dist/types/client/index.d.ts +4 -0
  50. package/dist/types/index.d.ts +9 -1
  51. package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +2 -12
  52. package/dist/types/state/hooks/useSmartLink.d.ts +4 -11
  53. package/dist/types/state/hooks-external/useSmartLinkActions.d.ts +2 -10
  54. package/dist/types/state/hooks-external/useSmartLinkReload.d.ts +1 -10
  55. package/dist/types/utils/index.d.ts +0 -6
  56. package/dist/types/utils/mocks.d.ts +0 -1
  57. package/dist/types/view/Card/index.d.ts +1 -1
  58. package/dist/types/view/Card/types.d.ts +60 -66
  59. package/dist/types/view/CardWithData/types.d.ts +0 -6
  60. package/dist/types/view/CardWithUrl/types.d.ts +0 -19
  61. package/dist/types/view/HoverCard/types.d.ts +1 -7
  62. package/dist/types-ts4.5/client/index.d.ts +4 -0
  63. package/dist/types-ts4.5/index.d.ts +9 -1
  64. package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +2 -12
  65. package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +4 -11
  66. package/dist/types-ts4.5/state/hooks-external/useSmartLinkActions.d.ts +2 -10
  67. package/dist/types-ts4.5/state/hooks-external/useSmartLinkReload.d.ts +1 -10
  68. package/dist/types-ts4.5/utils/index.d.ts +0 -6
  69. package/dist/types-ts4.5/utils/mocks.d.ts +0 -1
  70. package/dist/types-ts4.5/view/Card/index.d.ts +1 -1
  71. package/dist/types-ts4.5/view/Card/types.d.ts +60 -66
  72. package/dist/types-ts4.5/view/CardWithData/types.d.ts +0 -6
  73. package/dist/types-ts4.5/view/CardWithUrl/types.d.ts +0 -19
  74. package/dist/types-ts4.5/view/HoverCard/types.d.ts +1 -7
  75. 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.jira.atlassian.cloud/browse/ENGHEALTH-14817 Internal documentation for deprecation (no external access)}
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": "28.4.0",
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.19.0",
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.27.0",
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",