@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.
@@ -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 { SelectData } from "@gradio/utils";
4
+ import { type SelectData } from "@gradio/utils";
5
5
  import type { InputHTMLAttributes } from "./types";
6
- interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
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
- submit: CustomEvent<undefined>;
63
- stop: CustomEvent<undefined>;
64
- select: CustomEvent<SelectData>;
65
- input: CustomEvent<undefined>;
66
- drag: CustomEvent<boolean>;
67
- upload: CustomEvent<FileData | FileData[]>;
68
- clear: CustomEvent<undefined>;
69
- load: CustomEvent<FileData | FileData[]>;
70
- start_recording: CustomEvent<undefined>;
71
- pause_recording: CustomEvent<undefined>;
72
- stop_recording: CustomEvent<undefined>;
73
- } & {
74
- [evt: string]: CustomEvent<any>;
75
- }, {}, {}, string>;
76
- type MultimodalTextbox = InstanceType<typeof 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;
@@ -1 +1 @@
1
- export type { InputHTMLAttributes } from "../../textbox/shared/types";
1
+ export type { InputHTMLAttributes } from "../../textbox/types";
package/dist/types.d.ts CHANGED
@@ -16,8 +16,6 @@ export interface MultimodalTextboxEvents {
16
16
  focus: never;
17
17
  error: string;
18
18
  clear_status: LoadingStatus;
19
- start_recording: never;
20
- pause_recording: never;
21
19
  stop_recording: never;
22
20
  upload: FileData[] | FileData;
23
21
  clear: undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/multimodaltextbox",
3
- "version": "0.11.3",
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/icons": "^0.15.0",
26
- "@gradio/atoms": "^0.20.0",
27
- "@gradio/statustracker": "^0.12.1",
28
- "@gradio/utils": "^0.11.1",
29
- "@gradio/upload": "^0.17.3",
30
- "@gradio/image": "^0.25.0",
31
- "@gradio/client": "^2.0.2",
32
- "@gradio/video": "^0.20.0",
33
- "@gradio/audio": "^0.22.0"
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.1"
36
+ "@gradio/preview": "^0.15.2"
37
37
  },
38
38
  "peerDependencies": {
39
- "svelte": "^5.43.4"
39
+ "svelte": "^5.48.0"
40
40
  },
41
41
  "repository": {
42
42
  "type": "git",