@gradio/dataframe 0.12.1 → 0.12.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.12.2
4
+
5
+ ### Fixes
6
+
7
+ - [#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!
8
+
9
+ ### Dependency updates
10
+
11
+ - @gradio/statustracker@0.9.4
12
+ - @gradio/button@0.3.6
13
+ - @gradio/atoms@0.11.0
14
+ - @gradio/upload@0.14.0
15
+
3
16
  ## 0.12.1
4
17
 
5
18
  ### 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
  />
@@ -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.2",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -17,12 +17,12 @@
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",
22
- "@gradio/markdown-code": "^0.2.1",
23
- "@gradio/statustracker": "^0.9.3",
24
- "@gradio/upload": "^0.13.5",
20
+ "@gradio/atoms": "^0.11.0",
21
+ "@gradio/button": "^0.3.6",
25
22
  "@gradio/client": "^1.7.1",
23
+ "@gradio/statustracker": "^0.9.4",
24
+ "@gradio/markdown-code": "^0.2.1",
25
+ "@gradio/upload": "^0.14.0",
26
26
  "@gradio/utils": "^0.7.0"
27
27
  },
28
28
  "exports": {
@@ -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;