sanity 6.2.0-next.2 → 6.2.0-next.4
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/_chunks-dts/ActiveWorkspaceMatcherContext.d.ts +45 -1
- package/lib/_chunks-es/resources2.js +1 -0
- package/lib/_chunks-es/resources2.js.map +1 -1
- package/lib/_chunks-es/resources3.js +1 -0
- package/lib/_chunks-es/resources3.js.map +1 -1
- package/lib/_chunks-es/resources4.js +1 -0
- package/lib/_chunks-es/resources4.js.map +1 -1
- package/lib/_chunks-es/resources5.js +1 -0
- package/lib/_chunks-es/resources5.js.map +1 -1
- package/lib/_chunks-es/resources6.js +1 -0
- package/lib/_chunks-es/resources6.js.map +1 -1
- package/lib/_chunks-es/resources7.js +1 -0
- package/lib/_chunks-es/resources7.js.map +1 -1
- package/lib/_chunks-es/structureTool.js +3 -3
- package/lib/_chunks-es/structureTool.js.map +1 -1
- package/lib/_chunks-es/version.js +2 -2
- package/lib/_singletons.d.ts +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +118 -75
- package/lib/index.js.map +1 -1
- package/package.json +11 -11
package/lib/index.js
CHANGED
|
@@ -81783,8 +81783,19 @@ const SORT_FIELD = "_createdAt", SORT_ORDER = "desc", QUERY_SORT_ORDER = `order(
|
|
|
81783
81783
|
};
|
|
81784
81784
|
function createVariantsStore(context) {
|
|
81785
81785
|
const {
|
|
81786
|
-
client
|
|
81787
|
-
|
|
81786
|
+
client,
|
|
81787
|
+
enabled
|
|
81788
|
+
} = context;
|
|
81789
|
+
if (!enabled)
|
|
81790
|
+
return {
|
|
81791
|
+
state$: of({
|
|
81792
|
+
variants: /* @__PURE__ */ new Map(),
|
|
81793
|
+
state: "loaded"
|
|
81794
|
+
}),
|
|
81795
|
+
dispatch: () => {
|
|
81796
|
+
}
|
|
81797
|
+
};
|
|
81798
|
+
const dispatch$ = new Subject();
|
|
81788
81799
|
function dispatch(action) {
|
|
81789
81800
|
dispatch$.next(action);
|
|
81790
81801
|
}
|
|
@@ -81812,18 +81823,19 @@ function createVariantsStore(context) {
|
|
|
81812
81823
|
};
|
|
81813
81824
|
}
|
|
81814
81825
|
function useVariantsStore() {
|
|
81815
|
-
const $ = c(
|
|
81826
|
+
const $ = c(5), workspace = useWorkspace(), variantsEnabled = !!workspace.beta?.variants?.enabled, resourceCache = useResourceCache(), studioClient = useClient(VARIANTS_STUDIO_CLIENT_OPTIONS);
|
|
81816
81827
|
let variantStore;
|
|
81817
|
-
return $[0] !== resourceCache || $[1] !== studioClient || $[2] !== workspace ? (variantStore = resourceCache.get({
|
|
81828
|
+
return $[0] !== resourceCache || $[1] !== studioClient || $[2] !== variantsEnabled || $[3] !== workspace ? (variantStore = resourceCache.get({
|
|
81818
81829
|
dependencies: [workspace],
|
|
81819
81830
|
namespace: "VariantsStore"
|
|
81820
81831
|
}) || createVariantsStore({
|
|
81821
|
-
client: studioClient
|
|
81832
|
+
client: studioClient,
|
|
81833
|
+
enabled: variantsEnabled
|
|
81822
81834
|
}), resourceCache.set({
|
|
81823
81835
|
dependencies: [workspace],
|
|
81824
81836
|
namespace: "VariantsStore",
|
|
81825
81837
|
value: variantStore
|
|
81826
|
-
}), $[0] = resourceCache, $[1] = studioClient, $[2] =
|
|
81838
|
+
}), $[0] = resourceCache, $[1] = studioClient, $[2] = variantsEnabled, $[3] = workspace, $[4] = variantStore) : variantStore = $[4], variantStore;
|
|
81827
81839
|
}
|
|
81828
81840
|
function useAllVariants() {
|
|
81829
81841
|
const $ = c(8), {
|
|
@@ -83815,6 +83827,17 @@ function CurrentVariantLabel(t0) {
|
|
|
83815
83827
|
let t2;
|
|
83816
83828
|
return $[3] !== animationKey || $[4] !== t1 ? (t2 = /* @__PURE__ */ jsx(AnimatedTextWidth, { text: animationKey, children: t1 }), $[3] = animationKey, $[4] = t1, $[5] = t2) : t2 = $[5], t2;
|
|
83817
83829
|
}
|
|
83830
|
+
function useSetVariant() {
|
|
83831
|
+
const $ = c(2), router = useRouter();
|
|
83832
|
+
let t0;
|
|
83833
|
+
return $[0] !== router ? (t0 = (variant) => {
|
|
83834
|
+
router.navigate({
|
|
83835
|
+
stickyParams: {
|
|
83836
|
+
variant: variant ? getVariantId(variant._id) : null
|
|
83837
|
+
}
|
|
83838
|
+
});
|
|
83839
|
+
}, $[0] = router, $[1] = t0) : t0 = $[1], t0;
|
|
83840
|
+
}
|
|
83818
83841
|
const StyledMenu$3 = styled(Menu).withConfig({
|
|
83819
83842
|
displayName: "StyledMenu",
|
|
83820
83843
|
componentId: "sc-1cdn8fr-0"
|
|
@@ -83826,9 +83849,9 @@ const StyledMenu$3 = styled(Menu).withConfig({
|
|
|
83826
83849
|
componentId: "sc-1cdn8fr-2"
|
|
83827
83850
|
})`${oversizedButtonStyle}`;
|
|
83828
83851
|
function VariantsMenu() {
|
|
83829
|
-
const $ = c(
|
|
83852
|
+
const $ = c(42), {
|
|
83830
83853
|
t
|
|
83831
|
-
} = useTranslation(variantsLocaleNamespace), router = useRouter(), {
|
|
83854
|
+
} = useTranslation(variantsLocaleNamespace), router = useRouter(), setVariant = useSetVariant(), {
|
|
83832
83855
|
data: variants2
|
|
83833
83856
|
} = useAllVariants(), [filterQuery, setFilterQuery] = useState(""), t0 = router.stickyParams.variant ?? void 0;
|
|
83834
83857
|
let t1;
|
|
@@ -83841,82 +83864,73 @@ function VariantsMenu() {
|
|
|
83841
83864
|
$[5] !== filterQuery || $[6] !== variants2 ? (t3 = filterVariantsForSearch(variants2, filterQuery), $[5] = filterQuery, $[6] = variants2, $[7] = t3) : t3 = $[7];
|
|
83842
83865
|
const filteredVariants = t3;
|
|
83843
83866
|
let t4;
|
|
83844
|
-
$[8] !==
|
|
83845
|
-
|
|
83846
|
-
|
|
83847
|
-
|
|
83848
|
-
}
|
|
83849
|
-
});
|
|
83850
|
-
}, $[8] = router, $[9] = t4) : t4 = $[9];
|
|
83851
|
-
const setVariantSelection = t4;
|
|
83867
|
+
$[8] !== setVariant ? (t4 = () => {
|
|
83868
|
+
setVariant(void 0), setFilterQuery("");
|
|
83869
|
+
}, $[8] = setVariant, $[9] = t4) : t4 = $[9];
|
|
83870
|
+
const handleSelectDefault = t4;
|
|
83852
83871
|
let t5;
|
|
83853
|
-
$[10] !==
|
|
83854
|
-
|
|
83855
|
-
}, $[10] =
|
|
83856
|
-
const
|
|
83872
|
+
$[10] !== setVariant ? (t5 = (variant_0) => {
|
|
83873
|
+
setVariant(variant_0), setFilterQuery("");
|
|
83874
|
+
}, $[10] = setVariant, $[11] = t5) : t5 = $[11];
|
|
83875
|
+
const handleSelectVariant = t5;
|
|
83857
83876
|
let t6;
|
|
83858
|
-
$[12]
|
|
83859
|
-
setVariantSelection(variant_1), setFilterQuery("");
|
|
83860
|
-
}, $[12] = setVariantSelection, $[13] = t6) : t6 = $[13];
|
|
83861
|
-
const handleSelectVariant = t6;
|
|
83862
|
-
let t7;
|
|
83863
|
-
$[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t7 = (event) => {
|
|
83877
|
+
$[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t6 = (event) => {
|
|
83864
83878
|
setFilterQuery(event.currentTarget.value);
|
|
83865
|
-
}, $[
|
|
83866
|
-
const handleFilterChange =
|
|
83867
|
-
let
|
|
83868
|
-
$[
|
|
83879
|
+
}, $[12] = t6) : t6 = $[12];
|
|
83880
|
+
const handleFilterChange = t6;
|
|
83881
|
+
let t7;
|
|
83882
|
+
$[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t7 = () => {
|
|
83869
83883
|
setFilterQuery("");
|
|
83870
|
-
}, $[
|
|
83871
|
-
const handleMenuClose =
|
|
83884
|
+
}, $[13] = t7) : t7 = $[13];
|
|
83885
|
+
const handleMenuClose = t7, isDefaultSelected = !selectedVariant;
|
|
83886
|
+
let t8;
|
|
83887
|
+
$[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t8 = /* @__PURE__ */ jsx(OversizedButton, { "data-testid": "variants-nav-menu-button", iconRight: ChevronDownIcon, mode: "bleed", padding: 2, radius: "full" }), $[14] = t8) : t8 = $[14];
|
|
83872
83888
|
let t9;
|
|
83873
|
-
$[
|
|
83889
|
+
$[15] !== t ? (t9 = t("navbar.variant.filter-placeholder"), $[15] = t, $[16] = t9) : t9 = $[16];
|
|
83874
83890
|
let t10;
|
|
83875
|
-
$[17] !==
|
|
83891
|
+
$[17] !== filterQuery || $[18] !== t9 ? (t10 = /* @__PURE__ */ jsx(Box, { padding: 2, children: /* @__PURE__ */ jsx(TextInput$1, { fontSize: 1, onChange: handleFilterChange, placeholder: t9, radius: 2, value: filterQuery }) }), $[17] = filterQuery, $[18] = t9, $[19] = t10) : t10 = $[19];
|
|
83876
83892
|
let t11;
|
|
83877
|
-
$[
|
|
83893
|
+
$[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t11 = /* @__PURE__ */ jsx(MenuDivider, {}), $[20] = t11) : t11 = $[20];
|
|
83878
83894
|
let t12;
|
|
83879
|
-
$[
|
|
83895
|
+
$[21] !== t ? (t12 = t("navbar.variant.default"), $[21] = t, $[22] = t12) : t12 = $[22];
|
|
83880
83896
|
let t13;
|
|
83881
|
-
$[23] !==
|
|
83897
|
+
$[23] !== handleSelectDefault || $[24] !== isDefaultSelected || $[25] !== t12 ? (t13 = /* @__PURE__ */ jsx(MenuItem, { "data-testid": "variant-default", icon: RhombusIcon, onClick: handleSelectDefault, pressed: isDefaultSelected, selected: isDefaultSelected, text: t12 }), $[23] = handleSelectDefault, $[24] = isDefaultSelected, $[25] = t12, $[26] = t13) : t13 = $[26];
|
|
83882
83898
|
let t14;
|
|
83883
|
-
$[
|
|
83884
|
-
let t15;
|
|
83885
|
-
$[29] !== filteredVariants || $[30] !== handleSelectVariant || $[31] !== selectedVariant?._id || $[32] !== t ? (t15 = filteredVariants.length > 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
83899
|
+
$[27] !== filteredVariants || $[28] !== handleSelectVariant || $[29] !== selectedVariant?._id || $[30] !== t ? (t14 = filteredVariants.length > 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
83886
83900
|
/* @__PURE__ */ jsx(Box, { padding: 3, paddingBottom: 2, children: /* @__PURE__ */ jsx(SectionHeader, { muted: !0, size: 0, weight: "medium", children: t("navbar.variant.other") }) }),
|
|
83887
|
-
filteredVariants.map((
|
|
83888
|
-
const isSelected = selectedVariant?._id ===
|
|
83889
|
-
return /* @__PURE__ */ jsx(MenuItem, { "data-testid": `variant-${getVariantId(
|
|
83901
|
+
filteredVariants.map((variant_1) => {
|
|
83902
|
+
const isSelected = selectedVariant?._id === variant_1._id;
|
|
83903
|
+
return /* @__PURE__ */ jsx(MenuItem, { "data-testid": `variant-${getVariantId(variant_1._id)}`, icon: RhombusIcon, onClick: () => handleSelectVariant(variant_1), pressed: isSelected, selected: isSelected, text: getVariantTitle(variant_1) }, variant_1._id);
|
|
83890
83904
|
})
|
|
83891
|
-
] }), $[
|
|
83892
|
-
let
|
|
83893
|
-
$[
|
|
83905
|
+
] }), $[27] = filteredVariants, $[28] = handleSelectVariant, $[29] = selectedVariant?._id, $[30] = t, $[31] = t14) : t14 = $[31];
|
|
83906
|
+
let t15;
|
|
83907
|
+
$[32] !== t10 || $[33] !== t13 || $[34] !== t14 ? (t15 = /* @__PURE__ */ jsxs(StyledMenu$3, { "data-testid": "variants-nav-menu", padding: 0, children: [
|
|
83908
|
+
t10,
|
|
83894
83909
|
t11,
|
|
83895
|
-
|
|
83896
|
-
t14
|
|
83897
|
-
|
|
83898
|
-
|
|
83910
|
+
t13,
|
|
83911
|
+
t14
|
|
83912
|
+
] }), $[32] = t10, $[33] = t13, $[34] = t14, $[35] = t15) : t15 = $[35];
|
|
83913
|
+
let t16;
|
|
83914
|
+
$[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t16 = [0, 0, 32, 0], $[36] = t16) : t16 = $[36];
|
|
83899
83915
|
let t17;
|
|
83900
|
-
$[
|
|
83916
|
+
$[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t17 = ["bottom-end"], $[37] = t17) : t17 = $[37];
|
|
83901
83917
|
let t18;
|
|
83902
|
-
$[
|
|
83903
|
-
let t19;
|
|
83904
|
-
$[40] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t19 = {
|
|
83918
|
+
$[38] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t18 = {
|
|
83905
83919
|
overflow: "hidden"
|
|
83906
|
-
}, $[
|
|
83907
|
-
let
|
|
83908
|
-
$[
|
|
83909
|
-
__unstable_margins:
|
|
83920
|
+
}, $[38] = t18) : t18 = $[38];
|
|
83921
|
+
let t19;
|
|
83922
|
+
$[39] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t19 = {
|
|
83923
|
+
__unstable_margins: t16,
|
|
83910
83924
|
constrainSize: !0,
|
|
83911
|
-
fallbackPlacements:
|
|
83925
|
+
fallbackPlacements: t17,
|
|
83912
83926
|
placement: "bottom-end",
|
|
83913
83927
|
portal: !0,
|
|
83914
|
-
style:
|
|
83928
|
+
style: t18,
|
|
83915
83929
|
tone: "default",
|
|
83916
83930
|
zOffset: 3e3
|
|
83917
|
-
}, $[
|
|
83918
|
-
let
|
|
83919
|
-
return $[
|
|
83931
|
+
}, $[39] = t19) : t19 = $[39];
|
|
83932
|
+
let t20;
|
|
83933
|
+
return $[40] !== t15 ? (t20 = /* @__PURE__ */ jsx(MenuButton, { button: t8, id: "variants-nav-menu", onClose: handleMenuClose, menu: t15, popover: t19 }), $[40] = t15, $[41] = t20) : t20 = $[41], t20;
|
|
83920
83934
|
}
|
|
83921
83935
|
const VariantsNavContainer = styled(Card).withConfig({
|
|
83922
83936
|
displayName: "VariantsNavContainer",
|
|
@@ -90940,14 +90954,31 @@ const GlobalStyle = () => {
|
|
|
90940
90954
|
} = getTheme_v2(theme);
|
|
90941
90955
|
return css`::-webkit-resizer{background-image:${buildResizeHandleDataUri(color.icon)};background-repeat:no-repeat;background-position:bottom right;}::-webkit-scrollbar{width:${SCROLLBAR_SIZE}px;height:${SCROLLBAR_SIZE}px;}::-webkit-scrollbar-corner{background-color:transparent;}::-webkit-scrollbar-thumb{background-clip:content-box;background-color:var(--card-border-color,${color.border});border:${SCROLLBAR_BORDER_SIZE}px solid transparent;}::-webkit-scrollbar-thumb:hover{background-color:var(--card-muted-fg-color,${color.muted.fg});}::-webkit-scrollbar-track{background:transparent;}*::selection{background-color:${rgba$1(color.focusRing, 0.3)};}html{background-color:${color.bg};}body{scrollbar-gutter:stable;}#sanity{font-family:${font.text.family};}b{font-weight:${font.text.weights.medium};}strong{font-weight:${font.text.weights.medium};}`;
|
|
90942
90956
|
});
|
|
90957
|
+
function getBundleIdFromPerspective(selectedPerspective) {
|
|
90958
|
+
return isPublishedPerspective(selectedPerspective) ? "published" : isDraftPerspective(selectedPerspective) ? "drafts" : isReleaseDocument(selectedPerspective) ? getReleaseIdFromReleaseDocumentId(selectedPerspective._id) : typeof selectedPerspective == "string" ? selectedPerspective : "drafts";
|
|
90959
|
+
}
|
|
90960
|
+
function getSelectedVariant(options) {
|
|
90961
|
+
const {
|
|
90962
|
+
selectedVariantName,
|
|
90963
|
+
variantsById
|
|
90964
|
+
} = options;
|
|
90965
|
+
if (!selectedVariantName)
|
|
90966
|
+
return;
|
|
90967
|
+
const variantDocumentId = decodeVariantIdFromRoute(selectedVariantName);
|
|
90968
|
+
if (variantDocumentId)
|
|
90969
|
+
return variantsById.get(variantDocumentId);
|
|
90970
|
+
}
|
|
90943
90971
|
function PerspectiveProvider(t0) {
|
|
90944
|
-
const $ = c(
|
|
90972
|
+
const $ = c(27), {
|
|
90945
90973
|
children,
|
|
90946
90974
|
selectedPerspectiveName,
|
|
90975
|
+
selectedVariantName,
|
|
90947
90976
|
excludedPerspectives: t1
|
|
90948
90977
|
} = t0, excludedPerspectives = t1 === void 0 ? EMPTY_ARRAY$y : t1, {
|
|
90949
90978
|
data: releases2
|
|
90950
90979
|
} = useActiveReleases(), {
|
|
90980
|
+
byId: variantsById
|
|
90981
|
+
} = useAllVariants(), {
|
|
90951
90982
|
document: t2
|
|
90952
90983
|
} = useWorkspace(), {
|
|
90953
90984
|
drafts: t3
|
|
@@ -90966,24 +90997,34 @@ function PerspectiveProvider(t0) {
|
|
|
90966
90997
|
}), $[3] = excludedPerspectives, $[4] = isDraftModelEnabled, $[5] = releases2, $[6] = selectedPerspectiveName, $[7] = t5) : t5 = $[7];
|
|
90967
90998
|
const perspectiveStack = t5;
|
|
90968
90999
|
let t6;
|
|
90969
|
-
$[8] !==
|
|
91000
|
+
$[8] !== selectedVariantName || $[9] !== variantsById ? (t6 = getSelectedVariant({
|
|
91001
|
+
selectedVariantName,
|
|
91002
|
+
variantsById
|
|
91003
|
+
}), $[8] = selectedVariantName, $[9] = variantsById, $[10] = t6) : t6 = $[10];
|
|
91004
|
+
const selectedVariant = t6;
|
|
90970
91005
|
let t7;
|
|
90971
|
-
$[11] !==
|
|
91006
|
+
$[11] !== releases2 || $[12] !== selectedPerspectiveName ? (t7 = isSystemBundleName(selectedPerspectiveName) ? void 0 : releases2.map(_temp$d).find((releaseName) => releaseName === selectedPerspectiveName), $[11] = releases2, $[12] = selectedPerspectiveName, $[13] = t7) : t7 = $[13];
|
|
91007
|
+
let t8;
|
|
91008
|
+
$[14] !== selectedPerspective ? (t8 = getBundleIdFromPerspective(selectedPerspective), $[14] = selectedPerspective, $[15] = t8) : t8 = $[15];
|
|
91009
|
+
let t9;
|
|
91010
|
+
$[16] !== excludedPerspectives || $[17] !== perspectiveStack || $[18] !== selectedPerspective || $[19] !== selectedPerspectiveName || $[20] !== selectedVariant || $[21] !== t7 || $[22] !== t8 ? (t9 = {
|
|
90972
91011
|
selectedPerspective,
|
|
90973
91012
|
selectedPerspectiveName,
|
|
90974
|
-
selectedReleaseId:
|
|
91013
|
+
selectedReleaseId: t7,
|
|
90975
91014
|
perspectiveStack,
|
|
90976
|
-
excludedPerspectives
|
|
90977
|
-
|
|
90978
|
-
|
|
90979
|
-
|
|
90980
|
-
|
|
91015
|
+
excludedPerspectives,
|
|
91016
|
+
selectedVariant,
|
|
91017
|
+
bundle: t8
|
|
91018
|
+
}, $[16] = excludedPerspectives, $[17] = perspectiveStack, $[18] = selectedPerspective, $[19] = selectedPerspectiveName, $[20] = selectedVariant, $[21] = t7, $[22] = t8, $[23] = t9) : t9 = $[23];
|
|
91019
|
+
const value = t9;
|
|
91020
|
+
let t10;
|
|
91021
|
+
return $[24] !== children || $[25] !== value ? (t10 = /* @__PURE__ */ jsx(PerspectiveContext.Provider, { value, children }), $[24] = children, $[25] = value, $[26] = t10) : t10 = $[26], t10;
|
|
90981
91022
|
}
|
|
90982
91023
|
function _temp$d(release) {
|
|
90983
91024
|
return getReleaseIdFromReleaseDocumentId(release._id);
|
|
90984
91025
|
}
|
|
90985
91026
|
function GlobalPerspectiveProvider(t0) {
|
|
90986
|
-
const $ = c(
|
|
91027
|
+
const $ = c(7), {
|
|
90987
91028
|
children
|
|
90988
91029
|
} = t0, router = useRouter(), {
|
|
90989
91030
|
document: t1
|
|
@@ -90996,9 +91037,9 @@ function GlobalPerspectiveProvider(t0) {
|
|
|
90996
91037
|
!isDraftModelEnabled && typeof selectedPerspectiveName > "u" && (selectedPerspectiveName = PUBLISHED$1);
|
|
90997
91038
|
let t3;
|
|
90998
91039
|
$[0] !== router.stickyParams.excludedPerspectives ? (t3 = router.stickyParams.excludedPerspectives?.split(",") || EMPTY_ARRAY$y, $[0] = router.stickyParams.excludedPerspectives, $[1] = t3) : t3 = $[1];
|
|
90999
|
-
const excludedPerspectives = t3;
|
|
91040
|
+
const excludedPerspectives = t3, selectedVariantName = typeof router.stickyParams.variant == "string" ? router.stickyParams.variant : void 0;
|
|
91000
91041
|
let t4;
|
|
91001
|
-
return $[2] !== children || $[3] !== excludedPerspectives || $[4] !== selectedPerspectiveName ? (t4 = /* @__PURE__ */ jsx(PerspectiveProvider, { selectedPerspectiveName, excludedPerspectives, children }), $[2] = children, $[3] = excludedPerspectives, $[4] = selectedPerspectiveName, $[5] = t4) : t4 = $[
|
|
91042
|
+
return $[2] !== children || $[3] !== excludedPerspectives || $[4] !== selectedPerspectiveName || $[5] !== selectedVariantName ? (t4 = /* @__PURE__ */ jsx(PerspectiveProvider, { selectedPerspectiveName, selectedVariantName, excludedPerspectives, children }), $[2] = children, $[3] = excludedPerspectives, $[4] = selectedPerspectiveName, $[5] = selectedVariantName, $[6] = t4) : t4 = $[6], t4;
|
|
91002
91043
|
}
|
|
91003
91044
|
const debug$1 = debug$c("sanity:store");
|
|
91004
91045
|
function createUserApplicationCache() {
|
|
@@ -96136,6 +96177,7 @@ export {
|
|
|
96136
96177
|
getReleaseTone,
|
|
96137
96178
|
getSchemaTypeTitle,
|
|
96138
96179
|
getSearchableTypes,
|
|
96180
|
+
getSelectedVariant,
|
|
96139
96181
|
getTemplatePermissions,
|
|
96140
96182
|
getValueAtPath,
|
|
96141
96183
|
getValueError,
|
|
@@ -96378,6 +96420,7 @@ export {
|
|
|
96378
96420
|
useSearchMaxFieldDepth,
|
|
96379
96421
|
useSearchState,
|
|
96380
96422
|
useSetPerspective,
|
|
96423
|
+
useSetVariant,
|
|
96381
96424
|
useSingleDocRelease,
|
|
96382
96425
|
useSource,
|
|
96383
96426
|
useStudioFeedbackTags,
|