@gradio/imageeditor 0.4.3 → 0.4.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,11 @@
1
1
  # @gradio/imageeditor
2
2
 
3
+ ## 0.4.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
+
3
9
  ## 0.4.3
4
10
 
5
11
  ### Patch Changes
@@ -194,4 +200,4 @@ Thanks [@pngwn](https://github.com/pngwn)!
194
200
 
195
201
  - [#6502](https://github.com/gradio-app/gradio/pull/6502) [`070f71c93`](https://github.com/gradio-app/gradio/commit/070f71c933d846ce8e2fe11cdd9bc0f3f897f29f) - Ensure image editor crop and draw cursor works as expected when the scroll position changes. Thanks [@pngwn](https://github.com/pngwn)!
196
202
 
197
- # @gradio/image
203
+ # @gradio/image
package/Example.svelte CHANGED
@@ -3,7 +3,6 @@
3
3
  import type { EditorData } from "./shared/InteractiveImageEditor.svelte";
4
4
 
5
5
  export let value: EditorData;
6
- export let samples_dir: string;
7
6
  export let type: "gallery" | "table";
8
7
  export let selected = false;
9
8
  </script>
@@ -14,10 +13,7 @@
14
13
  class:gallery={type === "gallery"}
15
14
  class:selected
16
15
  >
17
- <Image
18
- src={samples_dir + (value.composite?.path || value.background?.path)}
19
- alt=""
20
- />
16
+ <Image src={value.composite?.url || value.background?.url} alt="" />
21
17
  </div>
22
18
 
23
19
  <style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/imageeditor",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -11,13 +11,13 @@
11
11
  "pixi.js": "^7.3.2",
12
12
  "tinycolor2": "^1.6.0",
13
13
  "@gradio/atoms": "^0.5.3",
14
- "@gradio/client": "^0.12.1",
14
+ "@gradio/client": "^0.12.2",
15
15
  "@gradio/icons": "^0.3.3",
16
- "@gradio/image": "^0.9.3",
16
+ "@gradio/image": "^0.9.4",
17
17
  "@gradio/statustracker": "^0.4.8",
18
- "@gradio/upload": "^0.7.4",
19
- "@gradio/utils": "^0.3.0",
20
- "@gradio/wasm": "^0.6.0"
18
+ "@gradio/upload": "^0.7.5",
19
+ "@gradio/wasm": "^0.7.0",
20
+ "@gradio/utils": "^0.3.0"
21
21
  },
22
22
  "main_changeset": true,
23
23
  "main": "./Index.svelte",