@atlaskit/code 15.2.1 → 15.3.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,14 @@
1
1
  # @atlaskit/code
2
2
 
3
+ ## 15.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#111878](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111878)
8
+ [`223959ef57c80`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/223959ef57c80) -
9
+ Explicitly set jsxRuntime to classic via pragma comments in order to avoid issues where jsxRuntime
10
+ is implicitly set to automatic.
11
+
3
12
  ## 15.2.1
4
13
 
5
14
  ### Patch Changes
@@ -2,7 +2,10 @@ import React from 'react';
2
2
 
3
3
  import { CodeBlock } from '../src';
4
4
 
5
- export const text = `/** @jsx jsx */
5
+ export const text = `/**
6
+ * @jsxRuntime classic
7
+ */
8
+ /** @jsx jsx */
6
9
  import React from 'react';
7
10
  import ReactDOM from 'react-dom';
8
11
  import styled from '@emotion/styled';
@@ -1,5 +1,8 @@
1
1
  // eslint-disable-file
2
2
  export const hundredLineExample = `/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
3
+ /**
4
+ * @jsxRuntime classic
5
+ */
3
6
  /** @jsx jsx */
4
7
  import React, { CSSProperties, forwardRef } from 'react';
5
8
 
@@ -9,8 +9,13 @@ var _react = require("react");
9
9
  var _react2 = require("@emotion/react");
10
10
  var _colors = require("@atlaskit/theme/colors");
11
11
  var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
12
+ /**
13
+ * @jsxRuntime classic
14
+ */
12
15
  /** @jsx jsx */
13
16
 
17
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
18
+
14
19
  var decoration = (0, _react2.css)({
15
20
  // Required as otherwise the following bidi characters cause the span
16
21
  // to not receive hover events.
@@ -18,6 +23,7 @@ var decoration = (0, _react2.css)({
18
23
  // U+2066 LEFT-TO-RIGHT ISOLATE (when using pseudo element before)
19
24
  // U+202E RIGHT-TO-LEFT OVERRIDE' (when using pseudo element after)
20
25
  position: 'relative',
26
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
21
27
  ':before': {
22
28
  display: 'inline-flex',
23
29
  padding: "var(--ds-space-0, 0px)".concat(" ", "var(--ds-space-050, 4px)"),
@@ -36,6 +42,7 @@ var decoration = (0, _react2.css)({
36
42
  */
37
43
  pointerEvents: 'auto'
38
44
  },
45
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
39
46
  ':hover:before': {
40
47
  background: "var(--ds-background-warning-hovered, ".concat(_colors.Y75, ")"),
41
48
  color: "var(--ds-text-warning, #533F04)"
@@ -11,8 +11,13 @@ var _useHighlight = require("./internal/hooks/use-highlight");
11
11
  var _styles = require("./internal/theme/styles");
12
12
  var _getNormalizedLanguage = require("./internal/utils/get-normalized-language");
13
13
  var _syntaxHighlighter = _interopRequireDefault(require("./syntax-highlighter"));
14
+ /**
15
+ * @jsxRuntime classic
16
+ */
14
17
  /** @jsx jsx */
15
18
 
19
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
20
+
16
21
  /**
17
22
  * __Code block__
18
23
  *
@@ -50,7 +55,9 @@ var CodeBlock = /*#__PURE__*/(0, _react.memo)(function CodeBlock(_ref) {
50
55
  return (0, _styles.getCodeBlockStyles)(theme);
51
56
  }, [theme]);
52
57
  var styles = (0, _react.useMemo)(function () {
53
- return (0, _react2.css)(getStyles(highlightedStartText, highlightedEndText, showLineNumbers, shouldWrapLongLines));
58
+ return (0, _react2.css)(
59
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
60
+ getStyles(highlightedStartText, highlightedEndText, showLineNumbers, shouldWrapLongLines));
54
61
  }, [highlightedStartText, highlightedEndText, showLineNumbers, shouldWrapLongLines, getStyles]);
55
62
  var _useHighlightLines = (0, _useHighlight.useHighlightLines)({
56
63
  highlight: highlight,
package/dist/cjs/code.js CHANGED
@@ -21,7 +21,11 @@ var _bidiWarningDecorator = _interopRequireDefault(require("./bidi-warning/bidi-
21
21
  var _styles = require("./internal/theme/styles");
22
22
  var _excluded = ["testId"],
23
23
  _excluded2 = ["children", "codeBidiWarnings", "codeBidiWarningLabel", "codeBidiWarningTooltipEnabled"];
24
+ /**
25
+ * @jsxRuntime classic
26
+ */
24
27
  /** @jsx jsx */
28
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
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); }
26
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; }
27
31
  /**
@@ -36,6 +40,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
36
40
  var Code = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(function Code(_ref, ref) {
37
41
  var testId = _ref.testId,
38
42
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
43
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
39
44
  var styles = (0, _react2.css)((0, _styles.getCodeStyles)());
40
45
  var children = props.children,
41
46
  _props$codeBidiWarnin = props.codeBidiWarnings,
@@ -9,7 +9,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
9
9
  var _constants = require("./constants");
10
10
  var _getTheme = require("./get-theme");
11
11
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
12
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
13
13
  var getLineNumWidth = exports.getLineNumWidth = function getLineNumWidth(numLines) {
14
14
  if (!numLines) {
15
15
  return '1ch';
@@ -13,6 +13,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
13
13
  var _react = _interopRequireDefault(require("react"));
14
14
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
15
15
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
16
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
16
17
  // This wrapper supports the async loading of refractor and language grammars. The internal Highlight is a memo() functional component as expected
17
18
  // eslint-disable-next-line @repo/internal/react/no-class-components
18
19
  var SyntaxHighlighter = exports.SyntaxHighlighter = /*#__PURE__*/function (_React$PureComponent) {
@@ -1,5 +1,10 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { Fragment } from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
8
  import { css, jsx } from '@emotion/react';
4
9
  import { Y75 } from '@atlaskit/theme/colors';
5
10
  import VisuallyHidden from '@atlaskit/visually-hidden';
@@ -10,6 +15,7 @@ const decoration = css({
10
15
  // U+2066 LEFT-TO-RIGHT ISOLATE (when using pseudo element before)
11
16
  // U+202E RIGHT-TO-LEFT OVERRIDE' (when using pseudo element after)
12
17
  position: 'relative',
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
13
19
  ':before': {
14
20
  display: 'inline-flex',
15
21
  padding: `${"var(--ds-space-0, 0px)"} ${"var(--ds-space-050, 4px)"}`,
@@ -28,6 +34,7 @@ const decoration = css({
28
34
  */
29
35
  pointerEvents: 'auto'
30
36
  },
37
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
31
38
  ':hover:before': {
32
39
  background: `var(--ds-background-warning-hovered, ${Y75})`,
33
40
  color: "var(--ds-text-warning, #533F04)"
@@ -1,5 +1,10 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { memo, useCallback, useMemo } from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
8
  import { css, jsx } from '@emotion/react';
4
9
  import { useHighlightLines } from './internal/hooks/use-highlight';
5
10
  import { getCodeBlockStyles, getCodeBlockTheme } from './internal/theme/styles';
@@ -31,7 +36,9 @@ const CodeBlock = /*#__PURE__*/memo(function CodeBlock({
31
36
  const numLines = (text || '').split('\n').length;
32
37
  const theme = useMemo(() => getCodeBlockTheme(numLines), [numLines]);
33
38
  const getStyles = useMemo(() => getCodeBlockStyles(theme), [theme]);
34
- const styles = useMemo(() => css(getStyles(highlightedStartText, highlightedEndText, showLineNumbers, shouldWrapLongLines)), [highlightedStartText, highlightedEndText, showLineNumbers, shouldWrapLongLines, getStyles]);
39
+ const styles = useMemo(() => css(
40
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
41
+ getStyles(highlightedStartText, highlightedEndText, showLineNumbers, shouldWrapLongLines)), [highlightedStartText, highlightedEndText, showLineNumbers, shouldWrapLongLines, getStyles]);
35
42
  const {
36
43
  getHighlightStyles,
37
44
  highlightedLines
@@ -1,6 +1,11 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ /**
3
+ * @jsxRuntime classic
4
+ */
2
5
  /** @jsx jsx */
3
6
  import React, { forwardRef, memo } from 'react';
7
+
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
9
  import { css, jsx } from '@emotion/react';
5
10
  import CodeBidiWarning from './bidi-warning';
6
11
  import codeBidiWarningDecorator from './bidi-warning/bidi-warning-decorator';
@@ -18,6 +23,7 @@ const Code = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Code({
18
23
  testId,
19
24
  ...props
20
25
  }, ref) {
26
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
21
27
  const styles = css(getCodeStyles());
22
28
  const {
23
29
  children,
@@ -1,3 +1,5 @@
1
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
+
1
3
  import { CODE_FONT_SIZE, CODE_LINE_HEIGHT, HIGHLIGHT_BORDER_WIDTH, LINE_NUMBER_GUTTER, SPACING, VAR_CODE_BG_COLOR, VAR_CODE_LINE_NUMBER_BG_COLOR } from './constants';
2
4
  import { getBaseTheme, getColorPalette } from './get-theme';
3
5
  export const getLineNumWidth = numLines => {
@@ -1,4 +1,7 @@
1
1
  import React from 'react';
2
+
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
+
2
5
  // This wrapper supports the async loading of refractor and language grammars. The internal Highlight is a memo() functional component as expected
3
6
  // eslint-disable-next-line @repo/internal/react/no-class-components
4
7
  export class SyntaxHighlighter extends React.PureComponent {}
@@ -1,5 +1,10 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { Fragment } from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
8
  import { css, jsx } from '@emotion/react';
4
9
  import { Y75 } from '@atlaskit/theme/colors';
5
10
  import VisuallyHidden from '@atlaskit/visually-hidden';
@@ -10,6 +15,7 @@ var decoration = css({
10
15
  // U+2066 LEFT-TO-RIGHT ISOLATE (when using pseudo element before)
11
16
  // U+202E RIGHT-TO-LEFT OVERRIDE' (when using pseudo element after)
12
17
  position: 'relative',
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
13
19
  ':before': {
14
20
  display: 'inline-flex',
15
21
  padding: "var(--ds-space-0, 0px)".concat(" ", "var(--ds-space-050, 4px)"),
@@ -28,6 +34,7 @@ var decoration = css({
28
34
  */
29
35
  pointerEvents: 'auto'
30
36
  },
37
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
31
38
  ':hover:before': {
32
39
  background: "var(--ds-background-warning-hovered, ".concat(Y75, ")"),
33
40
  color: "var(--ds-text-warning, #533F04)"
@@ -1,5 +1,10 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { memo, useCallback, useMemo } from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
8
  import { css, jsx } from '@emotion/react';
4
9
  import { useHighlightLines } from './internal/hooks/use-highlight';
5
10
  import { getCodeBlockStyles, getCodeBlockTheme } from './internal/theme/styles';
@@ -43,7 +48,9 @@ var CodeBlock = /*#__PURE__*/memo(function CodeBlock(_ref) {
43
48
  return getCodeBlockStyles(theme);
44
49
  }, [theme]);
45
50
  var styles = useMemo(function () {
46
- return css(getStyles(highlightedStartText, highlightedEndText, showLineNumbers, shouldWrapLongLines));
51
+ return css(
52
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
53
+ getStyles(highlightedStartText, highlightedEndText, showLineNumbers, shouldWrapLongLines));
47
54
  }, [highlightedStartText, highlightedEndText, showLineNumbers, shouldWrapLongLines, getStyles]);
48
55
  var _useHighlightLines = useHighlightLines({
49
56
  highlight: highlight,
package/dist/esm/code.js CHANGED
@@ -2,8 +2,13 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["testId"],
4
4
  _excluded2 = ["children", "codeBidiWarnings", "codeBidiWarningLabel", "codeBidiWarningTooltipEnabled"];
5
+ /**
6
+ * @jsxRuntime classic
7
+ */
5
8
  /** @jsx jsx */
6
9
  import React, { forwardRef, memo } from 'react';
10
+
11
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
12
  import { css, jsx } from '@emotion/react';
8
13
  import CodeBidiWarning from './bidi-warning';
9
14
  import codeBidiWarningDecorator from './bidi-warning/bidi-warning-decorator';
@@ -20,6 +25,7 @@ import { getCodeStyles } from './internal/theme/styles';
20
25
  var Code = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Code(_ref, ref) {
21
26
  var testId = _ref.testId,
22
27
  props = _objectWithoutProperties(_ref, _excluded);
28
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
23
29
  var styles = css(getCodeStyles());
24
30
  var children = props.children,
25
31
  _props$codeBidiWarnin = props.codeBidiWarnings,
@@ -1,6 +1,8 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
+
4
6
  import { CODE_FONT_SIZE, CODE_LINE_HEIGHT, HIGHLIGHT_BORDER_WIDTH, LINE_NUMBER_GUTTER, SPACING, VAR_CODE_BG_COLOR, VAR_CODE_LINE_NUMBER_BG_COLOR } from './constants';
5
7
  import { getBaseTheme, getColorPalette } from './get-theme';
6
8
  export var getLineNumWidth = function getLineNumWidth(numLines) {
@@ -6,6 +6,9 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
6
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7
7
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
8
  import React from 'react';
9
+
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
+
9
12
  // This wrapper supports the async loading of refractor and language grammars. The internal Highlight is a memo() functional component as expected
10
13
  // eslint-disable-next-line @repo/internal/react/no-class-components
11
14
  export var SyntaxHighlighter = /*#__PURE__*/function (_React$PureComponent) {
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type ReactNode } from 'react';
3
6
  import { jsx } from '@emotion/react';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import React from 'react';
3
6
  import { getCodeStyles } from './internal/theme/styles';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type ReactNode } from 'react';
3
6
  import { jsx } from '@emotion/react';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import React from 'react';
3
6
  import { getCodeStyles } from './internal/theme/styles';
package/package.json CHANGED
@@ -1,109 +1,109 @@
1
1
  {
2
- "name": "@atlaskit/code",
3
- "version": "15.2.1",
4
- "description": "Code highlights short strings of code snippets inline with body text.",
5
- "publishConfig": {
6
- "registry": "https://registry.npmjs.org/"
7
- },
8
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
- "author": "Atlassian Pty Ltd",
10
- "license": "Apache-2.0",
11
- "main": "dist/cjs/index.js",
12
- "module": "dist/esm/index.js",
13
- "module:es2019": "dist/es2019/index.js",
14
- "types": "dist/types/index.d.ts",
15
- "sideEffects": false,
16
- "atlaskit:src": "src/index.tsx",
17
- "atlassian": {
18
- "team": "Design System Team",
19
- "releaseModel": "continuous",
20
- "website": {
21
- "name": "Code",
22
- "category": "Components"
23
- },
24
- "runReact18": true
25
- },
26
- "config": {
27
- "access": "public"
28
- },
29
- "dependencies": {
30
- "@atlaskit/codemod-utils": "^4.2.0",
31
- "@atlaskit/theme": "^12.9.0",
32
- "@atlaskit/tokens": "^1.50.0",
33
- "@atlaskit/tooltip": "^18.4.0",
34
- "@atlaskit/visually-hidden": "^1.3.0",
35
- "@babel/runtime": "^7.0.0",
36
- "@emotion/react": "^11.7.1",
37
- "memoize-one": "^6.0.0",
38
- "refractor": "^3.6.0"
39
- },
40
- "peerDependencies": {
41
- "react": "^16.8.0 || ^17.0.0 || ~18.2.0"
42
- },
43
- "devDependencies": {
44
- "@af/accessibility-testing": "*",
45
- "@af/integration-testing": "*",
46
- "@af/visual-regression": "*",
47
- "@atlaskit/ds-lib": "^2.3.0",
48
- "@atlaskit/ssr": "*",
49
- "@atlaskit/toggle": "^13.1.0",
50
- "@atlaskit/visual-regression": "*",
51
- "@testing-library/react": "^12.1.5",
52
- "@types/jscodeshift": "^0.11.0",
53
- "@types/refractor": "^3.0.2",
54
- "color-contrast-checker": "^1.5.0",
55
- "jscodeshift": "^0.13.0",
56
- "prismjs": "^1.25.0",
57
- "react-dom": "^16.8.0",
58
- "typescript": "~5.4.2"
59
- },
60
- "keywords": [
61
- "atlaskit",
62
- "react",
63
- "ui"
64
- ],
65
- "techstack": {
66
- "@atlassian/frontend": {
67
- "import-structure": "atlassian-conventions"
68
- },
69
- "@repo/internal": {
70
- "design-system": "v1",
71
- "design-tokens": [
72
- "color",
73
- "spacing"
74
- ],
75
- "dom-events": "use-bind-event-listener",
76
- "ui-components": [
77
- "lite-mode"
78
- ],
79
- "analytics": [
80
- "analytics-next"
81
- ],
82
- "theming": [
83
- "react-context"
84
- ],
85
- "deprecation": "no-deprecated-imports",
86
- "styling": [
87
- "emotion"
88
- ]
89
- }
90
- },
91
- "typesVersions": {
92
- ">=4.5 <4.9": {
93
- "*": [
94
- "dist/types-ts4.5/*",
95
- "dist/types-ts4.5/index.d.ts"
96
- ]
97
- }
98
- },
99
- "af:exports": {
100
- "./types": "./src/entry-points/types.tsx",
101
- ".": "./src/index.tsx",
102
- "./bidi-warning": "./src/bidi-warning/index.tsx",
103
- "./bidi-warning-decorator": "./src/bidi-warning/bidi-warning-decorator.tsx",
104
- "./block": "./src/entry-points/block.tsx",
105
- "./inline": "./src/entry-points/inline.tsx",
106
- "./constants": "./src/entry-points/constants.tsx"
107
- },
108
- "homepage": "https://atlassian.design/components/code/"
109
- }
2
+ "name": "@atlaskit/code",
3
+ "version": "15.3.0",
4
+ "description": "Code highlights short strings of code snippets inline with body text.",
5
+ "publishConfig": {
6
+ "registry": "https://registry.npmjs.org/"
7
+ },
8
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
+ "author": "Atlassian Pty Ltd",
10
+ "license": "Apache-2.0",
11
+ "main": "dist/cjs/index.js",
12
+ "module": "dist/esm/index.js",
13
+ "module:es2019": "dist/es2019/index.js",
14
+ "types": "dist/types/index.d.ts",
15
+ "sideEffects": false,
16
+ "atlaskit:src": "src/index.tsx",
17
+ "atlassian": {
18
+ "team": "Design System Team",
19
+ "releaseModel": "continuous",
20
+ "website": {
21
+ "name": "Code",
22
+ "category": "Components"
23
+ },
24
+ "runReact18": true
25
+ },
26
+ "config": {
27
+ "access": "public"
28
+ },
29
+ "dependencies": {
30
+ "@atlaskit/codemod-utils": "^4.2.0",
31
+ "@atlaskit/theme": "^12.10.0",
32
+ "@atlaskit/tokens": "^1.51.0",
33
+ "@atlaskit/tooltip": "^18.5.0",
34
+ "@atlaskit/visually-hidden": "^1.4.0",
35
+ "@babel/runtime": "^7.0.0",
36
+ "@emotion/react": "^11.7.1",
37
+ "memoize-one": "^6.0.0",
38
+ "refractor": "^3.6.0"
39
+ },
40
+ "peerDependencies": {
41
+ "react": "^16.8.0 || ^17.0.0 || ~18.2.0"
42
+ },
43
+ "devDependencies": {
44
+ "@af/accessibility-testing": "*",
45
+ "@af/integration-testing": "*",
46
+ "@af/visual-regression": "*",
47
+ "@atlaskit/ds-lib": "^2.3.0",
48
+ "@atlaskit/ssr": "*",
49
+ "@atlaskit/toggle": "^13.2.0",
50
+ "@atlaskit/visual-regression": "*",
51
+ "@testing-library/react": "^12.1.5",
52
+ "@types/jscodeshift": "^0.11.0",
53
+ "@types/refractor": "^3.0.2",
54
+ "color-contrast-checker": "^1.5.0",
55
+ "jscodeshift": "^0.13.0",
56
+ "prismjs": "^1.25.0",
57
+ "react-dom": "^16.8.0",
58
+ "typescript": "~5.4.2"
59
+ },
60
+ "keywords": [
61
+ "atlaskit",
62
+ "react",
63
+ "ui"
64
+ ],
65
+ "techstack": {
66
+ "@atlassian/frontend": {
67
+ "import-structure": "atlassian-conventions"
68
+ },
69
+ "@repo/internal": {
70
+ "design-system": "v1",
71
+ "design-tokens": [
72
+ "color",
73
+ "spacing"
74
+ ],
75
+ "dom-events": "use-bind-event-listener",
76
+ "ui-components": [
77
+ "lite-mode"
78
+ ],
79
+ "analytics": [
80
+ "analytics-next"
81
+ ],
82
+ "theming": [
83
+ "react-context"
84
+ ],
85
+ "deprecation": "no-deprecated-imports",
86
+ "styling": [
87
+ "emotion"
88
+ ]
89
+ }
90
+ },
91
+ "typesVersions": {
92
+ ">=4.5 <4.9": {
93
+ "*": [
94
+ "dist/types-ts4.5/*",
95
+ "dist/types-ts4.5/index.d.ts"
96
+ ]
97
+ }
98
+ },
99
+ "af:exports": {
100
+ "./types": "./src/entry-points/types.tsx",
101
+ ".": "./src/index.tsx",
102
+ "./bidi-warning": "./src/bidi-warning/index.tsx",
103
+ "./bidi-warning-decorator": "./src/bidi-warning/bidi-warning-decorator.tsx",
104
+ "./block": "./src/entry-points/block.tsx",
105
+ "./inline": "./src/entry-points/inline.tsx",
106
+ "./constants": "./src/entry-points/constants.tsx"
107
+ },
108
+ "homepage": "https://atlassian.design/components/code/"
109
+ }