@redocly/reference-docs 2.12.5 → 2.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli/commands/redocly-docs-cli.min.js +94 -89
- package/bin/cli/commands/redocly-docs-cli.min.js.LICENSE.txt +1 -1
- package/dist/console.redocly-reference-docs.min.js +122 -113
- package/dist/oauth2-redirect.js +1 -1
- package/dist/redocly-reference-docs.min.js +834 -833
- package/lib/components/Endpoint/Endpoint.d.ts +2 -2
- package/lib/components/Endpoint/ServerList.d.ts +2 -2
- package/lib/components/Endpoint/Summary.d.ts +3 -3
- package/lib/components/NextSectionButton.d.ts +2 -2
- package/lib/components/Overlay.d.ts +1 -1
- package/lib/components/Panel/PanelComponent.d.ts +2 -1
- package/lib/components/ProProviders.d.ts +2 -2
- package/lib/components/RedoclyReferenceDocs.d.ts +3 -3
- package/lib/components/Samples/ExampleSwitch.d.ts +1 -1
- package/lib/components/Samples/ExampleSwitch.js +1 -1
- package/lib/components/Samples/SamplesTabs.d.ts +1 -1
- package/lib/components/Samples/SamplesTabs.js +1 -1
- package/lib/components/Samples/use-example-key.d.ts +1 -1
- package/lib/components/Search/MenuItemProSearch.d.ts +2 -2
- package/lib/components/Search/MenuItemProSearch.js +1 -1
- package/lib/components/Search/ProSearchBox.d.ts +5 -5
- package/lib/components/Search/SearchField.d.ts +1 -1
- package/lib/components/StoreProvider.d.ts +3 -2
- package/lib/components/Tabs/CollapsingTabs/CollapsingTabs.d.ts +1 -1
- package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +2 -2
- package/lib/components/VersionSwitcher.d.ts +2 -2
- package/lib/components/common/Checkbox.d.ts +3 -1
- package/lib/components/common/Checkbox.js +1 -1
- package/lib/components/common/CheckboxList.d.ts +3 -2
- package/lib/components/common/CheckboxList.js +1 -1
- package/lib/components/common/Dropdown/Dropdown.d.ts +1 -1
- package/lib/components/common/Dropdown/types.d.ts +1 -1
- package/lib/components/common/FileUpload/helper.d.ts +1 -1
- package/lib/components/common/TextField.d.ts +1 -1
- package/lib/components/console/ActionPanel.d.ts +2 -2
- package/lib/components/console/AuthPanel.d.ts +4 -4
- package/lib/components/console/CodemirrorInput.d.ts +1 -1
- package/lib/components/console/Console.d.ts +6 -6
- package/lib/components/console/OAuth2Flow.d.ts +8 -5
- package/lib/components/console/OAuth2Flow.js +1 -1
- package/lib/components/console/OAuth2TokenInput.d.ts +1 -1
- package/lib/components/console/OpenIDConnect.d.ts +3 -3
- package/lib/components/console/OperationParameters.d.ts +1 -1
- package/lib/components/console/RequestBody.d.ts +2 -2
- package/lib/components/console/RequestBody.js +1 -1
- package/lib/components/console/RequestBodyForm.d.ts +5 -2
- package/lib/components/console/RequestBodyForm.js +1 -1
- package/lib/components/console/ResponseBody.d.ts +1 -1
- package/lib/components/console/ResponsePanel.d.ts +1 -1
- package/lib/components/console/ServerDropdown.d.ts +1 -1
- package/lib/components/console/utils.d.ts +1 -1
- package/lib/components/pluggable/RedocExample.d.ts +2 -2
- package/lib/components/pluggable/RedocRequestBody.d.ts +1 -1
- package/lib/components/pluggable/RedocResponse.d.ts +1 -1
- package/lib/components/pluggable/RedocSchema.d.ts +2 -2
- package/lib/components/pluggable/styled.components.d.ts +1 -1
- package/lib/components/styled.elements.d.ts +3 -2
- package/lib/models/code-sample-options.d.ts +1 -1
- package/lib/redoc-lib/src/common-elements/LinkToField.d.ts +2 -2
- package/lib/redoc-lib/src/common-elements/Tooltip.d.ts +1 -1
- package/lib/redoc-lib/src/common-elements/linkify.d.ts +3 -2
- package/lib/redoc-lib/src/common-elements/perfect-scrollbar.d.ts +3 -2
- package/lib/redoc-lib/src/components/ApiInfo/ApiInfo.d.ts +1 -1
- package/lib/redoc-lib/src/components/ApiLogo/ApiLogo.d.ts +1 -1
- package/lib/redoc-lib/src/components/ApiLogo/styled.elements.d.ts +1 -1
- package/lib/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.d.ts +1 -1
- package/lib/redoc-lib/src/components/CallbackSamples/CallbackSamples.d.ts +2 -2
- package/lib/redoc-lib/src/components/Callbacks/CallbackDetails.d.ts +1 -1
- package/lib/redoc-lib/src/components/Callbacks/CallbackOperation.d.ts +1 -1
- package/lib/redoc-lib/src/components/Callbacks/CallbackSummary.d.ts +2 -2
- package/lib/redoc-lib/src/components/Callbacks/CallbacksList.d.ts +1 -1
- package/lib/redoc-lib/src/components/ContentItems/ContentItems.d.ts +3 -3
- package/lib/redoc-lib/src/components/DownloadButton/DownloadButton.d.ts +1 -1
- package/lib/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.d.ts +1 -1
- package/lib/redoc-lib/src/components/ErrorBoundary.d.ts +2 -1
- package/lib/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.d.ts +1 -1
- package/lib/redoc-lib/src/components/Fields/Field.d.ts +3 -3
- package/lib/redoc-lib/src/components/Fields/FieldDetails.d.ts +1 -1
- package/lib/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +1 -1
- package/lib/redoc-lib/src/components/Markdown/AdvancedMarkdown.d.ts +3 -3
- package/lib/redoc-lib/src/components/Markdown/SanitizedMdBlock.d.ts +1 -1
- package/lib/redoc-lib/src/components/Markdown/styled.elements.d.ts +1 -1
- package/lib/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +2 -2
- package/lib/redoc-lib/src/components/Operation/Operation.d.ts +1 -1
- package/lib/redoc-lib/src/components/OptionsProvider.d.ts +1 -1
- package/lib/redoc-lib/src/components/Parameters/ParametersGroup.d.ts +1 -1
- package/lib/redoc-lib/src/components/PayloadSamples/Example.d.ts +1 -1
- package/lib/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.d.ts +1 -1
- package/lib/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.js +1 -1
- package/lib/redoc-lib/src/components/PayloadSamples/PayloadSamples.d.ts +1 -1
- package/lib/redoc-lib/src/components/PayloadSamples/exernalExampleHook.d.ts +1 -1
- package/lib/redoc-lib/src/components/RequestSamples/CodeSample.d.ts +2 -2
- package/lib/redoc-lib/src/components/RequestSamples/RequestSamples.d.ts +1 -1
- package/lib/redoc-lib/src/components/RequestSamples/languageSwitchEvent.d.ts +3 -2
- package/lib/redoc-lib/src/components/RequestSamples/useCodeSamples.d.ts +1 -1
- package/lib/redoc-lib/src/components/Responses/Response.d.ts +1 -1
- package/lib/redoc-lib/src/components/Responses/ResponseDetails.d.ts +1 -1
- package/lib/redoc-lib/src/components/Responses/ResponseHeaders.d.ts +1 -1
- package/lib/redoc-lib/src/components/Responses/ResponseSummary.d.ts +2 -2
- package/lib/redoc-lib/src/components/Responses/ResponsesList.d.ts +1 -1
- package/lib/redoc-lib/src/components/Schema/ArraySchema.d.ts +1 -1
- package/lib/redoc-lib/src/components/Schema/DiscriminatorDropdown.d.ts +2 -2
- package/lib/redoc-lib/src/components/Schema/ObjectSchema.d.ts +1 -1
- package/lib/redoc-lib/src/components/Schema/OneOfSchema.d.ts +1 -1
- package/lib/redoc-lib/src/components/Schema/Schema.d.ts +1 -1
- package/lib/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.d.ts +2 -2
- package/lib/redoc-lib/src/components/SearchBox/SearchBox.d.ts +3 -3
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.d.ts +1 -1
- package/lib/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.d.ts +2 -2
- package/lib/redoc-lib/src/components/SideMenu/MenuItem.d.ts +3 -3
- package/lib/redoc-lib/src/components/SideMenu/MenuItem.js +1 -1
- package/lib/redoc-lib/src/components/SideMenu/SideMenu.d.ts +3 -3
- package/lib/redoc-lib/src/components/SourceCode/SourceCode.d.ts +2 -2
- package/lib/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.d.ts +3 -2
- package/lib/redoc-lib/src/components/StoreBuilder.d.ts +1 -1
- package/lib/redoc-lib/src/components/helper.d.ts +1 -1
- package/lib/redoc-lib/src/services/MarkdownRenderer.d.ts +3 -3
- package/lib/redoc-lib/src/services/MenuBuilder.d.ts +3 -3
- package/lib/redoc-lib/src/services/MenuBuilder.js +1 -1
- package/lib/redoc-lib/src/services/OpenAPIParser.d.ts +1 -1
- package/lib/redoc-lib/src/services/RedocNormalizedOptions.d.ts +5 -5
- package/lib/redoc-lib/src/services/ScrollService.d.ts +1 -1
- package/lib/redoc-lib/src/services/SpecStore.d.ts +3 -3
- package/lib/redoc-lib/src/services/models/ApiInfo.d.ts +2 -2
- package/lib/redoc-lib/src/services/models/Callback.d.ts +3 -3
- package/lib/redoc-lib/src/services/models/Example.d.ts +3 -2
- package/lib/redoc-lib/src/services/models/Example.js +1 -1
- package/lib/redoc-lib/src/services/models/Field.d.ts +5 -4
- package/lib/redoc-lib/src/services/models/Group.model.d.ts +4 -4
- package/lib/redoc-lib/src/services/models/MediaContent.d.ts +5 -5
- package/lib/redoc-lib/src/services/models/MediaType.d.ts +5 -5
- package/lib/redoc-lib/src/services/models/Operation.d.ts +8 -8
- package/lib/redoc-lib/src/services/models/RequestBody.d.ts +4 -4
- package/lib/redoc-lib/src/services/models/Response.d.ts +4 -4
- package/lib/redoc-lib/src/services/models/Schema.d.ts +5 -5
- package/lib/redoc-lib/src/services/models/SecurityRequirement.d.ts +2 -2
- package/lib/redoc-lib/src/services/models/SecuritySchemes.d.ts +2 -2
- package/lib/redoc-lib/src/services/models/Webhook.d.ts +3 -3
- package/lib/redoc-lib/src/styled-components.d.ts +2 -2
- package/lib/redoc-lib/src/types/open-api.d.ts +2 -2
- package/lib/redoc-lib/src/utils/helpers.d.ts +3 -1
- package/lib/redoc-lib/src/utils/helpers.js +1 -1
- package/lib/redoc-lib/src/utils/loadAndBundleSpec.d.ts +1 -1
- package/lib/redoc-lib/src/utils/media-css.d.ts +1 -1
- package/lib/redoc-lib/src/utils/openapi.d.ts +3 -3
- package/lib/services/OAuth2.d.ts +0 -7
- package/lib/services/OAuth2.js +1 -1
- package/lib/services/ProMenu.d.ts +2 -2
- package/lib/services/ProStore.d.ts +13 -26
- package/lib/services/ProStore.js +1 -1
- package/lib/services/SearchStore.d.ts +3 -2
- package/lib/services/VersionedSpecStore.d.ts +3 -2
- package/lib/services/code-samples/generator.d.ts +3 -3
- package/lib/services/code-samples/generator.js +1 -1
- package/lib/services/code-samples/httpsnippet/helpers/code-helpers.d.ts +2 -2
- package/lib/services/code-samples/httpsnippet/index.d.ts +2 -2
- package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.d.ts +2 -2
- package/lib/services/code-samples/httpsnippet/targets/go/native.d.ts +2 -2
- package/lib/services/code-samples/httpsnippet/targets/java/httpclient.d.ts +2 -2
- package/lib/services/code-samples/httpsnippet/targets/java8/apachehttp.d.ts +2 -2
- package/lib/services/code-samples/httpsnippet/targets/javascript/fetch.d.ts +2 -2
- package/lib/services/code-samples/httpsnippet/targets/node/fetch.d.ts +2 -2
- package/lib/services/code-samples/httpsnippet/targets/php/curl.d.ts +2 -2
- package/lib/services/code-samples/httpsnippet/targets/php/utils.d.ts +1 -1
- package/lib/services/code-samples/httpsnippet/targets/python/requests.d.ts +2 -2
- package/lib/services/code-samples/httpsnippet/targets/ruby/native.d.ts +2 -2
- package/lib/services/code-samples/httpsnippet/targets/shell/curl.d.ts +2 -2
- package/lib/services/extendTheme.d.ts +2 -2
- package/lib/services/history/FakeHistoryService.d.ts +2 -2
- package/lib/services/history/ProHashHistoryService.d.ts +2 -2
- package/lib/services/history/PushStateHistoryService.d.ts +3 -2
- package/lib/services/history/helpers.d.ts +1 -1
- package/lib/services/index.d.ts +1 -0
- package/lib/services/index.js +1 -1
- package/lib/services/types.d.ts +24 -0
- package/lib/services/types.js +2 -0
- package/lib/services/utils.d.ts +8 -1
- package/lib/services/utils.js +1 -1
- package/lib/standalone.d.ts +3 -3
- package/lib/utils.js +1 -1
- package/lib-esm/components/Endpoint/Endpoint.d.ts +2 -2
- package/lib-esm/components/Endpoint/ServerList.d.ts +2 -2
- package/lib-esm/components/Endpoint/Summary.d.ts +3 -3
- package/lib-esm/components/NextSectionButton.d.ts +2 -2
- package/lib-esm/components/Overlay.d.ts +1 -1
- package/lib-esm/components/Panel/PanelComponent.d.ts +2 -1
- package/lib-esm/components/ProProviders.d.ts +2 -2
- package/lib-esm/components/RedoclyReferenceDocs.d.ts +3 -3
- package/lib-esm/components/Samples/ExampleSwitch.d.ts +1 -1
- package/lib-esm/components/Samples/ExampleSwitch.js +1 -1
- package/lib-esm/components/Samples/SamplesTabs.d.ts +1 -1
- package/lib-esm/components/Samples/SamplesTabs.js +1 -1
- package/lib-esm/components/Samples/use-example-key.d.ts +1 -1
- package/lib-esm/components/Search/MenuItemProSearch.d.ts +2 -2
- package/lib-esm/components/Search/MenuItemProSearch.js +1 -1
- package/lib-esm/components/Search/ProSearchBox.d.ts +5 -5
- package/lib-esm/components/Search/SearchField.d.ts +1 -1
- package/lib-esm/components/StoreProvider.d.ts +3 -2
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabs.d.ts +1 -1
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +2 -2
- package/lib-esm/components/VersionSwitcher.d.ts +2 -2
- package/lib-esm/components/common/Checkbox.d.ts +3 -1
- package/lib-esm/components/common/Checkbox.js +1 -1
- package/lib-esm/components/common/CheckboxList.d.ts +3 -2
- package/lib-esm/components/common/CheckboxList.js +1 -1
- package/lib-esm/components/common/Dropdown/Dropdown.d.ts +1 -1
- package/lib-esm/components/common/Dropdown/types.d.ts +1 -1
- package/lib-esm/components/common/FileUpload/helper.d.ts +1 -1
- package/lib-esm/components/common/TextField.d.ts +1 -1
- package/lib-esm/components/console/ActionPanel.d.ts +2 -2
- package/lib-esm/components/console/AuthPanel.d.ts +4 -4
- package/lib-esm/components/console/CodemirrorInput.d.ts +1 -1
- package/lib-esm/components/console/Console.d.ts +6 -6
- package/lib-esm/components/console/OAuth2Flow.d.ts +8 -5
- package/lib-esm/components/console/OAuth2Flow.js +1 -1
- package/lib-esm/components/console/OAuth2TokenInput.d.ts +1 -1
- package/lib-esm/components/console/OpenIDConnect.d.ts +3 -3
- package/lib-esm/components/console/OperationParameters.d.ts +1 -1
- package/lib-esm/components/console/RequestBody.d.ts +2 -2
- package/lib-esm/components/console/RequestBody.js +1 -1
- package/lib-esm/components/console/RequestBodyForm.d.ts +5 -2
- package/lib-esm/components/console/RequestBodyForm.js +1 -1
- package/lib-esm/components/console/ResponseBody.d.ts +1 -1
- package/lib-esm/components/console/ResponsePanel.d.ts +1 -1
- package/lib-esm/components/console/ServerDropdown.d.ts +1 -1
- package/lib-esm/components/console/utils.d.ts +1 -1
- package/lib-esm/components/pluggable/RedocExample.d.ts +2 -2
- package/lib-esm/components/pluggable/RedocRequestBody.d.ts +1 -1
- package/lib-esm/components/pluggable/RedocResponse.d.ts +1 -1
- package/lib-esm/components/pluggable/RedocSchema.d.ts +2 -2
- package/lib-esm/components/pluggable/styled.components.d.ts +1 -1
- package/lib-esm/components/styled.elements.d.ts +3 -2
- package/lib-esm/models/code-sample-options.d.ts +1 -1
- package/lib-esm/redoc-lib/src/common-elements/LinkToField.d.ts +2 -2
- package/lib-esm/redoc-lib/src/common-elements/Tooltip.d.ts +1 -1
- package/lib-esm/redoc-lib/src/common-elements/linkify.d.ts +3 -2
- package/lib-esm/redoc-lib/src/common-elements/perfect-scrollbar.d.ts +3 -2
- package/lib-esm/redoc-lib/src/components/ApiInfo/ApiInfo.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/ApiLogo/ApiLogo.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/ApiLogo/styled.elements.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackSamples.d.ts +2 -2
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackDetails.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackOperation.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackSummary.d.ts +2 -2
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbacksList.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/ContentItems/ContentItems.d.ts +3 -3
- package/lib-esm/redoc-lib/src/components/DownloadButton/DownloadButton.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/ErrorBoundary.d.ts +2 -1
- package/lib-esm/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/Fields/Field.d.ts +3 -3
- package/lib-esm/redoc-lib/src/components/Fields/FieldDetails.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/Markdown/AdvancedMarkdown.d.ts +3 -3
- package/lib-esm/redoc-lib/src/components/Markdown/SanitizedMdBlock.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/Markdown/styled.elements.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +2 -2
- package/lib-esm/redoc-lib/src/components/Operation/Operation.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/OptionsProvider.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/Parameters/ParametersGroup.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/PayloadSamples/Example.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.js +1 -1
- package/lib-esm/redoc-lib/src/components/PayloadSamples/PayloadSamples.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/PayloadSamples/exernalExampleHook.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/RequestSamples/CodeSample.d.ts +2 -2
- package/lib-esm/redoc-lib/src/components/RequestSamples/RequestSamples.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/RequestSamples/languageSwitchEvent.d.ts +3 -2
- package/lib-esm/redoc-lib/src/components/RequestSamples/useCodeSamples.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/Responses/Response.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/Responses/ResponseDetails.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/Responses/ResponseHeaders.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/Responses/ResponseSummary.d.ts +2 -2
- package/lib-esm/redoc-lib/src/components/Responses/ResponsesList.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/Schema/ArraySchema.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/Schema/DiscriminatorDropdown.d.ts +2 -2
- package/lib-esm/redoc-lib/src/components/Schema/ObjectSchema.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/Schema/OneOfSchema.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/Schema/Schema.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.d.ts +2 -2
- package/lib-esm/redoc-lib/src/components/SearchBox/SearchBox.d.ts +3 -3
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.d.ts +2 -2
- package/lib-esm/redoc-lib/src/components/SideMenu/MenuItem.d.ts +3 -3
- package/lib-esm/redoc-lib/src/components/SideMenu/MenuItem.js +1 -1
- package/lib-esm/redoc-lib/src/components/SideMenu/SideMenu.d.ts +3 -3
- package/lib-esm/redoc-lib/src/components/SourceCode/SourceCode.d.ts +2 -2
- package/lib-esm/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.d.ts +3 -2
- package/lib-esm/redoc-lib/src/components/StoreBuilder.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/helper.d.ts +1 -1
- package/lib-esm/redoc-lib/src/services/MarkdownRenderer.d.ts +3 -3
- package/lib-esm/redoc-lib/src/services/MenuBuilder.d.ts +3 -3
- package/lib-esm/redoc-lib/src/services/MenuBuilder.js +1 -1
- package/lib-esm/redoc-lib/src/services/OpenAPIParser.d.ts +1 -1
- package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.d.ts +5 -5
- package/lib-esm/redoc-lib/src/services/ScrollService.d.ts +1 -1
- package/lib-esm/redoc-lib/src/services/SpecStore.d.ts +3 -3
- package/lib-esm/redoc-lib/src/services/models/ApiInfo.d.ts +2 -2
- package/lib-esm/redoc-lib/src/services/models/Callback.d.ts +3 -3
- package/lib-esm/redoc-lib/src/services/models/Example.d.ts +3 -2
- package/lib-esm/redoc-lib/src/services/models/Example.js +1 -1
- package/lib-esm/redoc-lib/src/services/models/Field.d.ts +5 -4
- package/lib-esm/redoc-lib/src/services/models/Group.model.d.ts +4 -4
- package/lib-esm/redoc-lib/src/services/models/MediaContent.d.ts +5 -5
- package/lib-esm/redoc-lib/src/services/models/MediaType.d.ts +5 -5
- package/lib-esm/redoc-lib/src/services/models/Operation.d.ts +8 -8
- package/lib-esm/redoc-lib/src/services/models/RequestBody.d.ts +4 -4
- package/lib-esm/redoc-lib/src/services/models/Response.d.ts +4 -4
- package/lib-esm/redoc-lib/src/services/models/Schema.d.ts +5 -5
- package/lib-esm/redoc-lib/src/services/models/SecurityRequirement.d.ts +2 -2
- package/lib-esm/redoc-lib/src/services/models/SecuritySchemes.d.ts +2 -2
- package/lib-esm/redoc-lib/src/services/models/Webhook.d.ts +3 -3
- package/lib-esm/redoc-lib/src/styled-components.d.ts +2 -2
- package/lib-esm/redoc-lib/src/types/open-api.d.ts +2 -2
- package/lib-esm/redoc-lib/src/utils/helpers.d.ts +3 -1
- package/lib-esm/redoc-lib/src/utils/helpers.js +1 -1
- package/lib-esm/redoc-lib/src/utils/loadAndBundleSpec.d.ts +1 -1
- package/lib-esm/redoc-lib/src/utils/media-css.d.ts +1 -1
- package/lib-esm/redoc-lib/src/utils/openapi.d.ts +3 -3
- package/lib-esm/services/OAuth2.d.ts +0 -7
- package/lib-esm/services/OAuth2.js +1 -1
- package/lib-esm/services/ProMenu.d.ts +2 -2
- package/lib-esm/services/ProStore.d.ts +13 -26
- package/lib-esm/services/ProStore.js +1 -1
- package/lib-esm/services/SearchStore.d.ts +3 -2
- package/lib-esm/services/VersionedSpecStore.d.ts +3 -2
- package/lib-esm/services/code-samples/generator.d.ts +3 -3
- package/lib-esm/services/code-samples/generator.js +1 -1
- package/lib-esm/services/code-samples/httpsnippet/helpers/code-helpers.d.ts +2 -2
- package/lib-esm/services/code-samples/httpsnippet/index.d.ts +2 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.d.ts +2 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/go/native.d.ts +2 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/java/httpclient.d.ts +2 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/java8/apachehttp.d.ts +2 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/javascript/fetch.d.ts +2 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/node/fetch.d.ts +2 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/php/curl.d.ts +2 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/php/utils.d.ts +1 -1
- package/lib-esm/services/code-samples/httpsnippet/targets/python/requests.d.ts +2 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/ruby/native.d.ts +2 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/shell/curl.d.ts +2 -2
- package/lib-esm/services/extendTheme.d.ts +2 -2
- package/lib-esm/services/history/FakeHistoryService.d.ts +2 -2
- package/lib-esm/services/history/ProHashHistoryService.d.ts +2 -2
- package/lib-esm/services/history/PushStateHistoryService.d.ts +3 -2
- package/lib-esm/services/history/helpers.d.ts +1 -1
- package/lib-esm/services/index.d.ts +1 -0
- package/lib-esm/services/index.js +1 -1
- package/lib-esm/services/types.d.ts +24 -0
- package/lib-esm/services/types.js +2 -0
- package/lib-esm/services/utils.d.ts +8 -1
- package/lib-esm/services/utils.js +1 -1
- package/lib-esm/standalone.d.ts +3 -3
- package/lib-esm/utils.js +1 -1
- package/package.json +1 -1
|
@@ -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,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;
|
package/lib-esm/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts
CHANGED
|
@@ -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,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,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{
|
|
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,
|
|
2
|
-
import {
|
|
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,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,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,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/
|
|
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: (
|
|
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,
|
|
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 {
|
|
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,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,2 +1,2 @@
|
|
|
1
|
-
import{__assign,__spreadArray}from"tslib";import{isOperationName,SECURITY_DEFINITIONS_COMPONENT_NAME,setSecuritySchemePrefix,JsonPointer,alphabeticallyByProp}from"../utils";import{MarkdownRenderer}from"./MarkdownRenderer";import{GroupModel,OperationModel}from"./models";export var GROUP_DEPTH=0;var MenuBuilder=function(){function e(){}return Object.defineProperty(e,"buildStructure",{enumerable:!1,configurable:!0,writable:!0,value:function(r,t){var a=r.definition,n=[],o=e.getTagsWithOperations(r);return n.push.apply(n,e.addMarkdownItems(a.info.description||"",void 0,1,t)),a["x-tagGroups"]&&a["x-tagGroups"].length>0?n.push.apply(n,e.getTagGroupsItems(r,void 0,a["x-tagGroups"],o,t)):n.push.apply(n,e.getTagsItems(r,o,void 0,void 0,t)),n}}),Object.defineProperty(e,"addMarkdownItems",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r,t,a){var n=new MarkdownRenderer(a).extractHeadings(e||"");n.length&&r&&r.description&&(r.description=MarkdownRenderer.getTextBeforeHading(r.description,n[0].name));var o=function(e,r,t){return void 0===t&&(t=1),r.map((function(r){var a=new GroupModel("section",r,e);return a.depth=t,r.items&&(a.items=o(a,r.items,t+1)),MarkdownRenderer.containsComponent(a.description||"",SECURITY_DEFINITIONS_COMPONENT_NAME)&&setSecuritySchemePrefix(a.id+"/"),a}))};return o(r,n,t)}}),Object.defineProperty(e,"getTagGroupsItems",{enumerable:!1,configurable:!0,writable:!0,value:function(r,t,a,n,o){for(var i=[],s=0,p=a;s<p.length;s++){var d=p[s],l=new GroupModel("group",d,t);l.depth=GROUP_DEPTH,l.items=e.getTagsItems(r,n,l,d,o),i.push(l)}return i}}),Object.defineProperty(e,"getTagsItems",{enumerable:!1,configurable:!0,writable:!0,value:function(r,t,a,n,o){
|
|
1
|
+
import{__assign,__spreadArray}from"tslib";import{isOperationName,SECURITY_DEFINITIONS_COMPONENT_NAME,setSecuritySchemePrefix,JsonPointer,alphabeticallyByProp}from"../utils";import{MarkdownRenderer}from"./MarkdownRenderer";import{GroupModel,OperationModel}from"./models";export var GROUP_DEPTH=0;var MenuBuilder=function(){function e(){}return Object.defineProperty(e,"buildStructure",{enumerable:!1,configurable:!0,writable:!0,value:function(r,t){var a=r.definition,n=[],o=e.getTagsWithOperations(r);return n.push.apply(n,e.addMarkdownItems(a.info.description||"",void 0,1,t)),a["x-tagGroups"]&&a["x-tagGroups"].length>0?n.push.apply(n,e.getTagGroupsItems(r,void 0,a["x-tagGroups"],o,t)):n.push.apply(n,e.getTagsItems(r,o,void 0,void 0,t)),n}}),Object.defineProperty(e,"addMarkdownItems",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r,t,a){var n=new MarkdownRenderer(a).extractHeadings(e||"");n.length&&r&&r.description&&(r.description=MarkdownRenderer.getTextBeforeHading(r.description,n[0].name));var o=function(e,r,t){return void 0===t&&(t=1),r.map((function(r){var a=new GroupModel("section",r,e);return a.depth=t,r.items&&(a.items=o(a,r.items,t+1)),MarkdownRenderer.containsComponent(a.description||"",SECURITY_DEFINITIONS_COMPONENT_NAME)&&setSecuritySchemePrefix(a.id+"/"),a}))};return o(r,n,t)}}),Object.defineProperty(e,"getTagGroupsItems",{enumerable:!1,configurable:!0,writable:!0,value:function(r,t,a,n,o){for(var i=[],s=0,p=a;s<p.length;s++){var d=p[s],l=new GroupModel("group",d,t);l.depth=GROUP_DEPTH,l.items=e.getTagsItems(r,n,l,d,o),i.push(l)}return i}}),Object.defineProperty(e,"getTagsItems",{enumerable:!1,configurable:!0,writable:!0,value:function(r,t,a,n,o){var i;if(i=void 0===n?Object.keys(t):n.tags,!Array.isArray(i))return console.warn("Unexpected values of tags. Check tags or x-tagGroups in your definition."),[];for(var s=[],p=0,d=i.map((function(e){return t[e]?(t[e].used=!0,t[e]):(console.warn('Non-existing tag "'+e+'" is added to the group "'+(null==n?void 0:n.name)+'"'),null)}));p<d.length;p++){var l=d[p];if(l){var u=new GroupModel("tag",l,a);if(u.depth=GROUP_DEPTH+1,""!==l.name)u.items=__spreadArray(__spreadArray([],e.addMarkdownItems(l.description||"",u,u.depth+1,o),!0),this.getOperationsItems(r,u,l,u.depth+1,o),!0),s.push(u);else{var g=__spreadArray(__spreadArray([],e.addMarkdownItems(l.description||"",u,u.depth+1,o),!0),this.getOperationsItems(r,void 0,l,u.depth+1,o),!0);s.push.apply(s,g)}}}return o.sortTagsAlphabetically&&s.sort(alphabeticallyByProp("name")),s}}),Object.defineProperty(e,"getOperationsItems",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r,t,a,n){if(0===t.operations.length)return[];for(var o=[],i=0,s=t.operations;i<s.length;i++){var p=s[i],d=new OperationModel(e,p,r,n);d.depth=a,o.push(d)}return n.sortOperationsAlphabetically&&o.sort(alphabeticallyByProp("name")),o}}),Object.defineProperty(e,"getTagsWithOperations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var r={},t=e.definition,a=t["x-webhooks"]||t.webhooks,n=0,o=t.tags||[];n<o.length;n++){var i=o[n];r[i.name]=__assign(__assign({},i),{operations:[]})}function s(e,t,a){for(var n,o=0,i=Object.keys(t||{});o<i.length;o++)for(var p=i[o],d=t[p],l=0,u=Object.keys(d).filter(isOperationName);l<u.length;l++){var g=u[l],c=d[g];if(d.$ref){var f=e.deref(d);s(e,((n={})[p]=f,n),a)}else{var h=null==c?void 0:c.tags;h&&h.length||(h=[""]);for(var m=0,v=h;m<v.length;m++){var b=v[m],y=r[b];void 0===y&&(y={name:b,operations:[]},r[b]=y),y["x-traitTag"]||y.operations.push(__assign(__assign({},c),{pathName:p,pointer:JsonPointer.compile(["paths",p,g]),httpVerb:g,pathParameters:d.parameters||[],pathServers:d.servers,isWebhook:!!a}))}}}}return t.paths&&s(e,t.paths),a&&s(e,a,!0),r}}),e}();export{MenuBuilder};
|
|
2
2
|
//# sourceMappingURL=MenuBuilder.js.map
|
|
@@ -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 & {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { OpenAPIExternalDocumentation, OpenAPIDefinition } from '../types';
|
|
2
|
-
import { ContentItemModel } from './MenuBuilder';
|
|
1
|
+
import type { OpenAPIExternalDocumentation, OpenAPIDefinition } from '../types';
|
|
2
|
+
import type { ContentItemModel } from './MenuBuilder';
|
|
3
3
|
import { ApiInfoModel, SecuritySchemesModel, WebhookModel } from './models';
|
|
4
4
|
import { OpenAPIParser } from './OpenAPIParser';
|
|
5
|
-
import { RedocProNormalizedOptions } from '../../../services';
|
|
5
|
+
import type { RedocProNormalizedOptions } from '../../../services';
|
|
6
6
|
/**
|
|
7
7
|
* Store that contains all the specification related information in the form of tree
|
|
8
8
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OpenAPIContact, OpenAPIInfo, OpenAPILicense } from '../../types';
|
|
2
|
-
import { OpenAPIParser } from '../OpenAPIParser';
|
|
1
|
+
import type { OpenAPIContact, OpenAPIInfo, OpenAPILicense } from '../../types';
|
|
2
|
+
import type { OpenAPIParser } from '../OpenAPIParser';
|
|
3
3
|
export declare class ApiInfoModel implements OpenAPIInfo {
|
|
4
4
|
private parser;
|
|
5
5
|
title: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OpenAPICallback, Referenced } from '../../types';
|
|
2
|
-
import { OpenAPIParser } from '../OpenAPIParser';
|
|
1
|
+
import type { OpenAPICallback, Referenced } from '../../types';
|
|
2
|
+
import type { OpenAPIParser } from '../OpenAPIParser';
|
|
3
3
|
import { OperationModel } from './Operation';
|
|
4
|
-
import { RedocProNormalizedOptions } from '../../../../services/ProStore';
|
|
4
|
+
import type { RedocProNormalizedOptions } from '../../../../services/ProStore';
|
|
5
5
|
export declare class CallbackModel {
|
|
6
6
|
expanded: boolean;
|
|
7
7
|
name: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { OpenAPIEncoding, OpenAPIExample, Referenced } from '../../types';
|
|
2
|
-
import { OpenAPIParser } from '../OpenAPIParser';
|
|
1
|
+
import type { OpenAPIEncoding, OpenAPIExample, Referenced } from '../../types';
|
|
2
|
+
import type { OpenAPIParser } from '../OpenAPIParser';
|
|
3
3
|
export declare class ExampleModel {
|
|
4
4
|
mime: string;
|
|
5
5
|
value: any;
|
|
6
|
+
rawValue: any;
|
|
6
7
|
summary?: string;
|
|
7
8
|
description?: string;
|
|
8
9
|
externalValueUrl?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{resolve as urlResolve}from"url";import{isFormUrlEncoded,isJsonLike,urlFormEncodePayload}from"../../utils";var externalExamplesCache={},ExampleModel=function(){function e(e,r,l,t){Object.defineProperty(this,"mime",{enumerable:!0,configurable:!0,writable:!0,value:l}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"summary",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"externalValueUrl",{enumerable:!0,configurable:!0,writable:!0,value:void 0});var a=e.deref(r);this.value=a.value,this.summary=a.summary,this.description=a.description,a.externalValue&&(this.externalValueUrl=urlResolve(e.definitionUrl||"",a.externalValue)),e.exitRef(r),isFormUrlEncoded(l)&&this.value&&"object"==typeof this.value&&(this.value=urlFormEncodePayload(this.value,t))}return Object.defineProperty(e.prototype,"getExternalValue",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.externalValueUrl?(this.externalValueUrl in externalExamplesCache||(externalExamplesCache[this.externalValueUrl]=fetch(this.externalValueUrl).then((function(r){return r.text().then((function(l){if(!r.ok)return Promise.reject(new Error(l));if(!isJsonLike(e))return l;try{return JSON.parse(l)}catch(e){return l}}))}))),externalExamplesCache[this.externalValueUrl]):Promise.resolve(void 0)}}),e}();export{ExampleModel};
|
|
1
|
+
import{resolve as urlResolve}from"url";import{isFormUrlEncoded,isJsonLike,urlFormEncodePayload}from"../../utils";var externalExamplesCache={},ExampleModel=function(){function e(e,r,l,t){Object.defineProperty(this,"mime",{enumerable:!0,configurable:!0,writable:!0,value:l}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"rawValue",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"summary",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"externalValueUrl",{enumerable:!0,configurable:!0,writable:!0,value:void 0});var a=e.deref(r);this.rawValue=a.value,this.value=a.value,this.summary=a.summary,this.description=a.description,a.externalValue&&(this.externalValueUrl=urlResolve(e.definitionUrl||"",a.externalValue)),e.exitRef(r),isFormUrlEncoded(l)&&this.value&&"object"==typeof this.value&&(this.value=urlFormEncodePayload(this.value,t))}return Object.defineProperty(e.prototype,"getExternalValue",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.externalValueUrl?(this.externalValueUrl in externalExamplesCache||(externalExamplesCache[this.externalValueUrl]=fetch(this.externalValueUrl).then((function(r){return r.text().then((function(l){if(!r.ok)return Promise.reject(new Error(l));if(!isJsonLike(e))return l;try{return JSON.parse(l)}catch(e){return l}}))}))),externalExamplesCache[this.externalValueUrl]):Promise.resolve(void 0)}}),e}();export{ExampleModel};
|
|
2
2
|
//# sourceMappingURL=Example.js.map
|