@midscene/visualizer 1.6.3-beta-20260402103943.0 → 1.6.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.
@@ -46,7 +46,12 @@ const iconForStatus = (status)=>{
46
46
  return /*#__PURE__*/ jsx(ClockCircleOutlined, {});
47
47
  case 'cancelled':
48
48
  case 'skipped':
49
- return /*#__PURE__*/ jsx(LogoutOutlined, {});
49
+ return /*#__PURE__*/ jsx("span", {
50
+ style: {
51
+ color: '#8c8c8c'
52
+ },
53
+ children: /*#__PURE__*/ jsx(LogoutOutlined, {})
54
+ });
50
55
  case 'running':
51
56
  return /*#__PURE__*/ jsx(ArrowRightOutlined, {});
52
57
  default:
package/dist/es/types.mjs CHANGED
@@ -63,7 +63,10 @@ const extractDefaultValue = (field)=>{
63
63
  var _currentField__def;
64
64
  let currentField = field;
65
65
  while(null == (_currentField__def = currentField._def) ? void 0 : _currentField__def.innerType){
66
- if (currentField._def.typeName === VALIDATION_CONSTANTS.ZOD_TYPES.DEFAULT && currentField._def.defaultValue) return currentField._def.defaultValue();
66
+ if (currentField._def.typeName === VALIDATION_CONSTANTS.ZOD_TYPES.DEFAULT) {
67
+ if ('function' == typeof currentField._def.defaultValue) return currentField._def.defaultValue();
68
+ if (void 0 !== currentField._def._serializedDefaultValue) return currentField._def._serializedDefaultValue;
69
+ }
67
70
  currentField = currentField._def.innerType;
68
71
  }
69
72
  };
@@ -6,8 +6,8 @@ const actionNameForType = (type)=>{
6
6
  if (typeWithoutAi.startsWith('IOS')) return typeWithoutAi.substring(3).replace(/([A-Z])/g, ' $1').replace(/^/, 'IOS').trim();
7
7
  const fullName = typeWithoutAi.replace(/([A-Z])/g, ' $1').trim();
8
8
  const words = fullName.split(' ');
9
- if (words.length > 3) return words.slice(-3).join(' ');
10
- return fullName;
9
+ const result = words.length > 3 ? words.slice(-3).join(' ') : fullName;
10
+ return result.replace(/\b\w/g, (c)=>c.toUpperCase());
11
11
  };
12
12
  const staticAgentFromContext = (context)=>{
13
13
  const page = new StaticPage(context);
@@ -88,7 +88,12 @@ const iconForStatus = (status)=>{
88
88
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icons_namespaceObject.ClockCircleOutlined, {});
89
89
  case 'cancelled':
90
90
  case 'skipped':
91
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icons_namespaceObject.LogoutOutlined, {});
91
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
92
+ style: {
93
+ color: '#8c8c8c'
94
+ },
95
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icons_namespaceObject.LogoutOutlined, {})
96
+ });
92
97
  case 'running':
93
98
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icons_namespaceObject.ArrowRightOutlined, {});
94
99
  default:
package/dist/lib/types.js CHANGED
@@ -95,7 +95,10 @@ const extractDefaultValue = (field)=>{
95
95
  var _currentField__def;
96
96
  let currentField = field;
97
97
  while(null == (_currentField__def = currentField._def) ? void 0 : _currentField__def.innerType){
98
- if (currentField._def.typeName === VALIDATION_CONSTANTS.ZOD_TYPES.DEFAULT && currentField._def.defaultValue) return currentField._def.defaultValue();
98
+ if (currentField._def.typeName === VALIDATION_CONSTANTS.ZOD_TYPES.DEFAULT) {
99
+ if ('function' == typeof currentField._def.defaultValue) return currentField._def.defaultValue();
100
+ if (void 0 !== currentField._def._serializedDefaultValue) return currentField._def._serializedDefaultValue;
101
+ }
99
102
  currentField = currentField._def.innerType;
100
103
  }
101
104
  };
@@ -37,8 +37,8 @@ const actionNameForType = (type)=>{
37
37
  if (typeWithoutAi.startsWith('IOS')) return typeWithoutAi.substring(3).replace(/([A-Z])/g, ' $1').replace(/^/, 'IOS').trim();
38
38
  const fullName = typeWithoutAi.replace(/([A-Z])/g, ' $1').trim();
39
39
  const words = fullName.split(' ');
40
- if (words.length > 3) return words.slice(-3).join(' ');
41
- return fullName;
40
+ const result = words.length > 3 ? words.slice(-3).join(' ') : fullName;
41
+ return result.replace(/\b\w/g, (c)=>c.toUpperCase());
42
42
  };
43
43
  const staticAgentFromContext = (context)=>{
44
44
  const page = new static_namespaceObject.StaticPage(context);
@@ -5,7 +5,8 @@ export interface ZodType {
5
5
  typeName: 'ZodOptional' | 'ZodDefault' | 'ZodNullable' | 'ZodObject' | 'ZodEnum' | 'ZodNumber' | 'ZodString' | 'ZodBoolean';
6
6
  innerType?: ZodType;
7
7
  defaultValue?: () => unknown;
8
- shape?: () => Record<string, ZodType>;
8
+ _serializedDefaultValue?: unknown;
9
+ shape?: (() => Record<string, ZodType>) | Record<string, ZodType>;
9
10
  values?: string[];
10
11
  description?: string;
11
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midscene/visualizer",
3
- "version": "1.6.3-beta-20260402103943.0",
3
+ "version": "1.6.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",
@@ -58,10 +58,10 @@
58
58
  "antd": "^5.21.6",
59
59
  "buffer": "6.0.3",
60
60
  "dayjs": "^1.11.11",
61
- "@midscene/playground": "1.6.3-beta-20260402103943.0",
62
- "@midscene/core": "1.6.3-beta-20260402103943.0",
63
- "@midscene/shared": "1.6.3-beta-20260402103943.0",
64
- "@midscene/web": "1.6.3-beta-20260402103943.0"
61
+ "@midscene/core": "1.6.3",
62
+ "@midscene/playground": "1.6.3",
63
+ "@midscene/shared": "1.6.3",
64
+ "@midscene/web": "1.6.3"
65
65
  },
66
66
  "license": "MIT",
67
67
  "scripts": {