rapidoc 9.1.6 → 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.
Files changed (54) hide show
  1. package/LICENSE.txt +3 -1
  2. package/README.md +12 -1
  3. package/dist/index.html +1 -1
  4. package/dist/index.html.gz +0 -0
  5. package/dist/rapidoc-min.js +3670 -2
  6. package/dist/rapidoc-min.js.LICENSE.txt +13 -32
  7. package/dist/rapidoc-min.js.LICENSE.txt.gz +0 -0
  8. package/dist/rapidoc-min.js.gz +0 -0
  9. package/dist/rapidoc-min.js.map +1 -0
  10. package/dist/rapidoc-min.js.map.gz +0 -0
  11. package/dist/rapidoc.js +33671 -26146
  12. package/dist/report.html +2 -2
  13. package/index.html +1 -1
  14. package/package.json +4 -5
  15. package/src/components/api-request.js +62 -51
  16. package/src/components/api-response.js +6 -4
  17. package/src/components/dialog-box.js +1 -1
  18. package/src/components/json-tree.js +2 -2
  19. package/src/components/schema-table.js +4 -4
  20. package/src/components/schema-tree.js +5 -5
  21. package/src/components/tag-input.js +1 -1
  22. package/src/json-schema-viewer.js +1 -1
  23. package/src/rapidoc-mini.js +2 -2
  24. package/src/rapidoc.js +2 -2
  25. package/src/styles/border-styles.js +1 -1
  26. package/src/styles/custom-styles.js +1 -1
  27. package/src/styles/dialog-box-styles.js +1 -1
  28. package/src/styles/endpoint-styles.js +1 -1
  29. package/src/styles/flex-styles.js +1 -1
  30. package/src/styles/font-styles.js +1 -1
  31. package/src/styles/info-styles.js +1 -1
  32. package/src/styles/input-styles.js +1 -1
  33. package/src/styles/nav-styles.js +1 -1
  34. package/src/styles/prism-styles.js +1 -1
  35. package/src/styles/schema-styles.js +1 -1
  36. package/src/styles/tab-styles.js +1 -1
  37. package/src/styles/table-styles.js +1 -1
  38. package/src/templates/advance-search-template.js +1 -1
  39. package/src/templates/callback-template.js +5 -3
  40. package/src/templates/code-samples-template.js +2 -2
  41. package/src/templates/components-template.js +2 -2
  42. package/src/templates/endpoint-template.js +7 -4
  43. package/src/templates/expanded-endpoint-template.js +6 -4
  44. package/src/templates/focused-endpoint-template.js +2 -2
  45. package/src/templates/header-template.js +1 -1
  46. package/src/templates/json-schema-viewer-template.js +2 -2
  47. package/src/templates/logo-template.js +1 -1
  48. package/src/templates/main-body-template.js +1 -1
  49. package/src/templates/navbar-template.js +1 -1
  50. package/src/templates/overview-template.js +2 -2
  51. package/src/templates/security-scheme-template.js +28 -28
  52. package/src/templates/server-template.js +2 -2
  53. package/src/utils/schema-utils.js +43 -8
  54. 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 [18 Feb 2022 at 13:16]</title>
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":1214252,"parsedSize":556432,"gzipSize":154891,"groups":[{"label":"node_modules","path":"./node_modules","statSize":255351,"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":"marked/lib","path":"./node_modules/marked/lib","statSize":94823,"groups":[{"id":84,"label":"marked.js","path":"./node_modules/marked/lib/marked.js","statSize":94823,"parsedSize":47044,"gzipSize":15952}],"parsedSize":47044,"gzipSize":15952},{"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":2437},{"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":8853},{"id":660,"label":"prism.js","path":"./node_modules/prismjs/prism.js","statSize":57412,"parsedSize":18564,"gzipSize":6886}],"parsedSize":41676,"gzipSize":14794}],"parsedSize":116051,"gzipSize":38194},{"label":"src","path":"./src","statSize":958901,"groups":[{"id":971,"label":"index.js + 63 modules (concatenated)","path":"./src/index.js + 63 modules (concatenated)","statSize":958901,"parsedSize":429668,"gzipSize":113168,"concatenated":true,"groups":[{"label":"src","path":"./src/index.js + 63 modules (concatenated)/src","statSize":349927,"groups":[{"id":null,"label":"index.js","path":"./src/index.js + 63 modules (concatenated)/src/index.js","statSize":260,"parsedSize":116,"gzipSize":30,"inaccurateSizes":true},{"id":null,"label":"rapidoc.js","path":"./src/index.js + 63 modules (concatenated)/src/rapidoc.js","statSize":36517,"parsedSize":16362,"gzipSize":4309,"inaccurateSizes":true},{"id":null,"label":"rapidoc-mini.js","path":"./src/index.js + 63 modules (concatenated)/src/rapidoc-mini.js","statSize":13696,"parsedSize":6136,"gzipSize":1616,"inaccurateSizes":true},{"id":null,"label":"oauth-receiver.js","path":"./src/index.js + 63 modules (concatenated)/src/oauth-receiver.js","statSize":1995,"parsedSize":893,"gzipSize":235,"inaccurateSizes":true},{"id":null,"label":"json-schema-viewer.js","path":"./src/index.js + 63 modules (concatenated)/src/json-schema-viewer.js","statSize":11316,"parsedSize":5070,"gzipSize":1335,"inaccurateSizes":true},{"label":"styles","path":"./src/index.js + 63 modules (concatenated)/src/styles","statSize":23214,"groups":[{"id":null,"label":"font-styles.js","path":"./src/index.js + 63 modules (concatenated)/src/styles/font-styles.js","statSize":5054,"parsedSize":2264,"gzipSize":596,"inaccurateSizes":true},{"id":null,"label":"input-styles.js","path":"./src/index.js + 63 modules (concatenated)/src/styles/input-styles.js","statSize":4328,"parsedSize":1939,"gzipSize":510,"inaccurateSizes":true},{"id":null,"label":"flex-styles.js","path":"./src/index.js + 63 modules (concatenated)/src/styles/flex-styles.js","statSize":169,"parsedSize":75,"gzipSize":19,"inaccurateSizes":true},{"id":null,"label":"table-styles.js","path":"./src/index.js + 63 modules (concatenated)/src/styles/table-styles.js","statSize":1035,"parsedSize":463,"gzipSize":122,"inaccurateSizes":true},{"id":null,"label":"endpoint-styles.js","path":"./src/index.js + 63 modules (concatenated)/src/styles/endpoint-styles.js","statSize":4128,"parsedSize":1849,"gzipSize":487,"inaccurateSizes":true},{"id":null,"label":"prism-styles.js","path":"./src/index.js + 63 modules (concatenated)/src/styles/prism-styles.js","statSize":1215,"parsedSize":544,"gzipSize":143,"inaccurateSizes":true},{"id":null,"label":"tab-styles.js","path":"./src/index.js + 63 modules (concatenated)/src/styles/tab-styles.js","statSize":751,"parsedSize":336,"gzipSize":88,"inaccurateSizes":true},{"id":null,"label":"nav-styles.js","path":"./src/index.js + 63 modules (concatenated)/src/styles/nav-styles.js","statSize":2782,"parsedSize":1246,"gzipSize":328,"inaccurateSizes":true},{"id":null,"label":"info-styles.js","path":"./src/index.js + 63 modules (concatenated)/src/styles/info-styles.js","statSize":295,"parsedSize":132,"gzipSize":34,"inaccurateSizes":true},{"id":null,"label":"custom-styles.js","path":"./src/index.js + 63 modules (concatenated)/src/styles/custom-styles.js","statSize":207,"parsedSize":92,"gzipSize":24,"inaccurateSizes":true},{"id":null,"label":"border-styles.js","path":"./src/index.js + 63 modules (concatenated)/src/styles/border-styles.js","statSize":361,"parsedSize":161,"gzipSize":42,"inaccurateSizes":true},{"id":null,"label":"schema-styles.js","path":"./src/index.js + 63 modules (concatenated)/src/styles/schema-styles.js","statSize":1711,"parsedSize":766,"gzipSize":201,"inaccurateSizes":true},{"id":null,"label":"dialog-box-styles.js","path":"./src/index.js + 63 modules (concatenated)/src/styles/dialog-box-styles.js","statSize":1178,"parsedSize":527,"gzipSize":139,"inaccurateSizes":true}],"parsedSize":10401,"gzipSize":2739,"inaccurateSizes":true},{"label":"utils","path":"./src/index.js + 63 modules (concatenated)/src/utils","statSize":71279,"groups":[{"id":null,"label":"spec-parser.js","path":"./src/index.js + 63 modules (concatenated)/src/utils/spec-parser.js","statSize":17915,"parsedSize":8027,"gzipSize":2114,"inaccurateSizes":true},{"id":null,"label":"common-utils.js","path":"./src/index.js + 63 modules (concatenated)/src/utils/common-utils.js","statSize":6449,"parsedSize":2889,"gzipSize":761,"inaccurateSizes":true},{"id":null,"label":"schema-utils.js","path":"./src/index.js + 63 modules (concatenated)/src/utils/schema-utils.js","statSize":33827,"parsedSize":15157,"gzipSize":3992,"inaccurateSizes":true},{"id":null,"label":"theme.js","path":"./src/index.js + 63 modules (concatenated)/src/utils/theme.js","statSize":11225,"parsedSize":5029,"gzipSize":1324,"inaccurateSizes":true},{"id":null,"label":"color-utils.js","path":"./src/index.js + 63 modules (concatenated)/src/utils/color-utils.js","statSize":1863,"parsedSize":834,"gzipSize":219,"inaccurateSizes":true}],"parsedSize":31938,"gzipSize":8412,"inaccurateSizes":true},{"label":"templates","path":"./src/index.js + 63 modules (concatenated)/src/templates","statSize":85016,"groups":[{"id":null,"label":"main-body-template.js","path":"./src/index.js + 63 modules (concatenated)/src/templates/main-body-template.js","statSize":4543,"parsedSize":2035,"gzipSize":536,"inaccurateSizes":true},{"id":null,"label":"security-scheme-template.js","path":"./src/index.js + 63 modules (concatenated)/src/templates/security-scheme-template.js","statSize":24768,"parsedSize":11098,"gzipSize":2923,"inaccurateSizes":true},{"id":null,"label":"server-template.js","path":"./src/index.js + 63 modules (concatenated)/src/templates/server-template.js","statSize":3871,"parsedSize":1734,"gzipSize":456,"inaccurateSizes":true},{"id":null,"label":"json-schema-viewer-template.js","path":"./src/index.js + 63 modules (concatenated)/src/templates/json-schema-viewer-template.js","statSize":7078,"parsedSize":3171,"gzipSize":835,"inaccurateSizes":true},{"id":null,"label":"expanded-endpoint-template.js","path":"./src/index.js + 63 modules (concatenated)/src/templates/expanded-endpoint-template.js","statSize":6558,"parsedSize":2938,"gzipSize":773,"inaccurateSizes":true},{"id":null,"label":"focused-endpoint-template.js","path":"./src/index.js + 63 modules (concatenated)/src/templates/focused-endpoint-template.js","statSize":4455,"parsedSize":1996,"gzipSize":525,"inaccurateSizes":true},{"id":null,"label":"overview-template.js","path":"./src/index.js + 63 modules (concatenated)/src/templates/overview-template.js","statSize":3384,"parsedSize":1516,"gzipSize":399,"inaccurateSizes":true},{"id":null,"label":"navbar-template.js","path":"./src/index.js + 63 modules (concatenated)/src/templates/navbar-template.js","statSize":8066,"parsedSize":3614,"gzipSize":951,"inaccurateSizes":true},{"id":null,"label":"endpoint-template.js","path":"./src/index.js + 63 modules (concatenated)/src/templates/endpoint-template.js","statSize":8871,"parsedSize":3974,"gzipSize":1046,"inaccurateSizes":true},{"id":null,"label":"header-template.js","path":"./src/index.js + 63 modules (concatenated)/src/templates/header-template.js","statSize":2100,"parsedSize":940,"gzipSize":247,"inaccurateSizes":true},{"id":null,"label":"advance-search-template.js","path":"./src/index.js + 63 modules (concatenated)/src/templates/advance-search-template.js","statSize":2932,"parsedSize":1313,"gzipSize":346,"inaccurateSizes":true},{"id":null,"label":"code-samples-template.js","path":"./src/index.js + 63 modules (concatenated)/src/templates/code-samples-template.js","statSize":1924,"parsedSize":862,"gzipSize":227,"inaccurateSizes":true},{"id":null,"label":"callback-template.js","path":"./src/index.js + 63 modules (concatenated)/src/templates/callback-template.js","statSize":2546,"parsedSize":1140,"gzipSize":300,"inaccurateSizes":true},{"id":null,"label":"components-template.js","path":"./src/index.js + 63 modules (concatenated)/src/templates/components-template.js","statSize":3009,"parsedSize":1348,"gzipSize":355,"inaccurateSizes":true},{"id":null,"label":"logo-template.js","path":"./src/index.js + 63 modules (concatenated)/src/templates/logo-template.js","statSize":911,"parsedSize":408,"gzipSize":107,"inaccurateSizes":true}],"parsedSize":38094,"gzipSize":10033,"inaccurateSizes":true},{"label":"components","path":"./src/index.js + 63 modules (concatenated)/src/components","statSize":106634,"groups":[{"id":null,"label":"json-tree.js","path":"./src/index.js + 63 modules (concatenated)/src/components/json-tree.js","statSize":3505,"parsedSize":1570,"gzipSize":413,"inaccurateSizes":true},{"id":null,"label":"schema-tree.js","path":"./src/index.js + 63 modules (concatenated)/src/components/schema-tree.js","statSize":13683,"parsedSize":6131,"gzipSize":1614,"inaccurateSizes":true},{"id":null,"label":"api-request.js","path":"./src/index.js + 63 modules (concatenated)/src/components/api-request.js","statSize":58636,"parsedSize":26273,"gzipSize":6920,"inaccurateSizes":true},{"id":null,"label":"api-response.js","path":"./src/index.js + 63 modules (concatenated)/src/components/api-response.js","statSize":13296,"parsedSize":5957,"gzipSize":1569,"inaccurateSizes":true},{"id":null,"label":"dialog-box.js","path":"./src/index.js + 63 modules (concatenated)/src/components/dialog-box.js","statSize":1681,"parsedSize":753,"gzipSize":198,"inaccurateSizes":true},{"id":null,"label":"tag-input.js","path":"./src/index.js + 63 modules (concatenated)/src/components/tag-input.js","statSize":3115,"parsedSize":1395,"gzipSize":367,"inaccurateSizes":true},{"id":null,"label":"schema-table.js","path":"./src/index.js + 63 modules (concatenated)/src/components/schema-table.js","statSize":12718,"parsedSize":5698,"gzipSize":1500,"inaccurateSizes":true}],"parsedSize":47780,"gzipSize":12584,"inaccurateSizes":true}],"parsedSize":156796,"gzipSize":41297,"inaccurateSizes":true},{"label":"node_modules","path":"./src/index.js + 63 modules (concatenated)/node_modules","statSize":608974,"groups":[{"label":"lit-element","path":"./src/index.js + 63 modules (concatenated)/node_modules/lit-element","statSize":57366,"groups":[{"id":null,"label":"lit-element.js","path":"./src/index.js + 63 modules (concatenated)/node_modules/lit-element/lit-element.js","statSize":11883,"parsedSize":5324,"gzipSize":1402,"inaccurateSizes":true},{"label":"lib","path":"./src/index.js + 63 modules (concatenated)/node_modules/lit-element/lib","statSize":45483,"groups":[{"id":null,"label":"updating-element.js","path":"./src/index.js + 63 modules (concatenated)/node_modules/lit-element/lib/updating-element.js","statSize":28417,"parsedSize":12733,"gzipSize":3353,"inaccurateSizes":true},{"id":null,"label":"decorators.js","path":"./src/index.js + 63 modules (concatenated)/node_modules/lit-element/lib/decorators.js","statSize":13959,"parsedSize":6254,"gzipSize":1647,"inaccurateSizes":true},{"id":null,"label":"css-tag.js","path":"./src/index.js + 63 modules (concatenated)/node_modules/lit-element/lib/css-tag.js","statSize":3107,"parsedSize":1392,"gzipSize":366,"inaccurateSizes":true}],"parsedSize":20380,"gzipSize":5367,"inaccurateSizes":true}],"parsedSize":25704,"gzipSize":6770,"inaccurateSizes":true},{"label":"lit-html","path":"./src/index.js + 63 modules (concatenated)/node_modules/lit-html","statSize":60100,"groups":[{"id":null,"label":"lit-html.js","path":"./src/index.js + 63 modules (concatenated)/node_modules/lit-html/lit-html.js","statSize":2624,"parsedSize":1175,"gzipSize":309,"inaccurateSizes":true},{"label":"directives","path":"./src/index.js + 63 modules (concatenated)/node_modules/lit-html/directives","statSize":7322,"groups":[{"id":null,"label":"unsafe-html.js","path":"./src/index.js + 63 modules (concatenated)/node_modules/lit-html/directives/unsafe-html.js","statSize":1962,"parsedSize":879,"gzipSize":231,"inaccurateSizes":true},{"id":null,"label":"guard.js","path":"./src/index.js + 63 modules (concatenated)/node_modules/lit-html/directives/guard.js","statSize":2173,"parsedSize":973,"gzipSize":256,"inaccurateSizes":true},{"id":null,"label":"live.js","path":"./src/index.js + 63 modules (concatenated)/node_modules/lit-html/directives/live.js","statSize":3187,"parsedSize":1428,"gzipSize":376,"inaccurateSizes":true}],"parsedSize":3280,"gzipSize":864,"inaccurateSizes":true},{"label":"lib","path":"./src/index.js + 63 modules (concatenated)/node_modules/lit-html/lib","statSize":50154,"groups":[{"id":null,"label":"default-template-processor.js","path":"./src/index.js + 63 modules (concatenated)/node_modules/lit-html/lib/default-template-processor.js","statSize":2059,"parsedSize":922,"gzipSize":242,"inaccurateSizes":true},{"id":null,"label":"parts.js","path":"./src/index.js + 63 modules (concatenated)/node_modules/lit-html/lib/parts.js","statSize":17302,"parsedSize":7752,"gzipSize":2041,"inaccurateSizes":true},{"id":null,"label":"directive.js","path":"./src/index.js + 63 modules (concatenated)/node_modules/lit-html/lib/directive.js","statSize":2396,"parsedSize":1073,"gzipSize":282,"inaccurateSizes":true},{"id":null,"label":"dom.js","path":"./src/index.js + 63 modules (concatenated)/node_modules/lit-html/lib/dom.js","statSize":1546,"parsedSize":692,"gzipSize":182,"inaccurateSizes":true},{"id":null,"label":"part.js","path":"./src/index.js + 63 modules (concatenated)/node_modules/lit-html/lib/part.js","statSize":834,"parsedSize":373,"gzipSize":98,"inaccurateSizes":true},{"id":null,"label":"template-instance.js","path":"./src/index.js + 63 modules (concatenated)/node_modules/lit-html/lib/template-instance.js","statSize":6006,"parsedSize":2691,"gzipSize":708,"inaccurateSizes":true},{"id":null,"label":"template.js","path":"./src/index.js + 63 modules (concatenated)/node_modules/lit-html/lib/template.js","statSize":10304,"parsedSize":4617,"gzipSize":1216,"inaccurateSizes":true},{"id":null,"label":"template-result.js","path":"./src/index.js + 63 modules (concatenated)/node_modules/lit-html/lib/template-result.js","statSize":5901,"parsedSize":2644,"gzipSize":696,"inaccurateSizes":true},{"id":null,"label":"render.js","path":"./src/index.js + 63 modules (concatenated)/node_modules/lit-html/lib/render.js","statSize":1859,"parsedSize":832,"gzipSize":219,"inaccurateSizes":true},{"id":null,"label":"template-factory.js","path":"./src/index.js + 63 modules (concatenated)/node_modules/lit-html/lib/template-factory.js","statSize":1947,"parsedSize":872,"gzipSize":229,"inaccurateSizes":true}],"parsedSize":22473,"gzipSize":5919,"inaccurateSizes":true}],"parsedSize":26929,"gzipSize":7092,"inaccurateSizes":true},{"label":"@apitools/openapi-parser/dist","path":"./src/index.js + 63 modules (concatenated)/node_modules/@apitools/openapi-parser/dist","statSize":491508,"groups":[{"id":null,"label":"openapi-parser.es.js","path":"./src/index.js + 63 modules (concatenated)/node_modules/@apitools/openapi-parser/dist/openapi-parser.es.js","statSize":491508,"parsedSize":220236,"gzipSize":58007,"inaccurateSizes":true}],"parsedSize":220236,"gzipSize":58007,"inaccurateSizes":true}],"parsedSize":272871,"gzipSize":71870,"inaccurateSizes":true}]}],"parsedSize":429668,"gzipSize":113168}]}];
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
@@ -30,7 +30,7 @@
30
30
  ./specs/oneof1.yaml <<< nested oneof
31
31
  -->
32
32
  <rapi-doc
33
- spec-url = "./specs/temp.yaml"
33
+ spec-url = "./specs/aaa.yaml"
34
34
  id="thedoc"
35
35
  theme = "dark"
36
36
  render-style="read"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rapidoc",
3
- "version": "9.1.6",
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": {
@@ -32,13 +32,12 @@
32
32
  "module": "dist/rapidoc-min.js",
33
33
  "mode": "production",
34
34
  "dependencies": {
35
- "@apitools/openapi-parser": "^0.0.14",
35
+ "@apitools/openapi-parser": "^0.0.24",
36
36
  "base64-arraybuffer": "^1.0.2",
37
37
  "buffer": "^6.0.3",
38
- "lit-element": "2.5.1",
39
- "lit-html": "1.4.1",
38
+ "lit": "^2.2.0",
40
39
  "marked": "^4.0.12",
41
- "prismjs": "^1.27.0"
40
+ "prismjs": "^1.26.0"
42
41
  },
43
42
  "scripts": {
44
43
  "build": "NODE_ENV=production webpack --mode=production",
@@ -1,10 +1,9 @@
1
- import { LitElement, html, css } from 'lit-element';
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
- <td colspan="${(this.allowTry === 'true') ? '1' : '2'}">
418
- ${paramSchema.default || paramSchema.constrain || paramSchema.allowedValues || paramSchema.pattern
419
- ? html`
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
- </td>
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; margin-top:0; padding:0 5px 8px 5px;">
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-fill btn-try" @click="${this.onTryClick}">TRY</button>
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.paramSerializeStyle;
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
- this.responseMessage = `${err.message} (CORS or Network Issue)`;
1416
- document.dispatchEvent(new CustomEvent('after-try', {
1417
- bubbles: true,
1418
- composed: true,
1419
- detail: {
1420
- err,
1421
- request: fetchRequest,
1422
- response: responseClone,
1423
- responseStatus: responseClone.ok,
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-element';
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--resp ${this.selectedStatus === respStatus ? 'btn-fill--resp' : 'btn-outline--resp'} btn-response-status"
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 } from 'lit-element';
1
+ import { LitElement, html } from 'lit';
2
2
  import DialogBoxStyles from '~/styles/dialog-box-styles';
3
3
 
4
4
  export default class DialogBox extends LitElement {
@@ -1,4 +1,4 @@
1
- import { LitElement, html, css } from 'lit-element';
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-element';
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-element';
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
  `;
@@ -1,4 +1,4 @@
1
- import { LitElement, html, css } from 'lit-element';
1
+ import { LitElement, html, css } from 'lit';
2
2
 
3
3
  export default class TagInput extends LitElement {
4
4
  /* eslint-disable indent */
@@ -1,4 +1,4 @@
1
- import { css, LitElement } from 'lit-element';
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';
@@ -1,4 +1,4 @@
1
- import { css, LitElement } from 'lit-element';
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 = 'schema';
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-element';
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 = 'schema';
420
+ this.defaultSchemaTab = 'example';
421
421
  } else if (this.defaultSchemaTab === 'model') {
422
422
  this.defaultSchemaTab = 'schema';
423
423
  }