@atlaskit/code 16.0.3 → 16.2.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,23 @@
|
|
|
1
1
|
# @atlaskit/code
|
|
2
2
|
|
|
3
|
+
## 16.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#135035](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/135035)
|
|
8
|
+
[`0d6128bb1e136`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0d6128bb1e136) -
|
|
9
|
+
CodeBlock now correctly applies syntax highlighting for the ABAP language. This change is no
|
|
10
|
+
longer behind a feature flag.
|
|
11
|
+
|
|
12
|
+
## 16.1.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#130207](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/130207)
|
|
17
|
+
[`555f7dfaf77f8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/555f7dfaf77f8) -
|
|
18
|
+
CodeBlock now correctly applies syntax highlighting for the ABAP language. This change is behind
|
|
19
|
+
the feature flag `platform_dst_code_abap_syntax`.
|
|
20
|
+
|
|
3
21
|
## 16.0.3
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/cjs/constants.js
CHANGED
|
@@ -13,6 +13,7 @@ exports.SUPPORTED_LANGUAGES = void 0;
|
|
|
13
13
|
var _constants = require("./internal/theme/constants");
|
|
14
14
|
// The full list of languages that can potentially be supported is found in
|
|
15
15
|
// https://prismjs.com/#supported-languages
|
|
16
|
+
|
|
16
17
|
var SUPPORTED_LANGUAGES = exports.SUPPORTED_LANGUAGES = [{
|
|
17
18
|
name: 'PHP',
|
|
18
19
|
alias: ['php', 'php3', 'php4', 'php5'],
|
|
@@ -269,10 +270,6 @@ var SUPPORTED_LANGUAGES = exports.SUPPORTED_LANGUAGES = [{
|
|
|
269
270
|
name: 'Vala',
|
|
270
271
|
alias: ['vala', 'vapi'],
|
|
271
272
|
value: 'vala'
|
|
272
|
-
}, {
|
|
273
|
-
name: 'ABAP',
|
|
274
|
-
alias: ['abap'],
|
|
275
|
-
value: 'sql'
|
|
276
273
|
}, {
|
|
277
274
|
name: 'LiveScript',
|
|
278
275
|
alias: ['livescript', 'live-script'],
|
|
@@ -337,4 +334,8 @@ var SUPPORTED_LANGUAGES = exports.SUPPORTED_LANGUAGES = [{
|
|
|
337
334
|
name: 'Protocol Buffers',
|
|
338
335
|
alias: ['protobuf', 'proto'],
|
|
339
336
|
value: 'protobuf'
|
|
337
|
+
}, {
|
|
338
|
+
name: 'ABAP',
|
|
339
|
+
alias: ['abap'],
|
|
340
|
+
value: 'abap'
|
|
340
341
|
}];
|
package/dist/es2019/constants.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// The full list of languages that can potentially be supported is found in
|
|
2
2
|
// https://prismjs.com/#supported-languages
|
|
3
|
+
|
|
3
4
|
export const SUPPORTED_LANGUAGES = [{
|
|
4
5
|
name: 'PHP',
|
|
5
6
|
alias: ['php', 'php3', 'php4', 'php5'],
|
|
@@ -256,10 +257,6 @@ export const SUPPORTED_LANGUAGES = [{
|
|
|
256
257
|
name: 'Vala',
|
|
257
258
|
alias: ['vala', 'vapi'],
|
|
258
259
|
value: 'vala'
|
|
259
|
-
}, {
|
|
260
|
-
name: 'ABAP',
|
|
261
|
-
alias: ['abap'],
|
|
262
|
-
value: 'sql'
|
|
263
260
|
}, {
|
|
264
261
|
name: 'LiveScript',
|
|
265
262
|
alias: ['livescript', 'live-script'],
|
|
@@ -324,5 +321,9 @@ export const SUPPORTED_LANGUAGES = [{
|
|
|
324
321
|
name: 'Protocol Buffers',
|
|
325
322
|
alias: ['protobuf', 'proto'],
|
|
326
323
|
value: 'protobuf'
|
|
324
|
+
}, {
|
|
325
|
+
name: 'ABAP',
|
|
326
|
+
alias: ['abap'],
|
|
327
|
+
value: 'abap'
|
|
327
328
|
}];
|
|
328
329
|
export { CODE_BLOCK_SELECTOR } from './internal/theme/constants';
|
package/dist/esm/constants.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// The full list of languages that can potentially be supported is found in
|
|
2
2
|
// https://prismjs.com/#supported-languages
|
|
3
|
+
|
|
3
4
|
export var SUPPORTED_LANGUAGES = [{
|
|
4
5
|
name: 'PHP',
|
|
5
6
|
alias: ['php', 'php3', 'php4', 'php5'],
|
|
@@ -256,10 +257,6 @@ export var SUPPORTED_LANGUAGES = [{
|
|
|
256
257
|
name: 'Vala',
|
|
257
258
|
alias: ['vala', 'vapi'],
|
|
258
259
|
value: 'vala'
|
|
259
|
-
}, {
|
|
260
|
-
name: 'ABAP',
|
|
261
|
-
alias: ['abap'],
|
|
262
|
-
value: 'sql'
|
|
263
260
|
}, {
|
|
264
261
|
name: 'LiveScript',
|
|
265
262
|
alias: ['livescript', 'live-script'],
|
|
@@ -324,5 +321,9 @@ export var SUPPORTED_LANGUAGES = [{
|
|
|
324
321
|
name: 'Protocol Buffers',
|
|
325
322
|
alias: ['protobuf', 'proto'],
|
|
326
323
|
value: 'protobuf'
|
|
324
|
+
}, {
|
|
325
|
+
name: 'ABAP',
|
|
326
|
+
alias: ['abap'],
|
|
327
|
+
value: 'abap'
|
|
327
328
|
}];
|
|
328
329
|
export { CODE_BLOCK_SELECTOR } from './internal/theme/constants';
|
|
@@ -254,10 +254,6 @@ export declare const SUPPORTED_LANGUAGES: readonly [{
|
|
|
254
254
|
readonly name: "Vala";
|
|
255
255
|
readonly alias: readonly ["vala", "vapi"];
|
|
256
256
|
readonly value: "vala";
|
|
257
|
-
}, {
|
|
258
|
-
readonly name: "ABAP";
|
|
259
|
-
readonly alias: readonly ["abap"];
|
|
260
|
-
readonly value: "sql";
|
|
261
257
|
}, {
|
|
262
258
|
readonly name: "LiveScript";
|
|
263
259
|
readonly alias: readonly ["livescript", "live-script"];
|
|
@@ -322,6 +318,10 @@ export declare const SUPPORTED_LANGUAGES: readonly [{
|
|
|
322
318
|
readonly name: "Protocol Buffers";
|
|
323
319
|
readonly alias: readonly ["protobuf", "proto"];
|
|
324
320
|
readonly value: "protobuf";
|
|
321
|
+
}, {
|
|
322
|
+
readonly name: "ABAP";
|
|
323
|
+
readonly alias: readonly ["abap"];
|
|
324
|
+
readonly value: "abap";
|
|
325
325
|
}];
|
|
326
326
|
export { CODE_BLOCK_SELECTOR } from './internal/theme/constants';
|
|
327
327
|
export type Language = (typeof SUPPORTED_LANGUAGES)[number];
|
|
@@ -519,13 +519,6 @@ export declare const SUPPORTED_LANGUAGES: readonly [
|
|
|
519
519
|
];
|
|
520
520
|
readonly value: "vala";
|
|
521
521
|
},
|
|
522
|
-
{
|
|
523
|
-
readonly name: "ABAP";
|
|
524
|
-
readonly alias: readonly [
|
|
525
|
-
"abap"
|
|
526
|
-
];
|
|
527
|
-
readonly value: "sql";
|
|
528
|
-
},
|
|
529
522
|
{
|
|
530
523
|
readonly name: "LiveScript";
|
|
531
524
|
readonly alias: readonly [
|
|
@@ -647,6 +640,13 @@ export declare const SUPPORTED_LANGUAGES: readonly [
|
|
|
647
640
|
"proto"
|
|
648
641
|
];
|
|
649
642
|
readonly value: "protobuf";
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
readonly name: "ABAP";
|
|
646
|
+
readonly alias: readonly [
|
|
647
|
+
"abap"
|
|
648
|
+
];
|
|
649
|
+
readonly value: "abap";
|
|
650
650
|
}
|
|
651
651
|
];
|
|
652
652
|
export { CODE_BLOCK_SELECTOR } from './internal/theme/constants';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/code",
|
|
3
|
-
"version": "16.0
|
|
3
|
+
"version": "16.2.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/"
|
|
@@ -45,15 +45,16 @@
|
|
|
45
45
|
"@af/accessibility-testing": "^2.0.0",
|
|
46
46
|
"@af/integration-testing": "^0.5.0",
|
|
47
47
|
"@af/visual-regression": "^1.3.0",
|
|
48
|
-
"@atlaskit/button": "^
|
|
48
|
+
"@atlaskit/button": "^23.0.0",
|
|
49
49
|
"@atlaskit/docs": "^10.0.0",
|
|
50
50
|
"@atlaskit/ds-lib": "^4.0.0",
|
|
51
51
|
"@atlaskit/form": "^12.0.0",
|
|
52
|
-
"@atlaskit/link": "^3.
|
|
52
|
+
"@atlaskit/link": "^3.1.0",
|
|
53
53
|
"@atlaskit/primitives": "^14.2.0",
|
|
54
54
|
"@atlaskit/section-message": "^8.2.0",
|
|
55
55
|
"@atlaskit/ssr": "^0.4.0",
|
|
56
56
|
"@atlaskit/toggle": "^15.0.0",
|
|
57
|
+
"@atlassian/ssr-tests": "^0.2.0",
|
|
57
58
|
"@compiled/react": "^0.18.3",
|
|
58
59
|
"@testing-library/react": "^13.4.0",
|
|
59
60
|
"@types/jscodeshift": "^0.11.0",
|