From df1a0c511873474a3aa495b8b16ef56c9961bb04 Mon Sep 17 00:00:00 2001 From: devjiwonchoi Date: Thu, 19 Dec 2024 04:59:16 +0900 Subject: [PATCH] Move files to `internal/components/Errors/` --- .../ErrorIndicator/ErrorIndicator.stories.tsx | 2 +- .../{ => Errors}/ErrorIndicator/ErrorIndicator.tsx | 6 +++--- .../ErrorOverlayLayout/ErrorOverlayLayout.stories.tsx | 2 +- .../ErrorOverlayLayout/ErrorOverlayLayout.tsx | 8 ++++---- .../_experimental/internal/container/BuildError.tsx | 2 +- .../_experimental/internal/container/Errors.tsx | 2 +- .../internal/container/RootLayoutMissingTagsError.tsx | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) rename packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/{ => Errors}/ErrorIndicator/ErrorIndicator.stories.tsx (95%) rename packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/{ => Errors}/ErrorIndicator/ErrorIndicator.tsx (89%) rename packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/{ => Errors}/ErrorOverlayLayout/ErrorOverlayLayout.stories.tsx (89%) rename packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/{ => Errors}/ErrorOverlayLayout/ErrorOverlayLayout.tsx (87%) diff --git a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/ErrorIndicator/ErrorIndicator.stories.tsx b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/Errors/ErrorIndicator/ErrorIndicator.stories.tsx similarity index 95% rename from packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/ErrorIndicator/ErrorIndicator.stories.tsx rename to packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/Errors/ErrorIndicator/ErrorIndicator.stories.tsx index a3aa2528e70e3..d6a4637f6eec7 100644 --- a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/ErrorIndicator/ErrorIndicator.stories.tsx +++ b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/Errors/ErrorIndicator/ErrorIndicator.stories.tsx @@ -1,6 +1,6 @@ import type { Meta, StoryObj } from '@storybook/react' import { ErrorIndicator } from './ErrorIndicator' -import { withShadowPortal } from '../../storybook/with-shadow-portal' +import { withShadowPortal } from '../../../storybook/with-shadow-portal' const meta: Meta = { title: 'ErrorIndicator', diff --git a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/ErrorIndicator/ErrorIndicator.tsx b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/Errors/ErrorIndicator/ErrorIndicator.tsx similarity index 89% rename from packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/ErrorIndicator/ErrorIndicator.tsx rename to packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/Errors/ErrorIndicator/ErrorIndicator.tsx index a0a473f69e29c..fc9523a095c83 100644 --- a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/ErrorIndicator/ErrorIndicator.tsx +++ b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/Errors/ErrorIndicator/ErrorIndicator.tsx @@ -1,6 +1,6 @@ -import type { ReadyRuntimeError } from '../../helpers/get-error-by-type' -import { Toast } from '../Toast' -import { CloseIcon } from '../../icons/CloseIcon' +import type { ReadyRuntimeError } from '../../../helpers/get-error-by-type' +import { Toast } from '../../Toast' +import { CloseIcon } from '../../../icons/CloseIcon' type ErrorIndicatorProps = { readyErrors: ReadyRuntimeError[] diff --git a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/ErrorOverlayLayout/ErrorOverlayLayout.stories.tsx b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/Errors/ErrorOverlayLayout/ErrorOverlayLayout.stories.tsx similarity index 89% rename from packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/ErrorOverlayLayout/ErrorOverlayLayout.stories.tsx rename to packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/Errors/ErrorOverlayLayout/ErrorOverlayLayout.stories.tsx index 0996dde10a860..4c0489c62cb7d 100644 --- a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/ErrorOverlayLayout/ErrorOverlayLayout.stories.tsx +++ b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/Errors/ErrorOverlayLayout/ErrorOverlayLayout.stories.tsx @@ -1,6 +1,6 @@ import type { Meta, StoryObj } from '@storybook/react' import { ErrorOverlayLayout } from './ErrorOverlayLayout' -import { withShadowPortal } from '../../storybook/with-shadow-portal' +import { withShadowPortal } from '../../../storybook/with-shadow-portal' const meta: Meta = { title: 'ErrorOverlayLayout', diff --git a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/ErrorOverlayLayout/ErrorOverlayLayout.tsx b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/Errors/ErrorOverlayLayout/ErrorOverlayLayout.tsx similarity index 87% rename from packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/ErrorOverlayLayout/ErrorOverlayLayout.tsx rename to packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/Errors/ErrorOverlayLayout/ErrorOverlayLayout.tsx index 3764634019c3f..06167e5747b2a 100644 --- a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/ErrorOverlayLayout/ErrorOverlayLayout.tsx +++ b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/Errors/ErrorOverlayLayout/ErrorOverlayLayout.tsx @@ -1,7 +1,7 @@ -import type { VersionInfo } from '../../../../../../../server/dev/parse-version-info' -import { Dialog, DialogHeader, DialogBody, DialogContent } from '../Dialog' -import { Overlay } from '../Overlay' -import { VersionStalenessInfo } from '../VersionStalenessInfo' +import type { VersionInfo } from '../../../../../../../../server/dev/parse-version-info' +import { Dialog, DialogHeader, DialogBody, DialogContent } from '../../Dialog' +import { Overlay } from '../../Overlay' +import { VersionStalenessInfo } from '../../VersionStalenessInfo' type ErrorOverlayLayoutProps = { errorType: diff --git a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/container/BuildError.tsx b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/container/BuildError.tsx index 9112354875d37..2411c696f037f 100644 --- a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/container/BuildError.tsx +++ b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/container/BuildError.tsx @@ -2,7 +2,7 @@ import * as React from 'react' import type { VersionInfo } from '../../../../../../server/dev/parse-version-info' import { Terminal } from '../components/Terminal' import { noop as css } from '../helpers/noop-template' -import { ErrorOverlayLayout } from '../components/ErrorOverlayLayout/ErrorOverlayLayout' +import { ErrorOverlayLayout } from '../components/Errors/ErrorOverlayLayout/ErrorOverlayLayout' export type BuildErrorProps = { message: string; versionInfo?: VersionInfo } diff --git a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/container/Errors.tsx b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/container/Errors.tsx index 165b74fbf080d..bdc95c1b4e6dc 100644 --- a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/container/Errors.tsx +++ b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/container/Errors.tsx @@ -34,7 +34,7 @@ import { isUnhandledConsoleOrRejection, } from '../helpers/console-error' import { extractNextErrorCode } from '../../../../../../lib/error-telemetry-utils' -import { ErrorIndicator } from '../components/ErrorIndicator/ErrorIndicator' +import { ErrorIndicator } from '../components/Errors/ErrorIndicator/ErrorIndicator' export type SupportedErrorEvent = { id: number diff --git a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/container/RootLayoutMissingTagsError.tsx b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/container/RootLayoutMissingTagsError.tsx index 85b9ebae09226..083bb6235c9d1 100644 --- a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/container/RootLayoutMissingTagsError.tsx +++ b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/container/RootLayoutMissingTagsError.tsx @@ -1,7 +1,7 @@ import type { VersionInfo } from '../../../../../../server/dev/parse-version-info' import { useCallback } from 'react' import { HotlinkedText } from '../components/hot-linked-text' -import { ErrorOverlayLayout } from '../components/ErrorOverlayLayout/ErrorOverlayLayout' +import { ErrorOverlayLayout } from '../components/Errors/ErrorOverlayLayout/ErrorOverlayLayout' type RootLayoutMissingTagsErrorProps = { missingTags: string[]