sanity 5.25.1-next.1 → 5.25.1-next.3

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.25.1-next.1";
1
+ var version = "5.25.1-next.3";
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.1-next.1";
10
+ "5.25.1-next.3";
11
11
  } catch {
12
12
  }
13
13
  const SANITY_VERSION = buildVersion || `${version}-dev`;
package/lib/index.js CHANGED
@@ -1,4 +1,3 @@
1
- import "./bundle.css";
2
1
  import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
3
2
  import { c } from "react/compiler-runtime";
4
3
  import { Badge, Grid, Box, Stack, rem, Text as Text$1, Layer, Card, Spinner, Flex, Dialog, useTheme, Button as Button$1, Skeleton, Heading, useToast, Avatar, AvatarStack, Inline, Breadcrumbs, Code, useClickOutsideEvent, useLayer, Portal, LayerProvider, MenuDivider, Menu, useElementRect, useBoundaryElement, Autocomplete, useMediaIndex, useGlobalKeyDown, Checkbox as Checkbox$1, Switch as Switch$1, TextInput as TextInput$1, Select, ElementQuery, TabList, rgba, MenuItem as MenuItem$1, BoundaryElementProvider, usePortal, PortalProvider, _responsive, useRootTheme, useArrayProp, TextArea, TextSkeleton, useElementSize, isHTMLElement, Radio, TabPanel, Container as Container$3, studioTheme, Label, AvatarCounter, ThemeColorProvider, DialogProvider, focusLastDescendant, focusFirstDescendant, VirtualList as VirtualList$1, usePrefersDark, ThemeProvider, ToastProvider } from "@sanity/ui";
@@ -4824,9 +4823,12 @@ async function getProviders({
4824
4823
  }) {
4825
4824
  if (mode === "replace" && Array.isArray(customProviders))
4826
4825
  return customProviders;
4827
- const {
4826
+ const credentiallessClient = client.withConfig({
4827
+ token: void 0,
4828
+ withCredentials: !1
4829
+ }), {
4828
4830
  providers
4829
- } = await client.request({
4831
+ } = await credentiallessClient.request({
4830
4832
  uri: "/auth/providers"
4831
4833
  });
4832
4834
  return typeof customProviders == "function" ? customProviders(providers) : customProviders.length === 0 ? providers : mode === "replace" ? customProviders : providers.filter((official) => customProviders.some((provider) => provider.url !== official.url)).concat(customProviders);