@sanity/vision 6.21.0-next.64 → 6.21.0-next.68
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-BPTjMcT_.js → SanityVision-DOH_LzRg.js} +88 -93
- package/lib/SanityVision-DOH_LzRg.js.map +1 -0
- package/lib/{VistaGui-CFsbMx2g.js → VistaGui-C6cdsk92.js} +111 -110
- package/lib/VistaGui-C6cdsk92.js.map +1 -0
- package/lib/bundle.css +221 -210
- package/lib/index.js +1 -1
- package/package.json +9 -8
- package/lib/CodeDiff-Bj_o50Qy.js.map +0 -1
- package/lib/SanityVision-BPTjMcT_.js.map +0 -1
- package/lib/VistaGui-CFsbMx2g.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
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;
|
|
@@ -1648,7 +1647,7 @@ function QueryListPanel(t0) {
|
|
|
1648
1647
|
}), $[67] = t19, $[68] = t20, $[69] = t21) : t21 = $[69];
|
|
1649
1648
|
let t22;
|
|
1650
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, {
|
|
1651
|
-
className:
|
|
1650
|
+
className: "cTWfhW_scrollArea",
|
|
1652
1651
|
flexBasis: "0%",
|
|
1653
1652
|
flexGrow: 1,
|
|
1654
1653
|
children: visibleItems.length === 0 ? /* @__PURE__ */ jsx(Box, {
|
|
@@ -1689,7 +1688,7 @@ function QueryListPanel(t0) {
|
|
|
1689
1688
|
value: editingTitle
|
|
1690
1689
|
})
|
|
1691
1690
|
}) : /* @__PURE__ */ jsx(Button, {
|
|
1692
|
-
className:
|
|
1691
|
+
className: "cTWfhW_listItemButton",
|
|
1693
1692
|
"data-testid": "vista-saved-query-open",
|
|
1694
1693
|
justify: "flex-start",
|
|
1695
1694
|
mode: "bleed",
|
|
@@ -1709,7 +1708,7 @@ function QueryListPanel(t0) {
|
|
|
1709
1708
|
children: query_7.title || t("label.untitled-query")
|
|
1710
1709
|
}),
|
|
1711
1710
|
preview_0 && /* @__PURE__ */ jsx(Box, {
|
|
1712
|
-
className: "
|
|
1711
|
+
className: "cTWfhW_previewCode",
|
|
1713
1712
|
children: /* @__PURE__ */ jsx(Code, {
|
|
1714
1713
|
size: 0,
|
|
1715
1714
|
children: preview_0
|
|
@@ -2627,8 +2626,8 @@ function SidebarDrawer(t0) {
|
|
|
2627
2626
|
$[5] !== close || $[6] !== overlay ? (t3 = (event) => {
|
|
2628
2627
|
overlay && event.key === "Escape" && (event.preventDefault(), close());
|
|
2629
2628
|
}, $[5] = close, $[6] = overlay, $[7] = t3) : t3 = $[7];
|
|
2630
|
-
let handleKeyDown = t3, t4 = !overlay, t5 = overlay ? title : void 0, t6 = overlay || void 0, t7 = drawer !== "saved" && drawer !== "shared" && "
|
|
2631
|
-
$[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];
|
|
2632
2631
|
let t10 = `vista-drawer-${drawer}`, t11 = overlay ? "dialog" : void 0, t12;
|
|
2633
2632
|
$[11] === title ? t12 = $[12] : (t12 = /* @__PURE__ */ jsx(Text, {
|
|
2634
2633
|
size: 1,
|
|
@@ -2684,7 +2683,7 @@ function SidebarItem(t0) {
|
|
|
2684
2683
|
let $ = c(28), { icon, label, expanded, selected, badge, testId, onClick } = t0, name = badge ? `${label} (${badge.count})` : label, t1;
|
|
2685
2684
|
$[0] !== badge || $[1] !== expanded || $[2] !== testId ? (t1 = badge && /* @__PURE__ */ jsx(Badge, {
|
|
2686
2685
|
"aria-hidden": !0,
|
|
2687
|
-
className: cx("
|
|
2686
|
+
className: cx("cTWfhW_sidebarItemBadge", expanded && "cTWfhW_sidebarItemBadgeExpanded"),
|
|
2688
2687
|
"data-testid": `${testId}-badge`,
|
|
2689
2688
|
fontSize: 0,
|
|
2690
2689
|
tone: badge.tone,
|
|
@@ -2706,7 +2705,7 @@ function SidebarItem(t0) {
|
|
|
2706
2705
|
}), $[4] = icon, $[5] = label, $[6] = name, $[7] = onClick, $[8] = selected, $[9] = testId, $[10] = t2) : t2 = $[10];
|
|
2707
2706
|
let t3;
|
|
2708
2707
|
return $[11] !== count || $[12] !== t2 ? (t3 = /* @__PURE__ */ jsxs("div", {
|
|
2709
|
-
className:
|
|
2708
|
+
className: _key29,
|
|
2710
2709
|
children: [t2, count]
|
|
2711
2710
|
}), $[11] = count, $[12] = t2, $[13] = t3) : t3 = $[13], t3;
|
|
2712
2711
|
}
|
|
@@ -2734,7 +2733,7 @@ function SidebarItem(t0) {
|
|
|
2734
2733
|
}), $[22] = t2, $[23] = t3, $[24] = t4) : t4 = $[24];
|
|
2735
2734
|
let t5;
|
|
2736
2735
|
return $[25] !== count || $[26] !== t4 ? (t5 = /* @__PURE__ */ jsxs("div", {
|
|
2737
|
-
className:
|
|
2736
|
+
className: _key29,
|
|
2738
2737
|
children: [t4, count]
|
|
2739
2738
|
}), $[25] = count, $[26] = t4, $[27] = t5) : t5 = $[27], t5;
|
|
2740
2739
|
}
|
|
@@ -2752,8 +2751,8 @@ function VistaSidebar() {
|
|
|
2752
2751
|
}, $[3] = t1) : t1 = $[3], useOnValueChange(drawer, t1);
|
|
2753
2752
|
let t2;
|
|
2754
2753
|
$[4] === t ? t2 = $[5] : (t2 = t("vista.sidebar.label"), $[4] = t, $[5] = t2);
|
|
2755
|
-
let t3 = expanded ?
|
|
2756
|
-
$[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];
|
|
2757
2756
|
let t6 = isMobile && drawer !== null, t7;
|
|
2758
2757
|
$[9] === t ? t7 = $[10] : (t7 = t("vista.sidebar.shared-queries"), $[9] = t, $[10] = t7);
|
|
2759
2758
|
let t8;
|
|
@@ -2942,7 +2941,7 @@ function VistaSidebar() {
|
|
|
2942
2941
|
}), $[112] = t2, $[113] = t34, $[114] = t48, $[115] = t5, $[116] = t6, $[117] = t49) : t49 = $[117];
|
|
2943
2942
|
let rail = t49, t50;
|
|
2944
2943
|
$[118] !== isMobile || $[119] !== rail ? (t50 = isMobile ? /* @__PURE__ */ jsx("div", {
|
|
2945
|
-
className:
|
|
2944
|
+
className: "cTWfhW_sidebarSlot",
|
|
2946
2945
|
children: rail
|
|
2947
2946
|
}) : rail, $[118] = isMobile, $[119] = rail, $[120] = t50) : t50 = $[120];
|
|
2948
2947
|
let t51;
|
|
@@ -5158,7 +5157,7 @@ function CollapsiblePanel(props) {
|
|
|
5158
5157
|
} else t6 = $[16];
|
|
5159
5158
|
let t7;
|
|
5160
5159
|
$[23] === t6 ? t7 = $[24] : (t7 = /* @__PURE__ */ jsx(Box, {
|
|
5161
|
-
className:
|
|
5160
|
+
className: "cTWfhW_panelTabs",
|
|
5162
5161
|
ref: stripRef,
|
|
5163
5162
|
children: /* @__PURE__ */ jsx(TabList, {
|
|
5164
5163
|
gap: 1,
|
|
@@ -5214,7 +5213,7 @@ function _temp$17(tab_0) {
|
|
|
5214
5213
|
*/
|
|
5215
5214
|
function CollapsibleSection(props) {
|
|
5216
5215
|
let $ = c(31), { id, title, icon, actions, expanded, onToggle, className, style, ref, handle, children } = props, t0 = expanded && className, t1;
|
|
5217
|
-
$[0] === t0 ? t1 = $[1] : (t1 = cx(
|
|
5216
|
+
$[0] === t0 ? t1 = $[1] : (t1 = cx("cTWfhW_collapsibleSection", t0), $[0] = t0, $[1] = t1);
|
|
5218
5217
|
let t2 = `${id}-panel`, t3 = expanded ? style : void 0, t4 = `${id}-content`, t5 = `${id}-toggle`, t6 = expanded ? ChevronDownIcon : ChevronRightIcon, t7 = `${id}-toggle`, t8;
|
|
5219
5218
|
$[2] !== expanded || $[3] !== onToggle || $[4] !== t4 || $[5] !== t5 || $[6] !== t6 || $[7] !== t7 || $[8] !== title ? (t8 = /* @__PURE__ */ jsx(Button, {
|
|
5220
5219
|
"aria-controls": t4,
|
|
@@ -5250,7 +5249,7 @@ function CollapsibleSection(props) {
|
|
|
5250
5249
|
let t11;
|
|
5251
5250
|
$[18] !== children || $[19] !== expanded || $[20] !== id ? (t11 = expanded && /* @__PURE__ */ jsx(Box, {
|
|
5252
5251
|
"aria-labelledby": `${id}-toggle`,
|
|
5253
|
-
className: "
|
|
5252
|
+
className: "cTWfhW_sectionBody",
|
|
5254
5253
|
id: `${id}-content`,
|
|
5255
5254
|
role: "region",
|
|
5256
5255
|
children
|
|
@@ -5809,7 +5808,7 @@ function OptionsPanel(t0) {
|
|
|
5809
5808
|
}), $[19] = options.variant, $[20] = t6, $[21] = t7) : t7 = $[21];
|
|
5810
5809
|
let t8;
|
|
5811
5810
|
$[22] !== t1 || $[23] !== t3 || $[24] !== t5 || $[25] !== t7 ? (t8 = /* @__PURE__ */ jsxs("div", {
|
|
5812
|
-
className:
|
|
5811
|
+
className: "cTWfhW_optionsGrid",
|
|
5813
5812
|
children: [
|
|
5814
5813
|
t1,
|
|
5815
5814
|
t3,
|
|
@@ -7051,7 +7050,7 @@ function ExportQueryDialog(t0) {
|
|
|
7051
7050
|
let t8 = `vista-export-${active.id}-tab`, t9 = `vista-export-${active.id}-panel`, t10;
|
|
7052
7051
|
$[27] !== active.code || $[28] !== active.language ? (t10 = /* @__PURE__ */ jsx(Card, {
|
|
7053
7052
|
border: !0,
|
|
7054
|
-
className:
|
|
7053
|
+
className: "cTWfhW_codeBlock",
|
|
7055
7054
|
overflow: "auto",
|
|
7056
7055
|
padding: 3,
|
|
7057
7056
|
radius: 2,
|
|
@@ -7391,13 +7390,13 @@ function RequestPanel(props) {
|
|
|
7391
7390
|
let t18;
|
|
7392
7391
|
$[44] === t17 ? t18 = $[45] : (t18 = /* @__PURE__ */ jsx(Flex, {
|
|
7393
7392
|
alignItems: "center",
|
|
7394
|
-
className:
|
|
7393
|
+
className: "cTWfhW_labelActions",
|
|
7395
7394
|
gap: 1,
|
|
7396
7395
|
children: t17
|
|
7397
7396
|
}), $[44] = t17, $[45] = t18);
|
|
7398
7397
|
let t19;
|
|
7399
7398
|
$[46] !== t15 || $[47] !== t18 ? (t19 = /* @__PURE__ */ jsx(Box, {
|
|
7400
|
-
className:
|
|
7399
|
+
className: "cTWfhW_editorLabel",
|
|
7401
7400
|
children: /* @__PURE__ */ jsxs(Flex, {
|
|
7402
7401
|
alignItems: "center",
|
|
7403
7402
|
gap: 2,
|
|
@@ -7417,7 +7416,7 @@ function RequestPanel(props) {
|
|
|
7417
7416
|
}), $[49] = onQueryChange, $[50] = queryEditorRef, $[51] = queryExtensions, $[52] = tab.query, $[53] = t20) : t20 = $[53];
|
|
7418
7417
|
let t21;
|
|
7419
7418
|
$[54] !== t19 || $[55] !== t20 ? (t21 = /* @__PURE__ */ jsxs(Box, {
|
|
7420
|
-
className:
|
|
7419
|
+
className: "cTWfhW_editorContainer",
|
|
7421
7420
|
"data-testid": "vista-query-editor",
|
|
7422
7421
|
flexBasis: "0%",
|
|
7423
7422
|
flexGrow: 1,
|
|
@@ -7427,11 +7426,11 @@ function RequestPanel(props) {
|
|
|
7427
7426
|
}), $[54] = t19, $[55] = t20, $[56] = t21) : t21 = $[56];
|
|
7428
7427
|
let t22;
|
|
7429
7428
|
$[57] !== t13 || $[58] !== t21 ? (t22 = /* @__PURE__ */ jsxs(Flex, {
|
|
7430
|
-
className:
|
|
7429
|
+
className: "cTWfhW_querySection",
|
|
7431
7430
|
children: [t13, t21]
|
|
7432
7431
|
}), $[57] = t13, $[58] = t21, $[59] = t22) : t22 = $[59];
|
|
7433
|
-
let t23 = paramsResize.height !== null && "
|
|
7434
|
-
$[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);
|
|
7435
7434
|
let t25;
|
|
7436
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", {
|
|
7437
7436
|
"aria-label": t("vista.params.resize"),
|
|
@@ -7440,7 +7439,7 @@ function RequestPanel(props) {
|
|
|
7440
7439
|
"aria-valuemin": 98,
|
|
7441
7440
|
"aria-valuenow": paramsHeightNow,
|
|
7442
7441
|
"aria-valuetext": paramsResize.height === null && paramsHeightNow !== void 0 ? t("vista.params.fit-height", { height: paramsHeightNow }) : void 0,
|
|
7443
|
-
className: "
|
|
7442
|
+
className: "cTWfhW_sectionResizer",
|
|
7444
7443
|
"data-dragging": paramsResize.dragging,
|
|
7445
7444
|
"data-testid": "vista-request-params-resizer",
|
|
7446
7445
|
onDoubleClick: paramsResize.reset,
|
|
@@ -7535,7 +7534,7 @@ function RequestPanel(props) {
|
|
|
7535
7534
|
}), $[125] = onOptionsChange, $[126] = resolved, $[127] = tab.options, $[128] = t44) : t44 = $[128];
|
|
7536
7535
|
let t45;
|
|
7537
7536
|
$[129] !== optionsExpanded || $[130] !== t42 || $[131] !== t43 || $[132] !== t44 ? (t45 = /* @__PURE__ */ jsx(CollapsibleSection, {
|
|
7538
|
-
className:
|
|
7537
|
+
className: "cTWfhW_optionsSection",
|
|
7539
7538
|
expanded: optionsExpanded,
|
|
7540
7539
|
id: "vista-request-options",
|
|
7541
7540
|
onToggle: t42,
|
|
@@ -7694,16 +7693,16 @@ function ResizableSplit(props) {
|
|
|
7694
7693
|
}, $[14] = allowResize, $[15] = bounds, $[16] = onChange, $[17] = onReset, $[18] = primary, $[19] = shownSize, $[20] = split, $[21] = t5) : t5 = $[21];
|
|
7695
7694
|
let onKeyDown = t5, t6 = `0 0 ${shownSize}px`, t7;
|
|
7696
7695
|
$[22] === t6 ? t7 = $[23] : (t7 = { flex: t6 }, $[22] = t6, $[23] = t7);
|
|
7697
|
-
let primaryStyle = t7, t8 = split === "vertical" ?
|
|
7698
|
-
$[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);
|
|
7699
7698
|
let t10 = primary === "first" ? primaryStyle : void 0, t11;
|
|
7700
7699
|
$[26] !== children[0] || $[27] !== t10 ? (t11 = /* @__PURE__ */ jsx("div", {
|
|
7701
|
-
className:
|
|
7700
|
+
className: _key41,
|
|
7702
7701
|
style: t10,
|
|
7703
7702
|
children: children[0]
|
|
7704
7703
|
}), $[26] = children[0], $[27] = t10, $[28] = t11) : t11 = $[28];
|
|
7705
|
-
let t12 = !allowResize || void 0, t13 = bounds?.max, t14 = split === "vertical" ?
|
|
7706
|
-
$[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];
|
|
7707
7706
|
let t17 = testId && `${testId}-handle`, t18 = allowResize ? 0 : -1, t19;
|
|
7708
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", {
|
|
7709
7708
|
"aria-disabled": t12,
|
|
@@ -7723,7 +7722,7 @@ function ResizableSplit(props) {
|
|
|
7723
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];
|
|
7724
7723
|
let t20 = primary === "second" ? primaryStyle : void 0, t21;
|
|
7725
7724
|
$[45] !== children[1] || $[46] !== t20 ? (t21 = /* @__PURE__ */ jsx("div", {
|
|
7726
|
-
className:
|
|
7725
|
+
className: _key41,
|
|
7727
7726
|
style: t20,
|
|
7728
7727
|
children: children[1]
|
|
7729
7728
|
}), $[45] = children[1], $[46] = t20, $[47] = t21) : t21 = $[47];
|
|
@@ -7868,14 +7867,14 @@ function SplitWithBottomPanel(props) {
|
|
|
7868
7867
|
})), $[5] = layout, $[6] = t4, $[7] = t5);
|
|
7869
7868
|
let t6 = collapsed ? 35 : bottomSize, t7 = `${testId}-split`, t8;
|
|
7870
7869
|
$[8] === children ? t8 = $[9] : (t8 = /* @__PURE__ */ jsx(Flex, {
|
|
7871
|
-
className:
|
|
7870
|
+
className: _key12$1,
|
|
7872
7871
|
children
|
|
7873
7872
|
}), $[8] = children, $[9] = t8);
|
|
7874
7873
|
let t9;
|
|
7875
7874
|
$[10] === Symbol.for("react.memo_cache_sentinel") ? (t9 = () => setCollapsed(_temp$14), $[10] = t9) : t9 = $[10];
|
|
7876
7875
|
let t10;
|
|
7877
7876
|
$[11] !== activeTabId || $[12] !== collapsed || $[13] !== id || $[14] !== tabs ? (t10 = /* @__PURE__ */ jsx(Box, {
|
|
7878
|
-
className:
|
|
7877
|
+
className: _key12$1,
|
|
7879
7878
|
children: /* @__PURE__ */ jsx(CollapsiblePanel, {
|
|
7880
7879
|
activeTabId,
|
|
7881
7880
|
collapsed,
|
|
@@ -7887,7 +7886,7 @@ function SplitWithBottomPanel(props) {
|
|
|
7887
7886
|
}), $[11] = activeTabId, $[12] = collapsed, $[13] = id, $[14] = tabs, $[15] = t10) : t10 = $[15];
|
|
7888
7887
|
let t11;
|
|
7889
7888
|
$[16] !== t10 || $[17] !== t2 || $[18] !== t3 || $[19] !== t4 || $[20] !== t5 || $[21] !== t6 || $[22] !== t7 || $[23] !== t8 ? (t11 = /* @__PURE__ */ jsx(Box, {
|
|
7890
|
-
className:
|
|
7889
|
+
className: _key42,
|
|
7891
7890
|
children: /* @__PURE__ */ jsxs(ResizableSplit, {
|
|
7892
7891
|
allowResize: t2,
|
|
7893
7892
|
label: t3,
|
|
@@ -8018,7 +8017,7 @@ function JsonEditor(props) {
|
|
|
8018
8017
|
let t7;
|
|
8019
8018
|
$[14] !== t6 || $[15] !== testId ? (t7 = /* @__PURE__ */ jsx(Card, {
|
|
8020
8019
|
border: !0,
|
|
8021
|
-
className:
|
|
8020
|
+
className: "cTWfhW_jsonEditorBox",
|
|
8022
8021
|
"data-testid": testId,
|
|
8023
8022
|
radius: 2,
|
|
8024
8023
|
children: t6
|
|
@@ -8452,7 +8451,7 @@ function DeltaResult(props) {
|
|
|
8452
8451
|
let t9;
|
|
8453
8452
|
$[29] !== evaluation.status || $[30] !== evaluation.value ? (t9 = evaluation.status === "done" && typeof evaluation.value != "boolean" && /* @__PURE__ */ jsx(Card, {
|
|
8454
8453
|
border: !0,
|
|
8455
|
-
className: "
|
|
8454
|
+
className: "cTWfhW_drawerScroller",
|
|
8456
8455
|
padding: 3,
|
|
8457
8456
|
radius: 2,
|
|
8458
8457
|
children: /* @__PURE__ */ jsx(Code, {
|
|
@@ -8744,7 +8743,7 @@ function _temp$12(paragraph) {
|
|
|
8744
8743
|
function FunctionPreview(t0) {
|
|
8745
8744
|
let $ = c(7), { signature, body } = t0, t1;
|
|
8746
8745
|
$[0] === signature ? t1 = $[1] : (t1 = /* @__PURE__ */ jsx(Box, {
|
|
8747
|
-
className:
|
|
8746
|
+
className: _key16,
|
|
8748
8747
|
children: /* @__PURE__ */ jsx(Code, {
|
|
8749
8748
|
size: 1,
|
|
8750
8749
|
children: signature
|
|
@@ -8752,7 +8751,7 @@ function FunctionPreview(t0) {
|
|
|
8752
8751
|
}), $[0] = signature, $[1] = t1);
|
|
8753
8752
|
let t2;
|
|
8754
8753
|
$[2] === body ? t2 = $[3] : (t2 = /* @__PURE__ */ jsx(Box, {
|
|
8755
|
-
className:
|
|
8754
|
+
className: _key16,
|
|
8756
8755
|
children: /* @__PURE__ */ jsx(Code, {
|
|
8757
8756
|
size: 0,
|
|
8758
8757
|
children: body
|
|
@@ -8770,7 +8769,7 @@ function DeclaredFunction(props) {
|
|
|
8770
8769
|
let upToDate = t0, t1;
|
|
8771
8770
|
$[3] !== declaration.id || $[4] !== t ? (t1 = t("vista.functions.reveal", { name: declaration.id }), $[3] = declaration.id, $[4] = t, $[5] = t1) : t1 = $[5];
|
|
8772
8771
|
let t2;
|
|
8773
|
-
$[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];
|
|
8774
8773
|
let t3;
|
|
8775
8774
|
$[7] !== declaration.range || $[8] !== onReveal ? (t3 = () => onReveal(declaration.range), $[7] = declaration.range, $[8] = onReveal, $[9] = t3) : t3 = $[9];
|
|
8776
8775
|
let t4;
|
|
@@ -9111,7 +9110,7 @@ function getRequestChanges(previous, next) {
|
|
|
9111
9110
|
lang: "text"
|
|
9112
9111
|
}), changes;
|
|
9113
9112
|
}
|
|
9114
|
-
const codeDiff = createRetryableLazy(() => import("./CodeDiff-
|
|
9113
|
+
const codeDiff = createRetryableLazy(() => import("./CodeDiff-MkS3Q87A.js")), CodeDiffLoader = codeDiff.Component;
|
|
9115
9114
|
/** Catches a diff that failed to load or render, and offers to load it again */
|
|
9116
9115
|
var DiffBoundary = class extends Component {
|
|
9117
9116
|
state = { failed: !1 };
|
|
@@ -9524,7 +9523,7 @@ function LintTab(t0) {
|
|
|
9524
9523
|
$[8] !== onReveal || $[9] !== t ? (t2 = (finding) => /* @__PURE__ */ jsx(Card, {
|
|
9525
9524
|
as: "button",
|
|
9526
9525
|
borderBottom: !0,
|
|
9527
|
-
className:
|
|
9526
|
+
className: _key8$1,
|
|
9528
9527
|
"data-testid": "vista-lint-finding",
|
|
9529
9528
|
onClick: () => onReveal(finding),
|
|
9530
9529
|
paddingX: 3,
|
|
@@ -10231,7 +10230,7 @@ function PreviewResult(props) {
|
|
|
10231
10230
|
children: t("vista.mutate.no-documents")
|
|
10232
10231
|
}) : /* @__PURE__ */ jsx(Card, {
|
|
10233
10232
|
border: !0,
|
|
10234
|
-
className:
|
|
10233
|
+
className: "cTWfhW_drawerScroller",
|
|
10235
10234
|
radius: 2,
|
|
10236
10235
|
children: preview.changes.map((change_0, index) => /* @__PURE__ */ jsx(ChangeRow, {
|
|
10237
10236
|
change: change_0,
|
|
@@ -11638,7 +11637,7 @@ function ExportTypesDialog(t0) {
|
|
|
11638
11637
|
let t6;
|
|
11639
11638
|
$[25] !== copyToClipboard || $[26] !== output.code || $[27] !== t ? (t6 = output.code && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Card, {
|
|
11640
11639
|
border: !0,
|
|
11641
|
-
className: "
|
|
11640
|
+
className: "cTWfhW_codeBlock",
|
|
11642
11641
|
overflow: "auto",
|
|
11643
11642
|
padding: 3,
|
|
11644
11643
|
radius: 2,
|
|
@@ -11938,8 +11937,7 @@ function layoutResultGraph(graph, { collapsed, charWidth }) {
|
|
|
11938
11937
|
height
|
|
11939
11938
|
};
|
|
11940
11939
|
}
|
|
11941
|
-
|
|
11942
|
-
const FIRST_VIEW_SCALE = .8, ZOOM_STEP = 1.25;
|
|
11940
|
+
const _key12 = "uhT08W_graphRowValue", FIRST_VIEW_SCALE = .8, ZOOM_STEP = 1.25;
|
|
11943
11941
|
/** What the graph leaves out of this result, or `undefined` when it shows all of it */
|
|
11944
11942
|
function describeLeftOut(graph, t) {
|
|
11945
11943
|
let { partialNodes, nodeLimitReached } = graph;
|
|
@@ -11994,12 +11992,12 @@ function RowContent(t0) {
|
|
|
11994
11992
|
case "value": {
|
|
11995
11993
|
let t1;
|
|
11996
11994
|
$[0] === row.key ? t1 = $[1] : (t1 = row.key && /* @__PURE__ */ jsx("span", {
|
|
11997
|
-
className: "
|
|
11995
|
+
className: "uhT08W_graphRowKey",
|
|
11998
11996
|
children: row.key
|
|
11999
11997
|
}), $[0] = row.key, $[1] = t1);
|
|
12000
11998
|
let t2;
|
|
12001
11999
|
$[2] !== row.text || $[3] !== row.type ? (t2 = /* @__PURE__ */ jsx("span", {
|
|
12002
|
-
className:
|
|
12000
|
+
className: _key12,
|
|
12003
12001
|
"data-type": row.type,
|
|
12004
12002
|
children: row.text
|
|
12005
12003
|
}), $[2] = row.text, $[3] = row.type, $[4] = t2) : t2 = $[4];
|
|
@@ -12009,17 +12007,17 @@ function RowContent(t0) {
|
|
|
12009
12007
|
case "child": {
|
|
12010
12008
|
let t1;
|
|
12011
12009
|
$[8] === row.key ? t1 = $[9] : (t1 = /* @__PURE__ */ jsx("span", {
|
|
12012
|
-
className:
|
|
12010
|
+
className: "uhT08W_graphRowKey",
|
|
12013
12011
|
children: row.key
|
|
12014
12012
|
}), $[8] = row.key, $[9] = t1);
|
|
12015
12013
|
let t2;
|
|
12016
12014
|
$[10] === row.summary ? t2 = $[11] : (t2 = /* @__PURE__ */ jsx("span", {
|
|
12017
|
-
className:
|
|
12015
|
+
className: _key12,
|
|
12018
12016
|
"data-type": "child",
|
|
12019
12017
|
children: row.summary
|
|
12020
12018
|
}), $[10] = row.summary, $[11] = t2);
|
|
12021
12019
|
let t3;
|
|
12022
|
-
$[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);
|
|
12023
12021
|
let t4;
|
|
12024
12022
|
return $[14] !== t1 || $[15] !== t2 || $[16] !== t3 ? (t4 = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
12025
12023
|
t1,
|
|
@@ -12032,7 +12030,7 @@ function RowContent(t0) {
|
|
|
12032
12030
|
$[18] !== row.count || $[19] !== t ? (t1 = t("vista.result.graph.more", { count: row.count }), $[18] = row.count, $[19] = t, $[20] = t1) : t1 = $[20];
|
|
12033
12031
|
let t2;
|
|
12034
12032
|
return $[21] === t1 ? t2 = $[22] : (t2 = /* @__PURE__ */ jsx("span", {
|
|
12035
|
-
className:
|
|
12033
|
+
className: _key12,
|
|
12036
12034
|
"data-type": "more",
|
|
12037
12035
|
children: t1
|
|
12038
12036
|
}), $[21] = t1, $[22] = t2), t2;
|
|
@@ -12045,7 +12043,7 @@ function GraphNodes(t0) {
|
|
|
12045
12043
|
$[0] === layout.edges ? t3 = $[1] : (t3 = layout.edges.map(_temp$4), $[0] = layout.edges, $[1] = t3);
|
|
12046
12044
|
let t4;
|
|
12047
12045
|
$[2] !== layout.height || $[3] !== layout.width || $[4] !== t3 ? (t4 = /* @__PURE__ */ jsx("svg", {
|
|
12048
|
-
className:
|
|
12046
|
+
className: "uhT08W_graphEdges",
|
|
12049
12047
|
"data-testid": "vista-graph-edges",
|
|
12050
12048
|
height: t1,
|
|
12051
12049
|
width: t2,
|
|
@@ -12058,7 +12056,7 @@ function GraphNodes(t0) {
|
|
|
12058
12056
|
let { node, x, y, width, height, collapsed, childCount } = t7, title = node.label ?? t("vista.result.graph.root");
|
|
12059
12057
|
return /* @__PURE__ */ jsxs("div", {
|
|
12060
12058
|
"aria-label": `${title} ${node.summary}`,
|
|
12061
|
-
className:
|
|
12059
|
+
className: "uhT08W_graphNode",
|
|
12062
12060
|
"data-testid": "vista-graph-node",
|
|
12063
12061
|
"data-keypath": node.id,
|
|
12064
12062
|
role: "group",
|
|
@@ -12069,19 +12067,19 @@ function GraphNodes(t0) {
|
|
|
12069
12067
|
height
|
|
12070
12068
|
},
|
|
12071
12069
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
12072
|
-
className:
|
|
12070
|
+
className: "uhT08W_graphNodeHeader",
|
|
12073
12071
|
children: [
|
|
12074
12072
|
/* @__PURE__ */ jsxs("span", {
|
|
12075
|
-
className:
|
|
12073
|
+
className: "uhT08W_graphNodeTitle",
|
|
12076
12074
|
children: [title, node.summary && /* @__PURE__ */ jsx("span", {
|
|
12077
|
-
className: "
|
|
12075
|
+
className: "uhT08W_graphNodeSummary",
|
|
12078
12076
|
children: node.summary
|
|
12079
12077
|
})]
|
|
12080
12078
|
}),
|
|
12081
12079
|
childCount > 0 && /* @__PURE__ */ jsxs("button", {
|
|
12082
12080
|
"aria-expanded": !collapsed,
|
|
12083
12081
|
"aria-label": collapsed ? t("vista.result.graph.expand", { count: childCount }) : t("vista.result.graph.collapse"),
|
|
12084
|
-
className: "
|
|
12082
|
+
className: "uhT08W_graphNodeButton",
|
|
12085
12083
|
"data-testid": "vista-graph-toggle",
|
|
12086
12084
|
onClick: () => onToggle(node.id),
|
|
12087
12085
|
type: "button",
|
|
@@ -12089,7 +12087,7 @@ function GraphNodes(t0) {
|
|
|
12089
12087
|
}),
|
|
12090
12088
|
/* @__PURE__ */ jsx("button", {
|
|
12091
12089
|
"aria-label": copyLabel,
|
|
12092
|
-
className:
|
|
12090
|
+
className: "uhT08W_graphNodeButton",
|
|
12093
12091
|
"data-testid": "vista-graph-copy",
|
|
12094
12092
|
onClick: () => onCopy(node.id),
|
|
12095
12093
|
type: "button",
|
|
@@ -12105,7 +12103,7 @@ function GraphNodes(t0) {
|
|
|
12105
12103
|
}
|
|
12106
12104
|
function _temp2$4(row, index) {
|
|
12107
12105
|
return /* @__PURE__ */ jsx("div", {
|
|
12108
|
-
className:
|
|
12106
|
+
className: "uhT08W_graphRow",
|
|
12109
12107
|
children: /* @__PURE__ */ jsx(RowContent, { row })
|
|
12110
12108
|
}, index);
|
|
12111
12109
|
}
|
|
@@ -12251,21 +12249,24 @@ function ResultGraph(t0) {
|
|
|
12251
12249
|
t22,
|
|
12252
12250
|
t24
|
|
12253
12251
|
], $[66] = t19, $[67] = t22, $[68] = t24, $[69] = t25) : t25 = $[69];
|
|
12254
|
-
let controls = t25, t26;
|
|
12255
|
-
$[70]
|
|
12256
|
-
|
|
12257
|
-
|
|
12258
|
-
|
|
12259
|
-
|
|
12260
|
-
|
|
12261
|
-
|
|
12262
|
-
|
|
12263
|
-
|
|
12264
|
-
|
|
12265
|
-
|
|
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);
|
|
12266
12267
|
let t29;
|
|
12267
12268
|
$[80] !== copy || $[81] !== layout || $[82] !== onCopy || $[83] !== view ? (t29 = view && /* @__PURE__ */ jsx("div", {
|
|
12268
|
-
className: "
|
|
12269
|
+
className: "uhT08W_graphCanvas",
|
|
12269
12270
|
"data-testid": "vista-graph-canvas",
|
|
12270
12271
|
style: {
|
|
12271
12272
|
width: layout.width,
|
|
@@ -12281,7 +12282,7 @@ function ResultGraph(t0) {
|
|
|
12281
12282
|
}), $[80] = copy, $[81] = layout, $[82] = onCopy, $[83] = view, $[84] = t29) : t29 = $[84];
|
|
12282
12283
|
let t30;
|
|
12283
12284
|
$[85] === leftOut ? t30 = $[86] : (t30 = leftOut && /* @__PURE__ */ jsx("div", {
|
|
12284
|
-
className: "
|
|
12285
|
+
className: "uhT08W_graphNotice",
|
|
12285
12286
|
"data-testid": "vista-graph-left-out",
|
|
12286
12287
|
children: /* @__PURE__ */ jsx(Text, {
|
|
12287
12288
|
muted: !0,
|
|
@@ -12291,13 +12292,13 @@ function ResultGraph(t0) {
|
|
|
12291
12292
|
}), $[85] = leftOut, $[86] = t30);
|
|
12292
12293
|
let t31;
|
|
12293
12294
|
$[87] === controls ? t31 = $[88] : (t31 = /* @__PURE__ */ jsx("div", {
|
|
12294
|
-
className:
|
|
12295
|
+
className: "uhT08W_graphControls",
|
|
12295
12296
|
children: controls.map(_temp4$3)
|
|
12296
12297
|
}), $[87] = controls, $[88] = t31);
|
|
12297
12298
|
let t32;
|
|
12298
|
-
return $[89] !== dragging || $[90] !== id || $[91] !== onKeyDown || $[92] !== onPointerDown || $[93] !== onPointerMove || $[94] !==
|
|
12299
|
-
"aria-label":
|
|
12300
|
-
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",
|
|
12301
12302
|
"data-dragging": dragging,
|
|
12302
12303
|
"data-testid": "vista-result-graph",
|
|
12303
12304
|
id,
|
|
@@ -12309,14 +12310,14 @@ function ResultGraph(t0) {
|
|
|
12309
12310
|
onPointerUp: endDrag,
|
|
12310
12311
|
ref: setViewport,
|
|
12311
12312
|
role: "application",
|
|
12312
|
-
style:
|
|
12313
|
+
style: viewportStyle,
|
|
12313
12314
|
tabIndex: 0,
|
|
12314
12315
|
children: [
|
|
12315
12316
|
t29,
|
|
12316
12317
|
t30,
|
|
12317
12318
|
t31
|
|
12318
12319
|
]
|
|
12319
|
-
}), $[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;
|
|
12320
12321
|
}
|
|
12321
12322
|
function _temp4$3(t0) {
|
|
12322
12323
|
let { action, label, icon, onClick } = t0;
|
|
@@ -12361,7 +12362,7 @@ function ResultJson(props) {
|
|
|
12361
12362
|
}), $[5] = text, $[6] = t3);
|
|
12362
12363
|
let t4;
|
|
12363
12364
|
return $[7] !== props.id || $[8] !== t3 ? (t4 = /* @__PURE__ */ jsx("div", {
|
|
12364
|
-
className:
|
|
12365
|
+
className: "cTWfhW_resultJson",
|
|
12365
12366
|
"data-testid": "vista-result-json",
|
|
12366
12367
|
id: props.id,
|
|
12367
12368
|
children: t3
|
|
@@ -12646,7 +12647,7 @@ function ResponsePanel(props) {
|
|
|
12646
12647
|
let t53;
|
|
12647
12648
|
$[156] !== copyResult || $[157] !== hasResult || $[158] !== resultView || $[159] !== setResultView || $[160] !== t ? (t53 = hasResult && /* @__PURE__ */ jsxs(Flex, {
|
|
12648
12649
|
alignItems: "center",
|
|
12649
|
-
className: "
|
|
12650
|
+
className: "cTWfhW_labelActions",
|
|
12650
12651
|
gap: 1,
|
|
12651
12652
|
children: [/* @__PURE__ */ jsxs(TabList, {
|
|
12652
12653
|
"aria-label": t("vista.result.view.label"),
|
|
@@ -12701,7 +12702,7 @@ function ResponsePanel(props) {
|
|
|
12701
12702
|
}), $[156] = copyResult, $[157] = hasResult, $[158] = resultView, $[159] = setResultView, $[160] = t, $[161] = t53) : t53 = $[161];
|
|
12702
12703
|
let t54;
|
|
12703
12704
|
$[162] !== t50 || $[163] !== t51 || $[164] !== t53 ? (t54 = /* @__PURE__ */ jsx(Box, {
|
|
12704
|
-
className:
|
|
12705
|
+
className: "cTWfhW_resultLabel cTWfhW_editorLabel",
|
|
12705
12706
|
children: /* @__PURE__ */ jsxs(Flex, {
|
|
12706
12707
|
alignItems: "center",
|
|
12707
12708
|
gap: 2,
|
|
@@ -12750,7 +12751,7 @@ function ResponsePanel(props) {
|
|
|
12750
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];
|
|
12751
12752
|
let t56;
|
|
12752
12753
|
$[179] !== t48 || $[180] !== t54 || $[181] !== t55 ? (t56 = /* @__PURE__ */ jsxs(Card, {
|
|
12753
|
-
className:
|
|
12754
|
+
className: "cTWfhW_resultContainer",
|
|
12754
12755
|
"data-testid": "vista-result",
|
|
12755
12756
|
tone: t48,
|
|
12756
12757
|
children: [t54, t55]
|
|
@@ -12828,7 +12829,7 @@ function TabTitleInput(t0) {
|
|
|
12828
12829
|
$[9] === t ? t5 = $[10] : (t5 = t("vista.tabs.title-placeholder"), $[9] = t, $[10] = t5);
|
|
12829
12830
|
let t6;
|
|
12830
12831
|
return $[11] !== commit || $[12] !== draft || $[13] !== t4 || $[14] !== t5 ? (t6 = /* @__PURE__ */ jsx(Box, {
|
|
12831
|
-
className:
|
|
12832
|
+
className: "cTWfhW_tabTitleInput",
|
|
12832
12833
|
paddingY: 1,
|
|
12833
12834
|
children: /* @__PURE__ */ jsx(TextInput, {
|
|
12834
12835
|
autoFocus: !0,
|
|
@@ -12852,10 +12853,10 @@ function _temp$2(event_0) {
|
|
|
12852
12853
|
* keep their own pointer behaviour.
|
|
12853
12854
|
*/
|
|
12854
12855
|
function TabHandle(props) {
|
|
12855
|
-
let $ = c(42), { tab
|
|
12856
|
-
$[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];
|
|
12857
12858
|
let title = t0, dragControls = useDragControls(), [dragging, setDragging] = useState(!1), t1;
|
|
12858
|
-
$[3] === tab
|
|
12859
|
+
$[3] === tab.id ? t1 = $[4] : (t1 = (snapshot) => snapshot.context.runners[tab.id], $[3] = tab.id, $[4] = t1);
|
|
12859
12860
|
let runnerRef = useVistaSelector(t1), isLive = useSelector(runnerRef, _temp2$2), t2;
|
|
12860
12861
|
$[5] === onClose ? t2 = $[6] : (t2 = (event) => {
|
|
12861
12862
|
event.button === 1 && (event.preventDefault(), onClose());
|
|
@@ -12867,17 +12868,17 @@ function TabHandle(props) {
|
|
|
12867
12868
|
let startDrag = t3, t4 = dragging ? "true" : void 0, t5, t6;
|
|
12868
12869
|
$[9] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => setDragging(!1), t6 = () => setDragging(!0), $[9] = t5, $[10] = t6) : (t5 = $[9], t6 = $[10]);
|
|
12869
12870
|
let t7 = selected ? "true" : void 0, t8;
|
|
12870
|
-
$[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, {
|
|
12871
12872
|
onCancel: onCancelRename,
|
|
12872
12873
|
onCommit: onRename,
|
|
12873
12874
|
title
|
|
12874
12875
|
}) : /* @__PURE__ */ jsx(Button, {
|
|
12875
12876
|
"aria-controls": QUERY_TAB_PANEL_ID,
|
|
12876
12877
|
"aria-selected": selected,
|
|
12877
|
-
className:
|
|
12878
|
+
className: "cTWfhW_tabTitleButton",
|
|
12878
12879
|
"data-testid": "vista-tab-button",
|
|
12879
12880
|
fontSize: 1,
|
|
12880
|
-
id: getQueryTabId(tab
|
|
12881
|
+
id: getQueryTabId(tab.id),
|
|
12881
12882
|
mode: "bleed",
|
|
12882
12883
|
onAuxClick: handleAuxClick,
|
|
12883
12884
|
onClick: onSelect,
|
|
@@ -12889,7 +12890,7 @@ function TabHandle(props) {
|
|
|
12889
12890
|
tabIndex: selected ? 0 : -1,
|
|
12890
12891
|
text: title,
|
|
12891
12892
|
textWeight: selected ? "medium" : "regular"
|
|
12892
|
-
}), $[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];
|
|
12893
12894
|
let t9;
|
|
12894
12895
|
$[23] !== isLive || $[24] !== t ? (t9 = isLive && /* @__PURE__ */ jsx(Box, {
|
|
12895
12896
|
flexShrink: 0,
|
|
@@ -12904,7 +12905,7 @@ function TabHandle(props) {
|
|
|
12904
12905
|
let t11;
|
|
12905
12906
|
$[28] !== onClose || $[29] !== t10 ? (t11 = /* @__PURE__ */ jsx(Button, {
|
|
12906
12907
|
"aria-label": t10,
|
|
12907
|
-
className:
|
|
12908
|
+
className: "cTWfhW_tabCloseButton",
|
|
12908
12909
|
"data-testid": "vista-tab-close",
|
|
12909
12910
|
fontSize: 1,
|
|
12910
12911
|
icon: CloseIcon,
|
|
@@ -12916,7 +12917,7 @@ function TabHandle(props) {
|
|
|
12916
12917
|
let t12;
|
|
12917
12918
|
$[31] !== t11 || $[32] !== t7 || $[33] !== t8 || $[34] !== t9 ? (t12 = /* @__PURE__ */ jsxs(Flex, {
|
|
12918
12919
|
alignItems: "center",
|
|
12919
|
-
className:
|
|
12920
|
+
className: "cTWfhW_tab",
|
|
12920
12921
|
"data-selected": t7,
|
|
12921
12922
|
"data-testid": "vista-tab",
|
|
12922
12923
|
gap: 1,
|
|
@@ -12930,9 +12931,9 @@ function TabHandle(props) {
|
|
|
12930
12931
|
]
|
|
12931
12932
|
}), $[31] = t11, $[32] = t7, $[33] = t8, $[34] = t9, $[35] = t12) : t12 = $[35];
|
|
12932
12933
|
let t13;
|
|
12933
|
-
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, {
|
|
12934
12935
|
as: "div",
|
|
12935
|
-
className:
|
|
12936
|
+
className: "cTWfhW_tabItem",
|
|
12936
12937
|
"data-dragging": t4,
|
|
12937
12938
|
"data-testid": "vista-tab-item",
|
|
12938
12939
|
dragConstraints: listRef,
|
|
@@ -12942,9 +12943,9 @@ function TabHandle(props) {
|
|
|
12942
12943
|
layout: "position",
|
|
12943
12944
|
onDragEnd: t5,
|
|
12944
12945
|
onDragStart: t6,
|
|
12945
|
-
value: tab
|
|
12946
|
+
value: tab,
|
|
12946
12947
|
children: t12
|
|
12947
|
-
}), $[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;
|
|
12948
12949
|
}
|
|
12949
12950
|
function _temp2$2(snapshot_0) {
|
|
12950
12951
|
return snapshot_0.matches({ live: "on" });
|
|
@@ -13030,7 +13031,7 @@ function QueryTabBar() {
|
|
|
13030
13031
|
"aria-label": t4,
|
|
13031
13032
|
as: "div",
|
|
13032
13033
|
axis: "x",
|
|
13033
|
-
className:
|
|
13034
|
+
className: "cTWfhW_tabList",
|
|
13034
13035
|
onReorder: reorder,
|
|
13035
13036
|
ref: listRef,
|
|
13036
13037
|
role: "tablist",
|
|
@@ -13058,7 +13059,7 @@ function QueryTabBar() {
|
|
|
13058
13059
|
let t10;
|
|
13059
13060
|
return $[29] !== t6 || $[30] !== t9 ? (t10 = /* @__PURE__ */ jsxs(Flex, {
|
|
13060
13061
|
alignItems: "stretch",
|
|
13061
|
-
className:
|
|
13062
|
+
className: "cTWfhW_tabBar",
|
|
13062
13063
|
"data-testid": "vista-tab-bar",
|
|
13063
13064
|
flexShrink: 0,
|
|
13064
13065
|
paddingX: 1,
|
|
@@ -13432,8 +13433,8 @@ function QueryTab(t0) {
|
|
|
13432
13433
|
children: [t54, t58]
|
|
13433
13434
|
})
|
|
13434
13435
|
}), $[175] = t54, $[176] = t58, $[177] = t59) : t59 = $[177];
|
|
13435
|
-
let t60 = mobilePane !== "request" && "
|
|
13436
|
-
$[178] === t60 ? t61 = $[179] : (t61 = cx(
|
|
13436
|
+
let t60 = mobilePane !== "request" && "cTWfhW_hiddenPane", t61;
|
|
13437
|
+
$[178] === t60 ? t61 = $[179] : (t61 = cx(_key12$1, t60), $[178] = t60, $[179] = t61);
|
|
13437
13438
|
let t62;
|
|
13438
13439
|
$[180] !== requestPanel || $[181] !== t61 ? (t62 = /* @__PURE__ */ jsx(Box, {
|
|
13439
13440
|
"aria-labelledby": "vista-mobile-request-tab",
|
|
@@ -13444,8 +13445,8 @@ function QueryTab(t0) {
|
|
|
13444
13445
|
role: "tabpanel",
|
|
13445
13446
|
children: requestPanel
|
|
13446
13447
|
}), $[180] = requestPanel, $[181] = t61, $[182] = t62) : t62 = $[182];
|
|
13447
|
-
let t63 = mobilePane !== "response" && "
|
|
13448
|
-
$[183] === t63 ? t64 = $[184] : (t64 = cx(
|
|
13448
|
+
let t63 = mobilePane !== "response" && "cTWfhW_hiddenPane", t64;
|
|
13449
|
+
$[183] === t63 ? t64 = $[184] : (t64 = cx(_key12$1, t63), $[183] = t63, $[184] = t64);
|
|
13449
13450
|
let t65;
|
|
13450
13451
|
$[185] !== responsePanel || $[186] !== t64 ? (t65 = /* @__PURE__ */ jsx(Box, {
|
|
13451
13452
|
"aria-labelledby": "vista-mobile-response-tab",
|
|
@@ -13482,12 +13483,12 @@ function QueryTab(t0) {
|
|
|
13482
13483
|
})), $[195] = layout, $[196] = t52, $[197] = t53);
|
|
13483
13484
|
let t54 = splitSizes[layout] ?? defaultSplitSize, t55 = layout === "stacked" ? "horizontal" : "vertical", t56;
|
|
13484
13485
|
$[198] === requestPanel ? t56 = $[199] : (t56 = /* @__PURE__ */ jsx(Box, {
|
|
13485
|
-
className:
|
|
13486
|
+
className: _key12$1,
|
|
13486
13487
|
children: requestPanel
|
|
13487
13488
|
}), $[198] = requestPanel, $[199] = t56);
|
|
13488
13489
|
let t57;
|
|
13489
13490
|
$[200] === responsePanel ? t57 = $[201] : (t57 = /* @__PURE__ */ jsx(Box, {
|
|
13490
|
-
className:
|
|
13491
|
+
className: _key12$1,
|
|
13491
13492
|
children: responsePanel
|
|
13492
13493
|
}), $[200] = responsePanel, $[201] = t57);
|
|
13493
13494
|
let t58;
|
|
@@ -13505,7 +13506,7 @@ function QueryTab(t0) {
|
|
|
13505
13506
|
let t59;
|
|
13506
13507
|
return $[212] !== panelProps || $[213] !== t58 ? (t59 = /* @__PURE__ */ jsx(Box, {
|
|
13507
13508
|
...panelProps,
|
|
13508
|
-
className:
|
|
13509
|
+
className: _key42,
|
|
13509
13510
|
ref: setSplitContainer,
|
|
13510
13511
|
children: t58
|
|
13511
13512
|
}), $[212] = panelProps, $[213] = t58, $[214] = t59) : t59 = $[214], t59;
|
|
@@ -13950,7 +13951,7 @@ function VistaGui(props) {
|
|
|
13950
13951
|
}), $[23] = t11, $[24] = t9, $[25] = t12) : t12 = $[25];
|
|
13951
13952
|
let t13;
|
|
13952
13953
|
$[26] !== layout || $[27] !== t12 ? (t13 = /* @__PURE__ */ jsxs(Flex, {
|
|
13953
|
-
className:
|
|
13954
|
+
className: "cTWfhW_root",
|
|
13954
13955
|
"data-testid": "vista-root",
|
|
13955
13956
|
"data-vista-layout": layout,
|
|
13956
13957
|
height: "100%",
|
|
@@ -14000,4 +14001,4 @@ function VistaGui(props) {
|
|
|
14000
14001
|
}
|
|
14001
14002
|
export { VistaGui };
|
|
14002
14003
|
|
|
14003
|
-
//# sourceMappingURL=VistaGui-
|
|
14004
|
+
//# sourceMappingURL=VistaGui-C6cdsk92.js.map
|