Commit Graph

19 Commits

Author SHA1 Message Date
afrkorsakow
6b56e3828e feat(swagger-ui-react): add showCommonExtensions option (#8436) 2023-03-07 15:25:08 +01:00
Lars Nymand Jensen
03a981ae4f feat(swagger-ui-react): Add oauth2RedirectUrl prop (#8028) 2022-05-25 09:46:11 -07:00
Simon Podlipsky
31717dbb38 feat(swagger-ui-react): Add withCredentials prop (#7980)
Co-authored-by: Tim Lai <timothy.lai@gmail.com>
2022-05-02 14:25:36 -07:00
Tim Lai
51bd1c290d fix(lint): additional directories to lint with fixes (#7947) 2022-03-25 11:07:51 -07:00
Vladimir Gorej
3296e2e429 feat(swagger-ui-react): export presets and plugins as static props (#7927)
Closes #7923
2022-03-22 13:20:51 +01:00
Vladimir Gorej
5874d2be4f fix(swagger-ui-react): amend prop validation for plugins (#7900)
plugins prop can be defined as list of function as well.
2022-03-10 12:15:21 +01:00
Airam
544d16da35 fix(swagger-ui-react): fix prop type for plugins (#7877)
Co-authored-by: Tim Lai <timothy.lai@gmail.com>
2022-03-02 11:15:44 -08:00
Tim Lai
07d346b516 feat(build): webpack@5 and webpack-dev-server@4 (#7826)
SwaggerUI is now built using `webpack@5`, with dev support for `webpack-dev-server@4`
- ES Module output bundle path now points to `swagger-ui-es-bundle-core`, which does not include dependencies
- No change to CommonJS output bundle or path
- Now uses Asset Modules, which replaces `file-loader`, `raw-loader`, and `url-loader`
- Removed unused rules/loaders for `.woff | .woff2 | .ttf | .eot` fonts and html
- Node polyfills are no longer bundled with `webpack@5`, and must be loaded separately and/or use `resolve.fallback`. 
As an example, SwaggerUI loads `process`, `buffer`, and `stream-browserify` as `devDependencies` in order to build development and production bundles.

SwaggerUI-React
- Now imports `swagger-ui-es-bundle-core`, and similarly outputs `swagger-ui-es-bundle-core` to its `dist` directory

Dev notes:
- Order of execution matters for the production npm build scripts. `build-stylesheets` needs to get built first, 
then cleanup of any empty artifacts, before building the various production bundles
- `Dev-helpers` now relies on `HTMLWebpackPlugin` to inject css and bundle files
2022-03-01 12:08:50 -08:00
kyori19
67dd4f6a8d feat(swagger-ui-react): add support for persistAuthorization prop (#7842)
Closes #7389
2022-03-01 10:54:03 +01:00
Vladimir Gorej
a81341d25f fix(swagger-ui-react): load spec on initial render (#7856)
Refs #7578
2022-02-21 20:12:36 +01:00
Vladimir Gorej
6b1070814c fix(swagger-ui-react): fix prop type for defaultModelRendering
Refs #7783
2022-01-24 16:33:45 +01:00
Mahtis Michel
85597b9a94 feat(swagger-ui-react): Enable displayRequestDuration prop (#7522)
* feat(react): allow displayRequestDuration via react

* docs(react): added displayRequestDuration prop

* Update flavors/swagger-ui-react/README.md

Co-authored-by: Vladimir Gorej <vladimir.gorej@gmail.com>
Co-authored-by: Tim Lai <timothy.lai@gmail.com>
2022-01-18 10:24:34 -08:00
Alex Rejto
6273fd1dd8 feat: add support of defaultModelRendering prop to swagger-ui-react
Co-authored-by: Tim Lai <timothy.lai@gmail.com>
2022-01-12 14:31:55 -08:00
Vladimir Gorej
01a3e55960 fix(security): disable reading config params from URL search params (#7697)
Reading configuration parameters from URL search params 
is by default no longer enabled. To re-enable it, set queryConfigEnabled
configuration parameter to true.

Functionally, this is a breaking change, but given we're just providing
a security vulnerability patch we're considering this a PATCH version bump
only.

Refs #4872
Refs https://github.com/swagger-api/swagger-ui/security/advisories/GHSA-qrmm-w75w-3wpx
2021-12-09 17:28:17 +01:00
Andriy Semenyuk
b71446caa0 feat(swagger-ui-react): add support of filter prop (#7547)
Co-authored-by: Mahtis Michel <mathis.michel@outlook.de>
Co-authored-by: Vladimir Gorej <vladimir.gorej@gmail.com>

Closes #7546
2021-11-08 13:08:15 +01:00
Mahtis Michel
3fea224a7d feat(swagger-ui-react): add request snippets configuration (#7536)
Closes #7523
2021-11-08 12:13:32 +01:00
Vladimir Gorej
4a78313ebf fix(swagger-ui-react): add showExtension propType
Refs #5892
2021-11-08 10:07:21 +01:00
glebbash
d7ec726886 feat(swagger-ui-react): add showExtensions option (#7563)
Closes #5892
2021-11-08 09:37:28 +01:00
Kyle Hoskins
265bdc07b7 feat: add tryItOutEnabled configuration (#6865)
* feat: add tryItOutEnabled configuration

allow users to set tryItOutEnabled: true to display
the "Try it out" section by default

tryItOutEnabled to take === "true" for the
query string value or === true if someone
implements query string type parsing in the query
2021-01-26 09:00:38 -08:00