@gradio/dataset 0.1.22 → 0.1.24

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,18 @@
1
1
  # @gradio/dataset
2
2
 
3
+ ## 0.1.24
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`8181695`](https://github.com/gradio-app/gradio/commit/8181695e70187e8bc2bf7518697098c8d1b9843d)]:
8
+ - @gradio/upload@0.7.6
9
+
10
+ ## 0.1.23
11
+
12
+ ### Features
13
+
14
+ - [#7528](https://github.com/gradio-app/gradio/pull/7528) [`eda33b3`](https://github.com/gradio-app/gradio/commit/eda33b3763897a542acf298e523fa493dc655aee) - Refactors `get_fetchable_url_or_file()` to remove it from the frontend. Thanks [@abidlabs](https://github.com/abidlabs)!
15
+
3
16
  ## 0.1.22
4
17
 
5
18
  ### Patch Changes
package/Index.svelte CHANGED
@@ -2,7 +2,6 @@
2
2
  import { Block } from "@gradio/atoms";
3
3
  import type { SvelteComponent, ComponentType } from "svelte";
4
4
  import type { Gradio, SelectData } from "@gradio/utils";
5
- import { get_fetchable_url_or_file } from "@gradio/client";
6
5
  export let components: string[];
7
6
  export let component_props: Record<string, any>[];
8
7
  export let component_map: Map<
@@ -29,7 +28,11 @@
29
28
  select: SelectData;
30
29
  }>;
31
30
 
32
- let samples_dir: string = get_fetchable_url_or_file(null, root, proxy_url);
31
+ // Although the `samples_dir` prop is not used in any of the core Gradio component, it is kept for backward compatibility
32
+ // with any custom components created with gradio<=4.20.0
33
+ let samples_dir: string = proxy_url
34
+ ? `/proxy=${proxy_url}file=`
35
+ : `${root}/file=`;
33
36
  let page = 0;
34
37
  $: gallery = components.length < 2;
35
38
  let paginate = samples.length > samples_per_page;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/dataset",
3
- "version": "0.1.22",
3
+ "version": "0.1.24",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -13,8 +13,8 @@
13
13
  },
14
14
  "dependencies": {
15
15
  "@gradio/atoms": "^0.5.3",
16
- "@gradio/client": "^0.12.1",
16
+ "@gradio/client": "^0.12.2",
17
17
  "@gradio/utils": "^0.3.0",
18
- "@gradio/upload": "^0.7.4"
18
+ "@gradio/upload": "^0.7.6"
19
19
  }
20
20
  }