@atlaskit/code 15.4.0 → 15.4.2

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,21 @@
1
1
  # @atlaskit/code
2
2
 
3
+ ## 15.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#120049](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/120049)
8
+ [`77504ff274f72`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/77504ff274f72) -
9
+ DSP-19576: Assign names to anonymous default exports
10
+
11
+ ## 15.4.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [#118430](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/118430)
16
+ [`d5fe97a9a6bc1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d5fe97a9a6bc1) -
17
+ Remove remnants of `extract-react-types`.
18
+
3
19
  ## 15.4.0
4
20
 
5
21
  ### Minor Changes
@@ -75,7 +75,7 @@ var generator = function generator(options) {
75
75
  (0, _defineProperty2.default)(AsyncHighlighter, "highlightInstance", _highlight.default);
76
76
  return AsyncHighlighter;
77
77
  };
78
- var _default = exports.default = generator({
78
+ var asyncGenerator = generator({
79
79
  loader: function loader() {
80
80
  return Promise.resolve().then(function () {
81
81
  return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_refractor-import" */
@@ -85,4 +85,5 @@ var _default = exports.default = generator({
85
85
  return module.default || module;
86
86
  });
87
87
  }
88
- });
88
+ });
89
+ var _default = exports.default = asyncGenerator;
@@ -42,10 +42,11 @@ const generator = options => {
42
42
  _defineProperty(AsyncHighlighter, "highlightInstance", highlight);
43
43
  return AsyncHighlighter;
44
44
  };
45
- export default generator({
45
+ const asyncGenerator = generator({
46
46
  loader: () => import( /* webpackChunkName: "@atlaskit-internal_refractor-import" */
47
47
  'refractor').then(module => {
48
48
  // Webpack 3 returns module.exports as default as module, but webpack 4 returns module.exports as module.default
49
49
  return module.default || module;
50
50
  })
51
- });
51
+ });
52
+ export default asyncGenerator;
@@ -65,7 +65,7 @@ var generator = function generator(options) {
65
65
  _defineProperty(AsyncHighlighter, "highlightInstance", highlight);
66
66
  return AsyncHighlighter;
67
67
  };
68
- export default generator({
68
+ var asyncGenerator = generator({
69
69
  loader: function loader() {
70
70
  return import( /* webpackChunkName: "@atlaskit-internal_refractor-import" */
71
71
  'refractor').then(function (module) {
@@ -73,4 +73,5 @@ export default generator({
73
73
  return module.default || module;
74
74
  });
75
75
  }
76
- });
76
+ });
77
+ export default asyncGenerator;
@@ -1,3 +1,3 @@
1
1
  import { type SyntaxHighlighter } from './types';
2
- declare const _default: typeof SyntaxHighlighter;
3
- export default _default;
2
+ declare const asyncGenerator: typeof SyntaxHighlighter;
3
+ export default asyncGenerator;
@@ -1,3 +1,3 @@
1
1
  import { type SyntaxHighlighter } from './types';
2
- declare const _default: typeof SyntaxHighlighter;
3
- export default _default;
2
+ declare const asyncGenerator: typeof SyntaxHighlighter;
3
+ export default asyncGenerator;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/code",
3
- "version": "15.4.0",
3
+ "version": "15.4.2",
4
4
  "description": "Code highlights short strings of code snippets inline with body text.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -29,7 +29,7 @@
29
29
  "dependencies": {
30
30
  "@atlaskit/codemod-utils": "^4.2.0",
31
31
  "@atlaskit/theme": "^12.11.0",
32
- "@atlaskit/tokens": "^1.53.0",
32
+ "@atlaskit/tokens": "^1.54.0",
33
33
  "@atlaskit/tooltip": "^18.5.0",
34
34
  "@atlaskit/visually-hidden": "^1.4.0",
35
35
  "@babel/runtime": "^7.0.0",
@@ -1,10 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = CodeBlock;
7
- // below type is redeclared from ../types to appease ERT
8
- function CodeBlock(__) {
9
- return null;
10
- }
@@ -1,4 +0,0 @@
1
- // below type is redeclared from ../types to appease ERT
2
- export default function CodeBlock(__) {
3
- return null;
4
- }
@@ -1,4 +0,0 @@
1
- // below type is redeclared from ../types to appease ERT
2
- export default function CodeBlock(__) {
3
- return null;
4
- }
@@ -1,47 +0,0 @@
1
- export default function CodeBlock(__: {
2
- /**
3
- * The code to be formatted.
4
- */
5
- text: string;
6
- /**
7
- * A unique string that appears as a data attribute `data-testid` in the rendered code. Serves as a hook for automated tests.
8
- */
9
- testId?: string;
10
- /**
11
- * Sets whether to display code line numbers or not. Defaults to `true`.
12
- */
13
- showLineNumbers?: boolean;
14
- /**
15
- Language reference designed to be populated from `SUPPORTED_LANGUAGES` in
16
- `design-system/code`. Run against language grammars from PrismJS (full list
17
- available at [PrismJS documentation](https://prismjs.com/#supported-languages)).
18
-
19
- When set to `text` will not perform highlighting. If unsupported language
20
- provided - code will be treated as "text" with no highlighting.
21
-
22
- Defaults to `text`.
23
- */
24
- language?: string;
25
- /**
26
- Comma delimited lines to highlight.
27
-
28
- Example uses:
29
- - To highlight one line `highlight="3"`
30
- - To highlight a group of lines `highlight="1-5"`
31
- - To highlight multiple groups `highlight="1-5,7,10,15-20"`
32
- */
33
- highlight?: string;
34
- /**
35
- * Screen reader text for the start of a highlighted line.
36
- */
37
- highlightedStartText?: string;
38
- /**
39
- * Screen reader text for the end of a highlighted line.
40
- */
41
- highlightedEndText?: string;
42
- /**
43
- * Sets whether long lines will create a horizontally scrolling container.
44
- * When set to `true`, these lines will visually wrap instead. Defaults to `false`.
45
- */
46
- shouldWrapLongLines?: boolean;
47
- }): null;
@@ -1,47 +0,0 @@
1
- export default function CodeBlock(__: {
2
- /**
3
- * The code to be formatted.
4
- */
5
- text: string;
6
- /**
7
- * A unique string that appears as a data attribute `data-testid` in the rendered code. Serves as a hook for automated tests.
8
- */
9
- testId?: string;
10
- /**
11
- * Sets whether to display code line numbers or not. Defaults to `true`.
12
- */
13
- showLineNumbers?: boolean;
14
- /**
15
- Language reference designed to be populated from `SUPPORTED_LANGUAGES` in
16
- `design-system/code`. Run against language grammars from PrismJS (full list
17
- available at [PrismJS documentation](https://prismjs.com/#supported-languages)).
18
-
19
- When set to `text` will not perform highlighting. If unsupported language
20
- provided - code will be treated as "text" with no highlighting.
21
-
22
- Defaults to `text`.
23
- */
24
- language?: string;
25
- /**
26
- Comma delimited lines to highlight.
27
-
28
- Example uses:
29
- - To highlight one line `highlight="3"`
30
- - To highlight a group of lines `highlight="1-5"`
31
- - To highlight multiple groups `highlight="1-5,7,10,15-20"`
32
- */
33
- highlight?: string;
34
- /**
35
- * Screen reader text for the start of a highlighted line.
36
- */
37
- highlightedStartText?: string;
38
- /**
39
- * Screen reader text for the end of a highlighted line.
40
- */
41
- highlightedEndText?: string;
42
- /**
43
- * Sets whether long lines will create a horizontally scrolling container.
44
- * When set to `true`, these lines will visually wrap instead. Defaults to `false`.
45
- */
46
- shouldWrapLongLines?: boolean;
47
- }): null;