@plexcord/types 1.19.4 → 1.19.6
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/locales/en.d.ts +40 -32
- package/package.json +1 -1
- package/plugins/_api/messagePopover.d.ts +1 -1
- package/plugins/_core/settings.d.ts +2 -1
- package/plugins/alwaysExpandRoles/index.d.ts +12 -9
- package/plugins/betterQuickReact/index.d.ts +1 -1
- package/plugins/channelTabs/index.d.ts +9 -2
- package/plugins/instantScreenshare/index.d.ts +12 -0
- package/plugins/instantScreenshare/utils.d.ts +12 -0
- package/plugins/limitMiddleClickPaste/index.d.ts +17 -8
- package/plugins/permissionsViewer/index.d.ts +3 -5
package/locales/en.d.ts
CHANGED
|
@@ -3292,12 +3292,12 @@ declare const translations: {
|
|
|
3292
3292
|
readonly highfiveWhistle: "Highfive Whistle";
|
|
3293
3293
|
readonly humanMan: "Human Man";
|
|
3294
3294
|
readonly lofiMessage: "LoFi Message";
|
|
3295
|
-
readonly mention1: "Mention 1";
|
|
3296
|
-
readonly mention2: "Mention 2";
|
|
3297
|
-
readonly mention3: "Mention 3";
|
|
3298
|
-
readonly message1: "Message 1";
|
|
3299
|
-
readonly message2: "Message 2";
|
|
3300
|
-
readonly message3: "Message 3";
|
|
3295
|
+
readonly mention1: "Mention 1 (@role)";
|
|
3296
|
+
readonly mention2: "Mention 2 (@everyone)";
|
|
3297
|
+
readonly mention3: "Mention 3 (@here)";
|
|
3298
|
+
readonly message1: "Message 1 (Generic)";
|
|
3299
|
+
readonly message2: "Message 2 (Reply in Server)";
|
|
3300
|
+
readonly message3: "Message 3 (DMs and Group DMs)";
|
|
3301
3301
|
readonly mute: "Mute";
|
|
3302
3302
|
readonly overlayUnlock: "Overlay Unlock";
|
|
3303
3303
|
readonly poggermodeAchievement: "Poggermode Achievement";
|
|
@@ -4903,6 +4903,10 @@ declare const translations: {
|
|
|
4903
4903
|
readonly label: "Keybind Screenshare";
|
|
4904
4904
|
readonly description: "Screenshare by keybind in discord keybind settings";
|
|
4905
4905
|
};
|
|
4906
|
+
readonly focusDiscord: {
|
|
4907
|
+
readonly label: "Focus Discord";
|
|
4908
|
+
readonly description: "Only start screenshare with keybind when Discord is focused";
|
|
4909
|
+
};
|
|
4906
4910
|
readonly toolboxManagement: {
|
|
4907
4911
|
readonly label: "Toolbox Management";
|
|
4908
4912
|
readonly description: "Enable/Disable Instant Screenshare";
|
|
@@ -5108,18 +5112,17 @@ declare const translations: {
|
|
|
5108
5112
|
};
|
|
5109
5113
|
readonly limitMiddleClickPaste: {
|
|
5110
5114
|
readonly name: "LimitMiddleClickPaste";
|
|
5111
|
-
readonly description: "
|
|
5115
|
+
readonly description: "Prevent middle click pasting either always or just when a text area is not focused.";
|
|
5112
5116
|
readonly option: {
|
|
5113
|
-
readonly
|
|
5114
|
-
readonly label: "
|
|
5115
|
-
readonly description: "
|
|
5116
|
-
readonly
|
|
5117
|
-
readonly
|
|
5118
|
-
readonly active: "Whenever a text box is active";
|
|
5117
|
+
readonly scope: {
|
|
5118
|
+
readonly label: "Scope";
|
|
5119
|
+
readonly description: "Situations in which to prevent middle click from pasting.";
|
|
5120
|
+
readonly always: "Always Prevent Middle Click Pasting";
|
|
5121
|
+
readonly focus: "Only Prevent When Text Area Not Focused";
|
|
5119
5122
|
};
|
|
5120
|
-
readonly
|
|
5121
|
-
readonly label: "
|
|
5122
|
-
readonly description: "Milliseconds until
|
|
5123
|
+
readonly threshold: {
|
|
5124
|
+
readonly label: "Threshold";
|
|
5125
|
+
readonly description: "Milliseconds until pasting is enabled again after a middle click.";
|
|
5123
5126
|
};
|
|
5124
5127
|
};
|
|
5125
5128
|
};
|
|
@@ -9385,6 +9388,7 @@ declare const translations: {
|
|
|
9385
9388
|
readonly resume: "Resume recording";
|
|
9386
9389
|
readonly pause: "Pause recording";
|
|
9387
9390
|
readonly recording: "RECORDING";
|
|
9391
|
+
readonly send: "Send";
|
|
9388
9392
|
};
|
|
9389
9393
|
};
|
|
9390
9394
|
readonly volumeBooster: {
|
|
@@ -12878,12 +12882,12 @@ export declare const plugin: DeepKeyProxy<{
|
|
|
12878
12882
|
readonly highfiveWhistle: "Highfive Whistle";
|
|
12879
12883
|
readonly humanMan: "Human Man";
|
|
12880
12884
|
readonly lofiMessage: "LoFi Message";
|
|
12881
|
-
readonly mention1: "Mention 1";
|
|
12882
|
-
readonly mention2: "Mention 2";
|
|
12883
|
-
readonly mention3: "Mention 3";
|
|
12884
|
-
readonly message1: "Message 1";
|
|
12885
|
-
readonly message2: "Message 2";
|
|
12886
|
-
readonly message3: "Message 3";
|
|
12885
|
+
readonly mention1: "Mention 1 (@role)";
|
|
12886
|
+
readonly mention2: "Mention 2 (@everyone)";
|
|
12887
|
+
readonly mention3: "Mention 3 (@here)";
|
|
12888
|
+
readonly message1: "Message 1 (Generic)";
|
|
12889
|
+
readonly message2: "Message 2 (Reply in Server)";
|
|
12890
|
+
readonly message3: "Message 3 (DMs and Group DMs)";
|
|
12887
12891
|
readonly mute: "Mute";
|
|
12888
12892
|
readonly overlayUnlock: "Overlay Unlock";
|
|
12889
12893
|
readonly poggermodeAchievement: "Poggermode Achievement";
|
|
@@ -14489,6 +14493,10 @@ export declare const plugin: DeepKeyProxy<{
|
|
|
14489
14493
|
readonly label: "Keybind Screenshare";
|
|
14490
14494
|
readonly description: "Screenshare by keybind in discord keybind settings";
|
|
14491
14495
|
};
|
|
14496
|
+
readonly focusDiscord: {
|
|
14497
|
+
readonly label: "Focus Discord";
|
|
14498
|
+
readonly description: "Only start screenshare with keybind when Discord is focused";
|
|
14499
|
+
};
|
|
14492
14500
|
readonly toolboxManagement: {
|
|
14493
14501
|
readonly label: "Toolbox Management";
|
|
14494
14502
|
readonly description: "Enable/Disable Instant Screenshare";
|
|
@@ -14694,18 +14702,17 @@ export declare const plugin: DeepKeyProxy<{
|
|
|
14694
14702
|
};
|
|
14695
14703
|
readonly limitMiddleClickPaste: {
|
|
14696
14704
|
readonly name: "LimitMiddleClickPaste";
|
|
14697
|
-
readonly description: "
|
|
14705
|
+
readonly description: "Prevent middle click pasting either always or just when a text area is not focused.";
|
|
14698
14706
|
readonly option: {
|
|
14699
|
-
readonly
|
|
14700
|
-
readonly label: "
|
|
14701
|
-
readonly description: "
|
|
14702
|
-
readonly
|
|
14703
|
-
readonly
|
|
14704
|
-
readonly active: "Whenever a text box is active";
|
|
14707
|
+
readonly scope: {
|
|
14708
|
+
readonly label: "Scope";
|
|
14709
|
+
readonly description: "Situations in which to prevent middle click from pasting.";
|
|
14710
|
+
readonly always: "Always Prevent Middle Click Pasting";
|
|
14711
|
+
readonly focus: "Only Prevent When Text Area Not Focused";
|
|
14705
14712
|
};
|
|
14706
|
-
readonly
|
|
14707
|
-
readonly label: "
|
|
14708
|
-
readonly description: "Milliseconds until
|
|
14713
|
+
readonly threshold: {
|
|
14714
|
+
readonly label: "Threshold";
|
|
14715
|
+
readonly description: "Milliseconds until pasting is enabled again after a middle click.";
|
|
14709
14716
|
};
|
|
14710
14717
|
};
|
|
14711
14718
|
};
|
|
@@ -18971,6 +18978,7 @@ export declare const plugin: DeepKeyProxy<{
|
|
|
18971
18978
|
readonly resume: "Resume recording";
|
|
18972
18979
|
readonly pause: "Pause recording";
|
|
18973
18980
|
readonly recording: "RECORDING";
|
|
18981
|
+
readonly send: "Send";
|
|
18974
18982
|
};
|
|
18975
18983
|
};
|
|
18976
18984
|
readonly volumeBooster: {
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ declare const _default: {
|
|
|
9
9
|
find: string;
|
|
10
10
|
replacement: {
|
|
11
11
|
match: RegExp;
|
|
12
|
-
replace: (_: string, ReactButton: string,
|
|
12
|
+
replace: (_: string, ReactButton: string, ButtonComponent: string, showReactButton: string, message: string) => string;
|
|
13
13
|
};
|
|
14
14
|
}[];
|
|
15
15
|
} & Record<PropertyKey, any> & import("../../utils/types").Plugin;
|
|
@@ -44,6 +44,7 @@ interface SettingsLayoutBuilder {
|
|
|
44
44
|
key?: string;
|
|
45
45
|
buildLayout(): SettingsLayoutNode[];
|
|
46
46
|
}
|
|
47
|
+
export declare const settingsSectionMap: [string, string][];
|
|
47
48
|
declare const _default: {
|
|
48
49
|
name: string;
|
|
49
50
|
description: () => string;
|
|
@@ -128,7 +129,7 @@ declare const _default: {
|
|
|
128
129
|
};
|
|
129
130
|
})[];
|
|
130
131
|
buildEntry(options: EntryOptions): SettingsLayoutNode;
|
|
131
|
-
getSettingsSectionMappings(): string
|
|
132
|
+
getSettingsSectionMappings(): [string, string][];
|
|
132
133
|
buildLayout(originalLayoutBuilder: SettingsLayoutBuilder): SettingsLayoutNode[];
|
|
133
134
|
customSections: ((SectionTypes: Record<string, string>) => {
|
|
134
135
|
section: string;
|
|
@@ -6,13 +6,6 @@ declare const _default: {
|
|
|
6
6
|
name: string;
|
|
7
7
|
id: bigint;
|
|
8
8
|
}[];
|
|
9
|
-
patches: {
|
|
10
|
-
find: string;
|
|
11
|
-
replacement: {
|
|
12
|
-
match: RegExp;
|
|
13
|
-
replace: (_: string, rest: string, setExpandedRoles: string) => string;
|
|
14
|
-
}[];
|
|
15
|
-
}[];
|
|
16
9
|
settings: import("../../utils/types").DefinedSettings<{
|
|
17
10
|
hideArrow: {
|
|
18
11
|
label: () => string;
|
|
@@ -30,7 +23,17 @@ declare const _default: {
|
|
|
30
23
|
restartNeeded: true;
|
|
31
24
|
};
|
|
32
25
|
}>, {}>;
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
patches: {
|
|
27
|
+
find: string;
|
|
28
|
+
replacement: ({
|
|
29
|
+
match: RegExp;
|
|
30
|
+
replace: string;
|
|
31
|
+
predicate?: undefined;
|
|
32
|
+
} | {
|
|
33
|
+
match: RegExp;
|
|
34
|
+
replace: string;
|
|
35
|
+
predicate: () => boolean;
|
|
36
|
+
})[];
|
|
37
|
+
}[];
|
|
35
38
|
} & Record<PropertyKey, any> & import("../../utils/types").Plugin;
|
|
36
39
|
export default _default;
|
|
@@ -18,13 +18,20 @@ declare const _default: {
|
|
|
18
18
|
"user-context": NavContextMenuPatchCallback;
|
|
19
19
|
"gdm-context": NavContextMenuPatchCallback;
|
|
20
20
|
};
|
|
21
|
-
patches: {
|
|
21
|
+
patches: ({
|
|
22
|
+
find: string;
|
|
23
|
+
replacement: {
|
|
24
|
+
match: RegExp;
|
|
25
|
+
replace: string;
|
|
26
|
+
predicate: () => boolean;
|
|
27
|
+
}[];
|
|
28
|
+
} | {
|
|
22
29
|
find: string;
|
|
23
30
|
replacement: {
|
|
24
31
|
match: RegExp;
|
|
25
32
|
replace: string;
|
|
26
33
|
};
|
|
27
|
-
}[];
|
|
34
|
+
})[];
|
|
28
35
|
settings: import("../../utils/types").DefinedSettings<{
|
|
29
36
|
onStartup: {
|
|
30
37
|
label: () => string;
|
|
@@ -45,6 +45,12 @@ declare const _default: {
|
|
|
45
45
|
restartNeeded: true;
|
|
46
46
|
default: false;
|
|
47
47
|
};
|
|
48
|
+
focusDiscord: {
|
|
49
|
+
label: () => string;
|
|
50
|
+
description: () => string;
|
|
51
|
+
type: import("../../utils/types").OptionType.BOOLEAN;
|
|
52
|
+
default: true;
|
|
53
|
+
};
|
|
48
54
|
toolboxManagement: {
|
|
49
55
|
label: () => string;
|
|
50
56
|
description: () => string;
|
|
@@ -87,6 +93,12 @@ declare const _default: {
|
|
|
87
93
|
restartNeeded: true;
|
|
88
94
|
default: false;
|
|
89
95
|
};
|
|
96
|
+
focusDiscord: {
|
|
97
|
+
label: () => string;
|
|
98
|
+
description: () => string;
|
|
99
|
+
type: import("../../utils/types").OptionType.BOOLEAN;
|
|
100
|
+
default: true;
|
|
101
|
+
};
|
|
90
102
|
toolboxManagement: {
|
|
91
103
|
label: () => string;
|
|
92
104
|
description: () => string;
|
|
@@ -35,6 +35,12 @@ export declare const settings: import("../../utils/types").DefinedSettings<{
|
|
|
35
35
|
restartNeeded: true;
|
|
36
36
|
default: false;
|
|
37
37
|
};
|
|
38
|
+
focusDiscord: {
|
|
39
|
+
label: () => string;
|
|
40
|
+
description: () => string;
|
|
41
|
+
type: OptionType.BOOLEAN;
|
|
42
|
+
default: true;
|
|
43
|
+
};
|
|
38
44
|
toolboxManagement: {
|
|
39
45
|
label: () => string;
|
|
40
46
|
description: () => string;
|
|
@@ -77,6 +83,12 @@ export declare const settings: import("../../utils/types").DefinedSettings<{
|
|
|
77
83
|
restartNeeded: true;
|
|
78
84
|
default: false;
|
|
79
85
|
};
|
|
86
|
+
focusDiscord: {
|
|
87
|
+
label: () => string;
|
|
88
|
+
description: () => string;
|
|
89
|
+
type: OptionType.BOOLEAN;
|
|
90
|
+
default: true;
|
|
91
|
+
};
|
|
80
92
|
toolboxManagement: {
|
|
81
93
|
label: () => string;
|
|
82
94
|
description: () => string;
|
|
@@ -7,7 +7,7 @@ declare const _default: {
|
|
|
7
7
|
id: bigint;
|
|
8
8
|
}[];
|
|
9
9
|
settings: import("../../utils/types").DefinedSettings<{
|
|
10
|
-
|
|
10
|
+
scope: {
|
|
11
11
|
label: () => string;
|
|
12
12
|
description: () => string;
|
|
13
13
|
type: OptionType.SELECT;
|
|
@@ -21,15 +21,15 @@ declare const _default: {
|
|
|
21
21
|
default?: undefined;
|
|
22
22
|
})[];
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
threshold: {
|
|
25
25
|
label: () => string;
|
|
26
26
|
description: () => string;
|
|
27
|
-
type: OptionType.
|
|
28
|
-
markers: number[];
|
|
27
|
+
type: OptionType.NUMBER;
|
|
29
28
|
default: number;
|
|
29
|
+
onChange(newValue: any): void;
|
|
30
30
|
};
|
|
31
31
|
}, import("../../utils/types").SettingsChecks<{
|
|
32
|
-
|
|
32
|
+
scope: {
|
|
33
33
|
label: () => string;
|
|
34
34
|
description: () => string;
|
|
35
35
|
type: OptionType.SELECT;
|
|
@@ -43,15 +43,24 @@ declare const _default: {
|
|
|
43
43
|
default?: undefined;
|
|
44
44
|
})[];
|
|
45
45
|
};
|
|
46
|
-
|
|
46
|
+
threshold: {
|
|
47
47
|
label: () => string;
|
|
48
48
|
description: () => string;
|
|
49
|
-
type: OptionType.
|
|
50
|
-
markers: number[];
|
|
49
|
+
type: OptionType.NUMBER;
|
|
51
50
|
default: number;
|
|
51
|
+
onChange(newValue: any): void;
|
|
52
52
|
};
|
|
53
53
|
}>, {}>;
|
|
54
|
+
isPastingDisabled(isInput: boolean): boolean;
|
|
55
|
+
onMouseUp: (e: MouseEvent) => void;
|
|
54
56
|
start(): void;
|
|
55
57
|
stop(): void;
|
|
58
|
+
patches: {
|
|
59
|
+
find: string;
|
|
60
|
+
replacement: {
|
|
61
|
+
match: RegExp;
|
|
62
|
+
replace: string;
|
|
63
|
+
};
|
|
64
|
+
}[];
|
|
56
65
|
} & Record<PropertyKey, any> & import("../../utils/types").Plugin;
|
|
57
66
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./styles.css";
|
|
2
2
|
import { NavContextMenuPatchCallback } from "../../api/ContextMenu";
|
|
3
|
-
import type { Guild
|
|
3
|
+
import type { Guild } from "@plexcord/discord-types";
|
|
4
4
|
import { OptionType } from "../../utils/types";
|
|
5
5
|
export declare const enum PermissionsSortOrder {
|
|
6
6
|
HighestRole = 0,
|
|
@@ -84,10 +84,8 @@ declare const _default: {
|
|
|
84
84
|
}[];
|
|
85
85
|
ViewPermissionsButton: import("react").FunctionComponent<{
|
|
86
86
|
className: string;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
guildMember: GuildMember;
|
|
90
|
-
};
|
|
87
|
+
guild: Guild;
|
|
88
|
+
userId: string;
|
|
91
89
|
}>;
|
|
92
90
|
contextMenus: {
|
|
93
91
|
"user-context": NavContextMenuPatchCallback;
|