diff --git a/packages/discord-types/src/index.d.ts b/packages/discord-types/src/index.d.ts index fdbd65f17..23ab505d8 100644 --- a/packages/discord-types/src/index.d.ts +++ b/packages/discord-types/src/index.d.ts @@ -1,5 +1,4 @@ export * from "./common"; -export * from "./classes"; export * from "./components"; export * from "./flux"; export * from "./fluxEvents"; diff --git a/src/plugins/customRPC/index.tsx b/src/plugins/customRPC/index.tsx index 18e4bec14..8e3328e80 100644 --- a/src/plugins/customRPC/index.tsx +++ b/src/plugins/customRPC/index.tsx @@ -36,7 +36,7 @@ import { ApplicationAssetUtils, Button, FluxDispatcher, Forms, React, UserStore import { RPCSettings } from "./RpcSettings"; const useProfileThemeStyle = findByCodeLazy("profileThemeStyle:", "--profile-gradient-primary-color"); -const ActivityView = findComponentByCodeLazy(".party?(0", ".card"); +const ActivityView = findComponentByCodeLazy(".party?(0", "USER_PROFILE_ACTIVITY"); const ShowCurrentGame = getUserSettingLazy("status", "showCurrentGame")!; diff --git a/src/plugins/decor/ui/modals/CreateDecorationModal.tsx b/src/plugins/decor/ui/modals/CreateDecorationModal.tsx index f79c60e0e..fcfe5a3c6 100644 --- a/src/plugins/decor/ui/modals/CreateDecorationModal.tsx +++ b/src/plugins/decor/ui/modals/CreateDecorationModal.tsx @@ -16,7 +16,7 @@ import { closeAllModals, ModalCloseButton, ModalContent, ModalFooter, ModalHeade import { filters, findComponentByCodeLazy, mapMangledModuleLazy } from "@webpack"; import { Button, FluxDispatcher, Forms, GuildStore, NavigationRouter, Text, TextInput, useEffect, useMemo, UserStore, useState } from "@webpack/common"; -const FileUpload = findComponentByCodeLazy(".fileUpload),"); +const FileUpload = findComponentByCodeLazy(".currentTarget.files)", "lineClamp:1"); const { HelpMessage, HelpMessageTypes } = mapMangledModuleLazy('POSITIVE="positive', { HelpMessageTypes: filters.byProps("POSITIVE", "WARNING", "INFO"), diff --git a/src/plugins/friendsSince/index.tsx b/src/plugins/friendsSince/index.tsx index 19d9b164a..395c730e5 100644 --- a/src/plugins/friendsSince/index.tsx +++ b/src/plugins/friendsSince/index.tsx @@ -17,7 +17,7 @@ const containerWrapper = findByPropsLazy("memberSinceWrapper"); const container = findByPropsLazy("memberSince"); const getCreatedAtDate = findByCodeLazy('month:"short",day:"numeric"'); const locale = findByPropsLazy("getLocale"); -const Section = findComponentByCodeLazy("headingVariant:", ".section", ".header"); +const Section = findComponentByCodeLazy("headingVariant:", '"section"', "headingIcon:"); export default definePlugin({ name: "FriendsSince", diff --git a/src/plugins/sortFriendRequests/index.tsx b/src/plugins/sortFriendRequests/index.tsx index 8d7b2df6e..877a11bb0 100644 --- a/src/plugins/sortFriendRequests/index.tsx +++ b/src/plugins/sortFriendRequests/index.tsx @@ -65,7 +65,7 @@ export default definePlugin({ find: "#{intl::FRIEND_REQUEST_CANCEL}", replacement: { predicate: () => settings.store.showDates, - match: /(?<=\.listItemContents,children:\[)\(0,.+?(?=,\(0)(?<=user:(\i).+?)/, + match: /(?<=\.\i,children:\[)\(0,.+?(?=,\(0)(?<=user:(\i).+?)/, replace: (children, user) => `$self.WrapperDateComponent({user:${user},children:${children}})` } }], diff --git a/src/webpack/common/components.ts b/src/webpack/common/components.ts index e388a8a17..17d3aa3b9 100644 --- a/src/webpack/common/components.ts +++ b/src/webpack/common/components.ts @@ -52,7 +52,7 @@ export const Switch = FormSwitchCompat as never; /** @deprecated Use Card from Vencord */ export const Card = waitForComponent("Card", filters.componentByCode(".editable),", ".outline:")); -export const Checkbox = waitForComponent("Checkbox", filters.componentByCode(".checkboxWrapperDisabled:")); +export const Checkbox = waitForComponent("Checkbox", filters.componentByCode('"data-toggleable-component":"checkbox')); export const Tooltip = waitForComponent("Tooltip", m => m.prototype?.shouldShowTooltip && m.prototype.render, TooltipFallback); /** @deprecated import from @vencord/components */ diff --git a/src/webpack/webpack.ts b/src/webpack/webpack.ts index 9161b2e26..bfd7c0af5 100644 --- a/src/webpack/webpack.ts +++ b/src/webpack/webpack.ts @@ -389,7 +389,7 @@ export function findModuleFactory(...code: CodeFilter) { return wreq.m[id]; } -export const lazyWebpackSearchHistory = [] as Array<["find" | "findByProps" | "findByCode" | "findStore" | "findComponent" | "findComponentByCode" | "findExportedComponent" | "waitFor" | "waitForComponent" | "waitForStore" | "proxyLazyWebpack" | "LazyComponentWebpack" | "extractAndLoadChunks" | "mapMangledModule", any[]]>; +export const lazyWebpackSearchHistory = [] as Array<["find" | "findByProps" | "findByCode" | "findCssClasses" | "findStore" | "findComponent" | "findComponentByCode" | "findExportedComponent" | "waitFor" | "waitForComponent" | "waitForStore" | "proxyLazyWebpack" | "LazyComponentWebpack" | "extractAndLoadChunks" | "mapMangledModule", any[]]>; /** * This is just a wrapper around {@link proxyLazy} to make our reporter test for your webpack finds.