@redocly/openapi-docs 3.11.0-next.10 → 3.11.0-next.2

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/bin.js +4 -0
  3. package/dist/redocly-openapi-docs.min.js +10997 -11986
  4. package/lib/components/ApiInfo/ApiInfo.d.ts +1 -1
  5. package/lib/components/ApiInfo/ApiInfo.js +2 -1
  6. package/lib/components/ApiInfo/Metadata.d.ts +1 -1
  7. package/lib/components/ApiInfo/Metadata.js +2 -1
  8. package/lib/components/ApiInfo/index.d.ts +1 -1
  9. package/lib/components/ApiInfo/index.js +2 -1
  10. package/lib/components/ApiInfo/styled.d.ts +4 -4
  11. package/lib/components/ApiInfo/styled.js +9 -8
  12. package/lib/components/CallbackSamples/CallbackSamples.js +5 -4
  13. package/lib/components/CallbackSamples/index.d.ts +1 -1
  14. package/lib/components/CallbackSamples/index.js +2 -1
  15. package/lib/components/Callbacks/CallbackDetails.d.ts +1 -1
  16. package/lib/components/Callbacks/CallbackDetails.js +4 -3
  17. package/lib/components/Callbacks/CallbackOperation.d.ts +1 -1
  18. package/lib/components/Callbacks/CallbackOperation.js +4 -3
  19. package/lib/components/Callbacks/CallbackSummary.d.ts +1 -1
  20. package/lib/components/Callbacks/CallbackSummary.js +4 -3
  21. package/lib/components/Callbacks/CallbacksList.d.ts +1 -1
  22. package/lib/components/Callbacks/CallbacksList.js +2 -1
  23. package/lib/components/Callbacks/index.d.ts +3 -3
  24. package/lib/components/Callbacks/index.js +2 -1
  25. package/lib/components/Callbacks/styled.d.ts +3 -1
  26. package/lib/components/Callbacks/styled.js +3 -2
  27. package/lib/components/Content/Content.d.ts +1 -1
  28. package/lib/components/Content/Content.js +2 -1
  29. package/lib/components/Content/index.d.ts +1 -1
  30. package/lib/components/Content/index.js +2 -1
  31. package/lib/components/Content/useAutoScroll.js +2 -1
  32. package/lib/components/ContentItem/ContentItem.d.ts +1 -1
  33. package/lib/components/ContentItem/ContentItem.js +2 -1
  34. package/lib/components/ContentItem/index.d.ts +1 -1
  35. package/lib/components/ContentItem/index.js +2 -1
  36. package/lib/components/ContentItem/useIsExpanded.d.ts +1 -1
  37. package/lib/components/ContentItem/useIsExpanded.js +2 -1
  38. package/lib/components/ContentItems/ContentItems.d.ts +1 -1
  39. package/lib/components/ContentItems/ContentItems.js +2 -1
  40. package/lib/components/ContentItems/Items.js +2 -1
  41. package/lib/components/ContentItems/VirtualList.d.ts +1 -1
  42. package/lib/components/ContentItems/VirtualList.js +2 -1
  43. package/lib/components/ContentItems/helpers.d.ts +3 -3
  44. package/lib/components/ContentItems/helpers.js +2 -1
  45. package/lib/components/ContentItems/index.d.ts +1 -1
  46. package/lib/components/ContentItems/index.js +2 -1
  47. package/lib/components/ContentItems/useScrollOnRender.d.ts +1 -1
  48. package/lib/components/ContentItems/useScrollOnRender.js +2 -1
  49. package/lib/components/Discriminator/Discriminator.d.ts +1 -1
  50. package/lib/components/Discriminator/Discriminator.js +3 -2
  51. package/lib/components/Discriminator/index.d.ts +1 -1
  52. package/lib/components/Discriminator/index.js +2 -1
  53. package/lib/components/Download/DownloadSpecification.js +5 -4
  54. package/lib/components/Download/index.d.ts +1 -1
  55. package/lib/components/Download/index.js +2 -1
  56. package/lib/components/Download/types.js +2 -0
  57. package/lib/components/Download/useDownloadInfo.d.ts +1 -1
  58. package/lib/components/Download/useDownloadInfo.js +2 -1
  59. package/lib/components/ErrorBoundary/ErrorBoundary.js +3 -2
  60. package/lib/components/ErrorBoundary/index.d.ts +1 -1
  61. package/lib/components/ErrorBoundary/index.js +2 -1
  62. package/lib/components/ExpandAllButton/ExpandAllButton.js +3 -2
  63. package/lib/components/ExpandAllButton/index.d.ts +1 -1
  64. package/lib/components/ExpandAllButton/index.js +2 -1
  65. package/lib/components/ExternalDocumentation/ExternalDocumentation.d.ts +1 -1
  66. package/lib/components/ExternalDocumentation/ExternalDocumentation.js +5 -4
  67. package/lib/components/ExternalDocumentation/index.d.ts +1 -1
  68. package/lib/components/ExternalDocumentation/index.js +2 -1
  69. package/lib/components/Language/LanguageDropdown.d.ts +1 -1
  70. package/lib/components/Language/LanguageDropdown.js +2 -1
  71. package/lib/components/Language/LanguageItem.d.ts +1 -1
  72. package/lib/components/Language/LanguageItem.js +2 -1
  73. package/lib/components/Language/LanguageList.d.ts +1 -1
  74. package/lib/components/Language/LanguageList.js +2 -1
  75. package/lib/components/Language/_tests_/LanguageDropdown.test.js +2 -1
  76. package/lib/components/Language/constants.js +2 -1
  77. package/lib/components/Language/index.d.ts +3 -3
  78. package/lib/components/Language/index.js +2 -1
  79. package/lib/components/Language/styled.d.ts +31 -8
  80. package/lib/components/Language/styled.js +12 -11
  81. package/lib/components/Markdown/Markdown.d.ts +1 -1
  82. package/lib/components/Markdown/Markdown.js +2 -1
  83. package/lib/components/Markdown/index.d.ts +2 -2
  84. package/lib/components/Markdown/index.js +2 -1
  85. package/lib/components/Markdown/types.js +2 -0
  86. package/lib/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +2 -2
  87. package/lib/components/MediaTypeSwitch/MediaTypesSwitch.js +2 -1
  88. package/lib/components/MediaTypeSwitch/index.d.ts +1 -1
  89. package/lib/components/MediaTypeSwitch/index.js +2 -1
  90. package/lib/components/OperationItem/Description.d.ts +1 -1
  91. package/lib/components/OperationItem/Description.js +2 -1
  92. package/lib/components/OperationItem/OperationItem.d.ts +3 -1
  93. package/lib/components/OperationItem/OperationItem.js +6 -5
  94. package/lib/components/OperationItem/_tests_/OperationItem.test.js +2 -1
  95. package/lib/components/OperationItem/_tests_/__mocks__/mock-intersection-observer.js +2 -1
  96. package/lib/components/OperationItem/index.d.ts +2 -2
  97. package/lib/components/OperationItem/index.js +2 -1
  98. package/lib/components/OperationItem/types.d.ts +1 -1
  99. package/lib/components/OperationItem/types.js +2 -0
  100. package/lib/components/Overlay.d.ts +1 -1
  101. package/lib/components/Overlay.js +4 -3
  102. package/lib/components/Overview/Overview.d.ts +1 -1
  103. package/lib/components/Overview/Overview.js +2 -1
  104. package/lib/components/Overview/index.d.ts +1 -1
  105. package/lib/components/Overview/index.js +2 -1
  106. package/lib/components/PageFooter/PageFooter.js +2 -1
  107. package/lib/components/PageFooter/index.d.ts +1 -1
  108. package/lib/components/PageFooter/index.js +2 -1
  109. package/lib/components/Panel/ResponsePanel.d.ts +3 -2
  110. package/lib/components/Panel/ResponsePanel.js +7 -6
  111. package/lib/components/Panel/Trigger.d.ts +1 -1
  112. package/lib/components/Panel/Trigger.js +3 -2
  113. package/lib/components/Panel/index.d.ts +2 -2
  114. package/lib/components/Panel/index.js +2 -1
  115. package/lib/components/PanelItem/PanelItem.js +2 -1
  116. package/lib/components/PanelItem/index.d.ts +2 -2
  117. package/lib/components/PanelItem/index.js +2 -1
  118. package/lib/components/PanelItem/styled.d.ts +16 -8
  119. package/lib/components/PanelItem/styled.js +10 -9
  120. package/lib/components/PayloadSamples/Example.d.ts +1 -1
  121. package/lib/components/PayloadSamples/Example.js +2 -1
  122. package/lib/components/PayloadSamples/ExampleValue.d.ts +1 -1
  123. package/lib/components/PayloadSamples/ExampleValue.js +2 -1
  124. package/lib/components/PayloadSamples/MediaTypeSamples.d.ts +1 -1
  125. package/lib/components/PayloadSamples/MediaTypeSamples.js +3 -2
  126. package/lib/components/PayloadSamples/PayloadSamples.d.ts +1 -1
  127. package/lib/components/PayloadSamples/PayloadSamples.js +2 -1
  128. package/lib/components/PayloadSamples/index.d.ts +5 -6
  129. package/lib/components/PayloadSamples/index.js +2 -1
  130. package/lib/components/PayloadSamples/styled.d.ts +4 -3
  131. package/lib/components/PayloadSamples/styled.js +5 -4
  132. package/lib/components/PayloadSamples/types.d.ts +3 -3
  133. package/lib/components/PayloadSamples/types.js +2 -0
  134. package/lib/components/PropertyDetails/DescriptionEnums.d.ts +1 -1
  135. package/lib/components/PropertyDetails/DescriptionEnums.js +4 -3
  136. package/lib/components/PropertyDetails/EnumValues.d.ts +1 -1
  137. package/lib/components/PropertyDetails/EnumValues.js +2 -1
  138. package/lib/components/PropertyDetails/Examples.d.ts +1 -1
  139. package/lib/components/PropertyDetails/Examples.js +2 -1
  140. package/lib/components/PropertyDetails/Extensions.d.ts +1 -1
  141. package/lib/components/PropertyDetails/Extensions.js +3 -2
  142. package/lib/components/PropertyDetails/FieldDetail.js +3 -2
  143. package/lib/components/PropertyDetails/FieldDetails.d.ts +1 -1
  144. package/lib/components/PropertyDetails/FieldDetails.js +7 -6
  145. package/lib/components/PropertyDetails/Pattern.js +2 -1
  146. package/lib/components/PropertyDetails/PlusCircleIcon.js +5 -4
  147. package/lib/components/PropertyDetails/PropertyDetails.d.ts +1 -1
  148. package/lib/components/PropertyDetails/PropertyDetails.js +3 -2
  149. package/lib/components/PropertyDetails/SchemaTypeInfo.js +3 -2
  150. package/lib/components/PropertyDetails/SimpleEnums.d.ts +1 -1
  151. package/lib/components/PropertyDetails/SimpleEnums.js +3 -2
  152. package/lib/components/PropertyDetails/cycleColorsByLevel.js +2 -1
  153. package/lib/components/PropertyDetails/index.d.ts +3 -3
  154. package/lib/components/PropertyDetails/index.js +2 -1
  155. package/lib/components/PropertyDetails/styled.d.ts +6 -6
  156. package/lib/components/PropertyDetails/styled.js +8 -7
  157. package/lib/components/PropertyDetails/types.d.ts +2 -3
  158. package/lib/components/PropertyDetails/types.js +2 -0
  159. package/lib/components/RedoclyOpenAPIDocs/Providers.d.ts +3 -2
  160. package/lib/components/RedoclyOpenAPIDocs/Providers.js +2 -1
  161. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.d.ts +3 -2
  162. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.js +2 -1
  163. package/lib/components/RedoclyOpenAPIDocs/index.d.ts +4 -4
  164. package/lib/components/RedoclyOpenAPIDocs/index.js +2 -1
  165. package/lib/components/RedoclyOpenAPIDocs/styled.d.ts +1 -1
  166. package/lib/components/RedoclyOpenAPIDocs/styled.js +3 -2
  167. package/lib/components/RedoclyOpenAPIDocs/types.d.ts +3 -3
  168. package/lib/components/RedoclyOpenAPIDocs/types.js +2 -0
  169. package/lib/components/RedoclyOpenAPIDocs/utils.d.ts +4 -1
  170. package/lib/components/RedoclyOpenAPIDocs/utils.js +2 -1
  171. package/lib/components/RenderHook/RenderHook.d.ts +2 -2
  172. package/lib/components/RenderHook/RenderHook.js +2 -1
  173. package/lib/components/RenderHook/index.d.ts +1 -1
  174. package/lib/components/RenderHook/index.js +2 -1
  175. package/lib/components/Replay/EmbeddedReplay.d.ts +1 -1
  176. package/lib/components/Replay/EmbeddedReplay.js +4 -3
  177. package/lib/components/Replay/Replay.d.ts +1 -1
  178. package/lib/components/Replay/Replay.js +2 -1
  179. package/lib/components/Replay/index.d.ts +2 -2
  180. package/lib/components/Replay/index.js +2 -1
  181. package/lib/components/Replay/utils.d.ts +4 -4
  182. package/lib/components/Replay/utils.js +2 -1
  183. package/lib/components/Request/RequestDetails.d.ts +1 -1
  184. package/lib/components/Request/RequestDetails.js +3 -2
  185. package/lib/components/Request/types.js +2 -0
  186. package/lib/components/RequestParameters/Body.d.ts +1 -1
  187. package/lib/components/RequestParameters/Body.js +2 -1
  188. package/lib/components/RequestParameters/ParametersGroup.d.ts +1 -1
  189. package/lib/components/RequestParameters/ParametersGroup.js +5 -4
  190. package/lib/components/RequestParameters/RequestParameters.d.ts +1 -1
  191. package/lib/components/RequestParameters/RequestParameters.js +2 -1
  192. package/lib/components/RequestParameters/index.d.ts +2 -3
  193. package/lib/components/RequestParameters/index.js +2 -1
  194. package/lib/components/RequestSamples/CodeSample.d.ts +3 -3
  195. package/lib/components/RequestSamples/CodeSample.js +3 -2
  196. package/lib/components/RequestSamples/Example.d.ts +1 -1
  197. package/lib/components/RequestSamples/Example.js +2 -1
  198. package/lib/components/RequestSamples/RequestSamples.d.ts +2 -2
  199. package/lib/components/RequestSamples/RequestSamples.js +6 -5
  200. package/lib/components/RequestSamples/index.d.ts +2 -2
  201. package/lib/components/RequestSamples/index.js +2 -1
  202. package/lib/components/RequestSamples/useCodeSamples.d.ts +3 -3
  203. package/lib/components/RequestSamples/useCodeSamples.js +2 -1
  204. package/lib/components/ResponseSamples/ResponseSamples.d.ts +2 -2
  205. package/lib/components/ResponseSamples/ResponseSamples.js +2 -1
  206. package/lib/components/ResponseSamples/Summary.js +2 -1
  207. package/lib/components/ResponseSamples/index.d.ts +1 -1
  208. package/lib/components/ResponseSamples/index.js +2 -1
  209. package/lib/components/Responses/OperationResponseList.d.ts +3 -3
  210. package/lib/components/Responses/OperationResponseList.js +3 -2
  211. package/lib/components/Responses/ResponseDetails.d.ts +1 -1
  212. package/lib/components/Responses/ResponseDetails.js +2 -1
  213. package/lib/components/Responses/ResponseHeaders.d.ts +1 -1
  214. package/lib/components/Responses/ResponseHeaders.js +2 -1
  215. package/lib/components/Responses/index.d.ts +3 -5
  216. package/lib/components/Responses/index.js +2 -1
  217. package/lib/components/Responses/styled.d.ts +5 -5
  218. package/lib/components/Responses/styled.js +7 -6
  219. package/lib/components/Responses/types.d.ts +1 -1
  220. package/lib/components/Responses/types.js +2 -0
  221. package/lib/components/RightPanel/RightPanel.d.ts +1 -1
  222. package/lib/components/RightPanel/RightPanel.js +2 -1
  223. package/lib/components/RightPanel/index.d.ts +1 -1
  224. package/lib/components/RightPanel/index.js +2 -1
  225. package/lib/components/Samples/ExampleSwitch.d.ts +1 -1
  226. package/lib/components/Samples/ExampleSwitch.js +2 -1
  227. package/lib/components/Samples/index.d.ts +2 -2
  228. package/lib/components/Samples/index.js +2 -1
  229. package/lib/components/Samples/use-example-key.d.ts +1 -1
  230. package/lib/components/Samples/use-example-key.js +2 -1
  231. package/lib/components/Schema/ArraySchema.d.ts +1 -1
  232. package/lib/components/Schema/ArraySchema.js +2 -1
  233. package/lib/components/Schema/ObjectSchema.d.ts +1 -1
  234. package/lib/components/Schema/ObjectSchema.js +2 -1
  235. package/lib/components/Schema/OneOfSchema.d.ts +2 -11
  236. package/lib/components/Schema/OneOfSchema.js +4 -3
  237. package/lib/components/Schema/RecursiveSchema.d.ts +1 -1
  238. package/lib/components/Schema/RecursiveSchema.js +2 -1
  239. package/lib/components/Schema/Schema.d.ts +1 -1
  240. package/lib/components/Schema/Schema.js +3 -2
  241. package/lib/components/Schema/SubSchema.js +2 -1
  242. package/lib/components/Schema/helpers.d.ts +1 -1
  243. package/lib/components/Schema/helpers.js +2 -1
  244. package/lib/components/Schema/index.d.ts +5 -5
  245. package/lib/components/Schema/index.js +2 -1
  246. package/lib/components/Schema/types.d.ts +1 -7
  247. package/lib/components/Schema/types.js +2 -0
  248. package/lib/components/Schema/useOneOfLocationIdx.d.ts +1 -1
  249. package/lib/components/Schema/useOneOfLocationIdx.js +2 -1
  250. package/lib/components/SchemaDefinition/SchemaDefinition.js +3 -2
  251. package/lib/components/SchemaDefinition/index.d.ts +1 -1
  252. package/lib/components/SchemaDefinition/index.js +2 -1
  253. package/lib/components/SectionContent/SectionContent.d.ts +10 -3
  254. package/lib/components/SectionContent/SectionContent.js +7 -6
  255. package/lib/components/SectionContent/index.d.ts +1 -1
  256. package/lib/components/SectionContent/index.js +2 -1
  257. package/lib/components/SectionItem/SectionItem.d.ts +1 -1
  258. package/lib/components/SectionItem/SectionItem.js +2 -1
  259. package/lib/components/SectionItem/index.d.ts +1 -1
  260. package/lib/components/SectionItem/index.js +2 -1
  261. package/lib/components/Security/Divider.js +3 -2
  262. package/lib/components/Security/OAuthFlow.d.ts +1 -1
  263. package/lib/components/Security/OAuthFlow.js +2 -1
  264. package/lib/components/Security/OAuthScopes.d.ts +2 -2
  265. package/lib/components/Security/OAuthScopes.js +10 -9
  266. package/lib/components/Security/Security.d.ts +1 -1
  267. package/lib/components/Security/Security.js +2 -1
  268. package/lib/components/Security/SecurityButton.d.ts +1 -1
  269. package/lib/components/Security/SecurityButton.js +8 -7
  270. package/lib/components/Security/SecurityFlow.d.ts +1 -1
  271. package/lib/components/Security/SecurityFlow.js +5 -4
  272. package/lib/components/Security/SecurityModal.d.ts +1 -1
  273. package/lib/components/Security/SecurityModal.js +6 -5
  274. package/lib/components/Security/SecuritySchemeItem.js +5 -4
  275. package/lib/components/Security/helper.d.ts +1 -1
  276. package/lib/components/Security/helper.js +2 -1
  277. package/lib/components/Security/index.d.ts +1 -10
  278. package/lib/components/Security/index.js +2 -1
  279. package/lib/components/Security/styled.d.ts +2 -2
  280. package/lib/components/Security/styled.js +4 -3
  281. package/lib/components/SelectOrLabel/SelectOrLabel.d.ts +1 -1
  282. package/lib/components/SelectOrLabel/SelectOrLabel.js +3 -2
  283. package/lib/components/SelectOrLabel/index.d.ts +1 -1
  284. package/lib/components/SelectOrLabel/index.js +2 -1
  285. package/lib/components/ServerList/ServerList.d.ts +1 -1
  286. package/lib/components/ServerList/ServerList.js +11 -10
  287. package/lib/components/ServerList/index.d.ts +1 -1
  288. package/lib/components/ServerList/index.js +2 -1
  289. package/lib/components/ServerList/types.d.ts +1 -1
  290. package/lib/components/ServerList/types.js +2 -0
  291. package/lib/components/ServerListDropdown/ServerListDropdown.d.ts +1 -1
  292. package/lib/components/ServerListDropdown/ServerListDropdown.js +2 -1
  293. package/lib/components/ServerListDropdown/index.d.ts +1 -1
  294. package/lib/components/ServerListDropdown/index.js +2 -1
  295. package/lib/components/ServerListDropdown/styled.d.ts +5 -4
  296. package/lib/components/ServerListDropdown/styled.js +7 -6
  297. package/lib/components/SideMenu/SideMenu.d.ts +2 -2
  298. package/lib/components/SideMenu/SideMenu.js +3 -2
  299. package/lib/components/SideMenu/hooks/useMenuItems.d.ts +2 -2
  300. package/lib/components/SideMenu/hooks/useMenuItems.js +2 -1
  301. package/lib/components/SideMenu/index.d.ts +1 -1
  302. package/lib/components/SideMenu/index.js +2 -1
  303. package/lib/components/SideMenu/types.d.ts +1 -1
  304. package/lib/components/SideMenu/types.js +2 -0
  305. package/lib/components/StickySidebar/SidebarActions.js +3 -2
  306. package/lib/components/StickySidebar/StickyResponsiveSidebar.js +4 -3
  307. package/lib/components/StickySidebar/index.d.ts +1 -1
  308. package/lib/components/StickySidebar/index.js +2 -1
  309. package/lib/components/Tabs/Tabs.d.ts +1 -1
  310. package/lib/components/Tabs/Tabs.js +6 -5
  311. package/lib/components/Tabs/index.d.ts +2 -2
  312. package/lib/components/Tabs/index.js +2 -1
  313. package/lib/components/Tabs/useTabsState.d.ts +1 -1
  314. package/lib/components/Tabs/useTabsState.js +2 -1
  315. package/lib/components/TagItem/OperationNavigationItems.d.ts +1 -1
  316. package/lib/components/TagItem/OperationNavigationItems.js +5 -4
  317. package/lib/components/TagItem/OperationsNavigation.d.ts +1 -1
  318. package/lib/components/TagItem/OperationsNavigation.js +3 -2
  319. package/lib/components/TagItem/TagItem.d.ts +1 -1
  320. package/lib/components/TagItem/TagItem.js +8 -7
  321. package/lib/components/TagItem/index.d.ts +1 -1
  322. package/lib/components/TagItem/index.js +2 -1
  323. package/lib/components/TagItem/styled.d.ts +1 -1
  324. package/lib/components/TagItem/styled.js +3 -2
  325. package/lib/components/TagItem/types.d.ts +1 -1
  326. package/lib/components/TagItem/types.js +2 -0
  327. package/lib/components/ViewNested/ViewNested.js +8 -7
  328. package/lib/components/ViewNested/index.d.ts +1 -1
  329. package/lib/components/ViewNested/index.js +2 -1
  330. package/lib/components/common/Badges.d.ts +7 -3
  331. package/lib/components/common/Badges.js +5 -4
  332. package/lib/components/common/BodyContent/BodyContent.d.ts +1 -1
  333. package/lib/components/common/BodyContent/BodyContent.js +5 -4
  334. package/lib/components/common/BodyContent/index.d.ts +1 -1
  335. package/lib/components/common/BodyContent/index.js +2 -1
  336. package/lib/components/common/ClearButton/ClearButton.d.ts +1 -1
  337. package/lib/components/common/ClearButton/ClearButton.js +2 -1
  338. package/lib/components/common/ClearButton/index.d.ts +2 -2
  339. package/lib/components/common/ClearButton/index.js +2 -1
  340. package/lib/components/common/ClearButton/styled.d.ts +1 -1
  341. package/lib/components/common/ClearButton/styled.js +3 -2
  342. package/lib/components/common/ClearButton/types.js +2 -0
  343. package/lib/components/common/CodeBlockPanel.d.ts +2 -1
  344. package/lib/components/common/CodeBlockPanel.js +4 -3
  345. package/lib/components/common/ConstraintsView.js +3 -2
  346. package/lib/components/common/Dropdown/Dropdown.js +5 -4
  347. package/lib/components/common/Dropdown/index.d.ts +2 -2
  348. package/lib/components/common/Dropdown/index.js +2 -1
  349. package/lib/components/common/ExpandableExample/ExpandableExample.js +4 -3
  350. package/lib/components/common/ExpandableExample/index.d.ts +1 -1
  351. package/lib/components/common/ExpandableExample/index.js +2 -1
  352. package/lib/components/common/Extensions.js +3 -2
  353. package/lib/components/common/Fields/fields-layout.d.ts +14 -8
  354. package/lib/components/common/Fields/fields-layout.js +50 -57
  355. package/lib/components/common/Fields/fields.d.ts +38 -17
  356. package/lib/components/common/Fields/fields.js +18 -17
  357. package/lib/components/common/Fields/index.d.ts +2 -2
  358. package/lib/components/common/Fields/index.js +2 -1
  359. package/lib/components/common/LinkToField.d.ts +5 -2
  360. package/lib/components/common/LinkToField.js +7 -6
  361. package/lib/components/common/OperationItemTitle.d.ts +2 -2
  362. package/lib/components/common/OperationItemTitle.js +6 -5
  363. package/lib/components/common/SchemaSelection/SchemaSelection.d.ts +1 -1
  364. package/lib/components/common/SchemaSelection/SchemaSelection.js +2 -1
  365. package/lib/components/common/SchemaSelection/index.d.ts +1 -1
  366. package/lib/components/common/SchemaSelection/index.js +2 -1
  367. package/lib/components/common/Select/Select.d.ts +1 -1
  368. package/lib/components/common/Select/Select.js +2 -1
  369. package/lib/components/common/Select/index.d.ts +2 -2
  370. package/lib/components/common/Select/index.js +2 -1
  371. package/lib/components/common/Select/styled.d.ts +22 -4
  372. package/lib/components/common/Select/styled.js +13 -12
  373. package/lib/components/common/Select/types.js +2 -0
  374. package/lib/components/common/Skeleton/LanguageListSkeleton.js +7 -6
  375. package/lib/components/common/Skeleton/Skeleton.d.ts +3 -1
  376. package/lib/components/common/Skeleton/Skeleton.js +6 -5
  377. package/lib/components/common/Skeleton/index.d.ts +1 -2
  378. package/lib/components/common/Skeleton/index.js +2 -1
  379. package/lib/components/common/headers.d.ts +1 -1
  380. package/lib/components/common/headers.js +3 -2
  381. package/lib/components/common/index.d.ts +14 -14
  382. package/lib/components/common/index.js +2 -1
  383. package/lib/components/common/linkify.d.ts +1 -1
  384. package/lib/components/common/linkify.js +5 -4
  385. package/lib/components/common/mixins.js +3 -2
  386. package/lib/components/common/panels.d.ts +17 -4
  387. package/lib/components/common/panels.js +28 -27
  388. package/lib/components/common/schema.d.ts +7 -4
  389. package/lib/components/common/schema.js +9 -8
  390. package/lib/components/common/styled.d.ts +7 -6
  391. package/lib/components/common/styled.js +8 -7
  392. package/lib/components/index.d.ts +23 -23
  393. package/lib/components/index.js +2 -1
  394. package/lib/components/pluggable/RedocExample.d.ts +1 -1
  395. package/lib/components/pluggable/RedocExample.js +2 -1
  396. package/lib/components/pluggable/RedocSchema.d.ts +2 -4
  397. package/lib/components/pluggable/RedocSchema.js +2 -1
  398. package/lib/components/pluggable/index.d.ts +2 -2
  399. package/lib/components/pluggable/index.js +2 -1
  400. package/lib/components/pluggable/styled.components.d.ts +7 -3
  401. package/lib/components/pluggable/styled.components.js +5 -4
  402. package/lib/constants.js +2 -1
  403. package/lib/empty.d.ts +2 -5
  404. package/lib/empty.js +2 -1
  405. package/lib/events/codeSampleCopy.d.ts +1 -1
  406. package/lib/events/codeSampleCopy.js +2 -1
  407. package/lib/events/creator.d.ts +1 -1
  408. package/lib/events/creator.js +2 -1
  409. package/lib/events/index.d.ts +8 -8
  410. package/lib/events/index.js +2 -1
  411. package/lib/events/languageSwitch.d.ts +1 -1
  412. package/lib/events/languageSwitch.js +2 -1
  413. package/lib/events/panelToggle.d.ts +1 -1
  414. package/lib/events/panelToggle.js +2 -1
  415. package/lib/events/serverSwitch.d.ts +1 -1
  416. package/lib/events/serverSwitch.js +2 -1
  417. package/lib/events/tryItOpen.d.ts +1 -1
  418. package/lib/events/tryItOpen.js +2 -1
  419. package/lib/events/tryItSent.d.ts +1 -1
  420. package/lib/events/tryItSent.js +2 -1
  421. package/lib/events/types.d.ts +1 -1
  422. package/lib/events/types.js +2 -1
  423. package/lib/hoc/types.d.ts +3 -3
  424. package/lib/hoc/types.js +2 -0
  425. package/lib/hoc/utils.js +2 -1
  426. package/lib/hoc/withRouter.d.ts +1 -1
  427. package/lib/hoc/withRouter.js +2 -1
  428. package/lib/hoc/withStore.d.ts +1 -1
  429. package/lib/hoc/withStore.js +2 -1
  430. package/lib/hooks/index.d.ts +8 -8
  431. package/lib/hooks/index.js +2 -1
  432. package/lib/hooks/useActivateExample.d.ts +1 -1
  433. package/lib/hooks/useActivateExample.js +2 -1
  434. package/lib/hooks/useActiveWithFallback.js +2 -1
  435. package/lib/hooks/useContentItems.d.ts +2 -2
  436. package/lib/hooks/useContentItems.js +2 -1
  437. package/lib/hooks/useLicense.d.ts +1 -1
  438. package/lib/hooks/useLicense.js +2 -1
  439. package/lib/hooks/usePerformanceMetrics.js +2 -1
  440. package/lib/hooks/useRouter.d.ts +1 -1
  441. package/lib/hooks/useRouter.js +2 -1
  442. package/lib/hooks/useTelemetry.js +2 -1
  443. package/lib/hooks/useTranslate.js +2 -1
  444. package/lib/hooks/useUppercase2LowercaseRedirect.js +2 -1
  445. package/lib/icons/CSharpIcon/CSharpIcon.d.ts +3 -1
  446. package/lib/icons/CSharpIcon/CSharpIcon.js +2 -1
  447. package/lib/icons/CSharpIcon/index.d.ts +1 -1
  448. package/lib/icons/CSharpIcon/index.js +2 -1
  449. package/lib/icons/CurlIcon/CurlIcon.d.ts +3 -1
  450. package/lib/icons/CurlIcon/CurlIcon.js +3 -2
  451. package/lib/icons/CurlIcon/index.d.ts +1 -1
  452. package/lib/icons/CurlIcon/index.js +2 -1
  453. package/lib/icons/GOIcon/GOIcon.d.ts +3 -1
  454. package/lib/icons/GOIcon/GOIcon.js +2 -1
  455. package/lib/icons/GOIcon/index.d.ts +1 -1
  456. package/lib/icons/GOIcon/index.js +2 -1
  457. package/lib/icons/JavaIcon/JavaIcon.d.ts +3 -1
  458. package/lib/icons/JavaIcon/JavaIcon.js +2 -1
  459. package/lib/icons/JavaIcon/index.d.ts +1 -1
  460. package/lib/icons/JavaIcon/index.js +2 -1
  461. package/lib/icons/JavaScriptIcon/JavaScriptIcon.d.ts +3 -1
  462. package/lib/icons/JavaScriptIcon/JavaScriptIcon.js +2 -1
  463. package/lib/icons/JavaScriptIcon/index.d.ts +1 -1
  464. package/lib/icons/JavaScriptIcon/index.js +2 -1
  465. package/lib/icons/NodeJSIcon/NodeJSIcon.d.ts +3 -1
  466. package/lib/icons/NodeJSIcon/NodeJSIcon.js +2 -1
  467. package/lib/icons/NodeJSIcon/index.d.ts +1 -1
  468. package/lib/icons/NodeJSIcon/index.js +2 -1
  469. package/lib/icons/PHPIcon/PHPIcon.d.ts +3 -1
  470. package/lib/icons/PHPIcon/PHPIcon.js +2 -1
  471. package/lib/icons/PHPIcon/index.d.ts +1 -1
  472. package/lib/icons/PHPIcon/index.js +2 -1
  473. package/lib/icons/PayloadIcon/PayloadIcon.d.ts +3 -1
  474. package/lib/icons/PayloadIcon/PayloadIcon.js +2 -1
  475. package/lib/icons/PayloadIcon/index.d.ts +1 -1
  476. package/lib/icons/PayloadIcon/index.js +2 -1
  477. package/lib/icons/PythonIcon/PythonIcon.d.ts +3 -1
  478. package/lib/icons/PythonIcon/PythonIcon.js +2 -1
  479. package/lib/icons/PythonIcon/index.d.ts +1 -1
  480. package/lib/icons/PythonIcon/index.js +2 -1
  481. package/lib/icons/RIcon/RIcon.d.ts +3 -1
  482. package/lib/icons/RIcon/RIcon.js +2 -1
  483. package/lib/icons/RIcon/index.d.ts +1 -1
  484. package/lib/icons/RIcon/index.js +2 -1
  485. package/lib/icons/RubyIcon/RubyIcon.d.ts +3 -1
  486. package/lib/icons/RubyIcon/RubyIcon.js +2 -1
  487. package/lib/icons/RubyIcon/index.d.ts +1 -1
  488. package/lib/icons/RubyIcon/index.js +2 -1
  489. package/lib/index.d.ts +43 -52
  490. package/lib/index.js +2 -1
  491. package/lib/jotai/app.d.ts +2 -2
  492. package/lib/jotai/app.js +2 -1
  493. package/lib/jotai/operation.js +2 -1
  494. package/lib/jotai/replay.d.ts +1 -1
  495. package/lib/jotai/replay.js +2 -1
  496. package/lib/jotai/store.d.ts +1 -1
  497. package/lib/jotai/store.js +2 -1
  498. package/lib/jotai/use-write-atom.js +2 -1
  499. package/lib/models/callback.d.ts +3 -3
  500. package/lib/models/callback.js +2 -1
  501. package/lib/models/code-sample-options.d.ts +2 -2
  502. package/lib/models/code-sample-options.js +2 -0
  503. package/lib/models/example.d.ts +3 -3
  504. package/lib/models/example.js +2 -1
  505. package/lib/models/field.d.ts +3 -3
  506. package/lib/models/field.js +2 -1
  507. package/lib/models/group.d.ts +3 -3
  508. package/lib/models/group.js +2 -1
  509. package/lib/models/index.d.ts +15 -15
  510. package/lib/models/index.js +2 -1
  511. package/lib/models/mediaContent.d.ts +2 -2
  512. package/lib/models/mediaContent.js +2 -1
  513. package/lib/models/mediaType.d.ts +3 -3
  514. package/lib/models/mediaType.js +2 -1
  515. package/lib/models/operation.d.ts +3 -3
  516. package/lib/models/operation.js +2 -1
  517. package/lib/models/request.d.ts +3 -3
  518. package/lib/models/request.js +2 -1
  519. package/lib/models/response.d.ts +3 -3
  520. package/lib/models/response.js +2 -1
  521. package/lib/models/schema.d.ts +3 -3
  522. package/lib/models/schema.js +2 -2
  523. package/lib/models/security.d.ts +3 -3
  524. package/lib/models/security.js +2 -1
  525. package/lib/models/tab.js +2 -0
  526. package/lib/models/types.d.ts +4 -4
  527. package/lib/models/types.js +2 -0
  528. package/lib/services/OpenAPIParser.d.ts +3 -3
  529. package/lib/services/OpenAPIParser.js +2 -1
  530. package/lib/services/check.js +2 -1
  531. package/lib/services/code-samples/constants.d.ts +1 -1
  532. package/lib/services/code-samples/constants.js +2 -1
  533. package/lib/services/code-samples/generator.d.ts +3 -3
  534. package/lib/services/code-samples/generator.js +2 -1
  535. package/lib/services/code-samples/httpsnippet/helpers/code-builder.d.ts +2 -2
  536. package/lib/services/code-samples/httpsnippet/helpers/code-builder.js +2 -3
  537. package/lib/services/code-samples/httpsnippet/helpers/code-helpers.d.ts +2 -2
  538. package/lib/services/code-samples/httpsnippet/helpers/code-helpers.js +2 -2
  539. package/lib/services/code-samples/httpsnippet/helpers/constants.js +2 -1
  540. package/lib/services/code-samples/httpsnippet/helpers/lodash-int.js +2 -1
  541. package/lib/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.js +2 -37
  542. package/lib/services/code-samples/httpsnippet/helpers/reducer.js +2 -1
  543. package/lib/services/code-samples/httpsnippet/helpers/shell.js +2 -1
  544. package/lib/services/code-samples/httpsnippet/helpers/string-utility.js +2 -1
  545. package/lib/services/code-samples/httpsnippet/index.d.ts +6 -12
  546. package/lib/services/code-samples/httpsnippet/index.js +2 -1
  547. package/lib/services/code-samples/httpsnippet/targets/__mocks__/mock.js +2 -146
  548. package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.d.ts +2 -2
  549. package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.js +2 -2
  550. package/lib/services/code-samples/httpsnippet/targets/csharp/index.d.ts +1 -1
  551. package/lib/services/code-samples/httpsnippet/targets/csharp/index.js +2 -1
  552. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.d.ts +2 -2
  553. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.js +2 -2
  554. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.d.ts +1 -1
  555. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.js +2 -1
  556. package/lib/services/code-samples/httpsnippet/targets/go/index.d.ts +1 -1
  557. package/lib/services/code-samples/httpsnippet/targets/go/index.js +2 -1
  558. package/lib/services/code-samples/httpsnippet/targets/go/native.d.ts +2 -2
  559. package/lib/services/code-samples/httpsnippet/targets/go/native.js +2 -3
  560. package/lib/services/code-samples/httpsnippet/targets/index.d.ts +12 -12
  561. package/lib/services/code-samples/httpsnippet/targets/index.js +2 -1
  562. package/lib/services/code-samples/httpsnippet/targets/java/httpclient.d.ts +2 -2
  563. package/lib/services/code-samples/httpsnippet/targets/java/httpclient.js +2 -3
  564. package/lib/services/code-samples/httpsnippet/targets/java/index.d.ts +1 -1
  565. package/lib/services/code-samples/httpsnippet/targets/java/index.js +2 -1
  566. package/lib/services/code-samples/httpsnippet/targets/java8/apachehttp.d.ts +2 -2
  567. package/lib/services/code-samples/httpsnippet/targets/java8/apachehttp.js +2 -2
  568. package/lib/services/code-samples/httpsnippet/targets/java8/index.d.ts +1 -1
  569. package/lib/services/code-samples/httpsnippet/targets/java8/index.js +2 -1
  570. package/lib/services/code-samples/httpsnippet/targets/javascript/fetch.d.ts +2 -2
  571. package/lib/services/code-samples/httpsnippet/targets/javascript/fetch.js +2 -1
  572. package/lib/services/code-samples/httpsnippet/targets/javascript/index.d.ts +1 -1
  573. package/lib/services/code-samples/httpsnippet/targets/javascript/index.js +2 -1
  574. package/lib/services/code-samples/httpsnippet/targets/node/fetch.d.ts +2 -2
  575. package/lib/services/code-samples/httpsnippet/targets/node/fetch.js +2 -1
  576. package/lib/services/code-samples/httpsnippet/targets/node/index.d.ts +1 -1
  577. package/lib/services/code-samples/httpsnippet/targets/node/index.js +2 -1
  578. package/lib/services/code-samples/httpsnippet/targets/php/curl.d.ts +2 -2
  579. package/lib/services/code-samples/httpsnippet/targets/php/curl.js +2 -5
  580. package/lib/services/code-samples/httpsnippet/targets/php/index.d.ts +1 -1
  581. package/lib/services/code-samples/httpsnippet/targets/php/index.js +2 -1
  582. package/lib/services/code-samples/httpsnippet/targets/php/types.js +2 -0
  583. package/lib/services/code-samples/httpsnippet/targets/php/utils.d.ts +1 -1
  584. package/lib/services/code-samples/httpsnippet/targets/php/utils.js +2 -5
  585. package/lib/services/code-samples/httpsnippet/targets/python/index.d.ts +1 -1
  586. package/lib/services/code-samples/httpsnippet/targets/python/index.js +2 -1
  587. package/lib/services/code-samples/httpsnippet/targets/python/requests.d.ts +2 -2
  588. package/lib/services/code-samples/httpsnippet/targets/python/requests.js +2 -6
  589. package/lib/services/code-samples/httpsnippet/targets/r/httr.d.ts +2 -2
  590. package/lib/services/code-samples/httpsnippet/targets/r/httr.js +2 -1
  591. package/lib/services/code-samples/httpsnippet/targets/r/index.d.ts +1 -1
  592. package/lib/services/code-samples/httpsnippet/targets/r/index.js +2 -1
  593. package/lib/services/code-samples/httpsnippet/targets/r/utils.d.ts +3 -3
  594. package/lib/services/code-samples/httpsnippet/targets/r/utils.js +2 -6
  595. package/lib/services/code-samples/httpsnippet/targets/ruby/index.d.ts +1 -1
  596. package/lib/services/code-samples/httpsnippet/targets/ruby/index.js +2 -1
  597. package/lib/services/code-samples/httpsnippet/targets/ruby/native.d.ts +2 -2
  598. package/lib/services/code-samples/httpsnippet/targets/ruby/native.js +2 -1
  599. package/lib/services/code-samples/httpsnippet/targets/shell/curl.d.ts +2 -2
  600. package/lib/services/code-samples/httpsnippet/targets/shell/curl.js +2 -6
  601. package/lib/services/code-samples/httpsnippet/targets/shell/index.d.ts +1 -1
  602. package/lib/services/code-samples/httpsnippet/targets/shell/index.js +2 -1
  603. package/lib/services/code-samples/index.d.ts +2 -2
  604. package/lib/services/code-samples/index.js +2 -1
  605. package/lib/services/code-samples/types.js +2 -0
  606. package/lib/services/config-options/helpers.js +2 -1
  607. package/lib/services/config-options/index.d.ts +2 -2
  608. package/lib/services/config-options/index.js +2 -1
  609. package/lib/services/config-options/normalizeOptions.d.ts +1 -1
  610. package/lib/services/config-options/normalizeOptions.js +2 -1
  611. package/lib/services/config-options/types.d.ts +5 -5
  612. package/lib/services/config-options/types.js +2 -0
  613. package/lib/services/history/helpers.d.ts +1 -1
  614. package/lib/services/history/helpers.js +2 -1
  615. package/lib/services/history/index.d.ts +1 -1
  616. package/lib/services/history/index.js +2 -1
  617. package/lib/services/index.d.ts +8 -8
  618. package/lib/services/index.js +2 -1
  619. package/lib/services/menu/builder.d.ts +3 -3
  620. package/lib/services/menu/builder.js +2 -1
  621. package/lib/services/menu/index.d.ts +1 -1
  622. package/lib/services/menu/index.js +2 -1
  623. package/lib/services/menu/markdown.d.ts +1 -1
  624. package/lib/services/menu/markdown.js +2 -1
  625. package/lib/services/menu/operation.d.ts +2 -2
  626. package/lib/services/menu/operation.js +2 -1
  627. package/lib/services/menu/tags.d.ts +5 -5
  628. package/lib/services/menu/tags.js +2 -1
  629. package/lib/services/types.d.ts +1 -1
  630. package/lib/services/types.js +2 -0
  631. package/lib/services/utils.js +2 -1
  632. package/lib/standalone.d.ts +19 -4
  633. package/lib/standalone.js +2 -1
  634. package/lib/types/app.js +2 -0
  635. package/lib/types/index.d.ts +3 -3
  636. package/lib/types/index.js +2 -1
  637. package/lib/types/open-api.js +2 -0
  638. package/lib/types/security.js +2 -0
  639. package/lib/utils/JsonPointer.js +2 -1
  640. package/lib/utils/areArraysEqual.js +2 -1
  641. package/lib/utils/argValuesHelpers.js +2 -1
  642. package/lib/utils/compose.js +2 -1
  643. package/lib/utils/configure-helpers.d.ts +1 -1
  644. package/lib/utils/configure-helpers.js +2 -1
  645. package/lib/utils/cookies.js +2 -1
  646. package/lib/utils/createParsedDocument.d.ts +2 -0
  647. package/lib/utils/createParsedDocument.js +2 -0
  648. package/lib/utils/debounce.js +2 -1
  649. package/lib/utils/debug.js +2 -1
  650. package/lib/utils/dom.js +2 -1
  651. package/lib/utils/environments.d.ts +1 -1
  652. package/lib/utils/environments.js +2 -1
  653. package/lib/utils/helpers.js +2 -12
  654. package/lib/utils/index.d.ts +23 -23
  655. package/lib/utils/index.js +2 -1
  656. package/lib/utils/isMobile.js +2 -1
  657. package/lib/utils/loadAndBundleSpec.d.ts +3 -2
  658. package/lib/utils/loadAndBundleSpec.js +2 -1
  659. package/lib/utils/local-storage.js +2 -1
  660. package/lib/utils/object.js +2 -1
  661. package/lib/utils/openapi.d.ts +4 -4
  662. package/lib/utils/openapi.js +2 -1
  663. package/lib/utils/parameters.js +2 -1
  664. package/lib/utils/path.js +2 -1
  665. package/lib/utils/queryString.js +2 -1
  666. package/lib/utils/replaceVariables.d.ts +1 -1
  667. package/lib/utils/replaceVariables.js +2 -1
  668. package/lib/utils/saveTextBeforeHeading.js +2 -1
  669. package/lib/utils/security-details.d.ts +1 -1
  670. package/lib/utils/security-details.js +2 -1
  671. package/lib/utils/session-storage.js +2 -1
  672. package/lib/utils/simplifyAstStructure.js +2 -1
  673. package/lib/utils/sort.js +2 -1
  674. package/lib/utils/string.js +2 -1
  675. package/lib/utils/test-utils.js +2 -1
  676. package/lib/utils/theme-helpers.js +4 -3
  677. package/lib-esm/components/ApiInfo/ApiInfo.d.ts +7 -0
  678. package/lib-esm/components/ApiInfo/ApiInfo.js +2 -0
  679. package/lib-esm/components/ApiInfo/Metadata.d.ts +9 -0
  680. package/lib-esm/components/ApiInfo/Metadata.js +2 -0
  681. package/lib-esm/components/ApiInfo/index.d.ts +1 -0
  682. package/lib-esm/components/ApiInfo/index.js +2 -0
  683. package/lib-esm/components/ApiInfo/styled.d.ts +4 -0
  684. package/lib-esm/components/ApiInfo/styled.js +27 -0
  685. package/lib-esm/components/CallbackSamples/CallbackSamples.d.ts +7 -0
  686. package/lib-esm/components/CallbackSamples/CallbackSamples.js +16 -0
  687. package/lib-esm/components/CallbackSamples/index.d.ts +1 -0
  688. package/lib-esm/components/CallbackSamples/index.js +2 -0
  689. package/lib-esm/components/Callbacks/CallbackDetails.d.ts +7 -0
  690. package/lib-esm/components/Callbacks/CallbackDetails.js +20 -0
  691. package/lib-esm/components/Callbacks/CallbackOperation.d.ts +8 -0
  692. package/lib-esm/components/Callbacks/CallbackOperation.js +15 -0
  693. package/lib-esm/components/Callbacks/CallbackSummary.d.ts +8 -0
  694. package/lib-esm/components/Callbacks/CallbackSummary.js +19 -0
  695. package/lib-esm/components/Callbacks/CallbacksList.d.ts +7 -0
  696. package/lib-esm/components/Callbacks/CallbacksList.js +2 -0
  697. package/lib-esm/components/Callbacks/index.d.ts +3 -0
  698. package/lib-esm/components/Callbacks/index.js +2 -0
  699. package/lib-esm/components/Callbacks/styled.d.ts +3 -0
  700. package/lib-esm/components/Callbacks/styled.js +8 -0
  701. package/lib-esm/components/Content/Content.d.ts +7 -0
  702. package/lib-esm/components/Content/Content.js +2 -0
  703. package/lib-esm/components/Content/index.d.ts +1 -0
  704. package/lib-esm/components/Content/index.js +2 -0
  705. package/lib-esm/components/Content/useAutoScroll.d.ts +3 -0
  706. package/lib-esm/components/Content/useAutoScroll.js +2 -0
  707. package/lib-esm/components/ContentItem/ContentItem.d.ts +11 -0
  708. package/lib-esm/components/ContentItem/ContentItem.js +2 -0
  709. package/lib-esm/components/ContentItem/index.d.ts +1 -0
  710. package/lib-esm/components/ContentItem/index.js +2 -0
  711. package/lib-esm/components/ContentItem/useIsExpanded.d.ts +5 -0
  712. package/lib-esm/components/ContentItem/useIsExpanded.js +2 -0
  713. package/lib-esm/components/ContentItems/ContentItems.d.ts +8 -0
  714. package/lib-esm/components/ContentItems/ContentItems.js +2 -0
  715. package/lib-esm/components/ContentItems/Items.d.ts +7 -0
  716. package/lib-esm/components/ContentItems/Items.js +2 -0
  717. package/lib-esm/components/ContentItems/VirtualList.d.ts +7 -0
  718. package/lib-esm/components/ContentItems/VirtualList.js +2 -0
  719. package/lib-esm/components/ContentItems/helpers.d.ts +10 -0
  720. package/lib-esm/components/ContentItems/helpers.js +2 -0
  721. package/lib-esm/components/ContentItems/index.d.ts +1 -0
  722. package/lib-esm/components/ContentItems/index.js +2 -0
  723. package/lib-esm/components/ContentItems/useScrollOnRender.d.ts +3 -0
  724. package/lib-esm/components/ContentItems/useScrollOnRender.js +2 -0
  725. package/lib-esm/components/Discriminator/Discriminator.d.ts +10 -0
  726. package/lib-esm/components/Discriminator/Discriminator.js +6 -0
  727. package/lib-esm/components/Discriminator/index.d.ts +1 -0
  728. package/lib-esm/components/Discriminator/index.js +2 -0
  729. package/lib-esm/components/Download/DownloadSpecification.d.ts +4 -0
  730. package/lib-esm/components/Download/DownloadSpecification.js +40 -0
  731. package/lib-esm/components/Download/index.d.ts +1 -0
  732. package/lib-esm/components/Download/index.js +2 -0
  733. package/lib-esm/components/Download/types.d.ts +15 -0
  734. package/lib-esm/components/Download/types.js +2 -0
  735. package/lib-esm/components/Download/useDownloadInfo.d.ts +2 -0
  736. package/lib-esm/components/Download/useDownloadInfo.js +2 -0
  737. package/lib-esm/components/ErrorBoundary/ErrorBoundary.d.ts +9 -0
  738. package/lib-esm/components/ErrorBoundary/ErrorBoundary.js +5 -0
  739. package/lib-esm/components/ErrorBoundary/index.d.ts +1 -0
  740. package/lib-esm/components/ErrorBoundary/index.js +2 -0
  741. package/lib-esm/components/ExpandAllButton/ExpandAllButton.d.ts +8 -0
  742. package/lib-esm/components/ExpandAllButton/ExpandAllButton.js +4 -0
  743. package/lib-esm/components/ExpandAllButton/index.d.ts +1 -0
  744. package/lib-esm/components/ExpandAllButton/index.js +2 -0
  745. package/lib-esm/components/ExternalDocumentation/ExternalDocumentation.d.ts +7 -0
  746. package/lib-esm/components/ExternalDocumentation/ExternalDocumentation.js +5 -0
  747. package/lib-esm/components/ExternalDocumentation/index.d.ts +1 -0
  748. package/lib-esm/components/ExternalDocumentation/index.js +2 -0
  749. package/lib-esm/components/Language/LanguageDropdown.d.ts +15 -0
  750. package/lib-esm/components/Language/LanguageDropdown.js +2 -0
  751. package/lib-esm/components/Language/LanguageItem.d.ts +11 -0
  752. package/lib-esm/components/Language/LanguageItem.js +2 -0
  753. package/lib-esm/components/Language/LanguageList.d.ts +10 -0
  754. package/lib-esm/components/Language/LanguageList.js +2 -0
  755. package/lib-esm/components/Language/_tests_/LanguageDropdown.test.d.ts +1 -0
  756. package/lib-esm/components/Language/_tests_/LanguageDropdown.test.js +2 -0
  757. package/lib-esm/components/Language/constants.d.ts +2 -0
  758. package/lib-esm/components/Language/constants.js +2 -0
  759. package/lib-esm/components/Language/index.d.ts +3 -0
  760. package/lib-esm/components/Language/index.js +2 -0
  761. package/lib-esm/components/Language/styled.d.ts +31 -0
  762. package/lib-esm/components/Language/styled.js +82 -0
  763. package/lib-esm/components/Markdown/Markdown.d.ts +3 -0
  764. package/lib-esm/components/Markdown/Markdown.js +2 -0
  765. package/lib-esm/components/Markdown/index.d.ts +2 -0
  766. package/lib-esm/components/Markdown/index.js +2 -0
  767. package/lib-esm/components/Markdown/types.d.ts +10 -0
  768. package/lib-esm/components/Markdown/types.js +2 -0
  769. package/lib-esm/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +11 -0
  770. package/lib-esm/components/MediaTypeSwitch/MediaTypesSwitch.js +2 -0
  771. package/lib-esm/components/MediaTypeSwitch/index.d.ts +1 -0
  772. package/lib-esm/components/MediaTypeSwitch/index.js +2 -0
  773. package/lib-esm/components/OperationItem/Description.d.ts +10 -0
  774. package/lib-esm/components/OperationItem/Description.js +2 -0
  775. package/lib-esm/components/OperationItem/OperationItem.d.ts +5 -0
  776. package/lib-esm/components/OperationItem/OperationItem.js +22 -0
  777. package/lib-esm/components/OperationItem/_tests_/OperationItem.test.d.ts +1 -0
  778. package/lib-esm/components/OperationItem/_tests_/OperationItem.test.js +2 -0
  779. package/lib-esm/components/OperationItem/_tests_/__mocks__/mock-intersection-observer.d.ts +15 -0
  780. package/lib-esm/components/OperationItem/_tests_/__mocks__/mock-intersection-observer.js +2 -0
  781. package/lib-esm/components/OperationItem/index.d.ts +2 -0
  782. package/lib-esm/components/OperationItem/index.js +2 -0
  783. package/lib-esm/components/OperationItem/types.d.ts +4 -0
  784. package/lib-esm/components/OperationItem/types.js +2 -0
  785. package/lib-esm/components/Overlay.d.ts +6 -0
  786. package/lib-esm/components/Overlay.js +43 -0
  787. package/lib-esm/components/Overview/Overview.d.ts +9 -0
  788. package/lib-esm/components/Overview/Overview.js +2 -0
  789. package/lib-esm/components/Overview/index.d.ts +1 -0
  790. package/lib-esm/components/Overview/index.js +2 -0
  791. package/lib-esm/components/PageFooter/PageFooter.d.ts +2 -0
  792. package/lib-esm/components/PageFooter/PageFooter.js +2 -0
  793. package/lib-esm/components/PageFooter/index.d.ts +1 -0
  794. package/lib-esm/components/PageFooter/index.js +2 -0
  795. package/lib-esm/components/Panel/ResponsePanel.d.ts +3 -0
  796. package/lib-esm/components/Panel/ResponsePanel.js +25 -0
  797. package/lib-esm/components/Panel/Trigger.d.ts +1 -0
  798. package/lib-esm/components/Panel/Trigger.js +8 -0
  799. package/lib-esm/components/Panel/index.d.ts +2 -0
  800. package/lib-esm/components/Panel/index.js +2 -0
  801. package/lib-esm/components/PanelItem/PanelItem.d.ts +9 -0
  802. package/lib-esm/components/PanelItem/PanelItem.js +2 -0
  803. package/lib-esm/components/PanelItem/index.d.ts +2 -0
  804. package/lib-esm/components/PanelItem/index.js +2 -0
  805. package/lib-esm/components/PanelItem/styled.d.ts +16 -0
  806. package/lib-esm/components/PanelItem/styled.js +53 -0
  807. package/lib-esm/components/PayloadSamples/Example.d.ts +3 -0
  808. package/lib-esm/components/PayloadSamples/Example.js +2 -0
  809. package/lib-esm/components/PayloadSamples/ExampleValue.d.ts +2 -0
  810. package/lib-esm/components/PayloadSamples/ExampleValue.js +2 -0
  811. package/lib-esm/components/PayloadSamples/MediaTypeSamples.d.ts +2 -0
  812. package/lib-esm/components/PayloadSamples/MediaTypeSamples.js +4 -0
  813. package/lib-esm/components/PayloadSamples/PayloadSamples.d.ts +2 -0
  814. package/lib-esm/components/PayloadSamples/PayloadSamples.js +2 -0
  815. package/lib-esm/components/PayloadSamples/index.d.ts +5 -0
  816. package/lib-esm/components/PayloadSamples/index.js +2 -0
  817. package/lib-esm/components/PayloadSamples/styled.d.ts +4 -0
  818. package/lib-esm/components/PayloadSamples/styled.js +22 -0
  819. package/lib-esm/components/PayloadSamples/types.d.ts +25 -0
  820. package/lib-esm/components/PayloadSamples/types.js +2 -0
  821. package/lib-esm/components/PropertyDetails/DescriptionEnums.d.ts +4 -0
  822. package/lib-esm/components/PropertyDetails/DescriptionEnums.js +10 -0
  823. package/lib-esm/components/PropertyDetails/EnumValues.d.ts +2 -0
  824. package/lib-esm/components/PropertyDetails/EnumValues.js +2 -0
  825. package/lib-esm/components/PropertyDetails/Examples.d.ts +5 -0
  826. package/lib-esm/components/PropertyDetails/Examples.js +2 -0
  827. package/lib-esm/components/PropertyDetails/Extensions.d.ts +2 -0
  828. package/lib-esm/components/PropertyDetails/Extensions.js +4 -0
  829. package/lib-esm/components/PropertyDetails/FieldDetail.d.ts +7 -0
  830. package/lib-esm/components/PropertyDetails/FieldDetail.js +8 -0
  831. package/lib-esm/components/PropertyDetails/FieldDetails.d.ts +2 -0
  832. package/lib-esm/components/PropertyDetails/FieldDetails.js +40 -0
  833. package/lib-esm/components/PropertyDetails/Pattern.d.ts +6 -0
  834. package/lib-esm/components/PropertyDetails/Pattern.js +2 -0
  835. package/lib-esm/components/PropertyDetails/PlusCircleIcon.d.ts +7 -0
  836. package/lib-esm/components/PropertyDetails/PlusCircleIcon.js +11 -0
  837. package/lib-esm/components/PropertyDetails/PropertyDetails.d.ts +2 -0
  838. package/lib-esm/components/PropertyDetails/PropertyDetails.js +18 -0
  839. package/lib-esm/components/PropertyDetails/SchemaTypeInfo.d.ts +6 -0
  840. package/lib-esm/components/PropertyDetails/SchemaTypeInfo.js +16 -0
  841. package/lib-esm/components/PropertyDetails/SimpleEnums.d.ts +4 -0
  842. package/lib-esm/components/PropertyDetails/SimpleEnums.js +8 -0
  843. package/lib-esm/components/PropertyDetails/cycleColorsByLevel.d.ts +1 -0
  844. package/lib-esm/components/PropertyDetails/cycleColorsByLevel.js +2 -0
  845. package/lib-esm/components/PropertyDetails/index.d.ts +3 -0
  846. package/lib-esm/components/PropertyDetails/index.js +2 -0
  847. package/lib-esm/components/PropertyDetails/styled.d.ts +6 -0
  848. package/lib-esm/components/PropertyDetails/styled.js +23 -0
  849. package/lib-esm/components/PropertyDetails/types.d.ts +47 -0
  850. package/lib-esm/components/PropertyDetails/types.js +2 -0
  851. package/lib-esm/components/RedoclyOpenAPIDocs/Providers.d.ts +4 -0
  852. package/lib-esm/components/RedoclyOpenAPIDocs/Providers.js +2 -0
  853. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.d.ts +4 -0
  854. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.js +2 -0
  855. package/lib-esm/components/RedoclyOpenAPIDocs/index.d.ts +4 -0
  856. package/lib-esm/components/RedoclyOpenAPIDocs/index.js +2 -0
  857. package/lib-esm/components/RedoclyOpenAPIDocs/styled.d.ts +1 -0
  858. package/lib-esm/components/RedoclyOpenAPIDocs/styled.js +22 -0
  859. package/lib-esm/components/RedoclyOpenAPIDocs/types.d.ts +47 -0
  860. package/lib-esm/components/RedoclyOpenAPIDocs/types.js +2 -0
  861. package/lib-esm/components/RedoclyOpenAPIDocs/utils.d.ts +8 -0
  862. package/lib-esm/components/RedoclyOpenAPIDocs/utils.js +2 -0
  863. package/lib-esm/components/RenderHook/RenderHook.d.ts +8 -0
  864. package/lib-esm/components/RenderHook/RenderHook.js +2 -0
  865. package/lib-esm/components/RenderHook/index.d.ts +1 -0
  866. package/lib-esm/components/RenderHook/index.js +2 -0
  867. package/lib-esm/components/Replay/EmbeddedReplay.d.ts +9 -0
  868. package/lib-esm/components/Replay/EmbeddedReplay.js +11 -0
  869. package/lib-esm/components/Replay/Replay.d.ts +9 -0
  870. package/lib-esm/components/Replay/Replay.js +2 -0
  871. package/lib-esm/components/Replay/index.d.ts +2 -0
  872. package/lib-esm/components/Replay/index.js +2 -0
  873. package/lib-esm/components/Replay/utils.d.ts +42 -0
  874. package/lib-esm/components/Replay/utils.js +2 -0
  875. package/lib-esm/components/Request/RequestDetails.d.ts +2 -0
  876. package/lib-esm/components/Request/RequestDetails.js +4 -0
  877. package/lib-esm/components/Request/types.d.ts +10 -0
  878. package/lib-esm/components/Request/types.js +2 -0
  879. package/lib-esm/components/RequestParameters/Body.d.ts +9 -0
  880. package/lib-esm/components/RequestParameters/Body.js +2 -0
  881. package/lib-esm/components/RequestParameters/ParametersGroup.d.ts +8 -0
  882. package/lib-esm/components/RequestParameters/ParametersGroup.js +21 -0
  883. package/lib-esm/components/RequestParameters/RequestParameters.d.ts +9 -0
  884. package/lib-esm/components/RequestParameters/RequestParameters.js +2 -0
  885. package/lib-esm/components/RequestParameters/index.d.ts +2 -0
  886. package/lib-esm/components/RequestParameters/index.js +2 -0
  887. package/lib-esm/components/RequestSamples/CodeSample.d.ts +16 -0
  888. package/lib-esm/components/RequestSamples/CodeSample.js +10 -0
  889. package/lib-esm/components/RequestSamples/Example.d.ts +9 -0
  890. package/lib-esm/components/RequestSamples/Example.js +2 -0
  891. package/lib-esm/components/RequestSamples/RequestSamples.d.ts +10 -0
  892. package/lib-esm/components/RequestSamples/RequestSamples.js +13 -0
  893. package/lib-esm/components/RequestSamples/index.d.ts +2 -0
  894. package/lib-esm/components/RequestSamples/index.js +2 -0
  895. package/lib-esm/components/RequestSamples/useCodeSamples.d.ts +10 -0
  896. package/lib-esm/components/RequestSamples/useCodeSamples.js +2 -0
  897. package/lib-esm/components/ResponseSamples/ResponseSamples.d.ts +12 -0
  898. package/lib-esm/components/ResponseSamples/ResponseSamples.js +2 -0
  899. package/lib-esm/components/ResponseSamples/Summary.d.ts +5 -0
  900. package/lib-esm/components/ResponseSamples/Summary.js +2 -0
  901. package/lib-esm/components/ResponseSamples/index.d.ts +1 -0
  902. package/lib-esm/components/ResponseSamples/index.js +2 -0
  903. package/lib-esm/components/Responses/OperationResponseList.d.ts +16 -0
  904. package/lib-esm/components/Responses/OperationResponseList.js +5 -0
  905. package/lib-esm/components/Responses/ResponseDetails.d.ts +2 -0
  906. package/lib-esm/components/Responses/ResponseDetails.js +2 -0
  907. package/lib-esm/components/Responses/ResponseHeaders.d.ts +2 -0
  908. package/lib-esm/components/Responses/ResponseHeaders.js +2 -0
  909. package/lib-esm/components/Responses/index.d.ts +3 -0
  910. package/lib-esm/components/Responses/index.js +2 -0
  911. package/lib-esm/components/Responses/styled.d.ts +5 -0
  912. package/lib-esm/components/Responses/styled.js +23 -0
  913. package/lib-esm/components/Responses/types.d.ts +13 -0
  914. package/lib-esm/components/Responses/types.js +2 -0
  915. package/lib-esm/components/RightPanel/RightPanel.d.ts +5 -0
  916. package/lib-esm/components/RightPanel/RightPanel.js +2 -0
  917. package/lib-esm/components/RightPanel/index.d.ts +1 -0
  918. package/lib-esm/components/RightPanel/index.js +2 -0
  919. package/lib-esm/components/Samples/ExampleSwitch.d.ts +14 -0
  920. package/lib-esm/components/Samples/ExampleSwitch.js +2 -0
  921. package/lib-esm/components/Samples/index.d.ts +2 -0
  922. package/lib-esm/components/Samples/index.js +2 -0
  923. package/lib-esm/components/Samples/use-example-key.d.ts +6 -0
  924. package/lib-esm/components/Samples/use-example-key.js +2 -0
  925. package/lib-esm/components/Schema/ArraySchema.d.ts +2 -0
  926. package/lib-esm/components/Schema/ArraySchema.js +2 -0
  927. package/lib-esm/components/Schema/ObjectSchema.d.ts +2 -0
  928. package/lib-esm/components/Schema/ObjectSchema.js +2 -0
  929. package/lib-esm/components/Schema/OneOfSchema.d.ts +2 -0
  930. package/lib-esm/components/Schema/OneOfSchema.js +11 -0
  931. package/lib-esm/components/Schema/RecursiveSchema.d.ts +2 -0
  932. package/lib-esm/components/Schema/RecursiveSchema.js +2 -0
  933. package/lib-esm/components/Schema/Schema.d.ts +2 -0
  934. package/lib-esm/components/Schema/Schema.js +6 -0
  935. package/lib-esm/components/Schema/SubSchema.d.ts +14 -0
  936. package/lib-esm/components/Schema/SubSchema.js +2 -0
  937. package/lib-esm/components/Schema/helpers.d.ts +5 -0
  938. package/lib-esm/components/Schema/helpers.js +2 -0
  939. package/lib-esm/components/Schema/index.d.ts +5 -0
  940. package/lib-esm/components/Schema/index.js +2 -0
  941. package/lib-esm/components/Schema/types.d.ts +38 -0
  942. package/lib-esm/components/Schema/types.js +2 -0
  943. package/lib-esm/components/Schema/useOneOfLocationIdx.d.ts +2 -0
  944. package/lib-esm/components/Schema/useOneOfLocationIdx.js +2 -0
  945. package/lib-esm/components/SchemaDefinition/SchemaDefinition.d.ts +8 -0
  946. package/lib-esm/components/SchemaDefinition/SchemaDefinition.js +4 -0
  947. package/lib-esm/components/SchemaDefinition/index.d.ts +1 -0
  948. package/lib-esm/components/SchemaDefinition/index.js +2 -0
  949. package/lib-esm/components/SectionContent/SectionContent.d.ts +17 -0
  950. package/lib-esm/components/SectionContent/SectionContent.js +14 -0
  951. package/lib-esm/components/SectionContent/index.d.ts +1 -0
  952. package/lib-esm/components/SectionContent/index.js +2 -0
  953. package/lib-esm/components/SectionItem/SectionItem.d.ts +7 -0
  954. package/lib-esm/components/SectionItem/SectionItem.js +2 -0
  955. package/lib-esm/components/SectionItem/index.d.ts +1 -0
  956. package/lib-esm/components/SectionItem/index.js +2 -0
  957. package/lib-esm/components/Security/Divider.d.ts +3 -0
  958. package/lib-esm/components/Security/Divider.js +15 -0
  959. package/lib-esm/components/Security/OAuthFlow.d.ts +6 -0
  960. package/lib-esm/components/Security/OAuthFlow.js +2 -0
  961. package/lib-esm/components/Security/OAuthScopes.d.ts +13 -0
  962. package/lib-esm/components/Security/OAuthScopes.js +34 -0
  963. package/lib-esm/components/Security/Security.d.ts +7 -0
  964. package/lib-esm/components/Security/Security.js +2 -0
  965. package/lib-esm/components/Security/SecurityButton.d.ts +10 -0
  966. package/lib-esm/components/Security/SecurityButton.js +31 -0
  967. package/lib-esm/components/Security/SecurityFlow.d.ts +5 -0
  968. package/lib-esm/components/Security/SecurityFlow.js +17 -0
  969. package/lib-esm/components/Security/SecurityModal.d.ts +8 -0
  970. package/lib-esm/components/Security/SecurityModal.js +45 -0
  971. package/lib-esm/components/Security/SecuritySchemeItem.d.ts +7 -0
  972. package/lib-esm/components/Security/SecuritySchemeItem.js +21 -0
  973. package/lib-esm/components/Security/helper.d.ts +2 -0
  974. package/lib-esm/components/Security/helper.js +2 -0
  975. package/lib-esm/components/Security/index.d.ts +1 -0
  976. package/lib-esm/components/Security/index.js +2 -0
  977. package/lib-esm/components/Security/styled.d.ts +2 -0
  978. package/lib-esm/components/Security/styled.js +14 -0
  979. package/lib-esm/components/SelectOrLabel/SelectOrLabel.d.ts +7 -0
  980. package/lib-esm/components/SelectOrLabel/SelectOrLabel.js +8 -0
  981. package/lib-esm/components/SelectOrLabel/index.d.ts +1 -0
  982. package/lib-esm/components/SelectOrLabel/index.js +2 -0
  983. package/lib-esm/components/ServerList/ServerList.d.ts +3 -0
  984. package/lib-esm/components/ServerList/ServerList.js +60 -0
  985. package/lib-esm/components/ServerList/index.d.ts +1 -0
  986. package/lib-esm/components/ServerList/index.js +2 -0
  987. package/lib-esm/components/ServerList/types.d.ts +5 -0
  988. package/lib-esm/components/ServerList/types.js +2 -0
  989. package/lib-esm/components/ServerListDropdown/ServerListDropdown.d.ts +7 -0
  990. package/lib-esm/components/ServerListDropdown/ServerListDropdown.js +2 -0
  991. package/lib-esm/components/ServerListDropdown/index.d.ts +1 -0
  992. package/lib-esm/components/ServerListDropdown/index.js +2 -0
  993. package/lib-esm/components/ServerListDropdown/styled.d.ts +5 -0
  994. package/lib-esm/components/ServerListDropdown/styled.js +23 -0
  995. package/lib-esm/components/SideMenu/SideMenu.d.ts +8 -0
  996. package/lib-esm/components/SideMenu/SideMenu.js +4 -0
  997. package/lib-esm/components/SideMenu/hooks/useMenuItems.d.ts +7 -0
  998. package/lib-esm/components/SideMenu/hooks/useMenuItems.js +2 -0
  999. package/lib-esm/components/SideMenu/index.d.ts +1 -0
  1000. package/lib-esm/components/SideMenu/index.js +2 -0
  1001. package/lib-esm/components/SideMenu/types.d.ts +16 -0
  1002. package/lib-esm/components/SideMenu/types.js +2 -0
  1003. package/lib-esm/components/StickySidebar/SidebarActions.d.ts +1 -0
  1004. package/lib-esm/components/StickySidebar/SidebarActions.js +6 -0
  1005. package/lib-esm/components/StickySidebar/StickyResponsiveSidebar.d.ts +9 -0
  1006. package/lib-esm/components/StickySidebar/StickyResponsiveSidebar.js +25 -0
  1007. package/lib-esm/components/StickySidebar/index.d.ts +1 -0
  1008. package/lib-esm/components/StickySidebar/index.js +2 -0
  1009. package/lib-esm/components/Tabs/Tabs.d.ts +8 -0
  1010. package/lib-esm/components/Tabs/Tabs.js +35 -0
  1011. package/lib-esm/components/Tabs/index.d.ts +2 -0
  1012. package/lib-esm/components/Tabs/index.js +2 -0
  1013. package/lib-esm/components/Tabs/useTabsState.d.ts +11 -0
  1014. package/lib-esm/components/Tabs/useTabsState.js +2 -0
  1015. package/lib-esm/components/TagItem/OperationNavigationItems.d.ts +9 -0
  1016. package/lib-esm/components/TagItem/OperationNavigationItems.js +37 -0
  1017. package/lib-esm/components/TagItem/OperationsNavigation.d.ts +3 -0
  1018. package/lib-esm/components/TagItem/OperationsNavigation.js +7 -0
  1019. package/lib-esm/components/TagItem/TagItem.d.ts +9 -0
  1020. package/lib-esm/components/TagItem/TagItem.js +23 -0
  1021. package/lib-esm/components/TagItem/index.d.ts +1 -0
  1022. package/lib-esm/components/TagItem/index.js +2 -0
  1023. package/lib-esm/components/TagItem/styled.d.ts +1 -0
  1024. package/lib-esm/components/TagItem/styled.js +6 -0
  1025. package/lib-esm/components/TagItem/types.d.ts +5 -0
  1026. package/lib-esm/components/TagItem/types.js +2 -0
  1027. package/lib-esm/components/ViewNested/ViewNested.d.ts +13 -0
  1028. package/lib-esm/components/ViewNested/ViewNested.js +35 -0
  1029. package/lib-esm/components/ViewNested/index.d.ts +1 -0
  1030. package/lib-esm/components/ViewNested/index.js +2 -0
  1031. package/lib-esm/components/common/Badges.d.ts +13 -0
  1032. package/lib-esm/components/common/Badges.js +19 -0
  1033. package/lib-esm/components/common/BodyContent/BodyContent.d.ts +11 -0
  1034. package/lib-esm/components/common/BodyContent/BodyContent.js +28 -0
  1035. package/lib-esm/components/common/BodyContent/index.d.ts +1 -0
  1036. package/lib-esm/components/common/BodyContent/index.js +2 -0
  1037. package/lib-esm/components/common/ClearButton/ClearButton.d.ts +2 -0
  1038. package/lib-esm/components/common/ClearButton/ClearButton.js +2 -0
  1039. package/lib-esm/components/common/ClearButton/index.d.ts +2 -0
  1040. package/lib-esm/components/common/ClearButton/index.js +2 -0
  1041. package/lib-esm/components/common/ClearButton/styled.d.ts +1 -0
  1042. package/lib-esm/components/common/ClearButton/styled.js +16 -0
  1043. package/lib-esm/components/common/ClearButton/types.d.ts +6 -0
  1044. package/lib-esm/components/common/ClearButton/types.js +2 -0
  1045. package/lib-esm/components/common/CodeBlockPanel.d.ts +2 -0
  1046. package/lib-esm/components/common/CodeBlockPanel.js +6 -0
  1047. package/lib-esm/components/common/ConstraintsView.d.ts +4 -0
  1048. package/lib-esm/components/common/ConstraintsView.js +4 -0
  1049. package/lib-esm/components/common/Dropdown/Dropdown.d.ts +12 -0
  1050. package/lib-esm/components/common/Dropdown/Dropdown.js +27 -0
  1051. package/lib-esm/components/common/Dropdown/index.d.ts +2 -0
  1052. package/lib-esm/components/common/Dropdown/index.js +2 -0
  1053. package/lib-esm/components/common/ExpandableExample/ExpandableExample.d.ts +5 -0
  1054. package/lib-esm/components/common/ExpandableExample/ExpandableExample.js +10 -0
  1055. package/lib-esm/components/common/ExpandableExample/index.d.ts +1 -0
  1056. package/lib-esm/components/common/ExpandableExample/index.js +2 -0
  1057. package/lib-esm/components/common/Extensions.d.ts +6 -0
  1058. package/lib-esm/components/common/Extensions.js +4 -0
  1059. package/lib-esm/components/common/Fields/fields-layout.d.ts +15 -0
  1060. package/lib-esm/components/common/Fields/fields-layout.js +223 -0
  1061. package/lib-esm/components/common/Fields/fields.d.ts +38 -0
  1062. package/lib-esm/components/common/Fields/fields.js +93 -0
  1063. package/lib-esm/components/common/Fields/index.d.ts +2 -0
  1064. package/lib-esm/components/common/Fields/index.js +2 -0
  1065. package/lib-esm/components/common/LinkToField.d.ts +13 -0
  1066. package/lib-esm/components/common/LinkToField.js +20 -0
  1067. package/lib-esm/components/common/OperationItemTitle.d.ts +2 -0
  1068. package/lib-esm/components/common/OperationItemTitle.js +33 -0
  1069. package/lib-esm/components/common/SchemaSelection/SchemaSelection.d.ts +12 -0
  1070. package/lib-esm/components/common/SchemaSelection/SchemaSelection.js +2 -0
  1071. package/lib-esm/components/common/SchemaSelection/index.d.ts +1 -0
  1072. package/lib-esm/components/common/SchemaSelection/index.js +2 -0
  1073. package/lib-esm/components/common/Select/Select.d.ts +2 -0
  1074. package/lib-esm/components/common/Select/Select.js +2 -0
  1075. package/lib-esm/components/common/Select/index.d.ts +2 -0
  1076. package/lib-esm/components/common/Select/index.js +2 -0
  1077. package/lib-esm/components/common/Select/styled.d.ts +22 -0
  1078. package/lib-esm/components/common/Select/styled.js +111 -0
  1079. package/lib-esm/components/common/Select/types.d.ts +20 -0
  1080. package/lib-esm/components/common/Select/types.js +2 -0
  1081. package/lib-esm/components/common/Skeleton/LanguageListSkeleton.d.ts +4 -0
  1082. package/lib-esm/components/common/Skeleton/LanguageListSkeleton.js +23 -0
  1083. package/lib-esm/components/common/Skeleton/Skeleton.d.ts +5 -0
  1084. package/lib-esm/components/common/Skeleton/Skeleton.js +33 -0
  1085. package/lib-esm/components/common/Skeleton/index.d.ts +1 -0
  1086. package/lib-esm/components/common/Skeleton/index.js +2 -0
  1087. package/lib-esm/components/common/headers.d.ts +1 -0
  1088. package/lib-esm/components/common/headers.js +8 -0
  1089. package/lib-esm/components/common/index.d.ts +14 -0
  1090. package/lib-esm/components/common/index.js +2 -0
  1091. package/lib-esm/components/common/linkify.d.ts +10 -0
  1092. package/lib-esm/components/common/linkify.js +21 -0
  1093. package/lib-esm/components/common/mixins.d.ts +1 -0
  1094. package/lib-esm/components/common/mixins.js +5 -0
  1095. package/lib-esm/components/common/panels.d.ts +17 -0
  1096. package/lib-esm/components/common/panels.js +123 -0
  1097. package/lib-esm/components/common/schema.d.ts +7 -0
  1098. package/lib-esm/components/common/schema.js +74 -0
  1099. package/lib-esm/components/common/styled.d.ts +7 -0
  1100. package/lib-esm/components/common/styled.js +59 -0
  1101. package/lib-esm/components/index.d.ts +23 -0
  1102. package/lib-esm/components/index.js +2 -0
  1103. package/lib-esm/components/pluggable/RedocExample.d.ts +11 -0
  1104. package/lib-esm/components/pluggable/RedocExample.js +2 -0
  1105. package/lib-esm/components/pluggable/RedocSchema.d.ts +10 -0
  1106. package/lib-esm/components/pluggable/RedocSchema.js +2 -0
  1107. package/lib-esm/components/pluggable/index.d.ts +2 -0
  1108. package/lib-esm/components/pluggable/index.js +2 -0
  1109. package/lib-esm/components/pluggable/styled.components.d.ts +7 -0
  1110. package/lib-esm/components/pluggable/styled.components.js +13 -0
  1111. package/lib-esm/constants.d.ts +25 -0
  1112. package/lib-esm/constants.js +2 -0
  1113. package/lib-esm/empty.d.ts +2 -0
  1114. package/lib-esm/empty.js +2 -0
  1115. package/lib-esm/events/codeSampleCopy.d.ts +2 -0
  1116. package/lib-esm/events/codeSampleCopy.js +2 -0
  1117. package/lib-esm/events/creator.d.ts +2 -0
  1118. package/lib-esm/events/creator.js +2 -0
  1119. package/lib-esm/events/index.d.ts +8 -0
  1120. package/lib-esm/events/index.js +2 -0
  1121. package/lib-esm/events/languageSwitch.d.ts +2 -0
  1122. package/lib-esm/events/languageSwitch.js +2 -0
  1123. package/lib-esm/events/panelToggle.d.ts +2 -0
  1124. package/lib-esm/events/panelToggle.js +2 -0
  1125. package/lib-esm/events/serverSwitch.d.ts +2 -0
  1126. package/lib-esm/events/serverSwitch.js +2 -0
  1127. package/lib-esm/events/tryItOpen.d.ts +2 -0
  1128. package/lib-esm/events/tryItOpen.js +2 -0
  1129. package/lib-esm/events/tryItSent.d.ts +2 -0
  1130. package/lib-esm/events/tryItSent.js +2 -0
  1131. package/lib-esm/events/types.d.ts +83 -0
  1132. package/lib-esm/events/types.js +2 -0
  1133. package/lib-esm/hoc/types.d.ts +51 -0
  1134. package/lib-esm/hoc/types.js +2 -0
  1135. package/lib-esm/hoc/utils.d.ts +2 -0
  1136. package/lib-esm/hoc/utils.js +2 -0
  1137. package/lib-esm/hoc/withRouter.d.ts +3 -0
  1138. package/lib-esm/hoc/withRouter.js +2 -0
  1139. package/lib-esm/hoc/withStore.d.ts +3 -0
  1140. package/lib-esm/hoc/withStore.js +2 -0
  1141. package/lib-esm/hooks/index.d.ts +8 -0
  1142. package/lib-esm/hooks/index.js +2 -0
  1143. package/lib-esm/hooks/useActivateExample.d.ts +2 -0
  1144. package/lib-esm/hooks/useActivateExample.js +2 -0
  1145. package/lib-esm/hooks/useActiveWithFallback.d.ts +3 -0
  1146. package/lib-esm/hooks/useActiveWithFallback.js +2 -0
  1147. package/lib-esm/hooks/useContentItems.d.ts +12 -0
  1148. package/lib-esm/hooks/useContentItems.js +2 -0
  1149. package/lib-esm/hooks/useLicense.d.ts +5 -0
  1150. package/lib-esm/hooks/useLicense.js +2 -0
  1151. package/lib-esm/hooks/usePerformanceMetrics.d.ts +5 -0
  1152. package/lib-esm/hooks/usePerformanceMetrics.js +2 -0
  1153. package/lib-esm/hooks/useRouter.d.ts +13 -0
  1154. package/lib-esm/hooks/useRouter.js +2 -0
  1155. package/lib-esm/hooks/useTelemetry.d.ts +2 -0
  1156. package/lib-esm/hooks/useTelemetry.js +2 -0
  1157. package/lib-esm/hooks/useTranslate.d.ts +2 -0
  1158. package/lib-esm/hooks/useTranslate.js +2 -0
  1159. package/lib-esm/hooks/useUppercase2LowercaseRedirect.d.ts +1 -0
  1160. package/lib-esm/hooks/useUppercase2LowercaseRedirect.js +2 -0
  1161. package/lib-esm/icons/CSharpIcon/CSharpIcon.d.ts +4 -0
  1162. package/lib-esm/icons/CSharpIcon/CSharpIcon.js +2 -0
  1163. package/lib-esm/icons/CSharpIcon/index.d.ts +1 -0
  1164. package/lib-esm/icons/CSharpIcon/index.js +2 -0
  1165. package/lib-esm/icons/CurlIcon/CurlIcon.d.ts +6 -0
  1166. package/lib-esm/icons/CurlIcon/CurlIcon.js +15 -0
  1167. package/lib-esm/icons/CurlIcon/index.d.ts +1 -0
  1168. package/lib-esm/icons/CurlIcon/index.js +2 -0
  1169. package/lib-esm/icons/GOIcon/GOIcon.d.ts +4 -0
  1170. package/lib-esm/icons/GOIcon/GOIcon.js +2 -0
  1171. package/lib-esm/icons/GOIcon/index.d.ts +1 -0
  1172. package/lib-esm/icons/GOIcon/index.js +2 -0
  1173. package/lib-esm/icons/JavaIcon/JavaIcon.d.ts +4 -0
  1174. package/lib-esm/icons/JavaIcon/JavaIcon.js +2 -0
  1175. package/lib-esm/icons/JavaIcon/index.d.ts +1 -0
  1176. package/lib-esm/icons/JavaIcon/index.js +2 -0
  1177. package/lib-esm/icons/JavaScriptIcon/JavaScriptIcon.d.ts +4 -0
  1178. package/lib-esm/icons/JavaScriptIcon/JavaScriptIcon.js +2 -0
  1179. package/lib-esm/icons/JavaScriptIcon/index.d.ts +1 -0
  1180. package/lib-esm/icons/JavaScriptIcon/index.js +2 -0
  1181. package/lib-esm/icons/NodeJSIcon/NodeJSIcon.d.ts +4 -0
  1182. package/lib-esm/icons/NodeJSIcon/NodeJSIcon.js +2 -0
  1183. package/lib-esm/icons/NodeJSIcon/index.d.ts +1 -0
  1184. package/lib-esm/icons/NodeJSIcon/index.js +2 -0
  1185. package/lib-esm/icons/PHPIcon/PHPIcon.d.ts +4 -0
  1186. package/lib-esm/icons/PHPIcon/PHPIcon.js +2 -0
  1187. package/lib-esm/icons/PHPIcon/index.d.ts +1 -0
  1188. package/lib-esm/icons/PHPIcon/index.js +2 -0
  1189. package/lib-esm/icons/PayloadIcon/PayloadIcon.d.ts +4 -0
  1190. package/lib-esm/icons/PayloadIcon/PayloadIcon.js +2 -0
  1191. package/lib-esm/icons/PayloadIcon/index.d.ts +1 -0
  1192. package/lib-esm/icons/PayloadIcon/index.js +2 -0
  1193. package/lib-esm/icons/PythonIcon/PythonIcon.d.ts +4 -0
  1194. package/lib-esm/icons/PythonIcon/PythonIcon.js +2 -0
  1195. package/lib-esm/icons/PythonIcon/index.d.ts +1 -0
  1196. package/lib-esm/icons/PythonIcon/index.js +2 -0
  1197. package/lib-esm/icons/RIcon/RIcon.d.ts +4 -0
  1198. package/lib-esm/icons/RIcon/RIcon.js +2 -0
  1199. package/lib-esm/icons/RIcon/index.d.ts +1 -0
  1200. package/lib-esm/icons/RIcon/index.js +2 -0
  1201. package/lib-esm/icons/RubyIcon/RubyIcon.d.ts +4 -0
  1202. package/lib-esm/icons/RubyIcon/RubyIcon.js +2 -0
  1203. package/lib-esm/icons/RubyIcon/index.d.ts +1 -0
  1204. package/lib-esm/icons/RubyIcon/index.js +2 -0
  1205. package/lib-esm/index.d.ts +44 -0
  1206. package/lib-esm/index.js +2 -0
  1207. package/lib-esm/jotai/app.d.ts +51 -0
  1208. package/lib-esm/jotai/app.js +2 -0
  1209. package/lib-esm/jotai/operation.d.ts +37 -0
  1210. package/lib-esm/jotai/operation.js +2 -0
  1211. package/lib-esm/jotai/replay.d.ts +7 -0
  1212. package/lib-esm/jotai/replay.js +2 -0
  1213. package/lib-esm/jotai/store.d.ts +16 -0
  1214. package/lib-esm/jotai/store.js +2 -0
  1215. package/lib-esm/jotai/use-write-atom.d.ts +1 -0
  1216. package/lib-esm/jotai/use-write-atom.js +2 -0
  1217. package/lib-esm/models/callback.d.ts +5 -0
  1218. package/lib-esm/models/callback.js +2 -0
  1219. package/lib-esm/models/code-sample-options.d.ts +8 -0
  1220. package/lib-esm/models/code-sample-options.js +2 -0
  1221. package/lib-esm/models/example.d.ts +9 -0
  1222. package/lib-esm/models/example.js +2 -0
  1223. package/lib-esm/models/field.d.ts +7 -0
  1224. package/lib-esm/models/field.js +2 -0
  1225. package/lib-esm/models/group.d.ts +4 -0
  1226. package/lib-esm/models/group.js +2 -0
  1227. package/lib-esm/models/index.d.ts +15 -0
  1228. package/lib-esm/models/index.js +2 -0
  1229. package/lib-esm/models/mediaContent.d.ts +7 -0
  1230. package/lib-esm/models/mediaContent.js +2 -0
  1231. package/lib-esm/models/mediaType.d.ts +19 -0
  1232. package/lib-esm/models/mediaType.js +2 -0
  1233. package/lib-esm/models/operation.d.ts +20 -0
  1234. package/lib-esm/models/operation.js +2 -0
  1235. package/lib-esm/models/request.d.ts +12 -0
  1236. package/lib-esm/models/request.js +2 -0
  1237. package/lib-esm/models/response.d.ts +14 -0
  1238. package/lib-esm/models/response.js +2 -0
  1239. package/lib-esm/models/schema.d.ts +13 -0
  1240. package/lib-esm/models/schema.js +2 -0
  1241. package/lib-esm/models/security.d.ts +8 -0
  1242. package/lib-esm/models/security.js +2 -0
  1243. package/lib-esm/models/tab.d.ts +4 -0
  1244. package/lib-esm/models/tab.js +2 -0
  1245. package/lib-esm/models/types.d.ts +265 -0
  1246. package/lib-esm/models/types.js +2 -0
  1247. package/lib-esm/services/OpenAPIParser.d.ts +52 -0
  1248. package/lib-esm/services/OpenAPIParser.js +2 -0
  1249. package/lib-esm/services/check.d.ts +13 -0
  1250. package/lib-esm/services/check.js +2 -0
  1251. package/lib-esm/services/code-samples/constants.d.ts +2 -0
  1252. package/lib-esm/services/code-samples/constants.js +2 -0
  1253. package/lib-esm/services/code-samples/generator.d.ts +29 -0
  1254. package/lib-esm/services/code-samples/generator.js +2 -0
  1255. package/lib-esm/services/code-samples/httpsnippet/helpers/code-builder.d.ts +83 -0
  1256. package/lib-esm/services/code-samples/httpsnippet/helpers/code-builder.js +2 -0
  1257. package/lib-esm/services/code-samples/httpsnippet/helpers/code-helpers.d.ts +28 -0
  1258. package/lib-esm/services/code-samples/httpsnippet/helpers/code-helpers.js +2 -0
  1259. package/lib-esm/services/code-samples/httpsnippet/helpers/constants.d.ts +24 -0
  1260. package/lib-esm/services/code-samples/httpsnippet/helpers/constants.js +2 -0
  1261. package/lib-esm/services/code-samples/httpsnippet/helpers/lodash-int.d.ts +5 -0
  1262. package/lib-esm/services/code-samples/httpsnippet/helpers/lodash-int.js +2 -0
  1263. package/lib-esm/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.d.ts +30 -0
  1264. package/lib-esm/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.js +2 -0
  1265. package/lib-esm/services/code-samples/httpsnippet/helpers/reducer.d.ts +1 -0
  1266. package/lib-esm/services/code-samples/httpsnippet/helpers/reducer.js +2 -0
  1267. package/lib-esm/services/code-samples/httpsnippet/helpers/shell.d.ts +10 -0
  1268. package/lib-esm/services/code-samples/httpsnippet/helpers/shell.js +2 -0
  1269. package/lib-esm/services/code-samples/httpsnippet/helpers/string-utility.d.ts +7 -0
  1270. package/lib-esm/services/code-samples/httpsnippet/helpers/string-utility.js +2 -0
  1271. package/lib-esm/services/code-samples/httpsnippet/index.d.ts +47 -0
  1272. package/lib-esm/services/code-samples/httpsnippet/index.js +2 -0
  1273. package/lib-esm/services/code-samples/httpsnippet/targets/__mocks__/mock.d.ts +3565 -0
  1274. package/lib-esm/services/code-samples/httpsnippet/targets/__mocks__/mock.js +2 -0
  1275. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.d.ts +10 -0
  1276. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.js +2 -0
  1277. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/index.d.ts +10 -0
  1278. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/index.js +2 -0
  1279. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.d.ts +10 -0
  1280. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.js +2 -0
  1281. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.d.ts +10 -0
  1282. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.js +2 -0
  1283. package/lib-esm/services/code-samples/httpsnippet/targets/go/index.d.ts +10 -0
  1284. package/lib-esm/services/code-samples/httpsnippet/targets/go/index.js +2 -0
  1285. package/lib-esm/services/code-samples/httpsnippet/targets/go/native.d.ts +10 -0
  1286. package/lib-esm/services/code-samples/httpsnippet/targets/go/native.js +2 -0
  1287. package/lib-esm/services/code-samples/httpsnippet/targets/index.d.ts +115 -0
  1288. package/lib-esm/services/code-samples/httpsnippet/targets/index.js +2 -0
  1289. package/lib-esm/services/code-samples/httpsnippet/targets/java/httpclient.d.ts +10 -0
  1290. package/lib-esm/services/code-samples/httpsnippet/targets/java/httpclient.js +2 -0
  1291. package/lib-esm/services/code-samples/httpsnippet/targets/java/index.d.ts +10 -0
  1292. package/lib-esm/services/code-samples/httpsnippet/targets/java/index.js +2 -0
  1293. package/lib-esm/services/code-samples/httpsnippet/targets/java8/apachehttp.d.ts +10 -0
  1294. package/lib-esm/services/code-samples/httpsnippet/targets/java8/apachehttp.js +2 -0
  1295. package/lib-esm/services/code-samples/httpsnippet/targets/java8/index.d.ts +10 -0
  1296. package/lib-esm/services/code-samples/httpsnippet/targets/java8/index.js +2 -0
  1297. package/lib-esm/services/code-samples/httpsnippet/targets/javascript/fetch.d.ts +10 -0
  1298. package/lib-esm/services/code-samples/httpsnippet/targets/javascript/fetch.js +2 -0
  1299. package/lib-esm/services/code-samples/httpsnippet/targets/javascript/index.d.ts +12 -0
  1300. package/lib-esm/services/code-samples/httpsnippet/targets/javascript/index.js +2 -0
  1301. package/lib-esm/services/code-samples/httpsnippet/targets/node/fetch.d.ts +10 -0
  1302. package/lib-esm/services/code-samples/httpsnippet/targets/node/fetch.js +2 -0
  1303. package/lib-esm/services/code-samples/httpsnippet/targets/node/index.d.ts +10 -0
  1304. package/lib-esm/services/code-samples/httpsnippet/targets/node/index.js +2 -0
  1305. package/lib-esm/services/code-samples/httpsnippet/targets/php/curl.d.ts +10 -0
  1306. package/lib-esm/services/code-samples/httpsnippet/targets/php/curl.js +2 -0
  1307. package/lib-esm/services/code-samples/httpsnippet/targets/php/index.d.ts +10 -0
  1308. package/lib-esm/services/code-samples/httpsnippet/targets/php/index.js +2 -0
  1309. package/lib-esm/services/code-samples/httpsnippet/targets/php/types.d.ts +11 -0
  1310. package/lib-esm/services/code-samples/httpsnippet/targets/php/types.js +2 -0
  1311. package/lib-esm/services/code-samples/httpsnippet/targets/php/utils.d.ts +2 -0
  1312. package/lib-esm/services/code-samples/httpsnippet/targets/php/utils.js +2 -0
  1313. package/lib-esm/services/code-samples/httpsnippet/targets/python/index.d.ts +10 -0
  1314. package/lib-esm/services/code-samples/httpsnippet/targets/python/index.js +2 -0
  1315. package/lib-esm/services/code-samples/httpsnippet/targets/python/requests.d.ts +4 -0
  1316. package/lib-esm/services/code-samples/httpsnippet/targets/python/requests.js +2 -0
  1317. package/lib-esm/services/code-samples/httpsnippet/targets/r/httr.d.ts +4 -0
  1318. package/lib-esm/services/code-samples/httpsnippet/targets/r/httr.js +2 -0
  1319. package/lib-esm/services/code-samples/httpsnippet/targets/r/index.d.ts +10 -0
  1320. package/lib-esm/services/code-samples/httpsnippet/targets/r/index.js +2 -0
  1321. package/lib-esm/services/code-samples/httpsnippet/targets/r/utils.d.ts +5 -0
  1322. package/lib-esm/services/code-samples/httpsnippet/targets/r/utils.js +2 -0
  1323. package/lib-esm/services/code-samples/httpsnippet/targets/ruby/index.d.ts +10 -0
  1324. package/lib-esm/services/code-samples/httpsnippet/targets/ruby/index.js +2 -0
  1325. package/lib-esm/services/code-samples/httpsnippet/targets/ruby/native.d.ts +10 -0
  1326. package/lib-esm/services/code-samples/httpsnippet/targets/ruby/native.js +2 -0
  1327. package/lib-esm/services/code-samples/httpsnippet/targets/shell/curl.d.ts +10 -0
  1328. package/lib-esm/services/code-samples/httpsnippet/targets/shell/curl.js +2 -0
  1329. package/lib-esm/services/code-samples/httpsnippet/targets/shell/index.d.ts +12 -0
  1330. package/lib-esm/services/code-samples/httpsnippet/targets/shell/index.js +2 -0
  1331. package/lib-esm/services/code-samples/index.d.ts +2 -0
  1332. package/lib-esm/services/code-samples/index.js +2 -0
  1333. package/lib-esm/services/code-samples/types.d.ts +72 -0
  1334. package/lib-esm/services/code-samples/types.js +2 -0
  1335. package/lib-esm/services/config-options/helpers.d.ts +3 -0
  1336. package/lib-esm/services/config-options/helpers.js +2 -0
  1337. package/lib-esm/services/config-options/index.d.ts +2 -0
  1338. package/lib-esm/services/config-options/index.js +2 -0
  1339. package/lib-esm/services/config-options/normalizeOptions.d.ts +3 -0
  1340. package/lib-esm/services/config-options/normalizeOptions.js +2 -0
  1341. package/lib-esm/services/config-options/types.d.ts +55 -0
  1342. package/lib-esm/services/config-options/types.js +2 -0
  1343. package/lib-esm/services/history/helpers.d.ts +5 -0
  1344. package/lib-esm/services/history/helpers.js +2 -0
  1345. package/lib-esm/services/history/index.d.ts +1 -0
  1346. package/lib-esm/services/history/index.js +2 -0
  1347. package/lib-esm/services/index.d.ts +8 -0
  1348. package/lib-esm/services/index.js +2 -0
  1349. package/lib-esm/services/menu/builder.d.ts +8 -0
  1350. package/lib-esm/services/menu/builder.js +2 -0
  1351. package/lib-esm/services/menu/index.d.ts +1 -0
  1352. package/lib-esm/services/menu/index.js +2 -0
  1353. package/lib-esm/services/menu/markdown.d.ts +8 -0
  1354. package/lib-esm/services/menu/markdown.js +2 -0
  1355. package/lib-esm/services/menu/operation.d.ts +10 -0
  1356. package/lib-esm/services/menu/operation.js +2 -0
  1357. package/lib-esm/services/menu/tags.d.ts +27 -0
  1358. package/lib-esm/services/menu/tags.js +2 -0
  1359. package/lib-esm/services/types.d.ts +123 -0
  1360. package/lib-esm/services/types.js +2 -0
  1361. package/lib-esm/services/utils.d.ts +18 -0
  1362. package/lib-esm/services/utils.js +2 -0
  1363. package/lib-esm/standalone.d.ts +24 -0
  1364. package/lib-esm/standalone.js +2 -0
  1365. package/lib-esm/types/app.d.ts +6 -0
  1366. package/lib-esm/types/app.js +2 -0
  1367. package/lib-esm/types/index.d.ts +3 -0
  1368. package/lib-esm/types/index.js +2 -0
  1369. package/lib-esm/types/open-api.d.ts +368 -0
  1370. package/lib-esm/types/open-api.js +2 -0
  1371. package/lib-esm/types/security.d.ts +11 -0
  1372. package/lib-esm/types/security.js +2 -0
  1373. package/lib-esm/utils/JsonPointer.d.ts +51 -0
  1374. package/lib-esm/utils/JsonPointer.js +2 -0
  1375. package/lib-esm/utils/areArraysEqual.d.ts +1 -0
  1376. package/lib-esm/utils/areArraysEqual.js +2 -0
  1377. package/lib-esm/utils/argValuesHelpers.d.ts +4 -0
  1378. package/lib-esm/utils/argValuesHelpers.js +2 -0
  1379. package/lib-esm/utils/compose.d.ts +1 -0
  1380. package/lib-esm/utils/compose.js +2 -0
  1381. package/lib-esm/utils/configure-helpers.d.ts +11 -0
  1382. package/lib-esm/utils/configure-helpers.js +2 -0
  1383. package/lib-esm/utils/cookies.d.ts +7 -0
  1384. package/lib-esm/utils/cookies.js +2 -0
  1385. package/lib-esm/utils/createParsedDocument.d.ts +2 -0
  1386. package/lib-esm/utils/createParsedDocument.js +2 -0
  1387. package/lib-esm/utils/debounce.d.ts +1 -0
  1388. package/lib-esm/utils/debounce.js +2 -0
  1389. package/lib-esm/utils/debug.d.ts +2 -0
  1390. package/lib-esm/utils/debug.js +2 -0
  1391. package/lib-esm/utils/dom.d.ts +7 -0
  1392. package/lib-esm/utils/dom.js +2 -0
  1393. package/lib-esm/utils/environments.d.ts +4 -0
  1394. package/lib-esm/utils/environments.js +2 -0
  1395. package/lib-esm/utils/helpers.d.ts +46 -0
  1396. package/lib-esm/utils/helpers.js +2 -0
  1397. package/lib-esm/utils/index.d.ts +23 -0
  1398. package/lib-esm/utils/index.js +2 -0
  1399. package/lib-esm/utils/isMobile.d.ts +5 -0
  1400. package/lib-esm/utils/isMobile.js +2 -0
  1401. package/lib-esm/utils/loadAndBundleSpec.d.ts +3 -0
  1402. package/lib-esm/utils/loadAndBundleSpec.js +2 -0
  1403. package/lib-esm/utils/local-storage.d.ts +2 -0
  1404. package/lib-esm/utils/local-storage.js +2 -0
  1405. package/lib-esm/utils/object.d.ts +3 -0
  1406. package/lib-esm/utils/object.js +2 -0
  1407. package/lib-esm/utils/openapi.d.ts +43 -0
  1408. package/lib-esm/utils/openapi.js +2 -0
  1409. package/lib-esm/utils/parameters.d.ts +2 -0
  1410. package/lib-esm/utils/parameters.js +2 -0
  1411. package/lib-esm/utils/path.d.ts +4 -0
  1412. package/lib-esm/utils/path.js +2 -0
  1413. package/lib-esm/utils/queryString.d.ts +9 -0
  1414. package/lib-esm/utils/queryString.js +2 -0
  1415. package/lib-esm/utils/replaceVariables.d.ts +2 -0
  1416. package/lib-esm/utils/replaceVariables.js +2 -0
  1417. package/lib-esm/utils/saveTextBeforeHeading.d.ts +7 -0
  1418. package/lib-esm/utils/saveTextBeforeHeading.js +2 -0
  1419. package/lib-esm/utils/security-details.d.ts +9 -0
  1420. package/lib-esm/utils/security-details.js +2 -0
  1421. package/lib-esm/utils/session-storage.d.ts +2 -0
  1422. package/lib-esm/utils/session-storage.js +2 -0
  1423. package/lib-esm/utils/simplifyAstStructure.d.ts +2 -0
  1424. package/lib-esm/utils/simplifyAstStructure.js +2 -0
  1425. package/lib-esm/utils/sort.d.ts +6 -0
  1426. package/lib-esm/utils/sort.js +2 -0
  1427. package/lib-esm/utils/string.d.ts +13 -0
  1428. package/lib-esm/utils/string.js +2 -0
  1429. package/lib-esm/utils/test-utils.d.ts +1 -0
  1430. package/lib-esm/utils/test-utils.js +2 -0
  1431. package/lib-esm/utils/theme-helpers.d.ts +3 -0
  1432. package/lib-esm/utils/theme-helpers.js +4 -0
  1433. package/package.json +47 -25
  1434. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsStandalone.d.ts +0 -8
  1435. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsStandalone.js +0 -1
  1436. package/lib/styled-components.d.ts +0 -1
  1437. package/lib/styled-components.js +0 -1
  1438. package/lib/utils/convertSwagger2OpenAPI.d.ts +0 -2
  1439. package/lib/utils/convertSwagger2OpenAPI.js +0 -1
  1440. package/lib/utils/url.d.ts +0 -2
  1441. package/lib/utils/url.js +0 -1
@@ -1 +1,2 @@
1
- import{getTagOrGroup as u}from"../../models/group.js";import{DEFAULT_WEBHOOKS_TAG_NAME as h,GROUP_DEPTH as g}from"../../constants.js";import{getValueFromMdParsedExtension as l,isOperationName as x,JsonPointer as y}from"../../utils/index.js";import{getOperationsItems as T}from"./operation.js";import{addMarkdownItems as O}from"./markdown.js";function b(c,i,s,n,r){let e;if(n===void 0?e=Object.keys(i):e=n.tags,!Array.isArray(e))return console.warn("Unexpected values of tags. Check tags or x-tagGroups in your definition."),[];const f=e.map(t=>i[t]?(i[t].used=!0,i[t]):(console.warn(`Non-existing tag "${t}" is added to the group "${n?.name}"`),null)),a=[];for(const t of f){if(!t)continue;const o=u("tag",t,s);if(o.depth=g+1,t.name===""){const m=[...O(l(t,"description")||"",o,o.depth+1),...T(void 0,t,o.depth+1)];a.push(...m);continue}const p=k({definition:c.definition,tag:t,parent:o,schemaDefinitionsTagName:r.schemaDefinitionsTagName});o.items=[...p,...O(l(t,"description")||"",o,o.depth+1),...T(o,t,o.depth+1)],a.push(o)}return a.filter(({name:t,items:o})=>t!==h||o.length>0)}function G(c,i,s,n,r){const e=[];for(const f of s){const a=u("group",f,i);a.depth=g,a.items=b(c,n,a,f,r),e.push(a)}return e}function k({definition:c,tag:i,parent:s,schemaDefinitionsTagName:n}){const r=n?[n]:[];return Object.entries(c.components?.schemas||{}).map(([e,f])=>{if(!(f["x-tags"]||r).includes(i.name))return null;const t=u("schema",{name:e,"x-displayName":`${f.title||e}`,description:`{% schemaDefinition showWriteOnly="true" schemaRef="#/components/schemas/${e}" /%}`,isSchema:!0,level:2},s);return t.depth=s.depth+1,t}).filter(Boolean)}function I(c,i){const{definition:s}=c,n={},r=s["x-webhooks"]||s.webhooks;for(const e of i||[])n[e.name]={...e,operations:[]};return s.paths&&d(c,s.paths,n),r&&d(c,r,n,!0),n}function d(c,i,s,n){for(const r of Object.keys(i||{})){const e=i[r],f=Object.keys(e).filter(x);for(const a of f){const t=e[a];if(e.$ref){const{resolved:p}=c.deref(e);d(c,{[r]:p},s,n);continue}let o=t?.tags;(!o||!o.length)&&(o=n?[h]:[""]);for(const p of o){let m=s[p];m===void 0&&(m={name:p,operations:[]},s[p]=m),!m["x-traitTag"]&&m.operations.push({...t,pathName:r,pointer:y.compile(["paths",r,a]),httpVerb:a,pathParameters:e.parameters||[],pathServers:e.servers,isWebhook:!!n})}}}}export{G as getTagGroupsItems,b as getTagsItems,I as getTagsWithOperations};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getTagsItems=getTagsItems,exports.getTagGroupsItems=getTagGroupsItems,exports.getTagsWithOperations=getTagsWithOperations;const group_1=require("../../models/group"),constants_1=require("../../constants"),utils_1=require("../../utils"),operation_1=require("./operation"),markdown_1=require("./markdown");function getTagsItems(e,t,s,o,n){let a;if(a=void 0===o?Object.keys(t):o.tags,!Array.isArray(a))return console.warn("Unexpected values of tags. Check tags or x-tagGroups in your definition."),[];const r=a.map((e=>t[e]?(t[e].used=!0,t[e]):(console.warn(`Non-existing tag "${e}" is added to the group "${null==o?void 0:o.name}"`),null))),i=[];for(const t of r){if(!t)continue;const o=(0,group_1.getTagOrGroup)("tag",t,s);if(o.depth=constants_1.GROUP_DEPTH+1,""===t.name){const e=[...(0,markdown_1.addMarkdownItems)((0,utils_1.getValueFromMdParsedExtension)(t,"description")||"",o,o.depth+1),...(0,operation_1.getOperationsItems)(void 0,t,o.depth+1)];i.push(...e);continue}const a=getTagRelatedSchema({definition:e.definition,tag:t,parent:o,schemaDefinitionsTagName:n.schemaDefinitionsTagName});o.items=[...a,...(0,markdown_1.addMarkdownItems)((0,utils_1.getValueFromMdParsedExtension)(t,"description")||"",o,o.depth+1),...(0,operation_1.getOperationsItems)(o,t,o.depth+1)],i.push(o)}return i.filter((({name:e,items:t})=>e!==constants_1.DEFAULT_WEBHOOKS_TAG_NAME||t.length>0))}function getTagGroupsItems(e,t,s,o,n){const a=[];for(const r of s){const s=(0,group_1.getTagOrGroup)("group",r,t);s.depth=constants_1.GROUP_DEPTH,s.items=getTagsItems(e,o,s,r,n),a.push(s)}return a}function getTagRelatedSchema({definition:e,tag:t,parent:s,schemaDefinitionsTagName:o}){var n;const a=o?[o]:[];return Object.entries((null===(n=e.components)||void 0===n?void 0:n.schemas)||{}).map((([e,o])=>{if(!(o["x-tags"]||a).includes(t.name))return null;const n=(0,group_1.getTagOrGroup)("schema",{name:e,"x-displayName":`${o.title||e}`,description:`{% schemaDefinition showWriteOnly="true" schemaRef="#/components/schemas/${e}" /%}`,isSchema:!0,level:2},s);return n.depth=s.depth+1,n})).filter(Boolean)}function getTagsWithOperations(e,t){const{definition:s}=e,o={},n=s["x-webhooks"]||s.webhooks;for(const e of t||[])o[e.name]=Object.assign(Object.assign({},e),{operations:[]});return s.paths&&getTags(e,s.paths,o),n&&getTags(e,n,o,!0),o}function getTags(e,t,s,o){for(const n of Object.keys(t||{})){const a=t[n],r=Object.keys(a).filter(utils_1.isOperationName);for(const t of r){const r=a[t];if(a.$ref){const{resolved:t}=e.deref(a);getTags(e,{[n]:t},s,o);continue}let i=null==r?void 0:r.tags;i&&i.length||(i=o?[constants_1.DEFAULT_WEBHOOKS_TAG_NAME]:[""]);for(const e of i){let i=s[e];void 0===i&&(i={name:e,operations:[]},s[e]=i),i["x-traitTag"]||i.operations.push(Object.assign(Object.assign({},r),{pathName:n,pointer:utils_1.JsonPointer.compile(["paths",n,t]),httpVerb:t,pathParameters:a.parameters||[],pathServers:a.servers,isWebhook:!!o}))}}}}
2
+ //# sourceMappingURL=tags.js.map
@@ -1,7 +1,7 @@
1
1
  import type { REDOCLY_TEAMS_RBAC } from '@redocly/config';
2
2
  import type { ReactElement } from 'react';
3
3
  import type { Node } from '@markdoc/markdoc';
4
- import type { OpenAPIDefinition, OpenAPIInfo, OpenAPIOperation, OpenAPIParameter, OpenAPISchema, OpenAPIServer, OpenAPITag, Referenced } from '../types/index.js';
4
+ import type { OpenAPIDefinition, OpenAPIInfo, OpenAPIOperation, OpenAPIParameter, OpenAPISchema, OpenAPIServer, OpenAPITag, Referenced } from '../types';
5
5
  import type { OperationModel, Sample } from '../models';
6
6
  export type Normalized<T> = {
7
7
  [P in keyof T]-?: T[P];
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
2
+ //# sourceMappingURL=types.js.map
@@ -1 +1,2 @@
1
- import c from"deepmerge";import{isObject as i}from"@redocly/theme";import{isMergeableObject as u}from"../utils/index.js";function b(e,r){return!e||!r?!1:s(e)===s(r)}function s(e){if(!e)return;const r=e.split(";")[0].toLowerCase(),[t,n]=r.split("/");if(n===void 0)return t;const p=n.split("+").pop();return`${t}/${p}`}function m(e){const r=new RegExp("%7B","g"),t=new RegExp("%7D","g");return e.replace(r,"{").replace(t,"}").replace("///","//").replace("./",".")}function a(e,r){if(!(e.length&&f(e)))return r;const t=e.filter(n=>Object.keys(n).length>0);return r.forEach(function(n,o){u(n)?t[o]=c(e[o],n,{arrayMerge:a}):Array.isArray(n)?t.push(n):t[o]=n}),t}const f=e=>e.some(r=>i(r)&&Object.keys(r).length>0);function w(e){return!!e&&Object.keys(e).length===0}const x=typeof window<"u"&&(window.crypto||window.msCrypto)||void 0;function l(e){if(typeof e!="object"||e===null)return e;const r=Array.isArray(e)?[]:{};for(const t in e){const n=e[t];r[t]=l(n)}return r}export{a as arrayMergeStrategy,x as cryptoLib,l as deepClone,w as isEmptyObject,b as isSameMime,s as normalizeMimeType,m as unescapeServerVariables};
1
+ "use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.cryptoLib=void 0,exports.isSameMime=isSameMime,exports.normalizeMimeType=normalizeMimeType,exports.unescapeServerVariables=unescapeServerVariables,exports.arrayMergeStrategy=arrayMergeStrategy,exports.isEmptyObject=isEmptyObject,exports.deepClone=deepClone;const deepmerge_1=__importDefault(require("deepmerge")),theme_1=require("@redocly/theme"),utils_1=require("../utils");function isSameMime(e,r){return!(!e||!r)&&normalizeMimeType(e)===normalizeMimeType(r)}function normalizeMimeType(e){if(!e)return;const r=e.split(";")[0].toLowerCase(),[t,i]=r.split("/");if(void 0===i)return t;return`${t}/${i.split("+").pop()}`}function unescapeServerVariables(e){const r=new RegExp("%7B","g"),t=new RegExp("%7D","g");return e.replace(r,"{").replace(t,"}").replace("///","//").replace("./",".")}function arrayMergeStrategy(e,r){if(!e.length||!hasObjectOrArray(e))return r;const t=e.filter((e=>Object.keys(e).length>0));return r.forEach((function(r,i){(0,utils_1.isMergeableObject)(r)?t[i]=(0,deepmerge_1.default)(e[i],r,{arrayMerge:arrayMergeStrategy}):Array.isArray(r)?t.push(r):t[i]=r})),t}const hasObjectOrArray=e=>e.some((e=>(0,theme_1.isObject)(e)&&Object.keys(e).length>0));function isEmptyObject(e){return!!e&&0===Object.keys(e).length}function deepClone(e){if("object"!=typeof e||null===e)return e;const r=Array.isArray(e)?[]:{};for(const t in e){const i=e[t];r[t]=deepClone(i)}return r}exports.cryptoLib="undefined"!=typeof window&&(window.crypto||window.msCrypto)||void 0;
2
+ //# sourceMappingURL=utils.js.map
@@ -1,9 +1,24 @@
1
+ import 'core-js/es/array/find-index';
2
+ import 'core-js/es/array/find';
3
+ import 'core-js/es/array/includes';
4
+ import 'core-js/es/map';
5
+ import 'core-js/es/number/is-integer';
6
+ import 'core-js/es/object/assign';
7
+ import 'core-js/es/object/entries';
8
+ import 'core-js/es/object/is';
9
+ import 'core-js/es/object/values';
10
+ import 'core-js/es/promise';
11
+ import 'core-js/es/string/ends-with';
12
+ import 'core-js/es/string/starts-with';
13
+ import 'core-js/es/symbol';
14
+ import 'unfetch/polyfill/index';
15
+ import 'url-polyfill';
1
16
  import type { RedocConfig } from '@redocly/config';
2
- import type { OpenAPIDefinition } from './types/open-api.js';
3
- import type { StoreProviderProps } from './components/RedoclyOpenAPIDocs/types.js';
4
- export { setSecurityDetails, setSecurityDetailsVariants } from './utils/security-details.js';
5
- export { setParameterValue } from './utils/parameters.js';
17
+ import type { OpenAPIDefinition } from './types';
18
+ import type { StoreProviderProps } from './components';
19
+ export { setSecurityDetails, setParameterValue, setSecurityDetailsVariants } from './utils';
6
20
  export declare function hydrate(store: StoreProviderProps, element?: Element | null): void;
7
21
  export declare function init(definitionOrDefinitionUrl: string | OpenAPIDefinition, options?: RedocConfig, element?: Element | null): void;
22
+ export declare function setPublicPath(path: string): void;
8
23
  export declare const version: string;
9
24
  export declare const revision: string;
package/lib/standalone.js CHANGED
@@ -1 +1,2 @@
1
- import{jsx as i}from"react/jsx-runtime";import{createElement as p}from"react";import{createRoot as m,hydrateRoot as u}from"react-dom/client";import{querySelector as s}from"./utils/dom.js";import{RedoclyOpenAPIDocs as l}from"./components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.js";import{RedoclyOpenAPIDocsStandalone as f}from"./components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsStandalone.js";import{setSecurityDetails as v,setSecurityDetailsVariants as O}from"./utils/security-details.js";import{setParameterValue as j}from"./utils/parameters.js";function _(t){const e={},o=t.attributes;for(let r=0;r<o.length;r++){const n=o[r];e[n.name]=n.value}return e}function d(t){const e=_(t),o={};for(const r in e){const n=r.replace(/-(.)/g,(c,a)=>a.toUpperCase());o[n]=e[r]}return o}function N(t,e=document.querySelector("redoc")){u(e,i(l,{store:t}))}function E(t,e={},o=s("redoc")){if(o===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let r,n;typeof t=="string"?r=t:typeof t=="object"&&(n=t),m(o).render(p(f,{definition:n,definitionUrl:r,options:{...e,...d(o)}},["Loading..."]))}const b=__REDOCLY_API_REFERENCE_VERSION__,h=__REDOCLY_API_REFERENCE_REVISION__;function R(){const t=s("redoc");if(!t)return;const e=t.getAttribute("spec-url");e&&E(e,{},t)}R();export{N as hydrate,E as init,h as revision,j as setParameterValue,v as setSecurityDetails,O as setSecurityDetailsVariants,b as version};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.revision=exports.version=exports.setSecurityDetailsVariants=exports.setParameterValue=exports.setSecurityDetails=void 0,exports.hydrate=hydrate,exports.init=init,exports.setPublicPath=setPublicPath;const jsx_runtime_1=require("react/jsx-runtime");require("core-js/es/array/find-index"),require("core-js/es/array/find"),require("core-js/es/array/includes"),require("core-js/es/map"),require("core-js/es/number/is-integer"),require("core-js/es/object/assign"),require("core-js/es/object/entries"),require("core-js/es/object/is"),require("core-js/es/object/values"),require("core-js/es/promise"),require("core-js/es/string/ends-with"),require("core-js/es/string/starts-with"),require("core-js/es/symbol"),require("unfetch/polyfill/index"),require("url-polyfill");const path_1=require("path"),react_1=require("react"),client_1=require("react-dom/client"),theme_1=require("@redocly/theme"),utils_1=require("./utils"),components_1=require("./components");var utils_2=require("./utils");Object.defineProperty(exports,"setSecurityDetails",{enumerable:!0,get:function(){return utils_2.setSecurityDetails}}),Object.defineProperty(exports,"setParameterValue",{enumerable:!0,get:function(){return utils_2.setParameterValue}}),Object.defineProperty(exports,"setSecurityDetailsVariants",{enumerable:!0,get:function(){return utils_2.setSecurityDetailsVariants}});const url=(0,utils_1.getJsUrl)(),__dirname=url?(0,path_1.dirname)(url)+"/":"";function attributesMap(e){const t={},r=e.attributes;for(let e=0;e<r.length;e++){const i=r[e];t[i.name]=i.value}return t}function parseOptionsFromElement(e){const t=attributesMap(e),r={};for(const e in t){r[e.replace(/-(.)/g,((e,t)=>t.toUpperCase()))]=t[e]}return r}function hydrate(e,t=document.querySelector("redoc")){(0,client_1.hydrateRoot)(t,(0,jsx_runtime_1.jsx)(components_1.RedoclyOpenAPIDocs,{store:e}))}function init(e,t={},r=(0,utils_1.querySelector)("redoc")){if(null===r)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let i,s;"string"==typeof e?i=e:"object"==typeof e&&(s=e);(0,client_1.createRoot)(r).render((0,react_1.createElement)(components_1.RedoclyOpenAPIDocsStandalone,{definition:s,definitionUrl:i,options:Object.assign(Object.assign({},t),parseOptionsFromElement(r))},["Loading..."]))}function setPublicPath(e){__webpack_public_path__=e}function autoInit(){const e=(0,utils_1.querySelector)("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&init(t,{},e)}exports.version=__REDOCLY_API_REFERENCE_VERSION__,exports.revision=__REDOCLY_API_REFERENCE_REVISION__,theme_1.IS_BROWSER&&setPublicPath(__dirname),autoInit();
2
+ //# sourceMappingURL=standalone.js.map
package/lib/types/app.js CHANGED
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
2
+ //# sourceMappingURL=app.js.map
@@ -1,3 +1,3 @@
1
- export * from './open-api.js';
2
- export * from './security.js';
3
- export * from './app.js';
1
+ export * from './open-api';
2
+ export * from './security';
3
+ export * from './app';
@@ -1 +1,2 @@
1
- export*from"./open-api.js";export*from"./security.js";export*from"./app.js";
1
+ "use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,o)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),__exportStar=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||__createBinding(t,e,r)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./open-api"),exports),__exportStar(require("./security"),exports),__exportStar(require("./app"),exports);
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
2
+ //# sourceMappingURL=open-api.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
2
+ //# sourceMappingURL=security.js.map
@@ -1 +1,2 @@
1
- import a from"json-pointer";const n=a.parse;class s{static baseName(e="",t=1){const r=s.parse(e);return r[r.length-t]}static dirName(e,t=1){const r=s.parse(e);return a.compile(r.slice(0,r.length-t))}static relative(e,t){const r=s.parse(e);return s.parse(t).slice(r.length)}static parse(e=""){let t=e;return t.charAt(0)==="#"&&(t=t.substring(1)),n(t)}static join(e,t){const c=s.parse(e).concat(t);return a.compile(c)}static get(e,t){return a.get(e,t)}static compile(e){return a.compile(e)}static escape(e){return a.escape(e)}}a.parse=s.parse,Object.assign(s,a);var i=s;export{s as JsonPointer,i as default};
1
+ "use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.JsonPointer=void 0;const json_pointer_1=__importDefault(require("json-pointer")),origParse=json_pointer_1.default.parse;class JsonPointer{static baseName(e="",t=1){const r=JsonPointer.parse(e);return r[r.length-t]}static dirName(e,t=1){const r=JsonPointer.parse(e);return json_pointer_1.default.compile(r.slice(0,r.length-t))}static relative(e,t){const r=JsonPointer.parse(e);return JsonPointer.parse(t).slice(r.length)}static parse(e=""){let t=e;return"#"===t.charAt(0)&&(t=t.substring(1)),origParse(t)}static join(e,t){const r=JsonPointer.parse(e).concat(t);return json_pointer_1.default.compile(r)}static get(e,t){return json_pointer_1.default.get(e,t)}static compile(e){return json_pointer_1.default.compile(e)}static escape(e){return json_pointer_1.default.escape(e)}}exports.JsonPointer=JsonPointer,json_pointer_1.default.parse=JsonPointer.parse,Object.assign(JsonPointer,json_pointer_1.default),exports.default=JsonPointer;
2
+ //# sourceMappingURL=JsonPointer.js.map
@@ -1 +1,2 @@
1
- function r(e,n){return e.length===n.length&&e.every((t,l)=>t===n[l])}export{r as areArraysEqual};
1
+ "use strict";function areArraysEqual(e,r){return e.length===r.length&&e.every(((e,a)=>e===r[a]))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.areArraysEqual=areArraysEqual;
2
+ //# sourceMappingURL=areArraysEqual.js.map
@@ -1 +1,2 @@
1
- function e(r,n){return r===void 0?n||!1:typeof r=="string"?r!=="false":r}function f(r,n=0){return typeof r=="string"?parseInt(r,10):typeof r=="number"?r:n}function t(r,n=0){return typeof r=="string"?parseInt(r,10):typeof r=="number"?Math.ceil(r):n}function i(r,n){return r===void 0?n:r==="all"?1/0:t(r,n)}export{e as argValueToBoolean,i as argValueToExpandLevel,t as argValueToInt,f as argValueToNumber};
1
+ "use strict";function argValueToBoolean(e,r){return void 0===e?r||!1:"string"==typeof e?"false"!==e:e}function argValueToNumber(e,r=0){return"string"==typeof e?parseInt(e,10):"number"==typeof e?e:r}function argValueToInt(e,r=0){return"string"==typeof e?parseInt(e,10):"number"==typeof e?Math.ceil(e):r}function argValueToExpandLevel(e,r){return void 0===e?r:"all"===e?1/0:argValueToInt(e,r)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.argValueToBoolean=argValueToBoolean,exports.argValueToNumber=argValueToNumber,exports.argValueToInt=argValueToInt,exports.argValueToExpandLevel=argValueToExpandLevel;
2
+ //# sourceMappingURL=argValuesHelpers.js.map
@@ -1 +1,2 @@
1
- const s=(e,...o)=>o.reduce((c,p)=>r=>c(p(r)),e);export{s as compose};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compose=void 0;const compose=(e,...o)=>o.reduce(((e,o)=>s=>e(o(s))),e);exports.compose=compose;
2
+ //# sourceMappingURL=compose.js.map
@@ -1,4 +1,4 @@
1
- import type { OperationModel, SecurityCredentials, FieldModel } from '../models/types.js';
1
+ import type { OperationModel, SecurityCredentials, FieldModel } from '../models/types';
2
2
  import type { ConfigureRequestValues, ConfigureServerRequestValues, SecurityDetails } from '@redocly/theme';
3
3
  export declare function updateOperationWithRequestValues(operation: OperationModel, userDefinedRequestValues: ConfigureRequestValues | ConfigureServerRequestValues): void;
4
4
  export declare function updateParametersWithUserValues(param: FieldModel, userDefinedRequestValues?: ConfigureRequestValues | ConfigureServerRequestValues): void;
@@ -1 +1,2 @@
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};
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 +1,2 @@
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
+ "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
@@ -0,0 +1,2 @@
1
+ import type { Document } from '@redocly/openapi-core';
2
+ export declare function createParsedDocument(specUrlOrObject: GenericObject | string): Document;
@@ -0,0 +1,2 @@
1
+ "use strict";function createParsedDocument(e){return{source:{absoluteRef:""},parsed:e}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.createParsedDocument=createParsedDocument;
2
+ //# sourceMappingURL=createParsedDocument.js.map
@@ -1 +1,2 @@
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
+ "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 +1,2 @@
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};
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
package/lib/utils/dom.js CHANGED
@@ -1 +1,2 @@
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
+ "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,4 +1,4 @@
1
- import type { OpenAPIServer } from '../types/index.js';
1
+ import type { OpenAPIServer } from '../types';
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 +1,2 @@
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
+ "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,12 +1,2 @@
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
+ "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,23 +1,23 @@
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
+ 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 +1,2 @@
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
+ "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 +1,2 @@
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
+ "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,2 +1,3 @@
1
- import type { OpenAPIDefinition } from '../types/index.js';
2
- export declare function loadAndBundleDefinition(specUrlOrObject: Record<string, any> | string): Promise<OpenAPIDefinition>;
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 +1,2 @@
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
+ "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 +1,2 @@
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
+ "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 +1,2 @@
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
+ "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,7 +1,7 @@
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';
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';
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 +1,2 @@
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
+ "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 +1,2 @@
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};
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
package/lib/utils/path.js CHANGED
@@ -1 +1,2 @@
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
+ "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 +1,2 @@
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
+ "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,2 +1,2 @@
1
- import type { OpenAPIServer } from '../types/index.js';
1
+ import type { OpenAPIServer } from '../types';
2
2
  export declare function replaceVariables(server: OpenAPIServer): string;
@@ -1 +1,2 @@
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
+ "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 +1,2 @@
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
+ "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,4 +1,4 @@
1
- import type { SecurityDetails } from '../types/index.js';
1
+ import type { SecurityDetails } from '../types';
2
2
  export declare function setSecurityDetailsVariants(name: string, variants: {
3
3
  label: string;
4
4
  details: SecurityDetails | string;
@@ -1 +1,2 @@
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
+ "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 +1,2 @@
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
+ "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