rapidoc 9.3.2 → 9.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/.github/workflow/words.yaml +22 -0
  2. package/dist/index.html +1 -1
  3. package/dist/index.html.gz +0 -0
  4. package/dist/rapidoc-min.js +857 -738
  5. package/dist/rapidoc-min.js.LICENSE.txt +9 -10
  6. package/dist/rapidoc-min.js.LICENSE.txt.gz +0 -0
  7. package/dist/rapidoc-min.js.gz +0 -0
  8. package/dist/rapidoc-min.js.map +1 -1
  9. package/dist/rapidoc-min.js.map.gz +0 -0
  10. package/dist/rapidoc.js +9341 -25092
  11. package/dist/report.html +5 -4
  12. package/index.html +2 -3
  13. package/package.json +20 -19
  14. package/src/components/api-request.js +344 -154
  15. package/src/components/api-response.js +16 -12
  16. package/src/components/json-tree.js +17 -12
  17. package/src/components/schema-table.js +50 -42
  18. package/src/components/schema-tree.js +56 -53
  19. package/src/components/tag-input.js +7 -4
  20. package/src/json-schema-viewer.js +1 -2
  21. package/src/rapidoc-mini.js +1 -3
  22. package/src/rapidoc.js +112 -45
  23. package/src/styles/endpoint-styles.js +1 -1
  24. package/src/styles/font-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/callback-template.js +6 -7
  31. package/src/templates/code-samples-template.js +1 -0
  32. package/src/templates/components-template.js +3 -5
  33. package/src/templates/endpoint-template.js +41 -27
  34. package/src/templates/expanded-endpoint-template.js +63 -13
  35. package/src/templates/focused-endpoint-template.js +4 -1
  36. package/src/templates/header-template.js +2 -2
  37. package/src/templates/json-schema-viewer-template.js +2 -1
  38. package/src/templates/main-body-template.js +19 -18
  39. package/src/templates/navbar-template.js +98 -81
  40. package/src/templates/overview-template.js +1 -1
  41. package/src/templates/security-scheme-template.js +48 -25
  42. package/src/templates/server-template.js +1 -1
  43. package/src/utils/common-utils.js +2 -5
  44. package/src/utils/schema-utils.js +208 -83
  45. package/src/utils/spec-parser.js +1 -0
  46. package/src/utils/theme.js +11 -5
  47. package/webpack.config.js +2 -1
package/index.html CHANGED
@@ -31,10 +31,10 @@
31
31
  https://cesdev.eng.sonicwall.com/api/q/openapi
32
32
  -->
33
33
  <rapi-doc
34
- spec-url = "./specs/data-types.yaml"
34
+ spec-url = "./specs/temp.yaml"
35
35
  id="thedoc"
36
36
  theme = "dark"
37
- render-style="read"
37
+ render-style="view"
38
38
  schema-style="table"
39
39
  show-method-in-nav-bar = "true"
40
40
  use-path-in-nav-bar = "true"
@@ -47,7 +47,6 @@
47
47
  allow-spec-file-download="true"
48
48
  allow-server-selection = "true"
49
49
  allow-authentication = "true"
50
- use-summary-to-list-example = "true"
51
50
  update-route="false"
52
51
  match-type="regex"
53
52
  persist-auth="true"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rapidoc",
3
- "version": "9.3.2",
3
+ "version": "9.3.4",
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.24",
36
+ "@apitools/openapi-parser": "0.0.30",
37
37
  "base64-arraybuffer": "^1.0.2",
38
38
  "buffer": "^6.0.3",
39
- "lit": "^2.2.4",
40
- "marked": "^4.0.16",
41
- "prismjs": "^1.28.0"
39
+ "lit": "^2.6.1",
40
+ "marked": "^4.2.12",
41
+ "prismjs": "^1.29.0",
42
+ "xml-but-prettier": "^1.0.1"
42
43
  },
43
44
  "scripts": {
44
45
  "build": "NODE_ENV=production webpack --mode=production",
@@ -50,30 +51,30 @@
50
51
  "lint-fix": "./node_modules/eslint/bin/eslint.js --fix ./src/**"
51
52
  },
52
53
  "devDependencies": {
53
- "@babel/core": "^7.18.0",
54
- "@babel/eslint-parser": "^7.17.0",
55
- "@babel/preset-env": "^7.18.0",
56
- "babel-loader": "^8.2.5",
54
+ "@babel/core": "^7.20.12",
55
+ "@babel/eslint-parser": "^7.19.1",
56
+ "@babel/preset-env": "^7.20.2",
57
+ "babel-loader": "^9.1.2",
57
58
  "babel-plugin-template-html-minifier": "^4.1.0",
58
59
  "clean-webpack-plugin": "^4.0.0",
59
60
  "compression-webpack-plugin": "^10.0.0",
60
- "css-loader": "^6.7.1",
61
- "eslint": "^8.16.0",
61
+ "css-loader": "^6.7.3",
62
+ "eslint": "^8.32.0",
62
63
  "eslint-config-airbnb": "^19.0.4",
63
64
  "eslint-import-resolver-webpack": "^0.13.2",
64
- "eslint-plugin-import": "^2.26.0",
65
- "eslint-webpack-plugin": "3.1.1",
65
+ "eslint-plugin-import": "^2.27.0",
66
+ "eslint-webpack-plugin": "3.2.0",
66
67
  "file-loader": "^6.2.0",
67
- "filemanager-webpack-plugin": "^6.1.7",
68
+ "filemanager-webpack-plugin": "^8.0.0",
68
69
  "html-webpack-plugin": "^5.5.0",
69
70
  "inspectpack": "^4.7.1",
70
71
  "style-loader": "^3.3.1",
71
- "terser-webpack-plugin": "^5.3.1",
72
+ "terser-webpack-plugin": "^5.3.6",
72
73
  "unminified-webpack-plugin": "^3.0.0",
73
- "webpack": "^5.72.1",
74
- "webpack-bundle-analyzer": "^4.5.0",
75
- "webpack-cli": "^4.9.2",
76
- "webpack-dev-server": "^4.9.0"
74
+ "webpack": "^5.75.0",
75
+ "webpack-bundle-analyzer": "^4.7.0",
76
+ "webpack-cli": "^5.0.1",
77
+ "webpack-dev-server": "^4.11.1"
77
78
  },
78
79
  "engines": {
79
80
  "node": ">=10.21.0"