Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
2
node_modules/next/dist/client/dev/dev-build-indicator/initialize-for-app-router.d.ts
generated
vendored
Normal file
2
node_modules/next/dist/client/dev/dev-build-indicator/initialize-for-app-router.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
/** Integrates the generic dev build indicator with the App Router. */
|
||||
export declare const initializeDevBuildIndicatorForAppRouter: () => void;
|
||||
25
node_modules/next/dist/client/dev/dev-build-indicator/initialize-for-app-router.js
generated
vendored
Normal file
25
node_modules/next/dist/client/dev/dev-build-indicator/initialize-for-app-router.js
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "initializeDevBuildIndicatorForAppRouter", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return initializeDevBuildIndicatorForAppRouter;
|
||||
}
|
||||
});
|
||||
const _devbuildindicator = require("./internal/dev-build-indicator");
|
||||
const initializeDevBuildIndicatorForAppRouter = ()=>{
|
||||
if (!process.env.__NEXT_DEV_INDICATOR) {
|
||||
return;
|
||||
}
|
||||
_devbuildindicator.devBuildIndicator.initialize();
|
||||
};
|
||||
|
||||
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=initialize-for-app-router.js.map
|
||||
1
node_modules/next/dist/client/dev/dev-build-indicator/initialize-for-app-router.js.map
generated
vendored
Normal file
1
node_modules/next/dist/client/dev/dev-build-indicator/initialize-for-app-router.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"sources":["../../../../src/client/dev/dev-build-indicator/initialize-for-app-router.ts"],"sourcesContent":["import { devBuildIndicator } from './internal/dev-build-indicator'\n\n/** Integrates the generic dev build indicator with the App Router. */\nexport const initializeDevBuildIndicatorForAppRouter = () => {\n if (!process.env.__NEXT_DEV_INDICATOR) {\n return\n }\n\n devBuildIndicator.initialize()\n}\n"],"names":["initializeDevBuildIndicatorForAppRouter","process","env","__NEXT_DEV_INDICATOR","devBuildIndicator","initialize"],"mappings":";;;;+BAGaA;;;eAAAA;;;mCAHqB;AAG3B,MAAMA,0CAA0C;IACrD,IAAI,CAACC,QAAQC,GAAG,CAACC,oBAAoB,EAAE;QACrC;IACF;IAEAC,oCAAiB,CAACC,UAAU;AAC9B"}
|
||||
2
node_modules/next/dist/client/dev/dev-build-indicator/initialize-for-page-router.d.ts
generated
vendored
Normal file
2
node_modules/next/dist/client/dev/dev-build-indicator/initialize-for-page-router.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
/** Integrates the generic dev build indicator with the Pages Router. */
|
||||
export declare const initializeDevBuildIndicatorForPageRouter: () => void;
|
||||
30
node_modules/next/dist/client/dev/dev-build-indicator/initialize-for-page-router.js
generated
vendored
Normal file
30
node_modules/next/dist/client/dev/dev-build-indicator/initialize-for-page-router.js
generated
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "initializeDevBuildIndicatorForPageRouter", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return initializeDevBuildIndicatorForPageRouter;
|
||||
}
|
||||
});
|
||||
const _websocket = require("../../components/react-dev-overlay/pages/websocket");
|
||||
const _devbuildindicator = require("./internal/dev-build-indicator");
|
||||
const _handledevbuildindicatorhmrevents = require("./internal/handle-dev-build-indicator-hmr-events");
|
||||
const initializeDevBuildIndicatorForPageRouter = ()=>{
|
||||
if (!process.env.__NEXT_DEV_INDICATOR) {
|
||||
return;
|
||||
}
|
||||
_devbuildindicator.devBuildIndicator.initialize();
|
||||
// Add message listener specifically for Pages Router to handle lifecycle events
|
||||
// related to dev builds (building, built, sync)
|
||||
(0, _websocket.addMessageListener)(_handledevbuildindicatorhmrevents.handleDevBuildIndicatorHmrEvents);
|
||||
};
|
||||
|
||||
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=initialize-for-page-router.js.map
|
||||
1
node_modules/next/dist/client/dev/dev-build-indicator/initialize-for-page-router.js.map
generated
vendored
Normal file
1
node_modules/next/dist/client/dev/dev-build-indicator/initialize-for-page-router.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"sources":["../../../../src/client/dev/dev-build-indicator/initialize-for-page-router.ts"],"sourcesContent":["import { addMessageListener } from '../../components/react-dev-overlay/pages/websocket'\nimport { devBuildIndicator } from './internal/dev-build-indicator'\nimport { handleDevBuildIndicatorHmrEvents } from './internal/handle-dev-build-indicator-hmr-events'\n\n/** Integrates the generic dev build indicator with the Pages Router. */\nexport const initializeDevBuildIndicatorForPageRouter = () => {\n if (!process.env.__NEXT_DEV_INDICATOR) {\n return\n }\n\n devBuildIndicator.initialize()\n\n // Add message listener specifically for Pages Router to handle lifecycle events\n // related to dev builds (building, built, sync)\n addMessageListener(handleDevBuildIndicatorHmrEvents)\n}\n"],"names":["initializeDevBuildIndicatorForPageRouter","process","env","__NEXT_DEV_INDICATOR","devBuildIndicator","initialize","addMessageListener","handleDevBuildIndicatorHmrEvents"],"mappings":";;;;+BAKaA;;;eAAAA;;;2BALsB;mCACD;kDACe;AAG1C,MAAMA,2CAA2C;IACtD,IAAI,CAACC,QAAQC,GAAG,CAACC,oBAAoB,EAAE;QACrC;IACF;IAEAC,oCAAiB,CAACC,UAAU;IAE5B,gFAAgF;IAChF,gDAAgD;IAChDC,IAAAA,6BAAkB,EAACC,kEAAgC;AACrD"}
|
||||
9
node_modules/next/dist/client/dev/dev-build-indicator/internal/dev-build-indicator.d.ts
generated
vendored
Normal file
9
node_modules/next/dist/client/dev/dev-build-indicator/internal/dev-build-indicator.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { initialize } from './initialize';
|
||||
export declare const devBuildIndicator: {
|
||||
/** Shows build indicator when Next.js is compiling. Requires initialize() first. */
|
||||
show: () => void;
|
||||
/** Hides build indicator when Next.js finishes compiling. Requires initialize() first. */
|
||||
hide: () => void;
|
||||
/** Sets up the build indicator UI component. Call this before using show/hide. */
|
||||
initialize: typeof initialize;
|
||||
};
|
||||
25
node_modules/next/dist/client/dev/dev-build-indicator/internal/dev-build-indicator.js
generated
vendored
Normal file
25
node_modules/next/dist/client/dev/dev-build-indicator/internal/dev-build-indicator.js
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "devBuildIndicator", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return devBuildIndicator;
|
||||
}
|
||||
});
|
||||
const _initialize = require("./initialize");
|
||||
const NOOP = ()=>{};
|
||||
const devBuildIndicator = {
|
||||
/** Shows build indicator when Next.js is compiling. Requires initialize() first. */ show: NOOP,
|
||||
/** Hides build indicator when Next.js finishes compiling. Requires initialize() first. */ hide: NOOP,
|
||||
/** Sets up the build indicator UI component. Call this before using show/hide. */ initialize: _initialize.initialize
|
||||
};
|
||||
|
||||
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=dev-build-indicator.js.map
|
||||
1
node_modules/next/dist/client/dev/dev-build-indicator/internal/dev-build-indicator.js.map
generated
vendored
Normal file
1
node_modules/next/dist/client/dev/dev-build-indicator/internal/dev-build-indicator.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"sources":["../../../../../src/client/dev/dev-build-indicator/internal/dev-build-indicator.ts"],"sourcesContent":["import { initialize } from './initialize'\n\nconst NOOP = () => {}\n\nexport const devBuildIndicator = {\n /** Shows build indicator when Next.js is compiling. Requires initialize() first. */\n show: NOOP,\n /** Hides build indicator when Next.js finishes compiling. Requires initialize() first. */\n hide: NOOP,\n /** Sets up the build indicator UI component. Call this before using show/hide. */\n initialize,\n}\n"],"names":["devBuildIndicator","NOOP","show","hide","initialize"],"mappings":";;;;+BAIaA;;;eAAAA;;;4BAJc;AAE3B,MAAMC,OAAO,KAAO;AAEb,MAAMD,oBAAoB;IAC/B,kFAAkF,GAClFE,MAAMD;IACN,wFAAwF,GACxFE,MAAMF;IACN,gFAAgF,GAChFG,YAAAA,sBAAU;AACZ"}
|
||||
6
node_modules/next/dist/client/dev/dev-build-indicator/internal/handle-dev-build-indicator-hmr-events.d.ts
generated
vendored
Normal file
6
node_modules/next/dist/client/dev/dev-build-indicator/internal/handle-dev-build-indicator-hmr-events.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import { type HMR_ACTION_TYPES } from '../../../../server/dev/hot-reloader-types';
|
||||
/**
|
||||
* Handles HMR events to control the dev build indicator visibility.
|
||||
* Shows indicator when building and hides it when build completes or syncs.
|
||||
*/
|
||||
export declare const handleDevBuildIndicatorHmrEvents: (obj: HMR_ACTION_TYPES) => void;
|
||||
37
node_modules/next/dist/client/dev/dev-build-indicator/internal/handle-dev-build-indicator-hmr-events.js
generated
vendored
Normal file
37
node_modules/next/dist/client/dev/dev-build-indicator/internal/handle-dev-build-indicator-hmr-events.js
generated
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "handleDevBuildIndicatorHmrEvents", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return handleDevBuildIndicatorHmrEvents;
|
||||
}
|
||||
});
|
||||
const _hotreloadertypes = require("../../../../server/dev/hot-reloader-types");
|
||||
const _devbuildindicator = require("./dev-build-indicator");
|
||||
const handleDevBuildIndicatorHmrEvents = (obj)=>{
|
||||
try {
|
||||
if (!('action' in obj)) {
|
||||
return;
|
||||
}
|
||||
// eslint-disable-next-line default-case
|
||||
switch(obj.action){
|
||||
case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.BUILDING:
|
||||
_devbuildindicator.devBuildIndicator.show();
|
||||
break;
|
||||
case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.BUILT:
|
||||
case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.SYNC:
|
||||
_devbuildindicator.devBuildIndicator.hide();
|
||||
break;
|
||||
}
|
||||
} catch (e) {}
|
||||
};
|
||||
|
||||
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=handle-dev-build-indicator-hmr-events.js.map
|
||||
1
node_modules/next/dist/client/dev/dev-build-indicator/internal/handle-dev-build-indicator-hmr-events.js.map
generated
vendored
Normal file
1
node_modules/next/dist/client/dev/dev-build-indicator/internal/handle-dev-build-indicator-hmr-events.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"sources":["../../../../../src/client/dev/dev-build-indicator/internal/handle-dev-build-indicator-hmr-events.ts"],"sourcesContent":["import {\n HMR_ACTIONS_SENT_TO_BROWSER,\n type HMR_ACTION_TYPES,\n} from '../../../../server/dev/hot-reloader-types'\nimport { devBuildIndicator } from './dev-build-indicator'\n\n/**\n * Handles HMR events to control the dev build indicator visibility.\n * Shows indicator when building and hides it when build completes or syncs.\n */\nexport const handleDevBuildIndicatorHmrEvents = (obj: HMR_ACTION_TYPES) => {\n try {\n if (!('action' in obj)) {\n return\n }\n\n // eslint-disable-next-line default-case\n switch (obj.action) {\n case HMR_ACTIONS_SENT_TO_BROWSER.BUILDING:\n devBuildIndicator.show()\n break\n case HMR_ACTIONS_SENT_TO_BROWSER.BUILT:\n case HMR_ACTIONS_SENT_TO_BROWSER.SYNC:\n devBuildIndicator.hide()\n break\n }\n } catch {}\n}\n"],"names":["handleDevBuildIndicatorHmrEvents","obj","action","HMR_ACTIONS_SENT_TO_BROWSER","BUILDING","devBuildIndicator","show","BUILT","SYNC","hide"],"mappings":";;;;+BAUaA;;;eAAAA;;;kCAPN;mCAC2B;AAM3B,MAAMA,mCAAmC,CAACC;IAC/C,IAAI;QACF,IAAI,CAAE,CAAA,YAAYA,GAAE,GAAI;YACtB;QACF;QAEA,wCAAwC;QACxC,OAAQA,IAAIC,MAAM;YAChB,KAAKC,6CAA2B,CAACC,QAAQ;gBACvCC,oCAAiB,CAACC,IAAI;gBACtB;YACF,KAAKH,6CAA2B,CAACI,KAAK;YACtC,KAAKJ,6CAA2B,CAACK,IAAI;gBACnCH,oCAAiB,CAACI,IAAI;gBACtB;QACJ;IACF,EAAE,UAAM,CAAC;AACX"}
|
||||
2
node_modules/next/dist/client/dev/dev-build-indicator/internal/initialize.d.ts
generated
vendored
Normal file
2
node_modules/next/dist/client/dev/dev-build-indicator/internal/initialize.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
export declare function useIsDevBuilding(): boolean;
|
||||
export declare function initialize(): void;
|
||||
57
node_modules/next/dist/client/dev/dev-build-indicator/internal/initialize.js
generated
vendored
Normal file
57
node_modules/next/dist/client/dev/dev-build-indicator/internal/initialize.js
generated
vendored
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
/*
|
||||
* Singleton store to track whether the app is currently being built
|
||||
* Used by the dev tools indicator of the new overlay to show build status
|
||||
*/ "use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
0 && (module.exports = {
|
||||
initialize: null,
|
||||
useIsDevBuilding: null
|
||||
});
|
||||
function _export(target, all) {
|
||||
for(var name in all)Object.defineProperty(target, name, {
|
||||
enumerable: true,
|
||||
get: all[name]
|
||||
});
|
||||
}
|
||||
_export(exports, {
|
||||
initialize: function() {
|
||||
return initialize;
|
||||
},
|
||||
useIsDevBuilding: function() {
|
||||
return useIsDevBuilding;
|
||||
}
|
||||
});
|
||||
const _devbuildindicator = require("./dev-build-indicator");
|
||||
const _react = require("react");
|
||||
let isVisible = false;
|
||||
let listeners = [];
|
||||
const subscribe = (listener)=>{
|
||||
listeners.push(listener);
|
||||
return ()=>{
|
||||
listeners = listeners.filter((l)=>l !== listener);
|
||||
};
|
||||
};
|
||||
const getSnapshot = ()=>isVisible;
|
||||
function useIsDevBuilding() {
|
||||
return (0, _react.useSyncExternalStore)(subscribe, getSnapshot);
|
||||
}
|
||||
function initialize() {
|
||||
_devbuildindicator.devBuildIndicator.show = ()=>{
|
||||
isVisible = true;
|
||||
listeners.forEach((listener)=>listener());
|
||||
};
|
||||
_devbuildindicator.devBuildIndicator.hide = ()=>{
|
||||
isVisible = false;
|
||||
listeners.forEach((listener)=>listener());
|
||||
};
|
||||
}
|
||||
|
||||
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=initialize.js.map
|
||||
1
node_modules/next/dist/client/dev/dev-build-indicator/internal/initialize.js.map
generated
vendored
Normal file
1
node_modules/next/dist/client/dev/dev-build-indicator/internal/initialize.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"sources":["../../../../../src/client/dev/dev-build-indicator/internal/initialize.ts"],"sourcesContent":["/*\n * Singleton store to track whether the app is currently being built\n * Used by the dev tools indicator of the new overlay to show build status\n */\n\nimport { devBuildIndicator } from './dev-build-indicator'\nimport { useSyncExternalStore } from 'react'\n\nlet isVisible = false\nlet listeners: Array<() => void> = []\n\nconst subscribe = (listener: () => void) => {\n listeners.push(listener)\n return () => {\n listeners = listeners.filter((l) => l !== listener)\n }\n}\n\nconst getSnapshot = () => isVisible\n\nexport function useIsDevBuilding() {\n return useSyncExternalStore(subscribe, getSnapshot)\n}\n\nexport function initialize() {\n devBuildIndicator.show = () => {\n isVisible = true\n listeners.forEach((listener) => listener())\n }\n\n devBuildIndicator.hide = () => {\n isVisible = false\n listeners.forEach((listener) => listener())\n }\n}\n"],"names":["initialize","useIsDevBuilding","isVisible","listeners","subscribe","listener","push","filter","l","getSnapshot","useSyncExternalStore","devBuildIndicator","show","forEach","hide"],"mappings":"AAAA;;;CAGC;;;;;;;;;;;;;;;IAqBeA,UAAU;eAAVA;;IAJAC,gBAAgB;eAAhBA;;;mCAfkB;uBACG;AAErC,IAAIC,YAAY;AAChB,IAAIC,YAA+B,EAAE;AAErC,MAAMC,YAAY,CAACC;IACjBF,UAAUG,IAAI,CAACD;IACf,OAAO;QACLF,YAAYA,UAAUI,MAAM,CAAC,CAACC,IAAMA,MAAMH;IAC5C;AACF;AAEA,MAAMI,cAAc,IAAMP;AAEnB,SAASD;IACd,OAAOS,IAAAA,2BAAoB,EAACN,WAAWK;AACzC;AAEO,SAAST;IACdW,oCAAiB,CAACC,IAAI,GAAG;QACvBV,YAAY;QACZC,UAAUU,OAAO,CAAC,CAACR,WAAaA;IAClC;IAEAM,oCAAiB,CAACG,IAAI,GAAG;QACvBZ,YAAY;QACZC,UAAUU,OAAO,CAAC,CAACR,WAAaA;IAClC;AACF"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue