@midscene/visualizer 0.30.3 → 0.30.4-beta-20251016083204.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.
@@ -45,10 +45,9 @@ const allScriptsFromDump = (dump)=>{
45
45
  const dimensionsSet = new Set();
46
46
  let firstWidth;
47
47
  let firstHeight;
48
- let sdkVersion;
48
+ const sdkVersion = dump.sdkVersion;
49
49
  const modelBriefsSet = new Set();
50
50
  dump.executions.forEach((execution)=>{
51
- if (execution.sdkVersion) sdkVersion = execution.sdkVersion;
52
51
  execution.tasks.forEach((task)=>{
53
52
  var _task_uiContext_size, _task_uiContext;
54
53
  if (null == (_task_uiContext = task.uiContext) ? void 0 : null == (_task_uiContext_size = _task_uiContext.size) ? void 0 : _task_uiContext_size.width) {
@@ -174,8 +173,8 @@ const generateAnimationScripts = (execution, task, imageWidth, imageHeight)=>{
174
173
  };
175
174
  const context = insightTask.uiContext;
176
175
  if (null == context ? void 0 : context.screenshotBase64) {
177
- var _insightTask_log, _insightTask_output1, _insightDump_taskInfo, _context_size, _context_size1;
178
- const insightDump = null == (_insightTask_log = insightTask.log) ? void 0 : _insightTask_log.dump;
176
+ var _insightTask_output1, _insightDump_taskInfo, _context_size, _context_size1;
177
+ const insightDump = insightTask.log;
179
178
  const insightContentLength = context.tree ? treeToList(context.tree).length : 0;
180
179
  if (context.screenshotBase64) {
181
180
  var _context_size2, _context_size3;
@@ -76,10 +76,9 @@ const allScriptsFromDump = (dump)=>{
76
76
  const dimensionsSet = new Set();
77
77
  let firstWidth;
78
78
  let firstHeight;
79
- let sdkVersion;
79
+ const sdkVersion = dump.sdkVersion;
80
80
  const modelBriefsSet = new Set();
81
81
  dump.executions.forEach((execution)=>{
82
- if (execution.sdkVersion) sdkVersion = execution.sdkVersion;
83
82
  execution.tasks.forEach((task)=>{
84
83
  var _task_uiContext_size, _task_uiContext;
85
84
  if (null == (_task_uiContext = task.uiContext) ? void 0 : null == (_task_uiContext_size = _task_uiContext.size) ? void 0 : _task_uiContext_size.width) {
@@ -205,8 +204,8 @@ const generateAnimationScripts = (execution, task, imageWidth, imageHeight)=>{
205
204
  };
206
205
  const context = insightTask.uiContext;
207
206
  if (null == context ? void 0 : context.screenshotBase64) {
208
- var _insightTask_log, _insightTask_output1, _insightDump_taskInfo, _context_size, _context_size1;
209
- const insightDump = null == (_insightTask_log = insightTask.log) ? void 0 : _insightTask_log.dump;
207
+ var _insightTask_output1, _insightDump_taskInfo, _context_size, _context_size1;
208
+ const insightDump = insightTask.log;
210
209
  const insightContentLength = context.tree ? (0, extractor_namespaceObject.treeToList)(context.tree).length : 0;
211
210
  if (context.screenshotBase64) {
212
211
  var _context_size2, _context_size3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midscene/visualizer",
3
- "version": "0.30.3",
3
+ "version": "0.30.4-beta-20251016083204.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,10 +70,10 @@
70
70
  "antd": "^5.21.6",
71
71
  "buffer": "6.0.3",
72
72
  "dayjs": "^1.11.11",
73
- "@midscene/core": "0.30.3",
74
- "@midscene/shared": "0.30.3",
75
- "@midscene/playground": "0.30.3",
76
- "@midscene/web": "0.30.3"
73
+ "@midscene/core": "0.30.4-beta-20251016083204.0",
74
+ "@midscene/shared": "0.30.4-beta-20251016083204.0",
75
+ "@midscene/playground": "0.30.4-beta-20251016083204.0",
76
+ "@midscene/web": "0.30.4-beta-20251016083204.0"
77
77
  },
78
78
  "license": "MIT",
79
79
  "scripts": {