Chat: Add suggestion option type to .d.ts#33219
Open
marker-dao wants to merge 3 commits intoDevExpress:26_1from
Open
Chat: Add suggestion option type to .d.ts#33219marker-dao wants to merge 3 commits intoDevExpress:26_1from
marker-dao wants to merge 3 commits intoDevExpress:26_1from
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends the dxChat API surface across the core TypeScript declarations and framework wrappers by introducing a new suggestions option (based on ButtonGroup options) and wiring it into Vue/React/Angular wrapper configuration.
Changes:
- Added
dxChatOptions.suggestionsto core typings (dx.all.d.tsandui/chat.d.ts) based on ButtonGroup options. - Updated Vue and React chat wrappers to accept/configure the new
suggestionsnested option and related nested components. - Updated Angular metadata + Angular chat wrapper to expose
suggestionsand added Angular nested components for suggestions configuration.
Reviewed changes
Copilot reviewed 9 out of 11 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/devextreme/ts/dx.all.d.ts | Adds suggestions to the aggregated DevExtreme typings for dxChat options. |
| packages/devextreme/js/ui/chat.d.ts | Adds suggestions to the source dxChat .d.ts options surface. |
| packages/devextreme-vue/src/chat.ts | Exposes suggestions prop and adds Vue nested configuration components for suggestions/items. |
| packages/devextreme-react/src/chat.ts | Adds React nested option components for suggestions and item variants; adds subscribable suggestion selections. |
| packages/devextreme-metadata/make-angular-metadata.ts | Adjusts Angular metadata mutations to account for the new suggestions option. |
| packages/devextreme-angular/src/ui/chat/index.ts | Exposes suggestions on the Angular DxChat component and wires change output. |
| packages/devextreme-angular/src/ui/chat/nested/suggestions.ts | Adds Angular nested option component for configuring suggestions. |
| packages/devextreme-angular/src/ui/chat/nested/suggestions-item-dxi.ts | Adds Angular collection item component for suggestions button items. |
| packages/devextreme-angular/src/ui/chat/nested/item-dxi.ts | Updates the existing dxi-chat-item nested option implementation (template support, additional props). |
| packages/devextreme-angular/src/ui/chat/nested/chat-item-dxi.ts | Adds a new nested collection item component for chat items (separate selector). |
| packages/devextreme-angular/src/ui/chat/nested/index.ts | Re-exports the newly added Angular nested components. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.