@rstreamlabs/react 1.5.0 → 1.6.2

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.
@@ -20,7 +20,11 @@ function RstreamProvider({ options, children }) {
20
20
  () => ({ error, tunnels, clients }),
21
21
  [error, tunnels, clients]
22
22
  );
23
- return /* @__PURE__ */ jsx(RstreamContext.Provider, { value, children });
23
+ const content = isRenderProp(children) ? children(value) : children;
24
+ return /* @__PURE__ */ jsx(RstreamContext.Provider, { value, children: content });
25
+ }
26
+ function isRenderProp(children) {
27
+ return typeof children === "function";
24
28
  }
25
29
 
26
30
  export {
@@ -38,6 +38,8 @@ declare function useRstream(options?: UseRstreamOptions): {
38
38
  status: "online" | "offline";
39
39
  client_id: string;
40
40
  user_id: string;
41
+ project_id: string;
42
+ workspace_id: string;
41
43
  id: string;
42
44
  type?: "bytestream" | "datagram" | undefined;
43
45
  name?: string | undefined;
@@ -66,6 +68,8 @@ declare function useRstream(options?: UseRstreamOptions): {
66
68
  clients: {
67
69
  status: "online" | "offline";
68
70
  user_id: string;
71
+ project_id: string;
72
+ workspace_id: string;
69
73
  id: string;
70
74
  labels?: Record<string, string | undefined> | undefined;
71
75
  details?: {
@@ -38,6 +38,8 @@ declare function useRstream(options?: UseRstreamOptions): {
38
38
  status: "online" | "offline";
39
39
  client_id: string;
40
40
  user_id: string;
41
+ project_id: string;
42
+ workspace_id: string;
41
43
  id: string;
42
44
  type?: "bytestream" | "datagram" | undefined;
43
45
  name?: string | undefined;
@@ -66,6 +68,8 @@ declare function useRstream(options?: UseRstreamOptions): {
66
68
  clients: {
67
69
  status: "online" | "offline";
68
70
  user_id: string;
71
+ project_id: string;
72
+ workspace_id: string;
69
73
  id: string;
70
74
  labels?: Record<string, string | undefined> | undefined;
71
75
  details?: {
package/dist/index.js CHANGED
@@ -330,7 +330,11 @@ function RstreamProvider({ options, children }) {
330
330
  () => ({ error, tunnels, clients }),
331
331
  [error, tunnels, clients]
332
332
  );
333
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(RstreamContext.Provider, { value, children });
333
+ const content = isRenderProp(children) ? children(value) : children;
334
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(RstreamContext.Provider, { value, children: content });
335
+ }
336
+ function isRenderProp(children) {
337
+ return typeof children === "function";
334
338
  }
335
339
  // Annotate the CommonJS export names for ESM import in node:
336
340
  0 && (module.exports = {
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ import "./chunk-2JFL7TS5.mjs";
5
5
  import {
6
6
  RstreamProvider,
7
7
  useRstreamContext
8
- } from "./chunk-TAYPWKHF.mjs";
8
+ } from "./chunk-MJTSTB5H.mjs";
9
9
  import {
10
10
  useRstream
11
11
  } from "./chunk-2WDUPTYY.mjs";
@@ -12,6 +12,8 @@ declare function useRstreamContext(): {
12
12
  status: "online" | "offline";
13
13
  client_id: string;
14
14
  user_id: string;
15
+ project_id: string;
16
+ workspace_id: string;
15
17
  id: string;
16
18
  type?: "bytestream" | "datagram" | undefined;
17
19
  name?: string | undefined;
@@ -40,6 +42,8 @@ declare function useRstreamContext(): {
40
42
  clients: {
41
43
  status: "online" | "offline";
42
44
  user_id: string;
45
+ project_id: string;
46
+ workspace_id: string;
43
47
  id: string;
44
48
  labels?: Record<string, string | undefined> | undefined;
45
49
  details?: {
@@ -12,6 +12,8 @@ declare function useRstreamContext(): {
12
12
  status: "online" | "offline";
13
13
  client_id: string;
14
14
  user_id: string;
15
+ project_id: string;
16
+ workspace_id: string;
15
17
  id: string;
16
18
  type?: "bytestream" | "datagram" | undefined;
17
19
  name?: string | undefined;
@@ -40,6 +42,8 @@ declare function useRstreamContext(): {
40
42
  clients: {
41
43
  status: "online" | "offline";
42
44
  user_id: string;
45
+ project_id: string;
46
+ workspace_id: string;
43
47
  id: string;
44
48
  labels?: Record<string, string | undefined> | undefined;
45
49
  details?: {
@@ -182,7 +182,11 @@ function RstreamProvider({ options, children }) {
182
182
  () => ({ error, tunnels, clients }),
183
183
  [error, tunnels, clients]
184
184
  );
185
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RstreamContext.Provider, { value, children });
185
+ const content = isRenderProp(children) ? children(value) : children;
186
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RstreamContext.Provider, { value, children: content });
187
+ }
188
+ function isRenderProp(children) {
189
+ return typeof children === "function";
186
190
  }
187
191
  // Annotate the CommonJS export names for ESM import in node:
188
192
  0 && (module.exports = {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  RstreamProvider,
3
3
  useRstreamContext
4
- } from "../chunk-TAYPWKHF.mjs";
4
+ } from "../chunk-MJTSTB5H.mjs";
5
5
  import "../chunk-2WDUPTYY.mjs";
6
6
  export {
7
7
  RstreamProvider,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rstreamlabs/react",
3
- "version": "1.5.0",
3
+ "version": "1.6.2",
4
4
  "description": "React hooks and components for building rstream-enabled UIs.",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/index.js",
@@ -40,25 +40,25 @@
40
40
  "type-check": "tsc --noEmit"
41
41
  },
42
42
  "devDependencies": {
43
- "@turbo/gen": "^2.6.1",
44
- "@types/node": "^24.10.1",
43
+ "@turbo/gen": "^2.7.4",
44
+ "@types/node": "^25.0.9",
45
45
  "@types/react-dom": "19.2.3",
46
- "@types/react": "19.2.5",
46
+ "@types/react": "19.2.8",
47
47
  "eslint-config": "*",
48
48
  "tsup": "^8.5.1",
49
49
  "typescript-config": "*",
50
50
  "typescript": "5.9.3"
51
51
  },
52
52
  "dependencies": {
53
- "@rstreamlabs/rstream": "1.5.0",
54
- "@rstreamlabs/webtty": "1.5.0",
55
- "@xterm/addon-fit": "^0.10.0",
56
- "@xterm/addon-unicode11": "^0.8.0",
57
- "@xterm/addon-web-links": "^0.11.0",
58
- "@xterm/addon-webgl": "^0.18.0",
59
- "@xterm/xterm": "^5.5.0",
60
- "react": "^19.2.0",
61
- "react-dom": "^19.2.0"
53
+ "@rstreamlabs/rstream": "1.6.2",
54
+ "@rstreamlabs/webtty": "1.6.2",
55
+ "@xterm/addon-fit": "^0.11.0",
56
+ "@xterm/addon-unicode11": "^0.9.0",
57
+ "@xterm/addon-web-links": "^0.12.0",
58
+ "@xterm/addon-webgl": "^0.19.0",
59
+ "@xterm/xterm": "^6.0.0",
60
+ "react": "^19.2.3",
61
+ "react-dom": "^19.2.3"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "@types/react": "*",