@sanity/sdk-react 3.12.0 → 3.13.0-app-functions.20261106191857

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
@@ -1,7 +1,7 @@
1
1
  import { t as WithResourceNameSupport } from "./useNormalizedResourceOptions-BKg7aOKA.js";
2
- import { DatasetsResponse, DatasetsResponse as DatasetsResponse$1, SanityProjectMember } from "@sanity/client";
3
- import { AccessResourceType, ActionsResult, Application, ApplicationInclude, ApplicationsOptions, ApplicationsResponse, AuthState, ClientOptions, Comment, CommentThread, CommentsOptions, CreateCommentOptions, CurrentUser, DatasetHandle, DocumentAction, DocumentEvent, DocumentHandle as DocumentHandle$1, DocumentOptions, DocumentPermissionsResult, DocumentPresence, DocumentResource, DocumentStatus, DocumentTypeHandle as DocumentTypeHandle$1, FavoriteStatusResponse, GetUserOptions, GetUsersOptions, Installation, InstallationInclude, InstallationsOptions, InstallationsResponse, JsonMatch, OAuthTokens, Organization, OrganizationOptions, Organizations, OrganizationsOptions, PresenceSelection, PreviewValue, Project, ProjectHandle, ProjectOptions, ProjectsOptions, QueryOptions, ReleaseAction, ReleaseDocument, RemoveCommentOptions, ReplyToCommentOptions, ResolveDocument, ResolveProjectionResult, ResolveQueryResult, SanityConfig, SanityInstance, SanityUser, SetCommentStatusOptions, TokenSource, UpdateCommentOptions, UserPresence } from "@sanity/sdk";
4
- import "@sanity/sdk/_internal";
2
+ import { DatasetsResponse, DatasetsResponse as DatasetsResponse$1, SanityClient, SanityProjectMember } from "@sanity/client";
3
+ import { AccessResourceType, ActionsResult, AppFunctions, Application, ApplicationInclude, ApplicationsOptions, ApplicationsResponse, AuthState, ClientOptions, Comment, CommentThread, CommentsOptions, CreateCommentOptions, CurrentUser, DatasetHandle, DocumentAction, DocumentEvent, DocumentHandle as DocumentHandle$1, DocumentOptions, DocumentPermissionsResult, DocumentPresence, DocumentResource, DocumentStatus, DocumentTypeHandle as DocumentTypeHandle$1, FavoriteStatusResponse, GetUserOptions, GetUsersOptions, Installation, InstallationInclude, InstallationsOptions, InstallationsResponse, JsonMatch, OAuthTokens, Organization, OrganizationOptions, Organizations, OrganizationsOptions, PresenceSelection, PreviewValue, Project, ProjectHandle, ProjectOptions, ProjectsOptions, QueryOptions, ReleaseAction, ReleaseDocument, RemoveCommentOptions, ReplyToCommentOptions, ResolveDocument, ResolveProjectionResult, ResolveQueryResult, SanityConfig, SanityInstance, SanityUser, SetCommentStatusOptions, TokenSource, UpdateCommentOptions, UserPresence } from "@sanity/sdk";
4
+ import { AppFunctionContract } from "@sanity/sdk/_internal";
5
5
  import React$1, { PropsWithChildren, ReactElement, ReactNode } from "react";
6
6
  import { FallbackProps } from "react-error-boundary";
7
7
  import { CanvasResource, MediaResource, StudioResource } from "@sanity/message-protocol";
@@ -250,6 +250,24 @@ interface DocumentTypeHandle<TDocumentType extends string = string, TDataset ext
250
250
  interface DocumentHandle<TDocumentType extends string = string, TDataset extends string = string, TProjectId extends string = string> extends DocumentHandle$1<TDocumentType, TDataset, TProjectId> {
251
251
  resourceName?: string;
252
252
  }
253
+ /** Function stack binding supplied by the CLI-generated app entry. @internal */
254
+ interface AppFunctionsConfig {
255
+ /** Generated client contracts, supplied by the CLI. */
256
+ functions?: Record<string, AppFunctionContract>;
257
+ stackId: string;
258
+ organizationId: string;
259
+ }
260
+ /** Props for the CLI's function binding provider. @internal */
261
+ interface AppFunctionsProviderProps {
262
+ value: AppFunctionsConfig;
263
+ children: ReactNode;
264
+ }
265
+ /**
266
+ * Provide a function stack to useClient within this application's React tree.
267
+ * Authentication stays with the SDK instance. The CLI supplies stack IDs and contracts.
268
+ * @internal
269
+ */
270
+ export declare function AppFunctionsProvider({ value, children }: AppFunctionsProviderProps): ReactNode;
253
271
  /**
254
272
  * This provider is used to provide the Comlink token refresh feature.
255
273
  * It is used to automatically request a new token on 401 error if enabled.
@@ -1329,7 +1347,7 @@ export declare function useVerifyOrgProjects(disabled?: boolean, projectIds?: st
1329
1347
  * @public
1330
1348
  * @function
1331
1349
  */
1332
- export declare const useClient: (options: ClientOptions) => import("@sanity/client").SanityClient;
1350
+ export declare function useClient(options: ClientOptions): SanityClient;
1333
1351
  declare global {
1334
1352
  interface SymbolConstructor {
1335
1353
  readonly observable: symbol;
@@ -2686,6 +2704,17 @@ interface DocumentsResponse<TDocumentType extends string = string, TDataset exte
2686
2704
  * ```
2687
2705
  */
2688
2706
  export declare function useDocuments<TDocumentType extends string = string, TDataset extends string = string, TProjectId extends string = string>({ batchSize, params, search, filter, orderings, documentType, ...rawOptions }: DocumentsOptions<TDocumentType, TDataset, TProjectId>): DocumentsResponse<TDocumentType, TDataset, TProjectId>;
2707
+ /**
2708
+ * Return the app's typed, authenticated functions. Types are generated by Sanity CLI.
2709
+ * Each call waits for the function's result and validates it against the generated contract.
2710
+ * @example
2711
+ * ```tsx
2712
+ * const functions = useFunctions()
2713
+ * const page = await functions.callWikipedia({timeout: 30_000})
2714
+ * ```
2715
+ * @public
2716
+ */
2717
+ export declare function useFunctions(): AppFunctions;
2689
2718
  /**
2690
2719
  * Returns a single installation by id.
2691
2720
  *
@@ -3772,5 +3801,5 @@ export declare function useUsers(options?: GetUsersOptions): UsersResult;
3772
3801
  * @internal
3773
3802
  */
3774
3803
  export declare const REACT_SDK_VERSION: {};
3775
- export type { AuthBoundaryProps, Status as ComlinkStatus, CommentActions, CreateDocumentOverrides, DatasetsResponse, DocumentHandle, DocumentTypeHandle, DocumentsOptions, DocumentsResponse, FetcherHookResult, FrameConnection, FrameMessageHandler as MessageHandler, MutationHookResult, PaginatedDocumentsOptions, PaginatedDocumentsResponse, ResourceHandle, ResourceProviderProps, SDKProviderProps, SanityAppProps, SanityDocument, SanityInstanceProviderProps, SanityProjectMember, SortOrderingItem, StudioWorkspaceHandle, UseCommentThreadsResult, UseCommentsResult, UseFrameConnectionOptions, UseOAuthTokensResult, UsePresenceForDocumentOptions, UseReportPresenceOptions, UseWindowConnectionOptions, UserResult, UsersResult, WindowConnection, WindowMessageHandler, useDocumentPreviewOptions, useDocumentPreviewResults, useDocumentProjectionOptions, useDocumentProjectionResults };
3804
+ export type { AppFunctionsConfig, AppFunctionsProviderProps, AuthBoundaryProps, Status as ComlinkStatus, CommentActions, CreateDocumentOverrides, DatasetsResponse, DocumentHandle, DocumentTypeHandle, DocumentsOptions, DocumentsResponse, FetcherHookResult, FrameConnection, FrameMessageHandler as MessageHandler, MutationHookResult, PaginatedDocumentsOptions, PaginatedDocumentsResponse, ResourceHandle, ResourceProviderProps, SDKProviderProps, SanityAppProps, SanityDocument, SanityInstanceProviderProps, SanityProjectMember, SortOrderingItem, StudioWorkspaceHandle, UseCommentThreadsResult, UseCommentsResult, UseFrameConnectionOptions, UseOAuthTokensResult, UsePresenceForDocumentOptions, UseReportPresenceOptions, UseWindowConnectionOptions, UserResult, UsersResult, WindowConnection, WindowMessageHandler, useDocumentPreviewOptions, useDocumentPreviewResults, useDocumentProjectionOptions, useDocumentProjectionResults };
3776
3805
  //# sourceMappingURL=index.d.ts.map
@@ -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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AAML,mBAAmBG,WAAWE,cAAcD;;EAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAgCcE,SAAS,OAAO,SAASL,wBAAwBF;;EAE/D,MAAMQ;;EAEN;;;;;;;;;;;;;;;;;;wBCzEcI,kBACd,UAAUD,wBAAwBF,6BACjCC;;;;;;;;;;;;;;;;;;;;;;;;;;wBCKaM,eACd,UAAUD,wBAAwBF,6BACjCC;;;;UClDOM;OACH,QAAQF,gBAAgBA,iBAAiB,UAAUC,mBAAmBE,QAAQJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAsExEK,wBAAwBF;;;;;;;;;;;;;;;;;;;;;wBChCrBI,eAAe,oBAAoBD;;;;;;UCnClCI;;;;EAIf,MAAMD;;;;EAIN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAmCcE,QAAQ,SAASH,iBAAiBE;;;;;;UCpCjCI;;;;EAIf,MAAMD;;;;EAIN;;;;EAIA;;;;EAKA;;;;EAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA2DcE,SAAS,UAAUH,kBAAkBE;;;;;qBC5FxCE"}
1
+ {"version":3,"file":"index.d.ts","names":["FallbackProps","LoginErrorProps","LoginError","error","resetErrorBoundary","React","ReactNode","LoginErrorProps","AuthBoundaryProps","React","ReactNode","ComponentType","AuthBoundary","LoginErrorComponent","DocumentResource","SanityConfig","ReactElement","SanityAppProps","Record","React","ReactNode","SanityApp","children","fallback","configProp","DocumentResource","SanityConfig","ReactElement","ReactNode","AuthBoundaryProps","SDKProviderProps","Record","SDKProvider","children","config","fallback","inferMediaLibraryAndCanvas","DatasetHandle","DocumentHandle","CoreDocumentHandle","DocumentTypeHandle","CoreDocumentTypeHandle","ResourceHandle","TDataset","TProjectId","TDocumentType","CoreDocumentTypeHandle","CoreDocumentHandle","AppFunctionContract","AppFunctionsConfig","Record","AppFunctionsContext","ReactNode","AppFunctionsConfig","AppFunctionsProviderProps","AppFunctionsProvider","value","children","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","SanityClient","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","AppFunctions","useFunctions","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/AppFunctionsContext.ts","../src/context/AppFunctionsProvider.tsx","../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/functions/useFunctions.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":[31,32],"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;;;;;;;;;;;;;;;;;;;;;;;;;;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
@@ -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, createAppFunctions, 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
  /**
@@ -1220,6 +1237,20 @@ function SanityApp(t0) {
1220
1237
  function _temp$4() {
1221
1238
  console.warn("Redirecting to core", REDIRECT_URL), window.location.replace(REDIRECT_URL);
1222
1239
  }
1240
+ /** App-local defaults for authenticated function clients. @internal */
1241
+ const AppFunctionsContext = createContext(void 0);
1242
+ /**
1243
+ * Provide a function stack to useClient within this application's React tree.
1244
+ * Authentication stays with the SDK instance. The CLI supplies stack IDs and contracts.
1245
+ * @internal
1246
+ */
1247
+ function AppFunctionsProvider(t0) {
1248
+ let $ = c(3), { value, children } = t0, t1;
1249
+ return $[0] !== children || $[1] !== value ? (t1 = /* @__PURE__ */ jsx(AppFunctionsContext.Provider, {
1250
+ value,
1251
+ children
1252
+ }), $[0] = children, $[1] = value, $[2] = t1) : t1 = $[2], t1;
1253
+ }
1223
1254
  /** @internal */
1224
1255
  function renderSanityApp(rootElement, namedSources, options, children) {
1225
1256
  if (!rootElement) throw Error("Missing root element to mount application into");
@@ -1897,6 +1928,10 @@ function useOAuthTokens() {
1897
1928
  revoke: t3
1898
1929
  }, $[0] = t0, $[1] = t1, $[2] = t2, $[3] = t3, $[4] = t4) : t4 = $[4], t4;
1899
1930
  }
1931
+ const useClientState = createStateSourceHook({
1932
+ getState: getClientState,
1933
+ getConfig: (options) => options
1934
+ });
1900
1935
  /**
1901
1936
  * A React hook that provides a client that subscribes to changes in your application,
1902
1937
  *
@@ -1924,13 +1959,16 @@ function useOAuthTokens() {
1924
1959
  * @public
1925
1960
  * @function
1926
1961
  */
1927
- const useClient = createStateSourceHook({
1928
- getState: (instance, options) => {
1929
- if (!options || typeof options != "object") throw Error("useClient() requires a configuration object with at least an \"apiVersion\" property. Example: useClient({ apiVersion: \"2024-11-12\" })");
1930
- return getClientState(instance, options);
1931
- },
1932
- getConfig: (options) => options
1933
- });
1962
+ function useClient(options) {
1963
+ let $ = c(3), binding = useContext(AppFunctionsContext);
1964
+ if (!options || typeof options != "object") throw Error("useClient() requires a configuration object with at least an \"apiVersion\" property. Example: useClient({ apiVersion: \"2024-11-12\" })");
1965
+ let t0;
1966
+ return $[0] !== binding || $[1] !== options ? (t0 = binding ? {
1967
+ ...options,
1968
+ stackId: options.stackId ?? binding.stackId,
1969
+ organizationId: options.organizationId ?? binding.organizationId
1970
+ } : options, $[0] = binding, $[1] = options, $[2] = t0) : t0 = $[2], useClientState(t0);
1971
+ }
1934
1972
  /**
1935
1973
  * @internal
1936
1974
  */
@@ -3449,6 +3487,27 @@ function _temp(i) {
3449
3487
  return typeof i == "string";
3450
3488
  }
3451
3489
  /**
3490
+ * Return the app's typed, authenticated functions. Types are generated by Sanity CLI.
3491
+ * Each call waits for the function's result and validates it against the generated contract.
3492
+ * @example
3493
+ * ```tsx
3494
+ * const functions = useFunctions()
3495
+ * const page = await functions.callWikipedia({timeout: 30_000})
3496
+ * ```
3497
+ * @public
3498
+ */
3499
+ function useFunctions() {
3500
+ let $ = c(4), binding = useContext(AppFunctionsContext), t0;
3501
+ $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = {
3502
+ apiVersion: "2026-06-15",
3503
+ scope: "global"
3504
+ }, $[0] = t0) : t0 = $[0];
3505
+ let client = useClient(t0), contracts = binding?.functions, t1;
3506
+ if (!contracts) throw Error("App function contracts are missing. Build the app with Sanity CLI.");
3507
+ let t2;
3508
+ return $[1] !== client || $[2] !== contracts ? (t2 = createAppFunctions(client, contracts), $[1] = client, $[2] = contracts, $[3] = t2) : t2 = $[3], t1 = t2, t1;
3509
+ }
3510
+ /**
3452
3511
  * Returns a single installation by id.
3453
3512
  *
3454
3513
  * The hook suspends until the first fetch succeeds, so `data` is always present.
@@ -4269,7 +4328,7 @@ function useUsers(options) {
4269
4328
  loadMore
4270
4329
  }, $[20] = data, $[21] = hasMore, $[22] = isPending, $[23] = loadMore, $[24] = totalCount, $[25] = t8) : t8 = $[25], t8;
4271
4330
  }
4272
- var version = "3.12.0";
4331
+ var version = "3.13.0-app-functions.20261106191857";
4273
4332
  function getEnv(key) {
4274
4333
  if (import.meta.env) return import.meta.env[key];
4275
4334
  if (typeof process < "u" && process.env) return process.env[key];
@@ -4280,6 +4339,6 @@ function getEnv(key) {
4280
4339
  * @internal
4281
4340
  */
4282
4341
  const REACT_SDK_VERSION = getEnv("PKG_VERSION") || `${version}-development`;
4283
- export { AuthBoundary, ComlinkTokenRefreshProvider, REACT_SDK_VERSION, ResourceProvider, SDKProvider, SDKStudioContext, SanityApp, SanityInstanceProvider, renderSanityApp, useActiveReleases, useAgentGenerate, useAgentPatch, useAgentPrompt, useAgentTransform, useAgentTranslate, useAllReleases, useApplication, useApplications, useApplyDocumentActions, useApplyReleaseActions, useAuthState, useAuthToken, useCheckPermissions, useClient, useCommentActions, useCommentThreads, useComments, useCreateDocument, useCurrentUser, useDatasets, useDeleteApplication, useDocument, useDocumentEvent, useDocumentPermissions, useDocumentPreview, useDocumentProjection, useDocumentSyncStatus, useDocuments, useEditDocument, useFavorite, useFrameConnection, useHandleAuthCallback, useHandleOAuthCallback, useInstallation, useInstallations, useLogOut, useLoginUrl, useOAuthAuthorize, useOAuthTokens, useOrganization, useOrganizations, usePaginatedDocuments, usePerspective, usePresence, usePresenceForDocument, useProject, useProjects, useQuery, useRecordDocumentHistoryEvent, useReportPresence, useResource, useSanityInstance, useStudioWorkspacesByProjectIdDataset, useUpdateApplication, useUpdateFavorite, useUser, useUsers, useVerifyOrgProjects, useWindowConnection };
4342
+ export { AppFunctionsProvider, AuthBoundary, ComlinkTokenRefreshProvider, REACT_SDK_VERSION, ResourceProvider, SDKProvider, SDKStudioContext, SanityApp, SanityInstanceProvider, renderSanityApp, useActiveReleases, useAgentGenerate, useAgentPatch, useAgentPrompt, useAgentTransform, useAgentTranslate, useAllReleases, useApplication, useApplications, useApplyDocumentActions, useApplyReleaseActions, useAuthState, useAuthToken, useCheckPermissions, useClient, useCommentActions, useCommentThreads, useComments, useCreateDocument, useCurrentUser, useDatasets, useDeleteApplication, useDocument, useDocumentEvent, useDocumentPermissions, useDocumentPreview, useDocumentProjection, useDocumentSyncStatus, useDocuments, useEditDocument, useFavorite, useFrameConnection, useFunctions, useHandleAuthCallback, useHandleOAuthCallback, useInstallation, useInstallations, useLogOut, useLoginUrl, useOAuthAuthorize, useOAuthTokens, useOrganization, useOrganizations, usePaginatedDocuments, usePerspective, usePresence, usePresenceForDocument, useProject, useProjects, useQuery, useRecordDocumentHistoryEvent, useReportPresence, useResource, useSanityInstance, useStudioWorkspacesByProjectIdDataset, useUpdateApplication, useUpdateFavorite, useUser, useUsers, useVerifyOrgProjects, useWindowConnection };
4284
4343
 
4285
4344
  //# sourceMappingURL=index.js.map