@gradio/dataset 0.1.43 → 0.1.45

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,25 @@
1
1
  # @gradio/dataset
2
2
 
3
+ ## 0.1.45
4
+
5
+ ### Dependency updates
6
+
7
+ - @gradio/upload@0.11.4
8
+ - @gradio/client@1.2.1
9
+
10
+ ## 0.1.44
11
+
12
+ ### Fixes
13
+
14
+ - [#8581](https://github.com/gradio-app/gradio/pull/8581) [`a1c21cb`](https://github.com/gradio-app/gradio/commit/a1c21cb69a688bd38139153fe9c85a50c6ae86f2) - fix dataset update. Thanks @abidlabs!
15
+
16
+ ### Dependency updates
17
+
18
+ - @gradio/atoms@0.7.5
19
+ - @gradio/utils@0.5.0
20
+ - @gradio/client@1.2.0
21
+ - @gradio/upload@0.11.3
22
+
3
23
  ## 0.1.43
4
24
 
5
25
  ### Dependency updates
package/Index.svelte CHANGED
@@ -12,7 +12,7 @@
12
12
  >;
13
13
  export let label = "Examples";
14
14
  export let headers: string[];
15
- export let samples: any[][];
15
+ export let samples: any[][] | null = null;
16
16
  export let elem_id = "";
17
17
  export let elem_classes: string[] = [];
18
18
  export let visible = true;
@@ -34,7 +34,7 @@
34
34
  : `${root}/file=`;
35
35
  let page = 0;
36
36
  $: gallery = components.length < 2;
37
- let paginate = samples.length > samples_per_page;
37
+ let paginate = samples ? samples.length > samples_per_page : false;
38
38
 
39
39
  let selected_samples: any[][];
40
40
  let page_count: number;
@@ -51,6 +51,7 @@
51
51
  }
52
52
 
53
53
  $: {
54
+ samples = samples || [];
54
55
  paginate = samples.length > samples_per_page;
55
56
  if (paginate) {
56
57
  visible_pages = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/dataset",
3
- "version": "0.1.43",
3
+ "version": "0.1.45",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -12,12 +12,12 @@
12
12
  "./package.json": "./package.json"
13
13
  },
14
14
  "dependencies": {
15
- "@gradio/utils": "^0.4.2",
16
- "@gradio/atoms": "^0.7.4",
17
- "@gradio/upload": "^0.11.2",
18
- "@gradio/client": "^1.1.1"
15
+ "@gradio/client": "^1.2.1",
16
+ "@gradio/utils": "^0.5.0",
17
+ "@gradio/upload": "^0.11.4",
18
+ "@gradio/atoms": "^0.7.5"
19
19
  },
20
20
  "devDependencies": {
21
- "@gradio/preview": "^0.9.1"
21
+ "@gradio/preview": "^0.10.0"
22
22
  }
23
23
  }