@gradio/dataset 0.4.32 → 0.4.34

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,34 @@
1
1
  # @gradio/dataset
2
2
 
3
+ ## 0.4.34
4
+
5
+ ### Fixes
6
+
7
+ - [#11920](https://github.com/gradio-app/gradio/pull/11920) [`0f38b65`](https://github.com/gradio-app/gradio/commit/0f38b65f551cb61b3e9ed668e0ea525441672482) - Fix Examples Pagination. Thanks @freddyaboulton!
8
+ - [#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!
9
+
10
+ ### Dependency updates
11
+
12
+ - @gradio/atoms@0.18.0
13
+ - @gradio/client@1.19.0
14
+ - @gradio/upload@0.17.0
15
+ - @gradio/textbox@0.11.1
16
+
17
+ ## 0.4.33
18
+
19
+ ### Dependency updates
20
+
21
+ - @gradio/client@1.18.0
22
+ - @gradio/atoms@0.17.0
23
+ - @gradio/upload@0.16.17
24
+ - @gradio/textbox@0.11.0
25
+
26
+ ## 0.4.32
27
+
28
+ ### Dependency updates
29
+
30
+ - @gradio/upload@0.16.16
31
+
3
32
  ## 0.4.32
4
33
 
5
34
  ### Dependency updates
package/Index.svelte CHANGED
@@ -19,7 +19,7 @@
19
19
  export let sample_labels: string[] | null = null;
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: number | null = null;
24
24
  export let root: string;
25
25
  export let proxy_url: null | string;
@@ -63,7 +63,7 @@
63
63
  } else if (!samples) {
64
64
  samples = [];
65
65
  }
66
- if (samples !== old_samples) {
66
+ if (JSON.stringify(samples) !== JSON.stringify(old_samples)) {
67
67
  page = 0;
68
68
  old_samples = samples;
69
69
  }
package/dist/Index.svelte CHANGED
@@ -22,8 +22,7 @@ export let gradio;
22
22
  export let layout = null;
23
23
  let samples_dir = proxy_url ? `/proxy=${proxy_url}file=` : `${root}/file=`;
24
24
  let page = 0;
25
- $:
26
- gallery = (components.length < 2 || sample_labels !== null) && layout !== "table";
25
+ $: gallery = (components.length < 2 || sample_labels !== null) && layout !== "table";
27
26
  let paginate = samples ? samples.length > samples_per_page : false;
28
27
  let selected_samples;
29
28
  let page_count;
@@ -41,7 +40,7 @@ $: {
41
40
  } else if (!samples) {
42
41
  samples = [];
43
42
  }
44
- if (samples !== old_samples) {
43
+ if (JSON.stringify(samples) !== JSON.stringify(old_samples)) {
45
44
  page = 0;
46
45
  old_samples = samples;
47
46
  }
@@ -82,8 +81,7 @@ async function get_component_meta(selected_samples2) {
82
81
  )
83
82
  );
84
83
  }
85
- $:
86
- component_map, get_component_meta(selected_samples);
84
+ $: component_map, get_component_meta(selected_samples);
87
85
  </script>
88
86
 
89
87
  <Block
@@ -8,30 +8,32 @@ declare const __propDef: {
8
8
  component_map: Map<string, Promise<{
9
9
  default: ComponentType<SvelteComponent>;
10
10
  }>>;
11
- label?: string | undefined;
12
- show_label?: boolean | undefined;
11
+ label?: string;
12
+ show_label?: boolean;
13
13
  headers: string[];
14
- samples?: (any[][] | null) | undefined;
15
- sample_labels?: (string[] | null) | undefined;
16
- elem_id?: string | undefined;
17
- elem_classes?: string[] | undefined;
18
- visible?: boolean | undefined;
19
- value?: (number | null) | undefined;
14
+ samples?: any[][] | null;
15
+ sample_labels?: string[] | null;
16
+ elem_id?: string;
17
+ elem_classes?: string[];
18
+ visible?: boolean | "hidden";
19
+ value?: number | null;
20
20
  root: string;
21
21
  proxy_url: null | string;
22
- samples_per_page?: number | undefined;
23
- scale?: (number | null) | undefined;
22
+ samples_per_page?: number;
23
+ scale?: number | null;
24
24
  min_width?: number | undefined;
25
25
  gradio: Gradio<{
26
26
  click: number;
27
27
  select: SelectData;
28
28
  }>;
29
- layout?: ("gallery" | "table" | null) | undefined;
29
+ layout?: "gallery" | "table" | null;
30
30
  };
31
31
  events: {
32
32
  [evt: string]: CustomEvent<any>;
33
33
  };
34
34
  slots: {};
35
+ exports?: {} | undefined;
36
+ bindings?: string | undefined;
35
37
  };
36
38
  export type IndexProps = typeof __propDef.props;
37
39
  export type IndexEvents = typeof __propDef.events;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/dataset",
3
- "version": "0.4.32",
3
+ "version": "0.4.34",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -16,11 +16,11 @@
16
16
  "./package.json": "./package.json"
17
17
  },
18
18
  "dependencies": {
19
- "@gradio/atoms": "^0.16.5",
20
- "@gradio/upload": "^0.16.15",
19
+ "@gradio/atoms": "^0.18.0",
20
+ "@gradio/client": "^1.19.0",
21
21
  "@gradio/utils": "^0.10.2",
22
- "@gradio/textbox": "^0.10.20",
23
- "@gradio/client": "^1.17.1"
22
+ "@gradio/textbox": "^0.11.1",
23
+ "@gradio/upload": "^0.17.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@gradio/preview": "^0.14.0"