@midscene/visualizer 0.27.4 → 0.27.5-beta-20250827031507.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.
@@ -50,10 +50,10 @@ const allScriptsFromDump = (dump)=>{
50
50
  dump.executions.forEach((execution)=>{
51
51
  if (execution.sdkVersion) sdkVersion = execution.sdkVersion;
52
52
  execution.tasks.forEach((task)=>{
53
- var _task_pageContext_size, _task_pageContext;
54
- if (null == (_task_pageContext = task.pageContext) ? void 0 : null == (_task_pageContext_size = _task_pageContext.size) ? void 0 : _task_pageContext_size.width) {
55
- width = task.pageContext.size.width;
56
- height = task.pageContext.size.height;
53
+ var _task_uiContext_size, _task_uiContext;
54
+ if (null == (_task_uiContext = task.uiContext) ? void 0 : null == (_task_uiContext_size = _task_uiContext.size) ? void 0 : _task_uiContext_size.width) {
55
+ width = task.uiContext.size.width;
56
+ height = task.uiContext.size.height;
57
57
  }
58
58
  });
59
59
  });
@@ -165,7 +165,7 @@ const generateAnimationScripts = (execution, task, imageWidth, imageHeight)=>{
165
165
  pointerLeft: resultElement.center[0],
166
166
  pointerTop: resultElement.center[1]
167
167
  };
168
- const context = insightTask.pageContext;
168
+ const context = insightTask.uiContext;
169
169
  if (null == context ? void 0 : context.screenshotBase64) {
170
170
  var _insightTask_log, _insightTask_output1, _insightDump_taskInfo;
171
171
  const insightDump = null == (_insightTask_log = insightTask.log) ? void 0 : _insightTask_log.dump;
@@ -81,10 +81,10 @@ const allScriptsFromDump = (dump)=>{
81
81
  dump.executions.forEach((execution)=>{
82
82
  if (execution.sdkVersion) sdkVersion = execution.sdkVersion;
83
83
  execution.tasks.forEach((task)=>{
84
- var _task_pageContext_size, _task_pageContext;
85
- if (null == (_task_pageContext = task.pageContext) ? void 0 : null == (_task_pageContext_size = _task_pageContext.size) ? void 0 : _task_pageContext_size.width) {
86
- width = task.pageContext.size.width;
87
- height = task.pageContext.size.height;
84
+ var _task_uiContext_size, _task_uiContext;
85
+ if (null == (_task_uiContext = task.uiContext) ? void 0 : null == (_task_uiContext_size = _task_uiContext.size) ? void 0 : _task_uiContext_size.width) {
86
+ width = task.uiContext.size.width;
87
+ height = task.uiContext.size.height;
88
88
  }
89
89
  });
90
90
  });
@@ -196,7 +196,7 @@ const generateAnimationScripts = (execution, task, imageWidth, imageHeight)=>{
196
196
  pointerLeft: resultElement.center[0],
197
197
  pointerTop: resultElement.center[1]
198
198
  };
199
- const context = insightTask.pageContext;
199
+ const context = insightTask.uiContext;
200
200
  if (null == context ? void 0 : context.screenshotBase64) {
201
201
  var _insightTask_log, _insightTask_output1, _insightDump_taskInfo;
202
202
  const insightDump = null == (_insightTask_log = insightTask.log) ? void 0 : _insightTask_log.dump;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midscene/visualizer",
3
- "version": "0.27.4",
3
+ "version": "0.27.5-beta-20250827031507.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",
@@ -70,9 +70,9 @@
70
70
  "antd": "^5.21.6",
71
71
  "buffer": "6.0.3",
72
72
  "dayjs": "^1.11.11",
73
- "@midscene/core": "0.27.4",
74
- "@midscene/shared": "0.27.4",
75
- "@midscene/web": "0.27.4"
73
+ "@midscene/core": "0.27.5-beta-20250827031507.0",
74
+ "@midscene/shared": "0.27.5-beta-20250827031507.0",
75
+ "@midscene/web": "0.27.5-beta-20250827031507.0"
76
76
  },
77
77
  "license": "MIT",
78
78
  "scripts": {