rapidoc 9.3.4 → 9.3.5
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 +2 -7
- package/dist/index.html +1 -1
- package/dist/index.html.gz +0 -0
- package/dist/rapidoc-min.js +529 -525
- package/dist/rapidoc-min.js.LICENSE.txt +8 -4
- package/dist/rapidoc-min.js.LICENSE.txt.gz +0 -0
- package/dist/rapidoc-min.js.gz +0 -0
- package/dist/rapidoc-min.js.map +1 -1
- package/dist/rapidoc-min.js.map.gz +0 -0
- package/dist/rapidoc.js +1899 -8150
- package/dist/report.html +5 -5
- package/index.html +2 -1
- package/package.json +23 -22
- package/src/components/api-request.js +48 -10
- package/src/components/schema-table.js +11 -10
- package/src/components/schema-tree.js +7 -6
- package/src/json-schema-viewer.js +1 -0
- package/src/rapidoc.js +10 -5
- package/src/templates/advance-search-template.js +3 -3
- package/src/templates/endpoint-template.js +1 -1
- package/src/templates/expanded-endpoint-template.js +1 -1
- package/src/templates/focused-endpoint-template.js +1 -1
- package/src/templates/navbar-template.js +2 -2
- package/src/templates/security-scheme-template.js +5 -4
- package/src/utils/common-utils.js +1 -1
- package/src/utils/schema-utils.js +32 -5
- package/src/utils/spec-parser.js +8 -3
package/README.md
CHANGED
|
@@ -5,9 +5,6 @@
|
|
|
5
5
|
<img src="https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square"/>
|
|
6
6
|
<img src="https://img.shields.io/github/size/rapi-doc/rapidoc/dist/rapidoc-min.js.svg?colorB=blue&label=minified&style=flat-square">
|
|
7
7
|
<img src="https://img.shields.io/github/size/rapi-doc/rapidoc/dist/rapidoc-min.js.gz.svg?colorB=blue&label=zip&style=flat-square">
|
|
8
|
-
<a href="https://discord.gg/X9evUeFY" alt="Join us on Discord">
|
|
9
|
-
<img src="https://img.shields.io/discord/848913990360629268?style=flat-square" />
|
|
10
|
-
</a>
|
|
11
8
|
<a href="https://www.webcomponents.org/element/rapidoc" alt="published on webcomponents.org">
|
|
12
9
|
<img src="https://img.shields.io/badge/webcomponents.org-rapidoc-blue.svg?style=social"/>
|
|
13
10
|
</a>
|
|
@@ -16,9 +13,7 @@
|
|
|
16
13
|
# RapiDoc
|
|
17
14
|
Custom Element for Open-API spec viewing
|
|
18
15
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
Sponsored by [Zuplo](https://zuplo.link/rapidoc-2) - Get a Stripe-like API experience for your customers in minutes - documentation, rate-limiting and API-key auth in minutes.
|
|
16
|
+
> Sponsored by [Zuplo](https://zuplo.link/rapidoc-2) - Get a Stripe-like API experience for your customers in minutes - documentation, rate-limiting and API-key auth in minutes.
|
|
22
17
|
|
|
23
18
|
## Features
|
|
24
19
|
- Supports Swagger 2.0, OpenAPI 3.x.x
|
|
@@ -64,7 +59,7 @@ npm install
|
|
|
64
59
|
# use it in the script tag of your html <script type="text/javascript" src="rapidoc-min.js"></script></body>
|
|
65
60
|
npm run build
|
|
66
61
|
|
|
67
|
-
# for
|
|
62
|
+
# for development use yarn serve (this will start an webserver at port 8080, then navigate to localhost:8080)
|
|
68
63
|
npm run serve
|
|
69
64
|
```
|
|
70
65
|
|
package/dist/index.html
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
docEl.addEventListener('before-try', (e) => {
|
|
4
4
|
e.detail.request.headers.append('AAA-BBB', 'CCC DDDD');
|
|
5
5
|
});
|
|
6
|
-
});</script><body><rapi-doc spec-url="./specs/
|
|
6
|
+
});</script><body><rapi-doc spec-url="./specs/petstore.yaml" id="thedoc" theme="dark" render-style="view" schema-style="table" show-method-in-nav-bar="true" use-path-in-nav-bar="true" show-components="true" show-info="true" show-header="true" allow-search="false" allow-advanced-search="true" allow-spec-url-load="false" allow-spec-file-download="true" allow-server-selection="true" allow-authentication="true" update-route="false" match-type="regex" persist-auth="true" scroll-behavior="smooth"></rapi-doc></body></html>
|
package/dist/index.html.gz
CHANGED
|
Binary file
|