@opencode/ui 0.0.0-dev-578 → 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/dist/i18n/en.d.ts CHANGED
@@ -287,6 +287,7 @@ declare const source: {
287
287
  "ui.sources.openFailed": string;
288
288
  "ui.sessionTimeline.notice.model": string;
289
289
  "ui.sessionTimeline.notice.modelSwitched": string;
290
+ "ui.sessionTimeline.notice.newMessages": string;
290
291
  "ui.sessionTimeline.notice.variantSwitched": string;
291
292
  "ui.sessionTimeline.notice.variantDefault": string;
292
293
  "ui.sessionTimeline.notice.agentChanged": string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencode/ui",
3
- "version": "0.0.0-dev-578",
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.3.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-578",
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
  )
package/src/i18n/en.ts CHANGED
@@ -312,6 +312,7 @@ const source = {
312
312
  "ui.sources.openFailed": "Couldn’t open page",
313
313
  "ui.sessionTimeline.notice.model": "Model",
314
314
  "ui.sessionTimeline.notice.modelSwitched": "Switched to {{model}}",
315
+ "ui.sessionTimeline.notice.newMessages": "New",
315
316
  "ui.sessionTimeline.notice.variantSwitched": "Switched variant to {{variant}}",
316
317
  "ui.sessionTimeline.notice.variantDefault": "Switched variant to Default",
317
318
  "ui.sessionTimeline.notice.agentChanged": "Agent changed",