@dxos/react-client 2.33.9-dev.7d11f506 → 2.33.9-dev.845d4f3e

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,34 +1,31 @@
1
1
  {
2
2
  "name": "@dxos/react-client",
3
- "version": "2.33.9-dev.7d11f506",
3
+ "version": "2.33.9-dev.845d4f3e",
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.9-dev.7d11f506",
11
- "@dxos/bot-factory-client": "2.33.9-dev.7d11f506",
12
- "@dxos/client": "2.33.9-dev.7d11f506",
13
- "@dxos/codec-protobuf": "2.33.9-dev.7d11f506",
14
- "@dxos/config": "2.33.9-dev.7d11f506",
15
- "@dxos/debug": "2.33.9-dev.7d11f506",
16
- "@dxos/echo-db": "2.33.9-dev.7d11f506",
17
- "@dxos/network-manager": "2.33.9-dev.7d11f506",
18
- "@dxos/protocols": "2.33.9-dev.7d11f506",
19
- "@dxos/react-async": "2.33.9-dev.7d11f506",
20
- "@dxos/util": "2.33.9-dev.7d11f506",
10
+ "@dxos/async": "2.33.9-dev.845d4f3e",
11
+ "@dxos/bot-factory-client": "2.33.9-dev.845d4f3e",
12
+ "@dxos/client": "2.33.9-dev.845d4f3e",
13
+ "@dxos/codec-protobuf": "2.33.9-dev.845d4f3e",
14
+ "@dxos/config": "2.33.9-dev.845d4f3e",
15
+ "@dxos/debug": "2.33.9-dev.845d4f3e",
16
+ "@dxos/protocols": "2.33.9-dev.845d4f3e",
17
+ "@dxos/react-async": "2.33.9-dev.845d4f3e",
18
+ "@dxos/util": "2.33.9-dev.845d4f3e",
21
19
  "assert": "^2.0.0",
22
20
  "debug": "^4.3.3",
23
21
  "use-subscription": "^1.8.0"
24
22
  },
25
23
  "devDependencies": {
26
- "@dxos/crypto": "2.33.9-dev.7d11f506",
27
- "@dxos/esbuild-plugins": "~2.28.11",
24
+ "@dxos/esbuild-plugins": "~2.29.0",
28
25
  "@dxos/eslint-plugin": "~1.0.34",
29
26
  "@dxos/protocols-toolchain": "2.33.8",
30
27
  "@mui/material": "^5.8.1",
31
- "@playwright/test": "^1.14.1",
28
+ "@playwright/test": "^1.23.4",
32
29
  "@testing-library/react": "^11.0.4",
33
30
  "@testing-library/react-hooks": "5.1.2",
34
31
  "@types/debug": "^4.1.7",
@@ -42,7 +39,7 @@
42
39
  "eslint": "^7.12.1",
43
40
  "expect": "~27.0.2",
44
41
  "level-js": "^5.0.2",
45
- "playwright": "^1.14.1",
42
+ "playwright": "^1.23.4",
46
43
  "raf": "^3.4.1",
47
44
  "react": "^18.1.0",
48
45
  "react-dom": "^18.1.0",
@@ -0,0 +1,21 @@
1
+ Invoking: toolchain build:test
2
+
3
+ Tests started
4
+ Typescript
5
+ OK in 7769 ms
6
+ no problems
7
+ OK in 8267 ms
8
+
9
+ Mocha Tests
10
+
11
+
12
+ useSelection
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 (262ms)
15
+
16
+
17
+ 1 passing (270ms)
18
+
19
+ OK in 2725 ms
20
+
21
+ Tests complete in 18793 ms
@@ -5,8 +5,8 @@
5
5
  import { createContext, useContext } from 'react';
6
6
 
7
7
  import { BotFactoryClient } from '@dxos/bot-factory-client';
8
+ import { NetworkManager } from '@dxos/client';
8
9
  import { Config } from '@dxos/config';
9
- import { NetworkManager } from '@dxos/network-manager';
10
10
 
11
11
  export const BotFactoryClientContext = createContext<BotFactoryClient | undefined>(undefined);
12
12
 
@@ -9,7 +9,8 @@ import ReactDOM from 'react-dom';
9
9
  import { act } from 'react-dom/test-utils';
10
10
  import waitForExpect from 'wait-for-expect';
11
11
 
12
- import { Client, Party } from '@dxos/client';
12
+ import { Party } from '@dxos/client';
13
+ import { Client } from '@dxos/client/client';
13
14
 
14
15
  import { useSelection } from './useSelection';
15
16
 
@@ -6,14 +6,12 @@ import { useState } from 'react';
6
6
 
7
7
  import { trigger } from '@dxos/async';
8
8
 
9
- type Provider<T> = () => Promise<T>;
10
- type Resolver<T> = (value: T) => void;
11
- type Reset = () => void;
9
+ type Provider<T> = () => Promise<T>
10
+ type Resolver<T> = (value: T) => void
11
+ type Reset = () => void
12
12
 
13
13
  export const useSecretProvider = <T> (): [Provider<T>, Resolver<T>, Reset] => {
14
14
  const [[provider, resolver], setState] = useState(() => trigger<T>());
15
-
16
15
  const reset = () => setState(() => trigger<T>());
17
-
18
16
  return [provider, resolver, reset];
19
17
  };
@@ -11,7 +11,8 @@ import {
11
11
  import { generateSeedPhrase } from '@dxos/client';
12
12
 
13
13
  import {
14
- ClientProvider, useClient,
14
+ ClientProvider,
15
+ useClient,
15
16
  useParties,
16
17
  useProfile
17
18
  } from '../src';
@@ -28,7 +28,7 @@ export const ClientPanel = ({
28
28
  <JsonPanel value={client.config} />
29
29
  </Box>
30
30
  <Box sx={{ padding: 1 }}>
31
- <JsonPanel value={client.info()} />
31
+ <JsonPanel value={client.info} />
32
32
  </Box>
33
33
  <Box sx={{ padding: 1 }}>
34
34
  <JsonPanel value={profile?.username} />