@rstreamlabs/react 1.6.6 → 1.7.0
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-GFWVYPSE.mjs → chunk-CCMP5O6Z.mjs} +1 -1
- package/dist/{chunk-KZOS6ZKQ.mjs → chunk-CTKB6CWW.mjs} +4 -1
- package/dist/hooks/index.d.mts +26 -21
- package/dist/hooks/index.d.ts +26 -21
- package/dist/hooks/index.js +4 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.js +4 -1
- package/dist/index.mjs +2 -2
- package/dist/providers/index.d.mts +26 -21
- package/dist/providers/index.d.ts +26 -21
- package/dist/providers/index.js +4 -1
- package/dist/providers/index.mjs +2 -2
- package/package.json +2 -2
|
@@ -31,7 +31,10 @@ function useRstream(options) {
|
|
|
31
31
|
watch = new Watch(options, {
|
|
32
32
|
onEvent: (event) => {
|
|
33
33
|
if (!active) return;
|
|
34
|
-
if (event.type.
|
|
34
|
+
if (event.type === "state.initial") {
|
|
35
|
+
setClients(event.object.clients);
|
|
36
|
+
setTunnels(event.object.tunnels);
|
|
37
|
+
} else if (event.type.startsWith("client")) {
|
|
35
38
|
setClients((previous) => {
|
|
36
39
|
if (event.type === "client.created") {
|
|
37
40
|
return [...previous, event.object];
|
package/dist/hooks/index.d.mts
CHANGED
|
@@ -38,16 +38,20 @@ declare function useRstream(options?: UseRstreamOptions): {
|
|
|
38
38
|
tunnels: {
|
|
39
39
|
status: "online" | "offline";
|
|
40
40
|
client_id: string;
|
|
41
|
-
user_id: string;
|
|
42
|
-
project_id: string;
|
|
43
|
-
workspace_id: string;
|
|
44
41
|
id: string;
|
|
45
42
|
type?: "bytestream" | "datagram" | undefined;
|
|
46
|
-
|
|
43
|
+
user_id?: string | undefined;
|
|
44
|
+
workspace_id?: string | undefined;
|
|
45
|
+
project_id?: string | undefined;
|
|
46
|
+
cluster_id?: string | undefined;
|
|
47
|
+
plan?: string | undefined;
|
|
48
|
+
provider?: string | undefined;
|
|
49
|
+
region?: string | undefined;
|
|
50
|
+
creation_date?: string | Date | undefined;
|
|
47
51
|
name?: string | undefined;
|
|
48
52
|
publish?: boolean | undefined;
|
|
49
53
|
protocol?: "tls" | "dtls" | "quic" | "http" | undefined;
|
|
50
|
-
labels?: Record<string, string
|
|
54
|
+
labels?: Record<string, string> | undefined;
|
|
51
55
|
geo_ip?: string[] | undefined;
|
|
52
56
|
trusted_ips?: string[] | undefined;
|
|
53
57
|
host?: string | undefined;
|
|
@@ -57,28 +61,29 @@ declare function useRstream(options?: UseRstreamOptions): {
|
|
|
57
61
|
tls_ciphers?: string[] | undefined;
|
|
58
62
|
mtls?: boolean | undefined;
|
|
59
63
|
mtls_ca_cert_pem?: string | undefined;
|
|
60
|
-
http_version?: "http/1.1" | "h2c" | "h3" | undefined;
|
|
64
|
+
http_version?: "http/1.1" | "h2" | "h2c" | "h3" | undefined;
|
|
61
65
|
http_use_tls?: boolean | undefined;
|
|
62
66
|
token_auth?: boolean | undefined;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
email_whitelist?: string[] | undefined;
|
|
66
|
-
email_blacklist?: string[] | undefined;
|
|
67
|
-
challenge?: boolean | undefined;
|
|
67
|
+
rstream_auth?: boolean | undefined;
|
|
68
|
+
challenge_mode?: boolean | undefined;
|
|
68
69
|
}[];
|
|
69
70
|
clients: {
|
|
70
71
|
status: "online" | "offline";
|
|
71
|
-
user_id: string;
|
|
72
|
-
project_id: string;
|
|
73
|
-
workspace_id: string;
|
|
74
72
|
id: string;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
73
|
+
user_id?: string | undefined;
|
|
74
|
+
workspace_id?: string | undefined;
|
|
75
|
+
project_id?: string | undefined;
|
|
76
|
+
cluster_id?: string | undefined;
|
|
77
|
+
plan?: string | undefined;
|
|
78
|
+
provider?: string | undefined;
|
|
79
|
+
region?: string | undefined;
|
|
80
|
+
labels?: Record<string, string> | undefined;
|
|
81
|
+
agent?: string | undefined;
|
|
82
|
+
channel?: string | undefined;
|
|
83
|
+
version?: string | undefined;
|
|
84
|
+
os?: string | undefined;
|
|
85
|
+
arch?: string | undefined;
|
|
86
|
+
protocol_version?: string | undefined;
|
|
82
87
|
}[];
|
|
83
88
|
};
|
|
84
89
|
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -38,16 +38,20 @@ declare function useRstream(options?: UseRstreamOptions): {
|
|
|
38
38
|
tunnels: {
|
|
39
39
|
status: "online" | "offline";
|
|
40
40
|
client_id: string;
|
|
41
|
-
user_id: string;
|
|
42
|
-
project_id: string;
|
|
43
|
-
workspace_id: string;
|
|
44
41
|
id: string;
|
|
45
42
|
type?: "bytestream" | "datagram" | undefined;
|
|
46
|
-
|
|
43
|
+
user_id?: string | undefined;
|
|
44
|
+
workspace_id?: string | undefined;
|
|
45
|
+
project_id?: string | undefined;
|
|
46
|
+
cluster_id?: string | undefined;
|
|
47
|
+
plan?: string | undefined;
|
|
48
|
+
provider?: string | undefined;
|
|
49
|
+
region?: string | undefined;
|
|
50
|
+
creation_date?: string | Date | undefined;
|
|
47
51
|
name?: string | undefined;
|
|
48
52
|
publish?: boolean | undefined;
|
|
49
53
|
protocol?: "tls" | "dtls" | "quic" | "http" | undefined;
|
|
50
|
-
labels?: Record<string, string
|
|
54
|
+
labels?: Record<string, string> | undefined;
|
|
51
55
|
geo_ip?: string[] | undefined;
|
|
52
56
|
trusted_ips?: string[] | undefined;
|
|
53
57
|
host?: string | undefined;
|
|
@@ -57,28 +61,29 @@ declare function useRstream(options?: UseRstreamOptions): {
|
|
|
57
61
|
tls_ciphers?: string[] | undefined;
|
|
58
62
|
mtls?: boolean | undefined;
|
|
59
63
|
mtls_ca_cert_pem?: string | undefined;
|
|
60
|
-
http_version?: "http/1.1" | "h2c" | "h3" | undefined;
|
|
64
|
+
http_version?: "http/1.1" | "h2" | "h2c" | "h3" | undefined;
|
|
61
65
|
http_use_tls?: boolean | undefined;
|
|
62
66
|
token_auth?: boolean | undefined;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
email_whitelist?: string[] | undefined;
|
|
66
|
-
email_blacklist?: string[] | undefined;
|
|
67
|
-
challenge?: boolean | undefined;
|
|
67
|
+
rstream_auth?: boolean | undefined;
|
|
68
|
+
challenge_mode?: boolean | undefined;
|
|
68
69
|
}[];
|
|
69
70
|
clients: {
|
|
70
71
|
status: "online" | "offline";
|
|
71
|
-
user_id: string;
|
|
72
|
-
project_id: string;
|
|
73
|
-
workspace_id: string;
|
|
74
72
|
id: string;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
73
|
+
user_id?: string | undefined;
|
|
74
|
+
workspace_id?: string | undefined;
|
|
75
|
+
project_id?: string | undefined;
|
|
76
|
+
cluster_id?: string | undefined;
|
|
77
|
+
plan?: string | undefined;
|
|
78
|
+
provider?: string | undefined;
|
|
79
|
+
region?: string | undefined;
|
|
80
|
+
labels?: Record<string, string> | undefined;
|
|
81
|
+
agent?: string | undefined;
|
|
82
|
+
channel?: string | undefined;
|
|
83
|
+
version?: string | undefined;
|
|
84
|
+
os?: string | undefined;
|
|
85
|
+
arch?: string | undefined;
|
|
86
|
+
protocol_version?: string | undefined;
|
|
82
87
|
}[];
|
|
83
88
|
};
|
|
84
89
|
|
package/dist/hooks/index.js
CHANGED
|
@@ -67,7 +67,10 @@ function useRstream(options) {
|
|
|
67
67
|
watch = new import_rstream.Watch(options, {
|
|
68
68
|
onEvent: (event) => {
|
|
69
69
|
if (!active) return;
|
|
70
|
-
if (event.type.
|
|
70
|
+
if (event.type === "state.initial") {
|
|
71
|
+
setClients(event.object.clients);
|
|
72
|
+
setTunnels(event.object.tunnels);
|
|
73
|
+
} else if (event.type.startsWith("client")) {
|
|
71
74
|
setClients((previous) => {
|
|
72
75
|
if (event.type === "client.created") {
|
|
73
76
|
return [...previous, event.object];
|
package/dist/hooks/index.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -223,7 +223,10 @@ function useRstream(options) {
|
|
|
223
223
|
watch = new import_rstream.Watch(options, {
|
|
224
224
|
onEvent: (event) => {
|
|
225
225
|
if (!active) return;
|
|
226
|
-
if (event.type.
|
|
226
|
+
if (event.type === "state.initial") {
|
|
227
|
+
setClients(event.object.clients);
|
|
228
|
+
setTunnels(event.object.tunnels);
|
|
229
|
+
} else if (event.type.startsWith("client")) {
|
|
227
230
|
setClients((previous) => {
|
|
228
231
|
if (event.type === "client.created") {
|
|
229
232
|
return [...previous, event.object];
|
package/dist/index.mjs
CHANGED
|
@@ -5,10 +5,10 @@ import "./chunk-2JFL7TS5.mjs";
|
|
|
5
5
|
import {
|
|
6
6
|
RstreamProvider,
|
|
7
7
|
useRstreamContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CCMP5O6Z.mjs";
|
|
9
9
|
import {
|
|
10
10
|
useRstream
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CTKB6CWW.mjs";
|
|
12
12
|
export {
|
|
13
13
|
RstreamProvider,
|
|
14
14
|
WebTTYTerminal,
|
|
@@ -13,16 +13,20 @@ declare function useRstreamContext(): {
|
|
|
13
13
|
tunnels: {
|
|
14
14
|
status: "online" | "offline";
|
|
15
15
|
client_id: string;
|
|
16
|
-
user_id: string;
|
|
17
|
-
project_id: string;
|
|
18
|
-
workspace_id: string;
|
|
19
16
|
id: string;
|
|
20
17
|
type?: "bytestream" | "datagram" | undefined;
|
|
21
|
-
|
|
18
|
+
user_id?: string | undefined;
|
|
19
|
+
workspace_id?: string | undefined;
|
|
20
|
+
project_id?: string | undefined;
|
|
21
|
+
cluster_id?: string | undefined;
|
|
22
|
+
plan?: string | undefined;
|
|
23
|
+
provider?: string | undefined;
|
|
24
|
+
region?: string | undefined;
|
|
25
|
+
creation_date?: string | Date | undefined;
|
|
22
26
|
name?: string | undefined;
|
|
23
27
|
publish?: boolean | undefined;
|
|
24
28
|
protocol?: "tls" | "dtls" | "quic" | "http" | undefined;
|
|
25
|
-
labels?: Record<string, string
|
|
29
|
+
labels?: Record<string, string> | undefined;
|
|
26
30
|
geo_ip?: string[] | undefined;
|
|
27
31
|
trusted_ips?: string[] | undefined;
|
|
28
32
|
host?: string | undefined;
|
|
@@ -32,28 +36,29 @@ declare function useRstreamContext(): {
|
|
|
32
36
|
tls_ciphers?: string[] | undefined;
|
|
33
37
|
mtls?: boolean | undefined;
|
|
34
38
|
mtls_ca_cert_pem?: string | undefined;
|
|
35
|
-
http_version?: "http/1.1" | "h2c" | "h3" | undefined;
|
|
39
|
+
http_version?: "http/1.1" | "h2" | "h2c" | "h3" | undefined;
|
|
36
40
|
http_use_tls?: boolean | undefined;
|
|
37
41
|
token_auth?: boolean | undefined;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
email_whitelist?: string[] | undefined;
|
|
41
|
-
email_blacklist?: string[] | undefined;
|
|
42
|
-
challenge?: boolean | undefined;
|
|
42
|
+
rstream_auth?: boolean | undefined;
|
|
43
|
+
challenge_mode?: boolean | undefined;
|
|
43
44
|
}[];
|
|
44
45
|
clients: {
|
|
45
46
|
status: "online" | "offline";
|
|
46
|
-
user_id: string;
|
|
47
|
-
project_id: string;
|
|
48
|
-
workspace_id: string;
|
|
49
47
|
id: string;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
48
|
+
user_id?: string | undefined;
|
|
49
|
+
workspace_id?: string | undefined;
|
|
50
|
+
project_id?: string | undefined;
|
|
51
|
+
cluster_id?: string | undefined;
|
|
52
|
+
plan?: string | undefined;
|
|
53
|
+
provider?: string | undefined;
|
|
54
|
+
region?: string | undefined;
|
|
55
|
+
labels?: Record<string, string> | undefined;
|
|
56
|
+
agent?: string | undefined;
|
|
57
|
+
channel?: string | undefined;
|
|
58
|
+
version?: string | undefined;
|
|
59
|
+
os?: string | undefined;
|
|
60
|
+
arch?: string | undefined;
|
|
61
|
+
protocol_version?: string | undefined;
|
|
57
62
|
}[];
|
|
58
63
|
};
|
|
59
64
|
interface RstreamProviderProps {
|
|
@@ -13,16 +13,20 @@ declare function useRstreamContext(): {
|
|
|
13
13
|
tunnels: {
|
|
14
14
|
status: "online" | "offline";
|
|
15
15
|
client_id: string;
|
|
16
|
-
user_id: string;
|
|
17
|
-
project_id: string;
|
|
18
|
-
workspace_id: string;
|
|
19
16
|
id: string;
|
|
20
17
|
type?: "bytestream" | "datagram" | undefined;
|
|
21
|
-
|
|
18
|
+
user_id?: string | undefined;
|
|
19
|
+
workspace_id?: string | undefined;
|
|
20
|
+
project_id?: string | undefined;
|
|
21
|
+
cluster_id?: string | undefined;
|
|
22
|
+
plan?: string | undefined;
|
|
23
|
+
provider?: string | undefined;
|
|
24
|
+
region?: string | undefined;
|
|
25
|
+
creation_date?: string | Date | undefined;
|
|
22
26
|
name?: string | undefined;
|
|
23
27
|
publish?: boolean | undefined;
|
|
24
28
|
protocol?: "tls" | "dtls" | "quic" | "http" | undefined;
|
|
25
|
-
labels?: Record<string, string
|
|
29
|
+
labels?: Record<string, string> | undefined;
|
|
26
30
|
geo_ip?: string[] | undefined;
|
|
27
31
|
trusted_ips?: string[] | undefined;
|
|
28
32
|
host?: string | undefined;
|
|
@@ -32,28 +36,29 @@ declare function useRstreamContext(): {
|
|
|
32
36
|
tls_ciphers?: string[] | undefined;
|
|
33
37
|
mtls?: boolean | undefined;
|
|
34
38
|
mtls_ca_cert_pem?: string | undefined;
|
|
35
|
-
http_version?: "http/1.1" | "h2c" | "h3" | undefined;
|
|
39
|
+
http_version?: "http/1.1" | "h2" | "h2c" | "h3" | undefined;
|
|
36
40
|
http_use_tls?: boolean | undefined;
|
|
37
41
|
token_auth?: boolean | undefined;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
email_whitelist?: string[] | undefined;
|
|
41
|
-
email_blacklist?: string[] | undefined;
|
|
42
|
-
challenge?: boolean | undefined;
|
|
42
|
+
rstream_auth?: boolean | undefined;
|
|
43
|
+
challenge_mode?: boolean | undefined;
|
|
43
44
|
}[];
|
|
44
45
|
clients: {
|
|
45
46
|
status: "online" | "offline";
|
|
46
|
-
user_id: string;
|
|
47
|
-
project_id: string;
|
|
48
|
-
workspace_id: string;
|
|
49
47
|
id: string;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
48
|
+
user_id?: string | undefined;
|
|
49
|
+
workspace_id?: string | undefined;
|
|
50
|
+
project_id?: string | undefined;
|
|
51
|
+
cluster_id?: string | undefined;
|
|
52
|
+
plan?: string | undefined;
|
|
53
|
+
provider?: string | undefined;
|
|
54
|
+
region?: string | undefined;
|
|
55
|
+
labels?: Record<string, string> | undefined;
|
|
56
|
+
agent?: string | undefined;
|
|
57
|
+
channel?: string | undefined;
|
|
58
|
+
version?: string | undefined;
|
|
59
|
+
os?: string | undefined;
|
|
60
|
+
arch?: string | undefined;
|
|
61
|
+
protocol_version?: string | undefined;
|
|
57
62
|
}[];
|
|
58
63
|
};
|
|
59
64
|
interface RstreamProviderProps {
|
package/dist/providers/index.js
CHANGED
|
@@ -68,7 +68,10 @@ function useRstream(options) {
|
|
|
68
68
|
watch = new import_rstream.Watch(options, {
|
|
69
69
|
onEvent: (event) => {
|
|
70
70
|
if (!active) return;
|
|
71
|
-
if (event.type.
|
|
71
|
+
if (event.type === "state.initial") {
|
|
72
|
+
setClients(event.object.clients);
|
|
73
|
+
setTunnels(event.object.tunnels);
|
|
74
|
+
} else if (event.type.startsWith("client")) {
|
|
72
75
|
setClients((previous) => {
|
|
73
76
|
if (event.type === "client.created") {
|
|
74
77
|
return [...previous, event.object];
|
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.7.0",
|
|
4
4
|
"description": "React hooks and components for building rstream-enabled UIs.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"typescript": "5.9.3"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@rstreamlabs/rstream": "1.
|
|
53
|
+
"@rstreamlabs/rstream": "1.7.0",
|
|
54
54
|
"@rstreamlabs/webtty": "1.6.2",
|
|
55
55
|
"@xterm/addon-fit": "^0.11.0",
|
|
56
56
|
"@xterm/addon-unicode11": "^0.9.0",
|