@sanity/sdk-react 3.9.0-next.20261008143531 → 3.9.0-next.20261009160705
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/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +149 -65
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/auth/LoginError.test.tsx +238 -9
- package/src/components/auth/LoginError.tsx +50 -76
- package/src/components/auth/ProjectAccessError.tsx +124 -0
- package/src/components/errors/Error.tsx +5 -1
- package/src/hooks/projection/useDocumentProjection.ts +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -3259,7 +3259,8 @@ interface useDocumentProjectionResults<TData> {
|
|
|
3259
3259
|
* }
|
|
3260
3260
|
*
|
|
3261
3261
|
* // Keep the projection string identical to its entry in the existing generated file.
|
|
3262
|
-
* //
|
|
3262
|
+
* // Typegen also scans defineProjection imported from the SDK. See defineProjection for
|
|
3263
|
+
* // passing the document type first.
|
|
3263
3264
|
* const myProjection = defineProjection(`{
|
|
3264
3265
|
* title,
|
|
3265
3266
|
* 'coverImage': cover.asset->url,
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":["FallbackProps","LoginErrorProps","LoginError","error","resetErrorBoundary","React","ReactNode","LoginErrorProps","AuthBoundaryProps","React","ReactNode","ComponentType","AuthBoundary","LoginErrorComponent","DocumentResource","SanityConfig","ReactElement","SanityAppProps","Record","React","ReactNode","SanityApp","children","fallback","configProp","DocumentResource","SanityConfig","ReactElement","ReactNode","AuthBoundaryProps","SDKProviderProps","Record","SDKProvider","children","config","fallback","inferMediaLibraryAndCanvas","DatasetHandle","DocumentHandle","CoreDocumentHandle","DocumentTypeHandle","CoreDocumentTypeHandle","ResourceHandle","TDataset","TProjectId","TDocumentType","CoreDocumentTypeHandle","CoreDocumentHandle","React","PropsWithChildren","ComlinkTokenRefreshProvider","FC","React","SanityConfig","RenderSanitySDKAppOptions","NamedSources","renderSanityApp","HTMLElement","React","ReactNode","DocumentResource","SanityConfig","ResourceProviderProps","React","ReactNode","ResourceProvider","children","fallback","resource","SanityInstance","SanityInstanceProviderProps","React","ReactNode","SanityInstanceProvider","instance","fallback","children","TokenSource","StudioWorkspaceHandle","SDKStudioContext","Fetcher","FetcherHookResult","TData","Promise","createFetcherHook","TParams","AccessResourceType","FetcherHookResult","useCheckPermissions","Permission","Record","AgentGenerateOptions","AgentPatchOptions","AgentPatchResult","AgentPromptOptions","AgentPromptResult","AgentTransformOptions","AgentTranslateOptions","ResourceHandle","Subscription","Observer","T","Subscribable","useAgentGenerate","useAgentTransform","useAgentTranslate","useAgentPrompt","Promise","useAgentPatch","Application","ApplicationInclude","FetcherHookResult","useApplication","Include","ApplicationInclude","ApplicationsOptions","ApplicationsResponse","FetcherHookResult","useApplications","Include","SanityInstance","MutationResult","MutationHookResult","TInput","TResult","Promise","createMutationHook","_$___helpers_createMutationHook0","useDeleteApplication","MutationHookResult","_$___helpers_createMutationHook0.MutationHookResult","_$___helpers_createMutationHook0","useUpdateApplication","MutationHookResult","_$___helpers_createMutationHook0.MutationHookResult","AuthState","useAuthState","useAuthToken","CurrentUser","UseCurrentUser","useCurrentUser","useHandleAuthCallback","Promise","useHandleOAuthCallback","Promise","useLoginUrl","useLogOut","Promise","useOAuthAuthorize","Promise","OAuthTokens","UseOAuthTokensResult","Omit","Promise","useOAuthTokens","useVerifyOrgProjects","ClientOptions","useClient","Status","FrameMessage","WindowMessage","FrameMessageHandler","TWindowMessage","Promise","UseFrameConnectionOptions","K","Extract","FrameConnection","T","TFrameMessage","Window","useFrameConnection","MessageData","FrameMessage","WindowMessage","WindowMessageHandler","TFrameMessage","UseWindowConnectionOptions","TMessage","Record","WindowConnection","TType","TResponse","Extract","AbortSignal","Promise","useWindowConnection","TWindowMessage","name","connectTo","onMessage","DocumentResource","PerspectiveHandle","NormalizedResourceFields","WithResourceNameSupport","T","normalizeResourceOptions","Record","Omit","useEffectiveContextResource","useNormalizedResourceOptions","Comment","CreateCommentOptions","RemoveCommentOptions","ReplyToCommentOptions","SetCommentStatusOptions","UpdateCommentOptions","WithResourceNameSupport","CommentActions","Promise","useCommentActions","Comment","CommentsOptions","WithResourceNameSupport","UseCommentsResult","useComments","CommentsOptions","CommentThread","WithResourceNameSupport","UseCommentThreadsResult","useCommentThreads","DocumentResource","useResource","SanityInstance","useSanityInstance","CanvasResource","MediaResource","StudioResource","DocumentHandle","FavoriteDocumentContext","UseFavoriteProps","useFavoriteContext","documentId","documentType","paramProjectId","paramDataset","paramResourceId","resourceType","schemaName","DocumentHandle","UseFavoriteProps","useFavorite","CanvasResource","MediaResource","StudioResource","DocumentHandle","DocumentInteractionHistory","UseRecordDocumentHistoryEventProps","useRecordDocumentHistoryEvent","DocumentHandle","DashboardResource","WorkspacesByProjectIdDataset","StudioWorkspacesResult","useStudioWorkspacesByProjectIdDataset","FavoriteStatusResponse","UseFavoriteProps","UpdateFavorite","Promise","useUpdateFavorite","DatasetsResponse","ProjectHandle","FetcherHookResult","useDatasets","DatasetsResponse","ActionsResult","DocumentAction","ResolveDocument","ResourceHandle","UseApplyDocumentActions","TDocumentType","TDataset","TProjectId","Promise","useApplyDocumentActions","ResolveDocument","DocumentHandle","DocumentTypeHandle","IgnoredKey","CreateDocumentOverrides","useCreateDocument","TDocumentType","TDataset","TProjectId","Omit","Partial","Promise","TData","Record","DocumentOptions","JsonMatch","ResolveDocument","DocumentHandle","UseDocumentOptions","TPath","TDocumentType","TDataset","TProjectId","UseDocument","TData","useDocument","DocumentEvent","ResourceHandle","UseDocumentEventOptions","TDataset","TProjectId","useDocumentEvent","DocumentAction","DocumentPermissionsResult","WithResourceNameSupport","useDocumentPermissions","DocumentHandle","UseDocumentSyncStatus","useDocumentSyncStatus","DocumentHandle","ActionsResult","DocumentOptions","JsonMatch","ResolveDocument","Updater","TValue","useEditDocument","TDocumentType","TDataset","TProjectId","Promise","TPath","TData","DocumentHandle","QueryOptions","SortOrderingItem","ResourceHandle","DocumentsOptions","TDocumentType","TDataset","TProjectId","Pick","DocumentsResponse","useDocuments","batchSize","params","search","filter","orderings","documentType","SortOrderingItem","DocumentHandle","Installation","InstallationInclude","FetcherHookResult","useInstallation","Include","InstallationInclude","InstallationsOptions","InstallationsResponse","FetcherHookResult","useInstallations","Include","Organization","OrganizationOptions","FetcherHookResult","useOrganization","IncludeMembers","IncludeFeatures","Organizations","OrganizationsOptions","FetcherHookResult","useOrganizations","IncludeMembers","IncludeFeatures","DocumentHandle","QueryOptions","SortOrderingItem","WithResourceNameSupport","PaginatedDocumentsOptions","TDocumentType","TDataset","TProjectId","Omit","PaginatedDocumentsResponse","usePaginatedDocuments","documentType","filter","pageSize","params","orderings","search","SortOrderingItem","DocumentHandle","UserPresence","ResourceHandle","usePresence","DocumentPresence","Path","DocumentHandle","UsePresenceForDocumentOptions","usePresenceForDocument","PresenceSelection","Path","DocumentHandle","UseReportPresenceOptions","useReportPresence","PreviewValue","DocumentHandle","useDocumentPreviewOptions","React","RefObject","useDocumentPreviewResults","useDocumentPreview","ref","ResolveProjectionResult","DocumentHandle","useDocumentProjectionOptions","TProjection","TDocumentType","TDataset","TProjectId","Record","React","RefObject","useDocumentProjectionResults","TData","useDocumentProjection","Project","ProjectOptions","FetcherHookResult","useProject","IncludeMembers","IncludeFeatures","Project","ProjectsOptions","FetcherHookResult","useProjects","IncludeMembers","IncludeFeatures","QueryOptions","ResolveQueryResult","WithResourceNameSupport","UseQueryOptions","TQuery","TDataset","TProjectId","useQuery","TData","DatasetHandle","ReleaseDocument","WithResourceNameSupport","useActiveReleases","DatasetHandle","ReleaseDocument","WithResourceNameSupport","useAllReleases","ActionsResult","ReleaseAction","ResourceHandle","UseApplyReleaseActions","Promise","useApplyReleaseActions","ResourceHandle","usePerspective","GetUserOptions","SanityUser","UserResult","useUser","GetUsersOptions","SanityUser","UsersResult","useUsers","REACT_SDK_VERSION"],"sources":["../src/components/auth/LoginError.tsx","../src/components/auth/AuthBoundary.tsx","../src/components/SanityApp.tsx","../src/components/SDKProvider.tsx","../src/config/handles.ts","../src/context/ComlinkTokenRefresh.tsx","../src/context/renderSanityApp.tsx","../src/context/ResourceProvider.tsx","../src/context/SanityInstanceProvider.tsx","../src/context/SDKStudioContext.ts","../src/hooks/helpers/createFetcherHook.ts","../src/hooks/access/useCheckPermissions.ts","../src/hooks/agent/agentActions.ts","../src/hooks/applications/useApplication.ts","../src/hooks/applications/useApplications.ts","../src/hooks/helpers/createMutationHook.tsx","../src/hooks/applications/useDeleteApplication.ts","../src/hooks/applications/useUpdateApplication.ts","../src/hooks/auth/useAuthState.tsx","../src/hooks/auth/useAuthToken.tsx","../src/hooks/auth/useCurrentUser.tsx","../src/hooks/auth/useHandleAuthCallback.tsx","../src/hooks/auth/useHandleOAuthCallback.tsx","../src/hooks/auth/useLoginUrl.tsx","../src/hooks/auth/useLogOut.tsx","../src/hooks/auth/useOAuthAuthorize.tsx","../src/hooks/auth/useOAuthTokens.tsx","../src/hooks/auth/useVerifyOrgProjects.tsx","../src/hooks/client/useClient.ts","../../../node_modules/.pnpm/xstate@5.33.2/node_modules/xstate/dist/declarations/src/index.d.ts","../../../node_modules/.pnpm/@sanity+comlink@4.0.3/node_modules/@sanity/comlink/dist/index.d.ts","../src/hooks/comlink/useFrameConnection.ts","../src/hooks/comlink/useWindowConnection.ts","../src/hooks/helpers/useNormalizedResourceOptions.ts","../src/hooks/comments/useCommentActions.ts","../src/hooks/comments/useComments.ts","../src/hooks/comments/useCommentThreads.ts","../src/hooks/context/useResource.ts","../src/hooks/context/useSanityInstance.ts","../src/hooks/dashboard/useFavoriteContext.ts","../src/hooks/dashboard/useFavorite.ts","../src/hooks/dashboard/useRecordDocumentHistoryEvent.ts","../src/hooks/dashboard/useStudioWorkspacesByProjectIdDataset.ts","../src/hooks/dashboard/useUpdateFavorite.ts","../src/hooks/datasets/useDatasets.ts","../src/hooks/document/useApplyDocumentActions.ts","../src/hooks/document/useCreateDocument.ts","../src/hooks/document/useDocument.ts","../src/hooks/document/useDocumentEvent.ts","../src/hooks/document/useDocumentPermissions.ts","../src/hooks/document/useDocumentSyncStatus.ts","../src/hooks/document/useEditDocument.ts","../src/hooks/documents/useDocuments.ts","../src/hooks/installations/useInstallation.ts","../src/hooks/installations/useInstallations.ts","../src/hooks/organizations/useOrganization.ts","../src/hooks/organizations/useOrganizations.ts","../src/hooks/paginatedDocuments/usePaginatedDocuments.ts","../src/hooks/presence/usePresence.ts","../src/hooks/presence/usePresenceForDocument.ts","../src/hooks/presence/useReportPresence.ts","../src/hooks/preview/useDocumentPreview.tsx","../src/hooks/projection/useDocumentProjection.ts","../src/hooks/projects/useProject.ts","../src/hooks/projects/useProjects.ts","../src/hooks/query/useQuery.ts","../src/hooks/releases/useActiveReleases.ts","../src/hooks/releases/useAllReleases.ts","../src/hooks/releases/useApplyReleaseActions.ts","../src/hooks/releases/usePerspective.ts","../src/hooks/users/useUser.ts","../src/hooks/users/useUsers.ts","../src/version.ts"],"ignoreList":[29,30],"mappings":";;;;;;;;;;;;;KAsBYC,kBAAkBD;;;;UCiBbQ;;;;;EAKf,iBAAiBC,MAAME;IACrB,SAASF,MAAMC;IACf,SAASD,MAAMC;;;;;;EAOjB,oBAAoBD,MAAME;IACxB,SAASF,MAAMC;IACf,SAASD,MAAMC;;;;;;;EAQjB,sBAAsBD,MAAME,cAAcJ;;EAG1C,SAASE,MAAMC;;;;EAKf;;EAGA,SAASD,MAAMC;;EAGf,WAAWD,MAAMC;;;;;;;;EASjB;;;;;;;;;;;;;;;;;;;;;;;wBAwBcE,eACdC,wBACG,SACFL,oBAAoBC,MAAMC;;;;;;UCpGZO;;;;;;;EAOf,SAASF,eAAeA;EACxB,YAAYG,eAAeJ;EAC3B,UAAUK,MAAMC;EAEhB,UAAUD,MAAMC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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F,QAAQI,gBAAgBC;;;;;KC1B1CI,gBACH,gCACA,kCACA,sCACED,wBAAwBF,aAAaI,QAAQC,UAAUC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA0D3CC,SACd,gCACA,kCACA,oCAEA,SAASJ,gBAAgBC,QAAQC,UAAUC;;EAG3C,MAAML,mBAAmBG,WAAWE,cAAcD;;EAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAgCcE,SAAS,OAAO,SAASL,wBAAwBF;;EAE/D,MAAMQ;;EAEN;;;;;;;;;;;;;;;;;;wBCzEcI,kBACd,UAAUD,wBAAwBF,6BACjCC;;;;;;;;;;;;;;;;;;;;;;;;;;wBCKaM,eACd,UAAUD,wBAAwBF,6BACjCC;;;;UClDOM;OACH,QAAQF,gBAAgBA,iBAAiB,UAAUC,mBAAmBE,QAAQJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAsExEK,wBAAwBF;;;;;;;;;;;;;;;;;;;;;wBChCrBI,eAAe,oBAAoBD;;;;;;UCnClCI;;;;EAIf,MAAMD;;;;EAIN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAmCcE,QAAQ,SAASH,iBAAiBE;;;;;;UCpCjCI;;;;EAIf,MAAMD;;;;EAIN;;;;EAIA;;;;EAKA;;;;EAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA2DcE,SAAS,UAAUH,kBAAkBE;;;;;qBC5FxCE"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["FallbackProps","LoginErrorProps","LoginError","error","resetErrorBoundary","React","ReactNode","LoginErrorProps","AuthBoundaryProps","React","ReactNode","ComponentType","AuthBoundary","LoginErrorComponent","DocumentResource","SanityConfig","ReactElement","SanityAppProps","Record","React","ReactNode","SanityApp","children","fallback","configProp","DocumentResource","SanityConfig","ReactElement","ReactNode","AuthBoundaryProps","SDKProviderProps","Record","SDKProvider","children","config","fallback","inferMediaLibraryAndCanvas","DatasetHandle","DocumentHandle","CoreDocumentHandle","DocumentTypeHandle","CoreDocumentTypeHandle","ResourceHandle","TDataset","TProjectId","TDocumentType","CoreDocumentTypeHandle","CoreDocumentHandle","React","PropsWithChildren","ComlinkTokenRefreshProvider","FC","React","SanityConfig","RenderSanitySDKAppOptions","NamedSources","renderSanityApp","HTMLElement","React","ReactNode","DocumentResource","SanityConfig","ResourceProviderProps","React","ReactNode","ResourceProvider","children","fallback","resource","SanityInstance","SanityInstanceProviderProps","React","ReactNode","SanityInstanceProvider","instance","fallback","children","TokenSource","StudioWorkspaceHandle","SDKStudioContext","Fetcher","FetcherHookResult","TData","Promise","createFetcherHook","TParams","AccessResourceType","FetcherHookResult","useCheckPermissions","Permission","Record","AgentGenerateOptions","AgentPatchOptions","AgentPatchResult","AgentPromptOptions","AgentPromptResult","AgentTransformOptions","AgentTranslateOptions","ResourceHandle","Subscription","Observer","T","Subscribable","useAgentGenerate","useAgentTransform","useAgentTranslate","useAgentPrompt","Promise","useAgentPatch","Application","ApplicationInclude","FetcherHookResult","useApplication","Include","ApplicationInclude","ApplicationsOptions","ApplicationsResponse","FetcherHookResult","useApplications","Include","SanityInstance","MutationResult","MutationHookResult","TInput","TResult","Promise","createMutationHook","_$___helpers_createMutationHook0","useDeleteApplication","MutationHookResult","_$___helpers_createMutationHook0.MutationHookResult","_$___helpers_createMutationHook0","useUpdateApplication","MutationHookResult","_$___helpers_createMutationHook0.MutationHookResult","AuthState","useAuthState","useAuthToken","CurrentUser","UseCurrentUser","useCurrentUser","useHandleAuthCallback","Promise","useHandleOAuthCallback","Promise","useLoginUrl","useLogOut","Promise","useOAuthAuthorize","Promise","OAuthTokens","UseOAuthTokensResult","Omit","Promise","useOAuthTokens","useVerifyOrgProjects","ClientOptions","useClient","Status","FrameMessage","WindowMessage","FrameMessageHandler","TWindowMessage","Promise","UseFrameConnectionOptions","K","Extract","FrameConnection","T","TFrameMessage","Window","useFrameConnection","MessageData","FrameMessage","WindowMessage","WindowMessageHandler","TFrameMessage","UseWindowConnectionOptions","TMessage","Record","WindowConnection","TType","TResponse","Extract","AbortSignal","Promise","useWindowConnection","TWindowMessage","name","connectTo","onMessage","DocumentResource","PerspectiveHandle","NormalizedResourceFields","WithResourceNameSupport","T","normalizeResourceOptions","Record","Omit","useEffectiveContextResource","useNormalizedResourceOptions","Comment","CreateCommentOptions","RemoveCommentOptions","ReplyToCommentOptions","SetCommentStatusOptions","UpdateCommentOptions","WithResourceNameSupport","CommentActions","Promise","useCommentActions","Comment","CommentsOptions","WithResourceNameSupport","UseCommentsResult","useComments","CommentsOptions","CommentThread","WithResourceNameSupport","UseCommentThreadsResult","useCommentThreads","DocumentResource","useResource","SanityInstance","useSanityInstance","CanvasResource","MediaResource","StudioResource","DocumentHandle","FavoriteDocumentContext","UseFavoriteProps","useFavoriteContext","documentId","documentType","paramProjectId","paramDataset","paramResourceId","resourceType","schemaName","DocumentHandle","UseFavoriteProps","useFavorite","CanvasResource","MediaResource","StudioResource","DocumentHandle","DocumentInteractionHistory","UseRecordDocumentHistoryEventProps","useRecordDocumentHistoryEvent","DocumentHandle","DashboardResource","WorkspacesByProjectIdDataset","StudioWorkspacesResult","useStudioWorkspacesByProjectIdDataset","FavoriteStatusResponse","UseFavoriteProps","UpdateFavorite","Promise","useUpdateFavorite","DatasetsResponse","ProjectHandle","FetcherHookResult","useDatasets","DatasetsResponse","ActionsResult","DocumentAction","ResolveDocument","ResourceHandle","UseApplyDocumentActions","TDocumentType","TDataset","TProjectId","Promise","useApplyDocumentActions","ResolveDocument","DocumentHandle","DocumentTypeHandle","IgnoredKey","CreateDocumentOverrides","useCreateDocument","TDocumentType","TDataset","TProjectId","Omit","Partial","Promise","TData","Record","DocumentOptions","JsonMatch","ResolveDocument","DocumentHandle","UseDocumentOptions","TPath","TDocumentType","TDataset","TProjectId","UseDocument","TData","useDocument","DocumentEvent","ResourceHandle","UseDocumentEventOptions","TDataset","TProjectId","useDocumentEvent","DocumentAction","DocumentPermissionsResult","WithResourceNameSupport","useDocumentPermissions","DocumentHandle","UseDocumentSyncStatus","useDocumentSyncStatus","DocumentHandle","ActionsResult","DocumentOptions","JsonMatch","ResolveDocument","Updater","TValue","useEditDocument","TDocumentType","TDataset","TProjectId","Promise","TPath","TData","DocumentHandle","QueryOptions","SortOrderingItem","ResourceHandle","DocumentsOptions","TDocumentType","TDataset","TProjectId","Pick","DocumentsResponse","useDocuments","batchSize","params","search","filter","orderings","documentType","SortOrderingItem","DocumentHandle","Installation","InstallationInclude","FetcherHookResult","useInstallation","Include","InstallationInclude","InstallationsOptions","InstallationsResponse","FetcherHookResult","useInstallations","Include","Organization","OrganizationOptions","FetcherHookResult","useOrganization","IncludeMembers","IncludeFeatures","Organizations","OrganizationsOptions","FetcherHookResult","useOrganizations","IncludeMembers","IncludeFeatures","DocumentHandle","QueryOptions","SortOrderingItem","WithResourceNameSupport","PaginatedDocumentsOptions","TDocumentType","TDataset","TProjectId","Omit","PaginatedDocumentsResponse","usePaginatedDocuments","documentType","filter","pageSize","params","orderings","search","SortOrderingItem","DocumentHandle","UserPresence","ResourceHandle","usePresence","DocumentPresence","Path","DocumentHandle","UsePresenceForDocumentOptions","usePresenceForDocument","PresenceSelection","Path","DocumentHandle","UseReportPresenceOptions","useReportPresence","PreviewValue","DocumentHandle","useDocumentPreviewOptions","React","RefObject","useDocumentPreviewResults","useDocumentPreview","ref","ResolveProjectionResult","DocumentHandle","useDocumentProjectionOptions","TProjection","TDocumentType","TDataset","TProjectId","Record","React","RefObject","useDocumentProjectionResults","TData","useDocumentProjection","Project","ProjectOptions","FetcherHookResult","useProject","IncludeMembers","IncludeFeatures","Project","ProjectsOptions","FetcherHookResult","useProjects","IncludeMembers","IncludeFeatures","QueryOptions","ResolveQueryResult","WithResourceNameSupport","UseQueryOptions","TQuery","TDataset","TProjectId","useQuery","TData","DatasetHandle","ReleaseDocument","WithResourceNameSupport","useActiveReleases","DatasetHandle","ReleaseDocument","WithResourceNameSupport","useAllReleases","ActionsResult","ReleaseAction","ResourceHandle","UseApplyReleaseActions","Promise","useApplyReleaseActions","ResourceHandle","usePerspective","GetUserOptions","SanityUser","UserResult","useUser","GetUsersOptions","SanityUser","UsersResult","useUsers","REACT_SDK_VERSION"],"sources":["../src/components/auth/LoginError.tsx","../src/components/auth/AuthBoundary.tsx","../src/components/SanityApp.tsx","../src/components/SDKProvider.tsx","../src/config/handles.ts","../src/context/ComlinkTokenRefresh.tsx","../src/context/renderSanityApp.tsx","../src/context/ResourceProvider.tsx","../src/context/SanityInstanceProvider.tsx","../src/context/SDKStudioContext.ts","../src/hooks/helpers/createFetcherHook.ts","../src/hooks/access/useCheckPermissions.ts","../src/hooks/agent/agentActions.ts","../src/hooks/applications/useApplication.ts","../src/hooks/applications/useApplications.ts","../src/hooks/helpers/createMutationHook.tsx","../src/hooks/applications/useDeleteApplication.ts","../src/hooks/applications/useUpdateApplication.ts","../src/hooks/auth/useAuthState.tsx","../src/hooks/auth/useAuthToken.tsx","../src/hooks/auth/useCurrentUser.tsx","../src/hooks/auth/useHandleAuthCallback.tsx","../src/hooks/auth/useHandleOAuthCallback.tsx","../src/hooks/auth/useLoginUrl.tsx","../src/hooks/auth/useLogOut.tsx","../src/hooks/auth/useOAuthAuthorize.tsx","../src/hooks/auth/useOAuthTokens.tsx","../src/hooks/auth/useVerifyOrgProjects.tsx","../src/hooks/client/useClient.ts","../../../node_modules/.pnpm/xstate@5.33.2/node_modules/xstate/dist/declarations/src/index.d.ts","../../../node_modules/.pnpm/@sanity+comlink@4.0.3/node_modules/@sanity/comlink/dist/index.d.ts","../src/hooks/comlink/useFrameConnection.ts","../src/hooks/comlink/useWindowConnection.ts","../src/hooks/helpers/useNormalizedResourceOptions.ts","../src/hooks/comments/useCommentActions.ts","../src/hooks/comments/useComments.ts","../src/hooks/comments/useCommentThreads.ts","../src/hooks/context/useResource.ts","../src/hooks/context/useSanityInstance.ts","../src/hooks/dashboard/useFavoriteContext.ts","../src/hooks/dashboard/useFavorite.ts","../src/hooks/dashboard/useRecordDocumentHistoryEvent.ts","../src/hooks/dashboard/useStudioWorkspacesByProjectIdDataset.ts","../src/hooks/dashboard/useUpdateFavorite.ts","../src/hooks/datasets/useDatasets.ts","../src/hooks/document/useApplyDocumentActions.ts","../src/hooks/document/useCreateDocument.ts","../src/hooks/document/useDocument.ts","../src/hooks/document/useDocumentEvent.ts","../src/hooks/document/useDocumentPermissions.ts","../src/hooks/document/useDocumentSyncStatus.ts","../src/hooks/document/useEditDocument.ts","../src/hooks/documents/useDocuments.ts","../src/hooks/installations/useInstallation.ts","../src/hooks/installations/useInstallations.ts","../src/hooks/organizations/useOrganization.ts","../src/hooks/organizations/useOrganizations.ts","../src/hooks/paginatedDocuments/usePaginatedDocuments.ts","../src/hooks/presence/usePresence.ts","../src/hooks/presence/usePresenceForDocument.ts","../src/hooks/presence/useReportPresence.ts","../src/hooks/preview/useDocumentPreview.tsx","../src/hooks/projection/useDocumentProjection.ts","../src/hooks/projects/useProject.ts","../src/hooks/projects/useProjects.ts","../src/hooks/query/useQuery.ts","../src/hooks/releases/useActiveReleases.ts","../src/hooks/releases/useAllReleases.ts","../src/hooks/releases/useApplyReleaseActions.ts","../src/hooks/releases/usePerspective.ts","../src/hooks/users/useUser.ts","../src/hooks/users/useUsers.ts","../src/version.ts"],"ignoreList":[29,30],"mappings":";;;;;;;;;;;;;KAoBYC,kBAAkBD;;;;UCmBbQ;;;;;EAKf,iBAAiBC,MAAME;IACrB,SAASF,MAAMC;IACf,SAASD,MAAMC;;;;;;EAOjB,oBAAoBD,MAAME;IACxB,SAASF,MAAMC;IACf,SAASD,MAAMC;;;;;;;EAQjB,sBAAsBD,MAAME,cAAcJ;;EAG1C,SAASE,MAAMC;;;;EAKf;;EAGA,SAASD,MAAMC;;EAGf,WAAWD,MAAMC;;;;;;;;EASjB;;;;;;;;;;;;;;;;;;;;;;;wBAwBcE,eACdC,wBACG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ist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { a as DashboardTokenRefreshProvider, c as createStateSourceHook, i as us
|
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
3
|
import { ClientError, CorsOriginError } from "@sanity/client";
|
|
4
4
|
import { AuthStateType, application, applications, applyDocumentActions, checkPermissions, createComment, createDocument, createSanityInstance, datasets, deleteApplication, editDocument, favorites, getActiveReleasesState, getAllReleasesState, getClientState, getCommentThreadsState, getCommentsState, getCorsErrorProjectId, getCurrentUserState, getDocumentPresence, getDocumentState, getDocumentSyncStatus, getIsInDashboardState, getLoginUrlState, getOAuthTokensState, getPermissionsState, getPerspectiveState, getPresence, getProjectionState, getQueryState, getTokenState, getUsersState, handleAuthCallback, handleOAuthCallback, installation, installations, isDatasetResource, isImportError, isMediaLibraryResource, loadMoreUsers, logout, observeOrganizationVerificationState, organization, organizations, project, projects, refreshOAuthTokens, removeComment, replyToComment, reportPresence, resolveCommentThreads, resolveComments, resolveDocument, resolveProjection, resolveQuery, resolveUsers, revokeOAuthTokens, setAuthToken, setCommentStatus, setFavorite, startOAuthAuthorization, subscribeDocumentEvents, updateApplication, updateComment } from "@sanity/sdk";
|
|
5
|
-
import { PREVIEW_PROJECTION, createGroqSearchFilter, getBusFavoriteState, getClientErrorApiBody,
|
|
5
|
+
import { PREVIEW_PROJECTION, createGroqSearchFilter, getBusFavoriteState, getClientErrorApiBody, getCommentsOptionsKey, getDashboardMessageBus, getProjectAccessErrorDetails, getQueryKey, getSignInMethodLabel, getUsersKey, initTelemetry, isDashboardEnvironment, isDeepEqual, isMessageBusEnvironment, isStudioConfig, parseCommentsOptionsKey, parseQueryKey, parseUsersKey, pickProperties, randomUuid, resolveBusFavorite, setBusFavorite, trackHookMounted, transformProjectionToPreview } from "@sanity/sdk/_internal";
|
|
6
6
|
import { StrictMode, Suspense, createContext, use, useCallback, useContext, useEffect, useInsertionEffect, useMemo, useRef, useState, useSyncExternalStore, useTransition } from "react";
|
|
7
7
|
import { ErrorBoundary, getErrorMessage } from "react-error-boundary";
|
|
8
8
|
import { SDK_CHANNEL_NAME, SDK_NODE_NAME } from "@sanity/message-protocol";
|
|
@@ -38,7 +38,7 @@ function DashboardTokenRefresh(t0) {
|
|
|
38
38
|
if (clearRefreshTimeout(), res.token) {
|
|
39
39
|
setAuthToken(instance, res.token);
|
|
40
40
|
let errorContainer = document.getElementById("__sanityError");
|
|
41
|
-
errorContainer && Array.from(errorContainer.getElementsByTagName("div")).some(_temp$
|
|
41
|
+
errorContainer && Array.from(errorContainer.getElementsByTagName("div")).some(_temp$9) && errorContainer.remove();
|
|
42
42
|
}
|
|
43
43
|
isTokenRefreshInProgress.current = !1;
|
|
44
44
|
} catch {
|
|
@@ -64,7 +64,7 @@ function DashboardTokenRefresh(t0) {
|
|
|
64
64
|
* @public
|
|
65
65
|
* @category Components
|
|
66
66
|
*/
|
|
67
|
-
function _temp$
|
|
67
|
+
function _temp$9(div) {
|
|
68
68
|
return div.textContent?.includes("Uncaught error: Unauthorized - A valid session is required for this endpoint");
|
|
69
69
|
}
|
|
70
70
|
const ComlinkTokenRefreshProvider = (t0) => {
|
|
@@ -226,7 +226,7 @@ const styles = {
|
|
|
226
226
|
code: { fontFamily: "-apple-system-ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace" }
|
|
227
227
|
};
|
|
228
228
|
function Error$1(t0) {
|
|
229
|
-
let $ = c(
|
|
229
|
+
let $ = c(14), { heading, description, code, cta, children } = t0, t1;
|
|
230
230
|
$[0] === heading ? t1 = $[1] : (t1 = /* @__PURE__ */ jsx("h1", {
|
|
231
231
|
style: styles.heading,
|
|
232
232
|
children: heading
|
|
@@ -257,15 +257,16 @@ function Error$1(t0) {
|
|
|
257
257
|
})
|
|
258
258
|
}), $[6] = cta, $[7] = t4);
|
|
259
259
|
let t5;
|
|
260
|
-
return $[8] !==
|
|
260
|
+
return $[8] !== children || $[9] !== t1 || $[10] !== t2 || $[11] !== t3 || $[12] !== t4 ? (t5 = /* @__PURE__ */ jsxs("div", {
|
|
261
261
|
style: styles.container,
|
|
262
262
|
children: [
|
|
263
263
|
t1,
|
|
264
264
|
t2,
|
|
265
|
+
children,
|
|
265
266
|
t3,
|
|
266
267
|
t4
|
|
267
268
|
]
|
|
268
|
-
}), $[8] =
|
|
269
|
+
}), $[8] = children, $[9] = t1, $[10] = t2, $[11] = t3, $[12] = t4, $[13] = t5) : t5 = $[13], t5;
|
|
269
270
|
}
|
|
270
271
|
function reload() {
|
|
271
272
|
try {
|
|
@@ -298,11 +299,11 @@ function ChunkLoadError(_props) {
|
|
|
298
299
|
description: "The page tried to load an asset that no longer exists. Reload to continue with the latest version.",
|
|
299
300
|
cta: {
|
|
300
301
|
text: "Reload page",
|
|
301
|
-
onClick: _temp$
|
|
302
|
+
onClick: _temp$8
|
|
302
303
|
}
|
|
303
304
|
}), $[3] = t3) : t3 = $[3], t3;
|
|
304
305
|
}
|
|
305
|
-
function _temp$
|
|
306
|
+
function _temp$8() {
|
|
306
307
|
clearChunkReloadFlag(), reload();
|
|
307
308
|
}
|
|
308
309
|
function CorsErrorComponent(t0) {
|
|
@@ -438,7 +439,7 @@ function LoginCallback() {
|
|
|
438
439
|
* @internal
|
|
439
440
|
* @returns A function to log out of the current session
|
|
440
441
|
*/
|
|
441
|
-
const useLogOut = createCallbackHook(logout);
|
|
442
|
+
const useLogOut = createCallbackHook(logout), useCurrentUser = createStateSourceHook(getCurrentUserState);
|
|
442
443
|
/**
|
|
443
444
|
* Asks the dashboard to show its access request prompt for a project the user
|
|
444
445
|
* doesn't belong to: `access.request` over the message bus when this instance
|
|
@@ -482,15 +483,102 @@ function BusAccessRequest(t0) {
|
|
|
482
483
|
messageBus.emit("access.request", {
|
|
483
484
|
resourceType: "project",
|
|
484
485
|
resourceId: projectId
|
|
485
|
-
}).then(_temp$
|
|
486
|
+
}).then(_temp$7, _temp2$2);
|
|
486
487
|
}, t2 = [messageBus, projectId], $[0] = messageBus, $[1] = projectId, $[2] = t1, $[3] = t2) : (t1 = $[2], t2 = $[3]), useEffect(t1, t2), null;
|
|
487
488
|
}
|
|
488
489
|
function _temp2$2(error) {
|
|
489
490
|
console.warn("[sanity/sdk] Dashboard access request failed:", error);
|
|
490
491
|
}
|
|
491
|
-
function _temp$
|
|
492
|
+
function _temp$7(reply) {
|
|
492
493
|
reply.ok || console.warn("[sanity/sdk] Dashboard declined the access request:", reply);
|
|
493
494
|
}
|
|
495
|
+
function describeSignedInAccount(user, project) {
|
|
496
|
+
if (!user) return `The account you're signed in with isn't a member of ${project}.`;
|
|
497
|
+
let identity = [user.name, user.email && `(${user.email})`].filter(Boolean).join(" "), providerLabel = getSignInMethodLabel(user.provider);
|
|
498
|
+
return `You're signed in as ${identity}${providerLabel ? ` with ${providerLabel}` : ""}. This account isn't a member of ${project}.`;
|
|
499
|
+
}
|
|
500
|
+
function getSupportDetails(projectId, details) {
|
|
501
|
+
return [
|
|
502
|
+
["Project ID", projectId],
|
|
503
|
+
["User ID", details.userId],
|
|
504
|
+
["Trace ID", details.traceId]
|
|
505
|
+
].filter((entry) => !!entry[1]);
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* Explains a `projectUserNotFoundError`: the signed-in account isn't a member
|
|
509
|
+
* of the project.
|
|
510
|
+
*
|
|
511
|
+
* @remarks
|
|
512
|
+
* The screen only shows facts about the signed-in account and the IDs already
|
|
513
|
+
* in the API response. It never says whether another account with the same
|
|
514
|
+
* email exists or has access. An email address doesn't prove that one person
|
|
515
|
+
* owns both accounts: SSO providers assert the address, so an admin of one
|
|
516
|
+
* organization could create an account with someone else's email and use
|
|
517
|
+
* such a hint to learn which projects that person belongs to.
|
|
518
|
+
*
|
|
519
|
+
* @internal
|
|
520
|
+
*/
|
|
521
|
+
function ProjectAccessError(t0) {
|
|
522
|
+
let $ = c(48), { details, resetErrorBoundary } = t0, currentUser = useCurrentUser(), logout = useLogOut(), instance = useSanityInstance(), t1;
|
|
523
|
+
$[0] === instance ? t1 = $[1] : (t1 = isDashboardEnvironment(instance), $[0] = instance, $[1] = t1);
|
|
524
|
+
let isInDashboard = t1, projectId = details.projectId ?? instance.config.projectId, T0, t2, t3, t4, t5, t6, t7, t8;
|
|
525
|
+
if ($[2] !== currentUser || $[3] !== details || $[4] !== instance || $[5] !== isInDashboard || $[6] !== logout || $[7] !== projectId || $[8] !== resetErrorBoundary) {
|
|
526
|
+
let supportDetails = getSupportDetails(projectId, details), t9;
|
|
527
|
+
$[17] !== logout || $[18] !== resetErrorBoundary ? (t9 = async () => {
|
|
528
|
+
await logout(), resetErrorBoundary();
|
|
529
|
+
}, $[17] = logout, $[18] = resetErrorBoundary, $[19] = t9) : t9 = $[19];
|
|
530
|
+
let handleSignOut = t9, t10;
|
|
531
|
+
$[20] !== handleSignOut || $[21] !== instance || $[22] !== isInDashboard ? (t10 = isInDashboard || isStudioConfig(instance.config) || instance.config.auth?.token ? void 0 : handleSignOut, $[20] = handleSignOut, $[21] = instance, $[22] = isInDashboard, $[23] = t10) : t10 = $[23];
|
|
532
|
+
let onSignOut = t10;
|
|
533
|
+
$[24] !== isInDashboard || $[25] !== projectId ? (t8 = isInDashboard && projectId && /* @__PURE__ */ jsx(Suspense, {
|
|
534
|
+
fallback: null,
|
|
535
|
+
children: /* @__PURE__ */ jsx(DashboardAccessRequest, { projectId })
|
|
536
|
+
}), $[24] = isInDashboard, $[25] = projectId, $[26] = t8) : t8 = $[26], T0 = Error$1, t2 = "You don't have access to this project", $[27] === onSignOut ? t3 = $[28] : (t3 = onSignOut ? {
|
|
537
|
+
text: "Sign out and switch account",
|
|
538
|
+
onClick: onSignOut
|
|
539
|
+
} : void 0, $[27] = onSignOut, $[28] = t3);
|
|
540
|
+
let t11 = projectId ? `project ${projectId}` : "this project", t12;
|
|
541
|
+
$[29] !== currentUser || $[30] !== t11 ? (t12 = describeSignedInAccount(currentUser, t11), $[29] = currentUser, $[30] = t11, $[31] = t12) : t12 = $[31], $[32] === t12 ? t4 = $[33] : (t4 = /* @__PURE__ */ jsx("p", {
|
|
542
|
+
style: styles.paragraph,
|
|
543
|
+
children: t12
|
|
544
|
+
}), $[32] = t12, $[33] = t4), $[34] === Symbol.for("react.memo_cache_sentinel") ? (t5 = /* @__PURE__ */ jsx("p", {
|
|
545
|
+
style: styles.paragraph,
|
|
546
|
+
children: "Sanity creates a separate account for each sign-in method, even when they use the same email address. If you also sign in another way, such as SSO, Google, GitHub, or email and password, that account might be the one with access."
|
|
547
|
+
}), $[34] = t5) : t5 = $[34];
|
|
548
|
+
let t13 = onSignOut ? "Sign out and sign in again with that method, or ask a project administrator to add this account." : "To use another account, sign out of Sanity and sign in again with the method that has access.";
|
|
549
|
+
$[35] === t13 ? t6 = $[36] : (t6 = /* @__PURE__ */ jsx("p", {
|
|
550
|
+
style: styles.paragraph,
|
|
551
|
+
children: t13
|
|
552
|
+
}), $[35] = t13, $[36] = t6), t7 = supportDetails.length > 0 && /* @__PURE__ */ jsxs("details", { children: [/* @__PURE__ */ jsx("summary", { children: "Details for support" }), supportDetails.map(_temp$6)] }), $[2] = currentUser, $[3] = details, $[4] = instance, $[5] = isInDashboard, $[6] = logout, $[7] = projectId, $[8] = resetErrorBoundary, $[9] = T0, $[10] = t2, $[11] = t3, $[12] = t4, $[13] = t5, $[14] = t6, $[15] = t7, $[16] = t8;
|
|
553
|
+
} else T0 = $[9], t2 = $[10], t3 = $[11], t4 = $[12], t5 = $[13], t6 = $[14], t7 = $[15], t8 = $[16];
|
|
554
|
+
let t9;
|
|
555
|
+
$[37] !== T0 || $[38] !== t2 || $[39] !== t3 || $[40] !== t4 || $[41] !== t5 || $[42] !== t6 || $[43] !== t7 ? (t9 = /* @__PURE__ */ jsxs(T0, {
|
|
556
|
+
heading: t2,
|
|
557
|
+
cta: t3,
|
|
558
|
+
children: [
|
|
559
|
+
t4,
|
|
560
|
+
t5,
|
|
561
|
+
t6,
|
|
562
|
+
t7
|
|
563
|
+
]
|
|
564
|
+
}), $[37] = T0, $[38] = t2, $[39] = t3, $[40] = t4, $[41] = t5, $[42] = t6, $[43] = t7, $[44] = t9) : t9 = $[44];
|
|
565
|
+
let t10;
|
|
566
|
+
return $[45] !== t8 || $[46] !== t9 ? (t10 = /* @__PURE__ */ jsxs(Fragment, { children: [t8, t9] }), $[45] = t8, $[46] = t9, $[47] = t10) : t10 = $[47], t10;
|
|
567
|
+
}
|
|
568
|
+
function _temp$6(t0) {
|
|
569
|
+
let [label, value] = t0;
|
|
570
|
+
return /* @__PURE__ */ jsxs("p", {
|
|
571
|
+
style: styles.paragraph,
|
|
572
|
+
children: [
|
|
573
|
+
label,
|
|
574
|
+
": ",
|
|
575
|
+
/* @__PURE__ */ jsx("code", {
|
|
576
|
+
style: styles.code,
|
|
577
|
+
children: value
|
|
578
|
+
})
|
|
579
|
+
]
|
|
580
|
+
}, label);
|
|
581
|
+
}
|
|
494
582
|
/**
|
|
495
583
|
* Displays authentication error details and provides retry functionality.
|
|
496
584
|
* Only handles {@link AuthError} instances - rethrows other error types.
|
|
@@ -498,65 +586,61 @@ function _temp$6(reply) {
|
|
|
498
586
|
* @alpha
|
|
499
587
|
*/
|
|
500
588
|
function LoginError(t0) {
|
|
501
|
-
let $ = c(
|
|
589
|
+
let $ = c(8), { error, resetErrorBoundary } = t0;
|
|
502
590
|
if (!(error instanceof AuthError || error instanceof ConfigurationError || error instanceof ClientError)) throw error;
|
|
503
|
-
let
|
|
504
|
-
$[0] ===
|
|
505
|
-
let
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
}, $[6] = logout, $[7] = resetErrorBoundary, $[8] = t5) : t5 = $[8];
|
|
513
|
-
let handleRetry = t5, message = "Please try again or contact support if the problem persists.", retry = !0;
|
|
514
|
-
if (clientError) {
|
|
515
|
-
if (clientError.statusCode === 401) {
|
|
516
|
-
if (isProjectUserNotFound) {
|
|
517
|
-
let t6;
|
|
518
|
-
$[9] === clientError ? t6 = $[10] : (t6 = getClientErrorApiDescription(clientError), $[9] = clientError, $[10] = t6);
|
|
519
|
-
let description = t6;
|
|
520
|
-
description && (message = description), retry = !1;
|
|
521
|
-
} else isInDashboard || (message = "Signing you out and returning to login...", retry = !0);
|
|
522
|
-
} else if (clientError.statusCode === 404) {
|
|
523
|
-
let errorMessage = getClientErrorApiBody(clientError)?.message || "";
|
|
524
|
-
message = errorMessage.startsWith("Session with sid") && errorMessage.endsWith("not found") ? "The session ID is invalid or expired." : "The login link is invalid or expired. Please try again.", retry = !0;
|
|
525
|
-
}
|
|
591
|
+
let t1;
|
|
592
|
+
$[0] === error ? t1 = $[1] : (t1 = getProjectAccessErrorDetails(error), $[0] = error, $[1] = t1);
|
|
593
|
+
let projectAccess = t1;
|
|
594
|
+
if (projectAccess) {
|
|
595
|
+
let t2;
|
|
596
|
+
return $[2] !== projectAccess || $[3] !== resetErrorBoundary ? (t2 = /* @__PURE__ */ jsx(ProjectAccessError, {
|
|
597
|
+
details: projectAccess,
|
|
598
|
+
resetErrorBoundary
|
|
599
|
+
}), $[2] = projectAccess, $[3] = resetErrorBoundary, $[4] = t2) : t2 = $[4], t2;
|
|
526
600
|
}
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
601
|
+
let t2;
|
|
602
|
+
return $[5] !== error || $[6] !== resetErrorBoundary ? (t2 = /* @__PURE__ */ jsx(AuthErrorScreen, {
|
|
603
|
+
error,
|
|
604
|
+
resetErrorBoundary
|
|
605
|
+
}), $[5] = error, $[6] = resetErrorBoundary, $[7] = t2) : t2 = $[7], t2;
|
|
606
|
+
}
|
|
607
|
+
const DEFAULT_MESSAGE = "Please try again or contact support if the problem persists.";
|
|
608
|
+
function getClientErrorMessage(clientError, isInDashboard) {
|
|
609
|
+
if (clientError.statusCode === 401) return isInDashboard ? DEFAULT_MESSAGE : "Signing you out and returning to login...";
|
|
610
|
+
if (clientError.statusCode === 404) {
|
|
611
|
+
let errorMessage = getClientErrorApiBody(clientError)?.message || "";
|
|
612
|
+
return errorMessage.startsWith("Session with sid") && errorMessage.endsWith("not found") ? "The session ID is invalid or expired." : "The login link is invalid or expired. Please try again.";
|
|
613
|
+
}
|
|
614
|
+
return DEFAULT_MESSAGE;
|
|
615
|
+
}
|
|
616
|
+
function AuthErrorScreen(t0) {
|
|
617
|
+
let $ = c(23), { error, resetErrorBoundary } = t0, logout = useLogOut(), authState = useAuthState(), instance = useSanityInstance(), clientError = error instanceof ClientError ? error : error instanceof AuthError && error.cause instanceof ClientError ? error.cause : null, handleRetry, isInDashboard, t1;
|
|
618
|
+
if ($[0] !== authState.type || $[1] !== clientError || $[2] !== error || $[3] !== instance || $[4] !== logout || $[5] !== resetErrorBoundary) {
|
|
619
|
+
isInDashboard = isDashboardEnvironment(instance);
|
|
620
|
+
let t2;
|
|
621
|
+
$[9] !== logout || $[10] !== resetErrorBoundary ? (t2 = async () => {
|
|
622
|
+
await logout(), resetErrorBoundary();
|
|
623
|
+
}, $[9] = logout, $[10] = resetErrorBoundary, $[11] = t2) : t2 = $[11], handleRetry = t2, t1 = authState.type !== AuthStateType.ERROR && error instanceof ConfigurationError ? error.message : clientError ? getClientErrorMessage(clientError, isInDashboard) : DEFAULT_MESSAGE, $[0] = authState.type, $[1] = clientError, $[2] = error, $[3] = instance, $[4] = logout, $[5] = resetErrorBoundary, $[6] = handleRetry, $[7] = isInDashboard, $[8] = t1;
|
|
624
|
+
} else handleRetry = $[6], isInDashboard = $[7], t1 = $[8];
|
|
625
|
+
let authErrorMessage = t1, hasAutoLoggedOutRef = useRef(!1), t2, t3;
|
|
626
|
+
$[12] !== clientError || $[13] !== handleRetry || $[14] !== isInDashboard ? (t2 = () => {
|
|
627
|
+
clientError && clientError.statusCode === 401 && !isInDashboard && !hasAutoLoggedOutRef.current && (hasAutoLoggedOutRef.current = !0, handleRetry());
|
|
628
|
+
}, t3 = [
|
|
537
629
|
clientError,
|
|
538
630
|
handleRetry,
|
|
539
|
-
isInDashboard
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
$[20] === dashboardAccessProjectId ? t9 = $[21] : (t9 = dashboardAccessProjectId && /* @__PURE__ */ jsx(Suspense, {
|
|
544
|
-
fallback: null,
|
|
545
|
-
children: /* @__PURE__ */ jsx(DashboardAccessRequest, { projectId: dashboardAccessProjectId })
|
|
546
|
-
}), $[20] = dashboardAccessProjectId, $[21] = t9);
|
|
547
|
-
let t10 = error instanceof ConfigurationError ? "Configuration Error" : "Authentication Error", t11;
|
|
548
|
-
$[22] !== handleRetry || $[23] !== showRetryCta ? (t11 = showRetryCta ? {
|
|
631
|
+
isInDashboard
|
|
632
|
+
], $[12] = clientError, $[13] = handleRetry, $[14] = isInDashboard, $[15] = t2, $[16] = t3) : (t2 = $[15], t3 = $[16]), useEffect(t2, t3);
|
|
633
|
+
let t4 = error instanceof ConfigurationError ? "Configuration Error" : "Authentication Error", t5;
|
|
634
|
+
$[17] === handleRetry ? t5 = $[18] : (t5 = {
|
|
549
635
|
text: "Retry",
|
|
550
636
|
onClick: handleRetry
|
|
551
|
-
}
|
|
552
|
-
let
|
|
553
|
-
$[
|
|
554
|
-
heading:
|
|
637
|
+
}, $[17] = handleRetry, $[18] = t5);
|
|
638
|
+
let t6;
|
|
639
|
+
return $[19] !== authErrorMessage || $[20] !== t4 || $[21] !== t5 ? (t6 = /* @__PURE__ */ jsx(Error$1, {
|
|
640
|
+
heading: t4,
|
|
555
641
|
description: authErrorMessage,
|
|
556
|
-
cta:
|
|
557
|
-
}), $[
|
|
558
|
-
let t13;
|
|
559
|
-
return $[29] !== t12 || $[30] !== t9 ? (t13 = /* @__PURE__ */ jsxs(Fragment, { children: [t9, t12] }), $[29] = t12, $[30] = t9, $[31] = t13) : t13 = $[31], t13;
|
|
642
|
+
cta: t5
|
|
643
|
+
}), $[19] = authErrorMessage, $[20] = t4, $[21] = t5, $[22] = t6) : t6 = $[22], t6;
|
|
560
644
|
}
|
|
561
645
|
if (isInIframe() && !document.querySelector("[data-sanity-core]")) {
|
|
562
646
|
let parsedUrl = new URL(window.location.href), mode = new URLSearchParams(parsedUrl.hash.slice(1)).get("mode"), script = document.createElement("script");
|
|
@@ -1827,7 +1911,7 @@ function createMutationHook(mutation) {
|
|
|
1827
1911
|
* @internal
|
|
1828
1912
|
* @returns The mutation envelope `{mutate, isPending, error, data, reset}`.
|
|
1829
1913
|
*/
|
|
1830
|
-
const useDeleteApplication = createMutationHook(deleteApplication), useUpdateApplication = createMutationHook(updateApplication), useAuthToken = createStateSourceHook(getTokenState),
|
|
1914
|
+
const useDeleteApplication = createMutationHook(deleteApplication), useUpdateApplication = createMutationHook(updateApplication), useAuthToken = createStateSourceHook(getTokenState), useHandleOAuthCallback = createCallbackHook(handleOAuthCallback), useOAuthTokensState = createStateSourceHook(getOAuthTokensState), useRefreshOAuthTokens = createCallbackHook(refreshOAuthTokens), useRevokeOAuthTokens = createCallbackHook(revokeOAuthTokens), useIsOAuthTokenExpired = createCallbackHook((instance) => {
|
|
1831
1915
|
let tokens = getOAuthTokensState(instance).getCurrent();
|
|
1832
1916
|
return tokens ? tokens.expiresAt.getTime() <= Date.now() : !1;
|
|
1833
1917
|
});
|
|
@@ -4270,7 +4354,7 @@ function useUsers(options) {
|
|
|
4270
4354
|
loadMore
|
|
4271
4355
|
}, $[20] = data, $[21] = hasMore, $[22] = isPending, $[23] = loadMore, $[24] = totalCount, $[25] = t8) : t8 = $[25], t8;
|
|
4272
4356
|
}
|
|
4273
|
-
var version = "3.9.0-next.
|
|
4357
|
+
var version = "3.9.0-next.20261009160705";
|
|
4274
4358
|
function getEnv(key) {
|
|
4275
4359
|
if (import.meta.env) return import.meta.env[key];
|
|
4276
4360
|
if (typeof process < "u" && process.env) return process.env[key];
|