@atlaskit/code 15.4.0 → 15.4.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/package.json +1 -1
- package/dist/cjs/extract-react-types/code-block.js +0 -10
- package/dist/es2019/extract-react-types/code-block.js +0 -4
- package/dist/esm/extract-react-types/code-block.js +0 -4
- package/dist/types/extract-react-types/code-block.d.ts +0 -47
- package/dist/types-ts4.5/extract-react-types/code-block.d.ts +0 -47
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/code
|
|
2
2
|
|
|
3
|
+
## 15.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#118430](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/118430)
|
|
8
|
+
[`d5fe97a9a6bc1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d5fe97a9a6bc1) -
|
|
9
|
+
Remove remnants of `extract-react-types`.
|
|
10
|
+
|
|
3
11
|
## 15.4.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -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;
|