@sanity/vision 6.21.0-next.27 → 6.21.0-next.47

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.
@@ -294,7 +294,7 @@ function getVisibleColumns(view, { lines, scrollbarWidth } = {}) {
294
294
  let { scrollDOM, contentDOM, defaultCharacterWidth, defaultLineHeight } = view, gutters = scrollDOM.querySelector(".cm-gutters"), line = contentDOM.querySelector(".cm-line"), currentLines = view.state.doc.lines, nextLines = lines ?? currentLines, gutterGrowth = (lineNumberDigits(nextLines) - lineNumberDigits(currentLines)) * defaultCharacterWidth, willOverflowVertically = nextLines * defaultLineHeight + insets(contentDOM, ["Top", "Bottom"]) > scrollDOM.clientHeight, hasVerticalScrollbar = scrollDOM.scrollHeight > scrollDOM.clientHeight, scrollbarReserve = willOverflowVertically && !hasVerticalScrollbar ? scrollbarWidth ?? getScrollbarWidth() : 0, width = scrollDOM.clientWidth - (gutters instanceof HTMLElement ? gutters.offsetWidth : 0) - gutterGrowth - insets(contentDOM, ["Left", "Right"]) - (line ? insets(line, ["Left", "Right"]) : 0) - scrollbarReserve, columns = Math.floor(width / defaultCharacterWidth);
295
295
  return Number.isFinite(columns) && columns > 0 ? columns : void 0;
296
296
  }
297
- var contentBorderRightWidthVar = "var(--wq81rn1)", contentPaddingTopVar = "var(--wq81rn2)", editorRoot = "wq81rn3", editorRootAutoHeight = "wq81rn4", linePaddingLeftVar = "var(--wq81rn0)";
297
+ var contentBorderRightWidthVar = "var(--_9ls7ld1)", contentPaddingTopVar = "var(--_9ls7ld2)", editorRoot = "_9ls7ld3", editorRootAutoHeight = "_9ls7ld4", linePaddingLeftVar = "var(--_9ls7ld0)";
298
298
  function EditorRoot(t0) {
299
299
  let $ = c(14), { autoHeight, underHeader, children } = t0, { sanity } = useTheme(), t1 = autoHeight ? `${editorRoot} ${editorRootAutoHeight}` : editorRoot, t2;
300
300
  $[0] === sanity.space[3] ? t2 = $[1] : (t2 = rem(sanity.space[3]), $[0] = sanity.space[3], $[1] = t2);
@@ -595,7 +595,7 @@ function tryParseParams(val, t) {
595
595
  return err.message = `${t("params.error.params-invalid-json")}:\n\n${err.message.replace("JSON5:", "")}`, err;
596
596
  }
597
597
  }
598
- var controlsContainer = "_24wusgm", downloadsCard = "_24wusgj", header = "_24wusg3", inputBackgroundContainer = "_24wusg7", inputBackgroundContainerLeft = "_24wusg8", inputContainer = "_24wusg9", queryCopyLink = "_24wusg6", queryRecallPaneContainer = "_24wusg1", queryRecallPaneWrapper = "_24wusg2", result = "_24wusge", resultContainer = "_24wusgc", resultContainerInvalid = "_24wusgd", resultFooter = "_24wusgf", resultInnerContainer = "_24wusgb", resultOuterContainer = "_24wusga", root = "_24wusg0", saveResultLabel = "_24wusgl", saveResultSpanGapVar = "var(--_24wusgk)", splitpaneContainer = "_24wusg5", styledLabel = "_24wusg4", timingsCard = "_24wusgg", timingsTextContainer = "_24wusgi", timingsTextMinHeightVar = "var(--_24wusgh)";
598
+ var controlsContainer = "ar1ylem", downloadsCard = "ar1ylej", header = "ar1yle3", inputBackgroundContainer = "ar1yle7", inputBackgroundContainerLeft = "ar1yle8", inputContainer = "ar1yle9", queryCopyLink = "ar1yle6", queryRecallPaneContainer = "ar1yle1", queryRecallPaneWrapper = "ar1yle2", result = "ar1ylee", resultContainer = "ar1ylec", resultContainerInvalid = "ar1yled", resultFooter = "ar1ylef", resultInnerContainer = "ar1yleb", resultOuterContainer = "ar1ylea", root = "ar1yle0", saveResultLabel = "ar1ylel", saveResultSpanGapVar = "var(--ar1ylek)", splitpaneContainer = "ar1yle5", styledLabel = "ar1yle4", timingsCard = "ar1yleg", timingsTextContainer = "ar1ylei", timingsTextMinHeightVar = "var(--ar1yleh)";
599
599
  function Root(t0) {
600
600
  let $ = c(6), props, ref;
601
601
  $[0] === t0 ? (props = $[1], ref = $[2]) : ({ref, ...props} = t0, $[0] = t0, $[1] = props, $[2] = ref);
@@ -1109,7 +1109,7 @@ function _temp2$4(a, b) {
1109
1109
  return new Date(b.savedAt || 0).getTime() - new Date(a.savedAt || 0).getTime();
1110
1110
  }
1111
1111
  function _temp$6() {}
1112
- var fixedHeader = "_1x4pcxh0", queryList = "_1x4pcxh2", scrollContainer = "_1x4pcxh1";
1112
+ var fixedHeader = "_1x38m1d0", queryList = "_1x38m1d2", scrollContainer = "_1x38m1d1";
1113
1113
  function FixedHeader(props) {
1114
1114
  let $ = c(2), t0;
1115
1115
  return $[0] === props ? t0 = $[1] : (t0 = /* @__PURE__ */ jsx(VStack, {
@@ -1879,7 +1879,7 @@ function VisionGuiControls(t0) {
1879
1879
  })
1880
1880
  }) }), $[30] = hasValidParams, $[31] = t15, $[32] = t2, $[33] = t16) : t16 = $[33], t16;
1881
1881
  }
1882
- var dot = "s56x2f2", perspectivePopoverContent = "s56x2f0", perspectivePopoverLink = "s56x2f1";
1882
+ var dot = "_12s1bs72", perspectivePopoverContent = "_12s1bs70", perspectivePopoverLink = "_12s1bs71";
1883
1883
  function PerspectivePopoverContent(props) {
1884
1884
  let $ = c(2), t0;
1885
1885
  return $[0] === props ? t0 = $[1] : (t0 = /* @__PURE__ */ jsx(Box, {
@@ -2336,7 +2336,7 @@ function hasReleaseInPerspective(perspective) {
2336
2336
  function getUnsatisfiedApiVersionCapability(context, capabilities = API_VERSION_CAPABILITIES) {
2337
2337
  if (context.statusCode === 400) return capabilities.find((capability) => capability.applies(context) && isApiVersionBelow(context.apiVersion, capability.requiredApiVersion));
2338
2338
  }
2339
- var errorCode = "_1jnkpog0";
2339
+ var errorCode = "_14wdo290";
2340
2340
  function ErrorCode(props) {
2341
2341
  let $ = c(2), t0;
2342
2342
  return $[0] === props ? t0 = $[1] : (t0 = /* @__PURE__ */ jsx(Code, {
@@ -2452,7 +2452,7 @@ function getAtKeypath(data, keypath) {
2452
2452
  }
2453
2453
  return { value: current };
2454
2454
  }
2455
- var codeFamilyVar = "var(--sm6hwe0)", codeFontSizeVar = "var(--sm6hwe1)", codeLineHeightVar = "var(--sm6hwe2)", copyNodeButton = "sm6hwee", copyableResult = "sm6hwed", resultViewWrapper = "sm6hwec", space0Var = "var(--sm6hwe3)", space2Var = "var(--sm6hwe4)", space4HalfVar = "var(--sm6hwe6)", space4Var = "var(--sm6hwe5)", syntaxBooleanVar = "var(--sm6hwea)", syntaxConstantVar = "var(--sm6hwe8)", syntaxNumberVar = "var(--sm6hweb)", syntaxPropertyVar = "var(--sm6hwe7)", syntaxStringVar = "var(--sm6hwe9)";
2455
+ var codeFamilyVar = "var(--_1gg4te70)", codeFontSizeVar = "var(--_1gg4te71)", codeLineHeightVar = "var(--_1gg4te72)", copyNodeButton = "_1gg4te7e", copyableResult = "_1gg4te7d", resultViewWrapper = "_1gg4te7c", space0Var = "var(--_1gg4te73)", space2Var = "var(--_1gg4te74)", space4HalfVar = "var(--_1gg4te76)", space4Var = "var(--_1gg4te75)", syntaxBooleanVar = "var(--_1gg4te7a)", syntaxConstantVar = "var(--_1gg4te78)", syntaxNumberVar = "var(--_1gg4te7b)", syntaxPropertyVar = "var(--_1gg4te77)", syntaxStringVar = "var(--_1gg4te79)";
2456
2456
  const lru = new LRU({ maxSize: 5e4 });
2457
2457
  function ResultViewWrapper(t0) {
2458
2458
  let $ = c(25), { children, copyable } = t0, { color, font, space } = useTheme_v2(), codeSize = font.code.sizes[2], t1 = copyable ? `${resultViewWrapper} ${copyableResult}` : resultViewWrapper, t2 = font.code.family, t3 = `${codeSize.fontSize}px`, t4 = `${codeSize.lineHeight}px`, t5;
@@ -3531,7 +3531,7 @@ function _temp() {
3531
3531
  return DEFAULT_PREFERENCE;
3532
3532
  }
3533
3533
  var SanityVision_exports = /* @__PURE__ */ __exportAll({ default: () => SanityVision });
3534
- const vistaGui = createRetryableLazy(() => import("./VistaGui-xe1fgOz7.js").then((module) => ({ default: module.VistaGui }))), VistaGuiLoader = vistaGui.Component;
3534
+ const vistaGui = createRetryableLazy(() => import("./VistaGui-BEfy6jMX.js").then((module) => ({ default: module.VistaGui }))), VistaGuiLoader = vistaGui.Component;
3535
3535
  function SanityVision(props) {
3536
3536
  let $ = c(31), t0;
3537
3537
  $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = { apiVersion: "1" }, $[0] = t0) : t0 = $[0];
@@ -3584,4 +3584,4 @@ function SanityVision(props) {
3584
3584
  }
3585
3585
  export { VARIANTS_API_VERSION as A, getActivePerspective as C, resultJsonExtensions as D, paramsExtensions as E, API_VERSIONS as O, encodeQueryString as S, groqExtensions as T, VISION_STORAGE_KEY_PREFIX as _, getAtKeypath as a, isPlainObject as b, DelayedSpinner as c, getJsonBlobUrl as d, SanityVision as default, useSavedQueries as f, validateApiVersion as g, parseQueryUrl as h, describeKeypath as i, prefixApiVersion as j, DEFAULT_API_VERSION as k, canEncodeCsv as l, isApiCdnHost as m, createRetryableLazy as n, QueryErrorDialog as o, parseParams as p, ResultView as r, isApiVersionBelow as s, SanityVision_exports as t, getCsvBlobUrl as u, getStorage as v, VisionCodeMirror as w, isVisionPasteTarget as x, onLocalStorageCleared as y };
3586
3586
 
3587
- //# sourceMappingURL=SanityVision-B0AonVrG.js.map
3587
+ //# sourceMappingURL=SanityVision-tq-vNHfg.js.map