@atlaskit/code 15.3.0 → 15.3.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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/code
2
2
 
3
+ ## 15.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#116025](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116025)
8
+ [`cd506a937e44f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cd506a937e44f) -
9
+ Internal change to how typography is applied. There should be no visual change.
10
+
3
11
  ## 15.3.0
4
12
 
5
13
  ### Minor Changes
@@ -16,8 +16,8 @@ const CSS_VAR_TEXT_COLOR = '--banner-text-color';
16
16
 
17
17
  const textStyles = css({
18
18
  color: \`var(\${CSS_VAR_TEXT_COLOR})\`,
19
+ font: token('font.body'),
19
20
  fontWeight: token('font.weight.medium', '500'),
20
- lineHeight: token('font.lineHeight.300', '24px'),
21
21
  overflow: 'hidden',
22
22
  textOverflow: 'ellipsis',
23
23
  whiteSpace: 'nowrap',
@@ -33,7 +33,7 @@ var decoration = (0, _react2.css)({
33
33
  background: "var(--ds-background-warning, ".concat(_colors.Y75, ")"),
34
34
  color: "var(--ds-text-warning, #7F5F01)",
35
35
  content: '"<"attr(data-bidi-character-code)">"',
36
- fontSize: "var(--ds-font-size-100, 14px)",
36
+ fontSize: '14px',
37
37
  fontStyle: 'normal',
38
38
  lineHeight: '18px',
39
39
  /**
package/dist/cjs/code.js CHANGED
@@ -53,11 +53,14 @@ var Code = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(fu
53
53
  codeBidiWarningLabel: codeBidiWarningLabel,
54
54
  codeBidiWarningTooltipEnabled: codeBidiWarningTooltipEnabled
55
55
  }, children) : children;
56
- return (0, _react2.jsx)("code", (0, _extends2.default)({
57
- ref: ref,
58
- "data-testid": testId,
59
- css: styles
60
- }, otherProps), decoratedChildren);
56
+ return (
57
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
58
+ (0, _react2.jsx)("code", (0, _extends2.default)({
59
+ ref: ref,
60
+ "data-testid": testId,
61
+ css: styles
62
+ }, otherProps), decoratedChildren)
63
+ );
61
64
  }));
62
65
  function RenderCodeChildrenWithBidiWarnings(_ref2) {
63
66
  var children = _ref2.children,
@@ -25,7 +25,7 @@ const decoration = css({
25
25
  background: `var(--ds-background-warning, ${Y75})`,
26
26
  color: "var(--ds-text-warning, #7F5F01)",
27
27
  content: '"<"attr(data-bidi-character-code)">"',
28
- fontSize: "var(--ds-font-size-100, 14px)",
28
+ fontSize: '14px',
29
29
  fontStyle: 'normal',
30
30
  lineHeight: '18px',
31
31
  /**
@@ -36,11 +36,14 @@ const Code = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Code({
36
36
  codeBidiWarningLabel: codeBidiWarningLabel,
37
37
  codeBidiWarningTooltipEnabled: codeBidiWarningTooltipEnabled
38
38
  }, children) : children;
39
- return jsx("code", _extends({
40
- ref: ref,
41
- "data-testid": testId,
42
- css: styles
43
- }, otherProps), decoratedChildren);
39
+ return (
40
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
41
+ jsx("code", _extends({
42
+ ref: ref,
43
+ "data-testid": testId,
44
+ css: styles
45
+ }, otherProps), decoratedChildren)
46
+ );
44
47
  }));
45
48
  function RenderCodeChildrenWithBidiWarnings({
46
49
  children,
@@ -25,7 +25,7 @@ var decoration = css({
25
25
  background: "var(--ds-background-warning, ".concat(Y75, ")"),
26
26
  color: "var(--ds-text-warning, #7F5F01)",
27
27
  content: '"<"attr(data-bidi-character-code)">"',
28
- fontSize: "var(--ds-font-size-100, 14px)",
28
+ fontSize: '14px',
29
29
  fontStyle: 'normal',
30
30
  lineHeight: '18px',
31
31
  /**
package/dist/esm/code.js CHANGED
@@ -38,11 +38,14 @@ var Code = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Code(_ref, ref) {
38
38
  codeBidiWarningLabel: codeBidiWarningLabel,
39
39
  codeBidiWarningTooltipEnabled: codeBidiWarningTooltipEnabled
40
40
  }, children) : children;
41
- return jsx("code", _extends({
42
- ref: ref,
43
- "data-testid": testId,
44
- css: styles
45
- }, otherProps), decoratedChildren);
41
+ return (
42
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
43
+ jsx("code", _extends({
44
+ ref: ref,
45
+ "data-testid": testId,
46
+ css: styles
47
+ }, otherProps), decoratedChildren)
48
+ );
46
49
  }));
47
50
  function RenderCodeChildrenWithBidiWarnings(_ref2) {
48
51
  var children = _ref2.children,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/code",
3
- "version": "15.3.0",
3
+ "version": "15.3.1",
4
4
  "description": "Code highlights short strings of code snippets inline with body text.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -28,8 +28,8 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@atlaskit/codemod-utils": "^4.2.0",
31
- "@atlaskit/theme": "^12.10.0",
32
- "@atlaskit/tokens": "^1.51.0",
31
+ "@atlaskit/theme": "^12.11.0",
32
+ "@atlaskit/tokens": "^1.53.0",
33
33
  "@atlaskit/tooltip": "^18.5.0",
34
34
  "@atlaskit/visually-hidden": "^1.4.0",
35
35
  "@babel/runtime": "^7.0.0",