@gradio/multimodaltextbox 0.10.10 → 0.10.12

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,29 @@
1
1
  # @gradio/multimodaltextbox
2
2
 
3
+ ## 0.10.12
4
+
5
+ ### Fixes
6
+
7
+ - [#11537](https://github.com/gradio-app/gradio/pull/11537) [`8eb253b`](https://github.com/gradio-app/gradio/commit/8eb253be32a01c0c67911d7a7a3762c52a76a87b) - fix html attribute spreading bug and pin `httpx`. Thanks @abidlabs!
8
+
9
+ ### Dependency updates
10
+
11
+ - @gradio/atoms@0.16.3
12
+ - @gradio/statustracker@0.10.14
13
+ - @gradio/upload@0.16.10
14
+ - @gradio/video@0.14.20
15
+ - @gradio/client@1.15.5
16
+ - @gradio/image@0.22.12
17
+
18
+ ## 0.10.11
19
+
20
+ ### Dependency updates
21
+
22
+ - @gradio/upload@0.16.9
23
+ - @gradio/video@0.14.19
24
+ - @gradio/client@1.15.4
25
+ - @gradio/image@0.22.11
26
+
3
27
  ## 0.10.10
4
28
 
5
29
  ### Fixes
package/Index.svelte CHANGED
@@ -14,6 +14,7 @@
14
14
  import type { FileData } from "@gradio/client";
15
15
  import { onMount } from "svelte";
16
16
  import type { WaveformOptions } from "../audio/shared/types";
17
+ import type { InputHTMLAttributes } from "./shared/types";
17
18
 
18
19
  export let gradio: Gradio<{
19
20
  change: typeof value;
@@ -61,6 +62,7 @@
61
62
  export let max_plain_text_length: number;
62
63
  export let sources: ["microphone" | "upload"] = ["upload"];
63
64
  export let waveform_options: WaveformOptions = {};
65
+ export let html_attributes: InputHTMLAttributes | null = null;
64
66
 
65
67
  let dragging: boolean;
66
68
  let active_source: "microphone" | null = null;
@@ -169,5 +171,6 @@
169
171
  upload={(...args) => gradio.client.upload(...args)}
170
172
  stream_handler={(...args) => gradio.client.stream(...args)}
171
173
  {max_plain_text_length}
174
+ {html_attributes}
172
175
  />
173
176
  </Block>
package/dist/Index.svelte CHANGED
@@ -39,6 +39,7 @@ export let file_count;
39
39
  export let max_plain_text_length;
40
40
  export let sources = ["upload"];
41
41
  export let waveform_options = {};
42
+ export let html_attributes = null;
42
43
  let dragging;
43
44
  let active_source = null;
44
45
  let waveform_settings;
@@ -141,5 +142,6 @@ function set_trim_region_colour() {
141
142
  upload={(...args) => gradio.client.upload(...args)}
142
143
  stream_handler={(...args) => gradio.client.stream(...args)}
143
144
  {max_plain_text_length}
145
+ {html_attributes}
144
146
  />
145
147
  </Block>
@@ -4,6 +4,7 @@ export { default as BaseExample } from "./Example.svelte";
4
4
  import type { Gradio, SelectData } from "@gradio/utils";
5
5
  import type { LoadingStatus } from "@gradio/statustracker";
6
6
  import type { FileData } from "@gradio/client";
7
+ import type { InputHTMLAttributes } from "./shared/types";
7
8
  declare const __propDef: {
8
9
  props: {
9
10
  gradio: Gradio<{
@@ -55,6 +56,7 @@ declare const __propDef: {
55
56
  max_plain_text_length: number;
56
57
  sources?: ["microphone" | "upload"] | undefined;
57
58
  waveform_options?: any;
59
+ html_attributes?: InputHTMLAttributes | null;
58
60
  };
59
61
  events: {
60
62
  [evt: string]: CustomEvent<any>;
@@ -191,4 +193,7 @@ export default class Index extends SvelteComponent<IndexProps, IndexEvents, Inde
191
193
  get waveform_options(): any;
192
194
  /**accessor*/
193
195
  set waveform_options(_: any);
196
+ get html_attributes(): any;
197
+ /**accessor*/
198
+ set html_attributes(_: any);
194
199
  }
@@ -52,6 +52,7 @@ export let waveform_options = {
52
52
  };
53
53
  export let sources = ["upload"];
54
54
  export let active_source = null;
55
+ export let html_attributes = null;
55
56
  let upload_component;
56
57
  let el;
57
58
  let can_scroll;
@@ -394,6 +395,13 @@ function handle_drop(event) {
394
395
  on:scroll={handle_scroll}
395
396
  on:paste={handle_paste}
396
397
  style={text_align ? "text-align: " + text_align : ""}
398
+ autocapitalize={html_attributes?.autocapitalize}
399
+ autocorrect={html_attributes?.autocorrect}
400
+ spellcheck={html_attributes?.spellcheck}
401
+ autocomplete={html_attributes?.autocomplete}
402
+ tabindex={html_attributes?.tabindex}
403
+ enterkeyhint={html_attributes?.enterkeyhint}
404
+ lang={html_attributes?.lang}
397
405
  />
398
406
  {#if submit_btn}
399
407
  <button
@@ -2,6 +2,7 @@ import { SvelteComponent } from "svelte";
2
2
  import type { I18nFormatter } from "js/core/src/gradio_helper";
3
3
  import type { FileData, Client } from "@gradio/client";
4
4
  import type { SelectData } from "@gradio/utils";
5
+ import type { InputHTMLAttributes } from "./types";
5
6
  declare const __propDef: {
6
7
  props: {
7
8
  value?: {
@@ -34,6 +35,7 @@ declare const __propDef: {
34
35
  waveform_options?: any;
35
36
  sources?: ["microphone" | "upload"] | undefined;
36
37
  active_source?: ("microphone" | null) | undefined;
38
+ html_attributes?: InputHTMLAttributes | null;
37
39
  dragging?: boolean | undefined;
38
40
  };
39
41
  events: {
@@ -0,0 +1 @@
1
+ export type { InputHTMLAttributes } from "../../textbox/shared/types";
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/multimodaltextbox",
3
- "version": "0.10.10",
3
+ "version": "0.10.12",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -22,17 +22,17 @@
22
22
  "./package.json": "./package.json"
23
23
  },
24
24
  "dependencies": {
25
- "@gradio/statustracker": "^0.10.13",
25
+ "@gradio/atoms": "^0.16.3",
26
+ "@gradio/statustracker": "^0.10.14",
27
+ "@gradio/upload": "^0.16.10",
28
+ "@gradio/video": "^0.14.20",
26
29
  "@gradio/icons": "^0.12.0",
27
- "@gradio/utils": "^0.10.2",
28
- "@gradio/atoms": "^0.16.2",
29
- "@gradio/upload": "^0.16.8",
30
- "@gradio/image": "^0.22.10",
31
- "@gradio/client": "^1.15.3",
32
- "@gradio/video": "^0.14.18"
30
+ "@gradio/client": "^1.15.5",
31
+ "@gradio/image": "^0.22.12",
32
+ "@gradio/utils": "^0.10.2"
33
33
  },
34
34
  "devDependencies": {
35
- "@gradio/preview": "^0.13.2"
35
+ "@gradio/preview": "^0.14.0"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "svelte": "^4.0.0"
@@ -25,6 +25,7 @@
25
25
  } from "@gradio/icons";
26
26
  import type { SelectData } from "@gradio/utils";
27
27
  import InteractiveAudio from "../../audio/interactive/InteractiveAudio.svelte";
28
+ import type { InputHTMLAttributes } from "./types";
28
29
 
29
30
  export let value: { text: string; files: FileData[] } = {
30
31
  text: "",
@@ -59,6 +60,8 @@
59
60
  };
60
61
  export let sources: ["microphone" | "upload"] = ["upload"];
61
62
  export let active_source: "microphone" | null = null;
63
+ export let html_attributes: InputHTMLAttributes | null = null;
64
+
62
65
  let upload_component: Upload;
63
66
  let el: HTMLTextAreaElement | HTMLInputElement;
64
67
  let can_scroll: boolean;
@@ -449,6 +452,13 @@
449
452
  on:scroll={handle_scroll}
450
453
  on:paste={handle_paste}
451
454
  style={text_align ? "text-align: " + text_align : ""}
455
+ autocapitalize={html_attributes?.autocapitalize}
456
+ autocorrect={html_attributes?.autocorrect}
457
+ spellcheck={html_attributes?.spellcheck}
458
+ autocomplete={html_attributes?.autocomplete}
459
+ tabindex={html_attributes?.tabindex}
460
+ enterkeyhint={html_attributes?.enterkeyhint}
461
+ lang={html_attributes?.lang}
452
462
  />
453
463
  {#if submit_btn}
454
464
  <button
@@ -0,0 +1 @@
1
+ export type { InputHTMLAttributes } from "../../textbox/shared/types";