Skip to content

Add blazor tags for chat component#2135

Merged
rkaraivanov merged 16 commits into
masterfrom
mdragnev/chat-blazor-tags
Jun 15, 2026
Merged

Add blazor tags for chat component#2135
rkaraivanov merged 16 commits into
masterfrom
mdragnev/chat-blazor-tags

Conversation

@mddragnev

Copy link
Copy Markdown
Member

Description

Provide a clear and concise summary of the changes in this PR and the motivation behind them

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that causes existing functionality to change)
  • Documentation update
  • Refactoring (code improvements without functional changes)

Related Issues

Closes #

Testing

Checklist

  • My code follows the project's coding standards
  • I have tested my changes locally
  • I have updated documentation if needed
  • Breaking changes are documented in the description

Base automatically changed from mdragnev/blazor-tags to master March 12, 2026 13:16
@mddragnev mddragnev marked this pull request as ready for review June 15, 2026 14:46
Copilot AI review requested due to automatic review settings June 15, 2026 14:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 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 IgcChatDraftMessage and updated draftMessage accessor typing to use it.
  • Improved ChatState.emitEvent typing and adjusted igcInputChange emission/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
@rkaraivanov rkaraivanov merged commit 314937a into master Jun 15, 2026
6 checks passed
@rkaraivanov rkaraivanov deleted the mdragnev/chat-blazor-tags branch June 15, 2026 15:36
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.

4 participants