@redocly/reference-docs 2.13.1 → 2.13.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (330) hide show
  1. package/bin/cli/commands/redocly-docs-cli.min.js +29 -29
  2. package/bin/cli/commands/redocly-docs-cli.min.js.LICENSE.txt +1 -1
  3. package/dist/console.redocly-reference-docs.min.js +1 -1
  4. package/dist/oauth2-redirect.js +1 -1
  5. package/dist/redocly-reference-docs.min.js +514 -514
  6. package/lib/components/Endpoint/Endpoint.d.ts +2 -2
  7. package/lib/components/Endpoint/ServerList.d.ts +2 -2
  8. package/lib/components/Endpoint/Summary.d.ts +3 -3
  9. package/lib/components/NextSectionButton.d.ts +2 -2
  10. package/lib/components/Overlay.d.ts +1 -1
  11. package/lib/components/Panel/PanelComponent.d.ts +2 -1
  12. package/lib/components/ProProviders.d.ts +2 -2
  13. package/lib/components/RedoclyReferenceDocs.d.ts +3 -3
  14. package/lib/components/Samples/ExampleSwitch.d.ts +1 -1
  15. package/lib/components/Samples/SamplesTabs.d.ts +1 -1
  16. package/lib/components/Samples/use-example-key.d.ts +1 -1
  17. package/lib/components/Search/MenuItemProSearch.d.ts +2 -2
  18. package/lib/components/Search/MenuItemProSearch.js +1 -1
  19. package/lib/components/Search/ProSearchBox.d.ts +5 -5
  20. package/lib/components/Search/SearchField.d.ts +1 -1
  21. package/lib/components/StoreProvider.d.ts +3 -2
  22. package/lib/components/Tabs/CollapsingTabs/CollapsingTabs.d.ts +1 -1
  23. package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +2 -2
  24. package/lib/components/VersionSwitcher.d.ts +2 -2
  25. package/lib/components/common/CheckboxList.d.ts +3 -2
  26. package/lib/components/common/Dropdown/Dropdown.d.ts +1 -1
  27. package/lib/components/common/Dropdown/types.d.ts +1 -1
  28. package/lib/components/common/FileUpload/helper.d.ts +1 -1
  29. package/lib/components/common/TextField.d.ts +1 -1
  30. package/lib/components/console/ActionPanel.d.ts +2 -2
  31. package/lib/components/console/AuthPanel.d.ts +4 -4
  32. package/lib/components/console/CodemirrorInput.d.ts +1 -1
  33. package/lib/components/console/Console.d.ts +6 -6
  34. package/lib/components/console/OAuth2Flow.d.ts +4 -4
  35. package/lib/components/console/OAuth2TokenInput.d.ts +1 -1
  36. package/lib/components/console/OpenIDConnect.d.ts +3 -3
  37. package/lib/components/console/OperationParameters.d.ts +1 -1
  38. package/lib/components/console/RequestBody.d.ts +2 -2
  39. package/lib/components/console/RequestBodyForm.d.ts +1 -1
  40. package/lib/components/console/ResponseBody.d.ts +1 -1
  41. package/lib/components/console/ResponsePanel.d.ts +1 -1
  42. package/lib/components/console/ServerDropdown.d.ts +1 -1
  43. package/lib/components/console/utils.d.ts +1 -1
  44. package/lib/components/pluggable/RedocExample.d.ts +2 -2
  45. package/lib/components/pluggable/RedocRequestBody.d.ts +1 -1
  46. package/lib/components/pluggable/RedocResponse.d.ts +1 -1
  47. package/lib/components/pluggable/RedocSchema.d.ts +2 -2
  48. package/lib/components/pluggable/styled.components.d.ts +1 -1
  49. package/lib/components/styled.elements.d.ts +3 -2
  50. package/lib/models/code-sample-options.d.ts +1 -1
  51. package/lib/redoc-lib/src/common-elements/LinkToField.d.ts +2 -2
  52. package/lib/redoc-lib/src/common-elements/Tooltip.d.ts +1 -1
  53. package/lib/redoc-lib/src/common-elements/linkify.d.ts +3 -2
  54. package/lib/redoc-lib/src/common-elements/perfect-scrollbar.d.ts +3 -2
  55. package/lib/redoc-lib/src/components/ApiInfo/ApiInfo.d.ts +1 -1
  56. package/lib/redoc-lib/src/components/ApiLogo/ApiLogo.d.ts +1 -1
  57. package/lib/redoc-lib/src/components/ApiLogo/styled.elements.d.ts +1 -1
  58. package/lib/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.d.ts +1 -1
  59. package/lib/redoc-lib/src/components/CallbackSamples/CallbackSamples.d.ts +2 -2
  60. package/lib/redoc-lib/src/components/Callbacks/CallbackDetails.d.ts +1 -1
  61. package/lib/redoc-lib/src/components/Callbacks/CallbackOperation.d.ts +1 -1
  62. package/lib/redoc-lib/src/components/Callbacks/CallbackSummary.d.ts +2 -2
  63. package/lib/redoc-lib/src/components/Callbacks/CallbacksList.d.ts +1 -1
  64. package/lib/redoc-lib/src/components/ContentItems/ContentItems.d.ts +3 -3
  65. package/lib/redoc-lib/src/components/DownloadButton/DownloadButton.d.ts +1 -1
  66. package/lib/redoc-lib/src/components/DownloadButton/DownloadButton.js +1 -1
  67. package/lib/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.d.ts +1 -1
  68. package/lib/redoc-lib/src/components/ErrorBoundary.d.ts +2 -1
  69. package/lib/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.d.ts +1 -1
  70. package/lib/redoc-lib/src/components/Fields/Field.d.ts +3 -3
  71. package/lib/redoc-lib/src/components/Fields/FieldDetails.d.ts +1 -1
  72. package/lib/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +1 -1
  73. package/lib/redoc-lib/src/components/Markdown/AdvancedMarkdown.d.ts +3 -3
  74. package/lib/redoc-lib/src/components/Markdown/SanitizedMdBlock.d.ts +1 -1
  75. package/lib/redoc-lib/src/components/Markdown/styled.elements.d.ts +1 -1
  76. package/lib/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +2 -2
  77. package/lib/redoc-lib/src/components/Operation/Operation.d.ts +1 -1
  78. package/lib/redoc-lib/src/components/OptionsProvider.d.ts +1 -1
  79. package/lib/redoc-lib/src/components/Parameters/ParametersGroup.d.ts +1 -1
  80. package/lib/redoc-lib/src/components/PayloadSamples/Example.d.ts +1 -1
  81. package/lib/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.d.ts +1 -1
  82. package/lib/redoc-lib/src/components/PayloadSamples/PayloadSamples.d.ts +1 -1
  83. package/lib/redoc-lib/src/components/PayloadSamples/exernalExampleHook.d.ts +1 -1
  84. package/lib/redoc-lib/src/components/RequestSamples/CodeSample.d.ts +2 -2
  85. package/lib/redoc-lib/src/components/RequestSamples/RequestSamples.d.ts +1 -1
  86. package/lib/redoc-lib/src/components/RequestSamples/languageSwitchEvent.d.ts +3 -2
  87. package/lib/redoc-lib/src/components/RequestSamples/useCodeSamples.d.ts +1 -1
  88. package/lib/redoc-lib/src/components/Responses/Response.d.ts +1 -1
  89. package/lib/redoc-lib/src/components/Responses/ResponseDetails.d.ts +1 -1
  90. package/lib/redoc-lib/src/components/Responses/ResponseHeaders.d.ts +1 -1
  91. package/lib/redoc-lib/src/components/Responses/ResponseSummary.d.ts +2 -2
  92. package/lib/redoc-lib/src/components/Responses/ResponsesList.d.ts +1 -1
  93. package/lib/redoc-lib/src/components/Schema/ArraySchema.d.ts +1 -1
  94. package/lib/redoc-lib/src/components/Schema/DiscriminatorDropdown.d.ts +2 -2
  95. package/lib/redoc-lib/src/components/Schema/ObjectSchema.d.ts +1 -1
  96. package/lib/redoc-lib/src/components/Schema/OneOfSchema.d.ts +1 -1
  97. package/lib/redoc-lib/src/components/Schema/Schema.d.ts +1 -1
  98. package/lib/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.d.ts +2 -2
  99. package/lib/redoc-lib/src/components/SearchBox/SearchBox.d.ts +3 -3
  100. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.d.ts +1 -1
  101. package/lib/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.d.ts +2 -2
  102. package/lib/redoc-lib/src/components/SideMenu/MenuItem.d.ts +3 -3
  103. package/lib/redoc-lib/src/components/SideMenu/MenuItem.js +1 -1
  104. package/lib/redoc-lib/src/components/SideMenu/SideMenu.d.ts +3 -3
  105. package/lib/redoc-lib/src/components/SourceCode/SourceCode.d.ts +2 -2
  106. package/lib/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.d.ts +3 -2
  107. package/lib/redoc-lib/src/components/StoreBuilder.d.ts +1 -1
  108. package/lib/redoc-lib/src/components/helper.d.ts +1 -1
  109. package/lib/redoc-lib/src/services/MarkdownRenderer.d.ts +3 -3
  110. package/lib/redoc-lib/src/services/MenuBuilder.d.ts +3 -3
  111. package/lib/redoc-lib/src/services/OpenAPIParser.d.ts +1 -1
  112. package/lib/redoc-lib/src/services/RedocNormalizedOptions.d.ts +7 -5
  113. package/lib/redoc-lib/src/services/RedocNormalizedOptions.js +1 -1
  114. package/lib/redoc-lib/src/services/ScrollService.d.ts +1 -1
  115. package/lib/redoc-lib/src/services/SpecStore.d.ts +3 -3
  116. package/lib/redoc-lib/src/services/models/ApiInfo.d.ts +2 -2
  117. package/lib/redoc-lib/src/services/models/Callback.d.ts +3 -3
  118. package/lib/redoc-lib/src/services/models/Example.d.ts +2 -2
  119. package/lib/redoc-lib/src/services/models/Field.d.ts +5 -4
  120. package/lib/redoc-lib/src/services/models/Group.model.d.ts +4 -4
  121. package/lib/redoc-lib/src/services/models/MediaContent.d.ts +5 -5
  122. package/lib/redoc-lib/src/services/models/MediaType.d.ts +5 -5
  123. package/lib/redoc-lib/src/services/models/Operation.d.ts +8 -8
  124. package/lib/redoc-lib/src/services/models/RequestBody.d.ts +4 -4
  125. package/lib/redoc-lib/src/services/models/Response.d.ts +4 -4
  126. package/lib/redoc-lib/src/services/models/Schema.d.ts +5 -5
  127. package/lib/redoc-lib/src/services/models/SecurityRequirement.d.ts +2 -2
  128. package/lib/redoc-lib/src/services/models/SecuritySchemes.d.ts +2 -2
  129. package/lib/redoc-lib/src/services/models/Webhook.d.ts +3 -3
  130. package/lib/redoc-lib/src/styled-components.d.ts +2 -2
  131. package/lib/redoc-lib/src/types/open-api.d.ts +2 -2
  132. package/lib/redoc-lib/src/utils/helpers.d.ts +3 -3
  133. package/lib/redoc-lib/src/utils/helpers.js +1 -1
  134. package/lib/redoc-lib/src/utils/loadAndBundleSpec.d.ts +1 -1
  135. package/lib/redoc-lib/src/utils/media-css.d.ts +1 -1
  136. package/lib/redoc-lib/src/utils/openapi.d.ts +3 -3
  137. package/lib/services/ProMenu.d.ts +2 -2
  138. package/lib/services/ProStore.d.ts +13 -26
  139. package/lib/services/ProStore.js +1 -1
  140. package/lib/services/SearchStore.d.ts +3 -2
  141. package/lib/services/VersionedSpecStore.d.ts +3 -2
  142. package/lib/services/code-samples/generator.d.ts +3 -3
  143. package/lib/services/code-samples/httpsnippet/helpers/code-helpers.d.ts +2 -2
  144. package/lib/services/code-samples/httpsnippet/index.d.ts +2 -2
  145. package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.d.ts +2 -2
  146. package/lib/services/code-samples/httpsnippet/targets/go/native.d.ts +2 -2
  147. package/lib/services/code-samples/httpsnippet/targets/java/httpclient.d.ts +2 -2
  148. package/lib/services/code-samples/httpsnippet/targets/java8/apachehttp.d.ts +2 -2
  149. package/lib/services/code-samples/httpsnippet/targets/javascript/fetch.d.ts +2 -2
  150. package/lib/services/code-samples/httpsnippet/targets/node/fetch.d.ts +2 -2
  151. package/lib/services/code-samples/httpsnippet/targets/php/curl.d.ts +2 -2
  152. package/lib/services/code-samples/httpsnippet/targets/php/utils.d.ts +1 -1
  153. package/lib/services/code-samples/httpsnippet/targets/python/requests.d.ts +2 -2
  154. package/lib/services/code-samples/httpsnippet/targets/ruby/native.d.ts +2 -2
  155. package/lib/services/code-samples/httpsnippet/targets/shell/curl.d.ts +2 -2
  156. package/lib/services/extendTheme.d.ts +2 -2
  157. package/lib/services/history/FakeHistoryService.d.ts +2 -2
  158. package/lib/services/history/ProHashHistoryService.d.ts +2 -2
  159. package/lib/services/history/PushStateHistoryService.d.ts +3 -2
  160. package/lib/services/history/helpers.d.ts +1 -1
  161. package/lib/services/index.d.ts +1 -0
  162. package/lib/services/index.js +1 -1
  163. package/lib/services/types.d.ts +24 -0
  164. package/lib/services/types.js +2 -0
  165. package/lib/services/utils.js +1 -1
  166. package/lib/standalone.d.ts +3 -3
  167. package/lib/utils.js +1 -1
  168. package/lib-esm/components/Endpoint/Endpoint.d.ts +2 -2
  169. package/lib-esm/components/Endpoint/ServerList.d.ts +2 -2
  170. package/lib-esm/components/Endpoint/Summary.d.ts +3 -3
  171. package/lib-esm/components/NextSectionButton.d.ts +2 -2
  172. package/lib-esm/components/Overlay.d.ts +1 -1
  173. package/lib-esm/components/Panel/PanelComponent.d.ts +2 -1
  174. package/lib-esm/components/ProProviders.d.ts +2 -2
  175. package/lib-esm/components/RedoclyReferenceDocs.d.ts +3 -3
  176. package/lib-esm/components/Samples/ExampleSwitch.d.ts +1 -1
  177. package/lib-esm/components/Samples/SamplesTabs.d.ts +1 -1
  178. package/lib-esm/components/Samples/use-example-key.d.ts +1 -1
  179. package/lib-esm/components/Search/MenuItemProSearch.d.ts +2 -2
  180. package/lib-esm/components/Search/MenuItemProSearch.js +1 -1
  181. package/lib-esm/components/Search/ProSearchBox.d.ts +5 -5
  182. package/lib-esm/components/Search/SearchField.d.ts +1 -1
  183. package/lib-esm/components/StoreProvider.d.ts +3 -2
  184. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabs.d.ts +1 -1
  185. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +2 -2
  186. package/lib-esm/components/VersionSwitcher.d.ts +2 -2
  187. package/lib-esm/components/common/CheckboxList.d.ts +3 -2
  188. package/lib-esm/components/common/Dropdown/Dropdown.d.ts +1 -1
  189. package/lib-esm/components/common/Dropdown/types.d.ts +1 -1
  190. package/lib-esm/components/common/FileUpload/helper.d.ts +1 -1
  191. package/lib-esm/components/common/TextField.d.ts +1 -1
  192. package/lib-esm/components/console/ActionPanel.d.ts +2 -2
  193. package/lib-esm/components/console/AuthPanel.d.ts +4 -4
  194. package/lib-esm/components/console/CodemirrorInput.d.ts +1 -1
  195. package/lib-esm/components/console/Console.d.ts +6 -6
  196. package/lib-esm/components/console/OAuth2Flow.d.ts +4 -4
  197. package/lib-esm/components/console/OAuth2TokenInput.d.ts +1 -1
  198. package/lib-esm/components/console/OpenIDConnect.d.ts +3 -3
  199. package/lib-esm/components/console/OperationParameters.d.ts +1 -1
  200. package/lib-esm/components/console/RequestBody.d.ts +2 -2
  201. package/lib-esm/components/console/RequestBodyForm.d.ts +1 -1
  202. package/lib-esm/components/console/ResponseBody.d.ts +1 -1
  203. package/lib-esm/components/console/ResponsePanel.d.ts +1 -1
  204. package/lib-esm/components/console/ServerDropdown.d.ts +1 -1
  205. package/lib-esm/components/console/utils.d.ts +1 -1
  206. package/lib-esm/components/pluggable/RedocExample.d.ts +2 -2
  207. package/lib-esm/components/pluggable/RedocRequestBody.d.ts +1 -1
  208. package/lib-esm/components/pluggable/RedocResponse.d.ts +1 -1
  209. package/lib-esm/components/pluggable/RedocSchema.d.ts +2 -2
  210. package/lib-esm/components/pluggable/styled.components.d.ts +1 -1
  211. package/lib-esm/components/styled.elements.d.ts +3 -2
  212. package/lib-esm/models/code-sample-options.d.ts +1 -1
  213. package/lib-esm/redoc-lib/src/common-elements/LinkToField.d.ts +2 -2
  214. package/lib-esm/redoc-lib/src/common-elements/Tooltip.d.ts +1 -1
  215. package/lib-esm/redoc-lib/src/common-elements/linkify.d.ts +3 -2
  216. package/lib-esm/redoc-lib/src/common-elements/perfect-scrollbar.d.ts +3 -2
  217. package/lib-esm/redoc-lib/src/components/ApiInfo/ApiInfo.d.ts +1 -1
  218. package/lib-esm/redoc-lib/src/components/ApiLogo/ApiLogo.d.ts +1 -1
  219. package/lib-esm/redoc-lib/src/components/ApiLogo/styled.elements.d.ts +1 -1
  220. package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.d.ts +1 -1
  221. package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackSamples.d.ts +2 -2
  222. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackDetails.d.ts +1 -1
  223. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackOperation.d.ts +1 -1
  224. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackSummary.d.ts +2 -2
  225. package/lib-esm/redoc-lib/src/components/Callbacks/CallbacksList.d.ts +1 -1
  226. package/lib-esm/redoc-lib/src/components/ContentItems/ContentItems.d.ts +3 -3
  227. package/lib-esm/redoc-lib/src/components/DownloadButton/DownloadButton.d.ts +1 -1
  228. package/lib-esm/redoc-lib/src/components/DownloadButton/DownloadButton.js +1 -1
  229. package/lib-esm/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.d.ts +1 -1
  230. package/lib-esm/redoc-lib/src/components/ErrorBoundary.d.ts +2 -1
  231. package/lib-esm/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.d.ts +1 -1
  232. package/lib-esm/redoc-lib/src/components/Fields/Field.d.ts +3 -3
  233. package/lib-esm/redoc-lib/src/components/Fields/FieldDetails.d.ts +1 -1
  234. package/lib-esm/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +1 -1
  235. package/lib-esm/redoc-lib/src/components/Markdown/AdvancedMarkdown.d.ts +3 -3
  236. package/lib-esm/redoc-lib/src/components/Markdown/SanitizedMdBlock.d.ts +1 -1
  237. package/lib-esm/redoc-lib/src/components/Markdown/styled.elements.d.ts +1 -1
  238. package/lib-esm/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +2 -2
  239. package/lib-esm/redoc-lib/src/components/Operation/Operation.d.ts +1 -1
  240. package/lib-esm/redoc-lib/src/components/OptionsProvider.d.ts +1 -1
  241. package/lib-esm/redoc-lib/src/components/Parameters/ParametersGroup.d.ts +1 -1
  242. package/lib-esm/redoc-lib/src/components/PayloadSamples/Example.d.ts +1 -1
  243. package/lib-esm/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.d.ts +1 -1
  244. package/lib-esm/redoc-lib/src/components/PayloadSamples/PayloadSamples.d.ts +1 -1
  245. package/lib-esm/redoc-lib/src/components/PayloadSamples/exernalExampleHook.d.ts +1 -1
  246. package/lib-esm/redoc-lib/src/components/RequestSamples/CodeSample.d.ts +2 -2
  247. package/lib-esm/redoc-lib/src/components/RequestSamples/RequestSamples.d.ts +1 -1
  248. package/lib-esm/redoc-lib/src/components/RequestSamples/languageSwitchEvent.d.ts +3 -2
  249. package/lib-esm/redoc-lib/src/components/RequestSamples/useCodeSamples.d.ts +1 -1
  250. package/lib-esm/redoc-lib/src/components/Responses/Response.d.ts +1 -1
  251. package/lib-esm/redoc-lib/src/components/Responses/ResponseDetails.d.ts +1 -1
  252. package/lib-esm/redoc-lib/src/components/Responses/ResponseHeaders.d.ts +1 -1
  253. package/lib-esm/redoc-lib/src/components/Responses/ResponseSummary.d.ts +2 -2
  254. package/lib-esm/redoc-lib/src/components/Responses/ResponsesList.d.ts +1 -1
  255. package/lib-esm/redoc-lib/src/components/Schema/ArraySchema.d.ts +1 -1
  256. package/lib-esm/redoc-lib/src/components/Schema/DiscriminatorDropdown.d.ts +2 -2
  257. package/lib-esm/redoc-lib/src/components/Schema/ObjectSchema.d.ts +1 -1
  258. package/lib-esm/redoc-lib/src/components/Schema/OneOfSchema.d.ts +1 -1
  259. package/lib-esm/redoc-lib/src/components/Schema/Schema.d.ts +1 -1
  260. package/lib-esm/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.d.ts +2 -2
  261. package/lib-esm/redoc-lib/src/components/SearchBox/SearchBox.d.ts +3 -3
  262. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.d.ts +1 -1
  263. package/lib-esm/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.d.ts +2 -2
  264. package/lib-esm/redoc-lib/src/components/SideMenu/MenuItem.d.ts +3 -3
  265. package/lib-esm/redoc-lib/src/components/SideMenu/MenuItem.js +1 -1
  266. package/lib-esm/redoc-lib/src/components/SideMenu/SideMenu.d.ts +3 -3
  267. package/lib-esm/redoc-lib/src/components/SourceCode/SourceCode.d.ts +2 -2
  268. package/lib-esm/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.d.ts +3 -2
  269. package/lib-esm/redoc-lib/src/components/StoreBuilder.d.ts +1 -1
  270. package/lib-esm/redoc-lib/src/components/helper.d.ts +1 -1
  271. package/lib-esm/redoc-lib/src/services/MarkdownRenderer.d.ts +3 -3
  272. package/lib-esm/redoc-lib/src/services/MenuBuilder.d.ts +3 -3
  273. package/lib-esm/redoc-lib/src/services/OpenAPIParser.d.ts +1 -1
  274. package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.d.ts +7 -5
  275. package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.js +1 -1
  276. package/lib-esm/redoc-lib/src/services/ScrollService.d.ts +1 -1
  277. package/lib-esm/redoc-lib/src/services/SpecStore.d.ts +3 -3
  278. package/lib-esm/redoc-lib/src/services/models/ApiInfo.d.ts +2 -2
  279. package/lib-esm/redoc-lib/src/services/models/Callback.d.ts +3 -3
  280. package/lib-esm/redoc-lib/src/services/models/Example.d.ts +2 -2
  281. package/lib-esm/redoc-lib/src/services/models/Field.d.ts +5 -4
  282. package/lib-esm/redoc-lib/src/services/models/Group.model.d.ts +4 -4
  283. package/lib-esm/redoc-lib/src/services/models/MediaContent.d.ts +5 -5
  284. package/lib-esm/redoc-lib/src/services/models/MediaType.d.ts +5 -5
  285. package/lib-esm/redoc-lib/src/services/models/Operation.d.ts +8 -8
  286. package/lib-esm/redoc-lib/src/services/models/RequestBody.d.ts +4 -4
  287. package/lib-esm/redoc-lib/src/services/models/Response.d.ts +4 -4
  288. package/lib-esm/redoc-lib/src/services/models/Schema.d.ts +5 -5
  289. package/lib-esm/redoc-lib/src/services/models/SecurityRequirement.d.ts +2 -2
  290. package/lib-esm/redoc-lib/src/services/models/SecuritySchemes.d.ts +2 -2
  291. package/lib-esm/redoc-lib/src/services/models/Webhook.d.ts +3 -3
  292. package/lib-esm/redoc-lib/src/styled-components.d.ts +2 -2
  293. package/lib-esm/redoc-lib/src/types/open-api.d.ts +2 -2
  294. package/lib-esm/redoc-lib/src/utils/helpers.d.ts +3 -3
  295. package/lib-esm/redoc-lib/src/utils/helpers.js +1 -1
  296. package/lib-esm/redoc-lib/src/utils/loadAndBundleSpec.d.ts +1 -1
  297. package/lib-esm/redoc-lib/src/utils/media-css.d.ts +1 -1
  298. package/lib-esm/redoc-lib/src/utils/openapi.d.ts +3 -3
  299. package/lib-esm/services/ProMenu.d.ts +2 -2
  300. package/lib-esm/services/ProStore.d.ts +13 -26
  301. package/lib-esm/services/ProStore.js +1 -1
  302. package/lib-esm/services/SearchStore.d.ts +3 -2
  303. package/lib-esm/services/VersionedSpecStore.d.ts +3 -2
  304. package/lib-esm/services/code-samples/generator.d.ts +3 -3
  305. package/lib-esm/services/code-samples/httpsnippet/helpers/code-helpers.d.ts +2 -2
  306. package/lib-esm/services/code-samples/httpsnippet/index.d.ts +2 -2
  307. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.d.ts +2 -2
  308. package/lib-esm/services/code-samples/httpsnippet/targets/go/native.d.ts +2 -2
  309. package/lib-esm/services/code-samples/httpsnippet/targets/java/httpclient.d.ts +2 -2
  310. package/lib-esm/services/code-samples/httpsnippet/targets/java8/apachehttp.d.ts +2 -2
  311. package/lib-esm/services/code-samples/httpsnippet/targets/javascript/fetch.d.ts +2 -2
  312. package/lib-esm/services/code-samples/httpsnippet/targets/node/fetch.d.ts +2 -2
  313. package/lib-esm/services/code-samples/httpsnippet/targets/php/curl.d.ts +2 -2
  314. package/lib-esm/services/code-samples/httpsnippet/targets/php/utils.d.ts +1 -1
  315. package/lib-esm/services/code-samples/httpsnippet/targets/python/requests.d.ts +2 -2
  316. package/lib-esm/services/code-samples/httpsnippet/targets/ruby/native.d.ts +2 -2
  317. package/lib-esm/services/code-samples/httpsnippet/targets/shell/curl.d.ts +2 -2
  318. package/lib-esm/services/extendTheme.d.ts +2 -2
  319. package/lib-esm/services/history/FakeHistoryService.d.ts +2 -2
  320. package/lib-esm/services/history/ProHashHistoryService.d.ts +2 -2
  321. package/lib-esm/services/history/PushStateHistoryService.d.ts +3 -2
  322. package/lib-esm/services/history/helpers.d.ts +1 -1
  323. package/lib-esm/services/index.d.ts +1 -0
  324. package/lib-esm/services/index.js +1 -1
  325. package/lib-esm/services/types.d.ts +24 -0
  326. package/lib-esm/services/types.js +2 -0
  327. package/lib-esm/services/utils.js +1 -1
  328. package/lib-esm/standalone.d.ts +3 -3
  329. package/lib-esm/utils.js +1 -1
  330. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { OperationModel } from '../../services/models';
2
+ import type { OperationModel } from '../../services/models';
3
3
  import type { DropdownProps } from '../../../../components/common/Dropdown';
4
4
  export interface PayloadSampleProps {
5
5
  callback: OperationModel;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { RedocNormalizedOptions } from '../../services';
3
- import { CallbackModel } from '../../services/models';
2
+ import type { RedocNormalizedOptions } from '../../services';
3
+ import type { CallbackModel } from '../../services/models';
4
4
  export interface CallbackSamplesProps {
5
5
  callbacks: CallbackModel[];
6
6
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { OperationModel } from '../../services';
2
+ import type { OperationModel } from '../../services';
3
3
  export interface CallbackDetailsProps {
4
4
  operation: OperationModel;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { OperationModel } from '../../services';
2
+ import type { OperationModel } from '../../services';
3
3
  export interface CallbackOperationProps {
4
4
  operation: OperationModel;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { PanelHeaderProps } from '../../../../components/Panel';
3
- import { OperationModel } from '../../services';
2
+ import type { PanelHeaderProps } from '../../../../components/Panel';
3
+ import type { OperationModel } from '../../services';
4
4
  export interface CallbackTitleProps extends PanelHeaderProps {
5
5
  operation: OperationModel;
6
6
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { CallbackModel } from '../../services/models';
2
+ import type { CallbackModel } from '../../services/models';
3
3
  export interface CallbacksListProps {
4
4
  callbacks: CallbackModel[];
5
5
  }
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
- import { ContentItemModel } from '../../services/MenuBuilder';
3
- import { OperationModel } from '../../services/models';
2
+ import type { ContentItemModel } from '../../services/MenuBuilder';
3
+ import type { OperationModel } from '../../services/models';
4
4
  import type { LayoutVariant } from '../../../../services/';
5
- import { ProStore } from '../../../../services/ProStore';
5
+ import type { ProStore } from '../../../../services/ProStore';
6
6
  interface ContentItemsProps {
7
7
  items: ContentItemModel[];
8
8
  store: ProStore;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ApiInfoProps } from '../ApiInfo/ApiInfo';
2
+ import type { ApiInfoProps } from '../ApiInfo/ApiInfo';
3
3
  export declare function DownloadButtonWithLabel({ store, wrapped, }: ApiInfoProps & {
4
4
  wrapped?: boolean;
5
5
  }): JSX.Element;
@@ -1,2 +1,2 @@
1
- import{__makeTemplateObject}from"tslib";import*as React from"react";import{l}from"../../services/Labels";import styled,{extensionsHook}from"../../styled-components";import{baseButton}from"../../../../components/shared";export function DownloadButtonWithLabel(e){var t=e.store,n=e.wrapped,o=React.useState(t.options.downloadDefinitionUrl),a=o[0],i=o[1];React.useEffect((function(){t.options.downloadDefinitionUrl||i(t.definition.info.downloadLink)}),[t.options.downloadDefinitionUrl,t]);var r=React.useCallback((function(e){e.target.href||(e.target.href=a)}),[a]),d=t.definition.info.downloadFileName;return React.createElement(DownloadWrapper,{wrapped:n},l("downloadSpecification"),":",React.createElement(DownloadButton,{download:d||!0,target:"_blank",href:a,onClick:r},l("download")))}var templateObject_1,templateObject_2,DownloadButton=styled.a(templateObject_1||(templateObject_1=__makeTemplateObject(["\n ",";\n margin-left: 0.5em;\n text-decoration: none;\n vertical-align: middle;\n ",";\n"],["\n ",";\n margin-left: 0.5em;\n text-decoration: none;\n vertical-align: middle;\n ",";\n"])),baseButton,extensionsHook("DownloadButton")),DownloadWrapper=styled.p(templateObject_2||(templateObject_2=__makeTemplateObject(["\n align-self: flex-start;\n padding-left: ","px;\n"],["\n align-self: flex-start;\n padding-left: ","px;\n"])),(function(e){var t=e.wrapped,n=e.theme;return t?0:n.spacing.sectionHorizontal}));
1
+ import{__makeTemplateObject}from"tslib";import*as React from"react";import{l}from"../../services/Labels";import styled,{extensionsHook}from"../../styled-components";import{baseButton}from"../../../../components/shared";export function DownloadButtonWithLabel(e){var t=e.store,n=e.wrapped,o=React.useState(t.options.downloadDefinitionUrl),a=o[0],i=o[1];React.useEffect((function(){t.options.downloadDefinitionUrl||i(t.definition.info.downloadLink)}),[t.options.downloadDefinitionUrl,t.definition.info]);var r=React.useCallback((function(e){e.target.href||(e.target.href=a)}),[a]),d=t.definition.info.downloadFileName;return React.createElement(DownloadWrapper,{wrapped:n},l("downloadSpecification"),":",React.createElement(DownloadButton,{download:d||!0,target:"_blank",href:a,onClick:r},l("download")))}var templateObject_1,templateObject_2,DownloadButton=styled.a(templateObject_1||(templateObject_1=__makeTemplateObject(["\n ",";\n margin-left: 0.5em;\n text-decoration: none;\n vertical-align: middle;\n ",";\n"],["\n ",";\n margin-left: 0.5em;\n text-decoration: none;\n vertical-align: middle;\n ",";\n"])),baseButton,extensionsHook("DownloadButton")),DownloadWrapper=styled.p(templateObject_2||(templateObject_2=__makeTemplateObject(["\n align-self: flex-start;\n padding-left: ","px;\n"],["\n align-self: flex-start;\n padding-left: ","px;\n"])),(function(e){var t=e.wrapped,n=e.theme;return t?0:n.spacing.sectionHorizontal}));
2
2
  //# sourceMappingURL=DownloadButton.js.map
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { DropdownProps } from '../../../../components/common/Dropdown';
2
+ import type { DropdownProps } from '../../../../components/common/Dropdown';
3
3
  export interface DropdownOrLabelProps extends DropdownProps {
4
4
  Label?: React.ComponentClass;
5
5
  Dropdown?: React.ComponentClass;
@@ -1,4 +1,5 @@
1
- import React, { PropsWithChildren } from 'react';
1
+ import type { PropsWithChildren } from 'react';
2
+ import React from 'react';
2
3
  export declare class ErrorBoundary extends React.Component<PropsWithChildren<unknown>, {
3
4
  error?: Error;
4
5
  }> {
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { OpenAPIExternalDocumentation } from '../../types';
2
+ import type { OpenAPIExternalDocumentation } from '../../types';
3
3
  export declare class ExternalDocumentation extends React.Component<{
4
4
  externalDocs: OpenAPIExternalDocumentation;
5
5
  compact?: boolean;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- import { FieldModel } from '../../services/models';
3
- import { RedocProNormalizedOptions } from '../../../../services/ProStore';
4
- import { SchemaOptions } from '../Schema/types';
2
+ import type { FieldModel } from '../../services/models';
3
+ import type { RedocProNormalizedOptions } from '../../../../services/ProStore';
4
+ import type { SchemaOptions } from '../Schema/types';
5
5
  export interface FieldProps extends SchemaOptions {
6
6
  className?: string;
7
7
  isLast?: boolean;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { FieldProps } from './Field';
2
+ import type { FieldProps } from './Field';
3
3
  export declare class FieldDetails extends React.PureComponent<FieldProps, {
4
4
  patternShown: boolean;
5
5
  }> {
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { DropdownProps, DropdownOption } from '../../../../components/common/Dropdown';
2
+ import type { DropdownProps, DropdownOption } from '../../../../components/common/Dropdown';
3
3
  export interface GenericChildrenSwitcherProps<T> {
4
4
  items?: T[];
5
5
  options: DropdownOption[];
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- import { RedocNormalizedOptions } from '../../services';
3
- import { BaseMarkdownProps } from './Markdown';
4
- import { ProStore } from '../../../../services';
2
+ import type { RedocNormalizedOptions } from '../../services';
3
+ import type { BaseMarkdownProps } from './Markdown';
4
+ import type { ProStore } from '../../../../services';
5
5
  export interface AdvancedMarkdownProps extends BaseMarkdownProps {
6
6
  htmlWrap?: (part: JSX.Element) => JSX.Element;
7
7
  }
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { StylingMarkdownProps } from './Markdown';
2
+ import type { StylingMarkdownProps } from './Markdown';
3
3
  export declare function SanitizedMarkdownHTML(props: StylingMarkdownProps & {
4
4
  html: string;
5
5
  className?: string;
@@ -1,4 +1,4 @@
1
- import { StyledComponent } from 'styled-components';
1
+ import type { StyledComponent } from 'styled-components';
2
2
  export declare const linksCss: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("../../../../services/extendTheme").ProTheme>>;
3
3
  export declare const baseTable: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("../../../../services/extendTheme").ProTheme>>;
4
4
  export declare const StyledMarkdownBlock: StyledComponent<"div", import("../../../../services/extendTheme").ProTheme, {
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { DropdownProps } from '../../../../components/common/Dropdown';
3
- import { MediaContentModel, MediaTypeModel, SchemaModel } from '../../services/models';
2
+ import type { DropdownProps } from '../../../../components/common/Dropdown';
3
+ import type { MediaContentModel, MediaTypeModel, SchemaModel } from '../../services/models';
4
4
  export interface MediaTypeChildProps {
5
5
  schema: SchemaModel;
6
6
  mime?: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { OperationModel } from '../../services';
2
+ import type { OperationModel } from '../../services';
3
3
  import { LayoutVariant } from '../../../../services/store-types';
4
4
  export interface OperationProps {
5
5
  operation: OperationModel;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { RedocProNormalizedOptions } from '../../../services';
2
+ import type { RedocProNormalizedOptions } from '../../../services';
3
3
  export declare const OptionsContext: import("react").Context<RedocProNormalizedOptions>;
4
4
  export declare const OptionsProvider: import("react").Provider<RedocProNormalizedOptions>;
5
5
  export declare const OptionsConsumer: import("react").Consumer<RedocProNormalizedOptions>;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { FieldModel } from '../../services/models';
2
+ import type { FieldModel } from '../../services/models';
3
3
  export interface ParametersGroupProps {
4
4
  place: string;
5
5
  parameters: FieldModel[];
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ExampleModel } from '../../services/models';
2
+ import type { ExampleModel } from '../../services/models';
3
3
  export interface ExampleProps {
4
4
  example: ExampleModel;
5
5
  mimeType: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { MediaTypeModel } from '../../services/models';
2
+ import type { MediaTypeModel } from '../../services/models';
3
3
  export interface PayloadSamplesProps {
4
4
  mediaType: MediaTypeModel;
5
5
  onlyDefaultSample?: boolean;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { MediaContentModel, OperationModel } from '../../services';
2
+ import type { MediaContentModel, OperationModel } from '../../services';
3
3
  export interface PayloadSamplesProps {
4
4
  content: MediaContentModel;
5
5
  operation?: OperationModel;
@@ -1,2 +1,2 @@
1
- import { ExampleModel } from '../../services/models/Example';
1
+ import type { ExampleModel } from '../../services/models/Example';
2
2
  export declare function useExternalExample(example: ExampleModel, mimeType: string): any;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { OperationModel, Unstable_ExternalCodeSample, MediaContentModel } from '../../services';
3
- import { ExampleSwitchOptions } from '../../../../components/Samples';
2
+ import type { OperationModel, Unstable_ExternalCodeSample, MediaContentModel } from '../../services';
3
+ import type { ExampleSwitchOptions } from '../../../../components/Samples';
4
4
  interface CodeSamplesProps extends ExampleSwitchOptions {
5
5
  content?: MediaContentModel;
6
6
  operation: OperationModel;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { MediaContentModel, OperationModel } from '../../services';
2
+ import type { MediaContentModel, OperationModel } from '../../services';
3
3
  export interface RequestSamplesProps {
4
4
  operation: OperationModel;
5
5
  defaultLanguage?: string;
@@ -1,5 +1,6 @@
1
- import { AnalyticsEvent, AnalyticsEventType, CodeSamplesLanguageSwitchedEvent, PanelToggleEvent } from '../../../../services/store-types';
2
- import { OperationModel, Sample } from '../../services';
1
+ import type { AnalyticsEvent, CodeSamplesLanguageSwitchedEvent, PanelToggleEvent } from '../../../../services/store-types';
2
+ import { AnalyticsEventType } from '../../../../services/store-types';
3
+ import type { OperationModel, Sample } from '../../services';
3
4
  export declare function createTrackingEvent<T extends AnalyticsEvent>(eventType: AnalyticsEventType): (payload: Omit<T, 'eventType'>) => T;
4
5
  export interface LanguageSwitchProps {
5
6
  operation: OperationModel;
@@ -1,5 +1,5 @@
1
1
  import type { OperationModel, Unstable_ExternalCodeSample } from '../../services';
2
- import { OpenAPIXCodeSample } from '../../types';
2
+ import type { OpenAPIXCodeSample } from '../../types';
3
3
  export declare function useCodeSamples({ allCodeSamples, payload }: OperationModel): {
4
4
  payload: OperationModel['payload'];
5
5
  samples: Array<{
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ResponseModel } from '../../services/models';
2
+ import type { ResponseModel } from '../../services/models';
3
3
  export interface ResponseViewProps {
4
4
  response: ResponseModel;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { ResponseModel } from '../../services/models';
2
+ import type { ResponseModel } from '../../services/models';
3
3
  export declare class ResponseDetails extends React.PureComponent<{
4
4
  response: ResponseModel;
5
5
  }> {
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { FieldModel } from '../../services/models';
2
+ import type { FieldModel } from '../../services/models';
3
3
  export interface ResponseHeadersProps {
4
4
  headers?: FieldModel[];
5
5
  }
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { PanelHeaderProps } from '../../../../components/Panel';
3
- import { ResponseModel } from '../../services';
2
+ import type { PanelHeaderProps } from '../../../../components/Panel';
3
+ import type { ResponseModel } from '../../services';
4
4
  export interface ResponseTitleProps extends PanelHeaderProps {
5
5
  response: ResponseModel;
6
6
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { ResponseModel } from '../../services';
2
+ import type { ResponseModel } from '../../services';
3
3
  export interface ResponseListProps {
4
4
  responses: ResponseModel[];
5
5
  }
@@ -1,3 +1,3 @@
1
1
  import * as React from 'react';
2
- import { SchemaProps } from './types';
2
+ import type { SchemaProps } from './types';
3
3
  export declare const ArraySchema: React.NamedExoticComponent<SchemaProps>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { DropdownOption } from '../../../../components/common/Dropdown';
3
- import { SchemaModel } from '../../services/models';
2
+ import type { DropdownOption } from '../../../../components/common/Dropdown';
3
+ import type { SchemaModel } from '../../services/models';
4
4
  export declare class DiscriminatorDropdown extends React.Component<{
5
5
  parent: SchemaModel;
6
6
  enumValues: string[];
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { ObjectSchemaProps } from './types';
2
+ import type { ObjectSchemaProps } from './types';
3
3
  import type { SchemaModel } from '../../services';
4
4
  export declare class ObjectSchema extends React.Component<ObjectSchemaProps> {
5
5
  static contextType: React.Context<import("../../../..").RedocProNormalizedOptions>;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { SchemaProps } from './types';
2
+ import type { SchemaProps } from './types';
3
3
  export declare const OneOfSchema: ({ schema: { oneOf }, schema, ...rest }: SchemaProps) => JSX.Element | null;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { SchemaProps } from './types';
2
+ import type { SchemaProps } from './types';
3
3
  export declare const Schema: ({ schema, ...rest }: Partial<SchemaProps>) => JSX.Element | null;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { OpenAPIParser } from '../../services';
3
- import { RedocProNormalizedOptions } from '../../../../services/ProStore';
2
+ import type { OpenAPIParser } from '../../services';
3
+ import type { RedocProNormalizedOptions } from '../../../../services/ProStore';
4
4
  import { LayoutVariant } from '../../../../services/store-types';
5
5
  export interface ObjectDescriptionProps {
6
6
  schemaRef: string;
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
- import { IMenuItem } from '../../services/MenuStore';
3
- import { SearchStore } from '../../services/SearchStore';
2
+ import type { IMenuItem } from '../../services/MenuStore';
3
+ import type { SearchStore } from '../../services/SearchStore';
4
4
  import { MenuItem } from '../SideMenu/MenuItem';
5
- import { MarkerService } from '../../services/MarkerService';
5
+ import type { MarkerService } from '../../services/MarkerService';
6
6
  import type { SearchResult } from '../../services/SearchWorker.worker';
7
7
  export interface SearchBoxProps {
8
8
  search: SearchStore<string>;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { SecurityRequirementModel } from '../../services/models/SecurityRequirement';
2
+ import type { SecurityRequirementModel } from '../../services/models/SecurityRequirement';
3
3
  export interface SecurityRequirementProps {
4
4
  security: SecurityRequirementModel;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { SecuritySchemesModel } from '../../services/models';
3
- import { OpenAPISecurityScheme } from '../../types';
2
+ import type { SecuritySchemesModel } from '../../services/models';
3
+ import type { OpenAPISecurityScheme } from '../../types';
4
4
  export interface OAuthFlowProps {
5
5
  type: string;
6
6
  flow: OpenAPISecurityScheme['flows'][keyof OpenAPISecurityScheme['flows']];
@@ -1,12 +1,12 @@
1
1
  import * as React from 'react';
2
- import { IMenuItem, OperationModel } from '../../services';
3
- import { ExternalLink } from '../../../../services/ProStore';
2
+ import type { IMenuItem, OperationModel } from '../../services';
3
+ import type { ExternalLink } from '../../../../services/types';
4
4
  export interface MenuItemProps {
5
5
  item: IMenuItem;
6
6
  onActivate?: (item: IMenuItem, evt: React.MouseEvent<HTMLElement>) => void;
7
7
  withoutChildren?: boolean;
8
8
  }
9
- export declare const MenuExternalLink: (props: React.PropsWithChildren<{
9
+ export declare const MenuExternalLink: ({ link, }: React.PropsWithChildren<{
10
10
  link: ExternalLink;
11
11
  }>) => JSX.Element;
12
12
  export declare const MenuItem: (props: React.PropsWithChildren<MenuItemProps>) => JSX.Element;
@@ -1,2 +1,2 @@
1
- import{__assign,__makeTemplateObject,__rest}from"tslib";import{observer}from"mobx-react";import*as React from"react";import{ShelfIcon}from"../../common-elements/icons";import{shortenHTTPVerb}from"../../utils/openapi";import{MenuItems}from"./MenuItems";import{MenuItemLabel,MenuItemLink,MenuItemLi,MenuItemTitle,OperationBadge}from"./styled.elements";import{OptionsContext}from"../OptionsProvider";import styled from"../../styled-components";import{l}from"../../services/Labels";import{userIsForcingNavigation}from"../../common-elements/linkify";export var MenuExternalLink=observer((function(e){var t=e.link;return React.createElement(React.Fragment,null,isSeparator(t)?t.separator?React.createElement(MenuItemLabel,{depth:0,active:!1},t.separator):null:React.createElement(MenuItemLi,{depth:1},React.createElement(MenuItemLink,{href:t.link,target:t.target,active:!1,depth:1},React.createElement(MenuItemTitle,{title:t.label},t.label))),t.separatorLine?React.createElement(SeparatorLine,null):null)}));function preventDefaultIfNotForced(e){e.defaultPrevented||userIsForcingNavigation(e)||e.preventDefault()}var MenuItemLinkOrLabel=React.forwardRef((function(e,t){var n=e.href,a=e.children,r=__rest(e,["href","children"]);return n?React.createElement(MenuItemLink,__assign({href:n,onClick:preventDefaultIfNotForced},r,{ref:t}),a):React.createElement(MenuItemLabel,__assign({},r,{ref:t}),a)})),MenuItemOperationLinkOrLabel=styled(MenuItemLinkOrLabel)(templateObject_1||(templateObject_1=__makeTemplateObject(["\n flex-wrap: wrap;\n"],["\n flex-wrap: wrap;\n"])));export var MenuItem=observer((function(e){var t=e.item,n=e.withoutChildren,a=e.onActivate,r=React.createRef(),i=React.useState(!1),l=i[0],o=i[1],c=React.useState("group"===t.type&&t.expanded),m=c[0],p=c[1];React.useEffect((function(){o(t.active)}),[t.active]),React.useEffect((function(){p(t.expanded)}),[t.expanded]);var s=React.useCallback((function(e){userIsForcingNavigation(e)||(null==a||a(t,e),e.stopPropagation())}),[a,t]);return React.useEffect((function(){e.item.active&&r.current&&r.current.scrollIntoViewIfNeeded()}),[e.item,e.item.active,r]),React.createElement(MenuItemLi,{onClick:s,depth:t.depth,"data-item-id":t.id},"operation"===t.type?React.createElement(OperationItemContent,__assign({},e,{item:t,ref:r})):React.createElement(MenuItemLinkOrLabel,{depth:t.depth,active:l,type:t.type,ref:r,href:t.href,hasChildren:t.items&&t.items.length>0},t.depth>0&&t.items.length>0&&React.createElement(ShelfIcon,{direction:m?"down":"right"})||null,React.createElement(MenuItemTitle,{title:t.name},t.name,e.children)),!n&&t.items&&t.items.length>0&&React.createElement(MenuItems,{expanded:m,items:t.items,onActivate:a}))}));var OperationItemContent=observer(React.forwardRef((function(e,t){var n,a,r=e.item;return"path-first"!==React.useContext(OptionsContext).sideNavStyle&&!r.search||"operation"!==r.type?(n=r.name,a=null):(n=React.createElement(MenuItemPath,{title:r.path}," ",r.path," "),a=React.createElement(MenuItemDescription,null," ",r.name," ")),React.createElement(MenuItemOperationLinkOrLabel,{depth:r.depth,active:r.active,deprecated:r.deprecated,ref:t,href:r.href},r.isWebhook?React.createElement(OperationBadge,{type:"hook"},l("webhook")):React.createElement(OperationBadge,{type:r.httpVerb},shortenHTTPVerb(r.httpVerb)),React.createElement(MenuItemTitle,{width:"calc(100% - 42px)"},n,e.children),a)})));function isSeparator(e){return null!=e.separator||!!e.separatorLine&&!e.link}export var MenuItemPath=styled.code(templateObject_2||(templateObject_2=__makeTemplateObject(["\n line-height: 1.4;\n display: inline-block;\n margin-bottom: 5px;\n ","\n"],["\n line-height: 1.4;\n display: inline-block;\n margin-bottom: 5px;\n ","\n"])),(function(e){var t;return(null===(t=e.theme.sidebar)||void 0===t?void 0:t.breakPath)?"word-break: break-all":""}));var templateObject_1,templateObject_2,templateObject_3,templateObject_4,MenuItemDescription=styled.small(templateObject_3||(templateObject_3=__makeTemplateObject(["\n display: block;\n font-size: 0.87em;\n line-height: 1.2;\n"],["\n display: block;\n font-size: 0.87em;\n line-height: 1.2;\n"])));export var SeparatorLine=styled.span(templateObject_4||(templateObject_4=__makeTemplateObject(["\n display: block;\n width: 100%;\n height: 1px;\n background-color: ",";\n margin: ","px 0;\n"],["\n display: block;\n width: 100%;\n height: 1px;\n background-color: ",";\n margin: ","px 0;\n"])),(function(e){return e.theme.sidebar.separatorLineColor}),(function(e){return e.theme.sidebar.spacing.paddingVertical}));
1
+ import{__assign,__makeTemplateObject,__rest}from"tslib";import{observer}from"mobx-react";import*as React from"react";import{ShelfIcon}from"../../common-elements/icons";import{shortenHTTPVerb}from"../../utils/openapi";import{MenuItems}from"./MenuItems";import{MenuItemLabel,MenuItemLi,MenuItemLink,MenuItemTitle,OperationBadge}from"./styled.elements";import{OptionsContext}from"../OptionsProvider";import styled from"../../styled-components";import{l}from"../../services/Labels";import{userIsForcingNavigation}from"../../common-elements/linkify";import{SideNavStyle}from"../../../../services/types";export var MenuExternalLink=observer((function(e){var t=e.link;return React.createElement(React.Fragment,null,isSeparator(t)?t.separator?React.createElement(MenuItemLabel,{depth:0,active:!1},t.separator):null:React.createElement(MenuItemLi,{depth:1},React.createElement(MenuItemLink,{href:t.link,target:t.target,active:!1,depth:1},React.createElement(MenuItemTitle,{title:t.label},t.label))),t.separatorLine?React.createElement(SeparatorLine,null):null)}));function preventDefaultIfNotForced(e){e.defaultPrevented||userIsForcingNavigation(e)||e.preventDefault()}var MenuItemLinkOrLabel=React.forwardRef((function(e,t){var n=e.href,a=e.children,r=__rest(e,["href","children"]);return n?React.createElement(MenuItemLink,__assign({href:n,onClick:preventDefaultIfNotForced},r,{ref:t}),a):React.createElement(MenuItemLabel,__assign({},r,{ref:t}),a)})),MenuItemOperationLinkOrLabel=styled(MenuItemLinkOrLabel)(templateObject_1||(templateObject_1=__makeTemplateObject(["\n flex-wrap: wrap;\n"],["\n flex-wrap: wrap;\n"])));export var MenuItem=observer((function(e){var t=e.item,n=e.withoutChildren,a=e.onActivate,r=React.createRef(),i=React.useState(!1),l=i[0],o=i[1],c=React.useState("group"===t.type&&t.expanded),m=c[0],p=c[1];React.useEffect((function(){o(t.active)}),[t.active]),React.useEffect((function(){p(t.expanded)}),[t.expanded]);var s=React.useCallback((function(e){userIsForcingNavigation(e)||(null==a||a(t,e),e.stopPropagation())}),[a,t]);return React.useEffect((function(){e.item.active&&r.current&&r.current.scrollIntoViewIfNeeded()}),[e.item,e.item.active,r]),React.createElement(MenuItemLi,{onClick:s,depth:t.depth,"data-item-id":t.id},"operation"===t.type?React.createElement(OperationItemContent,__assign({},e,{item:t,ref:r})):React.createElement(MenuItemLinkOrLabel,{depth:t.depth,active:l,type:t.type,ref:r,href:t.href,hasChildren:t.items&&t.items.length>0},t.depth>0&&t.items.length>0&&React.createElement(ShelfIcon,{direction:m?"down":"right"})||null,React.createElement(MenuItemTitle,{title:t.name},t.name,e.children)),!n&&t.items&&t.items.length>0&&React.createElement(MenuItems,{expanded:m,items:t.items,onActivate:a}))}));var OperationItemContent=observer(React.forwardRef((function(e,t){var n,a,r=e.item,i=e.children,o=React.useContext(OptionsContext);return o.sideNavStyle!==SideNavStyle.PathFirst&&!r.search||"operation"!==r.type?(n=o.sideNavStyle===SideNavStyle.IdOnly?r.operationId||r.path:r.name,a=null):(n=React.createElement(MenuItemPath,{title:r.path}," ",r.path," "),a=React.createElement(MenuItemDescription,null," ",r.name," ")),React.createElement(MenuItemOperationLinkOrLabel,{depth:r.depth,active:r.active,deprecated:r.deprecated,ref:t,href:r.href},r.isWebhook?React.createElement(OperationBadge,{type:"hook"},l("webhook")):React.createElement(OperationBadge,{type:r.httpVerb},shortenHTTPVerb(r.httpVerb)),React.createElement(MenuItemTitle,{width:"calc(100% - 42px)"},n,i),a)})));function isSeparator(e){return null!=e.separator||!!e.separatorLine&&!e.link}export var MenuItemPath=styled.code(templateObject_2||(templateObject_2=__makeTemplateObject(["\n line-height: 1.4;\n display: inline-block;\n margin-bottom: 5px;\n ","\n"],["\n line-height: 1.4;\n display: inline-block;\n margin-bottom: 5px;\n ","\n"])),(function(e){var t;return(null===(t=e.theme.sidebar)||void 0===t?void 0:t.breakPath)?"word-break: break-all":""}));var templateObject_1,templateObject_2,templateObject_3,templateObject_4,MenuItemDescription=styled.small(templateObject_3||(templateObject_3=__makeTemplateObject(["\n display: block;\n font-size: 0.87em;\n line-height: 1.2;\n"],["\n display: block;\n font-size: 0.87em;\n line-height: 1.2;\n"])));export var SeparatorLine=styled.span(templateObject_4||(templateObject_4=__makeTemplateObject(["\n display: block;\n width: 100%;\n height: 1px;\n background-color: ",";\n margin: ","px 0;\n"],["\n display: block;\n width: 100%;\n height: 1px;\n background-color: ",";\n margin: ","px 0;\n"])),(function(e){return e.theme.sidebar.separatorLineColor}),(function(e){return e.theme.sidebar.spacing.paddingVertical}));
2
2
  //# sourceMappingURL=MenuItem.js.map
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- import { IMenuItem } from '../../services/MenuStore';
3
- import { RedocProNormalizedOptions } from '../../../../services/ProStore';
4
- import { ProMenu } from '../../../../services/ProMenu';
2
+ import type { IMenuItem } from '../../services/MenuStore';
3
+ import type { RedocProNormalizedOptions } from '../../../../services/ProStore';
4
+ import type { ProMenu } from '../../../../services/ProMenu';
5
5
  export declare class SideMenu extends React.Component<{
6
6
  menu: ProMenu;
7
7
  className?: string;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { ExternalSource } from '../../services/RedocNormalizedOptions';
3
- import { FileInfo } from '../../common-elements/Download';
2
+ import type { ExternalSource } from '../../services/RedocNormalizedOptions';
3
+ import type { FileInfo } from '../../common-elements/Download';
4
4
  export interface SourceCodeProps {
5
5
  lang: string;
6
6
  source?: string;
@@ -1,7 +1,8 @@
1
1
  import * as React from 'react';
2
- import { RedocNormalizedOptions, RedocRawOptions } from '../../services/RedocNormalizedOptions';
2
+ import type { RedocRawOptions } from '../../services/RedocNormalizedOptions';
3
+ import { RedocNormalizedOptions } from '../../services/RedocNormalizedOptions';
3
4
  import { OptionsContext } from '../OptionsProvider';
4
- import { ProMenu } from '../../../../services/ProMenu';
5
+ import type { ProMenu } from '../../../../services/ProMenu';
5
6
  export interface StickySidebarProps {
6
7
  className?: string;
7
8
  scrollYOffset?: RedocRawOptions['scrollYOffset'];
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ProStore } from '../../../services/ProStore';
2
+ import type { ProStore } from '../../../services/ProStore';
3
3
  declare const StoreContext: import("react").Context<ProStore | undefined>;
4
4
  declare const Provider: import("react").Provider<ProStore | undefined>, Consumer: import("react").Consumer<ProStore | undefined>;
5
5
  export { Provider as StoreProvider, Consumer as StoreConsumer, StoreContext };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { HookConfig } from '../services/RedocNormalizedOptions';
2
+ import type { HookConfig } from '../services/RedocNormalizedOptions';
3
3
  export declare function RenderHook<T>(props: {
4
4
  Hook?: HookConfig<T>;
5
5
  props: T;
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  import { marked } from 'marked';
3
- import { ProStore } from '../../../services/ProStore';
4
- import { RedocNormalizedOptions } from './RedocNormalizedOptions';
3
+ import type { ProStore } from '../../../services/ProStore';
4
+ import type { RedocNormalizedOptions } from './RedocNormalizedOptions';
5
5
  export declare const LEGACY_REGEXP = "^ {0,3}<!-- ReDoc-Inject:\\s+?<({component}).*?/?>\\s+?-->\\s*$";
6
6
  export declare const MDX_COMPONENT_REGEXP: string;
7
7
  export declare const COMPONENT_REGEXP: string;
@@ -1,7 +1,7 @@
1
- import { OpenAPIOperation, OpenAPIParameter, OpenAPITag, Referenced, OpenAPIServer } from '../types';
1
+ import type { OpenAPIOperation, OpenAPIParameter, OpenAPITag, Referenced, OpenAPIServer } from '../types';
2
2
  import { GroupModel, OperationModel } from './models';
3
- import { OpenAPIParser } from './OpenAPIParser';
4
- import { RedocProNormalizedOptions } from '../../../services';
3
+ import type { OpenAPIParser } from './OpenAPIParser';
4
+ import type { RedocProNormalizedOptions } from '../../../services';
5
5
  export declare type TagInfo = OpenAPITag & {
6
6
  operations: ExtendedOpenAPIOperation[];
7
7
  used?: boolean;
@@ -1,4 +1,4 @@
1
- import { OpenAPIRef, OpenAPISchema, OpenAPIDefinition, Referenced } from '../types';
1
+ import type { OpenAPIRef, OpenAPISchema, OpenAPIDefinition, Referenced } from '../types';
2
2
  import { RedocNormalizedOptions } from './RedocNormalizedOptions';
3
3
  export declare type MergedOpenAPISchema = OpenAPISchema & {
4
4
  parentRefs?: string[];
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { OperationModel, Sample } from '.';
3
- import { ResolvedThemeInterface, ThemeInterface } from '../theme';
4
- import { LabelsConfigRaw } from './Labels';
5
- import { MDXComponentMeta } from './MarkdownRenderer';
6
- import { Server } from '../types';
2
+ import type { OperationModel, Sample } from '.';
3
+ import type { ResolvedThemeInterface, ThemeInterface } from '../theme';
4
+ import type { LabelsConfigRaw } from './Labels';
5
+ import type { MDXComponentMeta } from './MarkdownRenderer';
6
+ import type { Server } from '../types';
7
7
  import type { OAuth2 } from '../../../services/OAuth2';
8
8
  import type { ProStore } from '../../../services';
9
9
  export declare type Unstable_ExternalCodeSample = Sample & {
@@ -68,6 +68,7 @@ export interface RedocRawOptions {
68
68
  untrustedDefinition?: boolean | string;
69
69
  hideLoading?: boolean | string;
70
70
  hideDownloadButton?: boolean | string;
71
+ downloadDefinitionUrl?: string;
71
72
  disableSearch?: boolean | string;
72
73
  showChangeLayoutButton?: boolean | string;
73
74
  onlyRequiredInSamples?: boolean | string;
@@ -129,6 +130,7 @@ export declare class RedocNormalizedOptions {
129
130
  pathInMiddlePanel: boolean;
130
131
  untrustedDefinition: boolean;
131
132
  hideDownloadButton: boolean | null;
133
+ downloadDefinitionUrl?: string;
132
134
  disableSearch: boolean;
133
135
  showChangeLayoutButton?: boolean | string;
134
136
  onlyRequiredInSamples: boolean;