Skip to content

Version Packages #2483

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions .changeset/curvy-bottles-dance.md

This file was deleted.

15 changes: 0 additions & 15 deletions .changeset/mighty-clouds-impress.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/short-eels-deliver.md

This file was deleted.

4 changes: 2 additions & 2 deletions packages/code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@leafygreen-ui/a11y": "^1.4.13",
"@leafygreen-ui/button": "^21.1.0",
"@leafygreen-ui/emotion": "^4.0.8",
"@leafygreen-ui/hooks": "^8.1.4",
"@leafygreen-ui/hooks": "^8.2.0",
"@leafygreen-ui/icon": "^12.5.4",
"@leafygreen-ui/icon-button": "^15.0.23",
"@leafygreen-ui/lib": "^13.6.0",
Expand All @@ -44,7 +44,7 @@
"polished": "^4.2.2"
},
"devDependencies": {
"@leafygreen-ui/testing-lib": "^0.6.0",
"@leafygreen-ui/testing-lib": "^0.7.0",
"@lg-tools/storybook-utils": "^0.1.0"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/combobox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@leafygreen-ui/chip": "^1.2.1",
"@leafygreen-ui/emotion": "^4.0.8",
"@leafygreen-ui/form-field": "^1.2.4",
"@leafygreen-ui/hooks": "^8.1.4",
"@leafygreen-ui/hooks": "^8.2.0",
"@leafygreen-ui/icon": "^12.5.4",
"@leafygreen-ui/icon-button": "^15.0.23",
"@leafygreen-ui/input-option": "^2.0.2",
Expand All @@ -44,7 +44,7 @@
},
"devDependencies": {
"@leafygreen-ui/button": "^21.2.0",
"@leafygreen-ui/testing-lib": "^0.6.1",
"@leafygreen-ui/testing-lib": "^0.7.0",
"@lg-tools/storybook-utils": "^0.1.1"
},
"homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/combobox",
Expand Down
4 changes: 2 additions & 2 deletions packages/copyable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"dependencies": {
"@leafygreen-ui/button": "^21.2.0",
"@leafygreen-ui/emotion": "^4.0.8",
"@leafygreen-ui/hooks": "^8.1.3",
"@leafygreen-ui/hooks": "^8.2.0",
"@leafygreen-ui/icon": "^12.5.4",
"@leafygreen-ui/lib": "^13.6.0",
"@leafygreen-ui/palette": "^4.0.9",
Expand All @@ -46,7 +46,7 @@
"url": "https://jira.mongodb.org/projects/PD/summary"
},
"devDependencies": {
"@leafygreen-ui/testing-lib": "^0.6.0",
"@leafygreen-ui/testing-lib": "^0.7.0",
"@lg-tools/storybook-utils": "^0.1.1"
}
}
4 changes: 2 additions & 2 deletions packages/date-picker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@leafygreen-ui/date-utils": "^0.1.2",
"@leafygreen-ui/emotion": "^4.0.8",
"@leafygreen-ui/form-field": "^1.2.4",
"@leafygreen-ui/hooks": "^8.1.3",
"@leafygreen-ui/hooks": "^8.2.0",
"@leafygreen-ui/icon": "^12.5.4",
"@leafygreen-ui/icon-button": "^15.0.21",
"@leafygreen-ui/lib": "^13.6.0",
Expand All @@ -40,7 +40,7 @@
"@jest/globals": "^29.7.0",
"@leafygreen-ui/button": "^21.2.1",
"@leafygreen-ui/modal": "^16.0.8",
"@leafygreen-ui/testing-lib": "^0.6.0",
"@leafygreen-ui/testing-lib": "^0.7.0",
"mockdate": "^3.0.5",
"@lg-tools/storybook-utils": "^0.1.1"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/descendants/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"access": "public"
},
"dependencies": {
"@leafygreen-ui/hooks": "^8.1.3",
"@leafygreen-ui/hooks": "^8.2.0",
"@leafygreen-ui/lib": "^13.7.0",
"lodash": "^4.17.21"
},
Expand All @@ -24,7 +24,7 @@
"@leafygreen-ui/button": "^21.1.0",
"@leafygreen-ui/emotion": "^4.0.8",
"@leafygreen-ui/popover": "^11.4.0",
"@leafygreen-ui/testing-lib": "^0.6.1",
"@leafygreen-ui/testing-lib": "^0.7.0",
"@lg-tools/storybook-utils": "^0.1.0"
},
"peerDependencies": {
Expand Down
8 changes: 8 additions & 0 deletions packages/hooks/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @leafygreen-ui/hooks

## 8.2.0

### Minor Changes

- 9776f5f42: Adds `useSsrCheck` and adds it to viewport check in `useViewportSize`.

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.

## 8.1.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/hooks/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leafygreen-ui/hooks",
"version": "8.1.4",
"version": "8.2.0",
"description": "LeafyGreen UI Kit Custom Hooks",
"main": "./dist/index.js",
"module": "./dist/esm/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"dependencies": {
"@leafygreen-ui/descendants": "^1.0.1",
"@leafygreen-ui/emotion": "^4.0.8",
"@leafygreen-ui/hooks": "^8.1.4",
"@leafygreen-ui/hooks": "^8.2.0",
"@leafygreen-ui/icon": "^12.5.4",
"@leafygreen-ui/icon-button": "^15.0.23",
"@leafygreen-ui/input-option": "^2.0.2",
Expand All @@ -40,7 +40,7 @@
},
"devDependencies": {
"@leafygreen-ui/button": "^21.2.0",
"@leafygreen-ui/testing-lib": "^0.6.1",
"@leafygreen-ui/testing-lib": "^0.7.0",
"@leafygreen-ui/text-input": "^13.1.0",
"@lg-tools/storybook-utils": "^0.1.1",
"@storybook/react": "^7.6.17"
Expand Down
4 changes: 2 additions & 2 deletions packages/select/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@leafygreen-ui/button": "^21.2.0",
"@leafygreen-ui/emotion": "^4.0.8",
"@leafygreen-ui/form-field": "^1.2.4",
"@leafygreen-ui/hooks": "^8.1.3",
"@leafygreen-ui/hooks": "^8.2.0",
"@leafygreen-ui/icon": "^12.5.4",
"@leafygreen-ui/input-option": "^2.0.1",
"@leafygreen-ui/lib": "^13.6.1",
Expand All @@ -51,7 +51,7 @@
"url": "https://jira.mongodb.org/projects/PD/summary"
},
"devDependencies": {
"@leafygreen-ui/testing-lib": "^0.6.1",
"@leafygreen-ui/testing-lib": "^0.7.0",
"@lg-tools/storybook-utils": "^0.1.1"
}
}
40 changes: 40 additions & 0 deletions packages/tabs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
# @leafygreen-ui/tabs

## 13.1.0

### Minor Changes

- 30f111498: [LG-4473](https://jira.mongodb.org/browse/LG-4473) Updates the `selected` and `setSelected` props to accept both strings and numbers. The string must match the text content from the `name` prop on the `Tab` component.

```js
const [selectedTab, setSelectedTab] = useState<string | number>('Tab 4');

return (
<div>
<Button onClick={() => setSelectedTab('Tab 2')}>
Set second tab as active
</Button>
<Tabs
selected={selectedTab}
setSelected={setSelectedTab}
>
<Tab name="Tab 1">
Content 1
</Tab>
<Tab name="Tab 2">
Content 2
</Tab>
<Tab name="Tab 3">
Content 3
</Tab>
<Tab name="Tab 4">
Content 4
</Tab>
<Tabs>
</div>
);
```

### Patch Changes

- Updated dependencies [9776f5f42]
- @leafygreen-ui/[email protected]

## 13.0.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/tabs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leafygreen-ui/tabs",
"version": "13.0.1",
"version": "13.1.0",
"description": "leafyGreen UI Kit Tabs",
"main": "./dist/index.js",
"module": "./dist/esm/index.js",
Expand All @@ -25,7 +25,7 @@
"@leafygreen-ui/a11y": "^1.5.0",
"@leafygreen-ui/descendants": "^1.0.0",
"@leafygreen-ui/emotion": "^4.0.8",
"@leafygreen-ui/hooks": "^8.1.4",
"@leafygreen-ui/hooks": "^8.2.0",
"@leafygreen-ui/lib": "^13.7.0",
"@leafygreen-ui/palette": "^4.1.0",
"@leafygreen-ui/polymorphic": "^2.0.2",
Expand Down
16 changes: 16 additions & 0 deletions packages/testing-lib/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @leafygreen-ui/testing-lib

## 0.7.0

### Minor Changes

- 9776f5f42: Adds `renderHookServer` method

@testing-library/react-hooks/server exposed a `renderHook` method
that allowed for one to render hooks as if SSR, and control
hydration. This is no longer supported in versions >=18.

This code was extracted from @testing-library/react-hooks/server and
updated to be compatible with React version >= 18 using `hydrateRoot`.

More context found here:
https://github.com/testing-library/react-testing-library/issues/1120

## 0.6.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/testing-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leafygreen-ui/testing-lib",
"version": "0.6.1",
"version": "0.7.0",
"description": "leafyGreen UI Kit Internal Testing Library",
"main": "./dist/index.js",
"module": "./dist/esm/index.js",
Expand Down
6 changes: 6 additions & 0 deletions tools/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @lg-tools/cli

## 0.6.2

### Patch Changes

- @lg-tools/[email protected]

## 0.6.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions tools/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lg-tools/cli",
"version": "0.6.1",
"version": "0.6.2",
"description": "Command Line tools for LeafyGreen",
"license": "Apache-2.0",
"main": "./dist/index.js",
Expand All @@ -23,7 +23,7 @@
"@lg-tools/link": "0.2.4",
"@lg-tools/lint": "0.2.3",
"@lg-tools/slackbot": "0.2.7",
"@lg-tools/test": "0.4.9",
"@lg-tools/test": "0.4.10",
"@lg-tools/update": "0.1.9",
"@lg-tools/validate": "0.1.11",
"commander": "^11.0.0",
Expand Down
7 changes: 7 additions & 0 deletions tools/test/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @lg-tools/test

## 0.4.10

### Patch Changes

- Updated dependencies [9776f5f42]
- @leafygreen-ui/[email protected]

## 0.4.9

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions tools/test/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lg-tools/test",
"version": "0.4.9",
"version": "0.4.10",
"description": "Jest setup & config for LeafyGreen repositories",
"license": "Apache-2.0",
"main": "dist/index.js",
Expand All @@ -17,7 +17,7 @@
"@emotion/css": "11.9.0",
"@emotion/react": "11.11.1",
"@emotion/server": "11.11.0",
"@leafygreen-ui/testing-lib": "^0.6.0",
"@leafygreen-ui/testing-lib": "^0.7.0",
"@lg-tools/build": "0.6.0",
"@lg-tools/meta": "0.3.4",
"@testing-library/dom": "9.3.1",
Expand Down
Loading