@apiboost/omnispec 1.0.0
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 +202 -0
- package/README.md +166 -0
- package/core/package.json +5 -0
- package/dist/cjs/asyncapi/index.js +17 -0
- package/dist/cjs/asyncapi/index.js.map +1 -0
- package/dist/cjs/chunks/AsyncApiSpec-TBlyRxTP.js +819 -0
- package/dist/cjs/chunks/AsyncApiSpec-TBlyRxTP.js.map +1 -0
- package/dist/cjs/chunks/Collapsible-BHAHk_Ep.js +7527 -0
- package/dist/cjs/chunks/Collapsible-BHAHk_Ep.js.map +1 -0
- package/dist/cjs/chunks/ErrorBoundary-c1piU8da.js +36 -0
- package/dist/cjs/chunks/ErrorBoundary-c1piU8da.js.map +1 -0
- package/dist/cjs/chunks/OmniSpecRenderer-CE4wxVTL.js +104 -0
- package/dist/cjs/chunks/OmniSpecRenderer-CE4wxVTL.js.map +1 -0
- package/dist/cjs/chunks/OpenApiSpec-D0JtmOVQ.js +3157 -0
- package/dist/cjs/chunks/OpenApiSpec-D0JtmOVQ.js.map +1 -0
- package/dist/cjs/chunks/OpenIdConnectManual-oEnN0QJ-.js +2416 -0
- package/dist/cjs/chunks/OpenIdConnectManual-oEnN0QJ-.js.map +1 -0
- package/dist/cjs/chunks/RendererRegistry-DQ7JBLMT.js +24 -0
- package/dist/cjs/chunks/RendererRegistry-DQ7JBLMT.js.map +1 -0
- package/dist/cjs/chunks/binary-response-CSrPCI-1.js +77 -0
- package/dist/cjs/chunks/binary-response-CSrPCI-1.js.map +1 -0
- package/dist/cjs/chunks/ref-resolver-DWu6Q6E5.js +7108 -0
- package/dist/cjs/chunks/ref-resolver-DWu6Q6E5.js.map +1 -0
- package/dist/cjs/chunks/ssrf-guard-B6T2A7Ho.js +25 -0
- package/dist/cjs/chunks/ssrf-guard-B6T2A7Ho.js.map +1 -0
- package/dist/cjs/chunks/useSpecDetector-A4OwYrmY.js +252 -0
- package/dist/cjs/chunks/useSpecDetector-A4OwYrmY.js.map +1 -0
- package/dist/cjs/chunks/useSpecFetcher-BKz1jHTV.js +13669 -0
- package/dist/cjs/chunks/useSpecFetcher-BKz1jHTV.js.map +1 -0
- package/dist/cjs/core/public.js +198 -0
- package/dist/cjs/core/public.js.map +1 -0
- package/dist/cjs/index.js +36 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/openapi/index.js +19 -0
- package/dist/cjs/openapi/index.js.map +1 -0
- package/dist/cjs/server/index.js +154 -0
- package/dist/cjs/server/index.js.map +1 -0
- package/dist/cjs/wc/index.js +428 -0
- package/dist/cjs/wc/index.js.map +1 -0
- package/dist/esm/asyncapi/index.js +11 -0
- package/dist/esm/asyncapi/index.js.map +1 -0
- package/dist/esm/chunks/AsyncApiSpec-C3lsUpZk.js +817 -0
- package/dist/esm/chunks/AsyncApiSpec-C3lsUpZk.js.map +1 -0
- package/dist/esm/chunks/Collapsible-DA6-nS46.js +7482 -0
- package/dist/esm/chunks/Collapsible-DA6-nS46.js.map +1 -0
- package/dist/esm/chunks/ErrorBoundary-posRNrbt.js +34 -0
- package/dist/esm/chunks/ErrorBoundary-posRNrbt.js.map +1 -0
- package/dist/esm/chunks/OmniSpecRenderer-MqsQFXro.js +102 -0
- package/dist/esm/chunks/OmniSpecRenderer-MqsQFXro.js.map +1 -0
- package/dist/esm/chunks/OpenApiSpec-Cy-oW6jA.js +3153 -0
- package/dist/esm/chunks/OpenApiSpec-Cy-oW6jA.js.map +1 -0
- package/dist/esm/chunks/OpenIdConnectManual-COfITasf.js +2393 -0
- package/dist/esm/chunks/OpenIdConnectManual-COfITasf.js.map +1 -0
- package/dist/esm/chunks/RendererRegistry-zlh-WYbU.js +21 -0
- package/dist/esm/chunks/RendererRegistry-zlh-WYbU.js.map +1 -0
- package/dist/esm/chunks/binary-response-Cre_H-Rt.js +72 -0
- package/dist/esm/chunks/binary-response-Cre_H-Rt.js.map +1 -0
- package/dist/esm/chunks/ref-resolver-BIrHJOjz.js +7105 -0
- package/dist/esm/chunks/ref-resolver-BIrHJOjz.js.map +1 -0
- package/dist/esm/chunks/ssrf-guard-CsZoYdEq.js +23 -0
- package/dist/esm/chunks/ssrf-guard-CsZoYdEq.js.map +1 -0
- package/dist/esm/chunks/useSpecDetector-5SGcKnJx.js +248 -0
- package/dist/esm/chunks/useSpecDetector-5SGcKnJx.js.map +1 -0
- package/dist/esm/chunks/useSpecFetcher-CZvAnU7Z.js +13625 -0
- package/dist/esm/chunks/useSpecFetcher-CZvAnU7Z.js.map +1 -0
- package/dist/esm/core/public.js +102 -0
- package/dist/esm/core/public.js.map +1 -0
- package/dist/esm/index.js +17 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/openapi/index.js +13 -0
- package/dist/esm/openapi/index.js.map +1 -0
- package/dist/esm/server/index.js +152 -0
- package/dist/esm/server/index.js.map +1 -0
- package/dist/esm/wc/index.js +403 -0
- package/dist/esm/wc/index.js.map +1 -0
- package/dist/types/asyncapi/AsyncApiSpec.d.ts +12 -0
- package/dist/types/asyncapi/AsyncApiSpec.d.ts.map +1 -0
- package/dist/types/asyncapi/components/AsyncOverview.d.ts +16 -0
- package/dist/types/asyncapi/components/AsyncOverview.d.ts.map +1 -0
- package/dist/types/asyncapi/components/ChannelDetail.d.ts +19 -0
- package/dist/types/asyncapi/components/ChannelDetail.d.ts.map +1 -0
- package/dist/types/asyncapi/components/ComponentsSection.d.ts +16 -0
- package/dist/types/asyncapi/components/ComponentsSection.d.ts.map +1 -0
- package/dist/types/asyncapi/components/ProtocolBadge.d.ts +16 -0
- package/dist/types/asyncapi/components/ProtocolBadge.d.ts.map +1 -0
- package/dist/types/asyncapi/components/ServerList.d.ts +16 -0
- package/dist/types/asyncapi/components/ServerList.d.ts.map +1 -0
- package/dist/types/asyncapi/hooks/useAsyncApiSpec.d.ts +12 -0
- package/dist/types/asyncapi/hooks/useAsyncApiSpec.d.ts.map +1 -0
- package/dist/types/asyncapi/index.d.ts +11 -0
- package/dist/types/asyncapi/index.d.ts.map +1 -0
- package/dist/types/asyncapi/parser/asyncapi-parser.d.ts +12 -0
- package/dist/types/asyncapi/parser/asyncapi-parser.d.ts.map +1 -0
- package/dist/types/asyncapi/types/asyncapi.types.d.ts +125 -0
- package/dist/types/asyncapi/types/asyncapi.types.d.ts.map +1 -0
- package/dist/types/core/components/Auth/ApiKeyAuth.d.ts +30 -0
- package/dist/types/core/components/Auth/ApiKeyAuth.d.ts.map +1 -0
- package/dist/types/core/components/Auth/AuthPanel.d.ts +18 -0
- package/dist/types/core/components/Auth/AuthPanel.d.ts.map +1 -0
- package/dist/types/core/components/Auth/AuthPanelModal.d.ts +24 -0
- package/dist/types/core/components/Auth/AuthPanelModal.d.ts.map +1 -0
- package/dist/types/core/components/Auth/BasicAuth.d.ts +20 -0
- package/dist/types/core/components/Auth/BasicAuth.d.ts.map +1 -0
- package/dist/types/core/components/Auth/BearerAuth.d.ts +20 -0
- package/dist/types/core/components/Auth/BearerAuth.d.ts.map +1 -0
- package/dist/types/core/components/Auth/OAuth2AuthManual.d.ts +37 -0
- package/dist/types/core/components/Auth/OAuth2AuthManual.d.ts.map +1 -0
- package/dist/types/core/components/Auth/OpenIdConnectManual.d.ts +33 -0
- package/dist/types/core/components/Auth/OpenIdConnectManual.d.ts.map +1 -0
- package/dist/types/core/components/Auth/SecretInput.d.ts +27 -0
- package/dist/types/core/components/Auth/SecretInput.d.ts.map +1 -0
- package/dist/types/core/components/Auth/index.d.ts +16 -0
- package/dist/types/core/components/Auth/index.d.ts.map +1 -0
- package/dist/types/core/components/CodeBlock/CodeBlock.d.ts +32 -0
- package/dist/types/core/components/CodeBlock/CodeBlock.d.ts.map +1 -0
- package/dist/types/core/components/CodeBlock/index.d.ts +12 -0
- package/dist/types/core/components/CodeBlock/index.d.ts.map +1 -0
- package/dist/types/core/components/Layout/DocLayout.d.ts +24 -0
- package/dist/types/core/components/Layout/DocLayout.d.ts.map +1 -0
- package/dist/types/core/components/Layout/MobileDrawerDismissContext.d.ts +20 -0
- package/dist/types/core/components/Layout/MobileDrawerDismissContext.d.ts.map +1 -0
- package/dist/types/core/components/Layout/SpecStatusScreen.d.ts +38 -0
- package/dist/types/core/components/Layout/SpecStatusScreen.d.ts.map +1 -0
- package/dist/types/core/components/Layout/index.d.ts +11 -0
- package/dist/types/core/components/Layout/index.d.ts.map +1 -0
- package/dist/types/core/components/MarkdownRenderer/MarkdownRenderer.d.ts +16 -0
- package/dist/types/core/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -0
- package/dist/types/core/components/MarkdownRenderer/index.d.ts +11 -0
- package/dist/types/core/components/MarkdownRenderer/index.d.ts.map +1 -0
- package/dist/types/core/components/Navigation/CustomNavSection.d.ts +16 -0
- package/dist/types/core/components/Navigation/CustomNavSection.d.ts.map +1 -0
- package/dist/types/core/components/Navigation/NavTree.d.ts +32 -0
- package/dist/types/core/components/Navigation/NavTree.d.ts.map +1 -0
- package/dist/types/core/components/Navigation/SearchBar.d.ts +16 -0
- package/dist/types/core/components/Navigation/SearchBar.d.ts.map +1 -0
- package/dist/types/core/components/Navigation/buildSidebar.d.ts +13 -0
- package/dist/types/core/components/Navigation/buildSidebar.d.ts.map +1 -0
- package/dist/types/core/components/Navigation/index.d.ts +13 -0
- package/dist/types/core/components/Navigation/index.d.ts.map +1 -0
- package/dist/types/core/components/Reference/ReferenceLayout.d.ts +19 -0
- package/dist/types/core/components/Reference/ReferenceLayout.d.ts.map +1 -0
- package/dist/types/core/components/Reference/ReferenceOperationDetail.d.ts +42 -0
- package/dist/types/core/components/Reference/ReferenceOperationDetail.d.ts.map +1 -0
- package/dist/types/core/components/Reference/SamplesPanel.d.ts +33 -0
- package/dist/types/core/components/Reference/SamplesPanel.d.ts.map +1 -0
- package/dist/types/core/components/SchemaViewer/SchemaPresentation.d.ts +147 -0
- package/dist/types/core/components/SchemaViewer/SchemaPresentation.d.ts.map +1 -0
- package/dist/types/core/components/SchemaViewer/SchemaPrimitives.d.ts +66 -0
- package/dist/types/core/components/SchemaViewer/SchemaPrimitives.d.ts.map +1 -0
- package/dist/types/core/components/SchemaViewer/SchemaTable.d.ts +16 -0
- package/dist/types/core/components/SchemaViewer/SchemaTable.d.ts.map +1 -0
- package/dist/types/core/components/SchemaViewer/SchemaTree.d.ts +26 -0
- package/dist/types/core/components/SchemaViewer/SchemaTree.d.ts.map +1 -0
- package/dist/types/core/components/SchemaViewer/index.d.ts +16 -0
- package/dist/types/core/components/SchemaViewer/index.d.ts.map +1 -0
- package/dist/types/core/components/SchemaViewer/schema-style.d.ts +45 -0
- package/dist/types/core/components/SchemaViewer/schema-style.d.ts.map +1 -0
- package/dist/types/core/components/SchemaViewer/schema-utils.d.ts +83 -0
- package/dist/types/core/components/SchemaViewer/schema-utils.d.ts.map +1 -0
- package/dist/types/core/components/TryIt/CodeSamples.d.ts +26 -0
- package/dist/types/core/components/TryIt/CodeSamples.d.ts.map +1 -0
- package/dist/types/core/components/TryIt/CustomHeaders.d.ts +24 -0
- package/dist/types/core/components/TryIt/CustomHeaders.d.ts.map +1 -0
- package/dist/types/core/components/TryIt/InlineTryIt.d.ts +26 -0
- package/dist/types/core/components/TryIt/InlineTryIt.d.ts.map +1 -0
- package/dist/types/core/components/TryIt/ParameterForm.d.ts +34 -0
- package/dist/types/core/components/TryIt/ParameterForm.d.ts.map +1 -0
- package/dist/types/core/components/TryIt/RequestBodyEditor.d.ts +34 -0
- package/dist/types/core/components/TryIt/RequestBodyEditor.d.ts.map +1 -0
- package/dist/types/core/components/TryIt/ResponseViewer.d.ts +18 -0
- package/dist/types/core/components/TryIt/ResponseViewer.d.ts.map +1 -0
- package/dist/types/core/components/TryIt/TryItPanel.d.ts +38 -0
- package/dist/types/core/components/TryIt/TryItPanel.d.ts.map +1 -0
- package/dist/types/core/components/TryIt/code-generators.d.ts +23 -0
- package/dist/types/core/components/TryIt/code-generators.d.ts.map +1 -0
- package/dist/types/core/components/TryIt/curl-generator.d.ts +12 -0
- package/dist/types/core/components/TryIt/curl-generator.d.ts.map +1 -0
- package/dist/types/core/components/TryIt/index.d.ts +16 -0
- package/dist/types/core/components/TryIt/index.d.ts.map +1 -0
- package/dist/types/core/components/common/Badge.d.ts +19 -0
- package/dist/types/core/components/common/Badge.d.ts.map +1 -0
- package/dist/types/core/components/common/Button.d.ts +44 -0
- package/dist/types/core/components/common/Button.d.ts.map +1 -0
- package/dist/types/core/components/common/Collapsible.d.ts +23 -0
- package/dist/types/core/components/common/Collapsible.d.ts.map +1 -0
- package/dist/types/core/components/common/CopyButton.d.ts +16 -0
- package/dist/types/core/components/common/CopyButton.d.ts.map +1 -0
- package/dist/types/core/components/common/ErrorBoundary.d.ts +40 -0
- package/dist/types/core/components/common/ErrorBoundary.d.ts.map +1 -0
- package/dist/types/core/components/common/ErrorMessage.d.ts +16 -0
- package/dist/types/core/components/common/ErrorMessage.d.ts.map +1 -0
- package/dist/types/core/components/common/ExampleSelector.d.ts +29 -0
- package/dist/types/core/components/common/ExampleSelector.d.ts.map +1 -0
- package/dist/types/core/components/common/ExpandableCard.d.ts +27 -0
- package/dist/types/core/components/common/ExpandableCard.d.ts.map +1 -0
- package/dist/types/core/components/common/Icon.d.ts +53 -0
- package/dist/types/core/components/common/Icon.d.ts.map +1 -0
- package/dist/types/core/components/common/LinkableHeading.d.ts +19 -0
- package/dist/types/core/components/common/LinkableHeading.d.ts.map +1 -0
- package/dist/types/core/components/common/LoadingScreen.d.ts +13 -0
- package/dist/types/core/components/common/LoadingScreen.d.ts.map +1 -0
- package/dist/types/core/components/common/MethodBar.d.ts +18 -0
- package/dist/types/core/components/common/MethodBar.d.ts.map +1 -0
- package/dist/types/core/components/common/Modal.d.ts +19 -0
- package/dist/types/core/components/common/Modal.d.ts.map +1 -0
- package/dist/types/core/components/common/ResponsiveColumns.d.ts +17 -0
- package/dist/types/core/components/common/ResponsiveColumns.d.ts.map +1 -0
- package/dist/types/core/components/common/SpecToolbar.d.ts +27 -0
- package/dist/types/core/components/common/SpecToolbar.d.ts.map +1 -0
- package/dist/types/core/components/common/Tabs.d.ts +29 -0
- package/dist/types/core/components/common/Tabs.d.ts.map +1 -0
- package/dist/types/core/components/common/Tooltip.d.ts +17 -0
- package/dist/types/core/components/common/Tooltip.d.ts.map +1 -0
- package/dist/types/core/components/common/UpgradePrompt.d.ts +18 -0
- package/dist/types/core/components/common/UpgradePrompt.d.ts.map +1 -0
- package/dist/types/core/components/common/index.d.ts +18 -0
- package/dist/types/core/components/common/index.d.ts.map +1 -0
- package/dist/types/core/context/AuthContext.d.ts +35 -0
- package/dist/types/core/context/AuthContext.d.ts.map +1 -0
- package/dist/types/core/context/ConfigContext.d.ts +55 -0
- package/dist/types/core/context/ConfigContext.d.ts.map +1 -0
- package/dist/types/core/context/ExpandContext.d.ts +33 -0
- package/dist/types/core/context/ExpandContext.d.ts.map +1 -0
- package/dist/types/core/context/RendererRegistry.d.ts +24 -0
- package/dist/types/core/context/RendererRegistry.d.ts.map +1 -0
- package/dist/types/core/context/index.d.ts +14 -0
- package/dist/types/core/context/index.d.ts.map +1 -0
- package/dist/types/core/hooks/index.d.ts +12 -0
- package/dist/types/core/hooks/index.d.ts.map +1 -0
- package/dist/types/core/hooks/useHashScroll.d.ts +15 -0
- package/dist/types/core/hooks/useHashScroll.d.ts.map +1 -0
- package/dist/types/core/hooks/useScrollSpy.d.ts +33 -0
- package/dist/types/core/hooks/useScrollSpy.d.ts.map +1 -0
- package/dist/types/core/hooks/useSegmentedRouter.d.ts +19 -0
- package/dist/types/core/hooks/useSegmentedRouter.d.ts.map +1 -0
- package/dist/types/core/hooks/useSpecDetector.d.ts +13 -0
- package/dist/types/core/hooks/useSpecDetector.d.ts.map +1 -0
- package/dist/types/core/hooks/useSpecFetcher.d.ts +17 -0
- package/dist/types/core/hooks/useSpecFetcher.d.ts.map +1 -0
- package/dist/types/core/public.d.ts +86 -0
- package/dist/types/core/public.d.ts.map +1 -0
- package/dist/types/core/styles/breakpoints.d.ts +33 -0
- package/dist/types/core/styles/breakpoints.d.ts.map +1 -0
- package/dist/types/core/styles/css.d.ts +17 -0
- package/dist/types/core/styles/css.d.ts.map +1 -0
- package/dist/types/core/styles/styled.d.ts +25 -0
- package/dist/types/core/styles/styled.d.ts.map +1 -0
- package/dist/types/core/themes/ThemeProvider.d.ts +25 -0
- package/dist/types/core/themes/ThemeProvider.d.ts.map +1 -0
- package/dist/types/core/themes/index.d.ts +12 -0
- package/dist/types/core/themes/index.d.ts.map +1 -0
- package/dist/types/core/themes/tokens.d.ts +13 -0
- package/dist/types/core/themes/tokens.d.ts.map +1 -0
- package/dist/types/core/types/auth.types.d.ts +83 -0
- package/dist/types/core/types/auth.types.d.ts.map +1 -0
- package/dist/types/core/types/common.types.d.ts +141 -0
- package/dist/types/core/types/common.types.d.ts.map +1 -0
- package/dist/types/core/types/index.d.ts +16 -0
- package/dist/types/core/types/index.d.ts.map +1 -0
- package/dist/types/core/types/interactive-auth.types.d.ts +37 -0
- package/dist/types/core/types/interactive-auth.types.d.ts.map +1 -0
- package/dist/types/core/types/sidebar-nav.types.d.ts +41 -0
- package/dist/types/core/types/sidebar-nav.types.d.ts.map +1 -0
- package/dist/types/core/types/spec-detection.types.d.ts +26 -0
- package/dist/types/core/types/spec-detection.types.d.ts.map +1 -0
- package/dist/types/core/types/theme.types.d.ts +119 -0
- package/dist/types/core/types/theme.types.d.ts.map +1 -0
- package/dist/types/core/types/try-it.types.d.ts +50 -0
- package/dist/types/core/types/try-it.types.d.ts.map +1 -0
- package/dist/types/core/utils/binary-response.d.ts +24 -0
- package/dist/types/core/utils/binary-response.d.ts.map +1 -0
- package/dist/types/core/utils/detect-spec.d.ts +12 -0
- package/dist/types/core/utils/detect-spec.d.ts.map +1 -0
- package/dist/types/core/utils/direct-client.d.ts +20 -0
- package/dist/types/core/utils/direct-client.d.ts.map +1 -0
- package/dist/types/core/utils/fetch-spec.d.ts +15 -0
- package/dist/types/core/utils/fetch-spec.d.ts.map +1 -0
- package/dist/types/core/utils/index.d.ts +14 -0
- package/dist/types/core/utils/index.d.ts.map +1 -0
- package/dist/types/core/utils/proxy-client.d.ts +19 -0
- package/dist/types/core/utils/proxy-client.d.ts.map +1 -0
- package/dist/types/core/utils/ref-security.d.ts +78 -0
- package/dist/types/core/utils/ref-security.d.ts.map +1 -0
- package/dist/types/core/utils/resolve-download-link.d.ts +23 -0
- package/dist/types/core/utils/resolve-download-link.d.ts.map +1 -0
- package/dist/types/core/utils/sanitize-html.d.ts +16 -0
- package/dist/types/core/utils/sanitize-html.d.ts.map +1 -0
- package/dist/types/core/utils/tryit-storage.d.ts +45 -0
- package/dist/types/core/utils/tryit-storage.d.ts.map +1 -0
- package/dist/types/index.d.ts +29 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/openapi/OpenApiSpec.d.ts +12 -0
- package/dist/types/openapi/OpenApiSpec.d.ts.map +1 -0
- package/dist/types/openapi/components/ApiOverview.d.ts +19 -0
- package/dist/types/openapi/components/ApiOverview.d.ts.map +1 -0
- package/dist/types/openapi/components/CallbacksSection.d.ts +19 -0
- package/dist/types/openapi/components/CallbacksSection.d.ts.map +1 -0
- package/dist/types/openapi/components/ComponentsSection.d.ts +19 -0
- package/dist/types/openapi/components/ComponentsSection.d.ts.map +1 -0
- package/dist/types/openapi/components/EndpointCard.d.ts +20 -0
- package/dist/types/openapi/components/EndpointCard.d.ts.map +1 -0
- package/dist/types/openapi/components/OperationDetail.d.ts +28 -0
- package/dist/types/openapi/components/OperationDetail.d.ts.map +1 -0
- package/dist/types/openapi/components/OperationView.d.ts +19 -0
- package/dist/types/openapi/components/OperationView.d.ts.map +1 -0
- package/dist/types/openapi/components/SegmentedContent.d.ts +22 -0
- package/dist/types/openapi/components/SegmentedContent.d.ts.map +1 -0
- package/dist/types/openapi/components/ServerSelector.d.ts +18 -0
- package/dist/types/openapi/components/ServerSelector.d.ts.map +1 -0
- package/dist/types/openapi/components/TagGroup.d.ts +19 -0
- package/dist/types/openapi/components/TagGroup.d.ts.map +1 -0
- package/dist/types/openapi/hooks/useOpenApiSpec.d.ts +13 -0
- package/dist/types/openapi/hooks/useOpenApiSpec.d.ts.map +1 -0
- package/dist/types/openapi/index.d.ts +11 -0
- package/dist/types/openapi/index.d.ts.map +1 -0
- package/dist/types/openapi/parser/openapi-parser.d.ts +13 -0
- package/dist/types/openapi/parser/openapi-parser.d.ts.map +1 -0
- package/dist/types/openapi/parser/ref-resolver.d.ts +18 -0
- package/dist/types/openapi/parser/ref-resolver.d.ts.map +1 -0
- package/dist/types/openapi/search.d.ts +16 -0
- package/dist/types/openapi/search.d.ts.map +1 -0
- package/dist/types/openapi/types/openapi.types.d.ts +139 -0
- package/dist/types/openapi/types/openapi.types.d.ts.map +1 -0
- package/dist/types/server/index.d.ts +12 -0
- package/dist/types/server/index.d.ts.map +1 -0
- package/dist/types/server/proxy-router.d.ts +44 -0
- package/dist/types/server/proxy-router.d.ts.map +1 -0
- package/dist/types/server/ssrf-guard.d.ts +20 -0
- package/dist/types/server/ssrf-guard.d.ts.map +1 -0
- package/dist/types/test-setup.d.ts +11 -0
- package/dist/types/test-setup.d.ts.map +1 -0
- package/dist/types/unified/OmniSpecRenderer.d.ts +18 -0
- package/dist/types/unified/OmniSpecRenderer.d.ts.map +1 -0
- package/dist/types/unified/index.d.ts +12 -0
- package/dist/types/unified/index.d.ts.map +1 -0
- package/dist/types/wc/OmniSpecRendererElement.d.ts +48 -0
- package/dist/types/wc/OmniSpecRendererElement.d.ts.map +1 -0
- package/dist/types/wc/attribute-bridge.d.ts +96 -0
- package/dist/types/wc/attribute-bridge.d.ts.map +1 -0
- package/dist/types/wc/index.d.ts +42 -0
- package/dist/types/wc/index.d.ts.map +1 -0
- package/dist/types/wc/style-injection.d.ts +24 -0
- package/dist/types/wc/style-injection.d.ts.map +1 -0
- package/dist/wc/standalone.js +3 -0
- package/dist/wc/standalone.js.LICENSE.txt +65 -0
- package/dist/wc/standalone.js.map +1 -0
- package/package.json +167 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
import type { SpecDetectionResult } from '../types/spec-detection.types';
|
|
11
|
+
import type { SpecType } from '../types/spec-detection.types';
|
|
12
|
+
export declare function useSpecDetector(content: string | Record<string, unknown> | null, hintType?: SpecType): SpecDetectionResult | null;
|
|
13
|
+
//# sourceMappingURL=useSpecDetector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSpecDetector.d.ts","sourceRoot":"","sources":["../../../../src/core/hooks/useSpecDetector.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAA;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAG7D,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,EAChD,QAAQ,CAAC,EAAE,QAAQ,GAClB,mBAAmB,GAAG,IAAI,CAQ5B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
import type { LoadingState } from '../types/common.types';
|
|
11
|
+
export interface UseSpecFetcherResult<T> {
|
|
12
|
+
data: T | null;
|
|
13
|
+
state: LoadingState;
|
|
14
|
+
refetch: () => void;
|
|
15
|
+
}
|
|
16
|
+
export declare function useSpecFetcher<T = string>(spec: string | Record<string, unknown>, parse?: (raw: string) => T | Promise<T>): UseSpecFetcherResult<T>;
|
|
17
|
+
//# sourceMappingURL=useSpecFetcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSpecFetcher.d.ts","sourceRoot":"","sources":["../../../../src/core/hooks/useSpecFetcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAGzD,MAAM,WAAW,oBAAoB,CAAC,CAAC;IACrC,IAAI,EAAE,CAAC,GAAG,IAAI,CAAA;IACd,KAAK,EAAE,YAAY,CAAA;IACnB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,wBAAgB,cAAc,CAAC,CAAC,GAAG,MAAM,EACvC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACtC,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GACtC,oBAAoB,CAAC,CAAC,CAAC,CA+BzB"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*
|
|
10
|
+
* Public API for @apiboost/omnispec/core — consumed by @apiboost/omnispec-pro
|
|
11
|
+
* and other extension packages. This barrel export provides the shared
|
|
12
|
+
* infrastructure that Pro renderers and components build on.
|
|
13
|
+
*/
|
|
14
|
+
export { ConfigProvider, useConfig } from './context/ConfigContext';
|
|
15
|
+
export type { ConfigContextValue } from './context/ConfigContext';
|
|
16
|
+
export { AuthProvider, useAuth } from './context/AuthContext';
|
|
17
|
+
export { RendererRegistryProvider, useRendererRegistry } from './context/RendererRegistry';
|
|
18
|
+
export type { RendererRegistryValue } from './context/RendererRegistry';
|
|
19
|
+
export { DocLayout } from './components/Layout/DocLayout';
|
|
20
|
+
export { NavTree } from './components/Navigation/NavTree';
|
|
21
|
+
export type { NavItem } from './components/Navigation/NavTree';
|
|
22
|
+
export { SearchBar } from './components/Navigation/SearchBar';
|
|
23
|
+
export { buildSidebar } from './components/Navigation/buildSidebar';
|
|
24
|
+
export { CustomNavSection } from './components/Navigation/CustomNavSection';
|
|
25
|
+
export { SchemaTree } from './components/SchemaViewer/SchemaTree';
|
|
26
|
+
export { generateExample, schemaToNodes, } from './components/SchemaViewer/schema-utils';
|
|
27
|
+
export type { SchemaNode } from './components/SchemaViewer/schema-utils';
|
|
28
|
+
export { FieldName, SchemaRefLink, FieldDescription, SchemaSectionTitle, SchemaBadge, } from './components/SchemaViewer/SchemaPrimitives';
|
|
29
|
+
export type { SchemaBadgeVariant } from './components/SchemaViewer/SchemaPrimitives';
|
|
30
|
+
export { DEFAULT_SCHEMA_STYLE, FREE_SCHEMA_STYLES, resolveSchemaStyle, } from './components/SchemaViewer/schema-style';
|
|
31
|
+
export type { SchemaStyle } from './components/SchemaViewer/schema-style';
|
|
32
|
+
export { SpecStatusScreen } from './components/Layout/SpecStatusScreen';
|
|
33
|
+
export { PresentationContainer, PresentationRow, PresentationChildren, SchemaPropRow, SchemaPropChildren, PropName, PropType, PropFormat, PropReq, PropRequiredStar, PropDesc, PropDefault, EnumList, EnumLabel, EnumItem, } from './components/SchemaViewer/SchemaPresentation';
|
|
34
|
+
export { CodeBlock } from './components/CodeBlock';
|
|
35
|
+
export { MarkdownRenderer } from './components/MarkdownRenderer/MarkdownRenderer';
|
|
36
|
+
export { ReferenceLayout } from './components/Reference/ReferenceLayout';
|
|
37
|
+
export { ReferenceOperationDetail } from './components/Reference/ReferenceOperationDetail';
|
|
38
|
+
export { SamplesPanel } from './components/Reference/SamplesPanel';
|
|
39
|
+
export { Badge } from './components/common/Badge';
|
|
40
|
+
export { Button } from './components/common/Button';
|
|
41
|
+
export type { ButtonVariant } from './components/common/Button';
|
|
42
|
+
export { Collapsible } from './components/common/Collapsible';
|
|
43
|
+
export { CopyButton } from './components/common/CopyButton';
|
|
44
|
+
export { ExpandableCard } from './components/common/ExpandableCard';
|
|
45
|
+
export { Icon } from './components/common/Icon';
|
|
46
|
+
export { LinkableHeading } from './components/common/LinkableHeading';
|
|
47
|
+
export { LoadingScreen } from './components/common/LoadingScreen';
|
|
48
|
+
export { ErrorMessage } from './components/common/ErrorMessage';
|
|
49
|
+
export { MethodBar } from './components/common/MethodBar';
|
|
50
|
+
export { Modal } from './components/common/Modal';
|
|
51
|
+
export { ResponsiveColumns } from './components/common/ResponsiveColumns';
|
|
52
|
+
export { SpecToolbar } from './components/common/SpecToolbar';
|
|
53
|
+
export { Tabs } from './components/common/Tabs';
|
|
54
|
+
export type { TabItem } from './components/common/Tabs';
|
|
55
|
+
export { Tooltip } from './components/common/Tooltip';
|
|
56
|
+
export { UpgradePrompt } from './components/common/UpgradePrompt';
|
|
57
|
+
export { ThemeProvider, useTheme } from './themes/ThemeProvider';
|
|
58
|
+
export { lightTheme, darkTheme } from './themes/tokens';
|
|
59
|
+
export { useSpecFetcher } from './hooks/useSpecFetcher';
|
|
60
|
+
export { useSpecDetector } from './hooks/useSpecDetector';
|
|
61
|
+
export { useHashScroll, requestExpand } from './hooks/useHashScroll';
|
|
62
|
+
export { useScrollSpy, flattenNavItemIds } from './hooks/useScrollSpy';
|
|
63
|
+
export { css, cx, keyframes } from './styles/css';
|
|
64
|
+
export { mq, breakpoints } from './styles/breakpoints';
|
|
65
|
+
export { detectSpecType } from './utils/detect-spec';
|
|
66
|
+
export { fetchSpec } from './utils/fetch-spec';
|
|
67
|
+
export { resolveDownloadLink } from './utils/resolve-download-link';
|
|
68
|
+
export { sendProxiedRequest } from './utils/proxy-client';
|
|
69
|
+
export { sendDirectRequest } from './utils/direct-client';
|
|
70
|
+
export { CodeSamples } from './components/TryIt/CodeSamples';
|
|
71
|
+
export { ResponseViewer } from './components/TryIt/ResponseViewer';
|
|
72
|
+
export type { CodeLanguageId } from './components/TryIt/code-generators';
|
|
73
|
+
export type { BaseSpecProps, SpecResponse, SpecMetadata, SpecLoadedInfo, LoadingState } from './types/common.types';
|
|
74
|
+
export { SpecType } from './types/spec-detection.types';
|
|
75
|
+
export type { SpecDetectionResult, ContentFormat } from './types/spec-detection.types';
|
|
76
|
+
export type { ThemeConfig, ThemeTokens, SlotOverrides } from './types/theme.types';
|
|
77
|
+
export type { AuthScheme, AuthSchemeType, OAuth2Flows, OAuth2Flow, OAuthConfig, AppliedAuthValue } from './types/auth.types';
|
|
78
|
+
export type { InteractiveAuthProps, InteractiveAuthComponent, InteractiveAuthRegistry } from './types/interactive-auth.types';
|
|
79
|
+
export { OAuth2AuthManual } from './components/Auth/OAuth2AuthManual';
|
|
80
|
+
export { OpenIdConnectManual } from './components/Auth/OpenIdConnectManual';
|
|
81
|
+
export { SecretInput } from './components/Auth/SecretInput';
|
|
82
|
+
export { authStyles } from './components/Auth/ApiKeyAuth';
|
|
83
|
+
export type { TryItRequest, TryItResponse, ProxyRequest, ProxyResponse, TryItConfig } from './types/try-it.types';
|
|
84
|
+
export type { SidebarNavItem, SidebarNavGroup, SidebarNavConfig, SidebarNavPlacement } from './types/sidebar-nav.types';
|
|
85
|
+
export { isSidebarNavGroup } from './types/sidebar-nav.types';
|
|
86
|
+
//# sourceMappingURL=public.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/core/public.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACnE,YAAY,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACjE,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BAAoB,CAAA;AAC5H,YAAY,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAA;AAC7H,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAA;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAA;AAE3E,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;AACzD,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AACjH,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AACvH,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Centralized breakpoints for responsive styling.
|
|
12
|
+
*
|
|
13
|
+
* Usage:
|
|
14
|
+
* import { mq } from '@core/styles/breakpoints'
|
|
15
|
+
*
|
|
16
|
+
* const style = css({
|
|
17
|
+
* padding: '1.5rem',
|
|
18
|
+
* [mq.mobile]: {
|
|
19
|
+
* padding: '0.75rem',
|
|
20
|
+
* },
|
|
21
|
+
* })
|
|
22
|
+
*/
|
|
23
|
+
declare const breakpoints: {
|
|
24
|
+
readonly mobile: 1024;
|
|
25
|
+
};
|
|
26
|
+
export declare const mq: {
|
|
27
|
+
/** max-width: 1023px — targets mobile / small screens */
|
|
28
|
+
readonly mobile: `@media (max-width: ${number}px)`;
|
|
29
|
+
/** min-width: 1024px — targets desktop / large screens */
|
|
30
|
+
readonly desktop: "@media (min-width: 1024px)";
|
|
31
|
+
};
|
|
32
|
+
export { breakpoints };
|
|
33
|
+
//# sourceMappingURL=breakpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../../../src/core/styles/breakpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;GAYG;AAEH,QAAA,MAAM,WAAW;;CAEP,CAAA;AAEV,eAAO,MAAM,EAAE;IACb,yDAAyD;;IAEzD,0DAA0D;;CAElD,CAAA;AAEV,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Re-export of @emotion/css.
|
|
12
|
+
*
|
|
13
|
+
* All internal imports should use this module instead of importing
|
|
14
|
+
* `@emotion/css` directly, so that the dependency is centralized.
|
|
15
|
+
*/
|
|
16
|
+
export { css, cx, keyframes } from '@emotion/css';
|
|
17
|
+
//# sourceMappingURL=css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../../../src/core/styles/css.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Re-export of @emotion/styled.
|
|
12
|
+
*
|
|
13
|
+
* All internal imports should use this module instead of importing
|
|
14
|
+
* `@emotion/styled` directly, so that the dependency is centralized. The
|
|
15
|
+
* indirection keeps style injection re-pointable (notably for the Shadow-DOM
|
|
16
|
+
* Web Component wrapper), mirroring `@core/styles/css`.
|
|
17
|
+
*/
|
|
18
|
+
export { default as styled } from '@emotion/styled';
|
|
19
|
+
/**
|
|
20
|
+
* The object-syntax CSS type accepted by `styled(...)` / `css(...)`. Re-exported
|
|
21
|
+
* here so variant-style maps can be typed without importing `@emotion/*`
|
|
22
|
+
* directly, keeping the emotion dependency centralized.
|
|
23
|
+
*/
|
|
24
|
+
export type { CSSObject } from '@emotion/styled';
|
|
25
|
+
//# sourceMappingURL=styled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../../../../src/core/styles/styled.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;GAOG;AAEH,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAEnD;;;;GAIG;AACH,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
import type { ReactNode } from 'react';
|
|
11
|
+
import type { ThemeConfig, ThemeTokens } from '../types/theme.types';
|
|
12
|
+
interface ThemeContextValue {
|
|
13
|
+
tokens: ThemeTokens;
|
|
14
|
+
base: 'light' | 'dark';
|
|
15
|
+
isAuto: boolean;
|
|
16
|
+
toggle: () => void;
|
|
17
|
+
}
|
|
18
|
+
export declare function useTheme(): ThemeContextValue;
|
|
19
|
+
interface ThemeProviderProps {
|
|
20
|
+
theme?: ThemeConfig;
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
}
|
|
23
|
+
export declare function ThemeProvider({ theme, children }: ThemeProviderProps): import("react").JSX.Element;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=ThemeProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../../src/core/themes/ThemeProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAMpE,UAAU,iBAAiB;IACzB,MAAM,EAAE,WAAW,CAAA;IACnB,IAAI,EAAE,OAAO,GAAG,MAAM,CAAA;IACtB,MAAM,EAAE,OAAO,CAAA;IACf,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AASD,wBAAgB,QAAQ,sBAEvB;AAeD,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,WAAW,CAAA;IACnB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,kBAAkB,+BA4DpE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
export { ThemeProvider, useTheme } from './ThemeProvider';
|
|
11
|
+
export { lightTheme, darkTheme } from './tokens';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/themes/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
import type { ThemeTokens } from '../types/theme.types';
|
|
11
|
+
export declare const lightTheme: ThemeTokens;
|
|
12
|
+
export declare const darkTheme: ThemeTokens;
|
|
13
|
+
//# sourceMappingURL=tokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../src/core/themes/tokens.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD,eAAO,MAAM,UAAU,EAAE,WA+FxB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,WA+FvB,CAAA"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
export type AuthSchemeType = 'apiKey' | 'http-basic' | 'http-bearer' | 'oauth2' | 'openIdConnect';
|
|
11
|
+
/**
|
|
12
|
+
* The canonical display label for an auth-scheme type. Use this for the
|
|
13
|
+
* human-facing tab/label rather than the per-scheme `id` (which stays for
|
|
14
|
+
* disambiguating multiple schemes of the same type).
|
|
15
|
+
*/
|
|
16
|
+
export declare function authSchemeLabel(type: AuthSchemeType): string;
|
|
17
|
+
export interface AuthScheme {
|
|
18
|
+
id: string;
|
|
19
|
+
type: AuthSchemeType;
|
|
20
|
+
displayName: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
in?: 'header' | 'query' | 'cookie';
|
|
23
|
+
name?: string;
|
|
24
|
+
scheme?: 'basic' | 'bearer';
|
|
25
|
+
flows?: OAuth2Flows;
|
|
26
|
+
/**
|
|
27
|
+
* OpenID Connect discovery document URL (the `openIdConnectUrl` of an
|
|
28
|
+
* `openIdConnect` security scheme). At Try-It time the OpenID configuration is
|
|
29
|
+
* fetched from here and its `authorization_endpoint` / `token_endpoint` /
|
|
30
|
+
* `scopes_supported` are mapped into {@link flows} so the Authorize panel
|
|
31
|
+
* renders identically to a declared `oauth2` scheme. See ABOSPEC-215.
|
|
32
|
+
*/
|
|
33
|
+
openIdConnectUrl?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Raw scheme-level vendor extensions (any `x-*` key from the security scheme),
|
|
36
|
+
* carried verbatim. The free core does not interpret these; Pro reads them
|
|
37
|
+
* (e.g. `x-tokenEndpointAuthMethod`) for the interactive OAuth flow.
|
|
38
|
+
*/
|
|
39
|
+
extensions?: Record<string, unknown>;
|
|
40
|
+
}
|
|
41
|
+
export interface OAuth2Flows {
|
|
42
|
+
authorizationCode?: OAuth2Flow;
|
|
43
|
+
implicit?: OAuth2Flow;
|
|
44
|
+
clientCredentials?: OAuth2Flow;
|
|
45
|
+
password?: OAuth2Flow;
|
|
46
|
+
}
|
|
47
|
+
export interface OAuth2Flow {
|
|
48
|
+
authorizationUrl?: string;
|
|
49
|
+
tokenUrl?: string;
|
|
50
|
+
refreshUrl?: string;
|
|
51
|
+
scopes: Record<string, string>;
|
|
52
|
+
/**
|
|
53
|
+
* Raw flow-level vendor extensions (any `x-*` key on the flow), carried
|
|
54
|
+
* verbatim. The free core does not interpret these; Pro reads them (e.g.
|
|
55
|
+
* `x-flowVariables`) for the interactive OAuth flow. Kept at the flow level
|
|
56
|
+
* because `x-flowVariables` is per-flow.
|
|
57
|
+
*/
|
|
58
|
+
extensions?: Record<string, unknown>;
|
|
59
|
+
}
|
|
60
|
+
/** Configuration for the interactive OAuth 2.0 Try-It flow. */
|
|
61
|
+
export interface OAuthConfig {
|
|
62
|
+
/**
|
|
63
|
+
* Redirect URI registered with the identity provider. Relative paths
|
|
64
|
+
* resolve against the current origin. Defaults to
|
|
65
|
+
* `{origin}/oauth2-redirect.html`. The callback page must be served from
|
|
66
|
+
* the same origin as the documentation page.
|
|
67
|
+
*/
|
|
68
|
+
redirectUri?: string;
|
|
69
|
+
/** Send PKCE parameters with the authorization-code flow. Defaults to true. */
|
|
70
|
+
usePkce?: boolean;
|
|
71
|
+
}
|
|
72
|
+
export interface AppliedAuthValue {
|
|
73
|
+
schemeId: string;
|
|
74
|
+
headerName: string;
|
|
75
|
+
headerValue: string;
|
|
76
|
+
/**
|
|
77
|
+
* The raw values the user typed (e.g. `{ token }`, `{ username, password }`),
|
|
78
|
+
* kept so the Authorize form can be prefilled when credentials are restored
|
|
79
|
+
* from persistence. Never shown unmasked until the user reveals it.
|
|
80
|
+
*/
|
|
81
|
+
input?: Record<string, string>;
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=auth.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.types.d.ts","sourceRoot":"","sources":["../../../../src/core/types/auth.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,YAAY,GAAG,aAAa,GAAG,QAAQ,GAAG,eAAe,CAAA;AAejG;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAE5D;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,cAAc,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,EAAE,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAA;IAClC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IAC3B,KAAK,CAAC,EAAE,WAAW,CAAA;IACnB;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACrC;AAED,MAAM,WAAW,WAAW;IAC1B,iBAAiB,CAAC,EAAE,UAAU,CAAA;IAC9B,QAAQ,CAAC,EAAE,UAAU,CAAA;IACrB,iBAAiB,CAAC,EAAE,UAAU,CAAA;IAC9B,QAAQ,CAAC,EAAE,UAAU,CAAA;CACtB;AAED,MAAM,WAAW,UAAU;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACrC;AAED,+DAA+D;AAC/D,MAAM,WAAW,WAAW;IAC1B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC/B"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
11
|
+
import type { ThemeConfig, SlotOverrides } from './theme.types';
|
|
12
|
+
import type { SpecType, ContentFormat } from './spec-detection.types';
|
|
13
|
+
import type { TryItRequest, TryItResponse } from './try-it.types';
|
|
14
|
+
import type { SidebarNavConfig } from './sidebar-nav.types';
|
|
15
|
+
import type { OAuthConfig } from './auth.types';
|
|
16
|
+
import type { InteractiveAuthRegistry } from './interactive-auth.types';
|
|
17
|
+
import type { SchemaStyle } from '../components/SchemaViewer/schema-style';
|
|
18
|
+
/** Render-time server override entry (see `BaseSpecProps.servers`). */
|
|
19
|
+
export interface ServerOverride {
|
|
20
|
+
url: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ProFeatures {
|
|
24
|
+
renderers?: Map<string, ComponentType<BaseSpecProps>>;
|
|
25
|
+
premiumThemingEnabled?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Interactive-auth components (OAuth 2.0 "Get Token" flow, OIDC discovery)
|
|
28
|
+
* supplied by Pro, keyed by security-scheme type. When present, `AuthPanel`
|
|
29
|
+
* renders these instead of the free manual shells — unless the consumer opts
|
|
30
|
+
* out with `interactiveOAuth={false}`.
|
|
31
|
+
*/
|
|
32
|
+
interactiveAuth?: InteractiveAuthRegistry;
|
|
33
|
+
/**
|
|
34
|
+
* Unlocks the Pro-only `schemaStyle` presentations (`table`, `card`). Without
|
|
35
|
+
* it, the Free tier renders only `lines` and `tokens`; requesting a Pro-only
|
|
36
|
+
* style resolves gracefully to `lines`.
|
|
37
|
+
*/
|
|
38
|
+
advancedSchemaStyles?: boolean;
|
|
39
|
+
}
|
|
40
|
+
export interface BaseSpecProps {
|
|
41
|
+
spec: string | Record<string, unknown>;
|
|
42
|
+
theme?: ThemeConfig;
|
|
43
|
+
proxyUrl?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Additional headers attached to the request the browser sends TO
|
|
46
|
+
* the configured `proxyUrl`. Useful when the consumer's backend
|
|
47
|
+
* gates requests with a custom header (e.g. an `X-Referer` guard
|
|
48
|
+
* or a CSRF token). Does not affect headers forwarded to the
|
|
49
|
+
* upstream target — those come from the Try-It form.
|
|
50
|
+
*/
|
|
51
|
+
proxyHeaders?: Record<string, string>;
|
|
52
|
+
/**
|
|
53
|
+
* Interactive OAuth 2.0 Authorization Code + PKCE flow for the Try-It
|
|
54
|
+
* Authorize panel. Works with zero config when the host serves the OAuth
|
|
55
|
+
* callback at `/oauth2-redirect.html`; set `oauth.redirectUri` when it is
|
|
56
|
+
* mounted elsewhere (e.g. `/swagger/oauth2-redirect.html`).
|
|
57
|
+
*/
|
|
58
|
+
oauth?: OAuthConfig;
|
|
59
|
+
/**
|
|
60
|
+
* Opt out of the interactive OAuth 2.0 "Get Token" flow (Pro). Defaults to
|
|
61
|
+
* `true` (interactive when Pro is installed). Set to `false` to force the
|
|
62
|
+
* manual token-paste experience even with Pro present. Has no effect without
|
|
63
|
+
* Pro — the free core is manual-paste regardless.
|
|
64
|
+
*/
|
|
65
|
+
interactiveOAuth?: boolean;
|
|
66
|
+
allowTryIt?: boolean;
|
|
67
|
+
/** URL or true (uses spec URL) to show a download button. False/undefined hides it. */
|
|
68
|
+
downloadLink?: string | boolean;
|
|
69
|
+
layout?: 'sidebar' | 'stacked';
|
|
70
|
+
sidebarPosition?: 'left' | 'right';
|
|
71
|
+
tryItLayout?: 'inline' | 'panel';
|
|
72
|
+
/** Whether operations are expanded by default. Defaults to false (compact). */
|
|
73
|
+
defaultExpandOperations?: boolean;
|
|
74
|
+
/** 'compact' renders operations inline. 'reference' renders a three-panel Redocly-style layout. */
|
|
75
|
+
displayMode?: 'compact' | 'reference';
|
|
76
|
+
/**
|
|
77
|
+
* Presentation style for the schema/property tree. `lines` (default) and
|
|
78
|
+
* `tokens` are available to every tier; `table` and `card` require the Pro
|
|
79
|
+
* `advancedSchemaStyles` capability and otherwise fall back to `lines`.
|
|
80
|
+
*/
|
|
81
|
+
schemaStyle?: SchemaStyle;
|
|
82
|
+
/** Origins allowed for external $ref resolution. Same-origin is always allowed. */
|
|
83
|
+
externalRefOrigins?: string[];
|
|
84
|
+
/**
|
|
85
|
+
* Force a single server URL at render time, overriding any `servers` declared
|
|
86
|
+
* in the spec. Use this to point Try-It and code samples at a specific gateway
|
|
87
|
+
* domain (e.g. an Azure APIM instance) without editing the spec. Takes
|
|
88
|
+
* precedence over the `servers` prop and the spec's own servers.
|
|
89
|
+
*/
|
|
90
|
+
serverUrl?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Replace the spec's `servers` list at render time. Rendered in the server
|
|
93
|
+
* selector and used for Try-It / code-sample base URLs. Ignored when
|
|
94
|
+
* `serverUrl` is set. Each entry is a URL with an optional description.
|
|
95
|
+
*/
|
|
96
|
+
servers?: ServerOverride[];
|
|
97
|
+
/**
|
|
98
|
+
* Maximum age, in seconds, for persisted Try-It inputs (parameter values,
|
|
99
|
+
* request bodies, custom headers — stored in localStorage per operation).
|
|
100
|
+
* Entries older than the TTL are discarded on load. Set to `0` to disable
|
|
101
|
+
* Try-It input persistence entirely. Omit for no expiration (inputs persist
|
|
102
|
+
* until browser storage is cleared). Auth credentials are unaffected — they
|
|
103
|
+
* always live in sessionStorage for the tab's lifetime only.
|
|
104
|
+
*/
|
|
105
|
+
tryItPersistTtl?: number;
|
|
106
|
+
/** 'grouped' renders all operations on one page. 'segmented' renders one operation per view.
|
|
107
|
+
* Defaults to auto: grouped for ≤50 operations, segmented for >50. */
|
|
108
|
+
navigationMode?: 'grouped' | 'segmented';
|
|
109
|
+
sidebarNav?: SidebarNavConfig;
|
|
110
|
+
slots?: SlotOverrides;
|
|
111
|
+
onSpecLoaded?: (info: SpecLoadedInfo) => void;
|
|
112
|
+
onTryItRequest?: (request: TryItRequest) => void;
|
|
113
|
+
onTryItResponse?: (response: TryItResponse) => void;
|
|
114
|
+
pro?: ProFeatures;
|
|
115
|
+
className?: string;
|
|
116
|
+
children?: ReactNode;
|
|
117
|
+
}
|
|
118
|
+
export interface SpecLoadedInfo {
|
|
119
|
+
title: string;
|
|
120
|
+
version: string;
|
|
121
|
+
type: SpecType;
|
|
122
|
+
}
|
|
123
|
+
export interface SpecResponse {
|
|
124
|
+
specId: string;
|
|
125
|
+
specType?: SpecType;
|
|
126
|
+
content: string | Record<string, unknown>;
|
|
127
|
+
contentFormat: ContentFormat;
|
|
128
|
+
metadata?: SpecMetadata;
|
|
129
|
+
}
|
|
130
|
+
export interface SpecMetadata {
|
|
131
|
+
name?: string;
|
|
132
|
+
lastUpdated?: string;
|
|
133
|
+
owner?: string;
|
|
134
|
+
environment?: string;
|
|
135
|
+
tags?: string[];
|
|
136
|
+
}
|
|
137
|
+
export interface LoadingState {
|
|
138
|
+
status: 'idle' | 'loading' | 'success' | 'error';
|
|
139
|
+
error?: string;
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=common.types.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B;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,QAAQ,CAAA;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACzC,aAAa,EAAE,aAAa,CAAA;IAC5B,QAAQ,CAAC,EAAE,YAAY,CAAA;CACxB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAA;IAChD,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
export * from './common.types';
|
|
11
|
+
export * from './spec-detection.types';
|
|
12
|
+
export * from './theme.types';
|
|
13
|
+
export * from './auth.types';
|
|
14
|
+
export * from './try-it.types';
|
|
15
|
+
export * from './sidebar-nav.types';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,cAAc,gBAAgB,CAAA;AAC9B,cAAc,wBAAwB,CAAA;AACtC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
import type { ComponentType } from 'react';
|
|
11
|
+
import type { AuthScheme, AppliedAuthValue } from './auth.types';
|
|
12
|
+
/**
|
|
13
|
+
* Props an interactive-auth component receives from `AuthPanel`. Everything else
|
|
14
|
+
* the interactive flow needs (`proxyUrl`, `proxyHeaders`, `oauth`,
|
|
15
|
+
* `externalRefOrigins`) is read from the shared `ConfigContext` via `useConfig()`
|
|
16
|
+
* — deliberately NOT prop-drilled here.
|
|
17
|
+
*
|
|
18
|
+
* Interactive-auth components (the OAuth 2.0 "Get Token" flow, OIDC discovery)
|
|
19
|
+
* live in `@apiboost/omnispec-pro` and are supplied to the free core by value on
|
|
20
|
+
* `ProFeatures.interactiveAuth`. When none is supplied — or the consumer opts out
|
|
21
|
+
* via `interactiveOAuth={false}` — `AuthPanel` renders the free manual shell.
|
|
22
|
+
*/
|
|
23
|
+
export interface InteractiveAuthProps {
|
|
24
|
+
scheme: AuthScheme;
|
|
25
|
+
serverUrl?: string;
|
|
26
|
+
appliedValue?: AppliedAuthValue;
|
|
27
|
+
applied: boolean;
|
|
28
|
+
onApply: (value: AppliedAuthValue) => void;
|
|
29
|
+
onRemove: (schemeId: string) => void;
|
|
30
|
+
}
|
|
31
|
+
export type InteractiveAuthComponent = ComponentType<InteractiveAuthProps>;
|
|
32
|
+
/** Interactive-auth components keyed by security-scheme type, supplied by Pro. */
|
|
33
|
+
export interface InteractiveAuthRegistry {
|
|
34
|
+
oauth2?: InteractiveAuthComponent;
|
|
35
|
+
openIdConnect?: InteractiveAuthComponent;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=interactive-auth.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interactive-auth.types.d.ts","sourceRoot":"","sources":["../../../../src/core/types/interactive-auth.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEhE;;;;;;;;;;GAUG;AACH,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,gBAAgB,CAAA;IAC/B,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAC1C,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;CACrC;AAED,MAAM,MAAM,wBAAwB,GAAG,aAAa,CAAC,oBAAoB,CAAC,CAAA;AAE1E,kFAAkF;AAClF,MAAM,WAAW,uBAAuB;IACtC,MAAM,CAAC,EAAE,wBAAwB,CAAA;IACjC,aAAa,CAAC,EAAE,wBAAwB,CAAA;CACzC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
import type { ReactNode } from 'react';
|
|
11
|
+
export interface SidebarNavItem {
|
|
12
|
+
id: string;
|
|
13
|
+
label: string;
|
|
14
|
+
href?: string;
|
|
15
|
+
target?: '_self' | '_blank';
|
|
16
|
+
icon?: ReactNode;
|
|
17
|
+
badge?: string | ReactNode;
|
|
18
|
+
badgeColor?: string;
|
|
19
|
+
children?: SidebarNavItem[];
|
|
20
|
+
defaultExpanded?: boolean;
|
|
21
|
+
separator?: boolean;
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface SidebarNavGroup {
|
|
25
|
+
id: string;
|
|
26
|
+
label: string;
|
|
27
|
+
items: SidebarNavItem[];
|
|
28
|
+
defaultExpanded?: boolean;
|
|
29
|
+
icon?: ReactNode;
|
|
30
|
+
}
|
|
31
|
+
export type SidebarNavPlacement = 'before' | 'after' | 'replace';
|
|
32
|
+
export interface SidebarNavConfig {
|
|
33
|
+
items: Array<SidebarNavItem | SidebarNavGroup>;
|
|
34
|
+
placement?: SidebarNavPlacement;
|
|
35
|
+
activeId?: string;
|
|
36
|
+
onItemClick?: (item: SidebarNavItem) => void | false;
|
|
37
|
+
showDivider?: boolean;
|
|
38
|
+
heading?: string;
|
|
39
|
+
}
|
|
40
|
+
export declare function isSidebarNavGroup(item: SidebarNavItem | SidebarNavGroup): item is SidebarNavGroup;
|
|
41
|
+
//# sourceMappingURL=sidebar-nav.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar-nav.types.d.ts","sourceRoot":"","sources":["../../../../src/core/types/sidebar-nav.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CA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