@midscene/visualizer 0.26.2-beta-20250812091127.0 → 0.26.3-beta-20250813021342.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.
- package/dist/es/blank_polyfill.mjs +2 -0
- package/dist/es/component/blackboard.css +12 -5
- package/dist/es/component/blackboard.mjs +266 -0
- package/dist/es/component/color.mjs +35 -0
- package/dist/es/component/describer.css +9 -5
- package/dist/es/component/describer.mjs +128 -0
- package/dist/es/component/env-config.mjs +112 -0
- package/dist/es/component/github-star.css +1 -0
- package/dist/es/component/github-star.mjs +20 -0
- package/dist/es/component/logo.css +5 -3
- package/dist/es/component/logo.mjs +20 -0
- package/dist/es/component/misc.mjs +54 -0
- package/dist/es/component/pixi-loader.mjs +16 -0
- package/dist/es/component/player.css +88 -70
- package/dist/es/component/player.mjs +628 -0
- package/dist/es/component/playground/ConfigSelector.mjs +53 -0
- package/dist/es/component/playground/ContextPreview.mjs +39 -0
- package/dist/es/component/playground/HistorySelector.mjs +193 -0
- package/dist/es/component/playground/PlaygroundResult.mjs +60 -0
- package/dist/es/component/playground/PromptInput.mjs +225 -0
- package/dist/es/component/playground/ServiceModeControl.mjs +100 -0
- package/dist/es/component/playground/index.css +140 -98
- package/dist/es/component/playground/playground-constants.mjs +45 -0
- package/dist/es/component/playground/playground-utils.mjs +89 -0
- package/dist/es/component/playground/useServerValid.mjs +27 -0
- package/dist/es/component/playground/useStaticPageAgent.mjs +12 -0
- package/dist/es/component/replay-scripts.mjs +271 -0
- package/dist/es/component/shiny-text.css +33 -22
- package/dist/es/component/shiny-text.mjs +15 -0
- package/dist/es/component/store/history.mjs +55 -0
- package/dist/es/component/store/store.mjs +128 -0
- package/dist/es/icons/close.mjs +19 -0
- package/dist/es/icons/history.mjs +30 -0
- package/dist/es/icons/magnifying-glass.mjs +39 -0
- package/dist/es/icons/setting.mjs +20 -0
- package/dist/es/index.mjs +21 -0
- package/dist/es/init.mjs +10 -0
- package/dist/es/{utils.js → utils.mjs} +51 -75
- package/dist/lib/blank_polyfill.js +34 -38
- package/dist/lib/component/blackboard.css +12 -5
- package/dist/lib/component/blackboard.js +293 -306
- package/dist/lib/component/color.js +64 -74
- package/dist/lib/component/describer.css +9 -5
- package/dist/lib/component/describer.js +158 -198
- package/dist/lib/component/env-config.js +142 -147
- package/dist/lib/component/github-star.css +1 -0
- package/dist/lib/component/github-star.js +51 -62
- package/dist/lib/component/logo.css +5 -3
- package/dist/lib/component/logo.js +53 -56
- package/dist/lib/component/misc.js +85 -84
- package/dist/lib/component/pixi-loader.js +49 -80
- package/dist/lib/component/player.css +88 -70
- package/dist/lib/component/player.js +627 -738
- package/dist/lib/component/playground/ConfigSelector.js +91 -92
- package/dist/lib/component/playground/ContextPreview.js +80 -72
- package/dist/lib/component/playground/HistorySelector.js +234 -197
- package/dist/lib/component/playground/PlaygroundResult.js +100 -103
- package/dist/lib/component/playground/PromptInput.js +250 -237
- package/dist/lib/component/playground/ServiceModeControl.js +124 -124
- package/dist/lib/component/playground/index.css +140 -98
- package/dist/lib/component/playground/playground-constants.js +97 -73
- package/dist/lib/component/playground/playground-types.js +17 -31
- package/dist/lib/component/playground/playground-utils.js +140 -168
- package/dist/lib/component/playground/useServerValid.js +55 -86
- package/dist/lib/component/playground/useStaticPageAgent.js +45 -51
- package/dist/lib/component/replay-scripts.js +291 -373
- package/dist/lib/component/shiny-text.css +33 -22
- package/dist/lib/component/shiny-text.js +46 -57
- package/dist/lib/component/store/history.js +58 -64
- package/dist/lib/component/store/store.js +132 -128
- package/dist/lib/icons/close.js +53 -0
- package/dist/lib/icons/history.js +64 -0
- package/dist/lib/icons/magnifying-glass.js +73 -0
- package/dist/lib/icons/setting.js +54 -0
- package/dist/lib/index.js +158 -124
- package/dist/lib/init.js +39 -46
- package/dist/lib/utils.js +105 -109
- package/dist/types/blank_polyfill.d.ts +2 -2
- package/dist/types/component/playground/ConfigSelector.d.ts +1 -0
- package/dist/types/component/playground/ContextPreview.d.ts +1 -0
- package/dist/types/component/playground/HistorySelector.d.ts +1 -0
- package/dist/types/component/playground/PlaygroundResult.d.ts +1 -0
- package/dist/types/component/playground/PromptInput.d.ts +1 -0
- package/dist/types/component/playground/ServiceModeControl.d.ts +1 -0
- package/package.json +16 -18
- package/dist/es/assets/close.909351c0.svg +0 -4
- package/dist/es/assets/history.164a4eab.svg +0 -4
- package/dist/es/assets/magnifying-glass.9498e70e.svg +0 -12
- package/dist/es/assets/setting.80ab7285.svg +0 -11
- package/dist/es/blank_polyfill.js +0 -10
- package/dist/es/component/blackboard.js +0 -286
- package/dist/es/component/color.js +0 -49
- package/dist/es/component/describer.js +0 -173
- package/dist/es/component/env-config.js +0 -117
- package/dist/es/component/github-star.js +0 -31
- package/dist/es/component/logo.js +0 -25
- package/dist/es/component/misc.js +0 -63
- package/dist/es/component/pixi-loader.js +0 -51
- package/dist/es/component/player.js +0 -746
- package/dist/es/component/playground/ConfigSelector.js +0 -64
- package/dist/es/component/playground/ContextPreview.js +0 -42
- package/dist/es/component/playground/HistorySelector.js +0 -168
- package/dist/es/component/playground/PlaygroundResult.js +0 -73
- package/dist/es/component/playground/PromptInput.js +0 -212
- package/dist/es/component/playground/ServiceModeControl.js +0 -100
- package/dist/es/component/playground/playground-constants.js +0 -39
- package/dist/es/component/playground/playground-types.js +0 -6
- package/dist/es/component/playground/playground-utils.js +0 -141
- package/dist/es/component/playground/useServerValid.js +0 -58
- package/dist/es/component/playground/useStaticPageAgent.js +0 -20
- package/dist/es/component/replay-scripts.js +0 -361
- package/dist/es/component/shiny-text.js +0 -30
- package/dist/es/component/store/history.js +0 -34
- package/dist/es/component/store/store.js +0 -99
- package/dist/es/index.js +0 -79
- package/dist/es/init.js +0 -17
- package/dist/index.css +0 -595
- package/dist/index.js +0 -1
- package/dist/lib/assets/close.909351c0.svg +0 -4
- package/dist/lib/assets/history.164a4eab.svg +0 -4
- package/dist/lib/assets/magnifying-glass.9498e70e.svg +0 -12
- package/dist/lib/assets/setting.80ab7285.svg +0 -11
- package/dist/lib/component/common.css +0 -0
- /package/dist/es/component/{common.css → playground/playground-types.mjs} +0 -0
|
@@ -1,290 +1,332 @@
|
|
|
1
1
|
body {
|
|
2
2
|
margin: 0;
|
|
3
|
-
font-family:
|
|
4
|
-
-apple-system,
|
|
5
|
-
BlinkMacSystemFont,
|
|
6
|
-
"Segoe UI",
|
|
7
|
-
"Noto Sans",
|
|
8
|
-
Helvetica,
|
|
9
|
-
Arial,
|
|
10
|
-
sans-serif,
|
|
11
|
-
"Apple Color Emoji",
|
|
12
|
-
"Segoe UI Emoji";
|
|
3
|
+
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Noto Sans, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
|
|
13
4
|
font-size: 14px;
|
|
14
5
|
}
|
|
6
|
+
|
|
15
7
|
.prompt-input-wrapper {
|
|
16
8
|
width: 100%;
|
|
17
9
|
}
|
|
10
|
+
|
|
18
11
|
.prompt-input-wrapper .mode-radio-group-wrapper {
|
|
19
|
-
display: flex;
|
|
20
|
-
align-items: center;
|
|
21
12
|
justify-content: space-between;
|
|
13
|
+
align-items: center;
|
|
14
|
+
display: flex;
|
|
22
15
|
}
|
|
16
|
+
|
|
23
17
|
.prompt-input-wrapper .mode-radio-group-wrapper .mode-radio-group {
|
|
24
|
-
display: flex;
|
|
25
18
|
align-items: center;
|
|
26
19
|
height: 100%;
|
|
20
|
+
display: flex;
|
|
27
21
|
}
|
|
22
|
+
|
|
28
23
|
.prompt-input-wrapper .mode-radio-group-wrapper .mode-radio-group .ant-radio-button-wrapper {
|
|
29
24
|
height: 24px;
|
|
30
|
-
padding: 0 8px;
|
|
31
|
-
line-height: 24px;
|
|
32
|
-
border-radius: 11px;
|
|
33
|
-
margin-right: 8px;
|
|
34
25
|
box-shadow: none;
|
|
26
|
+
background-color: #f7f7f7;
|
|
35
27
|
border: none;
|
|
36
|
-
|
|
28
|
+
border-radius: 11px;
|
|
29
|
+
margin-right: 8px;
|
|
30
|
+
padding: 0 8px;
|
|
37
31
|
font-size: 12px;
|
|
32
|
+
line-height: 24px;
|
|
38
33
|
}
|
|
34
|
+
|
|
39
35
|
.prompt-input-wrapper .mode-radio-group-wrapper .mode-radio-group .ant-radio-button-wrapper:before {
|
|
40
36
|
display: none;
|
|
41
37
|
}
|
|
38
|
+
|
|
42
39
|
.prompt-input-wrapper .mode-radio-group-wrapper .mode-radio-group .ant-radio-button-wrapper:focus-within {
|
|
43
40
|
outline: none;
|
|
44
41
|
}
|
|
42
|
+
|
|
45
43
|
.prompt-input-wrapper .mode-radio-group-wrapper .mode-radio-group .ant-radio-button-wrapper.ant-radio-button-wrapper-checked {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
color:
|
|
44
|
+
color: #fff;
|
|
45
|
+
background-color: #2b83ff;
|
|
46
|
+
border-color: #2b83ff;
|
|
49
47
|
}
|
|
48
|
+
|
|
50
49
|
.prompt-input-wrapper .mode-radio-group-wrapper .mode-radio-group .ant-radio-button-wrapper.ant-radio-button-wrapper-checked:hover {
|
|
51
50
|
color: #fff;
|
|
52
51
|
}
|
|
52
|
+
|
|
53
53
|
.prompt-input-wrapper .mode-radio-group-wrapper .mode-radio-group .ant-radio-button-wrapper:hover {
|
|
54
|
-
color: #
|
|
54
|
+
color: #2b83ff;
|
|
55
55
|
}
|
|
56
|
+
|
|
56
57
|
.prompt-input-wrapper .mode-radio-group-wrapper .action-icons {
|
|
57
|
-
display: flex;
|
|
58
58
|
align-items: center;
|
|
59
|
+
display: flex;
|
|
59
60
|
}
|
|
61
|
+
|
|
60
62
|
.prompt-input-wrapper .main-side-console-input {
|
|
61
|
-
position: relative;
|
|
62
63
|
margin-top: 10px;
|
|
64
|
+
position: relative;
|
|
63
65
|
}
|
|
66
|
+
|
|
64
67
|
.prompt-input-wrapper .main-side-console-input .main-side-console-input-textarea {
|
|
68
|
+
white-space: pre-wrap;
|
|
69
|
+
scrollbar-width: thin;
|
|
70
|
+
background: #fff;
|
|
71
|
+
border: 1px solid #f2f4f7;
|
|
65
72
|
border-radius: 12px;
|
|
66
|
-
border: 1px solid #F2F4F7;
|
|
67
|
-
background: white;
|
|
68
73
|
padding: 12px 16px;
|
|
69
|
-
transition: background-color 0.2s ease;
|
|
70
|
-
overflow-y: auto;
|
|
71
|
-
white-space: pre-wrap;
|
|
72
74
|
line-height: 21px;
|
|
73
|
-
|
|
75
|
+
transition: background-color .2s;
|
|
76
|
+
overflow-y: auto;
|
|
74
77
|
}
|
|
78
|
+
|
|
75
79
|
@keyframes hue-shift {
|
|
76
80
|
0% {
|
|
77
|
-
filter: hue-rotate(
|
|
81
|
+
filter: hue-rotate();
|
|
78
82
|
}
|
|
83
|
+
|
|
79
84
|
100% {
|
|
80
85
|
filter: hue-rotate(360deg);
|
|
81
86
|
}
|
|
82
87
|
}
|
|
88
|
+
|
|
83
89
|
.prompt-input-wrapper .main-side-console-input .main-side-console-input-textarea:focus-within {
|
|
84
|
-
|
|
85
|
-
|
|
90
|
+
background: linear-gradient(#fff, #fff) padding-box padding-box, linear-gradient(135deg, #4285f4 0%, #06f 25%, #7b02c5 50%, #ea4335 75%, #ff7043 100%) border-box;
|
|
91
|
+
border: 1px solid rgba(0, 0, 0, 0);
|
|
86
92
|
}
|
|
93
|
+
|
|
87
94
|
.prompt-input-wrapper .main-side-console-input .main-side-console-input-textarea::-webkit-scrollbar {
|
|
88
95
|
width: 6px;
|
|
89
96
|
}
|
|
97
|
+
|
|
90
98
|
.prompt-input-wrapper .main-side-console-input .main-side-console-input-textarea::-webkit-scrollbar-thumb {
|
|
91
|
-
background-color: rgba(0, 0, 0,
|
|
99
|
+
background-color: rgba(0, 0, 0, .2);
|
|
92
100
|
border-radius: 3px;
|
|
93
101
|
}
|
|
102
|
+
|
|
94
103
|
.prompt-input-wrapper .main-side-console-input.loading .main-side-console-input-textarea {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
animation:
|
|
104
|
+
background: linear-gradient(#fff, #fff) padding-box padding-box, linear-gradient(135deg, #4285f4 0%, #06f 25%, #7b02c5 50%, #ea4335 75%, #ff7043 100%) border-box;
|
|
105
|
+
border: 1px solid rgba(0, 0, 0, 0);
|
|
106
|
+
animation: 5s linear infinite hue-shift;
|
|
98
107
|
}
|
|
108
|
+
|
|
99
109
|
.prompt-input-wrapper .main-side-console-input .ant-form-item-control-input-content {
|
|
100
|
-
border: 3px solid transparent;
|
|
101
|
-
border-radius: 14px;
|
|
102
110
|
z-index: 999;
|
|
111
|
+
border: 3px solid rgba(0, 0, 0, 0);
|
|
112
|
+
border-radius: 14px;
|
|
103
113
|
}
|
|
114
|
+
|
|
104
115
|
.prompt-input-wrapper .main-side-console-input:focus-within .ant-form-item-control-input-content {
|
|
105
|
-
border-color: rgba(43, 131, 255,
|
|
116
|
+
border-color: rgba(43, 131, 255, .16);
|
|
106
117
|
}
|
|
118
|
+
|
|
107
119
|
.prompt-input-wrapper .main-side-console-input.disabled .form-controller-wrapper {
|
|
108
|
-
background-color:
|
|
120
|
+
background-color: rgba(0, 0, 0, 0);
|
|
109
121
|
}
|
|
122
|
+
|
|
110
123
|
.prompt-input-wrapper .ant-input {
|
|
111
124
|
padding-bottom: 40px;
|
|
112
125
|
}
|
|
126
|
+
|
|
113
127
|
.prompt-input-wrapper .form-controller-wrapper {
|
|
114
|
-
|
|
115
|
-
|
|
128
|
+
box-sizing: border-box;
|
|
129
|
+
background-color: #fff;
|
|
116
130
|
flex-direction: row;
|
|
117
131
|
justify-content: flex-end;
|
|
118
|
-
width: calc(100% - 32px);
|
|
119
|
-
box-sizing: border-box;
|
|
120
132
|
align-items: flex-end;
|
|
121
133
|
gap: 8px;
|
|
122
|
-
|
|
123
|
-
left: 16px;
|
|
124
|
-
bottom: 0.5px;
|
|
134
|
+
width: calc(100% - 32px);
|
|
125
135
|
padding: 12px 0;
|
|
126
136
|
line-height: 32px;
|
|
127
|
-
transition: background-color
|
|
137
|
+
transition: background-color .2s;
|
|
138
|
+
display: flex;
|
|
139
|
+
position: absolute;
|
|
140
|
+
bottom: .5px;
|
|
141
|
+
left: 16px;
|
|
128
142
|
}
|
|
143
|
+
|
|
129
144
|
.prompt-input-wrapper .settings-wrapper {
|
|
130
|
-
display: flex;
|
|
131
|
-
flex-direction: row;
|
|
132
|
-
gap: 2px;
|
|
133
145
|
color: #777;
|
|
134
|
-
flex-
|
|
146
|
+
flex-flow: wrap;
|
|
147
|
+
gap: 2px;
|
|
148
|
+
display: flex;
|
|
135
149
|
}
|
|
150
|
+
|
|
136
151
|
.prompt-input-wrapper .settings-wrapper.settings-wrapper-hover {
|
|
137
152
|
color: #3b3b3b;
|
|
138
153
|
}
|
|
154
|
+
|
|
139
155
|
.selector-trigger {
|
|
156
|
+
cursor: pointer;
|
|
140
157
|
width: 24px;
|
|
141
158
|
height: 24px;
|
|
142
|
-
|
|
143
|
-
transition: all 0.2s ease;
|
|
159
|
+
transition: all .2s;
|
|
144
160
|
}
|
|
161
|
+
|
|
145
162
|
.selector-trigger .action-icon {
|
|
163
|
+
color: rgba(0, 0, 0, .85);
|
|
146
164
|
font-size: 14px;
|
|
147
|
-
|
|
148
|
-
transition: all 0.2s;
|
|
165
|
+
transition: all .2s;
|
|
149
166
|
}
|
|
167
|
+
|
|
150
168
|
.selector-trigger .action-icon:hover {
|
|
151
|
-
color: #
|
|
169
|
+
color: #2b83ff;
|
|
152
170
|
}
|
|
171
|
+
|
|
153
172
|
.history-modal-container {
|
|
173
|
+
border-radius: 12px 12px 0 0;
|
|
174
|
+
flex-direction: column;
|
|
154
175
|
height: 70vh;
|
|
155
176
|
display: flex;
|
|
156
|
-
flex-direction: column;
|
|
157
|
-
border-radius: 12px 12px 0 0;
|
|
158
177
|
overflow: hidden;
|
|
159
178
|
}
|
|
179
|
+
|
|
160
180
|
.history-modal-container .history-modal-header {
|
|
161
|
-
display: flex;
|
|
162
181
|
justify-content: space-between;
|
|
163
182
|
align-items: center;
|
|
164
183
|
height: 48px;
|
|
165
|
-
line-height: 48px;
|
|
166
184
|
padding: 0 25px;
|
|
185
|
+
line-height: 48px;
|
|
186
|
+
display: flex;
|
|
167
187
|
}
|
|
188
|
+
|
|
168
189
|
.history-modal-container .history-modal-header .close-button {
|
|
190
|
+
justify-content: center;
|
|
191
|
+
align-items: center;
|
|
169
192
|
margin-right: -4px;
|
|
170
193
|
padding: 4px;
|
|
171
194
|
display: flex;
|
|
172
|
-
align-items: center;
|
|
173
|
-
justify-content: center;
|
|
174
195
|
}
|
|
196
|
+
|
|
175
197
|
.history-modal-container .history-modal-header .close-button .anticon {
|
|
198
|
+
color: #999;
|
|
176
199
|
font-size: 18px;
|
|
177
|
-
color: #999999;
|
|
178
200
|
}
|
|
201
|
+
|
|
179
202
|
.history-modal-container .history-modal-header .close-button:hover .anticon {
|
|
180
|
-
color: #
|
|
203
|
+
color: #666;
|
|
181
204
|
}
|
|
205
|
+
|
|
182
206
|
.history-modal-container .history-search-section {
|
|
207
|
+
background: #fff;
|
|
183
208
|
padding: 16px 20px;
|
|
184
|
-
background: #ffffff;
|
|
185
209
|
}
|
|
210
|
+
|
|
186
211
|
.history-modal-container .history-search-section .search-input-wrapper {
|
|
187
|
-
|
|
212
|
+
color: rgba(0, 0, 0, .25);
|
|
188
213
|
align-items: center;
|
|
189
214
|
gap: 12px;
|
|
190
|
-
|
|
215
|
+
display: flex;
|
|
191
216
|
}
|
|
217
|
+
|
|
192
218
|
.history-modal-container .history-search-section .search-input-wrapper .search-input {
|
|
193
|
-
flex: 1 1;
|
|
194
|
-
height: 36px;
|
|
195
|
-
border-radius: 16px;
|
|
196
219
|
background: #f1f2f3;
|
|
197
220
|
border: none;
|
|
221
|
+
border-radius: 16px;
|
|
222
|
+
flex: 1;
|
|
223
|
+
height: 36px;
|
|
198
224
|
}
|
|
225
|
+
|
|
199
226
|
.history-modal-container .history-search-section .search-input-wrapper .search-input .ant-input {
|
|
200
|
-
background: transparent;
|
|
201
|
-
border: none;
|
|
202
227
|
box-shadow: none;
|
|
228
|
+
background: none;
|
|
229
|
+
border: none;
|
|
203
230
|
}
|
|
204
|
-
|
|
205
|
-
.history-modal-container .history-search-section .search-input-wrapper .search-input:focus-within {
|
|
231
|
+
|
|
232
|
+
.history-modal-container .history-search-section .search-input-wrapper .search-input:hover, .history-modal-container .history-search-section .search-input-wrapper .search-input:focus-within {
|
|
233
|
+
background: #fff;
|
|
206
234
|
border-color: #d9d9d9;
|
|
207
|
-
background: #ffffff;
|
|
208
235
|
}
|
|
236
|
+
|
|
209
237
|
.history-modal-container .history-search-section .search-input-wrapper .clear-button {
|
|
210
238
|
color: #1890ff;
|
|
211
|
-
padding: 0;
|
|
212
239
|
height: auto;
|
|
240
|
+
padding: 0;
|
|
213
241
|
}
|
|
242
|
+
|
|
214
243
|
.history-modal-container .history-search-section .search-input-wrapper .clear-button:hover {
|
|
215
244
|
color: #40a9ff;
|
|
216
245
|
}
|
|
246
|
+
|
|
217
247
|
.history-modal-container .history-content {
|
|
218
|
-
flex: 1
|
|
248
|
+
flex: 1;
|
|
249
|
+
padding: 0 25px 25px;
|
|
219
250
|
overflow-y: auto;
|
|
220
|
-
padding: 0 25px 25px 25px;
|
|
221
251
|
}
|
|
252
|
+
|
|
222
253
|
.history-modal-container .history-content .history-group {
|
|
223
254
|
margin-bottom: 10px;
|
|
224
255
|
}
|
|
256
|
+
|
|
225
257
|
.history-modal-container .history-content .history-group .history-group-title {
|
|
226
|
-
|
|
227
|
-
color: rgba(0, 0, 0, 0.45);
|
|
258
|
+
color: rgba(0, 0, 0, .45);
|
|
228
259
|
height: 40px;
|
|
229
|
-
|
|
260
|
+
font-size: 12px;
|
|
230
261
|
font-weight: 400;
|
|
262
|
+
line-height: 40px;
|
|
231
263
|
}
|
|
264
|
+
|
|
232
265
|
.history-modal-container .history-content .history-group .history-item {
|
|
233
266
|
cursor: pointer;
|
|
267
|
+
color: rgba(0, 0, 0, .85);
|
|
268
|
+
white-space: nowrap;
|
|
269
|
+
text-overflow: ellipsis;
|
|
234
270
|
height: 40px;
|
|
235
|
-
line-height: 40px;
|
|
236
271
|
font-size: 14px;
|
|
237
|
-
|
|
272
|
+
line-height: 40px;
|
|
238
273
|
overflow: hidden;
|
|
239
|
-
white-space: nowrap;
|
|
240
|
-
text-overflow: ellipsis;
|
|
241
274
|
}
|
|
275
|
+
|
|
242
276
|
.history-modal-container .history-content .history-group .history-item:hover {
|
|
243
277
|
background: #f2f4f7;
|
|
244
|
-
padding: 0 8px;
|
|
245
278
|
margin: 0 -8px;
|
|
279
|
+
padding: 0 8px;
|
|
246
280
|
}
|
|
281
|
+
|
|
247
282
|
.history-modal-container .history-content .no-results {
|
|
248
283
|
text-align: center;
|
|
284
|
+
color: #999;
|
|
249
285
|
padding: 40px 20px;
|
|
250
|
-
color: #999999;
|
|
251
286
|
}
|
|
287
|
+
|
|
252
288
|
.ant-modal-wrap .ant-modal-content {
|
|
253
|
-
animation:
|
|
289
|
+
animation: .3s cubic-bezier(.4, 0, .2, 1) forwards slideUpFromBottom !important;
|
|
254
290
|
}
|
|
291
|
+
|
|
255
292
|
@keyframes slideUpFromBottom {
|
|
256
293
|
0% {
|
|
257
|
-
transform: translateY(100%);
|
|
258
294
|
opacity: 0;
|
|
295
|
+
transform: translateY(100%);
|
|
259
296
|
}
|
|
297
|
+
|
|
260
298
|
100% {
|
|
261
|
-
transform: translateY(0);
|
|
262
299
|
opacity: 1;
|
|
300
|
+
transform: translateY(0);
|
|
263
301
|
}
|
|
264
302
|
}
|
|
303
|
+
|
|
265
304
|
.result-wrapper {
|
|
266
|
-
display: flex;
|
|
267
|
-
height: 100%;
|
|
268
305
|
justify-content: center;
|
|
306
|
+
height: 100%;
|
|
269
307
|
margin: 4px 0;
|
|
308
|
+
display: flex;
|
|
270
309
|
}
|
|
310
|
+
|
|
271
311
|
.result-wrapper .loading-container {
|
|
272
312
|
text-align: center;
|
|
273
313
|
}
|
|
314
|
+
|
|
274
315
|
.result-wrapper .loading-container .loading-progress-text {
|
|
275
|
-
margin-top: 8px;
|
|
276
316
|
color: #888;
|
|
317
|
+
margin-top: 8px;
|
|
277
318
|
font-size: 12px;
|
|
278
319
|
}
|
|
320
|
+
|
|
279
321
|
.result-wrapper pre {
|
|
280
|
-
margin: 4px 0;
|
|
281
|
-
margin: 0;
|
|
282
322
|
white-space: pre-wrap;
|
|
283
323
|
text-wrap: unset;
|
|
284
324
|
word-wrap: break-word;
|
|
285
325
|
overflow-wrap: break-word;
|
|
286
|
-
background: #
|
|
326
|
+
background: #f2f4f7;
|
|
287
327
|
border-radius: 8px;
|
|
328
|
+
margin: 0;
|
|
288
329
|
padding: 14px;
|
|
289
330
|
overflow: scroll;
|
|
290
331
|
}
|
|
332
|
+
|
|
@@ -1,77 +1,101 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.n = (module)=>{
|
|
5
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
6
|
+
__webpack_require__.d(getter, {
|
|
7
|
+
a: getter
|
|
8
|
+
});
|
|
9
|
+
return getter;
|
|
10
|
+
};
|
|
11
|
+
})();
|
|
12
|
+
(()=>{
|
|
13
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
14
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: definition[key]
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
20
|
+
(()=>{
|
|
21
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
22
|
+
})();
|
|
23
|
+
(()=>{
|
|
24
|
+
__webpack_require__.r = (exports1)=>{
|
|
25
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
26
|
+
value: 'Module'
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
29
|
+
value: true
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
})();
|
|
33
|
+
var __webpack_exports__ = {};
|
|
34
|
+
__webpack_require__.r(__webpack_exports__);
|
|
35
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
36
|
+
serverLaunchTip: ()=>serverLaunchTip,
|
|
37
|
+
errorMessageServerNotReady: ()=>errorMessageServerNotReady,
|
|
38
|
+
trackingTip: ()=>trackingTip,
|
|
39
|
+
deepThinkTip: ()=>deepThinkTip,
|
|
40
|
+
emptyResultTip: ()=>emptyResultTip
|
|
36
41
|
});
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
var
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
43
|
+
const external_antd_namespaceObject = require("antd");
|
|
44
|
+
const external_shiny_text_js_namespaceObject = require("../shiny-text.js");
|
|
45
|
+
var external_shiny_text_js_default = /*#__PURE__*/ __webpack_require__.n(external_shiny_text_js_namespaceObject);
|
|
46
|
+
require("./index.css");
|
|
47
|
+
const errorMessageServerNotReady = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("span", {
|
|
48
|
+
children: [
|
|
49
|
+
"Don't worry, just one more step to launch the playground server.",
|
|
50
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("br", {}),
|
|
51
|
+
"Please run one of the commands under the midscene project directory:",
|
|
52
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("br", {}),
|
|
53
|
+
"a. ",
|
|
54
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("strong", {
|
|
55
|
+
children: "npx midscene-playground"
|
|
56
|
+
}),
|
|
57
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("br", {}),
|
|
58
|
+
"b. ",
|
|
59
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("strong", {
|
|
60
|
+
children: "npx --yes @midscene/web"
|
|
61
|
+
})
|
|
62
|
+
]
|
|
63
|
+
});
|
|
64
|
+
const serverLaunchTip = function() {
|
|
65
|
+
let notReadyMessage = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : errorMessageServerNotReady;
|
|
66
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
67
|
+
className: "server-tip",
|
|
68
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Alert, {
|
|
69
|
+
message: "Playground Server Not Ready",
|
|
70
|
+
description: notReadyMessage,
|
|
71
|
+
type: "warning"
|
|
72
|
+
})
|
|
73
|
+
});
|
|
43
74
|
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
71
|
-
0 && (module.exports = {
|
|
72
|
-
deepThinkTip,
|
|
73
|
-
emptyResultTip,
|
|
74
|
-
errorMessageServerNotReady,
|
|
75
|
-
serverLaunchTip,
|
|
76
|
-
trackingTip
|
|
75
|
+
const emptyResultTip = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
76
|
+
className: "result-empty-tip",
|
|
77
|
+
style: {
|
|
78
|
+
textAlign: 'center'
|
|
79
|
+
},
|
|
80
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_shiny_text_js_default(), {
|
|
81
|
+
disabled: true,
|
|
82
|
+
text: "The result will be shown here"
|
|
83
|
+
})
|
|
84
|
+
});
|
|
85
|
+
const trackingTip = 'limit popup to current tab';
|
|
86
|
+
const deepThinkTip = 'deep think';
|
|
87
|
+
exports.deepThinkTip = __webpack_exports__.deepThinkTip;
|
|
88
|
+
exports.emptyResultTip = __webpack_exports__.emptyResultTip;
|
|
89
|
+
exports.errorMessageServerNotReady = __webpack_exports__.errorMessageServerNotReady;
|
|
90
|
+
exports.serverLaunchTip = __webpack_exports__.serverLaunchTip;
|
|
91
|
+
exports.trackingTip = __webpack_exports__.trackingTip;
|
|
92
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
93
|
+
"deepThinkTip",
|
|
94
|
+
"emptyResultTip",
|
|
95
|
+
"errorMessageServerNotReady",
|
|
96
|
+
"serverLaunchTip",
|
|
97
|
+
"trackingTip"
|
|
98
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
99
|
+
Object.defineProperty(exports, '__esModule', {
|
|
100
|
+
value: true
|
|
77
101
|
});
|
|
@@ -1,32 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
-
mod
|
|
23
|
-
));
|
|
24
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
|
-
var playground_types_exports = {};
|
|
26
|
-
module.exports = __toCommonJS(playground_types_exports);
|
|
27
|
-
var import_buffer = __toESM(require("buffer"));
|
|
28
|
-
var import_browser = __toESM(require("process/browser"));
|
|
29
|
-
var import_console_browserify = __toESM(require("console-browserify"));
|
|
30
|
-
var buffer = {
|
|
31
|
-
Buffer: import_buffer.default
|
|
32
|
-
};
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.r = (exports1)=>{
|
|
5
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
6
|
+
value: 'Module'
|
|
7
|
+
});
|
|
8
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
9
|
+
value: true
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
})();
|
|
13
|
+
var __webpack_exports__ = {};
|
|
14
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15
|
+
for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
16
|
+
Object.defineProperty(exports, '__esModule', {
|
|
17
|
+
value: true
|
|
18
|
+
});
|