@auto-wiz/ui 1.0.1 → 1.0.2
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.
|
@@ -11,6 +11,8 @@ export function FlowStepItem({ step, index, isExecuting, isCompleted, extractedD
|
|
|
11
11
|
return _jsx(MousePointer2, { ...iconProps });
|
|
12
12
|
case "type":
|
|
13
13
|
return _jsx(Keyboard, { ...iconProps });
|
|
14
|
+
case "keyboard":
|
|
15
|
+
return _jsx(Keyboard, { ...iconProps });
|
|
14
16
|
case "select":
|
|
15
17
|
return _jsx(ListChecks, { ...iconProps });
|
|
16
18
|
case "extract":
|
|
@@ -29,6 +31,8 @@ export function FlowStepItem({ step, index, isExecuting, isCompleted, extractedD
|
|
|
29
31
|
return "Click";
|
|
30
32
|
case "type":
|
|
31
33
|
return "Type";
|
|
34
|
+
case "keyboard":
|
|
35
|
+
return "Enter";
|
|
32
36
|
case "select":
|
|
33
37
|
return "Select";
|
|
34
38
|
case "extract":
|
|
@@ -51,9 +55,8 @@ export function FlowStepItem({ step, index, isExecuting, isCompleted, extractedD
|
|
|
51
55
|
const locator = "locator" in step ? step.locator : undefined;
|
|
52
56
|
const metadata = locator?.metadata;
|
|
53
57
|
if (!metadata) {
|
|
54
|
-
// fallback: selector를 간략하게 표시
|
|
55
|
-
|
|
56
|
-
return simplifySelector(selector);
|
|
58
|
+
// fallback: primary selector를 간략하게 표시
|
|
59
|
+
return simplifySelector(locator?.primary);
|
|
57
60
|
}
|
|
58
61
|
// 메타데이터에서 가장 의미있는 정보 추출
|
|
59
62
|
const parts = [];
|
|
@@ -86,9 +89,7 @@ export function FlowStepItem({ step, index, isExecuting, isCompleted, extractedD
|
|
|
86
89
|
if (metadata.testId && parts.length === 0) {
|
|
87
90
|
parts.push(`[${metadata.testId}]`);
|
|
88
91
|
}
|
|
89
|
-
return parts.length > 0
|
|
90
|
-
? parts.join(" ")
|
|
91
|
-
: simplifySelector("selector" in step ? step.selector : "");
|
|
92
|
+
return parts.length > 0 ? parts.join(" ") : simplifySelector(locator?.primary);
|
|
92
93
|
};
|
|
93
94
|
/**
|
|
94
95
|
* Selector를 간략하게 표시 (ID나 class만 추출)
|
|
@@ -136,6 +137,9 @@ export function FlowStepItem({ step, index, isExecuting, isCompleted, extractedD
|
|
|
136
137
|
? textToShow.substring(0, 30) + "..."
|
|
137
138
|
: textToShow;
|
|
138
139
|
return `Type "${displayText}"${elementDesc ? ` into ${elementDesc}` : ""}${step.submit ? " ⏎" : ""}`;
|
|
140
|
+
case "keyboard":
|
|
141
|
+
const key = step.key || "key";
|
|
142
|
+
return elementDesc ? `Press ${key} on ${elementDesc}` : `Press ${key}`;
|
|
139
143
|
case "select":
|
|
140
144
|
return `Select "${step.value}"${elementDesc ? ` from ${elementDesc}` : ""}`;
|
|
141
145
|
case "extract":
|
|
@@ -144,7 +148,7 @@ export function FlowStepItem({ step, index, isExecuting, isCompleted, extractedD
|
|
|
144
148
|
const url = step.url.length > 50 ? step.url.substring(0, 50) + "..." : step.url;
|
|
145
149
|
return `Navigate to ${url}`;
|
|
146
150
|
case "waitFor":
|
|
147
|
-
if (step.
|
|
151
|
+
if (step.locator) {
|
|
148
152
|
return elementDesc ? `Wait for ${elementDesc}` : "Wait for element";
|
|
149
153
|
}
|
|
150
154
|
return `Wait ${step.timeoutMs}ms`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auto-wiz/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "JaeSang",
|
|
6
6
|
"repository": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"lucide-react": "^0.553.0",
|
|
27
27
|
"react": "^19.1.1",
|
|
28
28
|
"react-dom": "^19.1.1",
|
|
29
|
-
"@auto-wiz/core": "1.
|
|
29
|
+
"@auto-wiz/core": "1.2.3"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/react": "^19.1.12",
|