Skip to content

Chat: Add suggestion option type to .d.ts#33219

Open
marker-dao wants to merge 3 commits intoDevExpress:26_1from
marker-dao:26_1_chat_suggestion_api
Open

Chat: Add suggestion option type to .d.ts#33219
marker-dao wants to merge 3 commits intoDevExpress:26_1from
marker-dao:26_1_chat_suggestion_api

Conversation

@marker-dao
Copy link
Copy Markdown
Contributor

No description provided.

@marker-dao marker-dao self-assigned this Apr 10, 2026
@github-actions github-actions bot added the .d.ts label Apr 10, 2026
@marker-dao marker-dao marked this pull request as ready for review April 10, 2026 07:01
@marker-dao marker-dao requested a review from a team as a code owner April 10, 2026 07:01
Copilot AI review requested due to automatic review settings April 10, 2026 07:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.suggestions to core typings (dx.all.d.ts and ui/chat.d.ts) based on ButtonGroup options.
  • Updated Vue and React chat wrappers to accept/configure the new suggestions nested option and related nested components.
  • Updated Angular metadata + Angular chat wrapper to expose suggestions and 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants