zudoku 0.0.0-reset-hash-value.ac516c6d → 0.0.0-z179c4f85
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/client.d.ts +8 -0
- package/dist/app/entry.server.js +14 -1
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/main.d.ts +91 -1
- package/dist/app/main.js +5 -1
- package/dist/app/main.js.map +1 -1
- package/dist/app/sentry.js +1 -1
- package/dist/cli/common/version-check.js +12 -3
- package/dist/cli/common/version-check.js.map +1 -1
- package/dist/config/config.d.ts +15 -44
- package/dist/config/validators/BuildSchema.d.ts +5 -4
- package/dist/config/validators/BuildSchema.js +23 -5
- package/dist/config/validators/BuildSchema.js.map +1 -1
- package/dist/config/validators/InputNavigationSchema.d.ts +83 -81
- package/dist/config/validators/InputNavigationSchema.js +1 -0
- package/dist/config/validators/InputNavigationSchema.js.map +1 -1
- package/dist/config/validators/NavigationSchema.js +8 -5
- package/dist/config/validators/NavigationSchema.js.map +1 -1
- package/dist/config/validators/ProtectedRoutesSchema.d.ts +1 -1
- package/dist/config/validators/validate.d.ts +243 -20
- package/dist/config/validators/validate.js +52 -10
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/config/validators/validate.test.js +43 -0
- package/dist/config/validators/validate.test.js.map +1 -1
- package/dist/flat-config.d.ts +39 -4
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/auth/issuer.js +3 -0
- package/dist/lib/auth/issuer.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +19 -10
- package/dist/lib/authentication/components/CallbackHandler.js +1 -1
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/components/OAuthErrorPage.js +1 -1
- package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -1
- package/dist/lib/authentication/components/SignIn.js +8 -5
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/components/SignOut.js +6 -6
- package/dist/lib/authentication/components/SignOut.js.map +1 -1
- package/dist/lib/authentication/components/SignUp.js +7 -5
- package/dist/lib/authentication/components/SignUp.js.map +1 -1
- package/dist/lib/authentication/hook.d.ts +5 -2
- package/dist/lib/authentication/hook.js +22 -8
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.js +18 -9
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/azureb2c.d.ts +4 -4
- package/dist/lib/authentication/providers/azureb2c.js +3 -3
- package/dist/lib/authentication/providers/azureb2c.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.js +2 -24
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/firebase.d.ts +4 -0
- package/dist/lib/authentication/providers/firebase.js +273 -0
- package/dist/lib/authentication/providers/firebase.js.map +1 -0
- package/dist/lib/authentication/providers/openid.d.ts +7 -7
- package/dist/lib/authentication/providers/openid.js +3 -3
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.d.ts +8 -0
- package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js +39 -0
- package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js.map +1 -0
- package/dist/lib/authentication/providers/supabase.js +36 -46
- package/dist/lib/authentication/providers/supabase.js.map +1 -1
- package/dist/lib/authentication/state.d.ts +1 -5
- package/dist/lib/authentication/state.js +2 -14
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/authentication/ui/EmailVerificationUi.d.ts +4 -0
- package/dist/lib/authentication/ui/EmailVerificationUi.js +34 -0
- package/dist/lib/authentication/ui/EmailVerificationUi.js.map +1 -0
- package/dist/lib/authentication/ui/ZudokuAuthUi.d.ts +29 -0
- package/dist/lib/authentication/ui/ZudokuAuthUi.js +160 -0
- package/dist/lib/authentication/ui/ZudokuAuthUi.js.map +1 -0
- package/dist/lib/authentication/ui/icons/Apple.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/Apple.js +4 -0
- package/dist/lib/authentication/ui/icons/Apple.js.map +1 -0
- package/dist/lib/authentication/ui/icons/Facebook.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/Facebook.js +4 -0
- package/dist/lib/authentication/ui/icons/Facebook.js.map +1 -0
- package/dist/lib/authentication/ui/icons/Github.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/Github.js +4 -0
- package/dist/lib/authentication/ui/icons/Github.js.map +1 -0
- package/dist/lib/authentication/ui/icons/Google.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/Google.js +4 -0
- package/dist/lib/authentication/ui/icons/Google.js.map +1 -0
- package/dist/lib/authentication/ui/icons/Microsoft.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/Microsoft.js +4 -0
- package/dist/lib/authentication/ui/icons/Microsoft.js.map +1 -0
- package/dist/lib/authentication/ui/icons/X.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/X.js +4 -0
- package/dist/lib/authentication/ui/icons/X.js.map +1 -0
- package/dist/lib/authentication/utils/relativeRedirectUrl.d.ts +1 -0
- package/dist/lib/authentication/utils/relativeRedirectUrl.js +8 -0
- package/dist/lib/authentication/utils/relativeRedirectUrl.js.map +1 -0
- package/dist/lib/components/Autocomplete.d.ts +3 -1
- package/dist/lib/components/Autocomplete.js +6 -2
- package/dist/lib/components/Autocomplete.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +1 -1
- package/dist/lib/components/Layout.js +3 -2
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Mermaid.d.ts +7 -0
- package/dist/lib/components/Mermaid.js +42 -0
- package/dist/lib/components/Mermaid.js.map +1 -0
- package/dist/lib/components/PagefindSearchMeta.d.ts +8 -0
- package/dist/lib/components/PagefindSearchMeta.js +7 -0
- package/dist/lib/components/PagefindSearchMeta.js.map +1 -0
- package/dist/lib/components/Pagination.js +2 -2
- package/dist/lib/components/Pagination.js.map +1 -1
- package/dist/lib/components/Zudoku.js +5 -8
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/index.d.ts +7 -2
- package/dist/lib/components/index.js +4 -0
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/NavigationItem.js +4 -4
- package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
- package/dist/lib/components/navigation/Toc.js +1 -1
- package/dist/lib/components/navigation/Toc.js.map +1 -1
- package/dist/lib/core/RouteGuard.d.ts +1 -1
- package/dist/lib/core/RouteGuard.js +22 -25
- package/dist/lib/core/RouteGuard.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +1 -0
- package/dist/lib/core/ZudokuContext.js +2 -0
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/__internal.d.ts +1 -1
- package/dist/lib/core/plugins.d.ts +3 -3
- package/dist/lib/core/react-query.d.ts +1 -0
- package/dist/lib/core/react-query.js +2 -0
- package/dist/lib/core/react-query.js.map +1 -0
- package/dist/lib/errors/ErrorAlert.js +1 -1
- package/dist/lib/errors/ErrorMessage.d.ts +3 -0
- package/dist/lib/errors/ErrorMessage.js +16 -0
- package/dist/lib/errors/ErrorMessage.js.map +1 -0
- package/dist/lib/errors/RouterError.d.ts +3 -1
- package/dist/lib/errors/RouterError.js +3 -2
- package/dist/lib/errors/RouterError.js.map +1 -1
- package/dist/lib/hooks/index.d.ts +4 -2
- package/dist/lib/oas/graphql/circular.d.ts +2 -0
- package/dist/lib/oas/graphql/circular.js +32 -10
- package/dist/lib/oas/graphql/circular.js.map +1 -1
- package/dist/lib/oas/graphql/circular.test.d.ts +1 -0
- package/dist/lib/oas/graphql/circular.test.js +152 -0
- package/dist/lib/oas/graphql/circular.test.js.map +1 -0
- package/dist/lib/oas/graphql/index.js +7 -3
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/index.d.ts +1 -0
- package/dist/lib/oas/parser/index.js +7 -3
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/ProtectedRoute.js +4 -1
- package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +9 -172
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +11 -4
- package/dist/lib/plugins/api-keys/index.js +36 -22
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/settings/ApiKeyItem.d.ts +12 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyItem.js +133 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyItem.js.map +1 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyList.d.ts +4 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyList.js +33 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyList.js.map +1 -0
- package/dist/lib/plugins/api-keys/settings/RevealApiKey.d.ts +6 -0
- package/dist/lib/plugins/api-keys/settings/RevealApiKey.js +39 -0
- package/dist/lib/plugins/api-keys/settings/RevealApiKey.js.map +1 -0
- package/dist/lib/plugins/markdown/MdxPage.d.ts +2 -1
- package/dist/lib/plugins/markdown/MdxPage.js +3 -2
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +1 -0
- package/dist/lib/plugins/markdown/index.js +1 -1
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +1 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js +2 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
- package/dist/lib/plugins/openapi/DownloadSchemaButton.d.ts +3 -0
- package/dist/lib/plugins/openapi/DownloadSchemaButton.js +47 -0
- package/dist/lib/plugins/openapi/DownloadSchemaButton.js.map +1 -0
- package/dist/lib/plugins/openapi/Endpoint.js +3 -6
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.d.ts +5 -0
- package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js +10 -0
- package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js.map +1 -0
- package/dist/lib/plugins/openapi/OasProvider.js +22 -13
- package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +20 -6
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.d.ts +2 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +4 -3
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.js +1 -0
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterList.js +7 -4
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +17 -6
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +9 -2
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -2
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +4 -2
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +26 -4
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.js +2 -1
- package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.d.ts +2 -2
- package/dist/lib/plugins/openapi/Sidecar.js +64 -28
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
- package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -2
- package/dist/lib/plugins/openapi/SidecarExamples.js +24 -43
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
- package/dist/lib/plugins/openapi/components/ConstValue.js +1 -1
- package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -1
- package/dist/lib/plugins/openapi/components/EnumValues.js +1 -1
- package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -1
- package/dist/lib/plugins/openapi/components/NonHighlightedCode.d.ts +4 -0
- package/dist/lib/plugins/openapi/components/NonHighlightedCode.js +5 -0
- package/dist/lib/plugins/openapi/components/NonHighlightedCode.js.map +1 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.js +5 -6
- package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +15 -14
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +29 -13
- package/dist/lib/plugins/openapi/playground/BodyPanel.js +67 -15
- package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +2 -2
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +1 -1
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.js +23 -83
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +10 -2
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js +8 -1
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js +2 -3
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/Playground.js +70 -28
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +3 -2
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js +16 -40
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +2 -1
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +10 -2
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.js +19 -0
- package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +1 -1
- package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js +540 -0
- package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.d.ts +40 -0
- package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.js +205 -0
- package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +23 -21
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +2 -0
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +17 -8
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js +31 -16
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/UnionView.js +2 -5
- package/dist/lib/plugins/openapi/schema/UnionView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/union-helpers.js +0 -1
- package/dist/lib/plugins/openapi/schema/union-helpers.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.d.ts +2 -2
- package/dist/lib/plugins/openapi/schema/utils.js +11 -3
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js +24 -1
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +9 -11
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.d.ts +6 -1
- package/dist/lib/plugins/openapi/util/getRoutes.js +29 -2
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/IndexingDialog.d.ts +3 -0
- package/dist/lib/plugins/search-pagefind/IndexingDialog.js +64 -0
- package/dist/lib/plugins/search-pagefind/IndexingDialog.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +22 -5
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.js +5 -4
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
- package/dist/lib/shiki.d.ts +2 -2
- package/dist/lib/shiki.js +31 -14
- package/dist/lib/shiki.js.map +1 -1
- package/dist/lib/ui/Badge.d.ts +3 -3
- package/dist/lib/ui/Badge.js +9 -7
- package/dist/lib/ui/Badge.js.map +1 -1
- package/dist/lib/ui/Button.d.ts +2 -2
- package/dist/lib/ui/Button.js +10 -8
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/ButtonGroup.d.ts +11 -0
- package/dist/lib/ui/ButtonGroup.js +28 -0
- package/dist/lib/ui/ButtonGroup.js.map +1 -0
- package/dist/lib/ui/Callout.d.ts +5 -5
- package/dist/lib/ui/Callout.js +5 -5
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Checkbox.d.ts +2 -2
- package/dist/lib/ui/Checkbox.js +4 -4
- package/dist/lib/ui/Checkbox.js.map +1 -1
- package/dist/lib/ui/CodeBlock.d.ts +0 -1
- package/dist/lib/ui/CodeBlock.js +1 -1
- package/dist/lib/ui/CodeBlock.js.map +1 -1
- package/dist/lib/ui/Collapsible.d.ts +4 -4
- package/dist/lib/ui/Collapsible.js +11 -4
- package/dist/lib/ui/Collapsible.js.map +1 -1
- package/dist/lib/ui/Command.d.ts +3 -3
- package/dist/lib/ui/Command.js +2 -2
- package/dist/lib/ui/Command.js.map +1 -1
- package/dist/lib/ui/Dialog.d.ts +12 -18
- package/dist/lib/ui/Dialog.js +30 -17
- package/dist/lib/ui/Dialog.js.map +1 -1
- package/dist/lib/ui/DropdownMenu.d.ts +21 -23
- package/dist/lib/ui/DropdownMenu.js +47 -32
- package/dist/lib/ui/DropdownMenu.js.map +1 -1
- package/dist/lib/ui/EmbeddedCodeBlock.d.ts +3 -2
- package/dist/lib/ui/EmbeddedCodeBlock.js +4 -3
- package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -1
- package/dist/lib/ui/Frame.d.ts +8 -0
- package/dist/lib/ui/Frame.js +22 -0
- package/dist/lib/ui/Frame.js.map +1 -0
- package/dist/lib/ui/Item.d.ts +23 -0
- package/dist/lib/ui/Item.js +67 -0
- package/dist/lib/ui/Item.js.map +1 -0
- package/dist/lib/ui/Kbd.d.ts +3 -0
- package/dist/lib/ui/Kbd.js +10 -0
- package/dist/lib/ui/Kbd.js.map +1 -0
- package/dist/lib/ui/NativeSelect.d.ts +5 -0
- package/dist/lib/ui/NativeSelect.js +14 -0
- package/dist/lib/ui/NativeSelect.js.map +1 -0
- package/dist/lib/ui/ReactComponentDoc.d.ts +1 -1
- package/dist/lib/ui/ReactComponentDoc.js +2 -2
- package/dist/lib/ui/ReactComponentDoc.js.map +1 -1
- package/dist/lib/ui/Select.d.ts +13 -11
- package/dist/lib/ui/Select.js +34 -23
- package/dist/lib/ui/Select.js.map +1 -1
- package/dist/lib/ui/Separator.d.ts +4 -0
- package/dist/lib/ui/Separator.js +8 -0
- package/dist/lib/ui/Separator.js.map +1 -0
- package/dist/lib/ui/SyntaxHighlight.d.ts +1 -0
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
- package/dist/lib/ui/Tooltip.d.ts +7 -7
- package/dist/lib/ui/Tooltip.js +16 -10
- package/dist/lib/ui/Tooltip.js.map +1 -1
- package/dist/lib/util/MdxComponents.d.ts +3 -1
- package/dist/lib/util/MdxComponents.js +5 -2
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/createVariantComponent.d.ts +5 -2
- package/dist/lib/util/createVariantComponent.js +5 -2
- package/dist/lib/util/createVariantComponent.js.map +1 -1
- package/dist/lib/util/flattenAllOf.d.ts +4 -0
- package/dist/lib/util/flattenAllOf.js +88 -0
- package/dist/lib/util/flattenAllOf.js.map +1 -0
- package/dist/lib/util/flattenAllOf.test.d.ts +1 -0
- package/dist/lib/util/flattenAllOf.test.js +587 -0
- package/dist/lib/util/flattenAllOf.test.js.map +1 -0
- package/dist/lib/util/invariant.d.ts +1 -1
- package/dist/lib/util/invariant.js +2 -2
- package/dist/lib/util/invariant.js.map +1 -1
- package/dist/lib/util/readFrontmatter.d.ts +6 -0
- package/dist/lib/util/readFrontmatter.js +12 -0
- package/dist/lib/util/readFrontmatter.js.map +1 -0
- package/dist/lib/util/syncZustandState.d.ts +5 -0
- package/dist/lib/util/syncZustandState.js +14 -0
- package/dist/lib/util/syncZustandState.js.map +1 -0
- package/dist/vite/api/SchemaManager.d.ts +9 -1
- package/dist/vite/api/SchemaManager.js +58 -21
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/api/SchemaManager.test.js +69 -2
- package/dist/vite/api/SchemaManager.test.js.map +1 -1
- package/dist/vite/config.js +13 -1
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/dev-server.js +25 -0
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/error-handler.js +1 -5
- package/dist/vite/error-handler.js.map +1 -1
- package/dist/vite/mdx/remark-last-modified.js +57 -3
- package/dist/vite/mdx/remark-last-modified.js.map +1 -1
- package/dist/vite/mdx/remark-link-rewrite.js +1 -1
- package/dist/vite/pagefind-dev-index.d.ts +16 -0
- package/dist/vite/pagefind-dev-index.js +68 -0
- package/dist/vite/pagefind-dev-index.js.map +1 -0
- package/dist/vite/plugin-api-keys.js +5 -1
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.js +55 -8
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-docs.js +1 -1
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-frontmatter.js +3 -5
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-markdown-export.js +8 -7
- package/dist/vite/plugin-markdown-export.js.map +1 -1
- package/dist/vite/plugin-mdx.js +36 -30
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-theme.js +10 -1
- package/dist/vite/plugin-theme.js.map +1 -1
- package/dist/vite/prerender/prerender.js +1 -19
- package/dist/vite/prerender/prerender.js.map +1 -1
- package/dist/vite/prerender/utils.d.ts +2 -0
- package/dist/vite/prerender/utils.js +30 -0
- package/dist/vite/prerender/utils.js.map +1 -0
- package/dist/vite/prerender/worker.js +3 -0
- package/dist/vite/prerender/worker.js.map +1 -1
- package/dist/vite/zuplo.d.ts +13 -0
- package/dist/vite/zuplo.js +15 -0
- package/dist/vite/zuplo.js.map +1 -0
- package/lib/ActionButton-B0CXL1Lq.js +25 -0
- package/lib/ActionButton-B0CXL1Lq.js.map +1 -0
- package/lib/Button-GUVe7pmt.js +54 -0
- package/lib/Button-GUVe7pmt.js.map +1 -0
- package/lib/{Card-KFniaZn5.js → Card-DCdq37aA.js} +2 -2
- package/lib/{Card-KFniaZn5.js.map → Card-DCdq37aA.js.map} +1 -1
- package/lib/ClaudeLogo-DHxJUhN_.js +69 -0
- package/lib/ClaudeLogo-DHxJUhN_.js.map +1 -0
- package/lib/{Command-CJY6q3PF.js → Command-N6VujV30.js} +26 -26
- package/lib/Command-N6VujV30.js.map +1 -0
- package/lib/Dialog-hlvmmQ_c.js +144 -0
- package/lib/Dialog-hlvmmQ_c.js.map +1 -0
- package/lib/{Drawer-Ci7XwhqT.js → Drawer-Ch7927PF.js} +7 -7
- package/lib/{Drawer-Ci7XwhqT.js.map → Drawer-Ch7927PF.js.map} +1 -1
- package/lib/DropdownMenu-DN0jNrjj.js +104 -0
- package/lib/DropdownMenu-DN0jNrjj.js.map +1 -0
- package/lib/Frame-DKlOmSkU.js +205 -0
- package/lib/Frame-DKlOmSkU.js.map +1 -0
- package/lib/HydrationBoundary-CNF2ZV3E.js +601 -0
- package/lib/HydrationBoundary-CNF2ZV3E.js.map +1 -0
- package/lib/IndexingDialog-D0YdGfbn.js +100 -0
- package/lib/IndexingDialog-D0YdGfbn.js.map +1 -0
- package/lib/Input-Cx-GeKoF.js +22 -0
- package/lib/Input-Cx-GeKoF.js.map +1 -0
- package/lib/MdxPage-CD36PJ17.js +210 -0
- package/lib/MdxPage-CD36PJ17.js.map +1 -0
- package/lib/Mermaid-Koc3z8mU.js +102 -0
- package/lib/Mermaid-Koc3z8mU.js.map +1 -0
- package/lib/{OAuthErrorPage-DJUOdr6Q.js → OAuthErrorPage-4mN5DA86.js} +16 -16
- package/lib/OAuthErrorPage-4mN5DA86.js.map +1 -0
- package/lib/OasProvider-DSe-hk5Y.js +40 -0
- package/lib/OasProvider-DSe-hk5Y.js.map +1 -0
- package/lib/OperationList-CaknPbvq.js +5823 -0
- package/lib/OperationList-CaknPbvq.js.map +1 -0
- package/lib/RouteGuard--A04ESy8.js +77 -0
- package/lib/RouteGuard--A04ESy8.js.map +1 -0
- package/lib/{SchemaList-1eLKXqn8.js → SchemaList-Dw3-CJPb.js} +28 -27
- package/lib/SchemaList-Dw3-CJPb.js.map +1 -0
- package/lib/SchemaView-DyJkiQkD.js +438 -0
- package/lib/SchemaView-DyJkiQkD.js.map +1 -0
- package/lib/Secret-BDBqq4p3.js +243 -0
- package/lib/Secret-BDBqq4p3.js.map +1 -0
- package/lib/Separator-BXt1LYnm.js +27 -0
- package/lib/Separator-BXt1LYnm.js.map +1 -0
- package/lib/SignUp-DRvN-8cq.js +50 -0
- package/lib/SignUp-DRvN-8cq.js.map +1 -0
- package/lib/{SyntaxHighlight-B0laqAqK.js → SyntaxHighlight-klTH8c6-.js} +1781 -1697
- package/lib/SyntaxHighlight-klTH8c6-.js.map +1 -0
- package/lib/{Toc-KzXCRqrX.js → Toc-PbuF-u9x.js} +6 -6
- package/lib/Toc-PbuF-u9x.js.map +1 -0
- package/lib/ZudokuContext-BZB1TWdT.js +387 -0
- package/lib/ZudokuContext-BZB1TWdT.js.map +1 -0
- package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js +9 -0
- package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js.map +1 -0
- package/lib/chunk-EPOLDU6W-C6C8jAwd.js +8558 -0
- package/lib/chunk-EPOLDU6W-C6C8jAwd.js.map +1 -0
- package/lib/{circular-D6wbrxuf.js → circular-DFquXeY2.js} +6459 -6030
- package/lib/circular-DFquXeY2.js.map +1 -0
- package/lib/{cn-dYga0KKN.js → cn-5-Gd1Dss.js} +531 -498
- package/lib/cn-5-Gd1Dss.js.map +1 -0
- package/lib/createServer-BXZ0CAUn.js +16693 -0
- package/lib/createServer-BXZ0CAUn.js.map +1 -0
- package/lib/createVariantComponent-Dc0vtOvr.js +18 -0
- package/lib/createVariantComponent-Dc0vtOvr.js.map +1 -0
- package/lib/{errors-XqO6MsfU.js → errors-rWHkzVTd.js} +3 -3
- package/lib/{errors-XqO6MsfU.js.map → errors-rWHkzVTd.js.map} +1 -1
- package/lib/firebase-BmGU1FuD.js +7614 -0
- package/lib/firebase-BmGU1FuD.js.map +1 -0
- package/lib/hook-BGlHBdET.js +52 -0
- package/lib/hook-BGlHBdET.js.map +1 -0
- package/lib/{ErrorAlert-VBJ8aHH7.js → index-BDsEwofZ.js} +5503 -4505
- package/lib/index-BDsEwofZ.js.map +1 -0
- package/lib/index-BQB9hb6n.js +3677 -0
- package/lib/index-BQB9hb6n.js.map +1 -0
- package/lib/index-CrcNWbel.js.map +1 -1
- package/lib/index-DBjOT2H1.js +133 -0
- package/lib/index-DBjOT2H1.js.map +1 -0
- package/lib/{index-C5L4favO.js → index-DRBOFufT.js} +2 -2
- package/lib/{index-C5L4favO.js.map → index-DRBOFufT.js.map} +1 -1
- package/lib/index.esm-BYObtETB.js.map +1 -1
- package/lib/{index.esm-BnYHxCYC.js → index.esm-B_0dvNjB.js} +20 -20
- package/lib/{index.esm-BnYHxCYC.js.map → index.esm-B_0dvNjB.js.map} +1 -1
- package/lib/index.esm-Cx8B1YJQ.js +34 -0
- package/lib/index.esm-Cx8B1YJQ.js.map +1 -0
- package/lib/{invariant-Bm-FVUQE.js → invariant-BJAl77rw.js} +6 -6
- package/lib/invariant-BJAl77rw.js.map +1 -0
- package/lib/jsx-runtime-BzflLqGi.js.map +1 -1
- package/lib/{mutation-CdGPxHNX.js → mutation-BISOc7OM.js} +70 -44
- package/lib/mutation-BISOc7OM.js.map +1 -0
- package/lib/ui/Accordion.js +1 -1
- package/lib/ui/ActionButton.js +2 -2
- package/lib/ui/Alert.js +1 -1
- package/lib/ui/AlertDialog.js +1 -1
- package/lib/ui/Badge.js +27 -13
- package/lib/ui/Badge.js.map +1 -1
- package/lib/ui/Breadcrumb.js +1 -1
- package/lib/ui/Button.js +28 -25
- package/lib/ui/Button.js.map +1 -1
- package/lib/ui/ButtonGroup.js +77 -0
- package/lib/ui/ButtonGroup.js.map +1 -0
- package/lib/ui/Callout.js +19 -19
- package/lib/ui/Callout.js.map +1 -1
- package/lib/ui/Card.js +1 -1
- package/lib/ui/Carousel.js +1 -1
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js +29 -26
- package/lib/ui/Checkbox.js.map +1 -1
- package/lib/ui/CodeBlock.js +217 -7
- package/lib/ui/CodeBlock.js.map +1 -1
- package/lib/ui/Collapsible.js +32 -5
- package/lib/ui/Collapsible.js.map +1 -1
- package/lib/ui/Command.js +5 -5
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Dialog.js +136 -106
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/Drawer.js +3 -3
- package/lib/ui/DropdownMenu.js +227 -140
- package/lib/ui/DropdownMenu.js.map +1 -1
- package/lib/ui/EmbeddedCodeBlock.js +36 -32
- package/lib/ui/EmbeddedCodeBlock.js.map +1 -1
- package/lib/ui/Form.js +1 -1
- package/lib/ui/Frame.js +81 -0
- package/lib/ui/Frame.js.map +1 -0
- package/lib/ui/HoverCard.js +1 -1
- package/lib/ui/Input.js +1 -1
- package/lib/ui/Item.js +188 -0
- package/lib/ui/Item.js.map +1 -0
- package/lib/ui/Kbd.js +32 -0
- package/lib/ui/Kbd.js.map +1 -0
- package/lib/ui/Label.js +1 -1
- package/lib/ui/NativeSelect.js +57 -0
- package/lib/ui/NativeSelect.js.map +1 -0
- package/lib/ui/Pagination.js +1 -1
- package/lib/ui/Popover.js +1 -1
- package/lib/ui/Progress.js +1 -1
- package/lib/ui/RadioGroup.js +1 -1
- package/lib/ui/ReactComponentDoc.js +13 -13
- package/lib/ui/ReactComponentDoc.js.map +1 -1
- package/lib/ui/ScrollArea.js +1 -1
- package/lib/ui/Secret.js +1 -1
- package/lib/ui/Select.js +166 -116
- package/lib/ui/Select.js.map +1 -1
- package/lib/ui/Separator.js +27 -0
- package/lib/ui/Separator.js.map +1 -0
- package/lib/ui/Skeleton.js +1 -1
- package/lib/ui/Slider.js +1 -1
- package/lib/ui/Switch.js +1 -1
- package/lib/ui/SyntaxHighlight.js +4 -4
- package/lib/ui/Tabs.js +11 -11
- package/lib/ui/Textarea.js +1 -1
- package/lib/ui/Toggle.js +1 -1
- package/lib/ui/ToggleGroup.js +1 -1
- package/lib/ui/Tooltip.js +55 -28
- package/lib/ui/Tooltip.js.map +1 -1
- package/lib/ui/Value.js +1 -1
- package/lib/ui/util.js +1 -1
- package/lib/useMutation-CFMGlAMW.js +119 -0
- package/lib/useMutation-CFMGlAMW.js.map +1 -0
- package/lib/useSuspenseQuery-CSB_rVek.js +1226 -0
- package/lib/useSuspenseQuery-CSB_rVek.js.map +1 -0
- package/lib/zudoku.__internal.js +826 -1325
- package/lib/zudoku.__internal.js.map +1 -1
- package/lib/zudoku.auth-auth0.js +19 -19
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-azureb2c.js +28 -28
- package/lib/zudoku.auth-azureb2c.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +41 -64
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-firebase.js +10 -0
- package/lib/zudoku.auth-firebase.js.map +1 -0
- package/lib/zudoku.auth-openid.js +52 -55
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.auth-supabase.js +107 -60
- package/lib/zudoku.auth-supabase.js.map +1 -1
- package/lib/zudoku.components.js +23 -21
- package/lib/zudoku.hooks.js +11 -24
- package/lib/zudoku.hooks.js.map +1 -1
- package/lib/zudoku.mermaid.js +10 -0
- package/lib/zudoku.mermaid.js.map +1 -0
- package/lib/zudoku.plugin-api-catalog.js +8 -8
- package/lib/zudoku.plugin-api-keys.js +607 -543
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +10 -9
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +6 -7
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +185 -226
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.plugins.js.map +1 -1
- package/lib/zudoku.react-query.js +440 -0
- package/lib/zudoku.react-query.js.map +1 -0
- package/lib/zudoku.router.js +1130 -1404
- package/lib/zudoku.router.js.map +1 -1
- package/package.json +76 -45
- package/src/app/entry.server.tsx +16 -6
- package/src/app/main.css +61 -9
- package/src/app/main.tsx +5 -1
- package/src/app/sentry.ts +1 -1
- package/src/lib/auth/issuer.ts +3 -0
- package/src/lib/authentication/authentication.ts +29 -5
- package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
- package/src/lib/authentication/components/OAuthErrorPage.tsx +1 -1
- package/src/lib/authentication/components/SignIn.tsx +10 -5
- package/src/lib/authentication/components/SignOut.tsx +7 -6
- package/src/lib/authentication/components/SignUp.tsx +8 -8
- package/src/lib/authentication/hook.ts +37 -10
- package/src/lib/authentication/providers/auth0.tsx +23 -11
- package/src/lib/authentication/providers/azureb2c.tsx +10 -3
- package/src/lib/authentication/providers/clerk.tsx +9 -28
- package/src/lib/authentication/providers/firebase.tsx +376 -0
- package/src/lib/authentication/providers/openid.tsx +18 -15
- package/src/lib/authentication/providers/supabase/SupabaseAuthUI.tsx +75 -0
- package/src/lib/authentication/providers/supabase.tsx +61 -59
- package/src/lib/authentication/state.ts +3 -23
- package/src/lib/authentication/ui/EmailVerificationUi.tsx +129 -0
- package/src/lib/authentication/ui/ZudokuAuthUi.tsx +477 -0
- package/src/lib/authentication/ui/icons/Apple.tsx +10 -0
- package/src/lib/authentication/ui/icons/Facebook.tsx +15 -0
- package/src/lib/authentication/ui/icons/Github.tsx +16 -0
- package/src/lib/authentication/ui/icons/Google.tsx +16 -0
- package/src/lib/authentication/ui/icons/Microsoft.tsx +12 -0
- package/src/lib/authentication/ui/icons/X.tsx +10 -0
- package/src/lib/authentication/utils/relativeRedirectUrl.ts +12 -0
- package/src/lib/components/Autocomplete.tsx +11 -2
- package/src/lib/components/Layout.tsx +3 -2
- package/src/lib/components/Mermaid.tsx +68 -0
- package/src/lib/components/PagefindSearchMeta.tsx +14 -0
- package/src/lib/components/Pagination.tsx +4 -5
- package/src/lib/components/Zudoku.tsx +7 -10
- package/src/lib/components/index.ts +4 -0
- package/src/lib/components/navigation/NavigationItem.tsx +16 -23
- package/src/lib/components/navigation/Toc.tsx +3 -3
- package/src/lib/core/RouteGuard.tsx +69 -43
- package/src/lib/core/ZudokuContext.ts +3 -0
- package/src/lib/core/plugins.ts +2 -2
- package/src/lib/core/react-query.ts +1 -0
- package/src/lib/errors/ErrorAlert.tsx +1 -1
- package/src/lib/errors/ErrorMessage.tsx +38 -0
- package/src/lib/errors/RouterError.tsx +7 -2
- package/src/lib/oas/graphql/circular.test.ts +186 -0
- package/src/lib/oas/graphql/circular.ts +49 -10
- package/src/lib/oas/graphql/index.ts +7 -3
- package/src/lib/oas/parser/index.ts +10 -3
- package/src/lib/plugins/api-keys/ProtectedRoute.tsx +11 -7
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +36 -476
- package/src/lib/plugins/api-keys/index.tsx +76 -32
- package/src/lib/plugins/api-keys/settings/ApiKeyItem.tsx +342 -0
- package/src/lib/plugins/api-keys/settings/ApiKeyList.tsx +67 -0
- package/src/lib/plugins/api-keys/settings/RevealApiKey.tsx +124 -0
- package/src/lib/plugins/markdown/MdxPage.tsx +4 -1
- package/src/lib/plugins/markdown/index.tsx +2 -0
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +5 -3
- package/src/lib/plugins/openapi/DownloadSchemaButton.tsx +115 -0
- package/src/lib/plugins/openapi/Endpoint.tsx +20 -27
- package/src/lib/plugins/openapi/GeneratedExampleSidecarBox.tsx +52 -0
- package/src/lib/plugins/openapi/OasProvider.tsx +30 -17
- package/src/lib/plugins/openapi/OperationList.tsx +51 -21
- package/src/lib/plugins/openapi/OperationListItem.tsx +15 -12
- package/src/lib/plugins/openapi/ParamInfos.tsx +1 -0
- package/src/lib/plugins/openapi/ParameterList.tsx +37 -23
- package/src/lib/plugins/openapi/ParameterListItem.tsx +105 -54
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +48 -7
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +101 -33
- package/src/lib/plugins/openapi/SchemaList.tsx +4 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +148 -67
- package/src/lib/plugins/openapi/SidecarBox.tsx +26 -4
- package/src/lib/plugins/openapi/SidecarExamples.tsx +91 -79
- package/src/lib/plugins/openapi/components/ConstValue.tsx +1 -1
- package/src/lib/plugins/openapi/components/EnumValues.tsx +2 -2
- package/src/lib/plugins/openapi/components/NonHighlightedCode.tsx +22 -0
- package/src/lib/plugins/openapi/components/ResponseContent.tsx +63 -53
- package/src/lib/plugins/openapi/index.tsx +25 -36
- package/src/lib/plugins/openapi/interfaces.ts +28 -7
- package/src/lib/plugins/openapi/playground/BodyPanel.tsx +246 -30
- package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +10 -6
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +3 -2
- package/src/lib/plugins/openapi/playground/Headers.tsx +103 -219
- package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +33 -1
- package/src/lib/plugins/openapi/playground/PathParams.tsx +26 -34
- package/src/lib/plugins/openapi/playground/Playground.tsx +88 -35
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +10 -31
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +82 -136
- package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +20 -1
- package/src/lib/plugins/openapi/playground/request-panel/MultipartField.tsx +91 -0
- package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +1 -1
- package/src/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.tsx +872 -0
- package/src/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.ts +349 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +2 -2
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +102 -62
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +1 -1
- package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +3 -0
- package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +1 -1
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +89 -55
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +100 -60
- package/src/lib/plugins/openapi/schema/UnionView.tsx +6 -17
- package/src/lib/plugins/openapi/schema/union-helpers.ts +0 -1
- package/src/lib/plugins/openapi/schema/utils.ts +20 -6
- package/src/lib/plugins/openapi/util/createHttpSnippet.ts +29 -1
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +11 -11
- package/src/lib/plugins/openapi/util/getRoutes.tsx +35 -3
- package/src/lib/plugins/search-pagefind/IndexingDialog.tsx +163 -0
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +61 -22
- package/src/lib/plugins/search-pagefind/ResultList.tsx +8 -3
- package/src/lib/shiki.ts +37 -14
- package/src/lib/ui/Badge.tsx +21 -12
- package/src/lib/ui/Button.tsx +11 -9
- package/src/lib/ui/ButtonGroup.tsx +82 -0
- package/src/lib/ui/Callout.tsx +10 -5
- package/src/lib/ui/Checkbox.tsx +23 -24
- package/src/lib/ui/CodeBlock.tsx +3 -4
- package/src/lib/ui/Collapsible.tsx +26 -4
- package/src/lib/ui/Command.tsx +3 -3
- package/src/lib/ui/Dialog.tsx +112 -106
- package/src/lib/ui/DropdownMenu.tsx +226 -170
- package/src/lib/ui/EmbeddedCodeBlock.tsx +24 -19
- package/src/lib/ui/Frame.tsx +81 -0
- package/src/lib/ui/Item.tsx +192 -0
- package/src/lib/ui/Kbd.tsx +28 -0
- package/src/lib/ui/NativeSelect.tsx +47 -0
- package/src/lib/ui/ReactComponentDoc.tsx +17 -17
- package/src/lib/ui/Select.tsx +153 -126
- package/src/lib/ui/Separator.tsx +25 -0
- package/src/lib/ui/SyntaxHighlight.tsx +6 -1
- package/src/lib/ui/Tooltip.tsx +54 -32
- package/src/lib/util/MdxComponents.tsx +5 -5
- package/src/lib/util/createVariantComponent.tsx +31 -5
- package/src/lib/util/flattenAllOf.test.ts +689 -0
- package/src/lib/util/flattenAllOf.ts +122 -0
- package/src/lib/util/invariant.ts +2 -1
- package/src/lib/util/readFrontmatter.ts +13 -0
- package/src/lib/util/syncZustandState.ts +22 -0
- package/src/shiki/langs/markdown-nix.js +1 -0
- package/src/shiki/langs/openscad.js +1 -0
- package/dist/lib/plugins/openapi/playground/InlineInput.d.ts +0 -4
- package/dist/lib/plugins/openapi/playground/InlineInput.js +0 -3
- package/dist/lib/plugins/openapi/playground/InlineInput.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.d.ts +0 -5
- package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.js +0 -7
- package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.d.ts +0 -4
- package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.js +0 -10
- package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.d.ts +0 -5
- package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js +0 -16
- package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js.map +0 -1
- package/dist/vite/create-pagefind-index.d.ts +0 -4
- package/dist/vite/create-pagefind-index.js +0 -12
- package/dist/vite/create-pagefind-index.js.map +0 -1
- package/lib/Button-DmS4u8Lj.js +0 -51
- package/lib/Button-DmS4u8Lj.js.map +0 -1
- package/lib/CodeBlock-CanTUJLl.js +0 -221
- package/lib/CodeBlock-CanTUJLl.js.map +0 -1
- package/lib/Command-CJY6q3PF.js.map +0 -1
- package/lib/Dialog-BOl0QB3n.js +0 -114
- package/lib/Dialog-BOl0QB3n.js.map +0 -1
- package/lib/DropdownMenu-BZ2NKQ3K.js +0 -126
- package/lib/DropdownMenu-BZ2NKQ3K.js.map +0 -1
- package/lib/ErrorAlert-VBJ8aHH7.js.map +0 -1
- package/lib/MdxPage-DFRNwSsc.js +0 -239
- package/lib/MdxPage-DFRNwSsc.js.map +0 -1
- package/lib/OAuthErrorPage-DJUOdr6Q.js.map +0 -1
- package/lib/OasProvider-BMUgPYQU.js +0 -36
- package/lib/OasProvider-BMUgPYQU.js.map +0 -1
- package/lib/OperationList-DVig5I94.js +0 -5446
- package/lib/OperationList-DVig5I94.js.map +0 -1
- package/lib/Pagination-CT4VUR6u.js +0 -37
- package/lib/Pagination-CT4VUR6u.js.map +0 -1
- package/lib/RouteGuard-BPWQlxy5.js +0 -56
- package/lib/RouteGuard-BPWQlxy5.js.map +0 -1
- package/lib/RouterError-fm21cqlj.js +0 -41
- package/lib/RouterError-fm21cqlj.js.map +0 -1
- package/lib/SchemaList-1eLKXqn8.js.map +0 -1
- package/lib/SchemaView-fq3uKfOA.js +0 -458
- package/lib/SchemaView-fq3uKfOA.js.map +0 -1
- package/lib/Select-CPoGZU_V.js +0 -372
- package/lib/Select-CPoGZU_V.js.map +0 -1
- package/lib/SignUp-BraHuRN_.js +0 -56
- package/lib/SignUp-BraHuRN_.js.map +0 -1
- package/lib/SyntaxHighlight-B0laqAqK.js.map +0 -1
- package/lib/Toc-KzXCRqrX.js.map +0 -1
- package/lib/ZudokuContext-BXTZApgy.js +0 -1506
- package/lib/ZudokuContext-BXTZApgy.js.map +0 -1
- package/lib/chunk-PVWAREVJ-BO6B-RAk.js +0 -7965
- package/lib/chunk-PVWAREVJ-BO6B-RAk.js.map +0 -1
- package/lib/circular-D6wbrxuf.js.map +0 -1
- package/lib/cn-dYga0KKN.js.map +0 -1
- package/lib/createServer-C5aY10Bc.js +0 -12559
- package/lib/createServer-C5aY10Bc.js.map +0 -1
- package/lib/hook-CAebs2rv.js +0 -31
- package/lib/hook-CAebs2rv.js.map +0 -1
- package/lib/index-BPSpOxTK.js +0 -1058
- package/lib/index-BPSpOxTK.js.map +0 -1
- package/lib/index-Bb9AsFlk.js +0 -3318
- package/lib/index-Bb9AsFlk.js.map +0 -1
- package/lib/invariant-Bm-FVUQE.js.map +0 -1
- package/lib/mutation-CdGPxHNX.js.map +0 -1
- package/lib/useExposedProps-Cd7Yg_uG.js +0 -113
- package/lib/useExposedProps-Cd7Yg_uG.js.map +0 -1
- package/src/lib/plugins/openapi/playground/InlineInput.tsx +0 -6
- package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.tsx +0 -36
- package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.tsx +0 -25
- package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.tsx +0 -42
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { j as t } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import { ArrowLeftIcon as n, ArrowRightIcon as l } from "lucide-react";
|
|
3
|
-
import { L as r } from "./chunk-PVWAREVJ-BO6B-RAk.js";
|
|
4
|
-
import { c } from "./cn-dYga0KKN.js";
|
|
5
|
-
import { B as o } from "./index-BPSpOxTK.js";
|
|
6
|
-
const j = ({
|
|
7
|
-
prev: s,
|
|
8
|
-
next: e,
|
|
9
|
-
className: i
|
|
10
|
-
}) => {
|
|
11
|
-
const a = "group transition-all p-5 space-x-1 rtl:space-x-reverse transition-all hover:text-foreground";
|
|
12
|
-
return /* @__PURE__ */ t.jsxs(
|
|
13
|
-
"div",
|
|
14
|
-
{
|
|
15
|
-
className: c(
|
|
16
|
-
"flex -mx-4 text-muted-foreground font-semibold",
|
|
17
|
-
s ? "justify-between" : "justify-end",
|
|
18
|
-
i
|
|
19
|
-
),
|
|
20
|
-
"data-pagefind-ignore": "all",
|
|
21
|
-
children: [
|
|
22
|
-
s && /* @__PURE__ */ t.jsx(o, { variant: "ghost", asChild: !0, children: /* @__PURE__ */ t.jsxs(r, { to: s.to, relative: "path", className: a, children: [
|
|
23
|
-
/* @__PURE__ */ t.jsx(n, { size: 14, strokeWidth: 2.5 }),
|
|
24
|
-
/* @__PURE__ */ t.jsx("span", { className: "text-lg truncate", children: s.label })
|
|
25
|
-
] }) }),
|
|
26
|
-
e && /* @__PURE__ */ t.jsx(o, { variant: "ghost", asChild: !0, children: /* @__PURE__ */ t.jsxs(r, { to: e.to, relative: "path", className: a, children: [
|
|
27
|
-
/* @__PURE__ */ t.jsx("span", { className: "text-lg truncate", children: e.label }),
|
|
28
|
-
/* @__PURE__ */ t.jsx(l, { size: 14, strokeWidth: 2.5 })
|
|
29
|
-
] }) })
|
|
30
|
-
]
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
};
|
|
34
|
-
export {
|
|
35
|
-
j as P
|
|
36
|
-
};
|
|
37
|
-
//# sourceMappingURL=Pagination-CT4VUR6u.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination-CT4VUR6u.js","sources":["../src/lib/components/Pagination.tsx"],"sourcesContent":["import { ArrowLeftIcon, ArrowRightIcon } from \"lucide-react\";\nimport { Link } from \"react-router\";\nimport { cn } from \"../util/cn.js\";\nimport { Button } from \"./index.js\";\n\nexport const Pagination = ({\n prev,\n next,\n className,\n}: {\n prev: { to: string; label: string } | undefined;\n next: { to: string; label: string } | undefined;\n className?: string;\n}) => {\n const linkClass =\n \"group transition-all p-5 space-x-1 rtl:space-x-reverse transition-all hover:text-foreground\";\n\n return (\n <div\n className={cn(\n \"flex -mx-4 text-muted-foreground font-semibold\",\n prev ? \"justify-between\" : \"justify-end\",\n className,\n )}\n data-pagefind-ignore=\"all\"\n >\n {prev && (\n <Button variant=\"ghost\" asChild>\n <Link to={prev.to} relative=\"path\" className={linkClass}>\n <ArrowLeftIcon size={14} strokeWidth={2.5} />\n <span className=\"text-lg truncate\">{prev.label}</span>\n </Link>\n </Button>\n )}\n {next && (\n <Button variant=\"ghost\" asChild>\n <Link to={next.to} relative=\"path\" className={linkClass}>\n <span className=\"text-lg truncate\">{next.label}</span>\n <ArrowRightIcon size={14} strokeWidth={2.5} />\n </Link>\n </Button>\n )}\n </div>\n );\n};\n"],"names":["Pagination","prev","next","className","linkClass","jsxs","cn","jsx","Button","Link","ArrowLeftIcon","ArrowRightIcon"],"mappings":";;;;;AAKO,MAAMA,IAAa,CAAC;AAAA,EACzB,MAAAC;AAAA,EACA,MAAAC;AAAA,EACA,WAAAC;AACF,MAIM;AACJ,QAAMC,IACJ;AAEF,SACEC,gBAAAA,EAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACT;AAAA,QACAL,IAAO,oBAAoB;AAAA,QAC3BE;AAAA,MAAA;AAAA,MAEF,wBAAqB;AAAA,MAEpB,UAAA;AAAA,QAAAF,KACCM,gBAAAA,EAAAA,IAACC,GAAA,EAAO,SAAQ,SAAQ,SAAO,IAC7B,UAAAH,gBAAAA,EAAAA,KAACI,GAAA,EAAK,IAAIR,EAAK,IAAI,UAAS,QAAO,WAAWG,GAC5C,UAAA;AAAA,UAAAG,gBAAAA,EAAAA,IAACG,GAAA,EAAc,MAAM,IAAI,aAAa,KAAK;AAAA,UAC3CH,gBAAAA,EAAAA,IAAC,QAAA,EAAK,WAAU,oBAAoB,YAAK,MAAA,CAAM;AAAA,QAAA,EAAA,CACjD,EAAA,CACF;AAAA,QAEDL,KACCK,gBAAAA,EAAAA,IAACC,GAAA,EAAO,SAAQ,SAAQ,SAAO,IAC7B,UAAAH,gBAAAA,EAAAA,KAACI,GAAA,EAAK,IAAIP,EAAK,IAAI,UAAS,QAAO,WAAWE,GAC5C,UAAA;AAAA,UAAAG,gBAAAA,EAAAA,IAAC,QAAA,EAAK,WAAU,oBAAoB,UAAAL,EAAK,OAAM;AAAA,UAC/CK,gBAAAA,EAAAA,IAACI,GAAA,EAAe,MAAM,IAAI,aAAa,IAAA,CAAK;AAAA,QAAA,EAAA,CAC9C,EAAA,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import { a as m, e as p } from "./ZudokuContext-BXTZApgy.js";
|
|
3
|
-
import { H as h } from "./index.esm-BnYHxCYC.js";
|
|
4
|
-
import { createContext as f, use as g } from "react";
|
|
5
|
-
import { b as x, c as j, m as y, O as w } from "./chunk-PVWAREVJ-BO6B-RAk.js";
|
|
6
|
-
import { D as b, a as R, b as C, c as D, d as P } from "./Dialog-BOl0QB3n.js";
|
|
7
|
-
import { u as T } from "./hook-CAebs2rv.js";
|
|
8
|
-
import { Z as E } from "./invariant-Bm-FVUQE.js";
|
|
9
|
-
import { u as v } from "./useLatest-hmRS46UF.js";
|
|
10
|
-
const O = f(!1), A = "protected", N = () => {
|
|
11
|
-
const o = T(), n = m(), d = x(), s = j(), l = v(s.pathname), a = g(O), { protectedRoutes: i } = n.options, r = !a && i ? Object.entries(i).find(
|
|
12
|
-
([t]) => y({ path: t, end: !0 }, s.pathname)
|
|
13
|
-
)?.[1] : void 0, u = r !== void 0, c = u && !r({ auth: o, context: n });
|
|
14
|
-
if (p({
|
|
15
|
-
queryKey: ["login-redirect"],
|
|
16
|
-
queryFn: async () => (await new Promise((t) => setTimeout(t, 1200)), await n.authentication?.signIn({
|
|
17
|
-
redirectTo: l.current
|
|
18
|
-
}), !0),
|
|
19
|
-
enabled: typeof window < "u" && c && !o.isPending
|
|
20
|
-
}), c)
|
|
21
|
-
return /* @__PURE__ */ e.jsx(
|
|
22
|
-
b,
|
|
23
|
-
{
|
|
24
|
-
open: !0,
|
|
25
|
-
onOpenChange: (t) => {
|
|
26
|
-
t || d(-1);
|
|
27
|
-
},
|
|
28
|
-
children: /* @__PURE__ */ e.jsxs(R, { children: [
|
|
29
|
-
/* @__PURE__ */ e.jsx(C, { children: /* @__PURE__ */ e.jsx(D, { children: "Logging you in..." }) }),
|
|
30
|
-
/* @__PURE__ */ e.jsx(P, { children: "Please wait while we log you in." })
|
|
31
|
-
] })
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
if (u && !o.isAuthEnabled)
|
|
35
|
-
throw new E("Authentication is not enabled", {
|
|
36
|
-
title: "Authentication is not enabled",
|
|
37
|
-
developerHint: "To use protectedRoutes you need authentication to be enabled"
|
|
38
|
-
});
|
|
39
|
-
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
40
|
-
a && /* @__PURE__ */ e.jsx(h, { children: /* @__PURE__ */ e.jsx(
|
|
41
|
-
"meta",
|
|
42
|
-
{
|
|
43
|
-
name: "pagefind",
|
|
44
|
-
"data-pagefind-filter": `section:${A}`,
|
|
45
|
-
content: "true"
|
|
46
|
-
}
|
|
47
|
-
) }),
|
|
48
|
-
/* @__PURE__ */ e.jsx(w, {})
|
|
49
|
-
] });
|
|
50
|
-
};
|
|
51
|
-
export {
|
|
52
|
-
O as B,
|
|
53
|
-
N as R,
|
|
54
|
-
A as S
|
|
55
|
-
};
|
|
56
|
-
//# sourceMappingURL=RouteGuard-BPWQlxy5.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RouteGuard-BPWQlxy5.js","sources":["../src/lib/components/context/BypassProtectedRoutesContext.ts","../src/lib/core/RouteGuard.tsx"],"sourcesContent":["import { createContext } from \"react\";\n\nexport const BypassProtectedRoutesContext = createContext(false);\n","import { useQuery } from \"@tanstack/react-query\";\nimport { Helmet } from \"@zudoku/react-helmet-async\";\nimport { use } from \"react\";\nimport { matchPath, Outlet, useLocation, useNavigate } from \"react-router\";\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n} from \"zudoku/ui/Dialog.js\";\nimport { useAuth } from \"../authentication/hook.js\";\nimport { BypassProtectedRoutesContext } from \"../components/context/BypassProtectedRoutesContext.js\";\nimport { useZudoku } from \"../components/context/ZudokuContext.js\";\nimport { ZudokuError } from \"../util/invariant.js\";\nimport { useLatest } from \"../util/useLatest.js\";\n\nexport const SEARCH_PROTECTED_SECTION = \"protected\";\n\nexport const RouteGuard = () => {\n const auth = useAuth();\n const zudoku = useZudoku();\n const navigate = useNavigate();\n const location = useLocation();\n const latestPath = useLatest(location.pathname);\n const shouldBypass = use(BypassProtectedRoutesContext);\n const { protectedRoutes } = zudoku.options;\n\n const authCheckFn =\n !shouldBypass && protectedRoutes\n ? Object.entries(protectedRoutes).find(([path]) =>\n matchPath({ path, end: true }, location.pathname),\n )?.[1]\n : undefined;\n\n const isProtectedRoute = authCheckFn !== undefined;\n const needsToSignIn =\n isProtectedRoute && !authCheckFn({ auth, context: zudoku });\n\n useQuery({\n queryKey: [\"login-redirect\"],\n queryFn: async () => {\n await new Promise((resolve) => setTimeout(resolve, 1200));\n await zudoku.authentication?.signIn({\n redirectTo: latestPath.current,\n });\n return true;\n },\n enabled: typeof window !== \"undefined\" && needsToSignIn && !auth.isPending,\n });\n\n if (needsToSignIn) {\n return (\n <Dialog\n open={true}\n onOpenChange={(open) => {\n if (!open) {\n void navigate(-1);\n }\n }}\n >\n <DialogContent>\n <DialogHeader>\n <DialogTitle>Logging you in...</DialogTitle>\n </DialogHeader>\n <DialogDescription>\n Please wait while we log you in.\n </DialogDescription>\n </DialogContent>\n </Dialog>\n );\n }\n\n if (isProtectedRoute && !auth.isAuthEnabled) {\n throw new ZudokuError(\"Authentication is not enabled\", {\n title: \"Authentication is not enabled\",\n developerHint:\n \"To use protectedRoutes you need authentication to be enabled\",\n });\n }\n\n return (\n <>\n {shouldBypass && (\n <Helmet>\n <meta\n name=\"pagefind\"\n data-pagefind-filter={`section:${SEARCH_PROTECTED_SECTION}`}\n content=\"true\"\n />\n </Helmet>\n )}\n <Outlet />\n </>\n );\n};\n"],"names":["BypassProtectedRoutesContext","createContext","SEARCH_PROTECTED_SECTION","RouteGuard","auth","useAuth","zudoku","useZudoku","navigate","useNavigate","location","useLocation","latestPath","useLatest","shouldBypass","use","protectedRoutes","authCheckFn","path","matchPath","isProtectedRoute","needsToSignIn","useQuery","resolve","jsx","Dialog","open","DialogContent","DialogHeader","DialogTitle","DialogDescription","ZudokuError","jsxs","Fragment","Helmet","Outlet"],"mappings":";;;;;;;;;AAEO,MAAMA,IAA+BC,EAAc,EAAK,GCelDC,IAA2B,aAE3BC,IAAa,MAAM;AAC9B,QAAMC,IAAOC,EAAA,GACPC,IAASC,EAAA,GACTC,IAAWC,EAAA,GACXC,IAAWC,EAAA,GACXC,IAAaC,EAAUH,EAAS,QAAQ,GACxCI,IAAeC,EAAIf,CAA4B,GAC/C,EAAE,iBAAAgB,MAAoBV,EAAO,SAE7BW,IACJ,CAACH,KAAgBE,IACb,OAAO,QAAQA,CAAe,EAAE;AAAA,IAAK,CAAC,CAACE,CAAI,MACzCC,EAAU,EAAE,MAAAD,GAAM,KAAK,MAAQR,EAAS,QAAQ;AAAA,EAAA,IAC9C,CAAC,IACL,QAEAU,IAAmBH,MAAgB,QACnCI,IACJD,KAAoB,CAACH,EAAY,EAAE,MAAAb,GAAM,SAASE,GAAQ;AAc5D,MAZAgB,EAAS;AAAA,IACP,UAAU,CAAC,gBAAgB;AAAA,IAC3B,SAAS,aACP,MAAM,IAAI,QAAQ,CAACC,MAAY,WAAWA,GAAS,IAAI,CAAC,GACxD,MAAMjB,EAAO,gBAAgB,OAAO;AAAA,MAClC,YAAYM,EAAW;AAAA,IAAA,CACxB,GACM;AAAA,IAET,SAAS,OAAO,SAAW,OAAeS,KAAiB,CAACjB,EAAK;AAAA,EAAA,CAClE,GAEGiB;AACF,WACEG,gBAAAA,EAAAA;AAAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAM;AAAA,QACN,cAAc,CAACC,MAAS;AACtB,UAAKA,KACElB,EAAS,EAAE;AAAA,QAEpB;AAAA,QAEA,iCAACmB,GAAA,EACC,UAAA;AAAA,UAAAH,gBAAAA,MAACI,GAAA,EACC,UAAAJ,gBAAAA,EAAAA,IAACK,GAAA,EAAY,UAAA,oBAAA,CAAiB,GAChC;AAAA,UACAL,gBAAAA,EAAAA,IAACM,KAAkB,UAAA,mCAAA,CAEnB;AAAA,QAAA,EAAA,CACF;AAAA,MAAA;AAAA,IAAA;AAKN,MAAIV,KAAoB,CAAChB,EAAK;AAC5B,UAAM,IAAI2B,EAAY,iCAAiC;AAAA,MACrD,OAAO;AAAA,MACP,eACE;AAAA,IAAA,CACH;AAGH,SACEC,gBAAAA,EAAAA,KAAAC,YAAA,EACG,UAAA;AAAA,IAAAnB,2BACEoB,GAAA,EACC,UAAAV,gBAAAA,EAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,wBAAsB,WAAWtB,CAAwB;AAAA,QACzD,SAAQ;AAAA,MAAA;AAAA,IAAA,GAEZ;AAAA,0BAEDiC,GAAA,CAAA,CAAO;AAAA,EAAA,GACV;AAEJ;"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import { u as o, L as s, a as t, i as a } from "./chunk-PVWAREVJ-BO6B-RAk.js";
|
|
3
|
-
import { UnlinkIcon as n } from "lucide-react";
|
|
4
|
-
import { C as i } from "./CategoryHeading-DhmodDcq.js";
|
|
5
|
-
import { T as d, H as c, D as m, E as l } from "./ErrorAlert-VBJ8aHH7.js";
|
|
6
|
-
const p = () => {
|
|
7
|
-
const r = o();
|
|
8
|
-
return /* @__PURE__ */ e.jsxs(d, { className: "h-full pt-(--padding-content-top)", children: [
|
|
9
|
-
/* @__PURE__ */ e.jsx(i, { children: "404" }),
|
|
10
|
-
/* @__PURE__ */ e.jsxs(c, { level: 1, className: "flex gap-3.5 items-center", children: [
|
|
11
|
-
"Page not found",
|
|
12
|
-
/* @__PURE__ */ e.jsx(n, { size: 24 })
|
|
13
|
-
] }),
|
|
14
|
-
/* @__PURE__ */ e.jsxs(m, { children: [
|
|
15
|
-
"Start by adding a file at",
|
|
16
|
-
" ",
|
|
17
|
-
/* @__PURE__ */ e.jsxs("code", { children: [
|
|
18
|
-
"{DOCUMENT_ROOT}",
|
|
19
|
-
"/",
|
|
20
|
-
r["*"],
|
|
21
|
-
".mdx"
|
|
22
|
-
] }),
|
|
23
|
-
" ",
|
|
24
|
-
"and add some content to make this error go away. By default",
|
|
25
|
-
" ",
|
|
26
|
-
/* @__PURE__ */ e.jsx("code", { children: "DOCUMENT_ROOT" }),
|
|
27
|
-
" is the `pages` directory."
|
|
28
|
-
] }),
|
|
29
|
-
/* @__PURE__ */ e.jsx("p", { children: "It seems that the page you are looking for does not exist or may have been moved. Please check the URL for any typos or use the navigation menu to find the correct page." }),
|
|
30
|
-
/* @__PURE__ */ e.jsx(s, { to: "/", children: "Go back home" })
|
|
31
|
-
] });
|
|
32
|
-
};
|
|
33
|
-
function j() {
|
|
34
|
-
const r = t();
|
|
35
|
-
return a(r) && r.status === 404 ? /* @__PURE__ */ e.jsx(p, {}) : /* @__PURE__ */ e.jsx(l, { error: r });
|
|
36
|
-
}
|
|
37
|
-
export {
|
|
38
|
-
p as N,
|
|
39
|
-
j as R
|
|
40
|
-
};
|
|
41
|
-
//# sourceMappingURL=RouterError-fm21cqlj.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RouterError-fm21cqlj.js","sources":["../src/lib/components/NotFoundPage.tsx","../src/lib/errors/RouterError.tsx"],"sourcesContent":["import { UnlinkIcon } from \"lucide-react\";\nimport { Link, useParams } from \"react-router\";\nimport { CategoryHeading } from \"./CategoryHeading.js\";\nimport { DeveloperHint } from \"./DeveloperHint.js\";\nimport { Heading } from \"./Heading.js\";\nimport { Typography } from \"./Typography.js\";\n\nexport const NotFoundPage = () => {\n const params = useParams();\n\n return (\n <Typography className=\"h-full pt-(--padding-content-top)\">\n <CategoryHeading>404</CategoryHeading>\n <Heading level={1} className=\"flex gap-3.5 items-center\">\n Page not found\n <UnlinkIcon size={24} />\n </Heading>\n <DeveloperHint>\n Start by adding a file at{\" \"}\n <code>\n {\"{DOCUMENT_ROOT}\"}/{params[\"*\"]}.mdx\n </code>{\" \"}\n and add some content to make this error go away. By default{\" \"}\n <code>DOCUMENT_ROOT</code> is the `pages` directory.\n </DeveloperHint>\n <p>\n It seems that the page you are looking for does not exist or may have\n been moved. Please check the URL for any typos or use the navigation\n menu to find the correct page.\n </p>\n <Link to=\"/\">Go back home</Link>\n </Typography>\n );\n};\n","import { isRouteErrorResponse, useRouteError } from \"react-router\";\nimport { NotFoundPage } from \"../components/NotFoundPage.js\";\nimport { ErrorAlert } from \"./ErrorAlert.js\";\n\nexport function RouterError() {\n const error = useRouteError();\n\n if (isRouteErrorResponse(error) && error.status === 404) {\n return <NotFoundPage />;\n }\n\n return <ErrorAlert error={error} />;\n}\n"],"names":["NotFoundPage","params","useParams","jsxs","Typography","jsx","CategoryHeading","Heading","UnlinkIcon","DeveloperHint","Link","RouterError","error","useRouteError","isRouteErrorResponse","ErrorAlert"],"mappings":";;;;;AAOO,MAAMA,IAAe,MAAM;AAChC,QAAMC,IAASC,EAAA;AAEf,SACEC,gBAAAA,EAAAA,KAACC,GAAA,EAAW,WAAU,qCACpB,UAAA;AAAA,IAAAC,gBAAAA,EAAAA,IAACC,KAAgB,UAAA,MAAA,CAAG;AAAA,IACpBH,gBAAAA,EAAAA,KAACI,GAAA,EAAQ,OAAO,GAAG,WAAU,6BAA4B,UAAA;AAAA,MAAA;AAAA,MAEvDF,gBAAAA,EAAAA,IAACG,GAAA,EAAW,MAAM,GAAA,CAAI;AAAA,IAAA,GACxB;AAAA,2BACCC,GAAA,EAAc,UAAA;AAAA,MAAA;AAAA,MACa;AAAA,6BACzB,QAAA,EACE,UAAA;AAAA,QAAA;AAAA,QAAkB;AAAA,QAAER,EAAO,GAAG;AAAA,QAAE;AAAA,MAAA,GACnC;AAAA,MAAQ;AAAA,MAAI;AAAA,MACgD;AAAA,MAC5DI,gBAAAA,EAAAA,IAAC,UAAK,UAAA,gBAAA,CAAa;AAAA,MAAO;AAAA,IAAA,GAC5B;AAAA,IACAA,gBAAAA,EAAAA,IAAC,OAAE,UAAA,4KAAA,CAIH;AAAA,IACAA,gBAAAA,EAAAA,IAACK,GAAA,EAAK,IAAG,KAAI,UAAA,eAAA,CAAY;AAAA,EAAA,GAC3B;AAEJ;AC7BO,SAASC,IAAc;AAC5B,QAAMC,IAAQC,EAAA;AAEd,SAAIC,EAAqBF,CAAK,KAAKA,EAAM,WAAW,4BAC1CZ,GAAA,EAAa,IAGhBK,gBAAAA,MAACU,KAAW,OAAAH,GAAc;AACnC;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaList-1eLKXqn8.js","sources":["../src/lib/plugins/openapi/SchemaList.tsx"],"sourcesContent":["import slugify from \"@sindresorhus/slugify\";\nimport { useSuspenseQuery } from \"@tanstack/react-query\";\nimport { Helmet } from \"@zudoku/react-helmet-async\";\nimport {\n ChevronRightIcon,\n ChevronsDownUpIcon,\n ChevronsUpDownIcon,\n} from \"lucide-react\";\nimport { Button } from \"zudoku/ui/Button.js\";\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from \"zudoku/ui/Collapsible.js\";\nimport { CategoryHeading } from \"../../components/CategoryHeading.js\";\nimport { Heading } from \"../../components/Heading.js\";\nimport { Markdown } from \"../../components/Markdown.js\";\nimport { Toc } from \"../../components/navigation/Toc.js\";\nimport { useCreateQuery } from \"./client/useCreateQuery.js\";\nimport { useOasConfig } from \"./context.js\";\nimport { graphql } from \"./graphql/gql.js\";\nimport { SchemaView } from \"./schema/SchemaView.js\";\n\nconst GET_SCHEMAS = graphql(/* GraphQL */ `\n query GetSchemas($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n title\n description\n summary\n components {\n schemas {\n name\n schema\n extensions\n }\n }\n }\n }\n`);\n\nexport function SchemaList() {\n const { input, type, versions, version, options } = useOasConfig();\n const schemasQuery = useCreateQuery(GET_SCHEMAS, {\n input,\n type,\n });\n const { data } = useSuspenseQuery(schemasQuery);\n\n const schemas = data.schema.components?.schemas ?? [];\n const hasMultipleVersions = Object.entries(versions).length > 1;\n const showVersions =\n options?.showVersionSelect === \"always\" ||\n (hasMultipleVersions && options?.showVersionSelect !== \"hide\");\n\n if (!schemas.length) {\n return (\n <div>\n <Helmet>\n <title>Schemas {showVersions ? version : \"\"}</title>\n <meta name=\"description\" content=\"List of schemas used by the API.\" />\n </Helmet>\n No schemas found\n </div>\n );\n }\n\n return (\n <div\n className=\"grid grid-cols-(--sidecar-grid-cols) gap-8 justify-between\"\n data-pagefind-filter=\"section:openapi\"\n data-pagefind-meta=\"section:openapi\"\n >\n <Helmet>\n <title>Schemas {showVersions ? version : \"\"}</title>\n <meta name=\"description\" content=\"List of schemas used by the API.\" />\n </Helmet>\n <div className=\"pt-(--padding-content-top) pb-(--padding-content-bottom)\">\n <Collapsible className=\"w-full\">\n <div className=\"flex flex-col gap-y-4 sm:flex-row justify-around items-start sm:items-end\">\n <div className=\"flex-1\">\n <CategoryHeading>{data.schema.title}</CategoryHeading>\n <Heading\n level={1}\n id=\"schemas\"\n registerNavigationAnchor\n className=\"mb-0\"\n >\n Schemas\n {showVersions && (\n <span className=\"text-xl text-muted-foreground ms-1.5\">\n ({version})\n </span>\n )}\n </Heading>\n </div>\n {data.schema.description && (\n <CollapsibleTrigger className=\"flex items-center gap-1 text-sm font-medium text-muted-foreground group\">\n <span>API information</span>\n <ChevronsUpDownIcon\n className=\"group-data-[state=open]:hidden translate-y-px\"\n size={14}\n />\n <ChevronsDownUpIcon\n className=\"group-data-[state=closed]:hidden translate-y-px\"\n size={13}\n />\n </CollapsibleTrigger>\n )}\n </div>\n {data.schema.description && (\n <CollapsibleContent className=\"CollapsibleContent\">\n <div className=\"mt-4 max-w-full border rounded-sm bg-muted/25\">\n <Markdown\n className=\"max-w-full prose-img:max-w-prose border-border p-3 lg:p-5\"\n content={data.schema.description}\n />\n </div>\n </CollapsibleContent>\n )}\n </Collapsible>\n <hr className=\"my-8\" />\n <div className=\"flex flex-col gap-y-5\">\n {schemas.map((schema) => (\n <Collapsible key={schema.name} className=\"group\" defaultOpen>\n <Heading\n registerNavigationAnchor\n level={2}\n className=\"flex items-center gap-1 justify-between w-fit\"\n id={slugify(schema.name)}\n >\n {schema.name}{\" \"}\n <CollapsibleTrigger asChild>\n <Button variant=\"ghost\" size=\"icon\" className=\"size-6\">\n <ChevronRightIcon\n size={16}\n className=\"group-data-[state=open]:rotate-90 transition cursor-pointer\"\n />\n </Button>\n </CollapsibleTrigger>\n </Heading>\n <CollapsibleContent className=\"mt-4 CollapsibleContent\">\n <SchemaView schema={schema.schema} />\n </CollapsibleContent>\n </Collapsible>\n ))}\n </div>\n </div>\n <Toc\n entries={schemas.map((schema) => ({\n id: slugify(schema.name),\n value: schema.name,\n depth: 1,\n }))}\n />\n </div>\n );\n}\n"],"names":["GET_SCHEMAS","graphql","SchemaList","input","type","versions","version","options","useOasConfig","schemasQuery","useCreateQuery","data","useSuspenseQuery","schemas","hasMultipleVersions","showVersions","jsxs","Helmet","jsx","Collapsible","CategoryHeading","Heading","CollapsibleTrigger","ChevronsUpDownIcon","ChevronsDownUpIcon","CollapsibleContent","Markdown","schema","slugify","Button","ChevronRightIcon","SchemaView","Toc"],"mappings":";;;;;;;;;;;AAuBA,MAAMA,IAAcC;AAAA;AAAA,EAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAezC;AAEM,SAASC,IAAa;AAC3B,QAAM,EAAE,OAAAC,GAAO,MAAAC,GAAM,UAAAC,GAAU,SAAAC,GAAS,SAAAC,EAAA,IAAYC,EAAA,GAC9CC,IAAeC,EAAeV,GAAa;AAAA,IAC/C,OAAAG;AAAA,IACA,MAAAC;AAAA,EAAA,CACD,GACK,EAAE,MAAAO,EAAA,IAASC,EAAiBH,CAAY,GAExCI,IAAUF,EAAK,OAAO,YAAY,WAAW,CAAA,GAC7CG,IAAsB,OAAO,QAAQT,CAAQ,EAAE,SAAS,GACxDU,IACJR,GAAS,sBAAsB,YAC9BO,KAAuBP,GAAS,sBAAsB;AAEzD,SAAKM,EAAQ,SAaXG,gBAAAA,EAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,wBAAqB;AAAA,MACrB,sBAAmB;AAAA,MAEnB,UAAA;AAAA,QAAAA,gBAAAA,OAACC,GAAA,EACC,UAAA;AAAA,UAAAD,gBAAAA,OAAC,SAAA,EAAM,UAAA;AAAA,YAAA;AAAA,YAASD,IAAeT,IAAU;AAAA,UAAA,GAAG;AAAA,UAC5CY,gBAAAA,EAAAA,IAAC,QAAA,EAAK,MAAK,eAAc,SAAQ,mCAAA,CAAmC;AAAA,QAAA,GACtE;AAAA,QACAF,gBAAAA,EAAAA,KAAC,OAAA,EAAI,WAAU,4DACb,UAAA;AAAA,UAAAA,gBAAAA,EAAAA,KAACG,GAAA,EAAY,WAAU,UACrB,UAAA;AAAA,YAAAH,gBAAAA,EAAAA,KAAC,OAAA,EAAI,WAAU,6EACb,UAAA;AAAA,cAAAA,gBAAAA,EAAAA,KAAC,OAAA,EAAI,WAAU,UACb,UAAA;AAAA,gBAAAE,gBAAAA,EAAAA,IAACE,GAAA,EAAiB,UAAAT,EAAK,OAAO,OAAM;AAAA,gBACpCK,gBAAAA,EAAAA;AAAAA,kBAACK;AAAA,kBAAA;AAAA,oBACC,OAAO;AAAA,oBACP,IAAG;AAAA,oBACH,0BAAwB;AAAA,oBACxB,WAAU;AAAA,oBACX,UAAA;AAAA,sBAAA;AAAA,sBAEEN,KACCC,gBAAAA,EAAAA,KAAC,QAAA,EAAK,WAAU,wCAAuC,UAAA;AAAA,wBAAA;AAAA,wBACnDV;AAAA,wBAAQ;AAAA,sBAAA,EAAA,CACZ;AAAA,oBAAA;AAAA,kBAAA;AAAA,gBAAA;AAAA,cAEJ,GACF;AAAA,cACCK,EAAK,OAAO,eACXK,gBAAAA,EAAAA,KAACM,GAAA,EAAmB,WAAU,2EAC5B,UAAA;AAAA,gBAAAJ,gBAAAA,EAAAA,IAAC,UAAK,UAAA,kBAAA,CAAe;AAAA,gBACrBA,gBAAAA,EAAAA;AAAAA,kBAACK;AAAA,kBAAA;AAAA,oBACC,WAAU;AAAA,oBACV,MAAM;AAAA,kBAAA;AAAA,gBAAA;AAAA,gBAERL,gBAAAA,EAAAA;AAAAA,kBAACM;AAAA,kBAAA;AAAA,oBACC,WAAU;AAAA,oBACV,MAAM;AAAA,kBAAA;AAAA,gBAAA;AAAA,cACR,EAAA,CACF;AAAA,YAAA,GAEJ;AAAA,YACCb,EAAK,OAAO,eACXO,gBAAAA,EAAAA,IAACO,GAAA,EAAmB,WAAU,sBAC5B,UAAAP,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,iDACb,UAAAA,gBAAAA,EAAAA;AAAAA,cAACQ;AAAA,cAAA;AAAA,gBACC,WAAU;AAAA,gBACV,SAASf,EAAK,OAAO;AAAA,cAAA;AAAA,YAAA,GAEzB,EAAA,CACF;AAAA,UAAA,GAEJ;AAAA,UACAO,gBAAAA,EAAAA,IAAC,MAAA,EAAG,WAAU,OAAA,CAAO;AAAA,UACrBA,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,yBACZ,UAAAL,EAAQ,IAAI,CAACc,MACZX,gBAAAA,EAAAA,KAACG,GAAA,EAA8B,WAAU,SAAQ,aAAW,IAC1D,UAAA;AAAA,YAAAH,gBAAAA,EAAAA;AAAAA,cAACK;AAAA,cAAA;AAAA,gBACC,0BAAwB;AAAA,gBACxB,OAAO;AAAA,gBACP,WAAU;AAAA,gBACV,IAAIO,EAAQD,EAAO,IAAI;AAAA,gBAEtB,UAAA;AAAA,kBAAAA,EAAO;AAAA,kBAAM;AAAA,kBACdT,gBAAAA,EAAAA,IAACI,GAAA,EAAmB,SAAO,IACzB,UAAAJ,gBAAAA,EAAAA,IAACW,GAAA,EAAO,SAAQ,SAAQ,MAAK,QAAO,WAAU,UAC5C,UAAAX,gBAAAA,EAAAA;AAAAA,oBAACY;AAAA,oBAAA;AAAA,sBACC,MAAM;AAAA,sBACN,WAAU;AAAA,oBAAA;AAAA,kBAAA,GAEd,EAAA,CACF;AAAA,gBAAA;AAAA,cAAA;AAAA,YAAA;AAAA,YAEFZ,gBAAAA,EAAAA,IAACO,KAAmB,WAAU,2BAC5B,gCAACM,GAAA,EAAW,QAAQJ,EAAO,OAAA,CAAQ,EAAA,CACrC;AAAA,UAAA,KAnBgBA,EAAO,IAoBzB,CACD,EAAA,CACH;AAAA,QAAA,GACF;AAAA,QACAT,gBAAAA,EAAAA;AAAAA,UAACc;AAAA,UAAA;AAAA,YACC,SAASnB,EAAQ,IAAI,CAACc,OAAY;AAAA,cAChC,IAAIC,EAAQD,EAAO,IAAI;AAAA,cACvB,OAAOA,EAAO;AAAA,cACd,OAAO;AAAA,YAAA,EACP;AAAA,UAAA;AAAA,QAAA;AAAA,MACJ;AAAA,IAAA;AAAA,EAAA,2BAjGC,OAAA,EACC,UAAA;AAAA,IAAAX,gBAAAA,OAACC,GAAA,EACC,UAAA;AAAA,MAAAD,gBAAAA,OAAC,SAAA,EAAM,UAAA;AAAA,QAAA;AAAA,QAASD,IAAeT,IAAU;AAAA,MAAA,GAAG;AAAA,MAC5CY,gBAAAA,EAAAA,IAAC,QAAA,EAAK,MAAK,eAAc,SAAQ,mCAAA,CAAmC;AAAA,IAAA,GACtE;AAAA,IAAS;AAAA,EAAA,GAEX;AA8FN;"}
|
|
@@ -1,458 +0,0 @@
|
|
|
1
|
-
import { j as r } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import { ChevronUpIcon as E, ChevronDownIcon as A, ChevronsLeftRightIcon as R, CircleFadingPlusIcon as B, SquareMinusIcon as M, SquarePlusIcon as L, MinusIcon as T, PlusIcon as D, RefreshCcwDotIcon as F, InfoIcon as G } from "lucide-react";
|
|
3
|
-
import { S as m, I as w, M as P } from "./ErrorAlert-VBJ8aHH7.js";
|
|
4
|
-
import { Card as f } from "./ui/Card.js";
|
|
5
|
-
import { useState as u, isValidElement as J, useCallback as U } from "react";
|
|
6
|
-
import { B as _ } from "./Button-DmS4u8Lj.js";
|
|
7
|
-
import { c as j } from "./cn-dYga0KKN.js";
|
|
8
|
-
import * as d from "@radix-ui/react-collapsible";
|
|
9
|
-
import { Button as K } from "./ui/Button.js";
|
|
10
|
-
import { C as W } from "./circular-D6wbrxuf.js";
|
|
11
|
-
import { Badge as Q } from "./ui/Badge.js";
|
|
12
|
-
const X = (e, s) => e.reduce(
|
|
13
|
-
(t, i) => {
|
|
14
|
-
const o = s(i);
|
|
15
|
-
return t[o] || (t[o] = []), t[o].push(i), t;
|
|
16
|
-
},
|
|
17
|
-
{}
|
|
18
|
-
), S = ({
|
|
19
|
-
schema: e,
|
|
20
|
-
hideDescription: s = !1
|
|
21
|
-
}) => /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-1 text-xs", children: /* @__PURE__ */ r.jsxs("div", { children: [
|
|
22
|
-
/* @__PURE__ */ r.jsx("span", { className: "text-muted-foreground", children: "Const value: " }),
|
|
23
|
-
/* @__PURE__ */ r.jsx(m, { className: "border rounded px-1 font-mono", children: e.const }),
|
|
24
|
-
!s && e.description && /* @__PURE__ */ r.jsx("div", { className: "text-muted-foreground", children: e.description })
|
|
25
|
-
] }) }), g = ({
|
|
26
|
-
values: e,
|
|
27
|
-
className: s,
|
|
28
|
-
maxVisibleValues: t = 8
|
|
29
|
-
}) => {
|
|
30
|
-
const [i, o] = u(!1);
|
|
31
|
-
if (!e.length) return null;
|
|
32
|
-
const n = e.length > t, l = n && !i ? e.slice(0, t) : e;
|
|
33
|
-
return /* @__PURE__ */ r.jsxs("div", { className: j("flex flex-wrap gap-1.5 text-xs", s), children: [
|
|
34
|
-
/* @__PURE__ */ r.jsx("span", { className: "text-muted-foreground", children: "Enum values: " }),
|
|
35
|
-
l.map((c) => /* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsx(m, { className: "border rounded-sm px-1 font-mono", children: c }) }, c)),
|
|
36
|
-
n && /* @__PURE__ */ r.jsx(
|
|
37
|
-
_,
|
|
38
|
-
{
|
|
39
|
-
variant: "ghost",
|
|
40
|
-
size: "sm",
|
|
41
|
-
className: "h-fit px-0",
|
|
42
|
-
onClick: () => o(!i),
|
|
43
|
-
children: i ? /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
44
|
-
/* @__PURE__ */ r.jsx(E, { size: 12 }),
|
|
45
|
-
/* @__PURE__ */ r.jsx("span", { className: "text-muted-foreground", children: "show less" })
|
|
46
|
-
] }) : /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
47
|
-
/* @__PURE__ */ r.jsx(A, { size: 12 }),
|
|
48
|
-
/* @__PURE__ */ r.jsxs("span", { className: "text-muted-foreground", children: [
|
|
49
|
-
"show ",
|
|
50
|
-
e.length - t,
|
|
51
|
-
" more"
|
|
52
|
-
] })
|
|
53
|
-
] })
|
|
54
|
-
}
|
|
55
|
-
)
|
|
56
|
-
] });
|
|
57
|
-
}, Y = ({ pattern: e }) => {
|
|
58
|
-
const [s, t] = u(!1), i = e.length > 20, o = i ? `${e.slice(0, 20)}…` : e;
|
|
59
|
-
return /* @__PURE__ */ r.jsxs(
|
|
60
|
-
w,
|
|
61
|
-
{
|
|
62
|
-
className: j("text-xs", i && "cursor-pointer"),
|
|
63
|
-
onClick: () => t(!s),
|
|
64
|
-
selectOnClick: !1,
|
|
65
|
-
children: [
|
|
66
|
-
s ? e : o,
|
|
67
|
-
i && /* @__PURE__ */ r.jsx("button", { type: "button", className: "p-1 translate-y-[2px]", children: !s && /* @__PURE__ */ r.jsx(R, { size: 12 }) })
|
|
68
|
-
]
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
}, Z = (e) => e ? [
|
|
72
|
-
e.type === "array" && e.items.type ? Array.isArray(e.items.type) ? `(${e.items.type.join(" | ")})[]` : `${e.items.type}[]` : Array.isArray(e.type) ? e.type.join(" | ") : e.type,
|
|
73
|
-
e.enum && "enum",
|
|
74
|
-
e.const && "const",
|
|
75
|
-
e.format,
|
|
76
|
-
e.minimum !== void 0 && `min: ${e.minimum}`,
|
|
77
|
-
e.maximum !== void 0 && `max: ${e.maximum}`,
|
|
78
|
-
e.minLength !== void 0 && `minLength: ${e.minLength}`,
|
|
79
|
-
e.maxLength !== void 0 && `maxLength: ${e.maxLength}`,
|
|
80
|
-
e.minItems !== void 0 && `minItems: ${e.minItems}`,
|
|
81
|
-
e.maxItems !== void 0 && `maxItems: ${e.maxItems}`,
|
|
82
|
-
e.minProperties !== void 0 && `minProps: ${e.minProperties}`,
|
|
83
|
-
e.maxProperties !== void 0 && `maxProps: ${e.maxProperties}`,
|
|
84
|
-
e.uniqueItems && "unique",
|
|
85
|
-
e.readOnly && "readOnly",
|
|
86
|
-
e.writeOnly && "writeOnly",
|
|
87
|
-
e.deprecated && "deprecated",
|
|
88
|
-
e.pattern && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
89
|
-
"pattern: ",
|
|
90
|
-
/* @__PURE__ */ r.jsx(Y, { pattern: e.pattern })
|
|
91
|
-
] })
|
|
92
|
-
] : [], b = ({
|
|
93
|
-
schema: e,
|
|
94
|
-
extraItems: s = [],
|
|
95
|
-
className: t
|
|
96
|
-
}) => {
|
|
97
|
-
const i = [...Z(e), ...s].flatMap(
|
|
98
|
-
(o) => typeof o == "string" || J(o) ? o : []
|
|
99
|
-
);
|
|
100
|
-
return /* @__PURE__ */ r.jsx("span", { className: t, children: i.map((o, n) => (
|
|
101
|
-
// biome-ignore lint/suspicious/noArrayIndexKey: index should be stable
|
|
102
|
-
/* @__PURE__ */ r.jsxs("span", { className: "text-muted-foreground", children: [
|
|
103
|
-
o,
|
|
104
|
-
n < i.length - 1 && /* @__PURE__ */ r.jsx("span", { className: "text-muted-foreground/50", children: " · " })
|
|
105
|
-
] }, n)
|
|
106
|
-
)) });
|
|
107
|
-
}, H = ({
|
|
108
|
-
isOpen: e,
|
|
109
|
-
className: s,
|
|
110
|
-
schemeName: t
|
|
111
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
112
|
-
"div",
|
|
113
|
-
{
|
|
114
|
-
className: j(
|
|
115
|
-
"text-green-500 dark:text-green-300/60",
|
|
116
|
-
"relative text-sm flex py-2",
|
|
117
|
-
"before:border-l before:absolute before:-top-2 before:-bottom-2 before:border-border before:border-dashed before:content-['']",
|
|
118
|
-
s
|
|
119
|
-
),
|
|
120
|
-
children: /* @__PURE__ */ r.jsxs("div", { className: "-translate-x-[7px] flex gap-1 items-center", children: [
|
|
121
|
-
/* @__PURE__ */ r.jsx(B, { size: 16, className: "fill-card" }),
|
|
122
|
-
/* @__PURE__ */ r.jsx(
|
|
123
|
-
"div",
|
|
124
|
-
{
|
|
125
|
-
className: j(
|
|
126
|
-
"translate-y-px mx-px opacity-0 group-hover:opacity-100 transition",
|
|
127
|
-
!e && "-rotate-90"
|
|
128
|
-
),
|
|
129
|
-
children: /* @__PURE__ */ r.jsx(A, { size: 16 })
|
|
130
|
-
}
|
|
131
|
-
),
|
|
132
|
-
/* @__PURE__ */ r.jsx("span", { className: "text-sm text-foreground", children: t })
|
|
133
|
-
] })
|
|
134
|
-
}
|
|
135
|
-
), ee = (e) => {
|
|
136
|
-
const [s, t] = u(!0);
|
|
137
|
-
return /* @__PURE__ */ r.jsxs(
|
|
138
|
-
d.Root,
|
|
139
|
-
{
|
|
140
|
-
open: s,
|
|
141
|
-
onOpenChange: () => t((i) => !i),
|
|
142
|
-
className: "group",
|
|
143
|
-
children: [
|
|
144
|
-
/* @__PURE__ */ r.jsx(d.Trigger, { children: /* @__PURE__ */ r.jsx(H, { isOpen: s, schemeName: e.schema.title }) }),
|
|
145
|
-
!s && /* @__PURE__ */ r.jsx("div", { className: "wavy-line bg-border translate-y-1" }),
|
|
146
|
-
/* @__PURE__ */ r.jsx(d.Content, { children: /* @__PURE__ */ r.jsx(p, { schema: e.schema }) })
|
|
147
|
-
]
|
|
148
|
-
}
|
|
149
|
-
);
|
|
150
|
-
}, $ = ({
|
|
151
|
-
schema: e,
|
|
152
|
-
cardHeader: s
|
|
153
|
-
}) => {
|
|
154
|
-
const [t, i] = u(!0), o = U(() => i((n) => !n), []);
|
|
155
|
-
return e.allOf ? /* @__PURE__ */ r.jsx(d.Root, { open: t, onOpenChange: o, asChild: !0, children: /* @__PURE__ */ r.jsxs(f, { className: "overflow-hidden", children: [
|
|
156
|
-
s,
|
|
157
|
-
/* @__PURE__ */ r.jsxs(d.Trigger, { className: "flex gap-2 items-center py-2 px-6 w-full text-sm text-muted-foreground -translate-x-1.5", children: [
|
|
158
|
-
t ? /* @__PURE__ */ r.jsx(M, { size: 14 }) : /* @__PURE__ */ r.jsx(L, { size: 14 }),
|
|
159
|
-
/* @__PURE__ */ r.jsx("span", { children: "All of" })
|
|
160
|
-
] }),
|
|
161
|
-
/* @__PURE__ */ r.jsx(d.Content, { className: "pb-4 px-6", children: e.allOf.map((n, l) => (
|
|
162
|
-
// biome-ignore lint/suspicious/noArrayIndexKey: Index needed for key
|
|
163
|
-
/* @__PURE__ */ r.jsx(ee, { schema: n }, l)
|
|
164
|
-
)) })
|
|
165
|
-
] }) }) : null;
|
|
166
|
-
}, N = ({
|
|
167
|
-
schema: e
|
|
168
|
-
}) => {
|
|
169
|
-
const s = e.examples?.at(0), t = e.default;
|
|
170
|
-
return s === void 0 && t === void 0 ? null : /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-1 text-xs", children: [
|
|
171
|
-
s !== void 0 && /* @__PURE__ */ r.jsxs("div", { children: [
|
|
172
|
-
/* @__PURE__ */ r.jsx("span", { className: "text-muted-foreground", children: "Example: " }),
|
|
173
|
-
/* @__PURE__ */ r.jsx(m, { className: "border rounded-sm px-1 font-mono", children: typeof s == "object" || typeof s == "boolean" ? JSON.stringify(s) : s })
|
|
174
|
-
] }),
|
|
175
|
-
t !== void 0 && /* @__PURE__ */ r.jsxs("div", { children: [
|
|
176
|
-
/* @__PURE__ */ r.jsx("span", { className: "text-muted-foreground", children: "Default: " }),
|
|
177
|
-
/* @__PURE__ */ r.jsx(m, { className: "border rounded-sm px-1 font-mono", children: typeof t == "object" || typeof t == "boolean" ? JSON.stringify(t) : t })
|
|
178
|
-
] })
|
|
179
|
-
] });
|
|
180
|
-
}, k = (e) => typeof e == "string" && ["string", "number", "boolean", "integer", "null"].includes(e) || Array.isArray(e) && e.every(k), h = (e) => e.type === "array" || // schema.type might be an array of types, so we need to check if "array" is one of them
|
|
181
|
-
Array.isArray(e.type) && e.type.includes("array"), O = (e) => e && (e.type === "object" && Object.keys(e.properties ?? {}).length > 0 || e.type === "array" && typeof e.items == "object" && (!e.items.type || e.items.type === "object")), q = (e) => typeof e == "string" && e.startsWith(W), I = (e) => h(e) && "items" in e && q(e.items), re = (e) => typeof e == "string" ? e.split(":")[1] : void 0, C = ({ circularProp: e }) => /* @__PURE__ */ r.jsxs(
|
|
182
|
-
w,
|
|
183
|
-
{
|
|
184
|
-
className: "inline-flex items-center gap-1.5 italic text-xs translate-y-0.5",
|
|
185
|
-
selectOnClick: !1,
|
|
186
|
-
children: [
|
|
187
|
-
/* @__PURE__ */ r.jsx(F, { size: 13 }),
|
|
188
|
-
/* @__PURE__ */ r.jsx("span", { children: e ? `${e} (circular)` : "circular" })
|
|
189
|
-
]
|
|
190
|
-
}
|
|
191
|
-
), se = ({
|
|
192
|
-
name: e,
|
|
193
|
-
schema: s,
|
|
194
|
-
group: t,
|
|
195
|
-
defaultOpen: i = !1,
|
|
196
|
-
showCollapseButton: o = !0
|
|
197
|
-
}) => {
|
|
198
|
-
const [n, l] = u(i);
|
|
199
|
-
if (q(s))
|
|
200
|
-
return /* @__PURE__ */ r.jsx("li", { className: "p-4 bg-border/20 hover:bg-border/30", children: /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-2.5 justify-between text-sm", children: [
|
|
201
|
-
/* @__PURE__ */ r.jsxs("div", { className: "space-x-2 rtl:space-x-reverse", children: [
|
|
202
|
-
/* @__PURE__ */ r.jsx("code", { children: e }),
|
|
203
|
-
/* @__PURE__ */ r.jsx(
|
|
204
|
-
b,
|
|
205
|
-
{
|
|
206
|
-
schema: s,
|
|
207
|
-
extraItems: [/* @__PURE__ */ r.jsx(C, {}, "circular-ref")]
|
|
208
|
-
}
|
|
209
|
-
)
|
|
210
|
-
] }),
|
|
211
|
-
/* @__PURE__ */ r.jsx(N, { schema: s })
|
|
212
|
-
] }) });
|
|
213
|
-
const c = !!((s.allOf || s.anyOf || s.oneOf || O(s) || h(s) && "items" in s && O(s.items) || s.additionalProperties) && !I(s));
|
|
214
|
-
return /* @__PURE__ */ r.jsx("li", { className: "p-4 bg-border/20 hover:bg-border/30", children: /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-2.5 justify-between text-sm", children: [
|
|
215
|
-
/* @__PURE__ */ r.jsxs("div", { className: "space-x-2 rtl:space-x-reverse", children: [
|
|
216
|
-
/* @__PURE__ */ r.jsx(m, { asChild: !0, children: /* @__PURE__ */ r.jsx("code", { children: e }) }),
|
|
217
|
-
/* @__PURE__ */ r.jsx(
|
|
218
|
-
b,
|
|
219
|
-
{
|
|
220
|
-
schema: s,
|
|
221
|
-
extraItems: [
|
|
222
|
-
t !== "optional" && /* @__PURE__ */ r.jsx("span", { className: "text-primary", children: "required" }),
|
|
223
|
-
I(s) && /* @__PURE__ */ r.jsx(
|
|
224
|
-
C,
|
|
225
|
-
{
|
|
226
|
-
circularProp: re(s.items)
|
|
227
|
-
}
|
|
228
|
-
)
|
|
229
|
-
]
|
|
230
|
-
}
|
|
231
|
-
)
|
|
232
|
-
] }),
|
|
233
|
-
s.description && /* @__PURE__ */ r.jsx(
|
|
234
|
-
P,
|
|
235
|
-
{
|
|
236
|
-
className: "text-sm leading-normal",
|
|
237
|
-
content: s.description
|
|
238
|
-
}
|
|
239
|
-
),
|
|
240
|
-
s.type === "array" && "items" in s && s.items.enum && /* @__PURE__ */ r.jsx(g, { values: s.items.enum }),
|
|
241
|
-
s.const && /* @__PURE__ */ r.jsx(S, { schema: s, hideDescription: !0 }),
|
|
242
|
-
s.enum && /* @__PURE__ */ r.jsx(g, { values: s.enum }),
|
|
243
|
-
/* @__PURE__ */ r.jsx(N, { schema: s }),
|
|
244
|
-
c && /* @__PURE__ */ r.jsxs(
|
|
245
|
-
d.Root,
|
|
246
|
-
{
|
|
247
|
-
defaultOpen: i,
|
|
248
|
-
open: n,
|
|
249
|
-
onOpenChange: () => l(!n),
|
|
250
|
-
children: [
|
|
251
|
-
o && /* @__PURE__ */ r.jsx(d.Trigger, { asChild: !0, children: /* @__PURE__ */ r.jsxs(K, { variant: "expand", size: "sm", children: [
|
|
252
|
-
n ? /* @__PURE__ */ r.jsx(T, { size: 12 }) : /* @__PURE__ */ r.jsx(D, { size: 12 }),
|
|
253
|
-
n ? "Hide properties" : "Show properties"
|
|
254
|
-
] }) }),
|
|
255
|
-
/* @__PURE__ */ r.jsx(d.Content, { children: /* @__PURE__ */ r.jsx("div", { className: "mt-2", children: s.allOf ? /* @__PURE__ */ r.jsx($, { schema: s }) : s.anyOf || s.oneOf || s.type === "object" ? /* @__PURE__ */ r.jsx(p, { schema: s }) : h(s) && "items" in s ? /* @__PURE__ */ r.jsx(p, { schema: s.items }) : null }) })
|
|
256
|
-
]
|
|
257
|
-
}
|
|
258
|
-
)
|
|
259
|
-
] }) });
|
|
260
|
-
}, V = (e) => {
|
|
261
|
-
const s = e.oneOf ?? e.anyOf ?? [];
|
|
262
|
-
return e.properties && Object.keys(e.properties).length > 0 ? s.map((t) => !t.properties && !t.type && !t.allOf && !t.oneOf && !t.anyOf ? {
|
|
263
|
-
...t,
|
|
264
|
-
type: "object",
|
|
265
|
-
properties: e.properties,
|
|
266
|
-
required: t.required ?? e.required
|
|
267
|
-
} : t) : s;
|
|
268
|
-
}, te = (e) => {
|
|
269
|
-
if (Array.isArray(e.oneOf)) return "exactly-one";
|
|
270
|
-
const s = e.discriminator?.propertyName;
|
|
271
|
-
if (!s) return "at-least-one";
|
|
272
|
-
const t = V(e), i = /* @__PURE__ */ new Set();
|
|
273
|
-
for (const o of t) {
|
|
274
|
-
const n = o.properties?.[s], l = n?.const ?? (Array.isArray(n?.enum) && n.enum.length === 1 ? String(n.enum[0]) : void 0);
|
|
275
|
-
if (l == null || i.has(String(l))) return "at-least-one";
|
|
276
|
-
i.add(String(l));
|
|
277
|
-
}
|
|
278
|
-
return "exactly-one";
|
|
279
|
-
}, v = (e, s) => s.title?.trim() || `Variant ${e + 1}`, ne = (e, s) => {
|
|
280
|
-
const t = [];
|
|
281
|
-
e.type && t.push(
|
|
282
|
-
`type = ${Array.isArray(e.type) ? e.type.join("|") : e.type}`
|
|
283
|
-
);
|
|
284
|
-
const i = s?.discriminator?.propertyName;
|
|
285
|
-
if (i) {
|
|
286
|
-
const n = e.properties?.[i], l = n?.const ?? (Array.isArray(n?.enum) && n.enum.length === 1 ? n.enum[0] : void 0);
|
|
287
|
-
l !== void 0 && t.push(`${i}=${JSON.stringify(l)}`);
|
|
288
|
-
}
|
|
289
|
-
const o = (e.required ?? []).filter((n) => n !== i);
|
|
290
|
-
if (o.length) {
|
|
291
|
-
const n = o.slice(0, 3).join(", "), l = o.length > 3 ? ` +${o.length - 3} more` : "";
|
|
292
|
-
t.push(`requires: ${n}${l}`);
|
|
293
|
-
}
|
|
294
|
-
return t;
|
|
295
|
-
}, ie = ({
|
|
296
|
-
variants: e,
|
|
297
|
-
schema: s,
|
|
298
|
-
selectedVariant: t,
|
|
299
|
-
onSelectVariant: i
|
|
300
|
-
}) => {
|
|
301
|
-
const o = e.map((n, l) => ({
|
|
302
|
-
label: v(l, n),
|
|
303
|
-
guards: ne(n, s)
|
|
304
|
-
}));
|
|
305
|
-
return /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-2 text-sm", children: [
|
|
306
|
-
/* @__PURE__ */ r.jsx("h4", { className: "font-medium", children: "Decision Table" }),
|
|
307
|
-
/* @__PURE__ */ r.jsx("div", { className: "border rounded-md overflow-hidden", children: /* @__PURE__ */ r.jsxs("table", { className: "w-full", children: [
|
|
308
|
-
/* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { className: "border-b bg-muted/50", children: [
|
|
309
|
-
/* @__PURE__ */ r.jsx("th", { className: "text-left p-2 font-medium", children: "Variant" }),
|
|
310
|
-
/* @__PURE__ */ r.jsx("th", { className: "text-left p-2 font-medium", children: "Matching Criteria" })
|
|
311
|
-
] }) }),
|
|
312
|
-
/* @__PURE__ */ r.jsx("tbody", { className: "divide-y", children: o.map((n) => /* @__PURE__ */ r.jsxs("tr", { className: "hover:bg-muted/30", children: [
|
|
313
|
-
/* @__PURE__ */ r.jsx("td", { className: "p-2 font-medium", children: /* @__PURE__ */ r.jsx(
|
|
314
|
-
"button",
|
|
315
|
-
{
|
|
316
|
-
type: "button",
|
|
317
|
-
className: j(
|
|
318
|
-
"hover:underline",
|
|
319
|
-
t === n.label && "text-primary"
|
|
320
|
-
),
|
|
321
|
-
onClick: () => i(n.label),
|
|
322
|
-
children: n.label
|
|
323
|
-
}
|
|
324
|
-
) }),
|
|
325
|
-
/* @__PURE__ */ r.jsx("td", { className: "p-2 text-muted-foreground text-xs", children: n.guards.length > 0 ? n.guards.join(" · ") : "No specific criteria" })
|
|
326
|
-
] }, n.label)) })
|
|
327
|
-
] }) })
|
|
328
|
-
] });
|
|
329
|
-
}, oe = ({ variant: e }) => /* @__PURE__ */ r.jsxs("div", { className: "space-y-2", children: [
|
|
330
|
-
e.description && /* @__PURE__ */ r.jsx("p", { className: "text-sm text-muted-foreground", children: e.description }),
|
|
331
|
-
/* @__PURE__ */ r.jsx(p, { schema: e })
|
|
332
|
-
] }), le = ({
|
|
333
|
-
schema: e,
|
|
334
|
-
cardHeader: s
|
|
335
|
-
}) => {
|
|
336
|
-
const t = Array.isArray(e.oneOf) ? "oneOf" : Array.isArray(e.anyOf) ? "anyOf" : void 0, i = t ? V(e) : [], [o, n] = u(
|
|
337
|
-
() => i[0] ? v(0, i[0]) : ""
|
|
338
|
-
);
|
|
339
|
-
if (!t) return null;
|
|
340
|
-
const c = te(e) === "exactly-one" ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
341
|
-
"Exactly one variant ",
|
|
342
|
-
/* @__PURE__ */ r.jsx("b", { children: "must match" }),
|
|
343
|
-
"."
|
|
344
|
-
] }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
345
|
-
"At least one variant ",
|
|
346
|
-
/* @__PURE__ */ r.jsx("b", { children: "must match" }),
|
|
347
|
-
". Multiple variants",
|
|
348
|
-
" ",
|
|
349
|
-
/* @__PURE__ */ r.jsx("i", { children: "may match" }),
|
|
350
|
-
" simultaneously."
|
|
351
|
-
] }), a = i.findIndex(
|
|
352
|
-
(y, z) => v(z, y) === o
|
|
353
|
-
), x = a >= 0 ? i[a] : null;
|
|
354
|
-
return /* @__PURE__ */ r.jsxs(f, { className: "overflow-hidden text-sm", children: [
|
|
355
|
-
s,
|
|
356
|
-
/* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-4 p-4", children: [
|
|
357
|
-
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
358
|
-
/* @__PURE__ */ r.jsx(Q, { variant: "outline", children: t }),
|
|
359
|
-
/* @__PURE__ */ r.jsx("div", { className: "flex-1 p-2", children: /* @__PURE__ */ r.jsx("span", { className: "text-sm", children: c }) })
|
|
360
|
-
] }),
|
|
361
|
-
/* @__PURE__ */ r.jsx(
|
|
362
|
-
ie,
|
|
363
|
-
{
|
|
364
|
-
variants: i,
|
|
365
|
-
schema: e,
|
|
366
|
-
selectedVariant: o,
|
|
367
|
-
onSelectVariant: n
|
|
368
|
-
}
|
|
369
|
-
),
|
|
370
|
-
/* @__PURE__ */ r.jsxs("strong", { children: [
|
|
371
|
-
"Properties for ",
|
|
372
|
-
o,
|
|
373
|
-
":"
|
|
374
|
-
] }),
|
|
375
|
-
x && /* @__PURE__ */ r.jsx(oe, { variant: x })
|
|
376
|
-
] })
|
|
377
|
-
] });
|
|
378
|
-
}, ae = (e) => e && /* @__PURE__ */ r.jsx(
|
|
379
|
-
P,
|
|
380
|
-
{
|
|
381
|
-
className: "text-sm leading-normal line-clamp-4",
|
|
382
|
-
content: e
|
|
383
|
-
}
|
|
384
|
-
), de = (e, s) => /* @__PURE__ */ r.jsxs(f, { className: "overflow-hidden", children: [
|
|
385
|
-
s,
|
|
386
|
-
/* @__PURE__ */ r.jsxs("div", { className: "p-4 space-y-2", children: [
|
|
387
|
-
/* @__PURE__ */ r.jsx("span", { className: "text-sm text-muted-foreground", children: /* @__PURE__ */ r.jsx(b, { schema: e }) }),
|
|
388
|
-
e.enum && /* @__PURE__ */ r.jsx(g, { values: e.enum }),
|
|
389
|
-
ae(e.description),
|
|
390
|
-
/* @__PURE__ */ r.jsx(N, { schema: e })
|
|
391
|
-
] })
|
|
392
|
-
] }), p = ({
|
|
393
|
-
schema: e,
|
|
394
|
-
defaultOpen: s = !1,
|
|
395
|
-
cardHeader: t,
|
|
396
|
-
embedded: i
|
|
397
|
-
}) => {
|
|
398
|
-
if (!e || Object.keys(e).length === 0)
|
|
399
|
-
return /* @__PURE__ */ r.jsxs(f, { className: "overflow-hidden", children: [
|
|
400
|
-
t,
|
|
401
|
-
/* @__PURE__ */ r.jsx("div", { className: "text-sm text-muted-foreground italic p-4", children: "No data returned" })
|
|
402
|
-
] });
|
|
403
|
-
if (e.const)
|
|
404
|
-
return /* @__PURE__ */ r.jsx(S, { schema: e });
|
|
405
|
-
if (Array.isArray(e.oneOf) || Array.isArray(e.anyOf))
|
|
406
|
-
return /* @__PURE__ */ r.jsx(le, { schema: e, cardHeader: t });
|
|
407
|
-
if (Array.isArray(e.allOf))
|
|
408
|
-
return /* @__PURE__ */ r.jsx($, { schema: e, cardHeader: t });
|
|
409
|
-
if (k(e.type))
|
|
410
|
-
return de(e, t);
|
|
411
|
-
if (e.type === "array" && typeof e.items == "object")
|
|
412
|
-
return /* @__PURE__ */ r.jsx(p, { schema: e.items, cardHeader: t });
|
|
413
|
-
if (e.type === "object") {
|
|
414
|
-
const o = X(
|
|
415
|
-
Object.entries(e.properties ?? {}),
|
|
416
|
-
([a, x]) => x.deprecated ? "deprecated" : e.required?.includes(a) ? "required" : "optional"
|
|
417
|
-
), n = ["required", "optional", "deprecated"], l = typeof e.additionalProperties == "object" ? /* @__PURE__ */ r.jsx(p, { schema: e.additionalProperties, embedded: !0 }) : e.additionalProperties === !0 ? /* @__PURE__ */ r.jsxs("div", { className: "text-sm p-4 bg-border/20 hover:bg-border/30 flex items-center gap-1", children: [
|
|
418
|
-
/* @__PURE__ */ r.jsx("span", { children: "Additional properties are allowed" }),
|
|
419
|
-
/* @__PURE__ */ r.jsx(
|
|
420
|
-
"a",
|
|
421
|
-
{
|
|
422
|
-
className: "p-0.5 -m-0.5",
|
|
423
|
-
href: "https://swagger.io/docs/specification/v3_0/data-models/dictionaries/",
|
|
424
|
-
rel: "noopener noreferrer",
|
|
425
|
-
target: "_blank",
|
|
426
|
-
children: /* @__PURE__ */ r.jsx(G, { size: 14 })
|
|
427
|
-
}
|
|
428
|
-
)
|
|
429
|
-
] }) : null, c = i ? "div" : f;
|
|
430
|
-
return /* @__PURE__ */ r.jsxs(c, { className: "divide-y overflow-hidden", children: [
|
|
431
|
-
t,
|
|
432
|
-
n.map(
|
|
433
|
-
(a) => o[a] && /* @__PURE__ */ r.jsx("ul", { className: "divide-y", children: o[a].map(([x, y]) => /* @__PURE__ */ r.jsx(
|
|
434
|
-
se,
|
|
435
|
-
{
|
|
436
|
-
name: x,
|
|
437
|
-
schema: y,
|
|
438
|
-
group: a,
|
|
439
|
-
defaultOpen: s
|
|
440
|
-
},
|
|
441
|
-
x
|
|
442
|
-
)) }, a)
|
|
443
|
-
),
|
|
444
|
-
l
|
|
445
|
-
] });
|
|
446
|
-
}
|
|
447
|
-
return null;
|
|
448
|
-
};
|
|
449
|
-
export {
|
|
450
|
-
g as E,
|
|
451
|
-
b as P,
|
|
452
|
-
p as S,
|
|
453
|
-
N as a,
|
|
454
|
-
q as b,
|
|
455
|
-
X as g,
|
|
456
|
-
h as i
|
|
457
|
-
};
|
|
458
|
-
//# sourceMappingURL=SchemaView-fq3uKfOA.js.map
|