@gradio/image 0.9.2 → 0.9.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @gradio/image
2
2
 
3
+ ## 0.9.4
4
+
5
+ ### Features
6
+
7
+ - [#7528](https://github.com/gradio-app/gradio/pull/7528) [`eda33b3`](https://github.com/gradio-app/gradio/commit/eda33b3763897a542acf298e523fa493dc655aee) - Refactors `get_fetchable_url_or_file()` to remove it from the frontend. Thanks [@abidlabs](https://github.com/abidlabs)!
8
+
9
+ ## 0.9.3
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [[`98a2719`](https://github.com/gradio-app/gradio/commit/98a2719bfb9c64338caf9009891b6c6b0b33ea89)]:
14
+ - @gradio/statustracker@0.4.8
15
+
3
16
  ## 0.9.2
4
17
 
5
18
  ### Patch Changes
@@ -381,4 +394,4 @@ Thanks [@pngwn](https://github.com/pngwn)!
381
394
 
382
395
  ### Features
383
396
 
384
- - [#4979](https://github.com/gradio-app/gradio/pull/4979) [`44ac8ad0`](https://github.com/gradio-app/gradio/commit/44ac8ad08d82ea12c503dde5c78f999eb0452de2) - Allow setting sketch color default. Thanks [@aliabid94](https://github.com/aliabid94)!
397
+ - [#4979](https://github.com/gradio-app/gradio/pull/4979) [`44ac8ad0`](https://github.com/gradio-app/gradio/commit/44ac8ad08d82ea12c503dde5c78f999eb0452de2) - Allow setting sketch color default. Thanks [@aliabid94](https://github.com/aliabid94)!
package/Example.svelte CHANGED
@@ -3,7 +3,6 @@
3
3
  import type { FileData } from "@gradio/client";
4
4
 
5
5
  export let value: null | FileData;
6
- export let samples_dir: string;
7
6
  export let type: "gallery" | "table";
8
7
  export let selected = false;
9
8
  </script>
@@ -16,7 +15,7 @@
16
15
  class:border={value}
17
16
  >
18
17
  {#if value}
19
- <Image src={samples_dir + value.path} alt="" />
18
+ <Image src={value.url} alt="" />
20
19
  {/if}
21
20
  </div>
22
21
 
@@ -12,7 +12,6 @@
12
12
  <Story
13
13
  name="Image file"
14
14
  args={{
15
- samples_dir: "",
16
15
  value: {
17
16
  path: "https://gradio-builds.s3.amazonaws.com/demo-files/ghepardo-primo-piano.jpg",
18
17
  url: "https://gradio-builds.s3.amazonaws.com/demo-files/ghepardo-primo-piano.jpg",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/image",
3
- "version": "0.9.2",
3
+ "version": "0.9.4",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -11,12 +11,12 @@
11
11
  "lazy-brush": "^1.0.1",
12
12
  "resize-observer-polyfill": "^1.5.1",
13
13
  "@gradio/atoms": "^0.5.3",
14
- "@gradio/client": "^0.12.1",
15
- "@gradio/statustracker": "^0.4.7",
14
+ "@gradio/statustracker": "^0.4.8",
15
+ "@gradio/client": "^0.12.2",
16
16
  "@gradio/icons": "^0.3.3",
17
- "@gradio/upload": "^0.7.4",
18
17
  "@gradio/utils": "^0.3.0",
19
- "@gradio/wasm": "^0.6.0"
18
+ "@gradio/wasm": "^0.7.0",
19
+ "@gradio/upload": "^0.7.5"
20
20
  },
21
21
  "main_changeset": true,
22
22
  "main": "./Index.svelte",