@midscene/visualizer 1.7.4 → 1.7.5-beta-20260420031652.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/component/config-selector/index.mjs +2 -2
- package/dist/es/component/history-selector/index.css +83 -16
- package/dist/es/component/history-selector/index.mjs +2 -2
- package/dist/es/component/playground/index.css +193 -1
- package/dist/es/component/playground-result/index.css +28 -0
- package/dist/es/component/playground-result/index.mjs +39 -54
- package/dist/es/component/prompt-input/index.css +165 -1
- package/dist/es/component/prompt-input/index.mjs +305 -130
- package/dist/es/component/universal-playground/index.css +47 -15
- package/dist/es/component/universal-playground/index.mjs +162 -102
- package/dist/es/utils/action-label.mjs +14 -0
- package/dist/es/utils/playground-utils.mjs +1 -9
- package/dist/es/utils/prompt-input-utils.mjs +45 -0
- package/dist/lib/component/config-selector/index.js +2 -2
- package/dist/lib/component/history-selector/index.css +83 -16
- package/dist/lib/component/history-selector/index.js +2 -2
- package/dist/lib/component/playground/index.css +193 -1
- package/dist/lib/component/playground-result/index.css +28 -0
- package/dist/lib/component/playground-result/index.js +39 -54
- package/dist/lib/component/prompt-input/index.css +165 -1
- package/dist/lib/component/prompt-input/index.js +307 -130
- package/dist/lib/component/universal-playground/index.css +47 -15
- package/dist/lib/component/universal-playground/index.js +161 -101
- package/dist/lib/utils/action-label.js +51 -0
- package/dist/lib/utils/playground-utils.js +2 -10
- package/dist/lib/utils/prompt-input-utils.js +82 -0
- package/dist/types/component/config-selector/index.d.ts +2 -0
- package/dist/types/component/history-selector/index.d.ts +2 -0
- package/dist/types/component/prompt-input/index.d.ts +2 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types.d.ts +50 -0
- package/dist/types/utils/action-label.d.ts +11 -0
- package/dist/types/utils/playground-utils.d.ts +6 -1
- package/dist/types/utils/prompt-input-utils.d.ts +24 -0
- package/package.json +5 -5
|
@@ -52,6 +52,34 @@
|
|
|
52
52
|
overflow: scroll;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
.result-wrapper .combined-result-layout {
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
align-self: stretch;
|
|
58
|
+
gap: 16px;
|
|
59
|
+
width: 100%;
|
|
60
|
+
min-width: 0;
|
|
61
|
+
max-width: 100%;
|
|
62
|
+
height: 100%;
|
|
63
|
+
display: flex;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.result-wrapper .combined-result-section {
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
flex: auto;
|
|
69
|
+
min-width: 0;
|
|
70
|
+
min-height: 0;
|
|
71
|
+
display: flex;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.result-wrapper .combined-result-player {
|
|
75
|
+
flex: auto;
|
|
76
|
+
width: 100%;
|
|
77
|
+
min-width: 0;
|
|
78
|
+
max-width: 100%;
|
|
79
|
+
min-height: 0;
|
|
80
|
+
overflow: hidden;
|
|
81
|
+
}
|
|
82
|
+
|
|
55
83
|
[data-theme="dark"] .result-wrapper .loading-container .loading-progress-text {
|
|
56
84
|
color: rgba(255, 255, 255, .45);
|
|
57
85
|
}
|
|
@@ -313,6 +341,13 @@
|
|
|
313
341
|
background-color: rgba(0, 0, 0, 0);
|
|
314
342
|
}
|
|
315
343
|
|
|
344
|
+
.prompt-input-wrapper .no-input-method {
|
|
345
|
+
text-align: center;
|
|
346
|
+
color: var(--midscene-text-tertiary, #666);
|
|
347
|
+
padding: 20px;
|
|
348
|
+
font-size: 14px;
|
|
349
|
+
}
|
|
350
|
+
|
|
316
351
|
.prompt-input-wrapper .ant-form-item-with-help + .form-controller-wrapper {
|
|
317
352
|
bottom: 14px;
|
|
318
353
|
}
|
|
@@ -503,6 +538,155 @@
|
|
|
503
538
|
color: #2b83ff;
|
|
504
539
|
}
|
|
505
540
|
|
|
541
|
+
.prompt-input-wrapper-minimal {
|
|
542
|
+
width: 100%;
|
|
543
|
+
padding: 0;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input {
|
|
547
|
+
background: #fff;
|
|
548
|
+
border: 1px solid #e8e8e8;
|
|
549
|
+
border-radius: 24px;
|
|
550
|
+
margin-top: 0;
|
|
551
|
+
padding-bottom: 56px;
|
|
552
|
+
position: relative;
|
|
553
|
+
overflow: hidden;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input:focus-within {
|
|
557
|
+
box-shadow: 0 0 0 2px rgba(25, 121, 255, .12);
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input:before {
|
|
561
|
+
display: none;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .main-side-console-input-textarea {
|
|
565
|
+
min-height: 56px;
|
|
566
|
+
padding: 16px 16px 8px;
|
|
567
|
+
line-height: 22px;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .structured-params-container {
|
|
571
|
+
border-radius: inherit;
|
|
572
|
+
background: none;
|
|
573
|
+
padding: 16px 16px 72px;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-toolbar-row {
|
|
577
|
+
justify-content: space-between;
|
|
578
|
+
align-items: center;
|
|
579
|
+
gap: 12px;
|
|
580
|
+
display: flex;
|
|
581
|
+
position: absolute;
|
|
582
|
+
bottom: 12px;
|
|
583
|
+
left: 12px;
|
|
584
|
+
right: 12px;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-toolbar-left {
|
|
588
|
+
align-items: center;
|
|
589
|
+
gap: 4px;
|
|
590
|
+
min-width: 0;
|
|
591
|
+
display: flex;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-action-trigger, .prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-icon-trigger {
|
|
595
|
+
cursor: pointer;
|
|
596
|
+
background: none;
|
|
597
|
+
border: none;
|
|
598
|
+
justify-content: center;
|
|
599
|
+
align-items: center;
|
|
600
|
+
padding: 0;
|
|
601
|
+
display: inline-flex;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-action-trigger {
|
|
605
|
+
color: #878787;
|
|
606
|
+
border-radius: 32px;
|
|
607
|
+
gap: 4px;
|
|
608
|
+
height: 32px;
|
|
609
|
+
padding: 4px 8px;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-action-trigger:hover {
|
|
613
|
+
background: rgba(0, 0, 0, .03);
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-action-trigger:disabled {
|
|
617
|
+
cursor: not-allowed;
|
|
618
|
+
opacity: .5;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-action-icon {
|
|
622
|
+
object-fit: contain;
|
|
623
|
+
width: 16px;
|
|
624
|
+
height: 16px;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-action-label {
|
|
628
|
+
color: #878787;
|
|
629
|
+
white-space: nowrap;
|
|
630
|
+
font-size: 12px;
|
|
631
|
+
font-weight: 500;
|
|
632
|
+
line-height: 16px;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-action-chevron {
|
|
636
|
+
object-fit: contain;
|
|
637
|
+
opacity: .25;
|
|
638
|
+
width: 5.3px;
|
|
639
|
+
height: 9.3px;
|
|
640
|
+
margin-left: -2px;
|
|
641
|
+
transform: rotate(-90deg);
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-action-chevron-fallback {
|
|
645
|
+
opacity: .5;
|
|
646
|
+
font-size: 10px;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .history-selector-wrapper, .prompt-input-wrapper-minimal .minimal-main-side-console-input .settings-wrapper, .prompt-input-wrapper-minimal .minimal-main-side-console-input .selector-trigger {
|
|
650
|
+
justify-content: center;
|
|
651
|
+
align-items: center;
|
|
652
|
+
width: auto;
|
|
653
|
+
height: auto;
|
|
654
|
+
display: inline-flex;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-icon-trigger {
|
|
658
|
+
border-radius: 32px;
|
|
659
|
+
width: 32px;
|
|
660
|
+
height: 32px;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-icon-trigger:hover {
|
|
664
|
+
background: rgba(0, 0, 0, .03);
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-toolbar-icon {
|
|
668
|
+
object-fit: contain;
|
|
669
|
+
width: 16px;
|
|
670
|
+
height: 16px;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-toolbar-icon-history {
|
|
674
|
+
width: 18px;
|
|
675
|
+
height: 18px;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-toolbar-icon-fallback {
|
|
679
|
+
color: #878787;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .form-controller-wrapper {
|
|
683
|
+
width: auto;
|
|
684
|
+
height: auto;
|
|
685
|
+
padding: 0;
|
|
686
|
+
line-height: normal;
|
|
687
|
+
position: static;
|
|
688
|
+
}
|
|
689
|
+
|
|
506
690
|
.more-apis-dropdown .ant-dropdown-menu {
|
|
507
691
|
scrollbar-width: thin;
|
|
508
692
|
max-height: 400px;
|
|
@@ -577,7 +761,7 @@
|
|
|
577
761
|
|
|
578
762
|
[data-theme="dark"] .prompt-input-wrapper .ant-form-item-control-input-content .ant-input, [data-theme="dark"] .prompt-input-wrapper .ant-form-item-control-input-content textarea.ant-input {
|
|
579
763
|
color: #f8fafd !important;
|
|
580
|
-
background:
|
|
764
|
+
background: none !important;
|
|
581
765
|
border-color: rgba(255, 255, 255, .12) !important;
|
|
582
766
|
}
|
|
583
767
|
|
|
@@ -617,6 +801,14 @@
|
|
|
617
801
|
border-color: #2b83ff !important;
|
|
618
802
|
}
|
|
619
803
|
|
|
804
|
+
[data-theme="dark"] .prompt-input-wrapper.prompt-input-wrapper-minimal .minimal-main-side-console-input .structured-params-container {
|
|
805
|
+
background: none !important;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
[data-theme="dark"] .prompt-input-wrapper.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-toolbar-icon-fallback {
|
|
809
|
+
color: rgba(255, 255, 255, .72) !important;
|
|
810
|
+
}
|
|
811
|
+
|
|
620
812
|
[data-theme="dark"] .prompt-input .tip-button {
|
|
621
813
|
background-color: rgba(255, 255, 255, .08);
|
|
622
814
|
}
|
|
@@ -52,6 +52,34 @@
|
|
|
52
52
|
overflow: scroll;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
.result-wrapper .combined-result-layout {
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
align-self: stretch;
|
|
58
|
+
gap: 16px;
|
|
59
|
+
width: 100%;
|
|
60
|
+
min-width: 0;
|
|
61
|
+
max-width: 100%;
|
|
62
|
+
height: 100%;
|
|
63
|
+
display: flex;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.result-wrapper .combined-result-section {
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
flex: auto;
|
|
69
|
+
min-width: 0;
|
|
70
|
+
min-height: 0;
|
|
71
|
+
display: flex;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.result-wrapper .combined-result-player {
|
|
75
|
+
flex: auto;
|
|
76
|
+
width: 100%;
|
|
77
|
+
min-width: 0;
|
|
78
|
+
max-width: 100%;
|
|
79
|
+
min-height: 0;
|
|
80
|
+
overflow: hidden;
|
|
81
|
+
}
|
|
82
|
+
|
|
55
83
|
[data-theme="dark"] .result-wrapper .loading-container .loading-progress-text {
|
|
56
84
|
color: rgba(255, 255, 255, .45);
|
|
57
85
|
}
|
|
@@ -78,12 +78,7 @@ const PlaygroundResultView = ({ result, loading, serverValid, serviceMode, repla
|
|
|
78
78
|
children: null == result ? void 0 : result.error
|
|
79
79
|
});
|
|
80
80
|
resultDataToShow = result.reportHTML || replayScriptsInfo ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
81
|
-
|
|
82
|
-
display: 'flex',
|
|
83
|
-
flexDirection: 'column',
|
|
84
|
-
gap: '16px',
|
|
85
|
-
height: '100%'
|
|
86
|
-
},
|
|
81
|
+
className: "combined-result-layout",
|
|
87
82
|
children: [
|
|
88
83
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
89
84
|
style: {
|
|
@@ -103,10 +98,7 @@ const PlaygroundResultView = ({ result, loading, serverValid, serviceMode, repla
|
|
|
103
98
|
]
|
|
104
99
|
}),
|
|
105
100
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
106
|
-
|
|
107
|
-
flex: '1 1 auto',
|
|
108
|
-
minHeight: 0
|
|
109
|
-
},
|
|
101
|
+
className: "combined-result-section",
|
|
110
102
|
children: [
|
|
111
103
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
112
104
|
style: {
|
|
@@ -115,15 +107,18 @@ const PlaygroundResultView = ({ result, loading, serverValid, serviceMode, repla
|
|
|
115
107
|
},
|
|
116
108
|
children: "Report:"
|
|
117
109
|
}),
|
|
118
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
110
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
111
|
+
className: "combined-result-player",
|
|
112
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_player_index_js_namespaceObject.Player, {
|
|
113
|
+
replayScripts: null == replayScriptsInfo ? void 0 : replayScriptsInfo.scripts,
|
|
114
|
+
imageWidth: null == replayScriptsInfo ? void 0 : replayScriptsInfo.width,
|
|
115
|
+
imageHeight: null == replayScriptsInfo ? void 0 : replayScriptsInfo.height,
|
|
116
|
+
reportFileContent: result.reportHTML || null,
|
|
117
|
+
fitMode: fitMode,
|
|
118
|
+
autoZoom: autoZoom,
|
|
119
|
+
canDownloadReport: null != canDownloadReport ? canDownloadReport : 'In-Browser' !== serviceMode
|
|
120
|
+
}, replayCounter)
|
|
121
|
+
})
|
|
127
122
|
]
|
|
128
123
|
})
|
|
129
124
|
]
|
|
@@ -136,12 +131,7 @@ const PlaygroundResultView = ({ result, loading, serverValid, serviceMode, repla
|
|
|
136
131
|
});
|
|
137
132
|
const reportContent = (null == result ? void 0 : result.reportHTML) || null;
|
|
138
133
|
resultDataToShow = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
139
|
-
|
|
140
|
-
display: 'flex',
|
|
141
|
-
flexDirection: 'column',
|
|
142
|
-
gap: '16px',
|
|
143
|
-
height: '100%'
|
|
144
|
-
},
|
|
134
|
+
className: "combined-result-layout",
|
|
145
135
|
children: [
|
|
146
136
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
147
137
|
style: {
|
|
@@ -159,10 +149,7 @@ const PlaygroundResultView = ({ result, loading, serverValid, serviceMode, repla
|
|
|
159
149
|
]
|
|
160
150
|
}),
|
|
161
151
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
162
|
-
|
|
163
|
-
flex: '1 1 auto',
|
|
164
|
-
minHeight: 0
|
|
165
|
-
},
|
|
152
|
+
className: "combined-result-section",
|
|
166
153
|
children: [
|
|
167
154
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
168
155
|
style: {
|
|
@@ -171,15 +158,18 @@ const PlaygroundResultView = ({ result, loading, serverValid, serviceMode, repla
|
|
|
171
158
|
},
|
|
172
159
|
children: "Report:"
|
|
173
160
|
}),
|
|
174
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
161
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
162
|
+
className: "combined-result-player",
|
|
163
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_player_index_js_namespaceObject.Player, {
|
|
164
|
+
replayScripts: replayScriptsInfo.scripts,
|
|
165
|
+
imageWidth: replayScriptsInfo.width,
|
|
166
|
+
imageHeight: replayScriptsInfo.height,
|
|
167
|
+
reportFileContent: reportContent,
|
|
168
|
+
fitMode: fitMode,
|
|
169
|
+
autoZoom: autoZoom,
|
|
170
|
+
canDownloadReport: null != canDownloadReport ? canDownloadReport : 'In-Browser' !== serviceMode
|
|
171
|
+
}, replayCounter)
|
|
172
|
+
})
|
|
183
173
|
]
|
|
184
174
|
})
|
|
185
175
|
]
|
|
@@ -202,12 +192,7 @@ const PlaygroundResultView = ({ result, loading, serverValid, serviceMode, repla
|
|
|
202
192
|
children: JSON.stringify(null == result ? void 0 : result.result, null, 2)
|
|
203
193
|
});
|
|
204
194
|
resultDataToShow = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
205
|
-
|
|
206
|
-
display: 'flex',
|
|
207
|
-
flexDirection: 'column',
|
|
208
|
-
gap: '16px',
|
|
209
|
-
height: '100%'
|
|
210
|
-
},
|
|
195
|
+
className: "combined-result-layout",
|
|
211
196
|
children: [
|
|
212
197
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
213
198
|
style: {
|
|
@@ -225,10 +210,7 @@ const PlaygroundResultView = ({ result, loading, serverValid, serviceMode, repla
|
|
|
225
210
|
]
|
|
226
211
|
}),
|
|
227
212
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
228
|
-
|
|
229
|
-
flex: '1 1 auto',
|
|
230
|
-
minHeight: 0
|
|
231
|
-
},
|
|
213
|
+
className: "combined-result-section",
|
|
232
214
|
children: [
|
|
233
215
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
234
216
|
style: {
|
|
@@ -237,12 +219,15 @@ const PlaygroundResultView = ({ result, loading, serverValid, serviceMode, repla
|
|
|
237
219
|
},
|
|
238
220
|
children: "Report:"
|
|
239
221
|
}),
|
|
240
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
222
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
223
|
+
className: "combined-result-player",
|
|
224
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_player_index_js_namespaceObject.Player, {
|
|
225
|
+
reportFileContent: result.reportHTML,
|
|
226
|
+
fitMode: fitMode,
|
|
227
|
+
autoZoom: autoZoom,
|
|
228
|
+
canDownloadReport: null != canDownloadReport ? canDownloadReport : 'In-Browser' !== serviceMode
|
|
229
|
+
}, replayCounter)
|
|
230
|
+
})
|
|
246
231
|
]
|
|
247
232
|
})
|
|
248
233
|
]
|
|
@@ -249,6 +249,13 @@
|
|
|
249
249
|
background-color: rgba(0, 0, 0, 0);
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
+
.prompt-input-wrapper .no-input-method {
|
|
253
|
+
text-align: center;
|
|
254
|
+
color: var(--midscene-text-tertiary, #666);
|
|
255
|
+
padding: 20px;
|
|
256
|
+
font-size: 14px;
|
|
257
|
+
}
|
|
258
|
+
|
|
252
259
|
.prompt-input-wrapper .ant-form-item-with-help + .form-controller-wrapper {
|
|
253
260
|
bottom: 14px;
|
|
254
261
|
}
|
|
@@ -439,6 +446,155 @@
|
|
|
439
446
|
color: #2b83ff;
|
|
440
447
|
}
|
|
441
448
|
|
|
449
|
+
.prompt-input-wrapper-minimal {
|
|
450
|
+
width: 100%;
|
|
451
|
+
padding: 0;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input {
|
|
455
|
+
background: #fff;
|
|
456
|
+
border: 1px solid #e8e8e8;
|
|
457
|
+
border-radius: 24px;
|
|
458
|
+
margin-top: 0;
|
|
459
|
+
padding-bottom: 56px;
|
|
460
|
+
position: relative;
|
|
461
|
+
overflow: hidden;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input:focus-within {
|
|
465
|
+
box-shadow: 0 0 0 2px rgba(25, 121, 255, .12);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input:before {
|
|
469
|
+
display: none;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .main-side-console-input-textarea {
|
|
473
|
+
min-height: 56px;
|
|
474
|
+
padding: 16px 16px 8px;
|
|
475
|
+
line-height: 22px;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .structured-params-container {
|
|
479
|
+
border-radius: inherit;
|
|
480
|
+
background: none;
|
|
481
|
+
padding: 16px 16px 72px;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-toolbar-row {
|
|
485
|
+
justify-content: space-between;
|
|
486
|
+
align-items: center;
|
|
487
|
+
gap: 12px;
|
|
488
|
+
display: flex;
|
|
489
|
+
position: absolute;
|
|
490
|
+
bottom: 12px;
|
|
491
|
+
left: 12px;
|
|
492
|
+
right: 12px;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-toolbar-left {
|
|
496
|
+
align-items: center;
|
|
497
|
+
gap: 4px;
|
|
498
|
+
min-width: 0;
|
|
499
|
+
display: flex;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-action-trigger, .prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-icon-trigger {
|
|
503
|
+
cursor: pointer;
|
|
504
|
+
background: none;
|
|
505
|
+
border: none;
|
|
506
|
+
justify-content: center;
|
|
507
|
+
align-items: center;
|
|
508
|
+
padding: 0;
|
|
509
|
+
display: inline-flex;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-action-trigger {
|
|
513
|
+
color: #878787;
|
|
514
|
+
border-radius: 32px;
|
|
515
|
+
gap: 4px;
|
|
516
|
+
height: 32px;
|
|
517
|
+
padding: 4px 8px;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-action-trigger:hover {
|
|
521
|
+
background: rgba(0, 0, 0, .03);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-action-trigger:disabled {
|
|
525
|
+
cursor: not-allowed;
|
|
526
|
+
opacity: .5;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-action-icon {
|
|
530
|
+
object-fit: contain;
|
|
531
|
+
width: 16px;
|
|
532
|
+
height: 16px;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-action-label {
|
|
536
|
+
color: #878787;
|
|
537
|
+
white-space: nowrap;
|
|
538
|
+
font-size: 12px;
|
|
539
|
+
font-weight: 500;
|
|
540
|
+
line-height: 16px;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-action-chevron {
|
|
544
|
+
object-fit: contain;
|
|
545
|
+
opacity: .25;
|
|
546
|
+
width: 5.3px;
|
|
547
|
+
height: 9.3px;
|
|
548
|
+
margin-left: -2px;
|
|
549
|
+
transform: rotate(-90deg);
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-action-chevron-fallback {
|
|
553
|
+
opacity: .5;
|
|
554
|
+
font-size: 10px;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .history-selector-wrapper, .prompt-input-wrapper-minimal .minimal-main-side-console-input .settings-wrapper, .prompt-input-wrapper-minimal .minimal-main-side-console-input .selector-trigger {
|
|
558
|
+
justify-content: center;
|
|
559
|
+
align-items: center;
|
|
560
|
+
width: auto;
|
|
561
|
+
height: auto;
|
|
562
|
+
display: inline-flex;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-icon-trigger {
|
|
566
|
+
border-radius: 32px;
|
|
567
|
+
width: 32px;
|
|
568
|
+
height: 32px;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-icon-trigger:hover {
|
|
572
|
+
background: rgba(0, 0, 0, .03);
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-toolbar-icon {
|
|
576
|
+
object-fit: contain;
|
|
577
|
+
width: 16px;
|
|
578
|
+
height: 16px;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-toolbar-icon-history {
|
|
582
|
+
width: 18px;
|
|
583
|
+
height: 18px;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-toolbar-icon-fallback {
|
|
587
|
+
color: #878787;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.prompt-input-wrapper-minimal .minimal-main-side-console-input .form-controller-wrapper {
|
|
591
|
+
width: auto;
|
|
592
|
+
height: auto;
|
|
593
|
+
padding: 0;
|
|
594
|
+
line-height: normal;
|
|
595
|
+
position: static;
|
|
596
|
+
}
|
|
597
|
+
|
|
442
598
|
.more-apis-dropdown .ant-dropdown-menu {
|
|
443
599
|
scrollbar-width: thin;
|
|
444
600
|
max-height: 400px;
|
|
@@ -513,7 +669,7 @@
|
|
|
513
669
|
|
|
514
670
|
[data-theme="dark"] .prompt-input-wrapper .ant-form-item-control-input-content .ant-input, [data-theme="dark"] .prompt-input-wrapper .ant-form-item-control-input-content textarea.ant-input {
|
|
515
671
|
color: #f8fafd !important;
|
|
516
|
-
background:
|
|
672
|
+
background: none !important;
|
|
517
673
|
border-color: rgba(255, 255, 255, .12) !important;
|
|
518
674
|
}
|
|
519
675
|
|
|
@@ -553,6 +709,14 @@
|
|
|
553
709
|
border-color: #2b83ff !important;
|
|
554
710
|
}
|
|
555
711
|
|
|
712
|
+
[data-theme="dark"] .prompt-input-wrapper.prompt-input-wrapper-minimal .minimal-main-side-console-input .structured-params-container {
|
|
713
|
+
background: none !important;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
[data-theme="dark"] .prompt-input-wrapper.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-toolbar-icon-fallback {
|
|
717
|
+
color: rgba(255, 255, 255, .72) !important;
|
|
718
|
+
}
|
|
719
|
+
|
|
556
720
|
[data-theme="dark"] .prompt-input .tip-button {
|
|
557
721
|
background-color: rgba(255, 255, 255, .08);
|
|
558
722
|
}
|