@plexcord/types 1.19.7 → 1.19.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/ChatButtons.d.ts +1 -1
- package/components/Switch.d.ts +8 -2
- package/locales/en.d.ts +24 -36
- package/package.json +1 -1
- package/plugins/_api/notices.d.ts +0 -6
- package/plugins/_api/userArea.d.ts +0 -2
- package/plugins/_core/settings.d.ts +0 -6
- package/plugins/clipsEnhancements/index.d.ts +2 -8
- package/plugins/decor/index.d.ts +7 -0
- package/plugins/decor/ui/index.d.ts +1 -1
- package/plugins/devCompanion.dev/index.d.ts +2 -54
- package/plugins/holyNotes/index.d.ts +7 -0
- package/plugins/ignoreActivities/index.d.ts +2 -4
- package/plugins/mediaPlaybackSpeed/index.d.ts +3 -3
- package/plugins/musicControls/spotify/lyrics/components/util.d.ts +1 -1
- package/plugins/musicControls/tidal/lyrics/components/util.d.ts +1 -1
- package/plugins/plainFolderIcon/index.d.ts +1 -1
- package/plugins/questify/index.d.ts +15 -1
- package/plugins/questify/utils/components.d.ts +30 -13
- package/plugins/questify/utils/misc.d.ts +7 -1
- package/plugins/roleColorEverywhere/index.d.ts +10 -4
- package/plugins/showHiddenThings/index.d.ts +7 -0
- package/plugins/soundBoardLogger/utils.d.ts +1 -1
- package/plugins/superReactionTweaks/index.d.ts +2 -7
- package/plugins/unlimitedAccounts/index.d.ts +1 -1
- package/plugins/viewIcons/index.d.ts +1 -3
- package/plugins/webScreenShareFixes.web/index.d.ts +0 -15
- package/utils/text.d.ts +1 -1
- package/webpack/common/components.d.ts +2 -29
- package/webpack/common/index.d.ts +0 -1
- package/webpack/webpack.d.ts +15 -7
- package/plugins/devCompanion.dev/initWs.d.ts +0 -3
- package/plugins/devCompanion.dev/types/index.d.ts +0 -1
- package/plugins/devCompanion.dev/types/recieve.d.ts +0 -121
- package/plugins/devCompanion.dev/types/send.d.ts +0 -73
- package/plugins/devCompanion.dev/util.d.ts +0 -25
- package/plugins/videoSpeed/index.d.ts +0 -37
- package/webpack/common/classes.d.ts +0 -2
package/api/ChatButtons.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ export type ChatBarButtonData = {
|
|
|
75
75
|
* Don't use this directly, use {@link addChatBarButton} and {@link removeChatBarButton} instead.
|
|
76
76
|
*/
|
|
77
77
|
export declare const ChatBarButtonMap: Map<string, ChatBarButtonData>;
|
|
78
|
-
export declare function _injectButtons(buttons: ReactNode[], props: ChatBarProps):
|
|
78
|
+
export declare function _injectButtons(buttons: ReactNode[], props: ChatBarProps): void;
|
|
79
79
|
/**
|
|
80
80
|
* The icon argument is used only for Settings UI. Your render function must still render an icon,
|
|
81
81
|
* and it can be different from this one.
|
package/components/Switch.d.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import "./Switch.css";
|
|
2
|
+
import type { Ref } from "react";
|
|
2
3
|
export interface SwitchProps {
|
|
3
|
-
disabled?: boolean;
|
|
4
4
|
checked: boolean;
|
|
5
5
|
onChange: (checked: boolean) => void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
id?: string;
|
|
8
|
+
hasIcon?: boolean;
|
|
9
|
+
innerRef?: Ref<HTMLInputElement>;
|
|
10
|
+
"aria-describedby"?: string;
|
|
11
|
+
"aria-labelledby"?: string;
|
|
6
12
|
}
|
|
7
|
-
export declare function Switch({ checked, onChange, disabled }: SwitchProps): import("react").JSX.Element;
|
|
13
|
+
export declare function Switch({ checked, onChange, disabled, id, hasIcon, innerRef, ...ariaProps }: SwitchProps): import("react").JSX.Element;
|
package/locales/en.d.ts
CHANGED
|
@@ -1629,6 +1629,10 @@ declare const translations: {
|
|
|
1629
1629
|
readonly label: "Notification Sound";
|
|
1630
1630
|
readonly description: "Whether the notification sound should be played";
|
|
1631
1631
|
};
|
|
1632
|
+
readonly respectSilentPings: {
|
|
1633
|
+
readonly label: "Respect Silent Pings";
|
|
1634
|
+
readonly description: "Respect silent pings (@silent / suppress notifications)";
|
|
1635
|
+
};
|
|
1632
1636
|
readonly statusToUse: {
|
|
1633
1637
|
readonly label: "Status to Use";
|
|
1634
1638
|
readonly description: "Status to use for whitelist";
|
|
@@ -3564,16 +3568,9 @@ declare const translations: {
|
|
|
3564
3568
|
readonly label: "Notify on Auto Connect";
|
|
3565
3569
|
readonly description: "Whether to notify when Dev Companion has automatically connected.";
|
|
3566
3570
|
};
|
|
3567
|
-
readonly usePatchedModule: {
|
|
3568
|
-
readonly label: "Use Patched Module";
|
|
3569
|
-
readonly description: "On extract requests, reply with the current patched module (if it is patched) instead of the original.";
|
|
3570
|
-
};
|
|
3571
|
-
readonly reloadAfterToggle: {
|
|
3572
|
-
readonly label: "Reload After Toggle";
|
|
3573
|
-
readonly description: "Reload after a disable/enable plugin command is received.";
|
|
3574
|
-
};
|
|
3575
3571
|
};
|
|
3576
3572
|
readonly toast: {
|
|
3573
|
+
readonly title: "Dev Companion Connected";
|
|
3577
3574
|
readonly connected: "Connected to WebSocket";
|
|
3578
3575
|
readonly disconnected: "Dev Companion Disconnected";
|
|
3579
3576
|
readonly error: "Dev Companion Error";
|
|
@@ -3582,6 +3579,8 @@ declare const translations: {
|
|
|
3582
3579
|
readonly close: "Close";
|
|
3583
3580
|
readonly stopping: "Error while stopping plugin {{plugin}}";
|
|
3584
3581
|
readonly starting: "Error while starting plugin {{plugin}}";
|
|
3582
|
+
readonly noMessage: "No Error Message";
|
|
3583
|
+
readonly noReason: "No Reason Provided";
|
|
3585
3584
|
};
|
|
3586
3585
|
};
|
|
3587
3586
|
readonly disableCallIdle: {
|
|
@@ -7107,6 +7106,11 @@ declare const translations: {
|
|
|
7107
7106
|
readonly complete: "Complete {{remainTime}}";
|
|
7108
7107
|
readonly completeImmediate: "Complete (Immediate)";
|
|
7109
7108
|
};
|
|
7109
|
+
readonly reward: {
|
|
7110
|
+
readonly orbs: "{{completingText}} for {{orbQuantity}} Orbs.";
|
|
7111
|
+
readonly article: "{{completingText}} for {{itemName}}.";
|
|
7112
|
+
readonly unrecognized: "{{completingText}} for an unrecognized reward type.";
|
|
7113
|
+
};
|
|
7110
7114
|
readonly notification: {
|
|
7111
7115
|
readonly completed: {
|
|
7112
7116
|
readonly title: "Quest Completed";
|
|
@@ -9161,16 +9165,6 @@ declare const translations: {
|
|
|
9161
9165
|
readonly placeholdersInfo: "The special placeholders {{USER}}, {{DISPLAY_NAME}}, {{NICKNAME}} and {{CHANNEL}} will be replaced with the user's name (nothing if it's yourself), the user's display name, the user's nickname on current server and the channel's name respectively";
|
|
9162
9166
|
};
|
|
9163
9167
|
};
|
|
9164
|
-
readonly videoSpeed: {
|
|
9165
|
-
readonly name: "VideoSpeed";
|
|
9166
|
-
readonly description: "Allows you to change the speed of videos";
|
|
9167
|
-
readonly option: {
|
|
9168
|
-
readonly preservePitch: {
|
|
9169
|
-
readonly label: "Preserve Pitch";
|
|
9170
|
-
readonly description: "Should pitch be preserved when changing speed?";
|
|
9171
|
-
};
|
|
9172
|
-
};
|
|
9173
|
-
};
|
|
9174
9168
|
readonly viewIcons: {
|
|
9175
9169
|
readonly name: "ViewIcons";
|
|
9176
9170
|
readonly description: "Makes avatars and banners in user profiles clickable, adds View Icon/Banner entries in the user, server and group channel context menu.";
|
|
@@ -11229,6 +11223,10 @@ export declare const plugin: DeepKeyProxy<{
|
|
|
11229
11223
|
readonly label: "Notification Sound";
|
|
11230
11224
|
readonly description: "Whether the notification sound should be played";
|
|
11231
11225
|
};
|
|
11226
|
+
readonly respectSilentPings: {
|
|
11227
|
+
readonly label: "Respect Silent Pings";
|
|
11228
|
+
readonly description: "Respect silent pings (@silent / suppress notifications)";
|
|
11229
|
+
};
|
|
11232
11230
|
readonly statusToUse: {
|
|
11233
11231
|
readonly label: "Status to Use";
|
|
11234
11232
|
readonly description: "Status to use for whitelist";
|
|
@@ -13164,16 +13162,9 @@ export declare const plugin: DeepKeyProxy<{
|
|
|
13164
13162
|
readonly label: "Notify on Auto Connect";
|
|
13165
13163
|
readonly description: "Whether to notify when Dev Companion has automatically connected.";
|
|
13166
13164
|
};
|
|
13167
|
-
readonly usePatchedModule: {
|
|
13168
|
-
readonly label: "Use Patched Module";
|
|
13169
|
-
readonly description: "On extract requests, reply with the current patched module (if it is patched) instead of the original.";
|
|
13170
|
-
};
|
|
13171
|
-
readonly reloadAfterToggle: {
|
|
13172
|
-
readonly label: "Reload After Toggle";
|
|
13173
|
-
readonly description: "Reload after a disable/enable plugin command is received.";
|
|
13174
|
-
};
|
|
13175
13165
|
};
|
|
13176
13166
|
readonly toast: {
|
|
13167
|
+
readonly title: "Dev Companion Connected";
|
|
13177
13168
|
readonly connected: "Connected to WebSocket";
|
|
13178
13169
|
readonly disconnected: "Dev Companion Disconnected";
|
|
13179
13170
|
readonly error: "Dev Companion Error";
|
|
@@ -13182,6 +13173,8 @@ export declare const plugin: DeepKeyProxy<{
|
|
|
13182
13173
|
readonly close: "Close";
|
|
13183
13174
|
readonly stopping: "Error while stopping plugin {{plugin}}";
|
|
13184
13175
|
readonly starting: "Error while starting plugin {{plugin}}";
|
|
13176
|
+
readonly noMessage: "No Error Message";
|
|
13177
|
+
readonly noReason: "No Reason Provided";
|
|
13185
13178
|
};
|
|
13186
13179
|
};
|
|
13187
13180
|
readonly disableCallIdle: {
|
|
@@ -16707,6 +16700,11 @@ export declare const plugin: DeepKeyProxy<{
|
|
|
16707
16700
|
readonly complete: "Complete {{remainTime}}";
|
|
16708
16701
|
readonly completeImmediate: "Complete (Immediate)";
|
|
16709
16702
|
};
|
|
16703
|
+
readonly reward: {
|
|
16704
|
+
readonly orbs: "{{completingText}} for {{orbQuantity}} Orbs.";
|
|
16705
|
+
readonly article: "{{completingText}} for {{itemName}}.";
|
|
16706
|
+
readonly unrecognized: "{{completingText}} for an unrecognized reward type.";
|
|
16707
|
+
};
|
|
16710
16708
|
readonly notification: {
|
|
16711
16709
|
readonly completed: {
|
|
16712
16710
|
readonly title: "Quest Completed";
|
|
@@ -18761,16 +18759,6 @@ export declare const plugin: DeepKeyProxy<{
|
|
|
18761
18759
|
readonly placeholdersInfo: "The special placeholders {{USER}}, {{DISPLAY_NAME}}, {{NICKNAME}} and {{CHANNEL}} will be replaced with the user's name (nothing if it's yourself), the user's display name, the user's nickname on current server and the channel's name respectively";
|
|
18762
18760
|
};
|
|
18763
18761
|
};
|
|
18764
|
-
readonly videoSpeed: {
|
|
18765
|
-
readonly name: "VideoSpeed";
|
|
18766
|
-
readonly description: "Allows you to change the speed of videos";
|
|
18767
|
-
readonly option: {
|
|
18768
|
-
readonly preservePitch: {
|
|
18769
|
-
readonly label: "Preserve Pitch";
|
|
18770
|
-
readonly description: "Should pitch be preserved when changing speed?";
|
|
18771
|
-
};
|
|
18772
|
-
};
|
|
18773
|
-
};
|
|
18774
18762
|
readonly viewIcons: {
|
|
18775
18763
|
readonly name: "ViewIcons";
|
|
18776
18764
|
readonly description: "Makes avatars and banners in user profiles clickable, adds View Icon/Banner entries in the user, server and group channel context menu.";
|
package/package.json
CHANGED
|
@@ -11,15 +11,9 @@ declare const _default: {
|
|
|
11
11
|
replacement: ({
|
|
12
12
|
match: RegExp;
|
|
13
13
|
replace: string;
|
|
14
|
-
noWarn?: undefined;
|
|
15
|
-
} | {
|
|
16
|
-
match: RegExp;
|
|
17
|
-
replace: (m: string, notice: string) => string;
|
|
18
|
-
noWarn: true;
|
|
19
14
|
} | {
|
|
20
15
|
match: RegExp;
|
|
21
16
|
replace: (m: string, _: string, notice: string) => string;
|
|
22
|
-
noWarn?: undefined;
|
|
23
17
|
})[];
|
|
24
18
|
}[];
|
|
25
19
|
} & Record<PropertyKey, any> & import("../../utils/types").Plugin;
|
|
@@ -14,8 +14,6 @@ declare const _default: {
|
|
|
14
14
|
}[];
|
|
15
15
|
renderButtons(props: {
|
|
16
16
|
nameplate?: any;
|
|
17
|
-
}, styles: {
|
|
18
|
-
iconForeground?: string;
|
|
19
17
|
}): import("react").JSX.Element[];
|
|
20
18
|
shouldHideTooltips(): boolean;
|
|
21
19
|
} & Record<PropertyKey, any> & import("../../utils/types").Plugin;
|
|
@@ -115,12 +115,6 @@ declare const _default: {
|
|
|
115
115
|
match: RegExp;
|
|
116
116
|
replace: (m: string, _buildOverride: string, makeRow: string, component: string, props: string) => string;
|
|
117
117
|
})[];
|
|
118
|
-
} | {
|
|
119
|
-
find: string;
|
|
120
|
-
replacement: {
|
|
121
|
-
match: RegExp;
|
|
122
|
-
replace: (_: string, settingsPanel: string, section: string, openUserSettings: string) => string;
|
|
123
|
-
};
|
|
124
118
|
} | {
|
|
125
119
|
find: string;
|
|
126
120
|
replacement: {
|
|
@@ -91,19 +91,13 @@ declare const _default: {
|
|
|
91
91
|
component: () => import("react").JSX.Element;
|
|
92
92
|
};
|
|
93
93
|
}>, {}>;
|
|
94
|
-
patches:
|
|
94
|
+
patches: {
|
|
95
95
|
find: string;
|
|
96
96
|
replacement: {
|
|
97
97
|
match: RegExp;
|
|
98
98
|
replace: string;
|
|
99
99
|
};
|
|
100
|
-
}
|
|
101
|
-
find: string;
|
|
102
|
-
replacement: {
|
|
103
|
-
match: RegExp;
|
|
104
|
-
replace: string;
|
|
105
|
-
}[];
|
|
106
|
-
})[];
|
|
100
|
+
}[];
|
|
107
101
|
patchTimeslots(timeslots: any): any[];
|
|
108
102
|
patchFramerates(framerates: any): any[];
|
|
109
103
|
getApplicationId(activityName: string): string | null | undefined;
|
package/plugins/decor/index.d.ts
CHANGED
|
@@ -31,6 +31,13 @@ declare const _default: {
|
|
|
31
31
|
match: RegExp;
|
|
32
32
|
replace: string;
|
|
33
33
|
}[];
|
|
34
|
+
} | {
|
|
35
|
+
find: string;
|
|
36
|
+
replacement: {
|
|
37
|
+
match: RegExp;
|
|
38
|
+
replace: (_: string, rest: string, avatarDecoration: string, hasPurchase: string) => string;
|
|
39
|
+
};
|
|
40
|
+
group?: undefined;
|
|
34
41
|
})[];
|
|
35
42
|
settings: import("../../utils/types").DefinedSettings<{
|
|
36
43
|
changeDecoration: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const cl: (...args: import("../../../utils/css").ClassNameFactoryArg[]) => string;
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const DecorationModalClasses: Record<"spinner" | "modal" | "modalPreview" | "modalCloseButton", string>;
|
|
3
3
|
export declare const requireAvatarDecorationModal: () => Promise<boolean>;
|
|
4
4
|
export declare const requireCreateStickerModal: () => Promise<boolean>;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import { Logger } from "../../utils/Logger";
|
|
2
1
|
import { OptionType, ReporterTestable } from "../../utils/types";
|
|
3
|
-
import { stopWs } from "./initWs";
|
|
4
|
-
export declare const PORT = 8485;
|
|
5
|
-
export declare const CLIENT_VERSION: readonly [major: number, minor: number, patch: number];
|
|
6
|
-
export declare const logger: Logger;
|
|
7
2
|
export declare const settings: import("../../utils/types").DefinedSettings<{
|
|
8
3
|
notifyOnAutoConnect: {
|
|
9
4
|
label: () => string;
|
|
@@ -11,18 +6,6 @@ export declare const settings: import("../../utils/types").DefinedSettings<{
|
|
|
11
6
|
type: OptionType.BOOLEAN;
|
|
12
7
|
default: true;
|
|
13
8
|
};
|
|
14
|
-
usePatchedModule: {
|
|
15
|
-
label: () => string;
|
|
16
|
-
description: () => string;
|
|
17
|
-
default: true;
|
|
18
|
-
type: OptionType.BOOLEAN;
|
|
19
|
-
};
|
|
20
|
-
reloadAfterToggle: {
|
|
21
|
-
label: () => string;
|
|
22
|
-
description: () => string;
|
|
23
|
-
default: true;
|
|
24
|
-
type: OptionType.BOOLEAN;
|
|
25
|
-
};
|
|
26
9
|
}, import("../../utils/types").SettingsChecks<{
|
|
27
10
|
notifyOnAutoConnect: {
|
|
28
11
|
label: () => string;
|
|
@@ -30,19 +13,8 @@ export declare const settings: import("../../utils/types").DefinedSettings<{
|
|
|
30
13
|
type: OptionType.BOOLEAN;
|
|
31
14
|
default: true;
|
|
32
15
|
};
|
|
33
|
-
usePatchedModule: {
|
|
34
|
-
label: () => string;
|
|
35
|
-
description: () => string;
|
|
36
|
-
default: true;
|
|
37
|
-
type: OptionType.BOOLEAN;
|
|
38
|
-
};
|
|
39
|
-
reloadAfterToggle: {
|
|
40
|
-
label: () => string;
|
|
41
|
-
description: () => string;
|
|
42
|
-
default: true;
|
|
43
|
-
type: OptionType.BOOLEAN;
|
|
44
|
-
};
|
|
45
16
|
}>, {}>;
|
|
17
|
+
export declare function initWs(isManual?: boolean): void;
|
|
46
18
|
declare const _default: {
|
|
47
19
|
name: string;
|
|
48
20
|
description: () => string;
|
|
@@ -58,18 +30,6 @@ declare const _default: {
|
|
|
58
30
|
type: OptionType.BOOLEAN;
|
|
59
31
|
default: true;
|
|
60
32
|
};
|
|
61
|
-
usePatchedModule: {
|
|
62
|
-
label: () => string;
|
|
63
|
-
description: () => string;
|
|
64
|
-
default: true;
|
|
65
|
-
type: OptionType.BOOLEAN;
|
|
66
|
-
};
|
|
67
|
-
reloadAfterToggle: {
|
|
68
|
-
label: () => string;
|
|
69
|
-
description: () => string;
|
|
70
|
-
default: true;
|
|
71
|
-
type: OptionType.BOOLEAN;
|
|
72
|
-
};
|
|
73
33
|
}, import("../../utils/types").SettingsChecks<{
|
|
74
34
|
notifyOnAutoConnect: {
|
|
75
35
|
label: () => string;
|
|
@@ -77,23 +37,11 @@ declare const _default: {
|
|
|
77
37
|
type: OptionType.BOOLEAN;
|
|
78
38
|
default: true;
|
|
79
39
|
};
|
|
80
|
-
usePatchedModule: {
|
|
81
|
-
label: () => string;
|
|
82
|
-
description: () => string;
|
|
83
|
-
default: true;
|
|
84
|
-
type: OptionType.BOOLEAN;
|
|
85
|
-
};
|
|
86
|
-
reloadAfterToggle: {
|
|
87
|
-
label: () => string;
|
|
88
|
-
description: () => string;
|
|
89
|
-
default: true;
|
|
90
|
-
type: OptionType.BOOLEAN;
|
|
91
|
-
};
|
|
92
40
|
}>, {}>;
|
|
93
41
|
toolboxActions: () => {
|
|
94
42
|
[x: string]: () => void;
|
|
95
43
|
};
|
|
96
44
|
start(): void;
|
|
97
|
-
stop:
|
|
45
|
+
stop(): void;
|
|
98
46
|
} & Record<PropertyKey, any> & import("../../utils/types").Plugin;
|
|
99
47
|
export default _default;
|
|
@@ -2,6 +2,13 @@ import "./style.css";
|
|
|
2
2
|
import { NavContextMenuPatchCallback } from "../../api/ContextMenu";
|
|
3
3
|
import { Message } from "@plexcord/discord-types";
|
|
4
4
|
export declare const MessageType: any;
|
|
5
|
+
export declare const statusTagGreen: string;
|
|
6
|
+
export declare const iconClasses: Record<"clickable" | "iconWrapper", string>;
|
|
7
|
+
export declare const resultsClasses: Record<"alt" | "emptyResultsWrap" | "emptyResultsContent" | "errorImage" | "emptyResultsText" | "noResultsImage", string>;
|
|
8
|
+
export declare const quickSelectClasses: Record<"quickSelect" | "quickSelectLabel" | "quickSelectClick" | "quickSelectValue" | "quickSelectArrow", string>;
|
|
9
|
+
export declare const messageClasses: Record<"message" | "groupStart" | "cozyMessage", string>;
|
|
10
|
+
export declare const Channel: any;
|
|
11
|
+
export declare const ChannelMessage: import("../../utils").LazyComponentWrapper<import("react").ComponentType<any>>;
|
|
5
12
|
declare function HolyNotesButton(): import("react").JSX.Element;
|
|
6
13
|
declare const _default: {
|
|
7
14
|
name: string;
|
|
@@ -173,15 +173,13 @@ declare const _default: {
|
|
|
173
173
|
find: string;
|
|
174
174
|
replacement: {
|
|
175
175
|
match: RegExp;
|
|
176
|
-
replace: (m: string,
|
|
177
|
-
noWarn: true;
|
|
176
|
+
replace: (m: string, runningGames: string) => string;
|
|
178
177
|
};
|
|
179
178
|
} | {
|
|
180
179
|
find: string;
|
|
181
180
|
replacement: {
|
|
182
181
|
match: RegExp;
|
|
183
|
-
replace:
|
|
184
|
-
noWarn?: undefined;
|
|
182
|
+
replace: string;
|
|
185
183
|
};
|
|
186
184
|
})[];
|
|
187
185
|
start(): Promise<void>;
|
|
@@ -54,9 +54,6 @@ declare const _default: {
|
|
|
54
54
|
markers: number[];
|
|
55
55
|
};
|
|
56
56
|
}>, {}>;
|
|
57
|
-
renderPlaybackSpeedComponent: import("react").FunctionComponent<{
|
|
58
|
-
mediaRef: MediaRef;
|
|
59
|
-
}>;
|
|
60
57
|
patches: {
|
|
61
58
|
find: string;
|
|
62
59
|
replacement: {
|
|
@@ -64,5 +61,8 @@ declare const _default: {
|
|
|
64
61
|
replace: string;
|
|
65
62
|
};
|
|
66
63
|
}[];
|
|
64
|
+
renderPlaybackSpeedComponent: import("react").FunctionComponent<{
|
|
65
|
+
mediaRef: MediaRef;
|
|
66
|
+
}>;
|
|
67
67
|
} & Record<PropertyKey, any> & import("../../utils/types").Plugin;
|
|
68
68
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const scrollClasses:
|
|
1
|
+
export declare const scrollClasses: Record<"auto" | "customTheme", string>;
|
|
2
2
|
export declare const cl: (...args: import("../../../../../utils/css").ClassNameFactoryArg[]) => string;
|
|
3
3
|
export declare function NoteSvg(): import("react").JSX.Element;
|
|
4
4
|
export declare function useLyrics({ scroll }?: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EnhancedLyric } from "../types";
|
|
2
|
-
export declare const scrollClasses:
|
|
2
|
+
export declare const scrollClasses: Record<"auto" | "customTheme", string>;
|
|
3
3
|
export declare const cl: (...args: import("../../../../../utils/css").ClassNameFactoryArg[]) => string;
|
|
4
4
|
export declare function NoteSvg(className: string): import("react").JSX.Element;
|
|
5
5
|
export declare function useLyrics({ scroll }?: {
|
|
@@ -29,7 +29,18 @@ export declare function getQuestTileStyle(quest: Quest | null): Record<string, s
|
|
|
29
29
|
declare function shouldPreloadQuestAssets(): boolean;
|
|
30
30
|
declare function processQuestForAutoComplete(quest: Quest): boolean;
|
|
31
31
|
declare function getQuestUnacceptedButtonText(quest: Quest): string | null;
|
|
32
|
-
declare function getQuestAcceptedButtonText(quest: Quest): string | null;
|
|
32
|
+
declare function getQuestAcceptedButtonText(quest: Quest, prepositional?: boolean): string | null;
|
|
33
|
+
declare function getQuestPanelPercentComplete({ quest, percentCompleteText }: {
|
|
34
|
+
quest: Quest;
|
|
35
|
+
percentCompleteText?: string;
|
|
36
|
+
}): {
|
|
37
|
+
percentComplete: number;
|
|
38
|
+
} | {
|
|
39
|
+
percentComplete: number;
|
|
40
|
+
percentCompleteText: string;
|
|
41
|
+
} | null;
|
|
42
|
+
declare function getQuestPanelSubtitleText(quest: Quest): string | null;
|
|
43
|
+
declare function getQuestPanelTitleText(quest: Quest): string | null;
|
|
33
44
|
declare function getQuestPanelOverride(): Quest | null;
|
|
34
45
|
declare function disguiseHomeButton(location: string): boolean;
|
|
35
46
|
declare function useQuestRerender(): number;
|
|
@@ -815,9 +826,12 @@ declare const _default: {
|
|
|
815
826
|
shouldHideFriendsListActiveNowPromotion: typeof shouldHideFriendsListActiveNowPromotion;
|
|
816
827
|
shouldHideMembersListActivelyPlayingIcon: typeof shouldHideMembersListActivelyPlayingIcon;
|
|
817
828
|
getQuestUnacceptedButtonText: typeof getQuestUnacceptedButtonText;
|
|
829
|
+
getQuestPanelPercentComplete: typeof getQuestPanelPercentComplete;
|
|
818
830
|
processQuestForAutoComplete: typeof processQuestForAutoComplete;
|
|
819
831
|
getQuestAcceptedButtonProps: typeof getQuestAcceptedButtonProps;
|
|
820
832
|
getQuestAcceptedButtonText: typeof getQuestAcceptedButtonText;
|
|
833
|
+
getQuestPanelSubtitleText: typeof getQuestPanelSubtitleText;
|
|
834
|
+
getQuestPanelTitleText: typeof getQuestPanelTitleText;
|
|
821
835
|
getQuestPanelOverride: typeof getQuestPanelOverride;
|
|
822
836
|
setLastFilterChoices: typeof setLastFilterChoices;
|
|
823
837
|
getLastFilterChoices: typeof getLastFilterChoices;
|
|
@@ -49,6 +49,19 @@ export type QuestMap = Map<string, Quest>;
|
|
|
49
49
|
export interface ExcludedQuest {
|
|
50
50
|
id: string;
|
|
51
51
|
}
|
|
52
|
+
export declare enum QuestTaskType {
|
|
53
|
+
WATCH_VIDEO = "WATCH_VIDEO",
|
|
54
|
+
WATCH_VIDEO_ON_MOBILE = "WATCH_VIDEO_ON_MOBILE",
|
|
55
|
+
PLAY_ON_DESKTOP = "PLAY_ON_DESKTOP",
|
|
56
|
+
PLAY_ON_XBOX = "PLAY_ON_XBOX",
|
|
57
|
+
PLAY_ON_PLAYSTATION = "PLAY_ON_PLAYSTATION",
|
|
58
|
+
PLAY_ACTIVITY = "PLAY_ACTIVITY",
|
|
59
|
+
ACHIEVEMENT_IN_ACTIVITY = "ACHIEVEMENT_IN_ACTIVITY"
|
|
60
|
+
}
|
|
61
|
+
export interface QuestTask {
|
|
62
|
+
type: QuestTaskType;
|
|
63
|
+
target: number;
|
|
64
|
+
}
|
|
52
65
|
export interface Quest {
|
|
53
66
|
questifyNumber: number;
|
|
54
67
|
id: string;
|
|
@@ -65,36 +78,40 @@ export interface Quest {
|
|
|
65
78
|
rewardsConfig: {
|
|
66
79
|
rewards: {
|
|
67
80
|
type: QuestRewardType;
|
|
81
|
+
orbQuantity?: number;
|
|
82
|
+
messages?: {
|
|
83
|
+
nameWithArticle: string;
|
|
84
|
+
};
|
|
68
85
|
}[];
|
|
69
86
|
};
|
|
70
87
|
taskConfigV2: {
|
|
71
88
|
tasks: {
|
|
72
89
|
WATCH_VIDEO?: {
|
|
73
|
-
type:
|
|
90
|
+
type: QuestTaskType.WATCH_VIDEO;
|
|
74
91
|
target: number;
|
|
75
92
|
};
|
|
76
93
|
WATCH_VIDEO_ON_MOBILE?: {
|
|
77
|
-
type:
|
|
94
|
+
type: QuestTaskType.WATCH_VIDEO_ON_MOBILE;
|
|
78
95
|
target: number;
|
|
79
96
|
};
|
|
80
97
|
PLAY_ON_DESKTOP?: {
|
|
81
|
-
type:
|
|
98
|
+
type: QuestTaskType.PLAY_ON_DESKTOP;
|
|
82
99
|
target: number;
|
|
83
100
|
};
|
|
84
101
|
PLAY_ON_XBOX?: {
|
|
85
|
-
type:
|
|
102
|
+
type: QuestTaskType.PLAY_ON_XBOX;
|
|
86
103
|
target: number;
|
|
87
104
|
};
|
|
88
105
|
PLAY_ON_PLAYSTATION?: {
|
|
89
|
-
type:
|
|
106
|
+
type: QuestTaskType.PLAY_ON_PLAYSTATION;
|
|
90
107
|
target: number;
|
|
91
108
|
};
|
|
92
109
|
PLAY_ACTIVITY?: {
|
|
93
|
-
type:
|
|
110
|
+
type: QuestTaskType.PLAY_ACTIVITY;
|
|
94
111
|
target: number;
|
|
95
112
|
};
|
|
96
113
|
ACHIEVEMENT_IN_ACTIVITY?: {
|
|
97
|
-
type:
|
|
114
|
+
type: QuestTaskType.ACHIEVEMENT_IN_ACTIVITY;
|
|
98
115
|
target: number;
|
|
99
116
|
eventName: "progress";
|
|
100
117
|
applications: {
|
|
@@ -111,27 +128,27 @@ export interface Quest {
|
|
|
111
128
|
enrolledAt: string | null;
|
|
112
129
|
progress: null | {
|
|
113
130
|
WATCH_VIDEO?: {
|
|
114
|
-
eventName:
|
|
131
|
+
eventName: QuestTaskType.WATCH_VIDEO;
|
|
115
132
|
value: number;
|
|
116
133
|
};
|
|
117
134
|
WATCH_VIDEO_ON_MOBILE?: {
|
|
118
|
-
eventName:
|
|
135
|
+
eventName: QuestTaskType.WATCH_VIDEO_ON_MOBILE;
|
|
119
136
|
value: number;
|
|
120
137
|
};
|
|
121
138
|
PLAY_ON_DESKTOP?: {
|
|
122
|
-
eventName:
|
|
139
|
+
eventName: QuestTaskType.PLAY_ON_DESKTOP;
|
|
123
140
|
value: number;
|
|
124
141
|
};
|
|
125
142
|
PLAY_ON_XBOX?: {
|
|
126
|
-
eventName:
|
|
143
|
+
eventName: QuestTaskType.PLAY_ON_XBOX;
|
|
127
144
|
value: number;
|
|
128
145
|
};
|
|
129
146
|
PLAY_ON_PLAYSTATION?: {
|
|
130
|
-
eventName:
|
|
147
|
+
eventName: QuestTaskType.PLAY_ON_PLAYSTATION;
|
|
131
148
|
value: number;
|
|
132
149
|
};
|
|
133
150
|
PLAY_ACTIVITY?: {
|
|
134
|
-
eventName:
|
|
151
|
+
eventName: QuestTaskType.PLAY_ACTIVITY;
|
|
135
152
|
value: number;
|
|
136
153
|
};
|
|
137
154
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Logger } from "../../../utils/Logger";
|
|
2
|
-
import { Quest, QuestStatus, RGB } from "./components";
|
|
2
|
+
import { Quest, QuestStatus, QuestTask, RGB } from "./components";
|
|
3
3
|
export declare const q: (...args: import("../../../utils/css").ClassNameFactoryArg[]) => string;
|
|
4
4
|
export declare const QuestifyLogger: Logger;
|
|
5
5
|
export declare const QuestsStore: any;
|
|
@@ -10,6 +10,12 @@ export declare const middleClick = 1;
|
|
|
10
10
|
export declare const rightClick = 2;
|
|
11
11
|
export declare function setIgnoredQuestIDs(questIDs: string[], userId?: string): void;
|
|
12
12
|
export declare function getIgnoredQuestIDs(userId?: string): string[];
|
|
13
|
+
export declare function getQuestTask(quest: Quest): QuestTask;
|
|
14
|
+
export declare function getQuestProgress(quest: Quest, task: QuestTask): any;
|
|
15
|
+
export declare function getQuestTarget(task: QuestTask): {
|
|
16
|
+
raw: number;
|
|
17
|
+
adjusted: number;
|
|
18
|
+
};
|
|
13
19
|
export declare function getQuestStatus(quest: Quest, checkIgnored?: boolean): QuestStatus;
|
|
14
20
|
export declare function refreshQuest(quest: Quest): Quest;
|
|
15
21
|
export declare function isSoundAllowed(url: string): Promise<boolean>;
|
|
@@ -114,6 +114,13 @@ declare const _default: {
|
|
|
114
114
|
replace: string;
|
|
115
115
|
}[];
|
|
116
116
|
predicate: () => boolean;
|
|
117
|
+
} | {
|
|
118
|
+
find: string;
|
|
119
|
+
replacement: {
|
|
120
|
+
match: RegExp;
|
|
121
|
+
replace: (_: string, rest: string) => string;
|
|
122
|
+
}[];
|
|
123
|
+
predicate: () => boolean;
|
|
117
124
|
} | {
|
|
118
125
|
find: string;
|
|
119
126
|
replacement: {
|
|
@@ -122,7 +129,6 @@ declare const _default: {
|
|
|
122
129
|
};
|
|
123
130
|
predicate: () => boolean;
|
|
124
131
|
})[];
|
|
125
|
-
getDisplayNameFont(userId: string): any;
|
|
126
132
|
getColorString(userId: string, channelOrGuildId: string): {
|
|
127
133
|
primaryColor: string | undefined;
|
|
128
134
|
secondaryColor: string | undefined;
|
|
@@ -133,7 +139,7 @@ declare const _default: {
|
|
|
133
139
|
tertiaryColor: null;
|
|
134
140
|
} | null;
|
|
135
141
|
getColorInt(userId: string, channelOrGuildId: string): number | "" | null | undefined;
|
|
136
|
-
getColorStyle(userId: string, channelOrGuildId: string): {
|
|
142
|
+
getColorStyle(userId: string, channelOrGuildId: string | null | undefined): {
|
|
137
143
|
"--custom-gradient-color-1"?: undefined;
|
|
138
144
|
"--custom-gradient-color-2"?: undefined;
|
|
139
145
|
"--custom-gradient-color-3"?: undefined;
|
|
@@ -149,8 +155,8 @@ declare const _default: {
|
|
|
149
155
|
"--custom-gradient-color-2"?: undefined;
|
|
150
156
|
"--custom-gradient-color-3"?: undefined;
|
|
151
157
|
};
|
|
152
|
-
getColorClass(userId: string, channelOrGuildId: string): string;
|
|
153
|
-
getPollResultColorClass(userId: string, channelOrGuildId: string): string;
|
|
158
|
+
getColorClass(userId: string, channelOrGuildId: string | null | undefined): string;
|
|
159
|
+
getPollResultColorClass(userId: string, channelOrGuildId: string | null | undefined): string;
|
|
154
160
|
useMessageColorsStyle(message: any): {
|
|
155
161
|
color: string;
|
|
156
162
|
"--text-strong": string;
|
|
@@ -67,6 +67,13 @@ declare const _default: {
|
|
|
67
67
|
match: RegExp;
|
|
68
68
|
replace: string;
|
|
69
69
|
};
|
|
70
|
+
} | {
|
|
71
|
+
find: string;
|
|
72
|
+
predicate: () => boolean;
|
|
73
|
+
replacement: {
|
|
74
|
+
match: RegExp;
|
|
75
|
+
replace: (_: string, rest: string, roles: string) => string;
|
|
76
|
+
};
|
|
70
77
|
})[];
|
|
71
78
|
getHighestRole({ member }: {
|
|
72
79
|
member: GuildMember;
|
|
@@ -28,4 +28,4 @@ export declare function getListeners(): Function[];
|
|
|
28
28
|
export declare function addListener(fn: any): void;
|
|
29
29
|
export declare function removeListener(fn: any): void;
|
|
30
30
|
export declare const UserSummaryItem: import("../../utils/react").LazyComponentWrapper<import("react").ComponentType<any>>;
|
|
31
|
-
export declare const AvatarStyles:
|
|
31
|
+
export declare const AvatarStyles: Record<"avatar" | "moreUsers" | "clickableAvatar" | "emptyUser" | "avatarContainer", string>;
|
|
@@ -55,15 +55,10 @@ declare const _default: {
|
|
|
55
55
|
}[];
|
|
56
56
|
patches: ({
|
|
57
57
|
find: string;
|
|
58
|
-
replacement:
|
|
59
|
-
match: RegExp;
|
|
60
|
-
replace: (_: string, rest: string, playingCount: string) => string;
|
|
61
|
-
noWarn: true;
|
|
62
|
-
} | {
|
|
58
|
+
replacement: {
|
|
63
59
|
match: RegExp;
|
|
64
60
|
replace: (_: string, rest: string, playingCount: string) => string;
|
|
65
|
-
|
|
66
|
-
})[];
|
|
61
|
+
}[];
|
|
67
62
|
} | {
|
|
68
63
|
find: string;
|
|
69
64
|
replacement: {
|
|
@@ -72,15 +72,13 @@ declare const _default: {
|
|
|
72
72
|
replacement: {
|
|
73
73
|
match: RegExp;
|
|
74
74
|
replace: string;
|
|
75
|
-
}
|
|
76
|
-
all: true;
|
|
75
|
+
};
|
|
77
76
|
} | {
|
|
78
77
|
find: string;
|
|
79
78
|
replacement: {
|
|
80
79
|
match: RegExp;
|
|
81
80
|
replace: (_: string, rest: string, bannerSrc: string) => string;
|
|
82
81
|
};
|
|
83
|
-
all?: undefined;
|
|
84
82
|
})[];
|
|
85
83
|
} & Record<PropertyKey, any> & import("../../utils/types").Plugin;
|
|
86
84
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { OptionType } from "../../utils/types";
|
|
2
1
|
declare const _default: {
|
|
3
2
|
name: string;
|
|
4
3
|
description: () => string;
|
|
@@ -7,19 +6,6 @@ declare const _default: {
|
|
|
7
6
|
id: bigint;
|
|
8
7
|
}[];
|
|
9
8
|
enabledByDefault: true;
|
|
10
|
-
settings: import("../../utils/types").DefinedSettings<{
|
|
11
|
-
experimentalAV1Support: {
|
|
12
|
-
type: OptionType.BOOLEAN;
|
|
13
|
-
description: string;
|
|
14
|
-
default: false;
|
|
15
|
-
};
|
|
16
|
-
}, import("../../utils/types").SettingsChecks<{
|
|
17
|
-
experimentalAV1Support: {
|
|
18
|
-
type: OptionType.BOOLEAN;
|
|
19
|
-
description: string;
|
|
20
|
-
default: false;
|
|
21
|
-
};
|
|
22
|
-
}>, {}>;
|
|
23
9
|
patches: {
|
|
24
10
|
find: string;
|
|
25
11
|
replacement: ({
|
|
@@ -30,6 +16,5 @@ declare const _default: {
|
|
|
30
16
|
replace: string;
|
|
31
17
|
})[];
|
|
32
18
|
}[];
|
|
33
|
-
getCodecs(Codecs: Record<string, string>): string[];
|
|
34
19
|
} & Record<PropertyKey, any> & import("../../utils/types").Plugin;
|
|
35
20
|
export default _default;
|
package/utils/text.d.ts
CHANGED
|
@@ -36,5 +36,5 @@ export declare function humanFriendlyJoin<T>(elements: T[], mapper: (e: T) => st
|
|
|
36
36
|
export declare function makeCodeblock(text: string, language?: string): string;
|
|
37
37
|
export declare function stripIndent(strings: TemplateStringsArray, ...values: any[]): string;
|
|
38
38
|
export declare const ZWSP = "\u200B";
|
|
39
|
-
export declare
|
|
39
|
+
export declare const escapeRegExp: (s: string) => string;
|
|
40
40
|
export {};
|
|
@@ -17,8 +17,6 @@ export declare const Text: t.Text;
|
|
|
17
17
|
export declare const Button: t.Button;
|
|
18
18
|
/** @deprecated Use FormSwitch from Plexcord */
|
|
19
19
|
export declare const Switch: never;
|
|
20
|
-
/** @deprecated Use Card from Plexcord */
|
|
21
|
-
export declare const Card: never;
|
|
22
20
|
export declare const Checkbox: import("../../utils/lazyReact").LazyComponentWrapper<t.Checkbox>;
|
|
23
21
|
export declare const Tooltip: import("../../utils/lazyReact").LazyComponentWrapper<t.Tooltip>;
|
|
24
22
|
/** @deprecated import from @plexcord/components */
|
|
@@ -38,8 +36,8 @@ export declare const ColorPicker: import("../../utils/lazyReact").LazyComponentW
|
|
|
38
36
|
export declare const UserSummaryItem: import("../../utils/lazyReact").LazyComponentWrapper<import("react").ComponentType<any> & Record<string, any>>;
|
|
39
37
|
export declare let createScroller: (scrollbarClassName: string, fadeClassName: string, customThemeClassName: string) => t.ScrollerThin;
|
|
40
38
|
export declare let createListScroller: (scrollBarClassName: string, fadeClassName: string, someOtherClassIdkMan: string, resizeObserverClass: typeof ResizeObserver) => t.ListScrollerThin;
|
|
41
|
-
export declare
|
|
42
|
-
export declare
|
|
39
|
+
export declare const scrollerClasses: Record<"auto" | "none" | "thin" | "customTheme" | "fade", string>;
|
|
40
|
+
export declare const listScrollerClasses: Record<"auto" | "thin" | "fade", string>;
|
|
43
41
|
export declare const ScrollerNone: import("../../utils/lazyReact").LazyComponentWrapper<import("react").ComponentType<import("react").PropsWithChildren<t.ScrollerBaseProps & {
|
|
44
42
|
orientation?: "horizontal" | "vertical" | "auto";
|
|
45
43
|
fade?: boolean;
|
|
@@ -52,31 +50,6 @@ export declare const ScrollerAuto: import("../../utils/lazyReact").LazyComponent
|
|
|
52
50
|
orientation?: "horizontal" | "vertical" | "auto";
|
|
53
51
|
fade?: boolean;
|
|
54
52
|
}>>>;
|
|
55
|
-
export declare const ListScrollerNone: import("../../utils/lazyReact").LazyComponentWrapper<import("react").ComponentType<t.ScrollerBaseProps & {
|
|
56
|
-
sections: number[];
|
|
57
|
-
renderSection?: (item: t.ListSection) => React.ReactNode;
|
|
58
|
-
renderRow: (item: t.ListRow) => React.ReactNode;
|
|
59
|
-
renderFooter?: (item: any) => React.ReactNode;
|
|
60
|
-
renderSidebar?: (listVisible: boolean, sidebarVisible: boolean) => React.ReactNode;
|
|
61
|
-
wrapSection?: (section: number, children: React.ReactNode) => React.ReactNode;
|
|
62
|
-
sectionHeight: number;
|
|
63
|
-
rowHeight: number;
|
|
64
|
-
footerHeight?: number;
|
|
65
|
-
sidebarHeight?: number;
|
|
66
|
-
chunkSize?: number;
|
|
67
|
-
paddingTop?: number;
|
|
68
|
-
paddingBottom?: number;
|
|
69
|
-
fade?: boolean;
|
|
70
|
-
onResize?: Function;
|
|
71
|
-
getAnchorId?: any;
|
|
72
|
-
innerTag?: string;
|
|
73
|
-
innerId?: string;
|
|
74
|
-
innerClassName?: string;
|
|
75
|
-
innerRole?: string;
|
|
76
|
-
innerAriaLabel?: string;
|
|
77
|
-
innerAriaMultiselectable?: boolean;
|
|
78
|
-
innerAriaOrientation?: "vertical" | "horizontal";
|
|
79
|
-
}>>;
|
|
80
53
|
export declare const ListScrollerThin: import("../../utils/lazyReact").LazyComponentWrapper<import("react").ComponentType<t.ScrollerBaseProps & {
|
|
81
54
|
sections: number[];
|
|
82
55
|
renderSection?: (item: t.ListSection) => React.ReactNode;
|
package/webpack/webpack.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FluxStore } from "@plexcord/discord-types";
|
|
2
|
-
import { ModuleExports, WebpackRequire } from "@plexcord/discord-types/webpack";
|
|
2
|
+
import { ModuleExports, ModuleFactory, WebpackRequire } from "@plexcord/discord-types/webpack";
|
|
3
3
|
import type { AnyModuleFactory, AnyWebpackRequire } from "./types";
|
|
4
4
|
export declare let _resolveReady: () => void;
|
|
5
5
|
/**
|
|
@@ -15,11 +15,13 @@ export type PropsFilter = Array<string>;
|
|
|
15
15
|
export type CodeFilter = Array<string | RegExp>;
|
|
16
16
|
export type StoreNameFilter = string;
|
|
17
17
|
export declare const stringMatches: (s: string, filter: CodeFilter) => boolean;
|
|
18
|
+
export declare function makeClassNameRegex(className: string): RegExp;
|
|
18
19
|
export declare const filters: {
|
|
19
20
|
byProps: (...props: PropsFilter) => FilterFn;
|
|
20
21
|
byCode: (...code: CodeFilter) => FilterFn;
|
|
21
22
|
byStoreName: (name: StoreNameFilter) => FilterFn;
|
|
22
23
|
componentByCode: (...code: CodeFilter) => FilterFn;
|
|
24
|
+
byClassNames: (...classes: string[]) => FilterFn;
|
|
23
25
|
};
|
|
24
26
|
export type CallbackFn = (module: ModuleExports, id: PropertyKey) => void;
|
|
25
27
|
export type FactoryListernFn = (factory: AnyModuleFactory, moduleId: PropertyKey) => void;
|
|
@@ -32,11 +34,14 @@ export declare function handleModuleNotFound(method: string, ...filter: unknown[
|
|
|
32
34
|
/**
|
|
33
35
|
* Find the first module that matches the filter
|
|
34
36
|
*/
|
|
35
|
-
export declare const find: (filter: FilterFn, { isIndirect, isWaitFor }?: {
|
|
37
|
+
export declare const find: (filter: FilterFn, { isIndirect, isWaitFor, topLevelOnly }?: {
|
|
36
38
|
isIndirect?: boolean;
|
|
37
39
|
isWaitFor?: boolean;
|
|
40
|
+
topLevelOnly?: boolean;
|
|
38
41
|
}) => any;
|
|
39
|
-
export declare function findAll(filter: FilterFn
|
|
42
|
+
export declare function findAll(filter: FilterFn, { topLevelOnly }?: {
|
|
43
|
+
topLevelOnly?: boolean;
|
|
44
|
+
}): any[];
|
|
40
45
|
/**
|
|
41
46
|
* Same as {@link find} but in bulk
|
|
42
47
|
* @param filterFns Array of filters. Please note that this array will be modified in place, so if you still
|
|
@@ -53,8 +58,8 @@ export declare const findModuleId: (...code: CodeFilter) => string | null;
|
|
|
53
58
|
* Find the first module factory that includes all the given code
|
|
54
59
|
* @returns The module factory or null
|
|
55
60
|
*/
|
|
56
|
-
export declare function findModuleFactory(...code: CodeFilter):
|
|
57
|
-
export type TypeWebpackSearchHistory = "find" | "findByProps" | "findByCode" | "findStore" | "findComponent" | "findComponentByCode" | "findExportedComponent" | "waitFor" | "waitForComponent" | "waitForStore" | "proxyLazyWebpack" | "LazyComponentWebpack" | "extractAndLoadChunks" | "mapMangledModule";
|
|
61
|
+
export declare function findModuleFactory(...code: CodeFilter): ModuleFactory | null;
|
|
62
|
+
export type TypeWebpackSearchHistory = "find" | "findByProps" | "findByCode" | "findCssClasses" | "findStore" | "findComponent" | "findComponentByCode" | "findExportedComponent" | "waitFor" | "waitForComponent" | "waitForStore" | "proxyLazyWebpack" | "LazyComponentWebpack" | "extractAndLoadChunks" | "mapMangledModule";
|
|
58
63
|
export declare const lazyWebpackSearchHistory: Array<[TypeWebpackSearchHistory, any[]]>;
|
|
59
64
|
/**
|
|
60
65
|
* This is just a wrapper around {@link proxyLazy} to make our reporter test for your webpack finds.
|
|
@@ -122,6 +127,9 @@ export declare function findComponentByCodeLazy<T extends object = any>(...code:
|
|
|
122
127
|
* Finds the first component that is exported by the first prop name, lazily
|
|
123
128
|
*/
|
|
124
129
|
export declare function findExportedComponentLazy<T extends object = any>(...props: PropsFilter): import("../utils/lazyReact").LazyComponentWrapper<import("react").ComponentType<T>>;
|
|
130
|
+
export declare function mapMangledCssClasses<S extends string>(mappedModule: object, classes: S[] | ReadonlyArray<S>): Record<S, string>;
|
|
131
|
+
export declare function findCssClasses<S extends string>(...classes: S[]): Record<S, string>;
|
|
132
|
+
export declare function findCssClassesLazy<S extends string>(...classes: S[]): Record<S, string>;
|
|
125
133
|
/**
|
|
126
134
|
* Finds a mangled module by the provided code "code" (must be unique and can be anywhere in the module)
|
|
127
135
|
* then maps it into an easily usable module via the specified mappers.
|
|
@@ -182,6 +190,6 @@ export declare function search(...code: CodeFilter): Record<number, Function>;
|
|
|
182
190
|
* to view a massive file. extract then returns the extracted module so you can jump to it.
|
|
183
191
|
* As mentioned above, note that this extracted module is not actually used,
|
|
184
192
|
* so putting breakpoints or similar will have no effect.
|
|
185
|
-
* @param
|
|
193
|
+
* @param moduleId The id of the module to extract
|
|
186
194
|
*/
|
|
187
|
-
export declare function extract(
|
|
195
|
+
export declare function extract(moduleId: PropertyKey): ModuleFactory | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as Recieve from "./recieve";
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
export type SearchData = {
|
|
2
|
-
extractType: "id";
|
|
3
|
-
idOrSearch: number;
|
|
4
|
-
} | ({
|
|
5
|
-
extractType: "search";
|
|
6
|
-
/**
|
|
7
|
-
* stringified regex
|
|
8
|
-
*/
|
|
9
|
-
idOrSearch: string;
|
|
10
|
-
findType: "regex";
|
|
11
|
-
} | {
|
|
12
|
-
extractType: "search";
|
|
13
|
-
idOrSearch: string;
|
|
14
|
-
findType: "string";
|
|
15
|
-
});
|
|
16
|
-
export type FindOrSearchData = (SearchData & {
|
|
17
|
-
usePatched: boolean | null;
|
|
18
|
-
}) | ({
|
|
19
|
-
extractType: "find";
|
|
20
|
-
} & _PrefixKeys<_CapitalizeKeys<FindData>, "find">);
|
|
21
|
-
export type AnyFindType = `find${"Component" | "ByProps" | "Store" | "ByCode" | "ModuleId" | "ComponentByCode" | ""}${"Lazy" | ""}`;
|
|
22
|
-
export type StringNode = {
|
|
23
|
-
type: "string";
|
|
24
|
-
value: string;
|
|
25
|
-
};
|
|
26
|
-
export type RegexNode = {
|
|
27
|
-
type: "regex";
|
|
28
|
-
value: {
|
|
29
|
-
pattern: string;
|
|
30
|
-
flags: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
export type FunctionNode = {
|
|
34
|
-
type: "function";
|
|
35
|
-
value: string;
|
|
36
|
-
};
|
|
37
|
-
export type FindNode = StringNode | RegexNode | FunctionNode;
|
|
38
|
-
export type FindData = {
|
|
39
|
-
type: AnyFindType;
|
|
40
|
-
args: FindNode[];
|
|
41
|
-
};
|
|
42
|
-
export type IncomingMessage = DisablePlugin | RawId | DiffPatch | Reload | ExtractModule | TestPatch | TestFind | AllModules | I18nLookup | Version;
|
|
43
|
-
export type FullIncomingMessage = IncomingMessage & {
|
|
44
|
-
nonce: number;
|
|
45
|
-
};
|
|
46
|
-
export type DisablePlugin = {
|
|
47
|
-
type: "disable";
|
|
48
|
-
data: {
|
|
49
|
-
enabled: boolean;
|
|
50
|
-
pluginName: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
export type I18nLookup = {
|
|
54
|
-
type: "i18n";
|
|
55
|
-
data: {
|
|
56
|
-
hashedKey: string;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* @deprecated use {@link ExtractModule} instead
|
|
61
|
-
*/
|
|
62
|
-
export type RawId = {
|
|
63
|
-
/**
|
|
64
|
-
* @deprecated use {@link ExtractModule} instead
|
|
65
|
-
*/
|
|
66
|
-
type: "rawId";
|
|
67
|
-
data: {
|
|
68
|
-
id: number;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
export type DiffPatch = {
|
|
72
|
-
type: "diff";
|
|
73
|
-
data: SearchData;
|
|
74
|
-
};
|
|
75
|
-
export type Reload = {
|
|
76
|
-
type: "reload";
|
|
77
|
-
data: null;
|
|
78
|
-
};
|
|
79
|
-
export type ExtractModule = {
|
|
80
|
-
type: "extract";
|
|
81
|
-
data: FindOrSearchData;
|
|
82
|
-
};
|
|
83
|
-
export type Version = {
|
|
84
|
-
type: "version";
|
|
85
|
-
data: {
|
|
86
|
-
server_version: [number, number, number];
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
export type TestPatch = {
|
|
90
|
-
type: "testPatch";
|
|
91
|
-
data: ({
|
|
92
|
-
findType: "string";
|
|
93
|
-
find: string;
|
|
94
|
-
} | {
|
|
95
|
-
findType: "regex";
|
|
96
|
-
/**
|
|
97
|
-
* stringified regex
|
|
98
|
-
*/
|
|
99
|
-
find: string;
|
|
100
|
-
}) & {
|
|
101
|
-
replacement: {
|
|
102
|
-
match: StringNode | RegexNode;
|
|
103
|
-
replace: StringNode | RegexNode;
|
|
104
|
-
}[];
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
export type TestFind = {
|
|
108
|
-
type: "testFind";
|
|
109
|
-
data: FindData;
|
|
110
|
-
};
|
|
111
|
-
export type AllModules = {
|
|
112
|
-
type: "allModules";
|
|
113
|
-
data: null;
|
|
114
|
-
};
|
|
115
|
-
type _PrefixKeys<T extends Record<string, any>, P extends string> = string extends P ? never : {
|
|
116
|
-
[K in keyof T as K extends string ? `${P}${K}` : never]: T[K];
|
|
117
|
-
};
|
|
118
|
-
type _CapitalizeKeys<T extends Record<string, any>> = {
|
|
119
|
-
[K in keyof T as K extends string ? Capitalize<K> : never]: T[K];
|
|
120
|
-
};
|
|
121
|
-
export {};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { ReporterData } from "debug/reporterData";
|
|
2
|
-
export type OutgoingMessage = Base<DiffModule | ExtractModule | ModuleList | RawId | I18nValue | VersionResponse>;
|
|
3
|
-
export type FullOutgoingMessage = OutgoingMessage & Nonce;
|
|
4
|
-
export type Base<T> = ({
|
|
5
|
-
ok: true;
|
|
6
|
-
} & T) | ({
|
|
7
|
-
ok: false;
|
|
8
|
-
data: null;
|
|
9
|
-
error: string;
|
|
10
|
-
} & Omit<T, "data">);
|
|
11
|
-
export type Nonce = {
|
|
12
|
-
nonce: number;
|
|
13
|
-
};
|
|
14
|
-
export type ModuleResult = {
|
|
15
|
-
moduleNumber: number;
|
|
16
|
-
/**
|
|
17
|
-
* a list of plugins that patched this module, if it was patched, otherwise an empty array
|
|
18
|
-
*
|
|
19
|
-
* if the module was patched, but the returned module is the original, they array will still be empty
|
|
20
|
-
*
|
|
21
|
-
* if {@link ExtractModule.data|ExtractModule.data.find} is true, this will be a list of what patched the entire module (not just the part that was found)
|
|
22
|
-
*/
|
|
23
|
-
patchedBy: string[];
|
|
24
|
-
};
|
|
25
|
-
export type I18nValue = {
|
|
26
|
-
type: "i18n";
|
|
27
|
-
data: {
|
|
28
|
-
value: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
export type Report = {
|
|
32
|
-
type: "report";
|
|
33
|
-
data: ReporterData;
|
|
34
|
-
};
|
|
35
|
-
export type DiffModule = {
|
|
36
|
-
type: "diff";
|
|
37
|
-
data: {
|
|
38
|
-
source: string;
|
|
39
|
-
patched: string;
|
|
40
|
-
} & ModuleResult;
|
|
41
|
-
};
|
|
42
|
-
export type ExtractModule = {
|
|
43
|
-
type: "extract";
|
|
44
|
-
data: {
|
|
45
|
-
module: string;
|
|
46
|
-
/**
|
|
47
|
-
* if the module is incomplete. ie: from a find
|
|
48
|
-
*/
|
|
49
|
-
find?: boolean;
|
|
50
|
-
} & ModuleResult;
|
|
51
|
-
};
|
|
52
|
-
export type ModuleList = {
|
|
53
|
-
type: "moduleList";
|
|
54
|
-
data: {
|
|
55
|
-
modules: string[];
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* @deprecated use extractModule with usePatched instead
|
|
60
|
-
*/
|
|
61
|
-
export type RawId = {
|
|
62
|
-
/**
|
|
63
|
-
* @deprecated use extractModule with usePatched instead
|
|
64
|
-
*/
|
|
65
|
-
type: "rawId";
|
|
66
|
-
data: string;
|
|
67
|
-
};
|
|
68
|
-
export type VersionResponse = {
|
|
69
|
-
type: "version";
|
|
70
|
-
data: {
|
|
71
|
-
clientVersion: readonly [number, number, number];
|
|
72
|
-
};
|
|
73
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { CodeFilter } from "../../webpack/webpack";
|
|
2
|
-
import { FindNode } from "./types/recieve";
|
|
3
|
-
/**
|
|
4
|
-
* extracts the patched module, if there is no patched module, throws an error
|
|
5
|
-
* @param id module id
|
|
6
|
-
*/
|
|
7
|
-
export declare function extractOrThrow(id: PropertyKey): string;
|
|
8
|
-
/**
|
|
9
|
-
* attempts to extract the module, throws if not found
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* if patched is true and no patched module is found fallsback to the non-patched module
|
|
13
|
-
* @param id module id
|
|
14
|
-
* @param patched return the patched module
|
|
15
|
-
*/
|
|
16
|
-
export declare function extractModule(id: PropertyKey, patched?: boolean): string;
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @param usePatched if false, always returns `[]`, otherwise uses the same setting as {@link extractModule}
|
|
20
|
-
*/
|
|
21
|
-
export declare function getModulePatchedBy(id: PropertyKey, usePatched?: boolean): string[];
|
|
22
|
-
export declare function parseNode(node: FindNode): any;
|
|
23
|
-
export declare function findModuleId(find: CodeFilter): string;
|
|
24
|
-
export declare function mkRegexFind(idOrSearch: string): RegExp[];
|
|
25
|
-
export declare function toggleEnabled(name: string, beforeReload: (error?: string) => void): void;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { OptionType } from "../../utils/types";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
name: string;
|
|
4
|
-
description: () => string;
|
|
5
|
-
authors: {
|
|
6
|
-
name: string;
|
|
7
|
-
id: bigint;
|
|
8
|
-
}[];
|
|
9
|
-
settings: import("../../utils/types").DefinedSettings<{
|
|
10
|
-
preservePitch: {
|
|
11
|
-
label: () => string;
|
|
12
|
-
description: () => string;
|
|
13
|
-
type: OptionType.BOOLEAN;
|
|
14
|
-
default: false;
|
|
15
|
-
restartNeeded: true;
|
|
16
|
-
};
|
|
17
|
-
}, import("../../utils/types").SettingsChecks<{
|
|
18
|
-
preservePitch: {
|
|
19
|
-
label: () => string;
|
|
20
|
-
description: () => string;
|
|
21
|
-
type: OptionType.BOOLEAN;
|
|
22
|
-
default: false;
|
|
23
|
-
restartNeeded: true;
|
|
24
|
-
};
|
|
25
|
-
}>, {}>;
|
|
26
|
-
patches: {
|
|
27
|
-
find: RegExp;
|
|
28
|
-
replacement: {
|
|
29
|
-
match: RegExp;
|
|
30
|
-
replace: string;
|
|
31
|
-
};
|
|
32
|
-
}[];
|
|
33
|
-
SpeedButton: import("react").FunctionComponent<{
|
|
34
|
-
mediaRef: any;
|
|
35
|
-
}>;
|
|
36
|
-
} & Record<PropertyKey, any> & import("../../utils/types").Plugin;
|
|
37
|
-
export default _default;
|