@midscene/ios 1.0.1-beta-20251024064637.0 → 1.0.1-beta-20251027033034.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,13 +910,7 @@ 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({
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
- });
913
+ const device = new IOSDevice(opts || {});
920
914
  await device.connect();
921
915
  return new IOSAgent(device, opts);
922
916
  }
package/dist/lib/index.js CHANGED
@@ -952,13 +952,7 @@ 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({
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
- });
955
+ const device = new IOSDevice(opts || {});
962
956
  await device.connect();
963
957
  return new IOSAgent(device, opts);
964
958
  }
@@ -4,6 +4,8 @@ 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';
7
9
  import { overrideAIConfig } from '@midscene/shared/env';
8
10
  import { Point } from '@midscene/core';
9
11
  import { Size } from '@midscene/core';
@@ -94,18 +96,6 @@ export declare class IOSDevice implements AbstractInterface {
94
96
  destroy(): Promise<void>;
95
97
  }
96
98
 
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
-
109
99
  export declare class IOSWebDriverClient extends WebDriverClient {
110
100
  launchApp(bundleId: string): Promise<void>;
111
101
  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-20251024064637.0",
3
+ "version": "1.0.1-beta-20251027033034.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-20251024064637.0",
42
- "@midscene/webdriver": "1.0.1-beta-20251024064637.0",
43
- "@midscene/shared": "1.0.1-beta-20251024064637.0"
41
+ "@midscene/core": "1.0.1-beta-20251027033034.0",
42
+ "@midscene/webdriver": "1.0.1-beta-20251027033034.0",
43
+ "@midscene/shared": "1.0.1-beta-20251027033034.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-20251024064637.0"
52
+ "@midscene/playground": "1.0.1-beta-20251027033034.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.c0c93d37.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.703c97ea.js"></script><link href="/static/css/index.44466eb4.css" rel="stylesheet"></head><body><div id="root"></div></body></html>