sanity 5.25.0-next.26 → 5.25.0-next.27
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-es/version.js +2 -2
- package/lib/index.js +17 -17
- package/lib/index.js.map +1 -1
- package/package.json +11 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var version = "5.25.0-next.
|
|
1
|
+
var version = "5.25.0-next.27";
|
|
2
2
|
let buildVersion;
|
|
3
3
|
try {
|
|
4
4
|
buildVersion = process.env.PKG_BUILD_VERSION;
|
|
@@ -7,7 +7,7 @@ try {
|
|
|
7
7
|
try {
|
|
8
8
|
buildVersion = buildVersion || // This is replaced by `@sanity/pkg-utils` at build time
|
|
9
9
|
// and must always be references by its full static name, e.g. no optional chaining, no `if (process && process.env)` etc.
|
|
10
|
-
"5.25.0-next.
|
|
10
|
+
"5.25.0-next.27";
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
13
|
const SANITY_VERSION = buildVersion || `${version}-dev`;
|
package/lib/index.js
CHANGED
|
@@ -20711,7 +20711,7 @@ const MENU_POPOVER_PROPS$9 = {
|
|
|
20711
20711
|
tone: "default"
|
|
20712
20712
|
};
|
|
20713
20713
|
function ReferenceInputPreview(props2) {
|
|
20714
|
-
const $ = c(
|
|
20714
|
+
const $ = c(84), elementRef = useRef(null), {
|
|
20715
20715
|
schemaType,
|
|
20716
20716
|
path,
|
|
20717
20717
|
children,
|
|
@@ -20802,40 +20802,40 @@ function ReferenceInputPreview(props2) {
|
|
|
20802
20802
|
$[46] !== t12 ? (t13 = t12(), $[46] = t12, $[47] = t13) : t13 = $[47];
|
|
20803
20803
|
const menu = t13;
|
|
20804
20804
|
let t14;
|
|
20805
|
-
$[48] !== onPathFocus ? (t14 = (event) => {
|
|
20806
|
-
event.target === elementRef.current && onPathFocus(
|
|
20807
|
-
}, $[48] = onPathFocus, $[49] = t14) : t14 = $[
|
|
20805
|
+
$[48] !== onPathFocus || $[49] !== path ? (t14 = (event) => {
|
|
20806
|
+
event.target === elementRef.current && onPathFocus(path);
|
|
20807
|
+
}, $[48] = onPathFocus, $[49] = path, $[50] = t14) : t14 = $[50];
|
|
20808
20808
|
const handleFocus = t14, [cardRef, setCardRef] = useState(null);
|
|
20809
20809
|
let t15, t16;
|
|
20810
|
-
if ($[
|
|
20810
|
+
if ($[51] !== cardRef || $[52] !== focused ? (t15 = () => {
|
|
20811
20811
|
focused && cardRef && cardRef.focus();
|
|
20812
|
-
}, t16 = [focused, cardRef], $[
|
|
20812
|
+
}, t16 = [focused, cardRef], $[51] = cardRef, $[52] = focused, $[53] = t15, $[54] = t16) : (t15 = $[53], t16 = $[54]), useEffect(t15, t16), isEditing) {
|
|
20813
20813
|
let t172;
|
|
20814
|
-
return $[
|
|
20814
|
+
return $[55] !== children ? (t172 = /* @__PURE__ */ jsx(Box, { children }), $[55] = children, $[56] = t172) : t172 = $[56], t172;
|
|
20815
20815
|
}
|
|
20816
20816
|
let t17;
|
|
20817
|
-
$[
|
|
20817
|
+
$[57] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t17 = {
|
|
20818
20818
|
lineHeight: 0
|
|
20819
|
-
}, $[
|
|
20819
|
+
}, $[57] = t17) : t17 = $[57];
|
|
20820
20820
|
const t18 = pressed ? !0 : void 0, t19 = selected ? !0 : void 0, t20 = value?._ref, t21 = refType?.name;
|
|
20821
20821
|
let t22;
|
|
20822
|
-
$[
|
|
20822
|
+
$[58] !== loadableReferenceInfo || $[59] !== renderPreview || $[60] !== schemaType || $[61] !== value ? (t22 = /* @__PURE__ */ jsx(PreviewReferenceValue$2, { value, referenceInfo: loadableReferenceInfo, renderPreview, type: schemaType }), $[58] = loadableReferenceInfo, $[59] = renderPreview, $[60] = schemaType, $[61] = value, $[62] = t22) : t22 = $[62];
|
|
20823
20823
|
let t23;
|
|
20824
|
-
$[
|
|
20824
|
+
$[63] !== EditReferenceLink || $[64] !== handleFocus || $[65] !== pressed || $[66] !== selected || $[67] !== t18 || $[68] !== t19 || $[69] !== t20 || $[70] !== t21 || $[71] !== t22 ? (t23 = /* @__PURE__ */ jsx(ReferenceLinkCard, { __unstable_focusRing: !0, as: EditReferenceLink, "data-pressed": t18, "data-selected": t19, documentId: t20, documentType: t21, flex: 1, pressed, radius: 2, ref: elementRef, selected, tone: "inherit", onFocus: handleFocus, children: t22 }), $[63] = EditReferenceLink, $[64] = handleFocus, $[65] = pressed, $[66] = selected, $[67] = t18, $[68] = t19, $[69] = t20, $[70] = t21, $[71] = t22, $[72] = t23) : t23 = $[72];
|
|
20825
20825
|
let t24;
|
|
20826
|
-
$[
|
|
20826
|
+
$[73] !== menu ? (t24 = /* @__PURE__ */ jsx(Box, { children: menu }), $[73] = menu, $[74] = t24) : t24 = $[74];
|
|
20827
20827
|
let t25;
|
|
20828
|
-
$[
|
|
20828
|
+
$[75] !== t23 || $[76] !== t24 ? (t25 = /* @__PURE__ */ jsx(Flex, { gap: 1, align: "center", style: t17, children: /* @__PURE__ */ jsxs(TooltipDelayGroupProvider, { children: [
|
|
20829
20829
|
t23,
|
|
20830
20830
|
t24
|
|
20831
|
-
] }) }), $[
|
|
20831
|
+
] }) }), $[75] = t23, $[76] = t24, $[77] = t25) : t25 = $[77];
|
|
20832
20832
|
let t26;
|
|
20833
|
-
$[
|
|
20833
|
+
$[78] !== footer || $[79] !== t25 ? (t26 = /* @__PURE__ */ jsxs(Stack, { space: 1, children: [
|
|
20834
20834
|
t25,
|
|
20835
20835
|
footer
|
|
20836
|
-
] }), $[
|
|
20836
|
+
] }), $[78] = footer, $[79] = t25, $[80] = t26) : t26 = $[80];
|
|
20837
20837
|
let t27;
|
|
20838
|
-
return $[
|
|
20838
|
+
return $[81] !== t26 || $[82] !== tone ? (t27 = /* @__PURE__ */ jsx(WithFocusRingCard, { border: !0, $radius: 2, padding: 1, tone, ref: setCardRef, tabIndex: -1, children: t26 }), $[81] = t26, $[82] = tone, $[83] = t27) : t27 = $[83], t27;
|
|
20839
20839
|
}
|
|
20840
20840
|
function _temp2$1A(v_0) {
|
|
20841
20841
|
return v_0.level === "warning";
|