@dxos/react-client 2.33.7-dev.c2ba88fb → 2.33.8-dev.6bc74570

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.
Files changed (35) hide show
  1. package/.rush/temp/package-deps_build.json +10 -10
  2. package/.rush/temp/package-deps_build_test.json +10 -10
  3. package/.rush/temp/shrinkwrap-deps.json +1 -1
  4. package/README.md +1 -1
  5. package/dist/src/containers/BotFactoryClientProvider.js +2 -2
  6. package/dist/src/containers/BotFactoryClientProvider.js.map +1 -1
  7. package/dist/src/hooks/echo-queries/useContacts.d.ts +1 -1
  8. package/dist/src/hooks/echo-queries/useContacts.d.ts.map +1 -1
  9. package/dist/src/hooks/echo-queries/useContacts.js +1 -1
  10. package/dist/src/hooks/echo-queries/useContacts.js.map +1 -1
  11. package/dist/src/hooks/echo-queries/useParties.d.ts +1 -1
  12. package/dist/src/hooks/echo-queries/useParties.d.ts.map +1 -1
  13. package/dist/src/hooks/invitations/usePartyInvitations.d.ts +1 -1
  14. package/dist/src/hooks/invitations/usePartyInvitations.d.ts.map +1 -1
  15. package/dist/src/hooks/util/useResultSet.d.ts +1 -0
  16. package/dist/src/hooks/util/useResultSet.d.ts.map +1 -1
  17. package/dist/src/hooks/util/useResultSet.js +1 -0
  18. package/dist/src/hooks/util/useResultSet.js.map +1 -1
  19. package/dist/stories/halo-recovery.stories.d.ts.map +1 -1
  20. package/dist/stories/halo-recovery.stories.js +4 -5
  21. package/dist/stories/halo-recovery.stories.js.map +1 -1
  22. package/dist/stories/party-invitations.stories.js +3 -3
  23. package/dist/stories/party-invitations.stories.js.map +1 -1
  24. package/dist/tsconfig.tsbuildinfo +1 -1
  25. package/package.json +14 -14
  26. package/react-client.build.log +6 -6
  27. package/src/containers/BotFactoryClientProvider.tsx +1 -1
  28. package/src/hooks/echo-queries/useContacts.ts +1 -1
  29. package/src/hooks/echo-queries/useParties.ts +1 -1
  30. package/src/hooks/invitations/usePartyInvitations.ts +1 -1
  31. package/src/hooks/util/useResultSet.ts +1 -0
  32. package/stories/halo-recovery.stories.tsx +4 -6
  33. package/stories/party-invitations.stories.tsx +2 -2
  34. package/out/book/esbuild-server-book.js +0 -195182
  35. package/out/book/index.html +0 -14
package/package.json CHANGED
@@ -1,32 +1,32 @@
1
1
  {
2
2
  "name": "@dxos/react-client",
3
- "version": "2.33.7-dev.c2ba88fb",
3
+ "version": "2.33.8-dev.6bc74570",
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.33.7-dev.c2ba88fb",
11
- "@dxos/bot-factory-client": "2.33.7-dev.c2ba88fb",
12
- "@dxos/client": "2.33.7-dev.c2ba88fb",
13
- "@dxos/config": "2.33.7-dev.c2ba88fb",
14
- "@dxos/codec-protobuf": "2.33.7-dev.c2ba88fb",
15
- "@dxos/credentials": "2.33.7-dev.c2ba88fb",
16
- "@dxos/crypto": "2.33.7-dev.c2ba88fb",
17
- "@dxos/debug": "2.33.7-dev.c2ba88fb",
18
- "@dxos/echo-db": "2.33.7-dev.c2ba88fb",
19
- "@dxos/network-manager": "2.33.7-dev.c2ba88fb",
20
- "@dxos/react-async": "2.33.7-dev.c2ba88fb",
21
- "@dxos/util": "2.33.7-dev.c2ba88fb",
10
+ "@dxos/async": "2.33.8-dev.6bc74570",
11
+ "@dxos/bot-factory-client": "2.33.8-dev.6bc74570",
12
+ "@dxos/client": "2.33.8-dev.6bc74570",
13
+ "@dxos/config": "2.33.8-dev.6bc74570",
14
+ "@dxos/codec-protobuf": "2.33.8-dev.6bc74570",
15
+ "@dxos/debug": "2.33.8-dev.6bc74570",
16
+ "@dxos/echo-db": "2.33.8-dev.6bc74570",
17
+ "@dxos/network-manager": "2.33.8-dev.6bc74570",
18
+ "@dxos/protocols": "2.33.8-dev.6bc74570",
19
+ "@dxos/react-async": "2.33.8-dev.6bc74570",
20
+ "@dxos/util": "2.33.8-dev.6bc74570",
22
21
  "assert": "^2.0.0",
23
22
  "debug": "^4.3.3",
24
23
  "use-subscription": "^1.8.0"
25
24
  },
26
25
  "devDependencies": {
26
+ "@dxos/crypto": "2.33.8-dev.6bc74570",
27
27
  "@dxos/esbuild-plugins": "~2.28.10",
28
28
  "@dxos/eslint-plugin": "~1.0.34",
29
- "@dxos/protocols-toolchain": "2.33.6",
29
+ "@dxos/protocols-toolchain": "2.33.7",
30
30
  "@mui/material": "^5.8.1",
31
31
  "@playwright/test": "^1.14.1",
32
32
  "@testing-library/react": "^11.0.4",
@@ -2,20 +2,20 @@ Invoking: toolchain build:test
2
2
 
3
3
  Tests started
4
4
  Typescript
5
- OK in 7583 ms
5
+ OK in 8832 ms
6
6
  no problems
7
- OK in 8530 ms
7
+ OK in 7647 ms
8
8
 
9
9
  Mocha Tests
10
10
 
11
11
 
12
12
  useSelection
13
13
  Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot
14
- ✓ gets updated items selection (231ms)
14
+ ✓ gets updated items selection (302ms)
15
15
 
16
16
 
17
- 1 passing (237ms)
17
+ 1 passing (308ms)
18
18
 
19
- OK in 2247 ms
19
+ OK in 2689 ms
20
20
 
21
- Tests complete in 18379 ms
21
+ Tests complete in 19189 ms
@@ -5,8 +5,8 @@
5
5
  import React, { ReactNode, useState } from 'react';
6
6
 
7
7
  import { BotFactoryClient } from '@dxos/bot-factory-client';
8
- import { PublicKey } from '@dxos/crypto';
9
8
  import { raise } from '@dxos/debug';
9
+ import { PublicKey } from '@dxos/protocols';
10
10
  import { useAsyncEffect } from '@dxos/react-async';
11
11
 
12
12
  import { BotFactoryClientContext, createBotFactoryClient, useConfig } from '../hooks';
@@ -32,5 +32,5 @@ export const useContacts = () => {
32
32
  };
33
33
  }, []);
34
34
 
35
- return [contacts];
35
+ return contacts;
36
36
  };
@@ -5,7 +5,7 @@
5
5
  import { useEffect, useState } from 'react';
6
6
 
7
7
  import { Party } from '@dxos/client';
8
- import { PublicKeyLike } from '@dxos/crypto';
8
+ import { PublicKeyLike } from '@dxos/protocols';
9
9
 
10
10
  import { useClient } from '../client';
11
11
 
@@ -3,7 +3,7 @@
3
3
  //
4
4
 
5
5
  import { PartyProxy } from '@dxos/client';
6
- import { PublicKey } from '@dxos/crypto';
6
+ import { PublicKey } from '@dxos/protocols';
7
7
 
8
8
  import { useParty } from '../echo-queries';
9
9
  import { useInvitations } from './useInvitations';
@@ -11,6 +11,7 @@ import { ResultSet } from '@dxos/client';
11
11
  * A convenience hook used for subscribing to changing values of a result set.
12
12
  * Result sets are reactive query results from ECHO.
13
13
  * @param resultSet The result set to subscribe to
14
+ * @deprecated
14
15
  * @returns Always up-to-date value of the result set
15
16
  */
16
17
  export const useResultSet = <T>(resultSet: ResultSet<T>): T[] => useSubscription(useMemo(() => ({
@@ -8,7 +8,7 @@ import {
8
8
  Box, Button, Divider, Input, Paper, Toolbar
9
9
  } from '@mui/material';
10
10
 
11
- import { generateSeedPhrase, keyPairFromSeedPhrase } from '@dxos/crypto';
11
+ import { generateSeedPhrase } from '@dxos/client';
12
12
 
13
13
  import {
14
14
  ClientProvider, useClient,
@@ -29,11 +29,9 @@ const HaloCreationContainer = () => {
29
29
  const [seed, setSeed] = useState('');
30
30
 
31
31
  const handleCreateHalo = async () => {
32
- const seedPhrase = generateSeedPhrase();
33
- const keyPair = keyPairFromSeedPhrase(seedPhrase);
34
-
35
- await client.halo.createProfile({ ...keyPair });
36
- setSeed(seedPhrase);
32
+ const seedphrase = generateSeedPhrase();
33
+ await client.halo.createProfile({ seedphrase });
34
+ setSeed(seedphrase);
37
35
  };
38
36
 
39
37
  return (
@@ -9,7 +9,7 @@ import {
9
9
  } from '@mui/material';
10
10
 
11
11
  import { PartyInvitation, InvitationDescriptor } from '@dxos/client';
12
- import { PublicKey } from '@dxos/crypto';
12
+ import { PublicKey } from '@dxos/protocols';
13
13
  import { useAsyncEffect } from '@dxos/react-async';
14
14
 
15
15
  import {
@@ -40,7 +40,7 @@ const PartyInvitationContainer = () => {
40
40
  const [partyKey, setPartyKey] = useState<PublicKey>();
41
41
  const [invitationCode, setInvitationCode] = useState<string>();
42
42
  const [contact, setContact] = useState<string>();
43
- const [contacts] = useContacts();
43
+ const contacts = useContacts();
44
44
  const [pin, setPin] = useState('');
45
45
 
46
46
  const resetInvitations = () => {