@zenbu-labs/pixel 0.0.14 → 0.0.15
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/react/index.d.ts +1 -0
- package/dist/react/index.js +3 -0
- package/dist/root.js +1 -0
- package/package.json +5 -5
package/dist/react/index.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export interface RootOptions {
|
|
|
51
51
|
}) => void;
|
|
52
52
|
onPaste?: (text: string) => void;
|
|
53
53
|
onFocus?: (focused: boolean) => void;
|
|
54
|
+
onVisible?: (visible: boolean) => void;
|
|
54
55
|
onPasteImage?: (image: PastedImage) => void;
|
|
55
56
|
onEngineExit?: (error: string | null) => void;
|
|
56
57
|
onResize?: (size: {
|
package/dist/react/index.js
CHANGED
|
@@ -313,6 +313,9 @@ function createRoot(options = {}) {
|
|
|
313
313
|
case "focus":
|
|
314
314
|
options.onFocus?.(!!event.focused);
|
|
315
315
|
break;
|
|
316
|
+
case "visible":
|
|
317
|
+
options.onVisible?.(!!event.visible);
|
|
318
|
+
break;
|
|
316
319
|
case "devtools":
|
|
317
320
|
enableDevtools();
|
|
318
321
|
(0, controller_1.attachDevtools)(bridge);
|
package/dist/root.js
CHANGED
|
@@ -164,6 +164,7 @@ function createRoot(options = {}) {
|
|
|
164
164
|
options.onFocus?.(focused);
|
|
165
165
|
registry?.handleTerminalFocus(focused);
|
|
166
166
|
},
|
|
167
|
+
onVisible: (visible) => options.onVisible?.(visible),
|
|
167
168
|
onResize: (size) => {
|
|
168
169
|
const ratio = cellZoom.ratio(engineRoot.info);
|
|
169
170
|
if (registry) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenbu-labs/pixel",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"description": "[placeholder copy: Electron apps that render into your terminal pane]",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
"react": "^18.3.1"
|
|
59
59
|
},
|
|
60
60
|
"optionalDependencies": {
|
|
61
|
-
"@zenbu-labs/pixel-native-darwin-arm64": "0.0.
|
|
62
|
-
"@zenbu-labs/pixel-native-darwin-x64": "0.0.
|
|
63
|
-
"@zenbu-labs/pixel-native-linux-arm64": "0.0.
|
|
64
|
-
"@zenbu-labs/pixel-native-linux-x64": "0.0.
|
|
61
|
+
"@zenbu-labs/pixel-native-darwin-arm64": "0.0.15",
|
|
62
|
+
"@zenbu-labs/pixel-native-darwin-x64": "0.0.15",
|
|
63
|
+
"@zenbu-labs/pixel-native-linux-arm64": "0.0.15",
|
|
64
|
+
"@zenbu-labs/pixel-native-linux-x64": "0.0.15"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@types/node": "^22.0.0",
|