@midscene/visualizer 1.5.3-beta-20260309091836.0 → 1.5.3
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.
|
@@ -112,7 +112,7 @@ function wrapExecutionDumpForReplay(dump, deviceType) {
|
|
|
112
112
|
}
|
|
113
113
|
function usePlaygroundExecution(options) {
|
|
114
114
|
const { playgroundSDK, storage, actionSpace, loading, setLoading, setInfoList, replayCounter, setReplayCounter, verticalMode, currentRunningIdRef, interruptedFlagRef, deviceType } = options;
|
|
115
|
-
const { deepLocate, deepThink, screenshotIncluded, domIncluded } = useEnvConfig();
|
|
115
|
+
const { deepLocate, deepThink, screenshotIncluded, domIncluded, imeStrategy, autoDismissKeyboard, keyboardDismissStrategy, alwaysRefreshScreenInfo } = useEnvConfig();
|
|
116
116
|
const handleRun = useCallback((value)=>_async_to_generator(function*() {
|
|
117
117
|
if (!playgroundSDK) return void console.warn('PlaygroundSDK is not available');
|
|
118
118
|
const thisRunningId = Date.now();
|
|
@@ -183,7 +183,13 @@ function usePlaygroundExecution(options) {
|
|
|
183
183
|
deepThink
|
|
184
184
|
} : {}), {
|
|
185
185
|
screenshotIncluded,
|
|
186
|
-
domIncluded
|
|
186
|
+
domIncluded,
|
|
187
|
+
deviceOptions: {
|
|
188
|
+
imeStrategy,
|
|
189
|
+
autoDismissKeyboard,
|
|
190
|
+
keyboardDismissStrategy,
|
|
191
|
+
alwaysRefreshScreenInfo
|
|
192
|
+
}
|
|
187
193
|
});
|
|
188
194
|
result.result = yield playgroundSDK.executeAction(actionType, value, executionOptions);
|
|
189
195
|
if ('object' == typeof result.result && null !== result.result) {
|
|
@@ -267,7 +273,11 @@ function usePlaygroundExecution(options) {
|
|
|
267
273
|
deepThink,
|
|
268
274
|
screenshotIncluded,
|
|
269
275
|
domIncluded,
|
|
270
|
-
deviceType
|
|
276
|
+
deviceType,
|
|
277
|
+
imeStrategy,
|
|
278
|
+
autoDismissKeyboard,
|
|
279
|
+
keyboardDismissStrategy,
|
|
280
|
+
alwaysRefreshScreenInfo
|
|
271
281
|
]);
|
|
272
282
|
const handleStop = useCallback(()=>_async_to_generator(function*() {
|
|
273
283
|
const thisRunningId = currentRunningIdRef.current;
|
|
@@ -140,7 +140,7 @@ function wrapExecutionDumpForReplay(dump, deviceType) {
|
|
|
140
140
|
}
|
|
141
141
|
function usePlaygroundExecution(options) {
|
|
142
142
|
const { playgroundSDK, storage, actionSpace, loading, setLoading, setInfoList, replayCounter, setReplayCounter, verticalMode, currentRunningIdRef, interruptedFlagRef, deviceType } = options;
|
|
143
|
-
const { deepLocate, deepThink, screenshotIncluded, domIncluded } = (0, store_js_namespaceObject.useEnvConfig)();
|
|
143
|
+
const { deepLocate, deepThink, screenshotIncluded, domIncluded, imeStrategy, autoDismissKeyboard, keyboardDismissStrategy, alwaysRefreshScreenInfo } = (0, store_js_namespaceObject.useEnvConfig)();
|
|
144
144
|
const handleRun = (0, external_react_namespaceObject.useCallback)((value)=>_async_to_generator(function*() {
|
|
145
145
|
if (!playgroundSDK) return void console.warn('PlaygroundSDK is not available');
|
|
146
146
|
const thisRunningId = Date.now();
|
|
@@ -211,7 +211,13 @@ function usePlaygroundExecution(options) {
|
|
|
211
211
|
deepThink
|
|
212
212
|
} : {}), {
|
|
213
213
|
screenshotIncluded,
|
|
214
|
-
domIncluded
|
|
214
|
+
domIncluded,
|
|
215
|
+
deviceOptions: {
|
|
216
|
+
imeStrategy,
|
|
217
|
+
autoDismissKeyboard,
|
|
218
|
+
keyboardDismissStrategy,
|
|
219
|
+
alwaysRefreshScreenInfo
|
|
220
|
+
}
|
|
215
221
|
});
|
|
216
222
|
result.result = yield playgroundSDK.executeAction(actionType, value, executionOptions);
|
|
217
223
|
if ('object' == typeof result.result && null !== result.result) {
|
|
@@ -295,7 +301,11 @@ function usePlaygroundExecution(options) {
|
|
|
295
301
|
deepThink,
|
|
296
302
|
screenshotIncluded,
|
|
297
303
|
domIncluded,
|
|
298
|
-
deviceType
|
|
304
|
+
deviceType,
|
|
305
|
+
imeStrategy,
|
|
306
|
+
autoDismissKeyboard,
|
|
307
|
+
keyboardDismissStrategy,
|
|
308
|
+
alwaysRefreshScreenInfo
|
|
299
309
|
]);
|
|
300
310
|
const handleStop = (0, external_react_namespaceObject.useCallback)(()=>_async_to_generator(function*() {
|
|
301
311
|
const thisRunningId = currentRunningIdRef.current;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/visualizer",
|
|
3
|
-
"version": "1.5.3
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"repository": "https://github.com/web-infra-dev/midscene",
|
|
5
5
|
"homepage": "https://midscenejs.com/",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
"antd": "^5.21.6",
|
|
58
58
|
"buffer": "6.0.3",
|
|
59
59
|
"dayjs": "^1.11.11",
|
|
60
|
-
"@midscene/core": "1.5.3
|
|
61
|
-
"@midscene/playground": "1.5.3
|
|
62
|
-
"@midscene/
|
|
63
|
-
"@midscene/
|
|
60
|
+
"@midscene/core": "1.5.3",
|
|
61
|
+
"@midscene/playground": "1.5.3",
|
|
62
|
+
"@midscene/web": "1.5.3",
|
|
63
|
+
"@midscene/shared": "1.5.3"
|
|
64
64
|
},
|
|
65
65
|
"license": "MIT",
|
|
66
66
|
"scripts": {
|