@sanity/sdk-react 3.4.0-rc.0 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/_exports/dashboard.d.ts +112 -34
  2. package/dist/_exports/dashboard.d.ts.map +1 -1
  3. package/dist/_exports/dashboard.js +219 -114
  4. package/dist/_exports/dashboard.js.map +1 -1
  5. package/dist/index.d.ts +21 -141
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +66 -147
  8. package/dist/index.js.map +1 -1
  9. package/dist/{useStudioWorkspacesByProjectIdDataset-B5A5kBH9.js → useStudioWorkspacesByProjectIdDataset-Bjwi4cLk.js} +60 -3
  10. package/dist/useStudioWorkspacesByProjectIdDataset-Bjwi4cLk.js.map +1 -0
  11. package/package.json +9 -9
  12. package/src/_exports/dashboard.test-d.ts +3 -0
  13. package/src/_exports/dashboard.ts +11 -2
  14. package/src/_exports/sdk-react.ts +0 -3
  15. package/src/components/auth/AuthBoundary.test.tsx +2 -81
  16. package/src/components/auth/AuthBoundary.tsx +3 -17
  17. package/src/components/auth/LoginCallback.test.tsx +7 -46
  18. package/src/components/auth/LoginCallback.tsx +4 -22
  19. package/src/hooks/dashboard/useAgentResourceContext.test.tsx +67 -2
  20. package/src/hooks/dashboard/useAgentResourceContext.ts +35 -6
  21. package/src/hooks/dashboard/useApplicationContext.test.tsx +95 -0
  22. package/src/hooks/dashboard/useApplicationContext.ts +47 -0
  23. package/src/hooks/dashboard/useCapabilities.test.tsx +84 -0
  24. package/src/hooks/dashboard/useCapabilities.ts +27 -0
  25. package/src/hooks/dashboard/useNavigate.test.ts +392 -5
  26. package/src/hooks/dashboard/useNavigate.ts +169 -26
  27. package/src/hooks/dashboard/useNavigateToStudioDocument.test.ts +116 -9
  28. package/src/hooks/dashboard/useNavigateToStudioDocument.ts +110 -39
  29. package/src/hooks/dashboard/useRecordDocumentHistoryEvent.test.ts +99 -1
  30. package/src/hooks/dashboard/useRecordDocumentHistoryEvent.ts +73 -2
  31. package/dist/useStudioWorkspacesByProjectIdDataset-B5A5kBH9.js.map +0 -1
  32. package/src/hooks/auth/useHandleOAuthCallback.test.tsx +0 -16
  33. package/src/hooks/auth/useHandleOAuthCallback.tsx +0 -49
  34. package/src/hooks/auth/useOAuthAuthorize.test.tsx +0 -16
  35. package/src/hooks/auth/useOAuthAuthorize.tsx +0 -28
  36. package/src/hooks/auth/useOAuthTokens.test.tsx +0 -240
  37. package/src/hooks/auth/useOAuthTokens.tsx +0 -95
@@ -1,7 +1,7 @@
1
1
  import { Application, ApplicationBase, DocumentHandle } from "@sanity/sdk";
2
2
  import React, { PropsWithChildren } from "react";
3
3
  import { PathChangeMessage } from "@sanity/message-protocol";
4
- import { ApplicationConfig, ApplicationConfig as ApplicationConfig$1, ApplicationConfigAppType, ApplicationConfigAppType as ApplicationConfigAppType$1, ConnectMessageBusOptions, DashboardTopics, EventTopic, EventTopic as EventTopic$1, EventTopicDef, MessageBus, MessageBusAbortOptions, MessageBusClient, MessageBusConnection, MessageBusEmitOptions, MessageBusEmitOptions as MessageBusEmitOptions$1, MessageBusEmitResult, MessageBusEmitResult as MessageBusEmitResult$1, MessageBusError, MessageBusErrorCode, MessageBusHost, MessageBusMessage, MessageBusMeta, MessageBusQueryOptions, MessageBusStateSource, NavigationLocation, NavigationTarget, PayloadOf, PayloadOf as PayloadOf$1, RemoteModuleRef, RemoteModuleRef as RemoteModuleRef$1, ReplyOf, ReplyOf as ReplyOf$1, StateTopic, StateTopic as StateTopic$1, StateTopicDef, TopicData, TopicData as TopicData$1, TopicError, TopicName, TopicResult, Topics, ValueOf, ValueOf as ValueOf$1, connectMessageBus } from "@sanity/sdk/dashboard";
4
+ import { ApplicationConfig, ApplicationConfig as ApplicationConfig$1, ApplicationConfigAppType, ApplicationConfigAppType as ApplicationConfigAppType$1, ApplicationContext, ApplicationContext as ApplicationContext$1, Capability, CapabilityRecord, ConnectMessageBusOptions, DashboardTopics, EventTopic, EventTopic as EventTopic$1, EventTopicDef, MessageBus, MessageBusAbortOptions, MessageBusClient, MessageBusConnection, MessageBusEmitOptions, MessageBusEmitOptions as MessageBusEmitOptions$1, MessageBusEmitResult, MessageBusEmitResult as MessageBusEmitResult$1, MessageBusError, MessageBusErrorCode, MessageBusHost, MessageBusMessage, MessageBusMeta, MessageBusQueryOptions, MessageBusStateSource, NavigationLocation, NavigationTarget, PayloadOf, PayloadOf as PayloadOf$1, RemoteModuleRef, RemoteModuleRef as RemoteModuleRef$1, ReplyOf, ReplyOf as ReplyOf$1, StateTopic, StateTopic as StateTopic$1, StateTopicDef, TopicData, TopicData as TopicData$1, TopicError, TopicName, TopicResult, Topics, ValueOf, ValueOf as ValueOf$1, capabilities, connectMessageBus } from "@sanity/sdk/dashboard";
5
5
  import { CurrentUser as CurrentUser$1 } from "@sanity/types";
6
6
  import { UserOptions } from "@module-federation/runtime/types";
7
7
  /**
@@ -300,12 +300,14 @@ interface AgentResourceContextOptions {
300
300
  }
301
301
  /**
302
302
  * @public
303
- * Hook for emitting agent resource context updates to the Dashboard.
304
- * This allows the Agent to understand what resource the user is currently
305
- * interacting with (e.g., which document they're editing).
303
+ * Hook for reporting the resource the user is currently interacting with (for example, which
304
+ * document they're editing) so the Agent can understand their context. The hook reports on mount
305
+ * and again whenever the context changes.
306
306
  *
307
- * The hook will automatically emit the context when it changes, and also
308
- * emit the initial context when the hook is first mounted.
307
+ * The two Dashboard runtimes differ in transport, but the signature is the same:
308
+ * - In an iframe (Comlink), it emits the `dashboard/v1/events/agent/resource/update` event.
309
+ * - In a federated app (message bus), it publishes {@link useApplicationContext}'s
310
+ * `applications.context.update` topic. Reach for `useApplicationContext` directly in new code.
309
311
  *
310
312
  * @category Agent
311
313
  * @param options - The resource context options containing projectId, dataset, and optional documentId
@@ -463,6 +465,39 @@ export declare function useApplicationConfig(selector: ApplicationConfigSelector
463
465
  * @public
464
466
  */
465
467
  export declare function useApplicationConfigs(): readonly ApplicationConfig$1[];
468
+ /**
469
+ * Publishes what this application is currently showing to the Dashboard message bus, so the host
470
+ * can hold the foreground application's context. Pass `null` when nothing is open.
471
+ *
472
+ * The context is published on mount and whenever it changes, and cleared with `null` on unmount.
473
+ * A change publishes `null` before the new context, as the component has stopped showing the old
474
+ * one. Pass a memoised value: the hook compares by reference, so a new object on every render
475
+ * republishes on every render.
476
+ *
477
+ * The host reads the sending application from `message.meta.appId`, so the payload carries no
478
+ * application ID.
479
+ *
480
+ * @param context - The application context to publish, or `null` to clear it
481
+ *
482
+ * @example
483
+ * ```tsx
484
+ * import {useApplicationContext} from '@sanity/sdk-react/dashboard'
485
+ * import {useMemo} from 'react'
486
+ *
487
+ * function DocumentView({documentId}: {documentId: string}) {
488
+ * const context = useMemo(
489
+ * () => ({resource: {id: 'my-project.production', type: 'dataset' as const}, document: {id: documentId}}),
490
+ * [documentId],
491
+ * )
492
+ * useApplicationContext(context)
493
+ * return <div>Editing {documentId}</div>
494
+ * }
495
+ * ```
496
+ *
497
+ * @public
498
+ * @category Dashboard
499
+ */
500
+ export declare function useApplicationContext(context: ApplicationContext$1 | null): void;
466
501
  /**
467
502
  * Returns the id of the application in the foreground, or `null` when Dashboard has none.
468
503
  *
@@ -495,6 +530,27 @@ export declare function useApplicationForegroundId(): Application['id'] | null;
495
530
  * @public
496
531
  */
497
532
  export declare function useAuthToken(): string | null;
533
+ /**
534
+ * Returns the capabilities the host provides.
535
+ *
536
+ * A capability is something the host provides; an application reads this record to hide its own
537
+ * implementation of anything the host provides, or to skip publishing to a capability the host
538
+ * does not have. A missing key means the host does not provide that capability.
539
+ *
540
+ * Suspends until the host publishes the record.
541
+ *
542
+ * @example
543
+ * ```tsx
544
+ * function UserMenu() {
545
+ * const {globalUserMenu} = useCapabilities()
546
+ * if (globalUserMenu) return null
547
+ * return <LocalUserMenu />
548
+ * }
549
+ * ```
550
+ *
551
+ * @public
552
+ */
553
+ export declare function useCapabilities(): TopicData$1<'applications.capabilities'>;
498
554
  /**
499
555
  * Returns the signed-in user, or `null` while signed out.
500
556
  *
@@ -565,50 +621,69 @@ type TopicEmitter<K extends EventTopic$1> = (...args: PayloadOf$1<K> extends voi
565
621
  * @public
566
622
  */
567
623
  export declare function useEmit<K extends EventTopic$1>(topic: K): TopicEmitter<K>;
624
+ /**
625
+ * A navigation the Dashboard asks the app to perform, or that the app reports to the Dashboard.
626
+ * `path` is relative to the app's own route, with no leading slash (`'documents/abc'`), and may
627
+ * carry a query string and hash.
628
+ * @public
629
+ */
630
+ type DashboardNavigation = PathChangeMessage['data'];
631
+ /**
632
+ * Reports an in-app navigation to the Dashboard so the browser URL and the Dashboard's own
633
+ * router follow the app. `type` defaults to `'push'` and only applies in the federated runtime;
634
+ * see {@link useNavigate}.
635
+ * @public
636
+ */
637
+ type NavigateToDashboardPath = (options: {
638
+ path: string;
639
+ type?: 'push' | 'replace';
640
+ }) => void;
568
641
  /**
569
642
  * @public
570
643
  *
571
644
  * A helper hook designed to be injected into routing components for apps within the Dashboard.
572
- * While the Dashboard can usually handle navigation, there are special cases when you
573
- * are already within a target app, and need to navigate to another route inside of that app.
574
- *
575
- * For example, your user might "favorite" a document inside of your application.
576
- * If they click on the Dashboard favorites item in the sidebar, and are already within your application,
577
- * there needs to be some way for the dashboard to signal to your application to reroute to where that document was favorited.
578
- *
579
- * This hook is intended to receive those messages, and takes a function to route to the correct path.
645
+ * It keeps the app's router and the Dashboard in two-way sync: `navigateFn` receives the
646
+ * navigations the Dashboard asks the app to perform, and the returned function reports the app's
647
+ * own in-app navigations back to the Dashboard so the browser URL and the Dashboard's router
648
+ * follow along.
649
+ *
650
+ * A navigation the app reports is not echoed back through `navigateFn`. The returned function is
651
+ * referentially stable.
652
+ *
653
+ * The two Dashboard runtimes differ:
654
+ * - In an iframe (Comlink), inbound `type` may be `'push'`, `'replace'` or `'pop'`. Reporting is
655
+ * optional because the bridge already forwards the iframe's own `pushState`; a reported `type`
656
+ * is ignored and the host applies the URL as a `replace`.
657
+ * - In a federated app (message bus), inbound `type` is `'push'` or `'replace'`; `'pop'` is never
658
+ * sent. Reporting is required because the app's router does not reach the host, and `type` is
659
+ * honoured. Until the Dashboard publishes the app's base path, reports are dropped with a
660
+ * console warning.
580
661
  *
581
662
  * @param navigateFn - Function to handle navigation; should accept:
582
663
  * - `path`: a string, which will be a relative path (for example, 'my-route')
583
664
  * - `type`: 'push', 'replace', or 'pop', which will be the type of navigation to perform
665
+ * @returns A function the app calls to report its own in-app navigations to the Dashboard.
584
666
  *
585
667
  * @example
586
668
  * ```tsx
587
669
  * import {useNavigate} from '@sanity/sdk-react/dashboard'
588
- * import {BrowserRouter, useNavigate as useRouterNavigate} from 'react-router'
589
- * import {Suspense} from 'react'
590
- *
591
- * function DashboardNavigationHandler() {
592
- * const navigate = useRouterNavigate()
593
- * useNavigate(({path, type}) => {
594
- * navigate(path, {replace: type === 'replace'})
670
+ * import {useEffect} from 'react'
671
+ * import {useLocation, useNavigate as useRouterNavigate} from 'react-router'
672
+ *
673
+ * function DashboardNavigationSync() {
674
+ * const routerNavigate = useRouterNavigate()
675
+ * const {pathname, search, hash} = useLocation()
676
+ * const navigate = useNavigate(({path, type}) => {
677
+ * routerNavigate(path, {replace: type === 'replace'})
595
678
  * })
679
+ * useEffect(() => {
680
+ * navigate({path: `${pathname.slice(1)}${search}${hash}`})
681
+ * }, [navigate, pathname, search, hash])
596
682
  * return null
597
683
  * }
598
- *
599
- * // Wrap the component with Suspense since the hook may suspend
600
- * function MyApp() {
601
- * return (
602
- * <BrowserRouter>
603
- * <Suspense>
604
- * <DashboardNavigationHandler />
605
- * </Suspense>
606
- * </BrowserRouter>
607
- * )
608
- * }
609
684
  * ```
610
685
  */
611
- export declare function useNavigate(navigateFn: (options: PathChangeMessage['data']) => void): void;
686
+ export declare function useNavigate(navigateFn: (options: DashboardNavigation) => void): NavigateToDashboardPath;
612
687
  /**
613
688
  * @public
614
689
  * @category Types
@@ -624,6 +699,9 @@ interface NavigateToStudioResult {
624
699
  * Uses the `projectId` and `dataset` properties of the {@link DocumentHandle} you provide to resolve the correct Studio.
625
700
  * This will only work if you have deployed a studio with a workspace with this `projectId` / `dataset` combination.
626
701
  *
702
+ * Works in both Dashboard runtimes: it sends the navigation over the Comlink connection in the
703
+ * iframe runtime and over the message bus in the federated runtime.
704
+ *
627
705
  * @remarks If you write your own Document Handle to pass to this hook (as opposed to a Document Handle generated by another hook),
628
706
  * it must include values for `documentId`, `documentType`, `projectId`, and `dataset`.
629
707
  *
@@ -752,5 +830,5 @@ export declare const useTopic: <K extends StateTopic$1>(topic: K) => TopicData$1
752
830
  * @public
753
831
  */
754
832
  export declare function useWindowTitle(viewTitle?: string): void;
755
- export { type AgentResourceContextOptions, type ApplicationConfig, type ApplicationConfigAppType, type ApplicationConfigSelector, type CanvasUrl, type ConnectMessageBusOptions, type CoreApplicationUrl, type CreateIntentParameters, type CreateRemoteInstanceOptions, type DashboardApplication, type DashboardTopics, type DashboardUrl, type DashboardView, type DashboardWebWorker, type EditIntentParameters, type EventTopic, type EventTopicDef, type FederationRemote, type MediaLibraryUrl, type MessageBus, type MessageBusAbortOptions, type MessageBusClient, type MessageBusConnection, type MessageBusEmitOptions, type MessageBusEmitResult, MessageBusError, type MessageBusErrorCode, type MessageBusHost, type MessageBusMessage, type MessageBusMeta, type MessageBusQueryOptions, type MessageBusStateSource, type NavigateToStudioResult, type NavigationLocation, type NavigationTarget, type PayloadOf, type ReleaseIntentParameters, type RemoteInstance, type RemoteModuleRef, type ReplyOf, type StateTopic, type StateTopicDef, type StudioIntentUrl, type StudioUrl, type StudioWorkspaceUrl, DashboardTokenRefreshProvider as TokenRefreshProvider, type TopicData, type TopicEmitter, TopicError, type TopicName, type TopicResult, type Topics, type Urls, type ValueOf, connectMessageBus };
833
+ export { type AgentResourceContextOptions, type ApplicationConfig, type ApplicationConfigAppType, type ApplicationConfigSelector, type ApplicationContext, type CanvasUrl, type Capability, type CapabilityRecord, type ConnectMessageBusOptions, type CoreApplicationUrl, type CreateIntentParameters, type CreateRemoteInstanceOptions, type DashboardApplication, type DashboardNavigation, type DashboardTopics, type DashboardUrl, type DashboardView, type DashboardWebWorker, type EditIntentParameters, type EventTopic, type EventTopicDef, type FederationRemote, type MediaLibraryUrl, type MessageBus, type MessageBusAbortOptions, type MessageBusClient, type MessageBusConnection, type MessageBusEmitOptions, type MessageBusEmitResult, MessageBusError, type MessageBusErrorCode, type MessageBusHost, type MessageBusMessage, type MessageBusMeta, type MessageBusQueryOptions, type MessageBusStateSource, type NavigateToDashboardPath, type NavigateToStudioResult, type NavigationLocation, type NavigationTarget, type PayloadOf, type ReleaseIntentParameters, type RemoteInstance, type RemoteModuleRef, type ReplyOf, type StateTopic, type StateTopicDef, type StudioIntentUrl, type StudioUrl, type StudioWorkspaceUrl, DashboardTokenRefreshProvider as TokenRefreshProvider, type TopicData, type TopicEmitter, TopicError, type TopicName, type TopicResult, type Topics, type Urls, type ValueOf, capabilities, connectMessageBus };
756
834
  //# sourceMappingURL=dashboard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dashboard.d.ts","names":[],"sources":["../../src/context/DashboardTokenRefresh.tsx","../../src/dashboard/createRemoteInstance.ts","../../src/dashboard/urlFor.ts","../../src/hooks/dashboard/useAgentResourceContext.ts","../../src/hooks/dashboard/useApplications.ts","../../src/hooks/dashboard/useApplication.ts","../../src/hooks/dashboard/useApplicationBasePath.ts","../../src/hooks/dashboard/useApplicationConfig.ts","../../src/hooks/dashboard/useApplicationConfigs.ts","../../src/hooks/dashboard/useApplicationForegroundId.ts","../../src/hooks/dashboard/useAuthToken.ts","../../src/hooks/dashboard/useCurrentUser.ts","../../src/hooks/dashboard/useEmit.ts","../../src/hooks/dashboard/useNavigate.ts","../../src/hooks/dashboard/useNavigateToStudioDocument.ts","../../src/hooks/dashboard/useOrganizationId.tsx","../../src/hooks/dashboard/useRemoteClient.ts","../../src/hooks/dashboard/useTopic.ts","../../src/hooks/dashboard/useWindowTitle.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CvBtD,YAAY,aAAa,SAAS;;;;;UCjCjC;EACf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAgDc,4BACd,gBAAgB,gBAChB,8BACC;;;;;;;;;;;;;;;;;;;;;;;wBCpCa;;;;;;qBCrBH,uBAAuB;;;;;;;;;;;;;;;;;;qBCavB,WAMN,UAAU,cAAY,OAAO,MAAM,YAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBC4CpC,eAAe"}
1
+ {"version":3,"file":"dashboard.d.ts","names":[],"sources":["../../src/context/DashboardTokenRefresh.tsx","../../src/dashboard/createRemoteInstance.ts","../../src/dashboard/urlFor.ts","../../src/hooks/dashboard/useAgentResourceContext.ts","../../src/hooks/dashboard/useApplications.ts","../../src/hooks/dashboard/useApplication.ts","../../src/hooks/dashboard/useApplicationBasePath.ts","../../src/hooks/dashboard/useApplicationConfig.ts","../../src/hooks/dashboard/useApplicationConfigs.ts","../../src/hooks/dashboard/useApplicationContext.ts","../../src/hooks/dashboard/useApplicationForegroundId.ts","../../src/hooks/dashboard/useAuthToken.ts","../../src/hooks/dashboard/useCapabilities.ts","../../src/hooks/dashboard/useCurrentUser.ts","../../src/hooks/dashboard/useEmit.ts","../../src/hooks/dashboard/useNavigate.ts","../../src/hooks/dashboard/useNavigateToStudioDocument.ts","../../src/hooks/dashboard/useOrganizationId.tsx","../../src/hooks/dashboard/useRemoteClient.ts","../../src/hooks/dashboard/useTopic.ts","../../src/hooks/dashboard/useWindowTitle.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+Fa,+BAA+B,MAAM,GAAG;KCxFhD,aAAa,GAAG,gBAAgB,KAAK,KAAK,GAAG,KAAK,QAAQ,KAAK,GAAG;;;;KAK3D;EACV;EACA;;;;;KAcU,8BAA8B,aACxC,KAAK;;;;UAOU;EACf,gBAAgB,SAAS;;EAEzB,WAAW,GAAG,aAAa,QAAQ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