@atlaskit/smart-card 17.7.12 → 18.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 18.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`dd429d9fdca`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dd429d9fdca) - [ux] EDM-2822: Fix smart link wraps just after the icon
8
+
9
+ ### Patch Changes
10
+
11
+ - [`fb1cf506701`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fb1cf506701) - [ux] ED-14487: polyfill ResizeObserver and IntersectionObserver for unit tests, but mock isIntersectionObserverSupported() for tests related to smart-cards
12
+ - Updated dependencies
13
+
3
14
  ## 17.7.12
4
15
 
5
16
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "17.7.12",
3
+ "version": "18.0.0",
4
4
  "sideEffects": false
5
5
  }
@@ -33,12 +33,12 @@ exports.IconWrapper = IconWrapper;
33
33
 
34
34
  var EmojiWrapper = _styled.default.span(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-block;\n margin-right: 2px;\n user-select: none;\n ", "\n ", "\n"])), IconOverrides, IconObjectOverrides); // The main 'wrapping' element, title of the content.
35
35
  // NB: `white-space` adds little whitespace before wrapping.
36
- // NB: `hyphens` enables hyphenation on word break.
36
+ // NB: `word-break` line breaks as soon as an overflow takes place.
37
37
 
38
38
 
39
39
  exports.EmojiWrapper = EmojiWrapper;
40
40
 
41
- var IconTitleWrapper = _styled.default.span(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n hyphens: auto;\n white-space: pre-wrap;\n overflow-wrap: break-word;\n word-break: break-word;\n"]))); // TODO: Replace overrides with proper AtlasKit solution.
41
+ var IconTitleWrapper = _styled.default.span(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n white-space: pre-wrap;\n word-break: break-all;\n"]))); // TODO: Replace overrides with proper AtlasKit solution.
42
42
 
43
43
 
44
44
  exports.IconTitleWrapper = IconTitleWrapper;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "17.7.12",
3
+ "version": "18.0.0",
4
4
  "sideEffects": false
5
5
  }
@@ -52,13 +52,11 @@ export const EmojiWrapper = styled.span`
52
52
  ${IconObjectOverrides}
53
53
  `; // The main 'wrapping' element, title of the content.
54
54
  // NB: `white-space` adds little whitespace before wrapping.
55
- // NB: `hyphens` enables hyphenation on word break.
55
+ // NB: `word-break` line breaks as soon as an overflow takes place.
56
56
 
57
57
  export const IconTitleWrapper = styled.span`
58
- hyphens: auto;
59
58
  white-space: pre-wrap;
60
- overflow-wrap: break-word;
61
- word-break: break-word;
59
+ word-break: break-all;
62
60
  `; // TODO: Replace overrides with proper AtlasKit solution.
63
61
 
64
62
  export const LozengeWrapper = styled.span`
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "17.7.12",
3
+ "version": "18.0.0",
4
4
  "sideEffects": false
5
5
  }
@@ -17,9 +17,9 @@ export var IconWrapper = styled.span(_templateObject || (_templateObject = _tagg
17
17
 
18
18
  export var EmojiWrapper = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: inline-block;\n margin-right: 2px;\n user-select: none;\n ", "\n ", "\n"])), IconOverrides, IconObjectOverrides); // The main 'wrapping' element, title of the content.
19
19
  // NB: `white-space` adds little whitespace before wrapping.
20
- // NB: `hyphens` enables hyphenation on word break.
20
+ // NB: `word-break` line breaks as soon as an overflow takes place.
21
21
 
22
- export var IconTitleWrapper = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n hyphens: auto;\n white-space: pre-wrap;\n overflow-wrap: break-word;\n word-break: break-word;\n"]))); // TODO: Replace overrides with proper AtlasKit solution.
22
+ export var IconTitleWrapper = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n white-space: pre-wrap;\n word-break: break-all;\n"]))); // TODO: Replace overrides with proper AtlasKit solution.
23
23
 
24
24
  export var LozengeWrapper = styled.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: inline-block;\n vertical-align: 1px;\n & > span {\n margin-left: 4px;\n padding: 2px 0 2px 0;\n }\n"]))); // TODO: Replace overrides with proper AtlasKit solution.
25
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "17.7.12",
3
+ "version": "18.0.0",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -36,12 +36,12 @@
36
36
  "@atlaskit/logo": "^13.5.0",
37
37
  "@atlaskit/lozenge": "^11.1.0",
38
38
  "@atlaskit/media-common": "^2.11.0",
39
- "@atlaskit/media-ui": "^20.1.0",
39
+ "@atlaskit/media-ui": "^21.0.0",
40
40
  "@atlaskit/modal-dialog": "^12.2.0",
41
41
  "@atlaskit/outbound-auth-flow-client": "^3.3.0",
42
42
  "@atlaskit/spinner": "^15.1.0",
43
43
  "@atlaskit/theme": "^12.1.0",
44
- "@atlaskit/tokens": "^0.7.0",
44
+ "@atlaskit/tokens": "^0.8.0",
45
45
  "@atlaskit/tooltip": "^17.5.2",
46
46
  "@atlaskit/ufo": "^0.1.0",
47
47
  "@babel/runtime": "^7.0.0",
@@ -76,7 +76,7 @@
76
76
  "@atlaskit/inline-message": "^11.2.0",
77
77
  "@atlaskit/lozenge": "^11.1.0",
78
78
  "@atlaskit/media-integration-test-helpers": "^2.5.0",
79
- "@atlaskit/media-test-helpers": "^29.2.0",
79
+ "@atlaskit/media-test-helpers": "^29.3.0",
80
80
  "@atlaskit/page": "^12.1.0",
81
81
  "@atlaskit/radio": "^5.3.0",
82
82
  "@atlaskit/range": "^6.0.0",