Merge remote-tracking branch 'origin/dev' into todo-dock-motion

# Conflicts:
#	packages/app/package.json
#	packages/app/src/pages/session.tsx
#	packages/app/src/pages/session/composer/session-composer-region.tsx
This commit is contained in:
Brendan Allan 2026-06-25 13:25:38 +08:00
commit 1084cd96ac
108 changed files with 6879 additions and 920 deletions

View file

@ -1,6 +1,6 @@
import { attachSpring, motionValue } from "motion"
import type { SpringOptions } from "motion"
import { createEffect, createSignal, onCleanup } from "solid-js"
import { createComputed, createEffect, createSignal, onCleanup } from "solid-js"
type Opt = Partial<Pick<SpringOptions, "visualDuration" | "bounce" | "stiffness" | "damping" | "mass" | "velocity">>
const eq = (a: Opt | undefined, b: Opt | undefined) =>
@ -21,7 +21,7 @@ export function useSpring(target: () => number, options?: Opt | (() => Opt), sna
let stop = attachSpring(spring, source, config)
let off = spring.on("change", (next: number) => setValue(next))
createEffect(() => {
createComputed(() => {
const next = target()
const nextSnap = snapKey?.()
if (snapKey && nextSnap !== snapValue) {