@dxos/react-client 2.19.10-dev.957cba98 → 2.19.11-dev.36d91198
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 +7 -7
- package/.rush/temp/package-deps_build:test.json +7 -7
- package/dist/src/hooks/client/useConfig.d.ts +1 -1
- package/dist/src/hooks/client/useConfig.js +1 -1
- package/dist/src/hooks/client/useProfile.d.ts +1 -1
- package/dist/src/hooks/client/useProfile.js +1 -1
- package/dist/src/hooks/echo-queries/useContacts.d.ts +1 -1
- package/dist/src/hooks/echo-queries/useContacts.js +1 -1
- package/dist/src/hooks/echo-queries/useParties.d.ts +2 -2
- package/dist/src/hooks/echo-queries/useParties.js +2 -2
- package/dist/src/hooks/echo-queries/useRemoteParties.d.ts +1 -1
- package/dist/src/hooks/echo-queries/useRemoteParties.js +1 -1
- package/dist/stories/party-invitations.stories.js +2 -2
- package/dist/stories/party-invitations.stories.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +12 -12
- package/src/hooks/client/useConfig.ts +1 -1
- package/src/hooks/client/useProfile.ts +1 -1
- package/src/hooks/echo-queries/useContacts.ts +1 -1
- package/src/hooks/echo-queries/useParties.ts +2 -2
- package/src/hooks/echo-queries/useRemoteParties.ts +1 -1
- package/stories/party-invitations.stories.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-client",
|
|
3
|
-
"version": "2.19.
|
|
3
|
+
"version": "2.19.11-dev.36d91198",
|
|
4
4
|
"description": "React client API",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -8,24 +8,24 @@
|
|
|
8
8
|
"main": "dist/src/index.js",
|
|
9
9
|
"types": "dist/src/index.d.ts",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@dxos/async": "2.19.
|
|
12
|
-
"@dxos/bot-factory-client": "2.19.
|
|
13
|
-
"@dxos/client": "2.19.
|
|
14
|
-
"@dxos/config": "2.19.
|
|
15
|
-
"@dxos/credentials": "2.19.
|
|
16
|
-
"@dxos/crypto": "2.19.
|
|
17
|
-
"@dxos/debug": "2.19.
|
|
18
|
-
"@dxos/echo-db": "2.19.
|
|
19
|
-
"@dxos/util": "2.19.
|
|
11
|
+
"@dxos/async": "2.19.11-dev.36d91198",
|
|
12
|
+
"@dxos/bot-factory-client": "2.19.11-dev.36d91198",
|
|
13
|
+
"@dxos/client": "2.19.11-dev.36d91198",
|
|
14
|
+
"@dxos/config": "2.19.11-dev.36d91198",
|
|
15
|
+
"@dxos/credentials": "2.19.11-dev.36d91198",
|
|
16
|
+
"@dxos/crypto": "2.19.11-dev.36d91198",
|
|
17
|
+
"@dxos/debug": "2.19.11-dev.36d91198",
|
|
18
|
+
"@dxos/echo-db": "2.19.11-dev.36d91198",
|
|
19
|
+
"@dxos/util": "2.19.11-dev.36d91198",
|
|
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.19.
|
|
26
|
+
"@dxos/esbuild-plugins": "2.19.11-dev.36d91198",
|
|
27
27
|
"@dxos/esbuild-server": "~1.7.2",
|
|
28
|
-
"@dxos/toolchain-node-library": "2.19.
|
|
28
|
+
"@dxos/toolchain-node-library": "2.19.10",
|
|
29
29
|
"@mui/material": "^5.0.1",
|
|
30
30
|
"@testing-library/react": "^11.0.4",
|
|
31
31
|
"@testing-library/react-hooks": "5.1.2",
|
|
@@ -10,7 +10,7 @@ import { ClientContext } from './context';
|
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Hook returning config object used to initialize the DXOS client instance.
|
|
13
|
-
* Requires
|
|
13
|
+
* Requires ClientContext to be set via ClientProvider.
|
|
14
14
|
*/
|
|
15
15
|
export const useConfig = () => {
|
|
16
16
|
const { client } = useContext(ClientContext) ?? raise(new Error('Missing ClientContext.'));
|
|
@@ -8,7 +8,7 @@ import { useClient } from './useClient';
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Hook returning DXOS user profile object.
|
|
11
|
-
* Requires
|
|
11
|
+
* Requires ClientContext to be set via ClientProvider.
|
|
12
12
|
*/
|
|
13
13
|
export const useProfile = () => {
|
|
14
14
|
const client = useClient();
|
|
@@ -11,7 +11,7 @@ import { useClient } from '../client';
|
|
|
11
11
|
/**
|
|
12
12
|
* Returns all known Contacts across all Parties.
|
|
13
13
|
* Contacts are known members of a common Party.
|
|
14
|
-
* Requires
|
|
14
|
+
* Requires ClientContext to be set via ClientProvider.
|
|
15
15
|
*/
|
|
16
16
|
export const useContacts = () => {
|
|
17
17
|
const client = useClient();
|
|
@@ -11,7 +11,7 @@ import { useClient } from '../client';
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Get a specific Party.
|
|
14
|
-
* Requires
|
|
14
|
+
* Requires ClientContext to be set via ClientProvider.
|
|
15
15
|
*/
|
|
16
16
|
export const useParty = (partyKey?: PublicKeyLike): PartyProxy | undefined => {
|
|
17
17
|
const client = useClient();
|
|
@@ -21,7 +21,7 @@ export const useParty = (partyKey?: PublicKeyLike): PartyProxy | undefined => {
|
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Get all Parties available to current user.
|
|
24
|
-
* Requires
|
|
24
|
+
* Requires ClientContext to be set via ClientProvider.
|
|
25
25
|
*/
|
|
26
26
|
export const useParties = () => {
|
|
27
27
|
const client = useClient();
|
|
@@ -10,7 +10,7 @@ import { useClient } from '../client';
|
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Get all Parties available to current user.
|
|
13
|
-
* Requires
|
|
13
|
+
* Requires ClientContext to be set via ClientProvider.
|
|
14
14
|
*/
|
|
15
15
|
export const useRemoteParties = () => {
|
|
16
16
|
const client = useClient();
|
|
@@ -78,7 +78,7 @@ const PartyInvitationContainer = () => {
|
|
|
78
78
|
} else {
|
|
79
79
|
const invitation = await client.echo.createInvitation(partyKey!);
|
|
80
80
|
invitation.connected.on(() => setPin(invitation.secret.toString()));
|
|
81
|
-
invitation.
|
|
81
|
+
invitation.finished.on(() => resetInvitations());
|
|
82
82
|
setInvitationCode(encodeInvitation(invitation.descriptor));
|
|
83
83
|
}
|
|
84
84
|
});
|
|
@@ -156,7 +156,7 @@ const PartyJoinContainer = () => {
|
|
|
156
156
|
|
|
157
157
|
try {
|
|
158
158
|
const invitation = decodeInvitation(invitationCode);
|
|
159
|
-
if (invitation.type === InvitationDescriptorType.
|
|
159
|
+
if (invitation.type === InvitationDescriptorType.OFFLINE) {
|
|
160
160
|
const party = await client.echo.joinParty(invitation);
|
|
161
161
|
await party.open();
|
|
162
162
|
setStatus({ party: party.key.toHex() });
|