Edge-Drop is a clipboard shelf on the edge of your screen. Hover to open it. Drag files and images into any app, click to copy text and links. Free and open-source for Windows.
TypeScript clipboardclipboard-managerdesktop-appdrag-and-dropelectronopen-sourceproductivityproductivity-toolwindows
First Commit
Deepender251895818f5309
diff --git a/.gitignore b/.gitignorenew file mode 100644index 0000000..23c64fd--- /dev/null+++ b/.gitignore@@ -0,0 +1,7 @@+node_modules+out+dist+*.log+.DS_Store+.vscode/*+!.vscode/extensions.jsondiff --git a/README.md b/README.mdnew file mode 100644index 0000000..7fd4d86--- /dev/null+++ b/README.md@@ -0,0 +1,57 @@+# Edge-Drop++A clipboard manager that lives hidden on the **left edge** of your screen and expands on hover.++## Features++- **Edge panel** — invisible, click-through window anchored to the left edge; hovers into view when your cursor enters the hot zone+- **Clipboard history** — captures text, rich HTML, images, and file paths automatically+- **Drag in / drag out** — drop multiple images or files into the shelf; drag items out into any other app (Photoshop, Explorer, Word…)+- **Search, pin, delete, clear** — all the essentials of a high-end clipboard manager+- **Deep-black macOS-inspired UI** — layered gradients, accent glow, inner light edge, smooth spring animations+- **Settings** — accent color, hot-zone position/height, history limit, incognito mode, reduce motion, launch at login+- **System tray** — show/hide, incognito toggle, quit++## Getting Started++```bash+npm install+npm run dev # Launch with HMR+npm run build # Production build+npm run typecheck # Verify types+```++## How It Works++| Mechanism | Detail |+|---|---|+| **Edge hide/expand** | Transparent, frameless, always-on-top `BrowserWindow` at x=0. `setIgnoreMouseEvents(true, { forward: true })` makes it click-through but still dispatches pointer events. Renderer detects cursor in the hot band (leftmost 12px × middle 40% of screen) and toggles interactivity via IPC. |+| **Clipboard capture** | Polls every 600ms, computes a per-format signature for change detection, deduplicates, caps at the configured limit (default 500). |+| **Drag out** | Main writes item content to a temp file (image→PNG, text→.txt, files→original paths) and calls `webContents.startDrag({ file, icon })` — Electron's supported native OLE drag path. |+| **Drag in** | HTML5 `onDrop` + `webUtils.getPathForFile` (Electron ≥24) to resolve OS file objects back to absolute paths, bulk-added to the store. |+| **Persistence** | JSON index in `userData/items.json`, image files in `userData/images/`. Settings in `userData/settings.json`. |++## Stack++- **Electron** + **electron-vite** (main + preload + renderer HMR)+- **React** + **TypeScript** + **Framer Motion** + **Zustand**+- **Security**: contextIsolation on, nodeIntegration off, typed preload bridge, single-instance lock++## Project Structure++```+Edge-Drop/+├─ shared/ types, IPC contracts, bridge type+├─ electron/+│ ├─ main/ window, tray, IPC handlers, config, drag-out, entry+│ ├─ preload/ contextBridge API+│ ├─ clipboard/ ClipboardWatcher, format readers+│ └─ store/ ItemStore, settings, paths+├─ src/ React renderer+│ ├─ components/ Panel, ItemList, ClipboardItem, SearchBar, Header, Settings, Icons, EmptyState+│ ├─ hooks/ useEdgeHover, useDragOut, useFilteredItems+│ ├─ store/ Zustand appStore+│ ├─ lib/ edge bridge client, theme, format helpers+│ └─ styles/ tokens, global, panel, item, settings+└─ resources/ app icon+```diff --git a/electron.vite.config.1782746482295.mjs b/electron.vite.config.1782746482295.mjsnew file mode 100644index 0000000..8f884ee--- /dev/null+++ b/electron.vite.config.1782746482295.mjs@@ -0,0 +1,46 @@+// electron.vite.config.ts+import { resolve } from "node:path";+import { defineConfig, externalizeDepsPlugin } from "electron-vite";+import react from "@vitejs/plugin-react";+var __electron_vite_injected_dirname = "C:\\Users\\yadav\\OneDrive\\Desktop\\projects\\Edge-Drop";+var electron_vite_config_default = defineConfig({+ main: {+ plugins: [externalizeDepsPlugin()],+ build: {+ rollupOptions: {+ input: { index: resolve(__electron_vite_injected_dirname, "electron/main/index.ts") }+ }+ }+ },+ preload: {+ plugins: [externalizeDepsPlugin()],+ build: {+ rollupOptions: {+ input: { index: resolve(__electron_vite_injected_dirname, "electron/preload/index.ts") },+ output: {+ format: "cjs",+ entryFileNames: "[name].cjs"+ }+ }+ }+ },+ renderer: {+ // Root must be project root because index.html lives there.+ root: ".",+ resolve: {+ alias: {+ "@renderer": resolve(__electron_vite_injected_dirname, "src"),+ "@shared": resolve(__electron_vite_injected_dirname, "shared")+ }+ },+ build: {+ rollupOptions: {+ input: { index: resolve(__electron_vite_injected_dirname, "index.html") }+ }+ },+ plugins: [react()]+ }+});+export {+ electron_vite_config_default as default+};diff --git a/electron.vite.config.ts b/electron.vite.config.tsnew file mode 100644index 0000000..639060a--- /dev/null+++ b/electron.vite.config.ts@@ -0,0 +1,42 @@+import { resolve } from 'node:path'+import { defineConfig, externalizeDepsPlugin } from 'electron-vite'+import react from '@vitejs/plugin-react'++export default defineConfig({+ main: {+ plugins: [externalizeDepsPlugin()],+ build: {+ rollupOptions: {+ input: { index: resolve(__dirname, 'electron/main/index.ts') }+ }+ }+ },+ preload: {+ plugins: [externalizeDepsPlugin()],+ build: {+ rollupOptions: {+ input: { index: resolve(__dirname, 'electron/preload/index.ts') },+ output: {+ format: 'cjs',+ entryFileNames: '[name].cjs'+ }+ }+ }+ },+ renderer: {+ // Root must be project root because index.html lives there.+ root: '.',+ resolve: {+ alias: {+ '@renderer': resolve(__dirname, 'src'),+ '@shared': resolve(__dirname, 'shared')+ }+ },+ build: {+ rollupOptions: {+ input: { index: resolve(__dirname, 'index.html') }+ }+ },+ plugins: [react()]+ }+})diff --git a/electron/clipboard/ClipboardWatcher.ts b/electron/clipboard/ClipboardWatcher.tsnew file mode 100644index 0000000..6c66983--- /dev/null+++ b/electron/clipboard/ClipboardWatcher.ts@@ -0,0 +1,80 @@+/**+ * Polls the system clipboard and reports genuinely new content.+ *+ * Electron has no native clipboard-changed event, so we sample on an interval.+ * To avoid creating duplicate items (and to avoid re-reading the expensive+ * image bytes every tick) we keep a cheap signature of the last seen state and+ * only do the full `readClipboard()` work when it changes.+ */+import { clipboard } from 'electron'+import { createId } from '../store/ids'+import { readClipboard, clipboardSignature } from './formats'+import type { ItemData } from '../../shared/types'++/**+ * Fired when genuinely new content lands on the clipboard. For image captures+ * the raw PNG bytes are handed over as the second argument so the store can+ * persist them without re-reading the clipboard.+ */+export type NewItemHandler = (data: ItemData, imagePng?: Buffer) => void++export class ClipboardWatcher {+ private timer: NodeJS.Timeout | null = null+ private lastSig = 'empty'+ private paused = false+ private readonly intervalMs: number++ constructor(intervalMs = 600) {+ this.intervalMs = intervalMs+ }++ /** Start watching. `onNew` fires for every genuinely new piece of content. */+ start(onNew: NewItemHandler): void {+ if (this.timer) return+ // Seed the signature so we don't re-fire for whatever is already on the+ // clipboard at startup (the user didn't "just" copy it).+ this.lastSig = clipboardSignature()++ this.timer = setInterval(() => {+ if (this.paused) return+ const sig = clipboardSignature()+ if (sig === this.lastSig) return+ console.log('[Watcher] clipboard changed sig=', sig.slice(0, 60))+ this.lastSig = sig++ const data = readClipboard()+ if (!data) {+ console.log('[Watcher] readClipboard returned null')+ return+ }+ console.log('[Watcher] detected kind=', data.kind)++ // Images need their bytes persisted + an id assigned before publishing.+ if (data.kind === 'image') {+ const img = clipboard.readImage()+ data.imageId = createId()+ data.bytes = img.toPNG().length+ onNew(data, img.toPNG())+ } else {+ onNew(data)+ }+ }, this.intervalMs)+ }++ /** Temporarily stop recording (incognito mode or self-copy) without tearing down the timer. */+ setPaused(paused: boolean): void {+ this.paused = paused+ // When resuming, refresh the signature so we ignore whatever was copied+ // during the paused state (e.g. self-copies or incognito copies).+ if (!paused) {+ this.lastSig = clipboardSignature()+ }+ }++ stop(): void {+ if (this.timer) {+ clearInterval(this.timer)+ this.timer = null+ }+ }+}diff --git a/electron/clipboard/formats.ts b/electron/clipboard/formats.tsnew file mode 100644index 0000000..62bd693--- /dev/null+++ b/electron/clipboard/formats.ts@@ -0,0 +1,184 @@+/**+ * Reading & categorizing the system clipboard.+ *+ * Electron's `clipboard` API doesn't emit native change events, so we poll and+ * need to detect *what kind* of thing is on the clipboard each tick. The+ * priority is: files > image > html(rich) > text. We also pull a few "rich"+ * variants out of raw Windows formats (copied files arrive as FileNameW).+ */+import { clipboard } from 'electron'+import type { ItemData } from '../../shared/types'++/** Windows clipboard format name for a copied-file list. */+const CF_FILE_LIST = 'FileNameW'++/** Read the list of copied file paths (Windows), or null if none. */+function readFileList(): string[] | null {+ try {+ const buf = clipboard.readBuffer(CF_FILE_LIST)+ if (!buf || buf.length < 4) return null+ // FileNameW is a null-terminated UTF-16LE wide string. Multiple files are+ // separated by NUL chars; the whole blob ends with a double NUL.+ const wide = buf.toString('utf16le')+ const parts = wide.split('\u0000').map((s) => s.trim()).filter(Boolean)+ return parts.length ? parts : null+ } catch {+ return null+ }+}++const URL_RE = /^(https?:\/\/|www\.)[^\s]+$/i+const COLOR_HEX_RE = /^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i++/** Sensitive clipboard formats used by password managers and transient scripts. */+const IGNORED_FORMATS = [+ 'ClipboardViewerIgnore',+ 'ExcludeClipboardContentFromMonitorProcessing',+ 'org.nspasteboard.ConcealedType',+ 'com.agilebits.onepassword'+]++/**+ * Snapshot the current clipboard into a single ItemData, or null if it's empty.+ * Order matters: a file copy should win over its text fallback, an image wins+ * over nothing, otherwise we keep text (preferring HTML if it carries rich text).+ */+export function readClipboard(): ItemData | null {+ const formats = clipboard.availableFormats()++ // Skip content that password managers / secret managers explicitly mark as+ // sensitive. These are *explicit* opt-out flags — we do NOT check+ // CanIncludeInClipboardHistory or ExcludeClipboardContentFromMonitorProcessing+ // with a byte-length test because Windows populates those for most normal+ // clipboard content (setting them != 0 is how many apps signal "yes include+ // me"). Checking `byteLength > 0` was rejecting nearly everything.+ if (formats.some((f) => IGNORED_FORMATS.includes(f))) {+ return null+ }++ // Files first — a file copy also places text on the clipboard, which we ignore.+ const files = readFileList()+ if (files && files.length) return { kind: 'files', paths: files }++ // Text vs Image priority heuristic based on available formats.+ // When copying from Office apps, both rich text and images are placed on the clipboard.+ // When copying an image from a browser, both image and a small text fallback are placed.+ const hasText = formats.includes('text/plain')+ const hasHtml = formats.includes('text/html')+ const hasRtf = formats.includes('text/rtf')+ const hasImage = formats.includes('image/png') || formats.includes('image/jpeg')++ const rawText = clipboard.readText().trim()++ // Determine primary intent based on formatting metadata+ let isTextIntent = false+ if (rawText) {+ if (hasRtf) {+ // RTF is almost exclusively used by word processors / rich text editors.+ isTextIntent = true+ } else if (hasHtml && !hasImage) {+ // HTML without an image is definitely text.+ isTextIntent = true+ } else if (hasText && !hasImage) {+ // Plain text without an image is definitely text.+ isTextIntent = true+ } else if (hasImage) {+ // Both text and image exist.+ // If the text is very short and matches a URL, it's likely a fallback for an image copied from a browser.+ const isUrl = URL_RE.test(rawText)+ if (isUrl && rawText.length < 500) {+ isTextIntent = false+ } else {+ // If the HTML contains more than just a single img tag, it's likely rich text containing an image.+ const rawHtml = clipboard.readHTML().trim()+ if (rawHtml) {+ // A simple heuristic: if it has significant text content outside tags, it's text.+ const stripped = rawHtml.replace(/<[^>]*>?/gm, '').trim()+ if (stripped.length > 0 && stripped !== rawText && rawText.length > 10) {+ isTextIntent = true+ }+ }+ }+ }+ }++ if (isTextIntent) {+ let html: string | undefined+ const rawHtml = clipboard.readHTML().trim()+ if (rawHtml && rawHtml !== rawText) html = rawHtml++ const isUrl = URL_RE.test(rawText)+ const isColor = COLOR_HEX_RE.test(rawText)++ return { kind: 'text', text: rawText, html, isUrl, isColor }+ }++ // If it wasn't determined to be text intent, but we have an image, prioritize the image.+ const img = clipboard.readImage()+ if (!img.isEmpty()) {+ const size = img.getSize()+ return {+ kind: 'image',+ imageId: '',+ width: size.width,+ height: size.height,+ bytes: img.toPNG().length+ }+ }++ // Fallback to text if it's the only thing left+ if (rawText) {+ let html: string | undefined+ const rawHtml = clipboard.readHTML().trim()+ if (rawHtml && rawHtml !== rawText) html = rawHtml++ const isUrl = URL_RE.test(rawText)+ const isColor = COLOR_HEX_RE.test(rawText)++ return { kind: 'text', text: rawText, html, isUrl, isColor }+ }++ return null+}++/**+ * A cheap signature string used to detect that the clipboard *changed* without+ * having to construct a full ItemData or encode images to base64.+ *+ * Strategy: combine the list of available format names with quick fingerprints+ * for each content type. For images this uses the byte *length* of the PNG+ * buffer rather than encoding the whole image to a data URL (which was the+ * previous approach and was very expensive on a 600ms poll).+ */+export function clipboardSignature(): string {+ const formats = clipboard.availableFormats()+ // A cheap fingerprint of *what* is on the clipboard.+ // Sorting makes the format-key stable regardless of OS ordering.+ const fmtKey = formats.slice().sort().join('\x1f')++ // If files are on the clipboard, their paths are the most stable fingerprint.+ const files = readFileList()+ if (files && files.length) {+ return `files:${files.join('\n')}`+ }++ // Text — hash the content itself.+ const text = clipboard.readText().trim()+ if (text) {+ return `text:${text}`+ }++ // If there's an image, use available formats + byte length (no data URL).+ const img = clipboard.readImage()+ if (!img.isEmpty()) {+ const pngLen = img.toPNG().length+ return `image:${fmtKey}:${pngLen}`+ }++ return 'empty'+}++/** True if the text payload looks like a single URL. */+export function isUrlText(s: string): boolean {+ return URL_RE.test(s)+}diff --git a/electron/main/config.ts b/electron/main/config.tsnew file mode 100644index 0000000..f15389b--- /dev/null+++ b/electron/main/config.ts@@ -0,0 +1,18 @@+/** App-wide constants and environment flags for the main process. */++/** Mutable runtime flags (kept separate from the frozen config object). */+export const runtime = {+ /** Set true only while the app is genuinely quitting (tray -> Quit). */+ quitting: false+}++export const APP_CONFIG = {+ appName: 'Edge-Drop',+ /** Custom protocol used to serve local image files to the renderer securely. */+ imageProtocol: 'edgelocal',+ is: {+ get dev(): boolean {+ return !!process.env.ELECTRON_RENDERER_URL || process.env.NODE_ENV === 'development'+ }+ }+} as constdiff --git a/electron/main/drag.ts b/electron/main/drag.tsnew file mode 100644index 0000000..df2088a--- /dev/null+++ b/electron/main/drag.ts@@ -0,0 +1,157 @@+/**+ * Native drag-out of items into other applications.+ *+ * Electron's supported drag-out path is `webContents.startDrag({ file, icon })`,+ * which must be called from the `ipcMain.on` handler (not an async invoke+ * handler) so `event.sender` is the exact webContents that initiated the drag.+ * This ensures the OLE drag gesture flows correctly on Windows.+ *+ * Before dragging we stage the item's content as a temp file:+ * - image -> <id>.png (its persisted bytes, copied to temp)+ * - text -> <id>.txt+ * - files -> the *original* file paths (drag the real thing, not a copy)+ *+ * The temp files are cleaned up on the next app start (see cleanTemp).+ */+import { nativeImage, type WebContents } from 'electron'+import { copyFileSync, writeFileSync, existsSync, readFileSync } from 'node:fs'+import { join } from 'node:path'+import { PATHS } from '../store/paths'+import type { DragRequest, ItemData } from '../../shared/types'+import { getStore } from './state'++/**+ * Resolve a DragRequest into concrete ItemData.+ *+ * If `paths` is provided (dragging one file out of an expanded bundle), synthesize+ * a singleton `files` item. Otherwise look up the full item by id.+ */+export function resolveDragData(req: DragRequest): ItemData | null {+ if (req.paths && req.paths.length > 0) {+ return { kind: 'files', paths: req.paths }+ }+ const item = getStore().get(req.id)+ if (!item) return null++ if (req.imageId && item.data.kind === 'image-collection') {+ const img = item.data.images.find((i) => i.imageId === req.imageId)+ if (img) return { kind: 'image', ...img }+ }+ return item.data+}++/**+ * Begin a native OS drag from a specific webContents (the `event.sender` from+ * the `ipcMain.on` handler). This is the **only** reliable way to start a drag+ * on Windows — `BrowserWindow.getFocusedWindow()` often returns null for this+ * edge panel (it is showInactive / skipTaskbar / alwaysOnTop).+ */+export function startDragOut(sender: WebContents, data: ItemData): void {+ const staged = stageDragFile(data)+ if (!staged) return++ const item: Electron.Item = { file: staged.file, icon: dragIcon(data) }+ if (staged.files) item.files = staged.files+ sender.startDrag(item)+}++/* ------------------------------------------------------------------ */+/* Staging */+/* ------------------------------------------------------------------ */++interface Staged {+ file: string+ files?: string[]+}++/** Resolve the item to a concrete file path to hand to the OS. */+function stageDragFile(data: ItemData): Staged | null {+ const temp = PATHS.tempDir()+ switch (data.kind) {+ case 'files': {+ const real = data.paths.filter((p) => existsSync(p))+ if (!real.length) return null+ return { file: real[0], files: real }+ }+ case 'image': {+ const src = join(PATHS.imagesDir(), `${data.imageId}.png`)+ if (!existsSync(src)) return null+ const dest = join(temp, `${data.imageId}.png`)+ try {+ copyFileSync(src, dest)+ } catch {+ return null+ }+ return { file: dest }+ }+ case 'image-collection': {+ const paths: string[] = []+ for (const img of data.images) {+ const src = join(PATHS.imagesDir(), `${img.imageId}.png`)+ if (existsSync(src)) {+ const dest = join(temp, `${img.imageId}.png`)+ try {+ copyFileSync(src, dest)+ paths.push(dest)+ } catch {+ // skip failed copies+ }+ }+ }+ if (!paths.length) return null+ return { file: paths[0], files: paths }+ }+ case 'text': {+ const id = `${Date.now().toString(36)}`+ const dest = join(temp, `${id}.txt`)+ try {+ writeFileSync(dest, data.text, 'utf8')+ } catch {+ return null+ }+ return { file: dest }+ }+ }+}++/* ------------------------------------------------------------------ */+/* Drag icon (with small in-memory cache) */+/* ------------------------------------------------------------------ */++/** Cache recently built drag icons to avoid re-reading + re-encoding images. */+const iconCache = new Map<string, Electron.NativeImage>()+const ICON_CACHE_MAX = 32++/**+ * Build the ghost image shown under the cursor during the drag. We render a+ * rounded tile at a small size; for images we use a thumbnail of the content.+ */+function dragIcon(data: ItemData): Electron.NativeImage {+ try {+ if (data.kind === 'image' || data.kind === 'image-collection') {+ const imageId = data.kind === 'image-collection' && data.images.length > 0+ ? data.images[0].imageId+ : (data as any).imageId++ if (!imageId) return nativeImage.createEmpty()++ const cached = iconCache.get(imageId)+ if (cached && !cached.isEmpty()) return cached++ const src = join(PATHS.imagesDir(), `${imageId}.png`)+ if (existsSync(src)) {+ const img = nativeImage.createFromBuffer(readFileSync(src)).resize({ width: 120, quality: 'good' })+ iconCache.set(imageId, img)+ // Evict oldest entries if the cache is too large.+ if (iconCache.size > ICON_CACHE_MAX) {+ const first = iconCache.keys().next().value+ if (first) iconCache.delete(first)+ }+ return img+ }+ }+ } catch {+ /* fall through to default */+ }+ return nativeImage.createEmpty()+}diff --git a/electron/main/index.ts b/electron/main/index.tsnew file mode 100644index 0000000..6989eb6--- /dev/null+++ b/electron/main/index.ts@@ -0,0 +1,120 @@+/**+ * Electron main process entry point.+ *+ * Lifecycle:+ * 1. Single-instance lock (only one Edge-Drop may run).+ * 2. App 'ready' -> ensure dirs, create the edge window + tray, register the+ * image protocol + IPC handlers, start the clipboard watcher.+ * 3. On 'window-all-closed' we DON'T quit (the panel is hidden, not closed).+ * 4. Quit from the tray menu tears everything down cleanly.+ */+import { app, BrowserWindow, protocol, session } from 'electron'+import { APP_CONFIG, runtime } from './config'+import { ensureDirs, cleanTemp, PATHS } from '../store/paths'+import { createWindow, getMainWindow, setInteractive, setVisible } from './window'+import { createTray, registerIncognitoApplier } from './tray'+import { registerIpc, registerSendListeners } from './ipc'+import { initState, getWatcher, loadSettings, pushState } from './state'+import { join } from 'node:path'+import { existsSync, createReadStream } from 'node:fs'+import { createHash } from 'node:crypto'++// Restrict the renderer to a single webContents and forbid remote module usage.+app.enableSandbox()++// ---- single instance -------------------------------------------------------+const gotLock = app.requestSingleInstanceLock()+if (!gotLock) {+ app.quit()+} else {+ app.on('second-instance', () => {+ // If a second copy launches, just reveal the existing panel.+ setVisible(true)+ getMainWindow()?.focus()+ })+}++// ---- before ready: register privileged protocol ----------------------------+// Must happen before app is ready so we can declare it as privileged (bypass+// CSP for image loads).+protocol.registerSchemesAsPrivileged([+ {+ scheme: APP_CONFIG.imageProtocol,+ privileges: { standard: true, secure: true, supportFetchAPI: true, stream: true }+ }+])++// ---- app lifecycle ---------------------------------------------------------+app.on('before-quit', () => {+ runtime.quitting = true+})++app.whenReady().then(() => {+ ensureDirs()+ cleanTemp()++ // Lock the renderer session down: block all permission requests by default.+ const ses = session.defaultSession+ ses.setPermissionRequestHandler((_wc, _perm, cb) => cb(false))++ // Register the image protocol: edgelocal://<imageId> -> images/<imageId>.png+ registerImageProtocol()++ createWindow()+ createTray()+ registerIpc()+ registerSendListeners()+ initState()++ // Reflect incognito setting into the watcher immediately.+ const settings = loadSettings()+ registerIncognitoApplier((v) => getWatcher().setPaused(v))+ getWatcher().setPaused(settings.incognito)+ pushState.settings(settings)++ // Keep the tray checkmarks in sync after settings change from the UI.+ // (Tray menu is rebuilt on each open, so no extra wiring is needed here.)+})++app.on('window-all-closed', (e: Event) => {+ // Never quit when the window closes (there is no window chrome anyway).+ e.preventDefault()+})++app.on('activate', () => {+ if (BrowserWindow.getAllWindows().length === 0) createWindow()+})++// ---- image protocol handler ------------------------------------------------+function registerImageProtocol(): void {+ protocol.handle(APP_CONFIG.imageProtocol, async (request) => {+ try {+ const id = request.url.replace(`${APP_CONFIG.imageProtocol}://`, '').replace(/\/$/, '')+ const file = join(PATHS.imagesDir(), `${sanitizeId(id)}.png`)+ if (!existsSync(file)) {+ return new Response('Not found', { status: 404 })+ }+ const stream = createReadStream(file)+ // node 'web stream' readable for the Response body.+ const body = new Response(stream as unknown as ReadableStream<Uint8Array>).body+ const headers = new Headers({+ 'Content-Type': 'image/png',+ 'Cache-Control': 'no-cache'+ })+ // ETag based on file path hash for cheap revalidation.+ headers.set('ETag', `"${createHash('md5').update(file).digest('hex')}"`)+ return new Response(body, { status: 200, headers })+ } catch {+ return new Response('Error', { status: 500 })+ }+ })+}++/** Allow only id-like characters to prevent path traversal via the protocol. */+function sanitizeId(id: string): string {+ return id.replace(/[^a-z0-9-]/gi, '')+}++// Silence unused import in environments where setVisible isn't referenced+// after the refactor (kept for second-instance wiring above).+void setInteractivediff --git a/electron/main/ipc.ts b/electron/main/ipc.tsnew file mode 100644index 0000000..fc24995--- /dev/null+++ b/electron/main/ipc.ts@@ -0,0 +1,179 @@+/**+ * IPC handler registration.+ *+ * Each `ipcMain.handle` here mirrors a contract in `shared/ipc.ts`. The+ * renderer calls them through the typed preload bridge, so a signature mismatch+ * is a compile-time error rather than a runtime one.+ */+import { ipcMain, clipboard, nativeImage } from 'electron'+import { type InvokeMap, type InvokeChannel, type SendMap, type SendChannel } from '../../shared/ipc'+import { getStore, loadSettings, saveSettings, pushState, addFiles, getWatcher } from './state'+import { setInteractive } from './window'+import { startDragOut, resolveDragData } from './drag'+import type { ItemData } from '../../shared/types'++/**+ * Type-checked registration helper: guarantees the handler's return matches the+ * contract declared in InvokeMap.+ */+function handle<C extends InvokeChannel>(+ channel: C,+ fn: (...args: InvokeMap[C]['args']) => Promise<InvokeMap[C]['result']> | InvokeMap[C]['result']+): void {+ ipcMain.handle(channel, (_e, ...args) => fn(...(args as InvokeMap[C]['args'])))+}++export function registerIpc(): void {+ handle('state:load', () => {+ return {+ items: getStore().toDto(),+ settings: loadSettings()+ }+ })++ handle('item:set-pinned', (id, pinned) => {+ getStore().setPinned(id, pinned)+ pushState.items()+ return getStore().toDto()+ })++ handle('item:delete', (id) => {+ getStore().delete(id)+ pushState.items()+ return getStore().toDto()+ })++ handle('item:clear', () => {+ getStore().clearUnpinned()+ pushState.items()+ return getStore().toDto()+ })++ handle('item:copy', (id) => {+ const item = getStore().get(id)+ console.log('[IPC] item:copy id=', id, 'found=', !!item)+ if (!item) return false++ const watcher = getWatcher()+ watcher.setPaused(true)+ writeItemToClipboard(item.data)+ console.log('[IPC] item:copy wrote to clipboard, kind=', item.data.kind)++ // Unpause after a short delay to allow OS clipboard event to settle.+ // Respect the current incognito state when unpausing.+ setTimeout(() => {+ watcher.setPaused(loadSettings().incognito)+ }, 200)++ return true+ })++ handle('item:add-files', (paths) => {+ addFiles(paths)+ return getStore().toDto()+ })++ handle('item:remove-subitem', (req) => {+ const success = getStore().removeSubitem(req)+ if (success) pushState.items()+ return success+ })++ handle('item:merge', (sourceId, targetId) => {+ const success = getStore().merge(sourceId, targetId)+ if (success) pushState.items()+ return success+ })++ handle('item:split', (req) => {+ console.log('[IPC] item:split called with req=', JSON.stringify(req))+ const success = getStore().split(req)+ console.log('[IPC] item:split success=', success)+ if (success) pushState.items()+ return success+ })++ handle('settings:update', (patch) => {+ const next = saveSettings(patch)+ pushState.settings(next)+ return next+ })++ handle('window:set-interactive', (value) => {+ setInteractive(value)+ })+}++/**+ * Register fire-and-forget (send) listeners.+ *+ * These use `ipcMain.on` + `event.sender` instead of `ipcMain.handle` because+ * the drag-out gesture must be synchronous — `event.sender.startDrag(...)` only+ * works correctly when called from the same event-loop turn as the renderer's+ * `dragstart` event.+ */+function on<C extends SendChannel>(+ channel: C,+ fn: (sender: Electron.WebContents, ...args: SendMap[C]['args']) => void+): void {+ ipcMain.on(channel, (event, ...args) => fn(event.sender, ...(args as SendMap[C]['args'])))+}++export function registerSendListeners(): void {+ on('item:start-drag', (sender, req) => {+ console.log('[IPC] item:start-drag req=', JSON.stringify(req))+ const data = resolveDragData(req)+ if (!data) {+ console.log('[IPC] start-drag: no data resolved')+ return+ }+ console.log('[IPC] start-drag: kind=', data.kind)+ startDragOut(sender, data)+ console.log('[IPC] start-drag returned, sending drag-end')+ sender.send('item:drag-end')++ // Workaround for Electron/Windows not firing drop events on the source window:+ // Check if the user dropped the item back onto our window!+ const { screen, BrowserWindow } = require('electron')+ const point = screen.getCursorScreenPoint()+ const win = BrowserWindow.fromWebContents(sender)+ if (win) {+ const bounds = win.getBounds()+ const isInside = point.x >= bounds.x && point.x <= bounds.x + bounds.width &&+ point.y >= bounds.y && point.y <= bounds.y + bounds.height+ if (isInside) {+ console.log(`[IPC] Drag ended inside window! Triggering internal-drop at x=${point.x - bounds.x}, y=${point.y - bounds.y}`)+ sender.send('item:internal-drop', { x: point.x - bounds.x, y: point.y - bounds.y })+ }+ }+ })+}++/** Write any item payload back onto the system clipboard. */+export function writeItemToClipboard(data: ItemData): void {+ switch (data.kind) {+ case 'text':+ clipboard.clear()+ clipboard.writeText(data.text)+ if (data.html) clipboard.writeHTML(data.html)+ break+ case 'image': {+ const dto = getStore().toDto().find(+ (d) => d.data.kind === 'image' && d.data.imageId === data.imageId+ )+ if (dto && dto.data.kind === 'image') {+ const img = nativeImage.createFromDataURL(dto.data.preview)+ if (!img.isEmpty()) {+ clipboard.clear()+ clipboard.writeImage(img)+ }+ }+ break+ }+ case 'files':+ // Electron has no public files-write API; fall back to paths as text.+ clipboard.clear()+ clipboard.writeText(data.paths.join('\r\n'))+ break+ }+}diff --git a/electron/main/state.ts b/electron/main/state.tsnew file mode 100644index 0000000..d52cebe--- /dev/null+++ b/electron/main/state.ts@@ -0,0 +1,105 @@+/**+ * Central runtime state & renderer notification hub.+ *+ * Owns the single ItemStore and ClipboardWatcher instances and provides typed+ * helpers to broadcast changes to the renderer. Every mutation goes through+ * here so there's one path that re-pushes the DTO list.+ */+import { ItemStore } from '../store/ItemStore'+import { ClipboardWatcher } from '../clipboard/ClipboardWatcher'+import { loadSettings, saveSettings } from '../store/settings'+import type { ClipboardItemDto, ItemData, Settings } from '../../shared/types'+import { getMainWindow } from './window'+import { createId } from '../store/ids'+import { nativeImage } from 'electron'+import { readFileSync } from 'node:fs'+import { PATHS } from '../store/paths'++const store = new ItemStore()+const watcher = new ClipboardWatcher(600)++/** Initialize persistence + start the clipboard watcher. */+export function initState(): void {+ store.load()+ watcher.start((data, png) => {+ if (loadSettings().incognito) return+ if (data.kind === 'image' && png && data.imageId) {+ store.stageImageBytes(data.imageId, png)+ }+ store.add(data, loadSettings().historyLimit)+ pushState.items()+ })+ watcher.setPaused(loadSettings().incognito)+}++export function getStore(): ItemStore {+ return store+}++export function getWatcher(): ClipboardWatcher {+ return watcher+}++/** Push the full item list (DTO) to the renderer, if it's ready. */+function send(channel: string, ...args: unknown[]): void {+ const win = getMainWindow()+ if (win && !win.isDestroyed()) win.webContents.send(channel, ...args)+}++export const pushState = {+ items(): void {+ const dto: ClipboardItemDto[] = store.toDto()+ send('state:items', dto)+ },+ settings(next: Settings): void {+ send('state:settings', next)+ },+ togglePanel(): void {+ console.log('[Main] Sending window:toggle event to renderer')+ send('window:toggle')+ }+}++/** Re-export for handlers that mutate settings then need to broadcast. */+export { loadSettings, saveSettings }++/** Convenience used by IPC handlers. */+export function addFiles(paths: string[]): void {+ // Prevent duplicating items when a user accidentally drops our own staged temp files back into the app.+ // Real files are deduplicated automatically by path, but images are staged to temp-drag and would get new IDs.+ if (paths.some(p => p.startsWith(PATHS.tempDir()))) return++ const imageExts = /\.(png|jpe?g|gif|webp|bmp)$/i+ const allImages = paths.every((p) => imageExts.test(p))++ if (allImages && paths.length > 0) {+ const images = []+ for (const p of paths) {+ try {+ const img = nativeImage.createFromBuffer(readFileSync(p))+ if (!img.isEmpty()) {+ const imageId = createId()+ const png = img.toPNG()+ store.stageImageBytes(imageId, png)+ const size = img.getSize()+ images.push({ imageId, width: size.width, height: size.height, bytes: png.length })+ }+ } catch (e) {+ // ignore+ }+ }+ if (images.length > 1) {+ store.add({ kind: 'image-collection', images }, loadSettings().historyLimit)+ pushState.items()+ return+ } else if (images.length === 1) {+ store.add({ kind: 'image', ...images[0] }, loadSettings().historyLimit)+ pushState.items()+ return+ }+ }++ const data: ItemData = { kind: 'files', paths }+ store.add(data, loadSettings().historyLimit)+ pushState.items()+}diff --git a/electron/main/tray.ts b/electron/main/tray.tsnew file mode 100644index 0000000..5761d06--- /dev/null+++ b/electron/main/tray.ts@@ -0,0 +1,101 @@+/**+ * System tray icon + context menu.+ *+ * The panel has no taskbar button and no window chrome, so the tray is the+ * user's handle on the app: show/hide, toggle incognito, and quit. Menu item+ * state (checkmarks) is rebuilt every time the menu opens so it always reflects+ * current settings.+ */+import { Menu, Tray, app, nativeImage } from 'electron'+import { existsSync } from 'node:fs'+import { PATHS } from '../store/paths'+import { loadSettings, saveSettings } from '../store/settings'+import { getMainWindow, setVisible } from './window'+import { pushState } from './state'++let tray: Tray | null = null++/** Build a tiny monochrome tray icon if no on-disk icon exists (first run). */+function fallbackIcon(): Electron.NativeImage {+ // 16x16 transparent PNG with a centered accent dot.+ const png = Buffer.from(+ 'iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAW0lEQVR4AcXOMQ4AIQhF4eD9' ++ '/yWhVSChGAyMKlmJUqCYjCDxgi+gnqEVREe0g1FXuATdQI/CBXQMvABjgn0wAbJBHzPmJ2gB' ++ '1mYAAAAASUVORK5CYII=',+ 'base64'+ )+ return nativeImage.createFromBuffer(png).resize({ width: 16, height: 16 })+}++export function createTray(): Tray {+ const iconPath = PATHS.icon()+ const image = existsSync(iconPath) ? nativeImage.createFromPath(iconPath) : fallbackIcon()+ tray = new Tray(image)+ tray.setToolTip('Edge-Drop')++ const rebuild = () => {+ const settings = loadSettings()+ const menu = Menu.buildFromTemplate([+ {+ label: 'Show panel',+ click: () => {+ console.log('[Main] Context menu "Show panel" clicked')+ setVisible(true)+ getMainWindow()?.focus()+ pushState.togglePanel()+ }+ },+ {+ label: 'Hide panel',+ click: () => setVisible(false)+ },+ { type: 'separator' },+ {+ label: 'Incognito (pause capture)',+ type: 'checkbox',+ checked: settings.incognito,+ click: (item) => {+ const next = saveSettings({ incognito: item.checked })+ pushState.settings(next)+ applyIncognito(next.incognito)+ }+ },+ {+ label: 'Launch at login',+ type: 'checkbox',+ checked: settings.launchAtLogin,+ click: (item) => saveSettings({ launchAtLogin: item.checked })+ },+ { type: 'separator' },+ {+ label: 'Quit Edge-Drop',+ click: () => {+ app.quit()+ }+ }+ ])+ tray?.setContextMenu(menu)+ }++ tray.on('click', () => {+ console.log('[Main] Tray icon left-clicked')+ const win = getMainWindow()+ if (!win) return+ setVisible(true)+ pushState.togglePanel()+ })++ // Refresh checkmarks each time the menu is shown.+ tray.on('right-click', () => tray?.popUpContextMenu())+ rebuild()+ return tray+}++/** Reflect incognito toggle into the watcher without the renderer round-trip. */+let incognitoApply: ((v: boolean) => void) | null = null+export function registerIncognitoApplier(fn: (v: boolean) => void): void {+ incognitoApply = fn+}+function applyIncognito(v: boolean): void {+ incognitoApply?.(v)+}diff --git a/electron/main/window.ts b/electron/main/window.tsnew file mode 100644index 0000000..ca5e494--- /dev/null+++ b/electron/main/window.ts@@ -0,0 +1,247 @@+/**+ * The edge panel BrowserWindow.+ *+ * The window is the full *expanded* size and sits at the left edge of the+ * primary display's work area. It is transparent and frameless, and is normally+ * click-through (`setIgnoreMouseEvents(true, { forward: true })`) so the desktop+ * stays fully usable. The renderer listens for pointer movement across the whole+ * page (which is still delivered even while click-through, thanks to `forward`)+ * and toggles interactivity via `setInteractive` once the cursor dwells in the+ * hot zone. This is what produces the "invisible until you approach the edge"+ * effect without a separate hidden trigger window.+ *+ * Drag-in support: because click-through windows cannot receive HTML5 drag+ * events (only pointer events are forwarded), we create a separate thin+ * "detector" window layered behind the main panel. It is always interactive+ * and transparent — its body uses CSS `pointer-events: none` so regular clicks+ * pass through to the desktop, but the BrowserWindow itself *does* receive+ * OS drag events. When it detects a Files-type dragenter, it sends an IPC+ * signal (`detector:file-drag-enter`) that is handled in index.ts to open+ * the panel and make it interactive.+ *+ * NOTE: this module must NOT import from state.ts to avoid circular dependencies.+ */+import { BrowserWindow, screen, shell } from 'electron'+import { join } from 'node:path'+import { APP_CONFIG } from './config'+import { runtime } from './config'++export const PANEL_WIDTH = 384+/** Visual width of the blade when collapsed (only used by the renderer). */+export const COLLAPSED_WIDTH = 0++let mainWindow: BrowserWindow | null = null+let detectorWindow: BrowserWindow | null = null+let interactive = false++export function getMainWindow(): BrowserWindow | null {+ return mainWindow+}++/** True when the window currently accepts mouse clicks (blade is "open"). */+export function isInteractive(): boolean {+ return interactive+}++/**+ * Toggle whether the panel swallows pointer events.+ *+ * - interactive=false -> click-through (cursor passes to the desktop) but mouse+ * move events are still forwarded so we can detect the hot zone.+ * - interactive=true -> normal interactive window.+ */+export function setInteractive(value: boolean): void {+ if (!mainWindow || value === interactive) return+ interactive = value+ mainWindow.setIgnoreMouseEvents(!value, { forward: !value })+}++/** Compute geometry anchored to the left edge of the primary display. */+function edgeGeometry(): { x: number; y: number; width: number; height: number } {+ const display = screen.getPrimaryDisplay()+ const workArea = display.workArea+ return {+ x: workArea.x,+ y: workArea.y,+ width: PANEL_WIDTH,+ height: workArea.height+ }+}++export function createWindow(): BrowserWindow {+ const { x, y, width, height } = edgeGeometry()++ mainWindow = new BrowserWindow({+ x,+ y,+ width,+ height,+ show: false,+ frame: false,+ fullscreenable: false,+ maximizable: false,+ minWidth: PANEL_WIDTH,+ minHeight: 320,+ movable: false,+ resizable: false,+ transparent: true,+ hasShadow: false,+ skipTaskbar: true,+ alwaysOnTop: true,+ backgroundColor: '#00000000',+ roundedCorners: false,+ webPreferences: {+ preload: join(__dirname, '../preload/index.cjs'),+ contextIsolation: true,+ nodeIntegration: false,+ sandbox: true,+ spellcheck: false+ }+ })++ // Start click-through so the panel is invisible to clicks until hovered.+ mainWindow.setIgnoreMouseEvents(true, { forward: true })++ // Keep the panel glued to the primary display if the work area changes.+ screen.on('display-metrics-changed', () => {+ if (!mainWindow?.isVisible()) return+ const g = edgeGeometry()+ mainWindow.setBounds({ ...g })+ if (detectorWindow && !detectorWindow.isDestroyed()) {+ detectorWindow.setBounds({ x: g.x, y: g.y, width: g.width, height: g.height })+ }+ })++ // Respect OS-level always-on-top reordering.+ mainWindow.on('focus', () => {+ if (interactive) mainWindow?.setAlwaysOnTop(true, 'screen-saver')+ })++ // Open external links in the default browser.+ mainWindow.webContents.setWindowOpenHandler((details) => {+ shell.openExternal(details.url)+ return { action: 'deny' }+ })++ // Load the renderer.+ if (APP_CONFIG.is.dev && process.env.ELECTRON_RENDERER_URL) {+ mainWindow.loadURL(process.env.ELECTRON_RENDERER_URL)+ } else {+ mainWindow.loadFile(join(__dirname, '../renderer/index.html'))+ }++ mainWindow.once('ready-to-show', () => {+ mainWindow?.show()+ })++ mainWindow.webContents.on('console-message', (_event, _level, message, line, sourceId) => {+ console.log(`[Renderer] ${message} (${sourceId}:${line})`)+ })++ mainWindow.on('close', (e) => {+ if (!runtime.quitting) {+ e.preventDefault()+ }+ })++ // Create the detector window for OS drag-in awareness.+ createDetectorWindow(x, y, width, height)++ return mainWindow+}++/**+ * Thin invisible detector window for OS file drag awareness.+ *+ * When the main panel is click-through, HTML5 drag events (dragenter/dragover/drop)+ * are NOT forwarded — only pointer events are. This window sits in the same+ * position but is always interactive and transparent. It detects incoming file+ * drags and sends `detector:file-drag-enter` via the preload bridge so the+ * main process (handled in index.ts) can open the panel + make it interactive.+ *+ * The body has `pointer-events: none` so regular mouse clicks pass through+ * to the desktop, but the BrowserWindow itself still receives drag events.+ */+function createDetectorWindow(x: number, y: number, w: number, h: number): void {+ // Minimal HTML: the detector uses the preload bridge (window.edge) to send IPC.+ // It listens for dragenter/dragover/drop on the document and sends a signal+ // when Files are detected.+ const html = `<!DOCTYPE html>+<html><head><meta charset="utf-8"><style>+ *{margin:0;padding:0}+ html,body{width:100%;height:100%;background:transparent;pointer-events:none;overflow:hidden}+</style></head><body>+<script>+ document.addEventListener('dragenter', function(e) {+ if (e.dataTransfer && e.dataTransfer.types.indexOf && e.dataTransfer.types.indexOf('Files') >= 0) {+ e.preventDefault();+ if (window.edge) window.edge.setInteractive(true);+ }+ });+ document.addEventListener('dragover', function(e) {+ if (e.dataTransfer && e.dataTransfer.types.indexOf && e.dataTransfer.types.indexOf('Files') >= 0) {+ e.preventDefault();+ }+ });+ document.addEventListener('drop', function(e) {+ e.preventDefault();+ });+</script>+</body></html>`++ // Center vertically, 30% height so we don't block the Start menu / taskbar clicks+ const detHeight = Math.floor(h * 0.3)+ const detY = y + Math.floor((h - detHeight) / 2)++ detectorWindow = new BrowserWindow({+ x,+ y: detY,+ width: 20,+ height: detHeight,+ show: false,+ frame: false,+ fullscreenable: false,+ maximizable: false,+ movable: false,+ resizable: false,+ transparent: true,+ hasShadow: false,+ skipTaskbar: true,+ alwaysOnTop: true,+ backgroundColor: '#00000000',+ roundedCorners: false,+ focusable: false,+ webPreferences: {+ preload: join(__dirname, '../preload/index.cjs'),+ contextIsolation: true,+ nodeIntegration: false,+ sandbox: true,+ spellcheck: false+ }+ })++ // This window must NOT be click-through — it needs to receive drag events.+ detectorWindow.setIgnoreMouseEvents(false)++ // Layer behind the main panel (lower always-on-top level).+ detectorWindow.setAlwaysOnTop(true, 'normal')++ detectorWindow.loadURL(`data:text/html;charset=utf-8,${encodeURIComponent(html)}`)++ detectorWindow.once('ready-to-show', () => {+ detectorWindow?.showInactive()+ })++ detectorWindow.on('close', (e) => {+ if (!runtime.quitting) {+ e.preventDefault()+ }+ })+}++/** Toggle the panel between shown (always on top) and fully hidden. */+export function setVisible(visible: boolean): void {+ if (!mainWindow) return+ if (visible) mainWindow.showInactive()+ else mainWindow.hide()+}diff --git a/electron/preload/index.ts b/electron/preload/index.tsnew file mode 100644index 0000000..f1f806e--- /dev/null+++ b/electron/preload/index.ts@@ -0,0 +1,122 @@+/**+ * Preload bridge: the only surface the renderer has onto Electron.+ *+ * Everything is built from the typed contracts in `shared/ipc.ts`, so the+ * renderer gets a fully typed `window.edge` API and never touches a raw channel+ * name. contextIsolation keeps this isolated from page globals; nodeIntegration+ * stays off, so the renderer has no Node access at all.+ */+import { contextBridge, ipcRenderer, webUtils } from 'electron'+import type { IpcRendererEvent } from 'electron'+import type {+ EventChannel,+ EventArgs,+ InvokeArgs,+ InvokeChannel,+ InvokeResult,+ SendArgs,+ SendChannel+} from '../../shared/ipc'+import type { EdgeApi } from '../../shared/bridge'+import type { DragRequest } from '../../shared/types'++/** Typed invoke wrapper derived from the shared contracts. */+function invoke<C extends InvokeChannel>(+ channel: C,+ ...args: InvokeArgs<C>+): Promise<InvokeResult<C>> {+ return ipcRenderer.invoke(channel, ...args) as Promise<InvokeResult<C>>+}++/**+ * Typed fire-and-forget send. Used for gestures that the renderer must not+ * await — notably native drag-out, where main needs `event.sender.startDrag`+ * called synchronously relative to the DOM dragstart.+ */+function send<C extends SendChannel>(channel: C, ...args: SendArgs<C>): void {+ ipcRenderer.send(channel, ...args)+}++/** Typed event subscriber. Returns an unsubscribe function. */+function on<C extends EventChannel>(+ channel: C,+ listener: (...args: EventArgs<C>) => void+): () => void {+ const wrapped = (_e: IpcRendererEvent, ...args: EventArgs<C>) => listener(...args)+ ipcRenderer.on(channel, wrapped)+ return () => ipcRenderer.off(channel, wrapped)+}++/**+ * Intercept drag-and-drop globally in the preload script.+ * By running in the capturing phase, we intercept the drop before React.+ * This is required because passing DragEvent or File objects across the+ * contextBridge strips their internal C++ backing, causing webUtils.getPathForFile+ * to fail. Handling it here natively bypasses the bridge entirely.+ */+let internalDrag = false++window.addEventListener('dragover', (e) => {+ e.preventDefault()+}, false)++window.addEventListener('drop', (e) => {+ if (internalDrag) {+ e.preventDefault()+ return+ }++ const files = e.dataTransfer?.files+ if (!files || !files.length) return++ const paths: string[] = []+ for (let i = 0; i < files.length; i++) {+ try {+ const p = webUtils.getPathForFile(files[i])+ if (p) paths.push(p)+ } catch {+ /* ignore unreadable entries */+ }+ }++ if (paths.length > 0) {+ // Fire and forget to the main process.+ // The main process will broadcast the new state back to React.+ e.preventDefault()+ invoke('item:add-files', paths).catch(console.error)+ }+}, true)++const api = {+ /* Renderer -> Main */+ loadState: () => invoke('state:load'),+ setPinned: (id: string, pinned: boolean) => invoke('item:set-pinned', id, pinned),+ deleteItem: (id: string) => invoke('item:delete', id),+ clearItems: () => invoke('item:clear'),+ copyItem: (id: string) => invoke('item:copy', id),+ startDrag: (req: DragRequest) => send('item:start-drag', req),+ addFiles: (paths: string[]) => invoke('item:add-files', paths),+ removeSubitem: (req: import('../../shared/types').DragRequest) => invoke('item:remove-subitem', req),+ mergeItems: (sourceId: string, targetId: string) => invoke('item:merge', sourceId, targetId),+ splitItem: (req: import('../../shared/types').DragRequest) => invoke('item:split', req),+ updateSettings: (patch: Partial<InvokeResult<'settings:update'>>) =>+ invoke('settings:update', patch),+ setInteractive: (value: boolean) => invoke('window:set-interactive', value),+ setInternalDrag: (active: boolean) => { internalDrag = active },++ /* Main -> Renderer */+ onItems: (cb: (items: EventArgs<'state:items'>[0]) => void) => on('state:items', cb),+ onSettings: (cb: (settings: EventArgs<'state:settings'>[0]) => void) => on('state:settings', cb),+ onToggle: (cb: () => void) => on('window:toggle', cb),+ onDragEnd: (cb: () => void) => on('item:drag-end', cb),+ onInternalDrop: (cb: (pos: { x: number; y: number }) => void) => on('item:internal-drop', cb),++ /* Drag helpers */+ // (Handled natively by capturing drop event above)+}++// Validate that our implementation matches the shared contract.+const _bridge: EdgeApi = api+void _bridge++contextBridge.exposeInMainWorld('edge', api)diff --git a/electron/store/ItemStore.ts b/electron/store/ItemStore.tsnew file mode 100644index 0000000..302abd2--- /dev/null+++ b/electron/store/ItemStore.ts@@ -0,0 +1,420 @@+/**+ * In-memory + on-disk store for clipboard history.+ *+ * Responsibilities:+ * - Keep an ordered list (most recent first) of ClipboardItem.+ * - Deduplicate by content signature so re-copies bump `hitCount` instead of+ * adding a clone.+ * - Enforce a size cap, evicting the oldest *unpinned* items.+ * - Persist the index to JSON and image bytes to per-item PNG files.+ * - Convert internal items to the serializable DTO form for the renderer.+ */+import { existsSync, readFileSync, writeFileSync, rmSync } from 'node:fs'+import { join } from 'node:path'+import {+ type ClipboardItem,+ type ClipboardItemDto,+ type ItemData+} from '../../shared/types'+import { PATHS } from './paths'+import { createId } from './ids'++/** Stable, content-based key used for deduplication. */+function signature(data: ItemData): string {+ switch (data.kind) {+ case 'text':+ return `text|${data.text}`+ case 'image':+ return `image|${data.imageId}`+ case 'image-collection':+ return `image-collection|${data.images.map((i) => i.imageId).join(',')}`+ case 'files':+ return `files|${data.paths.join('\n')}`+ }+}++/** Maps a signature -> item id so dedup is O(1). */+interface Index {+ items: ClipboardItem[]+}++export class ItemStore {+ private items: ClipboardItem[] = []+ private sigToId = new Map<string, string>()++ /** Load persisted state from disk. Called once at startup. */+ load(): void {+ try {+ if (existsSync(PATHS.indexFile())) {+ const raw = JSON.parse(readFileSync(PATHS.indexFile(), 'utf8')) as Index+ if (Array.isArray(raw?.items)) {+ this.items = raw.items.filter((it) => it && it.data && typeof it.id === 'string')+ this.rebuildIndex()+ }+ }+ } catch {+ this.items = []+ this.sigToId.clear()+ }+ }++ private rebuildIndex(): void {+ this.sigToId.clear()+ for (const it of this.items) this.sigToId.set(signature(it.data), it.id)+ }++ /** Persist the current index to disk. Called after every mutation. */+ private persist(): void {+ try {+ writeFileSync(PATHS.indexFile(), JSON.stringify({ items: this.items } satisfies Index, null, 2), 'utf8')+ } catch {+ /* persistence failures are non-fatal; state stays in memory */+ }+ }++ /**+ * Enforce the size cap by evicting oldest *unpinned* items. Walks from the+ * tail (oldest) forward, skipping anything pinned so favorites survive.+ */+ private trim(limit: number): void {+ if (this.items.length <= limit) return+ const need = this.items.length - limit+ const survivors: ClipboardItem[] = []+ let stillNeed = need+ for (let i = this.items.length - 1; i >= 0; i--) {+ const it = this.items[i]+ if (stillNeed > 0 && !it.pinned) {+ this.sigToId.delete(signature(it.data))+ if (it.data.kind === 'image') this.removeImageFile(it.data.imageId)+ if (it.data.kind === 'image-collection') {+ it.data.images.forEach((img) => this.removeImageFile(img.imageId))+ }+ stillNeed--+ } else {+ survivors.unshift(it)+ }+ }+ this.items = survivors+ }++ /**+ * Add or refresh a piece of content.+ * Returns true if the list actually changed (so callers can decide to push).+ */+ add(data: ItemData, limit: number): boolean {+ const sig = signature(data)+ const existingId = this.sigToId.get(sig)+ const now = Date.now()++ if (existingId) {+ const idx = this.items.findIndex((it) => it.id === existingId)+ if (idx >= 0) {+ const it = this.items[idx]+ // Bump count and move to front (unless pinned keeps its own group).+ const updated: ClipboardItem = { ...it, hitCount: it.hitCount + 1, capturedAt: now }+ this.items.splice(idx, 1)+ this.items.unshift(updated)+ this.persist()+ return true+ }+ }++ const id = createId()+ const item: ClipboardItem = { id, data, capturedAt: now, hitCount: 1, pinned: false }+ this.items.unshift(item)+ this.sigToId.set(sig, id)+ if (data.kind === 'image') this.writeImageFile(data.imageId)+ this.trim(limit)+ this.persist()+ return true+ }++ setPinned(id: string, pinned: boolean): void {+ const it = this.items.find((x) => x.id === id)+ if (!it) return+ it.pinned = pinned+ this.persist()+ }++ delete(id: string): void {+ const idx = this.items.findIndex((x) => x.id === id)+ if (idx < 0) return+ const [removed] = this.items.splice(idx, 1)+ this.sigToId.delete(signature(removed.data))+ if (removed.data.kind === 'image') this.removeImageFile(removed.data.imageId)+ if (removed.data.kind === 'image-collection') {+ removed.data.images.forEach((img) => this.removeImageFile(img.imageId))+ }+ this.persist()+ }++ merge(sourceId: string, targetId: string): boolean {+ if (sourceId === targetId) return false+ const srcIdx = this.items.findIndex(x => x.id === sourceId)+ const tgtIdx = this.items.findIndex(x => x.id === targetId)+ if (srcIdx < 0 || tgtIdx < 0) return false++ const src = this.items[srcIdx]+ const tgt = this.items[tgtIdx]++ // Determine how to merge based on kinds+ // 1. Files + Files -> Files+ // 2. Image(s) + Image(s) -> Image Collection+ // Mixing files and images: fall back to Files (by converting images to paths? No, they don't have paths yet unless they are temp files. We'll just reject cross-type merges for now, or just merge if same type).++ let newData: ItemData | null = null++ const srcIsImage = src.data.kind === 'image' || src.data.kind === 'image-collection'+ const tgtIsImage = tgt.data.kind === 'image' || tgt.data.kind === 'image-collection'++ if (srcIsImage && tgtIsImage) {+ const srcImages = src.data.kind === 'image' ? [src.data] : src.data.images+ const tgtImages = tgt.data.kind === 'image' ? [tgt.data] : tgt.data.images+ // Filter out exact duplicate imageIds just in case+ const seen = new Set(tgtImages.map(i => i.imageId))+ const combined = [...tgtImages, ...srcImages.filter(i => !seen.has(i.imageId))]+ newData = { kind: 'image-collection', images: combined }+ } else if (src.data.kind === 'files' && tgt.data.kind === 'files') {+ const seen = new Set(tgt.data.paths)+ const combined = [...tgt.data.paths, ...src.data.paths.filter(p => !seen.has(p))]+ newData = { kind: 'files', paths: combined }+ }++ if (!newData) return false++ // Update target item+ this.sigToId.delete(signature(tgt.data))+ tgt.data = newData+ this.sigToId.set(signature(newData), tgt.id)+ tgt.capturedAt = Date.now() // bump time++ // Remove source item completely but DO NOT delete its underlying files/images+ // because they are now owned by the target!+ const [removed] = this.items.splice(srcIdx, 1)+ this.sigToId.delete(signature(removed.data))++ this.persist()+ return true+ }++ public removeSubitem(req: DragRequest): boolean {+ const sourceItem = this.get(req.id)+ if (!sourceItem) return false+ const sourceIndex = this.items.findIndex(i => i.id === req.id)+ if (sourceIndex === -1) return false++ if (sourceItem.data.kind === 'image-collection' && req.imageId) {+ const imgIdx = sourceItem.data.images.findIndex(i => i.imageId === req.imageId)+ if (imgIdx === -1) return false++ sourceItem.data.images.splice(imgIdx, 1)++ if (sourceItem.data.images.length === 1) {+ sourceItem.data = { kind: 'image', ...sourceItem.data.images[0] }+ } else if (sourceItem.data.images.length === 0) {+ this.items.splice(sourceIndex, 1)+ }+ this.rebuildIndex()+ this.persist()+ return true+ }++ if (req.paths && req.paths.length > 0 && sourceItem.data.kind === 'files') {+ const targetPaths = req.paths+ sourceItem.data.paths = sourceItem.data.paths.filter(p => !targetPaths.includes(p))++ if (sourceItem.data.paths.length === 0) {+ this.items.splice(sourceIndex, 1)+ }+ this.rebuildIndex()+ this.persist()+ return true+ }++ return false+ }++ public split(req: DragRequest): boolean {+ const sourceItem = this.get(req.id)+ if (!sourceItem) return false+ const sourceIndex = this.items.findIndex(i => i.id === req.id)+ if (sourceIndex === -1) return false++ // Splitting from an image collection+ if (sourceItem.data.kind === 'image-collection' && req.imageId) {+ const imgIdx = sourceItem.data.images.findIndex(i => i.imageId === req.imageId)+ if (imgIdx === -1) return false++ const targetImg = sourceItem.data.images[imgIdx]+ sourceItem.data.images.splice(imgIdx, 1)++ if (sourceItem.data.images.length === 1) {+ sourceItem.data = { kind: 'image', ...sourceItem.data.images[0] }+ } else if (sourceItem.data.images.length === 0) {+ this.items.splice(sourceIndex, 1)+ }++ const newItem: ClipboardItem = {+ id: createId(),+ capturedAt: Date.now(),+ hitCount: 1,+ pinned: false,+ data: { kind: 'image', imageId: targetImg.imageId, width: targetImg.width, height: targetImg.height }+ }+ this.items.splice(req.splitPlacement === 'after' ? sourceIndex + 1 : sourceIndex, 0, newItem)+ this.rebuildIndex()+ this.persist()+ return true+ }++ // Splitting from a file collection+ if (req.paths && req.paths.length > 0 && sourceItem.data.kind === 'files') {+ const sourcePaths = sourceItem.data.paths+ const targetPaths = req.paths++ sourceItem.data.paths = sourcePaths.filter(p => !targetPaths.includes(p))++ if (sourceItem.data.paths.length === 0) {+ this.items.splice(sourceIndex, 1)+ }++ const newItem: ClipboardItem = {+ id: createId(),+ capturedAt: Date.now(),+ hitCount: 1,+ pinned: false,+ data: { kind: 'files', paths: targetPaths }+ }+ this.items.splice(req.splitPlacement === 'after' ? sourceIndex + 1 : sourceIndex, 0, newItem)+ this.rebuildIndex()+ this.persist()+ return true+ }++ return false+ }++ clearUnpinned(): void {+ const kept: ClipboardItem[] = []+ for (const it of this.items) {+ if (it.pinned) kept.push(it)+ else {+ this.sigToId.delete(signature(it.data))+ if (it.data.kind === 'image') this.removeImageFile(it.data.imageId)+ if (it.data.kind === 'image-collection') {+ it.data.images.forEach((img) => this.removeImageFile(img.imageId))+ }+ }+ }+ this.items = kept+ this.persist()+ }++ get(id: string): ClipboardItem | undefined {+ return this.items.find((x) => x.id === id)+ }++ list(): readonly ClipboardItem[] {+ return this.items+ }++ /* ----------------------------- image files ----------------------------- */++ /** Read image bytes from disk as a data URL for the renderer. */+ imageToDataUrl(imageId: string): string | null {+ try {+ const buf = readFileSync(this.imagePath(imageId))+ return 'data:image/png;base64,' + buf.toString('base64')+ } catch {+ return null+ }+ }++ /**+ * Stage an image's bytes from a clipboard capture. The image was already+ * written to userData/images by the clipboard watcher (which has the raw+ * nativeImage); here we just no-op because the file already exists.+ * Kept for symmetry / future use.+ */+ private writeImageFile(_imageId: string): void {+ /* no-op: bytes already on disk from capture */+ }++ private imagePath(imageId: string): string {+ return join(PATHS.imagesDir(), `${imageId}.png`)+ }++ private removeImageFile(imageId: string): void {+ try {+ rmSync(this.imagePath(imageId), { force: true })+ } catch {+ /* ignore */+ }+ }++ /* ------------------------------- DTO ----------------------------------- */++ /** Snapshot the whole list as renderer-safe DTOs (images inlined). */+ toDto(): ClipboardItemDto[] {+ return this.items.map((it) => {+ if (it.data.kind === 'image') {+ const { kind, imageId, width, height, bytes } = it.data+ return {+ ...it,+ data: { kind, imageId, width, height, bytes, preview: this.imageToDataUrl(imageId) ?? '' }+ }+ }+ if (it.data.kind === 'image-collection') {+ const imagesWithPreviews = it.data.images.map((img) => ({+ ...img,+ preview: this.imageToDataUrl(img.imageId) ?? ''+ }))+ return {+ ...it,+ data: { kind: 'image-collection', images: imagesWithPreviews }+ }+ }+ if (it.data.kind === 'files') {+ // Generate inline previews for image files (first 4 only to cap size).+ const previews = it.data.paths+ .filter((p) => isImageExt(p))+ .slice(0, 4)+ .map((p) => fileToDataUrl(p))+ if (previews.some(Boolean)) {+ return { ...it, data: { ...it.data, previews } }+ }+ }+ return { ...it, data: it.data }+ })+ }++ /** Persist a brand-new image captured from the clipboard to its PNG file. */+ stageImageBytes(imageId: string, png: Buffer): void {+ try {+ writeFileSync(this.imagePath(imageId), png)+ } catch {+ /* ignore */+ }+ }+}++/** Check if a file path points to an image by extension. */+function isImageExt(p: string): boolean {+ return /\.(png|jpe?g|gif|webp|bmp|svg|avif|ico)$/i.test(p)+}++/** Read a file from disk as a data URL (used for image-file previews). */+function fileToDataUrl(p: string): string {+ try {+ const buf = readFileSync(p)+ const ext = p.split('.').pop()?.toLowerCase() ?? 'png'+ const mime = ext === 'svg' ? 'image/svg+xml'+ : ext === 'gif' ? 'image/gif'+ : ext === 'webp' ? 'image/webp'+ : ext === 'bmp' ? 'image/bmp'+ : 'image/png'+ return `data:${mime};base64,${buf.toString('base64')}`+ } catch {+ return ''+ }+}diff --git a/electron/store/ids.ts b/electron/store/ids.tsnew file mode 100644index 0000000..800eefc--- /dev/null+++ b/electron/store/ids.ts@@ -0,0 +1,9 @@+/**+ * Stable, dependency-free id generator for clipboard items.+ *+ * Combines a monotonic timestamp with random entropy — good enough for a+ * single-machine local store and avoids a uuid dependency.+ */+export function createId(): string {+ return `${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}`+}diff --git a/electron/store/paths.ts b/electron/store/paths.tsnew file mode 100644index 0000000..66c50c6--- /dev/null+++ b/electron/store/paths.ts@@ -0,0 +1,51 @@+/**+ * Centralized filesystem locations for persisted state.+ *+ * Everything lives under the OS userData directory so the app is fully portable+ * and self-cleaning. Image files are kept in their own folder so the JSON index+ * stays small and fast to read/write.+ */+import { mkdirSync } from 'node:fs'+import { join } from 'node:path'+import { app } from 'electron'++const root = () => app.getPath('userData')++export const PATHS = {+ /** userData root. */+ root,+ /** Directory holding one PNG per captured image item. */+ imagesDir: () => join(root(), 'images'),+ /** Path to the items index JSON. */+ indexFile: () => join(root(), 'items.json'),+ /** Path to the settings JSON. */+ settingsFile: () => join(root(), 'settings.json'),+ /** Scratch dir for temp files handed to native drag-out. */+ tempDir: () => join(root(), 'temp'),+ /** App icon (used by tray + native drag image). */+ icon: () => join(app.getAppPath(), 'resources', 'icon.png')+} as const++/** Idempotently create every directory the app needs. Safe to call repeatedly. */+export function ensureDirs(): void {+ for (const dir of [PATHS.imagesDir(), PATHS.tempDir()]) {+ mkdirSync(dir, { recursive: true })+ }+}++/** Remove old temp drag files left over from a previous session. */+export function cleanTemp(): void {+ // Best-effort; failures are non-fatal.+ try {+ const fs = require('node:fs') as typeof import('node:fs')+ for (const entry of fs.readdirSync(PATHS.tempDir())) {+ try {+ fs.rmSync(join(PATHS.tempDir(), entry), { force: true })+ } catch {+ /* ignore individual file errors */+ }+ }+ } catch {+ /* dir may not exist yet */+ }+}diff --git a/electron/store/settings.ts b/electron/store/settings.tsnew file mode 100644index 0000000..be2dd7d--- /dev/null+++ b/electron/store/settings.ts@@ -0,0 +1,49 @@+/**+ * Settings persistence.+ *+ * Settings are small (a single flat object) so a plain JSON file is plenty.+ * The store guards against partial/corrupt files by deep-merging onto the+ * defaults so a bad field never takes the whole app down.+ */+import { readFileSync, writeFileSync, existsSync } from 'node:fs'+import { DEFAULT_SETTINGS, type Settings } from '../../shared/types'+import { PATHS } from './paths'++let cache: Settings | null = null++function merge(base: Settings, patch: Partial<Settings>): Settings {+ const out = { ...base, ...patch } as Settings+ // Clamp the numeric slider into its valid range.+ out.hotZoneHeight = Math.min(0.6, Math.max(0.2, out.hotZoneHeight))+ out.historyLimit = Math.min(2000, Math.max(50, Math.round(out.historyLimit)))+ return out+}++export function loadSettings(): Settings {+ if (cache) return cache+ let file: Partial<Settings> = {}+ try {+ if (existsSync(PATHS.settingsFile())) {+ file = JSON.parse(readFileSync(PATHS.settingsFile(), 'utf8')) as Partial<Settings>+ }+ } catch {+ file = {}+ }+ cache = merge({ ...DEFAULT_SETTINGS }, file)+ return cache+}++export function saveSettings(patch: Partial<Settings>): Settings {+ const next = merge(loadSettings(), patch)+ cache = next+ try {+ writeFileSync(PATHS.settingsFile(), JSON.stringify(next, null, 2), 'utf8')+ } catch {+ /* non-fatal; settings stay in memory */+ }+ return next+}++export function resetSettingsCache(): void {+ cache = null+}diff --git a/index.html b/index.htmlnew file mode 100644index 0000000..ea59f8f--- /dev/null+++ b/index.html@@ -0,0 +1,14 @@+<!doctype html>+<html lang="en">+ <head>+ <meta charset="UTF-8" />+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />+ <!-- Prevent the page from showing any flash of content and block native text selection drag -->+ <meta http-equiv="Content-Security-Policy" content="default-src 'self'; img-src 'self' data: blob: edgelocal: http://localhost http://127.0.0.1; style-src 'self' 'unsafe-inline'; script-src 'self'; connect-src 'self' ws:" />+ <title>Edge-Drop</title>+ </head>+ <body>+ <div id="root"></div>+ <script type="module" src="/src/main.tsx"></script>+ </body>+</html>diff --git a/package-lock.json b/package-lock.jsonnew file mode 100644index 0000000..8b58293--- /dev/null+++ b/package-lock.json@@ -0,0 +1,2710 @@+{+ "name": "edge-drop",+ "version": "0.1.0",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "edge-drop",+ "version": "0.1.0",+ "license": "MIT",+ "dependencies": {+ "framer-motion": "^11.0.24",+ "react": "^18.2.0",+ "react-dom": "^18.2.0",+ "zustand": "^4.5.2"+ },+ "devDependencies": {+ "@types/node": "^20.11.30",+ "@types/react": "^18.2.73",+ "@types/react-dom": "^18.2.22",+ "@vitejs/plugin-react": "^4.2.1",+ "electron": "^30.0.0",+ "electron-vite": "^2.1.0",+ "typescript": "^5.4.3",+ "vite": "^5.2.6"+ }+ },+ "node_modules/@babel/code-frame": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz",+ "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-validator-identifier": "^7.29.7",+ "js-tokens": "^4.0.0",+ "picocolors": "^1.1.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/compat-data": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz",+ "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/core": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz",+ "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.29.7",+ "@babel/generator": "^7.29.7",+ "@babel/helper-compilation-targets": "^7.29.7",+ "@babel/helper-module-transforms": "^7.29.7",+ "@babel/helpers": "^7.29.7",+ "@babel/parser": "^7.29.7",+ "@babel/template": "^7.29.7",+ "@babel/traverse": "^7.29.7",+ "@babel/types": "^7.29.7",+ "@jridgewell/remapping": "^2.3.5",+ "convert-source-map": "^2.0.0",+ "debug": "^4.1.0",+ "gensync": "^1.0.0-beta.2",+ "json5": "^2.2.3",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/babel"+ }+ },+ "node_modules/@babel/generator": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.7.tgz",+ "integrity": "sha512-DkXD5OJQaAQIdZ1bt3UZdEnHAn9Imd3IVBdX03UFe+ony9Ojw5pzr9YVKGDY1jt+Gcn/FnGkNf8r+Vj5NOJWtQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.29.7",+ "@babel/types": "^7.29.7",+ "@jridgewell/gen-mapping": "^0.3.12",+ "@jridgewell/trace-mapping": "^0.3.28",+ "jsesc": "^3.0.2"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-compilation-targets": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz",+ "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/compat-data": "^7.29.7",+ "@babel/helper-validator-option": "^7.29.7",+ "browserslist": "^4.24.0",+ "lru-cache": "^5.1.1",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-globals": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz",+ "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-imports": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz",+ "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/traverse": "^7.29.7",+ "@babel/types": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-transforms": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz",+ "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-module-imports": "^7.29.7",+ "@babel/helper-validator-identifier": "^7.29.7",+ "@babel/traverse": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "node_modules/@babel/helper-plugin-utils": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz",+ "integrity": "sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-string-parser": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz",+ "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-identifier": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz",+ "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-option": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz",+ "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helpers": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.7.tgz",+ "integrity": "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/template": "^7.29.7",+ "@babel/types": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/parser": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.7.tgz",+ "integrity": "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.29.7"+ },+ "bin": {+ "parser": "bin/babel-parser.js"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/plugin-transform-arrow-functions": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.29.7.tgz",+ "integrity": "sha512-N7zArUXWzAMzm+/N0uPBeVB3Fam5lMxtUwMmDK5f/IBBS7a7p1qeUoxd/6CckXoxUdgsntq1Dh8xNW06maZbDQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "node_modules/@babel/plugin-transform-react-jsx-self": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.29.7.tgz",+ "integrity": "sha512-TL0hMc9xzy86VD31nUiwzd5otRAcyEPcsegCxolO0PvcXuH1v0kECe/UIznYFihpkvU5wg/jk4v0TTEFfm53fw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "node_modules/@babel/plugin-transform-react-jsx-source": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.29.7.tgz",+ "integrity": "sha512-06IyK09H3wi4cGbhDBwp5gUGo0IKtnYa8tyTiephirPCK6fbobVGiXMMI5zLQ4aKEYP3wZ3ArU44o+8KMrSG/Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "node_modules/@babel/template": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz",+ "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.29.7",+ "@babel/parser": "^7.29.7",+ "@babel/types": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/traverse": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.7.tgz",+ "integrity": "sha512-EhlfNQtZ+NK22w5BM61ciuiq1m58ed33Wr1Xan//ZRTy6hgjnwyCffRYwzsGXdASJSUJ1guZILsErh1eQcl+zw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.29.7",+ "@babel/generator": "^7.29.7",+ "@babel/helper-globals": "^7.29.7",+ "@babel/parser": "^7.29.7",+ "@babel/template": "^7.29.7",+ "@babel/types": "^7.29.7",+ "debug": "^4.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/types": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.7.tgz",+ "integrity": "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-string-parser": "^7.29.7",+ "@babel/helper-validator-identifier": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@electron/get": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/@electron/get/-/get-2.0.3.tgz",+ "integrity": "sha512-Qkzpg2s9GnVV2I2BjRksUi43U5e6+zaQMcjoJy0C+C5oxaKl+fmckGDQFtRpZpZV0NQekuZZ+tGz7EA9TVnQtQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "debug": "^4.1.1",+ "env-paths": "^2.2.0",+ "fs-extra": "^8.1.0",+ "got": "^11.8.5",+ "progress": "^2.0.3",+ "semver": "^6.2.0",+ "sumchecker": "^3.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "optionalDependencies": {+ "global-agent": "^3.0.0"+ }+ },+ "node_modules/@esbuild/aix-ppc64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz",+ "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/android-arm": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz",+ "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/android-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz",+ "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/android-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz",+ "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/darwin-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz",+ "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/darwin-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz",+ "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/freebsd-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz",+ "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/freebsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz",+ "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-arm": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz",+ "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz",+ "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-ia32": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz",+ "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-loong64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz",+ "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-mips64el": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz",+ "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-ppc64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz",+ "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-riscv64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz",+ "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-s390x": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz",+ "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz",+ "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/netbsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz",+ "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/openbsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz",+ "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/sunos-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz",+ "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/win32-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz",+ "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/win32-ia32": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz",+ "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/win32-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz",+ "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@jridgewell/gen-mapping": {+ "version": "0.3.13",+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.0",+ "@jridgewell/trace-mapping": "^0.3.24"+ }+ },+ "node_modules/@jridgewell/remapping": {+ "version": "2.3.5",+ "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",+ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.3.5",+ "@jridgewell/trace-mapping": "^0.3.24"+ }+ },+ "node_modules/@jridgewell/resolve-uri": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/sourcemap-codec": {+ "version": "1.5.5",+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@jridgewell/trace-mapping": {+ "version": "0.3.31",+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/resolve-uri": "^3.1.0",+ "@jridgewell/sourcemap-codec": "^1.4.14"+ }+ },+ "node_modules/@rolldown/pluginutils": {+ "version": "1.0.0-beta.27",+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz",+ "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@rollup/rollup-android-arm-eabi": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.62.2.tgz",+ "integrity": "sha512-6o7ZLZK+BeenkZCFNDXqpbjw9bD6nuWonvS/lwQJp7NoVVxm6p3qE7qQ5jGuBjiFsgvqjD8mZAU5oWxTmbOeOg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-android-arm64": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.62.2.tgz",+ "integrity": "sha512-BaH7BllCACHoH1LguOU56UItGfUWjujlO65kS9LAodViaN4bwIKd7oeW/ZHJ/4ljr/7MIiENnNy3HJ0zXv8Zkw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-darwin-arm64": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.62.2.tgz",+ "integrity": "sha512-v39RCCvj4He82I9sFmk+M1VZ0PLM9sfsLVikjfx2hYBNALhrrOR2D3JjQA6AhlaSOgcR+RzrKY7e1+bT6SUO/A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-darwin-x64": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.62.2.tgz",+ "integrity": "sha512-yl0y2vq3S3lHeuXhEdss6TWfKW8vkujImO12tn4ZkG/4oghr09LvdYm2RElVjokTQiUvDUGXLGsYeLqUMCKpGA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-arm64": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.62.2.tgz",+ "integrity": "sha512-tT4pvt4qXD+vEoezupCWi+a1F0vvDiksiHc+PxRlYTOH1I6/X4id9jPxTP+Fg+545euaFT1jJVs4CEdHZAU1vw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-x64": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.62.2.tgz",+ "integrity": "sha512-6nU5F2wCW+qvCBhTn1pdIU3bzsIoF7EUwsCDRxilWGprQR6yd508YnH9+OKFCwpfS8pjZqDUmnCAr7exax0XCg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.62.2.tgz",+ "integrity": "sha512-n1GJHPOvpIfhi3TmrCeh6S6URt9BFCt0KQE3qvexyGCTAKpR4Lg+eWvNZEqu7epxwus/8ElT3hacYEucm49SZg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.62.2.tgz",+ "integrity": "sha512-JqgflS8wEB+UXV/vS1RpRbifGBeN4D5lz8D8oOFbFZw4vedvdOgCFAjfBmIMdW3yL10XpQQ0Ambepw6MXrhOnA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-gnu": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.62.2.tgz",+ "integrity": "sha512-wnFJkogWvN4jm/hQRF2UBaeUmk20j5+DmHvoyWii2b8HJDyvz1MF2OU/6ynXt2KR63rbZLWkFpoytpdc/yBuSA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-musl": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.62.2.tgz",+ "integrity": "sha512-HVu2bp0zhvJ8xHEV9+UUs7S90VadmBSY3LcIMvozbPo4AuMGDWlz3ymHLHZPX4hR67TKTt8Qp5PJ5RBg/i+RMQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-gnu": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.62.2.tgz",+ "integrity": "sha512-mQqqAV8QaoSgr9I2fKDLY2BAVvmKjWoGiu/cSYQonsLvtqwEn1E4QYfnCOcp5zoEqNhsDYin1s6jx/VJmrxlZg==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-musl": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.62.2.tgz",+ "integrity": "sha512-IxKLoxCQ2IWi6bT2akyDUBGsOImDKB+sPp4EsTmwFQ/fMwpCKm8uLSSgP/Kx/QYUgKis6SEZ5/Nlhup0DIA0PQ==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.62.2.tgz",+ "integrity": "sha512-Mk5ha2RQSgyFfmYYLkBpPnUk8D8FriBxesO1u9O75X0mHgXL1UQcH5Itl2lurWL2tj0RxV9b9tJgipac0hRY9A==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-musl": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.62.2.tgz",+ "integrity": "sha512-CjvEnqJL/0/TQ3TXX3OPIJ/kmBellrWd4heXUmHeJlTnmwjKpSJzoehLaL6Xk0ZnMHBu9dZuFADNOrtjF4v+2w==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.62.2.tgz",+ "integrity": "sha512-1SiZbzwdkaDURsew/tSOrooKiYy7EQGT6m8ufavAi9NEyQb/6VuIxFXAL1fqa4iZe3g4NbNk4P7J32z2tw5Mgg==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-musl": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.62.2.tgz",+ "integrity": "sha512-nQts12zJ3NQRoE6uYljOH89v7szzLDvG2JD/vsX+vGXU8w/At1GowTZ5/7qeFQ8m7L55rpR8Okugnuo5bgjy2Q==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-s390x-gnu": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.62.2.tgz",+ "integrity": "sha512-E9/ll019jhPIJgpzfZoIkBGhcz+kKNgVWYRY0zr9srBdPPFVpvOKW8VaJKUbeK+eZXyQF9ltME+Kk6affeaPgg==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-gnu": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.62.2.tgz",+ "integrity": "sha512-5BqxR/pshjey51iliyzTD5Xi3EN0aLmQ2lZ3lvefVV9c82BvrLo2/6OT55iifpWBufs6kdwWbuOKS841DrmK9A==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-musl": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.62.2.tgz",+ "integrity": "sha512-uNN83XxQrRAh/w0/pmAfibcwyb6YWt4gP+dpnQKPVJshAloQ785ii8CT8ZCIxkGg9opVsvAlGhFitSm6D1Jjpg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-openbsd-x64": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.62.2.tgz",+ "integrity": "sha512-srjEIxSH3LRnJN6THczDHWQplqEMFiAJrTab0msUryh9kwNpkICf3Ea6q6MN/2cZwRFUNx5w+h6Hpi4QuHS6Zg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ]+ },+ "node_modules/@rollup/rollup-openharmony-arm64": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.62.2.tgz",+ "integrity": "sha512-8hOJnxgbyObnCm5AlRA3A931xX19xq80RjVTKgJOvEKWqJruP/Uf12IbAOaDjjEXYRewwHLfmF0YRIdK3OwKWA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ]+ },+ "node_modules/@rollup/rollup-win32-arm64-msvc": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.62.2.tgz",+ "integrity": "sha512-mmF4AY1i0hG/bLWUctUq59gtmgaSIRa3cu/A3JFRp/sCNEme2bgDEiDS22P9FbnJB8NJNF4jPJiSP5RHQpUTDg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-ia32-msvc": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.62.2.tgz",+ "integrity": "sha512-DZgkknc6jhHrk46V25vbAM0zZkyP0nSDkJB8/dRkLTxv470dOmWDqGoEJl/9A0dFfS7yE3REOwNDxpHwSLSt0Q==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-gnu": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.62.2.tgz",+ "integrity": "sha512-T6xr6ucWSFto+VGajA8YH26LdpHRuP4YLHEKAtCWvJDOlnmWcDZVCI2Jmjr+IFHDlt2zRaTAKE4tfjTaWLgJBg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-msvc": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.62.2.tgz",+ "integrity": "sha512-BfzEnDJOt9T8M989/lA37EcJgat01wLRnoi5dQf3QzOH7jzpqTAzdDbVfRljVr5r+jzKqpbHeyOfAaXxAd0PAA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@sindresorhus/is": {+ "version": "4.6.0",+ "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz",+ "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sindresorhus/is?sponsor=1"+ }+ },+ "node_modules/@szmarczak/http-timer": {+ "version": "4.0.6",+ "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz",+ "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "defer-to-connect": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/@types/babel__core": {+ "version": "7.20.5",+ "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",+ "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.20.7",+ "@babel/types": "^7.20.7",+ "@types/babel__generator": "*",+ "@types/babel__template": "*",+ "@types/babel__traverse": "*"+ }+ },+ "node_modules/@types/babel__generator": {+ "version": "7.27.0",+ "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz",+ "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.0.0"+ }+ },+ "node_modules/@types/babel__template": {+ "version": "7.4.4",+ "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",+ "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.1.0",+ "@babel/types": "^7.0.0"+ }+ },+ "node_modules/@types/babel__traverse": {+ "version": "7.28.0",+ "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz",+ "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.28.2"+ }+ },+ "node_modules/@types/cacheable-request": {+ "version": "6.0.3",+ "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz",+ "integrity": "sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/http-cache-semantics": "*",+ "@types/keyv": "^3.1.4",+ "@types/node": "*",+ "@types/responselike": "^1.0.0"+ }+ },+ "node_modules/@types/estree": {+ "version": "1.0.9",+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz",+ "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/http-cache-semantics": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz",+ "integrity": "sha512-L3LgimLHXtGkWikKnsPg0/VFx9OGZaC+eN1u4r+OB1XRqH3meBIAVC2zr1WdMH+RHmnRkqliQAOHNJ/E0j/e0Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/keyv": {+ "version": "3.1.4",+ "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz",+ "integrity": "sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*"+ }+ },+ "node_modules/@types/node": {+ "version": "20.19.43",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.43.tgz",+ "integrity": "sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "undici-types": "~6.21.0"+ }+ },+ "node_modules/@types/prop-types": {+ "version": "15.7.15",+ "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz",+ "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==",+ "devOptional": true,+ "license": "MIT"+ },+ "node_modules/@types/react": {+ "version": "18.3.31",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.31.tgz",+ "integrity": "sha512-vfEqpXTvwT91yhmwdfouStN2hSKwTvyRs8qpLfADyrq/kxDw0hZM7Wk9Ug1FELj8hIby+S/+kQCSRFF32nv2Qw==",+ "devOptional": true,+ "license": "MIT",+ "dependencies": {+ "@types/prop-types": "*",+ "csstype": "^3.2.2"+ }+ },+ "node_modules/@types/react-dom": {+ "version": "18.3.7",+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz",+ "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "^18.0.0"+ }+ },+ "node_modules/@types/responselike": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.3.tgz",+ "integrity": "sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*"+ }+ },+ "node_modules/@types/yauzl": {+ "version": "2.10.3",+ "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz",+ "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@types/node": "*"+ }+ },+ "node_modules/@vitejs/plugin-react": {+ "version": "4.7.0",+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz",+ "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/core": "^7.28.0",+ "@babel/plugin-transform-react-jsx-self": "^7.27.1",+ "@babel/plugin-transform-react-jsx-source": "^7.27.1",+ "@rolldown/pluginutils": "1.0.0-beta.27",+ "@types/babel__core": "^7.20.5",+ "react-refresh": "^0.17.0"+ },+ "engines": {+ "node": "^14.18.0 || >=16.0.0"+ },+ "peerDependencies": {+ "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"+ }+ },+ "node_modules/baseline-browser-mapping": {+ "version": "2.10.40",+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.40.tgz",+ "integrity": "sha512-BSSLZ9/Cjjv7Gtj5B68ZzXcXUg8iOf3fme+FCuh8rC/Go+Kmh8cox7M3A8dolou16s64QjLPOSdngh7GxXvkSw==",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "baseline-browser-mapping": "dist/cli.cjs"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/boolean": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz",+ "integrity": "sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==",+ "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/browserslist": {+ "version": "4.28.4",+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.4.tgz",+ "integrity": "sha512-MTc8i/x9jBQd1iMw2CFGS+rwMa07eYjLR0CCTLDACl9xhxy+nIs3KeML/biicXtk9JrZ6dnnTatmc7ErPXIxqw==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/browserslist"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "baseline-browser-mapping": "^2.10.38",+ "caniuse-lite": "^1.0.30001799",+ "electron-to-chromium": "^1.5.376",+ "node-releases": "^2.0.48",+ "update-browserslist-db": "^1.2.3"+ },+ "bin": {+ "browserslist": "cli.js"+ },+ "engines": {+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"+ }+ },+ "node_modules/buffer-crc32": {+ "version": "0.2.13",+ "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz",+ "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "*"+ }+ },+ "node_modules/cac": {+ "version": "6.7.14",+ "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz",+ "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/cacheable-lookup": {+ "version": "5.0.4",+ "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz",+ "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10.6.0"+ }+ },+ "node_modules/cacheable-request": {+ "version": "7.0.4",+ "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.4.tgz",+ "integrity": "sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "clone-response": "^1.0.2",+ "get-stream": "^5.1.0",+ "http-cache-semantics": "^4.0.0",+ "keyv": "^4.0.0",+ "lowercase-keys": "^2.0.0",+ "normalize-url": "^6.0.1",+ "responselike": "^2.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/caniuse-lite": {+ "version": "1.0.30001799",+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001799.tgz",+ "integrity": "sha512-hG1bReV+OUU+MOqK4t/ZWI0tZOyz3rqS9XuhOUz1cIcbwBKjOyJEJuw9ER5JuNyqxNk8u/JUVbGibBOL1yrjFw==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "CC-BY-4.0"+ },+ "node_modules/clone-response": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz",+ "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mimic-response": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/convert-source-map": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/csstype": {+ "version": "3.2.3",+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",+ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",+ "devOptional": true,+ "license": "MIT"+ },+ "node_modules/debug": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.3"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "node_modules/decompress-response": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",+ "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mimic-response": "^3.1.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/decompress-response/node_modules/mimic-response": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz",+ "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/defer-to-connect": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz",+ "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/define-data-property": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",+ "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "es-define-property": "^1.0.0",+ "es-errors": "^1.3.0",+ "gopd": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/define-properties": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz",+ "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "define-data-property": "^1.0.1",+ "has-property-descriptors": "^1.0.0",+ "object-keys": "^1.1.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/detect-node": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz",+ "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/electron": {+ "version": "30.5.1",+ "resolved": "https://registry.npmjs.org/electron/-/electron-30.5.1.tgz",+ "integrity": "sha512-AhL7+mZ8Lg14iaNfoYTkXQ2qee8mmsQyllKdqxlpv/zrKgfxz6jNVtcRRbQtLxtF8yzcImWdfTQROpYiPumdbw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "dependencies": {+ "@electron/get": "^2.0.0",+ "@types/node": "^20.9.0",+ "extract-zip": "^2.0.1"+ },+ "bin": {+ "electron": "cli.js"+ },+ "engines": {+ "node": ">= 12.20.55"+ }+ },+ "node_modules/electron-to-chromium": {+ "version": "1.5.380",+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.380.tgz",+ "integrity": "sha512-W6d5AbuEoRayO447cqrg6lKJIlscgRnnxOZl/08kfV71BQDoEBC7Wwis68z87LjyK6f4kWyTaubuDbhHKrZkbA==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/electron-vite": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/electron-vite/-/electron-vite-2.3.0.tgz",+ "integrity": "sha512-lsN2FymgJlp4k6MrcsphGqZQ9fKRdJKasoaiwIrAewN1tapYI/KINLdfEL7n10LuF0pPSNf/IqjzZbB5VINctg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/core": "^7.24.7",+ "@babel/plugin-transform-arrow-functions": "^7.24.7",+ "cac": "^6.7.14",+ "esbuild": "^0.21.5",+ "magic-string": "^0.30.10",+ "picocolors": "^1.0.1"+ },+ "bin": {+ "electron-vite": "bin/electron-vite.js"+ },+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ },+ "peerDependencies": {+ "@swc/core": "^1.0.0",+ "vite": "^4.0.0 || ^5.0.0"+ },+ "peerDependenciesMeta": {+ "@swc/core": {+ "optional": true+ }+ }+ },+ "node_modules/end-of-stream": {+ "version": "1.4.5",+ "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz",+ "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "once": "^1.4.0"+ }+ },+ "node_modules/env-paths": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",+ "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/es-define-property": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-errors": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es6-error": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz",+ "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/esbuild": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz",+ "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=12"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.21.5",+ "@esbuild/android-arm": "0.21.5",+ "@esbuild/android-arm64": "0.21.5",+ "@esbuild/android-x64": "0.21.5",+ "@esbuild/darwin-arm64": "0.21.5",+ "@esbuild/darwin-x64": "0.21.5",+ "@esbuild/freebsd-arm64": "0.21.5",+ "@esbuild/freebsd-x64": "0.21.5",+ "@esbuild/linux-arm": "0.21.5",+ "@esbuild/linux-arm64": "0.21.5",+ "@esbuild/linux-ia32": "0.21.5",+ "@esbuild/linux-loong64": "0.21.5",+ "@esbuild/linux-mips64el": "0.21.5",+ "@esbuild/linux-ppc64": "0.21.5",+ "@esbuild/linux-riscv64": "0.21.5",+ "@esbuild/linux-s390x": "0.21.5",+ "@esbuild/linux-x64": "0.21.5",+ "@esbuild/netbsd-x64": "0.21.5",+ "@esbuild/openbsd-x64": "0.21.5",+ "@esbuild/sunos-x64": "0.21.5",+ "@esbuild/win32-arm64": "0.21.5",+ "@esbuild/win32-ia32": "0.21.5",+ "@esbuild/win32-x64": "0.21.5"+ }+ },+ "node_modules/escalade": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/escape-string-regexp": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/extract-zip": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz",+ "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "debug": "^4.1.1",+ "get-stream": "^5.1.0",+ "yauzl": "^2.10.0"+ },+ "bin": {+ "extract-zip": "cli.js"+ },+ "engines": {+ "node": ">= 10.17.0"+ },+ "optionalDependencies": {+ "@types/yauzl": "^2.9.1"+ }+ },+ "node_modules/fd-slicer": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",+ "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "pend": "~1.2.0"+ }+ },+ "node_modules/framer-motion": {+ "version": "11.18.2",+ "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.18.2.tgz",+ "integrity": "sha512-5F5Och7wrvtLVElIpclDT0CBzMVg3dL22B64aZwHtsIY8RB4mXICLrkajK4G9R+ieSAGcgrLeae2SeUTg2pr6w==",+ "license": "MIT",+ "dependencies": {+ "motion-dom": "^11.18.1",+ "motion-utils": "^11.18.1",+ "tslib": "^2.4.0"+ },+ "peerDependencies": {+ "@emotion/is-prop-valid": "*",+ "react": "^18.0.0 || ^19.0.0",+ "react-dom": "^18.0.0 || ^19.0.0"+ },+ "peerDependenciesMeta": {+ "@emotion/is-prop-valid": {+ "optional": true+ },+ "react": {+ "optional": true+ },+ "react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/fs-extra": {+ "version": "8.1.0",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz",+ "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "graceful-fs": "^4.2.0",+ "jsonfile": "^4.0.0",+ "universalify": "^0.1.0"+ },+ "engines": {+ "node": ">=6 <7 || >=8"+ }+ },+ "node_modules/fsevents": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"+ }+ },+ "node_modules/gensync": {+ "version": "1.0.0-beta.2",+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/get-stream": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz",+ "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "pump": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/global-agent": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/global-agent/-/global-agent-3.0.0.tgz",+ "integrity": "sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==",+ "dev": true,+ "license": "BSD-3-Clause",+ "optional": true,+ "dependencies": {+ "boolean": "^3.0.1",+ "es6-error": "^4.1.1",+ "matcher": "^3.0.0",+ "roarr": "^2.15.3",+ "semver": "^7.3.2",+ "serialize-error": "^7.0.1"+ },+ "engines": {+ "node": ">=10.0"+ }+ },+ "node_modules/global-agent/node_modules/semver": {+ "version": "7.8.5",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",+ "dev": true,+ "license": "ISC",+ "optional": true,+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/globalthis": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz",+ "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "define-properties": "^1.2.1",+ "gopd": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/gopd": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/got": {+ "version": "11.8.6",+ "resolved": "https://registry.npmjs.org/got/-/got-11.8.6.tgz",+ "integrity": "sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@sindresorhus/is": "^4.0.0",+ "@szmarczak/http-timer": "^4.0.5",+ "@types/cacheable-request": "^6.0.1",+ "@types/responselike": "^1.0.0",+ "cacheable-lookup": "^5.0.3",+ "cacheable-request": "^7.0.2",+ "decompress-response": "^6.0.0",+ "http2-wrapper": "^1.0.0-beta.5.2",+ "lowercase-keys": "^2.0.0",+ "p-cancelable": "^2.0.0",+ "responselike": "^2.0.0"+ },+ "engines": {+ "node": ">=10.19.0"+ },+ "funding": {+ "url": "https://github.com/sindresorhus/got?sponsor=1"+ }+ },+ "node_modules/graceful-fs": {+ "version": "4.2.11",+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",+ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/has-property-descriptors": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",+ "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "es-define-property": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/http-cache-semantics": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz",+ "integrity": "sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==",+ "dev": true,+ "license": "BSD-2-Clause"+ },+ "node_modules/http2-wrapper": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz",+ "integrity": "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "quick-lru": "^5.1.1",+ "resolve-alpn": "^1.0.0"+ },+ "engines": {+ "node": ">=10.19.0"+ }+ },+ "node_modules/js-tokens": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",+ "license": "MIT"+ },+ "node_modules/jsesc": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "jsesc": "bin/jsesc"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/json-buffer": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/json-stringify-safe": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",+ "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==",+ "dev": true,+ "license": "ISC",+ "optional": true+ },+ "node_modules/json5": {+ "version": "2.2.3",+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "json5": "lib/cli.js"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/jsonfile": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",+ "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==",+ "dev": true,+ "license": "MIT",+ "optionalDependencies": {+ "graceful-fs": "^4.1.6"+ }+ },+ "node_modules/keyv": {+ "version": "4.5.4",+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",+ "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "json-buffer": "3.0.1"+ }+ },+ "node_modules/loose-envify": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",+ "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",+ "license": "MIT",+ "dependencies": {+ "js-tokens": "^3.0.0 || ^4.0.0"+ },+ "bin": {+ "loose-envify": "cli.js"+ }+ },+ "node_modules/lowercase-keys": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz",+ "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/lru-cache": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "yallist": "^3.0.2"+ }+ },+ "node_modules/magic-string": {+ "version": "0.30.21",+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",+ "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.5"+ }+ },+ "node_modules/matcher": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz",+ "integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "escape-string-regexp": "^4.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/mimic-response": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz",+ "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/motion-dom": {+ "version": "11.18.1",+ "resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-11.18.1.tgz",+ "integrity": "sha512-g76KvA001z+atjfxczdRtw/RXOM3OMSdd1f4DL77qCTF/+avrRJiawSG4yDibEQ215sr9kpinSlX2pCTJ9zbhw==",+ "license": "MIT",+ "dependencies": {+ "motion-utils": "^11.18.1"+ }+ },+ "node_modules/motion-utils": {+ "version": "11.18.1",+ "resolved": "https://registry.npmjs.org/motion-utils/-/motion-utils-11.18.1.tgz",+ "integrity": "sha512-49Kt+HKjtbJKLtgO/LKj9Ld+6vw9BjH5d9sc40R/kVyH8GLAXgT42M2NnuPcJNuA3s9ZfZBUcwIgpmZWGEE+hA==",+ "license": "MIT"+ },+ "node_modules/ms": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/nanoid": {+ "version": "3.3.15",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.15.tgz",+ "integrity": "sha512-y7Wygv/7mEOvxTuEQDB8StXdMRBWf1kR/tlhAzBRUFkB2jfcLOAxO/SHmOO2zgz1pVgK29/kyupn059/bCHdjA==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }+ },+ "node_modules/node-releases": {+ "version": "2.0.50",+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.50.tgz",+ "integrity": "sha512-J6l92tKHX6w8Jy5nO1Vuc01NoIiRGi/d6qBKVxh+IQ8Cr3b6HbVNfKiF8ZpFKufTwpwxMmce2W3iQZ861ZRyTg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/normalize-url": {+ "version": "6.1.0",+ "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz",+ "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/object-keys": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",+ "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/once": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "wrappy": "1"+ }+ },+ "node_modules/p-cancelable": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz",+ "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/pend": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",+ "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/picocolors": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/postcss": {+ "version": "8.5.15",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz",+ "integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/postcss"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "nanoid": "^3.3.12",+ "picocolors": "^1.1.1",+ "source-map-js": "^1.2.1"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "node_modules/progress": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz",+ "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/pump": {+ "version": "3.0.4",+ "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.4.tgz",+ "integrity": "sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "end-of-stream": "^1.1.0",+ "once": "^1.3.1"+ }+ },+ "node_modules/quick-lru": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz",+ "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/react": {+ "version": "18.3.1",+ "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",+ "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",+ "license": "MIT",+ "dependencies": {+ "loose-envify": "^1.1.0"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/react-dom": {+ "version": "18.3.1",+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",+ "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",+ "license": "MIT",+ "dependencies": {+ "loose-envify": "^1.1.0",+ "scheduler": "^0.23.2"+ },+ "peerDependencies": {+ "react": "^18.3.1"+ }+ },+ "node_modules/react-refresh": {+ "version": "0.17.0",+ "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz",+ "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/resolve-alpn": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz",+ "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/responselike": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz",+ "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "lowercase-keys": "^2.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/roarr": {+ "version": "2.15.4",+ "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz",+ "integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==",+ "dev": true,+ "license": "BSD-3-Clause",+ "optional": true,+ "dependencies": {+ "boolean": "^3.0.1",+ "detect-node": "^2.0.4",+ "globalthis": "^1.0.1",+ "json-stringify-safe": "^5.0.1",+ "semver-compare": "^1.0.0",+ "sprintf-js": "^1.1.2"+ },+ "engines": {+ "node": ">=8.0"+ }+ },+ "node_modules/rollup": {+ "version": "4.62.2",+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.62.2.tgz",+ "integrity": "sha512-RFnrW4lhXA3s3eqHDZvN654g8OTjzRfqpIRJYczCGB6HzphckVAi/Qh4tbPUbRuDi7s1Llv8g/NspLkttY3gTA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "1.0.9"+ },+ "bin": {+ "rollup": "dist/bin/rollup"+ },+ "engines": {+ "node": ">=18.0.0",+ "npm": ">=8.0.0"+ },+ "optionalDependencies": {+ "@rollup/rollup-android-arm-eabi": "4.62.2",+ "@rollup/rollup-android-arm64": "4.62.2",+ "@rollup/rollup-darwin-arm64": "4.62.2",+ "@rollup/rollup-darwin-x64": "4.62.2",+ "@rollup/rollup-freebsd-arm64": "4.62.2",+ "@rollup/rollup-freebsd-x64": "4.62.2",+ "@rollup/rollup-linux-arm-gnueabihf": "4.62.2",+ "@rollup/rollup-linux-arm-musleabihf": "4.62.2",+ "@rollup/rollup-linux-arm64-gnu": "4.62.2",+ "@rollup/rollup-linux-arm64-musl": "4.62.2",+ "@rollup/rollup-linux-loong64-gnu": "4.62.2",+ "@rollup/rollup-linux-loong64-musl": "4.62.2",+ "@rollup/rollup-linux-ppc64-gnu": "4.62.2",+ "@rollup/rollup-linux-ppc64-musl": "4.62.2",+ "@rollup/rollup-linux-riscv64-gnu": "4.62.2",+ "@rollup/rollup-linux-riscv64-musl": "4.62.2",+ "@rollup/rollup-linux-s390x-gnu": "4.62.2",+ "@rollup/rollup-linux-x64-gnu": "4.62.2",+ "@rollup/rollup-linux-x64-musl": "4.62.2",+ "@rollup/rollup-openbsd-x64": "4.62.2",+ "@rollup/rollup-openharmony-arm64": "4.62.2",+ "@rollup/rollup-win32-arm64-msvc": "4.62.2",+ "@rollup/rollup-win32-ia32-msvc": "4.62.2",+ "@rollup/rollup-win32-x64-gnu": "4.62.2",+ "@rollup/rollup-win32-x64-msvc": "4.62.2",+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/scheduler": {+ "version": "0.23.2",+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",+ "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",+ "license": "MIT",+ "dependencies": {+ "loose-envify": "^1.1.0"+ }+ },+ "node_modules/semver": {+ "version": "6.3.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ }+ },+ "node_modules/semver-compare": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz",+ "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/serialize-error": {+ "version": "7.0.1",+ "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz",+ "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "type-fest": "^0.13.1"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/source-map-js": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",+ "dev": true,+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/sprintf-js": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz",+ "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==",+ "dev": true,+ "license": "BSD-3-Clause",+ "optional": true+ },+ "node_modules/sumchecker": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz",+ "integrity": "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "debug": "^4.1.0"+ },+ "engines": {+ "node": ">= 8.0"+ }+ },+ "node_modules/tslib": {+ "version": "2.8.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",+ "license": "0BSD"+ },+ "node_modules/type-fest": {+ "version": "0.13.1",+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz",+ "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==",+ "dev": true,+ "license": "(MIT OR CC0-1.0)",+ "optional": true,+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/typescript": {+ "version": "5.9.3",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"+ },+ "engines": {+ "node": ">=14.17"+ }+ },+ "node_modules/undici-types": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",+ "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/universalify": {+ "version": "0.1.2",+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",+ "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 4.0.0"+ }+ },+ "node_modules/update-browserslist-db": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz",+ "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/browserslist"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "escalade": "^3.2.0",+ "picocolors": "^1.1.1"+ },+ "bin": {+ "update-browserslist-db": "cli.js"+ },+ "peerDependencies": {+ "browserslist": ">= 4.21.0"+ }+ },+ "node_modules/use-sync-external-store": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz",+ "integrity": "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==",+ "license": "MIT",+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ }+ },+ "node_modules/vite": {+ "version": "5.4.21",+ "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz",+ "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "esbuild": "^0.21.3",+ "postcss": "^8.4.43",+ "rollup": "^4.20.0"+ },+ "bin": {+ "vite": "bin/vite.js"+ },+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ },+ "funding": {+ "url": "https://github.com/vitejs/vite?sponsor=1"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ },+ "peerDependencies": {+ "@types/node": "^18.0.0 || >=20.0.0",+ "less": "*",+ "lightningcss": "^1.21.0",+ "sass": "*",+ "sass-embedded": "*",+ "stylus": "*",+ "sugarss": "*",+ "terser": "^5.4.0"+ },+ "peerDependenciesMeta": {+ "@types/node": {+ "optional": true+ },+ "less": {+ "optional": true+ },+ "lightningcss": {+ "optional": true+ },+ "sass": {+ "optional": true+ },+ "sass-embedded": {+ "optional": true+ },+ "stylus": {+ "optional": true+ },+ "sugarss": {+ "optional": true+ },+ "terser": {+ "optional": true+ }+ }+ },+ "node_modules/wrappy": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/yallist": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/yauzl": {+ "version": "2.10.0",+ "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",+ "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "buffer-crc32": "~0.2.3",+ "fd-slicer": "~1.1.0"+ }+ },+ "node_modules/zustand": {+ "version": "4.5.7",+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.5.7.tgz",+ "integrity": "sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==",+ "license": "MIT",+ "dependencies": {+ "use-sync-external-store": "^1.2.2"+ },+ "engines": {+ "node": ">=12.7.0"+ },+ "peerDependencies": {+ "@types/react": ">=16.8",+ "immer": ">=9.0.6",+ "react": ">=16.8"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "immer": {+ "optional": true+ },+ "react": {+ "optional": true+ }+ }+ }+ }+}diff --git a/package.json b/package.jsonnew file mode 100644index 0000000..ed0b022--- /dev/null+++ b/package.json@@ -0,0 +1,34 @@+{+ "name": "edge-drop",+ "version": "0.1.0",+ "description": "Edge-Drop — a clipboard manager that lives on the left edge of your screen and expands on hover.",+ "author": "Edge-Drop",+ "license": "MIT",+ "private": true,+ "main": "out/main/index.js",+ "type": "module",+ "scripts": {+ "dev": "electron-vite dev",+ "build": "electron-vite build",+ "preview": "electron-vite preview",+ "typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false",+ "typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false",+ "typecheck": "npm run typecheck:node && npm run typecheck:web"+ },+ "devDependencies": {+ "@types/node": "^20.11.30",+ "@types/react": "^18.2.73",+ "@types/react-dom": "^18.2.22",+ "@vitejs/plugin-react": "^4.2.1",+ "electron": "^30.0.0",+ "electron-vite": "^2.1.0",+ "typescript": "^5.4.3",+ "vite": "^5.2.6"+ },+ "dependencies": {+ "framer-motion": "^11.0.24",+ "react": "^18.2.0",+ "react-dom": "^18.2.0",+ "zustand": "^4.5.2"+ }+}diff --git a/resources/icon.png b/resources/icon.pngnew file mode 100644index 0000000..08cd6f2Binary files /dev/null and b/resources/icon.png differdiff --git a/shared/bridge.ts b/shared/bridge.tsnew file mode 100644index 0000000..62ca186--- /dev/null+++ b/shared/bridge.ts@@ -0,0 +1,37 @@+/**+ * Type definition for the preload bridge API surface.+ *+ * Both the preload (implements) and renderer (consumes) import this so the+ * contract lives in one place. The actual implementation lives in the preload;+ * the renderer only ever sees `window.edge` typed as this interface.+ */+import type { Settings } from './types'+import type { DragRequest } from './types'++export interface EdgeApi {+ /* Renderer -> Main */+ loadState: () => Promise<{ items: import('./types').ClipboardItemDto[]; settings: Settings }>+ setPinned: (id: string, pinned: boolean) => Promise<import('./types').ClipboardItemDto[]>+ deleteItem: (id: string) => Promise<import('./types').ClipboardItemDto[]>+ clearItems: () => Promise<import('./types').ClipboardItemDto[]>+ removeSubitem: (req: DragRequest) => Promise<boolean>+ copyItem: (id: string) => Promise<boolean>+ /**+ * Begin a native OS drag-out. Fire-and-forget: must be called synchronously+ * from the DOM `dragstart` event, and main calls `event.sender.startDrag`.+ */+ startDrag: (req: DragRequest) => void+ addFiles: (paths: string[]) => Promise<import('./types').ClipboardItemDto[]>+ mergeItems: (sourceId: string, targetId: string) => Promise<boolean>+ splitItem: (req: import('./types').DragRequest) => Promise<boolean>+ updateSettings: (patch: Partial<Settings>) => Promise<Settings>+ setInteractive: (value: boolean) => Promise<void>+ setInternalDrag: (active: boolean) => void++ /* Main -> Renderer */+ onItems: (cb: (items: import('./types').ClipboardItemDto[]) => void) => () => void+ onSettings: (cb: (settings: Settings) => void) => () => void+ onToggle: (cb: () => void) => () => void+ onDragEnd: (cb: () => void) => () => void+ onInternalDrop: (cb: (pos: { x: number; y: number }) => void) => () => void+}diff --git a/shared/ipc.ts b/shared/ipc.tsnew file mode 100644index 0000000..2ab028b--- /dev/null+++ b/shared/ipc.ts@@ -0,0 +1,103 @@+/**+ * Single source of truth for IPC channel names and their payload contracts.+ *+ * The preload bridge is generated from these contracts so the renderer never+ * touches a raw string channel name and the main handler signatures stay in+ * sync with the renderer calls.+ *+ * Convention:+ * - `Renderer -> Main` calls (invoke/handle) are listed in `InvokeMap`.+ * - `Main -> Renderer` events (send/on) are listed in `EventMap`.+ */+import type { ClipboardItemDto, DragRequest, Settings } from './types'++/* ------------------------------------------------------------------ */+/* Renderer -> Main (ipcMain.handle / ipcRenderer.invoke) */+/* ------------------------------------------------------------------ */++export interface InvokeMap {+ /** Returns the full current item list + settings on startup. */+ 'state:load': { args: []; result: { items: ClipboardItemDto[]; settings: Settings } }++ /** Set an item's pinned state. */+ 'item:set-pinned': { args: [id: string, pinned: boolean]; result: ClipboardItemDto[] }++ /** Delete a single item (and its image file if present). */+ 'item:delete': { args: [id: string]; result: ClipboardItemDto[] }++ /** Delete every unpinned item. */+ 'item:clear': { args: []; result: ClipboardItemDto[] }++ /** Remove a specific sub-item from a bundle. */+ 'item:remove-subitem': { args: [req: DragRequest]; result: boolean }++ /** Copy an item back onto the system clipboard. */+ 'item:copy': { args: [id: string]; result: boolean }++ /** Add local file paths dragged into the shelf. */+ 'item:add-files': { args: [paths: string[]]; result: ClipboardItemDto[] }++ /** Merge an item into another. */+ 'item:merge': { args: [sourceId: string, targetId: string]; result: boolean }++ /** Split a sub-item out of a bundle into a new standalone item. */+ 'item:split': { args: [req: DragRequest]; result: boolean }++ /** Update a persisted setting. */+ 'settings:update': { args: [patch: Partial<Settings>]; result: Settings }++ /** Toggle whether the window is interactive (mouse-ignore). */+ 'window:set-interactive': { args: [interactive: boolean]; result: void }+}++/* ------------------------------------------------------------------ */+/* Main -> Renderer (webContents.send / ipcRenderer.on) */+/* ------------------------------------------------------------------ */++export interface EventMap {+ /** Full new item list whenever the history changes. */+ 'state:items': [items: ClipboardItemDto[]]+ /** Settings changed (e.g. from the tray menu). */+ 'state:settings': [settings: Settings]+ /** Toggle the panel open/closed from the main process (e.g. tray). */+ 'window:toggle': []+ /** Fired when an OS drag initiated by the app has completed. */+ 'item:drag-end': []+ /** Internal drop triggered by the main process when startDrag ends inside the window */+ 'item:internal-drop': [pos: { x: number; y: number }]+}++/* ------------------------------------------------------------------ */+/* Renderer -> Main (ipcMain.on / ipcRenderer.send) — fire & forget */+/* ------------------------------------------------------------------ */+//+// Used for time-critical, one-way gestures where the renderer must not block+// on a round-trip. The canonical example is native drag-out: Electron's+// `startDrag` only works when called synchronously from the `dragstart` event,+// so the renderer `send`s the request and main calls `event.sender.startDrag`.+export interface SendMap {+ /** Begin a native OS drag of an item (or one file of a bundle) out of the app. */+ 'item:start-drag': { args: [req: DragRequest] }+}++/* ------------------------------------------------------------------ */+/* Keys */+/* ------------------------------------------------------------------ */++/** Typed keyof helpers so channel names can never drift. */+export const INVOKE_CHANNELS = Object.keys({} as InvokeMap) as (keyof InvokeMap)[]+export const EVENT_CHANNELS = Object.keys({} as EventMap) as (keyof EventMap)[]+export const SEND_CHANNELS = Object.keys({} as SendMap) as (keyof SendMap)[]++export type InvokeChannel = keyof InvokeMap+export type EventChannel = keyof EventMap+export type SendChannel = keyof SendMap++/** Argument tuple for an invoke channel. */+export type InvokeArgs<C extends InvokeChannel> = InvokeMap[C]['args']+/** Return type for an invoke channel. */+export type InvokeResult<C extends InvokeChannel> = InvokeMap[C]['result']+/** Argument tuple for an event channel. */+export type EventArgs<C extends EventChannel> = EventMap[C]+/** Argument tuple for a fire-and-forget send channel. */+export type SendArgs<C extends SendChannel> = SendMap[C]['args']diff --git a/shared/types.ts b/shared/types.tsnew file mode 100644index 0000000..404fba2--- /dev/null+++ b/shared/types.ts@@ -0,0 +1,85 @@+/**+ * Shared domain types used by both the Electron main process and the renderer.+ *+ * Items are serialized in two places:+ * - the on-disk index (JSON in userData)+ * - the IPC payloads sent to the renderer+ * Images are stored as separate PNG files referenced by `imageId`, while the+ * renderer receives the bytes inline as a data URL so the UI never blocks on disk I/O.+ */++/** Discriminated union describing the payload of a clipboard item. */+export type ItemData =+ | { kind: 'text'; text: string; html?: string; isUrl: boolean; isColor?: boolean }+ | { kind: 'image'; imageId: string; width: number; height: number; bytes: number }+ | { kind: 'image-collection'; images: { imageId: string; width: number; height: number; bytes: number }[] }+ | { kind: 'files'; paths: string[] }++export type ItemKind = ItemData['kind']++/**+ * A single clipboard entry. `id` is stable across the lifetime of the entry;+ * it is used as the React key and the storage key for pinned/persisted items.+ */+export interface ClipboardItem {+ id: string+ data: ItemData+ /** Unix epoch ms of the moment the item was captured. */+ capturedAt: number+ /** Number of times this exact content has been captured. */+ hitCount: number+ /** Pinned items never scroll off and survive app restarts. */+ pinned: boolean+}++/** Payload sent over IPC: same as ClipboardItem but with inline image previews. */+export interface ClipboardItemDto extends Omit<ClipboardItem, 'data'> {+ data:+ | { kind: 'text'; text: string; html?: string; isUrl: boolean; isColor?: boolean }+ | { kind: 'image'; imageId: string; width: number; height: number; bytes: number; preview: string }+ | { kind: 'image-collection'; images: { imageId: string; width: number; height: number; bytes: number; preview: string }[] }+ | { kind: 'files'; paths: string[]; previews?: string[] }+}++/** Section the renderer groups items into. */+export type ItemSection = 'pinned' | 'shelf'++/**+ * Request to begin a native OS drag-out of one item.+ *+ * `id` always identifies the source item. `paths` is an optional override that+ * narrows a `files` bundle to a single path (used when dragging one file out of+ * an expanded bundle). When omitted, main uses all of the item's content.+ */+export interface DragRequest {+ id: string+ paths?: string[]+ imageId?: string+ splitPlacement?: 'before' | 'after'+}++export interface Settings {+ /** Fraction of the screen height the hot zone occupies (0.2 - 0.6). */+ hotZoneHeight: number+ /** Maximum number of unpinned history items kept. */+ historyLimit: number+ /** Fraction of the screen height the panel occupies (0.4 - 1.0). */+ panelHeight: number+ /** When true, newly captured items are not recorded. */+ incognito: boolean+ /** Start minimized when the OS logs in. */+ launchAtLogin: boolean+ /** Reduce motion for the panel animations. */+ reduceMotion: boolean+}++export const DEFAULT_SETTINGS: Settings = {+ hotZoneHeight: 0.25,+ historyLimit: 500,+ panelHeight: 0.5,+ incognito: false,+ launchAtLogin: false,+ reduceMotion: false+}++diff --git a/src/App.tsx b/src/App.tsxnew file mode 100644index 0000000..095f757--- /dev/null+++ b/src/App.tsx@@ -0,0 +1,50 @@+/**+ * App — root component.+ *+ * Wires up:+ * - hydration (load items + settings on mount)+ * - main->renderer event subscriptions (items/settings pushed from main)+ * - theme application (accent + reduce-motion)+ * - the edge-hover controller (open/close the blade)+ * - the Panel itself+ */+import { useEffect } from 'react'+import { Panel } from './components/Panel'+import { useStore } from './store/appStore'+import { edge } from './lib/edge'+import { applyReduceMotion } from './lib/theme'+import { useEdgeHover } from './hooks/useEdgeHover'++export default function App() {+ const hydrate = useStore((s) => s.hydrate)+ const setItems = useStore((s) => s.setItems)+ const setSettings = useStore((s) => s.setSettings)+ const settings = useStore((s) => s.settings)++ // Drive the edge open/close behavior.+ useEdgeHover()++ // Hydrate once + subscribe to pushed updates.+ useEffect(() => {+ void hydrate()+ const offItems = edge.onItems((items) => setItems(items))+ const offSettings = edge.onSettings((next) => setSettings(next))+ const offToggle = edge.onToggle(() => {+ const next = !useStore.getState().open+ useStore.getState().setOpen(next)+ edge.setInteractive(next)+ })+ return () => {+ offItems()+ offSettings()+ offToggle()+ }+ }, [hydrate, setItems, setSettings])++ // Apply theme whenever settings change.+ useEffect(() => {+ applyReduceMotion(settings.reduceMotion)+ }, [settings.reduceMotion])++ return <Panel />+}diff --git a/src/components/ClipboardItem.tsx b/src/components/ClipboardItem.tsxnew file mode 100644index 0000000..1c06382--- /dev/null+++ b/src/components/ClipboardItem.tsx@@ -0,0 +1,472 @@+/**+ * ClipboardItem — a single history/shelf entry.+ *+ * Interactions:+ * - Double-click body -> copy item back to clipboard+ * - Drag the tile -> native OS drag-out (via useDragOut)+ * - File bundle: click body -> expand/collapse+ * - Drag collapsed bundle -> drag all files as one entity+ * - Drag expanded sub-row -> drag just that one file+ * - Pin / Delete -> quick actions on hover+ * - Copy button (⧉) -> single-click copy (explicit affordance)+ *+ * Visual: a raised dark tile. Image items show a thumbnail; text items show a+ * clamped preview; file items list names or bundle badge. Motion is handled by+ * the parent list (layout/AnimatePresence), so this component stays presentational.+ */+import { memo, useState, useCallback, useEffect } from 'react'+import { motion, AnimatePresence } from 'framer-motion'+import type { ClipboardItemDto } from '../../shared/types'+import type { DragRequest } from '../../shared/types'+import { useStore } from '../store/appStore'+import { useDragOut } from '../hooks/useDragOut'+import { basename, formatBytes, previewText, relativeTime } from '../lib/format'+import { CopyIcon, FileIcon, ImageIcon, LinkIcon, PinIcon, TrashIcon, BundleIcon, MinusIcon, ChevronUpIcon } from './icons'+import '../styles/item.css'++interface Props {+ item: ClipboardItemDto+}++/* ------------------------------------------------------------------ */+/* Main item card */+/* ------------------------------------------------------------------ */++function ClipboardItemBase({ item }: Props) {+ const copy = useStore((s) => s.copy)+ const togglePin = useStore((s) => s.togglePin)+ const remove = useStore((s) => s.remove)+ const setInternalDragReq = useStore((s) => s.setInternalDragReq)+ const internalDragReq = useStore((s) => s.internalDragReq)+ const startDrag = useDragOut()+ const [copied, setCopied] = useState(false)+ const [expanded, setExpanded] = useState(false)++ const open = useStore((s) => s.open)+ useEffect(() => {+ if (!open) setExpanded(false)+ }, [open])++ const isBundle = (item.data.kind === 'files' && item.data.paths.length > 1) || item.data.kind === 'image-collection'++ const onDoubleClick = useCallback(() => {+ copy(item.id)+ setCopied(true)+ window.setTimeout(() => setCopied(false), 900)+ }, [copy, item.id])++ const onCopy = useCallback((e: React.MouseEvent) => {+ e.stopPropagation()+ copy(item.id)+ setCopied(true)+ window.setTimeout(() => setCopied(false), 900)+ }, [copy, item.id])++ const onToggleExpand = useCallback(() => {+ if (isBundle) setExpanded((v) => !v)+ }, [isBundle])++ const handleDragStart = useCallback((e: React.DragEvent, req: DragRequest) => {+ if (item.data.kind === 'text') {+ // Native HTML5 drag handles text perfectly and gives us a ghost image.+ e.dataTransfer.setData('text/plain', item.data.text)+ if (item.data.html) {+ e.dataTransfer.setData('text/html', item.data.html)+ }+ e.dataTransfer.effectAllowed = 'copy'+ } else {+ // Images and files need OS-level file handles via Electron's startDrag.+ // Cancel the HTML5 drag (preventDefault) so the browser doesn't run its+ // own ghost in parallel; Electron's startDrag starts an independent OLE+ // drag managed by the OS. Fire the IPC synchronously so main calls+ // event.sender.startDrag(...) on the same tick.+ setInternalDragReq(req)+ e.preventDefault()+ startDrag(req)+ }+ }, [item.data, startDrag, setInternalDragReq])++ return (+ <motion.div+ layout+ initial={{ opacity: 0, y: 8, scale: 0.98 }}+ animate={{ opacity: 1, y: 0, scale: 1 }}+ exit={{ opacity: 0, scale: 0.95, transition: { duration: 0.14 } }}+ transition={{ type: 'spring', stiffness: 420, damping: 34 }}+ className={`item${item.pinned ? ' pinned' : ''}${isBundle ? ' bundle' : ''}`}+ >+ <div+ className="item-main"+ data-id={item.id}+ draggable={!isBundle || !expanded}+ onDragStart={(e) => handleDragStart(e, { id: item.id })}+ onDragEnd={() => setInternalDragReq(null)}+ onDragOver={(e) => {+ if (internalDragReq && internalDragReq.id !== item.id) {+ e.preventDefault()+ }+ }}+ onDrop={(e) => {+ if (internalDragReq && internalDragReq.id !== item.id) {+ e.preventDefault()+ e.stopPropagation()+ // If they drop an entire item or a subitem onto another item, we merge them.+ // Currently our merge logic merges the entire source item.+ // In the future we might want to merge just the subitem.+ window.edge.mergeItems(internalDragReq.id, item.id)+ setInternalDragReq(null)+ }+ }}+ onDoubleClick={!isBundle ? onDoubleClick : undefined}+ onClick={isBundle ? onToggleExpand : undefined}+ title={isBundle ? (expanded ? 'Click to collapse' : 'Click to expand, drag to drop all files') : 'Double-click to copy, drag to any app'}+ >+ <div className="body">+ {isBundle ? (+ <BundleFluidPreview+ item={item}+ expanded={expanded}+ onDragStart={handleDragStart}+ onCopy={onCopy}+ onRemove={() => remove(item.id)}+ />+ ) : (+ <Preview item={item} />+ )}+ <div className="meta">+ <KindBadge item={item} />+ <span>{relativeTime(item.capturedAt)}</span>+ {item.hitCount > 1 && <span>· ×{item.hitCount}</span>}+ {item.data.kind === 'image' && (+ <span>+ · {item.data.width}×{item.data.height}+ </span>+ )}+ {item.data.kind === 'image' && <span>· {formatBytes(item.data.bytes)}</span>}+ {copied && <span style={{ color: '#fff' }}>· copied</span>}+ </div>+ </div>++ <div+ className="actions"+ onClick={(e) => e.stopPropagation()}+ style={{ display: isBundle && expanded ? 'none' : undefined }}+ >+ <button+ className={`act${item.pinned ? ' active' : ''}`}+ title={item.pinned ? 'Unpin' : 'Pin'}+ onClick={() => togglePin(item.id, !item.pinned)}+ >+ <PinIcon />+ </button>+ <button className="act" title="Copy" onClick={onCopy}>+ <CopyIcon />+ </button>+ <button+ className="act danger"+ title="Delete"+ onClick={() => remove(item.id)}+ >+ <TrashIcon />+ </button>+ </div>+ </div>+ </motion.div>+ )+}++function BundleFluidPreview({+ item,+ expanded,+ onDragStart,+ onCopy,+ onRemove,+}: {+ item: ClipboardItemDto+ expanded: boolean+ onDragStart: (e: React.DragEvent, req: DragRequest) => void+ onCopy: (e: React.MouseEvent) => void+ onRemove: () => void+}) {+ if (item.data.kind === 'image-collection') {+ const more = item.data.images.length - 1+ return (+ <motion.div layout className="fluid-bundle" transition={{ type: 'spring', stiffness: 400, damping: 35 }}>+ {expanded ? (+ <motion.div layout className="fluid-list" initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }}>+ <div className="bundle-actions">+ <button+ className="act"+ title="Collapse collection"+ style={{ marginRight: 'auto' }}+ >+ <ChevronUpIcon />+ </button>+ <div className="actions-pill">+ <button+ className={`act${item.pinned ? ' active' : ''}`}+ title={item.pinned ? 'Unpin' : 'Pin'}+ onClick={(e) => { e.stopPropagation(); useStore.getState().togglePin(item.id, !item.pinned); }}+ >+ <PinIcon />+ </button>+ <button className="act" title="Copy all" onClick={(e) => { e.stopPropagation(); onCopy(e); }}>+ <CopyIcon />+ </button>+ <button className="act danger" title="Delete bundle" onClick={(e) => { e.stopPropagation(); onRemove(); }}>+ <TrashIcon />+ </button>+ </div>+ </div>+ {item.data.images.map((img) => (+ <motion.div+ key={img.imageId}+ className="fluid-list-row"+ draggable+ onDragStartCapture={(e: any) => { e.stopPropagation(); onDragStart(e, { id: item.id, imageId: img.imageId }) }}+ onClick={(e) => e.stopPropagation()}+ initial={{ opacity: 0 }}+ animate={{ opacity: 1, x: 0, y: 0, rotate: 0, scale: 1, zIndex: 1 }}+ exit={{ opacity: 0 }}+ >+ <motion.img+ layoutId={`img-${item.id}-${img.imageId}`}+ src={img.preview}+ style={{ width: 50, height: 50, objectFit: 'cover', borderRadius: 4, background: 'rgba(0,0,0,0.5)' }}+ draggable={false}+ />+ <div style={{ display: 'flex', flexDirection: 'column', gap: 4, flex: 1, minWidth: 0 }}>+ <span style={{ fontSize: 13, color: 'rgba(255,255,255,0.9)' }}>+ Image • {img.width} × {img.height}+ </span>+ <span style={{ fontSize: 11, color: 'rgba(255,255,255,0.5)' }}>+ {formatBytes(img.bytes)}+ </span>+ </div>+ <button+ className="act subitem-delete-btn"+ title="Ungroup image from collection"+ onClick={(e) => { e.stopPropagation(); window.edge.splitItem({ id: item.id, imageId: img.imageId, splitPlacement: 'after' }); }}+ style={{ width: 24, height: 24 }}+ >+ <MinusIcon width={12} height={12} />+ </button>+ </motion.div>+ ))}+ </motion.div>+ ) : (+ <motion.div layout style={{ width: '100%' }} initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }}>+ <div className="bundle-stack-large">+ {item.data.images.slice(0, 4).reverse().map((img, idx, arr) => {+ const realIndex = arr.length - 1 - idx+ return (+ <motion.img+ layoutId={`img-${item.id}-${img.imageId}`}+ key={img.imageId}+ src={img.preview}+ className="bundle-stack-card"+ animate={{+ x: realIndex * 20 - 20,+ y: realIndex * 6,+ rotate: realIndex * 6 - 6,+ scale: 1 - realIndex * 0.05+ }}+ style={{ zIndex: 10 - realIndex }}+ draggable={false}+ initial={{ borderRadius: 8 }}+ />+ )+ })}+ </div>+ {more > 0 && <div className="bundle-more-label">+{more} more image{more > 1 ? 's' : ''}</div>}+ </motion.div>+ )}+ </motion.div>+ )+ }++ if (item.data.kind === 'files') {+ const more = item.data.paths.length - 1+ return (+ <motion.div layout className="fluid-bundle" transition={{ type: 'spring', stiffness: 400, damping: 35 }}>+ {expanded ? (+ <motion.div layout className="fluid-list" initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }}>+ <div className="bundle-actions">+ <button+ className="act"+ title="Collapse collection"+ style={{ marginRight: 'auto' }}+ >+ <ChevronUpIcon />+ </button>+ <div className="actions-pill">+ <button+ className={`act${item.pinned ? ' active' : ''}`}+ title={item.pinned ? 'Unpin' : 'Pin'}+ onClick={(e) => { e.stopPropagation(); useStore.getState().togglePin(item.id, !item.pinned); }}+ >+ <PinIcon />+ </button>+ <button className="act" title="Copy all paths" onClick={(e) => { e.stopPropagation(); onCopy(e); }}>+ <CopyIcon />+ </button>+ <button className="act danger" title="Delete bundle" onClick={(e) => { e.stopPropagation(); onRemove(); }}>+ <TrashIcon />+ </button>+ </div>+ </div>+ {item.data.paths.map((filePath) => (+ <motion.div+ layoutId={`file-${item.id}-${filePath}`}+ key={filePath}+ className="fluid-list-row"+ draggable+ onDragStartCapture={(e: any) => { e.stopPropagation(); onDragStart(e, { id: item.id, paths: [filePath] }) }}+ onClick={(e) => e.stopPropagation()}+ >+ <FileIcon width={14} height={14} />+ <span className="file-row-name" style={{ flex: 1 }}>{basename(filePath)}</span>+ <button+ className="act subitem-delete-btn"+ title="Ungroup file from collection"+ onClick={(e) => { e.stopPropagation(); window.edge.splitItem({ id: item.id, paths: [filePath], splitPlacement: 'after' }); }}+ style={{ width: 24, height: 24 }}+ >+ <MinusIcon width={12} height={12} />+ </button>+ </motion.div>+ ))}+ </motion.div>+ ) : (+ <motion.div layout style={{ width: '100%' }} initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }}>+ <div className="bundle-stack-files">+ {item.data.paths.slice(0, 4).reverse().map((filePath, idx, arr) => {+ const realIndex = arr.length - 1 - idx+ return (+ <motion.div+ layoutId={`file-${item.id}-${filePath}`}+ key={filePath}+ className="bundle-file-card"+ animate={{+ x: realIndex * 20 - 20,+ y: realIndex * 6,+ rotate: realIndex * 6 - 6,+ scale: 1 - realIndex * 0.05+ }}+ style={{ zIndex: 10 - realIndex }}+ draggable={false}+ >+ <FileIcon width={16} height={16} />+ <span className="file-row-name" style={{ flex: 1, minWidth: 0, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>+ {basename(filePath)}+ </span>+ </motion.div>+ )+ })}+ </div>+ {more > 0 && <div className="bundle-more-label">+{more} more file{more > 1 ? 's' : ''}</div>}+ </motion.div>+ )}+ </motion.div>+ )+ }+ return null+}++/* ------------------------------------------------------------------ */+/* Preview */+/* ------------------------------------------------------------------ */++function Preview({ item }: { item: ClipboardItemDto }) {+ switch (item.data.kind) {+ case 'text':+ if (item.data.isUrl) {+ return (+ <>+ <div className="preview single">{item.data.text}</div>+ </>+ )+ }+ return <div className="preview">{previewText(item.data.text)}</div>++ case 'image':+ return (+ <div className="thumb-wrap">+ {item.data.preview ? (+ <img+ className="thumb"+ src={item.data.preview}+ alt=""+ draggable={false}+ />+ ) : (+ <div className="preview">[image]</div>+ )}+ </div>+ )++ case 'files': {+ const first = item.data.paths[0]+ // Single file — show image thumbnail if available, else just the name.+ if (item.data.previews && item.data.previews[0]) {+ return (+ <div className="thumb-wrap">+ <img+ className="thumb"+ src={item.data.previews[0]}+ alt=""+ draggable={false}+ />+ <div className="preview single" title={item.data.paths[0]}>+ {basename(first)}+ </div>+ </div>+ )+ }+ return (+ <div className="preview single" title={item.data.paths.join('\n')}>+ {basename(first)}+ </div>+ )+ }+ }+}++/* ------------------------------------------------------------------ */+/* Kind badge */+/* ------------------------------------------------------------------ */++function KindBadge({ item }: { item: ClipboardItemDto }) {+ switch (item.data.kind) {+ case 'text':+ if (item.data.isUrl)+ return (+ <span className="kind-badge url">+ <LinkIcon width={11} height={11} /> link+ </span>+ )+ return <span className="kind-badge">text</span>+ case 'image':+ return (+ <span className="kind-badge">+ <ImageIcon width={11} height={11} /> image+ </span>+ )+ case 'image-collection':+ return (+ <span className="kind-badge">+ <ImageIcon width={11} height={11} />+ {item.data.images.length} images+ </span>+ )+ case 'files':+ return (+ <span className="kind-badge">+ <FileIcon width={11} height={11} />+ {item.data.paths.length > 1 ? `${item.data.paths.length} files` : 'file'}+ </span>+ )+ }+}++export const ClipboardItemCard = memo(ClipboardItemBase)diff --git a/src/components/EmptyState.tsx b/src/components/EmptyState.tsxnew file mode 100644index 0000000..4c029c3--- /dev/null+++ b/src/components/EmptyState.tsx@@ -0,0 +1,16 @@+/** Friendly empty state shown when there's nothing to show. */+import { DropIcon } from './icons'++export function EmptyState({ filtered }: { filtered: boolean }) {+ return (+ <div className="empty">+ <DropIcon width={32} height={32} />+ <div className="big">{filtered ? 'No matches' : 'Nothing here yet'}</div>+ <div className="hint">+ {filtered+ ? 'Try a different search, or clear it to see everything.'+ : 'Copy anything, or drag files & images here to fill the shelf.'}+ </div>+ </div>+ )+}diff --git a/src/components/Header.tsx b/src/components/Header.tsxnew file mode 100644index 0000000..7f04b18--- /dev/null+++ b/src/components/Header.tsx@@ -0,0 +1,79 @@+/** Panel header: animated search + settings toggle. */+import { useState, useRef, useEffect } from 'react'+import { motion, AnimatePresence } from 'framer-motion'+import { useStore } from '../store/appStore'+import { GearIcon, SearchIcon, CloseIcon } from './icons'++export function Header() {+ const query = useStore((s) => s.query)+ const setQuery = useStore((s) => s.setQuery)+ const setSettingsOpen = useStore((s) => s.setSettingsOpen)+ const settingsOpen = useStore((s) => s.settingsOpen)++ const [isSearchOpen, setIsSearchOpen] = useState(false)+ const inputRef = useRef<HTMLInputElement>(null)++ useEffect(() => {+ if (isSearchOpen) {+ inputRef.current?.focus()+ } else {+ setQuery('')+ }+ }, [isSearchOpen, setQuery])++ return (+ <div className="header" style={{ display: 'flex', gap: 10, width: '100%', alignItems: 'center' }}>+ <motion.div+ layout+ className="search-container"+ style={{+ display: 'flex',+ background: 'var(--bg-2)',+ borderRadius: 999,+ height: 30,+ overflow: 'hidden',+ flex: isSearchOpen ? 1 : 'none',+ width: isSearchOpen ? 'auto' : 30+ }}+ transition={{ type: 'spring', stiffness: 350, damping: 30 }}+ >+ <button+ onClick={() => setIsSearchOpen(true)}+ style={{ width: 30, height: 30, background: 'transparent', border: 'none', color: 'var(--text-secondary)', display: 'grid', placeItems: 'center', flexShrink: 0, cursor: 'pointer' }}+ >+ <SearchIcon width={14} height={14} />+ </button>+ <AnimatePresence>+ {isSearchOpen && (+ <motion.input+ ref={inputRef}+ initial={{ opacity: 0 }}+ animate={{ opacity: 1 }}+ exit={{ opacity: 0 }}+ transition={{ duration: 0.15 }}+ type="text"+ placeholder="Search clipboard..."+ value={query}+ onChange={(e) => setQuery(e.target.value)}+ onBlur={() => { if (!query) setIsSearchOpen(false) }}+ style={{ width: '100%', background: 'transparent', border: 'none', outline: 'none', color: 'var(--text-primary)', paddingRight: 10 }}+ spellCheck={false}+ />+ )}+ </AnimatePresence>+ </motion.div>++ <motion.div layout style={{ flex: isSearchOpen ? 0 : 1 }} />++ <motion.button+ layout+ className={`icon-btn${settingsOpen ? ' active' : ''}`}+ title={settingsOpen ? 'Close Settings' : 'Settings'}+ onClick={() => setSettingsOpen(!settingsOpen)}+ style={{ color: settingsOpen ? 'var(--accent)' : undefined, flexShrink: 0 }}+ >+ {settingsOpen ? <CloseIcon /> : <GearIcon />}+ </motion.button>+ </div>+ )+}diff --git a/src/components/ItemList.tsx b/src/components/ItemList.tsxnew file mode 100644index 0000000..477655b--- /dev/null+++ b/src/components/ItemList.tsx@@ -0,0 +1,180 @@+/**+ * ItemList — the scrollable body of the blade.+ *+ * Renders Pinned (if any) and Recent sections, handles OS drag-in of files &+ * images onto the shelf, and shows the empty state when there's nothing.+ * AnimatePresence here gives items their staggered enter/exit.+ *+ * Drag-in awareness: sets `dragActive` on the store while OS files are being+ * dragged over the panel so the edge-hover hook knows not to close mid-drag.+ */+import { AnimatePresence, motion } from 'framer-motion'+import { useRef, useEffect, useState } from 'react'+import { useStore } from '../store/appStore'+import { useFilteredItems } from '../hooks/useFilteredItems'+import { ClipboardItemCard } from './ClipboardItem'+import { EmptyState } from './EmptyState'++export function ItemList() {+ const { pinned, recent } = useFilteredItems()+ const query = useStore((s) => s.query)+ const listRef = useRef<HTMLDivElement>(null)++ const total = pinned.length + recent.length++ const dragActive = useStore((s) => s.dragActive)+ const internalDragReq = useStore((s) => s.internalDragReq)++ const [showScrollTop, setShowScrollTop] = useState(false)++ const firstItemId = (pinned[0] || recent[0])?.id+ const prevFirstItemId = useRef(firstItemId)+ const prevTotal = useRef(total)++ const scrollRaf = useRef<number | null>(null)+ const scrollVelocity = useRef<number>(0)++ useEffect(() => {+ return () => {+ if (scrollRaf.current) cancelAnimationFrame(scrollRaf.current)+ }+ }, [])++ useEffect(() => {+ // If the first item changed and the total didn't decrease, a new item was likely added (copied/split).+ if (firstItemId !== prevFirstItemId.current && total >= prevTotal.current) {+ if (listRef.current) {+ listRef.current.scrollTo({ top: 0, behavior: 'smooth' })+ }+ }+ prevFirstItemId.current = firstItemId+ prevTotal.current = total+ }, [firstItemId, total])++ useEffect(() => {+ if (!dragActive && !internalDragReq) {+ stopScrolling()+ }+ }, [dragActive, internalDragReq])++ const handleScroll = (e: React.UIEvent<HTMLDivElement>) => {+ if (e.currentTarget.scrollTop > 50) {+ setShowScrollTop(true)+ } else {+ setShowScrollTop(false)+ }+ }++ const scrollToTop = () => {+ if (listRef.current) {+ listRef.current.scrollTo({ top: 0, behavior: 'smooth' })+ }+ }++ const startScrolling = () => {+ if (scrollRaf.current !== null) return++ let lastTime = performance.now()+ const loop = (time: number) => {+ const dt = time - lastTime+ lastTime = time++ if (listRef.current && scrollVelocity.current !== 0) {+ // Apply velocity, scaled by delta time to keep it consistent across refresh rates+ listRef.current.scrollTop += scrollVelocity.current * (dt / 16)+ scrollRaf.current = requestAnimationFrame(loop)+ } else {+ scrollRaf.current = null+ }+ }+ scrollRaf.current = requestAnimationFrame(loop)+ }++ const stopScrolling = () => {+ scrollVelocity.current = 0+ if (scrollRaf.current !== null) {+ cancelAnimationFrame(scrollRaf.current)+ scrollRaf.current = null+ }+ }++ const handleDragOver = (e: React.DragEvent) => {+ if (!listRef.current) return+ const rect = listRef.current.getBoundingClientRect()+ const y = e.clientY - rect.top+ const edgeSize = 80 // slightly larger comfortable trigger zone++ if (y < edgeSize) {+ // Speed scales up as you get closer to the absolute edge+ const intensity = Math.max(0, 1 - (y / edgeSize))+ scrollVelocity.current = -(intensity * 20 + 2)+ startScrolling()+ } else if (y > rect.height - edgeSize) {+ const intensity = Math.max(0, 1 - ((rect.height - y) / edgeSize))+ scrollVelocity.current = (intensity * 20 + 2)+ startScrolling()+ } else {+ stopScrolling()+ }+ }++ const handleDragLeaveOrDrop = () => {+ stopScrolling()+ }++ return (+ <div+ className="list"+ ref={listRef}+ onDragOver={handleDragOver}+ onDragLeave={handleDragLeaveOrDrop}+ onDrop={handleDragLeaveOrDrop}+ onScroll={handleScroll}+ >+ {total === 0 ? (+ <EmptyState filtered={query.trim().length > 0} />+ ) : (+ <>+ {pinned.length > 0 && (+ <section>+ <div className="section-label">Pinned</div>+ <AnimatePresence initial={false}>+ {pinned.map((it) => (+ <ClipboardItemCard key={it.id} item={it} />+ ))}+ </AnimatePresence>+ </section>+ )}++ {recent.length > 0 && (+ <section>+ {pinned.length > 0 && <div className="section-label">Recent</div>}+ <AnimatePresence initial={false}>+ {recent.map((it) => (+ <ClipboardItemCard key={it.id} item={it} />+ ))}+ </AnimatePresence>+ </section>+ )}+ </>+ )}++ <AnimatePresence>+ {showScrollTop && (+ <motion.button+ initial={{ opacity: 0, scale: 0.8, y: 20 }}+ animate={{ opacity: 1, scale: 1, y: 0 }}+ exit={{ opacity: 0, scale: 0.8, y: 20 }}+ className="scroll-top-btn"+ onClick={scrollToTop}+ title="Scroll to top"+ >+ <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round">+ <polyline points="18 15 12 9 6 15"></polyline>+ </svg>+ </motion.button>+ )}+ </AnimatePresence>+ </div>+ )+}diff --git a/src/components/Panel.tsx b/src/components/Panel.tsxnew file mode 100644index 0000000..55f877d--- /dev/null+++ b/src/components/Panel.tsx@@ -0,0 +1,257 @@+/**+ * Panel — the blade that grows out of the left edge.+ *+ * Motion: when `open` flips true the blade slides in from x = -100% (fully off+ * the left edge) to x = 0 with a spring, and its opacity/blur animate together+ * for the "extending from the screen" feel. A faint ambient glow leads the+ * edge. When closed, the whole blade sits off-screen so the window stays+ * transparent and click-through.+ */+import { motion, AnimatePresence } from 'framer-motion'+import { useEffect } from 'react'+import { useStore } from '../store/appStore'+import { Header } from './Header'+import { ItemList } from './ItemList'+import { Settings } from './Settings'++export function Panel() {+ const open = useStore((s) => s.open)+ const total = useStore((s) => s.items.length)+ const clear = useStore((s) => s.clear)+ const settings = useStore((s) => s.settings)+ const settingsOpen = useStore((s) => s.settingsOpen)++ const topOffset = '50%'++ // The actual pixel height of the trigger zone on the left edge+ const triggerHeightPx = window.innerHeight * settings.hotZoneHeight+ const halfTrigger = triggerHeightPx / 2++ // The height of the complete pop-up panel+ const panelHeightStr = `${(settings.panelHeight || 0.6) * 100}vh`++ const setDragActive = useStore((s) => s.setDragActive)+ const setInternalDragReq = useStore((s) => s.setInternalDragReq)+ const internalDragReq = useStore((s) => s.internalDragReq)++ useEffect(() => {+ const unsubDragEnd = window.edge.onDragEnd(() => {+ // Delay clearing to allow React's drop event to process first if they coincide+ setTimeout(() => {+ setInternalDragReq(null)+ setDragActive(false)+ }, 150)+ })++ const unsubInternalDrop = window.edge.onInternalDrop((pos) => {+ // The OS drag ended inside our window, but Electron/Windows swallowed the drop event.+ if (!internalDragReq) return++ const req = { ...internalDragReq }+ setInternalDragReq(null)+ setDragActive(false)++ const el = document.elementFromPoint(pos.x, pos.y)+ if (!el) {+ if (req.imageId || (req.paths && req.paths.length > 0)) window.edge.splitItem(req)+ return+ }++ const itemEl = el.closest('.item-main')+ if (itemEl) {+ const targetId = itemEl.getAttribute('data-id')+ if (targetId && targetId !== req.id) {+ // Dropped on a DIFFERENT item: merge+ window.edge.mergeItems(req.id, targetId)+ } else if (targetId === req.id) {+ // Dropped on the SAME item: split it!+ if (req.imageId || (req.paths && req.paths.length > 0)) {+ const rect = itemEl.getBoundingClientRect()+ req.splitPlacement = pos.y < rect.top + rect.height / 2 ? 'before' : 'after'+ window.edge.splitItem(req)+ }+ }+ } else {+ // Dropped on empty space (e.g. padding): split+ if (req.imageId || (req.paths && req.paths.length > 0)) {+ window.edge.splitItem(req)+ }+ }+ })++ return () => {+ unsubDragEnd()+ unsubInternalDrop()+ }+ }, [internalDragReq, setInternalDragReq, setDragActive])++ const hasFiles = (e: React.DragEvent) => e.dataTransfer.types.includes('Files')++ const onDragEnter = (e: React.DragEvent) => {+ if (hasFiles(e)) {+ e.preventDefault()+ setDragActive(true)+ }+ }++ const onDragOver = (e: React.DragEvent) => {+ if (hasFiles(e)) e.preventDefault()+ }++ const onDragLeave = (e: React.DragEvent) => {+ const related = e.relatedTarget as Node | null+ if (related && e.currentTarget.contains(related)) return+ setDragActive(false)+ }++ const onDrop = (e: React.DragEvent) => {+ console.log('[Panel] onDrop internalDragReq=', internalDragReq)+ if (internalDragReq) {+ e.preventDefault()+ // If it reaches here, it means it was dropped on the general panel background+ // (not on another item, which would have called stopPropagation).+ // Check if it's a subitem that should be split out:+ if (internalDragReq.imageId || (internalDragReq.paths && internalDragReq.paths.length > 0)) {+ console.log('[Panel] calling splitItem')+ window.edge.splitItem(internalDragReq)+ } else {+ console.log('[Panel] internalDragReq has no subitem, not splitting')+ }+ setInternalDragReq(null)+ } else if (hasFiles(e)) {+ e.preventDefault()+ }+ setDragActive(false)+ }++ return (+ <div+ className="root"+ onDragEnter={onDragEnter}+ onDragOver={onDragOver}+ onDragLeave={onDragLeave}+ onDrop={onDrop}+ >+ <motion.div+ className="blade-container"+ initial={false}+ style={{+ top: topOffset,+ y: '-50%',+ position: 'absolute',+ left: 0,+ zIndex: 10+ }}+ animate={{+ clipPath: open+ ? 'inset(-100px -100px -100px 0px round 0px 24px 24px 0px)'+ : `inset(calc(50% - ${halfTrigger}px) calc(100% - 6px) calc(50% - ${halfTrigger}px) 0px round 0px 12px 12px 0px)`+ }}+ transition={{+ type: 'tween',+ ease: [0.16, 1, 0.3, 1],+ duration: 0.6+ }}+ >+ <div className="flare-top" />+ <div className="flare-bottom" />+ <div className="blade" style={{ height: panelHeightStr }}>+ <Header />++ <AnimatePresence mode="wait">+ {settingsOpen ? (+ <motion.div+ key="settings"+ initial={{ opacity: 0, x: 10 }}+ animate={{ opacity: 1, x: 0 }}+ exit={{ opacity: 0, x: -10 }}+ transition={{ duration: 0.15 }}+ style={{ flex: 1, display: 'flex', flexDirection: 'column', overflow: 'hidden' }}+ >+ <Settings />+ </motion.div>+ ) : (+ <motion.div+ key="list"+ initial={{ opacity: 0, x: -10 }}+ animate={{ opacity: 1, x: 0 }}+ exit={{ opacity: 0, x: 10 }}+ transition={{ duration: 0.15 }}+ style={{ flex: 1, display: 'flex', flexDirection: 'column', overflow: 'hidden', position: 'relative' }}+ >+ <ItemList />+ <div className="footer">+ <span className="count">+ {total} item{total === 1 ? '' : 's'}+ </span>+ <div className="spacer" />+ <button className="text-btn danger" onClick={clear} disabled={total === 0}>+ Clear+ </button>+ </div>+ </motion.div>+ )}+ </AnimatePresence>+ <DropOverlay />+ </div>+ </motion.div>+ </div>+ )+}++function DropOverlay() {+ const dragActive = useStore((s) => s.dragActive)+ const internalDragReq = useStore((s) => s.internalDragReq)++ return (+ <AnimatePresence>+ {dragActive && !internalDragReq && (+ <motion.div+ initial={{ opacity: 0, backdropFilter: 'blur(0px)' }}+ animate={{ opacity: 1, backdropFilter: 'blur(8px)' }}+ exit={{ opacity: 0, backdropFilter: 'blur(0px)' }}+ transition={{ duration: 0.2 }}+ style={{+ position: 'absolute',+ inset: 0,+ zIndex: 100,+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ pointerEvents: 'none',+ background: 'rgba(0, 0, 0, 0.4)'+ }}+ >+ <motion.div+ initial={{ scale: 0.95, y: 10, opacity: 0 }}+ animate={{ scale: 1, y: 0, opacity: 1 }}+ exit={{ scale: 0.95, y: 10, opacity: 0 }}+ transition={{ type: 'spring', stiffness: 400, damping: 30 }}+ style={{+ padding: '16px 28px',+ background: 'rgba(255, 255, 255, 0.1)',+ border: '1px solid rgba(255, 255, 255, 0.2)',+ borderRadius: '999px',+ color: '#fff',+ fontWeight: 600,+ fontSize: '1rem',+ boxShadow: '0 12px 40px rgba(0, 0, 0, 0.4)',+ backdropFilter: 'blur(16px)',+ WebkitBackdropFilter: 'blur(16px)',+ display: 'flex',+ alignItems: 'center',+ gap: '12px'+ }}+ >+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">+ <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>+ <polyline points="7 10 12 15 17 10"></polyline>+ <line x1="12" y1="15" x2="12" y2="3"></line>+ </svg>+ Drop items here to save+ </motion.div>+ </motion.div>+ )}+ </AnimatePresence>+ )+}diff --git a/src/components/SearchBar.tsx b/src/components/SearchBar.tsxnew file mode 100644index 0000000..8d0aa3d--- /dev/null+++ b/src/components/SearchBar.tsx@@ -0,0 +1,21 @@+/** Controlled search input bound to the store's query. */+import { useStore } from '../store/appStore'+import { SearchIcon } from './icons'++export function SearchBar() {+ const query = useStore((s) => s.query)+ const setQuery = useStore((s) => s.setQuery)++ return (+ <div className="search">+ <SearchIcon className="search-icon" width={14} height={14} />+ <input+ type="text"+ placeholder="Search clipboard…"+ value={query}+ onChange={(e) => setQuery(e.target.value)}+ spellCheck={false}+ />+ </div>+ )+}diff --git a/src/components/Settings.tsx b/src/components/Settings.tsxnew file mode 100644index 0000000..94897c7--- /dev/null+++ b/src/components/Settings.tsx@@ -0,0 +1,90 @@+import { useStore } from '../store/appStore'+import '../styles/settings.css'++export function Settings() {+ const settings = useStore((s) => s.settings)+ const patch = useStore((s) => s.patchSettings)++ return (+ <div className="settings-body" style={{ flex: 1, overflowY: 'auto', scrollbarWidth: 'none' }}>+ <h2 style={{ fontSize: 11, fontWeight: 700, color: 'var(--text-tertiary)', marginBottom: 20, textTransform: 'uppercase', letterSpacing: '0.8px' }}>Preferences</h2>++ <Field label={`Trigger area height — ${Math.round(settings.hotZoneHeight * 100)}%`}>+ <input+ type="range"+ min={0.2}+ max={0.8}+ step={0.05}+ value={settings.hotZoneHeight}+ onChange={(e) => patch({ hotZoneHeight: Number(e.target.value) })}+ />+ </Field>++ <Field label={`Complete pop-up panel size — ${Math.round((settings.panelHeight || 0.6) * 100)}%`}>+ <input+ type="range"+ min={0.4}+ max={0.9}+ step={0.05}+ value={settings.panelHeight || 0.6}+ onChange={(e) => patch({ panelHeight: Number(e.target.value) })}+ />+ </Field>++ <Field label={`History limit — ${settings.historyLimit} items`}>+ <input+ type="range"+ min={50}+ max={2000}+ step={50}+ value={settings.historyLimit}+ onChange={(e) => patch({ historyLimit: Number(e.target.value) })}+ />+ </Field>++ <Toggle+ label="Incognito (pause capture)"+ checked={settings.incognito}+ onChange={(v) => patch({ incognito: v })}+ />+ <Toggle+ label="Reduce motion"+ checked={settings.reduceMotion}+ onChange={(v) => patch({ reduceMotion: v })}+ />+ <Toggle+ label="Launch at login"+ checked={settings.launchAtLogin}+ onChange={(v) => patch({ launchAtLogin: v })}+ />+ </div>+ )+}++function Field({ label, children }: { label: string; children: React.ReactNode }) {+ return (+ <label className="field">+ <span className="field-label">{label}</span>+ {children}+ </label>+ )+}++function Toggle({+ label,+ checked,+ onChange+}: {+ label: string+ checked: boolean+ onChange: (v: boolean) => void+}) {+ return (+ <div className="toggle-row" onClick={() => onChange(!checked)}>+ <span>{label}</span>+ <button className={`toggle${checked ? ' on' : ''}`} role="switch" aria-checked={checked}>+ <span className="knob" />+ </button>+ </div>+ )+}diff --git a/src/components/icons.tsx b/src/components/icons.tsxnew file mode 100644index 0000000..16dd4a0--- /dev/null+++ b/src/components/icons.tsx@@ -0,0 +1,123 @@+/**+ * Inline SVG icons — no icon dependency, tiny and crisp.+ * Each accepts standard svg props so callers can size/color via CSS.+ */+import type { SVGProps } from 'react'++type P = SVGProps<SVGSVGElement>+const base = (p: P): P => ({+ width: 16,+ height: 16,+ viewBox: '0 0 24 24',+ fill: 'none',+ stroke: 'currentColor',+ strokeWidth: 2,+ strokeLinecap: 'round',+ strokeLinejoin: 'round',+ ...p+})++export const SearchIcon = (p: P) => (+ <svg {...base(p)}>+ <circle cx="11" cy="11" r="7" />+ <path d="m21 21-4.3-4.3" />+ </svg>+)++export const PinIcon = (p: P) => (+ <svg {...base(p)}>+ <path d="M12 17v5" />+ <path d="M9 3h6l-1 7 3 3H7l3-3-1-7Z" />+ </svg>+)++export const TrashIcon = (p: P) => (+ <svg {...base(p)}>+ <path d="M3 6h18" />+ <path d="M8 6V4h8v2" />+ <path d="M19 6l-1 14H6L5 6" />+ </svg>+)++export const CopyIcon = (p: P) => (+ <svg {...base(p)}>+ <rect x="9" y="9" width="11" height="11" rx="2" />+ <path d="M5 15V5a2 2 0 0 1 2-2h10" />+ </svg>+)++export const GearIcon = (p: P) => (+ <svg {...base(p)}>+ <circle cx="12" cy="12" r="3" />+ <path d="M19.4 15a1.7 1.7 0 0 0 .3 1.9l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.9-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.9.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.9 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.9l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.9.3H10a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.9-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.9V10a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1Z" />+ </svg>+)++export const GripIcon = (p: P) => (+ <svg {...base(p)} fill="currentColor" stroke="none">+ <circle cx="9" cy="6" r="1.4" />+ <circle cx="15" cy="6" r="1.4" />+ <circle cx="9" cy="12" r="1.4" />+ <circle cx="15" cy="12" r="1.4" />+ <circle cx="9" cy="18" r="1.4" />+ <circle cx="15" cy="18" r="1.4" />+ </svg>+)++export const FileIcon = (p: P) => (+ <svg {...base(p)}>+ <path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z" />+ <path d="M14 3v5h5" />+ </svg>+)++export const ImageIcon = (p: P) => (+ <svg {...base(p)}>+ <rect x="3" y="3" width="18" height="18" rx="2" />+ <circle cx="9" cy="9" r="2" />+ <path d="m21 15-5-5L5 21" />+ </svg>+)++export const LinkIcon = (p: P) => (+ <svg {...base(p)}>+ <path d="M10 13a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1" />+ <path d="M14 11a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1" />+ </svg>+)++export const CloseIcon = (p: P) => (+ <svg {...base(p)}>+ <path d="M18 6 6 18" />+ <path d="m6 6 12 12" />+ </svg>+)++export const MinusIcon = (p: P) => (+ <svg {...base(p)}>+ <path d="M5 12h14" />+ </svg>+)++export const DropIcon = (p: P) => (+ <svg {...base(p)}>+ <path d="M12 3v12" />+ <path d="m8 11 4 4 4-4" />+ <path d="M5 21h14" />+ </svg>+)++/** Stacked-files / bundle icon. */+export const BundleIcon = (p: P) => (+ <svg {...base(p)}>+ <rect x="4" y="4" width="12" height="12" rx="2" />+ <path d="M8 2h10a2 2 0 0 1 2 2v10" />+ <path d="M2 8h10a2 2 0 0 1 2 2v10" />+ </svg>+)++export const ChevronUpIcon = (p: P) => (+ <svg {...base(p)}>+ <path d="m18 15-6-6-6 6" />+ </svg>+)diff --git a/src/hooks/useDragOut.ts b/src/hooks/useDragOut.tsnew file mode 100644index 0000000..adc5d2a--- /dev/null+++ b/src/hooks/useDragOut.ts@@ -0,0 +1,21 @@+/**+ * useDragOut — drives the native OS drag from the `dragstart` event.+ *+ * Because the real drag is owned by the OS once it starts, we fire it+ * synchronously inside the `dragstart` handler (no async IPC). The+ * preload bridge uses `ipcRenderer.send` (fire-and-forget) and the main+ * process calls `event.sender.startDrag(...)` — the only Electron path+ * that reliably works on Windows for non-text items.+ *+ * For text items the caller should use the native HTML5 drag API directly+ * (setData on the DataTransfer) and should NOT call this hook.+ */+import { useCallback } from 'react'+import { edge } from '../lib/edge'+import type { DragRequest } from '../../shared/types'++export function useDragOut() {+ return useCallback((req: DragRequest) => {+ edge.startDrag(req)+ }, [])+}diff --git a/src/hooks/useEdgeHover.ts b/src/hooks/useEdgeHover.tsnew file mode 100644index 0000000..a416e6f--- /dev/null+++ b/src/hooks/useEdgeHover.ts@@ -0,0 +1,195 @@+/**+ * useEdgeHover — the heart of the "invisible until you approach the edge" feel.+ *+ * The window is always full-size and normally click-through. We watch the+ * pointer across the whole document:+ *+ * - When the cursor enters the hot band (leftmost `triggerPx` of the screen,+ * within the vertical hot zone) and dwells there for `dwellMs`, we expand+ * the blade and ask main to make the window interactive (no longer+ * click-through).+ * - When the pointer leaves the panel, we wait `graceMs` before collapsing so+ * a slip to a child element doesn't snap it shut. Escape and blur also+ * collapse immediately.+ * - **Drag-aware:** when an OS file drag is active (store `dragActive`), we+ * never schedule a close and we keep the panel interactive so the drop can+ * land. We also listen for `dragenter`/`dragover` of OS files on the+ * document level and immediately open + set interactive, so dragging files+ * toward the edge reveals the shelf even when the panel was collapsed.+ *+ * Settings (hot-zone position/height) come from the store so the user can tune+ * where the trigger lives.+ */+import { useEffect, useRef } from 'react'+import { edge } from '../lib/edge'+import { useStore } from '../store/appStore'++const TRIGGER_PX = 12 // leftmost pixels that count as "the edge"+const DWELL_MS = 120 // how long the cursor must linger to open+const GRACE_MS = 250 // hide delay after leaving, to avoid jitter++export function useEdgeHover(): void {+ const open = useStore((s) => s.open)+ const setOpen = useStore((s) => s.setOpen)+ const settings = useStore((s) => s.settings)+ const dragActive = useStore((s) => s.dragActive)+ const setDragActive = useStore((s) => s.setDragActive)++ const internalDragReq = useStore((s) => s.internalDragReq)++ const openRef = useRef(open)+ openRef.current = open++ const dragActiveRef = useRef(dragActive)+ dragActiveRef.current = dragActive++ const internalDragRef = useRef(!!internalDragReq)+ internalDragRef.current = !!internalDragReq++ // Where (in px) the vertical hot zone starts and ends, recomputed per move.+ const zone = useRef({ top: 0, bottom: 0 })++ useEffect(() => {+ const recomputeZone = () => {+ const h = window.innerHeight+ const frac = settings.hotZoneHeight+ const center = 0.5+ const span = h * frac+ zone.current = {+ top: h * center - span / 2,+ bottom: h * center + span / 2+ }+ }+ recomputeZone()+ window.addEventListener('resize', recomputeZone)+ return () => window.removeEventListener('resize', recomputeZone)+ }, [settings.hotZoneHeight])++ useEffect(() => {+ let dwellTimer: number | undefined+ let graceTimer: number | undefined++ const openPanel = () => {+ if (openRef.current) return+ window.clearTimeout(graceTimer)+ window.clearTimeout(dwellTimer)+ edge.setInteractive(true)+ setOpen(true)+ }++ const scheduleClose = (immediate = false) => {+ // If an external OS file drag is in progress, never close the panel.+ if (dragActiveRef.current && !internalDragRef.current) return++ window.clearTimeout(graceTimer)+ graceTimer = window.setTimeout(() => {+ if (!openRef.current) return+ if (dragActiveRef.current && !internalDragRef.current) return // double-check after timeout+ setOpen(false)+ // Defer disabling interactivity a frame so the collapse animation can+ // run before the window becomes click-through again.+ window.setTimeout(() => edge.setInteractive(false), 220)+ }, immediate ? 0 : GRACE_MS)+ }++ const onMove = (e: PointerEvent) => {+ const { top, bottom } = zone.current+ const inEdge = e.clientX <= TRIGGER_PX+ const inZone = e.clientY >= top && e.clientY <= bottom++ if (inEdge && inZone) {+ if (!dwellTimer) {+ console.log('[EdgeHover] inEdge and inZone, starting dwell timer')+ dwellTimer = window.setTimeout(() => {+ console.log('[EdgeHover] dwell timer fired, calling openPanel')+ dwellTimer = undefined+ openPanel()+ }, DWELL_MS)+ }+ } else {+ if (dwellTimer) console.log('[EdgeHover] aborted dwell timer')+ window.clearTimeout(dwellTimer)+ dwellTimer = undefined++ // Calculate panel bounds to ensure we close if they leave the visual black area.+ const panelHeightFrac = settings.panelHeight || 0.6+ const panelHeightPx = window.innerHeight * panelHeightFrac+ const panelTop = window.innerHeight / 2 - panelHeightPx / 2+ const panelBottom = window.innerHeight / 2 + panelHeightPx / 2++ const outsideX = e.clientX > 280+ const outsideY = e.clientY < panelTop || e.clientY > panelBottom++ if (outsideX || outsideY) {+ if (!graceTimer && openRef.current) console.log(`[EdgeHover] scheduling close, outsideX=${outsideX}, outsideY=${outsideY} (clientY=${e.clientY}, top=${panelTop}, bottom=${panelBottom})`)+ scheduleClose()+ } else {+ window.clearTimeout(graceTimer)+ }+ }+ }++ const onLeave = () => scheduleClose()+ const onKeyDown = (e: KeyboardEvent) => {+ if (e.key === 'Escape' && openRef.current) scheduleClose()+ }++ /** Open the panel immediately when an OS file drag enters the window. */+ const onDocDragEnter = (e: DragEvent) => {+ if (e.dataTransfer?.types.includes('Files')) {+ e.preventDefault()+ setDragActive(true)+ openPanel()+ }+ }++ const onDocDragOver = (e: DragEvent) => {+ if (e.dataTransfer?.types.includes('Files')) {+ e.preventDefault()+ // Keep panel alive during drag.+ window.clearTimeout(graceTimer)+ }+ }++ const onDocDragLeave = (e: DragEvent) => {+ // Only clear if we truly left the document.+ if (!e.relatedTarget) {+ setDragActive(false)+ if (internalDragRef.current) {+ scheduleClose(true)+ }+ }+ }++ const onDocDrop = () => {+ setDragActive(false)+ }++ const onDocDragEnd = () => {+ setDragActive(false)+ }++ document.addEventListener('pointermove', onMove)+ document.addEventListener('pointerleave', onLeave)+ window.addEventListener('keydown', onKeyDown)+ // OS file drag awareness at the document level.+ document.addEventListener('dragenter', onDocDragEnter)+ document.addEventListener('dragover', onDocDragOver)+ document.addEventListener('dragleave', onDocDragLeave)+ document.addEventListener('drop', onDocDrop)+ document.addEventListener('dragend', onDocDragEnd)++ return () => {+ document.removeEventListener('pointermove', onMove)+ document.removeEventListener('pointerleave', onLeave)+ window.removeEventListener('keydown', onKeyDown)+ document.removeEventListener('dragenter', onDocDragEnter)+ document.removeEventListener('dragover', onDocDragOver)+ document.removeEventListener('dragleave', onDocDragLeave)+ document.removeEventListener('drop', onDocDrop)+ document.removeEventListener('dragend', onDocDragEnd)+ window.clearTimeout(dwellTimer)+ window.clearTimeout(graceTimer)+ }+ }, [setOpen, setDragActive])+}diff --git a/src/hooks/useFilteredItems.ts b/src/hooks/useFilteredItems.tsnew file mode 100644index 0000000..ab3261d--- /dev/null+++ b/src/hooks/useFilteredItems.ts@@ -0,0 +1,43 @@+/**+ * useFilteredItems — derives the visible, grouped item list from raw state.+ *+ * Split into Pinned (favorites) and Recent (everything else), then apply the+ * search query. Kept as a selector so components stay presentational.+ */+import { useMemo } from 'react'+import { useStore } from '../store/appStore'+import type { ClipboardItemDto } from '../../shared/types'+import { basename } from '../lib/format'++function matches(it: ClipboardItemDto, q: string): boolean {+ if (!q) return true+ const needle = q.toLowerCase()+ switch (it.data.kind) {+ case 'text':+ return it.data.text.toLowerCase().includes(needle)+ case 'files':+ return it.data.paths.some((p) => basename(p).toLowerCase().includes(needle))+ case 'image':+ return false // images have no searchable text; hidden by query+ }+}++export interface GroupedItems {+ pinned: ClipboardItemDto[]+ recent: ClipboardItemDto[]+}++export function useFilteredItems(): GroupedItems {+ const items = useStore((s) => s.items)+ const query = useStore((s) => s.query)++ return useMemo(() => {+ const pinned: ClipboardItemDto[] = []+ const recent: ClipboardItemDto[] = []+ for (const it of items) {+ if (!matches(it, query.trim())) continue+ ;(it.pinned ? pinned : recent).push(it)+ }+ return { pinned, recent }+ }, [items, query])+}diff --git a/src/lib/edge.ts b/src/lib/edge.tsnew file mode 100644index 0000000..d98ad51--- /dev/null+++ b/src/lib/edge.ts@@ -0,0 +1,21 @@+/**+ * Renderer-side access to the preload bridge.+ *+ * `window.edge` is injected by the preload script via contextBridge. We type it+ * from the shared `EdgeApi` contract so the rest of the renderer code gets full+ * autocomplete and type-safety without importing anything Electron-specific.+ */+import type { EdgeApi } from '../../shared/bridge'++declare global {+ interface Window {+ edge: EdgeApi+ }+}++/** Typed handle onto the bridge; throws early if preload didn't run. */+export const edge: EdgeApi =+ (window as unknown as { edge?: EdgeApi }).edge ??+ (() => {+ throw new Error('window.edge is missing — preload bridge did not load')+ })()diff --git a/src/lib/format.ts b/src/lib/format.tsnew file mode 100644index 0000000..d8595f1--- /dev/null+++ b/src/lib/format.ts@@ -0,0 +1,45 @@+/**+ * Small display helpers for clipboard item previews.+ */++/** Truncate long text for list previews. */+export function previewText(text: string, max = 160): string {+ const single = text.replace(/\s+/g, ' ').trim()+ if (single.length <= max) return single+ return single.slice(0, max - 1) + '…'+}++/** Human-readable byte size. */+export function formatBytes(bytes: number): string {+ if (bytes < 1024) return `${bytes} B`+ if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`+ return `${(bytes / (1024 * 1024)).toFixed(1)} MB`+}++/** Relative time like "just now", "3m ago", "2h ago", or a date. */+export function relativeTime(ts: number): string {+ const diff = Date.now() - ts+ const s = Math.round(diff / 1000)+ if (s < 5) return 'just now'+ if (s < 60) return `${s}s ago`+ const m = Math.round(s / 60)+ if (m < 60) return `${m}m ago`+ const h = Math.round(m / 60)+ if (h < 24) return `${h}h ago`+ const d = Math.round(h / 24)+ if (d < 7) return `${d}d ago`+ return new Date(ts).toLocaleDateString()+}++/** Pull a filename out of a path, cross-platform. */+export function basename(p: string): string {+ const norm = p.replace(/\\/g, '/')+ const parts = norm.split('/').filter(Boolean)+ return parts[parts.length - 1] ?? p+}++/** Is this a path to an image (by extension)? */+const IMG_EXT = /\.(png|jpe?g|gif|webp|bmp|svg|avif|ico)$/i+export function isImagePath(p: string): boolean {+ return IMG_EXT.test(p)+}diff --git a/src/lib/theme.ts b/src/lib/theme.tsnew file mode 100644index 0000000..4b05004--- /dev/null+++ b/src/lib/theme.ts@@ -0,0 +1,9 @@+/**+ * Theme: writes dynamic CSS properties to :root.+ */+++/** Apply reduce-motion preference as a data attribute the CSS can key off. */+export function applyReduceMotion(reduce: boolean): void {+ document.documentElement.dataset.motion = reduce ? 'reduce' : 'full'+}diff --git a/src/main.tsx b/src/main.tsxnew file mode 100644index 0000000..864b79e--- /dev/null+++ b/src/main.tsx@@ -0,0 +1,20 @@+/** React entry — mounts <App/> and pulls in all stylesheet layers. */+import { StrictMode } from 'react'+import { createRoot } from 'react-dom/client'+import App from './App'++// Stylesheet order matters: tokens first, then globals, then components.+import './styles/tokens.css'+import './styles/global.css'+import './styles/panel.css'+import './styles/item.css'+import './styles/settings.css'++const container = document.getElementById('root')+if (!container) throw new Error('#root element not found')++createRoot(container).render(+ <StrictMode>+ <App />+ </StrictMode>+)diff --git a/src/store/appStore.ts b/src/store/appStore.tsnew file mode 100644index 0000000..4fdec2b--- /dev/null+++ b/src/store/appStore.ts@@ -0,0 +1,105 @@+/**+ * Renderer state store (Zustand).+ *+ * Holds the item list + settings and exposes thin actions that call the bridge+ * and update local state optimistically where it's safe. The main process is+ * always the source of truth; it pushes a fresh DTO list after every mutation,+ * so we mostly just *apply* what it sends us.+ */+import { create } from 'zustand'+import { edge } from '../lib/edge'+import type { ClipboardItemDto, Settings } from '../../shared/types'+import { DEFAULT_SETTINGS } from '../../shared/types'++interface AppState {+ items: ClipboardItemDto[]+ settings: Settings+ /** True until the first `state:load` resolves. */+ hydrated: boolean+ /** Free-text search filter (UI-only state). */+ query: string+ /** Whether the panel blade is expanded. */+ open: boolean+ /** Settings sheet visibility. */+ settingsOpen: boolean+ /** True while an OS file drag is hovering the panel (prevents premature close). */+ dragActive: boolean+ /** True if the active drag originated from within the app itself. Stores the drag request (which item/sub-item). */+ internalDragReq: import('../../shared/types').DragRequest | null++ /* hydration + sync */+ hydrate: () => Promise<void>+ setItems: (items: ClipboardItemDto[]) => void+ setSettings: (next: Settings) => void++ /* UI */+ setQuery: (q: string) => void+ setOpen: (open: boolean) => void+ setSettingsOpen: (open: boolean) => void+ setDragActive: (active: boolean) => void+ setInternalDragReq: (req: import('../../shared/types').DragRequest | null) => void++ /* mutations (delegate to main) */+ togglePin: (id: string, pinned: boolean) => Promise<void>+ remove: (id: string) => Promise<void>+ clear: () => Promise<void>+ copy: (id: string) => Promise<void>+ patchSettings: (patch: Partial<Settings>) => Promise<void>+}++export const useStore = create<AppState>((set, get) => ({+ items: [],+ settings: { ...DEFAULT_SETTINGS },+ hydrated: false,+ query: '',+ open: false,+ settingsOpen: false,+ dragActive: false,+ internalDragReq: null,++ async hydrate() {+ const { items, settings } = await edge.loadState()+ set({ items, settings, hydrated: true })+ },++ setItems: (items) => set({ items }),+ setSettings: (next) => set({ settings: next }),++ setQuery: (query) => set({ query }),+ setOpen: (open) => set({ open }),+ setSettingsOpen: (settingsOpen) => set({ settingsOpen }),+ setDragActive: (dragActive) => set({ dragActive }),+ setInternalDragReq: (internalDragReq) => {+ set({ internalDragReq })+ edge.setInternalDrag(!!internalDragReq)+ },++ async togglePin(id, pinned) {+ // Optimistic: flip locally, then let the pushed list confirm.+ set({+ items: get().items.map((it) => (it.id === id ? { ...it, pinned } : it))+ })+ const items = await edge.setPinned(id, pinned)+ set({ items })+ },++ async remove(id) {+ set({ items: get().items.filter((it) => it.id !== id) })+ const items = await edge.deleteItem(id)+ set({ items })+ },++ async clear() {+ const items = await edge.clearItems()+ set({ items })+ },++ async copy(id) {+ await edge.copyItem(id)+ },++ async patchSettings(patch) {+ const next = await edge.updateSettings(patch)+ set({ settings: next })+ }+}))diff --git a/src/styles/global.css b/src/styles/global.cssnew file mode 100644index 0000000..9d9f5fa--- /dev/null+++ b/src/styles/global.css@@ -0,0 +1,92 @@+/**+ * Global reset + base rules.+ *+ * The renderer root is transparent (the window itself is transparent), so we+ * never paint a body background — the blade paints itself via the Panel+ * component. Text selection and native drag ghosts are disabled everywhere so+ * the only drags are the ones we explicitly start.+ */+*,+*::before,+*::after {+ box-sizing: border-box;+ margin: 0;+ padding: 0;+}++html,+body,+#root {+ height: 100%;+ width: 100%;+}++html {+ /* The window is click-through; let pointer events flow but keep our own UI+ interactive when the blade is open. */+ background: transparent;+}++body {+ font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui,+ sans-serif;+ font-size: 13px;+ line-height: 1.45;+ color: var(--text-primary);+ background: transparent;+ overflow: hidden;+ -webkit-font-smoothing: antialiased;+ text-rendering: optimizeLegibility;+ user-select: none;+ -webkit-user-select: none;+ cursor: default;+}++/* No native drag ghosts on media (we own dragging via IPC for items).+ NOTE: do NOT apply -webkit-user-drag: none to '*' — that disables+ dragstart on every element, which breaks our draggable item tiles and+ file sub-rows. Scope it to img/a only, and let .item-main / .file-row+ re-enable dragging explicitly. */+img,+a {+ -webkit-user-drag: none;+}++/* Our draggable surfaces opt back into native dragging. */+.item-main,+.file-row {+ -webkit-user-drag: element;+}++button {+ font: inherit;+ color: inherit;+ background: none;+ border: none;+ cursor: pointer;+}++input {+ font: inherit;+ color: inherit;+}++::-webkit-scrollbar {+ width: 8px;+}+::-webkit-scrollbar-track {+ background: transparent;+}+::-webkit-scrollbar-thumb {+ background: rgba(255, 255, 255, 0.12);+ border-radius: 999px;+}+::-webkit-scrollbar-thumb:hover {+ background: rgba(255, 255, 255, 0.22);+}++/* Respect OS reduced-motion when the user opts in via settings. */+:root[data-motion='reduce'] * {+ transition-duration: 0.01ms !important;+ animation-duration: 0.01ms !important;+}diff --git a/src/styles/item.css b/src/styles/item.cssnew file mode 100644index 0000000..41bd49a--- /dev/null+++ b/src/styles/item.css@@ -0,0 +1,365 @@+/**+ * Premium Clipboard Item Card Styles+ * Deep black, completely colorless, modern, and fluid.+ */++.item {+ position: relative;+ display: flex;+ flex-direction: column;+ margin-bottom: 10px;+ background: rgba(255, 255, 255, 0.03);+ border: 1px solid rgba(255, 255, 255, 0.05);+ border-radius: 16px;+ user-select: none;+ -webkit-user-select: none;+ transition: background 0.3s ease, border-color 0.3s ease;+ overflow: hidden;+}++.item:hover {+ background: rgba(255, 255, 255, 0.06);+ border-color: rgba(255, 255, 255, 0.15);+}++.item.pinned {+ border-color: rgba(255, 255, 255, 0.3);+ background: rgba(255, 255, 255, 0.08);+}++++/* The main row within an item card. Carries the flex layout, padding,+ and cursor. Separate from the outer .item motion.div so that the+ collapsed + expanded sections can animate independently. */+.item-main {+ display: flex;+ align-items: flex-start;+ gap: 12px;+ padding: 14px 16px;+ width: 100%;+ position: relative;+ cursor: pointer;+ transition: background 0.2s ease;+}++.item-main:active {+ transform: scale(0.98);+}++.body {+ flex: 1 1 auto;+ min-width: 0;+ display: flex;+ flex-direction: column;+ gap: 8px;+}++.preview {+ font-size: 14px;+ line-height: 1.5;+ color: rgba(255, 255, 255, 0.9);+ font-weight: 400;+ word-break: break-word;+ white-space: pre-wrap;+ display: -webkit-box;+ -webkit-line-clamp: 3;+ -webkit-box-orient: vertical;+ overflow: hidden;+}+.preview.single {+ -webkit-line-clamp: 1;+ white-space: nowrap;+ text-overflow: ellipsis;+ overflow: hidden;+}++.meta {+ display: flex;+ align-items: center;+ flex-wrap: wrap;+ gap: 10px;+ font-size: 11px;+ color: rgba(255, 255, 255, 0.4);+ font-weight: 500;+ letter-spacing: 0.01em;+}++/* Scroll to top button */+.scroll-top-btn {+ position: fixed;+ bottom: 64px;+ right: 24px;+ width: 44px;+ height: 44px;+ border-radius: 50%;+ background: var(--bg-item);+ border: 1px solid var(--border);+ color: var(--text-primary);+ display: flex;+ align-items: center;+ justify-content: center;+ cursor: pointer;+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);+ z-index: 100;+ backdrop-filter: blur(12px);+ -webkit-backdrop-filter: blur(12px);+ transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);+}++.scroll-top-btn:hover {+ background: var(--bg-hover);+ transform: translateY(-2px);+ box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);+ border-color: rgba(255, 255, 255, 0.3);+}++.scroll-top-btn:active {+ transform: translateY(1px);+}++.bundle-stack {+ display: flex;+ align-items: center;+ gap: 6px;+ color: rgba(255, 255, 255, 0.85);+}++.bundle-stack-large {+ height: 110px;+ position: relative;+ width: 100%;+ margin-top: 4px;+}++.bundle-stack-card {+ position: absolute;+ top: 10px;+ left: 50%;+ margin-left: calc(-50% + 20px);+ width: calc(100% - 40px);+ height: 90px;+ object-fit: cover;+ border-radius: 8px;+ border: 1px solid rgba(255, 255, 255, 0.15);+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);+ transform-origin: bottom center;+}++.bundle-stack-files {+ height: 80px;+ position: relative;+ width: 100%;+ margin-top: 4px;+}++.bundle-file-card {+ position: absolute;+ top: 10px;+ left: 50%;+ margin-left: calc(-50% + 20px);+ width: calc(100% - 40px);+ height: 50px;+ background: rgba(40, 40, 40, 0.95);+ backdrop-filter: blur(8px);+ border-radius: 8px;+ border: 1px solid rgba(255, 255, 255, 0.15);+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);+ transform-origin: bottom center;+ display: flex;+ align-items: center;+ padding: 0 12px;+ gap: 8px;+ color: rgba(255, 255, 255, 0.9);+ font-size: 13px;+}++.kind-badge {+ display: inline-flex;+ align-items: center;+ gap: 4px;+ color: rgba(255, 255, 255, 0.65);+}+.kind-badge.url {+ color: rgba(255, 255, 255, 0.9);+}++/* Image thumbnails */+.thumb {+ width: 100%;+ max-height: 180px;+ object-fit: contain;+ border-radius: 8px;+ background: rgba(0, 0, 0, 0.4);+ pointer-events: none;+}+.thumb-wrap {+ position: relative;+ border-radius: 8px;+ overflow: hidden;+}++/* Floating Actions Pill */+.actions {+ position: absolute;+ top: 50%;+ right: 12px;+ transform: translateY(-50%) translateX(12px) scale(0.95);+ display: flex;+ gap: 4px;+ padding: 4px;+ background: rgba(20, 20, 20, 0.95);+ border: 1px solid rgba(255, 255, 255, 0.1);+ border-radius: 999px;+ backdrop-filter: blur(12px);+ opacity: 0;+ pointer-events: none;+ transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);+ z-index: 20;+}++.item-main:hover .actions,+.item-main:focus-within .actions {+ opacity: 1;+ pointer-events: auto;+ transform: translateY(-50%) translateX(0) scale(1);+}++.act {+ width: 28px;+ height: 28px;+ display: grid;+ place-items: center;+ border-radius: 50%;+ color: rgba(255, 255, 255, 0.6);+ background: transparent;+ transition: all 0.2s ease;+}+.act:hover {+ background: rgba(255, 255, 255, 0.15);+ color: #fff;+}+.act.danger:hover {+ background: rgba(255, 60, 60, 0.2);+ color: #ff6b6b;+}+.act.active {+ color: #fff;+ background: rgba(255, 255, 255, 0.25);+}++/* ------------------------------------------------------------------ */+/* Bundle-specific styles */+/* ------------------------------------------------------------------ */++/* Bundle items use click for expand/collapse instead of double-click copy */+.item.bundle .item-main {+ cursor: pointer; /* click = expand/collapse */+}++/* Collapsed bundle preview stack graphic */+.bundle-preview {+ display: flex;+ align-items: center;+ gap: 8px;+ flex-wrap: wrap;+}++.fluid-bundle {+ width: 100%;+ display: flex;+ flex-direction: column;+}++.fluid-grid {+ display: grid;+ grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));+ gap: 0;+ width: 100%;+ padding-top: 8px;+ padding-bottom: 8px;+ border-radius: 8px;+ overflow: hidden;+}++.fluid-grid-img {+ width: 100%;+ aspect-ratio: 1;+ object-fit: cover;+ cursor: grab;+ border: 1px solid rgba(255, 255, 255, 0.05);+}+.fluid-grid-img:active {+ cursor: grabbing;+}++.fluid-list {+ display: flex;+ flex-direction: column;+ gap: 4px;+ width: 100%;+ padding-top: 8px;+}++.fluid-list-row {+ display: flex;+ align-items: center;+ gap: 8px;+ padding: 8px 12px;+ background: rgba(40, 40, 40, 0.6);+ border-radius: 6px;+ font-size: 13px;+ color: rgba(255, 255, 255, 0.85);+ cursor: grab;+ border: 1px solid rgba(255, 255, 255, 0.05);+}+.fluid-list-row:hover {+ background: rgba(60, 60, 60, 0.8);+}+.fluid-list-row:active {+ cursor: grabbing;+}+.fluid-list-row .subitem-delete-btn {+ opacity: 0.4;+ background: rgba(255, 255, 255, 0.05);+ transition: all 0.2s ease;+}+.fluid-list-row:hover .subitem-delete-btn {+ opacity: 1;+ background: rgba(255, 255, 255, 0.15);+}++.bundle-more-label {+ color: var(--text-tertiary);+ font-size: 12px;+ padding-left: 4px;+ margin-top: 8px;+}++/* Bundle actions (Copy all / Delete) placed at the top when expanded */+.bundle-actions {+ grid-column: 1 / -1;+ display: flex;+ align-items: center;+ justify-content: flex-end;+ gap: 6px;+ padding: 4px 0 8px;+ width: 100%;+ border-bottom: 1px solid rgba(255, 255, 255, 0.04);+ margin-bottom: 4px;+}++.bundle-actions-label {+ font-weight: 500;+}++.actions-pill {+ display: flex;+ gap: 4px;+ padding: 4px;+ background: rgba(20, 20, 20, 0.95);+ border: 1px solid rgba(255, 255, 255, 0.1);+ border-radius: 999px;+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);+}diff --git a/src/styles/panel.css b/src/styles/panel.cssnew file mode 100644index 0000000..3554e00--- /dev/null+++ b/src/styles/panel.css@@ -0,0 +1,208 @@+/**+ * Panel + layout styles — the blade and its chrome.+ *+ * The blade is anchored to the left edge of the transparent window. When open+ * it slides/grows from x=0; when closed it retracts fully off-screen. The+ * layered background + inner light edge gives the "extending from the screen"+ * depth. Actual motion is driven by Framer Motion; these rules define the look.+ */++.root {+ position: fixed;+ inset: 0;+ pointer-events: none; /* Let clicks pass through empty space */+}++.root > * {+ pointer-events: auto; /* Re-enable clicks for the panel itself */+}++/* The blade itself — a tall rounded-right panel. */+.blade {+ position: relative; /* Inside motion wrapper */+ width: var(--panel-width);+ display: flex;+ flex-direction: column;+ border-top-right-radius: 24px;+ border-bottom-right-radius: 24px;+ /* Completely deep black */+ background: #000000;++ /* No back shadow and no edges */+ box-shadow: none;+ overflow: hidden;+ border: none;+ backdrop-filter: blur(20px);+}++/* Reverse curves (flares) connecting blade to screen edge */+.flare-top, .flare-bottom {+ position: absolute;+ left: 0;+ width: 20px;+ height: 20px;+ pointer-events: none;+ z-index: -1;+ /* Slight blur to match glass, though solid bg-1 usually works fine */+}+.flare-top {+ top: -20px;+ background: radial-gradient(circle at 100% 0%, transparent 20px, #000000 20px);+}+.flare-bottom {+ bottom: -20px;+ background: radial-gradient(circle at 100% 100%, transparent 20px, #000000 20px);+}++++/* Header */+.header {+ display: flex;+ align-items: center;+ gap: 10px;+ padding: var(--pad) var(--pad) 10px;+ position: relative;+ z-index: 1;+}++.header .title {+ font-size: 13px;+ font-weight: 600;+ letter-spacing: 0.02em;+ color: var(--text-secondary);+}++.header .spacer {+ flex: 1;+}++.icon-btn {+ width: 30px;+ height: 30px;+ display: grid;+ place-items: center;+ border-radius: var(--radius-pill);+ color: var(--text-secondary);+ transition: background var(--dur-fast) var(--ease-out),+ color var(--dur-fast) var(--ease-out);+}+.icon-btn:hover {+ background: var(--bg-3);+ color: var(--text-primary);+}++/* Search */+.search {+ margin: 0 var(--pad) 6px;+ position: relative;+ z-index: 1;+}+.search input {+ width: 100%;+ height: 36px;+ padding: 0 12px 0 34px;+ background: var(--bg-2);+ border: 1px solid var(--divider);+ border-radius: var(--radius-pill);+ outline: none;+ color: var(--text-primary);+ transition: border-color var(--dur-fast) var(--ease-out),+ box-shadow var(--dur-fast) var(--ease-out);+}+.search input::placeholder {+ color: var(--text-tertiary);+}+.search input:focus {+ border-color: var(--accent);+ box-shadow: 0 0 0 3px var(--accent-glow);+}+.search .search-icon {+ position: absolute;+ left: 11px;+ top: 50%;+ transform: translateY(-50%);+ color: var(--text-tertiary);+ pointer-events: none;+}++/* Scroll area */+.list {+ flex: 1;+ overflow-y: auto;+ overflow-x: hidden;+ padding: 4px var(--pad) var(--pad);+ position: relative;+ z-index: 1;+ scrollbar-width: none; /* Firefox */+}+.list::-webkit-scrollbar {+ display: none; /* Chrome/Safari */+}++.section-label {+ font-size: 11px;+ font-weight: 600;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ color: var(--text-tertiary);+ margin: 14px 4px 8px;+}+.section-label:first-child {+ margin-top: 4px;+}++/* Empty state */+.empty {+ display: flex;+ flex-direction: column;+ align-items: center;+ justify-content: center;+ text-align: center;+ height: 60%;+ gap: 10px;+ color: var(--text-tertiary);+ padding: 0 24px;+}+.empty .big {+ font-size: 15px;+ color: var(--text-secondary);+}+.empty .hint {+ font-size: 12px;+ line-height: 1.6;+}++/* Footer */+.footer {+ display: flex;+ align-items: center;+ gap: 8px;+ padding: 10px var(--pad) var(--pad);+ border-top: 1px solid var(--divider);+ position: relative;+ z-index: 1;+ background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));+}+.footer .count {+ font-size: 11px;+ color: var(--text-tertiary);+}+.footer .spacer {+ flex: 1;+}+.footer .text-btn {+ font-size: 12px;+ color: var(--text-secondary);+ padding: 6px 10px;+ border-radius: var(--radius-pill);+ transition: background var(--dur-fast) var(--ease-out),+ color var(--dur-fast) var(--ease-out);+}+.footer .text-btn:hover {+ background: var(--bg-3);+ color: var(--text-primary);+}+.footer .text-btn.danger:hover {+ color: #ff6b6b;+}diff --git a/src/styles/settings.css b/src/styles/settings.cssnew file mode 100644index 0000000..a7a4b71--- /dev/null+++ b/src/styles/settings.css@@ -0,0 +1,144 @@+/** Settings sheet styling. */+.settings-overlay {+ position: absolute;+ inset: 0;+ background: rgba(0, 0, 0, 0.55);+ backdrop-filter: blur(6px);+ display: grid;+ place-items: center;+ z-index: 20;+ padding: 18px;+}++.settings-sheet {+ width: 100%;+ max-height: 86%;+ overflow-y: auto;+ background: linear-gradient(180deg, var(--bg-2), var(--bg-1));+ border: 1px solid var(--edge-strong);+ border-radius: 18px;+ box-shadow: var(--shadow-blade);+ padding: 4px;+}++.settings-head {+ display: flex;+ align-items: center;+ justify-content: space-between;+ padding: 12px 12px 8px;+ font-weight: 600;+ font-size: 14px;+}++.settings-body {+ display: flex;+ flex-direction: column;+ gap: 16px;+ padding: 6px 14px 16px;+}++.field {+ display: flex;+ flex-direction: column;+ gap: 8px;+}+.field-label {+ font-size: 12px;+ color: var(--text-secondary);+}++.swatches {+ display: flex;+ gap: 10px;+}+.swatch {+ width: 26px;+ height: 26px;+ border-radius: 50%;+ border: 2px solid transparent;+ transition: transform var(--dur-fast) var(--ease-out),+ border-color var(--dur-fast) var(--ease-out);+}+.swatch:hover {+ transform: scale(1.1);+}+.swatch.active {+ border-color: rgba(255, 255, 255, 0.9);+}++.segmented {+ display: flex;+ background: var(--bg-0);+ border: 1px solid var(--divider);+ border-radius: 10px;+ padding: 3px;+ gap: 3px;+}+.segmented button {+ flex: 1;+ padding: 7px 0;+ border-radius: 7px;+ font-size: 12px;+ color: var(--text-secondary);+ transition: background var(--dur-fast) var(--ease-out),+ color var(--dur-fast) var(--ease-out);+}+.segmented button.active {+ background: var(--bg-3);+ color: var(--text-primary);+}++input[type='range'] {+ -webkit-appearance: none;+ width: 100%;+ height: 4px;+ border-radius: 999px;+ background: var(--bg-0);+ outline: none;+}+input[type='range']::-webkit-slider-thumb {+ -webkit-appearance: none;+ width: 16px;+ height: 16px;+ border-radius: 50%;+ background: var(--accent);+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);+ cursor: pointer;+}++.toggle-row {+ display: flex;+ align-items: center;+ justify-content: space-between;+ font-size: 13px;+ color: var(--text-secondary);+ cursor: pointer;+}+.toggle {+ width: 40px;+ height: 22px;+ border-radius: 999px;+ background: var(--bg-0);+ border: 1px solid var(--divider);+ position: relative;+ transition: background var(--dur-fast) var(--ease-out);+}+.toggle .knob {+ position: absolute;+ top: 2px;+ left: 2px;+ width: 16px;+ height: 16px;+ border-radius: 50%;+ background: var(--text-secondary);+ transition: transform var(--dur-fast) var(--ease-spring),+ background var(--dur-fast) var(--ease-out);+}+.toggle.on {+ background: var(--accent);+ border-color: transparent;+}+.toggle.on .knob {+ transform: translateX(18px);+ background: #fff;+}diff --git a/src/styles/tokens.css b/src/styles/tokens.cssnew file mode 100644index 0000000..5f3db3c--- /dev/null+++ b/src/styles/tokens.css@@ -0,0 +1,49 @@+/**+ * Design tokens — the deep-black, macOS-inspired palette.+ *+ * The blade reads as a piece of glass extending out of the screen edge:+ * layered near-black gradients, a 1px inner light edge, soft shadow, and an+ * accent glow. Colors are exposed as CSS custom properties so the theme layer+ * can swap the accent at runtime.+ */+:root {+ /* Base blacks — stacked for depth, never a flat #000. */+ --bg-0: #000000; /* deepest core */+ --bg-1: #060608; /* blade body */+ --bg-2: #0c0c10; /* raised surface */+ --bg-3: #141418; /* hover surface */+ --bg-glass: rgba(12, 12, 16, 0.72); /* frosted backdrop */++ /* Hairlines & inner light edge */+ --edge-light: rgba(255, 255, 255, 0.06);+ --edge-strong: rgba(255, 255, 255, 0.12);+ --divider: rgba(255, 255, 255, 0.07);++ /* Text */+ --text-primary: rgba(255, 255, 255, 0.96);+ --text-secondary: rgba(255, 255, 255, 0.62);+ --text-tertiary: rgba(255, 255, 255, 0.38);++ /* Accent (overridden at runtime by theme.ts) */+ --accent: #8b5cf6;+ --accent-glow: rgba(139, 92, 246, 0.55);++ /* Shape & depth */+ --radius-blade: 22px;+ --radius-card: 14px;+ --radius-pill: 999px;+ --shadow-blade: 0 0 0 1px var(--edge-light), 0 30px 80px rgba(0, 0, 0, 0.65),+ 0 8px 24px rgba(0, 0, 0, 0.5);+ --shadow-card: 0 1px 0 var(--edge-light) inset, 0 6px 18px rgba(0, 0, 0, 0.4);++ /* Motion */+ --ease-out: cubic-bezier(0.22, 1, 0.36, 1);+ --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);+ --dur-fast: 140ms;+ --dur-base: 240ms;++ /* Layout */+ --panel-width: 270px;+ --gap: 12px;+ --pad: 14px;+}diff --git a/tsconfig.json b/tsconfig.jsonnew file mode 100644index 0000000..155ebaa--- /dev/null+++ b/tsconfig.json@@ -0,0 +1,7 @@+{+ "files": [],+ "references": [+ { "path": "./tsconfig.node.json" },+ { "path": "./tsconfig.web.json" }+ ]+}diff --git a/tsconfig.node.json b/tsconfig.node.jsonnew file mode 100644index 0000000..82133b6--- /dev/null+++ b/tsconfig.node.json@@ -0,0 +1,27 @@+{+ "compilerOptions": {+ "composite": true,+ "target": "ES2022",+ "module": "ESNext",+ "moduleResolution": "Bundler",+ "lib": ["ES2022"],+ "types": ["node", "electron-vite/node"],+ "strict": true,+ "noImplicitAny": true,+ "noUnusedLocals": true,+ "noUnusedParameters": true,+ "noFallthroughCasesInSwitch": true,+ "esModuleInterop": true,+ "allowSyntheticDefaultImports": true,+ "resolveJsonModule": true,+ "skipLibCheck": true,+ "forceConsistentCasingInFileNames": true,+ "isolatedModules": true,+ "outDir": "out/ts/node"+ },+ "include": [+ "electron/**/*.ts",+ "shared/**/*.ts",+ "electron.vite.config.ts"+ ]+}diff --git a/tsconfig.web.json b/tsconfig.web.jsonnew file mode 100644index 0000000..38efbe0--- /dev/null+++ b/tsconfig.web.json@@ -0,0 +1,29 @@+{+ "compilerOptions": {+ "composite": true,+ "target": "ES2022",+ "useDefineForClassFields": true,+ "module": "ESNext",+ "moduleResolution": "Bundler",+ "lib": ["ES2022", "DOM", "DOM.Iterable"],+ "jsx": "react-jsx",+ "types": ["vite/client"],+ "strict": true,+ "noImplicitAny": true,+ "noUnusedLocals": true,+ "noUnusedParameters": true,+ "noFallthroughCasesInSwitch": true,+ "esModuleInterop": true,+ "allowSyntheticDefaultImports": true,+ "resolveJsonModule": true,+ "skipLibCheck": true,+ "forceConsistentCasingInFileNames": true,+ "isolatedModules": true,+ "outDir": "out/ts/web"+ },+ "include": [+ "src/**/*.ts",+ "src/**/*.tsx",+ "shared/**/*.ts"+ ]+}