@midscene/ios 1.10.1 → 1.10.2-beta-20260706032158.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 +6 -1
- package/dist/es/cli.mjs +7 -2
- package/dist/es/index.mjs +6 -1
- package/dist/lib/bin.js +6 -1
- package/dist/lib/cli.js +7 -2
- package/dist/lib/index.js +6 -1
- package/package.json +5 -5
- package/static/index.html +1 -1
- package/static/static/js/{index.3146a384.js → index.4b541d73.js} +16 -16
- package/static/static/js/index.4b541d73.js.map +1 -0
- package/static/static/js/index.3146a384.js.map +0 -1
- /package/static/static/js/{index.3146a384.js.LICENSE.txt → index.4b541d73.js.LICENSE.txt} +0 -0
package/dist/es/bin.mjs
CHANGED
|
@@ -868,10 +868,15 @@ ScreenSize: ${size.width}x${size.height} (DPR: ${size.scale})
|
|
|
868
868
|
async typeText(text, options) {
|
|
869
869
|
if (!text) return;
|
|
870
870
|
const shouldAutoDismissKeyboard = options?.autoDismissKeyboard ?? this.options?.autoDismissKeyboard ?? true;
|
|
871
|
+
const typeDelay = options?.keyboardTypeDelay ?? this.options?.keyboardTypeDelay;
|
|
871
872
|
debugDevice(`Typing text: "${text}"`);
|
|
872
873
|
try {
|
|
873
874
|
await sleep(200);
|
|
874
|
-
|
|
875
|
+
if (typeDelay && typeDelay > 0) for (const ch of text){
|
|
876
|
+
await this.wdaBackend.typeText(ch);
|
|
877
|
+
await sleep(typeDelay);
|
|
878
|
+
}
|
|
879
|
+
else await this.wdaBackend.typeText(text);
|
|
875
880
|
await sleep(300);
|
|
876
881
|
} catch (error) {
|
|
877
882
|
debugDevice(`Failed to type text with WDA: ${error}`);
|
package/dist/es/cli.mjs
CHANGED
|
@@ -868,10 +868,15 @@ ScreenSize: ${size.width}x${size.height} (DPR: ${size.scale})
|
|
|
868
868
|
async typeText(text, options) {
|
|
869
869
|
if (!text) return;
|
|
870
870
|
const shouldAutoDismissKeyboard = options?.autoDismissKeyboard ?? this.options?.autoDismissKeyboard ?? true;
|
|
871
|
+
const typeDelay = options?.keyboardTypeDelay ?? this.options?.keyboardTypeDelay;
|
|
871
872
|
debugDevice(`Typing text: "${text}"`);
|
|
872
873
|
try {
|
|
873
874
|
await sleep(200);
|
|
874
|
-
|
|
875
|
+
if (typeDelay && typeDelay > 0) for (const ch of text){
|
|
876
|
+
await this.wdaBackend.typeText(ch);
|
|
877
|
+
await sleep(typeDelay);
|
|
878
|
+
}
|
|
879
|
+
else await this.wdaBackend.typeText(text);
|
|
875
880
|
await sleep(300);
|
|
876
881
|
} catch (error) {
|
|
877
882
|
debugDevice(`Failed to type text with WDA: ${error}`);
|
|
@@ -1455,7 +1460,7 @@ class IOSMidsceneTools extends BaseMidsceneTools {
|
|
|
1455
1460
|
const tools = new IOSMidsceneTools();
|
|
1456
1461
|
runToolsCLI(tools, 'midscene-ios', {
|
|
1457
1462
|
stripPrefix: 'ios_',
|
|
1458
|
-
version: "1.10.
|
|
1463
|
+
version: "1.10.2-beta-20260706032158.0",
|
|
1459
1464
|
extraCommands: createReportCliCommands()
|
|
1460
1465
|
}).catch((e)=>{
|
|
1461
1466
|
process.exit(reportCLIError(e));
|
package/dist/es/index.mjs
CHANGED
|
@@ -689,10 +689,15 @@ ScreenSize: ${size.width}x${size.height} (DPR: ${size.scale})
|
|
|
689
689
|
async typeText(text, options) {
|
|
690
690
|
if (!text) return;
|
|
691
691
|
const shouldAutoDismissKeyboard = options?.autoDismissKeyboard ?? this.options?.autoDismissKeyboard ?? true;
|
|
692
|
+
const typeDelay = options?.keyboardTypeDelay ?? this.options?.keyboardTypeDelay;
|
|
692
693
|
debugDevice(`Typing text: "${text}"`);
|
|
693
694
|
try {
|
|
694
695
|
await sleep(200);
|
|
695
|
-
|
|
696
|
+
if (typeDelay && typeDelay > 0) for (const ch of text){
|
|
697
|
+
await this.wdaBackend.typeText(ch);
|
|
698
|
+
await sleep(typeDelay);
|
|
699
|
+
}
|
|
700
|
+
else await this.wdaBackend.typeText(text);
|
|
696
701
|
await sleep(300);
|
|
697
702
|
} catch (error) {
|
|
698
703
|
debugDevice(`Failed to type text with WDA: ${error}`);
|
package/dist/lib/bin.js
CHANGED
|
@@ -893,10 +893,15 @@ ScreenSize: ${size.width}x${size.height} (DPR: ${size.scale})
|
|
|
893
893
|
async typeText(text, options) {
|
|
894
894
|
if (!text) return;
|
|
895
895
|
const shouldAutoDismissKeyboard = options?.autoDismissKeyboard ?? this.options?.autoDismissKeyboard ?? true;
|
|
896
|
+
const typeDelay = options?.keyboardTypeDelay ?? this.options?.keyboardTypeDelay;
|
|
896
897
|
debugDevice(`Typing text: "${text}"`);
|
|
897
898
|
try {
|
|
898
899
|
await (0, core_utils_namespaceObject.sleep)(200);
|
|
899
|
-
|
|
900
|
+
if (typeDelay && typeDelay > 0) for (const ch of text){
|
|
901
|
+
await this.wdaBackend.typeText(ch);
|
|
902
|
+
await (0, core_utils_namespaceObject.sleep)(typeDelay);
|
|
903
|
+
}
|
|
904
|
+
else await this.wdaBackend.typeText(text);
|
|
900
905
|
await (0, core_utils_namespaceObject.sleep)(300);
|
|
901
906
|
} catch (error) {
|
|
902
907
|
debugDevice(`Failed to type text with WDA: ${error}`);
|
package/dist/lib/cli.js
CHANGED
|
@@ -892,10 +892,15 @@ ScreenSize: ${size.width}x${size.height} (DPR: ${size.scale})
|
|
|
892
892
|
async typeText(text, options) {
|
|
893
893
|
if (!text) return;
|
|
894
894
|
const shouldAutoDismissKeyboard = options?.autoDismissKeyboard ?? this.options?.autoDismissKeyboard ?? true;
|
|
895
|
+
const typeDelay = options?.keyboardTypeDelay ?? this.options?.keyboardTypeDelay;
|
|
895
896
|
debugDevice(`Typing text: "${text}"`);
|
|
896
897
|
try {
|
|
897
898
|
await (0, core_utils_namespaceObject.sleep)(200);
|
|
898
|
-
|
|
899
|
+
if (typeDelay && typeDelay > 0) for (const ch of text){
|
|
900
|
+
await this.wdaBackend.typeText(ch);
|
|
901
|
+
await (0, core_utils_namespaceObject.sleep)(typeDelay);
|
|
902
|
+
}
|
|
903
|
+
else await this.wdaBackend.typeText(text);
|
|
899
904
|
await (0, core_utils_namespaceObject.sleep)(300);
|
|
900
905
|
} catch (error) {
|
|
901
906
|
debugDevice(`Failed to type text with WDA: ${error}`);
|
|
@@ -1479,7 +1484,7 @@ class IOSMidsceneTools extends base_tools_namespaceObject.BaseMidsceneTools {
|
|
|
1479
1484
|
const tools = new IOSMidsceneTools();
|
|
1480
1485
|
(0, cli_namespaceObject.runToolsCLI)(tools, 'midscene-ios', {
|
|
1481
1486
|
stripPrefix: 'ios_',
|
|
1482
|
-
version: "1.10.
|
|
1487
|
+
version: "1.10.2-beta-20260706032158.0",
|
|
1483
1488
|
extraCommands: (0, core_namespaceObject.createReportCliCommands)()
|
|
1484
1489
|
}).catch((e)=>{
|
|
1485
1490
|
process.exit((0, cli_namespaceObject.reportCLIError)(e));
|
package/dist/lib/index.js
CHANGED
|
@@ -724,10 +724,15 @@ ScreenSize: ${size.width}x${size.height} (DPR: ${size.scale})
|
|
|
724
724
|
async typeText(text, options) {
|
|
725
725
|
if (!text) return;
|
|
726
726
|
const shouldAutoDismissKeyboard = options?.autoDismissKeyboard ?? this.options?.autoDismissKeyboard ?? true;
|
|
727
|
+
const typeDelay = options?.keyboardTypeDelay ?? this.options?.keyboardTypeDelay;
|
|
727
728
|
debugDevice(`Typing text: "${text}"`);
|
|
728
729
|
try {
|
|
729
730
|
await (0, utils_namespaceObject.sleep)(200);
|
|
730
|
-
|
|
731
|
+
if (typeDelay && typeDelay > 0) for (const ch of text){
|
|
732
|
+
await this.wdaBackend.typeText(ch);
|
|
733
|
+
await (0, utils_namespaceObject.sleep)(typeDelay);
|
|
734
|
+
}
|
|
735
|
+
else await this.wdaBackend.typeText(text);
|
|
731
736
|
await (0, utils_namespaceObject.sleep)(300);
|
|
732
737
|
} catch (error) {
|
|
733
738
|
debugDevice(`Failed to type text with WDA: ${error}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/ios",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.2-beta-20260706032158.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/web-infra-dev/midscene.git",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@inquirer/prompts": "^7.8.6",
|
|
45
45
|
"open": "10.1.0",
|
|
46
|
-
"@midscene/core": "1.10.
|
|
47
|
-
"@midscene/shared": "1.10.
|
|
48
|
-
"@midscene/
|
|
49
|
-
"@midscene/
|
|
46
|
+
"@midscene/core": "1.10.2-beta-20260706032158.0",
|
|
47
|
+
"@midscene/shared": "1.10.2-beta-20260706032158.0",
|
|
48
|
+
"@midscene/playground": "1.10.2-beta-20260706032158.0",
|
|
49
|
+
"@midscene/webdriver": "1.10.2-beta-20260706032158.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@rslib/core": "^0.18.3",
|
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.7b1abe58.js"></script><script defer src="/static/js/905.8d12588e.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.7b1abe58.js"></script><script defer src="/static/js/905.8d12588e.js"></script><script defer src="/static/js/index.4b541d73.js"></script><link href="/static/css/index.1293237f.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
|