zudoku 0.0.0-fd8f8ad → 0.0.0-feda542
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/client.d.ts +7 -0
- package/dist/app/demo.js +1 -2
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +6 -0
- package/dist/app/entry.client.js +15 -15
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +9 -6
- package/dist/app/entry.server.js +14 -10
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/main.d.ts +2 -2
- package/dist/app/main.js +23 -10
- package/dist/app/main.js.map +1 -1
- package/dist/app/sentry.d.ts +3 -0
- package/dist/app/sentry.js +19 -0
- package/dist/app/sentry.js.map +1 -0
- package/dist/app/standalone.js +1 -2
- package/dist/app/standalone.js.map +1 -1
- package/dist/app/tailwind.d.ts +2 -1
- package/dist/app/tailwind.js +80 -48
- 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 -2
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/cmds/build.d.ts +11 -3
- package/dist/cli/cmds/build.js +21 -13
- package/dist/cli/cmds/build.js.map +1 -1
- package/dist/cli/cmds/dev.d.ts +1 -1
- package/dist/cli/cmds/dev.js +5 -0
- package/dist/cli/cmds/dev.js.map +1 -1
- package/dist/cli/cmds/preview.d.ts +16 -0
- package/dist/cli/cmds/preview.js +25 -0
- package/dist/cli/cmds/preview.js.map +1 -0
- package/dist/cli/common/logger.js +9 -0
- package/dist/cli/common/logger.js.map +1 -1
- package/dist/cli/common/outdated.js +2 -1
- package/dist/cli/common/outdated.js.map +1 -1
- package/dist/cli/common/output.js.map +1 -1
- package/dist/cli/common/utils/ports.d.ts +1 -1
- package/dist/cli/common/utils/ports.js +16 -15
- package/dist/cli/common/utils/ports.js.map +1 -1
- package/dist/cli/dev/handler.d.ts +1 -0
- package/dist/cli/dev/handler.js +15 -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/common.d.ts +10 -0
- package/dist/config/common.js +2 -0
- package/dist/config/common.js.map +1 -0
- package/dist/config/config.d.ts +20 -16
- package/dist/config/loader.d.ts +21 -0
- package/dist/config/loader.js +149 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/validators/BuildSchema.d.ts +59 -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 +46 -30
- package/dist/config/validators/InputSidebarSchema.js +11 -1
- package/dist/config/validators/InputSidebarSchema.js.map +1 -1
- package/dist/config/validators/common.d.ts +7670 -0
- package/dist/config/validators/common.js +402 -0
- package/dist/config/validators/common.js.map +1 -0
- package/dist/config/validators/icon-types.d.ts +1 -0
- package/dist/config/validators/icon-types.js +2 -0
- package/dist/config/validators/icon-types.js.map +1 -0
- package/dist/config/validators/validate.d.ts +1885 -642
- package/dist/config/validators/validate.js +9 -228
- package/dist/config/validators/validate.js.map +1 -1
- 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/AuthenticationPlugin.d.ts +4 -2
- package/dist/lib/authentication/AuthenticationPlugin.js +3 -0
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +2 -1
- package/dist/lib/authentication/components/CallbackHandler.js +1 -1
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/components/SignIn.js +1 -1
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/components/SignOut.js +2 -2
- package/dist/lib/authentication/components/SignOut.js.map +1 -1
- package/dist/lib/authentication/hook.d.ts +6 -4
- package/dist/lib/authentication/hook.js +12 -4
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.d.ts +2 -2
- package/dist/lib/authentication/providers/auth0.js +4 -3
- 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 +54 -12
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +12 -4
- package/dist/lib/authentication/providers/openid.js +54 -44
- 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 +23 -19
- package/dist/lib/authentication/state.js +35 -10
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/components/AnchorLink.d.ts +2 -2
- package/dist/lib/components/AnchorLink.js +9 -5
- package/dist/lib/components/AnchorLink.js.map +1 -1
- package/dist/lib/components/Autocomplete.d.ts +13 -0
- package/dist/lib/components/Autocomplete.js +47 -0
- package/dist/lib/components/Autocomplete.js.map +1 -0
- package/dist/lib/components/Banner.js +1 -1
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/Bootstrap.d.ts +3 -3
- package/dist/lib/components/Bootstrap.js +12 -13
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/Footer.d.ts +1 -0
- package/dist/lib/components/Footer.js +32 -0
- package/dist/lib/components/Footer.js.map +1 -0
- package/dist/lib/components/Header.js +18 -10
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +4 -4
- package/dist/lib/components/Heading.js +1 -1
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/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 +9 -20
- 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/Markdown.d.ts +2 -2
- package/dist/lib/components/Markdown.js +4 -2
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +9 -8
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/NotFoundPage.js +1 -1
- package/dist/lib/components/NotFoundPage.js.map +1 -1
- package/dist/lib/components/Pagination.d.ts +11 -0
- package/dist/lib/components/Pagination.js +10 -0
- package/dist/lib/components/Pagination.js.map +1 -0
- package/dist/lib/components/PathRenderer.d.ts +11 -0
- package/dist/lib/components/PathRenderer.js +28 -0
- package/dist/lib/components/PathRenderer.js.map +1 -0
- package/dist/lib/components/ReactMarkdown.d.ts +29 -0
- package/dist/lib/components/ReactMarkdown.js +182 -0
- package/dist/lib/components/ReactMarkdown.js.map +1 -0
- package/dist/lib/components/Search.d.ts +3 -1
- package/dist/lib/components/Search.js +9 -3
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/SlotletProvider.d.ts +2 -2
- package/dist/lib/components/StatusPage.d.ts +7 -0
- package/dist/lib/components/StatusPage.js +71 -0
- package/dist/lib/components/StatusPage.js.map +1 -0
- package/dist/lib/components/ThemeSwitch.js +10 -5
- package/dist/lib/components/ThemeSwitch.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +4 -1
- package/dist/lib/components/TopNavigation.js +37 -17
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Zudoku.d.ts +1 -1
- package/dist/lib/components/Zudoku.js +15 -8
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/cache.d.ts +13 -0
- package/dist/lib/components/cache.js +20 -0
- package/dist/lib/components/cache.js.map +1 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
- package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
- package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
- package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
- package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
- package/dist/lib/components/context/ViewportAnchorContext.js +21 -14
- 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 +22 -9
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/index.d.ts +38 -8
- package/dist/lib/components/index.js +17 -4
- 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 +6 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
- package/dist/lib/components/navigation/Sidebar.d.ts +5 -1
- package/dist/lib/components/navigation/Sidebar.js +3 -7
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/SidebarBadge.d.ts +6 -3
- package/dist/lib/components/navigation/SidebarBadge.js +13 -11
- package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +3 -3
- package/dist/lib/components/navigation/SidebarCategory.js +26 -21
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +3 -4
- package/dist/lib/components/navigation/SidebarItem.js +19 -17
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
- package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/{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/utils.js +1 -1
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/RouteGuard.d.ts +2 -0
- package/dist/lib/core/RouteGuard.js +52 -0
- package/dist/lib/core/RouteGuard.js.map +1 -0
- package/dist/lib/core/ZudokuContext.d.ts +36 -8
- package/dist/lib/core/ZudokuContext.js +37 -12
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +21 -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/errors/RouterError.js +1 -1
- package/dist/lib/errors/RouterError.js.map +1 -1
- package/dist/lib/hooks/index.d.ts +3 -0
- package/dist/lib/hooks/index.js +5 -0
- package/dist/lib/hooks/index.js.map +1 -0
- package/dist/lib/hooks/useEvent.d.ts +11 -0
- package/dist/lib/hooks/useEvent.js +19 -0
- package/dist/lib/hooks/useEvent.js.map +1 -0
- package/dist/lib/hooks/useEvent.test.js +100 -0
- package/dist/lib/hooks/useEvent.test.js.map +1 -0
- package/dist/lib/icons.d.ts +1 -0
- package/dist/lib/icons.js +1 -0
- package/dist/lib/icons.js.map +1 -1
- package/dist/lib/oas/graphql/circular.d.ts +3 -0
- package/dist/lib/oas/graphql/circular.js +38 -0
- package/dist/lib/oas/graphql/circular.js.map +1 -0
- package/dist/lib/oas/graphql/index.d.ts +25 -1
- package/dist/lib/oas/graphql/index.js +213 -66
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/index.js +8 -3
- package/dist/lib/oas/parser/dereference/index.js.map +1 -1
- package/dist/lib/oas/parser/index.d.ts +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.d.ts +2 -2
- package/dist/lib/oas/parser/upgrade/index.js +21 -23
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -0
- package/dist/lib/plugins/api-catalog/Catalog.js +26 -0
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
- package/dist/lib/plugins/api-catalog/index.d.ts +31 -0
- package/dist/lib/plugins/api-catalog/index.js +46 -0
- package/dist/lib/plugins/api-catalog/index.js.map +1 -0
- package/dist/lib/plugins/api-keys/CreateApiKey.js +8 -4
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
- package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
- package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +1 -0
- package/dist/lib/plugins/api-keys/index.js +4 -0
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +10 -2
- package/dist/lib/plugins/markdown/MdxPage.js +17 -4
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +3 -1
- package/dist/lib/plugins/markdown/index.js +1 -1
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/markdown/resolver.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/CollapsibleCode.js +2 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
- package/dist/lib/plugins/openapi/ColorizedParam.js +19 -8
- 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 +8 -7
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
- package/dist/lib/plugins/openapi/OasProvider.js +29 -0
- package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
- package/dist/lib/plugins/openapi/OperationList.d.ts +5 -2
- package/dist/lib/plugins/openapi/OperationList.js +90 -11
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.d.ts +5 -3
- package/dist/lib/plugins/openapi/OperationListItem.js +10 -5
- 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 -3
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +4 -2
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +12 -3
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +3 -4
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -13
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +7 -13
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
- package/dist/lib/plugins/openapi/SchemaList.js +52 -0
- package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
- package/dist/lib/plugins/openapi/Sidecar.js +54 -37
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
- package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -0
- package/dist/lib/plugins/openapi/SidecarExamples.js +68 -0
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
- package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +2 -2
- package/dist/lib/plugins/openapi/client/GraphQLClient.js +23 -82
- package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
- package/dist/lib/plugins/openapi/client/createServer.d.ts +2 -1
- package/dist/lib/plugins/openapi/client/createServer.js +5 -2
- package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +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/context.d.ts +3 -3
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +11 -3
- package/dist/lib/plugins/openapi/graphql/gql.js +5 -14
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +113 -21
- package/dist/lib/plugins/openapi/graphql/graphql.js +55 -11
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +10 -6
- package/dist/lib/plugins/openapi/index.js +63 -82
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +56 -3
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +8 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +4 -4
- package/dist/lib/plugins/openapi/playground/Headers.js +84 -5
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js +10 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +9 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js +5 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
- package/dist/lib/plugins/openapi/playground/PathParams.js +5 -7
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +37 -2
- package/dist/lib/plugins/openapi/playground/Playground.js +131 -69
- 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/playground/QueryParams.js +24 -18
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/SubmitButton.js +22 -0
- package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +11 -0
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +101 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +9 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +17 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +7 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +174 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +10 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js +131 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.d.ts +11 -0
- package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
- package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.js +104 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/traverse.js +2 -0
- package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +12 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/{SchemaComponents.d.ts → SchemaPropertyItem.d.ts} +2 -4
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +42 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +1 -2
- package/dist/lib/plugins/openapi/schema/SchemaView.js +34 -49
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.d.ts +2 -0
- package/dist/lib/plugins/openapi/schema/utils.js +5 -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/generateSchemaExample.js +19 -11
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
- package/dist/lib/plugins/openapi/util/getRoutes.js +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/openapi/util/methodToColor.d.ts +20 -0
- package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
- package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
- package/dist/lib/plugins/redirect/index.d.ts +1 -1
- 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 +22 -3
- package/dist/lib/plugins/search-inkeep/index.js +41 -5
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
- package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
- package/dist/lib/plugins/search-pagefind/ResultList.js +32 -0
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
- package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
- package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
- package/dist/lib/plugins/search-pagefind/index.js +9 -0
- package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
- package/dist/lib/plugins/search-pagefind/types.js +2 -0
- package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
- package/dist/lib/ui/Badge.d.ts +1 -1
- package/dist/lib/ui/Badge.js +2 -1
- package/dist/lib/ui/Badge.js.map +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/Card.js +1 -1
- package/dist/lib/ui/Card.js.map +1 -1
- package/dist/lib/ui/Checkbox.js +1 -1
- package/dist/lib/ui/Checkbox.js.map +1 -1
- package/dist/lib/ui/Command.d.ts +17 -3
- package/dist/lib/ui/Command.js +7 -3
- package/dist/lib/ui/Command.js.map +1 -1
- package/dist/lib/ui/Input.d.ts +1 -2
- package/dist/lib/ui/Input.js.map +1 -1
- package/dist/lib/ui/Select.js +3 -3
- 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 +23 -20
- package/dist/lib/util/MdxComponents.js +10 -7
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/createVariantComponent.d.ts +2 -2
- package/dist/lib/util/detectOS.d.ts +1 -0
- package/dist/lib/util/detectOS.js +11 -0
- package/dist/lib/util/detectOS.js.map +1 -0
- package/dist/lib/util/joinPath.d.ts +3 -0
- package/dist/lib/util/joinPath.js +3 -0
- package/dist/lib/util/joinPath.js.map +1 -1
- package/dist/lib/util/joinUrl.d.ts +1 -0
- package/dist/lib/util/joinUrl.js +40 -0
- package/dist/lib/util/joinUrl.js.map +1 -0
- package/dist/lib/util/joinUrl.test.d.ts +1 -0
- package/dist/lib/util/joinUrl.test.js +43 -0
- package/dist/lib/util/joinUrl.test.js.map +1 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
- package/dist/lib/util/traverse.d.ts +3 -0
- package/dist/lib/util/traverse.js +22 -0
- package/dist/lib/util/traverse.js.map +1 -0
- package/dist/lib/util/types.d.ts +7 -0
- package/dist/lib/util/types.js +2 -0
- package/dist/lib/util/types.js.map +1 -0
- package/dist/lib/util/useExposedProps.js +1 -1
- package/dist/lib/util/useExposedProps.js.map +1 -1
- 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.d.ts +1 -0
- package/dist/lib/util/useScrollToAnchor.js +42 -37
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/lib/util/useScrollToTop.js +7 -5
- package/dist/lib/util/useScrollToTop.js.map +1 -1
- package/dist/vite/api/schema-codegen.d.ts +12 -0
- package/dist/vite/api/schema-codegen.js +85 -0
- package/dist/vite/api/schema-codegen.js.map +1 -0
- package/dist/vite/api/schema-codegen.test.d.ts +1 -0
- package/dist/vite/api/schema-codegen.test.js +313 -0
- package/dist/vite/api/schema-codegen.test.js.map +1 -0
- package/dist/vite/build.js +41 -16
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +7 -8
- package/dist/vite/config.js +109 -64
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +11 -5
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/create-pagefind-index.d.ts +4 -0
- package/dist/vite/create-pagefind-index.js +12 -0
- package/dist/vite/create-pagefind-index.js.map +1 -0
- package/dist/vite/css/collect.d.ts +2 -0
- package/dist/vite/css/collect.js +27 -0
- package/dist/vite/css/collect.js.map +1 -0
- package/dist/vite/css/plugin.d.ts +5 -0
- package/dist/vite/css/plugin.js +79 -0
- package/dist/vite/css/plugin.js.map +1 -0
- package/dist/vite/dev-server.d.ts +5 -2
- package/dist/vite/dev-server.js +65 -15
- 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 +15 -3
- package/dist/vite/output.js +41 -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 +223 -32
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +2 -2
- package/dist/vite/plugin-auth.js +7 -4
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +2 -2
- package/dist/vite/plugin-component.js +20 -20
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.d.ts +4 -4
- package/dist/vite/plugin-config-reload.js +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 +25 -1
- 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-docs.test.js +15 -23
- package/dist/vite/plugin-docs.test.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 +86 -14
- 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 +2 -2
- package/dist/vite/plugin-sidebar.js +13 -4
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/{plugin-custom-css.d.ts → plugin-theme-css.d.ts} +3 -3
- package/dist/vite/plugin-theme-css.js +117 -0
- package/dist/vite/plugin-theme-css.js.map +1 -0
- package/dist/vite/plugin.d.ts +2 -3
- package/dist/vite/plugin.js +6 -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/remarkStaticGeneration.js +5 -5
- package/dist/vite/remarkStaticGeneration.js.map +1 -1
- package/dist/vite/reporter.d.ts +3 -0
- package/dist/vite/reporter.js +33 -0
- package/dist/vite/reporter.js.map +1 -0
- package/dist/vite/sitemap.d.ts +1 -1
- package/dist/vite/sitemap.js +2 -1
- package/dist/vite/sitemap.js.map +1 -1
- package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
- package/dist/zuplo/enrich-with-zuplo.js +184 -0
- package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
- package/dist/zuplo/env.d.ts +7 -0
- package/dist/zuplo/env.js +12 -0
- package/dist/zuplo/env.js.map +1 -0
- package/dist/zuplo/policy-types.d.ts +33 -0
- package/dist/zuplo/policy-types.js +8 -0
- package/dist/zuplo/policy-types.js.map +1 -0
- package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
- package/dist/zuplo/with-zuplo-processors.js +26 -0
- package/dist/zuplo/with-zuplo-processors.js.map +1 -0
- package/dist/zuplo/with-zuplo.d.ts +3 -0
- package/dist/zuplo/with-zuplo.js +13 -0
- package/dist/zuplo/with-zuplo.js.map +1 -0
- package/lib/AuthenticationPlugin-foqdvvkf.js +58 -0
- package/lib/AuthenticationPlugin-foqdvvkf.js.map +1 -0
- package/lib/Button-Fp19CMUr.js +49 -0
- package/lib/Button-Fp19CMUr.js.map +1 -0
- package/lib/Callout-Boqdgl-z.js +230 -0
- package/lib/Callout-Boqdgl-z.js.map +1 -0
- package/lib/{CategoryHeading-Bb9dqxD3.js → CategoryHeading-DpB47wvk.js} +3 -3
- package/lib/{CategoryHeading-Bb9dqxD3.js.map → CategoryHeading-DpB47wvk.js.map} +1 -1
- package/lib/ClientOnly-E7hGysn1.js.map +1 -1
- package/lib/Dialog-sbgekbjb.js +98 -0
- package/lib/{Dialog-k70Qfukb.js.map → Dialog-sbgekbjb.js.map} +1 -1
- package/lib/Drawer-kDAfOq_2.js +1133 -0
- package/lib/Drawer-kDAfOq_2.js.map +1 -0
- package/lib/{Markdown-BorQdbxW.js → Markdown-CKXePgqR.js} +15142 -13372
- package/lib/Markdown-CKXePgqR.js.map +1 -0
- package/lib/MdxPage-DzpRK-fu.js +85 -0
- package/lib/MdxPage-DzpRK-fu.js.map +1 -0
- package/lib/OasProvider-Dw2mP5VZ.js +34 -0
- package/lib/OasProvider-Dw2mP5VZ.js.map +1 -0
- package/lib/OperationList-Cr_NA4e2.js +5069 -0
- package/lib/OperationList-Cr_NA4e2.js.map +1 -0
- package/lib/Pagination-DT6eKg_U.js +48 -0
- package/lib/Pagination-DT6eKg_U.js.map +1 -0
- package/lib/RouteGuard-CqZPoZYJ.js +744 -0
- package/lib/RouteGuard-CqZPoZYJ.js.map +1 -0
- package/lib/SchemaList-DNvUJgwI.js +148 -0
- package/lib/SchemaList-DNvUJgwI.js.map +1 -0
- package/lib/SchemaView-Cxh_msLc.js +357 -0
- package/lib/SchemaView-Cxh_msLc.js.map +1 -0
- package/lib/{Select-DP74t8Yy.js → Select-DVFRKf1R.js} +53 -53
- package/lib/{Select-DP74t8Yy.js.map → Select-DVFRKf1R.js.map} +1 -1
- package/lib/SlotletProvider-BV1xrg-l.js +338 -0
- package/lib/SlotletProvider-BV1xrg-l.js.map +1 -0
- package/lib/{Spinner-3cQDBVGr.js → Spinner-CE68iCm0.js} +2 -2
- package/lib/{Spinner-3cQDBVGr.js.map → Spinner-CE68iCm0.js.map} +1 -1
- package/lib/{SyntaxHighlight-CBmwwKoM.js → SyntaxHighlight-BEoSoPEo.js} +552 -645
- package/lib/SyntaxHighlight-BEoSoPEo.js.map +1 -0
- package/lib/Toc-D40bDl5J.js +92 -0
- package/lib/Toc-D40bDl5J.js.map +1 -0
- package/lib/chunk-HA7DTUK3-C4gP41vD.js +1821 -0
- package/lib/chunk-HA7DTUK3-C4gP41vD.js.map +1 -0
- package/lib/circular-ByJI6Mci.js +15877 -0
- package/lib/circular-ByJI6Mci.js.map +1 -0
- package/lib/{cn-BmFQLtkS.js → cn-qaFjX9_3.js} +2 -2
- package/lib/cn-qaFjX9_3.js.map +1 -0
- package/lib/{context-D1nXWxm7.js → context-DLCwaMXN.js} +2 -2
- package/lib/context-DLCwaMXN.js.map +1 -0
- package/lib/createServer-Cq73y9Kv.js +12454 -0
- package/lib/createServer-Cq73y9Kv.js.map +1 -0
- package/lib/hook-CqpVYDqN.js +1483 -0
- package/lib/hook-CqpVYDqN.js.map +1 -0
- package/lib/index-CN3TIw7H.js +2009 -0
- package/lib/index-CN3TIw7H.js.map +1 -0
- package/lib/index-CPNSgwSb.js +36 -0
- package/lib/index-CPNSgwSb.js.map +1 -0
- package/lib/{index-CkwDvuPt.js → index-Dl3Yl0yb.js} +303 -286
- package/lib/index-Dl3Yl0yb.js.map +1 -0
- package/lib/index-DwT-v3zK.js +86 -0
- package/lib/index-DwT-v3zK.js.map +1 -0
- package/lib/index-LNp6rxyU.js.map +1 -1
- package/lib/index-dQecW8K5.js +2227 -0
- package/lib/index-dQecW8K5.js.map +1 -0
- package/lib/index-gQD2h1wX.js +447 -0
- package/lib/index-gQD2h1wX.js.map +1 -0
- package/lib/index.esm--gIChbWs.js +1207 -0
- package/lib/index.esm--gIChbWs.js.map +1 -0
- package/lib/invariant-Caa8-XvF.js.map +1 -1
- package/lib/jsx-runtime-CYK1ROHF.js +446 -0
- package/lib/jsx-runtime-CYK1ROHF.js.map +1 -0
- package/lib/{hook-Diu0rqp-.js → mutation-8LjrN7uz.js} +40 -61
- package/lib/mutation-8LjrN7uz.js.map +1 -0
- package/lib/objectEntries-yMIkr2mI.js +5 -0
- package/lib/objectEntries-yMIkr2mI.js.map +1 -0
- package/lib/{prism-bash.min-DadFsM4Z.js → prism-bash.min-HHIMdNJ_.js} +4 -4
- package/lib/{prism-bash.min-DadFsM4Z.js.map → prism-bash.min-HHIMdNJ_.js.map} +1 -1
- package/lib/prism-csharp.min-bQAo2pmx.js +63 -0
- package/lib/{prism-csharp.min-Yizuc34Y.js.map → prism-csharp.min-bQAo2pmx.js.map} +1 -1
- package/lib/prism-java.min-BpvsOuIa.js +35 -0
- package/lib/{prism-java.min-d5iT_mOd.js.map → prism-java.min-BpvsOuIa.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-F3U-vPBi.js → prism-markdown.min-C0Qn0m-5.js} +30 -30
- package/lib/{prism-markdown.min-F3U-vPBi.js.map → 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 +38 -0
- package/lib/{prism-ruby.min-C7LwcKyz.js.map → prism-ruby.min-Dx9KO9ds.js.map} +1 -1
- package/lib/prism-typescript.min-CD7H2IYQ.js +34 -0
- package/lib/{prism-typescript.min-oSVeWCAd.js.map → prism-typescript.min-CD7H2IYQ.js.map} +1 -1
- package/lib/processors/removeExtensions.js +11 -0
- package/lib/processors/removeExtensions.js.map +1 -0
- package/lib/processors/removeParameters.js +48 -0
- package/lib/processors/removeParameters.js.map +1 -0
- package/lib/processors/removePaths.js +28 -0
- package/lib/processors/removePaths.js.map +1 -0
- package/lib/processors/traverse.js +15 -0
- package/lib/processors/traverse.js.map +1 -0
- package/lib/ui/Accordion.js +2 -2
- package/lib/ui/Accordion.js.map +1 -1
- package/lib/ui/ActionButton.js +4 -4
- package/lib/ui/ActionButton.js.map +1 -1
- package/lib/ui/Alert.js +3 -3
- package/lib/ui/Alert.js.map +1 -1
- package/lib/ui/AlertDialog.js +2 -2
- package/lib/ui/AlertDialog.js.map +1 -1
- package/lib/ui/Badge.js +5 -4
- package/lib/ui/Badge.js.map +1 -1
- package/lib/ui/Breadcrumb.js +5 -5
- package/lib/ui/Breadcrumb.js.map +1 -1
- package/lib/ui/Button.js +14 -13
- 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 +9 -9
- package/lib/ui/Card.js.map +1 -1
- package/lib/ui/Carousel.js +408 -402
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js +14 -13
- package/lib/ui/Checkbox.js.map +1 -1
- package/lib/ui/Command.js +114 -508
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Dialog.js +2 -2
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/Drawer.js +14 -1150
- package/lib/ui/Drawer.js.map +1 -1
- package/lib/ui/DropdownMenu.js +2 -2
- package/lib/ui/DropdownMenu.js.map +1 -1
- package/lib/ui/Form.js +6 -6
- package/lib/ui/Form.js.map +1 -1
- package/lib/ui/HoverCard.js +2 -2
- package/lib/ui/Input.js +2 -2
- package/lib/ui/Input.js.map +1 -1
- package/lib/ui/Label.js +3 -3
- package/lib/ui/Pagination.js +5 -5
- package/lib/ui/Pagination.js.map +1 -1
- package/lib/ui/Popover.js +2 -2
- package/lib/ui/Popover.js.map +1 -1
- package/lib/ui/Progress.js +2 -2
- package/lib/ui/Progress.js.map +1 -1
- package/lib/ui/RadioGroup.js +2 -2
- package/lib/ui/RadioGroup.js.map +1 -1
- package/lib/ui/ScrollArea.js +2 -2
- package/lib/ui/ScrollArea.js.map +1 -1
- package/lib/ui/Select.js +5 -5
- package/lib/ui/Select.js.map +1 -1
- package/lib/ui/Skeleton.js +2 -2
- package/lib/ui/Skeleton.js.map +1 -1
- package/lib/ui/Slider.js +2 -2
- package/lib/ui/Stepper.js +6 -0
- package/lib/ui/Stepper.js.map +1 -0
- package/lib/ui/Switch.js +2 -2
- package/lib/ui/Switch.js.map +1 -1
- package/lib/ui/SyntaxHighlight.js +11 -0
- package/lib/ui/SyntaxHighlight.js.map +1 -0
- package/lib/ui/Tabs.js +2 -2
- package/lib/ui/Textarea.js +2 -2
- package/lib/ui/Textarea.js.map +1 -1
- package/lib/ui/Toggle.js +3 -3
- package/lib/ui/Toggle.js.map +1 -1
- package/lib/ui/ToggleGroup.js +2 -2
- package/lib/ui/ToggleGroup.js.map +1 -1
- package/lib/ui/Tooltip.js +2 -2
- package/lib/ui/util.js +6 -0
- package/lib/ui/util.js.map +1 -0
- package/lib/useExposedProps-B9qXJedG.js +9 -0
- package/lib/useExposedProps-B9qXJedG.js.map +1 -0
- package/lib/useLatest-hmRS46UF.js +11 -0
- package/lib/useLatest-hmRS46UF.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +25 -25
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +101 -55
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +448 -484
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +32 -1584
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +19 -0
- package/lib/zudoku.hooks.js.map +1 -0
- package/lib/zudoku.icons.js +10 -0
- package/lib/zudoku.icons.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +117 -0
- package/lib/zudoku.plugin-api-catalog.js.map +1 -0
- package/lib/zudoku.plugin-api-keys.js +111 -108
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +4 -4
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +27 -47
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +6 -6
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +53 -24
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- 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 +140 -95
- package/src/app/demo-cdn.html +31 -31
- package/src/app/demo.tsx +1 -2
- package/src/app/entry.client.tsx +24 -15
- package/src/app/entry.server.tsx +26 -15
- package/src/app/main.css +100 -39
- package/src/app/main.tsx +40 -11
- package/src/app/sentry.ts +24 -0
- package/src/app/standalone.tsx +1 -2
- package/src/app/tailwind.ts +83 -48
- package/src/lib/MissingIcon.tsx +22 -0
- package/src/lib/authentication/AuthenticationPlugin.tsx +4 -1
- package/src/lib/authentication/authentication.ts +3 -1
- package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
- package/src/lib/authentication/components/SignIn.tsx +1 -1
- package/src/lib/authentication/components/SignOut.tsx +3 -2
- package/src/lib/authentication/hook.ts +13 -4
- package/src/lib/authentication/providers/auth0.tsx +6 -7
- package/src/lib/authentication/providers/clerk.tsx +70 -15
- package/src/lib/authentication/providers/openid.tsx +72 -55
- package/src/lib/authentication/providers/supabase.tsx +157 -0
- package/src/lib/authentication/state.ts +51 -27
- package/src/lib/components/AnchorLink.tsx +13 -8
- package/src/lib/components/Autocomplete.tsx +113 -0
- package/src/lib/components/Banner.tsx +1 -0
- package/src/lib/components/Bootstrap.tsx +29 -29
- package/src/lib/components/Footer.tsx +139 -0
- package/src/lib/components/Header.tsx +65 -24
- package/src/lib/components/Heading.tsx +13 -13
- package/src/lib/components/InlineCode.tsx +13 -16
- package/src/lib/components/Layout.tsx +33 -54
- package/src/lib/components/Main.tsx +50 -0
- package/src/lib/components/Markdown.tsx +15 -16
- package/src/lib/components/MobileTopNavigation.tsx +36 -34
- package/src/lib/components/NotFoundPage.tsx +1 -1
- package/src/lib/components/Pagination.tsx +50 -0
- package/src/lib/components/PathRenderer.tsx +61 -0
- package/src/lib/components/ReactMarkdown.license.txt +21 -0
- package/src/lib/components/ReactMarkdown.tsx +264 -0
- package/src/lib/components/Search.tsx +17 -6
- package/src/lib/components/SlotletProvider.tsx +1 -1
- package/src/lib/components/StatusPage.tsx +91 -0
- package/src/lib/components/ThemeSwitch.tsx +33 -11
- package/src/lib/components/TopNavigation.tsx +72 -37
- package/src/lib/components/Zudoku.tsx +20 -7
- package/src/lib/components/cache.ts +23 -0
- package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
- package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
- package/src/lib/components/context/ViewportAnchorContext.tsx +26 -21
- package/src/lib/components/context/ZudokuContext.ts +32 -10
- package/src/lib/components/index.ts +22 -5
- package/src/lib/components/navigation/PoweredByZudoku.tsx +23 -0
- package/src/lib/components/navigation/Sidebar.tsx +38 -29
- package/src/lib/components/navigation/SidebarBadge.tsx +17 -12
- package/src/lib/components/navigation/SidebarCategory.tsx +59 -56
- package/src/lib/components/navigation/SidebarItem.tsx +30 -39
- package/src/lib/components/navigation/SidebarWrapper.tsx +42 -22
- 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/utils.ts +1 -1
- package/src/lib/core/RouteGuard.tsx +96 -0
- package/src/lib/core/ZudokuContext.ts +73 -21
- package/src/lib/core/plugins.ts +33 -7
- package/src/lib/errors/ErrorAlert.tsx +24 -17
- package/src/lib/errors/RouterError.tsx +1 -1
- package/src/lib/hooks/index.ts +5 -0
- package/src/lib/hooks/useEvent.test.tsx +149 -0
- package/src/lib/hooks/useEvent.ts +41 -0
- package/src/lib/icons.ts +1 -0
- package/src/lib/oas/graphql/circular.ts +50 -0
- package/src/lib/oas/graphql/index.ts +295 -101
- package/src/lib/oas/parser/dereference/index.ts +10 -4
- package/src/lib/oas/parser/index.ts +7 -29
- package/src/lib/oas/parser/upgrade/index.ts +24 -31
- package/src/lib/plugins/api-catalog/Catalog.tsx +73 -0
- package/src/lib/plugins/api-catalog/index.tsx +115 -0
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +8 -4
- package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +1 -1
- package/src/lib/plugins/api-keys/index.tsx +7 -1
- package/src/lib/plugins/custom-pages/index.tsx +1 -1
- package/src/lib/plugins/markdown/MdxPage.tsx +43 -41
- package/src/lib/plugins/markdown/index.tsx +5 -2
- package/src/lib/plugins/markdown/resolver.ts +2 -37
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +10 -7
- package/src/lib/plugins/openapi/ColorizedParam.tsx +30 -13
- package/src/lib/plugins/openapi/Endpoint.tsx +14 -12
- package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
- package/src/lib/plugins/openapi/OperationList.tsx +220 -42
- package/src/lib/plugins/openapi/OperationListItem.tsx +136 -88
- 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 -24
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +21 -2
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +15 -38
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +46 -63
- package/src/lib/plugins/openapi/SchemaList.tsx +151 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +85 -65
- package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
- package/src/lib/plugins/openapi/SidecarExamples.tsx +162 -0
- package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
- package/src/lib/plugins/openapi/client/GraphQLClient.tsx +29 -104
- package/src/lib/plugins/openapi/client/createServer.ts +6 -2
- 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/context.tsx +2 -2
- package/src/lib/plugins/openapi/graphql/gql.ts +36 -11
- package/src/lib/plugins/openapi/graphql/graphql.ts +172 -36
- package/src/lib/plugins/openapi/index.tsx +99 -98
- package/src/lib/plugins/openapi/interfaces.ts +57 -3
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +52 -0
- package/src/lib/plugins/openapi/playground/Headers.tsx +165 -36
- package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +54 -0
- package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
- package/src/lib/plugins/openapi/playground/PathParams.tsx +39 -64
- package/src/lib/plugins/openapi/playground/Playground.tsx +384 -244
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +6 -3
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +86 -88
- package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
- package/src/lib/plugins/openapi/playground/SubmitButton.tsx +75 -0
- package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
- package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +73 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +230 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +123 -0
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
- package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +202 -0
- package/src/lib/plugins/openapi/processors/removeExtensions.ts +27 -0
- package/src/lib/plugins/openapi/processors/removeParameters.test.ts +148 -0
- package/src/lib/plugins/openapi/processors/removeParameters.ts +101 -0
- package/src/lib/plugins/openapi/processors/removePaths.test.ts +126 -0
- package/src/lib/plugins/openapi/processors/removePaths.ts +55 -0
- package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
- package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +36 -0
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +148 -0
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +88 -139
- package/src/lib/plugins/openapi/schema/utils.ts +11 -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/generateSchemaExample.ts +26 -11
- package/src/lib/plugins/openapi/util/getRoutes.tsx +126 -0
- package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
- package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
- package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
- package/src/lib/plugins/redirect/index.tsx +2 -2
- package/src/lib/plugins/search-inkeep/index.tsx +78 -23
- package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +164 -0
- package/src/lib/plugins/search-pagefind/ResultList.tsx +105 -0
- package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
- package/src/lib/plugins/search-pagefind/index.tsx +21 -0
- package/src/lib/plugins/search-pagefind/types.ts +118 -0
- package/src/lib/ui/Badge.tsx +2 -1
- package/src/lib/ui/Button.tsx +4 -2
- package/src/lib/ui/Callout.tsx +29 -10
- package/src/lib/ui/Card.tsx +1 -1
- package/src/lib/ui/Checkbox.tsx +2 -1
- package/src/lib/ui/Command.tsx +45 -3
- package/src/lib/ui/Input.tsx +1 -2
- package/src/lib/ui/Select.tsx +2 -2
- 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 +12 -11
- package/src/lib/util/createVariantComponent.tsx +2 -2
- package/src/lib/util/detectOS.ts +9 -0
- package/src/lib/util/joinPath.tsx +3 -0
- package/src/lib/util/joinUrl.test.ts +62 -0
- package/src/lib/util/joinUrl.ts +57 -0
- package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
- package/src/lib/util/traverse.ts +31 -0
- package/src/lib/util/types.ts +7 -0
- package/src/lib/util/useExposedProps.tsx +1 -1
- package/src/lib/util/useLatest.ts +18 -0
- package/src/lib/util/useOnScreen.ts +6 -4
- package/src/lib/util/useScrollToAnchor.ts +48 -39
- package/src/lib/util/useScrollToTop.ts +9 -4
- package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
- package/dist/lib/components/SyntaxHighlight.js +0 -57
- 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/Route.d.ts +0 -6
- package/dist/lib/plugins/openapi/Route.js +0 -6
- package/dist/lib/plugins/openapi/Route.js.map +0 -1
- package/dist/lib/plugins/openapi/client/worker.d.ts +0 -4
- package/dist/lib/plugins/openapi/client/worker.js +0 -29
- package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
- package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
- package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
- package/dist/lib/plugins/openapi-worker.d.ts +0 -1
- package/dist/lib/plugins/openapi-worker.js +0 -8
- package/dist/lib/plugins/openapi-worker.js.map +0 -1
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
- package/dist/vite/plugin-custom-css.js +0 -55
- package/dist/vite/plugin-custom-css.js.map +0 -1
- package/dist/vite/prerender.d.ts +0 -21
- package/dist/vite/prerender.js +0 -89
- package/dist/vite/prerender.js.map +0 -1
- package/lib/AnchorLink-CDlhr8gL.js +0 -706
- package/lib/AnchorLink-CDlhr8gL.js.map +0 -1
- package/lib/AuthenticationPlugin-DeGDVa1r.js +0 -56
- package/lib/AuthenticationPlugin-DeGDVa1r.js.map +0 -1
- package/lib/Button-jK0EsymC.js +0 -48
- package/lib/Button-jK0EsymC.js.map +0 -1
- package/lib/Dialog-k70Qfukb.js +0 -67
- package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
- package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
- package/lib/Markdown-BorQdbxW.js.map +0 -1
- package/lib/MdxPage-DFlbtJWi.js +0 -174
- package/lib/MdxPage-DFlbtJWi.js.map +0 -1
- package/lib/OperationList-KshJrrLL.js +0 -4691
- package/lib/OperationList-KshJrrLL.js.map +0 -1
- package/lib/Route-DlG_HTMu.js +0 -11
- package/lib/Route-DlG_HTMu.js.map +0 -1
- package/lib/SidebarBadge-DxFJcJ6V.js +0 -51
- package/lib/SidebarBadge-DxFJcJ6V.js.map +0 -1
- package/lib/SlotletProvider-D2v6rJy1.js +0 -252
- package/lib/SlotletProvider-D2v6rJy1.js.map +0 -1
- package/lib/SyntaxHighlight-CBmwwKoM.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/assets/index-B_Jk_Yzp.js +0 -4820
- package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
- package/lib/assets/worker-CPsGZsve.js +0 -18201
- package/lib/assets/worker-CPsGZsve.js.map +0 -1
- package/lib/cn-BmFQLtkS.js.map +0 -1
- package/lib/context-D1nXWxm7.js.map +0 -1
- package/lib/createServer-DK-g7kbB.js +0 -16089
- package/lib/createServer-DK-g7kbB.js.map +0 -1
- package/lib/hook-Diu0rqp-.js.map +0 -1
- package/lib/index-BcesIHH4.js +0 -1273
- package/lib/index-BcesIHH4.js.map +0 -1
- package/lib/index-BuAyrJe3.js +0 -46
- package/lib/index-BuAyrJe3.js.map +0 -1
- package/lib/index-CkwDvuPt.js.map +0 -1
- package/lib/index-Czzd9rjU.js +0 -899
- package/lib/index-Czzd9rjU.js.map +0 -1
- package/lib/index-Yn8c3UWE.js +0 -921
- package/lib/index-Yn8c3UWE.js.map +0 -1
- package/lib/index.esm-C5mr_sKO.js +0 -1193
- package/lib/index.esm-C5mr_sKO.js.map +0 -1
- package/lib/jsx-runtime-B6kdoens.js +0 -635
- package/lib/jsx-runtime-B6kdoens.js.map +0 -1
- package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
- package/lib/prism-java.min-d5iT_mOd.js +0 -7
- package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
- package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
- package/lib/prism-php.min-o7FpoMP_.js +0 -11
- package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
- package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
- package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
- package/lib/router-lfyopgBI.js +0 -3024
- package/lib/router-lfyopgBI.js.map +0 -1
- package/lib/state-BsPrOUAh.js +0 -252
- package/lib/state-BsPrOUAh.js.map +0 -1
- package/lib/useExposedProps-CTPtylCV.js +0 -10
- package/lib/useExposedProps-CTPtylCV.js.map +0 -1
- package/lib/utils-DcpDOncX.js +0 -1218
- package/lib/utils-DcpDOncX.js.map +0 -1
- package/lib/zudoku.openapi-worker.js +0 -15
- package/lib/zudoku.openapi-worker.js.map +0 -1
- package/src/lib/components/SyntaxHighlight.tsx +0 -160
- package/src/lib/components/context/PluginSystem.ts +0 -0
- package/src/lib/plugins/openapi/Route.tsx +0 -19
- package/src/lib/plugins/openapi/client/worker.ts +0 -44
- package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
- package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
- package/src/lib/plugins/openapi-worker.ts +0 -11
- package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
- /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/lib/ui/Carousel.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { j as R } from "../jsx-runtime-
|
|
2
|
-
import * as
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { ArrowLeft as
|
|
5
|
-
import { c as gt } from "../cn-
|
|
6
|
-
import { Button as
|
|
7
|
-
function
|
|
1
|
+
import { j as R } from "../jsx-runtime-CYK1ROHF.js";
|
|
2
|
+
import * as j from "react";
|
|
3
|
+
import { useRef as Ht, useState as qt, useCallback as ln, useEffect as It } from "react";
|
|
4
|
+
import { ArrowLeft as fn, ArrowRight as dn } from "lucide-react";
|
|
5
|
+
import { c as gt } from "../cn-qaFjX9_3.js";
|
|
6
|
+
import { Button as Jt } from "./Button.js";
|
|
7
|
+
function pn(t) {
|
|
8
8
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
return
|
|
10
|
+
function $t(t) {
|
|
11
|
+
return pn(t) || Array.isArray(t);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function mn() {
|
|
14
14
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function At(t, n) {
|
|
17
17
|
const o = Object.keys(t), r = Object.keys(n);
|
|
18
18
|
if (o.length !== r.length) return !1;
|
|
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}` : !$t(a) || !$t(u) ? a === u : At(a, u);
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Kt(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 gn(t, n) {
|
|
29
29
|
if (t.length !== n.length) return !1;
|
|
30
|
-
const o =
|
|
30
|
+
const o = Kt(t), r = Kt(n);
|
|
31
31
|
return o.every((i, s) => {
|
|
32
32
|
const e = r[s];
|
|
33
|
-
return
|
|
33
|
+
return At(i, e);
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Dt(t) {
|
|
37
37
|
return typeof t == "number";
|
|
38
38
|
}
|
|
39
39
|
function Tt(t) {
|
|
@@ -42,23 +42,26 @@ function Tt(t) {
|
|
|
42
42
|
function xt(t) {
|
|
43
43
|
return typeof t == "boolean";
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Ut(t) {
|
|
46
46
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
47
47
|
}
|
|
48
48
|
function D(t) {
|
|
49
49
|
return Math.abs(t);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Pt(t) {
|
|
52
52
|
return Math.sign(t);
|
|
53
53
|
}
|
|
54
54
|
function ft(t, n) {
|
|
55
55
|
return D(t - n);
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function hn(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);
|
|
61
61
|
}
|
|
62
|
+
function yn(t) {
|
|
63
|
+
return Math.round(t * 100) / 100;
|
|
64
|
+
}
|
|
62
65
|
function dt(t) {
|
|
63
66
|
return pt(t).map(Number);
|
|
64
67
|
}
|
|
@@ -68,25 +71,25 @@ function V(t) {
|
|
|
68
71
|
function ht(t) {
|
|
69
72
|
return Math.max(0, t.length - 1);
|
|
70
73
|
}
|
|
71
|
-
function
|
|
74
|
+
function Ot(t, n) {
|
|
72
75
|
return n === ht(t);
|
|
73
76
|
}
|
|
74
|
-
function
|
|
77
|
+
function Qt(t, n = 0) {
|
|
75
78
|
return Array.from(Array(t), (o, r) => n + r);
|
|
76
79
|
}
|
|
77
80
|
function pt(t) {
|
|
78
81
|
return Object.keys(t);
|
|
79
82
|
}
|
|
80
|
-
function
|
|
83
|
+
function Xt(t, n) {
|
|
81
84
|
return [t, n].reduce((o, r) => (pt(r).forEach((i) => {
|
|
82
|
-
const s = o[i], e = r[i], a =
|
|
83
|
-
o[i] = a ?
|
|
85
|
+
const s = o[i], e = r[i], a = Ut(s) && Ut(e);
|
|
86
|
+
o[i] = a ? Xt(s, e) : e;
|
|
84
87
|
}), o), {});
|
|
85
88
|
}
|
|
86
|
-
function
|
|
89
|
+
function Nt(t, n) {
|
|
87
90
|
return typeof n.MouseEvent < "u" && t instanceof n.MouseEvent;
|
|
88
91
|
}
|
|
89
|
-
function
|
|
92
|
+
function Sn(t, n) {
|
|
90
93
|
const o = {
|
|
91
94
|
start: r,
|
|
92
95
|
center: i,
|
|
@@ -131,7 +134,7 @@ function mt() {
|
|
|
131
134
|
};
|
|
132
135
|
return r;
|
|
133
136
|
}
|
|
134
|
-
function
|
|
137
|
+
function xn(t, n, o, r) {
|
|
135
138
|
const i = mt(), s = 1e3 / 60;
|
|
136
139
|
let e = null, a = 0, u = 0;
|
|
137
140
|
function c() {
|
|
@@ -144,14 +147,14 @@ function yn(t, n, o, r) {
|
|
|
144
147
|
}
|
|
145
148
|
function d(h) {
|
|
146
149
|
if (!u) return;
|
|
147
|
-
e || (e = h);
|
|
150
|
+
e || (e = h, o(), o());
|
|
148
151
|
const f = h - e;
|
|
149
152
|
for (e = h, a += f; a >= s; )
|
|
150
|
-
o(
|
|
151
|
-
const
|
|
152
|
-
r(
|
|
153
|
+
o(), a -= s;
|
|
154
|
+
const g = a / s;
|
|
155
|
+
r(g), u && (u = n.requestAnimationFrame(d));
|
|
153
156
|
}
|
|
154
|
-
function
|
|
157
|
+
function p() {
|
|
155
158
|
u || (u = n.requestAnimationFrame(d));
|
|
156
159
|
}
|
|
157
160
|
function x() {
|
|
@@ -163,20 +166,20 @@ function yn(t, n, o, r) {
|
|
|
163
166
|
return {
|
|
164
167
|
init: c,
|
|
165
168
|
destroy: y,
|
|
166
|
-
start:
|
|
169
|
+
start: p,
|
|
167
170
|
stop: x,
|
|
168
|
-
update:
|
|
171
|
+
update: o,
|
|
169
172
|
render: r
|
|
170
173
|
};
|
|
171
174
|
}
|
|
172
|
-
function
|
|
175
|
+
function bn(t, n) {
|
|
173
176
|
const o = n === "rtl", r = t === "y", i = r ? "y" : "x", s = r ? "x" : "y", e = !r && o ? -1 : 1, a = y(), u = d();
|
|
174
177
|
function c(l) {
|
|
175
178
|
const {
|
|
176
|
-
height:
|
|
179
|
+
height: m,
|
|
177
180
|
width: h
|
|
178
181
|
} = l;
|
|
179
|
-
return r ?
|
|
182
|
+
return r ? m : h;
|
|
180
183
|
}
|
|
181
184
|
function y() {
|
|
182
185
|
return r ? "top" : o ? "right" : "left";
|
|
@@ -184,7 +187,7 @@ function Sn(t, n) {
|
|
|
184
187
|
function d() {
|
|
185
188
|
return r ? "bottom" : o ? "left" : "right";
|
|
186
189
|
}
|
|
187
|
-
function
|
|
190
|
+
function p(l) {
|
|
188
191
|
return l * e;
|
|
189
192
|
}
|
|
190
193
|
return {
|
|
@@ -193,10 +196,10 @@ function Sn(t, n) {
|
|
|
193
196
|
startEdge: a,
|
|
194
197
|
endEdge: u,
|
|
195
198
|
measureSize: c,
|
|
196
|
-
direction:
|
|
199
|
+
direction: p
|
|
197
200
|
};
|
|
198
201
|
}
|
|
199
|
-
function
|
|
202
|
+
function et(t = 0, n = 0) {
|
|
200
203
|
const o = D(t - n);
|
|
201
204
|
function r(c) {
|
|
202
205
|
return c < t;
|
|
@@ -224,25 +227,25 @@ function ot(t = 0, n = 0) {
|
|
|
224
227
|
removeOffset: a
|
|
225
228
|
};
|
|
226
229
|
}
|
|
227
|
-
function
|
|
230
|
+
function Yt(t, n, o) {
|
|
228
231
|
const {
|
|
229
232
|
constrain: r
|
|
230
|
-
} =
|
|
233
|
+
} = et(0, t), i = t + 1;
|
|
231
234
|
let s = e(n);
|
|
232
|
-
function e(
|
|
233
|
-
return o ? D((i +
|
|
235
|
+
function e(p) {
|
|
236
|
+
return o ? D((i + p) % i) : r(p);
|
|
234
237
|
}
|
|
235
238
|
function a() {
|
|
236
239
|
return s;
|
|
237
240
|
}
|
|
238
|
-
function u(
|
|
239
|
-
return s = e(
|
|
241
|
+
function u(p) {
|
|
242
|
+
return s = e(p), d;
|
|
240
243
|
}
|
|
241
|
-
function c(
|
|
242
|
-
return y().set(a() +
|
|
244
|
+
function c(p) {
|
|
245
|
+
return y().set(a() + p);
|
|
243
246
|
}
|
|
244
247
|
function y() {
|
|
245
|
-
return
|
|
248
|
+
return Yt(t, a(), o);
|
|
246
249
|
}
|
|
247
250
|
const d = {
|
|
248
251
|
get: a,
|
|
@@ -252,69 +255,69 @@ function _t(t, n, o) {
|
|
|
252
255
|
};
|
|
253
256
|
return d;
|
|
254
257
|
}
|
|
255
|
-
function
|
|
258
|
+
function En(t, n, o, r, i, s, e, a, u, c, y, d, p, x, l, m, h, f, g) {
|
|
256
259
|
const {
|
|
257
260
|
cross: b,
|
|
258
|
-
direction:
|
|
259
|
-
} = t,
|
|
261
|
+
direction: L
|
|
262
|
+
} = t, N = ["INPUT", "SELECT", "TEXTAREA"], C = {
|
|
260
263
|
passive: !1
|
|
261
|
-
}, E = mt(), v = mt(),
|
|
264
|
+
}, E = mt(), v = mt(), w = et(50, 225).constrain(x.measure(20)), P = {
|
|
262
265
|
mouse: 300,
|
|
263
266
|
touch: 400
|
|
264
|
-
},
|
|
267
|
+
}, I = {
|
|
265
268
|
mouse: 500,
|
|
266
269
|
touch: 600
|
|
267
|
-
},
|
|
268
|
-
let G = !1, H = 0, q = 0,
|
|
270
|
+
}, F = l ? 43 : 25;
|
|
271
|
+
let G = !1, H = 0, q = 0, W = !1, _ = !1, U = !1, Q = !1;
|
|
269
272
|
function it(S) {
|
|
270
|
-
if (!
|
|
271
|
-
function
|
|
272
|
-
(xt(
|
|
273
|
+
if (!g) return;
|
|
274
|
+
function T(k) {
|
|
275
|
+
(xt(g) || g(S, k)) && ut(k);
|
|
273
276
|
}
|
|
274
277
|
const O = n;
|
|
275
|
-
E.add(O, "dragstart", (k) => k.preventDefault(),
|
|
276
|
-
},
|
|
277
|
-
}).add(O, "touchstart",
|
|
278
|
+
E.add(O, "dragstart", (k) => k.preventDefault(), C).add(O, "touchmove", () => {
|
|
279
|
+
}, C).add(O, "touchend", () => {
|
|
280
|
+
}).add(O, "touchstart", T).add(O, "mousedown", T).add(O, "touchcancel", M).add(O, "contextmenu", M).add(O, "click", X, !0);
|
|
278
281
|
}
|
|
279
282
|
function $() {
|
|
280
283
|
E.clear(), v.clear();
|
|
281
284
|
}
|
|
282
|
-
function
|
|
285
|
+
function ot() {
|
|
283
286
|
const S = Q ? o : n;
|
|
284
|
-
v.add(S, "touchmove", z,
|
|
287
|
+
v.add(S, "touchmove", z, C).add(S, "touchend", M).add(S, "mousemove", z, C).add(S, "mouseup", M);
|
|
285
288
|
}
|
|
286
|
-
function
|
|
287
|
-
const
|
|
288
|
-
return
|
|
289
|
+
function rt(S) {
|
|
290
|
+
const T = S.nodeName || "";
|
|
291
|
+
return N.includes(T);
|
|
289
292
|
}
|
|
290
293
|
function J() {
|
|
291
|
-
return (l ?
|
|
294
|
+
return (l ? I : P)[Q ? "mouse" : "touch"];
|
|
292
295
|
}
|
|
293
|
-
function ct(S,
|
|
294
|
-
const O = d.add(
|
|
295
|
-
return l || D(S) <
|
|
296
|
+
function ct(S, T) {
|
|
297
|
+
const O = d.add(Pt(S) * -1), k = y.byDistance(S, !l).distance;
|
|
298
|
+
return l || D(S) < w ? k : h && T ? k * 0.5 : y.byIndex(O.get(), 0).distance;
|
|
296
299
|
}
|
|
297
300
|
function ut(S) {
|
|
298
|
-
const
|
|
299
|
-
Q =
|
|
301
|
+
const T = Nt(S, r);
|
|
302
|
+
Q = T, U = l && T && !S.buttons && G, G = ft(i.get(), e.get()) >= 2, !(T && S.button !== 0) && (rt(S.target) || (W = !0, s.pointerDown(S), c.useFriction(0).useDuration(0), i.set(e), ot(), H = s.readPoint(S), q = s.readPoint(S, b), p.emit("pointerDown")));
|
|
300
303
|
}
|
|
301
304
|
function z(S) {
|
|
302
|
-
if (!
|
|
305
|
+
if (!Nt(S, r) && S.touches.length >= 2) return M(S);
|
|
303
306
|
const O = s.readPoint(S), k = s.readPoint(S, b), K = ft(O, H), Y = ft(k, q);
|
|
304
307
|
if (!_ && !Q && (!S.cancelable || (_ = K > Y, !_)))
|
|
305
308
|
return M(S);
|
|
306
|
-
const
|
|
307
|
-
K >
|
|
309
|
+
const tt = s.pointerMove(S);
|
|
310
|
+
K > m && (U = !0), c.useFriction(0.3).useDuration(0.75), a.start(), i.add(L(tt)), S.preventDefault();
|
|
308
311
|
}
|
|
309
312
|
function M(S) {
|
|
310
|
-
const O = y.byDistance(0, !1).index !== d.get(), k = s.pointerUp(S) * J(), K = ct(
|
|
311
|
-
_ = !1,
|
|
313
|
+
const O = y.byDistance(0, !1).index !== d.get(), k = s.pointerUp(S) * J(), K = ct(L(k), O), Y = hn(k, K), tt = F - 10 * Y, Z = f + Y / 50;
|
|
314
|
+
_ = !1, W = !1, v.clear(), c.useDuration(tt).useFriction(Z), u.distance(K, !l), Q = !1, p.emit("pointerUp");
|
|
312
315
|
}
|
|
313
316
|
function X(S) {
|
|
314
317
|
U && (S.stopPropagation(), S.preventDefault(), U = !1);
|
|
315
318
|
}
|
|
316
319
|
function B() {
|
|
317
|
-
return
|
|
320
|
+
return W;
|
|
318
321
|
}
|
|
319
322
|
return {
|
|
320
323
|
init: it,
|
|
@@ -322,26 +325,26 @@ function xn(t, n, o, r, i, s, e, a, u, c, y, d, g, x, l, p, h, f, m) {
|
|
|
322
325
|
pointerDown: B
|
|
323
326
|
};
|
|
324
327
|
}
|
|
325
|
-
function
|
|
328
|
+
function vn(t, n) {
|
|
326
329
|
let r, i;
|
|
327
330
|
function s(d) {
|
|
328
331
|
return d.timeStamp;
|
|
329
332
|
}
|
|
330
|
-
function e(d,
|
|
331
|
-
const l = `client${(
|
|
332
|
-
return (
|
|
333
|
+
function e(d, p) {
|
|
334
|
+
const l = `client${(p || t.scroll) === "x" ? "X" : "Y"}`;
|
|
335
|
+
return (Nt(d, n) ? d : d.touches[0])[l];
|
|
333
336
|
}
|
|
334
337
|
function a(d) {
|
|
335
338
|
return r = d, i = d, e(d);
|
|
336
339
|
}
|
|
337
340
|
function u(d) {
|
|
338
|
-
const
|
|
339
|
-
return i = d, x && (r = d),
|
|
341
|
+
const p = e(d) - e(i), x = s(d) - s(r) > 170;
|
|
342
|
+
return i = d, x && (r = d), p;
|
|
340
343
|
}
|
|
341
344
|
function c(d) {
|
|
342
345
|
if (!r || !i) return 0;
|
|
343
|
-
const
|
|
344
|
-
return x && !l && D(
|
|
346
|
+
const p = e(i) - e(r), x = s(d) - s(r), l = s(d) - s(i) > 170, m = p / x;
|
|
347
|
+
return x && !l && D(m) > 0.1 ? m : 0;
|
|
345
348
|
}
|
|
346
349
|
return {
|
|
347
350
|
pointerDown: a,
|
|
@@ -350,7 +353,7 @@ function bn(t, n) {
|
|
|
350
353
|
readPoint: e
|
|
351
354
|
};
|
|
352
355
|
}
|
|
353
|
-
function
|
|
356
|
+
function Ln() {
|
|
354
357
|
function t(o) {
|
|
355
358
|
const {
|
|
356
359
|
offsetTop: r,
|
|
@@ -371,7 +374,7 @@ function En() {
|
|
|
371
374
|
measure: t
|
|
372
375
|
};
|
|
373
376
|
}
|
|
374
|
-
function
|
|
377
|
+
function Cn(t) {
|
|
375
378
|
function n(r) {
|
|
376
379
|
return t * (r / 100);
|
|
377
380
|
}
|
|
@@ -379,29 +382,29 @@ function vn(t) {
|
|
|
379
382
|
measure: n
|
|
380
383
|
};
|
|
381
384
|
}
|
|
382
|
-
function
|
|
385
|
+
function wn(t, n, o, r, i, s, e) {
|
|
383
386
|
const a = [t].concat(r);
|
|
384
387
|
let u, c, y = [], d = !1;
|
|
385
|
-
function
|
|
388
|
+
function p(h) {
|
|
386
389
|
return i.measureSize(e.measure(h));
|
|
387
390
|
}
|
|
388
391
|
function x(h) {
|
|
389
392
|
if (!s) return;
|
|
390
|
-
c =
|
|
391
|
-
function f(
|
|
392
|
-
for (const b of
|
|
393
|
+
c = p(t), y = r.map(p);
|
|
394
|
+
function f(g) {
|
|
395
|
+
for (const b of g) {
|
|
393
396
|
if (d) return;
|
|
394
|
-
const
|
|
395
|
-
if (D(E -
|
|
397
|
+
const L = b.target === t, N = r.indexOf(b.target), C = L ? c : y[N], E = p(L ? t : r[N]);
|
|
398
|
+
if (D(E - C) >= 0.5) {
|
|
396
399
|
h.reInit(), n.emit("resize");
|
|
397
400
|
break;
|
|
398
401
|
}
|
|
399
402
|
}
|
|
400
403
|
}
|
|
401
|
-
u = new ResizeObserver((
|
|
402
|
-
(xt(s) || s(h,
|
|
404
|
+
u = new ResizeObserver((g) => {
|
|
405
|
+
(xt(s) || s(h, g)) && f(g);
|
|
403
406
|
}), o.requestAnimationFrame(() => {
|
|
404
|
-
a.forEach((
|
|
407
|
+
a.forEach((g) => u.observe(g));
|
|
405
408
|
});
|
|
406
409
|
}
|
|
407
410
|
function l() {
|
|
@@ -412,21 +415,21 @@ function Ln(t, n, o, r, i, s, e) {
|
|
|
412
415
|
destroy: l
|
|
413
416
|
};
|
|
414
417
|
}
|
|
415
|
-
function
|
|
418
|
+
function In(t, n, o, r, i, s) {
|
|
416
419
|
let e = 0, a = 0, u = i, c = s, y = t.get(), d = 0;
|
|
417
|
-
function
|
|
418
|
-
const
|
|
419
|
-
let
|
|
420
|
-
return
|
|
420
|
+
function p() {
|
|
421
|
+
const C = r.get() - t.get(), E = !u;
|
|
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, y += e, t.add(e), v = y - d), a = Pt(v), d = y, N;
|
|
421
424
|
}
|
|
422
425
|
function x() {
|
|
423
|
-
const
|
|
424
|
-
return D(
|
|
426
|
+
const C = r.get() - n.get();
|
|
427
|
+
return D(C) < 1e-3;
|
|
425
428
|
}
|
|
426
429
|
function l() {
|
|
427
430
|
return u;
|
|
428
431
|
}
|
|
429
|
-
function
|
|
432
|
+
function m() {
|
|
430
433
|
return a;
|
|
431
434
|
}
|
|
432
435
|
function h() {
|
|
@@ -435,37 +438,37 @@ function Cn(t, n, o, r, i, s) {
|
|
|
435
438
|
function f() {
|
|
436
439
|
return b(i);
|
|
437
440
|
}
|
|
438
|
-
function
|
|
439
|
-
return
|
|
441
|
+
function g() {
|
|
442
|
+
return L(s);
|
|
440
443
|
}
|
|
441
|
-
function b(
|
|
442
|
-
return u =
|
|
444
|
+
function b(C) {
|
|
445
|
+
return u = C, N;
|
|
443
446
|
}
|
|
444
|
-
function
|
|
445
|
-
return c =
|
|
447
|
+
function L(C) {
|
|
448
|
+
return c = C, N;
|
|
446
449
|
}
|
|
447
|
-
const
|
|
448
|
-
direction:
|
|
450
|
+
const N = {
|
|
451
|
+
direction: m,
|
|
449
452
|
duration: l,
|
|
450
453
|
velocity: h,
|
|
451
|
-
seek:
|
|
454
|
+
seek: p,
|
|
452
455
|
settled: x,
|
|
453
|
-
useBaseFriction:
|
|
456
|
+
useBaseFriction: g,
|
|
454
457
|
useBaseDuration: f,
|
|
455
|
-
useFriction:
|
|
458
|
+
useFriction: L,
|
|
456
459
|
useDuration: b
|
|
457
460
|
};
|
|
458
|
-
return
|
|
461
|
+
return N;
|
|
459
462
|
}
|
|
460
|
-
function
|
|
461
|
-
const s = i.measure(10), e = i.measure(50), a =
|
|
463
|
+
function Tn(t, n, o, r, i) {
|
|
464
|
+
const s = i.measure(10), e = i.measure(50), a = et(0.1, 0.99);
|
|
462
465
|
let u = !1;
|
|
463
466
|
function c() {
|
|
464
467
|
return !(u || !t.reachedAny(o.get()) || !t.reachedAny(n.get()));
|
|
465
468
|
}
|
|
466
469
|
function y(x) {
|
|
467
470
|
if (!c()) return;
|
|
468
|
-
const l = t.reachedMin(n.get()) ? "min" : "max",
|
|
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);
|
|
469
472
|
o.subtract(h * f), !x && D(h) < s && (o.set(t.constrain(o.get())), r.useDuration(25).useBaseFriction());
|
|
470
473
|
}
|
|
471
474
|
function d(x) {
|
|
@@ -477,62 +480,62 @@ function wn(t, n, o, r, i) {
|
|
|
477
480
|
toggleActive: d
|
|
478
481
|
};
|
|
479
482
|
}
|
|
480
|
-
function
|
|
481
|
-
const s =
|
|
482
|
-
function c(l,
|
|
483
|
-
return ft(l,
|
|
483
|
+
function Nn(t, n, o, r, i) {
|
|
484
|
+
const s = et(-n + t, 0), e = d(), a = y(), u = p();
|
|
485
|
+
function c(l, m) {
|
|
486
|
+
return ft(l, m) <= 1;
|
|
484
487
|
}
|
|
485
488
|
function y() {
|
|
486
|
-
const l = e[0],
|
|
487
|
-
return
|
|
489
|
+
const l = e[0], m = V(e), h = e.lastIndexOf(l), f = e.indexOf(m) + 1;
|
|
490
|
+
return et(h, f);
|
|
488
491
|
}
|
|
489
492
|
function d() {
|
|
490
|
-
return o.map((l,
|
|
493
|
+
return o.map((l, m) => {
|
|
491
494
|
const {
|
|
492
495
|
min: h,
|
|
493
496
|
max: f
|
|
494
|
-
} = s,
|
|
495
|
-
return b ? f :
|
|
497
|
+
} = s, g = s.constrain(l), b = !m, L = Ot(o, m);
|
|
498
|
+
return b ? f : L || c(h, g) ? h : c(f, g) ? f : g;
|
|
496
499
|
}).map((l) => parseFloat(l.toFixed(3)));
|
|
497
500
|
}
|
|
498
|
-
function
|
|
501
|
+
function p() {
|
|
499
502
|
if (n <= t + i) return [s.max];
|
|
500
503
|
if (r === "keepSnaps") return e;
|
|
501
504
|
const {
|
|
502
505
|
min: l,
|
|
503
|
-
max:
|
|
506
|
+
max: m
|
|
504
507
|
} = a;
|
|
505
|
-
return e.slice(l,
|
|
508
|
+
return e.slice(l, m);
|
|
506
509
|
}
|
|
507
510
|
return {
|
|
508
511
|
snapsContained: u,
|
|
509
512
|
scrollContainLimit: a
|
|
510
513
|
};
|
|
511
514
|
}
|
|
512
|
-
function
|
|
515
|
+
function An(t, n, o) {
|
|
513
516
|
const r = n[0], i = o ? r - t : V(n);
|
|
514
517
|
return {
|
|
515
|
-
limit:
|
|
518
|
+
limit: et(i, r)
|
|
516
519
|
};
|
|
517
520
|
}
|
|
518
|
-
function
|
|
521
|
+
function Dn(t, n, o, r) {
|
|
519
522
|
const s = n.min + 0.1, e = n.max + 0.1, {
|
|
520
523
|
reachedMin: a,
|
|
521
524
|
reachedMax: u
|
|
522
|
-
} =
|
|
523
|
-
function c(
|
|
524
|
-
return
|
|
525
|
+
} = et(s, e);
|
|
526
|
+
function c(p) {
|
|
527
|
+
return p === 1 ? u(o.get()) : p === -1 ? a(o.get()) : !1;
|
|
525
528
|
}
|
|
526
|
-
function y(
|
|
527
|
-
if (!c(
|
|
528
|
-
const x = t * (
|
|
529
|
+
function y(p) {
|
|
530
|
+
if (!c(p)) return;
|
|
531
|
+
const x = t * (p * -1);
|
|
529
532
|
r.forEach((l) => l.add(x));
|
|
530
533
|
}
|
|
531
534
|
return {
|
|
532
535
|
loop: y
|
|
533
536
|
};
|
|
534
537
|
}
|
|
535
|
-
function
|
|
538
|
+
function Pn(t) {
|
|
536
539
|
const {
|
|
537
540
|
max: n,
|
|
538
541
|
length: o
|
|
@@ -545,28 +548,28 @@ function An(t) {
|
|
|
545
548
|
get: r
|
|
546
549
|
};
|
|
547
550
|
}
|
|
548
|
-
function
|
|
551
|
+
function On(t, n, o, r, i) {
|
|
549
552
|
const {
|
|
550
553
|
startEdge: s,
|
|
551
554
|
endEdge: e
|
|
552
555
|
} = t, {
|
|
553
556
|
groupSlides: a
|
|
554
|
-
} = i, u = d().map(n.measure), c =
|
|
557
|
+
} = i, u = d().map(n.measure), c = p(), y = x();
|
|
555
558
|
function d() {
|
|
556
|
-
return a(r).map((
|
|
559
|
+
return a(r).map((m) => V(m)[e] - m[0][s]).map(D);
|
|
557
560
|
}
|
|
558
|
-
function
|
|
559
|
-
return r.map((
|
|
561
|
+
function p() {
|
|
562
|
+
return r.map((m) => o[s] - m[s]).map((m) => -D(m));
|
|
560
563
|
}
|
|
561
564
|
function x() {
|
|
562
|
-
return a(c).map((
|
|
565
|
+
return a(c).map((m) => m[0]).map((m, h) => m + u[h]);
|
|
563
566
|
}
|
|
564
567
|
return {
|
|
565
568
|
snaps: c,
|
|
566
569
|
snapsAligned: y
|
|
567
570
|
};
|
|
568
571
|
}
|
|
569
|
-
function
|
|
572
|
+
function Mn(t, n, o, r, i, s) {
|
|
570
573
|
const {
|
|
571
574
|
groupSlides: e
|
|
572
575
|
} = i, {
|
|
@@ -574,16 +577,16 @@ function Pn(t, n, o, r, i, s) {
|
|
|
574
577
|
max: u
|
|
575
578
|
} = r, c = y();
|
|
576
579
|
function y() {
|
|
577
|
-
const
|
|
578
|
-
return o.length === 1 ? [s] : x ?
|
|
579
|
-
const f = !
|
|
580
|
+
const p = e(s), x = !t || n === "keepSnaps";
|
|
581
|
+
return o.length === 1 ? [s] : x ? p : p.slice(a, u).map((l, m, h) => {
|
|
582
|
+
const f = !m, g = Ot(h, m);
|
|
580
583
|
if (f) {
|
|
581
584
|
const b = V(h[0]) + 1;
|
|
582
|
-
return
|
|
585
|
+
return Qt(b);
|
|
583
586
|
}
|
|
584
|
-
if (
|
|
587
|
+
if (g) {
|
|
585
588
|
const b = ht(s) - V(h)[0] + 1;
|
|
586
|
-
return
|
|
589
|
+
return Qt(b, V(h)[0]);
|
|
587
590
|
}
|
|
588
591
|
return l;
|
|
589
592
|
});
|
|
@@ -592,73 +595,73 @@ function Pn(t, n, o, r, i, s) {
|
|
|
592
595
|
slideRegistry: c
|
|
593
596
|
};
|
|
594
597
|
}
|
|
595
|
-
function
|
|
598
|
+
function kn(t, n, o, r, i) {
|
|
596
599
|
const {
|
|
597
600
|
reachedAny: s,
|
|
598
601
|
removeOffset: e,
|
|
599
602
|
constrain: a
|
|
600
603
|
} = r;
|
|
601
604
|
function u(l) {
|
|
602
|
-
return l.concat().sort((
|
|
605
|
+
return l.concat().sort((m, h) => D(m) - D(h))[0];
|
|
603
606
|
}
|
|
604
607
|
function c(l) {
|
|
605
|
-
const
|
|
606
|
-
diff: y(
|
|
608
|
+
const m = t ? e(l) : a(l), h = n.map((g, b) => ({
|
|
609
|
+
diff: y(g - m, 0),
|
|
607
610
|
index: b
|
|
608
|
-
})).sort((
|
|
611
|
+
})).sort((g, b) => D(g.diff) - D(b.diff)), {
|
|
609
612
|
index: f
|
|
610
613
|
} = h[0];
|
|
611
614
|
return {
|
|
612
615
|
index: f,
|
|
613
|
-
distance:
|
|
616
|
+
distance: m
|
|
614
617
|
};
|
|
615
618
|
}
|
|
616
|
-
function y(l,
|
|
619
|
+
function y(l, m) {
|
|
617
620
|
const h = [l, l + o, l - o];
|
|
618
621
|
if (!t) return l;
|
|
619
|
-
if (!
|
|
620
|
-
const f = h.filter((
|
|
622
|
+
if (!m) return u(h);
|
|
623
|
+
const f = h.filter((g) => Pt(g) === m);
|
|
621
624
|
return f.length ? u(f) : V(h) - o;
|
|
622
625
|
}
|
|
623
|
-
function d(l,
|
|
624
|
-
const h = n[l] - i.get(), f = y(h,
|
|
626
|
+
function d(l, m) {
|
|
627
|
+
const h = n[l] - i.get(), f = y(h, m);
|
|
625
628
|
return {
|
|
626
629
|
index: l,
|
|
627
630
|
distance: f
|
|
628
631
|
};
|
|
629
632
|
}
|
|
630
|
-
function
|
|
633
|
+
function p(l, m) {
|
|
631
634
|
const h = i.get() + l, {
|
|
632
635
|
index: f,
|
|
633
|
-
distance:
|
|
636
|
+
distance: g
|
|
634
637
|
} = c(h), b = !t && s(h);
|
|
635
|
-
if (!
|
|
638
|
+
if (!m || b) return {
|
|
636
639
|
index: f,
|
|
637
640
|
distance: l
|
|
638
641
|
};
|
|
639
|
-
const
|
|
642
|
+
const L = n[f] - g, N = l + y(L, 0);
|
|
640
643
|
return {
|
|
641
644
|
index: f,
|
|
642
|
-
distance:
|
|
645
|
+
distance: N
|
|
643
646
|
};
|
|
644
647
|
}
|
|
645
648
|
return {
|
|
646
|
-
byDistance:
|
|
649
|
+
byDistance: p,
|
|
647
650
|
byIndex: d,
|
|
648
651
|
shortcut: y
|
|
649
652
|
};
|
|
650
653
|
}
|
|
651
|
-
function
|
|
654
|
+
function jn(t, n, o, r, i, s, e) {
|
|
652
655
|
function a(d) {
|
|
653
|
-
const
|
|
654
|
-
s.add(
|
|
656
|
+
const p = d.distance, x = d.index !== n.get();
|
|
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"));
|
|
655
658
|
}
|
|
656
|
-
function u(d,
|
|
657
|
-
const x = i.byDistance(d,
|
|
659
|
+
function u(d, p) {
|
|
660
|
+
const x = i.byDistance(d, p);
|
|
658
661
|
a(x);
|
|
659
662
|
}
|
|
660
|
-
function c(d,
|
|
661
|
-
const x = n.clone().set(d), l = i.byIndex(x.get(),
|
|
663
|
+
function c(d, p) {
|
|
664
|
+
const x = n.clone().set(d), l = i.byIndex(x.get(), p);
|
|
662
665
|
a(l);
|
|
663
666
|
}
|
|
664
667
|
return {
|
|
@@ -666,7 +669,7 @@ function Mn(t, n, o, r, i, s, e) {
|
|
|
666
669
|
index: c
|
|
667
670
|
};
|
|
668
671
|
}
|
|
669
|
-
function
|
|
672
|
+
function Fn(t, n, o, r, i, s, e, a) {
|
|
670
673
|
const u = {
|
|
671
674
|
passive: !0,
|
|
672
675
|
capture: !0
|
|
@@ -674,14 +677,14 @@ function kn(t, n, o, r, i, s, e, a) {
|
|
|
674
677
|
let c = 0;
|
|
675
678
|
function y(x) {
|
|
676
679
|
if (!a) return;
|
|
677
|
-
function l(
|
|
680
|
+
function l(m) {
|
|
678
681
|
if ((/* @__PURE__ */ new Date()).getTime() - c > 10) return;
|
|
679
682
|
e.emit("slideFocusStart"), t.scrollLeft = 0;
|
|
680
|
-
const
|
|
681
|
-
|
|
683
|
+
const g = o.findIndex((b) => b.includes(m));
|
|
684
|
+
Dt(g) && (i.useDuration(0), r.index(g, 0), e.emit("slideFocus"));
|
|
682
685
|
}
|
|
683
|
-
s.add(document, "keydown", d, !1), n.forEach((
|
|
684
|
-
s.add(
|
|
686
|
+
s.add(document, "keydown", d, !1), n.forEach((m, h) => {
|
|
687
|
+
s.add(m, "focus", (f) => {
|
|
685
688
|
(xt(a) || a(x, f)) && l(h);
|
|
686
689
|
}, u);
|
|
687
690
|
});
|
|
@@ -708,7 +711,7 @@ function lt(t) {
|
|
|
708
711
|
n -= e(u);
|
|
709
712
|
}
|
|
710
713
|
function e(u) {
|
|
711
|
-
return
|
|
714
|
+
return Dt(u) ? u : u.get();
|
|
712
715
|
}
|
|
713
716
|
return {
|
|
714
717
|
get: o,
|
|
@@ -717,54 +720,56 @@ function lt(t) {
|
|
|
717
720
|
subtract: s
|
|
718
721
|
};
|
|
719
722
|
}
|
|
720
|
-
function
|
|
721
|
-
const o = t.scroll === "x" ?
|
|
722
|
-
let i = !1;
|
|
723
|
-
function
|
|
724
|
-
return `translate3d(${
|
|
723
|
+
function _t(t, n) {
|
|
724
|
+
const o = t.scroll === "x" ? e : a, r = n.style;
|
|
725
|
+
let i = null, s = !1;
|
|
726
|
+
function e(p) {
|
|
727
|
+
return `translate3d(${p}px,0px,0px)`;
|
|
725
728
|
}
|
|
726
|
-
function
|
|
727
|
-
return `translate3d(0px,${
|
|
729
|
+
function a(p) {
|
|
730
|
+
return `translate3d(0px,${p}px,0px)`;
|
|
728
731
|
}
|
|
729
|
-
function
|
|
730
|
-
|
|
732
|
+
function u(p) {
|
|
733
|
+
if (s) return;
|
|
734
|
+
const x = yn(t.direction(p));
|
|
735
|
+
x !== i && (r.transform = o(x), i = x);
|
|
731
736
|
}
|
|
732
|
-
function
|
|
733
|
-
|
|
737
|
+
function c(p) {
|
|
738
|
+
s = !p;
|
|
734
739
|
}
|
|
735
|
-
function
|
|
736
|
-
|
|
740
|
+
function y() {
|
|
741
|
+
s || (r.transform = "", n.getAttribute("style") || n.removeAttribute("style"));
|
|
737
742
|
}
|
|
738
743
|
return {
|
|
739
|
-
clear:
|
|
740
|
-
to:
|
|
741
|
-
toggleActive:
|
|
744
|
+
clear: y,
|
|
745
|
+
to: u,
|
|
746
|
+
toggleActive: c
|
|
742
747
|
};
|
|
743
748
|
}
|
|
744
|
-
function
|
|
745
|
-
const y = dt(i), d = dt(i).reverse(),
|
|
749
|
+
function zn(t, n, o, r, i, s, e, a, u) {
|
|
750
|
+
const y = dt(i), d = dt(i).reverse(), p = f().concat(g());
|
|
746
751
|
function x(E, v) {
|
|
747
|
-
return E.reduce((
|
|
752
|
+
return E.reduce((w, P) => w - i[P], v);
|
|
748
753
|
}
|
|
749
754
|
function l(E, v) {
|
|
750
|
-
return E.reduce((
|
|
755
|
+
return E.reduce((w, P) => x(w, v) > 0 ? w.concat([P]) : w, []);
|
|
751
756
|
}
|
|
752
|
-
function
|
|
753
|
-
return s.map((v,
|
|
754
|
-
start: v - r[
|
|
757
|
+
function m(E) {
|
|
758
|
+
return s.map((v, w) => ({
|
|
759
|
+
start: v - r[w] + 0.5 + E,
|
|
755
760
|
end: v + n - 0.5 + E
|
|
756
761
|
}));
|
|
757
762
|
}
|
|
758
|
-
function h(E, v,
|
|
759
|
-
const P =
|
|
760
|
-
return E.map((
|
|
761
|
-
const
|
|
763
|
+
function h(E, v, w) {
|
|
764
|
+
const P = m(v);
|
|
765
|
+
return E.map((I) => {
|
|
766
|
+
const F = w ? 0 : -o, G = w ? o : 0, H = w ? "end" : "start", q = P[I][H];
|
|
762
767
|
return {
|
|
763
|
-
index:
|
|
768
|
+
index: I,
|
|
764
769
|
loopPoint: q,
|
|
765
770
|
slideLocation: lt(-1),
|
|
766
|
-
translate:
|
|
767
|
-
target: () => a.get() > q ?
|
|
771
|
+
translate: _t(t, u[I]),
|
|
772
|
+
target: () => a.get() > q ? F : G
|
|
768
773
|
};
|
|
769
774
|
});
|
|
770
775
|
}
|
|
@@ -772,39 +777,39 @@ function Fn(t, n, o, r, i, s, e, a, u) {
|
|
|
772
777
|
const E = e[0], v = l(d, E);
|
|
773
778
|
return h(v, o, !1);
|
|
774
779
|
}
|
|
775
|
-
function
|
|
780
|
+
function g() {
|
|
776
781
|
const E = n - e[0] - 1, v = l(y, E);
|
|
777
782
|
return h(v, -o, !0);
|
|
778
783
|
}
|
|
779
784
|
function b() {
|
|
780
|
-
return
|
|
785
|
+
return p.every(({
|
|
781
786
|
index: E
|
|
782
787
|
}) => {
|
|
783
|
-
const v = y.filter((
|
|
788
|
+
const v = y.filter((w) => w !== E);
|
|
784
789
|
return x(v, n) <= 0.1;
|
|
785
790
|
});
|
|
786
791
|
}
|
|
787
|
-
function
|
|
788
|
-
|
|
792
|
+
function L() {
|
|
793
|
+
p.forEach((E) => {
|
|
789
794
|
const {
|
|
790
795
|
target: v,
|
|
791
|
-
translate:
|
|
796
|
+
translate: w,
|
|
792
797
|
slideLocation: P
|
|
793
|
-
} = E,
|
|
794
|
-
|
|
798
|
+
} = E, I = v();
|
|
799
|
+
I !== P.get() && (w.to(I), P.set(I));
|
|
795
800
|
});
|
|
796
801
|
}
|
|
797
|
-
function
|
|
798
|
-
|
|
802
|
+
function N() {
|
|
803
|
+
p.forEach((E) => E.translate.clear());
|
|
799
804
|
}
|
|
800
805
|
return {
|
|
801
806
|
canLoop: b,
|
|
802
|
-
clear:
|
|
803
|
-
loop:
|
|
804
|
-
loopPoints:
|
|
807
|
+
clear: N,
|
|
808
|
+
loop: L,
|
|
809
|
+
loopPoints: p
|
|
805
810
|
};
|
|
806
811
|
}
|
|
807
|
-
function
|
|
812
|
+
function Bn(t, n, o) {
|
|
808
813
|
let r, i = !1;
|
|
809
814
|
function s(u) {
|
|
810
815
|
if (!o) return;
|
|
@@ -829,14 +834,14 @@ function jn(t, n, o) {
|
|
|
829
834
|
destroy: e
|
|
830
835
|
};
|
|
831
836
|
}
|
|
832
|
-
function
|
|
837
|
+
function Rn(t, n, o, r) {
|
|
833
838
|
const i = {};
|
|
834
839
|
let s = null, e = null, a, u = !1;
|
|
835
840
|
function c() {
|
|
836
841
|
a = new IntersectionObserver((l) => {
|
|
837
|
-
u || (l.forEach((
|
|
838
|
-
const h = n.indexOf(
|
|
839
|
-
i[h] =
|
|
842
|
+
u || (l.forEach((m) => {
|
|
843
|
+
const h = n.indexOf(m.target);
|
|
844
|
+
i[h] = m;
|
|
840
845
|
}), s = null, e = null, o.emit("slidesInView"));
|
|
841
846
|
}, {
|
|
842
847
|
root: t.parentElement,
|
|
@@ -847,180 +852,181 @@ function zn(t, n, o, r) {
|
|
|
847
852
|
a && a.disconnect(), u = !0;
|
|
848
853
|
}
|
|
849
854
|
function d(l) {
|
|
850
|
-
return pt(i).reduce((
|
|
855
|
+
return pt(i).reduce((m, h) => {
|
|
851
856
|
const f = parseInt(h), {
|
|
852
|
-
isIntersecting:
|
|
857
|
+
isIntersecting: g
|
|
853
858
|
} = i[f];
|
|
854
|
-
return (l &&
|
|
859
|
+
return (l && g || !l && !g) && m.push(f), m;
|
|
855
860
|
}, []);
|
|
856
861
|
}
|
|
857
|
-
function
|
|
862
|
+
function p(l = !0) {
|
|
858
863
|
if (l && s) return s;
|
|
859
864
|
if (!l && e) return e;
|
|
860
|
-
const
|
|
861
|
-
return l && (s =
|
|
865
|
+
const m = d(l);
|
|
866
|
+
return l && (s = m), l || (e = m), m;
|
|
862
867
|
}
|
|
863
868
|
return {
|
|
864
869
|
init: c,
|
|
865
870
|
destroy: y,
|
|
866
|
-
get:
|
|
871
|
+
get: p
|
|
867
872
|
};
|
|
868
873
|
}
|
|
869
|
-
function
|
|
874
|
+
function Vn(t, n, o, r, i, s) {
|
|
870
875
|
const {
|
|
871
876
|
measureSize: e,
|
|
872
877
|
startEdge: a,
|
|
873
878
|
endEdge: u
|
|
874
|
-
} = t, c = o[0] && i, y = l(), d =
|
|
879
|
+
} = t, c = o[0] && i, y = l(), d = m(), p = o.map(e), x = h();
|
|
875
880
|
function l() {
|
|
876
881
|
if (!c) return 0;
|
|
877
|
-
const
|
|
878
|
-
return D(n[a] -
|
|
882
|
+
const g = o[0];
|
|
883
|
+
return D(n[a] - g[a]);
|
|
879
884
|
}
|
|
880
|
-
function
|
|
885
|
+
function m() {
|
|
881
886
|
if (!c) return 0;
|
|
882
|
-
const
|
|
883
|
-
return parseFloat(
|
|
887
|
+
const g = s.getComputedStyle(V(r));
|
|
888
|
+
return parseFloat(g.getPropertyValue(`margin-${u}`));
|
|
884
889
|
}
|
|
885
890
|
function h() {
|
|
886
|
-
return o.map((
|
|
887
|
-
const
|
|
888
|
-
return
|
|
891
|
+
return o.map((g, b, L) => {
|
|
892
|
+
const N = !b, C = Ot(L, b);
|
|
893
|
+
return N ? p[b] + y : C ? p[b] + d : L[b + 1][a] - g[a];
|
|
889
894
|
}).map(D);
|
|
890
895
|
}
|
|
891
896
|
return {
|
|
892
|
-
slideSizes:
|
|
897
|
+
slideSizes: p,
|
|
893
898
|
slideSizesWithGaps: x,
|
|
894
899
|
startGap: y,
|
|
895
900
|
endGap: d
|
|
896
901
|
};
|
|
897
902
|
}
|
|
898
|
-
function
|
|
903
|
+
function Gn(t, n, o, r, i, s, e, a, u) {
|
|
899
904
|
const {
|
|
900
905
|
startEdge: c,
|
|
901
906
|
endEdge: y,
|
|
902
907
|
direction: d
|
|
903
|
-
} = t,
|
|
904
|
-
function x(f,
|
|
905
|
-
return dt(f).filter((b) => b %
|
|
908
|
+
} = t, p = Dt(o);
|
|
909
|
+
function x(f, g) {
|
|
910
|
+
return dt(f).filter((b) => b % g === 0).map((b) => f.slice(b, b + g));
|
|
906
911
|
}
|
|
907
912
|
function l(f) {
|
|
908
|
-
return f.length ? dt(f).reduce((
|
|
909
|
-
const
|
|
910
|
-
return
|
|
911
|
-
}, []).map((
|
|
912
|
-
const
|
|
913
|
-
return f.slice(
|
|
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][y], P = !r && C ? d(e) : 0, I = !r && E ? d(a) : 0, F = D(w - I - (v + P));
|
|
915
|
+
return L && F > n + u && g.push(b), E && g.push(f.length), g;
|
|
916
|
+
}, []).map((g, b, L) => {
|
|
917
|
+
const N = Math.max(L[b - 1] || 0);
|
|
918
|
+
return f.slice(N, g);
|
|
914
919
|
}) : [];
|
|
915
920
|
}
|
|
916
|
-
function
|
|
917
|
-
return
|
|
921
|
+
function m(f) {
|
|
922
|
+
return p ? x(f, o) : l(f);
|
|
918
923
|
}
|
|
919
924
|
return {
|
|
920
|
-
groupSlides:
|
|
925
|
+
groupSlides: m
|
|
921
926
|
};
|
|
922
927
|
}
|
|
923
|
-
function
|
|
928
|
+
function Hn(t, n, o, r, i, s, e) {
|
|
924
929
|
const {
|
|
925
930
|
align: a,
|
|
926
931
|
axis: u,
|
|
927
932
|
direction: c,
|
|
928
933
|
startIndex: y,
|
|
929
934
|
loop: d,
|
|
930
|
-
duration:
|
|
935
|
+
duration: p,
|
|
931
936
|
dragFree: x,
|
|
932
937
|
dragThreshold: l,
|
|
933
|
-
inViewThreshold:
|
|
938
|
+
inViewThreshold: m,
|
|
934
939
|
slidesToScroll: h,
|
|
935
940
|
skipSnaps: f,
|
|
936
|
-
containScroll:
|
|
941
|
+
containScroll: g,
|
|
937
942
|
watchResize: b,
|
|
938
|
-
watchSlides:
|
|
939
|
-
watchDrag:
|
|
940
|
-
watchFocus:
|
|
941
|
-
} = s, E = 2, v =
|
|
943
|
+
watchSlides: L,
|
|
944
|
+
watchDrag: N,
|
|
945
|
+
watchFocus: C
|
|
946
|
+
} = s, E = 2, v = Ln(), w = v.measure(n), P = o.map(v.measure), I = bn(u, c), F = I.measureSize(w), G = Cn(F), H = Sn(a, F), q = !d && !!g, W = d || !!g, {
|
|
942
947
|
slideSizes: _,
|
|
943
948
|
slideSizesWithGaps: U,
|
|
944
949
|
startGap: Q,
|
|
945
950
|
endGap: it
|
|
946
|
-
} =
|
|
947
|
-
snaps:
|
|
948
|
-
snapsAligned:
|
|
949
|
-
} =
|
|
951
|
+
} = Vn(I, w, P, o, W, i), $ = Gn(I, F, h, d, w, P, Q, it, E), {
|
|
952
|
+
snaps: ot,
|
|
953
|
+
snapsAligned: rt
|
|
954
|
+
} = On(I, H, w, P, $), J = -V(ot) + V(U), {
|
|
950
955
|
snapsContained: ct,
|
|
951
956
|
scrollContainLimit: ut
|
|
952
|
-
} =
|
|
957
|
+
} = Nn(F, J, rt, g, E), z = q ? ct : rt, {
|
|
953
958
|
limit: M
|
|
954
|
-
} =
|
|
955
|
-
dragHandler:
|
|
959
|
+
} = An(J, z, d), X = Yt(ht(z), y, d), B = X.clone(), A = dt(o), S = ({
|
|
960
|
+
dragHandler: st,
|
|
956
961
|
scrollBody: Ct,
|
|
957
962
|
scrollBounds: wt,
|
|
958
963
|
options: {
|
|
959
964
|
loop: yt
|
|
960
965
|
}
|
|
961
|
-
}
|
|
962
|
-
yt || wt.constrain(
|
|
963
|
-
},
|
|
964
|
-
scrollBody:
|
|
966
|
+
}) => {
|
|
967
|
+
yt || wt.constrain(st.pointerDown()), Ct.seek();
|
|
968
|
+
}, T = ({
|
|
969
|
+
scrollBody: st,
|
|
965
970
|
translate: Ct,
|
|
966
971
|
location: wt,
|
|
967
972
|
offsetLocation: yt,
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
973
|
+
previousLocation: nn,
|
|
974
|
+
scrollLooper: en,
|
|
975
|
+
slideLooper: on,
|
|
976
|
+
dragHandler: rn,
|
|
977
|
+
animation: sn,
|
|
978
|
+
eventHandler: zt,
|
|
979
|
+
scrollBounds: cn,
|
|
974
980
|
options: {
|
|
975
|
-
loop:
|
|
981
|
+
loop: Bt
|
|
976
982
|
}
|
|
977
|
-
},
|
|
978
|
-
const
|
|
979
|
-
|
|
980
|
-
const
|
|
981
|
-
yt.set(
|
|
982
|
-
}, O =
|
|
983
|
-
slideRegistry:
|
|
984
|
-
} =
|
|
983
|
+
}, Rt) => {
|
|
984
|
+
const Vt = st.settled(), un = !cn.shouldConstrain(), Gt = Bt ? Vt : Vt && un;
|
|
985
|
+
Gt && !rn.pointerDown() && (sn.stop(), zt.emit("settle")), Gt || zt.emit("scroll");
|
|
986
|
+
const an = wt.get() * Rt + nn.get() * (1 - Rt);
|
|
987
|
+
yt.set(an), Bt && (en.loop(st.direction()), on.loop()), Ct.to(yt.get());
|
|
988
|
+
}, O = xn(r, i, () => S(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 = In(Y, Z, tt, nt, p, k), Et = kn(d, z, J, M, nt), vt = jn(O, X, B, at, Et, nt, e), kt = Pn(M), jt = mt(), Wt = Rn(n, o, e, m), {
|
|
989
|
+
slideRegistry: Ft
|
|
990
|
+
} = Mn(q, g, z, ut, $, A), tn = Fn(t, o, Ft, vt, at, jt, e, C), Lt = {
|
|
985
991
|
ownerDocument: r,
|
|
986
992
|
ownerWindow: i,
|
|
987
993
|
eventHandler: e,
|
|
988
|
-
containerRect:
|
|
994
|
+
containerRect: w,
|
|
989
995
|
slideRects: P,
|
|
990
996
|
animation: O,
|
|
991
|
-
axis:
|
|
992
|
-
dragHandler:
|
|
997
|
+
axis: I,
|
|
998
|
+
dragHandler: En(I, t, r, i, nt, vn(I, i), Y, O, vt, at, Et, X, e, G, x, l, f, k, N),
|
|
993
999
|
eventStore: jt,
|
|
994
1000
|
percentOfView: G,
|
|
995
1001
|
index: X,
|
|
996
1002
|
indexPrevious: B,
|
|
997
1003
|
limit: M,
|
|
998
1004
|
location: Y,
|
|
999
|
-
offsetLocation:
|
|
1000
|
-
previousLocation:
|
|
1005
|
+
offsetLocation: Z,
|
|
1006
|
+
previousLocation: tt,
|
|
1001
1007
|
options: s,
|
|
1002
|
-
resizeHandler:
|
|
1008
|
+
resizeHandler: wn(n, e, i, o, I, b, v),
|
|
1003
1009
|
scrollBody: at,
|
|
1004
|
-
scrollBounds:
|
|
1005
|
-
scrollLooper:
|
|
1006
|
-
scrollProgress:
|
|
1007
|
-
scrollSnapList: z.map(
|
|
1010
|
+
scrollBounds: Tn(M, Z, nt, at, G),
|
|
1011
|
+
scrollLooper: Dn(J, M, Z, [Y, Z, tt, nt]),
|
|
1012
|
+
scrollProgress: kt,
|
|
1013
|
+
scrollSnapList: z.map(kt.get),
|
|
1008
1014
|
scrollSnaps: z,
|
|
1009
1015
|
scrollTarget: Et,
|
|
1010
1016
|
scrollTo: vt,
|
|
1011
|
-
slideLooper:
|
|
1012
|
-
slideFocus:
|
|
1013
|
-
slidesHandler:
|
|
1014
|
-
slidesInView:
|
|
1017
|
+
slideLooper: zn(I, F, J, _, U, ot, z, Z, o),
|
|
1018
|
+
slideFocus: tn,
|
|
1019
|
+
slidesHandler: Bn(n, e, L),
|
|
1020
|
+
slidesInView: Wt,
|
|
1015
1021
|
slideIndexes: A,
|
|
1016
|
-
slideRegistry:
|
|
1022
|
+
slideRegistry: Ft,
|
|
1017
1023
|
slidesToScroll: $,
|
|
1018
|
-
target:
|
|
1019
|
-
translate:
|
|
1024
|
+
target: nt,
|
|
1025
|
+
translate: _t(I, n)
|
|
1020
1026
|
};
|
|
1021
1027
|
return Lt;
|
|
1022
1028
|
}
|
|
1023
|
-
function
|
|
1029
|
+
function qn() {
|
|
1024
1030
|
let t = {}, n;
|
|
1025
1031
|
function o(c) {
|
|
1026
1032
|
n = c;
|
|
@@ -1049,7 +1055,7 @@ function Gn() {
|
|
|
1049
1055
|
};
|
|
1050
1056
|
return u;
|
|
1051
1057
|
}
|
|
1052
|
-
const
|
|
1058
|
+
const $n = {
|
|
1053
1059
|
align: "center",
|
|
1054
1060
|
axis: "x",
|
|
1055
1061
|
container: null,
|
|
@@ -1071,9 +1077,9 @@ const Hn = {
|
|
|
1071
1077
|
watchSlides: !0,
|
|
1072
1078
|
watchFocus: !0
|
|
1073
1079
|
};
|
|
1074
|
-
function
|
|
1080
|
+
function Kn(t) {
|
|
1075
1081
|
function n(s, e) {
|
|
1076
|
-
return
|
|
1082
|
+
return Xt(s, e || {});
|
|
1077
1083
|
}
|
|
1078
1084
|
function o(s) {
|
|
1079
1085
|
const e = s.breakpoints || {}, a = pt(e).filter((u) => t.matchMedia(u).matches).map((u) => e[u]).reduce((u, c) => n(u, c), {});
|
|
@@ -1088,7 +1094,7 @@ function qn(t) {
|
|
|
1088
1094
|
optionsMediaQueries: r
|
|
1089
1095
|
};
|
|
1090
1096
|
}
|
|
1091
|
-
function
|
|
1097
|
+
function Un(t) {
|
|
1092
1098
|
let n = [];
|
|
1093
1099
|
function o(s, e) {
|
|
1094
1100
|
return n = e.filter(({
|
|
@@ -1106,60 +1112,60 @@ function $n(t) {
|
|
|
1106
1112
|
};
|
|
1107
1113
|
}
|
|
1108
1114
|
function St(t, n, o) {
|
|
1109
|
-
const r = t.ownerDocument, i = r.defaultView, s =
|
|
1115
|
+
const r = t.ownerDocument, i = r.defaultView, s = Kn(i), e = Un(s), a = mt(), u = qn(), {
|
|
1110
1116
|
mergeOptions: c,
|
|
1111
1117
|
optionsAtMedia: y,
|
|
1112
1118
|
optionsMediaQueries: d
|
|
1113
1119
|
} = s, {
|
|
1114
|
-
on:
|
|
1120
|
+
on: p,
|
|
1115
1121
|
off: x,
|
|
1116
1122
|
emit: l
|
|
1117
|
-
} = u,
|
|
1118
|
-
let h = !1, f,
|
|
1123
|
+
} = u, m = I;
|
|
1124
|
+
let h = !1, f, g = c($n, St.globalOptions), b = c(g), L = [], N, C, E;
|
|
1119
1125
|
function v() {
|
|
1120
1126
|
const {
|
|
1121
1127
|
container: A,
|
|
1122
1128
|
slides: S
|
|
1123
1129
|
} = b;
|
|
1124
|
-
|
|
1125
|
-
const O = Tt(S) ?
|
|
1126
|
-
E = [].slice.call(O ||
|
|
1130
|
+
C = (Tt(A) ? t.querySelector(A) : A) || t.children[0];
|
|
1131
|
+
const O = Tt(S) ? C.querySelectorAll(S) : S;
|
|
1132
|
+
E = [].slice.call(O || C.children);
|
|
1127
1133
|
}
|
|
1128
|
-
function
|
|
1129
|
-
const S =
|
|
1134
|
+
function w(A) {
|
|
1135
|
+
const S = Hn(t, C, E, r, i, A, u);
|
|
1130
1136
|
if (A.loop && !S.slideLooper.canLoop()) {
|
|
1131
|
-
const
|
|
1137
|
+
const T = Object.assign({}, A, {
|
|
1132
1138
|
loop: !1
|
|
1133
1139
|
});
|
|
1134
|
-
return
|
|
1140
|
+
return w(T);
|
|
1135
1141
|
}
|
|
1136
1142
|
return S;
|
|
1137
1143
|
}
|
|
1138
1144
|
function P(A, S) {
|
|
1139
|
-
h || (
|
|
1140
|
-
options:
|
|
1141
|
-
}) =>
|
|
1142
|
-
}
|
|
1143
|
-
function
|
|
1144
|
-
const
|
|
1145
|
-
|
|
1146
|
-
startIndex:
|
|
1145
|
+
h || (g = c(g, A), b = y(g), L = S || L, v(), f = w(b), d([g, ...L.map(({
|
|
1146
|
+
options: T
|
|
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
|
+
}
|
|
1149
|
+
function I(A, S) {
|
|
1150
|
+
const T = $();
|
|
1151
|
+
F(), P(c({
|
|
1152
|
+
startIndex: T
|
|
1147
1153
|
}, A), S), u.emit("reInit");
|
|
1148
1154
|
}
|
|
1149
|
-
function
|
|
1155
|
+
function F() {
|
|
1150
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();
|
|
1151
1157
|
}
|
|
1152
1158
|
function G() {
|
|
1153
|
-
h || (h = !0, a.clear(),
|
|
1159
|
+
h || (h = !0, a.clear(), F(), u.emit("destroy"), u.clear());
|
|
1154
1160
|
}
|
|
1155
|
-
function H(A, S,
|
|
1156
|
-
!b.active || h || (f.scrollBody.useBaseFriction().useDuration(S === !0 ? 0 : b.duration), f.scrollTo.index(A,
|
|
1161
|
+
function H(A, S, T) {
|
|
1162
|
+
!b.active || h || (f.scrollBody.useBaseFriction().useDuration(S === !0 ? 0 : b.duration), f.scrollTo.index(A, T || 0));
|
|
1157
1163
|
}
|
|
1158
1164
|
function q(A) {
|
|
1159
1165
|
const S = f.index.add(1).get();
|
|
1160
1166
|
H(S, A, -1);
|
|
1161
1167
|
}
|
|
1162
|
-
function
|
|
1168
|
+
function W(A) {
|
|
1163
1169
|
const S = f.index.add(-1).get();
|
|
1164
1170
|
H(S, A, 1);
|
|
1165
1171
|
}
|
|
@@ -1178,17 +1184,17 @@ function St(t, n, o) {
|
|
|
1178
1184
|
function $() {
|
|
1179
1185
|
return f.index.get();
|
|
1180
1186
|
}
|
|
1181
|
-
function
|
|
1187
|
+
function ot() {
|
|
1182
1188
|
return f.indexPrevious.get();
|
|
1183
1189
|
}
|
|
1184
|
-
function
|
|
1190
|
+
function rt() {
|
|
1185
1191
|
return f.slidesInView.get();
|
|
1186
1192
|
}
|
|
1187
1193
|
function J() {
|
|
1188
1194
|
return f.slidesInView.get(!1);
|
|
1189
1195
|
}
|
|
1190
1196
|
function ct() {
|
|
1191
|
-
return
|
|
1197
|
+
return N;
|
|
1192
1198
|
}
|
|
1193
1199
|
function ut() {
|
|
1194
1200
|
return f;
|
|
@@ -1197,7 +1203,7 @@ function St(t, n, o) {
|
|
|
1197
1203
|
return t;
|
|
1198
1204
|
}
|
|
1199
1205
|
function M() {
|
|
1200
|
-
return
|
|
1206
|
+
return C;
|
|
1201
1207
|
}
|
|
1202
1208
|
function X() {
|
|
1203
1209
|
return E;
|
|
@@ -1209,51 +1215,51 @@ function St(t, n, o) {
|
|
|
1209
1215
|
internalEngine: ut,
|
|
1210
1216
|
destroy: G,
|
|
1211
1217
|
off: x,
|
|
1212
|
-
on:
|
|
1218
|
+
on: p,
|
|
1213
1219
|
emit: l,
|
|
1214
1220
|
plugins: ct,
|
|
1215
|
-
previousScrollSnap:
|
|
1216
|
-
reInit:
|
|
1221
|
+
previousScrollSnap: ot,
|
|
1222
|
+
reInit: m,
|
|
1217
1223
|
rootNode: z,
|
|
1218
1224
|
scrollNext: q,
|
|
1219
|
-
scrollPrev:
|
|
1225
|
+
scrollPrev: W,
|
|
1220
1226
|
scrollProgress: it,
|
|
1221
1227
|
scrollSnapList: Q,
|
|
1222
1228
|
scrollTo: H,
|
|
1223
1229
|
selectedScrollSnap: $,
|
|
1224
1230
|
slideNodes: X,
|
|
1225
|
-
slidesInView:
|
|
1231
|
+
slidesInView: rt,
|
|
1226
1232
|
slidesNotInView: J
|
|
1227
1233
|
};
|
|
1228
1234
|
return P(n, o), setTimeout(() => u.emit("init"), 0), B;
|
|
1229
1235
|
}
|
|
1230
1236
|
St.globalOptions = void 0;
|
|
1231
|
-
function
|
|
1232
|
-
const o =
|
|
1237
|
+
function Mt(t = {}, n = []) {
|
|
1238
|
+
const o = Ht(t), r = Ht(n), [i, s] = qt(), [e, a] = qt(), u = ln(() => {
|
|
1233
1239
|
i && i.reInit(o.current, r.current);
|
|
1234
1240
|
}, [i]);
|
|
1235
|
-
return
|
|
1236
|
-
|
|
1237
|
-
}, [t, u]),
|
|
1238
|
-
|
|
1239
|
-
}, [n, u]),
|
|
1240
|
-
if (
|
|
1241
|
-
St.globalOptions =
|
|
1241
|
+
return It(() => {
|
|
1242
|
+
At(o.current, t) || (o.current = t, u());
|
|
1243
|
+
}, [t, u]), It(() => {
|
|
1244
|
+
gn(r.current, n) || (r.current = n, u());
|
|
1245
|
+
}, [n, u]), It(() => {
|
|
1246
|
+
if (mn() && e) {
|
|
1247
|
+
St.globalOptions = Mt.globalOptions;
|
|
1242
1248
|
const c = St(e, o.current, r.current);
|
|
1243
1249
|
return s(c), () => c.destroy();
|
|
1244
1250
|
} else
|
|
1245
1251
|
s(void 0);
|
|
1246
1252
|
}, [e, s]), [a, i];
|
|
1247
1253
|
}
|
|
1248
|
-
|
|
1249
|
-
const
|
|
1254
|
+
Mt.globalOptions = void 0;
|
|
1255
|
+
const Zt = j.createContext(null);
|
|
1250
1256
|
function bt() {
|
|
1251
|
-
const t =
|
|
1257
|
+
const t = j.useContext(Zt);
|
|
1252
1258
|
if (!t)
|
|
1253
1259
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
1254
1260
|
return t;
|
|
1255
1261
|
}
|
|
1256
|
-
const
|
|
1262
|
+
const Qn = j.forwardRef(
|
|
1257
1263
|
({
|
|
1258
1264
|
orientation: t = "horizontal",
|
|
1259
1265
|
opts: n,
|
|
@@ -1263,43 +1269,43 @@ const Kn = F.forwardRef(
|
|
|
1263
1269
|
children: s,
|
|
1264
1270
|
...e
|
|
1265
1271
|
}, a) => {
|
|
1266
|
-
const [u, c] =
|
|
1272
|
+
const [u, c] = Mt(
|
|
1267
1273
|
{
|
|
1268
1274
|
...n,
|
|
1269
1275
|
axis: t === "horizontal" ? "x" : "y"
|
|
1270
1276
|
},
|
|
1271
1277
|
r
|
|
1272
|
-
), [y, d] =
|
|
1273
|
-
|
|
1274
|
-
}, []),
|
|
1278
|
+
), [y, d] = j.useState(!1), [p, x] = j.useState(!1), l = j.useCallback((g) => {
|
|
1279
|
+
g && (d(g.canScrollPrev()), x(g.canScrollNext()));
|
|
1280
|
+
}, []), m = j.useCallback(() => {
|
|
1275
1281
|
c == null || c.scrollPrev();
|
|
1276
|
-
}, [c]), h =
|
|
1282
|
+
}, [c]), h = j.useCallback(() => {
|
|
1277
1283
|
c == null || c.scrollNext();
|
|
1278
|
-
}, [c]), f =
|
|
1279
|
-
(
|
|
1280
|
-
|
|
1284
|
+
}, [c]), f = j.useCallback(
|
|
1285
|
+
(g) => {
|
|
1286
|
+
g.key === "ArrowLeft" ? (g.preventDefault(), m()) : g.key === "ArrowRight" && (g.preventDefault(), h());
|
|
1281
1287
|
},
|
|
1282
|
-
[
|
|
1288
|
+
[m, h]
|
|
1283
1289
|
);
|
|
1284
|
-
return
|
|
1290
|
+
return j.useEffect(() => {
|
|
1285
1291
|
!c || !o || o(c);
|
|
1286
|
-
}, [c, o]),
|
|
1292
|
+
}, [c, o]), j.useEffect(() => {
|
|
1287
1293
|
if (c)
|
|
1288
1294
|
return l(c), c.on("reInit", l), c.on("select", l), () => {
|
|
1289
1295
|
c.off("select", l);
|
|
1290
1296
|
};
|
|
1291
1297
|
}, [c, l]), /* @__PURE__ */ R.jsx(
|
|
1292
|
-
|
|
1298
|
+
Zt.Provider,
|
|
1293
1299
|
{
|
|
1294
1300
|
value: {
|
|
1295
1301
|
carouselRef: u,
|
|
1296
1302
|
api: c,
|
|
1297
1303
|
opts: n,
|
|
1298
1304
|
orientation: t || ((n == null ? void 0 : n.axis) === "y" ? "vertical" : "horizontal"),
|
|
1299
|
-
scrollPrev:
|
|
1305
|
+
scrollPrev: m,
|
|
1300
1306
|
scrollNext: h,
|
|
1301
1307
|
canScrollPrev: y,
|
|
1302
|
-
canScrollNext:
|
|
1308
|
+
canScrollNext: p
|
|
1303
1309
|
},
|
|
1304
1310
|
children: /* @__PURE__ */ R.jsx(
|
|
1305
1311
|
"div",
|
|
@@ -1317,8 +1323,8 @@ const Kn = F.forwardRef(
|
|
|
1317
1323
|
);
|
|
1318
1324
|
}
|
|
1319
1325
|
);
|
|
1320
|
-
|
|
1321
|
-
const
|
|
1326
|
+
Qn.displayName = "Carousel";
|
|
1327
|
+
const Jn = j.forwardRef(({ className: t, ...n }, o) => {
|
|
1322
1328
|
const { carouselRef: r, orientation: i } = bt();
|
|
1323
1329
|
return /* @__PURE__ */ R.jsx("div", { ref: r, className: "overflow-hidden", children: /* @__PURE__ */ R.jsx(
|
|
1324
1330
|
"div",
|
|
@@ -1333,8 +1339,8 @@ const Un = F.forwardRef(({ className: t, ...n }, o) => {
|
|
|
1333
1339
|
}
|
|
1334
1340
|
) });
|
|
1335
1341
|
});
|
|
1336
|
-
|
|
1337
|
-
const
|
|
1342
|
+
Jn.displayName = "CarouselContent";
|
|
1343
|
+
const Xn = j.forwardRef(({ className: t, ...n }, o) => {
|
|
1338
1344
|
const { orientation: r } = bt();
|
|
1339
1345
|
return /* @__PURE__ */ R.jsx(
|
|
1340
1346
|
"div",
|
|
@@ -1351,11 +1357,11 @@ const Qn = F.forwardRef(({ className: t, ...n }, o) => {
|
|
|
1351
1357
|
}
|
|
1352
1358
|
);
|
|
1353
1359
|
});
|
|
1354
|
-
|
|
1355
|
-
const
|
|
1360
|
+
Xn.displayName = "CarouselItem";
|
|
1361
|
+
const Yn = j.forwardRef(({ className: t, variant: n = "outline", size: o = "icon", ...r }, i) => {
|
|
1356
1362
|
const { orientation: s, scrollPrev: e, canScrollPrev: a } = bt();
|
|
1357
1363
|
return /* @__PURE__ */ R.jsxs(
|
|
1358
|
-
|
|
1364
|
+
Jt,
|
|
1359
1365
|
{
|
|
1360
1366
|
ref: i,
|
|
1361
1367
|
variant: n,
|
|
@@ -1369,17 +1375,17 @@ const Jn = F.forwardRef(({ className: t, variant: n = "outline", size: o = "icon
|
|
|
1369
1375
|
onClick: e,
|
|
1370
1376
|
...r,
|
|
1371
1377
|
children: [
|
|
1372
|
-
/* @__PURE__ */ R.jsx(
|
|
1378
|
+
/* @__PURE__ */ R.jsx(fn, { className: "h-4 w-4" }),
|
|
1373
1379
|
/* @__PURE__ */ R.jsx("span", { className: "sr-only", children: "Previous slide" })
|
|
1374
1380
|
]
|
|
1375
1381
|
}
|
|
1376
1382
|
);
|
|
1377
1383
|
});
|
|
1378
|
-
|
|
1379
|
-
const
|
|
1384
|
+
Yn.displayName = "CarouselPrevious";
|
|
1385
|
+
const _n = j.forwardRef(({ className: t, variant: n = "outline", size: o = "icon", ...r }, i) => {
|
|
1380
1386
|
const { orientation: s, scrollNext: e, canScrollNext: a } = bt();
|
|
1381
1387
|
return /* @__PURE__ */ R.jsxs(
|
|
1382
|
-
|
|
1388
|
+
Jt,
|
|
1383
1389
|
{
|
|
1384
1390
|
ref: i,
|
|
1385
1391
|
variant: n,
|
|
@@ -1393,18 +1399,18 @@ const Xn = F.forwardRef(({ className: t, variant: n = "outline", size: o = "icon
|
|
|
1393
1399
|
onClick: e,
|
|
1394
1400
|
...r,
|
|
1395
1401
|
children: [
|
|
1396
|
-
/* @__PURE__ */ R.jsx(
|
|
1402
|
+
/* @__PURE__ */ R.jsx(dn, { className: "h-4 w-4" }),
|
|
1397
1403
|
/* @__PURE__ */ R.jsx("span", { className: "sr-only", children: "Next slide" })
|
|
1398
1404
|
]
|
|
1399
1405
|
}
|
|
1400
1406
|
);
|
|
1401
1407
|
});
|
|
1402
|
-
|
|
1408
|
+
_n.displayName = "CarouselNext";
|
|
1403
1409
|
export {
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1410
|
+
Qn as Carousel,
|
|
1411
|
+
Jn as CarouselContent,
|
|
1412
|
+
Xn as CarouselItem,
|
|
1413
|
+
_n as CarouselNext,
|
|
1414
|
+
Yn as CarouselPrevious
|
|
1409
1415
|
};
|
|
1410
1416
|
//# sourceMappingURL=Carousel.js.map
|