@dxos/react-client 2.25.1-dev.0ff9b5c9 → 2.25.1-dev.16862208

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/react-client",
3
- "version": "2.25.1-dev.0ff9b5c9",
3
+ "version": "2.25.1-dev.16862208",
4
4
  "description": "React client API",
5
5
  "keywords": [],
6
6
  "license": "AGPL-3.0",
@@ -8,22 +8,22 @@
8
8
  "main": "dist/src/index.js",
9
9
  "types": "dist/src/index.d.ts",
10
10
  "dependencies": {
11
- "@dxos/async": "2.25.1-dev.0ff9b5c9",
12
- "@dxos/bot-factory-client": "2.25.1-dev.0ff9b5c9",
13
- "@dxos/client": "2.25.1-dev.0ff9b5c9",
14
- "@dxos/config": "2.25.1-dev.0ff9b5c9",
15
- "@dxos/credentials": "2.25.1-dev.0ff9b5c9",
16
- "@dxos/crypto": "2.25.1-dev.0ff9b5c9",
17
- "@dxos/debug": "2.25.1-dev.0ff9b5c9",
18
- "@dxos/echo-db": "2.25.1-dev.0ff9b5c9",
19
- "@dxos/util": "2.25.1-dev.0ff9b5c9",
11
+ "@dxos/async": "2.25.1-dev.16862208",
12
+ "@dxos/bot-factory-client": "2.25.1-dev.16862208",
13
+ "@dxos/client": "2.25.1-dev.16862208",
14
+ "@dxos/config": "2.25.1-dev.16862208",
15
+ "@dxos/credentials": "2.25.1-dev.16862208",
16
+ "@dxos/crypto": "2.25.1-dev.16862208",
17
+ "@dxos/debug": "2.25.1-dev.16862208",
18
+ "@dxos/echo-db": "2.25.1-dev.16862208",
19
+ "@dxos/util": "2.25.1-dev.16862208",
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.25.1-dev.0ff9b5c9",
26
+ "@dxos/esbuild-plugins": "2.25.1-dev.16862208",
27
27
  "@dxos/esbuild-server": "~1.7.4",
28
28
  "@dxos/toolchain-node-library": "2.25.0",
29
29
  "@mui/material": "^5.0.1",
@@ -5,4 +5,3 @@
5
5
  export * from './useContacts';
6
6
  export * from './useMembers';
7
7
  export * from './useParties';
8
- export * from './useRemoteParties';
@@ -1,7 +0,0 @@
1
- import { Party } from '@dxos/client/src/proto/gen/dxos/client';
2
- /**
3
- * Get all Parties available to current user.
4
- * Requires ClientContext to be set via ClientProvider.
5
- */
6
- export declare const useRemoteParties: () => Party[];
7
- //# sourceMappingURL=useRemoteParties.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useRemoteParties.d.ts","sourceRoot":"","sources":["../../../../src/hooks/echo-queries/useRemoteParties.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,EAAE,MAAM,wCAAwC,CAAC;AAI/D;;;GAGG;AACH,eAAO,MAAM,gBAAgB,eAY5B,CAAC"}
@@ -1,24 +0,0 @@
1
- "use strict";
2
- //
3
- // Copyright 2020 DXOS.org
4
- //
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.useRemoteParties = void 0;
7
- const react_1 = require("react");
8
- const client_1 = require("../client");
9
- /**
10
- * Get all Parties available to current user.
11
- * Requires ClientContext to be set via ClientProvider.
12
- */
13
- const useRemoteParties = () => {
14
- const client = (0, client_1.useClient)();
15
- const [parties, setParties] = (0, react_1.useState)([]);
16
- (0, react_1.useEffect)(() => {
17
- const stream = client.services.PartyService.SubscribeParties();
18
- stream.subscribe(result => { var _a; return setParties((_a = result.parties) !== null && _a !== void 0 ? _a : []); }, console.error);
19
- return () => stream.close();
20
- }, []);
21
- return parties;
22
- };
23
- exports.useRemoteParties = useRemoteParties;
24
- //# sourceMappingURL=useRemoteParties.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useRemoteParties.js","sourceRoot":"","sources":["../../../../src/hooks/echo-queries/useRemoteParties.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,iCAA4C;AAI5C,sCAAsC;AAEtC;;;GAGG;AACI,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACnC,MAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAC;IAC3B,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,EAAU,EAAE,CAAC,CAAC;IAEpD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,gBAAgB,EAAE,CAAC;QAC/D,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,WAAC,OAAA,UAAU,CAAC,MAAA,MAAM,CAAC,OAAO,mCAAI,EAAE,CAAC,CAAA,EAAA,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;QAE5E,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IAC9B,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAZW,QAAA,gBAAgB,oBAY3B"}
@@ -1,27 +0,0 @@
1
- //
2
- // Copyright 2020 DXOS.org
3
- //
4
-
5
- import { useEffect, useState } from 'react';
6
-
7
- import { Party } from '@dxos/client/src/proto/gen/dxos/client';
8
-
9
- import { useClient } from '../client';
10
-
11
- /**
12
- * Get all Parties available to current user.
13
- * Requires ClientContext to be set via ClientProvider.
14
- */
15
- export const useRemoteParties = () => {
16
- const client = useClient();
17
- const [parties, setParties] = useState<Party[]>([]);
18
-
19
- useEffect(() => {
20
- const stream = client.services.PartyService.SubscribeParties();
21
- stream.subscribe(result => setParties(result.parties ?? []), console.error);
22
-
23
- return () => stream.close();
24
- }, []);
25
-
26
- return parties;
27
- };