@atlaskit/code 14.3.3 → 14.3.6
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 +19 -0
- package/dist/cjs/internal/theme/styles.js +4 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/internal/theme/styles.js +4 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/internal/theme/styles.js +4 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/internal/utils/get-normalized-language.d.ts +2 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/code
|
|
2
2
|
|
|
3
|
+
## 14.3.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
8
|
+
|
|
9
|
+
## 14.3.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`46824ff1acd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/46824ff1acd) - [ux] `<CodeBlock />`s with no content no longer vertically collapse, and maintain their intended minimum height
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 14.3.4
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 14.3.3
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -297,6 +297,10 @@ var getCodeBlockStyles = function getCodeBlockStyles(theme) {
|
|
|
297
297
|
'& code:last-of-type': {
|
|
298
298
|
paddingRight: "".concat(_constants2.SPACING, "px !important"),
|
|
299
299
|
flex: '1 0 auto'
|
|
300
|
+
},
|
|
301
|
+
// Prevents empty code blocks from vertically collapsing
|
|
302
|
+
'code > span:only-child:empty:before, code > span:only-child > span:only-child:empty:before': {
|
|
303
|
+
content: '" "'
|
|
300
304
|
}
|
|
301
305
|
});
|
|
302
306
|
};
|
package/dist/cjs/version.json
CHANGED
|
@@ -268,6 +268,10 @@ export const getCodeBlockStyles = theme => (highlightedStartText, highlightedEnd
|
|
|
268
268
|
'& code:last-of-type': {
|
|
269
269
|
paddingRight: `${SPACING}px !important`,
|
|
270
270
|
flex: '1 0 auto'
|
|
271
|
+
},
|
|
272
|
+
// Prevents empty code blocks from vertically collapsing
|
|
273
|
+
'code > span:only-child:empty:before, code > span:only-child > span:only-child:empty:before': {
|
|
274
|
+
content: '" "'
|
|
271
275
|
}
|
|
272
276
|
});
|
|
273
277
|
export const getCodeStyles = globalTheme => {
|
package/dist/es2019/version.json
CHANGED
|
@@ -280,6 +280,10 @@ export var getCodeBlockStyles = function getCodeBlockStyles(theme) {
|
|
|
280
280
|
'& code:last-of-type': {
|
|
281
281
|
paddingRight: "".concat(SPACING, "px !important"),
|
|
282
282
|
flex: '1 0 auto'
|
|
283
|
+
},
|
|
284
|
+
// Prevents empty code blocks from vertically collapsing
|
|
285
|
+
'code > span:only-child:empty:before, code > span:only-child > span:only-child:empty:before': {
|
|
286
|
+
content: '" "'
|
|
283
287
|
}
|
|
284
288
|
});
|
|
285
289
|
};
|
package/dist/esm/version.json
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { SupportedLanguages } from '../types';
|
|
2
|
+
export declare const normalizeLanguage: import("memoize-one").MemoizedFn<(language?: SupportedLanguages | undefined) => string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/code",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.6",
|
|
4
4
|
"description": "Code highlights short strings of code snippets inline with body text.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@atlaskit/codemod-utils": "^
|
|
28
|
+
"@atlaskit/codemod-utils": "^4.0.0",
|
|
29
29
|
"@atlaskit/theme": "^12.1.0",
|
|
30
|
-
"@atlaskit/tokens": "^0.
|
|
30
|
+
"@atlaskit/tokens": "^0.9.0",
|
|
31
31
|
"@atlaskit/tooltip": "^17.5.0",
|
|
32
32
|
"@babel/runtime": "^7.0.0",
|
|
33
33
|
"@emotion/core": "^10.0.9",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"react": "^16.8.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@atlaskit/button": "^16.
|
|
41
|
+
"@atlaskit/button": "^16.3.0",
|
|
42
42
|
"@atlaskit/docs": "^9.0.0",
|
|
43
43
|
"@atlaskit/section-message": "^6.0.0",
|
|
44
44
|
"@atlaskit/ssr": "*",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"jscodeshift": "^0.13.0",
|
|
52
52
|
"prismjs": "^1.25.0",
|
|
53
53
|
"react-dom": "^16.8.0",
|
|
54
|
-
"typescript": "
|
|
54
|
+
"typescript": "4.2.4"
|
|
55
55
|
},
|
|
56
56
|
"keywords": [
|
|
57
57
|
"atlaskit",
|