@gradio/image 0.6.1 → 0.7.0

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/image
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Fixes
6
+
7
+ - [#6933](https://github.com/gradio-app/gradio/pull/6933) [`9cefd2e`](https://github.com/gradio-app/gradio/commit/9cefd2e90a1d0cc4d3e4e953fc5b9b1a7afb68dd) - Refactor examples so they accept data in the same format as is returned by function, rename `.as_example()` to `.process_example()`. Thanks [@abidlabs](https://github.com/abidlabs)!
8
+
3
9
  ## 0.6.1
4
10
 
5
11
  ### Fixes
package/Example.svelte CHANGED
@@ -1,7 +1,8 @@
1
1
  <script lang="ts">
2
2
  import Image from "./shared/Image.svelte";
3
+ import type { FileData } from "@gradio/client";
3
4
 
4
- export let value: string;
5
+ export let value: null | FileData;
5
6
  export let samples_dir: string;
6
7
  export let type: "gallery" | "table";
7
8
  export let selected = false;
@@ -13,7 +14,7 @@
13
14
  class:gallery={type === "gallery"}
14
15
  class:selected
15
16
  >
16
- <Image src={samples_dir + value} alt="" />
17
+ <Image src={samples_dir + value?.path} alt="" />
17
18
  </div>
18
19
 
19
20
  <style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/image",
3
- "version": "0.6.1",
3
+ "version": "0.7.0",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -11,11 +11,11 @@
11
11
  "lazy-brush": "^1.0.1",
12
12
  "resize-observer-polyfill": "^1.5.1",
13
13
  "@gradio/atoms": "^0.4.1",
14
- "@gradio/client": "^0.10.0",
14
+ "@gradio/client": "^0.10.1",
15
15
  "@gradio/icons": "^0.3.2",
16
- "@gradio/upload": "^0.6.0",
17
- "@gradio/utils": "^0.2.0",
18
16
  "@gradio/statustracker": "^0.4.3",
17
+ "@gradio/upload": "^0.6.1",
18
+ "@gradio/utils": "^0.2.0",
19
19
  "@gradio/wasm": "^0.5.0"
20
20
  },
21
21
  "main_changeset": true,