@midscene/ios 1.0.1-beta-20251104075048.0 → 1.0.1-beta-20251106111345.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.
- package/dist/es/bin.mjs +65 -27
- package/dist/es/index.mjs +65 -27
- package/dist/lib/bin.js +71 -27
- package/dist/lib/index.js +986 -930
- package/dist/types/index.d.ts +16 -1
- package/package.json +5 -5
- package/static/index.html +1 -1
- package/static/static/js/{index.8a368b59.js → index.1a40884c.js} +3 -3
- package/static/static/js/{index.8a368b59.js.map → index.1a40884c.js.map} +1 -1
- /package/static/static/js/{index.8a368b59.js.LICENSE.txt → index.1a40884c.js.LICENSE.txt} +0 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ import { Size } from '@midscene/core';
|
|
|
14
14
|
import { WebDriverClient } from '@midscene/webdriver';
|
|
15
15
|
import { z } from '@midscene/core';
|
|
16
16
|
|
|
17
|
+
declare type ActionArgs<T extends DeviceAction> = [ActionParam<T>] extends [undefined] ? [] : [ActionParam<T>];
|
|
18
|
+
|
|
17
19
|
export declare function agentFromWebDriverAgent(opts?: IOSAgentOpt & IOSDeviceOpt): Promise<IOSAgent>;
|
|
18
20
|
|
|
19
21
|
export declare function checkIOSEnvironment(): Promise<{
|
|
@@ -21,6 +23,10 @@ export declare function checkIOSEnvironment(): Promise<{
|
|
|
21
23
|
error?: string;
|
|
22
24
|
}>;
|
|
23
25
|
|
|
26
|
+
declare type DeviceActionIOSAppSwitcher = DeviceAction<void, void>;
|
|
27
|
+
|
|
28
|
+
declare type DeviceActionIOSHomeButton = DeviceAction<void, void>;
|
|
29
|
+
|
|
24
30
|
declare type DeviceActionLaunch = DeviceAction<LaunchParam, void>;
|
|
25
31
|
|
|
26
32
|
declare type DeviceActionRunWdaRequest = DeviceAction<RunWdaRequestParam, RunWdaRequestReturn>;
|
|
@@ -36,7 +42,16 @@ export declare class IOSAgent extends Agent<IOSDevice> {
|
|
|
36
42
|
* Type-safe wrapper around the RunWdaRequest action from actionSpace
|
|
37
43
|
*/
|
|
38
44
|
runWdaRequest: WrappedAction<DeviceActionRunWdaRequest>;
|
|
45
|
+
/**
|
|
46
|
+
* Trigger the system home operation on iOS devices
|
|
47
|
+
*/
|
|
48
|
+
home: WrappedAction<DeviceActionIOSHomeButton>;
|
|
49
|
+
/**
|
|
50
|
+
* Trigger the system app switcher operation on iOS devices
|
|
51
|
+
*/
|
|
52
|
+
appSwitcher: WrappedAction<DeviceActionIOSAppSwitcher>;
|
|
39
53
|
constructor(device: IOSDevice, opts?: IOSAgentOpt);
|
|
54
|
+
private createActionWrapper;
|
|
40
55
|
}
|
|
41
56
|
|
|
42
57
|
declare type IOSAgentOpt = AgentOpt;
|
|
@@ -201,6 +216,6 @@ declare type WDAHttpMethod = (typeof WDA_HTTP_METHODS)[number];
|
|
|
201
216
|
/**
|
|
202
217
|
* Helper type to convert DeviceAction to wrapped method signature
|
|
203
218
|
*/
|
|
204
|
-
declare type WrappedAction<T extends DeviceAction> = (
|
|
219
|
+
declare type WrappedAction<T extends DeviceAction> = (...args: ActionArgs<T>) => Promise<ActionReturn<T>>;
|
|
205
220
|
|
|
206
221
|
export { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/ios",
|
|
3
|
-
"version": "1.0.1-beta-
|
|
3
|
+
"version": "1.0.1-beta-20251106111345.0",
|
|
4
4
|
"description": "iOS automation library for Midscene",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"iOS UI automation",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@inquirer/prompts": "^7.8.6",
|
|
40
40
|
"open": "10.1.0",
|
|
41
|
-
"@midscene/core": "1.0.1-beta-
|
|
42
|
-
"@midscene/
|
|
43
|
-
"@midscene/
|
|
41
|
+
"@midscene/core": "1.0.1-beta-20251106111345.0",
|
|
42
|
+
"@midscene/webdriver": "1.0.1-beta-20251106111345.0",
|
|
43
|
+
"@midscene/shared": "1.0.1-beta-20251106111345.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@rslib/core": "^0.11.2",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"tsx": "^4.19.2",
|
|
51
51
|
"vitest": "3.0.5",
|
|
52
52
|
"zod": "3.24.3",
|
|
53
|
-
"@midscene/playground": "1.0.1-beta-
|
|
53
|
+
"@midscene/playground": "1.0.1-beta-20251106111345.0"
|
|
54
54
|
},
|
|
55
55
|
"license": "MIT",
|
|
56
56
|
"scripts": {
|
package/static/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html><head><link rel="icon" href="/favicon.ico"><title>Midscene Playground</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="/static/js/lib-react.88bfef40.js"></script><script defer src="/static/js/63.b6f8c5e5.js"></script><script defer src="/static/js/index.
|
|
1
|
+
<!doctype html><html><head><link rel="icon" href="/favicon.ico"><title>Midscene Playground</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="/static/js/lib-react.88bfef40.js"></script><script defer src="/static/js/63.b6f8c5e5.js"></script><script defer src="/static/js/index.1a40884c.js"></script><link href="/static/css/index.07da784d.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
|