@upendra19/swagger-ui-custom 1.0.1 → 1.0.3
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 +4 -4
- package/dist/swagger-ui-bundle.js +1 -1
- package/dist/swagger-ui-es-bundle-core.js +1 -1
- package/dist/swagger-ui-es-bundle-core.js.map +1 -1
- package/dist/swagger-ui-es-bundle.js +1 -1
- package/dist/swagger-ui.css.map +1 -1
- package/dist/swagger-ui.js +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -100,14 +100,14 @@ This package can be used directly as a React component without needing to create
|
|
|
100
100
|
### Installation
|
|
101
101
|
|
|
102
102
|
```bash
|
|
103
|
-
npm install @upendra19/swagger-ui
|
|
103
|
+
npm install @upendra19/swagger-ui-custom
|
|
104
104
|
```
|
|
105
105
|
|
|
106
106
|
### Usage
|
|
107
107
|
|
|
108
108
|
```jsx
|
|
109
|
-
import SwaggerUI from "@upendra19/swagger-ui/react"
|
|
110
|
-
import "@upendra19/swagger-ui/dist/swagger-ui.css"
|
|
109
|
+
import SwaggerUI from "@upendra19/swagger-ui-custom/react"
|
|
110
|
+
import "@upendra19/swagger-ui-custom/dist/swagger-ui.css"
|
|
111
111
|
import swaggerSpec from "./your-swagger-spec.json"
|
|
112
112
|
|
|
113
113
|
const App = () => (
|
|
@@ -130,7 +130,7 @@ const App = () => (
|
|
|
130
130
|
export default App
|
|
131
131
|
```
|
|
132
132
|
|
|
133
|
-
**Note:** The React component export (`@upendra19/swagger-ui/react`) provides a ready-to-use React component, while the default export (`@upendra19/swagger-ui`) provides the core JavaScript bundle function for vanilla JavaScript applications.
|
|
133
|
+
**Note:** The React component export (`@upendra19/swagger-ui-custom/react`) provides a ready-to-use React component, while the default export (`@upendra19/swagger-ui-custom`) provides the core JavaScript bundle function for vanilla JavaScript applications.
|
|
134
134
|
|
|
135
135
|
## Configuration Options
|
|
136
136
|
|