@gradio/dataset 0.1.21 → 0.1.23

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,19 @@
1
1
  # @gradio/dataset
2
2
 
3
+ ## 0.1.23
4
+
5
+ ### Features
6
+
7
+ - [#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)!
8
+
9
+ ## 0.1.22
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies []:
14
+ - @gradio/atoms@0.5.3
15
+ - @gradio/upload@0.7.4
16
+
3
17
  ## 0.1.21
4
18
 
5
19
  ### Patch Changes
@@ -253,4 +267,4 @@
253
267
 
254
268
  ### Features
255
269
 
256
- - [#5215](https://github.com/gradio-app/gradio/pull/5215) [`fbdad78a`](https://github.com/gradio-app/gradio/commit/fbdad78af4c47454cbb570f88cc14bf4479bbceb) - Lazy load interactive or static variants of a component individually, rather than loading both variants regardless. This change will improve performance for many applications. Thanks [@pngwn](https://github.com/pngwn)!
270
+ - [#5215](https://github.com/gradio-app/gradio/pull/5215) [`fbdad78a`](https://github.com/gradio-app/gradio/commit/fbdad78af4c47454cbb570f88cc14bf4479bbceb) - Lazy load interactive or static variants of a component individually, rather than loading both variants regardless. This change will improve performance for many applications. Thanks [@pngwn](https://github.com/pngwn)!
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.21",
3
+ "version": "0.1.23",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -12,9 +12,9 @@
12
12
  "./package.json": "./package.json"
13
13
  },
14
14
  "dependencies": {
15
- "@gradio/atoms": "^0.5.2",
16
- "@gradio/client": "^0.12.1",
15
+ "@gradio/atoms": "^0.5.3",
16
+ "@gradio/client": "^0.12.2",
17
17
  "@gradio/utils": "^0.3.0",
18
- "@gradio/upload": "^0.7.3"
18
+ "@gradio/upload": "^0.7.5"
19
19
  }
20
20
  }