@gradio/dataset 0.4.17 → 0.4.18

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @gradio/dataset
2
2
 
3
+ ## 0.4.18
4
+
5
+ ### Fixes
6
+
7
+ - [#11181](https://github.com/gradio-app/gradio/pull/11181) [`ee7f17e`](https://github.com/gradio-app/gradio/commit/ee7f17e25642bc4b86f2272b3b5cfcf77c08adf1) - Fix the `.select()` event in `gr.Dataset` in table layout. Thanks @abidlabs!
8
+
3
9
  ## 0.4.17
4
10
 
5
11
  ### Dependency updates
package/Index.svelte CHANGED
@@ -204,6 +204,10 @@
204
204
  on:click={() => {
205
205
  value = i + page * samples_per_page;
206
206
  gradio.dispatch("click", value);
207
+ gradio.dispatch("select", {
208
+ index: value,
209
+ value: selected_samples[i]
210
+ });
207
211
  }}
208
212
  on:mouseenter={() => handle_mouseenter(i)}
209
213
  on:mouseleave={() => handle_mouseleave()}
package/dist/Index.svelte CHANGED
@@ -171,6 +171,10 @@ $:
171
171
  on:click={() => {
172
172
  value = i + page * samples_per_page;
173
173
  gradio.dispatch("click", value);
174
+ gradio.dispatch("select", {
175
+ index: value,
176
+ value: selected_samples[i]
177
+ });
174
178
  }}
175
179
  on:mouseenter={() => handle_mouseenter(i)}
176
180
  on:mouseleave={() => handle_mouseleave()}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/dataset",
3
- "version": "0.4.17",
3
+ "version": "0.4.18",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -18,9 +18,9 @@
18
18
  "dependencies": {
19
19
  "@gradio/atoms": "^0.16.0",
20
20
  "@gradio/client": "^1.14.2",
21
+ "@gradio/utils": "^0.10.2",
21
22
  "@gradio/upload": "^0.16.4",
22
- "@gradio/textbox": "^0.10.10",
23
- "@gradio/utils": "^0.10.2"
23
+ "@gradio/textbox": "^0.10.10"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@gradio/preview": "^0.13.0"