@zenbu-labs/pixel 0.0.22 → 0.0.23
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/web/cursor.js +6 -1
- package/dist/webview.js +2 -2
- package/package.json +5 -5
package/dist/web/cursor.js
CHANGED
|
@@ -7,7 +7,7 @@ const CSS_CURSORS = new Set([
|
|
|
7
7
|
"no-drop", "not-allowed", "grab", "grabbing", "zoom-in", "zoom-out",
|
|
8
8
|
"e-resize", "n-resize", "ne-resize", "nw-resize", "s-resize", "se-resize",
|
|
9
9
|
"sw-resize", "w-resize", "ns-resize", "ew-resize", "nesw-resize",
|
|
10
|
-
"nwse-resize",
|
|
10
|
+
"nwse-resize",
|
|
11
11
|
]);
|
|
12
12
|
function cursorShapeFor(type) {
|
|
13
13
|
// chromium's "pointer" is the plain arrow; its css pointer is "hand"
|
|
@@ -15,6 +15,11 @@ function cursorShapeFor(type) {
|
|
|
15
15
|
return "pointer";
|
|
16
16
|
if (CSS_CURSORS.has(type))
|
|
17
17
|
return type;
|
|
18
|
+
// kitty's pointer shape protocol has no col/row-resize; the axis arrows mean the same
|
|
19
|
+
if (type === "col-resize")
|
|
20
|
+
return "ew-resize";
|
|
21
|
+
if (type === "row-resize")
|
|
22
|
+
return "ns-resize";
|
|
18
23
|
if (type === "nodrop")
|
|
19
24
|
return "no-drop";
|
|
20
25
|
if (type.endsWith("-panning"))
|
package/dist/webview.js
CHANGED
|
@@ -93,8 +93,8 @@ exports.WebView = (0, react_1.forwardRef)(function WebView(props, ref) {
|
|
|
93
93
|
const h = hover.current;
|
|
94
94
|
const shape = h.divider
|
|
95
95
|
? dockRef.current === "bottom"
|
|
96
|
-
? "
|
|
97
|
-
: "
|
|
96
|
+
? "ns-resize"
|
|
97
|
+
: "ew-resize"
|
|
98
98
|
: h.devtools
|
|
99
99
|
? host?.devtools?.cursorShape ?? "default"
|
|
100
100
|
: host?.popup
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenbu-labs/pixel",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"description": "Build graphical applications in the terminal",
|
|
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.23",
|
|
62
|
+
"@zenbu-labs/pixel-native-darwin-x64": "0.0.23",
|
|
63
|
+
"@zenbu-labs/pixel-native-linux-arm64": "0.0.23",
|
|
64
|
+
"@zenbu-labs/pixel-native-linux-x64": "0.0.23"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@types/node": "^22.0.0",
|