Skip to content

Commit b1e386a

Browse files
uyarntdesign-botliweijie0812
authored
chore: release @tdesign-vue-next/chat 0.4.0 (#5571)
* chore: release vue-next-chat 0.4.0 * chore: fix config-provider usage * chore: fix config-provider usage * chore: changelog * chore: update CHANGELOG * docs: udpate CHANGELOG.md --------- Co-authored-by: tdesign-bot <tdesign@tencent.com> Co-authored-by: liweijie0812 <674416404@qq.com>
1 parent 36f67bc commit b1e386a

File tree

11 files changed

+36
-10
lines changed

11 files changed

+36
-10
lines changed

internal/builds/vue-next-chat/build-components.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import {
3030
} from '@tdesign/internal-utils';
3131

3232
const name = '@tdesign-vue-next/chat';
33-
const esExternalDeps = Object.keys(pkg.dependencies || {});
33+
const esExternalDeps = Object.keys(pkg.dependencies || {}).concat('tdesign-vue-next/es/config-provider/hooks');
3434
const externalDeps = [...esExternalDeps, /@babel\/runtime/];
3535
const externalPeerDeps = Object.keys(pkg.peerDependencies || {});
3636
const DEFAULT_EXTENSIONS = ['.js', '.jsx', '.es6', '.es', '.mjs', '.cjs'];

packages/pro-components/chat/chat-action.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineComponent } from 'vue';
2-
import { usePrefixClass, useConfig, useTNodeJSX } from '@tdesign/hooks';
3-
import props from './chat-action-props';
2+
import { usePrefixClass, useTNodeJSX } from '@tdesign/hooks';
43
import { Button, Space, Tooltip } from 'tdesign-vue-next';
4+
import { useConfig } from 'tdesign-vue-next/es/config-provider/hooks';
55
import {
66
ThumbUpIcon,
77
ThumbUpFilledIcon,
@@ -12,6 +12,7 @@ import {
1212
} from 'tdesign-icons-vue-next';
1313
// TODO: need refactor
1414
import Clipboard from 'clipboard';
15+
import props from './chat-action-props';
1516
import { MessagePluginSingleton } from './utils';
1617

1718
export default defineComponent({

packages/pro-components/chat/chat-content.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { defineComponent, computed, onMounted, inject, ComputedRef } from 'vue';
2-
import { usePrefixClass, useConfig } from '@tdesign/hooks';
2+
import { useConfig } from 'tdesign-vue-next/es/config-provider/hooks';
3+
import { usePrefixClass } from '@tdesign/hooks';
34
import props from './chat-content-props';
45
import Clipboard from 'clipboard';
56
import hljs from 'highlight.js';

packages/pro-components/chat/chat-input.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { defineComponent, toRefs, computed } from 'vue';
22
import { RectangleIcon, SendIcon, StopCircleIcon } from 'tdesign-icons-vue-next';
33
import { Button, Textarea } from 'tdesign-vue-next';
4-
import { useTNodeJSX, usePrefixClass, useConfig, useVModel } from '@tdesign/hooks';
4+
import { useConfig } from 'tdesign-vue-next/es/config-provider/hooks';
5+
import { useTNodeJSX, usePrefixClass, useVModel } from '@tdesign/hooks';
56
import props from './chat-input-props';
67

78
export default defineComponent({

packages/pro-components/chat/chat-item.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import { defineComponent, computed, provide, Fragment } from 'vue';
2-
import { usePrefixClass, useConfig, useTNodeJSX } from '@tdesign/hooks';
2+
import { useConfig } from 'tdesign-vue-next/es/config-provider/hooks';
3+
4+
import { usePrefixClass, useTNodeJSX } from '@tdesign/hooks';
5+
36
import props from './chat-item-props';
47
import { isString, isObject } from 'lodash-es';
58
import { Skeleton } from 'tdesign-vue-next';

packages/pro-components/chat/chat-sender.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import { defineComponent, ref, computed, toRefs, reactive, Fragment } from 'vue';
22
import { SendFilledIcon, FileAttachmentIcon, ImageIcon } from 'tdesign-icons-vue-next';
3-
import { usePrefixClass, useConfig, useTNodeJSX, useContent, useVModel } from '@tdesign/hooks';
4-
import props from './chat-sender-props';
53
import { Button, Textarea, Tooltip } from 'tdesign-vue-next';
4+
import { useConfig } from 'tdesign-vue-next/es/config-provider/hooks';
5+
6+
import { usePrefixClass, useTNodeJSX, useContent, useVModel } from '@tdesign/hooks';
7+
import props from './chat-sender-props';
68

79
import type { TdChatSenderProps, UploadActionType, UploadActionConfig } from './type';
810

packages/pro-components/chat/chat.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { defineComponent, computed, provide, ref } from 'vue';
22
import { ClearIcon } from 'tdesign-icons-vue-next';
3+
import { useConfig } from 'tdesign-vue-next/es/config-provider/hooks';
34
import { isArray } from 'lodash-es';
45
import props from './props';
56
import { Divider, Popconfirm } from 'tdesign-vue-next';
6-
import { usePrefixClass, useConfig, useTNodeJSX } from '@tdesign/hooks';
7+
import { usePrefixClass, useTNodeJSX } from '@tdesign/hooks';
78
import ChatItem from './chat-item';
89
import { TdChatItemProps, ScrollToBottomParams } from './type';
910

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { ConfigProvider } from 'tdesign-vue-next';

packages/tdesign-vue-next-chat/CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@ toc: false
55
spline: explain
66
---
77

8+
## 🌈 0.4.0 `2025-06-06`
9+
### 🚨 Breaking Change
10+
- 优化产物内容,移除冗余的 bundle 或非冗余 bundle 中的冗余产物,若使用此前文档并未声明的 bundle 内容请注意此变更 ⚠️ @zhangpaopao0609 @uyarn ([#5568](https://github.com/Tencent/tdesign-vue-next/pull/5568))
11+
12+
### 🐞 Bug Fixes
13+
14+
- `ChatSender`: @zydemail @dingJieWork ([#5471](https://github.com/Tencent/tdesign-vue-next/pull/5471))
15+
- 修复输入框有内容点击上传触发 send 回调事件的问题
16+
- 修复点击上传附件按钮时,按钮在loading 状态结束前不正常展示的异常问题
17+
18+
### 🚧 Others
19+
20+
- `ChatSender`: 优化部分示例的展示效果
21+
22+
823
## 🌈 0.3.0 `2025-05-06`
924

1025
### 🚀 Features

packages/tdesign-vue-next-chat/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tdesign-vue-next/chat",
3-
"version": "0.3.0",
3+
"version": "0.4.0",
44
"title": "@tdesign-vue-next/chat",
55
"description": "AI Chat Component for Vue 3",
66
"repository": {

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"@src/*": [ "packages/components/*" ],
4040
"tdesign-vue-next": [ "packages/components" ],
4141
"tdesign-vue-next/es/locale/*": [ "packages/components/locale/*" ],
42+
"tdesign-vue-next/es/config-provider/hooks": [ "packages/components/config-provider/hooks" ],
4243
"@common/*": ["packages/common/*"],
4344
"@test/utils": ["test/utils"]
4445
}

0 commit comments

Comments
 (0)