@sanity/vision 6.21.0-next.98 → 6.21.1-next.2
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-tHhBPbsg.js → SanityVision-Cr8Er2s4.js} +8 -6
- package/lib/SanityVision-Cr8Er2s4.js.map +1 -0
- package/lib/{VistaGui-D3NHSIsK.js → VistaGui-0nZ5Zsoe.js} +8 -8
- package/lib/VistaGui-0nZ5Zsoe.js.map +1 -0
- package/lib/{i18n-BGSN3nAJ.js → i18n-DFRqoJ_F.js} +2 -2
- package/lib/{i18n-BGSN3nAJ.js.map → i18n-DFRqoJ_F.js.map} +1 -1
- package/lib/index.d.ts +4 -4
- package/lib/index.js +2 -2
- package/lib/{resources-DpvWKOpU.js → resources-VRZHPMVB.js} +5 -5
- package/lib/resources-VRZHPMVB.js.map +1 -0
- package/package.json +4 -4
- package/lib/SanityVision-tHhBPbsg.js.map +0 -1
- package/lib/VistaGui-D3NHSIsK.js.map +0 -1
- package/lib/resources-DpvWKOpU.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as visionLocaleNamespace } from "./i18n-
|
|
1
|
+
import { t as visionLocaleNamespace } from "./i18n-DFRqoJ_F.js";
|
|
2
2
|
import { Component, Fragment, Suspense, createContext, lazy, use, useEffect, useImperativeHandle, useRef, useState, useSyncExternalStore } from "react";
|
|
3
3
|
import { ContextMenuButton, RELEASES_STUDIO_CLIENT_OPTIONS, Translate, UserAvatar, VARIANTS_STUDIO_CLIENT_OPTIONS, getDefaultVariant, getReleaseIdFromReleaseDocumentId, getVariantTitle, isCardinalityOneRelease, sortReleases, useActiveReleases, useClient, useCurrentUser, useDataset, useDateTimeFormat, useKeyValueStore, usePerspective, useScheduledDraftsEnabled, useTranslation, useWorkspace } from "sanity";
|
|
4
4
|
import { IntentLink } from "sanity/router";
|
|
@@ -62,15 +62,17 @@ var __defProp = Object.defineProperty, __exportAll = (all, no_symbols) => {
|
|
|
62
62
|
function prefixApiVersion(version) {
|
|
63
63
|
return version[0] !== "v" && version !== "other" ? `v${version}` : version;
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
/** The API version content variants need, so a selected variant forces this version */
|
|
66
|
+
const VARIANTS_API_VERSION = prefixApiVersion(VARIANTS_STUDIO_CLIENT_OPTIONS.apiVersion), API_VERSIONS = [
|
|
66
67
|
"v1",
|
|
67
68
|
"vX",
|
|
68
69
|
"v2021-03-25",
|
|
69
70
|
"v2021-10-21",
|
|
70
71
|
"v2022-03-07",
|
|
71
72
|
"v2025-02-19",
|
|
73
|
+
VARIANTS_API_VERSION,
|
|
72
74
|
`v${(/* @__PURE__ */ new Date()).toISOString().split("T")[0]}`
|
|
73
|
-
], [DEFAULT_API_VERSION] = API_VERSIONS.slice(-1),
|
|
75
|
+
], [DEFAULT_API_VERSION] = API_VERSIONS.slice(-1), sharedExtensions = [
|
|
74
76
|
lineNumbers(),
|
|
75
77
|
highlightActiveLine(),
|
|
76
78
|
highlightActiveLineGutter(),
|
|
@@ -2075,7 +2077,7 @@ function VisionGuiHeader(t0) {
|
|
|
2075
2077
|
children: /* @__PURE__ */ jsx(StyledLabel, { children: t12 })
|
|
2076
2078
|
}), $[25] = t12, $[26] = t13);
|
|
2077
2079
|
let t14;
|
|
2078
|
-
$[27] === t ? t14 = $[28] : (t14 = t("settings.api-version-locked-for-variant"), $[27] = t, $[28] = t14);
|
|
2080
|
+
$[27] === t ? t14 = $[28] : (t14 = t("settings.api-version-locked-for-variant", { apiVersion: VARIANTS_API_VERSION }), $[27] = t, $[28] = t14);
|
|
2079
2081
|
let t15;
|
|
2080
2082
|
$[29] === t14 ? t15 = $[30] : (t15 = /* @__PURE__ */ jsx(Text, {
|
|
2081
2083
|
size: 1,
|
|
@@ -3533,7 +3535,7 @@ function _temp() {
|
|
|
3533
3535
|
return DEFAULT_PREFERENCE;
|
|
3534
3536
|
}
|
|
3535
3537
|
var SanityVision_exports = /* @__PURE__ */ __exportAll({ default: () => SanityVision });
|
|
3536
|
-
const vistaGui = createRetryableLazy(() => import("./VistaGui-
|
|
3538
|
+
const vistaGui = createRetryableLazy(() => import("./VistaGui-0nZ5Zsoe.js").then((module) => ({ default: module.VistaGui }))), VistaGuiLoader = vistaGui.Component;
|
|
3537
3539
|
function SanityVision(props) {
|
|
3538
3540
|
let $ = c(31), t0;
|
|
3539
3541
|
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = { apiVersion: "1" }, $[0] = t0) : t0 = $[0];
|
|
@@ -3586,4 +3588,4 @@ function SanityVision(props) {
|
|
|
3586
3588
|
}
|
|
3587
3589
|
export { DEFAULT_API_VERSION as A, getActivePerspective as C, paramsExtensions as D, groqExtensions as E, prefixApiVersion as M, resultJsonExtensions as O, encodeQueryString as S, VisionCodeMirror 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, VARIANTS_API_VERSION as j, API_VERSIONS 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, useVariantsEnabled as w, isVisionPasteTarget as x, onLocalStorageCleared as y };
|
|
3588
3590
|
|
|
3589
|
-
//# sourceMappingURL=SanityVision-
|
|
3591
|
+
//# sourceMappingURL=SanityVision-Cr8Er2s4.js.map
|