ant-design-x-vue 1.0.4 → 1.0.5

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.
@@ -1,6 +1,7 @@
1
1
  import ClearButton from './components/ClearButton.vue';
2
2
  import LoadingButton from './components/LoadingButton.vue';
3
3
  import SendButton from './components/SendButton.vue';
4
+ import SpeechButton from './components/SpeechButton/index.vue';
4
5
  import type { SenderProps } from './interface';
5
6
  import { type VNode } from 'vue';
6
7
  declare function __VLS_template(): {
@@ -15,6 +16,7 @@ declare function __VLS_template(): {
15
16
  SendButton: typeof SendButton;
16
17
  ClearButton: typeof ClearButton;
17
18
  LoadingButton: typeof LoadingButton;
19
+ SpeechButton: typeof SpeechButton;
18
20
  };
19
21
  };
20
22
  }): VNode;
@@ -28,6 +30,7 @@ declare function __VLS_template(): {
28
30
  SendButton: typeof SendButton;
29
31
  ClearButton: typeof ClearButton;
30
32
  LoadingButton: typeof LoadingButton;
33
+ SpeechButton: typeof SpeechButton;
31
34
  };
32
35
  };
33
36
  }): VNode;
@@ -44,6 +44,7 @@ declare const Sender: {
44
44
  SendButton: typeof import("./components/SendButton.vue").default;
45
45
  ClearButton: typeof import("./components/ClearButton.vue").default;
46
46
  LoadingButton: typeof import("./components/LoadingButton.vue").default;
47
+ SpeechButton: typeof import("./components/SpeechButton/index.vue").default;
47
48
  };
48
49
  };
49
50
  }): import("vue").VNode;
@@ -57,6 +58,7 @@ declare const Sender: {
57
58
  SendButton: typeof import("./components/SendButton.vue").default;
58
59
  ClearButton: typeof import("./components/ClearButton.vue").default;
59
60
  LoadingButton: typeof import("./components/LoadingButton.vue").default;
61
+ SpeechButton: typeof import("./components/SpeechButton/index.vue").default;
60
62
  };
61
63
  };
62
64
  }): import("vue").VNode;
@@ -9,6 +9,7 @@ import type { AvoidValidation } from '../type-utility';
9
9
  import SendButton from "./components/SendButton.vue";
10
10
  import ClearButton from "./components/ClearButton.vue";
11
11
  import LoadingButton from "./components/LoadingButton.vue";
12
+ import SpeechButton from "./components/SpeechButton/index.vue";
12
13
  export type SubmitType = 'enter' | 'shiftEnter' | false;
13
14
  export interface SenderComponents {
14
15
  input?: typeof Input.TextArea;
@@ -18,6 +19,7 @@ export type ActionsRender = (ori: VNode, info: {
18
19
  SendButton: typeof SendButton;
19
20
  ClearButton: typeof ClearButton;
20
21
  LoadingButton: typeof LoadingButton;
22
+ SpeechButton: typeof SpeechButton;
21
23
  };
22
24
  }) => VNode;
23
25
  export interface SenderProps {
@@ -5,8 +5,10 @@ import type { ComponentToken as PromptsComponentToken } from '../prompts/style';
5
5
  import type { ComponentToken as SenderComponentToken } from '../sender/style';
6
6
  import type { ComponentToken as SuggestionComponentToken } from '../suggestion/style';
7
7
  import type { ComponentToken as ThoughtChainComponentToken } from '../thought-chain/style';
8
+ import type { ComponentToken as TransitionCollapseComponentToken } from '../transition-collapse/style';
8
9
  import type { ComponentToken as WelcomeComponentToken } from '../welcome/style';
9
10
  export interface ComponentTokenMap {
11
+ TransitionCollapse?: TransitionCollapseComponentToken;
10
12
  Attachments?: AttachmentsToken;
11
13
  Bubble?: BubbleComponentToken;
12
14
  Conversations?: ConversationsComponentToken;
@@ -1,16 +1,20 @@
1
1
  type __VLS_Props = {
2
- prefixCls: string;
2
+ prefixCls?: string;
3
3
  };
4
4
  declare function __VLS_template(): {
5
5
  attrs: Partial<{}>;
6
- slots: {
7
- default?(_: {}): any;
6
+ slots: Readonly<{
7
+ default(props?: any): any;
8
+ }> & {
9
+ default(props?: any): any;
8
10
  };
9
11
  refs: {};
10
12
  rootEl: any;
11
13
  };
12
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
16
+ prefixCls: string;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
14
18
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
19
  export default _default;
16
20
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -0,0 +1,6 @@
1
+ import type { Plugin } from 'vue';
2
+ import TransitionCollapse from './TransitionCollapse.vue';
3
+ export { TransitionCollapse };
4
+ export { genTransitionCollapseStyle } from './style';
5
+ declare const _default: typeof TransitionCollapse & Plugin;
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import type { FullToken, GenerateStyle } from '../../theme/cssinjs-utils';
2
+ export interface ComponentToken {
3
+ }
4
+ export interface TransitionCollapseToken extends FullToken<'TransitionCollapse'> {
5
+ }
6
+ export declare const genTransitionCollapseStyle: GenerateStyle<TransitionCollapseToken>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ant-design-x-vue",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Craft AI-driven interfaces effortlessly",
5
5
  "keywords": [
6
6
  "AI",
@@ -24,7 +24,8 @@
24
24
  "release": "pnpm test && changelogen --release && npm publish && git push --follow-tags",
25
25
  "test": "vitest",
26
26
  "test:cov": "vitest --coverage",
27
- "typecheck": "vue-tsc --noEmit"
27
+ "typecheck": "vue-tsc --noEmit",
28
+ "play": "vite ./play"
28
29
  },
29
30
  "author": {
30
31
  "name": "wzc520pyfm",
@@ -45,6 +46,7 @@
45
46
  },
46
47
  "main": "./dist/index.umd.js",
47
48
  "module": "./dist/index.mjs",
49
+ "unpkg": "dist/index.umd.js",
48
50
  "types": "./dist/typings/index.d.ts",
49
51
  "files": [
50
52
  "dist"