@dxos/react-client 0.8.4-main.dedc0f3 → 0.8.4-main.e098934

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": "0.8.4-main.dedc0f3",
3
+ "version": "0.8.4-main.e098934",
4
4
  "description": "React client API",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -86,21 +86,21 @@
86
86
  },
87
87
  "dependencies": {
88
88
  "react-error-boundary": "^4.0.13",
89
- "@dxos/async": "0.8.4-main.dedc0f3",
90
- "@dxos/codec-protobuf": "0.8.4-main.dedc0f3",
91
- "@dxos/client": "0.8.4-main.dedc0f3",
92
- "@dxos/context": "0.8.4-main.dedc0f3",
93
- "@dxos/config": "0.8.4-main.dedc0f3",
94
- "@dxos/debug": "0.8.4-main.dedc0f3",
95
- "@dxos/echo-schema": "0.8.4-main.dedc0f3",
96
- "@dxos/echo-signals": "0.8.4-main.dedc0f3",
97
- "@dxos/echo": "0.8.4-main.dedc0f3",
98
- "@dxos/invariant": "0.8.4-main.dedc0f3",
99
- "@dxos/log": "0.8.4-main.dedc0f3",
100
- "@dxos/node-std": "0.8.4-main.dedc0f3",
101
- "@dxos/protocols": "0.8.4-main.dedc0f3",
102
- "@dxos/util": "0.8.4-main.dedc0f3",
103
- "@dxos/react-hooks": "0.8.4-main.dedc0f3"
89
+ "@dxos/client": "0.8.4-main.e098934",
90
+ "@dxos/async": "0.8.4-main.e098934",
91
+ "@dxos/codec-protobuf": "0.8.4-main.e098934",
92
+ "@dxos/debug": "0.8.4-main.e098934",
93
+ "@dxos/echo": "0.8.4-main.e098934",
94
+ "@dxos/context": "0.8.4-main.e098934",
95
+ "@dxos/echo-schema": "0.8.4-main.e098934",
96
+ "@dxos/echo-signals": "0.8.4-main.e098934",
97
+ "@dxos/log": "0.8.4-main.e098934",
98
+ "@dxos/node-std": "0.8.4-main.e098934",
99
+ "@dxos/config": "0.8.4-main.e098934",
100
+ "@dxos/protocols": "0.8.4-main.e098934",
101
+ "@dxos/react-hooks": "0.8.4-main.e098934",
102
+ "@dxos/util": "0.8.4-main.e098934",
103
+ "@dxos/invariant": "0.8.4-main.e098934"
104
104
  },
105
105
  "devDependencies": {
106
106
  "@types/react": "~18.2.0",
@@ -108,21 +108,21 @@
108
108
  "react": "~18.2.0",
109
109
  "react-dom": "~18.2.0",
110
110
  "typedoc": "0.28.1",
111
- "@dxos/random": "0.8.4-main.dedc0f3",
112
- "@dxos/react-ui-syntax-highlighter": "0.8.4-main.dedc0f3",
113
- "@dxos/react-ui": "0.8.4-main.dedc0f3",
114
- "@dxos/react-ui-theme": "0.8.4-main.dedc0f3",
115
- "@dxos/storybook-utils": "0.8.4-main.dedc0f3",
116
- "@dxos/test-utils": "0.8.4-main.dedc0f3"
111
+ "@dxos/random": "0.8.4-main.e098934",
112
+ "@dxos/react-ui": "0.8.4-main.e098934",
113
+ "@dxos/react-ui-theme": "0.8.4-main.e098934",
114
+ "@dxos/react-ui-syntax-highlighter": "0.8.4-main.e098934",
115
+ "@dxos/test-utils": "0.8.4-main.e098934",
116
+ "@dxos/storybook-utils": "0.8.4-main.e098934"
117
117
  },
118
118
  "peerDependencies": {
119
119
  "react": "~18.2.0",
120
120
  "react-dom": "~18.2.0"
121
121
  },
122
122
  "optionalDependencies": {
123
- "@dxos/random": "0.8.4-main.dedc0f3",
124
- "@dxos/react-ui-theme": "0.8.4-main.dedc0f3",
125
- "@dxos/react-ui": "0.8.4-main.dedc0f3"
123
+ "@dxos/random": "0.8.4-main.e098934",
124
+ "@dxos/react-ui-theme": "0.8.4-main.e098934",
125
+ "@dxos/react-ui": "0.8.4-main.e098934"
126
126
  },
127
127
  "publishConfig": {
128
128
  "access": "public"
@@ -4,7 +4,7 @@
4
4
 
5
5
  import { useMemo, useSyncExternalStore } from 'react';
6
6
 
7
- import { type Echo, Filter, type Live, Query, type Space, isSpace } from '@dxos/client/echo';
7
+ import { type Echo, Filter, type Live, Query, type Queue, type Space, isSpace } from '@dxos/client/echo';
8
8
 
9
9
  const EMPTY_ARRAY: never[] = [];
10
10
 
@@ -12,16 +12,24 @@ const noop = () => {};
12
12
 
13
13
  // TODO(dmaretskyi): Queries are fully serializable, so we can remove `deps` argument.
14
14
  interface UseQueryFn {
15
- <Q extends Query.Any>(spaceOrEcho: Space | Echo | undefined, query: Q, deps?: any[]): Live<Query.Type<Q>>[];
15
+ <Q extends Query.Any>(
16
+ spaceOrEcho: Space | Echo | Queue<any> | undefined,
17
+ query: Q,
18
+ deps?: any[],
19
+ ): Live<Query.Type<Q>>[];
16
20
 
17
- <F extends Filter.Any>(spaceOrEcho: Space | Echo | undefined, filter: F, deps?: any[]): Live<Filter.Type<F>>[];
21
+ <F extends Filter.Any>(
22
+ spaceOrEcho: Space | Echo | Queue<any> | undefined,
23
+ filter: F,
24
+ deps?: any[],
25
+ ): Live<Filter.Type<F>>[];
18
26
  }
19
27
 
20
28
  /**
21
29
  * Create subscription.
22
30
  */
23
31
  export const useQuery: UseQueryFn = (
24
- spaceOrEcho: Space | Echo | undefined,
32
+ spaceOrEcho: Space | Echo | Queue<any> | undefined,
25
33
  queryOrFilter: Query.Any | Filter.Any,
26
34
  deps?: any[],
27
35
  ): Live<unknown>[] => {