This commit is contained in:
Seaswimmer 2024-10-19 16:54:59 -04:00
parent b3d5542a10
commit 25922c6e6e
Signed by: cswimr
GPG key ID: A9C162E867C851FA
4 changed files with 55 additions and 24 deletions

View file

@ -1,9 +1,8 @@
[gauntlet] [gauntlet]
name = 'Emoji Picker' name = "cswimr's Gauntlet Plugins"
description = """ description = """
Copy emojis to your clipboard from Gauntlet! Collection of Gauntlet plugins by cswimr
Author: cswimr
Repository: https://www.coastalcommits.com/cswimr/gauntlet-emojipicker Repository: https://www.coastalcommits.com/cswimr/gauntlet-emojipicker
""" """
@ -14,9 +13,6 @@ path = 'src/emojipicker.tsx'
type = 'inline-view' type = 'inline-view'
description = """ description = """
Copy emojis to your clipboard from Gauntlet! Copy emojis to your clipboard from Gauntlet!
Author: cswimr
Repository: https://www.coastalcommits.com/cswimr/gauntlet-emojipicker
""" """
[permissions] [permissions]

63
package-lock.json generated
View file

@ -1,18 +1,20 @@
{ {
"name": "plugin-emojipicker", "name": "cswimr-gauntlet-plugins",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "plugin-emojipicker", "name": "cswimr-gauntlet-plugins",
"dependencies": { "dependencies": {
"@project-gauntlet/api": "0.10.0", "@project-gauntlet/api": "0.10.0",
"@project-gauntlet/deno": "0.10.0", "@project-gauntlet/deno": "0.10.0",
"unicode-emoji": "^2.5.0" "unicode-emoji": "^2.5.0",
"which": "^5.0.0"
}, },
"devDependencies": { "devDependencies": {
"@project-gauntlet/tools": "0.8.0", "@project-gauntlet/tools": "0.8.0",
"@types/react": "^18.3.3", "@types/react": "^18.3.3",
"@types/which": "^3.0.4",
"typescript": "^5.5.4" "typescript": "^5.5.4"
} }
}, },
@ -596,6 +598,13 @@
"dev": true, "dev": true,
"license": "MIT" "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": { "node_modules/ansi-regex": {
"version": "6.1.0", "version": "6.1.0",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz",
@ -798,6 +807,29 @@
"node": ">= 8" "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": { "node_modules/csstype": {
"version": "3.1.3", "version": "3.1.3",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",
@ -1048,11 +1080,13 @@
} }
}, },
"node_modules/isexe": { "node_modules/isexe": {
"version": "2.0.0", "version": "3.1.1",
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.1.tgz",
"integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "integrity": "sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ==",
"dev": true, "license": "ISC",
"license": "ISC" "engines": {
"node": ">=16"
}
}, },
"node_modules/jackspeak": { "node_modules/jackspeak": {
"version": "3.4.3", "version": "3.4.3",
@ -1680,19 +1714,18 @@
} }
}, },
"node_modules/which": { "node_modules/which": {
"version": "2.0.2", "version": "5.0.0",
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "resolved": "https://registry.npmjs.org/which/-/which-5.0.0.tgz",
"integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "integrity": "sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==",
"dev": true,
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"isexe": "^2.0.0" "isexe": "^3.1.1"
}, },
"bin": { "bin": {
"node-which": "bin/node-which" "node-which": "bin/which.js"
}, },
"engines": { "engines": {
"node": ">= 8" "node": "^18.17.0 || >=20.5.0"
} }
}, },
"node_modules/wrap-ansi": { "node_modules/wrap-ansi": {

View file

@ -1,5 +1,5 @@
{ {
"name": "plugin-emojipicker", "name": "cswimr-gauntlet-plugins",
"scripts": { "scripts": {
"publish": "gauntlet publish", "publish": "gauntlet publish",
"build": "gauntlet build", "build": "gauntlet build",
@ -8,11 +8,13 @@
"dependencies": { "dependencies": {
"@project-gauntlet/api": "0.10.0", "@project-gauntlet/api": "0.10.0",
"@project-gauntlet/deno": "0.10.0", "@project-gauntlet/deno": "0.10.0",
"unicode-emoji": "^2.5.0" "unicode-emoji": "^2.5.0",
"which": "^5.0.0"
}, },
"devDependencies": { "devDependencies": {
"@project-gauntlet/tools": "0.8.0", "@project-gauntlet/tools": "0.8.0",
"@types/react": "^18.3.3", "@types/react": "^18.3.3",
"@types/which": "^3.0.4",
"typescript": "^5.5.4" "typescript": "^5.5.4"
} }
} }

View file

@ -7,7 +7,7 @@ import * as UnicodeEmoji from "unicode-emoji";
const denoCore: DenoCore = Deno[Deno.internal].core; const denoCore: DenoCore = Deno[Deno.internal].core;
export default function EmojiPicker(props: { text: string }): ReactNode | undefined { export default function EmojiPicker(props: { text: string }): ReactNode | undefined {
const text = props.text; const text = props.text.trim();
if (text.length < 3) { if (text.length < 3) {
return undefined return undefined