@sanity/vision 6.22.0-next.53 → 6.22.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/lib/bundle.css CHANGED
@@ -399,599 +399,3 @@
399
399
  .VsSQ8q_resultViewWrapper .json-inspector .json-inspector__show-original:hover:after {
400
400
  content: " expand";
401
401
  }
402
- .cTWfhW_root {
403
- position: relative;
404
- }
405
-
406
- .cTWfhW_splitRoot {
407
- width: 100%;
408
- min-width: 0;
409
- height: 100%;
410
- min-height: 0;
411
- display: flex;
412
- }
413
-
414
- .cTWfhW_splitRootRow {
415
- flex-direction: row;
416
- }
417
-
418
- .cTWfhW_splitRootColumn {
419
- flex-direction: column;
420
- }
421
-
422
- .cTWfhW_splitPane {
423
- flex: 1;
424
- min-width: 0;
425
- min-height: 0;
426
- position: relative;
427
- }
428
-
429
- .cTWfhW_splitHandle {
430
- background: var(--card-border-color);
431
- z-index: 11;
432
- touch-action: none;
433
- outline: none;
434
- flex: 0 0 1px;
435
- position: relative;
436
- }
437
-
438
- .cTWfhW_splitHandle:after {
439
- content: "";
440
- position: absolute;
441
- inset: -5px;
442
- }
443
-
444
- .cTWfhW_splitHandle:hover:after, .cTWfhW_splitHandle[data-dragging="true"]:after {
445
- background: var(--card-shadow-ambient-color);
446
- }
447
-
448
- .cTWfhW_splitHandle:focus-visible:after {
449
- background: var(--card-shadow-ambient-color);
450
- outline: 2px solid var(--card-focus-ring-color);
451
- outline-offset: -2px;
452
- }
453
-
454
- .cTWfhW_splitHandleVertical {
455
- cursor: col-resize;
456
- }
457
-
458
- .cTWfhW_splitHandleVertical:after {
459
- top: 0;
460
- bottom: 0;
461
- }
462
-
463
- .cTWfhW_splitHandleHorizontal {
464
- cursor: row-resize;
465
- }
466
-
467
- .cTWfhW_splitHandleHorizontal:after {
468
- left: 0;
469
- right: 0;
470
- }
471
-
472
- .cTWfhW_splitHandleDisabled {
473
- cursor: default;
474
- }
475
-
476
- .cTWfhW_splitHandleDisabled:hover:after {
477
- background: none;
478
- }
479
-
480
- .cTWfhW_paneFill {
481
- width: 100%;
482
- min-width: 0;
483
- height: 100%;
484
- min-height: 0;
485
- position: relative;
486
- }
487
-
488
- .cTWfhW_splitPaneContainer {
489
- flex: 1;
490
- min-width: 0;
491
- min-height: 0;
492
- position: relative;
493
- }
494
-
495
- .cTWfhW_editorLabel {
496
- z-index: 10;
497
- pointer-events: none;
498
- -webkit-user-select: none;
499
- user-select: none;
500
- position: absolute;
501
- top: 1rem;
502
- left: 33px;
503
- right: 0;
504
- }
505
-
506
- .cTWfhW_resultLabel {
507
- left: 12px;
508
- }
509
-
510
- .cTWfhW_labelActions {
511
- pointer-events: auto;
512
- margin-top: -.5rem;
513
- margin-right: 12px;
514
- }
515
-
516
- .cTWfhW_resultJson {
517
- height: 100%;
518
- }
519
-
520
- .cTWfhW_jsonEditorBox {
521
- flex: 1;
522
- min-height: 0;
523
- overflow: hidden;
524
- }
525
-
526
- .cTWfhW_drawerScroller {
527
- flex: 0 auto;
528
- min-height: 0;
529
- overflow: auto;
530
- }
531
-
532
- .cTWfhW_panelTabs {
533
- scrollbar-width: none;
534
- min-width: 0;
535
- overflow-x: auto;
536
- }
537
-
538
- .cTWfhW_panelTabs [data-ui="TabList"] {
539
- white-space: nowrap;
540
- }
541
-
542
- .cTWfhW_querySection {
543
- flex-direction: column;
544
- flex: 1;
545
- min-height: 120px;
546
- display: flex;
547
- position: relative;
548
- }
549
-
550
- .cTWfhW_collapsibleSection {
551
- border-top: 1px solid var(--card-border-color);
552
- flex-direction: column;
553
- flex: 0 auto;
554
- min-height: 0;
555
- display: flex;
556
- position: relative;
557
- }
558
-
559
- .cTWfhW_paramsSection {
560
- max-height: 40%;
561
- }
562
-
563
- .cTWfhW_paramsSectionResized {
564
- max-height: none;
565
- }
566
-
567
- .cTWfhW_optionsSection {
568
- max-height: 45%;
569
- }
570
-
571
- .cTWfhW_sectionBody {
572
- flex: auto;
573
- min-height: 0;
574
- position: relative;
575
- overflow: auto;
576
- }
577
-
578
- .cTWfhW_sectionResizer {
579
- cursor: row-resize;
580
- z-index: 11;
581
- touch-action: none;
582
- height: 11px;
583
- position: absolute;
584
- top: -6px;
585
- left: 0;
586
- right: 0;
587
- }
588
-
589
- .cTWfhW_sectionResizer:hover, .cTWfhW_sectionResizer[data-dragging="true"] {
590
- background: var(--card-shadow-ambient-color);
591
- }
592
-
593
- .cTWfhW_sectionResizer:focus-visible {
594
- background: var(--card-shadow-ambient-color);
595
- outline: 2px solid var(--card-focus-ring-color);
596
- outline-offset: -2px;
597
- }
598
-
599
- .cTWfhW_optionsGrid {
600
- grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
601
- gap: 12px;
602
- display: grid;
603
- }
604
-
605
- .cTWfhW_hiddenPane.cTWfhW_hiddenPane {
606
- display: none;
607
- }
608
-
609
- .cTWfhW_editorContainer {
610
- flex-direction: column;
611
- height: 100%;
612
- min-height: 0;
613
- display: flex;
614
- position: relative;
615
- }
616
-
617
- .cTWfhW_scrollArea {
618
- min-height: 0;
619
- overflow: auto;
620
- }
621
-
622
- .cTWfhW_sidebarRail {
623
- flex-shrink: 0;
624
- transition: width .12s ease-out;
625
- }
626
-
627
- .cTWfhW_sidebarRailCollapsed {
628
- width: 49px;
629
- }
630
-
631
- .cTWfhW_sidebarRailExpanded {
632
- width: 224px;
633
- }
634
-
635
- .cTWfhW_sidebarRailOverlay {
636
- z-index: 21;
637
- background: var(--card-bg-color);
638
- box-shadow: 0 0 0 1px var(--card-border-color);
639
- position: absolute;
640
- top: 0;
641
- bottom: 0;
642
- left: 0;
643
- }
644
-
645
- .cTWfhW_sidebarItem {
646
- position: relative;
647
- }
648
-
649
- .cTWfhW_sidebarItemBadge {
650
- pointer-events: none;
651
- position: absolute;
652
- top: -2px;
653
- right: -2px;
654
- }
655
-
656
- .cTWfhW_sidebarItemBadgeExpanded {
657
- top: 50%;
658
- right: 8px;
659
- transform: translateY(-50%);
660
- }
661
-
662
- .cTWfhW_sidebarSlot {
663
- flex-shrink: 0;
664
- width: 49px;
665
- position: relative;
666
- }
667
-
668
- .cTWfhW_sidebarDrawer {
669
- background: var(--card-bg-color);
670
- flex-shrink: 0;
671
- width: 300px;
672
- min-height: 0;
673
- }
674
-
675
- .cTWfhW_sidebarDrawerWide {
676
- width: min(480px, 45vw);
677
- }
678
-
679
- .cTWfhW_sidebarDrawerOverlay {
680
- z-index: 22;
681
- width: auto;
682
- position: absolute;
683
- inset: 0;
684
- }
685
-
686
- .cTWfhW_tabBar {
687
- scrollbar-width: thin;
688
- background: var(--card-bg2-color);
689
- box-shadow: inset 0 -1px 0 var(--card-border-color);
690
- flex-shrink: 0;
691
- overflow: auto hidden;
692
- }
693
-
694
- .cTWfhW_tabBar [data-ui="Button"]:not(:hover) {
695
- background-color: #0000;
696
- }
697
-
698
- .cTWfhW_tabList {
699
- align-items: stretch;
700
- gap: 2px;
701
- display: flex;
702
- }
703
-
704
- .cTWfhW_tabItem {
705
- flex-shrink: 0;
706
- display: flex;
707
- position: relative;
708
- }
709
-
710
- .cTWfhW_tabItem[data-dragging="true"] {
711
- z-index: 1;
712
- }
713
-
714
- .cTWfhW_tab {
715
- border: 1px solid #0000;
716
- border-bottom: none;
717
- border-radius: 3px 3px 0 0;
718
- flex-shrink: 0;
719
- max-width: 240px;
720
- margin-top: 4px;
721
- transition: background-color .1s;
722
- position: relative;
723
- }
724
-
725
- .cTWfhW_tab:hover {
726
- background: var(--card-muted-bg-color);
727
- }
728
-
729
- .cTWfhW_tab[data-selected="true"] {
730
- background: var(--card-bg-color);
731
- border-color: var(--card-border-color);
732
- }
733
-
734
- .cTWfhW_tabItem[data-dragging="true"] .cTWfhW_tab {
735
- box-shadow: 0 2px 6px var(--card-shadow-umbra-color);
736
- }
737
-
738
- .cTWfhW_tabTitleButton {
739
- flex-shrink: 1;
740
- min-width: 0;
741
- overflow: hidden;
742
- }
743
-
744
- .cTWfhW_tabCloseButton {
745
- opacity: 0;
746
- flex-shrink: 0;
747
- transition: opacity .1s;
748
- }
749
-
750
- .cTWfhW_tab:hover .cTWfhW_tabCloseButton, .cTWfhW_tab:focus-within .cTWfhW_tabCloseButton, .cTWfhW_tab[data-selected="true"] .cTWfhW_tabCloseButton {
751
- opacity: 1;
752
- }
753
-
754
- .cTWfhW_tabTitleInput {
755
- min-width: 120px;
756
- }
757
-
758
- .cTWfhW_resultContainer {
759
- flex: 1;
760
- min-width: 0;
761
- min-height: 0;
762
- position: relative;
763
- overflow: auto;
764
- }
765
-
766
- .cTWfhW_codeBlock {
767
- max-height: 50vh;
768
- overflow: auto;
769
- }
770
-
771
- .cTWfhW_previewCode {
772
- white-space: nowrap;
773
- text-overflow: ellipsis;
774
- min-width: 0;
775
- max-width: 100%;
776
- display: block;
777
- overflow: hidden;
778
- }
779
-
780
- .cTWfhW_previewCode pre, .cTWfhW_previewCode code {
781
- white-space: inherit;
782
- display: inline;
783
- }
784
-
785
- .cTWfhW_previewCode pre:before, .cTWfhW_previewCode pre:after {
786
- content: none;
787
- }
788
-
789
- .cTWfhW_lintFindingButton {
790
- text-align: left;
791
- cursor: pointer;
792
- width: 100%;
793
- display: block;
794
- }
795
-
796
- .cTWfhW_lintFindingButton:hover {
797
- background: var(--card-muted-bg-color);
798
- }
799
-
800
- .cTWfhW_shrinkable, .cTWfhW_listItemButton {
801
- min-width: 0;
802
- }
803
-
804
- .cTWfhW_listItemButton [data-ui="Box"], .cTWfhW_listItemButton [data-ui="Flex"] {
805
- min-width: 0;
806
- max-width: 100%;
807
- }
808
-
809
- .cTWfhW_listItemButton > [data-ui="Box"] {
810
- width: 100%;
811
- }
812
- .uhT08W_graphViewport {
813
- cursor: grab;
814
- touch-action: none;
815
- -webkit-user-select: none;
816
- user-select: none;
817
- outline: none;
818
- height: 100%;
819
- position: relative;
820
- overflow: hidden;
821
- }
822
-
823
- .uhT08W_graphViewport[data-dragging="true"] {
824
- cursor: grabbing;
825
- }
826
-
827
- .uhT08W_graphViewport:focus-visible {
828
- box-shadow: inset 0 0 0 2px var(--card-focus-ring-color);
829
- }
830
-
831
- .uhT08W_graphCanvas {
832
- transform-origin: 0 0;
833
- position: absolute;
834
- top: 0;
835
- left: 0;
836
- }
837
-
838
- .uhT08W_graphEdges {
839
- pointer-events: none;
840
- position: absolute;
841
- top: 0;
842
- left: 0;
843
- overflow: visible;
844
- }
845
-
846
- .uhT08W_graphEdges path {
847
- fill: none;
848
- stroke: var(--card-muted-fg-color);
849
- stroke-opacity: .55;
850
- stroke-width: 1.5px;
851
- }
852
-
853
- .uhT08W_graphNode {
854
- box-sizing: border-box;
855
- background: var(--card-bg-color);
856
- border: 1px solid var(--card-border-color);
857
- box-shadow: 0 1px 2px var(--card-shadow-umbra-color);
858
- font-family: var(--vision-graph-code-family);
859
- font-size: var(--vision-graph-code-size);
860
- cursor: default;
861
- border-radius: 6px;
862
- position: absolute;
863
- overflow: hidden;
864
- }
865
-
866
- .uhT08W_graphNodeHeader {
867
- height: var(--vision-graph-header-height);
868
- box-sizing: border-box;
869
- padding-left: var(--vision-graph-padding-x);
870
- border-bottom: 1px solid var(--card-border-color);
871
- background: var(--card-muted-bg-color);
872
- align-items: center;
873
- gap: 2px;
874
- padding-right: 4px;
875
- display: flex;
876
- }
877
-
878
- .uhT08W_graphNodeTitle {
879
- text-overflow: ellipsis;
880
- white-space: nowrap;
881
- min-width: 0;
882
- color: var(--vision-graph-property);
883
- flex: auto;
884
- font-weight: 600;
885
- overflow: hidden;
886
- }
887
-
888
- .uhT08W_graphNodeSummary {
889
- color: var(--card-muted-fg-color);
890
- margin-left: .5ch;
891
- font-weight: 400;
892
- }
893
-
894
- .uhT08W_graphNodeButton {
895
- appearance: none;
896
- color: var(--card-muted-fg-color);
897
- cursor: pointer;
898
- font: inherit;
899
- background: none;
900
- border: 0;
901
- border-radius: 3px;
902
- flex-shrink: 0;
903
- align-items: center;
904
- gap: 2px;
905
- padding: 2px;
906
- font-size: 1.15em;
907
- line-height: 1;
908
- display: inline-flex;
909
- }
910
-
911
- .uhT08W_graphNodeButton:hover {
912
- color: var(--card-fg-color);
913
- background: var(--card-code-bg-color);
914
- }
915
-
916
- .uhT08W_graphNodeButton:focus-visible {
917
- outline: 1px solid var(--card-focus-ring-color);
918
- }
919
-
920
- .uhT08W_graphRow {
921
- height: var(--vision-graph-row-height);
922
- padding-left: var(--vision-graph-padding-x);
923
- padding-right: var(--vision-graph-padding-x);
924
- white-space: nowrap;
925
- align-items: center;
926
- display: flex;
927
- position: relative;
928
- overflow: hidden;
929
- }
930
-
931
- .uhT08W_graphRowKey {
932
- color: var(--vision-graph-property);
933
- flex-shrink: 0;
934
- }
935
-
936
- .uhT08W_graphRowValue {
937
- text-overflow: ellipsis;
938
- min-width: 0;
939
- margin-left: 1ch;
940
- overflow: hidden;
941
- }
942
-
943
- .uhT08W_graphRowValue[data-type="string"] {
944
- color: var(--vision-graph-string);
945
- }
946
-
947
- .uhT08W_graphRowValue[data-type="number"] {
948
- color: var(--vision-graph-number);
949
- }
950
-
951
- .uhT08W_graphRowValue[data-type="boolean"] {
952
- color: var(--vision-graph-boolean);
953
- }
954
-
955
- .uhT08W_graphRowValue[data-type="null"] {
956
- color: var(--vision-graph-constant);
957
- }
958
-
959
- .uhT08W_graphRowValue[data-type="child"], .uhT08W_graphRowValue[data-type="more"] {
960
- color: var(--card-muted-fg-color);
961
- }
962
-
963
- .uhT08W_graphRowPort {
964
- background: var(--card-muted-fg-color);
965
- border-radius: 50%;
966
- width: 6px;
967
- height: 6px;
968
- margin-top: -3px;
969
- position: absolute;
970
- top: 50%;
971
- right: -3px;
972
- }
973
-
974
- .uhT08W_graphControls {
975
- background: var(--card-bg-color);
976
- box-shadow: 0 0 0 1px var(--card-border-color);
977
- z-index: 1;
978
- border-radius: 4px;
979
- gap: 2px;
980
- padding: 2px;
981
- display: flex;
982
- position: absolute;
983
- bottom: 8px;
984
- right: 8px;
985
- }
986
-
987
- .uhT08W_graphNotice {
988
- background: var(--card-bg-color);
989
- max-width: calc(100% - 140px);
990
- box-shadow: 0 0 0 1px var(--card-border-color);
991
- z-index: 1;
992
- border-radius: 4px;
993
- padding: 4px 8px;
994
- position: absolute;
995
- bottom: 8px;
996
- left: 8px;
997
- }
package/lib/index.d.ts CHANGED
@@ -921,6 +921,9 @@ interface VisionBetaConfig {
921
921
  * When `true`, the classic tool shows a dismissible toast inviting users to try the redesign,
922
922
  * and users who opt in get the redesigned tool (remembered per project in the browser). They
923
923
  * can switch back from the redesigned tool's sidebar or settings. Defaults to `false`.
924
+ *
925
+ * Currently ignored: the redesign is switched off for everyone and the classic tool is
926
+ * always shown.
924
927
  */
925
928
  enabled?: boolean;
926
929
  };
package/lib/index.js CHANGED
@@ -12,7 +12,7 @@ const visionTool = definePlugin((options) => {
12
12
  name: name || "vision",
13
13
  title: title || "Vision",
14
14
  icon: icon || EyeOpenIcon,
15
- component: lazy(() => import("./SanityVision-Cr8Er2s4.js").then((n) => n.t)),
15
+ component: lazy(() => import("./SanityVision-CD-bx0vw.js")),
16
16
  options: config,
17
17
  router: route.create("/*"),
18
18
  __internalApplicationType: "sanity/vision"
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/visionTool.ts"],"sourcesContent":["import './styles.css'\n\nimport {EyeOpenIcon} from '@sanity/icons/EyeOpen'\nimport {lazy} from 'react'\nimport {definePlugin} from 'sanity'\nimport {route} from 'sanity/router'\n\nimport {visionUsEnglishLocaleBundle} from './i18n'\nimport {type VisionToolConfig} from './types'\n\nexport const visionTool = definePlugin<VisionToolConfig | void>((options) => {\n const {name, title, icon, ...config} = options || {}\n return {\n name: '@sanity/vision',\n tools: [\n {\n name: name || 'vision',\n title: title || 'Vision',\n icon: icon || EyeOpenIcon,\n component: lazy(() => import('./SanityVision')),\n options: config,\n router: route.create('/*'),\n __internalApplicationType: 'sanity/vision',\n },\n ],\n i18n: {\n bundles: [visionUsEnglishLocaleBundle],\n },\n }\n})\n"],"mappings":";;;;;;AAUA,MAAA,aAAA,cAAA,YAAA;CACE,IAAA,EAAA,MAAA,OAAA,MAAA,GAAA,WAAA,WAAA,CAAA;CACA,OAAA;EACE,MAAA;EACA,OAAA,CAAA;GAEI,MAAA,QAAA;GACA,OAAA,SAAA;GACA,MAAA,QAAA;GACA,WAAA,WAAA,OAAA,6BAAA,CAAA,MAAA,MAAA,EAAA,CAAA,CAAA;GACA,SAAA;GACA,QAAA,MAAA,OAAA,IAAA;GACA,2BAAA;EACF,CAAA;EAEF,MAAA,EAAA,SAAA,CAAA,2BAAA,EAAA;CAGF;AACF,CAAA"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/visionTool.ts"],"sourcesContent":["import './styles.css'\n\nimport {EyeOpenIcon} from '@sanity/icons/EyeOpen'\nimport {lazy} from 'react'\nimport {definePlugin} from 'sanity'\nimport {route} from 'sanity/router'\n\nimport {visionUsEnglishLocaleBundle} from './i18n'\nimport {type VisionToolConfig} from './types'\n\nexport const visionTool = definePlugin<VisionToolConfig | void>((options) => {\n const {name, title, icon, ...config} = options || {}\n return {\n name: '@sanity/vision',\n tools: [\n {\n name: name || 'vision',\n title: title || 'Vision',\n icon: icon || EyeOpenIcon,\n component: lazy(() => import('./SanityVision')),\n options: config,\n router: route.create('/*'),\n __internalApplicationType: 'sanity/vision',\n },\n ],\n i18n: {\n bundles: [visionUsEnglishLocaleBundle],\n },\n }\n})\n"],"mappings":";;;;;;AAUA,MAAA,aAAA,cAAA,YAAA;CACE,IAAA,EAAA,MAAA,OAAA,MAAA,GAAA,WAAA,WAAA,CAAA;CACA,OAAA;EACE,MAAA;EACA,OAAA,CAAA;GAEI,MAAA,QAAA;GACA,OAAA,SAAA;GACA,MAAA,QAAA;GACA,WAAA,WAAA,OAAA,6BAAA;GACA,SAAA;GACA,QAAA,MAAA,OAAA,IAAA;GACA,2BAAA;EACF,CAAA;EAEF,MAAA,EAAA,SAAA,CAAA,2BAAA,EAAA;CAGF;AACF,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/vision",
3
- "version": "6.22.0-next.53",
3
+ "version": "6.22.0",
4
4
  "description": "Sanity plugin for running/debugging GROQ-queries against Sanity datasets",
5
5
  "keywords": [
6
6
  "admin",
@@ -51,7 +51,7 @@
51
51
  "@codemirror/state": "^6.7.6",
52
52
  "@codemirror/view": "^6.43.15",
53
53
  "@lezer/highlight": "^1.2.3",
54
- "@pierre/diffs": "^1.6.1",
54
+ "@pierre/diffs": "1.6.2",
55
55
  "@rexxars/react-json-inspector": "^9.0.1",
56
56
  "@rexxars/react-split-pane": "^1.0.0",
57
57
  "@sanity-labs/groq-wasm": "^1.1.1",
@@ -59,7 +59,7 @@
59
59
  "@sanity/color": "^3.0.9",
60
60
  "@sanity/icons": "^5.2.3",
61
61
  "@sanity/lezer-groq": "^1.0.4",
62
- "@sanity/schema": "6.22.0-next.53+0e387ce57b",
62
+ "@sanity/schema": "6.22.0",
63
63
  "@sanity/ui": "^4.4.10",
64
64
  "@sanity/uuid": "^3.0.3",
65
65
  "@uiw/react-codemirror": "^4.25.12",
@@ -97,7 +97,7 @@
97
97
  "oxc-transform-react": "^0.155.0",
98
98
  "react": "^19.3.1",
99
99
  "react-dom": "^19.3.1",
100
- "sanity": "6.22.0-next.53+0e387ce57b",
100
+ "sanity": "6.22.0",
101
101
  "styled-components": "^6.6.0",
102
102
  "tsdown": "^0.23.2",
103
103
  "typescript": "^7.0.2",
@@ -106,7 +106,7 @@
106
106
  },
107
107
  "peerDependencies": {
108
108
  "react": "^19.2.2",
109
- "sanity": "^6.22.0-next.53+0e387ce57b"
109
+ "sanity": "^6.22.0"
110
110
  },
111
111
  "browserslist": [
112
112
  "node >=22.12",