Skip to content

Commit 74335c9

Browse files
committed
consolidate
1 parent 7a0eb3c commit 74335c9

File tree

14 files changed

+16
-213
lines changed

14 files changed

+16
-213
lines changed

packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/call-stack-frame/call-stack-frame.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { StackFrame } from 'next/dist/compiled/stacktrace-parser'
2-
import type { OriginalStackFrame } from '../../helpers/stack-frame'
2+
import type { OriginalStackFrame } from '../../../../internal/helpers/stack-frame'
33

44
import { HotlinkedText } from '../hot-linked-text'
55
import { ExternalIcon } from '../../icons/external'
6-
import { getFrameSource } from '../../helpers/stack-frame'
6+
import { getFrameSource } from '../../../../internal/helpers/stack-frame'
77
import { useOpenInEditor } from '../../helpers/use-open-in-editor'
88
import { noop as css } from '../../helpers/noop-template'
99

packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/code-frame/code-frame.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import stripAnsi from 'next/dist/compiled/strip-ansi'
55

66
import { useMemo } from 'react'
77
import { HotlinkedText } from '../hot-linked-text'
8-
import { getFrameSource } from '../../helpers/stack-frame'
8+
import { getFrameSource } from '../../../../internal/helpers/stack-frame'
99
import { useOpenInEditor } from '../../helpers/use-open-in-editor'
1010
import { noop as css } from '../../helpers/noop-template'
1111
import { ExternalIcon } from '../../icons/external'

packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/errors/call-stack/call-stack.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { OriginalStackFrame } from '../../../helpers/stack-frame'
1+
import type { OriginalStackFrame } from '../../../../../internal/helpers/stack-frame'
22
import { useMemo, useState } from 'react'
33
import { CallStackFrame } from '../../call-stack-frame/call-stack-frame'
44
import { noop as css } from '../../../helpers/noop-template'

packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/errors/error-overlay-floating-header/error-overlay-floating-header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import type { ReadyRuntimeError } from '../../../helpers/get-error-by-type'
21
import type { VersionInfo } from '../../../../../../../../server/dev/parse-version-info'
32

43
import { ErrorOverlayPagination } from '../error-overlay-pagination/error-overlay-pagination'
54
import { VersionStalenessInfo } from '../../version-staleness-info/version-staleness-info'
65
import { noop as css } from '../../../helpers/noop-template'
6+
import type { ReadyRuntimeError } from '../../../../../internal/helpers/get-error-by-type'
77

88
type ErrorOverlayFloatingHeaderProps = {
99
readyErrors?: ReadyRuntimeError[]

packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/errors/error-overlay-layout/error-overlay-layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type { ReadyRuntimeError } from '../../../helpers/get-error-by-type'
21
import type { DebugInfo } from '../../../../../types'
32
import type { VersionInfo } from '../../../../../../../../server/dev/parse-version-info'
43
import type { ErrorMessageType } from '../error-message/error-message'
@@ -33,6 +32,7 @@ import {
3332
import { ErrorOverlayDialogBody, DIALOG_BODY_STYLES } from '../dialog/body'
3433
import { CALL_STACK_STYLES } from '../call-stack/call-stack'
3534
import { OVERLAY_STYLES, ErrorOverlayOverlay } from '../overlay/overlay'
35+
import type { ReadyRuntimeError } from '../../../../../internal/helpers/get-error-by-type'
3636

3737
type ErrorOverlayLayoutProps = {
3838
errorMessage: ErrorMessageType

packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/errors/error-overlay-pagination/error-overlay-pagination.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import type { ReadyRuntimeError } from '../../../helpers/get-error-by-type'
2-
31
import { useCallback, useEffect, useRef, useState } from 'react'
42
import { noop as css } from '../../../helpers/noop-template'
53
import { LeftArrow } from '../../../icons/left-arrow'
64
import { RightArrow } from '../../../icons/right-arrow'
5+
import type { ReadyRuntimeError } from '../../../../../internal/helpers/get-error-by-type'
76

87
type ErrorPaginationProps = {
98
readyErrors: ReadyRuntimeError[]

packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/errors/error-overlay/error-overlay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { OverlayState } from '../../../../../shared'
2-
import type { ReadyRuntimeError } from '../../../helpers/get-error-by-type'
32

43
import { BuildError } from '../../../container/build-error'
54
import { Errors } from '../../../container/errors'
65
import { RootLayoutMissingTagsError } from '../../../container/root-layout-missing-tags-error'
6+
import type { ReadyRuntimeError } from '../../../../../internal/helpers/get-error-by-type'
77

88
export function ErrorOverlay({
99
state,

packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/terminal/terminal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { HotlinkedText } from '../hot-linked-text'
44
import { EditorLink } from './editor-link'
55
import { ExternalIcon } from '../../icons/external'
66
import { noop as css } from '../../helpers/noop-template'
7-
import { getFrameSource } from '../../helpers/stack-frame'
7+
import { getFrameSource } from '../../../../internal/helpers/stack-frame'
88
import { useOpenInEditor } from '../../helpers/use-open-in-editor'
99
import { FileIcon } from '../../icons/file'
1010

packages/next/src/client/components/react-dev-overlay/_experimental/internal/container/errors.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { Meta, StoryObj } from '@storybook/react'
2-
import type { ReadyRuntimeError } from '../helpers/get-error-by-type'
32

43
import { Errors } from './errors'
54
import { withShadowPortal } from '../storybook/with-shadow-portal'
5+
import type { ReadyRuntimeError } from '../../../internal/helpers/get-error-by-type'
66

77
const meta: Meta<typeof Errors> = {
88
component: Errors,

packages/next/src/client/components/react-dev-overlay/_experimental/internal/container/errors.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { useState, useMemo, useEffect } from 'react'
22
import type { DebugInfo } from '../../../types'
33
import { Overlay } from '../components/overlay'
4-
import type { ReadyRuntimeError } from '../helpers/get-error-by-type'
54
import { noop as css } from '../helpers/noop-template'
65
import { RuntimeError } from './runtime-error'
76
import type { VersionInfo } from '../../../../../../server/dev/parse-version-info'
@@ -18,6 +17,7 @@ import {
1817
} from '../../../../errors/console-error'
1918
import { extractNextErrorCode } from '../../../../../../lib/error-telemetry-utils'
2019
import { ErrorOverlayLayout } from '../components/errors/error-overlay-layout/error-overlay-layout'
20+
import type { ReadyRuntimeError } from '../../../internal/helpers/get-error-by-type'
2121

2222
export type ErrorsProps = {
2323
readyErrors: ReadyRuntimeError[]

0 commit comments

Comments
 (0)