@redocly/reference-docs 2.13.0 → 2.13.3

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 (338) hide show
  1. package/bin/cli/commands/redocly-docs-cli.min.js +66 -66
  2. package/bin/cli/commands/redocly-docs-cli.min.js.LICENSE.txt +1 -1
  3. package/dist/console.redocly-reference-docs.min.js +2 -2
  4. package/dist/oauth2-redirect.js +1 -1
  5. package/dist/redocly-reference-docs.min.js +822 -822
  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/ExampleSwitch.js +1 -1
  16. package/lib/components/Samples/SamplesTabs.d.ts +1 -1
  17. package/lib/components/Samples/use-example-key.d.ts +1 -1
  18. package/lib/components/Search/MenuItemProSearch.d.ts +2 -2
  19. package/lib/components/Search/MenuItemProSearch.js +1 -1
  20. package/lib/components/Search/ProSearchBox.d.ts +5 -5
  21. package/lib/components/Search/SearchField.d.ts +1 -1
  22. package/lib/components/StoreProvider.d.ts +3 -2
  23. package/lib/components/Tabs/CollapsingTabs/CollapsingTabs.d.ts +1 -1
  24. package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +2 -2
  25. package/lib/components/VersionSwitcher.d.ts +2 -2
  26. package/lib/components/common/CheckboxList.d.ts +3 -2
  27. package/lib/components/common/Dropdown/Dropdown.d.ts +1 -1
  28. package/lib/components/common/Dropdown/types.d.ts +1 -1
  29. package/lib/components/common/FileUpload/helper.d.ts +1 -1
  30. package/lib/components/common/TextField.d.ts +1 -1
  31. package/lib/components/console/ActionPanel.d.ts +2 -2
  32. package/lib/components/console/AuthPanel.d.ts +4 -4
  33. package/lib/components/console/CodemirrorInput.d.ts +1 -1
  34. package/lib/components/console/Console.d.ts +6 -6
  35. package/lib/components/console/OAuth2Flow.d.ts +4 -4
  36. package/lib/components/console/OAuth2TokenInput.d.ts +1 -1
  37. package/lib/components/console/OpenIDConnect.d.ts +3 -3
  38. package/lib/components/console/OperationParameters.d.ts +1 -1
  39. package/lib/components/console/RequestBody.d.ts +2 -2
  40. package/lib/components/console/RequestBody.js +1 -1
  41. package/lib/components/console/RequestBodyForm.d.ts +1 -1
  42. package/lib/components/console/ResponseBody.d.ts +1 -1
  43. package/lib/components/console/ResponsePanel.d.ts +1 -1
  44. package/lib/components/console/ServerDropdown.d.ts +1 -1
  45. package/lib/components/console/utils.d.ts +1 -1
  46. package/lib/components/pluggable/RedocExample.d.ts +2 -2
  47. package/lib/components/pluggable/RedocRequestBody.d.ts +1 -1
  48. package/lib/components/pluggable/RedocResponse.d.ts +1 -1
  49. package/lib/components/pluggable/RedocSchema.d.ts +2 -2
  50. package/lib/components/pluggable/styled.components.d.ts +1 -1
  51. package/lib/components/styled.elements.d.ts +3 -2
  52. package/lib/models/code-sample-options.d.ts +1 -1
  53. package/lib/redoc-lib/src/common-elements/LinkToField.d.ts +2 -2
  54. package/lib/redoc-lib/src/common-elements/Tooltip.d.ts +1 -1
  55. package/lib/redoc-lib/src/common-elements/linkify.d.ts +3 -2
  56. package/lib/redoc-lib/src/common-elements/perfect-scrollbar.d.ts +3 -2
  57. package/lib/redoc-lib/src/components/ApiInfo/ApiInfo.d.ts +1 -1
  58. package/lib/redoc-lib/src/components/ApiLogo/ApiLogo.d.ts +1 -1
  59. package/lib/redoc-lib/src/components/ApiLogo/styled.elements.d.ts +1 -1
  60. package/lib/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.d.ts +1 -1
  61. package/lib/redoc-lib/src/components/CallbackSamples/CallbackSamples.d.ts +2 -2
  62. package/lib/redoc-lib/src/components/Callbacks/CallbackDetails.d.ts +1 -1
  63. package/lib/redoc-lib/src/components/Callbacks/CallbackOperation.d.ts +1 -1
  64. package/lib/redoc-lib/src/components/Callbacks/CallbackSummary.d.ts +2 -2
  65. package/lib/redoc-lib/src/components/Callbacks/CallbacksList.d.ts +1 -1
  66. package/lib/redoc-lib/src/components/ContentItems/ContentItems.d.ts +3 -3
  67. package/lib/redoc-lib/src/components/DownloadButton/DownloadButton.d.ts +1 -1
  68. package/lib/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.d.ts +1 -1
  69. package/lib/redoc-lib/src/components/ErrorBoundary.d.ts +2 -1
  70. package/lib/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.d.ts +1 -1
  71. package/lib/redoc-lib/src/components/Fields/Field.d.ts +3 -3
  72. package/lib/redoc-lib/src/components/Fields/FieldDetails.d.ts +1 -1
  73. package/lib/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +1 -1
  74. package/lib/redoc-lib/src/components/Markdown/AdvancedMarkdown.d.ts +3 -3
  75. package/lib/redoc-lib/src/components/Markdown/SanitizedMdBlock.d.ts +1 -1
  76. package/lib/redoc-lib/src/components/Markdown/styled.elements.d.ts +1 -1
  77. package/lib/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +2 -2
  78. package/lib/redoc-lib/src/components/Operation/Operation.d.ts +1 -1
  79. package/lib/redoc-lib/src/components/OptionsProvider.d.ts +1 -1
  80. package/lib/redoc-lib/src/components/Parameters/ParametersGroup.d.ts +1 -1
  81. package/lib/redoc-lib/src/components/PayloadSamples/Example.d.ts +1 -1
  82. package/lib/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.d.ts +1 -1
  83. package/lib/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.js +1 -1
  84. package/lib/redoc-lib/src/components/PayloadSamples/PayloadSamples.d.ts +1 -1
  85. package/lib/redoc-lib/src/components/PayloadSamples/exernalExampleHook.d.ts +1 -1
  86. package/lib/redoc-lib/src/components/RequestSamples/CodeSample.d.ts +2 -2
  87. package/lib/redoc-lib/src/components/RequestSamples/RequestSamples.d.ts +1 -1
  88. package/lib/redoc-lib/src/components/RequestSamples/languageSwitchEvent.d.ts +3 -2
  89. package/lib/redoc-lib/src/components/RequestSamples/useCodeSamples.d.ts +1 -1
  90. package/lib/redoc-lib/src/components/Responses/Response.d.ts +1 -1
  91. package/lib/redoc-lib/src/components/Responses/ResponseDetails.d.ts +1 -1
  92. package/lib/redoc-lib/src/components/Responses/ResponseHeaders.d.ts +1 -1
  93. package/lib/redoc-lib/src/components/Responses/ResponseSummary.d.ts +2 -2
  94. package/lib/redoc-lib/src/components/Responses/ResponsesList.d.ts +1 -1
  95. package/lib/redoc-lib/src/components/Schema/ArraySchema.d.ts +1 -1
  96. package/lib/redoc-lib/src/components/Schema/DiscriminatorDropdown.d.ts +2 -2
  97. package/lib/redoc-lib/src/components/Schema/ObjectSchema.d.ts +1 -1
  98. package/lib/redoc-lib/src/components/Schema/OneOfSchema.d.ts +1 -1
  99. package/lib/redoc-lib/src/components/Schema/Schema.d.ts +1 -1
  100. package/lib/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.d.ts +2 -2
  101. package/lib/redoc-lib/src/components/SearchBox/SearchBox.d.ts +3 -3
  102. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.d.ts +1 -1
  103. package/lib/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.d.ts +2 -2
  104. package/lib/redoc-lib/src/components/SideMenu/MenuItem.d.ts +3 -3
  105. package/lib/redoc-lib/src/components/SideMenu/MenuItem.js +1 -1
  106. package/lib/redoc-lib/src/components/SideMenu/SideMenu.d.ts +3 -3
  107. package/lib/redoc-lib/src/components/SourceCode/SourceCode.d.ts +2 -2
  108. package/lib/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.d.ts +3 -2
  109. package/lib/redoc-lib/src/components/StoreBuilder.d.ts +1 -1
  110. package/lib/redoc-lib/src/components/helper.d.ts +1 -1
  111. package/lib/redoc-lib/src/services/MarkdownRenderer.d.ts +3 -3
  112. package/lib/redoc-lib/src/services/MenuBuilder.d.ts +3 -3
  113. package/lib/redoc-lib/src/services/OpenAPIParser.d.ts +1 -1
  114. package/lib/redoc-lib/src/services/RedocNormalizedOptions.d.ts +7 -5
  115. package/lib/redoc-lib/src/services/RedocNormalizedOptions.js +1 -1
  116. package/lib/redoc-lib/src/services/ScrollService.d.ts +1 -1
  117. package/lib/redoc-lib/src/services/SpecStore.d.ts +3 -3
  118. package/lib/redoc-lib/src/services/models/ApiInfo.d.ts +2 -2
  119. package/lib/redoc-lib/src/services/models/Callback.d.ts +3 -3
  120. package/lib/redoc-lib/src/services/models/Example.d.ts +2 -2
  121. package/lib/redoc-lib/src/services/models/Field.d.ts +5 -4
  122. package/lib/redoc-lib/src/services/models/Group.model.d.ts +4 -4
  123. package/lib/redoc-lib/src/services/models/MediaContent.d.ts +5 -5
  124. package/lib/redoc-lib/src/services/models/MediaType.d.ts +5 -5
  125. package/lib/redoc-lib/src/services/models/Operation.d.ts +8 -8
  126. package/lib/redoc-lib/src/services/models/RequestBody.d.ts +4 -4
  127. package/lib/redoc-lib/src/services/models/Response.d.ts +4 -4
  128. package/lib/redoc-lib/src/services/models/Schema.d.ts +5 -5
  129. package/lib/redoc-lib/src/services/models/SecurityRequirement.d.ts +2 -2
  130. package/lib/redoc-lib/src/services/models/SecuritySchemes.d.ts +2 -2
  131. package/lib/redoc-lib/src/services/models/Webhook.d.ts +3 -3
  132. package/lib/redoc-lib/src/styled-components.d.ts +2 -2
  133. package/lib/redoc-lib/src/types/open-api.d.ts +2 -2
  134. package/lib/redoc-lib/src/utils/helpers.d.ts +3 -1
  135. package/lib/redoc-lib/src/utils/helpers.js +1 -1
  136. package/lib/redoc-lib/src/utils/loadAndBundleSpec.d.ts +1 -1
  137. package/lib/redoc-lib/src/utils/media-css.d.ts +1 -1
  138. package/lib/redoc-lib/src/utils/openapi.d.ts +3 -3
  139. package/lib/services/ProMenu.d.ts +2 -2
  140. package/lib/services/ProStore.d.ts +13 -26
  141. package/lib/services/ProStore.js +1 -1
  142. package/lib/services/SearchStore.d.ts +3 -2
  143. package/lib/services/VersionedSpecStore.d.ts +3 -2
  144. package/lib/services/code-samples/generator.d.ts +3 -3
  145. package/lib/services/code-samples/generator.js +1 -1
  146. package/lib/services/code-samples/httpsnippet/helpers/code-helpers.d.ts +2 -2
  147. package/lib/services/code-samples/httpsnippet/index.d.ts +2 -2
  148. package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.d.ts +2 -2
  149. package/lib/services/code-samples/httpsnippet/targets/go/native.d.ts +2 -2
  150. package/lib/services/code-samples/httpsnippet/targets/java/httpclient.d.ts +2 -2
  151. package/lib/services/code-samples/httpsnippet/targets/java8/apachehttp.d.ts +2 -2
  152. package/lib/services/code-samples/httpsnippet/targets/javascript/fetch.d.ts +2 -2
  153. package/lib/services/code-samples/httpsnippet/targets/node/fetch.d.ts +2 -2
  154. package/lib/services/code-samples/httpsnippet/targets/php/curl.d.ts +2 -2
  155. package/lib/services/code-samples/httpsnippet/targets/php/utils.d.ts +1 -1
  156. package/lib/services/code-samples/httpsnippet/targets/python/requests.d.ts +2 -2
  157. package/lib/services/code-samples/httpsnippet/targets/ruby/native.d.ts +2 -2
  158. package/lib/services/code-samples/httpsnippet/targets/shell/curl.d.ts +2 -2
  159. package/lib/services/extendTheme.d.ts +2 -2
  160. package/lib/services/history/FakeHistoryService.d.ts +2 -2
  161. package/lib/services/history/ProHashHistoryService.d.ts +2 -2
  162. package/lib/services/history/PushStateHistoryService.d.ts +3 -2
  163. package/lib/services/history/helpers.d.ts +1 -1
  164. package/lib/services/index.d.ts +1 -0
  165. package/lib/services/index.js +1 -1
  166. package/lib/services/types.d.ts +24 -0
  167. package/lib/services/types.js +2 -0
  168. package/lib/services/utils.d.ts +1 -1
  169. package/lib/services/utils.js +1 -1
  170. package/lib/standalone.d.ts +3 -3
  171. package/lib/utils.js +1 -1
  172. package/lib-esm/components/Endpoint/Endpoint.d.ts +2 -2
  173. package/lib-esm/components/Endpoint/ServerList.d.ts +2 -2
  174. package/lib-esm/components/Endpoint/Summary.d.ts +3 -3
  175. package/lib-esm/components/NextSectionButton.d.ts +2 -2
  176. package/lib-esm/components/Overlay.d.ts +1 -1
  177. package/lib-esm/components/Panel/PanelComponent.d.ts +2 -1
  178. package/lib-esm/components/ProProviders.d.ts +2 -2
  179. package/lib-esm/components/RedoclyReferenceDocs.d.ts +3 -3
  180. package/lib-esm/components/Samples/ExampleSwitch.d.ts +1 -1
  181. package/lib-esm/components/Samples/ExampleSwitch.js +1 -1
  182. package/lib-esm/components/Samples/SamplesTabs.d.ts +1 -1
  183. package/lib-esm/components/Samples/use-example-key.d.ts +1 -1
  184. package/lib-esm/components/Search/MenuItemProSearch.d.ts +2 -2
  185. package/lib-esm/components/Search/MenuItemProSearch.js +1 -1
  186. package/lib-esm/components/Search/ProSearchBox.d.ts +5 -5
  187. package/lib-esm/components/Search/SearchField.d.ts +1 -1
  188. package/lib-esm/components/StoreProvider.d.ts +3 -2
  189. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabs.d.ts +1 -1
  190. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +2 -2
  191. package/lib-esm/components/VersionSwitcher.d.ts +2 -2
  192. package/lib-esm/components/common/CheckboxList.d.ts +3 -2
  193. package/lib-esm/components/common/Dropdown/Dropdown.d.ts +1 -1
  194. package/lib-esm/components/common/Dropdown/types.d.ts +1 -1
  195. package/lib-esm/components/common/FileUpload/helper.d.ts +1 -1
  196. package/lib-esm/components/common/TextField.d.ts +1 -1
  197. package/lib-esm/components/console/ActionPanel.d.ts +2 -2
  198. package/lib-esm/components/console/AuthPanel.d.ts +4 -4
  199. package/lib-esm/components/console/CodemirrorInput.d.ts +1 -1
  200. package/lib-esm/components/console/Console.d.ts +6 -6
  201. package/lib-esm/components/console/OAuth2Flow.d.ts +4 -4
  202. package/lib-esm/components/console/OAuth2TokenInput.d.ts +1 -1
  203. package/lib-esm/components/console/OpenIDConnect.d.ts +3 -3
  204. package/lib-esm/components/console/OperationParameters.d.ts +1 -1
  205. package/lib-esm/components/console/RequestBody.d.ts +2 -2
  206. package/lib-esm/components/console/RequestBody.js +1 -1
  207. package/lib-esm/components/console/RequestBodyForm.d.ts +1 -1
  208. package/lib-esm/components/console/ResponseBody.d.ts +1 -1
  209. package/lib-esm/components/console/ResponsePanel.d.ts +1 -1
  210. package/lib-esm/components/console/ServerDropdown.d.ts +1 -1
  211. package/lib-esm/components/console/utils.d.ts +1 -1
  212. package/lib-esm/components/pluggable/RedocExample.d.ts +2 -2
  213. package/lib-esm/components/pluggable/RedocRequestBody.d.ts +1 -1
  214. package/lib-esm/components/pluggable/RedocResponse.d.ts +1 -1
  215. package/lib-esm/components/pluggable/RedocSchema.d.ts +2 -2
  216. package/lib-esm/components/pluggable/styled.components.d.ts +1 -1
  217. package/lib-esm/components/styled.elements.d.ts +3 -2
  218. package/lib-esm/models/code-sample-options.d.ts +1 -1
  219. package/lib-esm/redoc-lib/src/common-elements/LinkToField.d.ts +2 -2
  220. package/lib-esm/redoc-lib/src/common-elements/Tooltip.d.ts +1 -1
  221. package/lib-esm/redoc-lib/src/common-elements/linkify.d.ts +3 -2
  222. package/lib-esm/redoc-lib/src/common-elements/perfect-scrollbar.d.ts +3 -2
  223. package/lib-esm/redoc-lib/src/components/ApiInfo/ApiInfo.d.ts +1 -1
  224. package/lib-esm/redoc-lib/src/components/ApiLogo/ApiLogo.d.ts +1 -1
  225. package/lib-esm/redoc-lib/src/components/ApiLogo/styled.elements.d.ts +1 -1
  226. package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.d.ts +1 -1
  227. package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackSamples.d.ts +2 -2
  228. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackDetails.d.ts +1 -1
  229. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackOperation.d.ts +1 -1
  230. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackSummary.d.ts +2 -2
  231. package/lib-esm/redoc-lib/src/components/Callbacks/CallbacksList.d.ts +1 -1
  232. package/lib-esm/redoc-lib/src/components/ContentItems/ContentItems.d.ts +3 -3
  233. package/lib-esm/redoc-lib/src/components/DownloadButton/DownloadButton.d.ts +1 -1
  234. package/lib-esm/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.d.ts +1 -1
  235. package/lib-esm/redoc-lib/src/components/ErrorBoundary.d.ts +2 -1
  236. package/lib-esm/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.d.ts +1 -1
  237. package/lib-esm/redoc-lib/src/components/Fields/Field.d.ts +3 -3
  238. package/lib-esm/redoc-lib/src/components/Fields/FieldDetails.d.ts +1 -1
  239. package/lib-esm/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +1 -1
  240. package/lib-esm/redoc-lib/src/components/Markdown/AdvancedMarkdown.d.ts +3 -3
  241. package/lib-esm/redoc-lib/src/components/Markdown/SanitizedMdBlock.d.ts +1 -1
  242. package/lib-esm/redoc-lib/src/components/Markdown/styled.elements.d.ts +1 -1
  243. package/lib-esm/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +2 -2
  244. package/lib-esm/redoc-lib/src/components/Operation/Operation.d.ts +1 -1
  245. package/lib-esm/redoc-lib/src/components/OptionsProvider.d.ts +1 -1
  246. package/lib-esm/redoc-lib/src/components/Parameters/ParametersGroup.d.ts +1 -1
  247. package/lib-esm/redoc-lib/src/components/PayloadSamples/Example.d.ts +1 -1
  248. package/lib-esm/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.d.ts +1 -1
  249. package/lib-esm/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.js +1 -1
  250. package/lib-esm/redoc-lib/src/components/PayloadSamples/PayloadSamples.d.ts +1 -1
  251. package/lib-esm/redoc-lib/src/components/PayloadSamples/exernalExampleHook.d.ts +1 -1
  252. package/lib-esm/redoc-lib/src/components/RequestSamples/CodeSample.d.ts +2 -2
  253. package/lib-esm/redoc-lib/src/components/RequestSamples/RequestSamples.d.ts +1 -1
  254. package/lib-esm/redoc-lib/src/components/RequestSamples/languageSwitchEvent.d.ts +3 -2
  255. package/lib-esm/redoc-lib/src/components/RequestSamples/useCodeSamples.d.ts +1 -1
  256. package/lib-esm/redoc-lib/src/components/Responses/Response.d.ts +1 -1
  257. package/lib-esm/redoc-lib/src/components/Responses/ResponseDetails.d.ts +1 -1
  258. package/lib-esm/redoc-lib/src/components/Responses/ResponseHeaders.d.ts +1 -1
  259. package/lib-esm/redoc-lib/src/components/Responses/ResponseSummary.d.ts +2 -2
  260. package/lib-esm/redoc-lib/src/components/Responses/ResponsesList.d.ts +1 -1
  261. package/lib-esm/redoc-lib/src/components/Schema/ArraySchema.d.ts +1 -1
  262. package/lib-esm/redoc-lib/src/components/Schema/DiscriminatorDropdown.d.ts +2 -2
  263. package/lib-esm/redoc-lib/src/components/Schema/ObjectSchema.d.ts +1 -1
  264. package/lib-esm/redoc-lib/src/components/Schema/OneOfSchema.d.ts +1 -1
  265. package/lib-esm/redoc-lib/src/components/Schema/Schema.d.ts +1 -1
  266. package/lib-esm/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.d.ts +2 -2
  267. package/lib-esm/redoc-lib/src/components/SearchBox/SearchBox.d.ts +3 -3
  268. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.d.ts +1 -1
  269. package/lib-esm/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.d.ts +2 -2
  270. package/lib-esm/redoc-lib/src/components/SideMenu/MenuItem.d.ts +3 -3
  271. package/lib-esm/redoc-lib/src/components/SideMenu/MenuItem.js +1 -1
  272. package/lib-esm/redoc-lib/src/components/SideMenu/SideMenu.d.ts +3 -3
  273. package/lib-esm/redoc-lib/src/components/SourceCode/SourceCode.d.ts +2 -2
  274. package/lib-esm/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.d.ts +3 -2
  275. package/lib-esm/redoc-lib/src/components/StoreBuilder.d.ts +1 -1
  276. package/lib-esm/redoc-lib/src/components/helper.d.ts +1 -1
  277. package/lib-esm/redoc-lib/src/services/MarkdownRenderer.d.ts +3 -3
  278. package/lib-esm/redoc-lib/src/services/MenuBuilder.d.ts +3 -3
  279. package/lib-esm/redoc-lib/src/services/OpenAPIParser.d.ts +1 -1
  280. package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.d.ts +7 -5
  281. package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.js +1 -1
  282. package/lib-esm/redoc-lib/src/services/ScrollService.d.ts +1 -1
  283. package/lib-esm/redoc-lib/src/services/SpecStore.d.ts +3 -3
  284. package/lib-esm/redoc-lib/src/services/models/ApiInfo.d.ts +2 -2
  285. package/lib-esm/redoc-lib/src/services/models/Callback.d.ts +3 -3
  286. package/lib-esm/redoc-lib/src/services/models/Example.d.ts +2 -2
  287. package/lib-esm/redoc-lib/src/services/models/Field.d.ts +5 -4
  288. package/lib-esm/redoc-lib/src/services/models/Group.model.d.ts +4 -4
  289. package/lib-esm/redoc-lib/src/services/models/MediaContent.d.ts +5 -5
  290. package/lib-esm/redoc-lib/src/services/models/MediaType.d.ts +5 -5
  291. package/lib-esm/redoc-lib/src/services/models/Operation.d.ts +8 -8
  292. package/lib-esm/redoc-lib/src/services/models/RequestBody.d.ts +4 -4
  293. package/lib-esm/redoc-lib/src/services/models/Response.d.ts +4 -4
  294. package/lib-esm/redoc-lib/src/services/models/Schema.d.ts +5 -5
  295. package/lib-esm/redoc-lib/src/services/models/SecurityRequirement.d.ts +2 -2
  296. package/lib-esm/redoc-lib/src/services/models/SecuritySchemes.d.ts +2 -2
  297. package/lib-esm/redoc-lib/src/services/models/Webhook.d.ts +3 -3
  298. package/lib-esm/redoc-lib/src/styled-components.d.ts +2 -2
  299. package/lib-esm/redoc-lib/src/types/open-api.d.ts +2 -2
  300. package/lib-esm/redoc-lib/src/utils/helpers.d.ts +3 -1
  301. package/lib-esm/redoc-lib/src/utils/helpers.js +1 -1
  302. package/lib-esm/redoc-lib/src/utils/loadAndBundleSpec.d.ts +1 -1
  303. package/lib-esm/redoc-lib/src/utils/media-css.d.ts +1 -1
  304. package/lib-esm/redoc-lib/src/utils/openapi.d.ts +3 -3
  305. package/lib-esm/services/ProMenu.d.ts +2 -2
  306. package/lib-esm/services/ProStore.d.ts +13 -26
  307. package/lib-esm/services/ProStore.js +1 -1
  308. package/lib-esm/services/SearchStore.d.ts +3 -2
  309. package/lib-esm/services/VersionedSpecStore.d.ts +3 -2
  310. package/lib-esm/services/code-samples/generator.d.ts +3 -3
  311. package/lib-esm/services/code-samples/generator.js +1 -1
  312. package/lib-esm/services/code-samples/httpsnippet/helpers/code-helpers.d.ts +2 -2
  313. package/lib-esm/services/code-samples/httpsnippet/index.d.ts +2 -2
  314. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.d.ts +2 -2
  315. package/lib-esm/services/code-samples/httpsnippet/targets/go/native.d.ts +2 -2
  316. package/lib-esm/services/code-samples/httpsnippet/targets/java/httpclient.d.ts +2 -2
  317. package/lib-esm/services/code-samples/httpsnippet/targets/java8/apachehttp.d.ts +2 -2
  318. package/lib-esm/services/code-samples/httpsnippet/targets/javascript/fetch.d.ts +2 -2
  319. package/lib-esm/services/code-samples/httpsnippet/targets/node/fetch.d.ts +2 -2
  320. package/lib-esm/services/code-samples/httpsnippet/targets/php/curl.d.ts +2 -2
  321. package/lib-esm/services/code-samples/httpsnippet/targets/php/utils.d.ts +1 -1
  322. package/lib-esm/services/code-samples/httpsnippet/targets/python/requests.d.ts +2 -2
  323. package/lib-esm/services/code-samples/httpsnippet/targets/ruby/native.d.ts +2 -2
  324. package/lib-esm/services/code-samples/httpsnippet/targets/shell/curl.d.ts +2 -2
  325. package/lib-esm/services/extendTheme.d.ts +2 -2
  326. package/lib-esm/services/history/FakeHistoryService.d.ts +2 -2
  327. package/lib-esm/services/history/ProHashHistoryService.d.ts +2 -2
  328. package/lib-esm/services/history/PushStateHistoryService.d.ts +3 -2
  329. package/lib-esm/services/history/helpers.d.ts +1 -1
  330. package/lib-esm/services/index.d.ts +1 -0
  331. package/lib-esm/services/index.js +1 -1
  332. package/lib-esm/services/types.d.ts +24 -0
  333. package/lib-esm/services/types.js +2 -0
  334. package/lib-esm/services/utils.d.ts +1 -1
  335. package/lib-esm/services/utils.js +1 -1
  336. package/lib-esm/standalone.d.ts +3 -3
  337. package/lib-esm/utils.js +1 -1
  338. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { OpenAPIEncoding } from '../../redoc-lib';
3
- import { ProStore } from '../../services/ProStore';
2
+ import type { OpenAPIEncoding } from '../../redoc-lib';
3
+ import type { ProStore } from '../../services/ProStore';
4
4
  interface RedocExampleProps {
5
5
  store: ProStore;
6
6
  pointer: string;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { ProStore } from '../../services';
2
+ import type { ProStore } from '../../services';
3
3
  interface RedocRequestBodyProps {
4
4
  store: ProStore;
5
5
  pointer: string;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { ProStore } from '../../services/ProStore';
2
+ import type { ProStore } from '../../services/ProStore';
3
3
  export interface RedocResponseProps {
4
4
  store: ProStore;
5
5
  pointer: string;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { OpenAPISchema } from '../../redoc-lib';
3
- import { ProStore } from '../../services';
2
+ import type { OpenAPISchema } from '../../redoc-lib';
3
+ import type { ProStore } from '../../services';
4
4
  interface RedocSchemaProps {
5
5
  store: ProStore;
6
6
  pointer?: string;
@@ -1,4 +1,4 @@
1
- import { ProTheme } from '../../services/extendTheme';
1
+ import type { ProTheme } from '../../services/extendTheme';
2
2
  export declare const SamplesWrap: import("styled-components").StyledComponent<"div", ProTheme, {}, never>;
3
3
  export declare const ExamplesWrap: import("styled-components").StyledComponent<"div", ProTheme, {}, never>;
4
4
  export declare const FullWidthPanel: import("styled-components").StyledComponent<"div", ProTheme, {
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { ProTheme } from '../services/extendTheme';
3
- import { ProStore, LayoutVariant } from '../services';
2
+ import type { ProTheme } from '../services/extendTheme';
3
+ import type { ProStore } from '../services';
4
+ import { LayoutVariant } from '../services';
4
5
  export declare const StyledToggleRightPanelButton: import("styled-components").StyledComponent<"a", ProTheme, {}, never>;
5
6
  export declare const ToggleRightPanelButton: ({ store, isVisible, }: {
6
7
  store: ProStore;
@@ -1,4 +1,4 @@
1
- import { Events, CodeSamplesConfig } from '../services';
1
+ import type { Events, CodeSamplesConfig } from '../services';
2
2
  export interface CodeSampleOptions {
3
3
  payloadSampleIdx: number;
4
4
  hideRequestPayloadSample: boolean;
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from 'react';
2
- import { FieldModel } from '../services';
1
+ import type { PropsWithChildren } from 'react';
2
+ import type { FieldModel } from '../services';
3
3
  interface LinkToFieldProps {
4
4
  field: FieldModel;
5
5
  className?: string;
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from 'react';
1
+ import type { PropsWithChildren } from 'react';
2
2
  export interface TooltipProps {
3
3
  tip: string;
4
4
  open?: boolean;
@@ -1,5 +1,6 @@
1
- import React, { PropsWithChildren } from 'react';
2
- import { FlattenSimpleInterpolation } from 'styled-components';
1
+ import type { PropsWithChildren } from 'react';
2
+ import React from 'react';
3
+ import type { FlattenSimpleInterpolation } from 'styled-components';
3
4
  export declare function userIsForcingNavigation(event: React.MouseEvent): boolean;
4
5
  export declare const linkifyMixin: (className: string, size: string) => FlattenSimpleInterpolation;
5
6
  export declare function Link(props: PropsWithChildren<{
@@ -1,5 +1,6 @@
1
- import React, { PropsWithChildren } from 'react';
2
- import PerfectScrollbarType from 'perfect-scrollbar';
1
+ import type { PropsWithChildren } from 'react';
2
+ import React from 'react';
3
+ import type PerfectScrollbarType from 'perfect-scrollbar';
3
4
  export interface PerfectScrollbarProps {
4
5
  options?: PerfectScrollbarType.Options;
5
6
  className?: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ProStore } from '../../../../services';
2
+ import type { ProStore } from '../../../../services';
3
3
  export interface ApiInfoProps {
4
4
  store: ProStore;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { OpenAPIInfo } from '../../types';
2
+ import type { OpenAPIInfo } from '../../types';
3
3
  export declare class ApiLogo extends React.Component<{
4
4
  info: OpenAPIInfo;
5
5
  }> {
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { PropsWithChildren } from 'react';
2
+ import type { PropsWithChildren } from 'react';
3
3
  export declare const LogoImgEl: import("styled-components").StyledComponent<"img", import("../../../../services/extendTheme").ProTheme, {}, never>;
4
4
  export declare const LogoWrap: import("styled-components").StyledComponent<"div", import("../../../../services/extendTheme").ProTheme, {}, never>;
5
5
  export declare const LinkWrap: ({ url, children }: React.PropsWithChildren<{
@@ -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,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,2 +1,2 @@
1
- import*as React from"react";import merge from"deepmerge";import{observer}from"mobx-react";import{NoSampleLabel}from"../../../../components/shared";import{ExampleSwitch,useExampleKey}from"../../../../components/Samples";import{arrayMerge}from"../../../../services/utils";import{Markdown}from"../Markdown/Markdown";import{Example}from"./Example";import{ExampleWrapper}from"./styled.elements";export var MediaTypeSamples=observer((function(e){var a=e.mediaType,r=e.onlyDefaultSample,t=e.properties,m=a.examples||{},l=a.name,p=Object.keys(m);if(!p.length)return React.createElement(NoSampleLabel,null,"No sample");if(1===p.length){var n=Object.values(m)[0];return t&&(n.value=merge(n.value,t,{arrayMerge:arrayMerge})),React.createElement(React.Fragment,null,n.description&&React.createElement(Markdown,{source:n.description}),React.createElement(Example,{example:n,mimeType:l}))}var o=useExampleKey(a.operation,m),c=o.exampleKey,i=o.defaultExampleName,s=m[c],u=s.description;if(t&&(s.value=merge(s.value,t,{arrayMerge:arrayMerge})),i&&r)return React.createElement(React.Fragment,null,s.description&&React.createElement(Markdown,{source:s.description}),React.createElement(Example,{example:s,mimeType:l}));return React.createElement(React.Fragment,null,React.createElement(ExampleSwitch,{examples:m,exampleKey:c,onChange:function(e){var r;return null===(r=a.operation)||void 0===r?void 0:r.activateExampleName(e)}}),React.createElement(ExampleWrapper,null,u&&React.createElement(Markdown,{source:u}),React.createElement(Example,{example:s,mimeType:l})))}));
1
+ import{__assign}from"tslib";import*as React from"react";import merge from"deepmerge";import{observer}from"mobx-react";import{NoSampleLabel}from"../../../../components/shared";import{ExampleSwitch,useExampleKey}from"../../../../components/Samples";import{arrayMergeStrategy}from"../../../../services/utils";import{Markdown}from"../Markdown/Markdown";import{Example}from"./Example";import{ExampleWrapper}from"./styled.elements";export var MediaTypeSamples=observer((function(e){var a=e.mediaType,r=e.onlyDefaultSample,t=e.properties,m=a.examples||{},l=a.name,p=Object.keys(m),o=useExampleKey(a.operation,m),n=o.exampleKey,c=o.defaultExampleName,i=1===p.length?Object.values(m)[0]:m[n];if(!p.length)return React.createElement(NoSampleLabel,null,"No sample");var s=t?__assign(__assign({},i),{value:merge(i.value,t,{arrayMerge:arrayMergeStrategy})}):i,u=s.description;if(c&&r)return React.createElement(React.Fragment,null,s.description&&React.createElement(Markdown,{source:s.description}),React.createElement(Example,{example:s,mimeType:l}));return React.createElement(React.Fragment,null,React.createElement(ExampleSwitch,{examples:m,exampleKey:n,onChange:function(e){var r;return null===(r=a.operation)||void 0===r?void 0:r.activateExampleName(e)}}),React.createElement(ExampleWrapper,null,u&&React.createElement(Markdown,{source:u}),React.createElement(Example,{example:s,mimeType:l})))}));
2
2
  //# sourceMappingURL=MediaTypeSamples.js.map
@@ -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'];