@oxog/react-check 1.0.3 → 1.1.1

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.
@@ -1,4 +1,4 @@
1
- import { h as ComponentStats, f as Severity, l as ThresholdOptions, R as RenderInfo, j as SessionSummary, d as RenderChainInfo, g as FixSuggestion, c as ScannerConfig } from './types-CVcIoqzs.cjs';
1
+ import { h as ComponentStats, f as Severity, l as ThresholdOptions, R as RenderInfo, j as SessionSummary, d as RenderChainInfo, g as FixSuggestion, c as ScannerConfig } from './types-xAXT9cir.cjs';
2
2
  import { E as EventEmitter } from './event-emitter-CxKUDo9q.cjs';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { h as ComponentStats, f as Severity, l as ThresholdOptions, R as RenderInfo, j as SessionSummary, d as RenderChainInfo, g as FixSuggestion, c as ScannerConfig } from './types-CVcIoqzs.js';
1
+ import { h as ComponentStats, f as Severity, l as ThresholdOptions, R as RenderInfo, j as SessionSummary, d as RenderChainInfo, g as FixSuggestion, c as ScannerConfig } from './types-xAXT9cir.js';
2
2
  import { E as EventEmitter } from './event-emitter-CxKUDo9q.js';
3
3
 
4
4
  /**
@@ -1,3 +1,3 @@
1
- import './types-CVcIoqzs.cjs';
1
+ import './types-xAXT9cir.cjs';
2
2
  import './event-emitter-CxKUDo9q.cjs';
3
- export { S as Scanner, b as ScannerEvents } from './scanner-BsBnFki5.cjs';
3
+ export { S as Scanner, b as ScannerEvents } from './scanner-5j2LEM-q.cjs';
package/dist/scanner.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import './types-CVcIoqzs.js';
1
+ import './types-xAXT9cir.js';
2
2
  import './event-emitter-CxKUDo9q.js';
3
- export { S as Scanner, b as ScannerEvents } from './scanner-bpT7eMcv.js';
3
+ export { S as Scanner, b as ScannerEvents } from './scanner-CTBraprQ.js';
@@ -341,6 +341,11 @@ type CLIMessage = {
341
341
  component: string;
342
342
  enabled: boolean;
343
343
  };
344
+ } | {
345
+ type: 'toggle-overlay';
346
+ payload: {
347
+ enabled: boolean;
348
+ };
344
349
  };
345
350
  /**
346
351
  * Scanner configuration sent to browser
@@ -341,6 +341,11 @@ type CLIMessage = {
341
341
  component: string;
342
342
  enabled: boolean;
343
343
  };
344
+ } | {
345
+ type: 'toggle-overlay';
346
+ payload: {
347
+ enabled: boolean;
348
+ };
344
349
  };
345
350
  /**
346
351
  * Scanner configuration sent to browser
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxog/react-check",
3
- "version": "1.0.3",
3
+ "version": "1.1.1",
4
4
  "description": "Scan, diagnose, and fix React performance issues. CLI tool and runtime analyzer with actionable fix suggestions.",
5
5
  "keywords": [
6
6
  "react",
@@ -100,7 +100,13 @@
100
100
  "format:check": "prettier --check \"src/**/*.ts\"",
101
101
  "typecheck": "tsc --noEmit",
102
102
  "prepublishOnly": "npm run build && npm run test:coverage",
103
- "clean": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true })\""
103
+ "clean": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true })\"",
104
+ "demo": "npm run demo:install && npm run demo:dev",
105
+ "demo:install": "cd demo && npm install",
106
+ "demo:dev": "cd demo && npm run dev",
107
+ "demo:build": "cd demo && npm run build",
108
+ "demo:scan": "npm run build && node dist/cli.js scan http://localhost:5173",
109
+ "demo:scan:webui": "npm run build && node dist/cli.js scan http://localhost:5173 --webui"
104
110
  },
105
111
  "engines": {
106
112
  "node": ">=18.0.0"