@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.
- package/dist/{chunk-TAYPWKHF.mjs → chunk-MJTSTB5H.mjs} +5 -1
- package/dist/hooks/index.d.mts +4 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/index.js +5 -1
- package/dist/index.mjs +1 -1
- package/dist/providers/index.d.mts +4 -0
- package/dist/providers/index.d.ts +4 -0
- package/dist/providers/index.js +5 -1
- package/dist/providers/index.mjs +1 -1
- package/package.json +13 -13
|
@@ -20,7 +20,11 @@ function RstreamProvider({ options, children }) {
|
|
|
20
20
|
() => ({ error, tunnels, clients }),
|
|
21
21
|
[error, tunnels, clients]
|
|
22
22
|
);
|
|
23
|
-
|
|
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 {
|
package/dist/hooks/index.d.mts
CHANGED
|
@@ -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/hooks/index.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
@@ -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?: {
|
package/dist/providers/index.js
CHANGED
|
@@ -182,7 +182,11 @@ function RstreamProvider({ options, children }) {
|
|
|
182
182
|
() => ({ error, tunnels, clients }),
|
|
183
183
|
[error, tunnels, clients]
|
|
184
184
|
);
|
|
185
|
-
|
|
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 = {
|
package/dist/providers/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rstreamlabs/react",
|
|
3
|
-
"version": "1.
|
|
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.
|
|
44
|
-
"@types/node": "^
|
|
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.
|
|
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.
|
|
54
|
-
"@rstreamlabs/webtty": "1.
|
|
55
|
-
"@xterm/addon-fit": "^0.
|
|
56
|
-
"@xterm/addon-unicode11": "^0.
|
|
57
|
-
"@xterm/addon-web-links": "^0.
|
|
58
|
-
"@xterm/addon-webgl": "^0.
|
|
59
|
-
"@xterm/xterm": "^
|
|
60
|
-
"react": "^19.2.
|
|
61
|
-
"react-dom": "^19.2.
|
|
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": "*",
|