@gradio/dataset 0.1.18 → 0.1.19

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,11 @@
1
1
  # @gradio/dataset
2
2
 
3
+ ## 0.1.19
4
+
5
+ ### Fixes
6
+
7
+ - [#7192](https://github.com/gradio-app/gradio/pull/7192) [`8dd6f4b`](https://github.com/gradio-app/gradio/commit/8dd6f4bc1901792f05cd59e86df7b1dbab692739) - Handle the case where examples is `null` for all components. Thanks [@abidlabs](https://github.com/abidlabs)!
8
+
3
9
  ## 0.1.18
4
10
 
5
11
  ### Patch Changes
@@ -229,4 +235,4 @@
229
235
 
230
236
  ### Features
231
237
 
232
- - [#5215](https://github.com/gradio-app/gradio/pull/5215) [`fbdad78a`](https://github.com/gradio-app/gradio/commit/fbdad78af4c47454cbb570f88cc14bf4479bbceb) - Lazy load interactive or static variants of a component individually, rather than loading both variants regardless. This change will improve performance for many applications. Thanks [@pngwn](https://github.com/pngwn)!
238
+ - [#5215](https://github.com/gradio-app/gradio/pull/5215) [`fbdad78a`](https://github.com/gradio-app/gradio/commit/fbdad78af4c47454cbb570f88cc14bf4479bbceb) - Lazy load interactive or static variants of a component individually, rather than loading both variants regardless. This change will improve performance for many applications. Thanks [@pngwn](https://github.com/pngwn)!
package/Index.svelte CHANGED
@@ -129,28 +129,30 @@
129
129
  {#if gallery}
130
130
  <div class="gallery">
131
131
  {#each selected_samples as sample_row, i}
132
- <button
133
- class="gallery-item"
134
- on:click={() => {
135
- value = i + page * samples_per_page;
136
- gradio.dispatch("click", value);
137
- gradio.dispatch("select", { index: value, value: sample_row });
138
- }}
139
- on:mouseenter={() => handle_mouseenter(i)}
140
- on:mouseleave={() => handle_mouseleave()}
141
- >
142
- {#if component_meta.length && component_map.get(components[0])}
143
- <svelte:component
144
- this={component_meta[0][0].component}
145
- {...component_props[0]}
146
- value={sample_row[0]}
147
- {samples_dir}
148
- type="gallery"
149
- selected={current_hover === i}
150
- index={i}
151
- />
152
- {/if}
153
- </button>
132
+ {#if sample_row[0]}
133
+ <button
134
+ class="gallery-item"
135
+ on:click={() => {
136
+ value = i + page * samples_per_page;
137
+ gradio.dispatch("click", value);
138
+ gradio.dispatch("select", { index: value, value: sample_row });
139
+ }}
140
+ on:mouseenter={() => handle_mouseenter(i)}
141
+ on:mouseleave={() => handle_mouseleave()}
142
+ >
143
+ {#if component_meta.length && component_map.get(components[0])}
144
+ <svelte:component
145
+ this={component_meta[0][0].component}
146
+ {...component_props[0]}
147
+ value={sample_row[0]}
148
+ {samples_dir}
149
+ type="gallery"
150
+ selected={current_hover === i}
151
+ index={i}
152
+ />
153
+ {/if}
154
+ </button>
155
+ {/if}
154
156
  {/each}
155
157
  </div>
156
158
  {:else}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/dataset",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -12,9 +12,9 @@
12
12
  "./package.json": "./package.json"
13
13
  },
14
14
  "dependencies": {
15
- "@gradio/client": "^0.10.1",
16
- "@gradio/atoms": "^0.5.0",
17
- "@gradio/utils": "^0.2.1",
18
- "@gradio/upload": "^0.7.0"
15
+ "@gradio/atoms": "^0.5.1",
16
+ "@gradio/utils": "^0.2.2",
17
+ "@gradio/client": "^0.11.0",
18
+ "@gradio/upload": "^0.7.1"
19
19
  }
20
20
  }