Edit gitignore file

This commit is contained in:
ParkSuMin
2025-02-24 20:17:54 +03:00
parent 9b16274400
commit d7869378b8
349 changed files with 686 additions and 25860 deletions

View File

@@ -1,2 +1,2 @@
import type { ActionAsyncStorage } from 'next/dist/client/components/action-async-storage.external';
import type { ActionAsyncStorage } from './action-async-storage.external';
export declare const actionAsyncStorage: ActionAsyncStorage;

View File

@@ -1,6 +1,6 @@
/// <reference types="node" />
import type { AsyncLocalStorage } from 'async_hooks';
import { actionAsyncStorage } from 'next/dist/client/components/action-async-storage-instance';
import { actionAsyncStorage } from './action-async-storage-instance';
export interface ActionStore {
readonly isAction?: boolean;
readonly isAppRoute?: boolean;

View File

@@ -1,8 +1,8 @@
import type { ReactNode } from 'react';
import type { CacheNode } from 'next/dist/shared/lib/app-router-context.shared-runtime';
import type { ErrorComponent } from 'next/dist/client/components/error-boundary';
import type { ServerActionDispatcher } from 'next/dist/client/components/router-reducer/router-reducer-types';
import type { InitialRouterStateParameters } from 'next/dist/client/components/router-reducer/create-initial-router-state';
import type { CacheNode } from '../../shared/lib/app-router-context.shared-runtime';
import type { ErrorComponent } from './error-boundary';
import type { ServerActionDispatcher } from './router-reducer/router-reducer-types';
import type { InitialRouterStateParameters } from './router-reducer/create-initial-router-state';
export declare function getServerActionDispatcher(): ServerActionDispatcher | null;
export declare function urlToUrlWithoutFlightMarker(url: string): URL;
type AppRouterProps = Omit<Omit<InitialRouterStateParameters, 'isServer' | 'location'>, 'initialParallelRoutes'> & {

View File

@@ -1,4 +1,4 @@
import type { DraftModeProvider } from 'next/dist/server/async-storage/draft-mode-provider';
import type { DraftModeProvider } from '../../server/async-storage/draft-mode-provider';
export declare class DraftMode {
constructor(provider: DraftModeProvider);
get isEnabled(): boolean;

View File

@@ -1,5 +1,5 @@
import { type ReadonlyRequestCookies } from 'next/dist/server/web/spec-extension/adapters/request-cookies';
import { DraftMode } from 'next/dist/client/components/draft-mode';
import { type ReadonlyRequestCookies } from '../../server/web/spec-extension/adapters/request-cookies';
import { DraftMode } from './draft-mode';
/**
* This function allows you to read the HTTP incoming request headers in
* [Server Components](https://nextjs.org/docs/app/building-your-application/rendering/server-components),
@@ -9,6 +9,6 @@ import { DraftMode } from 'next/dist/client/components/draft-mode';
*
* Read more: [Next.js Docs: `headers`](https://nextjs.org/docs/app/api-reference/functions/headers)
*/
export declare function headers(): import("next/dist/server/web/spec-extension/adapters/headers").ReadonlyHeaders;
export declare function headers(): import("../../server/web/spec-extension/adapters/headers").ReadonlyHeaders;
export declare function cookies(): ReadonlyRequestCookies;
export declare function draftMode(): DraftMode;

View File

@@ -1,5 +1,5 @@
import type { FlightSegmentPath } from 'next/dist/server/app-render/types';
import type { ErrorComponent } from 'next/dist/client/components/error-boundary';
import type { FlightSegmentPath } from '../../server/app-render/types';
import type { ErrorComponent } from './error-boundary';
import React from 'react';
/**
* OuterLayoutRouter handles the current segment as well as <Offscreen> rendering of other segments.

View File

@@ -1,5 +1,5 @@
import { type AppRouterInstance } from 'next/dist/shared/lib/app-router-context.shared-runtime';
import { ReadonlyURLSearchParams } from 'next/dist/client/components/navigation.react-server';
import { type AppRouterInstance } from '../../shared/lib/app-router-context.shared-runtime';
import { ReadonlyURLSearchParams } from './navigation.react-server';
/**
* A [Client Component](https://nextjs.org/docs/app/building-your-application/rendering/client-components) hook
* that lets you *read* the current URL's search parameters.
@@ -39,7 +39,7 @@ declare function useSearchParams(): ReadonlyURLSearchParams;
* Read more: [Next.js Docs: `usePathname`](https://nextjs.org/docs/app/api-reference/functions/use-pathname)
*/
declare function usePathname(): string;
import { ServerInsertedHTMLContext, useServerInsertedHTML } from 'next/dist/shared/lib/server-inserted-html.shared-runtime';
import { ServerInsertedHTMLContext, useServerInsertedHTML } from '../../shared/lib/server-inserted-html.shared-runtime';
/**
*
* This hook allows you to programmatically change routes inside [Client Component](https://nextjs.org/docs/app/building-your-application/rendering/client-components).
@@ -126,4 +126,4 @@ declare function useSelectedLayoutSegments(parallelRouteKey?: string): string[];
*/
declare function useSelectedLayoutSegment(parallelRouteKey?: string): string | null;
export { useSearchParams, usePathname, useSelectedLayoutSegment, useSelectedLayoutSegments, useParams, useRouter, useServerInsertedHTML, ServerInsertedHTMLContext, };
export { notFound, redirect, permanentRedirect, RedirectType, ReadonlyURLSearchParams, } from 'next/dist/client/components/navigation.react-server';
export { notFound, redirect, permanentRedirect, RedirectType, ReadonlyURLSearchParams, } from './navigation.react-server';

View File

@@ -8,6 +8,6 @@ declare class ReadonlyURLSearchParams extends URLSearchParams {
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
sort(): void;
}
export { redirect, permanentRedirect, RedirectType } from 'next/dist/client/components/redirect';
export { notFound } from 'next/dist/client/components/not-found';
export { redirect, permanentRedirect, RedirectType } from './redirect';
export { notFound } from './not-found';
export { ReadonlyURLSearchParams };

View File

@@ -1,5 +1,5 @@
import type { ResponseCookies } from 'next/dist/server/web/spec-extension/cookies';
import { RedirectStatusCode } from 'next/dist/client/components/redirect-status-code';
import type { ResponseCookies } from '../../server/web/spec-extension/cookies';
import { RedirectStatusCode } from './redirect-status-code';
declare const REDIRECT_ERROR_CODE = "NEXT_REDIRECT";
export declare enum RedirectType {
push = "push",

View File

@@ -1,2 +1,2 @@
import type { RequestAsyncStorage } from 'next/dist/client/components/request-async-storage.external';
import type { RequestAsyncStorage } from './request-async-storage.external';
export declare const requestAsyncStorage: RequestAsyncStorage;

View File

@@ -1,11 +1,11 @@
/// <reference types="node" />
import type { AsyncLocalStorage } from 'async_hooks';
import type { DraftModeProvider } from 'next/dist/server/async-storage/draft-mode-provider';
import type { ResponseCookies } from 'next/dist/server/web/spec-extension/cookies';
import type { ReadonlyHeaders } from 'next/dist/server/web/spec-extension/adapters/headers';
import type { ReadonlyRequestCookies } from 'next/dist/server/web/spec-extension/adapters/request-cookies';
import { requestAsyncStorage } from 'next/dist/client/components/request-async-storage-instance';
import type { DeepReadonly } from 'next/dist/shared/lib/deep-readonly';
import type { DraftModeProvider } from '../../server/async-storage/draft-mode-provider';
import type { ResponseCookies } from '../../server/web/spec-extension/cookies';
import type { ReadonlyHeaders } from '../../server/web/spec-extension/adapters/headers';
import type { ReadonlyRequestCookies } from '../../server/web/spec-extension/adapters/request-cookies';
import { requestAsyncStorage } from './request-async-storage-instance';
import type { DeepReadonly } from '../../shared/lib/deep-readonly';
export interface RequestStore {
readonly headers: ReadonlyHeaders;
readonly cookies: ReadonlyRequestCookies;

View File

@@ -1,7 +1,7 @@
import type { ReactNode } from 'react';
import type { CacheNode } from 'next/dist/shared/lib/app-router-context.shared-runtime';
import type { FlightRouterState, CacheNodeSeedData } from 'next/dist/server/app-render/types';
import { type PrefetchCacheEntry } from 'next/dist/client/components/router-reducer/router-reducer-types';
import type { CacheNode } from '../../../shared/lib/app-router-context.shared-runtime';
import type { FlightRouterState, CacheNodeSeedData } from '../../../server/app-render/types';
import { type PrefetchCacheEntry } from './router-reducer-types';
export interface InitialRouterStateParameters {
buildId: string;
initialTree: FlightRouterState;
@@ -15,7 +15,7 @@ export interface InitialRouterStateParameters {
export declare function createInitialRouterState({ buildId, initialTree, initialSeedData, urlParts, initialParallelRoutes, location, initialHead, couldBeIntercepted, }: InitialRouterStateParameters): {
buildId: string;
tree: FlightRouterState;
cache: import("next/dist/shared/lib/app-router-context.shared-runtime").ReadyCacheNode;
cache: import("../../../shared/lib/app-router-context.shared-runtime").ReadyCacheNode;
prefetchCache: Map<string, PrefetchCacheEntry>;
pushRef: {
pendingPush: boolean;

View File

@@ -1,5 +1,5 @@
import type { FlightRouterState, FlightData } from 'next/dist/server/app-render/types';
import { PrefetchKind } from 'next/dist/client/components/router-reducer/router-reducer-types';
import type { FlightRouterState, FlightData } from '../../../server/app-render/types';
import { PrefetchKind } from './router-reducer-types';
export type FetchServerResponseResult = [
flightData: FlightData,
canonicalUrlOverride: URL | undefined,

View File

@@ -1,6 +1,6 @@
import type { CacheNode } from 'next/dist/shared/lib/app-router-context.shared-runtime';
import type { FlightRouterState, FlightSegmentPath } from 'next/dist/server/app-render/types';
import type { FetchServerResponseResult } from 'next/dist/client/components/router-reducer/fetch-server-response';
import type { CacheNode } from '../../../shared/lib/app-router-context.shared-runtime';
import type { FlightRouterState, FlightSegmentPath } from '../../../server/app-render/types';
import type { FetchServerResponseResult } from './fetch-server-response';
export declare const ACTION_REFRESH = "refresh";
export declare const ACTION_NAVIGATE = "navigate";
export declare const ACTION_RESTORE = "restore";

View File

@@ -1,2 +1,2 @@
import type { StaticGenerationAsyncStorage } from 'next/dist/client/components/static-generation-async-storage.external';
import type { StaticGenerationAsyncStorage } from './static-generation-async-storage.external';
export declare const staticGenerationAsyncStorage: StaticGenerationAsyncStorage;

View File

@@ -1,11 +1,11 @@
/// <reference types="node" />
import type { AsyncLocalStorage } from 'async_hooks';
import type { IncrementalCache } from 'next/dist/server/lib/incremental-cache';
import type { DynamicServerError } from 'next/dist/client/components/hooks-server-context';
import type { FetchMetrics } from 'next/dist/server/base-http';
import type { Revalidate } from 'next/dist/server/lib/revalidate';
import type { PrerenderState } from 'next/dist/server/app-render/dynamic-rendering';
import { staticGenerationAsyncStorage } from 'next/dist/client/components/static-generation-async-storage-instance';
import type { IncrementalCache } from '../../server/lib/incremental-cache';
import type { DynamicServerError } from './hooks-server-context';
import type { FetchMetrics } from '../../server/base-http';
import type { Revalidate } from '../../server/lib/revalidate';
import type { PrerenderState } from '../../server/app-render/dynamic-rendering';
import { staticGenerationAsyncStorage } from './static-generation-async-storage-instance';
export interface StaticGenerationStore {
readonly isStaticGeneration: boolean;
readonly pagePath?: string;

View File

@@ -1,6 +1,6 @@
import React from 'react';
import type { OnLoadingComplete, PlaceholderValue } from 'next/dist/shared/lib/get-img-props';
import type { ImageLoaderProps } from 'next/dist/shared/lib/image-config';
import type { OnLoadingComplete, PlaceholderValue } from '../shared/lib/get-img-props';
import type { ImageLoaderProps } from '../shared/lib/image-config';
export type { ImageLoaderProps };
export type ImageLoader = (p: ImageLoaderProps) => string;
/**
@@ -9,12 +9,12 @@ export type ImageLoader = (p: ImageLoaderProps) => string;
* Read more: [Next.js docs: `Image`](https://nextjs.org/docs/app/api-reference/components/image)
*/
export declare const Image: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "height" | "width" | "loading" | "ref" | "alt" | "src" | "srcSet"> & {
src: string | import("next/dist/shared/lib/get-img-props").StaticImport;
src: string | import("../shared/lib/get-img-props").StaticImport;
alt: string;
width?: number | `${number}` | undefined;
height?: number | `${number}` | undefined;
fill?: boolean | undefined;
loader?: import("next/dist/shared/lib/get-img-props").ImageLoader | undefined;
loader?: import("../shared/lib/get-img-props").ImageLoader | undefined;
quality?: number | `${number}` | undefined;
priority?: boolean | undefined;
loading?: "eager" | "lazy" | undefined;

View File

@@ -1,6 +1,6 @@
import type { ComponentType } from 'react';
import type { RouteLoader } from 'next/dist/client/route-loader';
import type { MiddlewareMatcher } from 'next/dist/build/analysis/get-page-static-info';
import type { RouteLoader } from './route-loader';
import type { MiddlewareMatcher } from '../build/analysis/get-page-static-info';
declare global {
interface Window {
__DEV_MIDDLEWARE_MATCHERS?: MiddlewareMatcher[];

View File

@@ -1,5 +1,5 @@
import type { ComponentType } from 'react';
import type { MiddlewareMatcher } from 'next/dist/build/analysis/get-page-static-info';
import type { MiddlewareMatcher } from '../build/analysis/get-page-static-info';
declare global {
interface Window {
__BUILD_MANIFEST?: Record<string, string[]>;

View File

@@ -1,5 +1,5 @@
import Router from 'next/dist/shared/lib/router/router';
import type { NextRouter } from 'next/dist/shared/lib/router/router';
import Router from '../shared/lib/router/router';
import type { NextRouter } from '../shared/lib/router/router';
type SingletonRouterBase = {
router: Router | null;
readyCallbacks: Array<() => any>;
@@ -12,7 +12,7 @@ declare const routerEvents: readonly ["routeChangeStart", "beforeHistoryChange",
export type RouterEvent = (typeof routerEvents)[number];
declare const _default: SingletonRouter;
export default _default;
export { default as withRouter } from 'next/dist/client/with-router';
export { default as withRouter } from './with-router';
/**
* This hook gives access the [router object](https://nextjs.org/docs/pages/api-reference/functions/use-router#router-object)
* inside the [Pages Router](https://nextjs.org/docs/pages/building-your-application).

View File

@@ -1,6 +1,6 @@
import React from 'react';
import type { BaseContext, NextComponentType, NextPageContext } from 'next/dist/shared/lib/utils';
import type { NextRouter } from 'next/dist/client/router';
import type { BaseContext, NextComponentType, NextPageContext } from '../shared/lib/utils';
import type { NextRouter } from './router';
export type WithRouterProps = {
router: NextRouter;
};