@plexcord/types 1.17.0 → 1.17.2

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 (32) hide show
  1. package/package.json +3 -3
  2. package/plugins/betterSettings/index.d.ts +7 -10
  3. package/plugins/fakeProfileThemes/index.d.ts +1 -1
  4. package/plugins/hideChatButtons/index.d.ts +9 -4
  5. package/plugins/hideServers/index.d.ts +13 -6
  6. package/plugins/hideServers/settings.d.ts +12 -6
  7. package/plugins/holyNotes/index.d.ts +3 -2
  8. package/plugins/homeTyping/index.d.ts +1 -0
  9. package/plugins/iLoveSpam/index.d.ts +1 -0
  10. package/plugins/identity.desktop/index.d.ts +1 -0
  11. package/plugins/ignoreActivities/index.d.ts +35 -16
  12. package/plugins/ignoreCalls/index.d.ts +5 -2
  13. package/plugins/ignoreTerms/index.d.ts +1 -0
  14. package/plugins/imageFilename/index.d.ts +5 -2
  15. package/plugins/imageLink/index.d.ts +1 -0
  16. package/plugins/imagePreview/index.d.ts +41 -20
  17. package/plugins/imagePreview/settings.d.ts +40 -20
  18. package/plugins/imageZoom/components/Magnifier.d.ts +0 -2
  19. package/plugins/imageZoom/index.d.ts +65 -33
  20. package/plugins/imgToGif/index.d.ts +3 -0
  21. package/plugins/implicitRelationships/index.d.ts +4 -1
  22. package/plugins/inRole/index.d.ts +3 -0
  23. package/plugins/instantScreenshare/index.d.ts +1 -0
  24. package/plugins/invisibleChat.desktop/index.d.ts +5 -2
  25. package/plugins/musicControls/tidal/lyrics/api.d.ts +1 -1
  26. package/plugins/zipPreview/FilePreview.d.ts +1 -0
  27. package/plugins/zipPreview/ZipPreview.d.ts +6 -0
  28. package/plugins/zipPreview/index.d.ts +25 -0
  29. package/plugins/zipPreview/unzip.d.ts +12 -0
  30. package/webpack/common/components.d.ts +3 -2
  31. package/webpack/common/utils.d.ts +2 -1
  32. /package/plugins/{hideAttachments → hideMedia}/index.d.ts +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@plexcord/types",
3
3
  "private": false,
4
- "version": "1.17.0",
4
+ "version": "1.17.2",
5
5
  "description": "",
6
6
  "types": "index.d.ts",
7
7
  "scripts": {
@@ -26,7 +26,7 @@
26
26
  "type-fest": "^4.35.0"
27
27
  },
28
28
  "peerDependencies": {
29
- "@types/react": "18.3.1",
30
- "@types/react-dom": "18.3.1"
29
+ "@types/react": "19.2.1",
30
+ "@types/react-dom": "19.2.0"
31
31
  }
32
32
  }
@@ -63,14 +63,6 @@ declare const _default: {
63
63
  }>, {}>;
64
64
  readonly displayDescription: string;
65
65
  patches: ({
66
- find: string;
67
- replacement: {
68
- match: RegExp;
69
- replace: string;
70
- predicate: () => boolean;
71
- }[];
72
- predicate?: undefined;
73
- } | {
74
66
  find: string;
75
67
  replacement: {
76
68
  match: RegExp;
@@ -86,10 +78,15 @@ declare const _default: {
86
78
  predicate: () => boolean;
87
79
  } | {
88
80
  find: string;
89
- replacement: {
81
+ replacement: ({
90
82
  match: RegExp;
91
83
  replace: string;
92
- }[];
84
+ predicate: () => boolean;
85
+ } | {
86
+ match: RegExp;
87
+ replace: string;
88
+ predicate?: undefined;
89
+ })[];
93
90
  predicate?: undefined;
94
91
  })[];
95
92
  PluginsSubmenu: typeof PluginsSubmenu;
@@ -53,7 +53,7 @@ declare const _default: {
53
53
  })[];
54
54
  };
55
55
  }>, {}>;
56
- colorDecodeHook(user: UserProfile): UserProfile;
56
+ colorDecodeHook(user: UserProfile): any;
57
57
  addCopy3y3Button: import("react").FunctionComponent<Colors>;
58
58
  } & Record<PropertyKey, any> & import("../../utils/types").Plugin;
59
59
  export default _default;
@@ -6,13 +6,15 @@ declare const _default: {
6
6
  description: string;
7
7
  settings: import("../../utils/types").DefinedSettings<{
8
8
  Color: {
9
+ readonly label: string;
10
+ readonly description: string;
9
11
  type: OptionType.BOOLEAN;
10
- description: string;
11
12
  default: false;
12
13
  };
13
14
  Open: {
15
+ readonly label: string;
16
+ readonly description: string;
14
17
  type: OptionType.BOOLEAN;
15
- description: string;
16
18
  default: false;
17
19
  onChange: (store: {
18
20
  open: boolean;
@@ -20,13 +22,15 @@ declare const _default: {
20
22
  };
21
23
  }, import("../../utils/types").SettingsChecks<{
22
24
  Color: {
25
+ readonly label: string;
26
+ readonly description: string;
23
27
  type: OptionType.BOOLEAN;
24
- description: string;
25
28
  default: false;
26
29
  };
27
30
  Open: {
31
+ readonly label: string;
32
+ readonly description: string;
28
33
  type: OptionType.BOOLEAN;
29
- description: string;
30
34
  default: false;
31
35
  onChange: (store: {
32
36
  open: boolean;
@@ -37,6 +41,7 @@ declare const _default: {
37
41
  name: string;
38
42
  id: bigint;
39
43
  }[];
44
+ readonly displayDescription: string;
40
45
  patches: {
41
46
  find: string;
42
47
  replacement: {
@@ -22,6 +22,7 @@ declare const _default: {
22
22
  id: bigint;
23
23
  }[];
24
24
  tags: string[];
25
+ readonly displayDescription: string;
25
26
  dependencies: string[];
26
27
  contextMenus: {
27
28
  "guild-header-popout": NavContextMenuPatchCallback;
@@ -42,36 +43,42 @@ declare const _default: {
42
43
  })[];
43
44
  settings: import("../../utils/types").DefinedSettings<{
44
45
  showIndicator: {
46
+ readonly label: string;
47
+ readonly description: string;
45
48
  type: import("../../utils/types").OptionType.BOOLEAN;
46
- description: string;
47
49
  default: true;
48
50
  onChange: (val: any) => void;
49
51
  };
50
52
  guildsList: {
53
+ readonly label: string;
54
+ readonly description: string;
51
55
  type: import("../../utils/types").OptionType.COMPONENT;
52
- description: string;
53
56
  component: () => import("react").JSX.Element;
54
57
  };
55
58
  resetHidden: {
59
+ readonly label: string;
60
+ readonly description: string;
56
61
  type: import("../../utils/types").OptionType.COMPONENT;
57
- description: string;
58
62
  component: () => import("react").JSX.Element;
59
63
  };
60
64
  }, import("../../utils/types").SettingsChecks<{
61
65
  showIndicator: {
66
+ readonly label: string;
67
+ readonly description: string;
62
68
  type: import("../../utils/types").OptionType.BOOLEAN;
63
- description: string;
64
69
  default: true;
65
70
  onChange: (val: any) => void;
66
71
  };
67
72
  guildsList: {
73
+ readonly label: string;
74
+ readonly description: string;
68
75
  type: import("../../utils/types").OptionType.COMPONENT;
69
- description: string;
70
76
  component: () => import("react").JSX.Element;
71
77
  };
72
78
  resetHidden: {
79
+ readonly label: string;
80
+ readonly description: string;
73
81
  type: import("../../utils/types").OptionType.COMPONENT;
74
- description: string;
75
82
  component: () => import("react").JSX.Element;
76
83
  };
77
84
  }>, {}>;
@@ -1,36 +1,42 @@
1
1
  import { OptionType } from "../../utils/types";
2
2
  declare const _default: import("../../utils/types").DefinedSettings<{
3
3
  showIndicator: {
4
+ readonly label: string;
5
+ readonly description: string;
4
6
  type: OptionType.BOOLEAN;
5
- description: string;
6
7
  default: true;
7
8
  onChange: (val: any) => void;
8
9
  };
9
10
  guildsList: {
11
+ readonly label: string;
12
+ readonly description: string;
10
13
  type: OptionType.COMPONENT;
11
- description: string;
12
14
  component: () => import("react").JSX.Element;
13
15
  };
14
16
  resetHidden: {
17
+ readonly label: string;
18
+ readonly description: string;
15
19
  type: OptionType.COMPONENT;
16
- description: string;
17
20
  component: () => import("react").JSX.Element;
18
21
  };
19
22
  }, import("../../utils/types").SettingsChecks<{
20
23
  showIndicator: {
24
+ readonly label: string;
25
+ readonly description: string;
21
26
  type: OptionType.BOOLEAN;
22
- description: string;
23
27
  default: true;
24
28
  onChange: (val: any) => void;
25
29
  };
26
30
  guildsList: {
31
+ readonly label: string;
32
+ readonly description: string;
27
33
  type: OptionType.COMPONENT;
28
- description: string;
29
34
  component: () => import("react").JSX.Element;
30
35
  };
31
36
  resetHidden: {
37
+ readonly label: string;
38
+ readonly description: string;
32
39
  type: OptionType.COMPONENT;
33
- description: string;
34
40
  component: () => import("react").JSX.Element;
35
41
  };
36
42
  }>, {}>;
@@ -9,6 +9,7 @@ declare const _default: {
9
9
  id: bigint;
10
10
  }[];
11
11
  dependencies: string[];
12
+ readonly displayDescription: string;
12
13
  patches: {
13
14
  find: string;
14
15
  replacement: {
@@ -17,8 +18,8 @@ declare const _default: {
17
18
  };
18
19
  }[];
19
20
  renderHolyNotesButton(): import("react").JSX.Element;
20
- toolboxActions: {
21
- "Open Notes"(): Promise<void>;
21
+ readonly toolboxActions: {
22
+ [x: string]: () => Promise<void>;
22
23
  };
23
24
  contextMenus: {
24
25
  message: NavContextMenuPatchCallback;
@@ -5,6 +5,7 @@ declare const _default: {
5
5
  name: string;
6
6
  id: bigint;
7
7
  }[];
8
+ readonly displayDescription: string;
8
9
  TypingIcon(): import("react").JSX.Element;
9
10
  isTyping(): boolean;
10
11
  patches: {
@@ -5,6 +5,7 @@ declare const _default: {
5
5
  name: string;
6
6
  id: bigint;
7
7
  }[];
8
+ readonly displayDescription: string;
8
9
  patches: {
9
10
  find: string;
10
11
  replacement: {
@@ -6,6 +6,7 @@ declare const _default: {
6
6
  name: string;
7
7
  id: bigint;
8
8
  }[];
9
+ readonly displayDescription: string;
9
10
  ResetCard: typeof ResetCard;
10
11
  patches: {
11
12
  find: string;
@@ -22,18 +22,21 @@ declare const _default: {
22
22
  }[];
23
23
  description: string;
24
24
  dependencies: string[];
25
+ readonly displayDescription: string;
25
26
  settings: import("../../utils/types").DefinedSettings<{
26
27
  importCustomRPC: {
28
+ readonly label: string;
27
29
  type: OptionType.COMPONENT;
28
30
  component: typeof ImportCustomRPCComponent;
29
31
  };
30
32
  listMode: {
33
+ readonly label: string;
34
+ readonly description: string;
31
35
  type: OptionType.SELECT;
32
- description: string;
33
- options: ({
36
+ readonly options: ({
34
37
  label: string;
35
38
  value: FilterMode;
36
- default: true;
39
+ default: boolean;
37
40
  } | {
38
41
  label: string;
39
42
  value: FilterMode;
@@ -42,42 +45,49 @@ declare const _default: {
42
45
  onChange: typeof recalculateActivities;
43
46
  };
44
47
  idsList: {
48
+ readonly label: string;
45
49
  type: OptionType.COMPONENT;
46
50
  default: string;
47
51
  onChange(newValue: string): void;
48
52
  component: (props: import("../../utils/types").IPluginOptionComponentProps) => import("react").JSX.Element;
49
53
  };
50
54
  ignorePlaying: {
55
+ readonly label: string;
56
+ readonly description: string;
51
57
  type: OptionType.BOOLEAN;
52
- description: string;
53
58
  default: false;
54
59
  onChange: typeof recalculateActivities;
55
60
  };
56
61
  ignoreStreaming: {
62
+ readonly label: string;
63
+ readonly description: string;
57
64
  type: OptionType.BOOLEAN;
58
- description: string;
59
65
  default: false;
60
66
  onChange: typeof recalculateActivities;
61
67
  };
62
68
  ignoreListening: {
69
+ readonly label: string;
70
+ readonly description: string;
63
71
  type: OptionType.BOOLEAN;
64
- description: string;
65
72
  default: false;
66
73
  onChange: typeof recalculateActivities;
67
74
  };
68
75
  ignoreWatching: {
76
+ readonly label: string;
77
+ readonly description: string;
69
78
  type: OptionType.BOOLEAN;
70
- description: string;
71
79
  default: false;
72
80
  onChange: typeof recalculateActivities;
73
81
  };
74
82
  ignoreCompeting: {
83
+ readonly label: string;
84
+ readonly description: string;
75
85
  type: OptionType.BOOLEAN;
76
- description: string;
77
86
  default: false;
78
87
  onChange: typeof recalculateActivities;
79
88
  };
80
89
  ignoredActivities: {
90
+ readonly label: string;
81
91
  type: OptionType.CUSTOM;
82
92
  default: IgnoredActivity[];
83
93
  onChange: typeof recalculateActivities;
@@ -85,16 +95,18 @@ declare const _default: {
85
95
  };
86
96
  }, import("../../utils/types").SettingsChecks<{
87
97
  importCustomRPC: {
98
+ readonly label: string;
88
99
  type: OptionType.COMPONENT;
89
100
  component: typeof ImportCustomRPCComponent;
90
101
  };
91
102
  listMode: {
103
+ readonly label: string;
104
+ readonly description: string;
92
105
  type: OptionType.SELECT;
93
- description: string;
94
- options: ({
106
+ readonly options: ({
95
107
  label: string;
96
108
  value: FilterMode;
97
- default: true;
109
+ default: boolean;
98
110
  } | {
99
111
  label: string;
100
112
  value: FilterMode;
@@ -103,42 +115,49 @@ declare const _default: {
103
115
  onChange: typeof recalculateActivities;
104
116
  };
105
117
  idsList: {
118
+ readonly label: string;
106
119
  type: OptionType.COMPONENT;
107
120
  default: string;
108
121
  onChange(newValue: string): void;
109
122
  component: (props: import("../../utils/types").IPluginOptionComponentProps) => import("react").JSX.Element;
110
123
  };
111
124
  ignorePlaying: {
125
+ readonly label: string;
126
+ readonly description: string;
112
127
  type: OptionType.BOOLEAN;
113
- description: string;
114
128
  default: false;
115
129
  onChange: typeof recalculateActivities;
116
130
  };
117
131
  ignoreStreaming: {
132
+ readonly label: string;
133
+ readonly description: string;
118
134
  type: OptionType.BOOLEAN;
119
- description: string;
120
135
  default: false;
121
136
  onChange: typeof recalculateActivities;
122
137
  };
123
138
  ignoreListening: {
139
+ readonly label: string;
140
+ readonly description: string;
124
141
  type: OptionType.BOOLEAN;
125
- description: string;
126
142
  default: false;
127
143
  onChange: typeof recalculateActivities;
128
144
  };
129
145
  ignoreWatching: {
146
+ readonly label: string;
147
+ readonly description: string;
130
148
  type: OptionType.BOOLEAN;
131
- description: string;
132
149
  default: false;
133
150
  onChange: typeof recalculateActivities;
134
151
  };
135
152
  ignoreCompeting: {
153
+ readonly label: string;
154
+ readonly description: string;
136
155
  type: OptionType.BOOLEAN;
137
- description: string;
138
156
  default: false;
139
157
  onChange: typeof recalculateActivities;
140
158
  };
141
159
  ignoredActivities: {
160
+ readonly label: string;
142
161
  type: OptionType.CUSTOM;
143
162
  default: IgnoredActivity[];
144
163
  onChange: typeof recalculateActivities;
@@ -9,21 +9,24 @@ declare const _default: {
9
9
  }[];
10
10
  settings: import("../../utils/types").DefinedSettings<{
11
11
  ignoreTimeout: {
12
+ readonly label: string;
13
+ readonly description: string;
12
14
  type: OptionType.SLIDER;
13
- description: string;
14
15
  markers: number[];
15
16
  default: number;
16
17
  stickToMarkers: true;
17
18
  };
18
19
  }, import("../../utils/types").SettingsChecks<{
19
20
  ignoreTimeout: {
21
+ readonly label: string;
22
+ readonly description: string;
20
23
  type: OptionType.SLIDER;
21
- description: string;
22
24
  markers: number[];
23
25
  default: number;
24
26
  stickToMarkers: true;
25
27
  };
26
28
  }>, {}>;
29
+ readonly displayDescription: string;
27
30
  patches: {
28
31
  find: string;
29
32
  replacement: {
@@ -5,6 +5,7 @@ declare const _default: {
5
5
  name: string;
6
6
  id: bigint;
7
7
  }[];
8
+ readonly displayDescription: string;
8
9
  patches: {
9
10
  find: string;
10
11
  replacement: {
@@ -8,17 +8,20 @@ declare const _default: {
8
8
  description: string;
9
9
  settings: import("../../utils/types").DefinedSettings<{
10
10
  showFullUrl: {
11
- description: string;
11
+ readonly label: string;
12
+ readonly description: string;
12
13
  type: OptionType.BOOLEAN;
13
14
  default: false;
14
15
  };
15
16
  }, import("../../utils/types").SettingsChecks<{
16
17
  showFullUrl: {
17
- description: string;
18
+ readonly label: string;
19
+ readonly description: string;
18
20
  type: OptionType.BOOLEAN;
19
21
  default: false;
20
22
  };
21
23
  }>, {}>;
24
+ readonly displayDescription: string;
22
25
  patches: {
23
26
  find: string;
24
27
  replacement: {
@@ -5,6 +5,7 @@ declare const _default: {
5
5
  name: string;
6
6
  id: bigint;
7
7
  }[];
8
+ readonly displayDescription: string;
8
9
  patches: {
9
10
  find: string;
10
11
  replacement: {
@@ -8,121 +8,142 @@ declare const _default: {
8
8
  }[];
9
9
  settings: import("../../utils/types").DefinedSettings<{
10
10
  messageImages: {
11
+ readonly label: string;
12
+ readonly description: string;
11
13
  type: import("../../utils/types").OptionType.BOOLEAN;
12
- description: string;
13
14
  default: true;
14
15
  restartNeeded: true;
15
16
  };
16
17
  messageAvatars: {
18
+ readonly label: string;
19
+ readonly description: string;
17
20
  type: import("../../utils/types").OptionType.BOOLEAN;
18
- description: string;
19
21
  default: true;
20
22
  restartNeeded: true;
21
23
  };
22
24
  messageLinks: {
25
+ readonly label: string;
26
+ readonly description: string;
23
27
  type: import("../../utils/types").OptionType.BOOLEAN;
24
- description: string;
25
28
  default: true;
26
29
  restartNeeded: true;
27
30
  };
28
31
  messageStickers: {
32
+ readonly label: string;
33
+ readonly description: string;
29
34
  type: import("../../utils/types").OptionType.BOOLEAN;
30
- description: string;
31
35
  default: true;
32
36
  restartNeeded: true;
33
37
  };
34
38
  mouseOnlyMode: {
39
+ readonly label: string;
40
+ readonly description: string;
35
41
  type: import("../../utils/types").OptionType.BOOLEAN;
36
- description: string;
37
42
  default: false;
38
43
  };
39
44
  fixedImage: {
45
+ readonly label: string;
46
+ readonly description: string;
40
47
  type: import("../../utils/types").OptionType.BOOLEAN;
41
- description: string;
42
48
  default: false;
43
49
  };
44
50
  fileInformation: {
51
+ readonly label: string;
52
+ readonly description: string;
45
53
  type: import("../../utils/types").OptionType.BOOLEAN;
46
- description: string;
47
54
  default: true;
48
55
  };
49
56
  hoverDelay: {
57
+ readonly label: string;
58
+ readonly description: string;
50
59
  type: import("../../utils/types").OptionType.SLIDER;
51
- description: string;
52
60
  default: number;
53
61
  markers: number[];
54
62
  };
55
63
  zoomFactor: {
64
+ readonly label: string;
65
+ readonly description: string;
56
66
  type: import("../../utils/types").OptionType.SLIDER;
57
- description: string;
58
67
  default: number;
59
68
  markers: number[];
60
69
  };
61
70
  defaultMaxSize: {
71
+ readonly label: string;
72
+ readonly description: string;
62
73
  type: import("../../utils/types").OptionType.STRING;
63
- description: string;
64
74
  default: string;
65
75
  onChange: (value: string) => void;
66
76
  };
67
77
  }, import("../../utils/types").SettingsChecks<{
68
78
  messageImages: {
79
+ readonly label: string;
80
+ readonly description: string;
69
81
  type: import("../../utils/types").OptionType.BOOLEAN;
70
- description: string;
71
82
  default: true;
72
83
  restartNeeded: true;
73
84
  };
74
85
  messageAvatars: {
86
+ readonly label: string;
87
+ readonly description: string;
75
88
  type: import("../../utils/types").OptionType.BOOLEAN;
76
- description: string;
77
89
  default: true;
78
90
  restartNeeded: true;
79
91
  };
80
92
  messageLinks: {
93
+ readonly label: string;
94
+ readonly description: string;
81
95
  type: import("../../utils/types").OptionType.BOOLEAN;
82
- description: string;
83
96
  default: true;
84
97
  restartNeeded: true;
85
98
  };
86
99
  messageStickers: {
100
+ readonly label: string;
101
+ readonly description: string;
87
102
  type: import("../../utils/types").OptionType.BOOLEAN;
88
- description: string;
89
103
  default: true;
90
104
  restartNeeded: true;
91
105
  };
92
106
  mouseOnlyMode: {
107
+ readonly label: string;
108
+ readonly description: string;
93
109
  type: import("../../utils/types").OptionType.BOOLEAN;
94
- description: string;
95
110
  default: false;
96
111
  };
97
112
  fixedImage: {
113
+ readonly label: string;
114
+ readonly description: string;
98
115
  type: import("../../utils/types").OptionType.BOOLEAN;
99
- description: string;
100
116
  default: false;
101
117
  };
102
118
  fileInformation: {
119
+ readonly label: string;
120
+ readonly description: string;
103
121
  type: import("../../utils/types").OptionType.BOOLEAN;
104
- description: string;
105
122
  default: true;
106
123
  };
107
124
  hoverDelay: {
125
+ readonly label: string;
126
+ readonly description: string;
108
127
  type: import("../../utils/types").OptionType.SLIDER;
109
- description: string;
110
128
  default: number;
111
129
  markers: number[];
112
130
  };
113
131
  zoomFactor: {
132
+ readonly label: string;
133
+ readonly description: string;
114
134
  type: import("../../utils/types").OptionType.SLIDER;
115
- description: string;
116
135
  default: number;
117
136
  markers: number[];
118
137
  };
119
138
  defaultMaxSize: {
139
+ readonly label: string;
140
+ readonly description: string;
120
141
  type: import("../../utils/types").OptionType.STRING;
121
- description: string;
122
142
  default: string;
123
143
  onChange: (value: string) => void;
124
144
  };
125
145
  }>, {}>;
146
+ readonly displayDescription: string;
126
147
  start(): void;
127
148
  stop(): void;
128
149
  } & Record<PropertyKey, any> & import("../../utils/types").Plugin;
@@ -1,117 +1,137 @@
1
1
  import { OptionType } from "../../utils/types";
2
2
  declare const settings: import("../../utils/types").DefinedSettings<{
3
3
  messageImages: {
4
+ readonly label: string;
5
+ readonly description: string;
4
6
  type: OptionType.BOOLEAN;
5
- description: string;
6
7
  default: true;
7
8
  restartNeeded: true;
8
9
  };
9
10
  messageAvatars: {
11
+ readonly label: string;
12
+ readonly description: string;
10
13
  type: OptionType.BOOLEAN;
11
- description: string;
12
14
  default: true;
13
15
  restartNeeded: true;
14
16
  };
15
17
  messageLinks: {
18
+ readonly label: string;
19
+ readonly description: string;
16
20
  type: OptionType.BOOLEAN;
17
- description: string;
18
21
  default: true;
19
22
  restartNeeded: true;
20
23
  };
21
24
  messageStickers: {
25
+ readonly label: string;
26
+ readonly description: string;
22
27
  type: OptionType.BOOLEAN;
23
- description: string;
24
28
  default: true;
25
29
  restartNeeded: true;
26
30
  };
27
31
  mouseOnlyMode: {
32
+ readonly label: string;
33
+ readonly description: string;
28
34
  type: OptionType.BOOLEAN;
29
- description: string;
30
35
  default: false;
31
36
  };
32
37
  fixedImage: {
38
+ readonly label: string;
39
+ readonly description: string;
33
40
  type: OptionType.BOOLEAN;
34
- description: string;
35
41
  default: false;
36
42
  };
37
43
  fileInformation: {
44
+ readonly label: string;
45
+ readonly description: string;
38
46
  type: OptionType.BOOLEAN;
39
- description: string;
40
47
  default: true;
41
48
  };
42
49
  hoverDelay: {
50
+ readonly label: string;
51
+ readonly description: string;
43
52
  type: OptionType.SLIDER;
44
- description: string;
45
53
  default: number;
46
54
  markers: number[];
47
55
  };
48
56
  zoomFactor: {
57
+ readonly label: string;
58
+ readonly description: string;
49
59
  type: OptionType.SLIDER;
50
- description: string;
51
60
  default: number;
52
61
  markers: number[];
53
62
  };
54
63
  defaultMaxSize: {
64
+ readonly label: string;
65
+ readonly description: string;
55
66
  type: OptionType.STRING;
56
- description: string;
57
67
  default: string;
58
68
  onChange: (value: string) => void;
59
69
  };
60
70
  }, import("../../utils/types").SettingsChecks<{
61
71
  messageImages: {
72
+ readonly label: string;
73
+ readonly description: string;
62
74
  type: OptionType.BOOLEAN;
63
- description: string;
64
75
  default: true;
65
76
  restartNeeded: true;
66
77
  };
67
78
  messageAvatars: {
79
+ readonly label: string;
80
+ readonly description: string;
68
81
  type: OptionType.BOOLEAN;
69
- description: string;
70
82
  default: true;
71
83
  restartNeeded: true;
72
84
  };
73
85
  messageLinks: {
86
+ readonly label: string;
87
+ readonly description: string;
74
88
  type: OptionType.BOOLEAN;
75
- description: string;
76
89
  default: true;
77
90
  restartNeeded: true;
78
91
  };
79
92
  messageStickers: {
93
+ readonly label: string;
94
+ readonly description: string;
80
95
  type: OptionType.BOOLEAN;
81
- description: string;
82
96
  default: true;
83
97
  restartNeeded: true;
84
98
  };
85
99
  mouseOnlyMode: {
100
+ readonly label: string;
101
+ readonly description: string;
86
102
  type: OptionType.BOOLEAN;
87
- description: string;
88
103
  default: false;
89
104
  };
90
105
  fixedImage: {
106
+ readonly label: string;
107
+ readonly description: string;
91
108
  type: OptionType.BOOLEAN;
92
- description: string;
93
109
  default: false;
94
110
  };
95
111
  fileInformation: {
112
+ readonly label: string;
113
+ readonly description: string;
96
114
  type: OptionType.BOOLEAN;
97
- description: string;
98
115
  default: true;
99
116
  };
100
117
  hoverDelay: {
118
+ readonly label: string;
119
+ readonly description: string;
101
120
  type: OptionType.SLIDER;
102
- description: string;
103
121
  default: number;
104
122
  markers: number[];
105
123
  };
106
124
  zoomFactor: {
125
+ readonly label: string;
126
+ readonly description: string;
107
127
  type: OptionType.SLIDER;
108
- description: string;
109
128
  default: number;
110
129
  markers: number[];
111
130
  };
112
131
  defaultMaxSize: {
132
+ readonly label: string;
133
+ readonly description: string;
113
134
  type: OptionType.STRING;
114
- description: string;
115
135
  default: string;
116
136
  onChange: (value: string) => void;
117
137
  };
@@ -1,6 +1,4 @@
1
1
  export interface MagnifierProps {
2
- zoom: number;
3
- size: number;
4
2
  instance: any;
5
3
  }
6
4
  export declare const Magnifier: import("react").FunctionComponent<MagnifierProps>;
@@ -5,96 +5,112 @@ import type { Root } from "react-dom/client";
5
5
  import { MagnifierProps } from "./components/Magnifier";
6
6
  export declare const settings: import("../../utils/types").DefinedSettings<{
7
7
  saveZoomValues: {
8
+ readonly label: string;
9
+ readonly description: string;
8
10
  type: OptionType.BOOLEAN;
9
- description: string;
10
11
  default: true;
11
12
  };
12
13
  invertScroll: {
14
+ readonly label: string;
15
+ readonly description: string;
13
16
  type: OptionType.BOOLEAN;
14
- description: string;
15
17
  default: true;
16
18
  };
17
19
  nearestNeighbour: {
20
+ readonly label: string;
21
+ readonly description: string;
18
22
  type: OptionType.BOOLEAN;
19
- description: string;
20
23
  default: false;
21
24
  };
22
25
  square: {
26
+ readonly label: string;
27
+ readonly description: string;
23
28
  type: OptionType.BOOLEAN;
24
- description: string;
25
29
  default: false;
26
30
  };
27
31
  zoom: {
28
- description: string;
32
+ readonly label: string;
33
+ readonly description: string;
29
34
  type: OptionType.SLIDER;
30
35
  markers: number[];
31
36
  default: number;
32
37
  stickToMarkers: false;
33
38
  };
34
39
  size: {
35
- description: string;
40
+ readonly label: string;
41
+ readonly description: string;
36
42
  type: OptionType.SLIDER;
37
43
  markers: number[];
38
44
  default: number;
39
45
  stickToMarkers: false;
40
46
  };
41
47
  zoomSpeed: {
42
- description: string;
48
+ readonly label: string;
49
+ readonly description: string;
43
50
  type: OptionType.SLIDER;
44
51
  markers: number[];
45
52
  default: number;
46
53
  stickToMarkers: false;
47
54
  };
48
55
  showMetadata: {
56
+ readonly label: string;
57
+ readonly description: string;
49
58
  type: OptionType.BOOLEAN;
50
- description: string;
51
59
  default: true;
52
60
  };
53
61
  }, import("../../utils/types").SettingsChecks<{
54
62
  saveZoomValues: {
63
+ readonly label: string;
64
+ readonly description: string;
55
65
  type: OptionType.BOOLEAN;
56
- description: string;
57
66
  default: true;
58
67
  };
59
68
  invertScroll: {
69
+ readonly label: string;
70
+ readonly description: string;
60
71
  type: OptionType.BOOLEAN;
61
- description: string;
62
72
  default: true;
63
73
  };
64
74
  nearestNeighbour: {
75
+ readonly label: string;
76
+ readonly description: string;
65
77
  type: OptionType.BOOLEAN;
66
- description: string;
67
78
  default: false;
68
79
  };
69
80
  square: {
81
+ readonly label: string;
82
+ readonly description: string;
70
83
  type: OptionType.BOOLEAN;
71
- description: string;
72
84
  default: false;
73
85
  };
74
86
  zoom: {
75
- description: string;
87
+ readonly label: string;
88
+ readonly description: string;
76
89
  type: OptionType.SLIDER;
77
90
  markers: number[];
78
91
  default: number;
79
92
  stickToMarkers: false;
80
93
  };
81
94
  size: {
82
- description: string;
95
+ readonly label: string;
96
+ readonly description: string;
83
97
  type: OptionType.SLIDER;
84
98
  markers: number[];
85
99
  default: number;
86
100
  stickToMarkers: false;
87
101
  };
88
102
  zoomSpeed: {
89
- description: string;
103
+ readonly label: string;
104
+ readonly description: string;
90
105
  type: OptionType.SLIDER;
91
106
  markers: number[];
92
107
  default: number;
93
108
  stickToMarkers: false;
94
109
  };
95
110
  showMetadata: {
111
+ readonly label: string;
112
+ readonly description: string;
96
113
  type: OptionType.BOOLEAN;
97
- description: string;
98
114
  default: true;
99
115
  };
100
116
  }>, {}>;
@@ -106,6 +122,7 @@ declare const _default: {
106
122
  id: bigint;
107
123
  }[];
108
124
  tags: string[];
125
+ readonly displayDescription: string;
109
126
  managedStyle: string;
110
127
  patches: ({
111
128
  find: string;
@@ -122,96 +139,112 @@ declare const _default: {
122
139
  })[];
123
140
  settings: import("../../utils/types").DefinedSettings<{
124
141
  saveZoomValues: {
142
+ readonly label: string;
143
+ readonly description: string;
125
144
  type: OptionType.BOOLEAN;
126
- description: string;
127
145
  default: true;
128
146
  };
129
147
  invertScroll: {
148
+ readonly label: string;
149
+ readonly description: string;
130
150
  type: OptionType.BOOLEAN;
131
- description: string;
132
151
  default: true;
133
152
  };
134
153
  nearestNeighbour: {
154
+ readonly label: string;
155
+ readonly description: string;
135
156
  type: OptionType.BOOLEAN;
136
- description: string;
137
157
  default: false;
138
158
  };
139
159
  square: {
160
+ readonly label: string;
161
+ readonly description: string;
140
162
  type: OptionType.BOOLEAN;
141
- description: string;
142
163
  default: false;
143
164
  };
144
165
  zoom: {
145
- description: string;
166
+ readonly label: string;
167
+ readonly description: string;
146
168
  type: OptionType.SLIDER;
147
169
  markers: number[];
148
170
  default: number;
149
171
  stickToMarkers: false;
150
172
  };
151
173
  size: {
152
- description: string;
174
+ readonly label: string;
175
+ readonly description: string;
153
176
  type: OptionType.SLIDER;
154
177
  markers: number[];
155
178
  default: number;
156
179
  stickToMarkers: false;
157
180
  };
158
181
  zoomSpeed: {
159
- description: string;
182
+ readonly label: string;
183
+ readonly description: string;
160
184
  type: OptionType.SLIDER;
161
185
  markers: number[];
162
186
  default: number;
163
187
  stickToMarkers: false;
164
188
  };
165
189
  showMetadata: {
190
+ readonly label: string;
191
+ readonly description: string;
166
192
  type: OptionType.BOOLEAN;
167
- description: string;
168
193
  default: true;
169
194
  };
170
195
  }, import("../../utils/types").SettingsChecks<{
171
196
  saveZoomValues: {
197
+ readonly label: string;
198
+ readonly description: string;
172
199
  type: OptionType.BOOLEAN;
173
- description: string;
174
200
  default: true;
175
201
  };
176
202
  invertScroll: {
203
+ readonly label: string;
204
+ readonly description: string;
177
205
  type: OptionType.BOOLEAN;
178
- description: string;
179
206
  default: true;
180
207
  };
181
208
  nearestNeighbour: {
209
+ readonly label: string;
210
+ readonly description: string;
182
211
  type: OptionType.BOOLEAN;
183
- description: string;
184
212
  default: false;
185
213
  };
186
214
  square: {
215
+ readonly label: string;
216
+ readonly description: string;
187
217
  type: OptionType.BOOLEAN;
188
- description: string;
189
218
  default: false;
190
219
  };
191
220
  zoom: {
192
- description: string;
221
+ readonly label: string;
222
+ readonly description: string;
193
223
  type: OptionType.SLIDER;
194
224
  markers: number[];
195
225
  default: number;
196
226
  stickToMarkers: false;
197
227
  };
198
228
  size: {
199
- description: string;
229
+ readonly label: string;
230
+ readonly description: string;
200
231
  type: OptionType.SLIDER;
201
232
  markers: number[];
202
233
  default: number;
203
234
  stickToMarkers: false;
204
235
  };
205
236
  zoomSpeed: {
206
- description: string;
237
+ readonly label: string;
238
+ readonly description: string;
207
239
  type: OptionType.SLIDER;
208
240
  markers: number[];
209
241
  default: number;
210
242
  stickToMarkers: false;
211
243
  };
212
244
  showMetadata: {
245
+ readonly label: string;
246
+ readonly description: string;
213
247
  type: OptionType.BOOLEAN;
214
- description: string;
215
248
  default: true;
216
249
  };
217
250
  }>, {}>;
@@ -232,7 +265,6 @@ declare const _default: {
232
265
  };
233
266
  handleImageClick(e: React.MouseEvent | MouseEvent, instance: any): void;
234
267
  renderMagnifier(instance: any): void;
235
- updateMagnifier(instance: any): void;
236
268
  unMountMagnifier(): void;
237
269
  onMouseOver(instance: any): void;
238
270
  onMouseOut(instance: any): void;
@@ -11,13 +11,16 @@ declare const _default: {
11
11
  inputType: ApplicationCommandInputType.BUILT_IN;
12
12
  name: string;
13
13
  description: string;
14
+ readonly displayDescription: string;
14
15
  options: ({
15
16
  name: string;
16
17
  description: string;
18
+ readonly displayDescription: string;
17
19
  type: ApplicationCommandOptionType.ATTACHMENT;
18
20
  } | {
19
21
  name: string;
20
22
  description: string;
23
+ readonly displayDescription: string;
21
24
  type: ApplicationCommandOptionType.INTEGER;
22
25
  })[];
23
26
  execute: (opts: CommandArgument[], cmdCtx: CommandContext) => Promise<void>;
@@ -6,6 +6,7 @@ declare const _default: {
6
6
  name: string;
7
7
  id: bigint;
8
8
  }[];
9
+ readonly displayDescription: string;
9
10
  patches: ({
10
11
  find: string;
11
12
  replacement: {
@@ -30,13 +31,15 @@ declare const _default: {
30
31
  })[];
31
32
  settings: import("../../utils/types").DefinedSettings<{
32
33
  sortByAffinity: {
34
+ readonly label: string;
35
+ readonly description: string;
33
36
  type: OptionType.BOOLEAN;
34
37
  default: true;
35
- description: string;
36
38
  restartNeeded: true;
37
39
  };
38
40
  }, {}, {}>;
39
41
  wrapSort(comparator: Function, row: any): any;
42
+ getImplicitLabel(): string;
40
43
  fetchImplicitRelationships(): Promise<void>;
41
44
  start(): void;
42
45
  } & Record<PropertyKey, any> & import("../../utils/types").Plugin;
@@ -8,15 +8,18 @@ declare const _default: {
8
8
  id: bigint;
9
9
  }[];
10
10
  dependencies: string[];
11
+ readonly displayDescription: string;
11
12
  start(): void;
12
13
  settingsAboutComponent: () => import("react").JSX.Element;
13
14
  commands: {
14
15
  name: string;
15
16
  description: string;
17
+ readonly displayDescription: string;
16
18
  inputType: ApplicationCommandInputType.BUILT_IN;
17
19
  options: {
18
20
  name: string;
19
21
  description: string;
22
+ readonly displayDescription: string;
20
23
  type: ApplicationCommandOptionType.ROLE;
21
24
  required: true;
22
25
  }[];
@@ -17,6 +17,7 @@ declare const _default: {
17
17
  component: () => import("react").JSX.Element;
18
18
  };
19
19
  }>, {}>;
20
+ readonly displayDescription: string;
20
21
  flux: {
21
22
  VOICE_STATE_UPDATES({ voiceStates }: {
22
23
  voiceStates: VoiceState[];
@@ -12,17 +12,20 @@ declare const _default: {
12
12
  reporterTestable: ReporterTestable;
13
13
  settings: import("../../utils/types").DefinedSettings<{
14
14
  savedPasswords: {
15
+ readonly label: string;
16
+ readonly description: string;
15
17
  type: OptionType.STRING;
16
18
  default: string;
17
- description: string;
18
19
  };
19
20
  }, import("../../utils/types").SettingsChecks<{
20
21
  savedPasswords: {
22
+ readonly label: string;
23
+ readonly description: string;
21
24
  type: OptionType.STRING;
22
25
  default: string;
23
- description: string;
24
26
  };
25
27
  }>, {}>;
28
+ readonly displayDescription: string;
26
29
  patches: {
27
30
  find: string;
28
31
  replacement: {
@@ -1,3 +1,3 @@
1
1
  import { Track } from "../TidalStore";
2
2
  import { EnhancedLyric } from "./types";
3
- export declare function getLyrics(track: Track | null, url?: string): Promise<EnhancedLyric[] | null>;
3
+ export declare function getLyrics(track: Track | null, url?: string, retries?: number): Promise<EnhancedLyric[] | null>;
@@ -0,0 +1 @@
1
+ export default function openFilePreview(name: string, blob: Blob, buffer: ArrayBuffer): void;
@@ -0,0 +1,6 @@
1
+ export default function ZipPreview({ blob, name, expanded: expandedProp, onExpandedChange }: {
2
+ blob: Blob;
3
+ name?: string;
4
+ expanded?: boolean;
5
+ onExpandedChange?: (v: boolean) => void;
6
+ }): import("react").JSX.Element;
@@ -0,0 +1,25 @@
1
+ import "./styles.css";
2
+ declare function MessageContextMenu(children: Array<any>, props: any): void;
3
+ declare function ZipAttachmentPreview({ attachment }: {
4
+ attachment: any;
5
+ }): import("react").JSX.Element | undefined;
6
+ declare const _default: {
7
+ name: string;
8
+ description: string;
9
+ authors: {
10
+ name: string;
11
+ id: bigint;
12
+ }[];
13
+ patches: {
14
+ find: string;
15
+ replacement: {
16
+ match: RegExp;
17
+ replace: string;
18
+ };
19
+ }[];
20
+ contextMenus: {
21
+ message: typeof MessageContextMenu;
22
+ };
23
+ ZipAttachmentPreview: typeof ZipAttachmentPreview;
24
+ } & Record<PropertyKey, any> & import("../../utils/types").Plugin;
25
+ export default _default;
@@ -0,0 +1,12 @@
1
+ export type ZipEntry = {
2
+ name: string;
3
+ isDirectory: boolean;
4
+ compressedSize: number;
5
+ size: number;
6
+ offset: number;
7
+ compression: number;
8
+ };
9
+ export declare function unzipBlob(blob: Blob): Promise<{
10
+ entries: ZipEntry[];
11
+ readEntry: (e: ZipEntry) => Promise<ArrayBuffer>;
12
+ }>;
@@ -2,7 +2,8 @@ import * as t from "@plexcord/discord-types";
2
2
  export declare const Forms: {
3
3
  FormTitle: import("../../utils/lazyReact").LazyComponentWrapper<t.FormTitle>;
4
4
  FormText: t.FormText;
5
- FormSection: import("../../utils/lazyReact").LazyComponentWrapper<t.FormSection>;
5
+ /** @deprecated don't use this */
6
+ FormSection: never;
6
7
  FormDivider: import("../../utils/lazyReact").LazyComponentWrapper<t.FormDivider>;
7
8
  };
8
9
  export declare const Card: import("../../utils/lazyReact").LazyComponentWrapper<t.Card>;
@@ -53,7 +54,7 @@ export declare const TextInput: import("../../utils/lazyReact").LazyComponentWra
53
54
  export declare const TextArea: import("../../utils/lazyReact").LazyComponentWrapper<t.TextArea>;
54
55
  export declare const Text: import("../../utils/lazyReact").LazyComponentWrapper<t.Text>;
55
56
  export declare const Heading: import("../../utils/lazyReact").LazyComponentWrapper<t.Heading>;
56
- export declare const Select: import("../../utils/lazyReact").LazyComponentWrapper<t.Select>;
57
+ export declare const Select: t.Select;
57
58
  export declare const SearchableSelect: import("../../utils/lazyReact").LazyComponentWrapper<t.SearchableSelect>;
58
59
  export declare const Slider: import("../../utils/lazyReact").LazyComponentWrapper<t.Slider>;
59
60
  export declare const Popout: import("../../utils/lazyReact").LazyComponentWrapper<t.Popout>;
@@ -7,7 +7,8 @@ export declare const moment: typeof import("moment");
7
7
  export declare const hljs: typeof import("highlight.js").default;
8
8
  export declare const useDrag: any;
9
9
  export declare const useDrop: any;
10
- export declare const match: typeof import("ts-pattern").match, P: typeof import("ts-pattern/dist/patterns");
10
+ export declare const match: typeof import("ts-pattern").match;
11
+ export declare const P: any;
11
12
  export declare const lodash: typeof import("lodash");
12
13
  export declare const i18n: Record<"t" | "intl", any>;
13
14
  export declare let SnowflakeUtils: t.SnowflakeUtils;