@midscene/visualizer 1.0.1-beta-20251209024153.0 → 1.0.1-beta-20251209112631.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.
@@ -32,15 +32,6 @@
32
32
  overflow: scroll;
33
33
  }
34
34
 
35
- [data-theme="dark"] .result-wrapper .loading-container .loading-progress-text {
36
- color: #f8fafd;
37
- }
38
-
39
- [data-theme="dark"] .result-wrapper pre {
40
- color: #f8fafd;
41
- background: #141414;
42
- }
43
-
44
35
  .prompt-input-wrapper {
45
36
  width: 100%;
46
37
  }
@@ -32,12 +32,3 @@
32
32
  overflow: scroll;
33
33
  }
34
34
 
35
- [data-theme="dark"] .result-wrapper .loading-container .loading-progress-text {
36
- color: #f8fafd;
37
- }
38
-
39
- [data-theme="dark"] .result-wrapper pre {
40
- color: #f8fafd;
41
- background: #141414;
42
- }
43
-
@@ -1,6 +1,6 @@
1
1
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
2
  import icons, { ArrowDownOutlined, ClearOutlined, LoadingOutlined } from "@ant-design/icons";
3
- import { Button, Form, List, Tooltip, Typography, message } from "antd";
3
+ import { Button, Form, List, Typography, message } from "antd";
4
4
  import { useCallback, useEffect, useMemo, useState } from "react";
5
5
  import { usePlaygroundExecution } from "../../hooks/usePlaygroundExecution.mjs";
6
6
  import { usePlaygroundState } from "../../hooks/usePlaygroundState.mjs";
@@ -46,20 +46,10 @@ function getSDKId(sdk) {
46
46
  }
47
47
  function ErrorMessage({ error }) {
48
48
  if (!error) return null;
49
- return /*#__PURE__*/ jsxs(Tooltip, {
50
- title: /*#__PURE__*/ jsx("span", {
51
- style: {
52
- whiteSpace: 'pre-wrap',
53
- wordBreak: 'break-all'
54
- },
55
- children: error
56
- }),
57
- overlayStyle: {
58
- maxWidth: '100vw'
59
- },
49
+ return /*#__PURE__*/ jsxs("span", {
60
50
  children: [
61
51
  "Error: ",
62
- error.split('\n')[0]
52
+ error
63
53
  ]
64
54
  });
65
55
  }
@@ -72,7 +72,7 @@ function _object_spread_props(target, source) {
72
72
  return target;
73
73
  }
74
74
  function usePlaygroundExecution(playgroundSDK, storage, actionSpace, loading, setLoading, infoList, setInfoList, replayCounter, setReplayCounter, verticalMode, currentRunningIdRef, interruptedFlagRef) {
75
- const { deepThink, screenshotIncluded, domIncluded, imeStrategy, autoDismissKeyboard, keyboardDismissStrategy, alwaysRefreshScreenInfo } = useEnvConfig();
75
+ const { deepThink, screenshotIncluded, domIncluded } = useEnvConfig();
76
76
  const handleRun = useCallback((value)=>_async_to_generator(function*() {
77
77
  if (!playgroundSDK) return void console.warn('PlaygroundSDK is not available');
78
78
  const thisRunningId = Date.now();
@@ -123,18 +123,11 @@ function usePlaygroundExecution(playgroundSDK, storage, actionSpace, loading, se
123
123
  ];
124
124
  });
125
125
  });
126
- const deviceOptionsToSend = {
127
- imeStrategy,
128
- autoDismissKeyboard,
129
- keyboardDismissStrategy,
130
- alwaysRefreshScreenInfo
131
- };
132
126
  result.result = yield playgroundSDK.executeAction(actionType, value, {
133
127
  requestId: thisRunningId.toString(),
134
128
  deepThink,
135
129
  screenshotIncluded,
136
- domIncluded,
137
- deviceOptions: deviceOptionsToSend
130
+ domIncluded
138
131
  });
139
132
  if ('object' == typeof result.result && null !== result.result) {
140
133
  const resultObj = result.result;
@@ -207,11 +200,7 @@ function usePlaygroundExecution(playgroundSDK, storage, actionSpace, loading, se
207
200
  interruptedFlagRef,
208
201
  deepThink,
209
202
  screenshotIncluded,
210
- domIncluded,
211
- imeStrategy,
212
- autoDismissKeyboard,
213
- keyboardDismissStrategy,
214
- alwaysRefreshScreenInfo
203
+ domIncluded
215
204
  ]);
216
205
  const handleStop = useCallback(()=>_async_to_generator(function*() {
217
206
  const thisRunningId = currentRunningIdRef.current;
@@ -32,15 +32,6 @@
32
32
  overflow: scroll;
33
33
  }
34
34
 
35
- [data-theme="dark"] .result-wrapper .loading-container .loading-progress-text {
36
- color: #f8fafd;
37
- }
38
-
39
- [data-theme="dark"] .result-wrapper pre {
40
- color: #f8fafd;
41
- background: #141414;
42
- }
43
-
44
35
  .prompt-input-wrapper {
45
36
  width: 100%;
46
37
  }
@@ -32,12 +32,3 @@
32
32
  overflow: scroll;
33
33
  }
34
34
 
35
- [data-theme="dark"] .result-wrapper .loading-container .loading-progress-text {
36
- color: #f8fafd;
37
- }
38
-
39
- [data-theme="dark"] .result-wrapper pre {
40
- color: #f8fafd;
41
- background: #141414;
42
- }
43
-
@@ -86,20 +86,10 @@ function getSDKId(sdk) {
86
86
  }
87
87
  function ErrorMessage({ error }) {
88
88
  if (!error) return null;
89
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_antd_namespaceObject.Tooltip, {
90
- title: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
91
- style: {
92
- whiteSpace: 'pre-wrap',
93
- wordBreak: 'break-all'
94
- },
95
- children: error
96
- }),
97
- overlayStyle: {
98
- maxWidth: '100vw'
99
- },
89
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("span", {
100
90
  children: [
101
91
  "Error: ",
102
- error.split('\n')[0]
92
+ error
103
93
  ]
104
94
  });
105
95
  }
@@ -100,7 +100,7 @@ function _object_spread_props(target, source) {
100
100
  return target;
101
101
  }
102
102
  function usePlaygroundExecution(playgroundSDK, storage, actionSpace, loading, setLoading, infoList, setInfoList, replayCounter, setReplayCounter, verticalMode, currentRunningIdRef, interruptedFlagRef) {
103
- const { deepThink, screenshotIncluded, domIncluded, imeStrategy, autoDismissKeyboard, keyboardDismissStrategy, alwaysRefreshScreenInfo } = (0, store_js_namespaceObject.useEnvConfig)();
103
+ const { deepThink, screenshotIncluded, domIncluded } = (0, store_js_namespaceObject.useEnvConfig)();
104
104
  const handleRun = (0, external_react_namespaceObject.useCallback)((value)=>_async_to_generator(function*() {
105
105
  if (!playgroundSDK) return void console.warn('PlaygroundSDK is not available');
106
106
  const thisRunningId = Date.now();
@@ -151,18 +151,11 @@ function usePlaygroundExecution(playgroundSDK, storage, actionSpace, loading, se
151
151
  ];
152
152
  });
153
153
  });
154
- const deviceOptionsToSend = {
155
- imeStrategy,
156
- autoDismissKeyboard,
157
- keyboardDismissStrategy,
158
- alwaysRefreshScreenInfo
159
- };
160
154
  result.result = yield playgroundSDK.executeAction(actionType, value, {
161
155
  requestId: thisRunningId.toString(),
162
156
  deepThink,
163
157
  screenshotIncluded,
164
- domIncluded,
165
- deviceOptions: deviceOptionsToSend
158
+ domIncluded
166
159
  });
167
160
  if ('object' == typeof result.result && null !== result.result) {
168
161
  const resultObj = result.result;
@@ -235,11 +228,7 @@ function usePlaygroundExecution(playgroundSDK, storage, actionSpace, loading, se
235
228
  interruptedFlagRef,
236
229
  deepThink,
237
230
  screenshotIncluded,
238
- domIncluded,
239
- imeStrategy,
240
- autoDismissKeyboard,
241
- keyboardDismissStrategy,
242
- alwaysRefreshScreenInfo
231
+ domIncluded
243
232
  ]);
244
233
  const handleStop = (0, external_react_namespaceObject.useCallback)(()=>_async_to_generator(function*() {
245
234
  const thisRunningId = currentRunningIdRef.current;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midscene/visualizer",
3
- "version": "1.0.1-beta-20251209024153.0",
3
+ "version": "1.0.1-beta-20251209112631.0",
4
4
  "repository": "https://github.com/web-infra-dev/midscene",
5
5
  "homepage": "https://midscenejs.com/",
6
6
  "types": "./dist/types/index.d.ts",
@@ -60,10 +60,10 @@
60
60
  "antd": "^5.21.6",
61
61
  "buffer": "6.0.3",
62
62
  "dayjs": "^1.11.11",
63
- "@midscene/core": "1.0.1-beta-20251209024153.0",
64
- "@midscene/shared": "1.0.1-beta-20251209024153.0",
65
- "@midscene/web": "1.0.1-beta-20251209024153.0",
66
- "@midscene/playground": "1.0.1-beta-20251209024153.0"
63
+ "@midscene/playground": "1.0.1-beta-20251209112631.0",
64
+ "@midscene/core": "1.0.1-beta-20251209112631.0",
65
+ "@midscene/shared": "1.0.1-beta-20251209112631.0",
66
+ "@midscene/web": "1.0.1-beta-20251209112631.0"
67
67
  },
68
68
  "license": "MIT",
69
69
  "scripts": {