@gradio/dataset 0.1.17 → 0.1.19
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 +16 -1
- package/Index.svelte +24 -22
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,20 @@
|
|
1
1
|
# @gradio/dataset
|
2
2
|
|
3
|
+
## 0.1.19
|
4
|
+
|
5
|
+
### Fixes
|
6
|
+
|
7
|
+
- [#7192](https://github.com/gradio-app/gradio/pull/7192) [`8dd6f4b`](https://github.com/gradio-app/gradio/commit/8dd6f4bc1901792f05cd59e86df7b1dbab692739) - Handle the case where examples is `null` for all components. Thanks [@abidlabs](https://github.com/abidlabs)!
|
8
|
+
|
9
|
+
## 0.1.18
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- Updated dependencies [[`5727b92`](https://github.com/gradio-app/gradio/commit/5727b92abc8a00a675bfc0a921b38de771af947b), [`bc2cdc1`](https://github.com/gradio-app/gradio/commit/bc2cdc1df95b38025486cf76df4a494b66d98585), [`c60ad4d`](https://github.com/gradio-app/gradio/commit/c60ad4d34ab5b56a89bf6796822977e51e7a4a32)]:
|
14
|
+
- @gradio/utils@0.2.1
|
15
|
+
- @gradio/upload@0.7.0
|
16
|
+
- @gradio/atoms@0.5.0
|
17
|
+
|
3
18
|
## 0.1.17
|
4
19
|
|
5
20
|
### Patch Changes
|
@@ -220,4 +235,4 @@
|
|
220
235
|
|
221
236
|
### Features
|
222
237
|
|
223
|
-
- [#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)!
|
238
|
+
- [#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
@@ -129,28 +129,30 @@
|
|
129
129
|
{#if gallery}
|
130
130
|
<div class="gallery">
|
131
131
|
{#each selected_samples as sample_row, i}
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
132
|
+
{#if sample_row[0]}
|
133
|
+
<button
|
134
|
+
class="gallery-item"
|
135
|
+
on:click={() => {
|
136
|
+
value = i + page * samples_per_page;
|
137
|
+
gradio.dispatch("click", value);
|
138
|
+
gradio.dispatch("select", { index: value, value: sample_row });
|
139
|
+
}}
|
140
|
+
on:mouseenter={() => handle_mouseenter(i)}
|
141
|
+
on:mouseleave={() => handle_mouseleave()}
|
142
|
+
>
|
143
|
+
{#if component_meta.length && component_map.get(components[0])}
|
144
|
+
<svelte:component
|
145
|
+
this={component_meta[0][0].component}
|
146
|
+
{...component_props[0]}
|
147
|
+
value={sample_row[0]}
|
148
|
+
{samples_dir}
|
149
|
+
type="gallery"
|
150
|
+
selected={current_hover === i}
|
151
|
+
index={i}
|
152
|
+
/>
|
153
|
+
{/if}
|
154
|
+
</button>
|
155
|
+
{/if}
|
154
156
|
{/each}
|
155
157
|
</div>
|
156
158
|
{:else}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@gradio/dataset",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.19",
|
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.
|
16
|
-
"@gradio/
|
17
|
-
"@gradio/
|
18
|
-
"@gradio/upload": "^0.
|
15
|
+
"@gradio/atoms": "^0.5.1",
|
16
|
+
"@gradio/utils": "^0.2.2",
|
17
|
+
"@gradio/client": "^0.11.0",
|
18
|
+
"@gradio/upload": "^0.7.1"
|
19
19
|
}
|
20
20
|
}
|