@atlaskit/code 15.4.1 → 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 +8 -0
- package/dist/cjs/syntax-highlighter/async.js +3 -2
- package/dist/es2019/syntax-highlighter/async.js +3 -2
- package/dist/esm/syntax-highlighter/async.js +3 -2
- package/dist/types/syntax-highlighter/async.d.ts +2 -2
- package/dist/types-ts4.5/syntax-highlighter/async.d.ts +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
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
|
+
|
|
3
11
|
## 15.4.1
|
|
4
12
|
|
|
5
13
|
### Patch 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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
3
|
-
export 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
|
|
3
|
-
export 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.
|
|
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.
|
|
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",
|