@gradio/dataframe 0.24.2 → 0.24.4

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.
@@ -27,6 +27,7 @@
27
27
  class="selection-button selection-button-{position} {is_first_position
28
28
  ? `move-${direction}`
29
29
  : ''}"
30
+ tabindex="-1"
30
31
  onclick={(e: MouseEvent) => {
31
32
  e.stopPropagation();
32
33
  on_click && on_click();
@@ -80,8 +80,8 @@ export function createSvelteVirtualizer<
80
80
  }
81
81
  });
82
82
 
83
- if (prev_count === 0 && current_count > 0) {
84
- virtualizer.measure();
83
+ if (current_count !== prev_count) {
84
+ version += 1;
85
85
  }
86
86
  prev_count = current_count;
87
87
  });
@@ -1,12 +1,19 @@
1
1
  <script lang="ts">
2
- export const aria_label = "";
3
- export const root = "";
4
- export const upload: any = null;
5
- export const stream_handler: any = null;
2
+ import type { Snippet } from "svelte";
3
+
4
+ let {
5
+ children
6
+ }: {
7
+ aria_label?: string;
8
+ root?: string;
9
+ upload?: any;
10
+ stream_handler?: any;
11
+ children?: Snippet;
12
+ } = $props();
6
13
  </script>
7
14
 
8
15
  <div>
9
- <slot />
16
+ {@render children?.()}
10
17
  </div>
11
18
 
12
19
  <style>