@oxog/react-check 1.1.6 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -1
- package/README.md +9 -3
- package/dist/browser-inject.global.js +705 -158
- package/dist/chain.d.cts +1 -1
- package/dist/chain.d.ts +1 -1
- package/dist/cli.js +493 -28
- package/dist/cli.js.map +1 -1
- package/dist/detect.d.cts +1 -1
- package/dist/detect.d.ts +1 -1
- package/dist/fix.d.cts +1 -1
- package/dist/fix.d.ts +1 -1
- package/dist/index.cjs +1124 -303
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +94 -43
- package/dist/index.d.ts +94 -43
- package/dist/index.js +1124 -303
- package/dist/index.js.map +1 -1
- package/dist/{scanner-CTBraprQ.d.ts → scanner-Cc2187fH.d.ts} +1 -1
- package/dist/{scanner-5j2LEM-q.d.cts → scanner-S7BtVIpW.d.cts} +1 -1
- package/dist/scanner.d.cts +2 -2
- package/dist/scanner.d.ts +2 -2
- package/dist/{types-xAXT9cir.d.cts → types-DuZyBVVV.d.cts} +1 -1
- package/dist/{types-xAXT9cir.d.ts → types-DuZyBVVV.d.ts} +1 -1
- package/package.json +7 -5
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { F as FiberNode, R as RenderInfo, a as ReactDevToolsHook, S as SessionReport, b as ReportOptions, C as CLIMessage, B as BrowserMessage, c as ScannerConfig, W as WindowWithReactDevTools } from './types-
|
|
2
|
-
export { q as ComponentNode, h as ComponentStats, E as ErrorCode, t as FiberType, g as FixSuggestion, e as FixType, k as FrameworkInfo, m as FrameworkOptions, O as OverlayOptions, p as ReactCheckConfig, r as ReactCheckError, s as ReactCheckEvents, o as ReactCheckOptions,
|
|
3
|
-
import { S as Scanner } from './scanner-
|
|
4
|
-
export { b as ScannerEvents, a as StatsCollector, c as StatsEvents } from './scanner-
|
|
1
|
+
import { F as FiberNode, R as RenderInfo, a as ReactDevToolsHook, S as SessionReport, b as ReportOptions, C as CLIMessage, B as BrowserMessage, c as RenderChainInfo, d as ScannerConfig, W as WindowWithReactDevTools } from './types-DuZyBVVV.cjs';
|
|
2
|
+
export { q as ComponentNode, h as ComponentStats, E as ErrorCode, t as FiberType, g as FixSuggestion, e as FixType, k as FrameworkInfo, m as FrameworkOptions, O as OverlayOptions, p as ReactCheckConfig, r as ReactCheckError, s as ReactCheckEvents, o as ReactCheckOptions, n as RuleOptions, i as SessionInfo, j as SessionSummary, f as Severity, l as ThresholdOptions, T as TimelineEvent } from './types-DuZyBVVV.cjs';
|
|
3
|
+
import { S as Scanner } from './scanner-S7BtVIpW.cjs';
|
|
4
|
+
export { b as ScannerEvents, a as StatsCollector, c as StatsEvents } from './scanner-S7BtVIpW.cjs';
|
|
5
5
|
export { ChainAnalyzer, ChainEvents } from './chain.cjs';
|
|
6
6
|
export { FixEvents, FixSuggester } from './fix.cjs';
|
|
7
7
|
export { detectFramework, detectFrameworkFromWindow, frameworkDetectors, getFrameworkTips } from './detect.cjs';
|
|
@@ -1046,12 +1046,10 @@ interface OverlayConfig {
|
|
|
1046
1046
|
enabled: boolean;
|
|
1047
1047
|
/** Whether to highlight renders */
|
|
1048
1048
|
highlightRenders: boolean;
|
|
1049
|
-
/** Animation speed */
|
|
1050
|
-
animationSpeed: 'slow' | 'fast' | 'off';
|
|
1051
|
-
/** Whether to show badges */
|
|
1052
|
-
showBadges: boolean;
|
|
1053
1049
|
/** Whether to show toolbar */
|
|
1054
1050
|
showToolbar: boolean;
|
|
1051
|
+
/** Highlight duration in ms (0 = persistent until cleared) */
|
|
1052
|
+
highlightDuration: number;
|
|
1055
1053
|
}
|
|
1056
1054
|
/**
|
|
1057
1055
|
* Overlay for visualizing React renders in the browser
|
|
@@ -1063,21 +1061,37 @@ declare class Overlay {
|
|
|
1063
1061
|
private host;
|
|
1064
1062
|
/** Overlay configuration */
|
|
1065
1063
|
private config;
|
|
1066
|
-
/**
|
|
1067
|
-
private
|
|
1068
|
-
/**
|
|
1069
|
-
private
|
|
1070
|
-
/** Render counts for badges */
|
|
1071
|
-
private renderCounts;
|
|
1064
|
+
/** Tracked components (deduplication) */
|
|
1065
|
+
private trackedComponents;
|
|
1066
|
+
/** Render chains */
|
|
1067
|
+
private renderChains;
|
|
1072
1068
|
/** Toolbar element */
|
|
1073
1069
|
private toolbar;
|
|
1074
1070
|
/** Whether overlay is visible */
|
|
1075
1071
|
private visible;
|
|
1072
|
+
/** Whether panel is collapsed to icon */
|
|
1073
|
+
private collapsed;
|
|
1074
|
+
/** Total render count */
|
|
1075
|
+
private totalRenders;
|
|
1076
|
+
/** FPS value */
|
|
1077
|
+
private fps;
|
|
1078
|
+
/** Scan start time */
|
|
1079
|
+
private startTime;
|
|
1080
|
+
/** Fade timeout handles */
|
|
1081
|
+
private fadeTimeouts;
|
|
1082
|
+
/** Bound scroll handler for cleanup */
|
|
1083
|
+
private scrollHandler;
|
|
1084
|
+
/** Scroll update pending flag (for throttling) */
|
|
1085
|
+
private scrollUpdatePending;
|
|
1086
|
+
/** Stats update interval */
|
|
1087
|
+
private statsInterval;
|
|
1076
1088
|
/**
|
|
1077
1089
|
* Create a new overlay
|
|
1078
1090
|
* @param config - Overlay configuration
|
|
1079
1091
|
*/
|
|
1080
1092
|
constructor(config?: Partial<OverlayConfig>);
|
|
1093
|
+
/** Retry count for init */
|
|
1094
|
+
private initRetryCount;
|
|
1081
1095
|
/**
|
|
1082
1096
|
* Initialize the overlay
|
|
1083
1097
|
*/
|
|
@@ -1086,67 +1100,102 @@ declare class Overlay {
|
|
|
1086
1100
|
* Destroy the overlay
|
|
1087
1101
|
*/
|
|
1088
1102
|
destroy(): void;
|
|
1103
|
+
/**
|
|
1104
|
+
* Handle scroll/resize events - update all highlight positions
|
|
1105
|
+
*/
|
|
1106
|
+
private onScroll;
|
|
1107
|
+
/**
|
|
1108
|
+
* Update positions of all tracked highlights
|
|
1109
|
+
*/
|
|
1110
|
+
private updateAllPositions;
|
|
1089
1111
|
/**
|
|
1090
1112
|
* Inject CSS styles into shadow DOM
|
|
1091
1113
|
*/
|
|
1092
1114
|
private injectStyles;
|
|
1093
1115
|
/**
|
|
1094
|
-
* Create the floating
|
|
1116
|
+
* Create the floating panel
|
|
1095
1117
|
*/
|
|
1096
1118
|
private createToolbar;
|
|
1097
1119
|
/**
|
|
1098
1120
|
* Set up toolbar event listeners
|
|
1099
1121
|
*/
|
|
1100
1122
|
private setupToolbarEvents;
|
|
1123
|
+
/**
|
|
1124
|
+
* Toggle collapse state
|
|
1125
|
+
*/
|
|
1126
|
+
private toggleCollapse;
|
|
1127
|
+
/**
|
|
1128
|
+
* Switch active tab
|
|
1129
|
+
*/
|
|
1130
|
+
private switchTab;
|
|
1131
|
+
/**
|
|
1132
|
+
* Update highlights visibility
|
|
1133
|
+
*/
|
|
1134
|
+
private updateHighlightsVisibility;
|
|
1101
1135
|
/**
|
|
1102
1136
|
* Make an element draggable
|
|
1103
|
-
* @param element - Element to make draggable
|
|
1104
1137
|
*/
|
|
1105
1138
|
private makeDraggable;
|
|
1139
|
+
/** Maximum number of highlights to show at once */
|
|
1140
|
+
private static readonly MAX_HIGHLIGHTS;
|
|
1141
|
+
/** Component names to skip (generic/internal) */
|
|
1142
|
+
private static readonly SKIP_COMPONENTS;
|
|
1106
1143
|
/**
|
|
1107
|
-
* Highlight a component render
|
|
1108
|
-
* @param render - Render information
|
|
1109
|
-
* @param element - DOM element to highlight
|
|
1144
|
+
* Highlight a component render
|
|
1110
1145
|
*/
|
|
1111
1146
|
highlight(render: RenderInfo, element: Element): void;
|
|
1112
1147
|
/**
|
|
1113
|
-
*
|
|
1114
|
-
|
|
1115
|
-
|
|
1148
|
+
* Add a render chain
|
|
1149
|
+
*/
|
|
1150
|
+
addChain(chain: RenderChainInfo): void;
|
|
1151
|
+
/**
|
|
1152
|
+
* Update FPS value
|
|
1116
1153
|
*/
|
|
1117
|
-
|
|
1154
|
+
updateFps(fps: number): void;
|
|
1118
1155
|
/**
|
|
1119
|
-
*
|
|
1120
|
-
* @param render - Render information
|
|
1121
|
-
* @param rect - Bounding rectangle
|
|
1122
|
-
* @param color - Badge color
|
|
1156
|
+
* Create a highlight element
|
|
1123
1157
|
*/
|
|
1124
|
-
private
|
|
1158
|
+
private createHighlightElement;
|
|
1125
1159
|
/**
|
|
1126
|
-
*
|
|
1127
|
-
|
|
1128
|
-
|
|
1160
|
+
* Update highlight position
|
|
1161
|
+
*/
|
|
1162
|
+
private updateHighlightPosition;
|
|
1163
|
+
/**
|
|
1164
|
+
* Update highlight color
|
|
1165
|
+
*/
|
|
1166
|
+
private updateHighlightColor;
|
|
1167
|
+
/**
|
|
1168
|
+
* Reset fade timeout
|
|
1169
|
+
*/
|
|
1170
|
+
private resetFadeTimeout;
|
|
1171
|
+
/**
|
|
1172
|
+
* Get the oldest tracked component by last render time
|
|
1173
|
+
*/
|
|
1174
|
+
private getOldestTrackedComponent;
|
|
1175
|
+
/**
|
|
1176
|
+
* Remove a highlight by component name
|
|
1177
|
+
*/
|
|
1178
|
+
private removeHighlight;
|
|
1179
|
+
/**
|
|
1180
|
+
* Get severity level
|
|
1129
1181
|
*/
|
|
1130
1182
|
private getSeverity;
|
|
1131
1183
|
/**
|
|
1132
|
-
* Record a render event
|
|
1133
|
-
* @param render - Render information
|
|
1184
|
+
* Record a render event
|
|
1134
1185
|
*/
|
|
1135
1186
|
recordRender(render: RenderInfo): void;
|
|
1136
|
-
/** Total render count */
|
|
1137
|
-
private totalRenders;
|
|
1138
1187
|
/**
|
|
1139
|
-
* Update
|
|
1188
|
+
* Update all stats
|
|
1140
1189
|
*/
|
|
1141
1190
|
private updateStats;
|
|
1142
1191
|
/**
|
|
1143
|
-
*
|
|
1192
|
+
* Update component list in Components tab
|
|
1144
1193
|
*/
|
|
1145
|
-
|
|
1194
|
+
private updateComponentList;
|
|
1146
1195
|
/**
|
|
1147
|
-
*
|
|
1196
|
+
* Update chain list in Chains tab
|
|
1148
1197
|
*/
|
|
1149
|
-
|
|
1198
|
+
private updateChainList;
|
|
1150
1199
|
/**
|
|
1151
1200
|
* Clear all visualizations
|
|
1152
1201
|
*/
|
|
@@ -1165,14 +1214,16 @@ declare class Overlay {
|
|
|
1165
1214
|
toggle(): void;
|
|
1166
1215
|
/**
|
|
1167
1216
|
* Update configuration
|
|
1168
|
-
* @param config - Partial configuration
|
|
1169
1217
|
*/
|
|
1170
1218
|
configure(config: Partial<OverlayConfig>): void;
|
|
1171
1219
|
/**
|
|
1172
1220
|
* Check if overlay is visible
|
|
1173
|
-
* @returns true if visible
|
|
1174
1221
|
*/
|
|
1175
1222
|
isVisible(): boolean;
|
|
1223
|
+
/**
|
|
1224
|
+
* Get render counts
|
|
1225
|
+
*/
|
|
1226
|
+
getRenderCounts(): Map<string, number>;
|
|
1176
1227
|
}
|
|
1177
1228
|
|
|
1178
1229
|
/**
|
|
@@ -1502,4 +1553,4 @@ declare function quickScan(url: string, options?: {
|
|
|
1502
1553
|
formats?: Array<'html' | 'json' | 'md'>;
|
|
1503
1554
|
}): Promise<SessionReport>;
|
|
1504
1555
|
|
|
1505
|
-
export { type BrowserEvents, type BrowserLaunchOptions, BrowserLauncher, BrowserMessage, BrowserScanner, type BrowserScannerEvents, CLIMessage, EventEmitter, FiberNode, FiberTag, LogLevel, Logger, Overlay, type OverlayConfig, type ProxyOptions, ProxyServer, type ProxyServerEvents, ReactCheckInjector, ReactDevToolsHook, RenderInfo, type ReportFormat, ReportGenerator, ReportOptions, Scanner, ScannerConfig, SessionReport, VERSION, WebSocketClient, WebSocketServer, type WebSocketServerEvents, WindowWithReactDevTools, colors, createRenderInfo, createReportGenerator, createScanner, ensureDir, escapeHtml, exists, findFiberByName, findUp, formatBytes, formatDuration, formatNumber, formatPercent, formatRenderTime, generateHTMLReport, generateJSONReport, generateMarkdownReport, generateReport, getBaseName, getChangedProps, getComponentName, getComponentPath, getDirName, getExtension, getFiberDOMNode, getOwner, getParentFiber, getReactVersion, handleBrowserMessages, isHostComponent, isMemoized, isPuppeteerAvailable, isUserComponent, joinPath, pad, parseJSONReport, quickScan, readJsonFile, readTextFile, resolvePath, saveReport, saveReports, shallowEqual, stripAnsi, supportsColor, truncate, validateJSONReport, walkFiberTree, writeJsonFile, writeTextFile };
|
|
1556
|
+
export { type BrowserEvents, type BrowserLaunchOptions, BrowserLauncher, BrowserMessage, BrowserScanner, type BrowserScannerEvents, CLIMessage, EventEmitter, FiberNode, FiberTag, LogLevel, Logger, Overlay, type OverlayConfig, type ProxyOptions, ProxyServer, type ProxyServerEvents, ReactCheckInjector, ReactDevToolsHook, RenderChainInfo, RenderInfo, type ReportFormat, ReportGenerator, ReportOptions, Scanner, ScannerConfig, SessionReport, VERSION, WebSocketClient, WebSocketServer, type WebSocketServerEvents, WindowWithReactDevTools, colors, createRenderInfo, createReportGenerator, createScanner, ensureDir, escapeHtml, exists, findFiberByName, findUp, formatBytes, formatDuration, formatNumber, formatPercent, formatRenderTime, generateHTMLReport, generateJSONReport, generateMarkdownReport, generateReport, getBaseName, getChangedProps, getComponentName, getComponentPath, getDirName, getExtension, getFiberDOMNode, getOwner, getParentFiber, getReactVersion, handleBrowserMessages, isHostComponent, isMemoized, isPuppeteerAvailable, isUserComponent, joinPath, pad, parseJSONReport, quickScan, readJsonFile, readTextFile, resolvePath, saveReport, saveReports, shallowEqual, stripAnsi, supportsColor, truncate, validateJSONReport, walkFiberTree, writeJsonFile, writeTextFile };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { F as FiberNode, R as RenderInfo, a as ReactDevToolsHook, S as SessionReport, b as ReportOptions, C as CLIMessage, B as BrowserMessage, c as ScannerConfig, W as WindowWithReactDevTools } from './types-
|
|
2
|
-
export { q as ComponentNode, h as ComponentStats, E as ErrorCode, t as FiberType, g as FixSuggestion, e as FixType, k as FrameworkInfo, m as FrameworkOptions, O as OverlayOptions, p as ReactCheckConfig, r as ReactCheckError, s as ReactCheckEvents, o as ReactCheckOptions,
|
|
3
|
-
import { S as Scanner } from './scanner-
|
|
4
|
-
export { b as ScannerEvents, a as StatsCollector, c as StatsEvents } from './scanner-
|
|
1
|
+
import { F as FiberNode, R as RenderInfo, a as ReactDevToolsHook, S as SessionReport, b as ReportOptions, C as CLIMessage, B as BrowserMessage, c as RenderChainInfo, d as ScannerConfig, W as WindowWithReactDevTools } from './types-DuZyBVVV.js';
|
|
2
|
+
export { q as ComponentNode, h as ComponentStats, E as ErrorCode, t as FiberType, g as FixSuggestion, e as FixType, k as FrameworkInfo, m as FrameworkOptions, O as OverlayOptions, p as ReactCheckConfig, r as ReactCheckError, s as ReactCheckEvents, o as ReactCheckOptions, n as RuleOptions, i as SessionInfo, j as SessionSummary, f as Severity, l as ThresholdOptions, T as TimelineEvent } from './types-DuZyBVVV.js';
|
|
3
|
+
import { S as Scanner } from './scanner-Cc2187fH.js';
|
|
4
|
+
export { b as ScannerEvents, a as StatsCollector, c as StatsEvents } from './scanner-Cc2187fH.js';
|
|
5
5
|
export { ChainAnalyzer, ChainEvents } from './chain.js';
|
|
6
6
|
export { FixEvents, FixSuggester } from './fix.js';
|
|
7
7
|
export { detectFramework, detectFrameworkFromWindow, frameworkDetectors, getFrameworkTips } from './detect.js';
|
|
@@ -1046,12 +1046,10 @@ interface OverlayConfig {
|
|
|
1046
1046
|
enabled: boolean;
|
|
1047
1047
|
/** Whether to highlight renders */
|
|
1048
1048
|
highlightRenders: boolean;
|
|
1049
|
-
/** Animation speed */
|
|
1050
|
-
animationSpeed: 'slow' | 'fast' | 'off';
|
|
1051
|
-
/** Whether to show badges */
|
|
1052
|
-
showBadges: boolean;
|
|
1053
1049
|
/** Whether to show toolbar */
|
|
1054
1050
|
showToolbar: boolean;
|
|
1051
|
+
/** Highlight duration in ms (0 = persistent until cleared) */
|
|
1052
|
+
highlightDuration: number;
|
|
1055
1053
|
}
|
|
1056
1054
|
/**
|
|
1057
1055
|
* Overlay for visualizing React renders in the browser
|
|
@@ -1063,21 +1061,37 @@ declare class Overlay {
|
|
|
1063
1061
|
private host;
|
|
1064
1062
|
/** Overlay configuration */
|
|
1065
1063
|
private config;
|
|
1066
|
-
/**
|
|
1067
|
-
private
|
|
1068
|
-
/**
|
|
1069
|
-
private
|
|
1070
|
-
/** Render counts for badges */
|
|
1071
|
-
private renderCounts;
|
|
1064
|
+
/** Tracked components (deduplication) */
|
|
1065
|
+
private trackedComponents;
|
|
1066
|
+
/** Render chains */
|
|
1067
|
+
private renderChains;
|
|
1072
1068
|
/** Toolbar element */
|
|
1073
1069
|
private toolbar;
|
|
1074
1070
|
/** Whether overlay is visible */
|
|
1075
1071
|
private visible;
|
|
1072
|
+
/** Whether panel is collapsed to icon */
|
|
1073
|
+
private collapsed;
|
|
1074
|
+
/** Total render count */
|
|
1075
|
+
private totalRenders;
|
|
1076
|
+
/** FPS value */
|
|
1077
|
+
private fps;
|
|
1078
|
+
/** Scan start time */
|
|
1079
|
+
private startTime;
|
|
1080
|
+
/** Fade timeout handles */
|
|
1081
|
+
private fadeTimeouts;
|
|
1082
|
+
/** Bound scroll handler for cleanup */
|
|
1083
|
+
private scrollHandler;
|
|
1084
|
+
/** Scroll update pending flag (for throttling) */
|
|
1085
|
+
private scrollUpdatePending;
|
|
1086
|
+
/** Stats update interval */
|
|
1087
|
+
private statsInterval;
|
|
1076
1088
|
/**
|
|
1077
1089
|
* Create a new overlay
|
|
1078
1090
|
* @param config - Overlay configuration
|
|
1079
1091
|
*/
|
|
1080
1092
|
constructor(config?: Partial<OverlayConfig>);
|
|
1093
|
+
/** Retry count for init */
|
|
1094
|
+
private initRetryCount;
|
|
1081
1095
|
/**
|
|
1082
1096
|
* Initialize the overlay
|
|
1083
1097
|
*/
|
|
@@ -1086,67 +1100,102 @@ declare class Overlay {
|
|
|
1086
1100
|
* Destroy the overlay
|
|
1087
1101
|
*/
|
|
1088
1102
|
destroy(): void;
|
|
1103
|
+
/**
|
|
1104
|
+
* Handle scroll/resize events - update all highlight positions
|
|
1105
|
+
*/
|
|
1106
|
+
private onScroll;
|
|
1107
|
+
/**
|
|
1108
|
+
* Update positions of all tracked highlights
|
|
1109
|
+
*/
|
|
1110
|
+
private updateAllPositions;
|
|
1089
1111
|
/**
|
|
1090
1112
|
* Inject CSS styles into shadow DOM
|
|
1091
1113
|
*/
|
|
1092
1114
|
private injectStyles;
|
|
1093
1115
|
/**
|
|
1094
|
-
* Create the floating
|
|
1116
|
+
* Create the floating panel
|
|
1095
1117
|
*/
|
|
1096
1118
|
private createToolbar;
|
|
1097
1119
|
/**
|
|
1098
1120
|
* Set up toolbar event listeners
|
|
1099
1121
|
*/
|
|
1100
1122
|
private setupToolbarEvents;
|
|
1123
|
+
/**
|
|
1124
|
+
* Toggle collapse state
|
|
1125
|
+
*/
|
|
1126
|
+
private toggleCollapse;
|
|
1127
|
+
/**
|
|
1128
|
+
* Switch active tab
|
|
1129
|
+
*/
|
|
1130
|
+
private switchTab;
|
|
1131
|
+
/**
|
|
1132
|
+
* Update highlights visibility
|
|
1133
|
+
*/
|
|
1134
|
+
private updateHighlightsVisibility;
|
|
1101
1135
|
/**
|
|
1102
1136
|
* Make an element draggable
|
|
1103
|
-
* @param element - Element to make draggable
|
|
1104
1137
|
*/
|
|
1105
1138
|
private makeDraggable;
|
|
1139
|
+
/** Maximum number of highlights to show at once */
|
|
1140
|
+
private static readonly MAX_HIGHLIGHTS;
|
|
1141
|
+
/** Component names to skip (generic/internal) */
|
|
1142
|
+
private static readonly SKIP_COMPONENTS;
|
|
1106
1143
|
/**
|
|
1107
|
-
* Highlight a component render
|
|
1108
|
-
* @param render - Render information
|
|
1109
|
-
* @param element - DOM element to highlight
|
|
1144
|
+
* Highlight a component render
|
|
1110
1145
|
*/
|
|
1111
1146
|
highlight(render: RenderInfo, element: Element): void;
|
|
1112
1147
|
/**
|
|
1113
|
-
*
|
|
1114
|
-
|
|
1115
|
-
|
|
1148
|
+
* Add a render chain
|
|
1149
|
+
*/
|
|
1150
|
+
addChain(chain: RenderChainInfo): void;
|
|
1151
|
+
/**
|
|
1152
|
+
* Update FPS value
|
|
1116
1153
|
*/
|
|
1117
|
-
|
|
1154
|
+
updateFps(fps: number): void;
|
|
1118
1155
|
/**
|
|
1119
|
-
*
|
|
1120
|
-
* @param render - Render information
|
|
1121
|
-
* @param rect - Bounding rectangle
|
|
1122
|
-
* @param color - Badge color
|
|
1156
|
+
* Create a highlight element
|
|
1123
1157
|
*/
|
|
1124
|
-
private
|
|
1158
|
+
private createHighlightElement;
|
|
1125
1159
|
/**
|
|
1126
|
-
*
|
|
1127
|
-
|
|
1128
|
-
|
|
1160
|
+
* Update highlight position
|
|
1161
|
+
*/
|
|
1162
|
+
private updateHighlightPosition;
|
|
1163
|
+
/**
|
|
1164
|
+
* Update highlight color
|
|
1165
|
+
*/
|
|
1166
|
+
private updateHighlightColor;
|
|
1167
|
+
/**
|
|
1168
|
+
* Reset fade timeout
|
|
1169
|
+
*/
|
|
1170
|
+
private resetFadeTimeout;
|
|
1171
|
+
/**
|
|
1172
|
+
* Get the oldest tracked component by last render time
|
|
1173
|
+
*/
|
|
1174
|
+
private getOldestTrackedComponent;
|
|
1175
|
+
/**
|
|
1176
|
+
* Remove a highlight by component name
|
|
1177
|
+
*/
|
|
1178
|
+
private removeHighlight;
|
|
1179
|
+
/**
|
|
1180
|
+
* Get severity level
|
|
1129
1181
|
*/
|
|
1130
1182
|
private getSeverity;
|
|
1131
1183
|
/**
|
|
1132
|
-
* Record a render event
|
|
1133
|
-
* @param render - Render information
|
|
1184
|
+
* Record a render event
|
|
1134
1185
|
*/
|
|
1135
1186
|
recordRender(render: RenderInfo): void;
|
|
1136
|
-
/** Total render count */
|
|
1137
|
-
private totalRenders;
|
|
1138
1187
|
/**
|
|
1139
|
-
* Update
|
|
1188
|
+
* Update all stats
|
|
1140
1189
|
*/
|
|
1141
1190
|
private updateStats;
|
|
1142
1191
|
/**
|
|
1143
|
-
*
|
|
1192
|
+
* Update component list in Components tab
|
|
1144
1193
|
*/
|
|
1145
|
-
|
|
1194
|
+
private updateComponentList;
|
|
1146
1195
|
/**
|
|
1147
|
-
*
|
|
1196
|
+
* Update chain list in Chains tab
|
|
1148
1197
|
*/
|
|
1149
|
-
|
|
1198
|
+
private updateChainList;
|
|
1150
1199
|
/**
|
|
1151
1200
|
* Clear all visualizations
|
|
1152
1201
|
*/
|
|
@@ -1165,14 +1214,16 @@ declare class Overlay {
|
|
|
1165
1214
|
toggle(): void;
|
|
1166
1215
|
/**
|
|
1167
1216
|
* Update configuration
|
|
1168
|
-
* @param config - Partial configuration
|
|
1169
1217
|
*/
|
|
1170
1218
|
configure(config: Partial<OverlayConfig>): void;
|
|
1171
1219
|
/**
|
|
1172
1220
|
* Check if overlay is visible
|
|
1173
|
-
* @returns true if visible
|
|
1174
1221
|
*/
|
|
1175
1222
|
isVisible(): boolean;
|
|
1223
|
+
/**
|
|
1224
|
+
* Get render counts
|
|
1225
|
+
*/
|
|
1226
|
+
getRenderCounts(): Map<string, number>;
|
|
1176
1227
|
}
|
|
1177
1228
|
|
|
1178
1229
|
/**
|
|
@@ -1502,4 +1553,4 @@ declare function quickScan(url: string, options?: {
|
|
|
1502
1553
|
formats?: Array<'html' | 'json' | 'md'>;
|
|
1503
1554
|
}): Promise<SessionReport>;
|
|
1504
1555
|
|
|
1505
|
-
export { type BrowserEvents, type BrowserLaunchOptions, BrowserLauncher, BrowserMessage, BrowserScanner, type BrowserScannerEvents, CLIMessage, EventEmitter, FiberNode, FiberTag, LogLevel, Logger, Overlay, type OverlayConfig, type ProxyOptions, ProxyServer, type ProxyServerEvents, ReactCheckInjector, ReactDevToolsHook, RenderInfo, type ReportFormat, ReportGenerator, ReportOptions, Scanner, ScannerConfig, SessionReport, VERSION, WebSocketClient, WebSocketServer, type WebSocketServerEvents, WindowWithReactDevTools, colors, createRenderInfo, createReportGenerator, createScanner, ensureDir, escapeHtml, exists, findFiberByName, findUp, formatBytes, formatDuration, formatNumber, formatPercent, formatRenderTime, generateHTMLReport, generateJSONReport, generateMarkdownReport, generateReport, getBaseName, getChangedProps, getComponentName, getComponentPath, getDirName, getExtension, getFiberDOMNode, getOwner, getParentFiber, getReactVersion, handleBrowserMessages, isHostComponent, isMemoized, isPuppeteerAvailable, isUserComponent, joinPath, pad, parseJSONReport, quickScan, readJsonFile, readTextFile, resolvePath, saveReport, saveReports, shallowEqual, stripAnsi, supportsColor, truncate, validateJSONReport, walkFiberTree, writeJsonFile, writeTextFile };
|
|
1556
|
+
export { type BrowserEvents, type BrowserLaunchOptions, BrowserLauncher, BrowserMessage, BrowserScanner, type BrowserScannerEvents, CLIMessage, EventEmitter, FiberNode, FiberTag, LogLevel, Logger, Overlay, type OverlayConfig, type ProxyOptions, ProxyServer, type ProxyServerEvents, ReactCheckInjector, ReactDevToolsHook, RenderChainInfo, RenderInfo, type ReportFormat, ReportGenerator, ReportOptions, Scanner, ScannerConfig, SessionReport, VERSION, WebSocketClient, WebSocketServer, type WebSocketServerEvents, WindowWithReactDevTools, colors, createRenderInfo, createReportGenerator, createScanner, ensureDir, escapeHtml, exists, findFiberByName, findUp, formatBytes, formatDuration, formatNumber, formatPercent, formatRenderTime, generateHTMLReport, generateJSONReport, generateMarkdownReport, generateReport, getBaseName, getChangedProps, getComponentName, getComponentPath, getDirName, getExtension, getFiberDOMNode, getOwner, getParentFiber, getReactVersion, handleBrowserMessages, isHostComponent, isMemoized, isPuppeteerAvailable, isUserComponent, joinPath, pad, parseJSONReport, quickScan, readJsonFile, readTextFile, resolvePath, saveReport, saveReports, shallowEqual, stripAnsi, supportsColor, truncate, validateJSONReport, walkFiberTree, writeJsonFile, writeTextFile };
|