zudoku 0.0.0-f865d81 → 0.0.0-fb7d300
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.js +0 -2
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.js +14 -0
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.js +6 -6
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/main.d.ts +1 -1
- package/dist/app/main.js +2 -2
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +0 -2
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/cli.js +1 -2
- package/dist/cli/cli.js.map +1 -1
- package/dist/codegen.d.ts +3 -0
- package/dist/codegen.js +45 -0
- package/dist/codegen.js.map +1 -0
- package/dist/config/validators/InputSidebarSchema.d.ts +10 -10
- package/dist/config/validators/validate.d.ts +125 -114
- package/dist/config/validators/validate.js +6 -5
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +4 -2
- package/dist/lib/authentication/AuthenticationPlugin.js +3 -0
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +3 -3
- package/dist/lib/authentication/hook.d.ts +5 -4
- package/dist/lib/authentication/hook.js +1 -3
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.js +12 -11
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +0 -1
- package/dist/lib/authentication/providers/openid.js +11 -26
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/state.d.ts +25 -4
- package/dist/lib/authentication/state.js +28 -3
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
- package/dist/lib/authentication/use-broadcast/shared.js +243 -0
- package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
- package/dist/lib/components/Bootstrap.d.ts +3 -1
- package/dist/lib/components/Bootstrap.js +10 -4
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/ClientOnly.d.ts +4 -2
- package/dist/lib/components/ClientOnly.js +1 -1
- package/dist/lib/components/ClientOnly.js.map +1 -1
- package/dist/lib/components/DeveloperHint.js +2 -1
- package/dist/lib/components/DeveloperHint.js.map +1 -1
- package/dist/lib/components/Header.js +16 -10
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +1 -1
- package/dist/lib/components/Layout.js +12 -4
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +6 -7
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/SyntaxHighlight.js +16 -12
- package/dist/lib/components/SyntaxHighlight.js.map +1 -1
- package/dist/lib/components/ThemeSwitch.d.ts +1 -0
- package/dist/lib/components/ThemeSwitch.js +13 -0
- package/dist/lib/components/ThemeSwitch.js.map +1 -0
- package/dist/lib/components/TopNavigation.d.ts +2 -0
- package/dist/lib/components/TopNavigation.js +13 -7
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/{DevPortal.d.ts → Zudoku.d.ts} +3 -3
- package/dist/lib/components/{DevPortal.js → Zudoku.js} +13 -14
- package/dist/lib/components/Zudoku.js.map +1 -0
- package/dist/lib/components/context/ZudokuContext.d.ts +7 -7
- package/dist/lib/components/context/ZudokuContext.js +8 -13
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
- package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
- package/dist/lib/components/index.d.ts +18 -10
- package/dist/lib/components/index.js +2 -3
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/Sidebar.js +1 -1
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/utils.js +2 -2
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/{DevPortalContext.d.ts → ZudokuContext.d.ts} +3 -7
- package/dist/lib/core/{DevPortalContext.js → ZudokuContext.js} +2 -7
- package/dist/lib/core/ZudokuContext.js.map +1 -0
- package/dist/lib/core/plugins.d.ts +18 -12
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.js +1 -1
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +4 -4
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.js +3 -1
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +9 -9
- package/dist/lib/plugins/api-keys/index.js +3 -0
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/index.d.ts +2 -2
- package/dist/lib/plugins/custom-pages/index.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +2 -2
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js +24 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
- package/dist/lib/plugins/openapi/ColorizedParam.js +13 -9
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +5 -9
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.d.ts +2 -2
- package/dist/lib/plugins/openapi/OperationList.js +21 -22
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +6 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +7 -3
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +9 -2
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/Route.d.ts +4 -4
- package/dist/lib/plugins/openapi/Route.js +2 -4
- package/dist/lib/plugins/openapi/Route.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +35 -33
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js +102 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createServer.d.ts +1 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +5 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +13 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
- package/dist/lib/plugins/openapi/client/worker.d.ts +4 -1
- package/dist/lib/plugins/openapi/client/worker.js +23 -14
- package/dist/lib/plugins/openapi/client/worker.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +5 -51
- package/dist/lib/plugins/openapi/graphql/gql.js +4 -2
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +32 -8
- package/dist/lib/plugins/openapi/graphql/graphql.js +194 -662
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +2 -2
- package/dist/lib/plugins/openapi/index.js +40 -53
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js +2 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +0 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +25 -36
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi-worker.d.ts +1 -1
- package/dist/lib/plugins/openapi-worker.js +7 -1
- package/dist/lib/plugins/openapi-worker.js.map +1 -1
- package/dist/lib/plugins/redirect/index.d.ts +4 -7
- package/dist/lib/plugins/redirect/index.js +1 -1
- package/dist/lib/plugins/redirect/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/index.d.ts +2 -2
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/ui/ActionButton.d.ts +4 -0
- package/dist/lib/ui/ActionButton.js +10 -0
- package/dist/lib/ui/ActionButton.js.map +1 -0
- package/dist/lib/util/MdxComponents.d.ts +1 -1
- package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
- package/dist/lib/util/useOnScreen.d.ts +4 -0
- package/dist/lib/util/useOnScreen.js +19 -0
- package/dist/lib/util/useOnScreen.js.map +1 -0
- package/dist/vite/build.js +5 -1
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +2 -8
- package/dist/vite/config.js +13 -54
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/html.js +0 -2
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/output.d.ts +101 -0
- package/dist/vite/output.js +33 -0
- package/dist/vite/output.js.map +1 -0
- package/dist/vite/plugin-component.js +1 -1
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +2 -3
- package/dist/vite/plugin-config.js +2 -3
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +0 -6
- package/dist/vite/plugin-mdx.js +3 -2
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin.js +1 -3
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender.js +3 -2
- package/dist/vite/prerender.js.map +1 -1
- package/dist/vite/remarkStaticGeneration.d.ts +3 -0
- package/dist/vite/remarkStaticGeneration.js +125 -0
- package/dist/vite/remarkStaticGeneration.js.map +1 -0
- package/lib/{AnchorLink-BbB2q-jx.js → AnchorLink-CDlhr8gL.js} +11 -10
- package/lib/{AnchorLink-BbB2q-jx.js.map → AnchorLink-CDlhr8gL.js.map} +1 -1
- package/lib/AuthenticationPlugin-D0Em0SwR.js +59 -0
- package/lib/{AuthenticationPlugin-C9BHGXlE.js.map → AuthenticationPlugin-D0Em0SwR.js.map} +1 -1
- package/lib/Button-jK0EsymC.js +48 -0
- package/lib/Button-jK0EsymC.js.map +1 -0
- package/lib/{ClientOnly-CVN6leDu.js → ClientOnly-E7hGysn1.js} +4 -4
- package/lib/ClientOnly-E7hGysn1.js.map +1 -0
- package/lib/Markdown-ievDDhFT.js +15192 -0
- package/lib/Markdown-ievDDhFT.js.map +1 -0
- package/lib/{MdxPage-DKMH_t0f.js → MdxPage-Bwn-VSsH.js} +5 -5
- package/lib/{MdxPage-DKMH_t0f.js.map → MdxPage-Bwn-VSsH.js.map} +1 -1
- package/lib/OperationList-BwBl1xrD.js +4691 -0
- package/lib/OperationList-BwBl1xrD.js.map +1 -0
- package/lib/Route-DlG_HTMu.js +11 -0
- package/lib/Route-DlG_HTMu.js.map +1 -0
- package/lib/{Select-Bagt3Bme.js → Select-O9ZM3ZgX.js} +7 -7
- package/lib/Select-O9ZM3ZgX.js.map +1 -0
- package/lib/{Spinner-C6zroowC.js → SidebarBadge-DxFJcJ6V.js} +28 -17
- package/lib/SidebarBadge-DxFJcJ6V.js.map +1 -0
- package/lib/SlotletProvider-DyomlzGx.js +252 -0
- package/lib/SlotletProvider-DyomlzGx.js.map +1 -0
- package/lib/Spinner-3cQDBVGr.js +7 -0
- package/lib/Spinner-3cQDBVGr.js.map +1 -0
- package/lib/SyntaxHighlight-DkLOsjHS.js +2983 -0
- package/lib/SyntaxHighlight-DkLOsjHS.js.map +1 -0
- package/lib/assets/{worker-Bf8vjASY.js → worker-CPsGZsve.js} +565 -561
- package/lib/assets/{worker-Bf8vjASY.js.map → worker-CPsGZsve.js.map} +1 -1
- package/lib/context-D1nXWxm7.js +22 -0
- package/lib/context-D1nXWxm7.js.map +1 -0
- package/lib/createServer-DK-g7kbB.js +16089 -0
- package/lib/createServer-DK-g7kbB.js.map +1 -0
- package/lib/{hook-sn0zMTkE.js → hook-hEqe7fPB.js} +12 -14
- package/lib/hook-hEqe7fPB.js.map +1 -0
- package/lib/index-Czzd9rjU.js +899 -0
- package/lib/index-Czzd9rjU.js.map +1 -0
- package/lib/index-DNxQ_rCt.js +1273 -0
- package/lib/index-DNxQ_rCt.js.map +1 -0
- package/lib/index-Yn8c3UWE.js +921 -0
- package/lib/index-Yn8c3UWE.js.map +1 -0
- package/lib/{router-BsfSoK2j.js → router-lfyopgBI.js} +23 -23
- package/lib/{router-BsfSoK2j.js.map → router-lfyopgBI.js.map} +1 -1
- package/lib/state-tsXBLONe.js +203 -0
- package/lib/{state-CsuHT8ZO.js.map → state-tsXBLONe.js.map} +1 -1
- package/lib/ui/ActionButton.js +25 -0
- package/lib/ui/ActionButton.js.map +1 -0
- package/lib/useExposedProps-CTPtylCV.js +10 -0
- package/lib/{useExposedProps-ChOIUaS4.js.map → useExposedProps-CTPtylCV.js.map} +1 -1
- package/lib/{ZudokuContext-BKXGJTmu.js → utils-DcpDOncX.js} +242 -246
- package/lib/utils-DcpDOncX.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +24 -18
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +124 -138
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +1291 -1119
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +10 -16336
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +41 -39
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +2 -2
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +5 -9
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +2 -2
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +1 -1
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/package.json +15 -5
- package/src/app/demo.tsx +0 -3
- package/src/app/entry.client.tsx +14 -0
- package/src/app/entry.server.tsx +59 -53
- package/src/app/main.css +1 -1
- package/src/app/main.tsx +4 -4
- package/src/app/standalone.tsx +0 -3
- package/src/lib/authentication/AuthenticationPlugin.tsx +4 -1
- package/src/lib/authentication/authentication.ts +3 -3
- package/src/lib/authentication/hook.ts +1 -3
- package/src/lib/authentication/providers/auth0.tsx +17 -11
- package/src/lib/authentication/providers/openid.tsx +12 -30
- package/src/lib/authentication/state.ts +50 -9
- package/{LICENSE.md → src/lib/authentication/use-broadcast/LICENSE.md} +2 -2
- package/src/lib/authentication/use-broadcast/shared.ts +372 -0
- package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
- package/src/lib/components/Bootstrap.tsx +36 -14
- package/src/lib/components/ClientOnly.tsx +6 -3
- package/src/lib/components/DeveloperHint.tsx +6 -1
- package/src/lib/components/Header.tsx +68 -40
- package/src/lib/components/Layout.tsx +49 -37
- package/src/lib/components/MobileTopNavigation.tsx +15 -18
- package/src/lib/components/SyntaxHighlight.tsx +81 -46
- package/src/lib/components/ThemeSwitch.tsx +26 -0
- package/src/lib/components/TopNavigation.tsx +27 -19
- package/src/lib/components/Zudoku.tsx +108 -0
- package/src/lib/components/context/ZudokuContext.ts +11 -16
- package/src/lib/components/context/ZudokuProvider.tsx +2 -2
- package/src/lib/components/index.ts +2 -3
- package/src/lib/components/navigation/Sidebar.tsx +3 -3
- package/src/lib/components/navigation/utils.ts +2 -2
- package/src/lib/core/{DevPortalContext.ts → ZudokuContext.ts} +3 -11
- package/src/lib/core/plugins.ts +20 -16
- package/src/lib/errors/ErrorAlert.tsx +2 -1
- package/src/lib/oas/graphql/index.ts +4 -4
- package/src/lib/oas/parser/upgrade/index.ts +3 -1
- package/src/lib/plugins/api-keys/index.tsx +12 -9
- package/src/lib/plugins/custom-pages/index.tsx +2 -2
- package/src/lib/plugins/markdown/index.tsx +2 -2
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +80 -0
- package/src/lib/plugins/openapi/ColorizedParam.tsx +23 -14
- package/src/lib/plugins/openapi/Endpoint.tsx +5 -10
- package/src/lib/plugins/openapi/OperationList.tsx +20 -40
- package/src/lib/plugins/openapi/ParameterListItem.tsx +37 -31
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +18 -13
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +17 -12
- package/src/lib/plugins/openapi/Route.tsx +11 -12
- package/src/lib/plugins/openapi/Sidecar.tsx +73 -59
- package/src/lib/plugins/openapi/client/GraphQLClient.tsx +140 -0
- package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
- package/src/lib/plugins/openapi/client/createServer.ts +2 -0
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +18 -0
- package/src/lib/plugins/openapi/client/worker.ts +38 -24
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
- package/src/lib/plugins/openapi/graphql/gql.ts +10 -27
- package/src/lib/plugins/openapi/graphql/graphql.ts +233 -665
- package/src/lib/plugins/openapi/index.tsx +42 -67
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +5 -2
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +28 -42
- package/src/lib/plugins/openapi-worker.ts +11 -1
- package/src/lib/plugins/redirect/index.tsx +5 -9
- package/src/lib/plugins/search-inkeep/index.tsx +2 -2
- package/src/lib/ui/ActionButton.tsx +28 -0
- package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
- package/src/lib/util/useOnScreen.ts +32 -0
- package/dist/lib/components/DevPortal.js.map +0 -1
- package/dist/lib/components/context/ThemeContext.d.ts +0 -2
- package/dist/lib/components/context/ThemeContext.js +0 -7
- package/dist/lib/components/context/ThemeContext.js.map +0 -1
- package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
- package/dist/lib/components/context/ThemeProvider.js +0 -23
- package/dist/lib/components/context/ThemeProvider.js.map +0 -1
- package/dist/lib/core/DevPortalContext.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
- package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
- package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
- package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
- package/dist/lib/themeToggle.d.ts +0 -1
- package/dist/lib/themeToggle.js +0 -7
- package/dist/lib/themeToggle.js.map +0 -1
- package/dist/lib/util/createWaitForNotify.d.ts +0 -1
- package/dist/lib/util/createWaitForNotify.js +0 -15
- package/dist/lib/util/createWaitForNotify.js.map +0 -1
- package/dist/vite/plugin-html-transform.d.ts +0 -2
- package/dist/vite/plugin-html-transform.js +0 -15
- package/dist/vite/plugin-html-transform.js.map +0 -1
- package/lib/AuthenticationPlugin-C9BHGXlE.js +0 -55
- package/lib/ClientOnly-CVN6leDu.js.map +0 -1
- package/lib/DeveloperHint-DHdLXGHA.js +0 -16
- package/lib/DeveloperHint-DHdLXGHA.js.map +0 -1
- package/lib/Markdown-BDcCAWwm.js +0 -18059
- package/lib/Markdown-BDcCAWwm.js.map +0 -1
- package/lib/OperationList-Tj7ubW_t.js +0 -604
- package/lib/OperationList-Tj7ubW_t.js.map +0 -1
- package/lib/Route-C3DGB6OS.js +0 -13
- package/lib/Route-C3DGB6OS.js.map +0 -1
- package/lib/Select-Bagt3Bme.js.map +0 -1
- package/lib/SlotletProvider-Da7eFgd2.js +0 -241
- package/lib/SlotletProvider-Da7eFgd2.js.map +0 -1
- package/lib/Spinner-C6zroowC.js.map +0 -1
- package/lib/StaggeredRender-DDHSzQKE.js +0 -17
- package/lib/StaggeredRender-DDHSzQKE.js.map +0 -1
- package/lib/ZudokuContext-BKXGJTmu.js.map +0 -1
- package/lib/hook-sn0zMTkE.js.map +0 -1
- package/lib/index-AjWCJNGC.js +0 -5690
- package/lib/index-AjWCJNGC.js.map +0 -1
- package/lib/index-CRo94sKK.js +0 -1783
- package/lib/index-CRo94sKK.js.map +0 -1
- package/lib/state-CsuHT8ZO.js +0 -183
- package/lib/urql-core-KJnLL26g.js +0 -1455
- package/lib/urql-core-KJnLL26g.js.map +0 -1
- package/lib/useExposedProps-ChOIUaS4.js +0 -9
- package/src/lib/components/DevPortal.tsx +0 -111
- package/src/lib/components/context/ThemeContext.tsx +0 -8
- package/src/lib/components/context/ThemeProvider.tsx +0 -27
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -51
- package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -75
- package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
- package/src/lib/themeToggle.ts +0 -7
- package/src/lib/util/createWaitForNotify.ts +0 -18
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
import { matchPath,
|
|
2
|
-
import {
|
|
3
|
-
import { type DevPortalPlugin } from "../../core/plugins.js";
|
|
1
|
+
import { matchPath, type RouteObject } from "react-router-dom";
|
|
2
|
+
import { type ZudokuPlugin } from "../../core/plugins.js";
|
|
4
3
|
import { graphql } from "./graphql/index.js";
|
|
5
4
|
|
|
6
5
|
import { useQuery } from "@tanstack/react-query";
|
|
7
6
|
import { CirclePlayIcon, LogInIcon } from "lucide-react";
|
|
8
|
-
import { createClient } from "zudoku/openapi-worker";
|
|
9
7
|
import type { SidebarItem } from "../../../config/validators/SidebarSchema.js";
|
|
10
8
|
import { useAuth } from "../../authentication/hook.js";
|
|
11
|
-
import { ErrorPage } from "../../components/ErrorPage.js";
|
|
12
9
|
import { ColorMap } from "../../components/navigation/SidebarBadge.js";
|
|
13
|
-
import { SyntaxHighlight } from "../../components/SyntaxHighlight.js";
|
|
14
10
|
import { Button } from "../../ui/Button.js";
|
|
15
11
|
import { joinPath } from "../../util/joinPath.js";
|
|
12
|
+
import { GraphQLClient } from "./client/GraphQLClient.js";
|
|
16
13
|
import { OasPluginConfig } from "./interfaces.js";
|
|
17
14
|
import type { PlaygroundContentProps } from "./playground/Playground.js";
|
|
18
15
|
import { PlaygroundDialog } from "./playground/PlaygroundDialog.js";
|
|
19
|
-
import { GetServerQuery } from "./Sidecar.js";
|
|
20
16
|
|
|
21
17
|
const GetCategoriesQuery = graphql(`
|
|
22
18
|
query GetCategories($input: JSON!, $type: SchemaType!) {
|
|
23
19
|
schema(input: $input, type: $type) {
|
|
20
|
+
url
|
|
24
21
|
tags {
|
|
25
22
|
__typename
|
|
26
23
|
name
|
|
@@ -38,20 +35,6 @@ const GetCategoriesQuery = graphql(`
|
|
|
38
35
|
}
|
|
39
36
|
`);
|
|
40
37
|
|
|
41
|
-
const OpenApiErrorPage = () => {
|
|
42
|
-
const error = useRouteError();
|
|
43
|
-
const message =
|
|
44
|
-
error instanceof Error ? (
|
|
45
|
-
<SyntaxHighlight code={error.message} />
|
|
46
|
-
) : (
|
|
47
|
-
"An unknown error occurred"
|
|
48
|
-
);
|
|
49
|
-
|
|
50
|
-
return (
|
|
51
|
-
<ErrorPage category="Error" title="An error occurred" message={message} />
|
|
52
|
-
);
|
|
53
|
-
};
|
|
54
|
-
|
|
55
38
|
type InternalOasPluginConfig = { inMemory?: boolean };
|
|
56
39
|
|
|
57
40
|
const MethodColorMap: Record<string, keyof typeof ColorMap> = {
|
|
@@ -66,17 +49,10 @@ const MethodColorMap: Record<string, keyof typeof ColorMap> = {
|
|
|
66
49
|
|
|
67
50
|
export type OpenApiPluginOptions = OasPluginConfig & InternalOasPluginConfig;
|
|
68
51
|
|
|
69
|
-
export const openApiPlugin = (
|
|
70
|
-
config: OpenApiPluginOptions,
|
|
71
|
-
): DevPortalPlugin => {
|
|
52
|
+
export const openApiPlugin = (config: OpenApiPluginOptions): ZudokuPlugin => {
|
|
72
53
|
const basePath = joinPath(config.navigationId ?? "/reference");
|
|
73
54
|
|
|
74
|
-
const client = config
|
|
75
|
-
? new UrqlClient({
|
|
76
|
-
url: config.server,
|
|
77
|
-
exchanges: [cacheExchange, fetchExchange],
|
|
78
|
-
})
|
|
79
|
-
: createClient({ useMemoryClient: config.inMemory ?? false });
|
|
55
|
+
const client = new GraphQLClient(config);
|
|
80
56
|
|
|
81
57
|
return {
|
|
82
58
|
getHead: () => {
|
|
@@ -104,15 +80,13 @@ export const openApiPlugin = (
|
|
|
104
80
|
...props
|
|
105
81
|
}: Partial<PlaygroundContentProps> & { requireAuth: boolean }) => {
|
|
106
82
|
const auth = useAuth();
|
|
83
|
+
// We don't have the GraphQL context here
|
|
107
84
|
const serverQuery = useQuery({
|
|
108
|
-
queryFn:
|
|
109
|
-
|
|
85
|
+
queryFn: () =>
|
|
86
|
+
client.fetch(GetCategoriesQuery, {
|
|
110
87
|
type: config.type,
|
|
111
88
|
input: config.input,
|
|
112
|
-
})
|
|
113
|
-
|
|
114
|
-
return result.data;
|
|
115
|
-
},
|
|
89
|
+
}),
|
|
116
90
|
enabled: !server,
|
|
117
91
|
queryKey: ["playground-server"],
|
|
118
92
|
});
|
|
@@ -150,38 +124,40 @@ export const openApiPlugin = (
|
|
|
150
124
|
return [];
|
|
151
125
|
}
|
|
152
126
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
if (!data) return [];
|
|
159
|
-
|
|
160
|
-
const categories = data.schema.tags
|
|
161
|
-
.filter((tag) => tag.operations.length > 0)
|
|
162
|
-
.map<SidebarItem>((tag) => ({
|
|
163
|
-
type: "category",
|
|
164
|
-
label: tag.name || "Other endpoints",
|
|
165
|
-
collapsible: true,
|
|
166
|
-
collapsed: false,
|
|
167
|
-
items: tag.operations.map((operation) => ({
|
|
168
|
-
type: "link",
|
|
169
|
-
label: operation.summary ?? operation.path,
|
|
170
|
-
href: `#${operation.slug}`,
|
|
171
|
-
badge: {
|
|
172
|
-
label: operation.method,
|
|
173
|
-
color: MethodColorMap[operation.method.toLowerCase()]!,
|
|
174
|
-
},
|
|
175
|
-
})),
|
|
176
|
-
}));
|
|
127
|
+
try {
|
|
128
|
+
const data = await client.fetch(GetCategoriesQuery, {
|
|
129
|
+
type: config.type,
|
|
130
|
+
input: config.input,
|
|
131
|
+
});
|
|
177
132
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
133
|
+
const categories = data.schema.tags
|
|
134
|
+
.filter((tag) => tag.operations.length > 0)
|
|
135
|
+
.map<SidebarItem>((tag) => ({
|
|
136
|
+
type: "category",
|
|
137
|
+
label: tag.name || "Other endpoints",
|
|
138
|
+
collapsible: true,
|
|
139
|
+
collapsed: false,
|
|
140
|
+
items: tag.operations.map((operation) => ({
|
|
141
|
+
type: "link",
|
|
142
|
+
label: operation.summary ?? operation.path,
|
|
143
|
+
href: `#${operation.slug}`,
|
|
144
|
+
badge: {
|
|
145
|
+
label: operation.method,
|
|
146
|
+
color: MethodColorMap[operation.method.toLowerCase()]!,
|
|
147
|
+
},
|
|
148
|
+
})),
|
|
149
|
+
}));
|
|
150
|
+
|
|
151
|
+
categories.unshift({
|
|
152
|
+
type: "link",
|
|
153
|
+
label: "Overview",
|
|
154
|
+
href: "#description",
|
|
155
|
+
});
|
|
183
156
|
|
|
184
|
-
|
|
157
|
+
return categories;
|
|
158
|
+
} catch {
|
|
159
|
+
return [];
|
|
160
|
+
}
|
|
185
161
|
},
|
|
186
162
|
getRoutes: () =>
|
|
187
163
|
[
|
|
@@ -192,7 +168,6 @@ export const openApiPlugin = (
|
|
|
192
168
|
element: <OpenApiRoute client={client} config={config} />,
|
|
193
169
|
};
|
|
194
170
|
},
|
|
195
|
-
errorElement: <OpenApiErrorPage />,
|
|
196
171
|
children: [
|
|
197
172
|
{
|
|
198
173
|
path: basePath,
|
|
@@ -67,10 +67,13 @@ export const SchemaView = ({
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
if (
|
|
70
|
+
if (
|
|
71
|
+
schema.type === "object" &&
|
|
72
|
+
(!schema.properties || Object.keys(schema.properties).length === 0)
|
|
73
|
+
) {
|
|
71
74
|
return (
|
|
72
75
|
<Card className="p-4 flex gap-2 items-center">
|
|
73
|
-
{"name" in schema && <>{schema.name}</>}
|
|
76
|
+
{"name" in schema && <>{schema.name as string}</>}
|
|
74
77
|
<span className="text-sm text-muted-foreground">object</span>
|
|
75
78
|
{schema.description && (
|
|
76
79
|
<Markdown
|
|
@@ -1,72 +1,58 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
1
|
import { type SchemaObject } from "../../../oas/graphql/index.js";
|
|
3
2
|
|
|
4
|
-
export const isObject = (value: unknown): boolean =>
|
|
5
|
-
typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6
|
-
|
|
7
3
|
export const generateSchemaExample = (
|
|
8
4
|
schema: SchemaObject,
|
|
9
5
|
name?: string,
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10
7
|
): any => {
|
|
11
8
|
// Directly return the example or default if they exist
|
|
12
9
|
if (schema.example !== undefined) {
|
|
13
10
|
return schema.example;
|
|
11
|
+
} else if (schema.examples) {
|
|
12
|
+
return Object.values(schema.examples)[0];
|
|
14
13
|
} else if (schema.default !== undefined) {
|
|
15
14
|
return schema.default;
|
|
16
15
|
}
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// Recursively process objects and arrays
|
|
24
|
-
return processComplexTypes(schema, name);
|
|
25
|
-
};
|
|
17
|
+
if (schema.properties || schema.type === "object") {
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19
|
+
const example: any = {};
|
|
26
20
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
);
|
|
31
|
-
if (schema.type === "object" && properties.length > 0) {
|
|
32
|
-
const obj: { [key: string]: any } = {};
|
|
33
|
-
properties.forEach(([key, propSchema]) => {
|
|
34
|
-
const value = generateSchemaExample(propSchema, key);
|
|
35
|
-
if (value !== undefined) {
|
|
36
|
-
obj[key] = value;
|
|
21
|
+
if (schema.properties) {
|
|
22
|
+
for (const [key, propSchema] of Object.entries(schema.properties)) {
|
|
23
|
+
example[key] = generateSchemaExample(propSchema as SchemaObject, key);
|
|
37
24
|
}
|
|
38
|
-
}
|
|
39
|
-
return
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
25
|
+
}
|
|
26
|
+
return example;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if (schema.type === "array") {
|
|
30
|
+
if (Array.isArray(schema.items)) {
|
|
31
|
+
return schema.items.map((itemSchema) =>
|
|
32
|
+
generateSchemaExample(itemSchema as SchemaObject),
|
|
33
|
+
);
|
|
34
|
+
} else if (schema.items) {
|
|
35
|
+
return [generateSchemaExample(schema.items as SchemaObject)];
|
|
44
36
|
}
|
|
45
37
|
return [];
|
|
46
38
|
}
|
|
47
|
-
// Fallback for missing or undefined types
|
|
48
|
-
return undefined; //getDefaultForType(schema.type);
|
|
49
|
-
}
|
|
50
39
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
return getDefaultForSingleType(type[0]);
|
|
40
|
+
if (schema.enum) {
|
|
41
|
+
return schema.enum[0];
|
|
54
42
|
}
|
|
55
|
-
return getDefaultForSingleType(type);
|
|
56
|
-
}
|
|
57
43
|
|
|
58
|
-
|
|
59
|
-
switch (type) {
|
|
44
|
+
switch (schema.type) {
|
|
60
45
|
case "string":
|
|
61
|
-
return "";
|
|
46
|
+
return name || "string";
|
|
62
47
|
case "number":
|
|
63
48
|
case "integer":
|
|
64
49
|
return 0;
|
|
65
50
|
case "boolean":
|
|
66
|
-
return
|
|
51
|
+
return true;
|
|
67
52
|
case "null":
|
|
68
53
|
return null;
|
|
54
|
+
case undefined:
|
|
69
55
|
default:
|
|
70
|
-
return
|
|
56
|
+
return {};
|
|
71
57
|
}
|
|
72
|
-
}
|
|
58
|
+
};
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
export
|
|
1
|
+
export const initializeWorker = () => {
|
|
2
|
+
const worker = new SharedWorker(
|
|
3
|
+
new URL("./openapi/client/worker.ts", import.meta.url),
|
|
4
|
+
{ type: "module" },
|
|
5
|
+
);
|
|
6
|
+
// eslint-disable-next-line no-console
|
|
7
|
+
worker.onerror = (e) => console.error(e);
|
|
8
|
+
worker.port.start();
|
|
9
|
+
|
|
10
|
+
return worker;
|
|
11
|
+
};
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import { redirect } from "react-router-dom";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
export type Redirect = {
|
|
5
|
-
from: string;
|
|
6
|
-
to: string;
|
|
7
|
-
};
|
|
2
|
+
import { ZudokuRedirect } from "../../../config/validators/validate.js";
|
|
3
|
+
import type { ZudokuPlugin } from "../../core/plugins.js";
|
|
8
4
|
|
|
9
5
|
export const redirectPlugin = (options: {
|
|
10
|
-
redirects:
|
|
11
|
-
}):
|
|
6
|
+
redirects: ZudokuRedirect[];
|
|
7
|
+
}): ZudokuPlugin => {
|
|
12
8
|
return {
|
|
13
9
|
getRoutes: () =>
|
|
14
10
|
options.redirects.map(({ from, to }) => ({
|
|
15
11
|
path: from,
|
|
16
|
-
loader: () => redirect(to),
|
|
12
|
+
loader: () => redirect(to, 301),
|
|
17
13
|
})),
|
|
18
14
|
};
|
|
19
15
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { InkeepWidgetBaseSettings } from "@inkeep/widgets";
|
|
2
2
|
import { lazy } from "react";
|
|
3
3
|
import { ClientOnly } from "../../components/ClientOnly.js";
|
|
4
|
-
import type {
|
|
4
|
+
import type { ZudokuPlugin } from "../../core/plugins.js";
|
|
5
5
|
import { aiChatSettings, baseSettings } from "./inkeep.js";
|
|
6
6
|
|
|
7
7
|
type PickedPluginInkeepBaseSettings =
|
|
@@ -44,7 +44,7 @@ const InkeepSearch = ({
|
|
|
44
44
|
|
|
45
45
|
export const inkeepSearchPlugin = (
|
|
46
46
|
settings: PluginInkeepBaseSettings,
|
|
47
|
-
):
|
|
47
|
+
): ZudokuPlugin => {
|
|
48
48
|
return {
|
|
49
49
|
renderSearch: ({
|
|
50
50
|
isOpen,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { forwardRef } from "react";
|
|
2
|
+
import { Button, type ButtonProps } from "zudoku/ui/Button.js";
|
|
3
|
+
import { Spinner } from "../components/Spinner.js";
|
|
4
|
+
import { cn } from "../util/cn.js";
|
|
5
|
+
|
|
6
|
+
type ActionButtonProps = ButtonProps & { isPending?: boolean };
|
|
7
|
+
|
|
8
|
+
export const ActionButton = forwardRef<HTMLButtonElement, ActionButtonProps>(
|
|
9
|
+
({ isPending, children, className, ...props }: ActionButtonProps, ref) => {
|
|
10
|
+
return (
|
|
11
|
+
<Button
|
|
12
|
+
ref={ref}
|
|
13
|
+
disabled={isPending}
|
|
14
|
+
{...props}
|
|
15
|
+
className={cn("relative", className)}
|
|
16
|
+
>
|
|
17
|
+
{isPending && (
|
|
18
|
+
<div className="absolute inset-0 grid place-items-center">
|
|
19
|
+
<Spinner />
|
|
20
|
+
</div>
|
|
21
|
+
)}
|
|
22
|
+
<div className={cn(isPending && "invisible")}>{children}</div>
|
|
23
|
+
</Button>
|
|
24
|
+
);
|
|
25
|
+
},
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
ActionButton.displayName = "ActionButton";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { useEffect, useRef, useState } from "react";
|
|
2
|
+
|
|
3
|
+
export const useOnScreen = ({
|
|
4
|
+
rootMargin = "0px",
|
|
5
|
+
threshold,
|
|
6
|
+
}: {
|
|
7
|
+
rootMargin?: string;
|
|
8
|
+
threshold?: number;
|
|
9
|
+
} = {}) => {
|
|
10
|
+
const [isVisible, setIsVisible] = useState(false);
|
|
11
|
+
const ref = useRef<HTMLElement | null>(null);
|
|
12
|
+
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
const observer = new IntersectionObserver(
|
|
15
|
+
([entry]) => {
|
|
16
|
+
if (!entry) return;
|
|
17
|
+
setIsVisible(entry.isIntersecting);
|
|
18
|
+
},
|
|
19
|
+
{ rootMargin, threshold },
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
const currentElement = ref.current;
|
|
23
|
+
|
|
24
|
+
if (!currentElement) return;
|
|
25
|
+
|
|
26
|
+
observer.observe(currentElement);
|
|
27
|
+
|
|
28
|
+
return () => observer.unobserve(currentElement);
|
|
29
|
+
}, [rootMargin, threshold]);
|
|
30
|
+
|
|
31
|
+
return [ref, isVisible] as const;
|
|
32
|
+
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DevPortal.js","sourceRoot":"","sources":["../../../src/lib/components/DevPortal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EACL,QAAQ,EACR,IAAI,EAEJ,UAAU,EACV,SAAS,EACT,OAAO,EACP,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EACL,gBAAgB,EAChB,WAAW,GAEZ,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,wCAAwC,CAAC;AAChD,OAAO,EACL,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,cAAc,GAAG,CAAC,EACtB,QAAQ,EACR,GAAG,KAAK,EACgC,EAAE,EAAE;IAC5C,MAAM,UAAU,GAAG,OAAO,CACxB,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WAAW,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeContext.js","sourceRoot":"","sources":["../../../../src/lib/components/context/ThemeContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAElD,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAiC;IACxE,KAAK;IACL,GAAG,EAAE,GAAE,CAAC;CACT,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback, useEffect, useState } from "react";
|
|
3
|
-
import { ThemeContext } from "./ThemeContext.js";
|
|
4
|
-
export const ThemeProvider = (props) => {
|
|
5
|
-
const [dark, setDark] = useState(false);
|
|
6
|
-
// On mount, read the preferred theme from the persistence
|
|
7
|
-
useEffect(() => {
|
|
8
|
-
const theme = localStorage.getItem("theme");
|
|
9
|
-
const prefersDark = window.matchMedia("(prefers-color-scheme: dark)");
|
|
10
|
-
const isDark = theme === "dark" || (!theme && prefersDark.matches);
|
|
11
|
-
setDark(isDark);
|
|
12
|
-
}, [dark]);
|
|
13
|
-
// To toggle between dark and light modes
|
|
14
|
-
const toggle = useCallback(() => {
|
|
15
|
-
const toggled = !dark;
|
|
16
|
-
document.documentElement.classList.toggle("dark", toggled);
|
|
17
|
-
localStorage.setItem("theme", toggled ? "dark" : "light");
|
|
18
|
-
setDark(toggled);
|
|
19
|
-
}, [dark]);
|
|
20
|
-
const value = [dark, toggle];
|
|
21
|
-
return _jsx(ThemeContext.Provider, { value: value, ...props });
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=ThemeProvider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3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CAAC;IACjB,CAAC,CAAC;CACH"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CreateClientFunction } from "./interfaces.js";
|
|
2
|
-
export type WorkerGraphQLMessage = {
|
|
3
|
-
id: string;
|
|
4
|
-
body: string;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Creates an in memory Client that does not use Workers. This allows
|
|
8
|
-
* developers to run the simple standalone version of zudoku using the CDN
|
|
9
|
-
* hosted scripts. Worker's cannot be loaded cross domain so in this case
|
|
10
|
-
* we sacrifice performance for making it work cross domain.
|
|
11
|
-
*/
|
|
12
|
-
export declare const createClient: CreateClientFunction;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-console */
|
|
2
|
-
import { cacheExchange, Client, fetchExchange, mapExchange } from "urql";
|
|
3
|
-
import { createServer } from "./createServer.js";
|
|
4
|
-
const localServer = createServer();
|
|
5
|
-
/**
|
|
6
|
-
* Creates an in memory Client that does not use Workers. This allows
|
|
7
|
-
* developers to run the simple standalone version of zudoku using the CDN
|
|
8
|
-
* hosted scripts. Worker's cannot be loaded cross domain so in this case
|
|
9
|
-
* we sacrifice performance for making it work cross domain.
|
|
10
|
-
*/
|
|
11
|
-
export const createClient = () => {
|
|
12
|
-
return new Client({
|
|
13
|
-
url: "/__z/graphql",
|
|
14
|
-
// Custom fetch to send the GraphQL request to the worker and convert the response back to a `Response` object
|
|
15
|
-
fetch: async (req, init) => {
|
|
16
|
-
if (!init?.body)
|
|
17
|
-
throw new Error("No body");
|
|
18
|
-
const response = await localServer.fetch(new Request("http://localhost/__z/graphql", {
|
|
19
|
-
method: "POST",
|
|
20
|
-
body: init.body,
|
|
21
|
-
headers: {
|
|
22
|
-
"Content-Type": "application/json",
|
|
23
|
-
},
|
|
24
|
-
}));
|
|
25
|
-
return response;
|
|
26
|
-
// port.postMessage({
|
|
27
|
-
// id: e.data.id,
|
|
28
|
-
// body: await response.text(),
|
|
29
|
-
// } satisfies WorkerGraphQLMessage);
|
|
30
|
-
},
|
|
31
|
-
exchanges: [
|
|
32
|
-
cacheExchange,
|
|
33
|
-
mapExchange({
|
|
34
|
-
onError(error, operation) {
|
|
35
|
-
console.error(error);
|
|
36
|
-
console.groupCollapsed("Operation info");
|
|
37
|
-
console.log("body", operation.query.loc?.source.body.trim());
|
|
38
|
-
console.log("variables", operation.variables);
|
|
39
|
-
console.groupEnd();
|
|
40
|
-
},
|
|
41
|
-
}),
|
|
42
|
-
fetchExchange,
|
|
43
|
-
],
|
|
44
|
-
});
|
|
45
|
-
};
|
|
46
|
-
//# sourceMappingURL=createMemoryClient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createMemoryClient.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/client/createMemoryClient.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAKjD,MAAM,WAAW,GAAG,YAAY,EAAE,CAAC;AAEnC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAyB,GAAG,EAAE;IACrD,OAAO,IAAI,MAAM,CAAC;QAChB,GAAG,EAAE,cAAc;QACnB,8GAA8G;QAC9G,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;YACzB,IAAI,CAAC,IAAI,EAAE,IAAI;gBAAE,MAAM,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC;YAC5C,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,KAAK,CACtC,IAAI,OAAO,CAAC,8BAA8B,EAAE;gBAC1C,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;aACF,CAAC,CACH,CAAC;YACF,OAAO,QAAQ,CAAC;YAChB,qBAAqB;YACrB,mBAAmB;YACnB,iCAAiC;YACjC,qCAAqC;QACvC,CAAC;QACD,SAAS,EAAE;YACT,aAAa;YACb,WAAW,CAAC;gBACV,OAAO,CAAC,KAAK,EAAE,SAAS;oBACtB,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;oBACrB,OAAO,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC;oBACzC,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;oBAC7D,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;oBAC9C,OAAO,CAAC,QAAQ,EAAE,CAAC;gBACrB,CAAC;aACF,CAAC;YACF,aAAa;SACd;KACF,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CreateClientFunction } from "./interfaces.js";
|
|
2
|
-
export type WorkerGraphQLMessage = {
|
|
3
|
-
id: string;
|
|
4
|
-
body: string;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* This loads the client from a worker and uses mess port to send requests
|
|
8
|
-
* and responses between the main thread and the worker.
|
|
9
|
-
*/
|
|
10
|
-
export declare const createClient: CreateClientFunction;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-console */
|
|
2
|
-
import { monotonicFactory } from "ulidx";
|
|
3
|
-
import { cacheExchange, Client, fetchExchange, mapExchange } from "urql";
|
|
4
|
-
import { createWaitForNotify } from "../../../util/createWaitForNotify.js";
|
|
5
|
-
import { createClient as createMemoryClient } from "./createMemoryClient.js";
|
|
6
|
-
const ulid = monotonicFactory();
|
|
7
|
-
/**
|
|
8
|
-
* This loads the client from a worker and uses mess port to send requests
|
|
9
|
-
* and responses between the main thread and the worker.
|
|
10
|
-
*/
|
|
11
|
-
export const createClient = ({ useMemoryClient, }) => {
|
|
12
|
-
if (useMemoryClient || typeof SharedWorker === "undefined") {
|
|
13
|
-
return createMemoryClient({ useMemoryClient });
|
|
14
|
-
}
|
|
15
|
-
// NOTE: This URL needs to be inline with the SharedWorker otherwse
|
|
16
|
-
// vite build does not recognize the worker file as a module.
|
|
17
|
-
const worker = new SharedWorker(new URL("./worker.ts", import.meta.url), {
|
|
18
|
-
type: "module",
|
|
19
|
-
});
|
|
20
|
-
worker.onerror = (e) => {
|
|
21
|
-
console.error(e);
|
|
22
|
-
};
|
|
23
|
-
worker.port.start();
|
|
24
|
-
const [waitFor, notify] = createWaitForNotify();
|
|
25
|
-
worker.port.onmessage = (e) => {
|
|
26
|
-
notify(e.data.id, e.data.body);
|
|
27
|
-
};
|
|
28
|
-
return new Client({
|
|
29
|
-
url: "/__z/graphql",
|
|
30
|
-
// Custom fetch to send the GraphQL request to the worker and convert the response back to a `Response` object
|
|
31
|
-
fetch: async (_req, init) => {
|
|
32
|
-
if (!init?.body)
|
|
33
|
-
throw new Error("No body");
|
|
34
|
-
const id = ulid();
|
|
35
|
-
worker.port.postMessage({
|
|
36
|
-
id,
|
|
37
|
-
body: init.body,
|
|
38
|
-
});
|
|
39
|
-
const body = await waitFor(id);
|
|
40
|
-
return new Response(body, {
|
|
41
|
-
headers: {
|
|
42
|
-
"Content-Type": "application/json",
|
|
43
|
-
},
|
|
44
|
-
});
|
|
45
|
-
},
|
|
46
|
-
exchanges: [
|
|
47
|
-
cacheExchange,
|
|
48
|
-
mapExchange({
|
|
49
|
-
onError(error, operation) {
|
|
50
|
-
console.error(error);
|
|
51
|
-
console.groupCollapsed("Operation info");
|
|
52
|
-
console.log("body", operation.query.loc?.source.body.trim());
|
|
53
|
-
console.log("variables", operation.variables);
|
|
54
|
-
console.groupEnd();
|
|
55
|
-
},
|
|
56
|
-
}),
|
|
57
|
-
fetchExchange,
|
|
58
|
-
],
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
//# sourceMappingURL=createWorkerClient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createWorkerClient.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/client/createWorkerClient.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,YAAY,IAAI,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAI7E,MAAM,IAAI,GAAG,gBAAgB,EAAE,CAAC;AAEhC;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAyB,CAAC,EACjD,eAAe,GAGhB,EAAE,EAAE;IACH,IAAI,eAAe,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE,CAAC;QAC3D,OAAO,kBAAkB,CAAC,EAAE,eAAe,EAAE,CAAC,CAAC;IACjD,CAAC;IACD,mEAAmE;IACnE,6DAA6D;IAC7D,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,IAAI,GAAG,CAAC,aAAa,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;QACvE,IAAI,EAAE,QAAQ;KACf,CAAC,CAAC;IAEH,MAAM,CAAC,OAAO,GAAG,CAAC,CAAC,EAAE,EAAE;QACrB,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACnB,CAAC,CAAC;IAEF,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;IAEpB,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,GAAG,mBAAmB,EAAU,CAAC;IAExD,MAAM,CAAC,IAAI,CAAC,SAAS,GAAG,CAAC,CAAqC,EAAE,EAAE;QAChE,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC,CAAC;IAEF,OAAO,IAAI,MAAM,CAAC;QAChB,GAAG,EAAE,cAAc;QACnB,8GAA8G;QAC9G,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;YAC1B,IAAI,CAAC,IAAI,EAAE,IAAI;gBAAE,MAAM,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC;YAE5C,MAAM,EAAE,GAAG,IAAI,EAAE,CAAC;YAClB,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC;gBACtB,EAAE;gBACF,IAAI,EAAE,IAAI,CAAC,IAAc;aACK,CAAC,CAAC;YAElC,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,EAAE,CAAC,CAAC;YAE/B,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE;gBACxB,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;aACF,CAAC,CAAC;QACL,CAAC;QACD,SAAS,EAAE;YACT,aAAa;YACb,WAAW,CAAC;gBACV,OAAO,CAAC,KAAK,EAAE,SAAS;oBACtB,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;oBACrB,OAAO,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC;oBACzC,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;oBAC7D,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;oBAC9C,OAAO,CAAC,QAAQ,EAAE,CAAC;gBACrB,CAAC;aACF,CAAC;YACF,aAAa;SACd;KACF,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/client/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const themeToggle: () => void;
|