Skip to content
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
5 changes: 5 additions & 0 deletions .changeset/bright-flies-go.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@bento/use-props": patch
---

Fixed type resolution by moving @bento/types to dependencies
5 changes: 5 additions & 0 deletions .changeset/strict-olives-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@bento/scroll-lock": patch
---

Fixed TypeScript inference error in setAttribute call
5 changes: 2 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/scroll-lock/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function useScrollLock(options: ScrollLockOptions = {}) {

entries.forEach(function applyAttribute([key, value]) {
// Always set the attribute, even if the value is "false"
doc?.body?.setAttribute(key, value);
doc?.body?.setAttribute(key, value as string);
});

return function cleanup() {
Expand Down
5 changes: 2 additions & 3 deletions packages/use-props/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@
"dependencies": {
"@bento/box": "^0.2.0",
"@bento/internal-props": "^0.1.1",
"@bento/types": "^0.1.0",
"@react-aria/utils": "^3.30.0"
},
"devDependencies": {
"@bento/types": "^0.1.0"
},
"devDependencies": {},
"peerDependencies": {
"react": "18.x || 19.x",
"react-dom": "18.x || 19.x"
Expand Down