@redocly/openapi-docs 3.17.0 → 3.18.0-custom.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 (110) hide show
  1. package/dist/redocly-openapi-docs.min.js +3388 -2653
  2. package/lib/components/ApiInfo/ApiInfo.js +1 -1
  3. package/lib/components/ApiInfo/Metadata.js +1 -1
  4. package/lib/components/Callbacks/CallbackDetails.js +2 -2
  5. package/lib/components/ExpandAllButton/ExpandAllButton.js +2 -2
  6. package/lib/components/Language/LanguageList.js +1 -1
  7. package/lib/components/McpOverview/McpOverview.js +7 -3
  8. package/lib/components/OperationItem/OperationItem.js +10 -6
  9. package/lib/components/Overview/Overview.js +1 -1
  10. package/lib/components/PanelItem/styled.js +8 -4
  11. package/lib/components/PayloadSamples/PayloadSamples.js +1 -1
  12. package/lib/components/PayloadSamples/types.d.ts +1 -0
  13. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.js +1 -1
  14. package/lib/components/Request/RequestDetails.js +8 -2
  15. package/lib/components/Request/types.d.ts +1 -1
  16. package/lib/components/RequestParameters/Body.d.ts +1 -0
  17. package/lib/components/RequestParameters/Body.js +1 -1
  18. package/lib/components/RequestParameters/RequestParameters.d.ts +2 -1
  19. package/lib/components/RequestParameters/RequestParameters.js +1 -1
  20. package/lib/components/RequestSamples/Example.js +1 -1
  21. package/lib/components/RequestSamples/RequestSamples.js +2 -2
  22. package/lib/components/RequestSamples/useCodeSamples.d.ts +1 -1
  23. package/lib/components/RequestSamples/useCodeSamples.js +1 -1
  24. package/lib/components/ResponseSamples/ResponseSamples.js +1 -1
  25. package/lib/components/ResponseSamples/Summary.d.ts +2 -1
  26. package/lib/components/ResponseSamples/Summary.js +1 -1
  27. package/lib/components/Responses/OperationResponseList.d.ts +1 -0
  28. package/lib/components/Responses/OperationResponseList.js +3 -2
  29. package/lib/components/Responses/ResponseDetails.js +1 -1
  30. package/lib/components/Responses/styled.js +4 -2
  31. package/lib/components/Responses/types.d.ts +1 -0
  32. package/lib/components/RightPanel/RightPanel.js +5 -1
  33. package/lib/components/Samples/ExampleSwitch.js +1 -1
  34. package/lib/components/Schema/Schema.js +1 -1
  35. package/lib/components/SchemaDefinition/SchemaDefinition.js +5 -2
  36. package/lib/components/SectionContent/SectionContent.js +7 -5
  37. package/lib/components/SectionItem/SectionItem.js +1 -1
  38. package/lib/components/Security/OAuthScopes.d.ts +3 -3
  39. package/lib/components/Security/OAuthScopes.js +12 -11
  40. package/lib/components/Security/RequiredScopes.d.ts +6 -0
  41. package/lib/components/Security/RequiredScopes.js +17 -0
  42. package/lib/components/Security/RequiredScopesList.d.ts +14 -0
  43. package/lib/components/Security/RequiredScopesList.js +13 -0
  44. package/lib/components/Security/ScopeTagWithTooltip.d.ts +17 -0
  45. package/lib/components/Security/ScopeTagWithTooltip.js +33 -0
  46. package/lib/components/Security/Security.js +1 -1
  47. package/lib/components/Security/SecurityButton.js +14 -14
  48. package/lib/components/Security/SecurityFlow.js +18 -5
  49. package/lib/components/ServerList/ServerList.js +11 -11
  50. package/lib/components/ServerListDropdown/ServerListDropdown.js +1 -1
  51. package/lib/components/TagItem/OperationsNavigation.js +2 -2
  52. package/lib/components/TagItem/TagItem.js +50 -37
  53. package/lib/components/ViewNested/ViewNested.js +7 -7
  54. package/lib/components/common/BodyContent/BodyContent.d.ts +2 -0
  55. package/lib/components/common/BodyContent/BodyContent.js +4 -4
  56. package/lib/components/common/Dropdown/Dropdown.d.ts +2 -2
  57. package/lib/components/common/Dropdown/Dropdown.js +44 -10
  58. package/lib/components/common/Fields/fields.js +5 -3
  59. package/lib/components/common/OperationItemTitle.js +8 -6
  60. package/lib/components/common/SchemaSelection/SchemaSelection.js +1 -1
  61. package/lib/components/common/Select/Select.js +1 -1
  62. package/lib/components/common/Select/styled.d.ts +0 -1
  63. package/lib/components/common/Select/styled.js +19 -63
  64. package/lib/components/common/Select/types.d.ts +0 -3
  65. package/lib/components/common/styled.js +4 -4
  66. package/lib/icons/CSharpIcon/CSharpIcon.d.ts +2 -1
  67. package/lib/icons/CSharpIcon/CSharpIcon.js +1 -1
  68. package/lib/icons/CurlIcon/CurlIcon.d.ts +3 -2
  69. package/lib/icons/CurlIcon/CurlIcon.js +2 -2
  70. package/lib/icons/GOIcon/GOIcon.d.ts +2 -1
  71. package/lib/icons/GOIcon/GOIcon.js +1 -1
  72. package/lib/icons/JavaIcon/JavaIcon.d.ts +2 -1
  73. package/lib/icons/JavaIcon/JavaIcon.js +1 -1
  74. package/lib/icons/JavaScriptIcon/JavaScriptIcon.d.ts +2 -1
  75. package/lib/icons/JavaScriptIcon/JavaScriptIcon.js +1 -1
  76. package/lib/icons/NodeJSIcon/NodeJSIcon.d.ts +2 -1
  77. package/lib/icons/NodeJSIcon/NodeJSIcon.js +1 -1
  78. package/lib/icons/PHPIcon/PHPIcon.d.ts +2 -1
  79. package/lib/icons/PHPIcon/PHPIcon.js +1 -1
  80. package/lib/icons/PythonIcon/PythonIcon.d.ts +2 -1
  81. package/lib/icons/PythonIcon/PythonIcon.js +1 -1
  82. package/lib/icons/RIcon/RIcon.d.ts +2 -1
  83. package/lib/icons/RIcon/RIcon.js +1 -1
  84. package/lib/icons/RubyIcon/RubyIcon.d.ts +2 -1
  85. package/lib/icons/RubyIcon/RubyIcon.js +1 -1
  86. package/lib/index.d.ts +1 -0
  87. package/lib/index.js +1 -1
  88. package/lib/models/group.js +1 -1
  89. package/lib/models/operation.js +1 -1
  90. package/lib/models/request.js +1 -1
  91. package/lib/models/response.js +1 -1
  92. package/lib/models/schema.js +2 -2
  93. package/lib/models/types.d.ts +2 -0
  94. package/lib/services/menu/markdown.js +1 -1
  95. package/lib/services/menu/operation.js +1 -1
  96. package/lib/services/menu/tags.js +3 -3
  97. package/lib/services/types.d.ts +7 -0
  98. package/lib/types/index.d.ts +1 -0
  99. package/lib/types/index.js +1 -1
  100. package/lib/types/oauth2-types.d.ts +4 -0
  101. package/lib/types/oauth2-types.js +0 -0
  102. package/lib/types/open-api.d.ts +12 -0
  103. package/lib/utils/mcp.d.ts +1 -1
  104. package/lib/utils/mcp.js +1 -1
  105. package/lib/utils/openapi.d.ts +4 -1
  106. package/lib/utils/openapi.js +1 -1
  107. package/lib/utils/security-scope.d.ts +5 -0
  108. package/lib/utils/security-scope.js +1 -0
  109. package/lib/utils/string.js +1 -1
  110. package/package.json +21 -22
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/openapi-docs",
3
- "version": "3.17.0",
3
+ "version": "3.18.0-custom.0",
4
4
  "description": "Redocly OpenAPI Docs",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -14,23 +14,23 @@
14
14
  "npm": ">=10.0.0"
15
15
  },
16
16
  "peerDependencies": {
17
- "@redocly/theme": ">=0.61.0-next.0",
18
- "react": "19.2.3",
19
- "react-dom": "19.2.3",
17
+ "@redocly/theme": ">=0.62.0-custom.0",
18
+ "react": "^19.2.4",
19
+ "react-dom": "^19.2.4",
20
20
  "styled-components": "^4.1.1 || ^5.3.11 || ^6.0.0"
21
21
  },
22
22
  "dependencies": {
23
23
  "@markdoc/markdoc": "0.5.2",
24
- "@redocly/openapi-core": "2.14.3",
24
+ "@redocly/openapi-core": "2.17.0",
25
25
  "deepmerge": "^4.2.2",
26
26
  "dompurify": "3.2.7",
27
27
  "fast-deep-equal": "^3.1.3",
28
- "fast-xml-parser": "5.2.5",
28
+ "fast-xml-parser": "5.3.4",
29
29
  "jotai": "^2.12.5",
30
30
  "jotai-family": "^1.0.1",
31
31
  "json-pointer": "^0.6.2",
32
32
  "openapi-sampler": "1.6.2",
33
- "react-router-dom": "^6.21.1",
33
+ "react-router-dom": "^6.30.3",
34
34
  "slugify": "^1.4.4",
35
35
  "stringify-object": "^3.3.0",
36
36
  "styled-components": "^4.1.1 || ^5.3.11 || ^6.0.0",
@@ -38,11 +38,11 @@
38
38
  "url-template": "^2.0.8",
39
39
  "util": "~0.12.5",
40
40
  "web-vitals": "3.3.1",
41
- "@redocly/config": "0.41.2",
42
- "@redocly/replay": "0.20.0"
41
+ "@redocly/replay": "0.21.0-custom.0",
42
+ "@redocly/config": "0.43.0-custom.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@shikijs/transformers": "1.24.0",
45
+ "@shikijs/transformers": "3.21.0",
46
46
  "@testing-library/jest-dom": "6.6.3",
47
47
  "@testing-library/react": "16.3.0",
48
48
  "@testing-library/user-event": "14.6.1",
@@ -61,30 +61,29 @@
61
61
  "outdent": "0.8.0",
62
62
  "path-browserify": "1.0.1",
63
63
  "prettier-2": "npm:prettier@2.8.8",
64
- "react": "19.2.3",
65
- "react-dom": "19.2.3",
64
+ "react": "^19.2.4",
65
+ "react-dom": "^19.2.4",
66
66
  "rimraf": "5.0.7",
67
67
  "rollup-plugin-bundle-stats": "^4.20.2",
68
- "shiki": "1.24.4",
68
+ "shiki": "3.21.0",
69
69
  "styled-components": "5.3.11",
70
70
  "tsx": "4.20.3",
71
71
  "typescript": "5.9.3",
72
72
  "url": "~0.11.0",
73
73
  "vite": "7.2.6",
74
74
  "vitest": "4.0.10",
75
- "@redocly/theme": "0.61.0"
75
+ "@redocly/theme": "0.62.0-custom.0"
76
76
  },
77
77
  "scripts": {
78
- "start": "npm run copy-highlight-hook && vite",
79
- "build": "npm run clean && npm run build:lib && npm run build:standalone",
78
+ "start": "pnpm run copy-highlight-hook && vite",
79
+ "build": "pnpm run clean && pnpm run build:lib && pnpm run build:standalone",
80
80
  "build:lib": "tsc -p tsconfig.build.json && node scripts/minify.js lib",
81
81
  "build:standalone": "vite build && node scripts/minify.js dist",
82
- "prepare:community-source": "npx tsx scripts/prepare-community-source.ts --",
83
- "prepare:community-source-only": "npm run prepare:community-source --ignore /src/* private-readme.md",
84
- "prepare:community-dependencies": "npx tsx scripts/prepare-community-dependencies.ts",
85
- "apply:community-source": "npx tsx scripts/apply-changes-from-community-source.ts",
86
- "test": "npm run prepare:community-source && npm run test:redoc && vitest run",
87
- "test:redoc": "cd redoc && npm install ../../theme ../../redocly-config --no-save && npm run lint && npm run unit",
82
+ "prepare:community-source": "pnpx tsx scripts/prepare-community-source.ts --",
83
+ "prepare:community-source-only": "pnpm run prepare:community-source --ignore /src/* private-readme.md",
84
+ "prepare:community-dependencies": "pnpx tsx scripts/prepare-community-dependencies.ts",
85
+ "apply:community-source": "pnpx tsx scripts/apply-changes-from-community-source.ts",
86
+ "test": "vitest run",
88
87
  "unit": "vitest run",
89
88
  "unit:update": "vitest run -u",
90
89
  "unit:watch": "vitest",