@gradio/multimodaltextbox 0.5.0 → 0.5.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,18 @@
1
1
  # @gradio/multimodaltextbox
2
2
 
3
+ ## 0.5.1
4
+
5
+ ### Fixes
6
+
7
+ - [#8608](https://github.com/gradio-app/gradio/pull/8608) [`c12f82a`](https://github.com/gradio-app/gradio/commit/c12f82a36dc75ff30918dc2ce5f24e583b676f22) - Bugfix: Add a `file_count` parameter to `gr.MultimodalTextbox`. Multiple files cab be uploaded by setting `file_count="multiple"`. Default is `"single"` to preserve the previous behavior. Thanks @freddyaboulton!
8
+ - [#8637](https://github.com/gradio-app/gradio/pull/8637) [`c348392`](https://github.com/gradio-app/gradio/commit/c34839293f7ebad91d71caced84eea4a3790a558) - Multimodal textbox buttons alignment. Thanks @dawoodkhan82!
9
+
10
+ ### Dependency updates
11
+
12
+ - @gradio/upload@0.11.4
13
+ - @gradio/client@1.2.1
14
+ - @gradio/image@0.12.1
15
+
3
16
  ## 0.5.0
4
17
 
5
18
  ### Features
package/Index.svelte CHANGED
@@ -49,6 +49,7 @@
49
49
  export let autoscroll = true;
50
50
  export let interactive: boolean;
51
51
  export let root: string;
52
+ export let file_count: "single" | "multiple" | "directory";
52
53
  </script>
53
54
 
54
55
  <Block
@@ -86,6 +87,7 @@
86
87
  {autofocus}
87
88
  {container}
88
89
  {autoscroll}
90
+ {file_count}
89
91
  max_file_size={gradio.max_file_size}
90
92
  on:change={() => gradio.dispatch("change", value)}
91
93
  on:input={() => gradio.dispatch("input")}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/multimodaltextbox",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -14,13 +14,13 @@
14
14
  "./package.json": "./package.json"
15
15
  },
16
16
  "dependencies": {
17
- "@gradio/atoms": "^0.7.5",
18
17
  "@gradio/icons": "^0.5.0",
19
- "@gradio/upload": "^0.11.3",
18
+ "@gradio/atoms": "^0.7.5",
20
19
  "@gradio/statustracker": "^0.7.0",
21
- "@gradio/client": "^1.2.0",
20
+ "@gradio/upload": "^0.11.4",
22
21
  "@gradio/utils": "^0.5.0",
23
- "@gradio/image": "^0.12.0"
22
+ "@gradio/image": "^0.12.1",
23
+ "@gradio/client": "^1.2.1"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@gradio/preview": "^0.10.0"
@@ -37,6 +37,7 @@
37
37
  export let max_file_size: number | null = null;
38
38
  export let upload: Client["upload"];
39
39
  export let stream_handler: Client["stream"];
40
+ export let file_count: "single" | "multiple" | "directory" = "multiple";
40
41
 
41
42
  let upload_component: Upload;
42
43
  let hidden_upload: HTMLInputElement;
@@ -161,6 +162,7 @@
161
162
  for (let file of detail) {
162
163
  value.files.push(file);
163
164
  }
165
+ value = value;
164
166
  } else {
165
167
  value.files.push(detail);
166
168
  value = value;
@@ -244,7 +246,7 @@
244
246
  <Upload
245
247
  bind:this={upload_component}
246
248
  on:load={handle_upload}
247
- filetype={accept_file_types}
249
+ {file_count}
248
250
  {root}
249
251
  {max_file_size}
250
252
  bind:dragging
@@ -305,7 +307,7 @@
305
307
  .input-container {
306
308
  display: flex;
307
309
  position: relative;
308
- align-items: center;
310
+ align-items: flex-end;
309
311
  }
310
312
 
311
313
  textarea {
@@ -348,6 +350,7 @@
348
350
  display: flex;
349
351
  justify-content: center;
350
352
  align-items: center;
353
+ margin-bottom: 5px;
351
354
  }
352
355
  .padded-button {
353
356
  padding: 0 10px;