refactor(chat): migrate to scoped web components - #4362
Draft
RSS1102 wants to merge 3 commits into
Draft
Conversation
16 tasks
Contributor
|
Size Change: -65 B (-0.06%) Total Size: 115 kB 📦 View Changed
ℹ️ View Unchanged
|
commit: |
Contributor
|
Size Change: 0 B Total Size: 932 kB ℹ️ View Unchanged
|
Collaborator
TDesign Component Site Preview Open
|
Merged
16 tasks
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.

🤔 这个 PR 的性质是?
🔗 相关 Issue
💡 需求背景和解决方案
React Chat 仍依赖旧的
tdesign-web-components@1.3.0-alpha.2,并直接访问lib/.../esm/...物理路径。本 PR 使用 WebC #409 的 scoped 包完成迁移:@tdesign/web-components和@tdesign/web-components-chat。export type *改为显式类型转发。eslint-disable-next-line import/first。46aedf9的不可变 pkg.pr.new 地址,避免动态@409地址与缓存、lockfile 产生不可复现结果。改动前后:
lib/.../type深层路径、宽泛类型转发。重点关注:
Td*Props;本 PR 使用的TdChat*类型仍保留,因此不需要修改 React Chat Wrapper 源码。MessagePlugin运行时导出;已在 WebC chore(deps-dev): bump @rollup/plugin-commonjs from 19.0.2 to 21.0.2 #409 修复。46aedf9仅用于联调,正式发布前需替换为 WebC scoped 包正式版本。tree-v1,迁移到 commontreev2 由独立任务推进。验证结果:
@tdesign/ai-shared,不将其错误添加为发布依赖。pnpm run build:aigc使用 WebC46aedf9构建通过。8.2.2+ rolldown-plugin-dts0.28.2能正确生成 scoped 根入口和 subpath 类型。📝 更新日志
tdesign-react
无变更。
@tdesign-react/chat
☑️ 请求合并前的自查清单