@sanity/vision 6.17.0-next.108 → 6.17.0-next.126

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.
@@ -3,8 +3,8 @@ import { Component, Fragment, Suspense, use, useEffect, useImperativeHandle, use
3
3
  import { ContextMenuButton, RELEASES_STUDIO_CLIENT_OPTIONS, Translate, UserAvatar, VARIANTS_STUDIO_CLIENT_OPTIONS, getDefaultVariant, getReleaseIdFromReleaseDocumentId, getVariantTitle, isCardinalityOneRelease, sortReleases, useActiveReleases, useClient, useCurrentUser, useDataset, useDateTimeFormat, useKeyValueStore, usePerspective, useScheduledDraftsEnabled, useTranslation, useWorkspace } from "sanity";
4
4
  import { IntentLink } from "sanity/router";
5
5
  import { c } from "react/compiler-runtime";
6
- import { Box, Container, Flex, Grid } from "ui5";
7
- import { Badge, Button, Card, Dialog, Heading, Hotkeys, Inline, Label, Select, Spinner, Stack, Tab, TabList, Text, TextInput, rem, useClickOutsideEvent, useTheme, useTheme_v2 } from "@sanity/ui";
6
+ import { Box, Container, Flex, Grid, VStack } from "ui5";
7
+ import { Badge, Button, Card, Dialog, Heading, Hotkeys, Inline, Label, Select, Spinner, Tab, TabList, Text, TextInput, rem, useClickOutsideEvent, useTheme, useTheme_v2 } from "@sanity/ui";
8
8
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
9
  import { SplitPane } from "@rexxars/react-split-pane";
10
10
  import { ChevronLeftIcon } from "@sanity/icons/ChevronLeft";
@@ -804,7 +804,7 @@ function _temp$5(data) {
804
804
  var fixedHeader = "_15lckbo0", queryList = "_15lckbo2", scrollContainer = "_15lckbo1";
805
805
  function FixedHeader(props) {
806
806
  let $ = c(2), t0;
807
- return $[0] === props ? t0 = $[1] : (t0 = /* @__PURE__ */ jsx(Stack, {
807
+ return $[0] === props ? t0 = $[1] : (t0 = /* @__PURE__ */ jsx(VStack, {
808
808
  ...props,
809
809
  className: fixedHeader
810
810
  }), $[0] = props, $[1] = t0), t0;
@@ -831,7 +831,7 @@ function QueryList(props) {
831
831
  }), $[0] = props, $[1] = t0), t0;
832
832
  }
833
833
  function QueryRecall(t0) {
834
- let $ = c(134), { url, getStateFromUrl, setStateFromParsedUrl, currentQuery, currentParams, generateUrl, compactMode: t1 } = t0, compactMode = t1 !== void 0 && t1, toast = useToast(), { saveQuery, updateQuery, queries, deleteQuery, saving } = useSavedQueries(), { t } = useTranslation(visionLocaleNamespace), t2;
834
+ let $ = c(136), { url, getStateFromUrl, setStateFromParsedUrl, currentQuery, currentParams, generateUrl, compactMode: t1 } = t0, compactMode = t1 !== void 0 && t1, toast = useToast(), { saveQuery, updateQuery, queries, deleteQuery, saving } = useSavedQueries(), { t } = useTranslation(visionLocaleNamespace), t2;
835
835
  $[0] === Symbol.for("react.memo_cache_sentinel") ? (t2 = {
836
836
  month: "short",
837
837
  day: "numeric",
@@ -1022,112 +1022,112 @@ function QueryRecall(t0) {
1022
1022
  });
1023
1023
  }
1024
1024
  }, $[32] = currentParams, $[33] = currentQuery, $[34] = formatDate, $[35] = generateUrl, $[36] = getStateFromUrl, $[37] = queries, $[38] = t, $[39] = toast, $[40] = updateQuery, $[41] = t10) : t10 = $[41];
1025
- let handleUpdate = t10, T0, T1, T2, t11, t12, t13, t14;
1025
+ let handleUpdate = t10, T0, T1, T2, t11, t12, t13, t14, t15;
1026
1026
  if ($[42] !== compactMode || $[43] !== currentParams || $[44] !== currentQuery || $[45] !== deleteQuery || $[46] !== editingKey || $[47] !== editingTitle || $[48] !== formatDate || $[49] !== getStateFromUrl || $[50] !== handleSave || $[51] !== handleTitleSave || $[52] !== handleUnshareQuery || $[53] !== handleUpdate || $[54] !== optimisticTitles || $[55] !== pendingUnshareKeys || $[56] !== queries || $[57] !== queryFilter || $[58] !== saving || $[59] !== searchQuery || $[60] !== selectedUrl || $[61] !== setStateFromParsedUrl || $[62] !== t) {
1027
1027
  let filteredQueries = (queries?.filter((q_3) => !pendingUnshareKeys.includes(q_3._key)))?.filter((q_4) => {
1028
1028
  let matchesSearch = (q_4.title ?? "").toLowerCase().includes(searchQuery.toLowerCase()), matchesFilter = queryFilter === "all" || queryFilter === "personal" && !q_4.shared || queryFilter === "shared" && q_4.shared;
1029
1029
  return matchesSearch && matchesFilter;
1030
1030
  });
1031
1031
  T2 = ScrollContainer;
1032
- let t15;
1033
- $[70] === t ? t15 = $[71] : (t15 = t("label.saved-queries"), $[70] = t, $[71] = t15);
1034
1032
  let t16;
1035
- $[72] === t15 ? t16 = $[73] : (t16 = /* @__PURE__ */ jsx(StyledLabel, {
1036
- muted: !0,
1037
- children: t15
1038
- }), $[72] = t15, $[73] = t16);
1033
+ $[71] === t ? t16 = $[72] : (t16 = t("label.saved-queries"), $[71] = t, $[72] = t16);
1039
1034
  let t17;
1040
- $[74] === t ? t17 = $[75] : (t17 = t("action.save-query"), $[74] = t, $[75] = t17);
1035
+ $[73] === t16 ? t17 = $[74] : (t17 = /* @__PURE__ */ jsx(StyledLabel, {
1036
+ muted: !0,
1037
+ children: t16
1038
+ }), $[73] = t16, $[74] = t17);
1041
1039
  let t18;
1042
- $[76] === handleSave ? t18 = $[77] : (t18 = () => void handleSave(), $[76] = handleSave, $[77] = t18);
1040
+ $[75] === t ? t18 = $[76] : (t18 = t("action.save-query"), $[75] = t, $[76] = t18);
1043
1041
  let t19;
1044
- $[78] !== saving || $[79] !== t17 || $[80] !== t18 ? (t19 = /* @__PURE__ */ jsx(Button, {
1045
- "aria-label": t17,
1042
+ $[77] === handleSave ? t19 = $[78] : (t19 = () => void handleSave(), $[77] = handleSave, $[78] = t19);
1043
+ let t20;
1044
+ $[79] !== saving || $[80] !== t18 || $[81] !== t19 ? (t20 = /* @__PURE__ */ jsx(Button, {
1045
+ "aria-label": t18,
1046
1046
  icon: AddIcon,
1047
1047
  disabled: saving,
1048
- onClick: t18,
1048
+ onClick: t19,
1049
1049
  mode: "bleed"
1050
- }), $[78] = saving, $[79] = t17, $[80] = t18, $[81] = t19) : t19 = $[81];
1051
- let t20;
1052
- $[82] !== t16 || $[83] !== t19 ? (t20 = /* @__PURE__ */ jsxs(Flex, {
1050
+ }), $[79] = saving, $[80] = t18, $[81] = t19, $[82] = t20) : t20 = $[82];
1051
+ let t21;
1052
+ $[83] !== t17 || $[84] !== t20 ? (t21 = /* @__PURE__ */ jsxs(Flex, {
1053
1053
  padding: 3,
1054
1054
  paddingTop: 2,
1055
1055
  paddingBottom: 0,
1056
1056
  justifyContent: "space-between",
1057
1057
  alignItems: "center",
1058
- children: [t16, t19]
1059
- }), $[82] = t16, $[83] = t19, $[84] = t20) : t20 = $[84];
1060
- let t21;
1061
- $[85] === t ? t21 = $[86] : (t21 = t("label.search-queries"), $[85] = t, $[86] = t21);
1058
+ children: [t17, t20]
1059
+ }), $[83] = t17, $[84] = t20, $[85] = t21) : t21 = $[85];
1062
1060
  let t22;
1063
- $[87] === Symbol.for("react.memo_cache_sentinel") ? (t22 = (event) => setSearchQuery(event.currentTarget.value), $[87] = t22) : t22 = $[87];
1061
+ $[86] === t ? t22 = $[87] : (t22 = t("label.search-queries"), $[86] = t, $[87] = t22);
1064
1062
  let t23;
1065
- $[88] !== searchQuery || $[89] !== t21 ? (t23 = /* @__PURE__ */ jsx(Box, {
1063
+ $[88] === Symbol.for("react.memo_cache_sentinel") ? (t23 = (event) => setSearchQuery(event.currentTarget.value), $[88] = t23) : t23 = $[88];
1064
+ let t24;
1065
+ $[89] !== searchQuery || $[90] !== t22 ? (t24 = /* @__PURE__ */ jsx(Box, {
1066
1066
  padding: 3,
1067
1067
  paddingTop: 0,
1068
1068
  children: /* @__PURE__ */ jsx(TextInput, {
1069
- placeholder: t21,
1069
+ placeholder: t22,
1070
1070
  icon: SearchIcon,
1071
1071
  value: searchQuery,
1072
- onChange: t22
1072
+ onChange: t23
1073
1073
  })
1074
- }), $[88] = searchQuery, $[89] = t21, $[90] = t23) : t23 = $[90];
1075
- let t24;
1076
- $[91] === t ? t24 = $[92] : (t24 = t("label.all"), $[91] = t, $[92] = t24);
1077
- let t25 = queryFilter === "all", t26;
1078
- $[93] === Symbol.for("react.memo_cache_sentinel") ? (t26 = () => setQueryFilter("all"), $[93] = t26) : t26 = $[93];
1079
- let t27;
1080
- $[94] !== t24 || $[95] !== t25 ? (t27 = /* @__PURE__ */ jsx(Tab, {
1074
+ }), $[89] = searchQuery, $[90] = t22, $[91] = t24) : t24 = $[91];
1075
+ let t25;
1076
+ $[92] === t ? t25 = $[93] : (t25 = t("label.all"), $[92] = t, $[93] = t25);
1077
+ let t26 = queryFilter === "all", t27;
1078
+ $[94] === Symbol.for("react.memo_cache_sentinel") ? (t27 = () => setQueryFilter("all"), $[94] = t27) : t27 = $[94];
1079
+ let t28;
1080
+ $[95] !== t25 || $[96] !== t26 ? (t28 = /* @__PURE__ */ jsx(Tab, {
1081
1081
  id: "query-filter-all",
1082
1082
  "aria-controls": "vision-query-recall-list",
1083
- label: t24,
1084
- selected: t25,
1085
- onClick: t26
1086
- }), $[94] = t24, $[95] = t25, $[96] = t27) : t27 = $[96];
1087
- let t28;
1088
- $[97] === t ? t28 = $[98] : (t28 = t("label.personal"), $[97] = t, $[98] = t28);
1089
- let t29 = queryFilter === "personal", t30;
1090
- $[99] === Symbol.for("react.memo_cache_sentinel") ? (t30 = () => setQueryFilter("personal"), $[99] = t30) : t30 = $[99];
1091
- let t31;
1092
- $[100] !== t28 || $[101] !== t29 ? (t31 = /* @__PURE__ */ jsx(Tab, {
1083
+ label: t25,
1084
+ selected: t26,
1085
+ onClick: t27
1086
+ }), $[95] = t25, $[96] = t26, $[97] = t28) : t28 = $[97];
1087
+ let t29;
1088
+ $[98] === t ? t29 = $[99] : (t29 = t("label.personal"), $[98] = t, $[99] = t29);
1089
+ let t30 = queryFilter === "personal", t31;
1090
+ $[100] === Symbol.for("react.memo_cache_sentinel") ? (t31 = () => setQueryFilter("personal"), $[100] = t31) : t31 = $[100];
1091
+ let t32;
1092
+ $[101] !== t29 || $[102] !== t30 ? (t32 = /* @__PURE__ */ jsx(Tab, {
1093
1093
  id: "query-filter-personal",
1094
1094
  "aria-controls": "vision-query-recall-list",
1095
- label: t28,
1096
- selected: t29,
1097
- onClick: t30
1098
- }), $[100] = t28, $[101] = t29, $[102] = t31) : t31 = $[102];
1099
- let t32;
1100
- $[103] === t ? t32 = $[104] : (t32 = t("label.shared"), $[103] = t, $[104] = t32);
1101
- let t33 = queryFilter === "shared", t34;
1102
- $[105] === Symbol.for("react.memo_cache_sentinel") ? (t34 = () => setQueryFilter("shared"), $[105] = t34) : t34 = $[105];
1103
- let t35;
1104
- $[106] !== t32 || $[107] !== t33 ? (t35 = /* @__PURE__ */ jsx(Tab, {
1095
+ label: t29,
1096
+ selected: t30,
1097
+ onClick: t31
1098
+ }), $[101] = t29, $[102] = t30, $[103] = t32) : t32 = $[103];
1099
+ let t33;
1100
+ $[104] === t ? t33 = $[105] : (t33 = t("label.shared"), $[104] = t, $[105] = t33);
1101
+ let t34 = queryFilter === "shared", t35;
1102
+ $[106] === Symbol.for("react.memo_cache_sentinel") ? (t35 = () => setQueryFilter("shared"), $[106] = t35) : t35 = $[106];
1103
+ let t36;
1104
+ $[107] !== t33 || $[108] !== t34 ? (t36 = /* @__PURE__ */ jsx(Tab, {
1105
1105
  id: "query-filter-shared",
1106
1106
  "aria-controls": "vision-query-recall-list",
1107
- label: t32,
1108
- selected: t33,
1109
- onClick: t34
1110
- }), $[106] = t32, $[107] = t33, $[108] = t35) : t35 = $[108];
1111
- let t36;
1112
- $[109] !== t27 || $[110] !== t31 || $[111] !== t35 ? (t36 = /* @__PURE__ */ jsx(Box, {
1107
+ label: t33,
1108
+ selected: t34,
1109
+ onClick: t35
1110
+ }), $[107] = t33, $[108] = t34, $[109] = t36) : t36 = $[109];
1111
+ let t37;
1112
+ $[110] !== t28 || $[111] !== t32 || $[112] !== t36 ? (t37 = /* @__PURE__ */ jsx(Box, {
1113
1113
  paddingX: 3,
1114
1114
  paddingBottom: 2,
1115
1115
  children: /* @__PURE__ */ jsxs(TabList, {
1116
1116
  gap: 1,
1117
1117
  children: [
1118
- t27,
1119
- t31,
1120
- t35
1118
+ t28,
1119
+ t32,
1120
+ t36
1121
1121
  ]
1122
1122
  })
1123
- }), $[109] = t27, $[110] = t31, $[111] = t35, $[112] = t36) : t36 = $[112], $[113] !== t20 || $[114] !== t23 || $[115] !== t36 ? (t14 = /* @__PURE__ */ jsxs(FixedHeader, {
1123
+ }), $[110] = t28, $[111] = t32, $[112] = t36, $[113] = t37) : t37 = $[113], $[114] !== t21 || $[115] !== t24 || $[116] !== t37 ? (t15 = /* @__PURE__ */ jsxs(FixedHeader, {
1124
1124
  gap: 3,
1125
1125
  children: [
1126
- t20,
1127
- t23,
1128
- t36
1126
+ t21,
1127
+ t24,
1128
+ t37
1129
1129
  ]
1130
- }), $[113] = t20, $[114] = t23, $[115] = t36, $[116] = t14) : t14 = $[116], T1 = QueryList, t13 = "vision-query-recall-list", T0 = Stack, t11 = 3, t12 = filteredQueries?.map((q_5, index) => {
1130
+ }), $[114] = t21, $[115] = t24, $[116] = t37, $[117] = t15) : t15 = $[117], T1 = QueryList, t14 = "vision-query-recall-list", T0 = Flex, t11 = 3, t12 = "column", t13 = filteredQueries?.map((q_5, index) => {
1131
1131
  let queryObj = getStateFromUrl(q_5.url), fullQueryPreview = queryObj?.query || "", shortQueryPreview = fullQueryPreview.split("{")[0], isSelected = selectedUrl === q_5.url, canMutateQuery = !q_5.shared || q_5.isOwnedByCurrentUser, areQueriesEqual = queryObj && currentQuery === queryObj.query && dequal(currentParams, queryObj.params), isEdited = isSelected && !areQueriesEqual && canMutateQuery;
1132
1132
  return /* @__PURE__ */ jsx(Card, {
1133
1133
  paddingX: compactMode ? 3 : 4,
@@ -1146,7 +1146,7 @@ function QueryRecall(t0) {
1146
1146
  borderLeft: isSelected ? "2px solid var(--card-muted-fg-color)" : "2px solid transparent",
1147
1147
  cursor: "pointer"
1148
1148
  },
1149
- children: /* @__PURE__ */ jsxs(Stack, {
1149
+ children: /* @__PURE__ */ jsxs(VStack, {
1150
1150
  gap: compactMode ? 2 : 3,
1151
1151
  children: [
1152
1152
  /* @__PURE__ */ jsxs(Flex, {
@@ -1260,7 +1260,7 @@ function QueryRecall(t0) {
1260
1260
  children: shortQueryPreview
1261
1261
  })
1262
1262
  }) : /* @__PURE__ */ jsx(Code, {}),
1263
- compactMode ? /* @__PURE__ */ jsxs(Stack, {
1263
+ compactMode ? /* @__PURE__ */ jsxs(VStack, {
1264
1264
  gap: 1,
1265
1265
  style: {
1266
1266
  paddingTop: 0,
@@ -1377,20 +1377,21 @@ function QueryRecall(t0) {
1377
1377
  ]
1378
1378
  })
1379
1379
  }, q_5._key);
1380
- }), $[42] = compactMode, $[43] = currentParams, $[44] = currentQuery, $[45] = deleteQuery, $[46] = editingKey, $[47] = editingTitle, $[48] = formatDate, $[49] = getStateFromUrl, $[50] = handleSave, $[51] = handleTitleSave, $[52] = handleUnshareQuery, $[53] = handleUpdate, $[54] = optimisticTitles, $[55] = pendingUnshareKeys, $[56] = queries, $[57] = queryFilter, $[58] = saving, $[59] = searchQuery, $[60] = selectedUrl, $[61] = setStateFromParsedUrl, $[62] = t, $[63] = T0, $[64] = T1, $[65] = T2, $[66] = t11, $[67] = t12, $[68] = t13, $[69] = t14;
1381
- } else T0 = $[63], T1 = $[64], T2 = $[65], t11 = $[66], t12 = $[67], t13 = $[68], t14 = $[69];
1382
- let t15;
1383
- $[117] !== T0 || $[118] !== t11 || $[119] !== t12 ? (t15 = /* @__PURE__ */ jsx(T0, {
1384
- paddingY: t11,
1385
- children: t12
1386
- }), $[117] = T0, $[118] = t11, $[119] = t12, $[120] = t15) : t15 = $[120];
1380
+ }), $[42] = compactMode, $[43] = currentParams, $[44] = currentQuery, $[45] = deleteQuery, $[46] = editingKey, $[47] = editingTitle, $[48] = formatDate, $[49] = getStateFromUrl, $[50] = handleSave, $[51] = handleTitleSave, $[52] = handleUnshareQuery, $[53] = handleUpdate, $[54] = optimisticTitles, $[55] = pendingUnshareKeys, $[56] = queries, $[57] = queryFilter, $[58] = saving, $[59] = searchQuery, $[60] = selectedUrl, $[61] = setStateFromParsedUrl, $[62] = t, $[63] = T0, $[64] = T1, $[65] = T2, $[66] = t11, $[67] = t12, $[68] = t13, $[69] = t14, $[70] = t15;
1381
+ } else T0 = $[63], T1 = $[64], T2 = $[65], t11 = $[66], t12 = $[67], t13 = $[68], t14 = $[69], t15 = $[70];
1387
1382
  let t16;
1388
- $[121] !== T1 || $[122] !== t13 || $[123] !== t15 ? (t16 = /* @__PURE__ */ jsx(T1, {
1389
- id: t13,
1390
- children: t15
1391
- }), $[121] = T1, $[122] = t13, $[123] = t15, $[124] = t16) : t16 = $[124];
1383
+ $[118] !== T0 || $[119] !== t11 || $[120] !== t12 || $[121] !== t13 ? (t16 = /* @__PURE__ */ jsx(T0, {
1384
+ paddingY: t11,
1385
+ flexDirection: t12,
1386
+ children: t13
1387
+ }), $[118] = T0, $[119] = t11, $[120] = t12, $[121] = t13, $[122] = t16) : t16 = $[122];
1392
1388
  let t17;
1393
- $[125] !== handleConfirmShareQuery || $[126] !== shareDialogQuery || $[127] !== t ? (t17 = shareDialogQuery && /* @__PURE__ */ jsx(Dialog, {
1389
+ $[123] !== T1 || $[124] !== t14 || $[125] !== t16 ? (t17 = /* @__PURE__ */ jsx(T1, {
1390
+ id: t14,
1391
+ children: t16
1392
+ }), $[123] = T1, $[124] = t14, $[125] = t16, $[126] = t17) : t17 = $[126];
1393
+ let t18;
1394
+ $[127] !== handleConfirmShareQuery || $[128] !== shareDialogQuery || $[129] !== t ? (t18 = shareDialogQuery && /* @__PURE__ */ jsx(Dialog, {
1394
1395
  id: "vision-query-recall-share-dialog",
1395
1396
  width: 1,
1396
1397
  header: t("label.share"),
@@ -1419,13 +1420,13 @@ function QueryRecall(t0) {
1419
1420
  children: t("save-query.share-warning")
1420
1421
  })
1421
1422
  })
1422
- }), $[125] = handleConfirmShareQuery, $[126] = shareDialogQuery, $[127] = t, $[128] = t17) : t17 = $[128];
1423
- let t18;
1424
- return $[129] !== T2 || $[130] !== t14 || $[131] !== t16 || $[132] !== t17 ? (t18 = /* @__PURE__ */ jsxs(T2, { children: [
1425
- t14,
1426
- t16,
1427
- t17
1428
- ] }), $[129] = T2, $[130] = t14, $[131] = t16, $[132] = t17, $[133] = t18) : t18 = $[133], t18;
1423
+ }), $[127] = handleConfirmShareQuery, $[128] = shareDialogQuery, $[129] = t, $[130] = t18) : t18 = $[130];
1424
+ let t19;
1425
+ return $[131] !== T2 || $[132] !== t15 || $[133] !== t17 || $[134] !== t18 ? (t19 = /* @__PURE__ */ jsxs(T2, { children: [
1426
+ t15,
1427
+ t17,
1428
+ t18
1429
+ ] }), $[131] = T2, $[132] = t15, $[133] = t17, $[134] = t18, $[135] = t19) : t19 = $[135], t19;
1429
1430
  }
1430
1431
  function narrowBreakpoint() {
1431
1432
  return typeof window < "u" && window.innerWidth > 600;
@@ -1612,7 +1613,7 @@ function PerspectivePopover() {
1612
1613
  })
1613
1614
  }), $[15] = t, $[16] = t9);
1614
1615
  let t10;
1615
- $[17] !== t8 || $[18] !== t9 ? (t10 = /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(Stack, {
1616
+ $[17] !== t8 || $[18] !== t9 ? (t10 = /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(VStack, {
1616
1617
  gap: 2,
1617
1618
  children: [t8, t9]
1618
1619
  }) }), $[17] = t8, $[18] = t9, $[19] = t10) : t10 = $[19];
@@ -1628,7 +1629,7 @@ function PerspectivePopover() {
1628
1629
  children: [t12, " →"]
1629
1630
  }) }) }), $[24] = t12, $[25] = t13);
1630
1631
  let t14;
1631
- $[26] !== t10 || $[27] !== t11 || $[28] !== t13 || $[29] !== t4 || $[30] !== t6 ? (t14 = /* @__PURE__ */ jsx(PerspectivePopoverContent, { children: /* @__PURE__ */ jsxs(Stack, {
1632
+ $[26] !== t10 || $[27] !== t11 || $[28] !== t13 || $[29] !== t4 || $[30] !== t6 ? (t14 = /* @__PURE__ */ jsx(PerspectivePopoverContent, { children: /* @__PURE__ */ jsxs(VStack, {
1632
1633
  gap: 4,
1633
1634
  children: [
1634
1635
  t4,
@@ -1731,7 +1732,7 @@ function VisionGuiHeader(t0) {
1731
1732
  $[16] !== t6 || $[17] !== t8 ? (t9 = /* @__PURE__ */ jsx(Box, {
1732
1733
  padding: 1,
1733
1734
  gridColumn: t4,
1734
- children: /* @__PURE__ */ jsxs(Stack, { children: [t6, t8] })
1735
+ children: /* @__PURE__ */ jsxs(VStack, { children: [t6, t8] })
1735
1736
  }), $[16] = t6, $[17] = t8, $[18] = t9) : t9 = $[18];
1736
1737
  let t10;
1737
1738
  $[19] === Symbol.for("react.memo_cache_sentinel") ? (t10 = ["span 1 / span 1", "span 2 / span 2"], $[19] = t10) : t10 = $[19];
@@ -1782,13 +1783,13 @@ function VisionGuiHeader(t0) {
1782
1783
  $[42] !== t12 || $[43] !== t21 ? (t22 = /* @__PURE__ */ jsx(Box, {
1783
1784
  padding: 1,
1784
1785
  gridColumn: t10,
1785
- children: /* @__PURE__ */ jsxs(Stack, { children: [t12, t21] })
1786
+ children: /* @__PURE__ */ jsxs(VStack, { children: [t12, t21] })
1786
1787
  }), $[42] = t12, $[43] = t21, $[44] = t22) : t22 = $[44];
1787
1788
  let t23;
1788
1789
  $[45] !== customApiVersion || $[46] !== customApiVersionElementRef || $[47] !== isApiVersionLocked || $[48] !== isValidApiVersion || $[49] !== onCustomApiVersionChange || $[50] !== t ? (t23 = !isApiVersionLocked && customApiVersion !== !1 && /* @__PURE__ */ jsx(Box, {
1789
1790
  padding: 1,
1790
1791
  gridColumn: ["span 1 / span 1", "span 2 / span 2"],
1791
- children: /* @__PURE__ */ jsxs(Stack, { children: [/* @__PURE__ */ jsx(Card, {
1792
+ children: /* @__PURE__ */ jsxs(VStack, { children: [/* @__PURE__ */ jsx(Card, {
1792
1793
  paddingTop: 2,
1793
1794
  paddingBottom: 3,
1794
1795
  children: /* @__PURE__ */ jsx(StyledLabel, {
@@ -1845,7 +1846,7 @@ function VisionGuiHeader(t0) {
1845
1846
  $[68] !== t28 || $[69] !== t31 ? (t32 = /* @__PURE__ */ jsx(Box, {
1846
1847
  padding: 1,
1847
1848
  gridColumn: t24,
1848
- children: /* @__PURE__ */ jsxs(Stack, { children: [t28, t31] })
1849
+ children: /* @__PURE__ */ jsxs(VStack, { children: [t28, t31] })
1849
1850
  }), $[68] = t28, $[69] = t31, $[70] = t32) : t32 = $[70];
1850
1851
  let t33;
1851
1852
  $[71] !== customApiVersion || $[72] !== t || $[73] !== url ? (t33 = typeof url == "string" ? /* @__PURE__ */ jsx(Box, {
@@ -1853,7 +1854,7 @@ function VisionGuiHeader(t0) {
1853
1854
  flexBasis: "0%",
1854
1855
  flexGrow: 1,
1855
1856
  gridColumn: ["span 1 / span 1", customApiVersion === !1 ? "span 6 / span 6" : "span 4 / span 4"],
1856
- children: /* @__PURE__ */ jsxs(Stack, { children: [/* @__PURE__ */ jsx(Card, {
1857
+ children: /* @__PURE__ */ jsxs(VStack, { children: [/* @__PURE__ */ jsx(Card, {
1857
1858
  paddingTop: 2,
1858
1859
  paddingBottom: 3,
1859
1860
  children: /* @__PURE__ */ jsxs(StyledLabel, { children: [
@@ -2039,7 +2040,7 @@ function dashLine(column, columnEnd) {
2039
2040
  return `${"-".repeat(column)}${"^".repeat(columnEnd ? columnEnd - column : 1)}`;
2040
2041
  }
2041
2042
  function QueryErrorDialog(props) {
2042
- let $ = c(20), { error, apiVersion, perspective, variant } = props, { t } = useTranslation(visionLocaleNamespace), T0, t0, t1, t2;
2043
+ let $ = c(22), { error, apiVersion, perspective, variant } = props, { t } = useTranslation(visionLocaleNamespace), T0, t0, t1, t2, t3;
2043
2044
  if ($[0] !== apiVersion || $[1] !== error || $[2] !== perspective || $[3] !== t || $[4] !== variant) {
2044
2045
  let unsatisfiedCapability = getUnsatisfiedApiVersionCapability({
2045
2046
  statusCode: isHttpError(error) ? error.statusCode : void 0,
@@ -2047,29 +2048,30 @@ function QueryErrorDialog(props) {
2047
2048
  perspective,
2048
2049
  variant
2049
2050
  });
2050
- T0 = Stack, t0 = 5, t1 = 2, t2 = unsatisfiedCapability ? /* @__PURE__ */ jsx(Text, {
2051
+ T0 = Flex, t0 = 5, t1 = 2, t2 = "column", t3 = unsatisfiedCapability ? /* @__PURE__ */ jsx(Text, {
2051
2052
  "data-testid": "query-error-api-version-capability-hint",
2052
2053
  size: 1,
2053
2054
  children: t(unsatisfiedCapability.explanationKey, { apiVersion: prefixApiVersion(unsatisfiedCapability.requiredApiVersion) })
2054
- }) : null, $[0] = apiVersion, $[1] = error, $[2] = perspective, $[3] = t, $[4] = variant, $[5] = T0, $[6] = t0, $[7] = t1, $[8] = t2;
2055
- } else T0 = $[5], t0 = $[6], t1 = $[7], t2 = $[8];
2056
- let t3;
2057
- $[9] === error.message ? t3 = $[10] : (t3 = /* @__PURE__ */ jsx(ErrorCode, {
2055
+ }) : null, $[0] = apiVersion, $[1] = error, $[2] = perspective, $[3] = t, $[4] = variant, $[5] = T0, $[6] = t0, $[7] = t1, $[8] = t2, $[9] = t3;
2056
+ } else T0 = $[5], t0 = $[6], t1 = $[7], t2 = $[8], t3 = $[9];
2057
+ let t4;
2058
+ $[10] === error.message ? t4 = $[11] : (t4 = /* @__PURE__ */ jsx(ErrorCode, {
2058
2059
  size: 1,
2059
2060
  children: error.message
2060
- }), $[9] = error.message, $[10] = t3);
2061
- let t4;
2062
- $[11] === error ? t4 = $[12] : (t4 = /* @__PURE__ */ jsx(QueryErrorDetails, { error }), $[11] = error, $[12] = t4);
2061
+ }), $[10] = error.message, $[11] = t4);
2063
2062
  let t5;
2064
- return $[13] !== T0 || $[14] !== t0 || $[15] !== t1 || $[16] !== t2 || $[17] !== t3 || $[18] !== t4 ? (t5 = /* @__PURE__ */ jsxs(T0, {
2063
+ $[12] === error ? t5 = $[13] : (t5 = /* @__PURE__ */ jsx(QueryErrorDetails, { error }), $[12] = error, $[13] = t5);
2064
+ let t6;
2065
+ return $[14] !== T0 || $[15] !== t0 || $[16] !== t1 || $[17] !== t2 || $[18] !== t3 || $[19] !== t4 || $[20] !== t5 ? (t6 = /* @__PURE__ */ jsxs(T0, {
2065
2066
  gap: t0,
2066
2067
  marginTop: t1,
2068
+ flexDirection: t2,
2067
2069
  children: [
2068
- t2,
2069
2070
  t3,
2070
- t4
2071
+ t4,
2072
+ t5
2071
2073
  ]
2072
- }), $[13] = T0, $[14] = t0, $[15] = t1, $[16] = t2, $[17] = t3, $[18] = t4, $[19] = t5) : t5 = $[19], t5;
2074
+ }), $[14] = T0, $[15] = t0, $[16] = t1, $[17] = t2, $[18] = t3, $[19] = t4, $[20] = t5, $[21] = t6) : t6 = $[21], t6;
2073
2075
  }
2074
2076
  var codeFamilyVar = "var(--_1rvgeh0)", codeFontSizeVar = "var(--_1rvgeh1)", codeLineHeightVar = "var(--_1rvgeh2)", resultViewWrapper = "_1rvgehc", space0Var = "var(--_1rvgeh3)", space2Var = "var(--_1rvgeh4)", space4HalfVar = "var(--_1rvgeh6)", space4Var = "var(--_1rvgeh5)", syntaxBooleanVar = "var(--_1rvgeha)", syntaxConstantVar = "var(--_1rvgeh8)", syntaxNumberVar = "var(--_1rvgehb)", syntaxPropertyVar = "var(--_1rvgeh7)", syntaxStringVar = "var(--_1rvgeh9)";
2075
2077
  const lru = new LRU({ maxSize: 5e4 });
@@ -2911,7 +2913,7 @@ var VisionErrorBoundary = class extends Component {
2911
2913
  tone: "critical",
2912
2914
  children: /* @__PURE__ */ jsx(Container, {
2913
2915
  size: 3,
2914
- children: /* @__PURE__ */ jsxs(Stack, {
2916
+ children: /* @__PURE__ */ jsxs(VStack, {
2915
2917
  gap: 4,
2916
2918
  children: [
2917
2919
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Button, {
@@ -2926,7 +2928,7 @@ var VisionErrorBoundary = class extends Component {
2926
2928
  overflow: "auto",
2927
2929
  padding: 4,
2928
2930
  tone: "inherit",
2929
- children: /* @__PURE__ */ jsx(Stack, {
2931
+ children: /* @__PURE__ */ jsx(VStack, {
2930
2932
  gap: 4,
2931
2933
  children: message && /* @__PURE__ */ jsx(Code, {
2932
2934
  size: 1,
@@ -2956,4 +2958,4 @@ function SanityVision(props) {
2956
2958
  }
2957
2959
  export { SanityVision as default };
2958
2960
 
2959
- //# sourceMappingURL=SanityVision-DP7bCCAx.js.map
2961
+ //# sourceMappingURL=SanityVision-DJT-CXvq.js.map