@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.
- package/bin/cli/commands/redocly-docs-cli.min.js +66 -66
- package/bin/cli/commands/redocly-docs-cli.min.js.LICENSE.txt +1 -1
- package/dist/console.redocly-reference-docs.min.js +2 -2
- package/dist/oauth2-redirect.js +1 -1
- package/dist/redocly-reference-docs.min.js +822 -822
- 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/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/CheckboxList.d.ts +3 -2
- 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 +4 -4
- 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 +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/OpenAPIParser.d.ts +1 -1
- package/lib/redoc-lib/src/services/RedocNormalizedOptions.d.ts +7 -5
- package/lib/redoc-lib/src/services/RedocNormalizedOptions.js +1 -1
- 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 +2 -2
- 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/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 +1 -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/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/CheckboxList.d.ts +3 -2
- 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 +4 -4
- 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 +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/OpenAPIParser.d.ts +1 -1
- package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.d.ts +7 -5
- package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.js +1 -1
- 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 +2 -2
- 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/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 +1 -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,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,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
|
|
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,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
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
|
|
2
|
-
import
|
|
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
|
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,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,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'];
|