@atlaskit/code 17.1.0 → 17.1.1
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/code-block.js +1 -0
- package/dist/cjs/constants.js +4 -0
- package/dist/es2019/code-block.js +1 -0
- package/dist/es2019/constants.js +4 -0
- package/dist/esm/code-block.js +1 -0
- package/dist/esm/constants.js +4 -0
- package/dist/types/constants.d.ts +4 -0
- package/dist/types-ts4.5/constants.d.ts +8 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/code
|
|
2
2
|
|
|
3
|
+
## 17.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#152049](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/152049)
|
|
8
|
+
[`a2bdf059329e8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a2bdf059329e8) -
|
|
9
|
+
Add support for Gherkin language to code
|
|
10
|
+
|
|
3
11
|
## 17.1.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
package/dist/cjs/code-block.js
CHANGED
|
@@ -98,6 +98,7 @@ var CodeBlock = /*#__PURE__*/(0, _react.memo)(function CodeBlock(_ref) {
|
|
|
98
98
|
codeBidiWarningLabel: codeBidiWarningLabel,
|
|
99
99
|
codeBidiWarningTooltipEnabled: codeBidiWarningTooltipEnabled,
|
|
100
100
|
text: text,
|
|
101
|
+
tabIndex: "0",
|
|
101
102
|
className: (0, _runtime.ax)([getCodeBlockStyles.root, shouldWrapLongLines ? getCodeBlockStyles.shouldWrapLongLines : getCodeBlockStyles.dontWrapLongLines, showLineNumbers ? getCodeBlockStyles.showLineNumbers : getCodeBlockStyles.dontShowLineNumbers])
|
|
102
103
|
});
|
|
103
104
|
});
|
package/dist/cjs/constants.js
CHANGED
|
@@ -338,6 +338,10 @@ var SUPPORTED_LANGUAGES = exports.SUPPORTED_LANGUAGES = [{
|
|
|
338
338
|
name: 'Handlebars',
|
|
339
339
|
alias: ['handlebars', 'mustache'],
|
|
340
340
|
value: 'handlebars'
|
|
341
|
+
}, {
|
|
342
|
+
name: 'Gherkin',
|
|
343
|
+
alias: ['gherkin', 'cucumber'],
|
|
344
|
+
value: 'gherkin'
|
|
341
345
|
}, {
|
|
342
346
|
name: 'ABAP',
|
|
343
347
|
alias: ['abap'],
|
|
@@ -77,6 +77,7 @@ const CodeBlock = /*#__PURE__*/memo(function CodeBlock({
|
|
|
77
77
|
codeBidiWarningLabel: codeBidiWarningLabel,
|
|
78
78
|
codeBidiWarningTooltipEnabled: codeBidiWarningTooltipEnabled,
|
|
79
79
|
text: text,
|
|
80
|
+
tabIndex: "0",
|
|
80
81
|
className: ax([getCodeBlockStyles.root, shouldWrapLongLines ? getCodeBlockStyles.shouldWrapLongLines : getCodeBlockStyles.dontWrapLongLines, showLineNumbers ? getCodeBlockStyles.showLineNumbers : getCodeBlockStyles.dontShowLineNumbers])
|
|
81
82
|
});
|
|
82
83
|
});
|
package/dist/es2019/constants.js
CHANGED
|
@@ -325,6 +325,10 @@ export const SUPPORTED_LANGUAGES = [{
|
|
|
325
325
|
name: 'Handlebars',
|
|
326
326
|
alias: ['handlebars', 'mustache'],
|
|
327
327
|
value: 'handlebars'
|
|
328
|
+
}, {
|
|
329
|
+
name: 'Gherkin',
|
|
330
|
+
alias: ['gherkin', 'cucumber'],
|
|
331
|
+
value: 'gherkin'
|
|
328
332
|
}, {
|
|
329
333
|
name: 'ABAP',
|
|
330
334
|
alias: ['abap'],
|
package/dist/esm/code-block.js
CHANGED
|
@@ -88,6 +88,7 @@ var CodeBlock = /*#__PURE__*/memo(function CodeBlock(_ref) {
|
|
|
88
88
|
codeBidiWarningLabel: codeBidiWarningLabel,
|
|
89
89
|
codeBidiWarningTooltipEnabled: codeBidiWarningTooltipEnabled,
|
|
90
90
|
text: text,
|
|
91
|
+
tabIndex: "0",
|
|
91
92
|
className: ax([getCodeBlockStyles.root, shouldWrapLongLines ? getCodeBlockStyles.shouldWrapLongLines : getCodeBlockStyles.dontWrapLongLines, showLineNumbers ? getCodeBlockStyles.showLineNumbers : getCodeBlockStyles.dontShowLineNumbers])
|
|
92
93
|
});
|
|
93
94
|
});
|
package/dist/esm/constants.js
CHANGED
|
@@ -325,6 +325,10 @@ export var SUPPORTED_LANGUAGES = [{
|
|
|
325
325
|
name: 'Handlebars',
|
|
326
326
|
alias: ['handlebars', 'mustache'],
|
|
327
327
|
value: 'handlebars'
|
|
328
|
+
}, {
|
|
329
|
+
name: 'Gherkin',
|
|
330
|
+
alias: ['gherkin', 'cucumber'],
|
|
331
|
+
value: 'gherkin'
|
|
328
332
|
}, {
|
|
329
333
|
name: 'ABAP',
|
|
330
334
|
alias: ['abap'],
|
|
@@ -322,6 +322,10 @@ export declare const SUPPORTED_LANGUAGES: readonly [{
|
|
|
322
322
|
readonly name: "Handlebars";
|
|
323
323
|
readonly alias: readonly ["handlebars", "mustache"];
|
|
324
324
|
readonly value: "handlebars";
|
|
325
|
+
}, {
|
|
326
|
+
readonly name: "Gherkin";
|
|
327
|
+
readonly alias: readonly ["gherkin", "cucumber"];
|
|
328
|
+
readonly value: "gherkin";
|
|
325
329
|
}, {
|
|
326
330
|
readonly name: "ABAP";
|
|
327
331
|
readonly alias: readonly ["abap"];
|
|
@@ -649,6 +649,14 @@ export declare const SUPPORTED_LANGUAGES: readonly [
|
|
|
649
649
|
];
|
|
650
650
|
readonly value: "handlebars";
|
|
651
651
|
},
|
|
652
|
+
{
|
|
653
|
+
readonly name: "Gherkin";
|
|
654
|
+
readonly alias: readonly [
|
|
655
|
+
"gherkin",
|
|
656
|
+
"cucumber"
|
|
657
|
+
];
|
|
658
|
+
readonly value: "gherkin";
|
|
659
|
+
},
|
|
652
660
|
{
|
|
653
661
|
readonly name: "ABAP";
|
|
654
662
|
readonly alias: readonly [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/code",
|
|
3
|
-
"version": "17.1.
|
|
3
|
+
"version": "17.1.1",
|
|
4
4
|
"description": "Code highlights short strings of code snippets inline with body text.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@atlaskit/ds-lib": "^4.0.0",
|
|
51
51
|
"@atlaskit/form": "^12.0.0",
|
|
52
52
|
"@atlaskit/link": "^3.1.0",
|
|
53
|
-
"@atlaskit/primitives": "^14.
|
|
53
|
+
"@atlaskit/primitives": "^14.7.0",
|
|
54
54
|
"@atlaskit/section-message": "^8.2.0",
|
|
55
55
|
"@atlaskit/ssr": "workspace:^",
|
|
56
56
|
"@atlaskit/theme": "^18.0.0",
|