@dxos/react-client 2.29.1 → 2.29.2-dev.14dd126a
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 +4 -4
- package/.rush/temp/package-deps_build:test.json +4 -4
- package/.rush/temp/package-deps_prerelease.json +4 -4
- package/dist/src/hooks/echo-selections/useSelection.js +1 -1
- package/dist/src/hooks/echo-selections/useSelection.js.map +1 -1
- package/dist/src/hooks/invitations/useHaloInvitations.d.ts.map +1 -1
- package/dist/src/hooks/invitations/useHaloInvitations.js.map +1 -1
- package/dist/src/hooks/invitations/useInvitations.d.ts.map +1 -1
- package/dist/src/hooks/invitations/useInvitations.js.map +1 -1
- package/dist/src/hooks/invitations/usePartyInvitations.d.ts.map +1 -1
- package/dist/src/hooks/invitations/usePartyInvitations.js +2 -1
- package/dist/src/hooks/invitations/usePartyInvitations.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/out/book/esbuild-server-book.js +200889 -0
- package/out/book/index.html +14 -0
- package/package.json +11 -11
- package/src/hooks/echo-selections/useSelection.ts +1 -1
- package/src/hooks/invitations/useHaloInvitations.ts +2 -2
- package/src/hooks/invitations/useInvitations.ts +0 -1
- package/src/hooks/invitations/usePartyInvitations.ts +2 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
+
<link rel="stylesheet" href="esbuild-server-book.css">
|
|
8
|
+
<title>ESBuild-Server Book</title>
|
|
9
|
+
</head>
|
|
10
|
+
<body>
|
|
11
|
+
<div id='root'></div>
|
|
12
|
+
<script src='esbuild-server-book.js'></script>
|
|
13
|
+
</body>
|
|
14
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-client",
|
|
3
|
-
"version": "2.29.
|
|
3
|
+
"version": "2.29.2-dev.14dd126a",
|
|
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.
|
|
11
|
-
"@dxos/bot-factory-client": "2.29.
|
|
12
|
-
"@dxos/client": "2.29.
|
|
13
|
-
"@dxos/config": "2.29.
|
|
14
|
-
"@dxos/credentials": "2.29.
|
|
15
|
-
"@dxos/crypto": "2.29.
|
|
16
|
-
"@dxos/debug": "2.29.
|
|
17
|
-
"@dxos/echo-db": "2.29.
|
|
18
|
-
"@dxos/network-manager": "2.29.
|
|
19
|
-
"@dxos/util": "2.29.
|
|
10
|
+
"@dxos/async": "2.29.2-dev.14dd126a",
|
|
11
|
+
"@dxos/bot-factory-client": "2.29.2-dev.14dd126a",
|
|
12
|
+
"@dxos/client": "2.29.2-dev.14dd126a",
|
|
13
|
+
"@dxos/config": "2.29.2-dev.14dd126a",
|
|
14
|
+
"@dxos/credentials": "2.29.2-dev.14dd126a",
|
|
15
|
+
"@dxos/crypto": "2.29.2-dev.14dd126a",
|
|
16
|
+
"@dxos/debug": "2.29.2-dev.14dd126a",
|
|
17
|
+
"@dxos/echo-db": "2.29.2-dev.14dd126a",
|
|
18
|
+
"@dxos/network-manager": "2.29.2-dev.14dd126a",
|
|
19
|
+
"@dxos/util": "2.29.2-dev.14dd126a",
|
|
20
20
|
"assert": "^2.0.0",
|
|
21
21
|
"debug": "^4.3.3",
|
|
22
22
|
"ipfs-http-client": "~56.0.1",
|
|
@@ -84,5 +84,5 @@ export const useReducer = <T extends Entity<any>, R> (
|
|
|
84
84
|
const coerceSelection = <T extends Entity>(
|
|
85
85
|
value: Selection<T> | SelectionResult<T> | Falsy
|
|
86
86
|
): SelectionResult<T> | undefined => {
|
|
87
|
-
return !value ? undefined : value instanceof Selection ? value.
|
|
87
|
+
return !value ? undefined : value instanceof Selection ? value.exec() : value;
|
|
88
88
|
};
|
|
@@ -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
|
};
|