Huakun 97cd20906f
Feature: add extension api (hide and paste) (#210)
* feat: add paste API to extension API

* feat(desktop): enhance clipboard and hotkey utilities

- Add `hideAndPaste` utility function to simplify window hiding and clipboard pasting
- Adjust key press and sleep timings for more reliable input simulation
- Implement window focus listener in clipboard extension
- Bind input element reference for automatic focus management

* feat(permissions): enhance clipboard permission handling

- Update clipboard permission schema to include paste permission
- Modify clipboard API to check for paste permission before executing
- Refactor permission map and schema for more flexible permission management

* feat(desktop): refactor extension command search and rendering

- Add `svelte-inspect-value` for debugging
- Implement new `ExtCmds` component to replace `ExtCmdsGroup`
- Enhance extension command search with separate Fuse.js instances for installed and dev extensions
- Simplify extension command filtering and rendering logic
- Add derived stores for extension commands with improved type safety

* feat(desktop): improve extension command search filtering

* bump @kksh/api version

* feat(permissions): add clipboard paste permission description
2025-02-26 04:47:43 -05:00

66 lines
1.4 KiB
JSON

{
"$schema": "./node_modules/@kksh/api/dist/schema.json",
"name": "template-ext-svelte",
"license": "MIT",
"version": "0.0.10",
"type": "module",
"kunkun": {
"name": "TODO: Change Display Name",
"shortDescription": "A Custom UI template for svelte",
"longDescription": "A Custom UI template for svelte",
"identifier": "template-ext-svelte",
"icon": {
"type": "iconify",
"value": "logos:svelte-icon"
},
"demoImages": [],
"permissions": [
"clipboard:read-text",
"notification:all"
],
"customUiCmds": [
{
"main": "/",
"dist": "dist",
"devMain": "http://localhost:5173",
"name": "Svelte Template",
"cmds": [],
"window": {
"title": "Svelte Template"
}
}
],
"templateUiCmds": []
},
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-check --tsconfig ./tsconfig.json && tsc -p tsconfig.node.json"
},
"dependencies": {
"@kksh/api": "workspace:*",
"@kksh/svelte5": "0.1.15",
"clsx": "^2.1.1",
"lucide-svelte": "^0.469.0",
"tailwind-merge": "^2.6.0",
"tailwind-variants": "^0.3.0"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^5.0.3",
"@tsconfig/svelte": "^5.0.4",
"svelte": "^5.16.6",
"svelte-check": "^4.1.1",
"tslib": "^2.8.1",
"typescript": "~5.7.2",
"vite": "^6.0.7",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.49",
"tailwindcss": "^3.4.17"
},
"files": [
"dist",
".gitignore"
]
}