livekit / components-js

Official open source React components and examples for building with LiveKit.
https://livekit.io
Apache License 2.0
183 stars 81 forks source link

Fix Chat usage without layoutcontext #1027

Closed lukasIO closed 1 week ago

lukasIO commented 1 week ago

The functionality of the <Chat /> component should not depend on the presence of LayoutContext. There was a regression when we introduced a close button for chat as the ChatToggle button requires the LayoutContext. This PR fixes that by only rendering the ChatToggle if a LayoutContext is actually present.

changeset-bot[bot] commented 1 week ago

🦋 Changeset detected

Latest commit: 4570caa7fb27323c3da03a2dbdb0d659cb3f1b2f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages | Name | Type | | --------------------------------- | ----- | | @livekit/components-react | Patch | | @livekit/component-example-next | Patch | | @livekit/components-js-docs | Patch | | @livekit/component-docs-storybook | Patch | | @livekit/components-docs-gen | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

github-actions[bot] commented 1 week ago

size-limit report 📦

Path Size
LiveKitRoom only 6.02 KB (0%)
LiveKitRoom with VideoConference 29.77 KB (-0.02% 🔽)
All exports 36.58 KB (+0.03% 🔺)