From 54bef9f63be279d351e57b735d24e32de23adf5c Mon Sep 17 00:00:00 2001 From: Andrew Jiang Date: Mon, 7 Oct 2024 19:20:06 -0400 Subject: [PATCH] code split --- .../src/jsonld/components/Breadcrumb.tsx | 1 + packages/commons/search-utils/package.json | 3 +- .../commons/search-utils/src/SearchConfig.ts | 29 ++--- packages/ui/app/package.json | 2 +- packages/ui/app/src/atoms/auth.ts | 2 +- packages/ui/app/src/atoms/types.ts | 2 +- .../ui/app/src/components/LinkPreload.tsx | 22 ++++ packages/ui/app/src/docs/DocsPage.tsx | 3 + .../components/launchdarkly/LaunchDarkly.tsx | 48 +++++--- .../src/services/useApiKeyInjectionConfig.ts | 2 +- packages/ui/app/tsconfig.json | 3 + packages/ui/docs-bundle/next.config.mjs | 3 +- packages/ui/docs-bundle/package.json | 3 +- packages/ui/docs-bundle/src/middleware.ts | 2 +- .../api/fern-docs/auth/api-key-injection.ts | 2 +- .../src/pages/api/fern-docs/auth/callback.ts | 2 +- .../fern-docs/integrations/launchdarkly.ts | 106 ++++++++++++++---- .../pages/api/fern-docs/oauth/ory/callback.ts | 2 +- .../src/pages/api/fern-docs/search.ts | 5 +- .../ui/docs-bundle/src/server/DocsLoader.ts | 2 +- .../ui/docs-bundle/src/server/auth/FernJWT.ts | 2 +- .../src/server/auth/OAuth2Client.ts | 6 +- .../src/server/auth/checkViewerAllowed.ts | 2 +- .../server/auth/getApiKeyInjectionConfig.ts | 2 +- .../ui/docs-bundle/src/server/authProps.ts | 2 +- .../src/server/getDocsPageProps.ts | 2 +- .../src/server/withBasicTokenPublic.ts | 2 +- .../src/server/withInitialProps.ts | 15 --- packages/ui/docs-bundle/tsconfig.json | 5 +- packages/ui/fern-docs-auth/.depcheckrc.json | 1 + packages/ui/fern-docs-auth/.prettierrc.cjs | 1 + packages/ui/fern-docs-auth/.stylelintrc.json | 1 + packages/ui/fern-docs-auth/package.json | 50 +++++++++ .../src/auth => fern-docs-auth/src}/index.ts | 0 .../auth => fern-docs-auth/src}/injection.ts | 0 .../src/auth => fern-docs-auth/src}/types.ts | 0 packages/ui/fern-docs-auth/tsconfig.json | 8 ++ packages/ui/fern-docs-auth/vitest.config.ts | 7 ++ packages/ui/fern-docs-edge/package.json | 7 +- .../fern-docs-edge/src/getAuthEdgeConfig.ts | 4 +- .../src/getCustomerAnalytics.ts | 11 +- .../ui/fern-docs-edge/src/getFeatureFlags.ts | 3 +- .../fern-docs-edge/src/getInkeepSettings.ts | 8 ++ .../src/getLaunchDarklySettings.ts | 15 +++ packages/ui/fern-docs-edge/src/index.ts | 2 + packages/ui/fern-docs-edge/tsconfig.json | 6 + pnpm-lock.yaml | 52 ++++++++- 47 files changed, 351 insertions(+), 107 deletions(-) create mode 100644 packages/ui/app/src/components/LinkPreload.tsx create mode 100644 packages/ui/fern-docs-auth/.depcheckrc.json create mode 100644 packages/ui/fern-docs-auth/.prettierrc.cjs create mode 100644 packages/ui/fern-docs-auth/.stylelintrc.json create mode 100644 packages/ui/fern-docs-auth/package.json rename packages/ui/{app/src/auth => fern-docs-auth/src}/index.ts (100%) rename packages/ui/{app/src/auth => fern-docs-auth/src}/injection.ts (100%) rename packages/ui/{app/src/auth => fern-docs-auth/src}/types.ts (100%) create mode 100644 packages/ui/fern-docs-auth/tsconfig.json create mode 100644 packages/ui/fern-docs-auth/vitest.config.ts create mode 100644 packages/ui/fern-docs-edge/src/getInkeepSettings.ts create mode 100644 packages/ui/fern-docs-edge/src/getLaunchDarklySettings.ts diff --git a/packages/commons/next-seo/src/jsonld/components/Breadcrumb.tsx b/packages/commons/next-seo/src/jsonld/components/Breadcrumb.tsx index 5eab60bfc1..3eb680a5ff 100644 --- a/packages/commons/next-seo/src/jsonld/components/Breadcrumb.tsx +++ b/packages/commons/next-seo/src/jsonld/components/Breadcrumb.tsx @@ -7,6 +7,7 @@ export const Breadcrumb = memo( return (