@gradio/dataset 0.1.0-beta.0 → 0.1.0
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 +22 -0
- package/Index.svelte +6 -3
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# @gradio/dataset
|
2
2
|
|
3
|
+
## 0.1.0
|
4
|
+
|
5
|
+
### Features
|
6
|
+
|
7
|
+
- [#5498](https://github.com/gradio-app/gradio/pull/5498) [`287fe6782`](https://github.com/gradio-app/gradio/commit/287fe6782825479513e79a5cf0ba0fbfe51443d7) - fix circular dependency with client + upload. Thanks [@pngwn](https://github.com/pngwn)!
|
8
|
+
- [#5498](https://github.com/gradio-app/gradio/pull/5498) [`287fe6782`](https://github.com/gradio-app/gradio/commit/287fe6782825479513e79a5cf0ba0fbfe51443d7) - pass props to example components and to example outputs. Thanks [@pngwn](https://github.com/pngwn)!
|
9
|
+
- [#5498](https://github.com/gradio-app/gradio/pull/5498) [`287fe6782`](https://github.com/gradio-app/gradio/commit/287fe6782825479513e79a5cf0ba0fbfe51443d7) - Clean root url. Thanks [@pngwn](https://github.com/pngwn)!
|
10
|
+
- [#5498](https://github.com/gradio-app/gradio/pull/5498) [`287fe6782`](https://github.com/gradio-app/gradio/commit/287fe6782825479513e79a5cf0ba0fbfe51443d7) - Adds the ability to build the frontend and backend of custom components in preparation for publishing to pypi using `gradio_component build`. Thanks [@pngwn](https://github.com/pngwn)!
|
11
|
+
|
12
|
+
## 0.1.0-beta.2
|
13
|
+
|
14
|
+
### Features
|
15
|
+
|
16
|
+
- [#6143](https://github.com/gradio-app/gradio/pull/6143) [`e4f7b4b40`](https://github.com/gradio-app/gradio/commit/e4f7b4b409323b01aa01b39e15ce6139e29aa073) - fix circular dependency with client + upload. Thanks [@pngwn](https://github.com/pngwn)!
|
17
|
+
|
18
|
+
## 0.1.0-beta.1
|
19
|
+
|
20
|
+
### Features
|
21
|
+
|
22
|
+
- [#6016](https://github.com/gradio-app/gradio/pull/6016) [`83e947676`](https://github.com/gradio-app/gradio/commit/83e947676d327ca2ab6ae2a2d710c78961c771a0) - Format js in v4 branch. Thanks [@freddyaboulton](https://github.com/freddyaboulton)!
|
23
|
+
- [#6014](https://github.com/gradio-app/gradio/pull/6014) [`cad537aac`](https://github.com/gradio-app/gradio/commit/cad537aac57998560c9f44a37499be734de66349) - pass props to example components and to example outputs. Thanks [@pngwn](https://github.com/pngwn)!
|
24
|
+
|
3
25
|
## 0.1.0-beta.0
|
4
26
|
|
5
27
|
### Features
|
package/Index.svelte
CHANGED
@@ -2,8 +2,9 @@
|
|
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/
|
5
|
+
import { get_fetchable_url_or_file } from "@gradio/client";
|
6
6
|
export let components: string[];
|
7
|
+
export let component_props: Record<string, any>[];
|
7
8
|
export let component_map: Map<
|
8
9
|
string,
|
9
10
|
Promise<{
|
@@ -19,7 +20,7 @@
|
|
19
20
|
export let visible = true;
|
20
21
|
export let value: number | null = null;
|
21
22
|
export let root: string;
|
22
|
-
export let
|
23
|
+
export let proxy_url: null | string;
|
23
24
|
export let samples_per_page = 10;
|
24
25
|
export let scale: number | null = null;
|
25
26
|
export let min_width: number | undefined = undefined;
|
@@ -28,7 +29,7 @@
|
|
28
29
|
select: SelectData;
|
29
30
|
}>;
|
30
31
|
|
31
|
-
let samples_dir: string = get_fetchable_url_or_file(null, root,
|
32
|
+
let samples_dir: string = get_fetchable_url_or_file(null, root, proxy_url);
|
32
33
|
let page = 0;
|
33
34
|
$: gallery = components.length < 2;
|
34
35
|
let paginate = samples.length > samples_per_page;
|
@@ -141,6 +142,7 @@
|
|
141
142
|
{#if component_meta.length && component_map.get(components[0])}
|
142
143
|
<svelte:component
|
143
144
|
this={component_meta[0][0].component}
|
145
|
+
{...component_props[0]}
|
144
146
|
value={sample_row[0]}
|
145
147
|
{samples_dir}
|
146
148
|
type="gallery"
|
@@ -185,6 +187,7 @@
|
|
185
187
|
>
|
186
188
|
<svelte:component
|
187
189
|
this={component}
|
190
|
+
{...component_props[j]}
|
188
191
|
{value}
|
189
192
|
{samples_dir}
|
190
193
|
type="table"
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@gradio/dataset",
|
3
|
-
"version": "0.1.0
|
3
|
+
"version": "0.1.0",
|
4
4
|
"description": "Gradio UI packages",
|
5
5
|
"type": "module",
|
6
6
|
"author": "",
|
@@ -12,8 +12,9 @@
|
|
12
12
|
"./package.json": "./package.json"
|
13
13
|
},
|
14
14
|
"dependencies": {
|
15
|
-
"@gradio/atoms": "^0.2.0
|
16
|
-
"@gradio/
|
17
|
-
"@gradio/
|
15
|
+
"@gradio/atoms": "^0.2.0",
|
16
|
+
"@gradio/client": "^0.7.0",
|
17
|
+
"@gradio/utils": "^0.2.0",
|
18
|
+
"@gradio/upload": "^0.3.0"
|
18
19
|
}
|
19
20
|
}
|