@dxos/react-client 0.8.2-main.fbd8ed0 → 0.8.2-staging.7ac8446
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/lib/browser/echo/index.mjs +60 -122
- package/dist/lib/browser/echo/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node/echo/index.cjs +57 -119
- package/dist/lib/node/echo/index.cjs.map +4 -4
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node-esm/echo/index.mjs +60 -122
- package/dist/lib/node-esm/echo/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/banner.d.ts.map +1 -1
- package/dist/types/src/client/AgentHostingProvider.d.ts.map +1 -1
- package/dist/types/src/client/useClientStatus.d.ts.map +1 -1
- package/dist/types/src/devtools/useStream.d.ts.map +1 -1
- package/dist/types/src/echo/index.d.ts +1 -2
- package/dist/types/src/echo/index.d.ts.map +1 -1
- package/dist/types/src/echo/useMembers.d.ts.map +1 -1
- package/dist/types/src/echo/useQuery.d.ts +2 -10
- package/dist/types/src/echo/useQuery.d.ts.map +1 -1
- package/dist/types/src/echo/useQueue.d.ts +2 -2
- package/dist/types/src/echo/useQueue.d.ts.map +1 -1
- package/dist/types/src/echo/useSchema.d.ts +2 -2
- package/dist/types/src/echo/useSchema.d.ts.map +1 -1
- package/dist/types/src/echo/useSpaceInvitations.d.ts.map +1 -1
- package/dist/types/src/echo/useSpaces.d.ts.map +1 -1
- package/dist/types/src/echo/useSubscription.d.ts.map +1 -1
- package/dist/types/src/halo/useHaloInvitations.d.ts.map +1 -1
- package/dist/types/src/halo/useKeyStore.d.ts.map +1 -1
- package/dist/types/src/invitations/useInvitationStatus.d.ts.map +1 -1
- package/dist/types/src/testing/ClientRepeater.d.ts.map +1 -1
- package/dist/types/src/testing/util.d.ts.map +1 -1
- package/dist/types/src/testing/withClientProvider.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +23 -28
- package/project.json +1 -2
- package/src/client/useConfig.test.tsx +1 -1
- package/src/echo/index.ts +1 -2
- package/src/echo/useQuery.ts +25 -27
- package/src/echo/useQueue.ts +2 -3
- package/src/echo/useSchema.ts +5 -4
- package/tsconfig.json +0 -3
- package/dist/types/src/echo/useSyncState.d.ts +0 -10
- package/dist/types/src/echo/useSyncState.d.ts.map +0 -1
- package/src/echo/useSyncState.ts +0 -78
- package/typedoc/.nojekyll +0 -1
- package/typedoc/assets/hierarchy.js +0 -1
- package/typedoc/assets/highlight.css +0 -99
- package/typedoc/assets/icons.js +0 -18
- package/typedoc/assets/icons.svg +0 -1
- package/typedoc/assets/main.js +0 -60
- package/typedoc/assets/navigation.js +0 -1
- package/typedoc/assets/search.js +0 -1
- package/typedoc/assets/style.css +0 -1640
- package/typedoc/classes/echo.Hypergraph.html +0 -21
- package/typedoc/classes/echo.PropertiesType.html +0 -19
- package/typedoc/classes/echo.QueryResult.html +0 -17
- package/typedoc/classes/halo.KeyStore.html +0 -6
- package/typedoc/classes/index.AgentClientServiceProvider.html +0 -10
- package/typedoc/classes/index.AgentManagerClient.html +0 -22
- package/typedoc/classes/index.AlreadyJoinedError.html +0 -15
- package/typedoc/classes/index.ApiError.html +0 -16
- package/typedoc/classes/index.CancelledError.html +0 -16
- package/typedoc/classes/index.Client.html +0 -51
- package/typedoc/classes/index.ClientServicesProxy.html +0 -12
- package/typedoc/classes/index.Config.html +0 -17
- package/typedoc/classes/index.DataCorruptionError.html +0 -16
- package/typedoc/classes/index.DatabaseError.html +0 -15
- package/typedoc/classes/index.EntityNotFoundError.html +0 -15
- package/typedoc/classes/index.FakeAgentHostingProvider.html +0 -7
- package/typedoc/classes/index.IFrameManager.html +0 -6
- package/typedoc/classes/index.IdentityNotInitializedError.html +0 -15
- package/typedoc/classes/index.InvalidConfigError.html +0 -16
- package/typedoc/classes/index.InvalidInvitationError.html +0 -15
- package/typedoc/classes/index.InvalidInvitationExtensionRoleError.html +0 -16
- package/typedoc/classes/index.InvalidStorageVersionError.html +0 -15
- package/typedoc/classes/index.LocalClientServices.html +0 -12
- package/typedoc/classes/index.PublicKey.html +0 -55
- package/typedoc/classes/index.RemoteServiceConnectionError.html +0 -15
- package/typedoc/classes/index.RemoteServiceConnectionTimeout.html +0 -15
- package/typedoc/classes/index.RpcClosedError.html +0 -15
- package/typedoc/classes/index.RpcNotOpenError.html +0 -15
- package/typedoc/classes/index.SharedWorkerConnection.html +0 -5
- package/typedoc/classes/index.Shell.html +0 -35
- package/typedoc/classes/index.ShellManager.html +0 -9
- package/typedoc/classes/index.SystemError.html +0 -16
- package/typedoc/classes/index.UnknownModelError.html +0 -15
- package/typedoc/classes/index.WorkerClientServices.html +0 -12
- package/typedoc/classes/invitations.AuthenticatingInvitationObservable.html +0 -30
- package/typedoc/classes/invitations.CancellableInvitationObservable.html +0 -29
- package/typedoc/classes/invitations.InvitationEncoder.html +0 -5
- package/typedoc/classes/invitations.InvitationsProxy.html +0 -12
- package/typedoc/enums/devtools.KeyType.html +0 -9
- package/typedoc/enums/echo.HaloSpaceMember.Role.html +0 -9
- package/typedoc/enums/echo.IndexKind.Kind.html +0 -6
- package/typedoc/enums/echo.QueryOptions.DataLocation.html +0 -6
- package/typedoc/enums/echo.QueryOptions.ShowDeletedOption.html +0 -6
- package/typedoc/enums/echo.ResultFormat.html +0 -10
- package/typedoc/enums/echo.SpaceMember.PresenceState.html +0 -5
- package/typedoc/enums/echo.SpaceState.html +0 -13
- package/typedoc/enums/echo.TextKind.html +0 -5
- package/typedoc/enums/halo.Device.PresenceState.html +0 -6
- package/typedoc/enums/halo.DeviceKind.html +0 -5
- package/typedoc/enums/halo.DeviceType.html +0 -9
- package/typedoc/enums/index.ShellDisplay.html +0 -5
- package/typedoc/enums/index.ShellLayout.html +0 -13
- package/typedoc/enums/index.SystemStatus.html +0 -5
- package/typedoc/enums/invitations.Invitation.AuthMethod.html +0 -6
- package/typedoc/enums/invitations.Invitation.Kind.html +0 -5
- package/typedoc/enums/invitations.Invitation.State.html +0 -13
- package/typedoc/enums/invitations.Invitation.Type.html +0 -6
- package/typedoc/enums/mesh.ConnectionState.html +0 -5
- package/typedoc/functions/devtools.useDevtools.html +0 -1
- package/typedoc/functions/devtools.useStream.html +0 -2
- package/typedoc/functions/echo.useMembers.html +0 -1
- package/typedoc/functions/echo.useQueue.html +0 -2
- package/typedoc/functions/echo.useSchema.html +0 -2
- package/typedoc/functions/echo.useSpace.html +0 -6
- package/typedoc/functions/echo.useSpaceInvitation.html +0 -1
- package/typedoc/functions/echo.useSpaceInvitations.html +0 -1
- package/typedoc/functions/echo.useSpaceSyncState.html +0 -2
- package/typedoc/functions/echo.useSpaces.html +0 -5
- package/typedoc/functions/echo.useSubscription.html +0 -3
- package/typedoc/functions/echo.useSyncState.html +0 -2
- package/typedoc/functions/halo.useContacts.html +0 -4
- package/typedoc/functions/halo.useCredentials.html +0 -1
- package/typedoc/functions/halo.useDevices.html +0 -1
- package/typedoc/functions/halo.useHaloInvitation.html +0 -1
- package/typedoc/functions/halo.useHaloInvitations.html +0 -1
- package/typedoc/functions/halo.useIdentity.html +0 -3
- package/typedoc/functions/halo.useKeyStore.html +0 -3
- package/typedoc/functions/index.AgentHostingProvider.html +0 -2
- package/typedoc/functions/index.useAgentHostingClient.html +0 -1
- package/typedoc/functions/index.useClient.html +0 -3
- package/typedoc/functions/index.useClientStatus.html +0 -1
- package/typedoc/functions/index.useConfig.html +0 -3
- package/typedoc/functions/index.useShell.html +0 -2
- package/typedoc/functions/index.useShellDisplay.html +0 -2
- package/typedoc/functions/index.useStatus.html +0 -1
- package/typedoc/functions/invitations.useInvitationStatus.html +0 -1
- package/typedoc/functions/mesh.useNetworkStatus.html +0 -2
- package/typedoc/hierarchy.html +0 -1
- package/typedoc/index.html +0 -23
- package/typedoc/interfaces/devtools.DevtoolsHook.html +0 -22
- package/typedoc/interfaces/devtools.DevtoolsHost.html +0 -26
- package/typedoc/interfaces/echo.DocAccessor.html +0 -3
- package/typedoc/interfaces/echo.Echo.html +0 -39
- package/typedoc/interfaces/echo.EchoDatabase.html +0 -23
- package/typedoc/interfaces/echo.Expando.html +0 -3
- package/typedoc/interfaces/echo.Filter.html +0 -3
- package/typedoc/interfaces/echo.HaloSpaceMember.html +0 -18
- package/typedoc/interfaces/echo.IDocHandle.html +0 -6
- package/typedoc/interfaces/echo.IndexKind.html +0 -9
- package/typedoc/interfaces/echo.Query.html +0 -34
- package/typedoc/interfaces/echo.QueryOptions.html +0 -39
- package/typedoc/interfaces/echo.Ref.html +0 -32
- package/typedoc/interfaces/echo.Space.html +0 -39
- package/typedoc/interfaces/echo.SpaceMember.html +0 -7
- package/typedoc/interfaces/echo.SpaceSyncState.PeerState.html +0 -14
- package/typedoc/interfaces/echo.SpaceSyncState.html +0 -4
- package/typedoc/interfaces/echo.SubscriptionHandle.html +0 -5
- package/typedoc/interfaces/echo.TypedObject.html +0 -16
- package/typedoc/interfaces/halo.Contact.html +0 -10
- package/typedoc/interfaces/halo.Credential.html +0 -27
- package/typedoc/interfaces/halo.Device.html +0 -11
- package/typedoc/interfaces/halo.Halo.html +0 -16
- package/typedoc/interfaces/halo.Identity.html +0 -15
- package/typedoc/interfaces/index.AgentHostingProviderClient.html +0 -6
- package/typedoc/interfaces/index.AppContextRequest.html +0 -33
- package/typedoc/interfaces/index.ClientServicesProvider.html +0 -9
- package/typedoc/interfaces/index.InvitationUrlRequest.html +0 -9
- package/typedoc/interfaces/index.LayoutRequest.html +0 -29
- package/typedoc/interfaces/index.ShellRuntime.html +0 -15
- package/typedoc/interfaces/invitations.Invitation.html +0 -92
- package/typedoc/interfaces/invitations.Invitations.html +0 -5
- package/typedoc/interfaces/mesh.GossipMessage.html +0 -10
- package/typedoc/interfaces/mesh.NetworkStatus.Signal.html +0 -5
- package/typedoc/interfaces/mesh.NetworkStatus.html +0 -6
- package/typedoc/media/LICENSE +0 -8
- package/typedoc/modules/devtools.html +0 -1
- package/typedoc/modules/echo.Filter.html +0 -1
- package/typedoc/modules/echo.HaloSpaceMember.html +0 -1
- package/typedoc/modules/echo.IndexKind.html +0 -1
- package/typedoc/modules/echo.Query.html +0 -1
- package/typedoc/modules/echo.QueryOptions.html +0 -1
- package/typedoc/modules/echo.Ref.html +0 -2
- package/typedoc/modules/echo.SpaceMember.html +0 -1
- package/typedoc/modules/echo.SpaceSyncState.html +0 -1
- package/typedoc/modules/echo.html +0 -1
- package/typedoc/modules/halo.Device.html +0 -1
- package/typedoc/modules/halo.html +0 -1
- package/typedoc/modules/index.html +0 -1
- package/typedoc/modules/invitations.Invitation.html +0 -1
- package/typedoc/modules/invitations.html +0 -1
- package/typedoc/modules/mesh.NetworkStatus.html +0 -1
- package/typedoc/modules/mesh.html +0 -1
- package/typedoc/modules/worker.html +0 -1
- package/typedoc/modules.html +0 -1
- package/typedoc/types/devtools.MountOptions.html +0 -3
- package/typedoc/types/echo.AnyLiveObject.html +0 -1
- package/typedoc/types/echo.Filter.And.html +0 -1
- package/typedoc/types/echo.Filter.Any.html +0 -1
- package/typedoc/types/echo.Filter.Or.html +0 -1
- package/typedoc/types/echo.Filter.Props.html +0 -1
- package/typedoc/types/echo.Filter.Type.html +0 -1
- package/typedoc/types/echo.FilterSource.html +0 -1
- package/typedoc/types/echo.Live.html +0 -5
- package/typedoc/types/echo.ObjectMeta.html +0 -1
- package/typedoc/types/echo.ObjectMigration.html +0 -7
- package/typedoc/types/echo.ObjectVersion.html +0 -2
- package/typedoc/types/echo.PeerSyncState.html +0 -1
- package/typedoc/types/echo.Progress.html +0 -3
- package/typedoc/types/echo.PropertiesTypeProps.html +0 -1
- package/typedoc/types/echo.Query.Any.html +0 -1
- package/typedoc/types/echo.Query.TextSearchOptions.html +0 -2
- package/typedoc/types/echo.Query.Type.html +0 -1
- package/typedoc/types/echo.Queue.html +0 -10
- package/typedoc/types/echo.Ref.Target.html +0 -2
- package/typedoc/types/echo.Selection.html +0 -1
- package/typedoc/types/echo.SpaceId.html +0 -6
- package/typedoc/types/echo.SpaceSyncStateMap.html +0 -1
- package/typedoc/types/echo.UseQueueOptions.html +0 -2
- package/typedoc/types/echo.UseSpacesParams.html +0 -3
- package/typedoc/types/index.AgentHostingProviderProps.html +0 -3
- package/typedoc/types/index.ClientContextProps.html +0 -3
- package/typedoc/types/index.ClientOptions.html +0 -12
- package/typedoc/types/index.ClientProviderProps.html +0 -2
- package/typedoc/types/index.ClientServices.html +0 -15
- package/typedoc/types/index.FromAgentOptions.html +0 -2
- package/typedoc/types/index.PublicKeyLike.html +0 -2
- package/typedoc/types/invitations.InvitationAction.html +0 -1
- package/typedoc/types/invitations.InvitationResult.html +0 -5
- package/typedoc/types/invitations.InvitationStatus.html +0 -15
- package/typedoc/variables/devtools.mountDevtoolsHooks.html +0 -1
- package/typedoc/variables/devtools.unmountDevtoolsHooks.html +0 -1
- package/typedoc/variables/echo.DocAccessor.html +0 -1
- package/typedoc/variables/echo.EchoObjectSchema.html +0 -1
- package/typedoc/variables/echo.Expando.html +0 -1
- package/typedoc/variables/echo.FQ_ID_LENGTH.html +0 -1
- package/typedoc/variables/echo.Filter.html +0 -1
- package/typedoc/variables/echo.OBJECT_ID_LENGTH.html +0 -1
- package/typedoc/variables/echo.ObjectVersion.html +0 -1
- package/typedoc/variables/echo.Query.html +0 -1
- package/typedoc/variables/echo.ReactiveObjectSchema.html +0 -1
- package/typedoc/variables/echo.Ref.html +0 -2
- package/typedoc/variables/echo.RefArray.html +0 -2
- package/typedoc/variables/echo.SPACE_ID_LENGTH.html +0 -1
- package/typedoc/variables/echo.SpaceId.html +0 -1
- package/typedoc/variables/echo.SpaceSchema.html +0 -1
- package/typedoc/variables/echo.TypedObject.html +0 -3
- package/typedoc/variables/echo.compareForeignKeys.html +0 -1
- package/typedoc/variables/echo.createDocAccessor.html +0 -1
- package/typedoc/variables/echo.createEmptyEdgeSyncState.html +0 -1
- package/typedoc/variables/echo.createObject.html +0 -1
- package/typedoc/variables/echo.createQueueDxn.html +0 -1
- package/typedoc/variables/echo.createSubscription.html +0 -5
- package/typedoc/variables/echo.defineObjectMigration.html +0 -1
- package/typedoc/variables/echo.fromCursor.html +0 -1
- package/typedoc/variables/echo.fullyQualifiedId.html +0 -4
- package/typedoc/variables/echo.getMeta.html +0 -1
- package/typedoc/variables/echo.getObjectCore.html +0 -1
- package/typedoc/variables/echo.getRangeFromCursor.html +0 -1
- package/typedoc/variables/echo.getSchema.html +0 -2
- package/typedoc/variables/echo.getSpace.html +0 -1
- package/typedoc/variables/echo.getSyncSummary.html +0 -1
- package/typedoc/variables/echo.getTextInRange.html +0 -2
- package/typedoc/variables/echo.getType.html +0 -5
- package/typedoc/variables/echo.getTypename.html +0 -2
- package/typedoc/variables/echo.getVersion.html +0 -3
- package/typedoc/variables/echo.hasType.html +0 -2
- package/typedoc/variables/echo.importSpace.html +0 -1
- package/typedoc/variables/echo.internalDecodeReference.html +0 -1
- package/typedoc/variables/echo.isEchoObject.html +0 -2
- package/typedoc/variables/echo.isLiveObject.html +0 -2
- package/typedoc/variables/echo.isSpace.html +0 -1
- package/typedoc/variables/echo.live.html +0 -3
- package/typedoc/variables/echo.loadObjectReferences.html +0 -7
- package/typedoc/variables/echo.makeRef.html +0 -2
- package/typedoc/variables/echo.parseFullyQualifiedId.html +0 -2
- package/typedoc/variables/echo.parseId.html +0 -1
- package/typedoc/variables/echo.refFromDXN.html +0 -2
- package/typedoc/variables/echo.toCursor.html +0 -1
- package/typedoc/variables/echo.toCursorRange.html +0 -1
- package/typedoc/variables/echo.updateText.html +0 -6
- package/typedoc/variables/echo.useQuery.html +0 -2
- package/typedoc/variables/index.AgentHostingContext.html +0 -1
- package/typedoc/variables/index.ClientProvider.html +0 -3
- package/typedoc/variables/index.DXOS_VERSION.html +0 -1
- package/typedoc/variables/index.Defaults.html +0 -2
- package/typedoc/variables/index.Dynamics.html +0 -2
- package/typedoc/variables/index.Envs.html +0 -2
- package/typedoc/variables/index.Local.html +0 -2
- package/typedoc/variables/index.Remote.html +0 -1
- package/typedoc/variables/index.Storage.html +0 -2
- package/typedoc/variables/index.createClientServices.html +0 -4
- package/typedoc/variables/index.fromAgent.html +0 -2
- package/typedoc/variables/index.fromHost.html +0 -2
- package/typedoc/variables/index.fromSocket.html +0 -2
- package/typedoc/variables/index.fromWorker.html +0 -2
- package/typedoc/variables/index.getUnixSocket.html +0 -1
- package/typedoc/variables/index.resolveRef.html +0 -1
- package/typedoc/variables/index.useMulticastObservable.html +0 -3
- package/typedoc/variables/worker.getWorkerServiceHost.html +0 -1
- package/typedoc/variables/worker.onconnect.html +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useClientStatus.d.ts","sourceRoot":"","sources":["../../../../src/client/useClientStatus.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAE9D,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"useClientStatus.d.ts","sourceRoot":"","sources":["../../../../src/client/useClientStatus.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAE9D,eAAO,MAAM,eAAe,WAAY,MAAM,oCAY7C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStream.d.ts","sourceRoot":"","sources":["../../../../src/devtools/useStream.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,cAAc,EAAuB,MAAM,OAAO,CAAC;AAEjE,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAG1D;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"useStream.d.ts","sourceRoot":"","sources":["../../../../src/devtools/useStream.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,cAAc,EAAuB,MAAM,OAAO,CAAC;AAEjE,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAG1D;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,iBAAiB,MAAM,MAAM,CAAC,CAAC,CAAC,gBAAgB,CAAC,SAAQ,cAAc,KAAQ,CAmBzG,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export * from '@dxos/client/echo';
|
|
2
2
|
export * from './useMembers';
|
|
3
3
|
export * from './useQuery';
|
|
4
|
-
export * from './useQueue';
|
|
5
4
|
export * from './useSchema';
|
|
6
5
|
export * from './useSpaces';
|
|
7
6
|
export * from './useSpaceInvitations';
|
|
8
7
|
export * from './useSubscription';
|
|
9
|
-
export * from './
|
|
8
|
+
export * from './useQueue';
|
|
10
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/echo/index.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAC;AAElC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/echo/index.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAC;AAElC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMembers.d.ts","sourceRoot":"","sources":["../../../../src/echo/useMembers.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKtE,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"useMembers.d.ts","sourceRoot":"","sources":["../../../../src/echo/useMembers.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKtE,eAAO,MAAM,UAAU,aAAc,SAAS,GAAG,SAAS,KAAG,WAAW,EAQvE,CAAC"}
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
import { type Echo,
|
|
2
|
-
interface UseQueryFn {
|
|
3
|
-
<Q extends Query.Any>(spaceOrEcho: Space | Echo | undefined, query: Q, deps?: any[]): Live<Query.Type<Q>>[];
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated Pass `Query` instead.
|
|
6
|
-
*/
|
|
7
|
-
<F extends Filter.Any>(spaceOrEcho: Space | Echo | undefined, filter: F, deps?: any[]): Live<Filter.Type<F>>[];
|
|
8
|
-
}
|
|
1
|
+
import { type Echo, type FilterSource, type QueryOptions, type ReactiveEchoObject, type Space } from '@dxos/client/echo';
|
|
9
2
|
/**
|
|
10
3
|
* Create subscription.
|
|
11
4
|
*/
|
|
12
|
-
export declare const useQuery:
|
|
13
|
-
export {};
|
|
5
|
+
export declare const useQuery: <T extends ReactiveEchoObject<any>>(spaceOrEcho?: Space | Echo, filter?: FilterSource<T>, options?: QueryOptions, deps?: any[]) => T[];
|
|
14
6
|
//# sourceMappingURL=useQuery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useQuery.d.ts","sourceRoot":"","sources":["../../../../src/echo/useQuery.ts"],"names":[],"mappings":"AAMA,OAAO,
|
|
1
|
+
{"version":3,"file":"useQuery.d.ts","sourceRoot":"","sources":["../../../../src/echo/useQuery.ts"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,IAAI,EACT,KAAK,YAAY,EAGjB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,KAAK,EACX,MAAM,mBAAmB,CAAC;AAE3B;;GAEG;AAEH,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,kBAAkB,CAAC,GAAG,CAAC,gBAC1C,KAAK,GAAG,IAAI,WACjB,YAAY,CAAC,CAAC,CAAC,YACd,YAAY,SACf,GAAG,EAAE,KACX,CAAC,EAwBH,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Queue } from '@dxos/client/echo';
|
|
2
|
+
import type { BaseEchoObject } from '@dxos/echo-schema';
|
|
3
3
|
import { type DXN } from '@dxos/keys';
|
|
4
4
|
export type UseQueueOptions = {
|
|
5
5
|
pollInterval?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useQueue.d.ts","sourceRoot":"","sources":["../../../../src/echo/useQueue.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"useQueue.d.ts","sourceRoot":"","sources":["../../../../src/echo/useQueue.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AAMtC,MAAM,MAAM,eAAe,GAAG;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;GAEG;AAKH,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,cAAc,aACpC,GAAG,YACL,eAAe,KACvB,KAAK,CAAC,CAAC,CAAC,GAAG,SA2Cb,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type Schema } from 'effect';
|
|
2
1
|
import { type Client } from '@dxos/client';
|
|
3
2
|
import { type Space } from '@dxos/client/echo';
|
|
3
|
+
import { type BaseSchema } from '@dxos/echo-schema';
|
|
4
4
|
/**
|
|
5
5
|
* Subscribe to and retrieve schema changes from a space's schema registry.
|
|
6
6
|
*/
|
|
7
|
-
export declare const useSchema: (client: Client, space: Space | undefined, typename: string | undefined) =>
|
|
7
|
+
export declare const useSchema: (client: Client, space: Space | undefined, typename: string | undefined) => BaseSchema | undefined;
|
|
8
8
|
//# sourceMappingURL=useSchema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSchema.d.ts","sourceRoot":"","sources":["../../../../src/echo/useSchema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSchema.d.ts","sourceRoot":"","sources":["../../../../src/echo/useSchema.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,SAAS,WACZ,MAAM,SACP,KAAK,GAAG,SAAS,YACd,MAAM,GAAG,SAAS,KAC3B,UAAU,GAAG,SAqCf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSpaceInvitations.d.ts","sourceRoot":"","sources":["../../../../src/echo/useSpaceInvitations.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,OAAO,EAAE,KAAK,+BAA+B,EAAuB,MAAM,gBAAgB,CAAC;AAE3F,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"useSpaceInvitations.d.ts","sourceRoot":"","sources":["../../../../src/echo/useSpaceInvitations.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,OAAO,EAAE,KAAK,+BAA+B,EAAuB,MAAM,gBAAgB,CAAC;AAE3F,eAAO,MAAM,mBAAmB,cAAe,SAAS,KAAG,+BAA+B,EAGzF,CAAC;AAEF,eAAO,MAAM,kBAAkB,cAAe,SAAS,iBAAiB,MAAM,8CAO7E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSpaces.d.ts","sourceRoot":"","sources":["../../../../src/echo/useSpaces.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,KAAK,KAAK,EAAc,MAAM,mBAAmB,CAAC;AAK3D;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"useSpaces.d.ts","sourceRoot":"","sources":["../../../../src/echo/useSpaces.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,KAAK,KAAK,EAAc,MAAM,mBAAmB,CAAC;AAK3D;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,kBAAmB,aAAa,KAAG,KAAK,GAAG,SA0B/D,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,SAAS,aAAqB,eAAe,KAAQ,KAAK,EAMtE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSubscription.d.ts","sourceRoot":"","sources":["../../../../src/echo/useSubscription.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,kBAAkB,EAAsB,MAAM,mBAAmB,CAAC;AAEhG;;;GAGG;AAEH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"useSubscription.d.ts","sourceRoot":"","sources":["../../../../src/echo/useSubscription.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,kBAAkB,EAAsB,MAAM,mBAAmB,CAAC;AAEhG;;;GAGG;AAEH,eAAO,MAAM,eAAe,OAAQ,MAAM,IAAI,aAAa,SAAS,mCAmBnE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHaloInvitations.d.ts","sourceRoot":"","sources":["../../../../src/halo/useHaloInvitations.ts"],"names":[],"mappings":"AASA,OAAO,EAAuB,KAAK,+BAA+B,EAAE,MAAM,gBAAgB,CAAC;AAE3F,eAAO,MAAM,kBAAkB,QAAO,+BAA+B,EAGpE,CAAC;AAEF,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"useHaloInvitations.d.ts","sourceRoot":"","sources":["../../../../src/halo/useHaloInvitations.ts"],"names":[],"mappings":"AASA,OAAO,EAAuB,KAAK,+BAA+B,EAAE,MAAM,gBAAgB,CAAC;AAE3F,eAAO,MAAM,kBAAkB,QAAO,+BAA+B,EAGpE,CAAC;AAEF,eAAO,MAAM,iBAAiB,kBAAmB,MAAM,8CAOtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useKeyStore.d.ts","sourceRoot":"","sources":["../../../../src/halo/useKeyStore.ts"],"names":[],"mappings":"AAOA,qBAAa,QAAQ;IAGP,OAAO,CAAC,QAAQ,CAAC,YAAY;IAFzC,OAAO,CAAC,OAAO,CAA6B;gBAEf,YAAY,GAAE,MAAM,EAAO;IAExD,IAAI,GAAG,wBAEN;IAGD,UAAU;IASV,MAAM,CAAC,GAAG,EAAE,MAAM;IAIlB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;CAIlC;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"useKeyStore.d.ts","sourceRoot":"","sources":["../../../../src/halo/useKeyStore.ts"],"names":[],"mappings":"AAOA,qBAAa,QAAQ;IAGP,OAAO,CAAC,QAAQ,CAAC,YAAY;IAFzC,OAAO,CAAC,OAAO,CAA6B;gBAEf,YAAY,GAAE,MAAM,EAAO;IAExD,IAAI,GAAG,wBAEN;IAGD,UAAU;IASV,MAAM,CAAC,GAA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,CAAC,4BAA4B,CAAC,CAAC;IAC5C,QAAQ,CAAC,EAAE,EAAE,CAAC,2BAA2B,CAAC,CAAC;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;IACtB,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,GAAG,OAAO,CAAC,CAAC;CAChC,GAAG,IAAI,CAAC,uBAAuB,EAAE,gBAAgB,GAAG,aAAa,GAAG,gBAAgB,CAAC,CAAC;AAEvF;;;;GAIG;AAMH,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,4BAA4B,SAAS,mBAAmB,CAAC,CAAC,CAAC,6BA2DnG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/testing/util.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,KAAK,MAAM,EAAY,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAK/C,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/testing/util.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,KAAK,MAAM,EAAY,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAK/C,eAAO,MAAM,YAAY,8CAItB;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE;;;EActE,CAAC;AAEF,eAAO,MAAM,2BAA2B,WAAkB,MAAM,4BACxC,GAAG,uBAC1B,CAAC;AAEF,eAAO,MAAM,oBAAoB,WAAkB,MAAM,4BACjC,GAAG,uBAC1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withClientProvider.d.ts","sourceRoot":"","sources":["../../../../src/testing/withClientProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKrE,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAErE,KAAK,eAAe,GAAG;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC;IACvD,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC;IAEtE,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,KAAK,CAAA;KAAE,EAAE,OAAO,EAAE,YAAY,GAAG,GAAG,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC;CAC/G,CAAC;AA4BF,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG,IAAI,CAAC,mBAAmB,EAAE,eAAe,CAAC,CAAC;AAEnG;;GAEG;AACH,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"withClientProvider.d.ts","sourceRoot":"","sources":["../../../../src/testing/withClientProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,EA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 @@
|
|
|
1
|
-
{"version":"5.
|
|
1
|
+
{"version":"5.7.3"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-client",
|
|
3
|
-
"version": "0.8.2-
|
|
3
|
+
"version": "0.8.2-staging.7ac8446",
|
|
4
4
|
"description": "React client API",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -78,50 +78,45 @@
|
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"react-error-boundary": "^4.0.13",
|
|
81
|
-
"@dxos/async": "0.8.2-
|
|
82
|
-
"@dxos/client": "0.8.2-
|
|
83
|
-
"@dxos/codec-protobuf": "0.8.2-
|
|
84
|
-
"@dxos/
|
|
85
|
-
"@dxos/
|
|
86
|
-
"@dxos/
|
|
87
|
-
"@dxos/
|
|
88
|
-
"@dxos/
|
|
89
|
-
"@dxos/
|
|
90
|
-
"@dxos/
|
|
91
|
-
"@dxos/
|
|
92
|
-
"@dxos/protocols": "0.8.2-
|
|
93
|
-
"@dxos/util": "0.8.2-
|
|
94
|
-
"@dxos/react-hooks": "0.8.2-main.fbd8ed0"
|
|
81
|
+
"@dxos/async": "0.8.2-staging.7ac8446",
|
|
82
|
+
"@dxos/client": "0.8.2-staging.7ac8446",
|
|
83
|
+
"@dxos/codec-protobuf": "0.8.2-staging.7ac8446",
|
|
84
|
+
"@dxos/debug": "0.8.2-staging.7ac8446",
|
|
85
|
+
"@dxos/config": "0.8.2-staging.7ac8446",
|
|
86
|
+
"@dxos/echo-schema": "0.8.2-staging.7ac8446",
|
|
87
|
+
"@dxos/invariant": "0.8.2-staging.7ac8446",
|
|
88
|
+
"@dxos/log": "0.8.2-staging.7ac8446",
|
|
89
|
+
"@dxos/node-std": "0.8.2-staging.7ac8446",
|
|
90
|
+
"@dxos/echo-signals": "0.8.2-staging.7ac8446",
|
|
91
|
+
"@dxos/react-hooks": "0.8.2-staging.7ac8446",
|
|
92
|
+
"@dxos/protocols": "0.8.2-staging.7ac8446",
|
|
93
|
+
"@dxos/util": "0.8.2-staging.7ac8446"
|
|
95
94
|
},
|
|
96
95
|
"devDependencies": {
|
|
97
96
|
"@types/react": "~18.2.0",
|
|
98
97
|
"@types/react-dom": "~18.2.0",
|
|
99
98
|
"react": "~18.2.0",
|
|
100
99
|
"react-dom": "~18.2.0",
|
|
101
|
-
"
|
|
102
|
-
"@dxos/
|
|
103
|
-
"@dxos/react-ui": "0.8.2-
|
|
104
|
-
"@dxos/
|
|
105
|
-
"@dxos/
|
|
106
|
-
"@dxos/
|
|
107
|
-
"@dxos/storybook-utils": "0.8.2-main.fbd8ed0"
|
|
100
|
+
"@dxos/random": "0.8.2-staging.7ac8446",
|
|
101
|
+
"@dxos/react-ui": "0.8.2-staging.7ac8446",
|
|
102
|
+
"@dxos/react-ui-theme": "0.8.2-staging.7ac8446",
|
|
103
|
+
"@dxos/storybook-utils": "0.8.2-staging.7ac8446",
|
|
104
|
+
"@dxos/test-utils": "0.8.2-staging.7ac8446",
|
|
105
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.2-staging.7ac8446"
|
|
108
106
|
},
|
|
109
107
|
"peerDependencies": {
|
|
110
108
|
"react": "~18.2.0",
|
|
111
109
|
"react-dom": "~18.2.0"
|
|
112
110
|
},
|
|
113
111
|
"optionalDependencies": {
|
|
114
|
-
"@dxos/
|
|
115
|
-
"@dxos/
|
|
116
|
-
"@dxos/react-ui-theme": "0.8.2-
|
|
112
|
+
"@dxos/random": "0.8.2-staging.7ac8446",
|
|
113
|
+
"@dxos/react-ui": "0.8.2-staging.7ac8446",
|
|
114
|
+
"@dxos/react-ui-theme": "0.8.2-staging.7ac8446"
|
|
117
115
|
},
|
|
118
116
|
"publishConfig": {
|
|
119
117
|
"access": "public"
|
|
120
118
|
},
|
|
121
119
|
"typedoc": {
|
|
122
120
|
"entryPoint": "src/index.ts"
|
|
123
|
-
},
|
|
124
|
-
"scripts": {
|
|
125
|
-
"typedoc": "typedoc --out typedoc"
|
|
126
121
|
}
|
|
127
122
|
}
|
package/project.json
CHANGED
|
@@ -29,7 +29,7 @@ describe('Config hook', () => {
|
|
|
29
29
|
expect(Object.entries(result.current).length).toBeGreaterThan(0);
|
|
30
30
|
});
|
|
31
31
|
|
|
32
|
-
//
|
|
32
|
+
// Flaky.
|
|
33
33
|
test('should return custom client config when used properly in a context', { retry: 2 }, async () => {
|
|
34
34
|
const config = new Config({
|
|
35
35
|
version: 1,
|
package/src/echo/index.ts
CHANGED
|
@@ -6,9 +6,8 @@ export * from '@dxos/client/echo';
|
|
|
6
6
|
|
|
7
7
|
export * from './useMembers';
|
|
8
8
|
export * from './useQuery';
|
|
9
|
-
export * from './useQueue';
|
|
10
9
|
export * from './useSchema';
|
|
11
10
|
export * from './useSpaces';
|
|
12
11
|
export * from './useSpaceInvitations';
|
|
13
12
|
export * from './useSubscription';
|
|
14
|
-
export * from './
|
|
13
|
+
export * from './useQueue';
|
package/src/echo/useQuery.ts
CHANGED
|
@@ -4,56 +4,54 @@
|
|
|
4
4
|
|
|
5
5
|
import { useMemo, useSyncExternalStore } from 'react';
|
|
6
6
|
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
7
|
+
import {
|
|
8
|
+
isSpace,
|
|
9
|
+
type Echo,
|
|
10
|
+
type FilterSource,
|
|
11
|
+
Filter,
|
|
12
|
+
type Query,
|
|
13
|
+
type QueryOptions,
|
|
14
|
+
type ReactiveEchoObject,
|
|
15
|
+
type Space,
|
|
16
|
+
} from '@dxos/client/echo';
|
|
18
17
|
|
|
19
18
|
/**
|
|
20
19
|
* Create subscription.
|
|
21
20
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
// TODO(burdon): Support typed operator filters (e.g., Note.filter(note => ...)).
|
|
22
|
+
export const useQuery = <T extends ReactiveEchoObject<any>>(
|
|
23
|
+
spaceOrEcho?: Space | Echo,
|
|
24
|
+
filter?: FilterSource<T>,
|
|
25
|
+
options?: QueryOptions,
|
|
25
26
|
deps?: any[],
|
|
26
|
-
):
|
|
27
|
-
const query = Filter.is(queryOrFilter) ? Query.select(queryOrFilter) : queryOrFilter;
|
|
28
|
-
|
|
27
|
+
): T[] => {
|
|
29
28
|
const { getObjects, subscribe } = useMemo(() => {
|
|
30
29
|
let subscribed = false;
|
|
31
|
-
const
|
|
32
|
-
spaceOrEcho
|
|
33
|
-
|
|
34
|
-
: isSpace(spaceOrEcho)
|
|
35
|
-
? spaceOrEcho.db.query(query)
|
|
36
|
-
: spaceOrEcho.query(query);
|
|
30
|
+
const query = isSpace(spaceOrEcho)
|
|
31
|
+
? spaceOrEcho.db.query(filter, options)
|
|
32
|
+
: (spaceOrEcho?.query(filter, options) as Query<T> | undefined);
|
|
37
33
|
|
|
38
34
|
return {
|
|
39
|
-
getObjects: () => (subscribed &&
|
|
35
|
+
getObjects: () => (subscribed && query ? query.objects : EMPTY_ARRAY),
|
|
40
36
|
subscribe: (cb: () => void) => {
|
|
41
37
|
subscribed = true;
|
|
42
|
-
const unsubscribe =
|
|
38
|
+
const unsubscribe = query?.subscribe(cb) ?? noop;
|
|
43
39
|
return () => {
|
|
44
40
|
unsubscribe?.();
|
|
45
41
|
subscribed = false;
|
|
46
42
|
};
|
|
47
43
|
},
|
|
48
44
|
};
|
|
49
|
-
}, [spaceOrEcho, ...
|
|
45
|
+
}, [spaceOrEcho, ...filterToDepsArray(filter), ...(deps ?? [])]);
|
|
50
46
|
|
|
51
47
|
// https://beta.reactjs.org/reference/react/useSyncExternalStore
|
|
52
48
|
// NOTE: This hook will resubscribe whenever the callback passed to the first argument changes; make sure it is stable.
|
|
53
|
-
const objects = useSyncExternalStore<
|
|
49
|
+
const objects = useSyncExternalStore<T[] | undefined>(subscribe, getObjects);
|
|
54
50
|
return objects ?? [];
|
|
55
51
|
};
|
|
56
52
|
|
|
53
|
+
const filterToDepsArray = (filter?: FilterSource<any>) => [JSON.stringify(Filter.from(filter).toProto())];
|
|
54
|
+
|
|
57
55
|
const noop = () => {};
|
|
58
56
|
|
|
59
57
|
const EMPTY_ARRAY: never[] = [];
|
package/src/echo/useQueue.ts
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import { useEffect, useMemo, useRef } from 'react';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import type { Queue } from '@dxos/client/echo';
|
|
8
8
|
import { raise } from '@dxos/debug';
|
|
9
|
-
import {
|
|
9
|
+
import type { BaseEchoObject } from '@dxos/echo-schema';
|
|
10
10
|
import { type DXN } from '@dxos/keys';
|
|
11
11
|
|
|
12
12
|
import { useClient } from '../client';
|
|
@@ -35,7 +35,6 @@ export const useQueue = <T extends BaseEchoObject>(
|
|
|
35
35
|
if (!queueDxn) {
|
|
36
36
|
return undefined;
|
|
37
37
|
}
|
|
38
|
-
|
|
39
38
|
const { spaceId } = queueDxn.asQueueDXN() ?? raise(new TypeError('Invalid queue DXN'));
|
|
40
39
|
return client.spaces.get(spaceId)?.queues.get<T>(queueDxn);
|
|
41
40
|
}, [client, queueDxn?.toString()]);
|
package/src/echo/useSchema.ts
CHANGED
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { type Schema } from 'effect';
|
|
6
5
|
import { useMemo, useSyncExternalStore } from 'react';
|
|
7
6
|
|
|
8
7
|
import { type Client } from '@dxos/client';
|
|
9
8
|
import { type Space } from '@dxos/client/echo';
|
|
10
|
-
import { type BaseSchema } from '@dxos/echo-schema';
|
|
9
|
+
import { ImmutableSchema, type BaseSchema } from '@dxos/echo-schema';
|
|
11
10
|
|
|
12
11
|
/**
|
|
13
12
|
* Subscribe to and retrieve schema changes from a space's schema registry.
|
|
@@ -16,7 +15,7 @@ export const useSchema = (
|
|
|
16
15
|
client: Client,
|
|
17
16
|
space: Space | undefined,
|
|
18
17
|
typename: string | undefined,
|
|
19
|
-
):
|
|
18
|
+
): BaseSchema | undefined => {
|
|
20
19
|
const { subscribe, getSchema } = useMemo(() => {
|
|
21
20
|
if (!typename || !space) {
|
|
22
21
|
return {
|
|
@@ -27,9 +26,11 @@ export const useSchema = (
|
|
|
27
26
|
|
|
28
27
|
const staticSchema = client.graph.schemaRegistry.getSchema(typename);
|
|
29
28
|
if (staticSchema) {
|
|
29
|
+
// Don't inline into getSchema, need a stable reference.
|
|
30
|
+
const immutableSchema = new ImmutableSchema(staticSchema);
|
|
30
31
|
return {
|
|
31
32
|
subscribe: () => () => {},
|
|
32
|
-
getSchema: () =>
|
|
33
|
+
getSchema: () => immutableSchema,
|
|
33
34
|
};
|
|
34
35
|
}
|
|
35
36
|
|
package/tsconfig.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type PeerSyncState, type SpaceSyncStateMap, type Space } from '@dxos/client/echo';
|
|
2
|
-
/**
|
|
3
|
-
* Hook Subscribes to sync state for each space.
|
|
4
|
-
*/
|
|
5
|
-
export declare const useSyncState: () => SpaceSyncStateMap;
|
|
6
|
-
/**
|
|
7
|
-
* Hook Subscribes to sync state for a single space.
|
|
8
|
-
*/
|
|
9
|
-
export declare const useSpaceSyncState: (space: Space) => PeerSyncState | undefined;
|
|
10
|
-
//# sourceMappingURL=useSyncState.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSyncState.d.ts","sourceRoot":"","sources":["../../../../src/echo/useSyncState.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAU3F;;GAEG;AACH,eAAO,MAAM,YAAY,QAAO,iBAkC/B,CAAC;AAEF;;GAEG;AAEH,eAAO,MAAM,iBAAiB,GAAI,OAAO,KAAK,KAAG,aAAa,GAAG,SAkBhE,CAAC"}
|
package/src/echo/useSyncState.ts
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { useEffect, useState } from 'react';
|
|
6
|
-
|
|
7
|
-
import { type PeerSyncState, type SpaceSyncStateMap, type Space } from '@dxos/client/echo';
|
|
8
|
-
import { Context } from '@dxos/context';
|
|
9
|
-
import { type SpaceId } from '@dxos/keys';
|
|
10
|
-
import { EdgeService } from '@dxos/protocols';
|
|
11
|
-
|
|
12
|
-
import { useClient } from '../client';
|
|
13
|
-
|
|
14
|
-
const isEdgePeerId = (peerId: string, spaceId: SpaceId) =>
|
|
15
|
-
peerId.startsWith(`${EdgeService.AUTOMERGE_REPLICATOR}:${spaceId}`);
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Hook Subscribes to sync state for each space.
|
|
19
|
-
*/
|
|
20
|
-
export const useSyncState = (): SpaceSyncStateMap => {
|
|
21
|
-
const client = useClient();
|
|
22
|
-
const [spaceState, setSpaceState] = useState<SpaceSyncStateMap>({});
|
|
23
|
-
|
|
24
|
-
useEffect(() => {
|
|
25
|
-
const ctx = new Context();
|
|
26
|
-
const createSubscriptions = (spaces: Space[]) => {
|
|
27
|
-
for (const space of spaces) {
|
|
28
|
-
if (spaceState[space.id]) {
|
|
29
|
-
continue;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
ctx.onDispose(
|
|
33
|
-
space.crud.subscribeToSyncState(ctx, ({ peers = [] }) => {
|
|
34
|
-
const syncState = peers.find((state) => isEdgePeerId(state.peerId, space.id));
|
|
35
|
-
if (syncState) {
|
|
36
|
-
setSpaceState((spaceState) => ({ ...spaceState, [space.id]: syncState }));
|
|
37
|
-
}
|
|
38
|
-
}),
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
createSubscriptions(client.spaces.get());
|
|
44
|
-
client.spaces.subscribe((spaces) => {
|
|
45
|
-
createSubscriptions(spaces);
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
return () => {
|
|
49
|
-
void ctx.dispose();
|
|
50
|
-
};
|
|
51
|
-
}, [client]);
|
|
52
|
-
|
|
53
|
-
return spaceState;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Hook Subscribes to sync state for a single space.
|
|
58
|
-
*/
|
|
59
|
-
// TODO(wittjosiah): Reconcile w/ useSyncState.
|
|
60
|
-
export const useSpaceSyncState = (space: Space): PeerSyncState | undefined => {
|
|
61
|
-
const [spaceState, setSpaceState] = useState<PeerSyncState>();
|
|
62
|
-
|
|
63
|
-
useEffect(() => {
|
|
64
|
-
const ctx = new Context();
|
|
65
|
-
space.crud.subscribeToSyncState(ctx, ({ peers = [] }) => {
|
|
66
|
-
const syncState = peers.find((state) => isEdgePeerId(state.peerId, space.id));
|
|
67
|
-
if (syncState) {
|
|
68
|
-
setSpaceState(syncState);
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
return () => {
|
|
73
|
-
void ctx.dispose();
|
|
74
|
-
};
|
|
75
|
-
}, [space]);
|
|
76
|
-
|
|
77
|
-
return spaceState;
|
|
78
|
-
};
|
package/typedoc/.nojekyll
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
window.hierarchyData = "eJylV01T2zAQ/S86C2rZkmXnxqQwTadAB/pxYDgIWwRNFCkjKylph//ecT5Axk68bg+ZTJJ9+97uKqvnP8hZ6ys0uiOER5hm9SuLcRJRzCjFLEoY5pzcY+Tko5aFV9ZUaPQHJRGt34yYSzRCY62k8bfSrVQhq6/OrlQpHcJopkyJRjFLMVo6jUZIGS/doyhk9UGZUj6fdkNPn/xcI4wKLaoKjZCvypM618krvv7xSenSSYNGdzmNMYkIx3nOMSGU3b9gRFkeaDzTTopy/dkqI8tz5+ybPhJne30bwldxbcxBYdsvatYsClkXCsq1i+xhaJTNshSnOcGcxHXBLIrDoQhTSK3BxTbj+wtlcRKwfRRejK1zy0V9RoCUHSAAL6XveB9EJQcwvoYPaTVlOWZpitOI45TmOOUR5nmyaXuaBoLOjVd+fWX9hV0aaO87QIBGZCHvxKyEVuXYmkc1BdK2Mf2sacTbrBOzUl4MmHw3DsAeZ0fZn700lbLmxmrokQAkAeii4a6ZlHI/0IlRXgmtfoP/h0fAAB08avfn1lsnpvKHdNXgCXVgASpyEqi4kXPr5W7Fj60x23sEqOMYul8JJ3G/km9qLu3S/7OWHR6gJglX5s2iGGtbgQ9GMx7AxuIm25X11wsJbnwTAODj4dRv15WXcyBXEDzo/otizOIEp3GGeZJgzjb3IM/DNn83M2N/mUtbSg2U04L0F5/TsNlnU2l8w9q0TNFhI3AQC1CRh8v5iy2EbhqsfvoOUD9v7b2O+cHnNcB/tEEAYkJZQPzTupl0Q0vuQkGoG7t2M7ZPtvLKTPcD26YE+eDD8KFemJCMYhJvPXD94b3IS2HEtCXu+HlsYAC9iRtjuRAz2VVgP/khJMCHc96ofOmf6nu1EHWat8v++qGSbiUetDwuZh9fnfZngjwkZB1Wvcb+j7KeNIPsLud0+0iRsKah2LP1nuo3XQFq6GFmEd3paLj+ICNgu3QqAS2Yl5e/dkkepw=="
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--light-hl-0: #795E26;
|
|
3
|
-
--dark-hl-0: #DCDCAA;
|
|
4
|
-
--light-hl-1: #000000;
|
|
5
|
-
--dark-hl-1: #D4D4D4;
|
|
6
|
-
--light-hl-2: #A31515;
|
|
7
|
-
--dark-hl-2: #CE9178;
|
|
8
|
-
--light-hl-3: #AF00DB;
|
|
9
|
-
--dark-hl-3: #C586C0;
|
|
10
|
-
--light-hl-4: #001080;
|
|
11
|
-
--dark-hl-4: #9CDCFE;
|
|
12
|
-
--light-hl-5: #0000FF;
|
|
13
|
-
--dark-hl-5: #569CD6;
|
|
14
|
-
--light-hl-6: #0070C1;
|
|
15
|
-
--dark-hl-6: #4FC1FF;
|
|
16
|
-
--light-hl-7: #800000;
|
|
17
|
-
--dark-hl-7: #808080;
|
|
18
|
-
--light-hl-8: #800000;
|
|
19
|
-
--dark-hl-8: #569CD6;
|
|
20
|
-
--light-hl-9: #000000FF;
|
|
21
|
-
--dark-hl-9: #D4D4D4;
|
|
22
|
-
--light-hl-10: #267F99;
|
|
23
|
-
--dark-hl-10: #4EC9B0;
|
|
24
|
-
--light-code-background: #FFFFFF;
|
|
25
|
-
--dark-code-background: #1E1E1E;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@media (prefers-color-scheme: light) { :root {
|
|
29
|
-
--hl-0: var(--light-hl-0);
|
|
30
|
-
--hl-1: var(--light-hl-1);
|
|
31
|
-
--hl-2: var(--light-hl-2);
|
|
32
|
-
--hl-3: var(--light-hl-3);
|
|
33
|
-
--hl-4: var(--light-hl-4);
|
|
34
|
-
--hl-5: var(--light-hl-5);
|
|
35
|
-
--hl-6: var(--light-hl-6);
|
|
36
|
-
--hl-7: var(--light-hl-7);
|
|
37
|
-
--hl-8: var(--light-hl-8);
|
|
38
|
-
--hl-9: var(--light-hl-9);
|
|
39
|
-
--hl-10: var(--light-hl-10);
|
|
40
|
-
--code-background: var(--light-code-background);
|
|
41
|
-
} }
|
|
42
|
-
|
|
43
|
-
@media (prefers-color-scheme: dark) { :root {
|
|
44
|
-
--hl-0: var(--dark-hl-0);
|
|
45
|
-
--hl-1: var(--dark-hl-1);
|
|
46
|
-
--hl-2: var(--dark-hl-2);
|
|
47
|
-
--hl-3: var(--dark-hl-3);
|
|
48
|
-
--hl-4: var(--dark-hl-4);
|
|
49
|
-
--hl-5: var(--dark-hl-5);
|
|
50
|
-
--hl-6: var(--dark-hl-6);
|
|
51
|
-
--hl-7: var(--dark-hl-7);
|
|
52
|
-
--hl-8: var(--dark-hl-8);
|
|
53
|
-
--hl-9: var(--dark-hl-9);
|
|
54
|
-
--hl-10: var(--dark-hl-10);
|
|
55
|
-
--code-background: var(--dark-code-background);
|
|
56
|
-
} }
|
|
57
|
-
|
|
58
|
-
:root[data-theme='light'] {
|
|
59
|
-
--hl-0: var(--light-hl-0);
|
|
60
|
-
--hl-1: var(--light-hl-1);
|
|
61
|
-
--hl-2: var(--light-hl-2);
|
|
62
|
-
--hl-3: var(--light-hl-3);
|
|
63
|
-
--hl-4: var(--light-hl-4);
|
|
64
|
-
--hl-5: var(--light-hl-5);
|
|
65
|
-
--hl-6: var(--light-hl-6);
|
|
66
|
-
--hl-7: var(--light-hl-7);
|
|
67
|
-
--hl-8: var(--light-hl-8);
|
|
68
|
-
--hl-9: var(--light-hl-9);
|
|
69
|
-
--hl-10: var(--light-hl-10);
|
|
70
|
-
--code-background: var(--light-code-background);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
:root[data-theme='dark'] {
|
|
74
|
-
--hl-0: var(--dark-hl-0);
|
|
75
|
-
--hl-1: var(--dark-hl-1);
|
|
76
|
-
--hl-2: var(--dark-hl-2);
|
|
77
|
-
--hl-3: var(--dark-hl-3);
|
|
78
|
-
--hl-4: var(--dark-hl-4);
|
|
79
|
-
--hl-5: var(--dark-hl-5);
|
|
80
|
-
--hl-6: var(--dark-hl-6);
|
|
81
|
-
--hl-7: var(--dark-hl-7);
|
|
82
|
-
--hl-8: var(--dark-hl-8);
|
|
83
|
-
--hl-9: var(--dark-hl-9);
|
|
84
|
-
--hl-10: var(--dark-hl-10);
|
|
85
|
-
--code-background: var(--dark-code-background);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.hl-0 { color: var(--hl-0); }
|
|
89
|
-
.hl-1 { color: var(--hl-1); }
|
|
90
|
-
.hl-2 { color: var(--hl-2); }
|
|
91
|
-
.hl-3 { color: var(--hl-3); }
|
|
92
|
-
.hl-4 { color: var(--hl-4); }
|
|
93
|
-
.hl-5 { color: var(--hl-5); }
|
|
94
|
-
.hl-6 { color: var(--hl-6); }
|
|
95
|
-
.hl-7 { color: var(--hl-7); }
|
|
96
|
-
.hl-8 { color: var(--hl-8); }
|
|
97
|
-
.hl-9 { color: var(--hl-9); }
|
|
98
|
-
.hl-10 { color: var(--hl-10); }
|
|
99
|
-
pre, code { background: var(--code-background); }
|