@plexcord/types 1.17.4 → 1.17.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.
Files changed (70) hide show
  1. package/api/Settings.d.ts +1 -0
  2. package/api/Styles.d.ts +1 -1
  3. package/package.json +1 -1
  4. package/plugins/_core/settings.d.ts +6 -0
  5. package/plugins/alwaysAnimate/index.d.ts +76 -0
  6. package/plugins/betterRoleDot/index.d.ts +32 -17
  7. package/plugins/blurNsfw/index.d.ts +24 -10
  8. package/plugins/callTimer/index.d.ts +20 -5
  9. package/plugins/channelTabs/components/ChannelTab.d.ts +4 -3
  10. package/plugins/channelTabs/index.d.ts +164 -0
  11. package/plugins/channelTabs/util/constants.d.ts +158 -1
  12. package/plugins/channelTabs/util/icons.d.ts +7 -0
  13. package/plugins/channelTabs/util/index.d.ts +1 -0
  14. package/plugins/channelTabs/util/tabs.d.ts +8 -1
  15. package/plugins/contentWarning/index.d.ts +14 -1
  16. package/plugins/expandedUserTags/index.d.ts +0 -1
  17. package/plugins/expandedUserTags/types.d.ts +1 -0
  18. package/plugins/findReply/index.d.ts +27 -5
  19. package/plugins/friendshipRanks/icons.d.ts +7 -7
  20. package/plugins/githubRepos/components/GitHubReposComponent.d.ts +1 -0
  21. package/plugins/iRememberYou/index.d.ts +1 -0
  22. package/plugins/ignoreCalls/index.d.ts +11 -17
  23. package/plugins/imgToGif/index.d.ts +1 -0
  24. package/plugins/instantScreenshare/index.d.ts +39 -0
  25. package/plugins/instantScreenshare/utils.d.ts +36 -0
  26. package/plugins/inviteDefaults/index.d.ts +21 -14
  27. package/plugins/ircColors/index.d.ts +17 -10
  28. package/plugins/jumpTo/index.d.ts +1 -0
  29. package/plugins/keepCurrentChannel/index.d.ts +1 -0
  30. package/plugins/keyboardSounds/index.d.ts +13 -8
  31. package/plugins/keywordNotify/index.d.ts +13 -6
  32. package/plugins/lastOnline/index.d.ts +1 -0
  33. package/plugins/limitMiddleClickPaste/index.d.ts +13 -8
  34. package/plugins/listenBrainzRPC/index.d.ts +57 -32
  35. package/plugins/loadingQuotes/index.d.ts +21 -10
  36. package/plugins/loginWithQR/index.d.ts +3 -1
  37. package/plugins/mediaDownloader.desktop/index.d.ts +30 -12
  38. package/plugins/mediaPlaybackSpeed/index.d.ts +13 -6
  39. package/plugins/memberCount/index.d.ts +25 -12
  40. package/plugins/mentionAvatars/index.d.ts +5 -2
  41. package/plugins/meow/index.d.ts +1 -0
  42. package/plugins/messageClickActions/index.d.ts +17 -8
  43. package/plugins/messageColors/constants.d.ts +20 -14
  44. package/plugins/messageColors/index.d.ts +21 -14
  45. package/plugins/messageFetchTimer/index.d.ts +13 -6
  46. package/plugins/messageLatency/index.d.ts +9 -4
  47. package/plugins/messageLinkEmbeds/index.d.ts +27 -16
  48. package/plugins/messageLinkTooltip/index.d.ts +21 -12
  49. package/plugins/messageLogger/index.d.ts +53 -28
  50. package/plugins/messageLoggerEnhanced/components/LogsModal.d.ts +3 -3
  51. package/plugins/messageLoggerEnhanced/index.d.ts +139 -58
  52. package/plugins/messageLoggerEnhanced/settings.d.ts +138 -58
  53. package/plugins/messageTags/index.d.ts +23 -16
  54. package/plugins/noBlockedMessages/index.d.ts +12 -87
  55. package/plugins/noServerEmojis/index.d.ts +2 -1
  56. package/plugins/oneko/index.d.ts +18 -0
  57. package/plugins/questify/utils/misc.d.ts +1 -0
  58. package/plugins/sidebarChat/index.d.ts +24 -3
  59. package/plugins/sidebarChat/store.d.ts +15 -9
  60. package/plugins/voiceMessages/native.d.ts +1 -1
  61. package/utils/constants.d.ts +4 -0
  62. package/utils/discord.d.ts +1 -1
  63. package/plugins/downloadify/index.d.ts +0 -115
  64. package/plugins/downloadify/native.d.ts +0 -22
  65. package/plugins/downloadify/settings.d.ts +0 -84
  66. package/plugins/downloadify/utils/definitions.d.ts +0 -365
  67. package/plugins/downloadify/utils/handlers.d.ts +0 -9
  68. package/plugins/downloadify/utils/misc.d.ts +0 -21
  69. package/plugins/encryptcord/index.d.ts +0 -41
  70. package/plugins/encryptcord/rsa-utils.d.ts +0 -7
package/api/Settings.d.ts CHANGED
@@ -70,6 +70,7 @@ export declare const Settings: Settings;
70
70
  * @returns Settings
71
71
  */
72
72
  export declare function useSettings(paths?: UseSettings<Settings>[]): Settings;
73
+ export declare function migratePluginToSetting(newName: string, oldName: string, settingName: string): void;
73
74
  export declare function migratePluginSettings(name: string, ...oldNames: string[]): void;
74
75
  export declare function migratePluginSetting(pluginName: string, newSetting: string, oldSetting: string): void;
75
76
  export declare function migrateSettingFromPlugin(newPlugin: string, newSetting: string, oldPlugin: string, oldSetting: string): void;
package/api/Styles.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { MapValue } from "type-fest/source/entry";
1
+ type MapValue<T extends Map<any, any>> = T extends Map<any, infer V> ? V : never;
2
2
  export type Style = MapValue<typeof PlexcordStyles>;
3
3
  export declare const styleMap: Map<string, {
4
4
  name: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@plexcord/types",
3
3
  "private": false,
4
- "version": "1.17.4",
4
+ "version": "1.17.6",
5
5
  "description": "",
6
6
  "types": "index.d.ts",
7
7
  "scripts": {
@@ -32,6 +32,12 @@ declare const _default: {
32
32
  match: RegExp;
33
33
  replace: (_: string, settingsPanel: string, section: string, openUserSettings: string) => string;
34
34
  };
35
+ } | {
36
+ find: string;
37
+ replacement: {
38
+ match: RegExp;
39
+ replace: string;
40
+ };
35
41
  })[];
36
42
  customSections: ((SectionTypes: SectionTypes) => any)[];
37
43
  makeSettingsCategories(SectionTypes: SectionTypes): any[];
@@ -1,3 +1,4 @@
1
+ import { OptionType } from "../../utils/types";
1
2
  declare const _default: {
2
3
  name: string;
3
4
  description: string;
@@ -5,9 +6,83 @@ declare const _default: {
5
6
  name: string;
6
7
  id: bigint;
7
8
  }[];
9
+ settings: import("../../utils/types").DefinedSettings<{
10
+ icons: {
11
+ readonly label: string;
12
+ readonly description: string;
13
+ type: OptionType.BOOLEAN;
14
+ default: true;
15
+ restartNeeded: true;
16
+ };
17
+ statusEmojis: {
18
+ readonly label: string;
19
+ readonly description: string;
20
+ type: OptionType.BOOLEAN;
21
+ default: true;
22
+ restartNeeded: true;
23
+ };
24
+ serverBanners: {
25
+ readonly label: string;
26
+ readonly description: string;
27
+ type: OptionType.BOOLEAN;
28
+ default: true;
29
+ restartNeeded: true;
30
+ };
31
+ nameplates: {
32
+ readonly label: string;
33
+ readonly description: string;
34
+ type: OptionType.BOOLEAN;
35
+ default: true;
36
+ restartNeeded: true;
37
+ };
38
+ roleGradients: {
39
+ readonly label: string;
40
+ readonly description: string;
41
+ type: OptionType.BOOLEAN;
42
+ default: true;
43
+ restartNeeded: true;
44
+ };
45
+ }, import("../../utils/types").SettingsChecks<{
46
+ icons: {
47
+ readonly label: string;
48
+ readonly description: string;
49
+ type: OptionType.BOOLEAN;
50
+ default: true;
51
+ restartNeeded: true;
52
+ };
53
+ statusEmojis: {
54
+ readonly label: string;
55
+ readonly description: string;
56
+ type: OptionType.BOOLEAN;
57
+ default: true;
58
+ restartNeeded: true;
59
+ };
60
+ serverBanners: {
61
+ readonly label: string;
62
+ readonly description: string;
63
+ type: OptionType.BOOLEAN;
64
+ default: true;
65
+ restartNeeded: true;
66
+ };
67
+ nameplates: {
68
+ readonly label: string;
69
+ readonly description: string;
70
+ type: OptionType.BOOLEAN;
71
+ default: true;
72
+ restartNeeded: true;
73
+ };
74
+ roleGradients: {
75
+ readonly label: string;
76
+ readonly description: string;
77
+ type: OptionType.BOOLEAN;
78
+ default: true;
79
+ restartNeeded: true;
80
+ };
81
+ }>, {}>;
8
82
  readonly displayDescription: string;
9
83
  patches: ({
10
84
  find: string;
85
+ predicate: () => boolean;
11
86
  all: true;
12
87
  noWarn: true;
13
88
  replacement: {
@@ -16,6 +91,7 @@ declare const _default: {
16
91
  };
17
92
  } | {
18
93
  find: string;
94
+ predicate: () => boolean;
19
95
  replacement: {
20
96
  match: RegExp;
21
97
  replace: string;
@@ -6,6 +6,37 @@ declare const _default: {
6
6
  id: bigint;
7
7
  }[];
8
8
  description: string;
9
+ settings: import("../../utils/types").DefinedSettings<{
10
+ bothStyles: {
11
+ readonly label: string;
12
+ readonly description: string;
13
+ type: OptionType.BOOLEAN;
14
+ restartNeeded: true;
15
+ default: false;
16
+ };
17
+ copyRoleColorInProfilePopout: {
18
+ readonly label: string;
19
+ readonly description: string;
20
+ type: OptionType.BOOLEAN;
21
+ restartNeeded: true;
22
+ default: false;
23
+ };
24
+ }, import("../../utils/types").SettingsChecks<{
25
+ bothStyles: {
26
+ readonly label: string;
27
+ readonly description: string;
28
+ type: OptionType.BOOLEAN;
29
+ restartNeeded: true;
30
+ default: false;
31
+ };
32
+ copyRoleColorInProfilePopout: {
33
+ readonly label: string;
34
+ readonly description: string;
35
+ type: OptionType.BOOLEAN;
36
+ restartNeeded: true;
37
+ default: false;
38
+ };
39
+ }>, {}>;
9
40
  readonly displayDescription: string;
10
41
  patches: ({
11
42
  find: string;
@@ -20,28 +51,12 @@ declare const _default: {
20
51
  find: string;
21
52
  all: true;
22
53
  noWarn: true;
23
- predicate: () => any;
54
+ predicate: () => boolean;
24
55
  replacement: {
25
56
  match: RegExp;
26
57
  replace: string;
27
58
  };
28
59
  })[];
29
- options: {
30
- bothStyles: {
31
- readonly label: string;
32
- readonly description: string;
33
- type: OptionType.BOOLEAN;
34
- restartNeeded: true;
35
- default: false;
36
- };
37
- copyRoleColorInProfilePopout: {
38
- readonly label: string;
39
- readonly description: string;
40
- type: OptionType.BOOLEAN;
41
- restartNeeded: true;
42
- default: false;
43
- };
44
- };
45
60
  copyToClipBoard(color: string): void;
46
61
  } & Record<PropertyKey, any> & import("../../utils/types").Plugin;
47
62
  export default _default;
@@ -7,15 +7,7 @@ declare const _default: {
7
7
  name: string;
8
8
  id: bigint;
9
9
  }[];
10
- readonly displayDescription: string;
11
- patches: {
12
- find: string;
13
- replacement: {
14
- match: RegExp;
15
- replace: string;
16
- }[];
17
- }[];
18
- options: {
10
+ settings: import("../../utils/types").DefinedSettings<{
19
11
  blurAmount: {
20
12
  readonly label: string;
21
13
  readonly description: string;
@@ -29,7 +21,29 @@ declare const _default: {
29
21
  type: OptionType.BOOLEAN;
30
22
  default: false;
31
23
  };
32
- };
24
+ }, import("../../utils/types").SettingsChecks<{
25
+ blurAmount: {
26
+ readonly label: string;
27
+ readonly description: string;
28
+ type: OptionType.NUMBER;
29
+ default: number;
30
+ onChange: typeof setCss;
31
+ };
32
+ blurAllChannels: {
33
+ readonly label: string;
34
+ readonly description: string;
35
+ type: OptionType.BOOLEAN;
36
+ default: false;
37
+ };
38
+ }>, {}>;
39
+ readonly displayDescription: string;
40
+ patches: {
41
+ find: string;
42
+ replacement: {
43
+ match: RegExp;
44
+ replace: string;
45
+ }[];
46
+ }[];
33
47
  start(): void;
34
48
  stop(): void;
35
49
  } & Record<PropertyKey, any> & import("../../utils/types").Plugin;
@@ -7,10 +7,22 @@ declare const _default: {
7
7
  id: bigint;
8
8
  }[];
9
9
  managedStyle: string;
10
- readonly displayDescription: string;
11
- startTime: number;
12
- interval: NodeJS.Timeout | undefined;
13
- options: {
10
+ settings: import("../../utils/types").DefinedSettings<{
11
+ format: {
12
+ readonly label: string;
13
+ readonly description: string;
14
+ type: OptionType.SELECT;
15
+ readonly options: ({
16
+ label: string;
17
+ value: string;
18
+ default: boolean;
19
+ } | {
20
+ label: string;
21
+ value: string;
22
+ default?: undefined;
23
+ })[];
24
+ };
25
+ }, import("../../utils/types").SettingsChecks<{
14
26
  format: {
15
27
  readonly label: string;
16
28
  readonly description: string;
@@ -25,7 +37,10 @@ declare const _default: {
25
37
  default?: undefined;
26
38
  })[];
27
39
  };
28
- };
40
+ }>, {}>;
41
+ readonly displayDescription: string;
42
+ startTime: number;
43
+ interval: NodeJS.Timeout | undefined;
29
44
  patches: {
30
45
  find: string;
31
46
  replacement: {
@@ -1,8 +1,9 @@
1
1
  import { ChannelTabsProps } from "../util";
2
+ import { JSX } from "react";
2
3
  export declare const NotificationDot: ({ channelIds }: {
3
4
  channelIds: string[];
4
- }) => import("react").JSX.Element | null;
5
+ }) => JSX.Element | null;
5
6
  export default function ChannelTab(props: ChannelTabsProps & {
6
7
  index: number;
7
- }): import("react").JSX.Element;
8
- export declare const PreviewTab: (props: ChannelTabsProps) => import("react").JSX.Element;
8
+ }): JSX.Element;
9
+ export declare const PreviewTab: (props: ChannelTabsProps) => JSX.Element;
@@ -77,6 +77,20 @@ declare const _default: {
77
77
  default: false;
78
78
  restartNeeded: false;
79
79
  };
80
+ tabWidthScale: {
81
+ readonly label: string;
82
+ readonly description: string;
83
+ type: import("../../utils/types").OptionType.NUMBER;
84
+ default: number;
85
+ hidden: true;
86
+ restartNeeded: false;
87
+ };
88
+ renderAllTabs: {
89
+ type: import("../../utils/types").OptionType.BOOLEAN;
90
+ description: string;
91
+ default: false;
92
+ restartNeeded: false;
93
+ };
80
94
  switchToExistingTab: {
81
95
  readonly label: string;
82
96
  readonly description: string;
@@ -225,6 +239,27 @@ declare const _default: {
225
239
  default: true;
226
240
  hidden: true;
227
241
  };
242
+ animationTabPositioning: {
243
+ readonly label: string;
244
+ readonly description: string;
245
+ type: import("../../utils/types").OptionType.BOOLEAN;
246
+ default: true;
247
+ hidden: true;
248
+ };
249
+ animationResizeHandle: {
250
+ readonly label: string;
251
+ readonly description: string;
252
+ type: import("../../utils/types").OptionType.BOOLEAN;
253
+ default: true;
254
+ hidden: true;
255
+ };
256
+ animationQuestsActive: {
257
+ readonly label: string;
258
+ readonly description: string;
259
+ type: import("../../utils/types").OptionType.BOOLEAN;
260
+ default: true;
261
+ hidden: true;
262
+ };
228
263
  compactAutoExpandSelected: {
229
264
  readonly label: string;
230
265
  readonly description: string;
@@ -232,6 +267,13 @@ declare const _default: {
232
267
  default: true;
233
268
  restartNeeded: false;
234
269
  };
270
+ compactAutoExpandOnHover: {
271
+ readonly label: string;
272
+ readonly description: string;
273
+ type: import("../../utils/types").OptionType.BOOLEAN;
274
+ default: true;
275
+ restartNeeded: false;
276
+ };
235
277
  openInNewTabAutoSwitch: {
236
278
  readonly label: string;
237
279
  readonly description: string;
@@ -239,6 +281,43 @@ declare const _default: {
239
281
  default: true;
240
282
  restartNeeded: false;
241
283
  };
284
+ bookmarksIndependentFromTabs: {
285
+ readonly label: string;
286
+ readonly description: string;
287
+ type: import("../../utils/types").OptionType.BOOLEAN;
288
+ default: true;
289
+ restartNeeded: false;
290
+ };
291
+ showResizeHandle: {
292
+ readonly label: string;
293
+ readonly description: string;
294
+ type: import("../../utils/types").OptionType.BOOLEAN;
295
+ default: true;
296
+ restartNeeded: false;
297
+ };
298
+ openNewTabsInCompactMode: {
299
+ readonly label: string;
300
+ readonly description: string;
301
+ type: import("../../utils/types").OptionType.BOOLEAN;
302
+ default: false;
303
+ restartNeeded: false;
304
+ };
305
+ oneTabPerServer: {
306
+ readonly label: string;
307
+ readonly description: string;
308
+ type: import("../../utils/types").OptionType.BOOLEAN;
309
+ default: false;
310
+ restartNeeded: false;
311
+ };
312
+ maxOpenTabs: {
313
+ readonly label: string;
314
+ readonly description: string;
315
+ type: import("../../utils/types").OptionType.SLIDER;
316
+ markers: number[];
317
+ default: number;
318
+ stickToMarkers: true;
319
+ restartNeeded: false;
320
+ };
242
321
  }, import("../../utils/types").SettingsChecks<{
243
322
  onStartup: {
244
323
  readonly label: string;
@@ -292,6 +371,20 @@ declare const _default: {
292
371
  default: false;
293
372
  restartNeeded: false;
294
373
  };
374
+ tabWidthScale: {
375
+ readonly label: string;
376
+ readonly description: string;
377
+ type: import("../../utils/types").OptionType.NUMBER;
378
+ default: number;
379
+ hidden: true;
380
+ restartNeeded: false;
381
+ };
382
+ renderAllTabs: {
383
+ type: import("../../utils/types").OptionType.BOOLEAN;
384
+ description: string;
385
+ default: false;
386
+ restartNeeded: false;
387
+ };
295
388
  switchToExistingTab: {
296
389
  readonly label: string;
297
390
  readonly description: string;
@@ -440,6 +533,27 @@ declare const _default: {
440
533
  default: true;
441
534
  hidden: true;
442
535
  };
536
+ animationTabPositioning: {
537
+ readonly label: string;
538
+ readonly description: string;
539
+ type: import("../../utils/types").OptionType.BOOLEAN;
540
+ default: true;
541
+ hidden: true;
542
+ };
543
+ animationResizeHandle: {
544
+ readonly label: string;
545
+ readonly description: string;
546
+ type: import("../../utils/types").OptionType.BOOLEAN;
547
+ default: true;
548
+ hidden: true;
549
+ };
550
+ animationQuestsActive: {
551
+ readonly label: string;
552
+ readonly description: string;
553
+ type: import("../../utils/types").OptionType.BOOLEAN;
554
+ default: true;
555
+ hidden: true;
556
+ };
443
557
  compactAutoExpandSelected: {
444
558
  readonly label: string;
445
559
  readonly description: string;
@@ -447,6 +561,13 @@ declare const _default: {
447
561
  default: true;
448
562
  restartNeeded: false;
449
563
  };
564
+ compactAutoExpandOnHover: {
565
+ readonly label: string;
566
+ readonly description: string;
567
+ type: import("../../utils/types").OptionType.BOOLEAN;
568
+ default: true;
569
+ restartNeeded: false;
570
+ };
450
571
  openInNewTabAutoSwitch: {
451
572
  readonly label: string;
452
573
  readonly description: string;
@@ -454,8 +575,51 @@ declare const _default: {
454
575
  default: true;
455
576
  restartNeeded: false;
456
577
  };
578
+ bookmarksIndependentFromTabs: {
579
+ readonly label: string;
580
+ readonly description: string;
581
+ type: import("../../utils/types").OptionType.BOOLEAN;
582
+ default: true;
583
+ restartNeeded: false;
584
+ };
585
+ showResizeHandle: {
586
+ readonly label: string;
587
+ readonly description: string;
588
+ type: import("../../utils/types").OptionType.BOOLEAN;
589
+ default: true;
590
+ restartNeeded: false;
591
+ };
592
+ openNewTabsInCompactMode: {
593
+ readonly label: string;
594
+ readonly description: string;
595
+ type: import("../../utils/types").OptionType.BOOLEAN;
596
+ default: false;
597
+ restartNeeded: false;
598
+ };
599
+ oneTabPerServer: {
600
+ readonly label: string;
601
+ readonly description: string;
602
+ type: import("../../utils/types").OptionType.BOOLEAN;
603
+ default: false;
604
+ restartNeeded: false;
605
+ };
606
+ maxOpenTabs: {
607
+ readonly label: string;
608
+ readonly description: string;
609
+ type: import("../../utils/types").OptionType.SLIDER;
610
+ markers: number[];
611
+ default: number;
612
+ stickToMarkers: true;
613
+ restartNeeded: false;
614
+ };
457
615
  }>, {}>;
458
616
  containerHeight: number;
617
+ flux: {
618
+ CHANNEL_SELECT(data: {
619
+ channelId: string | null;
620
+ guildId: string | null;
621
+ }): void;
622
+ };
459
623
  render({ currentChannel, children }: {
460
624
  currentChannel: BasicChannelTabsProps;
461
625
  children: JSX.Element;