@gradio/dataframe 0.10.1 → 0.11.0-beta.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,11 +1,48 @@
1
1
  # @gradio/dataframe
2
2
 
3
- ## 0.10.1
3
+ ## 0.11.0-beta.3
4
+
5
+ ### Dependency updates
6
+
7
+ - @gradio/upload@0.13.0-beta.3
8
+ - @gradio/client@1.6.0-beta.3
9
+ - @gradio/button@0.3.0-beta.3
10
+
11
+ ## 0.11.0-beta.2
12
+
13
+ ### Features
14
+
15
+ - [#9313](https://github.com/gradio-app/gradio/pull/9313) [`1fef9d9`](https://github.com/gradio-app/gradio/commit/1fef9d9a26f0ebce4de18c486702661f6539b1c6) - Standardize `height` across components and add `max_height` and `min_height` parameters where appropriate. Thanks @abidlabs!
16
+ - [#9339](https://github.com/gradio-app/gradio/pull/9339) [`4c8c6f2`](https://github.com/gradio-app/gradio/commit/4c8c6f2fe603081941c5fdc43f48a0632b9f31ad) - Ssr part 2. Thanks @pngwn!
17
+
18
+ ### Dependency updates
19
+
20
+ - @gradio/atoms@0.9.0-beta.2
21
+ - @gradio/upload@0.13.0-beta.2
22
+ - @gradio/markdown@0.10.0-beta.2
23
+ - @gradio/client@1.6.0-beta.2
24
+ - @gradio/statustracker@0.8.0-beta.2
25
+ - @gradio/utils@0.7.0-beta.2
26
+ - @gradio/button@0.3.0-beta.2
27
+
28
+ ## 0.10.1-beta.1
4
29
 
5
30
  ### Features
6
31
 
7
32
  - [#9187](https://github.com/gradio-app/gradio/pull/9187) [`5bf00b7`](https://github.com/gradio-app/gradio/commit/5bf00b7524ebf399b48719120a49d15bb21bd65c) - make all component SSR compatible. Thanks @pngwn!
8
33
 
34
+ ### Dependency updates
35
+
36
+ - @gradio/atoms@0.8.1-beta.1
37
+ - @gradio/statustracker@0.8.0-beta.1
38
+ - @gradio/utils@0.7.0-beta.1
39
+ - @gradio/client@1.6.0-beta.1
40
+ - @gradio/upload@0.12.4-beta.1
41
+ - @gradio/markdown@0.9.4-beta.1
42
+ - @gradio/button@0.3.0-beta.1
43
+
44
+ ## 0.10.1-beta.0
45
+
9
46
  ### Fixes
10
47
 
11
48
  - [#9163](https://github.com/gradio-app/gradio/pull/9163) [`2b6cbf2`](https://github.com/gradio-app/gradio/commit/2b6cbf25908e42cf027324e54ef2cc0baad11a91) - fix exports and generate types. Thanks @pngwn!
package/Index.svelte CHANGED
@@ -45,7 +45,7 @@
45
45
  right: string;
46
46
  display: boolean;
47
47
  }[];
48
- export let height: number | undefined = undefined;
48
+ export let max_height: number | undefined = undefined;
49
49
 
50
50
  export let loading_status: LoadingStatus;
51
51
  export let interactive: boolean;
@@ -149,11 +149,11 @@
149
149
  {datatype}
150
150
  {latex_delimiters}
151
151
  editable={interactive}
152
- {height}
152
+ {max_height}
153
153
  i18n={gradio.i18n}
154
154
  {line_breaks}
155
155
  {column_widths}
156
- upload={gradio.client.upload}
157
- stream_handler={gradio.client.stream}
156
+ upload={(...args) => gradio.client.upload(...args)}
157
+ stream_handler={(...args) => gradio.client.stream(...args)}
158
158
  />
159
159
  </Block>
package/dist/Index.svelte CHANGED
@@ -30,7 +30,7 @@ export let line_breaks = true;
30
30
  export let column_widths = [];
31
31
  export let gradio;
32
32
  export let latex_delimiters;
33
- export let height = void 0;
33
+ export let max_height = void 0;
34
34
  export let loading_status;
35
35
  export let interactive;
36
36
  let _headers;
@@ -107,11 +107,11 @@ async function handle_value_change(data) {
107
107
  {datatype}
108
108
  {latex_delimiters}
109
109
  editable={interactive}
110
- {height}
110
+ {max_height}
111
111
  i18n={gradio.i18n}
112
112
  {line_breaks}
113
113
  {column_widths}
114
- upload={gradio.client.upload}
115
- stream_handler={gradio.client.stream}
114
+ upload={(...args) => gradio.client.upload(...args)}
115
+ stream_handler={(...args) => gradio.client.stream(...args)}
116
116
  />
117
117
  </Block>
@@ -38,7 +38,7 @@ declare const __propDef: {
38
38
  right: string;
39
39
  display: boolean;
40
40
  }[];
41
- height?: number | undefined;
41
+ max_height?: number | undefined;
42
42
  loading_status: LoadingStatus;
43
43
  interactive: boolean;
44
44
  };
@@ -19,7 +19,7 @@ export let editable = true;
19
19
  export let wrap = false;
20
20
  export let root;
21
21
  export let i18n;
22
- export let height = 500;
22
+ export let max_height = 500;
23
23
  export let line_breaks = true;
24
24
  export let column_widths = [];
25
25
  export let upload;
@@ -427,7 +427,7 @@ function set_cell_widths() {
427
427
  );
428
428
  }
429
429
  }
430
- let table_height = values.slice(0, height / values.length * 37).length * 37 + 37;
430
+ let table_height = values.slice(0, max_height / values.length * 37).length * 37 + 37;
431
431
  let scrollbar_width = 0;
432
432
  function sort_data(_data, _display_value, _styling, col, dir) {
433
433
  let id = null;
@@ -589,7 +589,7 @@ onMount(() => {
589
589
  >
590
590
  <VirtualTable
591
591
  bind:items={data}
592
- max_height={height}
592
+ {max_height}
593
593
  bind:actual_height={table_height}
594
594
  bind:table_scrollbar_width={scrollbar_width}
595
595
  selected={selected_index}
@@ -21,7 +21,7 @@ declare const __propDef: {
21
21
  wrap?: boolean | undefined;
22
22
  root: string;
23
23
  i18n: I18nFormatter;
24
- height?: number | undefined;
24
+ max_height?: number | undefined;
25
25
  line_breaks?: boolean | undefined;
26
26
  column_widths?: string[] | undefined;
27
27
  upload: Client["upload"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/dataframe",
3
- "version": "0.10.1",
3
+ "version": "0.11.0-beta.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.8.1",
21
- "@gradio/button": "^0.2.51",
22
- "@gradio/client": "^1.5.2",
23
- "@gradio/markdown": "^0.9.4",
24
- "@gradio/statustracker": "^0.7.6",
25
- "@gradio/utils": "^0.6.1",
26
- "@gradio/upload": "^0.12.4"
20
+ "@gradio/atoms": "^0.9.0-beta.2",
21
+ "@gradio/markdown": "^0.10.0-beta.2",
22
+ "@gradio/client": "^1.6.0-beta.3",
23
+ "@gradio/button": "^0.3.0-beta.3",
24
+ "@gradio/statustracker": "^0.8.0-beta.2",
25
+ "@gradio/upload": "^0.13.0-beta.3",
26
+ "@gradio/utils": "^0.7.0-beta.2"
27
27
  },
28
28
  "exports": {
29
29
  ".": {
@@ -36,7 +36,7 @@
36
36
  export let root: string;
37
37
  export let i18n: I18nFormatter;
38
38
 
39
- export let height = 500;
39
+ export let max_height = 500;
40
40
  export let line_breaks = true;
41
41
  export let column_widths: string[] = [];
42
42
  export let upload: Client["upload"];
@@ -564,7 +564,7 @@
564
564
  }
565
565
 
566
566
  let table_height: number =
567
- values.slice(0, (height / values.length) * 37).length * 37 + 37;
567
+ values.slice(0, (max_height / values.length) * 37).length * 37 + 37;
568
568
  let scrollbar_width = 0;
569
569
 
570
570
  function sort_data(
@@ -744,7 +744,7 @@
744
744
  >
745
745
  <VirtualTable
746
746
  bind:items={data}
747
- max_height={height}
747
+ {max_height}
748
748
  bind:actual_height={table_height}
749
749
  bind:table_scrollbar_width={scrollbar_width}
750
750
  selected={selected_index}