@dxos/react-client 2.21.1 → 2.21.2-dev.2c52f4b6
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/.rush/temp/package-deps_build.json +2 -2
- package/.rush/temp/package-deps_build:test.json +1 -1
- package/dist/src/hooks/invitations/usePartyInvitations.d.ts.map +1 -1
- package/dist/src/hooks/invitations/usePartyInvitations.js +2 -3
- package/dist/src/hooks/invitations/usePartyInvitations.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -11
- package/react-client.build.log +6 -6
- package/src/hooks/invitations/usePartyInvitations.ts +2 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-client",
|
|
3
|
-
"version": "2.21.
|
|
3
|
+
"version": "2.21.2-dev.2c52f4b6",
|
|
4
4
|
"description": "React client API",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -8,22 +8,22 @@
|
|
|
8
8
|
"main": "dist/src/index.js",
|
|
9
9
|
"types": "dist/src/index.d.ts",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@dxos/async": "2.21.
|
|
12
|
-
"@dxos/bot-factory-client": "2.21.
|
|
13
|
-
"@dxos/client": "2.21.
|
|
14
|
-
"@dxos/config": "2.21.
|
|
15
|
-
"@dxos/credentials": "2.21.
|
|
16
|
-
"@dxos/crypto": "2.21.
|
|
17
|
-
"@dxos/debug": "2.21.
|
|
18
|
-
"@dxos/echo-db": "2.21.
|
|
19
|
-
"@dxos/util": "2.21.
|
|
11
|
+
"@dxos/async": "2.21.2-dev.2c52f4b6",
|
|
12
|
+
"@dxos/bot-factory-client": "2.21.2-dev.2c52f4b6",
|
|
13
|
+
"@dxos/client": "2.21.2-dev.2c52f4b6",
|
|
14
|
+
"@dxos/config": "2.21.2-dev.2c52f4b6",
|
|
15
|
+
"@dxos/credentials": "2.21.2-dev.2c52f4b6",
|
|
16
|
+
"@dxos/crypto": "2.21.2-dev.2c52f4b6",
|
|
17
|
+
"@dxos/debug": "2.21.2-dev.2c52f4b6",
|
|
18
|
+
"@dxos/echo-db": "2.21.2-dev.2c52f4b6",
|
|
19
|
+
"@dxos/util": "2.21.2-dev.2c52f4b6",
|
|
20
20
|
"assert": "^2.0.0",
|
|
21
21
|
"debug": "^4.3.3",
|
|
22
22
|
"react-display-name": "^0.2.5",
|
|
23
23
|
"use-subscription": "^1.4.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@dxos/esbuild-plugins": "2.21.
|
|
26
|
+
"@dxos/esbuild-plugins": "2.21.2-dev.2c52f4b6",
|
|
27
27
|
"@dxos/esbuild-server": "~1.7.4",
|
|
28
28
|
"@dxos/toolchain-node-library": "2.21.1",
|
|
29
29
|
"@mui/material": "^5.0.1",
|
package/react-client.build.log
CHANGED
|
@@ -2,10 +2,10 @@ Invoking: toolchain build:test
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
typescript
|
|
5
|
-
OK in
|
|
5
|
+
OK in 5758 ms
|
|
6
6
|
|
|
7
7
|
eslint
|
|
8
|
-
OK in
|
|
8
|
+
OK in 6339 ms
|
|
9
9
|
|
|
10
10
|
mocha
|
|
11
11
|
This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills
|
|
@@ -13,7 +13,7 @@ This browser doesn't support cancelAnimationFrame. Make sure that you load a pol
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
ClientProvider
|
|
16
|
-
✓ Renders with children
|
|
16
|
+
✓ Renders with children
|
|
17
17
|
✓ Provides the client
|
|
18
18
|
|
|
19
19
|
Client hook
|
|
@@ -26,8 +26,8 @@ This browser doesn't support cancelAnimationFrame. Make sure that you load a pol
|
|
|
26
26
|
✓ should return custom client config when used properly in a context
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
7 passing (
|
|
29
|
+
7 passing (256ms)
|
|
30
30
|
|
|
31
|
-
OK in
|
|
31
|
+
OK in 2209 ms
|
|
32
32
|
|
|
33
|
-
CHECK COMPLETE in
|
|
33
|
+
CHECK COMPLETE in 14328 ms
|
|
@@ -14,14 +14,12 @@ export const usePartyInvitations = (partyKey?: PublicKey) => {
|
|
|
14
14
|
const [invitations, setInvitations] = useState<InvitationRequest[]>(party?.activeInvitations ?? []);
|
|
15
15
|
|
|
16
16
|
useEffect(() => {
|
|
17
|
+
setInvitations(party?.activeInvitations ?? []);
|
|
18
|
+
|
|
17
19
|
return party?.invitationsUpdate.on(() => {
|
|
18
20
|
setInvitations([...party.activeInvitations]);
|
|
19
21
|
});
|
|
20
22
|
}, [party]);
|
|
21
23
|
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
setInvitations([]);
|
|
24
|
-
}, [party?.key.toHex()]);
|
|
25
|
-
|
|
26
24
|
return invitations;
|
|
27
25
|
};
|