zudoku 0.0.0-fcb84d6 → 0.0.0-fd8f8ad
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 +2 -2
- package/dist/app/demo.js +0 -2
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.js +16 -2
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.js +9 -6
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/main.d.ts +2 -1
- package/dist/app/main.js +11 -28
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +0 -2
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/cli.js +1 -2
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/common/machine-id/lib.js.map +1 -1
- package/dist/cli/common/outdated.js.map +1 -1
- package/dist/cli/common/utils/box.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/validators/InputSidebarSchema.d.ts +12 -12
- package/dist/config/validators/SidebarSchema.d.ts +24 -1
- package/dist/config/validators/SidebarSchema.js +76 -39
- package/dist/config/validators/SidebarSchema.js.map +1 -1
- package/dist/config/validators/validate.d.ts +398 -252
- package/dist/config/validators/validate.js +23 -7
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +2 -2
- 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 +1 -1
- package/dist/lib/authentication/hook.js +1 -1
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.js +10 -9
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/state.d.ts +1 -1
- package/dist/lib/authentication/state.js +5 -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 +11 -3
- 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 +10 -7
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +1 -1
- package/dist/lib/components/MobileTopNavigation.js +7 -3
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/SlotletProvider.d.ts +2 -1
- package/dist/lib/components/SlotletProvider.js.map +1 -1
- package/dist/lib/components/SyntaxHighlight.js +19 -12
- package/dist/lib/components/SyntaxHighlight.js.map +1 -1
- package/dist/lib/components/ThemeSwitch.d.ts +1 -0
- package/dist/lib/components/ThemeSwitch.js +11 -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 +38 -5
- 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 +10 -14
- package/dist/lib/components/context/ZudokuContext.js +27 -26
- 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 +20 -13
- package/dist/lib/components/index.js +11 -5
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/Sidebar.js +3 -3
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.js +12 -7
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.js +3 -5
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/utils.js +10 -14
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/{DevPortalContext.d.ts → ZudokuContext.d.ts} +6 -13
- 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 +13 -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 +4 -4
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.js +3 -1
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- 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.map +1 -1
- package/dist/lib/plugins/custom-pages/CustomPage.js +2 -2
- package/dist/lib/plugins/custom-pages/index.d.ts +2 -2
- package/dist/lib/plugins/custom-pages/index.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +6 -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 +38 -0
- package/dist/lib/plugins/markdown/resolver.js +75 -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 +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 +21 -22
- 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 +102 -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 +13 -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 +4 -2
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +32 -8
- package/dist/lib/plugins/openapi/graphql/graphql.js +194 -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/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/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 +2 -2
- package/dist/lib/plugins/search-inkeep/index.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 +1 -1
- 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/useExposedProps.js +3 -2
- package/dist/lib/util/useExposedProps.js.map +1 -1
- 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/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/vite/build.js +12 -3
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +2 -8
- package/dist/vite/config.js +24 -60
- package/dist/vite/config.js.map +1 -1
- 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.js +1 -1
- 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 +33 -0
- package/dist/vite/output.js.map +1 -0
- package/dist/vite/plugin-component.js +17 -7
- package/dist/vite/plugin-component.js.map +1 -1
- 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 +2 -3
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-docs.js +37 -26
- package/dist/vite/plugin-docs.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 +3 -2
- 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 +7 -6
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/plugin.js +4 -4
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender.d.ts +5 -1
- package/dist/vite/prerender.js +7 -5
- 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/lib/{utils-C8S3st2k.js → AnchorLink-CDlhr8gL.js} +232 -275
- package/lib/AnchorLink-CDlhr8gL.js.map +1 -0
- package/lib/{AuthenticationPlugin-D1nhROkO.js → AuthenticationPlugin-DeGDVa1r.js} +6 -5
- package/lib/{AuthenticationPlugin-D1nhROkO.js.map → AuthenticationPlugin-DeGDVa1r.js.map} +1 -1
- package/lib/Button-jK0EsymC.js +48 -0
- package/lib/Button-jK0EsymC.js.map +1 -0
- package/lib/{CategoryHeading-B7TlPvuN.js → CategoryHeading-Bb9dqxD3.js} +4 -4
- package/lib/{CategoryHeading-B7TlPvuN.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-BorQdbxW.js +15192 -0
- package/lib/Markdown-BorQdbxW.js.map +1 -0
- package/lib/{MdxPage-B4FcPIi5.js → MdxPage-DFlbtJWi.js} +33 -31
- package/lib/{MdxPage-B4FcPIi5.js.map → MdxPage-DFlbtJWi.js.map} +1 -1
- package/lib/OperationList-KshJrrLL.js +4691 -0
- package/lib/OperationList-KshJrrLL.js.map +1 -0
- package/lib/Route-DlG_HTMu.js +11 -0
- package/lib/Route-DlG_HTMu.js.map +1 -0
- package/lib/Select-DP74t8Yy.js +223 -0
- package/lib/Select-DP74t8Yy.js.map +1 -0
- package/lib/SidebarBadge-DxFJcJ6V.js +51 -0
- package/lib/SidebarBadge-DxFJcJ6V.js.map +1 -0
- package/lib/SlotletProvider-D2v6rJy1.js +252 -0
- package/lib/SlotletProvider-D2v6rJy1.js.map +1 -0
- package/lib/SyntaxHighlight-CBmwwKoM.js +2983 -0
- package/lib/SyntaxHighlight-CBmwwKoM.js.map +1 -0
- package/lib/__vite-browser-external-BYRIRx8p.js +9 -0
- package/lib/__vite-browser-external-BYRIRx8p.js.map +1 -0
- package/lib/_commonjsHelpers-BkfeUUK-.js +29 -0
- package/lib/_commonjsHelpers-BkfeUUK-.js.map +1 -0
- package/lib/assets/{worker-Bf8vjASY.js → worker-CPsGZsve.js} +565 -561
- package/lib/assets/{worker-Bf8vjASY.js.map → worker-CPsGZsve.js.map} +1 -1
- 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-DK-g7kbB.js +16089 -0
- package/lib/createServer-DK-g7kbB.js.map +1 -0
- package/lib/hook-Diu0rqp-.js +229 -0
- package/lib/hook-Diu0rqp-.js.map +1 -0
- package/lib/index-BcesIHH4.js +1273 -0
- package/lib/index-BcesIHH4.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-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/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/{router-BsfSoK2j.js → router-lfyopgBI.js} +23 -23
- package/lib/{router-BsfSoK2j.js.map → router-lfyopgBI.js.map} +1 -1
- package/lib/state-BsPrOUAh.js +252 -0
- package/lib/state-BsPrOUAh.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 +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-MRoel6bS.js → utils-DcpDOncX.js} +455 -410
- package/lib/utils-DcpDOncX.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +24 -19
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +482 -488
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +1109 -2963
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +10 -16336
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +68 -75
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +9 -8
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +93 -27
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +6 -11
- 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 +9 -13
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/package.json +42 -10
- package/src/app/demo.tsx +0 -3
- package/src/app/entry.client.tsx +18 -2
- package/src/app/entry.server.tsx +60 -50
- package/src/app/main.css +5 -2
- package/src/app/main.tsx +16 -34
- package/src/app/standalone.tsx +1 -4
- package/src/lib/authentication/authentication.ts +2 -2
- package/src/lib/authentication/components/CallbackHandler.tsx +20 -51
- package/src/lib/authentication/hook.ts +1 -1
- package/src/lib/authentication/providers/auth0.tsx +15 -10
- package/src/lib/authentication/state.ts +12 -5
- 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 -9
- package/src/lib/components/ClientOnly.tsx +6 -3
- package/src/lib/components/DeveloperHint.tsx +6 -1
- package/src/lib/components/Header.tsx +50 -40
- package/src/lib/components/MobileTopNavigation.tsx +9 -1
- package/src/lib/components/SlotletProvider.tsx +2 -0
- package/src/lib/components/SyntaxHighlight.tsx +84 -46
- package/src/lib/components/ThemeSwitch.tsx +24 -0
- package/src/lib/components/TopNavigation.tsx +70 -23
- package/src/lib/components/Zudoku.tsx +108 -0
- package/src/lib/components/context/ZudokuContext.ts +33 -30
- package/src/lib/components/context/ZudokuProvider.tsx +2 -2
- package/src/lib/components/index.ts +14 -6
- package/src/lib/components/navigation/Sidebar.tsx +5 -5
- package/src/lib/components/navigation/SidebarCategory.tsx +13 -13
- package/src/lib/components/navigation/SidebarItem.tsx +3 -5
- package/src/lib/components/navigation/utils.ts +11 -16
- package/src/lib/core/{DevPortalContext.ts → ZudokuContext.ts} +6 -13
- package/src/lib/core/plugins.ts +14 -16
- package/src/lib/errors/ErrorAlert.tsx +20 -6
- package/src/lib/oas/graphql/index.ts +4 -4
- package/src/lib/oas/parser/upgrade/index.ts +3 -1
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +2 -2
- package/src/lib/plugins/api-keys/index.tsx +9 -9
- package/src/lib/plugins/custom-pages/CustomPage.tsx +2 -2
- package/src/lib/plugins/custom-pages/index.tsx +2 -2
- package/src/lib/plugins/markdown/index.tsx +50 -13
- package/src/lib/plugins/markdown/resolver.ts +92 -0
- 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 +7 -12
- package/src/lib/plugins/openapi/OperationList.tsx +20 -40
- 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 +140 -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 +18 -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 +10 -27
- package/src/lib/plugins/openapi/graphql/graphql.ts +233 -665
- package/src/lib/plugins/openapi/index.tsx +42 -67
- 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/schema/SchemaView.tsx +4 -1
- 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 +2 -2
- 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 +0 -1
- package/src/lib/util/invariant.ts +15 -3
- package/src/lib/util/useExposedProps.tsx +8 -2
- package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
- package/src/lib/util/useOnScreen.ts +32 -0
- package/src/lib/util/useScrollToAnchor.ts +1 -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.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/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/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/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-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/DeveloperHint-B_QCCafl.js +0 -16
- package/lib/DeveloperHint-B_QCCafl.js.map +0 -1
- package/lib/ErrorPage-DqqAV1dr.js +0 -16
- package/lib/ErrorPage-DqqAV1dr.js.map +0 -1
- package/lib/Input-a9rLgbP_.js +0 -2229
- package/lib/Input-a9rLgbP_.js.map +0 -1
- package/lib/Markdown-Y__eLG0x.js +0 -20441
- package/lib/Markdown-Y__eLG0x.js.map +0 -1
- package/lib/OperationList-DuPG2FA2.js +0 -601
- package/lib/OperationList-DuPG2FA2.js.map +0 -1
- package/lib/Route-Bb3QClHu.js +0 -13
- package/lib/Route-Bb3QClHu.js.map +0 -1
- package/lib/SidebarBadge-BdzN0ZBK.js +0 -503
- package/lib/SidebarBadge-BdzN0ZBK.js.map +0 -1
- package/lib/SlotletProvider-DmqWiVFt.js +0 -239
- package/lib/SlotletProvider-DmqWiVFt.js.map +0 -1
- package/lib/ZudokuContext-MRoel6bS.js.map +0 -1
- package/lib/index-BijFM__9.js +0 -124
- package/lib/index-BijFM__9.js.map +0 -1
- package/lib/index-CCa8ojDW.js +0 -5964
- package/lib/index-CCa8ojDW.js.map +0 -1
- package/lib/index-DFN92YJN.js +0 -1782
- package/lib/index-DFN92YJN.js.map +0 -1
- package/lib/index-DJqnphbT.js +0 -35
- package/lib/index-_GxJ8hpM.js +0 -2867
- package/lib/index-_GxJ8hpM.js.map +0 -1
- package/lib/joinPath-B7kNnUX4.js +0 -8
- package/lib/joinPath-B7kNnUX4.js.map +0 -1
- package/lib/state-CsuHT8ZO.js +0 -183
- package/lib/state-CsuHT8ZO.js.map +0 -1
- package/lib/urql-core-KJnLL26g.js +0 -1455
- package/lib/urql-core-KJnLL26g.js.map +0 -1
- package/lib/useExposedProps-BWwxa-Hg.js +0 -9
- package/lib/useExposedProps-BWwxa-Hg.js.map +0 -1
- package/lib/utils-C8S3st2k.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/markdown/generateRoutes.tsx +0 -38
- 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/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
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _e = (t) => {
|
|
2
2
|
throw TypeError(t);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var i = (t, e, s) => (
|
|
6
|
-
import * as
|
|
7
|
-
import { createContext as
|
|
8
|
-
import { j as
|
|
9
|
-
import { u as
|
|
10
|
-
|
|
4
|
+
var be = (t, e, s) => e.has(t) || _e("Cannot " + s);
|
|
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 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 {
|
|
11
12
|
constructor() {
|
|
12
13
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
13
14
|
}
|
|
@@ -24,37 +25,37 @@ var xe = class {
|
|
|
24
25
|
onUnsubscribe() {
|
|
25
26
|
}
|
|
26
27
|
}, V = typeof window > "u" || "Deno" in globalThis;
|
|
27
|
-
function
|
|
28
|
+
function ge() {
|
|
28
29
|
}
|
|
29
|
-
function
|
|
30
|
+
function Wt(t, e) {
|
|
30
31
|
return typeof t == "function" ? t(e) : t;
|
|
31
32
|
}
|
|
32
|
-
function
|
|
33
|
+
function Re(t) {
|
|
33
34
|
return typeof t == "number" && t >= 0 && t !== 1 / 0;
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
+
function et(t, e) {
|
|
36
37
|
return Math.max(t + (e || 0) - Date.now(), 0);
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
+
function fe(t, e) {
|
|
39
40
|
return typeof t == "function" ? t(e) : t;
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
+
function x(t, e) {
|
|
42
43
|
return typeof t == "function" ? t(e) : t;
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
+
function Jt(t, e) {
|
|
45
46
|
const {
|
|
46
47
|
type: s = "all",
|
|
47
48
|
exact: r,
|
|
48
49
|
fetchStatus: n,
|
|
49
|
-
predicate:
|
|
50
|
+
predicate: u,
|
|
50
51
|
queryKey: a,
|
|
51
|
-
stale:
|
|
52
|
+
stale: o
|
|
52
53
|
} = t;
|
|
53
54
|
if (a) {
|
|
54
55
|
if (r) {
|
|
55
|
-
if (e.queryHash !==
|
|
56
|
+
if (e.queryHash !== bt(a, e.options))
|
|
56
57
|
return !1;
|
|
57
|
-
} else if (!
|
|
58
|
+
} else if (!qe(e.queryKey, a))
|
|
58
59
|
return !1;
|
|
59
60
|
}
|
|
60
61
|
if (s !== "all") {
|
|
@@ -62,49 +63,49 @@ function zt(t, e) {
|
|
|
62
63
|
if (s === "active" && !l || s === "inactive" && l)
|
|
63
64
|
return !1;
|
|
64
65
|
}
|
|
65
|
-
return !(typeof
|
|
66
|
+
return !(typeof o == "boolean" && e.isStale() !== o || n && n !== e.state.fetchStatus || u && !u(e));
|
|
66
67
|
}
|
|
67
|
-
function
|
|
68
|
-
const { exact: s, status: r, predicate: n, mutationKey:
|
|
69
|
-
if (
|
|
68
|
+
function Xt(t, e) {
|
|
69
|
+
const { exact: s, status: r, predicate: n, mutationKey: u } = t;
|
|
70
|
+
if (u) {
|
|
70
71
|
if (!e.options.mutationKey)
|
|
71
72
|
return !1;
|
|
72
73
|
if (s) {
|
|
73
|
-
if (
|
|
74
|
+
if (Se(e.options.mutationKey) !== Se(u))
|
|
74
75
|
return !1;
|
|
75
|
-
} else if (!
|
|
76
|
+
} else if (!qe(e.options.mutationKey, u))
|
|
76
77
|
return !1;
|
|
77
78
|
}
|
|
78
79
|
return !(r && e.state.status !== r || n && !n(e));
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
-
return ((e == null ? void 0 : e.queryKeyHashFn) ||
|
|
81
|
+
function bt(t, e) {
|
|
82
|
+
return ((e == null ? void 0 : e.queryKeyHashFn) || Se)(t);
|
|
82
83
|
}
|
|
83
|
-
function
|
|
84
|
+
function Se(t) {
|
|
84
85
|
return JSON.stringify(
|
|
85
86
|
t,
|
|
86
|
-
(e, s) =>
|
|
87
|
+
(e, s) => Ee(s) ? Object.keys(s).sort().reduce((r, n) => (r[n] = s[n], r), {}) : s
|
|
87
88
|
);
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
-
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;
|
|
91
92
|
}
|
|
92
|
-
function
|
|
93
|
+
function Ce(t, e) {
|
|
93
94
|
if (t === e)
|
|
94
95
|
return t;
|
|
95
|
-
const s =
|
|
96
|
-
if (s ||
|
|
97
|
-
const r = s ? t : Object.keys(t), n = r.length,
|
|
96
|
+
const s = He(t) && He(e);
|
|
97
|
+
if (s || Ee(t) && Ee(e)) {
|
|
98
|
+
const r = s ? t : Object.keys(t), n = r.length, u = s ? e : Object.keys(e), a = u.length, o = s ? [] : {};
|
|
98
99
|
let l = 0;
|
|
99
100
|
for (let R = 0; R < a; R++) {
|
|
100
|
-
const v = s ? R :
|
|
101
|
-
(!s && r.includes(v) || s) && t[v] === void 0 && e[v] === void 0 ? (
|
|
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++);
|
|
102
103
|
}
|
|
103
|
-
return n === a && l === n ? t :
|
|
104
|
+
return n === a && l === n ? t : o;
|
|
104
105
|
}
|
|
105
106
|
return e;
|
|
106
107
|
}
|
|
107
|
-
function
|
|
108
|
+
function we(t, e) {
|
|
108
109
|
if (!e || Object.keys(t).length !== Object.keys(e).length)
|
|
109
110
|
return !1;
|
|
110
111
|
for (const s in t)
|
|
@@ -112,61 +113,61 @@ function Se(t, e) {
|
|
|
112
113
|
return !1;
|
|
113
114
|
return !0;
|
|
114
115
|
}
|
|
115
|
-
function
|
|
116
|
+
function He(t) {
|
|
116
117
|
return Array.isArray(t) && t.length === Object.keys(t).length;
|
|
117
118
|
}
|
|
118
|
-
function
|
|
119
|
-
if (!
|
|
119
|
+
function Ee(t) {
|
|
120
|
+
if (!Be(t))
|
|
120
121
|
return !1;
|
|
121
122
|
const e = t.constructor;
|
|
122
123
|
if (e === void 0)
|
|
123
124
|
return !0;
|
|
124
125
|
const s = e.prototype;
|
|
125
|
-
return !(!
|
|
126
|
+
return !(!Be(s) || !s.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(t) !== Object.prototype);
|
|
126
127
|
}
|
|
127
|
-
function
|
|
128
|
+
function Be(t) {
|
|
128
129
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
129
130
|
}
|
|
130
|
-
function
|
|
131
|
+
function mt(t) {
|
|
131
132
|
return new Promise((e) => {
|
|
132
133
|
setTimeout(e, t);
|
|
133
134
|
});
|
|
134
135
|
}
|
|
135
|
-
function
|
|
136
|
+
function Oe(t, e, s) {
|
|
136
137
|
if (typeof s.structuralSharing == "function")
|
|
137
138
|
return s.structuralSharing(t, e);
|
|
138
139
|
if (s.structuralSharing !== !1) {
|
|
139
140
|
if (process.env.NODE_ENV !== "production")
|
|
140
141
|
try {
|
|
141
|
-
return
|
|
142
|
+
return Ce(t, e);
|
|
142
143
|
} catch (r) {
|
|
143
144
|
console.error(
|
|
144
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}`
|
|
145
146
|
);
|
|
146
147
|
}
|
|
147
|
-
return
|
|
148
|
+
return Ce(t, e);
|
|
148
149
|
}
|
|
149
150
|
return e;
|
|
150
151
|
}
|
|
151
|
-
function
|
|
152
|
+
function Yt(t, e, s = 0) {
|
|
152
153
|
const r = [...t, e];
|
|
153
154
|
return s && r.length > s ? r.slice(1) : r;
|
|
154
155
|
}
|
|
155
|
-
function
|
|
156
|
+
function es(t, e, s = 0) {
|
|
156
157
|
const r = [e, ...t];
|
|
157
158
|
return s && r.length > s ? r.slice(0, -1) : r;
|
|
158
159
|
}
|
|
159
|
-
var
|
|
160
|
-
function
|
|
161
|
-
return process.env.NODE_ENV !== "production" && t.queryFn ===
|
|
160
|
+
var ye = Symbol();
|
|
161
|
+
function gt(t, e) {
|
|
162
|
+
return process.env.NODE_ENV !== "production" && t.queryFn === ye && console.error(
|
|
162
163
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
|
|
163
|
-
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn ===
|
|
164
|
+
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === ye ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
|
|
164
165
|
}
|
|
165
|
-
var K,
|
|
166
|
+
var K, q, J, Ze, Rt = (Ze = class extends Qe {
|
|
166
167
|
constructor() {
|
|
167
168
|
super();
|
|
168
169
|
y(this, K);
|
|
169
|
-
y(this,
|
|
170
|
+
y(this, q);
|
|
170
171
|
y(this, J);
|
|
171
172
|
c(this, J, (e) => {
|
|
172
173
|
if (!V && window.addEventListener) {
|
|
@@ -178,15 +179,15 @@ var K, A, J, Ge, yt = (Ge = class extends xe {
|
|
|
178
179
|
});
|
|
179
180
|
}
|
|
180
181
|
onSubscribe() {
|
|
181
|
-
i(this,
|
|
182
|
+
i(this, q) || this.setEventListener(i(this, J));
|
|
182
183
|
}
|
|
183
184
|
onUnsubscribe() {
|
|
184
185
|
var e;
|
|
185
|
-
this.hasListeners() || ((e = i(this,
|
|
186
|
+
this.hasListeners() || ((e = i(this, q)) == null || e.call(this), c(this, q, void 0));
|
|
186
187
|
}
|
|
187
188
|
setEventListener(e) {
|
|
188
189
|
var s;
|
|
189
|
-
c(this, J, e), (s = i(this,
|
|
190
|
+
c(this, J, e), (s = i(this, q)) == null || s.call(this), c(this, q, e((r) => {
|
|
190
191
|
typeof r == "boolean" ? this.setFocused(r) : this.onFocus();
|
|
191
192
|
}));
|
|
192
193
|
}
|
|
@@ -203,13 +204,13 @@ var K, A, J, Ge, yt = (Ge = class extends xe {
|
|
|
203
204
|
var e;
|
|
204
205
|
return typeof i(this, K) == "boolean" ? i(this, K) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
|
|
205
206
|
}
|
|
206
|
-
}, 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 {
|
|
207
208
|
constructor() {
|
|
208
209
|
super();
|
|
209
|
-
y(this,
|
|
210
|
-
y(this,
|
|
211
|
-
y(this,
|
|
212
|
-
c(this,
|
|
210
|
+
y(this, X, !0);
|
|
211
|
+
y(this, A);
|
|
212
|
+
y(this, Y);
|
|
213
|
+
c(this, Y, (e) => {
|
|
213
214
|
if (!V && window.addEventListener) {
|
|
214
215
|
const s = () => e(!0), r = () => e(!1);
|
|
215
216
|
return window.addEventListener("online", s, !1), window.addEventListener("offline", r, !1), () => {
|
|
@@ -219,29 +220,29 @@ var K, A, J, Ge, yt = (Ge = class extends xe {
|
|
|
219
220
|
});
|
|
220
221
|
}
|
|
221
222
|
onSubscribe() {
|
|
222
|
-
i(this,
|
|
223
|
+
i(this, A) || this.setEventListener(i(this, Y));
|
|
223
224
|
}
|
|
224
225
|
onUnsubscribe() {
|
|
225
226
|
var e;
|
|
226
|
-
this.hasListeners() || ((e = i(this,
|
|
227
|
+
this.hasListeners() || ((e = i(this, A)) == null || e.call(this), c(this, A, void 0));
|
|
227
228
|
}
|
|
228
229
|
setEventListener(e) {
|
|
229
230
|
var s;
|
|
230
|
-
c(this,
|
|
231
|
+
c(this, Y, e), (s = i(this, A)) == null || s.call(this), c(this, A, e(this.setOnline.bind(this)));
|
|
231
232
|
}
|
|
232
233
|
setOnline(e) {
|
|
233
|
-
i(this,
|
|
234
|
+
i(this, X) !== e && (c(this, X, e), this.listeners.forEach((r) => {
|
|
234
235
|
r(e);
|
|
235
236
|
}));
|
|
236
237
|
}
|
|
237
238
|
isOnline() {
|
|
238
|
-
return i(this,
|
|
239
|
+
return i(this, X);
|
|
239
240
|
}
|
|
240
|
-
},
|
|
241
|
-
function
|
|
241
|
+
}, X = new WeakMap(), A = new WeakMap(), Y = new WeakMap(), We), st = new St();
|
|
242
|
+
function Fe() {
|
|
242
243
|
let t, e;
|
|
243
|
-
const s = new Promise((n,
|
|
244
|
-
t = n, e =
|
|
244
|
+
const s = new Promise((n, u) => {
|
|
245
|
+
t = n, e = u;
|
|
245
246
|
});
|
|
246
247
|
s.status = "pending", s.catch(() => {
|
|
247
248
|
});
|
|
@@ -260,39 +261,39 @@ function Ee() {
|
|
|
260
261
|
}), e(n);
|
|
261
262
|
}, s;
|
|
262
263
|
}
|
|
263
|
-
function
|
|
264
|
+
function Ct(t) {
|
|
264
265
|
return Math.min(1e3 * 2 ** t, 3e4);
|
|
265
266
|
}
|
|
266
|
-
function
|
|
267
|
-
return (t ?? "online") === "online" ?
|
|
267
|
+
function rt(t) {
|
|
268
|
+
return (t ?? "online") === "online" ? st.isOnline() : !0;
|
|
268
269
|
}
|
|
269
|
-
var
|
|
270
|
+
var it = class extends Error {
|
|
270
271
|
constructor(t) {
|
|
271
272
|
super("CancelledError"), this.revert = t == null ? void 0 : t.revert, this.silent = t == null ? void 0 : t.silent;
|
|
272
273
|
}
|
|
273
274
|
};
|
|
274
|
-
function
|
|
275
|
-
return t instanceof
|
|
275
|
+
function me(t) {
|
|
276
|
+
return t instanceof it;
|
|
276
277
|
}
|
|
277
|
-
function
|
|
278
|
+
function wt(t) {
|
|
278
279
|
let e = !1, s = 0, r = !1, n;
|
|
279
|
-
const
|
|
280
|
+
const u = Fe(), a = (f) => {
|
|
280
281
|
var g;
|
|
281
|
-
r || (m(new
|
|
282
|
-
},
|
|
282
|
+
r || (m(new it(f)), (g = t.abort) == null || g.call(t));
|
|
283
|
+
}, o = () => {
|
|
283
284
|
e = !0;
|
|
284
285
|
}, l = () => {
|
|
285
286
|
e = !1;
|
|
286
|
-
}, R = () =>
|
|
287
|
+
}, R = () => tt.isFocused() && (t.networkMode === "always" || st.isOnline()) && t.canRun(), v = () => rt(t.networkMode) && t.canRun(), h = (f) => {
|
|
287
288
|
var g;
|
|
288
|
-
r || (r = !0, (g = t.onSuccess) == null || g.call(t, f), n == null || n(),
|
|
289
|
+
r || (r = !0, (g = t.onSuccess) == null || g.call(t, f), n == null || n(), u.resolve(f));
|
|
289
290
|
}, m = (f) => {
|
|
290
291
|
var g;
|
|
291
|
-
r || (r = !0, (g = t.onError) == null || g.call(t, f), n == null || n(),
|
|
292
|
+
r || (r = !0, (g = t.onError) == null || g.call(t, f), n == null || n(), u.reject(f));
|
|
292
293
|
}, S = () => new Promise((f) => {
|
|
293
294
|
var g;
|
|
294
|
-
n = (
|
|
295
|
-
(r || R()) && f(
|
|
295
|
+
n = (P) => {
|
|
296
|
+
(r || R()) && f(P);
|
|
296
297
|
}, (g = t.onPause) == null || g.call(t);
|
|
297
298
|
}).then(() => {
|
|
298
299
|
var f;
|
|
@@ -304,59 +305,59 @@ function bt(t) {
|
|
|
304
305
|
const g = s === 0 ? t.initialPromise : void 0;
|
|
305
306
|
try {
|
|
306
307
|
f = g ?? t.fn();
|
|
307
|
-
} catch (
|
|
308
|
-
f = Promise.reject(
|
|
308
|
+
} catch (P) {
|
|
309
|
+
f = Promise.reject(P);
|
|
309
310
|
}
|
|
310
|
-
Promise.resolve(f).then(
|
|
311
|
-
var
|
|
311
|
+
Promise.resolve(f).then(h).catch((P) => {
|
|
312
|
+
var ve;
|
|
312
313
|
if (r)
|
|
313
314
|
return;
|
|
314
|
-
const
|
|
315
|
-
if (e || !
|
|
316
|
-
m(
|
|
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
|
+
if (e || !le) {
|
|
317
|
+
m(P);
|
|
317
318
|
return;
|
|
318
319
|
}
|
|
319
|
-
s++, (
|
|
320
|
-
e ? m(
|
|
320
|
+
s++, (ve = t.onFail) == null || ve.call(t, s, P), mt(ce).then(() => R() ? void 0 : S()).then(() => {
|
|
321
|
+
e ? m(P) : w();
|
|
321
322
|
});
|
|
322
323
|
});
|
|
323
324
|
};
|
|
324
325
|
return {
|
|
325
|
-
promise:
|
|
326
|
+
promise: u,
|
|
326
327
|
cancel: a,
|
|
327
|
-
continue: () => (n == null || n(),
|
|
328
|
-
cancelRetry:
|
|
328
|
+
continue: () => (n == null || n(), u),
|
|
329
|
+
cancelRetry: o,
|
|
329
330
|
continueRetry: l,
|
|
330
331
|
canStart: v,
|
|
331
|
-
start: () => (v() ? w() : S().then(w),
|
|
332
|
+
start: () => (v() ? w() : S().then(w), u)
|
|
332
333
|
};
|
|
333
334
|
}
|
|
334
|
-
function
|
|
335
|
-
let t = [], e = 0, s = (
|
|
336
|
-
|
|
337
|
-
}, r = (
|
|
338
|
-
|
|
339
|
-
}, n = (
|
|
340
|
-
const
|
|
341
|
-
e ? t.push(
|
|
342
|
-
s(
|
|
335
|
+
function Et() {
|
|
336
|
+
let t = [], e = 0, s = (o) => {
|
|
337
|
+
o();
|
|
338
|
+
}, r = (o) => {
|
|
339
|
+
o();
|
|
340
|
+
}, n = (o) => setTimeout(o, 0);
|
|
341
|
+
const u = (o) => {
|
|
342
|
+
e ? t.push(o) : n(() => {
|
|
343
|
+
s(o);
|
|
343
344
|
});
|
|
344
345
|
}, a = () => {
|
|
345
|
-
const
|
|
346
|
-
t = [],
|
|
346
|
+
const o = t;
|
|
347
|
+
t = [], o.length && n(() => {
|
|
347
348
|
r(() => {
|
|
348
|
-
|
|
349
|
+
o.forEach((l) => {
|
|
349
350
|
s(l);
|
|
350
351
|
});
|
|
351
352
|
});
|
|
352
353
|
});
|
|
353
354
|
};
|
|
354
355
|
return {
|
|
355
|
-
batch: (
|
|
356
|
+
batch: (o) => {
|
|
356
357
|
let l;
|
|
357
358
|
e++;
|
|
358
359
|
try {
|
|
359
|
-
l =
|
|
360
|
+
l = o();
|
|
360
361
|
} finally {
|
|
361
362
|
e--, e || a();
|
|
362
363
|
}
|
|
@@ -365,32 +366,32 @@ function mt() {
|
|
|
365
366
|
/**
|
|
366
367
|
* All calls to the wrapped function will be batched.
|
|
367
368
|
*/
|
|
368
|
-
batchCalls: (
|
|
369
|
-
|
|
370
|
-
|
|
369
|
+
batchCalls: (o) => (...l) => {
|
|
370
|
+
u(() => {
|
|
371
|
+
o(...l);
|
|
371
372
|
});
|
|
372
373
|
},
|
|
373
|
-
schedule:
|
|
374
|
+
schedule: u,
|
|
374
375
|
/**
|
|
375
376
|
* Use this method to set a custom notify function.
|
|
376
377
|
* This can be used to for example wrap notifications with `React.act` while running tests.
|
|
377
378
|
*/
|
|
378
|
-
setNotifyFunction: (
|
|
379
|
-
s =
|
|
379
|
+
setNotifyFunction: (o) => {
|
|
380
|
+
s = o;
|
|
380
381
|
},
|
|
381
382
|
/**
|
|
382
383
|
* Use this method to set a custom function to batch notifications together into a single tick.
|
|
383
384
|
* By default React Query will use the batch function provided by ReactDOM or React Native.
|
|
384
385
|
*/
|
|
385
|
-
setBatchNotifyFunction: (
|
|
386
|
-
r =
|
|
386
|
+
setBatchNotifyFunction: (o) => {
|
|
387
|
+
r = o;
|
|
387
388
|
},
|
|
388
|
-
setScheduler: (
|
|
389
|
-
n =
|
|
389
|
+
setScheduler: (o) => {
|
|
390
|
+
n = o;
|
|
390
391
|
}
|
|
391
392
|
};
|
|
392
393
|
}
|
|
393
|
-
var
|
|
394
|
+
var Ae = Et(), _, Je, Ot = (Je = class {
|
|
394
395
|
constructor() {
|
|
395
396
|
y(this, _);
|
|
396
397
|
}
|
|
@@ -398,7 +399,7 @@ var je = mt(), _, Ve, gt = (Ve = class {
|
|
|
398
399
|
this.clearGcTimeout();
|
|
399
400
|
}
|
|
400
401
|
scheduleGc() {
|
|
401
|
-
this.clearGcTimeout(),
|
|
402
|
+
this.clearGcTimeout(), Re(this.gcTime) && c(this, _, setTimeout(() => {
|
|
402
403
|
this.optionalRemove();
|
|
403
404
|
}, this.gcTime));
|
|
404
405
|
}
|
|
@@ -411,17 +412,17 @@ var je = mt(), _, Ve, gt = (Ve = class {
|
|
|
411
412
|
clearGcTimeout() {
|
|
412
413
|
i(this, _) && (clearTimeout(i(this, _)), c(this, _, void 0));
|
|
413
414
|
}
|
|
414
|
-
}, _ = new WeakMap(),
|
|
415
|
+
}, _ = new WeakMap(), Je), ee, te, I, C, oe, H, D, Q, Xe, ts = (Xe = class extends Ot {
|
|
415
416
|
constructor(e) {
|
|
416
417
|
super();
|
|
417
|
-
y(this, q);
|
|
418
|
-
y(this, Y);
|
|
419
|
-
y(this, ee);
|
|
420
418
|
y(this, D);
|
|
419
|
+
y(this, ee);
|
|
420
|
+
y(this, te);
|
|
421
|
+
y(this, I);
|
|
421
422
|
y(this, C);
|
|
422
|
-
y(this,
|
|
423
|
+
y(this, oe);
|
|
423
424
|
y(this, H);
|
|
424
|
-
c(this, H, !1), 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();
|
|
425
426
|
}
|
|
426
427
|
get meta() {
|
|
427
428
|
return this.options.meta;
|
|
@@ -431,14 +432,14 @@ var je = mt(), _, Ve, gt = (Ve = class {
|
|
|
431
432
|
return (e = i(this, C)) == null ? void 0 : e.promise;
|
|
432
433
|
}
|
|
433
434
|
setOptions(e) {
|
|
434
|
-
this.options = { ...i(this,
|
|
435
|
+
this.options = { ...i(this, oe), ...e }, this.updateGcTime(this.options.gcTime);
|
|
435
436
|
}
|
|
436
437
|
optionalRemove() {
|
|
437
|
-
!this.observers.length && this.state.fetchStatus === "idle" && i(this,
|
|
438
|
+
!this.observers.length && this.state.fetchStatus === "idle" && i(this, I).remove(this);
|
|
438
439
|
}
|
|
439
440
|
setData(e, s) {
|
|
440
|
-
const r =
|
|
441
|
-
return b(this,
|
|
441
|
+
const r = Oe(this.state.data, e, this.options);
|
|
442
|
+
return b(this, D, Q).call(this, {
|
|
442
443
|
data: r,
|
|
443
444
|
type: "success",
|
|
444
445
|
dataUpdatedAt: s == null ? void 0 : s.updatedAt,
|
|
@@ -446,26 +447,26 @@ var je = mt(), _, Ve, gt = (Ve = class {
|
|
|
446
447
|
}), r;
|
|
447
448
|
}
|
|
448
449
|
setState(e, s) {
|
|
449
|
-
b(this,
|
|
450
|
+
b(this, D, Q).call(this, { type: "setState", state: e, setStateOptions: s });
|
|
450
451
|
}
|
|
451
452
|
cancel(e) {
|
|
452
453
|
var r, n;
|
|
453
454
|
const s = (r = i(this, C)) == null ? void 0 : r.promise;
|
|
454
|
-
return (n = i(this, C)) == null || n.cancel(e), s ? s.then(
|
|
455
|
+
return (n = i(this, C)) == null || n.cancel(e), s ? s.then(ge).catch(ge) : Promise.resolve();
|
|
455
456
|
}
|
|
456
457
|
destroy() {
|
|
457
458
|
super.destroy(), this.cancel({ silent: !0 });
|
|
458
459
|
}
|
|
459
460
|
reset() {
|
|
460
|
-
this.destroy(), this.setState(i(this,
|
|
461
|
+
this.destroy(), this.setState(i(this, ee));
|
|
461
462
|
}
|
|
462
463
|
isActive() {
|
|
463
464
|
return this.observers.some(
|
|
464
|
-
(e) =>
|
|
465
|
+
(e) => x(e.options.enabled, this) !== !1
|
|
465
466
|
);
|
|
466
467
|
}
|
|
467
468
|
isDisabled() {
|
|
468
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn ===
|
|
469
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === ye || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
|
|
469
470
|
}
|
|
470
471
|
isStale() {
|
|
471
472
|
return this.state.isInvalidated ? !0 : this.getObserversCount() > 0 ? this.observers.some(
|
|
@@ -473,7 +474,7 @@ var je = mt(), _, Ve, gt = (Ve = class {
|
|
|
473
474
|
) : this.state.data === void 0;
|
|
474
475
|
}
|
|
475
476
|
isStaleByTime(e = 0) {
|
|
476
|
-
return this.state.isInvalidated || this.state.data === void 0 || !
|
|
477
|
+
return this.state.isInvalidated || this.state.data === void 0 || !et(this.state.dataUpdatedAt, e);
|
|
477
478
|
}
|
|
478
479
|
onFocus() {
|
|
479
480
|
var s;
|
|
@@ -486,16 +487,16 @@ var je = mt(), _, Ve, gt = (Ve = class {
|
|
|
486
487
|
e == null || e.refetch({ cancelRefetch: !1 }), (s = i(this, C)) == null || s.continue();
|
|
487
488
|
}
|
|
488
489
|
addObserver(e) {
|
|
489
|
-
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 }));
|
|
490
491
|
}
|
|
491
492
|
removeObserver(e) {
|
|
492
|
-
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,
|
|
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 }));
|
|
493
494
|
}
|
|
494
495
|
getObserversCount() {
|
|
495
496
|
return this.observers.length;
|
|
496
497
|
}
|
|
497
498
|
invalidate() {
|
|
498
|
-
this.state.isInvalidated || b(this,
|
|
499
|
+
this.state.isInvalidated || b(this, D, Q).call(this, { type: "invalidate" });
|
|
499
500
|
}
|
|
500
501
|
fetch(e, s) {
|
|
501
502
|
var l, R, v;
|
|
@@ -506,88 +507,88 @@ var je = mt(), _, Ve, gt = (Ve = class {
|
|
|
506
507
|
return i(this, C).continueRetry(), i(this, C).promise;
|
|
507
508
|
}
|
|
508
509
|
if (e && this.setOptions(e), !this.options.queryFn) {
|
|
509
|
-
const
|
|
510
|
-
|
|
510
|
+
const h = this.observers.find((m) => m.options.queryFn);
|
|
511
|
+
h && this.setOptions(h.options);
|
|
511
512
|
}
|
|
512
513
|
process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error(
|
|
513
514
|
"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']"
|
|
514
515
|
));
|
|
515
|
-
const r = new AbortController(), n = (
|
|
516
|
-
Object.defineProperty(
|
|
516
|
+
const r = new AbortController(), n = (h) => {
|
|
517
|
+
Object.defineProperty(h, "signal", {
|
|
517
518
|
enumerable: !0,
|
|
518
519
|
get: () => (c(this, H, !0), r.signal)
|
|
519
520
|
});
|
|
520
|
-
},
|
|
521
|
-
const
|
|
521
|
+
}, u = () => {
|
|
522
|
+
const h = gt(this.options, s), m = {
|
|
522
523
|
queryKey: this.queryKey,
|
|
523
524
|
meta: this.meta
|
|
524
525
|
};
|
|
525
526
|
return n(m), c(this, H, !1), this.options.persister ? this.options.persister(
|
|
526
|
-
|
|
527
|
+
h,
|
|
527
528
|
m,
|
|
528
529
|
this
|
|
529
|
-
) :
|
|
530
|
+
) : h(m);
|
|
530
531
|
}, a = {
|
|
531
532
|
fetchOptions: s,
|
|
532
533
|
options: this.options,
|
|
533
534
|
queryKey: this.queryKey,
|
|
534
535
|
state: this.state,
|
|
535
|
-
fetchFn:
|
|
536
|
+
fetchFn: u
|
|
536
537
|
};
|
|
537
538
|
n(a), (l = this.options.behavior) == null || l.onFetch(
|
|
538
539
|
a,
|
|
539
540
|
this
|
|
540
|
-
), c(this,
|
|
541
|
-
const
|
|
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
|
+
const o = (h) => {
|
|
542
543
|
var m, S, w, f;
|
|
543
|
-
|
|
544
|
+
me(h) && h.silent || b(this, D, Q).call(this, {
|
|
544
545
|
type: "error",
|
|
545
|
-
error:
|
|
546
|
-
}),
|
|
546
|
+
error: h
|
|
547
|
+
}), me(h) || ((S = (m = i(this, I).config).onError) == null || S.call(
|
|
547
548
|
m,
|
|
548
|
-
|
|
549
|
+
h,
|
|
549
550
|
this
|
|
550
|
-
), (f = (w = i(this,
|
|
551
|
+
), (f = (w = i(this, I).config).onSettled) == null || f.call(
|
|
551
552
|
w,
|
|
552
553
|
this.state.data,
|
|
553
|
-
|
|
554
|
+
h,
|
|
554
555
|
this
|
|
555
556
|
)), this.scheduleGc();
|
|
556
557
|
};
|
|
557
|
-
return c(this, C,
|
|
558
|
+
return c(this, C, wt({
|
|
558
559
|
initialPromise: s == null ? void 0 : s.initialPromise,
|
|
559
560
|
fn: a.fetchFn,
|
|
560
561
|
abort: r.abort.bind(r),
|
|
561
|
-
onSuccess: (
|
|
562
|
+
onSuccess: (h) => {
|
|
562
563
|
var m, S, w, f;
|
|
563
|
-
if (
|
|
564
|
+
if (h === void 0) {
|
|
564
565
|
process.env.NODE_ENV !== "production" && console.error(
|
|
565
566
|
`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
|
|
566
|
-
),
|
|
567
|
+
), o(new Error(`${this.queryHash} data is undefined`));
|
|
567
568
|
return;
|
|
568
569
|
}
|
|
569
570
|
try {
|
|
570
|
-
this.setData(
|
|
571
|
+
this.setData(h);
|
|
571
572
|
} catch (g) {
|
|
572
|
-
|
|
573
|
+
o(g);
|
|
573
574
|
return;
|
|
574
575
|
}
|
|
575
|
-
(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(
|
|
576
577
|
w,
|
|
577
|
-
|
|
578
|
+
h,
|
|
578
579
|
this.state.error,
|
|
579
580
|
this
|
|
580
581
|
), this.scheduleGc();
|
|
581
582
|
},
|
|
582
|
-
onError:
|
|
583
|
-
onFail: (
|
|
584
|
-
b(this,
|
|
583
|
+
onError: o,
|
|
584
|
+
onFail: (h, m) => {
|
|
585
|
+
b(this, D, Q).call(this, { type: "failed", failureCount: h, error: m });
|
|
585
586
|
},
|
|
586
587
|
onPause: () => {
|
|
587
|
-
b(this,
|
|
588
|
+
b(this, D, Q).call(this, { type: "pause" });
|
|
588
589
|
},
|
|
589
590
|
onContinue: () => {
|
|
590
|
-
b(this,
|
|
591
|
+
b(this, D, Q).call(this, { type: "continue" });
|
|
591
592
|
},
|
|
592
593
|
retry: a.options.retry,
|
|
593
594
|
retryDelay: a.options.retryDelay,
|
|
@@ -595,7 +596,7 @@ var je = mt(), _, Ve, gt = (Ve = class {
|
|
|
595
596
|
canRun: () => !0
|
|
596
597
|
})), i(this, C).start();
|
|
597
598
|
}
|
|
598
|
-
},
|
|
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) {
|
|
599
600
|
const s = (r) => {
|
|
600
601
|
switch (e.type) {
|
|
601
602
|
case "failed":
|
|
@@ -617,7 +618,7 @@ var je = mt(), _, Ve, gt = (Ve = class {
|
|
|
617
618
|
case "fetch":
|
|
618
619
|
return {
|
|
619
620
|
...r,
|
|
620
|
-
...
|
|
621
|
+
...nt(r.data, this.options),
|
|
621
622
|
fetchMeta: e.meta ?? null
|
|
622
623
|
};
|
|
623
624
|
case "success":
|
|
@@ -637,7 +638,7 @@ var je = mt(), _, Ve, gt = (Ve = class {
|
|
|
637
638
|
};
|
|
638
639
|
case "error":
|
|
639
640
|
const n = e.error;
|
|
640
|
-
return
|
|
641
|
+
return me(n) && n.revert && i(this, te) ? { ...i(this, te), fetchStatus: "idle" } : {
|
|
641
642
|
...r,
|
|
642
643
|
error: n,
|
|
643
644
|
errorUpdateCount: r.errorUpdateCount + 1,
|
|
@@ -659,24 +660,24 @@ var je = mt(), _, Ve, gt = (Ve = class {
|
|
|
659
660
|
};
|
|
660
661
|
}
|
|
661
662
|
};
|
|
662
|
-
this.state = s(this.state),
|
|
663
|
+
this.state = s(this.state), Ae.batch(() => {
|
|
663
664
|
this.observers.forEach((r) => {
|
|
664
665
|
r.onQueryUpdate();
|
|
665
|
-
}), i(this,
|
|
666
|
+
}), i(this, I).notify({ query: this, type: "updated", action: e });
|
|
666
667
|
});
|
|
667
|
-
},
|
|
668
|
-
function
|
|
668
|
+
}, Xe);
|
|
669
|
+
function nt(t, e) {
|
|
669
670
|
return {
|
|
670
671
|
fetchFailureCount: 0,
|
|
671
672
|
fetchFailureReason: null,
|
|
672
|
-
fetchStatus:
|
|
673
|
+
fetchStatus: rt(e.networkMode) ? "fetching" : "paused",
|
|
673
674
|
...t === void 0 && {
|
|
674
675
|
error: null,
|
|
675
676
|
status: "pending"
|
|
676
677
|
}
|
|
677
678
|
};
|
|
678
679
|
}
|
|
679
|
-
function
|
|
680
|
+
function Ft(t) {
|
|
680
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;
|
|
681
682
|
return {
|
|
682
683
|
data: e,
|
|
@@ -693,28 +694,28 @@ function Rt(t) {
|
|
|
693
694
|
fetchStatus: "idle"
|
|
694
695
|
};
|
|
695
696
|
}
|
|
696
|
-
var
|
|
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 {
|
|
697
698
|
constructor(e, s) {
|
|
698
699
|
super();
|
|
699
700
|
y(this, p);
|
|
700
|
-
y(this, O);
|
|
701
|
-
y(this, d);
|
|
702
|
-
y(this, oe);
|
|
703
701
|
y(this, F);
|
|
704
|
-
y(this,
|
|
705
|
-
y(this, te);
|
|
706
|
-
y(this, M);
|
|
707
|
-
y(this, x);
|
|
702
|
+
y(this, d);
|
|
708
703
|
y(this, ue);
|
|
704
|
+
y(this, O);
|
|
705
|
+
y(this, B);
|
|
709
706
|
y(this, se);
|
|
707
|
+
y(this, L);
|
|
708
|
+
y(this, k);
|
|
709
|
+
y(this, he);
|
|
710
|
+
y(this, re);
|
|
710
711
|
// This property keeps track of the last query with defined data.
|
|
711
712
|
// It will be used to pass the previous data and query to the placeholder function between renders.
|
|
712
|
-
y(this,
|
|
713
|
+
y(this, ie);
|
|
713
714
|
y(this, G);
|
|
714
715
|
y(this, z);
|
|
715
|
-
y(this,
|
|
716
|
-
y(this,
|
|
717
|
-
this.options = s, c(this,
|
|
716
|
+
y(this, M);
|
|
717
|
+
y(this, ne, /* @__PURE__ */ new Set());
|
|
718
|
+
this.options = s, c(this, F, e), c(this, k, null), c(this, L, Fe()), this.options.experimental_prefetchInRender || i(this, L).reject(
|
|
718
719
|
new Error("experimental_prefetchInRender feature flag is not enabled")
|
|
719
720
|
), this.bindMethods(), this.setOptions(s);
|
|
720
721
|
}
|
|
@@ -722,7 +723,7 @@ var O, d, oe, F, B, te, M, x, ue, se, re, G, z, L, ie, p, ne, Fe, Oe, Te, De, Pe
|
|
|
722
723
|
this.refetch = this.refetch.bind(this);
|
|
723
724
|
}
|
|
724
725
|
onSubscribe() {
|
|
725
|
-
this.listeners.size === 1 && (i(this, d).addObserver(this),
|
|
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));
|
|
726
727
|
}
|
|
727
728
|
onUnsubscribe() {
|
|
728
729
|
this.hasListeners() || this.destroy();
|
|
@@ -742,35 +743,35 @@ var O, d, oe, F, B, te, M, x, ue, se, re, G, z, L, ie, p, ne, Fe, Oe, Te, De, Pe
|
|
|
742
743
|
);
|
|
743
744
|
}
|
|
744
745
|
destroy() {
|
|
745
|
-
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);
|
|
746
747
|
}
|
|
747
748
|
setOptions(e, s) {
|
|
748
749
|
const r = this.options, n = i(this, d);
|
|
749
|
-
if (this.options = i(this,
|
|
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")
|
|
750
751
|
throw new Error(
|
|
751
752
|
"Expected enabled to be a boolean or a callback that returns a boolean"
|
|
752
753
|
);
|
|
753
|
-
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({
|
|
754
755
|
type: "observerOptionsUpdated",
|
|
755
756
|
query: i(this, d),
|
|
756
757
|
observer: this
|
|
757
758
|
});
|
|
758
|
-
const
|
|
759
|
-
|
|
759
|
+
const u = this.hasListeners();
|
|
760
|
+
u && ze(
|
|
760
761
|
i(this, d),
|
|
761
762
|
n,
|
|
762
763
|
this.options,
|
|
763
764
|
r
|
|
764
|
-
) && b(this, p,
|
|
765
|
-
const a = b(this, p,
|
|
766
|
-
|
|
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);
|
|
767
768
|
}
|
|
768
769
|
getOptimisticResult(e) {
|
|
769
|
-
const s = i(this,
|
|
770
|
-
return
|
|
770
|
+
const s = i(this, F).getQueryCache().build(i(this, F), e), r = this.createResult(s, e);
|
|
771
|
+
return It(this, r) && (c(this, O, r), c(this, se, this.options), c(this, B, i(this, d).state)), r;
|
|
771
772
|
}
|
|
772
773
|
getCurrentResult() {
|
|
773
|
-
return i(this,
|
|
774
|
+
return i(this, O);
|
|
774
775
|
}
|
|
775
776
|
trackResult(e, s) {
|
|
776
777
|
const r = {};
|
|
@@ -783,7 +784,7 @@ var O, d, oe, F, B, te, M, x, ue, se, re, G, z, L, ie, p, ne, Fe, Oe, Te, De, Pe
|
|
|
783
784
|
}), r;
|
|
784
785
|
}
|
|
785
786
|
trackProp(e) {
|
|
786
|
-
i(this,
|
|
787
|
+
i(this, ne).add(e);
|
|
787
788
|
}
|
|
788
789
|
getCurrentQuery() {
|
|
789
790
|
return i(this, d);
|
|
@@ -794,214 +795,216 @@ var O, d, oe, F, B, te, M, x, ue, se, re, G, z, L, ie, p, ne, Fe, Oe, Te, De, Pe
|
|
|
794
795
|
});
|
|
795
796
|
}
|
|
796
797
|
fetchOptimistic(e) {
|
|
797
|
-
const s = i(this,
|
|
798
|
+
const s = i(this, F).defaultQueryOptions(e), r = i(this, F).getQueryCache().build(i(this, F), s);
|
|
798
799
|
return r.fetch().then(() => this.createResult(r, s));
|
|
799
800
|
}
|
|
800
801
|
fetch(e) {
|
|
801
|
-
return b(this, p,
|
|
802
|
+
return b(this, p, ae).call(this, {
|
|
802
803
|
...e,
|
|
803
804
|
cancelRefetch: e.cancelRefetch ?? !0
|
|
804
|
-
}).then(() => (this.updateResult(), i(this,
|
|
805
|
+
}).then(() => (this.updateResult(), i(this, O)));
|
|
805
806
|
}
|
|
806
807
|
createResult(e, s) {
|
|
807
|
-
var
|
|
808
|
-
const r = i(this, d), n = this.options,
|
|
809
|
-
let
|
|
808
|
+
var Ke;
|
|
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
|
+
let h = { ...v }, m = !1, S;
|
|
810
811
|
if (s._optimisticResults) {
|
|
811
|
-
const E = this.hasListeners(),
|
|
812
|
-
(
|
|
813
|
-
...
|
|
814
|
-
...
|
|
815
|
-
}), s._optimisticResults === "isRestoring" && (
|
|
812
|
+
const E = this.hasListeners(), Z = !E && Ge(e, s), W = E && ze(e, r, s, n);
|
|
813
|
+
(Z || W) && (h = {
|
|
814
|
+
...h,
|
|
815
|
+
...nt(v.data, e.options)
|
|
816
|
+
}), s._optimisticResults === "isRestoring" && (h.fetchStatus = "idle");
|
|
816
817
|
}
|
|
817
|
-
let { error: w, errorUpdatedAt: f, status: g } =
|
|
818
|
-
if (s.select &&
|
|
819
|
-
if (
|
|
820
|
-
S = i(this,
|
|
818
|
+
let { error: w, errorUpdatedAt: f, status: g } = h;
|
|
819
|
+
if (s.select && h.data !== void 0)
|
|
820
|
+
if (u && h.data === (a == null ? void 0 : a.data) && s.select === i(this, he))
|
|
821
|
+
S = i(this, re);
|
|
821
822
|
else
|
|
822
823
|
try {
|
|
823
|
-
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);
|
|
824
825
|
} catch (E) {
|
|
825
|
-
c(this,
|
|
826
|
+
c(this, k, E);
|
|
826
827
|
}
|
|
827
828
|
else
|
|
828
|
-
S =
|
|
829
|
+
S = h.data;
|
|
829
830
|
if (s.placeholderData !== void 0 && S === void 0 && g === "pending") {
|
|
830
831
|
let E;
|
|
831
|
-
if (
|
|
832
|
-
E =
|
|
832
|
+
if (u != null && u.isPlaceholderData && s.placeholderData === (o == null ? void 0 : o.placeholderData))
|
|
833
|
+
E = u.data;
|
|
833
834
|
else if (E = typeof s.placeholderData == "function" ? s.placeholderData(
|
|
834
|
-
(
|
|
835
|
-
i(this,
|
|
835
|
+
(Ke = i(this, ie)) == null ? void 0 : Ke.state.data,
|
|
836
|
+
i(this, ie)
|
|
836
837
|
) : s.placeholderData, s.select && E !== void 0)
|
|
837
838
|
try {
|
|
838
|
-
E = s.select(E), c(this,
|
|
839
|
-
} catch (
|
|
840
|
-
c(this,
|
|
839
|
+
E = s.select(E), c(this, k, null);
|
|
840
|
+
} catch (Z) {
|
|
841
|
+
c(this, k, Z);
|
|
841
842
|
}
|
|
842
|
-
E !== void 0 && (g = "success", S =
|
|
843
|
-
|
|
843
|
+
E !== void 0 && (g = "success", S = Oe(
|
|
844
|
+
u == null ? void 0 : u.data,
|
|
844
845
|
E,
|
|
845
846
|
s
|
|
846
847
|
), m = !0);
|
|
847
848
|
}
|
|
848
|
-
i(this,
|
|
849
|
-
const
|
|
849
|
+
i(this, k) && (w = i(this, k), S = i(this, re), f = Date.now(), g = "error");
|
|
850
|
+
const P = h.fetchStatus === "fetching", U = g === "pending", N = g === "error", ce = U && P, le = S !== void 0, j = {
|
|
850
851
|
status: g,
|
|
851
|
-
fetchStatus:
|
|
852
|
-
isPending:
|
|
852
|
+
fetchStatus: h.fetchStatus,
|
|
853
|
+
isPending: U,
|
|
853
854
|
isSuccess: g === "success",
|
|
854
855
|
isError: N,
|
|
855
|
-
isInitialLoading:
|
|
856
|
-
isLoading:
|
|
856
|
+
isInitialLoading: ce,
|
|
857
|
+
isLoading: ce,
|
|
857
858
|
data: S,
|
|
858
|
-
dataUpdatedAt:
|
|
859
|
+
dataUpdatedAt: h.dataUpdatedAt,
|
|
859
860
|
error: w,
|
|
860
861
|
errorUpdatedAt: f,
|
|
861
|
-
failureCount:
|
|
862
|
-
failureReason:
|
|
863
|
-
errorUpdateCount:
|
|
864
|
-
isFetched:
|
|
865
|
-
isFetchedAfterMount:
|
|
866
|
-
isFetching:
|
|
867
|
-
isRefetching:
|
|
868
|
-
isLoadingError: N && !
|
|
869
|
-
isPaused:
|
|
862
|
+
failureCount: h.fetchFailureCount,
|
|
863
|
+
failureReason: h.fetchFailureReason,
|
|
864
|
+
errorUpdateCount: h.errorUpdateCount,
|
|
865
|
+
isFetched: h.dataUpdateCount > 0 || h.errorUpdateCount > 0,
|
|
866
|
+
isFetchedAfterMount: h.dataUpdateCount > R.dataUpdateCount || h.errorUpdateCount > R.errorUpdateCount,
|
|
867
|
+
isFetching: P,
|
|
868
|
+
isRefetching: P && !U,
|
|
869
|
+
isLoadingError: N && !le,
|
|
870
|
+
isPaused: h.fetchStatus === "paused",
|
|
870
871
|
isPlaceholderData: m,
|
|
871
|
-
isRefetchError: N &&
|
|
872
|
-
isStale:
|
|
872
|
+
isRefetchError: N && le,
|
|
873
|
+
isStale: Le(e, s),
|
|
873
874
|
refetch: this.refetch,
|
|
874
|
-
promise: i(this,
|
|
875
|
+
promise: i(this, L)
|
|
875
876
|
};
|
|
876
877
|
if (this.options.experimental_prefetchInRender) {
|
|
877
|
-
const E = (
|
|
878
|
-
|
|
879
|
-
},
|
|
880
|
-
const
|
|
881
|
-
E(
|
|
882
|
-
}, W = i(this,
|
|
878
|
+
const E = (de) => {
|
|
879
|
+
j.status === "error" ? de.reject(j.error) : j.data !== void 0 && de.resolve(j.data);
|
|
880
|
+
}, Z = () => {
|
|
881
|
+
const de = c(this, L, j.promise = Fe());
|
|
882
|
+
E(de);
|
|
883
|
+
}, W = i(this, L);
|
|
883
884
|
switch (W.status) {
|
|
884
885
|
case "pending":
|
|
885
886
|
e.queryHash === r.queryHash && E(W);
|
|
886
887
|
break;
|
|
887
888
|
case "fulfilled":
|
|
888
|
-
(
|
|
889
|
+
(j.status === "error" || j.data !== W.value) && Z();
|
|
889
890
|
break;
|
|
890
891
|
case "rejected":
|
|
891
|
-
(
|
|
892
|
+
(j.status !== "error" || j.error !== W.reason) && Z();
|
|
892
893
|
break;
|
|
893
894
|
}
|
|
894
895
|
}
|
|
895
|
-
return
|
|
896
|
+
return j;
|
|
896
897
|
}
|
|
897
898
|
updateResult(e) {
|
|
898
|
-
const s = i(this,
|
|
899
|
-
if (c(this, B, i(this, d).state), c(this,
|
|
899
|
+
const s = i(this, O), r = this.createResult(i(this, d), this.options);
|
|
900
|
+
if (c(this, B, i(this, d).state), c(this, se, this.options), i(this, B).data !== void 0 && c(this, ie, i(this, d)), we(r, s))
|
|
900
901
|
return;
|
|
901
|
-
c(this,
|
|
902
|
-
const n = {},
|
|
902
|
+
c(this, O, r);
|
|
903
|
+
const n = {}, u = () => {
|
|
903
904
|
if (!s)
|
|
904
905
|
return !0;
|
|
905
|
-
const { notifyOnChangeProps: a } = this.options,
|
|
906
|
-
if (
|
|
906
|
+
const { notifyOnChangeProps: a } = this.options, o = typeof a == "function" ? a() : a;
|
|
907
|
+
if (o === "all" || !o && !i(this, ne).size)
|
|
907
908
|
return !0;
|
|
908
909
|
const l = new Set(
|
|
909
|
-
|
|
910
|
+
o ?? i(this, ne)
|
|
910
911
|
);
|
|
911
|
-
return this.options.throwOnError && l.add("error"), Object.keys(i(this,
|
|
912
|
+
return this.options.throwOnError && l.add("error"), Object.keys(i(this, O)).some((R) => {
|
|
912
913
|
const v = R;
|
|
913
|
-
return i(this,
|
|
914
|
+
return i(this, O)[v] !== s[v] && l.has(v);
|
|
914
915
|
});
|
|
915
916
|
};
|
|
916
|
-
(e == null ? void 0 : e.listeners) !== !1 &&
|
|
917
|
+
(e == null ? void 0 : e.listeners) !== !1 && u() && (n.listeners = !0), b(this, p, ot).call(this, { ...n, ...e });
|
|
917
918
|
}
|
|
918
919
|
onQueryUpdate() {
|
|
919
920
|
this.updateResult(), this.hasListeners() && b(this, p, De).call(this);
|
|
920
921
|
}
|
|
921
|
-
},
|
|
922
|
-
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);
|
|
923
924
|
let s = i(this, d).fetch(
|
|
924
925
|
this.options,
|
|
925
926
|
e
|
|
926
927
|
);
|
|
927
|
-
return e != null && e.throwOnError || (s = s.catch(
|
|
928
|
-
},
|
|
929
|
-
b(this, p,
|
|
930
|
-
const e =
|
|
928
|
+
return e != null && e.throwOnError || (s = s.catch(ge)), s;
|
|
929
|
+
}, Pe = function() {
|
|
930
|
+
b(this, p, xe).call(this);
|
|
931
|
+
const e = fe(
|
|
931
932
|
this.options.staleTime,
|
|
932
933
|
i(this, d)
|
|
933
934
|
);
|
|
934
|
-
if (V || i(this,
|
|
935
|
+
if (V || i(this, O).isStale || !Re(e))
|
|
935
936
|
return;
|
|
936
|
-
const r =
|
|
937
|
+
const r = et(i(this, O).dataUpdatedAt, e) + 1;
|
|
937
938
|
c(this, G, setTimeout(() => {
|
|
938
|
-
i(this,
|
|
939
|
+
i(this, O).isStale || this.updateResult();
|
|
939
940
|
}, r));
|
|
940
|
-
},
|
|
941
|
+
}, Ie = function() {
|
|
941
942
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(i(this, d)) : this.options.refetchInterval) ?? !1;
|
|
942
943
|
}, Te = function(e) {
|
|
943
|
-
b(this, p,
|
|
944
|
-
(this.options.refetchIntervalInBackground ||
|
|
945
|
-
}, i(this,
|
|
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
|
+
}, i(this, M)));
|
|
946
947
|
}, De = function() {
|
|
947
|
-
b(this, p,
|
|
948
|
-
},
|
|
948
|
+
b(this, p, Pe).call(this), b(this, p, Te).call(this, b(this, p, Ie).call(this));
|
|
949
|
+
}, xe = function() {
|
|
949
950
|
i(this, G) && (clearTimeout(i(this, G)), c(this, G, void 0));
|
|
950
|
-
},
|
|
951
|
+
}, je = function() {
|
|
951
952
|
i(this, z) && (clearInterval(i(this, z)), c(this, z, void 0));
|
|
952
|
-
},
|
|
953
|
-
const e = i(this,
|
|
953
|
+
}, ke = function() {
|
|
954
|
+
const e = i(this, F).getQueryCache().build(i(this, F), this.options);
|
|
954
955
|
if (e === i(this, d))
|
|
955
956
|
return;
|
|
956
957
|
const s = i(this, d);
|
|
957
|
-
c(this, d, e), c(this,
|
|
958
|
-
},
|
|
959
|
-
|
|
958
|
+
c(this, d, e), c(this, ue, e.state), this.hasListeners() && (s == null || s.removeObserver(this), e.addObserver(this));
|
|
959
|
+
}, ot = function(e) {
|
|
960
|
+
Ae.batch(() => {
|
|
960
961
|
e.listeners && this.listeners.forEach((s) => {
|
|
961
|
-
s(i(this,
|
|
962
|
-
}), i(this,
|
|
962
|
+
s(i(this, O));
|
|
963
|
+
}), i(this, F).getQueryCache().notify({
|
|
963
964
|
query: i(this, d),
|
|
964
965
|
type: "observerResultsUpdated"
|
|
965
966
|
});
|
|
966
967
|
});
|
|
967
|
-
},
|
|
968
|
-
function
|
|
969
|
-
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);
|
|
970
971
|
}
|
|
971
|
-
function
|
|
972
|
-
return
|
|
972
|
+
function Ge(t, e) {
|
|
973
|
+
return Pt(t, e) || t.state.data !== void 0 && Ue(t, e, e.refetchOnMount);
|
|
973
974
|
}
|
|
974
975
|
function Ue(t, e, s) {
|
|
975
|
-
if (
|
|
976
|
+
if (x(e.enabled, t) !== !1) {
|
|
976
977
|
const r = typeof s == "function" ? s(t) : s;
|
|
977
|
-
return r === "always" || r !== !1 &&
|
|
978
|
+
return r === "always" || r !== !1 && Le(t, e);
|
|
978
979
|
}
|
|
979
980
|
return !1;
|
|
980
981
|
}
|
|
981
|
-
function
|
|
982
|
-
return (t !== e ||
|
|
982
|
+
function ze(t, e, s, r) {
|
|
983
|
+
return (t !== e || x(r.enabled, t) === !1) && (!s.suspense || t.state.status !== "error") && Le(t, s);
|
|
983
984
|
}
|
|
984
|
-
function
|
|
985
|
-
return
|
|
985
|
+
function Le(t, e) {
|
|
986
|
+
return x(e.enabled, t) !== !1 && t.isStaleByTime(fe(e.staleTime, t));
|
|
986
987
|
}
|
|
987
|
-
function
|
|
988
|
-
return !
|
|
988
|
+
function It(t, e) {
|
|
989
|
+
return !we(t.getCurrentResult(), e);
|
|
989
990
|
}
|
|
990
|
-
var
|
|
991
|
+
var ut = T.createContext(
|
|
991
992
|
void 0
|
|
992
|
-
),
|
|
993
|
-
const e =
|
|
993
|
+
), Tt = (t) => {
|
|
994
|
+
const e = T.useContext(ut);
|
|
995
|
+
if (t)
|
|
996
|
+
return t;
|
|
994
997
|
if (!e)
|
|
995
998
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
996
999
|
return e;
|
|
997
|
-
},
|
|
1000
|
+
}, ss = ({
|
|
998
1001
|
client: t,
|
|
999
1002
|
children: e
|
|
1000
|
-
}) => (
|
|
1003
|
+
}) => (T.useEffect(() => (t.mount(), () => {
|
|
1001
1004
|
t.unmount();
|
|
1002
|
-
}), [t]), /* @__PURE__ */
|
|
1003
|
-
|
|
1004
|
-
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() {
|
|
1005
1008
|
let t = !1;
|
|
1006
1009
|
return {
|
|
1007
1010
|
clearReset: () => {
|
|
@@ -1013,63 +1016,62 @@ function Ft() {
|
|
|
1013
1016
|
isReset: () => t
|
|
1014
1017
|
};
|
|
1015
1018
|
}
|
|
1016
|
-
var
|
|
1017
|
-
function
|
|
1019
|
+
var jt = T.createContext(xt()), kt = () => T.useContext(jt);
|
|
1020
|
+
function Ut(t, e) {
|
|
1018
1021
|
return typeof t == "function" ? t(...e) : !!t;
|
|
1019
1022
|
}
|
|
1020
|
-
function
|
|
1023
|
+
function Ve() {
|
|
1021
1024
|
}
|
|
1022
|
-
var
|
|
1023
|
-
(t.suspense || t.throwOnError) && (e.isReset() || (t.retryOnMount = !1));
|
|
1024
|
-
},
|
|
1025
|
-
|
|
1025
|
+
var Qt = (t, e) => {
|
|
1026
|
+
(t.suspense || t.throwOnError || t.experimental_prefetchInRender) && (e.isReset() || (t.retryOnMount = !1));
|
|
1027
|
+
}, qt = (t) => {
|
|
1028
|
+
T.useEffect(() => {
|
|
1026
1029
|
t.clearReset();
|
|
1027
1030
|
}, [t]);
|
|
1028
|
-
},
|
|
1031
|
+
}, At = ({
|
|
1029
1032
|
result: t,
|
|
1030
1033
|
errorResetBoundary: e,
|
|
1031
1034
|
throwOnError: s,
|
|
1032
1035
|
query: r
|
|
1033
|
-
}) => t.isError && !e.isReset() && !t.isFetching && r &&
|
|
1034
|
-
t.suspense && (
|
|
1035
|
-
},
|
|
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(() => {
|
|
1036
1039
|
s.clearReset();
|
|
1037
1040
|
});
|
|
1038
|
-
function
|
|
1039
|
-
var v,
|
|
1041
|
+
function ct(t, e, s) {
|
|
1042
|
+
var v, h, m, S, w;
|
|
1040
1043
|
if (process.env.NODE_ENV !== "production" && (typeof t != "object" || Array.isArray(t)))
|
|
1041
1044
|
throw new Error(
|
|
1042
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'
|
|
1043
1046
|
);
|
|
1044
|
-
const r =
|
|
1045
|
-
(
|
|
1047
|
+
const r = Tt(s), n = Dt(), u = kt(), a = r.defaultQueryOptions(t);
|
|
1048
|
+
(h = (v = r.getDefaultOptions().queries) == null ? void 0 : v._experimental_beforeQuery) == null || h.call(
|
|
1046
1049
|
v,
|
|
1047
1050
|
a
|
|
1048
|
-
), a._optimisticResults = n ? "isRestoring" : "optimistic",
|
|
1049
|
-
const
|
|
1051
|
+
), a._optimisticResults = n ? "isRestoring" : "optimistic", Mt(a), Qt(a, u), qt(u);
|
|
1052
|
+
const o = !r.getQueryCache().get(a.queryHash), [l] = T.useState(
|
|
1050
1053
|
() => new e(
|
|
1051
1054
|
r,
|
|
1052
1055
|
a
|
|
1053
1056
|
)
|
|
1054
1057
|
), R = l.getOptimisticResult(a);
|
|
1055
|
-
if (
|
|
1056
|
-
|
|
1058
|
+
if (T.useSyncExternalStore(
|
|
1059
|
+
T.useCallback(
|
|
1057
1060
|
(f) => {
|
|
1058
|
-
const g = n ? ()
|
|
1059
|
-
} : l.subscribe(je.batchCalls(f));
|
|
1061
|
+
const g = n ? Ve : l.subscribe(Ae.batchCalls(f));
|
|
1060
1062
|
return l.updateResult(), g;
|
|
1061
1063
|
},
|
|
1062
1064
|
[l, n]
|
|
1063
1065
|
),
|
|
1064
1066
|
() => l.getCurrentResult(),
|
|
1065
1067
|
() => l.getCurrentResult()
|
|
1066
|
-
),
|
|
1068
|
+
), T.useEffect(() => {
|
|
1067
1069
|
l.setOptions(a, { listeners: !1 });
|
|
1068
|
-
}, [a, l]),
|
|
1069
|
-
throw
|
|
1070
|
-
if (
|
|
1070
|
+
}, [a, l]), Kt(a, R))
|
|
1071
|
+
throw $e(a, l, u);
|
|
1072
|
+
if (At({
|
|
1071
1073
|
result: R,
|
|
1072
|
-
errorResetBoundary:
|
|
1074
|
+
errorResetBoundary: u,
|
|
1073
1075
|
throwOnError: a.throwOnError,
|
|
1074
1076
|
query: r.getQueryCache().get(a.queryHash)
|
|
1075
1077
|
}))
|
|
@@ -1078,96 +1080,139 @@ function ot(t, e, s) {
|
|
|
1078
1080
|
m,
|
|
1079
1081
|
a,
|
|
1080
1082
|
R
|
|
1081
|
-
), a.experimental_prefetchInRender && !V &&
|
|
1082
|
-
const f =
|
|
1083
|
+
), a.experimental_prefetchInRender && !V && Nt(R, n)) {
|
|
1084
|
+
const f = o ? (
|
|
1083
1085
|
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
|
1084
|
-
|
|
1086
|
+
$e(a, l, u)
|
|
1085
1087
|
) : (
|
|
1086
1088
|
// subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
|
|
1087
1089
|
(w = r.getQueryCache().get(a.queryHash)) == null ? void 0 : w.promise
|
|
1088
1090
|
);
|
|
1089
|
-
f == null || f.catch(
|
|
1090
|
-
l.
|
|
1091
|
+
f == null || f.catch(Ve).finally(() => {
|
|
1092
|
+
l.updateResult();
|
|
1091
1093
|
});
|
|
1092
1094
|
}
|
|
1093
1095
|
return a.notifyOnChangeProps ? R : l.trackResult(R);
|
|
1094
1096
|
}
|
|
1095
|
-
function
|
|
1096
|
-
return
|
|
1097
|
+
function _t(t, e) {
|
|
1098
|
+
return ct(t, at, e);
|
|
1097
1099
|
}
|
|
1098
|
-
function
|
|
1099
|
-
return process.env.NODE_ENV !== "production" && t.queryFn ===
|
|
1100
|
+
function Ht(t, e) {
|
|
1101
|
+
return process.env.NODE_ENV !== "production" && t.queryFn === ye && console.error("skipToken is not allowed for useSuspenseQuery"), ct(
|
|
1100
1102
|
{
|
|
1101
1103
|
...t,
|
|
1102
1104
|
enabled: !0,
|
|
1103
1105
|
suspense: !0,
|
|
1104
|
-
throwOnError:
|
|
1106
|
+
throwOnError: Lt,
|
|
1105
1107
|
placeholderData: void 0
|
|
1106
1108
|
},
|
|
1107
|
-
|
|
1109
|
+
at,
|
|
1110
|
+
e
|
|
1108
1111
|
);
|
|
1109
1112
|
}
|
|
1110
|
-
const
|
|
1113
|
+
const $ = (...t) => {
|
|
1114
|
+
const e = t.filter((s) => !!s).map((s) => s.replace(/(^\/+|\/+$)/g, "")).join("/").replace(/(^\/+|\/+$)/g, "");
|
|
1115
|
+
return e ? `/${e}` : "/";
|
|
1116
|
+
}, Bt = ft(
|
|
1111
1117
|
void 0
|
|
1112
|
-
),
|
|
1113
|
-
const t =
|
|
1118
|
+
), lt = () => {
|
|
1119
|
+
const t = yt(Bt);
|
|
1114
1120
|
if (!t)
|
|
1115
|
-
throw new Error("
|
|
1121
|
+
throw new Error("useZudoku must be used within a ZudokuProvider.");
|
|
1116
1122
|
return t;
|
|
1117
|
-
},
|
|
1118
|
-
const { getApiIdentities: t } =
|
|
1119
|
-
return
|
|
1123
|
+
}, rs = () => {
|
|
1124
|
+
const { getApiIdentities: t } = lt();
|
|
1125
|
+
return _t({
|
|
1120
1126
|
queryFn: t,
|
|
1121
1127
|
queryKey: ["api-identities"]
|
|
1122
1128
|
});
|
|
1123
|
-
},
|
|
1124
|
-
const {
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
},
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
queryFn: async () => {
|
|
1131
|
-
const a = r ? await t(r) : await t(o.pathname);
|
|
1132
|
-
return {
|
|
1133
|
-
items: [...n, ...a],
|
|
1134
|
-
currentTopNavItem: s
|
|
1135
|
-
};
|
|
1136
|
-
},
|
|
1137
|
-
queryKey: ["navigation", r]
|
|
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]
|
|
1138
1136
|
});
|
|
1137
|
+
return {
|
|
1138
|
+
sidebar: [...n ? n[1] : [], ...a],
|
|
1139
|
+
topNavItem: u
|
|
1140
|
+
};
|
|
1141
|
+
}, Me = (t, e) => {
|
|
1142
|
+
for (const s of t) {
|
|
1143
|
+
const r = Ne(s, e);
|
|
1144
|
+
if (r !== void 0) return r;
|
|
1145
|
+
}
|
|
1146
|
+
}, Ne = (t, e, s = []) => {
|
|
1147
|
+
const r = e(t, s);
|
|
1148
|
+
if (r !== void 0) return r;
|
|
1149
|
+
if (t.type === "category")
|
|
1150
|
+
for (const n of t.items) {
|
|
1151
|
+
const u = Ne(n, e, [
|
|
1152
|
+
...s,
|
|
1153
|
+
t
|
|
1154
|
+
]);
|
|
1155
|
+
if (u !== void 0) return u;
|
|
1156
|
+
}
|
|
1157
|
+
}, is = () => {
|
|
1158
|
+
const t = pe(), s = dt().sidebar;
|
|
1159
|
+
return Me(s, (r) => {
|
|
1160
|
+
if (r.type === "doc" && $(r.id) === t.pathname)
|
|
1161
|
+
return r;
|
|
1162
|
+
});
|
|
1163
|
+
}, ns = (t) => {
|
|
1164
|
+
const e = pe();
|
|
1165
|
+
return Ne(t, (s) => {
|
|
1166
|
+
if (s.type === "category" && s.link && $(s.link.id) === e.pathname || s.type === "doc" && $(s.id) === e.pathname)
|
|
1167
|
+
return !0;
|
|
1168
|
+
});
|
|
1169
|
+
}, as = () => {
|
|
1170
|
+
const t = pe().pathname, s = dt().sidebar;
|
|
1171
|
+
let r, n, u = !1;
|
|
1172
|
+
return Me(s, (a) => {
|
|
1173
|
+
const o = a.type === "doc" ? $(a.id) : a.type === "category" && a.link ? $(a.link.id) : void 0;
|
|
1174
|
+
if (o) {
|
|
1175
|
+
if (u)
|
|
1176
|
+
return n = { label: a.label, id: o }, !0;
|
|
1177
|
+
t === o ? u = !0 : r = { label: a.label, id: o };
|
|
1178
|
+
}
|
|
1179
|
+
}), { prev: r, next: n };
|
|
1139
1180
|
};
|
|
1140
1181
|
export {
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
Yt as
|
|
1170
|
-
|
|
1171
|
-
|
|
1182
|
+
ye as A,
|
|
1183
|
+
ss as B,
|
|
1184
|
+
ns as C,
|
|
1185
|
+
dt as D,
|
|
1186
|
+
Me as E,
|
|
1187
|
+
ts as Q,
|
|
1188
|
+
Ot as R,
|
|
1189
|
+
Qe as S,
|
|
1190
|
+
Bt as Z,
|
|
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,
|
|
1198
|
+
Se as h,
|
|
1199
|
+
rs as i,
|
|
1200
|
+
$ as j,
|
|
1201
|
+
_t as k,
|
|
1202
|
+
bt as l,
|
|
1203
|
+
Jt as m,
|
|
1204
|
+
Ae as n,
|
|
1205
|
+
Xt as o,
|
|
1206
|
+
ge as p,
|
|
1207
|
+
gt as q,
|
|
1208
|
+
es as r,
|
|
1209
|
+
we as s,
|
|
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
|
|
1172
1217
|
};
|
|
1173
|
-
//# sourceMappingURL=
|
|
1218
|
+
//# sourceMappingURL=utils-DcpDOncX.js.map
|