@soba-so/react 0.0.14 → 0.0.16
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/README.md +9 -2
- package/dist/SobaProvider.d.ts +5 -2
- package/dist/context.d.ts +10 -3
- package/dist/index.mjs +364 -447
- package/dist/session.d.ts +3 -0
- package/dist/styles.css +359 -442
- package/dist/types.d.ts +6 -0
- package/package.json +8 -9
package/dist/types.d.ts
CHANGED
|
@@ -38,6 +38,10 @@ export interface Runtime {
|
|
|
38
38
|
export interface Machine {
|
|
39
39
|
id: string;
|
|
40
40
|
label: string | null;
|
|
41
|
+
/** The hostname the worker reported, beside the label it is folded into —
|
|
42
|
+
* `label` is `label ?? name` on the wire, so only the pair tells a chosen
|
|
43
|
+
* name from a DNS label. Optional: an older gateway does not send it. */
|
|
44
|
+
name?: string | null;
|
|
41
45
|
platform: string | null;
|
|
42
46
|
arch: string | null;
|
|
43
47
|
version: string | null;
|
|
@@ -64,6 +68,8 @@ export interface PendingCode {
|
|
|
64
68
|
/** Everything the approval page needs, in one request. */
|
|
65
69
|
export type ConnectTheme = "light" | "dark" | "system";
|
|
66
70
|
export interface ConnectContext {
|
|
71
|
+
/** Where to poll this person's machines (the gateway); see `ConnectClient.setMachinesUrl`. Absent from older servers. */
|
|
72
|
+
machines_url?: string | null;
|
|
67
73
|
/**
|
|
68
74
|
* How this app wants the component to look, set on its Settings page.
|
|
69
75
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soba-so/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"description": "Connect the AI your users already pay for, from your own React app.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://soba.so/docs/components",
|
|
@@ -19,18 +19,13 @@
|
|
|
19
19
|
"!dist/**/*.map",
|
|
20
20
|
"README.md"
|
|
21
21
|
],
|
|
22
|
-
"scripts": {
|
|
23
|
-
"build": "node ../../scripts/build-react.mjs",
|
|
24
|
-
"typecheck": "tsc -p tsconfig.json",
|
|
25
|
-
"prepublishOnly": "node ../../scripts/build-react.mjs"
|
|
26
|
-
},
|
|
27
22
|
"peerDependencies": {
|
|
28
23
|
"react": ">=18"
|
|
29
24
|
},
|
|
30
25
|
"devDependencies": {
|
|
31
|
-
"@soba-so/connect-ui": "workspace:*",
|
|
32
26
|
"@types/react": "^19.0.0",
|
|
33
|
-
"typescript": "^7.0.2"
|
|
27
|
+
"typescript": "^7.0.2",
|
|
28
|
+
"@soba-so/connect-ui": "0.1.0"
|
|
34
29
|
},
|
|
35
30
|
"engines": {
|
|
36
31
|
"node": ">=22"
|
|
@@ -44,5 +39,9 @@
|
|
|
44
39
|
],
|
|
45
40
|
"publishConfig": {
|
|
46
41
|
"access": "public"
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"build": "node ../../scripts/build-react.mjs",
|
|
45
|
+
"typecheck": "tsc -p tsconfig.json"
|
|
47
46
|
}
|
|
48
|
-
}
|
|
47
|
+
}
|