@midscene/ios 1.0.1-beta-20251024063839.0 → 1.0.1-beta-20251024064637.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/index.mjs CHANGED
@@ -910,7 +910,13 @@ async function agentFromWebDriverAgent(opts) {
910
910
  debugAgent('Creating iOS agent with WebDriverAgent auto-detection');
911
911
  const envCheck = await checkIOSEnvironment();
912
912
  if (!envCheck.available) throw new Error(`iOS environment not available: ${envCheck.error}`);
913
- const device = new IOSDevice(opts || {});
913
+ const device = new IOSDevice({
914
+ autoDismissKeyboard: null == opts ? void 0 : opts.autoDismissKeyboard,
915
+ customActions: null == opts ? void 0 : opts.customActions,
916
+ wdaPort: null == opts ? void 0 : opts.wdaPort,
917
+ wdaHost: null == opts ? void 0 : opts.wdaHost,
918
+ useWDA: null == opts ? void 0 : opts.useWDA
919
+ });
914
920
  await device.connect();
915
921
  return new IOSAgent(device, opts);
916
922
  }
package/dist/lib/index.js CHANGED
@@ -952,7 +952,13 @@ async function agentFromWebDriverAgent(opts) {
952
952
  debugAgent('Creating iOS agent with WebDriverAgent auto-detection');
953
953
  const envCheck = await checkIOSEnvironment();
954
954
  if (!envCheck.available) throw new Error(`iOS environment not available: ${envCheck.error}`);
955
- const device = new IOSDevice(opts || {});
955
+ const device = new IOSDevice({
956
+ autoDismissKeyboard: null == opts ? void 0 : opts.autoDismissKeyboard,
957
+ customActions: null == opts ? void 0 : opts.customActions,
958
+ wdaPort: null == opts ? void 0 : opts.wdaPort,
959
+ wdaHost: null == opts ? void 0 : opts.wdaHost,
960
+ useWDA: null == opts ? void 0 : opts.useWDA
961
+ });
956
962
  await device.connect();
957
963
  return new IOSAgent(device, opts);
958
964
  }
@@ -4,8 +4,6 @@ import { AgentOpt } from '@midscene/core/agent';
4
4
  import { DeviceAction } from '@midscene/core';
5
5
  import type { ElementInfo } from '@midscene/shared/extractor';
6
6
  import { InterfaceType } from '@midscene/core';
7
- import { IOSDeviceInputOpt } from '@midscene/core/device';
8
- import { IOSDeviceOpt } from '@midscene/core/device';
9
7
  import { overrideAIConfig } from '@midscene/shared/env';
10
8
  import { Point } from '@midscene/core';
11
9
  import { Size } from '@midscene/core';
@@ -96,6 +94,18 @@ export declare class IOSDevice implements AbstractInterface {
96
94
  destroy(): Promise<void>;
97
95
  }
98
96
 
97
+ declare type IOSDeviceInputOpt = {
98
+ autoDismissKeyboard?: boolean;
99
+ };
100
+
101
+ declare type IOSDeviceOpt = {
102
+ deviceId?: string;
103
+ customActions?: DeviceAction<any>[];
104
+ wdaPort?: number;
105
+ wdaHost?: string;
106
+ useWDA?: boolean;
107
+ } & IOSDeviceInputOpt;
108
+
99
109
  export declare class IOSWebDriverClient extends WebDriverClient {
100
110
  launchApp(bundleId: string): Promise<void>;
101
111
  activateApp(bundleId: string): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midscene/ios",
3
- "version": "1.0.1-beta-20251024063839.0",
3
+ "version": "1.0.1-beta-20251024064637.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-20251024063839.0",
42
- "@midscene/webdriver": "1.0.1-beta-20251024063839.0",
43
- "@midscene/shared": "1.0.1-beta-20251024063839.0"
41
+ "@midscene/core": "1.0.1-beta-20251024064637.0",
42
+ "@midscene/webdriver": "1.0.1-beta-20251024064637.0",
43
+ "@midscene/shared": "1.0.1-beta-20251024064637.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@rslib/core": "^0.11.2",
@@ -49,7 +49,7 @@
49
49
  "typescript": "^5.8.3",
50
50
  "tsx": "^4.19.2",
51
51
  "vitest": "3.0.5",
52
- "@midscene/playground": "1.0.1-beta-20251024063839.0"
52
+ "@midscene/playground": "1.0.1-beta-20251024064637.0"
53
53
  },
54
54
  "license": "MIT",
55
55
  "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.1a0f1b0a.js"></script><link href="/static/css/index.44466eb4.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
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.c0c93d37.js"></script><link href="/static/css/index.44466eb4.css" rel="stylesheet"></head><body><div id="root"></div></body></html>