Skip to content

Commit

Permalink
Version Packages (#2431)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Jul 17, 2024
1 parent 66e5665 commit 1994ea3
Show file tree
Hide file tree
Showing 16 changed files with 108 additions and 79 deletions.
5 changes: 0 additions & 5 deletions .changeset/lemon-pets-buy.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/mean-pandas-learn.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/soft-buses-hope.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sour-kangaroos-sit.md

This file was deleted.

37 changes: 0 additions & 37 deletions .changeset/swift-points-sip.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/tidy-dancers-hang.md

This file was deleted.

52 changes: 52 additions & 0 deletions packages/descendants/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,57 @@
# @leafygreen-ui/descendants

## 1.0.0

### Major Changes

- 4c04aa0ee: Updates `useInitDescendants` signature to require a Context value, and return a `Provider` component.

Eliminates the need to destructure `descendants` and `dispatch` from the hook's return value just to pass into the provider. Instead, the hook will construct a pre-populated provider unique to the Context value given.

Note: `descendants`, `dispatch` and `getDescendants` are still returned by the hook for use in the parent component if necessary.

Before:

```tsx
const MyDescendantContext = createDescendantsContext();
const { descendants, dispatch } = useInitDescendants();

return (
<DescendantsProvider
context={MyDescendantContext}
descendants={descendants}
dispatch={dispatch}
>
<MyDescendantItem />
</DescendantsProvider>
);
```

After:

```tsx
const MyDescendantContext = createDescendantsContext();
const { Provider } = useInitDescendants(MyDescendantContext);
return (
<Provider>
<MyDescendantItem />
</Provider>
);
```

### Minor Changes

- 4c04aa0ee: Adds Highlight management utilities.
- `useHighlight`: A hook to initialize the highlight state management
- `HighlightProvider`: A context provider for consuming the highlight state from descendant components
- `createHighlightContext`: Constructs a unique Context object in order to support nested contexts

### Patch Changes

- Updated dependencies [4c04aa0ee]
- @leafygreen-ui/lib@13.7.0

## 0.3.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/descendants/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leafygreen-ui/descendants",
"version": "0.3.0",
"version": "1.0.0",
"description": "LeafyGreen UI Kit Descendants",
"main": "./dist/index.js",
"module": "./dist/esm/index.js",
Expand All @@ -16,7 +16,7 @@
},
"dependencies": {
"@leafygreen-ui/hooks": "^8.1.3",
"@leafygreen-ui/lib": "^13.6.1",
"@leafygreen-ui/lib": "^13.7.0",
"lodash": "^4.17.21"
},
"devDependencies": {
Expand Down
6 changes: 6 additions & 0 deletions packages/lib/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @leafygreen-ui/lib

## 13.7.0

### Minor Changes

- 4c04aa0ee: Creates utility types `Only`, `ExclusiveUnion` and `ValuesOf`

## 13.6.1

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

## 25.0.1

### Patch Changes

- 4c04aa0ee: Update Menu to use latest Descendants API
- Updated dependencies [4c04aa0ee]
- Updated dependencies [66e5665e8]
- Updated dependencies [4c04aa0ee]
- Updated dependencies [4c04aa0ee]
- @leafygreen-ui/lib@13.7.0
- @leafygreen-ui/tokens@2.10.0
- @leafygreen-ui/descendants@1.0.0

## 25.0.0

### Major Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/menu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leafygreen-ui/menu",
"version": "25.0.0",
"version": "25.0.1",
"description": "LeafyGreen UI Kit Menu",
"main": "./dist/index.js",
"module": "./dist/esm/index.js",
Expand All @@ -22,17 +22,17 @@
"access": "public"
},
"dependencies": {
"@leafygreen-ui/descendants": "^0.3.0",
"@leafygreen-ui/descendants": "^1.0.0",
"@leafygreen-ui/emotion": "^4.0.8",
"@leafygreen-ui/hooks": "^8.1.3",
"@leafygreen-ui/icon": "^12.5.4",
"@leafygreen-ui/icon-button": "^15.0.21",
"@leafygreen-ui/input-option": "^2.0.0",
"@leafygreen-ui/lib": "^13.6.1",
"@leafygreen-ui/lib": "^13.7.0",
"@leafygreen-ui/palette": "^4.0.9",
"@leafygreen-ui/popover": "^11.4.0",
"@leafygreen-ui/polymorphic": "^2.0.0",
"@leafygreen-ui/tokens": "^2.9.0",
"@leafygreen-ui/tokens": "^2.10.0",
"@leafygreen-ui/typography": "^19.2.1",
"lodash": "^4.17.21",
"polished": "^4.3.1",
Expand Down
13 changes: 13 additions & 0 deletions packages/tabs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @leafygreen-ui/tabs

## 12.0.3

### Patch Changes

- 4c04aa0ee: Updates Tabs to use latest Descendants API
- Updated dependencies [4c04aa0ee]
- Updated dependencies [66e5665e8]
- Updated dependencies [4c04aa0ee]
- Updated dependencies [4c04aa0ee]
- @leafygreen-ui/lib@13.7.0
- @leafygreen-ui/tokens@2.10.0
- @leafygreen-ui/descendants@1.0.0

## 12.0.2

### Patch Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/tabs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leafygreen-ui/tabs",
"version": "12.0.2",
"version": "12.0.3",
"description": "leafyGreen UI Kit Tabs",
"main": "./dist/index.js",
"module": "./dist/esm/index.js",
Expand All @@ -23,13 +23,13 @@
},
"dependencies": {
"@leafygreen-ui/a11y": "^1.5.0",
"@leafygreen-ui/descendants": "^0.3.0",
"@leafygreen-ui/descendants": "^1.0.0",
"@leafygreen-ui/emotion": "^4.0.8",
"@leafygreen-ui/hooks": "^8.1.3",
"@leafygreen-ui/lib": "^13.6.1",
"@leafygreen-ui/lib": "^13.7.0",
"@leafygreen-ui/palette": "^4.1.0",
"@leafygreen-ui/polymorphic": "^2.0.2",
"@leafygreen-ui/tokens": "^2.9.0",
"@leafygreen-ui/tokens": "^2.10.0",
"@leafygreen-ui/typography": "^19.2.1",
"@lg-tools/test-harnesses": "0.1.2"
},
Expand Down
11 changes: 11 additions & 0 deletions packages/tokens/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @leafygreen-ui/tokens

## 2.10.0

### Minor Changes

- 66e5665e8: Exports shadow tokens from package

### Patch Changes

- Updated dependencies [4c04aa0ee]
- @leafygreen-ui/lib@13.7.0

## 2.9.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/tokens/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leafygreen-ui/tokens",
"version": "2.9.0",
"version": "2.10.0",
"description": "leafyGreen UI Kit Tokens",
"main": "./dist/index.js",
"module": "./dist/esm/index.js",
Expand All @@ -22,7 +22,7 @@
"access": "public"
},
"dependencies": {
"@leafygreen-ui/lib": "^13.6.0",
"@leafygreen-ui/lib": "^13.7.0",
"@leafygreen-ui/palette": "^4.0.9",
"polished": "^4.2.2"
},
Expand Down

0 comments on commit 1994ea3

Please sign in to comment.