Skip to content

Commit

Permalink
update fern ui to fernapi
Browse files Browse the repository at this point in the history
  • Loading branch information
RohinBhargava committed Oct 9, 2024
1 parent d343083 commit 1c2d294
Show file tree
Hide file tree
Showing 147 changed files with 15,733 additions and 12,510 deletions.
2 changes: 1 addition & 1 deletion packages/commons/core-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@fern-ui/core-utils",
"name": "@fern-api/ui-core-utils",
"version": "0.0.0",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/commons/loadable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"depcheck": "depcheck"
},
"dependencies": {
"@fern-ui/core-utils": "workspace:*"
"@fern-api/ui-core-utils": "workspace:*"
},
"devDependencies": {
"@fern-platform/configs": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/commons/loadable/src/utils.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion packages/commons/loadable/src/visitor.ts
Original file line number Diff line number Diff line change
@@ -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<V, U, E = unknown>(
Expand Down
2 changes: 1 addition & 1 deletion packages/commons/react/react-commons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion packages/commons/react/react-commons/src/useIsHovering.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion packages/commons/search-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/commons/search-utils/src/SearchConfig.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/fdr-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/fdr-sdk/src/__test__/fixtures.test.ts
Original file line number Diff line number Diff line change
@@ -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 "..";
Expand Down
2 changes: 1 addition & 1 deletion packages/fdr-sdk/src/api-definition/migrators/v1ToV2.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
4 changes: 2 additions & 2 deletions packages/fdr-sdk/src/api-definition/snippets/curl.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions packages/fdr-sdk/src/api-definition/sort-keys.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
4 changes: 2 additions & 2 deletions packages/fdr-sdk/src/api-definition/transformer.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion packages/fdr-sdk/src/api-definition/typeid-visitor.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
4 changes: 2 additions & 2 deletions packages/fdr-sdk/src/api-definition/unwrap.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion packages/fdr-sdk/src/api-definition/url.ts
Original file line number Diff line number Diff line change
@@ -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<string, unknown> | undefined): string {
if (queryParameters == null) {
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import assertNever from "@fern-ui/core-utils/assertNever";
import assertNever from "@fern-api/ui-core-utils/assertNever";
import {
DocsV1Db,
DocsV1Read,
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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<string, APIV1Db.DbApiDefinition>) {
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion packages/fdr-sdk/src/navigation/ApiTypeIdVisitor.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion packages/fdr-sdk/src/navigation/NodeCollector.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion packages/fdr-sdk/src/navigation/migrators/v1ToV2.ts
Original file line number Diff line number Diff line change
@@ -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 "../..";

Expand Down
2 changes: 1 addition & 1 deletion packages/fdr-sdk/src/navigation/utils/createBreadcrumbs.ts
Original file line number Diff line number Diff line change
@@ -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 "../..";

Expand Down
2 changes: 1 addition & 1 deletion packages/fdr-sdk/src/navigation/utils/getApiReferenceId.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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 "../../../..";
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion packages/fdr-sdk/src/navigation/versions/v1/getPageId.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/healthchecks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/app/src/api-reference/ApiPackageContents.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/app/src/api-reference/ApiReferencePage.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/app/src/api-reference/SingleApiPageContent.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/app/src/api-reference/artifacts/SdkCard.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/app/src/api-reference/examples/code-example.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Loading

0 comments on commit 1c2d294

Please sign in to comment.