@gradio/dataframe 0.12.1 → 0.12.3

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,33 @@
1
1
  # @gradio/dataframe
2
2
 
3
+ ## 0.12.3
4
+
5
+ ### Fixes
6
+
7
+ - [#9949](https://github.com/gradio-app/gradio/pull/9949) [`cfb62bf`](https://github.com/gradio-app/gradio/commit/cfb62bfdb52d88295f27287f788fca977e37ae6d) - Allow dataframe column content to wrap. Thanks @hannahblair!
8
+
9
+ ### Dependency updates
10
+
11
+ - @gradio/atoms@0.11.1
12
+ - @gradio/client@1.8.0
13
+ - @gradio/utils@0.8.0
14
+ - @gradio/button@0.3.7
15
+ - @gradio/upload@0.14.1
16
+ - @gradio/statustracker@0.9.5
17
+
18
+ ## 0.12.2
19
+
20
+ ### Fixes
21
+
22
+ - [#9892](https://github.com/gradio-app/gradio/pull/9892) [`7d77024`](https://github.com/gradio-app/gradio/commit/7d77024cb8f9cfd39a6468de9534e58dcfa69f49) - Fix dataframe height increasing on scroll. Thanks @abidlabs!
23
+
24
+ ### Dependency updates
25
+
26
+ - @gradio/statustracker@0.9.4
27
+ - @gradio/button@0.3.6
28
+ - @gradio/atoms@0.11.0
29
+ - @gradio/upload@0.14.0
30
+
3
31
  ## 0.12.1
4
32
 
5
33
  ### Features
@@ -181,12 +181,16 @@
181
181
  play={async ({ canvasElement }) => {
182
182
  const canvas = within(canvasElement);
183
183
 
184
- const cell = canvas.getByText("200");
185
- userEvent.click(cell);
186
- const open_dialog_btn = canvas.getAllByText("⋮");
187
- await userEvent.click(open_dialog_btn[0]);
184
+ const cell_400 = canvas.getAllByRole("cell")[5];
185
+ userEvent.click(cell_400);
186
+
187
+ const open_dialog_btn = within(cell_400).getByText("⋮");
188
+ await userEvent.click(open_dialog_btn);
188
189
 
189
190
  const add_row_btn = canvas.getByText("Add row above");
190
191
  await userEvent.click(add_row_btn);
192
+
193
+ const new_cell = canvas.getAllByRole("cell")[9];
194
+ userEvent.click(new_cell);
191
195
  }}
192
196
  />
@@ -1047,8 +1047,8 @@ function reset_selection() {
1047
1047
  }
1048
1048
 
1049
1049
  th .header-content {
1050
- white-space: nowrap;
1051
- overflow: hidden;
1052
- text-overflow: ellipsis;
1050
+ white-space: normal;
1051
+ overflow-wrap: break-word;
1052
+ word-break: break-word;
1053
1053
  }
1054
1054
  </style>
@@ -194,8 +194,6 @@ $:
194
194
  }) : sortedItems.slice(0, max_height / sortedItems.length * average_height + 1).map((data, i) => {
195
195
  return { index: i + start, data };
196
196
  });
197
- $:
198
- actual_height = visible.length * average_height + 10;
199
197
  onMount(() => {
200
198
  rows = contents.children;
201
199
  mounted = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/dataframe",
3
- "version": "0.12.1",
3
+ "version": "0.12.3",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -17,13 +17,13 @@
17
17
  "dompurify": "^3.0.3",
18
18
  "katex": "^0.16.7",
19
19
  "marked": "^12.0.0",
20
- "@gradio/atoms": "^0.10.1",
21
- "@gradio/button": "^0.3.5",
20
+ "@gradio/atoms": "^0.11.1",
21
+ "@gradio/button": "^0.3.7",
22
22
  "@gradio/markdown-code": "^0.2.1",
23
- "@gradio/statustracker": "^0.9.3",
24
- "@gradio/upload": "^0.13.5",
25
- "@gradio/client": "^1.7.1",
26
- "@gradio/utils": "^0.7.0"
23
+ "@gradio/statustracker": "^0.9.5",
24
+ "@gradio/client": "^1.8.0",
25
+ "@gradio/utils": "^0.8.0",
26
+ "@gradio/upload": "^0.14.1"
27
27
  },
28
28
  "exports": {
29
29
  ".": {
@@ -1241,8 +1241,8 @@
1241
1241
  }
1242
1242
 
1243
1243
  th .header-content {
1244
- white-space: nowrap;
1245
- overflow: hidden;
1246
- text-overflow: ellipsis;
1244
+ white-space: normal;
1245
+ overflow-wrap: break-word;
1246
+ word-break: break-word;
1247
1247
  }
1248
1248
  </style>
@@ -248,7 +248,6 @@
248
248
  return { index: i + start, data };
249
249
  });
250
250
 
251
- $: actual_height = visible.length * average_height + 10;
252
251
  onMount(() => {
253
252
  rows = contents.children as HTMLCollectionOf<HTMLTableRowElement>;
254
253
  mounted = true;