-
Notifications
You must be signed in to change notification settings - Fork 72
[LG-5575] refactor(chat): remove spacious variant, remove div from LeafyGreenChatProvider, and remove peer dep if unnecessary #3294
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
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b518841
chore(chat avatar): move to deprecated-packages
stephl3 69e0d3b
chore(fixed-chat-window): move to deprecated-packages
stephl3 9308c37
refactor(chat): remove spacious variant, remove div from LeafyGreenCh…
stephl3 add4041
fix(chat): spacing and InputBar resize
stephl3 c34830b
chore(chat): changesets
stephl3 f487d06
refactor(chat): add back LG chat provider peer dep and extend to incl…
stephl3 0d26182
chore(chat): update changesets
stephl3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| '@lg-chat/chat-layout': minor | ||
| --- | ||
|
|
||
| [LG-5575](https://jira.mongodb.org/browse/LG-5575) | ||
|
|
||
| - Added compatibility with `@lg-chat/[email protected]`. We recommend new projects use `@lg-chat/leafygreen-chat-provider` v6; support for v5 will be removed in a future major version. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| '@lg-chat/leafygreen-chat-provider': major | ||
| --- | ||
|
|
||
| - Removed `variant` prop and `Variant` enum export. The provider no longer supports variant selection (spacious/compact). All components now use a single, consistent design. | ||
| - Removed `containerWidth` from context value. This was only used in spacious variants. | ||
| - Removed wrapper `div` element from `LeafyGreenChatProvider`. | ||
| - Removed `use-resize-observer` dependency. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| --- | ||
| '@lg-chat/chat-window': major | ||
| --- | ||
|
|
||
| [LG-5575](https://jira.mongodb.org/browse/LG-5575) | ||
|
|
||
| - Added compatibility with `@lg-chat/[email protected]`. We recommend new projects use `@lg-chat/leafygreen-chat-provider` v6; support for v5 will be removed in a future major version. | ||
| - All chat components have been simplified by removing variant-specific conditional logic. | ||
| - Removed `onClose` and `iconSlot` props from `ChatWindowProps`. These props were only used in the spacious variant. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- | ||
| '@lg-chat/input-bar': major | ||
| --- | ||
|
|
||
| [LG-5575](https://jira.mongodb.org/browse/LG-5575) | ||
|
|
||
| - Added compatibility with `@lg-chat/[email protected]`. We recommend new projects use `@lg-chat/leafygreen-chat-provider` v6; support for v5 will be removed in a future major version. | ||
| - Removed deprecated `lgInputBarStyles` export. | ||
| - All chat components have been simplified by removing variant-specific conditional logic. | ||
| - Removed props: `badgeText`, `shouldRenderGradient`, and `shouldRenderHotKeyIndicator` | ||
| - Added min-width of 150px to `textarea` element to ensure proper height calculation. | ||
| - Updated `react-textarea-autosize` from `^8.3.2` to `^8.5.9`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@lg-chat/lg-markdown': major | ||
| --- | ||
|
|
||
| - Removed deprecated `lgMarkdownStyles` export. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| --- | ||
| '@lg-chat/message-feed': major | ||
| --- | ||
|
|
||
| [LG-5575](https://jira.mongodb.org/browse/LG-5575) | ||
|
|
||
| - Added compatibility with `@lg-chat/[email protected]`. We recommend new projects use `@lg-chat/leafygreen-chat-provider` v6; support for v5 will be removed in a future major version. | ||
| - Removed deprecated `lgMessageFeedStyles` export. | ||
| - All chat components have been simplified by removing variant-specific conditional logic. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| '@lg-chat/message-feedback': major | ||
| --- | ||
|
|
||
| [LG-5575](https://jira.mongodb.org/browse/LG-5575) | ||
|
|
||
| - Added compatibility with `@lg-chat/[email protected]`. We recommend new projects use `@lg-chat/leafygreen-chat-provider` v6; support for v5 will be removed in a future major version. | ||
| - Removed `PopoverMessageFeedback` component and `PopoverMessageFeedbackProps` type exports. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- | ||
| '@lg-chat/message-rating': major | ||
| --- | ||
|
|
||
| [LG-5575](https://jira.mongodb.org/browse/LG-5575) | ||
|
|
||
| - Added compatibility with `@lg-chat/[email protected]`. We recommend new projects use `@lg-chat/leafygreen-chat-provider` v6; support for v5 will be removed in a future major version. | ||
| - Removed deprecated `lgMessageRatingStyles` export. | ||
| - All chat components have been simplified by removing variant-specific conditional logic. | ||
| - Removed `description` prop. | ||
| - Removed `RadioButton` component and related exports (`lgRadioButtonStyles`, `RadioButtonProps` type). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| --- | ||
| '@lg-chat/message': major | ||
| --- | ||
|
|
||
| [LG-5575](https://jira.mongodb.org/browse/LG-5575) | ||
|
|
||
| - Added compatibility with `@lg-chat/[email protected]`. We recommend new projects use `@lg-chat/leafygreen-chat-provider` v6; support for v5 will be removed in a future major version. | ||
| - Removed the following exports: | ||
| - `lgMessageStyles` | ||
| - `MessageContainer` component, `lgMessageContainerStyles`, and `MessageContainerProps` type | ||
| - `MessageContent` component and `MessageContentProps` type | ||
| - `MessageLinks` component | ||
| - All chat components have been simplified by removing variant-specific conditional logic. | ||
| - Removed props: `align`, `avatar`, `baseFontSize`, `componentOverrides`, `links`, `linksHeading`, `onLinkClick`, and `verified` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| --- | ||
| '@lg-chat/title-bar': major | ||
| --- | ||
|
|
||
| [LG-5575](https://jira.mongodb.org/browse/LG-5575) | ||
|
|
||
| - Added compatibility with `@lg-chat/[email protected]`. We recommend new projects use `@lg-chat/leafygreen-chat-provider` v6; support for v5 will be removed in a future major version. | ||
| - All chat components have been simplified by removing variant-specific conditional logic. | ||
| - Removed `align`, `iconSlot`, and `onClose` props. | ||
| - Removed `Align` enum export. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left this as a minor per Gemini's rec. Also thinking minor is ideal for now since it's still in beta release