@redocly/openapi-docs 0.0.0-beta-20240223133421 → 0.0.0-beta-20240227165736
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/dist/redocly-openapi-docs.min.js +9870 -8755
- package/lib/components/ApiInfo/ApiInfo.js +1 -1
- package/lib/components/ApiInfo/Metadata.js +1 -1
- package/lib/components/CallbackSamples/CallbackSamples.d.ts +2 -2
- package/lib/components/CallbackSamples/CallbackSamples.js +2 -3
- package/lib/components/Callbacks/CallbackDetails.d.ts +2 -2
- package/lib/components/Callbacks/CallbackDetails.js +1 -1
- package/lib/components/Callbacks/CallbackOperation.js +1 -1
- package/lib/components/Callbacks/CallbackSummary.js +2 -13
- package/lib/components/Callbacks/CallbacksList.d.ts +2 -2
- package/lib/components/Callbacks/CallbacksList.js +1 -1
- package/lib/components/Content/Content.d.ts +2 -2
- package/lib/components/Content/Content.js +1 -1
- package/lib/components/ContentItem/ContentItem.d.ts +2 -2
- package/lib/components/ContentItem/ContentItem.js +1 -1
- package/lib/components/ContentItems/ContentItems.d.ts +2 -2
- package/lib/components/ContentItems/ContentItems.js +1 -1
- package/lib/components/Discriminator/Discriminator.d.ts +2 -2
- package/lib/components/Discriminator/Discriminator.js +1 -1
- package/lib/components/Download/DownloadSpecification.d.ts +1 -2
- package/lib/components/Download/DownloadSpecification.js +1 -5
- package/lib/components/DropdownOrLabel/DropdownOrLabel.js +2 -2
- package/lib/components/ErrorBoundary/ErrorBoundary.js +2 -2
- package/lib/components/ExternalDocumentation/ExternalDocumentation.d.ts +2 -2
- package/lib/components/ExternalDocumentation/ExternalDocumentation.js +2 -2
- package/lib/components/Language/LanguageDropdown.js +1 -1
- package/lib/components/Language/LanguageItem.d.ts +1 -2
- package/lib/components/Language/LanguageItem.js +1 -1
- package/lib/components/Language/LanguageList.d.ts +2 -2
- package/lib/components/Language/LanguageList.js +1 -1
- package/lib/components/Language/_tests_/LanguageDropdown.test.js +1 -1
- package/lib/components/Language/styled.d.ts +0 -1
- package/lib/components/Language/styled.js +2 -9
- package/lib/components/Markdown/Markdown.js +1 -1
- package/lib/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +1 -2
- package/lib/components/MediaTypeSwitch/MediaTypesSwitch.js +1 -1
- package/lib/components/OperationItem/Description.d.ts +1 -2
- package/lib/components/OperationItem/Description.js +1 -1
- package/lib/components/OperationItem/OperationItem.d.ts +2 -2
- package/lib/components/OperationItem/OperationItem.js +2 -2
- package/lib/components/Overlay.js +1 -1
- package/lib/components/Overview/Overview.js +1 -1
- package/lib/components/PageFooter/PageFooter.d.ts +3 -3
- package/lib/components/PageFooter/PageFooter.js +1 -1
- package/lib/components/PanelItem/PanelItem.d.ts +1 -2
- package/lib/components/PanelItem/PanelItem.js +1 -1
- package/lib/components/PayloadSamples/Example.js +1 -1
- package/lib/components/PayloadSamples/ExampleValue.js +1 -1
- package/lib/components/PayloadSamples/ExternalExample.js +1 -1
- package/lib/components/PayloadSamples/MediaTypeSamples.d.ts +2 -2
- package/lib/components/PayloadSamples/MediaTypeSamples.js +1 -1
- package/lib/components/PayloadSamples/PayloadSamples.d.ts +2 -2
- package/lib/components/PayloadSamples/PayloadSamples.js +1 -1
- package/lib/components/PropertyDetails/DescriptionEnums.d.ts +1 -2
- package/lib/components/PropertyDetails/DescriptionEnums.js +2 -2
- package/lib/components/PropertyDetails/EnumValues.d.ts +2 -2
- package/lib/components/PropertyDetails/EnumValues.js +1 -1
- package/lib/components/PropertyDetails/Examples.d.ts +1 -2
- package/lib/components/PropertyDetails/Examples.js +1 -1
- package/lib/components/PropertyDetails/Extensions.d.ts +2 -2
- package/lib/components/PropertyDetails/Extensions.js +2 -2
- package/lib/components/PropertyDetails/FieldDetail.d.ts +2 -2
- package/lib/components/PropertyDetails/FieldDetail.js +1 -1
- package/lib/components/PropertyDetails/FieldDetails.d.ts +2 -2
- package/lib/components/PropertyDetails/FieldDetails.js +1 -1
- package/lib/components/PropertyDetails/Pattern.js +1 -1
- package/lib/components/PropertyDetails/PlusCircleIcon.d.ts +1 -2
- package/lib/components/PropertyDetails/PlusCircleIcon.js +1 -1
- package/lib/components/PropertyDetails/PropertyDetails.d.ts +2 -2
- package/lib/components/PropertyDetails/PropertyDetails.js +1 -1
- package/lib/components/PropertyDetails/SchemaTypeInfo.d.ts +1 -2
- package/lib/components/PropertyDetails/SchemaTypeInfo.js +1 -1
- package/lib/components/PropertyDetails/SimpleEnums.d.ts +1 -2
- package/lib/components/PropertyDetails/SimpleEnums.js +1 -1
- package/lib/components/PropertyDetails/styled.d.ts +0 -1
- package/lib/components/PropertyDetails/styled.js +1 -10
- package/lib/components/RedoclyOpenAPIDocs/Providers.d.ts +1 -2
- package/lib/components/RedoclyOpenAPIDocs/Providers.js +1 -1
- package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.d.ts +1 -2
- package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.js +1 -1
- package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsMultiStandalone.js +1 -1
- package/lib/components/RenderHook/RenderHook.js +1 -1
- package/lib/components/Replay/Replay.d.ts +2 -2
- package/lib/components/Replay/Replay.js +1 -1
- package/lib/components/RequestParameters/Body.d.ts +2 -2
- package/lib/components/RequestParameters/Body.js +1 -1
- package/lib/components/RequestParameters/ParametersGroup.d.ts +2 -2
- package/lib/components/RequestParameters/ParametersGroup.js +1 -1
- package/lib/components/RequestParameters/RequestParameters.js +1 -1
- package/lib/components/RequestSamples/CodeSample.d.ts +2 -2
- package/lib/components/RequestSamples/CodeSample.js +1 -1
- package/lib/components/RequestSamples/Example.d.ts +1 -2
- package/lib/components/RequestSamples/Example.js +1 -1
- package/lib/components/RequestSamples/RequestSamples.d.ts +2 -2
- package/lib/components/RequestSamples/RequestSamples.js +6 -1
- package/lib/components/ResponseSamples/ResponseSamples.d.ts +1 -2
- package/lib/components/ResponseSamples/ResponseSamples.js +1 -1
- package/lib/components/ResponseSamples/Summary.js +1 -1
- package/lib/components/Responses/OperationResponseList.d.ts +1 -2
- package/lib/components/Responses/OperationResponseList.js +1 -1
- package/lib/components/Responses/ResponseDetails.d.ts +2 -2
- package/lib/components/Responses/ResponseDetails.js +1 -1
- package/lib/components/Responses/ResponseHeaders.d.ts +2 -2
- package/lib/components/Responses/ResponseHeaders.js +1 -1
- package/lib/components/RightPanel/RightPanel.js +1 -1
- package/lib/components/Samples/ExampleSwitch.js +1 -1
- package/lib/components/Schema/ArraySchema.d.ts +2 -2
- package/lib/components/Schema/ArraySchema.js +1 -1
- package/lib/components/Schema/ObjectSchema.d.ts +2 -2
- package/lib/components/Schema/ObjectSchema.js +1 -1
- package/lib/components/Schema/OneOfSchema.d.ts +2 -2
- package/lib/components/Schema/OneOfSchema.js +1 -1
- package/lib/components/Schema/RecursiveSchema.d.ts +2 -2
- package/lib/components/Schema/RecursiveSchema.js +1 -1
- package/lib/components/Schema/Schema.d.ts +2 -2
- package/lib/components/Schema/Schema.js +1 -1
- package/lib/components/SchemaDefinition/SchemaDefinition.d.ts +2 -2
- package/lib/components/SchemaDefinition/SchemaDefinition.js +1 -1
- package/lib/components/Search/MenuItemSearch.js +1 -1
- package/lib/components/Search/Search.d.ts +2 -2
- package/lib/components/Search/Search.js +1 -1
- package/lib/components/Search/SearchBox.js +1 -1
- package/lib/components/Search/SearchField.js +1 -1
- package/lib/components/Search/styled.js +2 -2
- package/lib/components/SectionContent/SectionContent.js +1 -1
- package/lib/components/SectionItem/SectionItem.d.ts +2 -2
- package/lib/components/SectionItem/SectionItem.js +1 -1
- package/lib/components/Security/Divider.d.ts +1 -2
- package/lib/components/Security/Divider.js +1 -1
- package/lib/components/Security/OAuthFlow.d.ts +2 -2
- package/lib/components/Security/OAuthFlow.js +1 -1
- package/lib/components/Security/Security.js +1 -1
- package/lib/components/Security/SecurityButton.js +6 -10
- package/lib/components/Security/SecurityFlow.js +1 -1
- package/lib/components/Security/SecurityModal.js +8 -17
- package/lib/components/Security/SecuritySchemeItem.d.ts +1 -2
- package/lib/components/Security/SecuritySchemeItem.js +4 -4
- package/lib/components/SecurityRequirement/PanelDescription.js +1 -1
- package/lib/components/SecurityRequirement/RequiredScopesRow.js +1 -1
- package/lib/components/SecurityRequirement/RequirementElement.js +1 -1
- package/lib/components/SecurityRequirement/SecurityDefs.js +1 -1
- package/lib/components/SecurityRequirement/SecurityRequirement.d.ts +2 -2
- package/lib/components/SecurityRequirement/SecurityRequirement.js +1 -1
- package/lib/components/SecuritySchemes/OAuthFlow.d.ts +2 -2
- package/lib/components/SecuritySchemes/OAuthFlow.js +1 -1
- package/lib/components/SeeMore/SeeMore.js +1 -1
- package/lib/components/ServerList/ServerList.js +1 -1
- package/lib/components/ServerListDropdown/ServerListDropdown.js +1 -1
- package/lib/components/ServerListDropdown/styled.js +0 -3
- package/lib/components/SideMenu/Actions.d.ts +1 -2
- package/lib/components/SideMenu/Actions.js +1 -1
- package/lib/components/SideMenu/MenuItem.d.ts +2 -2
- package/lib/components/SideMenu/MenuItem.js +1 -1
- package/lib/components/SideMenu/MenuItemEternalLink.d.ts +2 -2
- package/lib/components/SideMenu/MenuItemEternalLink.js +1 -1
- package/lib/components/SideMenu/MenuItemLink.d.ts +2 -2
- package/lib/components/SideMenu/MenuItemLink.js +1 -1
- package/lib/components/SideMenu/MenuItems.d.ts +2 -2
- package/lib/components/SideMenu/MenuItems.js +1 -1
- package/lib/components/SideMenu/MenuOperationItemContent.d.ts +2 -2
- package/lib/components/SideMenu/MenuOperationItemContent.js +2 -2
- package/lib/components/SideMenu/SideMenu.d.ts +2 -2
- package/lib/components/SideMenu/SideMenu.js +1 -1
- package/lib/components/StickySidebar/StickyResponsiveSidebar.d.ts +2 -2
- package/lib/components/StickySidebar/StickyResponsiveSidebar.js +2 -2
- package/lib/components/Tabs/Tabs.d.ts +1 -2
- package/lib/components/Tabs/Tabs.js +1 -1
- package/lib/components/TagItem/OperationsNavigation.d.ts +3 -3
- package/lib/components/TagItem/OperationsNavigation.js +16 -14
- package/lib/components/TagItem/TagItem.d.ts +1 -2
- package/lib/components/TagItem/TagItem.js +1 -1
- package/lib/components/VersionSwitcher.js +1 -1
- package/lib/components/ViewNested/ViewNested.d.ts +2 -2
- package/lib/components/ViewNested/ViewNested.js +1 -13
- package/lib/components/common/BodyContent/BodyContent.d.ts +2 -2
- package/lib/components/common/BodyContent/BodyContent.js +1 -1
- package/lib/components/common/ClearButton/ClearButton.d.ts +2 -2
- package/lib/components/common/ClearButton/ClearButton.js +1 -1
- package/lib/components/common/ConstraintsView.d.ts +2 -2
- package/lib/components/common/ConstraintsView.js +1 -1
- package/lib/components/common/Dropdown/Dropdown.d.ts +2 -2
- package/lib/components/common/Dropdown/Dropdown.js +1 -1
- package/lib/components/common/DropdownTheme/Dropdown.d.ts +1 -2
- package/lib/components/common/DropdownTheme/Dropdown.js +2 -10
- package/lib/components/common/Extensions.d.ts +2 -2
- package/lib/components/common/Extensions.js +2 -2
- package/lib/components/common/Fields/fields.d.ts +5 -1
- package/lib/components/common/Fields/fields.js +2 -6
- package/lib/components/common/LinearProgress.js +2 -2
- package/lib/components/common/LinkToField.js +1 -1
- package/lib/components/common/SchemaSelection/SchemaSelection.d.ts +1 -2
- package/lib/components/common/SchemaSelection/SchemaSelection.js +1 -1
- package/lib/components/common/Skeleton/Skeleton.js +2 -2
- package/lib/components/common/linkify.js +1 -1
- package/lib/components/common/perfect-scrollbar.js +2 -2
- package/lib/components/pluggable/PullRight.d.ts +1 -2
- package/lib/components/pluggable/PullRight.js +1 -1
- package/lib/components/pluggable/RedocExample.js +1 -1
- package/lib/components/pluggable/RedocRequestBody.js +1 -1
- package/lib/components/pluggable/RedocResponse.js +1 -1
- package/lib/components/pluggable/RedocSchema.js +1 -1
- package/lib/hoc/withRouter.js +1 -1
- package/lib/hoc/withStore.js +1 -1
- package/lib/icons/CSharpIcon/CSharpIcon.d.ts +2 -3
- package/lib/icons/CSharpIcon/CSharpIcon.js +1 -1
- package/lib/icons/CurlIcon/CurlIcon.d.ts +2 -3
- package/lib/icons/CurlIcon/CurlIcon.js +1 -1
- package/lib/icons/GOIcon/GOIcon.d.ts +2 -3
- package/lib/icons/GOIcon/GOIcon.js +1 -1
- package/lib/icons/JavaIcon/JavaIcon.d.ts +2 -3
- package/lib/icons/JavaIcon/JavaIcon.js +1 -1
- package/lib/icons/JavaScriptIcon/JavaScriptIcon.d.ts +2 -3
- package/lib/icons/JavaScriptIcon/JavaScriptIcon.js +1 -1
- package/lib/icons/NodeJSIcon/NodeJSIcon.d.ts +2 -3
- package/lib/icons/NodeJSIcon/NodeJSIcon.js +1 -1
- package/lib/icons/PHPIcon/PHPIcon.d.ts +2 -3
- package/lib/icons/PHPIcon/PHPIcon.js +1 -1
- package/lib/icons/PythonIcon/PythonIcon.d.ts +2 -3
- package/lib/icons/PythonIcon/PythonIcon.js +1 -1
- package/lib/icons/RIcon/RIcon.d.ts +2 -3
- package/lib/icons/RIcon/RIcon.js +1 -1
- package/lib/icons/RubyIcon/RubyIcon.d.ts +2 -3
- package/lib/icons/RubyIcon/RubyIcon.js +1 -1
- package/lib/services/search/SearchStore.js +19 -8
- package/lib/standalone.js +1 -1
- package/lib/testProviders.js +1 -1
- package/lib-esm/components/ApiInfo/ApiInfo.js +1 -1
- package/lib-esm/components/ApiInfo/Metadata.js +1 -1
- package/lib-esm/components/CallbackSamples/CallbackSamples.d.ts +2 -2
- package/lib-esm/components/CallbackSamples/CallbackSamples.js +2 -3
- package/lib-esm/components/Callbacks/CallbackDetails.d.ts +2 -2
- package/lib-esm/components/Callbacks/CallbackDetails.js +1 -1
- package/lib-esm/components/Callbacks/CallbackOperation.js +1 -1
- package/lib-esm/components/Callbacks/CallbackSummary.js +2 -13
- package/lib-esm/components/Callbacks/CallbacksList.d.ts +2 -2
- package/lib-esm/components/Callbacks/CallbacksList.js +1 -1
- package/lib-esm/components/Content/Content.d.ts +2 -2
- package/lib-esm/components/Content/Content.js +1 -1
- package/lib-esm/components/ContentItem/ContentItem.d.ts +2 -2
- package/lib-esm/components/ContentItem/ContentItem.js +1 -1
- package/lib-esm/components/ContentItems/ContentItems.d.ts +2 -2
- package/lib-esm/components/ContentItems/ContentItems.js +1 -1
- package/lib-esm/components/Discriminator/Discriminator.d.ts +2 -2
- package/lib-esm/components/Discriminator/Discriminator.js +1 -1
- package/lib-esm/components/Download/DownloadSpecification.d.ts +1 -2
- package/lib-esm/components/Download/DownloadSpecification.js +1 -5
- package/lib-esm/components/DropdownOrLabel/DropdownOrLabel.js +2 -2
- package/lib-esm/components/ErrorBoundary/ErrorBoundary.js +2 -2
- package/lib-esm/components/ExternalDocumentation/ExternalDocumentation.d.ts +2 -2
- package/lib-esm/components/ExternalDocumentation/ExternalDocumentation.js +3 -3
- package/lib-esm/components/Language/LanguageDropdown.js +1 -1
- package/lib-esm/components/Language/LanguageItem.d.ts +1 -2
- package/lib-esm/components/Language/LanguageItem.js +1 -1
- package/lib-esm/components/Language/LanguageList.d.ts +2 -2
- package/lib-esm/components/Language/LanguageList.js +1 -1
- package/lib-esm/components/Language/_tests_/LanguageDropdown.test.js +1 -1
- package/lib-esm/components/Language/styled.d.ts +0 -1
- package/lib-esm/components/Language/styled.js +1 -8
- package/lib-esm/components/Markdown/Markdown.js +1 -1
- package/lib-esm/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +1 -2
- package/lib-esm/components/MediaTypeSwitch/MediaTypesSwitch.js +1 -1
- package/lib-esm/components/OperationItem/Description.d.ts +1 -2
- package/lib-esm/components/OperationItem/Description.js +1 -1
- package/lib-esm/components/OperationItem/OperationItem.d.ts +2 -2
- package/lib-esm/components/OperationItem/OperationItem.js +2 -2
- package/lib-esm/components/Overlay.js +1 -1
- package/lib-esm/components/Overview/Overview.js +1 -1
- package/lib-esm/components/PageFooter/PageFooter.d.ts +3 -3
- package/lib-esm/components/PageFooter/PageFooter.js +1 -1
- package/lib-esm/components/PanelItem/PanelItem.d.ts +1 -2
- package/lib-esm/components/PanelItem/PanelItem.js +1 -1
- package/lib-esm/components/PayloadSamples/Example.js +1 -1
- package/lib-esm/components/PayloadSamples/ExampleValue.js +1 -1
- package/lib-esm/components/PayloadSamples/ExternalExample.js +1 -1
- package/lib-esm/components/PayloadSamples/MediaTypeSamples.d.ts +2 -2
- package/lib-esm/components/PayloadSamples/MediaTypeSamples.js +1 -1
- package/lib-esm/components/PayloadSamples/PayloadSamples.d.ts +2 -2
- package/lib-esm/components/PayloadSamples/PayloadSamples.js +1 -1
- package/lib-esm/components/PropertyDetails/DescriptionEnums.d.ts +1 -2
- package/lib-esm/components/PropertyDetails/DescriptionEnums.js +2 -2
- package/lib-esm/components/PropertyDetails/EnumValues.d.ts +2 -2
- package/lib-esm/components/PropertyDetails/EnumValues.js +1 -1
- package/lib-esm/components/PropertyDetails/Examples.d.ts +1 -2
- package/lib-esm/components/PropertyDetails/Examples.js +1 -1
- package/lib-esm/components/PropertyDetails/Extensions.d.ts +2 -2
- package/lib-esm/components/PropertyDetails/Extensions.js +2 -2
- package/lib-esm/components/PropertyDetails/FieldDetail.d.ts +2 -2
- package/lib-esm/components/PropertyDetails/FieldDetail.js +1 -1
- package/lib-esm/components/PropertyDetails/FieldDetails.d.ts +2 -2
- package/lib-esm/components/PropertyDetails/FieldDetails.js +1 -1
- package/lib-esm/components/PropertyDetails/Pattern.js +1 -1
- package/lib-esm/components/PropertyDetails/PlusCircleIcon.d.ts +1 -2
- package/lib-esm/components/PropertyDetails/PlusCircleIcon.js +1 -1
- package/lib-esm/components/PropertyDetails/PropertyDetails.d.ts +2 -2
- package/lib-esm/components/PropertyDetails/PropertyDetails.js +1 -1
- package/lib-esm/components/PropertyDetails/SchemaTypeInfo.d.ts +1 -2
- package/lib-esm/components/PropertyDetails/SchemaTypeInfo.js +1 -1
- package/lib-esm/components/PropertyDetails/SimpleEnums.d.ts +1 -2
- package/lib-esm/components/PropertyDetails/SimpleEnums.js +1 -1
- package/lib-esm/components/PropertyDetails/styled.d.ts +0 -1
- package/lib-esm/components/PropertyDetails/styled.js +1 -10
- package/lib-esm/components/RedoclyOpenAPIDocs/Providers.d.ts +1 -2
- package/lib-esm/components/RedoclyOpenAPIDocs/Providers.js +1 -1
- package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.d.ts +1 -2
- package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.js +1 -1
- package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsMultiStandalone.js +1 -1
- package/lib-esm/components/RenderHook/RenderHook.js +1 -1
- package/lib-esm/components/Replay/Replay.d.ts +2 -2
- package/lib-esm/components/Replay/Replay.js +1 -1
- package/lib-esm/components/RequestParameters/Body.d.ts +2 -2
- package/lib-esm/components/RequestParameters/Body.js +1 -1
- package/lib-esm/components/RequestParameters/ParametersGroup.d.ts +2 -2
- package/lib-esm/components/RequestParameters/ParametersGroup.js +1 -1
- package/lib-esm/components/RequestParameters/RequestParameters.js +1 -1
- package/lib-esm/components/RequestSamples/CodeSample.d.ts +2 -2
- package/lib-esm/components/RequestSamples/CodeSample.js +1 -1
- package/lib-esm/components/RequestSamples/Example.d.ts +1 -2
- package/lib-esm/components/RequestSamples/Example.js +1 -1
- package/lib-esm/components/RequestSamples/RequestSamples.d.ts +2 -2
- package/lib-esm/components/RequestSamples/RequestSamples.js +6 -1
- package/lib-esm/components/ResponseSamples/ResponseSamples.d.ts +1 -2
- package/lib-esm/components/ResponseSamples/ResponseSamples.js +1 -1
- package/lib-esm/components/ResponseSamples/Summary.js +1 -1
- package/lib-esm/components/Responses/OperationResponseList.d.ts +1 -2
- package/lib-esm/components/Responses/OperationResponseList.js +1 -1
- package/lib-esm/components/Responses/ResponseDetails.d.ts +2 -2
- package/lib-esm/components/Responses/ResponseDetails.js +1 -1
- package/lib-esm/components/Responses/ResponseHeaders.d.ts +2 -2
- package/lib-esm/components/Responses/ResponseHeaders.js +1 -1
- package/lib-esm/components/RightPanel/RightPanel.js +1 -1
- package/lib-esm/components/Samples/ExampleSwitch.js +1 -1
- package/lib-esm/components/Schema/ArraySchema.d.ts +2 -2
- package/lib-esm/components/Schema/ArraySchema.js +1 -1
- package/lib-esm/components/Schema/ObjectSchema.d.ts +2 -2
- package/lib-esm/components/Schema/ObjectSchema.js +1 -1
- package/lib-esm/components/Schema/OneOfSchema.d.ts +2 -2
- package/lib-esm/components/Schema/OneOfSchema.js +1 -1
- package/lib-esm/components/Schema/RecursiveSchema.d.ts +2 -2
- package/lib-esm/components/Schema/RecursiveSchema.js +1 -1
- package/lib-esm/components/Schema/Schema.d.ts +2 -2
- package/lib-esm/components/Schema/Schema.js +1 -1
- package/lib-esm/components/SchemaDefinition/SchemaDefinition.d.ts +2 -2
- package/lib-esm/components/SchemaDefinition/SchemaDefinition.js +1 -1
- package/lib-esm/components/Search/MenuItemSearch.js +1 -1
- package/lib-esm/components/Search/Search.d.ts +2 -2
- package/lib-esm/components/Search/Search.js +1 -1
- package/lib-esm/components/Search/SearchBox.js +1 -1
- package/lib-esm/components/Search/SearchField.js +1 -1
- package/lib-esm/components/Search/styled.js +2 -2
- package/lib-esm/components/SectionContent/SectionContent.js +1 -1
- package/lib-esm/components/SectionItem/SectionItem.d.ts +2 -2
- package/lib-esm/components/SectionItem/SectionItem.js +1 -1
- package/lib-esm/components/Security/Divider.d.ts +1 -2
- package/lib-esm/components/Security/Divider.js +1 -1
- package/lib-esm/components/Security/OAuthFlow.d.ts +2 -2
- package/lib-esm/components/Security/OAuthFlow.js +1 -1
- package/lib-esm/components/Security/Security.js +1 -1
- package/lib-esm/components/Security/SecurityButton.js +6 -10
- package/lib-esm/components/Security/SecurityFlow.js +1 -1
- package/lib-esm/components/Security/SecurityModal.js +8 -17
- package/lib-esm/components/Security/SecuritySchemeItem.d.ts +1 -2
- package/lib-esm/components/Security/SecuritySchemeItem.js +4 -4
- package/lib-esm/components/SecurityRequirement/PanelDescription.js +1 -1
- package/lib-esm/components/SecurityRequirement/RequiredScopesRow.js +1 -1
- package/lib-esm/components/SecurityRequirement/RequirementElement.js +1 -1
- package/lib-esm/components/SecurityRequirement/SecurityDefs.js +1 -1
- package/lib-esm/components/SecurityRequirement/SecurityRequirement.d.ts +2 -2
- package/lib-esm/components/SecurityRequirement/SecurityRequirement.js +1 -1
- package/lib-esm/components/SecuritySchemes/OAuthFlow.d.ts +2 -2
- package/lib-esm/components/SecuritySchemes/OAuthFlow.js +1 -1
- package/lib-esm/components/SeeMore/SeeMore.js +1 -1
- package/lib-esm/components/ServerList/ServerList.js +1 -1
- package/lib-esm/components/ServerListDropdown/ServerListDropdown.js +1 -1
- package/lib-esm/components/ServerListDropdown/styled.js +0 -3
- package/lib-esm/components/SideMenu/Actions.d.ts +1 -2
- package/lib-esm/components/SideMenu/Actions.js +1 -1
- package/lib-esm/components/SideMenu/MenuItem.d.ts +2 -2
- package/lib-esm/components/SideMenu/MenuItem.js +1 -1
- package/lib-esm/components/SideMenu/MenuItemEternalLink.d.ts +2 -2
- package/lib-esm/components/SideMenu/MenuItemEternalLink.js +1 -1
- package/lib-esm/components/SideMenu/MenuItemLink.d.ts +2 -2
- package/lib-esm/components/SideMenu/MenuItemLink.js +1 -1
- package/lib-esm/components/SideMenu/MenuItems.d.ts +2 -2
- package/lib-esm/components/SideMenu/MenuItems.js +1 -1
- package/lib-esm/components/SideMenu/MenuOperationItemContent.d.ts +2 -2
- package/lib-esm/components/SideMenu/MenuOperationItemContent.js +2 -2
- package/lib-esm/components/SideMenu/SideMenu.d.ts +2 -2
- package/lib-esm/components/SideMenu/SideMenu.js +1 -1
- package/lib-esm/components/StickySidebar/StickyResponsiveSidebar.d.ts +2 -2
- package/lib-esm/components/StickySidebar/StickyResponsiveSidebar.js +2 -2
- package/lib-esm/components/Tabs/Tabs.d.ts +1 -2
- package/lib-esm/components/Tabs/Tabs.js +1 -1
- package/lib-esm/components/TagItem/OperationsNavigation.d.ts +3 -3
- package/lib-esm/components/TagItem/OperationsNavigation.js +16 -14
- package/lib-esm/components/TagItem/TagItem.d.ts +1 -2
- package/lib-esm/components/TagItem/TagItem.js +1 -1
- package/lib-esm/components/VersionSwitcher.js +1 -1
- package/lib-esm/components/ViewNested/ViewNested.d.ts +2 -2
- package/lib-esm/components/ViewNested/ViewNested.js +1 -13
- package/lib-esm/components/common/BodyContent/BodyContent.d.ts +2 -2
- package/lib-esm/components/common/BodyContent/BodyContent.js +1 -1
- package/lib-esm/components/common/ClearButton/ClearButton.d.ts +2 -2
- package/lib-esm/components/common/ClearButton/ClearButton.js +1 -1
- package/lib-esm/components/common/ConstraintsView.d.ts +2 -2
- package/lib-esm/components/common/ConstraintsView.js +1 -1
- package/lib-esm/components/common/Dropdown/Dropdown.d.ts +2 -2
- package/lib-esm/components/common/Dropdown/Dropdown.js +1 -1
- package/lib-esm/components/common/DropdownTheme/Dropdown.d.ts +1 -2
- package/lib-esm/components/common/DropdownTheme/Dropdown.js +2 -10
- package/lib-esm/components/common/Extensions.d.ts +2 -2
- package/lib-esm/components/common/Extensions.js +2 -2
- package/lib-esm/components/common/Fields/fields.d.ts +5 -1
- package/lib-esm/components/common/Fields/fields.js +2 -6
- package/lib-esm/components/common/LinearProgress.js +2 -2
- package/lib-esm/components/common/LinkToField.js +1 -1
- package/lib-esm/components/common/SchemaSelection/SchemaSelection.d.ts +1 -2
- package/lib-esm/components/common/SchemaSelection/SchemaSelection.js +1 -1
- package/lib-esm/components/common/Skeleton/Skeleton.js +2 -2
- package/lib-esm/components/common/linkify.js +2 -2
- package/lib-esm/components/common/perfect-scrollbar.js +2 -2
- package/lib-esm/components/pluggable/PullRight.d.ts +1 -2
- package/lib-esm/components/pluggable/PullRight.js +1 -1
- package/lib-esm/components/pluggable/RedocExample.js +1 -1
- package/lib-esm/components/pluggable/RedocRequestBody.js +1 -1
- package/lib-esm/components/pluggable/RedocResponse.js +1 -1
- package/lib-esm/components/pluggable/RedocSchema.js +1 -1
- package/lib-esm/hoc/withRouter.js +1 -1
- package/lib-esm/hoc/withStore.js +1 -1
- package/lib-esm/icons/CSharpIcon/CSharpIcon.d.ts +2 -3
- package/lib-esm/icons/CSharpIcon/CSharpIcon.js +1 -1
- package/lib-esm/icons/CurlIcon/CurlIcon.d.ts +2 -3
- package/lib-esm/icons/CurlIcon/CurlIcon.js +1 -1
- package/lib-esm/icons/GOIcon/GOIcon.d.ts +2 -3
- package/lib-esm/icons/GOIcon/GOIcon.js +1 -1
- package/lib-esm/icons/JavaIcon/JavaIcon.d.ts +2 -3
- package/lib-esm/icons/JavaIcon/JavaIcon.js +1 -1
- package/lib-esm/icons/JavaScriptIcon/JavaScriptIcon.d.ts +2 -3
- package/lib-esm/icons/JavaScriptIcon/JavaScriptIcon.js +1 -1
- package/lib-esm/icons/NodeJSIcon/NodeJSIcon.d.ts +2 -3
- package/lib-esm/icons/NodeJSIcon/NodeJSIcon.js +1 -1
- package/lib-esm/icons/PHPIcon/PHPIcon.d.ts +2 -3
- package/lib-esm/icons/PHPIcon/PHPIcon.js +1 -1
- package/lib-esm/icons/PythonIcon/PythonIcon.d.ts +2 -3
- package/lib-esm/icons/PythonIcon/PythonIcon.js +1 -1
- package/lib-esm/icons/RIcon/RIcon.d.ts +2 -3
- package/lib-esm/icons/RIcon/RIcon.js +1 -1
- package/lib-esm/icons/RubyIcon/RubyIcon.d.ts +2 -3
- package/lib-esm/icons/RubyIcon/RubyIcon.js +1 -1
- package/lib-esm/services/search/SearchStore.js +19 -8
- package/lib-esm/standalone.js +1 -1
- package/lib-esm/testProviders.js +1 -1
- package/package.json +4 -4
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SearchBox=void 0;const jsx_runtime_1=require("react/jsx-runtime"),hotkeys_js_1=__importDefault(require("hotkeys-js")),react_1=require("react"),theme_1=require("@redocly/theme"),hooks_1=require("../../hooks"),common_1=require("../common"),utils_1=require("../../utils"),MenuItemSearch_1=require("./MenuItemSearch"),styled_1=require("./styled"),utils_2=require("./utils"),SearchBox=({search:e,shown:t,searchValue:r,setSearchValue:s,marker:n,flatItems:u,options:l,hidePopUp:a,showPopUp:c})=>{const o=(0,react_1.useRef)(null),i=(0,react_1.useRef)(null),[_,h]=(0,react_1.useState)(null),[m,d]=(0,react_1.useState)(-1),[x,p]=(0,react_1.useState)(!1),[j,f]=(0,react_1.useState)(""),y=(0,hooks_1.usePrevious)(t),S=(0,react_1.useCallback)((e=>{o.current&&(clearTimeout(o.current),o.current=null),h(null),f(e),p(!1),n.unmark()}),[n]);(0,theme_1.useMount)((()=>{l.ctrlFHijack&&(0,hotkeys_js_1.default)("cmd+f,ctrl+f",(e=>(e.preventDefault(),e.stopPropagation(),l.disableSearch||c(),!1)))})),(0,react_1.useEffect)((()=>{var e;!y&&t&&(null===(e=i.current)||void 0===e||e.focus())}),[y,t]),(0,react_1.useEffect)((()=>{!y&&t&&!r&&j&&S("")}),[S,y,e,r,t,j]),(0,theme_1.useUnmount)((()=>{hotkeys_js_1.default.unbind("cmd+f,ctrl+f")}));const k=()=>{h(null),f(""),d(-1),s(""),n.unmark()},v=(0,utils_1.debounce)(((t,r)=>{e.search(t).then((e=>{r(e)}))}),200,!0),g=e=>{let t=!1;return v(e,(r=>{e.length<3&&S(e),t||(e=>{o.current&&(clearTimeout(o.current),o.current=null),h((0,utils_2.enhanceResults)(e,(e=>u.find((t=>t.id===e))))),p(!1)})(r)})),()=>{t=!0}},C=e=>{if(a(),l.searchAutoExpand)try{(0,utils_2.expandResults)(e)}catch(e){console.warn("Failed to auto expand schema:",e.message)}};return t?(0,jsx_runtime_1.jsx)(theme_1.Portal,{mountId:"api-content",children:(0,jsx_runtime_1.jsx)(styled_1.SearchPopUpBG,{role:"search",onClick:e=>{"search"===e.target.getAttribute("role")&&(k(),a())},children:(0,jsx_runtime_1.jsxs)(styled_1.SearchPopUpWrap,{children:[(0,jsx_runtime_1.jsxs)(styled_1.SearchPopUpHeader,{children:[(0,jsx_runtime_1.jsx)(styled_1.SearchInput,{ref:i,value:j,onKeyDown:e=>{if("Escape"===e.key&&i.current&&(i.current.blur(),a()),_&&("Escape"===e.key&&k(),"ArrowDown"===e.key&&(d(Math.min(m+1,_.length-1)),e.preventDefault()),"ArrowUp"===e.key&&(d(Math.max(0,m-1)),e.preventDefault()),"Enter"===e.key)){const e=_[m];e&&C(e)}},placeholder:"Search...",type:"text",onChange:e=>{const t=e.target.value;if(t.length<l.minCharacterLengthToInitSearch)return S(t),void s("");(e=>{f(e),s(e),o.current&&(clearTimeout(o.current),o.current=null),o.current=setTimeout((()=>{p(!0)}),500),n.mark(e)})(t),g(t)},autoFocus:!0}),j&&(0,jsx_runtime_1.jsx)(styled_1.ButtonClear,{onClick:k,children:"Clear"}),(0,jsx_runtime_1.jsx)(styled_1.ButtonClose,{onClick:()=>{k(),a()}})]}),(0,jsx_runtime_1.jsxs)(styled_1.SearchResultsBox,{"data-role":"search:results",children:[x&&(0,jsx_runtime_1.jsx)(styled_1.TextContainer,{children:"Loading..."}),!x&&!(null==_?void 0:_.length)&&(0,jsx_runtime_1.jsx)(styled_1.TextContainer,{children:"No results found"}),(null==_?void 0:_.length)?(0,jsx_runtime_1.jsx)(common_1.PerfectScrollbarWrap,{options:{wheelPropagation:!1},children:(0,jsx_runtime_1.jsx)(styled_1.SearchResultsItems,{children:_.slice(0,50).map(((e,t)=>(0,jsx_runtime_1.jsx)(MenuItemSearch_1.MenuItemSearch,{result:e,active:t===m,term:j,onClick:a},e.index+e.item.id)))})}):null]})]})})}):null};exports.SearchBox=SearchBox;
|
|
2
2
|
//# sourceMappingURL=SearchBox.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SearchField=void 0;const jsx_runtime_1=require("react/jsx-runtime"),styled_1=require("./styled"),SearchField=({showPopUp:e,searchValue:r,marker:s,setSearchValue:t})=>{const a=!!r;return(0,jsx_runtime_1.jsxs)(styled_1.SearchFieldWrap,{onClick:e,className:`button-field-search ${!!r&&"active"}`,children:[(0,jsx_runtime_1.jsx)("span",{}),r||"Search",(0,jsx_runtime_1.jsx)(styled_1.SearchIcon,{}),a&&(0,jsx_runtime_1.jsx)(styled_1.ButtonClear,{onClick:e=>{e.stopPropagation(),s.unmark(),t("")},children:(0,jsx_runtime_1.jsx)(styled_1.CrossIcon,{})})]})};exports.SearchField=SearchField;
|
|
2
2
|
//# sourceMappingURL=SearchField.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var __importDefault=this&&this.__importDefault||function(
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.MarkedSpan=exports.Place=exports.ResultMeta=exports.SearchInput=exports.SearchResultsItems=exports.SearchResultsBox=exports.TextContainer=exports.SearchPopUpHeader=exports.SearchPopUpWrap=exports.SearchPopUpBG=exports.SearchFieldWrap=exports.SearchIcon=exports.ButtonClear=exports.ButtonClose=exports.CrossIcon=void 0;const jsx_runtime_1=require("react/jsx-runtime"),styled_components_1=__importDefault(require("styled-components")),CrossIcon=()=>(0,jsx_runtime_1.jsxs)("svg",{version:"1.1",viewBox:"0 0 12 12",width:"12",height:"12",xmlns:"http://www.w3.org/2000/svg",fill:"none",className:"clear-icon",children:[(0,jsx_runtime_1.jsx)("path",{d:"M11 1L6 6L11 11",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,jsx_runtime_1.jsx)("path",{d:"M1 1L6 6L1 11",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});exports.CrossIcon=CrossIcon,exports.ButtonClose=styled_components_1.default.i.attrs((()=>({className:"button-close"})))`
|
|
2
2
|
cursor: pointer;
|
|
3
3
|
position: absolute;
|
|
4
4
|
right: 15px;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
`,exports.ButtonClear=styled_components_1.default.i.attrs((()=>({className:"button-clear"})))`
|
|
7
7
|
cursor: pointer;
|
|
8
8
|
position: absolute;
|
|
9
|
-
`;const SearchIcon=()=>
|
|
9
|
+
`;const SearchIcon=()=>(0,jsx_runtime_1.jsxs)("svg",{version:"1.1",viewBox:"0 0 15 16",width:"15",height:"16",xmlns:"http://www.w3.org/2000/svg",fill:"none",className:"search-icon",children:[(0,jsx_runtime_1.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 14C11.0899 14 14 11.0899 14 7.5C14 3.91015 11.0899 1 7.5 1C3.91015 1 1 3.91015 1 7.5C1 11.0899 3.91015 14 7.5 14Z",stroke:"currentColor",strokeWidth:"2"}),(0,jsx_runtime_1.jsx)("path",{d:"M7.5 5C6.11929 5 5 6.11929 5 7.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),(0,jsx_runtime_1.jsx)("path",{d:"M1 15L3 13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});exports.SearchIcon=SearchIcon,exports.SearchFieldWrap=styled_components_1.default.button`
|
|
10
10
|
cursor: text;
|
|
11
11
|
margin: 10px 20px 13px;
|
|
12
12
|
padding: 0 18px 0 3px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SectionContent=void 0;const jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),theme_1=require("@redocly/theme"),jotai_1=require("jotai"),styled_components_1=__importDefault(require("styled-components")),ContentItem_1=require("../ContentItem"),Panel_1=require("../Panel"),PageFooter_1=require("../PageFooter"),store_1=require("../../jotai/store"),RenderHook_1=require("../RenderHook"),RightPanel_1=require("../RightPanel"),app_1=require("../../jotai/app"),common_1=require("../common");function SectionContent({items:e,hideFooterAndHeader:t}){const{hooks:{MiddlePanelHeader:n},routingBasePath:i}=(0,jotai_1.useAtomValue)(store_1.globalOptionsAtom),o=(0,jotai_1.useAtomValue)(app_1.layoutAtom),r=(0,react_1.useMemo)((()=>t?null:(0,jsx_runtime_1.jsx)(Panel_1.MiddlePanelWrapper,{children:(0,jsx_runtime_1.jsx)(PageFooter_1.PageFooter,{})})),[t]),a=(0,react_1.useMemo)((()=>t||!theme_1.OpenApiHeader&&!n?null:(0,jsx_runtime_1.jsx)(Panel_1.MiddlePanelWrapper,{children:n?(0,jsx_runtime_1.jsx)(RenderHook_1.RenderHook,{Hook:n,props:void 0}):(0,jsx_runtime_1.jsx)(theme_1.OpenApiHeader,{})})),[n,t]);return 0===e.length?null:(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[a,(0,jsx_runtime_1.jsxs)(Container,{children:[(0,jsx_runtime_1.jsx)(SectionContainer,{layout:o,children:e.filter((({type:e})=>["section"].includes(e))).map((e=>(0,jsx_runtime_1.jsx)(ContentItem_1.ContentItem,{item:e,routingBasePath:i},e.id)))}),(0,jsx_runtime_1.jsx)(RightPanelContainer,{layout:o,children:(0,jsx_runtime_1.jsx)(RightPanel_1.RightPanel,{item:e[0]})})]}),e.filter((({type:e})=>!["section"].includes(e))).map((e=>(0,jsx_runtime_1.jsx)(ContentItem_1.ContentItem,{item:e,routingBasePath:i},e.id))),r]})}exports.SectionContent=SectionContent;const Container=styled_components_1.default.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
`,SectionContainer=styled_components_1.default.div`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { GroupModel } from '../../models';
|
|
3
3
|
export interface SectionItemProps {
|
|
4
4
|
item: GroupModel;
|
|
5
5
|
}
|
|
6
|
-
export declare const SectionItem:
|
|
6
|
+
export declare const SectionItem: import("react").NamedExoticComponent<SectionItemProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SectionItem=void 0;const jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),common_1=require("../common"),Markdown_1=require("../Markdown"),ExternalDocumentation_1=require("../ExternalDocumentation");function SectionItemComponent({item:e}){const{externalDocs:t,ast:n,description:r}=e;return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(Markdown_1.Markdown,{ast:n,source:r,htmlWrap:e=>(0,jsx_runtime_1.jsx)(common_1.SamplesMiddlePanel,{compact:!0,fullWidth:!0,children:e})}),t&&(0,jsx_runtime_1.jsx)(common_1.Row,{children:(0,jsx_runtime_1.jsx)(common_1.SamplesMiddlePanel,{compact:!0,fullWidth:!0,children:(0,jsx_runtime_1.jsx)(ExternalDocumentation_1.ExternalDocumentation,{externalDocs:t})})})]})}exports.SectionItem=(0,react_1.memo)(SectionItemComponent);
|
|
2
2
|
//# sourceMappingURL=SectionItem.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Divider=void 0;const
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Divider=void 0;const jsx_runtime_1=require("react/jsx-runtime"),styled_components_1=__importDefault(require("styled-components")),styled_1=require("./styled");function Divider({label:e}){return(0,jsx_runtime_1.jsxs)(Wrapper,{children:[(0,jsx_runtime_1.jsx)(styled_1.Tag,{className:"tag-grey",children:e})," ",(0,jsx_runtime_1.jsx)("hr",{})]})}exports.Divider=Divider;const Wrapper=styled_components_1.default.div`
|
|
2
2
|
font-size: var(--font-size-sm);
|
|
3
3
|
width: 100%;
|
|
4
4
|
display: flex;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
2
|
import type { OpenAPISecurityScheme } from '../../types';
|
|
3
3
|
export interface OAuthFlowProps {
|
|
4
4
|
flow: OpenAPISecurityScheme['flows'][keyof OpenAPISecurityScheme['flows']];
|
|
5
5
|
}
|
|
6
|
-
export declare const OAuthFlow:
|
|
6
|
+
export declare const OAuthFlow: import("react").NamedExoticComponent<PropsWithChildren<OAuthFlowProps>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.OAuthFlow=void 0;const jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),styled_components_1=__importDefault(require("styled-components")),Markdown_1=require("../Markdown"),SecuritySchemeItem_1=require("./SecuritySchemeItem"),styled_1=require("./styled");function OAuthFlowComponent({flow:e}){const t=Object.keys((null==e?void 0:e.scopes)||{});return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(SecuritySchemeItem_1.SecuritySchemeItem,{label:"Authorization URL:",value:(null==e?void 0:e.authorizationUrl)&&(0,jsx_runtime_1.jsx)(styled_1.StyledLink,{target:"_blank",rel:"noopener noreferrer",href:null==e?void 0:e.authorizationUrl,children:null==e?void 0:e.authorizationUrl})}),(0,jsx_runtime_1.jsx)(SecuritySchemeItem_1.SecuritySchemeItem,{label:"Token URL:",value:null==e?void 0:e.tokenUrl}),(0,jsx_runtime_1.jsx)(SecuritySchemeItem_1.SecuritySchemeItem,{label:"Refresh URL:",value:null==e?void 0:e.refreshUrl}),t.length&&(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(SecuritySchemeItem_1.SecuritySchemeItem,{label:"Scopes",value:" "}),t.map((t=>(0,jsx_runtime_1.jsx)(SecuritySchemeItem_1.SecuritySchemeItem,{label:(0,jsx_runtime_1.jsx)(StyledTag,{className:"tag-grey",children:t}),value:(0,jsx_runtime_1.jsx)(Markdown_1.Markdown,{source:(null==e?void 0:e.scopes[t])||""})},t)))]})||null]})}const StyledTag=(0,styled_components_1.default)(styled_1.Tag)`
|
|
2
2
|
margin-left: var(--spacing-xs);
|
|
3
3
|
`;exports.OAuthFlow=(0,react_1.memo)(OAuthFlowComponent);
|
|
4
4
|
//# sourceMappingURL=OAuthFlow.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Security=void 0;const jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),jotai_1=require("jotai"),theme_1=require("@redocly/theme"),store_1=require("../../jotai/store"),SecurityButton_1=require("./SecurityButton"),SecurityModal_1=require("./SecurityModal");function Security({securities:e}){const{options:{hideSecuritySection:t}}=(0,jotai_1.useAtomValue)(store_1.globalStoreAtom),[r,i]=(0,react_1.useState)(!1);return!e.length||t?null:(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(SecurityButton_1.SecurityButton,{securities:e,onClick:()=>i(!0)}),r&&(0,jsx_runtime_1.jsx)(theme_1.Portal,{mountId:"api-content",children:(0,jsx_runtime_1.jsx)(SecurityModal_1.SecurityModal,{securities:e,onClose:()=>i(!1)})})]})}exports.Security=Security;
|
|
2
2
|
//# sourceMappingURL=Security.js.map
|
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SecurityButton=void 0;const
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SecurityButton=void 0;const jsx_runtime_1=require("react/jsx-runtime"),styled_components_1=__importDefault(require("styled-components")),theme_1=require("@redocly/theme");function SecurityButton({securities:e,onClick:t}){return(0,jsx_runtime_1.jsxs)(StyledButton,{icon:(0,jsx_runtime_1.jsx)(theme_1.SecurityIcon,{}),variant:"link",onClick:t,children:[(0,jsx_runtime_1.jsx)(Title,{children:"Security:"}),(0,jsx_runtime_1.jsx)(SecurityList,{children:e.map((t=>{const n=e.length>1&&t.schemes.length>1;return`\n ${n?"(":""} \n ${t.schemes.map((({id:e})=>e)).join(" and ")} \n ${n?")":""}\n `})).join(" or ")})]})}exports.SecurityButton=SecurityButton;const StyledButton=(0,styled_components_1.default)(theme_1.Button)`
|
|
4
2
|
align-self: flex-start;
|
|
5
3
|
gap: var(--spacing-xxs);
|
|
6
4
|
min-height: 32px;
|
|
7
5
|
background: var(--color-info-bg);
|
|
8
|
-
color: var(--link-color-primary);
|
|
9
|
-
border: none;
|
|
10
|
-
font-size: var(--font-size-base);
|
|
11
|
-
font-family: var(--font-family-base);
|
|
12
|
-
line-height: var(--line-height-base);
|
|
13
6
|
padding: 0 var(--spacing-xs);
|
|
14
|
-
border-radius: var(--border-radius-md);
|
|
15
7
|
margin-top: var(--spacing-base);
|
|
16
|
-
|
|
8
|
+
|
|
9
|
+
&:hover {
|
|
10
|
+
background: var(--color-info-bg);
|
|
11
|
+
color: var(--link-color-primary);
|
|
12
|
+
}
|
|
17
13
|
`,Title=styled_components_1.default.span`
|
|
18
14
|
font-family: var(--font-family-monospaced);
|
|
19
15
|
font-weight: var(--font-weight-semibold);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SecurityFlow=void 0;const
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SecurityFlow=void 0;const jsx_runtime_1=require("react/jsx-runtime"),styled_components_1=__importDefault(require("styled-components")),SecuritySchemeItem_1=require("./SecuritySchemeItem"),utils_1=require("../../utils"),OAuthFlow_1=require("./OAuthFlow"),styled_1=require("./styled"),Markdown_1=require("../Markdown"),helper_1=require("./helper");function SecurityFlow({type:e,bearerFormat:t,name:r,flows:i,openIdConnectUrl:s,description:n,id:u,securities:l,in:a}){if(!e||!u)return null;const o=(0,helper_1.getRequiredScopes)(u,l),c={http:(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(SecuritySchemeItem_1.SecuritySchemeItem,{label:"HTTP Authorization Scheme",value:e}),(0,jsx_runtime_1.jsx)(SecuritySchemeItem_1.SecuritySchemeItem,{label:"Bearer Format",value:t})]}),apiKey:(0,jsx_runtime_1.jsx)(SecuritySchemeItem_1.SecuritySchemeItem,{label:`${(0,utils_1.titleize)(a||"")} parameter name:`,value:r}),oauth2:(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(SecuritySchemeItem_1.SecuritySchemeItem,{label:"Flow type:",value:e}),i&&Object.keys(i).map((e=>(0,jsx_runtime_1.jsx)(OAuthFlow_1.OAuthFlow,{flow:i[e]},e)))]}),openIdConnect:(0,jsx_runtime_1.jsx)(SecuritySchemeItem_1.SecuritySchemeItem,{label:"Connect URL:",value:s&&(0,jsx_runtime_1.jsx)(styled_1.StyledLink,{target:"_blank",rel:"noopener noreferrer",href:s,children:s})})};return(0,jsx_runtime_1.jsxs)(Wrapper,{children:[(0,jsx_runtime_1.jsx)(TitleSchema,{children:u}),(0,jsx_runtime_1.jsx)(Markdown_1.Markdown,{source:n}),(0,jsx_runtime_1.jsxs)(List,{children:[c[e]||null,(0,jsx_runtime_1.jsx)(SecuritySchemeItem_1.SecuritySchemeItem,{label:"Required scopes",value:o.length&&(0,jsx_runtime_1.jsx)(Row,{children:o.map((e=>(0,jsx_runtime_1.jsx)(styled_1.Tag,{className:"tag-grey",children:e},e)))})})]})]})}exports.SecurityFlow=SecurityFlow;const Wrapper=styled_components_1.default.div`
|
|
2
2
|
background: var(--layer-color);
|
|
3
3
|
padding: var(--spacing-base);
|
|
4
4
|
border-radius: var(--border-radius);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SecurityModal=void 0;const jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),styled_components_1=__importDefault(require("styled-components")),theme_1=require("@redocly/theme"),SecurityFlow_1=require("./SecurityFlow"),Divider_1=require("./Divider");function SecurityModal({securities:e,onClose:t}){const[r,i]=(0,react_1.useState)(0),o=(0,react_1.useRef)(null),{schemes:s}=e[r]||{};(0,react_1.useEffect)((()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow="auto"})),[]),(0,theme_1.useOutsideClick)(o,t);const n=e.map((({schemes:e},t)=>({label:e.map((({id:e})=>e)).join(" and "),value:t})));return(0,jsx_runtime_1.jsx)(StyledBackground,{children:(0,jsx_runtime_1.jsxs)(Wrapper,{ref:o,children:[(0,jsx_runtime_1.jsx)(Close,{onClick:t,"data-cy":"close",variant:"ghost",icon:(0,jsx_runtime_1.jsx)(theme_1.CloseIcon,{})}),(0,jsx_runtime_1.jsxs)(Title,{children:[(0,jsx_runtime_1.jsx)(theme_1.SecurityIcon,{size:"24px"}),"Security"]}),(0,jsx_runtime_1.jsx)(theme_1.Segmented,{value:r,onChange:({value:e})=>i(e),options:n}),s.map(((t,r)=>(0,jsx_runtime_1.jsxs)(react_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(SecurityFlow_1.SecurityFlow,Object.assign({},t,{securities:e})),r!==s.length-1&&(0,jsx_runtime_1.jsx)(Divider_1.Divider,{label:"and"})]},t.id)))]})})}exports.SecurityModal=SecurityModal;const Wrapper=styled_components_1.default.div`
|
|
2
2
|
background: var(--bg-color);
|
|
3
3
|
box-shadow: var(--bg-raised-shadow);
|
|
4
4
|
border-radius: var(--border-radius-lg);
|
|
@@ -7,40 +7,31 @@
|
|
|
7
7
|
flex-direction: column;
|
|
8
8
|
align-items: flex-start;
|
|
9
9
|
position: absolute;
|
|
10
|
-
width:
|
|
10
|
+
width: 720px;
|
|
11
11
|
max-width: 100%;
|
|
12
12
|
height: auto;
|
|
13
|
-
max-height:
|
|
13
|
+
max-height: 600px;
|
|
14
14
|
overflow-y: scroll;
|
|
15
15
|
left: 50%;
|
|
16
|
-
top:
|
|
17
|
-
transform: translate(-50%, -
|
|
18
|
-
z-index: 2;
|
|
16
|
+
top: 30%;
|
|
17
|
+
transform: translate(-50%, -30%);
|
|
19
18
|
.tag-grey span {
|
|
20
19
|
font-size: var(--font-size-base);
|
|
21
20
|
line-height: var(--line-height-base);
|
|
22
21
|
}
|
|
23
22
|
`,StyledBackground=styled_components_1.default.div`
|
|
24
|
-
background:
|
|
23
|
+
background: var(--bg-color-modal-overlay);
|
|
25
24
|
position: fixed;
|
|
26
25
|
width: 100vw;
|
|
27
26
|
height: 100vh;
|
|
28
|
-
z-index:
|
|
27
|
+
z-index: var(--z-index-popover);
|
|
29
28
|
left: 0;
|
|
30
29
|
top: 0;
|
|
31
30
|
pointer-events: auto;
|
|
32
|
-
`,Close=styled_components_1.default.
|
|
33
|
-
border: none;
|
|
34
|
-
background: none;
|
|
31
|
+
`,Close=(0,styled_components_1.default)(theme_1.Button)`
|
|
35
32
|
position: absolute;
|
|
36
33
|
right: var(--spacing-md);
|
|
37
34
|
top: var(--spacing-md);
|
|
38
|
-
cursor: pointer;
|
|
39
|
-
svg {
|
|
40
|
-
width: 18px;
|
|
41
|
-
height: 18px;
|
|
42
|
-
fill: var(--text-color-primary);
|
|
43
|
-
}
|
|
44
35
|
`,Title=(0,styled_components_1.default)(theme_1.Typography)`
|
|
45
36
|
display: flex;
|
|
46
37
|
align-items: center;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { ReactNode } from 'react';
|
|
3
2
|
interface SecuritySchemeItemProps {
|
|
4
3
|
label: string | ReactNode;
|
|
5
4
|
value: string | ReactNode;
|
|
6
5
|
}
|
|
7
|
-
export declare function SecuritySchemeItem({ label, value }: SecuritySchemeItemProps):
|
|
6
|
+
export declare function SecuritySchemeItem({ label, value }: SecuritySchemeItemProps): import("react/jsx-runtime").JSX.Element | null;
|
|
8
7
|
export {};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SecuritySchemeItem=void 0;const
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SecuritySchemeItem=void 0;const jsx_runtime_1=require("react/jsx-runtime"),styled_components_1=__importDefault(require("styled-components"));function SecuritySchemeItem({label:e,value:t}){return e&&t?(0,jsx_runtime_1.jsxs)(Row,{children:[(0,jsx_runtime_1.jsx)(Label,{children:e}),(0,jsx_runtime_1.jsx)(Value,{children:t})]}):null}exports.SecuritySchemeItem=SecuritySchemeItem;const Row=styled_components_1.default.div`
|
|
2
2
|
display: flex;
|
|
3
|
-
justify-content:
|
|
3
|
+
justify-content: flex-start;
|
|
4
4
|
margin-bottom: var(--spacing-xxs);
|
|
5
5
|
font-size: var(--font-size-sm);
|
|
6
6
|
color: var(--text-color-secondary);
|
|
7
7
|
`,Label=styled_components_1.default.div`
|
|
8
|
-
width: 296px;
|
|
9
8
|
display: flex;
|
|
10
9
|
align-items: center;
|
|
11
10
|
justify-content: flex-start;
|
|
12
11
|
font-size: var(--font-size-base);
|
|
13
12
|
line-height: var(--line-height-base);
|
|
13
|
+
flex: 1;
|
|
14
14
|
`,Value=styled_components_1.default.div`
|
|
15
|
-
|
|
15
|
+
flex: 1;
|
|
16
16
|
font-size: var(--font-size-base);
|
|
17
17
|
line-height: var(--line-height-base);
|
|
18
18
|
`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.PanelDescription=void 0;const jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),styled_components_1=__importDefault(require("styled-components")),constants_1=require("./constants");function PanelDescription({securities:e,showSecuritySchemeType:t}){const n=(0,react_1.useRef)(null),[s,r]=(0,react_1.useState)("");return(0,react_1.useLayoutEffect)((()=>{var e;r((null===(e=n.current)||void 0===e?void 0:e.innerText)||"")}),[n]),(0,jsx_runtime_1.jsx)(StyledDescription,{ref:n,title:s,children:e.map(((n,s)=>{let r="",i="";const o=n.schemes.length;return e.length>1&&o>1&&(r=0===s?"(":"",i=")"),s!==e.length-1&&(i+=" or "),(0,jsx_runtime_1.jsxs)(react_1.Fragment,{children:[r,o?n.schemes.map((e=>(0,jsx_runtime_1.jsxs)(StyledRequirementElement,{children:[t?`${constants_1.AUTH_TYPES[e.type]||e.type}: `:null,e.id]},e.id))).reduce(((e,t)=>[e," and ",t])):null,i]},n.schemes.map((({id:e})=>e)).join(""))}))})}exports.PanelDescription=PanelDescription;const StyledDescription=styled_components_1.default.span`
|
|
2
2
|
font-size: var(--font-size-base);
|
|
3
3
|
`,StyledRequirementElement=styled_components_1.default.span``;
|
|
4
4
|
//# sourceMappingURL=PanelDescription.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RequiredScopesRow=void 0;const jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),styled_1=require("./styled");function RequiredScopesRow({scopes:e}){return e.length?(0,jsx_runtime_1.jsxs)(styled_1.Row,{children:[(0,jsx_runtime_1.jsx)("b",{children:"Required scopes: "}),e.map((e=>(0,jsx_runtime_1.jsxs)(react_1.Fragment,{children:[(0,jsx_runtime_1.jsx)("code",{children:e})," "]},e)))]}):null}exports.RequiredScopesRow=RequiredScopesRow;
|
|
2
2
|
//# sourceMappingURL=RequiredScopesRow.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.RequirementElement=void 0;const
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.RequirementElement=void 0;const jsx_runtime_1=require("react/jsx-runtime"),styled_components_1=__importDefault(require("styled-components")),theme_1=require("@redocly/theme"),constants_1=require("./constants"),common_1=require("../common");function RequirementElement({showSecuritySchemeType:e,security:t}){return(0,jsx_runtime_1.jsx)(SecurityRequirementOrWrap,{children:t.schemes.map((t=>{const n=t.scopes.length>0;return(0,jsx_runtime_1.jsxs)(SecurityRequirementAndWrap,{children:[e?`${constants_1.AUTH_TYPES[t.type]||t.type}: `:null,(0,jsx_runtime_1.jsx)(common_1.Link,{to:t.id,security:!0,"aria-label":`link to ${t.id}`,children:(0,jsx_runtime_1.jsx)("b",{children:t.id})}),n?["(",t.scopes.map((e=>(0,jsx_runtime_1.jsx)(ScopeName,{children:e},e))).reduce(((e,t)=>[e,", ",t])),")"]:null]},t.id)}))})}exports.RequirementElement=RequirementElement;const SecurityRequirementAndWrap=styled_components_1.default.span`
|
|
2
2
|
&:after {
|
|
3
3
|
content: ' and ';
|
|
4
4
|
font-weight: normal;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SecurityDefs=void 0;const
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SecurityDefs=void 0;const jsx_runtime_1=require("react/jsx-runtime"),styled_components_1=__importDefault(require("styled-components")),jotai_1=require("jotai"),theme_1=require("@redocly/theme"),Markdown_1=require("../Markdown"),SecuritySchemes_1=require("../SecuritySchemes"),constants_1=require("./constants"),common_1=require("../common"),utils_1=require("../../utils"),store_1=require("../../jotai/store"),models_1=require("../../models"),styled_1=require("./styled");function SecurityDefs(){const{parser:e}=(0,jotai_1.useAtomValue)(store_1.globalStoreAtom),t=(0,models_1.getSecuritySchemes)({parser:e});return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:null==t?void 0:t.map((e=>(0,jsx_runtime_1.jsxs)(common_1.Section,{id:e.sectionId,sectionId:e.sectionId,children:[(0,jsx_runtime_1.jsxs)(theme_1.H4,{children:[(0,jsx_runtime_1.jsx)(common_1.ShareLink,{to:`#${e.sectionId}`,"aria-label":`link to ${e.id}`}),e.id]}),(0,jsx_runtime_1.jsx)(Description,{source:e.description||""}),(0,jsx_runtime_1.jsx)(theme_1.Markdown,{children:(0,jsx_runtime_1.jsxs)(styled_1.Container,{className:"security-details",children:[(0,jsx_runtime_1.jsxs)(styled_1.Item,{children:[(0,jsx_runtime_1.jsx)(styled_1.Label,{children:"Security Scheme Type"}),(0,jsx_runtime_1.jsx)(styled_1.Title,{children:constants_1.AUTH_TYPES[e.type]||e.type})]}),e.apiKey?(0,jsx_runtime_1.jsxs)(styled_1.Item,{children:[(0,jsx_runtime_1.jsxs)(styled_1.Label,{children:[(0,utils_1.titleize)(e.apiKey.in||"")," parameter name"]}),(0,jsx_runtime_1.jsx)(styled_1.Title,{children:e.apiKey.name})]}):e.http?[(0,jsx_runtime_1.jsxs)(styled_1.Item,{children:[(0,jsx_runtime_1.jsx)(styled_1.Label,{children:"HTTP Authorization Scheme"}),(0,jsx_runtime_1.jsx)(styled_1.Title,{children:e.http.scheme})]},"scheme"),"bearer"===e.http.scheme&&e.http.bearerFormat&&(0,jsx_runtime_1.jsxs)(styled_1.Item,{children:[(0,jsx_runtime_1.jsx)(styled_1.Label,{children:"Bearer format"}),(0,jsx_runtime_1.jsxs)(styled_1.Title,{children:['"',e.http.bearerFormat,'"']})]},"bearer")]:e.openId?(0,jsx_runtime_1.jsxs)(styled_1.Item,{children:[(0,jsx_runtime_1.jsx)(styled_1.Label,{children:"Connect URL"}),(0,jsx_runtime_1.jsx)(styled_1.Title,{children:(0,jsx_runtime_1.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:e.openId.connectUrl,children:e.openId.connectUrl})})]}):e.flows?Object.keys(e.flows).map((t=>(0,jsx_runtime_1.jsx)(SecuritySchemes_1.OAuthFlow,{type:t,flow:e.flows[t]},t))):null]})})]},e.id)))})}exports.SecurityDefs=SecurityDefs;const Description=(0,styled_components_1.default)((e=>(0,jsx_runtime_1.jsx)(Markdown_1.Markdown,Object.assign({},e))))`
|
|
2
2
|
margin-bottom: 1em;
|
|
3
3
|
`;
|
|
4
4
|
//# sourceMappingURL=SecurityDefs.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { SecurityRequirementsProps } from './types';
|
|
3
|
-
export declare const SecurityRequirements:
|
|
3
|
+
export declare const SecurityRequirements: import("react").NamedExoticComponent<SecurityRequirementsProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SecurityRequirements=void 0;const jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),styled_components_1=__importDefault(require("styled-components")),jotai_1=require("jotai"),theme_1=require("@redocly/theme"),Markdown_1=require("../Markdown"),SecuritySchemes_1=require("../SecuritySchemes"),PanelDescription_1=require("./PanelDescription"),RequirementElement_1=require("./RequirementElement"),RequiredScopesRow_1=require("./RequiredScopesRow"),styled_1=require("./styled"),constants_1=require("./constants"),utils_1=require("../../utils"),Panel_1=require("../Panel"),store_1=require("../../jotai/store"),useSecurityRequirements_1=require("./useSecurityRequirements");function getRequiredScopes(e,r){const t=[];let s=r.length;for(;s--;){const i=r[s];let n=i.schemes.length;for(;n--;){const r=i.schemes[n];r.id===e&&t.push(...r.scopes)}}return Array.from(new Set(t))}function SecurityRequirementsComponent({securities:e}){const[r,t]=(0,react_1.useState)(!1),{options:{showSecuritySchemeType:s,hideSecuritySection:i},parser:n}=(0,jotai_1.useAtomValue)(store_1.globalStoreAtom),o=(0,useSecurityRequirements_1.useSecurityRequirements)({parser:n,securities:e});return!e.length||i?null:(0,jsx_runtime_1.jsxs)(Panel_1.ContentPanel,{className:"panel-security-schemas",header:"Security",onToggle:e=>t(e),description:!r&&(0,jsx_runtime_1.jsx)(PanelDescription_1.PanelDescription,{securities:e,showSecuritySchemeType:s}),expanded:r,children:[r&&o&&o.length>1?(0,jsx_runtime_1.jsx)(SecurityRequirementBlock,{children:e.map(((r,t)=>{let i,n,o="";return e.length>1&&r.schemes.length>1&&(n=0===t?"(":"",o=")"),t!==e.length-1&&(o+=" or",i=(0,jsx_runtime_1.jsx)("br",{})),(0,jsx_runtime_1.jsxs)(react_1.Fragment,{children:[n,(0,jsx_runtime_1.jsx)(RequirementElement_1.RequirementElement,{security:r,showSecuritySchemeType:s}),o,i]},r.schemes.map((({id:e})=>e)).join(""))}))}):null,r?o.map((r=>{const t=getRequiredScopes(r.id,e);return(0,jsx_runtime_1.jsxs)(SecurityDetails,{children:[(0,jsx_runtime_1.jsxs)("h5",{children:[constants_1.AUTH_TYPES[r.type]||r.type,": ",r.id]}),(0,jsx_runtime_1.jsx)(Markdown_1.Markdown,{source:r.description||""}),(0,jsx_runtime_1.jsx)(theme_1.Markdown,{children:r.apiKey?(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsxs)(styled_1.Row,{children:[(0,jsx_runtime_1.jsxs)("b",{children:[(0,utils_1.titleize)(r.apiKey.in||"")," parameter name: "]}),(0,jsx_runtime_1.jsx)("code",{children:r.apiKey.name})]}),(0,jsx_runtime_1.jsx)(RequiredScopesRow_1.RequiredScopesRow,{scopes:t})]}):r.http?(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsxs)(styled_1.Row,{children:[(0,jsx_runtime_1.jsx)("b",{children:"HTTP Authorization Scheme: "}),(0,jsx_runtime_1.jsx)("code",{children:r.http.scheme})]}),(0,jsx_runtime_1.jsx)(styled_1.Row,{children:"bearer"===r.http.scheme&&r.http.bearerFormat&&(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)("b",{children:"Bearer format: "}),(0,jsx_runtime_1.jsx)("code",{children:r.http.bearerFormat})]})}),(0,jsx_runtime_1.jsx)(RequiredScopesRow_1.RequiredScopesRow,{scopes:t})]}):r.openId?(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsxs)(styled_1.Row,{children:[(0,jsx_runtime_1.jsx)("b",{children:"Connect URL: "}),(0,jsx_runtime_1.jsx)("code",{children:(0,jsx_runtime_1.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:r.openId.connectUrl,children:r.openId.connectUrl})})]}),(0,jsx_runtime_1.jsx)(RequiredScopesRow_1.RequiredScopesRow,{scopes:t})]}):r.flows?Object.keys(r.flows).map((e=>(0,jsx_runtime_1.jsx)(SecuritySchemes_1.OAuthFlow,{type:e,flow:r.flows[e],children:(0,jsx_runtime_1.jsx)(RequiredScopesRow_1.RequiredScopesRow,{scopes:t})},e))):null},r.id)]},r.id)})):null]})}exports.SecurityRequirements=(0,react_1.memo)(SecurityRequirementsComponent);const SecurityDetails=styled_components_1.default.div`
|
|
2
2
|
border-bottom: 1px solid var(--border-color-primary);
|
|
3
3
|
margin-bottom: 1.5em;
|
|
4
4
|
padding-bottom: 0.7em;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
2
|
import type { OAuthFlowProps } from './types';
|
|
3
|
-
export declare const OAuthFlow:
|
|
3
|
+
export declare const OAuthFlow: import("react").NamedExoticComponent<PropsWithChildren<OAuthFlowProps>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.OAuthFlow=void 0;const jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),Markdown_1=require("../Markdown"),SeeMore_1=require("../SeeMore"),SecurityRequirement_1=require("../SecurityRequirement"),helpers_1=require("./helpers");function OAuthFlowComponent({type:e,flow:r,children:i}){const t=Object.keys((null==r?void 0:r.scopes)||{});return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsxs)(SecurityRequirement_1.Item,{children:[(0,jsx_runtime_1.jsx)(SecurityRequirement_1.Label,{children:"Flow type "}),(0,jsx_runtime_1.jsxs)(SecurityRequirement_1.Title,{children:[(0,jsx_runtime_1.jsx)("code",{children:e})," "]})]}),(0,helpers_1.hasAuthorizationUrl)(e,r)?(0,jsx_runtime_1.jsxs)(SecurityRequirement_1.Item,{children:[(0,jsx_runtime_1.jsx)(SecurityRequirement_1.Label,{children:"Authorization URL "}),(0,jsx_runtime_1.jsx)(SecurityRequirement_1.Title,{children:(0,jsx_runtime_1.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:null==r?void 0:r.authorizationUrl,children:null==r?void 0:r.authorizationUrl})})]}):null,(0,helpers_1.hasTokenUrl)(e,r)?(0,jsx_runtime_1.jsxs)(SecurityRequirement_1.Item,{children:[(0,jsx_runtime_1.jsx)(SecurityRequirement_1.Label,{children:"Token URL "}),(0,jsx_runtime_1.jsx)(SecurityRequirement_1.Title,{children:(0,jsx_runtime_1.jsx)("code",{children:null==r?void 0:r.tokenUrl})})]}):null,(null==r?void 0:r.refreshUrl)&&(0,jsx_runtime_1.jsxs)(SecurityRequirement_1.Item,{children:[(0,jsx_runtime_1.jsx)(SecurityRequirement_1.Label,{children:"Refresh URL "}),(0,jsx_runtime_1.jsx)(SecurityRequirement_1.Title,{children:(0,jsx_runtime_1.jsx)("code",{children:null==r?void 0:r.refreshUrl})})]}),t.length?(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[i,(0,jsx_runtime_1.jsx)(SecurityRequirement_1.Item,{children:(0,jsx_runtime_1.jsx)(SecurityRequirement_1.Label,{children:"Scopes"})}),(0,jsx_runtime_1.jsx)(SeeMore_1.SeeMore,{height:"5em",children:(0,jsx_runtime_1.jsx)(SecurityRequirement_1.Container,{children:t.map((e=>(0,jsx_runtime_1.jsxs)(SecurityRequirement_1.Item,{children:[(0,jsx_runtime_1.jsx)(SecurityRequirement_1.Label,{children:(0,jsx_runtime_1.jsx)("code",{children:e})}),(0,jsx_runtime_1.jsx)(SecurityRequirement_1.Title,{children:(0,jsx_runtime_1.jsx)(Markdown_1.Markdown,{source:(null==r?void 0:r.scopes[e])||"",base:!0})})]},e)))})})]}):null]})}exports.OAuthFlow=(0,react_1.memo)(OAuthFlowComponent);
|
|
2
2
|
//# sourceMappingURL=OAuthFlow.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SeeMore=void 0;const jsx_runtime_1=require("react/jsx-runtime"),styled_components_1=__importDefault(require("styled-components")),react_1=require("react"),TOLERANCE_PX=20;function SeeMore({children:e,height:t}){const r=(0,react_1.createRef)(),[n,o]=(0,react_1.useState)(!1),[i,s]=(0,react_1.useState)(!1);(0,react_1.useLayoutEffect)((()=>{r.current&&r.current.clientHeight+TOLERANCE_PX<r.current.scrollHeight&&s(!0)}),[r]);return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(Container,{ref:r,className:n?"":"container",style:{height:n?"auto":t},children:e}),(0,jsx_runtime_1.jsx)(ButtonContainer,{dimmed:!n,children:i&&(0,jsx_runtime_1.jsx)(ButtonLinkStyled,{onClick:()=>{o(!n)},children:n?"See less":"See more"})})]})}exports.SeeMore=SeeMore;const Container=styled_components_1.default.div`
|
|
2
2
|
overflow-y: hidden;
|
|
3
3
|
`,ButtonContainer=styled_components_1.default.div`
|
|
4
4
|
text-align: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServerList=void 0;const
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServerList=void 0;const jsx_runtime_1=require("react/jsx-runtime"),theme_1=require("@redocly/theme"),styled_components_1=__importDefault(require("styled-components")),utils_1=require("../../utils"),PanelItem_1=require("../PanelItem"),ViewNested_1=require("../ViewNested"),common_1=require("../common"),ServerList=({servers:e,path:r,expandVariables:t,hideHostname:i})=>(0,jsx_runtime_1.jsx)(ItemsList,{children:e.map((e=>{const s=t?(0,utils_1.expandDefaultServerVariables)(e.url,e.variables):e.url,a=(0,utils_1.getBasePath)(s),n=(i?"/"===a?"":a:s)+r,l=Object.keys(e.variables||{}).length,o=`${1===Number(l)?"":l} ${1!==l?"variables":"variable"}`;return(0,jsx_runtime_1.jsxs)("div",{children:[(0,jsx_runtime_1.jsx)(PanelItem_1.PanelItemDescription,{children:e.description}),(0,jsx_runtime_1.jsxs)(TitleWrap,{children:[(0,jsx_runtime_1.jsx)(PanelItem_1.Title,{suppressHydrationWarning:!0,children:n}),(0,jsx_runtime_1.jsx)(theme_1.CopyButton,{data:n},n)]}),e.variables&&(0,jsx_runtime_1.jsx)(ViewNested_1.ViewNested,{expandText:`Show ${o}`,hideText:`Hide ${o}`,propertyLength:Object.keys(e.variables).length,expandable:!0,isArray:!0,hideDivider:!0,children:(0,jsx_runtime_1.jsx)(ServerVariablesContainer,{children:Object.entries(e.variables||{}).map((([e,r])=>(0,jsx_runtime_1.jsxs)(ServerVariableContainer,{children:[(0,jsx_runtime_1.jsx)(ServerVariableName,{children:e}),(0,jsx_runtime_1.jsxs)(Variable,{children:["Default ",(0,jsx_runtime_1.jsx)(StyledTag,{children:r.default})]}),(0,jsx_runtime_1.jsx)(Variable,{children:r.description}),r.enum&&(0,jsx_runtime_1.jsxs)(Variable,{children:["Enum",(0,jsx_runtime_1.jsx)(TagWrapper,{children:r.enum.map((e=>(0,jsx_runtime_1.jsx)(StyledTag,{children:e},e)))})]})]},e)))})})]},s)}))});exports.ServerList=ServerList;const ItemsList=styled_components_1.default.div`
|
|
2
2
|
& > div {
|
|
3
3
|
border-bottom: 1px solid var(--border-color-secondary);
|
|
4
4
|
margin-bottom: var(--spacing-xs);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServerListDropdown=void 0;const jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),theme_1=require("@redocly/theme"),shared_1=require("../shared"),styled_1=require("./styled"),PanelItem_1=require("../PanelItem"),ServerListDropdown=({operation:e,className:r})=>{const t=(0,react_1.useMemo)((()=>e.servers.filter((({description:e,url:r})=>e&&r)).map((({description:e,url:r})=>(0,jsx_runtime_1.jsx)(styled_1.ServerItemWrap,{children:(0,jsx_runtime_1.jsx)(PanelItem_1.PanelItem,{header:e,title:r,actions:[(0,jsx_runtime_1.jsx)(theme_1.CopyButton,{data:r},r)]})},r)))),[e.servers]);return(0,jsx_runtime_1.jsx)(theme_1.Dropdown,{items:t,withArrow:!0,className:r,children:(0,jsx_runtime_1.jsxs)(styled_1.PathWrapper,{children:[(0,jsx_runtime_1.jsx)(shared_1.HttpVerb,{color:e.httpVerb,children:e.httpVerb}),(0,jsx_runtime_1.jsx)(styled_1.Path,{children:e.path})]})})};exports.ServerListDropdown=ServerListDropdown;
|
|
2
2
|
//# sourceMappingURL=ServerListDropdown.js.map
|
|
@@ -4,13 +4,10 @@
|
|
|
4
4
|
overflow-x: hidden;
|
|
5
5
|
`,exports.Path=styled_components_1.default.span`
|
|
6
6
|
margin: 0 var(--spacing-unit) 0 calc(var(--spacing-unit) * 0.5);
|
|
7
|
-
color: var(--text-color-secondary);
|
|
8
7
|
overflow-x: hidden;
|
|
9
8
|
text-overflow: ellipsis;
|
|
10
9
|
white-space: nowrap;
|
|
11
|
-
overflow-wrap: normal;
|
|
12
10
|
display: inline-block;
|
|
13
|
-
word-break: break-all;
|
|
14
11
|
line-height: var(--line-height-base);
|
|
15
12
|
font-size: var(--font-size-base);
|
|
16
13
|
`,exports.ServerItemWrap=styled_components_1.default.div`
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const Actions: () => React.JSX.Element;
|
|
1
|
+
export declare const Actions: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Actions=void 0;const
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Actions=void 0;const jsx_runtime_1=require("react/jsx-runtime"),jotai_1=require("jotai"),theme_1=require("@redocly/theme"),styled_components_1=__importDefault(require("styled-components")),app_1=require("../../jotai/app"),store_1=require("../../jotai/store"),Actions=()=>{const{showChangeLayoutButton:e}=(0,jotai_1.useAtomValue)(store_1.globalOptionsAtom),[t,o]=(0,jotai_1.useAtom)(app_1.layoutAtom),[a,i]=(0,jotai_1.useAtom)(app_1.collapsedSidebarAtom);return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsx)(Wrapper,{children:(0,jsx_runtime_1.jsx)(theme_1.SidebarActions,{showChangeLayoutButton:e,layout:t,onChangeViewClick:()=>o(t===theme_1.LayoutVariant.STACKED?theme_1.LayoutVariant.THREE_PANEL:theme_1.LayoutVariant.STACKED),collapsedSidebar:a,onChangeCollapseSidebarClick:()=>i(!a),isOpenapiDocs:!0})})})};exports.Actions=Actions;const Wrapper=styled_components_1.default.div`
|
|
2
2
|
position: sticky;
|
|
3
3
|
top: calc(100vh);
|
|
4
4
|
padding: var(--spacing-sm) var(--spacing-md);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
2
|
import type { ExtendedMenuItem } from './types';
|
|
3
3
|
interface MenuItemProps {
|
|
4
4
|
active?: boolean;
|
|
5
5
|
item: ExtendedMenuItem;
|
|
6
6
|
onClick?: () => void;
|
|
7
7
|
}
|
|
8
|
-
export declare const MenuItem:
|
|
8
|
+
export declare const MenuItem: import("react").NamedExoticComponent<PropsWithChildren<MenuItemProps>>;
|
|
9
9
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MenuItem=void 0;const jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),theme_1=require("@redocly/theme"),styled_1=require("./styled"),MenuItems_1=require("./MenuItems"),MenuItemLink_1=require("./MenuItemLink"),MenuOperationItemContent_1=require("./MenuOperationItemContent"),utils_1=require("../../utils"),hooks_1=require("./hooks");function MenuItemComponent({item:e,children:t,onClick:n}){var i;const[r,s]=(0,hooks_1.useMenuItemExpanded)(e),u=(0,utils_1.encodeBackSlashes)(e.href),m=(0,react_1.useCallback)((()=>{u&&e.hasActiveSubItem||s(!r)}),[u,e.hasActiveSubItem,s,r]),o=(null===(i=e.items)||void 0===i?void 0:i.length)>0;return(0,jsx_runtime_1.jsxs)(styled_1.MenuItemLi,{depth:e.depth,"data-item-id":e.id,onClick:n,children:["operation"===e.type?(0,jsx_runtime_1.jsx)(MenuOperationItemContent_1.MenuOperationItemContent,{item:e,to:u,active:e.active,children:t}):(0,jsx_runtime_1.jsxs)(MenuItemLink_1.MenuItemLink,{to:u,depth:e.depth,type:e.type,hasChildren:o,active:e.active,onClick:m,children:[e.depth>0&&o&&(r?(0,jsx_runtime_1.jsx)(theme_1.ChevronDownIcon,{}):(0,jsx_runtime_1.jsx)(theme_1.ChevronRightIcon,{}))||null,e.isSchema?(0,jsx_runtime_1.jsx)(theme_1.Tag,{color:"schema",children:"schema"}):null,(0,jsx_runtime_1.jsxs)(styled_1.MenuItemTitle,{title:e.name,children:[e.name,t]})]}),o&&(0,jsx_runtime_1.jsx)(MenuItems_1.MenuItems,{expanded:r,items:e.items})]})}exports.MenuItem=(0,react_1.memo)(MenuItemComponent);
|
|
2
2
|
//# sourceMappingURL=MenuItem.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
2
|
import type { ExternalLink } from '../../services';
|
|
3
|
-
export declare const MenuExternalLink:
|
|
3
|
+
export declare const MenuExternalLink: import("react").NamedExoticComponent<PropsWithChildren<{
|
|
4
4
|
link: ExternalLink;
|
|
5
5
|
}>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MenuExternalLink=void 0;const jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),styled_1=require("./styled");function isSeparator(e){return null!=e.separator||!!e.separatorLine&&!e.link}const MenuItemExternalLink=styled_1.StyledMenuItemLink.withComponent("a");function MenuExternalLinkComponent({link:e}){return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:isSeparator(e)?e.separator?(0,jsx_runtime_1.jsx)(styled_1.MenuItemLabel,{depth:0,active:!1,children:e.separator}):null:(0,jsx_runtime_1.jsx)(styled_1.MenuItemLi,{depth:1,children:(0,jsx_runtime_1.jsx)(MenuItemExternalLink,{href:e.link,target:e.target,depth:1,children:(0,jsx_runtime_1.jsx)(styled_1.MenuItemTitle,{title:e.label,children:e.label})})})})}exports.MenuExternalLink=(0,react_1.memo)(MenuExternalLinkComponent);
|
|
2
2
|
//# sourceMappingURL=MenuItemEternalLink.js.map
|