zudoku 0.0.0-e4d0ea8 → 0.0.0-e5be921
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/client.d.ts +7 -0
- package/dist/app/demo.js +0 -2
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +1 -0
- package/dist/app/entry.client.js +27 -0
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +1 -0
- package/dist/app/entry.server.js +7 -6
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/main.d.ts +1 -1
- package/dist/app/main.js +7 -8
- 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 +0 -2
- package/dist/app/standalone.js.map +1 -1
- package/dist/app/tailwind.d.ts +2 -1
- package/dist/app/tailwind.js +64 -52
- package/dist/app/tailwind.js.map +1 -1
- package/dist/cli/cli.js +1 -4
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/common/logger.js +9 -0
- package/dist/cli/common/logger.js.map +1 -1
- package/dist/cli/common/outdated.js +2 -1
- package/dist/cli/common/outdated.js.map +1 -1
- package/dist/codegen.d.ts +3 -0
- package/dist/codegen.js +45 -0
- package/dist/codegen.js.map +1 -0
- package/dist/config/common.d.ts +8 -0
- package/dist/config/common.js +2 -0
- package/dist/config/common.js.map +1 -0
- package/dist/config/config.d.ts +3 -2
- package/dist/config/loader.d.ts +20 -0
- package/dist/config/loader.js +154 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/validators/InputSidebarSchema.d.ts +33 -17
- package/dist/config/validators/InputSidebarSchema.js +7 -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 +77 -37
- package/dist/config/validators/SidebarSchema.js.map +1 -1
- package/dist/config/validators/common.d.ts +4911 -0
- package/dist/config/validators/common.js +276 -0
- package/dist/config/validators/common.js.map +1 -0
- 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 +769 -415
- package/dist/config/validators/validate.js +12 -214
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +4 -2
- package/dist/lib/authentication/AuthenticationPlugin.js +3 -0
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +3 -3
- package/dist/lib/authentication/components/CallbackHandler.js +21 -31
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/hook.d.ts +5 -4
- package/dist/lib/authentication/hook.js +1 -3
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.js +12 -11
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +0 -1
- package/dist/lib/authentication/providers/openid.js +17 -27
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/state.d.ts +25 -4
- package/dist/lib/authentication/state.js +28 -3
- 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/Bootstrap.d.ts +3 -1
- package/dist/lib/components/Bootstrap.js +10 -4
- package/dist/lib/components/Bootstrap.js.map +1 -1
- 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/Header.js +17 -10
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +4 -4
- package/dist/lib/components/Heading.js +1 -1
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/Layout.js +14 -5
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Markdown.js +1 -1
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +8 -6
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- 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 +3 -3
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/SlotletProvider.d.ts +7 -2
- package/dist/lib/components/SlotletProvider.js +3 -5
- package/dist/lib/components/SlotletProvider.js.map +1 -1
- package/dist/lib/components/SyntaxHighlight.js +19 -16
- package/dist/lib/components/SyntaxHighlight.js.map +1 -1
- package/dist/lib/components/ThemeSwitch.d.ts +1 -0
- package/dist/lib/components/ThemeSwitch.js +13 -0
- package/dist/lib/components/ThemeSwitch.js.map +1 -0
- package/dist/lib/components/TopNavigation.d.ts +5 -0
- package/dist/lib/components/TopNavigation.js +22 -8
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/{DevPortal.d.ts → Zudoku.d.ts} +3 -3
- package/dist/lib/components/{DevPortal.js → Zudoku.js} +13 -14
- package/dist/lib/components/Zudoku.js.map +1 -0
- package/dist/lib/components/context/ZudokuContext.d.ts +7 -6
- package/dist/lib/components/context/ZudokuContext.js +8 -13
- 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.map +1 -1
- package/dist/lib/components/index.d.ts +30 -13
- package/dist/lib/components/index.js +11 -5
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/Sidebar.d.ts +3 -1
- package/dist/lib/components/navigation/Sidebar.js +2 -2
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
- package/dist/lib/components/navigation/SidebarCategory.js +18 -8
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +2 -4
- package/dist/lib/components/navigation/SidebarItem.js +11 -9
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/components/navigation/utils.js +2 -2
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/{DevPortalContext.d.ts → ZudokuContext.d.ts} +4 -8
- package/dist/lib/core/{DevPortalContext.js → ZudokuContext.js} +2 -7
- package/dist/lib/core/ZudokuContext.js.map +1 -0
- package/dist/lib/core/plugins.d.ts +18 -12
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.d.ts +1 -1
- package/dist/lib/errors/ErrorAlert.js +8 -3
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +8 -5
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.d.ts +2 -2
- package/dist/lib/oas/parser/upgrade/index.js +2 -17
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.d.ts +6 -0
- package/dist/lib/plugins/api-catalog/Catalog.js +29 -0
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
- package/dist/lib/plugins/api-catalog/index.d.ts +23 -0
- package/dist/lib/plugins/api-catalog/index.js +15 -0
- package/dist/lib/plugins/api-catalog/index.js.map +1 -0
- package/dist/lib/plugins/api-keys/CreateApiKey.js +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +9 -9
- package/dist/lib/plugins/api-keys/index.js +3 -0
- 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 +9 -7
- package/dist/lib/plugins/custom-pages/index.js +3 -4
- package/dist/lib/plugins/custom-pages/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +9 -1
- package/dist/lib/plugins/markdown/MdxPage.js +15 -2
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +4 -3
- package/dist/lib/plugins/markdown/index.js +1 -1
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/markdown/resolver.js.map +1 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js +24 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
- package/dist/lib/plugins/openapi/ColorizedParam.js +13 -9
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +5 -9
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.d.ts +2 -2
- package/dist/lib/plugins/openapi/OperationList.js +67 -23
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +6 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +7 -3
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +9 -2
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/Route.d.ts +4 -4
- package/dist/lib/plugins/openapi/Route.js +2 -4
- package/dist/lib/plugins/openapi/Route.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +35 -33
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js +114 -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 +1 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +5 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +15 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
- package/dist/lib/plugins/openapi/client/worker.d.ts +4 -1
- package/dist/lib/plugins/openapi/client/worker.js +23 -14
- package/dist/lib/plugins/openapi/client/worker.js.map +1 -1
- 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 +5 -51
- package/dist/lib/plugins/openapi/graphql/gql.js +5 -3
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +34 -8
- package/dist/lib/plugins/openapi/graphql/graphql.js +195 -662
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +2 -2
- package/dist/lib/plugins/openapi/index.js +40 -53
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +2 -1
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +6 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +14 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +125 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.d.ts +11 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.js +33 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +104 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/traverse.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/traverse.js +2 -0
- package/dist/lib/plugins/openapi/post-processors/traverse.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.js +2 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +0 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +25 -36
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi-worker.d.ts +1 -1
- package/dist/lib/plugins/openapi-worker.js +7 -1
- package/dist/lib/plugins/openapi-worker.js.map +1 -1
- package/dist/lib/plugins/redirect/index.d.ts +4 -7
- package/dist/lib/plugins/redirect/index.js +1 -1
- 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 +27 -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/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 +21 -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 +2 -3
- package/dist/lib/ui/Button.js +1 -1
- package/dist/lib/ui/Button.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/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 +80 -0
- package/dist/lib/ui/Command.js +31 -0
- package/dist/lib/ui/Command.js.map +1 -0
- package/dist/lib/{components → ui}/Dialog.js +2 -2
- package/dist/lib/ui/Dialog.js.map +1 -0
- 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/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.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/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/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/util/MdxComponents.d.ts +3 -4
- package/dist/lib/util/MdxComponents.js.map +1 -1
- 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/traverse.d.ts +2 -0
- package/dist/lib/util/traverse.js +18 -0
- package/dist/lib/util/traverse.js.map +1 -0
- package/dist/lib/util/useExposedProps.d.ts +2 -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/useOnScreen.d.ts +4 -0
- package/dist/lib/util/useOnScreen.js +19 -0
- package/dist/lib/util/useOnScreen.js.map +1 -0
- package/dist/vite/build.js +19 -3
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +6 -10
- package/dist/vite/config.js +71 -68
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +7 -5
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/dev-server.js +13 -4
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/html.js +0 -2
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/output.d.ts +101 -0
- package/dist/vite/output.js +62 -0
- package/dist/vite/output.js.map +1 -0
- package/dist/vite/plugin-api.js +67 -20
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-component.js +17 -11
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.d.ts +1 -2
- package/dist/vite/plugin-config-reload.js +0 -2
- 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 +22 -3
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-docs.js +27 -21
- 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 +27 -24
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +0 -6
- package/dist/vite/plugin-mdx.js +78 -6
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-search.d.ts +3 -0
- package/dist/vite/plugin-search.js +26 -0
- package/dist/vite/plugin-search.js.map +1 -0
- package/dist/vite/plugin-sidebar.js +4 -6
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/{plugin-custom-css.d.ts → plugin-theme-css.d.ts} +2 -2
- package/dist/vite/{plugin-custom-css.js → plugin-theme-css.js} +10 -3
- package/dist/vite/plugin-theme-css.js.map +1 -0
- package/dist/vite/plugin.d.ts +1 -2
- package/dist/vite/plugin.js +6 -6
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender.d.ts +2 -1
- package/dist/vite/prerender.js +4 -3
- package/dist/vite/prerender.js.map +1 -1
- 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/sitemap.d.ts +1 -1
- package/dist/zuplo/env.d.ts +6 -0
- package/dist/zuplo/env.js +9 -0
- package/dist/zuplo/env.js.map +1 -0
- package/dist/zuplo/with-zuplo.d.ts +3 -0
- package/dist/zuplo/with-zuplo.js +28 -0
- package/dist/zuplo/with-zuplo.js.map +1 -0
- package/lib/AnchorLink-BR0MvI7n.js +35 -0
- package/lib/AnchorLink-BR0MvI7n.js.map +1 -0
- package/lib/AuthenticationPlugin-D0Em0SwR.js +59 -0
- package/lib/{AuthenticationPlugin-Cnqy9csQ.js.map → AuthenticationPlugin-D0Em0SwR.js.map} +1 -1
- package/lib/Button-jK0EsymC.js +48 -0
- package/lib/Button-jK0EsymC.js.map +1 -0
- package/lib/{CategoryHeading-C7VfgpFZ.js → CategoryHeading-Bb9dqxD3.js} +4 -4
- package/lib/{CategoryHeading-C7VfgpFZ.js.map → CategoryHeading-Bb9dqxD3.js.map} +1 -1
- package/lib/ClientOnly-E7hGysn1.js +11 -0
- package/lib/ClientOnly-E7hGysn1.js.map +1 -0
- package/lib/Dialog-k70Qfukb.js +67 -0
- package/lib/Dialog-k70Qfukb.js.map +1 -0
- package/lib/Markdown-CRsmPPfY.js +15180 -0
- package/lib/Markdown-CRsmPPfY.js.map +1 -0
- package/lib/MdxPage-Wp8QU0-q.js +188 -0
- package/lib/MdxPage-Wp8QU0-q.js.map +1 -0
- package/lib/OperationList-u8xHU9-b.js +4706 -0
- package/lib/OperationList-u8xHU9-b.js.map +1 -0
- package/lib/Route-DlG_HTMu.js +11 -0
- package/lib/Route-DlG_HTMu.js.map +1 -0
- package/lib/Select-O9ZM3ZgX.js +223 -0
- package/lib/Select-O9ZM3ZgX.js.map +1 -0
- package/lib/SidebarBadge-DxFJcJ6V.js +51 -0
- package/lib/SidebarBadge-DxFJcJ6V.js.map +1 -0
- package/lib/SlotletProvider-BgvYIPQe.js +252 -0
- package/lib/SlotletProvider-BgvYIPQe.js.map +1 -0
- package/lib/SyntaxHighlight-C31iouiO.js +2981 -0
- package/lib/SyntaxHighlight-C31iouiO.js.map +1 -0
- package/lib/_commonjsHelpers-BkfeUUK-.js +29 -0
- package/lib/_commonjsHelpers-BkfeUUK-.js.map +1 -0
- package/lib/assets/{worker-DaFlmuyf.js → worker-C_2va8B8.js} +2591 -2502
- package/lib/assets/worker-C_2va8B8.js.map +1 -0
- package/lib/cn-BmFQLtkS.js +2279 -0
- package/lib/cn-BmFQLtkS.js.map +1 -0
- package/lib/context-D1nXWxm7.js +22 -0
- package/lib/context-D1nXWxm7.js.map +1 -0
- package/lib/createServer-BCAHdrpE.js +15302 -0
- package/lib/createServer-BCAHdrpE.js.map +1 -0
- package/lib/hook-hEqe7fPB.js +227 -0
- package/lib/hook-hEqe7fPB.js.map +1 -0
- package/lib/index-Bn6Lc9tq.js +9 -0
- package/lib/{index-DJqnphbT.js.map → index-Bn6Lc9tq.js.map} +1 -1
- package/lib/index-BuAyrJe3.js +46 -0
- package/lib/index-BuAyrJe3.js.map +1 -0
- package/lib/index-CmdLGbbk.js +1279 -0
- package/lib/index-CmdLGbbk.js.map +1 -0
- package/lib/index-Czzd9rjU.js +899 -0
- package/lib/index-Czzd9rjU.js.map +1 -0
- package/lib/{index-D06ATMgg.js → index-LNp6rxyU.js} +2 -2
- package/lib/{index-D06ATMgg.js.map → index-LNp6rxyU.js.map} +1 -1
- package/lib/index-Yn8c3UWE.js +921 -0
- package/lib/index-Yn8c3UWE.js.map +1 -0
- package/lib/{AnchorLink-DovtSBJk.js → index.esm-Bm8pj-bc.js} +223 -253
- package/lib/index.esm-Bm8pj-bc.js.map +1 -0
- package/lib/index.esm-C5mr_sKO.js +1193 -0
- package/lib/index.esm-C5mr_sKO.js.map +1 -0
- package/lib/invariant-Caa8-XvF.js +26 -0
- package/lib/invariant-Caa8-XvF.js.map +1 -0
- package/lib/object_hash-CvlLgU-M.js +785 -0
- package/lib/object_hash-CvlLgU-M.js.map +1 -0
- package/lib/post-processors/removeExtensions.js +11 -0
- package/lib/post-processors/removeExtensions.js.map +1 -0
- package/lib/post-processors/removePaths.js +28 -0
- package/lib/post-processors/removePaths.js.map +1 -0
- package/lib/post-processors/traverse.js +12 -0
- package/lib/post-processors/traverse.js.map +1 -0
- package/lib/{router-Oe6YmY6B.js → router-lfyopgBI.js} +23 -23
- package/lib/{router-Oe6YmY6B.js.map → router-lfyopgBI.js.map} +1 -1
- package/lib/state-tsXBLONe.js +203 -0
- package/lib/{state-CsuHT8ZO.js.map → state-tsXBLONe.js.map} +1 -1
- 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 +27 -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 +49 -0
- package/lib/ui/Button.js.map +1 -0
- package/lib/ui/Callout.js +77 -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 +1410 -0
- package/lib/ui/Carousel.js.map +1 -0
- package/lib/ui/Checkbox.js +28 -0
- package/lib/ui/Checkbox.js.map +1 -0
- package/lib/ui/Collapsible.js +8 -0
- package/lib/ui/Collapsible.js.map +1 -0
- package/lib/ui/Command.js +550 -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 +1153 -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/Switch.js +28 -0
- package/lib/ui/Switch.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/useExposedProps-CTPtylCV.js +10 -0
- package/lib/useExposedProps-CTPtylCV.js.map +1 -0
- package/lib/{ZudokuContext-DSipF8sq.js → utils-DcpDOncX.js} +244 -248
- package/lib/utils-DcpDOncX.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +24 -18
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +506 -521
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +1214 -3002
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +10 -16250
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +121 -0
- package/lib/zudoku.plugin-api-catalog.js.map +1 -0
- package/lib/zudoku.plugin-api-keys.js +72 -77
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +17 -8
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +15 -14
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +6 -10
- 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 +44 -27
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/package.json +72 -17
- package/src/app/demo.tsx +0 -3
- package/src/app/entry.client.tsx +29 -0
- package/src/app/entry.server.tsx +60 -53
- package/src/app/main.css +1 -2
- package/src/app/main.tsx +12 -10
- package/src/app/sentry.ts +24 -0
- package/src/app/standalone.tsx +0 -3
- package/src/app/tailwind.ts +67 -52
- package/src/lib/authentication/AuthenticationPlugin.tsx +4 -1
- package/src/lib/authentication/authentication.ts +3 -3
- package/src/lib/authentication/components/CallbackHandler.tsx +20 -51
- package/src/lib/authentication/hook.ts +1 -3
- package/src/lib/authentication/providers/auth0.tsx +17 -11
- package/src/lib/authentication/providers/openid.tsx +18 -31
- package/src/lib/authentication/state.ts +50 -9
- package/{LICENSE.md → src/lib/authentication/use-broadcast/LICENSE.md} +2 -2
- package/src/lib/authentication/use-broadcast/shared.ts +372 -0
- package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
- package/src/lib/components/Bootstrap.tsx +36 -14
- package/src/lib/components/ClientOnly.tsx +6 -3
- package/src/lib/components/DeveloperHint.tsx +6 -1
- package/src/lib/components/Header.tsx +79 -44
- package/src/lib/components/Heading.tsx +13 -13
- package/src/lib/components/Layout.tsx +54 -37
- package/src/lib/components/Markdown.tsx +1 -1
- package/src/lib/components/MobileTopNavigation.tsx +30 -27
- package/src/lib/components/ReactMarkdown.license.txt +21 -0
- package/src/lib/components/ReactMarkdown.tsx +264 -0
- package/src/lib/components/Search.tsx +4 -4
- package/src/lib/components/SlotletProvider.tsx +16 -7
- package/src/lib/components/SyntaxHighlight.tsx +85 -50
- package/src/lib/components/ThemeSwitch.tsx +26 -0
- package/src/lib/components/TopNavigation.tsx +40 -19
- package/src/lib/components/Zudoku.tsx +108 -0
- package/src/lib/components/context/ZudokuContext.ts +11 -16
- package/src/lib/components/context/ZudokuProvider.tsx +2 -2
- package/src/lib/components/index.ts +14 -6
- package/src/lib/components/navigation/Sidebar.tsx +20 -10
- package/src/lib/components/navigation/SidebarCategory.tsx +38 -29
- package/src/lib/components/navigation/SidebarItem.tsx +22 -26
- package/src/lib/components/navigation/SidebarWrapper.tsx +1 -1
- package/src/lib/components/navigation/utils.ts +2 -2
- package/src/lib/core/{DevPortalContext.ts → ZudokuContext.ts} +4 -12
- package/src/lib/core/plugins.ts +20 -16
- package/src/lib/errors/ErrorAlert.tsx +20 -6
- package/src/lib/oas/graphql/index.ts +8 -5
- package/src/lib/oas/parser/upgrade/index.ts +3 -24
- package/src/lib/plugins/api-catalog/Catalog.tsx +124 -0
- package/src/lib/plugins/api-catalog/index.tsx +50 -0
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +2 -2
- package/src/lib/plugins/api-keys/index.tsx +12 -9
- package/src/lib/plugins/custom-pages/CustomPage.tsx +18 -0
- package/src/lib/plugins/custom-pages/index.tsx +13 -11
- package/src/lib/plugins/markdown/MdxPage.tsx +37 -9
- package/src/lib/plugins/markdown/index.tsx +5 -3
- package/src/lib/plugins/markdown/resolver.ts +2 -4
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +80 -0
- package/src/lib/plugins/openapi/ColorizedParam.tsx +23 -14
- package/src/lib/plugins/openapi/Endpoint.tsx +5 -10
- package/src/lib/plugins/openapi/OperationList.tsx +78 -37
- package/src/lib/plugins/openapi/ParameterListItem.tsx +37 -31
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +18 -13
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +17 -12
- package/src/lib/plugins/openapi/Route.tsx +11 -12
- package/src/lib/plugins/openapi/Sidecar.tsx +73 -59
- package/src/lib/plugins/openapi/client/GraphQLClient.tsx +157 -0
- package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
- package/src/lib/plugins/openapi/client/createServer.ts +2 -0
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +21 -0
- package/src/lib/plugins/openapi/client/worker.ts +38 -24
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
- package/src/lib/plugins/openapi/graphql/gql.ts +12 -29
- package/src/lib/plugins/openapi/graphql/graphql.ts +236 -665
- package/src/lib/plugins/openapi/index.tsx +42 -67
- package/src/lib/plugins/openapi/interfaces.ts +1 -1
- package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -0
- package/src/lib/plugins/openapi/playground/Playground.tsx +4 -3
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
- package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +144 -0
- package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +24 -0
- package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +126 -0
- package/src/lib/plugins/openapi/post-processors/removePaths.ts +55 -0
- package/src/lib/plugins/openapi/post-processors/traverse.ts +1 -0
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +5 -2
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +28 -42
- package/src/lib/plugins/openapi-worker.ts +11 -1
- package/src/lib/plugins/redirect/index.tsx +5 -9
- package/src/lib/plugins/search-inkeep/index.tsx +61 -25
- package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
- package/src/lib/ui/Accordion.tsx +56 -0
- package/src/lib/ui/ActionButton.tsx +28 -0
- package/src/lib/ui/{Note.tsx → Alert.tsx} +11 -10
- package/src/lib/ui/AlertDialog.tsx +139 -0
- package/src/lib/ui/AspectRatio.tsx +5 -0
- package/src/lib/ui/Badge.tsx +36 -0
- package/src/lib/ui/Breadcrumb.tsx +115 -0
- package/src/lib/ui/Button.tsx +1 -1
- package/src/lib/ui/Carousel.tsx +260 -0
- package/src/lib/ui/Checkbox.tsx +28 -0
- package/src/lib/ui/Collapsible.tsx +9 -0
- package/src/lib/ui/Command.tsx +151 -0
- package/src/lib/{components → ui}/Dialog.tsx +4 -3
- package/src/lib/ui/Form.tsx +177 -0
- package/src/lib/ui/HoverCard.tsx +27 -0
- 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/Skeleton.tsx +15 -0
- package/src/lib/ui/Slider.tsx +26 -0
- package/src/lib/ui/Switch.tsx +27 -0
- 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/util/MdxComponents.tsx +2 -6
- package/src/lib/util/invariant.ts +15 -3
- package/src/lib/util/traverse.ts +25 -0
- package/src/lib/util/useExposedProps.tsx +16 -0
- package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
- package/src/lib/util/useOnScreen.ts +32 -0
- 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.js.map +0 -1
- package/dist/lib/components/Dialog.js.map +0 -1
- package/dist/lib/components/Select.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.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/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.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/lib/AnchorLink-DovtSBJk.js.map +0 -1
- package/lib/AuthenticationPlugin-Cnqy9csQ.js +0 -55
- package/lib/DeveloperHint-CNyuFROc.js +0 -16
- package/lib/DeveloperHint-CNyuFROc.js.map +0 -1
- package/lib/ErrorPage-CUz-Zzmx.js +0 -16
- package/lib/ErrorPage-CUz-Zzmx.js.map +0 -1
- package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
- package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
- package/lib/Input-x-t53FyR.js +0 -2229
- package/lib/Input-x-t53FyR.js.map +0 -1
- package/lib/Markdown-C-0TaxoY.js +0 -20441
- package/lib/Markdown-C-0TaxoY.js.map +0 -1
- package/lib/MdxPage-C5I9c7R1.js +0 -173
- package/lib/MdxPage-C5I9c7R1.js.map +0 -1
- package/lib/OperationList-qsBOguHS.js +0 -601
- package/lib/OperationList-qsBOguHS.js.map +0 -1
- package/lib/Route-DlKvXPAO.js +0 -13
- package/lib/Route-DlKvXPAO.js.map +0 -1
- package/lib/SidebarBadge-DaA0-bFW.js +0 -503
- package/lib/SidebarBadge-DaA0-bFW.js.map +0 -1
- package/lib/SlotletProvider-BGEs7yyu.js +0 -240
- package/lib/SlotletProvider-BGEs7yyu.js.map +0 -1
- package/lib/ZudokuContext-DSipF8sq.js.map +0 -1
- package/lib/assets/worker-DaFlmuyf.js.map +0 -1
- package/lib/index-BIl-R3aH.js +0 -5952
- package/lib/index-BIl-R3aH.js.map +0 -1
- package/lib/index-CKmSo0py.js +0 -124
- package/lib/index-CKmSo0py.js.map +0 -1
- package/lib/index-DJqnphbT.js +0 -35
- package/lib/index-Dssw7Gff.js +0 -2867
- package/lib/index-Dssw7Gff.js.map +0 -1
- package/lib/index-SrtqdZ3j.js +0 -1781
- package/lib/index-SrtqdZ3j.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-php.min-o7FpoMP_.js +0 -11
- package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
- package/lib/state-CsuHT8ZO.js +0 -183
- package/lib/urql-core-KJnLL26g.js +0 -1455
- package/lib/urql-core-KJnLL26g.js.map +0 -1
- package/src/lib/components/DevPortal.tsx +0 -111
- package/src/lib/components/context/ThemeContext.tsx +0 -8
- package/src/lib/components/context/ThemeProvider.tsx +0 -27
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -51
- package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -75
- package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
- package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
- package/src/lib/themeToggle.ts +0 -7
- package/src/lib/util/createWaitForNotify.ts +0 -18
- /package/dist/lib/{components → ui}/Dialog.d.ts +0 -0
- /package/dist/lib/{components → ui}/Select.d.ts +0 -0
- /package/dist/lib/{components → ui}/Select.js +0 -0
- /package/src/lib/{components → ui}/Select.tsx +0 -0
|
@@ -3,12 +3,12 @@ var _e = (t) => {
|
|
|
3
3
|
};
|
|
4
4
|
var be = (t, e, s) => e.has(t) || _e("Cannot " + s);
|
|
5
5
|
var i = (t, e, s) => (be(t, e, "read from private field"), s ? s.call(t) : e.get(t)), y = (t, e, s) => e.has(t) ? _e("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), c = (t, e, s, r) => (be(t, e, "write to private field"), r ? r.call(t, s) : e.set(t, s), s), b = (t, e, s) => (be(t, e, "access private method"), s);
|
|
6
|
-
import * as
|
|
7
|
-
import { createContext as
|
|
8
|
-
import { j as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
var
|
|
6
|
+
import * as T from "react";
|
|
7
|
+
import { createContext as ft, useContext as yt } from "react";
|
|
8
|
+
import { j as pt } from "./jsx-runtime-B6kdoens.js";
|
|
9
|
+
import { u as pe } from "./index-Czzd9rjU.js";
|
|
10
|
+
import { m as vt } from "./router-lfyopgBI.js";
|
|
11
|
+
var Qe = class {
|
|
12
12
|
constructor() {
|
|
13
13
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
14
14
|
}
|
|
@@ -27,22 +27,22 @@ var ke = class {
|
|
|
27
27
|
}, V = typeof window > "u" || "Deno" in globalThis;
|
|
28
28
|
function ge() {
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Wt(t, e) {
|
|
31
31
|
return typeof t == "function" ? t(e) : t;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Re(t) {
|
|
34
34
|
return typeof t == "number" && t >= 0 && t !== 1 / 0;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function et(t, e) {
|
|
37
37
|
return Math.max(t + (e || 0) - Date.now(), 0);
|
|
38
38
|
}
|
|
39
39
|
function fe(t, e) {
|
|
40
40
|
return typeof t == "function" ? t(e) : t;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function x(t, e) {
|
|
43
43
|
return typeof t == "function" ? t(e) : t;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Jt(t, e) {
|
|
46
46
|
const {
|
|
47
47
|
type: s = "all",
|
|
48
48
|
exact: r,
|
|
@@ -53,9 +53,9 @@ function Zt(t, e) {
|
|
|
53
53
|
} = t;
|
|
54
54
|
if (a) {
|
|
55
55
|
if (r) {
|
|
56
|
-
if (e.queryHash !==
|
|
56
|
+
if (e.queryHash !== bt(a, e.options))
|
|
57
57
|
return !1;
|
|
58
|
-
} else if (!
|
|
58
|
+
} else if (!qe(e.queryKey, a))
|
|
59
59
|
return !1;
|
|
60
60
|
}
|
|
61
61
|
if (s !== "all") {
|
|
@@ -73,12 +73,12 @@ function Xt(t, e) {
|
|
|
73
73
|
if (s) {
|
|
74
74
|
if (Se(e.options.mutationKey) !== Se(u))
|
|
75
75
|
return !1;
|
|
76
|
-
} else if (!
|
|
76
|
+
} else if (!qe(e.options.mutationKey, u))
|
|
77
77
|
return !1;
|
|
78
78
|
}
|
|
79
79
|
return !(r && e.state.status !== r || n && !n(e));
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function bt(t, e) {
|
|
82
82
|
return ((e == null ? void 0 : e.queryKeyHashFn) || Se)(t);
|
|
83
83
|
}
|
|
84
84
|
function Se(t) {
|
|
@@ -87,19 +87,19 @@ function Se(t) {
|
|
|
87
87
|
(e, s) => Ee(s) ? Object.keys(s).sort().reduce((r, n) => (r[n] = s[n], r), {}) : s
|
|
88
88
|
);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
91
|
-
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? !Object.keys(e).some((s) => !
|
|
90
|
+
function qe(t, e) {
|
|
91
|
+
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? !Object.keys(e).some((s) => !qe(t[s], e[s])) : !1;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function Ce(t, e) {
|
|
94
94
|
if (t === e)
|
|
95
95
|
return t;
|
|
96
96
|
const s = He(t) && He(e);
|
|
97
97
|
if (s || Ee(t) && Ee(e)) {
|
|
98
98
|
const r = s ? t : Object.keys(t), n = r.length, u = s ? e : Object.keys(e), a = u.length, o = s ? [] : {};
|
|
99
99
|
let l = 0;
|
|
100
|
-
for (let
|
|
101
|
-
const v = s ?
|
|
102
|
-
(!s && r.includes(v) || s) && t[v] === void 0 && e[v] === void 0 ? (o[v] = void 0, l++) : (o[v] =
|
|
100
|
+
for (let R = 0; R < a; R++) {
|
|
101
|
+
const v = s ? R : u[R];
|
|
102
|
+
(!s && r.includes(v) || s) && t[v] === void 0 && e[v] === void 0 ? (o[v] = void 0, l++) : (o[v] = Ce(t[v], e[v]), o[v] === t[v] && t[v] !== void 0 && l++);
|
|
103
103
|
}
|
|
104
104
|
return n === a && l === n ? t : o;
|
|
105
105
|
}
|
|
@@ -128,7 +128,7 @@ function Ee(t) {
|
|
|
128
128
|
function Be(t) {
|
|
129
129
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function mt(t) {
|
|
132
132
|
return new Promise((e) => {
|
|
133
133
|
setTimeout(e, t);
|
|
134
134
|
});
|
|
@@ -139,13 +139,13 @@ function Oe(t, e, s) {
|
|
|
139
139
|
if (s.structuralSharing !== !1) {
|
|
140
140
|
if (process.env.NODE_ENV !== "production")
|
|
141
141
|
try {
|
|
142
|
-
return
|
|
142
|
+
return Ce(t, e);
|
|
143
143
|
} catch (r) {
|
|
144
144
|
console.error(
|
|
145
145
|
`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${s.queryHash}]: ${r}`
|
|
146
146
|
);
|
|
147
147
|
}
|
|
148
|
-
return
|
|
148
|
+
return Ce(t, e);
|
|
149
149
|
}
|
|
150
150
|
return e;
|
|
151
151
|
}
|
|
@@ -158,18 +158,18 @@ function es(t, e, s = 0) {
|
|
|
158
158
|
return s && r.length > s ? r.slice(0, -1) : r;
|
|
159
159
|
}
|
|
160
160
|
var ye = Symbol();
|
|
161
|
-
function
|
|
161
|
+
function gt(t, e) {
|
|
162
162
|
return process.env.NODE_ENV !== "production" && t.queryFn === ye && console.error(
|
|
163
163
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
|
|
164
164
|
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === ye ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
|
|
165
165
|
}
|
|
166
|
-
var K,
|
|
166
|
+
var K, q, J, Ze, Rt = (Ze = class extends Qe {
|
|
167
167
|
constructor() {
|
|
168
168
|
super();
|
|
169
169
|
y(this, K);
|
|
170
|
-
y(this,
|
|
171
|
-
y(this,
|
|
172
|
-
c(this,
|
|
170
|
+
y(this, q);
|
|
171
|
+
y(this, J);
|
|
172
|
+
c(this, J, (e) => {
|
|
173
173
|
if (!V && window.addEventListener) {
|
|
174
174
|
const s = () => e();
|
|
175
175
|
return window.addEventListener("visibilitychange", s, !1), () => {
|
|
@@ -179,15 +179,15 @@ var K, Q, Z, $e, gt = ($e = class extends ke {
|
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
181
|
onSubscribe() {
|
|
182
|
-
i(this,
|
|
182
|
+
i(this, q) || this.setEventListener(i(this, J));
|
|
183
183
|
}
|
|
184
184
|
onUnsubscribe() {
|
|
185
185
|
var e;
|
|
186
|
-
this.hasListeners() || ((e = i(this,
|
|
186
|
+
this.hasListeners() || ((e = i(this, q)) == null || e.call(this), c(this, q, void 0));
|
|
187
187
|
}
|
|
188
188
|
setEventListener(e) {
|
|
189
189
|
var s;
|
|
190
|
-
c(this,
|
|
190
|
+
c(this, J, e), (s = i(this, q)) == null || s.call(this), c(this, q, e((r) => {
|
|
191
191
|
typeof r == "boolean" ? this.setFocused(r) : this.onFocus();
|
|
192
192
|
}));
|
|
193
193
|
}
|
|
@@ -204,7 +204,7 @@ var K, Q, Z, $e, gt = ($e = class extends ke {
|
|
|
204
204
|
var e;
|
|
205
205
|
return typeof i(this, K) == "boolean" ? i(this, K) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
|
|
206
206
|
}
|
|
207
|
-
}, K = new WeakMap(),
|
|
207
|
+
}, K = new WeakMap(), q = new WeakMap(), J = new WeakMap(), Ze), tt = new Rt(), X, A, Y, We, St = (We = class extends Qe {
|
|
208
208
|
constructor() {
|
|
209
209
|
super();
|
|
210
210
|
y(this, X, !0);
|
|
@@ -238,7 +238,7 @@ var K, Q, Z, $e, gt = ($e = class extends ke {
|
|
|
238
238
|
isOnline() {
|
|
239
239
|
return i(this, X);
|
|
240
240
|
}
|
|
241
|
-
}, X = new WeakMap(), A = new WeakMap(), Y = new WeakMap(), We),
|
|
241
|
+
}, X = new WeakMap(), A = new WeakMap(), Y = new WeakMap(), We), st = new St();
|
|
242
242
|
function Fe() {
|
|
243
243
|
let t, e;
|
|
244
244
|
const s = new Promise((n, u) => {
|
|
@@ -261,30 +261,30 @@ function Fe() {
|
|
|
261
261
|
}), e(n);
|
|
262
262
|
}, s;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function Ct(t) {
|
|
265
265
|
return Math.min(1e3 * 2 ** t, 3e4);
|
|
266
266
|
}
|
|
267
|
-
function
|
|
268
|
-
return (t ?? "online") === "online" ?
|
|
267
|
+
function rt(t) {
|
|
268
|
+
return (t ?? "online") === "online" ? st.isOnline() : !0;
|
|
269
269
|
}
|
|
270
|
-
var
|
|
270
|
+
var it = class extends Error {
|
|
271
271
|
constructor(t) {
|
|
272
272
|
super("CancelledError"), this.revert = t == null ? void 0 : t.revert, this.silent = t == null ? void 0 : t.silent;
|
|
273
273
|
}
|
|
274
274
|
};
|
|
275
275
|
function me(t) {
|
|
276
|
-
return t instanceof
|
|
276
|
+
return t instanceof it;
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function wt(t) {
|
|
279
279
|
let e = !1, s = 0, r = !1, n;
|
|
280
280
|
const u = Fe(), a = (f) => {
|
|
281
281
|
var g;
|
|
282
|
-
r || (m(new
|
|
282
|
+
r || (m(new it(f)), (g = t.abort) == null || g.call(t));
|
|
283
283
|
}, o = () => {
|
|
284
284
|
e = !0;
|
|
285
285
|
}, l = () => {
|
|
286
286
|
e = !1;
|
|
287
|
-
},
|
|
287
|
+
}, R = () => tt.isFocused() && (t.networkMode === "always" || st.isOnline()) && t.canRun(), v = () => rt(t.networkMode) && t.canRun(), h = (f) => {
|
|
288
288
|
var g;
|
|
289
289
|
r || (r = !0, (g = t.onSuccess) == null || g.call(t, f), n == null || n(), u.resolve(f));
|
|
290
290
|
}, m = (f) => {
|
|
@@ -293,7 +293,7 @@ function Rt(t) {
|
|
|
293
293
|
}, S = () => new Promise((f) => {
|
|
294
294
|
var g;
|
|
295
295
|
n = (P) => {
|
|
296
|
-
(r ||
|
|
296
|
+
(r || R()) && f(P);
|
|
297
297
|
}, (g = t.onPause) == null || g.call(t);
|
|
298
298
|
}).then(() => {
|
|
299
299
|
var f;
|
|
@@ -312,12 +312,12 @@ function Rt(t) {
|
|
|
312
312
|
var ve;
|
|
313
313
|
if (r)
|
|
314
314
|
return;
|
|
315
|
-
const U = t.retry ?? (V ? 0 : 3), N = t.retryDelay ??
|
|
315
|
+
const U = t.retry ?? (V ? 0 : 3), N = t.retryDelay ?? Ct, ce = typeof N == "function" ? N(s, P) : N, le = U === !0 || typeof U == "number" && s < U || typeof U == "function" && U(s, P);
|
|
316
316
|
if (e || !le) {
|
|
317
317
|
m(P);
|
|
318
318
|
return;
|
|
319
319
|
}
|
|
320
|
-
s++, (ve = t.onFail) == null || ve.call(t, s, P),
|
|
320
|
+
s++, (ve = t.onFail) == null || ve.call(t, s, P), mt(ce).then(() => R() ? void 0 : S()).then(() => {
|
|
321
321
|
e ? m(P) : w();
|
|
322
322
|
});
|
|
323
323
|
});
|
|
@@ -332,7 +332,7 @@ function Rt(t) {
|
|
|
332
332
|
start: () => (v() ? w() : S().then(w), u)
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function Et() {
|
|
336
336
|
let t = [], e = 0, s = (o) => {
|
|
337
337
|
o();
|
|
338
338
|
}, r = (o) => {
|
|
@@ -391,7 +391,7 @@ function wt() {
|
|
|
391
391
|
}
|
|
392
392
|
};
|
|
393
393
|
}
|
|
394
|
-
var Ae =
|
|
394
|
+
var Ae = Et(), _, Je, Ot = (Je = class {
|
|
395
395
|
constructor() {
|
|
396
396
|
y(this, _);
|
|
397
397
|
}
|
|
@@ -399,7 +399,7 @@ var Ae = wt(), _, Je, Et = (Je = class {
|
|
|
399
399
|
this.clearGcTimeout();
|
|
400
400
|
}
|
|
401
401
|
scheduleGc() {
|
|
402
|
-
this.clearGcTimeout(),
|
|
402
|
+
this.clearGcTimeout(), Re(this.gcTime) && c(this, _, setTimeout(() => {
|
|
403
403
|
this.optionalRemove();
|
|
404
404
|
}, this.gcTime));
|
|
405
405
|
}
|
|
@@ -412,34 +412,34 @@ var Ae = wt(), _, Je, Et = (Je = class {
|
|
|
412
412
|
clearGcTimeout() {
|
|
413
413
|
i(this, _) && (clearTimeout(i(this, _)), c(this, _, void 0));
|
|
414
414
|
}
|
|
415
|
-
}, _ = new WeakMap(), Je), ee, te,
|
|
415
|
+
}, _ = new WeakMap(), Je), ee, te, I, C, oe, H, D, Q, Xe, ts = (Xe = class extends Ot {
|
|
416
416
|
constructor(e) {
|
|
417
417
|
super();
|
|
418
|
-
y(this,
|
|
418
|
+
y(this, D);
|
|
419
419
|
y(this, ee);
|
|
420
420
|
y(this, te);
|
|
421
|
-
y(this,
|
|
422
|
-
y(this,
|
|
421
|
+
y(this, I);
|
|
422
|
+
y(this, C);
|
|
423
423
|
y(this, oe);
|
|
424
424
|
y(this, H);
|
|
425
|
-
c(this, H, !1), c(this, oe, e.defaultOptions), this.setOptions(e.options), this.observers = [], c(this,
|
|
425
|
+
c(this, H, !1), c(this, oe, e.defaultOptions), this.setOptions(e.options), this.observers = [], c(this, I, e.cache), this.queryKey = e.queryKey, this.queryHash = e.queryHash, c(this, ee, Ft(this.options)), this.state = e.state ?? i(this, ee), this.scheduleGc();
|
|
426
426
|
}
|
|
427
427
|
get meta() {
|
|
428
428
|
return this.options.meta;
|
|
429
429
|
}
|
|
430
430
|
get promise() {
|
|
431
431
|
var e;
|
|
432
|
-
return (e = i(this,
|
|
432
|
+
return (e = i(this, C)) == null ? void 0 : e.promise;
|
|
433
433
|
}
|
|
434
434
|
setOptions(e) {
|
|
435
435
|
this.options = { ...i(this, oe), ...e }, this.updateGcTime(this.options.gcTime);
|
|
436
436
|
}
|
|
437
437
|
optionalRemove() {
|
|
438
|
-
!this.observers.length && this.state.fetchStatus === "idle" && i(this,
|
|
438
|
+
!this.observers.length && this.state.fetchStatus === "idle" && i(this, I).remove(this);
|
|
439
439
|
}
|
|
440
440
|
setData(e, s) {
|
|
441
441
|
const r = Oe(this.state.data, e, this.options);
|
|
442
|
-
return b(this,
|
|
442
|
+
return b(this, D, Q).call(this, {
|
|
443
443
|
data: r,
|
|
444
444
|
type: "success",
|
|
445
445
|
dataUpdatedAt: s == null ? void 0 : s.updatedAt,
|
|
@@ -447,12 +447,12 @@ var Ae = wt(), _, Je, Et = (Je = class {
|
|
|
447
447
|
}), r;
|
|
448
448
|
}
|
|
449
449
|
setState(e, s) {
|
|
450
|
-
b(this,
|
|
450
|
+
b(this, D, Q).call(this, { type: "setState", state: e, setStateOptions: s });
|
|
451
451
|
}
|
|
452
452
|
cancel(e) {
|
|
453
453
|
var r, n;
|
|
454
|
-
const s = (r = i(this,
|
|
455
|
-
return (n = i(this,
|
|
454
|
+
const s = (r = i(this, C)) == null ? void 0 : r.promise;
|
|
455
|
+
return (n = i(this, C)) == null || n.cancel(e), s ? s.then(ge).catch(ge) : Promise.resolve();
|
|
456
456
|
}
|
|
457
457
|
destroy() {
|
|
458
458
|
super.destroy(), this.cancel({ silent: !0 });
|
|
@@ -462,7 +462,7 @@ var Ae = wt(), _, Je, Et = (Je = class {
|
|
|
462
462
|
}
|
|
463
463
|
isActive() {
|
|
464
464
|
return this.observers.some(
|
|
465
|
-
(e) =>
|
|
465
|
+
(e) => x(e.options.enabled, this) !== !1
|
|
466
466
|
);
|
|
467
467
|
}
|
|
468
468
|
isDisabled() {
|
|
@@ -474,37 +474,37 @@ var Ae = wt(), _, Je, Et = (Je = class {
|
|
|
474
474
|
) : this.state.data === void 0;
|
|
475
475
|
}
|
|
476
476
|
isStaleByTime(e = 0) {
|
|
477
|
-
return this.state.isInvalidated || this.state.data === void 0 || !
|
|
477
|
+
return this.state.isInvalidated || this.state.data === void 0 || !et(this.state.dataUpdatedAt, e);
|
|
478
478
|
}
|
|
479
479
|
onFocus() {
|
|
480
480
|
var s;
|
|
481
481
|
const e = this.observers.find((r) => r.shouldFetchOnWindowFocus());
|
|
482
|
-
e == null || e.refetch({ cancelRefetch: !1 }), (s = i(this,
|
|
482
|
+
e == null || e.refetch({ cancelRefetch: !1 }), (s = i(this, C)) == null || s.continue();
|
|
483
483
|
}
|
|
484
484
|
onOnline() {
|
|
485
485
|
var s;
|
|
486
486
|
const e = this.observers.find((r) => r.shouldFetchOnReconnect());
|
|
487
|
-
e == null || e.refetch({ cancelRefetch: !1 }), (s = i(this,
|
|
487
|
+
e == null || e.refetch({ cancelRefetch: !1 }), (s = i(this, C)) == null || s.continue();
|
|
488
488
|
}
|
|
489
489
|
addObserver(e) {
|
|
490
|
-
this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), i(this,
|
|
490
|
+
this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), i(this, I).notify({ type: "observerAdded", query: this, observer: e }));
|
|
491
491
|
}
|
|
492
492
|
removeObserver(e) {
|
|
493
|
-
this.observers.includes(e) && (this.observers = this.observers.filter((s) => s !== e), this.observers.length || (i(this,
|
|
493
|
+
this.observers.includes(e) && (this.observers = this.observers.filter((s) => s !== e), this.observers.length || (i(this, C) && (i(this, H) ? i(this, C).cancel({ revert: !0 }) : i(this, C).cancelRetry()), this.scheduleGc()), i(this, I).notify({ type: "observerRemoved", query: this, observer: e }));
|
|
494
494
|
}
|
|
495
495
|
getObserversCount() {
|
|
496
496
|
return this.observers.length;
|
|
497
497
|
}
|
|
498
498
|
invalidate() {
|
|
499
|
-
this.state.isInvalidated || b(this,
|
|
499
|
+
this.state.isInvalidated || b(this, D, Q).call(this, { type: "invalidate" });
|
|
500
500
|
}
|
|
501
501
|
fetch(e, s) {
|
|
502
|
-
var l,
|
|
502
|
+
var l, R, v;
|
|
503
503
|
if (this.state.fetchStatus !== "idle") {
|
|
504
504
|
if (this.state.data !== void 0 && (s != null && s.cancelRefetch))
|
|
505
505
|
this.cancel({ silent: !0 });
|
|
506
|
-
else if (i(this,
|
|
507
|
-
return i(this,
|
|
506
|
+
else if (i(this, C))
|
|
507
|
+
return i(this, C).continueRetry(), i(this, C).promise;
|
|
508
508
|
}
|
|
509
509
|
if (e && this.setOptions(e), !this.options.queryFn) {
|
|
510
510
|
const h = this.observers.find((m) => m.options.queryFn);
|
|
@@ -519,7 +519,7 @@ var Ae = wt(), _, Je, Et = (Je = class {
|
|
|
519
519
|
get: () => (c(this, H, !0), r.signal)
|
|
520
520
|
});
|
|
521
521
|
}, u = () => {
|
|
522
|
-
const h =
|
|
522
|
+
const h = gt(this.options, s), m = {
|
|
523
523
|
queryKey: this.queryKey,
|
|
524
524
|
meta: this.meta
|
|
525
525
|
};
|
|
@@ -538,24 +538,24 @@ var Ae = wt(), _, Je, Et = (Je = class {
|
|
|
538
538
|
n(a), (l = this.options.behavior) == null || l.onFetch(
|
|
539
539
|
a,
|
|
540
540
|
this
|
|
541
|
-
), c(this, te, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((
|
|
541
|
+
), c(this, te, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((R = a.fetchOptions) == null ? void 0 : R.meta)) && b(this, D, Q).call(this, { type: "fetch", meta: (v = a.fetchOptions) == null ? void 0 : v.meta });
|
|
542
542
|
const o = (h) => {
|
|
543
543
|
var m, S, w, f;
|
|
544
|
-
me(h) && h.silent || b(this,
|
|
544
|
+
me(h) && h.silent || b(this, D, Q).call(this, {
|
|
545
545
|
type: "error",
|
|
546
546
|
error: h
|
|
547
|
-
}), me(h) || ((S = (m = i(this,
|
|
547
|
+
}), me(h) || ((S = (m = i(this, I).config).onError) == null || S.call(
|
|
548
548
|
m,
|
|
549
549
|
h,
|
|
550
550
|
this
|
|
551
|
-
), (f = (w = i(this,
|
|
551
|
+
), (f = (w = i(this, I).config).onSettled) == null || f.call(
|
|
552
552
|
w,
|
|
553
553
|
this.state.data,
|
|
554
554
|
h,
|
|
555
555
|
this
|
|
556
556
|
)), this.scheduleGc();
|
|
557
557
|
};
|
|
558
|
-
return c(this,
|
|
558
|
+
return c(this, C, wt({
|
|
559
559
|
initialPromise: s == null ? void 0 : s.initialPromise,
|
|
560
560
|
fn: a.fetchFn,
|
|
561
561
|
abort: r.abort.bind(r),
|
|
@@ -573,7 +573,7 @@ var Ae = wt(), _, Je, Et = (Je = class {
|
|
|
573
573
|
o(g);
|
|
574
574
|
return;
|
|
575
575
|
}
|
|
576
|
-
(S = (m = i(this,
|
|
576
|
+
(S = (m = i(this, I).config).onSuccess) == null || S.call(m, h, this), (f = (w = i(this, I).config).onSettled) == null || f.call(
|
|
577
577
|
w,
|
|
578
578
|
h,
|
|
579
579
|
this.state.error,
|
|
@@ -582,21 +582,21 @@ var Ae = wt(), _, Je, Et = (Je = class {
|
|
|
582
582
|
},
|
|
583
583
|
onError: o,
|
|
584
584
|
onFail: (h, m) => {
|
|
585
|
-
b(this,
|
|
585
|
+
b(this, D, Q).call(this, { type: "failed", failureCount: h, error: m });
|
|
586
586
|
},
|
|
587
587
|
onPause: () => {
|
|
588
|
-
b(this,
|
|
588
|
+
b(this, D, Q).call(this, { type: "pause" });
|
|
589
589
|
},
|
|
590
590
|
onContinue: () => {
|
|
591
|
-
b(this,
|
|
591
|
+
b(this, D, Q).call(this, { type: "continue" });
|
|
592
592
|
},
|
|
593
593
|
retry: a.options.retry,
|
|
594
594
|
retryDelay: a.options.retryDelay,
|
|
595
595
|
networkMode: a.options.networkMode,
|
|
596
596
|
canRun: () => !0
|
|
597
|
-
})), i(this,
|
|
597
|
+
})), i(this, C).start();
|
|
598
598
|
}
|
|
599
|
-
}, ee = new WeakMap(), te = new WeakMap(),
|
|
599
|
+
}, ee = new WeakMap(), te = new WeakMap(), I = new WeakMap(), C = new WeakMap(), oe = new WeakMap(), H = new WeakMap(), D = new WeakSet(), Q = function(e) {
|
|
600
600
|
const s = (r) => {
|
|
601
601
|
switch (e.type) {
|
|
602
602
|
case "failed":
|
|
@@ -618,7 +618,7 @@ var Ae = wt(), _, Je, Et = (Je = class {
|
|
|
618
618
|
case "fetch":
|
|
619
619
|
return {
|
|
620
620
|
...r,
|
|
621
|
-
...
|
|
621
|
+
...nt(r.data, this.options),
|
|
622
622
|
fetchMeta: e.meta ?? null
|
|
623
623
|
};
|
|
624
624
|
case "success":
|
|
@@ -663,21 +663,21 @@ var Ae = wt(), _, Je, Et = (Je = class {
|
|
|
663
663
|
this.state = s(this.state), Ae.batch(() => {
|
|
664
664
|
this.observers.forEach((r) => {
|
|
665
665
|
r.onQueryUpdate();
|
|
666
|
-
}), i(this,
|
|
666
|
+
}), i(this, I).notify({ query: this, type: "updated", action: e });
|
|
667
667
|
});
|
|
668
|
-
},
|
|
669
|
-
function
|
|
668
|
+
}, Xe);
|
|
669
|
+
function nt(t, e) {
|
|
670
670
|
return {
|
|
671
671
|
fetchFailureCount: 0,
|
|
672
672
|
fetchFailureReason: null,
|
|
673
|
-
fetchStatus:
|
|
673
|
+
fetchStatus: rt(e.networkMode) ? "fetching" : "paused",
|
|
674
674
|
...t === void 0 && {
|
|
675
675
|
error: null,
|
|
676
676
|
status: "pending"
|
|
677
677
|
}
|
|
678
678
|
};
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function Ft(t) {
|
|
681
681
|
const e = typeof t.initialData == "function" ? t.initialData() : t.initialData, s = e !== void 0, r = s ? typeof t.initialDataUpdatedAt == "function" ? t.initialDataUpdatedAt() : t.initialDataUpdatedAt : 0;
|
|
682
682
|
return {
|
|
683
683
|
data: e,
|
|
@@ -694,7 +694,7 @@ function Ot(t) {
|
|
|
694
694
|
fetchStatus: "idle"
|
|
695
695
|
};
|
|
696
696
|
}
|
|
697
|
-
var F, d, ue, O, B, se, L,
|
|
697
|
+
var F, d, ue, O, B, se, L, k, he, re, ie, G, z, M, ne, p, ae, Pe, Ie, Te, De, xe, je, ke, ot, Ye, at = (Ye = class extends Qe {
|
|
698
698
|
constructor(e, s) {
|
|
699
699
|
super();
|
|
700
700
|
y(this, p);
|
|
@@ -705,7 +705,7 @@ var F, d, ue, O, B, se, L, x, he, re, ie, G, z, M, ne, p, ae, Pe, De, Ie, Te, qe
|
|
|
705
705
|
y(this, B);
|
|
706
706
|
y(this, se);
|
|
707
707
|
y(this, L);
|
|
708
|
-
y(this,
|
|
708
|
+
y(this, k);
|
|
709
709
|
y(this, he);
|
|
710
710
|
y(this, re);
|
|
711
711
|
// This property keeps track of the last query with defined data.
|
|
@@ -715,7 +715,7 @@ var F, d, ue, O, B, se, L, x, he, re, ie, G, z, M, ne, p, ae, Pe, De, Ie, Te, qe
|
|
|
715
715
|
y(this, z);
|
|
716
716
|
y(this, M);
|
|
717
717
|
y(this, ne, /* @__PURE__ */ new Set());
|
|
718
|
-
this.options = s, c(this, F, e), c(this,
|
|
718
|
+
this.options = s, c(this, F, e), c(this, k, null), c(this, L, Fe()), this.options.experimental_prefetchInRender || i(this, L).reject(
|
|
719
719
|
new Error("experimental_prefetchInRender feature flag is not enabled")
|
|
720
720
|
), this.bindMethods(), this.setOptions(s);
|
|
721
721
|
}
|
|
@@ -723,7 +723,7 @@ var F, d, ue, O, B, se, L, x, he, re, ie, G, z, M, ne, p, ae, Pe, De, Ie, Te, qe
|
|
|
723
723
|
this.refetch = this.refetch.bind(this);
|
|
724
724
|
}
|
|
725
725
|
onSubscribe() {
|
|
726
|
-
this.listeners.size === 1 && (i(this, d).addObserver(this), Ge(i(this, d), this.options) ? b(this, p, ae).call(this) : this.updateResult(), b(this, p,
|
|
726
|
+
this.listeners.size === 1 && (i(this, d).addObserver(this), Ge(i(this, d), this.options) ? b(this, p, ae).call(this) : this.updateResult(), b(this, p, De).call(this));
|
|
727
727
|
}
|
|
728
728
|
onUnsubscribe() {
|
|
729
729
|
this.hasListeners() || this.destroy();
|
|
@@ -743,15 +743,15 @@ var F, d, ue, O, B, se, L, x, he, re, ie, G, z, M, ne, p, ae, Pe, De, Ie, Te, qe
|
|
|
743
743
|
);
|
|
744
744
|
}
|
|
745
745
|
destroy() {
|
|
746
|
-
this.listeners = /* @__PURE__ */ new Set(), b(this, p,
|
|
746
|
+
this.listeners = /* @__PURE__ */ new Set(), b(this, p, xe).call(this), b(this, p, je).call(this), i(this, d).removeObserver(this);
|
|
747
747
|
}
|
|
748
748
|
setOptions(e, s) {
|
|
749
749
|
const r = this.options, n = i(this, d);
|
|
750
|
-
if (this.options = i(this, F).defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof
|
|
750
|
+
if (this.options = i(this, F).defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof x(this.options.enabled, i(this, d)) != "boolean")
|
|
751
751
|
throw new Error(
|
|
752
752
|
"Expected enabled to be a boolean or a callback that returns a boolean"
|
|
753
753
|
);
|
|
754
|
-
b(this, p,
|
|
754
|
+
b(this, p, ke).call(this), i(this, d).setOptions(this.options), r._defaulted && !we(this.options, r) && i(this, F).getQueryCache().notify({
|
|
755
755
|
type: "observerOptionsUpdated",
|
|
756
756
|
query: i(this, d),
|
|
757
757
|
observer: this
|
|
@@ -762,13 +762,13 @@ var F, d, ue, O, B, se, L, x, he, re, ie, G, z, M, ne, p, ae, Pe, De, Ie, Te, qe
|
|
|
762
762
|
n,
|
|
763
763
|
this.options,
|
|
764
764
|
r
|
|
765
|
-
) && b(this, p, ae).call(this), this.updateResult(s), u && (i(this, d) !== n ||
|
|
766
|
-
const a = b(this, p,
|
|
767
|
-
u && (i(this, d) !== n ||
|
|
765
|
+
) && b(this, p, ae).call(this), this.updateResult(s), u && (i(this, d) !== n || x(this.options.enabled, i(this, d)) !== x(r.enabled, i(this, d)) || fe(this.options.staleTime, i(this, d)) !== fe(r.staleTime, i(this, d))) && b(this, p, Pe).call(this);
|
|
766
|
+
const a = b(this, p, Ie).call(this);
|
|
767
|
+
u && (i(this, d) !== n || x(this.options.enabled, i(this, d)) !== x(r.enabled, i(this, d)) || a !== i(this, M)) && b(this, p, Te).call(this, a);
|
|
768
768
|
}
|
|
769
769
|
getOptimisticResult(e) {
|
|
770
770
|
const s = i(this, F).getQueryCache().build(i(this, F), e), r = this.createResult(s, e);
|
|
771
|
-
return
|
|
771
|
+
return It(this, r) && (c(this, O, r), c(this, se, this.options), c(this, B, i(this, d).state)), r;
|
|
772
772
|
}
|
|
773
773
|
getCurrentResult() {
|
|
774
774
|
return i(this, O);
|
|
@@ -806,13 +806,13 @@ var F, d, ue, O, B, se, L, x, he, re, ie, G, z, M, ne, p, ae, Pe, De, Ie, Te, qe
|
|
|
806
806
|
}
|
|
807
807
|
createResult(e, s) {
|
|
808
808
|
var Ke;
|
|
809
|
-
const r = i(this, d), n = this.options, u = i(this, O), a = i(this, B), o = i(this, se),
|
|
809
|
+
const r = i(this, d), n = this.options, u = i(this, O), a = i(this, B), o = i(this, se), R = e !== r ? e.state : i(this, ue), { state: v } = e;
|
|
810
810
|
let h = { ...v }, m = !1, S;
|
|
811
811
|
if (s._optimisticResults) {
|
|
812
|
-
const E = this.hasListeners(),
|
|
813
|
-
(
|
|
812
|
+
const E = this.hasListeners(), Z = !E && Ge(e, s), W = E && ze(e, r, s, n);
|
|
813
|
+
(Z || W) && (h = {
|
|
814
814
|
...h,
|
|
815
|
-
...
|
|
815
|
+
...nt(v.data, e.options)
|
|
816
816
|
}), s._optimisticResults === "isRestoring" && (h.fetchStatus = "idle");
|
|
817
817
|
}
|
|
818
818
|
let { error: w, errorUpdatedAt: f, status: g } = h;
|
|
@@ -821,9 +821,9 @@ var F, d, ue, O, B, se, L, x, he, re, ie, G, z, M, ne, p, ae, Pe, De, Ie, Te, qe
|
|
|
821
821
|
S = i(this, re);
|
|
822
822
|
else
|
|
823
823
|
try {
|
|
824
|
-
c(this, he, s.select), S = s.select(h.data), S = Oe(u == null ? void 0 : u.data, S, s), c(this, re, S), c(this,
|
|
824
|
+
c(this, he, s.select), S = s.select(h.data), S = Oe(u == null ? void 0 : u.data, S, s), c(this, re, S), c(this, k, null);
|
|
825
825
|
} catch (E) {
|
|
826
|
-
c(this,
|
|
826
|
+
c(this, k, E);
|
|
827
827
|
}
|
|
828
828
|
else
|
|
829
829
|
S = h.data;
|
|
@@ -836,9 +836,9 @@ var F, d, ue, O, B, se, L, x, he, re, ie, G, z, M, ne, p, ae, Pe, De, Ie, Te, qe
|
|
|
836
836
|
i(this, ie)
|
|
837
837
|
) : s.placeholderData, s.select && E !== void 0)
|
|
838
838
|
try {
|
|
839
|
-
E = s.select(E), c(this,
|
|
840
|
-
} catch (
|
|
841
|
-
c(this,
|
|
839
|
+
E = s.select(E), c(this, k, null);
|
|
840
|
+
} catch (Z) {
|
|
841
|
+
c(this, k, Z);
|
|
842
842
|
}
|
|
843
843
|
E !== void 0 && (g = "success", S = Oe(
|
|
844
844
|
u == null ? void 0 : u.data,
|
|
@@ -846,7 +846,7 @@ var F, d, ue, O, B, se, L, x, he, re, ie, G, z, M, ne, p, ae, Pe, De, Ie, Te, qe
|
|
|
846
846
|
s
|
|
847
847
|
), m = !0);
|
|
848
848
|
}
|
|
849
|
-
i(this,
|
|
849
|
+
i(this, k) && (w = i(this, k), S = i(this, re), f = Date.now(), g = "error");
|
|
850
850
|
const P = h.fetchStatus === "fetching", U = g === "pending", N = g === "error", ce = U && P, le = S !== void 0, j = {
|
|
851
851
|
status: g,
|
|
852
852
|
fetchStatus: h.fetchStatus,
|
|
@@ -863,7 +863,7 @@ var F, d, ue, O, B, se, L, x, he, re, ie, G, z, M, ne, p, ae, Pe, De, Ie, Te, qe
|
|
|
863
863
|
failureReason: h.fetchFailureReason,
|
|
864
864
|
errorUpdateCount: h.errorUpdateCount,
|
|
865
865
|
isFetched: h.dataUpdateCount > 0 || h.errorUpdateCount > 0,
|
|
866
|
-
isFetchedAfterMount: h.dataUpdateCount >
|
|
866
|
+
isFetchedAfterMount: h.dataUpdateCount > R.dataUpdateCount || h.errorUpdateCount > R.errorUpdateCount,
|
|
867
867
|
isFetching: P,
|
|
868
868
|
isRefetching: P && !U,
|
|
869
869
|
isLoadingError: N && !le,
|
|
@@ -877,19 +877,19 @@ var F, d, ue, O, B, se, L, x, he, re, ie, G, z, M, ne, p, ae, Pe, De, Ie, Te, qe
|
|
|
877
877
|
if (this.options.experimental_prefetchInRender) {
|
|
878
878
|
const E = (de) => {
|
|
879
879
|
j.status === "error" ? de.reject(j.error) : j.data !== void 0 && de.resolve(j.data);
|
|
880
|
-
},
|
|
880
|
+
}, Z = () => {
|
|
881
881
|
const de = c(this, L, j.promise = Fe());
|
|
882
882
|
E(de);
|
|
883
|
-
},
|
|
884
|
-
switch (
|
|
883
|
+
}, W = i(this, L);
|
|
884
|
+
switch (W.status) {
|
|
885
885
|
case "pending":
|
|
886
|
-
e.queryHash === r.queryHash && E(
|
|
886
|
+
e.queryHash === r.queryHash && E(W);
|
|
887
887
|
break;
|
|
888
888
|
case "fulfilled":
|
|
889
|
-
(j.status === "error" || j.data !==
|
|
889
|
+
(j.status === "error" || j.data !== W.value) && Z();
|
|
890
890
|
break;
|
|
891
891
|
case "rejected":
|
|
892
|
-
(j.status !== "error" || j.error !==
|
|
892
|
+
(j.status !== "error" || j.error !== W.reason) && Z();
|
|
893
893
|
break;
|
|
894
894
|
}
|
|
895
895
|
}
|
|
@@ -909,54 +909,54 @@ var F, d, ue, O, B, se, L, x, he, re, ie, G, z, M, ne, p, ae, Pe, De, Ie, Te, qe
|
|
|
909
909
|
const l = new Set(
|
|
910
910
|
o ?? i(this, ne)
|
|
911
911
|
);
|
|
912
|
-
return this.options.throwOnError && l.add("error"), Object.keys(i(this, O)).some((
|
|
913
|
-
const v =
|
|
912
|
+
return this.options.throwOnError && l.add("error"), Object.keys(i(this, O)).some((R) => {
|
|
913
|
+
const v = R;
|
|
914
914
|
return i(this, O)[v] !== s[v] && l.has(v);
|
|
915
915
|
});
|
|
916
916
|
};
|
|
917
|
-
(e == null ? void 0 : e.listeners) !== !1 && u() && (n.listeners = !0), b(this, p,
|
|
917
|
+
(e == null ? void 0 : e.listeners) !== !1 && u() && (n.listeners = !0), b(this, p, ot).call(this, { ...n, ...e });
|
|
918
918
|
}
|
|
919
919
|
onQueryUpdate() {
|
|
920
|
-
this.updateResult(), this.hasListeners() && b(this, p,
|
|
920
|
+
this.updateResult(), this.hasListeners() && b(this, p, De).call(this);
|
|
921
921
|
}
|
|
922
|
-
}, F = new WeakMap(), d = new WeakMap(), ue = new WeakMap(), O = new WeakMap(), B = new WeakMap(), se = new WeakMap(), L = new WeakMap(),
|
|
923
|
-
b(this, p,
|
|
922
|
+
}, F = new WeakMap(), d = new WeakMap(), ue = new WeakMap(), O = new WeakMap(), B = new WeakMap(), se = new WeakMap(), L = new WeakMap(), k = new WeakMap(), he = new WeakMap(), re = new WeakMap(), ie = new WeakMap(), G = new WeakMap(), z = new WeakMap(), M = new WeakMap(), ne = new WeakMap(), p = new WeakSet(), ae = function(e) {
|
|
923
|
+
b(this, p, ke).call(this);
|
|
924
924
|
let s = i(this, d).fetch(
|
|
925
925
|
this.options,
|
|
926
926
|
e
|
|
927
927
|
);
|
|
928
928
|
return e != null && e.throwOnError || (s = s.catch(ge)), s;
|
|
929
929
|
}, Pe = function() {
|
|
930
|
-
b(this, p,
|
|
930
|
+
b(this, p, xe).call(this);
|
|
931
931
|
const e = fe(
|
|
932
932
|
this.options.staleTime,
|
|
933
933
|
i(this, d)
|
|
934
934
|
);
|
|
935
|
-
if (V || i(this, O).isStale || !
|
|
935
|
+
if (V || i(this, O).isStale || !Re(e))
|
|
936
936
|
return;
|
|
937
|
-
const r =
|
|
937
|
+
const r = et(i(this, O).dataUpdatedAt, e) + 1;
|
|
938
938
|
c(this, G, setTimeout(() => {
|
|
939
939
|
i(this, O).isStale || this.updateResult();
|
|
940
940
|
}, r));
|
|
941
|
-
},
|
|
941
|
+
}, Ie = function() {
|
|
942
942
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(i(this, d)) : this.options.refetchInterval) ?? !1;
|
|
943
|
-
},
|
|
944
|
-
b(this, p, je).call(this), c(this, M, e), !(V ||
|
|
945
|
-
(this.options.refetchIntervalInBackground ||
|
|
943
|
+
}, Te = function(e) {
|
|
944
|
+
b(this, p, je).call(this), c(this, M, e), !(V || x(this.options.enabled, i(this, d)) === !1 || !Re(i(this, M)) || i(this, M) === 0) && c(this, z, setInterval(() => {
|
|
945
|
+
(this.options.refetchIntervalInBackground || tt.isFocused()) && b(this, p, ae).call(this);
|
|
946
946
|
}, i(this, M)));
|
|
947
|
-
},
|
|
948
|
-
b(this, p, Pe).call(this), b(this, p,
|
|
949
|
-
},
|
|
947
|
+
}, De = function() {
|
|
948
|
+
b(this, p, Pe).call(this), b(this, p, Te).call(this, b(this, p, Ie).call(this));
|
|
949
|
+
}, xe = function() {
|
|
950
950
|
i(this, G) && (clearTimeout(i(this, G)), c(this, G, void 0));
|
|
951
951
|
}, je = function() {
|
|
952
952
|
i(this, z) && (clearInterval(i(this, z)), c(this, z, void 0));
|
|
953
|
-
},
|
|
953
|
+
}, ke = function() {
|
|
954
954
|
const e = i(this, F).getQueryCache().build(i(this, F), this.options);
|
|
955
955
|
if (e === i(this, d))
|
|
956
956
|
return;
|
|
957
957
|
const s = i(this, d);
|
|
958
958
|
c(this, d, e), c(this, ue, e.state), this.hasListeners() && (s == null || s.removeObserver(this), e.addObserver(this));
|
|
959
|
-
},
|
|
959
|
+
}, ot = function(e) {
|
|
960
960
|
Ae.batch(() => {
|
|
961
961
|
e.listeners && this.listeners.forEach((s) => {
|
|
962
962
|
s(i(this, O));
|
|
@@ -965,44 +965,46 @@ var F, d, ue, O, B, se, L, x, he, re, ie, G, z, M, ne, p, ae, Pe, De, Ie, Te, qe
|
|
|
965
965
|
type: "observerResultsUpdated"
|
|
966
966
|
});
|
|
967
967
|
});
|
|
968
|
-
},
|
|
969
|
-
function
|
|
970
|
-
return
|
|
968
|
+
}, Ye);
|
|
969
|
+
function Pt(t, e) {
|
|
970
|
+
return x(e.enabled, t) !== !1 && t.state.data === void 0 && !(t.state.status === "error" && e.retryOnMount === !1);
|
|
971
971
|
}
|
|
972
972
|
function Ge(t, e) {
|
|
973
|
-
return
|
|
973
|
+
return Pt(t, e) || t.state.data !== void 0 && Ue(t, e, e.refetchOnMount);
|
|
974
974
|
}
|
|
975
975
|
function Ue(t, e, s) {
|
|
976
|
-
if (
|
|
976
|
+
if (x(e.enabled, t) !== !1) {
|
|
977
977
|
const r = typeof s == "function" ? s(t) : s;
|
|
978
978
|
return r === "always" || r !== !1 && Le(t, e);
|
|
979
979
|
}
|
|
980
980
|
return !1;
|
|
981
981
|
}
|
|
982
982
|
function ze(t, e, s, r) {
|
|
983
|
-
return (t !== e ||
|
|
983
|
+
return (t !== e || x(r.enabled, t) === !1) && (!s.suspense || t.state.status !== "error") && Le(t, s);
|
|
984
984
|
}
|
|
985
985
|
function Le(t, e) {
|
|
986
|
-
return
|
|
986
|
+
return x(e.enabled, t) !== !1 && t.isStaleByTime(fe(e.staleTime, t));
|
|
987
987
|
}
|
|
988
|
-
function
|
|
988
|
+
function It(t, e) {
|
|
989
989
|
return !we(t.getCurrentResult(), e);
|
|
990
990
|
}
|
|
991
|
-
var
|
|
991
|
+
var ut = T.createContext(
|
|
992
992
|
void 0
|
|
993
|
-
),
|
|
994
|
-
const e =
|
|
993
|
+
), Tt = (t) => {
|
|
994
|
+
const e = T.useContext(ut);
|
|
995
|
+
if (t)
|
|
996
|
+
return t;
|
|
995
997
|
if (!e)
|
|
996
998
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
997
999
|
return e;
|
|
998
1000
|
}, ss = ({
|
|
999
1001
|
client: t,
|
|
1000
1002
|
children: e
|
|
1001
|
-
}) => (
|
|
1003
|
+
}) => (T.useEffect(() => (t.mount(), () => {
|
|
1002
1004
|
t.unmount();
|
|
1003
|
-
}), [t]), /* @__PURE__ */
|
|
1004
|
-
|
|
1005
|
-
function
|
|
1005
|
+
}), [t]), /* @__PURE__ */ pt.jsx(ut.Provider, { value: t, children: e })), ht = T.createContext(!1), Dt = () => T.useContext(ht);
|
|
1006
|
+
ht.Provider;
|
|
1007
|
+
function xt() {
|
|
1006
1008
|
let t = !1;
|
|
1007
1009
|
return {
|
|
1008
1010
|
clearReset: () => {
|
|
@@ -1014,16 +1016,16 @@ function Tt() {
|
|
|
1014
1016
|
isReset: () => t
|
|
1015
1017
|
};
|
|
1016
1018
|
}
|
|
1017
|
-
var
|
|
1018
|
-
function
|
|
1019
|
+
var jt = T.createContext(xt()), kt = () => T.useContext(jt);
|
|
1020
|
+
function Ut(t, e) {
|
|
1019
1021
|
return typeof t == "function" ? t(...e) : !!t;
|
|
1020
1022
|
}
|
|
1021
|
-
function
|
|
1023
|
+
function Ve() {
|
|
1022
1024
|
}
|
|
1023
|
-
var
|
|
1024
|
-
(t.suspense || t.throwOnError) && (e.isReset() || (t.retryOnMount = !1));
|
|
1025
|
-
},
|
|
1026
|
-
|
|
1025
|
+
var Qt = (t, e) => {
|
|
1026
|
+
(t.suspense || t.throwOnError || t.experimental_prefetchInRender) && (e.isReset() || (t.retryOnMount = !1));
|
|
1027
|
+
}, qt = (t) => {
|
|
1028
|
+
T.useEffect(() => {
|
|
1027
1029
|
t.clearReset();
|
|
1028
1030
|
}, [t]);
|
|
1029
1031
|
}, At = ({
|
|
@@ -1031,73 +1033,72 @@ var kt = (t, e) => {
|
|
|
1031
1033
|
errorResetBoundary: e,
|
|
1032
1034
|
throwOnError: s,
|
|
1033
1035
|
query: r
|
|
1034
|
-
}) => t.isError && !e.isReset() && !t.isFetching && r &&
|
|
1035
|
-
t.suspense && (
|
|
1036
|
-
}, Nt = (t, e) => t.isLoading && t.isFetching && !e, Kt = (t, e) => (t == null ? void 0 : t.suspense) && e.isPending,
|
|
1036
|
+
}) => t.isError && !e.isReset() && !t.isFetching && r && Ut(s, [t.error, r]), Lt = (t, e) => e.state.data === void 0, Mt = (t) => {
|
|
1037
|
+
t.suspense && (t.staleTime === void 0 && (t.staleTime = 1e3), typeof t.gcTime == "number" && (t.gcTime = Math.max(t.gcTime, 1e3)));
|
|
1038
|
+
}, Nt = (t, e) => t.isLoading && t.isFetching && !e, Kt = (t, e) => (t == null ? void 0 : t.suspense) && e.isPending, $e = (t, e, s) => e.fetchOptimistic(t).catch(() => {
|
|
1037
1039
|
s.clearReset();
|
|
1038
1040
|
});
|
|
1039
|
-
function
|
|
1041
|
+
function ct(t, e, s) {
|
|
1040
1042
|
var v, h, m, S, w;
|
|
1041
1043
|
if (process.env.NODE_ENV !== "production" && (typeof t != "object" || Array.isArray(t)))
|
|
1042
1044
|
throw new Error(
|
|
1043
1045
|
'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'
|
|
1044
1046
|
);
|
|
1045
|
-
const r =
|
|
1047
|
+
const r = Tt(s), n = Dt(), u = kt(), a = r.defaultQueryOptions(t);
|
|
1046
1048
|
(h = (v = r.getDefaultOptions().queries) == null ? void 0 : v._experimental_beforeQuery) == null || h.call(
|
|
1047
1049
|
v,
|
|
1048
1050
|
a
|
|
1049
|
-
), a._optimisticResults = n ? "isRestoring" : "optimistic", Mt(a),
|
|
1050
|
-
const o = !r.getQueryCache().get(a.queryHash), [l] =
|
|
1051
|
+
), a._optimisticResults = n ? "isRestoring" : "optimistic", Mt(a), Qt(a, u), qt(u);
|
|
1052
|
+
const o = !r.getQueryCache().get(a.queryHash), [l] = T.useState(
|
|
1051
1053
|
() => new e(
|
|
1052
1054
|
r,
|
|
1053
1055
|
a
|
|
1054
1056
|
)
|
|
1055
|
-
),
|
|
1056
|
-
if (
|
|
1057
|
-
|
|
1057
|
+
), R = l.getOptimisticResult(a);
|
|
1058
|
+
if (T.useSyncExternalStore(
|
|
1059
|
+
T.useCallback(
|
|
1058
1060
|
(f) => {
|
|
1059
|
-
const g = n ? ()
|
|
1060
|
-
} : l.subscribe(Ae.batchCalls(f));
|
|
1061
|
+
const g = n ? Ve : l.subscribe(Ae.batchCalls(f));
|
|
1061
1062
|
return l.updateResult(), g;
|
|
1062
1063
|
},
|
|
1063
1064
|
[l, n]
|
|
1064
1065
|
),
|
|
1065
1066
|
() => l.getCurrentResult(),
|
|
1066
1067
|
() => l.getCurrentResult()
|
|
1067
|
-
),
|
|
1068
|
+
), T.useEffect(() => {
|
|
1068
1069
|
l.setOptions(a, { listeners: !1 });
|
|
1069
|
-
}, [a, l]), Kt(a,
|
|
1070
|
-
throw
|
|
1070
|
+
}, [a, l]), Kt(a, R))
|
|
1071
|
+
throw $e(a, l, u);
|
|
1071
1072
|
if (At({
|
|
1072
|
-
result:
|
|
1073
|
+
result: R,
|
|
1073
1074
|
errorResetBoundary: u,
|
|
1074
1075
|
throwOnError: a.throwOnError,
|
|
1075
1076
|
query: r.getQueryCache().get(a.queryHash)
|
|
1076
1077
|
}))
|
|
1077
|
-
throw
|
|
1078
|
+
throw R.error;
|
|
1078
1079
|
if ((S = (m = r.getDefaultOptions().queries) == null ? void 0 : m._experimental_afterQuery) == null || S.call(
|
|
1079
1080
|
m,
|
|
1080
1081
|
a,
|
|
1081
|
-
|
|
1082
|
-
), a.experimental_prefetchInRender && !V && Nt(
|
|
1082
|
+
R
|
|
1083
|
+
), a.experimental_prefetchInRender && !V && Nt(R, n)) {
|
|
1083
1084
|
const f = o ? (
|
|
1084
1085
|
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
|
1085
|
-
|
|
1086
|
+
$e(a, l, u)
|
|
1086
1087
|
) : (
|
|
1087
1088
|
// subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
|
|
1088
1089
|
(w = r.getQueryCache().get(a.queryHash)) == null ? void 0 : w.promise
|
|
1089
1090
|
);
|
|
1090
|
-
f == null || f.catch(
|
|
1091
|
-
l.
|
|
1091
|
+
f == null || f.catch(Ve).finally(() => {
|
|
1092
|
+
l.updateResult();
|
|
1092
1093
|
});
|
|
1093
1094
|
}
|
|
1094
|
-
return a.notifyOnChangeProps ?
|
|
1095
|
+
return a.notifyOnChangeProps ? R : l.trackResult(R);
|
|
1095
1096
|
}
|
|
1096
1097
|
function _t(t, e) {
|
|
1097
|
-
return
|
|
1098
|
+
return ct(t, at, e);
|
|
1098
1099
|
}
|
|
1099
1100
|
function Ht(t, e) {
|
|
1100
|
-
return process.env.NODE_ENV !== "production" && t.queryFn === ye && console.error("skipToken is not allowed for useSuspenseQuery"),
|
|
1101
|
+
return process.env.NODE_ENV !== "production" && t.queryFn === ye && console.error("skipToken is not allowed for useSuspenseQuery"), ct(
|
|
1101
1102
|
{
|
|
1102
1103
|
...t,
|
|
1103
1104
|
enabled: !0,
|
|
@@ -1105,12 +1106,38 @@ function Ht(t, e) {
|
|
|
1105
1106
|
throwOnError: Lt,
|
|
1106
1107
|
placeholderData: void 0
|
|
1107
1108
|
},
|
|
1108
|
-
|
|
1109
|
+
at,
|
|
1110
|
+
e
|
|
1109
1111
|
);
|
|
1110
1112
|
}
|
|
1111
1113
|
const $ = (...t) => {
|
|
1112
1114
|
const e = t.filter((s) => !!s).map((s) => s.replace(/(^\/+|\/+$)/g, "")).join("/").replace(/(^\/+|\/+$)/g, "");
|
|
1113
1115
|
return e ? `/${e}` : "/";
|
|
1116
|
+
}, Bt = ft(
|
|
1117
|
+
void 0
|
|
1118
|
+
), lt = () => {
|
|
1119
|
+
const t = yt(Bt);
|
|
1120
|
+
if (!t)
|
|
1121
|
+
throw new Error("useZudoku must be used within a ZudokuProvider.");
|
|
1122
|
+
return t;
|
|
1123
|
+
}, rs = () => {
|
|
1124
|
+
const { getApiIdentities: t } = lt();
|
|
1125
|
+
return _t({
|
|
1126
|
+
queryFn: t,
|
|
1127
|
+
queryKey: ["api-identities"]
|
|
1128
|
+
});
|
|
1129
|
+
}, dt = () => {
|
|
1130
|
+
const { getPluginSidebar: t, sidebars: e, topNavigation: s } = lt(), r = pe(), n = Object.entries(e).find(([, o]) => Me(o, (l) => {
|
|
1131
|
+
if ((l.type === "doc" ? $(l.id) : l.type === "category" && l.link ? $(l.link.id) : void 0) === r.pathname)
|
|
1132
|
+
return l;
|
|
1133
|
+
})), u = s.find((o) => o.id === (n == null ? void 0 : n[0])) ?? s.find((o) => vt(o.id, r.pathname)), { data: a } = Ht({
|
|
1134
|
+
queryFn: () => t(r.pathname),
|
|
1135
|
+
queryKey: ["plugin-sidebar", r.pathname]
|
|
1136
|
+
});
|
|
1137
|
+
return {
|
|
1138
|
+
sidebar: [...n ? n[1] : [], ...a],
|
|
1139
|
+
topNavItem: u
|
|
1140
|
+
};
|
|
1114
1141
|
}, Me = (t, e) => {
|
|
1115
1142
|
for (const s of t) {
|
|
1116
1143
|
const r = Ne(s, e);
|
|
@@ -1127,20 +1154,20 @@ const $ = (...t) => {
|
|
|
1127
1154
|
]);
|
|
1128
1155
|
if (u !== void 0) return u;
|
|
1129
1156
|
}
|
|
1130
|
-
},
|
|
1131
|
-
const t = pe(), s =
|
|
1157
|
+
}, is = () => {
|
|
1158
|
+
const t = pe(), s = dt().sidebar;
|
|
1132
1159
|
return Me(s, (r) => {
|
|
1133
1160
|
if (r.type === "doc" && $(r.id) === t.pathname)
|
|
1134
1161
|
return r;
|
|
1135
1162
|
});
|
|
1136
|
-
},
|
|
1163
|
+
}, ns = (t) => {
|
|
1137
1164
|
const e = pe();
|
|
1138
1165
|
return Ne(t, (s) => {
|
|
1139
1166
|
if (s.type === "category" && s.link && $(s.link.id) === e.pathname || s.type === "doc" && $(s.id) === e.pathname)
|
|
1140
1167
|
return !0;
|
|
1141
1168
|
});
|
|
1142
|
-
},
|
|
1143
|
-
const t = pe().pathname, s =
|
|
1169
|
+
}, as = () => {
|
|
1170
|
+
const t = pe().pathname, s = dt().sidebar;
|
|
1144
1171
|
let r, n, u = !1;
|
|
1145
1172
|
return Me(s, (a) => {
|
|
1146
1173
|
const o = a.type === "doc" ? $(a.id) : a.type === "category" && a.link ? $(a.link.id) : void 0;
|
|
@@ -1150,73 +1177,42 @@ const $ = (...t) => {
|
|
|
1150
1177
|
t === o ? u = !0 : r = { label: a.label, id: o };
|
|
1151
1178
|
}
|
|
1152
1179
|
}), { prev: r, next: n };
|
|
1153
|
-
}, Bt = dt(
|
|
1154
|
-
void 0
|
|
1155
|
-
), ct = () => {
|
|
1156
|
-
const t = ft(Bt);
|
|
1157
|
-
if (!t)
|
|
1158
|
-
throw new Error("useDevPortal must be used within a DevPortalProvider.");
|
|
1159
|
-
return t;
|
|
1160
|
-
}, as = () => {
|
|
1161
|
-
const { getApiIdentities: t } = ct();
|
|
1162
|
-
return _t({
|
|
1163
|
-
queryFn: t,
|
|
1164
|
-
queryKey: ["api-identities"]
|
|
1165
|
-
});
|
|
1166
|
-
}, lt = () => {
|
|
1167
|
-
const { getPluginSidebar: t, sidebars: e, topNavigation: s } = ct(), r = pe(), n = Object.entries(e).find(([, a]) => Me(a, (o) => {
|
|
1168
|
-
if ((o.type === "doc" ? $(o.id) : o.type === "category" && o.link ? $(o.link.id) : void 0) === r.pathname)
|
|
1169
|
-
return o;
|
|
1170
|
-
})), u = s.find((a) => a.id === (n == null ? void 0 : n[0])) ?? s.find((a) => pt(a.id, r.pathname));
|
|
1171
|
-
return Ht({
|
|
1172
|
-
queryFn: async () => {
|
|
1173
|
-
const a = await t(r.pathname);
|
|
1174
|
-
return {
|
|
1175
|
-
sidebar: [
|
|
1176
|
-
...n ? n[1] : [],
|
|
1177
|
-
...a
|
|
1178
|
-
],
|
|
1179
|
-
topNavItem: u
|
|
1180
|
-
};
|
|
1181
|
-
},
|
|
1182
|
-
queryKey: ["navigation", r.pathname]
|
|
1183
|
-
});
|
|
1184
1180
|
};
|
|
1185
1181
|
export {
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1182
|
+
ye as A,
|
|
1183
|
+
ss as B,
|
|
1184
|
+
ns as C,
|
|
1185
|
+
dt as D,
|
|
1186
|
+
Me as E,
|
|
1191
1187
|
ts as Q,
|
|
1192
|
-
|
|
1193
|
-
|
|
1188
|
+
Ot as R,
|
|
1189
|
+
Qe as S,
|
|
1194
1190
|
Bt as Z,
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1191
|
+
is as a,
|
|
1192
|
+
as as b,
|
|
1193
|
+
wt as c,
|
|
1194
|
+
Tt as d,
|
|
1195
|
+
Ve as e,
|
|
1196
|
+
Ut as f,
|
|
1197
|
+
Ht as g,
|
|
1202
1198
|
Se as h,
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1199
|
+
rs as i,
|
|
1200
|
+
$ as j,
|
|
1201
|
+
_t as k,
|
|
1202
|
+
bt as l,
|
|
1203
|
+
Jt as m,
|
|
1208
1204
|
Ae as n,
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1205
|
+
Xt as o,
|
|
1206
|
+
ge as p,
|
|
1207
|
+
gt as q,
|
|
1208
|
+
es as r,
|
|
1213
1209
|
we as s,
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1210
|
+
Yt as t,
|
|
1211
|
+
lt as u,
|
|
1212
|
+
tt as v,
|
|
1213
|
+
st as w,
|
|
1214
|
+
fe as x,
|
|
1215
|
+
Wt as y,
|
|
1216
|
+
qe as z
|
|
1221
1217
|
};
|
|
1222
|
-
//# sourceMappingURL=
|
|
1218
|
+
//# sourceMappingURL=utils-DcpDOncX.js.map
|