rapidoc 9.3.3 → 9.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/.github/workflow/words.yaml +22 -0
  2. package/README.md +2 -7
  3. package/dist/index.html +1 -1
  4. package/dist/index.html.gz +0 -0
  5. package/dist/rapidoc-min.js +858 -748
  6. package/dist/rapidoc-min.js.LICENSE.txt +14 -9
  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 -1
  10. package/dist/rapidoc-min.js.map.gz +0 -0
  11. package/dist/rapidoc.js +11948 -32008
  12. package/dist/report.html +6 -5
  13. package/index.html +2 -1
  14. package/package.json +25 -24
  15. package/src/components/api-request.js +266 -122
  16. package/src/components/api-response.js +11 -10
  17. package/src/components/json-tree.js +17 -12
  18. package/src/components/schema-table.js +58 -49
  19. package/src/components/schema-tree.js +60 -56
  20. package/src/components/tag-input.js +7 -4
  21. package/src/json-schema-viewer.js +2 -1
  22. package/src/rapidoc-mini.js +1 -1
  23. package/src/rapidoc.js +108 -35
  24. package/src/styles/endpoint-styles.js +1 -1
  25. package/src/styles/info-styles.js +2 -1
  26. package/src/styles/input-styles.js +2 -16
  27. package/src/styles/nav-styles.js +57 -10
  28. package/src/styles/schema-styles.js +27 -15
  29. package/src/styles/tab-styles.js +1 -0
  30. package/src/templates/advance-search-template.js +3 -3
  31. package/src/templates/callback-template.js +3 -3
  32. package/src/templates/code-samples-template.js +1 -0
  33. package/src/templates/components-template.js +3 -5
  34. package/src/templates/endpoint-template.js +39 -26
  35. package/src/templates/expanded-endpoint-template.js +58 -9
  36. package/src/templates/focused-endpoint-template.js +5 -2
  37. package/src/templates/header-template.js +2 -2
  38. package/src/templates/json-schema-viewer-template.js +2 -1
  39. package/src/templates/main-body-template.js +19 -18
  40. package/src/templates/navbar-template.js +99 -82
  41. package/src/templates/overview-template.js +1 -1
  42. package/src/templates/security-scheme-template.js +51 -27
  43. package/src/templates/server-template.js +1 -1
  44. package/src/utils/common-utils.js +2 -2
  45. package/src/utils/schema-utils.js +192 -67
  46. package/src/utils/spec-parser.js +9 -3
  47. package/src/utils/theme.js +9 -3
  48. package/webpack.config.js +2 -1
package/index.html CHANGED
@@ -31,7 +31,7 @@
31
31
  https://cesdev.eng.sonicwall.com/api/q/openapi
32
32
  -->
33
33
  <rapi-doc
34
- spec-url = "./specs/temp.yaml"
34
+ spec-url = "./specs/petstore.yaml"
35
35
  id="thedoc"
36
36
  theme = "dark"
37
37
  render-style="view"
@@ -50,6 +50,7 @@
50
50
  update-route="false"
51
51
  match-type="regex"
52
52
  persist-auth="true"
53
+ scroll-behavior="smooth"
53
54
  ></rapi-doc>
54
55
  <!--
55
56
  <rapi-doc-mini
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rapidoc",
3
- "version": "9.3.3",
3
+ "version": "9.3.5",
4
4
  "description": "RapiDoc - Open API spec viewer with built in console",
5
5
  "author": "Mrinmoy Majumdar <mrin9@yahoo.com>",
6
6
  "homepage": "https://rapidocweb.com",
@@ -33,12 +33,13 @@
33
33
  "module": "dist/rapidoc-min.js",
34
34
  "mode": "production",
35
35
  "dependencies": {
36
- "@apitools/openapi-parser": "^0.0.25",
36
+ "@apitools/openapi-parser": "0.0.32",
37
37
  "base64-arraybuffer": "^1.0.2",
38
38
  "buffer": "^6.0.3",
39
- "lit": "^2.2.7",
40
- "marked": "^4.0.17",
41
- "prismjs": "^1.28.0",
39
+ "lit": "^3.2.0",
40
+ "marked": "4.3.0",
41
+ "prismjs": "^1.29.0",
42
+ "randexp": "^0.5.3",
42
43
  "xml-but-prettier": "^1.0.1"
43
44
  },
44
45
  "scripts": {
@@ -51,32 +52,32 @@
51
52
  "lint-fix": "./node_modules/eslint/bin/eslint.js --fix ./src/**"
52
53
  },
53
54
  "devDependencies": {
54
- "@babel/core": "^7.18.6",
55
- "@babel/eslint-parser": "^7.18.2",
56
- "@babel/preset-env": "^7.18.6",
57
- "babel-loader": "^8.2.5",
55
+ "@babel/core": "^7.25.2",
56
+ "@babel/eslint-parser": "^7.25.1",
57
+ "@babel/preset-env": "^7.25.4",
58
+ "babel-loader": "^9.2.1",
58
59
  "babel-plugin-template-html-minifier": "^4.1.0",
59
60
  "clean-webpack-plugin": "^4.0.0",
60
- "compression-webpack-plugin": "^10.0.0",
61
- "css-loader": "^6.7.1",
62
- "eslint": "^8.19.0",
61
+ "compression-webpack-plugin": "^11.1.0",
62
+ "css-loader": "^7.1.2",
63
+ "eslint": "^8.57.1",
63
64
  "eslint-config-airbnb": "^19.0.4",
64
- "eslint-import-resolver-webpack": "^0.13.2",
65
- "eslint-plugin-import": "^2.26.0",
66
- "eslint-webpack-plugin": "3.2.0",
65
+ "eslint-import-resolver-webpack": "^0.13.9",
66
+ "eslint-plugin-import": "^2.30.0",
67
+ "eslint-webpack-plugin": "4.2.0",
67
68
  "file-loader": "^6.2.0",
68
- "filemanager-webpack-plugin": "^7.0.0",
69
- "html-webpack-plugin": "^5.5.0",
69
+ "filemanager-webpack-plugin": "^8.0.0",
70
+ "html-webpack-plugin": "^5.6.0",
70
71
  "inspectpack": "^4.7.1",
71
- "style-loader": "^3.3.1",
72
- "terser-webpack-plugin": "^5.3.3",
72
+ "style-loader": "^4.0.0",
73
+ "terser-webpack-plugin": "^5.3.10",
73
74
  "unminified-webpack-plugin": "^3.0.0",
74
- "webpack": "^5.73.0",
75
- "webpack-bundle-analyzer": "^4.5.0",
76
- "webpack-cli": "^4.10.0",
77
- "webpack-dev-server": "^4.9.3"
75
+ "webpack": "^5.94.0",
76
+ "webpack-bundle-analyzer": "^4.10.2",
77
+ "webpack-cli": "^5.1.4",
78
+ "webpack-dev-server": "4.11.1"
78
79
  },
79
80
  "engines": {
80
- "node": ">=10.21.0"
81
+ "node": ">=18.16.0"
81
82
  }
82
83
  }