@gradio/multimodaltextbox 0.9.0 → 0.9.1
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
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @gradio/multimodaltextbox
|
|
2
2
|
|
|
3
|
+
## 0.9.1
|
|
4
|
+
|
|
5
|
+
### Fixes
|
|
6
|
+
|
|
7
|
+
- [#10322](https://github.com/gradio-app/gradio/pull/10322) [`d2691e7`](https://github.com/gradio-app/gradio/commit/d2691e7436f722781ee61db43ce3f2d5ccc3e253) - Quick Fix: Multimodal microphone audio not clearing. Thanks @dawoodkhan82!
|
|
8
|
+
|
|
9
|
+
### Dependency updates
|
|
10
|
+
|
|
11
|
+
- @gradio/video@0.13.1
|
|
12
|
+
- @gradio/atoms@0.13.1
|
|
13
|
+
- @gradio/statustracker@0.10.1
|
|
14
|
+
- @gradio/client@1.10.0
|
|
15
|
+
- @gradio/icons@0.10.0
|
|
16
|
+
- @gradio/upload@0.14.5
|
|
17
|
+
- @gradio/image@0.20.1
|
|
18
|
+
|
|
3
19
|
## 0.9.0
|
|
4
20
|
|
|
5
21
|
### Features
|
|
@@ -65,4 +65,23 @@ describe("MultimodalTextbox", () => {
|
|
|
65
65
|
assert.equal(mock.calls[8][0].detail.data.text, "hi some text");
|
|
66
66
|
assert.equal(mock.calls[8][0].detail.data.files.length, 0);
|
|
67
67
|
});
|
|
68
|
+
|
|
69
|
+
test("submitting should clear mic_audio", async () => {
|
|
70
|
+
const { component } = await render(MultimodalTextbox, {
|
|
71
|
+
show_label: true,
|
|
72
|
+
max_lines: 10,
|
|
73
|
+
loading_status,
|
|
74
|
+
lines: 1,
|
|
75
|
+
value: { text: "", files: [] },
|
|
76
|
+
label: "MultimodalTextbox",
|
|
77
|
+
interactive: true,
|
|
78
|
+
root: "",
|
|
79
|
+
sources: ["microphone"]
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
component.$set({ mic_audio: { url: "test.mp3", mime_type: "audio/mp3" } });
|
|
83
|
+
component.$set({ active_source: "microphone" });
|
|
84
|
+
await component.$$.ctx[component.$$.props["handle_submit"]];
|
|
85
|
+
assert.equal(component.mic_audio, null);
|
|
86
|
+
});
|
|
68
87
|
});
|
|
@@ -121,6 +121,7 @@ async function handle_keypress(e) {
|
|
|
121
121
|
if (mic_audio) {
|
|
122
122
|
value.files.push(mic_audio);
|
|
123
123
|
value = value;
|
|
124
|
+
mic_audio = null;
|
|
124
125
|
}
|
|
125
126
|
}
|
|
126
127
|
}
|
|
@@ -175,6 +176,7 @@ function handle_submit() {
|
|
|
175
176
|
if (mic_audio) {
|
|
176
177
|
value.files.push(mic_audio);
|
|
177
178
|
value = value;
|
|
179
|
+
mic_audio = null;
|
|
178
180
|
}
|
|
179
181
|
}
|
|
180
182
|
async function handle_paste(event) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradio/multimodaltextbox",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "Gradio UI packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "",
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"./package.json": "./package.json"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@gradio/
|
|
26
|
-
"@gradio/
|
|
27
|
-
"@gradio/
|
|
28
|
-
"@gradio/upload": "^0.14.
|
|
25
|
+
"@gradio/atoms": "^0.13.1",
|
|
26
|
+
"@gradio/statustracker": "^0.10.1",
|
|
27
|
+
"@gradio/icons": "^0.10.0",
|
|
28
|
+
"@gradio/upload": "^0.14.5",
|
|
29
29
|
"@gradio/utils": "^0.10.0",
|
|
30
|
-
"@gradio/image": "^0.20.
|
|
31
|
-
"@gradio/video": "^0.13.
|
|
32
|
-
"@gradio/client": "^1.
|
|
30
|
+
"@gradio/image": "^0.20.1",
|
|
31
|
+
"@gradio/video": "^0.13.1",
|
|
32
|
+
"@gradio/client": "^1.10.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@gradio/preview": "^0.13.0"
|
|
@@ -157,6 +157,7 @@
|
|
|
157
157
|
if (mic_audio) {
|
|
158
158
|
value.files.push(mic_audio);
|
|
159
159
|
value = value;
|
|
160
|
+
mic_audio = null;
|
|
160
161
|
}
|
|
161
162
|
}
|
|
162
163
|
}
|
|
@@ -218,6 +219,7 @@
|
|
|
218
219
|
if (mic_audio) {
|
|
219
220
|
value.files.push(mic_audio);
|
|
220
221
|
value = value;
|
|
222
|
+
mic_audio = null;
|
|
221
223
|
}
|
|
222
224
|
}
|
|
223
225
|
|