@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,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
|
+
import type { SidebarNavConfig } from '../../types/sidebar-nav.types';
|
|
11
|
+
interface CustomNavSectionProps {
|
|
12
|
+
config: SidebarNavConfig;
|
|
13
|
+
}
|
|
14
|
+
export declare function CustomNavSection({ config }: CustomNavSectionProps): import("react").JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=CustomNavSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomNavSection.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/Navigation/CustomNavSection.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAOH,OAAO,KAAK,EACV,gBAAgB,EAGjB,MAAM,+BAA+B,CAAA;AAGtC,UAAU,qBAAqB;IAC7B,MAAM,EAAE,gBAAgB,CAAA;CACzB;AAqGD,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,EAAE,qBAAqB,+BA6DjE"}
|
|
@@ -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
|
+
export interface NavItem {
|
|
12
|
+
id: string;
|
|
13
|
+
label: string;
|
|
14
|
+
badge?: string | ReactNode;
|
|
15
|
+
badgeColor?: string;
|
|
16
|
+
children?: NavItem[];
|
|
17
|
+
href?: string;
|
|
18
|
+
target?: '_self' | '_blank';
|
|
19
|
+
icon?: ReactNode;
|
|
20
|
+
separator?: boolean;
|
|
21
|
+
defaultExpanded?: boolean;
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
interface NavTreeProps {
|
|
25
|
+
items: NavItem[];
|
|
26
|
+
activeId?: string;
|
|
27
|
+
onSelect: (id: string) => void;
|
|
28
|
+
parentToggleOnly?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export declare function NavTree({ items, activeId, onSelect, parentToggleOnly }: NavTreeProps): import("react").JSX.Element;
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=NavTree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavTree.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/Navigation/NavTree.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtC,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IAC3B,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,UAAU,YAAY;IACpB,KAAK,EAAE,OAAO,EAAE,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9B,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAED,wBAAgB,OAAO,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,EAAE,EAAE,YAAY,+BAepF"}
|
|
@@ -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 SearchBarProps {
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
onSearch: (query: string) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare function SearchBar({ placeholder, onSearch }: SearchBarProps): import("react").JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=SearchBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchBar.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/Navigation/SearchBar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,UAAU,cAAc;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC;AAED,wBAAgB,SAAS,CAAC,EAAE,WAAyB,EAAE,QAAQ,EAAE,EAAE,cAAc,+BAqBhF"}
|
|
@@ -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 { ReactNode } from 'react';
|
|
11
|
+
import type { SidebarNavConfig } from '../../types/sidebar-nav.types';
|
|
12
|
+
export declare function buildSidebar(sidebarNav: SidebarNavConfig | undefined, specNav: ReactNode): ReactNode;
|
|
13
|
+
//# sourceMappingURL=buildSidebar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildSidebar.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/Navigation/buildSidebar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAA;AAGrE,wBAAgB,YAAY,CAC1B,UAAU,EAAE,gBAAgB,GAAG,SAAS,EACxC,OAAO,EAAE,SAAS,GACjB,SAAS,CA8BX"}
|
|
@@ -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
|
+
export { NavTree } from './NavTree';
|
|
11
|
+
export type { NavItem } from './NavTree';
|
|
12
|
+
export { SearchBar } from './SearchBar';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/Navigation/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 ReferenceLayoutProps {
|
|
12
|
+
schema: ReactNode;
|
|
13
|
+
samples: ReactNode;
|
|
14
|
+
tryIt: ReactNode;
|
|
15
|
+
operationId: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function ReferenceLayout({ schema, samples, tryIt, operationId }: ReferenceLayoutProps): import("react").JSX.Element;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=ReferenceLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReferenceLayout.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/Reference/ReferenceLayout.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,UAAU,oBAAoB;IAC5B,MAAM,EAAE,SAAS,CAAA;IACjB,OAAO,EAAE,SAAS,CAAA;IAClB,KAAK,EAAE,SAAS,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;CACpB;AAgBD,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,oBAAoB,+BAsE5F"}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 Parameter {
|
|
11
|
+
name: string;
|
|
12
|
+
in: string;
|
|
13
|
+
required: boolean;
|
|
14
|
+
description?: string;
|
|
15
|
+
schema?: Record<string, unknown>;
|
|
16
|
+
example?: unknown;
|
|
17
|
+
}
|
|
18
|
+
interface RequestBody {
|
|
19
|
+
description?: string;
|
|
20
|
+
required?: boolean;
|
|
21
|
+
content: Record<string, {
|
|
22
|
+
schema?: Record<string, unknown>;
|
|
23
|
+
}>;
|
|
24
|
+
}
|
|
25
|
+
interface Response {
|
|
26
|
+
statusCode: string;
|
|
27
|
+
description: string;
|
|
28
|
+
content?: Record<string, {
|
|
29
|
+
schema?: Record<string, unknown>;
|
|
30
|
+
}>;
|
|
31
|
+
}
|
|
32
|
+
export interface ReferenceOperationDetailProps {
|
|
33
|
+
operationId: string;
|
|
34
|
+
description?: string;
|
|
35
|
+
parameters: Parameter[];
|
|
36
|
+
requestBody?: RequestBody;
|
|
37
|
+
responses: Response[];
|
|
38
|
+
security?: string[][];
|
|
39
|
+
}
|
|
40
|
+
export declare function ReferenceOperationDetail({ description, parameters, requestBody, responses, security, }: ReferenceOperationDetailProps): import("react").JSX.Element;
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=ReferenceOperationDetail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReferenceOperationDetail.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/Reference/ReferenceOperationDetail.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAWH,UAAU,SAAS;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,UAAU,WAAW;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC,CAAA;CAC9D;AAED,UAAU,QAAQ;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC,CAAA;CAC/D;AAED,MAAM,WAAW,6BAA6B;IAC5C,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,SAAS,EAAE,CAAA;IACvB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,SAAS,EAAE,QAAQ,EAAE,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE,CAAA;CACtB;AAyJD,wBAAgB,wBAAwB,CAAC,EACvC,WAAW,EACX,UAAU,EACV,WAAW,EACX,SAAS,EACT,QAAQ,GACT,EAAE,6BAA6B,+BA6F/B"}
|
|
@@ -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
|
+
interface ResponseSample {
|
|
11
|
+
statusCode: string;
|
|
12
|
+
description: string;
|
|
13
|
+
content?: Record<string, {
|
|
14
|
+
schema?: Record<string, unknown>;
|
|
15
|
+
example?: unknown;
|
|
16
|
+
examples?: Record<string, {
|
|
17
|
+
value: unknown;
|
|
18
|
+
}>;
|
|
19
|
+
}>;
|
|
20
|
+
}
|
|
21
|
+
export interface SamplesPanelProps {
|
|
22
|
+
method: string;
|
|
23
|
+
path: string;
|
|
24
|
+
serverUrl: string;
|
|
25
|
+
operationId: string;
|
|
26
|
+
requestBodySchema?: Record<string, unknown>;
|
|
27
|
+
requestBodyContentType?: string;
|
|
28
|
+
responses: ResponseSample[];
|
|
29
|
+
onPropertyClick?: (propertyPath: string) => void;
|
|
30
|
+
}
|
|
31
|
+
export declare function SamplesPanel({ method, path, serverUrl, requestBodySchema, requestBodyContentType, responses, }: SamplesPanelProps): import("react").JSX.Element;
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=SamplesPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SamplesPanel.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/Reference/SamplesPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAyBH,UAAU,cAAc;IACtB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QACvB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;QAChC,OAAO,CAAC,EAAE,OAAO,CAAA;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;YAAE,KAAK,EAAE,OAAO,CAAA;SAAE,CAAC,CAAA;KAC9C,CAAC,CAAA;CACH;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC3C,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,SAAS,EAAE,cAAc,EAAE,CAAA;IAC3B,eAAe,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAA;CACjD;AAuCD,wBAAgB,YAAY,CAAC,EAC3B,MAAM,EACN,IAAI,EACJ,SAAS,EACT,iBAAiB,EACjB,sBAA2C,EAC3C,SAAS,GACV,EAAE,iBAAiB,+BAuKnB"}
|
|
@@ -0,0 +1,147 @@
|
|
|
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
|
+
* Variant-driven presentation kit for the schema/property tree.
|
|
12
|
+
*
|
|
13
|
+
* This is the single source of truth for HOW EACH SCHEMA ITEM RENDERS in each
|
|
14
|
+
* of the four presentations (`lines` / `table` / `card` / `tokens`). Every part
|
|
15
|
+
* of a property row — the row shell, name, type, required marker, description,
|
|
16
|
+
* enum chips, and nested-children wrapper — is its own `@emotion/styled`
|
|
17
|
+
* component that switches appearance on a single `variant: SchemaStyle` prop.
|
|
18
|
+
* Swapping a design is therefore a matter of editing one variant map here, not
|
|
19
|
+
* hunting through the renderer.
|
|
20
|
+
*
|
|
21
|
+
* The CSS is transcribed from the approved design mock (the four `.dir-a/b/c/d`
|
|
22
|
+
* directions), mapping the mock's raw hex palette onto OmniSpec theme tokens
|
|
23
|
+
* (`var(--omnispec-*)`) so it themes and white-labels for free.
|
|
24
|
+
*
|
|
25
|
+
* Layout per direction:
|
|
26
|
+
* - `lines` — inline name/type/required, hairline rows, chips for enums, a thin
|
|
27
|
+
* left-guide for nested children.
|
|
28
|
+
* - `table` — a CSS grid: name (+ required) in column one; type / description /
|
|
29
|
+
* enum / children in column two (children keep to column two, so
|
|
30
|
+
* each nested row indents under the type — like the mock).
|
|
31
|
+
* - `card` — enclosed card with row hover and a soft type badge; nested
|
|
32
|
+
* objects get an accent rail.
|
|
33
|
+
* - `tokens` — dense, syntax-colored type/format, `*` for required, bordered
|
|
34
|
+
* enum chips, dashed nesting guide.
|
|
35
|
+
*
|
|
36
|
+
* NOTE (migration): the OpenAPI/AsyncAPI `SchemaTree` composes this kit. The Pro
|
|
37
|
+
* renderers (GraphQL/gRPC/SOAP) still use the older `PresentationContainer` /
|
|
38
|
+
* `PresentationRow` / `PresentationChildren` shells below and will migrate onto
|
|
39
|
+
* this slot kit in a follow-up.
|
|
40
|
+
*/
|
|
41
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
42
|
+
import type { SchemaStyle } from '@core/components/SchemaViewer/schema-style';
|
|
43
|
+
/**
|
|
44
|
+
* The outer wrapper for a schema tree (one per depth-0 render). Emits a stable
|
|
45
|
+
* `data-schema-style` attribute so consumers can hook it in CSS and so the
|
|
46
|
+
* active presentation is observable in tests regardless of style deltas.
|
|
47
|
+
*/
|
|
48
|
+
export declare function PresentationContainer({ variant, ...rest }: {
|
|
49
|
+
variant: SchemaStyle;
|
|
50
|
+
} & ComponentPropsWithoutRef<'div'>): import("react").JSX.Element;
|
|
51
|
+
/** A single property row shell — composes the slots below. */
|
|
52
|
+
export declare const SchemaPropRow: import("@emotion/styled").StyledComponent<{
|
|
53
|
+
theme?: import("@emotion/react").Theme;
|
|
54
|
+
as?: React.ElementType;
|
|
55
|
+
} & {
|
|
56
|
+
variant: SchemaStyle;
|
|
57
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
58
|
+
/** Property / field identifier — mono, semibold. Holds the chevron + required `*`. */
|
|
59
|
+
export declare const PropName: import("@emotion/styled").StyledComponent<{
|
|
60
|
+
theme?: import("@emotion/react").Theme;
|
|
61
|
+
as?: React.ElementType;
|
|
62
|
+
} & {
|
|
63
|
+
variant: SchemaStyle;
|
|
64
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
65
|
+
/** The `*` required marker used by the `tokens` variant (dir-d). */
|
|
66
|
+
export declare const PropRequiredStar: import("@emotion/styled").StyledComponent<{
|
|
67
|
+
theme?: import("@emotion/react").Theme;
|
|
68
|
+
as?: React.ElementType;
|
|
69
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
70
|
+
/** Type signature — mono, muted (syntax-colored in `tokens`). */
|
|
71
|
+
export declare const PropType: import("@emotion/styled").StyledComponent<{
|
|
72
|
+
theme?: import("@emotion/react").Theme;
|
|
73
|
+
as?: React.ElementType;
|
|
74
|
+
} & {
|
|
75
|
+
variant: SchemaStyle;
|
|
76
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
77
|
+
/** The `· format` suffix inside a type — a distinct hue in `tokens` (dir-d .fmt). */
|
|
78
|
+
export declare const PropFormat: import("@emotion/styled").StyledComponent<{
|
|
79
|
+
theme?: import("@emotion/react").Theme;
|
|
80
|
+
as?: React.ElementType;
|
|
81
|
+
} & {
|
|
82
|
+
variant: SchemaStyle;
|
|
83
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
84
|
+
/** The "required" label (dir-a/b/c). `tokens` uses `PropRequiredStar` instead. */
|
|
85
|
+
export declare const PropReq: import("@emotion/styled").StyledComponent<{
|
|
86
|
+
theme?: import("@emotion/react").Theme;
|
|
87
|
+
as?: React.ElementType;
|
|
88
|
+
} & {
|
|
89
|
+
variant: SchemaStyle;
|
|
90
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
91
|
+
/** Description block — sans. Wraps the markdown renderer; resets its `<p>` margins. */
|
|
92
|
+
export declare const PropDesc: import("@emotion/styled").StyledComponent<{
|
|
93
|
+
theme?: import("@emotion/react").Theme;
|
|
94
|
+
as?: React.ElementType;
|
|
95
|
+
} & {
|
|
96
|
+
variant: SchemaStyle;
|
|
97
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
98
|
+
/** The "Default: …" row. */
|
|
99
|
+
export declare const PropDefault: import("@emotion/styled").StyledComponent<{
|
|
100
|
+
theme?: import("@emotion/react").Theme;
|
|
101
|
+
as?: React.ElementType;
|
|
102
|
+
} & {
|
|
103
|
+
variant: SchemaStyle;
|
|
104
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
105
|
+
/** The enum chip list. */
|
|
106
|
+
export declare const EnumList: import("@emotion/styled").StyledComponent<{
|
|
107
|
+
theme?: import("@emotion/react").Theme;
|
|
108
|
+
as?: React.ElementType;
|
|
109
|
+
} & {
|
|
110
|
+
variant: SchemaStyle;
|
|
111
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
|
|
112
|
+
/** The muted "enum" label before the chips — hidden in `tokens`. */
|
|
113
|
+
export declare const EnumLabel: import("@emotion/styled").StyledComponent<{
|
|
114
|
+
theme?: import("@emotion/react").Theme;
|
|
115
|
+
as?: React.ElementType;
|
|
116
|
+
} & {
|
|
117
|
+
variant: SchemaStyle;
|
|
118
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
119
|
+
/** A single enum value chip. */
|
|
120
|
+
export declare const EnumItem: import("@emotion/styled").StyledComponent<{
|
|
121
|
+
theme?: import("@emotion/react").Theme;
|
|
122
|
+
as?: React.ElementType;
|
|
123
|
+
} & {
|
|
124
|
+
variant: SchemaStyle;
|
|
125
|
+
}, import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
|
|
126
|
+
/** Wrapper for a node's expanded child attributes. */
|
|
127
|
+
export declare const SchemaPropChildren: import("@emotion/styled").StyledComponent<{
|
|
128
|
+
theme?: import("@emotion/react").Theme;
|
|
129
|
+
as?: React.ElementType;
|
|
130
|
+
} & {
|
|
131
|
+
variant: SchemaStyle;
|
|
132
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
133
|
+
/** @deprecated Legacy row shell used by the Pro renderers; use {@link SchemaPropRow}. */
|
|
134
|
+
export declare const PresentationRow: import("@emotion/styled").StyledComponent<{
|
|
135
|
+
theme?: import("@emotion/react").Theme;
|
|
136
|
+
as?: React.ElementType;
|
|
137
|
+
} & {
|
|
138
|
+
variant: SchemaStyle;
|
|
139
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
140
|
+
/** @deprecated Legacy nesting shell used by the Pro renderers; use {@link SchemaPropChildren}. */
|
|
141
|
+
export declare const PresentationChildren: import("@emotion/styled").StyledComponent<{
|
|
142
|
+
theme?: import("@emotion/react").Theme;
|
|
143
|
+
as?: React.ElementType;
|
|
144
|
+
} & {
|
|
145
|
+
variant: SchemaStyle;
|
|
146
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
147
|
+
//# sourceMappingURL=SchemaPresentation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaPresentation.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/SchemaViewer/SchemaPresentation.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAA;AAIrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAA;AA8E7E;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,OAAO,EACP,GAAG,IAAI,EACR,EAAE;IAAE,OAAO,EAAE,WAAW,CAAA;CAAE,GAAG,wBAAwB,CAAC,KAAK,CAAC,+BAE5D;AAqDD,8DAA8D;AAC9D,eAAO,MAAM,aAAa;;;;aAEZ,WAAW;yGAItB,CAAA;AAYH,sFAAsF;AACtF,eAAO,MAAM,QAAQ;;;;aAEP,WAAW;2GActB,CAAA;AAEH,oEAAoE;AACpE,eAAO,MAAM,gBAAgB;;;2GAI3B,CAAA;AAyBF,iEAAiE;AACjE,eAAO,MAAM,QAAQ;;;;aAEP,WAAW;2GAWtB,CAAA;AAEH,qFAAqF;AACrF,eAAO,MAAM,UAAU;;;;aAET,WAAW;2GAEtB,CAAA;AAYH,kFAAkF;AAClF,eAAO,MAAM,OAAO;;;;aAEN,WAAW;2GAOtB,CAAA;AAYH,uFAAuF;AACvF,eAAO,MAAM,QAAQ;;;;aAEP,WAAW;yGAStB,CAAA;AAWH,4BAA4B;AAC5B,eAAO,MAAM,WAAW;;;;aAEV,WAAW;yGAMtB,CAAA;AAYH,0BAA0B;AAC1B,eAAO,MAAM,QAAQ;;;;aAEP,WAAW;6GAStB,CAAA;AAEH,oEAAoE;AACpE,eAAO,MAAM,SAAS;;;;aAER,WAAW;2GAOtB,CAAA;AAsCH,gCAAgC;AAChC,eAAO,MAAM,QAAQ;;;;aAEP,WAAW;yGAKtB,CAAA;AAsDH,sDAAsD;AACtD,eAAO,MAAM,kBAAkB;;;;aAEjB,WAAW;yGAGtB,CAAA;AAwCH,yFAAyF;AACzF,eAAO,MAAM,eAAe;;;;aAEd,WAAW;yGAGtB,CAAA;AAiCH,kGAAkG;AAClG,eAAO,MAAM,oBAAoB;;;;aAEnB,WAAW;yGAEtB,CAAA"}
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
* Schema-family presentational primitives.
|
|
12
|
+
*
|
|
13
|
+
* These are the shared LEAF atoms used by every schema/type renderer in the
|
|
14
|
+
* package — the JSON Schema `SchemaTree` (OpenAPI + AsyncAPI) and the
|
|
15
|
+
* spec-specific trees `TypeDetail` (GraphQL), `MessageDetail` (gRPC), and the
|
|
16
|
+
* SOAP/WSDL type views. Each spec keeps its own STRUCTURE (rows vs. tables,
|
|
17
|
+
* expand/collapse, composition, args, oneof, field numbers) but renders its
|
|
18
|
+
* leaves through these atoms.
|
|
19
|
+
*
|
|
20
|
+
* SINGLE SOURCE OF TRUTH: a stylistic change to a field name, type reference,
|
|
21
|
+
* badge, description, or section heading belongs HERE. Changing it here
|
|
22
|
+
* propagates to every spec renderer at once. Do NOT re-implement these styles
|
|
23
|
+
* locally in a spec renderer — see the "Schema-family map" in
|
|
24
|
+
* `src/core/components/SchemaViewer/CLAUDE.md`.
|
|
25
|
+
*
|
|
26
|
+
* These leaves are authored as `@emotion/styled` primitives (via
|
|
27
|
+
* `@core/styles/styled`). The exported component APIs are stable — Pro
|
|
28
|
+
* renderers import them and depend on the prop shapes below.
|
|
29
|
+
*/
|
|
30
|
+
import type { ReactNode } from 'react';
|
|
31
|
+
/** The identifier of a property / field / enum value / message field. */
|
|
32
|
+
export declare function FieldName({ name, required, deprecated, className, }: {
|
|
33
|
+
name: ReactNode;
|
|
34
|
+
required?: boolean;
|
|
35
|
+
deprecated?: boolean;
|
|
36
|
+
className?: string;
|
|
37
|
+
}): import("react").JSX.Element;
|
|
38
|
+
/** A clickable cross-reference to another type / message / schema. */
|
|
39
|
+
export declare function SchemaRefLink({ onClick, children, className, }: {
|
|
40
|
+
onClick?: () => void;
|
|
41
|
+
children: ReactNode;
|
|
42
|
+
className?: string;
|
|
43
|
+
}): import("react").JSX.Element;
|
|
44
|
+
/** A description / documentation paragraph for a field or type. */
|
|
45
|
+
export declare function FieldDescription({ children, className, }: {
|
|
46
|
+
children: ReactNode;
|
|
47
|
+
className?: string;
|
|
48
|
+
}): import("react").JSX.Element;
|
|
49
|
+
/** A sub-section heading inside a schema/type body (e.g. "Fields", "Values"). */
|
|
50
|
+
export declare function SchemaSectionTitle({ children, className, }: {
|
|
51
|
+
children: ReactNode;
|
|
52
|
+
className?: string;
|
|
53
|
+
}): import("react").JSX.Element;
|
|
54
|
+
export type SchemaBadgeVariant = 'required' | 'deprecated' | 'readonly' | 'writeonly' | 'constraint' | 'enum' | 'muted' | 'default';
|
|
55
|
+
/**
|
|
56
|
+
* A subtle inline badge for schema metadata (required, deprecated, read-only,
|
|
57
|
+
* constraints, enum values, etc.). Rendered as colored text rather than a
|
|
58
|
+
* filled pill — the filled/uppercase `common/Badge` is a different family used
|
|
59
|
+
* for HTTP-method and nav badges.
|
|
60
|
+
*/
|
|
61
|
+
export declare function SchemaBadge({ variant, children, className, }: {
|
|
62
|
+
variant?: SchemaBadgeVariant;
|
|
63
|
+
children: ReactNode;
|
|
64
|
+
className?: string;
|
|
65
|
+
}): import("react").JSX.Element;
|
|
66
|
+
//# sourceMappingURL=SchemaPrimitives.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaPrimitives.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/SchemaViewer/SchemaPrimitives.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,yEAAyE;AACzE,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,QAAgB,EAChB,UAAkB,EAClB,SAAS,GACV,EAAE;IACD,IAAI,EAAE,SAAS,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,+BAOA;AAED,sEAAsE;AACtE,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,QAAQ,EACR,SAAS,GACV,EAAE;IACD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,QAAQ,EAAE,SAAS,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,+BAMA;AAED,mEAAmE;AACnE,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,+BAEA;AAED,iFAAiF;AACjF,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,+BAEA;AAED,MAAM,MAAM,kBAAkB,GAC1B,UAAU,GACV,YAAY,GACZ,UAAU,GACV,WAAW,GACX,YAAY,GACZ,MAAM,GACN,OAAO,GACP,SAAS,CAAA;AAEb;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,OAAmB,EACnB,QAAQ,EACR,SAAS,GACV,EAAE;IACD,OAAO,CAAC,EAAE,kBAAkB,CAAA;IAC5B,QAAQ,EAAE,SAAS,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,+BAMA"}
|
|
@@ -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
|
+
import type { SchemaNode } from './schema-utils';
|
|
11
|
+
interface SchemaTableProps {
|
|
12
|
+
nodes: SchemaNode[];
|
|
13
|
+
}
|
|
14
|
+
export declare function SchemaTable({ nodes }: SchemaTableProps): import("react").JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=SchemaTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaTable.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/SchemaViewer/SchemaTable.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAEhD,UAAU,gBAAgB;IACxB,KAAK,EAAE,UAAU,EAAE,CAAA;CACpB;AAmFD,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,EAAE,gBAAgB,+BAoDtD"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { SchemaNode } from './schema-utils';
|
|
11
|
+
/** Rendering context — hides readOnly props in requests, writeOnly in responses. */
|
|
12
|
+
export type SchemaContext = 'request' | 'response';
|
|
13
|
+
interface SchemaTreeProps {
|
|
14
|
+
nodes: SchemaNode[];
|
|
15
|
+
depth?: number;
|
|
16
|
+
/** When set, filters readOnly/writeOnly properties contextually. */
|
|
17
|
+
context?: SchemaContext;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Deep-filters nodes for a request/response context: request schemas hide
|
|
21
|
+
* readOnly properties, response schemas hide writeOnly properties.
|
|
22
|
+
*/
|
|
23
|
+
export declare function filterNodesForContext(nodes: SchemaNode[], context?: SchemaContext): SchemaNode[];
|
|
24
|
+
export declare function SchemaTree({ nodes: rawNodes, depth, context }: SchemaTreeProps): import("react").JSX.Element;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=SchemaTree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaTree.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/SchemaViewer/SchemaTree.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAuBhD,oFAAoF;AACpF,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,UAAU,CAAA;AAElD,UAAU,eAAe;IACvB,KAAK,EAAE,UAAU,EAAE,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oEAAoE;IACpE,OAAO,CAAC,EAAE,aAAa,CAAA;CACxB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,UAAU,EAAE,CAYhG;AAED,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAS,EAAE,OAAO,EAAE,EAAE,eAAe,+BAuDlF"}
|
|
@@ -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 { SchemaTree } from './SchemaTree';
|
|
11
|
+
export { SchemaTable } from './SchemaTable';
|
|
12
|
+
export { schemaToNodes, generateExample } from './schema-utils';
|
|
13
|
+
export type { SchemaNode } from './schema-utils';
|
|
14
|
+
export { FieldName, SchemaRefLink, FieldDescription, SchemaSectionTitle, SchemaBadge, } from './SchemaPrimitives';
|
|
15
|
+
export type { SchemaBadgeVariant } from './SchemaPrimitives';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/SchemaViewer/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAC/D,YAAY,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EACL,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,GACZ,MAAM,oBAAoB,CAAA;AAC3B,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
* Presentation style for the schema/property tree.
|
|
12
|
+
*
|
|
13
|
+
* - `lines` — airy typographic rows with hairline dividers and a chevron +
|
|
14
|
+
* left-guide nesting (the default, available to every tier).
|
|
15
|
+
* - `table` — two-column layout: name (+ required) on the left, type /
|
|
16
|
+
* description / enum / nested children on the right (Pro).
|
|
17
|
+
* - `card` — the schema is wrapped in an enclosed card with row hover and a
|
|
18
|
+
* soft accent rail on nested children (Pro).
|
|
19
|
+
* - `tokens` — dense, monospace, syntax-colored rows; required rendered as a
|
|
20
|
+
* `*` after the name (available to every tier).
|
|
21
|
+
* - `chain` — a vertical rail with horizontal connectors and a two-column
|
|
22
|
+
* name/type row; the presentation used by the reference layout (available to
|
|
23
|
+
* every tier).
|
|
24
|
+
*/
|
|
25
|
+
export type SchemaStyle = 'lines' | 'table' | 'card' | 'tokens' | 'chain';
|
|
26
|
+
/** The resolved default when no style is requested (or a requested one is denied). */
|
|
27
|
+
export declare const DEFAULT_SCHEMA_STYLE: SchemaStyle;
|
|
28
|
+
/**
|
|
29
|
+
* Styles the Free tier may render without the `advancedSchemaStyles` Pro
|
|
30
|
+
* capability. `table` and `card` are Pro-only and gracefully fall back to the
|
|
31
|
+
* default in Free.
|
|
32
|
+
*/
|
|
33
|
+
export declare const FREE_SCHEMA_STYLES: ReadonlySet<SchemaStyle>;
|
|
34
|
+
/**
|
|
35
|
+
* Resolves the effective schema style once, applying tier gating.
|
|
36
|
+
*
|
|
37
|
+
* The resolution is silent and graceful: a Pro-only style requested without the
|
|
38
|
+
* capability (or any unknown value) resolves to {@link DEFAULT_SCHEMA_STYLE}
|
|
39
|
+
* rather than throwing. Consumers read the already-gated value.
|
|
40
|
+
*
|
|
41
|
+
* @param requested The style asked for via the public `schemaStyle` prop.
|
|
42
|
+
* @param advancedAllowed Whether the `advancedSchemaStyles` Pro capability is present.
|
|
43
|
+
*/
|
|
44
|
+
export declare function resolveSchemaStyle(requested: SchemaStyle | undefined, advancedAllowed: boolean): SchemaStyle;
|
|
45
|
+
//# sourceMappingURL=schema-style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-style.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/SchemaViewer/schema-style.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;AAEzE,sFAAsF;AACtF,eAAO,MAAM,oBAAoB,EAAE,WAAqB,CAAA;AAExD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,WAAW,CAAC,WAAW,CAAsD,CAAA;AAK9G;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,WAAW,GAAG,SAAS,EAClC,eAAe,EAAE,OAAO,GACvB,WAAW,CAIb"}
|