@sanity/vision 6.21.0-next.53 → 6.21.0-next.66
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/{CodeDiff-Bj_o50Qy.js → CodeDiff-MkS3Q87A.js} +14 -13
- package/lib/CodeDiff-MkS3Q87A.js.map +1 -0
- package/lib/{SanityVision-lYX0oOV-.js → SanityVision-DOH_LzRg.js} +209 -207
- package/lib/SanityVision-DOH_LzRg.js.map +1 -0
- package/lib/{VistaGui-ufsccNLQ.js → VistaGui-C6cdsk92.js} +203 -188
- package/lib/VistaGui-C6cdsk92.js.map +1 -0
- package/lib/bundle.css +221 -210
- package/lib/{i18n-JS8KzGj8.js → i18n-fzZ8Bvax.js} +2 -2
- package/lib/{i18n-JS8KzGj8.js.map → i18n-fzZ8Bvax.js.map} +1 -1
- package/lib/index.d.ts +4 -0
- package/lib/index.js +2 -2
- package/lib/{resources-DFprICyb.js → resources-CFs_-mXU.js} +5 -1
- package/lib/{resources-DFprICyb.js.map → resources-CFs_-mXU.js.map} +1 -1
- package/package.json +10 -9
- package/lib/CodeDiff-Bj_o50Qy.js.map +0 -1
- package/lib/SanityVision-lYX0oOV-.js.map +0 -1
- package/lib/VistaGui-ufsccNLQ.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as visionLocaleNamespace } from "./i18n-
|
|
2
|
-
import { A as
|
|
1
|
+
import { t as visionLocaleNamespace } from "./i18n-fzZ8Bvax.js";
|
|
2
|
+
import { A as DEFAULT_API_VERSION, C as getActivePerspective, D as paramsExtensions, E as groqExtensions, M as prefixApiVersion, O as resultJsonExtensions, S as encodeQueryString, T as VisionCodeMirror, _ as VISION_STORAGE_KEY_PREFIX, a as getAtKeypath, b as isPlainObject, c as DelayedSpinner, d as getJsonBlobUrl, f as useSavedQueries, g as validateApiVersion, h as parseQueryUrl, i as describeKeypath, j as VARIANTS_API_VERSION, k as API_VERSIONS, l as canEncodeCsv, m as isApiCdnHost, n as createRetryableLazy, o as QueryErrorDialog, p as parseParams, r as ResultView, s as isApiVersionBelow, u as getCsvBlobUrl, v as getStorage, w as useVariantsEnabled, x as isVisionPasteTarget, y as onLocalStorageCleared } from "./SanityVision-DOH_LzRg.js";
|
|
3
3
|
import { Component, Suspense, createContext, memo, use, useContext, useEffect, useId, useLayoutEffect, useRef, useState, useSyncExternalStore } from "react";
|
|
4
4
|
import { ContextMenuButton, UserAvatar, getDefaultVariant, getReleaseIdFromReleaseDocumentId, getVariantTitle, isCardinalityOneRelease, sortReleases, useActiveReleases, useClient, useDateTimeFormat, usePerspective, useScheduledDraftsEnabled, useSchema, useTranslation, useWorkspace } from "sanity";
|
|
5
5
|
import { useRouter } from "sanity/router";
|
|
@@ -15,7 +15,6 @@ import { syntaxTree } from "@codemirror/language";
|
|
|
15
15
|
import { EditorSelection, EditorState, Facet, StateField } from "@codemirror/state";
|
|
16
16
|
import { EditorView, hoverTooltip, keymap, showTooltip } from "@codemirror/view";
|
|
17
17
|
import { parser } from "@sanity/lezer-groq";
|
|
18
|
-
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
19
18
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
20
19
|
import { ErrorOutlineIcon } from "@sanity/icons/ErrorOutline";
|
|
21
20
|
import { Tooltip } from "@sanity/ui/tooltip";
|
|
@@ -1184,7 +1183,7 @@ function useOnValueChange(value, onChange) {
|
|
|
1184
1183
|
function cx(...classNames) {
|
|
1185
1184
|
return classNames.filter(Boolean).join(" ");
|
|
1186
1185
|
}
|
|
1187
|
-
|
|
1186
|
+
const _key8$1 = "cTWfhW_lintFindingButton", _key12$1 = "cTWfhW_paneFill", _key16 = "cTWfhW_previewCode", _key29 = "cTWfhW_sidebarItem", _key41 = "cTWfhW_splitPane", _key42 = "cTWfhW_splitPaneContainer";
|
|
1188
1187
|
/** The dataset a tab queries: the workspace's while following it, otherwise the pinned one */
|
|
1189
1188
|
function getTabDataset(options, workspaceDataset) {
|
|
1190
1189
|
return options.datasetMode === "workspace" ? workspaceDataset : options.dataset;
|
|
@@ -1215,9 +1214,9 @@ function withoutPublishedStack(perspective) {
|
|
|
1215
1214
|
}
|
|
1216
1215
|
/** Reads the studio state every tab's options are resolved against */
|
|
1217
1216
|
function useRequestEnvironment() {
|
|
1218
|
-
let $ = c(
|
|
1217
|
+
let $ = c(14), { perspectiveStack, selectedVariantNames } = usePerspective(), workspaceDataset = useVistaSelector(selectWorkspaceDataset), isScheduledDraftsEnabled = useScheduledDraftsEnabled(), { data: t0 } = useActiveReleases(), t1;
|
|
1219
1218
|
$[0] === t0 ? t1 = $[1] : (t1 = t0 === void 0 ? [] : t0, $[0] = t0, $[1] = t1);
|
|
1220
|
-
let releases = t1, isDraftModelEnabled = useWorkspace().document.drafts.enabled, t2;
|
|
1219
|
+
let releases = t1, isDraftModelEnabled = useWorkspace().document.drafts.enabled, isVariantsEnabled = useVariantsEnabled(), t2;
|
|
1221
1220
|
bb0: {
|
|
1222
1221
|
if (!isScheduledDraftsEnabled) {
|
|
1223
1222
|
t2 = void 0;
|
|
@@ -1233,13 +1232,14 @@ function useRequestEnvironment() {
|
|
|
1233
1232
|
t2 = t3;
|
|
1234
1233
|
}
|
|
1235
1234
|
let scheduledDraftsStack = t2, t3;
|
|
1236
|
-
return $[7] !== isScheduledDraftsEnabled || $[8] !==
|
|
1235
|
+
return $[7] !== isScheduledDraftsEnabled || $[8] !== isVariantsEnabled || $[9] !== perspectiveStack || $[10] !== scheduledDraftsStack || $[11] !== selectedVariantNames || $[12] !== workspaceDataset ? (t3 = {
|
|
1237
1236
|
workspaceDataset,
|
|
1238
1237
|
perspectiveStack,
|
|
1239
1238
|
selectedVariantNames,
|
|
1239
|
+
isVariantsEnabled,
|
|
1240
1240
|
scheduledDraftsStack,
|
|
1241
1241
|
isScheduledDraftsEnabled
|
|
1242
|
-
}, $[7] = isScheduledDraftsEnabled, $[8] =
|
|
1242
|
+
}, $[7] = isScheduledDraftsEnabled, $[8] = isVariantsEnabled, $[9] = perspectiveStack, $[10] = scheduledDraftsStack, $[11] = selectedVariantNames, $[12] = workspaceDataset, $[13] = t3) : t3 = $[13], t3;
|
|
1243
1243
|
}
|
|
1244
1244
|
function _temp2$12(release_0) {
|
|
1245
1245
|
return getReleaseIdFromReleaseDocumentId(release_0._id);
|
|
@@ -1250,10 +1250,10 @@ function _temp$23(release) {
|
|
|
1250
1250
|
/**
|
|
1251
1251
|
* Resolves a tab's options against the studio state: a followed workspace dataset, the `global`
|
|
1252
1252
|
* and `scheduledDrafts` perspectives becoming real perspective stacks, and the navbar variant,
|
|
1253
|
-
* which locks the API version to the experimental one.
|
|
1253
|
+
* which locks the API version to the experimental one (where the workspace has variants at all).
|
|
1254
1254
|
*/
|
|
1255
1255
|
function resolveRequestOptions(options, environment) {
|
|
1256
|
-
let { workspaceDataset, perspectiveStack, selectedVariantNames, scheduledDraftsStack } = environment, dataset = getTabDataset(options, workspaceDataset), variant = options.variant === "global" ? getDefaultVariant(selectedVariantNames) : void 0, isValidApiVersion = validateApiVersion(options.apiVersion), userApiVersion = isValidApiVersion ? prefixApiVersion(options.apiVersion) : DEFAULT_API_VERSION, apiVersion = variant ? VARIANTS_API_VERSION : userApiVersion, tabPerspective = getEffectivePerspective(options.perspective, environment.isScheduledDraftsEnabled), perspective = withoutPublishedStack(getActivePerspective({
|
|
1256
|
+
let { workspaceDataset, perspectiveStack, selectedVariantNames, isVariantsEnabled, scheduledDraftsStack } = environment, dataset = getTabDataset(options, workspaceDataset), variant = isVariantsEnabled && options.variant === "global" ? getDefaultVariant(selectedVariantNames) : void 0, isValidApiVersion = validateApiVersion(options.apiVersion), userApiVersion = isValidApiVersion ? prefixApiVersion(options.apiVersion) : DEFAULT_API_VERSION, apiVersion = variant ? VARIANTS_API_VERSION : userApiVersion, tabPerspective = getEffectivePerspective(options.perspective, environment.isScheduledDraftsEnabled), perspective = withoutPublishedStack(getActivePerspective({
|
|
1257
1257
|
visionPerspective: tabPerspective === "global" ? "pinnedRelease" : tabPerspective,
|
|
1258
1258
|
perspectiveStack,
|
|
1259
1259
|
scheduledDraftsStack
|
|
@@ -1525,7 +1525,7 @@ function QueryListPanel(t0) {
|
|
|
1525
1525
|
closable: !0,
|
|
1526
1526
|
id: "vista-saved-query-variant",
|
|
1527
1527
|
status: "warning",
|
|
1528
|
-
title: t("vista.saved.unavailable-variant", { variant: parsed_3.variant })
|
|
1528
|
+
title: t(environment.isVariantsEnabled ? "vista.saved.unavailable-variant" : "vista.saved.variants-disabled", { variant: parsed_3.variant })
|
|
1529
1529
|
});
|
|
1530
1530
|
}, $[22] = actorRef, $[23] = environment, $[24] = t, $[25] = toast, $[26] = t8) : t8 = $[26];
|
|
1531
1531
|
let warnAboutUnrepresentable = t8, t9;
|
|
@@ -1647,7 +1647,7 @@ function QueryListPanel(t0) {
|
|
|
1647
1647
|
}), $[67] = t19, $[68] = t20, $[69] = t21) : t21 = $[69];
|
|
1648
1648
|
let t22;
|
|
1649
1649
|
$[70] !== commitRename || $[71] !== deleteQuery || $[72] !== editingKey || $[73] !== editingTitle || $[74] !== emptyText || $[75] !== formatDate || $[76] !== handleUnshare || $[77] !== isOpenInTab || $[78] !== loadIntoCurrentTab || $[79] !== moving || $[80] !== openInNewTab || $[81] !== t || $[82] !== visibleItems ? (t22 = /* @__PURE__ */ jsx(Box, {
|
|
1650
|
-
className:
|
|
1650
|
+
className: "cTWfhW_scrollArea",
|
|
1651
1651
|
flexBasis: "0%",
|
|
1652
1652
|
flexGrow: 1,
|
|
1653
1653
|
children: visibleItems.length === 0 ? /* @__PURE__ */ jsx(Box, {
|
|
@@ -1688,7 +1688,7 @@ function QueryListPanel(t0) {
|
|
|
1688
1688
|
value: editingTitle
|
|
1689
1689
|
})
|
|
1690
1690
|
}) : /* @__PURE__ */ jsx(Button, {
|
|
1691
|
-
className:
|
|
1691
|
+
className: "cTWfhW_listItemButton",
|
|
1692
1692
|
"data-testid": "vista-saved-query-open",
|
|
1693
1693
|
justify: "flex-start",
|
|
1694
1694
|
mode: "bleed",
|
|
@@ -1708,7 +1708,7 @@ function QueryListPanel(t0) {
|
|
|
1708
1708
|
children: query_7.title || t("label.untitled-query")
|
|
1709
1709
|
}),
|
|
1710
1710
|
preview_0 && /* @__PURE__ */ jsx(Box, {
|
|
1711
|
-
className: "
|
|
1711
|
+
className: "cTWfhW_previewCode",
|
|
1712
1712
|
children: /* @__PURE__ */ jsx(Code, {
|
|
1713
1713
|
size: 0,
|
|
1714
1714
|
children: preview_0
|
|
@@ -2206,45 +2206,58 @@ function UseCdnField(t0) {
|
|
|
2206
2206
|
children: t5
|
|
2207
2207
|
}), $[11] = checked, $[12] = onChange, $[13] = t3, $[14] = t4, $[15] = t5, $[16] = testId, $[17] = t6) : t6 = $[17], t6;
|
|
2208
2208
|
}
|
|
2209
|
-
/**
|
|
2209
|
+
/**
|
|
2210
|
+
* Sends the navbar's variant with the query, or none; picking another variant is not offered
|
|
2211
|
+
* here. Shown only where the navbar has a variant selector of its own: a workspace with variants
|
|
2212
|
+
* switched off has no variant to send, so there is nothing to choose.
|
|
2213
|
+
*/
|
|
2210
2214
|
function VariantSelect(t0) {
|
|
2211
|
-
let $ = c(
|
|
2212
|
-
if ($[0] !== id || $[1] !==
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2215
|
+
let $ = c(49), { id, value, onChange } = t0, { t } = useTranslation(visionLocaleNamespace), isVariantsEnabled = useVariantsEnabled(), { selectedVariants, selectedVariantNames } = usePerspective(), T0, T1, t1, t10, t11, t2, t3, t4, t5, t6, t7, t8, t9;
|
|
2216
|
+
if ($[0] !== id || $[1] !== isVariantsEnabled || $[2] !== onChange || $[3] !== selectedVariantNames || $[4] !== selectedVariants || $[5] !== t || $[6] !== value) {
|
|
2217
|
+
t11 = Symbol.for("react.early_return_sentinel");
|
|
2218
|
+
bb0: {
|
|
2219
|
+
let selectedVariant = getDefaultVariant(selectedVariants), globalVariantName = selectedVariant ? getVariantTitle(selectedVariant) : getDefaultVariant(selectedVariantNames);
|
|
2220
|
+
if (!isVariantsEnabled) {
|
|
2221
|
+
t11 = null;
|
|
2222
|
+
break bb0;
|
|
2223
|
+
}
|
|
2224
|
+
T1 = Stack, t9 = 2;
|
|
2225
|
+
let t12;
|
|
2226
|
+
$[20] === t ? t12 = $[21] : (t12 = t("vista.options.variant-label"), $[20] = t, $[21] = t12), $[22] !== id || $[23] !== t12 ? (t10 = /* @__PURE__ */ jsx(FieldLabel, {
|
|
2227
|
+
htmlFor: id,
|
|
2228
|
+
children: t12
|
|
2229
|
+
}), $[22] = id, $[23] = t12, $[24] = t10) : t10 = $[24], T0 = Select, t3 = `${id}-select`, t4 = 1, t5 = id, $[25] === onChange ? t6 = $[26] : (t6 = (event) => onChange(event.currentTarget.value === "none" ? "none" : "global"), $[25] = onChange, $[26] = t6), t7 = 2, t8 = value, t1 = "global", t2 = globalVariantName ? t("vista.options.variant.global", { name: globalVariantName }) : t("vista.options.variant.global-none");
|
|
2230
|
+
}
|
|
2231
|
+
$[0] = id, $[1] = isVariantsEnabled, $[2] = onChange, $[3] = selectedVariantNames, $[4] = selectedVariants, $[5] = t, $[6] = value, $[7] = T0, $[8] = T1, $[9] = t1, $[10] = t10, $[11] = t11, $[12] = t2, $[13] = t3, $[14] = t4, $[15] = t5, $[16] = t6, $[17] = t7, $[18] = t8, $[19] = t9;
|
|
2232
|
+
} else T0 = $[7], T1 = $[8], t1 = $[9], t10 = $[10], t11 = $[11], t2 = $[12], t3 = $[13], t4 = $[14], t5 = $[15], t6 = $[16], t7 = $[17], t8 = $[18], t9 = $[19];
|
|
2233
|
+
if (t11 !== Symbol.for("react.early_return_sentinel")) return t11;
|
|
2234
|
+
let t12;
|
|
2235
|
+
$[27] !== t1 || $[28] !== t2 ? (t12 = /* @__PURE__ */ jsx("option", {
|
|
2223
2236
|
value: t1,
|
|
2224
2237
|
children: t2
|
|
2225
|
-
}), $[
|
|
2226
|
-
let t12;
|
|
2227
|
-
$[28] === t ? t12 = $[29] : (t12 = t("vista.options.variant.none"), $[28] = t, $[29] = t12);
|
|
2238
|
+
}), $[27] = t1, $[28] = t2, $[29] = t12) : t12 = $[29];
|
|
2228
2239
|
let t13;
|
|
2229
|
-
$[30] ===
|
|
2230
|
-
value: "none",
|
|
2231
|
-
children: t12
|
|
2232
|
-
}), $[30] = t12, $[31] = t13);
|
|
2240
|
+
$[30] === t ? t13 = $[31] : (t13 = t("vista.options.variant.none"), $[30] = t, $[31] = t13);
|
|
2233
2241
|
let t14;
|
|
2234
|
-
$[32]
|
|
2242
|
+
$[32] === t13 ? t14 = $[33] : (t14 = /* @__PURE__ */ jsx("option", {
|
|
2243
|
+
value: "none",
|
|
2244
|
+
children: t13
|
|
2245
|
+
}), $[32] = t13, $[33] = t14);
|
|
2246
|
+
let t15;
|
|
2247
|
+
$[34] !== T0 || $[35] !== t12 || $[36] !== t14 || $[37] !== t3 || $[38] !== t4 || $[39] !== t5 || $[40] !== t6 || $[41] !== t7 || $[42] !== t8 ? (t15 = /* @__PURE__ */ jsxs(T0, {
|
|
2235
2248
|
"data-testid": t3,
|
|
2236
2249
|
fontSize: t4,
|
|
2237
2250
|
id: t5,
|
|
2238
2251
|
onChange: t6,
|
|
2239
2252
|
padding: t7,
|
|
2240
2253
|
value: t8,
|
|
2241
|
-
children: [
|
|
2242
|
-
}), $[
|
|
2243
|
-
let
|
|
2244
|
-
return $[
|
|
2254
|
+
children: [t12, t14]
|
|
2255
|
+
}), $[34] = T0, $[35] = t12, $[36] = t14, $[37] = t3, $[38] = t4, $[39] = t5, $[40] = t6, $[41] = t7, $[42] = t8, $[43] = t15) : t15 = $[43];
|
|
2256
|
+
let t16;
|
|
2257
|
+
return $[44] !== T1 || $[45] !== t10 || $[46] !== t15 || $[47] !== t9 ? (t16 = /* @__PURE__ */ jsxs(T1, {
|
|
2245
2258
|
gap: t9,
|
|
2246
|
-
children: [t10,
|
|
2247
|
-
}), $[
|
|
2259
|
+
children: [t10, t15]
|
|
2260
|
+
}), $[44] = T1, $[45] = t10, $[46] = t15, $[47] = t9, $[48] = t16) : t16 = $[48], t16;
|
|
2248
2261
|
}
|
|
2249
2262
|
/** One field path per line (commas work too), each once */
|
|
2250
2263
|
function parseFieldList(text) {
|
|
@@ -2613,8 +2626,8 @@ function SidebarDrawer(t0) {
|
|
|
2613
2626
|
$[5] !== close || $[6] !== overlay ? (t3 = (event) => {
|
|
2614
2627
|
overlay && event.key === "Escape" && (event.preventDefault(), close());
|
|
2615
2628
|
}, $[5] = close, $[6] = overlay, $[7] = t3) : t3 = $[7];
|
|
2616
|
-
let handleKeyDown = t3, t4 = !overlay, t5 = overlay ? title : void 0, t6 = overlay || void 0, t7 = drawer !== "saved" && drawer !== "shared" && "
|
|
2617
|
-
$[8] !== t7 || $[9] !== t8 ? (t9 = cx(
|
|
2629
|
+
let handleKeyDown = t3, t4 = !overlay, t5 = overlay ? title : void 0, t6 = overlay || void 0, t7 = drawer !== "saved" && drawer !== "shared" && "cTWfhW_sidebarDrawerWide", t8 = overlay && "cTWfhW_sidebarDrawerOverlay", t9;
|
|
2630
|
+
$[8] !== t7 || $[9] !== t8 ? (t9 = cx("cTWfhW_sidebarDrawer", t7, t8), $[8] = t7, $[9] = t8, $[10] = t9) : t9 = $[10];
|
|
2618
2631
|
let t10 = `vista-drawer-${drawer}`, t11 = overlay ? "dialog" : void 0, t12;
|
|
2619
2632
|
$[11] === title ? t12 = $[12] : (t12 = /* @__PURE__ */ jsx(Text, {
|
|
2620
2633
|
size: 1,
|
|
@@ -2670,7 +2683,7 @@ function SidebarItem(t0) {
|
|
|
2670
2683
|
let $ = c(28), { icon, label, expanded, selected, badge, testId, onClick } = t0, name = badge ? `${label} (${badge.count})` : label, t1;
|
|
2671
2684
|
$[0] !== badge || $[1] !== expanded || $[2] !== testId ? (t1 = badge && /* @__PURE__ */ jsx(Badge, {
|
|
2672
2685
|
"aria-hidden": !0,
|
|
2673
|
-
className: cx("
|
|
2686
|
+
className: cx("cTWfhW_sidebarItemBadge", expanded && "cTWfhW_sidebarItemBadgeExpanded"),
|
|
2674
2687
|
"data-testid": `${testId}-badge`,
|
|
2675
2688
|
fontSize: 0,
|
|
2676
2689
|
tone: badge.tone,
|
|
@@ -2692,7 +2705,7 @@ function SidebarItem(t0) {
|
|
|
2692
2705
|
}), $[4] = icon, $[5] = label, $[6] = name, $[7] = onClick, $[8] = selected, $[9] = testId, $[10] = t2) : t2 = $[10];
|
|
2693
2706
|
let t3;
|
|
2694
2707
|
return $[11] !== count || $[12] !== t2 ? (t3 = /* @__PURE__ */ jsxs("div", {
|
|
2695
|
-
className:
|
|
2708
|
+
className: _key29,
|
|
2696
2709
|
children: [t2, count]
|
|
2697
2710
|
}), $[11] = count, $[12] = t2, $[13] = t3) : t3 = $[13], t3;
|
|
2698
2711
|
}
|
|
@@ -2720,7 +2733,7 @@ function SidebarItem(t0) {
|
|
|
2720
2733
|
}), $[22] = t2, $[23] = t3, $[24] = t4) : t4 = $[24];
|
|
2721
2734
|
let t5;
|
|
2722
2735
|
return $[25] !== count || $[26] !== t4 ? (t5 = /* @__PURE__ */ jsxs("div", {
|
|
2723
|
-
className:
|
|
2736
|
+
className: _key29,
|
|
2724
2737
|
children: [t4, count]
|
|
2725
2738
|
}), $[25] = count, $[26] = t4, $[27] = t5) : t5 = $[27], t5;
|
|
2726
2739
|
}
|
|
@@ -2738,8 +2751,8 @@ function VistaSidebar() {
|
|
|
2738
2751
|
}, $[3] = t1) : t1 = $[3], useOnValueChange(drawer, t1);
|
|
2739
2752
|
let t2;
|
|
2740
2753
|
$[4] === t ? t2 = $[5] : (t2 = t("vista.sidebar.label"), $[4] = t, $[5] = t2);
|
|
2741
|
-
let t3 = expanded ?
|
|
2742
|
-
$[6] !== t3 || $[7] !== t4 ? (t5 = cx(
|
|
2754
|
+
let t3 = expanded ? "cTWfhW_sidebarRailExpanded" : "cTWfhW_sidebarRailCollapsed", t4 = isMobile && expanded && "cTWfhW_sidebarRailOverlay", t5;
|
|
2755
|
+
$[6] !== t3 || $[7] !== t4 ? (t5 = cx("cTWfhW_sidebarRail", t3, t4), $[6] = t3, $[7] = t4, $[8] = t5) : t5 = $[8];
|
|
2743
2756
|
let t6 = isMobile && drawer !== null, t7;
|
|
2744
2757
|
$[9] === t ? t7 = $[10] : (t7 = t("vista.sidebar.shared-queries"), $[9] = t, $[10] = t7);
|
|
2745
2758
|
let t8;
|
|
@@ -2928,7 +2941,7 @@ function VistaSidebar() {
|
|
|
2928
2941
|
}), $[112] = t2, $[113] = t34, $[114] = t48, $[115] = t5, $[116] = t6, $[117] = t49) : t49 = $[117];
|
|
2929
2942
|
let rail = t49, t50;
|
|
2930
2943
|
$[118] !== isMobile || $[119] !== rail ? (t50 = isMobile ? /* @__PURE__ */ jsx("div", {
|
|
2931
|
-
className:
|
|
2944
|
+
className: "cTWfhW_sidebarSlot",
|
|
2932
2945
|
children: rail
|
|
2933
2946
|
}) : rail, $[118] = isMobile, $[119] = rail, $[120] = t50) : t50 = $[120];
|
|
2934
2947
|
let t51;
|
|
@@ -5144,7 +5157,7 @@ function CollapsiblePanel(props) {
|
|
|
5144
5157
|
} else t6 = $[16];
|
|
5145
5158
|
let t7;
|
|
5146
5159
|
$[23] === t6 ? t7 = $[24] : (t7 = /* @__PURE__ */ jsx(Box, {
|
|
5147
|
-
className:
|
|
5160
|
+
className: "cTWfhW_panelTabs",
|
|
5148
5161
|
ref: stripRef,
|
|
5149
5162
|
children: /* @__PURE__ */ jsx(TabList, {
|
|
5150
5163
|
gap: 1,
|
|
@@ -5200,7 +5213,7 @@ function _temp$17(tab_0) {
|
|
|
5200
5213
|
*/
|
|
5201
5214
|
function CollapsibleSection(props) {
|
|
5202
5215
|
let $ = c(31), { id, title, icon, actions, expanded, onToggle, className, style, ref, handle, children } = props, t0 = expanded && className, t1;
|
|
5203
|
-
$[0] === t0 ? t1 = $[1] : (t1 = cx(
|
|
5216
|
+
$[0] === t0 ? t1 = $[1] : (t1 = cx("cTWfhW_collapsibleSection", t0), $[0] = t0, $[1] = t1);
|
|
5204
5217
|
let t2 = `${id}-panel`, t3 = expanded ? style : void 0, t4 = `${id}-content`, t5 = `${id}-toggle`, t6 = expanded ? ChevronDownIcon : ChevronRightIcon, t7 = `${id}-toggle`, t8;
|
|
5205
5218
|
$[2] !== expanded || $[3] !== onToggle || $[4] !== t4 || $[5] !== t5 || $[6] !== t6 || $[7] !== t7 || $[8] !== title ? (t8 = /* @__PURE__ */ jsx(Button, {
|
|
5206
5219
|
"aria-controls": t4,
|
|
@@ -5236,7 +5249,7 @@ function CollapsibleSection(props) {
|
|
|
5236
5249
|
let t11;
|
|
5237
5250
|
$[18] !== children || $[19] !== expanded || $[20] !== id ? (t11 = expanded && /* @__PURE__ */ jsx(Box, {
|
|
5238
5251
|
"aria-labelledby": `${id}-toggle`,
|
|
5239
|
-
className: "
|
|
5252
|
+
className: "cTWfhW_sectionBody",
|
|
5240
5253
|
id: `${id}-content`,
|
|
5241
5254
|
role: "region",
|
|
5242
5255
|
children
|
|
@@ -5795,7 +5808,7 @@ function OptionsPanel(t0) {
|
|
|
5795
5808
|
}), $[19] = options.variant, $[20] = t6, $[21] = t7) : t7 = $[21];
|
|
5796
5809
|
let t8;
|
|
5797
5810
|
$[22] !== t1 || $[23] !== t3 || $[24] !== t5 || $[25] !== t7 ? (t8 = /* @__PURE__ */ jsxs("div", {
|
|
5798
|
-
className:
|
|
5811
|
+
className: "cTWfhW_optionsGrid",
|
|
5799
5812
|
children: [
|
|
5800
5813
|
t1,
|
|
5801
5814
|
t3,
|
|
@@ -7037,7 +7050,7 @@ function ExportQueryDialog(t0) {
|
|
|
7037
7050
|
let t8 = `vista-export-${active.id}-tab`, t9 = `vista-export-${active.id}-panel`, t10;
|
|
7038
7051
|
$[27] !== active.code || $[28] !== active.language ? (t10 = /* @__PURE__ */ jsx(Card, {
|
|
7039
7052
|
border: !0,
|
|
7040
|
-
className:
|
|
7053
|
+
className: "cTWfhW_codeBlock",
|
|
7041
7054
|
overflow: "auto",
|
|
7042
7055
|
padding: 3,
|
|
7043
7056
|
radius: 2,
|
|
@@ -7377,13 +7390,13 @@ function RequestPanel(props) {
|
|
|
7377
7390
|
let t18;
|
|
7378
7391
|
$[44] === t17 ? t18 = $[45] : (t18 = /* @__PURE__ */ jsx(Flex, {
|
|
7379
7392
|
alignItems: "center",
|
|
7380
|
-
className:
|
|
7393
|
+
className: "cTWfhW_labelActions",
|
|
7381
7394
|
gap: 1,
|
|
7382
7395
|
children: t17
|
|
7383
7396
|
}), $[44] = t17, $[45] = t18);
|
|
7384
7397
|
let t19;
|
|
7385
7398
|
$[46] !== t15 || $[47] !== t18 ? (t19 = /* @__PURE__ */ jsx(Box, {
|
|
7386
|
-
className:
|
|
7399
|
+
className: "cTWfhW_editorLabel",
|
|
7387
7400
|
children: /* @__PURE__ */ jsxs(Flex, {
|
|
7388
7401
|
alignItems: "center",
|
|
7389
7402
|
gap: 2,
|
|
@@ -7403,7 +7416,7 @@ function RequestPanel(props) {
|
|
|
7403
7416
|
}), $[49] = onQueryChange, $[50] = queryEditorRef, $[51] = queryExtensions, $[52] = tab.query, $[53] = t20) : t20 = $[53];
|
|
7404
7417
|
let t21;
|
|
7405
7418
|
$[54] !== t19 || $[55] !== t20 ? (t21 = /* @__PURE__ */ jsxs(Box, {
|
|
7406
|
-
className:
|
|
7419
|
+
className: "cTWfhW_editorContainer",
|
|
7407
7420
|
"data-testid": "vista-query-editor",
|
|
7408
7421
|
flexBasis: "0%",
|
|
7409
7422
|
flexGrow: 1,
|
|
@@ -7413,11 +7426,11 @@ function RequestPanel(props) {
|
|
|
7413
7426
|
}), $[54] = t19, $[55] = t20, $[56] = t21) : t21 = $[56];
|
|
7414
7427
|
let t22;
|
|
7415
7428
|
$[57] !== t13 || $[58] !== t21 ? (t22 = /* @__PURE__ */ jsxs(Flex, {
|
|
7416
|
-
className:
|
|
7429
|
+
className: "cTWfhW_querySection",
|
|
7417
7430
|
children: [t13, t21]
|
|
7418
7431
|
}), $[57] = t13, $[58] = t21, $[59] = t22) : t22 = $[59];
|
|
7419
|
-
let t23 = paramsResize.height !== null && "
|
|
7420
|
-
$[60] === t23 ? t24 = $[61] : (t24 = cx(
|
|
7432
|
+
let t23 = paramsResize.height !== null && "cTWfhW_paramsSectionResized", t24;
|
|
7433
|
+
$[60] === t23 ? t24 = $[61] : (t24 = cx("cTWfhW_paramsSection", t23), $[60] = t23, $[61] = t24);
|
|
7421
7434
|
let t25;
|
|
7422
7435
|
$[62] !== paramsExpanded || $[63] !== paramsHeightNow || $[64] !== paramsResize.dragging || $[65] !== paramsResize.height || $[66] !== paramsResize.measured?.max || $[67] !== paramsResize.onFocus || $[68] !== paramsResize.onKeyDown || $[69] !== paramsResize.onPointerDown || $[70] !== paramsResize.reset || $[71] !== t ? (t25 = paramsExpanded && /* @__PURE__ */ jsx("div", {
|
|
7423
7436
|
"aria-label": t("vista.params.resize"),
|
|
@@ -7426,7 +7439,7 @@ function RequestPanel(props) {
|
|
|
7426
7439
|
"aria-valuemin": 98,
|
|
7427
7440
|
"aria-valuenow": paramsHeightNow,
|
|
7428
7441
|
"aria-valuetext": paramsResize.height === null && paramsHeightNow !== void 0 ? t("vista.params.fit-height", { height: paramsHeightNow }) : void 0,
|
|
7429
|
-
className: "
|
|
7442
|
+
className: "cTWfhW_sectionResizer",
|
|
7430
7443
|
"data-dragging": paramsResize.dragging,
|
|
7431
7444
|
"data-testid": "vista-request-params-resizer",
|
|
7432
7445
|
onDoubleClick: paramsResize.reset,
|
|
@@ -7521,7 +7534,7 @@ function RequestPanel(props) {
|
|
|
7521
7534
|
}), $[125] = onOptionsChange, $[126] = resolved, $[127] = tab.options, $[128] = t44) : t44 = $[128];
|
|
7522
7535
|
let t45;
|
|
7523
7536
|
$[129] !== optionsExpanded || $[130] !== t42 || $[131] !== t43 || $[132] !== t44 ? (t45 = /* @__PURE__ */ jsx(CollapsibleSection, {
|
|
7524
|
-
className:
|
|
7537
|
+
className: "cTWfhW_optionsSection",
|
|
7525
7538
|
expanded: optionsExpanded,
|
|
7526
7539
|
id: "vista-request-options",
|
|
7527
7540
|
onToggle: t42,
|
|
@@ -7680,16 +7693,16 @@ function ResizableSplit(props) {
|
|
|
7680
7693
|
}, $[14] = allowResize, $[15] = bounds, $[16] = onChange, $[17] = onReset, $[18] = primary, $[19] = shownSize, $[20] = split, $[21] = t5) : t5 = $[21];
|
|
7681
7694
|
let onKeyDown = t5, t6 = `0 0 ${shownSize}px`, t7;
|
|
7682
7695
|
$[22] === t6 ? t7 = $[23] : (t7 = { flex: t6 }, $[22] = t6, $[23] = t7);
|
|
7683
|
-
let primaryStyle = t7, t8 = split === "vertical" ?
|
|
7684
|
-
$[24] === t8 ? t9 = $[25] : (t9 = cx(
|
|
7696
|
+
let primaryStyle = t7, t8 = split === "vertical" ? "cTWfhW_splitRootRow" : "cTWfhW_splitRootColumn", t9;
|
|
7697
|
+
$[24] === t8 ? t9 = $[25] : (t9 = cx("cTWfhW_splitRoot", t8), $[24] = t8, $[25] = t9);
|
|
7685
7698
|
let t10 = primary === "first" ? primaryStyle : void 0, t11;
|
|
7686
7699
|
$[26] !== children[0] || $[27] !== t10 ? (t11 = /* @__PURE__ */ jsx("div", {
|
|
7687
|
-
className:
|
|
7700
|
+
className: _key41,
|
|
7688
7701
|
style: t10,
|
|
7689
7702
|
children: children[0]
|
|
7690
7703
|
}), $[26] = children[0], $[27] = t10, $[28] = t11) : t11 = $[28];
|
|
7691
|
-
let t12 = !allowResize || void 0, t13 = bounds?.max, t14 = split === "vertical" ?
|
|
7692
|
-
$[29] !== t14 || $[30] !== t15 ? (t16 = cx(
|
|
7704
|
+
let t12 = !allowResize || void 0, t13 = bounds?.max, t14 = split === "vertical" ? "cTWfhW_splitHandleVertical" : "cTWfhW_splitHandleHorizontal", t15 = !allowResize && "cTWfhW_splitHandleDisabled", t16;
|
|
7705
|
+
$[29] !== t14 || $[30] !== t15 ? (t16 = cx("cTWfhW_splitHandle", t14, t15), $[29] = t14, $[30] = t15, $[31] = t16) : t16 = $[31];
|
|
7693
7706
|
let t17 = testId && `${testId}-handle`, t18 = allowResize ? 0 : -1, t19;
|
|
7694
7707
|
$[32] !== dragging || $[33] !== label || $[34] !== minSize || $[35] !== onKeyDown || $[36] !== onPointerDown || $[37] !== shownSize || $[38] !== split || $[39] !== t12 || $[40] !== t13 || $[41] !== t16 || $[42] !== t17 || $[43] !== t18 ? (t19 = /* @__PURE__ */ jsx("div", {
|
|
7695
7708
|
"aria-disabled": t12,
|
|
@@ -7709,7 +7722,7 @@ function ResizableSplit(props) {
|
|
|
7709
7722
|
}), $[32] = dragging, $[33] = label, $[34] = minSize, $[35] = onKeyDown, $[36] = onPointerDown, $[37] = shownSize, $[38] = split, $[39] = t12, $[40] = t13, $[41] = t16, $[42] = t17, $[43] = t18, $[44] = t19) : t19 = $[44];
|
|
7710
7723
|
let t20 = primary === "second" ? primaryStyle : void 0, t21;
|
|
7711
7724
|
$[45] !== children[1] || $[46] !== t20 ? (t21 = /* @__PURE__ */ jsx("div", {
|
|
7712
|
-
className:
|
|
7725
|
+
className: _key41,
|
|
7713
7726
|
style: t20,
|
|
7714
7727
|
children: children[1]
|
|
7715
7728
|
}), $[45] = children[1], $[46] = t20, $[47] = t21) : t21 = $[47];
|
|
@@ -7854,14 +7867,14 @@ function SplitWithBottomPanel(props) {
|
|
|
7854
7867
|
})), $[5] = layout, $[6] = t4, $[7] = t5);
|
|
7855
7868
|
let t6 = collapsed ? 35 : bottomSize, t7 = `${testId}-split`, t8;
|
|
7856
7869
|
$[8] === children ? t8 = $[9] : (t8 = /* @__PURE__ */ jsx(Flex, {
|
|
7857
|
-
className:
|
|
7870
|
+
className: _key12$1,
|
|
7858
7871
|
children
|
|
7859
7872
|
}), $[8] = children, $[9] = t8);
|
|
7860
7873
|
let t9;
|
|
7861
7874
|
$[10] === Symbol.for("react.memo_cache_sentinel") ? (t9 = () => setCollapsed(_temp$14), $[10] = t9) : t9 = $[10];
|
|
7862
7875
|
let t10;
|
|
7863
7876
|
$[11] !== activeTabId || $[12] !== collapsed || $[13] !== id || $[14] !== tabs ? (t10 = /* @__PURE__ */ jsx(Box, {
|
|
7864
|
-
className:
|
|
7877
|
+
className: _key12$1,
|
|
7865
7878
|
children: /* @__PURE__ */ jsx(CollapsiblePanel, {
|
|
7866
7879
|
activeTabId,
|
|
7867
7880
|
collapsed,
|
|
@@ -7873,7 +7886,7 @@ function SplitWithBottomPanel(props) {
|
|
|
7873
7886
|
}), $[11] = activeTabId, $[12] = collapsed, $[13] = id, $[14] = tabs, $[15] = t10) : t10 = $[15];
|
|
7874
7887
|
let t11;
|
|
7875
7888
|
$[16] !== t10 || $[17] !== t2 || $[18] !== t3 || $[19] !== t4 || $[20] !== t5 || $[21] !== t6 || $[22] !== t7 || $[23] !== t8 ? (t11 = /* @__PURE__ */ jsx(Box, {
|
|
7876
|
-
className:
|
|
7889
|
+
className: _key42,
|
|
7877
7890
|
children: /* @__PURE__ */ jsxs(ResizableSplit, {
|
|
7878
7891
|
allowResize: t2,
|
|
7879
7892
|
label: t3,
|
|
@@ -8004,7 +8017,7 @@ function JsonEditor(props) {
|
|
|
8004
8017
|
let t7;
|
|
8005
8018
|
$[14] !== t6 || $[15] !== testId ? (t7 = /* @__PURE__ */ jsx(Card, {
|
|
8006
8019
|
border: !0,
|
|
8007
|
-
className:
|
|
8020
|
+
className: "cTWfhW_jsonEditorBox",
|
|
8008
8021
|
"data-testid": testId,
|
|
8009
8022
|
radius: 2,
|
|
8010
8023
|
children: t6
|
|
@@ -8438,7 +8451,7 @@ function DeltaResult(props) {
|
|
|
8438
8451
|
let t9;
|
|
8439
8452
|
$[29] !== evaluation.status || $[30] !== evaluation.value ? (t9 = evaluation.status === "done" && typeof evaluation.value != "boolean" && /* @__PURE__ */ jsx(Card, {
|
|
8440
8453
|
border: !0,
|
|
8441
|
-
className: "
|
|
8454
|
+
className: "cTWfhW_drawerScroller",
|
|
8442
8455
|
padding: 3,
|
|
8443
8456
|
radius: 2,
|
|
8444
8457
|
children: /* @__PURE__ */ jsx(Code, {
|
|
@@ -8730,7 +8743,7 @@ function _temp$12(paragraph) {
|
|
|
8730
8743
|
function FunctionPreview(t0) {
|
|
8731
8744
|
let $ = c(7), { signature, body } = t0, t1;
|
|
8732
8745
|
$[0] === signature ? t1 = $[1] : (t1 = /* @__PURE__ */ jsx(Box, {
|
|
8733
|
-
className:
|
|
8746
|
+
className: _key16,
|
|
8734
8747
|
children: /* @__PURE__ */ jsx(Code, {
|
|
8735
8748
|
size: 1,
|
|
8736
8749
|
children: signature
|
|
@@ -8738,7 +8751,7 @@ function FunctionPreview(t0) {
|
|
|
8738
8751
|
}), $[0] = signature, $[1] = t1);
|
|
8739
8752
|
let t2;
|
|
8740
8753
|
$[2] === body ? t2 = $[3] : (t2 = /* @__PURE__ */ jsx(Box, {
|
|
8741
|
-
className:
|
|
8754
|
+
className: _key16,
|
|
8742
8755
|
children: /* @__PURE__ */ jsx(Code, {
|
|
8743
8756
|
size: 0,
|
|
8744
8757
|
children: body
|
|
@@ -8756,7 +8769,7 @@ function DeclaredFunction(props) {
|
|
|
8756
8769
|
let upToDate = t0, t1;
|
|
8757
8770
|
$[3] !== declaration.id || $[4] !== t ? (t1 = t("vista.functions.reveal", { name: declaration.id }), $[3] = declaration.id, $[4] = t, $[5] = t1) : t1 = $[5];
|
|
8758
8771
|
let t2;
|
|
8759
|
-
$[6] === Symbol.for("react.memo_cache_sentinel") ? (t2 = cx(
|
|
8772
|
+
$[6] === Symbol.for("react.memo_cache_sentinel") ? (t2 = cx(_key8$1, "cTWfhW_shrinkable"), $[6] = t2) : t2 = $[6];
|
|
8760
8773
|
let t3;
|
|
8761
8774
|
$[7] !== declaration.range || $[8] !== onReveal ? (t3 = () => onReveal(declaration.range), $[7] = declaration.range, $[8] = onReveal, $[9] = t3) : t3 = $[9];
|
|
8762
8775
|
let t4;
|
|
@@ -9097,7 +9110,7 @@ function getRequestChanges(previous, next) {
|
|
|
9097
9110
|
lang: "text"
|
|
9098
9111
|
}), changes;
|
|
9099
9112
|
}
|
|
9100
|
-
const codeDiff = createRetryableLazy(() => import("./CodeDiff-
|
|
9113
|
+
const codeDiff = createRetryableLazy(() => import("./CodeDiff-MkS3Q87A.js")), CodeDiffLoader = codeDiff.Component;
|
|
9101
9114
|
/** Catches a diff that failed to load or render, and offers to load it again */
|
|
9102
9115
|
var DiffBoundary = class extends Component {
|
|
9103
9116
|
state = { failed: !1 };
|
|
@@ -9510,7 +9523,7 @@ function LintTab(t0) {
|
|
|
9510
9523
|
$[8] !== onReveal || $[9] !== t ? (t2 = (finding) => /* @__PURE__ */ jsx(Card, {
|
|
9511
9524
|
as: "button",
|
|
9512
9525
|
borderBottom: !0,
|
|
9513
|
-
className:
|
|
9526
|
+
className: _key8$1,
|
|
9514
9527
|
"data-testid": "vista-lint-finding",
|
|
9515
9528
|
onClick: () => onReveal(finding),
|
|
9516
9529
|
paddingX: 3,
|
|
@@ -10217,7 +10230,7 @@ function PreviewResult(props) {
|
|
|
10217
10230
|
children: t("vista.mutate.no-documents")
|
|
10218
10231
|
}) : /* @__PURE__ */ jsx(Card, {
|
|
10219
10232
|
border: !0,
|
|
10220
|
-
className:
|
|
10233
|
+
className: "cTWfhW_drawerScroller",
|
|
10221
10234
|
radius: 2,
|
|
10222
10235
|
children: preview.changes.map((change_0, index) => /* @__PURE__ */ jsx(ChangeRow, {
|
|
10223
10236
|
change: change_0,
|
|
@@ -11624,7 +11637,7 @@ function ExportTypesDialog(t0) {
|
|
|
11624
11637
|
let t6;
|
|
11625
11638
|
$[25] !== copyToClipboard || $[26] !== output.code || $[27] !== t ? (t6 = output.code && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Card, {
|
|
11626
11639
|
border: !0,
|
|
11627
|
-
className: "
|
|
11640
|
+
className: "cTWfhW_codeBlock",
|
|
11628
11641
|
overflow: "auto",
|
|
11629
11642
|
padding: 3,
|
|
11630
11643
|
radius: 2,
|
|
@@ -11924,8 +11937,7 @@ function layoutResultGraph(graph, { collapsed, charWidth }) {
|
|
|
11924
11937
|
height
|
|
11925
11938
|
};
|
|
11926
11939
|
}
|
|
11927
|
-
|
|
11928
|
-
const FIRST_VIEW_SCALE = .8, ZOOM_STEP = 1.25;
|
|
11940
|
+
const _key12 = "uhT08W_graphRowValue", FIRST_VIEW_SCALE = .8, ZOOM_STEP = 1.25;
|
|
11929
11941
|
/** What the graph leaves out of this result, or `undefined` when it shows all of it */
|
|
11930
11942
|
function describeLeftOut(graph, t) {
|
|
11931
11943
|
let { partialNodes, nodeLimitReached } = graph;
|
|
@@ -11980,12 +11992,12 @@ function RowContent(t0) {
|
|
|
11980
11992
|
case "value": {
|
|
11981
11993
|
let t1;
|
|
11982
11994
|
$[0] === row.key ? t1 = $[1] : (t1 = row.key && /* @__PURE__ */ jsx("span", {
|
|
11983
|
-
className: "
|
|
11995
|
+
className: "uhT08W_graphRowKey",
|
|
11984
11996
|
children: row.key
|
|
11985
11997
|
}), $[0] = row.key, $[1] = t1);
|
|
11986
11998
|
let t2;
|
|
11987
11999
|
$[2] !== row.text || $[3] !== row.type ? (t2 = /* @__PURE__ */ jsx("span", {
|
|
11988
|
-
className:
|
|
12000
|
+
className: _key12,
|
|
11989
12001
|
"data-type": row.type,
|
|
11990
12002
|
children: row.text
|
|
11991
12003
|
}), $[2] = row.text, $[3] = row.type, $[4] = t2) : t2 = $[4];
|
|
@@ -11995,17 +12007,17 @@ function RowContent(t0) {
|
|
|
11995
12007
|
case "child": {
|
|
11996
12008
|
let t1;
|
|
11997
12009
|
$[8] === row.key ? t1 = $[9] : (t1 = /* @__PURE__ */ jsx("span", {
|
|
11998
|
-
className:
|
|
12010
|
+
className: "uhT08W_graphRowKey",
|
|
11999
12011
|
children: row.key
|
|
12000
12012
|
}), $[8] = row.key, $[9] = t1);
|
|
12001
12013
|
let t2;
|
|
12002
12014
|
$[10] === row.summary ? t2 = $[11] : (t2 = /* @__PURE__ */ jsx("span", {
|
|
12003
|
-
className:
|
|
12015
|
+
className: _key12,
|
|
12004
12016
|
"data-type": "child",
|
|
12005
12017
|
children: row.summary
|
|
12006
12018
|
}), $[10] = row.summary, $[11] = t2);
|
|
12007
12019
|
let t3;
|
|
12008
|
-
$[12] === row.child ? t3 = $[13] : (t3 = row.child !== void 0 && /* @__PURE__ */ jsx("span", { className: "
|
|
12020
|
+
$[12] === row.child ? t3 = $[13] : (t3 = row.child !== void 0 && /* @__PURE__ */ jsx("span", { className: "uhT08W_graphRowPort" }), $[12] = row.child, $[13] = t3);
|
|
12009
12021
|
let t4;
|
|
12010
12022
|
return $[14] !== t1 || $[15] !== t2 || $[16] !== t3 ? (t4 = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
12011
12023
|
t1,
|
|
@@ -12018,7 +12030,7 @@ function RowContent(t0) {
|
|
|
12018
12030
|
$[18] !== row.count || $[19] !== t ? (t1 = t("vista.result.graph.more", { count: row.count }), $[18] = row.count, $[19] = t, $[20] = t1) : t1 = $[20];
|
|
12019
12031
|
let t2;
|
|
12020
12032
|
return $[21] === t1 ? t2 = $[22] : (t2 = /* @__PURE__ */ jsx("span", {
|
|
12021
|
-
className:
|
|
12033
|
+
className: _key12,
|
|
12022
12034
|
"data-type": "more",
|
|
12023
12035
|
children: t1
|
|
12024
12036
|
}), $[21] = t1, $[22] = t2), t2;
|
|
@@ -12031,7 +12043,7 @@ function GraphNodes(t0) {
|
|
|
12031
12043
|
$[0] === layout.edges ? t3 = $[1] : (t3 = layout.edges.map(_temp$4), $[0] = layout.edges, $[1] = t3);
|
|
12032
12044
|
let t4;
|
|
12033
12045
|
$[2] !== layout.height || $[3] !== layout.width || $[4] !== t3 ? (t4 = /* @__PURE__ */ jsx("svg", {
|
|
12034
|
-
className:
|
|
12046
|
+
className: "uhT08W_graphEdges",
|
|
12035
12047
|
"data-testid": "vista-graph-edges",
|
|
12036
12048
|
height: t1,
|
|
12037
12049
|
width: t2,
|
|
@@ -12044,7 +12056,7 @@ function GraphNodes(t0) {
|
|
|
12044
12056
|
let { node, x, y, width, height, collapsed, childCount } = t7, title = node.label ?? t("vista.result.graph.root");
|
|
12045
12057
|
return /* @__PURE__ */ jsxs("div", {
|
|
12046
12058
|
"aria-label": `${title} ${node.summary}`,
|
|
12047
|
-
className:
|
|
12059
|
+
className: "uhT08W_graphNode",
|
|
12048
12060
|
"data-testid": "vista-graph-node",
|
|
12049
12061
|
"data-keypath": node.id,
|
|
12050
12062
|
role: "group",
|
|
@@ -12055,19 +12067,19 @@ function GraphNodes(t0) {
|
|
|
12055
12067
|
height
|
|
12056
12068
|
},
|
|
12057
12069
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
12058
|
-
className:
|
|
12070
|
+
className: "uhT08W_graphNodeHeader",
|
|
12059
12071
|
children: [
|
|
12060
12072
|
/* @__PURE__ */ jsxs("span", {
|
|
12061
|
-
className:
|
|
12073
|
+
className: "uhT08W_graphNodeTitle",
|
|
12062
12074
|
children: [title, node.summary && /* @__PURE__ */ jsx("span", {
|
|
12063
|
-
className: "
|
|
12075
|
+
className: "uhT08W_graphNodeSummary",
|
|
12064
12076
|
children: node.summary
|
|
12065
12077
|
})]
|
|
12066
12078
|
}),
|
|
12067
12079
|
childCount > 0 && /* @__PURE__ */ jsxs("button", {
|
|
12068
12080
|
"aria-expanded": !collapsed,
|
|
12069
12081
|
"aria-label": collapsed ? t("vista.result.graph.expand", { count: childCount }) : t("vista.result.graph.collapse"),
|
|
12070
|
-
className: "
|
|
12082
|
+
className: "uhT08W_graphNodeButton",
|
|
12071
12083
|
"data-testid": "vista-graph-toggle",
|
|
12072
12084
|
onClick: () => onToggle(node.id),
|
|
12073
12085
|
type: "button",
|
|
@@ -12075,7 +12087,7 @@ function GraphNodes(t0) {
|
|
|
12075
12087
|
}),
|
|
12076
12088
|
/* @__PURE__ */ jsx("button", {
|
|
12077
12089
|
"aria-label": copyLabel,
|
|
12078
|
-
className:
|
|
12090
|
+
className: "uhT08W_graphNodeButton",
|
|
12079
12091
|
"data-testid": "vista-graph-copy",
|
|
12080
12092
|
onClick: () => onCopy(node.id),
|
|
12081
12093
|
type: "button",
|
|
@@ -12091,7 +12103,7 @@ function GraphNodes(t0) {
|
|
|
12091
12103
|
}
|
|
12092
12104
|
function _temp2$4(row, index) {
|
|
12093
12105
|
return /* @__PURE__ */ jsx("div", {
|
|
12094
|
-
className:
|
|
12106
|
+
className: "uhT08W_graphRow",
|
|
12095
12107
|
children: /* @__PURE__ */ jsx(RowContent, { row })
|
|
12096
12108
|
}, index);
|
|
12097
12109
|
}
|
|
@@ -12237,21 +12249,24 @@ function ResultGraph(t0) {
|
|
|
12237
12249
|
t22,
|
|
12238
12250
|
t24
|
|
12239
12251
|
], $[66] = t19, $[67] = t22, $[68] = t24, $[69] = t25) : t25 = $[69];
|
|
12240
|
-
let controls = t25, t26;
|
|
12241
|
-
$[70]
|
|
12242
|
-
|
|
12243
|
-
|
|
12244
|
-
|
|
12245
|
-
|
|
12246
|
-
|
|
12247
|
-
|
|
12248
|
-
|
|
12249
|
-
|
|
12250
|
-
|
|
12251
|
-
|
|
12252
|
+
let controls = t25, t26 = `${codeSize.fontSize}px`, t27;
|
|
12253
|
+
$[70] !== color.syntax.boolean || $[71] !== color.syntax.constant || $[72] !== color.syntax.number || $[73] !== color.syntax.property || $[74] !== color.syntax.string || $[75] !== font.code.family || $[76] !== t26 ? (t27 = {
|
|
12254
|
+
"--vision-graph-code-family": font.code.family,
|
|
12255
|
+
"--vision-graph-code-size": t26,
|
|
12256
|
+
"--vision-graph-property": color.syntax.property,
|
|
12257
|
+
"--vision-graph-string": color.syntax.string,
|
|
12258
|
+
"--vision-graph-number": color.syntax.number,
|
|
12259
|
+
"--vision-graph-boolean": color.syntax.boolean,
|
|
12260
|
+
"--vision-graph-constant": color.syntax.constant,
|
|
12261
|
+
"--vision-graph-header-height": `${GRAPH_METRICS.headerHeight}px`,
|
|
12262
|
+
"--vision-graph-row-height": `${GRAPH_METRICS.rowHeight}px`,
|
|
12263
|
+
"--vision-graph-padding-x": `${GRAPH_METRICS.paddingX}px`
|
|
12264
|
+
}, $[70] = color.syntax.boolean, $[71] = color.syntax.constant, $[72] = color.syntax.number, $[73] = color.syntax.property, $[74] = color.syntax.string, $[75] = font.code.family, $[76] = t26, $[77] = t27) : t27 = $[77];
|
|
12265
|
+
let viewportStyle = t27, t28;
|
|
12266
|
+
$[78] === t ? t28 = $[79] : (t28 = t("vista.result.graph.label"), $[78] = t, $[79] = t28);
|
|
12252
12267
|
let t29;
|
|
12253
12268
|
$[80] !== copy || $[81] !== layout || $[82] !== onCopy || $[83] !== view ? (t29 = view && /* @__PURE__ */ jsx("div", {
|
|
12254
|
-
className: "
|
|
12269
|
+
className: "uhT08W_graphCanvas",
|
|
12255
12270
|
"data-testid": "vista-graph-canvas",
|
|
12256
12271
|
style: {
|
|
12257
12272
|
width: layout.width,
|
|
@@ -12267,7 +12282,7 @@ function ResultGraph(t0) {
|
|
|
12267
12282
|
}), $[80] = copy, $[81] = layout, $[82] = onCopy, $[83] = view, $[84] = t29) : t29 = $[84];
|
|
12268
12283
|
let t30;
|
|
12269
12284
|
$[85] === leftOut ? t30 = $[86] : (t30 = leftOut && /* @__PURE__ */ jsx("div", {
|
|
12270
|
-
className: "
|
|
12285
|
+
className: "uhT08W_graphNotice",
|
|
12271
12286
|
"data-testid": "vista-graph-left-out",
|
|
12272
12287
|
children: /* @__PURE__ */ jsx(Text, {
|
|
12273
12288
|
muted: !0,
|
|
@@ -12277,13 +12292,13 @@ function ResultGraph(t0) {
|
|
|
12277
12292
|
}), $[85] = leftOut, $[86] = t30);
|
|
12278
12293
|
let t31;
|
|
12279
12294
|
$[87] === controls ? t31 = $[88] : (t31 = /* @__PURE__ */ jsx("div", {
|
|
12280
|
-
className:
|
|
12295
|
+
className: "uhT08W_graphControls",
|
|
12281
12296
|
children: controls.map(_temp4$3)
|
|
12282
12297
|
}), $[87] = controls, $[88] = t31);
|
|
12283
12298
|
let t32;
|
|
12284
|
-
return $[89] !== dragging || $[90] !== id || $[91] !== onKeyDown || $[92] !== onPointerDown || $[93] !== onPointerMove || $[94] !==
|
|
12285
|
-
"aria-label":
|
|
12286
|
-
className:
|
|
12299
|
+
return $[89] !== dragging || $[90] !== id || $[91] !== onKeyDown || $[92] !== onPointerDown || $[93] !== onPointerMove || $[94] !== t28 || $[95] !== t29 || $[96] !== t30 || $[97] !== t31 || $[98] !== viewportStyle ? (t32 = /* @__PURE__ */ jsxs("div", {
|
|
12300
|
+
"aria-label": t28,
|
|
12301
|
+
className: "uhT08W_graphViewport",
|
|
12287
12302
|
"data-dragging": dragging,
|
|
12288
12303
|
"data-testid": "vista-result-graph",
|
|
12289
12304
|
id,
|
|
@@ -12295,14 +12310,14 @@ function ResultGraph(t0) {
|
|
|
12295
12310
|
onPointerUp: endDrag,
|
|
12296
12311
|
ref: setViewport,
|
|
12297
12312
|
role: "application",
|
|
12298
|
-
style:
|
|
12313
|
+
style: viewportStyle,
|
|
12299
12314
|
tabIndex: 0,
|
|
12300
12315
|
children: [
|
|
12301
12316
|
t29,
|
|
12302
12317
|
t30,
|
|
12303
12318
|
t31
|
|
12304
12319
|
]
|
|
12305
|
-
}), $[89] = dragging, $[90] = id, $[91] = onKeyDown, $[92] = onPointerDown, $[93] = onPointerMove, $[94] =
|
|
12320
|
+
}), $[89] = dragging, $[90] = id, $[91] = onKeyDown, $[92] = onPointerDown, $[93] = onPointerMove, $[94] = t28, $[95] = t29, $[96] = t30, $[97] = t31, $[98] = viewportStyle, $[99] = t32) : t32 = $[99], t32;
|
|
12306
12321
|
}
|
|
12307
12322
|
function _temp4$3(t0) {
|
|
12308
12323
|
let { action, label, icon, onClick } = t0;
|
|
@@ -12347,7 +12362,7 @@ function ResultJson(props) {
|
|
|
12347
12362
|
}), $[5] = text, $[6] = t3);
|
|
12348
12363
|
let t4;
|
|
12349
12364
|
return $[7] !== props.id || $[8] !== t3 ? (t4 = /* @__PURE__ */ jsx("div", {
|
|
12350
|
-
className:
|
|
12365
|
+
className: "cTWfhW_resultJson",
|
|
12351
12366
|
"data-testid": "vista-result-json",
|
|
12352
12367
|
id: props.id,
|
|
12353
12368
|
children: t3
|
|
@@ -12632,7 +12647,7 @@ function ResponsePanel(props) {
|
|
|
12632
12647
|
let t53;
|
|
12633
12648
|
$[156] !== copyResult || $[157] !== hasResult || $[158] !== resultView || $[159] !== setResultView || $[160] !== t ? (t53 = hasResult && /* @__PURE__ */ jsxs(Flex, {
|
|
12634
12649
|
alignItems: "center",
|
|
12635
|
-
className: "
|
|
12650
|
+
className: "cTWfhW_labelActions",
|
|
12636
12651
|
gap: 1,
|
|
12637
12652
|
children: [/* @__PURE__ */ jsxs(TabList, {
|
|
12638
12653
|
"aria-label": t("vista.result.view.label"),
|
|
@@ -12687,7 +12702,7 @@ function ResponsePanel(props) {
|
|
|
12687
12702
|
}), $[156] = copyResult, $[157] = hasResult, $[158] = resultView, $[159] = setResultView, $[160] = t, $[161] = t53) : t53 = $[161];
|
|
12688
12703
|
let t54;
|
|
12689
12704
|
$[162] !== t50 || $[163] !== t51 || $[164] !== t53 ? (t54 = /* @__PURE__ */ jsx(Box, {
|
|
12690
|
-
className:
|
|
12705
|
+
className: "cTWfhW_resultLabel cTWfhW_editorLabel",
|
|
12691
12706
|
children: /* @__PURE__ */ jsxs(Flex, {
|
|
12692
12707
|
alignItems: "center",
|
|
12693
12708
|
gap: 2,
|
|
@@ -12736,7 +12751,7 @@ function ResponsePanel(props) {
|
|
|
12736
12751
|
}), $[166] = copyValue, $[167] = error, $[168] = failedConfig, $[169] = hasResult, $[170] = resolved.apiVersion, $[171] = resolved.perspective, $[172] = resolved.variant, $[173] = result, $[174] = resultDataset, $[175] = resultView, $[176] = status, $[177] = t, $[178] = t55) : t55 = $[178];
|
|
12737
12752
|
let t56;
|
|
12738
12753
|
$[179] !== t48 || $[180] !== t54 || $[181] !== t55 ? (t56 = /* @__PURE__ */ jsxs(Card, {
|
|
12739
|
-
className:
|
|
12754
|
+
className: "cTWfhW_resultContainer",
|
|
12740
12755
|
"data-testid": "vista-result",
|
|
12741
12756
|
tone: t48,
|
|
12742
12757
|
children: [t54, t55]
|
|
@@ -12814,7 +12829,7 @@ function TabTitleInput(t0) {
|
|
|
12814
12829
|
$[9] === t ? t5 = $[10] : (t5 = t("vista.tabs.title-placeholder"), $[9] = t, $[10] = t5);
|
|
12815
12830
|
let t6;
|
|
12816
12831
|
return $[11] !== commit || $[12] !== draft || $[13] !== t4 || $[14] !== t5 ? (t6 = /* @__PURE__ */ jsx(Box, {
|
|
12817
|
-
className:
|
|
12832
|
+
className: "cTWfhW_tabTitleInput",
|
|
12818
12833
|
paddingY: 1,
|
|
12819
12834
|
children: /* @__PURE__ */ jsx(TextInput, {
|
|
12820
12835
|
autoFocus: !0,
|
|
@@ -12838,10 +12853,10 @@ function _temp$2(event_0) {
|
|
|
12838
12853
|
* keep their own pointer behaviour.
|
|
12839
12854
|
*/
|
|
12840
12855
|
function TabHandle(props) {
|
|
12841
|
-
let $ = c(42), { tab
|
|
12842
|
-
$[0] !== t || $[1] !== tab
|
|
12856
|
+
let $ = c(42), { tab, selected, editing, listRef, onSelect, onClose, onStartRename, onRename, onCancelRename, onKeyDown } = props, { t } = useTranslation(visionLocaleNamespace), t0;
|
|
12857
|
+
$[0] !== t || $[1] !== tab ? (t0 = getTabTitle(tab, t("vista.tabs.untitled")), $[0] = t, $[1] = tab, $[2] = t0) : t0 = $[2];
|
|
12843
12858
|
let title = t0, dragControls = useDragControls(), [dragging, setDragging] = useState(!1), t1;
|
|
12844
|
-
$[3] === tab
|
|
12859
|
+
$[3] === tab.id ? t1 = $[4] : (t1 = (snapshot) => snapshot.context.runners[tab.id], $[3] = tab.id, $[4] = t1);
|
|
12845
12860
|
let runnerRef = useVistaSelector(t1), isLive = useSelector(runnerRef, _temp2$2), t2;
|
|
12846
12861
|
$[5] === onClose ? t2 = $[6] : (t2 = (event) => {
|
|
12847
12862
|
event.button === 1 && (event.preventDefault(), onClose());
|
|
@@ -12853,17 +12868,17 @@ function TabHandle(props) {
|
|
|
12853
12868
|
let startDrag = t3, t4 = dragging ? "true" : void 0, t5, t6;
|
|
12854
12869
|
$[9] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => setDragging(!1), t6 = () => setDragging(!0), $[9] = t5, $[10] = t6) : (t5 = $[9], t6 = $[10]);
|
|
12855
12870
|
let t7 = selected ? "true" : void 0, t8;
|
|
12856
|
-
$[11] !== editing || $[12] !== handleAuxClick || $[13] !== onCancelRename || $[14] !== onKeyDown || $[15] !== onRename || $[16] !== onSelect || $[17] !== onStartRename || $[18] !== selected || $[19] !== startDrag || $[20] !== tab
|
|
12871
|
+
$[11] !== editing || $[12] !== handleAuxClick || $[13] !== onCancelRename || $[14] !== onKeyDown || $[15] !== onRename || $[16] !== onSelect || $[17] !== onStartRename || $[18] !== selected || $[19] !== startDrag || $[20] !== tab.id || $[21] !== title ? (t8 = editing ? /* @__PURE__ */ jsx(TabTitleInput, {
|
|
12857
12872
|
onCancel: onCancelRename,
|
|
12858
12873
|
onCommit: onRename,
|
|
12859
12874
|
title
|
|
12860
12875
|
}) : /* @__PURE__ */ jsx(Button, {
|
|
12861
12876
|
"aria-controls": QUERY_TAB_PANEL_ID,
|
|
12862
12877
|
"aria-selected": selected,
|
|
12863
|
-
className:
|
|
12878
|
+
className: "cTWfhW_tabTitleButton",
|
|
12864
12879
|
"data-testid": "vista-tab-button",
|
|
12865
12880
|
fontSize: 1,
|
|
12866
|
-
id: getQueryTabId(tab
|
|
12881
|
+
id: getQueryTabId(tab.id),
|
|
12867
12882
|
mode: "bleed",
|
|
12868
12883
|
onAuxClick: handleAuxClick,
|
|
12869
12884
|
onClick: onSelect,
|
|
@@ -12875,7 +12890,7 @@ function TabHandle(props) {
|
|
|
12875
12890
|
tabIndex: selected ? 0 : -1,
|
|
12876
12891
|
text: title,
|
|
12877
12892
|
textWeight: selected ? "medium" : "regular"
|
|
12878
|
-
}), $[11] = editing, $[12] = handleAuxClick, $[13] = onCancelRename, $[14] = onKeyDown, $[15] = onRename, $[16] = onSelect, $[17] = onStartRename, $[18] = selected, $[19] = startDrag, $[20] = tab
|
|
12893
|
+
}), $[11] = editing, $[12] = handleAuxClick, $[13] = onCancelRename, $[14] = onKeyDown, $[15] = onRename, $[16] = onSelect, $[17] = onStartRename, $[18] = selected, $[19] = startDrag, $[20] = tab.id, $[21] = title, $[22] = t8) : t8 = $[22];
|
|
12879
12894
|
let t9;
|
|
12880
12895
|
$[23] !== isLive || $[24] !== t ? (t9 = isLive && /* @__PURE__ */ jsx(Box, {
|
|
12881
12896
|
flexShrink: 0,
|
|
@@ -12890,7 +12905,7 @@ function TabHandle(props) {
|
|
|
12890
12905
|
let t11;
|
|
12891
12906
|
$[28] !== onClose || $[29] !== t10 ? (t11 = /* @__PURE__ */ jsx(Button, {
|
|
12892
12907
|
"aria-label": t10,
|
|
12893
|
-
className:
|
|
12908
|
+
className: "cTWfhW_tabCloseButton",
|
|
12894
12909
|
"data-testid": "vista-tab-close",
|
|
12895
12910
|
fontSize: 1,
|
|
12896
12911
|
icon: CloseIcon,
|
|
@@ -12902,7 +12917,7 @@ function TabHandle(props) {
|
|
|
12902
12917
|
let t12;
|
|
12903
12918
|
$[31] !== t11 || $[32] !== t7 || $[33] !== t8 || $[34] !== t9 ? (t12 = /* @__PURE__ */ jsxs(Flex, {
|
|
12904
12919
|
alignItems: "center",
|
|
12905
|
-
className:
|
|
12920
|
+
className: "cTWfhW_tab",
|
|
12906
12921
|
"data-selected": t7,
|
|
12907
12922
|
"data-testid": "vista-tab",
|
|
12908
12923
|
gap: 1,
|
|
@@ -12916,9 +12931,9 @@ function TabHandle(props) {
|
|
|
12916
12931
|
]
|
|
12917
12932
|
}), $[31] = t11, $[32] = t7, $[33] = t8, $[34] = t9, $[35] = t12) : t12 = $[35];
|
|
12918
12933
|
let t13;
|
|
12919
|
-
return $[36] !== dragControls || $[37] !== listRef || $[38] !== t12 || $[39] !== t4 || $[40] !== tab
|
|
12934
|
+
return $[36] !== dragControls || $[37] !== listRef || $[38] !== t12 || $[39] !== t4 || $[40] !== tab ? (t13 = /* @__PURE__ */ jsx(Reorder.Item, {
|
|
12920
12935
|
as: "div",
|
|
12921
|
-
className:
|
|
12936
|
+
className: "cTWfhW_tabItem",
|
|
12922
12937
|
"data-dragging": t4,
|
|
12923
12938
|
"data-testid": "vista-tab-item",
|
|
12924
12939
|
dragConstraints: listRef,
|
|
@@ -12928,9 +12943,9 @@ function TabHandle(props) {
|
|
|
12928
12943
|
layout: "position",
|
|
12929
12944
|
onDragEnd: t5,
|
|
12930
12945
|
onDragStart: t6,
|
|
12931
|
-
value: tab
|
|
12946
|
+
value: tab,
|
|
12932
12947
|
children: t12
|
|
12933
|
-
}), $[36] = dragControls, $[37] = listRef, $[38] = t12, $[39] = t4, $[40] = tab
|
|
12948
|
+
}), $[36] = dragControls, $[37] = listRef, $[38] = t12, $[39] = t4, $[40] = tab, $[41] = t13) : t13 = $[41], t13;
|
|
12934
12949
|
}
|
|
12935
12950
|
function _temp2$2(snapshot_0) {
|
|
12936
12951
|
return snapshot_0.matches({ live: "on" });
|
|
@@ -13016,7 +13031,7 @@ function QueryTabBar() {
|
|
|
13016
13031
|
"aria-label": t4,
|
|
13017
13032
|
as: "div",
|
|
13018
13033
|
axis: "x",
|
|
13019
|
-
className:
|
|
13034
|
+
className: "cTWfhW_tabList",
|
|
13020
13035
|
onReorder: reorder,
|
|
13021
13036
|
ref: listRef,
|
|
13022
13037
|
role: "tablist",
|
|
@@ -13044,7 +13059,7 @@ function QueryTabBar() {
|
|
|
13044
13059
|
let t10;
|
|
13045
13060
|
return $[29] !== t6 || $[30] !== t9 ? (t10 = /* @__PURE__ */ jsxs(Flex, {
|
|
13046
13061
|
alignItems: "stretch",
|
|
13047
|
-
className:
|
|
13062
|
+
className: "cTWfhW_tabBar",
|
|
13048
13063
|
"data-testid": "vista-tab-bar",
|
|
13049
13064
|
flexShrink: 0,
|
|
13050
13065
|
paddingX: 1,
|
|
@@ -13083,7 +13098,7 @@ const DEFAULT_REQUEST_SHARE = {
|
|
|
13083
13098
|
* paste-a-query-URL handler.
|
|
13084
13099
|
*/
|
|
13085
13100
|
function QueryTab(t0) {
|
|
13086
|
-
let $ = c(
|
|
13101
|
+
let $ = c(215), { tab, rootElement } = t0, { t } = useTranslation(visionLocaleNamespace), toast = useToast(), copyToClipboard = useCopyToClipboard(), actorRef = useVistaActor(), { layout } = useVistaExperience(), datasets = useVistaSelector(selectDatasets), t1;
|
|
13087
13102
|
$[0] === tab.id ? t1 = $[1] : (t1 = (snapshot) => snapshot.context.runners[tab.id], $[0] = tab.id, $[1] = t1);
|
|
13088
13103
|
let runnerRef = useVistaSelector(t1), t2;
|
|
13089
13104
|
$[2] === tab.id ? t2 = $[3] : (t2 = (snapshot_0) => snapshot_0.context.loadRevisions[tab.id] || 0, $[2] = tab.id, $[3] = t2);
|
|
@@ -13091,7 +13106,7 @@ function QueryTab(t0) {
|
|
|
13091
13106
|
$[4] === Symbol.for("react.memo_cache_sentinel") ? (t3 = {}, $[4] = t3) : t3 = $[4];
|
|
13092
13107
|
let [splitSizes, setSplitSizes] = useState(t3), [mobilePane, setMobilePane] = useState("request"), queryEditorRef = useRef(null), paramsEditorRef = useRef(null), t4;
|
|
13093
13108
|
$[5] === Symbol.for("react.memo_cache_sentinel") ? (t4 = [], $[5] = t4) : t4 = $[5];
|
|
13094
|
-
let [lintFindings, setLintFindings] = useState(t4), { resolved, params, request, buildRequest } = useQueryRequestBuilder(tab), isFetching = useSelector(runnerRef, selectIsFetching), t5;
|
|
13109
|
+
let [lintFindings, setLintFindings] = useState(t4), { resolved, params, request, buildRequest } = useQueryRequestBuilder(tab), isVariantsEnabled = useVariantsEnabled(), isFetching = useSelector(runnerRef, selectIsFetching), t5;
|
|
13095
13110
|
$[6] !== actorRef || $[7] !== tab.id ? (t5 = (query) => actorRef.send({
|
|
13096
13111
|
type: "tab.setQuery",
|
|
13097
13112
|
id: tab.id,
|
|
@@ -13297,7 +13312,7 @@ function QueryTab(t0) {
|
|
|
13297
13312
|
}
|
|
13298
13313
|
}, $[115] = copyQuery, $[116] = prettify, $[117] = run, $[118] = t42) : t42 = $[118];
|
|
13299
13314
|
let t43;
|
|
13300
|
-
$[119] !== actorRef || $[120] !== datasets || $[121] !== resolved.variant || $[
|
|
13315
|
+
$[119] !== actorRef || $[120] !== datasets || $[121] !== isVariantsEnabled || $[122] !== resolved.variant || $[123] !== t || $[124] !== tab.id || $[125] !== toast ? (t43 = (text) => {
|
|
13301
13316
|
let parsed = parseQueryUrl(text, datasets);
|
|
13302
13317
|
return parsed ? (actorRef.send({
|
|
13303
13318
|
type: "tab.load",
|
|
@@ -13322,21 +13337,21 @@ function QueryTab(t0) {
|
|
|
13322
13337
|
closable: !0,
|
|
13323
13338
|
id: "vista-paste-variant",
|
|
13324
13339
|
status: "warning",
|
|
13325
|
-
title: t("vista.paste.unavailable-variant", { variant: parsed.variant })
|
|
13340
|
+
title: t(isVariantsEnabled ? "vista.paste.unavailable-variant" : "vista.paste.variants-disabled", { variant: parsed.variant })
|
|
13326
13341
|
}), !0) : !1;
|
|
13327
|
-
}, $[119] = actorRef, $[120] = datasets, $[121] = resolved.variant, $[
|
|
13342
|
+
}, $[119] = actorRef, $[120] = datasets, $[121] = isVariantsEnabled, $[122] = resolved.variant, $[123] = t, $[124] = tab.id, $[125] = toast, $[126] = t43) : t43 = $[126];
|
|
13328
13343
|
let t44;
|
|
13329
|
-
$[
|
|
13344
|
+
$[127] !== rootElement || $[128] !== t42 || $[129] !== t43 ? (t44 = {
|
|
13330
13345
|
rootElement,
|
|
13331
13346
|
onShortcut: t42,
|
|
13332
13347
|
onPaste: t43
|
|
13333
|
-
}, $[
|
|
13348
|
+
}, $[127] = rootElement, $[128] = t42, $[129] = t43, $[130] = t44) : t44 = $[130], useVistaDocumentEvents(t44);
|
|
13334
13349
|
let t45;
|
|
13335
|
-
$[
|
|
13350
|
+
$[131] === prettify ? t45 = $[132] : (t45 = () => void prettify(), $[131] = prettify, $[132] = t45);
|
|
13336
13351
|
let t46;
|
|
13337
|
-
$[
|
|
13352
|
+
$[133] === run ? t46 = $[134] : (t46 = () => run({ type: "manual" }), $[133] = run, $[134] = t46);
|
|
13338
13353
|
let t47;
|
|
13339
|
-
$[
|
|
13354
|
+
$[135] !== buildRequest || $[136] !== cancel || $[137] !== copyQuery || $[138] !== isFetching || $[139] !== params || $[140] !== replaceParams || $[141] !== request || $[142] !== resolved || $[143] !== setOptions || $[144] !== setParams || $[145] !== setQuery || $[146] !== t45 || $[147] !== t46 || $[148] !== tab || $[149] !== toggleAutoRefetch ? (t47 = /* @__PURE__ */ jsx(RequestPanel, {
|
|
13340
13355
|
buildRequest,
|
|
13341
13356
|
formatForEditor,
|
|
13342
13357
|
isFetching,
|
|
@@ -13356,9 +13371,9 @@ function QueryTab(t0) {
|
|
|
13356
13371
|
request,
|
|
13357
13372
|
resolved,
|
|
13358
13373
|
tab
|
|
13359
|
-
}), $[
|
|
13374
|
+
}), $[135] = buildRequest, $[136] = cancel, $[137] = copyQuery, $[138] = isFetching, $[139] = params, $[140] = replaceParams, $[141] = request, $[142] = resolved, $[143] = setOptions, $[144] = setParams, $[145] = setQuery, $[146] = t45, $[147] = t46, $[148] = tab, $[149] = toggleAutoRefetch, $[150] = t47) : t47 = $[150];
|
|
13360
13375
|
let requestPanel = t47, t48;
|
|
13361
|
-
$[
|
|
13376
|
+
$[151] !== lintFindings || $[152] !== refetchAfterMutations || $[153] !== request || $[154] !== resolved || $[155] !== revealRange || $[156] !== runnerRef || $[157] !== tab ? (t48 = /* @__PURE__ */ jsx(ResponsePanel, {
|
|
13362
13377
|
lintFindings,
|
|
13363
13378
|
onEditQuery: editQuery,
|
|
13364
13379
|
onMutationsApplied: refetchAfterMutations,
|
|
@@ -13367,24 +13382,24 @@ function QueryTab(t0) {
|
|
|
13367
13382
|
resolved,
|
|
13368
13383
|
runnerRef,
|
|
13369
13384
|
tab
|
|
13370
|
-
}), $[
|
|
13385
|
+
}), $[151] = lintFindings, $[152] = refetchAfterMutations, $[153] = request, $[154] = resolved, $[155] = revealRange, $[156] = runnerRef, $[157] = tab, $[158] = t48) : t48 = $[158];
|
|
13371
13386
|
let responsePanel = t48, t49;
|
|
13372
|
-
$[
|
|
13387
|
+
$[159] === tab.id ? t49 = $[160] : (t49 = getQueryTabId(tab.id), $[159] = tab.id, $[160] = t49);
|
|
13373
13388
|
let t50;
|
|
13374
|
-
$[
|
|
13389
|
+
$[161] === t49 ? t50 = $[162] : (t50 = {
|
|
13375
13390
|
"aria-labelledby": t49,
|
|
13376
13391
|
"data-testid": "vista-query-tab",
|
|
13377
13392
|
id: QUERY_TAB_PANEL_ID,
|
|
13378
13393
|
role: "tabpanel"
|
|
13379
|
-
}, $[
|
|
13394
|
+
}, $[161] = t49, $[162] = t50);
|
|
13380
13395
|
let panelProps = t50;
|
|
13381
13396
|
if (layout === "mobile") {
|
|
13382
13397
|
let t51;
|
|
13383
|
-
$[
|
|
13398
|
+
$[163] === t ? t51 = $[164] : (t51 = t("query.label"), $[163] = t, $[164] = t51);
|
|
13384
13399
|
let t52;
|
|
13385
|
-
$[
|
|
13400
|
+
$[165] === Symbol.for("react.memo_cache_sentinel") ? (t52 = () => setMobilePane("request"), $[165] = t52) : t52 = $[165];
|
|
13386
13401
|
let t53 = mobilePane === "request", t54;
|
|
13387
|
-
$[
|
|
13402
|
+
$[166] !== t51 || $[167] !== t53 ? (t54 = /* @__PURE__ */ jsx(Tab, {
|
|
13388
13403
|
"aria-controls": "vista-mobile-request-pane",
|
|
13389
13404
|
fontSize: 1,
|
|
13390
13405
|
id: "vista-mobile-request-tab",
|
|
@@ -13392,13 +13407,13 @@ function QueryTab(t0) {
|
|
|
13392
13407
|
onClick: t52,
|
|
13393
13408
|
padding: 2,
|
|
13394
13409
|
selected: t53
|
|
13395
|
-
}), $[
|
|
13410
|
+
}), $[166] = t51, $[167] = t53, $[168] = t54) : t54 = $[168];
|
|
13396
13411
|
let t55;
|
|
13397
|
-
$[
|
|
13412
|
+
$[169] === t ? t55 = $[170] : (t55 = t("result.label"), $[169] = t, $[170] = t55);
|
|
13398
13413
|
let t56;
|
|
13399
|
-
$[
|
|
13414
|
+
$[171] === Symbol.for("react.memo_cache_sentinel") ? (t56 = () => setMobilePane("response"), $[171] = t56) : t56 = $[171];
|
|
13400
13415
|
let t57 = mobilePane === "response", t58;
|
|
13401
|
-
$[
|
|
13416
|
+
$[172] !== t55 || $[173] !== t57 ? (t58 = /* @__PURE__ */ jsx(Tab, {
|
|
13402
13417
|
"aria-controls": "vista-mobile-response-pane",
|
|
13403
13418
|
fontSize: 1,
|
|
13404
13419
|
id: "vista-mobile-response-tab",
|
|
@@ -13406,9 +13421,9 @@ function QueryTab(t0) {
|
|
|
13406
13421
|
onClick: t56,
|
|
13407
13422
|
padding: 2,
|
|
13408
13423
|
selected: t57
|
|
13409
|
-
}), $[
|
|
13424
|
+
}), $[172] = t55, $[173] = t57, $[174] = t58) : t58 = $[174];
|
|
13410
13425
|
let t59;
|
|
13411
|
-
$[
|
|
13426
|
+
$[175] !== t54 || $[176] !== t58 ? (t59 = /* @__PURE__ */ jsx(Flex, {
|
|
13412
13427
|
borderBottom: !0,
|
|
13413
13428
|
flexShrink: 0,
|
|
13414
13429
|
justifyContent: "center",
|
|
@@ -13417,11 +13432,11 @@ function QueryTab(t0) {
|
|
|
13417
13432
|
gap: 1,
|
|
13418
13433
|
children: [t54, t58]
|
|
13419
13434
|
})
|
|
13420
|
-
}), $[
|
|
13421
|
-
let t60 = mobilePane !== "request" && "
|
|
13422
|
-
$[
|
|
13435
|
+
}), $[175] = t54, $[176] = t58, $[177] = t59) : t59 = $[177];
|
|
13436
|
+
let t60 = mobilePane !== "request" && "cTWfhW_hiddenPane", t61;
|
|
13437
|
+
$[178] === t60 ? t61 = $[179] : (t61 = cx(_key12$1, t60), $[178] = t60, $[179] = t61);
|
|
13423
13438
|
let t62;
|
|
13424
|
-
$[
|
|
13439
|
+
$[180] !== requestPanel || $[181] !== t61 ? (t62 = /* @__PURE__ */ jsx(Box, {
|
|
13425
13440
|
"aria-labelledby": "vista-mobile-request-tab",
|
|
13426
13441
|
className: t61,
|
|
13427
13442
|
flexBasis: "0%",
|
|
@@ -13429,11 +13444,11 @@ function QueryTab(t0) {
|
|
|
13429
13444
|
id: "vista-mobile-request-pane",
|
|
13430
13445
|
role: "tabpanel",
|
|
13431
13446
|
children: requestPanel
|
|
13432
|
-
}), $[
|
|
13433
|
-
let t63 = mobilePane !== "response" && "
|
|
13434
|
-
$[
|
|
13447
|
+
}), $[180] = requestPanel, $[181] = t61, $[182] = t62) : t62 = $[182];
|
|
13448
|
+
let t63 = mobilePane !== "response" && "cTWfhW_hiddenPane", t64;
|
|
13449
|
+
$[183] === t63 ? t64 = $[184] : (t64 = cx(_key12$1, t63), $[183] = t63, $[184] = t64);
|
|
13435
13450
|
let t65;
|
|
13436
|
-
$[
|
|
13451
|
+
$[185] !== responsePanel || $[186] !== t64 ? (t65 = /* @__PURE__ */ jsx(Box, {
|
|
13437
13452
|
"aria-labelledby": "vista-mobile-response-tab",
|
|
13438
13453
|
className: t64,
|
|
13439
13454
|
flexBasis: "0%",
|
|
@@ -13441,9 +13456,9 @@ function QueryTab(t0) {
|
|
|
13441
13456
|
id: "vista-mobile-response-pane",
|
|
13442
13457
|
role: "tabpanel",
|
|
13443
13458
|
children: responsePanel
|
|
13444
|
-
}), $[
|
|
13459
|
+
}), $[185] = responsePanel, $[186] = t64, $[187] = t65) : t65 = $[187];
|
|
13445
13460
|
let t66;
|
|
13446
|
-
return $[
|
|
13461
|
+
return $[188] !== panelProps || $[189] !== t59 || $[190] !== t62 || $[191] !== t65 ? (t66 = /* @__PURE__ */ jsxs(Flex, {
|
|
13447
13462
|
...panelProps,
|
|
13448
13463
|
flexBasis: "0%",
|
|
13449
13464
|
flexDirection: "column",
|
|
@@ -13454,30 +13469,30 @@ function QueryTab(t0) {
|
|
|
13454
13469
|
t62,
|
|
13455
13470
|
t65
|
|
13456
13471
|
]
|
|
13457
|
-
}), $[
|
|
13472
|
+
}), $[188] = panelProps, $[189] = t59, $[190] = t62, $[191] = t65, $[192] = t66) : t66 = $[192], t66;
|
|
13458
13473
|
}
|
|
13459
13474
|
let minSize = MIN_PANE_SIZE[layout], containerExtent = layout === "stacked" ? splitContainerSize?.height : splitContainerSize?.width, defaultSplitSize = Math.max(minSize, Math.floor((containerExtent || 0) * DEFAULT_REQUEST_SHARE[layout])), t51;
|
|
13460
|
-
$[
|
|
13475
|
+
$[193] === t ? t51 = $[194] : (t51 = t("vista.split.request-response"), $[193] = t, $[194] = t51);
|
|
13461
13476
|
let t52, t53;
|
|
13462
|
-
$[
|
|
13477
|
+
$[195] === layout ? (t52 = $[196], t53 = $[197]) : (t52 = (size) => setSplitSizes((sizes) => ({
|
|
13463
13478
|
...sizes,
|
|
13464
13479
|
[layout]: size
|
|
13465
13480
|
})), t53 = () => setSplitSizes((sizes_0) => ({
|
|
13466
13481
|
...sizes_0,
|
|
13467
13482
|
[layout]: void 0
|
|
13468
|
-
})), $[
|
|
13483
|
+
})), $[195] = layout, $[196] = t52, $[197] = t53);
|
|
13469
13484
|
let t54 = splitSizes[layout] ?? defaultSplitSize, t55 = layout === "stacked" ? "horizontal" : "vertical", t56;
|
|
13470
|
-
$[
|
|
13471
|
-
className:
|
|
13485
|
+
$[198] === requestPanel ? t56 = $[199] : (t56 = /* @__PURE__ */ jsx(Box, {
|
|
13486
|
+
className: _key12$1,
|
|
13472
13487
|
children: requestPanel
|
|
13473
|
-
}), $[
|
|
13488
|
+
}), $[198] = requestPanel, $[199] = t56);
|
|
13474
13489
|
let t57;
|
|
13475
|
-
$[
|
|
13476
|
-
className:
|
|
13490
|
+
$[200] === responsePanel ? t57 = $[201] : (t57 = /* @__PURE__ */ jsx(Box, {
|
|
13491
|
+
className: _key12$1,
|
|
13477
13492
|
children: responsePanel
|
|
13478
|
-
}), $[
|
|
13493
|
+
}), $[200] = responsePanel, $[201] = t57);
|
|
13479
13494
|
let t58;
|
|
13480
|
-
$[
|
|
13495
|
+
$[202] !== layout || $[203] !== minSize || $[204] !== t51 || $[205] !== t52 || $[206] !== t53 || $[207] !== t54 || $[208] !== t55 || $[209] !== t56 || $[210] !== t57 ? (t58 = /* @__PURE__ */ jsxs(ResizableSplit, {
|
|
13481
13496
|
label: t51,
|
|
13482
13497
|
minSecondarySize: minSize,
|
|
13483
13498
|
minSize,
|
|
@@ -13487,14 +13502,14 @@ function QueryTab(t0) {
|
|
|
13487
13502
|
split: t55,
|
|
13488
13503
|
testId: "vista-split",
|
|
13489
13504
|
children: [t56, t57]
|
|
13490
|
-
}, layout), $[
|
|
13505
|
+
}, layout), $[202] = layout, $[203] = minSize, $[204] = t51, $[205] = t52, $[206] = t53, $[207] = t54, $[208] = t55, $[209] = t56, $[210] = t57, $[211] = t58) : t58 = $[211];
|
|
13491
13506
|
let t59;
|
|
13492
|
-
return $[
|
|
13507
|
+
return $[212] !== panelProps || $[213] !== t58 ? (t59 = /* @__PURE__ */ jsx(Box, {
|
|
13493
13508
|
...panelProps,
|
|
13494
|
-
className:
|
|
13509
|
+
className: _key42,
|
|
13495
13510
|
ref: setSplitContainer,
|
|
13496
13511
|
children: t58
|
|
13497
|
-
}), $[
|
|
13512
|
+
}), $[212] = panelProps, $[213] = t58, $[214] = t59) : t59 = $[214], t59;
|
|
13498
13513
|
}
|
|
13499
13514
|
function _temp4() {}
|
|
13500
13515
|
function _temp3(resolve) {
|
|
@@ -13936,7 +13951,7 @@ function VistaGui(props) {
|
|
|
13936
13951
|
}), $[23] = t11, $[24] = t9, $[25] = t12) : t12 = $[25];
|
|
13937
13952
|
let t13;
|
|
13938
13953
|
$[26] !== layout || $[27] !== t12 ? (t13 = /* @__PURE__ */ jsxs(Flex, {
|
|
13939
|
-
className:
|
|
13954
|
+
className: "cTWfhW_root",
|
|
13940
13955
|
"data-testid": "vista-root",
|
|
13941
13956
|
"data-vista-layout": layout,
|
|
13942
13957
|
height: "100%",
|
|
@@ -13986,4 +14001,4 @@ function VistaGui(props) {
|
|
|
13986
14001
|
}
|
|
13987
14002
|
export { VistaGui };
|
|
13988
14003
|
|
|
13989
|
-
//# sourceMappingURL=VistaGui-
|
|
14004
|
+
//# sourceMappingURL=VistaGui-C6cdsk92.js.map
|