gpui-bridge 0.4.2 → 0.5.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/app.d.ts +5 -0
- package/dist/app.js +8 -0
- package/dist/protocol.d.ts +5 -0
- package/package.json +4 -4
package/dist/app.d.ts
CHANGED
|
@@ -373,6 +373,11 @@ export declare class App {
|
|
|
373
373
|
private request;
|
|
374
374
|
/** App-wide keyboard shortcuts (`ctrl-s`, `f5`…), applied on the next commit; replaces the list. */
|
|
375
375
|
shortcuts(keys: string[]): this;
|
|
376
|
+
/**
|
|
377
|
+
* Registers SVG icons (name → SVG text) on the next commit, for `Icon` and every `icon` prop
|
|
378
|
+
* (PROTOCOL.md section 29). Register a name before the nodes that use it; again to replace it.
|
|
379
|
+
*/
|
|
380
|
+
icons(icons: Record<string, string>): this;
|
|
376
381
|
/** Shows or updates the system tray icon on the next commit. */
|
|
377
382
|
tray(options: TrayOptions): this;
|
|
378
383
|
/** Removes the tray icon on the next commit; with no window open, the host then exits. */
|
package/dist/app.js
CHANGED
|
@@ -544,6 +544,14 @@ export class App {
|
|
|
544
544
|
this.wire.queue({ op: "shortcuts", keys });
|
|
545
545
|
return this;
|
|
546
546
|
}
|
|
547
|
+
/**
|
|
548
|
+
* Registers SVG icons (name → SVG text) on the next commit, for `Icon` and every `icon` prop
|
|
549
|
+
* (PROTOCOL.md section 29). Register a name before the nodes that use it; again to replace it.
|
|
550
|
+
*/
|
|
551
|
+
icons(icons) {
|
|
552
|
+
this.wire.queue({ op: "icons", icons });
|
|
553
|
+
return this;
|
|
554
|
+
}
|
|
547
555
|
/** Shows or updates the system tray icon on the next commit. */
|
|
548
556
|
tray(options) {
|
|
549
557
|
this.wire.queue({ op: "tray", ...options });
|
package/dist/protocol.d.ts
CHANGED
|
@@ -87,6 +87,9 @@ export type ClientMessage = {
|
|
|
87
87
|
menu?: MenuItem[];
|
|
88
88
|
} | {
|
|
89
89
|
op: "removeTray";
|
|
90
|
+
} | {
|
|
91
|
+
op: "icons";
|
|
92
|
+
icons: Record<string, string>;
|
|
90
93
|
} | {
|
|
91
94
|
op: "shortcuts";
|
|
92
95
|
keys: string[];
|
|
@@ -273,6 +276,8 @@ export interface TextProps {
|
|
|
273
276
|
}
|
|
274
277
|
export interface ButtonProps {
|
|
275
278
|
label?: string;
|
|
279
|
+
/** An icon before the label; without a label, give a `tooltip` (it also names the button). */
|
|
280
|
+
icon?: string;
|
|
276
281
|
variant?: "primary" | "secondary" | "ghost" | "danger";
|
|
277
282
|
disabled?: boolean;
|
|
278
283
|
tooltip?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gpui-bridge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Node.js client for the gpui-bridge native UI host",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "gpui-bridge contributors",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"node": ">=22.6"
|
|
30
30
|
},
|
|
31
31
|
"optionalDependencies": {
|
|
32
|
-
"@indios/gpui-bridge-darwin-arm64": "0.
|
|
33
|
-
"@indios/gpui-bridge-linux-x64": "0.
|
|
34
|
-
"@indios/gpui-bridge-win32-x64": "0.
|
|
32
|
+
"@indios/gpui-bridge-darwin-arm64": "0.5.0",
|
|
33
|
+
"@indios/gpui-bridge-linux-x64": "0.5.0",
|
|
34
|
+
"@indios/gpui-bridge-win32-x64": "0.5.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "^26.6.5",
|