@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.
Files changed (35) hide show
  1. package/dist/es/component/config-selector/index.mjs +2 -2
  2. package/dist/es/component/history-selector/index.css +83 -16
  3. package/dist/es/component/history-selector/index.mjs +2 -2
  4. package/dist/es/component/playground/index.css +193 -1
  5. package/dist/es/component/playground-result/index.css +28 -0
  6. package/dist/es/component/playground-result/index.mjs +39 -54
  7. package/dist/es/component/prompt-input/index.css +165 -1
  8. package/dist/es/component/prompt-input/index.mjs +305 -130
  9. package/dist/es/component/universal-playground/index.css +47 -15
  10. package/dist/es/component/universal-playground/index.mjs +162 -102
  11. package/dist/es/utils/action-label.mjs +14 -0
  12. package/dist/es/utils/playground-utils.mjs +1 -9
  13. package/dist/es/utils/prompt-input-utils.mjs +45 -0
  14. package/dist/lib/component/config-selector/index.js +2 -2
  15. package/dist/lib/component/history-selector/index.css +83 -16
  16. package/dist/lib/component/history-selector/index.js +2 -2
  17. package/dist/lib/component/playground/index.css +193 -1
  18. package/dist/lib/component/playground-result/index.css +28 -0
  19. package/dist/lib/component/playground-result/index.js +39 -54
  20. package/dist/lib/component/prompt-input/index.css +165 -1
  21. package/dist/lib/component/prompt-input/index.js +307 -130
  22. package/dist/lib/component/universal-playground/index.css +47 -15
  23. package/dist/lib/component/universal-playground/index.js +161 -101
  24. package/dist/lib/utils/action-label.js +51 -0
  25. package/dist/lib/utils/playground-utils.js +2 -10
  26. package/dist/lib/utils/prompt-input-utils.js +82 -0
  27. package/dist/types/component/config-selector/index.d.ts +2 -0
  28. package/dist/types/component/history-selector/index.d.ts +2 -0
  29. package/dist/types/component/prompt-input/index.d.ts +2 -1
  30. package/dist/types/index.d.ts +1 -1
  31. package/dist/types/types.d.ts +50 -0
  32. package/dist/types/utils/action-label.d.ts +11 -0
  33. package/dist/types/utils/playground-utils.d.ts +6 -1
  34. package/dist/types/utils/prompt-input-utils.d.ts +24 -0
  35. package/package.json +5 -5
@@ -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: rgba(255, 255, 255, .04) !important;
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
  }