@juliocesar-io/nano-protein-viewer-react 0.0.4 → 0.0.6

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/README.md CHANGED
@@ -9,7 +9,7 @@ This project brings the Mol\*-powered molecular visualization experience to the
9
9
  ## Install
10
10
 
11
11
  ```bash
12
- npm install @juliocesar-io/nano-protein-viewer-react
12
+ pnpm install @juliocesar-io/nano-protein-viewer-react
13
13
  ```
14
14
 
15
15
  Peer deps: `react`, `react-dom`, `molstar`.
@@ -17,14 +17,18 @@ Peer deps: `react`, `react-dom`, `molstar`.
17
17
  ## Use in your app
18
18
 
19
19
  ```tsx
20
- import { NanoProteinViewer, StructureUrl } from '@juliocesar-io/nano-protein-viewer-react';
20
+ import { NanoProteinViewer, type StructureUrl } from '@juliocesar-io/nano-protein-viewer-react';
21
21
 
22
22
  const structures: StructureUrl[] = [
23
23
  { name: '1CRN', url: 'https://files.rcsb.org/download/1CRN.pdb', format: 'pdb' }
24
24
  ];
25
25
 
26
26
  export default function App() {
27
- return <NanoProteinViewer structureUrls={structures} />;
27
+ return (
28
+ <div style={{ width: '100%', height: '100vh' }}>
29
+ <NanoProteinViewer structureUrls={structures} />
30
+ </div>
31
+ );
28
32
  }
29
33
  ```
30
34
 
@@ -35,12 +39,13 @@ export default function App() {
35
39
  Run locally:
36
40
 
37
41
  ```bash
38
- npm install
39
- npm run dev
40
- ```
41
-
42
- Go to: http://localhost:5173
42
+ # From repo root, build the library first
43
+ pnpm build
43
44
 
45
+ cd react_app
46
+ pnpm install
47
+ pnpm dev
48
+ ```
44
49
 
45
50
  **Passing structures by URL**
46
51
 
@@ -123,5 +128,4 @@ The roadmap includes:
123
128
  - APIs integration for folding
124
129
  - Structure alignment
125
130
  - Animation playback
126
- - Alphafold DB/ RCSB PDB search import
127
-
131
+ - Alphafold DB/ RCSB PDB search import