@redocly/openapi-docs 3.11.0-rc.1 → 3.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1441) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/redocly-openapi-docs.min.js +11829 -10841
  3. package/lib/components/ApiInfo/ApiInfo.d.ts +1 -1
  4. package/lib/components/ApiInfo/ApiInfo.js +1 -2
  5. package/lib/components/ApiInfo/Metadata.d.ts +1 -1
  6. package/lib/components/ApiInfo/Metadata.js +1 -2
  7. package/lib/components/ApiInfo/index.d.ts +1 -1
  8. package/lib/components/ApiInfo/index.js +1 -2
  9. package/lib/components/ApiInfo/styled.d.ts +4 -4
  10. package/lib/components/ApiInfo/styled.js +8 -9
  11. package/lib/components/CallbackSamples/CallbackSamples.js +4 -5
  12. package/lib/components/CallbackSamples/index.d.ts +1 -1
  13. package/lib/components/CallbackSamples/index.js +1 -2
  14. package/lib/components/Callbacks/CallbackDetails.d.ts +1 -1
  15. package/lib/components/Callbacks/CallbackDetails.js +3 -4
  16. package/lib/components/Callbacks/CallbackOperation.d.ts +1 -1
  17. package/lib/components/Callbacks/CallbackOperation.js +3 -4
  18. package/lib/components/Callbacks/CallbackSummary.d.ts +1 -1
  19. package/lib/components/Callbacks/CallbackSummary.js +3 -4
  20. package/lib/components/Callbacks/CallbacksList.d.ts +1 -1
  21. package/lib/components/Callbacks/CallbacksList.js +1 -2
  22. package/lib/components/Callbacks/index.d.ts +3 -3
  23. package/lib/components/Callbacks/index.js +1 -2
  24. package/lib/components/Callbacks/styled.d.ts +1 -3
  25. package/lib/components/Callbacks/styled.js +2 -3
  26. package/lib/components/Content/Content.d.ts +1 -1
  27. package/lib/components/Content/Content.js +1 -2
  28. package/lib/components/Content/index.d.ts +1 -1
  29. package/lib/components/Content/index.js +1 -2
  30. package/lib/components/Content/useAutoScroll.js +1 -2
  31. package/lib/components/ContentItem/ContentItem.d.ts +1 -1
  32. package/lib/components/ContentItem/ContentItem.js +1 -2
  33. package/lib/components/ContentItem/index.d.ts +1 -1
  34. package/lib/components/ContentItem/index.js +1 -2
  35. package/lib/components/ContentItem/useIsExpanded.d.ts +1 -1
  36. package/lib/components/ContentItem/useIsExpanded.js +1 -2
  37. package/lib/components/ContentItems/ContentItems.d.ts +1 -1
  38. package/lib/components/ContentItems/ContentItems.js +1 -2
  39. package/lib/components/ContentItems/Items.js +1 -2
  40. package/lib/components/ContentItems/VirtualList.d.ts +1 -1
  41. package/lib/components/ContentItems/VirtualList.js +1 -2
  42. package/lib/components/ContentItems/helpers.d.ts +3 -3
  43. package/lib/components/ContentItems/helpers.js +1 -2
  44. package/lib/components/ContentItems/index.d.ts +1 -1
  45. package/lib/components/ContentItems/index.js +1 -2
  46. package/lib/components/ContentItems/useScrollOnRender.d.ts +1 -1
  47. package/lib/components/ContentItems/useScrollOnRender.js +1 -2
  48. package/lib/components/Discriminator/Discriminator.d.ts +1 -1
  49. package/lib/components/Discriminator/Discriminator.js +2 -3
  50. package/lib/components/Discriminator/index.d.ts +1 -1
  51. package/lib/components/Discriminator/index.js +1 -2
  52. package/lib/components/Download/DownloadSpecification.js +4 -5
  53. package/lib/components/Download/index.d.ts +1 -1
  54. package/lib/components/Download/index.js +1 -2
  55. package/lib/components/Download/types.js +0 -2
  56. package/lib/components/Download/useDownloadInfo.d.ts +1 -1
  57. package/lib/components/Download/useDownloadInfo.js +1 -2
  58. package/lib/components/ErrorBoundary/ErrorBoundary.js +2 -3
  59. package/lib/components/ErrorBoundary/index.d.ts +1 -1
  60. package/lib/components/ErrorBoundary/index.js +1 -2
  61. package/lib/components/ExpandAllButton/ExpandAllButton.js +2 -3
  62. package/lib/components/ExpandAllButton/index.d.ts +1 -1
  63. package/lib/components/ExpandAllButton/index.js +1 -2
  64. package/lib/components/ExternalDocumentation/ExternalDocumentation.d.ts +1 -1
  65. package/lib/components/ExternalDocumentation/ExternalDocumentation.js +4 -5
  66. package/lib/components/ExternalDocumentation/index.d.ts +1 -1
  67. package/lib/components/ExternalDocumentation/index.js +1 -2
  68. package/lib/components/Language/LanguageDropdown.d.ts +1 -1
  69. package/lib/components/Language/LanguageDropdown.js +1 -2
  70. package/lib/components/Language/LanguageItem.d.ts +1 -1
  71. package/lib/components/Language/LanguageItem.js +1 -2
  72. package/lib/components/Language/LanguageList.d.ts +1 -1
  73. package/lib/components/Language/LanguageList.js +1 -2
  74. package/lib/components/Language/_tests_/LanguageDropdown.test.js +1 -2
  75. package/lib/components/Language/constants.js +1 -2
  76. package/lib/components/Language/index.d.ts +3 -3
  77. package/lib/components/Language/index.js +1 -2
  78. package/lib/components/Language/styled.d.ts +8 -31
  79. package/lib/components/Language/styled.js +11 -12
  80. package/lib/components/Markdown/Markdown.d.ts +1 -1
  81. package/lib/components/Markdown/Markdown.js +1 -2
  82. package/lib/components/Markdown/index.d.ts +2 -2
  83. package/lib/components/Markdown/index.js +1 -2
  84. package/lib/components/Markdown/types.js +0 -2
  85. package/lib/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +2 -2
  86. package/lib/components/MediaTypeSwitch/MediaTypesSwitch.js +1 -2
  87. package/lib/components/MediaTypeSwitch/index.d.ts +1 -1
  88. package/lib/components/MediaTypeSwitch/index.js +1 -2
  89. package/lib/components/OperationItem/Description.d.ts +1 -1
  90. package/lib/components/OperationItem/Description.js +1 -2
  91. package/lib/components/OperationItem/OperationItem.d.ts +1 -3
  92. package/lib/components/OperationItem/OperationItem.js +5 -6
  93. package/lib/components/OperationItem/_tests_/OperationItem.test.js +1 -2
  94. package/lib/components/OperationItem/_tests_/__mocks__/mock-intersection-observer.js +1 -2
  95. package/lib/components/OperationItem/index.d.ts +2 -2
  96. package/lib/components/OperationItem/index.js +1 -2
  97. package/lib/components/OperationItem/types.d.ts +1 -1
  98. package/lib/components/OperationItem/types.js +0 -2
  99. package/lib/components/Overlay.d.ts +1 -1
  100. package/lib/components/Overlay.js +3 -4
  101. package/lib/components/Overview/Overview.d.ts +1 -1
  102. package/lib/components/Overview/Overview.js +1 -2
  103. package/lib/components/Overview/index.d.ts +1 -1
  104. package/lib/components/Overview/index.js +1 -2
  105. package/lib/components/PageFooter/PageFooter.js +1 -2
  106. package/lib/components/PageFooter/index.d.ts +1 -1
  107. package/lib/components/PageFooter/index.js +1 -2
  108. package/lib/components/Panel/ResponsePanel.d.ts +2 -3
  109. package/lib/components/Panel/ResponsePanel.js +6 -7
  110. package/lib/components/Panel/Trigger.d.ts +1 -1
  111. package/lib/components/Panel/Trigger.js +2 -3
  112. package/lib/components/Panel/index.d.ts +2 -2
  113. package/lib/components/Panel/index.js +1 -2
  114. package/lib/components/PanelItem/PanelItem.js +1 -2
  115. package/lib/components/PanelItem/index.d.ts +2 -2
  116. package/lib/components/PanelItem/index.js +1 -2
  117. package/lib/components/PanelItem/styled.d.ts +8 -16
  118. package/lib/components/PanelItem/styled.js +9 -10
  119. package/lib/components/PayloadSamples/Example.d.ts +1 -1
  120. package/lib/components/PayloadSamples/Example.js +1 -2
  121. package/lib/components/PayloadSamples/ExampleValue.d.ts +1 -1
  122. package/lib/components/PayloadSamples/ExampleValue.js +1 -2
  123. package/lib/components/PayloadSamples/MediaTypeSamples.d.ts +1 -1
  124. package/lib/components/PayloadSamples/MediaTypeSamples.js +2 -3
  125. package/lib/components/PayloadSamples/PayloadSamples.d.ts +1 -1
  126. package/lib/components/PayloadSamples/PayloadSamples.js +1 -2
  127. package/lib/components/PayloadSamples/index.d.ts +6 -5
  128. package/lib/components/PayloadSamples/index.js +1 -2
  129. package/lib/components/PayloadSamples/styled.d.ts +3 -4
  130. package/lib/components/PayloadSamples/styled.js +4 -5
  131. package/lib/components/PayloadSamples/types.d.ts +3 -3
  132. package/lib/components/PayloadSamples/types.js +0 -2
  133. package/lib/components/PropertyDetails/DescriptionEnums.d.ts +1 -1
  134. package/lib/components/PropertyDetails/DescriptionEnums.js +3 -4
  135. package/lib/components/PropertyDetails/EnumValues.d.ts +1 -1
  136. package/lib/components/PropertyDetails/EnumValues.js +1 -2
  137. package/lib/components/PropertyDetails/Examples.d.ts +1 -1
  138. package/lib/components/PropertyDetails/Examples.js +1 -2
  139. package/lib/components/PropertyDetails/Extensions.d.ts +1 -1
  140. package/lib/components/PropertyDetails/Extensions.js +2 -3
  141. package/lib/components/PropertyDetails/FieldDetail.js +2 -3
  142. package/lib/components/PropertyDetails/FieldDetails.d.ts +1 -1
  143. package/lib/components/PropertyDetails/FieldDetails.js +6 -7
  144. package/lib/components/PropertyDetails/Pattern.js +1 -2
  145. package/lib/components/PropertyDetails/PlusCircleIcon.js +4 -5
  146. package/lib/components/PropertyDetails/PropertyDetails.d.ts +1 -1
  147. package/lib/components/PropertyDetails/PropertyDetails.js +2 -3
  148. package/lib/components/PropertyDetails/SchemaTypeInfo.js +2 -3
  149. package/lib/components/PropertyDetails/SimpleEnums.d.ts +1 -1
  150. package/lib/components/PropertyDetails/SimpleEnums.js +2 -3
  151. package/lib/components/PropertyDetails/cycleColorsByLevel.js +1 -2
  152. package/lib/components/PropertyDetails/index.d.ts +3 -3
  153. package/lib/components/PropertyDetails/index.js +1 -2
  154. package/lib/components/PropertyDetails/styled.d.ts +6 -6
  155. package/lib/components/PropertyDetails/styled.js +7 -8
  156. package/lib/components/PropertyDetails/types.d.ts +3 -2
  157. package/lib/components/PropertyDetails/types.js +0 -2
  158. package/lib/components/RedoclyOpenAPIDocs/Providers.d.ts +2 -3
  159. package/lib/components/RedoclyOpenAPIDocs/Providers.js +1 -2
  160. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.d.ts +2 -3
  161. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.js +1 -2
  162. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsStandalone.d.ts +8 -0
  163. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsStandalone.js +1 -0
  164. package/lib/components/RedoclyOpenAPIDocs/index.d.ts +4 -4
  165. package/lib/components/RedoclyOpenAPIDocs/index.js +1 -2
  166. package/lib/components/RedoclyOpenAPIDocs/styled.d.ts +1 -1
  167. package/lib/components/RedoclyOpenAPIDocs/styled.js +2 -3
  168. package/lib/components/RedoclyOpenAPIDocs/types.d.ts +3 -3
  169. package/lib/components/RedoclyOpenAPIDocs/types.js +0 -2
  170. package/lib/components/RedoclyOpenAPIDocs/utils.d.ts +1 -4
  171. package/lib/components/RedoclyOpenAPIDocs/utils.js +1 -2
  172. package/lib/components/RenderHook/RenderHook.d.ts +2 -2
  173. package/lib/components/RenderHook/RenderHook.js +1 -2
  174. package/lib/components/RenderHook/index.d.ts +1 -1
  175. package/lib/components/RenderHook/index.js +1 -2
  176. package/lib/components/Replay/EmbeddedReplay.d.ts +1 -1
  177. package/lib/components/Replay/EmbeddedReplay.js +3 -4
  178. package/lib/components/Replay/Replay.d.ts +1 -1
  179. package/lib/components/Replay/Replay.js +1 -2
  180. package/lib/components/Replay/index.d.ts +2 -2
  181. package/lib/components/Replay/index.js +1 -2
  182. package/lib/components/Replay/utils.d.ts +4 -4
  183. package/lib/components/Replay/utils.js +1 -2
  184. package/lib/components/Request/RequestDetails.d.ts +1 -1
  185. package/lib/components/Request/RequestDetails.js +2 -3
  186. package/lib/components/Request/types.js +0 -2
  187. package/lib/components/RequestParameters/Body.d.ts +1 -1
  188. package/lib/components/RequestParameters/Body.js +1 -2
  189. package/lib/components/RequestParameters/ParametersGroup.d.ts +1 -1
  190. package/lib/components/RequestParameters/ParametersGroup.js +4 -5
  191. package/lib/components/RequestParameters/RequestParameters.d.ts +1 -1
  192. package/lib/components/RequestParameters/RequestParameters.js +1 -2
  193. package/lib/components/RequestParameters/index.d.ts +3 -2
  194. package/lib/components/RequestParameters/index.js +1 -2
  195. package/lib/components/RequestSamples/CodeSample.d.ts +3 -3
  196. package/lib/components/RequestSamples/CodeSample.js +2 -3
  197. package/lib/components/RequestSamples/Example.d.ts +1 -1
  198. package/lib/components/RequestSamples/Example.js +1 -2
  199. package/lib/components/RequestSamples/RequestSamples.d.ts +2 -2
  200. package/lib/components/RequestSamples/RequestSamples.js +5 -6
  201. package/lib/components/RequestSamples/index.d.ts +2 -2
  202. package/lib/components/RequestSamples/index.js +1 -2
  203. package/lib/components/RequestSamples/useCodeSamples.d.ts +3 -3
  204. package/lib/components/RequestSamples/useCodeSamples.js +1 -2
  205. package/lib/components/ResponseSamples/ResponseSamples.d.ts +2 -2
  206. package/lib/components/ResponseSamples/ResponseSamples.js +1 -2
  207. package/lib/components/ResponseSamples/Summary.js +1 -2
  208. package/lib/components/ResponseSamples/index.d.ts +1 -1
  209. package/lib/components/ResponseSamples/index.js +1 -2
  210. package/lib/components/Responses/OperationResponseList.d.ts +3 -3
  211. package/lib/components/Responses/OperationResponseList.js +2 -3
  212. package/lib/components/Responses/ResponseDetails.d.ts +1 -1
  213. package/lib/components/Responses/ResponseDetails.js +1 -2
  214. package/lib/components/Responses/ResponseHeaders.d.ts +1 -1
  215. package/lib/components/Responses/ResponseHeaders.js +1 -2
  216. package/lib/components/Responses/index.d.ts +5 -3
  217. package/lib/components/Responses/index.js +1 -2
  218. package/lib/components/Responses/styled.d.ts +5 -5
  219. package/lib/components/Responses/styled.js +6 -7
  220. package/lib/components/Responses/types.d.ts +1 -1
  221. package/lib/components/Responses/types.js +0 -2
  222. package/lib/components/RightPanel/RightPanel.d.ts +1 -1
  223. package/lib/components/RightPanel/RightPanel.js +1 -2
  224. package/lib/components/RightPanel/index.d.ts +1 -1
  225. package/lib/components/RightPanel/index.js +1 -2
  226. package/lib/components/Samples/ExampleSwitch.d.ts +1 -1
  227. package/lib/components/Samples/ExampleSwitch.js +1 -2
  228. package/lib/components/Samples/index.d.ts +2 -2
  229. package/lib/components/Samples/index.js +1 -2
  230. package/lib/components/Samples/use-example-key.d.ts +1 -1
  231. package/lib/components/Samples/use-example-key.js +1 -2
  232. package/lib/components/Schema/ArraySchema.d.ts +1 -1
  233. package/lib/components/Schema/ArraySchema.js +1 -2
  234. package/lib/components/Schema/ObjectSchema.d.ts +1 -1
  235. package/lib/components/Schema/ObjectSchema.js +1 -2
  236. package/lib/components/Schema/OneOfSchema.d.ts +11 -2
  237. package/lib/components/Schema/OneOfSchema.js +3 -4
  238. package/lib/components/Schema/RecursiveSchema.d.ts +1 -1
  239. package/lib/components/Schema/RecursiveSchema.js +1 -2
  240. package/lib/components/Schema/Schema.d.ts +1 -1
  241. package/lib/components/Schema/Schema.js +2 -3
  242. package/lib/components/Schema/SubSchema.js +1 -2
  243. package/lib/components/Schema/helpers.d.ts +1 -1
  244. package/lib/components/Schema/helpers.js +1 -2
  245. package/lib/components/Schema/index.d.ts +5 -5
  246. package/lib/components/Schema/index.js +1 -2
  247. package/lib/components/Schema/types.d.ts +7 -1
  248. package/lib/components/Schema/types.js +0 -2
  249. package/lib/components/Schema/useOneOfLocationIdx.d.ts +1 -1
  250. package/lib/components/Schema/useOneOfLocationIdx.js +1 -2
  251. package/lib/components/SchemaDefinition/SchemaDefinition.js +2 -3
  252. package/lib/components/SchemaDefinition/index.d.ts +1 -1
  253. package/lib/components/SchemaDefinition/index.js +1 -2
  254. package/lib/components/SectionContent/SectionContent.d.ts +3 -10
  255. package/lib/components/SectionContent/SectionContent.js +6 -7
  256. package/lib/components/SectionContent/index.d.ts +1 -1
  257. package/lib/components/SectionContent/index.js +1 -2
  258. package/lib/components/SectionItem/SectionItem.d.ts +1 -1
  259. package/lib/components/SectionItem/SectionItem.js +1 -2
  260. package/lib/components/SectionItem/index.d.ts +1 -1
  261. package/lib/components/SectionItem/index.js +1 -2
  262. package/lib/components/Security/Divider.js +2 -3
  263. package/lib/components/Security/OAuthFlow.d.ts +1 -1
  264. package/lib/components/Security/OAuthFlow.js +1 -2
  265. package/lib/components/Security/OAuthScopes.d.ts +2 -2
  266. package/lib/components/Security/OAuthScopes.js +9 -10
  267. package/lib/components/Security/Security.d.ts +1 -1
  268. package/lib/components/Security/Security.js +1 -2
  269. package/lib/components/Security/SecurityButton.d.ts +1 -1
  270. package/lib/components/Security/SecurityButton.js +7 -8
  271. package/lib/components/Security/SecurityFlow.d.ts +1 -1
  272. package/lib/components/Security/SecurityFlow.js +4 -5
  273. package/lib/components/Security/SecurityModal.d.ts +1 -1
  274. package/lib/components/Security/SecurityModal.js +5 -6
  275. package/lib/components/Security/SecuritySchemeItem.js +4 -5
  276. package/lib/components/Security/helper.d.ts +1 -1
  277. package/lib/components/Security/helper.js +1 -2
  278. package/lib/components/Security/index.d.ts +10 -1
  279. package/lib/components/Security/index.js +1 -2
  280. package/lib/components/Security/styled.d.ts +2 -2
  281. package/lib/components/Security/styled.js +3 -4
  282. package/lib/components/SelectOrLabel/SelectOrLabel.d.ts +1 -1
  283. package/lib/components/SelectOrLabel/SelectOrLabel.js +2 -3
  284. package/lib/components/SelectOrLabel/index.d.ts +1 -1
  285. package/lib/components/SelectOrLabel/index.js +1 -2
  286. package/lib/components/ServerList/ServerList.d.ts +1 -1
  287. package/lib/components/ServerList/ServerList.js +10 -11
  288. package/lib/components/ServerList/index.d.ts +1 -1
  289. package/lib/components/ServerList/index.js +1 -2
  290. package/lib/components/ServerList/types.d.ts +1 -1
  291. package/lib/components/ServerList/types.js +0 -2
  292. package/lib/components/ServerListDropdown/ServerListDropdown.d.ts +1 -1
  293. package/lib/components/ServerListDropdown/ServerListDropdown.js +1 -2
  294. package/lib/components/ServerListDropdown/index.d.ts +1 -1
  295. package/lib/components/ServerListDropdown/index.js +1 -2
  296. package/lib/components/ServerListDropdown/styled.d.ts +4 -5
  297. package/lib/components/ServerListDropdown/styled.js +6 -7
  298. package/lib/components/SideMenu/SideMenu.d.ts +2 -2
  299. package/lib/components/SideMenu/SideMenu.js +2 -3
  300. package/lib/components/SideMenu/hooks/useMenuItems.d.ts +2 -2
  301. package/lib/components/SideMenu/hooks/useMenuItems.js +1 -2
  302. package/lib/components/SideMenu/index.d.ts +1 -1
  303. package/lib/components/SideMenu/index.js +1 -2
  304. package/lib/components/SideMenu/types.d.ts +1 -1
  305. package/lib/components/SideMenu/types.js +0 -2
  306. package/lib/components/StickySidebar/SidebarActions.js +2 -3
  307. package/lib/components/StickySidebar/StickyResponsiveSidebar.js +3 -4
  308. package/lib/components/StickySidebar/index.d.ts +1 -1
  309. package/lib/components/StickySidebar/index.js +1 -2
  310. package/lib/components/Tabs/Tabs.d.ts +1 -1
  311. package/lib/components/Tabs/Tabs.js +5 -6
  312. package/lib/components/Tabs/index.d.ts +2 -2
  313. package/lib/components/Tabs/index.js +1 -2
  314. package/lib/components/Tabs/useTabsState.d.ts +1 -1
  315. package/lib/components/Tabs/useTabsState.js +1 -2
  316. package/lib/components/TagItem/OperationNavigationItems.d.ts +1 -1
  317. package/lib/components/TagItem/OperationNavigationItems.js +4 -5
  318. package/lib/components/TagItem/OperationsNavigation.d.ts +1 -1
  319. package/lib/components/TagItem/OperationsNavigation.js +2 -3
  320. package/lib/components/TagItem/TagItem.d.ts +1 -1
  321. package/lib/components/TagItem/TagItem.js +7 -9
  322. package/lib/components/TagItem/index.d.ts +1 -1
  323. package/lib/components/TagItem/index.js +1 -2
  324. package/lib/components/TagItem/styled.d.ts +1 -1
  325. package/lib/components/TagItem/styled.js +2 -3
  326. package/lib/components/TagItem/types.d.ts +1 -1
  327. package/lib/components/TagItem/types.js +0 -2
  328. package/lib/components/ViewNested/ViewNested.js +7 -8
  329. package/lib/components/ViewNested/index.d.ts +1 -1
  330. package/lib/components/ViewNested/index.js +1 -2
  331. package/lib/components/common/Badges.d.ts +3 -7
  332. package/lib/components/common/Badges.js +4 -5
  333. package/lib/components/common/BodyContent/BodyContent.d.ts +1 -1
  334. package/lib/components/common/BodyContent/BodyContent.js +4 -5
  335. package/lib/components/common/BodyContent/index.d.ts +1 -1
  336. package/lib/components/common/BodyContent/index.js +1 -2
  337. package/lib/components/common/ClearButton/ClearButton.d.ts +1 -1
  338. package/lib/components/common/ClearButton/ClearButton.js +1 -2
  339. package/lib/components/common/ClearButton/index.d.ts +2 -2
  340. package/lib/components/common/ClearButton/index.js +1 -2
  341. package/lib/components/common/ClearButton/styled.d.ts +1 -1
  342. package/lib/components/common/ClearButton/styled.js +2 -3
  343. package/lib/components/common/ClearButton/types.js +0 -2
  344. package/lib/components/common/CodeBlockPanel.d.ts +1 -2
  345. package/lib/components/common/CodeBlockPanel.js +3 -4
  346. package/lib/components/common/ConstraintsView.js +2 -3
  347. package/lib/components/common/Dropdown/Dropdown.js +4 -5
  348. package/lib/components/common/Dropdown/index.d.ts +2 -2
  349. package/lib/components/common/Dropdown/index.js +1 -2
  350. package/lib/components/common/ExpandableExample/ExpandableExample.js +3 -4
  351. package/lib/components/common/ExpandableExample/index.d.ts +1 -1
  352. package/lib/components/common/ExpandableExample/index.js +1 -2
  353. package/lib/components/common/Extensions.js +2 -3
  354. package/lib/components/common/Fields/fields-layout.d.ts +8 -14
  355. package/lib/components/common/Fields/fields-layout.js +57 -50
  356. package/lib/components/common/Fields/fields.d.ts +17 -38
  357. package/lib/components/common/Fields/fields.js +17 -18
  358. package/lib/components/common/Fields/index.d.ts +2 -2
  359. package/lib/components/common/Fields/index.js +1 -2
  360. package/lib/components/common/LinkToField.d.ts +2 -5
  361. package/lib/components/common/LinkToField.js +6 -7
  362. package/lib/components/common/OperationItemTitle.d.ts +2 -2
  363. package/lib/components/common/OperationItemTitle.js +5 -6
  364. package/lib/components/common/SchemaSelection/SchemaSelection.d.ts +1 -1
  365. package/lib/components/common/SchemaSelection/SchemaSelection.js +1 -2
  366. package/lib/components/common/SchemaSelection/index.d.ts +1 -1
  367. package/lib/components/common/SchemaSelection/index.js +1 -2
  368. package/lib/components/common/Select/Select.d.ts +1 -1
  369. package/lib/components/common/Select/Select.js +1 -2
  370. package/lib/components/common/Select/index.d.ts +2 -2
  371. package/lib/components/common/Select/index.js +1 -2
  372. package/lib/components/common/Select/styled.d.ts +4 -22
  373. package/lib/components/common/Select/styled.js +12 -13
  374. package/lib/components/common/Select/types.js +0 -2
  375. package/lib/components/common/Skeleton/LanguageListSkeleton.js +6 -7
  376. package/lib/components/common/Skeleton/Skeleton.d.ts +1 -3
  377. package/lib/components/common/Skeleton/Skeleton.js +5 -6
  378. package/lib/components/common/Skeleton/index.d.ts +2 -1
  379. package/lib/components/common/Skeleton/index.js +1 -2
  380. package/lib/components/common/headers.d.ts +1 -1
  381. package/lib/components/common/headers.js +2 -3
  382. package/lib/components/common/index.d.ts +14 -14
  383. package/lib/components/common/index.js +1 -2
  384. package/lib/components/common/linkify.d.ts +1 -1
  385. package/lib/components/common/linkify.js +4 -5
  386. package/lib/components/common/mixins.js +2 -3
  387. package/lib/components/common/panels.d.ts +4 -17
  388. package/lib/components/common/panels.js +27 -28
  389. package/lib/components/common/schema.d.ts +4 -7
  390. package/lib/components/common/schema.js +8 -9
  391. package/lib/components/common/styled.d.ts +6 -7
  392. package/lib/components/common/styled.js +7 -8
  393. package/lib/components/index.d.ts +23 -23
  394. package/lib/components/index.js +1 -2
  395. package/lib/components/pluggable/RedocExample.d.ts +1 -1
  396. package/lib/components/pluggable/RedocExample.js +1 -2
  397. package/lib/components/pluggable/RedocSchema.d.ts +4 -2
  398. package/lib/components/pluggable/RedocSchema.js +1 -2
  399. package/lib/components/pluggable/index.d.ts +2 -2
  400. package/lib/components/pluggable/index.js +1 -2
  401. package/lib/components/pluggable/styled.components.d.ts +3 -7
  402. package/lib/components/pluggable/styled.components.js +4 -5
  403. package/lib/constants.js +1 -2
  404. package/lib/empty.d.ts +5 -2
  405. package/lib/empty.js +1 -2
  406. package/lib/events/codeSampleCopy.d.ts +1 -1
  407. package/lib/events/codeSampleCopy.js +1 -2
  408. package/lib/events/creator.d.ts +1 -1
  409. package/lib/events/creator.js +1 -2
  410. package/lib/events/index.d.ts +8 -8
  411. package/lib/events/index.js +1 -2
  412. package/lib/events/languageSwitch.d.ts +1 -1
  413. package/lib/events/languageSwitch.js +1 -2
  414. package/lib/events/panelToggle.d.ts +1 -1
  415. package/lib/events/panelToggle.js +1 -2
  416. package/lib/events/serverSwitch.d.ts +1 -1
  417. package/lib/events/serverSwitch.js +1 -2
  418. package/lib/events/tryItOpen.d.ts +1 -1
  419. package/lib/events/tryItOpen.js +1 -2
  420. package/lib/events/tryItSent.d.ts +1 -1
  421. package/lib/events/tryItSent.js +1 -2
  422. package/lib/events/types.d.ts +1 -1
  423. package/lib/events/types.js +1 -2
  424. package/lib/hoc/types.d.ts +3 -3
  425. package/lib/hoc/types.js +0 -2
  426. package/lib/hoc/utils.js +1 -2
  427. package/lib/hoc/withRouter.d.ts +1 -1
  428. package/lib/hoc/withRouter.js +1 -2
  429. package/lib/hoc/withStore.d.ts +1 -1
  430. package/lib/hoc/withStore.js +1 -2
  431. package/lib/hooks/index.d.ts +8 -8
  432. package/lib/hooks/index.js +1 -2
  433. package/lib/hooks/useActivateExample.d.ts +1 -1
  434. package/lib/hooks/useActivateExample.js +1 -2
  435. package/lib/hooks/useActiveWithFallback.js +1 -2
  436. package/lib/hooks/useContentItems.d.ts +2 -2
  437. package/lib/hooks/useContentItems.js +1 -2
  438. package/lib/hooks/useLicense.d.ts +1 -1
  439. package/lib/hooks/useLicense.js +1 -2
  440. package/lib/hooks/usePerformanceMetrics.js +1 -2
  441. package/lib/hooks/useRouter.d.ts +1 -1
  442. package/lib/hooks/useRouter.js +1 -2
  443. package/lib/hooks/useTelemetry.js +1 -2
  444. package/lib/hooks/useTranslate.js +1 -2
  445. package/lib/hooks/useUppercase2LowercaseRedirect.js +1 -2
  446. package/lib/icons/CSharpIcon/CSharpIcon.d.ts +1 -3
  447. package/lib/icons/CSharpIcon/CSharpIcon.js +1 -2
  448. package/lib/icons/CSharpIcon/index.d.ts +1 -1
  449. package/lib/icons/CSharpIcon/index.js +1 -2
  450. package/lib/icons/CurlIcon/CurlIcon.d.ts +1 -3
  451. package/lib/icons/CurlIcon/CurlIcon.js +2 -3
  452. package/lib/icons/CurlIcon/index.d.ts +1 -1
  453. package/lib/icons/CurlIcon/index.js +1 -2
  454. package/lib/icons/GOIcon/GOIcon.d.ts +1 -3
  455. package/lib/icons/GOIcon/GOIcon.js +1 -2
  456. package/lib/icons/GOIcon/index.d.ts +1 -1
  457. package/lib/icons/GOIcon/index.js +1 -2
  458. package/lib/icons/JavaIcon/JavaIcon.d.ts +1 -3
  459. package/lib/icons/JavaIcon/JavaIcon.js +1 -2
  460. package/lib/icons/JavaIcon/index.d.ts +1 -1
  461. package/lib/icons/JavaIcon/index.js +1 -2
  462. package/lib/icons/JavaScriptIcon/JavaScriptIcon.d.ts +1 -3
  463. package/lib/icons/JavaScriptIcon/JavaScriptIcon.js +1 -2
  464. package/lib/icons/JavaScriptIcon/index.d.ts +1 -1
  465. package/lib/icons/JavaScriptIcon/index.js +1 -2
  466. package/lib/icons/NodeJSIcon/NodeJSIcon.d.ts +1 -3
  467. package/lib/icons/NodeJSIcon/NodeJSIcon.js +1 -2
  468. package/lib/icons/NodeJSIcon/index.d.ts +1 -1
  469. package/lib/icons/NodeJSIcon/index.js +1 -2
  470. package/lib/icons/PHPIcon/PHPIcon.d.ts +1 -3
  471. package/lib/icons/PHPIcon/PHPIcon.js +1 -2
  472. package/lib/icons/PHPIcon/index.d.ts +1 -1
  473. package/lib/icons/PHPIcon/index.js +1 -2
  474. package/lib/icons/PayloadIcon/PayloadIcon.d.ts +1 -3
  475. package/lib/icons/PayloadIcon/PayloadIcon.js +1 -2
  476. package/lib/icons/PayloadIcon/index.d.ts +1 -1
  477. package/lib/icons/PayloadIcon/index.js +1 -2
  478. package/lib/icons/PythonIcon/PythonIcon.d.ts +1 -3
  479. package/lib/icons/PythonIcon/PythonIcon.js +1 -2
  480. package/lib/icons/PythonIcon/index.d.ts +1 -1
  481. package/lib/icons/PythonIcon/index.js +1 -2
  482. package/lib/icons/RIcon/RIcon.d.ts +1 -3
  483. package/lib/icons/RIcon/RIcon.js +1 -2
  484. package/lib/icons/RIcon/index.d.ts +1 -1
  485. package/lib/icons/RIcon/index.js +1 -2
  486. package/lib/icons/RubyIcon/RubyIcon.d.ts +1 -3
  487. package/lib/icons/RubyIcon/RubyIcon.js +1 -2
  488. package/lib/icons/RubyIcon/index.d.ts +1 -1
  489. package/lib/icons/RubyIcon/index.js +1 -2
  490. package/lib/index.d.ts +52 -43
  491. package/lib/index.js +1 -2
  492. package/lib/jotai/app.d.ts +2 -2
  493. package/lib/jotai/app.js +1 -2
  494. package/lib/jotai/operation.js +1 -2
  495. package/lib/jotai/replay.d.ts +1 -1
  496. package/lib/jotai/replay.js +1 -2
  497. package/lib/jotai/store.d.ts +1 -1
  498. package/lib/jotai/store.js +1 -2
  499. package/lib/jotai/use-write-atom.js +1 -2
  500. package/lib/models/callback.d.ts +3 -3
  501. package/lib/models/callback.js +1 -2
  502. package/lib/models/code-sample-options.d.ts +2 -2
  503. package/lib/models/code-sample-options.js +0 -2
  504. package/lib/models/example.d.ts +3 -3
  505. package/lib/models/example.js +1 -2
  506. package/lib/models/field.d.ts +3 -3
  507. package/lib/models/field.js +1 -2
  508. package/lib/models/group.d.ts +3 -3
  509. package/lib/models/group.js +1 -2
  510. package/lib/models/index.d.ts +15 -15
  511. package/lib/models/index.js +1 -2
  512. package/lib/models/mediaContent.d.ts +2 -2
  513. package/lib/models/mediaContent.js +1 -2
  514. package/lib/models/mediaType.d.ts +3 -3
  515. package/lib/models/mediaType.js +1 -2
  516. package/lib/models/operation.d.ts +3 -3
  517. package/lib/models/operation.js +1 -2
  518. package/lib/models/request.d.ts +3 -3
  519. package/lib/models/request.js +1 -2
  520. package/lib/models/response.d.ts +3 -3
  521. package/lib/models/response.js +1 -2
  522. package/lib/models/schema.d.ts +3 -3
  523. package/lib/models/schema.js +2 -2
  524. package/lib/models/security.d.ts +3 -3
  525. package/lib/models/security.js +1 -2
  526. package/lib/models/tab.js +0 -2
  527. package/lib/models/types.d.ts +4 -4
  528. package/lib/models/types.js +0 -2
  529. package/lib/services/OpenAPIParser.d.ts +3 -3
  530. package/lib/services/OpenAPIParser.js +1 -2
  531. package/lib/services/check.js +1 -2
  532. package/lib/services/code-samples/constants.d.ts +1 -1
  533. package/lib/services/code-samples/constants.js +1 -2
  534. package/lib/services/code-samples/generator.d.ts +3 -3
  535. package/lib/services/code-samples/generator.js +1 -2
  536. package/lib/services/code-samples/httpsnippet/helpers/code-builder.d.ts +2 -2
  537. package/lib/services/code-samples/httpsnippet/helpers/code-builder.js +3 -2
  538. package/lib/services/code-samples/httpsnippet/helpers/code-helpers.d.ts +2 -2
  539. package/lib/services/code-samples/httpsnippet/helpers/code-helpers.js +2 -2
  540. package/lib/services/code-samples/httpsnippet/helpers/constants.js +1 -2
  541. package/lib/services/code-samples/httpsnippet/helpers/lodash-int.js +1 -2
  542. package/lib/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.js +37 -2
  543. package/lib/services/code-samples/httpsnippet/helpers/reducer.js +1 -2
  544. package/lib/services/code-samples/httpsnippet/helpers/shell.js +1 -2
  545. package/lib/services/code-samples/httpsnippet/helpers/string-utility.js +1 -2
  546. package/lib/services/code-samples/httpsnippet/index.d.ts +12 -6
  547. package/lib/services/code-samples/httpsnippet/index.js +1 -2
  548. package/lib/services/code-samples/httpsnippet/targets/__mocks__/mock.js +146 -2
  549. package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.d.ts +2 -2
  550. package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.js +2 -2
  551. package/lib/services/code-samples/httpsnippet/targets/csharp/index.d.ts +1 -1
  552. package/lib/services/code-samples/httpsnippet/targets/csharp/index.js +1 -2
  553. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.d.ts +2 -2
  554. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.js +2 -2
  555. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.d.ts +1 -1
  556. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.js +1 -2
  557. package/lib/services/code-samples/httpsnippet/targets/go/index.d.ts +1 -1
  558. package/lib/services/code-samples/httpsnippet/targets/go/index.js +1 -2
  559. package/lib/services/code-samples/httpsnippet/targets/go/native.d.ts +2 -2
  560. package/lib/services/code-samples/httpsnippet/targets/go/native.js +3 -2
  561. package/lib/services/code-samples/httpsnippet/targets/index.d.ts +12 -12
  562. package/lib/services/code-samples/httpsnippet/targets/index.js +1 -2
  563. package/lib/services/code-samples/httpsnippet/targets/java/httpclient.d.ts +2 -2
  564. package/lib/services/code-samples/httpsnippet/targets/java/httpclient.js +3 -2
  565. package/lib/services/code-samples/httpsnippet/targets/java/index.d.ts +1 -1
  566. package/lib/services/code-samples/httpsnippet/targets/java/index.js +1 -2
  567. package/lib/services/code-samples/httpsnippet/targets/java8/apachehttp.d.ts +2 -2
  568. package/lib/services/code-samples/httpsnippet/targets/java8/apachehttp.js +2 -2
  569. package/lib/services/code-samples/httpsnippet/targets/java8/index.d.ts +1 -1
  570. package/lib/services/code-samples/httpsnippet/targets/java8/index.js +1 -2
  571. package/lib/services/code-samples/httpsnippet/targets/javascript/fetch.d.ts +2 -2
  572. package/lib/services/code-samples/httpsnippet/targets/javascript/fetch.js +1 -2
  573. package/lib/services/code-samples/httpsnippet/targets/javascript/index.d.ts +1 -1
  574. package/lib/services/code-samples/httpsnippet/targets/javascript/index.js +1 -2
  575. package/lib/services/code-samples/httpsnippet/targets/node/fetch.d.ts +2 -2
  576. package/lib/services/code-samples/httpsnippet/targets/node/fetch.js +1 -2
  577. package/lib/services/code-samples/httpsnippet/targets/node/index.d.ts +1 -1
  578. package/lib/services/code-samples/httpsnippet/targets/node/index.js +1 -2
  579. package/lib/services/code-samples/httpsnippet/targets/php/curl.d.ts +2 -2
  580. package/lib/services/code-samples/httpsnippet/targets/php/curl.js +5 -2
  581. package/lib/services/code-samples/httpsnippet/targets/php/index.d.ts +1 -1
  582. package/lib/services/code-samples/httpsnippet/targets/php/index.js +1 -2
  583. package/lib/services/code-samples/httpsnippet/targets/php/types.js +0 -2
  584. package/lib/services/code-samples/httpsnippet/targets/php/utils.d.ts +1 -1
  585. package/lib/services/code-samples/httpsnippet/targets/php/utils.js +5 -2
  586. package/lib/services/code-samples/httpsnippet/targets/python/index.d.ts +1 -1
  587. package/lib/services/code-samples/httpsnippet/targets/python/index.js +1 -2
  588. package/lib/services/code-samples/httpsnippet/targets/python/requests.d.ts +2 -2
  589. package/lib/services/code-samples/httpsnippet/targets/python/requests.js +6 -2
  590. package/lib/services/code-samples/httpsnippet/targets/r/httr.d.ts +2 -2
  591. package/lib/services/code-samples/httpsnippet/targets/r/httr.js +1 -2
  592. package/lib/services/code-samples/httpsnippet/targets/r/index.d.ts +1 -1
  593. package/lib/services/code-samples/httpsnippet/targets/r/index.js +1 -2
  594. package/lib/services/code-samples/httpsnippet/targets/r/utils.d.ts +3 -3
  595. package/lib/services/code-samples/httpsnippet/targets/r/utils.js +6 -2
  596. package/lib/services/code-samples/httpsnippet/targets/ruby/index.d.ts +1 -1
  597. package/lib/services/code-samples/httpsnippet/targets/ruby/index.js +1 -2
  598. package/lib/services/code-samples/httpsnippet/targets/ruby/native.d.ts +2 -2
  599. package/lib/services/code-samples/httpsnippet/targets/ruby/native.js +1 -2
  600. package/lib/services/code-samples/httpsnippet/targets/shell/curl.d.ts +2 -2
  601. package/lib/services/code-samples/httpsnippet/targets/shell/curl.js +6 -2
  602. package/lib/services/code-samples/httpsnippet/targets/shell/index.d.ts +1 -1
  603. package/lib/services/code-samples/httpsnippet/targets/shell/index.js +1 -2
  604. package/lib/services/code-samples/index.d.ts +2 -2
  605. package/lib/services/code-samples/index.js +1 -2
  606. package/lib/services/code-samples/types.js +0 -2
  607. package/lib/services/config-options/helpers.js +1 -2
  608. package/lib/services/config-options/index.d.ts +2 -2
  609. package/lib/services/config-options/index.js +1 -2
  610. package/lib/services/config-options/normalizeOptions.d.ts +1 -1
  611. package/lib/services/config-options/normalizeOptions.js +1 -2
  612. package/lib/services/config-options/types.d.ts +5 -5
  613. package/lib/services/config-options/types.js +0 -2
  614. package/lib/services/history/helpers.d.ts +1 -1
  615. package/lib/services/history/helpers.js +1 -2
  616. package/lib/services/history/index.d.ts +1 -1
  617. package/lib/services/history/index.js +1 -2
  618. package/lib/services/index.d.ts +8 -8
  619. package/lib/services/index.js +1 -2
  620. package/lib/services/menu/builder.d.ts +3 -3
  621. package/lib/services/menu/builder.js +1 -2
  622. package/lib/services/menu/index.d.ts +1 -1
  623. package/lib/services/menu/index.js +1 -2
  624. package/lib/services/menu/markdown.d.ts +1 -1
  625. package/lib/services/menu/markdown.js +1 -2
  626. package/lib/services/menu/operation.d.ts +2 -2
  627. package/lib/services/menu/operation.js +1 -2
  628. package/lib/services/menu/tags.d.ts +5 -5
  629. package/lib/services/menu/tags.js +1 -2
  630. package/lib/services/types.d.ts +1 -4
  631. package/lib/services/types.js +0 -2
  632. package/lib/services/utils.js +1 -2
  633. package/lib/standalone.d.ts +4 -19
  634. package/lib/standalone.js +1 -2
  635. package/lib/styled-components.d.ts +1 -0
  636. package/lib/styled-components.js +1 -0
  637. package/lib/types/app.js +0 -2
  638. package/lib/types/index.d.ts +3 -3
  639. package/lib/types/index.js +1 -2
  640. package/lib/types/open-api.js +0 -2
  641. package/lib/types/security.js +0 -2
  642. package/lib/utils/JsonPointer.js +1 -2
  643. package/lib/utils/areArraysEqual.js +1 -2
  644. package/lib/utils/argValuesHelpers.js +1 -2
  645. package/lib/utils/compose.js +1 -2
  646. package/lib/utils/configure-helpers.d.ts +1 -1
  647. package/lib/utils/configure-helpers.js +1 -2
  648. package/lib/utils/convertSwagger2OpenAPI.d.ts +2 -0
  649. package/lib/utils/convertSwagger2OpenAPI.js +1 -0
  650. package/lib/utils/cookies.js +1 -2
  651. package/lib/utils/debounce.js +1 -2
  652. package/lib/utils/debug.js +1 -2
  653. package/lib/utils/dom.js +1 -2
  654. package/lib/utils/environments.d.ts +1 -1
  655. package/lib/utils/environments.js +1 -2
  656. package/lib/utils/helpers.js +12 -2
  657. package/lib/utils/index.d.ts +23 -23
  658. package/lib/utils/index.js +1 -2
  659. package/lib/utils/isMobile.js +1 -2
  660. package/lib/utils/loadAndBundleSpec.d.ts +2 -3
  661. package/lib/utils/loadAndBundleSpec.js +1 -2
  662. package/lib/utils/local-storage.js +1 -2
  663. package/lib/utils/object.js +1 -2
  664. package/lib/utils/openapi.d.ts +4 -4
  665. package/lib/utils/openapi.js +1 -2
  666. package/lib/utils/parameters.js +1 -2
  667. package/lib/utils/path.js +1 -2
  668. package/lib/utils/queryString.js +1 -2
  669. package/lib/utils/replaceVariables.d.ts +1 -1
  670. package/lib/utils/replaceVariables.js +1 -2
  671. package/lib/utils/saveTextBeforeHeading.js +1 -2
  672. package/lib/utils/security-details.d.ts +1 -1
  673. package/lib/utils/security-details.js +1 -2
  674. package/lib/utils/session-storage.js +1 -2
  675. package/lib/utils/simplifyAstStructure.js +1 -2
  676. package/lib/utils/sort.js +1 -2
  677. package/lib/utils/string.js +1 -2
  678. package/lib/utils/test-utils.js +1 -2
  679. package/lib/utils/theme-helpers.js +3 -4
  680. package/lib/utils/url.d.ts +2 -0
  681. package/lib/utils/url.js +1 -0
  682. package/package.json +26 -48
  683. package/bin.js +0 -4
  684. package/lib/utils/createParsedDocument.d.ts +0 -2
  685. package/lib/utils/createParsedDocument.js +0 -2
  686. package/lib-esm/components/ApiInfo/ApiInfo.d.ts +0 -7
  687. package/lib-esm/components/ApiInfo/ApiInfo.js +0 -2
  688. package/lib-esm/components/ApiInfo/Metadata.d.ts +0 -9
  689. package/lib-esm/components/ApiInfo/Metadata.js +0 -2
  690. package/lib-esm/components/ApiInfo/index.d.ts +0 -1
  691. package/lib-esm/components/ApiInfo/index.js +0 -2
  692. package/lib-esm/components/ApiInfo/styled.d.ts +0 -4
  693. package/lib-esm/components/ApiInfo/styled.js +0 -27
  694. package/lib-esm/components/CallbackSamples/CallbackSamples.d.ts +0 -7
  695. package/lib-esm/components/CallbackSamples/CallbackSamples.js +0 -16
  696. package/lib-esm/components/CallbackSamples/index.d.ts +0 -1
  697. package/lib-esm/components/CallbackSamples/index.js +0 -2
  698. package/lib-esm/components/Callbacks/CallbackDetails.d.ts +0 -7
  699. package/lib-esm/components/Callbacks/CallbackDetails.js +0 -20
  700. package/lib-esm/components/Callbacks/CallbackOperation.d.ts +0 -8
  701. package/lib-esm/components/Callbacks/CallbackOperation.js +0 -15
  702. package/lib-esm/components/Callbacks/CallbackSummary.d.ts +0 -8
  703. package/lib-esm/components/Callbacks/CallbackSummary.js +0 -19
  704. package/lib-esm/components/Callbacks/CallbacksList.d.ts +0 -7
  705. package/lib-esm/components/Callbacks/CallbacksList.js +0 -2
  706. package/lib-esm/components/Callbacks/index.d.ts +0 -3
  707. package/lib-esm/components/Callbacks/index.js +0 -2
  708. package/lib-esm/components/Callbacks/styled.d.ts +0 -3
  709. package/lib-esm/components/Callbacks/styled.js +0 -8
  710. package/lib-esm/components/Content/Content.d.ts +0 -7
  711. package/lib-esm/components/Content/Content.js +0 -2
  712. package/lib-esm/components/Content/index.d.ts +0 -1
  713. package/lib-esm/components/Content/index.js +0 -2
  714. package/lib-esm/components/Content/useAutoScroll.d.ts +0 -3
  715. package/lib-esm/components/Content/useAutoScroll.js +0 -2
  716. package/lib-esm/components/ContentItem/ContentItem.d.ts +0 -11
  717. package/lib-esm/components/ContentItem/ContentItem.js +0 -2
  718. package/lib-esm/components/ContentItem/index.d.ts +0 -1
  719. package/lib-esm/components/ContentItem/index.js +0 -2
  720. package/lib-esm/components/ContentItem/useIsExpanded.d.ts +0 -5
  721. package/lib-esm/components/ContentItem/useIsExpanded.js +0 -2
  722. package/lib-esm/components/ContentItems/ContentItems.d.ts +0 -8
  723. package/lib-esm/components/ContentItems/ContentItems.js +0 -2
  724. package/lib-esm/components/ContentItems/Items.d.ts +0 -7
  725. package/lib-esm/components/ContentItems/Items.js +0 -2
  726. package/lib-esm/components/ContentItems/VirtualList.d.ts +0 -7
  727. package/lib-esm/components/ContentItems/VirtualList.js +0 -2
  728. package/lib-esm/components/ContentItems/helpers.d.ts +0 -10
  729. package/lib-esm/components/ContentItems/helpers.js +0 -2
  730. package/lib-esm/components/ContentItems/index.d.ts +0 -1
  731. package/lib-esm/components/ContentItems/index.js +0 -2
  732. package/lib-esm/components/ContentItems/useScrollOnRender.d.ts +0 -3
  733. package/lib-esm/components/ContentItems/useScrollOnRender.js +0 -2
  734. package/lib-esm/components/Discriminator/Discriminator.d.ts +0 -10
  735. package/lib-esm/components/Discriminator/Discriminator.js +0 -6
  736. package/lib-esm/components/Discriminator/index.d.ts +0 -1
  737. package/lib-esm/components/Discriminator/index.js +0 -2
  738. package/lib-esm/components/Download/DownloadSpecification.d.ts +0 -4
  739. package/lib-esm/components/Download/DownloadSpecification.js +0 -40
  740. package/lib-esm/components/Download/index.d.ts +0 -1
  741. package/lib-esm/components/Download/index.js +0 -2
  742. package/lib-esm/components/Download/types.d.ts +0 -15
  743. package/lib-esm/components/Download/types.js +0 -2
  744. package/lib-esm/components/Download/useDownloadInfo.d.ts +0 -2
  745. package/lib-esm/components/Download/useDownloadInfo.js +0 -2
  746. package/lib-esm/components/ErrorBoundary/ErrorBoundary.d.ts +0 -9
  747. package/lib-esm/components/ErrorBoundary/ErrorBoundary.js +0 -5
  748. package/lib-esm/components/ErrorBoundary/index.d.ts +0 -1
  749. package/lib-esm/components/ErrorBoundary/index.js +0 -2
  750. package/lib-esm/components/ExpandAllButton/ExpandAllButton.d.ts +0 -8
  751. package/lib-esm/components/ExpandAllButton/ExpandAllButton.js +0 -4
  752. package/lib-esm/components/ExpandAllButton/index.d.ts +0 -1
  753. package/lib-esm/components/ExpandAllButton/index.js +0 -2
  754. package/lib-esm/components/ExternalDocumentation/ExternalDocumentation.d.ts +0 -7
  755. package/lib-esm/components/ExternalDocumentation/ExternalDocumentation.js +0 -5
  756. package/lib-esm/components/ExternalDocumentation/index.d.ts +0 -1
  757. package/lib-esm/components/ExternalDocumentation/index.js +0 -2
  758. package/lib-esm/components/Language/LanguageDropdown.d.ts +0 -15
  759. package/lib-esm/components/Language/LanguageDropdown.js +0 -2
  760. package/lib-esm/components/Language/LanguageItem.d.ts +0 -11
  761. package/lib-esm/components/Language/LanguageItem.js +0 -2
  762. package/lib-esm/components/Language/LanguageList.d.ts +0 -10
  763. package/lib-esm/components/Language/LanguageList.js +0 -2
  764. package/lib-esm/components/Language/_tests_/LanguageDropdown.test.d.ts +0 -1
  765. package/lib-esm/components/Language/_tests_/LanguageDropdown.test.js +0 -2
  766. package/lib-esm/components/Language/constants.d.ts +0 -2
  767. package/lib-esm/components/Language/constants.js +0 -2
  768. package/lib-esm/components/Language/index.d.ts +0 -3
  769. package/lib-esm/components/Language/index.js +0 -2
  770. package/lib-esm/components/Language/styled.d.ts +0 -31
  771. package/lib-esm/components/Language/styled.js +0 -82
  772. package/lib-esm/components/Markdown/Markdown.d.ts +0 -3
  773. package/lib-esm/components/Markdown/Markdown.js +0 -2
  774. package/lib-esm/components/Markdown/index.d.ts +0 -2
  775. package/lib-esm/components/Markdown/index.js +0 -2
  776. package/lib-esm/components/Markdown/types.d.ts +0 -10
  777. package/lib-esm/components/Markdown/types.js +0 -2
  778. package/lib-esm/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +0 -11
  779. package/lib-esm/components/MediaTypeSwitch/MediaTypesSwitch.js +0 -2
  780. package/lib-esm/components/MediaTypeSwitch/index.d.ts +0 -1
  781. package/lib-esm/components/MediaTypeSwitch/index.js +0 -2
  782. package/lib-esm/components/OperationItem/Description.d.ts +0 -10
  783. package/lib-esm/components/OperationItem/Description.js +0 -2
  784. package/lib-esm/components/OperationItem/OperationItem.d.ts +0 -5
  785. package/lib-esm/components/OperationItem/OperationItem.js +0 -22
  786. package/lib-esm/components/OperationItem/_tests_/OperationItem.test.d.ts +0 -1
  787. package/lib-esm/components/OperationItem/_tests_/OperationItem.test.js +0 -2
  788. package/lib-esm/components/OperationItem/_tests_/__mocks__/mock-intersection-observer.d.ts +0 -15
  789. package/lib-esm/components/OperationItem/_tests_/__mocks__/mock-intersection-observer.js +0 -2
  790. package/lib-esm/components/OperationItem/index.d.ts +0 -2
  791. package/lib-esm/components/OperationItem/index.js +0 -2
  792. package/lib-esm/components/OperationItem/types.d.ts +0 -4
  793. package/lib-esm/components/OperationItem/types.js +0 -2
  794. package/lib-esm/components/Overlay.d.ts +0 -6
  795. package/lib-esm/components/Overlay.js +0 -43
  796. package/lib-esm/components/Overview/Overview.d.ts +0 -9
  797. package/lib-esm/components/Overview/Overview.js +0 -2
  798. package/lib-esm/components/Overview/index.d.ts +0 -1
  799. package/lib-esm/components/Overview/index.js +0 -2
  800. package/lib-esm/components/PageFooter/PageFooter.d.ts +0 -2
  801. package/lib-esm/components/PageFooter/PageFooter.js +0 -2
  802. package/lib-esm/components/PageFooter/index.d.ts +0 -1
  803. package/lib-esm/components/PageFooter/index.js +0 -2
  804. package/lib-esm/components/Panel/ResponsePanel.d.ts +0 -3
  805. package/lib-esm/components/Panel/ResponsePanel.js +0 -25
  806. package/lib-esm/components/Panel/Trigger.d.ts +0 -1
  807. package/lib-esm/components/Panel/Trigger.js +0 -8
  808. package/lib-esm/components/Panel/index.d.ts +0 -2
  809. package/lib-esm/components/Panel/index.js +0 -2
  810. package/lib-esm/components/PanelItem/PanelItem.d.ts +0 -9
  811. package/lib-esm/components/PanelItem/PanelItem.js +0 -2
  812. package/lib-esm/components/PanelItem/index.d.ts +0 -2
  813. package/lib-esm/components/PanelItem/index.js +0 -2
  814. package/lib-esm/components/PanelItem/styled.d.ts +0 -16
  815. package/lib-esm/components/PanelItem/styled.js +0 -53
  816. package/lib-esm/components/PayloadSamples/Example.d.ts +0 -3
  817. package/lib-esm/components/PayloadSamples/Example.js +0 -2
  818. package/lib-esm/components/PayloadSamples/ExampleValue.d.ts +0 -2
  819. package/lib-esm/components/PayloadSamples/ExampleValue.js +0 -2
  820. package/lib-esm/components/PayloadSamples/MediaTypeSamples.d.ts +0 -2
  821. package/lib-esm/components/PayloadSamples/MediaTypeSamples.js +0 -4
  822. package/lib-esm/components/PayloadSamples/PayloadSamples.d.ts +0 -2
  823. package/lib-esm/components/PayloadSamples/PayloadSamples.js +0 -2
  824. package/lib-esm/components/PayloadSamples/index.d.ts +0 -5
  825. package/lib-esm/components/PayloadSamples/index.js +0 -2
  826. package/lib-esm/components/PayloadSamples/styled.d.ts +0 -4
  827. package/lib-esm/components/PayloadSamples/styled.js +0 -22
  828. package/lib-esm/components/PayloadSamples/types.d.ts +0 -25
  829. package/lib-esm/components/PayloadSamples/types.js +0 -2
  830. package/lib-esm/components/PropertyDetails/DescriptionEnums.d.ts +0 -4
  831. package/lib-esm/components/PropertyDetails/DescriptionEnums.js +0 -10
  832. package/lib-esm/components/PropertyDetails/EnumValues.d.ts +0 -2
  833. package/lib-esm/components/PropertyDetails/EnumValues.js +0 -2
  834. package/lib-esm/components/PropertyDetails/Examples.d.ts +0 -5
  835. package/lib-esm/components/PropertyDetails/Examples.js +0 -2
  836. package/lib-esm/components/PropertyDetails/Extensions.d.ts +0 -2
  837. package/lib-esm/components/PropertyDetails/Extensions.js +0 -4
  838. package/lib-esm/components/PropertyDetails/FieldDetail.d.ts +0 -7
  839. package/lib-esm/components/PropertyDetails/FieldDetail.js +0 -8
  840. package/lib-esm/components/PropertyDetails/FieldDetails.d.ts +0 -2
  841. package/lib-esm/components/PropertyDetails/FieldDetails.js +0 -40
  842. package/lib-esm/components/PropertyDetails/Pattern.d.ts +0 -6
  843. package/lib-esm/components/PropertyDetails/Pattern.js +0 -2
  844. package/lib-esm/components/PropertyDetails/PlusCircleIcon.d.ts +0 -7
  845. package/lib-esm/components/PropertyDetails/PlusCircleIcon.js +0 -11
  846. package/lib-esm/components/PropertyDetails/PropertyDetails.d.ts +0 -2
  847. package/lib-esm/components/PropertyDetails/PropertyDetails.js +0 -18
  848. package/lib-esm/components/PropertyDetails/SchemaTypeInfo.d.ts +0 -6
  849. package/lib-esm/components/PropertyDetails/SchemaTypeInfo.js +0 -16
  850. package/lib-esm/components/PropertyDetails/SimpleEnums.d.ts +0 -4
  851. package/lib-esm/components/PropertyDetails/SimpleEnums.js +0 -8
  852. package/lib-esm/components/PropertyDetails/cycleColorsByLevel.d.ts +0 -1
  853. package/lib-esm/components/PropertyDetails/cycleColorsByLevel.js +0 -2
  854. package/lib-esm/components/PropertyDetails/index.d.ts +0 -3
  855. package/lib-esm/components/PropertyDetails/index.js +0 -2
  856. package/lib-esm/components/PropertyDetails/styled.d.ts +0 -6
  857. package/lib-esm/components/PropertyDetails/styled.js +0 -23
  858. package/lib-esm/components/PropertyDetails/types.d.ts +0 -47
  859. package/lib-esm/components/PropertyDetails/types.js +0 -2
  860. package/lib-esm/components/RedoclyOpenAPIDocs/Providers.d.ts +0 -4
  861. package/lib-esm/components/RedoclyOpenAPIDocs/Providers.js +0 -2
  862. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.d.ts +0 -4
  863. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.js +0 -2
  864. package/lib-esm/components/RedoclyOpenAPIDocs/index.d.ts +0 -4
  865. package/lib-esm/components/RedoclyOpenAPIDocs/index.js +0 -2
  866. package/lib-esm/components/RedoclyOpenAPIDocs/styled.d.ts +0 -1
  867. package/lib-esm/components/RedoclyOpenAPIDocs/styled.js +0 -22
  868. package/lib-esm/components/RedoclyOpenAPIDocs/types.d.ts +0 -47
  869. package/lib-esm/components/RedoclyOpenAPIDocs/types.js +0 -2
  870. package/lib-esm/components/RedoclyOpenAPIDocs/utils.d.ts +0 -8
  871. package/lib-esm/components/RedoclyOpenAPIDocs/utils.js +0 -2
  872. package/lib-esm/components/RenderHook/RenderHook.d.ts +0 -8
  873. package/lib-esm/components/RenderHook/RenderHook.js +0 -2
  874. package/lib-esm/components/RenderHook/index.d.ts +0 -1
  875. package/lib-esm/components/RenderHook/index.js +0 -2
  876. package/lib-esm/components/Replay/EmbeddedReplay.d.ts +0 -9
  877. package/lib-esm/components/Replay/EmbeddedReplay.js +0 -11
  878. package/lib-esm/components/Replay/Replay.d.ts +0 -9
  879. package/lib-esm/components/Replay/Replay.js +0 -2
  880. package/lib-esm/components/Replay/index.d.ts +0 -2
  881. package/lib-esm/components/Replay/index.js +0 -2
  882. package/lib-esm/components/Replay/utils.d.ts +0 -42
  883. package/lib-esm/components/Replay/utils.js +0 -2
  884. package/lib-esm/components/Request/RequestDetails.d.ts +0 -2
  885. package/lib-esm/components/Request/RequestDetails.js +0 -4
  886. package/lib-esm/components/Request/types.d.ts +0 -10
  887. package/lib-esm/components/Request/types.js +0 -2
  888. package/lib-esm/components/RequestParameters/Body.d.ts +0 -9
  889. package/lib-esm/components/RequestParameters/Body.js +0 -2
  890. package/lib-esm/components/RequestParameters/ParametersGroup.d.ts +0 -8
  891. package/lib-esm/components/RequestParameters/ParametersGroup.js +0 -21
  892. package/lib-esm/components/RequestParameters/RequestParameters.d.ts +0 -9
  893. package/lib-esm/components/RequestParameters/RequestParameters.js +0 -2
  894. package/lib-esm/components/RequestParameters/index.d.ts +0 -2
  895. package/lib-esm/components/RequestParameters/index.js +0 -2
  896. package/lib-esm/components/RequestSamples/CodeSample.d.ts +0 -16
  897. package/lib-esm/components/RequestSamples/CodeSample.js +0 -10
  898. package/lib-esm/components/RequestSamples/Example.d.ts +0 -9
  899. package/lib-esm/components/RequestSamples/Example.js +0 -2
  900. package/lib-esm/components/RequestSamples/RequestSamples.d.ts +0 -10
  901. package/lib-esm/components/RequestSamples/RequestSamples.js +0 -13
  902. package/lib-esm/components/RequestSamples/index.d.ts +0 -2
  903. package/lib-esm/components/RequestSamples/index.js +0 -2
  904. package/lib-esm/components/RequestSamples/useCodeSamples.d.ts +0 -10
  905. package/lib-esm/components/RequestSamples/useCodeSamples.js +0 -2
  906. package/lib-esm/components/ResponseSamples/ResponseSamples.d.ts +0 -12
  907. package/lib-esm/components/ResponseSamples/ResponseSamples.js +0 -2
  908. package/lib-esm/components/ResponseSamples/Summary.d.ts +0 -5
  909. package/lib-esm/components/ResponseSamples/Summary.js +0 -2
  910. package/lib-esm/components/ResponseSamples/index.d.ts +0 -1
  911. package/lib-esm/components/ResponseSamples/index.js +0 -2
  912. package/lib-esm/components/Responses/OperationResponseList.d.ts +0 -16
  913. package/lib-esm/components/Responses/OperationResponseList.js +0 -5
  914. package/lib-esm/components/Responses/ResponseDetails.d.ts +0 -2
  915. package/lib-esm/components/Responses/ResponseDetails.js +0 -2
  916. package/lib-esm/components/Responses/ResponseHeaders.d.ts +0 -2
  917. package/lib-esm/components/Responses/ResponseHeaders.js +0 -2
  918. package/lib-esm/components/Responses/index.d.ts +0 -3
  919. package/lib-esm/components/Responses/index.js +0 -2
  920. package/lib-esm/components/Responses/styled.d.ts +0 -5
  921. package/lib-esm/components/Responses/styled.js +0 -23
  922. package/lib-esm/components/Responses/types.d.ts +0 -13
  923. package/lib-esm/components/Responses/types.js +0 -2
  924. package/lib-esm/components/RightPanel/RightPanel.d.ts +0 -5
  925. package/lib-esm/components/RightPanel/RightPanel.js +0 -2
  926. package/lib-esm/components/RightPanel/index.d.ts +0 -1
  927. package/lib-esm/components/RightPanel/index.js +0 -2
  928. package/lib-esm/components/Samples/ExampleSwitch.d.ts +0 -14
  929. package/lib-esm/components/Samples/ExampleSwitch.js +0 -2
  930. package/lib-esm/components/Samples/index.d.ts +0 -2
  931. package/lib-esm/components/Samples/index.js +0 -2
  932. package/lib-esm/components/Samples/use-example-key.d.ts +0 -6
  933. package/lib-esm/components/Samples/use-example-key.js +0 -2
  934. package/lib-esm/components/Schema/ArraySchema.d.ts +0 -2
  935. package/lib-esm/components/Schema/ArraySchema.js +0 -2
  936. package/lib-esm/components/Schema/ObjectSchema.d.ts +0 -2
  937. package/lib-esm/components/Schema/ObjectSchema.js +0 -2
  938. package/lib-esm/components/Schema/OneOfSchema.d.ts +0 -2
  939. package/lib-esm/components/Schema/OneOfSchema.js +0 -11
  940. package/lib-esm/components/Schema/RecursiveSchema.d.ts +0 -2
  941. package/lib-esm/components/Schema/RecursiveSchema.js +0 -2
  942. package/lib-esm/components/Schema/Schema.d.ts +0 -2
  943. package/lib-esm/components/Schema/Schema.js +0 -6
  944. package/lib-esm/components/Schema/SubSchema.d.ts +0 -14
  945. package/lib-esm/components/Schema/SubSchema.js +0 -2
  946. package/lib-esm/components/Schema/helpers.d.ts +0 -5
  947. package/lib-esm/components/Schema/helpers.js +0 -2
  948. package/lib-esm/components/Schema/index.d.ts +0 -5
  949. package/lib-esm/components/Schema/index.js +0 -2
  950. package/lib-esm/components/Schema/types.d.ts +0 -38
  951. package/lib-esm/components/Schema/types.js +0 -2
  952. package/lib-esm/components/Schema/useOneOfLocationIdx.d.ts +0 -2
  953. package/lib-esm/components/Schema/useOneOfLocationIdx.js +0 -2
  954. package/lib-esm/components/SchemaDefinition/SchemaDefinition.d.ts +0 -8
  955. package/lib-esm/components/SchemaDefinition/SchemaDefinition.js +0 -4
  956. package/lib-esm/components/SchemaDefinition/index.d.ts +0 -1
  957. package/lib-esm/components/SchemaDefinition/index.js +0 -2
  958. package/lib-esm/components/SectionContent/SectionContent.d.ts +0 -17
  959. package/lib-esm/components/SectionContent/SectionContent.js +0 -14
  960. package/lib-esm/components/SectionContent/index.d.ts +0 -1
  961. package/lib-esm/components/SectionContent/index.js +0 -2
  962. package/lib-esm/components/SectionItem/SectionItem.d.ts +0 -7
  963. package/lib-esm/components/SectionItem/SectionItem.js +0 -2
  964. package/lib-esm/components/SectionItem/index.d.ts +0 -1
  965. package/lib-esm/components/SectionItem/index.js +0 -2
  966. package/lib-esm/components/Security/Divider.d.ts +0 -3
  967. package/lib-esm/components/Security/Divider.js +0 -15
  968. package/lib-esm/components/Security/OAuthFlow.d.ts +0 -6
  969. package/lib-esm/components/Security/OAuthFlow.js +0 -2
  970. package/lib-esm/components/Security/OAuthScopes.d.ts +0 -13
  971. package/lib-esm/components/Security/OAuthScopes.js +0 -34
  972. package/lib-esm/components/Security/Security.d.ts +0 -7
  973. package/lib-esm/components/Security/Security.js +0 -2
  974. package/lib-esm/components/Security/SecurityButton.d.ts +0 -10
  975. package/lib-esm/components/Security/SecurityButton.js +0 -31
  976. package/lib-esm/components/Security/SecurityFlow.d.ts +0 -5
  977. package/lib-esm/components/Security/SecurityFlow.js +0 -17
  978. package/lib-esm/components/Security/SecurityModal.d.ts +0 -8
  979. package/lib-esm/components/Security/SecurityModal.js +0 -45
  980. package/lib-esm/components/Security/SecuritySchemeItem.d.ts +0 -7
  981. package/lib-esm/components/Security/SecuritySchemeItem.js +0 -21
  982. package/lib-esm/components/Security/helper.d.ts +0 -2
  983. package/lib-esm/components/Security/helper.js +0 -2
  984. package/lib-esm/components/Security/index.d.ts +0 -1
  985. package/lib-esm/components/Security/index.js +0 -2
  986. package/lib-esm/components/Security/styled.d.ts +0 -2
  987. package/lib-esm/components/Security/styled.js +0 -14
  988. package/lib-esm/components/SelectOrLabel/SelectOrLabel.d.ts +0 -7
  989. package/lib-esm/components/SelectOrLabel/SelectOrLabel.js +0 -8
  990. package/lib-esm/components/SelectOrLabel/index.d.ts +0 -1
  991. package/lib-esm/components/SelectOrLabel/index.js +0 -2
  992. package/lib-esm/components/ServerList/ServerList.d.ts +0 -3
  993. package/lib-esm/components/ServerList/ServerList.js +0 -60
  994. package/lib-esm/components/ServerList/index.d.ts +0 -1
  995. package/lib-esm/components/ServerList/index.js +0 -2
  996. package/lib-esm/components/ServerList/types.d.ts +0 -5
  997. package/lib-esm/components/ServerList/types.js +0 -2
  998. package/lib-esm/components/ServerListDropdown/ServerListDropdown.d.ts +0 -7
  999. package/lib-esm/components/ServerListDropdown/ServerListDropdown.js +0 -2
  1000. package/lib-esm/components/ServerListDropdown/index.d.ts +0 -1
  1001. package/lib-esm/components/ServerListDropdown/index.js +0 -2
  1002. package/lib-esm/components/ServerListDropdown/styled.d.ts +0 -5
  1003. package/lib-esm/components/ServerListDropdown/styled.js +0 -23
  1004. package/lib-esm/components/SideMenu/SideMenu.d.ts +0 -8
  1005. package/lib-esm/components/SideMenu/SideMenu.js +0 -4
  1006. package/lib-esm/components/SideMenu/hooks/useMenuItems.d.ts +0 -7
  1007. package/lib-esm/components/SideMenu/hooks/useMenuItems.js +0 -2
  1008. package/lib-esm/components/SideMenu/index.d.ts +0 -1
  1009. package/lib-esm/components/SideMenu/index.js +0 -2
  1010. package/lib-esm/components/SideMenu/types.d.ts +0 -16
  1011. package/lib-esm/components/SideMenu/types.js +0 -2
  1012. package/lib-esm/components/StickySidebar/SidebarActions.d.ts +0 -1
  1013. package/lib-esm/components/StickySidebar/SidebarActions.js +0 -6
  1014. package/lib-esm/components/StickySidebar/StickyResponsiveSidebar.d.ts +0 -9
  1015. package/lib-esm/components/StickySidebar/StickyResponsiveSidebar.js +0 -25
  1016. package/lib-esm/components/StickySidebar/index.d.ts +0 -1
  1017. package/lib-esm/components/StickySidebar/index.js +0 -2
  1018. package/lib-esm/components/Tabs/Tabs.d.ts +0 -8
  1019. package/lib-esm/components/Tabs/Tabs.js +0 -35
  1020. package/lib-esm/components/Tabs/index.d.ts +0 -2
  1021. package/lib-esm/components/Tabs/index.js +0 -2
  1022. package/lib-esm/components/Tabs/useTabsState.d.ts +0 -11
  1023. package/lib-esm/components/Tabs/useTabsState.js +0 -2
  1024. package/lib-esm/components/TagItem/OperationNavigationItems.d.ts +0 -9
  1025. package/lib-esm/components/TagItem/OperationNavigationItems.js +0 -37
  1026. package/lib-esm/components/TagItem/OperationsNavigation.d.ts +0 -3
  1027. package/lib-esm/components/TagItem/OperationsNavigation.js +0 -7
  1028. package/lib-esm/components/TagItem/TagItem.d.ts +0 -9
  1029. package/lib-esm/components/TagItem/TagItem.js +0 -24
  1030. package/lib-esm/components/TagItem/index.d.ts +0 -1
  1031. package/lib-esm/components/TagItem/index.js +0 -2
  1032. package/lib-esm/components/TagItem/styled.d.ts +0 -1
  1033. package/lib-esm/components/TagItem/styled.js +0 -6
  1034. package/lib-esm/components/TagItem/types.d.ts +0 -5
  1035. package/lib-esm/components/TagItem/types.js +0 -2
  1036. package/lib-esm/components/ViewNested/ViewNested.d.ts +0 -13
  1037. package/lib-esm/components/ViewNested/ViewNested.js +0 -35
  1038. package/lib-esm/components/ViewNested/index.d.ts +0 -1
  1039. package/lib-esm/components/ViewNested/index.js +0 -2
  1040. package/lib-esm/components/common/Badges.d.ts +0 -13
  1041. package/lib-esm/components/common/Badges.js +0 -19
  1042. package/lib-esm/components/common/BodyContent/BodyContent.d.ts +0 -11
  1043. package/lib-esm/components/common/BodyContent/BodyContent.js +0 -28
  1044. package/lib-esm/components/common/BodyContent/index.d.ts +0 -1
  1045. package/lib-esm/components/common/BodyContent/index.js +0 -2
  1046. package/lib-esm/components/common/ClearButton/ClearButton.d.ts +0 -2
  1047. package/lib-esm/components/common/ClearButton/ClearButton.js +0 -2
  1048. package/lib-esm/components/common/ClearButton/index.d.ts +0 -2
  1049. package/lib-esm/components/common/ClearButton/index.js +0 -2
  1050. package/lib-esm/components/common/ClearButton/styled.d.ts +0 -1
  1051. package/lib-esm/components/common/ClearButton/styled.js +0 -16
  1052. package/lib-esm/components/common/ClearButton/types.d.ts +0 -6
  1053. package/lib-esm/components/common/ClearButton/types.js +0 -2
  1054. package/lib-esm/components/common/CodeBlockPanel.d.ts +0 -2
  1055. package/lib-esm/components/common/CodeBlockPanel.js +0 -6
  1056. package/lib-esm/components/common/ConstraintsView.d.ts +0 -4
  1057. package/lib-esm/components/common/ConstraintsView.js +0 -4
  1058. package/lib-esm/components/common/Dropdown/Dropdown.d.ts +0 -12
  1059. package/lib-esm/components/common/Dropdown/Dropdown.js +0 -27
  1060. package/lib-esm/components/common/Dropdown/index.d.ts +0 -2
  1061. package/lib-esm/components/common/Dropdown/index.js +0 -2
  1062. package/lib-esm/components/common/ExpandableExample/ExpandableExample.d.ts +0 -5
  1063. package/lib-esm/components/common/ExpandableExample/ExpandableExample.js +0 -10
  1064. package/lib-esm/components/common/ExpandableExample/index.d.ts +0 -1
  1065. package/lib-esm/components/common/ExpandableExample/index.js +0 -2
  1066. package/lib-esm/components/common/Extensions.d.ts +0 -6
  1067. package/lib-esm/components/common/Extensions.js +0 -4
  1068. package/lib-esm/components/common/Fields/fields-layout.d.ts +0 -15
  1069. package/lib-esm/components/common/Fields/fields-layout.js +0 -223
  1070. package/lib-esm/components/common/Fields/fields.d.ts +0 -38
  1071. package/lib-esm/components/common/Fields/fields.js +0 -93
  1072. package/lib-esm/components/common/Fields/index.d.ts +0 -2
  1073. package/lib-esm/components/common/Fields/index.js +0 -2
  1074. package/lib-esm/components/common/LinkToField.d.ts +0 -13
  1075. package/lib-esm/components/common/LinkToField.js +0 -20
  1076. package/lib-esm/components/common/OperationItemTitle.d.ts +0 -2
  1077. package/lib-esm/components/common/OperationItemTitle.js +0 -33
  1078. package/lib-esm/components/common/SchemaSelection/SchemaSelection.d.ts +0 -12
  1079. package/lib-esm/components/common/SchemaSelection/SchemaSelection.js +0 -2
  1080. package/lib-esm/components/common/SchemaSelection/index.d.ts +0 -1
  1081. package/lib-esm/components/common/SchemaSelection/index.js +0 -2
  1082. package/lib-esm/components/common/Select/Select.d.ts +0 -2
  1083. package/lib-esm/components/common/Select/Select.js +0 -2
  1084. package/lib-esm/components/common/Select/index.d.ts +0 -2
  1085. package/lib-esm/components/common/Select/index.js +0 -2
  1086. package/lib-esm/components/common/Select/styled.d.ts +0 -22
  1087. package/lib-esm/components/common/Select/styled.js +0 -111
  1088. package/lib-esm/components/common/Select/types.d.ts +0 -20
  1089. package/lib-esm/components/common/Select/types.js +0 -2
  1090. package/lib-esm/components/common/Skeleton/LanguageListSkeleton.d.ts +0 -4
  1091. package/lib-esm/components/common/Skeleton/LanguageListSkeleton.js +0 -23
  1092. package/lib-esm/components/common/Skeleton/Skeleton.d.ts +0 -5
  1093. package/lib-esm/components/common/Skeleton/Skeleton.js +0 -33
  1094. package/lib-esm/components/common/Skeleton/index.d.ts +0 -1
  1095. package/lib-esm/components/common/Skeleton/index.js +0 -2
  1096. package/lib-esm/components/common/headers.d.ts +0 -1
  1097. package/lib-esm/components/common/headers.js +0 -8
  1098. package/lib-esm/components/common/index.d.ts +0 -14
  1099. package/lib-esm/components/common/index.js +0 -2
  1100. package/lib-esm/components/common/linkify.d.ts +0 -10
  1101. package/lib-esm/components/common/linkify.js +0 -21
  1102. package/lib-esm/components/common/mixins.d.ts +0 -1
  1103. package/lib-esm/components/common/mixins.js +0 -5
  1104. package/lib-esm/components/common/panels.d.ts +0 -17
  1105. package/lib-esm/components/common/panels.js +0 -123
  1106. package/lib-esm/components/common/schema.d.ts +0 -7
  1107. package/lib-esm/components/common/schema.js +0 -74
  1108. package/lib-esm/components/common/styled.d.ts +0 -7
  1109. package/lib-esm/components/common/styled.js +0 -59
  1110. package/lib-esm/components/index.d.ts +0 -23
  1111. package/lib-esm/components/index.js +0 -2
  1112. package/lib-esm/components/pluggable/RedocExample.d.ts +0 -11
  1113. package/lib-esm/components/pluggable/RedocExample.js +0 -2
  1114. package/lib-esm/components/pluggable/RedocSchema.d.ts +0 -10
  1115. package/lib-esm/components/pluggable/RedocSchema.js +0 -2
  1116. package/lib-esm/components/pluggable/index.d.ts +0 -2
  1117. package/lib-esm/components/pluggable/index.js +0 -2
  1118. package/lib-esm/components/pluggable/styled.components.d.ts +0 -7
  1119. package/lib-esm/components/pluggable/styled.components.js +0 -13
  1120. package/lib-esm/constants.d.ts +0 -25
  1121. package/lib-esm/constants.js +0 -2
  1122. package/lib-esm/empty.d.ts +0 -2
  1123. package/lib-esm/empty.js +0 -2
  1124. package/lib-esm/events/codeSampleCopy.d.ts +0 -2
  1125. package/lib-esm/events/codeSampleCopy.js +0 -2
  1126. package/lib-esm/events/creator.d.ts +0 -2
  1127. package/lib-esm/events/creator.js +0 -2
  1128. package/lib-esm/events/index.d.ts +0 -8
  1129. package/lib-esm/events/index.js +0 -2
  1130. package/lib-esm/events/languageSwitch.d.ts +0 -2
  1131. package/lib-esm/events/languageSwitch.js +0 -2
  1132. package/lib-esm/events/panelToggle.d.ts +0 -2
  1133. package/lib-esm/events/panelToggle.js +0 -2
  1134. package/lib-esm/events/serverSwitch.d.ts +0 -2
  1135. package/lib-esm/events/serverSwitch.js +0 -2
  1136. package/lib-esm/events/tryItOpen.d.ts +0 -2
  1137. package/lib-esm/events/tryItOpen.js +0 -2
  1138. package/lib-esm/events/tryItSent.d.ts +0 -2
  1139. package/lib-esm/events/tryItSent.js +0 -2
  1140. package/lib-esm/events/types.d.ts +0 -83
  1141. package/lib-esm/events/types.js +0 -2
  1142. package/lib-esm/hoc/types.d.ts +0 -51
  1143. package/lib-esm/hoc/types.js +0 -2
  1144. package/lib-esm/hoc/utils.d.ts +0 -2
  1145. package/lib-esm/hoc/utils.js +0 -2
  1146. package/lib-esm/hoc/withRouter.d.ts +0 -3
  1147. package/lib-esm/hoc/withRouter.js +0 -2
  1148. package/lib-esm/hoc/withStore.d.ts +0 -3
  1149. package/lib-esm/hoc/withStore.js +0 -2
  1150. package/lib-esm/hooks/index.d.ts +0 -8
  1151. package/lib-esm/hooks/index.js +0 -2
  1152. package/lib-esm/hooks/useActivateExample.d.ts +0 -2
  1153. package/lib-esm/hooks/useActivateExample.js +0 -2
  1154. package/lib-esm/hooks/useActiveWithFallback.d.ts +0 -3
  1155. package/lib-esm/hooks/useActiveWithFallback.js +0 -2
  1156. package/lib-esm/hooks/useContentItems.d.ts +0 -12
  1157. package/lib-esm/hooks/useContentItems.js +0 -2
  1158. package/lib-esm/hooks/useLicense.d.ts +0 -5
  1159. package/lib-esm/hooks/useLicense.js +0 -2
  1160. package/lib-esm/hooks/usePerformanceMetrics.d.ts +0 -5
  1161. package/lib-esm/hooks/usePerformanceMetrics.js +0 -2
  1162. package/lib-esm/hooks/useRouter.d.ts +0 -13
  1163. package/lib-esm/hooks/useRouter.js +0 -2
  1164. package/lib-esm/hooks/useTelemetry.d.ts +0 -2
  1165. package/lib-esm/hooks/useTelemetry.js +0 -2
  1166. package/lib-esm/hooks/useTranslate.d.ts +0 -2
  1167. package/lib-esm/hooks/useTranslate.js +0 -2
  1168. package/lib-esm/hooks/useUppercase2LowercaseRedirect.d.ts +0 -1
  1169. package/lib-esm/hooks/useUppercase2LowercaseRedirect.js +0 -2
  1170. package/lib-esm/icons/CSharpIcon/CSharpIcon.d.ts +0 -4
  1171. package/lib-esm/icons/CSharpIcon/CSharpIcon.js +0 -2
  1172. package/lib-esm/icons/CSharpIcon/index.d.ts +0 -1
  1173. package/lib-esm/icons/CSharpIcon/index.js +0 -2
  1174. package/lib-esm/icons/CurlIcon/CurlIcon.d.ts +0 -6
  1175. package/lib-esm/icons/CurlIcon/CurlIcon.js +0 -15
  1176. package/lib-esm/icons/CurlIcon/index.d.ts +0 -1
  1177. package/lib-esm/icons/CurlIcon/index.js +0 -2
  1178. package/lib-esm/icons/GOIcon/GOIcon.d.ts +0 -4
  1179. package/lib-esm/icons/GOIcon/GOIcon.js +0 -2
  1180. package/lib-esm/icons/GOIcon/index.d.ts +0 -1
  1181. package/lib-esm/icons/GOIcon/index.js +0 -2
  1182. package/lib-esm/icons/JavaIcon/JavaIcon.d.ts +0 -4
  1183. package/lib-esm/icons/JavaIcon/JavaIcon.js +0 -2
  1184. package/lib-esm/icons/JavaIcon/index.d.ts +0 -1
  1185. package/lib-esm/icons/JavaIcon/index.js +0 -2
  1186. package/lib-esm/icons/JavaScriptIcon/JavaScriptIcon.d.ts +0 -4
  1187. package/lib-esm/icons/JavaScriptIcon/JavaScriptIcon.js +0 -2
  1188. package/lib-esm/icons/JavaScriptIcon/index.d.ts +0 -1
  1189. package/lib-esm/icons/JavaScriptIcon/index.js +0 -2
  1190. package/lib-esm/icons/NodeJSIcon/NodeJSIcon.d.ts +0 -4
  1191. package/lib-esm/icons/NodeJSIcon/NodeJSIcon.js +0 -2
  1192. package/lib-esm/icons/NodeJSIcon/index.d.ts +0 -1
  1193. package/lib-esm/icons/NodeJSIcon/index.js +0 -2
  1194. package/lib-esm/icons/PHPIcon/PHPIcon.d.ts +0 -4
  1195. package/lib-esm/icons/PHPIcon/PHPIcon.js +0 -2
  1196. package/lib-esm/icons/PHPIcon/index.d.ts +0 -1
  1197. package/lib-esm/icons/PHPIcon/index.js +0 -2
  1198. package/lib-esm/icons/PayloadIcon/PayloadIcon.d.ts +0 -4
  1199. package/lib-esm/icons/PayloadIcon/PayloadIcon.js +0 -2
  1200. package/lib-esm/icons/PayloadIcon/index.d.ts +0 -1
  1201. package/lib-esm/icons/PayloadIcon/index.js +0 -2
  1202. package/lib-esm/icons/PythonIcon/PythonIcon.d.ts +0 -4
  1203. package/lib-esm/icons/PythonIcon/PythonIcon.js +0 -2
  1204. package/lib-esm/icons/PythonIcon/index.d.ts +0 -1
  1205. package/lib-esm/icons/PythonIcon/index.js +0 -2
  1206. package/lib-esm/icons/RIcon/RIcon.d.ts +0 -4
  1207. package/lib-esm/icons/RIcon/RIcon.js +0 -2
  1208. package/lib-esm/icons/RIcon/index.d.ts +0 -1
  1209. package/lib-esm/icons/RIcon/index.js +0 -2
  1210. package/lib-esm/icons/RubyIcon/RubyIcon.d.ts +0 -4
  1211. package/lib-esm/icons/RubyIcon/RubyIcon.js +0 -2
  1212. package/lib-esm/icons/RubyIcon/index.d.ts +0 -1
  1213. package/lib-esm/icons/RubyIcon/index.js +0 -2
  1214. package/lib-esm/index.d.ts +0 -44
  1215. package/lib-esm/index.js +0 -2
  1216. package/lib-esm/jotai/app.d.ts +0 -51
  1217. package/lib-esm/jotai/app.js +0 -2
  1218. package/lib-esm/jotai/operation.d.ts +0 -37
  1219. package/lib-esm/jotai/operation.js +0 -2
  1220. package/lib-esm/jotai/replay.d.ts +0 -7
  1221. package/lib-esm/jotai/replay.js +0 -2
  1222. package/lib-esm/jotai/store.d.ts +0 -16
  1223. package/lib-esm/jotai/store.js +0 -2
  1224. package/lib-esm/jotai/use-write-atom.d.ts +0 -1
  1225. package/lib-esm/jotai/use-write-atom.js +0 -2
  1226. package/lib-esm/models/callback.d.ts +0 -5
  1227. package/lib-esm/models/callback.js +0 -2
  1228. package/lib-esm/models/code-sample-options.d.ts +0 -8
  1229. package/lib-esm/models/code-sample-options.js +0 -2
  1230. package/lib-esm/models/example.d.ts +0 -9
  1231. package/lib-esm/models/example.js +0 -2
  1232. package/lib-esm/models/field.d.ts +0 -7
  1233. package/lib-esm/models/field.js +0 -2
  1234. package/lib-esm/models/group.d.ts +0 -4
  1235. package/lib-esm/models/group.js +0 -2
  1236. package/lib-esm/models/index.d.ts +0 -15
  1237. package/lib-esm/models/index.js +0 -2
  1238. package/lib-esm/models/mediaContent.d.ts +0 -7
  1239. package/lib-esm/models/mediaContent.js +0 -2
  1240. package/lib-esm/models/mediaType.d.ts +0 -19
  1241. package/lib-esm/models/mediaType.js +0 -2
  1242. package/lib-esm/models/operation.d.ts +0 -20
  1243. package/lib-esm/models/operation.js +0 -2
  1244. package/lib-esm/models/request.d.ts +0 -12
  1245. package/lib-esm/models/request.js +0 -2
  1246. package/lib-esm/models/response.d.ts +0 -14
  1247. package/lib-esm/models/response.js +0 -2
  1248. package/lib-esm/models/schema.d.ts +0 -13
  1249. package/lib-esm/models/schema.js +0 -2
  1250. package/lib-esm/models/security.d.ts +0 -8
  1251. package/lib-esm/models/security.js +0 -2
  1252. package/lib-esm/models/tab.d.ts +0 -4
  1253. package/lib-esm/models/tab.js +0 -2
  1254. package/lib-esm/models/types.d.ts +0 -265
  1255. package/lib-esm/models/types.js +0 -2
  1256. package/lib-esm/services/OpenAPIParser.d.ts +0 -52
  1257. package/lib-esm/services/OpenAPIParser.js +0 -2
  1258. package/lib-esm/services/check.d.ts +0 -13
  1259. package/lib-esm/services/check.js +0 -2
  1260. package/lib-esm/services/code-samples/constants.d.ts +0 -2
  1261. package/lib-esm/services/code-samples/constants.js +0 -2
  1262. package/lib-esm/services/code-samples/generator.d.ts +0 -29
  1263. package/lib-esm/services/code-samples/generator.js +0 -2
  1264. package/lib-esm/services/code-samples/httpsnippet/helpers/code-builder.d.ts +0 -83
  1265. package/lib-esm/services/code-samples/httpsnippet/helpers/code-builder.js +0 -2
  1266. package/lib-esm/services/code-samples/httpsnippet/helpers/code-helpers.d.ts +0 -28
  1267. package/lib-esm/services/code-samples/httpsnippet/helpers/code-helpers.js +0 -2
  1268. package/lib-esm/services/code-samples/httpsnippet/helpers/constants.d.ts +0 -24
  1269. package/lib-esm/services/code-samples/httpsnippet/helpers/constants.js +0 -2
  1270. package/lib-esm/services/code-samples/httpsnippet/helpers/lodash-int.d.ts +0 -5
  1271. package/lib-esm/services/code-samples/httpsnippet/helpers/lodash-int.js +0 -2
  1272. package/lib-esm/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.d.ts +0 -30
  1273. package/lib-esm/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.js +0 -2
  1274. package/lib-esm/services/code-samples/httpsnippet/helpers/reducer.d.ts +0 -1
  1275. package/lib-esm/services/code-samples/httpsnippet/helpers/reducer.js +0 -2
  1276. package/lib-esm/services/code-samples/httpsnippet/helpers/shell.d.ts +0 -10
  1277. package/lib-esm/services/code-samples/httpsnippet/helpers/shell.js +0 -2
  1278. package/lib-esm/services/code-samples/httpsnippet/helpers/string-utility.d.ts +0 -7
  1279. package/lib-esm/services/code-samples/httpsnippet/helpers/string-utility.js +0 -2
  1280. package/lib-esm/services/code-samples/httpsnippet/index.d.ts +0 -47
  1281. package/lib-esm/services/code-samples/httpsnippet/index.js +0 -2
  1282. package/lib-esm/services/code-samples/httpsnippet/targets/__mocks__/mock.d.ts +0 -3565
  1283. package/lib-esm/services/code-samples/httpsnippet/targets/__mocks__/mock.js +0 -2
  1284. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.d.ts +0 -10
  1285. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.js +0 -2
  1286. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/index.d.ts +0 -10
  1287. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/index.js +0 -2
  1288. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.d.ts +0 -10
  1289. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.js +0 -2
  1290. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.d.ts +0 -10
  1291. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.js +0 -2
  1292. package/lib-esm/services/code-samples/httpsnippet/targets/go/index.d.ts +0 -10
  1293. package/lib-esm/services/code-samples/httpsnippet/targets/go/index.js +0 -2
  1294. package/lib-esm/services/code-samples/httpsnippet/targets/go/native.d.ts +0 -10
  1295. package/lib-esm/services/code-samples/httpsnippet/targets/go/native.js +0 -2
  1296. package/lib-esm/services/code-samples/httpsnippet/targets/index.d.ts +0 -115
  1297. package/lib-esm/services/code-samples/httpsnippet/targets/index.js +0 -2
  1298. package/lib-esm/services/code-samples/httpsnippet/targets/java/httpclient.d.ts +0 -10
  1299. package/lib-esm/services/code-samples/httpsnippet/targets/java/httpclient.js +0 -2
  1300. package/lib-esm/services/code-samples/httpsnippet/targets/java/index.d.ts +0 -10
  1301. package/lib-esm/services/code-samples/httpsnippet/targets/java/index.js +0 -2
  1302. package/lib-esm/services/code-samples/httpsnippet/targets/java8/apachehttp.d.ts +0 -10
  1303. package/lib-esm/services/code-samples/httpsnippet/targets/java8/apachehttp.js +0 -2
  1304. package/lib-esm/services/code-samples/httpsnippet/targets/java8/index.d.ts +0 -10
  1305. package/lib-esm/services/code-samples/httpsnippet/targets/java8/index.js +0 -2
  1306. package/lib-esm/services/code-samples/httpsnippet/targets/javascript/fetch.d.ts +0 -10
  1307. package/lib-esm/services/code-samples/httpsnippet/targets/javascript/fetch.js +0 -2
  1308. package/lib-esm/services/code-samples/httpsnippet/targets/javascript/index.d.ts +0 -12
  1309. package/lib-esm/services/code-samples/httpsnippet/targets/javascript/index.js +0 -2
  1310. package/lib-esm/services/code-samples/httpsnippet/targets/node/fetch.d.ts +0 -10
  1311. package/lib-esm/services/code-samples/httpsnippet/targets/node/fetch.js +0 -2
  1312. package/lib-esm/services/code-samples/httpsnippet/targets/node/index.d.ts +0 -10
  1313. package/lib-esm/services/code-samples/httpsnippet/targets/node/index.js +0 -2
  1314. package/lib-esm/services/code-samples/httpsnippet/targets/php/curl.d.ts +0 -10
  1315. package/lib-esm/services/code-samples/httpsnippet/targets/php/curl.js +0 -2
  1316. package/lib-esm/services/code-samples/httpsnippet/targets/php/index.d.ts +0 -10
  1317. package/lib-esm/services/code-samples/httpsnippet/targets/php/index.js +0 -2
  1318. package/lib-esm/services/code-samples/httpsnippet/targets/php/types.d.ts +0 -11
  1319. package/lib-esm/services/code-samples/httpsnippet/targets/php/types.js +0 -2
  1320. package/lib-esm/services/code-samples/httpsnippet/targets/php/utils.d.ts +0 -2
  1321. package/lib-esm/services/code-samples/httpsnippet/targets/php/utils.js +0 -2
  1322. package/lib-esm/services/code-samples/httpsnippet/targets/python/index.d.ts +0 -10
  1323. package/lib-esm/services/code-samples/httpsnippet/targets/python/index.js +0 -2
  1324. package/lib-esm/services/code-samples/httpsnippet/targets/python/requests.d.ts +0 -4
  1325. package/lib-esm/services/code-samples/httpsnippet/targets/python/requests.js +0 -2
  1326. package/lib-esm/services/code-samples/httpsnippet/targets/r/httr.d.ts +0 -4
  1327. package/lib-esm/services/code-samples/httpsnippet/targets/r/httr.js +0 -2
  1328. package/lib-esm/services/code-samples/httpsnippet/targets/r/index.d.ts +0 -10
  1329. package/lib-esm/services/code-samples/httpsnippet/targets/r/index.js +0 -2
  1330. package/lib-esm/services/code-samples/httpsnippet/targets/r/utils.d.ts +0 -5
  1331. package/lib-esm/services/code-samples/httpsnippet/targets/r/utils.js +0 -2
  1332. package/lib-esm/services/code-samples/httpsnippet/targets/ruby/index.d.ts +0 -10
  1333. package/lib-esm/services/code-samples/httpsnippet/targets/ruby/index.js +0 -2
  1334. package/lib-esm/services/code-samples/httpsnippet/targets/ruby/native.d.ts +0 -10
  1335. package/lib-esm/services/code-samples/httpsnippet/targets/ruby/native.js +0 -2
  1336. package/lib-esm/services/code-samples/httpsnippet/targets/shell/curl.d.ts +0 -10
  1337. package/lib-esm/services/code-samples/httpsnippet/targets/shell/curl.js +0 -2
  1338. package/lib-esm/services/code-samples/httpsnippet/targets/shell/index.d.ts +0 -12
  1339. package/lib-esm/services/code-samples/httpsnippet/targets/shell/index.js +0 -2
  1340. package/lib-esm/services/code-samples/index.d.ts +0 -2
  1341. package/lib-esm/services/code-samples/index.js +0 -2
  1342. package/lib-esm/services/code-samples/types.d.ts +0 -72
  1343. package/lib-esm/services/code-samples/types.js +0 -2
  1344. package/lib-esm/services/config-options/helpers.d.ts +0 -3
  1345. package/lib-esm/services/config-options/helpers.js +0 -2
  1346. package/lib-esm/services/config-options/index.d.ts +0 -2
  1347. package/lib-esm/services/config-options/index.js +0 -2
  1348. package/lib-esm/services/config-options/normalizeOptions.d.ts +0 -3
  1349. package/lib-esm/services/config-options/normalizeOptions.js +0 -2
  1350. package/lib-esm/services/config-options/types.d.ts +0 -55
  1351. package/lib-esm/services/config-options/types.js +0 -2
  1352. package/lib-esm/services/history/helpers.d.ts +0 -5
  1353. package/lib-esm/services/history/helpers.js +0 -2
  1354. package/lib-esm/services/history/index.d.ts +0 -1
  1355. package/lib-esm/services/history/index.js +0 -2
  1356. package/lib-esm/services/index.d.ts +0 -8
  1357. package/lib-esm/services/index.js +0 -2
  1358. package/lib-esm/services/menu/builder.d.ts +0 -8
  1359. package/lib-esm/services/menu/builder.js +0 -2
  1360. package/lib-esm/services/menu/index.d.ts +0 -1
  1361. package/lib-esm/services/menu/index.js +0 -2
  1362. package/lib-esm/services/menu/markdown.d.ts +0 -8
  1363. package/lib-esm/services/menu/markdown.js +0 -2
  1364. package/lib-esm/services/menu/operation.d.ts +0 -10
  1365. package/lib-esm/services/menu/operation.js +0 -2
  1366. package/lib-esm/services/menu/tags.d.ts +0 -27
  1367. package/lib-esm/services/menu/tags.js +0 -2
  1368. package/lib-esm/services/types.d.ts +0 -126
  1369. package/lib-esm/services/types.js +0 -2
  1370. package/lib-esm/services/utils.d.ts +0 -18
  1371. package/lib-esm/services/utils.js +0 -2
  1372. package/lib-esm/standalone.d.ts +0 -24
  1373. package/lib-esm/standalone.js +0 -2
  1374. package/lib-esm/types/app.d.ts +0 -6
  1375. package/lib-esm/types/app.js +0 -2
  1376. package/lib-esm/types/index.d.ts +0 -3
  1377. package/lib-esm/types/index.js +0 -2
  1378. package/lib-esm/types/open-api.d.ts +0 -368
  1379. package/lib-esm/types/open-api.js +0 -2
  1380. package/lib-esm/types/security.d.ts +0 -11
  1381. package/lib-esm/types/security.js +0 -2
  1382. package/lib-esm/utils/JsonPointer.d.ts +0 -51
  1383. package/lib-esm/utils/JsonPointer.js +0 -2
  1384. package/lib-esm/utils/areArraysEqual.d.ts +0 -1
  1385. package/lib-esm/utils/areArraysEqual.js +0 -2
  1386. package/lib-esm/utils/argValuesHelpers.d.ts +0 -4
  1387. package/lib-esm/utils/argValuesHelpers.js +0 -2
  1388. package/lib-esm/utils/compose.d.ts +0 -1
  1389. package/lib-esm/utils/compose.js +0 -2
  1390. package/lib-esm/utils/configure-helpers.d.ts +0 -11
  1391. package/lib-esm/utils/configure-helpers.js +0 -2
  1392. package/lib-esm/utils/cookies.d.ts +0 -7
  1393. package/lib-esm/utils/cookies.js +0 -2
  1394. package/lib-esm/utils/createParsedDocument.d.ts +0 -2
  1395. package/lib-esm/utils/createParsedDocument.js +0 -2
  1396. package/lib-esm/utils/debounce.d.ts +0 -1
  1397. package/lib-esm/utils/debounce.js +0 -2
  1398. package/lib-esm/utils/debug.d.ts +0 -2
  1399. package/lib-esm/utils/debug.js +0 -2
  1400. package/lib-esm/utils/dom.d.ts +0 -7
  1401. package/lib-esm/utils/dom.js +0 -2
  1402. package/lib-esm/utils/environments.d.ts +0 -4
  1403. package/lib-esm/utils/environments.js +0 -2
  1404. package/lib-esm/utils/helpers.d.ts +0 -46
  1405. package/lib-esm/utils/helpers.js +0 -2
  1406. package/lib-esm/utils/index.d.ts +0 -23
  1407. package/lib-esm/utils/index.js +0 -2
  1408. package/lib-esm/utils/isMobile.d.ts +0 -5
  1409. package/lib-esm/utils/isMobile.js +0 -2
  1410. package/lib-esm/utils/loadAndBundleSpec.d.ts +0 -3
  1411. package/lib-esm/utils/loadAndBundleSpec.js +0 -2
  1412. package/lib-esm/utils/local-storage.d.ts +0 -2
  1413. package/lib-esm/utils/local-storage.js +0 -2
  1414. package/lib-esm/utils/object.d.ts +0 -3
  1415. package/lib-esm/utils/object.js +0 -2
  1416. package/lib-esm/utils/openapi.d.ts +0 -43
  1417. package/lib-esm/utils/openapi.js +0 -2
  1418. package/lib-esm/utils/parameters.d.ts +0 -2
  1419. package/lib-esm/utils/parameters.js +0 -2
  1420. package/lib-esm/utils/path.d.ts +0 -4
  1421. package/lib-esm/utils/path.js +0 -2
  1422. package/lib-esm/utils/queryString.d.ts +0 -9
  1423. package/lib-esm/utils/queryString.js +0 -2
  1424. package/lib-esm/utils/replaceVariables.d.ts +0 -2
  1425. package/lib-esm/utils/replaceVariables.js +0 -2
  1426. package/lib-esm/utils/saveTextBeforeHeading.d.ts +0 -7
  1427. package/lib-esm/utils/saveTextBeforeHeading.js +0 -2
  1428. package/lib-esm/utils/security-details.d.ts +0 -9
  1429. package/lib-esm/utils/security-details.js +0 -2
  1430. package/lib-esm/utils/session-storage.d.ts +0 -2
  1431. package/lib-esm/utils/session-storage.js +0 -2
  1432. package/lib-esm/utils/simplifyAstStructure.d.ts +0 -2
  1433. package/lib-esm/utils/simplifyAstStructure.js +0 -2
  1434. package/lib-esm/utils/sort.d.ts +0 -6
  1435. package/lib-esm/utils/sort.js +0 -2
  1436. package/lib-esm/utils/string.d.ts +0 -13
  1437. package/lib-esm/utils/string.js +0 -2
  1438. package/lib-esm/utils/test-utils.d.ts +0 -1
  1439. package/lib-esm/utils/test-utils.js +0 -2
  1440. package/lib-esm/utils/theme-helpers.d.ts +0 -3
  1441. package/lib-esm/utils/theme-helpers.js +0 -4
@@ -1,2 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.updateOperationWithRequestValues=updateOperationWithRequestValues,exports.updateParametersWithUserValues=updateParametersWithUserValues,exports.updateRequestBodyWithUserValues=updateRequestBodyWithUserValues,exports.updateSecurityWithUserValues=updateSecurityWithUserValues,exports.updateOperationWithServerUserValues=updateOperationWithServerUserValues,exports.updateEnvVariablesWithUserValues=updateEnvVariablesWithUserValues,exports.isDirectRequestValues=isDirectRequestValues,exports.updateObjectProperties=updateObjectProperties,exports.createSecurityUpdates=createSecurityUpdates;const theme_1=require("@redocly/theme");function updateOperationWithRequestValues(e,t){if(0!==Object.keys(t).length)if(isDirectRequestValues(t))updateRequestBodyWithUserValues(e,t),updateSecurityWithUserValues(e,t.security),updateEnvVariablesWithUserValues(e,t.envVariables);else{updateOperationWithServerUserValues(e,t)}}function updateParametersWithUserValues(e,t){var s;if(!t)return;const{in:r,name:a}=e;if(isDirectRequestValues(t)){const u=t,i={header:u.headers,query:u.query,path:u.path,cookie:u.cookie};r&&(null===(s=i[r])||void 0===s?void 0:s[a])&&(e.example=i[r][a])}else Object.entries(t).forEach((([t,s])=>{var u;const i=s;if(!i)return;const l={header:i.headers,query:i.query,path:i.path,cookie:i.cookie};r&&(null===(u=l[r])||void 0===u?void 0:u[a])&&(e.serverValues||(e.serverValues={}),e.serverValues[t]={example:l[r][a]})}))}function updateRequestBodyWithUserValues(e,t,s){if(!e.requestBody||!(null==t?void 0:t.body))return;const r=e.requestBody.content;if(!(null==r?void 0:r.mediaTypes))return;const a=(e,r)=>{e[r]&&Object.keys(e[r]).forEach((a=>{var u,i;const l=null===(i=null===(u=e[r])||void 0===u?void 0:u[a])||void 0===i?void 0:i.value;let n;if(n=(0,theme_1.isObject)(l)?updateObjectProperties(l,t.body):t.body,n)if(s){const t=e[r][a];t.serverValues||(t.serverValues={}),t.serverValues[s]={value:n,rawValue:n},e[r][a]=Object.assign(Object.assign({},t),{mime:e.name})}else e[r][a]={value:n,rawValue:n,mime:e.name}}))};for(const e of r.mediaTypes)a(e,"examples"),a(e,"formExamples");return e}function updateSecurityWithUserValues(e,t,s){t&&e.security.length&&e.security.forEach((e=>{s?e.schemes.forEach((e=>{e.serverValues||(e.serverValues={});const r=createSecurityUpdates(e,t);e.serverValues[s]=r})):e.schemes.forEach((e=>{const s=createSecurityUpdates(e,t);Object.assign(e,s)}))}))}function updateOperationWithServerUserValues(e,t){e.servers.forEach((s=>{if(t[s.url]){const r=t[s.url];r&&(updateRequestBodyWithUserValues(e,r,s.url),updateSecurityWithUserValues(e,r.security,s.url),updateEnvVariablesWithUserValues(e,r.envVariables,s.url))}}))}function updateEnvVariablesWithUserValues(e,t,s){t&&0!==Object.keys(t).length&&(e.envVariables||(e.envVariables={}),s?(e.envVariables.serverValues||(e.envVariables.serverValues={}),e.envVariables.serverValues[s]=Object.assign(Object.assign({},e.envVariables.serverValues[s]),t)):e.envVariables.values=Object.assign(Object.assign({},e.envVariables.values),t))}function isDirectRequestValues(e){return!(!e||"object"!=typeof e)&&("headers"in e||"body"in e||"query"in e||"path"in e||"cookie"in e||"security"in e||"envVariables"in e)}function updateObjectProperties(e,t){if(!e||"object"!=typeof e)return t;if(Array.isArray(e)&&Array.isArray(t)){if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){const s=Object.keys(e[0]),r=t.filter((e=>"object"==typeof e&&null!==e&&(s.some((t=>t in e))&&Object.keys(e).every((e=>s.includes(e))))));return r.length>0?r:e}return t}const s=Array.isArray(e)?[...e]:Object.assign({},e);for(const[r,a]of Object.entries(t))r in e&&(Array.isArray(e[r])||"object"==typeof a&&null!==a&&"object"==typeof e[r]?s[r]=updateObjectProperties(e[r],a):s[r]=a);return s}function createSecurityUpdates(e,t){var s,r,a;const u={"x-defaultAccessToken":null===(s=t.token)||void 0===s?void 0:s.access_token,"x-defaultTokenType":(null===(r=t.token)||void 0===r?void 0:r.token_type)||"Bearer","x-defaultClientId":t.client_id,"x-defaultClientSecret":t.client_secret,scopes:t.scopes||e.scopes};return"http"===e.type&&"basic"===e.scheme?(u["x-defaultUsername"]=t.username,u["x-defaultPassword"]=t.password,delete u["x-defaultAccessToken"],delete u["x-defaultTokenType"]):"oauth2"!==e.type||(null===(a=t.token)||void 0===a?void 0:a.access_token)||(delete u["x-defaultAccessToken"],delete u["x-defaultTokenType"]),u}
2
- //# sourceMappingURL=configure-helpers.js.map
1
+ import{isObject as p}from"@redocly/theme";function v(e,t){Object.keys(t).length!==0&&(d(t)?(b(e,t),h(e,t.security),y(e,t.envVariables)):x(e,t))}function j(e,t){if(!t)return;const{in:r,name:s}=e;if(d(t)){const c=t,n={header:c.headers,query:c.query,path:c.path,cookie:c.cookie};r&&n[r]?.[s]&&(e.example=n[r][s])}else Object.entries(t).forEach(([c,n])=>{const f=n;if(!f)return;const o={header:f.headers,query:f.query,path:f.path,cookie:f.cookie};r&&o[r]?.[s]&&(e.serverValues||(e.serverValues={}),e.serverValues[c]={example:o[r][s]})})}function b(e,t,r){if(!e.requestBody||!t?.body)return;const s=e.requestBody.content;if(!s?.mediaTypes)return;const c=(n,f)=>{n[f]&&Object.keys(n[f]).forEach(o=>{const i=n[f]?.[o]?.value;let a;if(p(i)?a=l(i,t.body):a=t.body,!!a)if(r){const u=n[f][o];u.serverValues||(u.serverValues={}),u.serverValues[r]={value:a,rawValue:a},n[f][o]={...u,mime:n.name}}else n[f][o]={value:a,rawValue:a,mime:n.name}})};for(const n of s.mediaTypes)c(n,"examples"),c(n,"formExamples");return e}function h(e,t,r){!t||!e.security.length||e.security.forEach(s=>{r?s.schemes.forEach(c=>{c.serverValues||(c.serverValues={});const n=k(c,t);c.serverValues[r]=n}):s.schemes.forEach(c=>{const n=k(c,t);Object.assign(c,n)})})}function x(e,t){e.servers.forEach(r=>{if(t[r.url]){const s=t[r.url];s&&(b(e,s,r.url),h(e,s.security,r.url),y(e,s.envVariables,r.url))}})}function y(e,t,r){!t||Object.keys(t).length===0||(e.envVariables||(e.envVariables={}),r?(e.envVariables.serverValues||(e.envVariables.serverValues={}),e.envVariables.serverValues[r]={...e.envVariables.serverValues[r],...t}):e.envVariables.values={...e.envVariables.values,...t})}function d(e){return!e||typeof e!="object"?!1:"headers"in e||"body"in e||"query"in e||"path"in e||"cookie"in e||"security"in e||"envVariables"in e}function l(e,t){if(!e||typeof e!="object")return t;if(Array.isArray(e)&&Array.isArray(t)){if(e.length>0&&typeof e[0]=="object"&&e[0]!==null){const s=Object.keys(e[0]),c=t.filter(n=>typeof n!="object"||n===null?!1:s.some(f=>f in n)&&Object.keys(n).every(f=>s.includes(f)));return c.length>0?c:e}return t}const r=Array.isArray(e)?[...e]:{...e};for(const[s,c]of Object.entries(t))s in e&&(Array.isArray(e[s])||typeof c=="object"&&c!==null&&typeof e[s]=="object"?r[s]=l(e[s],c):r[s]=c);return r}function k(e,t){const r={"x-defaultAccessToken":t.token?.access_token,"x-defaultTokenType":t.token?.token_type||"Bearer","x-defaultClientId":t.client_id,"x-defaultClientSecret":t.client_secret,scopes:t.scopes||e.scopes};return e.type==="http"&&e.scheme==="basic"?(r["x-defaultUsername"]=t.username,r["x-defaultPassword"]=t.password,delete r["x-defaultAccessToken"],delete r["x-defaultTokenType"]):e.type==="oauth2"&&!t.token?.access_token&&(delete r["x-defaultAccessToken"],delete r["x-defaultTokenType"]),r}export{k as createSecurityUpdates,d as isDirectRequestValues,y as updateEnvVariablesWithUserValues,l as updateObjectProperties,v as updateOperationWithRequestValues,x as updateOperationWithServerUserValues,j as updateParametersWithUserValues,b as updateRequestBodyWithUserValues,h as updateSecurityWithUserValues};
@@ -0,0 +1,2 @@
1
+ import type { OpenAPIDefinition } from '../types/index.js';
2
+ export declare function convertSwagger2OpenAPI(spec: GenericObject): Promise<OpenAPIDefinition>;
@@ -0,0 +1 @@
1
+ import a from"swagger2openapi";function i(r){return r.paths||(r.paths={}),new Promise((e,n)=>a.convertObj(r,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},(t,o)=>{if(t)return n(t);e(o?.openapi)}))}export{i as convertSwagger2OpenAPI};
@@ -1,2 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.setCookie=setCookie,exports.getCookie=getCookie,exports.removeCookie=removeCookie;const string_1=require("./string");function setCookie(e,o,t={path:"/"}){if("undefined"==typeof document)return;"number"==typeof t.expires&&(t.expires=new Date(Date.now()+864e5*t.expires)),t.expires&&(t.expires=t.expires instanceof Date?t.expires.toUTCString():t.expires),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,string_1.tryDecodeURIComponent).replace(/[()]/g,escape);let n="";for(const e in t)t[e]&&(n+="; "+e,!0!==t[e]&&(n+="="+String(t[e]).split(";")[0]));return document.cookie=e+"="+encode(o)+n}function getCookie(e,o){const t="undefined"!=typeof document?document.cookie:o,n=t?t.split("; "):[],i={};for(let o=0;o<n.length;o++){const t=n[o].split("="),r=t.slice(1).join("=");try{const o=(0,string_1.tryDecodeURIComponent)(t[0]);if(o in i||(i[o]=decode(r)),e===o)break}catch(e){}}return e?i[e]:i}function removeCookie(e,o={path:"/"}){setCookie(e,"",Object.assign(Object.assign({},o),{expires:-1}))}function decode(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,string_1.tryDecodeURIComponent)}function encode(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,string_1.tryDecodeURIComponent)}
2
- //# sourceMappingURL=cookies.js.map
1
+ import{tryDecodeURIComponent as r}from"./string.js";function s(e,c,o={path:"/"}){if(typeof document>"u")return;typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires instanceof Date?o.expires.toUTCString():o.expires),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,r).replace(/[()]/g,escape);let i="";for(const n in o)o[n]&&(i+="; "+n,o[n]!==!0&&(i+="="+String(o[n]).split(";")[0]));return document.cookie=e+"="+g(c)+i}function u(e,c){const o=typeof document<"u"?document.cookie:c,i=o?o.split("; "):[],n={};for(let p=0;p<i.length;p++){const f=i[p].split("="),d=f.slice(1).join("=");try{const t=r(f[0]);if(t in n||(n[t]=x(d)),e===t)break}catch{}}return e?n[e]:n}function C(e,c={path:"/"}){s(e,"",{...c,expires:-1})}function x(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,r)}function g(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,r)}export{u as getCookie,C as removeCookie,s as setCookie};
@@ -1,2 +1 @@
1
- "use strict";function debounce(e,t,u){let n,o=0;return function(...c){o++,n?clearTimeout(n):u&&e(...c),n=setTimeout((function(){o>1&&e(...c),o=0,n=null}),t)}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.debounce=debounce;
2
- //# sourceMappingURL=debounce.js.map
1
+ function d(u,o,i){let e,t=0;return function(...n){t++;function c(){t>1&&u(...n),t=0,e=null}e?clearTimeout(e):i&&u(...n),e=setTimeout(c,o)}}export{d as debounce};
@@ -1,2 +1 @@
1
- "use strict";function debugTime(e){"production"!==process.env.NODE_ENV&&console.time(e)}function debugTimeEnd(e){"production"!==process.env.NODE_ENV&&console.timeEnd(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.debugTime=debugTime,exports.debugTimeEnd=debugTimeEnd;
2
- //# sourceMappingURL=debug.js.map
1
+ function o(e){process.env.NODE_ENV!=="production"&&console.time(e)}function n(e){process.env.NODE_ENV!=="production"&&console.timeEnd(e)}export{o as debugTime,n as debugTimeEnd};
package/lib/utils/dom.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";function querySelector(t){return"undefined"!=typeof document?document.querySelector(t):null}function html2Str(t){return t.split(/<[^>]+>/).map((t=>t.trim())).filter((t=>t.length>0)).join(" ")}Object.defineProperty(exports,"__esModule",{value:!0}),exports.querySelector=querySelector,exports.html2Str=html2Str,"undefined"==typeof Element||Element.prototype.scrollIntoViewIfNeeded||(Element.prototype.scrollIntoViewIfNeeded=function(t){t=0===arguments.length||!!t;const e=this.parentNode,o=window.getComputedStyle(e,void 0),l=parseInt(o.getPropertyValue("border-top-width"),10),i=parseInt(o.getPropertyValue("border-left-width"),10),f=this.offsetTop-e.offsetTop<e.scrollTop,r=this.offsetTop-e.offsetTop+this.clientHeight-l>e.scrollTop+e.clientHeight,s=this.offsetLeft-e.offsetLeft<e.scrollLeft,n=this.offsetLeft-e.offsetLeft+this.clientWidth-i>e.scrollLeft+e.clientWidth,c=f&&!r;(f||r)&&t&&(e.scrollTop=this.offsetTop-e.offsetTop-e.clientHeight/2-l+this.clientHeight/2),(s||n)&&t&&(e.scrollLeft=this.offsetLeft-e.offsetLeft-e.clientWidth/2-i+this.clientWidth/2),(f||r||s||n)&&!t&&this.scrollIntoView(c)});
2
- //# sourceMappingURL=dom.js.map
1
+ function c(e){return typeof document<"u"?document.querySelector(e):null}function h(e){return e.split(/<[^>]+>/).map(t=>t.trim()).filter(t=>t.length>0).join(" ")}typeof Element<"u"&&!Element.prototype.scrollIntoViewIfNeeded&&(Element.prototype.scrollIntoViewIfNeeded=function(e){e=arguments.length===0?!0:!!e;const t=this.parentNode,n=window.getComputedStyle(t,void 0),r=parseInt(n.getPropertyValue("border-top-width"),10),f=parseInt(n.getPropertyValue("border-left-width"),10),o=this.offsetTop-t.offsetTop<t.scrollTop,i=this.offsetTop-t.offsetTop+this.clientHeight-r>t.scrollTop+t.clientHeight,s=this.offsetLeft-t.offsetLeft<t.scrollLeft,l=this.offsetLeft-t.offsetLeft+this.clientWidth-f>t.scrollLeft+t.clientWidth,p=o&&!i;(o||i)&&e&&(t.scrollTop=this.offsetTop-t.offsetTop-t.clientHeight/2-r+this.clientHeight/2),(s||l)&&e&&(t.scrollLeft=this.offsetLeft-t.offsetLeft-t.clientWidth/2-f+this.clientWidth/2),(o||i||s||l)&&!e&&this.scrollIntoView(p)});export{h as html2Str,c as querySelector};
@@ -1,4 +1,4 @@
1
- import type { OpenAPIServer } from '../types';
1
+ import type { OpenAPIServer } from '../types/index.js';
2
2
  export type EnvironmentData = Record<string, Record<string, string>>;
3
3
  export declare function mergeEnvData(env1: EnvironmentData, env2?: EnvironmentData): EnvironmentData;
4
4
  export declare function getServerEnvName(server: OpenAPIServer): string;
@@ -1,2 +1 @@
1
- "use strict";function mergeEnvData(e,r){if(!r)return e;return Array.from(new Set([...Object.keys(e),...Object.keys(r)])).reduce(((t,n)=>(t[n]=Object.assign(Object.assign({},e[n]),r[n]),t)),{})}function getServerEnvName(e){return e.description||e.url}Object.defineProperty(exports,"__esModule",{value:!0}),exports.mergeEnvData=mergeEnvData,exports.getServerEnvName=getServerEnvName;
2
- //# sourceMappingURL=environments.js.map
1
+ function o(r,e){return e?Array.from(new Set([...Object.keys(r),...Object.keys(e)])).reduce((n,t)=>(n[t]={...r[t],...e[t]},n),{}):r}function a(r){return r.description||r.url}export{a as getServerEnvName,o as mergeEnvData};
@@ -1,2 +1,12 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getValueFromMdParsedExtension=exports.normalizeText=exports.dottedString=exports.isMergeableObject=exports.deleteEmptyArrayItem=exports.isArrayOfObjects=void 0,exports.mapWithLast=mapWithLast,exports.mapValues=mapValues,exports.flattenByProp=flattenByProp,exports.stripTrailingSlash=stripTrailingSlash,exports.isNumeric=isNumeric,exports.appendToMdHeading=appendToMdHeading,exports.isAbsoluteUrl=isAbsoluteUrl,exports.resolveUrl=resolveUrl,exports.titleize=titleize,exports.removeQueryStringAndHash=removeQueryStringAndHash,exports.escapeHTMLAttrChars=escapeHTMLAttrChars,exports.unescapeHTMLChars=unescapeHTMLChars,exports.sanitizeItemId=sanitizeItemId,exports.useSchemaTitle=useSchemaTitle,exports.get=get,exports.joinStringFactory=joinStringFactory,exports.getWindowReferenceOptions=getWindowReferenceOptions,exports.getJsUrl=getJsUrl,exports.isLastInArray=isLastInArray,exports.isLastProperty=isLastProperty;const url_1=require("url"),theme_1=require("@redocly/theme"),openapi_1=require("./openapi"),JsonPointer_1=require("./JsonPointer");function mapWithLast(e,t){const r=[];for(let n=0;n<e.length-1;n++)r.push(t(e[n],!1));return 0!==e.length&&r.push(t(e[e.length-1],!0)),r}function mapValues(e,t){const r={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=t(e[n],n,e));return r}function flattenByProp(e,t){const r=[],n=e=>{for(const s of e)r.push(s),s[t]&&n(s[t])};return n(e),r}function stripTrailingSlash(e){return e.endsWith("/")?e.substring(0,e.length-1):e}function isNumeric(e){return!isNaN(parseFloat(e))&&isFinite(e)}function appendToMdHeading(e,t,r){const n=new RegExp(`(^|\\n)#\\s?${t}\\s*\\n`,"i"),s=new RegExp(`((\\n|^)#\\s*${t}\\s*(\\n|$)(?:.|\\n)*?)(\\n#|$)`,"i");if(n.test(e))return e.replace(s,`$1\n\n${r}\n$4`);{const n=""===e||e.endsWith("\n\n")?"":e.endsWith("\n")?"\n":"\n\n";return`${e}${n}# ${t}\n\n${r}`}}const isArrayOfObjects=e=>Array.isArray(e)&&e.some((e=>(0,theme_1.isObject)(e)));exports.isArrayOfObjects=isArrayOfObjects;const deleteEmptyArrayItem=e=>e.filter((e=>!!e));exports.deleteEmptyArrayItem=deleteEmptyArrayItem;const isMergeableObject=e=>(0,theme_1.isObject)(e)&&!Array.isArray(e);function isAbsoluteUrl(e){return/(?:^[a-z][a-z0-9+.-]*:|\/\/)/i.test(e)}function resolveUrl(e,t){let r;if(t.startsWith("//")){const{protocol:n}=(0,url_1.parse)(e);r=`${n||"https:"}${t}`}else if(isAbsoluteUrl(t))r=t;else if(t.startsWith("/")){const n=(0,url_1.parse)(e);r=(0,url_1.format)(Object.assign(Object.assign({},n),{pathname:t}))}else r=stripTrailingSlash(e)+"/"+t;return stripTrailingSlash(r)}function titleize(e){return e.charAt(0).toUpperCase()+e.slice(1)}function removeQueryStringAndHash(e){try{const t=parseURL(e);return t.search="",t.hash="",t.toString()}catch(t){return e}}function parseURL(e){return"undefined"==typeof URL?new(require("url").URL)(e):new URL(e)}function escapeHTMLAttrChars(e){return e.replace(/["\\]/g,"\\$&")}function unescapeHTMLChars(e){return e.replace(/&#(\d+);/g,((e,t)=>String.fromCharCode(parseInt(t,10)))).replace(/&amp;/g,"&").replace(/&quot;/g,'"')}function sanitizeItemId(e){return e&&e.replace(/#/g,"_").toLowerCase()}function useSchemaTitle(e,t){return t||(0,openapi_1.isNamedDefinition)(e)&&JsonPointer_1.JsonPointer.baseName(e)||""}function get(e={},t,r){return"string"==typeof t&&(t=t.split(".")),t.reduce(((e,t)=>e&&e[t]?e[t]:r),e)}function joinStringFactory(e){return(...t)=>t.filter(Boolean).join(e)}function getWindowReferenceOptions(e){var t;return theme_1.IS_BROWSER?null===(t=null===window||void 0===window?void 0:window.REFERENCE_DOCS_OPTIONS)||void 0===t?void 0:t[e]:null}function getJsUrl(){var e;if(!theme_1.IS_BROWSER)return"";const t=+new Date+Math.random();try{return document.currentScript&&(document.currentScript.async||document.currentScript.defer)||document.write(`<script id="dummy${t}"><\/script>`),(null===(e=document.getElementById("dummy"+t))||void 0===e?void 0:e.previousSibling).src}catch(e){return""}}exports.isMergeableObject=isMergeableObject,exports.dottedString=joinStringFactory(".");const normalizeText=e=>(0,theme_1.isString)(e)?e:null==e?void 0:e.raw;exports.normalizeText=normalizeText;const getValueFromMdParsedExtension=(e,t)=>{const r=(null==e?void 0:e[`x-parsed-md-${t}`])||(null==e?void 0:e[t]);if(!r)return;if(!(null==e?void 0:e[`x-parsed-md-${t}`])&&"x-enumDescriptions"!==t)return null==e?void 0:e[t];if("x-enumDescriptions"!==t)return normalizeMarkdownValue(e,t);let n={};for(const e in r)e.startsWith("x-parsed-md")||(n[e]=(null==r?void 0:r[`x-parsed-md-${e}`])||(null==r?void 0:r[e]));return Object.keys(n).length?n:r};function normalizeMarkdownValue(e,t){var r;const n=(null==e?void 0:e[`x-parsed-md-${t}`])||(null==e?void 0:e[t]);return(null==n?void 0:n.raw)?n:{result:(null==n?void 0:n.result)||(null===(r=null==e?void 0:e[t])||void 0===r?void 0:r.result)||(null==e?void 0:e[t]),raw:null==e?void 0:e[t]}}function isLastInArray(e,t){return t===e.length-1}function isLastProperty(e,t){const r=Object.keys(e);return r.indexOf(t)===r.length-1}exports.getValueFromMdParsedExtension=getValueFromMdParsedExtension;
2
- //# sourceMappingURL=helpers.js.map
1
+ import{IS_BROWSER as i,isObject as u,isString as a}from"@redocly/theme";import{isNamedDefinition as f}from"./openapi.js";import{JsonPointer as l}from"./JsonPointer.js";import{urlParse as c}from"./url.js";function w(r,e){const t=[];for(let n=0;n<r.length-1;n++)t.push(e(r[n],!1));return r.length!==0&&t.push(e(r[r.length-1],!0)),t}function O(r,e){const t={};for(const n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=e(r[n],n,r));return t}function y(r,e){const t=[],n=o=>{for(const s of o)t.push(s),s[e]&&n(s[e])};return n(r),t}function p(r){return r.endsWith("/")?r.substring(0,r.length-1):r}function A(r){return!isNaN(parseFloat(r))&&isFinite(r)}function b(r,e,t){const n=new RegExp(`(^|\\n)#\\s?${e}\\s*\\n`,"i"),o=new RegExp(`((\\n|^)#\\s*${e}\\s*(\\n|$)(?:.|\\n)*?)(\\n#|$)`,"i");if(n.test(r))return r.replace(o,`$1
2
+
3
+ ${t}
4
+ $4`);{const s=r===""||r.endsWith(`
5
+
6
+ `)?"":r.endsWith(`
7
+ `)?`
8
+ `:`
9
+
10
+ `;return`${r}${s}# ${e}
11
+
12
+ ${t}`}}const E=r=>Array.isArray(r)&&r.some(e=>u(e)),R=r=>r.filter(e=>!!e),W=r=>u(r)&&!Array.isArray(r);function d(r){return/(?:^[a-z][a-z0-9+.-]*:|\/\/)/i.test(r)}function C(r,e){let t;if(e.startsWith("//"))t=`${c(r,!0)?.protocol||"https:"}${e}`;else if(d(e))t=e;else if(!e.startsWith("/"))t=p(r)+"/"+e;else{const n=c(r);n?(n.pathname=e,t=n.toString()):t=e}return p(t)}function I(r){return r.charAt(0).toUpperCase()+r.slice(1)}function L(r){try{if(!r)return"";const e=new URL(r);return e.search="",e.hash="",e.toString()}catch{return r}}function M(r){return r.replace(/["\\]/g,"\\$&")}function N(r){return r.replace(/&#(\d+);/g,(e,t)=>String.fromCharCode(parseInt(t,10))).replace(/&amp;/g,"&").replace(/&quot;/g,'"')}function P(r){return r&&r.replace(/#/g,"_").toLowerCase()}function T(r,e){return e||f(r)&&l.baseName(r)||""}function j(r={},e,t){return typeof e=="string"&&(e=e.split(".")),e.reduce((n,o)=>n&&n[o]?n[o]:t,r)}function x(r){return(...e)=>e.filter(Boolean).join(r)}const z=x(".");function D(r){return i?window?.REFERENCE_DOCS_OPTIONS?.[r]:null}function F(){if(!i)return"";const r=+new Date+Math.random();try{return(!document.currentScript||!(document.currentScript.async||document.currentScript.defer))&&document.write(`<script id="dummy${r}"></script>`),(document.getElementById("dummy"+r)?.previousSibling).src}catch{return""}}const _=r=>a(r)?r:r?.raw,B=(r,e)=>{const t=r?.[`x-parsed-md-${e}`]||r?.[e];if(!t)return;if(!r?.[`x-parsed-md-${e}`]&&e!=="x-enumDescriptions")return r?.[e];if(e!=="x-enumDescriptions")return g(r,e);let n={};for(const o in t)o.startsWith("x-parsed-md")||(n[o]=t?.[`x-parsed-md-${o}`]||t?.[o]);return Object.keys(n).length?n:t};function g(r,e){const t=r?.[`x-parsed-md-${e}`]||r?.[e];return t?.raw?t:{result:t?.result||r?.[e]?.result||r?.[e],raw:r?.[e]}}function H(r,e){return e===r.length-1}function U(r,e){const t=Object.keys(r);return t.indexOf(e)===t.length-1}export{b as appendToMdHeading,R as deleteEmptyArrayItem,z as dottedString,M as escapeHTMLAttrChars,y as flattenByProp,j as get,F as getJsUrl,B as getValueFromMdParsedExtension,D as getWindowReferenceOptions,d as isAbsoluteUrl,E as isArrayOfObjects,H as isLastInArray,U as isLastProperty,W as isMergeableObject,A as isNumeric,x as joinStringFactory,O as mapValues,w as mapWithLast,_ as normalizeText,L as removeQueryStringAndHash,C as resolveUrl,P as sanitizeItemId,p as stripTrailingSlash,I as titleize,N as unescapeHTMLChars,T as useSchemaTitle};
@@ -1,23 +1,23 @@
1
- export * from './JsonPointer';
2
- export * from './openapi';
3
- export * from './helpers';
4
- export * from './dom';
5
- export * from './debug';
6
- export * from './sort';
7
- export * from './argValuesHelpers';
8
- export * from './theme-helpers';
9
- export * from './debounce';
10
- export * from './security-details';
11
- export * from './session-storage';
12
- export * from './local-storage';
13
- export * from './parameters';
14
- export * from './string';
15
- export * from './test-utils';
16
- export * from './compose';
17
- export * from './saveTextBeforeHeading';
18
- export * from './path';
19
- export * from './queryString';
20
- export * from './isMobile';
21
- export * from './replaceVariables';
22
- export * from './areArraysEqual';
23
- export * from './configure-helpers';
1
+ export * from './JsonPointer.js';
2
+ export * from './openapi.js';
3
+ export * from './helpers.js';
4
+ export * from './dom.js';
5
+ export * from './debug.js';
6
+ export * from './sort.js';
7
+ export * from './argValuesHelpers.js';
8
+ export * from './theme-helpers.js';
9
+ export * from './debounce.js';
10
+ export * from './security-details.js';
11
+ export * from './session-storage.js';
12
+ export * from './local-storage.js';
13
+ export * from './parameters.js';
14
+ export * from './string.js';
15
+ export * from './test-utils.js';
16
+ export * from './compose.js';
17
+ export * from './saveTextBeforeHeading.js';
18
+ export * from './path.js';
19
+ export * from './queryString.js';
20
+ export * from './isMobile.js';
21
+ export * from './replaceVariables.js';
22
+ export * from './areArraysEqual.js';
23
+ export * from './configure-helpers.js';
@@ -1,2 +1 @@
1
- "use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,r,t,o){void 0===o&&(o=t);var p=Object.getOwnPropertyDescriptor(r,t);p&&!("get"in p?!r.__esModule:p.writable||p.configurable)||(p={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,o,p)}:function(e,r,t,o){void 0===o&&(o=t),e[o]=r[t]}),__exportStar=this&&this.__exportStar||function(e,r){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(r,t)||__createBinding(r,e,t)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./JsonPointer"),exports),__exportStar(require("./openapi"),exports),__exportStar(require("./helpers"),exports),__exportStar(require("./dom"),exports),__exportStar(require("./debug"),exports),__exportStar(require("./sort"),exports),__exportStar(require("./argValuesHelpers"),exports),__exportStar(require("./theme-helpers"),exports),__exportStar(require("./debounce"),exports),__exportStar(require("./security-details"),exports),__exportStar(require("./session-storage"),exports),__exportStar(require("./local-storage"),exports),__exportStar(require("./parameters"),exports),__exportStar(require("./string"),exports),__exportStar(require("./test-utils"),exports),__exportStar(require("./compose"),exports),__exportStar(require("./saveTextBeforeHeading"),exports),__exportStar(require("./path"),exports),__exportStar(require("./queryString"),exports),__exportStar(require("./isMobile"),exports),__exportStar(require("./replaceVariables"),exports),__exportStar(require("./areArraysEqual"),exports),__exportStar(require("./configure-helpers"),exports);
2
- //# sourceMappingURL=index.js.map
1
+ export*from"./JsonPointer.js";export*from"./openapi.js";export*from"./helpers.js";export*from"./dom.js";export*from"./debug.js";export*from"./sort.js";export*from"./argValuesHelpers.js";export*from"./theme-helpers.js";export*from"./debounce.js";export*from"./security-details.js";export*from"./session-storage.js";export*from"./local-storage.js";export*from"./parameters.js";export*from"./string.js";export*from"./test-utils.js";export*from"./compose.js";export*from"./saveTextBeforeHeading.js";export*from"./path.js";export*from"./queryString.js";export*from"./isMobile.js";export*from"./replaceVariables.js";export*from"./areArraysEqual.js";export*from"./configure-helpers.js";
@@ -1,2 +1 @@
1
- "use strict";function isMobile(e={}){const i=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)&&!/CrOS/.test(navigator.userAgent),o=e.tablet&&/android|ipad|playbook|silk/i.test(navigator.userAgent),a=e.tablet&&navigator.maxTouchPoints>1&&-1!==navigator.userAgent.indexOf("Macintosh")&&-1!==navigator.userAgent.indexOf("Safari");return!!(i||o||a)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isMobile=isMobile;
2
- //# sourceMappingURL=isMobile.js.map
1
+ function s(e={}){const o=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/CrOS/,n=/android|ipad|playbook|silk/i,a=o.test(navigator.userAgent)&&!i.test(navigator.userAgent),t=e.tablet&&n.test(navigator.userAgent),r=e.tablet&&navigator.maxTouchPoints>1&&navigator.userAgent.indexOf("Macintosh")!==-1&&navigator.userAgent.indexOf("Safari")!==-1;return!!(a||t||r)}export{s as isMobile};
@@ -1,3 +1,2 @@
1
- import type { OpenAPIDefinition } from '../types';
2
- export declare function loadAndBundleDefinition(specUrlOrObject: GenericObject | string): Promise<OpenAPIDefinition>;
3
- export declare function convertSwagger2OpenAPI(spec: GenericObject): Promise<OpenAPIDefinition>;
1
+ import type { OpenAPIDefinition } from '../types/index.js';
2
+ export declare function loadAndBundleDefinition(specUrlOrObject: Record<string, any> | string): Promise<OpenAPIDefinition>;
@@ -1,2 +1 @@
1
- "use strict";var __awaiter=this&&this.__awaiter||function(e,n,t,o){return new(t||(t=Promise))((function(r,a){function i(e){try{u(o.next(e))}catch(e){a(e)}}function c(e){try{u(o.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,c)}u((o=o.apply(e,n||[])).next())}))};Object.defineProperty(exports,"__esModule",{value:!0}),exports.loadAndBundleDefinition=loadAndBundleDefinition,exports.convertSwagger2OpenAPI=convertSwagger2OpenAPI;const openapi_core_1=require("@redocly/openapi-core"),swagger2openapi_1=require("swagger2openapi"),theme_1=require("@redocly/theme"),createParsedDocument_1=require("./createParsedDocument");function loadAndBundleDefinition(e){return __awaiter(this,void 0,void 0,(function*(){const n=new openapi_core_1.Config({}),t={config:n,base:theme_1.IS_BROWSER?window.location.href:process.cwd()};theme_1.IS_BROWSER&&(n.resolve.http.customFetch=global.fetch),"object"==typeof e&&null!==e?t.doc=(0,createParsedDocument_1.createParsedDocument)(e):t.ref=e;const{bundle:{parsed:o}}=yield(0,openapi_core_1.bundle)(t);return void 0!==o.swagger?convertSwagger2OpenAPI(o):o}))}function convertSwagger2OpenAPI(e){return e.paths||(e.paths={}),new Promise(((n,t)=>(0,swagger2openapi_1.convertObj)(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},((e,o)=>{if(e)return t(e);n(null==o?void 0:o.openapi)}))))}
2
- //# sourceMappingURL=loadAndBundleSpec.js.map
1
+ import{bundle as s,Config as f}from"@redocly/openapi-core";import{IS_BROWSER as i}from"@redocly/theme";import{convertSwagger2OpenAPI as r}from"./convertSwagger2OpenAPI.js";async function l(e){const t=new f({}),o={config:t,base:i?window.location.href:typeof globalThis.process<"u"?globalThis.process.cwd():""};i&&(t.resolve.http.customFetch=globalThis.fetch),typeof e=="object"&&e!==null?o.doc=a(e):o.ref=e;const{bundle:{parsed:n}}=await s(o);return n.swagger!==void 0?r(n):n}function a(e){return{source:{absoluteRef:""},parsed:e}}export{l as loadAndBundleDefinition};
@@ -1,2 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.toLocalStorage=toLocalStorage,exports.fromLocalStorage=fromLocalStorage;const theme_1=require("@redocly/theme");function toLocalStorage(e,o){theme_1.IS_BROWSER&&window.localStorage.setItem("redoc."+e,o)}function fromLocalStorage(e){return theme_1.IS_BROWSER&&window.localStorage.getItem("redoc."+e)||""}
2
- //# sourceMappingURL=local-storage.js.map
1
+ import{IS_BROWSER as t}from"@redocly/theme";function a(o,r){t&&window.localStorage.setItem("redoc."+o,r)}function c(o){return t&&window.localStorage.getItem("redoc."+o)||""}export{c as fromLocalStorage,a as toLocalStorage};
@@ -1,2 +1 @@
1
- "use strict";function objectHas(t,e){let o=e;return"string"==typeof e&&(o=e.split(".")),o.every((e=>"object"==typeof t&&null!==t&&e in t&&(t=t[e],!0)))}function objectSet(t,e,o){var c;let n=e;"string"==typeof e&&(n=e.split("."));const r=n.length-1;for(let e=0;e<r;++e){const o=n[e];t=null!==(c=t[o])&&void 0!==c?c:t[o]={}}t[n[r]]=o}function mapObject(t,e){return Object.fromEntries(Object.entries(t).map((([t,o])=>[t,e(o,t)])))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.objectHas=objectHas,exports.objectSet=objectSet,exports.mapObject=mapObject;
2
- //# sourceMappingURL=object.js.map
1
+ function o(t,e){let r=e;return typeof e=="string"&&(r=e.split(".")),r.every(n=>typeof t!="object"||t===null||!(n in t)?!1:(t=t[n],!0))}function u(t,e,r){let n=e;typeof e=="string"&&(n=e.split("."));const f=n.length-1;for(let i=0;i<f;++i){const s=n[i];t=t[s]??(t[s]={})}const l=n[f];t[l]=r}function p(t,e){return Object.fromEntries(Object.entries(t).map(([r,n])=>[r,e(n,r)]))}export{p as mapObject,o as objectHas,u as objectSet};
@@ -1,7 +1,7 @@
1
- import type { OpenAPIEncoding, OpenAPIMediaType, OpenAPIParameterStyle, OpenAPIRequestBody, OpenAPIResponse, OpenAPISchema, OpenAPIServer, Referenced } from '../types';
2
- import type { ExtendedOpenAPIOperation, OpenAPIParser } from '../services';
3
- import type { FieldModel, GroupModel } from '../models';
4
- import { OpenAPIParameter } from '../types';
1
+ import type { OpenAPIEncoding, OpenAPIMediaType, OpenAPIParameterStyle, OpenAPIRequestBody, OpenAPIResponse, OpenAPISchema, OpenAPIServer, Referenced } from '../types/index.js';
2
+ import type { ExtendedOpenAPIOperation, OpenAPIParser } from '../services/index.js';
3
+ import type { FieldModel, GroupModel } from '../models/index.js';
4
+ import { OpenAPIParameter } from '../types/index.js';
5
5
  export declare function isStatusCode(statusCode: string): boolean;
6
6
  export declare function getStatusCodeType(statusCode: string | number, defaultAsError?: boolean): string;
7
7
  export declare function isOperationName(key: string): boolean;
@@ -1,2 +1 @@
1
- "use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.shortenHTTPVerb=void 0,exports.isStatusCode=isStatusCode,exports.getStatusCodeType=getStatusCodeType,exports.isOperationName=isOperationName,exports.getOperationName=getOperationName,exports.getOperationId=getOperationId,exports.detectType=detectType,exports.isPrimitiveType=isPrimitiveType,exports.isJsonLike=isJsonLike,exports.isXmlLike=isXmlLike,exports.isFormUrlEncoded=isFormUrlEncoded,exports.isMultipartFormData=isMultipartFormData,exports.urlFormEncodePayload=urlFormEncodePayload,exports.serializeQueryParameter=serializeQueryParameter,exports.serializeParameterValueWithMime=serializeParameterValueWithMime,exports.serializeParameterValue=serializeParameterValue,exports.langFromMime=langFromMime,exports.isNamedDefinition=isNamedDefinition,exports.getDefinitionName=getDefinitionName,exports.humanizeNumberRange=humanizeNumberRange,exports.humanizeConstraints=humanizeConstraints,exports.sortByRequired=sortByRequired,exports.sortByDeprecated=sortByDeprecated,exports.mergeParams=mergeParams,exports.normalizeServers=normalizeServers,exports.isRedocExtension=isRedocExtension,exports.extractExtensions=extractExtensions,exports.pluralizeType=pluralizeType,exports.getContentWithLegacyExamples=getContentWithLegacyExamples;const path_1=require("path"),url_template_1=__importDefault(require("url-template")),theme_1=require("@redocly/theme"),helpers_1=require("./helpers"),constants_1=require("../constants"),JsonPointer_1=require("./JsonPointer"),services_1=require("../services"),string_1=require("./string");function isWildcardStatusCode(e){return"string"==typeof e&&/\dxx/i.test(e)}function isStatusCode(e){return"default"===e||(0,helpers_1.isNumeric)(e)||isWildcardStatusCode(e)}function getStatusCodeType(e,r=!1){if("default"===e)return r?"error":"success";let t="string"==typeof e?parseInt(e,10):e;if(isWildcardStatusCode(e)&&(t*=100),t<100||t>599)throw new Error("invalid HTTP code");let i="success";return t>=300&&t<400?i="redirect":t>=400?i="error":t<200&&(i="info"),i}const operationNames={get:!0,post:!0,put:!0,head:!0,patch:!0,delete:!0,options:!0,$ref:!0};function isOperationName(e){return e in operationNames}function getOperationName(e){const{operationId:r,pathName:t}=e,i=(0,helpers_1.normalizeText)((0,helpers_1.getValueFromMdParsedExtension)(e,"description"));return(0,helpers_1.normalizeText)((0,helpers_1.getValueFromMdParsedExtension)(e,"summary"))||r||i&&i.substring(0,50)||t||"<no summary>"}function getOperationId(e,r){var t;return(null==r?void 0:r.id)?(0,services_1.joinWithSeparator)(r.id,(0,helpers_1.sanitizeItemId)(e.operationId?e.operationId:pointerToId(e.pointer))).toLowerCase():(null===(t=e.tags)||void 0===t?void 0:t.length)?(0,helpers_1.sanitizeItemId)(e.operationId?e.operationId:pointerToId(e.pointer)):(0,helpers_1.sanitizeItemId)(e.operationId?(0,services_1.joinWithSeparator)(constants_1.DEFAULT_TAG_SLUG,e.operationId):pointerToId(e.pointer))}function pointerToId(e){return(null==e?void 0:e.startsWith("/"))?e.slice(1,e.length):e}const schemaKeywordTypes={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 detectType(e){if(void 0!==e.type&&!Array.isArray(e.type))return e.type;const r=Object.keys(schemaKeywordTypes);for(const t of r){const r=schemaKeywordTypes[t];if(void 0!==e[t])return r}return"any"}function isPrimitiveType(e,r=e.type){if(e["x-circular-ref"])return!0;if(e["x-complex"])return!0;if(void 0!==e.oneOf||void 0!==e.anyOf)return!1;if(e.if&&e.then||e.if&&e.else)return!1;let t=!0;const i=Array.isArray(r);return("object"===r||i&&(null==r?void 0:r.includes("object")))&&(t=void 0!==e.properties?0===Object.keys(e.properties).length:void 0===e.additionalProperties&&void 0===e.unevaluatedProperties&&void 0===e.patternProperties),!Array.isArray(e.items)&&!Array.isArray(e.prefixItems)&&(void 0!==e.items&&"boolean"!=typeof e.items&&("array"===r||i&&(null==r?void 0:r.includes("array")))&&(t=isPrimitiveType(e.items,e.items.type)),t)}function isJsonLike(e){return-1!==e.search(/json/i)}function isXmlLike(e){return-1!==(null==e?void 0:e.search(/xml/i))}function isFormUrlEncoded(e){return e===constants_1.MediaTypes.URL_ENCODED}function isMultipartFormData(e){return e===constants_1.MediaTypes.MULTIPART}function delimitedEncodeField(e,r,t){return Array.isArray(e)?e.map((e=>e.toString())).join(t):"object"==typeof e?Object.keys(e).map((r=>`${r}${t}${e[r]}`)).join(t):r+"="+e.toString()}function deepObjectEncodeField(e,r){return Array.isArray(e)?(console.warn("deepObject style cannot be used with array value:"+e.toString()),""):"object"==typeof e?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 serializeFormValue(e,r,t){const i="__redoc_param_name__",n=r?"*":"";return url_template_1.default.parse(`{?${i}${n}}`).expand({[i]:t}).substring(1).replace(/__redoc_param_name__/g,e)}function serializeSimpleValue(e,r){const t=e?"*":"",i="__redoc_param_name__",n=url_template_1.default.parse(`{${i}${t}}`);return(0,string_1.tryDecodeURIComponent)(n.expand({[i]:r}))}function urlFormEncodePayload(e,r={}){if(Array.isArray(e))throw new Error("Payload must have fields: "+e.toString());return Object.keys(e).map((t=>{const i=e[t],{style:n="form",explode:o=!0}=r[t]||{};switch(n){case"form":return serializeFormValue(t,o,i);case"spaceDelimited":return delimitedEncodeField(i,t,"%20");case"pipeDelimited":return delimitedEncodeField(i,t,"|");case"deepObject":return deepObjectEncodeField(i,t);default:return console.warn("Incorrect or unsupported encoding style: "+n),""}})).join("&")}function serializePathParameter(e,r,t,i){const n=t?"*":"";let o="";"label"===r?o=".":"matrix"===r&&(o=";");const a="__redoc_param_name__";return url_template_1.default.parse(`{${o}${a}${n}}`).expand({[a]:i}).replace(/__redoc_param_name__/g,e)}function serializeQueryParameter(e,r,t,i){const n=n=>{switch(r){case"form":return serializeFormValue(e,t,n);case"spaceDelimited":return Array.isArray(n)||"object"==typeof n?t?serializeFormValue(e,t,n):delimitedEncodeField(i,e,"%20"):(console.warn("The style spaceDelimited is applicable to arrays or objects"),"");case"pipeDelimited":return Array.isArray(n)||"object"==typeof n?t?serializeFormValue(e,t,n):delimitedEncodeField(i,e,"|"):(console.warn("The style pipeDelimited is applicable to arrays or objects"),"");case"deepObject":return!t||Array.isArray(n)||"object"!=typeof n?(console.warn("The style deepObject is only applicable for objects with explode=true"),""):deepObjectEncodeField(n,e);case"simple":return serializeSimpleValue(t,i);default:return console.warn("Unexpected style for query: "+r),""}};return(0,helpers_1.isArrayOfObjects)(i)&&(i=(0,helpers_1.deleteEmptyArrayItem)(i).map((e=>n(e)))),n(i)}function serializeHeaderParameter(e,r,t){return"simple"===e?serializeSimpleValue(r,t):(console.warn("Unexpected style for header: "+e),"")}function serializeCookieParameter(e,r,t,i){return"form"===r?serializeFormValue(e,t,i):(console.warn("Unexpected style for cookie: "+r),"")}function serializeParameterValueWithMime(e,r){return isJsonLike(r)?JSON.stringify(e):(console.warn(`Parameter serialization as ${r} is not supported`),"")}function serializeParameterValue(e,r){const{name:t,style:i,explode:n=!1,serializationMime:o}=e;if(o)switch(e.in){case"path":case"header":return serializeParameterValueWithMime(r,o);case"cookie":case"query":return`${t}=${serializeParameterValueWithMime(r,o)}`;default:return console.warn("Unexpected parameter location: "+e.in),""}if(!i)return console.warn(`Missing style attribute or content for parameter ${t}`),"";switch(e.in){case"path":return serializePathParameter(t,i,n,r);case"query":return serializeQueryParameter(t,i,n,r);case"header":return serializeHeaderParameter(i,n,r);case"cookie":return serializeCookieParameter(t,i,n,r);default:return console.warn("Unexpected parameter location: "+e.in),""}}function langFromMime(e){return-1!==e.search(/xml/i)?"xml":"clike"}const DEFINITION_NAME_REGEX=/^#\/components\/(schemas|pathItems)\/([^/]+)$/;function isNamedDefinition(e){return DEFINITION_NAME_REGEX.test(e||"")}function getDefinitionName(e){var r;return null===(r=null==e?void 0:e.match(DEFINITION_NAME_REGEX))||void 0===r?void 0:r.pop()}function humanizeMultipleOfConstraint(e){if(void 0===e)return;const r=e.toString(10);return/^0\.0*1$/.test(r)?`decimal places <= ${r.split(".")[1].length}`:`multiple of ${r}`}function humanizeRangeConstraint(e,r,t){let i;return void 0!==r&&void 0!==t?i=r===t?`= ${r} ${e}`:`[ ${r} .. ${t} ] ${e}`:void 0!==t?i=`<= ${t} ${e}`:void 0!==r&&(i=1===r?"non-empty":`>= ${r} ${e}`),i}function humanizeNumberRange(e){var r,t;const i="number"==typeof e.exclusiveMinimum?Math.min(e.exclusiveMinimum,null!==(r=e.minimum)&&void 0!==r?r:1/0):e.minimum,n="number"==typeof e.exclusiveMaximum?Math.max(e.exclusiveMaximum,null!==(t=e.maximum)&&void 0!==t?t:-1/0):e.maximum,o="number"==typeof e.exclusiveMinimum||e.exclusiveMinimum,a="number"==typeof e.exclusiveMaximum||e.exclusiveMaximum;return void 0!==i&&void 0!==n?`${o?"( ":"[ "}${i} .. ${n}${a?" )":" ]"}`:void 0!==n?`${a?"< ":"<= "}${n}`:void 0!==i?`${o?"> ":">= "}${i}`:void 0}function humanizeConstraints(e){const r=[],t=humanizeRangeConstraint("characters",e.minLength,e.maxLength);void 0!==t&&r.push(t);const i=humanizeRangeConstraint("items",e.minItems,e.maxItems);void 0!==i&&r.push(i);const n=humanizeRangeConstraint(1===e.minProperties&&1===e.maxProperties?"property":"properties",e.minProperties,e.maxProperties);void 0!==n&&r.push(n);const o=humanizeMultipleOfConstraint(e.multipleOf);void 0!==o&&r.push(o);const a=humanizeNumberRange(e);return void 0!==a&&r.push(a),e.uniqueItems&&r.push("unique"),r}function sortByRequired(e,r=[]){const t=[],i=[],n=[];return e.forEach((e=>{e.required?r.includes(e.name)?i.push(e):n.push(e):t.push(e)})),i.sort(((e,t)=>r.indexOf(e.name)-r.indexOf(t.name))),[...i,...n,...t]}function sortByDeprecated(e){return e.sort(((e,r)=>Number(e.deprecated)-Number(r.deprecated)))}function mergeParams(e,r=[],t=[],{pathPointer:i,operationPointer:n}){const o={};t.forEach((r=>{({resolved:r}=e.deref(r)),o[r.name+"_"+r.in]=!0}));return[...r.map(((e,r)=>({paramOrRef:e,pointer:JsonPointer_1.JsonPointer.join(i,["parameters",String(r)])}))).filter((({paramOrRef:r})=>(({resolved:r}=e.deref(r)),!o[r.name+"_"+r.in]))),...t.map(((e,r)=>({paramOrRef:e,pointer:JsonPointer_1.JsonPointer.join(n,["parameters",String(r)])})))]}function normalizeServers(e,r){const t=void 0===e?(0,helpers_1.removeQueryStringAndHash)((()=>{if(!theme_1.IS_BROWSER)return globalThis.SSR_HOSTNAME||"";const e=window.location.href;return e.endsWith(".html")?(0,path_1.dirname)(e):e})()):(0,path_1.dirname)(e);return 0===r.length&&(r=[{url:"/"}]),r.map((e=>{return Object.assign(Object.assign({},e),{url:(r=e.url,(0,helpers_1.resolveUrl)(t,r)),description:e.description||""});var r}))}const shortenHTTPVerb=e=>({delete:"del",options:"opts"}[e]||e);function isRedocExtension(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-hideReplay":!0,"x-feedback":!0,"x-badges":!0,"x-assertionType":!0,"x-rbac":!0}||e.startsWith("x-parsed-md-")}function extractExtensions(e,r){return Object.keys(e).filter((e=>!0===r?e.startsWith("x-")&&!isRedocExtension(e):e.startsWith("x-")&&r.indexOf(e)>-1)).reduce(((r,t)=>(r[t]=e[t],r)),{})}function pluralizeType(e){return e.split(" or ").map((e=>e.replace(/^(string|object|number|integer|array|boolean)s?( ?.*)/,"$1s$2"))).join(" or ")}function getContentWithLegacyExamples(e){let r=e.content;const t=e["x-examples"],i=e["x-example"];if(t){r=Object.assign({},r);for(const e of Object.keys(t)){const i=t[e];r[e]=Object.assign(Object.assign({},r[e]),{examples:i})}}else if(i){r=Object.assign({},r);for(const e of Object.keys(i)){const t=i[e];r[e]=Object.assign(Object.assign({},r[e]),{example:t})}}return r}exports.shortenHTTPVerb=shortenHTTPVerb;
2
- //# sourceMappingURL=openapi.js.map
1
+ import{dirname as y}from"path";import f from"url-template";import{IS_BROWSER as M}from"@redocly/theme";import{deleteEmptyArrayItem as E,isArrayOfObjects as T,isNumeric as S,removeQueryStringAndHash as z,resolveUrl as D,sanitizeItemId as m,normalizeText as b,getValueFromMdParsedExtension as g,isAbsoluteUrl as N}from"./helpers.js";import{DEFAULT_TAG_SLUG as R,MediaTypes as j}from"../constants.js";import{JsonPointer as $}from"./JsonPointer.js";import{joinWithSeparator as _}from"../services/index.js";import{tryDecodeURIComponent as F}from"./string.js";import{getUrlDirname as U}from"./url.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 L={get:!0,post:!0,put:!0,head:!0,patch:!0,delete:!0,options:!0,$ref:!0};function oe(e){return e in L}function ue(e){const{operationId:r,pathName:t}=e,n=b(g(e,"description"));return b(g(e,"summary"))||r||n&&n.substring(0,50)||t||"<no summary>"}function se(e,r){return r?.id?_(r.id,m(e.operationId?e.operationId:d(e.pointer))).toLowerCase():e.tags?.length?m(e.operationId?e.operationId:d(e.pointer)):m(e.operationId?_(R,e.operationId):d(e.pointer))}function d(e){return e?.startsWith("/")?e.slice(1,e.length):e}const h={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(h);for(const t of r){const n=h[t];if(e[t]!==void 0)return n}return"any"}function k(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=k(e.items,e.items.type)),t)}function q(e){return e.search(/json/i)!==-1}function ce(e){return e?.search(/xml/i)!==-1}function pe(e){return e===j.URL_ENCODED}function fe(e){return e===j.MULTIPART}function c(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 w(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 a(e,r,t){const n="__redoc_param_name__",i=r?"*":"";return f.parse(`{?${n}${i}}`).expand({[n]:t}).substring(1).replace(/__redoc_param_name__/g,e)}function O(e,r){const t=e?"*":"",n="__redoc_param_name__",i=f.parse(`{${n}${t}}`);return F(i.expand({[n]:r}))}function me(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 a(t,o,n);case"spaceDelimited":return c(n,t,"%20");case"pipeDelimited":return c(n,t,"|");case"deepObject":return w(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 f.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 a(e,t,o);case"spaceDelimited":return!Array.isArray(o)&&typeof o!="object"?(console.warn("The style spaceDelimited is applicable to arrays or objects"),""):t?a(e,t,o):c(n,e,"%20");case"pipeDelimited":return!Array.isArray(o)&&typeof o!="object"?(console.warn("The style pipeDelimited is applicable to arrays or objects"),""):t?a(e,t,o):c(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"),""):w(o,e);case"simple":return O(t,n);default:return console.warn("Unexpected style for query: "+r),""}};return T(n)&&(n=E(n).map(o=>i(o))),i(n)}function C(e,r,t){switch(e){case"simple":return O(r,t);default:return console.warn("Unexpected style for header: "+e),""}}function B(e,r,t,n){switch(r){case"form":return a(e,t,n);default:return console.warn("Unexpected style for cookie: "+r),""}}function A(e,r){return q(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 A(r,o);case"cookie":case"query":return`${t}=${A(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 B(t,n,i,r);default:return console.warn("Unexpected parameter location: "+e.in),""}}function le(e){return e.search(/xml/i)!==-1?"xml":"clike"}const I=/^#\/components\/(schemas|pathItems)\/([^/]+)$/;function xe(e){return I.test(e||"")}function ye(e){return e?.match(I)?.pop()}function G(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 l(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 J(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 be(e){const r=[],t=l("characters",e.minLength,e.maxLength);t!==void 0&&r.push(t);const n=l("items",e.minItems,e.maxItems);n!==void 0&&r.push(n);const i=l(e.minProperties===1&&e.maxProperties===1?"property":"properties",e.minProperties,e.maxProperties);i!==void 0&&r.push(i);const o=G(e.multipleOf);o!==void 0&&r.push(o);const s=J(e);return s!==void 0&&r.push(s),e.uniqueItems&&r.push("unique"),r}function ge(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 je(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,p)=>({paramOrRef:u,pointer:$.join(n,["parameters",String(p)])})).filter(({paramOrRef:u})=>({resolved:u}=e.deref(u),!o[u.name+"_"+u.in])),x=t.map((u,p)=>({paramOrRef:u,pointer:$.join(i,["parameters",String(p)])}));return[...s,...x]}function _e(e,r){const n=e===void 0?z((()=>{if(!M)return globalThis.SSR_HOSTNAME||"";const i=window.location.href;return i.endsWith(".html")?y(i):i})()):N(e)?U(e):y(e);return r.length===0&&(r=[{url:"/"}]),r.map(i=>({...i,url:n?D(n,i.url):i.url,description:i.description||""}))}const Pe=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-hideReplay":!0,"x-feedback":!0,"x-badges":!0,"x-assertionType":!0,"x-rbac":!0}||e.startsWith("x-parsed-md-")}function he(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 we(e){return e.split(" or ").map(r=>r.replace(/^(string|object|number|integer|array|boolean)s?( ?.*)/,"$1s$2")).join(" or ")}function Oe(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,he as extractExtensions,Oe as getContentWithLegacyExamples,ye as getDefinitionName,se as getOperationId,ue as getOperationName,ie as getStatusCodeType,be as humanizeConstraints,J as humanizeNumberRange,pe as isFormUrlEncoded,q as isJsonLike,fe as isMultipartFormData,xe as isNamedDefinition,oe as isOperationName,k as isPrimitiveType,Q as isRedocExtension,ne as isStatusCode,ce as isXmlLike,le as langFromMime,$e as mergeParams,_e as normalizeServers,we as pluralizeType,de as serializeParameterValue,A as serializeParameterValueWithMime,H as serializeQueryParameter,Pe as shortenHTTPVerb,je as sortByDeprecated,ge as sortByRequired,me as urlFormEncodePayload};
@@ -1,2 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getParameterValue=getParameterValue,exports.setParameterValue=setParameterValue;const session_storage_1=require("./session-storage");function getParameterValue(e,r){try{return JSON.parse((0,session_storage_1.fromSessionStorage)(`${e}.${r}`))}catch(e){return null}}function setParameterValue(e,r,t){(0,session_storage_1.toSessionStorage)(`${e}.${r}`,JSON.stringify(t))}
2
- //# sourceMappingURL=parameters.js.map
1
+ import{fromSessionStorage as o,toSessionStorage as a}from"./session-storage.js";function i(r,e){try{return JSON.parse(o(`${r}.${e}`))}catch{return null}}function s(r,e,t){a(`${r}.${e}`,JSON.stringify(t))}export{i as getParameterValue,s as setParameterValue};
package/lib/utils/path.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.pathIncludesLink=pathIncludesLink,exports.pathMatchedLink=pathMatchedLink,exports.normalizePath=normalizePath;const string_1=require("./string");function pathIncludesLink(t,e){return!!e&&(0,string_1.tryDecodeURIComponent)(t.pathname+t.hash).includes((0,string_1.tryDecodeURIComponent)(e.toLowerCase()))}function pathMatchedLink(t,e=""){const n=(0,string_1.tryDecodeURIComponent)(e.toLowerCase());return(0,string_1.tryDecodeURIComponent)(t.pathname)===n||(0,string_1.tryDecodeURIComponent)(t.hash)===n||(0,string_1.tryDecodeURIComponent)(t.pathname+t.hash)===n}function normalizePath(t){return t.startsWith("/")||(t="/"+t),t.endsWith("/")&&(t=t.slice(0,-1)),t}
2
- //# sourceMappingURL=path.js.map
1
+ import{tryDecodeURIComponent as n}from"./string.js";function o(e,r){return r?n(e.pathname+e.hash).includes(n(r.toLowerCase())):!1}function a(e,r=""){const t=n(r.toLowerCase());return n(e.pathname)===t||n(e.hash)===t||n(e.pathname+e.hash)===t}function h(e){return e.startsWith("/")||(e="/"+e),e.endsWith("/")&&(e=e.slice(0,-1)),e}export{h as normalizePath,o as pathIncludesLink,a as pathMatchedLink};
@@ -1,2 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.queryString=void 0;const string_1=require("./string");class QueryString{parse(t){const e={};if(!t)return e;const n=t.startsWith("?")?t.substring(1).split("&"):t.split("&");for(const t of n){const[n,r]=t.split("=");if(n&&r){const t=(0,string_1.tryDecodeURIComponent)(n),o=(0,string_1.tryDecodeURIComponent)(r);if(t in e)Array.isArray(e[t])?e[t].push(o):e[t]=[e[t],o];else{const n=[",","|"].find((t=>o.includes(t)));e[t]=n?o.split(n):o}}}return e}stringify(t,e={encode:!0,sort:!0}){const n=[];for(const[r,o]of Object.entries(t))if(Object.prototype.hasOwnProperty.call(t,r)){const t=e.encode?encodeURIComponent(r):r;if(Array.isArray(o)){for(const r of o)if(r){const o=e.encode?encodeURIComponent(r):r;n.push(`${t}=${o}`)}}else if(o){const r=e.encode?encodeURIComponent(o):o;n.push(`${t}=${r}`)}}return e.sort&&n.sort(),n.join("&")}}const queryString=new QueryString;exports.queryString=queryString;
2
- //# sourceMappingURL=queryString.js.map
1
+ import{tryDecodeURIComponent as d}from"./string.js";class f{parse(n){const e={};if(!n)return e;const r=n.startsWith("?")?n.substring(1).split("&"):n.split("&");for(const c of r){const[t,i]=c.split("=");if(t&&i){const o=d(t),s=d(i);if(o in e)Array.isArray(e[o])?e[o].push(s):e[o]=[e[o],s];else{const a=[",","|"].find(p=>s.includes(p));e[o]=a?s.split(a):s}}}return e}stringify(n,e={encode:!0,sort:!0}){const r=[];for(const[c,t]of Object.entries(n))if(Object.prototype.hasOwnProperty.call(n,c)){const i=e.encode?encodeURIComponent(c):c;if(Array.isArray(t)){for(const o of t)if(o){const s=e.encode?encodeURIComponent(o):o;r.push(`${i}=${s}`)}}else if(t){const o=e.encode?encodeURIComponent(t):t;r.push(`${i}=${o}`)}}return e.sort&&r.sort(),r.join("&")}}const l=new f;export{l as queryString};
@@ -1,2 +1,2 @@
1
- import type { OpenAPIServer } from '../types';
1
+ import type { OpenAPIServer } from '../types/index.js';
2
2
  export declare function replaceVariables(server: OpenAPIServer): string;
@@ -1,2 +1 @@
1
- "use strict";function replaceVariables(e){let{url:r,variables:a}=e;if(a)for(const e in a){const l=a[e];if(l.default){const a=new RegExp(`{${e}}`,"g");r=r.replace(a,l.default)}}return r}Object.defineProperty(exports,"__esModule",{value:!0}),exports.replaceVariables=replaceVariables;
2
- //# sourceMappingURL=replaceVariables.js.map
1
+ function i(t){let{url:e,variables:r}=t;if(r)for(const a in r){const l=r[a];if(l.default){const n=new RegExp(`{${a}}`,"g");e=e.replace(n,l.default)}}return e}export{i as replaceVariables};
@@ -1,2 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.saveTextBeforeHeading=saveTextBeforeHeading;const markdoc_1=require("@markdoc/markdoc"),theme_1=require("@redocly/theme");function saveTextBeforeHeading(e){if(!e)return"";if(!(0,theme_1.isString)(e))return(null==e?void 0:e.result)?{result:modifyNodeByHeading(markdoc_1.Ast.fromJSON(JSON.stringify(e.result)))||"",raw:saveTextBeforeHeading(e.raw)}:e;const r=new RegExp("^#{1,6}?\\s+","m"),i=e.search(r);return i>-1?e.substring(0,i):e}function modifyNodeByHeading(e){if(Array.isArray(e)){const r=e.findIndex((e=>"heading"===e.type));return-1===r?e:e.slice(0,r)}if(!e.children||!Array.isArray(e.children))return;const r=e.children.findIndex((e=>"heading"===e.type));return-1===r||(e.children=e.children.slice(0,r)),e}
2
- //# sourceMappingURL=saveTextBeforeHeading.js.map
1
+ import f from"@markdoc/markdoc";import{isString as d}from"@redocly/theme";function u(r){if(!r)return"";if(!d(r))return r?.result?{result:g(f.Ast.fromJSON(JSON.stringify(r.result)))||"",raw:u(r.raw)}:r;const n=new RegExp("^#{1,6}?\\s+","m"),e=r.search(n);return e>-1?r.substring(0,e):r}function g(r){if(Array.isArray(r)){const e=r.findIndex(i=>i.type==="heading");return e===-1?r:r.slice(0,e)}if(!r.children||!Array.isArray(r.children))return;const n=r.children.findIndex(e=>e.type==="heading");return n===-1||(r.children=r.children.slice(0,n)),r}export{u as saveTextBeforeHeading};
@@ -1,4 +1,4 @@
1
- import type { SecurityDetails } from '../types';
1
+ import type { SecurityDetails } from '../types/index.js';
2
2
  export declare function setSecurityDetailsVariants(name: string, variants: {
3
3
  label: string;
4
4
  details: SecurityDetails | string;
@@ -1,2 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.setSecurityDetailsVariants=setSecurityDetailsVariants,exports.getSecurityDetails=getSecurityDetails,exports.setSecurityDetails=setSecurityDetails;const theme_1=require("@redocly/theme"),string_1=require("./string"),session_storage_1=require("./session-storage");function setSecurityDetailsVariants(e,s){e=(0,string_1.escapeFormId)(e),(0,session_storage_1.toSessionStorage)(`auth.${e}.variants`,JSON.stringify(s))}function getSecurityDetails(e,s={}){return{raw:s[e+theme_1.SecurityVariablesEnvSuffix.APIKey],password:s[e+theme_1.SecurityVariablesEnvSuffix.Password],username:s[e+theme_1.SecurityVariablesEnvSuffix.Username],token:s[e+theme_1.SecurityVariablesEnvSuffix.Token]?{access_token:s[e+theme_1.SecurityVariablesEnvSuffix.Token]}:void 0,client_id:s[e+theme_1.SecurityVariablesEnvSuffix.ClientId],client_secret:s[e+theme_1.SecurityVariablesEnvSuffix.ClientSecret],scopes:(0,session_storage_1.fromSessionStorage)(`auth.${e}.scopes`)}}function setSecurityDetails(e,s){e=(0,string_1.escapeFormId)(e),"string"==typeof s?(0,session_storage_1.toSessionStorage)("auth."+e,s):s&&((0,session_storage_1.toSessionStorage)(`auth.${e}.password`,s.password||""),(0,session_storage_1.toSessionStorage)(`auth.${e}.username`,s.username||""),(0,session_storage_1.toSessionStorage)(`auth.${e}.token`,s.token&&JSON.stringify(s.token)||""),(0,session_storage_1.toSessionStorage)(`auth.${e}.client_id`,s.client_id||""),(0,session_storage_1.toSessionStorage)(`auth.${e}.client_secret`,s.client_secret||""),(0,session_storage_1.toSessionStorage)(`auth.${e}.scopes`,s.scopes&&JSON.stringify(s.scopes)||""))}
2
- //# sourceMappingURL=security-details.js.map
1
+ import{SecurityVariablesEnvSuffix as o}from"@redocly/theme";import{escapeFormId as c}from"./string.js";import{fromSessionStorage as e,toSessionStorage as r}from"./session-storage.js";function p(t,s){t=c(t),r(`auth.${t}.variants`,JSON.stringify(s))}function S(t,s={}){return{raw:s[t+o.APIKey],password:s[t+o.Password],username:s[t+o.Username],token:s[t+o.Token]?{access_token:s[t+o.Token]}:void 0,client_id:s[t+o.ClientId],client_secret:s[t+o.ClientSecret],scopes:e(`auth.${t}.scopes`)}}function h(t,s){t=c(t),typeof s=="string"?r("auth."+t,s):s&&(r(`auth.${t}.password`,s.password||""),r(`auth.${t}.username`,s.username||""),r(`auth.${t}.token`,s.token&&JSON.stringify(s.token)||""),r(`auth.${t}.client_id`,s.client_id||""),r(`auth.${t}.client_secret`,s.client_secret||""),r(`auth.${t}.scopes`,s.scopes&&JSON.stringify(s.scopes)||""))}export{S as getSecurityDetails,h as setSecurityDetails,p as setSecurityDetailsVariants};
@@ -1,2 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.toSessionStorage=toSessionStorage,exports.fromSessionStorage=fromSessionStorage;const theme_1=require("@redocly/theme");function toSessionStorage(e,o){theme_1.IS_BROWSER&&window.sessionStorage.setItem("redoc."+e,o)}function fromSessionStorage(e){return theme_1.IS_BROWSER&&window.sessionStorage.getItem("redoc."+e)||""}
2
- //# sourceMappingURL=session-storage.js.map
1
+ import{IS_BROWSER as e}from"@redocly/theme";function n(o,t){e&&window.sessionStorage.setItem("redoc."+o,t)}function i(o){return e&&window.sessionStorage.getItem("redoc."+o)||""}export{i as fromSessionStorage,n as toSessionStorage};
@@ -1,2 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.simplifyAstStructure=void 0;const simplifyAstStructure=t=>{var e,l;i(t);for(const l of t.walk())i(l),(null===(e=null==l?void 0:l.children)||void 0===e?void 0:e.length)&&(0,exports.simplifyAstStructure)(l);function i(t){(null==t?void 0:t.location)&&delete t.location,void 0===t.tag&&delete t.tag}return"document"===t.type&&(null===(l=null==t?void 0:t.children)||void 0===l?void 0:l.length)?null==t?void 0:t.children:t};exports.simplifyAstStructure=simplifyAstStructure;
2
- //# sourceMappingURL=simplifyAstStructure.js.map
1
+ const i=n=>{t(n);for(const e of n.walk())t(e),e?.children?.length&&i(e);function t(e){e?.location&&delete e.location,e.tag===void 0&&delete e.tag}return n.type==="document"&&n?.children?.length?n?.children:n};export{i as simplifyAstStructure};
package/lib/utils/sort.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";function alphabeticallyByProp(e){let l=1;return"-"===e[0]&&(l=-1,e=e.substr(1)),function(r,t){return-1==l?t[e].localeCompare(r[e]):r[e].localeCompare(t[e])}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.alphabeticallyByProp=alphabeticallyByProp;
2
- //# sourceMappingURL=sort.js.map
1
+ function u(l){let e=1;return l[0]==="-"&&(e=-1,l=l.substr(1)),function(n,a){return e==-1?a[l].localeCompare(n[l]):n[l].localeCompare(a[l])}}export{u as alphabeticallyByProp};
@@ -1,2 +1 @@
1
- "use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.strikethroughText=strikethroughText,exports.escapeFormId=escapeFormId,exports.unescapeFormId=unescapeFormId,exports.encodeBackSlashes=encodeBackSlashes,exports.removePercentChart=removePercentChart,exports.tryDecodeURIComponent=tryDecodeURIComponent,exports.safeSlugify=safeSlugify,exports.safeJsonParse=safeJsonParse;const slugify_1=__importDefault(require("slugify"));function strikethroughText(e){return e.split("").map((e=>e+"̵")).join("")}function escapeFormId(e){return e.replace(/[.[\]]/g,(e=>({".":"%2e","[":"%5b","]":"%5d"}[e]||"")))}function unescapeFormId(e){return e.replace(/%2e|%5b|%5d/g,(e=>({"%2e":".","%5b":"[","%5d":"]"}[e]||"")))}function encodeBackSlashes(e){return e.replace(/\\/g,"%5C")}function removePercentChart(e){return e.replace(/%/g,"")}function tryDecodeURIComponent(e){try{return decodeURIComponent(e)}catch(r){return console.error(`Decoding failed: ${e}`,r),e}}function safeSlugify(e){return(0,slugify_1.default)(e).slice(0,240)||e.toString().toLowerCase().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"").slice(0,240)}function safeJsonParse(e,r={}){try{return JSON.parse(e)}catch(e){return r}}
2
- //# sourceMappingURL=string.js.map
1
+ import t from"slugify";function o(e){return e.split("").map(r=>r+"\u0335").join("")}function c(e){return e.replace(/[.[\]]/g,r=>({".":"%2e","[":"%5b","]":"%5d"})[r]||"")}function p(e){return e.replace(/%2e|%5b|%5d/g,r=>({"%2e":".","%5b":"[","%5d":"]"})[r]||"")}function u(e){return e.replace(/\\/g,"%5C")}function a(e){return e.replace(/%/g,"")}function i(e){try{return decodeURIComponent(e)}catch(r){return console.error(`Decoding failed: ${e}`,r),e}}function f(e){return t(e)||e.toString().toLowerCase().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}function l(e,r={}){try{return JSON.parse(e)}catch{return r}}export{u as encodeBackSlashes,c as escapeFormId,a as removePercentChart,l as safeJsonParse,f as safeSlugify,o as strikethroughText,i as tryDecodeURIComponent,p as unescapeFormId};
@@ -1,2 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.filterPropsDeep=filterPropsDeep;const object_1=require("./object");function traverseComponent(e,o){if(e&&(o(e),e.children))for(const r of e.children)traverseComponent(r,o)}function filterPropsDeep(e,o){return traverseComponent(e,(e=>{if(e.props)for(const r of o)(0,object_1.objectHas)(e.props,r)&&(0,object_1.objectSet)(e.props,r,"<<<filtered>>>")})),e}
2
- //# sourceMappingURL=test-utils.js.map
1
+ import{objectHas as n,objectSet as o}from"./object.js";function t(r,f){if(r&&(f(r),r.children))for(const e of r.children)t(e,f)}function s(r,f){return t(r,e=>{if(e.props)for(const i of f)n(e.props,i)&&o(e.props,i,"<<<filtered>>>")}),r}export{s as filterPropsDeep};
@@ -1,4 +1,3 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getTypographyCssRulesByComponentName=getTypographyCssRulesByComponentName,exports.typography=typography;const styled_components_1=require("styled-components"),typographyProperties=Object.entries({fontSize:"font-size",fontWeight:"font-weight",fontFamily:"font-family",lineHeight:"line-height",color:"text-color",textTransform:"text-transform"});function getTypographyCssRulesByComponentName(e,t){const o={};for(const[n,s]of typographyProperties){const r=`--${e}-${s}`,p=t?`,var(--${t}-${s})`:"";o[n]=`var(${r}${p})`}return o}function typography(e,t){return styled_components_1.css`
2
- ${getTypographyCssRulesByComponentName(e,t)}
3
- `}
4
- //# sourceMappingURL=theme-helpers.js.map
1
+ import{css as a}from"styled-components";const f=Object.entries({fontSize:"font-size",fontWeight:"font-weight",fontFamily:"font-family",lineHeight:"line-height",color:"text-color",textTransform:"text-transform"});function c(o,t){const e={};for(const[n,r]of f){const s=`--${o}-${r}`,i=t?`,var(--${t}-${r})`:"";e[n]=`var(${s}${i})`}return e}function y(o,t){return a`
2
+ ${c(o,t)}
3
+ `}export{c as getTypographyCssRulesByComponentName,y as typography};
@@ -0,0 +1,2 @@
1
+ export declare function urlParse(url: string, slashesDenoteHost?: boolean): URL | null;
2
+ export declare function getUrlDirname(urlLikeString: string): string | undefined;
@@ -0,0 +1 @@
1
+ function s(t,e=!1){let r=t;e&&r.startsWith("//")&&(r="http:"+t);try{return URL?.parse?URL?.parse(r):new URL(r)}catch(n){return console.error(`Invalid URL: ${r}`,n),null}}function o(t){try{const e=new URL(t);let r=e.pathname;if(r.endsWith("/"))return e.origin+r;const n=r.lastIndexOf("/");return n!==-1?(r=r.substring(0,n+1),e.origin+r):e.origin+"/"}catch(e){console.error(`Invalid URL: ${t}`,e);return}}export{o as getUrlDirname,s as urlParse};