@plexcord/types 1.17.5 → 1.17.7

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 (39) hide show
  1. package/api/Settings.d.ts +1 -0
  2. package/package.json +1 -1
  3. package/plugins/betterRoleDot/index.d.ts +32 -17
  4. package/plugins/blurNsfw/index.d.ts +24 -10
  5. package/plugins/callTimer/index.d.ts +20 -5
  6. package/plugins/customRPC/index.d.ts +8 -0
  7. package/plugins/expandedUserTags/index.d.ts +0 -1
  8. package/plugins/expandedUserTags/types.d.ts +1 -0
  9. package/plugins/findReply/index.d.ts +27 -5
  10. package/plugins/friendshipRanks/icons.d.ts +7 -7
  11. package/plugins/githubRepos/components/GitHubReposComponent.d.ts +1 -0
  12. package/plugins/instantScreenshare/index.d.ts +38 -2
  13. package/plugins/instantScreenshare/utils.d.ts +36 -0
  14. package/plugins/loginWithQR/images.d.ts +4 -4
  15. package/plugins/messageLinkEmbeds/index.d.ts +27 -16
  16. package/plugins/messageLinkTooltip/index.d.ts +21 -12
  17. package/plugins/messageLogger/index.d.ts +53 -28
  18. package/plugins/messageLoggerEnhanced/components/LogsModal.d.ts +3 -3
  19. package/plugins/messageLoggerEnhanced/index.d.ts +129 -58
  20. package/plugins/messageLoggerEnhanced/settings.d.ts +128 -58
  21. package/plugins/messageTags/index.d.ts +23 -16
  22. package/plugins/moreCommands/index.d.ts +75 -1
  23. package/plugins/oneko/index.d.ts +18 -0
  24. package/utils/constants.d.ts +4 -0
  25. package/plugins/bigFileUpload/index.d.ts +0 -331
  26. package/plugins/bigFileUpload/native.d.ts +0 -4
  27. package/plugins/identity.desktop/index.d.ts +0 -19
  28. package/plugins/identity.desktop/native.d.ts +0 -2
  29. package/plugins/imagePreview/index.d.ts +0 -150
  30. package/plugins/imagePreview/settings.d.ts +0 -142
  31. package/plugins/mediaDownloader.desktop/DependencyModal.d.ts +0 -9
  32. package/plugins/mediaDownloader.desktop/index.d.ts +0 -164
  33. package/plugins/mediaDownloader.desktop/native.d.ts +0 -27
  34. package/plugins/purgeMessages/index.d.ts +0 -33
  35. package/plugins/repeatMessage/index.d.ts +0 -15
  36. package/plugins/zipPreview/FilePreview.d.ts +0 -1
  37. package/plugins/zipPreview/ZipPreview.d.ts +0 -6
  38. package/plugins/zipPreview/index.d.ts +0 -25
  39. package/plugins/zipPreview/unzip.d.ts +0 -12
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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@plexcord/types",
3
3
  "private": false,
4
- "version": "1.17.5",
4
+ "version": "1.17.7",
5
5
  "description": "",
6
6
  "types": "index.d.ts",
7
7
  "scripts": {
@@ -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: {
@@ -21,7 +21,9 @@ export declare const settings: import("../../utils/types").DefinedSettings<{
21
21
  appID?: string;
22
22
  appName?: string;
23
23
  details?: string;
24
+ detailsURL?: string;
24
25
  state?: string;
26
+ stateURL?: string;
25
27
  type?: ActivityType;
26
28
  streamLink?: string;
27
29
  timestampMode?: TimestampMode;
@@ -29,8 +31,10 @@ export declare const settings: import("../../utils/types").DefinedSettings<{
29
31
  endTime?: number;
30
32
  imageBig?: string;
31
33
  imageBigTooltip?: string;
34
+ imageBigURL?: string;
32
35
  imageSmall?: string;
33
36
  imageSmallTooltip?: string;
37
+ imageSmallURL?: string;
34
38
  buttonOneText?: string;
35
39
  buttonOneURL?: string;
36
40
  buttonTwoText?: string;
@@ -63,7 +67,9 @@ declare const _default: {
63
67
  appID?: string;
64
68
  appName?: string;
65
69
  details?: string;
70
+ detailsURL?: string;
66
71
  state?: string;
72
+ stateURL?: string;
67
73
  type?: ActivityType;
68
74
  streamLink?: string;
69
75
  timestampMode?: TimestampMode;
@@ -71,8 +77,10 @@ declare const _default: {
71
77
  endTime?: number;
72
78
  imageBig?: string;
73
79
  imageBigTooltip?: string;
80
+ imageBigURL?: string;
74
81
  imageSmall?: string;
75
82
  imageSmallTooltip?: string;
83
+ imageSmallURL?: string;
76
84
  buttonOneText?: string;
77
85
  buttonOneURL?: string;
78
86
  buttonTwoText?: string;
@@ -8,7 +8,6 @@ declare const _default: {
8
8
  id: bigint;
9
9
  }[];
10
10
  dependencies: string[];
11
- tags: string[];
12
11
  settings: import("../../utils/types").DefinedSettings<{
13
12
  dontShowForBots: {
14
13
  readonly label: string;
@@ -11,6 +11,7 @@ export type ITag = {
11
11
  });
12
12
  export interface TagSetting {
13
13
  text: string;
14
+ description?: string;
14
15
  showInChat: boolean;
15
16
  showInNotChat: boolean;
16
17
  }
@@ -7,10 +7,7 @@ declare const _default: {
7
7
  name: string;
8
8
  id: bigint;
9
9
  }[];
10
- readonly displayDescription: string;
11
- start(): void;
12
- stop(): void;
13
- options: {
10
+ settings: import("../../utils/types").DefinedSettings<{
14
11
  includePings: {
15
12
  readonly label: string;
16
13
  readonly description: string;
@@ -32,6 +29,31 @@ declare const _default: {
32
29
  default: true;
33
30
  restartNeeded: true;
34
31
  };
35
- };
32
+ }, import("../../utils/types").SettingsChecks<{
33
+ includePings: {
34
+ readonly label: string;
35
+ readonly description: string;
36
+ type: OptionType.BOOLEAN;
37
+ default: false;
38
+ restartNeeded: false;
39
+ };
40
+ includeAuthor: {
41
+ readonly label: string;
42
+ readonly description: string;
43
+ type: OptionType.BOOLEAN;
44
+ default: false;
45
+ restartNeeded: false;
46
+ };
47
+ hideButtonIfNoReply: {
48
+ readonly label: string;
49
+ readonly description: string;
50
+ type: OptionType.BOOLEAN;
51
+ default: true;
52
+ restartNeeded: true;
53
+ };
54
+ }>, {}>;
55
+ readonly displayDescription: string;
56
+ start(): void;
57
+ stop(): void;
36
58
  } & Record<PropertyKey, any> & import("../../utils/types").Plugin;
37
59
  export default _default;
@@ -1,7 +1,7 @@
1
- export declare function sproutIcon(props: any): import("react").JSX.Element;
2
- export declare function bloomingIcon(props: any): import("react").JSX.Element;
3
- export declare function burningIcon(props: any): import("react").JSX.Element;
4
- export declare function fighterIcon(props: any): import("react").JSX.Element;
5
- export declare function starIcon(props: any): import("react").JSX.Element;
6
- export declare function royalIcon(props: any): import("react").JSX.Element;
7
- export declare function bestiesIcon(props: any): import("react").JSX.Element;
1
+ export declare function sproutIcon(): import("react").JSX.Element;
2
+ export declare function bloomingIcon(): import("react").JSX.Element;
3
+ export declare function burningIcon(): import("react").JSX.Element;
4
+ export declare function fighterIcon(): import("react").JSX.Element;
5
+ export declare function starIcon(): import("react").JSX.Element;
6
+ export declare function royalIcon(): import("react").JSX.Element;
7
+ export declare function bestiesIcon(): import("react").JSX.Element;
@@ -1,3 +1,4 @@
1
+ export declare const cl: (...args: (string | false | 0 | string[] | Record<string, unknown> | null | undefined)[]) => string;
1
2
  export declare function GitHubReposComponent({ id, theme }: {
2
3
  id: string;
3
4
  theme: string;
@@ -7,24 +7,60 @@ declare const _default: {
7
7
  name: string;
8
8
  id: bigint;
9
9
  }[];
10
+ getCurrentMedia: typeof getCurrentMedia;
10
11
  settings: import("../../utils/types").DefinedSettings<{
11
12
  streamMedia: {
12
13
  type: import("../../utils/types").OptionType.COMPONENT;
13
14
  component: () => import("react").JSX.Element;
14
15
  };
16
+ includeVideoDevices: {
17
+ readonly label: string;
18
+ readonly description: string;
19
+ type: import("../../utils/types").OptionType.BOOLEAN;
20
+ default: false;
21
+ };
22
+ autoMute: {
23
+ readonly label: string;
24
+ readonly description: string;
25
+ type: import("../../utils/types").OptionType.BOOLEAN;
26
+ default: false;
27
+ };
28
+ autoDeafen: {
29
+ readonly label: string;
30
+ readonly description: string;
31
+ type: import("../../utils/types").OptionType.BOOLEAN;
32
+ default: false;
33
+ };
15
34
  }, import("../../utils/types").SettingsChecks<{
16
35
  streamMedia: {
17
36
  type: import("../../utils/types").OptionType.COMPONENT;
18
37
  component: () => import("react").JSX.Element;
19
38
  };
39
+ includeVideoDevices: {
40
+ readonly label: string;
41
+ readonly description: string;
42
+ type: import("../../utils/types").OptionType.BOOLEAN;
43
+ default: false;
44
+ };
45
+ autoMute: {
46
+ readonly label: string;
47
+ readonly description: string;
48
+ type: import("../../utils/types").OptionType.BOOLEAN;
49
+ default: false;
50
+ };
51
+ autoDeafen: {
52
+ readonly label: string;
53
+ readonly description: string;
54
+ type: import("../../utils/types").OptionType.BOOLEAN;
55
+ default: false;
56
+ };
20
57
  }>, {}>;
21
- hidden: boolean;
22
58
  readonly displayDescription: string;
59
+ settingsAboutComponent: () => import("react").JSX.Element;
23
60
  flux: {
24
61
  VOICE_STATE_UPDATES({ voiceStates }: {
25
62
  voiceStates: VoiceState[];
26
63
  }): Promise<void>;
27
64
  };
28
- getCurrentMedia: typeof getCurrentMedia;
29
65
  } & Record<PropertyKey, any> & import("../../utils/types").Plugin;
30
66
  export default _default;
@@ -4,11 +4,47 @@ export declare const settings: import("../../utils/types").DefinedSettings<{
4
4
  type: OptionType.COMPONENT;
5
5
  component: typeof SettingSection;
6
6
  };
7
+ includeVideoDevices: {
8
+ readonly label: string;
9
+ readonly description: string;
10
+ type: OptionType.BOOLEAN;
11
+ default: false;
12
+ };
13
+ autoMute: {
14
+ readonly label: string;
15
+ readonly description: string;
16
+ type: OptionType.BOOLEAN;
17
+ default: false;
18
+ };
19
+ autoDeafen: {
20
+ readonly label: string;
21
+ readonly description: string;
22
+ type: OptionType.BOOLEAN;
23
+ default: false;
24
+ };
7
25
  }, import("../../utils/types").SettingsChecks<{
8
26
  streamMedia: {
9
27
  type: OptionType.COMPONENT;
10
28
  component: typeof SettingSection;
11
29
  };
30
+ includeVideoDevices: {
31
+ readonly label: string;
32
+ readonly description: string;
33
+ type: OptionType.BOOLEAN;
34
+ default: false;
35
+ };
36
+ autoMute: {
37
+ readonly label: string;
38
+ readonly description: string;
39
+ type: OptionType.BOOLEAN;
40
+ default: false;
41
+ };
42
+ autoDeafen: {
43
+ readonly label: string;
44
+ readonly description: string;
45
+ type: OptionType.BOOLEAN;
46
+ default: false;
47
+ };
12
48
  }>, {}>;
13
49
  export declare function getCurrentMedia(): Promise<any>;
14
50
  declare function SettingSection(): import("react").JSX.Element;
@@ -1,9 +1,9 @@
1
1
  export declare const images: {
2
- readonly cross: "https://i.imgur.com/XxRnu3b.png";
2
+ readonly cross: "https://github.com/MutanPlex/random-files/raw/main/icons/loginwithqr/cross.png";
3
3
  readonly deviceImage: {
4
- readonly success: "https://github.com/nexpid/Themelings/raw/data/icons/images/native/img_remote_auth_succeeded.png";
5
- readonly notFound: "https://github.com/nexpid/Themelings/raw/data/icons/images/native/img_remote_auth_not_found.png";
6
- readonly loading: "https://github.com/nexpid/Themelings/raw/data/icons/images/native/img_remote_auth_loaded.png";
4
+ readonly success: "https://github.com/MutanPlex/random-files/raw/main/icons/loginwithqr/success.png";
5
+ readonly notFound: "https://github.com/MutanPlex/random-files/raw/main/icons/loginwithqr/not-found.png";
6
+ readonly loading: "https://github.com/MutanPlex/random-files/raw/main/icons/loginwithqr/loaded.png";
7
7
  };
8
8
  };
9
9
  export declare let unload: () => void;
@@ -8,31 +8,35 @@ declare const _default: {
8
8
  id: bigint;
9
9
  }[];
10
10
  dependencies: string[];
11
+ readonly displayDescription: string;
11
12
  settings: import("../../utils/types").DefinedSettings<{
12
13
  messageBackgroundColor: {
13
- description: string;
14
+ readonly label: string;
15
+ readonly description: string;
14
16
  type: OptionType.BOOLEAN;
15
17
  };
16
18
  automodEmbeds: {
17
- description: string;
19
+ readonly label: string;
20
+ readonly description: string;
18
21
  type: OptionType.SELECT;
19
- options: ({
22
+ readonly options: ({
20
23
  label: string;
21
24
  value: string;
22
25
  default?: undefined;
23
26
  } | {
24
27
  label: string;
25
28
  value: string;
26
- default: true;
29
+ default: boolean;
27
30
  })[];
28
31
  };
29
32
  listMode: {
30
- description: string;
33
+ readonly label: string;
34
+ readonly description: string;
31
35
  type: OptionType.SELECT;
32
- options: ({
36
+ readonly options: ({
33
37
  label: string;
34
38
  value: string;
35
- default: true;
39
+ default: boolean;
36
40
  } | {
37
41
  label: string;
38
42
  value: string;
@@ -40,39 +44,44 @@ declare const _default: {
40
44
  })[];
41
45
  };
42
46
  idList: {
43
- description: string;
47
+ readonly label: string;
48
+ readonly description: string;
44
49
  type: OptionType.STRING;
45
50
  default: string;
46
51
  };
47
52
  clearMessageCache: {
53
+ readonly label: string;
48
54
  type: OptionType.COMPONENT;
49
55
  component: () => JSX.Element;
50
56
  };
51
57
  }, import("../../utils/types").SettingsChecks<{
52
58
  messageBackgroundColor: {
53
- description: string;
59
+ readonly label: string;
60
+ readonly description: string;
54
61
  type: OptionType.BOOLEAN;
55
62
  };
56
63
  automodEmbeds: {
57
- description: string;
64
+ readonly label: string;
65
+ readonly description: string;
58
66
  type: OptionType.SELECT;
59
- options: ({
67
+ readonly options: ({
60
68
  label: string;
61
69
  value: string;
62
70
  default?: undefined;
63
71
  } | {
64
72
  label: string;
65
73
  value: string;
66
- default: true;
74
+ default: boolean;
67
75
  })[];
68
76
  };
69
77
  listMode: {
70
- description: string;
78
+ readonly label: string;
79
+ readonly description: string;
71
80
  type: OptionType.SELECT;
72
- options: ({
81
+ readonly options: ({
73
82
  label: string;
74
83
  value: string;
75
- default: true;
84
+ default: boolean;
76
85
  } | {
77
86
  label: string;
78
87
  value: string;
@@ -80,11 +89,13 @@ declare const _default: {
80
89
  })[];
81
90
  };
82
91
  idList: {
83
- description: string;
92
+ readonly label: string;
93
+ readonly description: string;
84
94
  type: OptionType.STRING;
85
95
  default: string;
86
96
  };
87
97
  clearMessageCache: {
98
+ readonly label: string;
88
99
  type: OptionType.COMPONENT;
89
100
  component: () => JSX.Element;
90
101
  };
@@ -7,32 +7,37 @@ declare const _default: {
7
7
  name: string;
8
8
  id: bigint;
9
9
  }[];
10
+ readonly displayDescription: string;
10
11
  settings: import("../../utils/types").DefinedSettings<{
11
12
  onLink: {
12
- description: string;
13
+ readonly label: string;
14
+ readonly description: string;
13
15
  type: OptionType.BOOLEAN;
14
16
  default: true;
15
17
  restartNeeded: true;
16
18
  };
17
19
  onReply: {
18
- description: string;
20
+ readonly label: string;
21
+ readonly description: string;
19
22
  type: OptionType.BOOLEAN;
20
23
  default: true;
21
24
  restartNeeded: true;
22
25
  };
23
26
  onForward: {
24
- description: string;
27
+ readonly label: string;
28
+ readonly description: string;
25
29
  type: OptionType.BOOLEAN;
26
30
  default: true;
27
31
  restartNeeded: true;
28
32
  };
29
33
  display: {
30
- description: string;
34
+ readonly label: string;
35
+ readonly description: string;
31
36
  type: OptionType.SELECT;
32
- options: ({
37
+ readonly options: ({
33
38
  label: string;
34
39
  value: string;
35
- default: true;
40
+ default: boolean;
36
41
  } | {
37
42
  label: string;
38
43
  value: string;
@@ -41,30 +46,34 @@ declare const _default: {
41
46
  };
42
47
  }, import("../../utils/types").SettingsChecks<{
43
48
  onLink: {
44
- description: string;
49
+ readonly label: string;
50
+ readonly description: string;
45
51
  type: OptionType.BOOLEAN;
46
52
  default: true;
47
53
  restartNeeded: true;
48
54
  };
49
55
  onReply: {
50
- description: string;
56
+ readonly label: string;
57
+ readonly description: string;
51
58
  type: OptionType.BOOLEAN;
52
59
  default: true;
53
60
  restartNeeded: true;
54
61
  };
55
62
  onForward: {
56
- description: string;
63
+ readonly label: string;
64
+ readonly description: string;
57
65
  type: OptionType.BOOLEAN;
58
66
  default: true;
59
67
  restartNeeded: true;
60
68
  };
61
69
  display: {
62
- description: string;
70
+ readonly label: string;
71
+ readonly description: string;
63
72
  type: OptionType.SELECT;
64
- options: ({
73
+ readonly options: ({
65
74
  label: string;
66
75
  value: string;
67
- default: true;
76
+ default: boolean;
68
77
  } | {
69
78
  label: string;
70
79
  value: string;