@dxos/react-client 0.8.1 → 0.8.2-main.2f9c567
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 +115 -49
- 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 +113 -47
- 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 +115 -49
- package/dist/lib/node-esm/echo/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/echo/index.d.ts +2 -1
- package/dist/types/src/echo/index.d.ts.map +1 -1
- package/dist/types/src/echo/useQuery.d.ts +3 -2
- 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/useSyncState.d.ts +10 -0
- package/dist/types/src/echo/useSyncState.d.ts.map +1 -0
- package/package.json +28 -23
- package/project.json +2 -1
- package/src/echo/index.ts +2 -1
- package/src/echo/useQuery.ts +4 -4
- package/src/echo/useQueue.ts +3 -2
- package/src/echo/useSyncState.ts +78 -0
- package/tsconfig.json +3 -0
- package/typedoc/.nojekyll +1 -0
- package/typedoc/assets/hierarchy.js +1 -0
- package/typedoc/assets/highlight.css +99 -0
- package/typedoc/assets/icons.js +18 -0
- package/typedoc/assets/icons.svg +1 -0
- package/typedoc/assets/main.js +60 -0
- package/typedoc/assets/navigation.js +1 -0
- package/typedoc/assets/search.js +1 -0
- package/typedoc/assets/style.css +1640 -0
- package/typedoc/classes/echo.Filter.html +30 -0
- package/typedoc/classes/echo.Hypergraph.html +21 -0
- package/typedoc/classes/echo.PropertiesType.html +19 -0
- package/typedoc/classes/echo.Query.html +17 -0
- package/typedoc/classes/halo.KeyStore.html +6 -0
- package/typedoc/classes/index.AgentClientServiceProvider.html +10 -0
- package/typedoc/classes/index.AgentManagerClient.html +22 -0
- package/typedoc/classes/index.AlreadyJoinedError.html +15 -0
- package/typedoc/classes/index.ApiError.html +16 -0
- package/typedoc/classes/index.CancelledError.html +16 -0
- package/typedoc/classes/index.Client.html +51 -0
- package/typedoc/classes/index.ClientServicesProxy.html +12 -0
- package/typedoc/classes/index.Config.html +17 -0
- package/typedoc/classes/index.DataCorruptionError.html +16 -0
- package/typedoc/classes/index.DatabaseError.html +15 -0
- package/typedoc/classes/index.EntityNotFoundError.html +15 -0
- package/typedoc/classes/index.FakeAgentHostingProvider.html +7 -0
- package/typedoc/classes/index.IFrameManager.html +6 -0
- package/typedoc/classes/index.IdentityNotInitializedError.html +15 -0
- package/typedoc/classes/index.InvalidConfigError.html +16 -0
- package/typedoc/classes/index.InvalidInvitationError.html +15 -0
- package/typedoc/classes/index.InvalidInvitationExtensionRoleError.html +16 -0
- package/typedoc/classes/index.InvalidStorageVersionError.html +15 -0
- package/typedoc/classes/index.LocalClientServices.html +12 -0
- package/typedoc/classes/index.PublicKey.html +55 -0
- package/typedoc/classes/index.RemoteServiceConnectionError.html +15 -0
- package/typedoc/classes/index.RemoteServiceConnectionTimeout.html +15 -0
- package/typedoc/classes/index.RpcClosedError.html +15 -0
- package/typedoc/classes/index.RpcNotOpenError.html +15 -0
- package/typedoc/classes/index.SharedWorkerConnection.html +5 -0
- package/typedoc/classes/index.Shell.html +35 -0
- package/typedoc/classes/index.ShellManager.html +9 -0
- package/typedoc/classes/index.SystemError.html +16 -0
- package/typedoc/classes/index.UnknownModelError.html +15 -0
- package/typedoc/classes/index.WorkerClientServices.html +12 -0
- package/typedoc/classes/invitations.AuthenticatingInvitationObservable.html +30 -0
- package/typedoc/classes/invitations.CancellableInvitationObservable.html +29 -0
- package/typedoc/classes/invitations.InvitationEncoder.html +5 -0
- package/typedoc/classes/invitations.InvitationsProxy.html +12 -0
- package/typedoc/enums/devtools.KeyType.html +9 -0
- package/typedoc/enums/echo.HaloSpaceMember.Role.html +9 -0
- package/typedoc/enums/echo.IndexKind.Kind.html +6 -0
- package/typedoc/enums/echo.QueryOptions.DataLocation.html +6 -0
- package/typedoc/enums/echo.QueryOptions.ShowDeletedOption.html +6 -0
- package/typedoc/enums/echo.ResultFormat.html +10 -0
- package/typedoc/enums/echo.SpaceMember.PresenceState.html +5 -0
- package/typedoc/enums/echo.SpaceState.html +13 -0
- package/typedoc/enums/echo.TextKind.html +5 -0
- package/typedoc/enums/halo.Device.PresenceState.html +6 -0
- package/typedoc/enums/halo.DeviceKind.html +5 -0
- package/typedoc/enums/halo.DeviceType.html +9 -0
- package/typedoc/enums/index.ShellDisplay.html +5 -0
- package/typedoc/enums/index.ShellLayout.html +13 -0
- package/typedoc/enums/index.SystemStatus.html +5 -0
- package/typedoc/enums/invitations.Invitation.AuthMethod.html +6 -0
- package/typedoc/enums/invitations.Invitation.Kind.html +5 -0
- package/typedoc/enums/invitations.Invitation.State.html +13 -0
- package/typedoc/enums/invitations.Invitation.Type.html +6 -0
- package/typedoc/enums/mesh.ConnectionState.html +5 -0
- package/typedoc/functions/devtools.useDevtools.html +1 -0
- package/typedoc/functions/devtools.useStream.html +2 -0
- package/typedoc/functions/echo.useMembers.html +1 -0
- package/typedoc/functions/echo.useQuery.html +2 -0
- package/typedoc/functions/echo.useQueue.html +2 -0
- package/typedoc/functions/echo.useSchema.html +2 -0
- package/typedoc/functions/echo.useSpace.html +6 -0
- package/typedoc/functions/echo.useSpaceInvitation.html +1 -0
- package/typedoc/functions/echo.useSpaceInvitations.html +1 -0
- package/typedoc/functions/echo.useSpaceSyncState.html +2 -0
- package/typedoc/functions/echo.useSpaces.html +5 -0
- package/typedoc/functions/echo.useSubscription.html +3 -0
- package/typedoc/functions/echo.useSyncState.html +2 -0
- package/typedoc/functions/halo.useContacts.html +4 -0
- package/typedoc/functions/halo.useCredentials.html +1 -0
- package/typedoc/functions/halo.useDevices.html +1 -0
- package/typedoc/functions/halo.useHaloInvitation.html +1 -0
- package/typedoc/functions/halo.useHaloInvitations.html +1 -0
- package/typedoc/functions/halo.useIdentity.html +3 -0
- package/typedoc/functions/halo.useKeyStore.html +3 -0
- package/typedoc/functions/index.AgentHostingProvider.html +2 -0
- package/typedoc/functions/index.useAgentHostingClient.html +1 -0
- package/typedoc/functions/index.useClient.html +3 -0
- package/typedoc/functions/index.useClientStatus.html +1 -0
- package/typedoc/functions/index.useConfig.html +3 -0
- package/typedoc/functions/index.useShell.html +2 -0
- package/typedoc/functions/index.useShellDisplay.html +2 -0
- package/typedoc/functions/index.useStatus.html +1 -0
- package/typedoc/functions/invitations.useInvitationStatus.html +1 -0
- package/typedoc/functions/mesh.useNetworkStatus.html +2 -0
- package/typedoc/hierarchy.html +1 -0
- package/typedoc/index.html +23 -0
- package/typedoc/interfaces/devtools.DevtoolsHook.html +22 -0
- package/typedoc/interfaces/devtools.DevtoolsHost.html +26 -0
- package/typedoc/interfaces/echo.DocAccessor.html +3 -0
- package/typedoc/interfaces/echo.Echo.html +39 -0
- package/typedoc/interfaces/echo.EchoDatabase.html +22 -0
- package/typedoc/interfaces/echo.Expando.html +3 -0
- package/typedoc/interfaces/echo.HaloSpaceMember.html +18 -0
- package/typedoc/interfaces/echo.IDocHandle.html +6 -0
- package/typedoc/interfaces/echo.IndexKind.html +9 -0
- package/typedoc/interfaces/echo.QueryOptions.html +39 -0
- package/typedoc/interfaces/echo.Ref.html +24 -0
- package/typedoc/interfaces/echo.Space.html +39 -0
- package/typedoc/interfaces/echo.SpaceMember.html +7 -0
- package/typedoc/interfaces/echo.SpaceSyncState.PeerState.html +14 -0
- package/typedoc/interfaces/echo.SpaceSyncState.html +4 -0
- package/typedoc/interfaces/echo.SubscriptionHandle.html +5 -0
- package/typedoc/interfaces/echo.TypedObject.html +16 -0
- package/typedoc/interfaces/halo.Contact.html +10 -0
- package/typedoc/interfaces/halo.Credential.html +27 -0
- package/typedoc/interfaces/halo.Device.html +11 -0
- package/typedoc/interfaces/halo.Halo.html +16 -0
- package/typedoc/interfaces/halo.Identity.html +15 -0
- package/typedoc/interfaces/index.AgentHostingProviderClient.html +6 -0
- package/typedoc/interfaces/index.AppContextRequest.html +33 -0
- package/typedoc/interfaces/index.ClientServicesProvider.html +9 -0
- package/typedoc/interfaces/index.InvitationUrlRequest.html +9 -0
- package/typedoc/interfaces/index.LayoutRequest.html +29 -0
- package/typedoc/interfaces/index.ShellRuntime.html +15 -0
- package/typedoc/interfaces/invitations.Invitation.html +92 -0
- package/typedoc/interfaces/invitations.Invitations.html +5 -0
- package/typedoc/interfaces/mesh.GossipMessage.html +10 -0
- package/typedoc/interfaces/mesh.NetworkStatus.Signal.html +5 -0
- package/typedoc/interfaces/mesh.NetworkStatus.html +6 -0
- package/typedoc/media/LICENSE +8 -0
- package/typedoc/modules/devtools.html +1 -0
- package/typedoc/modules/echo.HaloSpaceMember.html +1 -0
- package/typedoc/modules/echo.IndexKind.html +1 -0
- package/typedoc/modules/echo.QueryOptions.html +1 -0
- package/typedoc/modules/echo.SpaceMember.html +1 -0
- package/typedoc/modules/echo.SpaceSyncState.html +1 -0
- package/typedoc/modules/echo.html +1 -0
- package/typedoc/modules/halo.Device.html +1 -0
- package/typedoc/modules/halo.html +1 -0
- package/typedoc/modules/index.html +1 -0
- package/typedoc/modules/invitations.Invitation.html +1 -0
- package/typedoc/modules/invitations.html +1 -0
- package/typedoc/modules/mesh.NetworkStatus.html +1 -0
- package/typedoc/modules/mesh.html +1 -0
- package/typedoc/modules/worker.html +1 -0
- package/typedoc/modules.html +1 -0
- package/typedoc/types/devtools.MountOptions.html +3 -0
- package/typedoc/types/echo.AnyLiveObject.html +1 -0
- package/typedoc/types/echo.FilterSource.html +1 -0
- package/typedoc/types/echo.Live.html +5 -0
- package/typedoc/types/echo.ObjectMeta.html +1 -0
- package/typedoc/types/echo.ObjectMigration.html +7 -0
- package/typedoc/types/echo.ObjectVersion.html +2 -0
- package/typedoc/types/echo.PeerSyncState.html +1 -0
- package/typedoc/types/echo.Progress.html +3 -0
- package/typedoc/types/echo.PropertiesTypeProps.html +1 -0
- package/typedoc/types/echo.Queue.html +10 -0
- package/typedoc/types/echo.Selection.html +1 -0
- package/typedoc/types/echo.SpaceId.html +6 -0
- package/typedoc/types/echo.SpaceSyncStateMap.html +1 -0
- package/typedoc/types/echo.UseQueueOptions.html +2 -0
- package/typedoc/types/echo.UseSpacesParams.html +3 -0
- package/typedoc/types/index.AgentHostingProviderProps.html +3 -0
- package/typedoc/types/index.ClientContextProps.html +3 -0
- package/typedoc/types/index.ClientOptions.html +12 -0
- package/typedoc/types/index.ClientProviderProps.html +2 -0
- package/typedoc/types/index.ClientServices.html +15 -0
- package/typedoc/types/index.FromAgentOptions.html +2 -0
- package/typedoc/types/index.PublicKeyLike.html +2 -0
- package/typedoc/types/invitations.InvitationAction.html +1 -0
- package/typedoc/types/invitations.InvitationResult.html +5 -0
- package/typedoc/types/invitations.InvitationStatus.html +15 -0
- package/typedoc/variables/devtools.mountDevtoolsHooks.html +1 -0
- package/typedoc/variables/devtools.unmountDevtoolsHooks.html +1 -0
- package/typedoc/variables/echo.DocAccessor.html +1 -0
- package/typedoc/variables/echo.EchoObjectSchema.html +1 -0
- package/typedoc/variables/echo.Expando.html +1 -0
- package/typedoc/variables/echo.FQ_ID_LENGTH.html +1 -0
- package/typedoc/variables/echo.OBJECT_ID_LENGTH.html +1 -0
- package/typedoc/variables/echo.ObjectVersion.html +1 -0
- package/typedoc/variables/echo.ReactiveObjectSchema.html +1 -0
- package/typedoc/variables/echo.Ref.html +2 -0
- package/typedoc/variables/echo.RefArray.html +2 -0
- package/typedoc/variables/echo.SPACE_ID_LENGTH.html +1 -0
- package/typedoc/variables/echo.SpaceId.html +1 -0
- package/typedoc/variables/echo.SpaceSchema.html +1 -0
- package/typedoc/variables/echo.TypedObject.html +3 -0
- package/typedoc/variables/echo.compareForeignKeys.html +1 -0
- package/typedoc/variables/echo.createDocAccessor.html +1 -0
- package/typedoc/variables/echo.createEmptyEdgeSyncState.html +1 -0
- package/typedoc/variables/echo.createObject.html +1 -0
- package/typedoc/variables/echo.createQueueDxn.html +1 -0
- package/typedoc/variables/echo.createSubscription.html +5 -0
- package/typedoc/variables/echo.defineObjectMigration.html +1 -0
- package/typedoc/variables/echo.fromCursor.html +1 -0
- package/typedoc/variables/echo.fullyQualifiedId.html +4 -0
- package/typedoc/variables/echo.getMeta.html +1 -0
- package/typedoc/variables/echo.getObjectCore.html +1 -0
- package/typedoc/variables/echo.getRangeFromCursor.html +1 -0
- package/typedoc/variables/echo.getSchema.html +2 -0
- package/typedoc/variables/echo.getSpace.html +1 -0
- package/typedoc/variables/echo.getSyncSummary.html +1 -0
- package/typedoc/variables/echo.getTextInRange.html +2 -0
- package/typedoc/variables/echo.getType.html +5 -0
- package/typedoc/variables/echo.getTypename.html +2 -0
- package/typedoc/variables/echo.getVersion.html +3 -0
- package/typedoc/variables/echo.hasType.html +2 -0
- package/typedoc/variables/echo.importSpace.html +1 -0
- package/typedoc/variables/echo.internalDecodeReference.html +1 -0
- package/typedoc/variables/echo.isEchoObject.html +2 -0
- package/typedoc/variables/echo.isLiveObject.html +2 -0
- package/typedoc/variables/echo.isSpace.html +1 -0
- package/typedoc/variables/echo.live.html +3 -0
- package/typedoc/variables/echo.loadObjectReferences.html +7 -0
- package/typedoc/variables/echo.makeRef.html +2 -0
- package/typedoc/variables/echo.parseFullyQualifiedId.html +2 -0
- package/typedoc/variables/echo.parseId.html +1 -0
- package/typedoc/variables/echo.refFromDXN.html +2 -0
- package/typedoc/variables/echo.toCursor.html +1 -0
- package/typedoc/variables/echo.toCursorRange.html +1 -0
- package/typedoc/variables/echo.updateText.html +6 -0
- package/typedoc/variables/index.AgentHostingContext.html +1 -0
- package/typedoc/variables/index.ClientProvider.html +3 -0
- package/typedoc/variables/index.DXOS_VERSION.html +1 -0
- package/typedoc/variables/index.Defaults.html +2 -0
- package/typedoc/variables/index.Dynamics.html +2 -0
- package/typedoc/variables/index.Envs.html +2 -0
- package/typedoc/variables/index.Local.html +2 -0
- package/typedoc/variables/index.Remote.html +1 -0
- package/typedoc/variables/index.Storage.html +2 -0
- package/typedoc/variables/index.createClientServices.html +4 -0
- package/typedoc/variables/index.fromAgent.html +2 -0
- package/typedoc/variables/index.fromHost.html +2 -0
- package/typedoc/variables/index.fromSocket.html +2 -0
- package/typedoc/variables/index.fromWorker.html +2 -0
- package/typedoc/variables/index.getUnixSocket.html +1 -0
- package/typedoc/variables/index.resolveRef.html +1 -0
- package/typedoc/variables/index.useMulticastObservable.html +3 -0
- package/typedoc/variables/worker.getWorkerServiceHost.html +1 -0
- package/typedoc/variables/worker.onconnect.html +1 -0
|
@@ -0,0 +1,10 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,UAAW,KAAK,KAAG,aAAa,GAAG,SAkBhE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-client",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2-main.2f9c567",
|
|
4
4
|
"description": "React client API",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -78,45 +78,50 @@
|
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"react-error-boundary": "^4.0.13",
|
|
81
|
-
"@dxos/
|
|
82
|
-
"@dxos/
|
|
83
|
-
"@dxos/
|
|
84
|
-
"@dxos/config": "0.8.
|
|
85
|
-
"@dxos/
|
|
86
|
-
"@dxos/
|
|
87
|
-
"@dxos/
|
|
88
|
-
"@dxos/
|
|
89
|
-
"@dxos/
|
|
90
|
-
"@dxos/
|
|
91
|
-
"@dxos/
|
|
92
|
-
"@dxos/
|
|
93
|
-
"@dxos/
|
|
81
|
+
"@dxos/async": "0.8.2-main.2f9c567",
|
|
82
|
+
"@dxos/client": "0.8.2-main.2f9c567",
|
|
83
|
+
"@dxos/codec-protobuf": "0.8.2-main.2f9c567",
|
|
84
|
+
"@dxos/config": "0.8.2-main.2f9c567",
|
|
85
|
+
"@dxos/echo-schema": "0.8.2-main.2f9c567",
|
|
86
|
+
"@dxos/context": "0.8.2-main.2f9c567",
|
|
87
|
+
"@dxos/debug": "0.8.2-main.2f9c567",
|
|
88
|
+
"@dxos/log": "0.8.2-main.2f9c567",
|
|
89
|
+
"@dxos/echo-signals": "0.8.2-main.2f9c567",
|
|
90
|
+
"@dxos/invariant": "0.8.2-main.2f9c567",
|
|
91
|
+
"@dxos/node-std": "0.8.2-main.2f9c567",
|
|
92
|
+
"@dxos/protocols": "0.8.2-main.2f9c567",
|
|
93
|
+
"@dxos/react-hooks": "0.8.2-main.2f9c567",
|
|
94
|
+
"@dxos/util": "0.8.2-main.2f9c567"
|
|
94
95
|
},
|
|
95
96
|
"devDependencies": {
|
|
96
97
|
"@types/react": "~18.2.0",
|
|
97
98
|
"@types/react-dom": "~18.2.0",
|
|
98
99
|
"react": "~18.2.0",
|
|
99
100
|
"react-dom": "~18.2.0",
|
|
100
|
-
"
|
|
101
|
-
"@dxos/
|
|
102
|
-
"@dxos/react-ui
|
|
103
|
-
"@dxos/react-ui-
|
|
104
|
-
"@dxos/
|
|
105
|
-
"@dxos/
|
|
101
|
+
"typedoc": "0.28.1",
|
|
102
|
+
"@dxos/random": "0.8.2-main.2f9c567",
|
|
103
|
+
"@dxos/react-ui": "0.8.2-main.2f9c567",
|
|
104
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.2-main.2f9c567",
|
|
105
|
+
"@dxos/react-ui-theme": "0.8.2-main.2f9c567",
|
|
106
|
+
"@dxos/storybook-utils": "0.8.2-main.2f9c567",
|
|
107
|
+
"@dxos/test-utils": "0.8.2-main.2f9c567"
|
|
106
108
|
},
|
|
107
109
|
"peerDependencies": {
|
|
108
110
|
"react": "~18.2.0",
|
|
109
111
|
"react-dom": "~18.2.0"
|
|
110
112
|
},
|
|
111
113
|
"optionalDependencies": {
|
|
112
|
-
"@dxos/random": "0.8.
|
|
113
|
-
"@dxos/react-ui": "0.8.
|
|
114
|
-
"@dxos/react-ui-theme": "0.8.
|
|
114
|
+
"@dxos/random": "0.8.2-main.2f9c567",
|
|
115
|
+
"@dxos/react-ui": "0.8.2-main.2f9c567",
|
|
116
|
+
"@dxos/react-ui-theme": "0.8.2-main.2f9c567"
|
|
115
117
|
},
|
|
116
118
|
"publishConfig": {
|
|
117
119
|
"access": "public"
|
|
118
120
|
},
|
|
119
121
|
"typedoc": {
|
|
120
122
|
"entryPoint": "src/index.ts"
|
|
123
|
+
},
|
|
124
|
+
"scripts": {
|
|
125
|
+
"typedoc": "typedoc --out typedoc"
|
|
121
126
|
}
|
|
122
127
|
}
|
package/project.json
CHANGED
package/src/echo/index.ts
CHANGED
|
@@ -6,8 +6,9 @@ export * from '@dxos/client/echo';
|
|
|
6
6
|
|
|
7
7
|
export * from './useMembers';
|
|
8
8
|
export * from './useQuery';
|
|
9
|
+
export * from './useQueue';
|
|
9
10
|
export * from './useSchema';
|
|
10
11
|
export * from './useSpaces';
|
|
11
12
|
export * from './useSpaceInvitations';
|
|
12
13
|
export * from './useSubscription';
|
|
13
|
-
export * from './
|
|
14
|
+
export * from './useSyncState';
|
package/src/echo/useQuery.ts
CHANGED
|
@@ -5,21 +5,21 @@
|
|
|
5
5
|
import { useMemo, useSyncExternalStore } from 'react';
|
|
6
6
|
|
|
7
7
|
import {
|
|
8
|
-
isSpace,
|
|
9
8
|
type Echo,
|
|
10
|
-
type FilterSource,
|
|
11
9
|
Filter,
|
|
10
|
+
type FilterSource,
|
|
12
11
|
type Query,
|
|
13
12
|
type QueryOptions,
|
|
14
|
-
type ReactiveEchoObject,
|
|
15
13
|
type Space,
|
|
14
|
+
isSpace,
|
|
16
15
|
} from '@dxos/client/echo';
|
|
16
|
+
import type { BaseObject } from '@dxos/echo-schema';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Create subscription.
|
|
20
20
|
*/
|
|
21
21
|
// TODO(burdon): Support typed operator filters (e.g., Note.filter(note => ...)).
|
|
22
|
-
export const useQuery = <T extends
|
|
22
|
+
export const useQuery = <T extends BaseObject>(
|
|
23
23
|
spaceOrEcho?: Space | Echo,
|
|
24
24
|
filter?: FilterSource<T>,
|
|
25
25
|
options?: QueryOptions,
|
package/src/echo/useQueue.ts
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import { useEffect, useMemo, useRef } from 'react';
|
|
6
6
|
|
|
7
|
-
import type
|
|
7
|
+
import { type Queue } from '@dxos/client/echo';
|
|
8
8
|
import { raise } from '@dxos/debug';
|
|
9
|
-
import type
|
|
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,6 +35,7 @@ export const useQueue = <T extends BaseEchoObject>(
|
|
|
35
35
|
if (!queueDxn) {
|
|
36
36
|
return undefined;
|
|
37
37
|
}
|
|
38
|
+
|
|
38
39
|
const { spaceId } = queueDxn.asQueueDXN() ?? raise(new TypeError('Invalid queue DXN'));
|
|
39
40
|
return client.spaces.get(spaceId)?.queues.get<T>(queueDxn);
|
|
40
41
|
}, [client, queueDxn?.toString()]);
|
|
@@ -0,0 +1,78 @@
|
|
|
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/tsconfig.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
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.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
window.hierarchyData = "eJyll01T2zAQhv+LzoJatmVZuTEpTNMp0IF+HBgOwhZBE0XKyEpK2uG/d5wPkLETr9tDJpNE7z7v7irS+g9y1voKje4IYRlO8/rFM5yQCFMaYRqlHDPG7jFy8lHLwitrKjT6gxIS1W9GzCUaobFW0vhb6VaqkNVXZ1eqlA5hNFOmRKOYZhgtnUYjpIyX7lEUsvqgTCmfT7ulp09+rhFGhRZVhUbIV+VJHevkVV//+KR06aRBozue5phEcYJJFCWYEEruXzBKMxqYPNNOinL92Sojy3Pn7JtBEud7gxviq7u25qCz7Rc1Nc9C6kJBWbuVPYRG3pTHOOMMM5LXCdMoD7siTCG1BifbXN+fKI15QPsovBhb55aLepMAkR0iAJdG77gPopIDiK/Lh5Q6zSimLMYZSXBGKc5Yhhnnm7KzODB0brzy6yvrL+zSQGvfIQIUgofciVkJrcqxNY9qCsS2Nf3UjCRt6sSslBcDOt+tA9CT9Cj92UtTKWturIZuCUAQgC8anjWTUu4bOjHKK6HVb/D/8IgY4INl7frceuvEVP6QrhrcoQ4twAVngYsbObde7s74sTVme5EAfRxT9zthJO938k3NpV36f/ay0wPcJOGRebMoxtpW4I3RXA+g0bxJu7L+eiHBhW8KADwWdv12XXk5B7KCxYPuvyjHNOY4S1LMEo4Z3dyDjIdl/m5mxv4yl7aUGminJelPnqdhsc+m0vjGbNOaig4PAge1/S7q+Sew8cUWQjdHrH5+hwgCjpNjE+HzGjCAtEUAMKEkAP+0bibd0JS7VBB047Dd9O2Trbwy033HtiFBk/Bh+dBpmBAeYRJvh+D6w3uTl8KIacvc8Q3Z0ABqEzfaciFmsivBfvghJWAQZ3njL7n0T/XFWog6zNttf/1QSbcSD1oeN7NfX532R4I8JfCsPavX2v9x1hNm0LzL8t0zRcqbE8We1rur33wFqqGbmUZ056NxmwURAadLpxPQAfPy8heShR9N"
|
|
@@ -0,0 +1,99 @@
|
|
|
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); }
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
addIcons();
|
|
3
|
+
function addIcons() {
|
|
4
|
+
if (document.readyState === "loading") return document.addEventListener("DOMContentLoaded", addIcons);
|
|
5
|
+
const svg = document.body.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "svg"));
|
|
6
|
+
svg.innerHTML = `<g id="icon-1" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-2" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">N</text></g><g id="icon-8" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">E</text></g><g id="icon-16" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-32" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">V</text></g><g id="icon-64" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-128" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-256" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">I</text></g><g id="icon-512" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-1024" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-2048" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-method)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4096" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-8192" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-16384" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-32768" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-65536" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-131072" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-262144" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-524288" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-1048576" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-2097152" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-4194304" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-reference)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">R</text></g><g id="icon-8388608" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="6,5 6,19 18,19, 18,10 13,5"></polygon><line x1="9" y1="9" x2="13" y2="9"></line><line x1="9" y1="12" x2="15" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line></g></g><g id="icon-folder" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="5,5 10,5 12,8 19,8 19,18 5,18"></polygon></g></g><g id="icon-chevronDown" class="tsd-no-select"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-icon-text)"></path></g><g id="icon-chevronSmall" class="tsd-no-select"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-icon-text)"></path></g><g id="icon-checkbox" class="tsd-no-select"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></g><g id="icon-menu" class="tsd-no-select"><rect x="1" y="3" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-icon-text)"></rect></g><g id="icon-search" class="tsd-no-select"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-icon-text)"></path></g><g id="icon-anchor" class="tsd-no-select"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g><g id="icon-alertNote" class="tsd-no-select"><path fill="var(--color-alert-note)" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></g><g id="icon-alertTip" class="tsd-no-select"><path fill="var(--color-alert-tip)" d="M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"></path></g><g id="icon-alertImportant" class="tsd-no-select"><path fill="var(--color-alert-important)" d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></g><g id="icon-alertWarning" class="tsd-no-select"><path fill="var(--color-alert-warning)" d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></g><g id="icon-alertCaution" class="tsd-no-select"><path fill="var(--color-alert-caution)" d="M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></g>`;
|
|
7
|
+
svg.style.display = "none";
|
|
8
|
+
if (location.protocol === "file:") updateUseElements();
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function updateUseElements() {
|
|
12
|
+
document.querySelectorAll("use").forEach(el => {
|
|
13
|
+
if (el.getAttribute("href").includes("#icon-")) {
|
|
14
|
+
el.setAttribute("href", el.getAttribute("href").replace(/.*#/, "#"));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
})()
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg"><g id="icon-1" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-2" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">N</text></g><g id="icon-8" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">E</text></g><g id="icon-16" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-32" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">V</text></g><g id="icon-64" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-128" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-256" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">I</text></g><g id="icon-512" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-1024" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-2048" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-method)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4096" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-8192" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-16384" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-32768" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-65536" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-131072" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-262144" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-524288" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-1048576" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-2097152" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-4194304" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-reference)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">R</text></g><g id="icon-8388608" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="6,5 6,19 18,19, 18,10 13,5"></polygon><line x1="9" y1="9" x2="13" y2="9"></line><line x1="9" y1="12" x2="15" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line></g></g><g id="icon-folder" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="5,5 10,5 12,8 19,8 19,18 5,18"></polygon></g></g><g id="icon-chevronDown" class="tsd-no-select"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-icon-text)"></path></g><g id="icon-chevronSmall" class="tsd-no-select"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-icon-text)"></path></g><g id="icon-checkbox" class="tsd-no-select"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></g><g id="icon-menu" class="tsd-no-select"><rect x="1" y="3" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-icon-text)"></rect></g><g id="icon-search" class="tsd-no-select"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-icon-text)"></path></g><g id="icon-anchor" class="tsd-no-select"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g><g id="icon-alertNote" class="tsd-no-select"><path fill="var(--color-alert-note)" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></g><g id="icon-alertTip" class="tsd-no-select"><path fill="var(--color-alert-tip)" d="M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"></path></g><g id="icon-alertImportant" class="tsd-no-select"><path fill="var(--color-alert-important)" d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></g><g id="icon-alertWarning" class="tsd-no-select"><path fill="var(--color-alert-warning)" d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></g><g id="icon-alertCaution" class="tsd-no-select"><path fill="var(--color-alert-caution)" d="M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></g></svg>
|