@atlaskit/smart-card 22.1.0 → 22.2.0

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 (44) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cjs/__tests_external__/index.js +53 -0
  3. package/dist/cjs/__tests_external__/page-objects/BaseCard.js +115 -0
  4. package/dist/cjs/__tests_external__/page-objects/BlockCard.js +43 -0
  5. package/dist/cjs/__tests_external__/page-objects/EmbedCard.js +43 -0
  6. package/dist/cjs/__tests_external__/page-objects/InlineCard.js +43 -0
  7. package/dist/cjs/__tests_external__/test-cases/card.js +27 -0
  8. package/dist/cjs/__tests_external__/test-cases/embed.js +27 -0
  9. package/dist/cjs/__tests_external__/test-cases/inline.js +27 -0
  10. package/dist/cjs/__tests_external__/test-cases/types.js +5 -0
  11. package/dist/cjs/state/hooks/usePrefetch.js +26 -14
  12. package/dist/cjs/version.json +1 -1
  13. package/dist/cjs/view/CardWithUrl/loader.js +10 -10
  14. package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.js +2 -2
  15. package/dist/es2019/__tests_external__/index.js +6 -0
  16. package/dist/es2019/__tests_external__/page-objects/BaseCard.js +61 -0
  17. package/dist/es2019/__tests_external__/page-objects/BlockCard.js +8 -0
  18. package/dist/es2019/__tests_external__/page-objects/EmbedCard.js +8 -0
  19. package/dist/es2019/__tests_external__/page-objects/InlineCard.js +8 -0
  20. package/dist/es2019/__tests_external__/test-cases/card.js +14 -0
  21. package/dist/es2019/__tests_external__/test-cases/embed.js +14 -0
  22. package/dist/es2019/__tests_external__/test-cases/inline.js +14 -0
  23. package/dist/es2019/__tests_external__/test-cases/types.js +1 -0
  24. package/dist/es2019/state/hooks/usePrefetch.js +9 -4
  25. package/dist/es2019/version.json +1 -1
  26. package/dist/es2019/view/CardWithUrl/loader.js +10 -10
  27. package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled.js +0 -2
  28. package/dist/esm/__tests_external__/index.js +6 -0
  29. package/dist/esm/__tests_external__/page-objects/BaseCard.js +101 -0
  30. package/dist/esm/__tests_external__/page-objects/BlockCard.js +28 -0
  31. package/dist/esm/__tests_external__/page-objects/EmbedCard.js +28 -0
  32. package/dist/esm/__tests_external__/page-objects/InlineCard.js +28 -0
  33. package/dist/esm/__tests_external__/test-cases/card.js +16 -0
  34. package/dist/esm/__tests_external__/test-cases/embed.js +16 -0
  35. package/dist/esm/__tests_external__/test-cases/inline.js +16 -0
  36. package/dist/esm/__tests_external__/test-cases/types.js +1 -0
  37. package/dist/esm/state/hooks/usePrefetch.js +26 -14
  38. package/dist/esm/version.json +1 -1
  39. package/dist/esm/view/CardWithUrl/loader.js +10 -10
  40. package/dist/esm/view/InlineCard/IconAndTitleLayout/styled.js +2 -2
  41. package/dist/types/view/Card/index.d.ts +1 -1
  42. package/dist/types/view/HoverCard/index.d.ts +1 -1
  43. package/package.json +22 -22
  44. package/report.api.md +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "22.1.0",
3
+ "version": "22.2.0",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -27,21 +27,21 @@
27
27
  "@atlaskit/avatar": "^21.0.0",
28
28
  "@atlaskit/avatar-group": "^9.0.0",
29
29
  "@atlaskit/button": "^16.3.0",
30
- "@atlaskit/dropdown-menu": "^11.3.0",
30
+ "@atlaskit/dropdown-menu": "^11.5.0",
31
31
  "@atlaskit/icon": "^21.10.0",
32
32
  "@atlaskit/icon-file-type": "^6.3.0",
33
33
  "@atlaskit/icon-object": "^6.2.0",
34
34
  "@atlaskit/icon-priority": "^6.3.0",
35
35
  "@atlaskit/in-product-testing": "^0.1.0",
36
- "@atlaskit/linking-common": "^1.6.0",
37
- "@atlaskit/logo": "^13.8.0",
38
- "@atlaskit/lozenge": "^11.1.0",
36
+ "@atlaskit/linking-common": "^1.8.0",
37
+ "@atlaskit/logo": "^13.9.0",
38
+ "@atlaskit/lozenge": "^11.2.0",
39
39
  "@atlaskit/media-common": "^2.16.0",
40
- "@atlaskit/modal-dialog": "^12.2.0",
40
+ "@atlaskit/modal-dialog": "^12.3.0",
41
41
  "@atlaskit/outbound-auth-flow-client": "^3.3.0",
42
42
  "@atlaskit/popup": "^1.4.0",
43
43
  "@atlaskit/spinner": "^15.1.0",
44
- "@atlaskit/theme": "^12.1.0",
44
+ "@atlaskit/theme": "^12.2.0",
45
45
  "@atlaskit/tokens": "^0.10.0",
46
46
  "@atlaskit/tooltip": "^17.5.2",
47
47
  "@atlaskit/ufo": "^0.1.0",
@@ -58,7 +58,7 @@
58
58
  "uuid": "^3.1.0"
59
59
  },
60
60
  "peerDependencies": {
61
- "@atlaskit/link-provider": "^1.2.4",
61
+ "@atlaskit/link-provider": "^1.2.6",
62
62
  "react": "^16.8.0",
63
63
  "react-dom": "^16.8.0",
64
64
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -71,26 +71,26 @@
71
71
  "@atlaskit/docs": "*",
72
72
  "@atlaskit/field-base": "^15.0.6",
73
73
  "@atlaskit/form": "^8.5.0",
74
- "@atlaskit/inline-message": "^11.3.0",
75
- "@atlaskit/lozenge": "^11.1.0",
74
+ "@atlaskit/inline-message": "^11.4.0",
75
+ "@atlaskit/lozenge": "^11.2.0",
76
76
  "@atlaskit/media-integration-test-helpers": "^2.6.0",
77
77
  "@atlaskit/media-test-helpers": "^30.0.0",
78
- "@atlaskit/page": "^12.1.0",
79
- "@atlaskit/radio": "^5.3.0",
78
+ "@atlaskit/page": "^12.2.0",
79
+ "@atlaskit/radio": "^5.4.0",
80
80
  "@atlaskit/range": "^6.0.0",
81
- "@atlaskit/section-message": "^6.1.5",
82
- "@atlaskit/select": "^15.6.0",
83
- "@atlaskit/table-tree": "^9.1.0",
84
- "@atlaskit/tabs": "^13.2.10",
81
+ "@atlaskit/section-message": "^6.2.0",
82
+ "@atlaskit/select": "^15.7.0",
83
+ "@atlaskit/table-tree": "^9.2.0",
84
+ "@atlaskit/tabs": "^13.3.0",
85
85
  "@atlaskit/textarea": "^4.3.0",
86
- "@atlaskit/textfield": "^5.1.0",
87
- "@atlaskit/toggle": "^12.4.0",
86
+ "@atlaskit/textfield": "^5.2.0",
87
+ "@atlaskit/toggle": "^12.5.0",
88
88
  "@atlaskit/visual-regression": "*",
89
89
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
90
- "@testing-library/jest-dom": "^4.1.0",
91
- "@testing-library/react": "^8.0.1",
92
- "@testing-library/react-hooks": "^1.0.4",
93
- "@testing-library/user-event": "10.4.0",
90
+ "@testing-library/jest-dom": "^5.16.5",
91
+ "@testing-library/react": "^12.1.5",
92
+ "@testing-library/react-hooks": "^1.1.0",
93
+ "@testing-library/user-event": "^13.5.0",
94
94
  "@types/enzyme": "^3.1.15",
95
95
  "@types/lorem-ipsum": "^1.0.2",
96
96
  "@types/react": "^16.8.0",
package/report.api.md CHANGED
@@ -268,6 +268,7 @@ export declare const Card: React_2.ForwardRefExoticComponent<
268
268
  > &
269
269
  React_2.RefAttributes<any> &
270
270
  WithContextProps,
271
+ | 'url'
271
272
  | 'children'
272
273
  | 'data'
273
274
  | 'appearance'
@@ -280,7 +281,6 @@ export declare const Card: React_2.ForwardRefExoticComponent<
280
281
  | 'onClick'
281
282
  | 'analyticsContext'
282
283
  | 'key'
283
- | 'url'
284
284
  | 'ui'
285
285
  | 'showActions'
286
286
  | 'showHoverPreview'