@sanity/sdk-react 3.12.0 → 3.13.0-next.20261105164925
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.map +1 -1
- package/dist/index.js +36 -19
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/SDKProvider.reporting.test.tsx +69 -0
- package/src/components/SDKProvider.tsx +5 -0
- package/src/components/auth/AuthBoundary.reporting.test.tsx +80 -0
- package/src/components/auth/AuthBoundary.tsx +6 -0
- package/src/components/errors/reportBoundaryError.test.ts +38 -0
- package/src/components/errors/reportBoundaryError.ts +33 -0
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","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,+BACG,SACFN,mBAAmBH;;;;;;;;;;;;;;UChCLe,eACf,kCACA,4CACQL,cAAcM,UAAUC;;;;;EAKhC;;;;;;;;UASeJ,mBACf,uCACA,kCACA,4CACQC,qBAAuBI,eAAeF,UAAUC;EACxD;;;;;;;;;;;;UAaeN,eACf,uCACA,kCACA,4CACQC,iBAAmBM,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;;;;;;;;;;;;;;;;;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;;;;UCsBbQ;;;;;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;;;;;;UCvGZO;;;;;;;EAOf,SAASF,eAAeA;EACxB,YAAYG,eAAeJ;EAC3B,UAAUK,MAAMC;EAEhB,UAAUD,MAAMC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAqFcC,YACdC,UACAC,UACA,QAAQC,eACL,SACFP,iBAAiBD;;;;UCzHHc,yBAAyBD;EACxC,UAAUD;EACV,QAAQF,eAAeA;EACvB,UAAUE;EACV,YAAYG,eAAeN;;EAE3B;;;;;;;wBAoBcO,cACdC,UACAC,QACAC,UACAC,+BACG,SACFN,mBAAmBH;;;;;;;;;;;;;;UCnCLe,eACf,kCACA,4CACQL,cAAcM,UAAUC;;;;;EAKhC;;;;;;;;UAS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AO,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
|
@@ -5,7 +5,7 @@ import { a as useEffectiveContextResource, c as ResourceContext, i as normalizeR
|
|
|
5
5
|
import { c } from "react-compiler-runtime";
|
|
6
6
|
import { ClientError, CorsOriginError } from "@sanity/client";
|
|
7
7
|
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";
|
|
8
|
-
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";
|
|
8
|
+
import { PREVIEW_PROJECTION, createGroqSearchFilter, getBusFavoriteState, getClientErrorApiBody, getCommentsOptionsKey, getDashboardMessageBus, getProjectAccessErrorDetails, getQueryKey, getSignInMethodLabel, getUsersKey, initTelemetry, isDashboardEnvironment, isDeepEqual, isMessageBusEnvironment, isStudioConfig, parseCommentsOptionsKey, parseQueryKey, parseUsersKey, pickProperties, randomUuid, reportError, resolveBusFavorite, setBusFavorite, transformProjectionToPreview } from "@sanity/sdk/_internal";
|
|
9
9
|
import { StrictMode, Suspense, createContext, use, useCallback, useContext, useEffect, useInsertionEffect, useMemo, useRef, useState, useSyncExternalStore, useTransition } from "react";
|
|
10
10
|
import { ErrorBoundary, getErrorMessage } from "react-error-boundary";
|
|
11
11
|
import { SDK_CHANNEL_NAME, SDK_NODE_NAME } from "@sanity/message-protocol";
|
|
@@ -328,21 +328,6 @@ function CorsErrorComponent(t0) {
|
|
|
328
328
|
} : { description: getErrorMessage(error) }
|
|
329
329
|
}), $[2] = corsUrl, $[3] = error, $[4] = projectId, $[5] = t2) : t2 = $[5], t2;
|
|
330
330
|
}
|
|
331
|
-
function isInIframe() {
|
|
332
|
-
return typeof window < "u" && window.self !== window.top;
|
|
333
|
-
}
|
|
334
|
-
/**
|
|
335
|
-
* @internal
|
|
336
|
-
*
|
|
337
|
-
* Checks if the current URL is a local URL.
|
|
338
|
-
*
|
|
339
|
-
* @param window - The window object
|
|
340
|
-
* @returns True if the current URL is a local URL, false otherwise
|
|
341
|
-
*/
|
|
342
|
-
function isLocalUrl(window) {
|
|
343
|
-
let url = window === void 0 ? "" : window.location.href;
|
|
344
|
-
return url.startsWith("http://localhost") || url.startsWith("https://localhost") || url.startsWith("http://127.0.0.1") || url.startsWith("https://127.0.0.1");
|
|
345
|
-
}
|
|
346
331
|
/**
|
|
347
332
|
* Error class for authentication-related errors. Wraps errors thrown during the
|
|
348
333
|
* authentication flow.
|
|
@@ -364,6 +349,36 @@ var AuthError = class extends Error {
|
|
|
364
349
|
}
|
|
365
350
|
};
|
|
366
351
|
/**
|
|
352
|
+
* Creates a function that reports an error an `ErrorBoundary` caught to Sentry. Call it from the
|
|
353
|
+
* boundary's `FallbackComponent`, not from `onError`: the SDK fallbacks rethrow errors they do not
|
|
354
|
+
* render, and React skips `onError` on a boundary whose fallback throws. Fallbacks render more
|
|
355
|
+
* than once for one error, which the reporter's deduplication absorbs.
|
|
356
|
+
*
|
|
357
|
+
* The boundaries also catch errors thrown by the app rendered beneath them, so the reporter keeps
|
|
358
|
+
* only errors whose throwing frame is in the SDK. Auth, configuration, CORS, and chunk load errors
|
|
359
|
+
* are expected states and are never reported.
|
|
360
|
+
*/
|
|
361
|
+
function reportBoundaryError(errorBoundary) {
|
|
362
|
+
return (error) => {
|
|
363
|
+
error instanceof AuthError || error instanceof ConfigurationError || error instanceof CorsOriginError || error instanceof Error && error.name === "CorsOriginError" || isImportError(error) || reportError(error, { errorBoundary });
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
function isInIframe() {
|
|
367
|
+
return typeof window < "u" && window.self !== window.top;
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* @internal
|
|
371
|
+
*
|
|
372
|
+
* Checks if the current URL is a local URL.
|
|
373
|
+
*
|
|
374
|
+
* @param window - The window object
|
|
375
|
+
* @returns True if the current URL is a local URL, false otherwise
|
|
376
|
+
*/
|
|
377
|
+
function isLocalUrl(window) {
|
|
378
|
+
let url = window === void 0 ? "" : window.location.href;
|
|
379
|
+
return url.startsWith("http://localhost") || url.startsWith("https://localhost") || url.startsWith("http://127.0.0.1") || url.startsWith("https://127.0.0.1");
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
367
382
|
* @internal
|
|
368
383
|
* A React hook that returns a function for handling authentication callbacks.
|
|
369
384
|
*
|
|
@@ -649,6 +664,7 @@ if (isInIframe() && !document.querySelector("[data-sanity-core]")) {
|
|
|
649
664
|
let parsedUrl = new URL(window.location.href), mode = new URLSearchParams(parsedUrl.hash.slice(1)).get("mode"), script = document.createElement("script");
|
|
650
665
|
script.src = mode === "core-ui--staging" ? "https://core.sanity-cdn.work/bridge.js" : "https://core.sanity-cdn.com/bridge.js", script.type = "module", script.async = !0, document.head.appendChild(script);
|
|
651
666
|
}
|
|
667
|
+
const reportAuthBoundaryError = reportBoundaryError("AuthBoundary");
|
|
652
668
|
/**
|
|
653
669
|
* A component that handles authentication flow and error boundaries for a
|
|
654
670
|
* protected section of the application.
|
|
@@ -675,7 +691,7 @@ function AuthBoundary(t0) {
|
|
|
675
691
|
$[0] === t0 ? (props = $[1], t1 = $[2]) : ({LoginErrorComponent: t1, ...props} = t0, $[0] = t0, $[1] = props, $[2] = t1);
|
|
676
692
|
let LoginErrorComponent = t1 === void 0 ? LoginError : t1, authState = useAuthState(), sessionResetKey = authState.type === AuthStateType.LOGGED_IN ? authState.token : authState.type, t2;
|
|
677
693
|
$[3] === LoginErrorComponent ? t2 = $[4] : (t2 = function LoginComponentWithLayoutProps(fallbackProps) {
|
|
678
|
-
return isImportError(fallbackProps.error) ? /* @__PURE__ */ jsx(ChunkLoadError, { ...fallbackProps }) : fallbackProps.error instanceof CorsOriginError ? /* @__PURE__ */ jsx(CorsErrorComponent, {
|
|
694
|
+
return reportAuthBoundaryError(fallbackProps.error), isImportError(fallbackProps.error) ? /* @__PURE__ */ jsx(ChunkLoadError, { ...fallbackProps }) : fallbackProps.error instanceof CorsOriginError ? /* @__PURE__ */ jsx(CorsErrorComponent, {
|
|
679
695
|
...fallbackProps,
|
|
680
696
|
projectId: getCorsErrorProjectId(fallbackProps.error)
|
|
681
697
|
}) : /* @__PURE__ */ jsx(LoginErrorComponent, { ...fallbackProps });
|
|
@@ -1011,6 +1027,7 @@ function ResourceProvider(t0) {
|
|
|
1011
1027
|
children: t12
|
|
1012
1028
|
}), $[29] = instance, $[30] = t12, $[31] = t8, $[32] = t13) : t13 = $[32], t13;
|
|
1013
1029
|
}
|
|
1030
|
+
const reportSDKProviderError = reportBoundaryError("SDKProvider");
|
|
1014
1031
|
/**
|
|
1015
1032
|
* Clears the chunk-reload flag once children render successfully past the
|
|
1016
1033
|
* top-level boundary, so a future incident in the same session can trigger
|
|
@@ -1098,7 +1115,7 @@ function ChunkAwareFallback(fallbackProps) {
|
|
|
1098
1115
|
let t0;
|
|
1099
1116
|
return $[0] === fallbackProps ? t0 = $[1] : (t0 = /* @__PURE__ */ jsx(ChunkLoadError, { ...fallbackProps }), $[0] = fallbackProps, $[1] = t0), t0;
|
|
1100
1117
|
}
|
|
1101
|
-
throw fallbackProps.error;
|
|
1118
|
+
throw reportSDKProviderError(fallbackProps.error), fallbackProps.error;
|
|
1102
1119
|
}
|
|
1103
1120
|
const REDIRECT_URL = "https://sanity.io/welcome";
|
|
1104
1121
|
/**
|
|
@@ -4269,7 +4286,7 @@ function useUsers(options) {
|
|
|
4269
4286
|
loadMore
|
|
4270
4287
|
}, $[20] = data, $[21] = hasMore, $[22] = isPending, $[23] = loadMore, $[24] = totalCount, $[25] = t8) : t8 = $[25], t8;
|
|
4271
4288
|
}
|
|
4272
|
-
var version = "3.
|
|
4289
|
+
var version = "3.13.0-next.20261105164925";
|
|
4273
4290
|
function getEnv(key) {
|
|
4274
4291
|
if (import.meta.env) return import.meta.env[key];
|
|
4275
4292
|
if (typeof process < "u" && process.env) return process.env[key];
|