zudoku 0.0.0-ff3bc72 → 0.0.0-zuplo-api-keys.534c6f8
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/README.md +121 -0
- package/cli.js +11 -2
- package/dist/app/ZuploBuildConfig.d.ts +155 -0
- package/dist/app/ZuploBuildConfig.js +29 -0
- package/dist/app/ZuploBuildConfig.js.map +1 -0
- package/dist/app/demo.js +1 -4
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +6 -0
- package/dist/app/entry.client.js +53 -3
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +9 -6
- package/dist/app/entry.server.js +21 -14
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/env.d.ts +33 -0
- package/dist/app/env.js +29 -0
- package/dist/app/env.js.map +1 -0
- package/dist/app/main.d.ts +3 -2
- package/dist/app/main.js +50 -61
- package/dist/app/main.js.map +1 -1
- package/dist/app/sentry.d.ts +3 -0
- package/dist/app/sentry.js +19 -0
- package/dist/app/sentry.js.map +1 -0
- package/dist/app/standalone.js +1 -4
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/build/handler.d.ts +1 -3
- package/dist/cli/build/handler.js +9 -1
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/cli/cli.js +18 -5
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/cmds/build.d.ts +11 -3
- package/dist/cli/cmds/build.js +21 -13
- package/dist/cli/cmds/build.js.map +1 -1
- package/dist/cli/cmds/dev.d.ts +1 -1
- package/dist/cli/cmds/dev.js +5 -0
- package/dist/cli/cmds/dev.js.map +1 -1
- package/dist/cli/cmds/preview.d.ts +16 -0
- package/dist/cli/cmds/preview.js +25 -0
- package/dist/cli/cmds/preview.js.map +1 -0
- package/dist/cli/common/logger.js +9 -0
- package/dist/cli/common/logger.js.map +1 -1
- package/dist/cli/common/machine-id/lib.js +1 -0
- package/dist/cli/common/machine-id/lib.js.map +1 -1
- package/dist/cli/common/outdated.js +2 -1
- package/dist/cli/common/outdated.js.map +1 -1
- package/dist/cli/common/output.js.map +1 -1
- package/dist/cli/common/utils/box.js.map +1 -1
- package/dist/cli/common/utils/ports.d.ts +1 -1
- package/dist/cli/common/utils/ports.js +16 -15
- package/dist/cli/common/utils/ports.js.map +1 -1
- package/dist/cli/dev/handler.d.ts +1 -0
- package/dist/cli/dev/handler.js +16 -13
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/cli/preview/handler.d.ts +3 -0
- package/dist/cli/preview/handler.js +35 -0
- package/dist/cli/preview/handler.js.map +1 -0
- package/dist/codegen.d.ts +3 -0
- package/dist/codegen.js +45 -0
- package/dist/codegen.js.map +1 -0
- package/dist/config/config.d.ts +20 -16
- package/dist/config/file-exists.d.ts +1 -0
- package/dist/config/file-exists.js +5 -0
- package/dist/config/file-exists.js.map +1 -0
- package/dist/config/loader.d.ts +19 -0
- package/dist/config/loader.js +135 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/validators/BuildSchema.d.ts +60 -0
- package/dist/config/validators/BuildSchema.js +31 -0
- package/dist/config/validators/BuildSchema.js.map +1 -0
- package/dist/config/validators/InputSidebarSchema.d.ts +63 -32
- package/dist/config/validators/InputSidebarSchema.js +17 -28
- package/dist/config/validators/InputSidebarSchema.js.map +1 -1
- package/dist/config/validators/SidebarSchema.d.ts +24 -1
- package/dist/config/validators/SidebarSchema.js +80 -44
- package/dist/config/validators/SidebarSchema.js.map +1 -1
- package/dist/config/validators/icon-types.d.ts +1 -0
- package/dist/config/validators/icon-types.js +2 -0
- package/dist/config/validators/icon-types.js.map +1 -0
- package/dist/config/validators/validate.d.ts +4690 -332
- package/dist/config/validators/validate.js +273 -82
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +9 -2
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/MissingIcon.d.ts +2 -0
- package/dist/lib/MissingIcon.js +7 -0
- package/dist/lib/MissingIcon.js.map +1 -0
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +11 -4
- package/dist/lib/authentication/AuthenticationPlugin.js +16 -1
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +4 -5
- package/dist/lib/authentication/components/CallbackHandler.js +25 -31
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/components/SignIn.d.ts +1 -1
- package/dist/lib/authentication/components/SignIn.js +5 -2
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/components/SignOut.js +2 -2
- package/dist/lib/authentication/components/SignOut.js.map +1 -1
- package/dist/lib/authentication/components/SignUp.d.ts +1 -1
- package/dist/lib/authentication/components/SignUp.js +4 -1
- package/dist/lib/authentication/components/SignUp.js.map +1 -1
- package/dist/lib/authentication/hook.d.ts +6 -4
- package/dist/lib/authentication/hook.js +12 -4
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.d.ts +2 -2
- package/dist/lib/authentication/providers/auth0.js +15 -13
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.d.ts +2 -2
- package/dist/lib/authentication/providers/clerk.js +116 -47
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +21 -19
- package/dist/lib/authentication/providers/openid.js +62 -69
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/providers/supabase.d.ts +4 -0
- package/dist/lib/authentication/providers/supabase.js +115 -0
- package/dist/lib/authentication/providers/supabase.js.map +1 -0
- package/dist/lib/authentication/state.d.ts +23 -19
- package/dist/lib/authentication/state.js +34 -7
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
- package/dist/lib/authentication/use-broadcast/shared.js +243 -0
- package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
- package/dist/lib/components/AnchorLink.d.ts +2 -2
- package/dist/lib/components/AnchorLink.js +9 -5
- package/dist/lib/components/AnchorLink.js.map +1 -1
- package/dist/lib/components/Autocomplete.d.ts +13 -0
- package/dist/lib/components/Autocomplete.js +47 -0
- package/dist/lib/components/Autocomplete.js.map +1 -0
- package/dist/lib/components/Banner.js +1 -1
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/Bootstrap.d.ts +5 -3
- package/dist/lib/components/Bootstrap.js +13 -6
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/BuildCheck.d.ts +4 -0
- package/dist/lib/components/BuildCheck.js +38 -0
- package/dist/lib/components/BuildCheck.js.map +1 -0
- package/dist/lib/components/ClientOnly.d.ts +4 -2
- package/dist/lib/components/ClientOnly.js +1 -1
- package/dist/lib/components/ClientOnly.js.map +1 -1
- package/dist/lib/components/DeveloperHint.js +2 -1
- package/dist/lib/components/DeveloperHint.js.map +1 -1
- package/dist/lib/components/ErrorPage.js +1 -1
- package/dist/lib/components/Footer.d.ts +1 -0
- package/dist/lib/components/Footer.js +32 -0
- package/dist/lib/components/Footer.js.map +1 -0
- package/dist/lib/components/Header.js +31 -12
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +5 -5
- package/dist/lib/components/Heading.js +1 -1
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/InlineCode.d.ts +2 -1
- package/dist/lib/components/InlineCode.js +2 -9
- package/dist/lib/components/InlineCode.js.map +1 -1
- package/dist/lib/components/Layout.js +10 -21
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Main.d.ts +2 -0
- package/dist/lib/components/Main.js +18 -0
- package/dist/lib/components/Main.js.map +1 -0
- package/dist/lib/components/Markdown.d.ts +4 -2
- package/dist/lib/components/Markdown.js +10 -14
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +14 -7
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/NotFoundPage.js +2 -2
- package/dist/lib/components/NotFoundPage.js.map +1 -1
- package/dist/lib/components/Pagination.d.ts +11 -0
- package/dist/lib/components/Pagination.js +10 -0
- package/dist/lib/components/Pagination.js.map +1 -0
- package/dist/lib/components/PathRenderer.d.ts +11 -0
- package/dist/lib/components/PathRenderer.js +28 -0
- package/dist/lib/components/PathRenderer.js.map +1 -0
- package/dist/lib/components/ReactMarkdown.d.ts +29 -0
- package/dist/lib/components/ReactMarkdown.js +182 -0
- package/dist/lib/components/ReactMarkdown.js.map +1 -0
- package/dist/lib/components/Search.d.ts +3 -1
- package/dist/lib/components/Search.js +9 -3
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/Slot.d.ts +17 -0
- package/dist/lib/components/Slot.js +24 -0
- package/dist/lib/components/Slot.js.map +1 -0
- package/dist/lib/components/Slot.test.js +163 -0
- package/dist/lib/components/Slot.test.js.map +1 -0
- package/dist/lib/components/StatusPage.d.ts +7 -0
- package/dist/lib/components/StatusPage.js +71 -0
- package/dist/lib/components/StatusPage.js.map +1 -0
- package/dist/lib/components/ThemeSwitch.d.ts +1 -0
- package/dist/lib/components/ThemeSwitch.js +16 -0
- package/dist/lib/components/ThemeSwitch.js.map +1 -0
- package/dist/lib/components/TopNavigation.d.ts +3 -0
- package/dist/lib/components/TopNavigation.js +53 -8
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Zudoku.d.ts +7 -0
- package/dist/lib/components/Zudoku.js +58 -0
- package/dist/lib/components/Zudoku.js.map +1 -0
- package/dist/lib/components/cache.d.ts +13 -0
- package/dist/lib/components/cache.js +20 -0
- package/dist/lib/components/cache.js.map +1 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
- package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
- package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
- package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
- package/dist/lib/components/context/SlotProvider.d.ts +26 -0
- package/dist/lib/components/context/SlotProvider.js +83 -0
- package/dist/lib/components/context/SlotProvider.js.map +1 -0
- package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
- package/dist/lib/components/context/ViewportAnchorContext.js +29 -23
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +10 -14
- package/dist/lib/components/context/ZudokuContext.js +40 -27
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
- package/dist/lib/components/context/ZudokuProvider.js +2 -1
- package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
- package/dist/lib/components/index.d.ts +59 -16
- package/dist/lib/components/index.js +27 -6
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
- package/dist/lib/components/navigation/Sidebar.d.ts +5 -1
- package/dist/lib/components/navigation/Sidebar.js +4 -8
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/SidebarBadge.d.ts +6 -3
- package/dist/lib/components/navigation/SidebarBadge.js +13 -11
- package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +3 -3
- package/dist/lib/components/navigation/SidebarCategory.js +32 -14
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +3 -4
- package/dist/lib/components/navigation/SidebarItem.js +23 -17
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
- package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/components/navigation/Toc.js +46 -0
- package/dist/lib/components/navigation/Toc.js.map +1 -0
- package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
- package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
- package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
- package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
- package/dist/lib/components/navigation/ZuploLogo.js +4 -0
- package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
- package/dist/lib/components/navigation/utils.d.ts +3 -0
- package/dist/lib/components/navigation/utils.js +19 -15
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/RouteGuard.d.ts +2 -0
- package/dist/lib/core/RouteGuard.js +52 -0
- package/dist/lib/core/RouteGuard.js.map +1 -0
- package/dist/lib/core/ZudokuContext.d.ts +112 -0
- package/dist/lib/core/ZudokuContext.js +70 -0
- package/dist/lib/core/ZudokuContext.js.map +1 -0
- package/dist/lib/core/plugins.d.ts +35 -17
- package/dist/lib/core/plugins.js +4 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.d.ts +1 -1
- package/dist/lib/errors/ErrorAlert.js +13 -3
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/errors/RouterError.js +1 -1
- package/dist/lib/errors/RouterError.js.map +1 -1
- package/dist/lib/hooks/index.d.ts +3 -0
- package/dist/lib/hooks/index.js +5 -0
- package/dist/lib/hooks/index.js.map +1 -0
- package/dist/lib/hooks/useEvent.d.ts +11 -0
- package/dist/lib/hooks/useEvent.js +19 -0
- package/dist/lib/hooks/useEvent.js.map +1 -0
- package/dist/lib/hooks/useEvent.test.js +100 -0
- package/dist/lib/hooks/useEvent.test.js.map +1 -0
- package/dist/lib/icons.d.ts +1 -0
- package/dist/lib/icons.js +1 -0
- package/dist/lib/icons.js.map +1 -1
- package/dist/lib/oas/graphql/circular.d.ts +3 -0
- package/dist/lib/oas/graphql/circular.js +43 -0
- package/dist/lib/oas/graphql/circular.js.map +1 -0
- package/dist/lib/oas/graphql/index.d.ts +25 -1
- package/dist/lib/oas/graphql/index.js +216 -69
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/index.js +8 -3
- package/dist/lib/oas/parser/dereference/index.js.map +1 -1
- package/dist/lib/oas/parser/index.d.ts +8 -3
- package/dist/lib/oas/parser/index.js +7 -23
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.d.ts +3 -2
- package/dist/lib/oas/parser/upgrade/index.js +83 -31
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -0
- package/dist/lib/plugins/api-catalog/Catalog.js +26 -0
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
- package/dist/lib/plugins/api-catalog/index.d.ts +31 -0
- package/dist/lib/plugins/api-catalog/index.js +46 -0
- package/dist/lib/plugins/api-catalog/index.js.map +1 -0
- package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
- package/dist/lib/plugins/api-keys/CreateApiKey.js +16 -8
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
- package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
- package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +55 -24
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +23 -13
- package/dist/lib/plugins/api-keys/index.js +48 -32
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/CustomPage.d.ts +2 -0
- package/dist/lib/plugins/custom-pages/CustomPage.js +11 -0
- package/dist/lib/plugins/custom-pages/CustomPage.js.map +1 -0
- package/dist/lib/plugins/custom-pages/index.d.ts +10 -0
- package/dist/lib/plugins/custom-pages/index.js +11 -0
- package/dist/lib/plugins/custom-pages/index.js.map +1 -0
- package/dist/lib/plugins/markdown/MdxPage.d.ts +10 -2
- package/dist/lib/plugins/markdown/MdxPage.js +17 -4
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +8 -7
- package/dist/lib/plugins/markdown/index.js +31 -3
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/markdown/resolver.d.ts +32 -0
- package/dist/lib/plugins/markdown/resolver.js +46 -0
- package/dist/lib/plugins/markdown/resolver.js.map +1 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js +25 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
- package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
- package/dist/lib/plugins/openapi/ColorizedParam.js +29 -14
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +13 -16
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
- package/dist/lib/plugins/openapi/OasProvider.js +29 -0
- package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
- package/dist/lib/plugins/openapi/OperationList.d.ts +6 -3
- package/dist/lib/plugins/openapi/OperationList.js +107 -27
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.d.ts +5 -3
- package/dist/lib/plugins/openapi/OperationListItem.js +12 -6
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
- package/dist/lib/plugins/openapi/ParamInfos.js +45 -0
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
- package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
- package/dist/lib/plugins/openapi/ParameterList.js +3 -2
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +19 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +4 -2
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +12 -3
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +3 -4
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -9
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +4 -6
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
- package/dist/lib/plugins/openapi/SchemaList.js +53 -0
- package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
- package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +114 -65
- 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 -0
- package/dist/lib/plugins/openapi/SidecarExamples.js +76 -0
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
- package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js +43 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createServer.d.ts +3 -1
- package/dist/lib/plugins/openapi/client/createServer.js +5 -2
- package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +14 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +20 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
- package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
- package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
- package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
- package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
- package/dist/lib/plugins/openapi/context.d.ts +3 -3
- package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +8 -46
- package/dist/lib/plugins/openapi/graphql/gql.js +6 -13
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +141 -25
- package/dist/lib/plugins/openapi/graphql/graphql.js +238 -662
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +11 -8
- package/dist/lib/plugins/openapi/index.js +74 -104
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +57 -3
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +8 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +4 -4
- package/dist/lib/plugins/openapi/playground/Headers.js +84 -5
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js +8 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +9 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js +5 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
- package/dist/lib/plugins/openapi/playground/PathParams.js +5 -7
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +37 -2
- package/dist/lib/plugins/openapi/playground/Playground.js +133 -70
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +2 -2
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js +24 -18
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/SubmitButton.js +22 -0
- package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +11 -0
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +101 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +9 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +17 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +194 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js +159 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
- package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
- package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/traverse.js +2 -0
- package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +11 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +45 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -2
- package/dist/lib/plugins/openapi/schema/SchemaView.js +38 -49
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.d.ts +8 -1
- package/dist/lib/plugins/openapi/schema/utils.js +15 -4
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/state.d.ts +25 -0
- package/dist/lib/plugins/openapi/state.js +18 -0
- package/dist/lib/plugins/openapi/state.js.map +1 -0
- package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +9 -0
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js +23 -0
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -0
- package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -2
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +80 -39
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
- package/dist/lib/plugins/openapi/util/getRoutes.js +117 -0
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
- package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
- package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
- package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
- package/dist/lib/plugins/redirect/index.d.ts +4 -7
- package/dist/lib/plugins/redirect/index.js +2 -2
- package/dist/lib/plugins/redirect/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/index.d.ts +24 -5
- package/dist/lib/plugins/search-inkeep/index.js +41 -5
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
- package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
- package/dist/lib/plugins/search-pagefind/ResultList.js +32 -0
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
- package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
- package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
- package/dist/lib/plugins/search-pagefind/index.js +9 -0
- package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
- package/dist/lib/plugins/search-pagefind/types.js +2 -0
- package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
- package/dist/lib/shiki.d.ts +35 -0
- package/dist/lib/shiki.js +103 -0
- package/dist/lib/shiki.js.map +1 -0
- package/dist/lib/ui/Accordion.d.ts +7 -0
- package/dist/lib/ui/Accordion.js +14 -0
- package/dist/lib/ui/Accordion.js.map +1 -0
- package/dist/lib/ui/ActionButton.d.ts +4 -0
- package/dist/lib/ui/ActionButton.js +10 -0
- package/dist/lib/ui/ActionButton.js.map +1 -0
- package/dist/lib/ui/Alert.d.ts +8 -0
- package/dist/lib/ui/Alert.js +23 -0
- package/dist/lib/ui/Alert.js.map +1 -0
- package/dist/lib/ui/AlertDialog.d.ts +20 -0
- package/dist/lib/ui/AlertDialog.js +27 -0
- package/dist/lib/ui/AlertDialog.js.map +1 -0
- package/dist/lib/ui/AspectRatio.d.ts +3 -0
- package/dist/lib/ui/AspectRatio.js +4 -0
- package/dist/lib/ui/AspectRatio.js.map +1 -0
- package/dist/lib/ui/Badge.d.ts +9 -0
- package/dist/lib/ui/Badge.js +22 -0
- package/dist/lib/ui/Badge.js.map +1 -0
- package/dist/lib/ui/Breadcrumb.d.ts +19 -0
- package/dist/lib/ui/Breadcrumb.js +24 -0
- package/dist/lib/ui/Breadcrumb.js.map +1 -0
- package/dist/lib/ui/Button.d.ts +4 -5
- package/dist/lib/ui/Button.js +9 -6
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Callout.d.ts +38 -36
- package/dist/lib/ui/Callout.js +3 -2
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Card.js +1 -1
- package/dist/lib/ui/Card.js.map +1 -1
- package/dist/lib/ui/Carousel.d.ts +18 -0
- package/dist/lib/ui/Carousel.js +99 -0
- package/dist/lib/ui/Carousel.js.map +1 -0
- package/dist/lib/ui/Checkbox.d.ts +4 -0
- package/dist/lib/ui/Checkbox.js +9 -0
- package/dist/lib/ui/Checkbox.js.map +1 -0
- package/dist/lib/ui/CodeBlock.d.ts +16 -0
- package/dist/lib/ui/CodeBlock.js +18 -0
- package/dist/lib/ui/CodeBlock.js.map +1 -0
- package/dist/lib/ui/Collapsible.d.ts +5 -0
- package/dist/lib/ui/Collapsible.js +6 -0
- package/dist/lib/ui/Collapsible.js.map +1 -0
- package/dist/lib/ui/Command.d.ts +94 -0
- package/dist/lib/ui/Command.js +35 -0
- package/dist/lib/ui/Command.js.map +1 -0
- package/dist/lib/ui/Dialog.js +23 -0
- package/dist/lib/ui/Dialog.js.map +1 -0
- package/dist/lib/ui/Drawer.d.ts +8 -10
- package/dist/lib/ui/Drawer.js.map +1 -1
- package/dist/lib/ui/DropdownMenu.js +4 -4
- package/dist/lib/ui/DropdownMenu.js.map +1 -1
- package/dist/lib/ui/Form.d.ts +23 -0
- package/dist/lib/ui/Form.js +63 -0
- package/dist/lib/ui/Form.js.map +1 -0
- package/dist/lib/ui/HoverCard.d.ts +6 -0
- package/dist/lib/ui/HoverCard.js +10 -0
- package/dist/lib/ui/HoverCard.js.map +1 -0
- package/dist/lib/ui/Input.d.ts +1 -2
- package/dist/lib/ui/Input.js +1 -1
- package/dist/lib/ui/Input.js.map +1 -1
- package/dist/lib/ui/Label.d.ts +5 -0
- package/dist/lib/ui/Label.js +10 -0
- package/dist/lib/ui/Label.js.map +1 -0
- package/dist/lib/ui/Pagination.d.ts +28 -0
- package/dist/lib/ui/Pagination.js +24 -0
- package/dist/lib/ui/Pagination.js.map +1 -0
- package/dist/lib/ui/Popover.d.ts +6 -0
- package/dist/lib/ui/Popover.js +10 -0
- package/dist/lib/ui/Popover.js.map +1 -0
- package/dist/lib/ui/Progress.d.ts +4 -0
- package/dist/lib/ui/Progress.js +8 -0
- package/dist/lib/ui/Progress.js.map +1 -0
- package/dist/lib/ui/RadioGroup.d.ts +5 -0
- package/dist/lib/ui/RadioGroup.js +15 -0
- package/dist/lib/ui/RadioGroup.js.map +1 -0
- package/dist/lib/ui/ScrollArea.d.ts +5 -0
- package/dist/lib/ui/ScrollArea.js +12 -0
- package/dist/lib/ui/ScrollArea.js.map +1 -0
- package/dist/lib/ui/Select.js +27 -0
- package/dist/lib/ui/Select.js.map +1 -0
- package/dist/lib/ui/Skeleton.d.ts +2 -0
- package/dist/lib/ui/Skeleton.js +7 -0
- package/dist/lib/ui/Skeleton.js.map +1 -0
- package/dist/lib/ui/Slider.d.ts +4 -0
- package/dist/lib/ui/Slider.js +8 -0
- package/dist/lib/ui/Slider.js.map +1 -0
- package/dist/lib/ui/Stepper.d.ts +3 -0
- package/dist/lib/ui/Stepper.js +7 -0
- package/dist/lib/ui/Stepper.js.map +1 -0
- package/dist/lib/ui/Switch.d.ts +4 -0
- package/dist/lib/ui/Switch.js +8 -0
- package/dist/lib/ui/Switch.js.map +1 -0
- package/dist/lib/ui/SyntaxHighlight.d.ts +10 -0
- package/dist/lib/ui/SyntaxHighlight.js +14 -0
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
- package/dist/lib/ui/Tabs.js +2 -2
- package/dist/lib/ui/Tabs.js.map +1 -1
- package/dist/lib/ui/Textarea.d.ts +4 -0
- package/dist/lib/ui/Textarea.js +9 -0
- package/dist/lib/ui/Textarea.js.map +1 -0
- package/dist/lib/ui/Toggle.d.ts +12 -0
- package/dist/lib/ui/Toggle.js +26 -0
- package/dist/lib/ui/Toggle.js.map +1 -0
- package/dist/lib/ui/ToggleGroup.d.ts +12 -0
- package/dist/lib/ui/ToggleGroup.js +21 -0
- package/dist/lib/ui/ToggleGroup.js.map +1 -0
- package/dist/lib/ui/Tooltip.d.ts +7 -0
- package/dist/lib/ui/Tooltip.js +11 -0
- package/dist/lib/ui/Tooltip.js.map +1 -0
- package/dist/lib/ui/util.d.ts +2 -0
- package/dist/lib/ui/util.js +3 -0
- package/dist/lib/ui/util.js.map +1 -0
- package/dist/lib/util/MdxComponents.d.ts +30 -21
- package/dist/lib/util/MdxComponents.js +17 -15
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/createVariantComponent.d.ts +2 -2
- package/dist/lib/util/detectOS.d.ts +1 -0
- package/dist/lib/util/detectOS.js +11 -0
- package/dist/lib/util/detectOS.js.map +1 -0
- package/dist/lib/util/ensureArray.d.ts +1 -0
- package/dist/lib/util/ensureArray.js +2 -0
- package/dist/lib/util/ensureArray.js.map +1 -0
- package/dist/lib/util/invariant.d.ts +9 -0
- package/dist/lib/util/invariant.js +7 -3
- package/dist/lib/util/invariant.js.map +1 -1
- package/dist/lib/util/joinPath.d.ts +3 -0
- package/dist/lib/util/joinPath.js +3 -0
- package/dist/lib/util/joinPath.js.map +1 -1
- package/dist/lib/util/joinUrl.d.ts +1 -0
- package/dist/lib/util/joinUrl.js +40 -0
- package/dist/lib/util/joinUrl.js.map +1 -0
- package/dist/lib/util/joinUrl.test.d.ts +1 -0
- package/dist/lib/util/joinUrl.test.js +43 -0
- package/dist/lib/util/joinUrl.test.js.map +1 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
- package/dist/lib/util/traverse.d.ts +3 -0
- package/dist/lib/util/traverse.js +23 -0
- package/dist/lib/util/traverse.js.map +1 -0
- package/dist/lib/util/types.d.ts +7 -0
- package/dist/lib/util/types.js +2 -0
- package/dist/lib/util/types.js.map +1 -0
- package/dist/lib/util/url.d.ts +4 -0
- package/dist/lib/util/url.js +13 -0
- package/dist/lib/util/url.js.map +1 -0
- package/dist/lib/util/url.test.d.ts +1 -0
- package/dist/lib/util/url.test.js +26 -0
- package/dist/lib/util/url.test.js.map +1 -0
- package/dist/lib/util/useExposedProps.d.ts +9 -0
- package/dist/lib/util/useExposedProps.js +9 -0
- package/dist/lib/util/useExposedProps.js.map +1 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
- package/dist/lib/util/useLatest.d.ts +1 -0
- package/dist/lib/util/useLatest.js +15 -0
- package/dist/lib/util/useLatest.js.map +1 -0
- package/dist/lib/util/useOnScreen.d.ts +5 -0
- package/dist/lib/util/useOnScreen.js +19 -0
- package/dist/lib/util/useOnScreen.js.map +1 -0
- package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
- package/dist/lib/util/useScrollToAnchor.js +42 -37
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/lib/util/useScrollToTop.js +7 -5
- package/dist/lib/util/useScrollToTop.js.map +1 -1
- package/dist/vite/api/SchemaManager.d.ts +36 -0
- package/dist/vite/api/SchemaManager.js +122 -0
- package/dist/vite/api/SchemaManager.js.map +1 -0
- package/dist/vite/api/SchemaManager.test.d.ts +1 -0
- package/dist/vite/api/SchemaManager.test.js +106 -0
- package/dist/vite/api/SchemaManager.test.js.map +1 -0
- package/dist/vite/api/schema-codegen.d.ts +12 -0
- package/dist/vite/api/schema-codegen.js +85 -0
- package/dist/vite/api/schema-codegen.js.map +1 -0
- package/dist/vite/api/schema-codegen.test.d.ts +1 -0
- package/dist/vite/api/schema-codegen.test.js +313 -0
- package/dist/vite/api/schema-codegen.test.js.map +1 -0
- package/dist/vite/build.js +83 -12
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +2 -15
- package/dist/vite/config.js +121 -144
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +12 -6
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/create-pagefind-index.d.ts +4 -0
- package/dist/vite/create-pagefind-index.js +12 -0
- package/dist/vite/create-pagefind-index.js.map +1 -0
- package/dist/vite/css/collect.d.ts +2 -0
- package/dist/vite/css/collect.js +27 -0
- package/dist/vite/css/collect.js.map +1 -0
- package/dist/vite/css/plugin.d.ts +5 -0
- package/dist/vite/css/plugin.js +79 -0
- package/dist/vite/css/plugin.js.map +1 -0
- package/dist/vite/debug.d.ts +1 -0
- package/dist/vite/debug.js +10 -0
- package/dist/vite/debug.js.map +1 -0
- package/dist/vite/dev-server.d.ts +11 -4
- package/dist/vite/dev-server.js +83 -22
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/error-handler.d.ts +1 -1
- package/dist/vite/error-handler.js +1 -1
- package/dist/vite/error-handler.js.map +1 -1
- package/dist/vite/html.d.ts +6 -2
- package/dist/vite/html.js +11 -10
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/output.d.ts +113 -0
- package/dist/vite/output.js +60 -0
- package/dist/vite/output.js.map +1 -0
- package/dist/vite/plugin-api-keys.d.ts +2 -2
- package/dist/vite/plugin-api-keys.js +10 -5
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.d.ts +2 -2
- package/dist/vite/plugin-api.js +145 -32
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +2 -2
- package/dist/vite/plugin-auth.js +7 -4
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +2 -2
- package/dist/vite/plugin-component.js +22 -13
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.d.ts +4 -4
- package/dist/vite/plugin-config-reload.js +15 -8
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +2 -3
- package/dist/vite/plugin-config.js +26 -3
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-configure-tailwind.d.ts +3 -0
- package/dist/vite/plugin-configure-tailwind.js +37 -0
- package/dist/vite/plugin-configure-tailwind.js.map +1 -0
- package/dist/vite/plugin-custom-pages.d.ts +4 -0
- package/dist/vite/plugin-custom-pages.js +30 -0
- package/dist/vite/plugin-custom-pages.js.map +1 -0
- package/dist/vite/plugin-docs.d.ts +3 -3
- package/dist/vite/plugin-docs.js +57 -29
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-docs.test.js +15 -23
- package/dist/vite/plugin-docs.test.js.map +1 -1
- package/dist/vite/plugin-frontmatter.d.ts +2 -1
- package/dist/vite/plugin-frontmatter.js +28 -24
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +2 -8
- package/dist/vite/plugin-mdx.js +96 -13
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-redirect.d.ts +2 -2
- package/dist/vite/plugin-redirect.js +3 -3
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-search.d.ts +3 -0
- package/dist/vite/plugin-search.js +30 -0
- package/dist/vite/plugin-search.js.map +1 -0
- package/dist/vite/plugin-shiki-register.d.ts +3 -0
- package/dist/vite/plugin-shiki-register.js +38 -0
- package/dist/vite/plugin-shiki-register.js.map +1 -0
- package/dist/vite/plugin-sidebar.d.ts +5 -3
- package/dist/vite/plugin-sidebar.js +26 -10
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/plugin-theme-css.d.ts +6 -0
- package/dist/vite/plugin-theme-css.js +118 -0
- package/dist/vite/plugin-theme-css.js.map +1 -0
- package/dist/vite/plugin.d.ts +2 -3
- package/dist/vite/plugin.js +18 -6
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
- package/dist/vite/prerender/FileWritingResponse.js +51 -0
- package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
- package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
- package/dist/vite/prerender/InMemoryResponse.js +32 -0
- package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
- package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
- package/dist/vite/prerender/PrerenderResponse.js +2 -0
- package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
- package/dist/vite/prerender/prerender.d.ts +15 -0
- package/dist/vite/prerender/prerender.js +109 -0
- package/dist/vite/prerender/prerender.js.map +1 -0
- package/dist/vite/prerender/worker.d.ts +13 -0
- package/dist/vite/prerender/worker.js +59 -0
- package/dist/vite/prerender/worker.js.map +1 -0
- package/dist/vite/remarkStaticGeneration.d.ts +3 -0
- package/dist/vite/remarkStaticGeneration.js +125 -0
- package/dist/vite/remarkStaticGeneration.js.map +1 -0
- package/dist/vite/reporter.d.ts +3 -0
- package/dist/vite/reporter.js +33 -0
- package/dist/vite/reporter.js.map +1 -0
- package/dist/vite/sitemap.d.ts +1 -1
- package/dist/vite/sitemap.js +2 -1
- package/dist/vite/sitemap.js.map +1 -1
- package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
- package/dist/zuplo/enrich-with-zuplo.js +185 -0
- package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
- package/dist/zuplo/policy-types.d.ts +33 -0
- package/dist/zuplo/policy-types.js +8 -0
- package/dist/zuplo/policy-types.js.map +1 -0
- package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
- package/dist/zuplo/with-zuplo-processors.js +26 -0
- package/dist/zuplo/with-zuplo-processors.js.map +1 -0
- package/dist/zuplo/with-zuplo.d.ts +6 -0
- package/dist/zuplo/with-zuplo.js +10 -0
- package/dist/zuplo/with-zuplo.js.map +1 -0
- package/lib/Button-u7M2QYds.js +51 -0
- package/lib/Button-u7M2QYds.js.map +1 -0
- package/lib/Callout-CtCQJ6Cc.js +230 -0
- package/lib/Callout-CtCQJ6Cc.js.map +1 -0
- package/lib/Card-DkH-AU1V.js +61 -0
- package/lib/Card-DkH-AU1V.js.map +1 -0
- package/lib/CategoryHeading-BA7lKNWz.js +10 -0
- package/lib/CategoryHeading-BA7lKNWz.js.map +1 -0
- package/lib/ClientOnly-E7hGysn1.js +11 -0
- package/lib/ClientOnly-E7hGysn1.js.map +1 -0
- package/lib/Dialog-irKZWXGg.js +99 -0
- package/lib/Dialog-irKZWXGg.js.map +1 -0
- package/lib/Drawer-DZ214i5V.js +1133 -0
- package/lib/Drawer-DZ214i5V.js.map +1 -0
- package/lib/Markdown-BNG8bTDA.js +7691 -0
- package/lib/Markdown-BNG8bTDA.js.map +1 -0
- package/lib/MdxPage-C-P_N-H3.js +84 -0
- package/lib/MdxPage-C-P_N-H3.js.map +1 -0
- package/lib/OasProvider-DjFXGgWa.js +33 -0
- package/lib/OasProvider-DjFXGgWa.js.map +1 -0
- package/lib/OperationList-CchpZz4h.js +5141 -0
- package/lib/OperationList-CchpZz4h.js.map +1 -0
- package/lib/Pagination-BbcrfwgM.js +36 -0
- package/lib/Pagination-BbcrfwgM.js.map +1 -0
- package/lib/RouteGuard-CIyGFkFD.js +55 -0
- package/lib/RouteGuard-CIyGFkFD.js.map +1 -0
- package/lib/SchemaList-CrQd3KiR.js +160 -0
- package/lib/SchemaList-CrQd3KiR.js.map +1 -0
- package/lib/SchemaView-CQ_hMc8m.js +375 -0
- package/lib/SchemaView-CQ_hMc8m.js.map +1 -0
- package/lib/SignUp-DSn8NjRS.js +63 -0
- package/lib/SignUp-DSn8NjRS.js.map +1 -0
- package/lib/Slot-Dw-g06lX.js +160 -0
- package/lib/Slot-Dw-g06lX.js.map +1 -0
- package/lib/Spinner-mNLZ6awP.js +7 -0
- package/lib/Spinner-mNLZ6awP.js.map +1 -0
- package/lib/SyntaxHighlight-DTgNHbGp.js +9107 -0
- package/lib/SyntaxHighlight-DTgNHbGp.js.map +1 -0
- package/lib/Toc-Ccycwd-T.js +92 -0
- package/lib/Toc-Ccycwd-T.js.map +1 -0
- package/lib/chunk-BAXFHI7N-C9WnHsLV.js +1839 -0
- package/lib/chunk-BAXFHI7N-C9WnHsLV.js.map +1 -0
- package/lib/circular-DdByufCW.js +14929 -0
- package/lib/circular-DdByufCW.js.map +1 -0
- package/lib/cn-BOFVZgHd.js +2744 -0
- package/lib/cn-BOFVZgHd.js.map +1 -0
- package/lib/createServer-BL0QaN9q.js +12494 -0
- package/lib/createServer-BL0QaN9q.js.map +1 -0
- package/lib/hook-BpiAQVtd.js +1446 -0
- package/lib/hook-BpiAQVtd.js.map +1 -0
- package/lib/index--oeBayMa.js +86 -0
- package/lib/index--oeBayMa.js.map +1 -0
- package/lib/index-BjB1BHZu.js +3268 -0
- package/lib/index-BjB1BHZu.js.map +1 -0
- package/lib/index-BvvmIczU.js +2094 -0
- package/lib/index-BvvmIczU.js.map +1 -0
- package/lib/index-C1S4w-gl.js +36 -0
- package/lib/index-C1S4w-gl.js.map +1 -0
- package/lib/index-CrcNWbel.js +316 -0
- package/lib/index-CrcNWbel.js.map +1 -0
- package/lib/index-rsSMIHTN.js +4977 -0
- package/lib/index-rsSMIHTN.js.map +1 -0
- package/lib/index-zddirpDj.js +4822 -0
- package/lib/index-zddirpDj.js.map +1 -0
- package/lib/index.esm-BFcSKCe-.js +683 -0
- package/lib/index.esm-BFcSKCe-.js.map +1 -0
- package/lib/index.esm-DSfX_eMP.js +1216 -0
- package/lib/index.esm-DSfX_eMP.js.map +1 -0
- package/lib/invariant-DAFpPywt.js +48 -0
- package/lib/invariant-DAFpPywt.js.map +1 -0
- package/lib/jsx-runtime-C5mzlN2N.js +285 -0
- package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
- package/lib/mutation-CJrIFMgY.js +196 -0
- package/lib/mutation-CJrIFMgY.js.map +1 -0
- package/lib/objectEntries-yMIkr2mI.js +5 -0
- package/lib/objectEntries-yMIkr2mI.js.map +1 -0
- package/lib/processors/removeExtensions.js +11 -0
- package/lib/processors/removeExtensions.js.map +1 -0
- package/lib/processors/removeParameters.js +47 -0
- package/lib/processors/removeParameters.js.map +1 -0
- package/lib/processors/removePaths.js +28 -0
- package/lib/processors/removePaths.js.map +1 -0
- package/lib/processors/traverse.js +17 -0
- package/lib/processors/traverse.js.map +1 -0
- package/lib/ui/Accordion.js +47 -0
- package/lib/ui/Accordion.js.map +1 -0
- package/lib/ui/ActionButton.js +25 -0
- package/lib/ui/ActionButton.js.map +1 -0
- package/lib/ui/Alert.js +51 -0
- package/lib/ui/Alert.js.map +1 -0
- package/lib/ui/AlertDialog.js +114 -0
- package/lib/ui/AlertDialog.js.map +1 -0
- package/lib/ui/AspectRatio.js +6 -0
- package/lib/ui/AspectRatio.js.map +1 -0
- package/lib/ui/Badge.js +28 -0
- package/lib/ui/Badge.js.map +1 -0
- package/lib/ui/Breadcrumb.js +94 -0
- package/lib/ui/Breadcrumb.js.map +1 -0
- package/lib/ui/Button.js +52 -0
- package/lib/ui/Button.js.map +1 -0
- package/lib/ui/Callout.js +96 -0
- package/lib/ui/Callout.js.map +1 -0
- package/lib/ui/Card.js +62 -0
- package/lib/ui/Card.js.map +1 -0
- package/lib/ui/Carousel.js +1416 -0
- package/lib/ui/Carousel.js.map +1 -0
- package/lib/ui/Checkbox.js +29 -0
- package/lib/ui/Checkbox.js.map +1 -0
- package/lib/ui/CodeBlock.js +83 -0
- package/lib/ui/CodeBlock.js.map +1 -0
- package/lib/ui/Collapsible.js +8 -0
- package/lib/ui/Collapsible.js.map +1 -0
- package/lib/ui/Command.js +156 -0
- package/lib/ui/Command.js.map +1 -0
- package/lib/ui/Dialog.js +101 -0
- package/lib/ui/Dialog.js.map +1 -0
- package/lib/ui/Drawer.js +17 -0
- package/lib/ui/Drawer.js.map +1 -0
- package/lib/ui/DropdownMenu.js +145 -0
- package/lib/ui/DropdownMenu.js.map +1 -0
- package/lib/ui/Form.js +95 -0
- package/lib/ui/Form.js.map +1 -0
- package/lib/ui/HoverCard.js +24 -0
- package/lib/ui/HoverCard.js.map +1 -0
- package/lib/ui/Input.js +22 -0
- package/lib/ui/Input.js.map +1 -0
- package/lib/ui/Label.js +20 -0
- package/lib/ui/Label.js.map +1 -0
- package/lib/ui/Pagination.js +106 -0
- package/lib/ui/Pagination.js.map +1 -0
- package/lib/ui/Popover.js +24 -0
- package/lib/ui/Popover.js.map +1 -0
- package/lib/ui/Progress.js +27 -0
- package/lib/ui/Progress.js.map +1 -0
- package/lib/ui/RadioGroup.js +32 -0
- package/lib/ui/RadioGroup.js.map +1 -0
- package/lib/ui/ScrollArea.js +39 -0
- package/lib/ui/ScrollArea.js.map +1 -0
- package/lib/ui/Select.js +122 -0
- package/lib/ui/Select.js.map +1 -0
- package/lib/ui/Skeleton.js +18 -0
- package/lib/ui/Skeleton.js.map +1 -0
- package/lib/ui/Slider.js +24 -0
- package/lib/ui/Slider.js.map +1 -0
- package/lib/ui/Stepper.js +6 -0
- package/lib/ui/Stepper.js.map +1 -0
- package/lib/ui/Switch.js +28 -0
- package/lib/ui/Switch.js.map +1 -0
- package/lib/ui/SyntaxHighlight.js +10 -0
- package/lib/ui/SyntaxHighlight.js.map +1 -0
- package/lib/ui/Tabs.js +47 -0
- package/lib/ui/Tabs.js.map +1 -0
- package/lib/ui/Textarea.js +21 -0
- package/lib/ui/Textarea.js.map +1 -0
- package/lib/ui/Toggle.js +38 -0
- package/lib/ui/Toggle.js.map +1 -0
- package/lib/ui/ToggleGroup.js +42 -0
- package/lib/ui/ToggleGroup.js.map +1 -0
- package/lib/ui/Tooltip.js +24 -0
- package/lib/ui/Tooltip.js.map +1 -0
- package/lib/ui/util.js +6 -0
- package/lib/ui/util.js.map +1 -0
- package/lib/useExposedProps-DG8J6ewJ.js +9 -0
- package/lib/useExposedProps-DG8J6ewJ.js.map +1 -0
- package/lib/useLatest-hmRS46UF.js +11 -0
- package/lib/useLatest-hmRS46UF.js.map +1 -0
- package/lib/useMutation-B2LNwShM.js +97 -0
- package/lib/useMutation-B2LNwShM.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +32 -30
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +115 -58
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +628 -628
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +34 -3364
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +19 -0
- package/lib/zudoku.hooks.js.map +1 -0
- package/lib/zudoku.icons.js +10 -0
- package/lib/zudoku.icons.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +117 -0
- package/lib/zudoku.plugin-api-catalog.js.map +1 -0
- package/lib/zudoku.plugin-api-keys.js +5019 -212
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +22 -0
- package/lib/zudoku.plugin-custom-pages.js.map +1 -0
- package/lib/zudoku.plugin-markdown.js +70 -27
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +8 -12
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +2 -2
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +52 -28
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +230 -0
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
- package/lib/zudoku.plugins.js +15 -0
- package/lib/zudoku.plugins.js.map +1 -0
- package/package.json +186 -105
- package/src/app/ZuploBuildConfig.ts +33 -0
- package/src/app/defaultTheme.css +54 -0
- package/src/app/demo-cdn.html +31 -31
- package/src/app/demo.html +1 -1
- package/src/app/demo.tsx +1 -5
- package/src/app/entry.client.tsx +71 -3
- package/src/app/entry.server.tsx +81 -60
- package/src/app/env.ts +35 -0
- package/src/app/font.geist.css +73 -0
- package/src/app/main.css +202 -131
- package/src/app/main.tsx +81 -71
- package/src/app/sentry.ts +24 -0
- package/src/app/standalone.tsx +2 -6
- package/src/lib/MissingIcon.tsx +22 -0
- package/src/lib/authentication/AuthenticationPlugin.tsx +22 -5
- package/src/lib/authentication/authentication.ts +5 -6
- package/src/lib/authentication/components/CallbackHandler.tsx +30 -51
- package/src/lib/authentication/components/SignIn.tsx +35 -2
- package/src/lib/authentication/components/SignOut.tsx +3 -2
- package/src/lib/authentication/components/SignUp.tsx +35 -1
- package/src/lib/authentication/hook.ts +13 -4
- package/src/lib/authentication/providers/auth0.tsx +28 -18
- package/src/lib/authentication/providers/clerk.tsx +136 -53
- package/src/lib/authentication/providers/openid.tsx +87 -84
- package/src/lib/authentication/providers/supabase.tsx +157 -0
- package/src/lib/authentication/state.ts +56 -25
- package/src/lib/authentication/use-broadcast/LICENSE.md +9 -0
- package/src/lib/authentication/use-broadcast/shared.ts +372 -0
- package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
- package/src/lib/components/AnchorLink.tsx +13 -8
- package/src/lib/components/Autocomplete.tsx +113 -0
- package/src/lib/components/Banner.tsx +2 -1
- package/src/lib/components/Bootstrap.tsx +43 -16
- package/src/lib/components/BuildCheck.tsx +75 -0
- package/src/lib/components/ClientOnly.tsx +6 -3
- package/src/lib/components/DeveloperHint.tsx +6 -1
- package/src/lib/components/ErrorPage.tsx +1 -1
- package/src/lib/components/Footer.tsx +136 -0
- package/src/lib/components/Header.tsx +108 -55
- package/src/lib/components/Heading.tsx +14 -14
- package/src/lib/components/InlineCode.tsx +13 -16
- package/src/lib/components/Layout.tsx +36 -59
- package/src/lib/components/Main.tsx +51 -0
- package/src/lib/components/Markdown.tsx +33 -29
- package/src/lib/components/MobileTopNavigation.tsx +43 -28
- package/src/lib/components/NotFoundPage.tsx +2 -2
- package/src/lib/components/Pagination.tsx +44 -0
- package/src/lib/components/PathRenderer.tsx +61 -0
- package/src/lib/components/ReactMarkdown.license.txt +21 -0
- package/src/lib/components/ReactMarkdown.tsx +264 -0
- package/src/lib/components/Search.tsx +19 -8
- package/src/lib/components/Slot.test.tsx +456 -0
- package/src/lib/components/Slot.tsx +64 -0
- package/src/lib/components/StatusPage.tsx +91 -0
- package/src/lib/components/ThemeSwitch.tsx +46 -0
- package/src/lib/components/TopNavigation.tsx +95 -25
- package/src/lib/components/Zudoku.tsx +119 -0
- package/src/lib/components/cache.ts +23 -0
- package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
- package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
- package/src/lib/components/context/SlotProvider.tsx +149 -0
- package/src/lib/components/context/ViewportAnchorContext.tsx +34 -36
- package/src/lib/components/context/ZudokuContext.ts +53 -29
- package/src/lib/components/context/ZudokuProvider.tsx +4 -3
- package/src/lib/components/index.ts +33 -6
- package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
- package/src/lib/components/navigation/Sidebar.tsx +39 -30
- package/src/lib/components/navigation/SidebarBadge.tsx +17 -12
- package/src/lib/components/navigation/SidebarCategory.tsx +67 -54
- package/src/lib/components/navigation/SidebarItem.tsx +38 -51
- package/src/lib/components/navigation/SidebarWrapper.tsx +42 -22
- package/src/lib/components/navigation/Toc.tsx +126 -0
- package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
- package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
- package/src/lib/components/navigation/utils.ts +24 -17
- package/src/lib/core/RouteGuard.tsx +96 -0
- package/src/lib/core/ZudokuContext.ts +198 -0
- package/src/lib/core/plugins.ts +54 -22
- package/src/lib/errors/ErrorAlert.tsx +36 -15
- package/src/lib/errors/RouterError.tsx +1 -1
- package/src/lib/hooks/index.ts +5 -0
- package/src/lib/hooks/useEvent.test.tsx +149 -0
- package/src/lib/hooks/useEvent.ts +41 -0
- package/src/lib/icons.ts +1 -0
- package/src/lib/oas/graphql/circular.ts +58 -0
- package/src/lib/oas/graphql/index.ts +298 -104
- package/src/lib/oas/parser/dereference/index.ts +10 -4
- package/src/lib/oas/parser/index.ts +14 -30
- package/src/lib/oas/parser/upgrade/index.ts +103 -38
- package/src/lib/plugins/api-catalog/Catalog.tsx +73 -0
- package/src/lib/plugins/api-catalog/index.tsx +115 -0
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +63 -47
- package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +293 -113
- package/src/lib/plugins/api-keys/index.tsx +107 -59
- package/src/lib/plugins/custom-pages/CustomPage.tsx +18 -0
- package/src/lib/plugins/custom-pages/index.tsx +24 -0
- package/src/lib/plugins/markdown/MdxPage.tsx +53 -49
- package/src/lib/plugins/markdown/index.tsx +53 -13
- package/src/lib/plugins/markdown/resolver.ts +59 -0
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +86 -0
- package/src/lib/plugins/openapi/ColorizedParam.tsx +49 -23
- package/src/lib/plugins/openapi/Endpoint.tsx +19 -22
- package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
- package/src/lib/plugins/openapi/OperationList.tsx +240 -70
- package/src/lib/plugins/openapi/OperationListItem.tsx +122 -93
- package/src/lib/plugins/openapi/ParamInfos.tsx +90 -0
- package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
- package/src/lib/plugins/openapi/ParameterListItem.tsx +78 -31
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +21 -2
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +15 -33
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +36 -59
- package/src/lib/plugins/openapi/SchemaList.tsx +163 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +181 -114
- package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
- package/src/lib/plugins/openapi/SidecarExamples.tsx +168 -0
- package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
- package/src/lib/plugins/openapi/client/GraphQLClient.tsx +65 -0
- package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
- package/src/lib/plugins/openapi/client/createServer.ts +8 -2
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +45 -0
- package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
- package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
- package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
- package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
- package/src/lib/plugins/openapi/context.tsx +2 -2
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
- package/src/lib/plugins/openapi/graphql/gql.ts +38 -30
- package/src/lib/plugins/openapi/graphql/graphql.ts +386 -682
- package/src/lib/plugins/openapi/index.tsx +111 -138
- package/src/lib/plugins/openapi/interfaces.ts +58 -3
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +52 -0
- package/src/lib/plugins/openapi/playground/Headers.tsx +165 -36
- package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +41 -0
- package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
- package/src/lib/plugins/openapi/playground/PathParams.tsx +39 -64
- package/src/lib/plugins/openapi/playground/Playground.tsx +386 -245
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +7 -4
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +87 -89
- package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
- package/src/lib/plugins/openapi/playground/SubmitButton.tsx +75 -0
- package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
- package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +73 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +230 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +123 -0
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
- package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +222 -0
- package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
- package/src/lib/plugins/openapi/processors/removeParameters.test.ts +182 -0
- package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
- package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
- package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
- package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
- package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +160 -0
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +105 -138
- package/src/lib/plugins/openapi/schema/utils.ts +32 -5
- package/src/lib/plugins/openapi/state.ts +36 -0
- package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +37 -0
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +95 -44
- package/src/lib/plugins/openapi/util/getRoutes.tsx +198 -0
- package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
- package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
- package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
- package/src/lib/plugins/redirect/index.tsx +6 -10
- package/src/lib/plugins/search-inkeep/index.tsx +80 -25
- package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +164 -0
- package/src/lib/plugins/search-pagefind/ResultList.tsx +105 -0
- package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
- package/src/lib/plugins/search-pagefind/index.tsx +21 -0
- package/src/lib/plugins/search-pagefind/types.ts +118 -0
- package/src/lib/shiki.ts +133 -0
- package/src/lib/ui/Accordion.tsx +56 -0
- package/src/lib/ui/ActionButton.tsx +28 -0
- package/src/lib/ui/Alert.tsx +59 -0
- package/src/lib/ui/AlertDialog.tsx +139 -0
- package/src/lib/ui/AspectRatio.tsx +5 -0
- package/src/lib/ui/Badge.tsx +37 -0
- package/src/lib/ui/Breadcrumb.tsx +115 -0
- package/src/lib/ui/Button.tsx +13 -8
- package/src/lib/ui/Callout.tsx +36 -16
- package/src/lib/ui/Card.tsx +1 -1
- package/src/lib/ui/Carousel.tsx +260 -0
- package/src/lib/ui/Checkbox.tsx +29 -0
- package/src/lib/ui/CodeBlock.tsx +102 -0
- package/src/lib/ui/Collapsible.tsx +9 -0
- package/src/lib/ui/Command.tsx +193 -0
- package/src/lib/ui/Dialog.tsx +120 -0
- package/src/lib/ui/Drawer.tsx +38 -36
- package/src/lib/ui/DropdownMenu.tsx +4 -4
- package/src/lib/ui/Form.tsx +177 -0
- package/src/lib/ui/HoverCard.tsx +27 -0
- package/src/lib/ui/Input.tsx +2 -3
- package/src/lib/ui/Label.tsx +24 -0
- package/src/lib/ui/Pagination.tsx +117 -0
- package/src/lib/ui/Popover.tsx +29 -0
- package/src/lib/ui/Progress.tsx +26 -0
- package/src/lib/ui/RadioGroup.tsx +42 -0
- package/src/lib/ui/ScrollArea.tsx +46 -0
- package/src/lib/ui/Select.tsx +157 -0
- package/src/lib/ui/Skeleton.tsx +15 -0
- package/src/lib/ui/Slider.tsx +26 -0
- package/src/lib/ui/Stepper.tsx +8 -0
- package/src/lib/ui/Switch.tsx +27 -0
- package/src/lib/ui/SyntaxHighlight.tsx +27 -0
- package/src/lib/ui/Tabs.tsx +2 -2
- package/src/lib/ui/Textarea.tsx +23 -0
- package/src/lib/ui/Toggle.tsx +43 -0
- package/src/lib/ui/ToggleGroup.tsx +59 -0
- package/src/lib/ui/Tooltip.tsx +28 -0
- package/src/lib/ui/util.tsx +3 -0
- package/src/lib/util/MdxComponents.tsx +37 -24
- package/src/lib/util/createVariantComponent.tsx +2 -2
- package/src/lib/util/detectOS.ts +9 -0
- package/src/lib/util/ensureArray.ts +3 -0
- package/src/lib/util/invariant.ts +15 -3
- package/src/lib/util/joinPath.tsx +3 -0
- package/src/lib/util/joinUrl.test.ts +62 -0
- package/src/lib/util/joinUrl.ts +57 -0
- package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
- package/src/lib/util/traverse.ts +34 -0
- package/src/lib/util/types.ts +7 -0
- package/src/lib/util/url.test.ts +51 -0
- package/src/lib/util/url.ts +18 -0
- package/src/lib/util/useExposedProps.tsx +27 -0
- package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
- package/src/lib/util/useLatest.ts +18 -0
- package/src/lib/util/useOnScreen.ts +34 -0
- package/src/lib/util/useScrollToAnchor.ts +48 -39
- package/src/lib/util/useScrollToTop.ts +9 -4
- package/src/shiki/langs/abap.js +1 -0
- package/src/shiki/langs/actionscript-3.js +1 -0
- package/src/shiki/langs/ada.js +1 -0
- package/src/shiki/langs/angular-expression.js +1 -0
- package/src/shiki/langs/angular-html.js +1 -0
- package/src/shiki/langs/angular-inline-style.js +1 -0
- package/src/shiki/langs/angular-inline-template.js +1 -0
- package/src/shiki/langs/angular-let-declaration.js +1 -0
- package/src/shiki/langs/angular-template-blocks.js +1 -0
- package/src/shiki/langs/angular-template.js +1 -0
- package/src/shiki/langs/angular-ts.js +1 -0
- package/src/shiki/langs/apache.js +1 -0
- package/src/shiki/langs/apex.js +1 -0
- package/src/shiki/langs/apl.js +1 -0
- package/src/shiki/langs/applescript.js +1 -0
- package/src/shiki/langs/ara.js +1 -0
- package/src/shiki/langs/asciidoc.js +1 -0
- package/src/shiki/langs/asm.js +1 -0
- package/src/shiki/langs/astro.js +1 -0
- package/src/shiki/langs/awk.js +1 -0
- package/src/shiki/langs/ballerina.js +1 -0
- package/src/shiki/langs/bat.js +1 -0
- package/src/shiki/langs/beancount.js +1 -0
- package/src/shiki/langs/berry.js +1 -0
- package/src/shiki/langs/bibtex.js +1 -0
- package/src/shiki/langs/bicep.js +1 -0
- package/src/shiki/langs/blade.js +1 -0
- package/src/shiki/langs/bsl.js +1 -0
- package/src/shiki/langs/c.js +1 -0
- package/src/shiki/langs/cadence.js +1 -0
- package/src/shiki/langs/cairo.js +1 -0
- package/src/shiki/langs/clarity.js +1 -0
- package/src/shiki/langs/clojure.js +1 -0
- package/src/shiki/langs/cmake.js +1 -0
- package/src/shiki/langs/cobol.js +1 -0
- package/src/shiki/langs/codeowners.js +1 -0
- package/src/shiki/langs/codeql.js +1 -0
- package/src/shiki/langs/coffee.js +1 -0
- package/src/shiki/langs/common-lisp.js +1 -0
- package/src/shiki/langs/coq.js +1 -0
- package/src/shiki/langs/cpp-macro.js +1 -0
- package/src/shiki/langs/cpp.js +1 -0
- package/src/shiki/langs/crystal.js +1 -0
- package/src/shiki/langs/csharp.js +1 -0
- package/src/shiki/langs/css.js +1 -0
- package/src/shiki/langs/csv.js +1 -0
- package/src/shiki/langs/cue.js +1 -0
- package/src/shiki/langs/cypher.js +1 -0
- package/src/shiki/langs/d.js +1 -0
- package/src/shiki/langs/dart.js +1 -0
- package/src/shiki/langs/dax.js +1 -0
- package/src/shiki/langs/desktop.js +1 -0
- package/src/shiki/langs/diff.js +1 -0
- package/src/shiki/langs/docker.js +1 -0
- package/src/shiki/langs/dotenv.js +1 -0
- package/src/shiki/langs/dream-maker.js +1 -0
- package/src/shiki/langs/edge.js +1 -0
- package/src/shiki/langs/elixir.js +1 -0
- package/src/shiki/langs/elm.js +1 -0
- package/src/shiki/langs/emacs-lisp.js +1 -0
- package/src/shiki/langs/erb.js +1 -0
- package/src/shiki/langs/erlang.js +1 -0
- package/src/shiki/langs/es-tag-css.js +1 -0
- package/src/shiki/langs/es-tag-glsl.js +1 -0
- package/src/shiki/langs/es-tag-html.js +1 -0
- package/src/shiki/langs/es-tag-sql.js +1 -0
- package/src/shiki/langs/es-tag-xml.js +1 -0
- package/src/shiki/langs/fennel.js +1 -0
- package/src/shiki/langs/fish.js +1 -0
- package/src/shiki/langs/fluent.js +1 -0
- package/src/shiki/langs/fortran-fixed-form.js +1 -0
- package/src/shiki/langs/fortran-free-form.js +1 -0
- package/src/shiki/langs/fsharp.js +1 -0
- package/src/shiki/langs/gdresource.js +1 -0
- package/src/shiki/langs/gdscript.js +1 -0
- package/src/shiki/langs/gdshader.js +1 -0
- package/src/shiki/langs/genie.js +1 -0
- package/src/shiki/langs/gherkin.js +1 -0
- package/src/shiki/langs/git-commit.js +1 -0
- package/src/shiki/langs/git-rebase.js +1 -0
- package/src/shiki/langs/gleam.js +1 -0
- package/src/shiki/langs/glimmer-js.js +1 -0
- package/src/shiki/langs/glimmer-ts.js +1 -0
- package/src/shiki/langs/glsl.js +1 -0
- package/src/shiki/langs/gnuplot.js +1 -0
- package/src/shiki/langs/go.js +1 -0
- package/src/shiki/langs/graphql.js +1 -0
- package/src/shiki/langs/groovy.js +1 -0
- package/src/shiki/langs/hack.js +1 -0
- package/src/shiki/langs/haml.js +1 -0
- package/src/shiki/langs/handlebars.js +1 -0
- package/src/shiki/langs/haskell.js +1 -0
- package/src/shiki/langs/haxe.js +1 -0
- package/src/shiki/langs/hcl.js +1 -0
- package/src/shiki/langs/hjson.js +1 -0
- package/src/shiki/langs/hlsl.js +1 -0
- package/src/shiki/langs/html-derivative.js +1 -0
- package/src/shiki/langs/html.js +1 -0
- package/src/shiki/langs/http.js +1 -0
- package/src/shiki/langs/hxml.js +1 -0
- package/src/shiki/langs/hy.js +1 -0
- package/src/shiki/langs/imba.js +1 -0
- package/src/shiki/langs/ini.js +1 -0
- package/src/shiki/langs/java.js +1 -0
- package/src/shiki/langs/javascript.js +1 -0
- package/src/shiki/langs/jinja-html.js +1 -0
- package/src/shiki/langs/jinja.js +1 -0
- package/src/shiki/langs/jison.js +1 -0
- package/src/shiki/langs/json.js +1 -0
- package/src/shiki/langs/json5.js +1 -0
- package/src/shiki/langs/jsonc.js +1 -0
- package/src/shiki/langs/jsonl.js +1 -0
- package/src/shiki/langs/jsonnet.js +1 -0
- package/src/shiki/langs/jssm.js +1 -0
- package/src/shiki/langs/jsx.js +1 -0
- package/src/shiki/langs/julia.js +1 -0
- package/src/shiki/langs/kotlin.js +1 -0
- package/src/shiki/langs/kusto.js +1 -0
- package/src/shiki/langs/latex.js +1 -0
- package/src/shiki/langs/lean.js +1 -0
- package/src/shiki/langs/less.js +1 -0
- package/src/shiki/langs/liquid.js +1 -0
- package/src/shiki/langs/llvm.js +1 -0
- package/src/shiki/langs/log.js +1 -0
- package/src/shiki/langs/logo.js +1 -0
- package/src/shiki/langs/lua.js +1 -0
- package/src/shiki/langs/luau.js +1 -0
- package/src/shiki/langs/make.js +1 -0
- package/src/shiki/langs/markdown-vue.js +1 -0
- package/src/shiki/langs/markdown.js +1 -0
- package/src/shiki/langs/marko.js +1 -0
- package/src/shiki/langs/matlab.js +1 -0
- package/src/shiki/langs/mdc.js +1 -0
- package/src/shiki/langs/mdx.js +1 -0
- package/src/shiki/langs/mermaid.js +1 -0
- package/src/shiki/langs/mipsasm.js +1 -0
- package/src/shiki/langs/mojo.js +1 -0
- package/src/shiki/langs/move.js +1 -0
- package/src/shiki/langs/narrat.js +1 -0
- package/src/shiki/langs/nextflow.js +1 -0
- package/src/shiki/langs/nginx.js +1 -0
- package/src/shiki/langs/nim.js +1 -0
- package/src/shiki/langs/nix.js +1 -0
- package/src/shiki/langs/nushell.js +1 -0
- package/src/shiki/langs/objective-c.js +1 -0
- package/src/shiki/langs/objective-cpp.js +1 -0
- package/src/shiki/langs/ocaml.js +1 -0
- package/src/shiki/langs/pascal.js +1 -0
- package/src/shiki/langs/perl.js +1 -0
- package/src/shiki/langs/php.js +1 -0
- package/src/shiki/langs/plsql.js +1 -0
- package/src/shiki/langs/po.js +1 -0
- package/src/shiki/langs/polar.js +1 -0
- package/src/shiki/langs/postcss.js +1 -0
- package/src/shiki/langs/powerquery.js +1 -0
- package/src/shiki/langs/powershell.js +1 -0
- package/src/shiki/langs/prisma.js +1 -0
- package/src/shiki/langs/prolog.js +1 -0
- package/src/shiki/langs/proto.js +1 -0
- package/src/shiki/langs/pug.js +1 -0
- package/src/shiki/langs/puppet.js +1 -0
- package/src/shiki/langs/purescript.js +1 -0
- package/src/shiki/langs/python.js +1 -0
- package/src/shiki/langs/qml.js +1 -0
- package/src/shiki/langs/qmldir.js +1 -0
- package/src/shiki/langs/qss.js +1 -0
- package/src/shiki/langs/r.js +1 -0
- package/src/shiki/langs/racket.js +1 -0
- package/src/shiki/langs/raku.js +1 -0
- package/src/shiki/langs/razor.js +1 -0
- package/src/shiki/langs/reg.js +1 -0
- package/src/shiki/langs/regexp.js +1 -0
- package/src/shiki/langs/rel.js +1 -0
- package/src/shiki/langs/riscv.js +1 -0
- package/src/shiki/langs/rst.js +1 -0
- package/src/shiki/langs/ruby.js +1 -0
- package/src/shiki/langs/rust.js +1 -0
- package/src/shiki/langs/sas.js +1 -0
- package/src/shiki/langs/sass.js +1 -0
- package/src/shiki/langs/scala.js +1 -0
- package/src/shiki/langs/scheme.js +1 -0
- package/src/shiki/langs/scss.js +1 -0
- package/src/shiki/langs/sdbl.js +1 -0
- package/src/shiki/langs/shaderlab.js +1 -0
- package/src/shiki/langs/shellscript.js +1 -0
- package/src/shiki/langs/shellsession.js +1 -0
- package/src/shiki/langs/smalltalk.js +1 -0
- package/src/shiki/langs/solidity.js +1 -0
- package/src/shiki/langs/soy.js +1 -0
- package/src/shiki/langs/sparql.js +1 -0
- package/src/shiki/langs/splunk.js +1 -0
- package/src/shiki/langs/sql.js +1 -0
- package/src/shiki/langs/ssh-config.js +1 -0
- package/src/shiki/langs/stata.js +1 -0
- package/src/shiki/langs/stylus.js +1 -0
- package/src/shiki/langs/svelte.js +1 -0
- package/src/shiki/langs/swift.js +1 -0
- package/src/shiki/langs/system-verilog.js +1 -0
- package/src/shiki/langs/systemd.js +1 -0
- package/src/shiki/langs/talonscript.js +1 -0
- package/src/shiki/langs/tasl.js +1 -0
- package/src/shiki/langs/tcl.js +1 -0
- package/src/shiki/langs/templ.js +1 -0
- package/src/shiki/langs/terraform.js +1 -0
- package/src/shiki/langs/tex.js +1 -0
- package/src/shiki/langs/toml.js +1 -0
- package/src/shiki/langs/ts-tags.js +1 -0
- package/src/shiki/langs/tsv.js +1 -0
- package/src/shiki/langs/tsx.js +1 -0
- package/src/shiki/langs/turtle.js +1 -0
- package/src/shiki/langs/twig.js +1 -0
- package/src/shiki/langs/typescript.js +1 -0
- package/src/shiki/langs/typespec.js +1 -0
- package/src/shiki/langs/typst.js +1 -0
- package/src/shiki/langs/v.js +1 -0
- package/src/shiki/langs/vala.js +1 -0
- package/src/shiki/langs/vb.js +1 -0
- package/src/shiki/langs/verilog.js +1 -0
- package/src/shiki/langs/vhdl.js +1 -0
- package/src/shiki/langs/viml.js +1 -0
- package/src/shiki/langs/vue-directives.js +1 -0
- package/src/shiki/langs/vue-html.js +1 -0
- package/src/shiki/langs/vue-interpolations.js +1 -0
- package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
- package/src/shiki/langs/vue.js +1 -0
- package/src/shiki/langs/vyper.js +1 -0
- package/src/shiki/langs/wasm.js +1 -0
- package/src/shiki/langs/wenyan.js +1 -0
- package/src/shiki/langs/wgsl.js +1 -0
- package/src/shiki/langs/wikitext.js +1 -0
- package/src/shiki/langs/wit.js +1 -0
- package/src/shiki/langs/wolfram.js +1 -0
- package/src/shiki/langs/xml.js +1 -0
- package/src/shiki/langs/xsl.js +1 -0
- package/src/shiki/langs/yaml.js +1 -0
- package/src/shiki/langs/zenscript.js +1 -0
- package/src/shiki/langs/zig.js +1 -0
- package/src/shiki/themes/andromeeda.js +1 -0
- package/src/shiki/themes/aurora-x.js +1 -0
- package/src/shiki/themes/ayu-dark.js +1 -0
- package/src/shiki/themes/catppuccin-frappe.js +1 -0
- package/src/shiki/themes/catppuccin-latte.js +1 -0
- package/src/shiki/themes/catppuccin-macchiato.js +1 -0
- package/src/shiki/themes/catppuccin-mocha.js +1 -0
- package/src/shiki/themes/dark-plus.js +1 -0
- package/src/shiki/themes/dracula-soft.js +1 -0
- package/src/shiki/themes/dracula.js +1 -0
- package/src/shiki/themes/everforest-dark.js +1 -0
- package/src/shiki/themes/everforest-light.js +1 -0
- package/src/shiki/themes/github-dark-default.js +1 -0
- package/src/shiki/themes/github-dark-dimmed.js +1 -0
- package/src/shiki/themes/github-dark-high-contrast.js +1 -0
- package/src/shiki/themes/github-dark.js +1 -0
- package/src/shiki/themes/github-light-default.js +1 -0
- package/src/shiki/themes/github-light-high-contrast.js +1 -0
- package/src/shiki/themes/github-light.js +1 -0
- package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
- package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
- package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
- package/src/shiki/themes/gruvbox-light-hard.js +1 -0
- package/src/shiki/themes/gruvbox-light-medium.js +1 -0
- package/src/shiki/themes/gruvbox-light-soft.js +1 -0
- package/src/shiki/themes/houston.js +1 -0
- package/src/shiki/themes/kanagawa-dragon.js +1 -0
- package/src/shiki/themes/kanagawa-lotus.js +1 -0
- package/src/shiki/themes/kanagawa-wave.js +1 -0
- package/src/shiki/themes/laserwave.js +1 -0
- package/src/shiki/themes/light-plus.js +1 -0
- package/src/shiki/themes/material-theme-darker.js +1 -0
- package/src/shiki/themes/material-theme-lighter.js +1 -0
- package/src/shiki/themes/material-theme-ocean.js +1 -0
- package/src/shiki/themes/material-theme-palenight.js +1 -0
- package/src/shiki/themes/material-theme.js +1 -0
- package/src/shiki/themes/min-dark.js +1 -0
- package/src/shiki/themes/min-light.js +1 -0
- package/src/shiki/themes/monokai.js +1 -0
- package/src/shiki/themes/night-owl.js +1 -0
- package/src/shiki/themes/nord.js +1 -0
- package/src/shiki/themes/one-dark-pro.js +1 -0
- package/src/shiki/themes/one-light.js +1 -0
- package/src/shiki/themes/plastic.js +1 -0
- package/src/shiki/themes/poimandres.js +1 -0
- package/src/shiki/themes/red.js +1 -0
- package/src/shiki/themes/rose-pine-dawn.js +1 -0
- package/src/shiki/themes/rose-pine-moon.js +1 -0
- package/src/shiki/themes/rose-pine.js +1 -0
- package/src/shiki/themes/slack-dark.js +1 -0
- package/src/shiki/themes/slack-ochin.js +1 -0
- package/src/shiki/themes/snazzy-light.js +1 -0
- package/src/shiki/themes/solarized-dark.js +1 -0
- package/src/shiki/themes/solarized-light.js +1 -0
- package/src/shiki/themes/synthwave-84.js +1 -0
- package/src/shiki/themes/tokyo-night.js +1 -0
- package/src/shiki/themes/vesper.js +1 -0
- package/src/shiki/themes/vitesse-black.js +1 -0
- package/src/shiki/themes/vitesse-dark.js +1 -0
- package/src/shiki/themes/vitesse-light.js +1 -0
- package/LICENSE.md +0 -9
- package/client.d.ts +0 -1
- package/dist/app/tailwind.d.ts +0 -3
- package/dist/app/tailwind.js +0 -65
- package/dist/app/tailwind.js.map +0 -1
- package/dist/internal.d.ts +0 -1
- package/dist/internal.js +0 -2
- package/dist/internal.js.map +0 -1
- package/dist/lib/components/DevPortal.d.ts +0 -7
- package/dist/lib/components/DevPortal.js +0 -54
- package/dist/lib/components/DevPortal.js.map +0 -1
- package/dist/lib/components/Dialog.js +0 -23
- package/dist/lib/components/Dialog.js.map +0 -1
- package/dist/lib/components/Select.js +0 -27
- package/dist/lib/components/Select.js.map +0 -1
- package/dist/lib/components/SlotletProvider.d.ts +0 -9
- package/dist/lib/components/SlotletProvider.js +0 -16
- package/dist/lib/components/SlotletProvider.js.map +0 -1
- package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
- package/dist/lib/components/SyntaxHighlight.js +0 -50
- package/dist/lib/components/SyntaxHighlight.js.map +0 -1
- package/dist/lib/components/context/PluginSystem.js +0 -2
- package/dist/lib/components/context/PluginSystem.js.map +0 -1
- package/dist/lib/components/context/ThemeContext.d.ts +0 -2
- package/dist/lib/components/context/ThemeContext.js +0 -7
- package/dist/lib/components/context/ThemeContext.js.map +0 -1
- package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
- package/dist/lib/components/context/ThemeProvider.js +0 -23
- package/dist/lib/components/context/ThemeProvider.js.map +0 -1
- package/dist/lib/core/DevPortalContext.d.ts +0 -78
- package/dist/lib/core/DevPortalContext.js +0 -49
- package/dist/lib/core/DevPortalContext.js.map +0 -1
- package/dist/lib/plugins/custom-page/index.d.ts +0 -8
- package/dist/lib/plugins/custom-page/index.js +0 -12
- package/dist/lib/plugins/custom-page/index.js.map +0 -1
- package/dist/lib/plugins/markdown/Toc.js +0 -48
- package/dist/lib/plugins/markdown/Toc.js.map +0 -1
- package/dist/lib/plugins/markdown/generateRoutes.d.ts +0 -3
- package/dist/lib/plugins/markdown/generateRoutes.js +0 -21
- package/dist/lib/plugins/markdown/generateRoutes.js.map +0 -1
- package/dist/lib/plugins/openapi/Route.d.ts +0 -6
- package/dist/lib/plugins/openapi/Route.js +0 -8
- package/dist/lib/plugins/openapi/Route.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
- package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
- package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
- package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
- package/dist/lib/plugins/openapi/client/worker.js +0 -20
- package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/Editor.d.ts +0 -1
- package/dist/lib/plugins/openapi/playground/Editor.js +0 -5
- package/dist/lib/plugins/openapi/playground/Editor.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
- package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
- package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/SchemaComponents.d.ts +0 -13
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
- package/dist/lib/plugins/openapi/util/urql.d.ts +0 -7
- package/dist/lib/plugins/openapi/util/urql.js +0 -8
- package/dist/lib/plugins/openapi/util/urql.js.map +0 -1
- package/dist/lib/plugins/openapi-worker.d.ts +0 -1
- package/dist/lib/plugins/openapi-worker.js +0 -2
- package/dist/lib/plugins/openapi-worker.js.map +0 -1
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
- package/dist/lib/themeToggle.d.ts +0 -1
- package/dist/lib/themeToggle.js +0 -7
- package/dist/lib/themeToggle.js.map +0 -1
- package/dist/lib/ui/Note.d.ts +0 -8
- package/dist/lib/ui/Note.js +0 -23
- package/dist/lib/ui/Note.js.map +0 -1
- package/dist/lib/util/createWaitForNotify.d.ts +0 -1
- package/dist/lib/util/createWaitForNotify.js +0 -15
- package/dist/lib/util/createWaitForNotify.js.map +0 -1
- package/dist/vite/plugin-custom-css.d.ts +0 -6
- package/dist/vite/plugin-custom-css.js +0 -55
- package/dist/vite/plugin-custom-css.js.map +0 -1
- package/dist/vite/plugin-html-transform.d.ts +0 -2
- package/dist/vite/plugin-html-transform.js +0 -15
- package/dist/vite/plugin-html-transform.js.map +0 -1
- package/dist/vite/prerender.d.ts +0 -17
- package/dist/vite/prerender.js +0 -87
- package/dist/vite/prerender.js.map +0 -1
- package/lib/AuthenticationPlugin-Bx9FK124.js +0 -55
- package/lib/AuthenticationPlugin-Bx9FK124.js.map +0 -1
- package/lib/CategoryHeading-ovR-zHRq.js +0 -10
- package/lib/CategoryHeading-ovR-zHRq.js.map +0 -1
- package/lib/DeveloperHint-YeWHKvyr.js +0 -16
- package/lib/DeveloperHint-YeWHKvyr.js.map +0 -1
- package/lib/ErrorPage-CsZAN_za.js +0 -16
- package/lib/ErrorPage-CsZAN_za.js.map +0 -1
- package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
- package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
- package/lib/Input-CtVUl3eT.js +0 -2198
- package/lib/Input-CtVUl3eT.js.map +0 -1
- package/lib/Markdown-DapSf3wG.js +0 -20281
- package/lib/Markdown-DapSf3wG.js.map +0 -1
- package/lib/MdxPage-BqBWsXZ1.js +0 -172
- package/lib/MdxPage-BqBWsXZ1.js.map +0 -1
- package/lib/OperationList-CYrmxPa8.js +0 -602
- package/lib/OperationList-CYrmxPa8.js.map +0 -1
- package/lib/Route-Q5mqNQrv.js +0 -14
- package/lib/Route-Q5mqNQrv.js.map +0 -1
- package/lib/SidebarBadge-Dx7jtnoA.js +0 -498
- package/lib/SidebarBadge-Dx7jtnoA.js.map +0 -1
- package/lib/SlotletProvider-D3UD5Go3.js +0 -238
- package/lib/SlotletProvider-D3UD5Go3.js.map +0 -1
- package/lib/Spinner-3cQDBVGr.js +0 -7
- package/lib/Spinner-3cQDBVGr.js.map +0 -1
- package/lib/ZudokuContext-cr-pTRY1.js +0 -1084
- package/lib/ZudokuContext-cr-pTRY1.js.map +0 -1
- package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
- package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
- package/lib/assets/index-B9EWVYfo.js +0 -4790
- package/lib/assets/index-B9EWVYfo.js.map +0 -1
- package/lib/assets/worker-BP8Uzflt.js +0 -17916
- package/lib/assets/worker-BP8Uzflt.js.map +0 -1
- package/lib/index-BG0g4WW0.js +0 -1771
- package/lib/index-BG0g4WW0.js.map +0 -1
- package/lib/index-BlJ2rj99.js +0 -5815
- package/lib/index-BlJ2rj99.js.map +0 -1
- package/lib/index-BngPzhKn.js +0 -124
- package/lib/index-BngPzhKn.js.map +0 -1
- package/lib/index-CLd8ycZz.js +0 -4790
- package/lib/index-CLd8ycZz.js.map +0 -1
- package/lib/index-Dolisrci.js +0 -2814
- package/lib/index-Dolisrci.js.map +0 -1
- package/lib/index-LNp6rxyU.js +0 -2094
- package/lib/index-LNp6rxyU.js.map +0 -1
- package/lib/joinPath-B7kNnUX4.js +0 -8
- package/lib/joinPath-B7kNnUX4.js.map +0 -1
- package/lib/jsx-runtime-B6kdoens.js +0 -635
- package/lib/jsx-runtime-B6kdoens.js.map +0 -1
- package/lib/prism-bash.min-DadFsM4Z.js +0 -7
- package/lib/prism-bash.min-DadFsM4Z.js.map +0 -1
- package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
- package/lib/prism-csharp.min-Yizuc34Y.js.map +0 -1
- package/lib/prism-java.min-d5iT_mOd.js +0 -7
- package/lib/prism-java.min-d5iT_mOd.js.map +0 -1
- package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
- package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
- package/lib/prism-json.min-B1GJqK1k.js +0 -2
- package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
- package/lib/prism-markdown.min-F3U-vPBi.js +0 -61
- package/lib/prism-markdown.min-F3U-vPBi.js.map +0 -1
- package/lib/prism-markup-BNGj0Tvm.js +0 -174
- package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
- package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
- package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
- package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
- package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
- package/lib/prism-php.min-o7FpoMP_.js +0 -11
- package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
- package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
- package/lib/prism-ruby.min-C7LwcKyz.js.map +0 -1
- package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
- package/lib/prism-typescript.min-oSVeWCAd.js.map +0 -1
- package/lib/router-D2p7Olpn.js +0 -2971
- package/lib/router-D2p7Olpn.js.map +0 -1
- package/lib/state-hNe1dw4B.js +0 -548
- package/lib/state-hNe1dw4B.js.map +0 -1
- package/lib/urql-YhcsXYy8.js +0 -1591
- package/lib/urql-YhcsXYy8.js.map +0 -1
- package/lib/utils-ByIc_KIM.js +0 -749
- package/lib/utils-ByIc_KIM.js.map +0 -1
- package/lib/zudoku.openapi-worker.js +0 -16059
- package/lib/zudoku.openapi-worker.js.map +0 -1
- package/lib/zudoku.plugin-custom-page.js +0 -13
- package/lib/zudoku.plugin-custom-page.js.map +0 -1
- package/src/app/tailwind.ts +0 -68
- package/src/lib/components/DevPortal.tsx +0 -111
- package/src/lib/components/Dialog.tsx +0 -119
- package/src/lib/components/Select.tsx +0 -157
- package/src/lib/components/SlotletProvider.tsx +0 -30
- package/src/lib/components/SyntaxHighlight.tsx +0 -122
- package/src/lib/components/context/PluginSystem.ts +0 -0
- package/src/lib/components/context/ThemeContext.tsx +0 -8
- package/src/lib/components/context/ThemeProvider.tsx +0 -27
- package/src/lib/core/DevPortalContext.ts +0 -135
- package/src/lib/plugins/custom-page/index.tsx +0 -22
- package/src/lib/plugins/markdown/Toc.tsx +0 -135
- package/src/lib/plugins/markdown/generateRoutes.tsx +0 -38
- package/src/lib/plugins/openapi/Route.tsx +0 -21
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -56
- package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -80
- package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
- package/src/lib/plugins/openapi/client/worker.ts +0 -30
- package/src/lib/plugins/openapi/playground/Editor.tsx +0 -4
- package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
- package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
- package/src/lib/plugins/openapi/util/urql.ts +0 -8
- package/src/lib/plugins/openapi-worker.ts +0 -1
- package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
- package/src/lib/themeToggle.ts +0 -7
- package/src/lib/ui/Note.tsx +0 -58
- package/src/lib/util/createWaitForNotify.ts +0 -18
- /package/dist/lib/components/{context/PluginSystem.d.ts → Slot.test.d.ts} +0 -0
- /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
- /package/dist/lib/{plugins/openapi/client/worker.d.ts → hooks/useEvent.test.d.ts} +0 -0
- /package/dist/lib/{components → ui}/Dialog.d.ts +0 -0
- /package/dist/lib/{components → ui}/Select.d.ts +0 -0
|
@@ -1,1084 +0,0 @@
|
|
|
1
|
-
var qt = (e) => {
|
|
2
|
-
throw TypeError(e);
|
|
3
|
-
};
|
|
4
|
-
var ct = (e, t, s) => t.has(e) || qt("Cannot " + s);
|
|
5
|
-
var i = (e, t, s) => (ct(e, t, "read from private field"), s ? s.call(e) : t.get(e)), f = (e, t, s) => t.has(e) ? qt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, s), h = (e, t, s, r) => (ct(e, t, "write to private field"), r ? r.call(e, s) : t.set(e, s), s), v = (e, t, s) => (ct(e, t, "access private method"), s);
|
|
6
|
-
import * as T from "react";
|
|
7
|
-
import { createContext as re, useContext as ie } from "react";
|
|
8
|
-
import { j as ne } from "./jsx-runtime-B6kdoens.js";
|
|
9
|
-
import { b as Bt } from "./index-BG0g4WW0.js";
|
|
10
|
-
var Dt = class {
|
|
11
|
-
constructor() {
|
|
12
|
-
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
13
|
-
}
|
|
14
|
-
subscribe(e) {
|
|
15
|
-
return this.listeners.add(e), this.onSubscribe(), () => {
|
|
16
|
-
this.listeners.delete(e), this.onUnsubscribe();
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
hasListeners() {
|
|
20
|
-
return this.listeners.size > 0;
|
|
21
|
-
}
|
|
22
|
-
onSubscribe() {
|
|
23
|
-
}
|
|
24
|
-
onUnsubscribe() {
|
|
25
|
-
}
|
|
26
|
-
}, st = typeof window > "u" || "Deno" in globalThis;
|
|
27
|
-
function dt() {
|
|
28
|
-
}
|
|
29
|
-
function Le(e, t) {
|
|
30
|
-
return typeof e == "function" ? e(t) : e;
|
|
31
|
-
}
|
|
32
|
-
function ft(e) {
|
|
33
|
-
return typeof e == "number" && e >= 0 && e !== 1 / 0;
|
|
34
|
-
}
|
|
35
|
-
function Gt(e, t) {
|
|
36
|
-
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
37
|
-
}
|
|
38
|
-
function ut(e, t) {
|
|
39
|
-
return typeof e == "function" ? e(t) : e;
|
|
40
|
-
}
|
|
41
|
-
function q(e, t) {
|
|
42
|
-
return typeof e == "function" ? e(t) : e;
|
|
43
|
-
}
|
|
44
|
-
function Ne(e, t) {
|
|
45
|
-
const {
|
|
46
|
-
type: s = "all",
|
|
47
|
-
exact: r,
|
|
48
|
-
fetchStatus: n,
|
|
49
|
-
predicate: c,
|
|
50
|
-
queryKey: o,
|
|
51
|
-
stale: l
|
|
52
|
-
} = e;
|
|
53
|
-
if (o) {
|
|
54
|
-
if (r) {
|
|
55
|
-
if (t.queryHash !== ae(o, t.options))
|
|
56
|
-
return !1;
|
|
57
|
-
} else if (!Pt(t.queryKey, o))
|
|
58
|
-
return !1;
|
|
59
|
-
}
|
|
60
|
-
if (s !== "all") {
|
|
61
|
-
const b = t.isActive();
|
|
62
|
-
if (s === "active" && !b || s === "inactive" && b)
|
|
63
|
-
return !1;
|
|
64
|
-
}
|
|
65
|
-
return !(typeof l == "boolean" && t.isStale() !== l || n && n !== t.state.fetchStatus || c && !c(t));
|
|
66
|
-
}
|
|
67
|
-
function Ke(e, t) {
|
|
68
|
-
const { exact: s, status: r, predicate: n, mutationKey: c } = e;
|
|
69
|
-
if (c) {
|
|
70
|
-
if (!t.options.mutationKey)
|
|
71
|
-
return !1;
|
|
72
|
-
if (s) {
|
|
73
|
-
if (yt(t.options.mutationKey) !== yt(c))
|
|
74
|
-
return !1;
|
|
75
|
-
} else if (!Pt(t.options.mutationKey, c))
|
|
76
|
-
return !1;
|
|
77
|
-
}
|
|
78
|
-
return !(r && t.state.status !== r || n && !n(t));
|
|
79
|
-
}
|
|
80
|
-
function ae(e, t) {
|
|
81
|
-
return ((t == null ? void 0 : t.queryKeyHashFn) || yt)(e);
|
|
82
|
-
}
|
|
83
|
-
function yt(e) {
|
|
84
|
-
return JSON.stringify(
|
|
85
|
-
e,
|
|
86
|
-
(t, s) => vt(s) ? Object.keys(s).sort().reduce((r, n) => (r[n] = s[n], r), {}) : s
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
function Pt(e, t) {
|
|
90
|
-
return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? !Object.keys(t).some((s) => !Pt(e[s], t[s])) : !1;
|
|
91
|
-
}
|
|
92
|
-
function Ht(e, t) {
|
|
93
|
-
if (e === t)
|
|
94
|
-
return e;
|
|
95
|
-
const s = It(e) && It(t);
|
|
96
|
-
if (s || vt(e) && vt(t)) {
|
|
97
|
-
const r = s ? e : Object.keys(e), n = r.length, c = s ? t : Object.keys(t), o = c.length, l = s ? [] : {};
|
|
98
|
-
let b = 0;
|
|
99
|
-
for (let R = 0; R < o; R++) {
|
|
100
|
-
const m = s ? R : c[R];
|
|
101
|
-
(!s && r.includes(m) || s) && e[m] === void 0 && t[m] === void 0 ? (l[m] = void 0, b++) : (l[m] = Ht(e[m], t[m]), l[m] === e[m] && e[m] !== void 0 && b++);
|
|
102
|
-
}
|
|
103
|
-
return n === o && b === n ? e : l;
|
|
104
|
-
}
|
|
105
|
-
return t;
|
|
106
|
-
}
|
|
107
|
-
function pt(e, t) {
|
|
108
|
-
if (!t || Object.keys(e).length !== Object.keys(t).length)
|
|
109
|
-
return !1;
|
|
110
|
-
for (const s in e)
|
|
111
|
-
if (e[s] !== t[s])
|
|
112
|
-
return !1;
|
|
113
|
-
return !0;
|
|
114
|
-
}
|
|
115
|
-
function It(e) {
|
|
116
|
-
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
117
|
-
}
|
|
118
|
-
function vt(e) {
|
|
119
|
-
if (!xt(e))
|
|
120
|
-
return !1;
|
|
121
|
-
const t = e.constructor;
|
|
122
|
-
if (t === void 0)
|
|
123
|
-
return !0;
|
|
124
|
-
const s = t.prototype;
|
|
125
|
-
return !(!xt(s) || !s.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
|
|
126
|
-
}
|
|
127
|
-
function xt(e) {
|
|
128
|
-
return Object.prototype.toString.call(e) === "[object Object]";
|
|
129
|
-
}
|
|
130
|
-
function oe(e) {
|
|
131
|
-
return new Promise((t) => {
|
|
132
|
-
setTimeout(t, e);
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
function mt(e, t, s) {
|
|
136
|
-
return typeof s.structuralSharing == "function" ? s.structuralSharing(e, t) : s.structuralSharing !== !1 ? Ht(e, t) : t;
|
|
137
|
-
}
|
|
138
|
-
function _e(e, t, s = 0) {
|
|
139
|
-
const r = [...e, t];
|
|
140
|
-
return s && r.length > s ? r.slice(1) : r;
|
|
141
|
-
}
|
|
142
|
-
function Be(e, t, s = 0) {
|
|
143
|
-
const r = [t, ...e];
|
|
144
|
-
return s && r.length > s ? r.slice(0, -1) : r;
|
|
145
|
-
}
|
|
146
|
-
var bt = Symbol(), ue = (e, t) => (process.env.NODE_ENV !== "production" && e.queryFn === bt && console.error(
|
|
147
|
-
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`
|
|
148
|
-
), !e.queryFn && (t != null && t.initialPromise) ? () => t.initialPromise : !e.queryFn || e.queryFn === bt ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn), N, k, z, Mt, he = (Mt = class extends Dt {
|
|
149
|
-
constructor() {
|
|
150
|
-
super();
|
|
151
|
-
f(this, N);
|
|
152
|
-
f(this, k);
|
|
153
|
-
f(this, z);
|
|
154
|
-
h(this, z, (t) => {
|
|
155
|
-
if (!st && window.addEventListener) {
|
|
156
|
-
const s = () => t();
|
|
157
|
-
return window.addEventListener("visibilitychange", s, !1), () => {
|
|
158
|
-
window.removeEventListener("visibilitychange", s);
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
onSubscribe() {
|
|
164
|
-
i(this, k) || this.setEventListener(i(this, z));
|
|
165
|
-
}
|
|
166
|
-
onUnsubscribe() {
|
|
167
|
-
var t;
|
|
168
|
-
this.hasListeners() || ((t = i(this, k)) == null || t.call(this), h(this, k, void 0));
|
|
169
|
-
}
|
|
170
|
-
setEventListener(t) {
|
|
171
|
-
var s;
|
|
172
|
-
h(this, z, t), (s = i(this, k)) == null || s.call(this), h(this, k, t((r) => {
|
|
173
|
-
typeof r == "boolean" ? this.setFocused(r) : this.onFocus();
|
|
174
|
-
}));
|
|
175
|
-
}
|
|
176
|
-
setFocused(t) {
|
|
177
|
-
i(this, N) !== t && (h(this, N, t), this.onFocus());
|
|
178
|
-
}
|
|
179
|
-
onFocus() {
|
|
180
|
-
const t = this.isFocused();
|
|
181
|
-
this.listeners.forEach((s) => {
|
|
182
|
-
s(t);
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
isFocused() {
|
|
186
|
-
var t;
|
|
187
|
-
return typeof i(this, N) == "boolean" ? i(this, N) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
|
|
188
|
-
}
|
|
189
|
-
}, N = new WeakMap(), k = new WeakMap(), z = new WeakMap(), Mt), Vt = new he(), $, M, W, Lt, ce = (Lt = class extends Dt {
|
|
190
|
-
constructor() {
|
|
191
|
-
super();
|
|
192
|
-
f(this, $, !0);
|
|
193
|
-
f(this, M);
|
|
194
|
-
f(this, W);
|
|
195
|
-
h(this, W, (t) => {
|
|
196
|
-
if (!st && window.addEventListener) {
|
|
197
|
-
const s = () => t(!0), r = () => t(!1);
|
|
198
|
-
return window.addEventListener("online", s, !1), window.addEventListener("offline", r, !1), () => {
|
|
199
|
-
window.removeEventListener("online", s), window.removeEventListener("offline", r);
|
|
200
|
-
};
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
onSubscribe() {
|
|
205
|
-
i(this, M) || this.setEventListener(i(this, W));
|
|
206
|
-
}
|
|
207
|
-
onUnsubscribe() {
|
|
208
|
-
var t;
|
|
209
|
-
this.hasListeners() || ((t = i(this, M)) == null || t.call(this), h(this, M, void 0));
|
|
210
|
-
}
|
|
211
|
-
setEventListener(t) {
|
|
212
|
-
var s;
|
|
213
|
-
h(this, W, t), (s = i(this, M)) == null || s.call(this), h(this, M, t(this.setOnline.bind(this)));
|
|
214
|
-
}
|
|
215
|
-
setOnline(t) {
|
|
216
|
-
i(this, $) !== t && (h(this, $, t), this.listeners.forEach((r) => {
|
|
217
|
-
r(t);
|
|
218
|
-
}));
|
|
219
|
-
}
|
|
220
|
-
isOnline() {
|
|
221
|
-
return i(this, $);
|
|
222
|
-
}
|
|
223
|
-
}, $ = new WeakMap(), M = new WeakMap(), W = new WeakMap(), Lt), zt = new ce();
|
|
224
|
-
function le(e) {
|
|
225
|
-
return Math.min(1e3 * 2 ** e, 3e4);
|
|
226
|
-
}
|
|
227
|
-
function $t(e) {
|
|
228
|
-
return (e ?? "online") === "online" ? zt.isOnline() : !0;
|
|
229
|
-
}
|
|
230
|
-
var Wt = class {
|
|
231
|
-
constructor(e) {
|
|
232
|
-
this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
|
|
233
|
-
}
|
|
234
|
-
};
|
|
235
|
-
function lt(e) {
|
|
236
|
-
return e instanceof Wt;
|
|
237
|
-
}
|
|
238
|
-
function de(e) {
|
|
239
|
-
let t = !1, s = 0, r = !1, n, c, o;
|
|
240
|
-
const l = new Promise((g, S) => {
|
|
241
|
-
c = g, o = S;
|
|
242
|
-
}), b = (g) => {
|
|
243
|
-
var S;
|
|
244
|
-
r || (O(new Wt(g)), (S = e.abort) == null || S.call(e));
|
|
245
|
-
}, R = () => {
|
|
246
|
-
t = !0;
|
|
247
|
-
}, m = () => {
|
|
248
|
-
t = !1;
|
|
249
|
-
}, a = () => Vt.isFocused() && (e.networkMode === "always" || zt.isOnline()) && e.canRun(), u = () => $t(e.networkMode) && e.canRun(), p = (g) => {
|
|
250
|
-
var S;
|
|
251
|
-
r || (r = !0, (S = e.onSuccess) == null || S.call(e, g), n == null || n(), c(g));
|
|
252
|
-
}, O = (g) => {
|
|
253
|
-
var S;
|
|
254
|
-
r || (r = !0, (S = e.onError) == null || S.call(e, g), n == null || n(), o(g));
|
|
255
|
-
}, U = () => new Promise((g) => {
|
|
256
|
-
var S;
|
|
257
|
-
n = (D) => {
|
|
258
|
-
(r || a()) && g(D);
|
|
259
|
-
}, (S = e.onPause) == null || S.call(e);
|
|
260
|
-
}).then(() => {
|
|
261
|
-
var g;
|
|
262
|
-
n = void 0, r || (g = e.onContinue) == null || g.call(e);
|
|
263
|
-
}), A = () => {
|
|
264
|
-
if (r)
|
|
265
|
-
return;
|
|
266
|
-
let g;
|
|
267
|
-
const S = s === 0 ? e.initialPromise : void 0;
|
|
268
|
-
try {
|
|
269
|
-
g = S ?? e.fn();
|
|
270
|
-
} catch (D) {
|
|
271
|
-
g = Promise.reject(D);
|
|
272
|
-
}
|
|
273
|
-
Promise.resolve(g).then(p).catch((D) => {
|
|
274
|
-
var w;
|
|
275
|
-
if (r)
|
|
276
|
-
return;
|
|
277
|
-
const j = e.retry ?? (st ? 0 : 3), V = e.retryDelay ?? le, Qt = typeof V == "function" ? V(s, D) : V, ot = j === !0 || typeof j == "number" && s < j || typeof j == "function" && j(s, D);
|
|
278
|
-
if (t || !ot) {
|
|
279
|
-
O(D);
|
|
280
|
-
return;
|
|
281
|
-
}
|
|
282
|
-
s++, (w = e.onFail) == null || w.call(e, s, D), oe(Qt).then(() => a() ? void 0 : U()).then(() => {
|
|
283
|
-
t ? O(D) : A();
|
|
284
|
-
});
|
|
285
|
-
});
|
|
286
|
-
};
|
|
287
|
-
return {
|
|
288
|
-
promise: l,
|
|
289
|
-
cancel: b,
|
|
290
|
-
continue: () => (n == null || n(), l),
|
|
291
|
-
cancelRetry: R,
|
|
292
|
-
continueRetry: m,
|
|
293
|
-
canStart: u,
|
|
294
|
-
start: () => (u() ? A() : U().then(A), l)
|
|
295
|
-
};
|
|
296
|
-
}
|
|
297
|
-
function fe() {
|
|
298
|
-
let e = [], t = 0, s = (u) => {
|
|
299
|
-
u();
|
|
300
|
-
}, r = (u) => {
|
|
301
|
-
u();
|
|
302
|
-
}, n = (u) => setTimeout(u, 0);
|
|
303
|
-
const c = (u) => {
|
|
304
|
-
n = u;
|
|
305
|
-
}, o = (u) => {
|
|
306
|
-
let p;
|
|
307
|
-
t++;
|
|
308
|
-
try {
|
|
309
|
-
p = u();
|
|
310
|
-
} finally {
|
|
311
|
-
t--, t || R();
|
|
312
|
-
}
|
|
313
|
-
return p;
|
|
314
|
-
}, l = (u) => {
|
|
315
|
-
t ? e.push(u) : n(() => {
|
|
316
|
-
s(u);
|
|
317
|
-
});
|
|
318
|
-
}, b = (u) => (...p) => {
|
|
319
|
-
l(() => {
|
|
320
|
-
u(...p);
|
|
321
|
-
});
|
|
322
|
-
}, R = () => {
|
|
323
|
-
const u = e;
|
|
324
|
-
e = [], u.length && n(() => {
|
|
325
|
-
r(() => {
|
|
326
|
-
u.forEach((p) => {
|
|
327
|
-
s(p);
|
|
328
|
-
});
|
|
329
|
-
});
|
|
330
|
-
});
|
|
331
|
-
};
|
|
332
|
-
return {
|
|
333
|
-
batch: o,
|
|
334
|
-
batchCalls: b,
|
|
335
|
-
schedule: l,
|
|
336
|
-
setNotifyFunction: (u) => {
|
|
337
|
-
s = u;
|
|
338
|
-
},
|
|
339
|
-
setBatchNotifyFunction: (u) => {
|
|
340
|
-
r = u;
|
|
341
|
-
},
|
|
342
|
-
setScheduler: c
|
|
343
|
-
};
|
|
344
|
-
}
|
|
345
|
-
var Tt = fe(), K, Nt, ye = (Nt = class {
|
|
346
|
-
constructor() {
|
|
347
|
-
f(this, K);
|
|
348
|
-
}
|
|
349
|
-
destroy() {
|
|
350
|
-
this.clearGcTimeout();
|
|
351
|
-
}
|
|
352
|
-
scheduleGc() {
|
|
353
|
-
this.clearGcTimeout(), ft(this.gcTime) && h(this, K, setTimeout(() => {
|
|
354
|
-
this.optionalRemove();
|
|
355
|
-
}, this.gcTime));
|
|
356
|
-
}
|
|
357
|
-
updateGcTime(e) {
|
|
358
|
-
this.gcTime = Math.max(
|
|
359
|
-
this.gcTime || 0,
|
|
360
|
-
e ?? (st ? 1 / 0 : 5 * 60 * 1e3)
|
|
361
|
-
);
|
|
362
|
-
}
|
|
363
|
-
clearGcTimeout() {
|
|
364
|
-
i(this, K) && (clearTimeout(i(this, K)), h(this, K, void 0));
|
|
365
|
-
}
|
|
366
|
-
}, K = new WeakMap(), Nt), Z, J, P, C, it, _, Q, x, Kt, Ge = (Kt = class extends ye {
|
|
367
|
-
constructor(t) {
|
|
368
|
-
super();
|
|
369
|
-
f(this, Q);
|
|
370
|
-
f(this, Z);
|
|
371
|
-
f(this, J);
|
|
372
|
-
f(this, P);
|
|
373
|
-
f(this, C);
|
|
374
|
-
f(this, it);
|
|
375
|
-
f(this, _);
|
|
376
|
-
h(this, _, !1), h(this, it, t.defaultOptions), this.setOptions(t.options), this.observers = [], h(this, P, t.cache), this.queryKey = t.queryKey, this.queryHash = t.queryHash, h(this, Z, t.state || pe(this.options)), this.state = i(this, Z), this.scheduleGc();
|
|
377
|
-
}
|
|
378
|
-
get meta() {
|
|
379
|
-
return this.options.meta;
|
|
380
|
-
}
|
|
381
|
-
get promise() {
|
|
382
|
-
var t;
|
|
383
|
-
return (t = i(this, C)) == null ? void 0 : t.promise;
|
|
384
|
-
}
|
|
385
|
-
setOptions(t) {
|
|
386
|
-
this.options = { ...i(this, it), ...t }, this.updateGcTime(this.options.gcTime);
|
|
387
|
-
}
|
|
388
|
-
optionalRemove() {
|
|
389
|
-
!this.observers.length && this.state.fetchStatus === "idle" && i(this, P).remove(this);
|
|
390
|
-
}
|
|
391
|
-
setData(t, s) {
|
|
392
|
-
const r = mt(this.state.data, t, this.options);
|
|
393
|
-
return v(this, Q, x).call(this, {
|
|
394
|
-
data: r,
|
|
395
|
-
type: "success",
|
|
396
|
-
dataUpdatedAt: s == null ? void 0 : s.updatedAt,
|
|
397
|
-
manual: s == null ? void 0 : s.manual
|
|
398
|
-
}), r;
|
|
399
|
-
}
|
|
400
|
-
setState(t, s) {
|
|
401
|
-
v(this, Q, x).call(this, { type: "setState", state: t, setStateOptions: s });
|
|
402
|
-
}
|
|
403
|
-
cancel(t) {
|
|
404
|
-
var r, n;
|
|
405
|
-
const s = (r = i(this, C)) == null ? void 0 : r.promise;
|
|
406
|
-
return (n = i(this, C)) == null || n.cancel(t), s ? s.then(dt).catch(dt) : Promise.resolve();
|
|
407
|
-
}
|
|
408
|
-
destroy() {
|
|
409
|
-
super.destroy(), this.cancel({ silent: !0 });
|
|
410
|
-
}
|
|
411
|
-
reset() {
|
|
412
|
-
this.destroy(), this.setState(i(this, Z));
|
|
413
|
-
}
|
|
414
|
-
isActive() {
|
|
415
|
-
return this.observers.some(
|
|
416
|
-
(t) => q(t.options.enabled, this) !== !1
|
|
417
|
-
);
|
|
418
|
-
}
|
|
419
|
-
isDisabled() {
|
|
420
|
-
return this.getObserversCount() > 0 && !this.isActive();
|
|
421
|
-
}
|
|
422
|
-
isStale() {
|
|
423
|
-
return this.state.isInvalidated ? !0 : this.getObserversCount() > 0 ? this.observers.some(
|
|
424
|
-
(t) => t.getCurrentResult().isStale
|
|
425
|
-
) : this.state.data === void 0;
|
|
426
|
-
}
|
|
427
|
-
isStaleByTime(t = 0) {
|
|
428
|
-
return this.state.isInvalidated || this.state.data === void 0 || !Gt(this.state.dataUpdatedAt, t);
|
|
429
|
-
}
|
|
430
|
-
onFocus() {
|
|
431
|
-
var s;
|
|
432
|
-
const t = this.observers.find((r) => r.shouldFetchOnWindowFocus());
|
|
433
|
-
t == null || t.refetch({ cancelRefetch: !1 }), (s = i(this, C)) == null || s.continue();
|
|
434
|
-
}
|
|
435
|
-
onOnline() {
|
|
436
|
-
var s;
|
|
437
|
-
const t = this.observers.find((r) => r.shouldFetchOnReconnect());
|
|
438
|
-
t == null || t.refetch({ cancelRefetch: !1 }), (s = i(this, C)) == null || s.continue();
|
|
439
|
-
}
|
|
440
|
-
addObserver(t) {
|
|
441
|
-
this.observers.includes(t) || (this.observers.push(t), this.clearGcTimeout(), i(this, P).notify({ type: "observerAdded", query: this, observer: t }));
|
|
442
|
-
}
|
|
443
|
-
removeObserver(t) {
|
|
444
|
-
this.observers.includes(t) && (this.observers = this.observers.filter((s) => s !== t), this.observers.length || (i(this, C) && (i(this, _) ? i(this, C).cancel({ revert: !0 }) : i(this, C).cancelRetry()), this.scheduleGc()), i(this, P).notify({ type: "observerRemoved", query: this, observer: t }));
|
|
445
|
-
}
|
|
446
|
-
getObserversCount() {
|
|
447
|
-
return this.observers.length;
|
|
448
|
-
}
|
|
449
|
-
invalidate() {
|
|
450
|
-
this.state.isInvalidated || v(this, Q, x).call(this, { type: "invalidate" });
|
|
451
|
-
}
|
|
452
|
-
fetch(t, s) {
|
|
453
|
-
var b, R, m;
|
|
454
|
-
if (this.state.fetchStatus !== "idle") {
|
|
455
|
-
if (this.state.data !== void 0 && (s != null && s.cancelRefetch))
|
|
456
|
-
this.cancel({ silent: !0 });
|
|
457
|
-
else if (i(this, C))
|
|
458
|
-
return i(this, C).continueRetry(), i(this, C).promise;
|
|
459
|
-
}
|
|
460
|
-
if (t && this.setOptions(t), !this.options.queryFn) {
|
|
461
|
-
const a = this.observers.find((u) => u.options.queryFn);
|
|
462
|
-
a && this.setOptions(a.options);
|
|
463
|
-
}
|
|
464
|
-
process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error(
|
|
465
|
-
"As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"
|
|
466
|
-
));
|
|
467
|
-
const r = new AbortController(), n = (a) => {
|
|
468
|
-
Object.defineProperty(a, "signal", {
|
|
469
|
-
enumerable: !0,
|
|
470
|
-
get: () => (h(this, _, !0), r.signal)
|
|
471
|
-
});
|
|
472
|
-
}, c = () => {
|
|
473
|
-
const a = ue(this.options, s), u = {
|
|
474
|
-
queryKey: this.queryKey,
|
|
475
|
-
meta: this.meta
|
|
476
|
-
};
|
|
477
|
-
return n(u), h(this, _, !1), this.options.persister ? this.options.persister(
|
|
478
|
-
a,
|
|
479
|
-
u,
|
|
480
|
-
this
|
|
481
|
-
) : a(u);
|
|
482
|
-
}, o = {
|
|
483
|
-
fetchOptions: s,
|
|
484
|
-
options: this.options,
|
|
485
|
-
queryKey: this.queryKey,
|
|
486
|
-
state: this.state,
|
|
487
|
-
fetchFn: c
|
|
488
|
-
};
|
|
489
|
-
n(o), (b = this.options.behavior) == null || b.onFetch(
|
|
490
|
-
o,
|
|
491
|
-
this
|
|
492
|
-
), h(this, J, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((R = o.fetchOptions) == null ? void 0 : R.meta)) && v(this, Q, x).call(this, { type: "fetch", meta: (m = o.fetchOptions) == null ? void 0 : m.meta });
|
|
493
|
-
const l = (a) => {
|
|
494
|
-
var u, p, O, U;
|
|
495
|
-
lt(a) && a.silent || v(this, Q, x).call(this, {
|
|
496
|
-
type: "error",
|
|
497
|
-
error: a
|
|
498
|
-
}), lt(a) || ((p = (u = i(this, P).config).onError) == null || p.call(
|
|
499
|
-
u,
|
|
500
|
-
a,
|
|
501
|
-
this
|
|
502
|
-
), (U = (O = i(this, P).config).onSettled) == null || U.call(
|
|
503
|
-
O,
|
|
504
|
-
this.state.data,
|
|
505
|
-
a,
|
|
506
|
-
this
|
|
507
|
-
)), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1;
|
|
508
|
-
};
|
|
509
|
-
return h(this, C, de({
|
|
510
|
-
initialPromise: s == null ? void 0 : s.initialPromise,
|
|
511
|
-
fn: o.fetchFn,
|
|
512
|
-
abort: r.abort.bind(r),
|
|
513
|
-
onSuccess: (a) => {
|
|
514
|
-
var u, p, O, U;
|
|
515
|
-
if (a === void 0) {
|
|
516
|
-
process.env.NODE_ENV !== "production" && console.error(
|
|
517
|
-
`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
|
|
518
|
-
), l(new Error(`${this.queryHash} data is undefined`));
|
|
519
|
-
return;
|
|
520
|
-
}
|
|
521
|
-
this.setData(a), (p = (u = i(this, P).config).onSuccess) == null || p.call(u, a, this), (U = (O = i(this, P).config).onSettled) == null || U.call(
|
|
522
|
-
O,
|
|
523
|
-
a,
|
|
524
|
-
this.state.error,
|
|
525
|
-
this
|
|
526
|
-
), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1;
|
|
527
|
-
},
|
|
528
|
-
onError: l,
|
|
529
|
-
onFail: (a, u) => {
|
|
530
|
-
v(this, Q, x).call(this, { type: "failed", failureCount: a, error: u });
|
|
531
|
-
},
|
|
532
|
-
onPause: () => {
|
|
533
|
-
v(this, Q, x).call(this, { type: "pause" });
|
|
534
|
-
},
|
|
535
|
-
onContinue: () => {
|
|
536
|
-
v(this, Q, x).call(this, { type: "continue" });
|
|
537
|
-
},
|
|
538
|
-
retry: o.options.retry,
|
|
539
|
-
retryDelay: o.options.retryDelay,
|
|
540
|
-
networkMode: o.options.networkMode,
|
|
541
|
-
canRun: () => !0
|
|
542
|
-
})), i(this, C).start();
|
|
543
|
-
}
|
|
544
|
-
}, Z = new WeakMap(), J = new WeakMap(), P = new WeakMap(), C = new WeakMap(), it = new WeakMap(), _ = new WeakMap(), Q = new WeakSet(), x = function(t) {
|
|
545
|
-
const s = (r) => {
|
|
546
|
-
switch (t.type) {
|
|
547
|
-
case "failed":
|
|
548
|
-
return {
|
|
549
|
-
...r,
|
|
550
|
-
fetchFailureCount: t.failureCount,
|
|
551
|
-
fetchFailureReason: t.error
|
|
552
|
-
};
|
|
553
|
-
case "pause":
|
|
554
|
-
return {
|
|
555
|
-
...r,
|
|
556
|
-
fetchStatus: "paused"
|
|
557
|
-
};
|
|
558
|
-
case "continue":
|
|
559
|
-
return {
|
|
560
|
-
...r,
|
|
561
|
-
fetchStatus: "fetching"
|
|
562
|
-
};
|
|
563
|
-
case "fetch":
|
|
564
|
-
return {
|
|
565
|
-
...r,
|
|
566
|
-
...Zt(r.data, this.options),
|
|
567
|
-
fetchMeta: t.meta ?? null
|
|
568
|
-
};
|
|
569
|
-
case "success":
|
|
570
|
-
return {
|
|
571
|
-
...r,
|
|
572
|
-
data: t.data,
|
|
573
|
-
dataUpdateCount: r.dataUpdateCount + 1,
|
|
574
|
-
dataUpdatedAt: t.dataUpdatedAt ?? Date.now(),
|
|
575
|
-
error: null,
|
|
576
|
-
isInvalidated: !1,
|
|
577
|
-
status: "success",
|
|
578
|
-
...!t.manual && {
|
|
579
|
-
fetchStatus: "idle",
|
|
580
|
-
fetchFailureCount: 0,
|
|
581
|
-
fetchFailureReason: null
|
|
582
|
-
}
|
|
583
|
-
};
|
|
584
|
-
case "error":
|
|
585
|
-
const n = t.error;
|
|
586
|
-
return lt(n) && n.revert && i(this, J) ? { ...i(this, J), fetchStatus: "idle" } : {
|
|
587
|
-
...r,
|
|
588
|
-
error: n,
|
|
589
|
-
errorUpdateCount: r.errorUpdateCount + 1,
|
|
590
|
-
errorUpdatedAt: Date.now(),
|
|
591
|
-
fetchFailureCount: r.fetchFailureCount + 1,
|
|
592
|
-
fetchFailureReason: n,
|
|
593
|
-
fetchStatus: "idle",
|
|
594
|
-
status: "error"
|
|
595
|
-
};
|
|
596
|
-
case "invalidate":
|
|
597
|
-
return {
|
|
598
|
-
...r,
|
|
599
|
-
isInvalidated: !0
|
|
600
|
-
};
|
|
601
|
-
case "setState":
|
|
602
|
-
return {
|
|
603
|
-
...r,
|
|
604
|
-
...t.state
|
|
605
|
-
};
|
|
606
|
-
}
|
|
607
|
-
};
|
|
608
|
-
this.state = s(this.state), Tt.batch(() => {
|
|
609
|
-
this.observers.forEach((r) => {
|
|
610
|
-
r.onQueryUpdate();
|
|
611
|
-
}), i(this, P).notify({ query: this, type: "updated", action: t });
|
|
612
|
-
});
|
|
613
|
-
}, Kt);
|
|
614
|
-
function Zt(e, t) {
|
|
615
|
-
return {
|
|
616
|
-
fetchFailureCount: 0,
|
|
617
|
-
fetchFailureReason: null,
|
|
618
|
-
fetchStatus: $t(t.networkMode) ? "fetching" : "paused",
|
|
619
|
-
...e === void 0 && {
|
|
620
|
-
error: null,
|
|
621
|
-
status: "pending"
|
|
622
|
-
}
|
|
623
|
-
};
|
|
624
|
-
}
|
|
625
|
-
function pe(e) {
|
|
626
|
-
const t = typeof e.initialData == "function" ? e.initialData() : e.initialData, s = t !== void 0, r = s ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
|
|
627
|
-
return {
|
|
628
|
-
data: t,
|
|
629
|
-
dataUpdateCount: 0,
|
|
630
|
-
dataUpdatedAt: s ? r ?? Date.now() : 0,
|
|
631
|
-
error: null,
|
|
632
|
-
errorUpdateCount: 0,
|
|
633
|
-
errorUpdatedAt: 0,
|
|
634
|
-
fetchFailureCount: 0,
|
|
635
|
-
fetchFailureReason: null,
|
|
636
|
-
fetchMeta: null,
|
|
637
|
-
isInvalidated: !1,
|
|
638
|
-
status: s ? "success" : "pending",
|
|
639
|
-
fetchStatus: "idle"
|
|
640
|
-
};
|
|
641
|
-
}
|
|
642
|
-
var E, d, nt, F, B, X, I, at, Y, tt, G, H, L, et, y, rt, gt, Rt, St, Ct, wt, Ft, Ot, Xt, _t, Jt = (_t = class extends Dt {
|
|
643
|
-
constructor(t, s) {
|
|
644
|
-
super();
|
|
645
|
-
f(this, y);
|
|
646
|
-
f(this, E);
|
|
647
|
-
f(this, d);
|
|
648
|
-
f(this, nt);
|
|
649
|
-
f(this, F);
|
|
650
|
-
f(this, B);
|
|
651
|
-
f(this, X);
|
|
652
|
-
f(this, I);
|
|
653
|
-
f(this, at);
|
|
654
|
-
f(this, Y);
|
|
655
|
-
// This property keeps track of the last query with defined data.
|
|
656
|
-
// It will be used to pass the previous data and query to the placeholder function between renders.
|
|
657
|
-
f(this, tt);
|
|
658
|
-
f(this, G);
|
|
659
|
-
f(this, H);
|
|
660
|
-
f(this, L);
|
|
661
|
-
f(this, et, /* @__PURE__ */ new Set());
|
|
662
|
-
this.options = s, h(this, E, t), h(this, I, null), this.bindMethods(), this.setOptions(s);
|
|
663
|
-
}
|
|
664
|
-
bindMethods() {
|
|
665
|
-
this.refetch = this.refetch.bind(this);
|
|
666
|
-
}
|
|
667
|
-
onSubscribe() {
|
|
668
|
-
this.listeners.size === 1 && (i(this, d).addObserver(this), jt(i(this, d), this.options) ? v(this, y, rt).call(this) : this.updateResult(), v(this, y, Ct).call(this));
|
|
669
|
-
}
|
|
670
|
-
onUnsubscribe() {
|
|
671
|
-
this.hasListeners() || this.destroy();
|
|
672
|
-
}
|
|
673
|
-
shouldFetchOnReconnect() {
|
|
674
|
-
return Et(
|
|
675
|
-
i(this, d),
|
|
676
|
-
this.options,
|
|
677
|
-
this.options.refetchOnReconnect
|
|
678
|
-
);
|
|
679
|
-
}
|
|
680
|
-
shouldFetchOnWindowFocus() {
|
|
681
|
-
return Et(
|
|
682
|
-
i(this, d),
|
|
683
|
-
this.options,
|
|
684
|
-
this.options.refetchOnWindowFocus
|
|
685
|
-
);
|
|
686
|
-
}
|
|
687
|
-
destroy() {
|
|
688
|
-
this.listeners = /* @__PURE__ */ new Set(), v(this, y, wt).call(this), v(this, y, Ft).call(this), i(this, d).removeObserver(this);
|
|
689
|
-
}
|
|
690
|
-
setOptions(t, s) {
|
|
691
|
-
const r = this.options, n = i(this, d);
|
|
692
|
-
if (this.options = i(this, E).defaultQueryOptions(t), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof q(this.options.enabled, i(this, d)) != "boolean")
|
|
693
|
-
throw new Error(
|
|
694
|
-
"Expected enabled to be a boolean or a callback that returns a boolean"
|
|
695
|
-
);
|
|
696
|
-
v(this, y, Ot).call(this), i(this, d).setOptions(this.options), r._defaulted && !pt(this.options, r) && i(this, E).getQueryCache().notify({
|
|
697
|
-
type: "observerOptionsUpdated",
|
|
698
|
-
query: i(this, d),
|
|
699
|
-
observer: this
|
|
700
|
-
});
|
|
701
|
-
const c = this.hasListeners();
|
|
702
|
-
c && kt(
|
|
703
|
-
i(this, d),
|
|
704
|
-
n,
|
|
705
|
-
this.options,
|
|
706
|
-
r
|
|
707
|
-
) && v(this, y, rt).call(this), this.updateResult(s), c && (i(this, d) !== n || q(this.options.enabled, i(this, d)) !== q(r.enabled, i(this, d)) || ut(this.options.staleTime, i(this, d)) !== ut(r.staleTime, i(this, d))) && v(this, y, gt).call(this);
|
|
708
|
-
const o = v(this, y, Rt).call(this);
|
|
709
|
-
c && (i(this, d) !== n || q(this.options.enabled, i(this, d)) !== q(r.enabled, i(this, d)) || o !== i(this, L)) && v(this, y, St).call(this, o);
|
|
710
|
-
}
|
|
711
|
-
getOptimisticResult(t) {
|
|
712
|
-
const s = i(this, E).getQueryCache().build(i(this, E), t), r = this.createResult(s, t);
|
|
713
|
-
return me(this, r) && (h(this, F, r), h(this, X, this.options), h(this, B, i(this, d).state)), r;
|
|
714
|
-
}
|
|
715
|
-
getCurrentResult() {
|
|
716
|
-
return i(this, F);
|
|
717
|
-
}
|
|
718
|
-
trackResult(t, s) {
|
|
719
|
-
const r = {};
|
|
720
|
-
return Object.keys(t).forEach((n) => {
|
|
721
|
-
Object.defineProperty(r, n, {
|
|
722
|
-
configurable: !1,
|
|
723
|
-
enumerable: !0,
|
|
724
|
-
get: () => (this.trackProp(n), s == null || s(n), t[n])
|
|
725
|
-
});
|
|
726
|
-
}), r;
|
|
727
|
-
}
|
|
728
|
-
trackProp(t) {
|
|
729
|
-
i(this, et).add(t);
|
|
730
|
-
}
|
|
731
|
-
getCurrentQuery() {
|
|
732
|
-
return i(this, d);
|
|
733
|
-
}
|
|
734
|
-
refetch({ ...t } = {}) {
|
|
735
|
-
return this.fetch({
|
|
736
|
-
...t
|
|
737
|
-
});
|
|
738
|
-
}
|
|
739
|
-
fetchOptimistic(t) {
|
|
740
|
-
const s = i(this, E).defaultQueryOptions(t), r = i(this, E).getQueryCache().build(i(this, E), s);
|
|
741
|
-
return r.isFetchingOptimistic = !0, r.fetch().then(() => this.createResult(r, s));
|
|
742
|
-
}
|
|
743
|
-
fetch(t) {
|
|
744
|
-
return v(this, y, rt).call(this, {
|
|
745
|
-
...t,
|
|
746
|
-
cancelRefetch: t.cancelRefetch ?? !0
|
|
747
|
-
}).then(() => (this.updateResult(), i(this, F)));
|
|
748
|
-
}
|
|
749
|
-
createResult(t, s) {
|
|
750
|
-
var ot;
|
|
751
|
-
const r = i(this, d), n = this.options, c = i(this, F), o = i(this, B), l = i(this, X), R = t !== r ? t.state : i(this, nt), { state: m } = t;
|
|
752
|
-
let a = { ...m }, u = !1, p;
|
|
753
|
-
if (s._optimisticResults) {
|
|
754
|
-
const w = this.hasListeners(), ht = !w && jt(t, s), se = w && kt(t, r, s, n);
|
|
755
|
-
(ht || se) && (a = {
|
|
756
|
-
...a,
|
|
757
|
-
...Zt(m.data, t.options)
|
|
758
|
-
}), s._optimisticResults === "isRestoring" && (a.fetchStatus = "idle");
|
|
759
|
-
}
|
|
760
|
-
let { error: O, errorUpdatedAt: U, status: A } = a;
|
|
761
|
-
if (s.select && a.data !== void 0)
|
|
762
|
-
if (c && a.data === (o == null ? void 0 : o.data) && s.select === i(this, at))
|
|
763
|
-
p = i(this, Y);
|
|
764
|
-
else
|
|
765
|
-
try {
|
|
766
|
-
h(this, at, s.select), p = s.select(a.data), p = mt(c == null ? void 0 : c.data, p, s), h(this, Y, p), h(this, I, null);
|
|
767
|
-
} catch (w) {
|
|
768
|
-
h(this, I, w);
|
|
769
|
-
}
|
|
770
|
-
else
|
|
771
|
-
p = a.data;
|
|
772
|
-
if (s.placeholderData !== void 0 && p === void 0 && A === "pending") {
|
|
773
|
-
let w;
|
|
774
|
-
if (c != null && c.isPlaceholderData && s.placeholderData === (l == null ? void 0 : l.placeholderData))
|
|
775
|
-
w = c.data;
|
|
776
|
-
else if (w = typeof s.placeholderData == "function" ? s.placeholderData(
|
|
777
|
-
(ot = i(this, tt)) == null ? void 0 : ot.state.data,
|
|
778
|
-
i(this, tt)
|
|
779
|
-
) : s.placeholderData, s.select && w !== void 0)
|
|
780
|
-
try {
|
|
781
|
-
w = s.select(w), h(this, I, null);
|
|
782
|
-
} catch (ht) {
|
|
783
|
-
h(this, I, ht);
|
|
784
|
-
}
|
|
785
|
-
w !== void 0 && (A = "success", p = mt(
|
|
786
|
-
c == null ? void 0 : c.data,
|
|
787
|
-
w,
|
|
788
|
-
s
|
|
789
|
-
), u = !0);
|
|
790
|
-
}
|
|
791
|
-
i(this, I) && (O = i(this, I), p = i(this, Y), U = Date.now(), A = "error");
|
|
792
|
-
const g = a.fetchStatus === "fetching", S = A === "pending", D = A === "error", j = S && g, V = p !== void 0;
|
|
793
|
-
return {
|
|
794
|
-
status: A,
|
|
795
|
-
fetchStatus: a.fetchStatus,
|
|
796
|
-
isPending: S,
|
|
797
|
-
isSuccess: A === "success",
|
|
798
|
-
isError: D,
|
|
799
|
-
isInitialLoading: j,
|
|
800
|
-
isLoading: j,
|
|
801
|
-
data: p,
|
|
802
|
-
dataUpdatedAt: a.dataUpdatedAt,
|
|
803
|
-
error: O,
|
|
804
|
-
errorUpdatedAt: U,
|
|
805
|
-
failureCount: a.fetchFailureCount,
|
|
806
|
-
failureReason: a.fetchFailureReason,
|
|
807
|
-
errorUpdateCount: a.errorUpdateCount,
|
|
808
|
-
isFetched: a.dataUpdateCount > 0 || a.errorUpdateCount > 0,
|
|
809
|
-
isFetchedAfterMount: a.dataUpdateCount > R.dataUpdateCount || a.errorUpdateCount > R.errorUpdateCount,
|
|
810
|
-
isFetching: g,
|
|
811
|
-
isRefetching: g && !S,
|
|
812
|
-
isLoadingError: D && !V,
|
|
813
|
-
isPaused: a.fetchStatus === "paused",
|
|
814
|
-
isPlaceholderData: u,
|
|
815
|
-
isRefetchError: D && V,
|
|
816
|
-
isStale: Ut(t, s),
|
|
817
|
-
refetch: this.refetch
|
|
818
|
-
};
|
|
819
|
-
}
|
|
820
|
-
updateResult(t) {
|
|
821
|
-
const s = i(this, F), r = this.createResult(i(this, d), this.options);
|
|
822
|
-
if (h(this, B, i(this, d).state), h(this, X, this.options), i(this, B).data !== void 0 && h(this, tt, i(this, d)), pt(r, s))
|
|
823
|
-
return;
|
|
824
|
-
h(this, F, r);
|
|
825
|
-
const n = {}, c = () => {
|
|
826
|
-
if (!s)
|
|
827
|
-
return !0;
|
|
828
|
-
const { notifyOnChangeProps: o } = this.options, l = typeof o == "function" ? o() : o;
|
|
829
|
-
if (l === "all" || !l && !i(this, et).size)
|
|
830
|
-
return !0;
|
|
831
|
-
const b = new Set(
|
|
832
|
-
l ?? i(this, et)
|
|
833
|
-
);
|
|
834
|
-
return this.options.throwOnError && b.add("error"), Object.keys(i(this, F)).some((R) => {
|
|
835
|
-
const m = R;
|
|
836
|
-
return i(this, F)[m] !== s[m] && b.has(m);
|
|
837
|
-
});
|
|
838
|
-
};
|
|
839
|
-
(t == null ? void 0 : t.listeners) !== !1 && c() && (n.listeners = !0), v(this, y, Xt).call(this, { ...n, ...t });
|
|
840
|
-
}
|
|
841
|
-
onQueryUpdate() {
|
|
842
|
-
this.updateResult(), this.hasListeners() && v(this, y, Ct).call(this);
|
|
843
|
-
}
|
|
844
|
-
}, E = new WeakMap(), d = new WeakMap(), nt = new WeakMap(), F = new WeakMap(), B = new WeakMap(), X = new WeakMap(), I = new WeakMap(), at = new WeakMap(), Y = new WeakMap(), tt = new WeakMap(), G = new WeakMap(), H = new WeakMap(), L = new WeakMap(), et = new WeakMap(), y = new WeakSet(), rt = function(t) {
|
|
845
|
-
v(this, y, Ot).call(this);
|
|
846
|
-
let s = i(this, d).fetch(
|
|
847
|
-
this.options,
|
|
848
|
-
t
|
|
849
|
-
);
|
|
850
|
-
return t != null && t.throwOnError || (s = s.catch(dt)), s;
|
|
851
|
-
}, gt = function() {
|
|
852
|
-
v(this, y, wt).call(this);
|
|
853
|
-
const t = ut(
|
|
854
|
-
this.options.staleTime,
|
|
855
|
-
i(this, d)
|
|
856
|
-
);
|
|
857
|
-
if (st || i(this, F).isStale || !ft(t))
|
|
858
|
-
return;
|
|
859
|
-
const r = Gt(i(this, F).dataUpdatedAt, t) + 1;
|
|
860
|
-
h(this, G, setTimeout(() => {
|
|
861
|
-
i(this, F).isStale || this.updateResult();
|
|
862
|
-
}, r));
|
|
863
|
-
}, Rt = function() {
|
|
864
|
-
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(i(this, d)) : this.options.refetchInterval) ?? !1;
|
|
865
|
-
}, St = function(t) {
|
|
866
|
-
v(this, y, Ft).call(this), h(this, L, t), !(st || q(this.options.enabled, i(this, d)) === !1 || !ft(i(this, L)) || i(this, L) === 0) && h(this, H, setInterval(() => {
|
|
867
|
-
(this.options.refetchIntervalInBackground || Vt.isFocused()) && v(this, y, rt).call(this);
|
|
868
|
-
}, i(this, L)));
|
|
869
|
-
}, Ct = function() {
|
|
870
|
-
v(this, y, gt).call(this), v(this, y, St).call(this, v(this, y, Rt).call(this));
|
|
871
|
-
}, wt = function() {
|
|
872
|
-
i(this, G) && (clearTimeout(i(this, G)), h(this, G, void 0));
|
|
873
|
-
}, Ft = function() {
|
|
874
|
-
i(this, H) && (clearInterval(i(this, H)), h(this, H, void 0));
|
|
875
|
-
}, Ot = function() {
|
|
876
|
-
const t = i(this, E).getQueryCache().build(i(this, E), this.options);
|
|
877
|
-
if (t === i(this, d))
|
|
878
|
-
return;
|
|
879
|
-
const s = i(this, d);
|
|
880
|
-
h(this, d, t), h(this, nt, t.state), this.hasListeners() && (s == null || s.removeObserver(this), t.addObserver(this));
|
|
881
|
-
}, Xt = function(t) {
|
|
882
|
-
Tt.batch(() => {
|
|
883
|
-
t.listeners && this.listeners.forEach((s) => {
|
|
884
|
-
s(i(this, F));
|
|
885
|
-
}), i(this, E).getQueryCache().notify({
|
|
886
|
-
query: i(this, d),
|
|
887
|
-
type: "observerResultsUpdated"
|
|
888
|
-
});
|
|
889
|
-
});
|
|
890
|
-
}, _t);
|
|
891
|
-
function ve(e, t) {
|
|
892
|
-
return q(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
|
|
893
|
-
}
|
|
894
|
-
function jt(e, t) {
|
|
895
|
-
return ve(e, t) || e.state.data !== void 0 && Et(e, t, t.refetchOnMount);
|
|
896
|
-
}
|
|
897
|
-
function Et(e, t, s) {
|
|
898
|
-
if (q(t.enabled, e) !== !1) {
|
|
899
|
-
const r = typeof s == "function" ? s(e) : s;
|
|
900
|
-
return r === "always" || r !== !1 && Ut(e, t);
|
|
901
|
-
}
|
|
902
|
-
return !1;
|
|
903
|
-
}
|
|
904
|
-
function kt(e, t, s, r) {
|
|
905
|
-
return (e !== t || q(r.enabled, e) === !1) && (!s.suspense || e.state.status !== "error") && Ut(e, s);
|
|
906
|
-
}
|
|
907
|
-
function Ut(e, t) {
|
|
908
|
-
return q(t.enabled, e) !== !1 && e.isStaleByTime(ut(t.staleTime, e));
|
|
909
|
-
}
|
|
910
|
-
function me(e, t) {
|
|
911
|
-
return !pt(e.getCurrentResult(), t);
|
|
912
|
-
}
|
|
913
|
-
var Yt = T.createContext(
|
|
914
|
-
void 0
|
|
915
|
-
), be = (e) => {
|
|
916
|
-
const t = T.useContext(Yt);
|
|
917
|
-
if (!t)
|
|
918
|
-
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
919
|
-
return t;
|
|
920
|
-
}, He = ({
|
|
921
|
-
client: e,
|
|
922
|
-
children: t
|
|
923
|
-
}) => (T.useEffect(() => (e.mount(), () => {
|
|
924
|
-
e.unmount();
|
|
925
|
-
}), [e]), /* @__PURE__ */ ne.jsx(Yt.Provider, { value: e, children: t })), te = T.createContext(!1), ge = () => T.useContext(te);
|
|
926
|
-
te.Provider;
|
|
927
|
-
function Re() {
|
|
928
|
-
let e = !1;
|
|
929
|
-
return {
|
|
930
|
-
clearReset: () => {
|
|
931
|
-
e = !1;
|
|
932
|
-
},
|
|
933
|
-
reset: () => {
|
|
934
|
-
e = !0;
|
|
935
|
-
},
|
|
936
|
-
isReset: () => e
|
|
937
|
-
};
|
|
938
|
-
}
|
|
939
|
-
var Se = T.createContext(Re()), Ce = () => T.useContext(Se);
|
|
940
|
-
function we(e, t) {
|
|
941
|
-
return typeof e == "function" ? e(...t) : !!e;
|
|
942
|
-
}
|
|
943
|
-
function Ve() {
|
|
944
|
-
}
|
|
945
|
-
var Fe = (e, t) => {
|
|
946
|
-
(e.suspense || e.throwOnError) && (t.isReset() || (e.retryOnMount = !1));
|
|
947
|
-
}, Oe = (e) => {
|
|
948
|
-
T.useEffect(() => {
|
|
949
|
-
e.clearReset();
|
|
950
|
-
}, [e]);
|
|
951
|
-
}, Ee = ({
|
|
952
|
-
result: e,
|
|
953
|
-
errorResetBoundary: t,
|
|
954
|
-
throwOnError: s,
|
|
955
|
-
query: r
|
|
956
|
-
}) => e.isError && !t.isReset() && !e.isFetching && r && we(s, [e.error, r]), De = (e, t) => t.state.data === void 0, Pe = (e) => {
|
|
957
|
-
e.suspense && typeof e.staleTime != "number" && (e.staleTime = 1e3);
|
|
958
|
-
}, Te = (e, t) => (e == null ? void 0 : e.suspense) && t.isPending, Ue = (e, t, s) => t.fetchOptimistic(e).catch(() => {
|
|
959
|
-
s.clearReset();
|
|
960
|
-
});
|
|
961
|
-
function ee(e, t, s) {
|
|
962
|
-
var R, m, a, u;
|
|
963
|
-
if (process.env.NODE_ENV !== "production" && (typeof e != "object" || Array.isArray(e)))
|
|
964
|
-
throw new Error(
|
|
965
|
-
'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
|
|
966
|
-
);
|
|
967
|
-
const r = be(), n = ge(), c = Ce(), o = r.defaultQueryOptions(e);
|
|
968
|
-
(m = (R = r.getDefaultOptions().queries) == null ? void 0 : R._experimental_beforeQuery) == null || m.call(
|
|
969
|
-
R,
|
|
970
|
-
o
|
|
971
|
-
), o._optimisticResults = n ? "isRestoring" : "optimistic", Pe(o), Fe(o, c), Oe(c);
|
|
972
|
-
const [l] = T.useState(
|
|
973
|
-
() => new t(
|
|
974
|
-
r,
|
|
975
|
-
o
|
|
976
|
-
)
|
|
977
|
-
), b = l.getOptimisticResult(o);
|
|
978
|
-
if (T.useSyncExternalStore(
|
|
979
|
-
T.useCallback(
|
|
980
|
-
(p) => {
|
|
981
|
-
const O = n ? () => {
|
|
982
|
-
} : l.subscribe(Tt.batchCalls(p));
|
|
983
|
-
return l.updateResult(), O;
|
|
984
|
-
},
|
|
985
|
-
[l, n]
|
|
986
|
-
),
|
|
987
|
-
() => l.getCurrentResult(),
|
|
988
|
-
() => l.getCurrentResult()
|
|
989
|
-
), T.useEffect(() => {
|
|
990
|
-
l.setOptions(o, { listeners: !1 });
|
|
991
|
-
}, [o, l]), Te(o, b))
|
|
992
|
-
throw Ue(o, l, c);
|
|
993
|
-
if (Ee({
|
|
994
|
-
result: b,
|
|
995
|
-
errorResetBoundary: c,
|
|
996
|
-
throwOnError: o.throwOnError,
|
|
997
|
-
query: r.getQueryCache().get(o.queryHash)
|
|
998
|
-
}))
|
|
999
|
-
throw b.error;
|
|
1000
|
-
return (u = (a = r.getDefaultOptions().queries) == null ? void 0 : a._experimental_afterQuery) == null || u.call(
|
|
1001
|
-
a,
|
|
1002
|
-
o,
|
|
1003
|
-
b
|
|
1004
|
-
), o.notifyOnChangeProps ? b : l.trackResult(b);
|
|
1005
|
-
}
|
|
1006
|
-
function Ae(e, t) {
|
|
1007
|
-
return ee(e, Jt);
|
|
1008
|
-
}
|
|
1009
|
-
function Qe(e, t) {
|
|
1010
|
-
return process.env.NODE_ENV !== "production" && e.queryFn === bt && console.error("skipToken is not allowed for useSuspenseQuery"), ee(
|
|
1011
|
-
{
|
|
1012
|
-
...e,
|
|
1013
|
-
enabled: !0,
|
|
1014
|
-
suspense: !0,
|
|
1015
|
-
throwOnError: De,
|
|
1016
|
-
placeholderData: void 0
|
|
1017
|
-
},
|
|
1018
|
-
Jt
|
|
1019
|
-
);
|
|
1020
|
-
}
|
|
1021
|
-
const qe = re(
|
|
1022
|
-
void 0
|
|
1023
|
-
), At = () => {
|
|
1024
|
-
const e = ie(qe);
|
|
1025
|
-
if (!e)
|
|
1026
|
-
throw new Error("useDevPortal must be used within a DevPortalProvider.");
|
|
1027
|
-
return e;
|
|
1028
|
-
}, ze = () => {
|
|
1029
|
-
const { getApiIdentities: e } = At();
|
|
1030
|
-
return Ae({
|
|
1031
|
-
queryFn: e,
|
|
1032
|
-
queryKey: ["api-identities"]
|
|
1033
|
-
});
|
|
1034
|
-
}, Ie = () => {
|
|
1035
|
-
const { topNavigation: e } = At(), s = Bt().pathname.split("/").at(1);
|
|
1036
|
-
if (s)
|
|
1037
|
-
return e.find((r) => r.id === s);
|
|
1038
|
-
}, $e = () => {
|
|
1039
|
-
const { getPluginSidebar: e, sidebars: t } = At(), s = Ie(), r = s == null ? void 0 : s.id, n = r ? t[r] ?? [] : [], c = Bt();
|
|
1040
|
-
return Qe({
|
|
1041
|
-
queryFn: async () => {
|
|
1042
|
-
const o = r ? await e(r) : await e(c.pathname);
|
|
1043
|
-
return {
|
|
1044
|
-
items: [...n, ...o],
|
|
1045
|
-
currentTopNavItem: s
|
|
1046
|
-
};
|
|
1047
|
-
},
|
|
1048
|
-
queryKey: ["navigation", r]
|
|
1049
|
-
});
|
|
1050
|
-
};
|
|
1051
|
-
export {
|
|
1052
|
-
Ae as A,
|
|
1053
|
-
Ge as Q,
|
|
1054
|
-
ye as R,
|
|
1055
|
-
Dt as S,
|
|
1056
|
-
qe as Z,
|
|
1057
|
-
be as a,
|
|
1058
|
-
Qe as b,
|
|
1059
|
-
Ie as c,
|
|
1060
|
-
Ve as d,
|
|
1061
|
-
we as e,
|
|
1062
|
-
ae as f,
|
|
1063
|
-
Ke as g,
|
|
1064
|
-
yt as h,
|
|
1065
|
-
dt as i,
|
|
1066
|
-
ue as j,
|
|
1067
|
-
Be as k,
|
|
1068
|
-
_e as l,
|
|
1069
|
-
Ne as m,
|
|
1070
|
-
Tt as n,
|
|
1071
|
-
Vt as o,
|
|
1072
|
-
zt as p,
|
|
1073
|
-
Le as q,
|
|
1074
|
-
ut as r,
|
|
1075
|
-
pt as s,
|
|
1076
|
-
Pt as t,
|
|
1077
|
-
At as u,
|
|
1078
|
-
bt as v,
|
|
1079
|
-
He as w,
|
|
1080
|
-
$e as x,
|
|
1081
|
-
de as y,
|
|
1082
|
-
ze as z
|
|
1083
|
-
};
|
|
1084
|
-
//# sourceMappingURL=ZudokuContext-cr-pTRY1.js.map
|