@dxos/react-client 2.33.9-dev.9dc01397 → 2.33.9-dev.a2586ac4

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,27 +1,27 @@
1
1
  {
2
2
  "name": "@dxos/react-client",
3
- "version": "2.33.9-dev.9dc01397",
3
+ "version": "2.33.9-dev.a2586ac4",
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.9dc01397",
11
- "@dxos/bot-factory-client": "2.33.9-dev.9dc01397",
12
- "@dxos/client": "2.33.9-dev.9dc01397",
13
- "@dxos/codec-protobuf": "2.33.9-dev.9dc01397",
14
- "@dxos/config": "2.33.9-dev.9dc01397",
15
- "@dxos/debug": "2.33.9-dev.9dc01397",
16
- "@dxos/protocols": "2.33.9-dev.9dc01397",
17
- "@dxos/react-async": "2.33.9-dev.9dc01397",
18
- "@dxos/util": "2.33.9-dev.9dc01397",
10
+ "@dxos/async": "2.33.9-dev.a2586ac4",
11
+ "@dxos/bot-factory-client": "2.33.9-dev.a2586ac4",
12
+ "@dxos/client": "2.33.9-dev.a2586ac4",
13
+ "@dxos/codec-protobuf": "2.33.9-dev.a2586ac4",
14
+ "@dxos/config": "2.33.9-dev.a2586ac4",
15
+ "@dxos/debug": "2.33.9-dev.a2586ac4",
16
+ "@dxos/protocols": "2.33.9-dev.a2586ac4",
17
+ "@dxos/react-async": "2.33.9-dev.a2586ac4",
18
+ "@dxos/util": "2.33.9-dev.a2586ac4",
19
19
  "assert": "^2.0.0",
20
20
  "debug": "^4.3.3",
21
21
  "use-subscription": "^1.8.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@dxos/esbuild-plugins": "~2.28.11",
24
+ "@dxos/esbuild-plugins": "~2.29.0",
25
25
  "@dxos/eslint-plugin": "~1.0.34",
26
26
  "@dxos/protocols-toolchain": "2.33.8",
27
27
  "@mui/material": "^5.8.1",
@@ -30,7 +30,7 @@
30
30
  "@testing-library/react-hooks": "5.1.2",
31
31
  "@types/debug": "^4.1.7",
32
32
  "@types/level-js": "~4.0.1",
33
- "@types/mocha": "~8.2.2",
33
+ "@types/mocha": "^8.2.2",
34
34
  "@types/node": "^16.11.27",
35
35
  "@types/react": "^18.0.9",
36
36
  "@types/react-dom": "^18.0.5",
@@ -2,20 +2,20 @@ Invoking: toolchain build:test
2
2
 
3
3
  Tests started
4
4
  Typescript
5
- OK in 7648 ms
5
+ OK in 10435 ms
6
6
  no problems
7
- OK in 7790 ms
7
+ OK in 10162 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 (287ms)
14
+ ✓ gets updated items selection (249ms)
15
15
 
16
16
 
17
- 1 passing (294ms)
17
+ 1 passing (255ms)
18
18
 
19
- OK in 3060 ms
19
+ OK in 2618 ms
20
20
 
21
- Tests complete in 18525 ms
21
+ Tests complete in 23246 ms
@@ -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';