@qilin-agent/client-ui-sidebar-browser 3.1.5 → 3.1.6
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/lib/types/types.d.ts +24 -0
- package/package.json +12 -11
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** Type-only Electron bridge declarations shared by the desktop shell and browser provider. */
|
|
2
|
+
import type { Branded } from '@qilin-agent/brand';
|
|
3
|
+
/** Main-issued identity of one guest reservation. */
|
|
4
|
+
export type DesktopBrowserLeaseId = Branded<'DesktopBrowserLeaseId'>;
|
|
5
|
+
/** A guest's approved, process-local storage partition. */
|
|
6
|
+
export interface DesktopBrowserReservation {
|
|
7
|
+
readonly lease: DesktopBrowserLeaseId;
|
|
8
|
+
readonly partition: string;
|
|
9
|
+
}
|
|
10
|
+
/** Main-approved request to open an HTTP(S) page from an existing guest. */
|
|
11
|
+
export interface DesktopBrowserOpenRequest {
|
|
12
|
+
readonly lease: DesktopBrowserLeaseId;
|
|
13
|
+
readonly url: string;
|
|
14
|
+
}
|
|
15
|
+
/** Origin-scoped operations; no Electron objects or arbitrary IPC cross this interface. */
|
|
16
|
+
export interface DesktopBrowserBridge {
|
|
17
|
+
/** @param workspace - resolved storage account. @returns one approved guest reservation. */
|
|
18
|
+
acquire(workspace: string): Promise<DesktopBrowserReservation>;
|
|
19
|
+
/** @param lease - the caller's reservation. @returns after its guest has been destroyed. */
|
|
20
|
+
release(lease: DesktopBrowserLeaseId): Promise<void>;
|
|
21
|
+
/** @param lease - originating guest. @param listener - approved URL consumer. @returns unsubscribe callback. */
|
|
22
|
+
onOpenRequested(lease: DesktopBrowserLeaseId, listener: (url: string) => void): () => void;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=types.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qilin-agent/client-ui-sidebar-browser",
|
|
3
3
|
"description": "Sandboxed Web browser tabs for the right Sidebar",
|
|
4
|
-
"version": "3.1.
|
|
4
|
+
"version": "3.1.6",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"license": "MIT",
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@qilin-agent/kylin": "~4.0.
|
|
42
|
+
"@qilin-agent/kylin": "~4.0.5"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@testing-library/react": "^16.1.0",
|
|
@@ -47,15 +47,16 @@
|
|
|
47
47
|
"@types/react-dom": "~18.3.0",
|
|
48
48
|
"react": "^18.2.0",
|
|
49
49
|
"react-dom": "^18.2.0",
|
|
50
|
-
"@qilin-agent/
|
|
51
|
-
"@qilin-agent/client-locale": "3.1.
|
|
52
|
-
"@qilin-agent/client-
|
|
53
|
-
"@qilin-agent/client-ui-
|
|
54
|
-
"@qilin-agent/client-
|
|
55
|
-
"@qilin-agent/client-ui-primitives": "3.1.
|
|
56
|
-
"@qilin-agent/client-ui-session": "3.1.
|
|
57
|
-
"@qilin-agent/client-ui-sidebar-right": "3.1.
|
|
58
|
-
"@qilin-agent/client-ui-slots": "3.1.
|
|
50
|
+
"@qilin-agent/brand": "3.1.6",
|
|
51
|
+
"@qilin-agent/client-locale": "3.1.6",
|
|
52
|
+
"@qilin-agent/client-ui-dockkit": "3.1.6",
|
|
53
|
+
"@qilin-agent/client-ui-renderer": "3.1.6",
|
|
54
|
+
"@qilin-agent/client-store": "3.1.6",
|
|
55
|
+
"@qilin-agent/client-ui-primitives": "3.1.6",
|
|
56
|
+
"@qilin-agent/client-ui-session": "3.1.6",
|
|
57
|
+
"@qilin-agent/client-ui-sidebar-right": "3.1.6",
|
|
58
|
+
"@qilin-agent/client-ui-slots": "3.1.6",
|
|
59
|
+
"@qilin-agent/kylin": "~4.0.5"
|
|
59
60
|
},
|
|
60
61
|
"files": [
|
|
61
62
|
"lib/index.js",
|