ant-design-x-vue 0.0.11 → 0.0.13
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.mjs +468 -464
- package/dist/index.umd.js +9 -9
- package/dist/typings/sender/StopLoading.vue.d.ts +3 -15
- package/dist/typings/sender/components/ActionButton/context.d.ts +1 -1
- package/dist/typings/sender/components/ActionButton/index.vue.d.ts +12 -12
- package/dist/typings/sender/useSpeech.d.ts +3 -2
- package/package.json +1 -1
- package/dist/typings/sender/components/SendButton.vue.d.ts +0 -34
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
className: string;
|
|
4
|
-
}> & import("vue").PublicProps;
|
|
5
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
6
|
-
attrs: any;
|
|
7
|
-
slots: {};
|
|
8
|
-
emit: {};
|
|
9
|
-
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
}> & {
|
|
12
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
className: string;
|
|
13
3
|
};
|
|
4
|
+
declare const _default: 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>;
|
|
14
5
|
export default _default;
|
|
15
|
-
type __VLS_PrettifyLocal<T> = {
|
|
16
|
-
[K in keyof T]: T[K];
|
|
17
|
-
} & {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComputedRef } from "vue";
|
|
2
|
-
import { ActionButtonContextProps } from "../../interface";
|
|
2
|
+
import type { ActionButtonContextProps } from "../../interface";
|
|
3
3
|
export declare const globalActionButtonContextApi: import("vue").ShallowRef<ActionButtonContextProps, ActionButtonContextProps>;
|
|
4
4
|
export declare const useActionButtonContextProvider: (value: ComputedRef<ActionButtonContextProps>) => void;
|
|
5
5
|
export declare const useActionButtonContextInject: () => ComputedRef<ActionButtonContextProps>;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import type { ActionButtonProps } from '../../interface';
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
5
|
-
attrs: any;
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
6
4
|
slots: Readonly<{
|
|
7
5
|
default(): any;
|
|
8
6
|
}> & {
|
|
9
7
|
default(): any;
|
|
10
8
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
}> & {
|
|
15
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
9
|
+
refs: {};
|
|
10
|
+
rootEl: any;
|
|
16
11
|
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import("vue").DefineComponent<ActionButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ActionButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
15
|
export default _default;
|
|
18
|
-
type
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { MaybeRefOrGetter } from 'vue';
|
|
1
2
|
export type ControlledSpeechConfig = {
|
|
2
3
|
recording?: boolean;
|
|
3
4
|
onRecordingChange: (recording: boolean) => void;
|
|
4
5
|
};
|
|
5
6
|
export type AllowSpeech = boolean | ControlledSpeechConfig;
|
|
6
|
-
export default function useSpeech(onSpeech: (transcript: string) => void, allowSpeech?: AllowSpeech): {
|
|
7
|
+
export default function useSpeech(onSpeech: (transcript: string) => void, allowSpeech?: MaybeRefOrGetter<AllowSpeech>): {
|
|
7
8
|
speechPermission: import("vue").ComputedRef<boolean>;
|
|
8
|
-
triggerSpeech: (
|
|
9
|
+
triggerSpeech: (forceBreak: boolean) => void;
|
|
9
10
|
recording: import("vue").Ref<boolean, boolean>;
|
|
10
11
|
};
|
package/package.json
CHANGED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
declare const _default: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
2
|
-
props: {
|
|
3
|
-
loading?: boolean | {
|
|
4
|
-
delay?: number;
|
|
5
|
-
};
|
|
6
|
-
htmlType?: import("ant-design-vue/es/button/buttonTypes.js").ButtonHTMLType;
|
|
7
|
-
size?: import("ant-design-vue/es/config-provider/context.js").SizeType;
|
|
8
|
-
prefixCls?: string;
|
|
9
|
-
type?: import("ant-design-vue/es/button/buttonTypes.js").ButtonType;
|
|
10
|
-
ghost?: boolean;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
onClick?: import("ant-design-vue/es/_util/EventInterface.js").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface.js").MouseEventHandler[];
|
|
13
|
-
onMousedown?: import("ant-design-vue/es/_util/EventInterface.js").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface.js").MouseEventHandler[];
|
|
14
|
-
title?: string;
|
|
15
|
-
icon?: any;
|
|
16
|
-
target?: string;
|
|
17
|
-
danger?: boolean;
|
|
18
|
-
block?: boolean;
|
|
19
|
-
shape?: import("ant-design-vue/es/button/buttonTypes.js").ButtonShape;
|
|
20
|
-
href?: string;
|
|
21
|
-
} & import("vue").PublicProps;
|
|
22
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
23
|
-
attrs: any;
|
|
24
|
-
slots: {};
|
|
25
|
-
emit: {};
|
|
26
|
-
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
}> & {
|
|
29
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
30
|
-
};
|
|
31
|
-
export default _default;
|
|
32
|
-
type __VLS_PrettifyLocal<T> = {
|
|
33
|
-
[K in keyof T]: T[K];
|
|
34
|
-
} & {};
|