@yoltra/devtools-ui 0.2.0 → 0.4.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.
@@ -120,6 +120,16 @@ export interface EventLogEntry {
120
120
  * @public
121
121
  */
122
122
  export interface HubContextValue {
123
+ /**
124
+ * This panel's identity, as given to the hub at handshake.
125
+ *
126
+ * @remarks
127
+ * Stamped on every message the panel sends. It used to send an empty string, so the hub could
128
+ * not tell one panel's commands from another's — with several open, or an authenticated hub
129
+ * auditing who drove a store, there was nothing to attribute a time-travel or an injected
130
+ * event to.
131
+ */
132
+ extensionId: string;
123
133
  /** Current connection status. */
124
134
  status: HubConnectionStatus;
125
135
  /** Send a protocol message to the hub. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoltra/devtools-ui",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "Shared React hooks and business logic for Yoltra DevTools UIs",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -41,18 +41,19 @@
41
41
  "react": "^18 || ^19"
42
42
  },
43
43
  "dependencies": {
44
- "@yoltra/devtools-protocol": "0.2.0"
44
+ "@yoltra/devtools-protocol": "0.4.0"
45
45
  },
46
46
  "devDependencies": {
47
- "react": "19.1.1",
48
47
  "@types/react": "^19.1.8",
48
+ "@vitest/coverage-v8": "3.2.4",
49
+ "react": "19.1.1",
49
50
  "typedoc": "^0.28.13",
50
- "typedoc-plugin-markdown": "4.9.0",
51
51
  "typedoc-plugin-localization": "3.0.6",
52
+ "typedoc-plugin-markdown": "4.9.0",
52
53
  "typescript": "5.9.3",
53
54
  "vite": "^7.1.11",
54
- "vite-plugin-dts": "^4.5.4",
55
55
  "vite-plugin-banner": "0.8.1",
56
+ "vite-plugin-dts": "^4.5.4",
56
57
  "vitest": "3.2.4"
57
58
  },
58
59
  "engines": {
@@ -61,13 +62,24 @@
61
62
  "publishConfig": {
62
63
  "access": "public"
63
64
  },
65
+ "sizeLimit": [
66
+ {
67
+ "name": "barrel",
68
+ "limitKb": 8,
69
+ "external": [
70
+ "react",
71
+ "@yoltra/devtools-protocol"
72
+ ]
73
+ }
74
+ ],
64
75
  "scripts": {
65
76
  "build": "vite build",
66
- "test": "vitest --watch=false",
77
+ "test": "vitest --watch=false --coverage",
67
78
  "lint": "node ../../tools/repo-tools/bin/repo-eslint.cjs --report-unused-disable-directives --max-warnings 0",
68
- "typecheck": "tsc --noEmit",
79
+ "typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.vitest.json --noEmit",
69
80
  "docs": "rushx docs:js && rushx docs:md",
70
81
  "docs:md": "pnpm typedoc --options ./typedoc.json",
71
- "docs:js": "pnpm typedoc --options ./typedoc.json --json ./.typedoc/devtools-ui-en.json"
82
+ "docs:js": "pnpm typedoc --options ./typedoc.json --json ./.typedoc/devtools-ui-en.json",
83
+ "size": "node ../../tools/repo-tools/bin/size-check.cjs"
72
84
  }
73
85
  }