From d7a4fe633478960283728fbb215506038f65590f Mon Sep 17 00:00:00 2001 From: Rohin Bhargava Date: Tue, 8 Oct 2024 19:59:46 -0700 Subject: [PATCH] deploy fdr dev (#1618) --- .github/workflows/publish-fdr-sdk.yml | 2 + packages/commons/core-utils/package.json | 2 +- packages/commons/loadable/package.json | 2 +- packages/commons/loadable/src/utils.ts | 2 +- packages/commons/loadable/src/visitor.ts | 2 +- .../commons/react/react-commons/package.json | 2 +- .../src/useIsDirectlyHovering.ts | 2 +- .../react/react-commons/src/useIsHovering.ts | 2 +- .../react-commons/src/useKeyboardCommand.ts | 2 +- .../react-commons/src/useKeyboardPress.ts | 2 +- .../react-commons/src/useLocalTextState.ts | 2 +- packages/commons/search-utils/package.json | 2 +- .../commons/search-utils/src/SearchConfig.ts | 2 +- packages/fdr-sdk/package.json | 2 +- .../fdr-sdk/src/__test__/fixtures.test.ts | 2 +- .../src/api-definition/migrators/v1ToV2.ts | 2 +- .../snippets/SnippetHttpRequest.ts | 2 +- .../src/api-definition/snippets/curl.ts | 4 +- .../fdr-sdk/src/api-definition/sort-keys.ts | 4 +- .../fdr-sdk/src/api-definition/transformer.ts | 4 +- .../src/api-definition/typeid-visitor.ts | 2 +- packages/fdr-sdk/src/api-definition/unwrap.ts | 4 +- packages/fdr-sdk/src/api-definition/url.ts | 2 +- .../converters/db/convertAPIDefinitionToDb.ts | 4 +- .../db/convertDocsDefinitionToDb.ts | 2 +- .../examples/generateEndpointExampleCall.ts | 2 +- .../db/examples/generateHttpBodyExample.ts | 2 +- .../db/upgrade/migrateDocsDbDefinition.ts | 2 +- .../read/convertDbAPIDefinitionToRead.ts | 2 +- .../read/convertDbDocsConfigToRead.ts | 2 +- .../src/navigation/ApiTypeIdVisitor.ts | 2 +- .../fdr-sdk/src/navigation/NodeCollector.ts | 2 +- .../src/navigation/migrators/v1ToV2.ts | 2 +- .../src/navigation/utils/createBreadcrumbs.ts | 2 +- .../src/navigation/utils/getApiReferenceId.ts | 2 +- .../navigation/versions/latest/getPageId.ts | 2 +- .../ApiReferenceNavigationConverter.ts | 4 +- .../converters/NavigationConfigConverter.ts | 4 +- .../navigation/versions/v1/followRedirect.ts | 2 +- .../src/navigation/versions/v1/getPageId.ts | 2 +- packages/healthchecks/package.json | 2 +- .../src/rules/search-slugs-correct/rule.ts | 2 +- packages/ui/app/package.json | 2 +- .../src/api-reference/ApiPackageContents.tsx | 2 +- .../src/api-reference/ApiReferencePage.tsx | 2 +- .../api-reference/SingleApiPageContent.tsx | 2 +- .../src/api-reference/artifacts/SdkCard.tsx | 2 +- .../endpoints/EndpointContentCodeSnippets.tsx | 2 +- .../endpoints/EndpointContentLeft.tsx | 2 +- .../api-reference/endpoints/EndpointError.tsx | 2 +- .../endpoints/EndpointRequestSection.tsx | 2 +- .../api-reference/endpoints/EndpointUrl.tsx | 2 +- .../examples/HttpRequestExample.ts | 2 +- .../api-reference/examples/code-example.ts | 2 +- .../api-reference/examples/sortKeysByShape.ts | 2 +- .../stringifyHttpRequestExampleToCurl.ts | 2 +- .../examples/useHighlightJsonLines.ts | 2 +- .../subpackages/EndpointDescriptor.tsx | 2 +- .../DiscriminatedUnionVariant.tsx | 2 +- .../InternalTypeDefinition.tsx | 2 +- .../InternalTypeDefinitionError.tsx | 2 +- .../InternalTypeReferenceDefinitions.tsx | 2 +- .../types/type-shorthand/TypeShorthand.tsx | 2 +- .../UndiscriminatedUnionVariant.tsx | 2 +- .../webhook-examples/WebhookExample.tsx | 2 +- .../ui/app/src/changelog/ChangelogPage.tsx | 2 +- packages/ui/app/src/components/FernImage.tsx | 2 +- packages/ui/app/src/components/PageHeader.tsx | 2 +- .../components/PlatformSpecificContent.tsx | 2 +- packages/ui/app/src/docs/DocsMainContent.tsx | 2 +- packages/ui/app/src/docs/NextApp.tsx | 2 +- packages/ui/app/src/hooks/useHref.ts | 2 +- .../ui/app/src/hooks/usePlaygroundSettings.ts | 2 +- .../ui/app/src/hooks/useSidebarTabHref.ts | 2 +- .../src/mdx/components/callout/Callout.tsx | 2 +- .../snippets/EndpointRequestSnippet.tsx | 2 +- .../ui/app/src/mdx/plugins/rehypeFernCode.ts | 2 +- .../ui/app/src/mdx/plugins/rehypeLayout.ts | 2 +- packages/ui/app/src/mdx/plugins/to-estree.ts | 2 +- packages/ui/app/src/mdx/plugins/utils.ts | 2 +- .../PlaygroundAuthorizationForm.tsx | 2 +- .../PlaygroundWebSocketSessionForm.tsx | 2 +- .../code-snippets/builders/common.ts | 2 +- .../playground/code-snippets/builders/curl.ts | 2 +- .../code-snippets/builders/python.ts | 2 +- .../code-snippets/builders/typescript.ts | 2 +- .../endpoint/PlaygroundEndpoint.tsx | 2 +- .../endpoint/PlaygroundEndpointForm.tsx | 2 +- .../PlaygroundEndpointMultipartForm.tsx | 2 +- .../endpoint/PlaygroundEndpointPath.tsx | 2 +- .../PlaygroundEndpointSelectorContent.tsx | 2 +- .../form/PlaygroundDescriminatedUnionForm.tsx | 2 +- .../src/playground/form/PlaygroundMapForm.tsx | 2 +- .../form/PlaygroundTypeReferenceForm.tsx | 2 +- .../src/playground/hooks/usePreloadApiLeaf.ts | 2 +- packages/ui/app/src/playground/types/index.ts | 2 +- .../app/src/playground/utils/auth-headers.ts | 2 +- .../src/playground/utils/default-values.ts | 2 +- .../ui/app/src/playground/utils/endpoints.ts | 2 +- .../app/src/playground/utils/match-typeref.ts | 4 +- packages/ui/app/src/playground/utils/oauth.ts | 2 +- .../ui/app/src/playground/utils/serialize.ts | 2 +- packages/ui/app/src/playground/utils/utils.ts | 2 +- .../app/src/resolver/ApiDefinitionResolver.ts | 2 +- .../app/src/resolver/ApiEndpointResolver.ts | 2 +- .../ui/app/src/resolver/ApiTypeResolver.ts | 2 +- .../ui/app/src/resolver/SchemaWithExample.ts | 2 +- .../src/resolver/resolveApiEndpointPage.ts | 2 +- .../app/src/resolver/resolveChangelogPage.ts | 2 +- .../app/src/resolver/resolveCodeSnippets.ts | 2 +- packages/ui/app/src/resolver/types.ts | 2 +- packages/ui/app/src/resolver/url.ts | 2 +- packages/ui/app/src/search/SearchHit.tsx | 2 +- .../ui/app/src/search/algolia/SearchBox.tsx | 2 +- .../search/algolia/useAlgoliaSearchClient.ts | 2 +- .../src/search/content/EndpointRecordV2.tsx | 2 +- .../src/search/content/EndpointRecordV3.tsx | 2 +- .../src/search/content/EndpointRecordV4.tsx | 2 +- .../app/src/search/content/FieldRecordV1.tsx | 2 +- .../ui/app/src/search/useSearchTrigger.ts | 2 +- packages/ui/app/src/seo/getSeoProp.ts | 2 +- .../sidebar/nodes/SidebarApiPackageChild.tsx | 2 +- .../sidebar/nodes/SidebarNavigationChild.tsx | 2 +- .../app/src/sidebar/nodes/SidebarRootNode.tsx | 2 +- .../themes/stylesheet/getLayoutVariables.ts | 2 +- packages/ui/app/src/type-shorthand/index.tsx | 2 +- packages/ui/app/src/util/endpoint.ts | 2 +- packages/ui/docs-bundle/next.config.mjs | 2 +- packages/ui/docs-bundle/package.json | 2 +- .../src/pages/api/fern-docs/changelog.ts | 2 +- .../src/pages/api/fern-docs/proxy/grpc.ts | 2 +- .../src/pages/api/fern-docs/proxy/rest.ts | 2 +- .../src/pages/api/fern-docs/search/cohere.ts | 2 +- .../src/pages/api/fern-docs/sitemap.xml.ts | 2 +- .../docs-bundle/src/server/buildFormData.ts | 2 +- .../docs-bundle/src/server/createSignedUrl.ts | 2 +- .../docs-bundle/src/server/getHarRequest.ts | 2 +- .../docs-bundle/src/server/provideS3Client.ts | 2 +- .../src/server/withInitialProps.ts | 4 +- .../src/server/withVersionSwitcherInfo.ts | 2 +- .../docs-bundle/src/server/xfernhost/dev.ts | 2 +- .../ui/local-preview-bundle/next.config.mjs | 2 +- packages/ui/local-preview-bundle/package.json | 2 +- .../src/utils/getDocsPageProps.ts | 2 +- pnpm-lock.yaml | 132 ++++++++++++++---- servers/fdr/package.json | 2 +- .../algolia/AlgoliaSearchRecordGenerator.ts | 2 +- .../algolia/AlgoliaSearchRecordGeneratorV2.ts | 2 +- 148 files changed, 264 insertions(+), 180 deletions(-) diff --git a/.github/workflows/publish-fdr-sdk.yml b/.github/workflows/publish-fdr-sdk.yml index 7a54032da6..c82952acb9 100644 --- a/.github/workflows/publish-fdr-sdk.yml +++ b/.github/workflows/publish-fdr-sdk.yml @@ -62,8 +62,10 @@ jobs: version_replace="s/0.0.0/${git_version}/" cat package.json.tmp| sed "${version_replace}" > package.json echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc + rm -rf package.json.tmp npm publish --access public cd $working_dir/packages/fdr-sdk + mv package.json package.json.tmp workspace_replace="s/workspace:*/${git_version}/" cat package.json.tmp| sed "${version_replace}" > package.json cat package.json | sed "${workspace_replace}" > package.json diff --git a/packages/commons/core-utils/package.json b/packages/commons/core-utils/package.json index dcf8c34605..8d08620d50 100644 --- a/packages/commons/core-utils/package.json +++ b/packages/commons/core-utils/package.json @@ -1,5 +1,5 @@ { - "name": "@fern-ui/core-utils", + "name": "@fern-api/ui-core-utils", "version": "0.0.0", "repository": { "type": "git", diff --git a/packages/commons/loadable/package.json b/packages/commons/loadable/package.json index 7f02c78e14..d6609e1528 100644 --- a/packages/commons/loadable/package.json +++ b/packages/commons/loadable/package.json @@ -30,7 +30,7 @@ "depcheck": "depcheck" }, "dependencies": { - "@fern-ui/core-utils": "workspace:*" + "@fern-api/ui-core-utils": "workspace:*" }, "devDependencies": { "@fern-platform/configs": "workspace:*", diff --git a/packages/commons/loadable/src/utils.ts b/packages/commons/loadable/src/utils.ts index cdd35e4160..50784bc644 100644 --- a/packages/commons/loadable/src/utils.ts +++ b/packages/commons/loadable/src/utils.ts @@ -1,4 +1,4 @@ -import { keys } from "@fern-ui/core-utils"; +import { keys } from "@fern-api/ui-core-utils"; import { failed, isFailed, isLoaded, Loadable, loaded, Loading, loading, NotFailed } from "./Loadable"; import { visitLoadable } from "./visitor"; diff --git a/packages/commons/loadable/src/visitor.ts b/packages/commons/loadable/src/visitor.ts index da8baca921..69fd2154fd 100644 --- a/packages/commons/loadable/src/visitor.ts +++ b/packages/commons/loadable/src/visitor.ts @@ -1,4 +1,4 @@ -import { assertNever } from "@fern-ui/core-utils"; +import { assertNever } from "@fern-api/ui-core-utils"; import { isFailed, isLoaded, isLoading, isNotStartedLoading, Loadable } from "./Loadable"; export function visitLoadable( diff --git a/packages/commons/react/react-commons/package.json b/packages/commons/react/react-commons/package.json index 359644cdae..8ad1f6bb1a 100644 --- a/packages/commons/react/react-commons/package.json +++ b/packages/commons/react/react-commons/package.json @@ -30,7 +30,7 @@ "depcheck": "depcheck" }, "dependencies": { - "@fern-ui/core-utils": "workspace:*", + "@fern-api/ui-core-utils": "workspace:*", "fastdom": "^1.0.12", "immer": "^9.0.15", "lodash-es": "^4.17.21", diff --git a/packages/commons/react/react-commons/src/useIsDirectlyHovering.ts b/packages/commons/react/react-commons/src/useIsDirectlyHovering.ts index 77d529f9d3..82da2b6829 100644 --- a/packages/commons/react/react-commons/src/useIsDirectlyHovering.ts +++ b/packages/commons/react/react-commons/src/useIsDirectlyHovering.ts @@ -1,4 +1,4 @@ -import { assertNever } from "@fern-ui/core-utils"; +import { assertNever } from "@fern-api/ui-core-utils"; import React, { useCallback, useReducer } from "react"; export declare namespace useIsDirectlyHovering { diff --git a/packages/commons/react/react-commons/src/useIsHovering.ts b/packages/commons/react/react-commons/src/useIsHovering.ts index 6524146723..68cd11a562 100644 --- a/packages/commons/react/react-commons/src/useIsHovering.ts +++ b/packages/commons/react/react-commons/src/useIsHovering.ts @@ -1,4 +1,4 @@ -import { assertNever } from "@fern-ui/core-utils"; +import { assertNever } from "@fern-api/ui-core-utils"; import { useCallback, useReducer } from "react"; export declare namespace useIsHovering { diff --git a/packages/commons/react/react-commons/src/useKeyboardCommand.ts b/packages/commons/react/react-commons/src/useKeyboardCommand.ts index 2fcdd0b9bd..49818ffab5 100644 --- a/packages/commons/react/react-commons/src/useKeyboardCommand.ts +++ b/packages/commons/react/react-commons/src/useKeyboardCommand.ts @@ -1,4 +1,4 @@ -import { type Digit, type UppercaseLetter } from "@fern-ui/core-utils"; +import { type Digit, type UppercaseLetter } from "@fern-api/ui-core-utils"; import { useEffect } from "react"; export declare namespace useKeyboardCommand { diff --git a/packages/commons/react/react-commons/src/useKeyboardPress.ts b/packages/commons/react/react-commons/src/useKeyboardPress.ts index f0659640a2..b315b46fd7 100644 --- a/packages/commons/react/react-commons/src/useKeyboardPress.ts +++ b/packages/commons/react/react-commons/src/useKeyboardPress.ts @@ -1,4 +1,4 @@ -import { type Digit, type UppercaseLetter } from "@fern-ui/core-utils"; +import { type Digit, type UppercaseLetter } from "@fern-api/ui-core-utils"; import { useEffect } from "react"; type Arrow = "Up" | "Down" | "Right" | "Left"; diff --git a/packages/commons/react/react-commons/src/useLocalTextState.ts b/packages/commons/react/react-commons/src/useLocalTextState.ts index 92c6a3f188..c3a6c6e173 100644 --- a/packages/commons/react/react-commons/src/useLocalTextState.ts +++ b/packages/commons/react/react-commons/src/useLocalTextState.ts @@ -1,4 +1,4 @@ -import { assertNever } from "@fern-ui/core-utils"; +import { assertNever } from "@fern-api/ui-core-utils"; import produce from "immer"; import { useCallback, useReducer } from "react"; diff --git a/packages/commons/search-utils/package.json b/packages/commons/search-utils/package.json index 4f2e237412..3922164934 100644 --- a/packages/commons/search-utils/package.json +++ b/packages/commons/search-utils/package.json @@ -31,7 +31,7 @@ }, "dependencies": { "@fern-api/fdr-sdk": "workspace:*", - "@fern-ui/core-utils": "workspace:*" + "@fern-api/ui-core-utils": "workspace:*" }, "devDependencies": { "@fern-platform/configs": "workspace:*", diff --git a/packages/commons/search-utils/src/SearchConfig.ts b/packages/commons/search-utils/src/SearchConfig.ts index 095fc3c5bb..1284abe47e 100644 --- a/packages/commons/search-utils/src/SearchConfig.ts +++ b/packages/commons/search-utils/src/SearchConfig.ts @@ -1,6 +1,6 @@ import type { FdrClient } from "@fern-api/fdr-sdk"; import type { Algolia } from "@fern-api/fdr-sdk/client/types"; -import { assertNonNullish } from "@fern-ui/core-utils"; +import { assertNonNullish } from "@fern-api/ui-core-utils"; import type { InkeepAIChatSettings, InkeepModalSettings, diff --git a/packages/fdr-sdk/package.json b/packages/fdr-sdk/package.json index b4fd0364e3..92649b5455 100644 --- a/packages/fdr-sdk/package.json +++ b/packages/fdr-sdk/package.json @@ -31,7 +31,7 @@ } }, "dependencies": { - "@fern-ui/core-utils": "workspace:*", + "@fern-api/ui-core-utils": "workspace:*", "@ungap/structured-clone": "^1.2.0", "dayjs": "^1.11.11", "fast-deep-equal": "^3.1.3", diff --git a/packages/fdr-sdk/src/__test__/fixtures.test.ts b/packages/fdr-sdk/src/__test__/fixtures.test.ts index 161341ec49..6de0118fcb 100644 --- a/packages/fdr-sdk/src/__test__/fixtures.test.ts +++ b/packages/fdr-sdk/src/__test__/fixtures.test.ts @@ -1,4 +1,4 @@ -import isPlainObject from "@fern-ui/core-utils/isPlainObject"; +import isPlainObject from "@fern-api/ui-core-utils/isPlainObject"; import fs from "fs"; import path from "path"; import { FernNavigation } from ".."; diff --git a/packages/fdr-sdk/src/api-definition/migrators/v1ToV2.ts b/packages/fdr-sdk/src/api-definition/migrators/v1ToV2.ts index e2377af410..0476fd7853 100644 --- a/packages/fdr-sdk/src/api-definition/migrators/v1ToV2.ts +++ b/packages/fdr-sdk/src/api-definition/migrators/v1ToV2.ts @@ -1,4 +1,4 @@ -import visitDiscriminatedUnion from "@fern-ui/core-utils/visitDiscriminatedUnion"; +import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; import mapValues from "lodash-es/mapValues"; import { APIV1Read } from "../../client"; import { SupportedLanguage } from "../../client/generated/api/resources/api/resources/v1/resources/read/resources/endpoint/types/SupportedLanguage"; diff --git a/packages/fdr-sdk/src/api-definition/snippets/SnippetHttpRequest.ts b/packages/fdr-sdk/src/api-definition/snippets/SnippetHttpRequest.ts index 5dbaa1917d..40a7256e8f 100644 --- a/packages/fdr-sdk/src/api-definition/snippets/SnippetHttpRequest.ts +++ b/packages/fdr-sdk/src/api-definition/snippets/SnippetHttpRequest.ts @@ -1,4 +1,4 @@ -import visitDiscriminatedUnion from "@fern-ui/core-utils/visitDiscriminatedUnion"; +import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; import compact from "lodash-es/compact"; import { noop } from "ts-essentials"; import urljoin from "url-join"; diff --git a/packages/fdr-sdk/src/api-definition/snippets/curl.ts b/packages/fdr-sdk/src/api-definition/snippets/curl.ts index 5df73407bc..03df9b163a 100644 --- a/packages/fdr-sdk/src/api-definition/snippets/curl.ts +++ b/packages/fdr-sdk/src/api-definition/snippets/curl.ts @@ -1,5 +1,5 @@ -import { unknownToString } from "@fern-ui/core-utils"; -import visitDiscriminatedUnion from "@fern-ui/core-utils/visitDiscriminatedUnion"; +import { unknownToString } from "@fern-api/ui-core-utils"; +import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; import { SnippetHttpRequest } from "./SnippetHttpRequest"; function requiresUrlEncode(str: string): boolean { diff --git a/packages/fdr-sdk/src/api-definition/sort-keys.ts b/packages/fdr-sdk/src/api-definition/sort-keys.ts index b71a0032d7..0a0925bd4c 100644 --- a/packages/fdr-sdk/src/api-definition/sort-keys.ts +++ b/packages/fdr-sdk/src/api-definition/sort-keys.ts @@ -1,5 +1,5 @@ -import isPlainObject from "@fern-ui/core-utils/isPlainObject"; -import visitDiscriminatedUnion from "@fern-ui/core-utils/visitDiscriminatedUnion"; +import isPlainObject from "@fern-api/ui-core-utils/isPlainObject"; +import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; import difference from "lodash-es/difference"; import keyBy from "lodash-es/keyBy"; import mapValues from "lodash-es/mapValues"; diff --git a/packages/fdr-sdk/src/api-definition/transformer.ts b/packages/fdr-sdk/src/api-definition/transformer.ts index 63f8f5e0ee..6c14cd2710 100644 --- a/packages/fdr-sdk/src/api-definition/transformer.ts +++ b/packages/fdr-sdk/src/api-definition/transformer.ts @@ -1,6 +1,6 @@ import type * as FernDocs from "@fern-api/fdr-sdk/docs"; -import identity from "@fern-ui/core-utils/identity"; -import visitDiscriminatedUnion from "@fern-ui/core-utils/visitDiscriminatedUnion"; +import identity from "@fern-api/ui-core-utils/identity"; +import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; import { AsyncOrSync } from "ts-essentials"; import * as Latest from "./latest"; diff --git a/packages/fdr-sdk/src/api-definition/typeid-visitor.ts b/packages/fdr-sdk/src/api-definition/typeid-visitor.ts index ae17094a7f..5a73e0f442 100644 --- a/packages/fdr-sdk/src/api-definition/typeid-visitor.ts +++ b/packages/fdr-sdk/src/api-definition/typeid-visitor.ts @@ -1,4 +1,4 @@ -import visitDiscriminatedUnion from "@fern-ui/core-utils/visitDiscriminatedUnion"; +import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; import { noop } from "ts-essentials"; import type * as Latest from "./latest"; diff --git a/packages/fdr-sdk/src/api-definition/unwrap.ts b/packages/fdr-sdk/src/api-definition/unwrap.ts index 79d721ac9d..f2ee94c416 100644 --- a/packages/fdr-sdk/src/api-definition/unwrap.ts +++ b/packages/fdr-sdk/src/api-definition/unwrap.ts @@ -1,5 +1,5 @@ -import { isPlainObject } from "@fern-ui/core-utils"; -import visitDiscriminatedUnion from "@fern-ui/core-utils/visitDiscriminatedUnion"; +import { isPlainObject } from "@fern-api/ui-core-utils"; +import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; import compact from "lodash-es/compact"; import sortBy from "lodash-es/sortBy"; import type * as FernDocs from "../docs"; diff --git a/packages/fdr-sdk/src/api-definition/url.ts b/packages/fdr-sdk/src/api-definition/url.ts index 1e2b330730..08630f20b7 100644 --- a/packages/fdr-sdk/src/api-definition/url.ts +++ b/packages/fdr-sdk/src/api-definition/url.ts @@ -1,5 +1,5 @@ import { EndpointDefinition, PathPart } from "@fern-api/fdr-sdk/api-definition"; -import { unknownToString } from "@fern-ui/core-utils"; +import { unknownToString } from "@fern-api/ui-core-utils"; function buildQueryParams(queryParameters: Record | undefined): string { if (queryParameters == null) { diff --git a/packages/fdr-sdk/src/converters/db/convertAPIDefinitionToDb.ts b/packages/fdr-sdk/src/converters/db/convertAPIDefinitionToDb.ts index 88ab696ec1..50fb46271a 100644 --- a/packages/fdr-sdk/src/converters/db/convertAPIDefinitionToDb.ts +++ b/packages/fdr-sdk/src/converters/db/convertAPIDefinitionToDb.ts @@ -1,5 +1,5 @@ -import assertNever from "@fern-ui/core-utils/assertNever"; -import titleCase from "@fern-ui/core-utils/titleCase"; +import assertNever from "@fern-api/ui-core-utils/assertNever"; +import titleCase from "@fern-api/ui-core-utils/titleCase"; import isEqual from "fast-deep-equal"; import { APIV1Db, APIV1Read, APIV1Write, FdrAPI } from "../../client"; import { kebabCase } from "../../utils"; diff --git a/packages/fdr-sdk/src/converters/db/convertDocsDefinitionToDb.ts b/packages/fdr-sdk/src/converters/db/convertDocsDefinitionToDb.ts index 11fdae4a4d..4158a585de 100644 --- a/packages/fdr-sdk/src/converters/db/convertDocsDefinitionToDb.ts +++ b/packages/fdr-sdk/src/converters/db/convertDocsDefinitionToDb.ts @@ -1,4 +1,4 @@ -import assertNever from "@fern-ui/core-utils/assertNever"; +import assertNever from "@fern-api/ui-core-utils/assertNever"; import { DocsV1Db, DocsV1Read, diff --git a/packages/fdr-sdk/src/converters/db/examples/generateEndpointExampleCall.ts b/packages/fdr-sdk/src/converters/db/examples/generateEndpointExampleCall.ts index bac770054a..178690f873 100644 --- a/packages/fdr-sdk/src/converters/db/examples/generateEndpointExampleCall.ts +++ b/packages/fdr-sdk/src/converters/db/examples/generateEndpointExampleCall.ts @@ -1,4 +1,4 @@ -import assertNever from "@fern-ui/core-utils/assertNever"; +import assertNever from "@fern-api/ui-core-utils/assertNever"; import { APIV1Write } from "../../../client"; import { generateExampleFromTypeReference, diff --git a/packages/fdr-sdk/src/converters/db/examples/generateHttpBodyExample.ts b/packages/fdr-sdk/src/converters/db/examples/generateHttpBodyExample.ts index 9d4d6d8bc0..1180588ed5 100644 --- a/packages/fdr-sdk/src/converters/db/examples/generateHttpBodyExample.ts +++ b/packages/fdr-sdk/src/converters/db/examples/generateHttpBodyExample.ts @@ -1,4 +1,4 @@ -import assertNever from "@fern-ui/core-utils/assertNever"; +import assertNever from "@fern-api/ui-core-utils/assertNever"; import { APIV1Write } from "../../../client"; export type ResolveTypeById = (typeId: APIV1Write.TypeId) => APIV1Write.TypeDefinition; diff --git a/packages/fdr-sdk/src/converters/db/upgrade/migrateDocsDbDefinition.ts b/packages/fdr-sdk/src/converters/db/upgrade/migrateDocsDbDefinition.ts index e3e474ebf7..c77d680693 100644 --- a/packages/fdr-sdk/src/converters/db/upgrade/migrateDocsDbDefinition.ts +++ b/packages/fdr-sdk/src/converters/db/upgrade/migrateDocsDbDefinition.ts @@ -1,4 +1,4 @@ -import isPlainObject from "@fern-ui/core-utils/isPlainObject"; +import isPlainObject from "@fern-api/ui-core-utils/isPlainObject"; import { DocsV1Db } from "../../../client"; import { upgradeV1ToV2 } from "./upgradeV1ToV2"; import { upgradeV2ToV3 } from "./upgradeV2ToV3"; diff --git a/packages/fdr-sdk/src/converters/read/convertDbAPIDefinitionToRead.ts b/packages/fdr-sdk/src/converters/read/convertDbAPIDefinitionToRead.ts index 7f192ce4dd..3ec3cf3aab 100644 --- a/packages/fdr-sdk/src/converters/read/convertDbAPIDefinitionToRead.ts +++ b/packages/fdr-sdk/src/converters/read/convertDbAPIDefinitionToRead.ts @@ -1,4 +1,4 @@ -import assertNever from "@fern-ui/core-utils/assertNever"; +import assertNever from "@fern-api/ui-core-utils/assertNever"; import { APIV1Db, APIV1Read } from "../../client"; export function convertDbAPIDefinitionsToRead(dbApiDefinitions: Record) { diff --git a/packages/fdr-sdk/src/converters/read/convertDbDocsConfigToRead.ts b/packages/fdr-sdk/src/converters/read/convertDbDocsConfigToRead.ts index 153592d811..edd296fb1f 100644 --- a/packages/fdr-sdk/src/converters/read/convertDbDocsConfigToRead.ts +++ b/packages/fdr-sdk/src/converters/read/convertDbDocsConfigToRead.ts @@ -1,4 +1,4 @@ -import assertNever from "@fern-ui/core-utils/assertNever"; +import assertNever from "@fern-api/ui-core-utils/assertNever"; import tinycolor from "tinycolor2"; import { DocsV1Db, DocsV1Read, visitDbNavigationConfig, visitUnversionedDbNavigationConfig } from "../../client"; import { visitDbNavigationTab } from "../../client/visitNavigationTab"; diff --git a/packages/fdr-sdk/src/navigation/ApiTypeIdVisitor.ts b/packages/fdr-sdk/src/navigation/ApiTypeIdVisitor.ts index 210d3cd757..203c7150db 100644 --- a/packages/fdr-sdk/src/navigation/ApiTypeIdVisitor.ts +++ b/packages/fdr-sdk/src/navigation/ApiTypeIdVisitor.ts @@ -1,4 +1,4 @@ -import visitDiscriminatedUnion from "@fern-ui/core-utils/visitDiscriminatedUnion"; +import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; import { noop } from "ts-essentials"; import type { APIV1Read } from "../client/types"; diff --git a/packages/fdr-sdk/src/navigation/NodeCollector.ts b/packages/fdr-sdk/src/navigation/NodeCollector.ts index 210dd25b9f..6ab72ba653 100644 --- a/packages/fdr-sdk/src/navigation/NodeCollector.ts +++ b/packages/fdr-sdk/src/navigation/NodeCollector.ts @@ -1,4 +1,4 @@ -import { EMPTY_ARRAY } from "@fern-ui/core-utils"; +import { EMPTY_ARRAY } from "@fern-api/ui-core-utils"; import { once } from "../utils"; import { FernNavigation } from "./.."; import { pruneVersionNode } from "./utils/pruneVersionNode"; diff --git a/packages/fdr-sdk/src/navigation/migrators/v1ToV2.ts b/packages/fdr-sdk/src/navigation/migrators/v1ToV2.ts index db952e6af8..5880ac3c1a 100644 --- a/packages/fdr-sdk/src/navigation/migrators/v1ToV2.ts +++ b/packages/fdr-sdk/src/navigation/migrators/v1ToV2.ts @@ -1,4 +1,4 @@ -import visitDiscriminatedUnion from "@fern-ui/core-utils/visitDiscriminatedUnion"; +import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; import { UnreachableCaseError } from "ts-essentials"; import { FernNavigation } from "../.."; diff --git a/packages/fdr-sdk/src/navigation/utils/createBreadcrumbs.ts b/packages/fdr-sdk/src/navigation/utils/createBreadcrumbs.ts index a318411e40..e205216dfc 100644 --- a/packages/fdr-sdk/src/navigation/utils/createBreadcrumbs.ts +++ b/packages/fdr-sdk/src/navigation/utils/createBreadcrumbs.ts @@ -1,4 +1,4 @@ -import visitDiscriminatedUnion from "@fern-ui/core-utils/visitDiscriminatedUnion"; +import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; import { noop } from "ts-essentials"; import { FernNavigation } from "../.."; diff --git a/packages/fdr-sdk/src/navigation/utils/getApiReferenceId.ts b/packages/fdr-sdk/src/navigation/utils/getApiReferenceId.ts index 49ec1ca9f7..3c79249753 100644 --- a/packages/fdr-sdk/src/navigation/utils/getApiReferenceId.ts +++ b/packages/fdr-sdk/src/navigation/utils/getApiReferenceId.ts @@ -1,4 +1,4 @@ -import visitDiscriminatedUnion from "@fern-ui/core-utils/visitDiscriminatedUnion"; +import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; import { FernNavigation } from "../.."; const RETURN_UNDEFINED = () => undefined; diff --git a/packages/fdr-sdk/src/navigation/versions/latest/getPageId.ts b/packages/fdr-sdk/src/navigation/versions/latest/getPageId.ts index 713efe60fa..3dfee35428 100644 --- a/packages/fdr-sdk/src/navigation/versions/latest/getPageId.ts +++ b/packages/fdr-sdk/src/navigation/versions/latest/getPageId.ts @@ -1,4 +1,4 @@ -import visitDiscriminatedUnion from "@fern-ui/core-utils/visitDiscriminatedUnion"; +import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; import type { NavigationNodePage, PageId } from "."; const RETURN_PAGEID = (node: { pageId: PageId }) => node.pageId; diff --git a/packages/fdr-sdk/src/navigation/versions/v1/converters/ApiReferenceNavigationConverter.ts b/packages/fdr-sdk/src/navigation/versions/v1/converters/ApiReferenceNavigationConverter.ts index d4bff41a4e..ac9b2a64b8 100644 --- a/packages/fdr-sdk/src/navigation/versions/v1/converters/ApiReferenceNavigationConverter.ts +++ b/packages/fdr-sdk/src/navigation/versions/v1/converters/ApiReferenceNavigationConverter.ts @@ -1,5 +1,5 @@ -import titleCase from "@fern-ui/core-utils/titleCase"; -import visitDiscriminatedUnion from "@fern-ui/core-utils/visitDiscriminatedUnion"; +import titleCase from "@fern-api/ui-core-utils/titleCase"; +import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; import { noop } from "ts-essentials"; import urljoin from "url-join"; import { FernNavigation } from "../../../.."; diff --git a/packages/fdr-sdk/src/navigation/versions/v1/converters/NavigationConfigConverter.ts b/packages/fdr-sdk/src/navigation/versions/v1/converters/NavigationConfigConverter.ts index bad6f13682..f6d88e2f1f 100644 --- a/packages/fdr-sdk/src/navigation/versions/v1/converters/NavigationConfigConverter.ts +++ b/packages/fdr-sdk/src/navigation/versions/v1/converters/NavigationConfigConverter.ts @@ -1,5 +1,5 @@ -import assertNever from "@fern-ui/core-utils/assertNever"; -import visitDiscriminatedUnion from "@fern-ui/core-utils/visitDiscriminatedUnion"; +import assertNever from "@fern-api/ui-core-utils/assertNever"; +import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; import { FernNavigation } from "../../../.."; import type { APIV1Read, DocsV1Read } from "../../../../client/types"; import { diff --git a/packages/fdr-sdk/src/navigation/versions/v1/followRedirect.ts b/packages/fdr-sdk/src/navigation/versions/v1/followRedirect.ts index 0204b3c9db..3aa745d8e2 100644 --- a/packages/fdr-sdk/src/navigation/versions/v1/followRedirect.ts +++ b/packages/fdr-sdk/src/navigation/versions/v1/followRedirect.ts @@ -1,4 +1,4 @@ -import visitDiscriminatedUnion from "@fern-ui/core-utils/visitDiscriminatedUnion"; +import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; import { FernNavigation } from "../../.."; import { hasMetadata } from "./NavigationNodeWithMetadata"; diff --git a/packages/fdr-sdk/src/navigation/versions/v1/getPageId.ts b/packages/fdr-sdk/src/navigation/versions/v1/getPageId.ts index 859a55579d..d4bbd56b11 100644 --- a/packages/fdr-sdk/src/navigation/versions/v1/getPageId.ts +++ b/packages/fdr-sdk/src/navigation/versions/v1/getPageId.ts @@ -1,4 +1,4 @@ -import visitDiscriminatedUnion from "@fern-ui/core-utils/visitDiscriminatedUnion"; +import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; import type { NavigationNodePage, PageId } from "."; const RETURN_PAGEID = (node: { pageId: PageId }) => node.pageId; diff --git a/packages/healthchecks/package.json b/packages/healthchecks/package.json index 0343f24e38..f542498036 100644 --- a/packages/healthchecks/package.json +++ b/packages/healthchecks/package.json @@ -34,7 +34,7 @@ "devDependencies": { "@fern-api/fdr-sdk": "workspace:*", "@fern-fern/vercel": "0.0.7", - "@fern-ui/core-utils": "workspace:*", + "@fern-api/ui-core-utils": "workspace:*", "@types/jest": "^29.5.11", "@types/node": "^18.7.18", "@types/yargs": "^17.0.32", diff --git a/packages/healthchecks/src/rules/search-slugs-correct/rule.ts b/packages/healthchecks/src/rules/search-slugs-correct/rule.ts index c2c3d0e897..6755235ec3 100644 --- a/packages/healthchecks/src/rules/search-slugs-correct/rule.ts +++ b/packages/healthchecks/src/rules/search-slugs-correct/rule.ts @@ -1,6 +1,6 @@ import { SearchForFacetValuesResponse, SearchResponse } from "@algolia/client-search"; import { FdrAPI, FdrClient, FernNavigation } from "@fern-api/fdr-sdk"; -import { assertNever } from "@fern-ui/core-utils"; +import { assertNever } from "@fern-api/ui-core-utils"; import algoliasearch, { SearchClient } from "algoliasearch"; import { Rule, RuleArgs, RuleResult } from "../runRules"; diff --git a/packages/ui/app/package.json b/packages/ui/app/package.json index db19bc0e5b..3fc09c7ae2 100644 --- a/packages/ui/app/package.json +++ b/packages/ui/app/package.json @@ -37,7 +37,7 @@ "@fern-api/template-resolver": "workspace:*", "@fern-ui/chatbot": "workspace:*", "@fern-ui/components": "workspace:*", - "@fern-ui/core-utils": "workspace:*", + "@fern-api/ui-core-utils": "workspace:*", "@fern-ui/fdr-utils": "workspace:*", "@fern-ui/fern-docs-utils": "workspace:*", "@fern-ui/loadable": "workspace:*", diff --git a/packages/ui/app/src/api-reference/ApiPackageContents.tsx b/packages/ui/app/src/api-reference/ApiPackageContents.tsx index 46c5722eb0..376079c59d 100644 --- a/packages/ui/app/src/api-reference/ApiPackageContents.tsx +++ b/packages/ui/app/src/api-reference/ApiPackageContents.tsx @@ -1,5 +1,5 @@ import type { FdrAPI } from "@fern-api/fdr-sdk/client/types"; -import { EMPTY_ARRAY } from "@fern-ui/core-utils"; +import { EMPTY_ARRAY } from "@fern-api/ui-core-utils"; import dynamic from "next/dynamic"; import { memo, useMemo } from "react"; import { FernErrorBoundary } from "../components/FernErrorBoundary"; diff --git a/packages/ui/app/src/api-reference/ApiReferencePage.tsx b/packages/ui/app/src/api-reference/ApiReferencePage.tsx index e7b5583c45..4763491a8e 100644 --- a/packages/ui/app/src/api-reference/ApiReferencePage.tsx +++ b/packages/ui/app/src/api-reference/ApiReferencePage.tsx @@ -1,4 +1,4 @@ -import { EMPTY_ARRAY } from "@fern-ui/core-utils"; +import { EMPTY_ARRAY } from "@fern-api/ui-core-utils"; import { useSetAtom } from "jotai"; import { useEffect } from "react"; import { DEPRECATED_APIS_ATOM, useIsReady } from "../atoms"; diff --git a/packages/ui/app/src/api-reference/SingleApiPageContent.tsx b/packages/ui/app/src/api-reference/SingleApiPageContent.tsx index 1e2b919db8..64be24b0f0 100644 --- a/packages/ui/app/src/api-reference/SingleApiPageContent.tsx +++ b/packages/ui/app/src/api-reference/SingleApiPageContent.tsx @@ -1,4 +1,4 @@ -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import dynamic from "next/dynamic"; import { ReactElement } from "react"; import { FernErrorBoundary } from "../components/FernErrorBoundary"; diff --git a/packages/ui/app/src/api-reference/artifacts/SdkCard.tsx b/packages/ui/app/src/api-reference/artifacts/SdkCard.tsx index 85a537d6ce..f19779ca12 100644 --- a/packages/ui/app/src/api-reference/artifacts/SdkCard.tsx +++ b/packages/ui/app/src/api-reference/artifacts/SdkCard.tsx @@ -1,5 +1,5 @@ import type { DocsV1Read } from "@fern-api/fdr-sdk/client/types"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { ReactElement, useMemo } from "react"; import { SdkCardLayout } from "./SdkCardLayout"; import { NodeJsLogo } from "./sdk-logos/NodeJsLogo"; diff --git a/packages/ui/app/src/api-reference/endpoints/EndpointContentCodeSnippets.tsx b/packages/ui/app/src/api-reference/endpoints/EndpointContentCodeSnippets.tsx index 2251b32596..fa10d0318c 100644 --- a/packages/ui/app/src/api-reference/endpoints/EndpointContentCodeSnippets.tsx +++ b/packages/ui/app/src/api-reference/endpoints/EndpointContentCodeSnippets.tsx @@ -1,7 +1,7 @@ import type { APIV1Read } from "@fern-api/fdr-sdk/client/types"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; +import { EMPTY_OBJECT, visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { FernButton, FernButtonGroup, FernScrollArea } from "@fern-ui/components"; -import { EMPTY_OBJECT, visitDiscriminatedUnion } from "@fern-ui/core-utils"; import { useResizeObserver } from "@fern-ui/react-commons"; import { ReactNode, memo, useMemo, useRef, useState } from "react"; import { useNavigationNodes, usePlaygroundEnvironment } from "../../atoms"; diff --git a/packages/ui/app/src/api-reference/endpoints/EndpointContentLeft.tsx b/packages/ui/app/src/api-reference/endpoints/EndpointContentLeft.tsx index b0a1a636ae..34b69faaca 100644 --- a/packages/ui/app/src/api-reference/endpoints/EndpointContentLeft.tsx +++ b/packages/ui/app/src/api-reference/endpoints/EndpointContentLeft.tsx @@ -1,5 +1,5 @@ import { APIV1Read } from "@fern-api/fdr-sdk"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { camelCase, sortBy, upperFirst } from "lodash-es"; import { memo } from "react"; import { useFeatureFlags } from "../../atoms"; diff --git a/packages/ui/app/src/api-reference/endpoints/EndpointError.tsx b/packages/ui/app/src/api-reference/endpoints/EndpointError.tsx index 49d457cc36..4c231c3b71 100644 --- a/packages/ui/app/src/api-reference/endpoints/EndpointError.tsx +++ b/packages/ui/app/src/api-reference/endpoints/EndpointError.tsx @@ -1,7 +1,7 @@ import type { APIV1Read } from "@fern-api/fdr-sdk/client/types"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; +import { titleCase, visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { FernCollapse } from "@fern-ui/components"; -import { titleCase, visitDiscriminatedUnion } from "@fern-ui/core-utils"; import cn from "clsx"; import { MouseEventHandler, memo } from "react"; import { MdxContent } from "../../mdx/MdxContent"; diff --git a/packages/ui/app/src/api-reference/endpoints/EndpointRequestSection.tsx b/packages/ui/app/src/api-reference/endpoints/EndpointRequestSection.tsx index 926ad21d06..95509a58ab 100644 --- a/packages/ui/app/src/api-reference/endpoints/EndpointRequestSection.tsx +++ b/packages/ui/app/src/api-reference/endpoints/EndpointRequestSection.tsx @@ -1,6 +1,6 @@ import type * as FernDocs from "@fern-api/fdr-sdk/docs"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import cn from "clsx"; import { Fragment, ReactNode } from "react"; import { Markdown } from "../../mdx/Markdown"; diff --git a/packages/ui/app/src/api-reference/endpoints/EndpointUrl.tsx b/packages/ui/app/src/api-reference/endpoints/EndpointUrl.tsx index c0718923d6..89d4fa3299 100644 --- a/packages/ui/app/src/api-reference/endpoints/EndpointUrl.tsx +++ b/packages/ui/app/src/api-reference/endpoints/EndpointUrl.tsx @@ -1,6 +1,6 @@ import type { APIV1Read } from "@fern-api/fdr-sdk/client/types"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { CopyToClipboardButton } from "@fern-ui/components"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; import { useBooleanState } from "@fern-ui/react-commons"; import cn from "clsx"; import React, { PropsWithChildren, ReactElement, useImperativeHandle, useMemo, useRef, useState } from "react"; diff --git a/packages/ui/app/src/api-reference/examples/HttpRequestExample.ts b/packages/ui/app/src/api-reference/examples/HttpRequestExample.ts index bd7c08c785..5c8a335575 100644 --- a/packages/ui/app/src/api-reference/examples/HttpRequestExample.ts +++ b/packages/ui/app/src/api-reference/examples/HttpRequestExample.ts @@ -1,5 +1,5 @@ import type { APIV1Read } from "@fern-api/fdr-sdk/client/types"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { compact } from "lodash-es"; import { noop } from "ts-essentials"; import urljoin from "url-join"; diff --git a/packages/ui/app/src/api-reference/examples/code-example.ts b/packages/ui/app/src/api-reference/examples/code-example.ts index 16bf5f1451..4b49e6cd5e 100644 --- a/packages/ui/app/src/api-reference/examples/code-example.ts +++ b/packages/ui/app/src/api-reference/examples/code-example.ts @@ -1,4 +1,4 @@ -import { titleCase } from "@fern-ui/core-utils"; +import { titleCase } from "@fern-api/ui-core-utils"; import { sortBy } from "lodash-es"; import { ResolvedExampleEndpointCall } from "../../resolver/types"; diff --git a/packages/ui/app/src/api-reference/examples/sortKeysByShape.ts b/packages/ui/app/src/api-reference/examples/sortKeysByShape.ts index 8c58930da9..6024a18a0a 100644 --- a/packages/ui/app/src/api-reference/examples/sortKeysByShape.ts +++ b/packages/ui/app/src/api-reference/examples/sortKeysByShape.ts @@ -1,4 +1,4 @@ -import { isPlainObject, visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { isPlainObject, visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { keyBy, mapValues } from "lodash-es"; import { ResolvedHttpRequestBodyShape, diff --git a/packages/ui/app/src/api-reference/examples/stringifyHttpRequestExampleToCurl.ts b/packages/ui/app/src/api-reference/examples/stringifyHttpRequestExampleToCurl.ts index 8541522302..9dabf9a5ad 100644 --- a/packages/ui/app/src/api-reference/examples/stringifyHttpRequestExampleToCurl.ts +++ b/packages/ui/app/src/api-reference/examples/stringifyHttpRequestExampleToCurl.ts @@ -1,4 +1,4 @@ -import { unknownToString, visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { unknownToString, visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { HttpRequestExample } from "./HttpRequestExample"; function requiresUrlEncode(str: string): boolean { diff --git a/packages/ui/app/src/api-reference/examples/useHighlightJsonLines.ts b/packages/ui/app/src/api-reference/examples/useHighlightJsonLines.ts index 1ec1b4eddc..efaad0a20a 100644 --- a/packages/ui/app/src/api-reference/examples/useHighlightJsonLines.ts +++ b/packages/ui/app/src/api-reference/examples/useHighlightJsonLines.ts @@ -1,4 +1,4 @@ -import { isPlainObject } from "@fern-ui/core-utils"; +import { isPlainObject } from "@fern-api/ui-core-utils"; import jsonpath from "jsonpath"; import { useMemo } from "react"; import { JsonPropertyPath, JsonPropertyPathPart } from "./JsonPropertyPath"; diff --git a/packages/ui/app/src/api-reference/subpackages/EndpointDescriptor.tsx b/packages/ui/app/src/api-reference/subpackages/EndpointDescriptor.tsx index 47e337ce3b..0a182f8940 100644 --- a/packages/ui/app/src/api-reference/subpackages/EndpointDescriptor.tsx +++ b/packages/ui/app/src/api-reference/subpackages/EndpointDescriptor.tsx @@ -1,5 +1,5 @@ import type { APIV1Read } from "@fern-api/fdr-sdk/client/types"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { MouseEventHandler } from "react"; import { HttpMethodIcon } from "../../components/HttpMethodIcon"; import { MonospaceText } from "../../components/MonospaceText"; diff --git a/packages/ui/app/src/api-reference/types/discriminated-union/DiscriminatedUnionVariant.tsx b/packages/ui/app/src/api-reference/types/discriminated-union/DiscriminatedUnionVariant.tsx index 805b670fcf..aa59478f98 100644 --- a/packages/ui/app/src/api-reference/types/discriminated-union/DiscriminatedUnionVariant.tsx +++ b/packages/ui/app/src/api-reference/types/discriminated-union/DiscriminatedUnionVariant.tsx @@ -1,5 +1,5 @@ import { APIV1Read, FernNavigation } from "@fern-api/fdr-sdk"; -import { titleCase } from "@fern-ui/core-utils"; +import { titleCase } from "@fern-api/ui-core-utils"; import cn from "clsx"; import { useCallback, useMemo } from "react"; import { Markdown } from "../../../mdx/Markdown"; diff --git a/packages/ui/app/src/api-reference/types/type-definition/InternalTypeDefinition.tsx b/packages/ui/app/src/api-reference/types/type-definition/InternalTypeDefinition.tsx index 08d1116aaf..97befd481b 100644 --- a/packages/ui/app/src/api-reference/types/type-definition/InternalTypeDefinition.tsx +++ b/packages/ui/app/src/api-reference/types/type-definition/InternalTypeDefinition.tsx @@ -1,6 +1,6 @@ import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { FernTooltipProvider } from "@fern-ui/components"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; import { useBooleanState, useIsHovering } from "@fern-ui/react-commons"; import cn from "clsx"; import { ReactElement, memo, useCallback, useMemo } from "react"; diff --git a/packages/ui/app/src/api-reference/types/type-definition/InternalTypeDefinitionError.tsx b/packages/ui/app/src/api-reference/types/type-definition/InternalTypeDefinitionError.tsx index 95bdebb205..16af6b16dd 100644 --- a/packages/ui/app/src/api-reference/types/type-definition/InternalTypeDefinitionError.tsx +++ b/packages/ui/app/src/api-reference/types/type-definition/InternalTypeDefinitionError.tsx @@ -1,5 +1,5 @@ import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { useBooleanState, useIsHovering } from "@fern-ui/react-commons"; import React, { ReactElement, useCallback, useMemo } from "react"; import { useRouteListener } from "../../../atoms"; diff --git a/packages/ui/app/src/api-reference/types/type-reference/InternalTypeReferenceDefinitions.tsx b/packages/ui/app/src/api-reference/types/type-reference/InternalTypeReferenceDefinitions.tsx index 0630400204..7b12b8590e 100644 --- a/packages/ui/app/src/api-reference/types/type-reference/InternalTypeReferenceDefinitions.tsx +++ b/packages/ui/app/src/api-reference/types/type-reference/InternalTypeReferenceDefinitions.tsx @@ -1,5 +1,5 @@ import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import React, { ReactElement } from "react"; import { ResolvedTypeDefinition, ResolvedTypeShape, unwrapReference } from "../../../resolver/types"; import { InternalTypeDefinition } from "../type-definition/InternalTypeDefinition"; diff --git a/packages/ui/app/src/api-reference/types/type-shorthand/TypeShorthand.tsx b/packages/ui/app/src/api-reference/types/type-shorthand/TypeShorthand.tsx index 8cf04f5bd3..e578ad3769 100644 --- a/packages/ui/app/src/api-reference/types/type-shorthand/TypeShorthand.tsx +++ b/packages/ui/app/src/api-reference/types/type-shorthand/TypeShorthand.tsx @@ -1,5 +1,5 @@ import type { APIV1Read } from "@fern-api/fdr-sdk/client/types"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { uniq } from "lodash-es"; import { ReactNode } from "react"; import { diff --git a/packages/ui/app/src/api-reference/types/undiscriminated-union/UndiscriminatedUnionVariant.tsx b/packages/ui/app/src/api-reference/types/undiscriminated-union/UndiscriminatedUnionVariant.tsx index a4a15c512e..e982d9d837 100644 --- a/packages/ui/app/src/api-reference/types/undiscriminated-union/UndiscriminatedUnionVariant.tsx +++ b/packages/ui/app/src/api-reference/types/undiscriminated-union/UndiscriminatedUnionVariant.tsx @@ -1,5 +1,5 @@ import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import cn from "clsx"; import { ReactElement, useCallback } from "react"; import { Markdown } from "../../../mdx/Markdown"; diff --git a/packages/ui/app/src/api-reference/webhooks/webhook-examples/WebhookExample.tsx b/packages/ui/app/src/api-reference/webhooks/webhook-examples/WebhookExample.tsx index 3b8c6cdcb9..8274fa3fbb 100644 --- a/packages/ui/app/src/api-reference/webhooks/webhook-examples/WebhookExample.tsx +++ b/packages/ui/app/src/api-reference/webhooks/webhook-examples/WebhookExample.tsx @@ -1,4 +1,4 @@ -import { EMPTY_ARRAY } from "@fern-ui/core-utils"; +import { EMPTY_ARRAY } from "@fern-api/ui-core-utils"; import dynamic from "next/dynamic"; import { useMemo } from "react"; import { ResolvedExampleWebhookPayload } from "../../../resolver/types"; diff --git a/packages/ui/app/src/changelog/ChangelogPage.tsx b/packages/ui/app/src/changelog/ChangelogPage.tsx index a4b79dd3e4..31533c18fe 100644 --- a/packages/ui/app/src/changelog/ChangelogPage.tsx +++ b/packages/ui/app/src/changelog/ChangelogPage.tsx @@ -1,6 +1,6 @@ import type { FernNavigation } from "@fern-api/fdr-sdk"; import type * as FernDocs from "@fern-api/fdr-sdk/docs"; -import { EMPTY_ARRAY } from "@fern-ui/core-utils"; +import { EMPTY_ARRAY } from "@fern-api/ui-core-utils"; import clsx from "clsx"; import { atom, useAtomValue } from "jotai"; import { chunk } from "lodash-es"; diff --git a/packages/ui/app/src/components/FernImage.tsx b/packages/ui/app/src/components/FernImage.tsx index 7672ac8b71..b19e552d71 100644 --- a/packages/ui/app/src/components/FernImage.tsx +++ b/packages/ui/app/src/components/FernImage.tsx @@ -1,5 +1,5 @@ import type { DocsV1Read } from "@fern-api/fdr-sdk/client/types"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import Image, { ImageProps } from "next/image"; import { ReactElement } from "react"; diff --git a/packages/ui/app/src/components/PageHeader.tsx b/packages/ui/app/src/components/PageHeader.tsx index 7d7868424b..142577d711 100644 --- a/packages/ui/app/src/components/PageHeader.tsx +++ b/packages/ui/app/src/components/PageHeader.tsx @@ -1,6 +1,6 @@ import type { FernNavigation } from "@fern-api/fdr-sdk"; import type * as FernDocs from "@fern-api/fdr-sdk/docs"; -import { isPlainObject } from "@fern-ui/core-utils"; +import { isPlainObject } from "@fern-api/ui-core-utils"; import type { ReactElement, ReactNode } from "react"; import { Markdown } from "../mdx/Markdown"; import { FernBreadcrumbs } from "./FernBreadcrumbs"; diff --git a/packages/ui/app/src/components/PlatformSpecificContent.tsx b/packages/ui/app/src/components/PlatformSpecificContent.tsx index 99ec1a11f0..4f00fe8b30 100644 --- a/packages/ui/app/src/components/PlatformSpecificContent.tsx +++ b/packages/ui/app/src/components/PlatformSpecificContent.tsx @@ -1,4 +1,4 @@ -import { PLATFORM, type Platform } from "@fern-ui/core-utils"; +import { PLATFORM, type Platform } from "@fern-api/ui-core-utils"; import dynamic from "next/dynamic"; type ComponentChildren = (platform: Platform) => React.ReactNode; diff --git a/packages/ui/app/src/docs/DocsMainContent.tsx b/packages/ui/app/src/docs/DocsMainContent.tsx index 8737cbce51..bc00c8551a 100644 --- a/packages/ui/app/src/docs/DocsMainContent.tsx +++ b/packages/ui/app/src/docs/DocsMainContent.tsx @@ -1,4 +1,4 @@ -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import dynamic from "next/dynamic"; import { useSearchParams } from "next/navigation"; import { Fragment, ReactElement, memo } from "react"; diff --git a/packages/ui/app/src/docs/NextApp.tsx b/packages/ui/app/src/docs/NextApp.tsx index b9a073f58b..39170c90f9 100644 --- a/packages/ui/app/src/docs/NextApp.tsx +++ b/packages/ui/app/src/docs/NextApp.tsx @@ -1,5 +1,5 @@ +import { EMPTY_OBJECT } from "@fern-api/ui-core-utils"; import { FernTooltipProvider, Toaster } from "@fern-ui/components"; -import { EMPTY_OBJECT } from "@fern-ui/core-utils"; import { Provider as JotaiProvider } from "jotai"; import type { AppProps } from "next/app"; import { ReactElement } from "react"; diff --git a/packages/ui/app/src/hooks/useHref.ts b/packages/ui/app/src/hooks/useHref.ts index f069c7a026..325fdb3266 100644 --- a/packages/ui/app/src/hooks/useHref.ts +++ b/packages/ui/app/src/hooks/useHref.ts @@ -1,5 +1,5 @@ import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { withDefaultProtocol } from "@fern-ui/core-utils"; +import { withDefaultProtocol } from "@fern-api/ui-core-utils"; import { Atom, useAtomValue } from "jotai"; import urlJoin from "url-join"; import { TRAILING_SLASH_ATOM } from "../atoms"; diff --git a/packages/ui/app/src/hooks/usePlaygroundSettings.ts b/packages/ui/app/src/hooks/usePlaygroundSettings.ts index 3a0674b911..f58af4b5b5 100644 --- a/packages/ui/app/src/hooks/usePlaygroundSettings.ts +++ b/packages/ui/app/src/hooks/usePlaygroundSettings.ts @@ -1,5 +1,5 @@ import { NavigationNode, NodeId, PlaygroundSettings } from "@fern-api/fdr-sdk/navigation"; -import visitDiscriminatedUnion from "@fern-ui/core-utils/visitDiscriminatedUnion"; +import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; import { useIsPlaygroundOpen, useNavigationNodes, usePlaygroundNodeId } from "../atoms"; export function usePlaygroundSettings(currentNodeId?: NodeId): PlaygroundSettings | undefined { diff --git a/packages/ui/app/src/hooks/useSidebarTabHref.ts b/packages/ui/app/src/hooks/useSidebarTabHref.ts index b364f28bbb..3b85aeccbb 100644 --- a/packages/ui/app/src/hooks/useSidebarTabHref.ts +++ b/packages/ui/app/src/hooks/useSidebarTabHref.ts @@ -1,4 +1,4 @@ -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { SidebarTab } from "@fern-ui/fdr-utils"; import { useToHref } from "./useHref"; diff --git a/packages/ui/app/src/mdx/components/callout/Callout.tsx b/packages/ui/app/src/mdx/components/callout/Callout.tsx index 9aca15a1d3..ac8fe997b1 100644 --- a/packages/ui/app/src/mdx/components/callout/Callout.tsx +++ b/packages/ui/app/src/mdx/components/callout/Callout.tsx @@ -1,5 +1,5 @@ +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { RemoteFontAwesomeIcon } from "@fern-ui/components"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; import cn from "clsx"; import { Bell, Check, CheckCircle, InfoCircle, Pin, Rocket, Star, WarningTriangle } from "iconoir-react"; import { FC, PropsWithChildren, ReactElement, isValidElement } from "react"; diff --git a/packages/ui/app/src/mdx/components/snippets/EndpointRequestSnippet.tsx b/packages/ui/app/src/mdx/components/snippets/EndpointRequestSnippet.tsx index f861de0b70..e521aa55e6 100644 --- a/packages/ui/app/src/mdx/components/snippets/EndpointRequestSnippet.tsx +++ b/packages/ui/app/src/mdx/components/snippets/EndpointRequestSnippet.tsx @@ -1,4 +1,4 @@ -import { EMPTY_OBJECT } from "@fern-ui/core-utils"; +import { EMPTY_OBJECT } from "@fern-api/ui-core-utils"; import { useMemo } from "react"; import { CodeExampleClientDropdown } from "../../../api-reference/endpoints/CodeExampleClientDropdown"; import { EndpointUrlWithOverflow } from "../../../api-reference/endpoints/EndpointUrlWithOverflow"; diff --git a/packages/ui/app/src/mdx/plugins/rehypeFernCode.ts b/packages/ui/app/src/mdx/plugins/rehypeFernCode.ts index 65255aa32f..e610724225 100644 --- a/packages/ui/app/src/mdx/plugins/rehypeFernCode.ts +++ b/packages/ui/app/src/mdx/plugins/rehypeFernCode.ts @@ -1,4 +1,4 @@ -import { unknownToString } from "@fern-ui/core-utils"; +import { unknownToString } from "@fern-api/ui-core-utils"; import type { Element, Root } from "hast"; import type { MdxJsxAttribute, MdxJsxFlowElementHast } from "mdast-util-mdx-jsx"; import rangeParser from "parse-numeric-range"; diff --git a/packages/ui/app/src/mdx/plugins/rehypeLayout.ts b/packages/ui/app/src/mdx/plugins/rehypeLayout.ts index 85e9de3196..aad6c469cb 100644 --- a/packages/ui/app/src/mdx/plugins/rehypeLayout.ts +++ b/packages/ui/app/src/mdx/plugins/rehypeLayout.ts @@ -1,5 +1,5 @@ import type * as FernDocs from "@fern-api/fdr-sdk/docs"; -import { EMPTY_ARRAY } from "@fern-ui/core-utils"; +import { EMPTY_ARRAY } from "@fern-api/ui-core-utils"; import type { ElementContent, Root } from "hast"; import { fromMarkdown } from "mdast-util-from-markdown"; import { toHast } from "mdast-util-to-hast"; diff --git a/packages/ui/app/src/mdx/plugins/to-estree.ts b/packages/ui/app/src/mdx/plugins/to-estree.ts index 0c95e48ba7..5c61e8b504 100644 --- a/packages/ui/app/src/mdx/plugins/to-estree.ts +++ b/packages/ui/app/src/mdx/plugins/to-estree.ts @@ -1,4 +1,4 @@ -import { isPlainObject } from "@fern-ui/core-utils"; +import { isPlainObject } from "@fern-api/ui-core-utils"; import type { Expression, Program } from "estree"; import type { ElementContent, Root } from "hast"; import { toEstree } from "hast-util-to-estree"; diff --git a/packages/ui/app/src/mdx/plugins/utils.ts b/packages/ui/app/src/mdx/plugins/utils.ts index c85a4c28a2..29558d82f3 100644 --- a/packages/ui/app/src/mdx/plugins/utils.ts +++ b/packages/ui/app/src/mdx/plugins/utils.ts @@ -1,4 +1,4 @@ -import { isPlainObject, unknownToString } from "@fern-ui/core-utils"; +import { isPlainObject, unknownToString } from "@fern-api/ui-core-utils"; import type { Element, ElementContent, Node, Root, RootContent, Text } from "hast"; import type { MdxJsxAttribute, diff --git a/packages/ui/app/src/playground/PlaygroundAuthorizationForm.tsx b/packages/ui/app/src/playground/PlaygroundAuthorizationForm.tsx index 0a25f70d76..9fd8e9fab7 100644 --- a/packages/ui/app/src/playground/PlaygroundAuthorizationForm.tsx +++ b/packages/ui/app/src/playground/PlaygroundAuthorizationForm.tsx @@ -1,4 +1,5 @@ import type { APIV1Read } from "@fern-api/fdr-sdk/client/types"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { FernButton, FernCard, @@ -9,7 +10,6 @@ import { FernTooltip, FernTooltipProvider, } from "@fern-ui/components"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; import { useBooleanState } from "@fern-ui/react-commons"; import { HelpCircle, Key, User } from "iconoir-react"; import { atom, useAtom, useAtomValue, useSetAtom } from "jotai"; diff --git a/packages/ui/app/src/playground/PlaygroundWebSocketSessionForm.tsx b/packages/ui/app/src/playground/PlaygroundWebSocketSessionForm.tsx index 11d90fdaf7..a2366ec38b 100644 --- a/packages/ui/app/src/playground/PlaygroundWebSocketSessionForm.tsx +++ b/packages/ui/app/src/playground/PlaygroundWebSocketSessionForm.tsx @@ -1,6 +1,6 @@ import type * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; +import { titleCase } from "@fern-api/ui-core-utils"; import { FernButton, FernCard, FernScrollArea } from "@fern-ui/components"; -import { titleCase } from "@fern-ui/core-utils"; import cn from "clsx"; import { Dispatch, FC, SetStateAction, useCallback } from "react"; import { WebSocketMessage, WebSocketMessages } from "../api-reference/web-socket/WebSocketMessages"; diff --git a/packages/ui/app/src/playground/code-snippets/builders/common.ts b/packages/ui/app/src/playground/code-snippets/builders/common.ts index 199b5ff75d..b5835ca698 100644 --- a/packages/ui/app/src/playground/code-snippets/builders/common.ts +++ b/packages/ui/app/src/playground/code-snippets/builders/common.ts @@ -1,5 +1,5 @@ import { type EndpointDefinition } from "@fern-api/fdr-sdk/api-definition"; -import { unknownToString } from "@fern-ui/core-utils"; +import { unknownToString } from "@fern-api/ui-core-utils"; export function buildPath(path: EndpointDefinition["path"], pathParameters?: Record): string { return path diff --git a/packages/ui/app/src/playground/code-snippets/builders/curl.ts b/packages/ui/app/src/playground/code-snippets/builders/curl.ts index f93fdcb67d..68f3d4988b 100644 --- a/packages/ui/app/src/playground/code-snippets/builders/curl.ts +++ b/packages/ui/app/src/playground/code-snippets/builders/curl.ts @@ -1,5 +1,5 @@ import { SnippetHttpRequest, SnippetHttpRequestBodyFormValue, convertToCurl } from "@fern-api/fdr-sdk/api-definition"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { isEmpty } from "lodash-es"; import { convertPlaygroundFormDataEntryValueToResolvedExampleEndpointRequest } from "../../types"; import { PlaygroundCodeSnippetBuilder } from "./types"; diff --git a/packages/ui/app/src/playground/code-snippets/builders/python.ts b/packages/ui/app/src/playground/code-snippets/builders/python.ts index 2ce08652b6..44795f8d27 100644 --- a/packages/ui/app/src/playground/code-snippets/builders/python.ts +++ b/packages/ui/app/src/playground/code-snippets/builders/python.ts @@ -1,4 +1,4 @@ -import { isNonNullish, visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { isNonNullish, visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { PlaygroundFormDataEntryValue } from "../../types"; import { buildPath, indentAfter } from "./common"; import { PlaygroundCodeSnippetBuilder } from "./types"; diff --git a/packages/ui/app/src/playground/code-snippets/builders/typescript.ts b/packages/ui/app/src/playground/code-snippets/builders/typescript.ts index d90c33cddf..711b3c7474 100644 --- a/packages/ui/app/src/playground/code-snippets/builders/typescript.ts +++ b/packages/ui/app/src/playground/code-snippets/builders/typescript.ts @@ -1,4 +1,4 @@ -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { isEmpty } from "lodash-es"; import { buildPath, indentAfter } from "./common"; import { PlaygroundCodeSnippetBuilder } from "./types"; diff --git a/packages/ui/app/src/playground/endpoint/PlaygroundEndpoint.tsx b/packages/ui/app/src/playground/endpoint/PlaygroundEndpoint.tsx index 1d2e10e572..ef5904de99 100644 --- a/packages/ui/app/src/playground/endpoint/PlaygroundEndpoint.tsx +++ b/packages/ui/app/src/playground/endpoint/PlaygroundEndpoint.tsx @@ -1,6 +1,6 @@ import { buildEndpointUrl } from "@fern-api/fdr-sdk/api-definition"; +import { unknownToString } from "@fern-api/ui-core-utils"; import { FernTooltipProvider } from "@fern-ui/components"; -import { unknownToString } from "@fern-ui/core-utils"; import { Loadable, failed, loaded, loading, notStartedLoading } from "@fern-ui/loadable"; import { useEventCallback } from "@fern-ui/react-commons"; import { SendSolid } from "iconoir-react"; diff --git a/packages/ui/app/src/playground/endpoint/PlaygroundEndpointForm.tsx b/packages/ui/app/src/playground/endpoint/PlaygroundEndpointForm.tsx index 7c7eeb18ff..6fb31802c8 100644 --- a/packages/ui/app/src/playground/endpoint/PlaygroundEndpointForm.tsx +++ b/packages/ui/app/src/playground/endpoint/PlaygroundEndpointForm.tsx @@ -1,5 +1,5 @@ import { unwrapObjectType, unwrapReference } from "@fern-api/fdr-sdk/api-definition"; -import { EMPTY_ARRAY, visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { EMPTY_ARRAY, visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { isEmpty } from "lodash-es"; import { Dispatch, FC, SetStateAction, useCallback } from "react"; import { PlaygroundFileUploadForm } from "../form/PlaygroundFileUploadForm"; diff --git a/packages/ui/app/src/playground/endpoint/PlaygroundEndpointMultipartForm.tsx b/packages/ui/app/src/playground/endpoint/PlaygroundEndpointMultipartForm.tsx index a5c690ef83..2fc41e8520 100644 --- a/packages/ui/app/src/playground/endpoint/PlaygroundEndpointMultipartForm.tsx +++ b/packages/ui/app/src/playground/endpoint/PlaygroundEndpointMultipartForm.tsx @@ -1,5 +1,5 @@ import { EndpointDefinition, HttpRequestBodyShape, TypeDefinition } from "@fern-api/fdr-sdk/api-definition"; -import visitDiscriminatedUnion from "@fern-ui/core-utils/visitDiscriminatedUnion"; +import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; import { ReactElement, useCallback } from "react"; import { PlaygroundFileUploadForm } from "../form/PlaygroundFileUploadForm"; import { PlaygroundObjectPropertyForm } from "../form/PlaygroundObjectPropertyForm"; diff --git a/packages/ui/app/src/playground/endpoint/PlaygroundEndpointPath.tsx b/packages/ui/app/src/playground/endpoint/PlaygroundEndpointPath.tsx index f6bcd48e05..a0c9e5ce17 100644 --- a/packages/ui/app/src/playground/endpoint/PlaygroundEndpointPath.tsx +++ b/packages/ui/app/src/playground/endpoint/PlaygroundEndpointPath.tsx @@ -6,8 +6,8 @@ import { PathPart, buildRequestUrl, } from "@fern-api/fdr-sdk/api-definition"; +import { unknownToString, visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { CopyToClipboardButton, FernButton } from "@fern-ui/components"; -import { unknownToString, visitDiscriminatedUnion } from "@fern-ui/core-utils"; import { useBooleanState } from "@fern-ui/react-commons"; import * as Dialog from "@radix-ui/react-dialog"; import cn from "clsx"; diff --git a/packages/ui/app/src/playground/endpoint/PlaygroundEndpointSelectorContent.tsx b/packages/ui/app/src/playground/endpoint/PlaygroundEndpointSelectorContent.tsx index 57828c2ea1..f95946e720 100644 --- a/packages/ui/app/src/playground/endpoint/PlaygroundEndpointSelectorContent.tsx +++ b/packages/ui/app/src/playground/endpoint/PlaygroundEndpointSelectorContent.tsx @@ -1,6 +1,6 @@ import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; +import { isNonNullish } from "@fern-api/ui-core-utils"; import { FernButton, FernInput, FernScrollArea, FernTooltipProvider } from "@fern-ui/components"; -import { isNonNullish } from "@fern-ui/core-utils"; import cn, { clsx } from "clsx"; import { Search, Slash, Xmark } from "iconoir-react"; import { Fragment, forwardRef, useEffect, useImperativeHandle, useRef, useState } from "react"; diff --git a/packages/ui/app/src/playground/form/PlaygroundDescriminatedUnionForm.tsx b/packages/ui/app/src/playground/form/PlaygroundDescriminatedUnionForm.tsx index 15fc7056a9..3f1b3fe151 100644 --- a/packages/ui/app/src/playground/form/PlaygroundDescriminatedUnionForm.tsx +++ b/packages/ui/app/src/playground/form/PlaygroundDescriminatedUnionForm.tsx @@ -1,6 +1,6 @@ import { DiscriminatedUnionType, TypeDefinition, unwrapObjectType } from "@fern-api/fdr-sdk/api-definition"; +import { titleCase } from "@fern-api/ui-core-utils"; import { FernButton, FernDropdown, FernSegmentedControl } from "@fern-ui/components"; -import { titleCase } from "@fern-ui/core-utils"; import { NavArrowDown } from "iconoir-react"; import dynamic from "next/dynamic"; import { memo, useCallback, useMemo } from "react"; diff --git a/packages/ui/app/src/playground/form/PlaygroundMapForm.tsx b/packages/ui/app/src/playground/form/PlaygroundMapForm.tsx index 8ad98301df..2ae382bb62 100644 --- a/packages/ui/app/src/playground/form/PlaygroundMapForm.tsx +++ b/packages/ui/app/src/playground/form/PlaygroundMapForm.tsx @@ -1,6 +1,6 @@ import { TypeDefinition, TypeShapeOrReference, unwrapReference } from "@fern-api/fdr-sdk/api-definition"; +import { isPlainObject, unknownToString } from "@fern-api/ui-core-utils"; import { FernButton } from "@fern-ui/components"; -import { isPlainObject, unknownToString } from "@fern-ui/core-utils"; import { Plus, Xmark } from "iconoir-react"; import { memo, useCallback, useEffect, useState } from "react"; import { getEmptyValueForType } from "../utils"; diff --git a/packages/ui/app/src/playground/form/PlaygroundTypeReferenceForm.tsx b/packages/ui/app/src/playground/form/PlaygroundTypeReferenceForm.tsx index c9ccf3075e..44f56a4388 100644 --- a/packages/ui/app/src/playground/form/PlaygroundTypeReferenceForm.tsx +++ b/packages/ui/app/src/playground/form/PlaygroundTypeReferenceForm.tsx @@ -5,8 +5,8 @@ import { unwrapObjectType, unwrapReference, } from "@fern-api/fdr-sdk/api-definition"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { FernInput, FernNumericInput, FernSwitch, FernTextarea } from "@fern-ui/components"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; import { ReactElement, memo, useCallback } from "react"; import { useFeatureFlags } from "../../atoms"; import { WithLabel } from "../WithLabel"; diff --git a/packages/ui/app/src/playground/hooks/usePreloadApiLeaf.ts b/packages/ui/app/src/playground/hooks/usePreloadApiLeaf.ts index c57930a10d..4c21cbfc48 100644 --- a/packages/ui/app/src/playground/hooks/usePreloadApiLeaf.ts +++ b/packages/ui/app/src/playground/hooks/usePreloadApiLeaf.ts @@ -1,6 +1,6 @@ import type { ApiDefinition } from "@fern-api/fdr-sdk/api-definition"; import type { NavigationNodeApiLeaf } from "@fern-api/fdr-sdk/navigation"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { useAtomCallback } from "jotai/utils"; import { preload } from "swr"; import { useCallbackOne } from "use-memo-one"; diff --git a/packages/ui/app/src/playground/types/index.ts b/packages/ui/app/src/playground/types/index.ts index b589484216..510f6ee533 100644 --- a/packages/ui/app/src/playground/types/index.ts +++ b/packages/ui/app/src/playground/types/index.ts @@ -1,5 +1,5 @@ import { SnippetHttpRequestBodyFormValue } from "@fern-api/fdr-sdk/api-definition"; -import { assertNever } from "@fern-ui/core-utils"; +import { assertNever } from "@fern-api/ui-core-utils"; import { PlaygroundFormDataEntryValue } from "./formDataEntryValue"; import { JsonVariant } from "./jsonVariant"; diff --git a/packages/ui/app/src/playground/utils/auth-headers.ts b/packages/ui/app/src/playground/utils/auth-headers.ts index 72154f9fa7..7de71445a0 100644 --- a/packages/ui/app/src/playground/utils/auth-headers.ts +++ b/packages/ui/app/src/playground/utils/auth-headers.ts @@ -1,5 +1,5 @@ import { APIV1Read } from "@fern-api/fdr-sdk"; -import visitDiscriminatedUnion from "@fern-ui/core-utils/visitDiscriminatedUnion"; +import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; import { decodeJwt } from "jose"; import { noop } from "ts-essentials"; import { PlaygroundAuthState } from "../types"; diff --git a/packages/ui/app/src/playground/utils/default-values.ts b/packages/ui/app/src/playground/utils/default-values.ts index 1783c06ba4..493f74e79f 100644 --- a/packages/ui/app/src/playground/utils/default-values.ts +++ b/packages/ui/app/src/playground/utils/default-values.ts @@ -7,7 +7,7 @@ import { unwrapObjectType, unwrapReference, } from "@fern-api/fdr-sdk/api-definition"; -import visitDiscriminatedUnion from "@fern-ui/core-utils/visitDiscriminatedUnion"; +import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; import { PlaygroundFormStateBody } from "../types"; export function getEmptyValueForObjectProperties( diff --git a/packages/ui/app/src/playground/utils/endpoints.ts b/packages/ui/app/src/playground/utils/endpoints.ts index d0c59c1a2d..b9364cfda2 100644 --- a/packages/ui/app/src/playground/utils/endpoints.ts +++ b/packages/ui/app/src/playground/utils/endpoints.ts @@ -1,5 +1,5 @@ import { ExampleEndpointCall } from "@fern-api/fdr-sdk/api-definition"; -import { EMPTY_OBJECT } from "@fern-ui/core-utils"; +import { EMPTY_OBJECT } from "@fern-api/ui-core-utils"; import { mapValues } from "lodash-es"; import { PlaygroundEndpointRequestFormState, PlaygroundFormDataEntryValue } from "../types"; import { EndpointContext } from "../types/endpoint-context"; diff --git a/packages/ui/app/src/playground/utils/match-typeref.ts b/packages/ui/app/src/playground/utils/match-typeref.ts index d633ff7c79..88722ce5c4 100644 --- a/packages/ui/app/src/playground/utils/match-typeref.ts +++ b/packages/ui/app/src/playground/utils/match-typeref.ts @@ -5,8 +5,8 @@ import { unwrapObjectType, unwrapReference, } from "@fern-api/fdr-sdk/api-definition"; -import { isPlainObject } from "@fern-ui/core-utils"; -import visitDiscriminatedUnion from "@fern-ui/core-utils/visitDiscriminatedUnion"; +import { isPlainObject } from "@fern-api/ui-core-utils"; +import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; export function matchesTypeReference( shape: TypeShapeOrReference, diff --git a/packages/ui/app/src/playground/utils/oauth.ts b/packages/ui/app/src/playground/utils/oauth.ts index c68509c3c0..981d522ac7 100644 --- a/packages/ui/app/src/playground/utils/oauth.ts +++ b/packages/ui/app/src/playground/utils/oauth.ts @@ -1,6 +1,6 @@ import { APIV1Read } from "@fern-api/fdr-sdk"; import { EndpointDefinition, buildEndpointUrl } from "@fern-api/fdr-sdk/api-definition"; -import { unknownToString, visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { unknownToString, visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import jsonpath from "jsonpath"; import { mapValues } from "lodash-es"; import { executeProxyRest } from "../fetch-utils/executeProxyRest"; diff --git a/packages/ui/app/src/playground/utils/serialize.ts b/packages/ui/app/src/playground/utils/serialize.ts index cb0ceae18b..9ab5446a4a 100644 --- a/packages/ui/app/src/playground/utils/serialize.ts +++ b/packages/ui/app/src/playground/utils/serialize.ts @@ -1,5 +1,5 @@ import { FormDataField, HttpRequestBodyShape } from "@fern-api/fdr-sdk/api-definition"; -import { assertNever, isNonNullish } from "@fern-ui/core-utils"; +import { assertNever, isNonNullish } from "@fern-api/ui-core-utils"; import { compact } from "lodash-es"; import { blobToDataURL } from "../fetch-utils/blobToDataURL"; import { PlaygroundFormStateBody, ProxyRequest, SerializableFile, SerializableFormDataEntryValue } from "../types"; diff --git a/packages/ui/app/src/playground/utils/utils.ts b/packages/ui/app/src/playground/utils/utils.ts index e45ccf9bbf..ff3542af17 100644 --- a/packages/ui/app/src/playground/utils/utils.ts +++ b/packages/ui/app/src/playground/utils/utils.ts @@ -6,7 +6,7 @@ import { unwrapObjectType, unwrapReference, } from "@fern-api/fdr-sdk/api-definition"; -import { isPlainObject, visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { isPlainObject, visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; export function castToRecord(value: unknown): Record { if (!isPlainObject(value)) { diff --git a/packages/ui/app/src/resolver/ApiDefinitionResolver.ts b/packages/ui/app/src/resolver/ApiDefinitionResolver.ts index 639c910edb..dfbe13ff26 100644 --- a/packages/ui/app/src/resolver/ApiDefinitionResolver.ts +++ b/packages/ui/app/src/resolver/ApiDefinitionResolver.ts @@ -1,6 +1,6 @@ import type { DocsV1Read } from "@fern-api/fdr-sdk"; import type * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { isNonNullish, visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { isNonNullish, visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import type { FeatureFlags } from "@fern-ui/fern-docs-utils"; import { FernRegistry } from "../../../../fdr-sdk/src/client/generated"; import { type MDX_SERIALIZER } from "../mdx/bundler"; diff --git a/packages/ui/app/src/resolver/ApiEndpointResolver.ts b/packages/ui/app/src/resolver/ApiEndpointResolver.ts index fb594b19f5..2341daeed7 100644 --- a/packages/ui/app/src/resolver/ApiEndpointResolver.ts +++ b/packages/ui/app/src/resolver/ApiEndpointResolver.ts @@ -1,6 +1,6 @@ import { APIV1Read } from "@fern-api/fdr-sdk/client/types"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import type { FeatureFlags } from "@fern-ui/fern-docs-utils"; import { compact, mapValues } from "lodash-es"; import { sortKeysByShape } from "../api-reference/examples/sortKeysByShape"; diff --git a/packages/ui/app/src/resolver/ApiTypeResolver.ts b/packages/ui/app/src/resolver/ApiTypeResolver.ts index e19a45bc6a..ae9d6481af 100644 --- a/packages/ui/app/src/resolver/ApiTypeResolver.ts +++ b/packages/ui/app/src/resolver/ApiTypeResolver.ts @@ -1,6 +1,6 @@ import { FernNavigation } from "@fern-api/fdr-sdk"; import type { APIV1Read } from "@fern-api/fdr-sdk/client/types"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { once } from "lodash-es"; import { MDX_SERIALIZER } from "../mdx/bundler"; import { FernSerializeMdxOptions } from "../mdx/types"; diff --git a/packages/ui/app/src/resolver/SchemaWithExample.ts b/packages/ui/app/src/resolver/SchemaWithExample.ts index 8ac70271f2..783dd56a52 100644 --- a/packages/ui/app/src/resolver/SchemaWithExample.ts +++ b/packages/ui/app/src/resolver/SchemaWithExample.ts @@ -1,5 +1,5 @@ import type { APIV1Read } from "@fern-api/fdr-sdk/client/types"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { noop } from "ts-essentials"; import { ResolvedCodeSnippet, diff --git a/packages/ui/app/src/resolver/resolveApiEndpointPage.ts b/packages/ui/app/src/resolver/resolveApiEndpointPage.ts index 0c5f2530e7..1288dde119 100644 --- a/packages/ui/app/src/resolver/resolveApiEndpointPage.ts +++ b/packages/ui/app/src/resolver/resolveApiEndpointPage.ts @@ -1,6 +1,6 @@ import type { APIV1Read } from "@fern-api/fdr-sdk"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import type { FeatureFlags } from "@fern-ui/fern-docs-utils"; import type { MDX_SERIALIZER } from "../mdx/bundler"; import type { FernSerializeMdxOptions } from "../mdx/types"; diff --git a/packages/ui/app/src/resolver/resolveChangelogPage.ts b/packages/ui/app/src/resolver/resolveChangelogPage.ts index c3d27e6953..0228fc1c39 100644 --- a/packages/ui/app/src/resolver/resolveChangelogPage.ts +++ b/packages/ui/app/src/resolver/resolveChangelogPage.ts @@ -1,6 +1,6 @@ import type { DocsV1Read } from "@fern-api/fdr-sdk"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { isNonNullish } from "@fern-ui/core-utils"; +import { isNonNullish } from "@fern-api/ui-core-utils"; import type { MDX_SERIALIZER } from "../mdx/bundler"; import type { FernSerializeMdxOptions } from "../mdx/types"; import type { DocsContent } from "./DocsContent"; diff --git a/packages/ui/app/src/resolver/resolveCodeSnippets.ts b/packages/ui/app/src/resolver/resolveCodeSnippets.ts index f16133da67..f3ebc9aa4e 100644 --- a/packages/ui/app/src/resolver/resolveCodeSnippets.ts +++ b/packages/ui/app/src/resolver/resolveCodeSnippets.ts @@ -1,6 +1,6 @@ import { cleanLanguage } from "@fern-api/fdr-sdk/api-definition"; import type { APIV1Read } from "@fern-api/fdr-sdk/client/types"; -import { unknownToString, visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { unknownToString, visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { HTTPSnippet, type HarRequest, type TargetId } from "httpsnippet-lite"; import { noop } from "ts-essentials"; import { convertEndpointExampleToHttpRequestExample } from "../api-reference/examples/HttpRequestExample"; diff --git a/packages/ui/app/src/resolver/types.ts b/packages/ui/app/src/resolver/types.ts index b741b4444a..3eef69b029 100644 --- a/packages/ui/app/src/resolver/types.ts +++ b/packages/ui/app/src/resolver/types.ts @@ -1,7 +1,7 @@ import { APIV1Read, DocsV1Read, FdrAPI } from "@fern-api/fdr-sdk/client/types"; import type * as FernDocs from "@fern-api/fdr-sdk/docs"; import type * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { assertNever } from "@fern-ui/core-utils"; +import { assertNever } from "@fern-api/ui-core-utils"; import { sortBy } from "lodash-es"; import { UnreachableCaseError } from "ts-essentials"; import { parse } from "url"; diff --git a/packages/ui/app/src/resolver/url.ts b/packages/ui/app/src/resolver/url.ts index 05bbe0b7e2..81fce367cc 100644 --- a/packages/ui/app/src/resolver/url.ts +++ b/packages/ui/app/src/resolver/url.ts @@ -1,4 +1,4 @@ -import { unknownToString } from "@fern-ui/core-utils"; +import { unknownToString } from "@fern-api/ui-core-utils"; import { ResolvedEndpointPathParts } from "./types"; /** diff --git a/packages/ui/app/src/search/SearchHit.tsx b/packages/ui/app/src/search/SearchHit.tsx index 191cd92cd1..20d32f493e 100644 --- a/packages/ui/app/src/search/SearchHit.tsx +++ b/packages/ui/app/src/search/SearchHit.tsx @@ -1,5 +1,5 @@ import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { getSlugForSearchRecord, type SearchRecord } from "@fern-ui/search-utils"; import cn from "clsx"; import Link from "next/link"; diff --git a/packages/ui/app/src/search/algolia/SearchBox.tsx b/packages/ui/app/src/search/algolia/SearchBox.tsx index a855c97bf2..d9b587f0cb 100644 --- a/packages/ui/app/src/search/algolia/SearchBox.tsx +++ b/packages/ui/app/src/search/algolia/SearchBox.tsx @@ -1,5 +1,5 @@ +import { PLATFORM } from "@fern-api/ui-core-utils"; import { FernButton, FernInput } from "@fern-ui/components"; -import { PLATFORM } from "@fern-ui/core-utils"; import { useKeyboardCommand, useKeyboardPress } from "@fern-ui/react-commons"; import { Search, Xmark } from "iconoir-react"; import { atom, useSetAtom } from "jotai"; diff --git a/packages/ui/app/src/search/algolia/useAlgoliaSearchClient.ts b/packages/ui/app/src/search/algolia/useAlgoliaSearchClient.ts index 0d058268a9..80b69945e4 100644 --- a/packages/ui/app/src/search/algolia/useAlgoliaSearchClient.ts +++ b/packages/ui/app/src/search/algolia/useAlgoliaSearchClient.ts @@ -1,4 +1,4 @@ -import { assertNonNullish } from "@fern-ui/core-utils"; +import { assertNonNullish } from "@fern-api/ui-core-utils"; import algolia, { SearchClient } from "algoliasearch"; import { useAtomValue } from "jotai"; import { useMemo } from "react"; diff --git a/packages/ui/app/src/search/content/EndpointRecordV2.tsx b/packages/ui/app/src/search/content/EndpointRecordV2.tsx index e57400d86c..59141888f6 100644 --- a/packages/ui/app/src/search/content/EndpointRecordV2.tsx +++ b/packages/ui/app/src/search/content/EndpointRecordV2.tsx @@ -1,4 +1,4 @@ -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import type { EndpointSearchRecordV2 } from "@fern-ui/search-utils"; import cn from "clsx"; import { LongArrowDownLeft } from "iconoir-react"; diff --git a/packages/ui/app/src/search/content/EndpointRecordV3.tsx b/packages/ui/app/src/search/content/EndpointRecordV3.tsx index 6519ebcb07..4bc7ff0c13 100644 --- a/packages/ui/app/src/search/content/EndpointRecordV3.tsx +++ b/packages/ui/app/src/search/content/EndpointRecordV3.tsx @@ -1,5 +1,5 @@ import type { Algolia } from "@fern-api/fdr-sdk/client/types"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import cn from "clsx"; import { LongArrowDownLeft } from "iconoir-react"; import { HttpMethodTag } from "../../components/HttpMethodTag"; diff --git a/packages/ui/app/src/search/content/EndpointRecordV4.tsx b/packages/ui/app/src/search/content/EndpointRecordV4.tsx index 0c8304bbeb..50901b42c1 100644 --- a/packages/ui/app/src/search/content/EndpointRecordV4.tsx +++ b/packages/ui/app/src/search/content/EndpointRecordV4.tsx @@ -1,5 +1,5 @@ import type { Algolia } from "@fern-api/fdr-sdk/client/types"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import cn from "clsx"; import { LongArrowDownLeft } from "iconoir-react"; import type { Hit } from "instantsearch.js"; diff --git a/packages/ui/app/src/search/content/FieldRecordV1.tsx b/packages/ui/app/src/search/content/FieldRecordV1.tsx index 6f840795ee..9b0c8bd5a7 100644 --- a/packages/ui/app/src/search/content/FieldRecordV1.tsx +++ b/packages/ui/app/src/search/content/FieldRecordV1.tsx @@ -1,5 +1,5 @@ -import visitDiscriminatedUnion from "@fern-ui/core-utils/visitDiscriminatedUnion"; import type { Algolia } from "@fern-api/fdr-sdk/client/types"; +import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; import cn from "clsx"; import { LongArrowDownLeft } from "iconoir-react"; import type { BaseHit, Hit } from "instantsearch.js"; diff --git a/packages/ui/app/src/search/useSearchTrigger.ts b/packages/ui/app/src/search/useSearchTrigger.ts index 14ad5b0a82..73ae8c0f81 100644 --- a/packages/ui/app/src/search/useSearchTrigger.ts +++ b/packages/ui/app/src/search/useSearchTrigger.ts @@ -1,4 +1,4 @@ -import { PLATFORM } from "@fern-ui/core-utils"; +import { PLATFORM } from "@fern-api/ui-core-utils"; import { useEventCallback, useKeyboardCommand, useKeyboardPress } from "@fern-ui/react-commons"; export function useSearchTrigger(setOpen: (open: boolean) => void): void { diff --git a/packages/ui/app/src/seo/getSeoProp.ts b/packages/ui/app/src/seo/getSeoProp.ts index a089520d35..257f9075b4 100644 --- a/packages/ui/app/src/seo/getSeoProp.ts +++ b/packages/ui/app/src/seo/getSeoProp.ts @@ -1,6 +1,6 @@ import { APIV1Read, DocsV1Read } from "@fern-api/fdr-sdk/client/types"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { assertNonNullish, visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { assertNonNullish, visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import type { LinkTag, MetaTag, NextSeoProps } from "@fern-ui/next-seo"; import { trim } from "lodash-es"; import { fromMarkdown } from "mdast-util-from-markdown"; diff --git a/packages/ui/app/src/sidebar/nodes/SidebarApiPackageChild.tsx b/packages/ui/app/src/sidebar/nodes/SidebarApiPackageChild.tsx index 56a706b555..8bb27966b2 100644 --- a/packages/ui/app/src/sidebar/nodes/SidebarApiPackageChild.tsx +++ b/packages/ui/app/src/sidebar/nodes/SidebarApiPackageChild.tsx @@ -1,5 +1,5 @@ import type * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { SidebarApiLeafNode } from "./SidebarApiLeafNode"; import { SidebarApiPackageNode } from "./SidebarApiPackageNode"; import { SidebarChangelogNode } from "./SidebarChangelogNode"; diff --git a/packages/ui/app/src/sidebar/nodes/SidebarNavigationChild.tsx b/packages/ui/app/src/sidebar/nodes/SidebarNavigationChild.tsx index 87665caa10..41747ea5f6 100644 --- a/packages/ui/app/src/sidebar/nodes/SidebarNavigationChild.tsx +++ b/packages/ui/app/src/sidebar/nodes/SidebarNavigationChild.tsx @@ -1,5 +1,5 @@ import type * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import clsx from "clsx"; import dynamic from "next/dynamic"; import { SidebarApiPackageNode } from "./SidebarApiPackageNode"; diff --git a/packages/ui/app/src/sidebar/nodes/SidebarRootNode.tsx b/packages/ui/app/src/sidebar/nodes/SidebarRootNode.tsx index 70ff7c4134..81e27c44ad 100644 --- a/packages/ui/app/src/sidebar/nodes/SidebarRootNode.tsx +++ b/packages/ui/app/src/sidebar/nodes/SidebarRootNode.tsx @@ -1,5 +1,5 @@ import type * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { memo } from "react"; import { SidebarGroupNode } from "./SidebarGroupNode"; import { SidebarRootApiReferenceNode } from "./SidebarRootApiReferenceNode"; diff --git a/packages/ui/app/src/themes/stylesheet/getLayoutVariables.ts b/packages/ui/app/src/themes/stylesheet/getLayoutVariables.ts index db5562da53..2caff06c84 100644 --- a/packages/ui/app/src/themes/stylesheet/getLayoutVariables.ts +++ b/packages/ui/app/src/themes/stylesheet/getLayoutVariables.ts @@ -1,5 +1,5 @@ import type { DocsV1Read } from "@fern-api/fdr-sdk/client/types"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; const CSS_VARIABLES = { SPACING_PAGE_WIDTH: "--spacing-page-width", diff --git a/packages/ui/app/src/type-shorthand/index.tsx b/packages/ui/app/src/type-shorthand/index.tsx index ad99dc2b71..7b5a9ed2c7 100644 --- a/packages/ui/app/src/type-shorthand/index.tsx +++ b/packages/ui/app/src/type-shorthand/index.tsx @@ -1,5 +1,5 @@ import { TypeDefinition, TypeShapeOrReference, unwrapReference } from "@fern-api/fdr-sdk/api-definition"; -import { unknownToString, visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { unknownToString, visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { uniq } from "lodash-es"; import { ReactNode } from "react"; diff --git a/packages/ui/app/src/util/endpoint.ts b/packages/ui/app/src/util/endpoint.ts index 32b7381613..d18eae057b 100644 --- a/packages/ui/app/src/util/endpoint.ts +++ b/packages/ui/app/src/util/endpoint.ts @@ -1,5 +1,5 @@ import type { APIV1Read } from "@fern-api/fdr-sdk/client/types"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { ResolvedEndpointDefinition, resolveEnvironment } from "../resolver/types"; export type EndpointPathPart = diff --git a/packages/ui/docs-bundle/next.config.mjs b/packages/ui/docs-bundle/next.config.mjs index b2dee496f4..1568e74484 100644 --- a/packages/ui/docs-bundle/next.config.mjs +++ b/packages/ui/docs-bundle/next.config.mjs @@ -48,7 +48,7 @@ const nextConfig = { "@fern-api/template-resolver", "@fern-ui/chatbot", "@fern-ui/components", - "@fern-ui/core-utils", + "@fern-api/ui-core-utils", "@fern-ui/fdr-utils", "@fern-ui/fern-docs-auth", "@fern-ui/fern-docs-edge-config", diff --git a/packages/ui/docs-bundle/package.json b/packages/ui/docs-bundle/package.json index f03fe33878..aca6a7b28d 100644 --- a/packages/ui/docs-bundle/package.json +++ b/packages/ui/docs-bundle/package.json @@ -33,7 +33,7 @@ "@fern-fern/proxy-sdk": "0.0.26", "@fern-ui/chatbot": "workspace:*", "@fern-ui/components": "workspace:*", - "@fern-ui/core-utils": "workspace:*", + "@fern-api/ui-core-utils": "workspace:*", "@fern-ui/fdr-utils": "workspace:*", "@fern-ui/fern-docs-auth": "workspace:*", "@fern-ui/fern-docs-edge-config": "workspace:*", diff --git a/packages/ui/docs-bundle/src/pages/api/fern-docs/changelog.ts b/packages/ui/docs-bundle/src/pages/api/fern-docs/changelog.ts index 59bbbc0c47..2c02e3655c 100644 --- a/packages/ui/docs-bundle/src/pages/api/fern-docs/changelog.ts +++ b/packages/ui/docs-bundle/src/pages/api/fern-docs/changelog.ts @@ -3,7 +3,7 @@ import { getXFernHostNode } from "@/server/xfernhost/node"; import type { DocsV1Read } from "@fern-api/fdr-sdk/client/types"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; import { NodeCollector } from "@fern-api/fdr-sdk/navigation"; -import { assertNever } from "@fern-ui/core-utils"; +import { assertNever } from "@fern-api/ui-core-utils"; import { COOKIE_FERN_TOKEN } from "@fern-ui/fern-docs-utils"; import { getFrontmatter } from "@fern-ui/ui"; import { Feed, Item } from "feed"; diff --git a/packages/ui/docs-bundle/src/pages/api/fern-docs/proxy/grpc.ts b/packages/ui/docs-bundle/src/pages/api/fern-docs/proxy/grpc.ts index 78e78cc665..93b42f1eff 100644 --- a/packages/ui/docs-bundle/src/pages/api/fern-docs/proxy/grpc.ts +++ b/packages/ui/docs-bundle/src/pages/api/fern-docs/proxy/grpc.ts @@ -1,7 +1,7 @@ import { buildFormData } from "@/server/buildFormData"; import { resolveSerializableFile } from "@/server/resolveSerializableFile"; +import { assertNever } from "@fern-api/ui-core-utils"; import { FernProxyClient } from "@fern-fern/proxy-sdk"; -import { assertNever } from "@fern-ui/core-utils"; import type { ProxyRequest } from "@fern-ui/ui"; import type { NextApiRequest, NextApiResponse } from "next/types"; import { type BodyInit } from "node-fetch"; diff --git a/packages/ui/docs-bundle/src/pages/api/fern-docs/proxy/rest.ts b/packages/ui/docs-bundle/src/pages/api/fern-docs/proxy/rest.ts index 4b39994fbf..3851a8a2d6 100644 --- a/packages/ui/docs-bundle/src/pages/api/fern-docs/proxy/rest.ts +++ b/packages/ui/docs-bundle/src/pages/api/fern-docs/proxy/rest.ts @@ -1,6 +1,6 @@ import { buildFormData } from "@/server/buildFormData"; import { resolveSerializableFile } from "@/server/resolveSerializableFile"; -import { assertNever } from "@fern-ui/core-utils"; +import { assertNever } from "@fern-api/ui-core-utils"; import type { ProxyRequest } from "@fern-ui/ui"; import { ProxyRequestSchema } from "@fern-ui/ui"; import type { NextApiRequest, NextApiResponse } from "next/types"; diff --git a/packages/ui/docs-bundle/src/pages/api/fern-docs/search/cohere.ts b/packages/ui/docs-bundle/src/pages/api/fern-docs/search/cohere.ts index 78437432b9..7bfa7889be 100644 --- a/packages/ui/docs-bundle/src/pages/api/fern-docs/search/cohere.ts +++ b/packages/ui/docs-bundle/src/pages/api/fern-docs/search/cohere.ts @@ -1,7 +1,7 @@ import { getXFernHostEdge } from "@/server/xfernhost/edge"; import { createFetchRequester } from "@algolia/requester-fetch"; import { Algolia, FdrAPI } from "@fern-api/fdr-sdk/client/types"; -import { assertNonNullish } from "@fern-ui/core-utils"; +import { assertNonNullish } from "@fern-api/ui-core-utils"; import { getContentForSearchRecord, getSlugForSearchRecord, getTitleForSearchRecord } from "@fern-ui/search-utils"; import { provideRegistryService } from "@fern-ui/ui"; import { kv } from "@vercel/kv"; diff --git a/packages/ui/docs-bundle/src/pages/api/fern-docs/sitemap.xml.ts b/packages/ui/docs-bundle/src/pages/api/fern-docs/sitemap.xml.ts index dc8513a67b..d08899de24 100644 --- a/packages/ui/docs-bundle/src/pages/api/fern-docs/sitemap.xml.ts +++ b/packages/ui/docs-bundle/src/pages/api/fern-docs/sitemap.xml.ts @@ -2,7 +2,7 @@ import { DocsLoader } from "@/server/DocsLoader"; import { conformTrailingSlash } from "@/server/trailingSlash"; import { getXFernHostEdge } from "@/server/xfernhost/edge"; import { NodeCollector } from "@fern-api/fdr-sdk/navigation"; -import { withDefaultProtocol } from "@fern-ui/core-utils"; +import { withDefaultProtocol } from "@fern-api/ui-core-utils"; import { COOKIE_FERN_TOKEN } from "@fern-ui/fern-docs-utils"; import { NextRequest, NextResponse } from "next/server"; import urljoin from "url-join"; diff --git a/packages/ui/docs-bundle/src/server/buildFormData.ts b/packages/ui/docs-bundle/src/server/buildFormData.ts index 9deff274fa..eef7af976e 100644 --- a/packages/ui/docs-bundle/src/server/buildFormData.ts +++ b/packages/ui/docs-bundle/src/server/buildFormData.ts @@ -1,4 +1,4 @@ -import { assertNever, unknownToString } from "@fern-ui/core-utils"; +import { assertNever, unknownToString } from "@fern-api/ui-core-utils"; import type { SerializableFormDataEntryValue } from "@fern-ui/ui"; import FormData from "form-data"; import { resolveSerializableFile } from "./resolveSerializableFile"; diff --git a/packages/ui/docs-bundle/src/server/createSignedUrl.ts b/packages/ui/docs-bundle/src/server/createSignedUrl.ts index bcb442974b..f1fc0479e7 100644 --- a/packages/ui/docs-bundle/src/server/createSignedUrl.ts +++ b/packages/ui/docs-bundle/src/server/createSignedUrl.ts @@ -1,6 +1,6 @@ import { GetObjectCommand, PutObjectCommand } from "@aws-sdk/client-s3"; import { getSignedUrl } from "@aws-sdk/s3-request-presigner"; -import { assertNonNullish } from "@fern-ui/core-utils"; +import { assertNonNullish } from "@fern-api/ui-core-utils"; import { provideS3Client } from "./provideS3Client"; export const createPutSignedUrl = async (key: string, expiresIn: number = 60): Promise => { diff --git a/packages/ui/docs-bundle/src/server/getHarRequest.ts b/packages/ui/docs-bundle/src/server/getHarRequest.ts index f987dbb3fb..9c7a5e0e26 100644 --- a/packages/ui/docs-bundle/src/server/getHarRequest.ts +++ b/packages/ui/docs-bundle/src/server/getHarRequest.ts @@ -6,7 +6,7 @@ import { type ExampleEndpointCall, type ExampleEndpointRequest, } from "@fern-api/fdr-sdk/api-definition"; -import { unknownToString, visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { unknownToString, visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import type { HarRequest } from "httpsnippet-lite"; export function getHarRequest( diff --git a/packages/ui/docs-bundle/src/server/provideS3Client.ts b/packages/ui/docs-bundle/src/server/provideS3Client.ts index 96e4f88287..0c72441a28 100644 --- a/packages/ui/docs-bundle/src/server/provideS3Client.ts +++ b/packages/ui/docs-bundle/src/server/provideS3Client.ts @@ -1,5 +1,5 @@ import { S3Client } from "@aws-sdk/client-s3"; -import { assertNonNullish } from "@fern-ui/core-utils"; +import { assertNonNullish } from "@fern-api/ui-core-utils"; import { once } from "./once"; export const provideS3Client = once((): S3Client | undefined => { diff --git a/packages/ui/docs-bundle/src/server/withInitialProps.ts b/packages/ui/docs-bundle/src/server/withInitialProps.ts index a3528e24cb..ba8f859880 100644 --- a/packages/ui/docs-bundle/src/server/withInitialProps.ts +++ b/packages/ui/docs-bundle/src/server/withInitialProps.ts @@ -1,6 +1,6 @@ import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { withDefaultProtocol } from "@fern-ui/core-utils"; -import visitDiscriminatedUnion from "@fern-ui/core-utils/visitDiscriminatedUnion"; +import { withDefaultProtocol } from "@fern-api/ui-core-utils"; +import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; import { SidebarTab } from "@fern-ui/fdr-utils"; import { getAuthEdgeConfig, diff --git a/packages/ui/docs-bundle/src/server/withVersionSwitcherInfo.ts b/packages/ui/docs-bundle/src/server/withVersionSwitcherInfo.ts index 1c6fc404aa..1510002fd3 100644 --- a/packages/ui/docs-bundle/src/server/withVersionSwitcherInfo.ts +++ b/packages/ui/docs-bundle/src/server/withVersionSwitcherInfo.ts @@ -1,5 +1,5 @@ import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { isNonNullish } from "@fern-ui/core-utils"; +import { isNonNullish } from "@fern-api/ui-core-utils"; import { VersionSwitcherInfo } from "@fern-ui/fdr-utils"; interface WithVersionSwitcherInfoArgs { diff --git a/packages/ui/docs-bundle/src/server/xfernhost/dev.ts b/packages/ui/docs-bundle/src/server/xfernhost/dev.ts index 7493705241..6197220491 100644 --- a/packages/ui/docs-bundle/src/server/xfernhost/dev.ts +++ b/packages/ui/docs-bundle/src/server/xfernhost/dev.ts @@ -1,4 +1,4 @@ -import { withDefaultProtocol } from "@fern-ui/core-utils"; +import { withDefaultProtocol } from "@fern-api/ui-core-utils"; /** * Note: NEXT_PUBLIC_DOCS_DOMAIN is used for local development only. diff --git a/packages/ui/local-preview-bundle/next.config.mjs b/packages/ui/local-preview-bundle/next.config.mjs index a0a71658c5..adeb4ed02e 100644 --- a/packages/ui/local-preview-bundle/next.config.mjs +++ b/packages/ui/local-preview-bundle/next.config.mjs @@ -16,7 +16,7 @@ const nextConfig = { "@fern-api/template-resolver", "@fern-ui/chatbot", "@fern-ui/components", - "@fern-ui/core-utils", + "@fern-api/ui-core-utils", "@fern-ui/fdr-utils", "@fern-ui/loadable", "@fern-ui/next-seo", diff --git a/packages/ui/local-preview-bundle/package.json b/packages/ui/local-preview-bundle/package.json index 75d7b9c4e0..a08953c7c3 100644 --- a/packages/ui/local-preview-bundle/package.json +++ b/packages/ui/local-preview-bundle/package.json @@ -37,7 +37,7 @@ "@fern-api/fdr-sdk": "workspace:*", "@fern-ui/fern-docs-utils": "workspace:*", "@fern-ui/components": "workspace:*", - "@fern-ui/core-utils": "workspace:*", + "@fern-api/ui-core-utils": "workspace:*", "@fern-ui/fdr-utils": "workspace:*", "@fern-ui/ui": "workspace:*", "cssnano": "^6.0.3", diff --git a/packages/ui/local-preview-bundle/src/utils/getDocsPageProps.ts b/packages/ui/local-preview-bundle/src/utils/getDocsPageProps.ts index f3c42b1b70..6759875a05 100644 --- a/packages/ui/local-preview-bundle/src/utils/getDocsPageProps.ts +++ b/packages/ui/local-preview-bundle/src/utils/getDocsPageProps.ts @@ -1,6 +1,6 @@ import { FdrAPI, type DocsV2Read } from "@fern-api/fdr-sdk/client/types"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { SidebarTab } from "@fern-ui/fdr-utils"; import { DEFAULT_FEATURE_FLAGS, getRedirectForPath, type FeatureFlags } from "@fern-ui/fern-docs-utils"; import { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 88d0efc938..08cc1543f4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -456,7 +456,7 @@ importers: packages/commons/loadable: dependencies: - '@fern-ui/core-utils': + '@fern-api/ui-core-utils': specifier: workspace:* version: link:../core-utils devDependencies: @@ -616,7 +616,7 @@ importers: packages/commons/react/react-commons: dependencies: - '@fern-ui/core-utils': + '@fern-api/ui-core-utils': specifier: workspace:* version: link:../../core-utils fastdom: @@ -723,7 +723,7 @@ importers: '@fern-api/fdr-sdk': specifier: workspace:* version: link:../../fdr-sdk - '@fern-ui/core-utils': + '@fern-api/ui-core-utils': specifier: workspace:* version: link:../core-utils devDependencies: @@ -808,7 +808,7 @@ importers: packages/fdr-sdk: dependencies: - '@fern-ui/core-utils': + '@fern-api/ui-core-utils': specifier: workspace:* version: link:../commons/core-utils '@ungap/structured-clone': @@ -912,12 +912,12 @@ importers: '@fern-api/fdr-sdk': specifier: workspace:* version: link:../fdr-sdk + '@fern-api/ui-core-utils': + specifier: workspace:* + version: link:../commons/core-utils '@fern-fern/vercel': specifier: 0.0.7 version: 0.0.7 - '@fern-ui/core-utils': - specifier: workspace:* - version: link:../commons/core-utils '@types/jest': specifier: ^29.5.11 version: 29.5.12 @@ -1055,15 +1055,15 @@ importers: '@fern-api/template-resolver': specifier: workspace:* version: link:../../template-resolver + '@fern-api/ui-core-utils': + specifier: workspace:* + version: link:../../commons/core-utils '@fern-ui/chatbot': specifier: workspace:* version: link:../chatbot '@fern-ui/components': specifier: workspace:* version: link:../components - '@fern-ui/core-utils': - specifier: workspace:* - version: link:../../commons/core-utils '@fern-ui/fdr-utils': specifier: workspace:* version: link:../../commons/fdr-utils @@ -1754,6 +1754,9 @@ importers: '@fern-api/fdr-sdk': specifier: workspace:* version: link:../../fdr-sdk + '@fern-api/ui-core-utils': + specifier: workspace:* + version: link:../../commons/core-utils '@fern-api/venus-api-sdk': specifier: ^0.1.0 version: 0.1.1 @@ -1769,9 +1772,6 @@ importers: '@fern-ui/components': specifier: workspace:* version: link:../components - '@fern-ui/core-utils': - specifier: workspace:* - version: link:../../commons/core-utils '@fern-ui/fdr-utils': specifier: workspace:* version: link:../../commons/fdr-utils @@ -2317,12 +2317,12 @@ importers: '@fern-api/fdr-sdk': specifier: workspace:* version: link:../../fdr-sdk + '@fern-api/ui-core-utils': + specifier: workspace:* + version: link:../../commons/core-utils '@fern-ui/components': specifier: workspace:* version: link:../components - '@fern-ui/core-utils': - specifier: workspace:* - version: link:../../commons/core-utils '@fern-ui/fdr-utils': specifier: workspace:* version: link:../../commons/fdr-utils @@ -2460,6 +2460,9 @@ importers: '@fern-api/template-resolver': specifier: workspace:* version: link:../../packages/template-resolver + '@fern-api/ui-core-utils': + specifier: workspace:* + version: link:../../packages/commons/core-utils '@fern-api/venus-api-sdk': specifier: ^0.6.2-1-gbbd1ac5 version: 0.6.2-1-gbbd1ac5 @@ -2469,9 +2472,6 @@ importers: '@fern-fern/revalidation-sdk': specifier: 0.0.9 version: 0.0.9 - '@fern-ui/core-utils': - specifier: workspace:* - version: link:../../packages/commons/core-utils '@prisma/client': specifier: 5.13.0 version: 5.13.0(prisma@5.13.0) @@ -16672,10 +16672,10 @@ snapshots: '@aws-crypto/sha1-browser': 3.0.0 '@aws-crypto/sha256-browser': 3.0.0 '@aws-crypto/sha256-js': 3.0.0 - '@aws-sdk/client-sso-oidc': 3.572.0(@aws-sdk/client-sts@3.572.0) - '@aws-sdk/client-sts': 3.572.0 + '@aws-sdk/client-sso-oidc': 3.572.0 + '@aws-sdk/client-sts': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0) '@aws-sdk/core': 3.572.0 - '@aws-sdk/credential-provider-node': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0(@aws-sdk/client-sts@3.572.0))(@aws-sdk/client-sts@3.572.0) + '@aws-sdk/credential-provider-node': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0)(@aws-sdk/client-sts@3.572.0(@aws-sdk/client-sso-oidc@3.572.0)) '@aws-sdk/middleware-bucket-endpoint': 3.568.0 '@aws-sdk/middleware-expect-continue': 3.572.0 '@aws-sdk/middleware-flexible-checksums': 3.572.0 @@ -16736,7 +16736,7 @@ snapshots: '@aws-crypto/sha256-js': 3.0.0 '@aws-sdk/client-sts': 3.572.0 '@aws-sdk/core': 3.572.0 - '@aws-sdk/credential-provider-node': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0)(@aws-sdk/client-sts@3.572.0) + '@aws-sdk/credential-provider-node': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0)(@aws-sdk/client-sts@3.572.0(@aws-sdk/client-sso-oidc@3.572.0)) '@aws-sdk/middleware-host-header': 3.567.0 '@aws-sdk/middleware-logger': 3.568.0 '@aws-sdk/middleware-recursion-detection': 3.567.0 @@ -16870,7 +16870,52 @@ snapshots: '@aws-crypto/sha256-js': 3.0.0 '@aws-sdk/client-sso-oidc': 3.572.0 '@aws-sdk/core': 3.572.0 - '@aws-sdk/credential-provider-node': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0(@aws-sdk/client-sts@3.572.0))(@aws-sdk/client-sts@3.572.0) + '@aws-sdk/credential-provider-node': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0)(@aws-sdk/client-sts@3.572.0) + '@aws-sdk/middleware-host-header': 3.567.0 + '@aws-sdk/middleware-logger': 3.568.0 + '@aws-sdk/middleware-recursion-detection': 3.567.0 + '@aws-sdk/middleware-user-agent': 3.572.0 + '@aws-sdk/region-config-resolver': 3.572.0 + '@aws-sdk/types': 3.567.0 + '@aws-sdk/util-endpoints': 3.572.0 + '@aws-sdk/util-user-agent-browser': 3.567.0 + '@aws-sdk/util-user-agent-node': 3.568.0 + '@smithy/config-resolver': 2.2.0 + '@smithy/core': 1.4.2 + '@smithy/fetch-http-handler': 2.5.0 + '@smithy/hash-node': 2.2.0 + '@smithy/invalid-dependency': 2.2.0 + '@smithy/middleware-content-length': 2.2.0 + '@smithy/middleware-endpoint': 2.5.1 + '@smithy/middleware-retry': 2.3.1 + '@smithy/middleware-serde': 2.3.0 + '@smithy/middleware-stack': 2.2.0 + '@smithy/node-config-provider': 2.3.0 + '@smithy/node-http-handler': 2.5.0 + '@smithy/protocol-http': 3.3.0 + '@smithy/smithy-client': 2.5.1 + '@smithy/types': 2.12.0 + '@smithy/url-parser': 2.2.0 + '@smithy/util-base64': 2.3.0 + '@smithy/util-body-length-browser': 2.2.0 + '@smithy/util-body-length-node': 2.3.0 + '@smithy/util-defaults-mode-browser': 2.2.1 + '@smithy/util-defaults-mode-node': 2.3.1 + '@smithy/util-endpoints': 1.2.0 + '@smithy/util-middleware': 2.2.0 + '@smithy/util-retry': 2.2.0 + '@smithy/util-utf8': 2.3.0 + tslib: 2.6.2 + transitivePeerDependencies: + - aws-crt + + '@aws-sdk/client-sts@3.572.0(@aws-sdk/client-sso-oidc@3.572.0)': + dependencies: + '@aws-crypto/sha256-browser': 3.0.0 + '@aws-crypto/sha256-js': 3.0.0 + '@aws-sdk/client-sso-oidc': 3.572.0 + '@aws-sdk/core': 3.572.0 + '@aws-sdk/credential-provider-node': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0)(@aws-sdk/client-sts@3.572.0(@aws-sdk/client-sso-oidc@3.572.0)) '@aws-sdk/middleware-host-header': 3.567.0 '@aws-sdk/middleware-logger': 3.568.0 '@aws-sdk/middleware-recursion-detection': 3.567.0 @@ -16907,6 +16952,7 @@ snapshots: '@smithy/util-utf8': 2.3.0 tslib: 2.6.2 transitivePeerDependencies: + - '@aws-sdk/client-sso-oidc' - aws-crt '@aws-sdk/core@3.572.0': @@ -16955,6 +17001,23 @@ snapshots: - '@aws-sdk/client-sso-oidc' - aws-crt + '@aws-sdk/credential-provider-ini@3.572.0(@aws-sdk/client-sso-oidc@3.572.0)(@aws-sdk/client-sts@3.572.0(@aws-sdk/client-sso-oidc@3.572.0))': + dependencies: + '@aws-sdk/client-sts': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0) + '@aws-sdk/credential-provider-env': 3.568.0 + '@aws-sdk/credential-provider-process': 3.572.0 + '@aws-sdk/credential-provider-sso': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0) + '@aws-sdk/credential-provider-web-identity': 3.568.0(@aws-sdk/client-sts@3.572.0) + '@aws-sdk/types': 3.567.0 + '@smithy/credential-provider-imds': 2.3.0 + '@smithy/property-provider': 2.2.0 + '@smithy/shared-ini-file-loader': 2.4.0 + '@smithy/types': 2.12.0 + tslib: 2.6.2 + transitivePeerDependencies: + - '@aws-sdk/client-sso-oidc' + - aws-crt + '@aws-sdk/credential-provider-ini@3.572.0(@aws-sdk/client-sso-oidc@3.572.0)(@aws-sdk/client-sts@3.572.0)': dependencies: '@aws-sdk/client-sts': 3.572.0 @@ -16991,6 +17054,25 @@ snapshots: - '@aws-sdk/client-sts' - aws-crt + '@aws-sdk/credential-provider-node@3.572.0(@aws-sdk/client-sso-oidc@3.572.0)(@aws-sdk/client-sts@3.572.0(@aws-sdk/client-sso-oidc@3.572.0))': + dependencies: + '@aws-sdk/credential-provider-env': 3.568.0 + '@aws-sdk/credential-provider-http': 3.568.0 + '@aws-sdk/credential-provider-ini': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0)(@aws-sdk/client-sts@3.572.0(@aws-sdk/client-sso-oidc@3.572.0)) + '@aws-sdk/credential-provider-process': 3.572.0 + '@aws-sdk/credential-provider-sso': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0) + '@aws-sdk/credential-provider-web-identity': 3.568.0(@aws-sdk/client-sts@3.572.0) + '@aws-sdk/types': 3.567.0 + '@smithy/credential-provider-imds': 2.3.0 + '@smithy/property-provider': 2.2.0 + '@smithy/shared-ini-file-loader': 2.4.0 + '@smithy/types': 2.12.0 + tslib: 2.6.2 + transitivePeerDependencies: + - '@aws-sdk/client-sso-oidc' + - '@aws-sdk/client-sts' + - aws-crt + '@aws-sdk/credential-provider-node@3.572.0(@aws-sdk/client-sso-oidc@3.572.0)(@aws-sdk/client-sts@3.572.0)': dependencies: '@aws-sdk/credential-provider-env': 3.568.0 @@ -17046,7 +17128,7 @@ snapshots: '@aws-sdk/credential-provider-web-identity@3.568.0(@aws-sdk/client-sts@3.572.0)': dependencies: - '@aws-sdk/client-sts': 3.572.0 + '@aws-sdk/client-sts': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0) '@aws-sdk/types': 3.567.0 '@smithy/property-provider': 2.2.0 '@smithy/types': 2.12.0 diff --git a/servers/fdr/package.json b/servers/fdr/package.json index 7d3b8bdd97..1e8db65487 100644 --- a/servers/fdr/package.json +++ b/servers/fdr/package.json @@ -18,7 +18,7 @@ "@fern-api/template-resolver": "workspace:*", "@fern-api/venus-api-sdk": "^0.6.2-1-gbbd1ac5", "@fern-fern/fern-docs-sdk": "0.0.5", - "@fern-ui/core-utils": "workspace:*", + "@fern-api/ui-core-utils": "workspace:*", "@prisma/client": "5.13.0", "@sentry/cli": "^2.31.0", "@sentry/node": "^7.112.2", diff --git a/servers/fdr/src/services/algolia/AlgoliaSearchRecordGenerator.ts b/servers/fdr/src/services/algolia/AlgoliaSearchRecordGenerator.ts index 3fc5bba119..09e7dbd1c0 100644 --- a/servers/fdr/src/services/algolia/AlgoliaSearchRecordGenerator.ts +++ b/servers/fdr/src/services/algolia/AlgoliaSearchRecordGenerator.ts @@ -9,7 +9,7 @@ import { visitDbNavigationTab, visitUnversionedDbNavigationConfig, } from "@fern-api/fdr-sdk"; -import { titleCase, visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { titleCase, visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import grayMatter from "gray-matter"; import { noop } from "lodash-es"; import { v4 as uuid } from "uuid"; diff --git a/servers/fdr/src/services/algolia/AlgoliaSearchRecordGeneratorV2.ts b/servers/fdr/src/services/algolia/AlgoliaSearchRecordGeneratorV2.ts index 78390b5c27..c919c97b72 100644 --- a/servers/fdr/src/services/algolia/AlgoliaSearchRecordGeneratorV2.ts +++ b/servers/fdr/src/services/algolia/AlgoliaSearchRecordGeneratorV2.ts @@ -10,7 +10,7 @@ import { visitDbNavigationTab, } from "@fern-api/fdr-sdk"; import { EndpointPathPart } from "@fern-api/fdr-sdk/src/client/APIV1Read"; -import { titleCase, visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { titleCase, visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { v4 as uuid } from "uuid"; import { BreadcrumbsInfo } from "../../api/generated/api"; import { LOGGER } from "../../app/FdrApplication";