rapidoc 9.1.0 → 9.1.4

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 (67) hide show
  1. package/dist/index.html +1 -1
  2. package/dist/index.html.gz +0 -0
  3. package/dist/rapidoc-min.js +2 -5
  4. package/dist/rapidoc-min.js.LICENSE.txt +17 -1
  5. package/dist/rapidoc-min.js.LICENSE.txt.gz +0 -0
  6. package/dist/rapidoc-min.js.gz +0 -0
  7. package/dist/report.html +6 -5
  8. package/docker/Dockerfile +5 -5
  9. package/docs/api.html +48 -40
  10. package/docs/examples/auth-test1.html +113 -0
  11. package/docs/examples/auth.html +37 -34
  12. package/docs/examples/badges.html +1 -1
  13. package/docs/examples/dynamic-query-params.html +1 -0
  14. package/docs/examples/mongo.html +33 -0
  15. package/docs/examples/readwrite.html +40 -0
  16. package/docs/examples/slots.html +7 -0
  17. package/docs/examples.html +3 -2
  18. package/docs/index.html +2 -2
  19. package/docs/list.html +15 -3
  20. package/docs/quickstart.html +1 -1
  21. package/docs/rapidoc-min.js +2 -5
  22. package/docs/rapidoc-mini.html +20 -20
  23. package/docs/specs/auth-test1.yaml +35 -0
  24. package/docs/specs/auth.yaml +2 -2
  25. package/docs/specs/code-highlight.yaml +1 -1
  26. package/docs/specs/data-types.yaml +0 -1
  27. package/docs/specs/dynamic-query-params.yaml +41 -0
  28. package/docs/specs/examples.yaml +11 -0
  29. package/docs/specs/mongo.yaml +78 -0
  30. package/docs/specs/multipart-formdata.yaml +3 -0
  31. package/docs/specs/petstore_extended.yaml +1 -1
  32. package/docs/specs/readwrite.yaml +90 -0
  33. package/docs/specs/server.yaml +4 -4
  34. package/docs/specs/temp.json +24 -105
  35. package/docs/specs/temp.yaml +20 -282
  36. package/docs/welcome.html +3 -3
  37. package/index.html +11 -6
  38. package/package.json +22 -21
  39. package/src/components/api-request.js +105 -63
  40. package/src/components/api-response.js +10 -10
  41. package/src/components/json-tree.js +2 -1
  42. package/src/components/schema-table.js +51 -14
  43. package/src/components/schema-tree.js +59 -18
  44. package/src/components/tag-input.js +8 -1
  45. package/src/index.js +2 -1
  46. package/src/json-schema-viewer.js +341 -0
  47. package/src/rapidoc-mini.js +5 -1
  48. package/src/rapidoc.js +11 -7
  49. package/src/styles/font-styles.js +3 -2
  50. package/src/styles/nav-styles.js +2 -2
  51. package/src/templates/components-template.js +9 -10
  52. package/src/templates/endpoint-template.js +1 -1
  53. package/src/templates/expanded-endpoint-template.js +1 -1
  54. package/src/templates/focused-endpoint-template.js +1 -1
  55. package/src/templates/header-template.js +1 -1
  56. package/src/templates/json-schema-viewer-template.js +184 -0
  57. package/src/templates/main-body-template.js +4 -1
  58. package/src/templates/navbar-template.js +3 -3
  59. package/src/templates/overview-template.js +6 -3
  60. package/src/templates/security-scheme-template.js +78 -38
  61. package/src/templates/server-template.js +1 -1
  62. package/src/utils/common-utils.js +2 -1
  63. package/src/utils/schema-utils.js +24 -19
  64. package/src/utils/spec-parser.js +24 -3
  65. package/webpack.config.js +1 -12
  66. package/dist/rapidoc-min.js.map +0 -1
  67. package/dist/rapidoc-min.js.map.gz +0 -0
package/docs/list.html CHANGED
@@ -14,7 +14,7 @@
14
14
  <meta charset="utf-8">
15
15
  <meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
16
16
  <meta name="description" content="RapiDoc is Web Component for viewing Swagger & OpenAPI Spec. Supports themes, styling and various rendering styles">
17
- <meta name="keywords" content="RapiDoc, ReDoc, Swagger, SwaggerUI, Custom Element, async-api, Web Component, web-hooks, OpenAPI, REST, themes, dark mode, markdown, API documentation">
17
+ <meta name="keywords" content="RapiDoc, openapi viewer, openapi to html, openapi renderer, ReDoc, Swagger, SwaggerUI, Custom Element, Web Component, OpenAPI, REST, themes, dark mode, markdown, API documentation">
18
18
 
19
19
  <link rel="shortcut icon" type="image/png" href="./images/logo.png"/>
20
20
 
@@ -109,7 +109,7 @@
109
109
  <div style="display:flex; width:100%; flex-wrap:wrap; justify-content:center;">
110
110
 
111
111
  <div class = "container solid-dark" style="cursor: pointer;" onclick="window.location='./quickstart.html';">
112
- <h2 style="font-weight:700"> How To Use </h2>
112
+ <h2 style="font-weight:700"> How To Use </h2>
113
113
  <div class="row">
114
114
  <img style="width:32px" src="./images/html5-logo.png"/>
115
115
  <img style="width:32px" src="./images/react-logo.png"/>
@@ -255,6 +255,14 @@
255
255
  </div>
256
256
  </div>
257
257
 
258
+ <div class = "container solid-dark" style="cursor: pointer;" onclick="window.location='./rapidoc-mini.html';">
259
+ <h2 style="font-weight:700"> RapiDoc Mini </h2>
260
+ <div class = "c-description" style="color:#ccc">
261
+ RapiDoc Mini - Pluck APIs from OpenAPI Spec into your blog
262
+ </div>
263
+ </div>
264
+
265
+
258
266
  <div class = "container" >
259
267
  <a href="./examples/links.html">Links</a>
260
268
  <div class = "c-description">
@@ -501,7 +509,11 @@
501
509
  <tr><td class="mono-bold">
502
510
  <a href="./examples/data-types.html"> Data types </a>
503
511
  </td></tr>
504
-
512
+
513
+ <tr><td class="mono-bold">
514
+ <a href="./examples/readwrite.html"> Read and Write annotations </a>
515
+ </td></tr>
516
+
505
517
  <tr><td class="mono-bold">
506
518
  <a href="./examples/example-with-nested-refs.html"> Provide Examples with nested refs </a>
507
519
  </td></tr>
@@ -87,7 +87,7 @@
87
87
  &lt;!doctype html&gt; &lt;!-- Important: must specify --&gt;
88
88
  &lt;html&gt;
89
89
  &lt;head&gt;
90
- &lt;meta charset="utf-8"&gt; &lt;!-- Important: rapi-doc uses utf8 charecters --&gt;
90
+ &lt;meta charset="utf-8"&gt; &lt;!-- Important: rapi-doc uses utf8 characters --&gt;
91
91
  &lt;script type="module" src="https://unpkg.com/rapidoc/dist/rapidoc-min.js"&gt;&lt;/script&gt;
92
92
  &lt;/head&gt;
93
93
  &lt;body&gt;