@sanity/sdk-react 3.11.0-next.20261029105031 → 3.11.0

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.
Files changed (40) hide show
  1. package/README.md +13 -9
  2. package/dist/_exports/collaboration.d.ts +255 -0
  3. package/dist/_exports/collaboration.d.ts.map +1 -0
  4. package/dist/_exports/collaboration.js +244 -0
  5. package/dist/_exports/collaboration.js.map +1 -0
  6. package/dist/_exports/dashboard.js +2 -1
  7. package/dist/_exports/dashboard.js.map +1 -1
  8. package/dist/index.d.ts +16 -22
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +49 -159
  11. package/dist/index.js.map +1 -1
  12. package/dist/useCommentList-CXi_IIwA.js +167 -0
  13. package/dist/useCommentList-CXi_IIwA.js.map +1 -0
  14. package/dist/useNormalizedResourceOptions-BKg7aOKA.d.ts +22 -0
  15. package/dist/useNormalizedResourceOptions-BKg7aOKA.d.ts.map +1 -0
  16. package/dist/useSanityInstance-C0a_Ou_p.js +10 -0
  17. package/dist/useSanityInstance-C0a_Ou_p.js.map +1 -0
  18. package/dist/{useStudioWorkspacesByProjectIdDataset-FRofq7KL.js → useStudioWorkspacesByProjectIdDataset-Cx-Q44d0.js} +4 -8
  19. package/dist/useStudioWorkspacesByProjectIdDataset-Cx-Q44d0.js.map +1 -0
  20. package/package.json +3 -2
  21. package/src/_exports/collaboration.ts +13 -0
  22. package/src/_exports/sdk-react.ts +6 -3
  23. package/src/hooks/comments/legacy/noCommentsError.ts +20 -0
  24. package/src/hooks/comments/legacy/useCommentActions.test.tsx +150 -0
  25. package/src/hooks/comments/legacy/useCommentActions.ts +116 -0
  26. package/src/hooks/comments/legacy/useCommentThreads.test.tsx +107 -0
  27. package/src/hooks/comments/legacy/useCommentThreads.ts +83 -0
  28. package/src/hooks/comments/legacy/useComments.test.tsx +242 -0
  29. package/src/hooks/comments/legacy/useComments.ts +68 -0
  30. package/src/hooks/comments/useCommentActions.test.tsx +33 -13
  31. package/src/hooks/comments/useCommentActions.ts +31 -11
  32. package/src/hooks/comments/useCommentList.ts +34 -19
  33. package/src/hooks/comments/useCommentThreads.test.tsx +207 -19
  34. package/src/hooks/comments/useCommentThreads.ts +33 -27
  35. package/src/hooks/comments/useComments.test.tsx +33 -126
  36. package/src/hooks/comments/useComments.ts +31 -12
  37. package/src/hooks/comments/useCommentsQuery.test.tsx +259 -0
  38. package/src/hooks/comments/useCommentsQuery.ts +105 -0
  39. package/src/hooks/document/useEditDocument.ts +0 -1
  40. package/dist/useStudioWorkspacesByProjectIdDataset-FRofq7KL.js.map +0 -1
@@ -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","DocumentStatus","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.3/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,SACFL,oBAAoBC,MAAMC;;;;;;UCpGZO;;;;;;;EAOf,SAASF,eAAeA;EACxB,YAAYG,eAAeJ;EAC3B,UAAUK,MAAMC;EAEhB,UAAUD,MAAMC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAqFcC,YACdC,UACAC,UACA,QAAQC,eACL,SACFP,iBAAiBD;;;;UC5HHc,yBAAyBD;EACxC,UAAUD;EACV,QAAQF,eAAeA;EACvB,UAAUE;EACV,YAAYG,eAAeN;;EAE3B;;;;;;;wBAoBcO,cACdC,UACAC,QACAC,UACAC,+BACG,SACFN,mBAAmBH;;;;;;;;;;;;;;UChCLe,eACf,kCACA,4CACQL,cAAcM,UAAUC;;;;;EAKhC;;;;;;;;UASeJ,mBACf,uCACA,kCACA,4CACQC,qBAAuBI,eAAeF,UAAUC;E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,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","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","DocumentStatus","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.3/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/comments/legacy/useCommentActions.ts","../src/hooks/comments/legacy/useComments.ts","../src/hooks/comments/legacy/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,SACFL,oBAAoBC,MAAMC;;;;;;UCpGZO;;;;;;;EAOf,SAASF,eAAeA;EACxB,YAAYG,eAAeJ;EAC3B,UAAUK,MAAMC;EAEhB,UAAUD,MAAMC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAqFcC,YACdC,UACAC,UACA,QAAQC,eACL,SACFP,iBAAiBD;;;;UC5HHc,yBAAyBD;EACxC,UAAUD;EACV,QAAQF,eAAeA;EACvB,UAAUE;EACV,YAAYG,eAAeN;;EAE3B;;;;;;;wBAoBcO,cACdC,UACAC,QACAC,UACAC,+B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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"}
package/dist/index.js CHANGED
@@ -1,13 +1,15 @@
1
- import { a as DashboardTokenRefreshProvider, c as useAuthState, d as SanityInstanceContext, i as useOrganizationId, l as createStateSourceHook, n as useTopic, o as getDashboardRootContext, r as useEmit, s as useWindowConnection, t as useStudioWorkspacesByProjectIdDataset, u as useSanityInstance } from "./useStudioWorkspacesByProjectIdDataset-FRofq7KL.js";
1
+ import { n as SanityInstanceContext, t as useSanityInstance } from "./useSanityInstance-C0a_Ou_p.js";
2
+ import { a as DashboardTokenRefreshProvider, c as useAuthState, i as useOrganizationId, l as createStateSourceHook, n as useTopic, o as getDashboardRootContext, r as useEmit, s as useWindowConnection, t as useStudioWorkspacesByProjectIdDataset } from "./useStudioWorkspacesByProjectIdDataset-Cx-Q44d0.js";
3
+ import { a as useEffectiveContextResource, c as ResourceContext, i as normalizeResourceOptions, l as ResourcesContext, n as trackHookUsage, o as useNormalizedResourceOptions, r as useTrackHookUsage, s as PerspectiveContext, t as useCommentList } from "./useCommentList-CXi_IIwA.js";
2
4
  import { c } from "react-compiler-runtime";
3
5
  import { ClientError, CorsOriginError } from "@sanity/client";
4
6
  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, getCommentsOptionsKey, getDashboardMessageBus, getProjectAccessErrorDetails, getQueryKey, getSignInMethodLabel, getUsersKey, initTelemetry, isDashboardEnvironment, isDeepEqual, isMessageBusEnvironment, isStudioConfig, parseCommentsOptionsKey, parseQueryKey, parseUsersKey, pickProperties, randomUuid, resolveBusFavorite, setBusFavorite, trackHookMounted, transformProjectionToPreview } from "@sanity/sdk/_internal";
7
+ import { PREVIEW_PROJECTION, createGroqSearchFilter, getBusFavoriteState, getClientErrorApiBody, getCommentsOptionsKey, getDashboardMessageBus, getProjectAccessErrorDetails, getQueryKey, getSignInMethodLabel, getUsersKey, initTelemetry, isDashboardEnvironment, isDeepEqual, isMessageBusEnvironment, isStudioConfig, parseCommentsOptionsKey, parseQueryKey, parseUsersKey, pickProperties, randomUuid, resolveBusFavorite, setBusFavorite, transformProjectionToPreview } from "@sanity/sdk/_internal";
6
8
  import { StrictMode, Suspense, createContext, use, useCallback, useContext, useEffect, useInsertionEffect, useMemo, useRef, useState, useSyncExternalStore, useTransition } from "react";
7
9
  import { ErrorBoundary, getErrorMessage } from "react-error-boundary";
8
10
  import { SDK_CHANNEL_NAME, SDK_NODE_NAME } from "@sanity/message-protocol";
9
11
  import { getOrCreateChannel, getOrCreateController, releaseChannel } from "@sanity/sdk/comlink";
10
- import { EMPTY, Observable, distinctUntilChanged, filter, firstValueFrom, identity, startWith, switchMap } from "rxjs";
12
+ import { EMPTY, Observable, distinctUntilChanged, filter, firstValueFrom, identity, of, startWith, switchMap } from "rxjs";
11
13
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
14
  import "@sanity/sdk/dashboard";
13
15
  import { createRoot } from "react-dom/client";
@@ -789,10 +791,7 @@ async function resolveOrgResources(instance, organizationId) {
789
791
  canvas: canvasId ? { canvasId } : void 0
790
792
  };
791
793
  }
792
- /** Context for resources.
793
- * @beta
794
- */
795
- const ResourcesContext = createContext({}), DEFAULT_MEDIA_LIBRARY_RESOURCE_NAME = "media-library", DEFAULT_CANVAS_RESOURCE_NAME = "canvas", inferredResourceCache = /* @__PURE__ */ new WeakMap();
794
+ const DEFAULT_MEDIA_LIBRARY_RESOURCE_NAME = "media-library", DEFAULT_CANVAS_RESOURCE_NAME = "canvas", inferredResourceCache = /* @__PURE__ */ new WeakMap();
796
795
  function getOrgResourcePromises(instance, organizationId) {
797
796
  let promises = inferredResourceCache.get(instance);
798
797
  if (!promises) {
@@ -850,12 +849,18 @@ function OrganizationResourcesProvider(t0) {
850
849
  }), $[5] = children, $[6] = explicitResources, $[7] = instance, $[8] = orgId, $[9] = t3) : t3 = $[9], t3;
851
850
  }
852
851
  /**
853
- * Provides the active DocumentResource for a subtree.
854
- * Set by ResourceProvider; read by useNormalizedResourceOptions as a fallback
855
- * when hooks receive no explicit resource or resourceName.
852
+ * Carries a `projectId` for a subtree even when a complete
853
+ * `DatasetResource` can't be formed — e.g. a `<ResourceProvider projectId="…">`
854
+ * with no `dataset` and no parent resource to inherit one from.
855
+ *
856
+ * Project-scoped hooks (`useProject`, `useDatasets`, `useUsers`) read this as a
857
+ * fallback so they can still resolve a project in that case (the only hooks that would work with a config like this.)
858
+ *
859
+ * @remarks Temporary bridge for the dataset-less project scope.
860
+ * Remove in the next major version; those hooks should just always use a projectId or default to a resource available.
856
861
  * @internal
857
862
  */
858
- const ResourceContext = createContext(void 0), PerspectiveContext = createContext(void 0), ProjectContext = createContext(void 0);
863
+ const ProjectContext = createContext(void 0);
859
864
  /**
860
865
  * Provides an externally-created Sanity instance to child components through React Context.
861
866
  *
@@ -1268,90 +1273,6 @@ function createFetcherHook(fetcher) {
1268
1273
  */
1269
1274
  const useCheckPermissions = createFetcherHook(checkPermissions);
1270
1275
  /**
1271
- * Pure function that normalizes options by resolving `resourceName` to a `DocumentResource`
1272
- * using the provided resources map. Use this when options are only available at call time
1273
- * (e.g. inside a callback) and you cannot call the {@link useNormalizedResourceOptions} hook.
1274
- *
1275
- * @typeParam T - The options type (must include optional resource field)
1276
- * @param options - Options that may include `resourceName` and/or `resource`
1277
- * @param resources - Map of resource names to DocumentResource (e.g. from ResourcesContext)
1278
- * @param contextResource - Resource from context (from ResourceContext)
1279
- * @param contextPerspective - Perspective from context (from PerspectiveContext)
1280
- * @returns Normalized options with `resourceName` removed and `resource` resolved
1281
- * @internal
1282
- */
1283
- function normalizeResourceOptions(options, resources, contextResource, contextPerspective) {
1284
- let { resourceName, projectId, dataset, ...rest } = options, resource = options.resource;
1285
- if (resourceName && resource) throw Error(`Resource name ${JSON.stringify(resourceName)} and resource ${JSON.stringify(resource)} cannot be used together.`);
1286
- let resolvedResource;
1287
- if (resource) resolvedResource = resource;
1288
- else if (resourceName) {
1289
- if (!Object.hasOwn(resources, resourceName)) throw Error(`There's no resource named ${JSON.stringify(resourceName)} in context. Please use <ResourceProvider>.`);
1290
- resolvedResource = resources[resourceName];
1291
- }
1292
- !resolvedResource && projectId && dataset && (resolvedResource = {
1293
- projectId,
1294
- dataset
1295
- }), resolvedResource ||= contextResource;
1296
- let resolvedPerspective = Object.hasOwn(options, "perspective") ? options.perspective : contextPerspective;
1297
- return {
1298
- ...rest,
1299
- ...resolvedResource !== void 0 && { resource: resolvedResource },
1300
- ...resolvedPerspective !== void 0 && { perspective: resolvedPerspective }
1301
- };
1302
- }
1303
- /**
1304
- * Returns the effective context resource: the `ResourceContext` value if set,
1305
- * otherwise a resource synthesized from the current `SanityInstance` config
1306
- * (tier-d fallback — returns `undefined` for studio-style configs with no project).
1307
- *
1308
- * @internal
1309
- */
1310
- function useEffectiveContextResource() {
1311
- let $ = c(5), contextResource = useContext(ResourceContext), instance = useContext(SanityInstanceContext), t0;
1312
- $[0] === instance?.config ? t0 = $[1] : (t0 = instance?.config ?? {}, $[0] = instance?.config, $[1] = t0);
1313
- let { projectId, dataset, resource: configResource } = t0, t1;
1314
- bb0: {
1315
- if (contextResource) {
1316
- t1 = contextResource;
1317
- break bb0;
1318
- }
1319
- if (configResource) {
1320
- t1 = configResource;
1321
- break bb0;
1322
- }
1323
- if (projectId && dataset) {
1324
- let t2;
1325
- $[2] !== dataset || $[3] !== projectId ? (t2 = {
1326
- projectId,
1327
- dataset
1328
- }, $[2] = dataset, $[3] = projectId, $[4] = t2) : t2 = $[4], t1 = t2;
1329
- break bb0;
1330
- }
1331
- t1 = void 0;
1332
- }
1333
- return t1;
1334
- }
1335
- /**
1336
- * Normalizes hook options by resolving `resourceName` to a `DocumentResource`.
1337
- *
1338
- * Resolution priority for resource:
1339
- * 1. Explicit `resource` or `resourceName` in options
1340
- * 2. Bare `projectId`/`dataset` pair in options → synthesized into a resource
1341
- * 3. `ResourceContext` value (set by `ResourceProvider` / `SDKProvider`)
1342
- * 4. Current `SanityInstance` config — falls back to `undefined` for studio configs
1343
- *
1344
- * Resolution priority for perspective:
1345
- * 1. Explicit `perspective` in options
1346
- * 2. `PerspectiveContext` value (set by `ResourceProvider`)
1347
- *
1348
- * @internal
1349
- */
1350
- function useNormalizedResourceOptions(options) {
1351
- let $ = c(5), resources = useContext(ResourcesContext), effectiveContextResource = useEffectiveContextResource(), contextPerspective = useContext(PerspectiveContext), t0;
1352
- return $[0] !== contextPerspective || $[1] !== effectiveContextResource || $[2] !== options || $[3] !== resources ? (t0 = normalizeResourceOptions(options, resources, effectiveContextResource, contextPerspective), $[0] = contextPerspective, $[1] = effectiveContextResource, $[2] = options, $[3] = resources, $[4] = t0) : t0 = $[4], t0;
1353
- }
1354
- /**
1355
1276
  * @alpha
1356
1277
  * Generates content for a document (or specific fields) via Sanity Agent Actions.
1357
1278
  *
@@ -2060,32 +1981,6 @@ function _temp$3(unsub) {
2060
1981
  return unsub();
2061
1982
  }
2062
1983
  /**
2063
- * Tracks the first usage of a named hook per SDK session.
2064
- * If the telemetry manager hasn't initialized yet, the hook
2065
- * name is buffered and flushed when it becomes available.
2066
- *
2067
- * Uses a ref to ensure the tracking call only happens once per
2068
- * component mount, avoiding repeated WeakMap lookups on re-renders.
2069
- *
2070
- * Call at the top of any public hook whose adoption we want to measure.
2071
- *
2072
- * @internal
2073
- */
2074
- function useTrackHookUsage(hookName) {
2075
- let instance = useSanityInstance(), tracked = useRef(null);
2076
- tracked.current === null && (tracked.current = !0, trackHookMounted(instance, hookName));
2077
- }
2078
- /**
2079
- * Non-hook variant for tracking hook usage when an instance is already
2080
- * available (avoids an extra `useSanityInstance` call in hooks that
2081
- * already have the instance).
2082
- *
2083
- * @internal
2084
- */
2085
- function trackHookUsage(instance, hookName) {
2086
- trackHookMounted(instance, hookName);
2087
- }
2088
- /**
2089
1984
  * Returns the five comment write actions, bound to the current instance.
2090
1985
  *
2091
1986
  * Each writes optimistically: the change shows immediately and is rolled back
@@ -2120,6 +2015,10 @@ function trackHookUsage(instance, hookName) {
2120
2015
  * ```
2121
2016
  *
2122
2017
  * @public
2018
+ * @deprecated Comments have moved to the organization collaboration API. Use
2019
+ * `useCommentActions` from `@sanity/sdk-react/collaboration`, which writes inline anchors as an
2020
+ * `anchor` of offsets rather than a pre-built `selection`. This add-on dataset hook is
2021
+ * removed in the next major.
2123
2022
  */
2124
2023
  function useCommentActions() {
2125
2024
  let $ = c(7), instance = useSanityInstance();
@@ -2135,46 +2034,28 @@ function useCommentActions() {
2135
2034
  removeComment: (options_4) => removeComment(instance, resolve(options_4))
2136
2035
  }, $[4] = instance, $[5] = resolve, $[6] = t1) : t1 = $[6], t1;
2137
2036
  }
2037
+ const NEVER_ERRORS = {
2038
+ subscribe: () => () => {},
2039
+ getCurrent: () => void 0,
2040
+ observable: of(void 0)
2041
+ };
2138
2042
  /**
2139
- * Shared body of {@link useComments} and {@link useCommentThreads}.
2140
- *
2141
- * Suspends until the first snapshot arrives. Changing documents or filters
2142
- * happens in a transition, so the list already on screen stays put and
2143
- * `isPending` reports the swap instead of the component suspending again. The
2144
- * previous read is aborted, which drops its listener when nothing else is
2145
- * reading it.
2043
+ * The error source {@link useCommentList} asks every read hook for.
2146
2044
  *
2147
- * @internal
2045
+ * The add-on dataset store has no error state: a listener that fails throws at
2046
+ * whoever is reading it rather than parking the error beside the list. So the
2047
+ * deprecated hooks report no error, ever, and keep the behaviour they shipped
2048
+ * with.
2148
2049
  */
2149
- function useCommentList(hookName, options, { getState, resolve }) {
2150
- let instance = useSanityInstance();
2151
- trackHookUsage(instance, hookName);
2152
- let normalized = useNormalizedResourceOptions(options), [isPending, startTransition] = useTransition(), key = getCommentsOptionsKey(normalized), [deferredKey, setDeferredKey] = useState(key), abortRef = useRef(new AbortController());
2153
- useEffect(() => {
2154
- key !== deferredKey && startTransition(() => {
2155
- abortRef.current.signal.aborted || (abortRef.current.abort(), abortRef.current = new AbortController()), setDeferredKey(key);
2156
- });
2157
- }, [deferredKey, key]);
2158
- let deferred = useMemo(() => parseCommentsOptionsKey(deferredKey), [deferredKey]), { getCurrent, subscribe } = useMemo(() => getState(instance, deferred), [
2159
- deferred,
2160
- getState,
2161
- instance
2162
- ]);
2163
- if (getCurrent() === void 0) {
2164
- let currentSignal = abortRef.current.signal;
2165
- throw resolve(instance, {
2166
- ...deferred,
2167
- signal: currentSignal
2168
- });
2169
- }
2170
- return {
2171
- value: useSyncExternalStore(subscribe, getCurrent),
2172
- isPending
2173
- };
2050
+ function getNoCommentsErrorState() {
2051
+ return NEVER_ERRORS;
2174
2052
  }
2175
2053
  const SOURCE$1 = {
2176
2054
  getState: getCommentsState,
2177
- resolve: resolveComments
2055
+ getErrorState: getNoCommentsErrorState,
2056
+ resolve: resolveComments,
2057
+ getKey: getCommentsOptionsKey,
2058
+ parseKey: parseCommentsOptionsKey
2178
2059
  };
2179
2060
  /**
2180
2061
  * Reads a document's comments and keeps them up to date.
@@ -2208,6 +2089,9 @@ const SOURCE$1 = {
2208
2089
  * ```
2209
2090
  *
2210
2091
  * @public
2092
+ * @deprecated Comments have moved to the organization collaboration API. Import `useComments`
2093
+ * from `@sanity/sdk-react/collaboration` instead; it takes the same options and returns the
2094
+ * same flat list. This add-on dataset hook is removed in the next major.
2211
2095
  */
2212
2096
  function useComments(options) {
2213
2097
  let $ = c(3), { value, isPending } = useCommentList("useComments", options, SOURCE$1), t0;
@@ -2218,7 +2102,10 @@ function useComments(options) {
2218
2102
  }
2219
2103
  const SOURCE = {
2220
2104
  getState: getCommentThreadsState,
2221
- resolve: resolveCommentThreads
2105
+ getErrorState: getNoCommentsErrorState,
2106
+ resolve: resolveCommentThreads,
2107
+ getKey: getCommentsOptionsKey,
2108
+ parseKey: parseCommentsOptionsKey
2222
2109
  };
2223
2110
  /**
2224
2111
  * Reads a document's comments grouped into threads.
@@ -2259,6 +2146,9 @@ const SOURCE = {
2259
2146
  * ```
2260
2147
  *
2261
2148
  * @public
2149
+ * @deprecated Comments have moved to the organization collaboration API. Import
2150
+ * `useCommentThreads` from `@sanity/sdk-react/collaboration` instead; it takes the same options
2151
+ * and returns the same thread shape. This add-on dataset hook is removed in the next major.
2262
2152
  */
2263
2153
  function useCommentThreads(options) {
2264
2154
  let $ = c(3), { value, isPending } = useCommentList("useCommentThreads", options, SOURCE), t0;
@@ -2861,8 +2751,8 @@ const useApplyDocumentActions = () => useApplyActions();
2861
2751
  * ```
2862
2752
  */
2863
2753
  function useCreateDocument(options) {
2864
- let $ = c(3);
2865
- trackHookUsage(useSanityInstance(), "useCreateDocument");
2754
+ let $ = c(3), instance = useSanityInstance();
2755
+ trackHookUsage(instance, "useCreateDocument");
2866
2756
  let apply = useApplyDocumentActions(), t0;
2867
2757
  return $[0] !== apply || $[1] !== options ? (t0 = async (initialValue, overrides) => {
2868
2758
  let documentId = overrides?.documentId ?? options.documentId ?? randomUuid(), handle = {
@@ -4378,7 +4268,7 @@ function useUsers(options) {
4378
4268
  loadMore
4379
4269
  }, $[20] = data, $[21] = hasMore, $[22] = isPending, $[23] = loadMore, $[24] = totalCount, $[25] = t8) : t8 = $[25], t8;
4380
4270
  }
4381
- var version = "3.11.0-next.20261029105031";
4271
+ var version = "3.11.0";
4382
4272
  function getEnv(key) {
4383
4273
  if (import.meta.env) return import.meta.env[key];
4384
4274
  if (typeof process < "u" && process.env) return process.env[key];