@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.
- package/dist/components/inspect-overlay.d.ts +1 -0
- package/dist/components/remote-control.d.ts +13 -2
- package/dist/core/ax-tree.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +871 -830
- package/package.json +1 -1
- package/src/components/inspect-overlay.css +6 -0
- package/src/components/inspect-overlay.tsx +46 -15
- package/src/components/remote-control.tsx +16 -2
- package/src/core/ax-tree.test.ts +124 -0
- package/src/core/ax-tree.ts +107 -0
- package/src/index.ts +2 -0
|
@@ -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
|
|
24
|
-
*
|
|
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
|
*
|
package/dist/core/ax-tree.d.ts
CHANGED
|
@@ -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 {};
|