zudoku 0.0.0-ec30b50 → 0.0.0-ed94abf
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 +1 -1
- package/cli.js +3 -0
- package/dist/app/entry.client.d.ts +5 -0
- package/dist/app/entry.client.js +3 -0
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +8 -6
- package/dist/app/entry.server.js +12 -8
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/main.js +10 -5
- package/dist/app/main.js.map +1 -1
- package/dist/app/tailwind.js +20 -0
- package/dist/app/tailwind.js.map +1 -1
- package/dist/cli/build/handler.d.ts +1 -3
- package/dist/cli/build/handler.js +9 -1
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/cli/cli.js +5 -0
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/cmds/build.d.ts +11 -3
- package/dist/cli/cmds/build.js +20 -13
- package/dist/cli/cmds/build.js.map +1 -1
- package/dist/cli/cmds/dev.d.ts +1 -1
- package/dist/cli/cmds/dev.js.map +1 -1
- package/dist/cli/cmds/preview.d.ts +16 -0
- package/dist/cli/cmds/preview.js +25 -0
- package/dist/cli/cmds/preview.js.map +1 -0
- package/dist/cli/common/machine-id/lib.js +1 -0
- package/dist/cli/common/machine-id/lib.js.map +1 -1
- package/dist/cli/common/utils/ports.d.ts +1 -1
- package/dist/cli/common/utils/ports.js +16 -15
- package/dist/cli/common/utils/ports.js.map +1 -1
- package/dist/cli/dev/handler.js +10 -12
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/cli/preview/handler.d.ts +3 -0
- package/dist/cli/preview/handler.js +35 -0
- package/dist/cli/preview/handler.js.map +1 -0
- package/dist/config/ZuploBuildConfig.d.ts +155 -0
- package/dist/config/ZuploBuildConfig.js +29 -0
- package/dist/config/ZuploBuildConfig.js.map +1 -0
- package/dist/config/common.d.ts +5 -3
- package/dist/config/config.d.ts +18 -16
- package/dist/config/loader.d.ts +7 -6
- package/dist/config/loader.js +21 -29
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/BuildSchema.d.ts +60 -0
- package/dist/config/validators/BuildSchema.js +31 -0
- package/dist/config/validators/BuildSchema.js.map +1 -0
- package/dist/config/validators/InputSidebarSchema.d.ts +15 -15
- package/dist/config/validators/InputSidebarSchema.js +10 -1
- package/dist/config/validators/InputSidebarSchema.js.map +1 -1
- package/dist/config/validators/common.d.ts +3205 -691
- package/dist/config/validators/common.js +132 -21
- package/dist/config/validators/common.js.map +1 -1
- package/dist/config/validators/icon-types.d.ts +1 -1
- package/dist/config/validators/validate.d.ts +1192 -305
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/MissingIcon.d.ts +2 -0
- package/dist/lib/MissingIcon.js +7 -0
- package/dist/lib/MissingIcon.js.map +1 -0
- package/dist/lib/authentication/authentication.d.ts +1 -0
- package/dist/lib/authentication/hook.d.ts +1 -0
- package/dist/lib/authentication/hook.js +11 -1
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.d.ts +2 -2
- package/dist/lib/authentication/providers/auth0.js +1 -0
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.d.ts +2 -2
- package/dist/lib/authentication/providers/clerk.js +25 -6
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +5 -3
- package/dist/lib/authentication/providers/openid.js +24 -10
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/providers/supabase.d.ts +4 -0
- package/dist/lib/authentication/providers/supabase.js +117 -0
- package/dist/lib/authentication/providers/supabase.js.map +1 -0
- package/dist/lib/authentication/state.d.ts +0 -26
- package/dist/lib/authentication/state.js +9 -18
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/components/AnchorLink.d.ts +2 -2
- package/dist/lib/components/AnchorLink.js +5 -4
- package/dist/lib/components/AnchorLink.js.map +1 -1
- package/dist/lib/components/Banner.js +1 -1
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/Bootstrap.d.ts +2 -1
- package/dist/lib/components/Bootstrap.js +3 -2
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/BuildCheck.d.ts +4 -0
- package/dist/lib/components/BuildCheck.js +22 -0
- package/dist/lib/components/BuildCheck.js.map +1 -0
- package/dist/lib/components/Footer.d.ts +1 -0
- package/dist/lib/components/Footer.js +32 -0
- package/dist/lib/components/Footer.js.map +1 -0
- package/dist/lib/components/Header.js +4 -4
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +2 -2
- package/dist/lib/components/InlineCode.d.ts +2 -1
- package/dist/lib/components/InlineCode.js +2 -9
- package/dist/lib/components/InlineCode.js.map +1 -1
- package/dist/lib/components/Layout.js +8 -28
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Main.d.ts +2 -0
- package/dist/lib/components/Main.js +17 -0
- package/dist/lib/components/Main.js.map +1 -0
- package/dist/lib/components/MobileTopNavigation.js +6 -3
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/Pagination.d.ts +11 -0
- package/dist/lib/components/Pagination.js +10 -0
- package/dist/lib/components/Pagination.js.map +1 -0
- package/dist/lib/components/Search.js +7 -1
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/ThemeSwitch.js +8 -5
- package/dist/lib/components/ThemeSwitch.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +3 -2
- package/dist/lib/components/TopNavigation.js +28 -14
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Zudoku.d.ts +1 -1
- package/dist/lib/components/Zudoku.js +13 -8
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/cache.d.ts +7 -0
- package/dist/lib/components/cache.js +7 -0
- package/dist/lib/components/cache.js.map +1 -1
- package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
- package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
- package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
- package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
- package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
- package/dist/lib/components/context/ViewportAnchorContext.js +5 -10
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +2 -2
- package/dist/lib/components/context/ZudokuContext.js +21 -9
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/index.d.ts +11 -3
- package/dist/lib/components/index.js +4 -0
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
- package/dist/lib/components/navigation/Sidebar.d.ts +3 -1
- package/dist/lib/components/navigation/Sidebar.js +3 -12
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/SidebarBadge.d.ts +2 -0
- package/dist/lib/components/navigation/SidebarBadge.js +3 -1
- package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
- package/dist/lib/components/navigation/SidebarCategory.js +10 -6
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +1 -0
- package/dist/lib/components/navigation/SidebarItem.js +17 -11
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
- package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/{plugins/markdown → components/navigation}/Toc.js +5 -7
- package/dist/lib/components/navigation/Toc.js.map +1 -0
- package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
- package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
- package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
- package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
- package/dist/lib/components/navigation/ZuploLogo.js +4 -0
- package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
- package/dist/lib/core/RouteGuard.d.ts +2 -1
- package/dist/lib/core/RouteGuard.js +35 -11
- package/dist/lib/core/RouteGuard.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +33 -7
- package/dist/lib/core/ZudokuContext.js +29 -6
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +17 -7
- package/dist/lib/core/plugins.js +3 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.js +6 -1
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/hooks/index.d.ts +3 -0
- package/dist/lib/hooks/index.js +5 -0
- package/dist/lib/hooks/index.js.map +1 -0
- package/dist/lib/hooks/useEvent.d.ts +11 -0
- package/dist/lib/hooks/useEvent.js +19 -0
- package/dist/lib/hooks/useEvent.js.map +1 -0
- package/dist/lib/hooks/useEvent.test.js +100 -0
- package/dist/lib/hooks/useEvent.test.js.map +1 -0
- package/dist/lib/icons.d.ts +1 -0
- package/dist/lib/icons.js +1 -0
- package/dist/lib/icons.js.map +1 -1
- package/dist/lib/oas/graphql/index.d.ts +17 -4
- package/dist/lib/oas/graphql/index.js +151 -38
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/index.js +2 -0
- package/dist/lib/oas/parser/dereference/index.js.map +1 -1
- package/dist/lib/oas/parser/index.d.ts +5 -3
- package/dist/lib/oas/parser/index.js +0 -22
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.js +2 -1
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -2
- package/dist/lib/plugins/api-catalog/Catalog.js +16 -26
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
- package/dist/lib/plugins/api-catalog/index.d.ts +1 -0
- package/dist/lib/plugins/api-catalog/index.js +39 -8
- package/dist/lib/plugins/api-catalog/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.js +7 -3
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +1 -0
- package/dist/lib/plugins/api-keys/index.js +1 -0
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +3 -9
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/resolver.d.ts +0 -6
- package/dist/lib/plugins/markdown/resolver.js +0 -29
- package/dist/lib/plugins/markdown/resolver.js.map +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/{OpenApiRoute.d.ts → OasProvider.d.ts} +1 -2
- package/dist/lib/plugins/openapi/OasProvider.js +29 -0
- package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
- package/dist/lib/plugins/openapi/OperationList.d.ts +2 -2
- package/dist/lib/plugins/openapi/OperationList.js +63 -18
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.d.ts +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +7 -12
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
- package/dist/lib/plugins/openapi/ParamInfos.js +42 -0
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
- package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
- package/dist/lib/plugins/openapi/ParameterList.js +3 -2
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +9 -4
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +3 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
- package/dist/lib/plugins/openapi/SchemaList.js +52 -0
- package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
- package/dist/lib/plugins/openapi/Sidecar.js +39 -10
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.js +2 -2
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.js +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +6 -2
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +6 -5
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
- package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
- package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +9 -5
- package/dist/lib/plugins/openapi/graphql/gql.js +5 -15
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +108 -55
- package/dist/lib/plugins/openapi/graphql/graphql.js +59 -34
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +10 -7
- package/dist/lib/plugins/openapi/index.js +56 -142
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +36 -10
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +2 -2
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +1 -5
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.js +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js +10 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
- package/dist/lib/plugins/openapi/playground/PathParams.js +3 -2
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +14 -3
- package/dist/lib/plugins/openapi/playground/Playground.js +84 -30
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +20 -14
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +6 -4
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +4 -3
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
- package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.js +1 -1
- package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
- package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.js +26 -6
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
- package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.d.ts +3 -1
- package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.js +1 -1
- package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
- package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.js +53 -25
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
- package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.d.ts +3 -1
- package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.js +1 -1
- package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +12 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +2 -4
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +18 -13
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +1 -2
- package/dist/lib/plugins/openapi/schema/SchemaView.js +33 -48
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.d.ts +1 -0
- package/dist/lib/plugins/openapi/schema/utils.js +3 -1
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/state.d.ts +25 -0
- package/dist/lib/plugins/openapi/state.js +18 -0
- package/dist/lib/plugins/openapi/state.js.map +1 -0
- package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +9 -0
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js +23 -0
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -0
- package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
- package/dist/lib/plugins/openapi/util/getRoutes.js +80 -0
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
- package/dist/lib/plugins/search-pagefind/ResultList.js +32 -0
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
- package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
- package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
- package/dist/lib/plugins/search-pagefind/index.js +9 -0
- package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
- package/dist/lib/plugins/search-pagefind/types.js +2 -0
- package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
- package/dist/lib/ui/Badge.d.ts +1 -1
- package/dist/lib/ui/Button.d.ts +2 -2
- package/dist/lib/ui/Button.js +2 -1
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Callout.d.ts +2 -1
- package/dist/lib/ui/Callout.js +3 -2
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Checkbox.d.ts +2 -8
- package/dist/lib/ui/Checkbox.js +1 -13
- package/dist/lib/ui/Checkbox.js.map +1 -1
- package/dist/lib/ui/Command.d.ts +7 -1
- package/dist/lib/ui/Command.js +2 -2
- package/dist/lib/ui/Command.js.map +1 -1
- package/dist/lib/ui/Form.d.ts +1 -1
- package/dist/lib/ui/Select.js +1 -1
- package/dist/lib/ui/Select.js.map +1 -1
- package/dist/lib/ui/Stepper.d.ts +3 -0
- package/dist/lib/ui/Stepper.js +7 -0
- package/dist/lib/ui/Stepper.js.map +1 -0
- package/dist/lib/ui/SyntaxHighlight.d.ts +15 -0
- package/dist/lib/ui/SyntaxHighlight.js +62 -0
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
- package/dist/lib/ui/util.d.ts +2 -0
- package/dist/lib/ui/util.js +3 -0
- package/dist/lib/ui/util.js.map +1 -0
- package/dist/lib/util/MdxComponents.d.ts +6 -2
- package/dist/lib/util/MdxComponents.js +8 -3
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/detectOS.d.ts +1 -0
- package/dist/lib/util/detectOS.js +11 -0
- package/dist/lib/util/detectOS.js.map +1 -0
- package/dist/lib/util/joinPath.d.ts +3 -0
- package/dist/lib/util/joinPath.js +3 -0
- package/dist/lib/util/joinPath.js.map +1 -1
- package/dist/lib/util/traverse.d.ts +2 -8
- package/dist/lib/util/traverse.js +2 -2
- package/dist/lib/util/traverse.js.map +1 -1
- package/dist/lib/util/types.d.ts +7 -0
- package/dist/lib/util/types.js +2 -0
- package/dist/lib/util/types.js.map +1 -0
- package/dist/lib/util/useLatest.d.ts +1 -0
- package/dist/lib/util/useLatest.js +15 -0
- package/dist/lib/util/useLatest.js.map +1 -0
- package/dist/lib/util/useOnScreen.d.ts +3 -2
- package/dist/lib/util/useOnScreen.js +3 -3
- package/dist/lib/util/useOnScreen.js.map +1 -1
- package/dist/lib/util/useScrollToAnchor.js +26 -20
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/vite/api/schema-codegen.d.ts +1 -1
- package/dist/vite/api/schema-codegen.js +34 -11
- package/dist/vite/api/schema-codegen.js.map +1 -1
- package/dist/vite/api/schema-codegen.test.js +66 -0
- package/dist/vite/api/schema-codegen.test.js.map +1 -1
- package/dist/vite/build.js +27 -16
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +2 -5
- package/dist/vite/config.js +66 -70
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +1 -1
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/create-pagefind-index.d.ts +4 -0
- package/dist/vite/create-pagefind-index.js +12 -0
- package/dist/vite/create-pagefind-index.js.map +1 -0
- package/dist/vite/css/plugin.d.ts +2 -2
- package/dist/vite/css/plugin.js.map +1 -1
- package/dist/vite/dev-server.d.ts +4 -2
- package/dist/vite/dev-server.js +42 -12
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/error-handler.d.ts +1 -1
- package/dist/vite/error-handler.js +1 -1
- package/dist/vite/error-handler.js.map +1 -1
- package/dist/vite/output.d.ts +14 -2
- package/dist/vite/output.js +12 -14
- package/dist/vite/output.js.map +1 -1
- package/dist/vite/plugin-api-keys.d.ts +2 -2
- package/dist/vite/plugin-api-keys.js +5 -5
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.d.ts +2 -2
- package/dist/vite/plugin-api.js +98 -54
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +2 -2
- package/dist/vite/plugin-auth.js +3 -3
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +2 -2
- package/dist/vite/plugin-component.js +7 -2
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.d.ts +4 -3
- package/dist/vite/plugin-config-reload.js +13 -6
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +2 -2
- package/dist/vite/plugin-config.js +9 -5
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-custom-pages.d.ts +2 -2
- package/dist/vite/plugin-custom-pages.js +3 -3
- package/dist/vite/plugin-custom-pages.js.map +1 -1
- package/dist/vite/plugin-docs.d.ts +3 -3
- package/dist/vite/plugin-docs.js +23 -6
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-frontmatter.d.ts +2 -2
- package/dist/vite/plugin-frontmatter.js +5 -4
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +2 -2
- package/dist/vite/plugin-mdx.js +32 -27
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-redirect.d.ts +2 -2
- package/dist/vite/plugin-redirect.js +3 -3
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-search.d.ts +2 -2
- package/dist/vite/plugin-search.js +5 -1
- package/dist/vite/plugin-search.js.map +1 -1
- package/dist/vite/plugin-sidebar.d.ts +3 -2
- package/dist/vite/plugin-sidebar.js +15 -6
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/plugin-theme-css.d.ts +2 -2
- package/dist/vite/plugin-theme-css.js.map +1 -1
- package/dist/vite/plugin.d.ts +2 -2
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
- package/dist/vite/prerender/FileWritingResponse.js +51 -0
- package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
- package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
- package/dist/vite/prerender/InMemoryResponse.js +32 -0
- package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
- package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
- package/dist/vite/prerender/PrerenderResponse.js +2 -0
- package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
- package/dist/vite/prerender/prerender.d.ts +15 -0
- package/dist/vite/prerender/prerender.js +109 -0
- package/dist/vite/prerender/prerender.js.map +1 -0
- package/dist/vite/prerender/worker.d.ts +13 -0
- package/dist/vite/prerender/worker.js +59 -0
- package/dist/vite/prerender/worker.js.map +1 -0
- package/dist/vite/reporter.d.ts +3 -0
- package/dist/vite/reporter.js +33 -0
- package/dist/vite/reporter.js.map +1 -0
- package/dist/vite/sitemap.js +2 -1
- package/dist/vite/sitemap.js.map +1 -1
- package/dist/zuplo/enrich-with-zuplo.d.ts +3 -3
- package/dist/zuplo/enrich-with-zuplo.js +18 -17
- package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
- package/dist/zuplo/env.d.ts +26 -0
- package/dist/zuplo/env.js +17 -0
- package/dist/zuplo/env.js.map +1 -1
- package/dist/zuplo/with-zuplo-processors.d.ts +2 -2
- package/dist/zuplo/with-zuplo-processors.js +6 -6
- package/dist/zuplo/with-zuplo-processors.js.map +1 -1
- package/dist/zuplo/with-zuplo.d.ts +4 -1
- package/dist/zuplo/with-zuplo.js +6 -5
- package/dist/zuplo/with-zuplo.js.map +1 -1
- package/lib/{AuthenticationPlugin-DeEA69mE.js → AuthenticationPlugin-CJOFRBk3.js} +4 -4
- package/lib/{AuthenticationPlugin-DeEA69mE.js.map → AuthenticationPlugin-CJOFRBk3.js.map} +1 -1
- package/lib/Button-BBNrKpQd.js +49 -0
- package/lib/Button-BBNrKpQd.js.map +1 -0
- package/lib/Callout-D3Ja4OPX.js +230 -0
- package/lib/Callout-D3Ja4OPX.js.map +1 -0
- package/lib/{CategoryHeading-MYL1u_6K.js → CategoryHeading-D06WK_Wo.js} +3 -3
- package/lib/{CategoryHeading-MYL1u_6K.js.map → CategoryHeading-D06WK_Wo.js.map} +1 -1
- package/lib/Dialog-ByYz4ABw.js +98 -0
- package/lib/Dialog-ByYz4ABw.js.map +1 -0
- package/lib/Drawer-CEwbkLDb.js +1133 -0
- package/lib/Drawer-CEwbkLDb.js.map +1 -0
- package/lib/{Markdown-8mv9nhGd.js → Markdown-C5h6bxbE.js} +8031 -6095
- package/lib/Markdown-C5h6bxbE.js.map +1 -0
- package/lib/MdxPage-DhGqXQTK.js +85 -0
- package/lib/MdxPage-DhGqXQTK.js.map +1 -0
- package/lib/OasProvider-q0ncKgHr.js +34 -0
- package/lib/OasProvider-q0ncKgHr.js.map +1 -0
- package/lib/OperationList-CW4jENLV.js +5069 -0
- package/lib/OperationList-CW4jENLV.js.map +1 -0
- package/lib/Pagination-DsG3YIT_.js +48 -0
- package/lib/Pagination-DsG3YIT_.js.map +1 -0
- package/lib/{index.esm-9-TF9KQB.js → RouteGuard-BZ_VsiXc.js} +196 -144
- package/lib/RouteGuard-BZ_VsiXc.js.map +1 -0
- package/lib/SchemaList-n24-qSa5.js +148 -0
- package/lib/SchemaList-n24-qSa5.js.map +1 -0
- package/lib/SchemaView-DCSWtnYr.js +357 -0
- package/lib/SchemaView-DCSWtnYr.js.map +1 -0
- package/lib/{Select-BcAbBUmk.js → Select-Dg5R11Dx.js} +71 -71
- package/lib/{Select-BcAbBUmk.js.map → Select-Dg5R11Dx.js.map} +1 -1
- package/lib/SlotletProvider-VUmTNmLZ.js +340 -0
- package/lib/SlotletProvider-VUmTNmLZ.js.map +1 -0
- package/lib/Spinner-mNLZ6awP.js +7 -0
- package/lib/Spinner-mNLZ6awP.js.map +1 -0
- package/lib/{SyntaxHighlight-B0L4SC_N.js → SyntaxHighlight-CxhyyMkF.js} +500 -596
- package/lib/SyntaxHighlight-CxhyyMkF.js.map +1 -0
- package/lib/Toc-BK39DQvI.js +92 -0
- package/lib/Toc-BK39DQvI.js.map +1 -0
- package/lib/{_commonjsHelpers-BkfeUUK-.js → _commonjsHelpers-B4e78b8K.js} +2 -2
- package/lib/_commonjsHelpers-B4e78b8K.js.map +1 -0
- package/lib/{chunk-SYFQ2XB5-QijJrSf0.js → chunk-KNED5TY2-BUPjb3LQ.js} +584 -583
- package/lib/chunk-KNED5TY2-BUPjb3LQ.js.map +1 -0
- package/lib/{circular-DxaIIlWD.js → circular-ByJI6Mci.js} +5461 -4993
- package/lib/circular-ByJI6Mci.js.map +1 -0
- package/lib/context-Lrf2Y9bR.js +22 -0
- package/lib/{context-rwLGh-6_.js.map → context-Lrf2Y9bR.js.map} +1 -1
- package/lib/{createServer-E3cXjB0P.js → createServer-DLN7APz_.js} +4641 -4927
- package/lib/createServer-DLN7APz_.js.map +1 -0
- package/lib/hook-pPrHCB6G.js +1478 -0
- package/lib/hook-pPrHCB6G.js.map +1 -0
- package/lib/index-Bn6Lc9tq.js +9 -0
- package/lib/index-Bn6Lc9tq.js.map +1 -0
- package/lib/index-CBpciIfE.js +2054 -0
- package/lib/index-CBpciIfE.js.map +1 -0
- package/lib/index-CPNSgwSb.js +36 -0
- package/lib/{index-Djenk2Hj.js.map → index-CPNSgwSb.js.map} +1 -1
- package/lib/index-CuBIgTKC.js +316 -0
- package/lib/index-CuBIgTKC.js.map +1 -0
- package/lib/{index-Dl3Yl0yb.js → index-DcHeSvkE.js} +51 -38
- package/lib/index-DcHeSvkE.js.map +1 -0
- package/lib/index-DwT-v3zK.js +86 -0
- package/lib/index-DwT-v3zK.js.map +1 -0
- package/lib/{index-CjJS0l4l.js → index-LNp6rxyU.js} +2 -2
- package/lib/{index-CjJS0l4l.js.map → index-LNp6rxyU.js.map} +1 -1
- package/lib/index-bu-rfaLA.js +2227 -0
- package/lib/index-bu-rfaLA.js.map +1 -0
- package/lib/index.esm-D2ZUREQN.js +1216 -0
- package/lib/index.esm-D2ZUREQN.js.map +1 -0
- package/lib/jsx-runtime-C5mzlN2N.js +285 -0
- package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
- package/lib/mutation-Csa9eQDM.js +211 -0
- package/lib/mutation-Csa9eQDM.js.map +1 -0
- package/lib/objectEntries-yMIkr2mI.js +5 -0
- package/lib/objectEntries-yMIkr2mI.js.map +1 -0
- package/lib/prism-bash.min-HHIMdNJ_.js.map +1 -1
- package/lib/{prism-csharp.min-bQAo2pmx.js → prism-csharp.min-C43x1RY2.js} +2 -2
- package/lib/{prism-csharp.min-bQAo2pmx.js.map → prism-csharp.min-C43x1RY2.js.map} +1 -1
- package/lib/{prism-java.min-BpvsOuIa.js → prism-java.min-CQzr40NQ.js} +2 -2
- package/lib/{prism-java.min-BpvsOuIa.js.map → prism-java.min-CQzr40NQ.js.map} +1 -1
- package/lib/prism-javascript.min-CEqHqgbm.js.map +1 -1
- package/lib/prism-json.min-B1GJqK1k.js.map +1 -1
- package/lib/prism-jsstacktrace.min-BfobCF2F.js +2 -0
- package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +1 -0
- package/lib/prism-markdown.min-C0Qn0m-5.js.map +1 -1
- package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
- package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -1
- package/lib/{prism-ruby.min-Dx9KO9ds.js → prism-ruby.min-L9OdQ6tU.js} +2 -2
- package/lib/{prism-ruby.min-Dx9KO9ds.js.map → prism-ruby.min-L9OdQ6tU.js.map} +1 -1
- package/lib/{prism-typescript.min-CD7H2IYQ.js → prism-typescript.min-qTySPvCh.js} +2 -2
- package/lib/{prism-typescript.min-CD7H2IYQ.js.map → prism-typescript.min-qTySPvCh.js.map} +1 -1
- package/lib/processors/removeExtensions.js +11 -0
- package/lib/processors/removeExtensions.js.map +1 -0
- package/lib/{post-processors → processors}/removeParameters.js +1 -1
- package/lib/processors/removeParameters.js.map +1 -0
- package/lib/{post-processors → processors}/removePaths.js +1 -1
- package/lib/processors/removePaths.js.map +1 -0
- package/lib/{post-processors → processors}/traverse.js +2 -2
- package/lib/processors/traverse.js.map +1 -0
- package/lib/ui/Accordion.js +1 -1
- package/lib/ui/ActionButton.js +11 -10
- package/lib/ui/ActionButton.js.map +1 -1
- package/lib/ui/Alert.js +2 -2
- package/lib/ui/AlertDialog.js +1 -1
- package/lib/ui/Badge.js +2 -2
- package/lib/ui/Breadcrumb.js +4 -4
- package/lib/ui/Button.js +13 -12
- package/lib/ui/Button.js.map +1 -1
- package/lib/ui/Callout.js +40 -21
- package/lib/ui/Callout.js.map +1 -1
- package/lib/ui/Card.js +1 -1
- package/lib/ui/Carousel.js +207 -207
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js +16 -26
- package/lib/ui/Checkbox.js.map +1 -1
- package/lib/ui/Command.js +105 -78
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Dialog.js +1 -1
- package/lib/ui/Drawer.js +14 -1151
- package/lib/ui/Drawer.js.map +1 -1
- package/lib/ui/DropdownMenu.js +1 -1
- package/lib/ui/Form.js +5 -5
- package/lib/ui/HoverCard.js +1 -1
- package/lib/ui/Input.js +1 -1
- package/lib/ui/Label.js +2 -2
- package/lib/ui/Pagination.js +10 -10
- package/lib/ui/Popover.js +1 -1
- package/lib/ui/Progress.js +1 -1
- package/lib/ui/RadioGroup.js +1 -1
- package/lib/ui/ScrollArea.js +1 -1
- package/lib/ui/Select.js +2 -2
- package/lib/ui/Select.js.map +1 -1
- package/lib/ui/Skeleton.js +1 -1
- package/lib/ui/Slider.js +1 -1
- package/lib/ui/Stepper.js +6 -0
- package/lib/ui/Stepper.js.map +1 -0
- package/lib/ui/Switch.js +1 -1
- package/lib/ui/SyntaxHighlight.js +11 -0
- package/lib/ui/SyntaxHighlight.js.map +1 -0
- package/lib/ui/Tabs.js +1 -1
- package/lib/ui/Textarea.js +1 -1
- package/lib/ui/Toggle.js +2 -2
- package/lib/ui/ToggleGroup.js +1 -1
- package/lib/ui/Tooltip.js +1 -1
- package/lib/ui/util.js +6 -0
- package/lib/ui/util.js.map +1 -0
- package/lib/{useExposedProps-Bbf99zic.js → useExposedProps-Dq2yUQIG.js} +2 -2
- package/lib/{useExposedProps-Bbf99zic.js.map → useExposedProps-Dq2yUQIG.js.map} +1 -1
- package/lib/useLatest-hmRS46UF.js +11 -0
- package/lib/useLatest-hmRS46UF.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +15 -14
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +67 -49
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +370 -405
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +33 -1303
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +19 -0
- package/lib/zudoku.hooks.js.map +1 -0
- package/lib/zudoku.icons.js +10 -0
- package/lib/zudoku.icons.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +106 -112
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +108 -106
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +3 -3
- package/lib/zudoku.plugin-markdown.js +23 -44
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +6 -7
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +9 -9
- package/lib/zudoku.plugin-search-pagefind.js +233 -0
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
- package/lib/zudoku.plugins.js +14 -0
- package/lib/zudoku.plugins.js.map +1 -0
- package/package.json +100 -74
- package/src/app/entry.client.tsx +10 -0
- package/src/app/entry.server.tsx +23 -13
- package/src/app/main.css +106 -58
- package/src/app/main.tsx +15 -2
- package/src/app/tailwind.ts +20 -0
- package/src/lib/MissingIcon.tsx +22 -0
- package/src/lib/authentication/authentication.ts +2 -0
- package/src/lib/authentication/hook.ts +12 -1
- package/src/lib/authentication/providers/auth0.tsx +3 -2
- package/src/lib/authentication/providers/clerk.tsx +32 -8
- package/src/lib/authentication/providers/openid.tsx +31 -15
- package/src/lib/authentication/providers/supabase.tsx +157 -0
- package/src/lib/authentication/state.ts +9 -37
- package/src/lib/components/AnchorLink.tsx +9 -7
- package/src/lib/components/Banner.tsx +1 -0
- package/src/lib/components/Bootstrap.tsx +13 -6
- package/src/lib/components/BuildCheck.tsx +60 -0
- package/src/lib/components/Footer.tsx +139 -0
- package/src/lib/components/Header.tsx +12 -8
- package/src/lib/components/Heading.tsx +1 -1
- package/src/lib/components/InlineCode.tsx +13 -16
- package/src/lib/components/Layout.tsx +27 -65
- package/src/lib/components/Main.tsx +50 -0
- package/src/lib/components/MobileTopNavigation.tsx +27 -18
- package/src/lib/components/Pagination.tsx +50 -0
- package/src/lib/components/Search.tsx +14 -3
- package/src/lib/components/ThemeSwitch.tsx +28 -8
- package/src/lib/components/TopNavigation.tsx +51 -24
- package/src/lib/components/Zudoku.tsx +18 -7
- package/src/lib/components/cache.ts +8 -0
- package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
- package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
- package/src/lib/components/context/ViewportAnchorContext.tsx +6 -15
- package/src/lib/components/context/ZudokuContext.ts +30 -10
- package/src/lib/components/index.ts +4 -0
- package/src/lib/components/navigation/PoweredByZudoku.tsx +28 -0
- package/src/lib/components/navigation/Sidebar.tsx +37 -44
- package/src/lib/components/navigation/SidebarBadge.tsx +4 -1
- package/src/lib/components/navigation/SidebarCategory.tsx +15 -12
- package/src/lib/components/navigation/SidebarItem.tsx +22 -29
- package/src/lib/components/navigation/SidebarWrapper.tsx +42 -23
- package/src/lib/{plugins/markdown → components/navigation}/Toc.tsx +5 -14
- package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
- package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
- package/src/lib/core/RouteGuard.tsx +73 -12
- package/src/lib/core/ZudokuContext.ts +64 -13
- package/src/lib/core/plugins.ts +29 -7
- package/src/lib/errors/ErrorAlert.tsx +24 -17
- package/src/lib/hooks/index.ts +5 -0
- package/src/lib/hooks/useEvent.test.tsx +149 -0
- package/src/lib/hooks/useEvent.ts +41 -0
- package/src/lib/icons.ts +1 -0
- package/src/lib/oas/graphql/index.ts +206 -54
- package/src/lib/oas/parser/dereference/index.ts +2 -0
- package/src/lib/oas/parser/index.ts +7 -29
- package/src/lib/oas/parser/upgrade/index.ts +2 -1
- package/src/lib/plugins/api-catalog/Catalog.tsx +50 -100
- package/src/lib/plugins/api-catalog/index.tsx +66 -15
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +7 -3
- package/src/lib/plugins/api-keys/index.tsx +3 -0
- package/src/lib/plugins/markdown/MdxPage.tsx +15 -47
- package/src/lib/plugins/markdown/resolver.ts +0 -33
- package/src/lib/plugins/openapi/ColorizedParam.tsx +1 -1
- package/src/lib/plugins/openapi/Endpoint.tsx +1 -1
- package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
- package/src/lib/plugins/openapi/OperationList.tsx +171 -81
- package/src/lib/plugins/openapi/OperationListItem.tsx +118 -104
- package/src/lib/plugins/openapi/ParamInfos.tsx +87 -0
- package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
- package/src/lib/plugins/openapi/ParameterListItem.tsx +35 -23
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +8 -1
- package/src/lib/plugins/openapi/SchemaList.tsx +151 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +50 -14
- package/src/lib/plugins/openapi/SidecarExamples.tsx +1 -2
- package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
- package/src/lib/plugins/openapi/client/GraphQLClient.tsx +1 -1
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +13 -5
- package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
- package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
- package/src/lib/plugins/openapi/graphql/gql.ts +34 -17
- package/src/lib/plugins/openapi/graphql/graphql.ts +172 -86
- package/src/lib/plugins/openapi/index.tsx +82 -177
- package/src/lib/plugins/openapi/interfaces.ts +44 -15
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +30 -32
- package/src/lib/plugins/openapi/playground/Headers.tsx +0 -1
- package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +54 -0
- package/src/lib/plugins/openapi/playground/PathParams.tsx +8 -2
- package/src/lib/plugins/openapi/playground/Playground.tsx +199 -110
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +0 -1
- package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
- package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
- package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +1 -1
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +25 -5
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +67 -45
- package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.ts +29 -9
- package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.ts +5 -3
- package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.ts +67 -33
- package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.ts +5 -3
- package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
- package/src/lib/plugins/openapi/{post-processors → processors}/removePaths.ts +5 -3
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
- package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +36 -0
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +47 -50
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +84 -138
- package/src/lib/plugins/openapi/schema/utils.ts +7 -1
- package/src/lib/plugins/openapi/state.ts +36 -0
- package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +37 -0
- package/src/lib/plugins/openapi/util/getRoutes.tsx +126 -0
- package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +164 -0
- package/src/lib/plugins/search-pagefind/ResultList.tsx +105 -0
- package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
- package/src/lib/plugins/search-pagefind/index.tsx +21 -0
- package/src/lib/plugins/search-pagefind/types.ts +118 -0
- package/src/lib/ui/Button.tsx +4 -2
- package/src/lib/ui/Callout.tsx +29 -10
- package/src/lib/ui/Checkbox.tsx +8 -24
- package/src/lib/ui/Command.tsx +25 -3
- package/src/lib/ui/Select.tsx +1 -1
- package/src/lib/ui/Stepper.tsx +8 -0
- package/src/lib/ui/SyntaxHighlight.tsx +186 -0
- package/src/lib/ui/util.tsx +3 -0
- package/src/lib/util/MdxComponents.tsx +9 -4
- package/src/lib/util/detectOS.ts +9 -0
- package/src/lib/util/joinPath.tsx +3 -0
- package/src/lib/util/traverse.ts +4 -8
- package/src/lib/util/types.ts +7 -0
- package/src/lib/util/useLatest.ts +18 -0
- package/src/lib/util/useOnScreen.ts +6 -4
- package/src/lib/util/useScrollToAnchor.ts +30 -20
- package/client.d.ts +0 -8
- package/dist/lib/components/SyntaxHighlight.d.ts +0 -12
- package/dist/lib/components/SyntaxHighlight.js +0 -53
- package/dist/lib/components/SyntaxHighlight.js.map +0 -1
- package/dist/lib/components/context/PluginSystem.js +0 -2
- package/dist/lib/components/context/PluginSystem.js.map +0 -1
- package/dist/lib/plugins/markdown/Toc.js.map +0 -1
- package/dist/lib/plugins/openapi/OpenApiRoute.js +0 -25
- package/dist/lib/plugins/openapi/OpenApiRoute.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +0 -7
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +0 -104
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/traverse.js.map +0 -1
- package/dist/vite/prerender.d.ts +0 -22
- package/dist/vite/prerender.js +0 -89
- package/dist/vite/prerender.js.map +0 -1
- package/lib/Markdown-8mv9nhGd.js.map +0 -1
- package/lib/MdxPage-BalfwlsD.js +0 -193
- package/lib/MdxPage-BalfwlsD.js.map +0 -1
- package/lib/OpenApiRoute-ULLXjfro.js +0 -36
- package/lib/OpenApiRoute-ULLXjfro.js.map +0 -1
- package/lib/OperationList-B3VX94x4.js +0 -5179
- package/lib/OperationList-B3VX94x4.js.map +0 -1
- package/lib/SlotletProvider-D0mFmGJu.js +0 -221
- package/lib/SlotletProvider-D0mFmGJu.js.map +0 -1
- package/lib/Spinner-BlzrEEk1.js +0 -51
- package/lib/Spinner-BlzrEEk1.js.map +0 -1
- package/lib/SyntaxHighlight-B0L4SC_N.js.map +0 -1
- package/lib/ZudokuContext-dUyBGMap.js +0 -1229
- package/lib/ZudokuContext-dUyBGMap.js.map +0 -1
- package/lib/__vite-browser-external-BYRIRx8p.js +0 -9
- package/lib/__vite-browser-external-BYRIRx8p.js.map +0 -1
- package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
- package/lib/chunk-SYFQ2XB5-QijJrSf0.js.map +0 -1
- package/lib/circular-DxaIIlWD.js.map +0 -1
- package/lib/context-rwLGh-6_.js +0 -22
- package/lib/createServer-E3cXjB0P.js.map +0 -1
- package/lib/hook-NIpDSpau.js +0 -227
- package/lib/hook-NIpDSpau.js.map +0 -1
- package/lib/index-B7mqiOei.js +0 -509
- package/lib/index-B7mqiOei.js.map +0 -1
- package/lib/index-Djenk2Hj.js +0 -36
- package/lib/index-Dl3Yl0yb.js.map +0 -1
- package/lib/index-P0YUtHIb.js +0 -2065
- package/lib/index-P0YUtHIb.js.map +0 -1
- package/lib/index.esm-9-TF9KQB.js.map +0 -1
- package/lib/index.esm-CrSoEshU.js +0 -1207
- package/lib/index.esm-CrSoEshU.js.map +0 -1
- package/lib/joinUrl-nLx9pD-Z.js +0 -20
- package/lib/joinUrl-nLx9pD-Z.js.map +0 -1
- package/lib/jsx-runtime-Bdg6XQ1m.js +0 -446
- package/lib/jsx-runtime-Bdg6XQ1m.js.map +0 -1
- package/lib/post-processors/removeExtensions.js +0 -11
- package/lib/post-processors/removeExtensions.js.map +0 -1
- package/lib/post-processors/removeParameters.js.map +0 -1
- package/lib/post-processors/removePaths.js.map +0 -1
- package/lib/post-processors/traverse.js.map +0 -1
- package/lib/state-bfQxaDxU.js +0 -211
- package/lib/state-bfQxaDxU.js.map +0 -1
- package/lib/useScrollToAnchor-BVCQSeKB.js +0 -286
- package/lib/useScrollToAnchor-BVCQSeKB.js.map +0 -1
- package/src/lib/components/SyntaxHighlight.tsx +0 -171
- package/src/lib/components/context/PluginSystem.ts +0 -0
- package/src/lib/plugins/openapi/OpenApiRoute.tsx +0 -51
- package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +0 -126
- /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
- /package/dist/lib/{components/context/PluginSystem.d.ts → hooks/useEvent.test.d.ts} +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.d.ts +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.d.ts +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.test.d.ts +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.d.ts +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.js +0 -0
- /package/src/lib/plugins/openapi/{post-processors → processors}/traverse.ts +0 -0
package/lib/ui/Carousel.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { j as R } from "../jsx-runtime-
|
|
1
|
+
import { j as R } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import * as j from "react";
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { ArrowLeft as
|
|
3
|
+
import { useRef as qt, useState as $t, useCallback as fn, useEffect as It } from "react";
|
|
4
|
+
import { ArrowLeft as dn, ArrowRight as pn } from "lucide-react";
|
|
5
5
|
import { c as gt } from "../cn-qaFjX9_3.js";
|
|
6
|
-
import { Button as
|
|
7
|
-
function
|
|
6
|
+
import { Button as Xt } from "./Button.js";
|
|
7
|
+
function mn(t) {
|
|
8
8
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
return
|
|
10
|
+
function Kt(t) {
|
|
11
|
+
return mn(t) || Array.isArray(t);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function gn() {
|
|
14
14
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
15
15
|
}
|
|
16
16
|
function At(t, n) {
|
|
@@ -19,15 +19,15 @@ function At(t, n) {
|
|
|
19
19
|
const i = JSON.stringify(Object.keys(t.breakpoints || {})), s = JSON.stringify(Object.keys(n.breakpoints || {}));
|
|
20
20
|
return i !== s ? !1 : o.every((e) => {
|
|
21
21
|
const a = t[e], u = n[e];
|
|
22
|
-
return typeof a == "function" ? `${a}` == `${u}` :
|
|
22
|
+
return typeof a == "function" ? `${a}` == `${u}` : !Kt(a) || !Kt(u) ? a === u : At(a, u);
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Ut(t) {
|
|
26
26
|
return t.concat().sort((n, o) => n.name > o.name ? 1 : -1).map((n) => n.options);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function hn(t, n) {
|
|
29
29
|
if (t.length !== n.length) return !1;
|
|
30
|
-
const o =
|
|
30
|
+
const o = Ut(t), r = Ut(n);
|
|
31
31
|
return o.every((i, s) => {
|
|
32
32
|
const e = r[s];
|
|
33
33
|
return At(i, e);
|
|
@@ -42,7 +42,7 @@ function Tt(t) {
|
|
|
42
42
|
function xt(t) {
|
|
43
43
|
return typeof t == "boolean";
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Qt(t) {
|
|
46
46
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
47
47
|
}
|
|
48
48
|
function D(t) {
|
|
@@ -54,7 +54,7 @@ function Pt(t) {
|
|
|
54
54
|
function ft(t, n) {
|
|
55
55
|
return D(t - n);
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Sn(t, n) {
|
|
58
58
|
if (t === 0 || n === 0 || D(t) <= D(n)) return 0;
|
|
59
59
|
const o = ft(D(t), D(n));
|
|
60
60
|
return D(o / t);
|
|
@@ -74,22 +74,22 @@ function ht(t) {
|
|
|
74
74
|
function Ot(t, n) {
|
|
75
75
|
return n === ht(t);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Jt(t, n = 0) {
|
|
78
78
|
return Array.from(Array(t), (o, r) => n + r);
|
|
79
79
|
}
|
|
80
80
|
function pt(t) {
|
|
81
81
|
return Object.keys(t);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Yt(t, n) {
|
|
84
84
|
return [t, n].reduce((o, r) => (pt(r).forEach((i) => {
|
|
85
|
-
const s = o[i], e = r[i], a =
|
|
86
|
-
o[i] = a ?
|
|
85
|
+
const s = o[i], e = r[i], a = Qt(s) && Qt(e);
|
|
86
|
+
o[i] = a ? Yt(s, e) : e;
|
|
87
87
|
}), o), {});
|
|
88
88
|
}
|
|
89
89
|
function Nt(t, n) {
|
|
90
90
|
return typeof n.MouseEvent < "u" && t instanceof n.MouseEvent;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function xn(t, n) {
|
|
93
93
|
const o = {
|
|
94
94
|
start: r,
|
|
95
95
|
center: i,
|
|
@@ -134,7 +134,7 @@ function mt() {
|
|
|
134
134
|
};
|
|
135
135
|
return r;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function bn(t, n, o, r) {
|
|
138
138
|
const i = mt(), s = 1e3 / 60;
|
|
139
139
|
let e = null, a = 0, u = 0;
|
|
140
140
|
function c() {
|
|
@@ -142,7 +142,7 @@ function xn(t, n, o, r) {
|
|
|
142
142
|
t.hidden && l();
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function S() {
|
|
146
146
|
x(), i.clear();
|
|
147
147
|
}
|
|
148
148
|
function d(h) {
|
|
@@ -165,15 +165,15 @@ function xn(t, n, o, r) {
|
|
|
165
165
|
}
|
|
166
166
|
return {
|
|
167
167
|
init: c,
|
|
168
|
-
destroy:
|
|
168
|
+
destroy: S,
|
|
169
169
|
start: p,
|
|
170
170
|
stop: x,
|
|
171
171
|
update: o,
|
|
172
172
|
render: r
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
const o = n === "rtl", r = t === "y", i = r ? "y" : "x", s = r ? "x" : "y", e = !r && o ? -1 : 1, a =
|
|
175
|
+
function En(t, n) {
|
|
176
|
+
const o = n === "rtl", r = t === "y", i = r ? "y" : "x", s = r ? "x" : "y", e = !r && o ? -1 : 1, a = S(), u = d();
|
|
177
177
|
function c(l) {
|
|
178
178
|
const {
|
|
179
179
|
height: m,
|
|
@@ -181,7 +181,7 @@ function bn(t, n) {
|
|
|
181
181
|
} = l;
|
|
182
182
|
return r ? m : h;
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function S() {
|
|
185
185
|
return r ? "top" : o ? "right" : "left";
|
|
186
186
|
}
|
|
187
187
|
function d() {
|
|
@@ -227,7 +227,7 @@ function et(t = 0, n = 0) {
|
|
|
227
227
|
removeOffset: a
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function _t(t, n, o) {
|
|
231
231
|
const {
|
|
232
232
|
constrain: r
|
|
233
233
|
} = et(0, t), i = t + 1;
|
|
@@ -242,20 +242,20 @@ function Yt(t, n, o) {
|
|
|
242
242
|
return s = e(p), d;
|
|
243
243
|
}
|
|
244
244
|
function c(p) {
|
|
245
|
-
return
|
|
245
|
+
return S().set(a() + p);
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
return
|
|
247
|
+
function S() {
|
|
248
|
+
return _t(t, a(), o);
|
|
249
249
|
}
|
|
250
250
|
const d = {
|
|
251
251
|
get: a,
|
|
252
252
|
set: u,
|
|
253
253
|
add: c,
|
|
254
|
-
clone:
|
|
254
|
+
clone: S
|
|
255
255
|
};
|
|
256
256
|
return d;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function vn(t, n, o, r, i, s, e, a, u, c, S, d, p, x, l, m, h, f, g) {
|
|
259
259
|
const {
|
|
260
260
|
cross: b,
|
|
261
261
|
direction: L
|
|
@@ -269,10 +269,10 @@ function En(t, n, o, r, i, s, e, a, u, c, y, d, p, x, l, m, h, f, g) {
|
|
|
269
269
|
touch: 600
|
|
270
270
|
}, F = l ? 43 : 25;
|
|
271
271
|
let G = !1, H = 0, q = 0, W = !1, _ = !1, U = !1, Q = !1;
|
|
272
|
-
function it(
|
|
272
|
+
function it(y) {
|
|
273
273
|
if (!g) return;
|
|
274
274
|
function T(k) {
|
|
275
|
-
(xt(g) || g(
|
|
275
|
+
(xt(g) || g(y, k)) && ut(k);
|
|
276
276
|
}
|
|
277
277
|
const O = n;
|
|
278
278
|
E.add(O, "dragstart", (k) => k.preventDefault(), C).add(O, "touchmove", () => {
|
|
@@ -283,38 +283,38 @@ function En(t, n, o, r, i, s, e, a, u, c, y, d, p, x, l, m, h, f, g) {
|
|
|
283
283
|
E.clear(), v.clear();
|
|
284
284
|
}
|
|
285
285
|
function ot() {
|
|
286
|
-
const
|
|
287
|
-
v.add(
|
|
286
|
+
const y = Q ? o : n;
|
|
287
|
+
v.add(y, "touchmove", z, C).add(y, "touchend", M).add(y, "mousemove", z, C).add(y, "mouseup", M);
|
|
288
288
|
}
|
|
289
|
-
function rt(
|
|
290
|
-
const T =
|
|
289
|
+
function rt(y) {
|
|
290
|
+
const T = y.nodeName || "";
|
|
291
291
|
return N.includes(T);
|
|
292
292
|
}
|
|
293
293
|
function J() {
|
|
294
294
|
return (l ? I : P)[Q ? "mouse" : "touch"];
|
|
295
295
|
}
|
|
296
|
-
function ct(
|
|
297
|
-
const O = d.add(Pt(
|
|
298
|
-
return l || D(
|
|
296
|
+
function ct(y, T) {
|
|
297
|
+
const O = d.add(Pt(y) * -1), k = S.byDistance(y, !l).distance;
|
|
298
|
+
return l || D(y) < w ? k : h && T ? k * 0.5 : S.byIndex(O.get(), 0).distance;
|
|
299
299
|
}
|
|
300
|
-
function ut(
|
|
301
|
-
const T = Nt(
|
|
302
|
-
Q = T, U = l && T && !
|
|
300
|
+
function ut(y) {
|
|
301
|
+
const T = Nt(y, r);
|
|
302
|
+
Q = T, U = l && T && !y.buttons && G, G = ft(i.get(), e.get()) >= 2, !(T && y.button !== 0) && (rt(y.target) || (W = !0, s.pointerDown(y), c.useFriction(0).useDuration(0), i.set(e), ot(), H = s.readPoint(y), q = s.readPoint(y, b), p.emit("pointerDown")));
|
|
303
303
|
}
|
|
304
|
-
function z(
|
|
305
|
-
if (!Nt(
|
|
306
|
-
const O = s.readPoint(
|
|
307
|
-
if (!_ && !Q && (!
|
|
308
|
-
return M(
|
|
309
|
-
const tt = s.pointerMove(
|
|
310
|
-
K > m && (U = !0), c.useFriction(0.3).useDuration(0.75), a.start(), i.add(L(tt)),
|
|
304
|
+
function z(y) {
|
|
305
|
+
if (!Nt(y, r) && y.touches.length >= 2) return M(y);
|
|
306
|
+
const O = s.readPoint(y), k = s.readPoint(y, b), K = ft(O, H), Y = ft(k, q);
|
|
307
|
+
if (!_ && !Q && (!y.cancelable || (_ = K > Y, !_)))
|
|
308
|
+
return M(y);
|
|
309
|
+
const tt = s.pointerMove(y);
|
|
310
|
+
K > m && (U = !0), c.useFriction(0.3).useDuration(0.75), a.start(), i.add(L(tt)), y.preventDefault();
|
|
311
311
|
}
|
|
312
|
-
function M(
|
|
313
|
-
const O =
|
|
312
|
+
function M(y) {
|
|
313
|
+
const O = S.byDistance(0, !1).index !== d.get(), k = s.pointerUp(y) * J(), K = ct(L(k), O), Y = Sn(k, K), tt = F - 10 * Y, Z = f + Y / 50;
|
|
314
314
|
_ = !1, W = !1, v.clear(), c.useDuration(tt).useFriction(Z), u.distance(K, !l), Q = !1, p.emit("pointerUp");
|
|
315
315
|
}
|
|
316
|
-
function X(
|
|
317
|
-
U && (
|
|
316
|
+
function X(y) {
|
|
317
|
+
U && (y.stopPropagation(), y.preventDefault(), U = !1);
|
|
318
318
|
}
|
|
319
319
|
function B() {
|
|
320
320
|
return W;
|
|
@@ -325,7 +325,7 @@ function En(t, n, o, r, i, s, e, a, u, c, y, d, p, x, l, m, h, f, g) {
|
|
|
325
325
|
pointerDown: B
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function Ln(t, n) {
|
|
329
329
|
let r, i;
|
|
330
330
|
function s(d) {
|
|
331
331
|
return d.timeStamp;
|
|
@@ -353,7 +353,7 @@ function vn(t, n) {
|
|
|
353
353
|
readPoint: e
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function Cn() {
|
|
357
357
|
function t(o) {
|
|
358
358
|
const {
|
|
359
359
|
offsetTop: r,
|
|
@@ -374,7 +374,7 @@ function Ln() {
|
|
|
374
374
|
measure: t
|
|
375
375
|
};
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function wn(t) {
|
|
378
378
|
function n(r) {
|
|
379
379
|
return t * (r / 100);
|
|
380
380
|
}
|
|
@@ -382,19 +382,19 @@ function Cn(t) {
|
|
|
382
382
|
measure: n
|
|
383
383
|
};
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function In(t, n, o, r, i, s, e) {
|
|
386
386
|
const a = [t].concat(r);
|
|
387
|
-
let u, c,
|
|
387
|
+
let u, c, S = [], d = !1;
|
|
388
388
|
function p(h) {
|
|
389
389
|
return i.measureSize(e.measure(h));
|
|
390
390
|
}
|
|
391
391
|
function x(h) {
|
|
392
392
|
if (!s) return;
|
|
393
|
-
c = p(t),
|
|
393
|
+
c = p(t), S = r.map(p);
|
|
394
394
|
function f(g) {
|
|
395
395
|
for (const b of g) {
|
|
396
396
|
if (d) return;
|
|
397
|
-
const L = b.target === t, N = r.indexOf(b.target), C = L ? c :
|
|
397
|
+
const L = b.target === t, N = r.indexOf(b.target), C = L ? c : S[N], E = p(L ? t : r[N]);
|
|
398
398
|
if (D(E - C) >= 0.5) {
|
|
399
399
|
h.reInit(), n.emit("resize");
|
|
400
400
|
break;
|
|
@@ -415,12 +415,12 @@ function wn(t, n, o, r, i, s, e) {
|
|
|
415
415
|
destroy: l
|
|
416
416
|
};
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
let e = 0, a = 0, u = i, c = s,
|
|
418
|
+
function Tn(t, n, o, r, i, s) {
|
|
419
|
+
let e = 0, a = 0, u = i, c = s, S = t.get(), d = 0;
|
|
420
420
|
function p() {
|
|
421
421
|
const C = r.get() - t.get(), E = !u;
|
|
422
422
|
let v = 0;
|
|
423
|
-
return E ? (e = 0, o.set(r), t.set(r), v = C) : (o.set(t), e += C / u, e *= c,
|
|
423
|
+
return E ? (e = 0, o.set(r), t.set(r), v = C) : (o.set(t), e += C / u, e *= c, S += e, t.add(e), v = S - d), a = Pt(v), d = S, N;
|
|
424
424
|
}
|
|
425
425
|
function x() {
|
|
426
426
|
const C = r.get() - n.get();
|
|
@@ -460,13 +460,13 @@ function In(t, n, o, r, i, s) {
|
|
|
460
460
|
};
|
|
461
461
|
return N;
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function Nn(t, n, o, r, i) {
|
|
464
464
|
const s = i.measure(10), e = i.measure(50), a = et(0.1, 0.99);
|
|
465
465
|
let u = !1;
|
|
466
466
|
function c() {
|
|
467
467
|
return !(u || !t.reachedAny(o.get()) || !t.reachedAny(n.get()));
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function S(x) {
|
|
470
470
|
if (!c()) return;
|
|
471
471
|
const l = t.reachedMin(n.get()) ? "min" : "max", m = D(t[l] - n.get()), h = o.get() - n.get(), f = a.constrain(m / e);
|
|
472
472
|
o.subtract(h * f), !x && D(h) < s && (o.set(t.constrain(o.get())), r.useDuration(25).useBaseFriction());
|
|
@@ -476,16 +476,16 @@ function Tn(t, n, o, r, i) {
|
|
|
476
476
|
}
|
|
477
477
|
return {
|
|
478
478
|
shouldConstrain: c,
|
|
479
|
-
constrain:
|
|
479
|
+
constrain: S,
|
|
480
480
|
toggleActive: d
|
|
481
481
|
};
|
|
482
482
|
}
|
|
483
|
-
function
|
|
484
|
-
const s = et(-n + t, 0), e = d(), a =
|
|
483
|
+
function An(t, n, o, r, i) {
|
|
484
|
+
const s = et(-n + t, 0), e = d(), a = S(), u = p();
|
|
485
485
|
function c(l, m) {
|
|
486
486
|
return ft(l, m) <= 1;
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function S() {
|
|
489
489
|
const l = e[0], m = V(e), h = e.lastIndexOf(l), f = e.indexOf(m) + 1;
|
|
490
490
|
return et(h, f);
|
|
491
491
|
}
|
|
@@ -512,13 +512,13 @@ function Nn(t, n, o, r, i) {
|
|
|
512
512
|
scrollContainLimit: a
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Dn(t, n, o) {
|
|
516
516
|
const r = n[0], i = o ? r - t : V(n);
|
|
517
517
|
return {
|
|
518
518
|
limit: et(i, r)
|
|
519
519
|
};
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function Pn(t, n, o, r) {
|
|
522
522
|
const s = n.min + 0.1, e = n.max + 0.1, {
|
|
523
523
|
reachedMin: a,
|
|
524
524
|
reachedMax: u
|
|
@@ -526,16 +526,16 @@ function Dn(t, n, o, r) {
|
|
|
526
526
|
function c(p) {
|
|
527
527
|
return p === 1 ? u(o.get()) : p === -1 ? a(o.get()) : !1;
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function S(p) {
|
|
530
530
|
if (!c(p)) return;
|
|
531
531
|
const x = t * (p * -1);
|
|
532
532
|
r.forEach((l) => l.add(x));
|
|
533
533
|
}
|
|
534
534
|
return {
|
|
535
|
-
loop:
|
|
535
|
+
loop: S
|
|
536
536
|
};
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function On(t) {
|
|
539
539
|
const {
|
|
540
540
|
max: n,
|
|
541
541
|
length: o
|
|
@@ -548,13 +548,13 @@ function Pn(t) {
|
|
|
548
548
|
get: r
|
|
549
549
|
};
|
|
550
550
|
}
|
|
551
|
-
function
|
|
551
|
+
function Mn(t, n, o, r, i) {
|
|
552
552
|
const {
|
|
553
553
|
startEdge: s,
|
|
554
554
|
endEdge: e
|
|
555
555
|
} = t, {
|
|
556
556
|
groupSlides: a
|
|
557
|
-
} = i, u = d().map(n.measure), c = p(),
|
|
557
|
+
} = i, u = d().map(n.measure), c = p(), S = x();
|
|
558
558
|
function d() {
|
|
559
559
|
return a(r).map((m) => V(m)[e] - m[0][s]).map(D);
|
|
560
560
|
}
|
|
@@ -566,27 +566,27 @@ function On(t, n, o, r, i) {
|
|
|
566
566
|
}
|
|
567
567
|
return {
|
|
568
568
|
snaps: c,
|
|
569
|
-
snapsAligned:
|
|
569
|
+
snapsAligned: S
|
|
570
570
|
};
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function kn(t, n, o, r, i, s) {
|
|
573
573
|
const {
|
|
574
574
|
groupSlides: e
|
|
575
575
|
} = i, {
|
|
576
576
|
min: a,
|
|
577
577
|
max: u
|
|
578
|
-
} = r, c =
|
|
579
|
-
function
|
|
578
|
+
} = r, c = S();
|
|
579
|
+
function S() {
|
|
580
580
|
const p = e(s), x = !t || n === "keepSnaps";
|
|
581
581
|
return o.length === 1 ? [s] : x ? p : p.slice(a, u).map((l, m, h) => {
|
|
582
582
|
const f = !m, g = Ot(h, m);
|
|
583
583
|
if (f) {
|
|
584
584
|
const b = V(h[0]) + 1;
|
|
585
|
-
return
|
|
585
|
+
return Jt(b);
|
|
586
586
|
}
|
|
587
587
|
if (g) {
|
|
588
588
|
const b = ht(s) - V(h)[0] + 1;
|
|
589
|
-
return
|
|
589
|
+
return Jt(b, V(h)[0]);
|
|
590
590
|
}
|
|
591
591
|
return l;
|
|
592
592
|
});
|
|
@@ -595,7 +595,7 @@ function Mn(t, n, o, r, i, s) {
|
|
|
595
595
|
slideRegistry: c
|
|
596
596
|
};
|
|
597
597
|
}
|
|
598
|
-
function
|
|
598
|
+
function jn(t, n, o, r, i) {
|
|
599
599
|
const {
|
|
600
600
|
reachedAny: s,
|
|
601
601
|
removeOffset: e,
|
|
@@ -606,7 +606,7 @@ function kn(t, n, o, r, i) {
|
|
|
606
606
|
}
|
|
607
607
|
function c(l) {
|
|
608
608
|
const m = t ? e(l) : a(l), h = n.map((g, b) => ({
|
|
609
|
-
diff:
|
|
609
|
+
diff: S(g - m, 0),
|
|
610
610
|
index: b
|
|
611
611
|
})).sort((g, b) => D(g.diff) - D(b.diff)), {
|
|
612
612
|
index: f
|
|
@@ -616,7 +616,7 @@ function kn(t, n, o, r, i) {
|
|
|
616
616
|
distance: m
|
|
617
617
|
};
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function S(l, m) {
|
|
620
620
|
const h = [l, l + o, l - o];
|
|
621
621
|
if (!t) return l;
|
|
622
622
|
if (!m) return u(h);
|
|
@@ -624,7 +624,7 @@ function kn(t, n, o, r, i) {
|
|
|
624
624
|
return f.length ? u(f) : V(h) - o;
|
|
625
625
|
}
|
|
626
626
|
function d(l, m) {
|
|
627
|
-
const h = n[l] - i.get(), f =
|
|
627
|
+
const h = n[l] - i.get(), f = S(h, m);
|
|
628
628
|
return {
|
|
629
629
|
index: l,
|
|
630
630
|
distance: f
|
|
@@ -639,7 +639,7 @@ function kn(t, n, o, r, i) {
|
|
|
639
639
|
index: f,
|
|
640
640
|
distance: l
|
|
641
641
|
};
|
|
642
|
-
const L = n[f] - g, N = l +
|
|
642
|
+
const L = n[f] - g, N = l + S(L, 0);
|
|
643
643
|
return {
|
|
644
644
|
index: f,
|
|
645
645
|
distance: N
|
|
@@ -648,10 +648,10 @@ function kn(t, n, o, r, i) {
|
|
|
648
648
|
return {
|
|
649
649
|
byDistance: p,
|
|
650
650
|
byIndex: d,
|
|
651
|
-
shortcut:
|
|
651
|
+
shortcut: S
|
|
652
652
|
};
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function Fn(t, n, o, r, i, s, e) {
|
|
655
655
|
function a(d) {
|
|
656
656
|
const p = d.distance, x = d.index !== n.get();
|
|
657
657
|
s.add(p), p && (r.duration() ? t.start() : (t.update(), t.render(1), t.update())), x && (o.set(n.get()), n.set(d.index), e.emit("select"));
|
|
@@ -669,13 +669,13 @@ function jn(t, n, o, r, i, s, e) {
|
|
|
669
669
|
index: c
|
|
670
670
|
};
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function zn(t, n, o, r, i, s, e, a) {
|
|
673
673
|
const u = {
|
|
674
674
|
passive: !0,
|
|
675
675
|
capture: !0
|
|
676
676
|
};
|
|
677
677
|
let c = 0;
|
|
678
|
-
function
|
|
678
|
+
function S(x) {
|
|
679
679
|
if (!a) return;
|
|
680
680
|
function l(m) {
|
|
681
681
|
if ((/* @__PURE__ */ new Date()).getTime() - c > 10) return;
|
|
@@ -693,7 +693,7 @@ function Fn(t, n, o, r, i, s, e, a) {
|
|
|
693
693
|
x.code === "Tab" && (c = (/* @__PURE__ */ new Date()).getTime());
|
|
694
694
|
}
|
|
695
695
|
return {
|
|
696
|
-
init:
|
|
696
|
+
init: S
|
|
697
697
|
};
|
|
698
698
|
}
|
|
699
699
|
function lt(t) {
|
|
@@ -720,7 +720,7 @@ function lt(t) {
|
|
|
720
720
|
subtract: s
|
|
721
721
|
};
|
|
722
722
|
}
|
|
723
|
-
function
|
|
723
|
+
function Zt(t, n) {
|
|
724
724
|
const o = t.scroll === "x" ? e : a, r = n.style;
|
|
725
725
|
let i = null, s = !1;
|
|
726
726
|
function e(p) {
|
|
@@ -737,17 +737,17 @@ function _t(t, n) {
|
|
|
737
737
|
function c(p) {
|
|
738
738
|
s = !p;
|
|
739
739
|
}
|
|
740
|
-
function
|
|
740
|
+
function S() {
|
|
741
741
|
s || (r.transform = "", n.getAttribute("style") || n.removeAttribute("style"));
|
|
742
742
|
}
|
|
743
743
|
return {
|
|
744
|
-
clear:
|
|
744
|
+
clear: S,
|
|
745
745
|
to: u,
|
|
746
746
|
toggleActive: c
|
|
747
747
|
};
|
|
748
748
|
}
|
|
749
|
-
function
|
|
750
|
-
const
|
|
749
|
+
function Bn(t, n, o, r, i, s, e, a, u) {
|
|
750
|
+
const S = dt(i), d = dt(i).reverse(), p = f().concat(g());
|
|
751
751
|
function x(E, v) {
|
|
752
752
|
return E.reduce((w, P) => w - i[P], v);
|
|
753
753
|
}
|
|
@@ -768,7 +768,7 @@ function zn(t, n, o, r, i, s, e, a, u) {
|
|
|
768
768
|
index: I,
|
|
769
769
|
loopPoint: q,
|
|
770
770
|
slideLocation: lt(-1),
|
|
771
|
-
translate:
|
|
771
|
+
translate: Zt(t, u[I]),
|
|
772
772
|
target: () => a.get() > q ? F : G
|
|
773
773
|
};
|
|
774
774
|
});
|
|
@@ -778,14 +778,14 @@ function zn(t, n, o, r, i, s, e, a, u) {
|
|
|
778
778
|
return h(v, o, !1);
|
|
779
779
|
}
|
|
780
780
|
function g() {
|
|
781
|
-
const E = n - e[0] - 1, v = l(
|
|
781
|
+
const E = n - e[0] - 1, v = l(S, E);
|
|
782
782
|
return h(v, -o, !0);
|
|
783
783
|
}
|
|
784
784
|
function b() {
|
|
785
785
|
return p.every(({
|
|
786
786
|
index: E
|
|
787
787
|
}) => {
|
|
788
|
-
const v =
|
|
788
|
+
const v = S.filter((w) => w !== E);
|
|
789
789
|
return x(v, n) <= 0.1;
|
|
790
790
|
});
|
|
791
791
|
}
|
|
@@ -809,19 +809,19 @@ function zn(t, n, o, r, i, s, e, a, u) {
|
|
|
809
809
|
loopPoints: p
|
|
810
810
|
};
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function Rn(t, n, o) {
|
|
813
813
|
let r, i = !1;
|
|
814
814
|
function s(u) {
|
|
815
815
|
if (!o) return;
|
|
816
|
-
function c(
|
|
817
|
-
for (const d of
|
|
816
|
+
function c(S) {
|
|
817
|
+
for (const d of S)
|
|
818
818
|
if (d.type === "childList") {
|
|
819
819
|
u.reInit(), n.emit("slidesChanged");
|
|
820
820
|
break;
|
|
821
821
|
}
|
|
822
822
|
}
|
|
823
|
-
r = new MutationObserver((
|
|
824
|
-
i || (xt(o) || o(u,
|
|
823
|
+
r = new MutationObserver((S) => {
|
|
824
|
+
i || (xt(o) || o(u, S)) && c(S);
|
|
825
825
|
}), r.observe(t, {
|
|
826
826
|
childList: !0
|
|
827
827
|
});
|
|
@@ -834,7 +834,7 @@ function Bn(t, n, o) {
|
|
|
834
834
|
destroy: e
|
|
835
835
|
};
|
|
836
836
|
}
|
|
837
|
-
function
|
|
837
|
+
function Vn(t, n, o, r) {
|
|
838
838
|
const i = {};
|
|
839
839
|
let s = null, e = null, a, u = !1;
|
|
840
840
|
function c() {
|
|
@@ -848,7 +848,7 @@ function Rn(t, n, o, r) {
|
|
|
848
848
|
threshold: r
|
|
849
849
|
}), n.forEach((l) => a.observe(l));
|
|
850
850
|
}
|
|
851
|
-
function
|
|
851
|
+
function S() {
|
|
852
852
|
a && a.disconnect(), u = !0;
|
|
853
853
|
}
|
|
854
854
|
function d(l) {
|
|
@@ -867,16 +867,16 @@ function Rn(t, n, o, r) {
|
|
|
867
867
|
}
|
|
868
868
|
return {
|
|
869
869
|
init: c,
|
|
870
|
-
destroy:
|
|
870
|
+
destroy: S,
|
|
871
871
|
get: p
|
|
872
872
|
};
|
|
873
873
|
}
|
|
874
|
-
function
|
|
874
|
+
function Gn(t, n, o, r, i, s) {
|
|
875
875
|
const {
|
|
876
876
|
measureSize: e,
|
|
877
877
|
startEdge: a,
|
|
878
878
|
endEdge: u
|
|
879
|
-
} = t, c = o[0] && i,
|
|
879
|
+
} = t, c = o[0] && i, S = l(), d = m(), p = o.map(e), x = h();
|
|
880
880
|
function l() {
|
|
881
881
|
if (!c) return 0;
|
|
882
882
|
const g = o[0];
|
|
@@ -890,20 +890,20 @@ function Vn(t, n, o, r, i, s) {
|
|
|
890
890
|
function h() {
|
|
891
891
|
return o.map((g, b, L) => {
|
|
892
892
|
const N = !b, C = Ot(L, b);
|
|
893
|
-
return N ? p[b] +
|
|
893
|
+
return N ? p[b] + S : C ? p[b] + d : L[b + 1][a] - g[a];
|
|
894
894
|
}).map(D);
|
|
895
895
|
}
|
|
896
896
|
return {
|
|
897
897
|
slideSizes: p,
|
|
898
898
|
slideSizesWithGaps: x,
|
|
899
|
-
startGap:
|
|
899
|
+
startGap: S,
|
|
900
900
|
endGap: d
|
|
901
901
|
};
|
|
902
902
|
}
|
|
903
|
-
function
|
|
903
|
+
function Hn(t, n, o, r, i, s, e, a, u) {
|
|
904
904
|
const {
|
|
905
905
|
startEdge: c,
|
|
906
|
-
endEdge:
|
|
906
|
+
endEdge: S,
|
|
907
907
|
direction: d
|
|
908
908
|
} = t, p = Dt(o);
|
|
909
909
|
function x(f, g) {
|
|
@@ -911,7 +911,7 @@ function Gn(t, n, o, r, i, s, e, a, u) {
|
|
|
911
911
|
}
|
|
912
912
|
function l(f) {
|
|
913
913
|
return f.length ? dt(f).reduce((g, b, L) => {
|
|
914
|
-
const N = V(g) || 0, C = N === 0, E = b === ht(f), v = i[c] - s[N][c], w = i[c] - s[b][
|
|
914
|
+
const N = V(g) || 0, C = N === 0, E = b === ht(f), v = i[c] - s[N][c], w = i[c] - s[b][S], P = !r && C ? d(e) : 0, I = !r && E ? d(a) : 0, F = D(w - I - (v + P));
|
|
915
915
|
return L && F > n + u && g.push(b), E && g.push(f.length), g;
|
|
916
916
|
}, []).map((g, b, L) => {
|
|
917
917
|
const N = Math.max(L[b - 1] || 0);
|
|
@@ -925,12 +925,12 @@ function Gn(t, n, o, r, i, s, e, a, u) {
|
|
|
925
925
|
groupSlides: m
|
|
926
926
|
};
|
|
927
927
|
}
|
|
928
|
-
function
|
|
928
|
+
function qn(t, n, o, r, i, s, e) {
|
|
929
929
|
const {
|
|
930
930
|
align: a,
|
|
931
931
|
axis: u,
|
|
932
932
|
direction: c,
|
|
933
|
-
startIndex:
|
|
933
|
+
startIndex: S,
|
|
934
934
|
loop: d,
|
|
935
935
|
duration: p,
|
|
936
936
|
dragFree: x,
|
|
@@ -943,51 +943,51 @@ function Hn(t, n, o, r, i, s, e) {
|
|
|
943
943
|
watchSlides: L,
|
|
944
944
|
watchDrag: N,
|
|
945
945
|
watchFocus: C
|
|
946
|
-
} = s, E = 2, v =
|
|
946
|
+
} = s, E = 2, v = Cn(), w = v.measure(n), P = o.map(v.measure), I = En(u, c), F = I.measureSize(w), G = wn(F), H = xn(a, F), q = !d && !!g, W = d || !!g, {
|
|
947
947
|
slideSizes: _,
|
|
948
948
|
slideSizesWithGaps: U,
|
|
949
949
|
startGap: Q,
|
|
950
950
|
endGap: it
|
|
951
|
-
} =
|
|
951
|
+
} = Gn(I, w, P, o, W, i), $ = Hn(I, F, h, d, w, P, Q, it, E), {
|
|
952
952
|
snaps: ot,
|
|
953
953
|
snapsAligned: rt
|
|
954
|
-
} =
|
|
954
|
+
} = Mn(I, H, w, P, $), J = -V(ot) + V(U), {
|
|
955
955
|
snapsContained: ct,
|
|
956
956
|
scrollContainLimit: ut
|
|
957
|
-
} =
|
|
957
|
+
} = An(F, J, rt, g, E), z = q ? ct : rt, {
|
|
958
958
|
limit: M
|
|
959
|
-
} =
|
|
959
|
+
} = Dn(J, z, d), X = _t(ht(z), S, d), B = X.clone(), A = dt(o), y = ({
|
|
960
960
|
dragHandler: st,
|
|
961
961
|
scrollBody: Ct,
|
|
962
962
|
scrollBounds: wt,
|
|
963
963
|
options: {
|
|
964
|
-
loop:
|
|
964
|
+
loop: St
|
|
965
965
|
}
|
|
966
966
|
}) => {
|
|
967
|
-
|
|
967
|
+
St || wt.constrain(st.pointerDown()), Ct.seek();
|
|
968
968
|
}, T = ({
|
|
969
969
|
scrollBody: st,
|
|
970
970
|
translate: Ct,
|
|
971
971
|
location: wt,
|
|
972
|
-
offsetLocation:
|
|
973
|
-
previousLocation:
|
|
974
|
-
scrollLooper:
|
|
975
|
-
slideLooper:
|
|
976
|
-
dragHandler:
|
|
977
|
-
animation:
|
|
972
|
+
offsetLocation: St,
|
|
973
|
+
previousLocation: en,
|
|
974
|
+
scrollLooper: on,
|
|
975
|
+
slideLooper: rn,
|
|
976
|
+
dragHandler: sn,
|
|
977
|
+
animation: cn,
|
|
978
978
|
eventHandler: zt,
|
|
979
|
-
scrollBounds:
|
|
979
|
+
scrollBounds: un,
|
|
980
980
|
options: {
|
|
981
981
|
loop: Bt
|
|
982
982
|
}
|
|
983
983
|
}, Rt) => {
|
|
984
|
-
const Vt = st.settled(),
|
|
985
|
-
|
|
986
|
-
const
|
|
987
|
-
|
|
988
|
-
}, O =
|
|
984
|
+
const Vt = st.settled(), an = !un.shouldConstrain(), Gt = Bt ? Vt : Vt && an, Ht = Gt && !sn.pointerDown();
|
|
985
|
+
Ht && cn.stop();
|
|
986
|
+
const ln = wt.get() * Rt + en.get() * (1 - Rt);
|
|
987
|
+
St.set(ln), Bt && (on.loop(st.direction()), rn.loop()), Ct.to(St.get()), Ht && zt.emit("settle"), Gt || zt.emit("scroll");
|
|
988
|
+
}, O = bn(r, i, () => y(Lt), (st) => T(Lt, st)), k = 0.68, K = z[X.get()], Y = lt(K), tt = lt(K), Z = lt(K), nt = lt(K), at = Tn(Y, Z, tt, nt, p, k), Et = jn(d, z, J, M, nt), vt = Fn(O, X, B, at, Et, nt, e), kt = On(M), jt = mt(), tn = Vn(n, o, e, m), {
|
|
989
989
|
slideRegistry: Ft
|
|
990
|
-
} =
|
|
990
|
+
} = kn(q, g, z, ut, $, A), nn = zn(t, o, Ft, vt, at, jt, e, C), Lt = {
|
|
991
991
|
ownerDocument: r,
|
|
992
992
|
ownerWindow: i,
|
|
993
993
|
eventHandler: e,
|
|
@@ -995,7 +995,7 @@ function Hn(t, n, o, r, i, s, e) {
|
|
|
995
995
|
slideRects: P,
|
|
996
996
|
animation: O,
|
|
997
997
|
axis: I,
|
|
998
|
-
dragHandler:
|
|
998
|
+
dragHandler: vn(I, t, r, i, nt, Ln(I, i), Y, O, vt, at, Et, X, e, G, x, l, f, k, N),
|
|
999
999
|
eventStore: jt,
|
|
1000
1000
|
percentOfView: G,
|
|
1001
1001
|
index: X,
|
|
@@ -1005,28 +1005,28 @@ function Hn(t, n, o, r, i, s, e) {
|
|
|
1005
1005
|
offsetLocation: Z,
|
|
1006
1006
|
previousLocation: tt,
|
|
1007
1007
|
options: s,
|
|
1008
|
-
resizeHandler:
|
|
1008
|
+
resizeHandler: In(n, e, i, o, I, b, v),
|
|
1009
1009
|
scrollBody: at,
|
|
1010
|
-
scrollBounds:
|
|
1011
|
-
scrollLooper:
|
|
1010
|
+
scrollBounds: Nn(M, Z, nt, at, G),
|
|
1011
|
+
scrollLooper: Pn(J, M, Z, [Y, Z, tt, nt]),
|
|
1012
1012
|
scrollProgress: kt,
|
|
1013
1013
|
scrollSnapList: z.map(kt.get),
|
|
1014
1014
|
scrollSnaps: z,
|
|
1015
1015
|
scrollTarget: Et,
|
|
1016
1016
|
scrollTo: vt,
|
|
1017
|
-
slideLooper:
|
|
1018
|
-
slideFocus:
|
|
1019
|
-
slidesHandler:
|
|
1020
|
-
slidesInView:
|
|
1017
|
+
slideLooper: Bn(I, F, J, _, U, ot, z, Z, o),
|
|
1018
|
+
slideFocus: nn,
|
|
1019
|
+
slidesHandler: Rn(n, e, L),
|
|
1020
|
+
slidesInView: tn,
|
|
1021
1021
|
slideIndexes: A,
|
|
1022
1022
|
slideRegistry: Ft,
|
|
1023
1023
|
slidesToScroll: $,
|
|
1024
1024
|
target: nt,
|
|
1025
|
-
translate:
|
|
1025
|
+
translate: Zt(I, n)
|
|
1026
1026
|
};
|
|
1027
1027
|
return Lt;
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function $n() {
|
|
1030
1030
|
let t = {}, n;
|
|
1031
1031
|
function o(c) {
|
|
1032
1032
|
n = c;
|
|
@@ -1035,13 +1035,13 @@ function qn() {
|
|
|
1035
1035
|
return t[c] || [];
|
|
1036
1036
|
}
|
|
1037
1037
|
function i(c) {
|
|
1038
|
-
return r(c).forEach((
|
|
1038
|
+
return r(c).forEach((S) => S(n, c)), u;
|
|
1039
1039
|
}
|
|
1040
|
-
function s(c,
|
|
1041
|
-
return t[c] = r(c).concat([
|
|
1040
|
+
function s(c, S) {
|
|
1041
|
+
return t[c] = r(c).concat([S]), u;
|
|
1042
1042
|
}
|
|
1043
|
-
function e(c,
|
|
1044
|
-
return t[c] = r(c).filter((d) => d !==
|
|
1043
|
+
function e(c, S) {
|
|
1044
|
+
return t[c] = r(c).filter((d) => d !== S), u;
|
|
1045
1045
|
}
|
|
1046
1046
|
function a() {
|
|
1047
1047
|
t = {};
|
|
@@ -1055,7 +1055,7 @@ function qn() {
|
|
|
1055
1055
|
};
|
|
1056
1056
|
return u;
|
|
1057
1057
|
}
|
|
1058
|
-
const
|
|
1058
|
+
const Kn = {
|
|
1059
1059
|
align: "center",
|
|
1060
1060
|
axis: "x",
|
|
1061
1061
|
container: null,
|
|
@@ -1077,9 +1077,9 @@ const $n = {
|
|
|
1077
1077
|
watchSlides: !0,
|
|
1078
1078
|
watchFocus: !0
|
|
1079
1079
|
};
|
|
1080
|
-
function
|
|
1080
|
+
function Un(t) {
|
|
1081
1081
|
function n(s, e) {
|
|
1082
|
-
return
|
|
1082
|
+
return Yt(s, e || {});
|
|
1083
1083
|
}
|
|
1084
1084
|
function o(s) {
|
|
1085
1085
|
const e = s.breakpoints || {}, a = pt(e).filter((u) => t.matchMedia(u).matches).map((u) => e[u]).reduce((u, c) => n(u, c), {});
|
|
@@ -1094,7 +1094,7 @@ function Kn(t) {
|
|
|
1094
1094
|
optionsMediaQueries: r
|
|
1095
1095
|
};
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1097
|
+
function Qn(t) {
|
|
1098
1098
|
let n = [];
|
|
1099
1099
|
function o(s, e) {
|
|
1100
1100
|
return n = e.filter(({
|
|
@@ -1111,46 +1111,46 @@ function Un(t) {
|
|
|
1111
1111
|
destroy: r
|
|
1112
1112
|
};
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1115
|
-
const r = t.ownerDocument, i = r.defaultView, s =
|
|
1114
|
+
function yt(t, n, o) {
|
|
1115
|
+
const r = t.ownerDocument, i = r.defaultView, s = Un(i), e = Qn(s), a = mt(), u = $n(), {
|
|
1116
1116
|
mergeOptions: c,
|
|
1117
|
-
optionsAtMedia:
|
|
1117
|
+
optionsAtMedia: S,
|
|
1118
1118
|
optionsMediaQueries: d
|
|
1119
1119
|
} = s, {
|
|
1120
1120
|
on: p,
|
|
1121
1121
|
off: x,
|
|
1122
1122
|
emit: l
|
|
1123
1123
|
} = u, m = I;
|
|
1124
|
-
let h = !1, f, g = c(
|
|
1124
|
+
let h = !1, f, g = c(Kn, yt.globalOptions), b = c(g), L = [], N, C, E;
|
|
1125
1125
|
function v() {
|
|
1126
1126
|
const {
|
|
1127
1127
|
container: A,
|
|
1128
|
-
slides:
|
|
1128
|
+
slides: y
|
|
1129
1129
|
} = b;
|
|
1130
1130
|
C = (Tt(A) ? t.querySelector(A) : A) || t.children[0];
|
|
1131
|
-
const O = Tt(
|
|
1131
|
+
const O = Tt(y) ? C.querySelectorAll(y) : y;
|
|
1132
1132
|
E = [].slice.call(O || C.children);
|
|
1133
1133
|
}
|
|
1134
1134
|
function w(A) {
|
|
1135
|
-
const
|
|
1136
|
-
if (A.loop && !
|
|
1135
|
+
const y = qn(t, C, E, r, i, A, u);
|
|
1136
|
+
if (A.loop && !y.slideLooper.canLoop()) {
|
|
1137
1137
|
const T = Object.assign({}, A, {
|
|
1138
1138
|
loop: !1
|
|
1139
1139
|
});
|
|
1140
1140
|
return w(T);
|
|
1141
1141
|
}
|
|
1142
|
-
return
|
|
1142
|
+
return y;
|
|
1143
1143
|
}
|
|
1144
|
-
function P(A,
|
|
1145
|
-
h || (g = c(g, A), b =
|
|
1144
|
+
function P(A, y) {
|
|
1145
|
+
h || (g = c(g, A), b = S(g), L = y || L, v(), f = w(b), d([g, ...L.map(({
|
|
1146
1146
|
options: T
|
|
1147
1147
|
}) => T)]).forEach((T) => a.add(T, "change", I)), b.active && (f.translate.to(f.location.get()), f.animation.init(), f.slidesInView.init(), f.slideFocus.init(B), f.eventHandler.init(B), f.resizeHandler.init(B), f.slidesHandler.init(B), f.options.loop && f.slideLooper.loop(), C.offsetParent && E.length && f.dragHandler.init(B), N = e.init(B, L)));
|
|
1148
1148
|
}
|
|
1149
|
-
function I(A,
|
|
1149
|
+
function I(A, y) {
|
|
1150
1150
|
const T = $();
|
|
1151
1151
|
F(), P(c({
|
|
1152
1152
|
startIndex: T
|
|
1153
|
-
}, A),
|
|
1153
|
+
}, A), y), u.emit("reInit");
|
|
1154
1154
|
}
|
|
1155
1155
|
function F() {
|
|
1156
1156
|
f.dragHandler.destroy(), f.eventStore.clear(), f.translate.clear(), f.slideLooper.clear(), f.resizeHandler.destroy(), f.slidesHandler.destroy(), f.slidesInView.destroy(), f.animation.destroy(), e.destroy(), a.clear();
|
|
@@ -1158,16 +1158,16 @@ function St(t, n, o) {
|
|
|
1158
1158
|
function G() {
|
|
1159
1159
|
h || (h = !0, a.clear(), F(), u.emit("destroy"), u.clear());
|
|
1160
1160
|
}
|
|
1161
|
-
function H(A,
|
|
1162
|
-
!b.active || h || (f.scrollBody.useBaseFriction().useDuration(
|
|
1161
|
+
function H(A, y, T) {
|
|
1162
|
+
!b.active || h || (f.scrollBody.useBaseFriction().useDuration(y === !0 ? 0 : b.duration), f.scrollTo.index(A, T || 0));
|
|
1163
1163
|
}
|
|
1164
1164
|
function q(A) {
|
|
1165
|
-
const
|
|
1166
|
-
H(
|
|
1165
|
+
const y = f.index.add(1).get();
|
|
1166
|
+
H(y, A, -1);
|
|
1167
1167
|
}
|
|
1168
1168
|
function W(A) {
|
|
1169
|
-
const
|
|
1170
|
-
H(
|
|
1169
|
+
const y = f.index.add(-1).get();
|
|
1170
|
+
H(y, A, 1);
|
|
1171
1171
|
}
|
|
1172
1172
|
function _() {
|
|
1173
1173
|
return f.index.add(1).get() !== $();
|
|
@@ -1179,7 +1179,7 @@ function St(t, n, o) {
|
|
|
1179
1179
|
return f.scrollSnapList;
|
|
1180
1180
|
}
|
|
1181
1181
|
function it() {
|
|
1182
|
-
return f.scrollProgress.get(f.
|
|
1182
|
+
return f.scrollProgress.get(f.offsetLocation.get());
|
|
1183
1183
|
}
|
|
1184
1184
|
function $() {
|
|
1185
1185
|
return f.index.get();
|
|
@@ -1233,33 +1233,33 @@ function St(t, n, o) {
|
|
|
1233
1233
|
};
|
|
1234
1234
|
return P(n, o), setTimeout(() => u.emit("init"), 0), B;
|
|
1235
1235
|
}
|
|
1236
|
-
|
|
1236
|
+
yt.globalOptions = void 0;
|
|
1237
1237
|
function Mt(t = {}, n = []) {
|
|
1238
|
-
const o =
|
|
1238
|
+
const o = qt(t), r = qt(n), [i, s] = $t(), [e, a] = $t(), u = fn(() => {
|
|
1239
1239
|
i && i.reInit(o.current, r.current);
|
|
1240
1240
|
}, [i]);
|
|
1241
1241
|
return It(() => {
|
|
1242
1242
|
At(o.current, t) || (o.current = t, u());
|
|
1243
1243
|
}, [t, u]), It(() => {
|
|
1244
|
-
|
|
1244
|
+
hn(r.current, n) || (r.current = n, u());
|
|
1245
1245
|
}, [n, u]), It(() => {
|
|
1246
|
-
if (
|
|
1247
|
-
|
|
1248
|
-
const c =
|
|
1246
|
+
if (gn() && e) {
|
|
1247
|
+
yt.globalOptions = Mt.globalOptions;
|
|
1248
|
+
const c = yt(e, o.current, r.current);
|
|
1249
1249
|
return s(c), () => c.destroy();
|
|
1250
1250
|
} else
|
|
1251
1251
|
s(void 0);
|
|
1252
1252
|
}, [e, s]), [a, i];
|
|
1253
1253
|
}
|
|
1254
1254
|
Mt.globalOptions = void 0;
|
|
1255
|
-
const
|
|
1255
|
+
const Wt = j.createContext(null);
|
|
1256
1256
|
function bt() {
|
|
1257
|
-
const t = j.useContext(
|
|
1257
|
+
const t = j.useContext(Wt);
|
|
1258
1258
|
if (!t)
|
|
1259
1259
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
1260
1260
|
return t;
|
|
1261
1261
|
}
|
|
1262
|
-
const
|
|
1262
|
+
const Jn = j.forwardRef(
|
|
1263
1263
|
({
|
|
1264
1264
|
orientation: t = "horizontal",
|
|
1265
1265
|
opts: n,
|
|
@@ -1275,7 +1275,7 @@ const Qn = j.forwardRef(
|
|
|
1275
1275
|
axis: t === "horizontal" ? "x" : "y"
|
|
1276
1276
|
},
|
|
1277
1277
|
r
|
|
1278
|
-
), [
|
|
1278
|
+
), [S, d] = j.useState(!1), [p, x] = j.useState(!1), l = j.useCallback((g) => {
|
|
1279
1279
|
g && (d(g.canScrollPrev()), x(g.canScrollNext()));
|
|
1280
1280
|
}, []), m = j.useCallback(() => {
|
|
1281
1281
|
c == null || c.scrollPrev();
|
|
@@ -1295,7 +1295,7 @@ const Qn = j.forwardRef(
|
|
|
1295
1295
|
c.off("select", l);
|
|
1296
1296
|
};
|
|
1297
1297
|
}, [c, l]), /* @__PURE__ */ R.jsx(
|
|
1298
|
-
|
|
1298
|
+
Wt.Provider,
|
|
1299
1299
|
{
|
|
1300
1300
|
value: {
|
|
1301
1301
|
carouselRef: u,
|
|
@@ -1304,7 +1304,7 @@ const Qn = j.forwardRef(
|
|
|
1304
1304
|
orientation: t || ((n == null ? void 0 : n.axis) === "y" ? "vertical" : "horizontal"),
|
|
1305
1305
|
scrollPrev: m,
|
|
1306
1306
|
scrollNext: h,
|
|
1307
|
-
canScrollPrev:
|
|
1307
|
+
canScrollPrev: S,
|
|
1308
1308
|
canScrollNext: p
|
|
1309
1309
|
},
|
|
1310
1310
|
children: /* @__PURE__ */ R.jsx(
|
|
@@ -1323,8 +1323,8 @@ const Qn = j.forwardRef(
|
|
|
1323
1323
|
);
|
|
1324
1324
|
}
|
|
1325
1325
|
);
|
|
1326
|
-
|
|
1327
|
-
const
|
|
1326
|
+
Jn.displayName = "Carousel";
|
|
1327
|
+
const Xn = j.forwardRef(({ className: t, ...n }, o) => {
|
|
1328
1328
|
const { carouselRef: r, orientation: i } = bt();
|
|
1329
1329
|
return /* @__PURE__ */ R.jsx("div", { ref: r, className: "overflow-hidden", children: /* @__PURE__ */ R.jsx(
|
|
1330
1330
|
"div",
|
|
@@ -1339,8 +1339,8 @@ const Jn = j.forwardRef(({ className: t, ...n }, o) => {
|
|
|
1339
1339
|
}
|
|
1340
1340
|
) });
|
|
1341
1341
|
});
|
|
1342
|
-
|
|
1343
|
-
const
|
|
1342
|
+
Xn.displayName = "CarouselContent";
|
|
1343
|
+
const Yn = j.forwardRef(({ className: t, ...n }, o) => {
|
|
1344
1344
|
const { orientation: r } = bt();
|
|
1345
1345
|
return /* @__PURE__ */ R.jsx(
|
|
1346
1346
|
"div",
|
|
@@ -1357,11 +1357,11 @@ const Xn = j.forwardRef(({ className: t, ...n }, o) => {
|
|
|
1357
1357
|
}
|
|
1358
1358
|
);
|
|
1359
1359
|
});
|
|
1360
|
-
|
|
1361
|
-
const
|
|
1360
|
+
Yn.displayName = "CarouselItem";
|
|
1361
|
+
const _n = j.forwardRef(({ className: t, variant: n = "outline", size: o = "icon", ...r }, i) => {
|
|
1362
1362
|
const { orientation: s, scrollPrev: e, canScrollPrev: a } = bt();
|
|
1363
1363
|
return /* @__PURE__ */ R.jsxs(
|
|
1364
|
-
|
|
1364
|
+
Xt,
|
|
1365
1365
|
{
|
|
1366
1366
|
ref: i,
|
|
1367
1367
|
variant: n,
|
|
@@ -1375,17 +1375,17 @@ const Yn = j.forwardRef(({ className: t, variant: n = "outline", size: o = "icon
|
|
|
1375
1375
|
onClick: e,
|
|
1376
1376
|
...r,
|
|
1377
1377
|
children: [
|
|
1378
|
-
/* @__PURE__ */ R.jsx(
|
|
1378
|
+
/* @__PURE__ */ R.jsx(dn, { className: "h-4 w-4" }),
|
|
1379
1379
|
/* @__PURE__ */ R.jsx("span", { className: "sr-only", children: "Previous slide" })
|
|
1380
1380
|
]
|
|
1381
1381
|
}
|
|
1382
1382
|
);
|
|
1383
1383
|
});
|
|
1384
|
-
|
|
1385
|
-
const
|
|
1384
|
+
_n.displayName = "CarouselPrevious";
|
|
1385
|
+
const Zn = j.forwardRef(({ className: t, variant: n = "outline", size: o = "icon", ...r }, i) => {
|
|
1386
1386
|
const { orientation: s, scrollNext: e, canScrollNext: a } = bt();
|
|
1387
1387
|
return /* @__PURE__ */ R.jsxs(
|
|
1388
|
-
|
|
1388
|
+
Xt,
|
|
1389
1389
|
{
|
|
1390
1390
|
ref: i,
|
|
1391
1391
|
variant: n,
|
|
@@ -1399,18 +1399,18 @@ const _n = j.forwardRef(({ className: t, variant: n = "outline", size: o = "icon
|
|
|
1399
1399
|
onClick: e,
|
|
1400
1400
|
...r,
|
|
1401
1401
|
children: [
|
|
1402
|
-
/* @__PURE__ */ R.jsx(
|
|
1402
|
+
/* @__PURE__ */ R.jsx(pn, { className: "h-4 w-4" }),
|
|
1403
1403
|
/* @__PURE__ */ R.jsx("span", { className: "sr-only", children: "Next slide" })
|
|
1404
1404
|
]
|
|
1405
1405
|
}
|
|
1406
1406
|
);
|
|
1407
1407
|
});
|
|
1408
|
-
|
|
1408
|
+
Zn.displayName = "CarouselNext";
|
|
1409
1409
|
export {
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1410
|
+
Jn as Carousel,
|
|
1411
|
+
Xn as CarouselContent,
|
|
1412
|
+
Yn as CarouselItem,
|
|
1413
|
+
Zn as CarouselNext,
|
|
1414
|
+
_n as CarouselPrevious
|
|
1415
1415
|
};
|
|
1416
1416
|
//# sourceMappingURL=Carousel.js.map
|