@atlaskit/smart-card 44.23.2 → 44.23.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 (51) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/extractors/action/extract-invoke-view-action.js +11 -1
  3. package/dist/cjs/extractors/flexible/actions/index.js +5 -2
  4. package/dist/cjs/extractors/flexible/extract-state.js +8 -5
  5. package/dist/cjs/extractors/flexible/index.js +6 -3
  6. package/dist/cjs/state/hooks-external/useSmartLinkActions.js +17 -2
  7. package/dist/cjs/utils/analytics/analytics.js +1 -1
  8. package/dist/cjs/utils/click-helpers.js +30 -1
  9. package/dist/cjs/view/CardWithUrl/component.js +106 -42
  10. package/dist/cjs/view/FlexibleCard/index.js +12 -2
  11. package/dist/cjs/view/HoverCard/components/HoverCardContent.js +24 -1
  12. package/dist/cjs/view/LinkUrl/index.js +1 -1
  13. package/dist/es2019/extractors/action/extract-invoke-view-action.js +10 -1
  14. package/dist/es2019/extractors/flexible/actions/index.js +5 -1
  15. package/dist/es2019/extractors/flexible/extract-state.js +8 -4
  16. package/dist/es2019/extractors/flexible/index.js +6 -2
  17. package/dist/es2019/state/hooks-external/useSmartLinkActions.js +13 -2
  18. package/dist/es2019/utils/analytics/analytics.js +1 -1
  19. package/dist/es2019/utils/click-helpers.js +29 -0
  20. package/dist/es2019/view/CardWithUrl/component.js +108 -43
  21. package/dist/es2019/view/FlexibleCard/index.js +10 -3
  22. package/dist/es2019/view/HoverCard/components/HoverCardContent.js +24 -1
  23. package/dist/es2019/view/LinkUrl/index.js +1 -1
  24. package/dist/esm/extractors/action/extract-invoke-view-action.js +11 -1
  25. package/dist/esm/extractors/flexible/actions/index.js +5 -2
  26. package/dist/esm/extractors/flexible/extract-state.js +8 -5
  27. package/dist/esm/extractors/flexible/index.js +6 -3
  28. package/dist/esm/state/hooks-external/useSmartLinkActions.js +17 -2
  29. package/dist/esm/utils/analytics/analytics.js +1 -1
  30. package/dist/esm/utils/click-helpers.js +29 -0
  31. package/dist/esm/view/CardWithUrl/component.js +107 -43
  32. package/dist/esm/view/FlexibleCard/index.js +13 -3
  33. package/dist/esm/view/HoverCard/components/HoverCardContent.js +24 -1
  34. package/dist/esm/view/LinkUrl/index.js +1 -1
  35. package/dist/types/extractors/action/extract-invoke-preview-action.d.ts +2 -1
  36. package/dist/types/extractors/action/extract-invoke-view-action.d.ts +5 -2
  37. package/dist/types/extractors/action/types.d.ts +1 -0
  38. package/dist/types/extractors/flexible/actions/index.d.ts +3 -1
  39. package/dist/types/extractors/flexible/extract-state.d.ts +2 -1
  40. package/dist/types/extractors/flexible/index.d.ts +1 -1
  41. package/dist/types/utils/click-helpers.d.ts +20 -0
  42. package/dist/types/view/FlexibleCard/types.d.ts +2 -0
  43. package/dist/types-ts4.5/extractors/action/extract-invoke-preview-action.d.ts +2 -1
  44. package/dist/types-ts4.5/extractors/action/extract-invoke-view-action.d.ts +5 -2
  45. package/dist/types-ts4.5/extractors/action/types.d.ts +1 -0
  46. package/dist/types-ts4.5/extractors/flexible/actions/index.d.ts +3 -1
  47. package/dist/types-ts4.5/extractors/flexible/extract-state.d.ts +2 -1
  48. package/dist/types-ts4.5/extractors/flexible/index.d.ts +1 -1
  49. package/dist/types-ts4.5/utils/click-helpers.d.ts +20 -0
  50. package/dist/types-ts4.5/view/FlexibleCard/types.d.ts +2 -0
  51. package/package.json +5 -5
@@ -4,6 +4,7 @@ import { type CardState, type ProductType } from '@atlaskit/linking-common';
4
4
  import { type SmartLinkResponse } from '@atlaskit/linking-types';
5
5
  import { type FireEventFunction } from '../../common/analytics/types';
6
6
  import { type SmartLinkSize, type SmartLinkStatus, type SmartLinkTheme } from '../../constants';
7
+ import type { TransformUrlFn } from '../../extractors/action/types';
7
8
  import { type AISummaryConfig } from '../../state/hooks/use-ai-summary-config/types';
8
9
  import { type ResolveFunction } from '../../state/hooks/use-resolve';
9
10
  import type { RovoConfig } from '../../state/hooks/use-rovo-config';
@@ -197,6 +198,7 @@ export type ExtractFlexibleUiDataContextParams = Pick<FlexibleCardProps, 'appear
197
198
  response?: SmartLinkResponse;
198
199
  rovoConfig?: RovoConfig;
199
200
  status?: SmartLinkStatus;
201
+ transformUrl?: TransformUrlFn;
200
202
  };
201
203
  /**
202
204
  * Mark a specific props in the type as optional.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "44.23.2",
3
+ "version": "44.23.4",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -42,7 +42,7 @@
42
42
  "@atlaskit/analytics-next": "^11.3.0",
43
43
  "@atlaskit/avatar": "^25.15.0",
44
44
  "@atlaskit/avatar-group": "^12.10.0",
45
- "@atlaskit/badge": "^18.6.0",
45
+ "@atlaskit/badge": "^18.7.0",
46
46
  "@atlaskit/browser-apis": "^0.0.2",
47
47
  "@atlaskit/button": "^23.11.0",
48
48
  "@atlaskit/checkbox": "^17.3.0",
@@ -87,13 +87,13 @@
87
87
  "@atlaskit/textfield": "^8.3.0",
88
88
  "@atlaskit/theme": "^25.0.0",
89
89
  "@atlaskit/tile": "^1.1.0",
90
- "@atlaskit/tmp-editor-statsig": "^89.1.0",
91
- "@atlaskit/tokens": "^13.1.0",
90
+ "@atlaskit/tmp-editor-statsig": "^90.0.0",
91
+ "@atlaskit/tokens": "^13.3.0",
92
92
  "@atlaskit/tooltip": "^22.6.0",
93
93
  "@atlaskit/ufo": "^0.5.0",
94
94
  "@atlaskit/width-detector": "^5.1.0",
95
95
  "@babel/runtime": "^7.0.0",
96
- "@compiled/react": "^0.20.0",
96
+ "@compiled/react": "patch:@compiled/react@npm%3A0.20.0#~/.yarn/patches/@compiled-react-npm-0.20.0-a771aa67a6.patch",
97
97
  "@formatjs/intl-utils": "^3.8.4",
98
98
  "facepaint": "^1.2.1",
99
99
  "lru_map": "^0.4.1",