react-pannellum-next
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "react-pannellum-next", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "The `PanoramaViewer` component is a React component that provides a panoramic image viewer using the Pannellum library. It allows you to display a 360-degree image and add interactive hotspots to it.", | ||
"main": "index.js", | ||
"source": "src/index.ts", | ||
"main": "dist/index.js", | ||
"types": "dist/types.d.ts", | ||
"browserslist": "> 0.5%, last 2 versions, not dead", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"dev": "parcel index.html", | ||
"build": "parcel build" | ||
}, | ||
@@ -18,3 +23,6 @@ "repository": { | ||
"pannellum", | ||
"react-pannellum" | ||
"react-pannellum", | ||
"react", | ||
"component", | ||
"vr" | ||
], | ||
@@ -28,6 +36,22 @@ "author": "Loïc Kami", | ||
"dependencies": { | ||
"pannellum": "^2.5.6", | ||
"pannellum": "^2.5.6" | ||
}, | ||
"peerDependencies": { | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.22.5", | ||
"@babel/preset-env": "^7.22.5", | ||
"@babel/preset-react": "^7.22.5", | ||
"@parcel/packager-ts": "^2.9.2", | ||
"@parcel/transformer-html": "^2.9.2", | ||
"@parcel/transformer-js": "^2.9.2", | ||
"@parcel/transformer-typescript-tsc": "^2.9.2", | ||
"@parcel/transformer-typescript-types": "2.9.2", | ||
"@types/react": "^18.2.11", | ||
"@types/react-dom": "^18.2.4", | ||
"parcel": "^2.9.2", | ||
"typescript": "^5.1.3" | ||
} | ||
} |
@@ -24,6 +24,6 @@ # PanoramaViewer Component | ||
import React from 'react'; | ||
import PanoramaViewer, { Hotspot } from 'react-pannellum'; | ||
import PanoramaViewer, { HotspotProps } from 'react-pannellum'; | ||
const App: React.FC = () => { | ||
const hotSpots: Hotspot[] = [ | ||
const hotSpots: HotspotProps[] = [ | ||
{ pitch: 0, yaw: 0, type: 'info', text: 'Welcome!' }, | ||
@@ -49,3 +49,3 @@ // Add more hotspots here | ||
import React from 'react'; | ||
import { Hotspot } from 'react-pannellum-next'; | ||
import { HotspotProps } from 'react-pannellum-next'; | ||
@@ -58,3 +58,3 @@ const DynamicPanoramaViewer = dynamic(() => import('react-pannellum-next'), { | ||
const hotSpots: Hotspot[] = [ | ||
const hotSpots: HotspotProps[] = [ | ||
{ pitch: 0, yaw: 0, type: 'info', text: 'Welcome!' }, | ||
@@ -61,0 +61,0 @@ // Add more hotspots here |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
166929
15
359
12
1
- Removedreact@^18.2.0
- Removedreact-dom@^18.2.0