@atlaskit/code 17.2.7 → 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 +6 -20
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/code
|
|
2
2
|
|
|
3
|
+
## 17.2.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
3
9
|
## 17.2.7
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -548,7 +554,6 @@
|
|
|
548
554
|
CodeBlock has had some significant under-the-hood changes in this version. While technically it is
|
|
549
555
|
a minor update as all API changes are additive and backwards-compatible, this is a heads up that
|
|
550
556
|
there are some small visual changes that may require visual regression snapshots to be updated.
|
|
551
|
-
|
|
552
557
|
- Adds a new `shouldWrapLongLines` prop that allows you to wrap long lines of code over multiple
|
|
553
558
|
lines, instead of always forcing the container to scroll horizontally.
|
|
554
559
|
|
|
@@ -822,7 +827,6 @@
|
|
|
822
827
|
|
|
823
828
|
Component theming is no longer supported in `<Code />` or `<CodeBlock />`; this change does not
|
|
824
829
|
effect global theming. As an escape hatch, two CSS variables are exposed:
|
|
825
|
-
|
|
826
830
|
- `--ds--code--line-number-bg-color`: which controls the background color of the line numbers if
|
|
827
831
|
set
|
|
828
832
|
- `--ds--code--bg-color`: which controls the background color of the block body if set
|
|
@@ -919,7 +923,6 @@
|
|
|
919
923
|
is an escape hatch which will likley be removed in a future major version.
|
|
920
924
|
|
|
921
925
|
This change also includes:
|
|
922
|
-
|
|
923
926
|
- A bugfix for lineHeight that meant linenumbers and code body were not vertically aligned
|
|
924
927
|
correctly.
|
|
925
928
|
- A bugfix for the SSR'd components not rendering consistently before hydration
|
|
@@ -1089,7 +1092,6 @@
|
|
|
1089
1092
|
|
|
1090
1093
|
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
|
|
1091
1094
|
[6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
1092
|
-
|
|
1093
1095
|
- @atlaskit/docs@8.3.2
|
|
1094
1096
|
- @atlaskit/visual-regression@0.1.9
|
|
1095
1097
|
- @atlaskit/theme@9.5.1
|
|
@@ -1102,7 +1104,6 @@
|
|
|
1102
1104
|
|
|
1103
1105
|
ThemedCode and ThemeCodeBlock props are now correctly typed- Updated dependencies
|
|
1104
1106
|
[d2b8166208](https://bitbucket.org/atlassian/atlassian-frontend/commits/d2b8166208):
|
|
1105
|
-
|
|
1106
1107
|
- @atlaskit/docs@8.3.0
|
|
1107
1108
|
|
|
1108
1109
|
## 11.1.1
|
|
@@ -1114,7 +1115,6 @@
|
|
|
1114
1115
|
Removes babel/runtime from dependencies. Users should see a smaller bundlesize as a result-
|
|
1115
1116
|
Updated dependencies
|
|
1116
1117
|
[82747f2922](https://bitbucket.org/atlassian/atlassian-frontend/commits/82747f2922):
|
|
1117
|
-
|
|
1118
1118
|
- @atlaskit/theme@9.5.0
|
|
1119
1119
|
|
|
1120
1120
|
## 11.1.0
|
|
@@ -1127,7 +1127,6 @@
|
|
|
1127
1127
|
emphasize which lines of code you would like people to look at!
|
|
1128
1128
|
|
|
1129
1129
|
The `highlight` prop can be used as follows:
|
|
1130
|
-
|
|
1131
1130
|
- To highlight one line: `highlight="3"`
|
|
1132
1131
|
- To highlight sequential lines: `highlight="1-5"`
|
|
1133
1132
|
- To highlight sequential and multiple single lines: `highlight="1-5,7,10,15-20"`
|
|
@@ -1208,7 +1207,6 @@
|
|
|
1208
1207
|
- [patch][65ada7f318](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/65ada7f318):
|
|
1209
1208
|
|
|
1210
1209
|
**FABDODGEM-12 Editor Cashmere Release**
|
|
1211
|
-
|
|
1212
1210
|
- [Internal post](http://go.atlassian.com/cashmere-release)
|
|
1213
1211
|
|
|
1214
1212
|
**Affected editor components:**
|
|
@@ -1216,19 +1214,16 @@
|
|
|
1216
1214
|
tables, media, mobile, text color, emoji, copy/paste, analytics
|
|
1217
1215
|
|
|
1218
1216
|
**Performance**
|
|
1219
|
-
|
|
1220
1217
|
- Async import for code blocks and task items on renderer
|
|
1221
1218
|
- https://product-fabric.atlassian.net/browse/ED-7155
|
|
1222
1219
|
|
|
1223
1220
|
**Table**
|
|
1224
|
-
|
|
1225
1221
|
- Add support to sort tables that contains smart links
|
|
1226
1222
|
- https://product-fabric.atlassian.net/browse/ED-7449
|
|
1227
1223
|
- Scale table when changing to full width mode
|
|
1228
1224
|
- https://product-fabric.atlassian.net/browse/ED-7724
|
|
1229
1225
|
|
|
1230
1226
|
**Text color**
|
|
1231
|
-
|
|
1232
1227
|
- Update text color toolbar with right color when text is inside a list, panel, etc.
|
|
1233
1228
|
- https://product-fabric.atlassian.net/browse/FM-1752
|
|
1234
1229
|
|
|
@@ -1334,7 +1329,6 @@ https://product-fabric.atlassian.net/browse/FM-2393
|
|
|
1334
1329
|
- [patch][18dfac7332](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/18dfac7332):
|
|
1335
1330
|
|
|
1336
1331
|
In this PR, we are:
|
|
1337
|
-
|
|
1338
1332
|
- Re-introducing dist build folders
|
|
1339
1333
|
- Adding back cjs
|
|
1340
1334
|
- Replacing es5 by cjs and es2015 by esm
|
|
@@ -1371,21 +1365,18 @@ https://product-fabric.atlassian.net/browse/FM-2393
|
|
|
1371
1365
|
## 11.0.1
|
|
1372
1366
|
|
|
1373
1367
|
- [patch][b0ef06c685](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b0ef06c685):
|
|
1374
|
-
|
|
1375
1368
|
- This is just a safety release in case anything strange happened in in the previous one. See Pull
|
|
1376
1369
|
Request #5942 for details
|
|
1377
1370
|
|
|
1378
1371
|
## 11.0.0
|
|
1379
1372
|
|
|
1380
1373
|
- [major][97bfe81ec8](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/97bfe81ec8):
|
|
1381
|
-
|
|
1382
1374
|
- @atlaskit/code has been converted to Typescript. Typescript consumers will now get static type
|
|
1383
1375
|
safety. Flow types are no longer provided. No API or behavioural changes.
|
|
1384
1376
|
|
|
1385
1377
|
## 10.0.0
|
|
1386
1378
|
|
|
1387
1379
|
- [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
|
|
1388
|
-
|
|
1389
1380
|
- Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use
|
|
1390
1381
|
this package, please ensure you use at least this version of react and react-dom.
|
|
1391
1382
|
|
|
@@ -1399,7 +1390,6 @@ https://product-fabric.atlassian.net/browse/FM-2393
|
|
|
1399
1390
|
## 9.0.0
|
|
1400
1391
|
|
|
1401
1392
|
- [major][76299208e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/76299208e6):
|
|
1402
|
-
|
|
1403
1393
|
- Drop ES5 from all the flow modules
|
|
1404
1394
|
|
|
1405
1395
|
### Dropping CJS support in all @atlaskit packages
|
|
@@ -1444,7 +1434,6 @@ https://product-fabric.atlassian.net/browse/FM-2393
|
|
|
1444
1434
|
## 8.2.3
|
|
1445
1435
|
|
|
1446
1436
|
- [patch][d49e9bbb13](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d49e9bbb13):
|
|
1447
|
-
|
|
1448
1437
|
- Expose the props on website
|
|
1449
1438
|
|
|
1450
1439
|
## 8.2.2
|
|
@@ -1462,19 +1451,16 @@ https://product-fabric.atlassian.net/browse/FM-2393
|
|
|
1462
1451
|
## 8.2.0
|
|
1463
1452
|
|
|
1464
1453
|
- [minor][10fe416](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/10fe416):
|
|
1465
|
-
|
|
1466
1454
|
- Props Language should be required and surfacing more props for code
|
|
1467
1455
|
|
|
1468
1456
|
## 8.1.1
|
|
1469
1457
|
|
|
1470
1458
|
- [patch][84e8015](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/84e8015):
|
|
1471
|
-
|
|
1472
1459
|
- Bump react-syntax-highlighter to 10.0.1
|
|
1473
1460
|
|
|
1474
1461
|
## 8.1.0
|
|
1475
1462
|
|
|
1476
1463
|
- [minor][26027dd](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/26027dd):
|
|
1477
|
-
|
|
1478
1464
|
- Upgrade react syntax highlighter to version that ships its own async loaded languages and
|
|
1479
1465
|
supports SSR
|
|
1480
1466
|
|
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",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"@af/integration-testing": "workspace:^",
|
|
48
48
|
"@af/visual-regression": "workspace:^",
|
|
49
49
|
"@atlaskit/button": "^23.5.0",
|
|
50
|
-
"@atlaskit/docs": "^11.
|
|
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",
|