@redocly/openapi-docs 3.0.0-alpha.10
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/LICENSE.md +1 -0
- package/README.md +3 -0
- package/bin/cli/assets/redoc-fast-scroll.js +22 -0
- package/bin/cli/assets/template.hbs +24 -0
- package/bin/cli/commands/redocly-docs-cli.min.js +5949 -0
- package/bin/cli/commands/redocly-docs-cli.min.js.LICENSE.txt +325 -0
- package/bin.js +4 -0
- package/dist/console.redocly-reference-docs.min.js +507 -0
- package/dist/oauth2-redirect.html +7 -0
- package/dist/oauth2-redirect.js +9 -0
- package/dist/redocly-reference-docs.min.js +6005 -0
- package/lib/cli/assets/redoc-fast-scroll.d.ts +0 -0
- package/lib/cli/assets/redoc-fast-scroll.js +2 -0
- package/lib/cli/cli.d.ts +2 -0
- package/lib/cli/cli.js +3 -0
- package/lib/cli/commands/bundle.d.ts +1 -0
- package/lib/cli/commands/bundle.js +2 -0
- package/lib/cli/commands/index.d.ts +1 -0
- package/lib/cli/commands/index.js +2 -0
- package/lib/cli/constants.d.ts +3 -0
- package/lib/cli/constants.js +2 -0
- package/lib/cli/utils.d.ts +16 -0
- package/lib/cli/utils.js +2 -0
- package/lib/components/Endpoint/Endpoint.d.ts +3 -0
- package/lib/components/Endpoint/Endpoint.js +2 -0
- package/lib/components/Endpoint/ServerList.d.ts +3 -0
- package/lib/components/Endpoint/ServerList.js +2 -0
- package/lib/components/Endpoint/Summary.d.ts +3 -0
- package/lib/components/Endpoint/Summary.js +2 -0
- package/lib/components/Endpoint/index.d.ts +2 -0
- package/lib/components/Endpoint/index.js +2 -0
- package/lib/components/Endpoint/styled.d.ts +8 -0
- package/lib/components/Endpoint/styled.js +48 -0
- package/lib/components/Endpoint/types.d.ts +21 -0
- package/lib/components/Endpoint/types.js +2 -0
- package/lib/components/NextSectionButton.d.ts +13 -0
- package/lib/components/NextSectionButton.js +8 -0
- package/lib/components/OperationParameters/OperationParameters.d.ts +2 -0
- package/lib/components/OperationParameters/OperationParameters.js +2 -0
- package/lib/components/OperationParameters/index.d.ts +1 -0
- package/lib/components/OperationParameters/index.js +2 -0
- package/lib/components/OperationParameters/types.d.ts +14 -0
- package/lib/components/OperationParameters/types.js +2 -0
- package/lib/components/OperationParameters/utils.d.ts +7 -0
- package/lib/components/OperationParameters/utils.js +2 -0
- package/lib/components/Overlay.d.ts +10 -0
- package/lib/components/Overlay.js +43 -0
- package/lib/components/Panel/Accordion.d.ts +5 -0
- package/lib/components/Panel/Accordion.js +2 -0
- package/lib/components/Panel/CodeHeader.d.ts +6 -0
- package/lib/components/Panel/CodeHeader.js +12 -0
- package/lib/components/Panel/CodePanel.d.ts +4 -0
- package/lib/components/Panel/CodePanel.js +6 -0
- package/lib/components/Panel/ContentPanel.d.ts +4 -0
- package/lib/components/Panel/ContentPanel.js +21 -0
- package/lib/components/Panel/Description.d.ts +1 -0
- package/lib/components/Panel/Description.js +8 -0
- package/lib/components/Panel/ResponsePanel.d.ts +8 -0
- package/lib/components/Panel/ResponsePanel.js +26 -0
- package/lib/components/Panel/Trigger.d.ts +1 -0
- package/lib/components/Panel/Trigger.js +8 -0
- package/lib/components/Panel/index.d.ts +7 -0
- package/lib/components/Panel/index.js +2 -0
- package/lib/components/ProProviders.d.ts +9 -0
- package/lib/components/ProProviders.js +2 -0
- package/lib/components/RedoclyReferenceDocs.d.ts +40 -0
- package/lib/components/RedoclyReferenceDocs.js +54 -0
- package/lib/components/RedoclyReferenceDocsMultiStandalone.d.ts +7 -0
- package/lib/components/RedoclyReferenceDocsMultiStandalone.js +2 -0
- package/lib/components/Samples/ExampleSwitch.d.ts +13 -0
- package/lib/components/Samples/ExampleSwitch.js +2 -0
- package/lib/components/Samples/LoadingWrapper.d.ts +1 -0
- package/lib/components/Samples/LoadingWrapper.js +8 -0
- package/lib/components/Samples/SamplesTabs.d.ts +13 -0
- package/lib/components/Samples/SamplesTabs.js +2 -0
- package/lib/components/Samples/index.d.ts +4 -0
- package/lib/components/Samples/index.js +2 -0
- package/lib/components/Samples/use-example-key.d.ts +7 -0
- package/lib/components/Samples/use-example-key.js +2 -0
- package/lib/components/Search/MenuItemProSearch.d.ts +23 -0
- package/lib/components/Search/MenuItemProSearch.js +10 -0
- package/lib/components/Search/ProSearchBox.d.ts +52 -0
- package/lib/components/Search/ProSearchBox.js +2 -0
- package/lib/components/Search/SearchField.d.ts +9 -0
- package/lib/components/Search/SearchField.js +2 -0
- package/lib/components/Search/index.d.ts +2 -0
- package/lib/components/Search/index.js +2 -0
- package/lib/components/Search/styled.d.ts +21 -0
- package/lib/components/Search/styled.js +135 -0
- package/lib/components/StoreProvider.d.ts +23 -0
- package/lib/components/StoreProvider.js +2 -0
- package/lib/components/Tabs/CollapsingTabs/CollapsingTab.d.ts +1 -0
- package/lib/components/Tabs/CollapsingTabs/CollapsingTab.js +11 -0
- package/lib/components/Tabs/CollapsingTabs/CollapsingTabList.d.ts +1 -0
- package/lib/components/Tabs/CollapsingTabs/CollapsingTabList.js +4 -0
- package/lib/components/Tabs/CollapsingTabs/CollapsingTabs.d.ts +2 -0
- package/lib/components/Tabs/CollapsingTabs/CollapsingTabs.js +2 -0
- package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +19 -0
- package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +2 -0
- package/lib/components/Tabs/CollapsingTabs/index.d.ts +4 -0
- package/lib/components/Tabs/CollapsingTabs/index.js +2 -0
- package/lib/components/Tabs/Tab.d.ts +2 -0
- package/lib/components/Tabs/Tab.js +32 -0
- package/lib/components/Tabs/TabList.d.ts +2 -0
- package/lib/components/Tabs/TabList.js +7 -0
- package/lib/components/Tabs/TabPanel.d.ts +2 -0
- package/lib/components/Tabs/TabPanel.js +11 -0
- package/lib/components/Tabs/index.d.ts +5 -0
- package/lib/components/Tabs/index.js +2 -0
- package/lib/components/VersionSwitcher.d.ts +7 -0
- package/lib/components/VersionSwitcher.js +7 -0
- package/lib/components/common/Checkbox.d.ts +10 -0
- package/lib/components/common/Checkbox.js +31 -0
- package/lib/components/common/CheckboxList.d.ts +25 -0
- package/lib/components/common/CheckboxList.js +7 -0
- package/lib/components/common/ClearButton/ClearButton.d.ts +3 -0
- package/lib/components/common/ClearButton/ClearButton.js +2 -0
- package/lib/components/common/ClearButton/index.d.ts +2 -0
- package/lib/components/common/ClearButton/index.js +2 -0
- package/lib/components/common/ClearButton/styled.d.ts +2 -0
- package/lib/components/common/ClearButton/styled.js +16 -0
- package/lib/components/common/ClearButton/types.d.ts +6 -0
- package/lib/components/common/ClearButton/types.js +2 -0
- package/lib/components/common/Dropdown/Dropdown.d.ts +3 -0
- package/lib/components/common/Dropdown/Dropdown.js +16 -0
- package/lib/components/common/Dropdown/index.d.ts +2 -0
- package/lib/components/common/Dropdown/index.js +2 -0
- package/lib/components/common/Dropdown/styled.d.ts +28 -0
- package/lib/components/common/Dropdown/styled.js +145 -0
- package/lib/components/common/Dropdown/types.d.ts +26 -0
- package/lib/components/common/Dropdown/types.js +2 -0
- package/lib/components/common/FileUpload/FileUpload.d.ts +10 -0
- package/lib/components/common/FileUpload/FileUpload.js +2 -0
- package/lib/components/common/FileUpload/helper.d.ts +12 -0
- package/lib/components/common/FileUpload/helper.js +2 -0
- package/lib/components/common/FileUpload/index.d.ts +1 -0
- package/lib/components/common/FileUpload/index.js +2 -0
- package/lib/components/common/LinearProgress.d.ts +1 -0
- package/lib/components/common/LinearProgress.js +104 -0
- package/lib/components/common/TextField.d.ts +28 -0
- package/lib/components/common/TextField.js +50 -0
- package/lib/components/common/form.d.ts +17 -0
- package/lib/components/common/form.js +65 -0
- package/lib/components/console/ActionPanel.d.ts +12 -0
- package/lib/components/console/ActionPanel.js +4 -0
- package/lib/components/console/AuthPanel/AuthPanel.d.ts +13 -0
- package/lib/components/console/AuthPanel/AuthPanel.js +2 -0
- package/lib/components/console/AuthPanel/index.d.ts +2 -0
- package/lib/components/console/AuthPanel/index.js +2 -0
- package/lib/components/console/AuthPanel/types.d.ts +14 -0
- package/lib/components/console/AuthPanel/types.js +2 -0
- package/lib/components/console/CodemirrorInput.d.ts +39 -0
- package/lib/components/console/CodemirrorInput.js +50 -0
- package/lib/components/console/Console.d.ts +47 -0
- package/lib/components/console/Console.js +2 -0
- package/lib/components/console/ConsoleLazy.d.ts +2 -0
- package/lib/components/console/ConsoleLazy.js +2 -0
- package/lib/components/console/ConsoleTabs/ConsoleTabs.d.ts +6 -0
- package/lib/components/console/ConsoleTabs/ConsoleTabs.js +2 -0
- package/lib/components/console/ConsoleTabs/index.d.ts +2 -0
- package/lib/components/console/ConsoleTabs/index.js +2 -0
- package/lib/components/console/ConsoleTabs/styled.d.ts +5 -0
- package/lib/components/console/ConsoleTabs/styled.js +48 -0
- package/lib/components/console/OAuth2Flow.d.ts +57 -0
- package/lib/components/console/OAuth2Flow.js +14 -0
- package/lib/components/console/OAuth2TokenInput.d.ts +35 -0
- package/lib/components/console/OAuth2TokenInput.js +2 -0
- package/lib/components/console/OpenIDConnect.d.ts +17 -0
- package/lib/components/console/OpenIDConnect.js +2 -0
- package/lib/components/console/ParameterArray.d.ts +9 -0
- package/lib/components/console/ParameterArray.js +28 -0
- package/lib/components/console/ParameterDropdown.d.ts +6 -0
- package/lib/components/console/ParameterDropdown.js +2 -0
- package/lib/components/console/RequestBody/RequestBody.d.ts +3 -0
- package/lib/components/console/RequestBody/RequestBody.js +2 -0
- package/lib/components/console/RequestBody/index.d.ts +2 -0
- package/lib/components/console/RequestBody/index.js +2 -0
- package/lib/components/console/RequestBody/types.d.ts +10 -0
- package/lib/components/console/RequestBody/types.js +2 -0
- package/lib/components/console/RequestBodyForm.d.ts +9 -0
- package/lib/components/console/RequestBodyForm.js +10 -0
- package/lib/components/console/RequestMimeLabel.d.ts +1 -0
- package/lib/components/console/RequestMimeLabel.js +5 -0
- package/lib/components/console/ResponseBody.d.ts +4 -0
- package/lib/components/console/ResponseBody.js +2 -0
- package/lib/components/console/ResponseHeadersList.d.ts +3 -0
- package/lib/components/console/ResponseHeadersList.js +10 -0
- package/lib/components/console/ResponsePanel.d.ts +21 -0
- package/lib/components/console/ResponsePanel.js +18 -0
- package/lib/components/console/Scope.d.ts +6 -0
- package/lib/components/console/Scope.js +2 -0
- package/lib/components/console/ServerVariable.d.ts +10 -0
- package/lib/components/console/ServerVariable.js +5 -0
- package/lib/components/console/ServersDropdown/ServersDropdown.d.ts +2 -0
- package/lib/components/console/ServersDropdown/ServersDropdown.js +4 -0
- package/lib/components/console/ServersDropdown/index.d.ts +1 -0
- package/lib/components/console/ServersDropdown/index.js +2 -0
- package/lib/components/console/ServersDropdown/types.d.ts +5 -0
- package/lib/components/console/ServersDropdown/types.js +2 -0
- package/lib/components/console/TryItPanel.d.ts +7 -0
- package/lib/components/console/TryItPanel.js +14 -0
- package/lib/components/console/codemirror-helpers.d.ts +10 -0
- package/lib/components/console/codemirror-helpers.js +2 -0
- package/lib/components/console/styled.d.ts +20 -0
- package/lib/components/console/styled.js +99 -0
- package/lib/components/console/utils.d.ts +27 -0
- package/lib/components/console/utils.js +2 -0
- package/lib/components/index.d.ts +14 -0
- package/lib/components/index.js +2 -0
- package/lib/components/pluggable/PullRight.d.ts +2 -0
- package/lib/components/pluggable/PullRight.js +61 -0
- package/lib/components/pluggable/RedocExample.d.ts +15 -0
- package/lib/components/pluggable/RedocExample.js +2 -0
- package/lib/components/pluggable/RedocRequestBody.d.ts +11 -0
- package/lib/components/pluggable/RedocRequestBody.js +2 -0
- package/lib/components/pluggable/RedocResponse.d.ts +10 -0
- package/lib/components/pluggable/RedocResponse.js +2 -0
- package/lib/components/pluggable/RedocSchema.d.ts +12 -0
- package/lib/components/pluggable/RedocSchema.js +2 -0
- package/lib/components/pluggable/index.d.ts +5 -0
- package/lib/components/pluggable/index.js +2 -0
- package/lib/components/pluggable/styled.components.d.ts +6 -0
- package/lib/components/pluggable/styled.components.js +12 -0
- package/lib/components/shared/HttpVerb.d.ts +6 -0
- package/lib/components/shared/HttpVerb.js +5 -0
- package/lib/components/shared/MimeLabel.d.ts +1 -0
- package/lib/components/shared/MimeLabel.js +13 -0
- package/lib/components/shared/NoSampleLabel.d.ts +2 -0
- package/lib/components/shared/NoSampleLabel.js +13 -0
- package/lib/components/shared/index.d.ts +3 -0
- package/lib/components/shared/index.js +2 -0
- package/lib/components/styled.elements.d.ts +19 -0
- package/lib/components/styled.elements.js +166 -0
- package/lib/components/types.d.ts +15 -0
- package/lib/components/types.js +2 -0
- package/lib/constants.d.ts +2 -0
- package/lib/constants.js +2 -0
- package/lib/empty.d.ts +1 -0
- package/lib/empty.js +2 -0
- package/lib/events/codeSampleCopy.d.ts +2 -0
- package/lib/events/codeSampleCopy.js +2 -0
- package/lib/events/creator.d.ts +2 -0
- package/lib/events/creator.js +2 -0
- package/lib/events/index.d.ts +5 -0
- package/lib/events/index.js +2 -0
- package/lib/events/languageSwitch.d.ts +2 -0
- package/lib/events/languageSwitch.js +2 -0
- package/lib/events/panelToggle.d.ts +2 -0
- package/lib/events/panelToggle.js +2 -0
- package/lib/events/types.d.ts +63 -0
- package/lib/events/types.js +2 -0
- package/lib/hooks/index.d.ts +3 -0
- package/lib/hooks/index.js +2 -0
- package/lib/hooks/useDimensions.d.ts +1 -0
- package/lib/hooks/useDimensions.js +2 -0
- package/lib/hooks/useMount.d.ts +1 -0
- package/lib/hooks/useMount.js +2 -0
- package/lib/hooks/useUnmount.d.ts +1 -0
- package/lib/hooks/useUnmount.js +2 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.js +2 -0
- package/lib/models/code-sample-options.d.ts +11 -0
- package/lib/models/code-sample-options.js +2 -0
- package/lib/models/file-upload.d.ts +11 -0
- package/lib/models/file-upload.js +2 -0
- package/lib/models/index.d.ts +2 -0
- package/lib/models/index.js +2 -0
- package/lib/oauth2-redirect-page/handler/helpers.d.ts +6 -0
- package/lib/oauth2-redirect-page/handler/helpers.js +2 -0
- package/lib/oauth2-redirect-page/handler/oauth2-redirect-handler.d.ts +1 -0
- package/lib/oauth2-redirect-page/handler/oauth2-redirect-handler.js +2 -0
- package/lib/oauth2-redirect-page/index.d.ts +1 -0
- package/lib/oauth2-redirect-page/index.js +2 -0
- package/lib/redoc-lib/index.d.ts +1 -0
- package/lib/redoc-lib/index.js +2 -0
- package/lib/redoc-lib/src/common-elements/Download.d.ts +7 -0
- package/lib/redoc-lib/src/common-elements/Download.js +4 -0
- package/lib/redoc-lib/src/common-elements/LinkToField.d.ts +9 -0
- package/lib/redoc-lib/src/common-elements/LinkToField.js +27 -0
- package/lib/redoc-lib/src/common-elements/fields-layout.d.ts +15 -0
- package/lib/redoc-lib/src/common-elements/fields-layout.js +228 -0
- package/lib/redoc-lib/src/common-elements/fields.d.ts +21 -0
- package/lib/redoc-lib/src/common-elements/fields.js +103 -0
- package/lib/redoc-lib/src/common-elements/headers.d.ts +8 -0
- package/lib/redoc-lib/src/common-elements/headers.js +36 -0
- package/lib/redoc-lib/src/common-elements/icons.d.ts +41 -0
- package/lib/redoc-lib/src/common-elements/icons.js +55 -0
- package/lib/redoc-lib/src/common-elements/index.d.ts +9 -0
- package/lib/redoc-lib/src/common-elements/index.js +2 -0
- package/lib/redoc-lib/src/common-elements/linkify.d.ts +13 -0
- package/lib/redoc-lib/src/common-elements/linkify.js +55 -0
- package/lib/redoc-lib/src/common-elements/mixins.d.ts +1 -0
- package/lib/redoc-lib/src/common-elements/mixins.js +5 -0
- package/lib/redoc-lib/src/common-elements/panels.d.ts +13 -0
- package/lib/redoc-lib/src/common-elements/panels.js +95 -0
- package/lib/redoc-lib/src/common-elements/perfect-scrollbar.d.ts +18 -0
- package/lib/redoc-lib/src/common-elements/perfect-scrollbar.js +4 -0
- package/lib/redoc-lib/src/common-elements/schema.d.ts +11 -0
- package/lib/redoc-lib/src/common-elements/schema.js +68 -0
- package/lib/redoc-lib/src/common-elements/shelfs.d.ts +3 -0
- package/lib/redoc-lib/src/common-elements/shelfs.js +23 -0
- package/lib/redoc-lib/src/components/ApiInfo/ApiInfo.d.ts +5 -0
- package/lib/redoc-lib/src/components/ApiInfo/ApiInfo.js +2 -0
- package/lib/redoc-lib/src/components/ApiInfo/index.d.ts +1 -0
- package/lib/redoc-lib/src/components/ApiInfo/index.js +2 -0
- package/lib/redoc-lib/src/components/ApiInfo/styled.elements.d.ts +8 -0
- package/lib/redoc-lib/src/components/ApiInfo/styled.elements.js +24 -0
- package/lib/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.d.ts +11 -0
- package/lib/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.js +4 -0
- package/lib/redoc-lib/src/components/CallbackSamples/CallbackSamples.d.ts +12 -0
- package/lib/redoc-lib/src/components/CallbackSamples/CallbackSamples.js +2 -0
- package/lib/redoc-lib/src/components/Callbacks/CallbackDetails.d.ts +8 -0
- package/lib/redoc-lib/src/components/Callbacks/CallbackDetails.js +4 -0
- package/lib/redoc-lib/src/components/Callbacks/CallbackOperation.d.ts +5 -0
- package/lib/redoc-lib/src/components/Callbacks/CallbackOperation.js +2 -0
- package/lib/redoc-lib/src/components/Callbacks/CallbackSummary.d.ts +6 -0
- package/lib/redoc-lib/src/components/Callbacks/CallbackSummary.js +2 -0
- package/lib/redoc-lib/src/components/Callbacks/CallbackTitle.d.ts +5 -0
- package/lib/redoc-lib/src/components/Callbacks/CallbackTitle.js +7 -0
- package/lib/redoc-lib/src/components/Callbacks/CallbacksList.d.ts +8 -0
- package/lib/redoc-lib/src/components/Callbacks/CallbacksList.js +2 -0
- package/lib/redoc-lib/src/components/Callbacks/index.d.ts +3 -0
- package/lib/redoc-lib/src/components/Callbacks/index.js +2 -0
- package/lib/redoc-lib/src/components/ContentItem/ContentItem.d.ts +9 -0
- package/lib/redoc-lib/src/components/ContentItem/ContentItem.js +2 -0
- package/lib/redoc-lib/src/components/ContentItem/index.d.ts +1 -0
- package/lib/redoc-lib/src/components/ContentItem/index.js +2 -0
- package/lib/redoc-lib/src/components/ContentItems/ContentItems.d.ts +8 -0
- package/lib/redoc-lib/src/components/ContentItems/ContentItems.js +2 -0
- package/lib/redoc-lib/src/components/ContentItems/Skeleton.d.ts +1 -0
- package/lib/redoc-lib/src/components/ContentItems/Skeleton.js +31 -0
- package/lib/redoc-lib/src/components/ContentItems/index.d.ts +1 -0
- package/lib/redoc-lib/src/components/ContentItems/index.js +2 -0
- package/lib/redoc-lib/src/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +10 -0
- package/lib/redoc-lib/src/components/DiscriminatorDropdown/DiscriminatorDropdown.js +2 -0
- package/lib/redoc-lib/src/components/DiscriminatorDropdown/index.d.ts +1 -0
- package/lib/redoc-lib/src/components/DiscriminatorDropdown/index.js +2 -0
- package/lib/redoc-lib/src/components/DownloadButton/DownloadButton.d.ts +4 -0
- package/lib/redoc-lib/src/components/DownloadButton/DownloadButton.js +21 -0
- package/lib/redoc-lib/src/components/DownloadButton/index.d.ts +1 -0
- package/lib/redoc-lib/src/components/DownloadButton/index.js +2 -0
- package/lib/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.d.ts +7 -0
- package/lib/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.js +8 -0
- package/lib/redoc-lib/src/components/ErrorBoundary.d.ts +9 -0
- package/lib/redoc-lib/src/components/ErrorBoundary.js +5 -0
- package/lib/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.d.ts +8 -0
- package/lib/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.js +5 -0
- package/lib/redoc-lib/src/components/Fields/EnumValues.d.ts +17 -0
- package/lib/redoc-lib/src/components/Fields/EnumValues.js +13 -0
- package/lib/redoc-lib/src/components/Fields/Extensions.d.ts +9 -0
- package/lib/redoc-lib/src/components/Fields/Extensions.js +6 -0
- package/lib/redoc-lib/src/components/Fields/Field.d.ts +20 -0
- package/lib/redoc-lib/src/components/Fields/Field.js +2 -0
- package/lib/redoc-lib/src/components/Fields/FieldContstraints.d.ts +5 -0
- package/lib/redoc-lib/src/components/Fields/FieldContstraints.js +2 -0
- package/lib/redoc-lib/src/components/Fields/FieldDetail.d.ts +10 -0
- package/lib/redoc-lib/src/components/Fields/FieldDetail.js +2 -0
- package/lib/redoc-lib/src/components/Fields/FieldDetails.d.ts +12 -0
- package/lib/redoc-lib/src/components/Fields/FieldDetails.js +15 -0
- package/lib/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +22 -0
- package/lib/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +2 -0
- package/lib/redoc-lib/src/components/Loading/Loading.d.ts +5 -0
- package/lib/redoc-lib/src/components/Loading/Loading.js +9 -0
- package/lib/redoc-lib/src/components/Loading/Spinner.d.ts +6 -0
- package/lib/redoc-lib/src/components/Loading/Spinner.js +19 -0
- package/lib/redoc-lib/src/components/Markdown/AdvancedMarkdown.d.ts +2 -0
- package/lib/redoc-lib/src/components/Markdown/AdvancedMarkdown.js +2 -0
- package/lib/redoc-lib/src/components/Markdown/Markdown.d.ts +2 -0
- package/lib/redoc-lib/src/components/Markdown/Markdown.js +2 -0
- package/lib/redoc-lib/src/components/Markdown/SanitizedMarkdownHTML.d.ts +6 -0
- package/lib/redoc-lib/src/components/Markdown/SanitizedMarkdownHTML.js +2 -0
- package/lib/redoc-lib/src/components/Markdown/index.d.ts +5 -0
- package/lib/redoc-lib/src/components/Markdown/index.js +2 -0
- package/lib/redoc-lib/src/components/Markdown/styled.d.ts +16 -0
- package/lib/redoc-lib/src/components/Markdown/styled.js +257 -0
- package/lib/redoc-lib/src/components/Markdown/types.d.ts +16 -0
- package/lib/redoc-lib/src/components/Markdown/types.js +2 -0
- package/lib/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +13 -0
- package/lib/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.js +2 -0
- package/lib/redoc-lib/src/components/Operation/Operation.d.ts +7 -0
- package/lib/redoc-lib/src/components/Operation/Operation.js +8 -0
- package/lib/redoc-lib/src/components/Operation/index.d.ts +2 -0
- package/lib/redoc-lib/src/components/Operation/index.js +2 -0
- package/lib/redoc-lib/src/components/OptionsProvider.d.ts +6 -0
- package/lib/redoc-lib/src/components/OptionsProvider.js +2 -0
- package/lib/redoc-lib/src/components/Parameters/Parameters.d.ts +10 -0
- package/lib/redoc-lib/src/components/Parameters/Parameters.js +4 -0
- package/lib/redoc-lib/src/components/Parameters/ParametersGroup.d.ts +10 -0
- package/lib/redoc-lib/src/components/Parameters/ParametersGroup.js +16 -0
- package/lib/redoc-lib/src/components/PayloadSamples/Example.d.ts +3 -0
- package/lib/redoc-lib/src/components/PayloadSamples/Example.js +2 -0
- package/lib/redoc-lib/src/components/PayloadSamples/ExampleValue.d.ts +2 -0
- package/lib/redoc-lib/src/components/PayloadSamples/ExampleValue.js +2 -0
- package/lib/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.d.ts +2 -0
- package/lib/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.js +2 -0
- package/lib/redoc-lib/src/components/PayloadSamples/PayloadSamples.d.ts +2 -0
- package/lib/redoc-lib/src/components/PayloadSamples/PayloadSamples.js +2 -0
- package/lib/redoc-lib/src/components/PayloadSamples/index.d.ts +5 -0
- package/lib/redoc-lib/src/components/PayloadSamples/index.js +2 -0
- package/lib/redoc-lib/src/components/PayloadSamples/styled.d.ts +3 -0
- package/lib/redoc-lib/src/components/PayloadSamples/styled.js +17 -0
- package/lib/redoc-lib/src/components/PayloadSamples/types.d.ts +25 -0
- package/lib/redoc-lib/src/components/PayloadSamples/types.js +2 -0
- package/lib/redoc-lib/src/components/PayloadSamples/useExternalExample.d.ts +2 -0
- package/lib/redoc-lib/src/components/PayloadSamples/useExternalExample.js +2 -0
- package/lib/redoc-lib/src/components/RenderHook.d.ts +6 -0
- package/lib/redoc-lib/src/components/RenderHook.js +2 -0
- package/lib/redoc-lib/src/components/RequestSamples/CodeSample.d.ts +16 -0
- package/lib/redoc-lib/src/components/RequestSamples/CodeSample.js +2 -0
- package/lib/redoc-lib/src/components/RequestSamples/RequestSamples.d.ts +12 -0
- package/lib/redoc-lib/src/components/RequestSamples/RequestSamples.js +2 -0
- package/lib/redoc-lib/src/components/RequestSamples/useCodeSamples.d.ts +9 -0
- package/lib/redoc-lib/src/components/RequestSamples/useCodeSamples.js +2 -0
- package/lib/redoc-lib/src/components/ResponseSamples/ResponseSamples.d.ts +5 -0
- package/lib/redoc-lib/src/components/ResponseSamples/ResponseSamples.js +2 -0
- package/lib/redoc-lib/src/components/Responses/Response.d.ts +2 -0
- package/lib/redoc-lib/src/components/Responses/Response.js +2 -0
- package/lib/redoc-lib/src/components/Responses/ResponseDetails.d.ts +5 -0
- package/lib/redoc-lib/src/components/Responses/ResponseDetails.js +4 -0
- package/lib/redoc-lib/src/components/Responses/ResponseHeaders.d.ts +3 -0
- package/lib/redoc-lib/src/components/Responses/ResponseHeaders.js +2 -0
- package/lib/redoc-lib/src/components/Responses/ResponseSummary.d.ts +2 -0
- package/lib/redoc-lib/src/components/Responses/ResponseSummary.js +2 -0
- package/lib/redoc-lib/src/components/Responses/ResponsesList.d.ts +3 -0
- package/lib/redoc-lib/src/components/Responses/ResponsesList.js +2 -0
- package/lib/redoc-lib/src/components/Responses/index.d.ts +1 -0
- package/lib/redoc-lib/src/components/Responses/index.js +2 -0
- package/lib/redoc-lib/src/components/Responses/styled.d.ts +3 -0
- package/lib/redoc-lib/src/components/Responses/styled.js +14 -0
- package/lib/redoc-lib/src/components/Responses/types.d.ts +12 -0
- package/lib/redoc-lib/src/components/Responses/types.js +2 -0
- package/lib/redoc-lib/src/components/Schema/ArraySchema.d.ts +3 -0
- package/lib/redoc-lib/src/components/Schema/ArraySchema.js +4 -0
- package/lib/redoc-lib/src/components/Schema/ObjectSchema.d.ts +2 -0
- package/lib/redoc-lib/src/components/Schema/ObjectSchema.js +2 -0
- package/lib/redoc-lib/src/components/Schema/OneOfSchema.d.ts +2 -0
- package/lib/redoc-lib/src/components/Schema/OneOfSchema.js +2 -0
- package/lib/redoc-lib/src/components/Schema/RecursiveSchema.d.ts +2 -0
- package/lib/redoc-lib/src/components/Schema/RecursiveSchema.js +2 -0
- package/lib/redoc-lib/src/components/Schema/Schema.d.ts +2 -0
- package/lib/redoc-lib/src/components/Schema/Schema.js +2 -0
- package/lib/redoc-lib/src/components/Schema/index.d.ts +4 -0
- package/lib/redoc-lib/src/components/Schema/index.js +2 -0
- package/lib/redoc-lib/src/components/Schema/types.d.ts +22 -0
- package/lib/redoc-lib/src/components/Schema/types.js +2 -0
- package/lib/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.d.ts +21 -0
- package/lib/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.js +7 -0
- package/lib/redoc-lib/src/components/SearchBox/SearchBox.d.ts +30 -0
- package/lib/redoc-lib/src/components/SearchBox/SearchBox.js +2 -0
- package/lib/redoc-lib/src/components/SearchBox/styled.d.ts +6 -0
- package/lib/redoc-lib/src/components/SearchBox/styled.js +53 -0
- package/lib/redoc-lib/src/components/SectionItem/SectionItem.d.ts +6 -0
- package/lib/redoc-lib/src/components/SectionItem/SectionItem.js +2 -0
- package/lib/redoc-lib/src/components/SectionItem/index.d.ts +1 -0
- package/lib/redoc-lib/src/components/SectionItem/index.js +2 -0
- package/lib/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.d.ts +3 -0
- package/lib/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.js +2 -0
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityDefs.d.ts +8 -0
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityDefs.js +4 -0
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.d.ts +12 -0
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.js +26 -0
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.d.ts +7 -0
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.js +24 -0
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.d.ts +7 -0
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.js +2 -0
- package/lib/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.d.ts +3 -0
- package/lib/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.js +2 -0
- package/lib/redoc-lib/src/components/SecuritySchemes/helpers.d.ts +34 -0
- package/lib/redoc-lib/src/components/SecuritySchemes/helpers.js +2 -0
- package/lib/redoc-lib/src/components/SecuritySchemes/index.d.ts +2 -0
- package/lib/redoc-lib/src/components/SecuritySchemes/index.js +2 -0
- package/lib/redoc-lib/src/components/SecuritySchemes/types.d.ts +6 -0
- package/lib/redoc-lib/src/components/SecuritySchemes/types.js +2 -0
- package/lib/redoc-lib/src/components/SeeMore/SeeMore.d.ts +7 -0
- package/lib/redoc-lib/src/components/SeeMore/SeeMore.js +10 -0
- package/lib/redoc-lib/src/components/SideMenu/MenuItem.d.ts +17 -0
- package/lib/redoc-lib/src/components/SideMenu/MenuItem.js +19 -0
- package/lib/redoc-lib/src/components/SideMenu/MenuItems.d.ts +17 -0
- package/lib/redoc-lib/src/components/SideMenu/MenuItems.js +2 -0
- package/lib/redoc-lib/src/components/SideMenu/SideMenu.d.ts +15 -0
- package/lib/redoc-lib/src/components/SideMenu/SideMenu.js +2 -0
- package/lib/redoc-lib/src/components/SideMenu/index.d.ts +4 -0
- package/lib/redoc-lib/src/components/SideMenu/index.js +2 -0
- package/lib/redoc-lib/src/components/SideMenu/styled.elements.d.ts +25 -0
- package/lib/redoc-lib/src/components/SideMenu/styled.elements.js +86 -0
- package/lib/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +2 -0
- package/lib/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.js +2 -0
- package/lib/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.d.ts +25 -0
- package/lib/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.js +40 -0
- package/lib/redoc-lib/src/components/StoreBuilder.d.ts +6 -0
- package/lib/redoc-lib/src/components/StoreBuilder.js +2 -0
- package/lib/redoc-lib/src/components/index.d.ts +31 -0
- package/lib/redoc-lib/src/components/index.js +2 -0
- package/lib/redoc-lib/src/empty.d.ts +1 -0
- package/lib/redoc-lib/src/empty.js +2 -0
- package/lib/redoc-lib/src/index.d.ts +7 -0
- package/lib/redoc-lib/src/index.js +2 -0
- package/lib/redoc-lib/src/services/HistoryService.d.ts +15 -0
- package/lib/redoc-lib/src/services/HistoryService.js +2 -0
- package/lib/redoc-lib/src/services/Labels.d.ts +3 -0
- package/lib/redoc-lib/src/services/Labels.js +2 -0
- package/lib/redoc-lib/src/services/MarkdownRenderer.d.ts +23 -0
- package/lib/redoc-lib/src/services/MarkdownRenderer.js +2 -0
- package/lib/redoc-lib/src/services/MarkerService.d.ts +11 -0
- package/lib/redoc-lib/src/services/MarkerService.js +2 -0
- package/lib/redoc-lib/src/services/MenuBuilder.d.ts +62 -0
- package/lib/redoc-lib/src/services/MenuBuilder.js +2 -0
- package/lib/redoc-lib/src/services/OpenAPIParser.d.ts +51 -0
- package/lib/redoc-lib/src/services/OpenAPIParser.js +2 -0
- package/lib/redoc-lib/src/services/RedocNormalizedOptions.d.ts +84 -0
- package/lib/redoc-lib/src/services/RedocNormalizedOptions.js +2 -0
- package/lib/redoc-lib/src/services/ScrollService.d.ts +18 -0
- package/lib/redoc-lib/src/services/ScrollService.js +2 -0
- package/lib/redoc-lib/src/services/SearchStore.d.ts +13 -0
- package/lib/redoc-lib/src/services/SearchStore.js +2 -0
- package/lib/redoc-lib/src/services/SearchWorker.worker.d.ts +17 -0
- package/lib/redoc-lib/src/services/SearchWorker.worker.js +2 -0
- package/lib/redoc-lib/src/services/SpecStore.d.ts +18 -0
- package/lib/redoc-lib/src/services/SpecStore.js +2 -0
- package/lib/redoc-lib/src/services/constants.d.ts +6 -0
- package/lib/redoc-lib/src/services/constants.js +2 -0
- package/lib/redoc-lib/src/services/index.d.ts +12 -0
- package/lib/redoc-lib/src/services/index.js +2 -0
- package/lib/redoc-lib/src/services/models/ApiInfo.d.ts +17 -0
- package/lib/redoc-lib/src/services/models/ApiInfo.js +2 -0
- package/lib/redoc-lib/src/services/models/Callback.d.ts +11 -0
- package/lib/redoc-lib/src/services/models/Callback.js +2 -0
- package/lib/redoc-lib/src/services/models/Example.d.ts +17 -0
- package/lib/redoc-lib/src/services/models/Example.js +2 -0
- package/lib/redoc-lib/src/services/models/Field.d.ts +35 -0
- package/lib/redoc-lib/src/services/models/Field.js +2 -0
- package/lib/redoc-lib/src/services/models/Group.model.d.ts +25 -0
- package/lib/redoc-lib/src/services/models/Group.model.js +2 -0
- package/lib/redoc-lib/src/services/models/MediaContent.d.ts +31 -0
- package/lib/redoc-lib/src/services/models/MediaContent.js +2 -0
- package/lib/redoc-lib/src/services/models/MediaType.d.ts +27 -0
- package/lib/redoc-lib/src/services/models/MediaType.js +2 -0
- package/lib/redoc-lib/src/services/models/Operation.d.ts +93 -0
- package/lib/redoc-lib/src/services/models/Operation.js +2 -0
- package/lib/redoc-lib/src/services/models/RequestBody.d.ts +19 -0
- package/lib/redoc-lib/src/services/models/RequestBody.js +2 -0
- package/lib/redoc-lib/src/services/models/Response.d.ts +28 -0
- package/lib/redoc-lib/src/services/models/Response.js +2 -0
- package/lib/redoc-lib/src/services/models/Schema.d.ts +78 -0
- package/lib/redoc-lib/src/services/models/Schema.js +2 -0
- package/lib/redoc-lib/src/services/models/SecurityRequirement.d.ts +12 -0
- package/lib/redoc-lib/src/services/models/SecurityRequirement.js +2 -0
- package/lib/redoc-lib/src/services/models/SecuritySchemes.d.ts +25 -0
- package/lib/redoc-lib/src/services/models/SecuritySchemes.js +2 -0
- package/lib/redoc-lib/src/services/models/Webhook.d.ts +9 -0
- package/lib/redoc-lib/src/services/models/Webhook.js +2 -0
- package/lib/redoc-lib/src/services/models/index.d.ts +14 -0
- package/lib/redoc-lib/src/services/models/index.js +2 -0
- package/lib/redoc-lib/src/services/types.d.ts +226 -0
- package/lib/redoc-lib/src/services/types.js +2 -0
- package/lib/redoc-lib/src/theme.d.ts +10 -0
- package/lib/redoc-lib/src/theme.js +2 -0
- package/lib/redoc-lib/src/types/index.d.ts +3 -0
- package/lib/redoc-lib/src/types/index.js +2 -0
- package/lib/redoc-lib/src/types/open-api.d.ts +338 -0
- package/lib/redoc-lib/src/types/open-api.js +2 -0
- package/lib/redoc-lib/src/types/server.d.ts +7 -0
- package/lib/redoc-lib/src/types/server.js +2 -0
- package/lib/redoc-lib/src/utils/JsonPointer.d.ts +51 -0
- package/lib/redoc-lib/src/utils/JsonPointer.js +2 -0
- package/lib/redoc-lib/src/utils/argValuesHelpers.d.ts +4 -0
- package/lib/redoc-lib/src/utils/argValuesHelpers.js +2 -0
- package/lib/redoc-lib/src/utils/css-variables.d.ts +2 -0
- package/lib/redoc-lib/src/utils/css-variables.js +2 -0
- package/lib/redoc-lib/src/utils/debug.d.ts +2 -0
- package/lib/redoc-lib/src/utils/debug.js +2 -0
- package/lib/redoc-lib/src/utils/decorators.d.ts +1 -0
- package/lib/redoc-lib/src/utils/decorators.js +2 -0
- package/lib/redoc-lib/src/utils/dom.d.ts +8 -0
- package/lib/redoc-lib/src/utils/dom.js +2 -0
- package/lib/redoc-lib/src/utils/helpers.d.ts +46 -0
- package/lib/redoc-lib/src/utils/helpers.js +2 -0
- package/lib/redoc-lib/src/utils/highlight.d.ts +31 -0
- package/lib/redoc-lib/src/utils/highlight.js +2 -0
- package/lib/redoc-lib/src/utils/index.d.ts +14 -0
- package/lib/redoc-lib/src/utils/index.js +2 -0
- package/lib/redoc-lib/src/utils/loadAndBundleSpec.d.ts +5 -0
- package/lib/redoc-lib/src/utils/loadAndBundleSpec.js +2 -0
- package/lib/redoc-lib/src/utils/media-css.d.ts +13 -0
- package/lib/redoc-lib/src/utils/media-css.js +2 -0
- package/lib/redoc-lib/src/utils/memoize.d.ts +1 -0
- package/lib/redoc-lib/src/utils/memoize.js +2 -0
- package/lib/redoc-lib/src/utils/object.d.ts +2 -0
- package/lib/redoc-lib/src/utils/object.js +2 -0
- package/lib/redoc-lib/src/utils/openapi.d.ts +41 -0
- package/lib/redoc-lib/src/utils/openapi.js +2 -0
- package/lib/redoc-lib/src/utils/sort.d.ts +6 -0
- package/lib/redoc-lib/src/utils/sort.js +2 -0
- package/lib/redoc-lib/src/utils/string.d.ts +1 -0
- package/lib/redoc-lib/src/utils/string.js +2 -0
- package/lib/redoc-lib/src/utils/test-utils.d.ts +1 -0
- package/lib/redoc-lib/src/utils/test-utils.js +2 -0
- package/lib/redoc-lib/src/utils/theme-helpers.d.ts +3 -0
- package/lib/redoc-lib/src/utils/theme-helpers.js +4 -0
- package/lib/services/OAuth2.d.ts +43 -0
- package/lib/services/OAuth2.js +2 -0
- package/lib/services/OpenIDConnect.d.ts +38 -0
- package/lib/services/OpenIDConnect.js +2 -0
- package/lib/services/ProMenu.d.ts +105 -0
- package/lib/services/ProMenu.js +2 -0
- package/lib/services/ProStore.d.ts +153 -0
- package/lib/services/ProStore.js +2 -0
- package/lib/services/SearchStore.d.ts +37 -0
- package/lib/services/SearchStore.js +2 -0
- package/lib/services/VersionedSpecStore.d.ts +40 -0
- package/lib/services/VersionedSpecStore.js +2 -0
- package/lib/services/check.d.ts +13 -0
- package/lib/services/check.js +2 -0
- package/lib/services/code-samples/generator.d.ts +25 -0
- package/lib/services/code-samples/generator.js +2 -0
- package/lib/services/code-samples/httpsnippet/helpers/code-builder.d.ts +82 -0
- package/lib/services/code-samples/httpsnippet/helpers/code-builder.js +2 -0
- package/lib/services/code-samples/httpsnippet/helpers/code-helpers.d.ts +28 -0
- package/lib/services/code-samples/httpsnippet/helpers/code-helpers.js +2 -0
- package/lib/services/code-samples/httpsnippet/helpers/constants.d.ts +23 -0
- package/lib/services/code-samples/httpsnippet/helpers/constants.js +2 -0
- package/lib/services/code-samples/httpsnippet/helpers/lodash-int.d.ts +5 -0
- package/lib/services/code-samples/httpsnippet/helpers/lodash-int.js +2 -0
- package/lib/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.d.ts +28 -0
- package/lib/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.js +2 -0
- package/lib/services/code-samples/httpsnippet/helpers/reducer.d.ts +1 -0
- package/lib/services/code-samples/httpsnippet/helpers/reducer.js +2 -0
- package/lib/services/code-samples/httpsnippet/helpers/shell.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/helpers/shell.js +2 -0
- package/lib/services/code-samples/httpsnippet/helpers/string-utility.d.ts +7 -0
- package/lib/services/code-samples/httpsnippet/helpers/string-utility.js +2 -0
- package/lib/services/code-samples/httpsnippet/index.d.ts +47 -0
- package/lib/services/code-samples/httpsnippet/index.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/__mocks__/mock.d.ts +3519 -0
- package/lib/services/code-samples/httpsnippet/targets/__mocks__/mock.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/csharp/index.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/csharp/index.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/go/index.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/go/index.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/go/native.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/go/native.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/index.d.ts +106 -0
- package/lib/services/code-samples/httpsnippet/targets/index.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/java/httpclient.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/java/httpclient.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/java/index.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/java/index.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/java8/apachehttp.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/java8/apachehttp.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/java8/index.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/java8/index.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/javascript/fetch.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/javascript/fetch.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/javascript/index.d.ts +12 -0
- package/lib/services/code-samples/httpsnippet/targets/javascript/index.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/node/fetch.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/node/fetch.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/node/index.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/node/index.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/php/curl.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/php/curl.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/php/index.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/php/index.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/php/types.d.ts +11 -0
- package/lib/services/code-samples/httpsnippet/targets/php/types.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/php/utils.d.ts +2 -0
- package/lib/services/code-samples/httpsnippet/targets/php/utils.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/python/index.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/python/index.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/python/requests.d.ts +4 -0
- package/lib/services/code-samples/httpsnippet/targets/python/requests.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/r/httr.d.ts +4 -0
- package/lib/services/code-samples/httpsnippet/targets/r/httr.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/r/index.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/r/index.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/r/utils.d.ts +5 -0
- package/lib/services/code-samples/httpsnippet/targets/r/utils.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/ruby/index.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/ruby/index.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/ruby/native.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/ruby/native.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/shell/curl.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/shell/curl.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/shell/index.d.ts +12 -0
- package/lib/services/code-samples/httpsnippet/targets/shell/index.js +2 -0
- package/lib/services/code-samples/index.d.ts +2 -0
- package/lib/services/code-samples/index.js +2 -0
- package/lib/services/code-samples/types.d.ts +63 -0
- package/lib/services/code-samples/types.js +2 -0
- package/lib/services/history/FakeHistoryService.d.ts +20 -0
- package/lib/services/history/FakeHistoryService.js +2 -0
- package/lib/services/history/ProHashHistoryService.d.ts +25 -0
- package/lib/services/history/ProHashHistoryService.js +2 -0
- package/lib/services/history/PushStateHistoryService.d.ts +24 -0
- package/lib/services/history/PushStateHistoryService.js +2 -0
- package/lib/services/history/helpers.d.ts +4 -0
- package/lib/services/history/helpers.js +2 -0
- package/lib/services/history/index.d.ts +3 -0
- package/lib/services/history/index.js +2 -0
- package/lib/services/index.d.ts +5 -0
- package/lib/services/index.js +2 -0
- package/lib/services/store-types.d.ts +4 -0
- package/lib/services/store-types.js +2 -0
- package/lib/services/types.d.ts +21 -0
- package/lib/services/types.js +2 -0
- package/lib/services/utils.d.ts +25 -0
- package/lib/services/utils.js +2 -0
- package/lib/setupTests.d.ts +4 -0
- package/lib/setupTests.js +2 -0
- package/lib/standalone.d.ts +27 -0
- package/lib/standalone.js +2 -0
- package/lib/testProviders.d.ts +4 -0
- package/lib/testProviders.js +2 -0
- package/lib/types.d.ts +25 -0
- package/lib/types.js +2 -0
- package/lib/utils.d.ts +30 -0
- package/lib/utils.js +2 -0
- package/lib-esm/cli/assets/redoc-fast-scroll.d.ts +0 -0
- package/lib-esm/cli/assets/redoc-fast-scroll.js +2 -0
- package/lib-esm/cli/cli.d.ts +2 -0
- package/lib-esm/cli/cli.js +3 -0
- package/lib-esm/cli/commands/bundle.d.ts +1 -0
- package/lib-esm/cli/commands/bundle.js +2 -0
- package/lib-esm/cli/commands/index.d.ts +1 -0
- package/lib-esm/cli/commands/index.js +2 -0
- package/lib-esm/cli/constants.d.ts +3 -0
- package/lib-esm/cli/constants.js +2 -0
- package/lib-esm/cli/utils.d.ts +16 -0
- package/lib-esm/cli/utils.js +2 -0
- package/lib-esm/components/Endpoint/Endpoint.d.ts +3 -0
- package/lib-esm/components/Endpoint/Endpoint.js +2 -0
- package/lib-esm/components/Endpoint/ServerList.d.ts +3 -0
- package/lib-esm/components/Endpoint/ServerList.js +2 -0
- package/lib-esm/components/Endpoint/Summary.d.ts +3 -0
- package/lib-esm/components/Endpoint/Summary.js +2 -0
- package/lib-esm/components/Endpoint/index.d.ts +2 -0
- package/lib-esm/components/Endpoint/index.js +2 -0
- package/lib-esm/components/Endpoint/styled.d.ts +8 -0
- package/lib-esm/components/Endpoint/styled.js +48 -0
- package/lib-esm/components/Endpoint/types.d.ts +21 -0
- package/lib-esm/components/Endpoint/types.js +2 -0
- package/lib-esm/components/NextSectionButton.d.ts +13 -0
- package/lib-esm/components/NextSectionButton.js +8 -0
- package/lib-esm/components/OperationParameters/OperationParameters.d.ts +2 -0
- package/lib-esm/components/OperationParameters/OperationParameters.js +2 -0
- package/lib-esm/components/OperationParameters/index.d.ts +1 -0
- package/lib-esm/components/OperationParameters/index.js +2 -0
- package/lib-esm/components/OperationParameters/types.d.ts +14 -0
- package/lib-esm/components/OperationParameters/types.js +2 -0
- package/lib-esm/components/OperationParameters/utils.d.ts +7 -0
- package/lib-esm/components/OperationParameters/utils.js +2 -0
- package/lib-esm/components/Overlay.d.ts +10 -0
- package/lib-esm/components/Overlay.js +43 -0
- package/lib-esm/components/Panel/Accordion.d.ts +5 -0
- package/lib-esm/components/Panel/Accordion.js +2 -0
- package/lib-esm/components/Panel/CodeHeader.d.ts +6 -0
- package/lib-esm/components/Panel/CodeHeader.js +12 -0
- package/lib-esm/components/Panel/CodePanel.d.ts +4 -0
- package/lib-esm/components/Panel/CodePanel.js +6 -0
- package/lib-esm/components/Panel/ContentPanel.d.ts +4 -0
- package/lib-esm/components/Panel/ContentPanel.js +21 -0
- package/lib-esm/components/Panel/Description.d.ts +1 -0
- package/lib-esm/components/Panel/Description.js +8 -0
- package/lib-esm/components/Panel/ResponsePanel.d.ts +8 -0
- package/lib-esm/components/Panel/ResponsePanel.js +26 -0
- package/lib-esm/components/Panel/Trigger.d.ts +1 -0
- package/lib-esm/components/Panel/Trigger.js +8 -0
- package/lib-esm/components/Panel/index.d.ts +7 -0
- package/lib-esm/components/Panel/index.js +2 -0
- package/lib-esm/components/ProProviders.d.ts +9 -0
- package/lib-esm/components/ProProviders.js +2 -0
- package/lib-esm/components/RedoclyReferenceDocs.d.ts +40 -0
- package/lib-esm/components/RedoclyReferenceDocs.js +54 -0
- package/lib-esm/components/RedoclyReferenceDocsMultiStandalone.d.ts +7 -0
- package/lib-esm/components/RedoclyReferenceDocsMultiStandalone.js +2 -0
- package/lib-esm/components/Samples/ExampleSwitch.d.ts +13 -0
- package/lib-esm/components/Samples/ExampleSwitch.js +2 -0
- package/lib-esm/components/Samples/LoadingWrapper.d.ts +1 -0
- package/lib-esm/components/Samples/LoadingWrapper.js +8 -0
- package/lib-esm/components/Samples/SamplesTabs.d.ts +13 -0
- package/lib-esm/components/Samples/SamplesTabs.js +2 -0
- package/lib-esm/components/Samples/index.d.ts +4 -0
- package/lib-esm/components/Samples/index.js +2 -0
- package/lib-esm/components/Samples/use-example-key.d.ts +7 -0
- package/lib-esm/components/Samples/use-example-key.js +2 -0
- package/lib-esm/components/Search/MenuItemProSearch.d.ts +23 -0
- package/lib-esm/components/Search/MenuItemProSearch.js +10 -0
- package/lib-esm/components/Search/ProSearchBox.d.ts +52 -0
- package/lib-esm/components/Search/ProSearchBox.js +2 -0
- package/lib-esm/components/Search/SearchField.d.ts +9 -0
- package/lib-esm/components/Search/SearchField.js +2 -0
- package/lib-esm/components/Search/index.d.ts +2 -0
- package/lib-esm/components/Search/index.js +2 -0
- package/lib-esm/components/Search/styled.d.ts +21 -0
- package/lib-esm/components/Search/styled.js +135 -0
- package/lib-esm/components/StoreProvider.d.ts +23 -0
- package/lib-esm/components/StoreProvider.js +2 -0
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTab.d.ts +1 -0
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTab.js +11 -0
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabList.d.ts +1 -0
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabList.js +4 -0
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabs.d.ts +2 -0
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabs.js +2 -0
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +19 -0
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +2 -0
- package/lib-esm/components/Tabs/CollapsingTabs/index.d.ts +4 -0
- package/lib-esm/components/Tabs/CollapsingTabs/index.js +2 -0
- package/lib-esm/components/Tabs/Tab.d.ts +2 -0
- package/lib-esm/components/Tabs/Tab.js +32 -0
- package/lib-esm/components/Tabs/TabList.d.ts +2 -0
- package/lib-esm/components/Tabs/TabList.js +7 -0
- package/lib-esm/components/Tabs/TabPanel.d.ts +2 -0
- package/lib-esm/components/Tabs/TabPanel.js +11 -0
- package/lib-esm/components/Tabs/index.d.ts +5 -0
- package/lib-esm/components/Tabs/index.js +2 -0
- package/lib-esm/components/VersionSwitcher.d.ts +7 -0
- package/lib-esm/components/VersionSwitcher.js +7 -0
- package/lib-esm/components/common/Checkbox.d.ts +10 -0
- package/lib-esm/components/common/Checkbox.js +31 -0
- package/lib-esm/components/common/CheckboxList.d.ts +25 -0
- package/lib-esm/components/common/CheckboxList.js +7 -0
- package/lib-esm/components/common/ClearButton/ClearButton.d.ts +3 -0
- package/lib-esm/components/common/ClearButton/ClearButton.js +2 -0
- package/lib-esm/components/common/ClearButton/index.d.ts +2 -0
- package/lib-esm/components/common/ClearButton/index.js +2 -0
- package/lib-esm/components/common/ClearButton/styled.d.ts +2 -0
- package/lib-esm/components/common/ClearButton/styled.js +16 -0
- package/lib-esm/components/common/ClearButton/types.d.ts +6 -0
- package/lib-esm/components/common/ClearButton/types.js +2 -0
- package/lib-esm/components/common/Dropdown/Dropdown.d.ts +3 -0
- package/lib-esm/components/common/Dropdown/Dropdown.js +16 -0
- package/lib-esm/components/common/Dropdown/index.d.ts +2 -0
- package/lib-esm/components/common/Dropdown/index.js +2 -0
- package/lib-esm/components/common/Dropdown/styled.d.ts +28 -0
- package/lib-esm/components/common/Dropdown/styled.js +145 -0
- package/lib-esm/components/common/Dropdown/types.d.ts +26 -0
- package/lib-esm/components/common/Dropdown/types.js +2 -0
- package/lib-esm/components/common/FileUpload/FileUpload.d.ts +10 -0
- package/lib-esm/components/common/FileUpload/FileUpload.js +2 -0
- package/lib-esm/components/common/FileUpload/helper.d.ts +12 -0
- package/lib-esm/components/common/FileUpload/helper.js +2 -0
- package/lib-esm/components/common/FileUpload/index.d.ts +1 -0
- package/lib-esm/components/common/FileUpload/index.js +2 -0
- package/lib-esm/components/common/LinearProgress.d.ts +1 -0
- package/lib-esm/components/common/LinearProgress.js +104 -0
- package/lib-esm/components/common/TextField.d.ts +28 -0
- package/lib-esm/components/common/TextField.js +79 -0
- package/lib-esm/components/common/form.d.ts +17 -0
- package/lib-esm/components/common/form.js +65 -0
- package/lib-esm/components/console/ActionPanel.d.ts +12 -0
- package/lib-esm/components/console/ActionPanel.js +4 -0
- package/lib-esm/components/console/AuthPanel/AuthPanel.d.ts +13 -0
- package/lib-esm/components/console/AuthPanel/AuthPanel.js +2 -0
- package/lib-esm/components/console/AuthPanel/index.d.ts +2 -0
- package/lib-esm/components/console/AuthPanel/index.js +2 -0
- package/lib-esm/components/console/AuthPanel/types.d.ts +14 -0
- package/lib-esm/components/console/AuthPanel/types.js +2 -0
- package/lib-esm/components/console/CodemirrorInput.d.ts +39 -0
- package/lib-esm/components/console/CodemirrorInput.js +50 -0
- package/lib-esm/components/console/Console.d.ts +47 -0
- package/lib-esm/components/console/Console.js +2 -0
- package/lib-esm/components/console/ConsoleLazy.d.ts +2 -0
- package/lib-esm/components/console/ConsoleLazy.js +2 -0
- package/lib-esm/components/console/ConsoleTabs/ConsoleTabs.d.ts +6 -0
- package/lib-esm/components/console/ConsoleTabs/ConsoleTabs.js +2 -0
- package/lib-esm/components/console/ConsoleTabs/index.d.ts +2 -0
- package/lib-esm/components/console/ConsoleTabs/index.js +2 -0
- package/lib-esm/components/console/ConsoleTabs/styled.d.ts +5 -0
- package/lib-esm/components/console/ConsoleTabs/styled.js +48 -0
- package/lib-esm/components/console/OAuth2Flow.d.ts +57 -0
- package/lib-esm/components/console/OAuth2Flow.js +14 -0
- package/lib-esm/components/console/OAuth2TokenInput.d.ts +35 -0
- package/lib-esm/components/console/OAuth2TokenInput.js +2 -0
- package/lib-esm/components/console/OpenIDConnect.d.ts +17 -0
- package/lib-esm/components/console/OpenIDConnect.js +2 -0
- package/lib-esm/components/console/ParameterArray.d.ts +9 -0
- package/lib-esm/components/console/ParameterArray.js +28 -0
- package/lib-esm/components/console/ParameterDropdown.d.ts +6 -0
- package/lib-esm/components/console/ParameterDropdown.js +2 -0
- package/lib-esm/components/console/RequestBody/RequestBody.d.ts +3 -0
- package/lib-esm/components/console/RequestBody/RequestBody.js +2 -0
- package/lib-esm/components/console/RequestBody/index.d.ts +2 -0
- package/lib-esm/components/console/RequestBody/index.js +2 -0
- package/lib-esm/components/console/RequestBody/types.d.ts +10 -0
- package/lib-esm/components/console/RequestBody/types.js +2 -0
- package/lib-esm/components/console/RequestBodyForm.d.ts +9 -0
- package/lib-esm/components/console/RequestBodyForm.js +10 -0
- package/lib-esm/components/console/RequestMimeLabel.d.ts +1 -0
- package/lib-esm/components/console/RequestMimeLabel.js +5 -0
- package/lib-esm/components/console/ResponseBody.d.ts +4 -0
- package/lib-esm/components/console/ResponseBody.js +2 -0
- package/lib-esm/components/console/ResponseHeadersList.d.ts +3 -0
- package/lib-esm/components/console/ResponseHeadersList.js +10 -0
- package/lib-esm/components/console/ResponsePanel.d.ts +21 -0
- package/lib-esm/components/console/ResponsePanel.js +18 -0
- package/lib-esm/components/console/Scope.d.ts +6 -0
- package/lib-esm/components/console/Scope.js +2 -0
- package/lib-esm/components/console/ServerVariable.d.ts +10 -0
- package/lib-esm/components/console/ServerVariable.js +5 -0
- package/lib-esm/components/console/ServersDropdown/ServersDropdown.d.ts +2 -0
- package/lib-esm/components/console/ServersDropdown/ServersDropdown.js +4 -0
- package/lib-esm/components/console/ServersDropdown/index.d.ts +1 -0
- package/lib-esm/components/console/ServersDropdown/index.js +2 -0
- package/lib-esm/components/console/ServersDropdown/types.d.ts +5 -0
- package/lib-esm/components/console/ServersDropdown/types.js +2 -0
- package/lib-esm/components/console/TryItPanel.d.ts +7 -0
- package/lib-esm/components/console/TryItPanel.js +14 -0
- package/lib-esm/components/console/codemirror-helpers.d.ts +10 -0
- package/lib-esm/components/console/codemirror-helpers.js +2 -0
- package/lib-esm/components/console/styled.d.ts +20 -0
- package/lib-esm/components/console/styled.js +99 -0
- package/lib-esm/components/console/utils.d.ts +27 -0
- package/lib-esm/components/console/utils.js +2 -0
- package/lib-esm/components/index.d.ts +14 -0
- package/lib-esm/components/index.js +2 -0
- package/lib-esm/components/pluggable/PullRight.d.ts +2 -0
- package/lib-esm/components/pluggable/PullRight.js +61 -0
- package/lib-esm/components/pluggable/RedocExample.d.ts +15 -0
- package/lib-esm/components/pluggable/RedocExample.js +2 -0
- package/lib-esm/components/pluggable/RedocRequestBody.d.ts +11 -0
- package/lib-esm/components/pluggable/RedocRequestBody.js +2 -0
- package/lib-esm/components/pluggable/RedocResponse.d.ts +10 -0
- package/lib-esm/components/pluggable/RedocResponse.js +2 -0
- package/lib-esm/components/pluggable/RedocSchema.d.ts +12 -0
- package/lib-esm/components/pluggable/RedocSchema.js +2 -0
- package/lib-esm/components/pluggable/index.d.ts +5 -0
- package/lib-esm/components/pluggable/index.js +2 -0
- package/lib-esm/components/pluggable/styled.components.d.ts +6 -0
- package/lib-esm/components/pluggable/styled.components.js +12 -0
- package/lib-esm/components/shared/HttpVerb.d.ts +6 -0
- package/lib-esm/components/shared/HttpVerb.js +5 -0
- package/lib-esm/components/shared/MimeLabel.d.ts +1 -0
- package/lib-esm/components/shared/MimeLabel.js +13 -0
- package/lib-esm/components/shared/NoSampleLabel.d.ts +2 -0
- package/lib-esm/components/shared/NoSampleLabel.js +13 -0
- package/lib-esm/components/shared/index.d.ts +3 -0
- package/lib-esm/components/shared/index.js +2 -0
- package/lib-esm/components/styled.elements.d.ts +19 -0
- package/lib-esm/components/styled.elements.js +166 -0
- package/lib-esm/components/types.d.ts +15 -0
- package/lib-esm/components/types.js +2 -0
- package/lib-esm/constants.d.ts +2 -0
- package/lib-esm/constants.js +2 -0
- package/lib-esm/empty.d.ts +1 -0
- package/lib-esm/empty.js +2 -0
- package/lib-esm/events/codeSampleCopy.d.ts +2 -0
- package/lib-esm/events/codeSampleCopy.js +2 -0
- package/lib-esm/events/creator.d.ts +2 -0
- package/lib-esm/events/creator.js +2 -0
- package/lib-esm/events/index.d.ts +5 -0
- package/lib-esm/events/index.js +2 -0
- package/lib-esm/events/languageSwitch.d.ts +2 -0
- package/lib-esm/events/languageSwitch.js +2 -0
- package/lib-esm/events/panelToggle.d.ts +2 -0
- package/lib-esm/events/panelToggle.js +2 -0
- package/lib-esm/events/types.d.ts +63 -0
- package/lib-esm/events/types.js +2 -0
- package/lib-esm/hooks/index.d.ts +3 -0
- package/lib-esm/hooks/index.js +2 -0
- package/lib-esm/hooks/useDimensions.d.ts +1 -0
- package/lib-esm/hooks/useDimensions.js +2 -0
- package/lib-esm/hooks/useMount.d.ts +1 -0
- package/lib-esm/hooks/useMount.js +2 -0
- package/lib-esm/hooks/useUnmount.d.ts +1 -0
- package/lib-esm/hooks/useUnmount.js +2 -0
- package/lib-esm/index.d.ts +8 -0
- package/lib-esm/index.js +2 -0
- package/lib-esm/models/code-sample-options.d.ts +11 -0
- package/lib-esm/models/code-sample-options.js +2 -0
- package/lib-esm/models/file-upload.d.ts +11 -0
- package/lib-esm/models/file-upload.js +2 -0
- package/lib-esm/models/index.d.ts +2 -0
- package/lib-esm/models/index.js +2 -0
- package/lib-esm/oauth2-redirect-page/handler/helpers.d.ts +6 -0
- package/lib-esm/oauth2-redirect-page/handler/helpers.js +2 -0
- package/lib-esm/oauth2-redirect-page/handler/oauth2-redirect-handler.d.ts +1 -0
- package/lib-esm/oauth2-redirect-page/handler/oauth2-redirect-handler.js +2 -0
- package/lib-esm/oauth2-redirect-page/index.d.ts +1 -0
- package/lib-esm/oauth2-redirect-page/index.js +2 -0
- package/lib-esm/redoc-lib/index.d.ts +1 -0
- package/lib-esm/redoc-lib/index.js +2 -0
- package/lib-esm/redoc-lib/src/common-elements/Download.d.ts +7 -0
- package/lib-esm/redoc-lib/src/common-elements/Download.js +4 -0
- package/lib-esm/redoc-lib/src/common-elements/LinkToField.d.ts +9 -0
- package/lib-esm/redoc-lib/src/common-elements/LinkToField.js +27 -0
- package/lib-esm/redoc-lib/src/common-elements/fields-layout.d.ts +15 -0
- package/lib-esm/redoc-lib/src/common-elements/fields-layout.js +228 -0
- package/lib-esm/redoc-lib/src/common-elements/fields.d.ts +21 -0
- package/lib-esm/redoc-lib/src/common-elements/fields.js +103 -0
- package/lib-esm/redoc-lib/src/common-elements/headers.d.ts +8 -0
- package/lib-esm/redoc-lib/src/common-elements/headers.js +36 -0
- package/lib-esm/redoc-lib/src/common-elements/icons.d.ts +41 -0
- package/lib-esm/redoc-lib/src/common-elements/icons.js +55 -0
- package/lib-esm/redoc-lib/src/common-elements/index.d.ts +9 -0
- package/lib-esm/redoc-lib/src/common-elements/index.js +2 -0
- package/lib-esm/redoc-lib/src/common-elements/linkify.d.ts +13 -0
- package/lib-esm/redoc-lib/src/common-elements/linkify.js +55 -0
- package/lib-esm/redoc-lib/src/common-elements/mixins.d.ts +1 -0
- package/lib-esm/redoc-lib/src/common-elements/mixins.js +5 -0
- package/lib-esm/redoc-lib/src/common-elements/panels.d.ts +13 -0
- package/lib-esm/redoc-lib/src/common-elements/panels.js +95 -0
- package/lib-esm/redoc-lib/src/common-elements/perfect-scrollbar.d.ts +18 -0
- package/lib-esm/redoc-lib/src/common-elements/perfect-scrollbar.js +4 -0
- package/lib-esm/redoc-lib/src/common-elements/schema.d.ts +11 -0
- package/lib-esm/redoc-lib/src/common-elements/schema.js +68 -0
- package/lib-esm/redoc-lib/src/common-elements/shelfs.d.ts +3 -0
- package/lib-esm/redoc-lib/src/common-elements/shelfs.js +23 -0
- package/lib-esm/redoc-lib/src/components/ApiInfo/ApiInfo.d.ts +5 -0
- package/lib-esm/redoc-lib/src/components/ApiInfo/ApiInfo.js +2 -0
- package/lib-esm/redoc-lib/src/components/ApiInfo/index.d.ts +1 -0
- package/lib-esm/redoc-lib/src/components/ApiInfo/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/ApiInfo/styled.elements.d.ts +8 -0
- package/lib-esm/redoc-lib/src/components/ApiInfo/styled.elements.js +24 -0
- package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.d.ts +11 -0
- package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.js +4 -0
- package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackSamples.d.ts +12 -0
- package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackSamples.js +2 -0
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackDetails.d.ts +8 -0
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackDetails.js +4 -0
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackOperation.d.ts +5 -0
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackOperation.js +2 -0
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackSummary.d.ts +6 -0
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackSummary.js +2 -0
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackTitle.d.ts +5 -0
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackTitle.js +7 -0
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbacksList.d.ts +8 -0
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbacksList.js +2 -0
- package/lib-esm/redoc-lib/src/components/Callbacks/index.d.ts +3 -0
- package/lib-esm/redoc-lib/src/components/Callbacks/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/ContentItem/ContentItem.d.ts +9 -0
- package/lib-esm/redoc-lib/src/components/ContentItem/ContentItem.js +2 -0
- package/lib-esm/redoc-lib/src/components/ContentItem/index.d.ts +1 -0
- package/lib-esm/redoc-lib/src/components/ContentItem/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/ContentItems/ContentItems.d.ts +8 -0
- package/lib-esm/redoc-lib/src/components/ContentItems/ContentItems.js +2 -0
- package/lib-esm/redoc-lib/src/components/ContentItems/Skeleton.d.ts +1 -0
- package/lib-esm/redoc-lib/src/components/ContentItems/Skeleton.js +31 -0
- package/lib-esm/redoc-lib/src/components/ContentItems/index.d.ts +1 -0
- package/lib-esm/redoc-lib/src/components/ContentItems/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +10 -0
- package/lib-esm/redoc-lib/src/components/DiscriminatorDropdown/DiscriminatorDropdown.js +2 -0
- package/lib-esm/redoc-lib/src/components/DiscriminatorDropdown/index.d.ts +1 -0
- package/lib-esm/redoc-lib/src/components/DiscriminatorDropdown/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/DownloadButton/DownloadButton.d.ts +4 -0
- package/lib-esm/redoc-lib/src/components/DownloadButton/DownloadButton.js +21 -0
- package/lib-esm/redoc-lib/src/components/DownloadButton/index.d.ts +1 -0
- package/lib-esm/redoc-lib/src/components/DownloadButton/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.d.ts +7 -0
- package/lib-esm/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.js +8 -0
- package/lib-esm/redoc-lib/src/components/ErrorBoundary.d.ts +9 -0
- package/lib-esm/redoc-lib/src/components/ErrorBoundary.js +5 -0
- package/lib-esm/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.d.ts +8 -0
- package/lib-esm/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.js +5 -0
- package/lib-esm/redoc-lib/src/components/Fields/EnumValues.d.ts +17 -0
- package/lib-esm/redoc-lib/src/components/Fields/EnumValues.js +13 -0
- package/lib-esm/redoc-lib/src/components/Fields/Extensions.d.ts +9 -0
- package/lib-esm/redoc-lib/src/components/Fields/Extensions.js +6 -0
- package/lib-esm/redoc-lib/src/components/Fields/Field.d.ts +20 -0
- package/lib-esm/redoc-lib/src/components/Fields/Field.js +2 -0
- package/lib-esm/redoc-lib/src/components/Fields/FieldContstraints.d.ts +5 -0
- package/lib-esm/redoc-lib/src/components/Fields/FieldContstraints.js +2 -0
- package/lib-esm/redoc-lib/src/components/Fields/FieldDetail.d.ts +10 -0
- package/lib-esm/redoc-lib/src/components/Fields/FieldDetail.js +2 -0
- package/lib-esm/redoc-lib/src/components/Fields/FieldDetails.d.ts +12 -0
- package/lib-esm/redoc-lib/src/components/Fields/FieldDetails.js +15 -0
- package/lib-esm/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +22 -0
- package/lib-esm/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +2 -0
- package/lib-esm/redoc-lib/src/components/Loading/Loading.d.ts +5 -0
- package/lib-esm/redoc-lib/src/components/Loading/Loading.js +9 -0
- package/lib-esm/redoc-lib/src/components/Loading/Spinner.d.ts +6 -0
- package/lib-esm/redoc-lib/src/components/Loading/Spinner.js +19 -0
- package/lib-esm/redoc-lib/src/components/Markdown/AdvancedMarkdown.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/Markdown/AdvancedMarkdown.js +2 -0
- package/lib-esm/redoc-lib/src/components/Markdown/Markdown.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/Markdown/Markdown.js +2 -0
- package/lib-esm/redoc-lib/src/components/Markdown/SanitizedMarkdownHTML.d.ts +6 -0
- package/lib-esm/redoc-lib/src/components/Markdown/SanitizedMarkdownHTML.js +2 -0
- package/lib-esm/redoc-lib/src/components/Markdown/index.d.ts +5 -0
- package/lib-esm/redoc-lib/src/components/Markdown/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/Markdown/styled.d.ts +16 -0
- package/lib-esm/redoc-lib/src/components/Markdown/styled.js +257 -0
- package/lib-esm/redoc-lib/src/components/Markdown/types.d.ts +16 -0
- package/lib-esm/redoc-lib/src/components/Markdown/types.js +2 -0
- package/lib-esm/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +13 -0
- package/lib-esm/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.js +2 -0
- package/lib-esm/redoc-lib/src/components/Operation/Operation.d.ts +7 -0
- package/lib-esm/redoc-lib/src/components/Operation/Operation.js +8 -0
- package/lib-esm/redoc-lib/src/components/Operation/index.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/Operation/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/OptionsProvider.d.ts +6 -0
- package/lib-esm/redoc-lib/src/components/OptionsProvider.js +2 -0
- package/lib-esm/redoc-lib/src/components/Parameters/Parameters.d.ts +10 -0
- package/lib-esm/redoc-lib/src/components/Parameters/Parameters.js +4 -0
- package/lib-esm/redoc-lib/src/components/Parameters/ParametersGroup.d.ts +10 -0
- package/lib-esm/redoc-lib/src/components/Parameters/ParametersGroup.js +16 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/Example.d.ts +3 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/Example.js +2 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/ExampleValue.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/ExampleValue.js +2 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.js +2 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/PayloadSamples.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/PayloadSamples.js +2 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/index.d.ts +5 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/styled.d.ts +3 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/styled.js +17 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/types.d.ts +25 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/types.js +2 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/useExternalExample.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/useExternalExample.js +2 -0
- package/lib-esm/redoc-lib/src/components/RenderHook.d.ts +6 -0
- package/lib-esm/redoc-lib/src/components/RenderHook.js +2 -0
- package/lib-esm/redoc-lib/src/components/RequestSamples/CodeSample.d.ts +16 -0
- package/lib-esm/redoc-lib/src/components/RequestSamples/CodeSample.js +2 -0
- package/lib-esm/redoc-lib/src/components/RequestSamples/RequestSamples.d.ts +12 -0
- package/lib-esm/redoc-lib/src/components/RequestSamples/RequestSamples.js +2 -0
- package/lib-esm/redoc-lib/src/components/RequestSamples/useCodeSamples.d.ts +9 -0
- package/lib-esm/redoc-lib/src/components/RequestSamples/useCodeSamples.js +2 -0
- package/lib-esm/redoc-lib/src/components/ResponseSamples/ResponseSamples.d.ts +5 -0
- package/lib-esm/redoc-lib/src/components/ResponseSamples/ResponseSamples.js +2 -0
- package/lib-esm/redoc-lib/src/components/Responses/Response.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/Responses/Response.js +2 -0
- package/lib-esm/redoc-lib/src/components/Responses/ResponseDetails.d.ts +5 -0
- package/lib-esm/redoc-lib/src/components/Responses/ResponseDetails.js +4 -0
- package/lib-esm/redoc-lib/src/components/Responses/ResponseHeaders.d.ts +3 -0
- package/lib-esm/redoc-lib/src/components/Responses/ResponseHeaders.js +2 -0
- package/lib-esm/redoc-lib/src/components/Responses/ResponseSummary.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/Responses/ResponseSummary.js +2 -0
- package/lib-esm/redoc-lib/src/components/Responses/ResponsesList.d.ts +3 -0
- package/lib-esm/redoc-lib/src/components/Responses/ResponsesList.js +2 -0
- package/lib-esm/redoc-lib/src/components/Responses/index.d.ts +1 -0
- package/lib-esm/redoc-lib/src/components/Responses/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/Responses/styled.d.ts +3 -0
- package/lib-esm/redoc-lib/src/components/Responses/styled.js +14 -0
- package/lib-esm/redoc-lib/src/components/Responses/types.d.ts +12 -0
- package/lib-esm/redoc-lib/src/components/Responses/types.js +2 -0
- package/lib-esm/redoc-lib/src/components/Schema/ArraySchema.d.ts +3 -0
- package/lib-esm/redoc-lib/src/components/Schema/ArraySchema.js +4 -0
- package/lib-esm/redoc-lib/src/components/Schema/ObjectSchema.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/Schema/ObjectSchema.js +2 -0
- package/lib-esm/redoc-lib/src/components/Schema/OneOfSchema.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/Schema/OneOfSchema.js +2 -0
- package/lib-esm/redoc-lib/src/components/Schema/RecursiveSchema.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/Schema/RecursiveSchema.js +2 -0
- package/lib-esm/redoc-lib/src/components/Schema/Schema.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/Schema/Schema.js +2 -0
- package/lib-esm/redoc-lib/src/components/Schema/index.d.ts +4 -0
- package/lib-esm/redoc-lib/src/components/Schema/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/Schema/types.d.ts +22 -0
- package/lib-esm/redoc-lib/src/components/Schema/types.js +2 -0
- package/lib-esm/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.d.ts +21 -0
- package/lib-esm/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.js +7 -0
- package/lib-esm/redoc-lib/src/components/SearchBox/SearchBox.d.ts +30 -0
- package/lib-esm/redoc-lib/src/components/SearchBox/SearchBox.js +2 -0
- package/lib-esm/redoc-lib/src/components/SearchBox/styled.d.ts +6 -0
- package/lib-esm/redoc-lib/src/components/SearchBox/styled.js +53 -0
- package/lib-esm/redoc-lib/src/components/SectionItem/SectionItem.d.ts +6 -0
- package/lib-esm/redoc-lib/src/components/SectionItem/SectionItem.js +2 -0
- package/lib-esm/redoc-lib/src/components/SectionItem/index.d.ts +1 -0
- package/lib-esm/redoc-lib/src/components/SectionItem/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.d.ts +3 -0
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.js +2 -0
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityDefs.d.ts +8 -0
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityDefs.js +4 -0
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.d.ts +12 -0
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.js +26 -0
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.d.ts +7 -0
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.js +24 -0
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.d.ts +7 -0
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.js +2 -0
- package/lib-esm/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.d.ts +3 -0
- package/lib-esm/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.js +2 -0
- package/lib-esm/redoc-lib/src/components/SecuritySchemes/helpers.d.ts +34 -0
- package/lib-esm/redoc-lib/src/components/SecuritySchemes/helpers.js +2 -0
- package/lib-esm/redoc-lib/src/components/SecuritySchemes/index.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/SecuritySchemes/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/SecuritySchemes/types.d.ts +6 -0
- package/lib-esm/redoc-lib/src/components/SecuritySchemes/types.js +2 -0
- package/lib-esm/redoc-lib/src/components/SeeMore/SeeMore.d.ts +7 -0
- package/lib-esm/redoc-lib/src/components/SeeMore/SeeMore.js +10 -0
- package/lib-esm/redoc-lib/src/components/SideMenu/MenuItem.d.ts +17 -0
- package/lib-esm/redoc-lib/src/components/SideMenu/MenuItem.js +19 -0
- package/lib-esm/redoc-lib/src/components/SideMenu/MenuItems.d.ts +17 -0
- package/lib-esm/redoc-lib/src/components/SideMenu/MenuItems.js +2 -0
- package/lib-esm/redoc-lib/src/components/SideMenu/SideMenu.d.ts +15 -0
- package/lib-esm/redoc-lib/src/components/SideMenu/SideMenu.js +2 -0
- package/lib-esm/redoc-lib/src/components/SideMenu/index.d.ts +4 -0
- package/lib-esm/redoc-lib/src/components/SideMenu/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/SideMenu/styled.elements.d.ts +25 -0
- package/lib-esm/redoc-lib/src/components/SideMenu/styled.elements.js +86 -0
- package/lib-esm/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.js +2 -0
- package/lib-esm/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.d.ts +25 -0
- package/lib-esm/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.js +40 -0
- package/lib-esm/redoc-lib/src/components/StoreBuilder.d.ts +6 -0
- package/lib-esm/redoc-lib/src/components/StoreBuilder.js +2 -0
- package/lib-esm/redoc-lib/src/components/index.d.ts +31 -0
- package/lib-esm/redoc-lib/src/components/index.js +2 -0
- package/lib-esm/redoc-lib/src/empty.d.ts +1 -0
- package/lib-esm/redoc-lib/src/empty.js +2 -0
- package/lib-esm/redoc-lib/src/index.d.ts +7 -0
- package/lib-esm/redoc-lib/src/index.js +2 -0
- package/lib-esm/redoc-lib/src/services/HistoryService.d.ts +15 -0
- package/lib-esm/redoc-lib/src/services/HistoryService.js +2 -0
- package/lib-esm/redoc-lib/src/services/Labels.d.ts +3 -0
- package/lib-esm/redoc-lib/src/services/Labels.js +2 -0
- package/lib-esm/redoc-lib/src/services/MarkdownRenderer.d.ts +23 -0
- package/lib-esm/redoc-lib/src/services/MarkdownRenderer.js +2 -0
- package/lib-esm/redoc-lib/src/services/MarkerService.d.ts +11 -0
- package/lib-esm/redoc-lib/src/services/MarkerService.js +2 -0
- package/lib-esm/redoc-lib/src/services/MenuBuilder.d.ts +62 -0
- package/lib-esm/redoc-lib/src/services/MenuBuilder.js +2 -0
- package/lib-esm/redoc-lib/src/services/OpenAPIParser.d.ts +51 -0
- package/lib-esm/redoc-lib/src/services/OpenAPIParser.js +2 -0
- package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.d.ts +84 -0
- package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.js +2 -0
- package/lib-esm/redoc-lib/src/services/ScrollService.d.ts +18 -0
- package/lib-esm/redoc-lib/src/services/ScrollService.js +2 -0
- package/lib-esm/redoc-lib/src/services/SearchStore.d.ts +13 -0
- package/lib-esm/redoc-lib/src/services/SearchStore.js +2 -0
- package/lib-esm/redoc-lib/src/services/SearchWorker.worker.d.ts +17 -0
- package/lib-esm/redoc-lib/src/services/SearchWorker.worker.js +2 -0
- package/lib-esm/redoc-lib/src/services/SpecStore.d.ts +18 -0
- package/lib-esm/redoc-lib/src/services/SpecStore.js +2 -0
- package/lib-esm/redoc-lib/src/services/constants.d.ts +6 -0
- package/lib-esm/redoc-lib/src/services/constants.js +2 -0
- package/lib-esm/redoc-lib/src/services/index.d.ts +12 -0
- package/lib-esm/redoc-lib/src/services/index.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/ApiInfo.d.ts +17 -0
- package/lib-esm/redoc-lib/src/services/models/ApiInfo.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/Callback.d.ts +11 -0
- package/lib-esm/redoc-lib/src/services/models/Callback.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/Example.d.ts +17 -0
- package/lib-esm/redoc-lib/src/services/models/Example.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/Field.d.ts +35 -0
- package/lib-esm/redoc-lib/src/services/models/Field.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/Group.model.d.ts +25 -0
- package/lib-esm/redoc-lib/src/services/models/Group.model.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/MediaContent.d.ts +31 -0
- package/lib-esm/redoc-lib/src/services/models/MediaContent.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/MediaType.d.ts +27 -0
- package/lib-esm/redoc-lib/src/services/models/MediaType.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/Operation.d.ts +93 -0
- package/lib-esm/redoc-lib/src/services/models/Operation.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/RequestBody.d.ts +19 -0
- package/lib-esm/redoc-lib/src/services/models/RequestBody.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/Response.d.ts +28 -0
- package/lib-esm/redoc-lib/src/services/models/Response.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/Schema.d.ts +78 -0
- package/lib-esm/redoc-lib/src/services/models/Schema.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/SecurityRequirement.d.ts +12 -0
- package/lib-esm/redoc-lib/src/services/models/SecurityRequirement.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/SecuritySchemes.d.ts +25 -0
- package/lib-esm/redoc-lib/src/services/models/SecuritySchemes.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/Webhook.d.ts +9 -0
- package/lib-esm/redoc-lib/src/services/models/Webhook.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/index.d.ts +14 -0
- package/lib-esm/redoc-lib/src/services/models/index.js +2 -0
- package/lib-esm/redoc-lib/src/services/types.d.ts +226 -0
- package/lib-esm/redoc-lib/src/services/types.js +2 -0
- package/lib-esm/redoc-lib/src/theme.d.ts +10 -0
- package/lib-esm/redoc-lib/src/theme.js +2 -0
- package/lib-esm/redoc-lib/src/types/index.d.ts +3 -0
- package/lib-esm/redoc-lib/src/types/index.js +2 -0
- package/lib-esm/redoc-lib/src/types/open-api.d.ts +338 -0
- package/lib-esm/redoc-lib/src/types/open-api.js +2 -0
- package/lib-esm/redoc-lib/src/types/server.d.ts +7 -0
- package/lib-esm/redoc-lib/src/types/server.js +2 -0
- package/lib-esm/redoc-lib/src/utils/JsonPointer.d.ts +51 -0
- package/lib-esm/redoc-lib/src/utils/JsonPointer.js +2 -0
- package/lib-esm/redoc-lib/src/utils/argValuesHelpers.d.ts +4 -0
- package/lib-esm/redoc-lib/src/utils/argValuesHelpers.js +2 -0
- package/lib-esm/redoc-lib/src/utils/css-variables.d.ts +2 -0
- package/lib-esm/redoc-lib/src/utils/css-variables.js +2 -0
- package/lib-esm/redoc-lib/src/utils/debug.d.ts +2 -0
- package/lib-esm/redoc-lib/src/utils/debug.js +2 -0
- package/lib-esm/redoc-lib/src/utils/decorators.d.ts +1 -0
- package/lib-esm/redoc-lib/src/utils/decorators.js +2 -0
- package/lib-esm/redoc-lib/src/utils/dom.d.ts +8 -0
- package/lib-esm/redoc-lib/src/utils/dom.js +2 -0
- package/lib-esm/redoc-lib/src/utils/helpers.d.ts +46 -0
- package/lib-esm/redoc-lib/src/utils/helpers.js +2 -0
- package/lib-esm/redoc-lib/src/utils/highlight.d.ts +31 -0
- package/lib-esm/redoc-lib/src/utils/highlight.js +2 -0
- package/lib-esm/redoc-lib/src/utils/index.d.ts +14 -0
- package/lib-esm/redoc-lib/src/utils/index.js +2 -0
- package/lib-esm/redoc-lib/src/utils/loadAndBundleSpec.d.ts +5 -0
- package/lib-esm/redoc-lib/src/utils/loadAndBundleSpec.js +2 -0
- package/lib-esm/redoc-lib/src/utils/media-css.d.ts +13 -0
- package/lib-esm/redoc-lib/src/utils/media-css.js +2 -0
- package/lib-esm/redoc-lib/src/utils/memoize.d.ts +1 -0
- package/lib-esm/redoc-lib/src/utils/memoize.js +2 -0
- package/lib-esm/redoc-lib/src/utils/object.d.ts +2 -0
- package/lib-esm/redoc-lib/src/utils/object.js +2 -0
- package/lib-esm/redoc-lib/src/utils/openapi.d.ts +41 -0
- package/lib-esm/redoc-lib/src/utils/openapi.js +2 -0
- package/lib-esm/redoc-lib/src/utils/sort.d.ts +6 -0
- package/lib-esm/redoc-lib/src/utils/sort.js +2 -0
- package/lib-esm/redoc-lib/src/utils/string.d.ts +1 -0
- package/lib-esm/redoc-lib/src/utils/string.js +2 -0
- package/lib-esm/redoc-lib/src/utils/test-utils.d.ts +1 -0
- package/lib-esm/redoc-lib/src/utils/test-utils.js +2 -0
- package/lib-esm/redoc-lib/src/utils/theme-helpers.d.ts +3 -0
- package/lib-esm/redoc-lib/src/utils/theme-helpers.js +4 -0
- package/lib-esm/services/OAuth2.d.ts +43 -0
- package/lib-esm/services/OAuth2.js +2 -0
- package/lib-esm/services/OpenIDConnect.d.ts +38 -0
- package/lib-esm/services/OpenIDConnect.js +2 -0
- package/lib-esm/services/ProMenu.d.ts +105 -0
- package/lib-esm/services/ProMenu.js +2 -0
- package/lib-esm/services/ProStore.d.ts +153 -0
- package/lib-esm/services/ProStore.js +2 -0
- package/lib-esm/services/SearchStore.d.ts +37 -0
- package/lib-esm/services/SearchStore.js +2 -0
- package/lib-esm/services/VersionedSpecStore.d.ts +40 -0
- package/lib-esm/services/VersionedSpecStore.js +2 -0
- package/lib-esm/services/check.d.ts +13 -0
- package/lib-esm/services/check.js +2 -0
- package/lib-esm/services/code-samples/generator.d.ts +25 -0
- package/lib-esm/services/code-samples/generator.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/code-builder.d.ts +82 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/code-builder.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/code-helpers.d.ts +28 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/code-helpers.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/constants.d.ts +23 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/constants.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/lodash-int.d.ts +5 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/lodash-int.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.d.ts +28 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/reducer.d.ts +1 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/reducer.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/shell.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/shell.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/string-utility.d.ts +7 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/string-utility.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/index.d.ts +47 -0
- package/lib-esm/services/code-samples/httpsnippet/index.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/__mocks__/mock.d.ts +3519 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/__mocks__/mock.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/csharp/index.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/csharp/index.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/go/index.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/go/index.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/go/native.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/go/native.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/index.d.ts +106 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/index.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/java/httpclient.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/java/httpclient.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/java/index.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/java/index.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/java8/apachehttp.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/java8/apachehttp.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/java8/index.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/java8/index.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/javascript/fetch.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/javascript/fetch.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/javascript/index.d.ts +12 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/javascript/index.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/node/fetch.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/node/fetch.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/node/index.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/node/index.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/php/curl.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/php/curl.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/php/index.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/php/index.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/php/types.d.ts +11 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/php/types.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/php/utils.d.ts +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/php/utils.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/python/index.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/python/index.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/python/requests.d.ts +4 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/python/requests.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/r/httr.d.ts +4 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/r/httr.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/r/index.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/r/index.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/r/utils.d.ts +5 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/r/utils.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/ruby/index.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/ruby/index.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/ruby/native.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/ruby/native.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/shell/curl.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/shell/curl.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/shell/index.d.ts +12 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/shell/index.js +2 -0
- package/lib-esm/services/code-samples/index.d.ts +2 -0
- package/lib-esm/services/code-samples/index.js +2 -0
- package/lib-esm/services/code-samples/types.d.ts +63 -0
- package/lib-esm/services/code-samples/types.js +2 -0
- package/lib-esm/services/history/FakeHistoryService.d.ts +20 -0
- package/lib-esm/services/history/FakeHistoryService.js +2 -0
- package/lib-esm/services/history/ProHashHistoryService.d.ts +25 -0
- package/lib-esm/services/history/ProHashHistoryService.js +2 -0
- package/lib-esm/services/history/PushStateHistoryService.d.ts +24 -0
- package/lib-esm/services/history/PushStateHistoryService.js +2 -0
- package/lib-esm/services/history/helpers.d.ts +4 -0
- package/lib-esm/services/history/helpers.js +2 -0
- package/lib-esm/services/history/index.d.ts +3 -0
- package/lib-esm/services/history/index.js +2 -0
- package/lib-esm/services/index.d.ts +5 -0
- package/lib-esm/services/index.js +2 -0
- package/lib-esm/services/store-types.d.ts +4 -0
- package/lib-esm/services/store-types.js +2 -0
- package/lib-esm/services/types.d.ts +21 -0
- package/lib-esm/services/types.js +2 -0
- package/lib-esm/services/utils.d.ts +25 -0
- package/lib-esm/services/utils.js +2 -0
- package/lib-esm/setupTests.d.ts +4 -0
- package/lib-esm/setupTests.js +2 -0
- package/lib-esm/standalone.d.ts +27 -0
- package/lib-esm/standalone.js +2 -0
- package/lib-esm/testProviders.d.ts +4 -0
- package/lib-esm/testProviders.js +2 -0
- package/lib-esm/types.d.ts +25 -0
- package/lib-esm/types.js +2 -0
- package/lib-esm/utils.d.ts +30 -0
- package/lib-esm/utils.js +2 -0
- package/package.json +172 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
var __rest=this&&this.__rest||function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r};import{asField,useField}from"informed";import styled,{css}from"styled-components";import React,{forwardRef,useCallback,useState}from"react";import{useMount}from"../../hooks";import{FormError}from"./form";import{Dropdown}from"./Dropdown";export const getInvertedInputStyles=e=>css`
|
|
2
|
+
border: var(--input-border);
|
|
3
|
+
outline: none;
|
|
4
|
+
padding: var(--input-padding);
|
|
5
|
+
border-radius: var(--input-border-radius);
|
|
6
|
+
background-color: var(--panel-${e}-input-background-color);
|
|
7
|
+
color: var(--input-text-color);
|
|
8
|
+
font-family: var(--input-font-family);
|
|
9
|
+
font-size: var(--input-font-size);
|
|
10
|
+
line-height: var(--input-line-height);
|
|
11
|
+
|
|
12
|
+
&::placeholder {
|
|
13
|
+
opacity: 0.6;
|
|
14
|
+
color: var(--input-placeholder-text-color);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&:hover {
|
|
18
|
+
color: var(--input-hover-text-color);
|
|
19
|
+
border: var(--input-hover-border);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:focus {
|
|
23
|
+
color: var(--input-focus-text-color);
|
|
24
|
+
border: var(--input-focus-border);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:-webkit-autofill {
|
|
28
|
+
background-color: var(--panel-${e}-input-background-color);
|
|
29
|
+
}
|
|
30
|
+
`;const TextFieldWrapper=styled.div`
|
|
31
|
+
display: ${({type:e})=>"hidden"===e?"none":"inline-block"};
|
|
32
|
+
${({fullWidth:e})=>e?"width: 100%;":""}
|
|
33
|
+
`,InputWrap=styled.div`
|
|
34
|
+
position: relative;
|
|
35
|
+
`;export const StyledInput=styled.input`
|
|
36
|
+
${({panel:e})=>{return css`
|
|
37
|
+
border: var(--input-border);
|
|
38
|
+
outline: none;
|
|
39
|
+
padding: var(--input-padding);
|
|
40
|
+
border-radius: var(--input-border-radius);
|
|
41
|
+
background-color: var(--panel-${t=e}-input-background-color);
|
|
42
|
+
color: var(--input-text-color);
|
|
43
|
+
font-family: var(--input-font-family);
|
|
44
|
+
font-size: var(--input-font-size);
|
|
45
|
+
line-height: var(--input-line-height);
|
|
46
|
+
|
|
47
|
+
&::placeholder {
|
|
48
|
+
opacity: 0.6;
|
|
49
|
+
color: var(--input-placeholder-text-color);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:hover {
|
|
53
|
+
color: var(--input-hover-text-color);
|
|
54
|
+
border: var(--input-hover-border);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:focus {
|
|
58
|
+
color: var(--input-focus-text-color);
|
|
59
|
+
border: var(--input-focus-border);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:-webkit-autofill {
|
|
63
|
+
background-color: var(--panel-${t}-input-background-color);
|
|
64
|
+
}
|
|
65
|
+
`;var t}}
|
|
66
|
+
${({inputType:e,inputActionButton:t})=>"password"===e||t?"padding-right: 40px;":""};
|
|
67
|
+
${({fullWidth:e})=>e?"width: 100%;":""}
|
|
68
|
+
`;const InputActionButton=styled.span`
|
|
69
|
+
position: absolute;
|
|
70
|
+
right: 0;
|
|
71
|
+
line-height: normal;
|
|
72
|
+
|
|
73
|
+
font-size: 0.8em;
|
|
74
|
+
padding: calc(8px / 0.8);
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
text-align: center;
|
|
77
|
+
color: var(--panel-samples-text-color);
|
|
78
|
+
`;function TextFieldComponent(e,t){var{fullWidth:r,errorMessage:o,type:n,inputActionButton:l,panel:i="samples"}=e,a=__rest(e,["fullWidth","errorMessage","type","inputActionButton","panel"]);const[p,u]=useState("password"===n),c=useCallback((()=>{u(!p)}),[p]);return React.createElement(TextFieldWrapper,{fullWidth:r,type:n},React.createElement(InputWrap,null,React.createElement(StyledInput,Object.assign({fullWidth:r,inputActionButton:l,type:p?"password":"text",inputType:n,ref:t,panel:i},a)),l?React.createElement(InputActionButton,{onClick:l.onClick},l.label):"password"===n?React.createElement(InputActionButton,{onClick:c},p?"show":"hide"):null),o?React.createElement(FormError,null,o):null)}export const TextField=forwardRef(TextFieldComponent);export function FormTextField(e){const t=useField(Object.assign({fieldType:"text"},e)),{userProps:r,render:o,fieldState:n}=t,l=t.informed;return o(React.createElement(TextField,Object.assign({},r,l,{errorMessage:n.error})))}const FormDropdownInt=({initValue:e,options:t,fieldApi:r,fieldState:o})=>{const n=t.map(((e,t)=>({value:e.title||e.value,idx:t,origValue:e.value}))),l=n.find((t=>t.origValue===e)),[i,a]=useState(null==l?void 0:l.value);useMount((()=>{e&&r.setValue(e)}));const p=useCallback((e=>{r.setValue(n[e.idx].origValue),a(n[e.idx].value)}),[r,n]);return React.createElement(TextFieldWrapper,{fullWidth:!0},React.createElement(Dropdown,{fullWidth:!0,variant:"dark",value:i,options:n,onChange:p}),o.error?React.createElement(FormError,null,o.error):null)};export const FormDropdown=asField(FormDropdownInt);
|
|
79
|
+
//# sourceMappingURL=TextField.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const Table: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const GroupLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const FormControl: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const FormWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const FormLabel: import("styled-components").StyledComponent<"label", any, {
|
|
6
|
+
required?: boolean | undefined;
|
|
7
|
+
}, never>;
|
|
8
|
+
export declare const FormError: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const FormWarning: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
+
export declare const TokenField: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
+
export declare const TokenValue: import("styled-components").StyledComponent<"code", any, {
|
|
12
|
+
masked?: boolean | undefined;
|
|
13
|
+
length: number;
|
|
14
|
+
}, never>;
|
|
15
|
+
export declare const TokenShowHide: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
16
|
+
export declare const TokenClear: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
17
|
+
export declare const FormHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import styled,{css}from"styled-components";export const Table=styled.div`
|
|
2
|
+
display: table;
|
|
3
|
+
width: 100%;
|
|
4
|
+
`;export const GroupLabel=styled.div`
|
|
5
|
+
color: #969a9a;
|
|
6
|
+
font-size: 1em;
|
|
7
|
+
font-weight: normal;
|
|
8
|
+
text-align: left;
|
|
9
|
+
position: absolute;
|
|
10
|
+
`;export const FormControl=styled.div`
|
|
11
|
+
width: 100%;
|
|
12
|
+
font-family: var(--code-font-family);
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
margin-bottom: 10px;
|
|
16
|
+
|
|
17
|
+
&:last-child {
|
|
18
|
+
margin-bottom: 0;
|
|
19
|
+
}
|
|
20
|
+
`;export const FormWrapper=styled.div`
|
|
21
|
+
width: 100%;
|
|
22
|
+
margin-bottom: 20px;
|
|
23
|
+
`;export const FormLabel=styled.label`
|
|
24
|
+
padding-bottom: 6px;
|
|
25
|
+
display: block;
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
line-height: 1em;
|
|
28
|
+
|
|
29
|
+
${({required:o})=>o&&css`
|
|
30
|
+
&:after {
|
|
31
|
+
display: inline-block;
|
|
32
|
+
content: '*';
|
|
33
|
+
margin-left: 4px;
|
|
34
|
+
color: var(--color-error-500);
|
|
35
|
+
}
|
|
36
|
+
`}
|
|
37
|
+
`;export const FormError=styled.div`
|
|
38
|
+
color: var(--color-error-500);
|
|
39
|
+
font-size: 0.9em;
|
|
40
|
+
& pre {
|
|
41
|
+
word-break: break-word;
|
|
42
|
+
white-space: pre-wrap;
|
|
43
|
+
}
|
|
44
|
+
`;export const FormWarning=styled.div`
|
|
45
|
+
color: var(--color-warning-500);
|
|
46
|
+
font-size: 0.9em;
|
|
47
|
+
`;function placeholder(o,e){let t="";for(let r=0;r<o;r++)t+=e;return'"'+t+'"'}export const TokenField=styled.div`
|
|
48
|
+
position: relative;
|
|
49
|
+
margin-bottom: 1em;
|
|
50
|
+
display: flex;
|
|
51
|
+
`;export const TokenValue=styled.code`
|
|
52
|
+
flex: 1;
|
|
53
|
+
overflow-wrap: anywhere;
|
|
54
|
+
${({masked:o,length:e})=>o&&`\n color: transparent;\n\n &:before {\n content: ${placeholder(e,"*")};\n color: white;\n position: absolute;\n right: 100px;\n }\n `||""}
|
|
55
|
+
`;export const TokenShowHide=styled.span`
|
|
56
|
+
padding: 0 5px;
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
`;export const TokenClear=styled(TokenShowHide)`
|
|
59
|
+
color: var(--color-error-500);
|
|
60
|
+
`;export const FormHeader=styled.div`
|
|
61
|
+
font-weight: bold;
|
|
62
|
+
font-size: 1.2em;
|
|
63
|
+
margin: 1em 0;
|
|
64
|
+
`;
|
|
65
|
+
//# sourceMappingURL=form.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FormValues } from 'informed';
|
|
3
|
+
import type { OperationModel } from '../../redoc-lib';
|
|
4
|
+
export interface ActionPanelProps {
|
|
5
|
+
execute: () => void;
|
|
6
|
+
loading: boolean;
|
|
7
|
+
operation: OperationModel;
|
|
8
|
+
params: FormValues;
|
|
9
|
+
hasResponse: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const ActionPanelComponent: ({ loading, operation, hasResponse, execute, params, }: ActionPanelProps) => JSX.Element;
|
|
12
|
+
export declare const ActionPanel: React.NamedExoticComponent<ActionPanelProps>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React,{memo}from"react";import styled from"styled-components";import{Button}from"@redocly/theme";import{serializeParameterValue}from"../../redoc-lib";import{CodeHeader}from"../Panel";import{Path,PathWrapper}from"../Endpoint";import{HttpVerb}from"../shared";import{expandVariables}from"./utils";function formatPath(e,t,r){const n=t.path||{},a=t.query||{},o=Object.keys(a);let m=expandVariables(e,n);return o.length&&(m+="?"+o.map((e=>{if(!a[e])return"";const t=(e=>r.find((t=>t.name===e&&"query"===t.in)))(e);return t?serializeParameterValue(t,a[e]):`${e}=${encodeURIComponent(a[e])}`})).filter(Boolean).join("&")),m}export const ActionPanelComponent=({loading:e,operation:t,hasResponse:r,execute:n,params:a={}})=>React.createElement(CodeHeader,null,React.createElement(PathWrapper,null,React.createElement(HttpVerb,{type:t.httpVerb},t.httpVerb),React.createElement(Path,{wrap:"true"},formatPath(t.path,a,t.parameters))),React.createElement(SendButton,{"data-cy":"send-button",color:"primary",blinking:e,onClick:()=>!e&&n()},e?"Sending...":r?"Resend":"Send"));const SendButton=styled(Button)`
|
|
2
|
+
width: var(--panel-try-it-action-button-width);
|
|
3
|
+
`;export const ActionPanel=memo(ActionPanelComponent);
|
|
4
|
+
//# sourceMappingURL=ActionPanel.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import type { AuthPanelProps, AuthPanelState } from './types';
|
|
3
|
+
import type { DropdownOption } from '../../common/Dropdown';
|
|
4
|
+
export declare class AuthPanel extends Component<AuthPanelProps, AuthPanelState> {
|
|
5
|
+
static getDerivedStateFromProps(props: AuthPanelProps): AuthPanelState;
|
|
6
|
+
state: {
|
|
7
|
+
activeScheme: number;
|
|
8
|
+
};
|
|
9
|
+
handleSchemeChange: (option: DropdownOption & {
|
|
10
|
+
idx: number;
|
|
11
|
+
}) => void;
|
|
12
|
+
render(): JSX.Element | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import React,{Component,Fragment}from"react";import{escapeFormId,fromSessionStorage,getSecurityDetailsOptions,toSessionStorage}from"../../../utils";import{TryItDropdown}from"../styled";import{FormControl,FormLabel,FormWrapper}from"../../common/form";import{FormDropdown,FormTextField}from"../../common/TextField";import{OpenIDConnect,Error}from"../OpenIDConnect";import{fromCookie,requiredValidator}from"../utils";import{OAuth2Flow}from"../OAuth2Flow";import{l}from"../../../redoc-lib/src/services/Labels";import OAuth2TokenInputCmp from"../OAuth2TokenInput";export class AuthPanel extends Component{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:{activeScheme:0}}),Object.defineProperty(this,"handleSchemeChange",{enumerable:!0,configurable:!0,writable:!0,value:e=>{this.setState({activeScheme:e.idx}),toSessionStorage("securityRequirementName",e.value)}})}static getDerivedStateFromProps(e){const t=e.operation.security.map((e=>e.schemes.map((e=>e.id)).join(" and "))),o=fromSessionStorage("securityRequirementName"),r=t.findIndex((e=>e===o));return{activeScheme:r<0?0:r}}render(){const{securityDefaults:e}=this.props,{activeScheme:t}=this.state,o=this.props.operation.security,r=o.map((e=>e.schemes.map((e=>e.id)).join(" and "))).filter(Boolean).map(((e,t)=>({value:e,idx:t})));return 0===r.length?React.createElement(Error,{message:"Cannot find security schema in the definition"}):React.createElement(React.Fragment,null,React.createElement(FormWrapper,null,r.length>1&&React.createElement(FormControl,null,React.createElement(FormLabel,null," Security scheme: "),React.createElement(TryItDropdown,{variant:"dark",fullWidth:!0,options:r,value:r[t].value,onChange:this.handleSchemeChange}))||null,o[t].schemes.map((t=>{var o,r,a,i,n,s,u;const c=escapeFormId(t.id);if("apiKey"===t.type){const o=getSecurityDetailsOptions(c,""),r={field:`auth.${c}`,fullWidth:!0,initialValue:fromCookie(t)||fromSessionStorage(`auth.${c}`)||(null==e?void 0:e[c]),initValue:fromCookie(t)||fromSessionStorage(`auth.${c}`)||(null==e?void 0:e[c]),validate:requiredValidator,validateOnBlur:!0,validateOnChange:!0};return React.createElement(FormControl,{key:c},React.createElement(FormLabel,null," ",t.name,": "),o?React.createElement(FormDropdown,Object.assign({},r,{options:o})):React.createElement(FormTextField,Object.assign({},r,{type:"password",panel:"try-it","data-cy":"apiKey-auth-password"})))}if("http"===t.type){if("basic"===t.scheme){const t=getSecurityDetailsOptions(c,"username"),i={field:`auth.${c}.username`,fullWidth:!0,initialValue:fromSessionStorage(`auth.${c}.username`)||(null===(o=null==e?void 0:e[c])||void 0===o?void 0:o.username),initValue:fromSessionStorage(`auth.${c}.username`)||(null===(r=null==e?void 0:e[c])||void 0===r?void 0:r.username),validate:requiredValidator,validateOnBlur:!0,validateOnChange:!0};return React.createElement(Fragment,{key:c},React.createElement(FormControl,null,React.createElement(FormLabel,null," ",l("tryItAuthBasicUsername"),": "),t?React.createElement(FormDropdown,Object.assign({},i,{options:t})):React.createElement(FormTextField,Object.assign({},i,{panel:"try-it"}))),React.createElement(FormControl,null,React.createElement(FormLabel,null," ",l("tryItAuthBasicPassword"),": "),React.createElement(FormTextField,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${c}.password`,initialValue:fromSessionStorage(`auth.${c}.password`)||(null===(a=null==e?void 0:e[c])||void 0===a?void 0:a.password)||"",validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}if("bearer"===t.scheme){const t=getSecurityDetailsOptions(c,""),o={field:`auth.${c}`,fullWidth:!0,initialValue:fromSessionStorage(`auth.${c}`)||(null==e?void 0:e[c]),initValue:fromSessionStorage(`auth.${c}`)||(null==e?void 0:e[c]),validate:requiredValidator,validateOnBlur:!0,validateOnChange:!0};return React.createElement(Fragment,{key:c},React.createElement(FormControl,null,React.createElement(FormLabel,null," Bearer Token: "),t?React.createElement(FormDropdown,Object.assign({},o,{options:t})):React.createElement(FormTextField,Object.assign({},o,{type:"password",placeholder:"(without 'Bearer')",panel:"try-it"}))))}}else{if("oauth2"===t.type&&t.flows&&t.flows.clientCredentials)return React.createElement(OAuth2TokenInputCmp,{key:c,flow:t.flows.clientCredentials,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:c,form:this.props.form,formApi:this.props.formApi,clientId:t.flows.clientCredentials["x-defaultClientId"]||t["x-defaultClientId"],defaultValues:null==e?void 0:e[c]});if("oauth2"===t.type&&t.flows&&t.flows.implicit)return React.createElement(OAuth2Flow,{key:c,authorizationUrl:t.flows.implicit.authorizationUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys((null===(n=null===(i=null==t?void 0:t.flows)||void 0===i?void 0:i.implicit)||void 0===n?void 0:n.scopes)||{}),server:this.props.activeServer,id:c,form:this.props.form,formApi:this.props.formApi,clientId:t.flows.implicit["x-defaultClientId"]||t["x-defaultClientId"],flow:"implicit",defaultValues:null==e?void 0:e[c]});if("oauth2"===t.type&&t.flows&&t.flows.authorizationCode)return React.createElement(OAuth2Flow,{key:c,authorizationUrl:t.flows.authorizationCode.authorizationUrl,tokenUrl:t.flows.authorizationCode.tokenUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys((null===(s=t.flows.authorizationCode)||void 0===s?void 0:s.scopes)||{}),server:this.props.activeServer,id:c,form:this.props.form,formApi:this.props.formApi,clientId:t.flows.authorizationCode["x-defaultClientId"]||t["x-defaultClientId"],flow:"authorizationCode",tokenEndpointAuthMethod:t.flows.authorizationCode["x-tokenEndpointAuthMethod"],usePkce:t.flows.authorizationCode["x-usePkce"],defaultValues:null==e?void 0:e[c]});if("oauth2"===t.type){let t=fromSessionStorage(`auth.${c}.token`)||JSON.stringify(null===(u=null==e?void 0:e[c])||void 0===u?void 0:u.token);return t=t?JSON.parse(t):{},React.createElement(Fragment,{key:c},React.createElement(FormControl,null,React.createElement(FormLabel,null," Access Token Type: "),React.createElement(FormTextField,{fullWidth:!0,field:`auth.${c}.token.token_type`,initialValue:t.token_type||"Bearer",panel:"try-it"})),React.createElement(FormControl,null,React.createElement(FormLabel,null," Access Token: "),React.createElement(FormTextField,{type:"password",fullWidth:!0,field:`auth.${c}.token.access_token`,validate:requiredValidator,initialValue:t.access_token,validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}if("openIdConnect"===t.type)return React.createElement(OpenIDConnect,{key:c,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:c,form:this.props.form,formApi:this.props.formApi,scheme:t,clientId:t["x-defaultClientId"],defaultValues:null==e?void 0:e[c]})}}))),React.createElement("small",null,React.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))}}
|
|
2
|
+
//# sourceMappingURL=AuthPanel.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { FormApi, FormState } from 'informed';
|
|
2
|
+
import type { OperationModel } from '../../../redoc-lib';
|
|
3
|
+
import type { SecurityDetails } from '../../../types';
|
|
4
|
+
export interface AuthPanelProps {
|
|
5
|
+
operation: OperationModel;
|
|
6
|
+
form: FormState;
|
|
7
|
+
formApi: FormApi;
|
|
8
|
+
activeServer: string;
|
|
9
|
+
authCorsProxyUrl: Maybe<string>;
|
|
10
|
+
securityDefaults?: Record<string, SecurityDetails | string>;
|
|
11
|
+
}
|
|
12
|
+
export interface AuthPanelState {
|
|
13
|
+
activeScheme: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React, { PureComponent } from 'react';
|
|
2
|
+
import { Controlled as CodeMirror } from 'react-codemirror2-react-17';
|
|
3
|
+
import type { Editor } from 'codemirror';
|
|
4
|
+
import type { FieldApi, FieldState } from 'informed';
|
|
5
|
+
import type { LegacyRef } from 'react';
|
|
6
|
+
import type { OpenAPISchema, Referenced } from '../../redoc-lib';
|
|
7
|
+
import './codemirror-helpers';
|
|
8
|
+
export interface CodemirrorInputBase {
|
|
9
|
+
forwardedRef?: LegacyRef<CodeMirror>;
|
|
10
|
+
mode?: string;
|
|
11
|
+
field: string;
|
|
12
|
+
initialValue: string;
|
|
13
|
+
validate: () => string | undefined;
|
|
14
|
+
schema?: Referenced<OpenAPISchema>;
|
|
15
|
+
id: string;
|
|
16
|
+
onChange?: (e: any) => void;
|
|
17
|
+
onBlur?: (e: any) => void;
|
|
18
|
+
}
|
|
19
|
+
export interface CodemirrorInputProps extends CodemirrorInputBase {
|
|
20
|
+
fieldApi: FieldApi;
|
|
21
|
+
fieldState: FieldState<string>;
|
|
22
|
+
render: any;
|
|
23
|
+
userProps: any;
|
|
24
|
+
ref: any;
|
|
25
|
+
}
|
|
26
|
+
export declare class CodemirrorInput extends PureComponent<CodemirrorInputProps> {
|
|
27
|
+
editor: Editor;
|
|
28
|
+
_onKeyUp: (_cm: CodeMirror.Doc, event: {
|
|
29
|
+
key: string;
|
|
30
|
+
}) => void;
|
|
31
|
+
initEditor: (editor: Editor) => void;
|
|
32
|
+
refreshEditor: () => void;
|
|
33
|
+
showHintHandler: () => void;
|
|
34
|
+
componentDidMount(): void;
|
|
35
|
+
componentWillUnmount(): void;
|
|
36
|
+
render(): JSX.Element;
|
|
37
|
+
}
|
|
38
|
+
declare const _default: React.ComponentType<CodemirrorInputBase>;
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React,{PureComponent}from"react";import{asField}from"informed";import{Controlled as CodeMirror}from"react-codemirror2-react-17";import{createGlobalStyle}from"styled-components";import"./codemirror-helpers";import{MediaTypes}from"../../types";const CodeMirrorStyles=createGlobalStyle`
|
|
2
|
+
.cm-s-material.CodeMirror {
|
|
3
|
+
background-color: var(--panel-samples-controls-background-color)!important;
|
|
4
|
+
color: var(--text-color-inverse)!important;
|
|
5
|
+
font-family: var(--code-font-family);
|
|
6
|
+
line-height: 18px;
|
|
7
|
+
padding: 10px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.CodeMirror-lint-mark-error {
|
|
11
|
+
background-size: 4px;
|
|
12
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAAVUlEQVR42mNgQAL/GRjigPg/EP8FYntkCX4gtoVKgvE/BoabcEVAhj6S5DUgfgFl/wFJ2gPxL6iuT1DF+kD2R5AYA5KRj6CS/FAMYvszIBltz4AFAAD9fz0YtLg13wAAAABJRU5ErkJggg==') !important;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.cm-s-material.CodeMirror-focused div.CodeMirror-selected {
|
|
16
|
+
background: rgba(255, 255, 255, 0.3) !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.cm-s-material .CodeMirror-code .cm-string.cm-property {
|
|
20
|
+
color: var(--code-block-tokens-property-string-color);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.cm-s-material .CodeMirror-code .cm-string {
|
|
24
|
+
color: var(--code-block-tokens-string-color);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.cm-s-material .CodeMirror-code .cm-atom {
|
|
28
|
+
color: var(--text-color-inverse);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
div .cm-s-material .CodeMirror-matchingbracket {
|
|
32
|
+
outline: 1px solid grey;
|
|
33
|
+
text-decoration: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.react-codemirror2 {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
justify-content: flex-start;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
|
|
42
|
+
flex: 1;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.CodeMirror {
|
|
46
|
+
flex: 1;
|
|
47
|
+
border-radius: var(--panel-border-radius);
|
|
48
|
+
}
|
|
49
|
+
`;export class CodemirrorInput extends PureComponent{constructor(){super(...arguments),Object.defineProperty(this,"editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onKeyUp",{enumerable:!0,configurable:!0,writable:!0,value:(e,r)=>{/^[a-zA-Z0-9_":]$/.test(r.key)&&this.editor.execCommand("autocomplete")}}),Object.defineProperty(this,"initEditor",{enumerable:!0,configurable:!0,writable:!0,value:e=>{this.editor=e,e.on("keyup",this._onKeyUp)}}),Object.defineProperty(this,"refreshEditor",{enumerable:!0,configurable:!0,writable:!0,value:()=>{this.editor.refresh()}}),Object.defineProperty(this,"showHintHandler",{enumerable:!0,configurable:!0,writable:!0,value:()=>this.editor.showHint({completeSingle:!0})})}componentDidMount(){setTimeout((()=>{this.editor.refresh()}),0),document.addEventListener("click",this.refreshEditor)}componentWillUnmount(){document.removeEventListener("click",this.refreshEditor)}render(){const{value:e}=this.props.fieldState,{setValue:r,setTouched:o,setError:t}=this.props.fieldApi,{onChange:i,onBlur:a,forwardedRef:n}=this.props;return React.createElement(React.Fragment,null,React.createElement(CodeMirrorStyles,null),React.createElement(CodeMirror,{editorDidMount:this.initEditor,value:e||"",ref:n,onBeforeChange:(e,o,t)=>{r(t),i&&i(t)},onBlur:e=>{o(!1),a&&a(e)},options:{mode:this.props.mode||MediaTypes.JSON,theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":this.showHintHandler,"Ctrl-Space":this.showHintHandler},hintOptions:{id:this.props.id,completeSingle:!1,schema:this.props.schema},lint:{id:this.props.id,schema:this.props.schema,setError:t}}}))}}export default asField(CodemirrorInput);
|
|
50
|
+
//# sourceMappingURL=CodemirrorInput.js.map
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import type { FormApi, FormState } from 'informed';
|
|
3
|
+
import type { SecurityDetails } from '../../types';
|
|
4
|
+
import type { ProStore } from '../../services';
|
|
5
|
+
import type { OperationModel, Server } from '../../redoc-lib';
|
|
6
|
+
import type { OpenApiResponseData } from './ResponsePanel';
|
|
7
|
+
export declare type RequestAndResponseType = {
|
|
8
|
+
request: Record<string, unknown>;
|
|
9
|
+
response: OpenApiResponseData;
|
|
10
|
+
};
|
|
11
|
+
export interface ConsoleProps {
|
|
12
|
+
store: ProStore;
|
|
13
|
+
operation: OperationModel;
|
|
14
|
+
className?: string;
|
|
15
|
+
rootElement?: HTMLElement | null;
|
|
16
|
+
onClose?: () => void;
|
|
17
|
+
properties?: any;
|
|
18
|
+
securityDefaults?: Record<string, SecurityDetails | string>;
|
|
19
|
+
onResponse?: (arg: RequestAndResponseType) => void;
|
|
20
|
+
}
|
|
21
|
+
export interface ConsoleState {
|
|
22
|
+
form: FormState<any>;
|
|
23
|
+
shaking: boolean;
|
|
24
|
+
loading: boolean;
|
|
25
|
+
activeTab: number;
|
|
26
|
+
error?: Error & {
|
|
27
|
+
response?: OpenApiResponseData;
|
|
28
|
+
};
|
|
29
|
+
resolvedRawSpec?: GenericObject;
|
|
30
|
+
response?: OpenApiResponseData;
|
|
31
|
+
time?: number;
|
|
32
|
+
server: Server;
|
|
33
|
+
}
|
|
34
|
+
export declare class Console extends Component<ConsoleProps, ConsoleState> {
|
|
35
|
+
formApi: FormApi | undefined;
|
|
36
|
+
constructor(props: ConsoleProps);
|
|
37
|
+
setFormApi: (formApi: FormApi, { values, ...rest }?: FormState<import("informed").FormValues>) => void;
|
|
38
|
+
handleChange: ({ values, ...rest }: ConsoleState['form']) => void;
|
|
39
|
+
handleTabChange: (idx: number) => void;
|
|
40
|
+
handleServerChange: (server: Server) => void;
|
|
41
|
+
handleExecute: () => Promise<void>;
|
|
42
|
+
componentDidMount(): Promise<void>;
|
|
43
|
+
componentDidUpdate(prevProps: Readonly<ConsoleProps>): void;
|
|
44
|
+
render(): JSX.Element;
|
|
45
|
+
renderRequest(): JSX.Element;
|
|
46
|
+
renderResponse(): JSX.Element;
|
|
47
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var __decorate=this&&this.__decorate||function(e,t,r,o){var s,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var i=e.length-1;i>=0;i--)(s=e[i])&&(n=(a<3?s(n):a>3?s(t,r,n):s(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},__awaiter=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(s,a){function n(e){try{l(o.next(e))}catch(e){a(e)}}function i(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(n,i)}l((o=o.apply(e,t||[])).next())}))},__rest=this&&this.__rest||function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(r[o[s]]=e[o[s]])}return r};import{Form,useField}from"informed";import{observer}from"mobx-react";import Swagger from"swagger-client";import React,{Component,useContext}from"react";import{unescapeFormId}from"../../utils";import{JsonPointer,StoreContext}from"../../redoc-lib";import{RenderHook}from"../../redoc-lib/src/components/RenderHook";import{l}from"../../redoc-lib/src/services/Labels";import{Accordion,StyledCodeHeader}from"../Panel";import{OAuth2}from"../../services/OAuth2";import{isFileUploadMime}from"../common/FileUpload/helper";import{OperationParameters}from"../OperationParameters";import{useDimensions}from"../../hooks";import{AnalyticsEventType}from"../../events";import{getFileNameFromHeaders,getParameters,makeRequestInterceptor,unescapeQueryParams,updateStorage,requiredValidator}from"./utils";import{AuthPanel}from"./AuthPanel";import{RequestBody}from"./RequestBody/RequestBody";import{ResponsePanel}from"./ResponsePanel";import{ActionPanel}from"./ActionPanel";import{ServersDropdown}from"./ServersDropdown";import{TryItPanel}from"./TryItPanel";import{ConsoleTabs}from"./ConsoleTabs";import{CloseButton,ConsoleBody,ConsoleWrap}from"./styled";function normalizeUrlProtocol(e){return e.startsWith("//")?"https:"+e:e}const flexColumn={flex:1,display:"flex",flexDirection:"column"};let Console=class extends Component{constructor(e){super(e),Object.defineProperty(this,"formApi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"setFormApi",{enumerable:!0,configurable:!0,writable:!0,value:(e,t=e.getState())=>{var{values:r}=t,o=__rest(t,["values"]);this.formApi=e,setTimeout((()=>{const e=Object.assign(Object.assign({},o),{values:Object.assign(Object.assign({},r),{query:unescapeQueryParams(r.query||{})})});this.setState({form:e})}),0)}}),Object.defineProperty(this,"handleChange",{enumerable:!0,configurable:!0,writable:!0,value:e=>{var{values:t}=e,r=__rest(e,["values"]);const o=Object.assign(Object.assign({},r),{values:Object.assign(Object.assign({},t),{query:unescapeQueryParams(t.query||{})})});this.setState({form:o}),updateStorage(o),this.props.operation.setRequestValues(t)}}),Object.defineProperty(this,"handleTabChange",{enumerable:!0,configurable:!0,writable:!0,value:e=>{this.setState({activeTab:e})}}),Object.defineProperty(this,"handleServerChange",{enumerable:!0,configurable:!0,writable:!0,value:e=>{this.setState({server:e}),this.props.operation.setActiveServer(e)}}),Object.defineProperty(this,"handleExecute",{enumerable:!0,configurable:!0,writable:!0,value:()=>__awaiter(this,void 0,void 0,(function*(){var e,t,r,o,s,a,n,i;const{store:l,operation:c,onResponse:u}=this.props,{values:p,invalid:d}=this.state.form;if(null===(e=this.formApi)||void 0===e||e.submitForm(),d)return this.setState({shaking:!0}),setTimeout((()=>this.setState({shaking:!1})),1e3),void(null===(r=null===(t=null==l?void 0:l.options.events)||void 0===t?void 0:t.tryItSent)||void 0===r||r.call(t,{eventType:AnalyticsEventType.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:c.operationId,operationPath:c.path,operationHttpVerb:c.httpVerb,operationSummary:c.description}));const{servers:h,requestBody:m}=this.props.operation,v=m&&m.content&&m.content.active&&m.content.active.name||"";let y=p.body;if(/json/.test(v))try{y=JSON.parse(y)}catch(e){console.error(e)}this.setState({loading:!0});const f=this.state.resolvedRawSpec,b=(c.httpVerb||"").toLowerCase();if(!h)throw console.error("Servers are not specified in your OpenAPI file. You can't use Try It Out console without specifying servers. If you use OpenAPI 2, make sure you configured host and basepath"),new Error("Servers are not specified");const g=h.find((e=>this.state.server.url.endsWith(e.url.endsWith("/")?e.url.substring(0,e.url.length-1):e.url))),O=Date.now(),P=!!window.document.documentMode;let R,j=p.auth;if(p.auth){const e=Object.keys(p.auth)[0],t=unescapeFormId(e);R=Object.assign(Object.assign({},f),{components:Object.assign(Object.assign({},null==f?void 0:f.components),{securitySchemes:Object.assign(Object.assign({},null==f?void 0:f.components.securitySchemes),{[t]:Object.assign(Object.assign({},null==f?void 0:f.components.securitySchemes[t]),{type:"openIdConnect"===(null==f?void 0:f.components.securitySchemes[t].type)?"oauth2":null==f?void 0:f.components.securitySchemes[t].type})})})}),j=Object.assign(Object.assign({},j),{[t]:j[e]})}else R=Object.assign({},f);R.servers=h;const S=l.options.corsProxyUrl;S&&h.length&&(R.servers=h.map((e=>Object.assign(Object.assign({},e),{url:S+normalizeUrlProtocol(e.url)}))),R.paths=Object.assign(Object.assign({},R.paths),{[c.path]:Object.assign(Object.assign({},R.paths[c.path]),{[b]:Object.assign(Object.assign({},R.paths[c.path][b]),{servers:void 0}),servers:void 0})}));const C=(null===(s=null===(o=null==m?void 0:m.content)||void 0===o?void 0:o.active)||void 0===s?void 0:s.name)||null;if(C&&y&&isFileUploadMime(C)){const e=Object.values(y);y=e.length>1?e:e[0]}const w={userFetch:P&&require("cross-fetch").fetch,server:S?S+normalizeUrlProtocol(g.url):g.url,serverVariables:this.state.server.variables,spec:R,pathName:c.path,method:c.httpVerb,parameters:Object.assign(Object.assign(Object.assign(Object.assign({},p.path),p.query),p.header),p.cookie),securities:{authorized:j},requestBody:y,requestContentType:C,responseContentType:(null===(a=p.header)||void 0===a?void 0:a.Accept)||null,requestInterceptor:makeRequestInterceptor(l.options,c,null==j?void 0:j.Authorization)};try{const e=yield Swagger.execute(w),t=null==e?void 0:e.data;t instanceof Blob&&(isFileUploadMime(t.type)&&(e.fileInfo={rawData:t,fileName:getFileNameFromHeaders(e.headers)}),e.data=yield t.text()),null==u||u({request:w,response:e}),this.setState({response:e,error:void 0})}catch(e){e&&e.response&&e.response.data instanceof Blob&&(e.response.data=yield e.response.data.text(),null==u||u({request:w,response:e.response})),this.setState({response:void 0,error:e})}finally{this.setState({loading:!1,activeTab:1,time:Date.now()-O}),null===(i=null===(n=null==l?void 0:l.options.events)||void 0===n?void 0:n.tryItSent)||void 0===i||i.call(n,{eventType:AnalyticsEventType.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:c.operationId,operationPath:c.path,operationHttpVerb:c.httpVerb,operationSummary:c.description})}}))}),this.state={form:{values:{path:getParameters(e.operation.parameters,"path"),cookie:getParameters(e.operation.parameters,"cookie"),header:getParameters(e.operation.parameters,"header"),query:getParameters(e.operation.parameters,"query")}},shaking:!1,loading:!1,activeTab:0,server:{}}}componentDidMount(){var e;return __awaiter(this,void 0,void 0,(function*(){const{store:t,operation:r}=this.props,o=yield t.dereferenceSpecForTryIt(r);this.setState({resolvedRawSpec:o}),null===(e=this.formApi)||void 0===e||e.setValues({})}))}componentDidUpdate(e){e.operation!==this.props.operation&&this.setState({response:void 0,error:void 0,activeTab:0})}render(){const{operation:e,className:t,rootElement:r}=this.props,{shaking:o,activeTab:s,form:a,response:n,loading:i,error:l}=this.state,c=!(!n&&!l);return React.createElement(ConsoleWrapHook,{shaking:o,className:t,rootElement:r},React.createElement(StyledCodeHeader,null,React.createElement(ConsoleTabs,{active:s,hasResponse:c,onChange:this.handleTabChange}),this.props.onClose&&React.createElement(CloseButton,{onClick:this.props.onClose}," ✕ ")),React.createElement(ConsoleBody,{hidden:0!==s,"data-cy":"console-request-body"},this.renderRequest()),React.createElement(ConsoleBody,{hidden:1!==s,"data-cy":"console-response-body"},this.renderResponse()),React.createElement(ActionPanel,{hasResponse:c,params:a.values,operation:e,loading:i,execute:this.handleExecute}))}renderRequest(){var e;const{operation:t,store:r,properties:o,securityDefaults:s}=this.props,{form:a,resolvedRawSpec:n,server:i}=this.state,c=a.errors||{},u=c.path||c.cookie||c.header||c.query,p=n&&JsonPointer.get(n,t.pointer);let d=a.values&&a.values.auth&&Object.keys(a.values.auth)[0];d&&a.values.auth[d]||(d=void 0),!d||void 0===a.values.auth[d].token&&void 0===a.values.auth[d].client_id&&void 0===a.values.auth[d].client_secret||a.values.auth[d].token&&a.values.auth[d].token.access_token||(d=void 0),d&&null!=a.values.auth[d].username&&(a.values.auth[d].username&&a.values.auth[d].password||(d=void 0));const h=t.parameters||[],m=null===(e=null==r?void 0:r.options.hooks)||void 0===e?void 0:e.ReplaceTryItSecurityPanel;return!n&&React.createElement(React.Fragment,null,"Loading...")||React.createElement(Form,{onChange:this.handleChange,getApi:this.setFormApi,style:Object.assign(Object.assign({},flexColumn),{margin:0})},React.createElement(ServersDropdown,{operation:t,onChange:this.handleServerChange}),React.createElement(Accordion,{initialActiveIdx:t.security.length&&d?1:0},t.security.length&&this.formApi&&React.createElement(TryItPanel,{header:l("tryItAuth"),"data-cy":"security-trigger",error:!d&&!!c.auth,success:!!d,renderChildrenHidden:!0},m?React.createElement(AuthPanelHook,{field:"auth",validate:requiredValidator},(e=>React.createElement(RenderHook,{Hook:m,props:{server:i,operation:t,onChange:e,OAuth2:OAuth2}}))):React.createElement(AuthPanel,{formApi:this.formApi,form:a,operation:t,activeServer:i.url,authCorsProxyUrl:r.options.authCorsProxyUrl,securityDefaults:s}))||null,t.requestBody&&this.formApi&&React.createElement(TryItPanel,{header:l("tryItBody"),"data-cy":"body-trigger",error:!!c.body,renderChildrenHidden:!0},React.createElement(RequestBody,{validate:allowBodyErrors,formApi:this.formApi,body:t.requestBody,id:t.id,resolvedBody:null==p?void 0:p.requestBody,properties:o}))||null,h.length&&React.createElement(TryItPanel,{header:l("tryItParameters"),"data-cy":"parameters-trigger",error:u,renderChildrenHidden:!0},React.createElement(OperationParameters,{operation:t,values:a.values,errors:a.errors||{}}))||null))}renderResponse(){const{response:e,error:t,time:r}=this.state;return React.createElement(ResponsePanel,{response:e,error:t,time:r})}};Console=__decorate([observer],Console);export{Console};function allowBodyErrors(){}function ConsoleWrapHook(e){const{shaking:t,className:r,children:o,rootElement:s}=e,[a]=useDimensions(s),n=useContext(StoreContext);return React.createElement(ConsoleWrap,{scrollYOffset:null==n?void 0:n.options.scrollYOffset,shaking:t,className:r,"data-cy":"console",fullWidth:null==a?void 0:a.width},o)}function AuthPanelHook(e){const{fieldApi:t,render:r,userProps:o}=useField(Object.assign({},e)),{setValue:s}=t,{children:a}=o;return r(React.createElement(React.Fragment,null,a(s)))}
|
|
2
|
+
//# sourceMappingURL=Console.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,o,n){return new(o||(o=Promise))((function(s,r){function i(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(i,a)}l((n=n.apply(e,t||[])).next())}))};import React,{useContext,useState,useEffect}from"react";import{useDimensions}from"../../hooks";import{CodeHeader}from"../Panel";import{StoreContext}from"../../redoc-lib";import{ConsoleWrap}from"./styled";export function Console(e){const[t,o]=useState({}),n=useContext(StoreContext),[s]=useDimensions(e.rootElement);return useEffect((()=>{(()=>{__awaiter(this,void 0,void 0,(function*(){const e=yield import("./Console");o({Console:e.Console})}))})()}),[]),t.Console?React.createElement(t.Console,Object.assign({},e)):React.createElement(ConsoleWrap,{scrollYOffset:null==n?void 0:n.options.scrollYOffset,className:e.className,fullWidth:null==s?void 0:s.width},React.createElement(CodeHeader,null,"Loading..."))}
|
|
2
|
+
//# sourceMappingURL=ConsoleLazy.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import React from"react";import{TabsWrap,Tab}from"./styled";export function ConsoleTabs({onChange:e,active:t,hasResponse:a}){return React.createElement(TabsWrap,null,React.createElement(Tab,{onClick:()=>e(0),active:0===t},a?"Edit Request":"Request"),React.createElement(Tab,{onClick:()=>a&&e(1),active:1===t,disabled:!a}," ","Response"," "))}
|
|
2
|
+
//# sourceMappingURL=ConsoleTabs.js.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import styled,{css}from"styled-components";export const TabsWrap=styled.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
font-size: 12px;
|
|
4
|
+
button {
|
|
5
|
+
margin: 0;
|
|
6
|
+
}
|
|
7
|
+
`;export const Tab=styled.button`
|
|
8
|
+
outline: none;
|
|
9
|
+
border: none;
|
|
10
|
+
background-color: var(--panel-try-it-tabs-background-color);
|
|
11
|
+
text-align: center;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
color: var(--panel-try-it-tabs-text-color);
|
|
14
|
+
min-width: 80px;
|
|
15
|
+
min-height: 30px;
|
|
16
|
+
border-radius: var(--border-radius);
|
|
17
|
+
font-size: var(--panel-try-it-tabs-font-size);
|
|
18
|
+
font-family: var(--panel-try-it-tabs-font-family);
|
|
19
|
+
font-weight: var(--panel-try-it-tabs-font-weight);
|
|
20
|
+
padding: 0 10px;
|
|
21
|
+
border-bottom: 4px solid var(--panel-try-it-tabs-border-color);
|
|
22
|
+
|
|
23
|
+
&:first-child {
|
|
24
|
+
border-radius: var(--border-radius) 0 0 var(--border-radius);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:last-child {
|
|
28
|
+
border-radius: 0 var(--border-radius) var(--border-radius) 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:hover:not(:disabled) {
|
|
32
|
+
border-color: var(--panel-try-it-tabs-hover-border-color);
|
|
33
|
+
background-color: var(--panel-try-it-tabs-hover-background-color);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
${({active:r})=>r&&css`
|
|
37
|
+
border-color: var(--panel-try-it-tabs-active-border-color);
|
|
38
|
+
background-color: var(--panel-try-it-tabs-active-background-color);
|
|
39
|
+
`||""}
|
|
40
|
+
|
|
41
|
+
${({disabled:r})=>r&&css`
|
|
42
|
+
cursor: default;
|
|
43
|
+
border-color: var(--panel-try-it-tabs-disables-border-color)
|
|
44
|
+
background-color: var(--panel-try-it-tabs-disabled-background-color);
|
|
45
|
+
color: var(--panel-try-it-tabs-disabled-text-color);
|
|
46
|
+
`||""}
|
|
47
|
+
`;
|
|
48
|
+
//# sourceMappingURL=styled.js.map
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ChangeEvent, Context } from 'react';
|
|
3
|
+
import type { FormApi, FormState } from 'informed';
|
|
4
|
+
import type { InputActionButtonProps } from '../common/TextField';
|
|
5
|
+
import type { SecurityDetails } from '../../types';
|
|
6
|
+
import type { RedocProNormalizedOptions } from '../../services';
|
|
7
|
+
export interface OAuth2FlowProps {
|
|
8
|
+
authorizationUrl: string;
|
|
9
|
+
tokenUrl?: string;
|
|
10
|
+
usePkce?: {
|
|
11
|
+
disableManualConfiguration: boolean;
|
|
12
|
+
hideClientSecretInput: boolean;
|
|
13
|
+
};
|
|
14
|
+
authCorsProxyUrl: Maybe<string>;
|
|
15
|
+
scopes: string[];
|
|
16
|
+
server: string;
|
|
17
|
+
id: string;
|
|
18
|
+
form: FormState;
|
|
19
|
+
formApi: FormApi;
|
|
20
|
+
flow: 'implicit' | 'authorizationCode';
|
|
21
|
+
tokenEndpointAuthMethod?: string | string[];
|
|
22
|
+
clientId?: string;
|
|
23
|
+
defaultValues?: SecurityDetails;
|
|
24
|
+
}
|
|
25
|
+
interface OAuth2FlowState {
|
|
26
|
+
error: string | null;
|
|
27
|
+
loading: boolean;
|
|
28
|
+
showPkceOptions: boolean;
|
|
29
|
+
codeVerifier?: string;
|
|
30
|
+
codeChallenge?: string;
|
|
31
|
+
validCodeChallenge?: string;
|
|
32
|
+
}
|
|
33
|
+
export declare class OAuth2Flow extends React.Component<OAuth2FlowProps, OAuth2FlowState> {
|
|
34
|
+
static contextType: Context<RedocProNormalizedOptions>;
|
|
35
|
+
context: RedocProNormalizedOptions;
|
|
36
|
+
state: OAuth2FlowState;
|
|
37
|
+
get values(): {
|
|
38
|
+
client_id: string;
|
|
39
|
+
client_secret: string;
|
|
40
|
+
scopes: string[];
|
|
41
|
+
token: {
|
|
42
|
+
access_token: string;
|
|
43
|
+
token_type: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
get errors(): GenericObject;
|
|
47
|
+
get pkceInputActionButtonProps(): InputActionButtonProps | undefined;
|
|
48
|
+
componentDidMount(): void;
|
|
49
|
+
handleAuthorize(_authorizationUrl: string): void;
|
|
50
|
+
handleLogout(): void;
|
|
51
|
+
handleCancel(): void;
|
|
52
|
+
clearToken: () => void;
|
|
53
|
+
togglePkceOptions: () => void;
|
|
54
|
+
handleCodeVerifierChange: ({ target: { value: codeVerifier }, }: ChangeEvent<HTMLInputElement>) => Promise<void>;
|
|
55
|
+
render(): JSX.Element;
|
|
56
|
+
}
|
|
57
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,o,r){return new(o||(o=Promise))((function(i,l){function n(e){try{s(r.next(e))}catch(e){l(e)}}function a(e){try{s(r.throw(e))}catch(e){l(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(n,a)}s((r=r.apply(e,t||[])).next())}))};import React from"react";import styled from"styled-components";import{Button}from"@redocly/theme";import{OptionsContext}from"../../redoc-lib";import{LinearProgress}from"../common/LinearProgress";import{FormControl,FormLabel,FormError,FormWrapper,FormWarning}from"../common/form";import{FormDropdown,FormTextField,TextField}from"../common/TextField";import{Checkbox}from"../common/Checkbox";import{OAuth2,deriveCodeChallenge}from"../../services/OAuth2";import{fromSessionStorage,getSecurityDetailsOptions}from"../../utils";import{isEmptyObject,randString}from"../../services/utils";import{getOAuth2TokenEndpointAuthHeader,normalizeUrlProtocol,validateTokenEndpointMethod}from"./utils";import Scope from"./Scope";function requiredValidator(e){if(!e)return"Field is required"}export class OAuth2Flow extends React.Component{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:{error:null,loading:!1,showPkceOptions:!1}}),Object.defineProperty(this,"clearToken",{enumerable:!0,configurable:!0,writable:!0,value:()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,"")}}),Object.defineProperty(this,"togglePkceOptions",{enumerable:!0,configurable:!0,writable:!0,value:()=>{this.setState((({showPkceOptions:e})=>({showPkceOptions:!e})))}}),Object.defineProperty(this,"handleCodeVerifierChange",{enumerable:!0,configurable:!0,writable:!0,value:({target:{value:e}})=>__awaiter(this,void 0,void 0,(function*(){const t=yield deriveCodeChallenge(e);this.setState({codeVerifier:e,validCodeChallenge:t})}))})}get values(){var e,t;return(null===(t=null===(e=this.props.form.values)||void 0===e?void 0:e.auth)||void 0===t?void 0:t[this.props.id])||{}}get errors(){var e,t;return(null===(t=null===(e=this.props.form.errors)||void 0===e?void 0:e.auth)||void 0===t?void 0:t[this.props.id])||{}}get pkceInputActionButtonProps(){if(void 0!==this.state.codeVerifier&&this.state.codeChallenge!==this.state.validCodeChallenge)return{label:"sync",onClick:()=>{this.state.codeVerifier&&this.setState({codeChallenge:this.state.validCodeChallenge})}}}componentDidMount(){if(this.props.usePkce){const e=randString(43);deriveCodeChallenge(e).then((t=>{this.setState({codeVerifier:e,codeChallenge:t,validCodeChallenge:t})}))}}handleAuthorize(e){if(!e)return;this.props.formApi.validate();const{flow:t,usePkce:o,id:r,tokenUrl:i,authCorsProxyUrl:l,tokenEndpointAuthMethod:n}=this.props;if(!isEmptyObject(this.errors))return;this.setState({loading:!0,error:null});const a=l?l+normalizeUrlProtocol(e):e,s=l&&i?l+normalizeUrlProtocol(i):i,c=this.props.formApi.getValue(`auth.${r}.scopes`),u={authorizationUrl:a.startsWith("http")?a:this.props.server+a,clientId:this.values.client_id,scopes:c,redirectUri:this.context.oAuth2RedirectURI,routingBasePath:this.context.routingBasePath,successCallback:e=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,e),this.setState({loading:!1,error:null})},errorCallback:e=>{this.setState({loading:!1,error:(null==e?void 0:e.message)||"Failed to retrieve the access token"})}};"implicit"===t&&OAuth2.authorizeImplicit(u),validateTokenEndpointMethod(n)?"authorizationCode"===t&&OAuth2.authorizeAuthorizationCode(Object.assign(Object.assign(Object.assign({},u),{tokenUrl:(null==s?void 0:s.startsWith("http"))?s:this.props.server+s,clientSecret:this.values.client_secret,extraHeaders:getOAuth2TokenEndpointAuthHeader({authMethod:n,clientId:this.values.client_id,clientSecret:this.values.client_secret})}),o&&{codeVerifier:this.state.codeVerifier,codeChallenge:this.state.codeChallenge})):console.log(`Unsupported token endpoint auth method: ${n}`)}handleLogout(){this.clearToken(),this.setState({error:null})}handleCancel(){this.setState({loading:!1,error:null}),OAuth2.clearRedirectData(this.props.flow)}render(){const{error:e,loading:t}=this.state,{id:o,scopes:r,authorizationUrl:i,flow:l,usePkce:n,defaultValues:a}=this.props;if(!i)return React.createElement(FormError,null,"No flow info");let s=fromSessionStorage(`auth.${o}.token`)||JSON.stringify(null==a?void 0:a.token);s=s?JSON.parse(s):"";const c=getSecurityDetailsOptions(o,"client_id"),u={field:`auth.${o}.client_id`,fullWidth:!0,initialValue:fromSessionStorage(`auth.${o}.client_id`)||this.props.clientId||(null==a?void 0:a.client_id),initValue:fromSessionStorage(`auth.${o}.client_id`)||this.props.clientId||(null==a?void 0:a.client_id),placeholder:"Your OAuth2 app Client ID",validate:requiredValidator,validateOnBlur:!0,validateOnChange:!0};return React.createElement("div",null,React.createElement(FormWrapper,null,React.createElement(FormControl,null,React.createElement(FormLabel,null," Client ID: "),c?React.createElement(FormDropdown,Object.assign({},u,{options:c})):React.createElement(FormTextField,Object.assign({},u,{"data-cy":"client-id-input",panel:"try-it"}))),"authorizationCode"===l&&React.createElement(React.Fragment,null,(!(null==n?void 0:n.hideClientSecretInput)||!n)&&React.createElement(FormControl,null,React.createElement(FormLabel,null,"Client Secret:"),React.createElement(FormTextField,{type:"password",fullWidth:!0,field:`auth.${o}.client_secret`,initialValue:fromSessionStorage(`auth.${o}.client_secret`)||(null==a?void 0:a.client_secret),validateOnBlur:!0,validateOnChange:!0,panel:"try-it","data-cy":"client-secret-input"})),n&&!n.disableManualConfiguration&&React.createElement(PkceOptionsWrapper,null,React.createElement(Checkbox,{id:"pkce-opitons-toggle",label:"Configure PKCE manually",checked:this.state.showPkceOptions,onChange:this.togglePkceOptions,"data-cy":"pkce-options-toggle"}),this.state.showPkceOptions&&React.createElement(PkceDetails,null,React.createElement(FormControl,null,React.createElement(FormLabel,null,"Code Verifier"),React.createElement(TextField,{fullWidth:!0,value:this.state.codeVerifier,onChange:this.handleCodeVerifierChange,panel:"try-it","data-cy":"code-verifier-input"})),React.createElement(FormControl,null,React.createElement(FormLabel,null,"Code Challenge"),React.createElement(TextField,{fullWidth:!0,value:this.state.codeChallenge,onChange:({target:{value:e}})=>{this.setState({codeChallenge:e})},inputActionButton:this.pkceInputActionButtonProps,panel:"try-it","data-cy":"code-challenge-input"}))))),React.createElement(FormTextField,{fullWidth:!0,field:`auth.${o}.token`,type:"hidden",initialValue:s,panel:"try-it"}),React.createElement(Scope,{id:o,scopes:r}),this.values.token&&this.values.token.access_token?React.createElement(FormControl,null,React.createElement(FormLabel,null," Access Token: "),React.createElement(TextField,{disabled:!0,type:"password",fullWidth:!0,value:this.values.token.access_token,panel:"try-it"})):null),React.createElement(ButtonsWrapper,null,this.values.token&&this.values.token.access_token?React.createElement(Button,{fullWidth:!0,onClick:()=>{this.handleLogout()}},"Log out"):t?React.createElement(React.Fragment,null,React.createElement(Button,{fullWidth:!0,onClick:()=>{this.handleCancel()}},"Cancel"),React.createElement(LinearProgress,null)):React.createElement(Button,{fullWidth:!0,disabled:!isEmptyObject(this.errors),onClick:()=>{this.handleAuthorize(i)}},"Authorize")),t||e||!this.values.token||!this.values.token.access_token&&React.createElement(FormWrapper,null,React.createElement(FormControl,null,t?React.createElement(FormWarning,null,"Please, finish your authorization flow or cancel authorization."):e?React.createElement(React.Fragment,null,React.createElement(OriginalErrorMessage,null,React.createElement(FormError,null,e))):this.values.token&&this.values.token.access_token?null:React.createElement(FormWarning,null," No Access Token. Please, Authorize. "))))}}Object.defineProperty(OAuth2Flow,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:OptionsContext});const OriginalErrorMessage=styled.div`
|
|
2
|
+
font-family: var(--font-family-monospaced);
|
|
3
|
+
margin-top: 10px;
|
|
4
|
+
line-height: 1;
|
|
5
|
+
padding-left: 10px;
|
|
6
|
+
border-left: 1px solid gray;
|
|
7
|
+
`,ButtonsWrapper=styled.div`
|
|
8
|
+
margin-bottom: 15px;
|
|
9
|
+
`,PkceOptionsWrapper=styled.div`
|
|
10
|
+
padding: 8px 0 20px;
|
|
11
|
+
`,PkceDetails=styled.div`
|
|
12
|
+
padding: 4px 0;
|
|
13
|
+
`;
|
|
14
|
+
//# sourceMappingURL=OAuth2Flow.js.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SecurityDetails } from '../../types';
|
|
3
|
+
export interface OAuth2TokenInputProps {
|
|
4
|
+
flow: {
|
|
5
|
+
refreshUrl?: string;
|
|
6
|
+
'x-tokenEndpointAuthMethod'?: 'none' | 'client_secret_basic' | string;
|
|
7
|
+
scopes: Record<string, string>;
|
|
8
|
+
tokenUrl: string;
|
|
9
|
+
};
|
|
10
|
+
authCorsProxyUrl: Maybe<string>;
|
|
11
|
+
server: string;
|
|
12
|
+
id: string;
|
|
13
|
+
form: {
|
|
14
|
+
values: any;
|
|
15
|
+
errors: any;
|
|
16
|
+
};
|
|
17
|
+
formApi: any;
|
|
18
|
+
clientId?: string;
|
|
19
|
+
defaultValues?: SecurityDetails;
|
|
20
|
+
}
|
|
21
|
+
interface OAuth2TokenInputState {
|
|
22
|
+
error: string;
|
|
23
|
+
loading: boolean;
|
|
24
|
+
tokenMasked: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare class OAuth2TokenInput extends React.Component<OAuth2TokenInputProps, OAuth2TokenInputState> {
|
|
27
|
+
state: OAuth2TokenInputState;
|
|
28
|
+
get values(): GenericObject;
|
|
29
|
+
get errors(): GenericObject;
|
|
30
|
+
clearToken: () => void;
|
|
31
|
+
toggleTokenMask: () => void;
|
|
32
|
+
requestToken: () => Promise<void>;
|
|
33
|
+
render(): JSX.Element;
|
|
34
|
+
}
|
|
35
|
+
export default OAuth2TokenInput;
|