@sanity/vision 6.20.0-next.62 → 6.20.0-next.64
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/{SanityVision-Co1sFfsL.js → SanityVision-DiVBYIzH.js} +8 -8
- package/lib/{SanityVision-Co1sFfsL.js.map → SanityVision-DiVBYIzH.js.map} +1 -1
- package/lib/{VistaGui-Bz1gWAnN.js → VistaGui-Pc4qVxiz.js} +23 -23
- package/lib/{VistaGui-Bz1gWAnN.js.map → VistaGui-Pc4qVxiz.js.map} +1 -1
- package/lib/bundle.css +199 -199
- package/lib/index.js +1 -1
- package/package.json +4 -4
|
@@ -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(--
|
|
297
|
+
var contentBorderRightWidthVar = "var(--hovtvf1)", contentPaddingTopVar = "var(--hovtvf2)", editorRoot = "hovtvf3", editorRootAutoHeight = "hovtvf4", linePaddingLeftVar = "var(--hovtvf0)";
|
|
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 = "
|
|
598
|
+
var controlsContainer = "b2q2kdm", downloadsCard = "b2q2kdj", header = "b2q2kd3", inputBackgroundContainer = "b2q2kd7", inputBackgroundContainerLeft = "b2q2kd8", inputContainer = "b2q2kd9", queryCopyLink = "b2q2kd6", queryRecallPaneContainer = "b2q2kd1", queryRecallPaneWrapper = "b2q2kd2", result = "b2q2kde", resultContainer = "b2q2kdc", resultContainerInvalid = "b2q2kdd", resultFooter = "b2q2kdf", resultInnerContainer = "b2q2kdb", resultOuterContainer = "b2q2kda", root = "b2q2kd0", saveResultLabel = "b2q2kdl", saveResultSpanGapVar = "var(--b2q2kdk)", splitpaneContainer = "b2q2kd5", styledLabel = "b2q2kd4", timingsCard = "b2q2kdg", timingsTextContainer = "b2q2kdi", timingsTextMinHeightVar = "var(--b2q2kdh)";
|
|
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 = "
|
|
1112
|
+
var fixedHeader = "kqktm60", queryList = "kqktm62", scrollContainer = "kqktm61";
|
|
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 = "
|
|
1882
|
+
var dot = "_1jmnje12", perspectivePopoverContent = "_1jmnje10", perspectivePopoverLink = "_1jmnje11";
|
|
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 = "
|
|
2339
|
+
var errorCode = "ud4p8t0";
|
|
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(--
|
|
2455
|
+
var codeFamilyVar = "var(--r41ixh0)", codeFontSizeVar = "var(--r41ixh1)", codeLineHeightVar = "var(--r41ixh2)", copyNodeButton = "r41ixhe", copyableResult = "r41ixhd", resultViewWrapper = "r41ixhc", space0Var = "var(--r41ixh3)", space2Var = "var(--r41ixh4)", space4HalfVar = "var(--r41ixh6)", space4Var = "var(--r41ixh5)", syntaxBooleanVar = "var(--r41ixha)", syntaxConstantVar = "var(--r41ixh8)", syntaxNumberVar = "var(--r41ixhb)", syntaxPropertyVar = "var(--r41ixh7)", syntaxStringVar = "var(--r41ixh9)";
|
|
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-
|
|
3534
|
+
const vistaGui = createRetryableLazy(() => import("./VistaGui-Pc4qVxiz.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-
|
|
3587
|
+
//# sourceMappingURL=SanityVision-DiVBYIzH.js.map
|