@plexcord/types 1.19.3 → 1.19.4
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/AudioPlayer.d.ts +1 -1
- package/api/Badges.d.ts +1 -1
- package/components/Button.d.ts +1 -1
- package/components/CodeBlock.d.ts +6 -0
- package/locales/en.d.ts +24 -2
- package/package.json +1 -1
- package/plugins/_api/badges/index.d.ts +10 -4
- package/plugins/disCleaner/index.d.ts +37 -1
- package/plugins/fixImagesQuality/index.d.ts +2 -1
- package/plugins/platformIndicators/index.d.ts +69 -13
- package/plugins/roleColorEverywhere/index.d.ts +1 -1
- package/plugins/usrbg/index.d.ts +1 -1
- package/plugins/webScreenShareFixes.web/index.d.ts +15 -0
- package/webpack/common/stores.d.ts +3 -1
- package/plugins/amITyping/index.d.ts +0 -16
package/api/AudioPlayer.d.ts
CHANGED
|
@@ -139,7 +139,7 @@ export declare function identifyAudioType(audio: string): AudioType;
|
|
|
139
139
|
/**
|
|
140
140
|
* Adds a function to process an audio before it is played.
|
|
141
141
|
* @param key A unique identifier for this audio processor. Plugin name is recommended.
|
|
142
|
-
* @param processor A function that takes
|
|
142
|
+
* @param processor A function that takes a data object with audio, volume (0-100), and type (AudioType) attributes, and modifies the audio and volume in place.
|
|
143
143
|
*/
|
|
144
144
|
export declare function addAudioProcessor(key: string, processor: AudioProcessor): void;
|
|
145
145
|
/**
|
package/api/Badges.d.ts
CHANGED
package/components/Button.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import "./Button.css";
|
|
|
2
2
|
import type { Button as DiscordButton } from "@plexcord/discord-types";
|
|
3
3
|
import type { ComponentPropsWithRef } from "react";
|
|
4
4
|
export type ButtonVariant = "primary" | "secondary" | "dangerPrimary" | "dangerSecondary" | "overlayPrimary" | "positive" | "link" | "none";
|
|
5
|
-
export type ButtonSize = "min" | "xs" | "small" | "medium";
|
|
5
|
+
export type ButtonSize = "min" | "xs" | "small" | "medium" | "iconOnly";
|
|
6
6
|
export type ButtonProps = ComponentPropsWithRef<"button"> & {
|
|
7
7
|
variant?: ButtonVariant;
|
|
8
8
|
size?: ButtonSize;
|
|
@@ -5,3 +5,9 @@ export declare function CodeBlock(props: {
|
|
|
5
5
|
content?: string;
|
|
6
6
|
lang: string;
|
|
7
7
|
}): import("react").JSX.Element;
|
|
8
|
+
/**
|
|
9
|
+
* Renders inline code like `this`
|
|
10
|
+
*/
|
|
11
|
+
export declare function InlineCode({ children }: {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}): import("react").JSX.Element;
|
package/locales/en.d.ts
CHANGED
|
@@ -326,6 +326,7 @@ declare const translations: {
|
|
|
326
326
|
readonly contributor: {
|
|
327
327
|
readonly plexcord: "Plexcord Contributor";
|
|
328
328
|
readonly vencord: "Vencord Contributor";
|
|
329
|
+
readonly userPlugin: "User Plugin Contributor";
|
|
329
330
|
};
|
|
330
331
|
readonly context: {
|
|
331
332
|
readonly title: "Badges Options";
|
|
@@ -3607,12 +3608,16 @@ declare const translations: {
|
|
|
3607
3608
|
};
|
|
3608
3609
|
readonly disCleaner: {
|
|
3609
3610
|
readonly name: "DisCleaner";
|
|
3610
|
-
readonly description: "
|
|
3611
|
+
readonly description: "Hides various features related to nitro and the store";
|
|
3611
3612
|
readonly option: {
|
|
3612
3613
|
readonly dms: {
|
|
3613
3614
|
readonly label: "DMs";
|
|
3614
3615
|
readonly description: "Remove shops above DMs list";
|
|
3615
3616
|
};
|
|
3617
|
+
readonly quests: {
|
|
3618
|
+
readonly label: "Quests";
|
|
3619
|
+
readonly description: "Remove quests above DMs list";
|
|
3620
|
+
};
|
|
3616
3621
|
readonly serverBoost: {
|
|
3617
3622
|
readonly label: "Server Boost";
|
|
3618
3623
|
readonly description: "Remove server boost info above channel list";
|
|
@@ -9442,6 +9447,12 @@ declare const translations: {
|
|
|
9442
9447
|
readonly webScreenShareFixes: {
|
|
9443
9448
|
readonly name: "WebScreenShareFixes";
|
|
9444
9449
|
readonly description: "Removes 2500kbps bitrate cap on chromium and Plextron clients.";
|
|
9450
|
+
readonly option: {
|
|
9451
|
+
readonly experimentalAV1Support: {
|
|
9452
|
+
readonly label: "Experimental AV1 Support";
|
|
9453
|
+
readonly description: "Enable AV1 codec support. May cause issues like infinitely loading streams";
|
|
9454
|
+
};
|
|
9455
|
+
};
|
|
9445
9456
|
};
|
|
9446
9457
|
readonly whoReacted: {
|
|
9447
9458
|
readonly name: "WhoReacted";
|
|
@@ -9901,6 +9912,7 @@ export declare const plugins: DeepKeyProxy<{
|
|
|
9901
9912
|
readonly contributor: {
|
|
9902
9913
|
readonly plexcord: "Plexcord Contributor";
|
|
9903
9914
|
readonly vencord: "Vencord Contributor";
|
|
9915
|
+
readonly userPlugin: "User Plugin Contributor";
|
|
9904
9916
|
};
|
|
9905
9917
|
readonly context: {
|
|
9906
9918
|
readonly title: "Badges Options";
|
|
@@ -13182,12 +13194,16 @@ export declare const plugin: DeepKeyProxy<{
|
|
|
13182
13194
|
};
|
|
13183
13195
|
readonly disCleaner: {
|
|
13184
13196
|
readonly name: "DisCleaner";
|
|
13185
|
-
readonly description: "
|
|
13197
|
+
readonly description: "Hides various features related to nitro and the store";
|
|
13186
13198
|
readonly option: {
|
|
13187
13199
|
readonly dms: {
|
|
13188
13200
|
readonly label: "DMs";
|
|
13189
13201
|
readonly description: "Remove shops above DMs list";
|
|
13190
13202
|
};
|
|
13203
|
+
readonly quests: {
|
|
13204
|
+
readonly label: "Quests";
|
|
13205
|
+
readonly description: "Remove quests above DMs list";
|
|
13206
|
+
};
|
|
13191
13207
|
readonly serverBoost: {
|
|
13192
13208
|
readonly label: "Server Boost";
|
|
13193
13209
|
readonly description: "Remove server boost info above channel list";
|
|
@@ -19017,6 +19033,12 @@ export declare const plugin: DeepKeyProxy<{
|
|
|
19017
19033
|
readonly webScreenShareFixes: {
|
|
19018
19034
|
readonly name: "WebScreenShareFixes";
|
|
19019
19035
|
readonly description: "Removes 2500kbps bitrate cap on chromium and Plextron clients.";
|
|
19036
|
+
readonly option: {
|
|
19037
|
+
readonly experimentalAV1Support: {
|
|
19038
|
+
readonly label: "Experimental AV1 Support";
|
|
19039
|
+
readonly description: "Enable AV1 codec support. May cause issues like infinitely loading streams";
|
|
19040
|
+
};
|
|
19041
|
+
};
|
|
19020
19042
|
};
|
|
19021
19043
|
readonly whoReacted: {
|
|
19022
19044
|
readonly name: "WhoReacted";
|
package/package.json
CHANGED
|
@@ -12,21 +12,27 @@ declare const _default: {
|
|
|
12
12
|
id: bigint;
|
|
13
13
|
}[];
|
|
14
14
|
required: true;
|
|
15
|
-
patches: {
|
|
15
|
+
patches: ({
|
|
16
16
|
find: string;
|
|
17
17
|
replacement: {
|
|
18
18
|
match: RegExp;
|
|
19
19
|
replace: string;
|
|
20
20
|
}[];
|
|
21
|
-
}
|
|
22
|
-
|
|
21
|
+
} | {
|
|
22
|
+
find: string;
|
|
23
|
+
replacement: {
|
|
24
|
+
match: RegExp;
|
|
25
|
+
replace: string;
|
|
26
|
+
};
|
|
27
|
+
})[];
|
|
28
|
+
readonly DonorBadges: Record<string, Record<"badge" | "tooltip", string>[]>;
|
|
23
29
|
toolboxActions: () => {
|
|
24
30
|
[x: string]: () => Promise<void>;
|
|
25
31
|
};
|
|
26
32
|
userProfileBadges: ProfileBadge[];
|
|
27
33
|
start(): Promise<void>;
|
|
28
34
|
stop(): Promise<void>;
|
|
29
|
-
|
|
35
|
+
getBadges(profile: {
|
|
30
36
|
userId: string;
|
|
31
37
|
guildId: string;
|
|
32
38
|
}): ProfileBadge[];
|
|
@@ -7,6 +7,13 @@ export declare const settings: import("../../utils/types").DefinedSettings<{
|
|
|
7
7
|
default: true;
|
|
8
8
|
restartNeeded: true;
|
|
9
9
|
};
|
|
10
|
+
quests: {
|
|
11
|
+
label: () => string;
|
|
12
|
+
description: () => string;
|
|
13
|
+
type: OptionType.BOOLEAN;
|
|
14
|
+
default: false;
|
|
15
|
+
restartNeeded: true;
|
|
16
|
+
};
|
|
10
17
|
serverBoost: {
|
|
11
18
|
label: () => string;
|
|
12
19
|
description: () => string;
|
|
@@ -43,6 +50,13 @@ export declare const settings: import("../../utils/types").DefinedSettings<{
|
|
|
43
50
|
default: true;
|
|
44
51
|
restartNeeded: true;
|
|
45
52
|
};
|
|
53
|
+
quests: {
|
|
54
|
+
label: () => string;
|
|
55
|
+
description: () => string;
|
|
56
|
+
type: OptionType.BOOLEAN;
|
|
57
|
+
default: false;
|
|
58
|
+
restartNeeded: true;
|
|
59
|
+
};
|
|
46
60
|
serverBoost: {
|
|
47
61
|
label: () => string;
|
|
48
62
|
description: () => string;
|
|
@@ -87,6 +101,13 @@ declare const _default: {
|
|
|
87
101
|
default: true;
|
|
88
102
|
restartNeeded: true;
|
|
89
103
|
};
|
|
104
|
+
quests: {
|
|
105
|
+
label: () => string;
|
|
106
|
+
description: () => string;
|
|
107
|
+
type: OptionType.BOOLEAN;
|
|
108
|
+
default: false;
|
|
109
|
+
restartNeeded: true;
|
|
110
|
+
};
|
|
90
111
|
serverBoost: {
|
|
91
112
|
label: () => string;
|
|
92
113
|
description: () => string;
|
|
@@ -123,6 +144,13 @@ declare const _default: {
|
|
|
123
144
|
default: true;
|
|
124
145
|
restartNeeded: true;
|
|
125
146
|
};
|
|
147
|
+
quests: {
|
|
148
|
+
label: () => string;
|
|
149
|
+
description: () => string;
|
|
150
|
+
type: OptionType.BOOLEAN;
|
|
151
|
+
default: false;
|
|
152
|
+
restartNeeded: true;
|
|
153
|
+
};
|
|
126
154
|
serverBoost: {
|
|
127
155
|
label: () => string;
|
|
128
156
|
description: () => string;
|
|
@@ -157,8 +185,9 @@ declare const _default: {
|
|
|
157
185
|
replacement: {
|
|
158
186
|
match: RegExp;
|
|
159
187
|
replace: string;
|
|
188
|
+
predicate: () => boolean;
|
|
160
189
|
}[];
|
|
161
|
-
predicate
|
|
190
|
+
predicate?: undefined;
|
|
162
191
|
} | {
|
|
163
192
|
find: string;
|
|
164
193
|
replacement: {
|
|
@@ -166,6 +195,13 @@ declare const _default: {
|
|
|
166
195
|
replace: string;
|
|
167
196
|
};
|
|
168
197
|
predicate: () => boolean;
|
|
198
|
+
} | {
|
|
199
|
+
find: string;
|
|
200
|
+
replacement: {
|
|
201
|
+
match: RegExp;
|
|
202
|
+
replace: string;
|
|
203
|
+
}[];
|
|
204
|
+
predicate: () => boolean;
|
|
169
205
|
})[];
|
|
170
206
|
} & Record<PropertyKey, any> & import("../../utils/types").Plugin;
|
|
171
207
|
export default _default;
|
|
@@ -31,10 +31,11 @@ declare const _default: {
|
|
|
31
31
|
settingsAboutComponent(): import("react").JSX.Element;
|
|
32
32
|
getSrc(props: {
|
|
33
33
|
src: string;
|
|
34
|
-
mediaLayoutType: string;
|
|
35
34
|
width: number;
|
|
36
35
|
height: number;
|
|
37
36
|
contentType: string;
|
|
37
|
+
mosaicStyleAlt?: boolean;
|
|
38
|
+
trigger?: string;
|
|
38
39
|
}, freeze?: boolean): string | undefined;
|
|
39
40
|
} & Record<PropertyKey, any> & import("../../utils/types").Plugin;
|
|
40
41
|
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { OptionType } from "../../utils/types";
|
|
3
|
+
import type { JSX } from "react";
|
|
3
4
|
export interface Session {
|
|
4
5
|
sessionId: string;
|
|
5
6
|
status: string;
|
|
@@ -18,11 +19,75 @@ declare const _default: {
|
|
|
18
19
|
id: bigint;
|
|
19
20
|
}[];
|
|
20
21
|
dependencies: string[];
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
settings: import("../../utils/types").DefinedSettings<{
|
|
23
|
+
list: {
|
|
24
|
+
label: () => string;
|
|
25
|
+
description: () => string;
|
|
26
|
+
type: OptionType.BOOLEAN;
|
|
27
|
+
default: true;
|
|
28
|
+
};
|
|
29
|
+
badges: {
|
|
30
|
+
label: () => string;
|
|
31
|
+
description: () => string;
|
|
32
|
+
type: OptionType.BOOLEAN;
|
|
33
|
+
default: true;
|
|
34
|
+
};
|
|
35
|
+
messages: {
|
|
36
|
+
label: () => string;
|
|
37
|
+
description: () => string;
|
|
38
|
+
type: OptionType.BOOLEAN;
|
|
39
|
+
default: true;
|
|
40
|
+
};
|
|
41
|
+
colorMobileIndicator: {
|
|
42
|
+
label: () => string;
|
|
43
|
+
description: () => string;
|
|
44
|
+
type: OptionType.BOOLEAN;
|
|
45
|
+
default: true;
|
|
46
|
+
};
|
|
47
|
+
showBots: {
|
|
48
|
+
label: () => string;
|
|
49
|
+
description: () => string;
|
|
50
|
+
type: OptionType.BOOLEAN;
|
|
51
|
+
default: true;
|
|
52
|
+
};
|
|
53
|
+
}, import("../../utils/types").SettingsChecks<{
|
|
54
|
+
list: {
|
|
55
|
+
label: () => string;
|
|
56
|
+
description: () => string;
|
|
57
|
+
type: OptionType.BOOLEAN;
|
|
58
|
+
default: true;
|
|
59
|
+
};
|
|
60
|
+
badges: {
|
|
61
|
+
label: () => string;
|
|
62
|
+
description: () => string;
|
|
63
|
+
type: OptionType.BOOLEAN;
|
|
64
|
+
default: true;
|
|
65
|
+
};
|
|
66
|
+
messages: {
|
|
67
|
+
label: () => string;
|
|
68
|
+
description: () => string;
|
|
69
|
+
type: OptionType.BOOLEAN;
|
|
70
|
+
default: true;
|
|
71
|
+
};
|
|
72
|
+
colorMobileIndicator: {
|
|
73
|
+
label: () => string;
|
|
74
|
+
description: () => string;
|
|
75
|
+
type: OptionType.BOOLEAN;
|
|
76
|
+
default: true;
|
|
77
|
+
};
|
|
78
|
+
showBots: {
|
|
79
|
+
label: () => string;
|
|
80
|
+
description: () => string;
|
|
81
|
+
type: OptionType.BOOLEAN;
|
|
82
|
+
default: true;
|
|
83
|
+
};
|
|
84
|
+
}>, {}>;
|
|
85
|
+
renderNicknameIcon(props: import("../../api/NicknameIcons").NicknameIconProps): JSX.Element | null;
|
|
86
|
+
renderMemberListDecorator(props: import("../../api/MemberListDecorators").DecoratorProps): JSX.Element | null;
|
|
87
|
+
renderMessageDecoration(props: import("../../api/MessageDecorations").MessageDecorationProps): JSX.Element | null;
|
|
23
88
|
patches: ({
|
|
24
89
|
find: string;
|
|
25
|
-
predicate: () =>
|
|
90
|
+
predicate: () => boolean;
|
|
26
91
|
replacement: ({
|
|
27
92
|
match: RegExp;
|
|
28
93
|
replace: string;
|
|
@@ -32,20 +97,11 @@ declare const _default: {
|
|
|
32
97
|
})[];
|
|
33
98
|
} | {
|
|
34
99
|
find: string;
|
|
35
|
-
predicate: () =>
|
|
100
|
+
predicate: () => boolean;
|
|
36
101
|
replacement: {
|
|
37
102
|
match: RegExp;
|
|
38
103
|
replace: string;
|
|
39
104
|
};
|
|
40
105
|
})[];
|
|
41
|
-
options: {
|
|
42
|
-
colorMobileIndicator: {
|
|
43
|
-
label: () => string;
|
|
44
|
-
description: () => string;
|
|
45
|
-
type: OptionType.BOOLEAN;
|
|
46
|
-
default: true;
|
|
47
|
-
restartNeeded: true;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
106
|
} & Record<PropertyKey, any> & import("../../utils/types").Plugin;
|
|
51
107
|
export default _default;
|
package/plugins/usrbg/index.d.ts
CHANGED
|
@@ -67,11 +67,11 @@ declare const _default: {
|
|
|
67
67
|
predicate?: undefined;
|
|
68
68
|
} | {
|
|
69
69
|
find: string;
|
|
70
|
-
predicate: () => boolean;
|
|
71
70
|
replacement: {
|
|
72
71
|
match: RegExp;
|
|
73
72
|
replace: string;
|
|
74
73
|
}[];
|
|
74
|
+
predicate?: undefined;
|
|
75
75
|
} | {
|
|
76
76
|
find: string;
|
|
77
77
|
predicate: () => boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OptionType } from "../../utils/types";
|
|
1
2
|
declare const _default: {
|
|
2
3
|
name: string;
|
|
3
4
|
description: () => string;
|
|
@@ -6,6 +7,19 @@ declare const _default: {
|
|
|
6
7
|
id: bigint;
|
|
7
8
|
}[];
|
|
8
9
|
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
|
+
}>, {}>;
|
|
9
23
|
patches: {
|
|
10
24
|
find: string;
|
|
11
25
|
replacement: ({
|
|
@@ -16,5 +30,6 @@ declare const _default: {
|
|
|
16
30
|
replace: string;
|
|
17
31
|
})[];
|
|
18
32
|
}[];
|
|
33
|
+
getCodecs(Codecs: Record<string, string>): string[];
|
|
19
34
|
} & Record<PropertyKey, any> & import("../../utils/types").Plugin;
|
|
20
35
|
export default _default;
|
|
@@ -50,7 +50,9 @@ export declare let LocaleStore: t.LocaleStore;
|
|
|
50
50
|
export declare let RTCConnectionStore: t.RTCConnectionStore;
|
|
51
51
|
export declare let SoundboardStore: t.SoundboardStore;
|
|
52
52
|
export declare let PopoutWindowStore: t.PopoutWindowStore;
|
|
53
|
-
export declare let ApplicationCommandIndexStore:
|
|
53
|
+
export declare let ApplicationCommandIndexStore: t.ApplicationCommandIndexStore;
|
|
54
|
+
export declare let EditMessageStore: t.EditMessageStore;
|
|
55
|
+
export declare let QuestStore: t.QuestStore;
|
|
54
56
|
/**
|
|
55
57
|
* @see jsdoc of {@link t.useStateFromStores}
|
|
56
58
|
*/
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
name: string;
|
|
3
|
-
description: () => string;
|
|
4
|
-
authors: {
|
|
5
|
-
name: string;
|
|
6
|
-
id: bigint;
|
|
7
|
-
}[];
|
|
8
|
-
patches: {
|
|
9
|
-
find: string;
|
|
10
|
-
replacement: {
|
|
11
|
-
match: RegExp;
|
|
12
|
-
replace: string;
|
|
13
|
-
};
|
|
14
|
-
}[];
|
|
15
|
-
} & Record<PropertyKey, any> & import("../../utils/types").Plugin;
|
|
16
|
-
export default _default;
|