@gradio/dataset 0.1.22 → 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 +7 -1
- package/Index.svelte +5 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
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
|
+
|
3
9
|
## 0.1.22
|
4
10
|
|
5
11
|
### Patch Changes
|
@@ -261,4 +267,4 @@
|
|
261
267
|
|
262
268
|
### Features
|
263
269
|
|
264
|
-
- [#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
|
-
|
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.
|
3
|
+
"version": "0.1.23",
|
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.
|
16
|
+
"@gradio/client": "^0.12.2",
|
17
17
|
"@gradio/utils": "^0.3.0",
|
18
|
-
"@gradio/upload": "^0.7.
|
18
|
+
"@gradio/upload": "^0.7.5"
|
19
19
|
}
|
20
20
|
}
|