@plexcord/types 1.18.4 → 1.18.5
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/Notifications/NotificationComponent.d.ts +3 -0
- package/api/Settings.d.ts +6 -1
- package/locales/en.d.ts +134 -40
- package/package.json +1 -1
- package/plugins/statusNotifications/index.d.ts +44 -0
- package/plugins/toastNotifications/index.d.ts +0 -245
- package/utils/contextMenuHelpers.d.ts +12 -0
- package/plugins/toastNotifications/components/NotificationComponent.d.ts +0 -6
- package/plugins/toastNotifications/components/Notifications.d.ts +0 -14
|
@@ -2,5 +2,8 @@ import "./styles.css";
|
|
|
2
2
|
import { NotificationData } from "./Notifications";
|
|
3
3
|
declare const _default: import("react").FunctionComponent<NotificationData & {
|
|
4
4
|
className?: string;
|
|
5
|
+
index?: number;
|
|
6
|
+
offsetY?: number;
|
|
7
|
+
onHeightChange?: (height: number) => void;
|
|
5
8
|
}>;
|
|
6
9
|
export default _default;
|
package/api/Settings.d.ts
CHANGED
|
@@ -41,10 +41,15 @@ export interface Settings {
|
|
|
41
41
|
};
|
|
42
42
|
notifications: {
|
|
43
43
|
timeout: number;
|
|
44
|
-
position: "top-right" | "bottom-right";
|
|
44
|
+
position: "top-right" | "bottom-right" | "top-left" | "bottom-left";
|
|
45
45
|
useNative: "always" | "never" | "not-focused";
|
|
46
46
|
missed: boolean;
|
|
47
47
|
logLimit: number;
|
|
48
|
+
opacity: number;
|
|
49
|
+
maxNotifications: number;
|
|
50
|
+
disableInStreamerMode: boolean;
|
|
51
|
+
renderImages: boolean;
|
|
52
|
+
streamingTreatment: "normal" | "no-content" | "ignore";
|
|
48
53
|
};
|
|
49
54
|
cloud: {
|
|
50
55
|
authenticated: boolean;
|
package/locales/en.d.ts
CHANGED
|
@@ -110,6 +110,10 @@ declare const translations: {
|
|
|
110
110
|
readonly bottom: "Bottom Right";
|
|
111
111
|
readonly top: "Top Right";
|
|
112
112
|
};
|
|
113
|
+
readonly left: {
|
|
114
|
+
readonly bottom: "Bottom Left";
|
|
115
|
+
readonly top: "Top Left";
|
|
116
|
+
};
|
|
113
117
|
};
|
|
114
118
|
readonly missed: {
|
|
115
119
|
readonly label: "Missed Notifications Count";
|
|
@@ -126,6 +130,32 @@ declare const translations: {
|
|
|
126
130
|
readonly label: "Notification Log Limit";
|
|
127
131
|
readonly description: "The maximum number of notifications to keep in the log before old ones are removed. Set to {{disable}} to disable the notification log and {{unlimited}} to never automatically remove old notifications";
|
|
128
132
|
};
|
|
133
|
+
readonly opacity: {
|
|
134
|
+
readonly label: "Notification Opacity";
|
|
135
|
+
readonly description: "The opacity of in-app notifications";
|
|
136
|
+
};
|
|
137
|
+
readonly maxNotifications: {
|
|
138
|
+
readonly label: "Max Notifications";
|
|
139
|
+
readonly description: "Maximum number of notifications displayed at once";
|
|
140
|
+
};
|
|
141
|
+
readonly behavior: {
|
|
142
|
+
readonly label: "Notification Behavior";
|
|
143
|
+
};
|
|
144
|
+
readonly disableInStreamerMode: {
|
|
145
|
+
readonly label: "Disable In Streamer Mode";
|
|
146
|
+
readonly description: "Disable notifications while in streamer mode";
|
|
147
|
+
};
|
|
148
|
+
readonly renderImages: {
|
|
149
|
+
readonly label: "Render Images";
|
|
150
|
+
readonly description: "Render images in notifications";
|
|
151
|
+
};
|
|
152
|
+
readonly streamingTreatment: {
|
|
153
|
+
readonly label: "Streaming Treatment";
|
|
154
|
+
readonly description: "How to treat notifications while sharing your screen";
|
|
155
|
+
readonly normal: "Normal - Show the notification as normal";
|
|
156
|
+
readonly noContent: "No Content - Hide the notification body";
|
|
157
|
+
readonly ignore: "Ignore - Don't show the notification at all";
|
|
158
|
+
};
|
|
129
159
|
};
|
|
130
160
|
readonly macVibrancy: {
|
|
131
161
|
readonly title: "Window Vibrancy Style (Requires Restart)";
|
|
@@ -7619,11 +7649,47 @@ declare const translations: {
|
|
|
7619
7649
|
readonly loading: "Loading...";
|
|
7620
7650
|
};
|
|
7621
7651
|
};
|
|
7652
|
+
readonly statusNotifications: {
|
|
7653
|
+
readonly name: "StatusNotifications";
|
|
7654
|
+
readonly description: "Adds notifications for status changes";
|
|
7655
|
+
readonly loading: "Loading...";
|
|
7656
|
+
readonly option: {
|
|
7657
|
+
readonly notificationsSound: {
|
|
7658
|
+
readonly label: "Notification Sound";
|
|
7659
|
+
readonly description: "Play a notification sound for status notifications?";
|
|
7660
|
+
};
|
|
7661
|
+
readonly usersList: {
|
|
7662
|
+
readonly label: "Users List";
|
|
7663
|
+
readonly description: "List of users to notify on status change";
|
|
7664
|
+
readonly empty: "No users tracked. Right-click a user and select 'Status Notifications' to add them.";
|
|
7665
|
+
};
|
|
7666
|
+
};
|
|
7667
|
+
readonly context: {
|
|
7668
|
+
readonly label: "Status Notifications";
|
|
7669
|
+
readonly notifications: "Notifications";
|
|
7670
|
+
readonly type: {
|
|
7671
|
+
readonly all: "All";
|
|
7672
|
+
readonly online: "Online";
|
|
7673
|
+
readonly offline: "Offline";
|
|
7674
|
+
readonly none: "None";
|
|
7675
|
+
};
|
|
7676
|
+
};
|
|
7677
|
+
readonly notification: {
|
|
7678
|
+
readonly unknownUser: "User";
|
|
7679
|
+
readonly title: "Status Notifications";
|
|
7680
|
+
};
|
|
7681
|
+
readonly status: {
|
|
7682
|
+
readonly online: "Online";
|
|
7683
|
+
readonly idle: "Idle";
|
|
7684
|
+
readonly dnd: "Do Not Disturb";
|
|
7685
|
+
readonly offline: "Offline";
|
|
7686
|
+
};
|
|
7687
|
+
};
|
|
7622
7688
|
readonly statusPresets: {
|
|
7623
7689
|
readonly name: "StatusPresets";
|
|
7624
7690
|
readonly description: "Allows you to remember your statuses and set them later";
|
|
7625
7691
|
readonly button: {
|
|
7626
|
-
readonly remember: "Remember";
|
|
7692
|
+
readonly remember: "Remember Status";
|
|
7627
7693
|
};
|
|
7628
7694
|
readonly context: {
|
|
7629
7695
|
readonly edit: "Edit Custom Presets";
|
|
@@ -7928,22 +7994,10 @@ declare const translations: {
|
|
|
7928
7994
|
readonly label: "Opacity";
|
|
7929
7995
|
readonly description: "The opacity of the toast notification";
|
|
7930
7996
|
};
|
|
7931
|
-
readonly maxNotifications: {
|
|
7932
|
-
readonly label: "Max Notifications";
|
|
7933
|
-
readonly description: "Maximum number of notifications displayed at once";
|
|
7934
|
-
};
|
|
7935
7997
|
readonly determineServerNotifications: {
|
|
7936
7998
|
readonly label: "Determine Server Notifications";
|
|
7937
7999
|
readonly description: "Determine whether to show notifications based on server notification settings";
|
|
7938
8000
|
};
|
|
7939
|
-
readonly disableInStreamerMode: {
|
|
7940
|
-
readonly label: "Disable In Streamer Mode";
|
|
7941
|
-
readonly description: "Disable notifications while in streamer mode";
|
|
7942
|
-
};
|
|
7943
|
-
readonly renderImages: {
|
|
7944
|
-
readonly label: "Render Images";
|
|
7945
|
-
readonly description: "Render images in notifications";
|
|
7946
|
-
};
|
|
7947
8001
|
readonly directMessages: {
|
|
7948
8002
|
readonly label: "Direct Messages";
|
|
7949
8003
|
readonly description: "Show notifications for direct messages";
|
|
@@ -7960,13 +8014,6 @@ declare const translations: {
|
|
|
7960
8014
|
readonly label: "Friend Activity";
|
|
7961
8015
|
readonly description: "Show notifications for adding someone or receiving a friend request";
|
|
7962
8016
|
};
|
|
7963
|
-
readonly streamingTreatment: {
|
|
7964
|
-
readonly label: "Streaming Treatment";
|
|
7965
|
-
readonly description: "How to treat notifications while sharing your screen";
|
|
7966
|
-
readonly normal: "Normal - Show the notification as normal";
|
|
7967
|
-
readonly noContent: "No Content - Hide the notification body";
|
|
7968
|
-
readonly ignore: "Ignore - Don't show the notification at all";
|
|
7969
|
-
};
|
|
7970
8017
|
readonly notifyFor: {
|
|
7971
8018
|
readonly label: "Notify For";
|
|
7972
8019
|
readonly description: "Create a list of channel ids to receive notifications from (separate with commas)";
|
|
@@ -8905,6 +8952,10 @@ export declare const settings: DeepKeyProxy<{
|
|
|
8905
8952
|
readonly bottom: "Bottom Right";
|
|
8906
8953
|
readonly top: "Top Right";
|
|
8907
8954
|
};
|
|
8955
|
+
readonly left: {
|
|
8956
|
+
readonly bottom: "Bottom Left";
|
|
8957
|
+
readonly top: "Top Left";
|
|
8958
|
+
};
|
|
8908
8959
|
};
|
|
8909
8960
|
readonly missed: {
|
|
8910
8961
|
readonly label: "Missed Notifications Count";
|
|
@@ -8921,6 +8972,32 @@ export declare const settings: DeepKeyProxy<{
|
|
|
8921
8972
|
readonly label: "Notification Log Limit";
|
|
8922
8973
|
readonly description: "The maximum number of notifications to keep in the log before old ones are removed. Set to {{disable}} to disable the notification log and {{unlimited}} to never automatically remove old notifications";
|
|
8923
8974
|
};
|
|
8975
|
+
readonly opacity: {
|
|
8976
|
+
readonly label: "Notification Opacity";
|
|
8977
|
+
readonly description: "The opacity of in-app notifications";
|
|
8978
|
+
};
|
|
8979
|
+
readonly maxNotifications: {
|
|
8980
|
+
readonly label: "Max Notifications";
|
|
8981
|
+
readonly description: "Maximum number of notifications displayed at once";
|
|
8982
|
+
};
|
|
8983
|
+
readonly behavior: {
|
|
8984
|
+
readonly label: "Notification Behavior";
|
|
8985
|
+
};
|
|
8986
|
+
readonly disableInStreamerMode: {
|
|
8987
|
+
readonly label: "Disable In Streamer Mode";
|
|
8988
|
+
readonly description: "Disable notifications while in streamer mode";
|
|
8989
|
+
};
|
|
8990
|
+
readonly renderImages: {
|
|
8991
|
+
readonly label: "Render Images";
|
|
8992
|
+
readonly description: "Render images in notifications";
|
|
8993
|
+
};
|
|
8994
|
+
readonly streamingTreatment: {
|
|
8995
|
+
readonly label: "Streaming Treatment";
|
|
8996
|
+
readonly description: "How to treat notifications while sharing your screen";
|
|
8997
|
+
readonly normal: "Normal - Show the notification as normal";
|
|
8998
|
+
readonly noContent: "No Content - Hide the notification body";
|
|
8999
|
+
readonly ignore: "Ignore - Don't show the notification at all";
|
|
9000
|
+
};
|
|
8924
9001
|
};
|
|
8925
9002
|
readonly macVibrancy: {
|
|
8926
9003
|
readonly title: "Window Vibrancy Style (Requires Restart)";
|
|
@@ -16414,11 +16491,47 @@ export declare const plugin: DeepKeyProxy<{
|
|
|
16414
16491
|
readonly loading: "Loading...";
|
|
16415
16492
|
};
|
|
16416
16493
|
};
|
|
16494
|
+
readonly statusNotifications: {
|
|
16495
|
+
readonly name: "StatusNotifications";
|
|
16496
|
+
readonly description: "Adds notifications for status changes";
|
|
16497
|
+
readonly loading: "Loading...";
|
|
16498
|
+
readonly option: {
|
|
16499
|
+
readonly notificationsSound: {
|
|
16500
|
+
readonly label: "Notification Sound";
|
|
16501
|
+
readonly description: "Play a notification sound for status notifications?";
|
|
16502
|
+
};
|
|
16503
|
+
readonly usersList: {
|
|
16504
|
+
readonly label: "Users List";
|
|
16505
|
+
readonly description: "List of users to notify on status change";
|
|
16506
|
+
readonly empty: "No users tracked. Right-click a user and select 'Status Notifications' to add them.";
|
|
16507
|
+
};
|
|
16508
|
+
};
|
|
16509
|
+
readonly context: {
|
|
16510
|
+
readonly label: "Status Notifications";
|
|
16511
|
+
readonly notifications: "Notifications";
|
|
16512
|
+
readonly type: {
|
|
16513
|
+
readonly all: "All";
|
|
16514
|
+
readonly online: "Online";
|
|
16515
|
+
readonly offline: "Offline";
|
|
16516
|
+
readonly none: "None";
|
|
16517
|
+
};
|
|
16518
|
+
};
|
|
16519
|
+
readonly notification: {
|
|
16520
|
+
readonly unknownUser: "User";
|
|
16521
|
+
readonly title: "Status Notifications";
|
|
16522
|
+
};
|
|
16523
|
+
readonly status: {
|
|
16524
|
+
readonly online: "Online";
|
|
16525
|
+
readonly idle: "Idle";
|
|
16526
|
+
readonly dnd: "Do Not Disturb";
|
|
16527
|
+
readonly offline: "Offline";
|
|
16528
|
+
};
|
|
16529
|
+
};
|
|
16417
16530
|
readonly statusPresets: {
|
|
16418
16531
|
readonly name: "StatusPresets";
|
|
16419
16532
|
readonly description: "Allows you to remember your statuses and set them later";
|
|
16420
16533
|
readonly button: {
|
|
16421
|
-
readonly remember: "Remember";
|
|
16534
|
+
readonly remember: "Remember Status";
|
|
16422
16535
|
};
|
|
16423
16536
|
readonly context: {
|
|
16424
16537
|
readonly edit: "Edit Custom Presets";
|
|
@@ -16723,22 +16836,10 @@ export declare const plugin: DeepKeyProxy<{
|
|
|
16723
16836
|
readonly label: "Opacity";
|
|
16724
16837
|
readonly description: "The opacity of the toast notification";
|
|
16725
16838
|
};
|
|
16726
|
-
readonly maxNotifications: {
|
|
16727
|
-
readonly label: "Max Notifications";
|
|
16728
|
-
readonly description: "Maximum number of notifications displayed at once";
|
|
16729
|
-
};
|
|
16730
16839
|
readonly determineServerNotifications: {
|
|
16731
16840
|
readonly label: "Determine Server Notifications";
|
|
16732
16841
|
readonly description: "Determine whether to show notifications based on server notification settings";
|
|
16733
16842
|
};
|
|
16734
|
-
readonly disableInStreamerMode: {
|
|
16735
|
-
readonly label: "Disable In Streamer Mode";
|
|
16736
|
-
readonly description: "Disable notifications while in streamer mode";
|
|
16737
|
-
};
|
|
16738
|
-
readonly renderImages: {
|
|
16739
|
-
readonly label: "Render Images";
|
|
16740
|
-
readonly description: "Render images in notifications";
|
|
16741
|
-
};
|
|
16742
16843
|
readonly directMessages: {
|
|
16743
16844
|
readonly label: "Direct Messages";
|
|
16744
16845
|
readonly description: "Show notifications for direct messages";
|
|
@@ -16755,13 +16856,6 @@ export declare const plugin: DeepKeyProxy<{
|
|
|
16755
16856
|
readonly label: "Friend Activity";
|
|
16756
16857
|
readonly description: "Show notifications for adding someone or receiving a friend request";
|
|
16757
16858
|
};
|
|
16758
|
-
readonly streamingTreatment: {
|
|
16759
|
-
readonly label: "Streaming Treatment";
|
|
16760
|
-
readonly description: "How to treat notifications while sharing your screen";
|
|
16761
|
-
readonly normal: "Normal - Show the notification as normal";
|
|
16762
|
-
readonly noContent: "No Content - Hide the notification body";
|
|
16763
|
-
readonly ignore: "Ignore - Don't show the notification at all";
|
|
16764
|
-
};
|
|
16765
16859
|
readonly notifyFor: {
|
|
16766
16860
|
readonly label: "Notify For";
|
|
16767
16861
|
readonly description: "Create a list of channel ids to receive notifications from (separate with commas)";
|
package/package.json
CHANGED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { OptionType } from "../../utils/types";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
declare function UserListComponent(): JSX.Element;
|
|
4
|
+
declare const _default: {
|
|
5
|
+
name: string;
|
|
6
|
+
description: () => string;
|
|
7
|
+
authors: {
|
|
8
|
+
name: string;
|
|
9
|
+
id: bigint;
|
|
10
|
+
}[];
|
|
11
|
+
settings: import("../../utils/types").DefinedSettings<{
|
|
12
|
+
notificationsSound: {
|
|
13
|
+
label: () => string;
|
|
14
|
+
description: () => string;
|
|
15
|
+
type: OptionType.BOOLEAN;
|
|
16
|
+
default: true;
|
|
17
|
+
};
|
|
18
|
+
usersList: {
|
|
19
|
+
label: () => string;
|
|
20
|
+
description: () => string;
|
|
21
|
+
type: OptionType.COMPONENT;
|
|
22
|
+
component: typeof UserListComponent;
|
|
23
|
+
};
|
|
24
|
+
}, import("../../utils/types").SettingsChecks<{
|
|
25
|
+
notificationsSound: {
|
|
26
|
+
label: () => string;
|
|
27
|
+
description: () => string;
|
|
28
|
+
type: OptionType.BOOLEAN;
|
|
29
|
+
default: true;
|
|
30
|
+
};
|
|
31
|
+
usersList: {
|
|
32
|
+
label: () => string;
|
|
33
|
+
description: () => string;
|
|
34
|
+
type: OptionType.COMPONENT;
|
|
35
|
+
component: typeof UserListComponent;
|
|
36
|
+
};
|
|
37
|
+
}>, {}>;
|
|
38
|
+
start(): Promise<void>;
|
|
39
|
+
stop(): void;
|
|
40
|
+
flux: {
|
|
41
|
+
PRESENCE_UPDATES({ updates }: any): void;
|
|
42
|
+
};
|
|
43
|
+
} & Record<PropertyKey, any> & import("../../utils/types").Plugin;
|
|
44
|
+
export default _default;
|
|
@@ -1,60 +1,12 @@
|
|
|
1
1
|
import { Message } from "@plexcord/discord-types";
|
|
2
2
|
import { OptionType } from "../../utils/types";
|
|
3
|
-
import { StreamingTreatment } from "./types";
|
|
4
3
|
export declare const settings: import("../../utils/types").DefinedSettings<{
|
|
5
|
-
position: {
|
|
6
|
-
label: () => string;
|
|
7
|
-
description: () => string;
|
|
8
|
-
type: OptionType.SELECT;
|
|
9
|
-
options: ({
|
|
10
|
-
label: () => string;
|
|
11
|
-
value: string;
|
|
12
|
-
default: true;
|
|
13
|
-
} | {
|
|
14
|
-
label: () => string;
|
|
15
|
-
value: string;
|
|
16
|
-
default?: undefined;
|
|
17
|
-
})[];
|
|
18
|
-
};
|
|
19
|
-
timeout: {
|
|
20
|
-
label: () => string;
|
|
21
|
-
description: () => string;
|
|
22
|
-
type: OptionType.SLIDER;
|
|
23
|
-
default: number;
|
|
24
|
-
markers: number[];
|
|
25
|
-
};
|
|
26
|
-
opacity: {
|
|
27
|
-
label: () => string;
|
|
28
|
-
description: () => string;
|
|
29
|
-
type: OptionType.SLIDER;
|
|
30
|
-
default: number;
|
|
31
|
-
markers: number[];
|
|
32
|
-
};
|
|
33
|
-
maxNotifications: {
|
|
34
|
-
label: () => string;
|
|
35
|
-
description: () => string;
|
|
36
|
-
type: OptionType.SLIDER;
|
|
37
|
-
default: number;
|
|
38
|
-
markers: number[];
|
|
39
|
-
};
|
|
40
4
|
determineServerNotifications: {
|
|
41
5
|
label: () => string;
|
|
42
6
|
description: () => string;
|
|
43
7
|
type: OptionType.BOOLEAN;
|
|
44
8
|
default: true;
|
|
45
9
|
};
|
|
46
|
-
disableInStreamerMode: {
|
|
47
|
-
label: () => string;
|
|
48
|
-
description: () => string;
|
|
49
|
-
type: OptionType.BOOLEAN;
|
|
50
|
-
default: true;
|
|
51
|
-
};
|
|
52
|
-
renderImages: {
|
|
53
|
-
label: () => string;
|
|
54
|
-
description: () => string;
|
|
55
|
-
type: OptionType.BOOLEAN;
|
|
56
|
-
default: true;
|
|
57
|
-
};
|
|
58
10
|
directMessages: {
|
|
59
11
|
label: () => string;
|
|
60
12
|
description: () => string;
|
|
@@ -79,20 +31,6 @@ export declare const settings: import("../../utils/types").DefinedSettings<{
|
|
|
79
31
|
type: OptionType.BOOLEAN;
|
|
80
32
|
default: true;
|
|
81
33
|
};
|
|
82
|
-
streamingTreatment: {
|
|
83
|
-
label: () => string;
|
|
84
|
-
description: () => string;
|
|
85
|
-
type: OptionType.SELECT;
|
|
86
|
-
options: ({
|
|
87
|
-
label: () => string;
|
|
88
|
-
value: StreamingTreatment;
|
|
89
|
-
default: true;
|
|
90
|
-
} | {
|
|
91
|
-
label: () => string;
|
|
92
|
-
value: StreamingTreatment;
|
|
93
|
-
default?: undefined;
|
|
94
|
-
})[];
|
|
95
|
-
};
|
|
96
34
|
notifyFor: {
|
|
97
35
|
label: () => string;
|
|
98
36
|
description: () => string;
|
|
@@ -114,59 +52,12 @@ export declare const settings: import("../../utils/types").DefinedSettings<{
|
|
|
114
52
|
component: () => import("react").JSX.Element;
|
|
115
53
|
};
|
|
116
54
|
}, import("../../utils/types").SettingsChecks<{
|
|
117
|
-
position: {
|
|
118
|
-
label: () => string;
|
|
119
|
-
description: () => string;
|
|
120
|
-
type: OptionType.SELECT;
|
|
121
|
-
options: ({
|
|
122
|
-
label: () => string;
|
|
123
|
-
value: string;
|
|
124
|
-
default: true;
|
|
125
|
-
} | {
|
|
126
|
-
label: () => string;
|
|
127
|
-
value: string;
|
|
128
|
-
default?: undefined;
|
|
129
|
-
})[];
|
|
130
|
-
};
|
|
131
|
-
timeout: {
|
|
132
|
-
label: () => string;
|
|
133
|
-
description: () => string;
|
|
134
|
-
type: OptionType.SLIDER;
|
|
135
|
-
default: number;
|
|
136
|
-
markers: number[];
|
|
137
|
-
};
|
|
138
|
-
opacity: {
|
|
139
|
-
label: () => string;
|
|
140
|
-
description: () => string;
|
|
141
|
-
type: OptionType.SLIDER;
|
|
142
|
-
default: number;
|
|
143
|
-
markers: number[];
|
|
144
|
-
};
|
|
145
|
-
maxNotifications: {
|
|
146
|
-
label: () => string;
|
|
147
|
-
description: () => string;
|
|
148
|
-
type: OptionType.SLIDER;
|
|
149
|
-
default: number;
|
|
150
|
-
markers: number[];
|
|
151
|
-
};
|
|
152
55
|
determineServerNotifications: {
|
|
153
56
|
label: () => string;
|
|
154
57
|
description: () => string;
|
|
155
58
|
type: OptionType.BOOLEAN;
|
|
156
59
|
default: true;
|
|
157
60
|
};
|
|
158
|
-
disableInStreamerMode: {
|
|
159
|
-
label: () => string;
|
|
160
|
-
description: () => string;
|
|
161
|
-
type: OptionType.BOOLEAN;
|
|
162
|
-
default: true;
|
|
163
|
-
};
|
|
164
|
-
renderImages: {
|
|
165
|
-
label: () => string;
|
|
166
|
-
description: () => string;
|
|
167
|
-
type: OptionType.BOOLEAN;
|
|
168
|
-
default: true;
|
|
169
|
-
};
|
|
170
61
|
directMessages: {
|
|
171
62
|
label: () => string;
|
|
172
63
|
description: () => string;
|
|
@@ -191,20 +82,6 @@ export declare const settings: import("../../utils/types").DefinedSettings<{
|
|
|
191
82
|
type: OptionType.BOOLEAN;
|
|
192
83
|
default: true;
|
|
193
84
|
};
|
|
194
|
-
streamingTreatment: {
|
|
195
|
-
label: () => string;
|
|
196
|
-
description: () => string;
|
|
197
|
-
type: OptionType.SELECT;
|
|
198
|
-
options: ({
|
|
199
|
-
label: () => string;
|
|
200
|
-
value: StreamingTreatment;
|
|
201
|
-
default: true;
|
|
202
|
-
} | {
|
|
203
|
-
label: () => string;
|
|
204
|
-
value: StreamingTreatment;
|
|
205
|
-
default?: undefined;
|
|
206
|
-
})[];
|
|
207
|
-
};
|
|
208
85
|
notifyFor: {
|
|
209
86
|
label: () => string;
|
|
210
87
|
description: () => string;
|
|
@@ -234,59 +111,12 @@ declare const _default: {
|
|
|
234
111
|
id: bigint;
|
|
235
112
|
}[];
|
|
236
113
|
settings: import("../../utils/types").DefinedSettings<{
|
|
237
|
-
position: {
|
|
238
|
-
label: () => string;
|
|
239
|
-
description: () => string;
|
|
240
|
-
type: OptionType.SELECT;
|
|
241
|
-
options: ({
|
|
242
|
-
label: () => string;
|
|
243
|
-
value: string;
|
|
244
|
-
default: true;
|
|
245
|
-
} | {
|
|
246
|
-
label: () => string;
|
|
247
|
-
value: string;
|
|
248
|
-
default?: undefined;
|
|
249
|
-
})[];
|
|
250
|
-
};
|
|
251
|
-
timeout: {
|
|
252
|
-
label: () => string;
|
|
253
|
-
description: () => string;
|
|
254
|
-
type: OptionType.SLIDER;
|
|
255
|
-
default: number;
|
|
256
|
-
markers: number[];
|
|
257
|
-
};
|
|
258
|
-
opacity: {
|
|
259
|
-
label: () => string;
|
|
260
|
-
description: () => string;
|
|
261
|
-
type: OptionType.SLIDER;
|
|
262
|
-
default: number;
|
|
263
|
-
markers: number[];
|
|
264
|
-
};
|
|
265
|
-
maxNotifications: {
|
|
266
|
-
label: () => string;
|
|
267
|
-
description: () => string;
|
|
268
|
-
type: OptionType.SLIDER;
|
|
269
|
-
default: number;
|
|
270
|
-
markers: number[];
|
|
271
|
-
};
|
|
272
114
|
determineServerNotifications: {
|
|
273
115
|
label: () => string;
|
|
274
116
|
description: () => string;
|
|
275
117
|
type: OptionType.BOOLEAN;
|
|
276
118
|
default: true;
|
|
277
119
|
};
|
|
278
|
-
disableInStreamerMode: {
|
|
279
|
-
label: () => string;
|
|
280
|
-
description: () => string;
|
|
281
|
-
type: OptionType.BOOLEAN;
|
|
282
|
-
default: true;
|
|
283
|
-
};
|
|
284
|
-
renderImages: {
|
|
285
|
-
label: () => string;
|
|
286
|
-
description: () => string;
|
|
287
|
-
type: OptionType.BOOLEAN;
|
|
288
|
-
default: true;
|
|
289
|
-
};
|
|
290
120
|
directMessages: {
|
|
291
121
|
label: () => string;
|
|
292
122
|
description: () => string;
|
|
@@ -311,20 +141,6 @@ declare const _default: {
|
|
|
311
141
|
type: OptionType.BOOLEAN;
|
|
312
142
|
default: true;
|
|
313
143
|
};
|
|
314
|
-
streamingTreatment: {
|
|
315
|
-
label: () => string;
|
|
316
|
-
description: () => string;
|
|
317
|
-
type: OptionType.SELECT;
|
|
318
|
-
options: ({
|
|
319
|
-
label: () => string;
|
|
320
|
-
value: StreamingTreatment;
|
|
321
|
-
default: true;
|
|
322
|
-
} | {
|
|
323
|
-
label: () => string;
|
|
324
|
-
value: StreamingTreatment;
|
|
325
|
-
default?: undefined;
|
|
326
|
-
})[];
|
|
327
|
-
};
|
|
328
144
|
notifyFor: {
|
|
329
145
|
label: () => string;
|
|
330
146
|
description: () => string;
|
|
@@ -346,59 +162,12 @@ declare const _default: {
|
|
|
346
162
|
component: () => import("react").JSX.Element;
|
|
347
163
|
};
|
|
348
164
|
}, import("../../utils/types").SettingsChecks<{
|
|
349
|
-
position: {
|
|
350
|
-
label: () => string;
|
|
351
|
-
description: () => string;
|
|
352
|
-
type: OptionType.SELECT;
|
|
353
|
-
options: ({
|
|
354
|
-
label: () => string;
|
|
355
|
-
value: string;
|
|
356
|
-
default: true;
|
|
357
|
-
} | {
|
|
358
|
-
label: () => string;
|
|
359
|
-
value: string;
|
|
360
|
-
default?: undefined;
|
|
361
|
-
})[];
|
|
362
|
-
};
|
|
363
|
-
timeout: {
|
|
364
|
-
label: () => string;
|
|
365
|
-
description: () => string;
|
|
366
|
-
type: OptionType.SLIDER;
|
|
367
|
-
default: number;
|
|
368
|
-
markers: number[];
|
|
369
|
-
};
|
|
370
|
-
opacity: {
|
|
371
|
-
label: () => string;
|
|
372
|
-
description: () => string;
|
|
373
|
-
type: OptionType.SLIDER;
|
|
374
|
-
default: number;
|
|
375
|
-
markers: number[];
|
|
376
|
-
};
|
|
377
|
-
maxNotifications: {
|
|
378
|
-
label: () => string;
|
|
379
|
-
description: () => string;
|
|
380
|
-
type: OptionType.SLIDER;
|
|
381
|
-
default: number;
|
|
382
|
-
markers: number[];
|
|
383
|
-
};
|
|
384
165
|
determineServerNotifications: {
|
|
385
166
|
label: () => string;
|
|
386
167
|
description: () => string;
|
|
387
168
|
type: OptionType.BOOLEAN;
|
|
388
169
|
default: true;
|
|
389
170
|
};
|
|
390
|
-
disableInStreamerMode: {
|
|
391
|
-
label: () => string;
|
|
392
|
-
description: () => string;
|
|
393
|
-
type: OptionType.BOOLEAN;
|
|
394
|
-
default: true;
|
|
395
|
-
};
|
|
396
|
-
renderImages: {
|
|
397
|
-
label: () => string;
|
|
398
|
-
description: () => string;
|
|
399
|
-
type: OptionType.BOOLEAN;
|
|
400
|
-
default: true;
|
|
401
|
-
};
|
|
402
171
|
directMessages: {
|
|
403
172
|
label: () => string;
|
|
404
173
|
description: () => string;
|
|
@@ -423,20 +192,6 @@ declare const _default: {
|
|
|
423
192
|
type: OptionType.BOOLEAN;
|
|
424
193
|
default: true;
|
|
425
194
|
};
|
|
426
|
-
streamingTreatment: {
|
|
427
|
-
label: () => string;
|
|
428
|
-
description: () => string;
|
|
429
|
-
type: OptionType.SELECT;
|
|
430
|
-
options: ({
|
|
431
|
-
label: () => string;
|
|
432
|
-
value: StreamingTreatment;
|
|
433
|
-
default: true;
|
|
434
|
-
} | {
|
|
435
|
-
label: () => string;
|
|
436
|
-
value: StreamingTreatment;
|
|
437
|
-
default?: undefined;
|
|
438
|
-
})[];
|
|
439
|
-
};
|
|
440
195
|
notifyFor: {
|
|
441
196
|
label: () => string;
|
|
442
197
|
description: () => string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Adds a menu item to a shared group. If the group doesn't exist, creates it.
|
|
4
|
+
* @param children - The context menu children array
|
|
5
|
+
* @param groupKey - Unique key for the menu group
|
|
6
|
+
* @param menuItem - The menu item to add
|
|
7
|
+
*/
|
|
8
|
+
export declare function addToMenuGroup(children: any[], groupKey: string, menuItem: JSX.Element): void;
|
|
9
|
+
export declare const MenuGroups: {
|
|
10
|
+
readonly STATUS_NOTIFICATIONS: "status-notifications-group";
|
|
11
|
+
};
|
|
12
|
+
export declare function addToStatusGroup(children: any[], menuItem: JSX.Element): void;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
export interface NotificationData {
|
|
3
|
-
title: string;
|
|
4
|
-
body: string;
|
|
5
|
-
richBody?: ReactNode;
|
|
6
|
-
icon?: string;
|
|
7
|
-
image?: string;
|
|
8
|
-
permanent?: boolean;
|
|
9
|
-
dismissOnClick?: boolean;
|
|
10
|
-
attachments: number;
|
|
11
|
-
onClick?(): void;
|
|
12
|
-
onClose?(): void;
|
|
13
|
-
}
|
|
14
|
-
export declare function showNotification(notification: NotificationData): Promise<void>;
|