@gradio/gallery 0.7.3 → 0.8.1

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,10 +1,25 @@
1
1
  # @gradio/gallery
2
2
 
3
+ ## 0.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`8181695`](https://github.com/gradio-app/gradio/commit/8181695e70187e8bc2bf7518697098c8d1b9843d)]:
8
+ - @gradio/upload@0.7.6
9
+ - @gradio/file@0.5.5
10
+ - @gradio/image@0.9.5
11
+
12
+ ## 0.8.0
13
+
14
+ ### Features
15
+
16
+ - [#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)!
17
+
3
18
  ## 0.7.3
4
19
 
5
20
  ### Fixes
6
21
 
7
- - [#7505](https://github.com/gradio-app/gradio/pull/7505) [`b186767`](https://github.com/gradio-app/gradio/commit/b18676774448f44a2ef3a9490224703254cffa7c) - Fix `Gallery` preview overlay and backdrop. Thanks [@MMP0](https://github.com/MMP0)!
22
+ - [#7505](https://github.com/gradio-app/gradio/pull/7505) [`b186767`](https://github.com/gradio-app/gradio/commit/b18676774448f44a2ef3a9490224703254cffa7c) - Fix `Gallery` preview overlay and backdrop. Thanks [@MMP0](https://github.com/MMP0)!
8
23
 
9
24
  ## 0.7.2
10
25
 
@@ -363,4 +378,4 @@ Thanks [@pngwn](https://github.com/pngwn)!
363
378
 
364
379
  ### Features
365
380
 
366
- - [#4995](https://github.com/gradio-app/gradio/pull/4995) [`3f8c210b`](https://github.com/gradio-app/gradio/commit/3f8c210b01ef1ceaaf8ee73be4bf246b5b745bbf) - Implement left and right click in `Gallery` component and show implicit images in `Gallery` grid. Thanks [@hannahblair](https://github.com/hannahblair)!
381
+ - [#4995](https://github.com/gradio-app/gradio/pull/4995) [`3f8c210b`](https://github.com/gradio-app/gradio/commit/3f8c210b01ef1ceaaf8ee73be4bf246b5b745bbf) - Implement left and right click in `Gallery` component and show implicit images in `Gallery` grid. Thanks [@hannahblair](https://github.com/hannahblair)!
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.1",
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/client": "^0.12.2",
12
12
  "@gradio/icons": "^0.3.3",
13
- "@gradio/image": "^0.9.3",
14
13
  "@gradio/statustracker": "^0.4.8",
14
+ "@gradio/upload": "^0.7.6",
15
+ "@gradio/image": "^0.9.5",
15
16
  "@gradio/utils": "^0.3.0",
16
- "@gradio/upload": "^0.7.4",
17
17
  "@gradio/atoms": "^0.5.3",
18
- "@gradio/file": "^0.5.3"
18
+ "@gradio/file": "^0.5.5"
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