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
fix: quote launch-at-login, shrink the installer, and dismiss preview without paste
Deepender2538ad585dc0ef
diff --git a/public/Logo (4).png b/.github/readme/Logo (4).pngsimilarity index 100%rename from public/Logo (4).pngrename to .github/readme/Logo (4).pngdiff --git a/public/Logo.gif b/.github/readme/Logo.gifsimilarity index 100%rename from public/Logo.gifrename to .github/readme/Logo.gifdiff --git a/public/browser-demo.gif b/.github/readme/browser-demo.gifsimilarity index 100%rename from public/browser-demo.gifrename to .github/readme/browser-demo.gifdiff --git a/public/file-stacks-demo.gif b/.github/readme/file-stacks-demo.gifsimilarity index 100%rename from public/file-stacks-demo.gifrename to .github/readme/file-stacks-demo.gifdiff --git a/public/kofi-qr.png b/.github/readme/kofi-qr.pngsimilarity index 100%rename from public/kofi-qr.pngrename to .github/readme/kofi-qr.pngdiff --git a/public/open.gif b/.github/readme/open.gifsimilarity index 100%rename from public/open.gifrename to .github/readme/open.gifdiff --git a/public/paste.gif b/.github/readme/paste.gifsimilarity index 100%rename from public/paste.gifrename to .github/readme/paste.gifdiff --git a/public/preview.gif b/.github/readme/preview.gifsimilarity index 100%rename from public/preview.gifrename to .github/readme/preview.gifdiff --git a/public/stack.gif b/.github/readme/stack.gifsimilarity index 100%rename from public/stack.gifrename to .github/readme/stack.gifdiff --git a/public/ungroup.gif b/.github/readme/ungroup.gifsimilarity index 100%rename from public/ungroup.gifrename to .github/readme/ungroup.gifdiff --git a/public/upi-sponsor-qr.png b/.github/readme/upi-sponsor-qr.pngsimilarity index 100%rename from public/upi-sponsor-qr.pngrename to .github/readme/upi-sponsor-qr.pngdiff --git a/README.md b/README.mdindex 588a700..3141a5e 100644--- a/README.md+++ b/README.md@@ -1,5 +1,5 @@<p align="center">- <img src="public/Logo.gif" alt="Edge-Drop Logo" width="220" style="max-width: 100%; height: auto;" />+ <img src=".github/readme/Logo.gif" alt="Edge-Drop Logo" width="220" style="max-width: 100%; height: auto;" /></p><h1 align="center">Edge-Drop</h1>@@ -71,7 +71,7 @@ It is built for the developer and creative workflow where you constantly juggle</p><p align="center">- <img src="https://raw.githubusercontent.com/Deepender25/Edge-Drop/main/public/open.gif" alt="Full Overview: Welcome to Edge-Drop" width="85%" />+ <img src="https://raw.githubusercontent.com/Deepender25/Edge-Drop/main/.github/readme/open.gif" alt="Full Overview: Welcome to Edge-Drop" width="85%" /></p><br/>@@ -81,36 +81,36 @@ It is built for the developer and creative workflow where you constantly juggle<td width="50%" align="center"><b>1. Collect Anything</b><br/><sub>Captures text, high-res images, files, and links in real time.</sub><br/><br/>- <img src="https://raw.githubusercontent.com/Deepender25/Edge-Drop/main/public/browser-demo.gif" width="100%" alt="Collect Anything" />+ <img src="https://raw.githubusercontent.com/Deepender25/Edge-Drop/main/.github/readme/browser-demo.gif" width="100%" alt="Collect Anything" /></td><td width="50%" align="center"><b>2. Drag & Drop Anywhere</b><br/><sub>Drag items directly into any app or workspace.</sub><br/><br/>- <img src="https://raw.githubusercontent.com/Deepender25/Edge-Drop/main/public/paste.gif" width="100%" alt="Drag & Drop Anywhere" />+ <img src="https://raw.githubusercontent.com/Deepender25/Edge-Drop/main/.github/readme/paste.gif" width="100%" alt="Drag & Drop Anywhere" /></td></tr><tr><td width="50%" align="center"><b>3. Copy Multiple Files</b><br/><sub>Select several files at once and drop them wherever you need.</sub><br/><br/>- <img src="https://raw.githubusercontent.com/Deepender25/Edge-Drop/main/public/file-stacks-demo.gif" width="100%" alt="Copy Multiple Files" />+ <img src="https://raw.githubusercontent.com/Deepender25/Edge-Drop/main/.github/readme/file-stacks-demo.gif" width="100%" alt="Copy Multiple Files" /></td><td width="50%" align="center"><b>4. Ungroup & Split Stacks</b><br/><sub>Break file packages into individual standalone clipboard cards.</sub><br/><br/>- <img src="https://raw.githubusercontent.com/Deepender25/Edge-Drop/main/public/ungroup.gif" width="100%" alt="Ungroup & Split Stacks" />+ <img src="https://raw.githubusercontent.com/Deepender25/Edge-Drop/main/.github/readme/ungroup.gif" width="100%" alt="Ungroup & Split Stacks" /></td></tr><tr><td width="50%" align="center"><b>5. Combine & Merge Items</b><br/><sub>Select and merge multiple clipboard items into a single stack.</sub><br/><br/>- <img src="https://raw.githubusercontent.com/Deepender25/Edge-Drop/main/public/stack.gif" width="100%" alt="Combine & Merge Items" />+ <img src="https://raw.githubusercontent.com/Deepender25/Edge-Drop/main/.github/readme/stack.gif" width="100%" alt="Combine & Merge Items" /></td><td width="50%" align="center"><b>6. Quick Preview Flyout</b><br/><sub>Inspect high-res images, formatted text, and code with zoom.</sub><br/><br/>- <img src="https://raw.githubusercontent.com/Deepender25/Edge-Drop/main/public/preview.gif" width="100%" alt="Quick Preview Flyout" />+ <img src="https://raw.githubusercontent.com/Deepender25/Edge-Drop/main/.github/readme/preview.gif" width="100%" alt="Quick Preview Flyout" /></td></tr></table>@@ -136,12 +136,12 @@ It is built for the developer and creative workflow where you constantly juggle<tr><td align="center" style="border: none; padding: 5px 15px 15px; vertical-align: middle;"><a href="https://ko-fi.com/deepender" target="_blank">- <img src="public/kofi-qr.png" alt="Scan or Click for Ko-fi Support" width="160" style="border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.3);" />+ <img src=".github/readme/kofi-qr.png" alt="Scan or Click for Ko-fi Support" width="160" style="border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.3);" /></a></td><td align="center" style="border: none; padding: 5px 15px 15px; vertical-align: middle;"><a href="https://www.edgedrop.app/supportedgedrop/upi" target="_blank">- <img src="public/upi-sponsor-qr.png" alt="Scan or Click for UPI Donation Page" width="160" style="border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.3);" />+ <img src=".github/readme/upi-sponsor-qr.png" alt="Scan or Click for UPI Donation Page" width="160" style="border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.3);" /></a></td></tr>diff --git a/edge-drop-translations/ru.json b/edge-drop-translations/ru.jsonindex 3b1699f..bd339bd 100644--- a/edge-drop-translations/ru.json+++ b/edge-drop-translations/ru.json@@ -2,7 +2,7 @@"filters": {"all": "Все","text": "Текст",- "links": "Лінки",+ "links": "Ссылки","images": "Фото","files": "Файлы"},diff --git a/electron/main/loginItems.ts b/electron/main/loginItems.tsindex 9f2f5d5..adf3ce0 100644--- a/electron/main/loginItems.ts+++ b/electron/main/loginItems.ts@@ -9,6 +9,7 @@* getStatus / enable (RequestEnableAsync) / disable. Same API as* electron-winstore-auto-launch. Electron setLoginItemSettings is not used.*/+import { execFileSync } from 'node:child_process'import { app } from 'electron'import { isStoreBuild } from './config'import { loadSettings, saveSettings } from '../store/settings'@@ -49,6 +50,40 @@ export function isOurLoginExe(candidate: string | undefined, exePath: string): breturn normalizeLoginPath(candidate) === normalizeLoginPath(exePath)}+/**+ * HKCU Run command. The exe path MUST be quoted so Windows does not split on+ * spaces in the user profile (`C:\Users\Renato Souza\...`). `--hidden` stays+ * outside the quotes. Electron's setLoginItemSettings writes the path bare,+ * which is a 0.3.0 regression vs 0.2.9.+ */+export function formatGithubRunCommand(exePath: string): string {+ const bare = exePath.trim().replace(/^"(.*)"$/, '$1')+ return `"${bare}" --hidden`+}++function writeQuotedGithubRunCommand(exePath: string): void {+ if (process.platform !== 'win32') return+ try {+ execFileSync(+ 'reg',+ [+ 'add',+ 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run',+ '/v',+ CANONICAL_LOGIN_ITEM_NAME,+ '/t',+ 'REG_SZ',+ '/d',+ formatGithubRunCommand(exePath),+ '/f'+ ],+ { windowsHide: true, stdio: 'ignore' }+ )+ } catch (err) {+ console.error('[LoginItems] Failed to quote Run-key command:', err)+ }+}+function resultFromState(state: number | null, wantEnabled?: boolean): LaunchAtLoginResult {if (state === null) {if (wantEnabled === undefined) {@@ -116,6 +151,8 @@ function applyGithubLaunchAtLogin(wantLaunch: boolean): LaunchAtLoginResult {name: CANONICAL_LOGIN_ITEM_NAME,enabled: true})+ // Electron writes an unquoted path. Re-write so usernames with spaces launch.+ writeQuotedGithubRunCommand(exePath)const read = readGithubLaunchAtLogin()if (read.blockedByUser) return { ...read, ok: false }return { enabled: true, blockedByUser: false, ok: true }diff --git a/package-lock.json b/package-lock.jsonindex 8a9f9da..5a91fb0 100644--- a/package-lock.json+++ b/package-lock.json@@ -9,25 +9,19 @@"version": "0.3.1","license": "Apache-2.0","dependencies": {- "@fontsource/jetbrains-mono": "^5.3.0",- "@fontsource/plus-jakarta-sans": "^5.3.0",- "@iconify-json/cuida": "^1.2.5",- "@iconify/react": "^6.0.2",- "@radix-ui/react-scroll-area": "^1.2.13",- "@radix-ui/react-separator": "^1.1.11","@resvg/resvg-js": "^2.6.2","electron-updater": "^6.8.9",- "emoji-datasource-twitter": "^16.0.0",- "framer-motion": "^11.0.24",- "gsap": "^3.15.0","koffi": "^3.1.2",- "lucide-react": "^1.26.0","react": "^18.2.0",- "react-dom": "^18.2.0",- "svg-path-bbox": "^2.1.0","zustand": "^4.5.2"},"devDependencies": {+ "@fontsource/jetbrains-mono": "^5.3.0",+ "@fontsource/plus-jakarta-sans": "^5.3.0",+ "@iconify-json/cuida": "^1.2.5",+ "@iconify/react": "^6.0.2",+ "@radix-ui/react-scroll-area": "^1.2.13",+ "@radix-ui/react-separator": "^1.1.11","@types/node": "^20.11.30","@types/react": "^18.2.73","@types/react-dom": "^18.2.22",@@ -36,6 +30,12 @@"electron": "^34.2.0","electron-builder": "^26.15.3","electron-vite": "^2.1.0",+ "emoji-datasource-twitter": "^16.0.0",+ "framer-motion": "^11.0.24",+ "gsap": "^3.15.0",+ "lucide-react": "^1.26.0",+ "react-dom": "^18.2.0",+ "svg-path-bbox": "^2.1.0","typescript": "^5.4.3","vite": "^5.2.6","vitest": "^4.1.10"@@ -1131,6 +1131,7 @@"version": "5.3.0","resolved": "https://registry.npmjs.org/@fontsource/jetbrains-mono/-/jetbrains-mono-5.3.0.tgz","integrity": "sha512-fqDfB5I9f1p1TV486aUgB9t8zP84P0O1FtQR5Ol9vjwPy+S+EIGlVYm1cvj2W5shcZMTg2nZFdVMoH5wFu8a1A==",+ "dev": true,"license": "OFL-1.1","funding": {"url": "https://github.com/sponsors/ayuhito"@@ -1140,6 +1141,7 @@"version": "5.3.0","resolved": "https://registry.npmjs.org/@fontsource/plus-jakarta-sans/-/plus-jakarta-sans-5.3.0.tgz","integrity": "sha512-9WRw3G74Ve4cyPApAZSXLPY5DiLOZXDn7Q7dIBjFBpA0Pj56ljDItEdy2UUajjJxRuTg2HkMLO5C3K2nAQORWg==",+ "dev": true,"license": "OFL-1.1","funding": {"url": "https://github.com/sponsors/ayuhito"@@ -1149,6 +1151,7 @@"version": "1.2.5","resolved": "https://registry.npmjs.org/@iconify-json/cuida/-/cuida-1.2.5.tgz","integrity": "sha512-+LCnHk53WIw9uTcskDT5Kpjwj8wEEI1YLNeX/yLdksQAt8VOOcIeZnRMmW0drnu8GK8SFw6IXu7CZdx7Kqnwqw==",+ "dev": true,"license": "Apache-2.0","dependencies": {"@iconify/types": "*"@@ -1158,6 +1161,7 @@"version": "6.0.2","resolved": "https://registry.npmjs.org/@iconify/react/-/react-6.0.2.tgz","integrity": "sha512-SMmC2sactfpJD427WJEDN6PMyznTFMhByK9yLW0gOTtnjzzbsi/Ke/XqsumsavFPwNiXs8jSiYeZTmLCLwO+Fg==",+ "dev": true,"license": "MIT","dependencies": {"@iconify/types": "^2.0.0"@@ -1173,6 +1177,7 @@"version": "2.0.0","resolved": "https://registry.npmjs.org/@iconify/types/-/types-2.0.0.tgz","integrity": "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==",+ "dev": true,"license": "MIT"},"node_modules/@isaacs/fs-minipass": {@@ -1654,18 +1659,21 @@"version": "1.1.2","resolved": "https://registry.npmjs.org/@radix-ui/number/-/number-1.1.2.tgz","integrity": "sha512-ceTwaxc4I5IOi97DgCotl3pqiyRGvffcc0oOsE2dQYaJOFIDsDt4VWG6xEbg1QePv9QWausCEIppud/tJ1wNig==",+ "dev": true,"license": "MIT"},"node_modules/@radix-ui/primitive": {"version": "1.1.4","resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.4.tgz","integrity": "sha512-7AdCK9PQyiljKoBDbN8OuctCbd/esdwZPQ8RtOE3SsyQtUpiPb+ND75q0jEhC1m1ecBI0MFNeLJvwIh9iKHRcQ==",+ "dev": true,"license": "MIT"},"node_modules/@radix-ui/react-compose-refs": {"version": "1.1.3","resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.3.tgz","integrity": "sha512-rYOP8OMnuuPMQF1uhPVlGNcCDlkokKqGFE3JcxFViIkAXP7EvFWUliJAstrapypaBLJNHbZL6jGhbVDGTwmVhA==",+ "dev": true,"license": "MIT","peerDependencies": {"@types/react": "*",@@ -1681,6 +1689,7 @@"version": "1.1.4","resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.4.tgz","integrity": "sha512-QwH4PO5urrbO+FaGd5Aglg+YJgWTyyuZ3g/6mKvsqraLkglDdckw9JafgL5McL5VEJ6EPNduPaT3ZE9BttDAqg==",+ "dev": true,"license": "MIT","peerDependencies": {"@types/react": "*",@@ -1696,6 +1705,7 @@"version": "1.1.2","resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.1.2.tgz","integrity": "sha512-C3vFhbyi4SW3PmbAi6Awpu4OzJtd0MxGurvSsYtr7p7nM8RNB3VAF3CUmnp2j50knpkrRcB7+ycVXzgLgF6yNA==",+ "dev": true,"license": "MIT","peerDependencies": {"@types/react": "*",@@ -1711,6 +1721,7 @@"version": "1.1.6","resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.6.tgz","integrity": "sha512-zdTk4PlUO0E18HnZ3wYbW0KkJJxWCdiNYp6g6X1PtONFhxVkg01vliTJAmwIszU6mHiyBOoW9P0rAugl5/hULQ==",+ "dev": true,"license": "MIT","dependencies": {"@radix-ui/react-use-layout-effect": "1.1.2"@@ -1734,6 +1745,7 @@"version": "2.1.7","resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.7.tgz","integrity": "sha512-bC3NiwsprbxKjuon9l7X6BUTw7FPVzEYaL92MPEY5SCd/9hUTPXVFtVwRix7778wtRsVao+zE062gL79FZleeQ==",+ "dev": true,"license": "MIT","dependencies": {"@radix-ui/react-slot": "1.3.0"@@ -1757,6 +1769,7 @@"version": "1.2.13","resolved": "https://registry.npmjs.org/@radix-ui/react-scroll-area/-/react-scroll-area-1.2.13.tgz","integrity": "sha512-7tncSubo2G0UY1e8rk+72qe3XRzrGnOLtZQ1PL1KoBfRUNX0NrJT5akb+0kfwSCc3gVR4wdHqyhAQBDpDNOwDw==",+ "dev": true,"license": "MIT","dependencies": {"@radix-ui/number": "1.1.2",@@ -1788,6 +1801,7 @@"version": "1.1.11","resolved": "https://registry.npmjs.org/@radix-ui/react-separator/-/react-separator-1.1.11.tgz","integrity": "sha512-jRhe86+8PF7VZ1u14eOWVOuh2BuAhALg/FT1VcMC4OHedMTRUazDnDlKTt+yxo5cRNKHMfmvZ4sSQtWDeMV4CQ==",+ "dev": true,"license": "MIT","dependencies": {"@radix-ui/react-primitive": "2.1.7"@@ -1811,6 +1825,7 @@"version": "1.3.0","resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.3.0.tgz","integrity": "sha512-MojKku4U/miO8Av4Dkb+ctMAQx7JmY96LmtDQlAarCRtd7rN52QCSzBF+XAvr5S6coSVj9HEPBgHAHKEJVk/WA==",+ "dev": true,"license": "MIT","dependencies": {"@radix-ui/react-compose-refs": "1.1.3"@@ -1829,6 +1844,7 @@"version": "1.1.2","resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.2.tgz","integrity": "sha512-xCso9j1/u8sEgP1RNHjFrXJLApL8LiqOkI1R4ywuN00rxWdYg4oQXuwKLS3i0j5NWLromUD27/4nlxj2UFVvIw==",+ "dev": true,"license": "MIT","peerDependencies": {"@types/react": "*",@@ -1844,6 +1860,7 @@"version": "1.1.2","resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.2.tgz","integrity": "sha512-jrBWOxZITuGcnjRCM2t2U5ZPkCLxD+Ym6DjfssS5haTj2iiak/DOb64JeN6OdLfLgptb6/e2kKR+ZuTrGoZTPA==",+ "dev": true,"license": "MIT","peerDependencies": {"@types/react": "*",@@ -2894,7 +2911,7 @@"version": "18.3.7","resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz","integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==",- "devOptional": true,+ "dev": true,"license": "MIT","peerDependencies": {"@types/react": "^18.0.0"@@ -4440,6 +4457,7 @@"version": "16.0.0","resolved": "https://registry.npmjs.org/emoji-datasource-twitter/-/emoji-datasource-twitter-16.0.0.tgz","integrity": "sha512-7F+uCuHH+7Qnrc15P5tnbvKkg9E6tlzi4MnT2uW1RlN4pLYTza6cP/dstIfSDMtpjFLWuZewWg8jBbuL2eyELQ==",+ "dev": true,"license": "MIT"},"node_modules/emoji-regex": {@@ -4764,6 +4782,7 @@"version": "11.18.2","resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.18.2.tgz","integrity": "sha512-5F5Och7wrvtLVElIpclDT0CBzMVg3dL22B64aZwHtsIY8RB4mXICLrkajK4G9R+ieSAGcgrLeae2SeUTg2pr6w==",+ "dev": true,"license": "MIT","dependencies": {"motion-dom": "^11.18.1",@@ -5062,6 +5081,7 @@"version": "3.15.0","resolved": "https://registry.npmjs.org/gsap/-/gsap-3.15.0.tgz","integrity": "sha512-dMW4CWBTUK1AEEDeZc1g4xpPGIrSf9fJF960qbTZmN/QwZIWY5wgliS6JWl9/25fpTGJrMRtSjGtOmPnfjZB+A==",+ "dev": true,"license": "Standard 'no charge' license: https://gsap.com/standard-license."},"node_modules/has-flag": {@@ -5766,6 +5786,7 @@"version": "1.26.0","resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-1.26.0.tgz","integrity": "sha512-raglYVR2+VkMfJL158krjVmE+rV5ST2lzA/KQm1FRSjMHT4MnWaegHxoVEpmc2So3nOEhp9oGejJwAPX8MoAjg==",+ "dev": true,"license": "ISC","peerDependencies": {"react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"@@ -5918,6 +5939,7 @@"version": "11.18.1","resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-11.18.1.tgz","integrity": "sha512-g76KvA001z+atjfxczdRtw/RXOM3OMSdd1f4DL77qCTF/+avrRJiawSG4yDibEQ215sr9kpinSlX2pCTJ9zbhw==",+ "dev": true,"license": "MIT","dependencies": {"motion-utils": "^11.18.1"@@ -5927,6 +5949,7 @@"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==",+ "dev": true,"license": "MIT"},"node_modules/ms": {@@ -6452,6 +6475,7 @@"version": "18.3.1","resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz","integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",+ "dev": true,"license": "MIT","dependencies": {"loose-envify": "^1.1.0",@@ -6718,6 +6742,7 @@"version": "0.23.2","resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz","integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",+ "dev": true,"license": "MIT","dependencies": {"loose-envify": "^1.1.0"@@ -6969,6 +6994,7 @@"version": "2.1.0","resolved": "https://registry.npmjs.org/svg-path-bbox/-/svg-path-bbox-2.1.0.tgz","integrity": "sha512-PEoSQFbBvL7FOCE4cN8Knej6L7bXdNkjPcUYsfMMpq0HpnqiO0sE2mcXTd7LX160aOyh5HbaeN/SoY8thMk5Kg==",+ "dev": true,"license": "BSD-3-Clause","dependencies": {"svgpath": "^2.6.0"@@ -6984,6 +7010,7 @@"version": "2.6.0","resolved": "https://registry.npmjs.org/svgpath/-/svgpath-2.6.0.tgz","integrity": "sha512-OIWR6bKzXvdXYyO4DK/UWa1VA1JeKq8E+0ug2DG98Y/vOmMpfZNj+TIG988HjfYSqtcy/hFOtZq/n/j5GSESNg==",+ "dev": true,"license": "MIT","funding": {"url": "https://github.com/fontello/svg2ttf?sponsor=1"@@ -7201,6 +7228,7 @@"version": "2.8.1","resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz","integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",+ "dev": true,"license": "0BSD"},"node_modules/type-fest": {diff --git a/package.json b/package.jsonindex 61fc471..2c2e82a 100644--- a/package.json+++ b/package.json@@ -30,9 +30,23 @@},"files": ["out/**/*",+ "!out/renderer/**/*.gif","resources/**/*","!resources/startup/**/*.exe",- "package.json"+ "!resources/startup/**/*.cs",+ "!resources/appx/**",+ "package.json",+ "!**/node_modules/emoji-datasource-twitter/**",+ "!**/node_modules/lucide-react/**",+ "!**/node_modules/gsap/**",+ "!**/node_modules/framer-motion/**",+ "!**/node_modules/@fontsource/**",+ "!**/node_modules/@iconify-json/**",+ "!**/node_modules/@iconify/react/**",+ "!**/node_modules/@radix-ui/**",+ "!**/node_modules/svg-path-bbox/**",+ "!**/node_modules/react-dom/**",+ "!**/node_modules/koffi/doc/**"],"extraResources": [{@@ -95,6 +109,12 @@}},"devDependencies": {+ "@fontsource/jetbrains-mono": "^5.3.0",+ "@fontsource/plus-jakarta-sans": "^5.3.0",+ "@iconify-json/cuida": "^1.2.5",+ "@iconify/react": "^6.0.2",+ "@radix-ui/react-scroll-area": "^1.2.13",+ "@radix-ui/react-separator": "^1.1.11","@types/node": "^20.11.30","@types/react": "^18.2.73","@types/react-dom": "^18.2.22",@@ -103,27 +123,21 @@"electron": "^34.2.0","electron-builder": "^26.15.3","electron-vite": "^2.1.0",+ "emoji-datasource-twitter": "^16.0.0",+ "framer-motion": "^11.0.24",+ "gsap": "^3.15.0",+ "lucide-react": "^1.26.0",+ "react-dom": "^18.2.0",+ "svg-path-bbox": "^2.1.0","typescript": "^5.4.3","vite": "^5.2.6","vitest": "^4.1.10"},"dependencies": {- "@fontsource/jetbrains-mono": "^5.3.0",- "@fontsource/plus-jakarta-sans": "^5.3.0",- "@iconify-json/cuida": "^1.2.5",- "@iconify/react": "^6.0.2",- "@radix-ui/react-scroll-area": "^1.2.13",- "@radix-ui/react-separator": "^1.1.11","@resvg/resvg-js": "^2.6.2","electron-updater": "^6.8.9",- "emoji-datasource-twitter": "^16.0.0",- "framer-motion": "^11.0.24",- "gsap": "^3.15.0","koffi": "^3.1.2",- "lucide-react": "^1.26.0","react": "^18.2.0",- "react-dom": "^18.2.0",- "svg-path-bbox": "^2.1.0","zustand": "^4.5.2"}}diff --git a/src/components/ClipboardItem.tsx b/src/components/ClipboardItem.tsxindex 5d5cdf3..2648fa7 100644--- a/src/components/ClipboardItem.tsx+++ b/src/components/ClipboardItem.tsx@@ -117,6 +117,10 @@ const ClipboardItemBase = forwardRef<HTMLDivElement, Props>(({ item }, ref) => {const onPaste = useCallback((e?: React.MouseEvent) => {e?.stopPropagation()+ // Safety guard: NEVER paste if this card is currently previewing (blurred)+ if (useStore.getState().previewItemId === item.id) {+ return+ }tryPaste(() => paste(item.id))}, [paste, item.id])@@ -162,13 +166,16 @@ const ClipboardItemBase = forwardRef<HTMLDivElement, Props>(({ item }, ref) => {}, [item.data.kind, isPreviewing, item.id])const pointerStartRef = useRef<{ x: number; y: number; moved: boolean } | null>(null)+ const wasPreviewingRef = useRef(false)const handlePointerDown = useCallback((e: React.PointerEvent) => {+ // Track if THIS card was the actively previewed (blurred) card when pointer clicked+ wasPreviewingRef.current = (useStore.getState().previewItemId === item.id) || isPreviewingif (e.button === 0) {pointerStartRef.current = { x: e.clientX, y: e.clientY, moved: false }}handlePrestage()- }, [handlePrestage])+ }, [isPreviewing, item.id, handlePrestage])const handlePointerMove = useCallback((e: React.PointerEvent) => {if (!pointerStartRef.current) return@@ -187,13 +194,32 @@ const ClipboardItemBase = forwardRef<HTMLDivElement, Props>(({ item }, ref) => {}pointerStartRef.current = null- if (isPreviewing) return+ // In that particular scenario only:+ // When this card is open in preview flyout (blurred), clicking it only+ // minimizes the preview flyout and does NOT paste+ const currentPreviewId = useStore.getState().previewItemId+ if (currentPreviewId === item.id || isPreviewing || wasPreviewingRef.current) {+ wasPreviewingRef.current = false+ e.stopPropagation()+ e.preventDefault()+ playCardExpandSound(false)+ useStore.getState().setPreviewItemId(null)+ return+ }+ wasPreviewingRef.current = false++ // If another card was previewing and user clicked this card to paste:+ // Dismiss the other card's preview and proceed with pasting this card+ if (currentPreviewId && currentPreviewId !== item.id) {+ useStore.getState().setPreviewItemId(null)+ }+if (isBundle && !expanded) {onExpand(e)} else if (!isBundle) {onPaste(e)}- }, [isPreviewing, isBundle, expanded, onExpand, onPaste])+ }, [isPreviewing, isBundle, expanded, onExpand, onPaste, item.id])return (<motion.divdiff --git a/src/components/PreviewFlyout.tsx b/src/components/PreviewFlyout.tsxindex 65510f4..8934c79 100644--- a/src/components/PreviewFlyout.tsx+++ b/src/components/PreviewFlyout.tsx@@ -99,6 +99,37 @@ export function PreviewFlyout({ isRight }: { isRight: boolean }) {}}, [item?.id, panelTop, panelH])+ // Dismiss preview flyout when user clicks inside the clipboard shelf (outside the flyout)+ useEffect(() => {+ if (!previewItemId) return++ const handlePointerDown = (e: PointerEvent) => {+ const target = e.target as Element | null+ if (!target || typeof target.closest !== 'function') return++ // Keep open if interaction is inside the preview flyout itself+ if (target.closest('[data-preview-flyout], .preview-flyout')) {+ return+ }++ // If clicked on any item card: let the card's handleCardClick handle it cleanly without race conditions+ if (target.closest('.item-main, .item-card')) {+ return+ }++ // Clicked inside the clipboard shelf (.blade, .root, .header, empty list space, footer, etc.)+ const inClipboard = Boolean(target.closest('.blade') || target.closest('.root'))+ if (inClipboard) {+ useStore.getState().setPreviewItemId(null)+ }+ }++ document.addEventListener('pointerdown', handlePointerDown, true)+ return () => {+ document.removeEventListener('pointerdown', handlePointerDown, true)+ }+ }, [previewItemId])+const handleDragOver = (e: React.DragEvent) => {const activeDrag = useStore.getState().internalDragReqif (item && activeDrag && activeDrag.id !== item.id) {diff --git a/src/i18n/translations.ts b/src/i18n/translations.tsindex 543098a..4918f29 100644--- a/src/i18n/translations.ts+++ b/src/i18n/translations.ts@@ -2080,7 +2080,7 @@ export const ru: TranslationKeys = {"filters": {"all": "Все","text": "Текст",- "links": "Лінки",+ "links": "Ссылки","images": "Фото","files": "Файлы"},diff --git a/src/styles/item.css b/src/styles/item.cssindex 3b327a7..f0beb3c 100644--- a/src/styles/item.css+++ b/src/styles/item.css@@ -385,12 +385,12 @@/* Card is actively being previewed — dim body so flyout takes focus */.item-main.previewing {- cursor: default;+ cursor: pointer;}.item-main.previewing .body {opacity: 0.45;- pointer-events: none;+ pointer-events: auto;user-select: none;/* Use calc with --dpr to ensure consistent *visual* blur while saving GPU on 4K */filter: blur(calc(3px / var(--dpr, 1)));diff --git a/tests/storeLoginApply.test.ts b/tests/storeLoginApply.test.tsindex d346620..ee369a4 100644--- a/tests/storeLoginApply.test.ts+++ b/tests/storeLoginApply.test.ts@@ -6,6 +6,10 @@ const store = vi.hoisted(() => ({disable: vi.fn(async () => 0 as number | null)}))+const child = vi.hoisted(() => ({+ execFileSync: vi.fn()+}))+const mocks = vi.hoisted(() => ({isPackaged: true,exePath: 'C:\\Program Files\\WindowsApps\\Deepender.EdgeDrop_0.3.0.0_x64__aqnvcnjbf5ns8\\app\\Edge-Drop.exe',@@ -43,7 +47,16 @@ vi.mock('../electron/main/storeStartup', () => ({}}))-import { applyLaunchAtLogin, refreshLaunchAtLoginFromOs } from '../electron/main/loginItems'+vi.mock('node:child_process', async (importOriginal) => {+ const actual = await importOriginal<typeof import('node:child_process')>()+ return {+ ...actual,+ execFileSync: (...args: unknown[]) => child.execFileSync(...args)+ }+})++import { app } from 'electron'+import { applyLaunchAtLogin, reconcileLaunchAtLoginOnStartup, refreshLaunchAtLoginFromOs } from '../electron/main/loginItems'describe('Store applyLaunchAtLogin uses only enable / disable / getStatus', () => {beforeEach(() => {@@ -57,6 +70,8 @@ describe('Store applyLaunchAtLogin uses only enable / disable / getStatus', () =store.enable.mockResolvedValue(2)store.disable.mockResolvedValue(0)mocks.saveSettings.mockClear()+ child.execFileSync.mockReset()+ vi.mocked(app.setLoginItemSettings).mockClear()})afterEach(() => {@@ -93,4 +108,21 @@ describe('Store applyLaunchAtLogin uses only enable / disable / getStatus', () =release!(2)expect((await pending).ok).toBe(true)})++ it('Store enable / disable never writes HKCU Run keys', async () => {+ await applyLaunchAtLogin(true)+ await applyLaunchAtLogin(false)+ expect(child.execFileSync).not.toHaveBeenCalled()+ expect(app.setLoginItemSettings).not.toHaveBeenCalled()+ })++ it('Store startup reconcile never heals via Run keys even when launch-at-login is on', async () => {+ mocks.loadSettings.mockReturnValue({ launchAtLogin: true })+ store.get.mockResolvedValue(2)+ await reconcileLaunchAtLoginOnStartup()+ expect(child.execFileSync).not.toHaveBeenCalled()+ expect(app.setLoginItemSettings).not.toHaveBeenCalled()+ expect(store.enable).not.toHaveBeenCalled()+ expect(store.disable).not.toHaveBeenCalled()+ })})diff --git a/tests/storeLoginItem.test.ts b/tests/storeLoginItem.test.tsindex 1ba466b..f2ece80 100644--- a/tests/storeLoginItem.test.ts+++ b/tests/storeLoginItem.test.ts@@ -9,7 +9,8 @@ const mocks = vi.hoisted(() => ({})),exePath: 'C:\\Users\\yadav\\AppData\\Local\\Programs\\Edge-Drop\\Edge-Drop.exe',loadSettings: vi.fn(() => ({ launchAtLogin: true })),- saveSettings: vi.fn((patch: Record<string, unknown>) => ({ launchAtLogin: true, ...patch }))+ saveSettings: vi.fn((patch: Record<string, unknown>) => ({ launchAtLogin: true, ...patch })),+ execFileSync: vi.fn()}))vi.mock('electron', () => ({@@ -61,14 +62,42 @@ vi.mock('../electron/main/powershell', () => ({getWritableCwd: () => 'C:\\Temp'}))-import { applyLaunchAtLogin, reconcileLaunchAtLoginOnStartup } from '../electron/main/loginItems'+vi.mock('node:child_process', async (importOriginal) => {+ const actual = await importOriginal<typeof import('node:child_process')>()+ return {+ ...actual,+ execFileSync: (...args: unknown[]) => mocks.execFileSync(...args)+ }+})++import {+ applyLaunchAtLogin,+ formatGithubRunCommand,+ normalizeLoginPath,+ reconcileLaunchAtLoginOnStartup+} from '../electron/main/loginItems'import { syncLoginItemSettings } from '../electron/main/ipc'+/** How Windows parses an unquoted HKCU Run value (CreateProcess command line). */+function parseWindowsRunCommand(cmd: string): { exe: string; args: string[] } {+ const t = cmd.trim()+ if (t.startsWith('"')) {+ const end = t.indexOf('"', 1)+ if (end < 0) return { exe: t.slice(1), args: [] }+ const rest = t.slice(end + 1).trim()+ return { exe: t.slice(1, end), args: rest ? rest.split(/\s+/) : [] }+ }+ const space = t.indexOf(' ')+ if (space < 0) return { exe: t, args: [] }+ return { exe: t.slice(0, space), args: t.slice(space + 1).split(/\s+/) }+}+describe('GitHub exe launch-at-login (orphan Run keys)', () => {beforeEach(() => {delete process.env.APP_BUILD_TARGETmocks.isPackaged = truemocks.setLoginItemSettings.mockReset()+ mocks.execFileSync.mockReset()mocks.getLoginItemSettings.mockReset()mocks.getLoginItemSettings.mockReturnValue({launchItems: [],@@ -120,6 +149,30 @@ describe('GitHub exe launch-at-login (orphan Run keys)', () => {name: 'Edge-Drop',enabled: true})+ if (process.platform === 'win32') {+ expect(mocks.execFileSync).toHaveBeenCalledWith(+ 'reg',+ expect.arrayContaining([+ 'add',+ 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run',+ '/v',+ 'Edge-Drop',+ '/d',+ `"${mocks.exePath}" --hidden`+ ]),+ expect.anything()+ )+ }+ })++ it('quotes the Run-key exe path so usernames with spaces still launch', () => {+ const spaced = 'C:\\Users\\Renato Souza\\AppData\\Local\\Programs\\Edge-Drop\\Edge-Drop.exe'+ expect(formatGithubRunCommand(spaced)).toBe(+ '"C:\\Users\\Renato Souza\\AppData\\Local\\Programs\\Edge-Drop\\Edge-Drop.exe" --hidden'+ )+ expect(formatGithubRunCommand(`"${spaced}"`)).toBe(+ '"C:\\Users\\Renato Souza\\AppData\\Local\\Programs\\Edge-Drop\\Edge-Drop.exe" --hidden'+ )})it('enable: does not fail the toggle when read-back is empty after writing', async () => {@@ -228,3 +281,171 @@ describe('GitHub exe launch-at-login (orphan Run keys)', () => {expect(mocks.setLoginItemSettings).toHaveBeenCalled()})})++describe('GitHub Run-key quoting and update heal', () => {+ const spacedExe = 'C:\\Users\\Renato Souza\\AppData\\Local\\Programs\\Edge-Drop\\Edge-Drop.exe'+ const plainExe = 'C:\\Users\\yadav\\AppData\\Local\\Programs\\Edge-Drop\\Edge-Drop.exe'+ const programFilesExe = 'C:\\Program Files\\Edge-Drop\\Edge-Drop.exe'+ const quotedSpaced = `"${spacedExe}" --hidden`++ beforeEach(() => {+ delete process.env.APP_BUILD_TARGET+ mocks.isPackaged = true+ mocks.exePath = plainExe+ mocks.setLoginItemSettings.mockReset()+ mocks.execFileSync.mockReset()+ mocks.saveSettings.mockClear()+ mocks.getLoginItemSettings.mockReset()+ mocks.getLoginItemSettings.mockReturnValue({+ launchItems: [{ name: 'Edge-Drop', path: mocks.exePath, enabled: true, args: ['--hidden'] }],+ executableWillLaunchAtLogin: true+ })+ mocks.loadSettings.mockReturnValue({ launchAtLogin: true })+ })++ afterEach(() => {+ delete process.env.APP_BUILD_TARGET+ mocks.exePath = plainExe+ })++ it('formatGithubRunCommand quotes the exe and leaves --hidden outside quotes', () => {+ expect(formatGithubRunCommand(spacedExe)).toBe(quotedSpaced)+ expect(formatGithubRunCommand(`"${spacedExe}"`)).toBe(quotedSpaced)+ expect(formatGithubRunCommand(` ${spacedExe} `)).toBe(quotedSpaced)+ expect(formatGithubRunCommand(plainExe)).toBe(`"${plainExe}" --hidden`)+ expect(formatGithubRunCommand(programFilesExe)).toBe(`"${programFilesExe}" --hidden`)+ })++ it('the 0.3.0 unquoted command splits at the first space; the quoted command does not', () => {+ const broken = `${spacedExe} --hidden`+ const brokenParse = parseWindowsRunCommand(broken)+ expect(brokenParse.exe).toBe('C:\\Users\\Renato')+ expect(brokenParse.args[0]).toBe('Souza\\AppData\\Local\\Programs\\Edge-Drop\\Edge-Drop.exe')++ const fixedParse = parseWindowsRunCommand(formatGithubRunCommand(spacedExe))+ expect(fixedParse.exe).toBe(spacedExe)+ expect(fixedParse.args).toEqual(['--hidden'])++ const programFilesParse = parseWindowsRunCommand(formatGithubRunCommand(programFilesExe))+ expect(programFilesParse.exe).toBe(programFilesExe)+ expect(programFilesParse.args).toEqual(['--hidden'])+ })++ it('normalizeLoginPath still matches our exe after the Run value is quoted', () => {+ expect(normalizeLoginPath(quotedSpaced)).toBe(normalizeLoginPath(spacedExe))+ expect(normalizeLoginPath(`${spacedExe} --hidden`)).toBe(normalizeLoginPath(spacedExe))+ })++ it('enable with a spaced username writes the quoted command via reg add, not a shell string', async () => {+ mocks.exePath = spacedExe+ mocks.getLoginItemSettings.mockReturnValue({+ launchItems: [{ name: 'Edge-Drop', path: spacedExe, enabled: true, args: ['--hidden'] }],+ executableWillLaunchAtLogin: true+ })+ const result = await applyLaunchAtLogin(true)+ expect(result.ok).toBe(true)+ expect(result.enabled).toBe(true)++ if (process.platform === 'win32') {+ expect(mocks.execFileSync).toHaveBeenCalledTimes(1)+ const [bin, argv, opts] = mocks.execFileSync.mock.calls[0]+ expect(bin).toBe('reg')+ expect(argv).toEqual([+ 'add',+ 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run',+ '/v',+ 'Edge-Drop',+ '/t',+ 'REG_SZ',+ '/d',+ quotedSpaced,+ '/f'+ ])+ expect(opts).toMatchObject({ windowsHide: true, stdio: 'ignore' })+ }+ })++ it('disable does not write a Run command — it only turns the login item off', async () => {+ mocks.getLoginItemSettings.mockReturnValue({+ launchItems: [{ name: 'Edge-Drop', path: mocks.exePath, enabled: false, args: ['--hidden'] }],+ executableWillLaunchAtLogin: false+ })+ await applyLaunchAtLogin(false)+ expect(mocks.execFileSync).not.toHaveBeenCalled()+ expect(mocks.setLoginItemSettings).not.toHaveBeenCalledWith(+ expect.objectContaining({ openAtLogin: true })+ )+ })++ it('update heal: first launch of a fixed build rewrites the quoted Run key while launch-at-login is still on', async () => {+ mocks.exePath = spacedExe+ mocks.loadSettings.mockReturnValue({ launchAtLogin: true })+ mocks.getLoginItemSettings.mockReturnValue({+ launchItems: [{ name: 'Edge-Drop', path: spacedExe, enabled: true, args: ['--hidden'] }],+ executableWillLaunchAtLogin: true+ })++ const next = await reconcileLaunchAtLoginOnStartup()++ expect(next.launchAtLogin).toBe(true)+ expect(mocks.saveSettings).not.toHaveBeenCalled()+ expect(mocks.setLoginItemSettings).toHaveBeenCalledWith({+ openAtLogin: true,+ path: spacedExe,+ args: ['--hidden'],+ name: 'Edge-Drop',+ enabled: true+ })+ if (process.platform === 'win32') {+ expect(mocks.execFileSync).toHaveBeenCalledWith(+ 'reg',+ expect.arrayContaining(['/v', 'Edge-Drop', '/d', quotedSpaced, '/f']),+ expect.anything()+ )+ }+ })++ it('update heal: Task Manager / settings already off is not re-enabled', async () => {+ mocks.loadSettings.mockReturnValue({ launchAtLogin: true })+ mocks.getLoginItemSettings.mockReturnValue({+ launchItems: [{ name: 'Edge-Drop', path: mocks.exePath, enabled: false }],+ executableWillLaunchAtLogin: false+ })++ const next = await reconcileLaunchAtLoginOnStartup()++ expect(mocks.saveSettings).toHaveBeenCalledWith({ launchAtLogin: false })+ expect(next.launchAtLogin).toBe(false)+ expect(mocks.execFileSync).not.toHaveBeenCalled()+ expect(mocks.setLoginItemSettings).not.toHaveBeenCalledWith(+ expect.objectContaining({ openAtLogin: true })+ )+ })++ it('update heal: settings off does not rewrite a quoted Run key', async () => {+ mocks.loadSettings.mockReturnValue({ launchAtLogin: false })+ mocks.getLoginItemSettings+ .mockReturnValueOnce({+ launchItems: [{ name: 'Edge-Drop', path: mocks.exePath, enabled: true }],+ executableWillLaunchAtLogin: true+ })+ .mockReturnValue({+ launchItems: [],+ executableWillLaunchAtLogin: false+ })++ await reconcileLaunchAtLoginOnStartup()++ expect(mocks.execFileSync).not.toHaveBeenCalled()+ expect(mocks.setLoginItemSettings).not.toHaveBeenCalledWith(+ expect.objectContaining({ openAtLogin: true })+ )+ })++ it('unpackaged / dev never writes a Run key on startup reconcile', async () => {+ mocks.isPackaged = false+ await reconcileLaunchAtLoginOnStartup()+ expect(mocks.setLoginItemSettings).not.toHaveBeenCalled()+ expect(mocks.execFileSync).not.toHaveBeenCalled()+ })+})diff --git a/tests/storePackaging.test.ts b/tests/storePackaging.test.tsindex ca97149..30d0536 100644--- a/tests/storePackaging.test.ts+++ b/tests/storePackaging.test.ts@@ -1,5 +1,5 @@import { describe, expect, it } from 'vitest'-import { existsSync, readFileSync } from 'node:fs'+import { existsSync, readdirSync, readFileSync } from 'node:fs'import { join } from 'node:path'import { STORE_STARTUP_TASK_ID } from '../electron/main/config'@@ -13,6 +13,7 @@ describe('GitHub vs Store packaging contracts (on-disk, not assumed)', () => {const pkg = JSON.parse(read('package.json')) as {scripts: Record<string, string>dependencies: Record<string, string>+ devDependencies: Record<string, string>build: {asarUnpack: string[]extraResources?: Array<{ from: string; to: string }>@@ -70,6 +71,75 @@ describe('GitHub vs Store packaging contracts (on-disk, not assumed)', () => {expect(existsSync(join(root, 'resources/startup/EdgeDropStartup.cs'))).toBe(true)})+ it('keeps only runtime packages as production dependencies', () => {+ expect(Object.keys(pkg.dependencies).sort()).toEqual([+ '@resvg/resvg-js',+ 'electron-updater',+ 'koffi',+ 'react',+ 'zustand'+ ])+ })++ it('does not pack README media, Store tiles, or the full Twemoji npm tree into the asar', () => {+ expect(pkg.build.files).toEqual(expect.arrayContaining([+ '!out/renderer/**/*.gif',+ '!resources/appx/**',+ '!resources/startup/**/*.cs',+ '!**/node_modules/emoji-datasource-twitter/**',+ '!**/node_modules/lucide-react/**',+ '!**/node_modules/gsap/**',+ '!**/node_modules/framer-motion/**',+ '!**/node_modules/@fontsource/**',+ '!**/node_modules/react-dom/**'+ ]))+ expect(pkg.build.appx.customExtensionsPath).toBe('resources/appx/startup-extensions.xml')+ expect(existsSync(join(root, 'resources/appx/startup-extensions.xml'))).toBe(true)+ })++ it('ships Twemoji 64px as extraResources for GitHub and Store builds', () => {+ expect(pkg.build.extraResources).toEqual(expect.arrayContaining([+ { from: 'node_modules/emoji-datasource-twitter/img/twitter/64', to: 'emoji/64' }+ ]))+ expect(existsSync(join(root, 'node_modules/emoji-datasource-twitter/img/twitter/64'))).toBe(true)+ expect(pkg.devDependencies['emoji-datasource-twitter']).toBeTruthy()+ })++ it('keeps onboarding videos in public/ and README images out of the pack', () => {+ const publicFiles = readdirSync(join(root, 'public'))+ expect(publicFiles.sort()).toEqual([+ 'copy.webm',+ 'drag.webm',+ 'merge.webm',+ 'preview.webm',+ 'stack.webm',+ 'ungroup.webm',+ 'welcome.webm'+ ])+ const readmeDir = join(root, '.github/readme')+ for (const name of [+ 'Logo.gif',+ 'open.gif',+ 'browser-demo.gif',+ 'paste.gif',+ 'file-stacks-demo.gif',+ 'ungroup.gif',+ 'stack.gif',+ 'preview.gif',+ 'kofi-qr.png',+ 'upi-sponsor-qr.png'+ ]) {+ expect(existsSync(join(readmeDir, name))).toBe(true)+ }+ const readme = read('README.md')+ expect(readme).toContain('.github/readme/Logo.gif')+ expect(readme).toContain('.github/readme/open.gif')+ expect(readme).toContain('.github/readme/kofi-qr.png')+ expect(readme).toContain('.github/readme/upi-sponsor-qr.png')+ expect(readme).not.toMatch(/src="public\/[^"]+\.(gif|png)"/)+ expect(readme).not.toContain('/main/public/')+ })+it('unpacks native addons the Store package must load from disk', () => {const unpack = pkg.build.asarUnpack.join('\n')expect(unpack).toMatch(/koffi/)