@gradio/file 0.12.29 → 0.13.1-dev.0

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,42 @@
1
1
  # @gradio/file
2
2
 
3
+ ## 0.13.1-dev.0
4
+
5
+ ### Dependency updates
6
+
7
+ - @gradio/upload@0.17.2-dev.0
8
+ - @gradio/client@2.0.0-dev.0
9
+
10
+ ## 0.13.0
11
+
12
+ ### Dependency updates
13
+
14
+ - @gradio/client@1.19.1
15
+
16
+ ## 0.13.0
17
+
18
+ ### Dependency updates
19
+
20
+ - @gradio/upload@0.17.1
21
+ - @gradio/atoms@0.18.1
22
+
23
+ ## 0.13.0
24
+
25
+ ### Features
26
+
27
+ - [#11858](https://github.com/gradio-app/gradio/pull/11858) [`3f8ea13`](https://github.com/gradio-app/gradio/commit/3f8ea13a8ca92abf0ad34392e403a449fda3c6c2) - remove lite. Thanks @pngwn!
28
+
29
+ ### Fixes
30
+
31
+ - [#11784](https://github.com/gradio-app/gradio/pull/11784) [`d9dd3f5`](https://github.com/gradio-app/gradio/commit/d9dd3f54b7fb34cf7118e549d39fc63937ca3489) - Add "hidden" option to component's `visible` kwarg to render but visually hide the component. Thanks @pngwn!
32
+
33
+ ### Dependency updates
34
+
35
+ - @gradio/statustracker@0.11.1
36
+ - @gradio/atoms@0.18.0
37
+ - @gradio/client@1.19.0
38
+ - @gradio/upload@0.17.0
39
+
3
40
  ## 0.12.29
4
41
 
5
42
  ### Dependency updates
package/Index.svelte CHANGED
@@ -19,7 +19,7 @@
19
19
 
20
20
  export let elem_id = "";
21
21
  export let elem_classes: string[] = [];
22
- export let visible = true;
22
+ export let visible: boolean | "hidden" = true;
23
23
  export let value: null | FileData | FileData[];
24
24
 
25
25
  export let interactive: boolean;
@@ -10,7 +10,7 @@ declare const __propDef: {
10
10
  props: {
11
11
  elem_id?: string;
12
12
  elem_classes?: string[];
13
- visible?: boolean;
13
+ visible?: boolean | "hidden";
14
14
  value: null | FileData | FileData[];
15
15
  interactive: boolean;
16
16
  root: string;
@@ -54,12 +54,12 @@ export default class Index extends SvelteComponent<IndexProps, IndexEvents, Inde
54
54
  get elem_classes(): string[] | undefined;
55
55
  /**accessor*/
56
56
  set elem_classes(_: string[] | undefined);
57
- get visible(): boolean | undefined;
57
+ get visible(): boolean | "hidden" | undefined;
58
58
  /**accessor*/
59
- set visible(_: boolean | undefined);
60
- get value(): FileData | FileData[] | null;
59
+ set visible(_: boolean | "hidden" | undefined);
60
+ get value(): any;
61
61
  /**accessor*/
62
- set value(_: FileData | FileData[] | null);
62
+ set value(_: any);
63
63
  get interactive(): boolean;
64
64
  /**accessor*/
65
65
  set interactive(_: boolean);
@@ -111,9 +111,9 @@ export default class Index extends SvelteComponent<IndexProps, IndexEvents, Inde
111
111
  delete: FileData;
112
112
  download: FileData;
113
113
  }>);
114
- get file_count(): "single" | "multiple" | "directory";
114
+ get file_count(): "multiple" | "single" | "directory";
115
115
  /**accessor*/
116
- set file_count(_: "single" | "multiple" | "directory");
116
+ set file_count(_: "multiple" | "single" | "directory");
117
117
  get file_types(): string[] | undefined;
118
118
  /**accessor*/
119
119
  set file_types(_: string[] | undefined);
@@ -1,6 +1,6 @@
1
1
  <script>import { prettyBytes } from "./utils";
2
2
  import { createEventDispatcher } from "svelte";
3
- import { DownloadLink } from "@gradio/wasm/svelte";
3
+ import { DownloadLink } from "@gradio/atoms";
4
4
  const dispatch = createEventDispatcher();
5
5
  export let value;
6
6
  export let selectable = false;
@@ -12,7 +12,7 @@ declare const __propDef: {
12
12
  events: {
13
13
  dragenter: DragEvent;
14
14
  select: CustomEvent<SelectData>;
15
- change: CustomEvent<FileData | FileData[]>;
15
+ change: CustomEvent<any>;
16
16
  delete: CustomEvent<FileData>;
17
17
  download: CustomEvent<FileData>;
18
18
  } & {
@@ -25,8 +25,8 @@ declare const __propDef: {
25
25
  delete: CustomEvent<FileData>;
26
26
  clear: CustomEvent<undefined>;
27
27
  drag: CustomEvent<boolean>;
28
- upload: CustomEvent<FileData | FileData[]>;
29
- load: CustomEvent<FileData | FileData[]>;
28
+ upload: CustomEvent<any>;
29
+ load: CustomEvent<any>;
30
30
  } & {
31
31
  [evt: string]: CustomEvent<any>;
32
32
  };
package/package.json CHANGED
@@ -1,19 +1,18 @@
1
1
  {
2
2
  "name": "@gradio/file",
3
- "version": "0.12.29",
3
+ "version": "0.13.1-dev.0",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
7
7
  "license": "ISC",
8
8
  "private": false,
9
9
  "dependencies": {
10
- "@gradio/atoms": "^0.17.0",
11
- "@gradio/client": "^1.18.0",
12
- "@gradio/statustracker": "^0.11.0",
13
- "@gradio/icons": "^0.14.0",
14
- "@gradio/upload": "^0.16.17",
10
+ "@gradio/atoms": "^0.18.1",
11
+ "@gradio/client": "^2.0.0-dev.0",
12
+ "@gradio/statustracker": "^0.11.1",
13
+ "@gradio/upload": "^0.17.2-dev.0",
15
14
  "@gradio/utils": "^0.10.2",
16
- "@gradio/wasm": "^0.18.1"
15
+ "@gradio/icons": "^0.14.0"
17
16
  },
18
17
  "devDependencies": {
19
18
  "@gradio/preview": "^0.14.0"
@@ -3,7 +3,7 @@
3
3
  import { prettyBytes } from "./utils";
4
4
  import { createEventDispatcher } from "svelte";
5
5
  import type { I18nFormatter, SelectData } from "@gradio/utils";
6
- import { DownloadLink } from "@gradio/wasm/svelte";
6
+ import { DownloadLink } from "@gradio/atoms";
7
7
 
8
8
  const dispatch = createEventDispatcher<{
9
9
  select: SelectData;