@scalar/nextjs-api-reference 0.3.61 → 0.4.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 +29 -0
- package/README.md +25 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @scalar/nextjs-api-reference
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 7f8ef74: chore: remove aliasing
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 6fbb57e: feat: release all the packages
|
|
12
|
+
- 54e73aa: chore: updpate docs for next.js pages router
|
|
13
|
+
- Updated dependencies [7f8ef74]
|
|
14
|
+
- Updated dependencies [689677a]
|
|
15
|
+
- Updated dependencies [326dcfb]
|
|
16
|
+
- Updated dependencies [b4db5da]
|
|
17
|
+
- Updated dependencies [d54eb42]
|
|
18
|
+
- Updated dependencies [68eede9]
|
|
19
|
+
- Updated dependencies [96347a1]
|
|
20
|
+
- Updated dependencies [8494349]
|
|
21
|
+
- Updated dependencies [b38c7ed]
|
|
22
|
+
- Updated dependencies [6fbb57e]
|
|
23
|
+
- Updated dependencies [6d11a8a]
|
|
24
|
+
- @scalar/api-reference@1.24.0
|
|
25
|
+
|
|
26
|
+
## 0.3.62
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- @scalar/api-reference@1.23.5
|
|
31
|
+
|
|
3
32
|
## 0.3.61
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -57,3 +57,28 @@ const config = {
|
|
|
57
57
|
theme: 'purple',
|
|
58
58
|
}
|
|
59
59
|
```
|
|
60
|
+
|
|
61
|
+
## Pages router
|
|
62
|
+
|
|
63
|
+
If you are using the pages router, you can import the React component
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
npm install @scalar/api-reference-react
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
```tsx
|
|
70
|
+
import { ApiReferenceReact } from '@scalar/api-reference-react'
|
|
71
|
+
import '@scalar/api-reference-react/style.css'
|
|
72
|
+
|
|
73
|
+
export default function References() {
|
|
74
|
+
return (
|
|
75
|
+
<ApiReferenceReact
|
|
76
|
+
configuration={{
|
|
77
|
+
spec: {
|
|
78
|
+
url: 'https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.json',
|
|
79
|
+
},
|
|
80
|
+
}}
|
|
81
|
+
/>
|
|
82
|
+
)
|
|
83
|
+
}
|
|
84
|
+
```
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"openapi",
|
|
19
19
|
"swagger"
|
|
20
20
|
],
|
|
21
|
-
"version": "0.
|
|
21
|
+
"version": "0.4.0",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
],
|
|
36
36
|
"module": "./dist/index.js",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@scalar/api-reference": "1.
|
|
38
|
+
"@scalar/api-reference": "1.24.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/node": "^20.8.4",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"react-dom": "^18.3.1",
|
|
48
48
|
"vite": "^5.2.10",
|
|
49
49
|
"vite-plugin-dts": "^3.6.3",
|
|
50
|
-
"@scalar/api-reference": "1.
|
|
50
|
+
"@scalar/api-reference": "1.24.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"next": "^13 || ^14",
|