@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,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
|
+
import type { ParsedAsyncApiSpec } from '../types/asyncapi.types';
|
|
11
|
+
export declare function parseAsyncApiSpec(specInput: string | Record<string, unknown>): Promise<ParsedAsyncApiSpec>;
|
|
12
|
+
//# sourceMappingURL=asyncapi-parser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncapi-parser.d.ts","sourceRoot":"","sources":["../../../../src/asyncapi/parser/asyncapi-parser.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EACV,kBAAkB,EAMnB,MAAM,yBAAyB,CAAA;AAqEhC,wBAAsB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAuChH"}
|
|
@@ -0,0 +1,125 @@
|
|
|
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 interface ParsedAsyncApiSpec {
|
|
11
|
+
title: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
version: string;
|
|
14
|
+
specVersion: string;
|
|
15
|
+
servers: AsyncApiServer[];
|
|
16
|
+
channels: AsyncApiChannel[];
|
|
17
|
+
components: AsyncApiComponents;
|
|
18
|
+
tags?: Array<{
|
|
19
|
+
name: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
displayName?: string;
|
|
22
|
+
externalDocs?: {
|
|
23
|
+
description?: string;
|
|
24
|
+
url: string;
|
|
25
|
+
};
|
|
26
|
+
}>;
|
|
27
|
+
tagGroups?: Array<{
|
|
28
|
+
name: string;
|
|
29
|
+
tags: string[];
|
|
30
|
+
}>;
|
|
31
|
+
externalDocs?: {
|
|
32
|
+
description?: string;
|
|
33
|
+
url: string;
|
|
34
|
+
};
|
|
35
|
+
contact?: {
|
|
36
|
+
name?: string;
|
|
37
|
+
url?: string;
|
|
38
|
+
email?: string;
|
|
39
|
+
};
|
|
40
|
+
license?: {
|
|
41
|
+
name: string;
|
|
42
|
+
url?: string;
|
|
43
|
+
};
|
|
44
|
+
termsOfService?: string;
|
|
45
|
+
logo?: {
|
|
46
|
+
url: string;
|
|
47
|
+
backgroundColor?: string;
|
|
48
|
+
altText?: string;
|
|
49
|
+
href?: string;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export interface AsyncApiServer {
|
|
53
|
+
name: string;
|
|
54
|
+
url: string;
|
|
55
|
+
protocol: string;
|
|
56
|
+
protocolVersion?: string;
|
|
57
|
+
description?: string;
|
|
58
|
+
variables?: Record<string, {
|
|
59
|
+
default?: string;
|
|
60
|
+
description?: string;
|
|
61
|
+
enum?: string[];
|
|
62
|
+
}>;
|
|
63
|
+
security?: Record<string, string[]>[];
|
|
64
|
+
}
|
|
65
|
+
export interface AsyncApiChannel {
|
|
66
|
+
name: string;
|
|
67
|
+
address: string;
|
|
68
|
+
description?: string;
|
|
69
|
+
operations: AsyncApiOperation[];
|
|
70
|
+
parameters?: Record<string, AsyncApiChannelParameter>;
|
|
71
|
+
bindings?: Record<string, unknown>;
|
|
72
|
+
xInternal?: boolean;
|
|
73
|
+
}
|
|
74
|
+
export interface AsyncApiChannelParameter {
|
|
75
|
+
description?: string;
|
|
76
|
+
schema?: Record<string, unknown>;
|
|
77
|
+
location?: string;
|
|
78
|
+
}
|
|
79
|
+
export interface AsyncApiOperation {
|
|
80
|
+
action: 'send' | 'receive' | 'publish' | 'subscribe';
|
|
81
|
+
operationId?: string;
|
|
82
|
+
summary?: string;
|
|
83
|
+
description?: string;
|
|
84
|
+
message?: AsyncApiMessage;
|
|
85
|
+
tags?: Array<{
|
|
86
|
+
name: string;
|
|
87
|
+
description?: string;
|
|
88
|
+
}>;
|
|
89
|
+
bindings?: Record<string, unknown>;
|
|
90
|
+
xBadges?: Array<{
|
|
91
|
+
name: string;
|
|
92
|
+
color?: string;
|
|
93
|
+
position?: 'before' | 'after';
|
|
94
|
+
}>;
|
|
95
|
+
xInternal?: boolean;
|
|
96
|
+
}
|
|
97
|
+
export interface AsyncApiMessage {
|
|
98
|
+
name?: string;
|
|
99
|
+
title?: string;
|
|
100
|
+
summary?: string;
|
|
101
|
+
description?: string;
|
|
102
|
+
contentType?: string;
|
|
103
|
+
payload?: Record<string, unknown>;
|
|
104
|
+
headers?: Record<string, unknown>;
|
|
105
|
+
correlationId?: {
|
|
106
|
+
description?: string;
|
|
107
|
+
location: string;
|
|
108
|
+
};
|
|
109
|
+
tags?: Array<{
|
|
110
|
+
name: string;
|
|
111
|
+
description?: string;
|
|
112
|
+
}>;
|
|
113
|
+
examples?: Array<{
|
|
114
|
+
name?: string;
|
|
115
|
+
summary?: string;
|
|
116
|
+
payload?: unknown;
|
|
117
|
+
headers?: unknown;
|
|
118
|
+
}>;
|
|
119
|
+
bindings?: Record<string, unknown>;
|
|
120
|
+
}
|
|
121
|
+
export interface AsyncApiComponents {
|
|
122
|
+
schemas: Record<string, Record<string, unknown>>;
|
|
123
|
+
messages: Record<string, AsyncApiMessage>;
|
|
124
|
+
}
|
|
125
|
+
//# sourceMappingURL=asyncapi.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncapi.types.d.ts","sourceRoot":"","sources":["../../../../src/asyncapi/types/asyncapi.types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 { AuthScheme, AppliedAuthValue } from '../../types/auth.types';
|
|
11
|
+
export declare const authStyles: {
|
|
12
|
+
readonly section: string;
|
|
13
|
+
readonly label: string;
|
|
14
|
+
readonly hint: string;
|
|
15
|
+
readonly description: string;
|
|
16
|
+
readonly inputRow: string;
|
|
17
|
+
readonly input: string;
|
|
18
|
+
readonly applyBtn: string;
|
|
19
|
+
readonly removeBtn: string;
|
|
20
|
+
};
|
|
21
|
+
interface ApiKeyAuthProps {
|
|
22
|
+
scheme: AuthScheme;
|
|
23
|
+
onApply: (value: AppliedAuthValue) => void;
|
|
24
|
+
onRemove: (schemeId: string) => void;
|
|
25
|
+
applied?: boolean;
|
|
26
|
+
appliedValue?: AppliedAuthValue;
|
|
27
|
+
}
|
|
28
|
+
export declare function ApiKeyAuth({ scheme, onApply, onRemove, applied, appliedValue }: ApiKeyAuthProps): import("react").JSX.Element;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=ApiKeyAuth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiKeyAuth.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/Auth/ApiKeyAuth.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAI1E,eAAO,MAAM,UAAU;;;;;;;;;CA2Eb,CAAA;AAEV,UAAU,eAAe;IACvB,MAAM,EAAE,UAAU,CAAA;IAClB,OAAO,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAC1C,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,gBAAgB,CAAA;CAChC;AAED,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,eAAe,+BAiD/F"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 { AuthScheme } from '../../types/auth.types';
|
|
11
|
+
interface AuthPanelProps {
|
|
12
|
+
schemes: AuthScheme[];
|
|
13
|
+
/** Selected server URL — forwarded so OAuth2 relative flow URLs resolve. */
|
|
14
|
+
serverUrl?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function AuthPanel({ schemes, serverUrl }: AuthPanelProps): import("react").JSX.Element | null;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=AuthPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthPanel.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/Auth/AuthPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAoB,MAAM,wBAAwB,CAAA;AAc1E,UAAU,cAAc;IACtB,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AA4CD,wBAAgB,SAAS,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,cAAc,sCAiF/D"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
* Renders the Authorization panel inside a modal, driven by AuthContext.
|
|
12
|
+
*
|
|
13
|
+
* The Authorize trigger lives in each Try-It panel header; it calls
|
|
14
|
+
* `openAuthPanel()` from AuthContext, and this single host (rendered once
|
|
15
|
+
* inside AuthProvider) shows the shared modal. Applied credentials are global
|
|
16
|
+
* (AuthContext), so authorizing from any operation's panel affects them all.
|
|
17
|
+
*/
|
|
18
|
+
interface AuthPanelModalProps {
|
|
19
|
+
/** Selected server URL, forwarded so OAuth2 relative flow URLs resolve. */
|
|
20
|
+
serverUrl?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function AuthPanelModal({ serverUrl }?: AuthPanelModalProps): import("react").JSX.Element | null;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=AuthPanelModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthPanelModal.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/Auth/AuthPanelModal.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH;;;;;;;GAOG;AACH,UAAU,mBAAmB;IAC3B,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,GAAE,mBAAwB,sCAUrE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { AuthScheme, AppliedAuthValue } from '../../types/auth.types';
|
|
11
|
+
interface BasicAuthProps {
|
|
12
|
+
scheme: AuthScheme;
|
|
13
|
+
onApply: (value: AppliedAuthValue) => void;
|
|
14
|
+
onRemove: (schemeId: string) => void;
|
|
15
|
+
applied?: boolean;
|
|
16
|
+
appliedValue?: AppliedAuthValue;
|
|
17
|
+
}
|
|
18
|
+
export declare function BasicAuth({ scheme, onApply, onRemove, applied, appliedValue }: BasicAuthProps): import("react").JSX.Element;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=BasicAuth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasicAuth.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/Auth/BasicAuth.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAK1E,UAAU,cAAc;IACtB,MAAM,EAAE,UAAU,CAAA;IAClB,OAAO,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAC1C,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,gBAAgB,CAAA;CAChC;AAQD,wBAAgB,SAAS,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,cAAc,+BA8D7F"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { AuthScheme, AppliedAuthValue } from '../../types/auth.types';
|
|
11
|
+
interface BearerAuthProps {
|
|
12
|
+
scheme: AuthScheme;
|
|
13
|
+
onApply: (value: AppliedAuthValue) => void;
|
|
14
|
+
onRemove: (schemeId: string) => void;
|
|
15
|
+
applied?: boolean;
|
|
16
|
+
appliedValue?: AppliedAuthValue;
|
|
17
|
+
}
|
|
18
|
+
export declare function BearerAuth({ scheme, onApply, onRemove, applied, appliedValue }: BearerAuthProps): import("react").JSX.Element;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=BearerAuth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BearerAuth.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/Auth/BearerAuth.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAK1E,UAAU,eAAe;IACvB,MAAM,EAAE,UAAU,CAAA;IAClB,OAAO,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAC1C,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,gBAAgB,CAAA;CAChC;AAED,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,eAAe,+BAgD/F"}
|
|
@@ -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 { AuthScheme, AppliedAuthValue } from '../../types/auth.types';
|
|
11
|
+
interface OAuth2AuthManualProps {
|
|
12
|
+
scheme: AuthScheme;
|
|
13
|
+
onApply: (value: AppliedAuthValue) => void;
|
|
14
|
+
onRemove: (schemeId: string) => void;
|
|
15
|
+
applied: boolean;
|
|
16
|
+
appliedValue?: AppliedAuthValue;
|
|
17
|
+
/**
|
|
18
|
+
* Currently selected server URL. Carried for parity with {@link OAuth2Auth};
|
|
19
|
+
* the manual shell renders the flow URLs verbatim (no interactive resolution),
|
|
20
|
+
* so it is not used here beyond documenting the contract.
|
|
21
|
+
*/
|
|
22
|
+
serverUrl?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Manual (non-interactive) OAuth 2.0 authorize shell. Renders read-only flow
|
|
26
|
+
* details — authorization / token / refresh URLs and the declared scopes for
|
|
27
|
+
* each flow — plus a manual access-token entry with Apply / Remove.
|
|
28
|
+
*
|
|
29
|
+
* This is the Free-tier surface: there is no Get Token, no PKCE, no
|
|
30
|
+
* client id/secret, no scope selection and no flow-variable inputs. The only
|
|
31
|
+
* way to authorize is by pasting a token, which is applied verbatim as a
|
|
32
|
+
* `Bearer` credential. The interactive counterpart lives in
|
|
33
|
+
* {@link OAuth2Auth} (Pro-gated).
|
|
34
|
+
*/
|
|
35
|
+
export declare function OAuth2AuthManual({ scheme, onApply, onRemove, applied, appliedValue }: OAuth2AuthManualProps): import("react").JSX.Element;
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=OAuth2AuthManual.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OAuth2AuthManual.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/Auth/OAuth2AuthManual.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAc,MAAM,wBAAwB,CAAA;AAKtF,UAAU,qBAAqB;IAC7B,MAAM,EAAE,UAAU,CAAA;IAClB,OAAO,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAC1C,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,OAAO,EAAE,OAAO,CAAA;IAChB,YAAY,CAAC,EAAE,gBAAgB,CAAA;IAC/B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAiGD;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,qBAAqB,+BA0H3G"}
|
|
@@ -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
|
+
import type { AuthScheme, AppliedAuthValue } from '../../types/auth.types';
|
|
11
|
+
interface OpenIdConnectManualProps {
|
|
12
|
+
scheme: AuthScheme;
|
|
13
|
+
onApply: (value: AppliedAuthValue) => void;
|
|
14
|
+
onRemove: (schemeId: string) => void;
|
|
15
|
+
applied: boolean;
|
|
16
|
+
appliedValue?: AppliedAuthValue;
|
|
17
|
+
/**
|
|
18
|
+
* Selected server URL. Accepted for parity with the discovery-backed
|
|
19
|
+
* OpenIdConnectAuth, but this free shell performs no network resolution.
|
|
20
|
+
*/
|
|
21
|
+
serverUrl?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* OpenID Connect manual shell (`openIdConnect` security scheme, free tier).
|
|
25
|
+
* Shows only what the spec declares — the scheme `description` and its
|
|
26
|
+
* `openIdConnectUrl` (as a link) — plus a manual access-token paste. It performs
|
|
27
|
+
* NO discovery fetch: runtime discovery of the OpenID configuration is a Pro
|
|
28
|
+
* feature (see OpenIdConnectAuth). The free experience is spec data + manual
|
|
29
|
+
* token entry, which never touches the network.
|
|
30
|
+
*/
|
|
31
|
+
export declare function OpenIdConnectManual({ scheme, onApply, onRemove, applied, appliedValue, }: OpenIdConnectManualProps): import("react").JSX.Element;
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=OpenIdConnectManual.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpenIdConnectManual.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/Auth/OpenIdConnectManual.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAK1E,UAAU,wBAAwB;IAChC,MAAM,EAAE,UAAU,CAAA;IAClB,OAAO,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAC1C,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,OAAO,EAAE,OAAO,CAAA;IAChB,YAAY,CAAC,EAAE,gBAAgB,CAAA;IAC/B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAmBD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,OAAO,EACP,QAAQ,EACR,OAAO,EACP,YAAY,GACb,EAAE,wBAAwB,+BA6E1B"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
interface SecretInputProps {
|
|
11
|
+
value: string;
|
|
12
|
+
onChange: (value: string) => void;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
/** Applied to the underlying input (e.g. the shared auth input style). */
|
|
15
|
+
className?: string;
|
|
16
|
+
autoComplete?: string;
|
|
17
|
+
'aria-label'?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A masked credential input (password/API-key/token). Renders as a password
|
|
21
|
+
* field by default with an eye toggle to reveal/hide the value. Reveal state is
|
|
22
|
+
* local and defaults to hidden, so a persisted secret is never shown until the
|
|
23
|
+
* user explicitly reveals it.
|
|
24
|
+
*/
|
|
25
|
+
export declare function SecretInput({ value, onChange, placeholder, className, autoComplete, 'aria-label': ariaLabel, }: SecretInputProps): import("react").JSX.Element;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=SecretInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SecretInput.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/Auth/SecretInput.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,QAAQ,EACR,WAAW,EACX,SAAS,EACT,YAAY,EACZ,YAAY,EAAE,SAAS,GACxB,EAAE,gBAAgB,+BA6BlB"}
|
|
@@ -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 { AuthPanel } from './AuthPanel';
|
|
11
|
+
export { ApiKeyAuth } from './ApiKeyAuth';
|
|
12
|
+
export { BearerAuth } from './BearerAuth';
|
|
13
|
+
export { BasicAuth } from './BasicAuth';
|
|
14
|
+
export { OAuth2AuthManual } from './OAuth2AuthManual';
|
|
15
|
+
export { OpenIdConnectManual } from './OpenIdConnectManual';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/Auth/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 'prismjs/components/prism-json';
|
|
12
|
+
import 'prismjs/components/prism-yaml';
|
|
13
|
+
import 'prismjs/components/prism-xml-doc';
|
|
14
|
+
import 'prismjs/components/prism-bash';
|
|
15
|
+
import 'prismjs/components/prism-graphql';
|
|
16
|
+
import 'prismjs/components/prism-javascript';
|
|
17
|
+
import 'prismjs/components/prism-python';
|
|
18
|
+
import 'prismjs/components/prism-go';
|
|
19
|
+
import 'prismjs/components/prism-java';
|
|
20
|
+
import 'prismjs/components/prism-csharp';
|
|
21
|
+
export type CodeLanguage = 'json' | 'yaml' | 'xml' | 'bash' | 'graphql' | 'http' | 'text' | 'javascript' | 'python' | 'go' | 'java' | 'csharp';
|
|
22
|
+
interface CodeBlockProps {
|
|
23
|
+
code: string;
|
|
24
|
+
language?: CodeLanguage;
|
|
25
|
+
title?: string;
|
|
26
|
+
showCopy?: boolean;
|
|
27
|
+
maxHeight?: string;
|
|
28
|
+
headerLeft?: ReactNode;
|
|
29
|
+
}
|
|
30
|
+
export declare function CodeBlock({ code, language, title, showCopy, maxHeight, headerLeft, }: CodeBlockProps): import("react").JSX.Element;
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=CodeBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeBlock.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/CodeBlock/CodeBlock.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,+BAA+B,CAAA;AACtC,OAAO,+BAA+B,CAAA;AACtC,OAAO,kCAAkC,CAAA;AACzC,OAAO,+BAA+B,CAAA;AACtC,OAAO,kCAAkC,CAAA;AACzC,OAAO,qCAAqC,CAAA;AAC5C,OAAO,iCAAiC,CAAA;AACxC,OAAO,6BAA6B,CAAA;AACpC,OAAO,+BAA+B,CAAA;AACtC,OAAO,iCAAiC,CAAA;AAKxC,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,QAAQ,GAAG,IAAI,GAAG,MAAM,GAAG,QAAQ,CAAA;AAE9I,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,YAAY,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,SAAS,CAAA;CACvB;AAiBD,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,QAAiB,EACjB,KAAK,EACL,QAAe,EACf,SAAS,EACT,UAAU,GACX,EAAE,cAAc,+BAgDhB"}
|
|
@@ -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 { CodeBlock } from './CodeBlock';
|
|
11
|
+
export type { CodeLanguage } from './CodeBlock';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/CodeBlock/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
interface DocLayoutProps {
|
|
12
|
+
sidebar?: ReactNode;
|
|
13
|
+
sidebarHeader?: ReactNode;
|
|
14
|
+
sidebarFooter?: ReactNode;
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
layout: 'sidebar' | 'stacked';
|
|
17
|
+
sidebarPosition?: 'left' | 'right';
|
|
18
|
+
header?: ReactNode;
|
|
19
|
+
contentHeader?: ReactNode;
|
|
20
|
+
footer?: ReactNode;
|
|
21
|
+
}
|
|
22
|
+
export declare function DocLayout({ sidebar, sidebarHeader, sidebarFooter, children, layout, sidebarPosition, header, contentHeader, footer, }: DocLayoutProps): import("react").JSX.Element;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=DocLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocLayout.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/Layout/DocLayout.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAc,SAAS,EAAE,MAAM,OAAO,CAAA;AAQlD,UAAU,cAAc;IACtB,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,aAAa,CAAC,EAAE,SAAS,CAAA;IACzB,aAAa,CAAC,EAAE,SAAS,CAAA;IACzB,QAAQ,EAAE,SAAS,CAAA;IACnB,MAAM,EAAE,SAAS,GAAG,SAAS,CAAA;IAC7B,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAClC,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,aAAa,CAAC,EAAE,SAAS,CAAA;IACzB,MAAM,CAAC,EAAE,SAAS,CAAA;CACnB;AAED,wBAAgB,SAAS,CAAC,EACxB,OAAO,EACP,aAAa,EACb,aAAa,EACb,QAAQ,EACR,MAAM,EACN,eAAwB,EACxB,MAAM,EACN,aAAa,EACb,MAAM,GACP,EAAE,cAAc,+BAuMhB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
* Dismiss callback provided by DocLayout around the content of its mobile
|
|
12
|
+
* drawer (and only there — the desktop sidebar renders the same content with
|
|
13
|
+
* no provider). Navigation components call it after performing a selection so
|
|
14
|
+
* the full-screen drawer closes instead of covering the content the user just
|
|
15
|
+
* navigated to. The package is router-agnostic, so this is the only channel
|
|
16
|
+
* through which nav content can tell the drawer that navigation happened.
|
|
17
|
+
*/
|
|
18
|
+
export declare const MobileDrawerDismissContext: import("react").Context<(() => void) | null>;
|
|
19
|
+
export declare function useMobileDrawerDismiss(): (() => void) | null;
|
|
20
|
+
//# sourceMappingURL=MobileDrawerDismissContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileDrawerDismissContext.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/Layout/MobileDrawerDismissContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,iCAAwB,IAAI,SAElE,CAAA;AAED,wBAAgB,sBAAsB,IAAI,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAE5D"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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, SlotOverrides } from '@core/types/theme.types';
|
|
12
|
+
import type { SidebarNavConfig } from '@core/types/sidebar-nav.types';
|
|
13
|
+
interface SpecStatusScreenProps {
|
|
14
|
+
/** Status UI shown in the main content area (e.g. an ErrorMessage or LoadingScreen). */
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
theme?: ThemeConfig;
|
|
17
|
+
layout?: 'sidebar' | 'stacked';
|
|
18
|
+
sidebarPosition?: 'left' | 'right';
|
|
19
|
+
/** Host-provided slots — notably `sidebarHeader`, which carries the host's navigation. */
|
|
20
|
+
slots?: SlotOverrides;
|
|
21
|
+
sidebarNav?: SidebarNavConfig;
|
|
22
|
+
premiumThemingEnabled?: boolean;
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Renders a non-fatal spec status (a failed/parse/detect error, or loading) in
|
|
27
|
+
* the DocLayout content area while keeping the surrounding chrome — the host's
|
|
28
|
+
* navigation slots (`sidebarHeader`/`sidebarFooter`), header, breadcrumbs, and
|
|
29
|
+
* footer — intact, so the user can still navigate away.
|
|
30
|
+
*
|
|
31
|
+
* This is deliberately spec-agnostic: it renders the layout shell WITHOUT a
|
|
32
|
+
* parsed spec (no operations nav, no server selector, no Try-It). Fatal errors
|
|
33
|
+
* (render crashes caught by an ErrorBoundary, or genuine misconfiguration) keep
|
|
34
|
+
* using the bare full-screen ErrorMessage instead of this shell.
|
|
35
|
+
*/
|
|
36
|
+
export declare function SpecStatusScreen({ children, theme, layout, sidebarPosition, slots, sidebarNav, premiumThemingEnabled, className, }: SpecStatusScreenProps): import("react").JSX.Element;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=SpecStatusScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpecStatusScreen.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/Layout/SpecStatusScreen.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAA;AAMrE,UAAU,qBAAqB;IAC7B,wFAAwF;IACxF,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,CAAC,EAAE,WAAW,CAAA;IACnB,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IAC9B,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAClC,0FAA0F;IAC1F,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,UAAU,CAAC,EAAE,gBAAgB,CAAA;IAC7B,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,KAAK,EACL,MAAkB,EAClB,eAAwB,EACxB,KAAU,EACV,UAAU,EACV,qBAA6B,EAC7B,SAAS,GACV,EAAE,qBAAqB,+BAwBvB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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 { DocLayout } from './DocLayout';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/Layout/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -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
|
+
interface MarkdownRendererProps {
|
|
11
|
+
content: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function MarkdownRenderer({ content, className }: MarkdownRendererProps): import("react").JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=MarkdownRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarkdownRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/MarkdownRenderer/MarkdownRenderer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAOH,UAAU,qBAAqB;IAC7B,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAqBD,wBAAgB,gBAAgB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,qBAAqB,+BAa7E"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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 { MarkdownRenderer } from './MarkdownRenderer';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/MarkdownRenderer/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA"}
|