@gradio/multimodaltextbox 0.10.11 → 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,20 @@
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
+
3
18
  ## 0.10.11
4
19
 
5
20
  ### Dependency updates
@@ -20,7 +20,6 @@ import {
20
20
  Microphone
21
21
  } from "@gradio/icons";
22
22
  import InteractiveAudio from "../../audio/interactive/InteractiveAudio.svelte";
23
- import { convert_html_attributes } from "./utils";
24
23
  export let value = {
25
24
  text: "",
26
25
  files: []
@@ -54,8 +53,6 @@ export let waveform_options = {
54
53
  export let sources = ["upload"];
55
54
  export let active_source = null;
56
55
  export let html_attributes = null;
57
- $:
58
- html_attrs = convert_html_attributes(html_attributes);
59
56
  let upload_component;
60
57
  let el;
61
58
  let can_scroll;
@@ -398,7 +395,13 @@ function handle_drop(event) {
398
395
  on:scroll={handle_scroll}
399
396
  on:paste={handle_paste}
400
397
  style={text_align ? "text-align: " + text_align : ""}
401
- {...html_attrs}
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}
402
405
  />
403
406
  {#if submit_btn}
404
407
  <button
@@ -5,4 +5,4 @@ interface Value {
5
5
  }
6
6
  export declare function resize(target: HTMLTextAreaElement | HTMLInputElement, lines: number, max_lines: number): Promise<void>;
7
7
  export declare function text_area_resize(_el: HTMLTextAreaElement, _value: Value): any | undefined;
8
- export { convert_html_attributes } from "../../textbox/shared/utils";
8
+ export {};
@@ -39,4 +39,3 @@ export function text_area_resize(_el, _value) {
39
39
  destroy: () => _el.removeEventListener("input", handle_input)
40
40
  };
41
41
  }
42
- export { convert_html_attributes } from "../../textbox/shared/utils";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/multimodaltextbox",
3
- "version": "0.10.11",
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/atoms": "^0.16.2",
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/statustracker": "^0.10.13",
28
- "@gradio/upload": "^0.16.9",
29
- "@gradio/utils": "^0.10.2",
30
- "@gradio/image": "^0.22.11",
31
- "@gradio/video": "^0.14.19",
32
- "@gradio/client": "^1.15.4"
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"
@@ -26,7 +26,6 @@
26
26
  import type { SelectData } from "@gradio/utils";
27
27
  import InteractiveAudio from "../../audio/interactive/InteractiveAudio.svelte";
28
28
  import type { InputHTMLAttributes } from "./types";
29
- import { convert_html_attributes } from "./utils";
30
29
 
31
30
  export let value: { text: string; files: FileData[] } = {
32
31
  text: "",
@@ -63,9 +62,6 @@
63
62
  export let active_source: "microphone" | null = null;
64
63
  export let html_attributes: InputHTMLAttributes | null = null;
65
64
 
66
- // Convert InputHTMLAttributes to HTML attributes
67
- $: html_attrs = convert_html_attributes(html_attributes);
68
-
69
65
  let upload_component: Upload;
70
66
  let el: HTMLTextAreaElement | HTMLInputElement;
71
67
  let can_scroll: boolean;
@@ -456,7 +452,13 @@
456
452
  on:scroll={handle_scroll}
457
453
  on:paste={handle_paste}
458
454
  style={text_align ? "text-align: " + text_align : ""}
459
- {...html_attrs}
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}
460
462
  />
461
463
  {#if submit_btn}
462
464
  <button
package/shared/utils.ts CHANGED
@@ -58,5 +58,3 @@ export function text_area_resize(
58
58
  destroy: () => _el.removeEventListener("input", handle_input)
59
59
  };
60
60
  }
61
-
62
- export { convert_html_attributes } from "../../textbox/shared/utils";