@opencode/ui 0.0.0-dev-579 → 0.0.0-dev-583
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencode/ui",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-583",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
"generate:v2-oc2": "bun run script/build-oc2-v2-overrides.ts"
|
|
274
274
|
},
|
|
275
275
|
"devDependencies": {
|
|
276
|
-
"@hona/strobe": "0.
|
|
276
|
+
"@hona/strobe": "0.6.0",
|
|
277
277
|
"@solidjs/meta": "0.29.4",
|
|
278
278
|
"@tsconfig/node22": "22.0.2",
|
|
279
279
|
"@types/bun": "1.4.3",
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
"dependencies": {
|
|
289
289
|
"@kitlangton/solid-motion": "0.2.2",
|
|
290
290
|
"@kobalte/core": "0.13.13",
|
|
291
|
-
"@opencode/util": "0.0.0-dev-
|
|
291
|
+
"@opencode/util": "0.0.0-dev-583",
|
|
292
292
|
"@pierre/diffs": "1.6.1",
|
|
293
293
|
"@pierre/highlights": "0.2.0",
|
|
294
294
|
"@solid-primitives/event-listener": "2.4.6",
|
|
@@ -111,6 +111,12 @@ export function ResizeHandle(props: ResizeHandleProps) {
|
|
|
111
111
|
document.addEventListener("mouseup", onMouseUp)
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
+
// The handle holds the pointer until the button comes up, so hover stays on it rather than following the pointer
|
|
115
|
+
// across the panels it resizes, each crossing restyling their contents.
|
|
116
|
+
const handlePointerDown = (e: PointerEvent & { currentTarget: HTMLDivElement }) => {
|
|
117
|
+
if (e.pointerType === "mouse" && e.button === 0) e.currentTarget.setPointerCapture(e.pointerId)
|
|
118
|
+
}
|
|
119
|
+
|
|
114
120
|
return (
|
|
115
121
|
<div
|
|
116
122
|
{...rest}
|
|
@@ -121,6 +127,7 @@ export function ResizeHandle(props: ResizeHandleProps) {
|
|
|
121
127
|
...local.classList,
|
|
122
128
|
[local.class ?? ""]: !!local.class,
|
|
123
129
|
}}
|
|
130
|
+
onPointerDown={handlePointerDown}
|
|
124
131
|
onMouseDown={handleMouseDown}
|
|
125
132
|
/>
|
|
126
133
|
)
|