@sanity/vision 6.16.0-next.96 → 6.16.0-next.99
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,14 +3,14 @@ import { Component, Fragment, Suspense, use, useEffect, useImperativeHandle, use
|
|
|
3
3
|
import { ContextMenuButton, RELEASES_STUDIO_CLIENT_OPTIONS, Translate, UserAvatar, VARIANTS_STUDIO_CLIENT_OPTIONS, 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 {
|
|
6
|
+
import { Box, Flex, Grid } from "ui5";
|
|
7
|
+
import { Badge, Button, Card, Container, Dialog, Heading, Hotkeys, Inline, Label, Select, Spinner, Stack, Tab, TabList, Text, TextInput, rem, useClickOutsideEvent, useTheme, useTheme_v2 } from "@sanity/ui";
|
|
7
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
9
|
import { SplitPane } from "@rexxars/react-split-pane";
|
|
9
10
|
import { ChevronLeftIcon } from "@sanity/icons/ChevronLeft";
|
|
10
11
|
import { ChevronRightIcon } from "@sanity/icons/ChevronRight";
|
|
11
12
|
import { useToast } from "@sanity/ui/toast";
|
|
12
13
|
import { isHotkey } from "is-hotkey-esm";
|
|
13
|
-
import { Box, Grid } from "ui5";
|
|
14
14
|
import { useEffectEvent } from "use-effect-event";
|
|
15
15
|
import { closeBrackets } from "@codemirror/autocomplete";
|
|
16
16
|
import { defaultKeymap, history, historyKeymap } from "@codemirror/commands";
|
|
@@ -443,7 +443,7 @@ function QueryRecallPaneContainer(props) {
|
|
|
443
443
|
let $ = c(2), t0;
|
|
444
444
|
return $[0] === props ? t0 = $[1] : (t0 = /* @__PURE__ */ jsx(Flex, {
|
|
445
445
|
...props,
|
|
446
|
-
|
|
446
|
+
flexDirection: "column",
|
|
447
447
|
className: queryRecallPaneContainer
|
|
448
448
|
}), $[0] = props, $[1] = t0), t0;
|
|
449
449
|
}
|
|
@@ -451,8 +451,9 @@ function QueryRecallPaneWrapper(props) {
|
|
|
451
451
|
let $ = c(2), t0;
|
|
452
452
|
return $[0] === props ? t0 = $[1] : (t0 = /* @__PURE__ */ jsx(Flex, {
|
|
453
453
|
...props,
|
|
454
|
-
|
|
455
|
-
|
|
454
|
+
flexDirection: "column",
|
|
455
|
+
flexBasis: "0%",
|
|
456
|
+
flexGrow: 1,
|
|
456
457
|
overflow: "hidden",
|
|
457
458
|
className: queryRecallPaneWrapper
|
|
458
459
|
}), $[0] = props, $[1] = t0), t0;
|
|
@@ -808,8 +809,9 @@ function ScrollContainer(props) {
|
|
|
808
809
|
let $ = c(2), t0;
|
|
809
810
|
return $[0] === props ? t0 = $[1] : (t0 = /* @__PURE__ */ jsx(Flex, {
|
|
810
811
|
...props,
|
|
811
|
-
|
|
812
|
-
|
|
812
|
+
flexDirection: "column",
|
|
813
|
+
flexBasis: "0%",
|
|
814
|
+
flexGrow: 1,
|
|
813
815
|
overflow: "hidden",
|
|
814
816
|
className: scrollContainer
|
|
815
817
|
}), $[0] = props, $[1] = t0), t0;
|
|
@@ -1047,8 +1049,8 @@ function QueryRecall(t0) {
|
|
|
1047
1049
|
padding: 3,
|
|
1048
1050
|
paddingTop: 2,
|
|
1049
1051
|
paddingBottom: 0,
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
+
justifyContent: "space-between",
|
|
1053
|
+
alignItems: "center",
|
|
1052
1054
|
children: [t16, t19]
|
|
1053
1055
|
}), $[82] = t16, $[83] = t19, $[84] = t20) : t20 = $[84];
|
|
1054
1056
|
let t21;
|
|
@@ -1144,17 +1146,14 @@ function QueryRecall(t0) {
|
|
|
1144
1146
|
gap: compactMode ? 2 : 3,
|
|
1145
1147
|
children: [
|
|
1146
1148
|
/* @__PURE__ */ jsxs(Flex, {
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
+
justifyContent: "space-between",
|
|
1150
|
+
alignItems: "center",
|
|
1149
1151
|
style: { minHeight: "25px" },
|
|
1150
1152
|
children: [/* @__PURE__ */ jsxs(Flex, {
|
|
1151
|
-
|
|
1153
|
+
alignItems: "center",
|
|
1152
1154
|
gap: 2,
|
|
1153
1155
|
paddingRight: 1,
|
|
1154
|
-
style: {
|
|
1155
|
-
minWidth: 0,
|
|
1156
|
-
flex: 1
|
|
1157
|
-
},
|
|
1156
|
+
style: { flex: 1 },
|
|
1158
1157
|
children: [editingKey === q_5._key ? /* @__PURE__ */ jsx(TextInput, {
|
|
1159
1158
|
value: editingTitle,
|
|
1160
1159
|
onChange: (event_1) => setEditingTitle(event_1.currentTarget.value),
|
|
@@ -1188,7 +1187,7 @@ function QueryRecall(t0) {
|
|
|
1188
1187
|
backgroundColor: "var(--card-focus-ring-color)"
|
|
1189
1188
|
} })]
|
|
1190
1189
|
}), /* @__PURE__ */ jsx(Flex, {
|
|
1191
|
-
|
|
1190
|
+
alignItems: "center",
|
|
1192
1191
|
gap: 2,
|
|
1193
1192
|
children: /* @__PURE__ */ jsx(Box, {
|
|
1194
1193
|
"data-query-actions": "true",
|
|
@@ -1264,7 +1263,7 @@ function QueryRecall(t0) {
|
|
|
1264
1263
|
minHeight: "30px"
|
|
1265
1264
|
},
|
|
1266
1265
|
children: [/* @__PURE__ */ jsxs(Flex, {
|
|
1267
|
-
|
|
1266
|
+
alignItems: "center",
|
|
1268
1267
|
gap: 2,
|
|
1269
1268
|
style: { minHeight: "18px" },
|
|
1270
1269
|
children: [/* @__PURE__ */ jsx(Box, {
|
|
@@ -1304,7 +1303,7 @@ function QueryRecall(t0) {
|
|
|
1304
1303
|
children: formatDate.format(new Date(q_5.savedAt || ""))
|
|
1305
1304
|
})]
|
|
1306
1305
|
}) : /* @__PURE__ */ jsxs(Flex, {
|
|
1307
|
-
|
|
1306
|
+
alignItems: "center",
|
|
1308
1307
|
gap: 2,
|
|
1309
1308
|
style: {
|
|
1310
1309
|
paddingTop: "2px",
|
|
@@ -1393,10 +1392,10 @@ function QueryRecall(t0) {
|
|
|
1393
1392
|
header: t("label.share"),
|
|
1394
1393
|
onClose: () => setShareDialogQuery(null),
|
|
1395
1394
|
footer: /* @__PURE__ */ jsxs(Flex, {
|
|
1396
|
-
|
|
1395
|
+
justifyContent: "flex-end",
|
|
1397
1396
|
gap: 3,
|
|
1398
1397
|
padding: 3,
|
|
1399
|
-
|
|
1398
|
+
alignItems: "center",
|
|
1400
1399
|
children: [/* @__PURE__ */ jsx(Button, {
|
|
1401
1400
|
mode: "bleed",
|
|
1402
1401
|
padding: 2,
|
|
@@ -1533,7 +1532,7 @@ function VisionGuiControls(t0) {
|
|
|
1533
1532
|
}), $[17] = onListenExecution, $[18] = t10, $[19] = t11, $[20] = t12, $[21] = t9, $[22] = t13) : t13 = $[22];
|
|
1534
1533
|
let t14;
|
|
1535
1534
|
$[23] !== t13 || $[24] !== t8 ? (t14 = /* @__PURE__ */ jsxs(Flex, {
|
|
1536
|
-
|
|
1535
|
+
justifyContent: "space-evenly",
|
|
1537
1536
|
children: [t8, t13]
|
|
1538
1537
|
}), $[23] = t13, $[24] = t8, $[25] = t14) : t14 = $[25];
|
|
1539
1538
|
let t15;
|
|
@@ -1866,7 +1865,8 @@ function VisionGuiHeader(t0) {
|
|
|
1866
1865
|
})
|
|
1867
1866
|
] })
|
|
1868
1867
|
}), /* @__PURE__ */ jsxs(Flex, {
|
|
1869
|
-
|
|
1868
|
+
flexBasis: "0%",
|
|
1869
|
+
flexGrow: 1,
|
|
1870
1870
|
gap: 1,
|
|
1871
1871
|
children: [/* @__PURE__ */ jsx(Box, {
|
|
1872
1872
|
flexBasis: "0%",
|
|
@@ -2297,7 +2297,7 @@ function VisionGuiResult(t0) {
|
|
|
2297
2297
|
}), $[55] = t23, $[56] = t27, $[57] = t28) : t28 = $[57];
|
|
2298
2298
|
let t29;
|
|
2299
2299
|
$[58] !== t22 || $[59] !== t28 ? (t29 = /* @__PURE__ */ jsxs(TimingsTextContainer, {
|
|
2300
|
-
|
|
2300
|
+
alignItems: "center",
|
|
2301
2301
|
children: [t22, t28]
|
|
2302
2302
|
}), $[58] = t22, $[59] = t28, $[60] = t29) : t29 = $[60];
|
|
2303
2303
|
let t30;
|
|
@@ -2330,14 +2330,14 @@ function VisionGuiResult(t0) {
|
|
|
2330
2330
|
}), $[66] = compactFooter, $[67] = hasResult, $[68] = queryResult, $[69] = t, $[70] = t31) : t31 = $[70];
|
|
2331
2331
|
let t32;
|
|
2332
2332
|
$[71] !== t13 || $[72] !== t14 || $[73] !== t15 || $[74] !== t30 || $[75] !== t31 ? (t32 = /* @__PURE__ */ jsxs(ResultFooter, {
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2333
|
+
justifyContent: t13,
|
|
2334
|
+
alignItems: t14,
|
|
2335
|
+
flexDirection: t15,
|
|
2336
2336
|
children: [t30, t31]
|
|
2337
2337
|
}), $[71] = t13, $[72] = t14, $[73] = t15, $[74] = t30, $[75] = t31, $[76] = t32) : t32 = $[76];
|
|
2338
2338
|
let t33;
|
|
2339
2339
|
return $[77] !== t12 || $[78] !== t32 ? (t33 = /* @__PURE__ */ jsxs(ResultOuterContainer, {
|
|
2340
|
-
|
|
2340
|
+
flexDirection: "column",
|
|
2341
2341
|
"data-testid": "vision-result",
|
|
2342
2342
|
children: [t12, t32]
|
|
2343
2343
|
}), $[77] = t12, $[78] = t32, $[79] = t33) : t33 = $[79], t33;
|
|
@@ -2788,10 +2788,9 @@ function VisionGui(props) {
|
|
|
2788
2788
|
}), $[225] = t50, $[226] = t67, $[227] = t75, $[228] = t76) : t76 = $[228];
|
|
2789
2789
|
let t77;
|
|
2790
2790
|
return $[229] !== t49 || $[230] !== t76 ? (t77 = /* @__PURE__ */ jsxs(Root, {
|
|
2791
|
-
|
|
2792
|
-
height: "
|
|
2791
|
+
flexDirection: "column",
|
|
2792
|
+
height: "100%",
|
|
2793
2793
|
ref: visionRootRef,
|
|
2794
|
-
sizing: "border",
|
|
2795
2794
|
overflow: "hidden",
|
|
2796
2795
|
"data-testid": "vision-root",
|
|
2797
2796
|
children: [t49, t76]
|
|
@@ -2839,9 +2838,9 @@ function VisionContainer(props) {
|
|
|
2839
2838
|
}, $[1] = datasetsClient, $[2] = props.config.datasets, $[3] = t1) : t1 = $[3];
|
|
2840
2839
|
let datasetsPromise = useDatasets(t1), t2;
|
|
2841
2840
|
$[4] === Symbol.for("react.memo_cache_sentinel") ? (t2 = /* @__PURE__ */ jsx(Flex, {
|
|
2842
|
-
|
|
2843
|
-
height: "
|
|
2844
|
-
|
|
2841
|
+
alignItems: "center",
|
|
2842
|
+
height: "100%",
|
|
2843
|
+
justifyContent: "center",
|
|
2845
2844
|
children: /* @__PURE__ */ jsx(DelayedSpinner, {})
|
|
2846
2845
|
}), $[4] = t2) : t2 = $[4];
|
|
2847
2846
|
let t3;
|
|
@@ -2952,4 +2951,4 @@ function SanityVision(props) {
|
|
|
2952
2951
|
}
|
|
2953
2952
|
export { SanityVision as default };
|
|
2954
2953
|
|
|
2955
|
-
//# sourceMappingURL=SanityVision-
|
|
2954
|
+
//# sourceMappingURL=SanityVision-BLv8MKWU.js.map
|