@dxos/react-client 2.29.2-dev.5bffba7a → 2.29.2-dev.60002bf1

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/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@dxos/react-client",
3
- "version": "2.29.2-dev.5bffba7a",
3
+ "version": "2.29.2-dev.60002bf1",
4
4
  "description": "React client API",
5
5
  "license": "MIT",
6
6
  "author": "DXOS.org",
7
7
  "main": "dist/src/index.js",
8
8
  "types": "dist/src/index.d.ts",
9
9
  "dependencies": {
10
- "@dxos/async": "2.29.2-dev.5bffba7a",
11
- "@dxos/bot-factory-client": "2.29.2-dev.5bffba7a",
12
- "@dxos/client": "2.29.2-dev.5bffba7a",
13
- "@dxos/config": "2.29.2-dev.5bffba7a",
14
- "@dxos/credentials": "2.29.2-dev.5bffba7a",
15
- "@dxos/crypto": "2.29.2-dev.5bffba7a",
16
- "@dxos/debug": "2.29.2-dev.5bffba7a",
17
- "@dxos/echo-db": "2.29.2-dev.5bffba7a",
18
- "@dxos/network-manager": "2.29.2-dev.5bffba7a",
19
- "@dxos/util": "2.29.2-dev.5bffba7a",
10
+ "@dxos/async": "2.29.2-dev.60002bf1",
11
+ "@dxos/bot-factory-client": "2.29.2-dev.60002bf1",
12
+ "@dxos/client": "2.29.2-dev.60002bf1",
13
+ "@dxos/config": "2.29.2-dev.60002bf1",
14
+ "@dxos/credentials": "2.29.2-dev.60002bf1",
15
+ "@dxos/crypto": "2.29.2-dev.60002bf1",
16
+ "@dxos/debug": "2.29.2-dev.60002bf1",
17
+ "@dxos/echo-db": "2.29.2-dev.60002bf1",
18
+ "@dxos/network-manager": "2.29.2-dev.60002bf1",
19
+ "@dxos/util": "2.29.2-dev.60002bf1",
20
20
  "assert": "^2.0.0",
21
21
  "debug": "^4.3.3",
22
22
  "ipfs-http-client": "~56.0.1",
@@ -2,10 +2,10 @@
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
4
 
5
- import { Client } from '@dxos/client';
5
+ import { Client, HaloProxy } from '@dxos/client';
6
6
 
7
7
  import { useInvitations } from './useInvitations';
8
8
 
9
9
  export const useHaloInvitations = (client: Client) => {
10
- return useInvitations(client.halo.invitationProxy);
10
+ return useInvitations((client.halo as HaloProxy).invitationProxy);
11
11
  };
@@ -11,7 +11,6 @@ export const useInvitations = (invitationProxy: InvitationProxy | undefined) =>
11
11
 
12
12
  useEffect(() => {
13
13
  setInvitations(invitationProxy?.activeInvitations ?? []);
14
-
15
14
  return invitationProxy?.invitationsUpdate.on(() => {
16
15
  setInvitations([...invitationProxy.activeInvitations]);
17
16
  });
@@ -2,6 +2,7 @@
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
4
 
5
+ import { PartyProxy } from '@dxos/client';
5
6
  import { PublicKey } from '@dxos/crypto';
6
7
 
7
8
  import { useParty } from '../echo-queries';
@@ -9,5 +10,5 @@ import { useInvitations } from './useInvitations';
9
10
 
10
11
  export const usePartyInvitations = (partyKey?: PublicKey) => {
11
12
  const party = useParty(partyKey);
12
- return useInvitations(party?.invitationProxy);
13
+ return useInvitations((party as PartyProxy)?.invitationProxy);
13
14
  };