@dxos/react-client 2.33.9-dev.bba8fc00 → 2.33.9-dev.ceab0857
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 +6 -6
- package/.rush/temp/package-deps_build_test.json +6 -6
- package/.rush/temp/shrinkwrap-deps.json +2 -2
- package/dist/src/hooks/client/useDevtools.d.ts +1 -1
- package/dist/src/hooks/client/useDevtools.d.ts.map +1 -1
- package/dist/src/hooks/client/useProfile.d.ts +1 -1
- package/dist/src/hooks/client/useProfile.d.ts.map +1 -1
- package/dist/src/hooks/echo-selections/useSelection.test.js +1 -1
- package/dist/src/hooks/echo-selections/useSelection.test.js.map +1 -1
- package/dist/src/hooks/invitations/useSecretProvider.d.ts.map +1 -1
- package/dist/src/hooks/invitations/useSecretProvider.js.map +1 -1
- package/dist/stories/halo-recovery.stories.d.ts.map +1 -1
- package/dist/stories/halo-recovery.stories.js.map +1 -1
- package/dist/stories/helpers/ClientPanel.js +1 -1
- package/dist/stories/helpers/ClientPanel.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -11
- package/src/hooks/echo-selections/useSelection.test.tsx +2 -1
- package/src/hooks/invitations/useSecretProvider.ts +3 -5
- package/stories/halo-recovery.stories.tsx +2 -1
- package/stories/helpers/ClientPanel.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-client",
|
|
3
|
-
"version": "2.33.9-dev.
|
|
3
|
+
"version": "2.33.9-dev.ceab0857",
|
|
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.
|
|
11
|
-
"@dxos/bot-factory-client": "2.33.9-dev.
|
|
12
|
-
"@dxos/client": "2.33.9-dev.
|
|
13
|
-
"@dxos/codec-protobuf": "2.33.9-dev.
|
|
14
|
-
"@dxos/config": "2.33.9-dev.
|
|
15
|
-
"@dxos/debug": "2.33.9-dev.
|
|
16
|
-
"@dxos/protocols": "2.33.9-dev.
|
|
17
|
-
"@dxos/react-async": "2.33.9-dev.
|
|
18
|
-
"@dxos/util": "2.33.9-dev.
|
|
10
|
+
"@dxos/async": "2.33.9-dev.ceab0857",
|
|
11
|
+
"@dxos/bot-factory-client": "2.33.9-dev.ceab0857",
|
|
12
|
+
"@dxos/client": "2.33.9-dev.ceab0857",
|
|
13
|
+
"@dxos/codec-protobuf": "2.33.9-dev.ceab0857",
|
|
14
|
+
"@dxos/config": "2.33.9-dev.ceab0857",
|
|
15
|
+
"@dxos/debug": "2.33.9-dev.ceab0857",
|
|
16
|
+
"@dxos/protocols": "2.33.9-dev.ceab0857",
|
|
17
|
+
"@dxos/react-async": "2.33.9-dev.ceab0857",
|
|
18
|
+
"@dxos/util": "2.33.9-dev.ceab0857",
|
|
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.
|
|
24
|
+
"@dxos/esbuild-plugins": "~2.28.12",
|
|
25
25
|
"@dxos/eslint-plugin": "~1.0.34",
|
|
26
26
|
"@dxos/protocols-toolchain": "2.33.8",
|
|
27
27
|
"@mui/material": "^5.8.1",
|
|
@@ -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 {
|
|
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
|
};
|
|
@@ -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} />
|