@dxos/react-client 2.19.10-dev.4d1968fc → 2.19.10-dev.4d235152

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.19.10-dev.4d1968fc",
3
+ "version": "2.19.10-dev.4d235152",
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.19.10-dev.4d1968fc",
12
- "@dxos/bot-factory-client": "2.19.10-dev.4d1968fc",
13
- "@dxos/client": "2.19.10-dev.4d1968fc",
14
- "@dxos/config": "2.19.10-dev.4d1968fc",
15
- "@dxos/credentials": "2.19.10-dev.4d1968fc",
16
- "@dxos/crypto": "2.19.10-dev.4d1968fc",
17
- "@dxos/debug": "2.19.10-dev.4d1968fc",
18
- "@dxos/echo-db": "2.19.10-dev.4d1968fc",
19
- "@dxos/util": "2.19.10-dev.4d1968fc",
11
+ "@dxos/async": "2.19.10-dev.4d235152",
12
+ "@dxos/bot-factory-client": "2.19.10-dev.4d235152",
13
+ "@dxos/client": "2.19.10-dev.4d235152",
14
+ "@dxos/config": "2.19.10-dev.4d235152",
15
+ "@dxos/credentials": "2.19.10-dev.4d235152",
16
+ "@dxos/crypto": "2.19.10-dev.4d235152",
17
+ "@dxos/debug": "2.19.10-dev.4d235152",
18
+ "@dxos/echo-db": "2.19.10-dev.4d235152",
19
+ "@dxos/util": "2.19.10-dev.4d235152",
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.19.10-dev.4d1968fc",
26
+ "@dxos/esbuild-plugins": "2.19.10-dev.4d235152",
27
27
  "@dxos/esbuild-server": "~1.7.2",
28
28
  "@dxos/toolchain-node-library": "2.19.9",
29
29
  "@mui/material": "^5.0.1",
@@ -3,10 +3,10 @@ Invoking: toolchain build:test
3
3
  ENOENT: no such file or directory, stat '/home/github/_work/protocols/protocols/packages/sdk/react-client/src/proto/gen'
4
4
 
5
5
  typescript
6
- OK in 7190 ms
6
+ OK in 5817 ms
7
7
 
8
8
  eslint
9
- OK in 6036 ms
9
+ OK in 6678 ms
10
10
 
11
11
  mocha
12
12
  This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills
@@ -27,8 +27,8 @@ This browser doesn't support cancelAnimationFrame. Make sure that you load a pol
27
27
  ✓ should return custom client config when used properly in a context
28
28
 
29
29
 
30
- 7 passing (325ms)
30
+ 7 passing (254ms)
31
31
 
32
- OK in 2690 ms
32
+ OK in 2211 ms
33
33
 
34
- CHECK COMPLETE in 15922 ms
34
+ CHECK COMPLETE in 14714 ms
@@ -1,4 +0,0 @@
1
- import { InvitationRequest } from '@dxos/client';
2
- import { PublicKey } from '@dxos/crypto';
3
- export declare const usePartyInvitations: (partyKey?: PublicKey | undefined) => InvitationRequest[];
4
- //# sourceMappingURL=usePartyInvitations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usePartyInvitations.d.ts","sourceRoot":"","sources":["../../../../src/hooks/invitations/usePartyInvitations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzC,eAAO,MAAM,mBAAmB,2DAkB/B,CAAC"}
@@ -1,27 +0,0 @@
1
- "use strict";
2
- //
3
- // Copyright 2022 DXOS.org
4
- //
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.usePartyInvitations = void 0;
7
- const react_1 = require("react");
8
- const echo_queries_1 = require("../echo-queries");
9
- const usePartyInvitations = (partyKey) => {
10
- var _a;
11
- const party = (0, echo_queries_1.useParty)(partyKey);
12
- const [invitations, setInvitations] = (0, react_1.useState)((_a = party === null || party === void 0 ? void 0 : party.activeInvitations) !== null && _a !== void 0 ? _a : []);
13
- (0, react_1.useEffect)(() => {
14
- if (!party) {
15
- return;
16
- }
17
- return party.invitationsUpdate.on(() => {
18
- setInvitations([...party.activeInvitations]);
19
- });
20
- }, [party]);
21
- (0, react_1.useEffect)(() => {
22
- setInvitations([]);
23
- }, [party === null || party === void 0 ? void 0 : party.key.toHex()]);
24
- return invitations;
25
- };
26
- exports.usePartyInvitations = usePartyInvitations;
27
- //# sourceMappingURL=usePartyInvitations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usePartyInvitations.js","sourceRoot":"","sources":["../../../../src/hooks/invitations/usePartyInvitations.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,iCAA4C;AAK5C,kDAA2C;AAEpC,MAAM,mBAAmB,GAAG,CAAC,QAAoB,EAAE,EAAE;;IAC1D,MAAM,KAAK,GAAG,IAAA,uBAAQ,EAAC,QAAQ,CAAC,CAAC;IACjC,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAsB,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,iBAAiB,mCAAI,EAAE,CAAC,CAAC;IAEpG,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,CAAC,KAAK,EAAE;YACV,OAAO;SACR;QACD,OAAO,KAAK,CAAC,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE;YACrC,cAAc,CAAC,CAAC,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC;QAC/C,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,cAAc,CAAC,EAAE,CAAC,CAAC;IACrB,CAAC,EAAE,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IAEzB,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC;AAlBW,QAAA,mBAAmB,uBAkB9B"}