@gradio/gallery 0.15.34 → 0.15.35-dev.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 +24 -0
- package/Index.svelte +4 -6
- package/dist/Index.svelte +4 -6
- package/dist/Index.svelte.d.ts +1 -3
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @gradio/gallery
|
|
2
2
|
|
|
3
|
+
## 0.15.35-dev.0
|
|
4
|
+
|
|
5
|
+
### Dependency updates
|
|
6
|
+
|
|
7
|
+
- @gradio/upload@0.17.2-dev.0
|
|
8
|
+
- @gradio/client@2.0.0-dev.0
|
|
9
|
+
- @gradio/image@0.23.2-dev.0
|
|
10
|
+
- @gradio/file@0.13.1-dev.0
|
|
11
|
+
- @gradio/video@0.17.0-dev.0
|
|
12
|
+
|
|
13
|
+
## 0.15.34
|
|
14
|
+
|
|
15
|
+
### Dependency updates
|
|
16
|
+
|
|
17
|
+
- @gradio/client@1.19.1
|
|
18
|
+
|
|
19
|
+
## 0.15.34
|
|
20
|
+
|
|
21
|
+
### Dependency updates
|
|
22
|
+
|
|
23
|
+
- @gradio/image@0.23.1
|
|
24
|
+
- @gradio/upload@0.17.1
|
|
25
|
+
- @gradio/atoms@0.18.1
|
|
26
|
+
|
|
3
27
|
## 0.15.34
|
|
4
28
|
|
|
5
29
|
### Fixes
|
package/Index.svelte
CHANGED
|
@@ -36,9 +36,8 @@
|
|
|
36
36
|
export let selected_index: number | null = null;
|
|
37
37
|
export let object_fit: "contain" | "cover" | "fill" | "none" | "scale-down" =
|
|
38
38
|
"cover";
|
|
39
|
-
export let
|
|
39
|
+
export let buttons: string[] | null = null;
|
|
40
40
|
export let interactive: boolean;
|
|
41
|
-
export let show_download_button = false;
|
|
42
41
|
export let gradio: Gradio<{
|
|
43
42
|
change: typeof value;
|
|
44
43
|
upload: typeof value;
|
|
@@ -51,7 +50,6 @@
|
|
|
51
50
|
preview_open: never;
|
|
52
51
|
preview_close: never;
|
|
53
52
|
}>;
|
|
54
|
-
export let show_fullscreen_button = true;
|
|
55
53
|
export let fullscreen = false;
|
|
56
54
|
|
|
57
55
|
const dispatch = createEventDispatcher();
|
|
@@ -168,11 +166,11 @@
|
|
|
168
166
|
{allow_preview}
|
|
169
167
|
bind:selected_index
|
|
170
168
|
bind:value
|
|
171
|
-
{
|
|
172
|
-
{
|
|
169
|
+
show_share_button={buttons?.includes("share") ?? true}
|
|
170
|
+
show_download_button={buttons?.includes("download") ?? true}
|
|
173
171
|
i18n={gradio.i18n}
|
|
174
172
|
_fetch={(...args) => gradio.client.fetch(...args)}
|
|
175
|
-
{
|
|
173
|
+
show_fullscreen_button={buttons?.includes("fullscreen") ?? true}
|
|
176
174
|
{fullscreen}
|
|
177
175
|
{root}
|
|
178
176
|
{file_types}
|
package/dist/Index.svelte
CHANGED
|
@@ -26,11 +26,9 @@ export let preview;
|
|
|
26
26
|
export let allow_preview = true;
|
|
27
27
|
export let selected_index = null;
|
|
28
28
|
export let object_fit = "cover";
|
|
29
|
-
export let
|
|
29
|
+
export let buttons = null;
|
|
30
30
|
export let interactive;
|
|
31
|
-
export let show_download_button = false;
|
|
32
31
|
export let gradio;
|
|
33
|
-
export let show_fullscreen_button = true;
|
|
34
32
|
export let fullscreen = false;
|
|
35
33
|
const dispatch = createEventDispatcher();
|
|
36
34
|
$: no_value = value === null ? true : value.length === 0;
|
|
@@ -136,11 +134,11 @@ async function process_upload_files(files) {
|
|
|
136
134
|
{allow_preview}
|
|
137
135
|
bind:selected_index
|
|
138
136
|
bind:value
|
|
139
|
-
{
|
|
140
|
-
{
|
|
137
|
+
show_share_button={buttons?.includes("share") ?? true}
|
|
138
|
+
show_download_button={buttons?.includes("download") ?? true}
|
|
141
139
|
i18n={gradio.i18n}
|
|
142
140
|
_fetch={(...args) => gradio.client.fetch(...args)}
|
|
143
|
-
{
|
|
141
|
+
show_fullscreen_button={buttons?.includes("fullscreen") ?? true}
|
|
144
142
|
{fullscreen}
|
|
145
143
|
{root}
|
|
146
144
|
{file_types}
|
package/dist/Index.svelte.d.ts
CHANGED
|
@@ -26,9 +26,8 @@ declare const __propDef: {
|
|
|
26
26
|
allow_preview?: boolean;
|
|
27
27
|
selected_index?: number | null;
|
|
28
28
|
object_fit?: "contain" | "cover" | "fill" | "none" | "scale-down";
|
|
29
|
-
|
|
29
|
+
buttons?: string[] | null;
|
|
30
30
|
interactive: boolean;
|
|
31
|
-
show_download_button?: boolean;
|
|
32
31
|
gradio: Gradio<{
|
|
33
32
|
change: (GalleryImage | GalleryVideo)[] | null;
|
|
34
33
|
upload: (GalleryImage | GalleryVideo)[] | null;
|
|
@@ -44,7 +43,6 @@ declare const __propDef: {
|
|
|
44
43
|
preview_open: never;
|
|
45
44
|
preview_close: never;
|
|
46
45
|
}>;
|
|
47
|
-
show_fullscreen_button?: boolean;
|
|
48
46
|
fullscreen?: boolean;
|
|
49
47
|
};
|
|
50
48
|
events: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradio/gallery",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.35-dev.0",
|
|
4
4
|
"description": "Gradio UI packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "",
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
"private": false,
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"dequal": "^2.0.2",
|
|
11
|
+
"@gradio/atoms": "^0.18.1",
|
|
12
|
+
"@gradio/client": "^2.0.0-dev.0",
|
|
11
13
|
"@gradio/icons": "^0.14.0",
|
|
12
|
-
"@gradio/
|
|
13
|
-
"@gradio/
|
|
14
|
-
"@gradio/client": "^1.19.0",
|
|
15
|
-
"@gradio/upload": "^0.17.0",
|
|
14
|
+
"@gradio/image": "^0.23.2-dev.0",
|
|
15
|
+
"@gradio/upload": "^0.17.2-dev.0",
|
|
16
16
|
"@gradio/statustracker": "^0.11.1",
|
|
17
17
|
"@gradio/utils": "^0.10.2",
|
|
18
|
-
"@gradio/video": "^0.
|
|
19
|
-
"@gradio/file": "^0.13.0"
|
|
18
|
+
"@gradio/video": "^0.17.0-dev.0",
|
|
19
|
+
"@gradio/file": "^0.13.1-dev.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@gradio/preview": "^0.14.0"
|