@gradio/dataset 0.1.18 → 0.1.20
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 +14 -0
- package/Index.svelte +24 -22
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# @gradio/dataset
|
2
2
|
|
3
|
+
## 0.1.20
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [[`49d9c48`](https://github.com/gradio-app/gradio/commit/49d9c48537aa706bf72628e3640389470138bdc6)]:
|
8
|
+
- @gradio/client@0.12.0
|
9
|
+
- @gradio/upload@0.7.2
|
10
|
+
|
11
|
+
## 0.1.19
|
12
|
+
|
13
|
+
### Fixes
|
14
|
+
|
15
|
+
- [#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)!
|
16
|
+
|
3
17
|
## 0.1.18
|
4
18
|
|
5
19
|
### Patch Changes
|
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.20",
|
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/
|
16
|
-
"@gradio/
|
17
|
-
"@gradio/
|
18
|
-
"@gradio/
|
15
|
+
"@gradio/atoms": "^0.5.1",
|
16
|
+
"@gradio/utils": "^0.2.2",
|
17
|
+
"@gradio/upload": "^0.7.2",
|
18
|
+
"@gradio/client": "^0.12.0"
|
19
19
|
}
|
20
20
|
}
|