feat(blog): add file-based blog with dynamic slugs, MDX content and layout shell
- Introduced blog routing using Next.js App Router - Implemented dynamic [slug] pages for blog posts - Added MDX-based content loading via lib/posts - Integrated shared TopBar layout with navigation - Established clear content, lib and component separation
This commit is contained in:
8
apps/public-web/node_modules/next/dist/next-devtools/shared/console-error.d.ts
generated
vendored
Normal file
8
apps/public-web/node_modules/next/dist/next-devtools/shared/console-error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
declare const digestSym: unique symbol;
|
||||
type ConsoleError = Error & {
|
||||
[digestSym]: 'NEXT_CONSOLE_ERROR';
|
||||
environmentName: string;
|
||||
};
|
||||
export declare function createConsoleError(message: string | Error, environmentName?: string | null): ConsoleError;
|
||||
export declare const isConsoleError: (error: any) => error is ConsoleError;
|
||||
export {};
|
||||
47
apps/public-web/node_modules/next/dist/next-devtools/shared/console-error.js
generated
vendored
Normal file
47
apps/public-web/node_modules/next/dist/next-devtools/shared/console-error.js
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
// To distinguish from React error.digest, we use a different symbol here to determine if the error is from console.error or unhandled promise rejection.
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
0 && (module.exports = {
|
||||
createConsoleError: null,
|
||||
isConsoleError: null
|
||||
});
|
||||
function _export(target, all) {
|
||||
for(var name in all)Object.defineProperty(target, name, {
|
||||
enumerable: true,
|
||||
get: all[name]
|
||||
});
|
||||
}
|
||||
_export(exports, {
|
||||
createConsoleError: function() {
|
||||
return createConsoleError;
|
||||
},
|
||||
isConsoleError: function() {
|
||||
return isConsoleError;
|
||||
}
|
||||
});
|
||||
const digestSym = Symbol.for('next.console.error.digest');
|
||||
function createConsoleError(message, environmentName) {
|
||||
const error = typeof message === 'string' ? Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
||||
value: "E394",
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
}) : message;
|
||||
error[digestSym] = 'NEXT_CONSOLE_ERROR';
|
||||
if (environmentName && !error.environmentName) {
|
||||
error.environmentName = environmentName;
|
||||
}
|
||||
return error;
|
||||
}
|
||||
const isConsoleError = (error)=>{
|
||||
return error && error[digestSym] === 'NEXT_CONSOLE_ERROR';
|
||||
};
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=console-error.js.map
|
||||
1
apps/public-web/node_modules/next/dist/next-devtools/shared/console-error.js.map
generated
vendored
Normal file
1
apps/public-web/node_modules/next/dist/next-devtools/shared/console-error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/next-devtools/shared/console-error.ts"],"sourcesContent":["// To distinguish from React error.digest, we use a different symbol here to determine if the error is from console.error or unhandled promise rejection.\nconst digestSym = Symbol.for('next.console.error.digest')\n\n// Represent non Error shape unhandled promise rejections or console.error errors.\n// Those errors will be captured and displayed in Error Overlay.\ntype ConsoleError = Error & {\n [digestSym]: 'NEXT_CONSOLE_ERROR'\n environmentName: string\n}\n\nexport function createConsoleError(\n message: string | Error,\n environmentName?: string | null\n): ConsoleError {\n const error = (\n typeof message === 'string' ? new Error(message) : message\n ) as ConsoleError\n error[digestSym] = 'NEXT_CONSOLE_ERROR'\n\n if (environmentName && !error.environmentName) {\n error.environmentName = environmentName\n }\n\n return error\n}\n\nexport const isConsoleError = (error: any): error is ConsoleError => {\n return error && error[digestSym] === 'NEXT_CONSOLE_ERROR'\n}\n"],"names":["createConsoleError","isConsoleError","digestSym","Symbol","for","message","environmentName","error","Error"],"mappings":"AAAA,yJAAyJ;;;;;;;;;;;;;;;;IAUzIA,kBAAkB;eAAlBA;;IAgBHC,cAAc;eAAdA;;;AAzBb,MAAMC,YAAYC,OAAOC,GAAG,CAAC;AAStB,SAASJ,mBACdK,OAAuB,EACvBC,eAA+B;IAE/B,MAAMC,QACJ,OAAOF,YAAY,WAAW,qBAAkB,CAAlB,IAAIG,MAAMH,UAAV,qBAAA;eAAA;oBAAA;sBAAA;IAAiB,KAAIA;IAErDE,KAAK,CAACL,UAAU,GAAG;IAEnB,IAAII,mBAAmB,CAACC,MAAMD,eAAe,EAAE;QAC7CC,MAAMD,eAAe,GAAGA;IAC1B;IAEA,OAAOC;AACT;AAEO,MAAMN,iBAAiB,CAACM;IAC7B,OAAOA,SAASA,KAAK,CAACL,UAAU,KAAK;AACvC","ignoreList":[0]}
|
||||
1
apps/public-web/node_modules/next/dist/next-devtools/shared/deepmerge.d.ts
generated
vendored
Normal file
1
apps/public-web/node_modules/next/dist/next-devtools/shared/deepmerge.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare function deepMerge(target: any, source: any): any;
|
||||
41
apps/public-web/node_modules/next/dist/next-devtools/shared/deepmerge.js
generated
vendored
Normal file
41
apps/public-web/node_modules/next/dist/next-devtools/shared/deepmerge.js
generated
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "deepMerge", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return deepMerge;
|
||||
}
|
||||
});
|
||||
function deepMerge(target, source) {
|
||||
if (!source || typeof source !== 'object' || Array.isArray(source)) {
|
||||
return source;
|
||||
}
|
||||
if (!target || typeof target !== 'object' || Array.isArray(target)) {
|
||||
return source;
|
||||
}
|
||||
const result = {
|
||||
...target
|
||||
};
|
||||
for(const key in source){
|
||||
const sourceValue = source[key];
|
||||
const targetValue = target[key];
|
||||
if (sourceValue !== undefined) {
|
||||
if (sourceValue && typeof sourceValue === 'object' && !Array.isArray(sourceValue) && targetValue && typeof targetValue === 'object' && !Array.isArray(targetValue)) {
|
||||
result[key] = deepMerge(targetValue, sourceValue);
|
||||
} else {
|
||||
result[key] = sourceValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=deepmerge.js.map
|
||||
1
apps/public-web/node_modules/next/dist/next-devtools/shared/deepmerge.js.map
generated
vendored
Normal file
1
apps/public-web/node_modules/next/dist/next-devtools/shared/deepmerge.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/next-devtools/shared/deepmerge.ts"],"sourcesContent":["export function deepMerge(target: any, source: any): any {\n if (!source || typeof source !== 'object' || Array.isArray(source)) {\n return source\n }\n\n if (!target || typeof target !== 'object' || Array.isArray(target)) {\n return source\n }\n\n const result = { ...target }\n\n for (const key in source) {\n const sourceValue = source[key]\n const targetValue = target[key]\n\n if (sourceValue !== undefined) {\n if (\n sourceValue &&\n typeof sourceValue === 'object' &&\n !Array.isArray(sourceValue) &&\n targetValue &&\n typeof targetValue === 'object' &&\n !Array.isArray(targetValue)\n ) {\n result[key] = deepMerge(targetValue, sourceValue)\n } else {\n result[key] = sourceValue\n }\n }\n }\n\n return result\n}\n"],"names":["deepMerge","target","source","Array","isArray","result","key","sourceValue","targetValue","undefined"],"mappings":";;;;+BAAgBA;;;eAAAA;;;AAAT,SAASA,UAAUC,MAAW,EAAEC,MAAW;IAChD,IAAI,CAACA,UAAU,OAAOA,WAAW,YAAYC,MAAMC,OAAO,CAACF,SAAS;QAClE,OAAOA;IACT;IAEA,IAAI,CAACD,UAAU,OAAOA,WAAW,YAAYE,MAAMC,OAAO,CAACH,SAAS;QAClE,OAAOC;IACT;IAEA,MAAMG,SAAS;QAAE,GAAGJ,MAAM;IAAC;IAE3B,IAAK,MAAMK,OAAOJ,OAAQ;QACxB,MAAMK,cAAcL,MAAM,CAACI,IAAI;QAC/B,MAAME,cAAcP,MAAM,CAACK,IAAI;QAE/B,IAAIC,gBAAgBE,WAAW;YAC7B,IACEF,eACA,OAAOA,gBAAgB,YACvB,CAACJ,MAAMC,OAAO,CAACG,gBACfC,eACA,OAAOA,gBAAgB,YACvB,CAACL,MAAMC,OAAO,CAACI,cACf;gBACAH,MAAM,CAACC,IAAI,GAAGN,UAAUQ,aAAaD;YACvC,OAAO;gBACLF,MAAM,CAACC,IAAI,GAAGC;YAChB;QACF;IACF;IAEA,OAAOF;AACT","ignoreList":[0]}
|
||||
3
apps/public-web/node_modules/next/dist/next-devtools/shared/devtools-config-schema.d.ts
generated
vendored
Normal file
3
apps/public-web/node_modules/next/dist/next-devtools/shared/devtools-config-schema.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import type { DevToolsConfig } from '../dev-overlay/shared';
|
||||
import { z } from 'next/dist/compiled/zod';
|
||||
export declare const devToolsConfigSchema: z.ZodType<DevToolsConfig>;
|
||||
45
apps/public-web/node_modules/next/dist/next-devtools/shared/devtools-config-schema.js
generated
vendored
Normal file
45
apps/public-web/node_modules/next/dist/next-devtools/shared/devtools-config-schema.js
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "devToolsConfigSchema", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return devToolsConfigSchema;
|
||||
}
|
||||
});
|
||||
const _zod = require("next/dist/compiled/zod");
|
||||
const devToolsConfigSchema = _zod.z.object({
|
||||
theme: _zod.z.enum([
|
||||
'light',
|
||||
'dark',
|
||||
'system'
|
||||
]).optional(),
|
||||
disableDevIndicator: _zod.z.boolean().optional(),
|
||||
devToolsPosition: _zod.z.enum([
|
||||
'top-left',
|
||||
'top-right',
|
||||
'bottom-left',
|
||||
'bottom-right'
|
||||
]).optional(),
|
||||
devToolsPanelPosition: _zod.z.record(_zod.z.string(), _zod.z.enum([
|
||||
'top-left',
|
||||
'top-right',
|
||||
'bottom-left',
|
||||
'bottom-right'
|
||||
])).optional(),
|
||||
devToolsPanelSize: _zod.z.record(_zod.z.string(), _zod.z.object({
|
||||
width: _zod.z.number(),
|
||||
height: _zod.z.number()
|
||||
})).optional(),
|
||||
scale: _zod.z.number().optional(),
|
||||
hideShortcut: _zod.z.string().nullable().optional()
|
||||
});
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=devtools-config-schema.js.map
|
||||
1
apps/public-web/node_modules/next/dist/next-devtools/shared/devtools-config-schema.js.map
generated
vendored
Normal file
1
apps/public-web/node_modules/next/dist/next-devtools/shared/devtools-config-schema.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/next-devtools/shared/devtools-config-schema.ts"],"sourcesContent":["import type { DevToolsConfig } from '../dev-overlay/shared'\nimport { z } from 'next/dist/compiled/zod'\n\nexport const devToolsConfigSchema: z.ZodType<DevToolsConfig> = z.object({\n theme: z.enum(['light', 'dark', 'system']).optional(),\n disableDevIndicator: z.boolean().optional(),\n devToolsPosition: z\n .enum(['top-left', 'top-right', 'bottom-left', 'bottom-right'])\n .optional(),\n devToolsPanelPosition: z\n .record(\n z.string(),\n z.enum(['top-left', 'top-right', 'bottom-left', 'bottom-right'])\n )\n .optional(),\n devToolsPanelSize: z\n .record(z.string(), z.object({ width: z.number(), height: z.number() }))\n .optional(),\n scale: z.number().optional(),\n hideShortcut: z.string().nullable().optional(),\n})\n"],"names":["devToolsConfigSchema","z","object","theme","enum","optional","disableDevIndicator","boolean","devToolsPosition","devToolsPanelPosition","record","string","devToolsPanelSize","width","number","height","scale","hideShortcut","nullable"],"mappings":";;;;+BAGaA;;;eAAAA;;;qBAFK;AAEX,MAAMA,uBAAkDC,MAAC,CAACC,MAAM,CAAC;IACtEC,OAAOF,MAAC,CAACG,IAAI,CAAC;QAAC;QAAS;QAAQ;KAAS,EAAEC,QAAQ;IACnDC,qBAAqBL,MAAC,CAACM,OAAO,GAAGF,QAAQ;IACzCG,kBAAkBP,MAAC,CAChBG,IAAI,CAAC;QAAC;QAAY;QAAa;QAAe;KAAe,EAC7DC,QAAQ;IACXI,uBAAuBR,MAAC,CACrBS,MAAM,CACLT,MAAC,CAACU,MAAM,IACRV,MAAC,CAACG,IAAI,CAAC;QAAC;QAAY;QAAa;QAAe;KAAe,GAEhEC,QAAQ;IACXO,mBAAmBX,MAAC,CACjBS,MAAM,CAACT,MAAC,CAACU,MAAM,IAAIV,MAAC,CAACC,MAAM,CAAC;QAAEW,OAAOZ,MAAC,CAACa,MAAM;QAAIC,QAAQd,MAAC,CAACa,MAAM;IAAG,IACpET,QAAQ;IACXW,OAAOf,MAAC,CAACa,MAAM,GAAGT,QAAQ;IAC1BY,cAAchB,MAAC,CAACU,MAAM,GAAGO,QAAQ,GAAGb,QAAQ;AAC9C","ignoreList":[0]}
|
||||
38
apps/public-web/node_modules/next/dist/next-devtools/shared/forward-logs-shared.d.ts
generated
vendored
Normal file
38
apps/public-web/node_modules/next/dist/next-devtools/shared/forward-logs-shared.d.ts
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
export type LogMethod = 'log' | 'info' | 'debug' | 'table' | 'error' | 'assert' | 'dir' | 'dirxml' | 'group' | 'groupCollapsed' | 'groupEnd' | 'trace' | 'warn';
|
||||
export type ConsoleEntry<T> = {
|
||||
kind: 'console';
|
||||
method: LogMethod;
|
||||
consoleMethodStack: string | null;
|
||||
args: Array<{
|
||||
kind: 'arg';
|
||||
data: T;
|
||||
} | {
|
||||
kind: 'formatted-error-arg';
|
||||
prefix: string;
|
||||
stack: string;
|
||||
}>;
|
||||
};
|
||||
export type ConsoleErrorEntry<T> = {
|
||||
kind: 'any-logged-error';
|
||||
method: 'error';
|
||||
consoleErrorStack: string;
|
||||
args: Array<{
|
||||
kind: 'arg';
|
||||
data: T;
|
||||
isRejectionMessage?: boolean;
|
||||
} | {
|
||||
kind: 'formatted-error-arg';
|
||||
prefix: string;
|
||||
stack: string | null;
|
||||
}>;
|
||||
};
|
||||
export type FormattedErrorEntry = {
|
||||
kind: 'formatted-error';
|
||||
prefix: string;
|
||||
stack: string;
|
||||
method: 'error';
|
||||
};
|
||||
export type ClientLogEntry = ConsoleEntry<unknown> | ConsoleErrorEntry<unknown> | FormattedErrorEntry;
|
||||
export type ServerLogEntry = ConsoleEntry<string> | ConsoleErrorEntry<string> | FormattedErrorEntry;
|
||||
export declare const UNDEFINED_MARKER = "__next_tagged_undefined";
|
||||
export declare function patchConsoleMethod<T extends keyof Console>(methodName: T, wrapper: (methodName: T, ...args: Console[T] extends (...args: infer P) => any ? P : never[]) => void): () => void;
|
||||
56
apps/public-web/node_modules/next/dist/next-devtools/shared/forward-logs-shared.js
generated
vendored
Normal file
56
apps/public-web/node_modules/next/dist/next-devtools/shared/forward-logs-shared.js
generated
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
0 && (module.exports = {
|
||||
UNDEFINED_MARKER: null,
|
||||
patchConsoleMethod: null
|
||||
});
|
||||
function _export(target, all) {
|
||||
for(var name in all)Object.defineProperty(target, name, {
|
||||
enumerable: true,
|
||||
get: all[name]
|
||||
});
|
||||
}
|
||||
_export(exports, {
|
||||
UNDEFINED_MARKER: function() {
|
||||
return UNDEFINED_MARKER;
|
||||
},
|
||||
patchConsoleMethod: function() {
|
||||
return patchConsoleMethod;
|
||||
}
|
||||
});
|
||||
const UNDEFINED_MARKER = '__next_tagged_undefined';
|
||||
function patchConsoleMethod(methodName, wrapper) {
|
||||
const descriptor = Object.getOwnPropertyDescriptor(console, methodName);
|
||||
if (descriptor && (descriptor.configurable || descriptor.writable) && typeof descriptor.value === 'function') {
|
||||
const originalMethod = descriptor.value;
|
||||
const originalName = Object.getOwnPropertyDescriptor(originalMethod, 'name');
|
||||
const wrapperMethod = function(...args) {
|
||||
wrapper(methodName, ...args);
|
||||
originalMethod.apply(this, args);
|
||||
};
|
||||
if (originalName) {
|
||||
Object.defineProperty(wrapperMethod, 'name', originalName);
|
||||
}
|
||||
Object.defineProperty(console, methodName, {
|
||||
value: wrapperMethod
|
||||
});
|
||||
return ()=>{
|
||||
Object.defineProperty(console, methodName, {
|
||||
value: originalMethod,
|
||||
writable: descriptor.writable,
|
||||
configurable: descriptor.configurable
|
||||
});
|
||||
};
|
||||
}
|
||||
return ()=>{};
|
||||
}
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=forward-logs-shared.js.map
|
||||
1
apps/public-web/node_modules/next/dist/next-devtools/shared/forward-logs-shared.js.map
generated
vendored
Normal file
1
apps/public-web/node_modules/next/dist/next-devtools/shared/forward-logs-shared.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/next-devtools/shared/forward-logs-shared.ts"],"sourcesContent":["export type LogMethod =\n | 'log'\n | 'info'\n | 'debug'\n | 'table'\n | 'error'\n | 'assert'\n | 'dir'\n | 'dirxml'\n | 'group'\n | 'groupCollapsed'\n | 'groupEnd'\n | 'trace'\n | 'warn'\n\nexport type ConsoleEntry<T> = {\n kind: 'console'\n method: LogMethod\n consoleMethodStack: string | null\n args: Array<\n | {\n kind: 'arg'\n data: T\n }\n | {\n kind: 'formatted-error-arg'\n prefix: string\n stack: string\n }\n >\n}\n\nexport type ConsoleErrorEntry<T> = {\n kind: 'any-logged-error'\n method: 'error'\n consoleErrorStack: string\n args: Array<\n | {\n kind: 'arg'\n data: T\n isRejectionMessage?: boolean\n }\n | {\n kind: 'formatted-error-arg'\n prefix: string\n stack: string | null\n }\n >\n}\n\nexport type FormattedErrorEntry = {\n kind: 'formatted-error'\n prefix: string\n stack: string\n method: 'error'\n}\n\nexport type ClientLogEntry =\n | ConsoleEntry<unknown>\n | ConsoleErrorEntry<unknown>\n | FormattedErrorEntry\nexport type ServerLogEntry =\n | ConsoleEntry<string>\n | ConsoleErrorEntry<string>\n | FormattedErrorEntry\n\nexport const UNDEFINED_MARKER = '__next_tagged_undefined'\n\n// Based on https://github.com/facebook/react/blob/28dc0776be2e1370fe217549d32aee2519f0cf05/packages/react-server/src/ReactFlightServer.js#L248\nexport function patchConsoleMethod<T extends keyof Console>(\n methodName: T,\n wrapper: (\n methodName: T,\n ...args: Console[T] extends (...args: infer P) => any ? P : never[]\n ) => void\n): () => void {\n const descriptor = Object.getOwnPropertyDescriptor(console, methodName)\n if (\n descriptor &&\n (descriptor.configurable || descriptor.writable) &&\n typeof descriptor.value === 'function'\n ) {\n const originalMethod = descriptor.value as Console[T] extends (\n ...args: any[]\n ) => any\n ? Console[T]\n : never\n const originalName = Object.getOwnPropertyDescriptor(originalMethod, 'name')\n const wrapperMethod = function (\n this: typeof console,\n ...args: Console[T] extends (...args: infer P) => any ? P : never[]\n ) {\n wrapper(methodName, ...args)\n\n originalMethod.apply(this, args)\n }\n if (originalName) {\n Object.defineProperty(wrapperMethod, 'name', originalName)\n }\n Object.defineProperty(console, methodName, {\n value: wrapperMethod,\n })\n\n return () => {\n Object.defineProperty(console, methodName, {\n value: originalMethod,\n writable: descriptor.writable,\n configurable: descriptor.configurable,\n })\n }\n }\n\n return () => {}\n}\n"],"names":["UNDEFINED_MARKER","patchConsoleMethod","methodName","wrapper","descriptor","Object","getOwnPropertyDescriptor","console","configurable","writable","value","originalMethod","originalName","wrapperMethod","args","apply","defineProperty"],"mappings":";;;;;;;;;;;;;;;IAkEaA,gBAAgB;eAAhBA;;IAGGC,kBAAkB;eAAlBA;;;AAHT,MAAMD,mBAAmB;AAGzB,SAASC,mBACdC,UAAa,EACbC,OAGS;IAET,MAAMC,aAAaC,OAAOC,wBAAwB,CAACC,SAASL;IAC5D,IACEE,cACCA,CAAAA,WAAWI,YAAY,IAAIJ,WAAWK,QAAQ,AAAD,KAC9C,OAAOL,WAAWM,KAAK,KAAK,YAC5B;QACA,MAAMC,iBAAiBP,WAAWM,KAAK;QAKvC,MAAME,eAAeP,OAAOC,wBAAwB,CAACK,gBAAgB;QACrE,MAAME,gBAAgB,SAEpB,GAAGC,IAAgE;YAEnEX,QAAQD,eAAeY;YAEvBH,eAAeI,KAAK,CAAC,IAAI,EAAED;QAC7B;QACA,IAAIF,cAAc;YAChBP,OAAOW,cAAc,CAACH,eAAe,QAAQD;QAC/C;QACAP,OAAOW,cAAc,CAACT,SAASL,YAAY;YACzCQ,OAAOG;QACT;QAEA,OAAO;YACLR,OAAOW,cAAc,CAACT,SAASL,YAAY;gBACzCQ,OAAOC;gBACPF,UAAUL,WAAWK,QAAQ;gBAC7BD,cAAcJ,WAAWI,YAAY;YACvC;QACF;IACF;IAEA,OAAO,KAAO;AAChB","ignoreList":[0]}
|
||||
4
apps/public-web/node_modules/next/dist/next-devtools/shared/hydration-error.d.ts
generated
vendored
Normal file
4
apps/public-web/node_modules/next/dist/next-devtools/shared/hydration-error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export type HydrationErrorState = {
|
||||
warning?: string;
|
||||
reactOutputComponentDiff?: string;
|
||||
};
|
||||
12
apps/public-web/node_modules/next/dist/next-devtools/shared/hydration-error.js
generated
vendored
Normal file
12
apps/public-web/node_modules/next/dist/next-devtools/shared/hydration-error.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=hydration-error.js.map
|
||||
1
apps/public-web/node_modules/next/dist/next-devtools/shared/hydration-error.js.map
generated
vendored
Normal file
1
apps/public-web/node_modules/next/dist/next-devtools/shared/hydration-error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":[],"names":[],"mappings":"","ignoreList":[]}
|
||||
5
apps/public-web/node_modules/next/dist/next-devtools/shared/react-18-hydration-error.d.ts
generated
vendored
Normal file
5
apps/public-web/node_modules/next/dist/next-devtools/shared/react-18-hydration-error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export declare function isHydrationError(error: unknown): boolean;
|
||||
export declare function isHydrationWarning(message: unknown): message is string;
|
||||
type NullableText = string | null | undefined;
|
||||
export declare const getHydrationWarningType: (message: NullableText) => "tag" | "text" | "text-in-tag";
|
||||
export {};
|
||||
68
apps/public-web/node_modules/next/dist/next-devtools/shared/react-18-hydration-error.js
generated
vendored
Normal file
68
apps/public-web/node_modules/next/dist/next-devtools/shared/react-18-hydration-error.js
generated
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
0 && (module.exports = {
|
||||
getHydrationWarningType: null,
|
||||
isHydrationError: null,
|
||||
isHydrationWarning: null
|
||||
});
|
||||
function _export(target, all) {
|
||||
for(var name in all)Object.defineProperty(target, name, {
|
||||
enumerable: true,
|
||||
get: all[name]
|
||||
});
|
||||
}
|
||||
_export(exports, {
|
||||
getHydrationWarningType: function() {
|
||||
return getHydrationWarningType;
|
||||
},
|
||||
isHydrationError: function() {
|
||||
return isHydrationError;
|
||||
},
|
||||
isHydrationWarning: function() {
|
||||
return isHydrationWarning;
|
||||
}
|
||||
});
|
||||
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
||||
const _iserror = /*#__PURE__*/ _interop_require_default._(require("../../lib/is-error"));
|
||||
function isHydrationError(error) {
|
||||
return (0, _iserror.default)(error) && (error.message === 'Hydration failed because the initial UI does not match what was rendered on the server.' || error.message === 'Text content does not match server-rendered HTML.');
|
||||
}
|
||||
function isHydrationWarning(message) {
|
||||
return isHtmlTagsWarning(message) || isTextInTagsMismatchWarning(message) || isTextWarning(message);
|
||||
}
|
||||
// https://github.com/facebook/react/blob/main/packages/react-dom/src/__tests__/ReactDOMHydrationDiff-test.js used as a reference
|
||||
const htmlTagsWarnings = new Set([
|
||||
'Warning: Expected server HTML to contain a matching <%s> in <%s>.%s',
|
||||
'Warning: Did not expect server HTML to contain a <%s> in <%s>.%s'
|
||||
]);
|
||||
const textAndTagsMismatchWarnings = new Set([
|
||||
'Warning: Expected server HTML to contain a matching text node for "%s" in <%s>.%s',
|
||||
'Warning: Did not expect server HTML to contain the text node "%s" in <%s>.%s'
|
||||
]);
|
||||
const textWarnings = new Set([
|
||||
'Warning: Text content did not match. Server: "%s" Client: "%s"%s'
|
||||
]);
|
||||
const getHydrationWarningType = (message)=>{
|
||||
if (typeof message !== 'string') {
|
||||
// TODO: Doesn't make sense to treat no message as a hydration error message.
|
||||
// We should bail out somewhere earlier.
|
||||
return 'text';
|
||||
}
|
||||
const normalizedMessage = message.startsWith('Warning: ') ? message : `Warning: ${message}`;
|
||||
if (isHtmlTagsWarning(normalizedMessage)) return 'tag';
|
||||
if (isTextInTagsMismatchWarning(normalizedMessage)) return 'text-in-tag';
|
||||
return 'text';
|
||||
};
|
||||
const isHtmlTagsWarning = (message)=>typeof message === 'string' && htmlTagsWarnings.has(message);
|
||||
const isTextInTagsMismatchWarning = (msg)=>typeof msg === 'string' && textAndTagsMismatchWarnings.has(msg);
|
||||
const isTextWarning = (msg)=>typeof msg === 'string' && textWarnings.has(msg);
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=react-18-hydration-error.js.map
|
||||
1
apps/public-web/node_modules/next/dist/next-devtools/shared/react-18-hydration-error.js.map
generated
vendored
Normal file
1
apps/public-web/node_modules/next/dist/next-devtools/shared/react-18-hydration-error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/next-devtools/shared/react-18-hydration-error.ts"],"sourcesContent":["import isError from '../../lib/is-error'\n\nexport function isHydrationError(error: unknown): boolean {\n return (\n isError(error) &&\n (error.message ===\n 'Hydration failed because the initial UI does not match what was rendered on the server.' ||\n error.message === 'Text content does not match server-rendered HTML.')\n )\n}\n\nexport function isHydrationWarning(message: unknown): message is string {\n return (\n isHtmlTagsWarning(message) ||\n isTextInTagsMismatchWarning(message) ||\n isTextWarning(message)\n )\n}\n\ntype NullableText = string | null | undefined\n\n// https://github.com/facebook/react/blob/main/packages/react-dom/src/__tests__/ReactDOMHydrationDiff-test.js used as a reference\nconst htmlTagsWarnings = new Set([\n 'Warning: Expected server HTML to contain a matching <%s> in <%s>.%s',\n 'Warning: Did not expect server HTML to contain a <%s> in <%s>.%s',\n])\nconst textAndTagsMismatchWarnings = new Set([\n 'Warning: Expected server HTML to contain a matching text node for \"%s\" in <%s>.%s',\n 'Warning: Did not expect server HTML to contain the text node \"%s\" in <%s>.%s',\n])\nconst textWarnings = new Set([\n 'Warning: Text content did not match. Server: \"%s\" Client: \"%s\"%s',\n])\n\nexport const getHydrationWarningType = (\n message: NullableText\n): 'tag' | 'text' | 'text-in-tag' => {\n if (typeof message !== 'string') {\n // TODO: Doesn't make sense to treat no message as a hydration error message.\n // We should bail out somewhere earlier.\n return 'text'\n }\n\n const normalizedMessage = message.startsWith('Warning: ')\n ? message\n : `Warning: ${message}`\n\n if (isHtmlTagsWarning(normalizedMessage)) return 'tag'\n if (isTextInTagsMismatchWarning(normalizedMessage)) return 'text-in-tag'\n\n return 'text'\n}\n\nconst isHtmlTagsWarning = (message: unknown) =>\n typeof message === 'string' && htmlTagsWarnings.has(message)\n\nconst isTextInTagsMismatchWarning = (msg: unknown) =>\n typeof msg === 'string' && textAndTagsMismatchWarnings.has(msg)\n\nconst isTextWarning = (msg: unknown) =>\n typeof msg === 'string' && textWarnings.has(msg)\n"],"names":["getHydrationWarningType","isHydrationError","isHydrationWarning","error","isError","message","isHtmlTagsWarning","isTextInTagsMismatchWarning","isTextWarning","htmlTagsWarnings","Set","textAndTagsMismatchWarnings","textWarnings","normalizedMessage","startsWith","has","msg"],"mappings":";;;;;;;;;;;;;;;;IAkCaA,uBAAuB;eAAvBA;;IAhCGC,gBAAgB;eAAhBA;;IASAC,kBAAkB;eAAlBA;;;;kEAXI;AAEb,SAASD,iBAAiBE,KAAc;IAC7C,OACEC,IAAAA,gBAAO,EAACD,UACPA,CAAAA,MAAME,OAAO,KACZ,6FACAF,MAAME,OAAO,KAAK,mDAAkD;AAE1E;AAEO,SAASH,mBAAmBG,OAAgB;IACjD,OACEC,kBAAkBD,YAClBE,4BAA4BF,YAC5BG,cAAcH;AAElB;AAIA,iIAAiI;AACjI,MAAMI,mBAAmB,IAAIC,IAAI;IAC/B;IACA;CACD;AACD,MAAMC,8BAA8B,IAAID,IAAI;IAC1C;IACA;CACD;AACD,MAAME,eAAe,IAAIF,IAAI;IAC3B;CACD;AAEM,MAAMV,0BAA0B,CACrCK;IAEA,IAAI,OAAOA,YAAY,UAAU;QAC/B,6EAA6E;QAC7E,wCAAwC;QACxC,OAAO;IACT;IAEA,MAAMQ,oBAAoBR,QAAQS,UAAU,CAAC,eACzCT,UACA,CAAC,SAAS,EAAEA,SAAS;IAEzB,IAAIC,kBAAkBO,oBAAoB,OAAO;IACjD,IAAIN,4BAA4BM,oBAAoB,OAAO;IAE3D,OAAO;AACT;AAEA,MAAMP,oBAAoB,CAACD,UACzB,OAAOA,YAAY,YAAYI,iBAAiBM,GAAG,CAACV;AAEtD,MAAME,8BAA8B,CAACS,MACnC,OAAOA,QAAQ,YAAYL,4BAA4BI,GAAG,CAACC;AAE7D,MAAMR,gBAAgB,CAACQ,MACrB,OAAOA,QAAQ,YAAYJ,aAAaG,GAAG,CAACC","ignoreList":[0]}
|
||||
9
apps/public-web/node_modules/next/dist/next-devtools/shared/react-19-hydration-error.d.ts
generated
vendored
Normal file
9
apps/public-web/node_modules/next/dist/next-devtools/shared/react-19-hydration-error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
export declare const REACT_HYDRATION_ERROR_LINK = "https://react.dev/link/hydration-mismatch";
|
||||
export declare const NEXTJS_HYDRATION_ERROR_LINK = "https://nextjs.org/docs/messages/react-hydration-error";
|
||||
export declare function isHydrationError(error: Error): boolean;
|
||||
export declare function isErrorMessageWithComponentStackDiff(msg: string): boolean;
|
||||
export declare function getHydrationErrorStackInfo(error: Error): {
|
||||
message: string | null;
|
||||
notes: string | null;
|
||||
diff: string | null;
|
||||
};
|
||||
95
apps/public-web/node_modules/next/dist/next-devtools/shared/react-19-hydration-error.js
generated
vendored
Normal file
95
apps/public-web/node_modules/next/dist/next-devtools/shared/react-19-hydration-error.js
generated
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
0 && (module.exports = {
|
||||
NEXTJS_HYDRATION_ERROR_LINK: null,
|
||||
REACT_HYDRATION_ERROR_LINK: null,
|
||||
getHydrationErrorStackInfo: null,
|
||||
isErrorMessageWithComponentStackDiff: null,
|
||||
isHydrationError: null
|
||||
});
|
||||
function _export(target, all) {
|
||||
for(var name in all)Object.defineProperty(target, name, {
|
||||
enumerable: true,
|
||||
get: all[name]
|
||||
});
|
||||
}
|
||||
_export(exports, {
|
||||
NEXTJS_HYDRATION_ERROR_LINK: function() {
|
||||
return NEXTJS_HYDRATION_ERROR_LINK;
|
||||
},
|
||||
REACT_HYDRATION_ERROR_LINK: function() {
|
||||
return REACT_HYDRATION_ERROR_LINK;
|
||||
},
|
||||
getHydrationErrorStackInfo: function() {
|
||||
return getHydrationErrorStackInfo;
|
||||
},
|
||||
isErrorMessageWithComponentStackDiff: function() {
|
||||
return isErrorMessageWithComponentStackDiff;
|
||||
},
|
||||
isHydrationError: function() {
|
||||
return isHydrationError;
|
||||
}
|
||||
});
|
||||
const REACT_HYDRATION_ERROR_LINK = 'https://react.dev/link/hydration-mismatch';
|
||||
const NEXTJS_HYDRATION_ERROR_LINK = 'https://nextjs.org/docs/messages/react-hydration-error';
|
||||
/**
|
||||
* Only React 19+ contains component stack diff in the error message
|
||||
*/ const errorMessagesWithComponentStackDiff = [
|
||||
/^In HTML, (.+?) cannot be a child of <(.+?)>\.(.*)\nThis will cause a hydration error\.(.*)/,
|
||||
/^In HTML, (.+?) cannot be a descendant of <(.+?)>\.\nThis will cause a hydration error\.(.*)/,
|
||||
/^In HTML, text nodes cannot be a child of <(.+?)>\.\nThis will cause a hydration error\./,
|
||||
/^In HTML, whitespace text nodes cannot be a child of <(.+?)>\. Make sure you don't have any extra whitespace between tags on each line of your source code\.\nThis will cause a hydration error\./
|
||||
];
|
||||
function isHydrationError(error) {
|
||||
return isErrorMessageWithComponentStackDiff(error.message) || /Hydration failed because the server rendered (text|HTML) didn't match the client\./.test(error.message) || /A tree hydrated but some attributes of the server rendered HTML didn't match the client properties./.test(error.message);
|
||||
}
|
||||
function isErrorMessageWithComponentStackDiff(msg) {
|
||||
return errorMessagesWithComponentStackDiff.some((regex)=>regex.test(msg));
|
||||
}
|
||||
function getHydrationErrorStackInfo(error) {
|
||||
const errorMessage = error.message;
|
||||
if (isErrorMessageWithComponentStackDiff(errorMessage)) {
|
||||
const [message, diffLog = ''] = errorMessage.split('\n\n');
|
||||
const diff = diffLog.trim();
|
||||
return {
|
||||
message: diff === '' ? errorMessage.trim() : message.trim(),
|
||||
diff,
|
||||
notes: null
|
||||
};
|
||||
}
|
||||
const [message, maybeComponentStackDiff] = errorMessage.split(`${REACT_HYDRATION_ERROR_LINK}`);
|
||||
const trimmedMessage = message.trim();
|
||||
// React built-in hydration diff starts with a newline
|
||||
if (maybeComponentStackDiff !== undefined && maybeComponentStackDiff.length > 1) {
|
||||
const diffs = [];
|
||||
maybeComponentStackDiff.split('\n').forEach((line)=>{
|
||||
if (line.trim() === '') return;
|
||||
if (!line.trim().startsWith('at ')) {
|
||||
diffs.push(line);
|
||||
}
|
||||
});
|
||||
const [displayedMessage, ...notes] = trimmedMessage.split('\n\n');
|
||||
return {
|
||||
message: displayedMessage,
|
||||
diff: diffs.join('\n'),
|
||||
notes: notes.join('\n\n') || null
|
||||
};
|
||||
} else {
|
||||
const [displayedMessage, ...notes] = trimmedMessage.split('\n\n');
|
||||
return {
|
||||
message: displayedMessage,
|
||||
diff: null,
|
||||
notes: notes.join('\n\n')
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=react-19-hydration-error.js.map
|
||||
1
apps/public-web/node_modules/next/dist/next-devtools/shared/react-19-hydration-error.js.map
generated
vendored
Normal file
1
apps/public-web/node_modules/next/dist/next-devtools/shared/react-19-hydration-error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/next-devtools/shared/react-19-hydration-error.ts"],"sourcesContent":["export const REACT_HYDRATION_ERROR_LINK =\n 'https://react.dev/link/hydration-mismatch'\nexport const NEXTJS_HYDRATION_ERROR_LINK =\n 'https://nextjs.org/docs/messages/react-hydration-error'\n\n/**\n * Only React 19+ contains component stack diff in the error message\n */\nconst errorMessagesWithComponentStackDiff = [\n /^In HTML, (.+?) cannot be a child of <(.+?)>\\.(.*)\\nThis will cause a hydration error\\.(.*)/,\n /^In HTML, (.+?) cannot be a descendant of <(.+?)>\\.\\nThis will cause a hydration error\\.(.*)/,\n /^In HTML, text nodes cannot be a child of <(.+?)>\\.\\nThis will cause a hydration error\\./,\n /^In HTML, whitespace text nodes cannot be a child of <(.+?)>\\. Make sure you don't have any extra whitespace between tags on each line of your source code\\.\\nThis will cause a hydration error\\./,\n]\n\nexport function isHydrationError(error: Error): boolean {\n return (\n isErrorMessageWithComponentStackDiff(error.message) ||\n /Hydration failed because the server rendered (text|HTML) didn't match the client\\./.test(\n error.message\n ) ||\n /A tree hydrated but some attributes of the server rendered HTML didn't match the client properties./.test(\n error.message\n )\n )\n}\n\nexport function isErrorMessageWithComponentStackDiff(msg: string): boolean {\n return errorMessagesWithComponentStackDiff.some((regex) => regex.test(msg))\n}\n\nexport function getHydrationErrorStackInfo(error: Error): {\n message: string | null\n notes: string | null\n diff: string | null\n} {\n const errorMessage = error.message\n if (isErrorMessageWithComponentStackDiff(errorMessage)) {\n const [message, diffLog = ''] = errorMessage.split('\\n\\n')\n const diff = diffLog.trim()\n return {\n message: diff === '' ? errorMessage.trim() : message.trim(),\n diff,\n notes: null,\n }\n }\n\n const [message, maybeComponentStackDiff] = errorMessage.split(\n `${REACT_HYDRATION_ERROR_LINK}`\n )\n const trimmedMessage = message.trim()\n // React built-in hydration diff starts with a newline\n if (\n maybeComponentStackDiff !== undefined &&\n maybeComponentStackDiff.length > 1\n ) {\n const diffs: string[] = []\n maybeComponentStackDiff.split('\\n').forEach((line) => {\n if (line.trim() === '') return\n if (!line.trim().startsWith('at ')) {\n diffs.push(line)\n }\n })\n\n const [displayedMessage, ...notes] = trimmedMessage.split('\\n\\n')\n return {\n message: displayedMessage,\n diff: diffs.join('\\n'),\n notes: notes.join('\\n\\n') || null,\n }\n } else {\n const [displayedMessage, ...notes] = trimmedMessage.split('\\n\\n')\n return {\n message: displayedMessage,\n diff: null,\n notes: notes.join('\\n\\n'),\n }\n }\n}\n"],"names":["NEXTJS_HYDRATION_ERROR_LINK","REACT_HYDRATION_ERROR_LINK","getHydrationErrorStackInfo","isErrorMessageWithComponentStackDiff","isHydrationError","errorMessagesWithComponentStackDiff","error","message","test","msg","some","regex","errorMessage","diffLog","split","diff","trim","notes","maybeComponentStackDiff","trimmedMessage","undefined","length","diffs","forEach","line","startsWith","push","displayedMessage","join"],"mappings":";;;;;;;;;;;;;;;;;;IAEaA,2BAA2B;eAA3BA;;IAFAC,0BAA0B;eAA1BA;;IA+BGC,0BAA0B;eAA1BA;;IAJAC,oCAAoC;eAApCA;;IAZAC,gBAAgB;eAAhBA;;;AAfT,MAAMH,6BACX;AACK,MAAMD,8BACX;AAEF;;CAEC,GACD,MAAMK,sCAAsC;IAC1C;IACA;IACA;IACA;CACD;AAEM,SAASD,iBAAiBE,KAAY;IAC3C,OACEH,qCAAqCG,MAAMC,OAAO,KAClD,qFAAqFC,IAAI,CACvFF,MAAMC,OAAO,KAEf,sGAAsGC,IAAI,CACxGF,MAAMC,OAAO;AAGnB;AAEO,SAASJ,qCAAqCM,GAAW;IAC9D,OAAOJ,oCAAoCK,IAAI,CAAC,CAACC,QAAUA,MAAMH,IAAI,CAACC;AACxE;AAEO,SAASP,2BAA2BI,KAAY;IAKrD,MAAMM,eAAeN,MAAMC,OAAO;IAClC,IAAIJ,qCAAqCS,eAAe;QACtD,MAAM,CAACL,SAASM,UAAU,EAAE,CAAC,GAAGD,aAAaE,KAAK,CAAC;QACnD,MAAMC,OAAOF,QAAQG,IAAI;QACzB,OAAO;YACLT,SAASQ,SAAS,KAAKH,aAAaI,IAAI,KAAKT,QAAQS,IAAI;YACzDD;YACAE,OAAO;QACT;IACF;IAEA,MAAM,CAACV,SAASW,wBAAwB,GAAGN,aAAaE,KAAK,CAC3D,GAAGb,4BAA4B;IAEjC,MAAMkB,iBAAiBZ,QAAQS,IAAI;IACnC,sDAAsD;IACtD,IACEE,4BAA4BE,aAC5BF,wBAAwBG,MAAM,GAAG,GACjC;QACA,MAAMC,QAAkB,EAAE;QAC1BJ,wBAAwBJ,KAAK,CAAC,MAAMS,OAAO,CAAC,CAACC;YAC3C,IAAIA,KAAKR,IAAI,OAAO,IAAI;YACxB,IAAI,CAACQ,KAAKR,IAAI,GAAGS,UAAU,CAAC,QAAQ;gBAClCH,MAAMI,IAAI,CAACF;YACb;QACF;QAEA,MAAM,CAACG,kBAAkB,GAAGV,MAAM,GAAGE,eAAeL,KAAK,CAAC;QAC1D,OAAO;YACLP,SAASoB;YACTZ,MAAMO,MAAMM,IAAI,CAAC;YACjBX,OAAOA,MAAMW,IAAI,CAAC,WAAW;QAC/B;IACF,OAAO;QACL,MAAM,CAACD,kBAAkB,GAAGV,MAAM,GAAGE,eAAeL,KAAK,CAAC;QAC1D,OAAO;YACLP,SAASoB;YACTZ,MAAM;YACNE,OAAOA,MAAMW,IAAI,CAAC;QACpB;IACF;AACF","ignoreList":[0]}
|
||||
19
apps/public-web/node_modules/next/dist/next-devtools/shared/stack-frame.d.ts
generated
vendored
Normal file
19
apps/public-web/node_modules/next/dist/next-devtools/shared/stack-frame.d.ts
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import type { OriginalStackFrameResponse, StackFrame } from '../server/shared';
|
||||
export type { StackFrame };
|
||||
interface ResolvedOriginalStackFrame extends OriginalStackFrameResponse {
|
||||
error: false;
|
||||
reason: null;
|
||||
external: boolean;
|
||||
ignored: boolean;
|
||||
sourceStackFrame: StackFrame;
|
||||
}
|
||||
interface RejectedOriginalStackFrame extends OriginalStackFrameResponse {
|
||||
error: true;
|
||||
reason: string;
|
||||
external: boolean;
|
||||
ignored: boolean;
|
||||
sourceStackFrame: StackFrame;
|
||||
}
|
||||
export type OriginalStackFrame = ResolvedOriginalStackFrame | RejectedOriginalStackFrame;
|
||||
export declare function getOriginalStackFrames(frames: readonly StackFrame[], type: 'server' | 'edge-server' | null, isAppDir: boolean): Promise<readonly OriginalStackFrame[]>;
|
||||
export declare function getFrameSource(frame: StackFrame): string;
|
||||
148
apps/public-web/node_modules/next/dist/next-devtools/shared/stack-frame.js
generated
vendored
Normal file
148
apps/public-web/node_modules/next/dist/next-devtools/shared/stack-frame.js
generated
vendored
Normal file
@@ -0,0 +1,148 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
0 && (module.exports = {
|
||||
getFrameSource: null,
|
||||
getOriginalStackFrames: null
|
||||
});
|
||||
function _export(target, all) {
|
||||
for(var name in all)Object.defineProperty(target, name, {
|
||||
enumerable: true,
|
||||
get: all[name]
|
||||
});
|
||||
}
|
||||
_export(exports, {
|
||||
getFrameSource: function() {
|
||||
return getFrameSource;
|
||||
},
|
||||
getOriginalStackFrames: function() {
|
||||
return getOriginalStackFrames;
|
||||
}
|
||||
});
|
||||
const _webpackmodulepath = require("./webpack-module-path");
|
||||
function getOriginalStackFrame(source, response) {
|
||||
async function _getOriginalStackFrame() {
|
||||
if (response.status === 'rejected') {
|
||||
throw Object.defineProperty(new Error(response.reason), "__NEXT_ERROR_CODE", {
|
||||
value: "E394",
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
}
|
||||
const body = response.value;
|
||||
return {
|
||||
error: false,
|
||||
reason: null,
|
||||
external: false,
|
||||
sourceStackFrame: source,
|
||||
originalStackFrame: body.originalStackFrame,
|
||||
originalCodeFrame: body.originalCodeFrame || null,
|
||||
ignored: body.originalStackFrame?.ignored || false
|
||||
};
|
||||
}
|
||||
// TODO: merge this section into ignoredList handling
|
||||
if (source.file === 'file://' || source.file?.match(/https?:\/\//)) {
|
||||
return Promise.resolve({
|
||||
error: false,
|
||||
reason: null,
|
||||
external: true,
|
||||
sourceStackFrame: source,
|
||||
originalStackFrame: null,
|
||||
originalCodeFrame: null,
|
||||
ignored: true
|
||||
});
|
||||
}
|
||||
return _getOriginalStackFrame().catch((err)=>({
|
||||
error: true,
|
||||
reason: err?.message ?? err?.toString() ?? 'Unknown Error',
|
||||
external: false,
|
||||
sourceStackFrame: source,
|
||||
originalStackFrame: null,
|
||||
originalCodeFrame: null,
|
||||
ignored: false
|
||||
}));
|
||||
}
|
||||
async function getOriginalStackFrames(frames, type, isAppDir) {
|
||||
const req = {
|
||||
frames,
|
||||
isServer: type === 'server',
|
||||
isEdgeServer: type === 'edge-server',
|
||||
isAppDirectory: isAppDir
|
||||
};
|
||||
let res = undefined;
|
||||
let reason = undefined;
|
||||
try {
|
||||
res = await fetch('/__nextjs_original-stack-frames', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(req)
|
||||
});
|
||||
} catch (e) {
|
||||
reason = e + '';
|
||||
}
|
||||
// When fails to fetch the original stack frames, we reject here to be
|
||||
// caught at `_getOriginalStackFrame()` and return the stack frames so
|
||||
// that the error overlay can render.
|
||||
if (res && res.ok && res.status !== 204) {
|
||||
const data = await res.json();
|
||||
return Promise.all(frames.map((frame, index)=>getOriginalStackFrame(frame, data[index])));
|
||||
} else {
|
||||
if (res) {
|
||||
reason = await res.text();
|
||||
}
|
||||
}
|
||||
return Promise.all(frames.map((frame)=>getOriginalStackFrame(frame, {
|
||||
status: 'rejected',
|
||||
reason: `Failed to fetch the original stack frames ${reason ? `: ${reason}` : ''}`
|
||||
})));
|
||||
}
|
||||
function getFrameSource(frame) {
|
||||
if (!frame.file) return '';
|
||||
const isWebpackFrame = (0, _webpackmodulepath.isWebpackInternalResource)(frame.file);
|
||||
let str = '';
|
||||
// Skip URL parsing for webpack internal file paths.
|
||||
if (isWebpackFrame) {
|
||||
str = (0, _webpackmodulepath.formatFrameSourceFile)(frame.file);
|
||||
} else {
|
||||
try {
|
||||
const u = new URL(frame.file);
|
||||
let parsedPath = '';
|
||||
// Strip the origin for same-origin scripts.
|
||||
if (globalThis.location?.origin !== u.origin) {
|
||||
// URLs can be valid without an `origin`, so long as they have a
|
||||
// `protocol`. However, `origin` is preferred.
|
||||
if (u.origin === 'null') {
|
||||
parsedPath += u.protocol;
|
||||
} else {
|
||||
parsedPath += u.origin;
|
||||
}
|
||||
}
|
||||
// Strip query string information as it's typically too verbose to be
|
||||
// meaningful.
|
||||
parsedPath += u.pathname;
|
||||
str = (0, _webpackmodulepath.formatFrameSourceFile)(parsedPath);
|
||||
} catch {
|
||||
str = (0, _webpackmodulepath.formatFrameSourceFile)(frame.file);
|
||||
}
|
||||
}
|
||||
if (!(0, _webpackmodulepath.isWebpackInternalResource)(frame.file) && frame.line1 != null) {
|
||||
// We don't need line and column numbers for anonymous sources because
|
||||
// there's no entrypoint for the location anyway.
|
||||
if (str && frame.file !== '<anonymous>') {
|
||||
if (frame.column1 != null) {
|
||||
str += ` (${frame.line1}:${frame.column1})`;
|
||||
} else {
|
||||
str += ` (${frame.line1})`;
|
||||
}
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=stack-frame.js.map
|
||||
1
apps/public-web/node_modules/next/dist/next-devtools/shared/stack-frame.js.map
generated
vendored
Normal file
1
apps/public-web/node_modules/next/dist/next-devtools/shared/stack-frame.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
3
apps/public-web/node_modules/next/dist/next-devtools/shared/types.d.ts
generated
vendored
Normal file
3
apps/public-web/node_modules/next/dist/next-devtools/shared/types.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export type DebugInfo = {
|
||||
devtoolsFrontendUrl: string | undefined;
|
||||
};
|
||||
12
apps/public-web/node_modules/next/dist/next-devtools/shared/types.js
generated
vendored
Normal file
12
apps/public-web/node_modules/next/dist/next-devtools/shared/types.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=types.js.map
|
||||
1
apps/public-web/node_modules/next/dist/next-devtools/shared/types.js.map
generated
vendored
Normal file
1
apps/public-web/node_modules/next/dist/next-devtools/shared/types.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":[],"names":[],"mappings":"","ignoreList":[]}
|
||||
6
apps/public-web/node_modules/next/dist/next-devtools/shared/version-staleness.d.ts
generated
vendored
Normal file
6
apps/public-web/node_modules/next/dist/next-devtools/shared/version-staleness.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { VersionInfo } from '../../server/dev/parse-version-info';
|
||||
export declare function getStaleness({ installed, staleness, expected }: VersionInfo): {
|
||||
text: string;
|
||||
indicatorClass: string;
|
||||
title: string;
|
||||
};
|
||||
64
apps/public-web/node_modules/next/dist/next-devtools/shared/version-staleness.js
generated
vendored
Normal file
64
apps/public-web/node_modules/next/dist/next-devtools/shared/version-staleness.js
generated
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "getStaleness", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return getStaleness;
|
||||
}
|
||||
});
|
||||
function getStaleness({ installed, staleness, expected }) {
|
||||
let text = '';
|
||||
let title = '';
|
||||
let indicatorClass = '';
|
||||
const versionLabel = `Next.js ${installed}`;
|
||||
switch(staleness){
|
||||
case 'newer-than-npm':
|
||||
case 'fresh':
|
||||
text = versionLabel;
|
||||
title = `Latest available version is detected (${installed}).`;
|
||||
indicatorClass = 'fresh';
|
||||
break;
|
||||
case 'stale-patch':
|
||||
case 'stale-minor':
|
||||
text = `${versionLabel} (stale)`;
|
||||
title = `There is a newer version (${expected}) available, upgrade recommended! `;
|
||||
indicatorClass = 'stale';
|
||||
break;
|
||||
case 'stale-major':
|
||||
{
|
||||
text = `${versionLabel} (outdated)`;
|
||||
title = `An outdated version detected (latest is ${expected}), upgrade is highly recommended!`;
|
||||
indicatorClass = 'outdated';
|
||||
break;
|
||||
}
|
||||
case 'stale-prerelease':
|
||||
{
|
||||
text = `${versionLabel} (stale)`;
|
||||
title = `There is a newer canary version (${expected}) available, please upgrade! `;
|
||||
indicatorClass = 'stale';
|
||||
break;
|
||||
}
|
||||
case 'unknown':
|
||||
text = `${versionLabel} (unknown)`;
|
||||
title = 'No Next.js version data was found.';
|
||||
indicatorClass = 'unknown';
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return {
|
||||
text,
|
||||
indicatorClass,
|
||||
title
|
||||
};
|
||||
}
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=version-staleness.js.map
|
||||
1
apps/public-web/node_modules/next/dist/next-devtools/shared/version-staleness.js.map
generated
vendored
Normal file
1
apps/public-web/node_modules/next/dist/next-devtools/shared/version-staleness.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/next-devtools/shared/version-staleness.ts"],"sourcesContent":["import type { VersionInfo } from '../../server/dev/parse-version-info'\n\nexport function getStaleness({ installed, staleness, expected }: VersionInfo) {\n let text = ''\n let title = ''\n let indicatorClass = ''\n const versionLabel = `Next.js ${installed}`\n switch (staleness) {\n case 'newer-than-npm':\n case 'fresh':\n text = versionLabel\n title = `Latest available version is detected (${installed}).`\n indicatorClass = 'fresh'\n break\n case 'stale-patch':\n case 'stale-minor':\n text = `${versionLabel} (stale)`\n title = `There is a newer version (${expected}) available, upgrade recommended! `\n indicatorClass = 'stale'\n break\n case 'stale-major': {\n text = `${versionLabel} (outdated)`\n title = `An outdated version detected (latest is ${expected}), upgrade is highly recommended!`\n indicatorClass = 'outdated'\n break\n }\n case 'stale-prerelease': {\n text = `${versionLabel} (stale)`\n title = `There is a newer canary version (${expected}) available, please upgrade! `\n indicatorClass = 'stale'\n break\n }\n case 'unknown':\n text = `${versionLabel} (unknown)`\n title = 'No Next.js version data was found.'\n indicatorClass = 'unknown'\n break\n default:\n break\n }\n return { text, indicatorClass, title }\n}\n"],"names":["getStaleness","installed","staleness","expected","text","title","indicatorClass","versionLabel"],"mappings":";;;;+BAEgBA;;;eAAAA;;;AAAT,SAASA,aAAa,EAAEC,SAAS,EAAEC,SAAS,EAAEC,QAAQ,EAAe;IAC1E,IAAIC,OAAO;IACX,IAAIC,QAAQ;IACZ,IAAIC,iBAAiB;IACrB,MAAMC,eAAe,CAAC,QAAQ,EAAEN,WAAW;IAC3C,OAAQC;QACN,KAAK;QACL,KAAK;YACHE,OAAOG;YACPF,QAAQ,CAAC,sCAAsC,EAAEJ,UAAU,EAAE,CAAC;YAC9DK,iBAAiB;YACjB;QACF,KAAK;QACL,KAAK;YACHF,OAAO,GAAGG,aAAa,QAAQ,CAAC;YAChCF,QAAQ,CAAC,0BAA0B,EAAEF,SAAS,kCAAkC,CAAC;YACjFG,iBAAiB;YACjB;QACF,KAAK;YAAe;gBAClBF,OAAO,GAAGG,aAAa,WAAW,CAAC;gBACnCF,QAAQ,CAAC,wCAAwC,EAAEF,SAAS,iCAAiC,CAAC;gBAC9FG,iBAAiB;gBACjB;YACF;QACA,KAAK;YAAoB;gBACvBF,OAAO,GAAGG,aAAa,QAAQ,CAAC;gBAChCF,QAAQ,CAAC,iCAAiC,EAAEF,SAAS,6BAA6B,CAAC;gBACnFG,iBAAiB;gBACjB;YACF;QACA,KAAK;YACHF,OAAO,GAAGG,aAAa,UAAU,CAAC;YAClCF,QAAQ;YACRC,iBAAiB;YACjB;QACF;YACE;IACJ;IACA,OAAO;QAAEF;QAAME;QAAgBD;IAAM;AACvC","ignoreList":[0]}
|
||||
10
apps/public-web/node_modules/next/dist/next-devtools/shared/webpack-module-path.d.ts
generated
vendored
Normal file
10
apps/public-web/node_modules/next/dist/next-devtools/shared/webpack-module-path.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
export declare function isWebpackInternalResource(file: string): boolean;
|
||||
/**
|
||||
* Format the webpack internal id to original file path
|
||||
*
|
||||
* webpack-internal:///./src/hello.tsx => ./src/hello.tsx
|
||||
* webpack://_N_E/./src/hello.tsx => ./src/hello.tsx
|
||||
* webpack://./src/hello.tsx => ./src/hello.tsx
|
||||
* webpack:///./src/hello.tsx => ./src/hello.tsx
|
||||
*/
|
||||
export declare function formatFrameSourceFile(file: string): string;
|
||||
47
apps/public-web/node_modules/next/dist/next-devtools/shared/webpack-module-path.js
generated
vendored
Normal file
47
apps/public-web/node_modules/next/dist/next-devtools/shared/webpack-module-path.js
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
0 && (module.exports = {
|
||||
formatFrameSourceFile: null,
|
||||
isWebpackInternalResource: null
|
||||
});
|
||||
function _export(target, all) {
|
||||
for(var name in all)Object.defineProperty(target, name, {
|
||||
enumerable: true,
|
||||
get: all[name]
|
||||
});
|
||||
}
|
||||
_export(exports, {
|
||||
formatFrameSourceFile: function() {
|
||||
return formatFrameSourceFile;
|
||||
},
|
||||
isWebpackInternalResource: function() {
|
||||
return isWebpackInternalResource;
|
||||
}
|
||||
});
|
||||
const replacementRegExes = [
|
||||
/^webpack-internal:\/\/\/(\([\w-]+\)\/)?/,
|
||||
/^(webpack:\/\/\/|webpack:\/\/(_N_E\/)?)(\([\w-]+\)\/)?/
|
||||
];
|
||||
function isWebpackInternalResource(file) {
|
||||
for (const regex of replacementRegExes){
|
||||
if (regex.test(file)) return true;
|
||||
file = file.replace(regex, '');
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function formatFrameSourceFile(file) {
|
||||
for (const regex of replacementRegExes){
|
||||
file = file.replace(regex, '');
|
||||
}
|
||||
return file;
|
||||
}
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=webpack-module-path.js.map
|
||||
1
apps/public-web/node_modules/next/dist/next-devtools/shared/webpack-module-path.js.map
generated
vendored
Normal file
1
apps/public-web/node_modules/next/dist/next-devtools/shared/webpack-module-path.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/next-devtools/shared/webpack-module-path.ts"],"sourcesContent":["const replacementRegExes = [\n /^webpack-internal:\\/\\/\\/(\\([\\w-]+\\)\\/)?/,\n /^(webpack:\\/\\/\\/|webpack:\\/\\/(_N_E\\/)?)(\\([\\w-]+\\)\\/)?/,\n]\n\nexport function isWebpackInternalResource(file: string) {\n for (const regex of replacementRegExes) {\n if (regex.test(file)) return true\n\n file = file.replace(regex, '')\n }\n\n return false\n}\n\n/**\n * Format the webpack internal id to original file path\n *\n * webpack-internal:///./src/hello.tsx => ./src/hello.tsx\n * webpack://_N_E/./src/hello.tsx => ./src/hello.tsx\n * webpack://./src/hello.tsx => ./src/hello.tsx\n * webpack:///./src/hello.tsx => ./src/hello.tsx\n */\nexport function formatFrameSourceFile(file: string) {\n for (const regex of replacementRegExes) {\n file = file.replace(regex, '')\n }\n\n return file\n}\n"],"names":["formatFrameSourceFile","isWebpackInternalResource","replacementRegExes","file","regex","test","replace"],"mappings":";;;;;;;;;;;;;;;IAuBgBA,qBAAqB;eAArBA;;IAlBAC,yBAAyB;eAAzBA;;;AALhB,MAAMC,qBAAqB;IACzB;IACA;CACD;AAEM,SAASD,0BAA0BE,IAAY;IACpD,KAAK,MAAMC,SAASF,mBAAoB;QACtC,IAAIE,MAAMC,IAAI,CAACF,OAAO,OAAO;QAE7BA,OAAOA,KAAKG,OAAO,CAACF,OAAO;IAC7B;IAEA,OAAO;AACT;AAUO,SAASJ,sBAAsBG,IAAY;IAChD,KAAK,MAAMC,SAASF,mBAAoB;QACtCC,OAAOA,KAAKG,OAAO,CAACF,OAAO;IAC7B;IAEA,OAAOD;AACT","ignoreList":[0]}
|
||||
Reference in New Issue
Block a user