@limrun/ui 0.9.0-rc.6 → 0.9.0-rc.7

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.
@@ -13,6 +13,7 @@ export interface InspectOverlayProps {
13
13
  highlightedId: string | null;
14
14
  selectedId: string | null;
15
15
  mode: InspectMode;
16
+ instanceId?: string;
16
17
  cursorPosition: {
17
18
  x: number;
18
19
  y: number;
@@ -20,14 +20,25 @@ interface RemoteControlProps {
20
20
  * video stream.
21
21
  *
22
22
  * - `true` — Select mode. Boxes are clickable, click pins a selection
23
- * with action buttons (Tap / Copy selector / Copy id), ESC clears.
24
- * Device input is blocked while in this mode.
23
+ * with action buttons (Tap / Copy selector / Copy command), ESC
24
+ * clears. The cursor turns into a crosshair while inspecting and the
25
+ * info card hangs off the pointer. Device input is blocked while in
26
+ * this mode.
25
27
  * - `'hover-only'` — Boxes follow the cursor as a visual preview. Device
26
28
  * input still passes through, so you can drive the simulator while
27
29
  * inspecting.
28
30
  * - `undefined` / `false` (default) — overlay disabled, no polling.
29
31
  */
30
32
  inspectMode?: boolean | 'hover-only';
33
+ /**
34
+ * Optional instance id used to render the "Copy command" button in the
35
+ * inspect-mode info card. When provided, the button copies a CLI
36
+ * invocation like
37
+ * `lim ios tap-element --ax-label 'Sign in' --type Button --id <instanceId>`
38
+ * (or its Android equivalent) that targets this exact element on this
39
+ * exact instance. When omitted the button is hidden.
40
+ */
41
+ instanceId?: string;
31
42
  /**
32
43
  * Fires whenever a fresh accessibility snapshot is delivered.
33
44
  *
@@ -94,6 +94,8 @@ export declare function axElementsEqual(a: AxElement, b: AxElement): boolean;
94
94
  export declare function axSnapshotsEqual(a: AxSnapshot | null, b: AxSnapshot | null): boolean;
95
95
  export declare function axElementAtPoint(snapshot: AxSnapshot, x: number, y: number): AxElement | null;
96
96
  export declare function axElementSelectorExpression(el: AxElement, platform: AxPlatform): string | null;
97
+ export declare function axElementSelectorObject(el: AxElement, platform: AxPlatform): Record<string, string> | null;
98
+ export declare function axCliTapCommand(el: AxElement, platform: AxPlatform, instanceId: string): string | null;
97
99
  export declare function axElementRoleLabel(el: AxElement): string;
98
100
  export declare function axElementSummary(el: AxElement): string;
99
101
  export {};