Merge remote-tracking branch 'upstream/dev' into dev

This commit is contained in:
thororen1234 2025-10-06 21:37:53 -04:00
commit 24ddcd1376
No known key found for this signature in database
8 changed files with 56 additions and 26 deletions

View file

@ -0,0 +1 @@
node_modules

View file

@ -1,6 +1,7 @@
{ {
"name": "@vencord/discord-types", "name": "@vencord/discord-types",
"author": "Vencord Contributors", "author": "Vencord Contributors",
"private": false,
"description": "Typescript definitions for the webpack modules of the Discord Web app", "description": "Typescript definitions for the webpack modules of the Discord Web app",
"version": "1.0.0", "version": "1.0.0",
"license": "LGPL-3.0-or-later", "license": "LGPL-3.0-or-later",
@ -12,8 +13,10 @@
"directory": "packages/discord-types" "directory": "packages/discord-types"
}, },
"dependencies": { "dependencies": {
"@types/react": "^19.0.10",
"moment": "^2.22.2", "moment": "^2.22.2",
"type-fest": "^4.41.0" "type-fest": "^4.41.0"
},
"peerDependencies": {
"@types/react": "^19.0.10"
} }
} }

View file

@ -1,7 +1,7 @@
{ {
"name": "@vencord/types", "name": "@vencord/types",
"private": false, "private": false,
"version": "1.11.5", "version": "1.13.2",
"description": "", "description": "",
"types": "index.d.ts", "types": "index.d.ts",
"scripts": { "scripts": {
@ -19,9 +19,14 @@
"dependencies": { "dependencies": {
"@types/lodash": "4.17.15", "@types/lodash": "4.17.15",
"@types/node": "^22.13.4", "@types/node": "^22.13.4",
"@types/react": "18.3.1", "@vencord/discord-types": "^1.0.0",
"@types/react-dom": "18.3.1", "highlight.js": "11.11.1",
"standalone-electron-types": "^34.2.0", "moment": "^2.22.2",
"ts-pattern": "^5.6.0",
"type-fest": "^4.35.0" "type-fest": "^4.35.0"
},
"peerDependencies": {
"@types/react": "18.3.1",
"@types/react-dom": "18.3.1"
} }
} }

34
pnpm-lock.yaml generated
View file

@ -197,9 +197,18 @@ importers:
'@types/react-dom': '@types/react-dom':
specifier: 18.3.1 specifier: 18.3.1
version: 18.3.1 version: 18.3.1
standalone-electron-types: '@vencord/discord-types':
specifier: ^34.2.0 specifier: ^1.0.0
version: 34.2.0 version: 1.0.0(@types/react@18.3.1)
highlight.js:
specifier: 11.11.1
version: 11.11.1
moment:
specifier: ^2.22.2
version: 2.30.1
ts-pattern:
specifier: ^5.6.0
version: 5.6.2
type-fest: type-fest:
specifier: ^4.35.0 specifier: ^4.35.0
version: 4.38.0 version: 4.38.0
@ -598,8 +607,8 @@ packages:
'@types/node@22.13.13': '@types/node@22.13.13':
resolution: {integrity: sha512-ClsL5nMwKaBRwPcCvH8E7+nU4GxHVx1axNvMZTFHMEfNI7oahimt26P5zjVCRrjiIWj6YFXfE1v3dEp94wLcGQ==} resolution: {integrity: sha512-ClsL5nMwKaBRwPcCvH8E7+nU4GxHVx1axNvMZTFHMEfNI7oahimt26P5zjVCRrjiIWj6YFXfE1v3dEp94wLcGQ==}
'@types/prop-types@15.7.14': '@types/prop-types@15.7.15':
resolution: {integrity: sha512-gNMvNH49DJ7OJYv+KAKn0Xp45p8PLl6zo2YnvDIbTd4J6MER2BmWN49TG7n9LvkyihINxeKW8+3bfS2yDC9dzQ==} resolution: {integrity: sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==}
'@types/react-dom@18.3.1': '@types/react-dom@18.3.1':
resolution: {integrity: sha512-qW1Mfv8taImTthu4KoXgDfLuk4bydU6Q/TkADnDWWHwi4NX4BR+LWfTp2sVmTqRrsHvyDDTelgelxJ+SsejKKQ==} resolution: {integrity: sha512-qW1Mfv8taImTthu4KoXgDfLuk4bydU6Q/TkADnDWWHwi4NX4BR+LWfTp2sVmTqRrsHvyDDTelgelxJ+SsejKKQ==}
@ -717,6 +726,11 @@ packages:
'@vap/shiki@0.10.5': '@vap/shiki@0.10.5':
resolution: {integrity: sha512-5BHVGvQT8qonbLSASon5aQFQ18OZU4FxSl9tLSj6oJ0sap3KdMbYcfGq25M9zFZR1g1dJN7fgjmZXBIS5omIdw==} resolution: {integrity: sha512-5BHVGvQT8qonbLSASon5aQFQ18OZU4FxSl9tLSj6oJ0sap3KdMbYcfGq25M9zFZR1g1dJN7fgjmZXBIS5omIdw==}
'@vencord/discord-types@1.0.0':
resolution: {integrity: sha512-idtijKdbjiqo8k+4mo5Aq9zrQYwr2u11VmiRasaf+8+cGC5bYsMTIZl7zKLF3VdYx2a0ICjxgZtcfa1U3mv1Yg==}
peerDependencies:
'@types/react': ^19.0.10
acorn-jsx@5.3.2: acorn-jsx@5.3.2:
resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
peerDependencies: peerDependencies:
@ -2788,7 +2802,7 @@ snapshots:
dependencies: dependencies:
undici-types: 6.20.0 undici-types: 6.20.0
'@types/prop-types@15.7.14': {} '@types/prop-types@15.7.15': {}
'@types/react-dom@18.3.1': '@types/react-dom@18.3.1':
dependencies: dependencies:
@ -2800,7 +2814,7 @@ snapshots:
'@types/react@18.3.1': '@types/react@18.3.1':
dependencies: dependencies:
'@types/prop-types': 15.7.14 '@types/prop-types': 15.7.15
csstype: 3.1.3 csstype: 3.1.3
'@types/react@19.0.12': '@types/react@19.0.12':
@ -2961,6 +2975,12 @@ snapshots:
vscode-oniguruma: 1.7.0 vscode-oniguruma: 1.7.0
vscode-textmate: 5.2.0 vscode-textmate: 5.2.0
'@vencord/discord-types@1.0.0(@types/react@18.3.1)':
dependencies:
'@types/react': 18.3.1
moment: 2.30.1
type-fest: 4.41.0
acorn-jsx@5.3.2(acorn@8.15.0): acorn-jsx@5.3.2(acorn@8.15.0):
dependencies: dependencies:
acorn: 8.15.0 acorn: 8.15.0

6
src/globals.d.ts vendored
View file

@ -16,8 +16,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
import { LoDashStatic } from "lodash";
declare global { declare global {
/** /**
* This exists only at build time, so references to it in patches should insert it * This exists only at build time, so references to it in patches should insert it
@ -68,9 +66,7 @@ declare global {
export var Equibop: any; export var Equibop: any;
export var VesktopNative: any; export var VesktopNative: any;
interface Window extends Record<PropertyKey, any> { interface Window extends Record<PropertyKey, any> { }
_: LoDashStatic;
}
} }
export { }; export { };

7
src/modules.d.ts vendored
View file

@ -16,8 +16,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
/// <reference types="standalone-electron-types"/>
declare module "~plugins" { declare module "~plugins" {
const plugins: Record<string, import("./utils/types").Plugin>; const plugins: Record<string, import("./utils/types").Plugin>;
export default plugins; export default plugins;
@ -28,11 +26,6 @@ declare module "~plugins" {
export const ExcludedPlugins: Record<string, "web" | "discordDesktop" | "vesktop" | "equibop" | "desktop" | "dev">; export const ExcludedPlugins: Record<string, "web" | "discordDesktop" | "vesktop" | "equibop" | "desktop" | "dev">;
} }
declare module "~pluginNatives" {
const pluginNatives: Record<string, Record<string, (event: Electron.IpcMainInvokeEvent, ...args: unknown[]) => unknown>>;
export default pluginNatives;
}
declare module "~git-hash" { declare module "~git-hash" {
const hash: string; const hash: string;
export default hash; export default hash;

12
src/nativeModules.d.ts vendored Normal file
View file

@ -0,0 +1,12 @@
/*
* Vencord, a Discord client mod
* Copyright (c) 2025 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
/// <reference types="standalone-electron-types"/>
declare module "~pluginNatives" {
const pluginNatives: Record<string, Record<string, (event: Electron.IpcMainInvokeEvent, ...args: unknown[]) => unknown>>;
export default pluginNatives;
}

View file

@ -138,8 +138,8 @@ export default definePlugin({
replace: "false" replace: "false"
}, },
{ {
match: /(canCopyImage\(.+?)\|\|"function"!=typeof \i\.clipboard\.copyImage/, match: /(?<=canCopyImage\(.+?)typeof \i\.clipboard\.copyImage/,
replace: "$1" replace: '"function"'
} }
] ]
}, },