From e0c2e47b5f92817740dc19c2acd06fbfdc3ad80b Mon Sep 17 00:00:00 2001 From: Elia Lazzari Date: Mon, 22 Jan 2024 12:08:55 +0100 Subject: [PATCH] Update dependencies and settings --- .vscode/settings.json | 2 +- README.md | 5 +- example/virtualtour/package-lock.json | 40 ++-- package-lock.json | 308 +++++++++++++------------- package.json | 40 ++-- src/index.tsx | 7 - 6 files changed, 197 insertions(+), 205 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index fa03d4e..c51743d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,6 @@ { "editor.codeActionsOnSave": { - "source.fixAll.eslint": true + "source.fixAll.eslint": "explicit" }, "eslint.validate": ["javascript"] } \ No newline at end of file diff --git a/README.md b/README.md index 2ae69e9..9e4b399 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,8 @@ npm install react-photo-sphere-viewer ``` ## Library Version -Original Wrapped Library: [PhotoSphereViewer](https://github.com/mistic100/Photo-Sphere-Viewer) Version: 5.5.2 [**NEW**] -Now the component version is composed by the semantic version of the wrapper and the version of the original library. For example, the current version is 4.1.0-psv5.5.2. This means that the wrapper is in version 4.1.0 and the original library [psv](https://github.com/mistic100/Photo-Sphere-Viewer) is in version 5.5.2. +Original Wrapped Library: [PhotoSphereViewer](https://github.com/mistic100/Photo-Sphere-Viewer) Version: 5.6.0 [**NEW**] +Now the component version is composed by the semantic version of the wrapper and the version of the original library. For example, the current version is 4.2.0-psv5.6.0. This means that the wrapper is in version 4.2.0 and the original library [psv](https://github.com/mistic100/Photo-Sphere-Viewer) is in version 5.6.0. ## Description @@ -382,7 +382,6 @@ Currently managed methods are: - needsUpdate(): void; - autoSize(): void; - setPanorama(path: any, options?: PanoramaOptions): Promise; - - setOverlay(path: any, opacity?: number): Promise; - toggleAutorotate(): void; - showError(message: string): void; - hideError(): void; diff --git a/example/virtualtour/package-lock.json b/example/virtualtour/package-lock.json index dd3ba7b..0b2afe0 100644 --- a/example/virtualtour/package-lock.json +++ b/example/virtualtour/package-lock.json @@ -23,27 +23,27 @@ "extraneous": true }, "../..": { - "version": "4.1.0-psv5.5.2", + "version": "4.2.0-psv5.6.0", "license": "MIT", "dependencies": { - "@photo-sphere-viewer/autorotate-plugin": "^5.5.2", - "@photo-sphere-viewer/compass-plugin": "^5.5.2", - "@photo-sphere-viewer/core": "^5.5.2", - "@photo-sphere-viewer/cubemap-adapter": "^5.5.2", - "@photo-sphere-viewer/cubemap-tiles-adapter": "^5.5.2", - "@photo-sphere-viewer/cubemap-video-adapter": "^5.5.2", - "@photo-sphere-viewer/equirectangular-tiles-adapter": "^5.5.2", - "@photo-sphere-viewer/equirectangular-video-adapter": "^5.5.2", - "@photo-sphere-viewer/gallery-plugin": "^5.5.2", - "@photo-sphere-viewer/gyroscope-plugin": "^5.5.2", - "@photo-sphere-viewer/map-plugin": "^5.5.2", - "@photo-sphere-viewer/markers-plugin": "^5.5.2", - "@photo-sphere-viewer/resolution-plugin": "^5.5.2", - "@photo-sphere-viewer/settings-plugin": "^5.5.2", - "@photo-sphere-viewer/stereo-plugin": "^5.5.2", - "@photo-sphere-viewer/video-plugin": "^5.5.2", - "@photo-sphere-viewer/virtual-tour-plugin": "^5.5.2", - "@photo-sphere-viewer/visible-range-plugin": "^5.5.2", + "@photo-sphere-viewer/autorotate-plugin": "^5.6.0", + "@photo-sphere-viewer/compass-plugin": "^5.6.0", + "@photo-sphere-viewer/core": "^5.6.0", + "@photo-sphere-viewer/cubemap-adapter": "^5.6.0", + "@photo-sphere-viewer/cubemap-tiles-adapter": "^5.6.0", + "@photo-sphere-viewer/cubemap-video-adapter": "^5.6.0", + "@photo-sphere-viewer/equirectangular-tiles-adapter": "^5.6.0", + "@photo-sphere-viewer/equirectangular-video-adapter": "^5.6.0", + "@photo-sphere-viewer/gallery-plugin": "^5.6.0", + "@photo-sphere-viewer/gyroscope-plugin": "^5.6.0", + "@photo-sphere-viewer/map-plugin": "^5.6.0", + "@photo-sphere-viewer/markers-plugin": "^5.6.0", + "@photo-sphere-viewer/resolution-plugin": "^5.6.0", + "@photo-sphere-viewer/settings-plugin": "^5.6.0", + "@photo-sphere-viewer/stereo-plugin": "^5.6.0", + "@photo-sphere-viewer/video-plugin": "^5.6.0", + "@photo-sphere-viewer/virtual-tour-plugin": "^5.6.0", + "@photo-sphere-viewer/visible-range-plugin": "^5.6.0", "autoprefixer": "^10.4.17", "eventemitter3": "^5.0.1", "photo-sphere-viewer-lensflare-plugin": "^2.0.1" @@ -62,7 +62,7 @@ "copyfiles": "^2.4.1", "gh-pages": "^6.1.1", "rimraf": "^5.0.5", - "rollup": "^4.9.5", + "rollup": "^4.9.6", "rollup-plugin-postcss": "^4.0.2" }, "engines": { diff --git a/package-lock.json b/package-lock.json index 74ee06f..a9065c1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,32 +1,32 @@ { "name": "react-photo-sphere-viewer", - "version": "4.0.2-psv5.4.4", + "version": "4.2.0-psv5.6.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "react-photo-sphere-viewer", - "version": "4.0.2-psv5.4.4", + "version": "4.2.0-psv5.6.0", "license": "MIT", "dependencies": { - "@photo-sphere-viewer/autorotate-plugin": "^5.5.2", - "@photo-sphere-viewer/compass-plugin": "^5.5.2", - "@photo-sphere-viewer/core": "^5.5.2", - "@photo-sphere-viewer/cubemap-adapter": "^5.5.2", - "@photo-sphere-viewer/cubemap-tiles-adapter": "^5.5.2", - "@photo-sphere-viewer/cubemap-video-adapter": "^5.5.2", - "@photo-sphere-viewer/equirectangular-tiles-adapter": "^5.5.2", - "@photo-sphere-viewer/equirectangular-video-adapter": "^5.5.2", - "@photo-sphere-viewer/gallery-plugin": "^5.5.2", - "@photo-sphere-viewer/gyroscope-plugin": "^5.5.2", - "@photo-sphere-viewer/map-plugin": "^5.5.2", - "@photo-sphere-viewer/markers-plugin": "^5.5.2", - "@photo-sphere-viewer/resolution-plugin": "^5.5.2", - "@photo-sphere-viewer/settings-plugin": "^5.5.2", - "@photo-sphere-viewer/stereo-plugin": "^5.5.2", - "@photo-sphere-viewer/video-plugin": "^5.5.2", - "@photo-sphere-viewer/virtual-tour-plugin": "^5.5.2", - "@photo-sphere-viewer/visible-range-plugin": "^5.5.2", + "@photo-sphere-viewer/autorotate-plugin": "^5.6.0", + "@photo-sphere-viewer/compass-plugin": "^5.6.0", + "@photo-sphere-viewer/core": "^5.6.0", + "@photo-sphere-viewer/cubemap-adapter": "^5.6.0", + "@photo-sphere-viewer/cubemap-tiles-adapter": "^5.6.0", + "@photo-sphere-viewer/cubemap-video-adapter": "^5.6.0", + "@photo-sphere-viewer/equirectangular-tiles-adapter": "^5.6.0", + "@photo-sphere-viewer/equirectangular-video-adapter": "^5.6.0", + "@photo-sphere-viewer/gallery-plugin": "^5.6.0", + "@photo-sphere-viewer/gyroscope-plugin": "^5.6.0", + "@photo-sphere-viewer/map-plugin": "^5.6.0", + "@photo-sphere-viewer/markers-plugin": "^5.6.0", + "@photo-sphere-viewer/resolution-plugin": "^5.6.0", + "@photo-sphere-viewer/settings-plugin": "^5.6.0", + "@photo-sphere-viewer/stereo-plugin": "^5.6.0", + "@photo-sphere-viewer/video-plugin": "^5.6.0", + "@photo-sphere-viewer/virtual-tour-plugin": "^5.6.0", + "@photo-sphere-viewer/visible-range-plugin": "^5.6.0", "autoprefixer": "^10.4.17", "eventemitter3": "^5.0.1", "photo-sphere-viewer-lensflare-plugin": "^2.0.1" @@ -45,7 +45,7 @@ "copyfiles": "^2.4.1", "gh-pages": "^6.1.1", "rimraf": "^5.0.5", - "rollup": "^4.9.5", + "rollup": "^4.9.6", "rollup-plugin-postcss": "^4.0.2" }, "engines": { @@ -2157,155 +2157,155 @@ } }, "node_modules/@photo-sphere-viewer/autorotate-plugin": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/autorotate-plugin/-/autorotate-plugin-5.5.2.tgz", - "integrity": "sha512-DVmYD+G+0swAdky/Jh6Qw/Q4rpgraRFYEKgj9lD0h68/9iC8XTDTsR6YPIPENNjW8deYNZO7T5INs8WJfesa5w==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/autorotate-plugin/-/autorotate-plugin-5.6.0.tgz", + "integrity": "sha512-fV6Q5NcwapR+5Nq6YAuAn7soNesr1ytfna95x++CfcBodYeS4TTOXlwOhSGXKVyp7fMFOkS9efkuL+ISFcIC7A==", "peerDependencies": { - "@photo-sphere-viewer/core": "5.5.2" + "@photo-sphere-viewer/core": "5.6.0" } }, "node_modules/@photo-sphere-viewer/compass-plugin": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/compass-plugin/-/compass-plugin-5.5.2.tgz", - "integrity": "sha512-pNsuAj8PMGFdq8DcSBDXkvLb0FxMh7WjkFsTGZ030Re68XewcZXdLrB801o9C7FOZ6q4vUvPuF5j962IsTPitg==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/compass-plugin/-/compass-plugin-5.6.0.tgz", + "integrity": "sha512-yzvuEHn4DLc3eE/i4OkPCFjKt433CAFu0URFYZjS8+Lr52AdCOagr1P+uNLIlYHyGikq713/ly9npdv1Wo6W1Q==", "peerDependencies": { - "@photo-sphere-viewer/core": "5.5.2" + "@photo-sphere-viewer/core": "5.6.0" } }, "node_modules/@photo-sphere-viewer/core": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/core/-/core-5.5.2.tgz", - "integrity": "sha512-coEFnredLadny6tRike4KNjoWuKVEzUJ6Qr5mJif2LbgIV5+dq4dVqAWZRqp2OspMq3sq/iSyDwraI4t+Whl6A==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/core/-/core-5.6.0.tgz", + "integrity": "sha512-HDKpY3m8WJklLTQQVTN4xjwaSZVGlGRbNVRQI0DL2oB4OIq0PpwcpyqHM7Ig3nGaXT02DXAYID3K15ae3smALg==", "dependencies": { - "three": "^0.159.0" + "three": "^0.160.0" } }, "node_modules/@photo-sphere-viewer/core/node_modules/three": { - "version": "0.159.0", - "resolved": "https://registry.npmjs.org/three/-/three-0.159.0.tgz", - "integrity": "sha512-eCmhlLGbBgucuo4VEA9IO3Qpc7dh8Bd4VKzr7WfW4+8hMcIfoAVi1ev0pJYN9PTTsCslbcKgBwr2wNZ1EvLInA==" + "version": "0.160.1", + "resolved": "https://registry.npmjs.org/three/-/three-0.160.1.tgz", + "integrity": "sha512-Bgl2wPJypDOZ1stAxwfWAcJ0WQf7QzlptsxkjYiURPz+n5k4RBDLsq+6f9Y75TYxn6aHLcWz+JNmwTOXWrQTBQ==" }, "node_modules/@photo-sphere-viewer/cubemap-adapter": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/cubemap-adapter/-/cubemap-adapter-5.5.2.tgz", - "integrity": "sha512-zf1V6B8GXELEeFIMYVZS/lkiHk5TZG6dUj6MzcQPNiHN2kKzth+XaglIncOKHwGU9NDrJn/RmuR4MwbOKuqqcw==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/cubemap-adapter/-/cubemap-adapter-5.6.0.tgz", + "integrity": "sha512-2XPaZC00QrLjW3BbT47HqNotwRt+IEgDH/tdN1gqKA3Kskqzp07pE/vQdIwphTbIDppT6AWYbxZ8RqFNornDcg==", "peerDependencies": { - "@photo-sphere-viewer/core": "5.5.2" + "@photo-sphere-viewer/core": "5.6.0" } }, "node_modules/@photo-sphere-viewer/cubemap-tiles-adapter": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/cubemap-tiles-adapter/-/cubemap-tiles-adapter-5.5.2.tgz", - "integrity": "sha512-K5VcdrQgNIudfGdBdg+UsQSntPNVlzJLdTUSLFBGl8djzDnodDx2EfB/2OSnMl86cD1evVIjKYpOamZWs8PDJQ==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/cubemap-tiles-adapter/-/cubemap-tiles-adapter-5.6.0.tgz", + "integrity": "sha512-/YAAKN83X6+jYqAXlPje3atmYHXdq05U6fs1SB2xkbeZCRZE5kqyyoIA+UworUIKtEjFjpW5cjEd91n2iFlfNA==", "peerDependencies": { - "@photo-sphere-viewer/core": "5.5.2", - "@photo-sphere-viewer/cubemap-adapter": "5.5.2" + "@photo-sphere-viewer/core": "5.6.0", + "@photo-sphere-viewer/cubemap-adapter": "5.6.0" } }, "node_modules/@photo-sphere-viewer/cubemap-video-adapter": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/cubemap-video-adapter/-/cubemap-video-adapter-5.5.2.tgz", - "integrity": "sha512-p2y3ooAdskVjS87uMfjuu6KLlBFmkxZrTflKKaPIwd40wfXXQrYIU+ZG7glugE/r+DsRftHBU2lPqDNpn5fp/g==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/cubemap-video-adapter/-/cubemap-video-adapter-5.6.0.tgz", + "integrity": "sha512-ParkNaSinBH2285LIaIOLxaYXzXNQ5BK0ukoKpn53xUJF9t612JJoWkYDfSNkS+FwnRzNAIi6trLcYV6egEpIg==", "peerDependencies": { - "@photo-sphere-viewer/core": "5.5.2" + "@photo-sphere-viewer/core": "5.6.0" } }, "node_modules/@photo-sphere-viewer/equirectangular-tiles-adapter": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/equirectangular-tiles-adapter/-/equirectangular-tiles-adapter-5.5.2.tgz", - "integrity": "sha512-3aGsb+oGJomQBFnGqk8kVbH0I8+a1iU0OXfDkUf5AJpeUHu7RgK9wrKutoVGKV0CPbND0Mx8WjHS2doxluPdNg==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/equirectangular-tiles-adapter/-/equirectangular-tiles-adapter-5.6.0.tgz", + "integrity": "sha512-/2xcf5qWSelpXOLN3bS2bF2AoYIcaSZXseK9eR/u2LXfMvNIjuZ5oNdv1uUK+8CLJn1SrI2M4Gcos2XNhUf2Dg==", "peerDependencies": { - "@photo-sphere-viewer/core": "5.5.2" + "@photo-sphere-viewer/core": "5.6.0" } }, "node_modules/@photo-sphere-viewer/equirectangular-video-adapter": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/equirectangular-video-adapter/-/equirectangular-video-adapter-5.5.2.tgz", - "integrity": "sha512-EOcCe6sxAvPFVDLjadpDw24V/IncIaOOzgsbo/adc8cZ87EOdbqnX8GkxpXXVDF0IiVi78WoocVwaybGXdMwyA==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/equirectangular-video-adapter/-/equirectangular-video-adapter-5.6.0.tgz", + "integrity": "sha512-26GErOlmA71Zy9kN7Z3/j+bh5hy1ZOxyh59bYKd6Vps52F8igyFZW2jlH7fOcwicF+FI1JWtLBSAvKWNq8sACg==", "peerDependencies": { - "@photo-sphere-viewer/core": "5.5.2" + "@photo-sphere-viewer/core": "5.6.0" } }, "node_modules/@photo-sphere-viewer/gallery-plugin": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/gallery-plugin/-/gallery-plugin-5.5.2.tgz", - "integrity": "sha512-QuZNYfcHHkDvvSxz0Z2wOD8uuF7sakmcRwX4Ys052H1V2qFkQKB/7uxDz+1AVbTqvyG6r5Rf7tMSPfqoggMW7A==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/gallery-plugin/-/gallery-plugin-5.6.0.tgz", + "integrity": "sha512-D+dZ0YGAi340mJQLo5oGdaWQAQl/BQCY/kcHIGWori7z8qWnUYazssNX/CrGe2YA9mvs2BmdDtJaKLG9CUoG+g==", "peerDependencies": { - "@photo-sphere-viewer/core": "5.5.2" + "@photo-sphere-viewer/core": "5.6.0" } }, "node_modules/@photo-sphere-viewer/gyroscope-plugin": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/gyroscope-plugin/-/gyroscope-plugin-5.5.2.tgz", - "integrity": "sha512-0TAsjeQee1DImQGZUCY+ZfGm9RCtDgx2PRxqmBH/ZTMRspyCmVYc2ibTexfYLC6AYKowSiLrzDAxTkHdsLdt5Q==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/gyroscope-plugin/-/gyroscope-plugin-5.6.0.tgz", + "integrity": "sha512-68tXMM8NllGnAP9+j9uI45x0wB4/DxXw4kDlWaCsSMDNqsCsQvoHStKA3EthDd1URL44WiBf6785hcuf0zB6Ww==", "peerDependencies": { - "@photo-sphere-viewer/core": "5.5.2" + "@photo-sphere-viewer/core": "5.6.0" } }, "node_modules/@photo-sphere-viewer/map-plugin": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/map-plugin/-/map-plugin-5.5.2.tgz", - "integrity": "sha512-YU/3IYTAW8ky5scL5+hF+JbV3ZOGIvbFxIJYxckf6uP0GlrNUSow3z2wEX1T9nR8SzAklncGUPygB2vOh1cOQA==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/map-plugin/-/map-plugin-5.6.0.tgz", + "integrity": "sha512-hCC7Nf8uuVWXbc8sO3TvMrUjeEfUGRrYeSnyydiSuJdWE40bWLfEPbWSd1j4mqqfxRfuUoRoNskZEuQ5DT8u/A==", "peerDependencies": { - "@photo-sphere-viewer/core": "5.5.2" + "@photo-sphere-viewer/core": "5.6.0" } }, "node_modules/@photo-sphere-viewer/markers-plugin": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/markers-plugin/-/markers-plugin-5.5.2.tgz", - "integrity": "sha512-vz+kt9CqMTOr09/HH+czBLMAwv0tsYFGINAMCsxlrl+HM9RGBi5cRqOwXLWNEfvdLdqGgEw1K6gXxZxkJjLGDg==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/markers-plugin/-/markers-plugin-5.6.0.tgz", + "integrity": "sha512-SAwBDaTGkLw22udvOzkR1TOfXIdreFE3tmxJZmPU+7P9QBxYYCDC7BDkwc6YCAVnMKJXn+fbZF7b2vpHFCwXGA==", "peerDependencies": { - "@photo-sphere-viewer/core": "5.5.2" + "@photo-sphere-viewer/core": "5.6.0" } }, "node_modules/@photo-sphere-viewer/resolution-plugin": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/resolution-plugin/-/resolution-plugin-5.5.2.tgz", - "integrity": "sha512-HI61gfETeleHE0kLSIqYMc9HYu4VSP7NzEwNJKr0nrVGyD7pz1eO3luYtrUMVGezQdjGRdiG9vKgT+Z1SeJzFQ==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/resolution-plugin/-/resolution-plugin-5.6.0.tgz", + "integrity": "sha512-xbMuh/vuYCFYEx6t9Bpj/y2GJJj6t4VGMF9GAuAwZJJiwnGhnRwOckOPNktkYOcKQmkKGKimU54v2R3ftL8Tvw==", "peerDependencies": { - "@photo-sphere-viewer/core": "5.5.2", - "@photo-sphere-viewer/settings-plugin": "5.5.2" + "@photo-sphere-viewer/core": "5.6.0", + "@photo-sphere-viewer/settings-plugin": "5.6.0" } }, "node_modules/@photo-sphere-viewer/settings-plugin": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/settings-plugin/-/settings-plugin-5.5.2.tgz", - "integrity": "sha512-+jbtIwHme4San/jYLUFHjZtEdgh2Gp+RLHIfB9nPtQFYo8Mu56daVz5TAmnIErmsRCbTzw8tA/YywWwzugSxWQ==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/settings-plugin/-/settings-plugin-5.6.0.tgz", + "integrity": "sha512-RCXmz1DVbtO+7nY25vAnFMVKjT4VUHnmMg5NSfwEQoP3UnW6l7xO5PZb26kdTQJPcM127ubMhIWSZwWJOcK8Hw==", "peerDependencies": { - "@photo-sphere-viewer/core": "5.5.2" + "@photo-sphere-viewer/core": "5.6.0" } }, "node_modules/@photo-sphere-viewer/stereo-plugin": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/stereo-plugin/-/stereo-plugin-5.5.2.tgz", - "integrity": "sha512-M7KGYpSMEZtmux3IO4CkaObKKu7wHFDyUVm1NuDwkO/G6Vc9BhmKVE+XFqD6DfOkcMWH92YCSXwepNt5ozULRw==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/stereo-plugin/-/stereo-plugin-5.6.0.tgz", + "integrity": "sha512-b5x1vAQRzq9QDMuweFzZjB3bCrqdKms27/D2flSxkTGq4GXnPjKNeqBknc8wo1yBo2674zhFfz+2pv7cOpU9pw==", "peerDependencies": { - "@photo-sphere-viewer/core": "5.5.2", - "@photo-sphere-viewer/gyroscope-plugin": "5.5.2" + "@photo-sphere-viewer/core": "5.6.0", + "@photo-sphere-viewer/gyroscope-plugin": "5.6.0" } }, "node_modules/@photo-sphere-viewer/video-plugin": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/video-plugin/-/video-plugin-5.5.2.tgz", - "integrity": "sha512-np635jW4Ln2FpetlIEznjRWB5a0/ZHJf1FLwl0yHpFtRellQtCL8NCmgu3mbP9XUJEq1//E6nPPRE9bdCzurkA==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/video-plugin/-/video-plugin-5.6.0.tgz", + "integrity": "sha512-jN1D9tP4kRZadQTEhTSrV5L9OpgNjAVTbwpJDI+I9u6eKft8/nX4E6eFtE7HpkippSWXc6J3/Svl9I8jCBv6Hg==", "peerDependencies": { - "@photo-sphere-viewer/core": "5.5.2" + "@photo-sphere-viewer/core": "5.6.0" } }, "node_modules/@photo-sphere-viewer/virtual-tour-plugin": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/virtual-tour-plugin/-/virtual-tour-plugin-5.5.2.tgz", - "integrity": "sha512-gsF/oHAeL+zahF3MtesyJO3bJ1/94sSCAycZiaio2uWQ6vtDwT9OaWzNh+kmhaZZdoMlVd79zoZfEQu5SaTMAw==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/virtual-tour-plugin/-/virtual-tour-plugin-5.6.0.tgz", + "integrity": "sha512-6k6bAINh5vMPNn+rkG52lhVfE5TqVWgnf6gKsfGXF+G7rKXIX0QO1879Niz1vI8d1lpTkMeqHNMhjU/bhBrTFg==", "peerDependencies": { - "@photo-sphere-viewer/core": "5.5.2" + "@photo-sphere-viewer/core": "5.6.0" } }, "node_modules/@photo-sphere-viewer/visible-range-plugin": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/visible-range-plugin/-/visible-range-plugin-5.5.2.tgz", - "integrity": "sha512-/3da5q3lxrwoqU6JcKGFZj9G0cxc2yyVjbzlp7acSLqO5Bd9EOl+rsT+CThcBVtL5eqTufla0Ro+HtF/feEOjg==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/@photo-sphere-viewer/visible-range-plugin/-/visible-range-plugin-5.6.0.tgz", + "integrity": "sha512-Me6zyRjWHpu7kDfbtQjpSMzT4XeBVNnIX/y0qFzl8C5sXDofZrDWKLMgF+QVSSkv8auVs2JXgGFS2vRF3KzFSw==", "peerDependencies": { - "@photo-sphere-viewer/core": "5.5.2" + "@photo-sphere-viewer/core": "5.6.0" } }, "node_modules/@pkgjs/parseargs": { @@ -2465,9 +2465,9 @@ } }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.9.5.tgz", - "integrity": "sha512-idWaG8xeSRCfRq9KpRysDHJ/rEHBEXcHuJ82XY0yYFIWnLMjZv9vF/7DOq8djQ2n3Lk6+3qfSH8AqlmHlmi1MA==", + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.9.6.tgz", + "integrity": "sha512-MVNXSSYN6QXOulbHpLMKYi60ppyO13W9my1qogeiAqtjb2yR4LSmfU2+POvDkLzhjYLXz9Rf9+9a3zFHW1Lecg==", "cpu": [ "arm" ], @@ -2478,9 +2478,9 @@ ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.9.5.tgz", - "integrity": "sha512-f14d7uhAMtsCGjAYwZGv6TwuS3IFaM4ZnGMUn3aCBgkcHAYErhV1Ad97WzBvS2o0aaDv4mVz+syiN0ElMyfBPg==", + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.9.6.tgz", + "integrity": "sha512-T14aNLpqJ5wzKNf5jEDpv5zgyIqcpn1MlwCrUXLrwoADr2RkWA0vOWP4XxbO9aiO3dvMCQICZdKeDrFl7UMClw==", "cpu": [ "arm64" ], @@ -2491,9 +2491,9 @@ ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.9.5.tgz", - "integrity": "sha512-ndoXeLx455FffL68OIUrVr89Xu1WLzAG4n65R8roDlCoYiQcGGg6MALvs2Ap9zs7AHg8mpHtMpwC8jBBjZrT/w==", + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.9.6.tgz", + "integrity": "sha512-CqNNAyhRkTbo8VVZ5R85X73H3R5NX9ONnKbXuHisGWC0qRbTTxnF1U4V9NafzJbgGM0sHZpdO83pLPzq8uOZFw==", "cpu": [ "arm64" ], @@ -2504,9 +2504,9 @@ ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.9.5.tgz", - "integrity": "sha512-UmElV1OY2m/1KEEqTlIjieKfVwRg0Zwg4PLgNf0s3glAHXBN99KLpw5A5lrSYCa1Kp63czTpVll2MAqbZYIHoA==", + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.9.6.tgz", + "integrity": "sha512-zRDtdJuRvA1dc9Mp6BWYqAsU5oeLixdfUvkTHuiYOHwqYuQ4YgSmi6+/lPvSsqc/I0Omw3DdICx4Tfacdzmhog==", "cpu": [ "x64" ], @@ -2517,9 +2517,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.9.5.tgz", - "integrity": "sha512-Q0LcU61v92tQB6ae+udZvOyZ0wfpGojtAKrrpAaIqmJ7+psq4cMIhT/9lfV6UQIpeItnq/2QDROhNLo00lOD1g==", + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.9.6.tgz", + "integrity": "sha512-oNk8YXDDnNyG4qlNb6is1ojTOGL/tRhbbKeE/YuccItzerEZT68Z9gHrY3ROh7axDc974+zYAPxK5SH0j/G+QQ==", "cpu": [ "arm" ], @@ -2530,9 +2530,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.9.5.tgz", - "integrity": "sha512-dkRscpM+RrR2Ee3eOQmRWFjmV/payHEOrjyq1VZegRUa5OrZJ2MAxBNs05bZuY0YCtpqETDy1Ix4i/hRqX98cA==", + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.9.6.tgz", + "integrity": "sha512-Z3O60yxPtuCYobrtzjo0wlmvDdx2qZfeAWTyfOjEDqd08kthDKexLpV97KfAeUXPosENKd8uyJMRDfFMxcYkDQ==", "cpu": [ "arm64" ], @@ -2543,9 +2543,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.9.5.tgz", - "integrity": "sha512-QaKFVOzzST2xzY4MAmiDmURagWLFh+zZtttuEnuNn19AiZ0T3fhPyjPPGwLNdiDT82ZE91hnfJsUiDwF9DClIQ==", + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.9.6.tgz", + "integrity": "sha512-gpiG0qQJNdYEVad+1iAsGAbgAnZ8j07FapmnIAQgODKcOTjLEWM9sRb+MbQyVsYCnA0Im6M6QIq6ax7liws6eQ==", "cpu": [ "arm64" ], @@ -2556,9 +2556,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.9.5.tgz", - "integrity": "sha512-HeGqmRJuyVg6/X6MpE2ur7GbymBPS8Np0S/vQFHDmocfORT+Zt76qu+69NUoxXzGqVP1pzaY6QIi0FJWLC3OPA==", + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.9.6.tgz", + "integrity": "sha512-+uCOcvVmFUYvVDr27aiyun9WgZk0tXe7ThuzoUTAukZJOwS5MrGbmSlNOhx1j80GdpqbOty05XqSl5w4dQvcOA==", "cpu": [ "riscv64" ], @@ -2569,9 +2569,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.9.5.tgz", - "integrity": "sha512-Dq1bqBdLaZ1Gb/l2e5/+o3B18+8TI9ANlA1SkejZqDgdU/jK/ThYaMPMJpVMMXy2uRHvGKbkz9vheVGdq3cJfA==", + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.9.6.tgz", + "integrity": "sha512-HUNqM32dGzfBKuaDUBqFB7tP6VMN74eLZ33Q9Y1TBqRDn+qDonkAUyKWwF9BR9unV7QUzffLnz9GrnKvMqC/fw==", "cpu": [ "x64" ], @@ -2582,9 +2582,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.9.5.tgz", - "integrity": "sha512-ezyFUOwldYpj7AbkwyW9AJ203peub81CaAIVvckdkyH8EvhEIoKzaMFJj0G4qYJ5sw3BpqhFrsCc30t54HV8vg==", + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.9.6.tgz", + "integrity": "sha512-ch7M+9Tr5R4FK40FHQk8VnML0Szi2KRujUgHXd/HjuH9ifH72GUmw6lStZBo3c3GB82vHa0ZoUfjfcM7JiiMrQ==", "cpu": [ "x64" ], @@ -2595,9 +2595,9 @@ ] }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.9.5.tgz", - "integrity": "sha512-aHSsMnUw+0UETB0Hlv7B/ZHOGY5bQdwMKJSzGfDfvyhnpmVxLMGnQPGNE9wgqkLUs3+gbG1Qx02S2LLfJ5GaRQ==", + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.9.6.tgz", + "integrity": "sha512-VD6qnR99dhmTQ1mJhIzXsRcTBvTjbfbGGwKAHcu+52cVl15AC/kplkhxzW/uT0Xl62Y/meBKDZvoJSJN+vTeGA==", "cpu": [ "arm64" ], @@ -2608,9 +2608,9 @@ ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.9.5.tgz", - "integrity": "sha512-AiqiLkb9KSf7Lj/o1U3SEP9Zn+5NuVKgFdRIZkvd4N0+bYrTOovVd0+LmYCPQGbocT4kvFyK+LXCDiXPBF3fyA==", + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.9.6.tgz", + "integrity": "sha512-J9AFDq/xiRI58eR2NIDfyVmTYGyIZmRcvcAoJ48oDld/NTR8wyiPUu2X/v1navJ+N/FGg68LEbX3Ejd6l8B7MQ==", "cpu": [ "ia32" ], @@ -2621,9 +2621,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.9.5.tgz", - "integrity": "sha512-1q+mykKE3Vot1kaFJIDoUFv5TuW+QQVaf2FmTT9krg86pQrGStOSJJ0Zil7CFagyxDuouTepzt5Y5TVzyajOdQ==", + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.9.6.tgz", + "integrity": "sha512-jqzNLhNDvIZOrt69Ce4UjGRpXJBzhUBzawMwnaDAwyHriki3XollsewxWzOzz+4yOFDkuJHtTsZFwMxhYJWmLQ==", "cpu": [ "x64" ], @@ -6873,9 +6873,9 @@ } }, "node_modules/rollup": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.9.5.tgz", - "integrity": "sha512-E4vQW0H/mbNMw2yLSqJyjtkHY9dslf/p0zuT1xehNRqUTBOFMqEjguDvqhXr7N7r/4ttb2jr4T41d3dncmIgbQ==", + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.9.6.tgz", + "integrity": "sha512-05lzkCS2uASX0CiLFybYfVkwNbKZG5NFQ6Go0VWyogFTXXbR039UVsegViTntkk4OglHBdF54ccApXRRuXRbsg==", "dev": true, "dependencies": { "@types/estree": "1.0.5" @@ -6888,19 +6888,19 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.9.5", - "@rollup/rollup-android-arm64": "4.9.5", - "@rollup/rollup-darwin-arm64": "4.9.5", - "@rollup/rollup-darwin-x64": "4.9.5", - "@rollup/rollup-linux-arm-gnueabihf": "4.9.5", - "@rollup/rollup-linux-arm64-gnu": "4.9.5", - "@rollup/rollup-linux-arm64-musl": "4.9.5", - "@rollup/rollup-linux-riscv64-gnu": "4.9.5", - "@rollup/rollup-linux-x64-gnu": "4.9.5", - "@rollup/rollup-linux-x64-musl": "4.9.5", - "@rollup/rollup-win32-arm64-msvc": "4.9.5", - "@rollup/rollup-win32-ia32-msvc": "4.9.5", - "@rollup/rollup-win32-x64-msvc": "4.9.5", + "@rollup/rollup-android-arm-eabi": "4.9.6", + "@rollup/rollup-android-arm64": "4.9.6", + "@rollup/rollup-darwin-arm64": "4.9.6", + "@rollup/rollup-darwin-x64": "4.9.6", + "@rollup/rollup-linux-arm-gnueabihf": "4.9.6", + "@rollup/rollup-linux-arm64-gnu": "4.9.6", + "@rollup/rollup-linux-arm64-musl": "4.9.6", + "@rollup/rollup-linux-riscv64-gnu": "4.9.6", + "@rollup/rollup-linux-x64-gnu": "4.9.6", + "@rollup/rollup-linux-x64-musl": "4.9.6", + "@rollup/rollup-win32-arm64-msvc": "4.9.6", + "@rollup/rollup-win32-ia32-msvc": "4.9.6", + "@rollup/rollup-win32-x64-msvc": "4.9.6", "fsevents": "~2.3.2" } }, diff --git a/package.json b/package.json index 398c52e..224953f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-photo-sphere-viewer", - "version": "4.1.0-psv5.5.2", + "version": "4.2.0-psv5.6.0", "description": "Photosphere Viewer for React.JS, wrapper of photo-sphere-viewer.js", "author": "Elius94", "license": "MIT", @@ -35,24 +35,24 @@ "deploy": "gh-pages -d example/build" }, "dependencies": { - "@photo-sphere-viewer/autorotate-plugin": "^5.5.2", - "@photo-sphere-viewer/compass-plugin": "^5.5.2", - "@photo-sphere-viewer/core": "^5.5.2", - "@photo-sphere-viewer/cubemap-adapter": "^5.5.2", - "@photo-sphere-viewer/cubemap-tiles-adapter": "^5.5.2", - "@photo-sphere-viewer/cubemap-video-adapter": "^5.5.2", - "@photo-sphere-viewer/equirectangular-tiles-adapter": "^5.5.2", - "@photo-sphere-viewer/equirectangular-video-adapter": "^5.5.2", - "@photo-sphere-viewer/gallery-plugin": "^5.5.2", - "@photo-sphere-viewer/gyroscope-plugin": "^5.5.2", - "@photo-sphere-viewer/map-plugin": "^5.5.2", - "@photo-sphere-viewer/markers-plugin": "^5.5.2", - "@photo-sphere-viewer/resolution-plugin": "^5.5.2", - "@photo-sphere-viewer/settings-plugin": "^5.5.2", - "@photo-sphere-viewer/stereo-plugin": "^5.5.2", - "@photo-sphere-viewer/video-plugin": "^5.5.2", - "@photo-sphere-viewer/virtual-tour-plugin": "^5.5.2", - "@photo-sphere-viewer/visible-range-plugin": "^5.5.2", + "@photo-sphere-viewer/autorotate-plugin": "^5.6.0", + "@photo-sphere-viewer/compass-plugin": "^5.6.0", + "@photo-sphere-viewer/core": "^5.6.0", + "@photo-sphere-viewer/cubemap-adapter": "^5.6.0", + "@photo-sphere-viewer/cubemap-tiles-adapter": "^5.6.0", + "@photo-sphere-viewer/cubemap-video-adapter": "^5.6.0", + "@photo-sphere-viewer/equirectangular-tiles-adapter": "^5.6.0", + "@photo-sphere-viewer/equirectangular-video-adapter": "^5.6.0", + "@photo-sphere-viewer/gallery-plugin": "^5.6.0", + "@photo-sphere-viewer/gyroscope-plugin": "^5.6.0", + "@photo-sphere-viewer/map-plugin": "^5.6.0", + "@photo-sphere-viewer/markers-plugin": "^5.6.0", + "@photo-sphere-viewer/resolution-plugin": "^5.6.0", + "@photo-sphere-viewer/settings-plugin": "^5.6.0", + "@photo-sphere-viewer/stereo-plugin": "^5.6.0", + "@photo-sphere-viewer/video-plugin": "^5.6.0", + "@photo-sphere-viewer/virtual-tour-plugin": "^5.6.0", + "@photo-sphere-viewer/visible-range-plugin": "^5.6.0", "autoprefixer": "^10.4.17", "eventemitter3": "^5.0.1", "photo-sphere-viewer-lensflare-plugin": "^2.0.1" @@ -76,7 +76,7 @@ "copyfiles": "^2.4.1", "gh-pages": "^6.1.1", "rimraf": "^5.0.5", - "rollup": "^4.9.5", + "rollup": "^4.9.6", "rollup-plugin-postcss": "^4.0.2" }, "files": [ diff --git a/src/index.tsx b/src/index.tsx index 7af8c35..4f60408 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -208,7 +208,6 @@ function useDomElement(): [HTMLDivElement | undefined, (r: HTMLDivElement) => vo * @property {Function} needsUpdate - Updates the viewer. * @property {Function} autoSize - Sets the size to auto. * @property {Function} setPanorama - Sets the panorama. Receives a path and an optional PanoramaOptions object. Returns a Promise. - * @property {Function} setOverlay - Sets the overlay. Receives a path and an optional opacity. Returns a Promise. * @property {Function} toggleAutorotate - Toggles auto-rotation. * @property {Function} showError - Shows an error message. Receives a string. * @property {Function} hideError - Hides the error message. @@ -248,8 +247,6 @@ export interface ViewerAPI { autoSize(): void; // eslint-disable-next-line @typescript-eslint/no-explicit-any setPanorama(path: any, options?: PanoramaOptions): Promise; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - setOverlay(path: any, opacity?: number): Promise; toggleAutorotate(): void; showError(message: string): void; hideError(): void; @@ -630,10 +627,6 @@ const ReactPhotoSphereViewer = forwardRef((props, ref): React. setPanorama(path: any, options?: PanoramaOptions): Promise { return spherePlayerInstance.current?.setPanorama(path, options) as Promise }, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - setOverlay(path: any, opacity?: number): Promise { - return spherePlayerInstance.current?.setOverlay(path, opacity) as Promise - }, toggleAutorotate() { Emitter.emit("toggleAutorotate", {}) },