@nativedesktop/test 0.4.25 → 0.4.27

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 (2) hide show
  1. package/package.json +3 -3
  2. package/src/launch.ts +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativedesktop/test",
3
- "version": "0.4.25",
3
+ "version": "0.4.27",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/FormalSnake/NativeDesktop#readme",
@@ -22,7 +22,7 @@
22
22
  ".": "./src/index.ts"
23
23
  },
24
24
  "dependencies": {
25
- "@nativedesktop/host": "0.4.25",
26
- "@nativedesktop/react": "0.4.25"
25
+ "@nativedesktop/host": "0.4.27",
26
+ "@nativedesktop/react": "0.4.27"
27
27
  }
28
28
  }
package/src/launch.ts CHANGED
@@ -16,6 +16,7 @@ import {
16
16
  type GetTreeResult,
17
17
  type JsonNode,
18
18
  type KeysResult,
19
+ type PaletteLayout,
19
20
  RPC_ERRORS,
20
21
  type ScreenshotResult,
21
22
  type ScrollResult,
@@ -603,6 +604,12 @@ export class AppHandle implements LocatorClient {
603
604
  return this.rpc.call("webviewInfo", { ...resolveTarget(target), ...opts });
604
605
  }
605
606
 
607
+ /** The presented CommandPalette's live geometry: panel, field, and each
608
+ * drawn row's parts, in window-relative logical units. */
609
+ paletteLayout(target: Target, opts: { window?: number } = {}): Promise<PaletteLayout> {
610
+ return this.rpc.call("paletteLayout", { ...resolveTarget(target), ...opts });
611
+ }
612
+
606
613
  /** Evaluates `code` in the page (optionally in a named isolated world) and
607
614
  * answers the result's string rendering. A thrown exception comes back as
608
615
  * `{ok: false, error}`, not a rejection — the code ran. */