redoc 2.0.0-rc.21 → 2.0.0-rc.25
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 +56 -0
- package/README.md +7 -6
- package/bundles/66d14429db4e18077079.worker.js.map +1 -0
- package/bundles/9bfd118e9284deb14028.worker.js.map +1 -0
- package/bundles/redoc.lib.js +610 -487
- package/bundles/redoc.lib.js.map +1 -1
- package/bundles/redoc.standalone.js +36 -36
- package/bundles/redoc.standalone.js.map +1 -1
- package/package.json +50 -48
- package/typings/common-elements/panels.d.ts +1 -1
- package/typings/components/Fields/Field.d.ts +1 -0
- package/typings/components/Markdown/Markdown.d.ts +1 -0
- package/typings/components/Markdown/SanitizedMdBlock.d.ts +1 -0
- package/typings/components/PayloadSamples/styled.elements.d.ts +2 -2
- package/typings/components/Schema/ObjectSchema.d.ts +1 -0
- package/typings/components/SearchBox/SearchBox.d.ts +1 -0
- package/typings/components/SideMenu/styled.elements.d.ts +10 -9
- package/typings/services/OpenAPIParser.d.ts +1 -1
- package/typings/services/RedocNormalizedOptions.d.ts +2 -0
- package/typings/services/SearchStore.d.ts +1 -0
- package/typings/services/models/Field.d.ts +1 -1
- package/typings/services/models/MediaContent.d.ts +0 -1
- package/typings/services/models/Operation.d.ts +1 -1
- package/typings/theme.d.ts +2 -2
- package/typings/types/open-api.d.ts +1 -0
- package/typings/utils/highlight.d.ts +1 -0
- package/bundles/080d918f61cfd391b4f8.worker.js.map +0 -1
- package/bundles/ba7dfd4bc26076b4ff3d.worker.js.map +0 -1
- package/typings/types/components.d.ts +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,59 @@
|
|
|
1
|
+
# [2.0.0-rc.25](https://github.com/Redocly/redoc/compare/v2.0.0-rc.24...v2.0.0-rc.25) (2020-03-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* do not collapse top level on Collapse All in json samples ([#1209](https://github.com/Redocly/redoc/issues/1209)) ([830371b](https://github.com/Redocly/redoc/commit/830371b5d1edf4ba7a138b3b3d78148d020e0349))
|
|
7
|
+
* fix passing boolean value to showExtensions options ([#1211](https://github.com/Redocly/redoc/issues/1211)) ([c6eaa02](https://github.com/Redocly/redoc/commit/c6eaa0281bb0f62b019c865e4aefb863ce84d628))
|
|
8
|
+
* improve names for some theme settings ([a0bd27c](https://github.com/Redocly/redoc/commit/a0bd27c75427a39abc9c753b0654678eed2f3851))
|
|
9
|
+
* sort discriminator entries by mapping order ([#1216](https://github.com/Redocly/redoc/issues/1216)) ([ac4f915](https://github.com/Redocly/redoc/commit/ac4f915494f289d1c97ffdfe3af59efd94734f8c))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* add x-explicitMappingOnly extension ([#1215](https://github.com/Redocly/redoc/issues/1215)) ([ea5b0aa](https://github.com/Redocly/redoc/commit/ea5b0aabf9133d11d3a8fcb79f9515d21e0d7ac0))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# [2.0.0-rc.24](https://github.com/Redocly/redoc/compare/v2.0.0-rc.23...v2.0.0-rc.24) (2020-03-17)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* Add debounce for 300 ms when searching ([#1089](https://github.com/Redocly/redoc/issues/1089)) ([373f018](https://github.com/Redocly/redoc/commit/373f018d0c183f83d07a4dbad4a4e2c9ab159f69))
|
|
24
|
+
* do not load SearchWorker if disableSearch is `true` ([#1191](https://github.com/Redocly/redoc/issues/1191)) ([af415e8](https://github.com/Redocly/redoc/commit/af415e89e8c074a3f7c84f76f24020a7bd545483)), closes [#764](https://github.com/Redocly/redoc/issues/764)
|
|
25
|
+
* fix major search performance due to wrong marker element ([8c053cc](https://github.com/Redocly/redoc/commit/8c053cc474e88befc3338307317c0702d212d4c3)), closes [#1109](https://github.com/Redocly/redoc/issues/1109)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* new option expandSingleSchemaField ([7608800](https://github.com/Redocly/redoc/commit/7608800d0acaa2fa0099dc840e17cd5aa90b54ca))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# [2.0.0-rc.23](https://github.com/Redocly/redoc/compare/v2.0.0-rc.22...v2.0.0-rc.23) (2020-02-09)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Bug Fixes
|
|
38
|
+
|
|
39
|
+
* fix broken sticky sidebar in Chrome 80 ([1a2a7dd](https://github.com/Redocly/redoc/commit/1a2a7dd8331cedd6ced4c18accf0b417549b3ff3)), closes [#1167](https://github.com/Redocly/redoc/issues/1167)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
# [2.0.0-rc.22](https://github.com/Redocly/redoc/compare/v2.0.0-rc.21...v2.0.0-rc.22) (2020-01-15)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Bug Fixes
|
|
47
|
+
|
|
48
|
+
* do not process oneOf if inherited from parent with discriminator ([5248415](https://github.com/Redocly/redoc/commit/52484157912d908daea8255d0b7d684b33258d7a))
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Features
|
|
52
|
+
|
|
53
|
+
* add HTTP syntax highlighting ([#1157](https://github.com/Redocly/redoc/issues/1157)) ([27a4af7](https://github.com/Redocly/redoc/commit/27a4af707686d56280753473b4294ee4af096534))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
1
57
|
# [2.0.0-rc.21](https://github.com/Redocly/redoc/compare/v2.0.0-rc.20...v2.0.0-rc.21) (2020-01-10)
|
|
2
58
|
|
|
3
59
|
|
package/README.md
CHANGED
|
@@ -64,11 +64,11 @@ Additionally, all the 1.x releases are hosted on our GitHub Pages-based CDN **(d
|
|
|
64
64
|
| 1.17.x | 2.0 |
|
|
65
65
|
|
|
66
66
|
## Some Real-life usages
|
|
67
|
-
- [Rebilly](https://rebilly.
|
|
67
|
+
- [Rebilly](https://rebilly-api.redoc.ly/)
|
|
68
68
|
- [Docker Engine](https://docs.docker.com/engine/api/v1.25/)
|
|
69
69
|
- [Zuora](https://www.zuora.com/developer/api-reference/)
|
|
70
|
-
- [Shopify Draft Orders](https://help.shopify.com/api/draft-orders)
|
|
71
70
|
- [Discourse](http://docs.discourse.org)
|
|
71
|
+
- [Commbox](https://www.commbox.io/api/)
|
|
72
72
|
- [APIs.guru](https://apis.guru/api-doc/)
|
|
73
73
|
- [FastAPI](https://github.com/tiangolo/fastapi)
|
|
74
74
|
|
|
@@ -107,13 +107,13 @@ That's all folks!
|
|
|
107
107
|
**IMPORTANT NOTE:** if you work with untrusted user spec, use `untrusted-spec` [option](#redoc-options-object) to prevent XSS security risks.
|
|
108
108
|
|
|
109
109
|
### 1. Install ReDoc (skip this step for CDN)
|
|
110
|
-
Install using [
|
|
110
|
+
Install using [npm](https://docs.npmjs.com/getting-started/what-is-npm):
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
npm i redoc
|
|
113
113
|
|
|
114
|
-
or using [
|
|
114
|
+
or using [yarn](https://yarnpkg.com):
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
yarn add redoc
|
|
117
117
|
|
|
118
118
|
### 2. Reference redoc script in HTML
|
|
119
119
|
For **CDN**:
|
|
@@ -230,6 +230,7 @@ You can use all of the following options with standalone version on <redoc> tag
|
|
|
230
230
|
* `hideHostname` - if set, the protocol and hostname is not shown in the operation definition.
|
|
231
231
|
* `hideLoading` - do not show loading animation. Useful for small docs.
|
|
232
232
|
* `hideSingleRequestSampleTab` - do not show the request sample tab for requests with only one sample.
|
|
233
|
+
* `expandSingleSchemaField` - automatically expand single field in a schema
|
|
233
234
|
* `jsonSampleExpandLevel` - set the default expand level for JSON payload samples (responses and request body). Special value 'all' expands all levels. The default value is `2`.
|
|
234
235
|
* `lazyRendering` - _Not implemented yet_ ~~if set, enables lazy rendering mode in ReDoc. This mode is useful for APIs with big number of operations (e.g. > 50). In this mode ReDoc shows initial screen ASAP and then renders the rest operations asynchronously while showing progress bar on the top. Check out the [demo](\\redocly.github.io/redoc) for the example.~~
|
|
235
236
|
* `menuToggle` - if true clicking second time on expanded menu item will collapse it, default `false`.
|