Inline base64 source maps had been checked into tracked src files. This strips those comments from the repository without changing runtime behavior or adding ongoing guardrails, per the requested one-time cleanup scope. Constraint: Keep this change limited to tracked source cleanup only Rejected: Add CI/source verification guard | user requested one-time cleanup only Confidence: high Scope-risk: narrow Reversibility: clean Directive: If these directives reappear, fix the producing transform instead of reintroducing repo-side cleanup code Tested: rg -n "sourceMappingURL" ., bun run smoke, bun run verify:privacy, bun run test:provider, npm run test:provider-recommendation Not-tested: bun run typecheck (repository has many pre-existing unrelated failures) Co-authored-by: anandh8x <test@example.com>
56 lines
1.5 KiB
TypeScript
56 lines
1.5 KiB
TypeScript
import { c as _c } from "react-compiler-runtime";
|
|
import type { ReactNode } from 'react';
|
|
import { FpsMetricsProvider } from '../context/fpsMetrics.js';
|
|
import { StatsProvider, type StatsStore } from '../context/stats.js';
|
|
import { type AppState, AppStateProvider } from '../state/AppState.js';
|
|
import { onChangeAppState } from '../state/onChangeAppState.js';
|
|
import type { FpsMetrics } from '../utils/fpsTracker.js';
|
|
type Props = {
|
|
getFpsMetrics: () => FpsMetrics | undefined;
|
|
stats?: StatsStore;
|
|
initialState: AppState;
|
|
children: ReactNode;
|
|
};
|
|
|
|
/**
|
|
* Top-level wrapper for interactive sessions.
|
|
* Provides FPS metrics, stats context, and app state to the component tree.
|
|
*/
|
|
export function App(t0: Props) {
|
|
const $ = _c(9);
|
|
const {
|
|
getFpsMetrics,
|
|
stats,
|
|
initialState,
|
|
children
|
|
} = t0;
|
|
let t1;
|
|
if ($[0] !== children || $[1] !== initialState) {
|
|
t1 = <AppStateProvider initialState={initialState} onChangeAppState={onChangeAppState}>{children}</AppStateProvider>;
|
|
$[0] = children;
|
|
$[1] = initialState;
|
|
$[2] = t1;
|
|
} else {
|
|
t1 = $[2];
|
|
}
|
|
let t2;
|
|
if ($[3] !== stats || $[4] !== t1) {
|
|
t2 = <StatsProvider store={stats}>{t1}</StatsProvider>;
|
|
$[3] = stats;
|
|
$[4] = t1;
|
|
$[5] = t2;
|
|
} else {
|
|
t2 = $[5];
|
|
}
|
|
let t3;
|
|
if ($[6] !== getFpsMetrics || $[7] !== t2) {
|
|
t3 = <FpsMetricsProvider getFpsMetrics={getFpsMetrics}>{t2}</FpsMetricsProvider>;
|
|
$[6] = getFpsMetrics;
|
|
$[7] = t2;
|
|
$[8] = t3;
|
|
} else {
|
|
t3 = $[8];
|
|
}
|
|
return t3;
|
|
}
|