diff --git a/bun.lock b/bun.lock index af0ad0a3fe2f..a27bb8761cb2 100644 --- a/bun.lock +++ b/bun.lock @@ -106,7 +106,7 @@ "diff": "catalog:", "ghostty-web": "github:anomalyco/ghostty-web#e91e38a9ceb13c566ddfa15185a9393849f712a9", "happy-dom": "20.11.1", - "knobs": "npm:@kitlangton/knobs@0.4.0-next.15", + "knobs": "npm:@kitlangton/knobs@0.4.0-next.22", "tw-animate-css": "1.4.0", "vite": "8.2.2", "vite-plugin-pwa": "1.3.0", @@ -420,6 +420,7 @@ "effect": "catalog:", "fuzzysort": "catalog:", "ghostty-web": "github:anomalyco/ghostty-web#e91e38a9ceb13c566ddfa15185a9393849f712a9", + "knobs": "npm:@kitlangton/knobs@0.4.0-next.22", "remeda": "catalog:", "solid-js": "catalog:", "solid-presence": "0.2.0", @@ -889,7 +890,7 @@ "@solid-primitives/resize-observer": "catalog:", "fuzzysort": "catalog:", "katex": "0.16.47", - "knobs": "npm:@kitlangton/knobs@0.4.0-next.15", + "knobs": "npm:@kitlangton/knobs@0.4.0-next.22", "marked": "catalog:", "motion": "12.34.5", "remeda": "catalog:", @@ -3949,7 +3950,7 @@ "klona": ["klona@2.0.6", "", {}, "sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA=="], - "knobs": ["@kitlangton/knobs@0.4.0-next.15", "", { "dependencies": { "@kitlangton/rolling-number": "^0.4.1" }, "peerDependencies": { "@pierre/diffs": "^1.5.2", "react": ">=18", "solid-js": ">=1.8" }, "optionalPeers": ["@pierre/diffs", "react", "solid-js"] }, "sha512-DdBzlwpLUR42jdwcJBS4hDc7jTuU4uG1H7ZJO5RToejfmcAb1pQJ48hHwBbeK4wyRO8XRrs3T7BdDdPRtuRZxw=="], + "knobs": ["@kitlangton/knobs@0.4.0-next.22", "", { "dependencies": { "@kitlangton/rolling-number": "^0.4.1" }, "peerDependencies": { "@pierre/diffs": "^1.5.2", "react": ">=18", "solid-js": ">=1.8" }, "optionalPeers": ["@pierre/diffs", "react", "solid-js"] }, "sha512-YuEogbCIT1vMamHVa9VNt2xcwEdgvjcSMzOc6be6f4c69IRrofHX/2aQG74SCR/y+QBtvY3dZWAnKfcVPdj3rg=="], "lang-map": ["lang-map@0.4.0", "", { "dependencies": { "language-map": "^1.1.0" } }, "sha512-oiSqZIEUnWdFeDNsp4HId4tAxdFbx5iMBOwA3666Fn2L8Khj8NiD9xRvMsGmKXopPVkaDFtSv3CJOmXFUB0Hcg=="], diff --git a/packages/app/component-tests/debug-bar.spec.ts b/packages/app/component-tests/debug-bar.spec.ts index e40f48e1a4e3..fb70e44e0d52 100644 --- a/packages/app/component-tests/debug-bar.spec.ts +++ b/packages/app/component-tests/debug-bar.spec.ts @@ -78,9 +78,7 @@ story("a feature page's Enabled switch turns that feature on after another featu document.querySelector(`[data-motion-feature="Switches · ${name}"]`) const enabled = (name: string) => - [...document.querySelectorAll("h3")] - .find((heading) => heading.textContent === name) - ?.parentElement?.querySelector('[data-component="switch"] input') + document.querySelector(`[data-knobs-mount="opencode-motion-Switches · ${name}"] [role="switch"]`) await until(() => row("First") !== null) row("First")?.click() @@ -99,3 +97,110 @@ story("a feature page's Enabled switch turns that feature on after another featu expect(result).toEqual({ first: false, second: true }) }) + +story("a feature page's preset chips go through the feature model, modes included", async ({ page }) => { + const result = page.evaluate( + async (modules) => { + localStorage.setItem("opencode.motion.panel", JSON.stringify({ x: 0, y: 0, width: 680 })) + const { motionTuning } = await import(modules.tuning) + const meta = { group: "Chips", subsection: "Feature" } + + const alt = motionTuning.mode("chips.alt", { label: "Alt", ...meta }) + + // A mode brings rows of its own, as James does. + motionTuning.number("chips.alt.shift", { + label: "Shift", + ...meta, + when: alt, + value: 10, + min: 0, + max: 20, + step: 1, + unit: "px", + }) + + const spring = motionTuning.spring("chips.spring", { + label: "Spring", + ...meta, + when: () => !alt(), + presets: { + snappy: { duration: 0.2, bounce: 0 }, + smooth: { duration: 0.3, bounce: 0 }, + calm: { duration: 0.45, bounce: 0 }, + }, + }) + + const shipped = spring().duration + const { mountExtensions, until } = await import(modules.fixture) + const debug = await import(modules.debug) + const definition = { ...debug.default, renderer: () => import(modules.renderer) } + + const host = mountExtensions({ + definitions: [definition], + stored: { "extension.debug.bar": { visible: true, motion: true } }, + }) + + host.release() + + const mount = '[data-knobs-mount="opencode-motion-Chips · Feature"]' + + const chip = (name: string) => + [...document.querySelectorAll(`${mount} .knobs-preset-chip`)].find( + (item) => item.textContent?.trim() === name, + ) + + const reset = () => document.querySelector(`${mount} button[aria-label^="Reset "]`) + + await until(() => !!document.querySelector('[data-motion-feature="Chips · Feature"]')) + document.querySelector('[data-motion-feature="Chips · Feature"]')?.click() + await until(() => !!chip("Calm")) + chip("Calm")?.click() + await until(() => spring().duration === 0.45) + chip("Alt")?.click() + await until(() => alt()) + await until(() => !!chip("Snappy")) + chip("Snappy")?.click() + await until(() => !alt() && spring().duration === 0.2) + await until(() => !!chip("Alt")) + chip("Alt")?.click() + await until(() => alt()) + await until(() => !!chip("Shipped")) + chip("Shipped")?.click() + await until(() => !alt() && spring().duration === shipped) + + // The group's Reset after a preset goes back to Shipped, modes included. + await until(() => !!chip("Calm")) + chip("Calm")?.click() + await until(() => spring().duration === 0.45 && !!reset()) + reset()?.click() + await until(() => spring().duration === shipped) + await until(() => !!chip("Alt")) + chip("Alt")?.click() + await until(() => alt()) + + // The test presses a key on Shift and Reset twice: back to Alt, then to Shipped. + const shift = () => document.querySelector(`${mount} [role="slider"][aria-label="Shift"]`) + await until(() => !!shift()) + shift()?.focus() + await until(() => !alt()) + const values = { alt: alt(), shipped: spring().duration === shipped } + host.unmount() + + return values + }, + { ...modules, tuning: sourceURL(new URL("../../ui/src/motion-tuning.ts", import.meta.url)) }, + ) + + const panel = page.locator('[data-knobs-mount="opencode-motion-Chips · Feature"]') + const shift = panel.getByRole("slider", { name: "Shift" }) + + await shift.and(page.locator(":focus")).waitFor() + await page.keyboard.press("ArrowRight") + await expect(panel.getByRole("radio", { name: "Alt, modified" })).toBeChecked() + await panel.getByRole("button", { name: "Reset Feature" }).click() + await expect(panel.getByRole("radio", { name: "Alt", exact: true })).toBeChecked() + await panel.getByRole("button", { name: "Reset Feature" }).click() + await expect(shift).toHaveCount(0) + + expect(await result).toEqual({ alt: false, shipped: true }) +}) diff --git a/packages/app/package.json b/packages/app/package.json index 6b8ddb935bbe..9e72b8696e0a 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -50,7 +50,7 @@ "diff": "catalog:", "ghostty-web": "github:anomalyco/ghostty-web#e91e38a9ceb13c566ddfa15185a9393849f712a9", "happy-dom": "20.11.1", - "knobs": "npm:@kitlangton/knobs@0.4.0-next.15", + "knobs": "npm:@kitlangton/knobs@0.4.0-next.22", "tw-animate-css": "1.4.0", "vite": "8.2.2", "vite-plugin-pwa": "1.3.0", diff --git a/packages/gui-extensions/package.json b/packages/gui-extensions/package.json index 974b4c5eedf7..73bd4afc0f9a 100644 --- a/packages/gui-extensions/package.json +++ b/packages/gui-extensions/package.json @@ -47,6 +47,7 @@ "effect": "catalog:", "fuzzysort": "catalog:", "ghostty-web": "github:anomalyco/ghostty-web#e91e38a9ceb13c566ddfa15185a9393849f712a9", + "knobs": "npm:@kitlangton/knobs@0.4.0-next.22", "remeda": "catalog:", "solid-js": "catalog:", "solid-presence": "0.2.0", diff --git a/packages/gui-extensions/src/debug/i18n/en.ts b/packages/gui-extensions/src/debug/i18n/en.ts index be265e458358..a94f224ee27e 100644 --- a/packages/gui-extensions/src/debug/i18n/en.ts +++ b/packages/gui-extensions/src/debug/i18n/en.ts @@ -48,14 +48,9 @@ export default { "motion.close": "Close Knobs", "motion.off": "Off", "motion.shipped": "Shipped", - "motion.custom": "Custom", - "motion.presets": "Presets", "motion.replay": "Replay", "motion.focus": "Focus", - "motion.reset": "Reset to Shipped", "motion.enabled": "Enabled", - "motion.duration": "Duration", - "motion.bounce": "Bounce", "components.label": "COMPONENTS", "components.tip": "Open the components lab: every story, with live controls and its states", "speed.label": "SPEED", diff --git a/packages/gui-extensions/src/debug/motion-rows.tsx b/packages/gui-extensions/src/debug/motion-rows.tsx deleted file mode 100644 index a37650d84561..000000000000 --- a/packages/gui-extensions/src/debug/motion-rows.tsx +++ /dev/null @@ -1,360 +0,0 @@ -import { For, Show, type Accessor } from "solid-js" -import { sliderFraction, sliderStep, sliderValue, Spring, type DurationOptions } from "@opencode/ui/motion" -import { motionTuning, type Bezier, type MotionKnob } from "@opencode/ui/motion-tuning" -import { changed, reset } from "@opencode/ui/motion-tuning-features" -import { SegmentedControl, SegmentedControlItem } from "@opencode/ui/segmented-control" -import { Switch } from "@opencode/ui/switch" -import { Tooltip } from "@opencode/ui/tooltip" -import { useExtension } from "../sdk" - -type Of = Extract - -// One grid for every row on a feature's page: the label, the control, the value right-aligned in its own column, and -// the dot that resets a changed knob. -const row = "grid min-h-11 grid-cols-[104px_minmax(0,1fr)_64px_16px] items-center gap-x-2 px-4" - -const sub = "grid min-h-8 grid-cols-[104px_minmax(0,1fr)_64px_16px] items-center gap-x-2 px-4" - -/** - * A knob's row on its feature's page. `live` changes whenever any knob does, since the registry isn't reactive. A row - * keeps its knob for its lifetime, so the control under a drag is never replaced. - */ -export function ControlRow(props: { knob: MotionKnob; live: Accessor; label?: string }) { - const knob = props.knob - const label = () => props.label ?? knob.label - - if (knob.kind === "number") return - - if (knob.kind === "toggle" || knob.kind === "mode") return - - if (knob.kind === "choice") return - - if (knob.kind === "spring") return - - return -} - -function NumberRow(props: { knob: Of<"number">; live: Accessor; label: string }) { - const value = read(props.knob, props.live) - - return ( -
-
- ) -} - -function ToggleRow(props: { knob: Of<"toggle"> | Of<"mode">; live: Accessor; label: string }) { - const value = read(props.knob, props.live) - - return ( -
-
- ) -} - -function ChoiceRow(props: { knob: Of<"choice">; live: Accessor; label: string }) { - const value = read(props.knob, props.live) - - return ( -
-
- ) -} - -function SpringRow(props: { knob: Of<"spring">; live: Accessor; label: string }) { - const ctx = useExtension() - const value = read(props.knob, props.live) - const set = (patch: Partial) => motionTuning.set(props.knob, { ...value(), ...patch }) - const span = () => Math.max(value().duration, props.knob.initial.duration) * 1.6 - - return ( -
-
-
-
-
-
-
-
- ) -} - -const handles = [ - { label: "x1", min: 0, max: 1 }, - { label: "y1", min: -0.5, max: 1.5 }, - { label: "x2", min: 0, max: 1 }, - { label: "y2", min: -0.5, max: 1.5 }, -] - -function EasingRow(props: { knob: Of<"easing">; live: Accessor; label: string }) { - const value = read(props.knob, props.live) - - const set = (index: number, next: number) => { - const curve: Bezier = [...value()] - curve[index] = next - motionTuning.set(props.knob, curve) - } - - return ( -
-
-
- - {(handle, index) => ( -
-
- )} -
-
- ) -} - -function Label(props: { text: string; sub?: boolean }) { - return ( - - {props.text} - - ) -} - -function Value(props: { text: string }) { - return ( - - {props.text} - - ) -} - -// A changed knob's dot resets it to what ships. -function Dot(props: { knob: MotionKnob; live: Accessor }) { - const ctx = useExtension() - - const shown = () => { - props.live() - - return changed(props.knob) - } - - return ( - }> - - - - - ) -} - -// A slider whose track scrubs: press anywhere on it and drag. The amber tick marks what ships. -function Track(props: { - label: string - value: number - shipped: number - min: number - max: number - step: number - onChange: (value: number) => void -}) { - let track!: HTMLDivElement - const spec = () => ({ min: props.min, max: props.max, step: props.step }) - const percent = (value: number) => `${sliderFraction(spec(), value) * 100}%` - - const at = (x: number) => { - const rect = track.getBoundingClientRect() - - return sliderValue(spec(), props.min + ((x - rect.left) / Math.max(1, rect.width)) * (props.max - props.min)) - } - - const press = (event: PointerEvent) => { - if (event.button !== 0) return - event.preventDefault() - track.setPointerCapture(event.pointerId) - track.focus() - props.onChange(at(event.clientX)) - } - - const drag = (event: PointerEvent) => { - if (track.hasPointerCapture(event.pointerId)) props.onChange(at(event.clientX)) - } - - const key = (event: KeyboardEvent) => { - const direction = { ArrowRight: 1, ArrowUp: 1, ArrowLeft: -1, ArrowDown: -1 }[event.key] - - if (direction !== 1 && direction !== -1) return - event.preventDefault() - props.onChange(sliderStep(spec(), props.value, direction, event.shiftKey ? 10 : 1)) - } - - return ( -
- - - - -
- ) -} - -// The curve a spring or easing draws, over the shipped one dashed. -function Graph(props: { ghost: string; path: string }) { - return ( - - ) -} - -function read(knob: K, live: Accessor): Accessor { - return () => { - live() - - return knob.value - } -} - -function format(value: number, step: number, unit?: string) { - const text = value.toFixed(step < 0.01 ? 3 : step < 0.1 ? 2 : step < 1 ? 1 : 0) - - if (!unit) return text - - return unit === "%" ? `${text}%` : `${text} ${unit}` -} - -// Height runs from 0 at the bottom to 1 near the top, with room above for overshoot. -const y = (value: number) => 42 - value * 32 - -function springPath(options: DurationOptions, span: number) { - const spring = Spring.fromDuration(0, { duration: Math.max(0.03, options.duration), bounce: Math.min(0.95, options.bounce) }) - spring.set(1) - const steps = 96 - - return Array.from({ length: steps + 1 }, (_, index) => { - const point = `${index === 0 ? "M" : "L"}${((index / steps) * 240).toFixed(1)},${y(spring.value).toFixed(1)}` - spring.step(span / steps) - - return point - }).join("") -} - -function bezierPath(curve: Bezier) { - const [x1, y1, x2, y2] = curve - const x = (value: number) => 8 + value * 224 - - return `M${x(0)},${y(0)} C${x(x1)},${y(y1)} ${x(x2)},${y(y2)} ${x(1)},${y(1)}` -} diff --git a/packages/gui-extensions/src/debug/motion.tsx b/packages/gui-extensions/src/debug/motion.tsx index dd4b7245c4af..f0ff75315bbd 100644 --- a/packages/gui-extensions/src/debug/motion.tsx +++ b/packages/gui-extensions/src/debug/motion.tsx @@ -1,9 +1,11 @@ -import { createMemo, createSignal, For, Index, onCleanup, onMount, Show } from "solid-js" +import { createMemo, createSignal, Index, onCleanup, onMount, Show } from "solid-js" import { Portal } from "solid-js/web" +import { createRemoteControls, type ControlDescriptor, type State, type Value } from "knobs" +import { KnobsPanel } from "knobs/solid" import { Icon } from "@opencode/ui/icon" import { IconButton } from "@opencode/ui/icon-button" import { springStyle } from "@opencode/ui/motion/solid" -import { motionPresets, motionTuning } from "@opencode/ui/motion-tuning" +import { motionPresets, motionTuning, type MotionKnob } from "@opencode/ui/motion-tuning" import { activeFeaturePreset, applyFeaturePreset, @@ -11,12 +13,12 @@ import { featureControls, featurePresets, motionFeatures, + reset, resetFeature, type MotionFeature, } from "@opencode/ui/motion-tuning-features" -import { SegmentedControl, SegmentedControlItem } from "@opencode/ui/segmented-control" +import { applyMotion } from "@opencode/ui/motion-tuning-fields" import { useExtension } from "../sdk" -import { ControlRow } from "./motion-rows" // Where the panel was dragged to, as an offset from its bottom-right home, its width, and the feature it last showed; // kept per device. @@ -250,14 +252,7 @@ export default function Motion(props: { title: string; onClose: () => void }) { const page = () => ( - {(item) => ( - - )} + {(item) => } ) @@ -332,30 +327,32 @@ function FeaturePage(props: { back?: () => void onFocus: (target: string) => void }) { - const ctx = useExtension() - - const state = createMemo(() => { - props.live() - - return { - controls: featureControls(props.feature), - presets: featurePresets(props.feature), - active: activeFeaturePreset(props.feature), - changed: featureChanged(props.feature), - on: props.feature.switch?.value !== false, - } - }) - - const presetLabel = (preset: string) => { - if (preset === "shipped") return ctx.t("motion.shipped") - - if (preset === "snappy" || preset === "smooth" || preset === "calm") return motionPresets[preset] - - return props.feature.modes.find((item) => item.id === preset)?.label ?? preset - } + // knobs fixes a store's presets when it's made, so a new store is made whenever the rows, the mode or the replays + // change. + const rows = createMemo( + () => { + props.live() + + return { + feature: props.feature, + mode: props.feature.modes.find((item) => item.value), + controls: featureControls(props.feature), + } + }, + undefined, + { + equals: (a, b) => + !!a && + a.feature.key === b.feature.key && + a.feature.switch === b.feature.switch && + a.mode === b.mode && + same(a.controls, b.controls) && + same(a.feature.actions, b.feature.actions), + }, + ) return ( -
+
{(back) => (
) } -function PageButton(props: { - icon: "outline-rotate-clockwise" | "select-element" | "outline-reset" - label: string - disabled?: boolean - onClick: () => void +/** + * A feature's knobs as one embedded knobs group bound to the registry: Replay and Focus beside its reset and die, its + * presets, and its rows. Choosing a preset goes through the feature model, so a mode turns on as it does from + * anywhere else. + */ +function FeatureKnobs(props: { + feature: MotionFeature + mode?: MotionKnob + controls: MotionKnob[] + live: () => number + onFocus: (target: string) => void }) { + const ctx = useExtension() + const feature = props.feature + const group = feature.key + const toggle = feature.switch + const knobs = [...(toggle ? [toggle] : []), ...props.controls] + const byId = new Map(knobs.map((item) => [item.id, item])) + // While a mode is on, the spring presets don't move its springs; choosing one turns the mode off first. + const springs = props.mode ? [] : props.controls.flatMap((item) => (item.kind === "spring" ? [item] : [])) + const presets = featurePresets(feature).filter((preset) => preset !== "shipped") + + const preset = (id: string): State => { + if (id !== "snappy" && id !== "smooth" && id !== "calm") return {} + + return Object.fromEntries(springs.map((item) => [item.id, { ...item.presets[id] }])) + } + + const target = feature.target + + const groupActions = () => [ + // One trigger is Replay; several replay on their own, each named for what it moves. + ...feature.actions.map((item) => ({ + label: feature.actions.length === 1 ? ctx.t("motion.replay") : item.label, + icon: "retrigger", + run: () => item.run(), + })), + ...(target ? [{ label: ctx.t("motion.focus"), icon: "target", run: () => props.onFocus(target) }] : []), + ] + + // Everything but the switch dims while it's off. + const off = toggle ? (values: State) => values[toggle.id] === false : undefined + + const descriptors = knobs.map((item) => + item === toggle ? descriptor(item, group, ctx.t("motion.enabled")) : descriptor(item, group, item.label, off), + ) + + const values = () => { + props.live() + + return Object.fromEntries(knobs.map((item) => [item.id, item.value])) + } + + const set = (key: string, value: Value | null) => { + const item = byId.get(key) + + // With nullDefaults off, null never arrives; resets reach onReset. + if (!item || value === null) return + + // SAFETY: each key's descriptor was made from its knob, so knobs sends that knob's kind of value. + applyMotion(item, value as MotionKnob["value"]) + } + + const controls = createRemoteControls(`opencode-motion-${group}`, descriptors, { + values: values(), + // Beta is a production build, where knobs resolves its production entry: the panel mounts only when shipped. + ship: () => import("knobs/panel"), + nullDefaults: false, + echo: 0, + persist: "none", + storage: null, + defaultLabel: ctx.t("motion.shipped"), + groupLabels: { [group]: feature.name }, + presetLabels: { ...motionPresets, ...Object.fromEntries(feature.modes.map((item) => [item.id, item.label])) }, + scopedPresets: + presets.length > 0 ? { [group]: Object.fromEntries(presets.map((id) => [id, preset(id)])) } : undefined, + onSet: set, + onSetBatch: (changes) => changes.forEach((change) => set(change.key, change.value)), + // A group's reset is the feature's, modes included. + onReset: (scope) => { + if (!scope.key) return resetFeature(feature) + + const item = byId.get(scope.key) + + if (item) reset(item) + }, + }) + + // Shows the preset the registry is on: a mode, or what its values match. + const current = activeFeaturePreset(feature) + + if (current && current !== "shipped" && presets.includes(current)) controls.preset(current, { scope: group }) + + let chosen = controls.activePreset(group)?.id + + // A chip chosen in the strip applies through the feature model, which turns modes on and off. + onCleanup( + controls.subscribe(() => { + const next = controls.activePreset(group)?.id + + if (next === chosen) return + + chosen = next + + // The Shipped chip clears the scope's active preset. + applyFeaturePreset(feature, next ?? "shipped") + }), + ) + return ( - + // Inset so the rows' labels line up with the page's title. +
+ +
) } +function descriptor( + item: MotionKnob, + group: string, + label = item.label, + disabled?: (values: State) => boolean, +): ControlDescriptor { + // Experiments are the design under test, not tuning: presets leave them be. + const meta = { + key: item.id, + label, + group, + description: item.description, + inPresets: item.experiment ? (false as const) : undefined, + disabled, + } + + if (item.kind === "number") + return { + ...meta, + kind: "number", + default: item.initial, + min: item.min, + max: item.max, + step: item.step, + unit: item.unit, + } + + if (item.kind === "choice") + return { + ...meta, + kind: "choice", + default: item.initial, + choices: item.options.map((option) => ({ id: option, label: item.labels[option] ?? option })), + } + + if (item.kind === "toggle" || item.kind === "mode") return { ...meta, kind: "toggle", default: item.initial } + + if (item.kind === "spring") return { ...meta, kind: "spring", default: { ...item.initial } } + + return { ...meta, kind: "easing", default: [...item.initial] } +} + // Frames the part of the app a feature changes: a pointer-transparent outline that fades in and out. Its rects are read // once per change of target, never per frame. function outline() { @@ -504,3 +609,7 @@ function save(state: { x: number; y: number; width: number; feature: string | un localStorage.setItem(key, JSON.stringify(state)) } catch {} } + +function same(a: T[], b: T[]) { + return a.length === b.length && a.every((item, index) => item === b[index]) +} diff --git a/packages/ui/package.json b/packages/ui/package.json index 622b0c1398aa..ae32427b9927 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -129,7 +129,7 @@ "@solid-primitives/resize-observer": "catalog:", "fuzzysort": "catalog:", "katex": "0.16.47", - "knobs": "npm:@kitlangton/knobs@0.4.0-next.15", + "knobs": "npm:@kitlangton/knobs@0.4.0-next.22", "marked": "catalog:", "motion": "12.34.5", "remeda": "catalog:",