Skip to content

Commit

Permalink
Rename @fern-api to @fern-ui (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachkirsch authored Aug 1, 2023
1 parent 225e82a commit 6709976
Show file tree
Hide file tree
Showing 81 changed files with 1,036 additions and 1,036 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ module.exports = {
"import/no-internal-modules": [
"error",
{
forbid: ["@fern-api/*/**"],
forbid: ["@fern-ui/*/**"],
},
],
"@typescript-eslint/no-base-to-string": "error",
Expand Down
2 changes: 1 addition & 1 deletion .mrlint.root.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"defaultScope": "@fern-api",
"defaultScope": "@fern-ui",
"packages": "packages/**"
}
1,650 changes: 825 additions & 825 deletions .pnp.cjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ FERN_NO_VERSION_REDIRECTION=true node <path to CLI> <args>

To build and run the NextJS docs UI, run either:

- `yarn workspace @fern-api/fe-bundle dev:fern-dev`. This compiles and runs a NextJS app that communicates with our dev cloud environment.
- `yarn workspace @fern-ui/fe-bundle dev:fern-dev`. This compiles and runs a NextJS app that communicates with our dev cloud environment.

- `yarn workspace @fern-api/fe-bundle dev:fern-prod`. This compiles and runs a NextJS app that communicates with our cloud production environment.
- `yarn workspace @fern-ui/fe-bundle dev:fern-prod`. This compiles and runs a NextJS app that communicates with our cloud production environment.

The frontend is served at `localhost:3000`. You can configure which docs are loaded by using `.env.local`:

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"!packages/**/generated"
],
"scripts": {
"clean": "yarn workspace @fern-api/compile-root run clean",
"compile": "yarn workspace @fern-api/compile-root run compile",
"clean": "yarn workspace @fern-ui/compile-root run clean",
"compile": "yarn workspace @fern-ui/compile-root run compile",
"test": "yarn compile && jest --passWithNoTests",
"lint:eslint": "eslint --max-warnings 0 . --report-unused-disable-directives",
"lint:eslint:fix": "yarn lint:eslint --fix",
Expand All @@ -27,7 +27,7 @@
"depcheck": "yarn workspaces foreach --verbose --parallel run depcheck",
"publish": "yarn workspaces foreach --no-private --parallel --verbose npm publish --access public",
"add-workspace": "yarn mrlint add-workspace",
"fern-script": "yarn workspace @fern-api/scripts dist:cli && node $(yarn workspace @fern-api/scripts bin fern-scripts)",
"fern-script": "yarn workspace @fern-ui/scripts dist:cli && node $(yarn workspace @fern-ui/scripts bin fern-scripts)",
"check-docs-release-blockers": "yarn fern-script check-docs-release-blockers",
"root-package:check": "yarn fern-script check-root-package",
"root-package:fix": "yarn root-package:check --fix"
Expand Down
30 changes: 15 additions & 15 deletions packages/_root/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@fern-api/compile-root",
"name": "@fern-ui/compile-root",
"version": "0.0.0",
"repository": {
"type": "git",
Expand Down Expand Up @@ -27,20 +27,20 @@
"depcheck": ":"
},
"dependencies": {
"@fern-api/common-components": "workspace:*",
"@fern-api/contexted-dialog": "workspace:*",
"@fern-api/core-utils": "workspace:*",
"@fern-api/docs-deploy": "workspace:*",
"@fern-api/fonts": "workspace:*",
"@fern-api/loadable": "workspace:*",
"@fern-api/react-commons": "workspace:*",
"@fern-api/react-query-utils": "workspace:*",
"@fern-api/routing-utils": "workspace:*",
"@fern-api/scripts": "workspace:*",
"@fern-api/split-view": "workspace:*",
"@fern-api/theme": "workspace:*",
"@fern-api/toaster": "workspace:*",
"@fern-api/ui": "workspace:*"
"@fern-ui/common-components": "workspace:*",
"@fern-ui/contexted-dialog": "workspace:*",
"@fern-ui/core-utils": "workspace:*",
"@fern-ui/docs-deploy": "workspace:*",
"@fern-ui/fonts": "workspace:*",
"@fern-ui/loadable": "workspace:*",
"@fern-ui/react-commons": "workspace:*",
"@fern-ui/react-query-utils": "workspace:*",
"@fern-ui/routing-utils": "workspace:*",
"@fern-ui/scripts": "workspace:*",
"@fern-ui/split-view": "workspace:*",
"@fern-ui/theme": "workspace:*",
"@fern-ui/toaster": "workspace:*",
"@fern-ui/ui": "workspace:*"
},
"devDependencies": {
"@types/jest": "^29.0.3",
Expand Down
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-api/core-utils",
"name": "@fern-ui/core-utils",
"version": "0.0.0",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions packages/commons/loadable/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@fern-api/loadable",
"name": "@fern-ui/loadable",
"version": "0.0.0",
"repository": {
"type": "git",
Expand Down Expand Up @@ -27,7 +27,7 @@
"depcheck": "depcheck"
},
"dependencies": {
"@fern-api/core-utils": "workspace:*"
"@fern-ui/core-utils": "workspace:*"
},
"devDependencies": {
"@types/jest": "^29.0.3",
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-api/core-utils";
import { keys } from "@fern-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-api/core-utils";
import { assertNever } from "@fern-ui/core-utils";
import { isFailed, isLoaded, isLoading, isNotStartedLoading, Loadable } from "./Loadable";

export function visitLoadable<V, U, E = unknown>(
Expand Down
4 changes: 2 additions & 2 deletions packages/commons/react/common-components/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@fern-api/common-components",
"name": "@fern-ui/common-components",
"version": "0.0.0",
"repository": {
"type": "git",
Expand Down Expand Up @@ -31,7 +31,7 @@
"dependencies": {
"@blueprintjs/core": "^4.11.5",
"@blueprintjs/icons": "^4.4.0",
"@fern-api/loadable": "workspace:*",
"@fern-ui/loadable": "workspace:*",
"classnames": "^2.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Classes, EditableText, EditableTextProps } from "@blueprintjs/core";
import { getLoadableValue, isLoaded, Loadable } from "@fern-api/loadable";
import { getLoadableValue, isLoaded, Loadable } from "@fern-ui/loadable";
import classNames from "classnames";
import React, { useCallback, useEffect, useRef, useState } from "react";
import styles from "./AsyncEditableText.module.scss";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isFailed, isLoaded, Loadable } from "@fern-api/loadable";
import { isFailed, isLoaded, Loadable } from "@fern-ui/loadable";
import React from "react";

export declare namespace LoadableElement {
Expand Down
10 changes: 5 additions & 5 deletions packages/commons/react/contexted-dialog/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@fern-api/contexted-dialog",
"name": "@fern-ui/contexted-dialog",
"version": "0.0.0",
"repository": {
"type": "git",
Expand Down Expand Up @@ -30,10 +30,10 @@
},
"dependencies": {
"@blueprintjs/core": "^4.11.5",
"@fern-api/core-utils": "workspace:*",
"@fern-api/react-commons": "workspace:*",
"@fern-api/theme": "workspace:*",
"@fern-api/toaster": "workspace:*",
"@fern-ui/core-utils": "workspace:*",
"@fern-ui/react-commons": "workspace:*",
"@fern-ui/theme": "workspace:*",
"@fern-ui/toaster": "workspace:*",
"classnames": "^2.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ThemedDialog } from "@fern-api/theme";
import { ThemedDialog } from "@fern-ui/theme";
import classNames from "classnames";
import { createContext, useCallback, useContext } from "react";
import styles from "./createContextedDialog.module.scss";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { keys } from "@fern-api/core-utils";
import { keys } from "@fern-ui/core-utils";
import { createContextedDialog } from "./createContextedDialog";
import { EasyOpenDialogHooks, OpenDialogHooks, SingleContextedDialogProviderRenderer } from "./types";
import { typedCapitalize } from "./utils";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { keys } from "@fern-api/core-utils";
import { useBooleanState } from "@fern-api/react-commons";
import { keys } from "@fern-ui/core-utils";
import { useBooleanState } from "@fern-ui/react-commons";
import { PropsWithChildren, useCallback, useMemo } from "react";
import { createContextedDialogsProvider } from "../createContextedDialogsProvider";
import { SingleContextedDialogProviderProps, SingleContextedDialogProviderRenderer } from "../types";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Button, Classes, Intent } from "@blueprintjs/core";
import { assertNever, withMinimumTime } from "@fern-api/core-utils";
import { errorToast, Toast } from "@fern-api/toaster";
import { assertNever, withMinimumTime } from "@fern-ui/core-utils";
import { errorToast, Toast } from "@fern-ui/toaster";
import { useCallback, useReducer, useRef } from "react";
import { RenderFormDialogArgs } from "./types";

Expand Down
2 changes: 1 addition & 1 deletion packages/commons/react/fonts/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@fern-api/fonts",
"name": "@fern-ui/fonts",
"version": "0.0.0",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions packages/commons/react/react-commons/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@fern-api/react-commons",
"name": "@fern-ui/react-commons",
"version": "0.0.0",
"repository": {
"type": "git",
Expand Down Expand Up @@ -30,7 +30,7 @@
},
"dependencies": {
"@blueprintjs/core": "^4.11.5",
"@fern-api/core-utils": "workspace:*",
"@fern-ui/core-utils": "workspace:*",
"immer": "^9.0.15",
"react": "^18.2.0"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertNever } from "@fern-api/core-utils";
import { assertNever } from "@fern-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-api/core-utils";
import { assertNever } from "@fern-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-api/core-utils";
import { type Digit, type UppercaseLetter } from "@fern-ui/core-utils";
import { useEffect } from "react";

export declare namespace useKeyboardCommand {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { EditableTextProps } from "@blueprintjs/core";
import { assertNever } from "@fern-api/core-utils";
import { assertNever } from "@fern-ui/core-utils";
import produce from "immer";
import { useCallback, useReducer } from "react";

Expand Down
4 changes: 2 additions & 2 deletions packages/commons/react/react-query-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@fern-api/react-query-utils",
"name": "@fern-ui/react-query-utils",
"version": "0.0.0",
"repository": {
"type": "git",
Expand Down Expand Up @@ -29,7 +29,7 @@
"depcheck": "depcheck"
},
"dependencies": {
"@fern-api/loadable": "workspace:*",
"@fern-ui/loadable": "workspace:*",
"@tanstack/react-query": "^4.29.7",
"react": "^18.2.0"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Loadable } from "@fern-api/loadable";
import { Loadable } from "@fern-ui/loadable";
import { UseQueryResult } from "@tanstack/react-query";
import { visitUseQueryResult } from "./visitor";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { flatMapLoadable, Loadable, loaded, notStartedLoading } from "@fern-api/loadable";
import { flatMapLoadable, Loadable, loaded, notStartedLoading } from "@fern-ui/loadable";
import { Query, QueryFunction, QueryKey, UseQueryOptions } from "@tanstack/react-query";
import { useMemo } from "react";
import { TypedQueryKey } from "./TypedQueryKey";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { flatMapLoadable, isLoaded, Loadable } from "@fern-api/loadable";
import { flatMapLoadable, isLoaded, Loadable } from "@fern-ui/loadable";
import { QueryFunction, UseQueryOptions } from "@tanstack/react-query";
import { TypedQueryKey } from "./TypedQueryKey";
import { useNullableQuery } from "./useNullableQuery";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Loadable } from "@fern-api/loadable";
import { Loadable } from "@fern-ui/loadable";
import { QueryFunction, useQuery, UseQueryOptions } from "@tanstack/react-query";
import { useMemo } from "react";
import { convertUseQueryResultToLoadable } from "./convertUseQueryResultToLoadable";
Expand Down
2 changes: 1 addition & 1 deletion packages/commons/react/routing-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@fern-api/routing-utils",
"name": "@fern-ui/routing-utils",
"version": "0.0.0",
"repository": {
"type": "git",
Expand Down
6 changes: 3 additions & 3 deletions packages/commons/react/split-view/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@fern-api/split-view",
"name": "@fern-ui/split-view",
"version": "0.0.0",
"repository": {
"type": "git",
Expand Down Expand Up @@ -30,8 +30,8 @@
},
"dependencies": {
"@blueprintjs/core": "^4.11.5",
"@fern-api/core-utils": "workspace:*",
"@fern-api/react-commons": "workspace:*",
"@fern-ui/core-utils": "workspace:*",
"@fern-ui/react-commons": "workspace:*",
"classnames": "^2.3.1",
"lodash-es": "^4.17.21",
"react": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/commons/react/split-view/src/Pane.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertNever } from "@fern-api/core-utils";
import { assertNever } from "@fern-ui/core-utils";
import classNames from "classnames";
import { isFunction } from "lodash-es";
import React, { useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
Expand Down
4 changes: 2 additions & 2 deletions packages/commons/react/split-view/src/ResizeHandle.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assertNever, Values } from "@fern-api/core-utils";
import { useIsHovering } from "@fern-api/react-commons";
import { assertNever, Values } from "@fern-ui/core-utils";
import { useIsHovering } from "@fern-ui/react-commons";
import classNames from "classnames";
import React, { useCallback, useContext, useRef, useState } from "react";
import { DraggableCore, DraggableEvent, DraggableEventHandler } from "react-draggable";
Expand Down
2 changes: 1 addition & 1 deletion packages/commons/react/split-view/src/SplitView.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ResizeSensor } from "@blueprintjs/core";
import { useDimensions } from "@fern-api/react-commons";
import { useDimensions } from "@fern-ui/react-commons";
import classNames from "classnames";
import React, { useCallback, useMemo } from "react";
import { getRelevationDimensionForOrientation } from "./getRelevationDimensionForOrientation";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useBooleanState } from "@fern-api/react-commons";
import { useBooleanState } from "@fern-ui/react-commons";
import React, { useMemo } from "react";

export const SplitViewContext = React.createContext<SplitViewContextValue | undefined>(undefined);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assertNever } from "@fern-api/core-utils";
import { Dimensions } from "@fern-api/react-commons";
import { assertNever } from "@fern-ui/core-utils";
import { Dimensions } from "@fern-ui/react-commons";
import { Orientation } from "./types";

export function getRelevationDimensionForOrientation(dimensions: Dimensions, orientation: Orientation): number {
Expand Down
2 changes: 1 addition & 1 deletion packages/commons/react/theme/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@fern-api/theme",
"name": "@fern-ui/theme",
"version": "0.0.0",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/commons/react/toaster/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@fern-api/toaster",
"name": "@fern-ui/toaster",
"version": "0.0.0",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/mintlify/compiler/fern-generate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ groups:
version: 0.0.249
output:
location: npm
package-name: "@fern-api/plantstore"
package-name: "@fern-ui/plantstore"
token: ${NPM_TOKEN}
- name: fernapi/fern-java-sdk
version: 0.0.125
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/mintlify/compiler/generators.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ SDK for server-side usage. It can publish the SDK to npmjs.org (or any other npm
version: 0.7.2
output:
location: npm
package-name: "@fern-api/plantstore"
package-name: "@fern-ui/plantstore"
token: ${NPM_TOKEN}
config: # optional
namespaceExport: PlantStore
Expand All @@ -46,7 +46,7 @@ SDK for usage in the browser. It can publish the SDK to npmjs.org (or any other
version: 0.7.2
output:
location: npm
package-name: "@fern-api/plantstore"
package-name: "@fern-ui/plantstore"
token: ${NPM_TOKEN}
config: # optional
namespaceExport: PlantStore
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@fern-api/scripts",
"name": "@fern-ui/scripts",
"version": "0.0.0",
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit 6709976

Please sign in to comment.