@sanity/sdk-react 3.0.0 → 3.2.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.
- package/dist/_exports/dashboard-internal.d.ts +2 -0
- package/dist/_exports/dashboard-internal.js +2 -0
- package/dist/_exports/dashboard.d.ts +498 -7
- package/dist/_exports/dashboard.d.ts.map +1 -1
- package/dist/_exports/dashboard.js +623 -2
- package/dist/_exports/dashboard.js.map +1 -1
- package/dist/index.d.ts +90 -87
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -115
- package/dist/index.js.map +1 -1
- package/dist/useStudioWorkspacesByProjectIdDataset-BZ_Ud887.js +314 -0
- package/dist/useStudioWorkspacesByProjectIdDataset-BZ_Ud887.js.map +1 -0
- package/package.json +34 -32
- package/src/_exports/dashboard-internal.ts +1 -0
- package/src/_exports/dashboard.test-d.ts +64 -0
- package/src/_exports/dashboard.ts +71 -0
- package/src/_exports/index.ts +1 -1
- package/src/components/auth/AuthBoundary.test.tsx +34 -0
- package/src/components/auth/AuthBoundary.tsx +1 -2
- package/src/context/DashboardTokenRefresh.test.tsx +124 -22
- package/src/context/DashboardTokenRefresh.tsx +70 -20
- package/src/dashboard/createRemoteInstance.test.ts +168 -0
- package/src/dashboard/createRemoteInstance.ts +123 -0
- package/src/dashboard/module.ts +39 -0
- package/src/dashboard/remoteClientState.ts +27 -0
- package/src/dashboard/urlFor.test.ts +246 -0
- package/src/dashboard/urlFor.ts +462 -0
- package/src/hooks/applications/useApplication.test-d.ts +1 -1
- package/src/hooks/dashboard/useApplication.test.tsx +59 -0
- package/src/hooks/dashboard/useApplication.ts +22 -0
- package/src/hooks/dashboard/useApplicationConfig.test.tsx +106 -0
- package/src/hooks/dashboard/useApplicationConfig.ts +45 -0
- package/src/hooks/dashboard/useApplicationConfigs.test.tsx +89 -0
- package/src/hooks/dashboard/useApplicationConfigs.ts +26 -0
- package/src/hooks/dashboard/useApplicationForegroundId.test.tsx +54 -0
- package/src/hooks/dashboard/useApplicationForegroundId.ts +22 -0
- package/src/hooks/dashboard/useApplications.test.tsx +249 -0
- package/src/hooks/dashboard/useApplications.ts +128 -0
- package/src/hooks/dashboard/useEmit.test.tsx +124 -0
- package/src/hooks/dashboard/useEmit.ts +78 -0
- package/src/hooks/dashboard/useNavigate.ts +1 -3
- package/src/hooks/dashboard/useRemoteClient.test.tsx +88 -0
- package/src/hooks/dashboard/useRemoteClient.ts +10 -0
- package/src/hooks/dashboard/useTopic.test.tsx +200 -0
- package/src/hooks/dashboard/useTopic.ts +29 -0
- package/src/hooks/dashboard/useUpdateFavorite.test.tsx +8 -1
- package/src/hooks/document/useApplyDocumentActions.ts +3 -4
- package/src/hooks/document/useCreateDocument.ts +4 -4
- package/src/hooks/document/useDocument.ts +11 -6
- package/src/hooks/document/useEditDocument.ts +5 -5
- package/src/hooks/projection/useDocumentProjection.ts +6 -7
- package/src/hooks/query/useQuery.ts +3 -4
- package/src/utils/resolveOrgResources.test.ts +2 -2
- package/src/utils/resolveOrgResources.ts +2 -2
- package/dist/useStudioWorkspacesByProjectIdDataset-I4S3CuR5.js +0 -177
- package/dist/useStudioWorkspacesByProjectIdDataset-I4S3CuR5.js.map +0 -1
- package/src/context/dashboardToken.ts +0 -63
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"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/useLoginUrl.tsx","../src/hooks/auth/useLogOut.tsx","../src/hooks/auth/useVerifyOrgProjects.tsx","../src/hooks/client/useClient.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"],"x_google_ignoreList":[26],"mappings":";;;;;;;;;;;;;;;KAoBY,kBAAkB;;;;UCmBb;;;;;EAKf,iBAAiB,MAAM;IACrB,SAAS,MAAM;IACf,SAAS,MAAM;;;;;;EAOjB,oBAAoB,MAAM;IACxB,SAAS,MAAM;IACf,SAAS,MAAM;;;;;;;EAQjB,sBAAsB,MAAM,cAAc;;EAG1C,SAAS,MAAM;;;;EAKf;;EAGA,SAAS,MAAM;;EAGf,WAAW,MAAM;;;;;;;;EASjB;;;;;;;;;;;;;;;;;;;;;;;iBAwBc,eACd,wBACG,SACF,oBAAoB,MAAM;;;;;UCrGZ;;;;;;;EAOf,SAAS,eAAe;EACxB,YAAY,eAAe;EAC3B,UAAU,MAAM;EAEhB,UAAU,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqFc,YACd,UACA,UACA,QAAQ,eACL,SACF,iBAAiB;;;;UC3HH,yBAAyB;EACxC,UAAU;EACV,QAAQ,eAAe;EACvB,UAAU;EACV,YAAY,eAAe;;EAE3B;;;;;;;iBAoBc,cACd,UACA,QACA,UACA,+BACG,SACF,mBAAmB;;;;;;;;;;;;UClCL,eACf,kCACA,4CACQ,cAAc,UAAU;;;;;EAKhC;;;;;;UAOe,mBACf,uCACA,kCACA,4CACQ,qBAAuB,eAAe,UAAU;EACxD;;;;;;;;;;UAWe,eACf,uCACA,kCACA,4CACQ,iBAAmB,eAAe,UAAU;EACpD;;;;;;;cC2EW,6BAA6B,QAAM,GAAG;UC1HzC;EACR;;;;;UAMQ;GACP,cAAc;;;iBAGD,gBACd,aAAa,oBACb,cAAc,cACd,SAAS,2BACT,UAAU,M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U,wBAAwB,6BACjC;;;;UClDO;OACH,QAAQ,gBAAgB,iBAAiB,UAAU,mBAAmB,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsExE,wBAAwB;;;;;iBC1BrB,eAAe,oBAAoB;;;;;UC1ClC;;;;EAIf,MAAM;;;;EAIN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmCc,QAAQ,SAAS,iBAAiB;;;;;UCpCjC;;;;EAIf,MAAM;;;;EAIN;;;;EAKA;;;;EAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0Dc,SAAS,UAAU,kBAAkB;;;;;cCtFxC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"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/useLoginUrl.tsx","../src/hooks/auth/useLogOut.tsx","../src/hooks/auth/useVerifyOrgProjects.tsx","../src/hooks/client/useClient.ts","../../../node_modules/.pnpm/xstate@5.32.6/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"],"x_google_ignoreList":[26,27],"mappings":";;;;;;;;;;;;;KAoBY,kBAAkB;;;;UCkBb;;;;;EAKf,iBAAiB,MAAM;IACrB,SAAS,MAAM;IACf,SAAS,MAAM;;;;;;EAOjB,oBAAoB,MAAM;IACxB,SAAS,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAmCc,QAAQ,SAAS,iBAAiB;;;;;UCpCjC;;;;EAIf,MAAM;;;;EAIN;;;;EAKA;;;;EAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA0Dc,SAAS,UAAU,kBAAkB;;;;;qBCtFxC"}
|
package/dist/index.js
CHANGED
|
@@ -1,46 +1,22 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as useAuthState, c as SanityInstanceContext, i as useWindowConnection, n as useOrganizationId, o as createStateSourceHook, r as DashboardTokenRefreshProvider, s as useSanityInstance, t as useStudioWorkspacesByProjectIdDataset } from "./useStudioWorkspacesByProjectIdDataset-BZ_Ud887.js";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
3
|
import { ClientError, CorsOriginError } from "@sanity/client";
|
|
4
|
-
import { AuthStateType, application, applications, applyDocumentActions, checkPermissions, createComment, createDocument, createSanityInstance, datasets, deleteApplication, editDocument, favorites, getActiveReleasesState, getAllReleasesState,
|
|
5
|
-
import { PREVIEW_PROJECTION, createGroqSearchFilter, getClientErrorApiBody, getClientErrorApiDescription, getCommentsOptionsKey, getQueryKey, getUsersKey, initTelemetry, isDeepEqual, isProjectUserNotFoundClientError, isStudioConfig, parseCommentsOptionsKey, parseQueryKey, parseUsersKey, pickProperties, trackHookMounted, transformProjectionToPreview } from "@sanity/sdk/_internal";
|
|
4
|
+
import { AuthStateType, application, applications, applyDocumentActions, checkPermissions, createComment, createDocument, createSanityInstance, datasets, deleteApplication, editDocument, favorites, getActiveReleasesState, getAllReleasesState, getClientState, getCommentThreadsState, getCommentsState, getCorsErrorProjectId, getCurrentUserState, getDocumentPresence, getDocumentState, getDocumentSyncStatus, getIsInDashboardState, getLoginUrlState, getPermissionsState, getPerspectiveState, getPresence, getProjectionState, getQueryState, getTokenState, getUsersState, handleAuthCallback, installation, installations, isDatasetResource, isImportError, isMediaLibraryResource, loadMoreUsers, logout, observeOrganizationVerificationState, organization, organizations, project, projects, removeComment, replyToComment, reportPresence, resolveCommentThreads, resolveComments, resolveDocument, resolveProjection, resolveQuery, resolveUsers, setAuthToken, setCommentStatus, setFavorite, subscribeDocumentEvents, updateApplication, updateComment } from "@sanity/sdk";
|
|
5
|
+
import { PREVIEW_PROJECTION, createGroqSearchFilter, getClientErrorApiBody, getClientErrorApiDescription, getCommentsOptionsKey, getQueryKey, getUsersKey, initTelemetry, isDashboardEnvironment, isDeepEqual, isProjectUserNotFoundClientError, isStudioConfig, parseCommentsOptionsKey, parseQueryKey, parseUsersKey, pickProperties, randomUuid, trackHookMounted, transformProjectionToPreview } from "@sanity/sdk/_internal";
|
|
6
6
|
import { StrictMode, Suspense, createContext, use, useCallback, useContext, useEffect, useInsertionEffect, useMemo, useRef, useState, useSyncExternalStore, useTransition } from "react";
|
|
7
7
|
import { ErrorBoundary, getErrorMessage } from "react-error-boundary";
|
|
8
8
|
import { SDK_CHANNEL_NAME, SDK_NODE_NAME } from "@sanity/message-protocol";
|
|
9
9
|
import { getOrCreateChannel, getOrCreateController, releaseChannel } from "@sanity/sdk/comlink";
|
|
10
|
-
import { EMPTY, Observable, distinctUntilChanged, filter, firstValueFrom,
|
|
10
|
+
import { EMPTY, Observable, distinctUntilChanged, filter, firstValueFrom, identity, startWith, switchMap } from "rxjs";
|
|
11
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
import { catchError, switchMap as switchMap$1 } from "rxjs/operators";
|
|
13
12
|
import { createRoot } from "react-dom/client";
|
|
14
13
|
import { agentGenerate, agentPatch, agentPrompt, agentTransform, agentTranslate } from "@sanity/sdk/agent";
|
|
15
|
-
import "groq";
|
|
16
14
|
import "@sanity/types";
|
|
17
15
|
export * from "@sanity/sdk";
|
|
18
16
|
/**
|
|
19
|
-
* @internal
|
|
20
|
-
* A React hook that subscribes to authentication state changes.
|
|
21
|
-
*
|
|
22
|
-
* This hook provides access to the current authentication state type from the Sanity auth store.
|
|
23
|
-
* It automatically re-renders when the authentication state changes.
|
|
24
|
-
*
|
|
25
|
-
* @remarks
|
|
26
|
-
* The hook uses `useSyncExternalStore` to safely subscribe to auth state changes
|
|
27
|
-
* and ensure consistency between server and client rendering.
|
|
28
|
-
*
|
|
29
|
-
* @returns The current authentication state type
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```tsx
|
|
33
|
-
* function AuthStatus() {
|
|
34
|
-
* const authState = useAuthState()
|
|
35
|
-
* return <div>Current auth state: {authState}</div>
|
|
36
|
-
* }
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
const useAuthState = createStateSourceHook(getAuthState);
|
|
40
|
-
/**
|
|
41
17
|
* Component that handles token refresh in dashboard mode
|
|
42
18
|
*/
|
|
43
|
-
function DashboardTokenRefresh
|
|
19
|
+
function DashboardTokenRefresh(t0) {
|
|
44
20
|
let $ = c(14), { children } = t0, instance = useSanityInstance(), isTokenRefreshInProgress = useRef(!1), timeoutRef = useRef(null), processed401ErrorRef = useRef(null), authState = useAuthState(), t1;
|
|
45
21
|
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = () => {
|
|
46
22
|
timeoutRef.current &&= (clearTimeout(timeoutRef.current), null);
|
|
@@ -92,87 +68,6 @@ function _temp$8(div) {
|
|
|
92
68
|
const ComlinkTokenRefreshProvider = (t0) => {
|
|
93
69
|
let $ = c(2), { children } = t0, instance = useSanityInstance(), isInDashboard = getIsInDashboardState(instance).getCurrent(), isStudio = isStudioConfig(instance.config);
|
|
94
70
|
if (isInDashboard && !isStudio) {
|
|
95
|
-
let t1;
|
|
96
|
-
return $[0] === children ? t1 = $[1] : (t1 = /* @__PURE__ */ jsx(DashboardTokenRefresh$1, { children }), $[0] = children, $[1] = t1), t1;
|
|
97
|
-
}
|
|
98
|
-
return children;
|
|
99
|
-
}, OS_BUS_KEY = Symbol.for("sanity.os.bus");
|
|
100
|
-
/**
|
|
101
|
-
* Whether this app is running as a federated remote inside the dashboard.
|
|
102
|
-
*
|
|
103
|
-
* Federation shares the host's realm, so the installed bus is visible on
|
|
104
|
-
* `globalThis`. This is `false` in a standalone app, where we must never import
|
|
105
|
-
* `@sanity/workbench` (it would install a bus and add bundle weight for no
|
|
106
|
-
* reason). Note: this is a different embedding model to the Core UI iframe,
|
|
107
|
-
* which is detected separately via the dashboard context — that signal is not
|
|
108
|
-
* set on the federation path.
|
|
109
|
-
*
|
|
110
|
-
* @internal
|
|
111
|
-
*/
|
|
112
|
-
function isDashboardEnvironment() {
|
|
113
|
-
return typeof globalThis == "object" && OS_BUS_KEY in globalThis;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Observes the session token issued by the dashboard "OS", tracking the OS auth
|
|
117
|
-
* state over time.
|
|
118
|
-
*
|
|
119
|
-
* Returns `undefined` when the app is not embedded in the dashboard, so the
|
|
120
|
-
* caller uses its normal auth flow. Inside the dashboard, subscribes to the
|
|
121
|
-
* `auth.token` state topic, emitting the current token — or `null` when the OS
|
|
122
|
-
* is signed out — and re-emitting as the OS auth state changes, so sign-in/out
|
|
123
|
-
* propagates instead of being captured once. Any bus error is treated as "no
|
|
124
|
-
* token" (`null`). The token is used in-memory only and never persisted.
|
|
125
|
-
*
|
|
126
|
-
* @internal
|
|
127
|
-
*/
|
|
128
|
-
function observeDashboardToken() {
|
|
129
|
-
if (isDashboardEnvironment()) return from(import("@sanity/workbench")).pipe(switchMap$1(({ os }) => os.subscribe("auth.token")), catchError(() => of(null)));
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Asks the dashboard "OS" to reissue the session token, e.g. after its current
|
|
133
|
-
* one was rejected with a 401. Fire-and-forget: the reissued token arrives via
|
|
134
|
-
* the `auth.token` subscription in {@link observeDashboardToken}. No-op outside
|
|
135
|
-
* the dashboard.
|
|
136
|
-
*
|
|
137
|
-
* @internal
|
|
138
|
-
*/
|
|
139
|
-
function refreshDashboardToken() {
|
|
140
|
-
isDashboardEnvironment() && import("@sanity/workbench").then(({ os }) => os.emit("auth.token.refresh", void 0), () => {});
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Keeps the SDK auth token in sync with the dashboard "OS".
|
|
144
|
-
*
|
|
145
|
-
* When running as a federated remote inside the dashboard the OS owns the
|
|
146
|
-
* session, so we subscribe to its `auth.token` stream and mirror each value into
|
|
147
|
-
* the auth store — a token logs us in, `null` logs us out, and later OS
|
|
148
|
-
* sign-in/out propagates automatically. When a request is rejected with a 401
|
|
149
|
-
* (the token expired), we ask the OS to reissue rather than tearing the session
|
|
150
|
-
* down; the new token arrives back through the same subscription.
|
|
151
|
-
*/
|
|
152
|
-
function DashboardTokenRefresh(t0) {
|
|
153
|
-
let $ = c(8), { children } = t0, instance = useSanityInstance(), authState = useAuthState(), processed401ErrorRef = useRef(null), t1, t2;
|
|
154
|
-
$[0] === instance ? (t1 = $[1], t2 = $[2]) : (t1 = () => {
|
|
155
|
-
let token$ = observeDashboardToken();
|
|
156
|
-
if (!token$) return;
|
|
157
|
-
let subscription = token$.subscribe((token) => setAuthToken(instance, token));
|
|
158
|
-
return () => subscription.unsubscribe();
|
|
159
|
-
}, t2 = [instance], $[0] = instance, $[1] = t1, $[2] = t2), useEffect(t1, t2);
|
|
160
|
-
let t3;
|
|
161
|
-
$[3] !== authState.error || $[4] !== authState.type ? (t3 = () => {
|
|
162
|
-
let has401Error = authState.type === AuthStateType.ERROR && authState.error?.statusCode === 401;
|
|
163
|
-
has401Error && processed401ErrorRef.current !== authState.error ? (processed401ErrorRef.current = authState.error, refreshDashboardToken()) : has401Error || (processed401ErrorRef.current = null);
|
|
164
|
-
}, $[3] = authState.error, $[4] = authState.type, $[5] = t3) : t3 = $[5];
|
|
165
|
-
let t4;
|
|
166
|
-
return $[6] === authState ? t4 = $[7] : (t4 = [authState], $[6] = authState, $[7] = t4), useEffect(t3, t4), children;
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* Provides dashboard OS token refresh. No-op outside the dashboard, where the
|
|
170
|
-
* app uses its normal auth flow.
|
|
171
|
-
* @internal
|
|
172
|
-
*/
|
|
173
|
-
const DashboardTokenRefreshProvider = (t0) => {
|
|
174
|
-
let $ = c(2), { children } = t0;
|
|
175
|
-
if (isDashboardEnvironment()) {
|
|
176
71
|
let t1;
|
|
177
72
|
return $[0] === children ? t1 = $[1] : (t1 = /* @__PURE__ */ jsx(DashboardTokenRefresh, { children }), $[0] = children, $[1] = t1), t1;
|
|
178
73
|
}
|
|
@@ -722,11 +617,11 @@ async function resolveOrgResources(instance, organizationId) {
|
|
|
722
617
|
apiVersion: "v2026-07-09",
|
|
723
618
|
scope: "global"
|
|
724
619
|
}).observable), [mediaLibrariesResult, canvasesResult] = await Promise.allSettled([client.request({
|
|
725
|
-
|
|
620
|
+
url: "/media-libraries",
|
|
726
621
|
query: { organizationId },
|
|
727
622
|
tag: "org-resources.media-libraries"
|
|
728
623
|
}), client.request({
|
|
729
|
-
|
|
624
|
+
url: "/canvases",
|
|
730
625
|
query: { organizationId },
|
|
731
626
|
tag: "org-resources.canvases"
|
|
732
627
|
})]), mediaLibraryId = getFirstResourceId(mediaLibrariesResult), canvasId = getFirstResourceId(canvasesResult);
|
|
@@ -2592,7 +2487,7 @@ function useApplyActions() {
|
|
|
2592
2487
|
* perspective: {releaseName: 'summer-drop'},
|
|
2593
2488
|
* })
|
|
2594
2489
|
*
|
|
2595
|
-
* apply(editDocument(docHandle, {title: 'Updated for release'}))
|
|
2490
|
+
* apply(editDocument(docHandle, {set: {title: 'Updated for release'}}))
|
|
2596
2491
|
* }
|
|
2597
2492
|
*
|
|
2598
2493
|
* return <button onClick={handleEdit}>Edit in Release</button>
|
|
@@ -2645,7 +2540,7 @@ function useCreateDocument(options) {
|
|
|
2645
2540
|
trackHookUsage(useSanityInstance(), "useCreateDocument");
|
|
2646
2541
|
let apply = useApplyDocumentActions(), t0;
|
|
2647
2542
|
return $[0] !== apply || $[1] !== options ? (t0 = async (initialValue, overrides) => {
|
|
2648
|
-
let documentId = overrides?.documentId ?? options.documentId ??
|
|
2543
|
+
let documentId = overrides?.documentId ?? options.documentId ?? randomUuid(), handle = {
|
|
2649
2544
|
...options,
|
|
2650
2545
|
documentId
|
|
2651
2546
|
};
|
|
@@ -4117,7 +4012,7 @@ function useUsers(options) {
|
|
|
4117
4012
|
loadMore
|
|
4118
4013
|
}, $[20] = data, $[21] = hasMore, $[22] = isPending, $[23] = loadMore, $[24] = t8) : t8 = $[24], t8;
|
|
4119
4014
|
}
|
|
4120
|
-
var version = "3.
|
|
4015
|
+
var version = "3.2.0";
|
|
4121
4016
|
function getEnv(key) {
|
|
4122
4017
|
if (import.meta.env) return import.meta.env[key];
|
|
4123
4018
|
if (typeof process < "u" && process.env) return process.env[key];
|