@redocly/openapi-docs 3.18.0-next.1 → 3.18.0-next.10

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 (74) hide show
  1. package/dist/redocly-openapi-docs.min.js +3174 -2594
  2. package/lib/components/Callbacks/CallbackDetails.js +2 -2
  3. package/lib/components/ExpandAllButton/ExpandAllButton.js +2 -2
  4. package/lib/components/Language/LanguageList.js +1 -1
  5. package/lib/components/OperationItem/OperationItem.js +10 -6
  6. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.js +1 -1
  7. package/lib/components/Request/RequestDetails.js +8 -2
  8. package/lib/components/RequestSamples/Example.js +1 -1
  9. package/lib/components/RequestSamples/RequestSamples.js +1 -1
  10. package/lib/components/ResponseSamples/ResponseSamples.js +1 -1
  11. package/lib/components/Responses/OperationResponseList.js +2 -1
  12. package/lib/components/Responses/styled.js +4 -2
  13. package/lib/components/Samples/ExampleSwitch.js +1 -1
  14. package/lib/components/Schema/Schema.js +1 -1
  15. package/lib/components/SchemaDefinition/SchemaDefinition.js +5 -2
  16. package/lib/components/SectionContent/SectionContent.js +7 -5
  17. package/lib/components/SectionItem/SectionItem.js +1 -1
  18. package/lib/components/Security/OAuthScopes.d.ts +3 -3
  19. package/lib/components/Security/OAuthScopes.js +12 -11
  20. package/lib/components/Security/RequiredScopes.d.ts +6 -0
  21. package/lib/components/Security/RequiredScopes.js +17 -0
  22. package/lib/components/Security/RequiredScopesList.d.ts +14 -0
  23. package/lib/components/Security/RequiredScopesList.js +13 -0
  24. package/lib/components/Security/ScopeTagWithTooltip.d.ts +17 -0
  25. package/lib/components/Security/ScopeTagWithTooltip.js +33 -0
  26. package/lib/components/Security/Security.js +1 -1
  27. package/lib/components/Security/SecurityButton.js +14 -14
  28. package/lib/components/Security/SecurityFlow.js +18 -5
  29. package/lib/components/ServerListDropdown/ServerListDropdown.js +1 -1
  30. package/lib/components/TagItem/TagItem.js +50 -37
  31. package/lib/components/ViewNested/ViewNested.js +7 -7
  32. package/lib/components/common/Dropdown/Dropdown.d.ts +2 -2
  33. package/lib/components/common/Dropdown/Dropdown.js +44 -10
  34. package/lib/components/common/OperationItemTitle.js +8 -6
  35. package/lib/components/common/SchemaSelection/SchemaSelection.js +1 -1
  36. package/lib/components/common/Select/Select.js +1 -1
  37. package/lib/components/common/Select/styled.d.ts +0 -1
  38. package/lib/components/common/Select/styled.js +19 -63
  39. package/lib/components/common/Select/types.d.ts +0 -3
  40. package/lib/components/common/styled.js +4 -4
  41. package/lib/icons/CSharpIcon/CSharpIcon.d.ts +2 -1
  42. package/lib/icons/CSharpIcon/CSharpIcon.js +1 -1
  43. package/lib/icons/CurlIcon/CurlIcon.d.ts +3 -2
  44. package/lib/icons/CurlIcon/CurlIcon.js +2 -2
  45. package/lib/icons/GOIcon/GOIcon.d.ts +2 -1
  46. package/lib/icons/GOIcon/GOIcon.js +1 -1
  47. package/lib/icons/JavaIcon/JavaIcon.d.ts +2 -1
  48. package/lib/icons/JavaIcon/JavaIcon.js +1 -1
  49. package/lib/icons/JavaScriptIcon/JavaScriptIcon.d.ts +2 -1
  50. package/lib/icons/JavaScriptIcon/JavaScriptIcon.js +1 -1
  51. package/lib/icons/NodeJSIcon/NodeJSIcon.d.ts +2 -1
  52. package/lib/icons/NodeJSIcon/NodeJSIcon.js +1 -1
  53. package/lib/icons/PHPIcon/PHPIcon.d.ts +2 -1
  54. package/lib/icons/PHPIcon/PHPIcon.js +1 -1
  55. package/lib/icons/PythonIcon/PythonIcon.d.ts +2 -1
  56. package/lib/icons/PythonIcon/PythonIcon.js +1 -1
  57. package/lib/icons/RIcon/RIcon.d.ts +2 -1
  58. package/lib/icons/RIcon/RIcon.js +1 -1
  59. package/lib/icons/RubyIcon/RubyIcon.d.ts +2 -1
  60. package/lib/icons/RubyIcon/RubyIcon.js +1 -1
  61. package/lib/models/request.js +1 -1
  62. package/lib/models/response.js +1 -1
  63. package/lib/models/schema.js +2 -2
  64. package/lib/services/menu/tags.js +2 -2
  65. package/lib/types/index.d.ts +1 -0
  66. package/lib/types/index.js +1 -1
  67. package/lib/types/oauth2-types.d.ts +4 -0
  68. package/lib/types/oauth2-types.js +0 -0
  69. package/lib/types/open-api.d.ts +5 -0
  70. package/lib/utils/openapi.d.ts +3 -0
  71. package/lib/utils/openapi.js +1 -1
  72. package/lib/utils/security-scope.d.ts +5 -0
  73. package/lib/utils/security-scope.js +1 -0
  74. package/package.json +12 -13
@@ -1 +1 @@
1
- import{jsx as C,jsxs as l}from"react/jsx-runtime";import{styled as t}from"../../styled-components.js";const i=()=>l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",children:[l("g",{clipPath:"url(#clip0_6351_16166)",children:[C("path",{d:"M9.11124 3.58526C8.27951 4.17023 7.33687 4.83324 6.83177 5.93016C5.95448 7.8439 8.62693 9.93138 8.74115 10.0193C8.7677 10.0397 8.79948 10.0499 8.83115 10.0499C8.8648 10.0499 8.89848 10.0384 8.92583 10.0155C8.97888 9.97114 8.99393 9.89576 8.96208 9.83438C8.95241 9.81575 7.99313 7.95246 8.02878 6.61574C8.0414 6.15017 8.69295 5.62201 9.38272 5.06285C10.0145 4.55069 10.7306 3.97023 11.1496 3.29118C12.0694 1.79647 11.0471 0.326724 11.0367 0.312028C10.996 0.255005 10.9211 0.234368 10.857 0.262458C10.793 0.290724 10.7575 0.359947 10.7721 0.428396C10.7742 0.438134 10.973 1.41007 10.4198 2.41143C10.1919 2.82522 9.69115 3.17741 9.11124 3.58526Z",fill:"#DB380E"}),C("path",{d:"M12.6158 4.2449C12.6744 4.20071 12.6917 4.12009 12.6562 4.05576C12.6206 3.99142 12.5433 3.96305 12.4746 3.98913C12.3333 4.04285 9.01465 5.32209 9.01465 6.86774C9.01465 7.93322 9.46978 8.49608 9.80212 8.90713C9.93248 9.06835 10.045 9.20757 10.0821 9.32644C10.1865 9.66896 9.93916 10.2881 9.83513 10.4977C9.80514 10.558 9.81984 10.6311 9.87085 10.6751C9.89841 10.6989 9.93283 10.711 9.96728 10.711C9.9966 10.711 10.0261 10.7022 10.0515 10.6845C10.1086 10.6449 11.4461 9.69923 11.2062 8.55992C11.1168 8.12686 10.904 7.81046 10.7163 7.53125C10.4254 7.09865 10.2153 6.78618 10.534 6.20905C10.9074 5.53587 12.5986 4.25769 12.6158 4.2449Z",fill:"#DB380E"}),C("path",{d:"M3.97636 10.7348C3.91948 10.9052 3.94634 11.0741 4.05395 11.2236C4.41371 11.7231 5.68802 11.9981 7.64229 11.9981C7.6424 11.9981 7.64247 11.9981 7.64254 11.9981C7.90734 11.9981 8.1869 11.9929 8.47325 11.9826C11.5978 11.8708 12.7567 10.8974 12.8045 10.856C12.8566 10.8109 12.8705 10.7358 12.8381 10.675C12.8057 10.6143 12.7359 10.5838 12.6691 10.6022C11.5687 10.9026 9.51388 11.0093 8.08864 11.0093C6.49384 11.0093 5.68166 10.8944 5.48281 10.8096C5.58484 10.6695 6.21414 10.4193 6.99394 10.2659C7.06847 10.2513 7.11969 10.1825 7.11231 10.1069C7.10493 10.0313 7.04144 9.97363 6.96546 9.97363C6.50836 9.97363 4.21599 10.0103 3.97636 10.7348Z",fill:"#73A1FB"}),C("path",{d:"M14.4317 9.7334C13.7872 9.7334 13.1761 10.0564 13.1503 10.0701C13.0908 10.102 13.0605 10.1704 13.0769 10.236C13.0933 10.3016 13.1522 10.3477 13.2199 10.3478C13.2335 10.3478 14.5945 10.3589 14.7178 11.1365C14.827 11.8074 13.4301 12.8943 12.8826 13.2566C12.8234 13.2957 12.8005 13.3713 12.8279 13.4367C12.8513 13.4924 12.9055 13.5272 12.9639 13.5272C12.9741 13.5272 12.9844 13.5261 12.9947 13.5239C13.1246 13.4961 16.1731 12.8243 15.8507 11.0495C15.6541 9.96174 14.9705 9.7334 14.4317 9.7334Z",fill:"#73A1FB"}),C("path",{d:"M12.3413 13.0394C12.352 12.9825 12.3283 12.9247 12.281 12.8915L11.55 12.3795C11.5144 12.3545 11.4694 12.3467 11.4275 12.3578C11.4199 12.3597 10.6555 12.5607 9.54578 12.6839C9.10534 12.7333 8.61202 12.7594 8.11906 12.7594C7.0096 12.7594 6.28418 12.629 6.17853 12.5334C6.16454 12.5065 6.16897 12.4943 6.17147 12.4875C6.19066 12.4342 6.29353 12.3708 6.35984 12.3457C6.43307 12.3185 6.47255 12.239 6.44977 12.1644C6.42705 12.0896 6.35003 12.0456 6.27402 12.0638C5.5408 12.2408 5.18227 12.4882 5.20836 12.7992C5.25469 13.3507 6.532 13.6337 7.61183 13.7086C7.76711 13.7192 7.93505 13.7246 8.11087 13.7246C8.11098 13.7246 8.11105 13.7246 8.11115 13.7246C9.90673 13.7246 12.2086 13.1612 12.2316 13.1554C12.2878 13.1417 12.3307 13.0963 12.3413 13.0394Z",fill:"#73A1FB"}),C("path",{d:"M6.83099 14.2232C6.88636 14.1872 6.9109 14.1188 6.89124 14.0557C6.87166 13.9927 6.8127 13.9513 6.74647 13.9522C6.64821 13.9548 5.78498 13.9937 5.72454 14.5433C5.70626 14.7076 5.7533 14.8576 5.86443 14.9893C6.17437 15.3566 7.01102 15.5749 8.42174 15.6567C8.58863 15.6667 8.75815 15.6718 8.92567 15.6718C10.7192 15.6718 11.9271 15.1102 11.9777 15.0863C12.0267 15.0631 12.0591 15.0149 12.0619 14.9608C12.0648 14.9066 12.0378 14.8553 11.9915 14.827L11.0678 14.263C11.0357 14.2435 10.9974 14.237 10.9608 14.2445C10.955 14.2458 10.3685 14.3674 9.48332 14.4876C9.31584 14.5103 9.1061 14.5219 8.86 14.5219C7.97582 14.5219 6.99235 14.3774 6.80374 14.2828C6.801 14.2652 6.80448 14.2428 6.83099 14.2232Z",fill:"#73A1FB"}),C("path",{d:"M8.08944 17.3678C12.1976 17.3643 14.4025 16.6338 14.8273 16.174C14.9776 16.0114 14.9939 15.8574 14.9811 15.7568C14.9495 15.5093 14.7241 15.3578 14.6985 15.3413C14.6369 15.3017 14.5541 15.3121 14.506 15.3675C14.458 15.423 14.4569 15.5041 14.5051 15.5595C14.531 15.5929 14.5459 15.6486 14.4702 15.7245C14.3004 15.8831 12.5877 16.3645 9.73617 16.5091C9.34555 16.5294 8.93583 16.5397 8.51849 16.5398C5.96533 16.5398 4.0968 16.1901 3.85152 15.9863C3.94605 15.8504 4.60699 15.6334 5.30987 15.5107C5.38908 15.4968 5.44259 15.4222 5.43032 15.3427C5.41805 15.2633 5.34482 15.2087 5.26477 15.219C5.24494 15.2217 5.17765 15.2257 5.09974 15.2305C3.94001 15.3013 2.59981 15.4592 2.52988 16.0567C2.50865 16.2388 2.56275 16.4041 2.69076 16.5479C3.00397 16.8999 3.90422 17.3678 8.0893 17.3678C8.08937 17.3678 8.08937 17.3678 8.08944 17.3678Z",fill:"#73A1FB"}),C("path",{d:"M15.6342 16.3037C15.5762 16.2768 15.5075 16.2904 15.4642 16.3372C15.4582 16.3437 14.8406 16.9895 12.9835 17.3688C12.2725 17.5113 10.9379 17.5835 9.0169 17.5835C7.09226 17.5835 5.26086 17.5078 5.24261 17.507C5.16611 17.5033 5.10068 17.5589 5.09028 17.6342C5.07984 17.7094 5.12835 17.7804 5.20222 17.798C5.22127 17.8025 7.14056 18.2521 9.76478 18.2521C11.0234 18.2521 12.2482 18.1499 13.4052 17.9482C15.5624 17.57 15.7134 16.5003 15.7188 16.455C15.7263 16.3916 15.6922 16.3306 15.6342 16.3037Z",fill:"#73A1FB"})]}),C("defs",{children:C("clipPath",{id:"clip0_6351_16166",children:C("rect",{width:"18",height:"18",fill:"white",transform:"translate(0.200195 0.25)"})})})]}),s=t(i).attrs(()=>({"data-component-name":"icons/JavaIcon"}))``;export{i as Icon,s as JavaIcon};
1
+ import{jsx as C,jsxs as i}from"react/jsx-runtime";import{useUniqueSvgIds as s}from"@redocly/theme/core/openapi";import{styled as h}from"../../styled-components.js";const n=()=>{const l=s(),t=a=>l(a);return i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",children:[i("g",{clipPath:`url(#${t("clip0_6351_16166")})`,children:[C("path",{d:"M9.11124 3.58526C8.27951 4.17023 7.33687 4.83324 6.83177 5.93016C5.95448 7.8439 8.62693 9.93138 8.74115 10.0193C8.7677 10.0397 8.79948 10.0499 8.83115 10.0499C8.8648 10.0499 8.89848 10.0384 8.92583 10.0155C8.97888 9.97114 8.99393 9.89576 8.96208 9.83438C8.95241 9.81575 7.99313 7.95246 8.02878 6.61574C8.0414 6.15017 8.69295 5.62201 9.38272 5.06285C10.0145 4.55069 10.7306 3.97023 11.1496 3.29118C12.0694 1.79647 11.0471 0.326724 11.0367 0.312028C10.996 0.255005 10.9211 0.234368 10.857 0.262458C10.793 0.290724 10.7575 0.359947 10.7721 0.428396C10.7742 0.438134 10.973 1.41007 10.4198 2.41143C10.1919 2.82522 9.69115 3.17741 9.11124 3.58526Z",fill:"#DB380E"}),C("path",{d:"M12.6158 4.2449C12.6744 4.20071 12.6917 4.12009 12.6562 4.05576C12.6206 3.99142 12.5433 3.96305 12.4746 3.98913C12.3333 4.04285 9.01465 5.32209 9.01465 6.86774C9.01465 7.93322 9.46978 8.49608 9.80212 8.90713C9.93248 9.06835 10.045 9.20757 10.0821 9.32644C10.1865 9.66896 9.93916 10.2881 9.83513 10.4977C9.80514 10.558 9.81984 10.6311 9.87085 10.6751C9.89841 10.6989 9.93283 10.711 9.96728 10.711C9.9966 10.711 10.0261 10.7022 10.0515 10.6845C10.1086 10.6449 11.4461 9.69923 11.2062 8.55992C11.1168 8.12686 10.904 7.81046 10.7163 7.53125C10.4254 7.09865 10.2153 6.78618 10.534 6.20905C10.9074 5.53587 12.5986 4.25769 12.6158 4.2449Z",fill:"#DB380E"}),C("path",{d:"M3.97636 10.7348C3.91948 10.9052 3.94634 11.0741 4.05395 11.2236C4.41371 11.7231 5.68802 11.9981 7.64229 11.9981C7.6424 11.9981 7.64247 11.9981 7.64254 11.9981C7.90734 11.9981 8.1869 11.9929 8.47325 11.9826C11.5978 11.8708 12.7567 10.8974 12.8045 10.856C12.8566 10.8109 12.8705 10.7358 12.8381 10.675C12.8057 10.6143 12.7359 10.5838 12.6691 10.6022C11.5687 10.9026 9.51388 11.0093 8.08864 11.0093C6.49384 11.0093 5.68166 10.8944 5.48281 10.8096C5.58484 10.6695 6.21414 10.4193 6.99394 10.2659C7.06847 10.2513 7.11969 10.1825 7.11231 10.1069C7.10493 10.0313 7.04144 9.97363 6.96546 9.97363C6.50836 9.97363 4.21599 10.0103 3.97636 10.7348Z",fill:"#73A1FB"}),C("path",{d:"M14.4317 9.7334C13.7872 9.7334 13.1761 10.0564 13.1503 10.0701C13.0908 10.102 13.0605 10.1704 13.0769 10.236C13.0933 10.3016 13.1522 10.3477 13.2199 10.3478C13.2335 10.3478 14.5945 10.3589 14.7178 11.1365C14.827 11.8074 13.4301 12.8943 12.8826 13.2566C12.8234 13.2957 12.8005 13.3713 12.8279 13.4367C12.8513 13.4924 12.9055 13.5272 12.9639 13.5272C12.9741 13.5272 12.9844 13.5261 12.9947 13.5239C13.1246 13.4961 16.1731 12.8243 15.8507 11.0495C15.6541 9.96174 14.9705 9.7334 14.4317 9.7334Z",fill:"#73A1FB"}),C("path",{d:"M12.3413 13.0394C12.352 12.9825 12.3283 12.9247 12.281 12.8915L11.55 12.3795C11.5144 12.3545 11.4694 12.3467 11.4275 12.3578C11.4199 12.3597 10.6555 12.5607 9.54578 12.6839C9.10534 12.7333 8.61202 12.7594 8.11906 12.7594C7.0096 12.7594 6.28418 12.629 6.17853 12.5334C6.16454 12.5065 6.16897 12.4943 6.17147 12.4875C6.19066 12.4342 6.29353 12.3708 6.35984 12.3457C6.43307 12.3185 6.47255 12.239 6.44977 12.1644C6.42705 12.0896 6.35003 12.0456 6.27402 12.0638C5.5408 12.2408 5.18227 12.4882 5.20836 12.7992C5.25469 13.3507 6.532 13.6337 7.61183 13.7086C7.76711 13.7192 7.93505 13.7246 8.11087 13.7246C8.11098 13.7246 8.11105 13.7246 8.11115 13.7246C9.90673 13.7246 12.2086 13.1612 12.2316 13.1554C12.2878 13.1417 12.3307 13.0963 12.3413 13.0394Z",fill:"#73A1FB"}),C("path",{d:"M6.83099 14.2232C6.88636 14.1872 6.9109 14.1188 6.89124 14.0557C6.87166 13.9927 6.8127 13.9513 6.74647 13.9522C6.64821 13.9548 5.78498 13.9937 5.72454 14.5433C5.70626 14.7076 5.7533 14.8576 5.86443 14.9893C6.17437 15.3566 7.01102 15.5749 8.42174 15.6567C8.58863 15.6667 8.75815 15.6718 8.92567 15.6718C10.7192 15.6718 11.9271 15.1102 11.9777 15.0863C12.0267 15.0631 12.0591 15.0149 12.0619 14.9608C12.0648 14.9066 12.0378 14.8553 11.9915 14.827L11.0678 14.263C11.0357 14.2435 10.9974 14.237 10.9608 14.2445C10.955 14.2458 10.3685 14.3674 9.48332 14.4876C9.31584 14.5103 9.1061 14.5219 8.86 14.5219C7.97582 14.5219 6.99235 14.3774 6.80374 14.2828C6.801 14.2652 6.80448 14.2428 6.83099 14.2232Z",fill:"#73A1FB"}),C("path",{d:"M8.08944 17.3678C12.1976 17.3643 14.4025 16.6338 14.8273 16.174C14.9776 16.0114 14.9939 15.8574 14.9811 15.7568C14.9495 15.5093 14.7241 15.3578 14.6985 15.3413C14.6369 15.3017 14.5541 15.3121 14.506 15.3675C14.458 15.423 14.4569 15.5041 14.5051 15.5595C14.531 15.5929 14.5459 15.6486 14.4702 15.7245C14.3004 15.8831 12.5877 16.3645 9.73617 16.5091C9.34555 16.5294 8.93583 16.5397 8.51849 16.5398C5.96533 16.5398 4.0968 16.1901 3.85152 15.9863C3.94605 15.8504 4.60699 15.6334 5.30987 15.5107C5.38908 15.4968 5.44259 15.4222 5.43032 15.3427C5.41805 15.2633 5.34482 15.2087 5.26477 15.219C5.24494 15.2217 5.17765 15.2257 5.09974 15.2305C3.94001 15.3013 2.59981 15.4592 2.52988 16.0567C2.50865 16.2388 2.56275 16.4041 2.69076 16.5479C3.00397 16.8999 3.90422 17.3678 8.0893 17.3678C8.08937 17.3678 8.08937 17.3678 8.08944 17.3678Z",fill:"#73A1FB"}),C("path",{d:"M15.6342 16.3037C15.5762 16.2768 15.5075 16.2904 15.4642 16.3372C15.4582 16.3437 14.8406 16.9895 12.9835 17.3688C12.2725 17.5113 10.9379 17.5835 9.0169 17.5835C7.09226 17.5835 5.26086 17.5078 5.24261 17.507C5.16611 17.5033 5.10068 17.5589 5.09028 17.6342C5.07984 17.7094 5.12835 17.7804 5.20222 17.798C5.22127 17.8025 7.14056 18.2521 9.76478 18.2521C11.0234 18.2521 12.2482 18.1499 13.4052 17.9482C15.5624 17.57 15.7134 16.5003 15.7188 16.455C15.7263 16.3916 15.6922 16.3306 15.6342 16.3037Z",fill:"#73A1FB"})]}),C("defs",{children:C("clipPath",{id:t("clip0_6351_16166"),children:C("rect",{width:"18",height:"18",fill:"white",transform:"translate(0.200195 0.25)"})})})]})},e=h(n).attrs(()=>({"data-component-name":"icons/JavaIcon"}))``;export{n as Icon,e as JavaIcon};
@@ -1,2 +1,3 @@
1
- export declare const Icon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type ReactElement } from 'react';
2
+ export declare const Icon: () => ReactElement;
2
3
  export declare const JavaScriptIcon: any;
@@ -1 +1 @@
1
- import{jsx as t,jsxs as i}from"react/jsx-runtime";import{styled as l}from"../../styled-components.js";const c=()=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:[i("g",{clipPath:"url(#clip0_6336_14297)",children:[t("path",{d:"M14 0H0V14H14V0Z",fill:"#F7DF1E"}),t("path",{d:"M9.40475 10.9376C9.68675 11.398 10.0536 11.7365 10.7025 11.7365C11.2476 11.7365 11.5959 11.464 11.5959 11.0876C11.5959 10.6365 11.2381 10.4767 10.6381 10.2142L10.3092 10.0731C9.35986 9.66867 8.72919 9.16201 8.72919 8.0909C8.72919 7.10423 9.48097 6.35312 10.6559 6.35312C11.4923 6.35312 12.0936 6.64423 12.527 7.40645L11.5025 8.06423C11.277 7.65979 11.0336 7.50045 10.6559 7.50045C10.2705 7.50045 10.0263 7.7449 10.0263 8.06423C10.0263 8.4589 10.2707 8.61867 10.8352 8.86312L11.1641 9.00401C12.2819 9.48334 12.913 9.97201 12.913 11.0707C12.913 12.2551 11.9825 12.904 10.733 12.904C9.51119 12.904 8.72186 12.3218 8.33563 11.5587L9.40475 10.9376ZM4.75741 11.0516C4.96408 11.4182 5.15208 11.7282 5.60408 11.7282C6.0363 11.7282 6.30897 11.5591 6.30897 10.9016V6.42823H7.62452V10.9193C7.62452 12.2816 6.82586 12.9016 5.66008 12.9016C4.60675 12.9016 3.99675 12.3565 3.68652 11.6999L4.75741 11.0516Z",fill:"black"})]}),t("defs",{children:t("clipPath",{id:"clip0_6336_14297",children:t("rect",{width:"14",height:"14",fill:"white"})})})]}),s=l(c).attrs(()=>({"data-component-name":"icons/NodeJSIcon"}))``;export{c as Icon,s as JavaScriptIcon};
1
+ import{jsx as t,jsxs as o}from"react/jsx-runtime";import{useUniqueSvgIds as e}from"@redocly/theme/core/openapi";import{styled as l}from"../../styled-components.js";const n=()=>{const s=e(),i=c=>s(c);return o("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:[o("g",{clipPath:`url(#${i("clip0_6336_14297")})`,children:[t("path",{d:"M14 0H0V14H14V0Z",fill:"#F7DF1E"}),t("path",{d:"M9.40475 10.9376C9.68675 11.398 10.0536 11.7365 10.7025 11.7365C11.2476 11.7365 11.5959 11.464 11.5959 11.0876C11.5959 10.6365 11.2381 10.4767 10.6381 10.2142L10.3092 10.0731C9.35986 9.66867 8.72919 9.16201 8.72919 8.0909C8.72919 7.10423 9.48097 6.35312 10.6559 6.35312C11.4923 6.35312 12.0936 6.64423 12.527 7.40645L11.5025 8.06423C11.277 7.65979 11.0336 7.50045 10.6559 7.50045C10.2705 7.50045 10.0263 7.7449 10.0263 8.06423C10.0263 8.4589 10.2707 8.61867 10.8352 8.86312L11.1641 9.00401C12.2819 9.48334 12.913 9.97201 12.913 11.0707C12.913 12.2551 11.9825 12.904 10.733 12.904C9.51119 12.904 8.72186 12.3218 8.33563 11.5587L9.40475 10.9376ZM4.75741 11.0516C4.96408 11.4182 5.15208 11.7282 5.60408 11.7282C6.0363 11.7282 6.30897 11.5591 6.30897 10.9016V6.42823H7.62452V10.9193C7.62452 12.2816 6.82586 12.9016 5.66008 12.9016C4.60675 12.9016 3.99675 12.3565 3.68652 11.6999L4.75741 11.0516Z",fill:"black"})]}),t("defs",{children:t("clipPath",{id:i("clip0_6336_14297"),children:t("rect",{width:"14",height:"14",fill:"white"})})})]})},C=l(n).attrs(()=>({"data-component-name":"icons/NodeJSIcon"}))``;export{n as Icon,C as JavaScriptIcon};
@@ -1,2 +1,3 @@
1
- export declare const Icon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type ReactElement } from 'react';
2
+ export declare const Icon: () => ReactElement;
2
3
  export declare const NodeJSIcon: any;
@@ -1 +1 @@
1
- import{jsx as C,jsxs as o}from"react/jsx-runtime";import{styled as t}from"../../styled-components.js";const i=()=>o("svg",{width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C("g",{id:"nodejs-seeklogo.com 1",clipPath:"url(#clip0_6336_14396)",children:C("g",{id:"Group",children:C("path",{id:"Vector",d:"M8.72232 17.9666C8.47473 17.9666 8.24365 17.9006 8.02907 17.785L5.8338 16.4811C5.50368 16.2995 5.66874 16.2335 5.76777 16.2005C6.21343 16.0519 6.29596 16.0189 6.75812 15.7548C6.80764 15.7218 6.87366 15.7383 6.92318 15.7713L8.60678 16.7782C8.6728 16.8112 8.75533 16.8112 8.80485 16.7782L15.3907 12.9653C15.4567 12.9323 15.4897 12.8663 15.4897 12.7838V5.17458C15.4897 5.09205 15.4567 5.02603 15.3907 4.99302L8.80485 1.19667C8.73882 1.16366 8.6563 1.16366 8.60678 1.19667L2.02095 4.99302C1.95493 5.02603 1.92191 5.10856 1.92191 5.17458V12.7838C1.92191 12.8498 1.95493 12.9323 2.02095 12.9653L3.82009 14.0052C4.79393 14.5004 5.40465 13.9227 5.40465 13.345V5.83481C5.40465 5.73578 5.48717 5.63674 5.60272 5.63674H6.44451C6.54355 5.63674 6.64258 5.71927 6.64258 5.83481V13.345C6.64258 14.6489 5.93283 15.4082 4.69489 15.4082C4.31526 15.4082 4.01816 15.4082 3.17636 14.9956L1.44325 14.0052C1.01409 13.7576 0.75 13.2955 0.75 12.8003V5.19109C0.75 4.69591 1.01409 4.23375 1.44325 3.98616L8.02907 0.173311C8.44172 -0.0577704 9.00292 -0.0577704 9.41556 0.173311L16.0014 3.98616C16.4305 4.23375 16.6946 4.69591 16.6946 5.19109V12.8003C16.6946 13.2955 16.4305 13.7576 16.0014 14.0052L9.41556 17.8181C9.20099 17.9171 8.9534 17.9666 8.72232 17.9666ZM10.7525 12.7343C7.86401 12.7343 7.26981 11.4138 7.26981 10.2914C7.26981 10.1924 7.35233 10.0933 7.46788 10.0933H8.32618C8.42521 10.0933 8.50774 10.1593 8.50774 10.2584C8.63979 11.1332 9.01942 11.5623 10.769 11.5623C12.1555 11.5623 12.7497 11.2487 12.7497 10.506C12.7497 10.0768 12.5847 9.7632 10.4224 9.54863C8.62328 9.36706 7.50089 8.97092 7.50089 7.53491C7.50089 6.19794 8.62328 5.40566 10.5049 5.40566C12.6177 5.40566 13.6576 6.13192 13.7896 7.71648C13.7896 7.766 13.7731 7.81551 13.7401 7.86503C13.7071 7.89804 13.6576 7.93105 13.608 7.93105H12.7497C12.6672 7.93105 12.5847 7.86503 12.5682 7.7825C12.3701 6.87468 11.8584 6.57758 10.5049 6.57758C8.98641 6.57758 8.80485 7.10576 8.80485 7.5019C8.80485 7.98057 9.01942 8.12912 11.0661 8.39322C13.0964 8.65731 14.0537 9.03695 14.0537 10.4564C14.0372 11.909 12.8488 12.7343 10.7525 12.7343Z",fill:"#539E43"})})}),C("defs",{children:C("clipPath",{id:"clip0_6336_14396",children:C("rect",{width:"15.9446",height:"18",fill:"white",transform:"translate(0.75)"})})})]}),l=t(i).attrs(()=>({"data-component-name":"icons/NodeJSIcon"}))``;export{i as Icon,l as NodeJSIcon};
1
+ import{jsx as C,jsxs as e}from"react/jsx-runtime";import{useUniqueSvgIds as s}from"@redocly/theme/core/openapi";import{styled as n}from"../../styled-components.js";const r=()=>{const t=s(),o=i=>t(i);return e("svg",{width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C("g",{id:"nodejs-seeklogo.com 1",clipPath:`url(#${o("clip0_6336_14396")})`,children:C("g",{id:"Group",children:C("path",{id:"Vector",d:"M8.72232 17.9666C8.47473 17.9666 8.24365 17.9006 8.02907 17.785L5.8338 16.4811C5.50368 16.2995 5.66874 16.2335 5.76777 16.2005C6.21343 16.0519 6.29596 16.0189 6.75812 15.7548C6.80764 15.7218 6.87366 15.7383 6.92318 15.7713L8.60678 16.7782C8.6728 16.8112 8.75533 16.8112 8.80485 16.7782L15.3907 12.9653C15.4567 12.9323 15.4897 12.8663 15.4897 12.7838V5.17458C15.4897 5.09205 15.4567 5.02603 15.3907 4.99302L8.80485 1.19667C8.73882 1.16366 8.6563 1.16366 8.60678 1.19667L2.02095 4.99302C1.95493 5.02603 1.92191 5.10856 1.92191 5.17458V12.7838C1.92191 12.8498 1.95493 12.9323 2.02095 12.9653L3.82009 14.0052C4.79393 14.5004 5.40465 13.9227 5.40465 13.345V5.83481C5.40465 5.73578 5.48717 5.63674 5.60272 5.63674H6.44451C6.54355 5.63674 6.64258 5.71927 6.64258 5.83481V13.345C6.64258 14.6489 5.93283 15.4082 4.69489 15.4082C4.31526 15.4082 4.01816 15.4082 3.17636 14.9956L1.44325 14.0052C1.01409 13.7576 0.75 13.2955 0.75 12.8003V5.19109C0.75 4.69591 1.01409 4.23375 1.44325 3.98616L8.02907 0.173311C8.44172 -0.0577704 9.00292 -0.0577704 9.41556 0.173311L16.0014 3.98616C16.4305 4.23375 16.6946 4.69591 16.6946 5.19109V12.8003C16.6946 13.2955 16.4305 13.7576 16.0014 14.0052L9.41556 17.8181C9.20099 17.9171 8.9534 17.9666 8.72232 17.9666ZM10.7525 12.7343C7.86401 12.7343 7.26981 11.4138 7.26981 10.2914C7.26981 10.1924 7.35233 10.0933 7.46788 10.0933H8.32618C8.42521 10.0933 8.50774 10.1593 8.50774 10.2584C8.63979 11.1332 9.01942 11.5623 10.769 11.5623C12.1555 11.5623 12.7497 11.2487 12.7497 10.506C12.7497 10.0768 12.5847 9.7632 10.4224 9.54863C8.62328 9.36706 7.50089 8.97092 7.50089 7.53491C7.50089 6.19794 8.62328 5.40566 10.5049 5.40566C12.6177 5.40566 13.6576 6.13192 13.7896 7.71648C13.7896 7.766 13.7731 7.81551 13.7401 7.86503C13.7071 7.89804 13.6576 7.93105 13.608 7.93105H12.7497C12.6672 7.93105 12.5847 7.86503 12.5682 7.7825C12.3701 6.87468 11.8584 6.57758 10.5049 6.57758C8.98641 6.57758 8.80485 7.10576 8.80485 7.5019C8.80485 7.98057 9.01942 8.12912 11.0661 8.39322C13.0964 8.65731 14.0537 9.03695 14.0537 10.4564C14.0372 11.909 12.8488 12.7343 10.7525 12.7343Z",fill:"#539E43"})})}),C("defs",{children:C("clipPath",{id:o("clip0_6336_14396"),children:C("rect",{width:"15.9446",height:"18",fill:"white",transform:"translate(0.75)"})})})]})},h=n(r).attrs(()=>({"data-component-name":"icons/NodeJSIcon"}))``;export{r as Icon,h as NodeJSIcon};
@@ -1,2 +1,3 @@
1
- export declare const Icon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type ReactElement } from 'react';
2
+ export declare const Icon: () => ReactElement;
2
3
  export declare const PHPIcon: any;
@@ -1 +1 @@
1
- import{jsx as C,jsxs as t}from"react/jsx-runtime";import{styled as i}from"../../styled-components.js";const l=()=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"12",viewBox:"0 0 22 12",fill:"none",children:[t("g",{clipPath:"url(#clip0_6351_15636)",children:[C("mask",{id:"mask0_6351_15636",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"12",children:C("path",{d:"M0.394531 5.6623C0.394531 8.62697 4.96343 11.0304 10.5992 11.0304C16.235 11.0304 20.804 8.62697 20.804 5.6623C20.804 2.69767 16.235 0.294237 10.5992 0.294237C4.96343 0.294237 0.394531 2.69767 0.394531 5.6623Z",fill:"white"})}),C("g",{mask:"url(#mask0_6351_15636)",children:C("path",{d:"M0.394531 5.6623C0.394531 8.62697 4.96343 11.0304 10.5992 11.0304C16.235 11.0304 20.804 8.62697 20.804 5.6623C20.804 2.69767 16.235 0.294237 10.5992 0.294237C4.96343 0.294237 0.394531 2.69767 0.394531 5.6623Z",fill:"url(#paint0_radial_6351_15636)"})}),C("mask",{id:"mask1_6351_15636",maskUnits:"userSpaceOnUse",x:"-1",y:"-1",width:"23",height:"13",children:C("path",{d:"M-0.0302734 -0.315971H21.2295V11.6427H-0.0302734V-0.315971Z",fill:"white"})}),C("g",{mask:"url(#mask1_6351_15636)",children:C("path",{d:"M10.6 10.6319C16.0157 10.6319 20.4061 8.40699 20.4061 5.66241C20.4061 2.91786 16.0157 0.692893 10.6 0.692893C5.18435 0.692893 0.793945 2.91786 0.793945 5.66241C0.793945 8.40699 5.18435 10.6319 10.6 10.6319Z",fill:"#777BB3"})}),C("mask",{id:"mask2_6351_15636",maskUnits:"userSpaceOnUse",x:"-1",y:"-1",width:"23",height:"13",children:C("path",{d:"M-0.0302734 -0.315971H21.2295V11.6427H-0.0302734V-0.315971Z",fill:"white"})}),t("g",{mask:"url(#mask2_6351_15636)",children:[C("path",{d:"M5.93929 6.27975C6.3846 6.27975 6.71705 6.19763 6.92739 6.03575C7.13549 5.87552 7.27921 5.59793 7.35454 5.21071C7.42478 4.84878 7.39802 4.59606 7.27504 4.45968C7.14929 4.32038 6.87742 4.24974 6.46698 4.24974H5.75533L5.36081 6.27975H5.93929ZM3.61167 8.78036C3.57864 8.78036 3.54727 8.7656 3.52627 8.74006C3.50523 8.71456 3.4967 8.68097 3.50301 8.64852L4.54858 3.26894C4.5587 3.21694 4.60428 3.17937 4.65728 3.17937H6.91075C7.61896 3.17937 8.1461 3.37166 8.47744 3.75098C8.81055 4.13229 8.91341 4.6653 8.78316 5.33517C8.73016 5.60808 8.63899 5.86153 8.51221 6.08845C8.38528 6.31563 8.21752 6.52583 8.01352 6.71333C7.76933 6.94187 7.49295 7.10759 7.19281 7.20511C6.89742 7.30133 6.51807 7.35013 6.0653 7.35013H5.15283L4.89225 8.69075C4.88213 8.74279 4.83659 8.78036 4.78358 8.78036H3.61167Z",fill:"black"}),C("path",{d:"M5.84699 4.36107H6.46737C6.96273 4.36107 7.1348 4.46976 7.19326 4.53454C7.29026 4.64209 7.30857 4.86886 7.24623 5.19031C7.17618 5.55018 7.04633 5.80533 6.86023 5.94861C6.6697 6.09529 6.35996 6.16963 5.93967 6.16963H5.49551L5.84699 4.36107ZM6.91113 3.06924H4.65763C4.55162 3.06924 4.46049 3.14438 4.44027 3.24843L3.3947 8.62801C3.38208 8.69294 3.39913 8.76007 3.44117 8.81112C3.48324 8.86217 3.54592 8.89169 3.61206 8.89169H4.78393C4.88997 8.89169 4.9811 8.81655 5.00133 8.7125L5.24449 7.46145H6.06568C6.53008 7.46145 6.92102 7.41081 7.22755 7.31097C7.5428 7.20855 7.83283 7.03489 8.08954 6.79483C8.30184 6.59951 8.47671 6.38027 8.60922 6.14312C8.74176 5.90591 8.83699 5.64138 8.89224 5.35688C9.02936 4.65176 8.91797 4.08712 8.5612 3.67876C8.2079 3.27431 7.65271 3.06924 6.91113 3.06924ZM5.22684 6.39108H5.93967C6.41215 6.39108 6.76408 6.30209 6.99532 6.12408C7.22659 5.94603 7.38257 5.64887 7.46363 5.23246C7.54117 4.83266 7.50585 4.55052 7.35766 4.38616C7.20928 4.22181 6.91257 4.13961 6.46737 4.13961H5.66444L5.22684 6.39108ZM6.91113 3.29069C7.58904 3.29069 8.08359 3.4686 8.39444 3.82444C8.70526 4.18028 8.79886 4.67697 8.67484 5.31466C8.6238 5.57734 8.53747 5.81751 8.41592 6.03509C8.29423 6.25282 8.13534 6.45191 7.93898 6.63243C7.70498 6.85142 7.44502 7.00747 7.15898 7.10041C6.87293 7.1936 6.5086 7.24 6.06568 7.24H5.0619L4.78393 8.67024H3.61206L4.65763 3.29069H6.91113Z",fill:"white"}),C("path",{d:"M11.4707 7.35074C11.4376 7.35074 11.4063 7.33597 11.3853 7.31043C11.3642 7.28493 11.3557 7.25138 11.362 7.2189L11.8245 4.83865C11.8685 4.61228 11.8576 4.44981 11.794 4.38116C11.755 4.33919 11.6379 4.2688 11.2917 4.2688H10.4538L9.87231 7.26112C9.8622 7.31316 9.81662 7.35074 9.76361 7.35074H8.60097C8.5679 7.35074 8.53656 7.33597 8.51552 7.31043C8.49449 7.28493 8.48596 7.25134 8.49227 7.2189L9.53784 1.83932C9.54795 1.78731 9.59354 1.74974 9.64654 1.74974H10.8092C10.8423 1.74974 10.8736 1.7645 10.8946 1.79001C10.9157 1.81555 10.9242 1.8491 10.9179 1.88158L10.6656 3.17998H11.567C12.2537 3.17998 12.7193 3.30104 12.9905 3.55011C13.267 3.80419 13.3532 4.21045 13.2469 4.75774L12.7605 7.26112C12.7504 7.31316 12.7048 7.35074 12.6518 7.35074H11.4707Z",fill:"black"}),C("path",{d:"M10.8086 1.63955H9.64594C9.5399 1.63955 9.44877 1.7147 9.42855 1.81874L8.38298 7.19833C8.37036 7.26325 8.38741 7.33039 8.42949 7.38143C8.47156 7.43248 8.53423 7.46201 8.60038 7.46201H9.76302C9.86903 7.46201 9.96019 7.38686 9.98042 7.28281L10.5445 4.38007H11.2911C11.6367 4.38007 11.7093 4.45389 11.7122 4.45706C11.7331 4.47962 11.7607 4.58407 11.7152 4.81808L11.2527 7.19833C11.2401 7.26325 11.2571 7.33039 11.2992 7.38143C11.3413 7.43248 11.4039 7.46201 11.4701 7.46201H12.6512C12.7572 7.46201 12.8484 7.38686 12.8686 7.28281L13.355 4.77943C13.4692 4.1918 13.3715 3.75099 13.0649 3.46915C12.7722 3.20041 12.2821 3.06979 11.5664 3.06979H10.7993L11.026 1.90327C11.0386 1.83834 11.0216 1.77117 10.9795 1.72016C10.9374 1.66911 10.8747 1.63955 10.8086 1.63955ZM10.8086 1.86101L10.5306 3.29124H11.5664C12.2181 3.29124 12.6676 3.405 12.915 3.63221C13.1624 3.85958 13.2365 4.22797 13.1376 4.73721L12.6512 7.24055H11.4701L11.9326 4.86034C11.9852 4.58957 11.9659 4.40487 11.8745 4.3064C11.7831 4.20793 11.5886 4.15862 11.2911 4.15862H10.3619L9.76302 7.24055H8.60038L9.64594 1.86101H10.8086Z",fill:"white"}),C("path",{d:"M15.0867 6.27975C15.5321 6.27975 15.8645 6.19763 16.0748 6.03575C16.2829 5.87556 16.4267 5.59796 16.502 5.21071C16.5723 4.84878 16.5455 4.59606 16.4225 4.45968C16.2967 4.32038 16.0249 4.24974 15.6144 4.24974H14.9028L14.5083 6.27975H15.0867ZM12.7592 8.78036C12.7261 8.78036 12.6948 8.7656 12.6738 8.74006C12.6527 8.71456 12.6442 8.68097 12.6505 8.64852L13.696 3.26894C13.7062 3.21694 13.7517 3.17937 13.8048 3.17937H16.0582C16.7665 3.17937 17.2936 3.37166 17.6249 3.75098C17.958 4.13225 18.0609 4.66526 17.9307 5.33517C17.8776 5.60808 17.7864 5.86153 17.6597 6.08845C17.5327 6.31563 17.365 6.52583 17.161 6.71333C16.9168 6.94187 16.6404 7.10759 16.3403 7.20511C16.0449 7.30133 15.6655 7.35013 15.2128 7.35013H14.3002L14.0398 8.69075C14.0296 8.74279 13.9841 8.78036 13.931 8.78036H12.7592Z",fill:"black"}),C("path",{d:"M14.9934 4.36107H15.6138C16.1092 4.36107 16.2812 4.46976 16.3397 4.53454C16.4367 4.64209 16.4551 4.86887 16.3927 5.19027C16.3226 5.55018 16.1927 5.80533 16.0067 5.94861C15.8162 6.09529 15.5064 6.16963 15.0861 6.16963H14.642L14.9934 4.36107ZM16.0576 3.06924H13.8041C13.6981 3.06924 13.607 3.14438 13.5868 3.24843L12.5412 8.62801C12.5286 8.69294 12.5456 8.76007 12.5877 8.81112C12.6297 8.86217 12.6924 8.89169 12.7585 8.89169H13.9304C14.0364 8.89169 14.1276 8.81655 14.1478 8.7125L14.3909 7.46145H15.2121C15.6765 7.46145 16.0675 7.41081 16.374 7.31097C16.6892 7.20855 16.9794 7.03486 17.2361 6.79476C17.4484 6.59947 17.6232 6.38027 17.7557 6.14312C17.8882 5.90591 17.9834 5.64138 18.0387 5.35688C18.1758 4.65173 18.0644 4.08709 17.7076 3.67872C17.3544 3.27431 16.7992 3.06924 16.0576 3.06924ZM14.3733 6.39108H15.0861C15.5586 6.39108 15.9105 6.30209 16.1418 6.12408C16.3731 5.94603 16.529 5.64887 16.6101 5.23246C16.6877 4.83266 16.6523 4.55052 16.5041 4.38616C16.3557 4.22181 16.059 4.13961 15.6138 4.13961H14.8109L14.3733 6.39108ZM16.0576 3.29069C16.7355 3.29069 17.23 3.4686 17.5409 3.82444C17.8517 4.18028 17.9453 4.67697 17.8213 5.31466C17.7702 5.57734 17.6839 5.81751 17.5624 6.03509C17.4407 6.25282 17.2818 6.45191 17.0854 6.63243C16.8514 6.85142 16.5915 7.00747 16.3054 7.10041C16.0194 7.1936 15.655 7.24 15.2121 7.24H14.2083L13.9304 8.67024H12.7585L13.8041 3.29069H16.0576Z",fill:"white"})]})]}),t("defs",{children:[t("radialGradient",{id:"paint0_radial_6351_15636",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(6.52149 2.18148) scale(13.4002)",children:[C("stop",{stopColor:"#AEB2D5"}),C("stop",{offset:"0.3",stopColor:"#AEB2D5"}),C("stop",{offset:"0.75",stopColor:"#484C89"}),C("stop",{offset:"1",stopColor:"#484C89"})]}),C("clipPath",{id:"clip0_6351_15636",children:C("rect",{width:"21",height:"11.3267",fill:"white",transform:"translate(0.0996094)"})})]})]}),e=i(l).attrs(()=>({"data-component-name":"icons/PHPIcon"}))``;export{l as Icon,e as PHPIcon};
1
+ import{jsx as C,jsxs as i}from"react/jsx-runtime";import{useUniqueSvgIds as a}from"@redocly/theme/core/openapi";import{styled as e}from"../../styled-components.js";const H=()=>{const s=a(),t=l=>s(l);return i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"12",viewBox:"0 0 22 12",fill:"none",children:[i("g",{clipPath:`url(#${t("clip0_6351_15636")})`,children:[C("mask",{id:t("mask0_6351_15636"),maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"12",children:C("path",{d:"M0.394531 5.6623C0.394531 8.62697 4.96343 11.0304 10.5992 11.0304C16.235 11.0304 20.804 8.62697 20.804 5.6623C20.804 2.69767 16.235 0.294237 10.5992 0.294237C4.96343 0.294237 0.394531 2.69767 0.394531 5.6623Z",fill:"white"})}),C("g",{mask:`url(#${t("mask0_6351_15636")})`,children:C("path",{d:"M0.394531 5.6623C0.394531 8.62697 4.96343 11.0304 10.5992 11.0304C16.235 11.0304 20.804 8.62697 20.804 5.6623C20.804 2.69767 16.235 0.294237 10.5992 0.294237C4.96343 0.294237 0.394531 2.69767 0.394531 5.6623Z",fill:`url(#${t("paint0_radial_6351_15636")})`})}),C("mask",{id:t("mask1_6351_15636"),maskUnits:"userSpaceOnUse",x:"-1",y:"-1",width:"23",height:"13",children:C("path",{d:"M-0.0302734 -0.315971H21.2295V11.6427H-0.0302734V-0.315971Z",fill:"white"})}),C("g",{mask:`url(#${t("mask1_6351_15636")})`,children:C("path",{d:"M10.6 10.6319C16.0157 10.6319 20.4061 8.40699 20.4061 5.66241C20.4061 2.91786 16.0157 0.692893 10.6 0.692893C5.18435 0.692893 0.793945 2.91786 0.793945 5.66241C0.793945 8.40699 5.18435 10.6319 10.6 10.6319Z",fill:"#777BB3"})}),C("mask",{id:t("mask2_6351_15636"),maskUnits:"userSpaceOnUse",x:"-1",y:"-1",width:"23",height:"13",children:C("path",{d:"M-0.0302734 -0.315971H21.2295V11.6427H-0.0302734V-0.315971Z",fill:"white"})}),i("g",{mask:`url(#${t("mask2_6351_15636")})`,children:[C("path",{d:"M5.93929 6.27975C6.3846 6.27975 6.71705 6.19763 6.92739 6.03575C7.13549 5.87552 7.27921 5.59793 7.35454 5.21071C7.42478 4.84878 7.39802 4.59606 7.27504 4.45968C7.14929 4.32038 6.87742 4.24974 6.46698 4.24974H5.75533L5.36081 6.27975H5.93929ZM3.61167 8.78036C3.57864 8.78036 3.54727 8.7656 3.52627 8.74006C3.50523 8.71456 3.4967 8.68097 3.50301 8.64852L4.54858 3.26894C4.5587 3.21694 4.60428 3.17937 4.65728 3.17937H6.91075C7.61896 3.17937 8.1461 3.37166 8.47744 3.75098C8.81055 4.13229 8.91341 4.6653 8.78316 5.33517C8.73016 5.60808 8.63899 5.86153 8.51221 6.08845C8.38528 6.31563 8.21752 6.52583 8.01352 6.71333C7.76933 6.94187 7.49295 7.10759 7.19281 7.20511C6.89742 7.30133 6.51807 7.35013 6.0653 7.35013H5.15283L4.89225 8.69075C4.88213 8.74279 4.83659 8.78036 4.78358 8.78036H3.61167Z",fill:"black"}),C("path",{d:"M5.84699 4.36107H6.46737C6.96273 4.36107 7.1348 4.46976 7.19326 4.53454C7.29026 4.64209 7.30857 4.86886 7.24623 5.19031C7.17618 5.55018 7.04633 5.80533 6.86023 5.94861C6.6697 6.09529 6.35996 6.16963 5.93967 6.16963H5.49551L5.84699 4.36107ZM6.91113 3.06924H4.65763C4.55162 3.06924 4.46049 3.14438 4.44027 3.24843L3.3947 8.62801C3.38208 8.69294 3.39913 8.76007 3.44117 8.81112C3.48324 8.86217 3.54592 8.89169 3.61206 8.89169H4.78393C4.88997 8.89169 4.9811 8.81655 5.00133 8.7125L5.24449 7.46145H6.06568C6.53008 7.46145 6.92102 7.41081 7.22755 7.31097C7.5428 7.20855 7.83283 7.03489 8.08954 6.79483C8.30184 6.59951 8.47671 6.38027 8.60922 6.14312C8.74176 5.90591 8.83699 5.64138 8.89224 5.35688C9.02936 4.65176 8.91797 4.08712 8.5612 3.67876C8.2079 3.27431 7.65271 3.06924 6.91113 3.06924ZM5.22684 6.39108H5.93967C6.41215 6.39108 6.76408 6.30209 6.99532 6.12408C7.22659 5.94603 7.38257 5.64887 7.46363 5.23246C7.54117 4.83266 7.50585 4.55052 7.35766 4.38616C7.20928 4.22181 6.91257 4.13961 6.46737 4.13961H5.66444L5.22684 6.39108ZM6.91113 3.29069C7.58904 3.29069 8.08359 3.4686 8.39444 3.82444C8.70526 4.18028 8.79886 4.67697 8.67484 5.31466C8.6238 5.57734 8.53747 5.81751 8.41592 6.03509C8.29423 6.25282 8.13534 6.45191 7.93898 6.63243C7.70498 6.85142 7.44502 7.00747 7.15898 7.10041C6.87293 7.1936 6.5086 7.24 6.06568 7.24H5.0619L4.78393 8.67024H3.61206L4.65763 3.29069H6.91113Z",fill:"white"}),C("path",{d:"M11.4707 7.35074C11.4376 7.35074 11.4063 7.33597 11.3853 7.31043C11.3642 7.28493 11.3557 7.25138 11.362 7.2189L11.8245 4.83865C11.8685 4.61228 11.8576 4.44981 11.794 4.38116C11.755 4.33919 11.6379 4.2688 11.2917 4.2688H10.4538L9.87231 7.26112C9.8622 7.31316 9.81662 7.35074 9.76361 7.35074H8.60097C8.5679 7.35074 8.53656 7.33597 8.51552 7.31043C8.49449 7.28493 8.48596 7.25134 8.49227 7.2189L9.53784 1.83932C9.54795 1.78731 9.59354 1.74974 9.64654 1.74974H10.8092C10.8423 1.74974 10.8736 1.7645 10.8946 1.79001C10.9157 1.81555 10.9242 1.8491 10.9179 1.88158L10.6656 3.17998H11.567C12.2537 3.17998 12.7193 3.30104 12.9905 3.55011C13.267 3.80419 13.3532 4.21045 13.2469 4.75774L12.7605 7.26112C12.7504 7.31316 12.7048 7.35074 12.6518 7.35074H11.4707Z",fill:"black"}),C("path",{d:"M10.8086 1.63955H9.64594C9.5399 1.63955 9.44877 1.7147 9.42855 1.81874L8.38298 7.19833C8.37036 7.26325 8.38741 7.33039 8.42949 7.38143C8.47156 7.43248 8.53423 7.46201 8.60038 7.46201H9.76302C9.86903 7.46201 9.96019 7.38686 9.98042 7.28281L10.5445 4.38007H11.2911C11.6367 4.38007 11.7093 4.45389 11.7122 4.45706C11.7331 4.47962 11.7607 4.58407 11.7152 4.81808L11.2527 7.19833C11.2401 7.26325 11.2571 7.33039 11.2992 7.38143C11.3413 7.43248 11.4039 7.46201 11.4701 7.46201H12.6512C12.7572 7.46201 12.8484 7.38686 12.8686 7.28281L13.355 4.77943C13.4692 4.1918 13.3715 3.75099 13.0649 3.46915C12.7722 3.20041 12.2821 3.06979 11.5664 3.06979H10.7993L11.026 1.90327C11.0386 1.83834 11.0216 1.77117 10.9795 1.72016C10.9374 1.66911 10.8747 1.63955 10.8086 1.63955ZM10.8086 1.86101L10.5306 3.29124H11.5664C12.2181 3.29124 12.6676 3.405 12.915 3.63221C13.1624 3.85958 13.2365 4.22797 13.1376 4.73721L12.6512 7.24055H11.4701L11.9326 4.86034C11.9852 4.58957 11.9659 4.40487 11.8745 4.3064C11.7831 4.20793 11.5886 4.15862 11.2911 4.15862H10.3619L9.76302 7.24055H8.60038L9.64594 1.86101H10.8086Z",fill:"white"}),C("path",{d:"M15.0867 6.27975C15.5321 6.27975 15.8645 6.19763 16.0748 6.03575C16.2829 5.87556 16.4267 5.59796 16.502 5.21071C16.5723 4.84878 16.5455 4.59606 16.4225 4.45968C16.2967 4.32038 16.0249 4.24974 15.6144 4.24974H14.9028L14.5083 6.27975H15.0867ZM12.7592 8.78036C12.7261 8.78036 12.6948 8.7656 12.6738 8.74006C12.6527 8.71456 12.6442 8.68097 12.6505 8.64852L13.696 3.26894C13.7062 3.21694 13.7517 3.17937 13.8048 3.17937H16.0582C16.7665 3.17937 17.2936 3.37166 17.6249 3.75098C17.958 4.13225 18.0609 4.66526 17.9307 5.33517C17.8776 5.60808 17.7864 5.86153 17.6597 6.08845C17.5327 6.31563 17.365 6.52583 17.161 6.71333C16.9168 6.94187 16.6404 7.10759 16.3403 7.20511C16.0449 7.30133 15.6655 7.35013 15.2128 7.35013H14.3002L14.0398 8.69075C14.0296 8.74279 13.9841 8.78036 13.931 8.78036H12.7592Z",fill:"black"}),C("path",{d:"M14.9934 4.36107H15.6138C16.1092 4.36107 16.2812 4.46976 16.3397 4.53454C16.4367 4.64209 16.4551 4.86887 16.3927 5.19027C16.3226 5.55018 16.1927 5.80533 16.0067 5.94861C15.8162 6.09529 15.5064 6.16963 15.0861 6.16963H14.642L14.9934 4.36107ZM16.0576 3.06924H13.8041C13.6981 3.06924 13.607 3.14438 13.5868 3.24843L12.5412 8.62801C12.5286 8.69294 12.5456 8.76007 12.5877 8.81112C12.6297 8.86217 12.6924 8.89169 12.7585 8.89169H13.9304C14.0364 8.89169 14.1276 8.81655 14.1478 8.7125L14.3909 7.46145H15.2121C15.6765 7.46145 16.0675 7.41081 16.374 7.31097C16.6892 7.20855 16.9794 7.03486 17.2361 6.79476C17.4484 6.59947 17.6232 6.38027 17.7557 6.14312C17.8882 5.90591 17.9834 5.64138 18.0387 5.35688C18.1758 4.65173 18.0644 4.08709 17.7076 3.67872C17.3544 3.27431 16.7992 3.06924 16.0576 3.06924ZM14.3733 6.39108H15.0861C15.5586 6.39108 15.9105 6.30209 16.1418 6.12408C16.3731 5.94603 16.529 5.64887 16.6101 5.23246C16.6877 4.83266 16.6523 4.55052 16.5041 4.38616C16.3557 4.22181 16.059 4.13961 15.6138 4.13961H14.8109L14.3733 6.39108ZM16.0576 3.29069C16.7355 3.29069 17.23 3.4686 17.5409 3.82444C17.8517 4.18028 17.9453 4.67697 17.8213 5.31466C17.7702 5.57734 17.6839 5.81751 17.5624 6.03509C17.4407 6.25282 17.2818 6.45191 17.0854 6.63243C16.8514 6.85142 16.5915 7.00747 16.3054 7.10041C16.0194 7.1936 15.655 7.24 15.2121 7.24H14.2083L13.9304 8.67024H12.7585L13.8041 3.29069H16.0576Z",fill:"white"})]})]}),i("defs",{children:[i("radialGradient",{id:t("paint0_radial_6351_15636"),cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(6.52149 2.18148) scale(13.4002)",children:[C("stop",{stopColor:"#AEB2D5"}),C("stop",{offset:"0.3",stopColor:"#AEB2D5"}),C("stop",{offset:"0.75",stopColor:"#484C89"}),C("stop",{offset:"1",stopColor:"#484C89"})]}),C("clipPath",{id:t("clip0_6351_15636"),children:C("rect",{width:"21",height:"11.3267",fill:"white",transform:"translate(0.0996094)"})})]})]})},n=e(H).attrs(()=>({"data-component-name":"icons/PHPIcon"}))``;export{H as Icon,n as PHPIcon};
@@ -1,2 +1,3 @@
1
- export declare const Icon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type ReactElement } from 'react';
2
+ export declare const Icon: () => ReactElement;
2
3
  export declare const PythonIcon: any;
@@ -1 +1 @@
1
- import{jsx as t,jsxs as i}from"react/jsx-runtime";import{styled as e}from"../../styled-components.js";const n=()=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[i("g",{clipPath:"url(#clip0_6336_14290)",children:[t("path",{d:"M5.5928 9.36167e-05C5.12601 0.00226256 4.68024 0.0420729 4.28801 0.111479C3.13253 0.315613 2.92274 0.742882 2.92274 1.53084V2.57149H5.65327V2.91838H2.92274H1.898C1.10444 2.91838 0.409568 3.39536 0.192222 4.30273C-0.0584838 5.3428 -0.069604 5.99182 0.192222 7.07781C0.386317 7.88618 0.849843 8.46217 1.64341 8.46217H2.58223V7.21466C2.58223 6.3134 3.36201 5.51842 4.28801 5.51842H7.01535C7.77454 5.51842 8.38061 4.89333 8.38061 4.13088V1.53084C8.38061 0.790854 7.75634 0.234979 7.01535 0.111479C6.54628 0.0333971 6.05959 -0.00207535 5.5928 9.36167e-05ZM4.11616 0.837072C4.3982 0.837072 4.62853 1.07116 4.62853 1.35899C4.62853 1.6458 4.3982 1.87773 4.11616 1.87773C3.8331 1.87773 3.60378 1.6458 3.60378 1.35899C3.60378 1.07116 3.8331 0.837072 4.11616 0.837072Z",fill:"url(#paint0_linear_6336_14290)"}),t("path",{d:"M8.72123 2.91797V4.13047C8.72123 5.07051 7.92426 5.86171 7.01545 5.86171H4.28811C3.54105 5.86171 2.92285 6.5011 2.92285 7.24925V9.84929C2.92285 10.5893 3.56632 11.0245 4.28811 11.2368C5.15244 11.491 5.98129 11.5369 7.01545 11.2368C7.70287 11.0378 8.38071 10.6373 8.38071 9.84929V8.80864H5.65337V8.46176H8.38071H9.74598C10.5395 8.46176 10.8353 7.90823 11.1112 7.0774C11.3963 6.22208 11.3842 5.39955 11.1112 4.30232C10.9151 3.51232 10.5406 2.91797 9.74598 2.91797H8.72123ZM7.1873 9.50241C7.47036 9.50241 7.69967 9.73434 7.69967 10.0211C7.69967 10.309 7.47036 10.5431 7.1873 10.5431C6.90526 10.5431 6.67493 10.309 6.67493 10.0211C6.67493 9.73434 6.90526 9.50241 7.1873 9.50241Z",fill:"url(#paint1_linear_6336_14290)"})]}),i("defs",{children:[i("linearGradient",{id:"paint0_linear_6336_14290",x1:"-3.4002e-08",y1:"-2.95366e-08",x2:"6.29629",y2:"5.36531",gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#5A9FD4"}),t("stop",{offset:"1",stopColor:"#306998"})]}),i("linearGradient",{id:"paint1_linear_6336_14290",x1:"7.12169",y1:"9.93365",x2:"4.86282",y2:"6.76831",gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#FFD43B"}),t("stop",{offset:"1",stopColor:"#FFE873"})]}),t("clipPath",{id:"clip0_6336_14290",children:t("rect",{width:"11.5",height:"11.5",fill:"white"})})]})]}),l=e(n).attrs(()=>({"data-component-name":"icons/PythonIcon"}))``;export{n as Icon,l as PythonIcon};
1
+ import{jsx as t,jsxs as e}from"react/jsx-runtime";import{useUniqueSvgIds as r}from"@redocly/theme/core/openapi";import{styled as s}from"../../styled-components.js";const l=()=>{const n=r(),i=o=>n(o);return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[e("g",{clipPath:`url(#${i("clip0_6336_14290")})`,children:[t("path",{d:"M5.5928 9.36167e-05C5.12601 0.00226256 4.68024 0.0420729 4.28801 0.111479C3.13253 0.315613 2.92274 0.742882 2.92274 1.53084V2.57149H5.65327V2.91838H2.92274H1.898C1.10444 2.91838 0.409568 3.39536 0.192222 4.30273C-0.0584838 5.3428 -0.069604 5.99182 0.192222 7.07781C0.386317 7.88618 0.849843 8.46217 1.64341 8.46217H2.58223V7.21466C2.58223 6.3134 3.36201 5.51842 4.28801 5.51842H7.01535C7.77454 5.51842 8.38061 4.89333 8.38061 4.13088V1.53084C8.38061 0.790854 7.75634 0.234979 7.01535 0.111479C6.54628 0.0333971 6.05959 -0.00207535 5.5928 9.36167e-05ZM4.11616 0.837072C4.3982 0.837072 4.62853 1.07116 4.62853 1.35899C4.62853 1.6458 4.3982 1.87773 4.11616 1.87773C3.8331 1.87773 3.60378 1.6458 3.60378 1.35899C3.60378 1.07116 3.8331 0.837072 4.11616 0.837072Z",fill:`url(#${i("paint0_linear_6336_14290")})`}),t("path",{d:"M8.72123 2.91797V4.13047C8.72123 5.07051 7.92426 5.86171 7.01545 5.86171H4.28811C3.54105 5.86171 2.92285 6.5011 2.92285 7.24925V9.84929C2.92285 10.5893 3.56632 11.0245 4.28811 11.2368C5.15244 11.491 5.98129 11.5369 7.01545 11.2368C7.70287 11.0378 8.38071 10.6373 8.38071 9.84929V8.80864H5.65337V8.46176H8.38071H9.74598C10.5395 8.46176 10.8353 7.90823 11.1112 7.0774C11.3963 6.22208 11.3842 5.39955 11.1112 4.30232C10.9151 3.51232 10.5406 2.91797 9.74598 2.91797H8.72123ZM7.1873 9.50241C7.47036 9.50241 7.69967 9.73434 7.69967 10.0211C7.69967 10.309 7.47036 10.5431 7.1873 10.5431C6.90526 10.5431 6.67493 10.309 6.67493 10.0211C6.67493 9.73434 6.90526 9.50241 7.1873 9.50241Z",fill:`url(#${i("paint1_linear_6336_14290")})`})]}),e("defs",{children:[e("linearGradient",{id:i("paint0_linear_6336_14290"),x1:"-3.4002e-08",y1:"-2.95366e-08",x2:"6.29629",y2:"5.36531",gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#5A9FD4"}),t("stop",{offset:"1",stopColor:"#306998"})]}),e("linearGradient",{id:i("paint1_linear_6336_14290"),x1:"7.12169",y1:"9.93365",x2:"4.86282",y2:"6.76831",gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#FFD43B"}),t("stop",{offset:"1",stopColor:"#FFE873"})]}),t("clipPath",{id:i("clip0_6336_14290"),children:t("rect",{width:"11.5",height:"11.5",fill:"white"})})]})]})},d=s(l).attrs(()=>({"data-component-name":"icons/PythonIcon"}))``;export{l as Icon,d as PythonIcon};
@@ -1,2 +1,3 @@
1
- export declare const Icon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type ReactElement } from 'react';
2
+ export declare const Icon: () => ReactElement;
2
3
  export declare const RIcon: any;
@@ -1 +1 @@
1
- import{jsx as t,jsxs as o}from"react/jsx-runtime";import{styled as e}from"../../styled-components.js";const i=()=>o("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",width:"724",height:"561",viewBox:"0 0 724 561",children:[o("defs",{children:[o("linearGradient",{id:"gradientFill-1",x1:"0",x2:"1",y1:"0",y2:"1",gradientUnits:"objectBoundingBox",spreadMethod:"pad",children:[t("stop",{offset:"0",stopColor:"rgb(203,206,208)",stopOpacity:"1"}),t("stop",{offset:"1",stopColor:"rgb(132,131,139)",stopOpacity:"1"})]}),o("linearGradient",{id:"gradientFill-2",x1:"0",x2:"1",y1:"0",y2:"1",gradientUnits:"objectBoundingBox",spreadMethod:"pad",children:[t("stop",{offset:"0",stopColor:"rgb(39,109,195)",stopOpacity:"1"}),t("stop",{offset:"1",stopColor:"rgb(22,92,170)",stopOpacity:"1"})]})]}),t("path",{d:"M361.453,485.937 C162.329,485.937 0.906,377.828 0.906,244.469 C0.906,111.109 162.329,3.000 361.453,3.000 C560.578,3.000 722.000,111.109 722.000,244.469 C722.000,377.828 560.578,485.937 361.453,485.937 ZM416.641,97.406 C265.289,97.406 142.594,171.314 142.594,262.484 C142.594,353.654 265.289,427.562 416.641,427.562 C567.992,427.562 679.687,377.033 679.687,262.484 C679.687,147.971 567.992,97.406 416.641,97.406 Z",fill:"url(#gradientFill-1)",fillRule:"evenodd"}),t("path",{d:"M550.000,377.000 C550.000,377.000 571.822,383.585 584.500,390.000 C588.899,392.226 596.510,396.668 602.000,402.500 C607.378,408.212 610.000,414.000 610.000,414.000 L696.000,559.000 L557.000,559.062 L492.000,437.000 C492.000,437.000 478.690,414.131 470.500,407.500 C463.668,401.969 460.755,400.000 454.000,400.000 C449.298,400.000 420.974,400.000 420.974,400.000 L421.000,558.974 L298.000,559.026 L298.000,152.938 L545.000,152.938 C545.000,152.938 657.500,154.967 657.500,262.000 C657.500,369.033 550.000,377.000 550.000,377.000 ZM496.500,241.024 L422.037,240.976 L422.000,310.026 L496.500,310.002 C496.500,310.002 531.000,309.895 531.000,274.877 C531.000,239.155 496.500,241.024 496.500,241.024 Z",fill:"url(#gradientFill-2)",fillRule:"evenodd"})]}),d=e(i).attrs(()=>({"data-component-name":"icons/RIcon"}))``;export{i as Icon,d as RIcon};
1
+ import{jsx as t,jsxs as e}from"react/jsx-runtime";import{useUniqueSvgIds as r}from"@redocly/theme/core/openapi";import{styled as d}from"../../styled-components.js";const n=()=>{const i=r(),o=s=>i(s);return e("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",width:"724",height:"561",viewBox:"0 0 724 561",children:[e("defs",{children:[e("linearGradient",{id:o("gradientFill-1"),x1:"0",x2:"1",y1:"0",y2:"1",gradientUnits:"objectBoundingBox",spreadMethod:"pad",children:[t("stop",{offset:"0",stopColor:"rgb(203,206,208)",stopOpacity:"1"}),t("stop",{offset:"1",stopColor:"rgb(132,131,139)",stopOpacity:"1"})]}),e("linearGradient",{id:o("gradientFill-2"),x1:"0",x2:"1",y1:"0",y2:"1",gradientUnits:"objectBoundingBox",spreadMethod:"pad",children:[t("stop",{offset:"0",stopColor:"rgb(39,109,195)",stopOpacity:"1"}),t("stop",{offset:"1",stopColor:"rgb(22,92,170)",stopOpacity:"1"})]})]}),t("path",{d:"M361.453,485.937 C162.329,485.937 0.906,377.828 0.906,244.469 C0.906,111.109 162.329,3.000 361.453,3.000 C560.578,3.000 722.000,111.109 722.000,244.469 C722.000,377.828 560.578,485.937 361.453,485.937 ZM416.641,97.406 C265.289,97.406 142.594,171.314 142.594,262.484 C142.594,353.654 265.289,427.562 416.641,427.562 C567.992,427.562 679.687,377.033 679.687,262.484 C679.687,147.971 567.992,97.406 416.641,97.406 Z",fill:`url(#${o("gradientFill-1")})`,fillRule:"evenodd"}),t("path",{d:"M550.000,377.000 C550.000,377.000 571.822,383.585 584.500,390.000 C588.899,392.226 596.510,396.668 602.000,402.500 C607.378,408.212 610.000,414.000 610.000,414.000 L696.000,559.000 L557.000,559.062 L492.000,437.000 C492.000,437.000 478.690,414.131 470.500,407.500 C463.668,401.969 460.755,400.000 454.000,400.000 C449.298,400.000 420.974,400.000 420.974,400.000 L421.000,558.974 L298.000,559.026 L298.000,152.938 L545.000,152.938 C545.000,152.938 657.500,154.967 657.500,262.000 C657.500,369.033 550.000,377.000 550.000,377.000 ZM496.500,241.024 L422.037,240.976 L422.000,310.026 L496.500,310.002 C496.500,310.002 531.000,309.895 531.000,274.877 C531.000,239.155 496.500,241.024 496.500,241.024 Z",fill:`url(#${o("gradientFill-2")})`,fillRule:"evenodd"})]})},C=d(n).attrs(()=>({"data-component-name":"icons/RIcon"}))``;export{n as Icon,C as RIcon};
@@ -1,2 +1,3 @@
1
- export declare const Icon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type ReactElement } from 'react';
2
+ export declare const Icon: () => ReactElement;
2
3
  export declare const RubyIcon: any;
@@ -1 +1 @@
1
- import{jsx as o,jsxs as e}from"react/jsx-runtime";import{styled as t}from"../../styled-components.js";const l=()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:[e("g",{clipPath:"url(#clip0_6351_16623)",children:[o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.74747 6.58131L2.03809 9.97151L9.43066 9.46987L10 2.01562L7.74747 6.58131Z",fill:"url(#paint0_linear_6351_16623)"}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.4423 9.46549L8.8069 5.07999L7.07617 7.36535L9.4423 9.46549Z",fill:"url(#paint1_linear_6351_16623)"}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.45103 9.46503L4.79606 9.09961L2.0625 9.96222L9.45103 9.46503Z",fill:"url(#paint2_linear_6351_16623)"}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.06988 9.96392L3.23275 6.1543L0.673828 6.70146L2.06988 9.96392Z",fill:"url(#paint3_linear_6351_16623)"}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.07647 7.37869L6.00647 3.1875L2.94434 6.05784L7.07647 7.37869Z",fill:"url(#paint4_linear_6351_16623)"}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.75724 3.24496L6.86268 0.880859L6.05664 3.48672L9.75724 3.24496Z",fill:"url(#paint5_linear_6351_16623)"}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.40341 0.0380086L6.701 0.978805L5.62695 0.0253906L8.40341 0.0380086Z",fill:"url(#paint6_linear_6351_16623)"}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 7.97912L0.713168 6.67845L0.136274 5.12897L0 7.97912Z",fill:"url(#paint7_linear_6351_16623)"}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.0976562 5.08L0.678083 6.72639L3.20016 6.16055L6.07959 3.48453L6.89218 0.903447L5.61267 0L3.43733 0.814112C2.75197 1.45157 1.42204 2.71286 1.37409 2.73659C1.32665 2.76081 0.49588 4.33099 0.0976562 5.08Z",fill:"white"}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.13575 2.1231C3.62114 0.650327 5.53604 -0.219808 6.27091 0.521624C7.00533 1.26306 6.2265 3.0649 4.74111 4.53717C3.25572 6.00943 1.36454 6.92752 0.630172 6.18609C-0.104699 5.44516 0.65036 3.59536 2.13575 2.1231Z",fill:"url(#paint8_linear_6351_16623)"}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.06934 9.96236L3.22312 6.14062L7.05495 7.37163C5.6695 8.67078 4.12859 9.76905 2.06934 9.96236Z",fill:"url(#paint9_linear_6351_16623)"}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.08496 3.47728L7.06866 7.37371C8.22598 6.15683 9.26469 4.8486 9.7734 3.23047L6.08496 3.47728Z",fill:"url(#paint10_linear_6351_16623)"}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.76328 3.25002C10.157 2.06191 10.2478 0.357474 8.39141 0.0410156L6.86816 0.882382L9.76328 3.25002Z",fill:"url(#paint11_linear_6351_16623)"}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 7.96238C0.0545097 9.92326 1.46924 9.95249 2.07187 9.9697L0.679857 6.71875L0 7.96238Z",fill:"#9E1209"}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.08984 3.48401C6.97916 4.03062 8.77147 5.12839 8.80781 5.14858C8.86428 5.18037 9.58053 3.94078 9.74305 3.24023L6.08984 3.48401Z",fill:"url(#paint12_radial_6351_16623)"}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.22168 6.14062L4.7641 9.11645C5.67613 8.62182 6.39031 8.01919 7.04442 7.37365L3.22168 6.14062Z",fill:"url(#paint13_radial_6351_16623)"}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.673622 6.72331L0.455078 9.32564C0.867434 9.8889 1.43474 9.93786 2.0298 9.89395C1.59928 8.82243 0.739235 6.6799 0.673622 6.72331Z",fill:"url(#paint14_linear_6351_16623)"}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.85938 0.889009L9.92352 1.31903C9.76 0.626051 9.2578 0.17887 8.4018 0.0390625L6.85938 0.889009Z",fill:"url(#paint15_linear_6351_16623)"})]}),e("defs",{children:[e("linearGradient",{id:"paint0_linear_6351_16623",x1:"8.78586",y1:"10.8784",x2:"6.67627",y2:"7.15383",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#FB7655"}),o("stop",{offset:"0.41",stopColor:"#E42B1E"}),o("stop",{offset:"0.99",stopColor:"#990000"}),o("stop",{offset:"1",stopColor:"#990000"})]}),e("linearGradient",{id:"paint1_linear_6351_16623",x1:"9.83628",y1:"7.75033",x2:"7.11749",y2:"5.92586",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#871101"}),o("stop",{offset:"0.99",stopColor:"#911209"}),o("stop",{offset:"1",stopColor:"#911209"})]}),e("linearGradient",{id:"paint2_linear_6351_16623",x1:"7.66112",y1:"10.9916",x2:"4.94241",y2:"9.16714",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#871101"}),o("stop",{offset:"0.99",stopColor:"#911209"}),o("stop",{offset:"1",stopColor:"#911209"})]}),e("linearGradient",{id:"paint3_linear_6351_16623",x1:"1.95361",y1:"6.4299",x2:"2.37508",y2:"9.16906",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"white"}),o("stop",{offset:"0.23",stopColor:"#E57252"}),o("stop",{offset:"0.46",stopColor:"#DE3B20"}),o("stop",{offset:"0.99",stopColor:"#A60003"}),o("stop",{offset:"1",stopColor:"#A60003"})]}),e("linearGradient",{id:"paint4_linear_6351_16623",x1:"4.85231",y1:"3.87267",x2:"5.00761",y2:"6.66815",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"white"}),o("stop",{offset:"0.23",stopColor:"#E4714E"}),o("stop",{offset:"0.56",stopColor:"#BE1A0D"}),o("stop",{offset:"0.99",stopColor:"#A80D00"}),o("stop",{offset:"1",stopColor:"#A80D00"})]}),e("linearGradient",{id:"paint5_linear_6351_16623",x1:"7.42458",y1:"1.28721",x2:"7.88948",y2:"3.2907",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"white"}),o("stop",{offset:"0.18",stopColor:"#E46342"}),o("stop",{offset:"0.4",stopColor:"#C82410"}),o("stop",{offset:"0.99",stopColor:"#A80D00"}),o("stop",{offset:"1",stopColor:"#A80D00"})]}),e("linearGradient",{id:"paint6_linear_6351_16623",x1:"6.00479",y1:"0.581667",x2:"8.00815",y2:"-0.420014",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"white"}),o("stop",{offset:"0.54",stopColor:"#C81F11"}),o("stop",{offset:"0.99",stopColor:"#BF0905"}),o("stop",{offset:"1",stopColor:"#BF0905"})]}),e("linearGradient",{id:"paint7_linear_6351_16623",x1:"0.197007",y1:"5.73133",x2:"0.361894",y2:"7.38217",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"white"}),o("stop",{offset:"0.31",stopColor:"#DE4024"}),o("stop",{offset:"0.99",stopColor:"#BF190B"}),o("stop",{offset:"1",stopColor:"#BF190B"})]}),e("linearGradient",{id:"paint8_linear_6351_16623",x1:"-0.936764",y1:"7.82917",x2:"6.81425",y2:"-0.141038",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#BD0012"}),o("stop",{offset:"0.07",stopColor:"white"}),o("stop",{offset:"0.17",stopColor:"white"}),o("stop",{offset:"0.27",stopColor:"#C82F1C"}),o("stop",{offset:"0.33",stopColor:"#820C01"}),o("stop",{offset:"0.46",stopColor:"#A31601"}),o("stop",{offset:"0.72",stopColor:"#B31301"}),o("stop",{offset:"0.99",stopColor:"#E82609"}),o("stop",{offset:"1",stopColor:"#E82609"})]}),e("linearGradient",{id:"paint9_linear_6351_16623",x1:"5.00048",y1:"8.63258",x2:"2.6658",y2:"8.05637",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#8C0C01"}),o("stop",{offset:"0.54",stopColor:"#990C00"}),o("stop",{offset:"0.99",stopColor:"#A80D0E"}),o("stop",{offset:"1",stopColor:"#A80D0E"})]}),e("linearGradient",{id:"paint10_linear_6351_16623",x1:"9.01061",y1:"5.83051",x2:"6.93656",y2:"3.9716",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#7E110B"}),o("stop",{offset:"0.99",stopColor:"#9E0C00"}),o("stop",{offset:"1",stopColor:"#9E0C00"})]}),e("linearGradient",{id:"paint11_linear_6351_16623",x1:"9.77255",y1:"2.41961",x2:"8.73942",y2:"1.31512",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#79130D"}),o("stop",{offset:"0.99",stopColor:"#9E120B"}),o("stop",{offset:"1",stopColor:"#9E120B"})]}),e("radialGradient",{id:"paint12_radial_6351_16623",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(7.2589 4.00782) scale(2.54164 2.54164)",children:[o("stop",{stopColor:"#A80D00"}),o("stop",{offset:"0.99",stopColor:"#7E0E08"}),o("stop",{offset:"1",stopColor:"#7E0E08"})]}),e("radialGradient",{id:"paint13_radial_6351_16623",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(3.73964 7.35654) scale(3.37878)",children:[o("stop",{stopColor:"#A30C00"}),o("stop",{offset:"0.99",stopColor:"#800E08"}),o("stop",{offset:"1",stopColor:"#800E08"})]}),e("linearGradient",{id:"paint14_linear_6351_16623",x1:"1.3459",y1:"9.96087",x2:"0.503971",y2:"7.10447",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#8B2114"}),o("stop",{offset:"0.43",stopColor:"#9E100A"}),o("stop",{offset:"0.99",stopColor:"#B3100C"}),o("stop",{offset:"1",stopColor:"#B3100C"})]}),e("linearGradient",{id:"paint15_linear_6351_16623",x1:"7.80527",y1:"0.494718",x2:"9.69282",y2:"1.32791",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#B31000"}),o("stop",{offset:"0.44",stopColor:"#910F08"}),o("stop",{offset:"0.99",stopColor:"#791C12"}),o("stop",{offset:"1",stopColor:"#791C12"})]}),o("clipPath",{id:"clip0_6351_16623",children:o("rect",{width:"10",height:"9.97224",fill:"white"})})]})]}),p=t(l).attrs(()=>({"data-component-name":"icons/RubyIcon"}))``;export{l as Icon,p as RubyIcon};
1
+ import{jsx as o,jsxs as t}from"react/jsx-runtime";import{useUniqueSvgIds as i}from"@redocly/theme/core/openapi";import{styled as p}from"../../styled-components.js";const r=()=>{const l=i(),e=s=>l(s);return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:[t("g",{clipPath:"url(#clip0_6351_16623)",children:[o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.74747 6.58131L2.03809 9.97151L9.43066 9.46987L10 2.01562L7.74747 6.58131Z",fill:`url(#${e("paint0_linear_6351_16623")})`}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.4423 9.46549L8.8069 5.07999L7.07617 7.36535L9.4423 9.46549Z",fill:`url(#${e("paint1_linear_6351_16623")})`}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.45103 9.46503L4.79606 9.09961L2.0625 9.96222L9.45103 9.46503Z",fill:`url(#${e("paint2_linear_6351_16623")})`}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.06988 9.96392L3.23275 6.1543L0.673828 6.70146L2.06988 9.96392Z",fill:`url(#${e("paint3_linear_6351_16623")})`}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.07647 7.37869L6.00647 3.1875L2.94434 6.05784L7.07647 7.37869Z",fill:`url(#${e("paint4_linear_6351_16623")})`}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.75724 3.24496L6.86268 0.880859L6.05664 3.48672L9.75724 3.24496Z",fill:`url(#${e("paint5_linear_6351_16623")})`}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.40341 0.0380086L6.701 0.978805L5.62695 0.0253906L8.40341 0.0380086Z",fill:`url(#${e("paint6_linear_6351_16623")})`}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 7.97912L0.713168 6.67845L0.136274 5.12897L0 7.97912Z",fill:`url(#${e("paint7_linear_6351_16623")})`}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.0976562 5.08L0.678083 6.72639L3.20016 6.16055L6.07959 3.48453L6.89218 0.903447L5.61267 0L3.43733 0.814112C2.75197 1.45157 1.42204 2.71286 1.37409 2.73659C1.32665 2.76081 0.49588 4.33099 0.0976562 5.08Z",fill:"white"}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.13575 2.1231C3.62114 0.650327 5.53604 -0.219808 6.27091 0.521624C7.00533 1.26306 6.2265 3.0649 4.74111 4.53717C3.25572 6.00943 1.36454 6.92752 0.630172 6.18609C-0.104699 5.44516 0.65036 3.59536 2.13575 2.1231Z",fill:`url(#${e("paint8_linear_6351_16623")})`}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.06934 9.96236L3.22312 6.14062L7.05495 7.37163C5.6695 8.67078 4.12859 9.76905 2.06934 9.96236Z",fill:`url(#${e("paint9_linear_6351_16623")})`}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.08496 3.47728L7.06866 7.37371C8.22598 6.15683 9.26469 4.8486 9.7734 3.23047L6.08496 3.47728Z",fill:`url(#${e("paint10_linear_6351_16623")})`}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.76328 3.25002C10.157 2.06191 10.2478 0.357474 8.39141 0.0410156L6.86816 0.882382L9.76328 3.25002Z",fill:`url(#${e("paint11_linear_6351_16623")})`}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 7.96238C0.0545097 9.92326 1.46924 9.95249 2.07187 9.9697L0.679857 6.71875L0 7.96238Z",fill:"#9E1209"}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.08984 3.48401C6.97916 4.03062 8.77147 5.12839 8.80781 5.14858C8.86428 5.18037 9.58053 3.94078 9.74305 3.24023L6.08984 3.48401Z",fill:`url(#${e("paint12_radial_6351_16623")})`}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.22168 6.14062L4.7641 9.11645C5.67613 8.62182 6.39031 8.01919 7.04442 7.37365L3.22168 6.14062Z",fill:`url(#${e("paint13_radial_6351_16623")})`}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.673622 6.72331L0.455078 9.32564C0.867434 9.8889 1.43474 9.93786 2.0298 9.89395C1.59928 8.82243 0.739235 6.6799 0.673622 6.72331Z",fill:`url(#${e("paint14_linear_6351_16623")})`}),o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.85938 0.889009L9.92352 1.31903C9.76 0.626051 9.2578 0.17887 8.4018 0.0390625L6.85938 0.889009Z",fill:`url(#${e("paint15_linear_6351_16623")})`})]}),t("defs",{children:[t("linearGradient",{id:e("paint0_linear_6351_16623"),x1:"8.78586",y1:"10.8784",x2:"6.67627",y2:"7.15383",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#FB7655"}),o("stop",{offset:"0.41",stopColor:"#E42B1E"}),o("stop",{offset:"0.99",stopColor:"#990000"}),o("stop",{offset:"1",stopColor:"#990000"})]}),t("linearGradient",{id:e("paint1_linear_6351_16623"),x1:"9.83628",y1:"7.75033",x2:"7.11749",y2:"5.92586",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#871101"}),o("stop",{offset:"0.99",stopColor:"#911209"}),o("stop",{offset:"1",stopColor:"#911209"})]}),t("linearGradient",{id:e("paint2_linear_6351_16623"),x1:"7.66112",y1:"10.9916",x2:"4.94241",y2:"9.16714",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#871101"}),o("stop",{offset:"0.99",stopColor:"#911209"}),o("stop",{offset:"1",stopColor:"#911209"})]}),t("linearGradient",{id:e("paint3_linear_6351_16623"),x1:"1.95361",y1:"6.4299",x2:"2.37508",y2:"9.16906",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"white"}),o("stop",{offset:"0.23",stopColor:"#E57252"}),o("stop",{offset:"0.46",stopColor:"#DE3B20"}),o("stop",{offset:"0.99",stopColor:"#A60003"}),o("stop",{offset:"1",stopColor:"#A60003"})]}),t("linearGradient",{id:e("paint4_linear_6351_16623"),x1:"4.85231",y1:"3.87267",x2:"5.00761",y2:"6.66815",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"white"}),o("stop",{offset:"0.23",stopColor:"#E4714E"}),o("stop",{offset:"0.56",stopColor:"#BE1A0D"}),o("stop",{offset:"0.99",stopColor:"#A80D00"}),o("stop",{offset:"1",stopColor:"#A80D00"})]}),t("linearGradient",{id:e("paint5_linear_6351_16623"),x1:"7.42458",y1:"1.28721",x2:"7.88948",y2:"3.2907",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"white"}),o("stop",{offset:"0.18",stopColor:"#E46342"}),o("stop",{offset:"0.4",stopColor:"#C82410"}),o("stop",{offset:"0.99",stopColor:"#A80D00"}),o("stop",{offset:"1",stopColor:"#A80D00"})]}),t("linearGradient",{id:e("paint6_linear_6351_16623"),x1:"6.00479",y1:"0.581667",x2:"8.00815",y2:"-0.420014",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"white"}),o("stop",{offset:"0.54",stopColor:"#C81F11"}),o("stop",{offset:"0.99",stopColor:"#BF0905"}),o("stop",{offset:"1",stopColor:"#BF0905"})]}),t("linearGradient",{id:e("paint7_linear_6351_16623"),x1:"0.197007",y1:"5.73133",x2:"0.361894",y2:"7.38217",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"white"}),o("stop",{offset:"0.31",stopColor:"#DE4024"}),o("stop",{offset:"0.99",stopColor:"#BF190B"}),o("stop",{offset:"1",stopColor:"#BF190B"})]}),t("linearGradient",{id:e("paint8_linear_6351_16623"),x1:"-0.936764",y1:"7.82917",x2:"6.81425",y2:"-0.141038",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#BD0012"}),o("stop",{offset:"0.07",stopColor:"white"}),o("stop",{offset:"0.17",stopColor:"white"}),o("stop",{offset:"0.27",stopColor:"#C82F1C"}),o("stop",{offset:"0.33",stopColor:"#820C01"}),o("stop",{offset:"0.46",stopColor:"#A31601"}),o("stop",{offset:"0.72",stopColor:"#B31301"}),o("stop",{offset:"0.99",stopColor:"#E82609"}),o("stop",{offset:"1",stopColor:"#E82609"})]}),t("linearGradient",{id:e("paint9_linear_6351_16623"),x1:"5.00048",y1:"8.63258",x2:"2.6658",y2:"8.05637",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#8C0C01"}),o("stop",{offset:"0.54",stopColor:"#990C00"}),o("stop",{offset:"0.99",stopColor:"#A80D0E"}),o("stop",{offset:"1",stopColor:"#A80D0E"})]}),t("linearGradient",{id:e("paint10_linear_6351_16623"),x1:"9.01061",y1:"5.83051",x2:"6.93656",y2:"3.9716",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#7E110B"}),o("stop",{offset:"0.99",stopColor:"#9E0C00"}),o("stop",{offset:"1",stopColor:"#9E0C00"})]}),t("linearGradient",{id:e("paint11_linear_6351_16623"),x1:"9.77255",y1:"2.41961",x2:"8.73942",y2:"1.31512",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#79130D"}),o("stop",{offset:"0.99",stopColor:"#9E120B"}),o("stop",{offset:"1",stopColor:"#9E120B"})]}),t("radialGradient",{id:e("paint12_radial_6351_16623"),cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(7.2589 4.00782) scale(2.54164 2.54164)",children:[o("stop",{stopColor:"#A80D00"}),o("stop",{offset:"0.99",stopColor:"#7E0E08"}),o("stop",{offset:"1",stopColor:"#7E0E08"})]}),t("radialGradient",{id:e("paint13_radial_6351_16623"),cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(3.73964 7.35654) scale(3.37878)",children:[o("stop",{stopColor:"#A30C00"}),o("stop",{offset:"0.99",stopColor:"#800E08"}),o("stop",{offset:"1",stopColor:"#800E08"})]}),t("linearGradient",{id:e("paint14_linear_6351_16623"),x1:"1.3459",y1:"9.96087",x2:"0.503971",y2:"7.10447",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#8B2114"}),o("stop",{offset:"0.43",stopColor:"#9E100A"}),o("stop",{offset:"0.99",stopColor:"#B3100C"}),o("stop",{offset:"1",stopColor:"#B3100C"})]}),t("linearGradient",{id:e("paint15_linear_6351_16623"),x1:"7.80527",y1:"0.494718",x2:"9.69282",y2:"1.32791",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#B31000"}),o("stop",{offset:"0.44",stopColor:"#910F08"}),o("stop",{offset:"0.99",stopColor:"#791C12"}),o("stop",{offset:"1",stopColor:"#791C12"})]}),o("clipPath",{id:"clip0_6351_16623",children:o("rect",{width:"10",height:"9.97224",fill:"white"})})]})]})},f=p(r).attrs(()=>({"data-component-name":"icons/RubyIcon"}))``;export{r as Icon,f as RubyIcon};
@@ -1 +1 @@
1
- import{getContentWithLegacyExamples as f,getValueFromMdParsedExtension as m,JsonPointer as p}from"../utils/index.js";import{getMediaContent as q}from"./mediaContent.js";function y({parser:t,infoOrRef:n,options:s,isEvent:d,operation:o}){const{resolved:e}=t.deref(n),u=m(e,"description")||"",c=e.required;let i;const a=!d,r=f(e);return r!==void 0&&(i=q({parser:t,info:r,isRequestType:a,options:s,data:{operation:o,type:"request",absolutePointer:n.$ref||p.join(o.pointer,["requestBody"])}})),{description:u,required:c,content:i}}export{y as getRequestBody};
1
+ import{getValueFromMdParsedExtension as m,JsonPointer as q,getContent as p}from"../utils/index.js";import{getMediaContent as a}from"./mediaContent.js";function y({parser:e,infoOrRef:n,options:d,isEvent:s,operation:o}){const{resolved:t}=e.deref(n),u=m(t,"description")||"",c=t.required;let i;const f=!s,r=p(e,t);return r!==void 0&&(i=a({parser:e,info:r,isRequestType:f,options:d,data:{operation:o,type:"request",absolutePointer:n.$ref||q.join(o.pointer,["requestBody"])}})),{description:u,required:c,content:i}}export{y as getRequestBody};
@@ -1 +1 @@
1
- import{getStatusCodeType as h,getContentWithLegacyExamples as x,JsonPointer as c,getValueFromMdParsedExtension as d}from"../utils/index.js";import{getField as C}from"./field.js";import{getMediaContent as j}from"./mediaContent.js";function F({parser:n,code:s,defaultAsError:f,infoOrRef:m,options:p,isEvent:y,operation:o}){const g=!!y,{resolved:t}=n.deref(m),e={code:s};t["x-summary"]!==void 0?(e.summary=d(t,"x-summary"),e.description=d(t,"description")||""):(e.summary=d(t,"description")||"",e.description=""),e.type=h(s,f);const r=t.headers,a=m.$ref||c.join(o?.pointer||"",["responses",s]);r!==void 0&&(e.headers=Object.keys(r).map(i=>{const l=r[i];return C(n,{...l,name:i},c.join(a,["headers",i]),p,{operation:o,type:"response",response:e})}));const u=x(t);return u!==void 0&&(e.content=j({parser:n,info:u,isRequestType:g,options:p,data:{operation:o,type:"response",response:e,absolutePointer:a}})),e}export{F as getResponse};
1
+ import{getStatusCodeType as h,JsonPointer as c,getValueFromMdParsedExtension as d,getContent as x}from"../utils/index.js";import{getField as C}from"./field.js";import{getMediaContent as j}from"./mediaContent.js";function M({parser:n,code:s,defaultAsError:a,infoOrRef:m,options:p,isEvent:y,operation:o}){const g=!!y,{resolved:t}=n.deref(m),e={code:s};t["x-summary"]!==void 0?(e.summary=d(t,"x-summary"),e.description=d(t,"description")||""):(e.summary=d(t,"description")||"",e.description=""),e.type=h(s,a);const i=t.headers,u=m.$ref||c.join(o?.pointer||"",["responses",s]);i!==void 0&&(e.headers=Object.keys(i).map(r=>{const l=i[r];return C(n,{...l,name:r},c.join(u,["headers",r]),p,{operation:o,type:"response",response:e})}));const f=x(n,t);return f!==void 0&&(e.content=j({parser:n,info:f,isRequestType:g,options:p,data:{operation:o,type:"response",response:e,absolutePointer:u}})),e}export{M as getResponse};
@@ -1,2 +1,2 @@
1
- import{REDOCLY_TEAMS_RBAC as S}from"@redocly/config";import{isObject as I}from"@redocly/theme/core/openapi";import{pushRef as w}from"../services/OpenAPIParser.js";import{detectType as q,extractExtensions as C,getValueFromMdParsedExtension as M,humanizeConstraints as E,isNamedDefinition as h,isPrimitiveType as B,JsonPointer as A,pluralizeType as z,sortByDeprecated as L,sortByRequired as J}from"../utils/index.js";import{getField as T}from"./field.js";function F({parser:i,schemaOrRef:n,pointer:u,options:l,isChild:P=!1,isDefaultMapping:f=!1,baseRefsStack:m=[],deps:a,absolutePointer:y}){const{resolved:p,refsStack:c}=i.deref(n,m,!0),s=n.$ref||u||y||"",r=w(c,s),e=i.mergeAllOf(p,s,r,n.$ref||y),O=e.type||q(e),t={operationPointer:a.operation?.pointer||y||"",schemaOrRef:n,isChild:P,isDefaultMapping:f,typePrefix:"",pointer:s,absolutePointer:y,refsStack:r,rawSchema:p,type:O,isCircular:!!e["x-circular-ref"],isComplex:!!e["x-complex"],title:e.title||h(s)&&A.baseName(s)||"",description:M(e,"description")||"",format:e.format,enum:e.enum||[],example:e.example,deprecated:!!e.deprecated,pattern:e.pattern,externalDocs:e.externalDocs,displayFormat:e.format,isPrimitive:B(e,O),constraints:E(e),default:e.default,readOnly:!!e.readOnly,writeOnly:!!e.writeOnly,const:e.const||"",contentEncoding:e.contentEncoding,contentMediaType:e.contentMediaType,minItems:e.minItems,maxItems:e.maxItems,nullable:e.nullable||e["x-nullable"],schema:e,displayType:"",items:void 0,extensions:void 0,oneOfType:"",discriminatorProp:void 0,oneOf:void 0,[S]:e[S],"x-enumDescriptions":M(e,"x-enumDescriptions"),get fields(){if(!t.isCircular&&!t.isComplex&&($(t,"object")||$(t,"array")&&v(e)))return K(i,e,s,l,r,a)}};if((e.nullable||e["x-nullable"])&&(Array.isArray(t.type)&&!t.type.some(d=>d===null||d==="null")?t.type=[...t.type,"null"]:!Array.isArray(t.type)&&(t.type!==null||t.type!=="null")&&(t.type=[t.type,"null"])),t.displayType=Array.isArray(t.type)?t.type.map(d=>d===null?"null":d).join(" or "):t.type,t.isCircular)return t;if(e.if&&e.then||e.if&&e.else){const{oneOf:d,oneOfType:o}=_({schema:e,parser:i,pointer:s,options:l,deps:a,refsStack:r});return t.oneOf=d,t.oneOfType=o,t}if(!P&&R(e)!==void 0){const{oneOf:d,discriminatorProp:o}=V({schema:e,parser:i,deps:a,mergedSchema:e,options:l,pointer:s,refsStack:r});return t.oneOf=d,t.discriminatorProp=o,t}else P&&Array.isArray(e.oneOf)&&e.oneOf.find(d=>d.$ref===s)&&delete e.oneOf;if(e.oneOf!==void 0){const{oneOf:d,displayType:o}=j({schemaOneOf:e.oneOf,parser:i,deps:a,options:l,pointer:s,refsStack:r,schema:e});return t.oneOfType="One of",d&&(t.oneOf=d),t.displayType=o,e.anyOf!==void 0&&console.warn(`oneOf and anyOf are not supported on the same level. Skipping anyOf at ${s}`),t}if(e.anyOf!==void 0){const{oneOf:d,displayType:o}=j({schemaOneOf:e.anyOf,parser:i,deps:a,options:l,pointer:s,refsStack:r,schema:e});return d&&(t.oneOf=d),t.displayType=o,t.oneOfType="Any of",t}if($(t,"array")&&(e.items&&!v(e)&&(t.items=F({parser:i,schemaOrRef:Object.assign({type:"object"},e.items),pointer:s+"/items",options:l,baseRefsStack:r,deps:a,absolutePointer:A.join(e.absolutePointer||"",["items"])})),t.displayType=e.prefixItems||Array.isArray(e.items)?"items":z(t.items?.displayType||t.displayType),t.displayFormat=t.items?.format||"",t.typePrefix=t.items?.typePrefix||"Array of ",t.title=t.title||t.items?.title||"",t.isPrimitive=t.items?.isPrimitive!==void 0?t.items?.isPrimitive:t.isPrimitive,t.example===void 0&&t.items?.example!==void 0&&(t.example=[t.items.example]),t.items?.isPrimitive&&(t.enum=t.items.enum,t["x-enumDescriptions"]=M(t.items,"x-enumDescriptions")),Array.isArray(t.type))){const d=t.type.filter(o=>o!=="array");d.length&&(t.displayType+=` or ${d.join(" or ")}`)}return l.showExtensions&&(t.extensions=C(e,l.showExtensions)),t}function V({schema:i,parser:n,pointer:u,options:l,refsStack:P,deps:f,mergedSchema:m}){const a=R(i),y=a?.propertyName,p=n.findDerived([...m["x-parentRefs"]||[],u]);if(i.oneOf)for(const o of i.oneOf){if(o.$ref===void 0)continue;const x=A.baseName(o.$ref);p[o.$ref]=x}const c=a?.mapping||{},s=a?.["x-explicitMappingOnly"]??Object.keys(c).length>0,r={};for(const o in c){const x=c[o];Array.isArray(r[x])?r[x].push(o):r[x]=[o]}const e=s?{...r}:{...p,...r};let O=[];for(const o of Object.keys(e)){const x=e[o];if(Array.isArray(x))for(const g of x)O.push({$ref:o,name:g});else O.push({$ref:o,name:x})}if(a?.defaultMapping){const o=O.findIndex(g=>g.name===A.baseName(a.defaultMapping)),x="Default mapping";~o?O[o]={$ref:a.defaultMapping,name:x,isDefaultMapping:!0}:O.push({$ref:a.defaultMapping,name:x,isDefaultMapping:!0})}const t=Object.keys(c);return t.length!==0&&(O=O.sort((o,x)=>{if(o.isDefaultMapping&&!x.isDefaultMapping)return 1;if(!o.isDefaultMapping&&x.isDefaultMapping)return-1;const g=t.indexOf(o.name),b=t.indexOf(x.name);return g<0&&b<0?o.name.localeCompare(x.name):g<0?1:b<0?-1:g-b})),{oneOf:O.map(({$ref:o,name:x,isDefaultMapping:g},b)=>{const D=F({parser:n,schemaOrRef:{$ref:o},pointer:o,options:l,isChild:!0,isDefaultMapping:g,baseRefsStack:P.slice(0,-1),deps:{...f,parentFieldFullPath:f.parentFieldFullPath?f.parentFieldFullPath+"&d="+b:"&d="+b.toString()},absolutePointer:m.absolutePointer});return D.title=x,D}),discriminatorProp:y}}function j({schemaOneOf:i,parser:n,refsStack:u,pointer:l,schema:P,options:f,deps:m}){const a=i.map((p,c)=>{const{resolved:s,refsStack:r}=n.deref(p,u,!0),e=n.mergeAllOf(s,l+"/oneOf/"+c,r),O=h(p.$ref)&&!e.title?A.baseName(p.$ref):`${e.title||""}${e.const&&JSON.stringify(e.const)||""}`;return F({parser:n,schemaOrRef:{...e,title:O,allOf:[{...P,oneOf:void 0,anyOf:void 0}],discriminator:s.allOf?void 0:e.discriminator},pointer:p.$ref||l+"/oneOf/"+c,options:f,baseRefsStack:r,deps:{...m,parentFieldFullPath:m.parentFieldFullPath?m.parentFieldFullPath+"&oneOf="+c:"&oneOf="+c.toString()}})}),y=[...new Set(a.map(p=>{let c=p.typePrefix+(p.title&&!f.hideSchemaTitles?`${p.title} (${p.displayType})`:p.displayType);return c.indexOf(" or ")>-1&&(c=`(${c})`),c}))].join(" or ");return{oneOf:a,displayType:y}}function _({schema:i,parser:n,pointer:u,options:l,refsStack:P,deps:f}){const{if:m,else:a={},then:y={},...p}=i;return{oneOf:[{allOf:[p,y,m],title:m&&m["x-displayName"]||m?.title||"case 1"},{allOf:[p,a],title:a&&a["x-displayName"]||a?.title||"case 2"}].map((e,O)=>F({parser:n,schemaOrRef:{...e},pointer:u+"/oneOf/"+O,options:l,baseRefsStack:P,deps:{...f,parentFieldFullPath:f.parentFieldFullPath?f.parentFieldFullPath+"&oneOf="+O:"&oneOf="+O.toString()}})),oneOfType:"One of"}}function k(i,n,u){return i||(console.warn(`Field "${n}" is invalid, skipping.
2
- Field must be an object but got ${typeof i} at "${u}"`),{})}function K(i,n,u,l,P,f){let m=n.properties||($(n,"array")?n.prefixItems||n.items:void 0)||{};const a=n.patternProperties||{},y=n.additionalProperties||n.unevaluatedProperties,p=n.prefixItems?n.items:n.additionalItems,c=n.default||{};let s=Object.keys(m).map(r=>{const e=k(m[r],r,u),O=n.required===void 0?!1:n.required.indexOf(r)>-1;return T(i,{name:n.properties?r:`[${r}]`,required:O,schema:{...e,example:n.example?.[r]||e.example,default:e.default===void 0&&c?c[r]:e.default}},u+"/properties/"+r,l,f,P,A.join(n.absolutePointer||"",["properties",r]))});return l.sortRequiredPropsFirst&&(s=J(s,n.required)),s.push(...Object.keys(a).map(r=>{const e=k(a[r],r,u);return T(i,{name:r,required:!1,schema:e,kind:"patternProperties"},`${u}/patternProperties/${r}`,l,f,P)})),(I(y)||y===!0)&&s.push(T(i,{name:(I(y)&&y["x-additionalPropertiesName"]||"property name").concat("*"),required:!1,schema:y===!0?{}:y,kind:"additionalProperties"},u+"/additionalProperties",l,f,P,A.join(n.absolutePointer||"",["additionalProperties"]))),s.push(...Y({parser:i,schema:p,fieldsCount:s.length,$ref:u,options:l,refsStack:P,deps:f})),L(s)}function Y({parser:i,schema:n=!1,fieldsCount:u,$ref:l,options:P,refsStack:f,deps:m}){return typeof n=="boolean"?n?[T(i,{name:`[${u}...]`,schema:{},kind:"additionalItems"},`${l}/additionalItems`,P,m,f)]:[]:Array.isArray(n)?[...n.map((a,y)=>T(i,{name:`[${u+y}]`,schema:a,kind:"additionalItems"},`${l}/additionalItems/${y}`,P,m,f))]:I(n)?[T(i,{name:`[${u}...]`,schema:n,kind:"additionalItems"},`${l}/additionalItems`,P,m,f)]:[]}function R(i){return i.discriminator||i["x-discriminator"]}function $(i,n){return i.type===n||Array.isArray(i.type)&&i.type.includes(n)}function v(i){return!!(Array.isArray(i.items)||Array.isArray(i.prefixItems))}export{F as getSchema};
1
+ import{REDOCLY_TEAMS_RBAC as S}from"@redocly/config";import{isObject as I}from"@redocly/theme/core/openapi";import{pushRef as w}from"../services/OpenAPIParser.js";import{detectType as q,extractExtensions as C,getValueFromMdParsedExtension as M,humanizeConstraints as E,isNamedDefinition as h,isPrimitiveType as B,JsonPointer as A,pluralizeType as z,sortByDeprecated as L,sortByRequired as J}from"../utils/index.js";import{getField as b}from"./field.js";function F({parser:i,schemaOrRef:n,pointer:u,options:l,isChild:P=!1,isDefaultMapping:f=!1,baseRefsStack:m=[],deps:a,absolutePointer:y}){const{resolved:p,refsStack:c}=i.deref(n,m,!0),s=n.$ref||u||y||"",r=w(c,s),e=i.mergeAllOf(p,s,r,n.$ref||y),O=e.type||q(e),t={operationPointer:a.operation?.pointer||y||"",schemaOrRef:n,isChild:P,isDefaultMapping:f,typePrefix:"",pointer:s,absolutePointer:y,refsStack:r,rawSchema:p,type:O,isCircular:!!e["x-circular-ref"],isComplex:!!e["x-complex"],title:e.title||h(s)&&A.baseName(s)||"",description:M(e,"description")||"",format:e.format,enum:e.enum||[],example:e.example,deprecated:!!e.deprecated,pattern:e.pattern,externalDocs:e.externalDocs,displayFormat:e.format,isPrimitive:B(e,O),constraints:E(e),default:e.default,readOnly:!!e.readOnly,writeOnly:!!e.writeOnly,const:e.const||"",contentEncoding:e.contentEncoding,contentMediaType:e.contentMediaType,minItems:e.minItems,maxItems:e.maxItems,nullable:e.nullable||e["x-nullable"],schema:e,displayType:"",items:void 0,extensions:void 0,oneOfType:"",discriminatorProp:void 0,oneOf:void 0,[S]:e[S],"x-enumDescriptions":M(e,"x-enumDescriptions"),get fields(){if(!t.isCircular&&!t.isComplex&&($(t,"object")||$(t,"array")&&v(e)))return K(i,e,s,l,r,a)}};if((e.nullable||e["x-nullable"])&&(Array.isArray(t.type)&&!t.type.some(d=>d===null||d==="null")?t.type=[...t.type,"null"]:!Array.isArray(t.type)&&(t.type!==null||t.type!=="null")&&(t.type=[t.type,"null"])),t.displayType=Array.isArray(t.type)?t.type.map(d=>d===null?"null":d).join(" or "):t.type,t.isCircular)return t;if(e.if&&e.then||e.if&&e.else){const{oneOf:d,oneOfType:o}=_({schema:e,parser:i,pointer:s,options:l,deps:a,refsStack:r});return t.oneOf=d,t.oneOfType=o,t}if(!P&&j(e)!==void 0){const{oneOf:d,discriminatorProp:o}=V({schema:e,parser:i,deps:a,mergedSchema:e,options:l,pointer:s,refsStack:r});return t.oneOf=d,t.discriminatorProp=o,t}else P&&Array.isArray(e.oneOf)&&e.oneOf.find(d=>d.$ref===s)&&delete e.oneOf;if(e.oneOf!==void 0){const{oneOf:d,displayType:o}=k({schemaOneOf:e.oneOf,parser:i,deps:a,options:l,pointer:s,refsStack:r,schema:e});return t.oneOfType="One of",d&&(t.oneOf=d),t.displayType=o,e.anyOf!==void 0&&console.warn(`oneOf and anyOf are not supported on the same level. Skipping anyOf at ${s}`),t}if(e.anyOf!==void 0){const{oneOf:d,displayType:o}=k({schemaOneOf:e.anyOf,parser:i,deps:a,options:l,pointer:s,refsStack:r,schema:e});return d&&(t.oneOf=d),t.displayType=o,t.oneOfType="Any of",t}if($(t,"array")&&(e.items&&!v(e)&&(t.items=F({parser:i,schemaOrRef:e.items,pointer:s+"/items",options:l,baseRefsStack:r,deps:a,absolutePointer:A.join(e.absolutePointer||"",["items"])})),t.displayType=e.prefixItems||Array.isArray(e.items)?"items":z(t.items?.displayType||t.displayType),t.displayFormat=t.items?.format||"",t.typePrefix=t.items?.typePrefix||"Array of ",t.title=t.title||t.items?.title||"",t.isPrimitive=t.items?.isPrimitive!==void 0?t.items?.isPrimitive:t.isPrimitive,t.example===void 0&&t.items?.example!==void 0&&(t.example=[t.items.example]),t.items?.isPrimitive&&(t.enum=t.items.enum,t["x-enumDescriptions"]=M(t.items,"x-enumDescriptions")),Array.isArray(t.type))){const d=t.type.filter(o=>o!=="array");d.length&&(t.displayType+=` or ${d.join(" or ")}`)}return l.showExtensions&&(t.extensions=C(e,l.showExtensions)),t}function V({schema:i,parser:n,pointer:u,options:l,refsStack:P,deps:f,mergedSchema:m}){const a=j(i),y=a?.propertyName,p=n.findDerived([...m["x-parentRefs"]||[],u]);if(i.oneOf)for(const o of i.oneOf){if(o.$ref===void 0)continue;const x=A.baseName(o.$ref);p[o.$ref]=x}const c=a?.mapping||{},s=a?.["x-explicitMappingOnly"]??Object.keys(c).length>0,r={};for(const o in c){const x=c[o];Array.isArray(r[x])?r[x].push(o):r[x]=[o]}const e=s?{...r}:{...p,...r};let O=[];for(const o of Object.keys(e)){const x=e[o];if(Array.isArray(x))for(const g of x)O.push({$ref:o,name:g});else O.push({$ref:o,name:x})}if(a?.defaultMapping){const o=O.findIndex(g=>g.name===A.baseName(a.defaultMapping)),x="Default mapping";~o?O[o]={$ref:a.defaultMapping,name:x,isDefaultMapping:!0}:O.push({$ref:a.defaultMapping,name:x,isDefaultMapping:!0})}const t=Object.keys(c);return t.length!==0&&(O=O.sort((o,x)=>{if(o.isDefaultMapping&&!x.isDefaultMapping)return 1;if(!o.isDefaultMapping&&x.isDefaultMapping)return-1;const g=t.indexOf(o.name),T=t.indexOf(x.name);return g<0&&T<0?o.name.localeCompare(x.name):g<0?1:T<0?-1:g-T})),{oneOf:O.map(({$ref:o,name:x,isDefaultMapping:g},T)=>{const D=F({parser:n,schemaOrRef:{$ref:o},pointer:o,options:l,isChild:!0,isDefaultMapping:g,baseRefsStack:P.slice(0,-1),deps:{...f,parentFieldFullPath:f.parentFieldFullPath?f.parentFieldFullPath+"&d="+T:"&d="+T.toString()},absolutePointer:m.absolutePointer});return D.title=x,D}),discriminatorProp:y}}function k({schemaOneOf:i,parser:n,refsStack:u,pointer:l,schema:P,options:f,deps:m}){const a=i.map((p,c)=>{const{resolved:s,refsStack:r}=n.deref(p,u,!0),e=n.mergeAllOf(s,l+"/oneOf/"+c,r),O=h(p.$ref)&&!e.title?A.baseName(p.$ref):`${e.title||""}${e.const&&JSON.stringify(e.const)||""}`;return F({parser:n,schemaOrRef:{...e,title:O,allOf:[{...P,oneOf:void 0,anyOf:void 0}],discriminator:s.allOf?void 0:e.discriminator},pointer:p.$ref||l+"/oneOf/"+c,options:f,baseRefsStack:r,deps:{...m,parentFieldFullPath:m.parentFieldFullPath?m.parentFieldFullPath+"&oneOf="+c:"&oneOf="+c.toString()}})}),y=[...new Set(a.map(p=>{let c=p.typePrefix+(p.title&&!f.hideSchemaTitles?`${p.title} (${p.displayType})`:p.displayType);return c.indexOf(" or ")>-1&&(c=`(${c})`),c}))].join(" or ");return{oneOf:a,displayType:y}}function _({schema:i,parser:n,pointer:u,options:l,refsStack:P,deps:f}){const{if:m,else:a={},then:y={},...p}=i;return{oneOf:[{allOf:[p,y,m],title:m&&m["x-displayName"]||m?.title||"case 1"},{allOf:[p,a],title:a&&a["x-displayName"]||a?.title||"case 2"}].map((e,O)=>F({parser:n,schemaOrRef:{...e},pointer:u+"/oneOf/"+O,options:l,baseRefsStack:P,deps:{...f,parentFieldFullPath:f.parentFieldFullPath?f.parentFieldFullPath+"&oneOf="+O:"&oneOf="+O.toString()}})),oneOfType:"One of"}}function R(i,n,u){return i||(console.warn(`Field "${n}" is invalid, skipping.
2
+ Field must be an object but got ${typeof i} at "${u}"`),{})}function K(i,n,u,l,P,f){let m=n.properties||($(n,"array")?n.prefixItems||n.items:void 0)||{};const a=n.patternProperties||{},y=n.additionalProperties||n.unevaluatedProperties,p=n.prefixItems?n.items:n.additionalItems,c=n.default||{};let s=Object.keys(m).map(r=>{const e=R(m[r],r,u),O=n.required===void 0?!1:n.required.indexOf(r)>-1;return b(i,{name:n.properties?r:`[${r}]`,required:O,schema:{...e,example:n.example?.[r]||e.example,default:e.default===void 0&&c?c[r]:e.default}},u+"/properties/"+r,l,f,P,A.join(n.absolutePointer||"",["properties",r]))});return l.sortRequiredPropsFirst&&(s=J(s,n.required)),s.push(...Object.keys(a).map(r=>{const e=R(a[r],r,u);return b(i,{name:r,required:!1,schema:e,kind:"patternProperties"},`${u}/patternProperties/${r}`,l,f,P)})),(I(y)||y===!0)&&s.push(b(i,{name:(I(y)&&y["x-additionalPropertiesName"]||"property name").concat("*"),required:!1,schema:y===!0?{}:y,kind:"additionalProperties"},u+"/additionalProperties",l,f,P,A.join(n.absolutePointer||"",["additionalProperties"]))),s.push(...Y({parser:i,schema:p,fieldsCount:s.length,$ref:u,options:l,refsStack:P,deps:f})),L(s)}function Y({parser:i,schema:n=!1,fieldsCount:u,$ref:l,options:P,refsStack:f,deps:m}){return typeof n=="boolean"?n?[b(i,{name:`[${u}...]`,schema:{},kind:"additionalItems"},`${l}/additionalItems`,P,m,f)]:[]:Array.isArray(n)?[...n.map((a,y)=>b(i,{name:`[${u+y}]`,schema:a,kind:"additionalItems"},`${l}/additionalItems/${y}`,P,m,f))]:I(n)?[b(i,{name:`[${u}...]`,schema:n,kind:"additionalItems"},`${l}/additionalItems`,P,m,f)]:[]}function j(i){return i.discriminator||i["x-discriminator"]}function $(i,n){return i.type===n||Array.isArray(i.type)&&i.type.includes(n)}function v(i){return!!(Array.isArray(i.items)||Array.isArray(i.prefixItems))}export{F as getSchema};
@@ -1,4 +1,4 @@
1
- import{getTagOrGroup as d}from"../../models/group.js";import{DEFAULT_WEBHOOKS_TAG_NAME as g,GROUP_DEPTH as h}from"../../constants.js";import{getValueFromMdParsedExtension as T,isOperationName as S,JsonPointer as w,safeSlugify as k}from"../../utils/index.js";import{getOperationsItems as x}from"./operation.js";import{addMarkdownItems as O}from"./markdown.js";import{joinWithSeparator as b}from"../history/helpers.js";const y=["tools","resources","prompts"];function v(r,f,n,o,s){let t;if(o===void 0?t=Object.keys(f):t=o.tags,!Array.isArray(t))return console.warn("Unexpected values of tags. Check tags or x-tagGroups in your definition."),[];const a=t.map(e=>f[e]?(f[e].used=!0,f[e]):(console.warn(`Non-existing tag "${e}" is added to the group "${o?.name}"`),null)),i=[];for(const e of a){if(!e)continue;const c=d("tag",e,n);if(c.depth=h+1,e.name===""){const m=[...O(T(e,"description")||"",c,c.depth+1),...x(void 0,e,c.depth+1)];i.push(...m);continue}const p=A({definition:r.definition,tag:e,parent:c,schemaDefinitionsTagName:s.schemaDefinitionsTagName}),l=E(r.definition,e,c);c.items=[...p,...l,...O(T(e,"description")||"",c,c.depth+1),...x(c,e,c.depth+1)],i.push(c)}return i.filter(({name:e,items:c})=>e!==g||c.length>0)}function I(r,f,n,o,s){const t=[];for(const a of n){const i=d("group",a,f);i.depth=h,i.items=v(r,o,i,a,s),t.push(i)}return t}function A({definition:r,tag:f,parent:n,schemaDefinitionsTagName:o}){const s=o?[o]:[];return Object.entries(r.components?.schemas||{}).map(([t,a])=>{if(!(a["x-tags"]||s).includes(f.name))return null;const e=d("schema",{name:t,"x-displayName":`${a.title||t}`,description:`{% schemaDefinition showWriteOnly="true" schemaRef="#/components/schemas/${t}" /%}`,isSchema:!0,level:2},n);return e.depth=n.depth+1,e}).filter(Boolean)}function E(r,f,n){const o=[];for(const s of y)if(r["x-mcp"]?.[s]){const t=P(s),a=[t];for(const i of r["x-mcp"]?.[s]||[])if((i.tags?.length?i.tags:a).includes(f.name)){const c=b(n.id,k(i.name)),p=s==="tools"?`Tool name: \`${i.name}\`
1
+ import{getTagOrGroup as d}from"../../models/group.js";import{DEFAULT_WEBHOOKS_TAG_NAME as g,GROUP_DEPTH as h}from"../../constants.js";import{getValueFromMdParsedExtension as T,isOperationName as S,JsonPointer as w,safeSlugify as k}from"../../utils/index.js";import{getOperationsItems as x}from"./operation.js";import{addMarkdownItems as y}from"./markdown.js";import{joinWithSeparator as b}from"../history/helpers.js";const O=["tools","resources","prompts"];function v(r,a,n,o,s){let e;if(o===void 0?e=Object.keys(a):e=o.tags,!Array.isArray(e))return console.warn("Unexpected values of tags. Check tags or x-tagGroups in your definition."),[];const c=e.map(t=>a[t]?(a[t].used=!0,a[t]):(console.warn(`Non-existing tag "${t}" is added to the group "${o?.name}"`),null)),i=[];for(const t of c){if(!t)continue;const f=d("tag",t,n);if(f.depth=h+1,t.name===""){const m=[...y(T(t,"description")||"",f,f.depth+1),...x(void 0,t,f.depth+1)];i.push(...m);continue}const p=A({definition:r.definition,tag:t,parent:f,schemaDefinitionsTagName:s.schemaDefinitionsTagName}),l=E(r.definition,t,f);f.items=[...p,...l,...y(T(t,"description")||"",f,f.depth+1),...x(f,t,f.depth+1)],i.push(f)}return i.filter(({name:t,items:f})=>t!==g||f.length>0)}function M(r,a,n,o,s){const e=[];for(const c of n){const i=d("group",c,a);i.depth=h,i.items=v(r,o,i,c,s),e.push(i)}return e}function A({definition:r,tag:a,parent:n,schemaDefinitionsTagName:o}){const s=o?[o]:[];return Object.entries(r.components?.schemas||{}).map(([e,c])=>{if(!(c["x-tags"]||s).includes(a.name))return null;const t=d("schema",{name:e,"x-displayName":`${c.title||e}`,description:`{% schemaDefinition showWriteOnly="true" schemaRef="#/components/schemas/${e}" /%}`,isSchema:!0,level:2},n);return t.depth=n.depth+1,t}).filter(Boolean)}function E(r,a,n){const o=[];for(const s of O)if(r["x-mcp"]?.[s]){const e=P(s),c=[e];for(const i of r["x-mcp"]?.[s]||[])if((i.tags?.length?i.tags:c).includes(a.name)){const f=b(n.id,k(i.name)),p=s==="tools"?`Tool name: \`${i.name}\`
2
2
 
3
3
  `:"",m=d(s==="tools"?"tool":s==="resources"?"rsrc":"prompt",{name:i.name,"x-displayName":i.title||i.name,description:`${p}${i.description||""}
4
- {% mcp${t.slice(0,-1)} name="${i.name}" id="${c}" /%}`,isSchema:!0,level:2},n);m.depth=n.depth+1,o.push(m)}}return o}function M(r,f){const{definition:n}=r,o={},s=n["x-webhooks"]||n.webhooks,t=n["x-mcp"];for(const a of f||[])o[a.name]={...a,operations:[]};return n.paths&&u(r,n.paths,o),s&&u(r,s,o,!0),t&&j(t,o),o}function j(r,f){for(const n of y)if(r[n])for(const o of r[n]){const s=o.tags&&o.tags.length?o.tags:[P(n)];for(const t of s){let a=f[t];a===void 0&&(a={name:t,operations:[],used:!0},f[t]=a)}}}function $(r,f,n,o,s,t,a,i){if(s.$ref){const{resolved:c}=r.deref(s);u(r,{[o]:c},t,a);return}let e=n?.tags;(!e||!e.length)&&(e=a?[g]:[""]);for(const c of e){let p=t[c];p===void 0&&(p={name:c,operations:[]},t[c]=p),!p["x-traitTag"]&&p.operations.push({...n,pathName:o,pointer:w.compile(["paths",o,f]),httpVerb:f,pathParameters:s.parameters||[],pathServers:s.servers,isWebhook:!!a,isAdditionalOperation:!!i,keywords:n["x-keywords"]})}}function u(r,f,n,o){for(const s of Object.keys(f||{})){const t=f[s],a=Object.keys(t).filter(S);for(const i of a){const e=t[i];$(r,i,e,s,t,n,o)}if(t.additionalOperations)for(const[i,e]of Object.entries(t.additionalOperations))$(r,i,e,s,t,n,o,!0)}}function P(r){return r.charAt(0).toUpperCase()+r.slice(1)}export{P as capitalize,I as getTagGroupsItems,v as getTagsItems,M as getTagsWithOperations,$ as processOperation};
4
+ {% mcp${e.slice(0,-1)} name="${i.name}" id="${f}" /%}`,isSchema:!0,level:2},n);m.depth=n.depth+1,o.push(m)}}return o}function N(r,a){const{definition:n}=r,o={},s=n["x-webhooks"]||n.webhooks,e=n["x-mcp"];for(const c of a||[])o[c.name]={...c,operations:[]};return n.paths&&u(r,n.paths,o),s&&u(r,s,o,!0),e&&j(e,o),o}function j(r,a){for(const n of O)if(r[n])for(const o of r[n]){const s=o.tags&&o.tags.length?o.tags:[P(n)];for(const e of s){let c=a[e];c===void 0&&(c={name:e,operations:[],used:!0},a[e]=c)}}}function $(r,a,n,o,s,e,c,i){if(s.$ref){const{resolved:f}=r.deref(s);u(r,{[o]:f},e,c);return}let t=n?.tags;(!t||!t.length)&&(t=c?[g]:[""]);for(const f of t){let p=e[f];p===void 0&&(p={name:f,operations:[]},e[f]=p),!p["x-traitTag"]&&p.operations.push({...n,pathName:o,pointer:w.compile(["paths",o,a]),httpVerb:a==="x-query"?"query":a,pathParameters:s.parameters||[],pathServers:s.servers,isWebhook:!!c,isAdditionalOperation:!!i,keywords:n["x-keywords"]})}}function u(r,a,n,o){for(const s of Object.keys(a||{})){const e=a[s],c=Object.keys(e).filter(S);for(const i of c){const t=e[i];$(r,i,t,s,e,n,o)}if(e.additionalOperations)for(const[i,t]of Object.entries(e.additionalOperations))$(r,i,t,s,e,n,o,!0)}}function P(r){return r.charAt(0).toUpperCase()+r.slice(1)}export{P as capitalize,M as getTagGroupsItems,v as getTagsItems,N as getTagsWithOperations,$ as processOperation};
@@ -1,3 +1,4 @@
1
1
  export * from './open-api.js';
2
2
  export * from './security.js';
3
3
  export * from './app.js';
4
+ export * from './oauth2-types.js';
@@ -1 +1 @@
1
- export*from"./open-api.js";export*from"./security.js";export*from"./app.js";
1
+ export*from"./open-api.js";export*from"./security.js";export*from"./app.js";export*from"./oauth2-types.js";
@@ -0,0 +1,4 @@
1
+ import type { OpenAPISecurityScheme } from './index.js';
2
+ export type OAuth2Flows = NonNullable<OpenAPISecurityScheme['flows']>;
3
+ export type OAuth2FlowType = keyof OAuth2Flows;
4
+ export type OAuth2Flow = NonNullable<OAuth2Flows[OAuth2FlowType]>;
File without changes
@@ -77,6 +77,8 @@ export interface OpenAPIPath extends Partial<OpenAPIRef>, ParsedDescriptionWithS
77
77
  get?: OpenAPIOperation;
78
78
  put?: OpenAPIOperation;
79
79
  post?: OpenAPIOperation;
80
+ query?: OpenAPIOperation;
81
+ 'x-query'?: OpenAPIOperation;
80
82
  delete?: OpenAPIOperation;
81
83
  options?: OpenAPIOperation;
82
84
  head?: OpenAPIOperation;
@@ -311,6 +313,9 @@ export interface OpenAPIComponents {
311
313
  callbacks?: {
312
314
  [name: string]: Referenced<OpenAPICallback>;
313
315
  };
316
+ mediaTypes?: {
317
+ [name: string]: Referenced<OpenAPIMediaType>;
318
+ };
314
319
  }
315
320
  export interface OpenAPISecurityRequirement {
316
321
  [name: string]: string[];
@@ -38,6 +38,9 @@ export declare const shortenHTTPVerb: (verb: string) => string;
38
38
  export declare function isRedocExtension(key: string): boolean;
39
39
  export declare function extractExtensions(obj: GenericObject, showExtensions: string[] | true): GenericObject;
40
40
  export declare function pluralizeType(displayType: string): string;
41
+ export declare function getContent(parser: OpenAPIParser, info: OpenAPIRequestBody | OpenAPIResponse): {
42
+ [mime: string]: OpenAPIMediaType;
43
+ } | undefined;
41
44
  export declare function getContentWithLegacyExamples(info: OpenAPIRequestBody | OpenAPIResponse): {
42
45
  [mime: string]: OpenAPIMediaType;
43
46
  } | undefined;
@@ -1 +1 @@
1
- import{dirname as b}from"path";import m from"url-template";import{deleteEmptyArrayItem as w,isArrayOfObjects as E,isNumeric as S,removeQueryStringAndHash as T,resolveUrl as N,sanitizeItemId as l,normalizeText as g,getValueFromMdParsedExtension as j,isAbsoluteUrl as z}from"./helpers.js";import{DEFAULT_TAG_SLUG as D,MediaTypes as a}from"../constants.js";import{JsonPointer as _}from"./JsonPointer.js";import{joinWithSeparator as $}from"../services/index.js";import{tryDecodeURIComponent as R}from"./string.js";import{getUrlDirname as L}from"./url.js";import{IS_BROWSER as U}from"./dom.js";function P(e){return typeof e=="string"&&/\dxx/i.test(e)}function ne(e){return e==="default"||S(e)||P(e)}function ie(e,r=!1){if(e==="default")return r?"error":"success";let t=typeof e=="string"?parseInt(e,10):e;if(P(e)&&(t*=100),t<100||t>599)throw new Error("invalid HTTP code");let n="success";return t>=300&&t<400?n="redirect":t>=400?n="error":t<200&&(n="info"),n}const q={get:!0,post:!0,put:!0,head:!0,patch:!0,delete:!0,options:!0,$ref:!0};function oe(e){return e in q}function ue(e){const{operationId:r,pathName:t}=e,n=g(j(e,"description"));return g(j(e,"summary"))||r||n&&n.substring(0,50)||t||"<no summary>"}function se(e,r){return r?.id?$(r.id,l(e.operationId?e.operationId:d(e.pointer))).toLowerCase():e.tags?.length?l(e.operationId?e.operationId:d(e.pointer)):l(e.operationId?$(D,e.operationId):d(e.pointer))}function d(e){return e?.startsWith("/")?e.slice(1,e.length):e}const O={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",contentEncoding:"string",contentMediaType:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",unevaluatedProperties:"object",patternProperties:"object",properties:"object"};function ae(e){if(e.type!==void 0&&!Array.isArray(e.type))return e.type;const r=Object.keys(O);for(const t of r){const n=O[t];if(e[t]!==void 0)return n}return"any"}function F(e,r=e.type){if(e["x-circular-ref"]||e["x-complex"])return!0;if(e.oneOf!==void 0||e.anyOf!==void 0||e.if&&e.then||e.if&&e.else)return!1;let t=!0;const n=Array.isArray(r);return(r==="object"||n&&r?.includes("object"))&&(t=e.properties!==void 0?Object.keys(e.properties).length===0:e.additionalProperties===void 0&&e.unevaluatedProperties===void 0&&e.patternProperties===void 0),Array.isArray(e.items)||Array.isArray(e.prefixItems)?!1:(e.items!==void 0&&typeof e.items!="boolean"&&(r==="array"||n&&r?.includes("array"))&&(t=F(e.items,e.items.type)),t)}function k(e){return e.search(/json/i)!==-1}function ce(e){return e?.search(/xml/i)!==-1}function pe(e){return e===a.URL_ENCODED}function fe(e){return e===a.MULTIPART}function me(e){return[a.JSONL,a.NDJSON,a.JSON_SEQ,a.EVENT_STREAM,a.MULTIPART_MIXED].includes(e)}function p(e,r,t){return Array.isArray(e)?e.map(n=>n.toString()).join(t):typeof e=="object"?Object.keys(e).map(n=>`${n}${t}${e[n]}`).join(t):r+"="+e.toString()}function A(e,r){return Array.isArray(e)?(console.warn("deepObject style cannot be used with array value:"+e.toString()),""):typeof e=="object"?Object.keys(e).map(t=>e[t]?`${r}[${t}]=${e[t]}`:void 0).filter(Boolean).join("&"):(console.warn("deepObject style cannot be used with non-object value:"+e.toString()),"")}function c(e,r,t){const n="__redoc_param_name__",i=r?"*":"";return m.parse(`{?${n}${i}}`).expand({[n]:t}).substring(1).replace(/__redoc_param_name__/g,e)}function I(e,r){const t=e?"*":"",n="__redoc_param_name__",i=m.parse(`{${n}${t}}`);return R(i.expand({[n]:r}))}function le(e,r={}){if(Array.isArray(e))throw new Error("Payload must have fields: "+e.toString());return Object.keys(e).map(t=>{const n=e[t],{style:i="form",explode:o=!0}=r[t]||{};switch(i){case"form":return c(t,o,n);case"spaceDelimited":return p(n,t,"%20");case"pipeDelimited":return p(n,t,"|");case"deepObject":return A(n,t);default:return console.warn("Incorrect or unsupported encoding style: "+i),""}}).join("&")}function W(e,r,t,n){const i=t?"*":"";let o="";r==="label"?o=".":r==="matrix"&&(o=";");const s="__redoc_param_name__";return m.parse(`{${o}${s}${i}}`).expand({[s]:n}).replace(/__redoc_param_name__/g,e)}function H(e,r,t,n){const i=o=>{switch(r){case"form":return c(e,t,o);case"spaceDelimited":return!Array.isArray(o)&&typeof o!="object"?(console.warn("The style spaceDelimited is applicable to arrays or objects"),""):t?c(e,t,o):p(n,e,"%20");case"pipeDelimited":return!Array.isArray(o)&&typeof o!="object"?(console.warn("The style pipeDelimited is applicable to arrays or objects"),""):t?c(e,t,o):p(n,e,"|");case"deepObject":return!t||Array.isArray(o)||typeof o!="object"?(console.warn("The style deepObject is only applicable for objects with explode=true"),""):A(o,e);case"simple":return I(t,n);default:return console.warn("Unexpected style for query: "+r),""}};return E(n)&&(n=w(n).map(o=>i(o))),i(n)}function C(e,r,t){switch(e){case"simple":return I(r,t);default:return console.warn("Unexpected style for header: "+e),""}}function J(e,r,t,n){switch(r){case"form":return c(e,t,n);default:return console.warn("Unexpected style for cookie: "+r),""}}function M(e,r){return k(r)?JSON.stringify(e):(console.warn(`Parameter serialization as ${r} is not supported`),"")}function de(e,r){const{name:t,style:n,explode:i=!1,serializationMime:o}=e;if(o)switch(e.in){case"path":case"header":return M(r,o);case"cookie":case"query":return`${t}=${M(r,o)}`;default:return console.warn("Unexpected parameter location: "+e.in),""}if(!n)return console.warn(`Missing style attribute or content for parameter ${t}`),"";switch(e.in){case"path":return W(t,n,i,r);case"query":return H(t,n,i,r);case"header":return C(n,i,r);case"cookie":return J(t,n,i,r);default:return console.warn("Unexpected parameter location: "+e.in),""}}function xe(e){return e.search(/xml/i)!==-1?"xml":e.includes("application/json-seq")?"json-seq":e.includes("application/jsonl")?"jsonl":e.includes("json")?"json":e.includes("multipart/mixed")?"multipart-mixed":e.includes("text/event-stream")?"yaml":"clike"}const h=/^#\/components\/(schemas|pathItems)\/([^/]+)$/;function ye(e){return h.test(e||"")}function be(e){return e?.match(h)?.pop()}function B(e){if(e===void 0)return;const r=e.toString(10);return/^0\.0*1$/.test(r)?`decimal places <= ${r.split(".")[1].length}`:`multiple of ${r}`}function x(e,r,t){let n;return r!==void 0&&t!==void 0?r===t?n=`= ${r} ${e}`:n=`[ ${r} .. ${t} ] ${e}`:t!==void 0?n=`<= ${t} ${e}`:r!==void 0&&(r===1?n="non-empty":n=`>= ${r} ${e}`),n}function G(e){const r=typeof e.exclusiveMinimum=="number"?Math.min(e.exclusiveMinimum,e.minimum??1/0):e.minimum,t=typeof e.exclusiveMaximum=="number"?Math.max(e.exclusiveMaximum,e.maximum??-1/0):e.maximum,n=typeof e.exclusiveMinimum=="number"||e.exclusiveMinimum,i=typeof e.exclusiveMaximum=="number"||e.exclusiveMaximum;if(r!==void 0&&t!==void 0)return`${n?"( ":"[ "}${r} .. ${t}${i?" )":" ]"}`;if(t!==void 0)return`${i?"< ":"<= "}${t}`;if(r!==void 0)return`${n?"> ":">= "}${r}`}function ge(e){const r=[],t=x("characters",e.minLength,e.maxLength);t!==void 0&&r.push(t);const n=x("items",e.minItems,e.maxItems);n!==void 0&&r.push(n);const i=x(e.minProperties===1&&e.maxProperties===1?"property":"properties",e.minProperties,e.maxProperties);i!==void 0&&r.push(i);const o=B(e.multipleOf);o!==void 0&&r.push(o);const s=G(e);return s!==void 0&&r.push(s),e.uniqueItems&&r.push("unique"),r}function je(e,r=[]){const t=[],n=[],i=[];return e.forEach(o=>{o.required?r.includes(o.name)?n.push(o):i.push(o):t.push(o)}),n.sort((o,s)=>r.indexOf(o.name)-r.indexOf(s.name)),[...n,...i,...t]}function _e(e){return e.sort((r,t)=>Number(r.deprecated)-Number(t.deprecated))}function $e(e,r=[],t=[],{pathPointer:n,operationPointer:i}){const o={};t.forEach(u=>{({resolved:u}=e.deref(u)),o[u.name+"_"+u.in]=!0});const s=r.map((u,f)=>({paramOrRef:u,pointer:_.join(n,["parameters",String(f)])})).filter(({paramOrRef:u})=>({resolved:u}=e.deref(u),!o[u.name+"_"+u.in])),y=t.map((u,f)=>({paramOrRef:u,pointer:_.join(i,["parameters",String(f)])}));return[...s,...y]}function Pe(e,r){const n=e===void 0?T((()=>{if(!U)return globalThis.SSR_HOSTNAME||"";const i=window.location.href;return i.endsWith(".html")?b(i):i})()):z(e)?L(e):b(e);return r.length===0&&(r=[{url:"/"}]),r.map(i=>({...i,url:n?N(n,i.url):i.url,description:i.description||""}))}const Oe=e=>({delete:"del",options:"opts"})[e]||e;function Q(e){return e in{"x-circular-ref":!0,"x-complex":!0,"x-parentRefs":!0,"x-refsStack":!0,"x-codeSamples":!0,"x-displayName":!0,"x-examples":!0,"x-logo":!0,"x-nullable":!0,"x-servers":!0,"x-tagGroups":!0,"x-traitTag":!0,"x-additionalPropertiesName":!0,"x-explicitMappingOnly":!0,"x-enumDescriptions":!0,"x-badges":!0,"x-hideReplay":!0,"x-feedback":!0,"x-assertionType":!0,"x-rbac":!0}||e.startsWith("x-parsed-md-")}function Ae(e,r){return Object.keys(e).filter(t=>r===!0?t.startsWith("x-")&&!Q(t):t.startsWith("x-")&&r.indexOf(t)>-1).reduce((t,n)=>(t[n]=e[n],t),{})}function Ie(e){return e.split(" or ").map(r=>r.replace(/^(string|object|number|integer|array|boolean)s?( ?.*)/,"$1s$2")).join(" or ")}function Me(e){let r=e.content;const t=e["x-examples"],n=e["x-example"];if(t){r={...r};for(const i of Object.keys(t)){const o=t[i];r[i]={...r[i],examples:o}}}else if(n){r={...r};for(const i of Object.keys(n)){const o=n[i];r[i]={...r[i],example:o}}}return r}export{ae as detectType,Ae as extractExtensions,Me as getContentWithLegacyExamples,be as getDefinitionName,se as getOperationId,ue as getOperationName,ie as getStatusCodeType,ge as humanizeConstraints,G as humanizeNumberRange,pe as isFormUrlEncoded,k as isJsonLike,fe as isMultipartFormData,ye as isNamedDefinition,oe as isOperationName,F as isPrimitiveType,Q as isRedocExtension,me as isSequentialMediaType,ne as isStatusCode,ce as isXmlLike,xe as langFromMime,$e as mergeParams,Pe as normalizeServers,Ie as pluralizeType,de as serializeParameterValue,M as serializeParameterValueWithMime,H as serializeQueryParameter,Oe as shortenHTTPVerb,_e as sortByDeprecated,je as sortByRequired,le as urlFormEncodePayload};
1
+ import{dirname as g}from"path";import m from"url-template";import{deleteEmptyArrayItem as w,isArrayOfObjects as E,isNumeric as S,removeQueryStringAndHash as T,resolveUrl as N,sanitizeItemId as l,normalizeText as b,getValueFromMdParsedExtension as j,isAbsoluteUrl as z}from"./helpers.js";import{DEFAULT_TAG_SLUG as D,MediaTypes as a}from"../constants.js";import{JsonPointer as _}from"./JsonPointer.js";import{joinWithSeparator as $}from"../services/index.js";import{tryDecodeURIComponent as R}from"./string.js";import{getUrlDirname as q}from"./url.js";import{IS_BROWSER as L}from"./dom.js";function P(e){return typeof e=="string"&&/\dxx/i.test(e)}function ie(e){return e==="default"||S(e)||P(e)}function oe(e,r=!1){if(e==="default")return r?"error":"success";let t=typeof e=="string"?parseInt(e,10):e;if(P(e)&&(t*=100),t<100||t>599)throw new Error("invalid HTTP code");let n="success";return t>=300&&t<400?n="redirect":t>=400?n="error":t<200&&(n="info"),n}const U={get:!0,post:!0,put:!0,head:!0,patch:!0,delete:!0,options:!0,$ref:!0,"x-query":!0,query:!0};function ue(e){return e in U}function se(e){const{operationId:r,pathName:t}=e,n=b(j(e,"description"));return b(j(e,"summary"))||r||n&&n.substring(0,50)||t||"<no summary>"}function ae(e,r){return r?.id?$(r.id,l(e.operationId?e.operationId:d(e.pointer))).toLowerCase():e.tags?.length?l(e.operationId?e.operationId:d(e.pointer)):l(e.operationId?$(D,e.operationId):d(e.pointer))}function d(e){return e?.startsWith("/")?e.slice(1,e.length):e}const O={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",contentEncoding:"string",contentMediaType:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",unevaluatedProperties:"object",patternProperties:"object",properties:"object"};function ce(e){if(e.type!==void 0&&!Array.isArray(e.type))return e.type;const r=Object.keys(O);for(const t of r){const n=O[t];if(e[t]!==void 0)return n}return"any"}function F(e,r=e.type){if(e["x-circular-ref"]||e["x-complex"])return!0;if(e.oneOf!==void 0||e.anyOf!==void 0||e.if&&e.then||e.if&&e.else)return!1;let t=!0;const n=Array.isArray(r);return(r==="object"||n&&r?.includes("object"))&&(t=e.properties!==void 0?Object.keys(e.properties).length===0:e.additionalProperties===void 0&&e.unevaluatedProperties===void 0&&e.patternProperties===void 0),Array.isArray(e.items)||Array.isArray(e.prefixItems)?!1:(e.items!==void 0&&typeof e.items!="boolean"&&(r==="array"||n&&r?.includes("array"))&&(t=F(e.items,e.items.type)),t)}function k(e){return e.search(/json/i)!==-1}function pe(e){return e?.search(/xml/i)!==-1}function fe(e){return e===a.URL_ENCODED}function me(e){return e===a.MULTIPART}function le(e){return[a.JSONL,a.NDJSON,a.JSON_SEQ,a.EVENT_STREAM,a.MULTIPART_MIXED].includes(e)}function p(e,r,t){return Array.isArray(e)?e.map(n=>n.toString()).join(t):typeof e=="object"?Object.keys(e).map(n=>`${n}${t}${e[n]}`).join(t):r+"="+e.toString()}function A(e,r){return Array.isArray(e)?(console.warn("deepObject style cannot be used with array value:"+e.toString()),""):typeof e=="object"?Object.keys(e).map(t=>e[t]?`${r}[${t}]=${e[t]}`:void 0).filter(Boolean).join("&"):(console.warn("deepObject style cannot be used with non-object value:"+e.toString()),"")}function c(e,r,t){const n="__redoc_param_name__",i=r?"*":"";return m.parse(`{?${n}${i}}`).expand({[n]:t}).substring(1).replace(/__redoc_param_name__/g,e)}function I(e,r){const t=e?"*":"",n="__redoc_param_name__",i=m.parse(`{${n}${t}}`);return R(i.expand({[n]:r}))}function de(e,r={}){if(Array.isArray(e))throw new Error("Payload must have fields: "+e.toString());return Object.keys(e).map(t=>{const n=e[t],{style:i="form",explode:o=!0}=r[t]||{};switch(i){case"form":return c(t,o,n);case"spaceDelimited":return p(n,t,"%20");case"pipeDelimited":return p(n,t,"|");case"deepObject":return A(n,t);default:return console.warn("Incorrect or unsupported encoding style: "+i),""}}).join("&")}function W(e,r,t,n){const i=t?"*":"";let o="";r==="label"?o=".":r==="matrix"&&(o=";");const s="__redoc_param_name__";return m.parse(`{${o}${s}${i}}`).expand({[s]:n}).replace(/__redoc_param_name__/g,e)}function C(e,r,t,n){const i=o=>{switch(r){case"form":return c(e,t,o);case"spaceDelimited":return!Array.isArray(o)&&typeof o!="object"?(console.warn("The style spaceDelimited is applicable to arrays or objects"),""):t?c(e,t,o):p(n,e,"%20");case"pipeDelimited":return!Array.isArray(o)&&typeof o!="object"?(console.warn("The style pipeDelimited is applicable to arrays or objects"),""):t?c(e,t,o):p(n,e,"|");case"deepObject":return!t||Array.isArray(o)||typeof o!="object"?(console.warn("The style deepObject is only applicable for objects with explode=true"),""):A(o,e);case"simple":return I(t,n);default:return console.warn("Unexpected style for query: "+r),""}};return E(n)&&(n=w(n).map(o=>i(o))),i(n)}function H(e,r,t){switch(e){case"simple":return I(r,t);default:return console.warn("Unexpected style for header: "+e),""}}function J(e,r,t,n){switch(r){case"form":return c(e,t,n);default:return console.warn("Unexpected style for cookie: "+r),""}}function M(e,r){return k(r)?JSON.stringify(e):(console.warn(`Parameter serialization as ${r} is not supported`),"")}function xe(e,r){const{name:t,style:n,explode:i=!1,serializationMime:o}=e;if(o)switch(e.in){case"path":case"header":return M(r,o);case"cookie":case"query":return`${t}=${M(r,o)}`;default:return console.warn("Unexpected parameter location: "+e.in),""}if(!n)return console.warn(`Missing style attribute or content for parameter ${t}`),"";switch(e.in){case"path":return W(t,n,i,r);case"query":return C(t,n,i,r);case"header":return H(n,i,r);case"cookie":return J(t,n,i,r);default:return console.warn("Unexpected parameter location: "+e.in),""}}function ye(e){return e.search(/xml/i)!==-1?"xml":e.includes("application/json-seq")?"json-seq":e.includes("application/jsonl")?"jsonl":e.includes("json")?"json":e.includes("multipart/mixed")?"multipart-mixed":e.includes("text/event-stream")?"yaml":"clike"}const h=/^#\/components\/(schemas|pathItems)\/([^/]+)$/;function ge(e){return h.test(e||"")}function be(e){return e?.match(h)?.pop()}function B(e){if(e===void 0)return;const r=e.toString(10);return/^0\.0*1$/.test(r)?`decimal places <= ${r.split(".")[1].length}`:`multiple of ${r}`}function x(e,r,t){let n;return r!==void 0&&t!==void 0?r===t?n=`= ${r} ${e}`:n=`[ ${r} .. ${t} ] ${e}`:t!==void 0?n=`<= ${t} ${e}`:r!==void 0&&(r===1?n="non-empty":n=`>= ${r} ${e}`),n}function G(e){const r=typeof e.exclusiveMinimum=="number"?Math.min(e.exclusiveMinimum,e.minimum??1/0):e.minimum,t=typeof e.exclusiveMaximum=="number"?Math.max(e.exclusiveMaximum,e.maximum??-1/0):e.maximum,n=typeof e.exclusiveMinimum=="number"||e.exclusiveMinimum,i=typeof e.exclusiveMaximum=="number"||e.exclusiveMaximum;if(r!==void 0&&t!==void 0)return`${n?"( ":"[ "}${r} .. ${t}${i?" )":" ]"}`;if(t!==void 0)return`${i?"< ":"<= "}${t}`;if(r!==void 0)return`${n?"> ":">= "}${r}`}function je(e){const r=[],t=x("characters",e.minLength,e.maxLength);t!==void 0&&r.push(t);const n=x("items",e.minItems,e.maxItems);n!==void 0&&r.push(n);const i=x(e.minProperties===1&&e.maxProperties===1?"property":"properties",e.minProperties,e.maxProperties);i!==void 0&&r.push(i);const o=B(e.multipleOf);o!==void 0&&r.push(o);const s=G(e);return s!==void 0&&r.push(s),e.uniqueItems&&r.push("unique"),r}function _e(e,r=[]){const t=[],n=[],i=[];return e.forEach(o=>{o.required?r.includes(o.name)?n.push(o):i.push(o):t.push(o)}),n.sort((o,s)=>r.indexOf(o.name)-r.indexOf(s.name)),[...n,...i,...t]}function $e(e){return e.sort((r,t)=>Number(r.deprecated)-Number(t.deprecated))}function Pe(e,r=[],t=[],{pathPointer:n,operationPointer:i}){const o={};t.forEach(u=>{({resolved:u}=e.deref(u)),o[u.name+"_"+u.in]=!0});const s=r.map((u,f)=>({paramOrRef:u,pointer:_.join(n,["parameters",String(f)])})).filter(({paramOrRef:u})=>({resolved:u}=e.deref(u),!o[u.name+"_"+u.in])),y=t.map((u,f)=>({paramOrRef:u,pointer:_.join(i,["parameters",String(f)])}));return[...s,...y]}function Oe(e,r){const n=e===void 0?T((()=>{if(!L)return globalThis.SSR_HOSTNAME||"";const i=window.location.href;return i.endsWith(".html")?g(i):i})()):z(e)?q(e):g(e);return r.length===0&&(r=[{url:"/"}]),r.map(i=>({...i,url:n?N(n,i.url):i.url,description:i.description||""}))}const Ae=e=>({delete:"del",options:"opts"})[e]||e;function Q(e){return e in{"x-circular-ref":!0,"x-complex":!0,"x-parentRefs":!0,"x-refsStack":!0,"x-codeSamples":!0,"x-displayName":!0,"x-examples":!0,"x-logo":!0,"x-nullable":!0,"x-servers":!0,"x-tagGroups":!0,"x-traitTag":!0,"x-additionalPropertiesName":!0,"x-explicitMappingOnly":!0,"x-enumDescriptions":!0,"x-badges":!0,"x-hideReplay":!0,"x-feedback":!0,"x-assertionType":!0,"x-rbac":!0}||e.startsWith("x-parsed-md-")}function Ie(e,r){return Object.keys(e).filter(t=>r===!0?t.startsWith("x-")&&!Q(t):t.startsWith("x-")&&r.indexOf(t)>-1).reduce((t,n)=>(t[n]=e[n],t),{})}function Me(e){return e.split(" or ").map(r=>r.replace(/^(string|object|number|integer|array|boolean)s?( ?.*)/,"$1s$2")).join(" or ")}function he(e,r){const{resolved:t}=e.deref(r.content);return X({...r,content:t})}function X(e){let r=e.content;const t=e["x-examples"],n=e["x-example"];if(t){r={...r};for(const i of Object.keys(t)){const o=t[i];r[i]={...r[i],examples:o}}}else if(n){r={...r};for(const i of Object.keys(n)){const o=n[i];r[i]={...r[i],example:o}}}return r}export{ce as detectType,Ie as extractExtensions,he as getContent,X as getContentWithLegacyExamples,be as getDefinitionName,ae as getOperationId,se as getOperationName,oe as getStatusCodeType,je as humanizeConstraints,G as humanizeNumberRange,fe as isFormUrlEncoded,k as isJsonLike,me as isMultipartFormData,ge as isNamedDefinition,ue as isOperationName,F as isPrimitiveType,Q as isRedocExtension,le as isSequentialMediaType,ie as isStatusCode,pe as isXmlLike,ye as langFromMime,Pe as mergeParams,Oe as normalizeServers,Me as pluralizeType,xe as serializeParameterValue,M as serializeParameterValueWithMime,C as serializeQueryParameter,Ae as shortenHTTPVerb,$e as sortByDeprecated,_e as sortByRequired,de as urlFormEncodePayload};
@@ -0,0 +1,5 @@
1
+ import type { OAuth2Flows } from '../types/index.js';
2
+ export declare function isScopeTruncated(scope: string, maxVisibleScopeChars: number): boolean;
3
+ export declare function getVisibleScopeLabel(scope: string, maxVisibleScopeChars: number): string;
4
+ export declare function normalizeScopes(scopes?: string[]): string[];
5
+ export declare function buildScopeDescriptionIndex(flows?: OAuth2Flows): Map<string, string>;
@@ -0,0 +1 @@
1
+ function o(e,t){return e.length>t}function c(e,t){return o(e,t)?`${e.slice(0,t)}...`:e}function f(e){return!e||e.length===0?[]:e.flatMap(t=>t.split(/[,\s]+/).map(n=>n.trim()).filter(Boolean))}function u(e){const t=new Map;if(!e)return t;for(const n of Object.values(e))if(n?.scopes)for(const[r,i]of Object.entries(n.scopes))t.has(r)||t.set(r,i);return t}export{u as buildScopeDescriptionIndex,c as getVisibleScopeLabel,o as isScopeTruncated,f as normalizeScopes};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/openapi-docs",
3
- "version": "3.18.0-next.1",
3
+ "version": "3.18.0-next.10",
4
4
  "description": "Redocly OpenAPI Docs",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -15,22 +15,22 @@
15
15
  },
16
16
  "peerDependencies": {
17
17
  "@redocly/theme": ">=0.62.0-next.0",
18
- "react": "19.2.3",
19
- "react-dom": "19.2.3",
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.5",
24
+ "@redocly/openapi-core": "2.15.2",
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,8 +38,8 @@
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.21.0-next.1"
41
+ "@redocly/config": "0.41.4",
42
+ "@redocly/replay": "0.21.0-next.10"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@shikijs/transformers": "3.21.0",
@@ -61,8 +61,8 @@
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
68
  "shiki": "3.21.0",
@@ -72,7 +72,7 @@
72
72
  "url": "~0.11.0",
73
73
  "vite": "7.2.6",
74
74
  "vitest": "4.0.10",
75
- "@redocly/theme": "0.62.0-next.0"
75
+ "@redocly/theme": "0.62.0-next.7"
76
76
  },
77
77
  "scripts": {
78
78
  "start": "pnpm run copy-highlight-hook && vite",
@@ -83,8 +83,7 @@
83
83
  "prepare:community-source-only": "pnpm run prepare:community-source --ignore /src/* private-readme.md",
84
84
  "prepare:community-dependencies": "pnpx tsx scripts/prepare-community-dependencies.ts",
85
85
  "apply:community-source": "pnpx tsx scripts/apply-changes-from-community-source.ts",
86
- "test": "pnpm run prepare:community-source && pnpm run test:redoc && vitest run",
87
- "test:redoc": "cd redoc && npm install ../../theme ../../redocly-config --no-save && npm run lint && npm run unit",
86
+ "test": "vitest run",
88
87
  "unit": "vitest run",
89
88
  "unit:update": "vitest run -u",
90
89
  "unit:watch": "vitest",