Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat: Further optimisation of editor

Richie McIlroy48e2c5a0e9fc
diff --git a/.claude/settings.local.json b/.claude/settings.local.json
index 5b6343dd8..2dd85af65 100644
--- a/.claude/settings.local.json
+++ b/.claude/settings.local.json
@@ -31,7 +31,9 @@
"Bash(pnpm biome check:*)",
"Bash(pnpm --dir apps/desktop exec tsc:*)",
"Bash(xxd:*)",
- "Bash(git checkout:*)"
+ "Bash(git checkout:*)",
+ "WebFetch(domain:www.npmjs.com)",
+ "Bash(pnpm install:*)"
],
"deny": [],
"ask": []
diff --git a/apps/desktop/app.config.ts b/apps/desktop/app.config.ts
index 4a96df522..63cf6aadc 100644
--- a/apps/desktop/app.config.ts
+++ b/apps/desktop/app.config.ts
@@ -1,5 +1,7 @@
import capUIPlugin from "@cap/ui-solid/vite";
import { defineConfig } from "@solidjs/start/config";
+import topLevelAwait from "vite-plugin-top-level-await";
+import wasm from "vite-plugin-wasm";
import tsconfigPaths from "vite-tsconfig-paths";
export default defineConfig({
@@ -22,9 +24,10 @@ export default defineConfig({
envPrefix: ["VITE_", "TAURI_"],
assetsInclude: ["**/*.riv"],
plugins: [
+ wasm(),
+ topLevelAwait(),
capUIPlugin,
tsconfigPaths({
- // If this isn't set Vinxi hangs on startup
root: ".",
}),
],
diff --git a/apps/desktop/package.json b/apps/desktop/package.json
index b83a4b354..810bf74ea 100644
--- a/apps/desktop/package.json
+++ b/apps/desktop/package.json
@@ -56,7 +56,7 @@
"@types/react-tooltip": "^4.2.4",
"cva": "npm:class-variance-authority@^0.7.0",
"effect": "^3.18.4",
- "lz4js": "^0.2.0",
+ "lz4-wasm": "^0.9.2",
"mp4box": "^0.5.2",
"posthog-js": "^1.215.3",
"solid-js": "^1.9.3",
@@ -77,11 +77,12 @@
"@tauri-apps/cli": ">=2.1.0",
"@total-typescript/ts-reset": "^0.6.1",
"@types/dom-webcodecs": "^0.1.11",
- "@types/lz4js": "^0.2.1",
"@types/uuid": "^9.0.8",
"cross-env": "^7.0.3",
"typescript": "^5.8.3",
"vite": "^6.3.5",
+ "vite-plugin-top-level-await": "^1.4.4",
+ "vite-plugin-wasm": "^3.4.1",
"vite-tsconfig-paths": "^5.0.1",
"vitest": "~2.1.9"
}
diff --git a/apps/desktop/src/routes/editor/Player.tsx b/apps/desktop/src/routes/editor/Player.tsx
index db042508a..caa144c9f 100644
--- a/apps/desktop/src/routes/editor/Player.tsx
+++ b/apps/desktop/src/routes/editor/Player.tsx
@@ -459,26 +459,39 @@ function PreviewCanvas() {
let canvasRef: HTMLCanvasElement | undefined;
let ctx: CanvasRenderingContext2D | null = null;
let rafId: number | null = null;
- let lastFrameData: ImageData | null = null;
+ let lastBitmap: ImageBitmap | null = null;
+ let currentFrameRef: {
+ bitmap: ImageBitmap;
+ width: number;
+ height: number;
+ } | null = null;
const [canvasContainerRef, setCanvasContainerRef] =
createSignal<HTMLDivElement>();
const containerBounds = createElementBounds(canvasContainerRef);
- const renderLoop = () => {
- const frame = latestFrame();
+ const renderFrame = (frame: { bitmap: ImageBitmap }) => {
+ if (!canvasRef) return;
+ if (frame.bitmap === lastBitmap) return;
- if (frame && canvasRef && frame.data !== lastFrameData) {
- if (!ctx) {
- ctx = canvasRef.getContext("2d", {
- alpha: false,
- desynchronized: true,
- });
- }
- if (ctx) {
- ctx.putImageData(frame.data, 0, 0);
- lastFrameData = frame.data;
+ if (!ctx) {
+ ctx = canvasRef.getContext("2d", {
+ alpha: false,
+ desynchronized: true,
+ });
+ }
+ if (ctx) {
+ ctx.drawImage(frame.bitmap, 0, 0);
+ if (lastBitmap && lastBitmap !== frame.bitmap) {
+ lastBitmap.close();
}
+ lastBitmap = frame.bitmap;
+ }
+ };
+
+ const renderLoop = () => {
+ if (currentFrameRef) {
+ renderFrame(currentFrameRef);
}
if (editorState.playing) {
@@ -492,21 +505,14 @@ function PreviewCanvas() {
const frame = latestFrame();
if (!frame || !canvasRef) return;
+ currentFrameRef = frame;
+
if (editorState.playing) {
if (rafId === null) {
rafId = requestAnimationFrame(renderLoop);
}
} else {
- if (!ctx) {
- ctx = canvasRef.getContext("2d", {
- alpha: false,
- desynchronized: true,
- });
- }
- if (ctx && frame.data !== lastFrameData) {
- ctx.putImageData(frame.data, 0, 0);
- lastFrameData = frame.data;
- }
+ renderFrame(frame);
}
});
@@ -514,6 +520,11 @@ function PreviewCanvas() {
if (rafId !== null) {
cancelAnimationFrame(rafId);
}
+ if (lastBitmap) {
+ lastBitmap.close();
+ lastBitmap = null;
+ }
+ currentFrameRef = null;
ctx = null;
});
@@ -521,12 +532,13 @@ function PreviewCanvas() {
<div
ref={setCanvasContainerRef}
class="relative flex-1 justify-center items-center"
+ style={{ contain: "layout style" }}
>
<Show when={latestFrame()}>
{(currentFrame) => {
const padding = 4;
const frameWidth = () => currentFrame().width;
- const frameHeight = () => currentFrame().data.height;
+ const frameHeight = () => currentFrame().height;
const availableWidth = () =>
Math.max((containerBounds.width ?? 0) - padding * 2, 0);
@@ -568,12 +580,14 @@ function PreviewCanvas() {
style={{
width: `${size().width}px`,
height: `${size().height}px`,
+ contain: "strict",
}}
>
<canvas
style={{
width: `${size().width}px`,
height: `${size().height}px`,
+ "image-rendering": "auto",
...gridStyle,
}}
ref={canvasRef}
diff --git a/apps/desktop/src/routes/editor/context.ts b/apps/desktop/src/routes/editor/context.ts
index f98d90544..d2592c48c 100644
--- a/apps/desktop/src/routes/editor/context.ts
+++ b/apps/desktop/src/routes/editor/context.ts
@@ -20,7 +20,11 @@ import { createStore, produce, reconcile, unwrap } from "solid-js/store";
import { createPresets } from "~/utils/createPresets";
import { createCustomDomainQuery } from "~/utils/queries";
-import { createImageDataWS, createLazySignal } from "~/utils/socket";
+import {
+ createImageDataWS,
+ createLazySignal,
+ type FrameData,
+} from "~/utils/socket";
import {
commands,
events,
@@ -691,7 +695,7 @@ export const [EditorContextProvider, useEditorContext] = createContextProvider(
null!,
);
-export type FrameData = { width: number; height: number; data: ImageData };
+export type { FrameData } from "~/utils/socket";
function transformMeta({ pretty_name, ...rawMeta }: RecordingMeta) {
if ("fps" in rawMeta) {
@@ -735,25 +739,26 @@ export type TransformedMeta = ReturnType<typeof transformMeta>;
export const [EditorInstanceContextProvider, useEditorInstanceContext] =
createContextProvider(() => {
- const [latestFrame, setLatestFrame] = createLazySignal<{
- width: number;
- data: ImageData;
- }>();
+ const [latestFrame, setLatestFrame] = createLazySignal<FrameData>();
const [isConnected, setIsConnected] = createSignal(false);
+ const [isWorkerReady, setIsWorkerReady] = createSignal(false);
const [editorInstance] = createResource(async () => {
console.log("[Editor] Creating editor instance...");
const instance = await commands.createEditorInstance();
console.log("[Editor] Editor instance created, setting up WebSocket");
- const [ws, wsConnected] = createImageDataWS(
+ const [ws, _wsConnected, workerReady] = createImageDataWS(
instance.framesSocketUrl,
setLatestFrame,
);
+ createEffect(() => {
+ setIsWorkerReady(workerReady());
+ });
+
ws.addEventListener("open", () => {
- console.log("[Editor] WebSocket open event - emitting initial frame");
setIsConnected(true);
events.renderFrameEvent.emit({
frame_number: 0,
@@ -783,6 +788,7 @@ export const [EditorInstanceContextProvider, useEditorInstanceContext] =
latestFrame,
presets: createPresets(),
metaQuery,
+ isWorkerReady,
};
}, null!);
diff --git a/apps/desktop/src/routes/screenshot-editor/Header.tsx b/apps/desktop/src/routes/screenshot-editor/Header.tsx
index 56d0ad594..d28ce0a40 100644
--- a/apps/desktop/src/routes/screenshot-editor/Header.tsx
+++ b/apps/desktop/src/routes/screenshot-editor/Header.tsx
@@ -66,16 +66,16 @@ export function Header() {
const cropDialogHandler = () => {
const frame = latestFrame();
- if (!frame?.data) return;
+ if (!frame?.bitmap) return;
setDialog({
open: true,
type: "crop",
- originalSize: { x: frame.data.width, y: frame.data.height },
+ originalSize: { x: frame.width, y: frame.height },
currentCrop: project.background.crop,
});
};
- const isCropDisabled = () => !latestFrame()?.data;
+ const isCropDisabled = () => !latestFrame()?.bitmap;
return (
<div
diff --git a/apps/desktop/src/routes/screenshot-editor/Preview.tsx b/apps/desktop/src/routes/screenshot-editor/Preview.tsx
index 60fff182f..69df56460 100644
--- a/apps/desktop/src/routes/screenshot-editor/Preview.tsx
+++ b/apps/desktop/src/routes/screenshot-editor/Preview.tsx
@@ -95,7 +95,7 @@ export function Preview(props: { zoom: number; setZoom: (z: number) => void }) {
if (frame && canvasRef) {
const ctx = canvasRef.getContext("2d");
if (ctx) {
- ctx.putImageData(frame.data, 0, 0);
+ ctx.drawImage(frame.bitmap, 0, 0);
const crop = project.background.crop;
if (crop) {
const width = canvasRef.width;
@@ -172,13 +172,14 @@ export function Preview(props: { zoom: number; setZoom: (z: number) => void }) {
if (!f)
return {
width: 0,
- data: { width: 0, height: 0 } as ImageData,
+ height: 0,
+ bitmap: null as unknown as ImageBitmap,
};
return f;
};
const frameWidth = () => frame().width;
- const frameHeight = () => frame().data.height;
+ const frameHeight = () => frame().height;
const imageRect = createMemo(() => {
const crop = project.background.crop;
@@ -403,10 +404,10 @@ export function Preview(props: { zoom: number; setZoom: (z: number) => void }) {
if (
maskCanvasRef.width !== frameData.width ||
- maskCanvasRef.height !== frameData.data.height
+ maskCanvasRef.height !== frameData.height
) {
maskCanvasRef.width = frameData.width;
- maskCanvasRef.height = frameData.data.height;
+ maskCanvasRef.height = frameData.height;
}
ctx.clearRect(0, 0, maskCanvasRef.width, maskCanvasRef.height);
diff --git a/apps/desktop/src/routes/screenshot-editor/context.tsx b/apps/desktop/src/routes/screenshot-editor/context.tsx
index 6d5f4ba83..fd49a9c0e 100644
--- a/apps/desktop/src/routes/screenshot-editor/context.tsx
+++ b/apps/desktop/src/routes/screenshot-editor/context.tsx
@@ -5,7 +5,11 @@ import { makePersisted } from "@solid-primitives/storage";
import { convertFileSrc } from "@tauri-apps/api/core";
import { createEffect, createResource, createSignal, on } from "solid-js";
import { createStore, reconcile, unwrap } from "solid-js/store";
-import { createImageDataWS, createLazySignal } from "~/utils/socket";
+import {
+ createImageDataWS,
+ createLazySignal,
+ type FrameData,
+} from "~/utils/socket";
import {
type Annotation,
type AnnotationType,
@@ -126,10 +130,7 @@ function createScreenshotEditorContext() {
open: false,
});
- const [latestFrame, setLatestFrame] = createLazySignal<{
- width: number;
- data: ImageData;
- }>();
+ const [latestFrame, setLatestFrame] = createLazySignal<FrameData>();
const [editorInstance] = createResource(async () => {
const instance = await commands.createScreenshotEditorInstance();
@@ -141,30 +142,25 @@ function createScreenshotEditorContext() {
}
}
- // Load initial frame from disk in case WS fails or is slow
if (instance.path) {
const img = new Image();
img.crossOrigin = "anonymous";
img.src = convertFileSrc(instance.path);
- img.onload = () => {
- const canvas = document.createElement("canvas");
- canvas.width = img.naturalWidth;
- canvas.height = img.naturalHeight;
- const ctx = canvas.getContext("2d");
- if (ctx) {
- ctx.drawImage(img, 0, 0);
- const data = ctx.getImageData(
- 0,
- 0,
- img.naturalWidth,
- img.naturalHeight,
- );
- setLatestFrame({ width: img.naturalWidth, data });
+ img.onload = async () => {
+ try {
+ const bitmap = await createImageBitmap(img);
+ setLatestFrame({
+ width: img.naturalWidth,
+ height: img.naturalHeight,
+ bitmap,
+ });
+ } catch (e) {
+ console.error("Failed to create ImageBitmap from fallback image:", e);
}
};
}
- const [_ws, _isConnected] = createImageDataWS(
+ const [_ws, _isConnected, _isWorkerReady] = createImageDataWS(
instance.framesSocketUrl,
setLatestFrame,
);
diff --git a/apps/desktop/src/routes/screenshot-editor/useScreenshotExport.ts b/apps/desktop/src/routes/screenshot-editor/useScreenshotExport.ts
index 10e8d754d..a6fa99a9a 100644
--- a/apps/desktop/src/routes/screenshot-editor/useScreenshotExport.ts
+++ b/apps/desktop/src/routes/screenshot-editor/useScreenshotExport.ts
@@ -190,8 +190,8 @@ export function useScreenshotExport() {
const frame = latestFrame();
if (frame) {
canvas.width = frame.width;
- canvas.height = frame.data.height;
- ctx.putImageData(frame.data, 0, 0);
+ canvas.height = frame.height;
+ ctx.drawImage(frame.bitmap, 0, 0);
} else {
const img = new Image();
img.src = convertFileSrc(editorCtx.path);
diff --git a/apps/desktop/src/utils/frame-worker.ts b/apps/desktop/src/utils/frame-worker.ts
new file mode 100644
index 000000000..be840a950
--- /dev/null
+++ b/apps/desktop/src/utils/frame-worker.ts
@@ -0,0 +1,174 @@
+import * as lz4 from "lz4-wasm";
+
+interface FrameMessage {
+ type: "frame";
+ buffer: ArrayBuffer;
+}
+
+interface ReadyMessage {
+ type: "ready";
+}
+
+interface DecodedFrame {
+ type: "decoded";
+ bitmap: ImageBitmap;
+ width: number;
+ height: number;
+}
+
+interface ErrorMessage {
+ type: "error";
+ message: string;
+}
+
+let wasmReady = false;
+let pendingFrames: ArrayBuffer[] = [];
+
+let cachedPixelBuffer: Uint8ClampedArray | null = null;
+let cachedPixelBufferSize = 0;
+let strideBuffer: Uint8ClampedArray | null = null;
+let strideBufferSize = 0;
+let cachedImageData: ImageData | null = null;
+let cachedWidth = 0;
+let cachedHeight = 0;
+
+function decompressLz4(compressedBuffer: ArrayBuffer): Uint8Array {
+ return lz4.decompress(new Uint8Array(compressedBuffer));
+}
+
+async function initWasm() {
+ try {
+ const testData = new Uint8Array([4, 0, 0, 0, 0x40, 0x74, 0x65, 0x73, 0x74]);
+ lz4.decompress(testData);
+ wasmReady = true;
+ self.postMessage({ type: "ready" } satisfies ReadyMessage);
+
+ for (const buffer of pendingFrames) {
+ const result = await processFrame(buffer);
+ if (result.type === "decoded") {
+ self.postMessage(result, { transfer: [result.bitmap] });
+ } else {
+ self.postMessage(result);
+ }
+ }
+ pendingFrames = [];
+ } catch (e) {
+ self.postMessage({
+ type: "error",
+ message: `Failed to initialize WASM LZ4: ${e}`,
+ } satisfies ErrorMessage);
+ }
+}
+
+initWasm();
+
+async function processFrame(
+ buffer: ArrayBuffer,
+): Promise<DecodedFrame | ErrorMessage> {
+ let decompressed: Uint8Array;
+ try {
+ decompressed = decompressLz4(buffer);
+ } catch (e) {
+ return { type: "error", message: `Failed to decompress frame: ${e}` };
+ }
+
+ const clamped = new Uint8ClampedArray(decompressed);
+ if (clamped.length < 12) {
+ return {
+ type: "error",
+ message: "Received frame too small to contain metadata",
+ };
+ }
+
+ const metadataOffset = clamped.length - 12;
+ const meta = new DataView(decompressed.buffer, metadataOffset, 12);
+ const strideBytes = meta.getUint32(0, true);
+ const height = meta.getUint32(4, true);
+ const width = meta.getUint32(8, true);
+
+ if (!width || !height) {
+ return {
+ type: "error",
+ message: `Received invalid frame dimensions: ${width}x${height}`,
+ };
+ }
+
+ const source = clamped.subarray(0, metadataOffset);
+ const expectedRowBytes = width * 4;
+ const expectedLength = expectedRowBytes * height;
+ const availableLength = strideBytes * height;
+
+ if (
+ strideBytes === 0 ||
+ strideBytes < expectedRowBytes ||
+ source.length < availableLength
+ ) {
+ return {
+ type: "error",
+ message: `Received invalid frame stride: ${strideBytes}, expected: ${expectedRowBytes}`,
+ };
+ }
+
+ let pixels: Uint8ClampedArray;
+
+ if (strideBytes === expectedRowBytes) {
+ if (!cachedPixelBuffer || cachedPixelBufferSize < expectedLength) {
+ cachedPixelBuffer = new Uint8ClampedArray(expectedLength);
+ cachedPixelBufferSize = expectedLength;
+ }
+ cachedPixelBuffer.set(source.subarray(0, expectedLength));
+ pixels = cachedPixelBuffer.subarray(0, expectedLength);
+ } else {
+ if (!strideBuffer || strideBufferSize < expectedLength) {
+ strideBuffer = new Uint8ClampedArray(expectedLength);
+ strideBufferSize = expectedLength;
+ }
+ for (let row = 0; row < height; row += 1) {
+ const srcStart = row * strideBytes;
+ const destStart = row * expectedRowBytes;
+ strideBuffer.set(
+ source.subarray(srcStart, srcStart + expectedRowBytes),
+ destStart,
+ );
+ }
+ pixels = strideBuffer.subarray(0, expectedLength);
+ }
+
+ if (!cachedImageData || cachedWidth !== width || cachedHeight !== height) {
+ cachedImageData = new ImageData(width, height);
+ cachedWidth = width;
+ cachedHeight = height;
+ }
+ cachedImageData.data.set(pixels);
+
+ try {
+ const bitmap = await createImageBitmap(cachedImageData);
+ return {
+ type: "decoded",
+ bitmap,
+ width,
+ height,
+ };
+ } catch (e) {
+ return {
+ type: "error",
+ message: `Failed to create ImageBitmap: ${e}`,
+ };
+ }
+}
+
+self.onmessage = async (e: MessageEvent<FrameMessage>) => {
+ if (e.data.type === "frame") {
+ if (!wasmReady) {
+ pendingFrames.push(e.data.buffer);
+ return;
+ }
+
+ const result = await processFrame(e.data.buffer);
+ if (result.type === "decoded") {
+ self.postMessage(result, { transfer: [result.bitmap] });
+ } else {
+ self.postMessage(result);
+ }
+ }
+};
diff --git a/apps/desktop/src/utils/socket.ts b/apps/desktop/src/utils/socket.ts
index 361e934d1..63877443b 100644
--- a/apps/desktop/src/utils/socket.ts
+++ b/apps/desktop/src/utils/socket.ts
@@ -1,221 +1,106 @@
import { createWS } from "@solid-primitives/websocket";
-import * as lz4 from "lz4js";
import { createResource, createSignal } from "solid-js";
+import FrameWorker from "./frame-worker?worker";
-interface SocketMetrics {
- framesReceived: number;
- totalParseTimeMs: number;
- totalDecompressTimeMs: number;
- totalImageDataTimeMs: number;
- maxParseTimeMs: number;
- maxDecompressTimeMs: number;
- maxImageDataTimeMs: number;
- lastLogTime: number;
-}
+export type FrameData = {
+ width: number;
+ height: number;
+ bitmap: ImageBitmap;
+};
-function decompressLz4(compressedBuffer: ArrayBuffer): Uint8Array {
- const view = new DataView(compressedBuffer);
- const uncompressedSize = view.getUint32(0, true);
- const dataAfterSize = compressedBuffer.byteLength - 4;
+interface ReadyMessage {
+ type: "ready";
+}
- if (dataAfterSize === uncompressedSize) {
- return new Uint8Array(compressedBuffer.slice(4));
- }
+interface DecodedFrame {
+ type: "decoded";
+ bitmap: ImageBitmap;
+ width: number;
+ height: number;
+}
- const compressedData = new Uint8Array(compressedBuffer, 4);
- const output = new Uint8Array(uncompressedSize);
- lz4.decompressBlock(compressedData, output, 0, compressedData.length, 0);
- return output;
+interface ErrorMessage {
+ type: "error";
+ message: string;
}
+type WorkerMessage = ReadyMessage | DecodedFrame | ErrorMessage;
+
export function createImageDataWS(
url: string,
- onmessage: (data: { width: number; data: ImageData }) => void,
-): [Omit<WebSocket, "onmessage">, () => boolean] {
+ onmessage: (data: FrameData) => void,
+): [Omit<WebSocket, "onmessage">, () => boolean, () => boolean] {
const [isConnected, setIsConnected] = createSignal(false);
+ const [isWorkerReady, setIsWorkerReady] = createSignal(false);
const ws = createWS(url);
- const metrics: SocketMetrics = {
- framesReceived: 0,
- totalParseTimeMs: 0,
- totalDecompressTimeMs: 0,
- totalImageDataTimeMs: 0,
- maxParseTimeMs: 0,
- maxDecompressTimeMs: 0,
- maxImageDataTimeMs: 0,
- lastLogTime: performance.now(),
+ const worker = new FrameWorker();
+ let pendingFrame: ArrayBuffer | null = null;
+ let isProcessing = false;
+ let nextFrame: ArrayBuffer | null = null;
+
+ worker.onmessage = (e: MessageEvent<WorkerMessage>) => {
+ if (e.data.type === "ready") {
+ setIsWorkerReady(true);
+ return;
+ }
+
+ if (e.data.type === "error") {
+ console.error("[FrameWorker]", e.data.message);
+ isProcessing = false;
+ processNextFrame();
+ return;
+ }
+
+ const { bitmap, width, height } = e.data;
+ onmessage({ width, height, bitmap });
+
+ isProcessing = false;
+ processNextFrame();
};
+ function processNextFrame() {
+ if (isProcessing) return;
+
+ const buffer = nextFrame || pendingFrame;
+ if (!buffer) return;
+
+ if (nextFrame) {
+ nextFrame = null;
+ } else {
+ pendingFrame = null;
+ }
+
+ isProcessing = true;
+ worker.postMessage({ type: "frame", buffer }, [buffer]);
+ }
+
ws.addEventListener("open", () => {
- console.log("WebSocket connected");
setIsConnected(true);
- metrics.lastLogTime = performance.now();
});
ws.addEventListener("close", () => {
- console.log("WebSocket disconnected");
- if (metrics.framesReceived > 0) {
- const avgParseTime = metrics.totalParseTimeMs / metrics.framesReceived;
- const avgDecompressTime =
- metrics.totalDecompressTimeMs / metrics.framesReceived;
- const avgImageDataTime =
- metrics.totalImageDataTimeMs / metrics.framesReceived;
- console.log(
- `[PERF:FRONTEND_WS] session ended - frames: ${metrics.framesReceived}, avg decompress: ${avgDecompressTime.toFixed(2)}ms, avg parse: ${avgParseTime.toFixed(2)}ms, avg imageData: ${avgImageDataTime.toFixed(2)}ms, max decompress: ${metrics.maxDecompressTimeMs.toFixed(2)}ms, max parse: ${metrics.maxParseTimeMs.toFixed(2)}ms, max imageData: ${metrics.maxImageDataTimeMs.toFixed(2)}ms`,
- );
- }
setIsConnected(false);
+ worker.terminate();
});
- ws.addEventListener("error", (error) => {
- console.error("WebSocket error:", error);
+ ws.addEventListener("error", () => {
setIsConnected(false);
});
ws.binaryType = "arraybuffer";
ws.onmessage = (event) => {
- const frameStart = performance.now();
- const compressedBuffer = event.data as ArrayBuffer;
- const compressedSize = compressedBuffer.byteLength;
-
- const decompressStart = performance.now();
- let decompressed: Uint8Array;
- try {
- decompressed = decompressLz4(compressedBuffer);
- } catch (e) {
- console.error("Failed to decompress frame:", e);
- return;
- }
- const decompressTime = performance.now() - decompressStart;
-
- const buffer = decompressed.buffer;
- const clamped = new Uint8ClampedArray(decompressed);
- if (clamped.length < 12) {
- console.error("Received frame too small to contain metadata");
- return;
- }
-
- const metadataOffset = clamped.length - 12;
- const meta = new DataView(buffer, metadataOffset, 12);
- const strideBytes = meta.getUint32(0, true);
- const height = meta.getUint32(4, true);
- const width = meta.getUint32(8, true);
+ const buffer = event.data as ArrayBuffer;
- if (!width || !height) {
- console.error("Received invalid frame dimensions", { width, height });
- return;
- }
-
- const source = clamped.subarray(0, metadataOffset);
- const expectedRowBytes = width * 4;
- const expectedLength = expectedRowBytes * height;
- const availableLength = strideBytes * height;
-
- if (
- strideBytes === 0 ||
- strideBytes < expectedRowBytes ||
- source.length < availableLength
- ) {
- console.error("Received invalid frame stride", {
- strideBytes,
- expectedRowBytes,
- height,
- sourceLength: source.length,
- });
- return;
- }
-
- let pixels: Uint8ClampedArray;
-
- const strideConvertStart = performance.now();
- if (strideBytes === expectedRowBytes) {
- pixels = source.subarray(0, expectedLength);
+ if (isProcessing) {
+ nextFrame = buffer;
} else {
- pixels = new Uint8ClampedArray(expectedLength);
- for (let row = 0; row < height; row += 1) {
- const srcStart = row * strideBytes;
- const destStart = row * expectedRowBytes;
- pixels.set(
- source.subarray(srcStart, srcStart + expectedRowBytes),
- destStart,
- );
- }
- }
- const parseTime = performance.now() - frameStart;
-
- const imageDataStart = performance.now();
- const imageData = new ImageData(pixels, width, height);
- onmessage({ width, data: imageData });
- const imageDataTime = performance.now() - imageDataStart;
-
- metrics.framesReceived++;
- metrics.totalDecompressTimeMs += decompressTime;
- metrics.totalParseTimeMs += parseTime;
- metrics.totalImageDataTimeMs += imageDataTime;
- metrics.maxDecompressTimeMs = Math.max(
- metrics.maxDecompressTimeMs,
- decompressTime,
- );
- metrics.maxParseTimeMs = Math.max(metrics.maxParseTimeMs, parseTime);
- metrics.maxImageDataTimeMs = Math.max(
- metrics.maxImageDataTimeMs,
- imageDataTime,
- );
-
- const now = performance.now();
- if (now - metrics.lastLogTime >= 2000 && metrics.framesReceived > 0) {
- const avgDecompressTime =
- metrics.totalDecompressTimeMs / metrics.framesReceived;
- const avgParseTime = metrics.totalParseTimeMs / metrics.framesReceived;
- const avgImageDataTime =
- metrics.totalImageDataTimeMs / metrics.framesReceived;
- const compressionRatio = (
- (compressedSize / decompressed.length) *
- 100
- ).toFixed(1);
- console.log(
- `[PERF:FRONTEND_WS] periodic - frames: ${metrics.framesReceived}, compressed: ${compressedSize} bytes (${compressionRatio}%), decompressed: ${decompressed.length} bytes, avg decompress: ${avgDecompressTime.toFixed(2)}ms, avg parse: ${avgParseTime.toFixed(2)}ms, avg imageData: ${avgImageDataTime.toFixed(2)}ms, dimensions: ${width}x${height}`,
- );
- // #region agent log
- fetch(
- "http://127.0.0.1:7242/ingest/966647b7-72f6-4ab7-b76e-6b773ac020d7",
- {
- method: "POST",
- headers: { "Content-Type": "application/json" },
- body: JSON.stringify({
- location: "socket.ts:ws_metrics",
- message: "frontend WS metrics",
- data: {
- framesReceived: metrics.framesReceived,
- avgDecompressMs: avgDecompressTime.toFixed(2),
- avgParseMs: avgParseTime.toFixed(2),
- avgImageDataMs: avgImageDataTime.toFixed(2),
- maxDecompressMs: metrics.maxDecompressTimeMs.toFixed(2),
- maxParseMs: metrics.maxParseTimeMs.toFixed(2),
- compressedBytes: compressedSize,
- decompressedBytes: decompressed.length,
- compressionRatio,
- width,
- height,
- },
- timestamp: Date.now(),
- sessionId: "debug-session",
- hypothesisId: "B",
- }),
- },
- ).catch(() => {});
- // #endregion
- metrics.lastLogTime = now;
- }
-
- if (parseTime > 10) {
- console.warn(
- `[PERF:FRONTEND_WS] high parse time: ${parseTime.toFixed(2)}ms for ${width}x${height} frame`,
- );
+ pendingFrame = buffer;
+ processNextFrame();
}
};
- return [ws, isConnected];
+ return [ws, isConnected, isWorkerReady];
}
export function createLazySignal<T>() {
diff --git a/crates/editor/src/playback.rs b/crates/editor/src/playback.rs
index 70761b756..1250fb655 100644
--- a/crates/editor/src/playback.rs
+++ b/crates/editor/src/playback.rs
@@ -194,10 +194,6 @@ impl Playback {
frames_decoded = 0;
prefetched_behind.clear();
- let in_flight_before =
- prefetch_in_flight.read().map(|g| g.len()).unwrap_or(0);
- let futures_before = in_flight.len();
-
if let Ok(mut in_flight_guard) = prefetch_in_flight.write() {
in_flight_guard.clear();
}
@@ -205,30 +201,6 @@ impl Playback {
if is_backward_seek || seek_distance > MAX_PREFETCH_AHEAD / 2 {
in_flight = FuturesUnordered::new();
}
-
- let in_flight_after =
- prefetch_in_flight.read().map(|g| g.len()).unwrap_or(0);
- let futures_after = in_flight.len();
-
- // #region agent log
- use std::io::Write;
- if let Ok(mut file) = std::fs::OpenOptions::new()
- .create(true)
- .append(true)
- .open("/Users/macbookuser/Documents/GitHub/cap/.cursor/debug.log")
- {
- let ts = std::time::SystemTime::now()
- .duration_since(std::time::UNIX_EPOCH)
- .unwrap()
- .as_millis() as u64;
- writeln!(
- file,
- r#"{{"location":"playback.rs:prefetch_seek","message":"prefetch task received seek","data":{{"old_frame":{},"new_frame":{},"is_backward":{},"seek_distance":{},"in_flight_before":{},"in_flight_after":{},"futures_before":{},"futures_after":{}}},"timestamp":{},"sessionId":"debug-session","hypothesisId":"B"}}"#,
- old_frame, requested, is_backward_seek, seek_distance, in_flight_before, in_flight_after, futures_before, futures_after, ts
- )
- .ok();
- }
- // #endregion
}
}
@@ -412,26 +384,6 @@ impl Playback {
"[PERF:PLAYBACK] starting playback"
);
- // #region agent log
- use std::io::Write as _;
- if let Ok(mut file) = std::fs::OpenOptions::new()
- .create(true)
- .append(true)
- .open("/Users/macbookuser/Documents/GitHub/cap/.cursor/debug.log")
- {
- let ts = std::time::SystemTime::now()
- .duration_since(std::time::UNIX_EPOCH)
- .unwrap()
- .as_millis() as u64;
- writeln!(
- file,
- r#"{{"location":"playback.rs:start","message":"playback starting","data":{{"start_frame":{},"fps":{},"duration":{}}},"timestamp":{},"sessionId":"debug-session","hypothesisId":"E"}}"#,
- self.start_frame_number, fps, duration, ts
- )
- .ok();
- }
- // #endregion
-
let warmup_start = Instant::now();
let warmup_target_frames = 2usize;
let warmup_after_first_timeout = Duration::from_millis(50);
@@ -599,27 +551,6 @@ impl Playback {
if prefetch_buffer.is_empty() && total_frames_rendered < 15 {
let _ = frame_request_tx.send(frame_number);
- // #region agent log
- use std::io::Write;
- if let Ok(mut file) =
- std::fs::OpenOptions::new().create(true).append(true).open(
- "/Users/macbookuser/Documents/GitHub/cap/.cursor/debug.log",
- )
- {
- let ts = std::time::SystemTime::now()
- .duration_since(std::time::UNIX_EPOCH)
- .unwrap()
- .as_millis()
- as u64;
- writeln!(
- file,
- r#"{{"location":"playback.rs:wait_for_prefetch","message":"waiting for prefetch to catch up","data":{{"frame":{},"total_rendered":{}}},"timestamp":{},"sessionId":"debug-session","hypothesisId":"H"}}"#,
- frame_number, total_frames_rendered, ts
- )
- .ok();
- }
- // #endregion
-
let wait_result = tokio::time::timeout(
Duration::from_millis(100),
prefetch_rx.recv(),
@@ -679,25 +610,6 @@ impl Playback {
if let Ok(mut guard) = main_in_flight.write() {
guard.remove(&frame_number);
}
- // #region agent log
- use std::io::Write;
- if let Ok(mut file) = std::fs::OpenOptions::new()
- .create(true)
- .append(true)
- .open("/Users/macbookuser/Documents/GitHub/cap/.cursor/debug.log")
- {
- let ts = std::time::SystemTime::now()
- .duration_since(std::time::UNIX_EPOCH)
- .unwrap()
- .as_millis() as u64;
- writeln!(
- file,
- r#"{{"location":"playback.rs:decoder_timeout","message":"direct decoder call timed out","data":{{"frame":{},"timeout_ms":100}},"timestamp":{},"sessionId":"debug-session","hypothesisId":"M"}}"#,
- frame_number, ts
- )
- .ok();
- }
- // #endregion
frame_number = frame_number.saturating_add(1);
total_frames_skipped += 1;
continue;
@@ -720,28 +632,6 @@ impl Playback {
let frame_fetch_time = frame_fetch_start.elapsed();
- // #region agent log
- if frame_fetch_time.as_millis() > 200 {
- use std::io::Write;
- if let Ok(mut file) = std::fs::OpenOptions::new()
- .create(true)
- .append(true)
- .open("/Users/macbookuser/Documents/GitHub/cap/.cursor/debug.log")
- {
- let ts = std::time::SystemTime::now()
- .duration_since(std::time::UNIX_EPOCH)
- .unwrap()
- .as_millis() as u64;
- writeln!(
- file,
- r#"{{"location":"playback.rs:long_frame_fetch","message":"frame fetch took >200ms","data":{{"frame":{},"fetch_ms":{},"was_cached":{},"was_prefetched":{},"prefetch_buffer_size":{}}},"timestamp":{},"sessionId":"debug-session","hypothesisId":"N"}}"#,
- frame_number, frame_fetch_time.as_millis(), was_cached, was_prefetched, prefetch_buffer.len(), ts
- )
- .ok();
- }
- }
- // #endregion
-
if let Some((segment_frames, segment_index)) = segment_frames_opt {
let Some(segment_media) = self.segment_medias.get(segment_index as usize)
else {
@@ -792,34 +682,6 @@ impl Playback {
render_us = render_time_us,
"[PERF:PLAYBACK] frame rendered"
);
-
- // #region agent log
- use std::io::Write;
- if let Ok(mut file) = std::fs::OpenOptions::new()
- .create(true)
- .append(true)
- .open("/Users/macbookuser/Documents/GitHub/cap/.cursor/debug.log")
- {
- let ts = std::time::SystemTime::now()
- .duration_since(std::time::UNIX_EPOCH)
- .unwrap()
- .as_millis() as u64;
- writeln!(
- file,
- r#"{{"location":"playback.rs:frame_rendered","message":"playback frame timing","data":{{"frame":{},"cache_hit":{},"prefetch_hit":{},"prefetch_buffer_size":{},"cache_size":{},"frame_fetch_us":{},"uniforms_us":{},"render_us":{}}},"timestamp":{},"sessionId":"debug-session","hypothesisId":"D"}}"#,
- frame_number,
- was_cached,
- was_prefetched,
- prefetch_buffer.len(),
- frame_cache.len(),
- frame_fetch_time.as_micros() as u64,
- uniforms_time.as_micros() as u64,
- render_time_us,
- ts
- )
- .ok();
- }
- // #endregion
}
event_tx.send(PlaybackEvent::Frame(frame_number)).ok();
@@ -850,26 +712,6 @@ impl Playback {
"[PERF:PLAYBACK] skipping frames to catch up"
);
- // #region agent log
- use std::io::Write;
- if let Ok(mut file) = std::fs::OpenOptions::new()
- .create(true)
- .append(true)
- .open("/Users/macbookuser/Documents/GitHub/cap/.cursor/debug.log")
- {
- let ts = std::time::SystemTime::now()
- .duration_since(std::time::UNIX_EPOCH)
- .unwrap()
- .as_millis() as u64;
- writeln!(
- file,
- r#"{{"location":"playback.rs:frame_skip","message":"frames skipped to catch up","data":{{"frames_behind":{},"frames_skipped":{},"current_frame":{},"total_skipped":{}}},"timestamp":{},"sessionId":"debug-session","hypothesisId":"D"}}"#,
- frames_behind, skipped, frame_number, total_frames_skipped, ts
- )
- .ok();
- }
- // #endregion
-
prefetch_buffer.retain(|p| p.frame_number >= frame_number);
let _ = frame_request_tx.send(frame_number);
let _ = playback_position_tx.send(frame_number);
diff --git a/docs/editor-playback-optimizations.md b/docs/editor-playback-optimizations.md
new file mode 100644
index 000000000..623e67f86
--- /dev/null
+++ b/docs/editor-playback-optimizations.md
@@ -0,0 +1,101 @@
+# Editor Video Playback Optimizations
+
+## Quick Wins (Low Effort, High Impact)
+
+- [x] 1. **Replace lz4js with WASM LZ4**
+ - Current: Using `lz4js` (pure JavaScript) for decompression in `frame-worker.ts:28-41`
+ - Change: Replace with a WASM-based LZ4 decoder (e.g., `lz4-wasm` or compile LZ4 to WASM directly)
+ - Impact: WASM typically runs 2-5x faster than pure JS for compute-heavy operations
+ - Done: Replaced with `lz4-wasm` package which uses the same size-prepended format as `lz4_flex`
+
+- [x] 2. **Remove debug file writes and console logging**
+ - Current: Extensive debug logging with file writes at multiple points in `playback.rs`
+ - Change: Removed all debug file writes from `playback.rs` and removed performance logging from `socket.ts` and `context.ts`
+ - Impact: Eliminates file I/O overhead and reduces console noise
+
+- [ ] 3. **Cache project config between frames**
+ - Current: `self.project.borrow().clone()` called every frame at `playback.rs:523`
+ - Change: Cache project config and only re-clone when it actually changes (use `watch::has_changed`)
+ - Impact: Reduces allocation and cloning overhead per frame
+
+- [ ] 4. **Use WebGL for canvas rendering**
+ - Current: Using 2D canvas context at `Player.tsx:478-484`
+ - Change: GPU-accelerated image scaling and display instead of 2D canvas
+ - Impact: Hardware-accelerated rendering with better scaling quality
+
+## Medium Effort
+
+- [ ] 5. **OffscreenCanvas in worker**
+ - Current: ImageBitmap created in worker, transferred to main thread, drawn on main thread canvas
+ - Change: Move canvas rendering entirely to the worker using OffscreenCanvas
+ - Impact: Eliminates main thread rendering jank entirely
+
+- [ ] 6. **WebSocket transfer overhead / SharedArrayBuffer**
+ - Current: Each frame transfers an ArrayBuffer to the worker via `postMessage`, incurring serialization overhead
+ - Change: Use `SharedArrayBuffer` for zero-copy frame transfer between main thread and worker
+ - Impact: Could reduce frame transfer time by 50-80% for large frames
+ - Note: Requires COOP/COEP headers
+
+- [ ] 7. **Dynamic prefetch buffer sizing**
+ - Current: Fixed `PREFETCH_BUFFER_SIZE = 180` frames at `playback.rs:31`
+ - Change: Adjust based on available memory and video resolution
+ - Impact: Better memory utilization and prefetch efficiency
+
+- [ ] 8. **Debounce canvas size calculations**
+ - Current: Canvas size recalculated every frame via reactive computations at `Player.tsx:562-574`
+ - Change: Debounce size calculations and only update canvas dimensions when container actually resizes
+ - Impact: Reduces reactive computation overhead
+
+- [ ] 9. **Eliminate stride mismatch copies**
+ - Current: In `frame-worker.ts:92-113`, when stride differs from expected row bytes, there's a row-by-row copy loop
+ - Change: Request matching stride from Rust side to avoid the copy, or use WASM/SIMD for the stride correction
+ - Impact: Eliminates per-frame buffer manipulation
+
+- [ ] 10. **Always use rAF for rendering**
+ - Current: When paused, frames render directly without rAF at `Player.tsx:514-516`
+ - Change: Always use rAF even when paused to ensure vsync alignment
+ - Impact: Avoids potential tearing artifacts
+
+## High Effort (Architectural)
+
+- [ ] 11. **Direct GPU texture sharing**
+ - Current: GPU renders → CPU readback → LZ4 compress → WebSocket → decompress → ImageBitmap
+ - Change: Share GPU textures directly with the browser (WebGPU interop)
+ - Impact: Eliminates entire CPU roundtrip for frame data
+
+- [ ] 12. **Predictive prefetch with velocity detection**
+ - Current: Fixed prefetch direction and rate
+ - Change: Use playback velocity (scrubbing vs normal play) to adjust prefetch direction and priority
+ - Impact: Better prefetch hit rate during scrubbing
+
+- [ ] 13. **Weighted cache eviction**
+ - Current: Simple LRU eviction at `playback.rs:106-110`
+ - Change: Use weighted eviction considering distance from playhead, decode cost (I-frames), and access patterns
+ - Impact: Higher cache hit rate for commonly accessed frames
+
+- [ ] 14. **Skip compression for localhost**
+ - Current: LZ4 compression used regardless of transport
+ - Change: If WebSocket is localhost, skip LZ4 or use lighter compression
+ - Impact: Reduces latency for local playback
+
+- [ ] 15. **Optimize WebSocket message format**
+ - Current: Metadata (stride, height, width) appended as 12 bytes at the end of each frame
+ - Change: Send metadata in a separate message or header for better SIMD alignment
+ - Impact: Better memory access patterns for decompression
+
+## Additional Improvements
+
+- [ ] 16. **Smarter frame drop strategy**
+ - Current: In `socket.ts:121-132`, drops frames when worker is busy (keeps newest)
+ - Change: Track frame timestamps and intelligently select which frames to keep
+ - Impact: Better frame selection during seeking/scrubbing
+
+- [ ] 17. **Immediate first frame rendering**
+ - Current: Wait for 2 frames OR 50ms timeout at `playback.rs:436-437`
+ - Change: Start rendering the first frame immediately while prefetch continues
+ - Impact: Improved perceived responsiveness
+
+- [ ] 18. **Double buffering for canvas**
+ - Current: Single canvas with direct drawing
+ - Change: Pre-render next frame to a second canvas for instant swap
+ - Impact: Eliminates any visible rendering delay
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index f0b06c217..2cafcefb8 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -173,9 +173,9 @@ importers:
effect:
specifier: ^3.18.4
version: 3.18.4
- lz4js:
- specifier: ^0.2.0
- version: 0.2.0
+ lz4-wasm:
+ specifier: ^0.9.2
+ version: 0.9.2
mp4box:
specifier: ^0.5.2
version: 0.5.4
@@ -231,9 +231,6 @@ importers:
'@types/dom-webcodecs':
specifier: ^0.1.11
version: 0.1.14
- '@types/lz4js':
- specifier: ^0.2.1
- version: 0.2.2
'@types/uuid':
specifier: ^9.0.8
version: 9.0.8
@@ -246,6 +243,12 @@ importers:
vite:
specifier: ^6.3.5
+ vite-plugin-top-level-await:
+ specifier: ^1.4.4
+ vite-plugin-wasm:
+ specifier: ^3.4.1
vite-tsconfig-paths:
specifier: ^5.0.1
@@ -706,7 +709,7 @@ importers:
version: 2.6.0
tailwindcss-animate:
specifier: ^1.0.7
tldts:
specifier: ^7.0.11
version: 7.0.11
@@ -767,7 +770,7 @@ importers:
version: 10.4.21([email protected])
babel-loader:
specifier: ^10.0.0
eslint:
specifier: ^9.30.1
version: 9.30.1([email protected])
@@ -779,7 +782,7 @@ importers:
version: 8.5.3
tailwindcss:
specifier: ^3
typescript:
specifier: ^5.8.3
version: 5.8.3
@@ -833,7 +836,7 @@ importers:
version: 0.15.6([email protected])
tsup:
specifier: ^8.5.0
devDependencies:
concurrently:
specifier: ^9.2.1
@@ -846,13 +849,13 @@ importers:
dependencies:
'@pulumi/github':
specifier: ^6.7.0
'@pulumi/pulumi':
specifier: ^3.201.0
'@pulumiverse/vercel':
specifier: ^1.14.3
zod:
specifier: ^3
version: 3.25.76
@@ -908,7 +911,7 @@ importers:
version: 4.6.2([email protected])
eslint-plugin-tailwindcss:
specifier: ^3.12.0
eslint-utils:
specifier: ^3.0.0
version: 3.0.0([email protected])
@@ -1040,7 +1043,7 @@ importers:
version: link:../utils
'@kobalte/tailwindcss':
specifier: ^0.9.0
'@radix-ui/react-dialog':
specifier: ^1.0.5
@@ -1067,7 +1070,7 @@ importers:
'@tailwindcss/typography':
specifier: ^0.5.9
class-variance-authority:
specifier: ^0.7.0
version: 0.7.1
@@ -1125,13 +1128,13 @@ importers:
tailwind-scrollbar:
specifier: ^3.1.0
tailwindcss:
specifier: ^3.3.3
tailwindcss-animate:
specifier: ^1.0.6
tauri-plugin-context-menu:
specifier: ^0.5.0
version: 0.5.0
@@ -1164,7 +1167,7 @@ importers:
version: 1.9.6
tailwindcss:
specifier: ^3.4.10
zod:
specifier: ^3
version: 3.25.76
@@ -1177,10 +1180,10 @@ importers:
version: 2.2.336
'@kobalte/tailwindcss':
specifier: ^0.9.0
'@tailwindcss/typography':
specifier: ^0.5.9
autoprefixer:
specifier: ^10.4.20
version: 10.4.21([email protected])
@@ -1192,10 +1195,10 @@ importers:
tailwind-scrollbar:
specifier: ^3.1.0
tailwindcss-animate:
specifier: ^1.0.6
unplugin-auto-import:
specifier: ^0.18.2
version: 0.18.6([email protected])
@@ -4322,8 +4325,8 @@ packages:
resolution: {integrity: sha512-JD6DerIKdJGmRp4jQyX5FlrQjA4tjOw1cvfsPAZXfOOEErMUHjPcPSICS+6WnM0nB0efSFARh0KAZss+bvExOA==}
engines: {node: '>=14'}
- '@oxc-project/[email protected]':
- resolution: {integrity: sha512-nuFhqlUzJX+gVIPPfuE6xurd4lST3mdcWOhyK/rZO0B9XWMKm79SuszIQEnSMmmDhq1DC8WWVYGVd+6F93o1gQ==}
+ '@oxc-project/[email protected]':
+ resolution: {integrity: sha512-8Skrw405g+/UJPKWJ1twIk3BIH2nXdiVlVNtYT23AXVwpsd79es4K+KYt06Fbnkc5BaTvk/COT2JuCLYdwnCdA==}
'@oxc-project/[email protected]':
resolution: {integrity: sha512-+UgQT/4o59cZfH6Cp7G0hwmqEQ0wE+AdIwhikdwnhWI9Dp8CgSY081+Q3O67/wq3VJu8mgUEB93J9EHHn70fOw==}
@@ -5267,8 +5270,8 @@ packages:
cpu: [arm64]
os: [android]
- '@rolldown/[email protected]':
- resolution: {integrity: sha512-Ok9V8o7o6YfSdTTYA/uHH30r3YtOxLD6G3wih/U9DO0ucBBFq8WPt/DslU53OgfteLRHITZny9N/qCUxMf9kjQ==}
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-zZRx/ur3Fai3fxiEmVp48+6GCBR48PRWJR1X3TTMn9yiq2bBHlYPgBaQtDOYWXv5H3J5dXujeTyGnuoY+kdGCg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [android]
@@ -5279,8 +5282,8 @@ packages:
cpu: [arm64]
os: [darwin]
- '@rolldown/[email protected]':
- resolution: {integrity: sha512-yIsKqMz0CtRnVa6x3Pa+mzTihr4Ty+Z6HfPbZ7RVbk1Uxnco4+CUn7Qbm/5SBol1JD/7nvY8rphAgyAi7Lj6Vg==}
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-zMyFEJmbIs91x22HAA/eUvmZHgjX8tGsD3TJ+WC9aY4bCdl3w84H9vMZmChSHAF1dYvGNH4KQDI2IubeZaCYtg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [darwin]
@@ -5291,8 +5294,8 @@ packages:
cpu: [x64]
os: [darwin]
- '@rolldown/[email protected]':
- resolution: {integrity: sha512-GTXe+mxsCGUnJOFMhfGWmefP7Q9TpYUseHvhAhr21nCTgdS8jPsvirb0tJwM3lN0/u/cg7bpFNa16fQrjKrCjQ==}
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-Ex7QttdaVnEpmE/zroUT5Qm10e2+Vjd9q0LX9eXm59SitxDODMpC8GI1Rct5RrLf4GLU4DzdXBj6DGzuR+6g6w==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [darwin]
@@ -5303,8 +5306,8 @@ packages:
cpu: [x64]
os: [freebsd]
- '@rolldown/[email protected]':
- resolution: {integrity: sha512-9Tmp7bBvKqyDkMcL4e089pH3RsjD3SUungjmqWtyhNOxoQMh0fSmINTyYV8KXtE+JkxYMPWvnEt+/mfpVCkk8w==}
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-E1XO10ryM/Vxw3Q1wvs9s2mSpVBfbHtzkbJcdu26qh17ZmVwNWLiIoqEcbkXm028YwkReG4Gd2gCZ3NxgTQ28Q==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [freebsd]
@@ -5315,8 +5318,8 @@ packages:
cpu: [arm]
os: [linux]
- '@rolldown/[email protected]':
- resolution: {integrity: sha512-a1y5fiB0iovuzdbjUxa7+Zcvgv+mTmlGGC4XydVIsyl48eoxgaYkA3l9079hyTyhECsPq+mbr0gVQsFU11OJAQ==}
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-oS73Uks8jczQR9pg0Bj718vap/x71exyJ5yuxu4X5V4MhwRQnky7ANSPm6ARUfraxOqt49IBfcMeGnw2rTSqdA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm]
os: [linux]
@@ -5327,8 +5330,8 @@ packages:
cpu: [arm64]
os: [linux]
- '@rolldown/[email protected]':
- resolution: {integrity: sha512-bpIGX+ov9PhJYV+wHNXl9rzq4F0QvILiURn0y0oepbQx+7stmQsKA0DhPGwmhfvF856wq+gbM8L92SAa/CBcLg==}
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-pY8N2X5C+/ZQcy0eRdfOzOP//OFngP1TaIqDjFwfBPws2UNavKS8SpxhPEgUaYIaT0keVBd/TB+eVy9z+CIOtw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
@@ -5339,8 +5342,8 @@ packages:
cpu: [arm64]
os: [linux]
- '@rolldown/[email protected]':
- resolution: {integrity: sha512-bGe5EBB8FVjHBR1mOLOPEFg1Lp3//7geqWkU5NIhxe+yH0W8FVrQ6WRYOap4SUTKdklD/dC4qPLREkMMQ855FA==}
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-cgTooAFm2MUmFriB7IYaWBNyqrGlRPKG+yaK2rGFl2rcdOcO24urY4p3eyB0ogqsRLvJbIxwjjYiWiIP7Eo1Cw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
@@ -5351,8 +5354,8 @@ packages:
cpu: [x64]
os: [linux]
- '@rolldown/[email protected]':
- resolution: {integrity: sha512-qL+63WKVQs1CMvFedlPt0U9PiEKJOAL/bsHMKUDS6Vp2Q+YAv/QLPu8rcvkfIMvQ0FPU2WL0aX4eWwF6e/GAnA==}
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-nGyLT1Qau0W+kEL44V2jhHmvfS3wyJW08E4WEu2E6NuIy+uChKN1X0aoxzFIDi2owDsYaZYez/98/f268EupIQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
@@ -5363,8 +5366,8 @@ packages:
cpu: [x64]
os: [linux]
- '@rolldown/[email protected]':
- resolution: {integrity: sha512-VGl9JIGjoJh3H8Mb+7xnVqODajBmrdOOb9lxWXdcmxyI+zjB2sux69br0hZJDTyLJfvBoYm439zPACYbCjGRmw==}
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-KH374P0TUjDXssROT/orvzaWrzGOptD13PTrltgKwbDprJTMknoLiYsOD6Ttz92O2VuAcCtFuJ1xbyFM2Uo/Xg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
@@ -5375,8 +5378,8 @@ packages:
cpu: [arm64]
os: [openharmony]
- '@rolldown/[email protected]':
- resolution: {integrity: sha512-B4iIserJXuSnNzA5xBLFUIjTfhNy7d9sq4FUMQY3GhQWGVhS2RWWzzDnkSU6MUt7/aHUrep0CdQfXUJI9D3W7A==}
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-oMAVO4wbfAbhpBxPsSp8R7ntL2DchpNfO+tGhN8/sI9jsbYwOv78uIW1fTwOBslhjTVFltGJ+l23mubNQcYNaQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [openharmony]
@@ -5386,8 +5389,8 @@ packages:
engines: {node: '>=14.0.0'}
cpu: [wasm32]
- '@rolldown/[email protected]':
- resolution: {integrity: sha512-BUjAEgpABEJXilGq/BPh7jeU3WAJ5o15c1ZEgHaDWSz3LB881LQZnbNJHmUiM4d1JQWMYYyR1Y490IBHi2FPJg==}
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-MYY/FmY+HehHiQkNx04W5oLy/Fqd1hXYqZmmorSDXvAHnxMbSgmdFicKsSYOg/sVGHBMEP1tTn6kV5sWrS45rA==}
engines: {node: '>=14.0.0'}
cpu: [wasm32]
@@ -5397,8 +5400,8 @@ packages:
cpu: [arm64]
os: [win32]
- '@rolldown/[email protected]':
- resolution: {integrity: sha512-s27uU7tpCWSjHBnxyVXHt3rMrQdJq5MHNv3BzsewCIroIw3DJFjMH1dzCPPMUFxnh1r52Nf9IJ/eWp6LDoyGcw==}
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-66o3uKxUmcYskT9exskxs3OVduXf5x0ndlMkYOjSpBgqzhLtkub136yDvZkNT1OkNDET0odSwcU7aWdpnwzAyg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [win32]
@@ -5415,8 +5418,8 @@ packages:
cpu: [x64]
os: [win32]
- '@rolldown/[email protected]':
- resolution: {integrity: sha512-cjWL/USPJ1g0en2htb4ssMjIycc36RvdQAx1WlXnS6DpULswiUTVXPDesTifSKYSyvx24E0YqQkEm0K/M2Z/AA==}
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-FbbbrboChLBXfeEsOfaypBGqzbdJ/CcSA2BPLCggojnIHy58Jo+AXV7HATY8opZk7194rRbokIT8AfPJtZAWtg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [win32]
@@ -5424,8 +5427,8 @@ packages:
'@rolldown/[email protected]':
resolution: {integrity: sha512-N7pQzk9CyE7q0bBN/q0J8s6Db279r5kUZc6d7/wWRe9/zXqC52HQovVyu6iXPIDY4BEzzgbVLhVFXrOuGJ22ZQ==}
- '@rolldown/[email protected]':
- resolution: {integrity: sha512-vENRlFU4YbrwVqNDZ7fLvy+JR1CRkyr01jhSiDpE1u6py3OMzQfztQU2jxykW3ALNxO4kSlqIDeYyD0Y9RcQeQ==}
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-AHgcZ+w7RIRZ65ihSQL8YuoKcpD9Scew4sEeP1BBUT9QdTo6KjwHrZZXjID6nL10fhKessCH6OPany2QKwAwTQ==}
'@rollup/[email protected]':
resolution: {integrity: sha512-PR9zDb+rOzkRb2VD+EuKB7UC41vU5DIwZ5qqCpk0KJudcWAyi8rvYOhS7+L5aZCspw1stTViLgN5v6FF1p5cgQ==}
@@ -5490,6 +5493,15 @@ packages:
rollup:
optional: true
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-10monEYsBp3scM4/ND4LNH5Rxvh3e/cVeL3jWTgZ2SrQ+BmUoQcopVQvnaMcOnykb1VkxUFuDAN+0FnpTFRy2A==}
+ engines: {node: '>=14.0.0'}
+ peerDependencies:
+ rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0
+ peerDependenciesMeta:
+ rollup:
+ optional: true
+
'@rollup/[email protected]':
resolution: {integrity: sha512-USm05zrsFxYLPdWWq+K3STlWiT/3ELn3RcV5hJMghpeAIhxfsUIg6mt12CBJBInWMV4VneoV7SfGv8xIwo2qNQ==}
engines: {node: '>=14.0.0'}
@@ -6305,10 +6317,10 @@ packages:
react-dom:
optional: true
- '@storybook/[email protected]':
- resolution: {integrity: sha512-bYHUVT+V6mUebzHBIuJ1epynkpd9ILKNs1SIbP5qxe9yxmwhMtFngys2xJMElS6c6ctJwoug8V40kT59M7MLgw==}
+ '@storybook/[email protected]':
+ resolution: {integrity: sha512-DI96oVURX5u0I2x6fepMDSC1Q6/z3WanKHMOu1wfWawDyhS+/hR8Krnqu7i9mGBR4blQU8HPIKQD7XdPfIoXlw==}
peerDependencies:
- storybook: ^10.2.0-alpha.5
+ storybook: ^10.2.0-alpha.6
vite: ^5.0.0 || ^6.0.0 || ^7.0.0
'@storybook/[email protected]':
@@ -6319,12 +6331,12 @@ packages:
prettier:
optional: true
- '@storybook/[email protected]':
- resolution: {integrity: sha512-fgCpTDxU5pXV+YvQduAMq5Ki63VEKP/QbHfEAbfGvYvsoMXh8KXnJ3pfK+V/BB3BQdhhOCZFxLuJnNtDe9l4wQ==}
+ '@storybook/[email protected]':
+ resolution: {integrity: sha512-7+n6c0wplOcLIQeRn0f6YkVs+o4rH7t0Fis8pymWKyU0k2DBHHPl+nYhyVK6Ii2UgnsgDj9ngKMpG3nvPDVxxA==}
peerDependencies:
esbuild: '*'
rollup: '*'
- storybook: ^10.2.0-alpha.5
+ storybook: ^10.2.0-alpha.6
vite: '*'
webpack: '*'
peerDependenciesMeta:
@@ -6402,12 +6414,90 @@ packages:
resolution: {integrity: sha512-pKS3wZnJoL1iTyGBXAvCwduNNeghJHY6QSRSNNvpYnrrQrLZ6Owsazjyynu0e0ObRgks0i7Rv+pe2M7/MBTZpQ==}
engines: {node: '>=12.16'}
+ resolution: {integrity: sha512-RvdpUcXrIz12yONzOdQrJbEnq23cOc2IHOU1eB8kPxPNNInlm4YTzZEA3zf3PusNpZZLxwArPVLCg0QsFQoTYw==}
+ engines: {node: '>=10'}
+ cpu: [arm64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-ufJnz3UAff/8G5OfqZZc5cTQfGtXyXVLTB8TGT0xjkvEbfFg8jZUMDBnZT/Cn0k214JhMjiLCNl0A8aY/OKsYQ==}
+ engines: {node: '>=10'}
+ cpu: [x64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-Yqu92wIT0FZKLDWes+69kBykX97hc8KmnyFwNZGXJlbKUGIE0hAIhbuBbcY64FGSwey4aDWsZ7Ojk89KUu9Kzw==}
+ engines: {node: '>=10'}
+ cpu: [arm]
+ os: [linux]
+
+ resolution: {integrity: sha512-3gR3b5V1abe/K1GpD0vVyZgqgV+ykuB5QNecDYzVroX4QuN+amCzQaNSsVM8Aj6DbShQCBTh3hGHd2f3vZ8gCw==}
+ engines: {node: '>=10'}
+ cpu: [arm64]
+ os: [linux]
+
+ resolution: {integrity: sha512-Of+wmVh5h47tTpN9ghHVjfL0CJrgn99XmaJjmzWFW7agPdVY6gTDgkk6zQ6q4hcDQ7hXb0BGw6YFpuanBzNPow==}
+ engines: {node: '>=10'}
+ cpu: [arm64]
+ os: [linux]
+
+ resolution: {integrity: sha512-98kuPS0lZVgjmc/2uTm39r1/OfwKM0PM13ZllOAWi5avJVjRd/j1xA9rKeUzHDWt+ocH9mTCQsAT1jjKSq45bg==}
+ engines: {node: '>=10'}
+ cpu: [x64]
+ os: [linux]
+
+ resolution: {integrity: sha512-Rk+OtNQP3W/dZExL74LlaakXAQn6/vbrgatmjFqJPO4RZkq+nLo5g7eDUVjyojuERh7R2yhqNvZ/ZZQe8JQqqA==}
+ engines: {node: '>=10'}
+ cpu: [x64]
+ os: [linux]
+
+ resolution: {integrity: sha512-e3RTdJ769+PrN25iCAlxmsljEVu6iIWS7sE21zmlSiipftBQvSAOWuCDv2A8cH9lm5pSbZtwk8AUpIYCNsj2oQ==}
+ engines: {node: '>=10'}
+ cpu: [arm64]
+ os: [win32]
+
+ resolution: {integrity: sha512-NmOdl6kyAw6zMz36zCdopTgaK2tcLA53NhUsTRopBc/796Fp87XdsslRHglybQ1HyXIGOQOKv2Y14IUbeci4BA==}
+ engines: {node: '>=10'}
+ cpu: [ia32]
+ os: [win32]
+
+ resolution: {integrity: sha512-EPXJRf0A8eOi8woXf/qgVIWRl9yeSl0oN1ykGZNCGI7oElsfxUobJFmpJFJoVqKFfd1l0c+GPmWsN2xavTFkNw==}
+ engines: {node: '>=10'}
+ cpu: [x64]
+ os: [win32]
+
+ resolution: {integrity: sha512-VRy+AEO0zqUkwV9uOgqXtdI5tNj3y3BZI+9u28fHNjNVTtWYVNIq3uYhoGgdBOv7gdzXlqfHKuxH5a9IFAvopQ==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@swc/helpers': '>=0.5.17'
+ peerDependenciesMeta:
+ '@swc/helpers':
+ optional: true
+
+ resolution: {integrity: sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==}
+
resolution: {integrity: sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==}
resolution: {integrity: sha512-5IKx/Y13RsYd+sauPb2x+U/xZikHjolzfuDgTAl/Tdf3Q8rslRvC19NKDLgAJQ6wsqADk10ntlv08nPFw/gO/A==}
+ resolution: {integrity: sha512-iAoY/qRhNH8a/hBvm3zKj9qQ4oc2+3w1unPJa2XvTK3XjeLXtzcCingVPw/9e5mn1+0yPqxcBGp9Jf0pkfMb1g==}
+
+ resolution: {integrity: sha512-SyVggtYY5MYMZMMbH3naojEeAha2ssfo9rwfJ0q3ZQXBi5hjR6zixjop7Z/QpwYXwZvtpqz7+ncHm5gIPmsTSQ==}
+
'@szmarczak/[email protected]':
resolution: {integrity: sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==}
engines: {node: '>=10'}
@@ -6936,9 +7026,6 @@ packages:
resolution: {integrity: sha512-HX7Em5NYQAXKW+1T+FiuG27NGwzJfCX3s1GjOa7ujxZa52kjJLOr4FUxT+giF6Tgxv1e+/czV/iTtBw27WTU9g==}
- '@types/[email protected]':
- resolution: {integrity: sha512-pqXfoJ2AwllcLTf1Nia0+HT1KHj8z4wWo3bBP6vn7Aen5ySywBqrh/u1TyBwWxuKDS+mPzVHkPbHivqZEfk6pA==}
-
resolution: {integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==}
@@ -10673,8 +10760,8 @@ packages:
resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==}
hasBin: true
- resolution: {integrity: sha512-gY2Ia9Lm7Ep8qMiuGRhvUq0Q7qUereeldZPP1PMEJxPtEWHJLqw9pgX68oHajBH0nzJK4MaZEA/YNV3jT8u8Bg==}
+ resolution: {integrity: sha512-8Y/OvG/nTQNWR242NhLmjI7VzLMRKFaxg/+Pxi/vkczgFdrS4qiJ8l6n30XyNJyc0TB5C66Ncdjq345Kx5XsvQ==}
resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==}
@@ -12350,8 +12437,8 @@ packages:
engines: {node: ^20.19.0 || >=22.12.0}
hasBin: true
- resolution: {integrity: sha512-Qd9c2p0XKZdgT5AYd+KgAMggJ8ZmCs3JnS9PTMWkyUfteKlfmKtxJbWTHkVakxwXs1Ub7jrRYVeFeF7N0sQxyw==}
+ resolution: {integrity: sha512-3lIvjCWgjPL3gmiATUdV1NeVBGJZy6FdtwgLPol25tAkn46Q/MsVGfCSNswXwFOxGrxglPaN20IeALSIFuFyEg==}
engines: {node: ^20.19.0 || >=22.12.0}
hasBin: true
@@ -13735,6 +13822,10 @@ packages:
resolution: {integrity: sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==}
+ resolution: {integrity: sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==}
+ hasBin: true
+
resolution: {integrity: sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==}
hasBin: true
@@ -13810,6 +13901,16 @@ packages:
'@testing-library/jest-dom':
optional: true
+ resolution: {integrity: sha512-bNhUreLamTIkoulCR9aDXbTbhLk6n1YE8NJUTTxl5RYskNRtzOR0ASzSjBVRtNdjIfngDXo11qOsybGLNsrdww==}
+ peerDependencies:
+ vite: '>=2.8'
+
+ resolution: {integrity: sha512-X5VWgCnqiQEGb+omhlBVsvTfxikKtoOgAzQ95+BZ8gQ+VfMHIjSHr0wyvXFQCa0eKQ0fKyaL0kWcEnYqBac4lQ==}
+ peerDependencies:
+ vite: ^2 || ^3 || ^4 || ^5 || ^6 || ^7
+
resolution: {integrity: sha512-0Vd/a6po6Q+86rPlntHye7F31zA2URZMbH8M3saAZ/xR9QoGN/L21bxEGfXdWmFdNkqPpRdxFT7nmNe12e9/uA==}
peerDependencies:
@@ -16988,13 +17089,13 @@ snapshots:
solid-presence: 0.1.8([email protected])
solid-prevent-scroll: 0.1.10([email protected])
dependencies:
dependencies:
dependencies:
@@ -17923,7 +18024,7 @@ snapshots:
'@opentelemetry/[email protected]': {}
- '@oxc-project/[email protected]': {}
+ '@oxc-project/[email protected]': {}
'@oxc-project/[email protected]': {}
@@ -18061,16 +18162,16 @@ snapshots:
'@protobufjs/[email protected]': {}
dependencies:
transitivePeerDependencies:
- bluebird
- supports-color
- ts-node
- typescript
dependencies:
'@grpc/grpc-js': 1.13.3
'@logdna/tail-file': 2.2.0
@@ -18101,15 +18202,15 @@ snapshots:
tmp: 0.2.5
upath: 1.2.0
optionalDependencies:
- ts-node: 10.9.2(@types/[email protected])([email protected])
typescript: 5.8.3
transitivePeerDependencies:
- bluebird
- supports-color
dependencies:
transitivePeerDependencies:
- bluebird
- supports-color
@@ -18898,61 +18999,61 @@ snapshots:
'@rolldown/[email protected]':
optional: true
- '@rolldown/[email protected]':
+ '@rolldown/[email protected]':
optional: true
'@rolldown/[email protected]':
optional: true
- '@rolldown/[email protected]':
+ '@rolldown/[email protected]':
optional: true
'@rolldown/[email protected]':
optional: true
- '@rolldown/[email protected]':
+ '@rolldown/[email protected]':
optional: true
'@rolldown/[email protected]':
optional: true
- '@rolldown/[email protected]':
+ '@rolldown/[email protected]':
optional: true
'@rolldown/[email protected]':
optional: true
- '@rolldown/[email protected]':
+ '@rolldown/[email protected]':
optional: true
'@rolldown/[email protected]':
optional: true
- '@rolldown/[email protected]':
+ '@rolldown/[email protected]':
optional: true
'@rolldown/[email protected]':
optional: true
- '@rolldown/[email protected]':
+ '@rolldown/[email protected]':
optional: true
'@rolldown/[email protected]':
optional: true
- '@rolldown/[email protected]':
+ '@rolldown/[email protected]':
optional: true
'@rolldown/[email protected]':
optional: true
- '@rolldown/[email protected]':
+ '@rolldown/[email protected]':
optional: true
'@rolldown/[email protected]':
optional: true
- '@rolldown/[email protected]':
+ '@rolldown/[email protected]':
optional: true
'@rolldown/[email protected]':
@@ -18960,7 +19061,7 @@ snapshots:
'@napi-rs/wasm-runtime': 1.0.6
optional: true
- '@rolldown/[email protected]':
+ '@rolldown/[email protected]':
dependencies:
'@napi-rs/wasm-runtime': 1.1.0
optional: true
@@ -18968,7 +19069,7 @@ snapshots:
'@rolldown/[email protected]':
optional: true
- '@rolldown/[email protected]':
+ '@rolldown/[email protected]':
optional: true
'@rolldown/[email protected]':
@@ -18977,12 +19078,12 @@ snapshots:
'@rolldown/[email protected]':
optional: true
- '@rolldown/[email protected]':
+ '@rolldown/[email protected]':
optional: true
'@rolldown/[email protected]': {}
- '@rolldown/[email protected]': {}
+ '@rolldown/[email protected]': {}
optionalDependencies:
@@ -19039,6 +19140,10 @@ snapshots:
optionalDependencies:
rollup: 4.40.2
+ optionalDependencies:
+ rollup: 4.40.2
+
dependencies:
'@types/estree': 1.0.7
@@ -20106,9 +20211,9 @@ snapshots:
react: 19.1.1
react-dom: 19.1.1([email protected])
dependencies:
storybook: 8.6.12([email protected])
ts-dedent: 2.2.0
@@ -20140,7 +20245,7 @@ snapshots:
- supports-color
- utf-8-validate
dependencies:
storybook: 8.6.12([email protected])
unplugin: 2.3.10
@@ -20213,6 +20318,55 @@ snapshots:
'@stripe/[email protected]': {}
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ dependencies:
+ '@swc/counter': 0.1.3
+ '@swc/types': 0.1.25
+ optionalDependencies:
+ '@swc/core-darwin-arm64': 1.15.5
+ '@swc/core-darwin-x64': 1.15.5
+ '@swc/core-linux-arm-gnueabihf': 1.15.5
+ '@swc/core-linux-arm64-gnu': 1.15.5
+ '@swc/core-linux-arm64-musl': 1.15.5
+ '@swc/core-linux-x64-gnu': 1.15.5
+ '@swc/core-linux-x64-musl': 1.15.5
+ '@swc/core-win32-arm64-msvc': 1.15.5
+ '@swc/core-win32-ia32-msvc': 1.15.5
+ '@swc/core-win32-x64-msvc': 1.15.5
+ '@swc/helpers': 0.5.17
+
+ '@swc/[email protected]': {}
+
dependencies:
tslib: 2.8.1
@@ -20221,6 +20375,12 @@ snapshots:
dependencies:
tslib: 2.8.1
+ dependencies:
+ '@swc/counter': 0.1.3
+
+ '@swc/[email protected]': {}
+
'@szmarczak/[email protected]':
dependencies:
defer-to-connect: 2.0.1
@@ -20239,21 +20399,21 @@ snapshots:
valibot: 1.0.0-rc.1([email protected])
zod: 3.25.76
dependencies:
lodash.castarray: 4.4.0
lodash.isplainobject: 4.0.6
lodash.merge: 4.6.2
postcss-selector-parser: 6.0.10
dependencies:
lodash.castarray: 4.4.0
lodash.isplainobject: 4.0.6
lodash.merge: 4.6.2
postcss-selector-parser: 6.0.10
'@tanstack/[email protected]':
dependencies:
@@ -20815,8 +20975,6 @@ snapshots:
'@types/[email protected]': {}
- '@types/[email protected]': {}
-
dependencies:
'@types/unist': 3.0.3
@@ -21857,11 +22015,11 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@babel/core': 7.27.1
find-up: 5.0.0
- webpack: 5.101.3([email protected])
dependencies:
@@ -23469,11 +23627,11 @@ snapshots:
string.prototype.matchall: 4.0.12
string.prototype.repeat: 1.0.0
dependencies:
fast-glob: 3.3.3
postcss: 8.5.3
dependencies:
@@ -25170,7 +25328,7 @@ snapshots:
dependencies:
@@ -26583,21 +26741,21 @@ snapshots:
camelcase-css: 2.0.1
postcss: 8.5.3
dependencies:
lilconfig: 3.1.3
yaml: 2.7.1
optionalDependencies:
postcss: 8.5.3
- ts-node: 10.9.2(@types/[email protected])([email protected])
dependencies:
lilconfig: 3.1.3
yaml: 2.7.1
optionalDependencies:
postcss: 8.5.3
- ts-node: 10.9.2(@types/[email protected])([email protected])
dependencies:
@@ -27299,7 +27457,7 @@ snapshots:
dependencies:
glob: 7.2.3
dependencies:
'@babel/generator': 7.28.3
'@babel/parser': 7.28.4
@@ -27310,7 +27468,7 @@ snapshots:
dts-resolver: 2.1.2
get-tsconfig: 4.11.0
magic-string: 0.30.19
- rolldown: 1.0.0-beta.53
+ rolldown: 1.0.0-beta.54
optionalDependencies:
typescript: 5.8.3
transitivePeerDependencies:
@@ -27338,24 +27496,24 @@ snapshots:
'@rolldown/binding-win32-ia32-msvc': 1.0.0-beta.42
'@rolldown/binding-win32-x64-msvc': 1.0.0-beta.42
dependencies:
- '@oxc-project/types': 0.101.0
- '@rolldown/pluginutils': 1.0.0-beta.53
+ '@oxc-project/types': 0.102.0
+ '@rolldown/pluginutils': 1.0.0-beta.54
optionalDependencies:
- '@rolldown/binding-android-arm64': 1.0.0-beta.53
- '@rolldown/binding-darwin-arm64': 1.0.0-beta.53
- '@rolldown/binding-darwin-x64': 1.0.0-beta.53
- '@rolldown/binding-freebsd-x64': 1.0.0-beta.53
- '@rolldown/binding-linux-arm-gnueabihf': 1.0.0-beta.53
- '@rolldown/binding-linux-arm64-gnu': 1.0.0-beta.53
- '@rolldown/binding-linux-arm64-musl': 1.0.0-beta.53
- '@rolldown/binding-linux-x64-gnu': 1.0.0-beta.53
- '@rolldown/binding-linux-x64-musl': 1.0.0-beta.53
- '@rolldown/binding-openharmony-arm64': 1.0.0-beta.53
- '@rolldown/binding-wasm32-wasi': 1.0.0-beta.53
- '@rolldown/binding-win32-arm64-msvc': 1.0.0-beta.53
- '@rolldown/binding-win32-x64-msvc': 1.0.0-beta.53
+ '@rolldown/binding-android-arm64': 1.0.0-beta.54
+ '@rolldown/binding-darwin-arm64': 1.0.0-beta.54
+ '@rolldown/binding-darwin-x64': 1.0.0-beta.54
+ '@rolldown/binding-freebsd-x64': 1.0.0-beta.54
+ '@rolldown/binding-linux-arm-gnueabihf': 1.0.0-beta.54
+ '@rolldown/binding-linux-arm64-gnu': 1.0.0-beta.54
+ '@rolldown/binding-linux-arm64-musl': 1.0.0-beta.54
+ '@rolldown/binding-linux-x64-gnu': 1.0.0-beta.54
+ '@rolldown/binding-linux-x64-musl': 1.0.0-beta.54
+ '@rolldown/binding-openharmony-arm64': 1.0.0-beta.54
+ '@rolldown/binding-wasm32-wasi': 1.0.0-beta.54
+ '@rolldown/binding-win32-arm64-msvc': 1.0.0-beta.54
+ '@rolldown/binding-win32-x64-msvc': 1.0.0-beta.54
dependencies:
@@ -27956,7 +28114,7 @@ snapshots:
dependencies:
'@storybook/types': 9.0.0-alpha.1([email protected]([email protected]))
magic-string: 0.30.17
solid-js: 1.9.6
@@ -28183,23 +28341,23 @@ snapshots:
dependencies:
dependencies:
dependencies:
dependencies:
dependencies:
'@alloc/quick-lru': 5.2.0
arg: 5.0.2
@@ -28218,7 +28376,7 @@ snapshots:
postcss: 8.5.3
postcss-import: 15.1.0([email protected])
postcss-js: 4.0.1([email protected])
postcss-nested: 6.2.0([email protected])
postcss-selector-parser: 6.1.2
resolve: 1.22.10
@@ -28226,7 +28384,7 @@ snapshots:
transitivePeerDependencies:
- ts-node
dependencies:
'@alloc/quick-lru': 5.2.0
arg: 5.0.2
@@ -28245,7 +28403,7 @@ snapshots:
postcss: 8.5.3
postcss-import: 15.1.0([email protected])
postcss-js: 4.0.1([email protected])
postcss-nested: 6.2.0([email protected])
postcss-selector-parser: 6.1.2
resolve: 1.22.10
@@ -28300,6 +28458,18 @@ snapshots:
solid-js: 1.9.6
solid-use: 0.9.1([email protected])
+ dependencies:
+ '@jridgewell/trace-mapping': 0.3.31
+ jest-worker: 27.5.1
+ schema-utils: 4.3.3
+ serialize-javascript: 6.0.2
+ terser: 5.44.0
+ optionalDependencies:
+ '@swc/core': 1.15.5(@swc/[email protected])
+ esbuild: 0.25.5
+
dependencies:
'@jridgewell/trace-mapping': 0.3.31
@@ -28310,6 +28480,7 @@ snapshots:
webpack: 5.101.3([email protected])
optionalDependencies:
esbuild: 0.25.5
+ optional: true
dependencies:
@@ -28433,7 +28604,7 @@ snapshots:
dependencies:
'@cspotcode/source-map-support': 0.8.1
'@tsconfig/node10': 1.0.11
@@ -28450,9 +28621,12 @@ snapshots:
typescript: 5.8.3
v8-compile-cache-lib: 3.0.1
yn: 3.1.1
+ optionalDependencies:
+ '@swc/core': 1.15.5(@swc/[email protected])
+ '@swc/wasm': 1.15.5
optional: true
dependencies:
'@cspotcode/source-map-support': 0.8.1
'@tsconfig/node10': 1.0.11
@@ -28469,6 +28643,9 @@ snapshots:
typescript: 5.8.3
v8-compile-cache-lib: 3.0.1
yn: 3.1.1
+ optionalDependencies:
+ '@swc/core': 1.15.5(@swc/[email protected])
+ '@swc/wasm': 1.15.5
optional: true
@@ -28501,8 +28678,8 @@ snapshots:
diff: 8.0.2
empathic: 2.0.0
hookable: 5.5.3
- rolldown: 1.0.0-beta.53
- rolldown-plugin-dts: 0.16.11([email protected])([email protected])
+ rolldown: 1.0.0-beta.54
+ rolldown-plugin-dts: 0.16.11([email protected])([email protected])
semver: 7.7.2
tinyexec: 1.0.1
tinyglobby: 0.2.15
@@ -28523,7 +28700,7 @@ snapshots:
dependencies:
bundle-require: 5.1.0([email protected])
cac: 6.7.14
@@ -28543,6 +28720,7 @@ snapshots:
tinyglobby: 0.2.15
tree-kill: 1.2.2
optionalDependencies:
+ '@swc/core': 1.15.5(@swc/[email protected])
postcss: 8.5.3
typescript: 5.8.3
transitivePeerDependencies:
@@ -29035,6 +29213,8 @@ snapshots:
is-typed-array: 1.1.15
which-typed-array: 1.1.19
+
@@ -29206,6 +29386,21 @@ snapshots:
transitivePeerDependencies:
- supports-color
+ dependencies:
+ '@rollup/plugin-virtual': 3.0.2([email protected])
+ '@swc/core': 1.15.5(@swc/[email protected])
+ '@swc/wasm': 1.15.5
+ uuid: 10.0.0
+ transitivePeerDependencies:
+ - '@swc/helpers'
+ - rollup
+
+ dependencies:
+
dependencies:
debug: 4.4.0
@@ -29357,6 +29552,38 @@ snapshots:
+ dependencies:
+ '@types/eslint-scope': 3.7.7
+ '@types/estree': 1.0.8
+ '@types/json-schema': 7.0.15
+ '@webassemblyjs/ast': 1.14.1
+ '@webassemblyjs/wasm-edit': 1.14.1
+ '@webassemblyjs/wasm-parser': 1.14.1
+ acorn: 8.15.0
+ acorn-import-phases: 1.0.4([email protected])
+ browserslist: 4.26.3
+ chrome-trace-event: 1.0.4
+ enhanced-resolve: 5.18.3
+ es-module-lexer: 1.7.0
+ eslint-scope: 5.1.1
+ events: 3.3.0
+ glob-to-regexp: 0.4.1
+ graceful-fs: 4.2.11
+ json-parse-even-better-errors: 2.3.1
+ loader-runner: 4.3.1
+ mime-types: 2.1.35
+ neo-async: 2.6.2
+ schema-utils: 4.3.3
+ tapable: 2.3.0
+ watchpack: 2.4.4
+ webpack-sources: 3.3.3
+ transitivePeerDependencies:
+ - '@swc/core'
+ - esbuild
+ - uglify-js
+
dependencies:
'@types/eslint-scope': 3.7.7
@@ -29388,6 +29615,7 @@ snapshots:
- '@swc/core'
- esbuild
- uglify-js
+ optional: true
dependencies: