rapidoc 9.1.8 → 9.2.0
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/LICENSE.txt +3 -1
- package/README.md +12 -1
- package/dist/index.html +1 -1
- package/dist/index.html.gz +0 -0
- package/dist/rapidoc-min.js +3670 -2
- package/dist/rapidoc-min.js.LICENSE.txt +11 -32
- 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 -0
- package/dist/rapidoc-min.js.map.gz +0 -0
- package/dist/rapidoc.js +4059 -3162
- package/dist/report.html +2 -2
- package/index.html +1 -1
- package/package.json +2 -3
- package/src/components/api-request.js +62 -51
- package/src/components/api-response.js +6 -4
- package/src/components/dialog-box.js +1 -1
- package/src/components/json-tree.js +2 -2
- package/src/components/schema-table.js +4 -4
- package/src/components/schema-tree.js +5 -5
- package/src/components/tag-input.js +1 -1
- package/src/json-schema-viewer.js +1 -1
- package/src/rapidoc-mini.js +2 -2
- package/src/rapidoc.js +2 -2
- package/src/styles/border-styles.js +1 -1
- package/src/styles/custom-styles.js +1 -1
- package/src/styles/dialog-box-styles.js +1 -1
- package/src/styles/endpoint-styles.js +1 -1
- package/src/styles/flex-styles.js +1 -1
- package/src/styles/font-styles.js +1 -1
- package/src/styles/info-styles.js +1 -1
- package/src/styles/input-styles.js +1 -1
- package/src/styles/nav-styles.js +1 -1
- package/src/styles/prism-styles.js +1 -1
- package/src/styles/schema-styles.js +1 -1
- package/src/styles/tab-styles.js +1 -1
- package/src/styles/table-styles.js +1 -1
- package/src/templates/advance-search-template.js +1 -1
- package/src/templates/callback-template.js +5 -3
- package/src/templates/code-samples-template.js +2 -2
- package/src/templates/components-template.js +2 -2
- package/src/templates/endpoint-template.js +7 -4
- package/src/templates/expanded-endpoint-template.js +6 -4
- package/src/templates/focused-endpoint-template.js +2 -2
- package/src/templates/header-template.js +1 -1
- package/src/templates/json-schema-viewer-template.js +2 -2
- package/src/templates/logo-template.js +1 -1
- package/src/templates/main-body-template.js +1 -1
- package/src/templates/navbar-template.js +1 -1
- package/src/templates/overview-template.js +2 -2
- package/src/templates/security-scheme-template.js +28 -28
- package/src/templates/server-template.js +2 -2
- package/src/utils/schema-utils.js +43 -8
- package/src/utils/theme.js +1 -1
package/dist/report.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8"/>
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
6
|
-
<title>rapidoc [
|
|
6
|
+
<title>rapidoc [24 Feb 2022 at 06:34]</title>
|
|
7
7
|
<link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABrVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+O1foceMD///+J0/qK1Pr7/v8Xdr/9///W8P4UdL7L7P0Scr2r4Pyj3vwad8D5/f/2/f+55f3E6f34+/2H0/ojfMKpzOd0rNgQcb3F3O/j9f7c8v6g3Pz0/P/w+v/q+P7n9v6T1/uQ1vuE0vqLut/y+v+Z2fvt+f+15Pzv9fuc2/vR7v2V2Pvd6/bg9P7I6/285/2y4/yp3/zp8vk8i8kqgMT7/P31+fyv4vxGkcz6/P6/6P3j7vfS5PNnpNUxhcbO7f7F6v3O4vHK3/DA2u631Ouy0eqXweKJud5wqthfoNMMbLvY8f73+v2dxeR8sNtTmdDx9/zX6PSjyeaCtd1YnNGX2PuQveCGt95Nls42h8dLlM3F4vBtAAAAM3RSTlMAAyOx0/sKBvik8opWGBMOAe3l1snDm2E9LSb06eHcu5JpHbarfHZCN9CBb08zzkdNS0kYaptYAAAFV0lEQVRYw92X51/aYBDHHS2O2qqttVbrqNq9m+TJIAYIShBkWwqIiCgoWvfeq7Z2/s29hyQNyUcR7LveGwVyXy6XH8/9rqxglLfUPLxVduUor3h0rfp2TYvpivk37929TkG037hffoX0+peVtZQc1589rigVUdXS/ABSAyEmGIO/1XfvldSK8vs3OqB6u3m0nxmIrvgB0dj7rr7Y9IbuF68hnfFaiHA/sxqm0wciIG43P60qKv9WXWc1RXGh/mFESFABTSBi0sNAKzqet17eCtOb3kZIDwxEEU0oAIJGYxNBDhBND29e0rtXXbcpuPmED9IhEAAQ/AXEaF8EPmnrrKsv0LvWR3fg5sWDNAFZOgAgaKvZDogHNU9MFwnnYROkc56RD5CjAbQX9Ow4g7upCsvYu55aSI/Nj0H1akgKQEUM94dwK65hYRmFU9MIcH/fqJYOZYcnuJSU/waKDgTOEVaVKhwrTRP5XzgSpAITYzom7UvkhFX5VutmxeNnWDjjswTKTyfgluNDGbUpWissXhF3s7mlSml+czWkg3D0l1nNjGNjz3myOQOa1KM/jOS6ebdbAVTCi4gljHSFrviza7tOgRWcS0MOUX9zdNgag5w7rRqA44Lzw0hr1WqES36dFliSJFlh2rXIae3FFcDDgKdxrUIDePr8jGcSClV1u7A9xeN0ModY/pHMxmR1EzRh8TJiwqsHmKW0l4FCEZI+jHio+JdPPE9qwQtTRxku2D8sIeRL2LnxWSllANCQGOIiqVHAz2ye2JR0DcH+HoxDkaADLjgxjKQ+AwCX/g0+DNgdG0ukYCONAe+dbc2IAc6fwt1ARoDSezNHxV2Cmzwv3O6lDMV55edBGwGK9n1+x2F8EDfAGCxug8MhpsMEcTEAWf3rx2vZhe/LAmtIn/6apE6PN0ULKgywD9mmdxbmFl3OvD5AS5fW5zLbv/YHmcsBTjf/afDz3MaZTVCfAP9z6/Bw6ycv8EUBWJIn9zYcoAWWlW9+OzO3vkTy8H+RANLmdrpOuYWdZYEXpo+TlCJrW5EARb7fF+bWdqf3hhyZI1nWJQHgznErZhbjoEsWqi8dQNoE294aldzFurwSABL2XXMf9+H1VQGke9exw5P/AnA5Pv5ngMul7LOvO922iwACu8WkCwLCafvM4CeWPxfA8lNHcWZSoi8EwMAIciKX2Z4SWCMAa3snCZ/G4EA8D6CMLNFsGQhkkz/gQNEBbPCbWsxGUpYVu3z8IyNAknwJkfPMEhLyrdi5RTyUVACkw4GSFRNWJNEW+fgPGwHD8/JxnRuLabN4CGNRkAE23na2+VmEAUmrYymSGjMAYqH84YUIyzgzs3XC7gNgH36Vcc4zKY9o9fgPBXUAiHHwVboBHGLiX6Zcjp1f2wu4tvzZKo0ecPnDtQYDQvJXaBeNzce45Fp28ZQLrEZVuFqgBwOalArKXnW1UzlnSusQKJqKYNuz4tOnI6sZG4zanpemv+7ySU2jbA9h6uhcgpfy6G2PahirDZ6zvq6zDduMVFTKvzw8wgyEdelwY9in3XkEPs3osJuwRQ4qTkfzifndg9Gfc4pdsu82+tTnHZTBa2EAMrqr2t43pguc8tNm7JQVQ2S0ukj2d22dhXYP0/veWtwKrCkNoNimAN5+Xr/oLrxswKbVJjteWrX7eR63o4j9q0GxnaBdWgGA5VStpanIjQmEhV0/nVt5VOFUvix6awJhPcAaTEShgrG+iGyvb5a0Ndb1YGHFPEwoqAinoaykaID1o1pdPNu7XsnCKQ3R+hwWIIhGvORcJUBYXe3Xa3vq/mF/N9V13ugufMkfXn+KHsRD0B8AAAAASUVORK5CYII=" type="image/x-icon" />
|
|
8
8
|
|
|
9
9
|
<script>
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<body>
|
|
32
32
|
<div id="app"></div>
|
|
33
33
|
<script>
|
|
34
|
-
window.chartData = [{"label":"rapidoc-min.js","isAsset":true,"statSize":1406002,"parsedSize":598458,"gzipSize":174451,"groups":[{"label":"node_modules","path":"./node_modules","statSize":160528,"groups":[{"label":"base64-js","path":"./node_modules/base64-js","statSize":3932,"groups":[{"id":742,"label":"index.js","path":"./node_modules/base64-js/index.js","statSize":3932,"parsedSize":1394,"gzipSize":747}],"parsedSize":1394,"gzipSize":747},{"label":"buffer","path":"./node_modules/buffer","statSize":58353,"groups":[{"id":764,"label":"index.js","path":"./node_modules/buffer/index.js","statSize":58353,"parsedSize":25062,"gzipSize":7077}],"parsedSize":25062,"gzipSize":7077},{"label":"ieee754","path":"./node_modules/ieee754","statSize":2154,"groups":[{"id":645,"label":"index.js","path":"./node_modules/ieee754/index.js","statSize":2154,"parsedSize":875,"gzipSize":496}],"parsedSize":875,"gzipSize":496},{"label":"prismjs","path":"./node_modules/prismjs","statSize":96089,"groups":[{"label":"components","path":"./node_modules/prismjs/components","statSize":38677,"groups":[{"id":874,"label":"prism-bash.js","path":"./node_modules/prismjs/components/prism-bash.js","statSize":8909,"parsedSize":5972,"gzipSize":2895},{"id":16,"label":"prism-csharp.js","path":"./node_modules/prismjs/components/prism-csharp.js","statSize":13567,"parsedSize":6354,"gzipSize":2441},{"id":251,"label":"prism-css.js","path":"./node_modules/prismjs/components/prism-css.js","statSize":1686,"parsedSize":1220,"gzipSize":604},{"id":46,"label":"prism-go.js","path":"./node_modules/prismjs/components/prism-go.js","statSize":1159,"parsedSize":975,"gzipSize":610},{"id":57,"label":"prism-http.js","path":"./node_modules/prismjs/components/prism-http.js","statSize":4087,"parsedSize":1933,"gzipSize":875},{"id":503,"label":"prism-java.js","path":"./node_modules/prismjs/components/prism-java.js","statSize":2985,"parsedSize":2128,"gzipSize":1033},{"id":277,"label":"prism-json.js","path":"./node_modules/prismjs/components/prism-json.js","statSize":592,"parsedSize":454,"gzipSize":273},{"id":366,"label":"prism-python.js","path":"./node_modules/prismjs/components/prism-python.js","statSize":2508,"parsedSize":2118,"gzipSize":1081},{"id":358,"label":"prism-yaml.js","path":"./node_modules/prismjs/components/prism-yaml.js","statSize":3184,"parsedSize":1958,"gzipSize":854}],"parsedSize":23112,"gzipSize":8852},{"id":660,"label":"prism.js","path":"./node_modules/prismjs/prism.js","statSize":57412,"parsedSize":18564,"gzipSize":6886}],"parsedSize":41676,"gzipSize":14792}],"parsedSize":69007,"gzipSize":22741},{"label":"src","path":"./src","statSize":1245474,"groups":[{"id":310,"label":"index.js + 64 modules (concatenated)","path":"./src/index.js + 64 modules (concatenated)","statSize":1245474,"parsedSize":518736,"gzipSize":148244,"concatenated":true,"groups":[{"label":"src","path":"./src/index.js + 64 modules (concatenated)/src","statSize":349927,"groups":[{"id":null,"label":"index.js","path":"./src/index.js + 64 modules (concatenated)/src/index.js","statSize":260,"parsedSize":108,"gzipSize":30,"inaccurateSizes":true},{"id":null,"label":"rapidoc.js","path":"./src/index.js + 64 modules (concatenated)/src/rapidoc.js","statSize":36517,"parsedSize":15209,"gzipSize":4346,"inaccurateSizes":true},{"id":null,"label":"rapidoc-mini.js","path":"./src/index.js + 64 modules (concatenated)/src/rapidoc-mini.js","statSize":13696,"parsedSize":5704,"gzipSize":1630,"inaccurateSizes":true},{"id":null,"label":"oauth-receiver.js","path":"./src/index.js + 64 modules (concatenated)/src/oauth-receiver.js","statSize":1995,"parsedSize":830,"gzipSize":237,"inaccurateSizes":true},{"id":null,"label":"json-schema-viewer.js","path":"./src/index.js + 64 modules (concatenated)/src/json-schema-viewer.js","statSize":11316,"parsedSize":4713,"gzipSize":1346,"inaccurateSizes":true},{"label":"styles","path":"./src/index.js + 64 modules (concatenated)/src/styles","statSize":23214,"groups":[{"id":null,"label":"font-styles.js","path":"./src/index.js + 64 modules (concatenated)/src/styles/font-styles.js","statSize":5054,"parsedSize":2104,"gzipSize":601,"inaccurateSizes":true},{"id":null,"label":"input-styles.js","path":"./src/index.js + 64 modules (concatenated)/src/styles/input-styles.js","statSize":4328,"parsedSize":1802,"gzipSize":515,"inaccurateSizes":true},{"id":null,"label":"flex-styles.js","path":"./src/index.js + 64 modules (concatenated)/src/styles/flex-styles.js","statSize":169,"parsedSize":70,"gzipSize":20,"inaccurateSizes":true},{"id":null,"label":"table-styles.js","path":"./src/index.js + 64 modules (concatenated)/src/styles/table-styles.js","statSize":1035,"parsedSize":431,"gzipSize":123,"inaccurateSizes":true},{"id":null,"label":"endpoint-styles.js","path":"./src/index.js + 64 modules (concatenated)/src/styles/endpoint-styles.js","statSize":4128,"parsedSize":1719,"gzipSize":491,"inaccurateSizes":true},{"id":null,"label":"prism-styles.js","path":"./src/index.js + 64 modules (concatenated)/src/styles/prism-styles.js","statSize":1215,"parsedSize":506,"gzipSize":144,"inaccurateSizes":true},{"id":null,"label":"tab-styles.js","path":"./src/index.js + 64 modules (concatenated)/src/styles/tab-styles.js","statSize":751,"parsedSize":312,"gzipSize":89,"inaccurateSizes":true},{"id":null,"label":"nav-styles.js","path":"./src/index.js + 64 modules (concatenated)/src/styles/nav-styles.js","statSize":2782,"parsedSize":1158,"gzipSize":331,"inaccurateSizes":true},{"id":null,"label":"info-styles.js","path":"./src/index.js + 64 modules (concatenated)/src/styles/info-styles.js","statSize":295,"parsedSize":122,"gzipSize":35,"inaccurateSizes":true},{"id":null,"label":"custom-styles.js","path":"./src/index.js + 64 modules (concatenated)/src/styles/custom-styles.js","statSize":207,"parsedSize":86,"gzipSize":24,"inaccurateSizes":true},{"id":null,"label":"border-styles.js","path":"./src/index.js + 64 modules (concatenated)/src/styles/border-styles.js","statSize":361,"parsedSize":150,"gzipSize":42,"inaccurateSizes":true},{"id":null,"label":"schema-styles.js","path":"./src/index.js + 64 modules (concatenated)/src/styles/schema-styles.js","statSize":1711,"parsedSize":712,"gzipSize":203,"inaccurateSizes":true},{"id":null,"label":"dialog-box-styles.js","path":"./src/index.js + 64 modules (concatenated)/src/styles/dialog-box-styles.js","statSize":1178,"parsedSize":490,"gzipSize":140,"inaccurateSizes":true}],"parsedSize":9668,"gzipSize":2763,"inaccurateSizes":true},{"label":"utils","path":"./src/index.js + 64 modules (concatenated)/src/utils","statSize":71279,"groups":[{"id":null,"label":"spec-parser.js","path":"./src/index.js + 64 modules (concatenated)/src/utils/spec-parser.js","statSize":17915,"parsedSize":7461,"gzipSize":2132,"inaccurateSizes":true},{"id":null,"label":"common-utils.js","path":"./src/index.js + 64 modules (concatenated)/src/utils/common-utils.js","statSize":6449,"parsedSize":2685,"gzipSize":767,"inaccurateSizes":true},{"id":null,"label":"schema-utils.js","path":"./src/index.js + 64 modules (concatenated)/src/utils/schema-utils.js","statSize":33827,"parsedSize":14088,"gzipSize":4026,"inaccurateSizes":true},{"id":null,"label":"theme.js","path":"./src/index.js + 64 modules (concatenated)/src/utils/theme.js","statSize":11225,"parsedSize":4675,"gzipSize":1336,"inaccurateSizes":true},{"id":null,"label":"color-utils.js","path":"./src/index.js + 64 modules (concatenated)/src/utils/color-utils.js","statSize":1863,"parsedSize":775,"gzipSize":221,"inaccurateSizes":true}],"parsedSize":29687,"gzipSize":8484,"inaccurateSizes":true},{"label":"templates","path":"./src/index.js + 64 modules (concatenated)/src/templates","statSize":85016,"groups":[{"id":null,"label":"main-body-template.js","path":"./src/index.js + 64 modules (concatenated)/src/templates/main-body-template.js","statSize":4543,"parsedSize":1892,"gzipSize":540,"inaccurateSizes":true},{"id":null,"label":"security-scheme-template.js","path":"./src/index.js + 64 modules (concatenated)/src/templates/security-scheme-template.js","statSize":24768,"parsedSize":10315,"gzipSize":2948,"inaccurateSizes":true},{"id":null,"label":"server-template.js","path":"./src/index.js + 64 modules (concatenated)/src/templates/server-template.js","statSize":3871,"parsedSize":1612,"gzipSize":460,"inaccurateSizes":true},{"id":null,"label":"json-schema-viewer-template.js","path":"./src/index.js + 64 modules (concatenated)/src/templates/json-schema-viewer-template.js","statSize":7078,"parsedSize":2947,"gzipSize":842,"inaccurateSizes":true},{"id":null,"label":"expanded-endpoint-template.js","path":"./src/index.js + 64 modules (concatenated)/src/templates/expanded-endpoint-template.js","statSize":6558,"parsedSize":2731,"gzipSize":780,"inaccurateSizes":true},{"id":null,"label":"focused-endpoint-template.js","path":"./src/index.js + 64 modules (concatenated)/src/templates/focused-endpoint-template.js","statSize":4455,"parsedSize":1855,"gzipSize":530,"inaccurateSizes":true},{"id":null,"label":"overview-template.js","path":"./src/index.js + 64 modules (concatenated)/src/templates/overview-template.js","statSize":3384,"parsedSize":1409,"gzipSize":402,"inaccurateSizes":true},{"id":null,"label":"navbar-template.js","path":"./src/index.js + 64 modules (concatenated)/src/templates/navbar-template.js","statSize":8066,"parsedSize":3359,"gzipSize":960,"inaccurateSizes":true},{"id":null,"label":"endpoint-template.js","path":"./src/index.js + 64 modules (concatenated)/src/templates/endpoint-template.js","statSize":8871,"parsedSize":3694,"gzipSize":1055,"inaccurateSizes":true},{"id":null,"label":"header-template.js","path":"./src/index.js + 64 modules (concatenated)/src/templates/header-template.js","statSize":2100,"parsedSize":874,"gzipSize":249,"inaccurateSizes":true},{"id":null,"label":"advance-search-template.js","path":"./src/index.js + 64 modules (concatenated)/src/templates/advance-search-template.js","statSize":2932,"parsedSize":1221,"gzipSize":348,"inaccurateSizes":true},{"id":null,"label":"code-samples-template.js","path":"./src/index.js + 64 modules (concatenated)/src/templates/code-samples-template.js","statSize":1924,"parsedSize":801,"gzipSize":229,"inaccurateSizes":true},{"id":null,"label":"callback-template.js","path":"./src/index.js + 64 modules (concatenated)/src/templates/callback-template.js","statSize":2546,"parsedSize":1060,"gzipSize":303,"inaccurateSizes":true},{"id":null,"label":"components-template.js","path":"./src/index.js + 64 modules (concatenated)/src/templates/components-template.js","statSize":3009,"parsedSize":1253,"gzipSize":358,"inaccurateSizes":true},{"id":null,"label":"logo-template.js","path":"./src/index.js + 64 modules (concatenated)/src/templates/logo-template.js","statSize":911,"parsedSize":379,"gzipSize":108,"inaccurateSizes":true}],"parsedSize":35408,"gzipSize":10119,"inaccurateSizes":true},{"label":"components","path":"./src/index.js + 64 modules (concatenated)/src/components","statSize":106634,"groups":[{"id":null,"label":"json-tree.js","path":"./src/index.js + 64 modules (concatenated)/src/components/json-tree.js","statSize":3505,"parsedSize":1459,"gzipSize":417,"inaccurateSizes":true},{"id":null,"label":"schema-tree.js","path":"./src/index.js + 64 modules (concatenated)/src/components/schema-tree.js","statSize":13683,"parsedSize":5698,"gzipSize":1628,"inaccurateSizes":true},{"id":null,"label":"api-request.js","path":"./src/index.js + 64 modules (concatenated)/src/components/api-request.js","statSize":58636,"parsedSize":24421,"gzipSize":6979,"inaccurateSizes":true},{"id":null,"label":"api-response.js","path":"./src/index.js + 64 modules (concatenated)/src/components/api-response.js","statSize":13296,"parsedSize":5537,"gzipSize":1582,"inaccurateSizes":true},{"id":null,"label":"dialog-box.js","path":"./src/index.js + 64 modules (concatenated)/src/components/dialog-box.js","statSize":1681,"parsedSize":700,"gzipSize":200,"inaccurateSizes":true},{"id":null,"label":"tag-input.js","path":"./src/index.js + 64 modules (concatenated)/src/components/tag-input.js","statSize":3115,"parsedSize":1297,"gzipSize":370,"inaccurateSizes":true},{"id":null,"label":"schema-table.js","path":"./src/index.js + 64 modules (concatenated)/src/components/schema-table.js","statSize":12718,"parsedSize":5297,"gzipSize":1513,"inaccurateSizes":true}],"parsedSize":44412,"gzipSize":12692,"inaccurateSizes":true}],"parsedSize":145743,"gzipSize":41650,"inaccurateSizes":true},{"label":"node_modules","path":"./src/index.js + 64 modules (concatenated)/node_modules","statSize":895547,"groups":[{"label":"lit-element","path":"./src/index.js + 64 modules (concatenated)/node_modules/lit-element","statSize":57366,"groups":[{"id":null,"label":"lit-element.js","path":"./src/index.js + 64 modules (concatenated)/node_modules/lit-element/lit-element.js","statSize":11883,"parsedSize":4949,"gzipSize":1414,"inaccurateSizes":true},{"label":"lib","path":"./src/index.js + 64 modules (concatenated)/node_modules/lit-element/lib","statSize":45483,"groups":[{"id":null,"label":"updating-element.js","path":"./src/index.js + 64 modules (concatenated)/node_modules/lit-element/lib/updating-element.js","statSize":28417,"parsedSize":11835,"gzipSize":3382,"inaccurateSizes":true},{"id":null,"label":"decorators.js","path":"./src/index.js + 64 modules (concatenated)/node_modules/lit-element/lib/decorators.js","statSize":13959,"parsedSize":5813,"gzipSize":1661,"inaccurateSizes":true},{"id":null,"label":"css-tag.js","path":"./src/index.js + 64 modules (concatenated)/node_modules/lit-element/lib/css-tag.js","statSize":3107,"parsedSize":1294,"gzipSize":369,"inaccurateSizes":true}],"parsedSize":18943,"gzipSize":5413,"inaccurateSizes":true}],"parsedSize":23892,"gzipSize":6828,"inaccurateSizes":true},{"label":"marked/lib","path":"./src/index.js + 64 modules (concatenated)/node_modules/marked/lib","statSize":74875,"groups":[{"id":null,"label":"marked.esm.js","path":"./src/index.js + 64 modules (concatenated)/node_modules/marked/lib/marked.esm.js","statSize":74875,"parsedSize":31185,"gzipSize":8912,"inaccurateSizes":true}],"parsedSize":31185,"gzipSize":8912,"inaccurateSizes":true},{"label":"lit-html","path":"./src/index.js + 64 modules (concatenated)/node_modules/lit-html","statSize":60100,"groups":[{"id":null,"label":"lit-html.js","path":"./src/index.js + 64 modules (concatenated)/node_modules/lit-html/lit-html.js","statSize":2624,"parsedSize":1092,"gzipSize":312,"inaccurateSizes":true},{"label":"directives","path":"./src/index.js + 64 modules (concatenated)/node_modules/lit-html/directives","statSize":7322,"groups":[{"id":null,"label":"unsafe-html.js","path":"./src/index.js + 64 modules (concatenated)/node_modules/lit-html/directives/unsafe-html.js","statSize":1962,"parsedSize":817,"gzipSize":233,"inaccurateSizes":true},{"id":null,"label":"guard.js","path":"./src/index.js + 64 modules (concatenated)/node_modules/lit-html/directives/guard.js","statSize":2173,"parsedSize":905,"gzipSize":258,"inaccurateSizes":true},{"id":null,"label":"live.js","path":"./src/index.js + 64 modules (concatenated)/node_modules/lit-html/directives/live.js","statSize":3187,"parsedSize":1327,"gzipSize":379,"inaccurateSizes":true}],"parsedSize":3049,"gzipSize":871,"inaccurateSizes":true},{"label":"lib","path":"./src/index.js + 64 modules (concatenated)/node_modules/lit-html/lib","statSize":50154,"groups":[{"id":null,"label":"default-template-processor.js","path":"./src/index.js + 64 modules (concatenated)/node_modules/lit-html/lib/default-template-processor.js","statSize":2059,"parsedSize":857,"gzipSize":245,"inaccurateSizes":true},{"id":null,"label":"parts.js","path":"./src/index.js + 64 modules (concatenated)/node_modules/lit-html/lib/parts.js","statSize":17302,"parsedSize":7206,"gzipSize":2059,"inaccurateSizes":true},{"id":null,"label":"directive.js","path":"./src/index.js + 64 modules (concatenated)/node_modules/lit-html/lib/directive.js","statSize":2396,"parsedSize":997,"gzipSize":285,"inaccurateSizes":true},{"id":null,"label":"dom.js","path":"./src/index.js + 64 modules (concatenated)/node_modules/lit-html/lib/dom.js","statSize":1546,"parsedSize":643,"gzipSize":184,"inaccurateSizes":true},{"id":null,"label":"part.js","path":"./src/index.js + 64 modules (concatenated)/node_modules/lit-html/lib/part.js","statSize":834,"parsedSize":347,"gzipSize":99,"inaccurateSizes":true},{"id":null,"label":"template-instance.js","path":"./src/index.js + 64 modules (concatenated)/node_modules/lit-html/lib/template-instance.js","statSize":6006,"parsedSize":2501,"gzipSize":714,"inaccurateSizes":true},{"id":null,"label":"template.js","path":"./src/index.js + 64 modules (concatenated)/node_modules/lit-html/lib/template.js","statSize":10304,"parsedSize":4291,"gzipSize":1226,"inaccurateSizes":true},{"id":null,"label":"template-result.js","path":"./src/index.js + 64 modules (concatenated)/node_modules/lit-html/lib/template-result.js","statSize":5901,"parsedSize":2457,"gzipSize":702,"inaccurateSizes":true},{"id":null,"label":"render.js","path":"./src/index.js + 64 modules (concatenated)/node_modules/lit-html/lib/render.js","statSize":1859,"parsedSize":774,"gzipSize":221,"inaccurateSizes":true},{"id":null,"label":"template-factory.js","path":"./src/index.js + 64 modules (concatenated)/node_modules/lit-html/lib/template-factory.js","statSize":1947,"parsedSize":810,"gzipSize":231,"inaccurateSizes":true}],"parsedSize":20888,"gzipSize":5969,"inaccurateSizes":true}],"parsedSize":25031,"gzipSize":7153,"inaccurateSizes":true},{"label":"@apitools/openapi-parser/dist","path":"./src/index.js + 64 modules (concatenated)/node_modules/@apitools/openapi-parser/dist","statSize":703206,"groups":[{"id":null,"label":"openapi-parser.es.js","path":"./src/index.js + 64 modules (concatenated)/node_modules/@apitools/openapi-parser/dist/openapi-parser.es.js","statSize":703206,"parsedSize":292883,"gzipSize":83699,"inaccurateSizes":true}],"parsedSize":292883,"gzipSize":83699,"inaccurateSizes":true}],"parsedSize":372992,"gzipSize":106593,"inaccurateSizes":true}]}],"parsedSize":518736,"gzipSize":148244}]}];
|
|
34
|
+
window.chartData = [{"label":"rapidoc-min.js","isAsset":true,"statSize":1347335,"parsedSize":633087,"gzipSize":181266,"groups":[{"label":"node_modules","path":"./node_modules","statSize":160528,"groups":[{"label":"base64-js","path":"./node_modules/base64-js","statSize":3932,"groups":[{"id":742,"label":"index.js","path":"./node_modules/base64-js/index.js","statSize":3932,"parsedSize":1394,"gzipSize":747}],"parsedSize":1394,"gzipSize":747},{"label":"buffer","path":"./node_modules/buffer","statSize":58353,"groups":[{"id":764,"label":"index.js","path":"./node_modules/buffer/index.js","statSize":58353,"parsedSize":25062,"gzipSize":7077}],"parsedSize":25062,"gzipSize":7077},{"label":"ieee754","path":"./node_modules/ieee754","statSize":2154,"groups":[{"id":645,"label":"index.js","path":"./node_modules/ieee754/index.js","statSize":2154,"parsedSize":875,"gzipSize":496}],"parsedSize":875,"gzipSize":496},{"label":"prismjs","path":"./node_modules/prismjs","statSize":96089,"groups":[{"label":"components","path":"./node_modules/prismjs/components","statSize":38677,"groups":[{"id":874,"label":"prism-bash.js","path":"./node_modules/prismjs/components/prism-bash.js","statSize":8909,"parsedSize":5972,"gzipSize":2895},{"id":16,"label":"prism-csharp.js","path":"./node_modules/prismjs/components/prism-csharp.js","statSize":13567,"parsedSize":6354,"gzipSize":2440},{"id":251,"label":"prism-css.js","path":"./node_modules/prismjs/components/prism-css.js","statSize":1686,"parsedSize":1220,"gzipSize":604},{"id":46,"label":"prism-go.js","path":"./node_modules/prismjs/components/prism-go.js","statSize":1159,"parsedSize":975,"gzipSize":610},{"id":57,"label":"prism-http.js","path":"./node_modules/prismjs/components/prism-http.js","statSize":4087,"parsedSize":1933,"gzipSize":875},{"id":503,"label":"prism-java.js","path":"./node_modules/prismjs/components/prism-java.js","statSize":2985,"parsedSize":2128,"gzipSize":1033},{"id":277,"label":"prism-json.js","path":"./node_modules/prismjs/components/prism-json.js","statSize":592,"parsedSize":454,"gzipSize":273},{"id":366,"label":"prism-python.js","path":"./node_modules/prismjs/components/prism-python.js","statSize":2508,"parsedSize":2118,"gzipSize":1081},{"id":358,"label":"prism-yaml.js","path":"./node_modules/prismjs/components/prism-yaml.js","statSize":3184,"parsedSize":1958,"gzipSize":854}],"parsedSize":23112,"gzipSize":8854},{"id":660,"label":"prism.js","path":"./node_modules/prismjs/prism.js","statSize":57412,"parsedSize":18564,"gzipSize":6886}],"parsedSize":41676,"gzipSize":14794}],"parsedSize":69007,"gzipSize":22743},{"label":"src","path":"./src","statSize":1186807,"groups":[{"id":448,"label":"index.js + 59 modules (concatenated)","path":"./src/index.js + 59 modules (concatenated)","statSize":1186807,"parsedSize":553323,"gzipSize":154981,"concatenated":true,"groups":[{"label":"src","path":"./src/index.js + 59 modules (concatenated)/src","statSize":387028,"groups":[{"id":null,"label":"index.js","path":"./src/index.js + 59 modules (concatenated)/src/index.js","statSize":260,"parsedSize":121,"gzipSize":33,"inaccurateSizes":true},{"id":null,"label":"rapidoc.js","path":"./src/index.js + 59 modules (concatenated)/src/rapidoc.js","statSize":38448,"parsedSize":17925,"gzipSize":5020,"inaccurateSizes":true},{"id":null,"label":"rapidoc-mini.js","path":"./src/index.js + 59 modules (concatenated)/src/rapidoc-mini.js","statSize":13892,"parsedSize":6476,"gzipSize":1814,"inaccurateSizes":true},{"id":null,"label":"oauth-receiver.js","path":"./src/index.js + 59 modules (concatenated)/src/oauth-receiver.js","statSize":1995,"parsedSize":930,"gzipSize":260,"inaccurateSizes":true},{"id":null,"label":"json-schema-viewer.js","path":"./src/index.js + 59 modules (concatenated)/src/json-schema-viewer.js","statSize":12084,"parsedSize":5633,"gzipSize":1578,"inaccurateSizes":true},{"label":"styles","path":"./src/index.js + 59 modules (concatenated)/src/styles","statSize":27611,"groups":[{"id":null,"label":"font-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/font-styles.js","statSize":6320,"parsedSize":2946,"gzipSize":825,"inaccurateSizes":true},{"id":null,"label":"input-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/input-styles.js","statSize":5122,"parsedSize":2388,"gzipSize":668,"inaccurateSizes":true},{"id":null,"label":"flex-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/flex-styles.js","statSize":192,"parsedSize":89,"gzipSize":25,"inaccurateSizes":true},{"id":null,"label":"table-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/table-styles.js","statSize":1201,"parsedSize":559,"gzipSize":156,"inaccurateSizes":true},{"id":null,"label":"endpoint-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/endpoint-styles.js","statSize":4738,"parsedSize":2208,"gzipSize":618,"inaccurateSizes":true},{"id":null,"label":"prism-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/prism-styles.js","statSize":1469,"parsedSize":684,"gzipSize":191,"inaccurateSizes":true},{"id":null,"label":"tab-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/tab-styles.js","statSize":873,"parsedSize":407,"gzipSize":114,"inaccurateSizes":true},{"id":null,"label":"nav-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/nav-styles.js","statSize":3164,"parsedSize":1475,"gzipSize":413,"inaccurateSizes":true},{"id":null,"label":"info-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/info-styles.js","statSize":337,"parsedSize":157,"gzipSize":44,"inaccurateSizes":true},{"id":null,"label":"custom-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/custom-styles.js","statSize":201,"parsedSize":93,"gzipSize":26,"inaccurateSizes":true},{"id":null,"label":"border-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/border-styles.js","statSize":402,"parsedSize":187,"gzipSize":52,"inaccurateSizes":true},{"id":null,"label":"schema-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/schema-styles.js","statSize":2034,"parsedSize":948,"gzipSize":265,"inaccurateSizes":true},{"id":null,"label":"dialog-box-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/dialog-box-styles.js","statSize":1558,"parsedSize":726,"gzipSize":203,"inaccurateSizes":true}],"parsedSize":12873,"gzipSize":3605,"inaccurateSizes":true},{"label":"utils","path":"./src/index.js + 59 modules (concatenated)/src/utils","statSize":73283,"groups":[{"id":null,"label":"spec-parser.js","path":"./src/index.js + 59 modules (concatenated)/src/utils/spec-parser.js","statSize":17915,"parsedSize":8352,"gzipSize":2339,"inaccurateSizes":true},{"id":null,"label":"common-utils.js","path":"./src/index.js + 59 modules (concatenated)/src/utils/common-utils.js","statSize":6449,"parsedSize":3006,"gzipSize":842,"inaccurateSizes":true},{"id":null,"label":"schema-utils.js","path":"./src/index.js + 59 modules (concatenated)/src/utils/schema-utils.js","statSize":35273,"parsedSize":16445,"gzipSize":4606,"inaccurateSizes":true},{"id":null,"label":"theme.js","path":"./src/index.js + 59 modules (concatenated)/src/utils/theme.js","statSize":11783,"parsedSize":5493,"gzipSize":1538,"inaccurateSizes":true},{"id":null,"label":"color-utils.js","path":"./src/index.js + 59 modules (concatenated)/src/utils/color-utils.js","statSize":1863,"parsedSize":868,"gzipSize":243,"inaccurateSizes":true}],"parsedSize":34166,"gzipSize":9569,"inaccurateSizes":true},{"label":"templates","path":"./src/index.js + 59 modules (concatenated)/src/templates","statSize":98601,"groups":[{"id":null,"label":"main-body-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/main-body-template.js","statSize":5179,"parsedSize":2414,"gzipSize":676,"inaccurateSizes":true},{"id":null,"label":"security-scheme-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/security-scheme-template.js","statSize":27719,"parsedSize":12923,"gzipSize":3619,"inaccurateSizes":true},{"id":null,"label":"server-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/server-template.js","statSize":4581,"parsedSize":2135,"gzipSize":598,"inaccurateSizes":true},{"id":null,"label":"json-schema-viewer-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/json-schema-viewer-template.js","statSize":8290,"parsedSize":3865,"gzipSize":1082,"inaccurateSizes":true},{"id":null,"label":"expanded-endpoint-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/expanded-endpoint-template.js","statSize":7605,"parsedSize":3545,"gzipSize":993,"inaccurateSizes":true},{"id":null,"label":"focused-endpoint-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/focused-endpoint-template.js","statSize":4551,"parsedSize":2121,"gzipSize":594,"inaccurateSizes":true},{"id":null,"label":"overview-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/overview-template.js","statSize":3780,"parsedSize":1762,"gzipSize":493,"inaccurateSizes":true},{"id":null,"label":"navbar-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/navbar-template.js","statSize":9937,"parsedSize":4632,"gzipSize":1297,"inaccurateSizes":true},{"id":null,"label":"endpoint-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/endpoint-template.js","statSize":10534,"parsedSize":4911,"gzipSize":1375,"inaccurateSizes":true},{"id":null,"label":"header-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/header-template.js","statSize":2612,"parsedSize":1217,"gzipSize":341,"inaccurateSizes":true},{"id":null,"label":"advance-search-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/advance-search-template.js","statSize":3405,"parsedSize":1587,"gzipSize":444,"inaccurateSizes":true},{"id":null,"label":"code-samples-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/code-samples-template.js","statSize":2032,"parsedSize":947,"gzipSize":265,"inaccurateSizes":true},{"id":null,"label":"callback-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/callback-template.js","statSize":4092,"parsedSize":1907,"gzipSize":534,"inaccurateSizes":true},{"id":null,"label":"components-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/components-template.js","statSize":3331,"parsedSize":1553,"gzipSize":434,"inaccurateSizes":true},{"id":null,"label":"logo-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/logo-template.js","statSize":953,"parsedSize":444,"gzipSize":124,"inaccurateSizes":true}],"parsedSize":45970,"gzipSize":12875,"inaccurateSizes":true},{"label":"components","path":"./src/index.js + 59 modules (concatenated)/src/components","statSize":120854,"groups":[{"id":null,"label":"json-tree.js","path":"./src/index.js + 59 modules (concatenated)/src/components/json-tree.js","statSize":4075,"parsedSize":1899,"gzipSize":532,"inaccurateSizes":true},{"id":null,"label":"schema-tree.js","path":"./src/index.js + 59 modules (concatenated)/src/components/schema-tree.js","statSize":14790,"parsedSize":6895,"gzipSize":1931,"inaccurateSizes":true},{"id":null,"label":"api-request.js","path":"./src/index.js + 59 modules (concatenated)/src/components/api-request.js","statSize":67079,"parsedSize":31274,"gzipSize":8759,"inaccurateSizes":true},{"id":null,"label":"api-response.js","path":"./src/index.js + 59 modules (concatenated)/src/components/api-response.js","statSize":15329,"parsedSize":7146,"gzipSize":2001,"inaccurateSizes":true},{"id":null,"label":"dialog-box.js","path":"./src/index.js + 59 modules (concatenated)/src/components/dialog-box.js","statSize":1803,"parsedSize":840,"gzipSize":235,"inaccurateSizes":true},{"id":null,"label":"tag-input.js","path":"./src/index.js + 59 modules (concatenated)/src/components/tag-input.js","statSize":3524,"parsedSize":1642,"gzipSize":460,"inaccurateSizes":true},{"id":null,"label":"schema-table.js","path":"./src/index.js + 59 modules (concatenated)/src/components/schema-table.js","statSize":14254,"parsedSize":6645,"gzipSize":1861,"inaccurateSizes":true}],"parsedSize":56345,"gzipSize":15781,"inaccurateSizes":true}],"parsedSize":180443,"gzipSize":50540,"inaccurateSizes":true},{"label":"node_modules","path":"./src/index.js + 59 modules (concatenated)/node_modules","statSize":799779,"groups":[{"label":"lit","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit","statSize":363,"groups":[{"id":null,"label":"index.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit/index.js","statSize":122,"parsedSize":56,"gzipSize":15,"inaccurateSizes":true},{"label":"directives","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit/directives","statSize":241,"groups":[{"id":null,"label":"unsafe-html.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit/directives/unsafe-html.js","statSize":89,"parsedSize":41,"gzipSize":11,"inaccurateSizes":true},{"id":null,"label":"guard.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit/directives/guard.js","statSize":77,"parsedSize":35,"gzipSize":10,"inaccurateSizes":true},{"id":null,"label":"live.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit/directives/live.js","statSize":75,"parsedSize":34,"gzipSize":9,"inaccurateSizes":true}],"parsedSize":112,"gzipSize":31,"inaccurateSizes":true}],"parsedSize":169,"gzipSize":47,"inaccurateSizes":true},{"label":"marked/lib","path":"./src/index.js + 59 modules (concatenated)/node_modules/marked/lib","statSize":74875,"groups":[{"id":null,"label":"marked.esm.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/marked/lib/marked.esm.js","statSize":74875,"parsedSize":34908,"gzipSize":9777,"inaccurateSizes":true}],"parsedSize":34908,"gzipSize":9777,"inaccurateSizes":true},{"label":"@lit/reactive-element","path":"./src/index.js + 59 modules (concatenated)/node_modules/@lit/reactive-element","statSize":7529,"groups":[{"id":null,"label":"reactive-element.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/@lit/reactive-element/reactive-element.js","statSize":6033,"parsedSize":2812,"gzipSize":787,"inaccurateSizes":true},{"id":null,"label":"css-tag.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/@lit/reactive-element/css-tag.js","statSize":1496,"parsedSize":697,"gzipSize":195,"inaccurateSizes":true}],"parsedSize":3510,"gzipSize":983,"inaccurateSizes":true},{"label":"lit-html","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit-html","statSize":12425,"groups":[{"id":null,"label":"lit-html.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit-html/lit-html.js","statSize":8088,"parsedSize":3770,"gzipSize":1056,"inaccurateSizes":true},{"label":"directives","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit-html/directives","statSize":2331,"groups":[{"id":null,"label":"unsafe-html.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit-html/directives/unsafe-html.js","statSize":838,"parsedSize":390,"gzipSize":109,"inaccurateSizes":true},{"id":null,"label":"guard.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit-html/directives/guard.js","statSize":574,"parsedSize":267,"gzipSize":74,"inaccurateSizes":true},{"id":null,"label":"live.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit-html/directives/live.js","statSize":919,"parsedSize":428,"gzipSize":120,"inaccurateSizes":true}],"parsedSize":1086,"gzipSize":304,"inaccurateSizes":true},{"id":null,"label":"directive.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit-html/directive.js","statSize":481,"parsedSize":224,"gzipSize":62,"inaccurateSizes":true},{"id":null,"label":"directive-helpers.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit-html/directive-helpers.js","statSize":1525,"parsedSize":710,"gzipSize":199,"inaccurateSizes":true}],"parsedSize":5792,"gzipSize":1622,"inaccurateSizes":true},{"label":"lit-element","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit-element","statSize":1381,"groups":[{"id":null,"label":"lit-element.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit-element/lit-element.js","statSize":1381,"parsedSize":643,"gzipSize":180,"inaccurateSizes":true}],"parsedSize":643,"gzipSize":180,"inaccurateSizes":true},{"label":"@apitools/openapi-parser/dist","path":"./src/index.js + 59 modules (concatenated)/node_modules/@apitools/openapi-parser/dist","statSize":703206,"groups":[{"id":null,"label":"openapi-parser.es.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/@apitools/openapi-parser/dist/openapi-parser.es.js","statSize":703206,"parsedSize":327854,"gzipSize":91829,"inaccurateSizes":true}],"parsedSize":327854,"gzipSize":91829,"inaccurateSizes":true}],"parsedSize":372879,"gzipSize":104440,"inaccurateSizes":true}]}],"parsedSize":553323,"gzipSize":154981}]}];
|
|
35
35
|
window.defaultSizes = "parsed";
|
|
36
36
|
</script>
|
|
37
37
|
</body>
|
package/index.html
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rapidoc",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.2.0",
|
|
4
4
|
"description": "RapiDoc - Open API spec viewer with built in console",
|
|
5
5
|
"author": "Mrinmoy Majumdar <mrin9@yahoo.com>",
|
|
6
6
|
"repository": {
|
|
@@ -35,8 +35,7 @@
|
|
|
35
35
|
"@apitools/openapi-parser": "^0.0.24",
|
|
36
36
|
"base64-arraybuffer": "^1.0.2",
|
|
37
37
|
"buffer": "^6.0.3",
|
|
38
|
-
"lit
|
|
39
|
-
"lit-html": "1.4.1",
|
|
38
|
+
"lit": "^2.2.0",
|
|
40
39
|
"marked": "^4.0.12",
|
|
41
40
|
"prismjs": "^1.26.0"
|
|
42
41
|
},
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { LitElement, html, css } from 'lit
|
|
1
|
+
import { LitElement, html, css } from 'lit';
|
|
2
|
+
import { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions
|
|
3
|
+
import { guard } from 'lit/directives/guard.js'; // eslint-disable-line import/extensions
|
|
4
|
+
import { live } from 'lit/directives/live.js'; // eslint-disable-line import/extensions
|
|
2
5
|
import { marked } from 'marked';
|
|
3
6
|
import Prism from 'prismjs';
|
|
4
|
-
|
|
5
|
-
import { unsafeHTML } from 'lit-html/directives/unsafe-html';
|
|
6
|
-
import { guard } from 'lit-html/directives/guard';
|
|
7
|
-
import { live } from 'lit-html/directives/live';
|
|
8
7
|
import TableStyles from '~/styles/table-styles';
|
|
9
8
|
import FlexStyles from '~/styles/flex-styles';
|
|
10
9
|
import InputStyles from '~/styles/input-styles';
|
|
@@ -193,11 +192,11 @@ export default class ApiRequest extends LitElement {
|
|
|
193
192
|
${this.callback === 'true' ? 'CALLBACK REQUEST' : 'REQUEST'}
|
|
194
193
|
</div>
|
|
195
194
|
<div>
|
|
196
|
-
${guard([this.parameters, this.activeParameterSchemaTabs], () => this.inputParametersTemplate('path'))}
|
|
197
|
-
${guard([this.parameters, this.activeParameterSchemaTabs], () => this.inputParametersTemplate('query'))}
|
|
195
|
+
${guard([this.allowTry, this.parameters, this.activeParameterSchemaTabs], () => this.inputParametersTemplate('path'))}
|
|
196
|
+
${guard([this.allowTry, this.parameters, this.activeParameterSchemaTabs], () => this.inputParametersTemplate('query'))}
|
|
198
197
|
${this.requestBodyTemplate()}
|
|
199
|
-
${guard([this.parameters, this.activeParameterSchemaTabs], () => this.inputParametersTemplate('header'))}
|
|
200
|
-
${guard([this.parameters, this.activeParameterSchemaTabs], () => this.inputParametersTemplate('cookie'))}
|
|
198
|
+
${guard([this.allowTry, this.parameters, this.activeParameterSchemaTabs], () => this.inputParametersTemplate('header'))}
|
|
199
|
+
${guard([this.allowTry, this.parameters, this.activeParameterSchemaTabs], () => this.inputParametersTemplate('cookie'))}
|
|
201
200
|
${this.allowTry === 'false' ? '' : html`${this.apiCallTemplate()}`}
|
|
202
201
|
</div>
|
|
203
202
|
</div>
|
|
@@ -365,8 +364,8 @@ export default class ApiRequest extends LitElement {
|
|
|
365
364
|
this.activeParameterSchemaTabs = newState;
|
|
366
365
|
}
|
|
367
366
|
}}">
|
|
368
|
-
<button class="tab-btn ${this.activeParameterSchemaTabs[param.name] !== 'example' ? 'active' : ''}" data-tab = 'schema'>SCHEMA</button>
|
|
369
367
|
<button class="tab-btn ${this.activeParameterSchemaTabs[param.name] === 'example' ? 'active' : ''}" data-tab = 'example'>EXAMPLE </button>
|
|
368
|
+
<button class="tab-btn ${this.activeParameterSchemaTabs[param.name] !== 'example' ? 'active' : ''}" data-tab = 'schema'>SCHEMA</button>
|
|
370
369
|
</div>
|
|
371
370
|
${this.activeParameterSchemaTabs[param.name] === 'example'
|
|
372
371
|
? html`<div class="tab-content col">
|
|
@@ -414,9 +413,9 @@ export default class ApiRequest extends LitElement {
|
|
|
414
413
|
</td>`
|
|
415
414
|
: ''
|
|
416
415
|
}
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
?
|
|
416
|
+
${paramSchema.default || paramSchema.constrain || paramSchema.allowedValues || paramSchema.pattern
|
|
417
|
+
? html`
|
|
418
|
+
<td colspan="${(this.allowTry === 'true') ? '1' : '2'}">
|
|
420
419
|
<div class="param-constraint">
|
|
421
420
|
${paramSchema.default ? html`<span style="font-weight:bold">Default: </span>${paramSchema.default}<br/>` : ''}
|
|
422
421
|
${paramSchema.pattern ? html`<span style="font-weight:bold">Pattern: </span>${paramSchema.pattern}<br/>` : ''}
|
|
@@ -439,14 +438,14 @@ export default class ApiRequest extends LitElement {
|
|
|
439
438
|
}}"
|
|
440
439
|
>${v}</a>`
|
|
441
440
|
}`)}
|
|
442
|
-
</div
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
441
|
+
</div>
|
|
442
|
+
</td>`
|
|
443
|
+
: ''
|
|
444
|
+
}
|
|
446
445
|
</tr>
|
|
447
446
|
<tr>
|
|
448
447
|
${this.allowTry === 'true' ? html`<td style="border:none"> </td>` : ''}
|
|
449
|
-
<td colspan="2" style="border:none;
|
|
448
|
+
<td colspan="2" style="border:none;">
|
|
450
449
|
<span class="m-markdown-small">${unsafeHTML(marked(param.description || ''))}</span>
|
|
451
450
|
${this.exampleListTemplate.call(this, param.name, paramSchema.type, example.exampleList)}
|
|
452
451
|
</td>
|
|
@@ -539,7 +538,7 @@ export default class ApiRequest extends LitElement {
|
|
|
539
538
|
let schemaAsObj;
|
|
540
539
|
let reqBodyExamples = [];
|
|
541
540
|
|
|
542
|
-
if (this.selectedRequestBodyType.includes('json') || this.selectedRequestBodyType.includes('xml') || this.selectedRequestBodyType.includes('text')) {
|
|
541
|
+
if (this.selectedRequestBodyType.includes('json') || this.selectedRequestBodyType.includes('xml') || this.selectedRequestBodyType.includes('text') || this.selectedRequestBodyType.includes('jose')) {
|
|
543
542
|
// Generate Example
|
|
544
543
|
if (reqBody.mimeType === this.selectedRequestBodyType) {
|
|
545
544
|
reqBodyExamples = generateExample(
|
|
@@ -626,7 +625,7 @@ export default class ApiRequest extends LitElement {
|
|
|
626
625
|
}
|
|
627
626
|
|
|
628
627
|
// Generate Schema
|
|
629
|
-
if (reqBody.mimeType.includes('json') || reqBody.mimeType.includes('xml') || reqBody.mimeType.includes('text')) {
|
|
628
|
+
if (reqBody.mimeType.includes('json') || reqBody.mimeType.includes('xml') || reqBody.mimeType.includes('text') || this.selectedRequestBodyType.includes('jose')) {
|
|
630
629
|
schemaAsObj = schemaInObjectNotation(reqBody.schema, {});
|
|
631
630
|
if (this.schemaStyle === 'table') {
|
|
632
631
|
reqBodySchemaHtml = html`
|
|
@@ -670,12 +669,12 @@ export default class ApiRequest extends LitElement {
|
|
|
670
669
|
</div>
|
|
671
670
|
${this.request_body.description ? html`<div class="m-markdown" style="margin-bottom:12px">${unsafeHTML(marked(this.request_body.description))}</div>` : ''}
|
|
672
671
|
|
|
673
|
-
${(this.selectedRequestBodyType.includes('json') || this.selectedRequestBodyType.includes('xml') || this.selectedRequestBodyType.includes('text'))
|
|
672
|
+
${(this.selectedRequestBodyType.includes('json') || this.selectedRequestBodyType.includes('xml') || this.selectedRequestBodyType.includes('text') || this.selectedRequestBodyType.includes('jose'))
|
|
674
673
|
? html`
|
|
675
674
|
<div class="tab-panel col" style="border-width:0 0 1px 0;">
|
|
676
675
|
<div class="tab-buttons row" @click="${(e) => { if (e.target.tagName.toLowerCase() === 'button') { this.activeSchemaTab = e.target.dataset.tab; } }}">
|
|
677
|
-
<button class="tab-btn ${this.activeSchemaTab !== 'example' ? 'active' : ''}" data-tab = 'schema'>SCHEMA</button>
|
|
678
676
|
<button class="tab-btn ${this.activeSchemaTab === 'example' ? 'active' : ''}" data-tab = 'example'>EXAMPLE</button>
|
|
677
|
+
<button class="tab-btn ${this.activeSchemaTab !== 'example' ? 'active' : ''}" data-tab = 'schema'>SCHEMA</button>
|
|
679
678
|
</div>
|
|
680
679
|
${this.activeSchemaTab === 'example'
|
|
681
680
|
? html`<div class="tab-content col"> ${reqBodyExampleHtml}</div>`
|
|
@@ -724,20 +723,10 @@ export default class ApiRequest extends LitElement {
|
|
|
724
723
|
}
|
|
725
724
|
if (e.target.tagName.toLowerCase() === 'button') { this.activeSchemaTab = e.target.dataset.tab; }
|
|
726
725
|
}}">
|
|
727
|
-
<button class="v-tab-btn ${this.activeSchemaTab !== 'example' ? 'active' : ''}" data-tab = 'schema'>SCHEMA</button>
|
|
728
726
|
<button class="v-tab-btn ${this.activeSchemaTab === 'example' ? 'active' : ''}" data-tab = 'example'>EXAMPLE</button>
|
|
727
|
+
<button class="v-tab-btn ${this.activeSchemaTab !== 'example' ? 'active' : ''}" data-tab = 'schema'>SCHEMA</button>
|
|
729
728
|
</div>
|
|
730
729
|
</div>
|
|
731
|
-
${html`
|
|
732
|
-
<div class="tab-content col" data-tab = 'schema' style="display:${this.activeSchemaTab !== 'example' ? 'block' : 'none'}; padding-left:5px; width:100%;">
|
|
733
|
-
<schema-tree
|
|
734
|
-
.data = '${formdataPartSchema}'
|
|
735
|
-
schema-expand-level = "${this.schemaExpandLevel}"
|
|
736
|
-
schema-description-expanded = "${this.schemaDescriptionExpanded}"
|
|
737
|
-
allow-schema-description-expand-toggle = "${this.allowSchemaDescriptionExpandToggle}",
|
|
738
|
-
> </schema-tree>
|
|
739
|
-
</div>`
|
|
740
|
-
}
|
|
741
730
|
${html`
|
|
742
731
|
<div class="tab-content col" data-tab = 'example' style="display:${this.activeSchemaTab === 'example' ? 'block' : 'none'}; padding-left:5px; width:100%">
|
|
743
732
|
<textarea
|
|
@@ -755,6 +744,16 @@ export default class ApiRequest extends LitElement {
|
|
|
755
744
|
<textarea data-pname = "hidden-${fieldName}" data-ptype = "${mimeType.includes('form-urlencode') ? 'hidden-form-urlencode' : 'hidden-form-data'}" class="is-hidden" style="display:none">${formdataPartExample[0].exampleValue}</textarea>
|
|
756
745
|
</div>`
|
|
757
746
|
}
|
|
747
|
+
${html`
|
|
748
|
+
<div class="tab-content col" data-tab = 'schema' style="display:${this.activeSchemaTab !== 'example' ? 'block' : 'none'}; padding-left:5px; width:100%;">
|
|
749
|
+
<schema-tree
|
|
750
|
+
.data = '${formdataPartSchema}'
|
|
751
|
+
schema-expand-level = "${this.schemaExpandLevel}"
|
|
752
|
+
schema-description-expanded = "${this.schemaDescriptionExpanded}"
|
|
753
|
+
allow-schema-description-expand-toggle = "${this.allowSchemaDescriptionExpandToggle}",
|
|
754
|
+
> </schema-tree>
|
|
755
|
+
</div>`
|
|
756
|
+
}
|
|
758
757
|
</div>
|
|
759
758
|
`;
|
|
760
759
|
}
|
|
@@ -913,7 +912,7 @@ export default class ApiRequest extends LitElement {
|
|
|
913
912
|
<div class="row" style="font-size:var(--font-size-small); margin:5px 0">
|
|
914
913
|
<div class="response-message ${this.responseStatus}">Response Status: ${this.responseMessage}</div>
|
|
915
914
|
<div style="flex:1"></div>
|
|
916
|
-
<button class="m-btn" part="btn btn-outline" @click="${this.clearResponseData}">CLEAR RESPONSE</button>
|
|
915
|
+
<button class="m-btn" part="btn btn-outline btn-clear-response" @click="${this.clearResponseData}">CLEAR RESPONSE</button>
|
|
917
916
|
</div>
|
|
918
917
|
<div class="tab-panel col" style="border-width:0 0 1px 0;">
|
|
919
918
|
<div id="tab_buttons" class="tab-buttons row" @click="${(e) => {
|
|
@@ -1006,15 +1005,15 @@ export default class ApiRequest extends LitElement {
|
|
|
1006
1005
|
${
|
|
1007
1006
|
this.parameters.length > 0 || this.request_body
|
|
1008
1007
|
? html`
|
|
1009
|
-
<button class="m-btn thin-border" part="btn btn-outline" style="margin-right:5px;" @click="${this.onFillRequestData}" title="Fills with example data (if provided)">
|
|
1008
|
+
<button class="m-btn thin-border" part="btn btn-outline btn-fill" style="margin-right:5px;" @click="${this.onFillRequestData}" title="Fills with example data (if provided)">
|
|
1010
1009
|
FILL EXAMPLE
|
|
1011
1010
|
</button>
|
|
1012
|
-
<button class="m-btn thin-border" part="btn btn-outline" style="margin-right:5px;" @click="${this.onClearRequestData}">
|
|
1011
|
+
<button class="m-btn thin-border" part="btn btn-outline btn-clear" style="margin-right:5px;" @click="${this.onClearRequestData}">
|
|
1013
1012
|
CLEAR
|
|
1014
1013
|
</button>`
|
|
1015
1014
|
: ''
|
|
1016
1015
|
}
|
|
1017
|
-
<button class="m-btn primary thin-border" part="btn btn-
|
|
1016
|
+
<button class="m-btn primary thin-border" part="btn btn-try" @click="${this.onTryClick}">TRY</button>
|
|
1018
1017
|
</div>
|
|
1019
1018
|
${this.responseMessage === '' ? '' : this.apiResponseTabTemplate()}
|
|
1020
1019
|
`;
|
|
@@ -1058,7 +1057,6 @@ export default class ApiRequest extends LitElement {
|
|
|
1058
1057
|
const queryParamObjTypeEls = [...requestPanelEl.querySelectorAll("[data-ptype='query-object']")];
|
|
1059
1058
|
const headerParamEls = [...requestPanelEl.querySelectorAll("[data-ptype='header']")];
|
|
1060
1059
|
const requestBodyContainerEl = requestPanelEl.querySelector('.request-body-container');
|
|
1061
|
-
|
|
1062
1060
|
fetchUrl = this.path;
|
|
1063
1061
|
const fetchOptions = {
|
|
1064
1062
|
method: this.method.toUpperCase(),
|
|
@@ -1111,7 +1109,7 @@ export default class ApiRequest extends LitElement {
|
|
|
1111
1109
|
const queryParam = new URLSearchParams();
|
|
1112
1110
|
try {
|
|
1113
1111
|
let queryParamObj = {};
|
|
1114
|
-
const { paramSerializeStyle, paramSerializeExplode } = el.dataset
|
|
1112
|
+
const { paramSerializeStyle, paramSerializeExplode } = el.dataset;
|
|
1115
1113
|
queryParamObj = Object.assign(queryParamObj, JSON.parse(el.value.replace(/\s+/g, ' ')));
|
|
1116
1114
|
if (el.dataset.paramAllowReserved === 'true') {
|
|
1117
1115
|
queryParamsWithReservedCharsAllowed.push(el.dataset.pname);
|
|
@@ -1322,6 +1320,8 @@ export default class ApiRequest extends LitElement {
|
|
|
1322
1320
|
if (this.fetchCredentials) {
|
|
1323
1321
|
fetchOptions.credentials = this.fetchCredentials;
|
|
1324
1322
|
}
|
|
1323
|
+
const controller = new AbortController();
|
|
1324
|
+
const { signal } = controller;
|
|
1325
1325
|
fetchOptions.headers = reqHeaders;
|
|
1326
1326
|
const fetchRequest = new Request(fetchUrl, fetchOptions);
|
|
1327
1327
|
this.dispatchEvent(new CustomEvent('before-try', {
|
|
@@ -1329,6 +1329,7 @@ export default class ApiRequest extends LitElement {
|
|
|
1329
1329
|
composed: true,
|
|
1330
1330
|
detail: {
|
|
1331
1331
|
request: fetchRequest,
|
|
1332
|
+
controller,
|
|
1332
1333
|
},
|
|
1333
1334
|
}));
|
|
1334
1335
|
|
|
@@ -1340,7 +1341,7 @@ export default class ApiRequest extends LitElement {
|
|
|
1340
1341
|
let respText;
|
|
1341
1342
|
tryBtnEl.disabled = true;
|
|
1342
1343
|
const startTime = performance.now();
|
|
1343
|
-
fetchResponse = await fetch(fetchRequest);
|
|
1344
|
+
fetchResponse = await fetch(fetchRequest, { signal });
|
|
1344
1345
|
const endTime = performance.now();
|
|
1345
1346
|
responseClone = fetchResponse.clone(); // create a response clone to allow reading response body again (response.json, response.text etc)
|
|
1346
1347
|
tryBtnEl.disabled = false;
|
|
@@ -1412,17 +1413,27 @@ export default class ApiRequest extends LitElement {
|
|
|
1412
1413
|
}));
|
|
1413
1414
|
} catch (err) {
|
|
1414
1415
|
tryBtnEl.disabled = false;
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
}
|
|
1416
|
+
if (err.name === 'AbortError') {
|
|
1417
|
+
this.dispatchEvent(new CustomEvent('request-aborted', {
|
|
1418
|
+
bubbles: true,
|
|
1419
|
+
composed: true,
|
|
1420
|
+
detail: {
|
|
1421
|
+
err,
|
|
1422
|
+
request: fetchRequest,
|
|
1423
|
+
},
|
|
1424
|
+
}));
|
|
1425
|
+
this.responseMessage = 'Request Aborted';
|
|
1426
|
+
} else {
|
|
1427
|
+
this.dispatchEvent(new CustomEvent('after-try', {
|
|
1428
|
+
bubbles: true,
|
|
1429
|
+
composed: true,
|
|
1430
|
+
detail: {
|
|
1431
|
+
err,
|
|
1432
|
+
request: fetchRequest,
|
|
1433
|
+
},
|
|
1434
|
+
}));
|
|
1435
|
+
this.responseMessage = `${err.message} (CORS or Network Issue)`;
|
|
1436
|
+
}
|
|
1426
1437
|
}
|
|
1427
1438
|
this.requestUpdate();
|
|
1428
1439
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LitElement, html, css } from 'lit
|
|
1
|
+
import { LitElement, html, css } from 'lit';
|
|
2
|
+
import { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions
|
|
2
3
|
import { marked } from 'marked';
|
|
3
|
-
import { unsafeHTML } from 'lit-html/directives/unsafe-html';
|
|
4
4
|
import { schemaInObjectNotation, generateExample } from '~/utils/schema-utils';
|
|
5
5
|
import FontStyles from '~/styles/font-styles';
|
|
6
6
|
import FlexStyles from '~/styles/flex-styles';
|
|
@@ -154,7 +154,7 @@ export default class ApiResponse extends LitElement {
|
|
|
154
154
|
}
|
|
155
155
|
}}"
|
|
156
156
|
class='m-btn small ${this.selectedStatus === respStatus ? 'primary' : ''}'
|
|
157
|
-
part="btn
|
|
157
|
+
part="btn ${this.selectedStatus === respStatus ? 'btn-response-status btn-selected-response-status' : ' btn-response-status'}"
|
|
158
158
|
style='margin: 8px 4px 0 0'
|
|
159
159
|
>
|
|
160
160
|
${respStatus}
|
|
@@ -179,8 +179,8 @@ export default class ApiResponse extends LitElement {
|
|
|
179
179
|
: html`
|
|
180
180
|
<div class="tab-panel col">
|
|
181
181
|
<div class="tab-buttons row" @click="${(e) => { if (e.target.tagName.toLowerCase() === 'button') { this.activeSchemaTab = e.target.dataset.tab; } }}" >
|
|
182
|
-
<button class="tab-btn ${this.activeSchemaTab !== 'example' ? 'active' : ''}" data-tab = 'schema' >SCHEMA</button>
|
|
183
182
|
<button class="tab-btn ${this.activeSchemaTab === 'example' ? 'active' : ''}" data-tab = 'example'>EXAMPLE </button>
|
|
183
|
+
<button class="tab-btn ${this.activeSchemaTab !== 'example' ? 'active' : ''}" data-tab = 'schema' >SCHEMA</button>
|
|
184
184
|
<div style="flex:1"></div>
|
|
185
185
|
${Object.keys(this.mimeResponsesForEachStatus[status]).length === 1
|
|
186
186
|
? html`<span class='small-font-size gray-text' style='align-self:center; margin-top:8px;'> ${Object.keys(this.mimeResponsesForEachStatus[status])[0]} </span>`
|
|
@@ -258,6 +258,7 @@ export default class ApiResponse extends LitElement {
|
|
|
258
258
|
render-style = '${this.renderStyle}'
|
|
259
259
|
.data="${mimeRespDetails.examples[0].exampleValue}"
|
|
260
260
|
class = 'example-panel ${this.renderStyle === 'read' ? 'border pad-8-16' : 'border-top pad-top-8'}'
|
|
261
|
+
exportparts = "btn:btn, btn-fill:btn-fill, btn-copy:btn-copy"
|
|
261
262
|
></json-tree>`
|
|
262
263
|
: html`
|
|
263
264
|
${mimeRespDetails.examples[0].exampleSummary && mimeRespDetails.examples[0].exampleSummary.length > 80 ? html`<div style="padding: 4px 0"> ${mimeRespDetails.examples[0].exampleSummary} </div>` : ''}
|
|
@@ -281,6 +282,7 @@ export default class ApiResponse extends LitElement {
|
|
|
281
282
|
<json-tree
|
|
282
283
|
render-style = '${this.renderStyle}'
|
|
283
284
|
.data = '${v.exampleValue}'
|
|
285
|
+
exportparts = "btn:btn, btn-fill:btn-fill, btn-copy:btn-copy"
|
|
284
286
|
></json-tree>`
|
|
285
287
|
: html`<pre>${v.exampleValue}</pre>`
|
|
286
288
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement, html, css } from 'lit
|
|
1
|
+
import { LitElement, html, css } from 'lit';
|
|
2
2
|
import { copyToClipboard } from '~/utils/common-utils';
|
|
3
3
|
import FontStyles from '~/styles/font-styles';
|
|
4
4
|
import BorderStyles from '~/styles/border-styles';
|
|
@@ -78,7 +78,7 @@ export default class JsonTree extends LitElement {
|
|
|
78
78
|
return html`
|
|
79
79
|
<div class = "json-tree" >
|
|
80
80
|
<div class='toolbar'>
|
|
81
|
-
<button class="toolbar-btn" part="btn btn-fill" @click='${(e) => { copyToClipboard(JSON.stringify(this.data, null, 2), e); }}'> Copy </button>
|
|
81
|
+
<button class="toolbar-btn" part="btn btn-fill btn-copy" @click='${(e) => { copyToClipboard(JSON.stringify(this.data, null, 2), e); }}'> Copy </button>
|
|
82
82
|
</div>
|
|
83
83
|
${this.generateTree(this.data, true)}
|
|
84
84
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LitElement, html, css } from 'lit
|
|
1
|
+
import { LitElement, html, css } from 'lit';
|
|
2
|
+
import { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions
|
|
2
3
|
import { marked } from 'marked';
|
|
3
|
-
import { unsafeHTML } from 'lit-html/directives/unsafe-html';
|
|
4
4
|
import FontStyles from '~/styles/font-styles';
|
|
5
5
|
import SchemaStyles from '~/styles/schema-styles';
|
|
6
6
|
import CustomStyles from '~/styles/custom-styles';
|
|
@@ -234,7 +234,7 @@ export default class SchemaTable extends LitElement {
|
|
|
234
234
|
? html`${this.generateTree(data[0], 'xxx-of-option', '', '::ARRAY~OF', '', newSchemaLevel, newIndentLevel, '')}`
|
|
235
235
|
: html`
|
|
236
236
|
${Object.keys(data).map((dataKey) => html`
|
|
237
|
-
${['::description', '::type', '::props', '::deprecated', '::array-type', '::readwrite'].includes(dataKey)
|
|
237
|
+
${['::title', '::description', '::type', '::props', '::deprecated', '::array-type', '::readwrite'].includes(dataKey)
|
|
238
238
|
? data[dataKey]['::type'] === 'array' || data[dataKey]['::type'] === 'object'
|
|
239
239
|
? html`${this.generateTree(
|
|
240
240
|
data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey],
|
|
@@ -303,7 +303,7 @@ export default class SchemaTable extends LitElement {
|
|
|
303
303
|
${defaultValue ? html`<div style='display:inline-block; line-break:anywhere; margin-right:8px;'> <span class='bold-text'>Default: </span>${defaultValue}</div>` : ''}
|
|
304
304
|
${allowedValues ? html`<div style='display:inline-block; line-break:anywhere; margin-right:8px;'> <span class='bold-text'>Allowed: </span>${allowedValues}</div>` : ''}
|
|
305
305
|
${pattern ? html`<div style='display:inline-block; line-break:anywhere; margin-right:8px;'> <span class='bold-text'>Pattern: </span>${pattern}</div>` : ''}
|
|
306
|
-
${schemaDescription ? html`<span class="m-markdown-small">${unsafeHTML(marked(schemaDescription))}</span>` : ''}
|
|
306
|
+
${schemaDescription ? html`<span class="m-markdown-small">${unsafeHTML(marked(`${schemaTitle ? `**${schemaTitle}:**` : ''} ${schemaDescription}`))}</span>` : ''}
|
|
307
307
|
</div>
|
|
308
308
|
</div>
|
|
309
309
|
`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LitElement, html, css } from 'lit
|
|
1
|
+
import { LitElement, html, css } from 'lit';
|
|
2
|
+
import { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions
|
|
2
3
|
import { marked } from 'marked';
|
|
3
|
-
import { unsafeHTML } from 'lit-html/directives/unsafe-html';
|
|
4
4
|
import FontStyles from '~/styles/font-styles';
|
|
5
5
|
import SchemaStyles from '~/styles/schema-styles';
|
|
6
6
|
import BorderStyles from '~/styles/border-styles';
|
|
@@ -227,7 +227,7 @@ export default class SchemaTree extends LitElement {
|
|
|
227
227
|
? html`${this.generateTree(data[0], 'xxx-of-option', '', '::ARRAY~OF', '', newSchemaLevel, newIndentLevel, data[0]['::readwrite'])}`
|
|
228
228
|
: html`
|
|
229
229
|
${Object.keys(data).map((dataKey) => html`
|
|
230
|
-
${['::description', '::type', '::props', '::deprecated', '::array-type', '::readwrite'].includes(dataKey)
|
|
230
|
+
${['::title', '::description', '::type', '::props', '::deprecated', '::array-type', '::readwrite'].includes(dataKey)
|
|
231
231
|
? data[dataKey]['::type'] === 'array' || data[dataKey]['::type'] === 'object'
|
|
232
232
|
? html`${this.generateTree(
|
|
233
233
|
data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey],
|
|
@@ -263,7 +263,7 @@ export default class SchemaTree extends LitElement {
|
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
// For Primitive types and array of Primitives
|
|
266
|
-
const [type, primitiveReadOrWrite, constraint, defaultValue, allowedValues, pattern, schemaDescription, , deprecated] = data.split('~|~');
|
|
266
|
+
const [type, primitiveReadOrWrite, constraint, defaultValue, allowedValues, pattern, schemaDescription, schemaTitle, deprecated] = data.split('~|~');
|
|
267
267
|
if (primitiveReadOrWrite === '🆁' && this.schemaHideReadOnly === 'true') {
|
|
268
268
|
return;
|
|
269
269
|
}
|
|
@@ -310,7 +310,7 @@ export default class SchemaTree extends LitElement {
|
|
|
310
310
|
${defaultValue ? html`<div style='display:inline-block; line-break:anywhere; margin-right:8px'><span class='bold-text'>Default: </span>${defaultValue}</div>` : ''}
|
|
311
311
|
${allowedValues ? html`<div style='display:inline-block; line-break:anywhere; margin-right:8px'><span class='bold-text'>Allowed: </span>${allowedValues}</div>` : ''}
|
|
312
312
|
${pattern ? html`<div style='display:inline-block; line-break: anywhere; margin-right:8px'><span class='bold-text'>Pattern: </span>${pattern}</div>` : ''}
|
|
313
|
-
${schemaDescription ? html`<span class="m-markdown-small">${unsafeHTML(marked(schemaDescription))}</span>` : ''}
|
|
313
|
+
${schemaDescription ? html`<span class="m-markdown-small">${unsafeHTML(marked(`${schemaTitle ? `**${schemaTitle}:**` : ''} ${schemaDescription}`))}</span>` : ''}
|
|
314
314
|
</div>
|
|
315
315
|
</div>
|
|
316
316
|
`;
|
package/src/rapidoc-mini.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css, LitElement } from 'lit
|
|
1
|
+
import { css, LitElement } from 'lit';
|
|
2
2
|
import { marked } from 'marked';
|
|
3
3
|
import Prism from 'prismjs';
|
|
4
4
|
import 'prismjs/components/prism-css';
|
|
@@ -159,7 +159,7 @@ export default class RapiDocMini extends LitElement {
|
|
|
159
159
|
this.theme = (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches) ? 'light' : 'dark';
|
|
160
160
|
}
|
|
161
161
|
if (!this.defaultSchemaTab || !'example, schema, model,'.includes(`${this.defaultSchemaTab},`)) {
|
|
162
|
-
this.defaultSchemaTab = '
|
|
162
|
+
this.defaultSchemaTab = 'example';
|
|
163
163
|
} else if (this.defaultSchemaTab === 'model') {
|
|
164
164
|
this.defaultSchemaTab = 'schema';
|
|
165
165
|
}
|
package/src/rapidoc.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css, LitElement, unsafeCSS } from 'lit
|
|
1
|
+
import { css, LitElement, unsafeCSS } from 'lit';
|
|
2
2
|
import { marked } from 'marked';
|
|
3
3
|
import Prism from 'prismjs';
|
|
4
4
|
import 'prismjs/components/prism-css';
|
|
@@ -417,7 +417,7 @@ export default class RapiDoc extends LitElement {
|
|
|
417
417
|
this.theme = (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches) ? 'light' : 'dark';
|
|
418
418
|
}
|
|
419
419
|
if (!this.defaultSchemaTab || !'example, schema, model,'.includes(`${this.defaultSchemaTab},`)) {
|
|
420
|
-
this.defaultSchemaTab = '
|
|
420
|
+
this.defaultSchemaTab = 'example';
|
|
421
421
|
} else if (this.defaultSchemaTab === 'model') {
|
|
422
422
|
this.defaultSchemaTab = 'schema';
|
|
423
423
|
}
|