@scalar/api-reference-react 0.3.165 → 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 +18 -0
- package/README.md +5 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +368 -560
- package/dist/style.css +1 -1
- package/package.json +9 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @scalar/api-reference-react
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 63350ce: chore: react 19 upgrade minor bump
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 90529fc: chore: upgrade to react 19
|
|
12
|
+
- @scalar/api-reference@1.25.91
|
|
13
|
+
|
|
14
|
+
## 0.3.166
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 0dfab46: chore: remove api-reference-react peerDependencies
|
|
19
|
+
- @scalar/api-reference@1.25.90
|
|
20
|
+
|
|
3
21
|
## 0.3.165
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -11,6 +11,11 @@
|
|
|
11
11
|
npm install @scalar/api-reference-react
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
## Compatibility
|
|
15
|
+
|
|
16
|
+
This package is compatible with React 19 and is untested on React 18. If you want guaranteed React 18 support please use
|
|
17
|
+
version `1.0.107` of this package.
|
|
18
|
+
|
|
14
19
|
## Usage
|
|
15
20
|
|
|
16
21
|
The API Reference package is written in Vue. That shouldn’t stop you from using it in React, though. We have created a client side wrapper in React:
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { JSX
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
2
|
import { ReferenceProps } from '@scalar/api-reference';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* React wrapper around the Scalar API Reference
|
|
6
6
|
*/
|
|
7
|
-
export declare const ApiReferenceReact: (props: ReferenceProps) =>
|
|
7
|
+
export declare const ApiReferenceReact: (props: ReferenceProps) => JSX.Element;
|
|
8
8
|
|
|
9
9
|
export { ReferenceProps }
|
|
10
10
|
|