Add blazor tags for chat component#2135
Merged
Merged
Conversation
…UI/igniteui-webcomponents into mdragnev/chat-blazor-tags
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Chat component’s public typings and metadata to better support Blazor wrapper generation, while also tightening event typing and aligning emitted event payloads with the declared CustomEvent types.
Changes:
- Added Blazor/analyzer metadata tags across chat public interfaces, events, and component docs.
- Introduced
IgcChatDraftMessageand updateddraftMessageaccessor typing to use it. - Improved
ChatState.emitEventtyping and adjustedigcInputChangeemission/tests to use a string detail payload.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/components/chat/types.ts | Adds analyzer/Blazor tags, introduces IgcChatDraftMessage, and adjusts exported chat option typing. |
| src/components/chat/message-attachments.ts | Marks the internal attachments component as hidden/internal in docs. |
| src/components/chat/chat.ts | Adds Blazor component tags, suppresses certain attachment events for Blazor, and updates draftMessage typing. |
| src/components/chat/chat.spec.ts | Updates the expected igcInputChange payload shape in tests. |
| src/components/chat/chat-state.ts | Tightens emitEvent typing using UnpackCustomEvent for safer event emission. |
| src/components/chat/chat-input.ts | Aligns igcInputChange emission to CustomEvent<string> by sending a string detail. |
Comment on lines
161
to
164
| /** | ||
| * An object containing a collection of custom renderers for different parts of the chat UI. | ||
| */ | ||
| renderers?: ChatRenderers; |
Comment on lines
51
to
+55
| * @csspart actions - Container for header action buttons. | ||
| * @csspart image-attachment - Part for the image element inside an image attachment. | ||
| * | ||
| * @fires igcAttachmentClick - Fired when an attachment header is toggled (clicked). | ||
| * @hidden @internal |
damyanpetev
approved these changes
Jun 15, 2026
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.
Description
Type of Change
Related Issues
Closes #
Testing
Checklist