@gradio/dataframe 0.16.1 → 0.16.2

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,18 @@
1
1
  # @gradio/dataframe
2
2
 
3
+ ## 0.16.2
4
+
5
+ ### Fixes
6
+
7
+ - [#10597](https://github.com/gradio-app/gradio/pull/10597) [`8c87eb8`](https://github.com/gradio-app/gradio/commit/8c87eb83066278b0e28267a6648d4729d6f39aa9) - Fix issue where styling changes were overridden when value was updated simultaneously. Thanks @abidlabs!
8
+
9
+ ### Dependency updates
10
+
11
+ - @gradio/upload@0.15.2
12
+ - @gradio/statustracker@0.10.4
13
+ - @gradio/atoms@0.13.3
14
+ - @gradio/button@0.4.7
15
+
3
16
  ## 0.16.1
4
17
 
5
18
  ### Fixes
package/Index.svelte CHANGED
@@ -103,7 +103,8 @@
103
103
  {styling}
104
104
  headers={_headers}
105
105
  on:change={(e) => {
106
- value = e.detail;
106
+ value.data = e.detail.data;
107
+ value.headers = e.detail.headers;
107
108
  gradio.dispatch("change");
108
109
  }}
109
110
  on:input={(e) => gradio.dispatch("input")}
package/dist/Index.svelte CHANGED
@@ -81,7 +81,8 @@ $:
81
81
  {styling}
82
82
  headers={_headers}
83
83
  on:change={(e) => {
84
- value = e.detail;
84
+ value.data = e.detail.data;
85
+ value.headers = e.detail.headers;
85
86
  gradio.dispatch("change");
86
87
  }}
87
88
  on:input={(e) => gradio.dispatch("input")}
@@ -152,6 +152,7 @@ async function trigger_change() {
152
152
  data: data.map((row) => row.map((cell) => cell.value)),
153
153
  headers: _headers.map((h) => h.value),
154
154
  metadata: null
155
+ // the metadata (display value, styling) cannot be changed by the user so we don't need to pass it up
155
156
  });
156
157
  if (!value_is_output) {
157
158
  dispatch("input");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/dataframe",
3
- "version": "0.16.1",
3
+ "version": "0.16.2",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -17,14 +17,14 @@
17
17
  "dompurify": "^3.0.3",
18
18
  "katex": "^0.16.7",
19
19
  "marked": "^12.0.0",
20
- "@gradio/atoms": "^0.13.2",
20
+ "@gradio/atoms": "^0.13.3",
21
+ "@gradio/button": "^0.4.7",
21
22
  "@gradio/client": "^1.12.0",
22
- "@gradio/icons": "^0.10.0",
23
- "@gradio/button": "^0.4.6",
24
23
  "@gradio/markdown-code": "^0.4.0",
25
- "@gradio/upload": "^0.15.1",
26
- "@gradio/statustracker": "^0.10.3",
27
- "@gradio/utils": "^0.10.1"
24
+ "@gradio/icons": "^0.10.0",
25
+ "@gradio/utils": "^0.10.1",
26
+ "@gradio/statustracker": "^0.10.4",
27
+ "@gradio/upload": "^0.15.2"
28
28
  },
29
29
  "exports": {
30
30
  ".": {
@@ -234,7 +234,7 @@
234
234
  dispatch("change", {
235
235
  data: data.map((row) => row.map((cell) => cell.value)),
236
236
  headers: _headers.map((h) => h.value),
237
- metadata: null
237
+ metadata: null // the metadata (display value, styling) cannot be changed by the user so we don't need to pass it up
238
238
  });
239
239
  if (!value_is_output) {
240
240
  dispatch("input");