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.
Files changed (35) hide show
  1. package/dist/index.esm.js +7353 -6936
  2. package/dist/index.umd.js +66 -66
  3. package/es/_util/cssinjs/StyleContext.mjs +48 -42
  4. package/es/attachments/FileList/FileList2.mjs +12 -10
  5. package/es/index.mjs +79 -45
  6. package/es/sender/Sender.mjs +82 -78
  7. package/es/sender/components/ActionButton/index.mjs +15 -12
  8. package/es/sender/components/ClearButton.mjs +15 -12
  9. package/es/sender/components/LoadingButton.mjs +16 -13
  10. package/es/sender/components/SendButton.mjs +17 -14
  11. package/es/sender/components/SpeechButton/RecordingIcon.mjs +21 -18
  12. package/es/sender/components/SpeechButton/index.mjs +31 -25
  13. package/es/suggestion/Suggestion.mjs +154 -49
  14. package/es/welcome/Welcome.mjs +44 -36
  15. package/lib/_util/cssinjs/StyleContext.js +1 -1
  16. package/lib/attachments/FileList/FileList2.js +1 -1
  17. package/lib/index.js +1 -1
  18. package/lib/sender/Sender.js +1 -1
  19. package/lib/sender/components/ActionButton/index.js +1 -1
  20. package/lib/sender/components/ClearButton.js +1 -1
  21. package/lib/sender/components/LoadingButton.js +1 -1
  22. package/lib/sender/components/SendButton.js +1 -1
  23. package/lib/sender/components/SpeechButton/RecordingIcon.js +1 -1
  24. package/lib/sender/components/SpeechButton/index.js +1 -1
  25. package/lib/suggestion/Suggestion.js +1 -1
  26. package/lib/welcome/Welcome.js +1 -1
  27. package/package.json +2 -2
  28. package/typings/_util/cssinjs/StyleContext.d.ts +6 -6
  29. package/typings/_util/cssinjs/index.d.ts +3 -3
  30. package/typings/bubble/hooks/useTypingConfig.d.ts +1 -1
  31. package/typings/bubble/interface.d.ts +1 -1
  32. package/typings/index.d.ts +1 -0
  33. package/typings/sender/interface.d.ts +6 -0
  34. package/typings/sender/useSpeech.d.ts +5 -1
  35. 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: (recording: boolean) => void;
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
  }