@nativedesktop/react 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.
@@ -113,11 +113,12 @@ export interface ScreenshotParams {
113
113
  path: string;
114
114
  window?: number;
115
115
  }
116
- /** Actionability-checked semantic click; emits clicked exactly like real user input. On CommandPalette activates the currently-highlighted row. Target by exactly one of ref / testId (window optionally scopes testId resolution). */
116
+ /** Actionability-checked semantic click; emits clicked exactly like real user input. On CommandPalette activates the currently-highlighted row. Target by exactly one of ref / testId (window optionally scopes testId resolution). With `action` the target must be a SourceTree: the named row action is dispatched (actionClicked {nodeId, actionId}) exactly like a click on the row's trailing button. testId may be a row's per-node testID (that row) or the widget's own testID/ref (the selected row); the row must be realized under the current expansion and declare the action. */
117
117
  export interface ClickParams {
118
118
  ref?: number;
119
119
  testId?: string;
120
120
  window?: number;
121
+ action?: string;
121
122
  }
122
123
  /** Polls the tree at ~50ms until the condition holds or timeoutMs elapses. window (if given) scopes every predicate to that Window node's subtree. */
123
124
  export interface WaitForParams {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativedesktop/react",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/FormalSnake/NativeDesktop#readme",
@@ -11,46 +11,48 @@
11
11
  "directory": "packages/react"
12
12
  },
13
13
  "publishConfig": {
14
- "access": "public"
15
- },
16
- "files": ["dist"],
17
- "main": "./dist/index.js",
18
- "types": "./dist/packages/react/src/index.d.ts",
19
- "exports": {
20
- ".": {
21
- "types": "./dist/packages/react/src/index.d.ts",
22
- "default": "./dist/index.js"
14
+ "access": "public"
23
15
  },
24
- "./jsx-runtime": {
25
- "types": "./dist/packages/react/src/jsx-runtime.d.ts",
26
- "default": "./dist/jsx-runtime.js"
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "main": "./dist/index.js",
20
+ "types": "./dist/packages/react/src/index.d.ts",
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/packages/react/src/index.d.ts",
24
+ "default": "./dist/index.js"
25
+ },
26
+ "./jsx-runtime": {
27
+ "types": "./dist/packages/react/src/jsx-runtime.d.ts",
28
+ "default": "./dist/jsx-runtime.js"
29
+ },
30
+ "./jsx-dev-runtime": {
31
+ "types": "./dist/packages/react/src/jsx-dev-runtime.d.ts",
32
+ "default": "./dist/jsx-dev-runtime.js"
33
+ },
34
+ "./rpc": {
35
+ "types": "./dist/packages/react/src/generated/rpc.d.ts",
36
+ "default": "./dist/generated/rpc.js"
37
+ }
27
38
  },
28
- "./jsx-dev-runtime": {
29
- "types": "./dist/packages/react/src/jsx-dev-runtime.d.ts",
30
- "default": "./dist/jsx-dev-runtime.js"
39
+ "scripts": {
40
+ "build": "rm -rf dist && tsc -p tsconfig.build.json && bun build ./src/index.ts ./src/jsx-runtime.ts ./src/jsx-dev-runtime.ts ./src/generated/rpc.ts --outdir dist --target node --format esm --external react --external react-reconciler --external react-refresh",
41
+ "prepack": "bun run build",
42
+ "prepare": "bun run build"
31
43
  },
32
- "./rpc": {
33
- "types": "./dist/packages/react/src/generated/rpc.d.ts",
34
- "default": "./dist/generated/rpc.js"
44
+ "peerDependencies": {
45
+ "react": "^19.2.7"
46
+ },
47
+ "dependencies": {
48
+ "react-reconciler": "0.33.0",
49
+ "react-refresh": "0.17.0"
50
+ },
51
+ "devDependencies": {
52
+ "@types/react": "19.2.17",
53
+ "@types/react-reconciler": "0.33.0",
54
+ "@types/react-refresh": "0.14.7",
55
+ "react": "19.2.7",
56
+ "typescript": "7.0.2"
35
57
  }
36
- },
37
- "scripts": {
38
- "build": "rm -rf dist && tsc -p tsconfig.build.json && bun build ./src/index.ts ./src/jsx-runtime.ts ./src/jsx-dev-runtime.ts ./src/generated/rpc.ts --outdir dist --target node --format esm --external react --external react-reconciler --external react-refresh",
39
- "prepack": "bun run build",
40
- "prepare": "bun run build"
41
- },
42
- "peerDependencies": {
43
- "react": "^19.2.7"
44
- },
45
- "dependencies": {
46
- "react-reconciler": "0.33.0",
47
- "react-refresh": "0.17.0"
48
- },
49
- "devDependencies": {
50
- "@types/react": "19.2.17",
51
- "@types/react-reconciler": "0.33.0",
52
- "@types/react-refresh": "0.14.7",
53
- "react": "19.2.7",
54
- "typescript": "7.0.2"
55
- }
56
58
  }