zudoku 0.3.0-dev.3 → 0.3.0-dev.31
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/dist/app/demo.d.ts +2 -0
- package/dist/app/demo.js +27 -0
- package/dist/app/demo.js.map +1 -0
- package/dist/app/main.d.ts +2 -1
- package/dist/app/main.js +31 -10
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.d.ts +2 -0
- package/dist/app/standalone.js +32 -0
- package/dist/app/standalone.js.map +1 -0
- package/dist/app/tailwind.d.ts +1 -1
- package/dist/app/tailwind.js +0 -9
- package/dist/app/tailwind.js.map +1 -1
- package/dist/config/config.d.ts +10 -16
- package/dist/lib/authentication/Callback.js +1 -1
- package/dist/lib/authentication/Callback.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +2 -2
- package/dist/lib/authentication/hook.d.ts +1 -0
- package/dist/lib/authentication/hook.js +1 -0
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.js +1 -0
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.js +2 -0
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +1 -1
- package/dist/lib/authentication/providers/openid.js +2 -0
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/state.d.ts +1 -0
- package/dist/lib/authentication/state.js +1 -0
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/components/DevPortal.d.ts +5 -20
- package/dist/lib/components/DevPortal.js +20 -11
- package/dist/lib/components/DevPortal.js.map +1 -1
- package/dist/lib/components/Header.js +3 -3
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +9 -4
- package/dist/lib/components/Heading.js +17 -2
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/Layout.js +2 -2
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Router.js +2 -1
- package/dist/lib/components/Router.js.map +1 -1
- package/dist/lib/components/SyntaxHighlight.js +5 -1
- package/dist/lib/components/SyntaxHighlight.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +1 -1
- package/dist/lib/components/TopNavigation.js +4 -0
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/context/DevPortalProvider.d.ts +1 -1
- package/dist/lib/components/context/DevPortalProvider.js +2 -2
- package/dist/lib/components/context/DevPortalProvider.js.map +1 -1
- package/dist/lib/components/index.d.ts +13 -3
- package/dist/lib/components/index.js +8 -3
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/core/DevPortalContext.d.ts +33 -3
- package/dist/lib/core/DevPortalContext.js +8 -4
- package/dist/lib/core/DevPortalContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +7 -4
- package/dist/lib/core/plugins.js +1 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.d.ts +3 -0
- package/dist/lib/errors/ErrorAlert.js +8 -0
- package/dist/lib/errors/ErrorAlert.js.map +1 -0
- package/dist/lib/errors/RouterError.d.ts +1 -0
- package/dist/lib/errors/RouterError.js +9 -0
- package/dist/lib/errors/RouterError.js.map +1 -0
- package/dist/lib/errors/TopLevelError.d.ts +2 -0
- package/dist/lib/errors/TopLevelError.js +7 -0
- package/dist/lib/errors/TopLevelError.js.map +1 -0
- package/dist/lib/oas/graphql/index.js +1 -1
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/index.js +3 -1
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +4 -0
- package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.js +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -0
- package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +4 -0
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +38 -0
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -0
- package/dist/lib/plugins/{api-key → api-keys}/index.js +37 -9
- package/dist/lib/plugins/api-keys/index.js.map +1 -0
- package/dist/lib/plugins/markdown/MdxPage.d.ts +3 -2
- package/dist/lib/plugins/markdown/MdxPage.js +7 -6
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/Toc.js +1 -1
- package/dist/lib/plugins/markdown/Toc.js.map +1 -1
- package/dist/lib/plugins/markdown/generateRoutes.d.ts +3 -3
- package/dist/lib/plugins/markdown/generateRoutes.js +4 -4
- package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +4 -1
- package/dist/lib/plugins/markdown/index.js +2 -2
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +5 -4
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +8 -4
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterList.js +1 -1
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/{MakeRequest.d.ts → PlaygroundDialogWrapper.d.ts} +1 -1
- package/dist/lib/plugins/openapi/{MakeRequest.js → PlaygroundDialogWrapper.js} +5 -5
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -0
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +1 -9
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/Route.d.ts +6 -0
- package/dist/lib/plugins/openapi/Route.js +8 -0
- package/dist/lib/plugins/openapi/Route.js.map +1 -0
- package/dist/lib/plugins/openapi/SchemaListView.js +4 -26
- package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaListViewItem.d.ts +7 -0
- package/dist/lib/plugins/openapi/SchemaListViewItem.js +16 -0
- package/dist/lib/plugins/openapi/SchemaListViewItem.js.map +1 -0
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.d.ts +8 -0
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js +17 -0
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js.map +1 -0
- package/dist/lib/plugins/openapi/Sidecar.js +10 -8
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/{Select.d.ts → SimpleSelect.d.ts} +3 -2
- package/dist/lib/plugins/openapi/SimpleSelect.js +5 -0
- package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +12 -0
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +46 -0
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createServer.d.ts +4 -0
- package/dist/lib/plugins/openapi/client/createServer.js +30 -0
- package/dist/lib/plugins/openapi/client/createServer.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +10 -0
- package/dist/lib/plugins/openapi/{worker/createSharedWorkerClient.js → client/createWorkerClient.js} +11 -2
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -0
- package/dist/lib/plugins/openapi/client/interfaces.d.ts +2 -0
- package/dist/lib/plugins/openapi/client/interfaces.js +2 -0
- package/dist/lib/plugins/openapi/client/interfaces.js.map +1 -0
- package/dist/lib/plugins/openapi/{worker → client}/worker.js +2 -2
- package/dist/lib/plugins/openapi/client/worker.js.map +1 -0
- package/dist/lib/plugins/openapi/context.d.ts +5 -0
- package/dist/lib/plugins/openapi/context.js +11 -0
- package/dist/lib/plugins/openapi/context.js.map +1 -0
- package/dist/lib/plugins/openapi/index.d.ts +1 -19
- package/dist/lib/plugins/openapi/index.js +27 -20
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +15 -0
- package/dist/lib/plugins/openapi/interfaces.js +2 -0
- package/dist/lib/plugins/openapi/interfaces.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +2 -3
- package/dist/lib/plugins/openapi/playground/Headers.js +16 -6
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +4 -3
- package/dist/lib/plugins/openapi/playground/Playground.js +8 -12
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.d.ts +3 -0
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +10 -0
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/createUrl.d.ts +1 -1
- package/dist/lib/plugins/openapi/util/prose.d.ts +1 -0
- package/dist/lib/plugins/openapi/util/prose.js +4 -0
- package/dist/lib/plugins/openapi/util/prose.js.map +1 -0
- package/dist/lib/plugins/openapi-worker.d.ts +1 -1
- package/dist/lib/plugins/openapi-worker.js +1 -1
- package/dist/lib/plugins/openapi-worker.js.map +1 -1
- package/dist/lib/ui/Callout.js +1 -1
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/button-variants.d.ts +1 -1
- package/dist/lib/util/MdxComponents.js +1 -1
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/logInit.d.ts +1 -0
- package/dist/lib/util/logInit.js +9 -0
- package/dist/lib/util/logInit.js.map +1 -0
- package/dist/lib/util/objectEntries.d.ts +4 -0
- package/dist/lib/util/objectEntries.js +2 -0
- package/dist/lib/util/objectEntries.js.map +1 -0
- package/dist/lib/util/renderIf.d.ts +1 -0
- package/dist/lib/util/renderIf.js +2 -0
- package/dist/lib/util/renderIf.js.map +1 -0
- package/dist/vite/build.js +4 -1
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +11 -8
- package/dist/vite/config.js +58 -50
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +7 -4
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/dev-server.js +4 -4
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/html.js +0 -1
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/plugin-api-keys.js +7 -8
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.js +7 -11
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.js +5 -6
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.js +1 -1
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +0 -1
- package/dist/vite/plugin-config.js +13 -7
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-docs.js +9 -8
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-docs.test.js +1 -1
- package/dist/vite/plugin-docs.test.js.map +1 -1
- package/dist/vite/plugin-html.js +1 -9
- package/dist/vite/plugin-html.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +3 -1
- package/dist/vite/plugin-mdx.js +4 -4
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-openapi-worker.js +11 -3
- package/dist/vite/plugin-openapi-worker.js.map +1 -1
- package/dist/vite/plugin-redirect.js +9 -9
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin.js +1 -1
- package/dist/vite/plugin.js.map +1 -1
- package/lib/AnchorLink-ptdQk87q.js +706 -0
- package/lib/AnchorLink-ptdQk87q.js.map +1 -0
- package/lib/DevPortalProvider-BMk-RCE0.js +1081 -0
- package/lib/DevPortalProvider-BMk-RCE0.js.map +1 -0
- package/lib/Markdown-DDmW47R9.js +8621 -0
- package/lib/Markdown-DDmW47R9.js.map +1 -0
- package/lib/MdxComponents-C0R6zobS.js +3019 -0
- package/lib/MdxComponents-C0R6zobS.js.map +1 -0
- package/lib/MdxPage-DyJAHF9y.js +217 -0
- package/lib/MdxPage-DyJAHF9y.js.map +1 -0
- package/lib/OperationList-Dz9rHM9r.js +5546 -0
- package/lib/OperationList-Dz9rHM9r.js.map +1 -0
- package/lib/Route-CN_7-e5r.js +14 -0
- package/lib/Route-CN_7-e5r.js.map +1 -0
- package/lib/Select-D-Jtx53Q.js +4572 -0
- package/lib/Select-D-Jtx53Q.js.map +1 -0
- package/lib/Spinner-BG1JnYy0.js +182 -0
- package/lib/Spinner-BG1JnYy0.js.map +1 -0
- package/lib/_commonjsHelpers-BkfeUUK-.js +1 -0
- package/lib/_commonjsHelpers-BkfeUUK-.js.map +1 -0
- package/lib/assets/index-BPdJm2ty.js +1 -0
- package/lib/assets/index-BPdJm2ty.js.map +1 -0
- package/lib/assets/{worker-BCcpCNJ7.js → worker-BXS8hiSM.js} +9844 -9800
- package/lib/assets/worker-BXS8hiSM.js.map +1 -0
- package/lib/cn-DpqTslo9.js +2342 -0
- package/lib/cn-DpqTslo9.js.map +1 -0
- package/lib/context-_fYfJFgk.js +14 -0
- package/lib/context-_fYfJFgk.js.map +1 -0
- package/lib/hook-BzBeIPL4.js +25 -0
- package/lib/hook-BzBeIPL4.js.map +1 -0
- package/lib/index-BaOOUFsA.js +412 -0
- package/lib/index-BaOOUFsA.js.map +1 -0
- package/lib/index-CPvRaBBB.js +713 -0
- package/lib/index-CPvRaBBB.js.map +1 -0
- package/lib/index-Cpdpun6t.js +710 -0
- package/lib/index-Cpdpun6t.js.map +1 -0
- package/lib/index-DLS6fPwU.js +464 -0
- package/lib/index-DLS6fPwU.js.map +1 -0
- package/lib/jsx-runtime-SV6hXQua.js +3009 -0
- package/lib/jsx-runtime-SV6hXQua.js.map +1 -0
- package/lib/loglevel-CA34MiFn.js +153 -0
- package/lib/loglevel-CA34MiFn.js.map +1 -0
- package/lib/prism-bash.min-DadFsM4Z.js +1 -0
- package/lib/prism-bash.min-DadFsM4Z.js.map +1 -0
- package/lib/prism-csharp.min-Yizuc34Y.js +35 -0
- package/lib/prism-csharp.min-Yizuc34Y.js.map +1 -0
- package/lib/prism-java.min-d5iT_mOd.js +1 -0
- package/lib/prism-java.min-d5iT_mOd.js.map +1 -0
- package/lib/prism-json.min-B1GJqK1k.js +1 -0
- package/lib/prism-json.min-B1GJqK1k.js.map +1 -0
- package/lib/prism-markup-templating-DZrrEs0A.js +1 -0
- package/lib/prism-markup-templating-DZrrEs0A.js.map +1 -0
- package/lib/prism-objectivec.min-BXSWqpJJ.js +2 -0
- package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -0
- package/lib/prism-php.min-o7FpoMP_.js +1 -0
- package/lib/prism-php.min-o7FpoMP_.js.map +1 -0
- package/lib/prism-ruby.min-C7LwcKyz.js +1 -0
- package/lib/prism-ruby.min-C7LwcKyz.js.map +1 -0
- package/lib/{state-oycsxkHz.js → state-Ds_OxRHP.js} +20 -18
- package/lib/state-Ds_OxRHP.js.map +1 -0
- package/lib/urql-DMlBWUKL.js +1 -0
- package/lib/urql-DMlBWUKL.js.map +1 -0
- package/lib/util-CCWvaWo7.js +41 -0
- package/lib/util-CCWvaWo7.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +3 -1
- package/lib/zudoku.auth-auth0.js.map +1 -0
- package/lib/zudoku.auth-clerk.js +11 -8
- package/lib/zudoku.auth-clerk.js.map +1 -0
- package/lib/zudoku.auth-openid.js +444 -588
- package/lib/zudoku.auth-openid.js.map +1 -0
- package/lib/zudoku.components.js +429 -334
- package/lib/zudoku.components.js.map +1 -0
- package/lib/zudoku.openapi-worker.js +16 -13
- package/lib/zudoku.openapi-worker.js.map +1 -0
- package/lib/zudoku.plugin-api-keys.js +296 -0
- package/lib/zudoku.plugin-api-keys.js.map +1 -0
- package/lib/zudoku.plugin-markdown.js +52 -0
- package/lib/zudoku.plugin-markdown.js.map +1 -0
- package/lib/zudoku.plugin-openapi.js +8 -0
- package/lib/zudoku.plugin-openapi.js.map +1 -0
- package/lib/zudoku.plugin-redirect.js +12 -0
- package/lib/zudoku.plugin-redirect.js.map +1 -0
- package/package.json +21 -6
- package/src/app/demo-cdn.html +26 -0
- package/src/app/demo.html +18 -0
- package/src/app/demo.tsx +40 -0
- package/src/app/main.css +74 -0
- package/src/app/main.tsx +42 -9
- package/src/app/standalone.html +20 -0
- package/src/app/standalone.tsx +46 -0
- package/src/app/tailwind.ts +1 -11
- package/src/lib/authentication/Callback.tsx +1 -1
- package/src/lib/authentication/authentication.ts +2 -5
- package/src/lib/authentication/hook.ts +1 -0
- package/src/lib/authentication/providers/auth0.tsx +1 -0
- package/src/lib/authentication/providers/clerk.tsx +2 -0
- package/src/lib/authentication/providers/openid.tsx +3 -1
- package/src/lib/authentication/state.ts +2 -0
- package/src/lib/components/DevPortal.tsx +23 -30
- package/src/lib/components/Header.tsx +7 -7
- package/src/lib/components/Heading.tsx +26 -7
- package/src/lib/components/Layout.tsx +3 -4
- package/src/lib/components/Router.tsx +3 -7
- package/src/lib/components/SyntaxHighlight.tsx +5 -1
- package/src/lib/components/TopNavigation.tsx +5 -0
- package/src/lib/components/context/DevPortalProvider.ts +2 -2
- package/src/lib/components/index.ts +9 -3
- package/src/lib/core/DevPortalContext.ts +42 -12
- package/src/lib/core/plugins.ts +10 -5
- package/src/lib/errors/ErrorAlert.tsx +21 -0
- package/src/lib/errors/RouterError.tsx +12 -0
- package/src/lib/errors/TopLevelError.tsx +8 -0
- package/src/lib/oas/graphql/index.ts +2 -2
- package/src/lib/oas/parser/index.ts +3 -1
- package/src/lib/plugins/{api-key → api-keys}/CreateApiKey.tsx +2 -8
- package/src/lib/plugins/{api-key → api-keys}/SettingsApiKeys.tsx +21 -14
- package/src/lib/plugins/{api-key → api-keys}/index.tsx +54 -8
- package/src/lib/plugins/markdown/MdxPage.tsx +52 -35
- package/src/lib/plugins/markdown/Toc.tsx +1 -1
- package/src/lib/plugins/markdown/generateRoutes.tsx +15 -5
- package/src/lib/plugins/markdown/index.tsx +8 -1
- package/src/lib/plugins/openapi/OperationList.tsx +10 -4
- package/src/lib/plugins/openapi/OperationListItem.tsx +66 -41
- package/src/lib/plugins/openapi/ParameterList.tsx +1 -1
- package/src/lib/plugins/openapi/ParameterListItem.tsx +3 -4
- package/src/lib/plugins/openapi/{MakeRequest.tsx → PlaygroundDialogWrapper.tsx} +4 -4
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +2 -16
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +3 -1
- package/src/lib/plugins/openapi/Route.tsx +21 -0
- package/src/lib/plugins/openapi/SchemaListView.tsx +15 -182
- package/src/lib/plugins/openapi/SchemaListViewItem.tsx +110 -0
- package/src/lib/plugins/openapi/SchemaListViewItemGroup.tsx +63 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +15 -10
- package/src/lib/plugins/openapi/{Select.tsx → SimpleSelect.tsx} +6 -3
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +56 -0
- package/src/lib/plugins/openapi/client/createServer.ts +33 -0
- package/src/lib/plugins/openapi/{worker/createSharedWorkerClient.ts → client/createWorkerClient.ts} +13 -1
- package/src/lib/plugins/openapi/client/interfaces.ts +3 -0
- package/src/lib/plugins/openapi/{worker → client}/worker.ts +3 -3
- package/src/lib/plugins/openapi/context.tsx +16 -0
- package/src/lib/plugins/openapi/index.tsx +37 -51
- package/src/lib/plugins/openapi/interfaces.ts +9 -0
- package/src/lib/plugins/openapi/playground/Headers.tsx +60 -33
- package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -1
- package/src/lib/plugins/openapi/playground/Playground.tsx +158 -193
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +34 -0
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +1 -1
- package/src/lib/plugins/openapi/playground/createUrl.ts +1 -1
- package/src/lib/plugins/openapi/util/prose.ts +7 -0
- package/src/lib/plugins/openapi-worker.ts +1 -1
- package/src/lib/ui/Callout.tsx +2 -2
- package/src/lib/util/MdxComponents.tsx +1 -2
- package/src/lib/util/logInit.ts +9 -0
- package/src/lib/util/objectEntries.ts +5 -0
- package/src/lib/util/renderIf.ts +4 -0
- package/dist/app/App.d.ts +0 -2
- package/dist/app/App.js +0 -29
- package/dist/app/App.js.map +0 -1
- package/dist/lib/components/Link.d.ts +0 -1
- package/dist/lib/components/Link.js +0 -2
- package/dist/lib/components/Link.js.map +0 -1
- package/dist/lib/core/helmet.d.ts +0 -4
- package/dist/lib/core/helmet.js +0 -5
- package/dist/lib/core/helmet.js.map +0 -1
- package/dist/lib/core/icons.d.ts +0 -1
- package/dist/lib/core/icons.js +0 -2
- package/dist/lib/core/icons.js.map +0 -1
- package/dist/lib/core/router.d.ts +0 -1
- package/dist/lib/core/router.js +0 -2
- package/dist/lib/core/router.js.map +0 -1
- package/dist/lib/plugins/api-key/CreateApiKey.d.ts +0 -5
- package/dist/lib/plugins/api-key/CreateApiKey.js.map +0 -1
- package/dist/lib/plugins/api-key/SettingsApiKeys.d.ts +0 -5
- package/dist/lib/plugins/api-key/SettingsApiKeys.js +0 -38
- package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +0 -1
- package/dist/lib/plugins/api-key/index.js.map +0 -1
- package/dist/lib/plugins/index.d.ts +0 -4
- package/dist/lib/plugins/index.js +0 -5
- package/dist/lib/plugins/index.js.map +0 -1
- package/dist/lib/plugins/openapi/MakeRequest.js.map +0 -1
- package/dist/lib/plugins/openapi/Select.js +0 -5
- package/dist/lib/plugins/openapi/Select.js.map +0 -1
- package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.d.ts +0 -5
- package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.js.map +0 -1
- package/dist/lib/plugins/openapi/worker/shared-worker.d.ts +0 -1
- package/dist/lib/plugins/openapi/worker/shared-worker.js +0 -6
- package/dist/lib/plugins/openapi/worker/shared-worker.js.map +0 -1
- package/dist/lib/plugins/openapi/worker/worker.js.map +0 -1
- package/dist/vite/common.d.ts +0 -1
- package/dist/vite/common.js +0 -5
- package/dist/vite/common.js.map +0 -1
- package/lib/Spinner-7LezPqGn.js +0 -8393
- package/lib/clerk-Wslx_mPo.js +0 -19685
- package/lib/index-DNx3xWa2.js +0 -3461
- package/lib/zudoku.plugins.js +0 -19863
- package/src/app/App.tsx +0 -40
- package/src/lib/components/Link.tsx +0 -1
- package/src/lib/core/helmet.ts +0 -5
- package/src/lib/core/icons.tsx +0 -1
- package/src/lib/core/router.tsx +0 -1
- package/src/lib/plugins/index.ts +0 -4
- package/src/lib/plugins/openapi/worker/shared-worker.ts +0 -5
- /package/dist/lib/plugins/{api-key → api-keys}/index.d.ts +0 -0
- /package/dist/lib/plugins/openapi/{worker → client}/worker.d.ts +0 -0
|
@@ -0,0 +1,713 @@
|
|
|
1
|
+
import * as s from "react";
|
|
2
|
+
import { forwardRef as te, createElement as W } from "react";
|
|
3
|
+
import * as de from "react-dom";
|
|
4
|
+
import { c as I, d as me, e as M, u as j, D as ne, b as re, f as ae, g as he, R as pe, m as ve, h as we, i as ye } from "./index-DLS6fPwU.js";
|
|
5
|
+
import { s as P, w as H, c as z, i as k, m as G, a as be, b as ge, d as Se, E as Ee } from "./jsx-runtime-SV6hXQua.js";
|
|
6
|
+
/**
|
|
7
|
+
* React Router DOM v6.24.1
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) Remix Software Inc.
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the MIT license found in the
|
|
12
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
13
|
+
*
|
|
14
|
+
* @license MIT
|
|
15
|
+
*/
|
|
16
|
+
function T() {
|
|
17
|
+
return T = Object.assign ? Object.assign.bind() : function(e) {
|
|
18
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
19
|
+
var t = arguments[n];
|
|
20
|
+
for (var a in t)
|
|
21
|
+
Object.prototype.hasOwnProperty.call(t, a) && (e[a] = t[a]);
|
|
22
|
+
}
|
|
23
|
+
return e;
|
|
24
|
+
}, T.apply(this, arguments);
|
|
25
|
+
}
|
|
26
|
+
function Y(e, n) {
|
|
27
|
+
if (e == null) return {};
|
|
28
|
+
var t = {}, a = Object.keys(e), r, i;
|
|
29
|
+
for (i = 0; i < a.length; i++)
|
|
30
|
+
r = a[i], !(n.indexOf(r) >= 0) && (t[r] = e[r]);
|
|
31
|
+
return t;
|
|
32
|
+
}
|
|
33
|
+
const V = "get", F = "application/x-www-form-urlencoded";
|
|
34
|
+
function B(e) {
|
|
35
|
+
return e != null && typeof e.tagName == "string";
|
|
36
|
+
}
|
|
37
|
+
function Re(e) {
|
|
38
|
+
return B(e) && e.tagName.toLowerCase() === "button";
|
|
39
|
+
}
|
|
40
|
+
function Ce(e) {
|
|
41
|
+
return B(e) && e.tagName.toLowerCase() === "form";
|
|
42
|
+
}
|
|
43
|
+
function _e(e) {
|
|
44
|
+
return B(e) && e.tagName.toLowerCase() === "input";
|
|
45
|
+
}
|
|
46
|
+
function Le(e) {
|
|
47
|
+
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
48
|
+
}
|
|
49
|
+
function Te(e, n) {
|
|
50
|
+
return e.button === 0 && // Ignore everything but left clicks
|
|
51
|
+
(!n || n === "_self") && // Let browser handle "target=_blank" etc.
|
|
52
|
+
!Le(e);
|
|
53
|
+
}
|
|
54
|
+
function $(e) {
|
|
55
|
+
return e === void 0 && (e = ""), new URLSearchParams(typeof e == "string" || Array.isArray(e) || e instanceof URLSearchParams ? e : Object.keys(e).reduce((n, t) => {
|
|
56
|
+
let a = e[t];
|
|
57
|
+
return n.concat(Array.isArray(a) ? a.map((r) => [t, r]) : [[t, a]]);
|
|
58
|
+
}, []));
|
|
59
|
+
}
|
|
60
|
+
function Ne(e, n) {
|
|
61
|
+
let t = $(e);
|
|
62
|
+
return n && n.forEach((a, r) => {
|
|
63
|
+
t.has(r) || n.getAll(r).forEach((i) => {
|
|
64
|
+
t.append(r, i);
|
|
65
|
+
});
|
|
66
|
+
}), t;
|
|
67
|
+
}
|
|
68
|
+
let A = null;
|
|
69
|
+
function xe() {
|
|
70
|
+
if (A === null)
|
|
71
|
+
try {
|
|
72
|
+
new FormData(
|
|
73
|
+
document.createElement("form"),
|
|
74
|
+
// @ts-expect-error if FormData supports the submitter parameter, this will throw
|
|
75
|
+
0
|
|
76
|
+
), A = !1;
|
|
77
|
+
} catch {
|
|
78
|
+
A = !0;
|
|
79
|
+
}
|
|
80
|
+
return A;
|
|
81
|
+
}
|
|
82
|
+
const Pe = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
|
|
83
|
+
function K(e) {
|
|
84
|
+
return e != null && !Pe.has(e) ? (process.env.NODE_ENV !== "production" && H(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + F + '"')), null) : e;
|
|
85
|
+
}
|
|
86
|
+
function ke(e, n) {
|
|
87
|
+
let t, a, r, i, l;
|
|
88
|
+
if (Ce(e)) {
|
|
89
|
+
let u = e.getAttribute("action");
|
|
90
|
+
a = u ? P(u, n) : null, t = e.getAttribute("method") || V, r = K(e.getAttribute("enctype")) || F, i = new FormData(e);
|
|
91
|
+
} else if (Re(e) || _e(e) && (e.type === "submit" || e.type === "image")) {
|
|
92
|
+
let u = e.form;
|
|
93
|
+
if (u == null)
|
|
94
|
+
throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
|
|
95
|
+
let f = e.getAttribute("formaction") || u.getAttribute("action");
|
|
96
|
+
if (a = f ? P(f, n) : null, t = e.getAttribute("formmethod") || u.getAttribute("method") || V, r = K(e.getAttribute("formenctype")) || K(u.getAttribute("enctype")) || F, i = new FormData(u, e), !xe()) {
|
|
97
|
+
let {
|
|
98
|
+
name: o,
|
|
99
|
+
type: c,
|
|
100
|
+
value: p
|
|
101
|
+
} = e;
|
|
102
|
+
if (c === "image") {
|
|
103
|
+
let d = o ? o + "." : "";
|
|
104
|
+
i.append(d + "x", "0"), i.append(d + "y", "0");
|
|
105
|
+
} else o && i.append(o, p);
|
|
106
|
+
}
|
|
107
|
+
} else {
|
|
108
|
+
if (B(e))
|
|
109
|
+
throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
|
|
110
|
+
t = V, a = null, r = F, l = e;
|
|
111
|
+
}
|
|
112
|
+
return i && r === "text/plain" && (l = i, i = void 0), {
|
|
113
|
+
action: a,
|
|
114
|
+
method: t.toLowerCase(),
|
|
115
|
+
encType: r,
|
|
116
|
+
formData: i,
|
|
117
|
+
body: l
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
const De = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"], Oe = ["aria-current", "caseSensitive", "className", "end", "style", "to", "unstable_viewTransition", "children"], Ae = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "unstable_viewTransition"], Ve = "6";
|
|
121
|
+
try {
|
|
122
|
+
window.__reactRouterVersion = Ve;
|
|
123
|
+
} catch {
|
|
124
|
+
}
|
|
125
|
+
function ut(e, n) {
|
|
126
|
+
return ge({
|
|
127
|
+
basename: void 0,
|
|
128
|
+
future: T({}, void 0, {
|
|
129
|
+
v7_prependBasename: !0
|
|
130
|
+
}),
|
|
131
|
+
history: Se({
|
|
132
|
+
window: void 0
|
|
133
|
+
}),
|
|
134
|
+
hydrationData: Fe(),
|
|
135
|
+
routes: e,
|
|
136
|
+
mapRouteProperties: ve,
|
|
137
|
+
unstable_dataStrategy: void 0,
|
|
138
|
+
unstable_patchRoutesOnMiss: void 0,
|
|
139
|
+
window: void 0
|
|
140
|
+
}).initialize();
|
|
141
|
+
}
|
|
142
|
+
function Fe() {
|
|
143
|
+
var e;
|
|
144
|
+
let n = (e = window) == null ? void 0 : e.__staticRouterHydrationData;
|
|
145
|
+
return n && n.errors && (n = T({}, n, {
|
|
146
|
+
errors: Ue(n.errors)
|
|
147
|
+
})), n;
|
|
148
|
+
}
|
|
149
|
+
function Ue(e) {
|
|
150
|
+
if (!e) return null;
|
|
151
|
+
let n = Object.entries(e), t = {};
|
|
152
|
+
for (let [a, r] of n)
|
|
153
|
+
if (r && r.__type === "RouteErrorResponse")
|
|
154
|
+
t[a] = new Ee(r.status, r.statusText, r.data, r.internal === !0);
|
|
155
|
+
else if (r && r.__type === "Error") {
|
|
156
|
+
if (r.__subType) {
|
|
157
|
+
let i = window[r.__subType];
|
|
158
|
+
if (typeof i == "function")
|
|
159
|
+
try {
|
|
160
|
+
let l = new i(r.message);
|
|
161
|
+
l.stack = "", t[a] = l;
|
|
162
|
+
} catch {
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
if (t[a] == null) {
|
|
166
|
+
let i = new Error(r.message);
|
|
167
|
+
i.stack = "", t[a] = i;
|
|
168
|
+
}
|
|
169
|
+
} else
|
|
170
|
+
t[a] = r;
|
|
171
|
+
return t;
|
|
172
|
+
}
|
|
173
|
+
const q = /* @__PURE__ */ s.createContext({
|
|
174
|
+
isTransitioning: !1
|
|
175
|
+
});
|
|
176
|
+
process.env.NODE_ENV !== "production" && (q.displayName = "ViewTransition");
|
|
177
|
+
const ie = /* @__PURE__ */ s.createContext(/* @__PURE__ */ new Map());
|
|
178
|
+
process.env.NODE_ENV !== "production" && (ie.displayName = "Fetchers");
|
|
179
|
+
const Ie = "startTransition", X = s[Ie], Me = "flushSync", Z = de[Me];
|
|
180
|
+
function je(e) {
|
|
181
|
+
X ? X(e) : e();
|
|
182
|
+
}
|
|
183
|
+
function O(e) {
|
|
184
|
+
Z ? Z(e) : e();
|
|
185
|
+
}
|
|
186
|
+
class He {
|
|
187
|
+
constructor() {
|
|
188
|
+
this.status = "pending", this.promise = new Promise((n, t) => {
|
|
189
|
+
this.resolve = (a) => {
|
|
190
|
+
this.status === "pending" && (this.status = "resolved", n(a));
|
|
191
|
+
}, this.reject = (a) => {
|
|
192
|
+
this.status === "pending" && (this.status = "rejected", t(a));
|
|
193
|
+
};
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
function ct(e) {
|
|
198
|
+
let {
|
|
199
|
+
fallbackElement: n,
|
|
200
|
+
router: t,
|
|
201
|
+
future: a
|
|
202
|
+
} = e, [r, i] = s.useState(t.state), [l, u] = s.useState(), [f, o] = s.useState({
|
|
203
|
+
isTransitioning: !1
|
|
204
|
+
}), [c, p] = s.useState(), [d, S] = s.useState(), [y, g] = s.useState(), b = s.useRef(/* @__PURE__ */ new Map()), {
|
|
205
|
+
v7_startTransition: C
|
|
206
|
+
} = a || {}, m = s.useCallback((w) => {
|
|
207
|
+
C ? je(w) : w();
|
|
208
|
+
}, [C]), v = s.useCallback((w, R) => {
|
|
209
|
+
let {
|
|
210
|
+
deletedFetchers: E,
|
|
211
|
+
unstable_flushSync: x,
|
|
212
|
+
unstable_viewTransitionOpts: _
|
|
213
|
+
} = R;
|
|
214
|
+
E.forEach((N) => b.current.delete(N)), w.fetchers.forEach((N, fe) => {
|
|
215
|
+
N.data !== void 0 && b.current.set(fe, N.data);
|
|
216
|
+
});
|
|
217
|
+
let ce = t.window == null || t.window.document == null || typeof t.window.document.startViewTransition != "function";
|
|
218
|
+
if (!_ || ce) {
|
|
219
|
+
x ? O(() => i(w)) : m(() => i(w));
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
if (x) {
|
|
223
|
+
O(() => {
|
|
224
|
+
d && (c && c.resolve(), d.skipTransition()), o({
|
|
225
|
+
isTransitioning: !0,
|
|
226
|
+
flushSync: !0,
|
|
227
|
+
currentLocation: _.currentLocation,
|
|
228
|
+
nextLocation: _.nextLocation
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
let N = t.window.document.startViewTransition(() => {
|
|
232
|
+
O(() => i(w));
|
|
233
|
+
});
|
|
234
|
+
N.finished.finally(() => {
|
|
235
|
+
O(() => {
|
|
236
|
+
p(void 0), S(void 0), u(void 0), o({
|
|
237
|
+
isTransitioning: !1
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
}), O(() => S(N));
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
d ? (c && c.resolve(), d.skipTransition(), g({
|
|
244
|
+
state: w,
|
|
245
|
+
currentLocation: _.currentLocation,
|
|
246
|
+
nextLocation: _.nextLocation
|
|
247
|
+
})) : (u(w), o({
|
|
248
|
+
isTransitioning: !0,
|
|
249
|
+
flushSync: !1,
|
|
250
|
+
currentLocation: _.currentLocation,
|
|
251
|
+
nextLocation: _.nextLocation
|
|
252
|
+
}));
|
|
253
|
+
}, [t.window, d, c, b, m]);
|
|
254
|
+
s.useLayoutEffect(() => t.subscribe(v), [t, v]), s.useEffect(() => {
|
|
255
|
+
f.isTransitioning && !f.flushSync && p(new He());
|
|
256
|
+
}, [f]), s.useEffect(() => {
|
|
257
|
+
if (c && l && t.window) {
|
|
258
|
+
let w = l, R = c.promise, E = t.window.document.startViewTransition(async () => {
|
|
259
|
+
m(() => i(w)), await R;
|
|
260
|
+
});
|
|
261
|
+
E.finished.finally(() => {
|
|
262
|
+
p(void 0), S(void 0), u(void 0), o({
|
|
263
|
+
isTransitioning: !1
|
|
264
|
+
});
|
|
265
|
+
}), S(E);
|
|
266
|
+
}
|
|
267
|
+
}, [m, l, c, t.window]), s.useEffect(() => {
|
|
268
|
+
c && l && r.location.key === l.location.key && c.resolve();
|
|
269
|
+
}, [c, d, r.location, l]), s.useEffect(() => {
|
|
270
|
+
!f.isTransitioning && y && (u(y.state), o({
|
|
271
|
+
isTransitioning: !0,
|
|
272
|
+
flushSync: !1,
|
|
273
|
+
currentLocation: y.currentLocation,
|
|
274
|
+
nextLocation: y.nextLocation
|
|
275
|
+
}), g(void 0));
|
|
276
|
+
}, [f.isTransitioning, y]), s.useEffect(() => {
|
|
277
|
+
process.env.NODE_ENV !== "production" && H(n == null || !t.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead");
|
|
278
|
+
}, []);
|
|
279
|
+
let h = s.useMemo(() => ({
|
|
280
|
+
createHref: t.createHref,
|
|
281
|
+
encodeLocation: t.encodeLocation,
|
|
282
|
+
go: (w) => t.navigate(w),
|
|
283
|
+
push: (w, R, E) => t.navigate(w, {
|
|
284
|
+
state: R,
|
|
285
|
+
preventScrollReset: E == null ? void 0 : E.preventScrollReset
|
|
286
|
+
}),
|
|
287
|
+
replace: (w, R, E) => t.navigate(w, {
|
|
288
|
+
replace: !0,
|
|
289
|
+
state: R,
|
|
290
|
+
preventScrollReset: E == null ? void 0 : E.preventScrollReset
|
|
291
|
+
})
|
|
292
|
+
}), [t]), L = t.basename || "/", D = s.useMemo(() => ({
|
|
293
|
+
router: t,
|
|
294
|
+
navigator: h,
|
|
295
|
+
static: !1,
|
|
296
|
+
basename: L
|
|
297
|
+
}), [t, h, L]);
|
|
298
|
+
return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(ae.Provider, {
|
|
299
|
+
value: D
|
|
300
|
+
}, /* @__PURE__ */ s.createElement(ne.Provider, {
|
|
301
|
+
value: r
|
|
302
|
+
}, /* @__PURE__ */ s.createElement(ie.Provider, {
|
|
303
|
+
value: b.current
|
|
304
|
+
}, /* @__PURE__ */ s.createElement(q.Provider, {
|
|
305
|
+
value: f
|
|
306
|
+
}, /* @__PURE__ */ s.createElement(we, {
|
|
307
|
+
basename: L,
|
|
308
|
+
location: r.location,
|
|
309
|
+
navigationType: r.historyAction,
|
|
310
|
+
navigator: h,
|
|
311
|
+
future: {
|
|
312
|
+
v7_relativeSplatPath: t.future.v7_relativeSplatPath
|
|
313
|
+
}
|
|
314
|
+
}, r.initialized || t.future.v7_partialHydration ? /* @__PURE__ */ s.createElement(Be, {
|
|
315
|
+
routes: t.routes,
|
|
316
|
+
future: t.future,
|
|
317
|
+
state: r
|
|
318
|
+
}) : n))))), null);
|
|
319
|
+
}
|
|
320
|
+
function Be(e) {
|
|
321
|
+
let {
|
|
322
|
+
routes: n,
|
|
323
|
+
future: t,
|
|
324
|
+
state: a
|
|
325
|
+
} = e;
|
|
326
|
+
return ye(n, void 0, a, t);
|
|
327
|
+
}
|
|
328
|
+
process.env.NODE_ENV;
|
|
329
|
+
const Ke = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", We = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, oe = /* @__PURE__ */ s.forwardRef(function(n, t) {
|
|
330
|
+
let {
|
|
331
|
+
onClick: a,
|
|
332
|
+
relative: r,
|
|
333
|
+
reloadDocument: i,
|
|
334
|
+
replace: l,
|
|
335
|
+
state: u,
|
|
336
|
+
target: f,
|
|
337
|
+
to: o,
|
|
338
|
+
preventScrollReset: c,
|
|
339
|
+
unstable_viewTransition: p
|
|
340
|
+
} = n, d = Y(n, De), {
|
|
341
|
+
basename: S
|
|
342
|
+
} = s.useContext(I), y, g = !1;
|
|
343
|
+
if (typeof o == "string" && We.test(o) && (y = o, Ke))
|
|
344
|
+
try {
|
|
345
|
+
let v = new URL(window.location.href), h = o.startsWith("//") ? new URL(v.protocol + o) : new URL(o), L = P(h.pathname, S);
|
|
346
|
+
h.origin === v.origin && L != null ? o = L + h.search + h.hash : g = !0;
|
|
347
|
+
} catch {
|
|
348
|
+
process.env.NODE_ENV !== "production" && H(!1, '<Link to="' + o + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
|
|
349
|
+
}
|
|
350
|
+
let b = me(o, {
|
|
351
|
+
relative: r
|
|
352
|
+
}), C = qe(o, {
|
|
353
|
+
replace: l,
|
|
354
|
+
state: u,
|
|
355
|
+
target: f,
|
|
356
|
+
preventScrollReset: c,
|
|
357
|
+
relative: r,
|
|
358
|
+
unstable_viewTransition: p
|
|
359
|
+
});
|
|
360
|
+
function m(v) {
|
|
361
|
+
a && a(v), v.defaultPrevented || C(v);
|
|
362
|
+
}
|
|
363
|
+
return (
|
|
364
|
+
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
365
|
+
/* @__PURE__ */ s.createElement("a", T({}, d, {
|
|
366
|
+
href: y || b,
|
|
367
|
+
onClick: g || i ? a : m,
|
|
368
|
+
ref: t,
|
|
369
|
+
target: f
|
|
370
|
+
}))
|
|
371
|
+
);
|
|
372
|
+
});
|
|
373
|
+
process.env.NODE_ENV !== "production" && (oe.displayName = "Link");
|
|
374
|
+
const ze = /* @__PURE__ */ s.forwardRef(function(n, t) {
|
|
375
|
+
let {
|
|
376
|
+
"aria-current": a = "page",
|
|
377
|
+
caseSensitive: r = !1,
|
|
378
|
+
className: i = "",
|
|
379
|
+
end: l = !1,
|
|
380
|
+
style: u,
|
|
381
|
+
to: f,
|
|
382
|
+
unstable_viewTransition: o,
|
|
383
|
+
children: c
|
|
384
|
+
} = n, p = Y(n, Oe), d = M(f, {
|
|
385
|
+
relative: p.relative
|
|
386
|
+
}), S = j(), y = s.useContext(ne), {
|
|
387
|
+
navigator: g,
|
|
388
|
+
basename: b
|
|
389
|
+
} = s.useContext(I), C = y != null && // Conditional usage is OK here because the usage of a data router is static
|
|
390
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
391
|
+
et(d) && o === !0, m = g.encodeLocation ? g.encodeLocation(d).pathname : d.pathname, v = S.pathname, h = y && y.navigation && y.navigation.location ? y.navigation.location.pathname : null;
|
|
392
|
+
r || (v = v.toLowerCase(), h = h ? h.toLowerCase() : null, m = m.toLowerCase()), h && b && (h = P(h, b) || h);
|
|
393
|
+
const L = m !== "/" && m.endsWith("/") ? m.length - 1 : m.length;
|
|
394
|
+
let D = v === m || !l && v.startsWith(m) && v.charAt(L) === "/", w = h != null && (h === m || !l && h.startsWith(m) && h.charAt(m.length) === "/"), R = {
|
|
395
|
+
isActive: D,
|
|
396
|
+
isPending: w,
|
|
397
|
+
isTransitioning: C
|
|
398
|
+
}, E = D ? a : void 0, x;
|
|
399
|
+
typeof i == "function" ? x = i(R) : x = [i, D ? "active" : null, w ? "pending" : null, C ? "transitioning" : null].filter(Boolean).join(" ");
|
|
400
|
+
let _ = typeof u == "function" ? u(R) : u;
|
|
401
|
+
return /* @__PURE__ */ s.createElement(oe, T({}, p, {
|
|
402
|
+
"aria-current": E,
|
|
403
|
+
className: x,
|
|
404
|
+
ref: t,
|
|
405
|
+
style: _,
|
|
406
|
+
to: f,
|
|
407
|
+
unstable_viewTransition: o
|
|
408
|
+
}), typeof c == "function" ? c(R) : c);
|
|
409
|
+
});
|
|
410
|
+
process.env.NODE_ENV !== "production" && (ze.displayName = "NavLink");
|
|
411
|
+
const $e = /* @__PURE__ */ s.forwardRef((e, n) => {
|
|
412
|
+
let {
|
|
413
|
+
fetcherKey: t,
|
|
414
|
+
navigate: a,
|
|
415
|
+
reloadDocument: r,
|
|
416
|
+
replace: i,
|
|
417
|
+
state: l,
|
|
418
|
+
method: u = V,
|
|
419
|
+
action: f,
|
|
420
|
+
onSubmit: o,
|
|
421
|
+
relative: c,
|
|
422
|
+
preventScrollReset: p,
|
|
423
|
+
unstable_viewTransition: d
|
|
424
|
+
} = e, S = Y(e, Ae), y = Je(), g = Qe(f, {
|
|
425
|
+
relative: c
|
|
426
|
+
}), b = u.toLowerCase() === "get" ? "get" : "post", C = (m) => {
|
|
427
|
+
if (o && o(m), m.defaultPrevented) return;
|
|
428
|
+
m.preventDefault();
|
|
429
|
+
let v = m.nativeEvent.submitter, h = (v == null ? void 0 : v.getAttribute("formmethod")) || u;
|
|
430
|
+
y(v || m.currentTarget, {
|
|
431
|
+
fetcherKey: t,
|
|
432
|
+
method: h,
|
|
433
|
+
navigate: a,
|
|
434
|
+
replace: i,
|
|
435
|
+
state: l,
|
|
436
|
+
relative: c,
|
|
437
|
+
preventScrollReset: p,
|
|
438
|
+
unstable_viewTransition: d
|
|
439
|
+
});
|
|
440
|
+
};
|
|
441
|
+
return /* @__PURE__ */ s.createElement("form", T({
|
|
442
|
+
ref: n,
|
|
443
|
+
method: b,
|
|
444
|
+
action: g,
|
|
445
|
+
onSubmit: r ? o : C
|
|
446
|
+
}, S));
|
|
447
|
+
});
|
|
448
|
+
process.env.NODE_ENV !== "production" && ($e.displayName = "Form");
|
|
449
|
+
process.env.NODE_ENV;
|
|
450
|
+
var U;
|
|
451
|
+
(function(e) {
|
|
452
|
+
e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState";
|
|
453
|
+
})(U || (U = {}));
|
|
454
|
+
var J;
|
|
455
|
+
(function(e) {
|
|
456
|
+
e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
|
|
457
|
+
})(J || (J = {}));
|
|
458
|
+
function Ye(e) {
|
|
459
|
+
return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
|
|
460
|
+
}
|
|
461
|
+
function se(e) {
|
|
462
|
+
let n = s.useContext(ae);
|
|
463
|
+
return n || (process.env.NODE_ENV !== "production" ? k(!1, Ye(e)) : k(!1)), n;
|
|
464
|
+
}
|
|
465
|
+
function qe(e, n) {
|
|
466
|
+
let {
|
|
467
|
+
target: t,
|
|
468
|
+
replace: a,
|
|
469
|
+
state: r,
|
|
470
|
+
preventScrollReset: i,
|
|
471
|
+
relative: l,
|
|
472
|
+
unstable_viewTransition: u
|
|
473
|
+
} = n === void 0 ? {} : n, f = re(), o = j(), c = M(e, {
|
|
474
|
+
relative: l
|
|
475
|
+
});
|
|
476
|
+
return s.useCallback((p) => {
|
|
477
|
+
if (Te(p, t)) {
|
|
478
|
+
p.preventDefault();
|
|
479
|
+
let d = a !== void 0 ? a : z(o) === z(c);
|
|
480
|
+
f(e, {
|
|
481
|
+
replace: d,
|
|
482
|
+
state: r,
|
|
483
|
+
preventScrollReset: i,
|
|
484
|
+
relative: l,
|
|
485
|
+
unstable_viewTransition: u
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
}, [o, f, c, a, r, t, e, i, l, u]);
|
|
489
|
+
}
|
|
490
|
+
function ft(e) {
|
|
491
|
+
process.env.NODE_ENV !== "production" && H(typeof URLSearchParams < "u", "You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");
|
|
492
|
+
let n = s.useRef($(e)), t = s.useRef(!1), a = j(), r = s.useMemo(() => (
|
|
493
|
+
// Only merge in the defaults if we haven't yet called setSearchParams.
|
|
494
|
+
// Once we call that we want those to take precedence, otherwise you can't
|
|
495
|
+
// remove a param with setSearchParams({}) if it has an initial value
|
|
496
|
+
Ne(a.search, t.current ? null : n.current)
|
|
497
|
+
), [a.search]), i = re(), l = s.useCallback((u, f) => {
|
|
498
|
+
const o = $(typeof u == "function" ? u(r) : u);
|
|
499
|
+
t.current = !0, i("?" + o, f);
|
|
500
|
+
}, [i, r]);
|
|
501
|
+
return [r, l];
|
|
502
|
+
}
|
|
503
|
+
function Ge() {
|
|
504
|
+
if (typeof document > "u")
|
|
505
|
+
throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
|
|
506
|
+
}
|
|
507
|
+
let Xe = 0, Ze = () => "__" + String(++Xe) + "__";
|
|
508
|
+
function Je() {
|
|
509
|
+
let {
|
|
510
|
+
router: e
|
|
511
|
+
} = se(U.UseSubmit), {
|
|
512
|
+
basename: n
|
|
513
|
+
} = s.useContext(I), t = he();
|
|
514
|
+
return s.useCallback(function(a, r) {
|
|
515
|
+
r === void 0 && (r = {}), Ge();
|
|
516
|
+
let {
|
|
517
|
+
action: i,
|
|
518
|
+
method: l,
|
|
519
|
+
encType: u,
|
|
520
|
+
formData: f,
|
|
521
|
+
body: o
|
|
522
|
+
} = ke(a, n);
|
|
523
|
+
if (r.navigate === !1) {
|
|
524
|
+
let c = r.fetcherKey || Ze();
|
|
525
|
+
e.fetch(c, t, r.action || i, {
|
|
526
|
+
preventScrollReset: r.preventScrollReset,
|
|
527
|
+
formData: f,
|
|
528
|
+
body: o,
|
|
529
|
+
formMethod: r.method || l,
|
|
530
|
+
formEncType: r.encType || u,
|
|
531
|
+
unstable_flushSync: r.unstable_flushSync
|
|
532
|
+
});
|
|
533
|
+
} else
|
|
534
|
+
e.navigate(r.action || i, {
|
|
535
|
+
preventScrollReset: r.preventScrollReset,
|
|
536
|
+
formData: f,
|
|
537
|
+
body: o,
|
|
538
|
+
formMethod: r.method || l,
|
|
539
|
+
formEncType: r.encType || u,
|
|
540
|
+
replace: r.replace,
|
|
541
|
+
state: r.state,
|
|
542
|
+
fromRouteId: t,
|
|
543
|
+
unstable_flushSync: r.unstable_flushSync,
|
|
544
|
+
unstable_viewTransition: r.unstable_viewTransition
|
|
545
|
+
});
|
|
546
|
+
}, [e, n, t]);
|
|
547
|
+
}
|
|
548
|
+
function Qe(e, n) {
|
|
549
|
+
let {
|
|
550
|
+
relative: t
|
|
551
|
+
} = n === void 0 ? {} : n, {
|
|
552
|
+
basename: a
|
|
553
|
+
} = s.useContext(I), r = s.useContext(pe);
|
|
554
|
+
r || (process.env.NODE_ENV !== "production" ? k(!1, "useFormAction must be used inside a RouteContext") : k(!1));
|
|
555
|
+
let [i] = r.matches.slice(-1), l = T({}, M(e || ".", {
|
|
556
|
+
relative: t
|
|
557
|
+
})), u = j();
|
|
558
|
+
if (e == null) {
|
|
559
|
+
l.search = u.search;
|
|
560
|
+
let f = new URLSearchParams(l.search);
|
|
561
|
+
f.has("index") && f.get("index") === "" && (f.delete("index"), l.search = f.toString() ? "?" + f.toString() : "");
|
|
562
|
+
}
|
|
563
|
+
return (!e || e === ".") && i.route.index && (l.search = l.search ? l.search.replace(/^\?/, "?index&") : "?index"), a !== "/" && (l.pathname = l.pathname === "/" ? a : be([a, l.pathname])), z(l);
|
|
564
|
+
}
|
|
565
|
+
function et(e, n) {
|
|
566
|
+
n === void 0 && (n = {});
|
|
567
|
+
let t = s.useContext(q);
|
|
568
|
+
t == null && (process.env.NODE_ENV !== "production" ? k(!1, "`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : k(!1));
|
|
569
|
+
let {
|
|
570
|
+
basename: a
|
|
571
|
+
} = se(U.useViewTransitionState), r = M(e, {
|
|
572
|
+
relative: n.relative
|
|
573
|
+
});
|
|
574
|
+
if (!t.isTransitioning)
|
|
575
|
+
return !1;
|
|
576
|
+
let i = P(t.currentLocation.pathname, a) || t.currentLocation.pathname, l = P(t.nextLocation.pathname, a) || t.nextLocation.pathname;
|
|
577
|
+
return G(r.pathname, l) != null || G(r.pathname, i) != null;
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* @license lucide-react v0.378.0 - ISC
|
|
581
|
+
*
|
|
582
|
+
* This source code is licensed under the ISC license.
|
|
583
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
584
|
+
*/
|
|
585
|
+
const tt = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), le = (...e) => e.filter((n, t, a) => !!n && a.indexOf(n) === t).join(" ");
|
|
586
|
+
/**
|
|
587
|
+
* @license lucide-react v0.378.0 - ISC
|
|
588
|
+
*
|
|
589
|
+
* This source code is licensed under the ISC license.
|
|
590
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
591
|
+
*/
|
|
592
|
+
var nt = {
|
|
593
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
594
|
+
width: 24,
|
|
595
|
+
height: 24,
|
|
596
|
+
viewBox: "0 0 24 24",
|
|
597
|
+
fill: "none",
|
|
598
|
+
stroke: "currentColor",
|
|
599
|
+
strokeWidth: 2,
|
|
600
|
+
strokeLinecap: "round",
|
|
601
|
+
strokeLinejoin: "round"
|
|
602
|
+
};
|
|
603
|
+
/**
|
|
604
|
+
* @license lucide-react v0.378.0 - ISC
|
|
605
|
+
*
|
|
606
|
+
* This source code is licensed under the ISC license.
|
|
607
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
608
|
+
*/
|
|
609
|
+
const rt = te(
|
|
610
|
+
({
|
|
611
|
+
color: e = "currentColor",
|
|
612
|
+
size: n = 24,
|
|
613
|
+
strokeWidth: t = 2,
|
|
614
|
+
absoluteStrokeWidth: a,
|
|
615
|
+
className: r = "",
|
|
616
|
+
children: i,
|
|
617
|
+
iconNode: l,
|
|
618
|
+
...u
|
|
619
|
+
}, f) => W(
|
|
620
|
+
"svg",
|
|
621
|
+
{
|
|
622
|
+
ref: f,
|
|
623
|
+
...nt,
|
|
624
|
+
width: n,
|
|
625
|
+
height: n,
|
|
626
|
+
stroke: e,
|
|
627
|
+
strokeWidth: a ? Number(t) * 24 / Number(n) : t,
|
|
628
|
+
className: le("lucide", r),
|
|
629
|
+
...u
|
|
630
|
+
},
|
|
631
|
+
[
|
|
632
|
+
...l.map(([o, c]) => W(o, c)),
|
|
633
|
+
...Array.isArray(i) ? i : [i]
|
|
634
|
+
]
|
|
635
|
+
)
|
|
636
|
+
);
|
|
637
|
+
/**
|
|
638
|
+
* @license lucide-react v0.378.0 - ISC
|
|
639
|
+
*
|
|
640
|
+
* This source code is licensed under the ISC license.
|
|
641
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
642
|
+
*/
|
|
643
|
+
const at = (e, n) => {
|
|
644
|
+
const t = te(
|
|
645
|
+
({ className: a, ...r }, i) => W(rt, {
|
|
646
|
+
ref: i,
|
|
647
|
+
iconNode: n,
|
|
648
|
+
className: le(`lucide-${tt(e)}`, a),
|
|
649
|
+
...r
|
|
650
|
+
})
|
|
651
|
+
);
|
|
652
|
+
return t.displayName = `${e}`, t;
|
|
653
|
+
};
|
|
654
|
+
/**
|
|
655
|
+
* @license lucide-react v0.378.0 - ISC
|
|
656
|
+
*
|
|
657
|
+
* This source code is licensed under the ISC license.
|
|
658
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
659
|
+
*/
|
|
660
|
+
const dt = at("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
|
|
661
|
+
function ue(e) {
|
|
662
|
+
var n, t, a = "";
|
|
663
|
+
if (typeof e == "string" || typeof e == "number") a += e;
|
|
664
|
+
else if (typeof e == "object") if (Array.isArray(e)) for (n = 0; n < e.length; n++) e[n] && (t = ue(e[n])) && (a && (a += " "), a += t);
|
|
665
|
+
else for (n in e) e[n] && (a && (a += " "), a += n);
|
|
666
|
+
return a;
|
|
667
|
+
}
|
|
668
|
+
function it() {
|
|
669
|
+
for (var e, n, t = 0, a = ""; t < arguments.length; ) (e = arguments[t++]) && (n = ue(e)) && (a && (a += " "), a += n);
|
|
670
|
+
return a;
|
|
671
|
+
}
|
|
672
|
+
const Q = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, ee = it, mt = (e, n) => (t) => {
|
|
673
|
+
var a;
|
|
674
|
+
if ((n == null ? void 0 : n.variants) == null) return ee(e, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
|
|
675
|
+
const { variants: r, defaultVariants: i } = n, l = Object.keys(r).map((o) => {
|
|
676
|
+
const c = t == null ? void 0 : t[o], p = i == null ? void 0 : i[o];
|
|
677
|
+
if (c === null) return null;
|
|
678
|
+
const d = Q(c) || Q(p);
|
|
679
|
+
return r[o][d];
|
|
680
|
+
}), u = t && Object.entries(t).reduce((o, c) => {
|
|
681
|
+
let [p, d] = c;
|
|
682
|
+
return d === void 0 || (o[p] = d), o;
|
|
683
|
+
}, {}), f = n == null || (a = n.compoundVariants) === null || a === void 0 ? void 0 : a.reduce((o, c) => {
|
|
684
|
+
let { class: p, className: d, ...S } = c;
|
|
685
|
+
return Object.entries(S).every((y) => {
|
|
686
|
+
let [g, b] = y;
|
|
687
|
+
return Array.isArray(b) ? b.includes({
|
|
688
|
+
...i,
|
|
689
|
+
...u
|
|
690
|
+
}[g]) : {
|
|
691
|
+
...i,
|
|
692
|
+
...u
|
|
693
|
+
}[g] === b;
|
|
694
|
+
}) ? [
|
|
695
|
+
...o,
|
|
696
|
+
p,
|
|
697
|
+
d
|
|
698
|
+
] : o;
|
|
699
|
+
}, []);
|
|
700
|
+
return ee(e, l, f, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
|
|
701
|
+
};
|
|
702
|
+
export {
|
|
703
|
+
dt as C,
|
|
704
|
+
oe as L,
|
|
705
|
+
ze as N,
|
|
706
|
+
ct as R,
|
|
707
|
+
ee as a,
|
|
708
|
+
mt as b,
|
|
709
|
+
at as c,
|
|
710
|
+
ut as d,
|
|
711
|
+
ft as u
|
|
712
|
+
};
|
|
713
|
+
//# sourceMappingURL=index-CPvRaBBB.js.map
|