@larose-ui/devtools 0.1.0 → 0.1.2

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.
Files changed (3) hide show
  1. package/README.md +58 -0
  2. package/dist/index.js +3 -1
  3. package/package.json +14 -9
package/README.md ADDED
@@ -0,0 +1,58 @@
1
+ # @larose-ui/devtools
2
+
3
+ > In-app runtime inspector for development.
4
+
5
+ Part of **[laRose UI](https://github.com/hamdymohamedak/larose-ui)** — the UI Operating System for modern SaaS applications.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install @larose-ui/devtools
11
+ # or
12
+ pnpm add @larose-ui/devtools
13
+ # or
14
+ yarn add @larose-ui/devtools
15
+ ```
16
+
17
+
18
+ **Peer dependency:** `react >=18`
19
+
20
+
21
+ ## Quick start
22
+
23
+ ```tsx
24
+ import { DevToolsProvider } from '@larose-ui/devtools';
25
+
26
+ <LaRoseProvider>
27
+ <DevToolsProvider />
28
+ <App />
29
+ </LaRoseProvider>
30
+ ```
31
+
32
+ ## Features
33
+
34
+ - Runtime context panel (session, tenant, permissions)
35
+ - Event timeline from the runtime bus
36
+ - Component inspector with React fiber introspection
37
+ - Journey tab with rage-click analysis
38
+
39
+ ## Related packages
40
+
41
+ | Layer | Packages |
42
+ |-------|----------|
43
+ | Foundation | `@larose-ui/core`, `@larose-ui/tokens`, `@larose-ui/react` |
44
+ | Runtime | `@larose-ui/runtime`, `@larose-ui/network`, `@larose-ui/offline` |
45
+ | Intelligence | `@larose-ui/data`, `@larose-ui/forms`, `@larose-ui/permissions` |
46
+ | Platform | `@larose-ui/observability`, `@larose-ui/enterprise`, `@larose-ui/ai` |
47
+
48
+ ## Documentation
49
+
50
+ - [Monorepo README](https://github.com/hamdymohamedak/larose-ui#readme)
51
+ - [Package docs](https://github.com/hamdymohamedak/larose-ui/blob/main/docs/devtools/DEVTOOLS_2.md)
52
+ - [Architecture](https://github.com/hamdymohamedak/larose-ui/blob/main/docs/architecture/ARCHITECTURE.md)
53
+ - [Roadmap](https://github.com/hamdymohamedak/larose-ui/blob/main/docs/ROADMAP.md)
54
+ - [Report an issue](https://github.com/hamdymohamedak/larose-ui/issues)
55
+
56
+ ## License
57
+
58
+ MIT © [laRose UI](https://github.com/hamdymohamedak/larose-ui)
package/dist/index.js CHANGED
@@ -17,6 +17,8 @@ import { useCallback, useEffect, useState } from "react";
17
17
 
18
18
  // src/reactFiber.ts
19
19
  var PROP_SKIP = /* @__PURE__ */ new Set(["children", "ref", "key", "dangerouslySetInnerHTML"]);
20
+ var SENSITIVE_PROP = /password|passwd|secret|token|authorization|auth|api[_-]?key|credential|cookie|bearer|ssn|private[_-]?key/i;
21
+ var REDACTED = "[REDACTED]";
20
22
  var MAX_PROP_LEN = 80;
21
23
  function getFiberKey(node) {
22
24
  return Object.keys(node).find(
@@ -57,7 +59,7 @@ function sanitizeFiberProps(props) {
57
59
  const out = {};
58
60
  for (const [key, value] of Object.entries(props)) {
59
61
  if (PROP_SKIP.has(key) || key.startsWith("__")) continue;
60
- out[key] = formatPropValue(value);
62
+ out[key] = SENSITIVE_PROP.test(key) ? REDACTED : formatPropValue(value);
61
63
  }
62
64
  return out;
63
65
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@larose-ui/devtools",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "In-app DevTools inspector for laRose UI platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -13,16 +13,17 @@
13
13
  }
14
14
  },
15
15
  "files": [
16
- "dist"
16
+ "dist",
17
+ "README.md"
17
18
  ],
18
19
  "dependencies": {
19
- "@larose-ui/core": "0.1.0",
20
- "@larose-ui/observability": "0.1.0",
21
- "@larose-ui/runtime": "0.1.0"
20
+ "@larose-ui/core": "0.1.2",
21
+ "@larose-ui/observability": "0.1.2",
22
+ "@larose-ui/runtime": "0.1.2"
22
23
  },
23
24
  "peerDependencies": {
24
25
  "react": ">=18",
25
- "@larose-ui/permissions": "0.1.0"
26
+ "@larose-ui/permissions": "0.1.2"
26
27
  },
27
28
  "devDependencies": {
28
29
  "@testing-library/jest-dom": "^6.6.3",
@@ -35,8 +36,8 @@
35
36
  "tsup": "^8.3.5",
36
37
  "typescript": "^5.7.2",
37
38
  "vitest": "^2.1.8",
38
- "@larose-ui/permissions": "0.1.0",
39
- "@larose-ui/testing": "0.1.0"
39
+ "@larose-ui/permissions": "0.1.2",
40
+ "@larose-ui/testing": "0.1.2"
40
41
  },
41
42
  "license": "MIT",
42
43
  "publishConfig": {
@@ -44,7 +45,7 @@
44
45
  },
45
46
  "repository": {
46
47
  "type": "git",
47
- "url": "https://github.com/larose-ui/larose.git",
48
+ "url": "git+https://github.com/hamdymohamedak/larose-ui.git",
48
49
  "directory": "packages/devtools"
49
50
  },
50
51
  "keywords": [
@@ -54,6 +55,10 @@
54
55
  "design-system",
55
56
  "saas"
56
57
  ],
58
+ "homepage": "https://github.com/hamdymohamedak/larose-ui/blob/main/packages/devtools#readme",
59
+ "bugs": {
60
+ "url": "https://github.com/hamdymohamedak/larose-ui/issues"
61
+ },
57
62
  "scripts": {
58
63
  "build": "tsup",
59
64
  "test": "vitest run",