Skip to content

Commit e37259c

Browse files
Version Packages
1 parent 9776f5f commit e37259c

File tree

20 files changed

+99
-78
lines changed

20 files changed

+99
-78
lines changed

.changeset/curvy-bottles-dance.md

Lines changed: 0 additions & 34 deletions
This file was deleted.

.changeset/mighty-clouds-impress.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

.changeset/short-eels-deliver.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/code/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@leafygreen-ui/a11y": "^1.4.13",
2727
"@leafygreen-ui/button": "^21.1.0",
2828
"@leafygreen-ui/emotion": "^4.0.8",
29-
"@leafygreen-ui/hooks": "^8.1.4",
29+
"@leafygreen-ui/hooks": "^8.2.0",
3030
"@leafygreen-ui/icon": "^12.5.4",
3131
"@leafygreen-ui/icon-button": "^15.0.23",
3232
"@leafygreen-ui/lib": "^13.6.0",
@@ -44,7 +44,7 @@
4444
"polished": "^4.2.2"
4545
},
4646
"devDependencies": {
47-
"@leafygreen-ui/testing-lib": "^0.6.0",
47+
"@leafygreen-ui/testing-lib": "^0.7.0",
4848
"@lg-tools/storybook-utils": "^0.1.0"
4949
},
5050
"peerDependencies": {

packages/combobox/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@leafygreen-ui/chip": "^1.2.1",
2727
"@leafygreen-ui/emotion": "^4.0.8",
2828
"@leafygreen-ui/form-field": "^1.2.4",
29-
"@leafygreen-ui/hooks": "^8.1.4",
29+
"@leafygreen-ui/hooks": "^8.2.0",
3030
"@leafygreen-ui/icon": "^12.5.4",
3131
"@leafygreen-ui/icon-button": "^15.0.23",
3232
"@leafygreen-ui/input-option": "^2.0.2",
@@ -44,7 +44,7 @@
4444
},
4545
"devDependencies": {
4646
"@leafygreen-ui/button": "^21.2.0",
47-
"@leafygreen-ui/testing-lib": "^0.6.1",
47+
"@leafygreen-ui/testing-lib": "^0.7.0",
4848
"@lg-tools/storybook-utils": "^0.1.1"
4949
},
5050
"homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/combobox",

packages/copyable/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"dependencies": {
2525
"@leafygreen-ui/button": "^21.2.0",
2626
"@leafygreen-ui/emotion": "^4.0.8",
27-
"@leafygreen-ui/hooks": "^8.1.3",
27+
"@leafygreen-ui/hooks": "^8.2.0",
2828
"@leafygreen-ui/icon": "^12.5.4",
2929
"@leafygreen-ui/lib": "^13.6.0",
3030
"@leafygreen-ui/palette": "^4.0.9",
@@ -46,7 +46,7 @@
4646
"url": "https://jira.mongodb.org/projects/PD/summary"
4747
},
4848
"devDependencies": {
49-
"@leafygreen-ui/testing-lib": "^0.6.0",
49+
"@leafygreen-ui/testing-lib": "^0.7.0",
5050
"@lg-tools/storybook-utils": "^0.1.1"
5151
}
5252
}

packages/date-picker/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@leafygreen-ui/date-utils": "^0.1.2",
2020
"@leafygreen-ui/emotion": "^4.0.8",
2121
"@leafygreen-ui/form-field": "^1.2.4",
22-
"@leafygreen-ui/hooks": "^8.1.3",
22+
"@leafygreen-ui/hooks": "^8.2.0",
2323
"@leafygreen-ui/icon": "^12.5.4",
2424
"@leafygreen-ui/icon-button": "^15.0.21",
2525
"@leafygreen-ui/lib": "^13.6.0",
@@ -40,7 +40,7 @@
4040
"@jest/globals": "^29.7.0",
4141
"@leafygreen-ui/button": "^21.2.1",
4242
"@leafygreen-ui/modal": "^16.0.8",
43-
"@leafygreen-ui/testing-lib": "^0.6.0",
43+
"@leafygreen-ui/testing-lib": "^0.7.0",
4444
"mockdate": "^3.0.5",
4545
"@lg-tools/storybook-utils": "^0.1.1"
4646
},

packages/descendants/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"access": "public"
1616
},
1717
"dependencies": {
18-
"@leafygreen-ui/hooks": "^8.1.3",
18+
"@leafygreen-ui/hooks": "^8.2.0",
1919
"@leafygreen-ui/lib": "^13.7.0",
2020
"lodash": "^4.17.21"
2121
},
@@ -24,7 +24,7 @@
2424
"@leafygreen-ui/button": "^21.1.0",
2525
"@leafygreen-ui/emotion": "^4.0.8",
2626
"@leafygreen-ui/popover": "^11.4.0",
27-
"@leafygreen-ui/testing-lib": "^0.6.1",
27+
"@leafygreen-ui/testing-lib": "^0.7.0",
2828
"@lg-tools/storybook-utils": "^0.1.0"
2929
},
3030
"peerDependencies": {

packages/hooks/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @leafygreen-ui/hooks
22

3+
## 8.2.0
4+
5+
### Minor Changes
6+
7+
- 9776f5f42: Adds `useSsrCheck` and adds it to viewport check in `useViewportSize`.
8+
9+
When server side rendering is used, `window` is not defined. This is causing build issues on the server where we access `window` in `useViewportSize`. To fix this, this change adds a hook, `useSsrCheck`, that checks the rendering environment and can be used before attempting to access `window`. It adds a check of this to `useViewportSize` to fix the current build issue.
10+
311
## 8.1.4
412

513
### Patch Changes

packages/hooks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@leafygreen-ui/hooks",
3-
"version": "8.1.4",
3+
"version": "8.2.0",
44
"description": "LeafyGreen UI Kit Custom Hooks",
55
"main": "./dist/index.js",
66
"module": "./dist/esm/index.js",

0 commit comments

Comments
 (0)