@gradio/gallery 0.7.3 → 0.8.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/gallery
2
2
 
3
+ ## 0.8.0
4
+
5
+ ### Features
6
+
7
+ - [#7516](https://github.com/gradio-app/gradio/pull/7516) [`3645da5`](https://github.com/gradio-app/gradio/commit/3645da5f1e5539668cad75071a82fdd78f50263c) - Fix incorrect relative mouse coordinates for `Gallery` preview overlay. Thanks [@MMP0](https://github.com/MMP0)!
8
+
3
9
  ## 0.7.3
4
10
 
5
11
  ### Fixes
package/Gallery.test.ts CHANGED
@@ -30,8 +30,6 @@ describe("Gallery", () => {
30
30
  label: "Gallery",
31
31
  loading_status: loading_status,
32
32
  preview: true,
33
- root: "",
34
- proxy_url: "",
35
33
  value: [
36
34
  {
37
35
  image: {
@@ -55,8 +53,6 @@ describe("Gallery", () => {
55
53
  label: "Gallery",
56
54
  loading_status: loading_status,
57
55
  preview: true,
58
- root: "",
59
- proxy_url: "",
60
56
  value: [
61
57
  {
62
58
  image: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/gallery",
3
- "version": "0.7.3",
3
+ "version": "0.8.0",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -8,14 +8,14 @@
8
8
  "private": false,
9
9
  "dependencies": {
10
10
  "dequal": "^2.0.2",
11
- "@gradio/client": "^0.12.1",
11
+ "@gradio/atoms": "^0.5.3",
12
12
  "@gradio/icons": "^0.3.3",
13
- "@gradio/image": "^0.9.3",
13
+ "@gradio/client": "^0.12.2",
14
+ "@gradio/image": "^0.9.4",
14
15
  "@gradio/statustracker": "^0.4.8",
16
+ "@gradio/upload": "^0.7.5",
15
17
  "@gradio/utils": "^0.3.0",
16
- "@gradio/upload": "^0.7.4",
17
- "@gradio/atoms": "^0.5.3",
18
- "@gradio/file": "^0.5.3"
18
+ "@gradio/file": "^0.5.4"
19
19
  },
20
20
  "main": "./Index.svelte",
21
21
  "main_changeset": true,
@@ -82,7 +82,7 @@
82
82
 
83
83
  function handle_preview_click(event: MouseEvent): void {
84
84
  const element = event.target as HTMLElement;
85
- const x = event.clientX;
85
+ const x = event.offsetX;
86
86
  const width = element.offsetWidth;
87
87
  const centerX = width / 2;
88
88