zudoku 0.0.0-e614aaa → 0.0.0-e6d1d34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/app/entry.server.d.ts +8 -6
- package/dist/app/entry.server.js +12 -8
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/main.js +2 -0
- package/dist/app/main.js.map +1 -1
- package/dist/app/tailwind.js +14 -0
- package/dist/app/tailwind.js.map +1 -1
- package/dist/cli/build/handler.js +2 -1
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/cli/cmds/dev.d.ts +1 -1
- package/dist/cli/cmds/dev.js.map +1 -1
- package/dist/cli/dev/handler.js +2 -1
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/cli/preview/handler.js +13 -15
- package/dist/cli/preview/handler.js.map +1 -1
- package/dist/config/common.d.ts +0 -1
- package/dist/config/config.d.ts +13 -8
- package/dist/config/loader.d.ts +2 -2
- package/dist/config/loader.js +14 -25
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/common.d.ts +2773 -597
- package/dist/config/validators/common.js +81 -4
- package/dist/config/validators/common.js.map +1 -1
- package/dist/config/validators/validate.d.ts +1013 -257
- package/dist/lib/authentication/authentication.d.ts +1 -0
- package/dist/lib/authentication/hook.d.ts +1 -0
- package/dist/lib/authentication/hook.js +11 -1
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.d.ts +2 -2
- package/dist/lib/authentication/providers/clerk.js +19 -0
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +1 -0
- package/dist/lib/authentication/providers/openid.js +20 -8
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/providers/supabase.d.ts +4 -0
- package/dist/lib/authentication/providers/supabase.js +117 -0
- package/dist/lib/authentication/providers/supabase.js.map +1 -0
- package/dist/lib/authentication/state.d.ts +0 -26
- package/dist/lib/authentication/state.js +1 -16
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/components/AnchorLink.d.ts +2 -2
- package/dist/lib/components/AnchorLink.js +5 -4
- package/dist/lib/components/AnchorLink.js.map +1 -1
- package/dist/lib/components/Bootstrap.d.ts +2 -1
- package/dist/lib/components/Bootstrap.js +3 -2
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/Footer.d.ts +1 -0
- package/dist/lib/components/Footer.js +32 -0
- package/dist/lib/components/Footer.js.map +1 -0
- package/dist/lib/components/Header.js +4 -4
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +1 -1
- package/dist/lib/components/InlineCode.d.ts +2 -1
- package/dist/lib/components/InlineCode.js +2 -9
- package/dist/lib/components/InlineCode.js.map +1 -1
- package/dist/lib/components/Layout.js +8 -29
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Main.d.ts +2 -0
- package/dist/lib/components/Main.js +17 -0
- package/dist/lib/components/Main.js.map +1 -0
- package/dist/lib/components/MobileTopNavigation.js +6 -3
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/Pagination.d.ts +11 -0
- package/dist/lib/components/Pagination.js +10 -0
- package/dist/lib/components/Pagination.js.map +1 -0
- package/dist/lib/components/TopNavigation.d.ts +3 -2
- package/dist/lib/components/TopNavigation.js +26 -13
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Zudoku.js +9 -3
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/cache.d.ts +7 -0
- package/dist/lib/components/cache.js +7 -0
- package/dist/lib/components/cache.js.map +1 -1
- package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
- package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
- package/dist/lib/components/context/ViewportAnchorContext.js +5 -10
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +2 -2
- package/dist/lib/components/context/ZudokuContext.js +13 -7
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/index.d.ts +5 -2
- package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js +6 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
- package/dist/lib/components/navigation/Sidebar.d.ts +3 -1
- package/dist/lib/components/navigation/Sidebar.js +1 -12
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
- package/dist/lib/components/navigation/SidebarCategory.js +10 -6
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +1 -0
- package/dist/lib/components/navigation/SidebarItem.js +17 -11
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
- package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/{plugins/markdown → components/navigation}/Toc.js +5 -7
- package/dist/lib/components/navigation/Toc.js.map +1 -0
- package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
- package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
- package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
- package/dist/lib/core/RouteGuard.d.ts +1 -0
- package/dist/lib/core/RouteGuard.js +10 -3
- package/dist/lib/core/RouteGuard.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +23 -7
- package/dist/lib/core/ZudokuContext.js +12 -5
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +9 -7
- package/dist/lib/errors/ErrorAlert.js +6 -1
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/hooks/useEvent.test.js +1 -1
- package/dist/lib/hooks/useEvent.test.js.map +1 -1
- package/dist/lib/oas/graphql/index.d.ts +17 -4
- package/dist/lib/oas/graphql/index.js +148 -38
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/index.js +2 -0
- package/dist/lib/oas/parser/dereference/index.js.map +1 -1
- package/dist/lib/oas/parser/index.d.ts +5 -3
- package/dist/lib/oas/parser/index.js +0 -22
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.js +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
- package/dist/lib/plugins/api-catalog/index.js +19 -17
- package/dist/lib/plugins/api-catalog/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +3 -9
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.d.ts +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +63 -19
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.d.ts +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +6 -12
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
- package/dist/lib/plugins/openapi/ParamInfos.js +42 -0
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
- package/dist/lib/plugins/openapi/ParameterListItem.js +9 -4
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +3 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
- package/dist/lib/plugins/openapi/SchemaList.js +52 -0
- package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
- package/dist/lib/plugins/openapi/Sidecar.js +38 -9
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.js +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +6 -2
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +6 -5
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
- package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
- package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +9 -5
- package/dist/lib/plugins/openapi/graphql/gql.js +5 -4
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +108 -55
- package/dist/lib/plugins/openapi/graphql/graphql.js +59 -34
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +6 -11
- package/dist/lib/plugins/openapi/index.js +41 -60
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +36 -10
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +2 -2
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +1 -5
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.js +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js +10 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +13 -2
- package/dist/lib/plugins/openapi/playground/Playground.js +81 -27
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +19 -13
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +6 -4
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +4 -3
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +12 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +2 -4
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +18 -13
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +1 -2
- package/dist/lib/plugins/openapi/schema/SchemaView.js +33 -48
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.d.ts +1 -0
- package/dist/lib/plugins/openapi/schema/utils.js +3 -1
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/state.d.ts +25 -0
- package/dist/lib/plugins/openapi/state.js +18 -0
- package/dist/lib/plugins/openapi/state.js.map +1 -0
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js +5 -7
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.js +9 -3
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +23 -10
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.d.ts +1 -0
- package/dist/lib/plugins/search-pagefind/ResultList.js +19 -17
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/get-results.d.ts +8 -1
- package/dist/lib/plugins/search-pagefind/get-results.js +9 -4
- package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -1
- package/dist/lib/ui/Badge.d.ts +1 -1
- package/dist/lib/ui/Button.d.ts +2 -2
- package/dist/lib/ui/Button.js +2 -1
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Callout.d.ts +2 -1
- package/dist/lib/ui/Callout.js +3 -2
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Checkbox.d.ts +2 -8
- package/dist/lib/ui/Checkbox.js +1 -13
- package/dist/lib/ui/Checkbox.js.map +1 -1
- package/dist/lib/ui/Command.d.ts +1 -1
- package/dist/lib/ui/Select.js +1 -1
- package/dist/lib/ui/Select.js.map +1 -1
- package/dist/lib/ui/Stepper.d.ts +0 -1
- package/dist/lib/ui/Stepper.js +1 -1
- package/dist/lib/ui/Stepper.js.map +1 -1
- package/dist/lib/ui/SyntaxHighlight.d.ts +2 -1
- package/dist/lib/ui/SyntaxHighlight.js +21 -15
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
- package/dist/lib/util/MdxComponents.d.ts +3 -2
- package/dist/lib/util/MdxComponents.js +2 -2
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/joinPath.d.ts +3 -0
- package/dist/lib/util/joinPath.js +3 -0
- package/dist/lib/util/joinPath.js.map +1 -1
- package/dist/lib/util/traverse.d.ts +2 -8
- package/dist/lib/util/traverse.js +2 -2
- package/dist/lib/util/traverse.js.map +1 -1
- package/dist/lib/util/types.d.ts +7 -0
- package/dist/lib/util/types.js +2 -0
- package/dist/lib/util/types.js.map +1 -0
- package/dist/lib/util/useOnScreen.d.ts +3 -2
- package/dist/lib/util/useOnScreen.js +3 -3
- package/dist/lib/util/useOnScreen.js.map +1 -1
- package/dist/lib/util/useScrollToAnchor.js +20 -12
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/vite/api/schema-codegen.d.ts +1 -1
- package/dist/vite/api/schema-codegen.js +35 -12
- package/dist/vite/api/schema-codegen.js.map +1 -1
- package/dist/vite/api/schema-codegen.test.js +66 -0
- package/dist/vite/api/schema-codegen.test.js.map +1 -1
- package/dist/vite/build.js +1 -4
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.js +7 -9
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/create-pagefind-index.d.ts +4 -0
- package/dist/vite/create-pagefind-index.js +12 -0
- package/dist/vite/create-pagefind-index.js.map +1 -0
- package/dist/vite/dev-server.js +4 -4
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/plugin-api.js +36 -29
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-config-reload.js +3 -2
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-docs.d.ts +1 -1
- package/dist/vite/plugin-docs.js +18 -1
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/prerender/FileWritingResponse.d.ts +9 -5
- package/dist/vite/prerender/FileWritingResponse.js +5 -5
- package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
- package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
- package/dist/vite/prerender/InMemoryResponse.js +32 -0
- package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
- package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
- package/dist/vite/prerender/PrerenderResponse.js +2 -0
- package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
- package/dist/vite/prerender/prerender.d.ts +1 -0
- package/dist/vite/prerender/prerender.js +32 -8
- package/dist/vite/prerender/prerender.js.map +1 -1
- package/dist/vite/prerender/worker.js +41 -14
- package/dist/vite/prerender/worker.js.map +1 -1
- package/dist/zuplo/with-zuplo.js +4 -0
- package/dist/zuplo/with-zuplo.js.map +1 -1
- package/lib/{AuthenticationPlugin-CiO1FM6Q.js → AuthenticationPlugin-foqdvvkf.js} +3 -3
- package/lib/{AuthenticationPlugin-CiO1FM6Q.js.map → AuthenticationPlugin-foqdvvkf.js.map} +1 -1
- package/lib/Button-Fp19CMUr.js +49 -0
- package/lib/Button-Fp19CMUr.js.map +1 -0
- package/lib/Callout-B2vsR09t.js +229 -0
- package/lib/Callout-B2vsR09t.js.map +1 -0
- package/lib/{Dialog-DIKGQxQc.js → Dialog-sbgekbjb.js} +47 -32
- package/lib/{Dialog-DIKGQxQc.js.map → Dialog-sbgekbjb.js.map} +1 -1
- package/lib/Drawer-kDAfOq_2.js +1133 -0
- package/lib/Drawer-kDAfOq_2.js.map +1 -0
- package/lib/{Markdown-DePfm7oQ.js → Markdown-aF5FdsNi.js} +6268 -4572
- package/lib/Markdown-aF5FdsNi.js.map +1 -0
- package/lib/MdxPage-Vw_dc9Yz.js +85 -0
- package/lib/MdxPage-Vw_dc9Yz.js.map +1 -0
- package/lib/{OasProvider-BSuptFK-.js → OasProvider-C5paEivQ.js} +4 -4
- package/lib/{OasProvider-BSuptFK-.js.map → OasProvider-C5paEivQ.js.map} +1 -1
- package/lib/OperationList-Ds9Izgkn.js +5069 -0
- package/lib/OperationList-Ds9Izgkn.js.map +1 -0
- package/lib/Pagination-SdlocK96.js +48 -0
- package/lib/Pagination-SdlocK96.js.map +1 -0
- package/lib/{index.esm-CQHE3GEU.js → RouteGuard-CqZPoZYJ.js} +192 -139
- package/lib/RouteGuard-CqZPoZYJ.js.map +1 -0
- package/lib/SchemaList-NZbDXAV5.js +148 -0
- package/lib/SchemaList-NZbDXAV5.js.map +1 -0
- package/lib/SchemaView-B3fOPR4V.js +357 -0
- package/lib/SchemaView-B3fOPR4V.js.map +1 -0
- package/lib/{Select-Dqtcn53H.js → Select-DVFRKf1R.js} +9 -9
- package/lib/{Select-Dqtcn53H.js.map → Select-DVFRKf1R.js.map} +1 -1
- package/lib/SlotletProvider-DXvc0aY6.js +338 -0
- package/lib/SlotletProvider-DXvc0aY6.js.map +1 -0
- package/lib/Spinner-CE68iCm0.js +7 -0
- package/lib/Spinner-CE68iCm0.js.map +1 -0
- package/lib/SyntaxHighlight-BEoSoPEo.js +2890 -0
- package/lib/SyntaxHighlight-BEoSoPEo.js.map +1 -0
- package/lib/Toc-YBsgI72s.js +92 -0
- package/lib/Toc-YBsgI72s.js.map +1 -0
- package/lib/{chunk-IR6S3I6Y-D_3UmFIn.js → chunk-HA7DTUK3-C4gP41vD.js} +278 -278
- package/lib/chunk-HA7DTUK3-C4gP41vD.js.map +1 -0
- package/lib/{circular-v7K6lDDh.js → circular-ByJI6Mci.js} +4887 -4419
- package/lib/circular-ByJI6Mci.js.map +1 -0
- package/lib/{createServer-DmusVVsi.js → createServer-mYvGvmc0.js} +4150 -4424
- package/lib/createServer-mYvGvmc0.js.map +1 -0
- package/lib/{hook-CN__aZIt.js → hook-CqpVYDqN.js} +398 -379
- package/lib/hook-CqpVYDqN.js.map +1 -0
- package/lib/index-D48iOQvJ.js +1973 -0
- package/lib/index-D48iOQvJ.js.map +1 -0
- package/lib/index-PGJOZ6R-.js +2227 -0
- package/lib/index-PGJOZ6R-.js.map +1 -0
- package/lib/{mutation-EclmI0is.js → mutation-8LjrN7uz.js} +2 -2
- package/lib/{mutation-EclmI0is.js.map → mutation-8LjrN7uz.js.map} +1 -1
- package/lib/post-processors/traverse.js +2 -2
- package/lib/post-processors/traverse.js.map +1 -1
- package/lib/prism-bash.min-HHIMdNJ_.js.map +1 -1
- package/lib/prism-csharp.min-bQAo2pmx.js.map +1 -1
- package/lib/prism-java.min-BpvsOuIa.js.map +1 -1
- package/lib/prism-javascript.min-CEqHqgbm.js.map +1 -1
- package/lib/prism-json.min-B1GJqK1k.js.map +1 -1
- package/lib/prism-jsstacktrace.min-BfobCF2F.js +2 -0
- package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +1 -0
- package/lib/prism-markdown.min-C0Qn0m-5.js.map +1 -1
- package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
- package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -1
- package/lib/prism-ruby.min-Dx9KO9ds.js.map +1 -1
- package/lib/prism-typescript.min-CD7H2IYQ.js.map +1 -1
- package/lib/ui/ActionButton.js +11 -10
- package/lib/ui/ActionButton.js.map +1 -1
- package/lib/ui/Button.js +13 -12
- package/lib/ui/Button.js.map +1 -1
- package/lib/ui/Callout.js +39 -21
- package/lib/ui/Callout.js.map +1 -1
- package/lib/ui/Checkbox.js +15 -25
- package/lib/ui/Checkbox.js.map +1 -1
- package/lib/ui/Command.js +1 -1
- package/lib/ui/Drawer.js +14 -1129
- package/lib/ui/Drawer.js.map +1 -1
- package/lib/ui/Select.js +1 -1
- package/lib/ui/Select.js.map +1 -1
- package/lib/ui/Stepper.js.map +1 -1
- package/lib/ui/SyntaxHighlight.js +8 -2902
- package/lib/ui/SyntaxHighlight.js.map +1 -1
- package/lib/{useExposedProps-RIvey2Oy.js → useExposedProps-B9qXJedG.js} +2 -2
- package/lib/{useExposedProps-RIvey2Oy.js.map → useExposedProps-B9qXJedG.js.map} +1 -1
- package/lib/useLatest-hmRS46UF.js +11 -0
- package/lib/useLatest-hmRS46UF.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +59 -41
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +341 -337
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +32 -1395
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +94 -98
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +4 -4
- package/lib/zudoku.plugin-custom-pages.js +2 -2
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +5 -7
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +233 -0
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
- package/lib/zudoku.plugins.js.map +1 -1
- package/package.json +32 -24
- package/src/app/entry.server.tsx +23 -13
- package/src/app/main.css +98 -57
- package/src/app/main.tsx +2 -0
- package/src/app/tailwind.ts +14 -0
- package/src/lib/authentication/authentication.ts +2 -0
- package/src/lib/authentication/hook.ts +12 -1
- package/src/lib/authentication/providers/clerk.tsx +22 -2
- package/src/lib/authentication/providers/openid.tsx +23 -10
- package/src/lib/authentication/providers/supabase.tsx +157 -0
- package/src/lib/authentication/state.ts +1 -35
- package/src/lib/components/AnchorLink.tsx +9 -7
- package/src/lib/components/Bootstrap.tsx +13 -6
- package/src/lib/components/Footer.tsx +136 -0
- package/src/lib/components/Header.tsx +11 -7
- package/src/lib/components/InlineCode.tsx +13 -16
- package/src/lib/components/Layout.tsx +22 -68
- package/src/lib/components/Main.tsx +50 -0
- package/src/lib/components/MobileTopNavigation.tsx +27 -18
- package/src/lib/components/Pagination.tsx +50 -0
- package/src/lib/components/TopNavigation.tsx +40 -17
- package/src/lib/components/Zudoku.tsx +12 -3
- package/src/lib/components/cache.ts +8 -0
- package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
- package/src/lib/components/context/ViewportAnchorContext.tsx +6 -15
- package/src/lib/components/context/ZudokuContext.ts +17 -8
- package/src/lib/components/navigation/PoweredByZudoku.tsx +23 -0
- package/src/lib/components/navigation/Sidebar.tsx +30 -44
- package/src/lib/components/navigation/SidebarCategory.tsx +15 -12
- package/src/lib/components/navigation/SidebarItem.tsx +21 -29
- package/src/lib/components/navigation/SidebarWrapper.tsx +42 -23
- package/src/lib/{plugins/markdown → components/navigation}/Toc.tsx +5 -14
- package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
- package/src/lib/core/RouteGuard.tsx +27 -4
- package/src/lib/core/ZudokuContext.ts +35 -15
- package/src/lib/core/plugins.ts +8 -8
- package/src/lib/errors/ErrorAlert.tsx +24 -17
- package/src/lib/hooks/useEvent.test.tsx +1 -1
- package/src/lib/oas/graphql/index.ts +202 -54
- package/src/lib/oas/parser/dereference/index.ts +2 -0
- package/src/lib/oas/parser/index.ts +7 -29
- package/src/lib/plugins/api-catalog/Catalog.tsx +1 -4
- package/src/lib/plugins/api-catalog/index.tsx +40 -35
- package/src/lib/plugins/markdown/MdxPage.tsx +11 -47
- package/src/lib/plugins/openapi/ColorizedParam.tsx +1 -1
- package/src/lib/plugins/openapi/Endpoint.tsx +1 -1
- package/src/lib/plugins/openapi/OperationList.tsx +162 -84
- package/src/lib/plugins/openapi/OperationListItem.tsx +116 -110
- package/src/lib/plugins/openapi/ParamInfos.tsx +87 -0
- package/src/lib/plugins/openapi/ParameterListItem.tsx +35 -23
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +7 -0
- package/src/lib/plugins/openapi/SchemaList.tsx +151 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +47 -11
- package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
- package/src/lib/plugins/openapi/client/GraphQLClient.tsx +1 -1
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +13 -5
- package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
- package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
- package/src/lib/plugins/openapi/graphql/gql.ts +29 -20
- package/src/lib/plugins/openapi/graphql/graphql.ts +172 -86
- package/src/lib/plugins/openapi/index.tsx +55 -87
- package/src/lib/plugins/openapi/interfaces.ts +44 -15
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +30 -32
- package/src/lib/plugins/openapi/playground/Headers.tsx +0 -1
- package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +54 -0
- package/src/lib/plugins/openapi/playground/Playground.tsx +175 -88
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +0 -1
- package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
- package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +24 -4
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +67 -45
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
- package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +36 -0
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +47 -50
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +84 -138
- package/src/lib/plugins/openapi/schema/utils.ts +7 -1
- package/src/lib/plugins/openapi/state.ts +36 -0
- package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +5 -7
- package/src/lib/plugins/openapi/util/getRoutes.tsx +9 -6
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +39 -14
- package/src/lib/plugins/search-pagefind/ResultList.tsx +60 -53
- package/src/lib/plugins/search-pagefind/get-results.tsx +31 -10
- package/src/lib/ui/Button.tsx +4 -2
- package/src/lib/ui/Callout.tsx +28 -10
- package/src/lib/ui/Checkbox.tsx +8 -24
- package/src/lib/ui/Select.tsx +1 -1
- package/src/lib/ui/Stepper.tsx +1 -1
- package/src/lib/ui/SyntaxHighlight.tsx +96 -96
- package/src/lib/util/MdxComponents.tsx +2 -2
- package/src/lib/util/joinPath.tsx +3 -0
- package/src/lib/util/traverse.ts +4 -8
- package/src/lib/util/types.ts +7 -0
- package/src/lib/util/useOnScreen.ts +6 -4
- package/src/lib/util/useScrollToAnchor.ts +22 -12
- package/dist/lib/components/context/PluginSystem.d.ts +0 -1
- package/dist/lib/components/context/PluginSystem.js +0 -2
- package/dist/lib/components/context/PluginSystem.js.map +0 -1
- package/dist/lib/plugins/markdown/Toc.js.map +0 -1
- package/dist/vite/pagefind.d.ts +0 -4
- package/dist/vite/pagefind.js +0 -15
- package/dist/vite/pagefind.js.map +0 -1
- package/lib/Markdown-DePfm7oQ.js.map +0 -1
- package/lib/MdxPage-BN6l6zXL.js +0 -201
- package/lib/MdxPage-BN6l6zXL.js.map +0 -1
- package/lib/OperationList-DOcfDmJP.js +0 -5217
- package/lib/OperationList-DOcfDmJP.js.map +0 -1
- package/lib/SlotletProvider-DdtIOUi6.js +0 -221
- package/lib/SlotletProvider-DdtIOUi6.js.map +0 -1
- package/lib/Spinner-1KrEmx1V.js +0 -51
- package/lib/Spinner-1KrEmx1V.js.map +0 -1
- package/lib/chunk-IR6S3I6Y-D_3UmFIn.js.map +0 -1
- package/lib/circular-v7K6lDDh.js.map +0 -1
- package/lib/createServer-DmusVVsi.js.map +0 -1
- package/lib/hook-CN__aZIt.js.map +0 -1
- package/lib/index-BTbP6Lgf.js +0 -2103
- package/lib/index-BTbP6Lgf.js.map +0 -1
- package/lib/index.esm-CQHE3GEU.js.map +0 -1
- package/lib/joinUrl-10po2Jdj.js +0 -20
- package/lib/joinUrl-10po2Jdj.js.map +0 -1
- package/lib/useScrollToAnchor-RyqO3lj4.js +0 -290
- package/lib/useScrollToAnchor-RyqO3lj4.js.map +0 -1
- package/lib/zudoku.css +0 -1
- package/src/lib/components/context/PluginSystem.ts +0 -0
- package/src/lib/ui/Stepper.css +0 -43
- /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
|
@@ -42,21 +42,29 @@ type OperationLike = {
|
|
|
42
42
|
export const createOperationSlug = (
|
|
43
43
|
slugify: CountableSlugify,
|
|
44
44
|
operation: OperationLike,
|
|
45
|
-
tag?: string,
|
|
46
45
|
) => {
|
|
47
46
|
const summary =
|
|
48
47
|
operation.summary ||
|
|
49
48
|
operation.operationId ||
|
|
50
49
|
`${operation.method}-${operation.path}`;
|
|
51
|
-
const prefix = tag ? `${tag}-` : "";
|
|
52
50
|
|
|
53
|
-
return slugify(
|
|
51
|
+
return slugify(summary);
|
|
54
52
|
};
|
|
55
53
|
|
|
56
|
-
export type
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
>;
|
|
54
|
+
export type SchemaImport = () => Promise<{
|
|
55
|
+
schema: OpenAPIDocument;
|
|
56
|
+
slugs: ReturnType<typeof getAllSlugs>;
|
|
57
|
+
}>;
|
|
58
|
+
|
|
59
|
+
export type SchemaImports = Record<string, SchemaImport>;
|
|
60
|
+
|
|
61
|
+
type Context = {
|
|
62
|
+
schema: OpenAPIDocument;
|
|
63
|
+
operations: GraphQLOperationObject[];
|
|
64
|
+
schemaImports?: SchemaImports;
|
|
65
|
+
tags: ReturnType<typeof getAllTags>;
|
|
66
|
+
slugs: ReturnType<typeof getAllSlugs>;
|
|
67
|
+
};
|
|
60
68
|
|
|
61
69
|
const builder = new SchemaBuilder<{
|
|
62
70
|
DefaultFieldNullability: false;
|
|
@@ -65,14 +73,7 @@ const builder = new SchemaBuilder<{
|
|
|
65
73
|
JSONObject: any;
|
|
66
74
|
JSONSchema: any;
|
|
67
75
|
};
|
|
68
|
-
Context:
|
|
69
|
-
schema: OpenAPIDocument;
|
|
70
|
-
operations: GraphQLOperationObject[];
|
|
71
|
-
tags: TagObject[];
|
|
72
|
-
schemaImports?: SchemaImports;
|
|
73
|
-
currentTag?: string;
|
|
74
|
-
slugify: CountableSlugify;
|
|
75
|
-
};
|
|
76
|
+
Context: Context;
|
|
76
77
|
}>({
|
|
77
78
|
defaultFieldNullability: false,
|
|
78
79
|
});
|
|
@@ -88,7 +89,15 @@ const JSONScalar = builder.addScalarType("JSON", GraphQLJSON);
|
|
|
88
89
|
const JSONObjectScalar = builder.addScalarType("JSONObject", GraphQLJSONObject);
|
|
89
90
|
const JSONSchemaScalar = builder.addScalarType("JSONSchema", GraphQLJSONSchema);
|
|
90
91
|
|
|
91
|
-
|
|
92
|
+
const resolveExtensions = (obj: Record<string, any>) =>
|
|
93
|
+
Object.fromEntries(
|
|
94
|
+
Object.entries(obj).filter(([key]) => key.startsWith("x-")),
|
|
95
|
+
);
|
|
96
|
+
|
|
97
|
+
export const getAllTags = (
|
|
98
|
+
schema: OpenAPIDocument,
|
|
99
|
+
slugs: ReturnType<typeof getAllSlugs>["tags"],
|
|
100
|
+
): Array<Omit<TagObject, "name"> & { name?: string; slug?: string }> => {
|
|
92
101
|
const rootTags = schema.tags ?? [];
|
|
93
102
|
const operationTags = new Set(
|
|
94
103
|
Object.values(schema.paths ?? {})
|
|
@@ -96,16 +105,53 @@ export const getAllTags = (schema: OpenAPIDocument): TagObject[] => {
|
|
|
96
105
|
.flatMap((op) => (op as OperationObject).tags ?? []),
|
|
97
106
|
);
|
|
98
107
|
|
|
108
|
+
const hasUntaggedOperations = Object.values(schema.paths ?? {}).some((path) =>
|
|
109
|
+
Object.values(path ?? {}).some(
|
|
110
|
+
(op) => !(op as OperationObject).tags?.length,
|
|
111
|
+
),
|
|
112
|
+
);
|
|
113
|
+
|
|
99
114
|
return [
|
|
100
115
|
// Keep root tags that are actually used in operations
|
|
101
|
-
...rootTags
|
|
116
|
+
...rootTags
|
|
117
|
+
.filter((tag) => operationTags.has(tag.name))
|
|
118
|
+
.map((tag) => ({ ...tag, slug: slugs[tag.name] })),
|
|
102
119
|
// Add tags found in operations but not defined in root tags
|
|
103
120
|
...[...operationTags]
|
|
104
121
|
.filter((tag) => !rootTags.some((rt) => rt.name === tag))
|
|
105
|
-
.map((tag) => ({ name: tag })),
|
|
122
|
+
.map((tag) => ({ name: tag, slug: slugs[tag] })),
|
|
123
|
+
// Add untagged operations if there are any
|
|
124
|
+
...(hasUntaggedOperations ? [{ name: undefined, slug: undefined }] : []),
|
|
106
125
|
];
|
|
107
126
|
};
|
|
108
127
|
|
|
128
|
+
export const getAllSlugs = (
|
|
129
|
+
ops: GraphQLOperationObject[],
|
|
130
|
+
schemaTags: TagObject[] = [],
|
|
131
|
+
) => {
|
|
132
|
+
const slugify = slugifyWithCounter();
|
|
133
|
+
|
|
134
|
+
const tags = Array.from(
|
|
135
|
+
new Set([
|
|
136
|
+
...ops.flatMap((op) => op.tags ?? []),
|
|
137
|
+
...schemaTags.map((tag) => tag.name),
|
|
138
|
+
]),
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
return {
|
|
142
|
+
operations: Object.fromEntries(
|
|
143
|
+
ops.map((op) => [
|
|
144
|
+
getOperationSlugKey(op),
|
|
145
|
+
createOperationSlug(slugify, op),
|
|
146
|
+
]),
|
|
147
|
+
),
|
|
148
|
+
tags: Object.fromEntries(tags.map((tag) => [tag, slugify(tag)])),
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
const getOperationSlugKey = (op: GraphQLOperationObject) =>
|
|
153
|
+
[op.path, op.method, op.operationId, op.summary].filter(Boolean).join("-");
|
|
154
|
+
|
|
109
155
|
export const getAllOperations = (
|
|
110
156
|
paths?: PathsObject,
|
|
111
157
|
): GraphQLOperationObject[] => {
|
|
@@ -143,14 +189,21 @@ export const getAllOperations = (
|
|
|
143
189
|
return operations;
|
|
144
190
|
};
|
|
145
191
|
|
|
146
|
-
const SchemaTag = builder.objectRef<
|
|
192
|
+
const SchemaTag = builder.objectRef<
|
|
193
|
+
Omit<TagObject, "name"> & { name?: string; slug?: string }
|
|
194
|
+
>("SchemaTag");
|
|
195
|
+
|
|
196
|
+
SchemaTag.implement({
|
|
147
197
|
fields: (t) => ({
|
|
148
|
-
name: t.exposeString("name"),
|
|
198
|
+
name: t.exposeString("name", { nullable: true }),
|
|
199
|
+
slug: t.exposeString("slug", { nullable: true }),
|
|
200
|
+
isUntagged: t.field({ type: "Boolean", resolve: (parent) => !parent.name }),
|
|
149
201
|
description: t.exposeString("description", { nullable: true }),
|
|
150
202
|
operations: t.field({
|
|
151
203
|
type: [OperationItem],
|
|
152
204
|
resolve: (parent, _args, ctx) => {
|
|
153
205
|
const rootTags = ctx.tags.map((tag) => tag.name);
|
|
206
|
+
|
|
154
207
|
return ctx.operations
|
|
155
208
|
.filter((item) =>
|
|
156
209
|
parent.name
|
|
@@ -159,12 +212,30 @@ const SchemaTag = builder.objectRef<TagObject>("SchemaTag").implement({
|
|
|
159
212
|
// If none of the tags are present in the root tags, then show them here
|
|
160
213
|
item.tags?.every((tag) => !rootTags.includes(tag)),
|
|
161
214
|
)
|
|
162
|
-
.map((item) => ({
|
|
163
|
-
...item,
|
|
164
|
-
parentTag: parent.name,
|
|
165
|
-
}));
|
|
215
|
+
.map((item) => ({ ...item, parentTag: parent.name }));
|
|
166
216
|
},
|
|
167
217
|
}),
|
|
218
|
+
prev: t.field({
|
|
219
|
+
type: SchemaTag,
|
|
220
|
+
nullable: true,
|
|
221
|
+
resolve: (parent, _args, ctx) => {
|
|
222
|
+
const index = ctx.tags.findIndex((tag) => tag.slug === parent.slug);
|
|
223
|
+
return ctx.tags[index - 1];
|
|
224
|
+
},
|
|
225
|
+
}),
|
|
226
|
+
next: t.field({
|
|
227
|
+
type: SchemaTag,
|
|
228
|
+
nullable: true,
|
|
229
|
+
resolve: (parent, _args, ctx) => {
|
|
230
|
+
const index = ctx.tags.findIndex((tag) => tag.slug === parent.slug);
|
|
231
|
+
return ctx.tags[index + 1];
|
|
232
|
+
},
|
|
233
|
+
}),
|
|
234
|
+
extensions: t.field({
|
|
235
|
+
type: JSONObjectScalar,
|
|
236
|
+
resolve: (parent) => resolveExtensions(parent),
|
|
237
|
+
nullable: true,
|
|
238
|
+
}),
|
|
168
239
|
}),
|
|
169
240
|
});
|
|
170
241
|
|
|
@@ -191,6 +262,11 @@ const TagItem = builder.objectRef<TagObject>("TagItem").implement({
|
|
|
191
262
|
fields: (t) => ({
|
|
192
263
|
name: t.exposeString("name"),
|
|
193
264
|
description: t.exposeString("description", { nullable: true }),
|
|
265
|
+
extensions: t.field({
|
|
266
|
+
type: JSONObjectScalar,
|
|
267
|
+
resolve: (parent) => resolveExtensions(parent),
|
|
268
|
+
nullable: true,
|
|
269
|
+
}),
|
|
194
270
|
}),
|
|
195
271
|
});
|
|
196
272
|
|
|
@@ -249,6 +325,11 @@ const ParameterItem = builder
|
|
|
249
325
|
nullable: true,
|
|
250
326
|
}),
|
|
251
327
|
schema: t.expose("schema", { type: JSONSchemaScalar, nullable: true }),
|
|
328
|
+
extensions: t.field({
|
|
329
|
+
type: JSONObjectScalar,
|
|
330
|
+
resolve: (parent) => resolveExtensions(parent),
|
|
331
|
+
nullable: true,
|
|
332
|
+
}),
|
|
252
333
|
}),
|
|
253
334
|
});
|
|
254
335
|
|
|
@@ -306,6 +387,11 @@ const ResponseItem = builder
|
|
|
306
387
|
content: t.expose("content", { type: [MediaTypeItem], nullable: true }),
|
|
307
388
|
headers: t.expose("headers", { type: JSONScalar, nullable: true }),
|
|
308
389
|
links: t.expose("links", { type: JSONScalar, nullable: true }),
|
|
390
|
+
extensions: t.field({
|
|
391
|
+
type: JSONObjectScalar,
|
|
392
|
+
resolve: (parent) => resolveExtensions(parent),
|
|
393
|
+
nullable: true,
|
|
394
|
+
}),
|
|
309
395
|
}),
|
|
310
396
|
});
|
|
311
397
|
|
|
@@ -316,18 +402,16 @@ const OperationItem = builder
|
|
|
316
402
|
slug: t.field({
|
|
317
403
|
type: "String",
|
|
318
404
|
resolve: (parent, _, ctx) => {
|
|
319
|
-
const
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
return createOperationSlug(ctx.slugify, slugData, parent.parentTag);
|
|
405
|
+
const slug = ctx.slugs.operations[getOperationSlugKey(parent)];
|
|
406
|
+
|
|
407
|
+
if (!slug) {
|
|
408
|
+
throw new Error(
|
|
409
|
+
`No slug found for operation: ${getOperationSlugKey(parent)}`,
|
|
410
|
+
);
|
|
411
|
+
}
|
|
412
|
+
return slug;
|
|
328
413
|
},
|
|
329
414
|
}),
|
|
330
|
-
|
|
331
415
|
path: t.exposeString("path"),
|
|
332
416
|
method: t.exposeString("method"),
|
|
333
417
|
operationId: t.exposeString("operationId", { nullable: true }),
|
|
@@ -399,9 +483,51 @@ const OperationItem = builder
|
|
|
399
483
|
nullable: true,
|
|
400
484
|
}),
|
|
401
485
|
deprecated: t.exposeBoolean("deprecated", { nullable: true }),
|
|
486
|
+
extensions: t.field({
|
|
487
|
+
type: JSONObjectScalar,
|
|
488
|
+
resolve: (parent) => resolveExtensions(parent),
|
|
489
|
+
nullable: true,
|
|
490
|
+
}),
|
|
491
|
+
}),
|
|
492
|
+
});
|
|
493
|
+
|
|
494
|
+
const SchemaItem = builder
|
|
495
|
+
.objectRef<{
|
|
496
|
+
name: string;
|
|
497
|
+
schema: SchemaObject;
|
|
498
|
+
extensions?: Record<string, any>;
|
|
499
|
+
}>("SchemaItem")
|
|
500
|
+
.implement({
|
|
501
|
+
fields: (t) => ({
|
|
502
|
+
name: t.exposeString("name"),
|
|
503
|
+
schema: t.expose("schema", { type: JSONSchemaScalar }),
|
|
504
|
+
extensions: t.expose("extensions", {
|
|
505
|
+
type: JSONObjectScalar,
|
|
506
|
+
nullable: true,
|
|
507
|
+
}),
|
|
402
508
|
}),
|
|
403
509
|
});
|
|
404
510
|
|
|
511
|
+
const Components = builder.objectRef<{
|
|
512
|
+
schemas?: Record<string, SchemaObject>;
|
|
513
|
+
}>("Components");
|
|
514
|
+
|
|
515
|
+
Components.implement({
|
|
516
|
+
fields: (t) => ({
|
|
517
|
+
schemas: t.field({
|
|
518
|
+
type: [SchemaItem],
|
|
519
|
+
resolve: (parent) => {
|
|
520
|
+
return Object.entries(parent.schemas ?? {}).map(([name, schema]) => ({
|
|
521
|
+
name,
|
|
522
|
+
schema,
|
|
523
|
+
extensions: resolveExtensions(schema),
|
|
524
|
+
}));
|
|
525
|
+
},
|
|
526
|
+
nullable: true,
|
|
527
|
+
}),
|
|
528
|
+
}),
|
|
529
|
+
});
|
|
530
|
+
|
|
405
531
|
const Schema = builder.objectRef<OpenAPIDocument>("Schema").implement({
|
|
406
532
|
fields: (t) => ({
|
|
407
533
|
openapi: t.string({ resolve: (root) => root.openapi }),
|
|
@@ -431,17 +557,30 @@ const Schema = builder.objectRef<OpenAPIDocument>("Schema").implement({
|
|
|
431
557
|
methods: Object.keys(value!) as typeof HttpMethods,
|
|
432
558
|
})),
|
|
433
559
|
}),
|
|
434
|
-
|
|
560
|
+
tag: t.field({
|
|
561
|
+
type: SchemaTag,
|
|
435
562
|
args: {
|
|
563
|
+
slug: t.arg.string(),
|
|
436
564
|
name: t.arg.string(),
|
|
565
|
+
untagged: t.arg.boolean(),
|
|
437
566
|
},
|
|
438
|
-
|
|
439
|
-
resolve: (
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
567
|
+
nullable: true,
|
|
568
|
+
resolve: (_, args, ctx) => {
|
|
569
|
+
if (args.untagged) {
|
|
570
|
+
return ctx.tags.find((tag) => tag.name === undefined);
|
|
571
|
+
}
|
|
572
|
+
if (args.slug) {
|
|
573
|
+
return ctx.tags.find((tag) => tag.slug === args.slug);
|
|
574
|
+
}
|
|
575
|
+
if (args.name) {
|
|
576
|
+
return ctx.tags.find((tag) => tag.name === args.name);
|
|
577
|
+
}
|
|
443
578
|
},
|
|
444
579
|
}),
|
|
580
|
+
tags: t.field({
|
|
581
|
+
type: [SchemaTag],
|
|
582
|
+
resolve: (_root, _args, ctx) => ctx.tags,
|
|
583
|
+
}),
|
|
445
584
|
operations: t.field({
|
|
446
585
|
type: [OperationItem],
|
|
447
586
|
args: {
|
|
@@ -451,7 +590,7 @@ const Schema = builder.objectRef<OpenAPIDocument>("Schema").implement({
|
|
|
451
590
|
tag: t.arg.string(),
|
|
452
591
|
untagged: t.arg.boolean(),
|
|
453
592
|
},
|
|
454
|
-
resolve: (
|
|
593
|
+
resolve: (_parent, args, ctx) =>
|
|
455
594
|
ctx.operations.filter((op) => {
|
|
456
595
|
return (
|
|
457
596
|
(!args.operationId || op.operationId === args.operationId) &&
|
|
@@ -462,6 +601,16 @@ const Schema = builder.objectRef<OpenAPIDocument>("Schema").implement({
|
|
|
462
601
|
);
|
|
463
602
|
}),
|
|
464
603
|
}),
|
|
604
|
+
components: t.field({
|
|
605
|
+
type: Components,
|
|
606
|
+
resolve: (root) => root.components,
|
|
607
|
+
nullable: true,
|
|
608
|
+
}),
|
|
609
|
+
extensions: t.field({
|
|
610
|
+
type: JSONObjectScalar,
|
|
611
|
+
resolve: (root) => resolveExtensions(root),
|
|
612
|
+
nullable: true,
|
|
613
|
+
}),
|
|
465
614
|
}),
|
|
466
615
|
});
|
|
467
616
|
|
|
@@ -477,27 +626,26 @@ builder.queryType({
|
|
|
477
626
|
type: t.arg({ type: SchemaSource, required: true }),
|
|
478
627
|
input: t.arg({ type: JSONScalar, required: true }),
|
|
479
628
|
},
|
|
480
|
-
resolve: async (
|
|
481
|
-
let schema: OpenAPIDocument;
|
|
482
|
-
|
|
629
|
+
resolve: async (_parent, args, ctx) => {
|
|
483
630
|
if (args.type === "file" && typeof args.input === "string") {
|
|
484
631
|
const loadSchema = ctx.schemaImports?.[args.input];
|
|
485
632
|
|
|
486
633
|
if (!loadSchema) {
|
|
487
634
|
throw new Error(`No schema loader found for path: ${args.input}`);
|
|
488
635
|
}
|
|
489
|
-
const
|
|
490
|
-
schema =
|
|
636
|
+
const { schema, slugs } = await loadSchema();
|
|
637
|
+
ctx.schema = schema;
|
|
638
|
+
ctx.operations = getAllOperations(schema.paths);
|
|
639
|
+
ctx.slugs = slugs;
|
|
640
|
+
ctx.tags = getAllTags(schema, ctx.slugs.tags);
|
|
491
641
|
} else {
|
|
492
|
-
schema = await validate(args.input as string);
|
|
642
|
+
ctx.schema = await validate(args.input as string);
|
|
643
|
+
ctx.operations = getAllOperations(ctx.schema.paths);
|
|
644
|
+
ctx.slugs = getAllSlugs(ctx.operations);
|
|
645
|
+
ctx.tags = getAllTags(ctx.schema, ctx.slugs.tags);
|
|
493
646
|
}
|
|
494
647
|
|
|
495
|
-
ctx.schema
|
|
496
|
-
ctx.operations = getAllOperations(schema.paths);
|
|
497
|
-
ctx.slugify = slugifyWithCounter();
|
|
498
|
-
ctx.tags = getAllTags(schema);
|
|
499
|
-
|
|
500
|
-
return schema;
|
|
648
|
+
return ctx.schema;
|
|
501
649
|
},
|
|
502
650
|
}),
|
|
503
651
|
}),
|
|
@@ -507,4 +655,4 @@ export const schema = builder.toSchema();
|
|
|
507
655
|
|
|
508
656
|
export const createGraphQLServer = (
|
|
509
657
|
options?: Omit<YogaServerOptions<any, any>, "schema">,
|
|
510
|
-
) => createYoga({ schema, ...options });
|
|
658
|
+
) => createYoga({ schema, batching: true, ...options });
|
|
@@ -38,6 +38,8 @@ export const dereference = async (
|
|
|
38
38
|
}
|
|
39
39
|
} else {
|
|
40
40
|
if ("$ref" in current && typeof current.$ref === "string") {
|
|
41
|
+
// Store the ref path before resolving
|
|
42
|
+
current.__$ref = current.$ref;
|
|
41
43
|
for (const resolver of resolvers) {
|
|
42
44
|
const resolved = await resolver(current.$ref);
|
|
43
45
|
if (resolved) return await resolve(resolved, path);
|
|
@@ -3,11 +3,15 @@ import { OpenAPIV3, type OpenAPIV3_1 } from "openapi-types";
|
|
|
3
3
|
import { dereference, type JSONSchema } from "./dereference/index.js";
|
|
4
4
|
import { upgradeSchema } from "./upgrade/index.js";
|
|
5
5
|
|
|
6
|
-
type
|
|
7
|
-
|
|
6
|
+
// Must be an interface (not a type) to allow merging with OpenAPI types with index signatures
|
|
7
|
+
interface WithRef {
|
|
8
|
+
__$ref?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
type DeepOmitReference<T> = T extends OpenAPIV3_1.ReferenceObject
|
|
8
12
|
? never
|
|
9
13
|
: T extends object
|
|
10
|
-
? { [K in keyof T]: DeepOmitReference<T[K]> }
|
|
14
|
+
? { [K in keyof T]: DeepOmitReference<T[K]> } & WithRef
|
|
11
15
|
: T;
|
|
12
16
|
|
|
13
17
|
export type OpenAPIDocument = DeepOmitReference<OpenAPIV3_1.Document>;
|
|
@@ -24,25 +28,6 @@ export type ServerObject = DeepOmitReference<OpenAPIV3_1.ServerObject>;
|
|
|
24
28
|
|
|
25
29
|
export const HttpMethods = Object.values(OpenAPIV3.HttpMethods);
|
|
26
30
|
|
|
27
|
-
// class ValidationError extends Error {
|
|
28
|
-
// constructor(public errors: OutputUnit[]) {
|
|
29
|
-
// super("Validation error");
|
|
30
|
-
// }
|
|
31
|
-
// }
|
|
32
|
-
|
|
33
|
-
// const getValidator = async (openApiVersion: string) => {
|
|
34
|
-
// if (openApiVersion.startsWith("3.0")) {
|
|
35
|
-
// const schema = (await import("./schemas/v3.0.json")) as any;
|
|
36
|
-
// return new Validator(schema, "4");
|
|
37
|
-
// }
|
|
38
|
-
// if (openApiVersion.startsWith("3.1")) {
|
|
39
|
-
// const schema = (await import("./schemas/v3.1.json")) as any;
|
|
40
|
-
// return new Validator(schema as any, "2020-12");
|
|
41
|
-
// }
|
|
42
|
-
|
|
43
|
-
// throw new Error(`Unsupported OpenAPI version: ${openApiVersion}`);
|
|
44
|
-
// };
|
|
45
|
-
|
|
46
31
|
const parseSchemaInput = async (
|
|
47
32
|
schemaInput: unknown,
|
|
48
33
|
): Promise<JSONSchema & { openapi?: string }> => {
|
|
@@ -110,13 +95,6 @@ export const validate = async (schemaInput: unknown) => {
|
|
|
110
95
|
throw new GraphQLError("OpenAPI version is not defined");
|
|
111
96
|
}
|
|
112
97
|
|
|
113
|
-
// const validator = await getValidator(schema.openapi);
|
|
114
|
-
// const result = validator.validate(schema);
|
|
115
|
-
//
|
|
116
|
-
// if (!result.valid) {
|
|
117
|
-
// throw new ValidationError(result.errors);
|
|
118
|
-
// }
|
|
119
|
-
|
|
120
98
|
const dereferenced = await dereference(schema);
|
|
121
99
|
|
|
122
100
|
return upgradeSchema(dereferenced);
|
|
@@ -29,10 +29,7 @@ export const Catalog = ({
|
|
|
29
29
|
const dataSet = activeCategory ? { "data-pagefind-ignore": "all" } : {};
|
|
30
30
|
|
|
31
31
|
return (
|
|
32
|
-
<section
|
|
33
|
-
className="pt-[--padding-content-top] pb-[--padding-content-bottom]"
|
|
34
|
-
{...dataSet}
|
|
35
|
-
>
|
|
32
|
+
<section className="pt-[--padding-content-top]" {...dataSet}>
|
|
36
33
|
<Helmet>
|
|
37
34
|
<title>
|
|
38
35
|
{categoryLabel ? `${categoryLabel} - ` : ""}
|
|
@@ -51,9 +51,22 @@ export const apiCatalogPlugin = ({
|
|
|
51
51
|
items: ApiCatalogItem[];
|
|
52
52
|
filterCatalogItems?: filterCatalogItems;
|
|
53
53
|
}): ZudokuPlugin => {
|
|
54
|
+
const paths = Object.fromEntries(
|
|
55
|
+
categories.flatMap((category) =>
|
|
56
|
+
[undefined, ...category.tags].map((tag) => [
|
|
57
|
+
joinUrl(navigationId, tag ? getKey(category.label, tag) : undefined),
|
|
58
|
+
tag,
|
|
59
|
+
]),
|
|
60
|
+
),
|
|
61
|
+
);
|
|
62
|
+
|
|
54
63
|
return {
|
|
55
|
-
getSidebar: async
|
|
56
|
-
|
|
64
|
+
getSidebar: async (currentPath) => {
|
|
65
|
+
const matches = Object.keys(paths).some((path) =>
|
|
66
|
+
matchPath(path, currentPath),
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
if (!matches) {
|
|
57
70
|
return [];
|
|
58
71
|
}
|
|
59
72
|
|
|
@@ -61,22 +74,19 @@ export const apiCatalogPlugin = ({
|
|
|
61
74
|
type: "category" as const,
|
|
62
75
|
label: category.label,
|
|
63
76
|
collapsible: false,
|
|
64
|
-
items: category.tags.map((tag) => {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
label:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
},
|
|
78
|
-
};
|
|
79
|
-
}),
|
|
77
|
+
items: category.tags.map((tag) => ({
|
|
78
|
+
type: "doc" as const,
|
|
79
|
+
id: joinUrl(navigationId, getKey(category.label, tag)),
|
|
80
|
+
label: tag,
|
|
81
|
+
badge: {
|
|
82
|
+
label: String(
|
|
83
|
+
items.filter((api) =>
|
|
84
|
+
api.categories.find((c) => c.tags.includes(tag)),
|
|
85
|
+
).length,
|
|
86
|
+
),
|
|
87
|
+
color: "outline" as const,
|
|
88
|
+
},
|
|
89
|
+
})),
|
|
80
90
|
}));
|
|
81
91
|
|
|
82
92
|
sidebar.unshift({
|
|
@@ -89,22 +99,17 @@ export const apiCatalogPlugin = ({
|
|
|
89
99
|
return sidebar;
|
|
90
100
|
},
|
|
91
101
|
getRoutes: () =>
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
categories={categories}
|
|
105
|
-
/>
|
|
106
|
-
),
|
|
107
|
-
})),
|
|
108
|
-
),
|
|
102
|
+
Object.entries(paths).map(([path, tag]) => ({
|
|
103
|
+
path,
|
|
104
|
+
element: (
|
|
105
|
+
<Catalog
|
|
106
|
+
label={label}
|
|
107
|
+
categoryLabel={tag}
|
|
108
|
+
items={items}
|
|
109
|
+
filterCatalogItems={filterCatalogItems}
|
|
110
|
+
categories={categories}
|
|
111
|
+
/>
|
|
112
|
+
),
|
|
113
|
+
})),
|
|
109
114
|
};
|
|
110
115
|
};
|
|
@@ -2,18 +2,18 @@ import { useMDXComponents } from "@mdx-js/react";
|
|
|
2
2
|
import slugify from "@sindresorhus/slugify";
|
|
3
3
|
import { Helmet } from "@zudoku/react-helmet-async";
|
|
4
4
|
import { type PropsWithChildren, useEffect } from "react";
|
|
5
|
-
import { Link, useHref } from "react-router";
|
|
6
5
|
import { CategoryHeading } from "../../components/CategoryHeading.js";
|
|
7
6
|
import { Heading } from "../../components/Heading.js";
|
|
8
7
|
import { ProseClasses } from "../../components/Markdown.js";
|
|
8
|
+
import { Pagination } from "../../components/Pagination.js";
|
|
9
|
+
import { Toc } from "../../components/navigation/Toc.js";
|
|
9
10
|
import {
|
|
10
11
|
useCurrentItem,
|
|
11
12
|
usePrevNext,
|
|
12
13
|
} from "../../components/navigation/utils.js";
|
|
13
14
|
import type { MdxComponentsType } from "../../util/MdxComponents.js";
|
|
14
15
|
import { cn } from "../../util/cn.js";
|
|
15
|
-
import {
|
|
16
|
-
import { MarkdownPluginDefaultOptions, MDXImport } from "./index.js";
|
|
16
|
+
import { type MarkdownPluginDefaultOptions, type MDXImport } from "./index.js";
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
19
19
|
interface Window {
|
|
@@ -51,12 +51,6 @@ export const MdxPage = ({
|
|
|
51
51
|
}
|
|
52
52
|
>) => {
|
|
53
53
|
const categoryTitle = useCurrentItem()?.categoryLabel;
|
|
54
|
-
let canonicalUrl = null;
|
|
55
|
-
const path = useHref("");
|
|
56
|
-
if (typeof window !== "undefined") {
|
|
57
|
-
const domain = window.location.origin;
|
|
58
|
-
canonicalUrl = `${domain}${path}`;
|
|
59
|
-
}
|
|
60
54
|
|
|
61
55
|
const title = frontmatter.title;
|
|
62
56
|
const category = frontmatter.category ?? categoryTitle;
|
|
@@ -91,19 +85,18 @@ export const MdxPage = ({
|
|
|
91
85
|
|
|
92
86
|
return (
|
|
93
87
|
<div
|
|
94
|
-
className="
|
|
88
|
+
className="grid grid-cols-1 xl:grid-cols-[--sidecar-grid-cols] gap-8 justify-between"
|
|
95
89
|
data-pagefind-filter="section:markdown"
|
|
96
90
|
data-pagefind-meta="section:markdown"
|
|
97
91
|
>
|
|
98
92
|
<Helmet>
|
|
99
93
|
<title>{pageTitle}</title>
|
|
100
94
|
{excerpt && <meta name="description" content={excerpt} />}
|
|
101
|
-
{canonicalUrl && <link rel="canonical" href={canonicalUrl} />}
|
|
102
95
|
</Helmet>
|
|
103
96
|
<div
|
|
104
97
|
className={cn(
|
|
105
98
|
ProseClasses,
|
|
106
|
-
"max-w-full xl:w-full xl:max-w-3xl flex-1 flex-shrink pt-[--padding-content-top]
|
|
99
|
+
"max-w-full xl:w-full xl:max-w-3xl flex-1 flex-shrink pt-[--padding-content-top]",
|
|
107
100
|
)}
|
|
108
101
|
>
|
|
109
102
|
{(category || title) && (
|
|
@@ -121,41 +114,12 @@ export const MdxPage = ({
|
|
|
121
114
|
/>
|
|
122
115
|
{!hidePager && (
|
|
123
116
|
<>
|
|
124
|
-
<hr />
|
|
125
|
-
<
|
|
126
|
-
{prev ?
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
title={prev.label}
|
|
131
|
-
>
|
|
132
|
-
<div className="text-sm text-muted-foreground">
|
|
133
|
-
← Previous page
|
|
134
|
-
</div>
|
|
135
|
-
<div className="text-lg text-primary truncate">
|
|
136
|
-
{prev.label}
|
|
137
|
-
</div>
|
|
138
|
-
</Link>
|
|
139
|
-
) : (
|
|
140
|
-
<div className="flex-1" />
|
|
141
|
-
)}
|
|
142
|
-
{next ? (
|
|
143
|
-
<Link
|
|
144
|
-
to={next.id}
|
|
145
|
-
className="flex flex-col items-stretch gap-2 flex-1 min-w-max border rounded px-6 py-4 text-end hover:border-primary/85 transition shadow-sm hover:shadow-md"
|
|
146
|
-
title={next.label}
|
|
147
|
-
>
|
|
148
|
-
<div className="text-sm text-muted-foreground">
|
|
149
|
-
Next page →
|
|
150
|
-
</div>
|
|
151
|
-
<div className="text-lg text-primary truncate">
|
|
152
|
-
{next.label}
|
|
153
|
-
</div>
|
|
154
|
-
</Link>
|
|
155
|
-
) : (
|
|
156
|
-
<div className="flex-1" />
|
|
157
|
-
)}
|
|
158
|
-
</div>
|
|
117
|
+
<hr className="my-10" />
|
|
118
|
+
<Pagination
|
|
119
|
+
prev={prev ? { to: prev.id, label: prev.label } : undefined}
|
|
120
|
+
next={next ? { to: next.id, label: next.label } : undefined}
|
|
121
|
+
className="mb-4"
|
|
122
|
+
/>
|
|
159
123
|
</>
|
|
160
124
|
)}
|
|
161
125
|
</div>
|