@midscene/core 1.9.2 → 1.9.3-beta-20260608113104.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.
@@ -109,6 +109,22 @@ export type AndroidDeviceOpt = {
109
109
  export type IOSDeviceInputOpt = {
110
110
  /** Automatically dismiss the keyboard after input is completed */
111
111
  autoDismissKeyboard?: boolean;
112
+ /**
113
+ * Strategy used to enter text into iOS input fields. `paste` writes the text
114
+ * to the iOS pasteboard and triggers a paste shortcut, avoiding occasional
115
+ * character loss from WebDriverAgent key typing on longer inputs. `type`
116
+ * keeps the old `/wda/keys` delivery path.
117
+ * @default 'paste'
118
+ */
119
+ keyboardInputStrategy?: 'paste' | 'type';
120
+ /**
121
+ * Per-character delay (ms) used by the `type` strategy and by the fallback
122
+ * path when paste is not supported by the active WebDriverAgent/iOS runtime.
123
+ * When set to a positive number, characters are dispatched to
124
+ * WebDriverAgent one at a time with this gap between them.
125
+ * @default 80
126
+ */
127
+ keyboardTypeDelay?: number;
112
128
  };
113
129
  /**
114
130
  * iOS device options
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@midscene/core",
3
3
  "description": "Automate browser actions, extract data, and perform assertions using AI. It offers JavaScript SDK, Chrome extension, and support for scripting in YAML. See https://midscenejs.com/ for details.",
4
- "version": "1.9.2",
4
+ "version": "1.9.3-beta-20260608113104.0",
5
5
  "repository": "https://github.com/web-infra-dev/midscene",
6
6
  "homepage": "https://midscenejs.com/",
7
7
  "main": "./dist/lib/index.js",
@@ -99,7 +99,7 @@
99
99
  "semver": "7.5.2",
100
100
  "undici": "^6.0.0",
101
101
  "zod": "^3.25.1",
102
- "@midscene/shared": "1.9.2"
102
+ "@midscene/shared": "1.9.3-beta-20260608113104.0"
103
103
  },
104
104
  "devDependencies": {
105
105
  "@rslib/core": "^0.18.3",