@gradio/gallery 0.4.0-beta.9 → 0.4.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 +10 -0
- package/Gallery.test.ts +2 -2
- package/Index.svelte +2 -2
- package/package.json +8 -8
- package/shared/Gallery.svelte +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @gradio/gallery
|
|
2
2
|
|
|
3
|
+
## 0.4.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) - Clean root url. 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) - Image v4. 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) - Publish all components to npm. Thanks [@pngwn](https://github.com/pngwn)!
|
|
11
|
+
- [#5498](https://github.com/gradio-app/gradio/pull/5498) [`287fe6782`](https://github.com/gradio-app/gradio/commit/287fe6782825479513e79a5cf0ba0fbfe51443d7) - Custom components. Thanks [@pngwn](https://github.com/pngwn)!
|
|
12
|
+
|
|
3
13
|
## 0.4.0-beta.9
|
|
4
14
|
|
|
5
15
|
### Features
|
package/Gallery.test.ts
CHANGED
|
@@ -31,7 +31,7 @@ describe("Gallery", () => {
|
|
|
31
31
|
loading_status: loading_status,
|
|
32
32
|
preview: true,
|
|
33
33
|
root: "",
|
|
34
|
-
|
|
34
|
+
proxy_url: "",
|
|
35
35
|
value: [
|
|
36
36
|
{
|
|
37
37
|
image: {
|
|
@@ -54,7 +54,7 @@ describe("Gallery", () => {
|
|
|
54
54
|
loading_status: loading_status,
|
|
55
55
|
preview: true,
|
|
56
56
|
root: "",
|
|
57
|
-
|
|
57
|
+
proxy_url: "",
|
|
58
58
|
value: [
|
|
59
59
|
{
|
|
60
60
|
image: {
|
package/Index.svelte
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
export let show_label: boolean;
|
|
15
15
|
export let label: string;
|
|
16
16
|
export let root: string;
|
|
17
|
-
export let
|
|
17
|
+
export let proxy_url: null | string;
|
|
18
18
|
export let elem_id = "";
|
|
19
19
|
export let elem_classes: string[] = [];
|
|
20
20
|
export let visible = true;
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
{value}
|
|
70
70
|
{show_label}
|
|
71
71
|
{root}
|
|
72
|
-
{
|
|
72
|
+
{proxy_url}
|
|
73
73
|
{columns}
|
|
74
74
|
{rows}
|
|
75
75
|
{height}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradio/gallery",
|
|
3
|
-
"version": "0.4.0
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Gradio UI packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "",
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
"private": false,
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"dequal": "^2.0.2",
|
|
11
|
-
"@gradio/atoms": "^0.2.0
|
|
12
|
-
"@gradio/client": "^0.7.0
|
|
13
|
-
"@gradio/icons": "^0.2.0
|
|
14
|
-
"@gradio/image": "^0.3.0
|
|
15
|
-
"@gradio/statustracker": "^0.3.0
|
|
16
|
-
"@gradio/upload": "^0.3.0
|
|
17
|
-
"@gradio/utils": "^0.2.0
|
|
11
|
+
"@gradio/atoms": "^0.2.0",
|
|
12
|
+
"@gradio/client": "^0.7.0",
|
|
13
|
+
"@gradio/icons": "^0.2.0",
|
|
14
|
+
"@gradio/image": "^0.3.0",
|
|
15
|
+
"@gradio/statustracker": "^0.3.0",
|
|
16
|
+
"@gradio/upload": "^0.3.0",
|
|
17
|
+
"@gradio/utils": "^0.2.0"
|
|
18
18
|
},
|
|
19
19
|
"main": "./Index.svelte",
|
|
20
20
|
"main_changeset": true,
|
package/shared/Gallery.svelte
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
export let show_label = true;
|
|
16
16
|
export let label: string;
|
|
17
17
|
export let root = "";
|
|
18
|
-
export let
|
|
18
|
+
export let proxy_url: null | string = null;
|
|
19
19
|
export let value: { image: FileData; caption: string | null }[] | null = null;
|
|
20
20
|
export let columns: number | number[] | undefined = [2];
|
|
21
21
|
export let rows: number | number[] | undefined = undefined;
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
value === null
|
|
45
45
|
? null
|
|
46
46
|
: value.map((data) => ({
|
|
47
|
-
image: normalise_file(data.image, root,
|
|
47
|
+
image: normalise_file(data.image, root, proxy_url) as FileData,
|
|
48
48
|
caption: data.caption
|
|
49
49
|
}));
|
|
50
50
|
|