diff --git a/gauntlet.toml b/gauntlet.toml index dbbef53..7c95cd3 100644 --- a/gauntlet.toml +++ b/gauntlet.toml @@ -1,9 +1,8 @@ [gauntlet] -name = 'Emoji Picker' +name = "cswimr's Gauntlet Plugins" description = """ -Copy emojis to your clipboard from Gauntlet! +Collection of Gauntlet plugins by cswimr -Author: cswimr Repository: https://www.coastalcommits.com/cswimr/gauntlet-emojipicker """ @@ -14,9 +13,6 @@ path = 'src/emojipicker.tsx' type = 'inline-view' description = """ Copy emojis to your clipboard from Gauntlet! - -Author: cswimr -Repository: https://www.coastalcommits.com/cswimr/gauntlet-emojipicker """ [permissions] diff --git a/package-lock.json b/package-lock.json index 8c100b6..2540508 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,18 +1,20 @@ { - "name": "plugin-emojipicker", + "name": "cswimr-gauntlet-plugins", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "plugin-emojipicker", + "name": "cswimr-gauntlet-plugins", "dependencies": { "@project-gauntlet/api": "0.10.0", "@project-gauntlet/deno": "0.10.0", - "unicode-emoji": "^2.5.0" + "unicode-emoji": "^2.5.0", + "which": "^5.0.0" }, "devDependencies": { "@project-gauntlet/tools": "0.8.0", "@types/react": "^18.3.3", + "@types/which": "^3.0.4", "typescript": "^5.5.4" } }, @@ -596,6 +598,13 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/which": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/which/-/which-3.0.4.tgz", + "integrity": "sha512-liyfuo/106JdlgSchJzXEQCVArk0CvevqPote8F8HgWgJ3dRCcTHgJIsLDuee0kxk/mhbInzIZk3QWSZJ8R+2w==", + "dev": true, + "license": "MIT" + }, "node_modules/ansi-regex": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", @@ -798,6 +807,29 @@ "node": ">= 8" } }, + "node_modules/cross-spawn/node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/cross-spawn/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/csstype": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", @@ -1048,11 +1080,13 @@ } }, "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true, - "license": "ISC" + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.1.tgz", + "integrity": "sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ==", + "license": "ISC", + "engines": { + "node": ">=16" + } }, "node_modules/jackspeak": { "version": "3.4.3", @@ -1680,19 +1714,18 @@ } }, "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/which/-/which-5.0.0.tgz", + "integrity": "sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==", "license": "ISC", "dependencies": { - "isexe": "^2.0.0" + "isexe": "^3.1.1" }, "bin": { - "node-which": "bin/node-which" + "node-which": "bin/which.js" }, "engines": { - "node": ">= 8" + "node": "^18.17.0 || >=20.5.0" } }, "node_modules/wrap-ansi": { diff --git a/package.json b/package.json index 1bec7cf..7840b52 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "plugin-emojipicker", + "name": "cswimr-gauntlet-plugins", "scripts": { "publish": "gauntlet publish", "build": "gauntlet build", @@ -8,11 +8,13 @@ "dependencies": { "@project-gauntlet/api": "0.10.0", "@project-gauntlet/deno": "0.10.0", - "unicode-emoji": "^2.5.0" + "unicode-emoji": "^2.5.0", + "which": "^5.0.0" }, "devDependencies": { "@project-gauntlet/tools": "0.8.0", "@types/react": "^18.3.3", + "@types/which": "^3.0.4", "typescript": "^5.5.4" } } diff --git a/src/emojipicker.tsx b/src/emojipicker.tsx index 0ee8c97..6db4ea2 100644 --- a/src/emojipicker.tsx +++ b/src/emojipicker.tsx @@ -7,7 +7,7 @@ import * as UnicodeEmoji from "unicode-emoji"; const denoCore: DenoCore = Deno[Deno.internal].core; export default function EmojiPicker(props: { text: string }): ReactNode | undefined { - const text = props.text; + const text = props.text.trim(); if (text.length < 3) { return undefined