@sanity/sdk-react 3.10.0 → 3.11.0-next.20261028095623
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Application, ApplicationBase, ApplicationWorkspace, DocumentHandle, Installation, InstallationInclude } 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, 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";
|
|
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, MessageBusErrorDetails, 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
|
/**
|
|
@@ -1025,5 +1025,5 @@ interface WorkerClient<T extends WorkerTypes = WorkerTypes> {
|
|
|
1025
1025
|
* @category Dashboard
|
|
1026
1026
|
*/
|
|
1027
1027
|
export declare function useWorker<T extends WorkerTypes = WorkerTypes>(name: string): WorkerClient<T>;
|
|
1028
|
-
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 DashboardApplicationBase, type DashboardInstallation, 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, type WorkerClient, type WorkerTypes, capabilities, connectMessageBus };
|
|
1028
|
+
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 DashboardApplicationBase, type DashboardInstallation, 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 MessageBusErrorDetails, 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, type WorkerClient, type WorkerTypes, capabilities, connectMessageBus };
|
|
1029
1029
|
//# sourceMappingURL=dashboard.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -4371,7 +4371,7 @@ function useUsers(options) {
|
|
|
4371
4371
|
loadMore
|
|
4372
4372
|
}, $[20] = data, $[21] = hasMore, $[22] = isPending, $[23] = loadMore, $[24] = totalCount, $[25] = t8) : t8 = $[25], t8;
|
|
4373
4373
|
}
|
|
4374
|
-
var version = "3.
|
|
4374
|
+
var version = "3.11.0-next.20261028095623";
|
|
4375
4375
|
function getEnv(key) {
|
|
4376
4376
|
if (import.meta.env) return import.meta.env[key];
|
|
4377
4377
|
if (typeof process < "u" && process.env) return process.env[key];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/sdk-react",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.11.0-next.20261028095623",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Sanity SDK React toolkit for Content OS",
|
|
6
6
|
"keywords": [
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@module-federation/runtime": "^2.9.2",
|
|
46
46
|
"@sanity/client": "^8.11.0",
|
|
47
47
|
"@sanity/message-protocol": "^0.24.0",
|
|
48
|
-
"@sanity/sdk": "3.
|
|
48
|
+
"@sanity/sdk": "3.11.0-next.20261028095623",
|
|
49
49
|
"@sanity/types": "^6.20.0",
|
|
50
50
|
"react-compiler-runtime": "^1.0.0",
|
|
51
51
|
"react-error-boundary": "^6.1.6",
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
type MessageBusEmitResult,
|
|
12
12
|
type MessageBusError,
|
|
13
13
|
type MessageBusErrorCode,
|
|
14
|
+
type MessageBusErrorDetails,
|
|
14
15
|
type MessageBusHost,
|
|
15
16
|
type MessageBusMessage,
|
|
16
17
|
type MessageBusMeta,
|
|
@@ -54,6 +55,8 @@ test('dashboard entrypoint exposes the message bus public types', () => {
|
|
|
54
55
|
|
|
55
56
|
// The error code can be named when switching on `MessageBusError.code`.
|
|
56
57
|
expectTypeOf<MessageBusError['code']>().toEqualTypeOf<MessageBusErrorCode>()
|
|
58
|
+
// A refusal's fix and docs link can be typed when passing them to `reject`.
|
|
59
|
+
expectTypeOf<MessageBusErrorDetails['fix']>().toEqualTypeOf<string | undefined>()
|
|
57
60
|
|
|
58
61
|
// Event handlers and operation options can be typed explicitly.
|
|
59
62
|
expectTypeOf<MessageBusMessage<{n: number}, string>['payload']>().toEqualTypeOf<{n: number}>()
|