sanity 5.22.1-next.13 → 5.22.1-next.15

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.
@@ -1,4 +1,4 @@
1
- var version = "5.22.1-next.13+583bccea9c";
1
+ var version = "5.22.1-next.15+91ebac8244";
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.22.1-next.13+583bccea9c";
10
+ "5.22.1-next.15+91ebac8244";
11
11
  } catch {
12
12
  }
13
13
  const SANITY_VERSION = buildVersion || `${version}-dev`;
package/lib/index.js CHANGED
@@ -39339,7 +39339,7 @@ function FileUploadPlaceHolder$1(props2) {
39339
39339
  $[3] !== assetSources || $[4] !== readOnly || $[5] !== schemaType || $[6] !== t0 ? (t1 = /* @__PURE__ */ jsx(AssetSourceBrowser, { assetSources, readOnly, schemaType, onSelectAssetSource: t0 }), $[3] = assetSources, $[4] = readOnly, $[5] = schemaType, $[6] = t0, $[7] = t1) : t1 = $[7];
39340
39340
  const browseElement = t1, t2 = readOnly ? "transparent" : "inherit";
39341
39341
  let t3;
39342
- $[8] !== assetSources || $[9] !== browseElement || $[10] !== directUploads || $[11] !== disableNew || $[12] !== onOpenSourceForUpload || $[13] !== onSelectFiles || $[14] !== readOnly || $[15] !== schemaType ? (t3 = disableNew ? browseElement : /* @__PURE__ */ jsx(UploadPlaceholder, { assetSources, browse: browseElement, directUploads, onUpload: onSelectFiles, onOpenSourceForUpload, schemaType, readOnly, type: "file" }), $[8] = assetSources, $[9] = browseElement, $[10] = directUploads, $[11] = disableNew, $[12] = onOpenSourceForUpload, $[13] = onSelectFiles, $[14] = readOnly, $[15] = schemaType, $[16] = t3) : t3 = $[16];
39342
+ $[8] !== assetSources || $[9] !== browseElement || $[10] !== directUploads || $[11] !== disableNew || $[12] !== onOpenSourceForUpload || $[13] !== onSelectFiles || $[14] !== readOnly || $[15] !== schemaType ? (t3 = disableNew ? /* @__PURE__ */ jsx(Flex, { align: "center", justify: "flex-end", children: browseElement }) : /* @__PURE__ */ jsx(UploadPlaceholder, { assetSources, browse: browseElement, directUploads, onUpload: onSelectFiles, onOpenSourceForUpload, schemaType, readOnly, type: "file" }), $[8] = assetSources, $[9] = browseElement, $[10] = directUploads, $[11] = disableNew, $[12] = onOpenSourceForUpload, $[13] = onSelectFiles, $[14] = readOnly, $[15] = schemaType, $[16] = t3) : t3 = $[16];
39343
39343
  let t4;
39344
39344
  return $[17] !== t2 || $[18] !== t3 ? (t4 = /* @__PURE__ */ jsx(Card, { tone: t2, border: !0, paddingX: 3, paddingY: 2, radius: 2, children: t3 }), $[17] = t2, $[18] = t3, $[19] = t4) : t4 = $[19], t4;
39345
39345
  }
@@ -41657,7 +41657,7 @@ function ImageInputUploadPlaceholderComponent(props2) {
41657
41657
  }, $[2] = t1) : t1 = $[2];
41658
41658
  const t2 = readOnly ? "transparent" : "inherit";
41659
41659
  let t3;
41660
- $[3] !== assetSources || $[4] !== directUploads || $[5] !== disableNew || $[6] !== handleOnUpload || $[7] !== onOpenSourceForUpload || $[8] !== readOnly || $[9] !== renderBrowser || $[10] !== schemaType ? (t3 = disableNew ? renderBrowser() : /* @__PURE__ */ jsx(UploadPlaceholder, { assetSources, browse: renderBrowser(), directUploads, onUpload: handleOnUpload, onOpenSourceForUpload, schemaType, readOnly, type: "image" }), $[3] = assetSources, $[4] = directUploads, $[5] = disableNew, $[6] = handleOnUpload, $[7] = onOpenSourceForUpload, $[8] = readOnly, $[9] = renderBrowser, $[10] = schemaType, $[11] = t3) : t3 = $[11];
41660
+ $[3] !== assetSources || $[4] !== directUploads || $[5] !== disableNew || $[6] !== handleOnUpload || $[7] !== onOpenSourceForUpload || $[8] !== readOnly || $[9] !== renderBrowser || $[10] !== schemaType ? (t3 = disableNew ? /* @__PURE__ */ jsx(Flex, { align: "center", justify: "flex-end", children: renderBrowser() }) : /* @__PURE__ */ jsx(UploadPlaceholder, { assetSources, browse: renderBrowser(), directUploads, onUpload: handleOnUpload, onOpenSourceForUpload, schemaType, readOnly, type: "image" }), $[3] = assetSources, $[4] = directUploads, $[5] = disableNew, $[6] = handleOnUpload, $[7] = onOpenSourceForUpload, $[8] = readOnly, $[9] = renderBrowser, $[10] = schemaType, $[11] = t3) : t3 = $[11];
41661
41661
  let t4;
41662
41662
  return $[12] !== t2 || $[13] !== t3 ? (t4 = /* @__PURE__ */ jsx("div", { style: t1, children: /* @__PURE__ */ jsx(Card, { tone: t2, border: !0, paddingX: 3, paddingY: 2, radius: 2, children: t3 }) }), $[12] = t2, $[13] = t3, $[14] = t4) : t4 = $[14], t4;
41663
41663
  }