@flemo/devtools 0.5.0 → 0.6.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.
@@ -0,0 +1,4 @@
1
+ import { FlemoDevtoolsProps } from './react';
2
+ export type { FlemoDevtoolsProps } from './react';
3
+ export declare function FlemoDevtools(_props?: FlemoDevtoolsProps): null;
4
+ export default FlemoDevtools;
@@ -0,0 +1,6 @@
1
+ //#region src/reactNoop.ts
2
+ function e(e = {}) {
3
+ return null;
4
+ }
5
+ //#endregion
6
+ export { e as FlemoDevtools, e as default };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@flemo/devtools",
3
- "version": "0.5.0",
4
- "description": "Zero-config flight recorder for flemo screen transitions: captures per-flight driver routing, frame pacing, long tasks, landing residues, active debug overrides, and environment/observation-trap fingerprints into one JSON report readable by humans and coding agents.",
3
+ "version": "0.6.0",
4
+ "description": "Zero-config flight recorder, on-device readout and visual panel for flemo screen transitions: captures per-flight driver routing, frame pacing, long tasks, shared-element pairing, landing residues and judging preconditions into one JSON report readable by humans and coding agents.",
5
5
  "main": "./dist/index.mjs",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",
@@ -34,13 +34,17 @@
34
34
  "homepage": "https://flemo.dev",
35
35
  "license": "MIT",
36
36
  "devDependencies": {
37
- "@flemo/core": "2.3.0",
37
+ "@flemo/core": "2.3.1",
38
38
  "@flemo/eslint-config": "0.0.0",
39
39
  "@flemo/tsconfig": "0.0.0",
40
+ "@testing-library/react": "^16.3.3",
40
41
  "@types/node": "^24.13.1",
42
+ "@types/react": "^19.2.18",
41
43
  "@vitest/coverage-v8": "^4.1.11",
42
44
  "eslint": "^9.39.5",
43
45
  "jsdom": "^29.1.1",
46
+ "react": "^19.2.8",
47
+ "react-dom": "^19.2.8",
44
48
  "typescript": "^6.0.3",
45
49
  "vite": "^8.2.2",
46
50
  "vite-plugin-dts": "^5.0.3",
@@ -56,16 +60,30 @@
56
60
  "production": "./dist/noop.mjs",
57
61
  "default": "./dist/index.mjs"
58
62
  },
63
+ "./react": {
64
+ "types": "./dist/react.d.ts",
65
+ "development": "./dist/react.mjs",
66
+ "production": "./dist/reactNoop.mjs",
67
+ "default": "./dist/react.mjs"
68
+ },
59
69
  "./force": {
60
70
  "types": "./dist/index.d.ts",
61
71
  "default": "./dist/index.mjs"
62
72
  },
63
73
  "./package.json": "./package.json"
64
74
  },
75
+ "peerDependencies": {
76
+ "react": "^19.2.8"
77
+ },
78
+ "peerDependenciesMeta": {
79
+ "react": {
80
+ "optional": true
81
+ }
82
+ },
65
83
  "scripts": {
66
- "build": "vite build && DEVTOOLS_ENTRY=noop vite build",
67
- "watch": "vite build --watch",
68
- "dev": "vite build --watch",
84
+ "build": "rm -rf dist && vite build && DEVTOOLS_ENTRY=noop vite build && DEVTOOLS_ENTRY=react vite build && DEVTOOLS_ENTRY=reactNoop vite build",
85
+ "watch": "vite build --watch & DEVTOOLS_ENTRY=noop vite build --watch & DEVTOOLS_ENTRY=react vite build --watch & DEVTOOLS_ENTRY=reactNoop vite build --watch & wait",
86
+ "dev": "vite build --watch & DEVTOOLS_ENTRY=noop vite build --watch & DEVTOOLS_ENTRY=react vite build --watch & DEVTOOLS_ENTRY=reactNoop vite build --watch & wait",
69
87
  "lint": "eslint \"**/*.{js,mjs,ts,jsx,tsx,mts}\"",
70
88
  "typecheck": "tsc --noEmit",
71
89
  "test": "vitest run",