@gradio/multimodaltextbox 0.11.3 → 0.11.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.
- package/CHANGELOG.md +37 -0
- package/Example.svelte +14 -10
- package/Index.svelte +17 -19
- package/MultimodalTextbox.stories.svelte +96 -59
- package/MultimodalTextboxExample.stories.svelte +17 -13
- package/dist/Example.svelte +14 -10
- package/dist/Example.svelte.d.ts +4 -18
- package/dist/Index.svelte +17 -19
- package/dist/shared/MultimodalTextbox.svelte +259 -194
- package/dist/shared/MultimodalTextbox.svelte.d.ts +19 -37
- package/dist/shared/types.d.ts +1 -1
- package/dist/types.d.ts +0 -2
- package/package.json +12 -12
- package/shared/MultimodalTextbox.svelte +259 -194
- package/shared/types.ts +1 -1
- package/types.ts +0 -2
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
import type { I18nFormatter } from "js/core/src/gradio_helper";
|
|
2
2
|
import type { FileData, Client } from "@gradio/client";
|
|
3
3
|
import type { WaveformOptions } from "@gradio/audio";
|
|
4
|
-
import type
|
|
4
|
+
import { type SelectData } from "@gradio/utils";
|
|
5
5
|
import type { InputHTMLAttributes } from "./types";
|
|
6
|
-
|
|
7
|
-
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
8
|
-
$$bindings?: Bindings;
|
|
9
|
-
} & Exports;
|
|
10
|
-
(internal: unknown, props: Props & {
|
|
11
|
-
$$events?: Events;
|
|
12
|
-
$$slots?: Slots;
|
|
13
|
-
}): Exports & {
|
|
14
|
-
$set?: any;
|
|
15
|
-
$on?: any;
|
|
16
|
-
};
|
|
17
|
-
z_$$bindings?: Bindings;
|
|
18
|
-
}
|
|
19
|
-
declare const MultimodalTextbox: $$__sveltets_2_IsomorphicComponent<{
|
|
6
|
+
type $$ComponentProps = {
|
|
20
7
|
value?: {
|
|
21
8
|
text: string;
|
|
22
9
|
files: FileData[];
|
|
@@ -50,28 +37,23 @@ declare const MultimodalTextbox: $$__sveltets_2_IsomorphicComponent<{
|
|
|
50
37
|
html_attributes?: InputHTMLAttributes | null;
|
|
51
38
|
upload_promise?: Promise<any> | null;
|
|
52
39
|
dragging?: boolean;
|
|
53
|
-
|
|
54
|
-
dragover: DragEvent;
|
|
55
|
-
error: CustomEvent<any>;
|
|
56
|
-
blur: CustomEvent<any>;
|
|
57
|
-
focus: CustomEvent<any>;
|
|
58
|
-
change: CustomEvent<{
|
|
40
|
+
onchange?: (value: {
|
|
59
41
|
text: string;
|
|
60
42
|
files: FileData[];
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
type MultimodalTextbox =
|
|
43
|
+
}) => void;
|
|
44
|
+
onsubmit?: () => void;
|
|
45
|
+
onstop?: () => void;
|
|
46
|
+
onblur?: () => void;
|
|
47
|
+
onselect?: (data: SelectData) => void;
|
|
48
|
+
oninput?: () => void;
|
|
49
|
+
onfocus?: () => void;
|
|
50
|
+
ondrag?: (dragging: boolean) => void;
|
|
51
|
+
onupload?: (files: FileData[] | FileData) => void;
|
|
52
|
+
onclear?: () => void;
|
|
53
|
+
onload?: (files: FileData[] | FileData) => void;
|
|
54
|
+
onerror?: (error: string) => void;
|
|
55
|
+
onstop_recording?: () => void;
|
|
56
|
+
};
|
|
57
|
+
declare const MultimodalTextbox: import("svelte").Component<$$ComponentProps, {}, "value" | "active_source" | "dragging" | "upload_promise">;
|
|
58
|
+
type MultimodalTextbox = ReturnType<typeof MultimodalTextbox>;
|
|
77
59
|
export default MultimodalTextbox;
|
package/dist/shared/types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { InputHTMLAttributes } from "../../textbox/
|
|
1
|
+
export type { InputHTMLAttributes } from "../../textbox/types";
|
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradio/multimodaltextbox",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.5",
|
|
4
4
|
"description": "Gradio UI packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "",
|
|
@@ -22,21 +22,21 @@
|
|
|
22
22
|
"./package.json": "./package.json"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@gradio/
|
|
26
|
-
"@gradio/
|
|
27
|
-
"@gradio/statustracker": "^0.12.
|
|
28
|
-
"@gradio/
|
|
29
|
-
"@gradio/
|
|
30
|
-
"@gradio/
|
|
31
|
-
"@gradio/
|
|
32
|
-
"@gradio/
|
|
33
|
-
"@gradio/audio": "^0.22.
|
|
25
|
+
"@gradio/atoms": "^0.21.0",
|
|
26
|
+
"@gradio/icons": "^0.15.1",
|
|
27
|
+
"@gradio/statustracker": "^0.12.3",
|
|
28
|
+
"@gradio/image": "^0.25.2",
|
|
29
|
+
"@gradio/utils": "^0.11.2",
|
|
30
|
+
"@gradio/upload": "^0.17.5",
|
|
31
|
+
"@gradio/video": "^0.20.2",
|
|
32
|
+
"@gradio/client": "^2.0.4",
|
|
33
|
+
"@gradio/audio": "^0.22.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@gradio/preview": "^0.15.
|
|
36
|
+
"@gradio/preview": "^0.15.2"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"svelte": "^5.
|
|
39
|
+
"svelte": "^5.48.0"
|
|
40
40
|
},
|
|
41
41
|
"repository": {
|
|
42
42
|
"type": "git",
|