@atlaskit/code 17.2.6 → 17.2.8
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,18 @@
|
|
|
1
1
|
# @atlaskit/code
|
|
2
2
|
|
|
3
|
+
## 17.2.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 17.2.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`ea4cb74c395ce`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ea4cb74c395ce) -
|
|
14
|
+
[ux] Adds markdown language support to code blocks
|
|
15
|
+
|
|
3
16
|
## 17.2.6
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -541,7 +554,6 @@
|
|
|
541
554
|
CodeBlock has had some significant under-the-hood changes in this version. While technically it is
|
|
542
555
|
a minor update as all API changes are additive and backwards-compatible, this is a heads up that
|
|
543
556
|
there are some small visual changes that may require visual regression snapshots to be updated.
|
|
544
|
-
|
|
545
557
|
- Adds a new `shouldWrapLongLines` prop that allows you to wrap long lines of code over multiple
|
|
546
558
|
lines, instead of always forcing the container to scroll horizontally.
|
|
547
559
|
|
|
@@ -815,7 +827,6 @@
|
|
|
815
827
|
|
|
816
828
|
Component theming is no longer supported in `<Code />` or `<CodeBlock />`; this change does not
|
|
817
829
|
effect global theming. As an escape hatch, two CSS variables are exposed:
|
|
818
|
-
|
|
819
830
|
- `--ds--code--line-number-bg-color`: which controls the background color of the line numbers if
|
|
820
831
|
set
|
|
821
832
|
- `--ds--code--bg-color`: which controls the background color of the block body if set
|
|
@@ -912,7 +923,6 @@
|
|
|
912
923
|
is an escape hatch which will likley be removed in a future major version.
|
|
913
924
|
|
|
914
925
|
This change also includes:
|
|
915
|
-
|
|
916
926
|
- A bugfix for lineHeight that meant linenumbers and code body were not vertically aligned
|
|
917
927
|
correctly.
|
|
918
928
|
- A bugfix for the SSR'd components not rendering consistently before hydration
|
|
@@ -1082,7 +1092,6 @@
|
|
|
1082
1092
|
|
|
1083
1093
|
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
|
|
1084
1094
|
[6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
1085
|
-
|
|
1086
1095
|
- @atlaskit/docs@8.3.2
|
|
1087
1096
|
- @atlaskit/visual-regression@0.1.9
|
|
1088
1097
|
- @atlaskit/theme@9.5.1
|
|
@@ -1095,7 +1104,6 @@
|
|
|
1095
1104
|
|
|
1096
1105
|
ThemedCode and ThemeCodeBlock props are now correctly typed- Updated dependencies
|
|
1097
1106
|
[d2b8166208](https://bitbucket.org/atlassian/atlassian-frontend/commits/d2b8166208):
|
|
1098
|
-
|
|
1099
1107
|
- @atlaskit/docs@8.3.0
|
|
1100
1108
|
|
|
1101
1109
|
## 11.1.1
|
|
@@ -1107,7 +1115,6 @@
|
|
|
1107
1115
|
Removes babel/runtime from dependencies. Users should see a smaller bundlesize as a result-
|
|
1108
1116
|
Updated dependencies
|
|
1109
1117
|
[82747f2922](https://bitbucket.org/atlassian/atlassian-frontend/commits/82747f2922):
|
|
1110
|
-
|
|
1111
1118
|
- @atlaskit/theme@9.5.0
|
|
1112
1119
|
|
|
1113
1120
|
## 11.1.0
|
|
@@ -1120,7 +1127,6 @@
|
|
|
1120
1127
|
emphasize which lines of code you would like people to look at!
|
|
1121
1128
|
|
|
1122
1129
|
The `highlight` prop can be used as follows:
|
|
1123
|
-
|
|
1124
1130
|
- To highlight one line: `highlight="3"`
|
|
1125
1131
|
- To highlight sequential lines: `highlight="1-5"`
|
|
1126
1132
|
- To highlight sequential and multiple single lines: `highlight="1-5,7,10,15-20"`
|
|
@@ -1201,7 +1207,6 @@
|
|
|
1201
1207
|
- [patch][65ada7f318](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/65ada7f318):
|
|
1202
1208
|
|
|
1203
1209
|
**FABDODGEM-12 Editor Cashmere Release**
|
|
1204
|
-
|
|
1205
1210
|
- [Internal post](http://go.atlassian.com/cashmere-release)
|
|
1206
1211
|
|
|
1207
1212
|
**Affected editor components:**
|
|
@@ -1209,19 +1214,16 @@
|
|
|
1209
1214
|
tables, media, mobile, text color, emoji, copy/paste, analytics
|
|
1210
1215
|
|
|
1211
1216
|
**Performance**
|
|
1212
|
-
|
|
1213
1217
|
- Async import for code blocks and task items on renderer
|
|
1214
1218
|
- https://product-fabric.atlassian.net/browse/ED-7155
|
|
1215
1219
|
|
|
1216
1220
|
**Table**
|
|
1217
|
-
|
|
1218
1221
|
- Add support to sort tables that contains smart links
|
|
1219
1222
|
- https://product-fabric.atlassian.net/browse/ED-7449
|
|
1220
1223
|
- Scale table when changing to full width mode
|
|
1221
1224
|
- https://product-fabric.atlassian.net/browse/ED-7724
|
|
1222
1225
|
|
|
1223
1226
|
**Text color**
|
|
1224
|
-
|
|
1225
1227
|
- Update text color toolbar with right color when text is inside a list, panel, etc.
|
|
1226
1228
|
- https://product-fabric.atlassian.net/browse/FM-1752
|
|
1227
1229
|
|
|
@@ -1327,7 +1329,6 @@ https://product-fabric.atlassian.net/browse/FM-2393
|
|
|
1327
1329
|
- [patch][18dfac7332](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/18dfac7332):
|
|
1328
1330
|
|
|
1329
1331
|
In this PR, we are:
|
|
1330
|
-
|
|
1331
1332
|
- Re-introducing dist build folders
|
|
1332
1333
|
- Adding back cjs
|
|
1333
1334
|
- Replacing es5 by cjs and es2015 by esm
|
|
@@ -1364,21 +1365,18 @@ https://product-fabric.atlassian.net/browse/FM-2393
|
|
|
1364
1365
|
## 11.0.1
|
|
1365
1366
|
|
|
1366
1367
|
- [patch][b0ef06c685](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b0ef06c685):
|
|
1367
|
-
|
|
1368
1368
|
- This is just a safety release in case anything strange happened in in the previous one. See Pull
|
|
1369
1369
|
Request #5942 for details
|
|
1370
1370
|
|
|
1371
1371
|
## 11.0.0
|
|
1372
1372
|
|
|
1373
1373
|
- [major][97bfe81ec8](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/97bfe81ec8):
|
|
1374
|
-
|
|
1375
1374
|
- @atlaskit/code has been converted to Typescript. Typescript consumers will now get static type
|
|
1376
1375
|
safety. Flow types are no longer provided. No API or behavioural changes.
|
|
1377
1376
|
|
|
1378
1377
|
## 10.0.0
|
|
1379
1378
|
|
|
1380
1379
|
- [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
|
|
1381
|
-
|
|
1382
1380
|
- Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use
|
|
1383
1381
|
this package, please ensure you use at least this version of react and react-dom.
|
|
1384
1382
|
|
|
@@ -1392,7 +1390,6 @@ https://product-fabric.atlassian.net/browse/FM-2393
|
|
|
1392
1390
|
## 9.0.0
|
|
1393
1391
|
|
|
1394
1392
|
- [major][76299208e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/76299208e6):
|
|
1395
|
-
|
|
1396
1393
|
- Drop ES5 from all the flow modules
|
|
1397
1394
|
|
|
1398
1395
|
### Dropping CJS support in all @atlaskit packages
|
|
@@ -1437,7 +1434,6 @@ https://product-fabric.atlassian.net/browse/FM-2393
|
|
|
1437
1434
|
## 8.2.3
|
|
1438
1435
|
|
|
1439
1436
|
- [patch][d49e9bbb13](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d49e9bbb13):
|
|
1440
|
-
|
|
1441
1437
|
- Expose the props on website
|
|
1442
1438
|
|
|
1443
1439
|
## 8.2.2
|
|
@@ -1455,19 +1451,16 @@ https://product-fabric.atlassian.net/browse/FM-2393
|
|
|
1455
1451
|
## 8.2.0
|
|
1456
1452
|
|
|
1457
1453
|
- [minor][10fe416](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/10fe416):
|
|
1458
|
-
|
|
1459
1454
|
- Props Language should be required and surfacing more props for code
|
|
1460
1455
|
|
|
1461
1456
|
## 8.1.1
|
|
1462
1457
|
|
|
1463
1458
|
- [patch][84e8015](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/84e8015):
|
|
1464
|
-
|
|
1465
1459
|
- Bump react-syntax-highlighter to 10.0.1
|
|
1466
1460
|
|
|
1467
1461
|
## 8.1.0
|
|
1468
1462
|
|
|
1469
1463
|
- [minor][26027dd](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/26027dd):
|
|
1470
|
-
|
|
1471
1464
|
- Upgrade react syntax highlighter to version that ships its own async loaded languages and
|
|
1472
1465
|
supports SSR
|
|
1473
1466
|
|
package/dist/cjs/constants.js
CHANGED
package/dist/es2019/constants.js
CHANGED
package/dist/esm/constants.js
CHANGED
|
@@ -334,6 +334,10 @@ export declare const SUPPORTED_LANGUAGES: readonly [{
|
|
|
334
334
|
readonly name: "ABAP";
|
|
335
335
|
readonly alias: readonly ["abap"];
|
|
336
336
|
readonly value: "abap";
|
|
337
|
+
}, {
|
|
338
|
+
readonly name: "Markdown";
|
|
339
|
+
readonly alias: readonly ["markdown"];
|
|
340
|
+
readonly value: "markdown";
|
|
337
341
|
}];
|
|
338
342
|
export { CODE_BLOCK_SELECTOR } from './internal/theme/constants';
|
|
339
343
|
export type Language = (typeof SUPPORTED_LANGUAGES)[number];
|
|
@@ -670,6 +670,13 @@ export declare const SUPPORTED_LANGUAGES: readonly [
|
|
|
670
670
|
"abap"
|
|
671
671
|
];
|
|
672
672
|
readonly value: "abap";
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
readonly name: "Markdown";
|
|
676
|
+
readonly alias: readonly [
|
|
677
|
+
"markdown"
|
|
678
|
+
];
|
|
679
|
+
readonly value: "markdown";
|
|
673
680
|
}
|
|
674
681
|
];
|
|
675
682
|
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": "17.2.
|
|
3
|
+
"version": "17.2.8",
|
|
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,11 +29,11 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
31
31
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
32
|
-
"@atlaskit/tokens": "^
|
|
32
|
+
"@atlaskit/tokens": "^7.0.0",
|
|
33
33
|
"@atlaskit/tooltip": "^20.5.0",
|
|
34
34
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
35
35
|
"@babel/runtime": "^7.0.0",
|
|
36
|
-
"@compiled/react": "^0.18.
|
|
36
|
+
"@compiled/react": "^0.18.6",
|
|
37
37
|
"bind-event-listener": "^3.0.0",
|
|
38
38
|
"memoize-one": "^6.0.0",
|
|
39
39
|
"raf-schd": "^4.0.3",
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
"@af/accessibility-testing": "workspace:^",
|
|
47
47
|
"@af/integration-testing": "workspace:^",
|
|
48
48
|
"@af/visual-regression": "workspace:^",
|
|
49
|
-
"@atlaskit/button": "^23.
|
|
50
|
-
"@atlaskit/docs": "^11.
|
|
49
|
+
"@atlaskit/button": "^23.5.0",
|
|
50
|
+
"@atlaskit/docs": "^11.2.0",
|
|
51
51
|
"@atlaskit/ds-lib": "^5.1.0",
|
|
52
52
|
"@atlaskit/form": "^14.2.0",
|
|
53
53
|
"@atlaskit/link": "^3.2.0",
|
|
54
|
-
"@atlaskit/primitives": "^
|
|
54
|
+
"@atlaskit/primitives": "^15.0.0",
|
|
55
55
|
"@atlaskit/section-message": "^8.7.0",
|
|
56
56
|
"@atlaskit/ssr": "workspace:^",
|
|
57
57
|
"@atlaskit/theme": "^21.0.0",
|