@sanity/vision 6.23.0-next.38 → 6.23.0-next.50

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/lib/bundle.css CHANGED
@@ -223,16 +223,17 @@
223
223
  .A8N59q_queryList {
224
224
  min-height: 0;
225
225
  }
226
- .BsYI2a_perspectivePopoverContent {
226
+ ._yLaVW_perspectivePopoverContent {
227
227
  max-width: 240px;
228
228
  }
229
229
 
230
- .BsYI2a_perspectivePopoverLink {
230
+ ._yLaVW_perspectivePopoverLink {
231
231
  cursor: pointer;
232
+ color: var(--card-link-color);
232
233
  margin-right: auto;
233
234
  }
234
235
 
235
- .BsYI2a_dot {
236
+ ._yLaVW_dot {
236
237
  width: 4px;
237
238
  height: 4px;
238
239
  box-shadow: 0 0 0 1px var(--card-bg-color);
@@ -399,3 +400,599 @@
399
400
  .VsSQ8q_resultViewWrapper .json-inspector .json-inspector__show-original:hover:after {
400
401
  content: " expand";
401
402
  }
403
+ .cTWfhW_root {
404
+ position: relative;
405
+ }
406
+
407
+ .cTWfhW_splitRoot {
408
+ width: 100%;
409
+ min-width: 0;
410
+ height: 100%;
411
+ min-height: 0;
412
+ display: flex;
413
+ }
414
+
415
+ .cTWfhW_splitRootRow {
416
+ flex-direction: row;
417
+ }
418
+
419
+ .cTWfhW_splitRootColumn {
420
+ flex-direction: column;
421
+ }
422
+
423
+ .cTWfhW_splitPane {
424
+ flex: 1;
425
+ min-width: 0;
426
+ min-height: 0;
427
+ position: relative;
428
+ }
429
+
430
+ .cTWfhW_splitHandle {
431
+ background: var(--card-border-color);
432
+ z-index: 11;
433
+ touch-action: none;
434
+ outline: none;
435
+ flex: 0 0 1px;
436
+ position: relative;
437
+ }
438
+
439
+ .cTWfhW_splitHandle:after {
440
+ content: "";
441
+ position: absolute;
442
+ inset: -5px;
443
+ }
444
+
445
+ .cTWfhW_splitHandle:hover:after, .cTWfhW_splitHandle[data-dragging="true"]:after {
446
+ background: var(--card-shadow-ambient-color);
447
+ }
448
+
449
+ .cTWfhW_splitHandle:focus-visible:after {
450
+ background: var(--card-shadow-ambient-color);
451
+ outline: 2px solid var(--card-focus-ring-color);
452
+ outline-offset: -2px;
453
+ }
454
+
455
+ .cTWfhW_splitHandleVertical {
456
+ cursor: col-resize;
457
+ }
458
+
459
+ .cTWfhW_splitHandleVertical:after {
460
+ top: 0;
461
+ bottom: 0;
462
+ }
463
+
464
+ .cTWfhW_splitHandleHorizontal {
465
+ cursor: row-resize;
466
+ }
467
+
468
+ .cTWfhW_splitHandleHorizontal:after {
469
+ left: 0;
470
+ right: 0;
471
+ }
472
+
473
+ .cTWfhW_splitHandleDisabled {
474
+ cursor: default;
475
+ }
476
+
477
+ .cTWfhW_splitHandleDisabled:hover:after {
478
+ background: none;
479
+ }
480
+
481
+ .cTWfhW_paneFill {
482
+ width: 100%;
483
+ min-width: 0;
484
+ height: 100%;
485
+ min-height: 0;
486
+ position: relative;
487
+ }
488
+
489
+ .cTWfhW_splitPaneContainer {
490
+ flex: 1;
491
+ min-width: 0;
492
+ min-height: 0;
493
+ position: relative;
494
+ }
495
+
496
+ .cTWfhW_editorLabel {
497
+ z-index: 10;
498
+ pointer-events: none;
499
+ -webkit-user-select: none;
500
+ user-select: none;
501
+ position: absolute;
502
+ top: 1rem;
503
+ left: 33px;
504
+ right: 0;
505
+ }
506
+
507
+ .cTWfhW_resultLabel {
508
+ left: 12px;
509
+ }
510
+
511
+ .cTWfhW_labelActions {
512
+ pointer-events: auto;
513
+ margin-top: -.5rem;
514
+ margin-right: 12px;
515
+ }
516
+
517
+ .cTWfhW_resultJson {
518
+ height: 100%;
519
+ }
520
+
521
+ .cTWfhW_jsonEditorBox {
522
+ flex: 1;
523
+ min-height: 0;
524
+ overflow: hidden;
525
+ }
526
+
527
+ .cTWfhW_drawerScroller {
528
+ flex: 0 auto;
529
+ min-height: 0;
530
+ overflow: auto;
531
+ }
532
+
533
+ .cTWfhW_panelTabs {
534
+ scrollbar-width: none;
535
+ min-width: 0;
536
+ overflow-x: auto;
537
+ }
538
+
539
+ .cTWfhW_panelTabs [data-ui="TabList"] {
540
+ white-space: nowrap;
541
+ }
542
+
543
+ .cTWfhW_querySection {
544
+ flex-direction: column;
545
+ flex: 1;
546
+ min-height: 120px;
547
+ display: flex;
548
+ position: relative;
549
+ }
550
+
551
+ .cTWfhW_collapsibleSection {
552
+ border-top: 1px solid var(--card-border-color);
553
+ flex-direction: column;
554
+ flex: 0 auto;
555
+ min-height: 0;
556
+ display: flex;
557
+ position: relative;
558
+ }
559
+
560
+ .cTWfhW_paramsSection {
561
+ max-height: 40%;
562
+ }
563
+
564
+ .cTWfhW_paramsSectionResized {
565
+ max-height: none;
566
+ }
567
+
568
+ .cTWfhW_optionsSection {
569
+ max-height: 45%;
570
+ }
571
+
572
+ .cTWfhW_sectionBody {
573
+ flex: auto;
574
+ min-height: 0;
575
+ position: relative;
576
+ overflow: auto;
577
+ }
578
+
579
+ .cTWfhW_sectionResizer {
580
+ cursor: row-resize;
581
+ z-index: 11;
582
+ touch-action: none;
583
+ height: 11px;
584
+ position: absolute;
585
+ top: -6px;
586
+ left: 0;
587
+ right: 0;
588
+ }
589
+
590
+ .cTWfhW_sectionResizer:hover, .cTWfhW_sectionResizer[data-dragging="true"] {
591
+ background: var(--card-shadow-ambient-color);
592
+ }
593
+
594
+ .cTWfhW_sectionResizer:focus-visible {
595
+ background: var(--card-shadow-ambient-color);
596
+ outline: 2px solid var(--card-focus-ring-color);
597
+ outline-offset: -2px;
598
+ }
599
+
600
+ .cTWfhW_optionsGrid {
601
+ grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
602
+ gap: 12px;
603
+ display: grid;
604
+ }
605
+
606
+ .cTWfhW_hiddenPane.cTWfhW_hiddenPane {
607
+ display: none;
608
+ }
609
+
610
+ .cTWfhW_editorContainer {
611
+ flex-direction: column;
612
+ height: 100%;
613
+ min-height: 0;
614
+ display: flex;
615
+ position: relative;
616
+ }
617
+
618
+ .cTWfhW_scrollArea {
619
+ min-height: 0;
620
+ overflow: auto;
621
+ }
622
+
623
+ .cTWfhW_sidebarRail {
624
+ flex-shrink: 0;
625
+ transition: width .12s ease-out;
626
+ }
627
+
628
+ .cTWfhW_sidebarRailCollapsed {
629
+ width: 49px;
630
+ }
631
+
632
+ .cTWfhW_sidebarRailExpanded {
633
+ width: 224px;
634
+ }
635
+
636
+ .cTWfhW_sidebarRailOverlay {
637
+ z-index: 21;
638
+ background: var(--card-bg-color);
639
+ box-shadow: 0 0 0 1px var(--card-border-color);
640
+ position: absolute;
641
+ top: 0;
642
+ bottom: 0;
643
+ left: 0;
644
+ }
645
+
646
+ .cTWfhW_sidebarItem {
647
+ position: relative;
648
+ }
649
+
650
+ .cTWfhW_sidebarItemBadge {
651
+ pointer-events: none;
652
+ position: absolute;
653
+ top: -2px;
654
+ right: -2px;
655
+ }
656
+
657
+ .cTWfhW_sidebarItemBadgeExpanded {
658
+ top: 50%;
659
+ right: 8px;
660
+ transform: translateY(-50%);
661
+ }
662
+
663
+ .cTWfhW_sidebarSlot {
664
+ flex-shrink: 0;
665
+ width: 49px;
666
+ position: relative;
667
+ }
668
+
669
+ .cTWfhW_sidebarDrawer {
670
+ background: var(--card-bg-color);
671
+ flex-shrink: 0;
672
+ width: 300px;
673
+ min-height: 0;
674
+ }
675
+
676
+ .cTWfhW_sidebarDrawerWide {
677
+ width: min(480px, 45vw);
678
+ }
679
+
680
+ .cTWfhW_sidebarDrawerOverlay {
681
+ z-index: 22;
682
+ width: auto;
683
+ position: absolute;
684
+ inset: 0;
685
+ }
686
+
687
+ .cTWfhW_tabBar {
688
+ scrollbar-width: thin;
689
+ background: var(--card-bg2-color);
690
+ box-shadow: inset 0 -1px 0 var(--card-border-color);
691
+ flex-shrink: 0;
692
+ overflow: auto hidden;
693
+ }
694
+
695
+ .cTWfhW_tabBar [data-ui="Button"]:not(:hover) {
696
+ background-color: #0000;
697
+ }
698
+
699
+ .cTWfhW_tabList {
700
+ align-items: stretch;
701
+ gap: 2px;
702
+ display: flex;
703
+ }
704
+
705
+ .cTWfhW_tabItem {
706
+ flex-shrink: 0;
707
+ display: flex;
708
+ position: relative;
709
+ }
710
+
711
+ .cTWfhW_tabItem[data-dragging="true"] {
712
+ z-index: 1;
713
+ }
714
+
715
+ .cTWfhW_tab {
716
+ border: 1px solid #0000;
717
+ border-bottom: none;
718
+ border-radius: 3px 3px 0 0;
719
+ flex-shrink: 0;
720
+ max-width: 240px;
721
+ margin-top: 4px;
722
+ transition: background-color .1s;
723
+ position: relative;
724
+ }
725
+
726
+ .cTWfhW_tab:hover {
727
+ background: var(--card-muted-bg-color);
728
+ }
729
+
730
+ .cTWfhW_tab[data-selected="true"] {
731
+ background: var(--card-bg-color);
732
+ border-color: var(--card-border-color);
733
+ }
734
+
735
+ .cTWfhW_tabItem[data-dragging="true"] .cTWfhW_tab {
736
+ box-shadow: 0 2px 6px var(--card-shadow-umbra-color);
737
+ }
738
+
739
+ .cTWfhW_tabTitleButton {
740
+ flex-shrink: 1;
741
+ min-width: 0;
742
+ overflow: hidden;
743
+ }
744
+
745
+ .cTWfhW_tabCloseButton {
746
+ opacity: 0;
747
+ flex-shrink: 0;
748
+ transition: opacity .1s;
749
+ }
750
+
751
+ .cTWfhW_tab:hover .cTWfhW_tabCloseButton, .cTWfhW_tab:focus-within .cTWfhW_tabCloseButton, .cTWfhW_tab[data-selected="true"] .cTWfhW_tabCloseButton {
752
+ opacity: 1;
753
+ }
754
+
755
+ .cTWfhW_tabTitleInput {
756
+ min-width: 120px;
757
+ }
758
+
759
+ .cTWfhW_resultContainer {
760
+ flex: 1;
761
+ min-width: 0;
762
+ min-height: 0;
763
+ position: relative;
764
+ overflow: auto;
765
+ }
766
+
767
+ .cTWfhW_codeBlock {
768
+ max-height: 50vh;
769
+ overflow: auto;
770
+ }
771
+
772
+ .cTWfhW_previewCode {
773
+ white-space: nowrap;
774
+ text-overflow: ellipsis;
775
+ min-width: 0;
776
+ max-width: 100%;
777
+ display: block;
778
+ overflow: hidden;
779
+ }
780
+
781
+ .cTWfhW_previewCode pre, .cTWfhW_previewCode code {
782
+ white-space: inherit;
783
+ display: inline;
784
+ }
785
+
786
+ .cTWfhW_previewCode pre:before, .cTWfhW_previewCode pre:after {
787
+ content: none;
788
+ }
789
+
790
+ .cTWfhW_lintFindingButton {
791
+ text-align: left;
792
+ cursor: pointer;
793
+ width: 100%;
794
+ display: block;
795
+ }
796
+
797
+ .cTWfhW_lintFindingButton:hover {
798
+ background: var(--card-muted-bg-color);
799
+ }
800
+
801
+ .cTWfhW_shrinkable, .cTWfhW_listItemButton {
802
+ min-width: 0;
803
+ }
804
+
805
+ .cTWfhW_listItemButton [data-ui="Box"], .cTWfhW_listItemButton [data-ui="Flex"] {
806
+ min-width: 0;
807
+ max-width: 100%;
808
+ }
809
+
810
+ .cTWfhW_listItemButton > [data-ui="Box"] {
811
+ width: 100%;
812
+ }
813
+ .uhT08W_graphViewport {
814
+ cursor: grab;
815
+ touch-action: none;
816
+ -webkit-user-select: none;
817
+ user-select: none;
818
+ outline: none;
819
+ height: 100%;
820
+ position: relative;
821
+ overflow: hidden;
822
+ }
823
+
824
+ .uhT08W_graphViewport[data-dragging="true"] {
825
+ cursor: grabbing;
826
+ }
827
+
828
+ .uhT08W_graphViewport:focus-visible {
829
+ box-shadow: inset 0 0 0 2px var(--card-focus-ring-color);
830
+ }
831
+
832
+ .uhT08W_graphCanvas {
833
+ transform-origin: 0 0;
834
+ position: absolute;
835
+ top: 0;
836
+ left: 0;
837
+ }
838
+
839
+ .uhT08W_graphEdges {
840
+ pointer-events: none;
841
+ position: absolute;
842
+ top: 0;
843
+ left: 0;
844
+ overflow: visible;
845
+ }
846
+
847
+ .uhT08W_graphEdges path {
848
+ fill: none;
849
+ stroke: var(--card-muted-fg-color);
850
+ stroke-opacity: .55;
851
+ stroke-width: 1.5px;
852
+ }
853
+
854
+ .uhT08W_graphNode {
855
+ box-sizing: border-box;
856
+ background: var(--card-bg-color);
857
+ border: 1px solid var(--card-border-color);
858
+ box-shadow: 0 1px 2px var(--card-shadow-umbra-color);
859
+ font-family: var(--vision-graph-code-family);
860
+ font-size: var(--vision-graph-code-size);
861
+ cursor: default;
862
+ border-radius: 6px;
863
+ position: absolute;
864
+ overflow: hidden;
865
+ }
866
+
867
+ .uhT08W_graphNodeHeader {
868
+ height: var(--vision-graph-header-height);
869
+ box-sizing: border-box;
870
+ padding-left: var(--vision-graph-padding-x);
871
+ border-bottom: 1px solid var(--card-border-color);
872
+ background: var(--card-muted-bg-color);
873
+ align-items: center;
874
+ gap: 2px;
875
+ padding-right: 4px;
876
+ display: flex;
877
+ }
878
+
879
+ .uhT08W_graphNodeTitle {
880
+ text-overflow: ellipsis;
881
+ white-space: nowrap;
882
+ min-width: 0;
883
+ color: var(--vision-graph-property);
884
+ flex: auto;
885
+ font-weight: 600;
886
+ overflow: hidden;
887
+ }
888
+
889
+ .uhT08W_graphNodeSummary {
890
+ color: var(--card-muted-fg-color);
891
+ margin-left: .5ch;
892
+ font-weight: 400;
893
+ }
894
+
895
+ .uhT08W_graphNodeButton {
896
+ appearance: none;
897
+ color: var(--card-muted-fg-color);
898
+ cursor: pointer;
899
+ font: inherit;
900
+ background: none;
901
+ border: 0;
902
+ border-radius: 3px;
903
+ flex-shrink: 0;
904
+ align-items: center;
905
+ gap: 2px;
906
+ padding: 2px;
907
+ font-size: 1.15em;
908
+ line-height: 1;
909
+ display: inline-flex;
910
+ }
911
+
912
+ .uhT08W_graphNodeButton:hover {
913
+ color: var(--card-fg-color);
914
+ background: var(--card-code-bg-color);
915
+ }
916
+
917
+ .uhT08W_graphNodeButton:focus-visible {
918
+ outline: 1px solid var(--card-focus-ring-color);
919
+ }
920
+
921
+ .uhT08W_graphRow {
922
+ height: var(--vision-graph-row-height);
923
+ padding-left: var(--vision-graph-padding-x);
924
+ padding-right: var(--vision-graph-padding-x);
925
+ white-space: nowrap;
926
+ align-items: center;
927
+ display: flex;
928
+ position: relative;
929
+ overflow: hidden;
930
+ }
931
+
932
+ .uhT08W_graphRowKey {
933
+ color: var(--vision-graph-property);
934
+ flex-shrink: 0;
935
+ }
936
+
937
+ .uhT08W_graphRowValue {
938
+ text-overflow: ellipsis;
939
+ min-width: 0;
940
+ margin-left: 1ch;
941
+ overflow: hidden;
942
+ }
943
+
944
+ .uhT08W_graphRowValue[data-type="string"] {
945
+ color: var(--vision-graph-string);
946
+ }
947
+
948
+ .uhT08W_graphRowValue[data-type="number"] {
949
+ color: var(--vision-graph-number);
950
+ }
951
+
952
+ .uhT08W_graphRowValue[data-type="boolean"] {
953
+ color: var(--vision-graph-boolean);
954
+ }
955
+
956
+ .uhT08W_graphRowValue[data-type="null"] {
957
+ color: var(--vision-graph-constant);
958
+ }
959
+
960
+ .uhT08W_graphRowValue[data-type="child"], .uhT08W_graphRowValue[data-type="more"] {
961
+ color: var(--card-muted-fg-color);
962
+ }
963
+
964
+ .uhT08W_graphRowPort {
965
+ background: var(--card-muted-fg-color);
966
+ border-radius: 50%;
967
+ width: 6px;
968
+ height: 6px;
969
+ margin-top: -3px;
970
+ position: absolute;
971
+ top: 50%;
972
+ right: -3px;
973
+ }
974
+
975
+ .uhT08W_graphControls {
976
+ background: var(--card-bg-color);
977
+ box-shadow: 0 0 0 1px var(--card-border-color);
978
+ z-index: 1;
979
+ border-radius: 4px;
980
+ gap: 2px;
981
+ padding: 2px;
982
+ display: flex;
983
+ position: absolute;
984
+ bottom: 8px;
985
+ right: 8px;
986
+ }
987
+
988
+ .uhT08W_graphNotice {
989
+ background: var(--card-bg-color);
990
+ max-width: calc(100% - 140px);
991
+ box-shadow: 0 0 0 1px var(--card-border-color);
992
+ z-index: 1;
993
+ border-radius: 4px;
994
+ padding: 4px 8px;
995
+ position: absolute;
996
+ bottom: 8px;
997
+ left: 8px;
998
+ }
@@ -7,8 +7,8 @@ import { defineLocaleResourceBundle } from "sanity";
7
7
  const visionLocaleNamespace = "vision", visionUsEnglishLocaleBundle = defineLocaleResourceBundle({
8
8
  locale: "en-US",
9
9
  namespace: visionLocaleNamespace,
10
- resources: () => import("./resources-VRZHPMVB.js")
10
+ resources: () => import("./resources-CpTD0UAN.js")
11
11
  });
12
12
  export { visionUsEnglishLocaleBundle as n, visionLocaleNamespace as t };
13
13
 
14
- //# sourceMappingURL=i18n-DFRqoJ_F.js.map
14
+ //# sourceMappingURL=i18n-CaGatdZX.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"i18n-DFRqoJ_F.js","names":[],"sources":["../src/i18n/index.ts"],"sourcesContent":["import {defineLocaleResourceBundle} from 'sanity'\n\n/**\n * The locale namespace for the vision tool\n *\n * @internal\n */\nexport const visionLocaleNamespace = 'vision' as const\n\n/**\n * The default locale bundle for the vision tool, which is US English.\n *\n * @internal\n */\nexport const visionUsEnglishLocaleBundle = defineLocaleResourceBundle({\n locale: 'en-US',\n namespace: visionLocaleNamespace,\n resources: () => import('./resources'),\n})\n"],"mappings":";;;;;;AAOA,MAAa,wBAAwB,UAOxB,8BAA8B,2BAA2B;CACpE,QAAQ;CACR,WAAW;CACX,iBAAiB,OAAO;AAC1B,CAAC"}
1
+ {"version":3,"file":"i18n-CaGatdZX.js","names":[],"sources":["../src/i18n/index.ts"],"sourcesContent":["import {defineLocaleResourceBundle} from 'sanity'\n\n/**\n * The locale namespace for the vision tool\n *\n * @internal\n */\nexport const visionLocaleNamespace = 'vision' as const\n\n/**\n * The default locale bundle for the vision tool, which is US English.\n *\n * @internal\n */\nexport const visionUsEnglishLocaleBundle = defineLocaleResourceBundle({\n locale: 'en-US',\n namespace: visionLocaleNamespace,\n resources: () => import('./resources'),\n})\n"],"mappings":";;;;;;AAOA,MAAa,wBAAwB,UAOxB,8BAA8B,2BAA2B;CACpE,QAAQ;CACR,WAAW;CACX,iBAAiB,OAAO;AAC1B,CAAC"}