@gradio/dataset 0.5.9 → 0.6.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 CHANGED
@@ -1,5 +1,22 @@
1
1
  # @gradio/dataset
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Features
6
+
7
+ - [#13502](https://github.com/gradio-app/gradio/pull/13502) [`429faeb`](https://github.com/gradio-app/gradio/commit/429faeb643fb1afc1722c0f63fafa11603f2c87f) - Ensure every component dispatches a `change` event when its value changes. Thanks @abidlabs!
8
+
9
+ ### Dependency updates
10
+
11
+ - @gradio/client@2.2.2
12
+
13
+ ## 0.5.9
14
+
15
+ ### Dependency updates
16
+
17
+ - @gradio/client@2.2.1
18
+ - @gradio/upload@0.17.10
19
+
3
20
  ## 0.5.9
4
21
 
5
22
  ### Fixes
package/Index.svelte CHANGED
@@ -9,6 +9,7 @@
9
9
  let props = $props();
10
10
 
11
11
  const gradio = new Gradio<DatasetEvents, DatasetProps>(props);
12
+ gradio.watch_for_change();
12
13
 
13
14
  // Need to mark samples as state, otherwise get_component_meta constantly triggers
14
15
  let samples = $derived(gradio.props.samples ?? []);
package/dist/Index.svelte CHANGED
@@ -9,6 +9,7 @@
9
9
  let props = $props();
10
10
 
11
11
  const gradio = new Gradio<DatasetEvents, DatasetProps>(props);
12
+ gradio.watch_for_change();
12
13
 
13
14
  // Need to mark samples as state, otherwise get_component_meta constantly triggers
14
15
  let samples = $derived(gradio.props.samples ?? []);
package/dist/types.d.ts CHANGED
@@ -12,6 +12,7 @@ export interface DatasetProps {
12
12
  layout: "gallery" | "table" | null;
13
13
  }
14
14
  export interface DatasetEvents {
15
+ change: never;
15
16
  click: never;
16
17
  select: SelectData;
17
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/dataset",
3
- "version": "0.5.9",
3
+ "version": "0.6.0",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -16,11 +16,11 @@
16
16
  "./package.json": "./package.json"
17
17
  },
18
18
  "dependencies": {
19
+ "@gradio/client": "^2.2.2",
19
20
  "@gradio/atoms": "^0.24.0",
20
21
  "@gradio/utils": "^0.12.2",
21
- "@gradio/client": "^2.2.0",
22
- "@gradio/textbox": "^0.13.9",
23
- "@gradio/upload": "^0.17.9"
22
+ "@gradio/upload": "^0.17.10",
23
+ "@gradio/textbox": "^0.13.9"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@gradio/preview": "^0.16.2"
package/types.ts CHANGED
@@ -15,6 +15,7 @@ export interface DatasetProps {
15
15
  }
16
16
 
17
17
  export interface DatasetEvents {
18
+ change: never;
18
19
  click: never;
19
20
  select: SelectData;
20
21
  }