Skip to content

Commit

Permalink
fix references
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Jun 6, 2024
1 parent 8ce76c0 commit 5d9b730
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { kebabCase, titleCase } from "@/utils";
import isEqual from "fast-deep-equal";
import { APIV1Db, APIV1Read, APIV1Write, FdrAPI } from "../../client";
import { kebabCase, titleCase } from "../../utils";
import { WithoutQuestionMarks } from "../utils/WithoutQuestionMarks";
import { assertNever } from "../utils/assertNever";
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { kebabCase } from "@/utils";
import {
DocsV1Db,
DocsV1Read,
Expand All @@ -10,6 +9,7 @@ import {
visitWriteNavigationConfig,
} from "../../client";
import { isNavigationTabLink } from "../../client/visitNavigationTab";
import { kebabCase } from "../../utils";
import { type WithoutQuestionMarks } from "../utils/WithoutQuestionMarks";
import { assertNever } from "../utils/assertNever";
import { DEFAULT_DARK_MODE_ACCENT_PRIMARY, DEFAULT_LIGHT_MODE_ACCENT_PRIMARY } from "../utils/colors";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isPlainObject } from "@/utils";
import { DocsV1Db } from "../../../client";
import { isPlainObject } from "../../../utils";
import { upgradeV1ToV2 } from "./upgradeV1ToV2";
import { upgradeV2ToV3 } from "./upgradeV2ToV3";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { mapValues } from "@/utils";
import { DocsV1Db } from "../../../client";
import { mapValues } from "../../../utils";

export function upgradeV2ToV3(v2: DocsV1Db.DocsDefinitionDb.V2): DocsV1Db.DocsDefinitionDb.V3 {
return {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { kebabCase } from "@/utils";
import tinycolor from "tinycolor2";
import { DocsV1Db, DocsV1Read, visitDbNavigationConfig, visitUnversionedDbNavigationConfig } from "../../client";
import { visitDbNavigationTab } from "../../client/visitNavigationTab";
import { kebabCase } from "../../utils";
import { WithoutQuestionMarks } from "../utils/WithoutQuestionMarks";
import { assertNever } from "../utils/assertNever";
import { DEFAULT_DARK_MODE_ACCENT_PRIMARY, DEFAULT_LIGHT_MODE_ACCENT_PRIMARY } from "../utils/colors";
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,5 +1,5 @@
import { once } from "@/utils";
import urljoin from "url-join";
import { once } from "../utils";
import { FernNavigation } from "./generated";
import {
NavigationNode,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { noop, titleCase, visitDiscriminatedUnion } from "@/utils";
import urljoin from "url-join";
import { APIV1Read, DocsV1Read } from "../../client";
import { noop, titleCase, visitDiscriminatedUnion } from "../../utils";
import { ApiDefinitionHolder } from "../ApiDefinitionHolder";
import { FernNavigation } from "../generated";
import { followRedirects } from "../utils";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assertNever, kebabCase, visitDiscriminatedUnion } from "@/utils";
import urljoin from "url-join";
import { APIV1Read, DocsV1Read, visitReadNavigationConfig, visitUnversionedReadNavigationConfig } from "../../client";
import { assertNever, kebabCase, visitDiscriminatedUnion } from "../../utils";
import { FernNavigation } from "../generated";
import { followRedirect, followRedirects } from "../utils";
import { convertAvailability } from "../utils/convertAvailability";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assertNever } from "@/utils";
import { APIV1Read, DocsV1Read } from "../../client";
import { assertNever } from "../../utils";
import { FernNavigation } from "../generated";

export function convertAvailability(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { mapValues } from "@/utils";
import { APIV1Read, DocsV2Read } from "../../client";
import { mapValues } from "../../utils";
import { NavigationConfigConverter } from "../converters/NavigationConfigConverter";

export function convertLoadDocsForUrlResponse(response: DocsV2Read.LoadDocsForUrlResponse) {
Expand Down
2 changes: 1 addition & 1 deletion packages/fdr-sdk/src/navigation/utils/findNode.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { noop, visitDiscriminatedUnion } from "@/utils";
import { noop, visitDiscriminatedUnion } from "../../utils";

import urljoin from "url-join";
import { NodeCollector } from "../NodeCollector";
Expand Down
2 changes: 1 addition & 1 deletion packages/fdr-sdk/src/navigation/utils/followRedirect.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { visitDiscriminatedUnion } from "@/utils";
import { visitDiscriminatedUnion } from "../../utils";
import { FernNavigation } from "../generated";
import { NavigationNode } from "../types/NavigationNode";

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 "@/utils";
import { visitDiscriminatedUnion } from "../../utils";
import { FernNavigation } from "../generated";
import { NavigationNode } from "../types/NavigationNode";

Expand Down
2 changes: 1 addition & 1 deletion packages/fdr-sdk/src/navigation/utils/getPageId.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { visitDiscriminatedUnion } from "@/utils";
import { visitDiscriminatedUnion } from "../../utils";
import { FernNavigation } from "../generated";
import { NavigationNodePage } from "../types";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { noop, visitDiscriminatedUnion } from "@/utils";
import { noop, visitDiscriminatedUnion } from "../../utils";

import { NavigationNode } from "../types/NavigationNode";

Expand Down
5 changes: 1 addition & 4 deletions packages/fdr-sdk/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
"isolatedModules": false,
"lib": ["ESNext", "DOM"],
"outDir": "./dist",
"rootDir": "./src",
"paths": {
"@/*": ["./src/*"]
}
"rootDir": "./src"
},
"include": ["./src/**/*"]
}

0 comments on commit 5d9b730

Please sign in to comment.