@sanity/sdk-react 3.8.0 → 3.9.0-next.20261007114705

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 CHANGED
@@ -2126,7 +2126,7 @@ interface UseDocument {
2126
2126
  data: ResolveDocument<TDocumentType, `${TProjectId}.${TDataset}`> | null;
2127
2127
  };
2128
2128
  /** @internal */
2129
- <TPath extends string, TDocumentType extends string, TDataset extends string = string, TProjectId extends string = string>(options: UseDocumentOptions<TPath, TDocumentType>): {
2129
+ <TPath extends string, TDocumentType extends string, TDataset extends string = string, TProjectId extends string = string>(options: UseDocumentOptions<TPath, TDocumentType, TDataset, TProjectId>): {
2130
2130
  data: JsonMatch<ResolveDocument<TDocumentType, `${TProjectId}.${TDataset}`>, TPath> | undefined;
2131
2131
  };
2132
2132
  /** @internal */
@@ -2199,7 +2199,7 @@ interface UseDocument {
2199
2199
  *
2200
2200
  * @inlineType DocumentOptions
2201
2201
  */
2202
- <TPath extends string | undefined = undefined, TDocumentType extends string = string, TDataset extends string = string, TProjectId extends string = string>(options: UseDocumentOptions<TPath, TDocumentType>): TPath extends string ? {
2202
+ <TPath extends string | undefined = undefined, TDocumentType extends string = string, TDataset extends string = string, TProjectId extends string = string>(options: UseDocumentOptions<TPath, TDocumentType, TDataset, TProjectId>): TPath extends string ? {
2203
2203
  data: JsonMatch<ResolveDocument<TDocumentType, `${TProjectId}.${TDataset}`>, TPath> | undefined;
2204
2204
  } : {
2205
2205
  data: ResolveDocument<TDocumentType, `${TProjectId}.${TDataset}`> | null;
@@ -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":";;;;;;;;;;;;;KAqBYC,kBAAkBD;;;;UCkBbQ;;;;;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,SAC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ErrorProps","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;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AASH,iBAAiBE;;;;;;UCpCjCI;;;;EAIf,MAAMD;;;;EAIN;;;;EAIA;;;;EAKA;;;;EAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA2DcE,SAAS,UAAUH,kBAAkBE;;;;;qBC5FxCE"}
package/dist/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, getClientErrorApiDescription, getCommentsOptionsKey, getDashboardMessageBus, getQueryKey, getUsersKey, initTelemetry, isDashboardEnvironment, isDeepEqual, isMessageBusEnvironment, isProjectUserNotFoundClientError, isStudioConfig, parseCommentsOptionsKey, parseQueryKey, parseUsersKey, pickProperties, randomUuid, resolveBusFavorite, setBusFavorite, trackHookMounted, transformProjectionToPreview } from "@sanity/sdk/_internal";
5
+ import { PREVIEW_PROJECTION, createGroqSearchFilter, getBusFavoriteState, getClientErrorApiBody, getClientErrorApiDescription, getClientErrorApiProjectId, getCommentsOptionsKey, getDashboardMessageBus, getQueryKey, getUsersKey, initTelemetry, isDashboardEnvironment, isDeepEqual, isMessageBusEnvironment, isProjectUserNotFoundClientError, 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";
@@ -498,23 +498,25 @@ function _temp$6(reply) {
498
498
  * @alpha
499
499
  */
500
500
  function LoginError(t0) {
501
- let $ = c(30), { error, resetErrorBoundary } = t0;
501
+ let $ = c(32), { error, resetErrorBoundary } = t0;
502
502
  if (!(error instanceof AuthError || error instanceof ConfigurationError || error instanceof ClientError)) throw error;
503
503
  let logout = useLogOut(), authState = useAuthState(), instance = useSanityInstance(), { config: t1 } = instance, { projectId } = t1, clientError = error instanceof ClientError ? error : error instanceof AuthError && error.cause instanceof ClientError ? error.cause : null, t2;
504
504
  $[0] === instance ? t2 = $[1] : (t2 = isDashboardEnvironment(instance), $[0] = instance, $[1] = t2);
505
505
  let isInDashboard = t2, t3;
506
506
  $[2] === clientError ? t3 = $[3] : (t3 = !!clientError && clientError.statusCode === 401 && isProjectUserNotFoundClientError(clientError), $[2] = clientError, $[3] = t3);
507
- let isProjectUserNotFound = t3, dashboardAccessProjectId = isProjectUserNotFound && projectId && isInDashboard ? projectId : null, t4;
508
- $[4] !== logout || $[5] !== resetErrorBoundary ? (t4 = async () => {
507
+ let isProjectUserNotFound = t3, t4;
508
+ $[4] === clientError ? t4 = $[5] : (t4 = clientError && getClientErrorApiProjectId(clientError), $[4] = clientError, $[5] = t4);
509
+ let dashboardAccessProjectId = isProjectUserNotFound && isInDashboard && (t4 || projectId) || null, t5;
510
+ $[6] !== logout || $[7] !== resetErrorBoundary ? (t5 = async () => {
509
511
  await logout(), resetErrorBoundary();
510
- }, $[4] = logout, $[5] = resetErrorBoundary, $[6] = t4) : t4 = $[6];
511
- let handleRetry = t4, message = "Please try again or contact support if the problem persists.", retry = !0;
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;
512
514
  if (clientError) {
513
515
  if (clientError.statusCode === 401) {
514
516
  if (isProjectUserNotFound) {
515
- let t5;
516
- $[7] === clientError ? t5 = $[8] : (t5 = getClientErrorApiDescription(clientError), $[7] = clientError, $[8] = t5);
517
- let description = t5;
517
+ let t6;
518
+ $[9] === clientError ? t6 = $[10] : (t6 = getClientErrorApiDescription(clientError), $[9] = clientError, $[10] = t6);
519
+ let description = t6;
518
520
  description && (message = description), retry = !1;
519
521
  } else isInDashboard || (message = "Signing you out and returning to login...", retry = !0);
520
522
  } else if (clientError.statusCode === 404) {
@@ -523,38 +525,38 @@ function LoginError(t0) {
523
525
  }
524
526
  }
525
527
  authState.type !== AuthStateType.ERROR && error instanceof ConfigurationError && (message = error.message, retry = !0);
526
- let t5;
527
- $[9] !== message || $[10] !== retry ? (t5 = {
528
+ let t6;
529
+ $[11] !== message || $[12] !== retry ? (t6 = {
528
530
  authErrorMessage: message,
529
531
  showRetryCta: retry
530
- }, $[9] = message, $[10] = retry, $[11] = t5) : t5 = $[11];
531
- let { authErrorMessage, showRetryCta } = t5, hasAutoLoggedOutRef = useRef(!1), t6, t7;
532
- $[12] !== clientError || $[13] !== handleRetry || $[14] !== isInDashboard || $[15] !== isProjectUserNotFound ? (t6 = () => {
532
+ }, $[11] = message, $[12] = retry, $[13] = t6) : t6 = $[13];
533
+ let { authErrorMessage, showRetryCta } = t6, hasAutoLoggedOutRef = useRef(!1), t7, t8;
534
+ $[14] !== clientError || $[15] !== handleRetry || $[16] !== isInDashboard || $[17] !== isProjectUserNotFound ? (t7 = () => {
533
535
  clientError && clientError.statusCode === 401 && !isProjectUserNotFound && !isInDashboard && !hasAutoLoggedOutRef.current && (hasAutoLoggedOutRef.current = !0, handleRetry());
534
- }, t7 = [
536
+ }, t8 = [
535
537
  clientError,
536
538
  handleRetry,
537
539
  isInDashboard,
538
540
  isProjectUserNotFound
539
- ], $[12] = clientError, $[13] = handleRetry, $[14] = isInDashboard, $[15] = isProjectUserNotFound, $[16] = t6, $[17] = t7) : (t6 = $[16], t7 = $[17]), useEffect(t6, t7);
540
- let t8;
541
- $[18] === dashboardAccessProjectId ? t8 = $[19] : (t8 = dashboardAccessProjectId && /* @__PURE__ */ jsx(Suspense, {
541
+ ], $[14] = clientError, $[15] = handleRetry, $[16] = isInDashboard, $[17] = isProjectUserNotFound, $[18] = t7, $[19] = t8) : (t7 = $[18], t8 = $[19]), useEffect(t7, t8);
542
+ let t9;
543
+ $[20] === dashboardAccessProjectId ? t9 = $[21] : (t9 = dashboardAccessProjectId && /* @__PURE__ */ jsx(Suspense, {
542
544
  fallback: null,
543
545
  children: /* @__PURE__ */ jsx(DashboardAccessRequest, { projectId: dashboardAccessProjectId })
544
- }), $[18] = dashboardAccessProjectId, $[19] = t8);
545
- let t9 = error instanceof ConfigurationError ? "Configuration Error" : "Authentication Error", t10;
546
- $[20] !== handleRetry || $[21] !== showRetryCta ? (t10 = showRetryCta ? {
546
+ }), $[20] = dashboardAccessProjectId, $[21] = t9);
547
+ let t10 = error instanceof ConfigurationError ? "Configuration Error" : "Authentication Error", t11;
548
+ $[22] !== handleRetry || $[23] !== showRetryCta ? (t11 = showRetryCta ? {
547
549
  text: "Retry",
548
550
  onClick: handleRetry
549
- } : void 0, $[20] = handleRetry, $[21] = showRetryCta, $[22] = t10) : t10 = $[22];
550
- let t11;
551
- $[23] !== authErrorMessage || $[24] !== t10 || $[25] !== t9 ? (t11 = /* @__PURE__ */ jsx(Error$1, {
552
- heading: t9,
553
- description: authErrorMessage,
554
- cta: t10
555
- }), $[23] = authErrorMessage, $[24] = t10, $[25] = t9, $[26] = t11) : t11 = $[26];
551
+ } : void 0, $[22] = handleRetry, $[23] = showRetryCta, $[24] = t11) : t11 = $[24];
556
552
  let t12;
557
- return $[27] !== t11 || $[28] !== t8 ? (t12 = /* @__PURE__ */ jsxs(Fragment, { children: [t8, t11] }), $[27] = t11, $[28] = t8, $[29] = t12) : t12 = $[29], t12;
553
+ $[25] !== authErrorMessage || $[26] !== t10 || $[27] !== t11 ? (t12 = /* @__PURE__ */ jsx(Error$1, {
554
+ heading: t10,
555
+ description: authErrorMessage,
556
+ cta: t11
557
+ }), $[25] = authErrorMessage, $[26] = t10, $[27] = t11, $[28] = t12) : t12 = $[28];
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;
558
560
  }
559
561
  if (isInIframe() && !document.querySelector("[data-sanity-core]")) {
560
562
  let parsedUrl = new URL(window.location.href), mode = new URLSearchParams(parsedUrl.hash.slice(1)).get("mode"), script = document.createElement("script");
@@ -4268,7 +4270,7 @@ function useUsers(options) {
4268
4270
  loadMore
4269
4271
  }, $[20] = data, $[21] = hasMore, $[22] = isPending, $[23] = loadMore, $[24] = totalCount, $[25] = t8) : t8 = $[25], t8;
4270
4272
  }
4271
- var version = "3.8.0";
4273
+ var version = "3.9.0-next.20261007114705";
4272
4274
  function getEnv(key) {
4273
4275
  if (import.meta.env) return import.meta.env[key];
4274
4276
  if (typeof process < "u" && process.env) return process.env[key];