ant-design-x-vue 1.2.7 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +7353 -6936
- package/dist/index.umd.js +66 -66
- package/es/_util/cssinjs/StyleContext.mjs +48 -42
- package/es/attachments/FileList/FileList2.mjs +12 -10
- package/es/index.mjs +79 -45
- package/es/sender/Sender.mjs +82 -78
- package/es/sender/components/ActionButton/index.mjs +15 -12
- package/es/sender/components/ClearButton.mjs +15 -12
- package/es/sender/components/LoadingButton.mjs +16 -13
- package/es/sender/components/SendButton.mjs +17 -14
- package/es/sender/components/SpeechButton/RecordingIcon.mjs +21 -18
- package/es/sender/components/SpeechButton/index.mjs +31 -25
- package/es/suggestion/Suggestion.mjs +154 -49
- package/es/welcome/Welcome.mjs +44 -36
- package/lib/_util/cssinjs/StyleContext.js +1 -1
- package/lib/attachments/FileList/FileList2.js +1 -1
- package/lib/index.js +1 -1
- package/lib/sender/Sender.js +1 -1
- package/lib/sender/components/ActionButton/index.js +1 -1
- package/lib/sender/components/ClearButton.js +1 -1
- package/lib/sender/components/LoadingButton.js +1 -1
- package/lib/sender/components/SendButton.js +1 -1
- package/lib/sender/components/SpeechButton/RecordingIcon.js +1 -1
- package/lib/sender/components/SpeechButton/index.js +1 -1
- package/lib/suggestion/Suggestion.js +1 -1
- package/lib/welcome/Welcome.js +1 -1
- package/package.json +2 -2
- package/typings/_util/cssinjs/StyleContext.d.ts +6 -6
- package/typings/_util/cssinjs/index.d.ts +3 -3
- package/typings/bubble/hooks/useTypingConfig.d.ts +1 -1
- package/typings/bubble/interface.d.ts +1 -1
- package/typings/index.d.ts +1 -0
- package/typings/sender/interface.d.ts +6 -0
- package/typings/sender/useSpeech.d.ts +5 -1
- package/typings/welcome/interface.d.ts +4 -4
|
@@ -101,6 +101,9 @@ export interface SenderHeaderProps {
|
|
|
101
101
|
}
|
|
102
102
|
export interface RecordingIconProps {
|
|
103
103
|
className?: string;
|
|
104
|
+
audioIcon?: ButtonProps['icon'];
|
|
105
|
+
audioDisabledIcon?: ButtonProps['icon'];
|
|
106
|
+
audioRecordingIcon?: ButtonProps['icon'];
|
|
104
107
|
}
|
|
105
108
|
export interface ActionButtonContextProps {
|
|
106
109
|
prefixCls?: ConfigProviderProps['prefixCls'];
|
|
@@ -132,6 +135,9 @@ export interface AntdButtonProps {
|
|
|
132
135
|
title?: ButtonProps['title'];
|
|
133
136
|
onClick?: ButtonProps['onClick'];
|
|
134
137
|
onMousedown?: ButtonProps['onMousedown'];
|
|
138
|
+
audioIcon?: ButtonProps['icon'] | VNode;
|
|
139
|
+
audioDisabledIcon?: ButtonProps['icon'] | VNode;
|
|
140
|
+
audioRecordingIcon?: ButtonProps['icon'] | VNode;
|
|
135
141
|
}
|
|
136
142
|
export interface ActionButtonProps extends AntdButtonProps {
|
|
137
143
|
action: 'onSend' | 'onClear' | 'onCancel' | 'onSpeech';
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import { ButtonProps } from 'ant-design-vue';
|
|
1
2
|
import { type MaybeRefOrGetter, type ComputedRef, type Ref } from 'vue';
|
|
2
3
|
export type ControlledSpeechConfig = {
|
|
3
4
|
recording?: boolean;
|
|
4
|
-
onRecordingChange
|
|
5
|
+
onRecordingChange?: (recording: boolean) => void;
|
|
6
|
+
audioIcon?: ButtonProps['icon'];
|
|
7
|
+
audioDisabledIcon?: ButtonProps['icon'];
|
|
8
|
+
audioRecordingIcon?: ButtonProps['icon'];
|
|
5
9
|
};
|
|
6
10
|
export type AllowSpeech = boolean | ControlledSpeechConfig;
|
|
7
11
|
export type UseSpeechReturn = {
|
|
@@ -8,8 +8,8 @@ export interface WelcomeProps {
|
|
|
8
8
|
variant?: 'filled' | 'borderless';
|
|
9
9
|
classNames?: Partial<Record<SemanticType, string>>;
|
|
10
10
|
styles?: Partial<Record<SemanticType, CSSProperties>>;
|
|
11
|
-
icon?: VNode | string;
|
|
12
|
-
title?: VNode | string;
|
|
13
|
-
description?: VNode | string;
|
|
14
|
-
extra?: VNode;
|
|
11
|
+
icon?: VNode | string | (() => VNode | string);
|
|
12
|
+
title?: VNode | string | (() => VNode | string);
|
|
13
|
+
description?: VNode | string | (() => VNode | string);
|
|
14
|
+
extra?: VNode | string | (() => VNode | string);
|
|
15
15
|
}
|