redoc 2.0.0-rc.53 → 2.0.0-rc.54

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.
Files changed (37) hide show
  1. package/README.md +4 -3
  2. package/bundles/9bcbfb5fe4bb244b68d4.worker.js.LICENSE.txt +68 -0
  3. package/bundles/9bcbfb5fe4bb244b68d4.worker.js.map +1 -0
  4. package/bundles/cf2d816ec177c47e23d0.worker.js.LICENSE.txt +68 -0
  5. package/bundles/cf2d816ec177c47e23d0.worker.js.map +1 -0
  6. package/bundles/redoc.lib.js +2 -14904
  7. package/bundles/redoc.lib.js.LICENSE.txt +6 -0
  8. package/bundles/redoc.lib.js.map +1 -1
  9. package/bundles/redoc.standalone.js +2 -106
  10. package/bundles/redoc.standalone.js.LICENSE.txt +106 -0
  11. package/bundles/redoc.standalone.js.map +1 -1
  12. package/package.json +92 -79
  13. package/typings/common-elements/fields.d.ts +0 -1
  14. package/typings/common-elements/linkify.d.ts +3 -7
  15. package/typings/components/Fields/EnumValues.d.ts +1 -1
  16. package/typings/components/RedocStandalone.d.ts +2 -11
  17. package/typings/components/RequestSamples/CodeSample.d.ts +22 -0
  18. package/typings/components/StoreBuilder.d.ts +6 -18
  19. package/typings/index.d.ts +3 -2
  20. package/typings/services/Labels.d.ts +1 -1
  21. package/typings/services/MenuBuilder.d.ts +1 -1
  22. package/typings/services/OpenAPIParser.d.ts +3 -2
  23. package/typings/services/models/ApiInfo.d.ts +1 -0
  24. package/typings/services/models/Field.d.ts +1 -0
  25. package/typings/services/models/Operation.d.ts +1 -1
  26. package/typings/services/models/Schema.d.ts +2 -1
  27. package/typings/services/models/Webhook.d.ts +1 -0
  28. package/typings/styled-components.d.ts +3 -3
  29. package/typings/types/index.d.ts +1 -2
  30. package/typings/types/index.ts +3 -0
  31. package/typings/types/open-api.d.ts +230 -218
  32. package/typings/types/open-api.ts +280 -0
  33. package/typings/utils/media-css.d.ts +6 -0
  34. package/typings/utils/openapi.d.ts +4 -3
  35. package/CHANGELOG.md +0 -1832
  36. package/bundles/6d3017e92bb2b2c03e6b.worker.js.map +0 -1
  37. package/bundles/dbef64fdf885888b28c4.worker.js.map +0 -1
package/README.md CHANGED
@@ -26,6 +26,7 @@
26
26
  - The widest OpenAPI v2.0 features support (yes, it supports even `discriminator`) <br>
27
27
  ![](docs/images/discriminator-demo.gif)
28
28
  - OpenAPI 3.0 support
29
+ - Basic OpenAPI 3.1 support
29
30
  - Neat **interactive** documentation for nested objects <br>
30
31
  ![](docs/images/nested-demo.gif)
31
32
  - Code samples support (via vendor extension) <br>
@@ -43,7 +44,6 @@
43
44
  - [x] ~~React rewrite~~
44
45
  - [x] ~~docs pre-rendering (performance and SEO)~~
45
46
  - [ ] ability to simple branding/styling
46
- - [ ] built-in API Console
47
47
 
48
48
  ## Releases
49
49
  **Important:** all the 2.x releases are deployed to npm and can be used via jsdeliver:
@@ -58,6 +58,7 @@ Additionally, all the 1.x releases are hosted on our GitHub Pages-based CDN **(d
58
58
  ## Version Guidance
59
59
  | ReDoc Release | OpenAPI Specification |
60
60
  |:--------------|:----------------------|
61
+ | 2.0.0-alpha.54| 3.1, 3.0.x, 2.0 |
61
62
  | 2.0.0-alpha.x | 3.0, 2.0 |
62
63
  | 1.19.x | 2.0 |
63
64
  | 1.18.x | 2.0 |
@@ -162,7 +163,7 @@ Also you can pass options:
162
163
 
163
164
  ```js
164
165
  <RedocStandalone
165
- specUrl="http://rebilly.github.io/RebillyAPI/openapi.json"
166
+ specUrl="https://api.redoc.ly/registry/rebilly/core-api/core/bundle/master/openapi.yaml"
166
167
  options={{
167
168
  nativeScrollbars: true,
168
169
  theme: { colors: { primary: { main: '#dd5522' } } },
@@ -176,7 +177,7 @@ You can also specify `onLoaded` callback which will be called each time Redoc ha
176
177
 
177
178
  ```js
178
179
  <RedocStandalone
179
- specUrl="http://rebilly.github.io/RebillyAPI/openapi.json"
180
+ specUrl="https://api.redoc.ly/registry/rebilly/core-api/core/bundle/master/openapi.yaml"
180
181
  onLoaded={error => {
181
182
  if (!error) {
182
183
  console.log('Yay!');
@@ -0,0 +1,68 @@
1
+ /*!
2
+ * ReDoc - OpenAPI/Swagger-generated API Reference Documentation
3
+ * -------------------------------------------------------------
4
+ * Version: "2.0.0-rc.54"
5
+ * Repo: https://github.com/Redocly/redoc
6
+ */
7
+
8
+ /*!
9
+ * lunr.Builder
10
+ * Copyright (C) 2020 Oliver Nightingale
11
+ */
12
+
13
+ /*!
14
+ * lunr.Index
15
+ * Copyright (C) 2020 Oliver Nightingale
16
+ */
17
+
18
+ /*!
19
+ * lunr.Pipeline
20
+ * Copyright (C) 2020 Oliver Nightingale
21
+ */
22
+
23
+ /*!
24
+ * lunr.Set
25
+ * Copyright (C) 2020 Oliver Nightingale
26
+ */
27
+
28
+ /*!
29
+ * lunr.TokenSet
30
+ * Copyright (C) 2020 Oliver Nightingale
31
+ */
32
+
33
+ /*!
34
+ * lunr.Vector
35
+ * Copyright (C) 2020 Oliver Nightingale
36
+ */
37
+
38
+ /*!
39
+ * lunr.stemmer
40
+ * Copyright (C) 2020 Oliver Nightingale
41
+ * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt
42
+ */
43
+
44
+ /*!
45
+ * lunr.stopWordFilter
46
+ * Copyright (C) 2020 Oliver Nightingale
47
+ */
48
+
49
+ /*!
50
+ * lunr.tokenizer
51
+ * Copyright (C) 2020 Oliver Nightingale
52
+ */
53
+
54
+ /*!
55
+ * lunr.trimmer
56
+ * Copyright (C) 2020 Oliver Nightingale
57
+ */
58
+
59
+ /*!
60
+ * lunr.utils
61
+ * Copyright (C) 2020 Oliver Nightingale
62
+ */
63
+
64
+ /**
65
+ * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9
66
+ * Copyright (C) 2020 Oliver Nightingale
67
+ * @license MIT
68
+ */