@atlaskit/code 15.4.2 → 15.5.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 +16 -0
- package/__perf__/code-block-syntax-highlighting.tsx +1 -1
- package/__perf__/source-code-examples/100-line-example.tsx +1 -1
- package/dist/cjs/bidi-warning/ui/index.js +1 -0
- package/dist/cjs/bidi-warning/ui/styled.js +1 -1
- package/dist/cjs/code-block.js +1 -1
- package/dist/cjs/code.js +1 -1
- package/dist/es2019/bidi-warning/ui/index.js +1 -0
- package/dist/es2019/bidi-warning/ui/styled.js +1 -1
- package/dist/es2019/code-block.js +1 -1
- package/dist/es2019/code.js +1 -1
- package/dist/esm/bidi-warning/ui/index.js +1 -0
- package/dist/esm/bidi-warning/ui/styled.js +1 -1
- package/dist/esm/code-block.js +1 -1
- package/dist/esm/code.js +1 -1
- package/dist/types/bidi-warning/ui/styled.d.ts +1 -1
- package/dist/types/code.d.ts +1 -1
- package/dist/types-ts4.5/bidi-warning/ui/styled.d.ts +1 -1
- package/dist/types-ts4.5/code.d.ts +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/code
|
|
2
2
|
|
|
3
|
+
## 15.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#127511](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/127511)
|
|
8
|
+
[`db30e29344013`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/db30e29344013) -
|
|
9
|
+
Widening range of `react` and `react-dom` peer dependencies from `^16.8.0 || ^17.0.0 || ~18.2.0`
|
|
10
|
+
to the wider range of ``^16.8.0 || ^17.0.0 || ^18.0.0` (where applicable).
|
|
11
|
+
|
|
12
|
+
This change has been done to enable usage of `react@18.3` as well as to have a consistent peer
|
|
13
|
+
dependency range for `react` and `react-dom` for `/platform` packages.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 15.4.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
export const hundredLineExample = `/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
3
3
|
/**
|
|
4
4
|
* @jsxRuntime classic
|
|
5
|
+
* @jsx jsx
|
|
5
6
|
*/
|
|
6
|
-
/** @jsx jsx */
|
|
7
7
|
import React, { CSSProperties, forwardRef } from 'react';
|
|
8
8
|
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
@@ -31,6 +31,7 @@ function BidiWarning(_ref) {
|
|
|
31
31
|
/*#__PURE__*/
|
|
32
32
|
// Following patches, this should be updated to use the render props signature which will provide aria attributes.
|
|
33
33
|
// Note: this should be tested, as initial testing did not see attributes work with current tooltip implementation.
|
|
34
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
34
35
|
_react.default.createElement(_tooltip.default, {
|
|
35
36
|
content: label,
|
|
36
37
|
tag: CustomizedTagWithRef
|
|
@@ -11,8 +11,8 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
11
11
|
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
|
|
12
12
|
/**
|
|
13
13
|
* @jsxRuntime classic
|
|
14
|
+
* @jsx jsx
|
|
14
15
|
*/
|
|
15
|
-
/** @jsx jsx */
|
|
16
16
|
|
|
17
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
18
|
|
package/dist/cjs/code-block.js
CHANGED
|
@@ -13,8 +13,8 @@ var _getNormalizedLanguage = require("./internal/utils/get-normalized-language")
|
|
|
13
13
|
var _syntaxHighlighter = _interopRequireDefault(require("./syntax-highlighter"));
|
|
14
14
|
/**
|
|
15
15
|
* @jsxRuntime classic
|
|
16
|
+
* @jsx jsx
|
|
16
17
|
*/
|
|
17
|
-
/** @jsx jsx */
|
|
18
18
|
|
|
19
19
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
20
|
|
package/dist/cjs/code.js
CHANGED
|
@@ -23,8 +23,8 @@ var _excluded = ["testId"],
|
|
|
23
23
|
_excluded2 = ["children", "codeBidiWarnings", "codeBidiWarningLabel", "codeBidiWarningTooltipEnabled"];
|
|
24
24
|
/**
|
|
25
25
|
* @jsxRuntime classic
|
|
26
|
+
* @jsx jsx
|
|
26
27
|
*/
|
|
27
|
-
/** @jsx jsx */
|
|
28
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
29
29
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
30
30
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -22,6 +22,7 @@ export default function BidiWarning({
|
|
|
22
22
|
/*#__PURE__*/
|
|
23
23
|
// Following patches, this should be updated to use the render props signature which will provide aria attributes.
|
|
24
24
|
// Note: this should be tested, as initial testing did not see attributes work with current tooltip implementation.
|
|
25
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
25
26
|
React.createElement(Tooltip, {
|
|
26
27
|
content: label,
|
|
27
28
|
tag: CustomizedTagWithRef
|
package/dist/es2019/code.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/**
|
|
3
3
|
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
4
5
|
*/
|
|
5
|
-
/** @jsx jsx */
|
|
6
6
|
import React, { forwardRef, memo } from 'react';
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -24,6 +24,7 @@ export default function BidiWarning(_ref) {
|
|
|
24
24
|
/*#__PURE__*/
|
|
25
25
|
// Following patches, this should be updated to use the render props signature which will provide aria attributes.
|
|
26
26
|
// Note: this should be tested, as initial testing did not see attributes work with current tooltip implementation.
|
|
27
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
27
28
|
React.createElement(Tooltip, {
|
|
28
29
|
content: label,
|
|
29
30
|
tag: CustomizedTagWithRef
|
package/dist/esm/code-block.js
CHANGED
package/dist/esm/code.js
CHANGED
|
@@ -4,8 +4,8 @@ var _excluded = ["testId"],
|
|
|
4
4
|
_excluded2 = ["children", "codeBidiWarnings", "codeBidiWarningLabel", "codeBidiWarningTooltipEnabled"];
|
|
5
5
|
/**
|
|
6
6
|
* @jsxRuntime classic
|
|
7
|
+
* @jsx jsx
|
|
7
8
|
*/
|
|
8
|
-
/** @jsx jsx */
|
|
9
9
|
import React, { forwardRef, memo } from 'react';
|
|
10
10
|
|
|
11
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
package/dist/types/code.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/code",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.5.0",
|
|
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,25 +28,25 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
31
|
-
"@atlaskit/theme": "^12.
|
|
32
|
-
"@atlaskit/tokens": "^1.
|
|
33
|
-
"@atlaskit/tooltip": "^18.
|
|
34
|
-
"@atlaskit/visually-hidden": "^1.
|
|
31
|
+
"@atlaskit/theme": "^12.12.0",
|
|
32
|
+
"@atlaskit/tokens": "^1.58.0",
|
|
33
|
+
"@atlaskit/tooltip": "^18.7.0",
|
|
34
|
+
"@atlaskit/visually-hidden": "^1.5.0",
|
|
35
35
|
"@babel/runtime": "^7.0.0",
|
|
36
36
|
"@emotion/react": "^11.7.1",
|
|
37
37
|
"memoize-one": "^6.0.0",
|
|
38
38
|
"refractor": "^3.6.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"react": "^16.8.0 || ^17.0.0 ||
|
|
41
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@af/accessibility-testing": "*",
|
|
45
45
|
"@af/integration-testing": "*",
|
|
46
46
|
"@af/visual-regression": "*",
|
|
47
|
-
"@atlaskit/ds-lib": "^2.
|
|
47
|
+
"@atlaskit/ds-lib": "^2.4.0",
|
|
48
48
|
"@atlaskit/ssr": "*",
|
|
49
|
-
"@atlaskit/toggle": "^13.
|
|
49
|
+
"@atlaskit/toggle": "^13.3.0",
|
|
50
50
|
"@atlaskit/visual-regression": "*",
|
|
51
51
|
"@testing-library/react": "^12.1.5",
|
|
52
52
|
"@types/jscodeshift": "^0.11.0",
|