@vencord/types 1.8.4 → 1.11.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.
Files changed (304) hide show
  1. package/Vencord.d.ts +1 -0
  2. package/VencordNative.d.ts +2 -4
  3. package/api/Badges.d.ts +7 -4
  4. package/api/ChatButtons.d.ts +5 -4
  5. package/api/Commands/types.d.ts +2 -0
  6. package/api/ContextMenu.d.ts +6 -5
  7. package/api/MemberListDecorators.d.ts +8 -8
  8. package/api/MessageAccessories.d.ts +7 -7
  9. package/api/MessageDecorations.d.ts +7 -8
  10. package/api/MessageEvents.d.ts +9 -10
  11. package/api/MessagePopover.d.ts +8 -8
  12. package/api/MessageUpdater.d.ts +8 -0
  13. package/api/Notifications/NotificationComponent.d.ts +1 -2
  14. package/api/Notifications/notificationLog.d.ts +1 -2
  15. package/api/ServerList.d.ts +4 -4
  16. package/api/Settings.d.ts +3 -1
  17. package/api/Styles.d.ts +0 -1
  18. package/api/UserSettings.d.ts +40 -0
  19. package/api/index.d.ts +10 -0
  20. package/components/Badge.d.ts +1 -2
  21. package/components/CheckedTextInput.d.ts +1 -2
  22. package/components/CodeBlock.d.ts +1 -2
  23. package/components/DonateButton.d.ts +2 -2
  24. package/components/ErrorBoundary.d.ts +2 -2
  25. package/components/ErrorCard.d.ts +1 -1
  26. package/components/Flex.d.ts +1 -2
  27. package/components/Grid.d.ts +8 -0
  28. package/components/Heart.d.ts +2 -2
  29. package/components/Icons.d.ts +12 -8
  30. package/components/Link.d.ts +1 -2
  31. package/components/PluginSettings/LinkIconButton.d.ts +10 -0
  32. package/components/PluginSettings/PluginModal.d.ts +3 -2
  33. package/components/PluginSettings/components/SettingBooleanComponent.d.ts +1 -2
  34. package/components/PluginSettings/components/SettingCustomComponent.d.ts +2 -3
  35. package/components/PluginSettings/components/SettingNumericComponent.d.ts +1 -2
  36. package/components/PluginSettings/components/SettingSelectComponent.d.ts +1 -2
  37. package/components/PluginSettings/components/SettingSliderComponent.d.ts +1 -2
  38. package/components/PluginSettings/components/SettingTextComponent.d.ts +1 -2
  39. package/components/PluginSettings/components/index.d.ts +3 -1
  40. package/components/PluginSettings/index.d.ts +1 -1
  41. package/components/Switch.d.ts +1 -2
  42. package/components/VencordSettings/AddonCard.d.ts +1 -1
  43. package/components/VencordSettings/BackupAndRestoreTab.d.ts +0 -1
  44. package/components/VencordSettings/CloudTab.d.ts +0 -1
  45. package/components/VencordSettings/NotificationSettings.d.ts +2 -0
  46. package/components/VencordSettings/PatchHelperTab.d.ts +0 -1
  47. package/components/VencordSettings/PluginsTab.d.ts +0 -1
  48. package/components/VencordSettings/SpecialCard.d.ts +14 -0
  49. package/components/VencordSettings/ThemesTab.d.ts +0 -1
  50. package/components/VencordSettings/UpdaterTab.d.ts +0 -1
  51. package/components/VencordSettings/VencordTab.d.ts +0 -1
  52. package/components/VencordSettings/quickActions.d.ts +12 -0
  53. package/components/VencordSettings/shared.d.ts +1 -1
  54. package/components/index.d.ts +0 -1
  55. package/modules.d.ts +6 -2
  56. package/package.json +9 -9
  57. package/plugins/_api/badges/index.d.ts +16 -4
  58. package/plugins/_api/chatButtons.d.ts +1 -1
  59. package/plugins/_api/commands.d.ts +1 -0
  60. package/plugins/_api/contextMenu.d.ts +4 -2
  61. package/plugins/_api/dynamicImageModalApi.d.ts +16 -0
  62. package/plugins/_api/{memberListDecorators.d.ts → memberListDecorators/index.d.ts} +1 -0
  63. package/plugins/_api/menuItemDemangler.d.ts +17 -0
  64. package/plugins/_api/messageDecorations/index.d.ts +17 -0
  65. package/plugins/_api/messageEvents.d.ts +1 -1
  66. package/plugins/_api/messagePopover.d.ts +1 -1
  67. package/plugins/_api/userSettings.d.ts +16 -0
  68. package/plugins/_core/noTrack.d.ts +4 -9
  69. package/plugins/_core/settings.d.ts +2 -3
  70. package/plugins/_core/supportHelper.d.ts +16 -5
  71. package/plugins/accountPanelServerProfile/index.d.ts +45 -0
  72. package/plugins/alwaysAnimate/index.d.ts +8 -0
  73. package/plugins/alwaysExpandRoles/index.d.ts +16 -0
  74. package/plugins/anonymiseFileNames/index.d.ts +0 -1
  75. package/plugins/appleMusic.desktop/index.d.ts +225 -0
  76. package/plugins/appleMusic.desktop/native.d.ts +2 -0
  77. package/plugins/arRPC.web/index.d.ts +3 -2
  78. package/plugins/banger/index.d.ts +16 -8
  79. package/plugins/betterFolders/FolderSideBar.d.ts +0 -1
  80. package/plugins/betterFolders/index.d.ts +4 -2
  81. package/plugins/betterNotes/index.d.ts +29 -17
  82. package/plugins/betterRoleContext/index.d.ts +31 -1
  83. package/plugins/betterRoleDot/index.d.ts +0 -9
  84. package/plugins/betterSessions/components/RenameButton.d.ts +1 -2
  85. package/plugins/betterSessions/components/RenameModal.d.ts +1 -2
  86. package/plugins/betterSessions/components/icons.d.ts +8 -8
  87. package/plugins/betterSessions/index.d.ts +2 -9
  88. package/plugins/betterSessions/utils.d.ts +1 -2
  89. package/plugins/betterSettings/PluginsSubmenu.d.ts +1 -0
  90. package/plugins/betterSettings/index.d.ts +6 -4
  91. package/plugins/callTimer/index.d.ts +2 -4
  92. package/plugins/clearURLs/index.d.ts +3 -3
  93. package/plugins/clientTheme/index.d.ts +5 -11
  94. package/plugins/consoleJanitor/index.d.ts +79 -0
  95. package/plugins/consoleShortcuts/index.d.ts +9 -179
  96. package/plugins/consoleShortcuts/native.d.ts +2 -0
  97. package/plugins/copyEmojiMarkdown/index.d.ts +37 -0
  98. package/plugins/copyFileContents/index.d.ts +21 -0
  99. package/plugins/ctrlEnterSend/index.d.ts +8 -2
  100. package/plugins/customRPC/index.d.ts +12 -4
  101. package/plugins/customidle/index.d.ts +49 -0
  102. package/plugins/dearrow/index.d.ts +13 -1
  103. package/plugins/decor/index.d.ts +2 -5
  104. package/plugins/decor/settings.d.ts +2 -5
  105. package/plugins/decor/ui/components/DecorDecorationGridDecoration.d.ts +1 -1
  106. package/plugins/decor/ui/components/DecorSection.d.ts +1 -2
  107. package/plugins/decor/ui/components/DecorationContextMenu.d.ts +1 -2
  108. package/plugins/decor/ui/components/DecorationGridCreate.d.ts +1 -1
  109. package/plugins/decor/ui/components/DecorationGridNone.d.ts +1 -1
  110. package/plugins/decor/ui/components/Grid.d.ts +1 -1
  111. package/plugins/decor/ui/components/SectionedGridList.d.ts +1 -1
  112. package/plugins/decor/ui/index.d.ts +2 -2
  113. package/plugins/devCompanion.dev/index.d.ts +2 -1
  114. package/plugins/dontRoundMyTimestamps/index.d.ts +11 -0
  115. package/plugins/experiments/index.d.ts +13 -17
  116. package/plugins/fakeNitro/index.d.ts +3 -79
  117. package/plugins/fakeProfileThemes/index.d.ts +2 -2
  118. package/plugins/favGifSearch/index.d.ts +1 -2
  119. package/plugins/friendInvites/index.d.ts +5 -23
  120. package/plugins/friendsSince/index.d.ts +2 -2
  121. package/plugins/fullSearchContext/index.d.ts +22 -0
  122. package/plugins/fullUserInChatbox/index.d.ts +24 -0
  123. package/plugins/gameActivityToggle/index.d.ts +2 -3
  124. package/plugins/greetStickerPicker/index.d.ts +2 -2
  125. package/plugins/hideAttachments/index.d.ts +19 -2
  126. package/plugins/ignoreActivities/index.d.ts +63 -15
  127. package/plugins/imageZoom/components/Magnifier.d.ts +0 -1
  128. package/plugins/imageZoom/index.d.ts +4 -2
  129. package/plugins/implicitRelationships/index.d.ts +7 -0
  130. package/plugins/index.d.ts +3 -1
  131. package/plugins/invisibleChat.desktop/components/DecryptionModal.d.ts +1 -2
  132. package/plugins/invisibleChat.desktop/index.d.ts +22 -15
  133. package/plugins/ircColors/index.d.ts +76 -0
  134. package/plugins/keepCurrentChannel/index.d.ts +7 -0
  135. package/plugins/lastfm/index.d.ts +11 -2
  136. package/plugins/loadingQuotes/index.d.ts +41 -2
  137. package/plugins/memberCount/MemberCount.d.ts +1 -2
  138. package/plugins/memberCount/OnlineMemberCountStore.d.ts +2 -2
  139. package/plugins/memberCount/index.d.ts +12 -5
  140. package/plugins/mentionAvatars/index.d.ts +40 -0
  141. package/plugins/messageClickActions/index.d.ts +1 -1
  142. package/plugins/messageLatency/index.d.ts +1 -2
  143. package/plugins/messageLinkEmbeds/index.d.ts +1 -3
  144. package/plugins/messageLogger/HistoryModal.d.ts +6 -0
  145. package/plugins/messageLogger/index.d.ts +38 -7
  146. package/plugins/messageTags/index.d.ts +21 -3
  147. package/plugins/moreCommands/index.d.ts +0 -1
  148. package/plugins/moreKaomoji/index.d.ts +0 -1
  149. package/plugins/mutualGroupDMs/index.d.ts +15 -4
  150. package/plugins/newGuildSettings/index.d.ts +7 -1
  151. package/plugins/noBlockedMessages/index.d.ts +34 -10
  152. package/plugins/noMosaic/index.d.ts +1 -1
  153. package/plugins/noOnboardingDelay/index.d.ts +16 -0
  154. package/plugins/noProfileThemes/index.d.ts +1 -0
  155. package/plugins/noUnblockToJump/index.d.ts +1 -1
  156. package/plugins/openInApp/index.d.ts +9 -50
  157. package/plugins/openInApp/native.d.ts +0 -1
  158. package/plugins/partyMode/index.d.ts +2 -1
  159. package/plugins/pauseInvitesForever/index.d.ts +0 -1
  160. package/plugins/permissionFreeWill/index.d.ts +9 -2
  161. package/plugins/permissionsViewer/components/RolesAndUsersPermissions.d.ts +1 -2
  162. package/plugins/permissionsViewer/components/UserPermissions.d.ts +1 -2
  163. package/plugins/permissionsViewer/components/icons.d.ts +3 -4
  164. package/plugins/permissionsViewer/index.d.ts +5 -23
  165. package/plugins/permissionsViewer/utils.d.ts +1 -3
  166. package/plugins/petpet/index.d.ts +0 -1
  167. package/plugins/pictureInPicture/index.d.ts +2 -3
  168. package/plugins/pinDms/components/CreateCategoryModal.d.ts +3 -4
  169. package/plugins/pinDms/data.d.ts +10 -12
  170. package/plugins/pinDms/index.d.ts +48 -18
  171. package/plugins/platformIndicators/index.d.ts +11 -0
  172. package/plugins/previewMessage/index.d.ts +2 -4
  173. package/plugins/quickMention/index.d.ts +8 -5
  174. package/plugins/quickReply/index.d.ts +12 -0
  175. package/plugins/readAllNotificationsButton/index.d.ts +0 -1
  176. package/plugins/relationshipNotifier/utils.d.ts +7 -0
  177. package/plugins/replyTimestamp/index.d.ts +0 -1
  178. package/plugins/reviewDB/components/MessageButton.d.ts +3 -4
  179. package/plugins/reviewDB/components/ReviewBadge.d.ts +1 -2
  180. package/plugins/reviewDB/components/ReviewComponent.d.ts +0 -1
  181. package/plugins/reviewDB/components/ReviewModal.d.ts +2 -1
  182. package/plugins/reviewDB/components/ReviewsView.d.ts +6 -4
  183. package/plugins/reviewDB/index.d.ts +10 -12
  184. package/plugins/reviewDB/settings.d.ts +6 -11
  185. package/plugins/reviewDB/utils.d.ts +1 -1
  186. package/plugins/roleColorEverywhere/index.d.ts +74 -28
  187. package/plugins/secretRingTone/index.d.ts +24 -3
  188. package/plugins/seeSummaries/index.d.ts +39 -0
  189. package/plugins/sendTimestamps/index.d.ts +4 -5
  190. package/plugins/{serverProfile/GuildProfileModal.d.ts → serverInfo/GuildInfoModal.d.ts} +1 -1
  191. package/plugins/{serverProfile → serverInfo}/index.d.ts +1 -0
  192. package/plugins/serverListIndicators/index.d.ts +1 -9
  193. package/plugins/shikiCodeblocks.desktop/api/shiki.d.ts +27 -1
  194. package/plugins/shikiCodeblocks.desktop/api/themes.d.ts +29 -3
  195. package/plugins/shikiCodeblocks.desktop/components/ButtonRow.d.ts +1 -1
  196. package/plugins/shikiCodeblocks.desktop/components/Code.d.ts +1 -1
  197. package/plugins/shikiCodeblocks.desktop/components/CopyButton.d.ts +1 -2
  198. package/plugins/shikiCodeblocks.desktop/components/Header.d.ts +1 -2
  199. package/plugins/shikiCodeblocks.desktop/components/Highlighter.d.ts +2 -3
  200. package/plugins/shikiCodeblocks.desktop/index.d.ts +43 -16
  201. package/plugins/showConnections/VerifiedIcon.d.ts +1 -2
  202. package/plugins/showConnections/index.d.ts +8 -12
  203. package/plugins/showHiddenChannels/components/HiddenChannelLockScreen.d.ts +0 -1
  204. package/plugins/showHiddenChannels/index.d.ts +6 -6
  205. package/plugins/showHiddenThings/index.d.ts +20 -36
  206. package/plugins/showMeYourName/index.d.ts +0 -1
  207. package/plugins/silentMessageToggle/index.d.ts +2 -4
  208. package/plugins/silentTyping/index.d.ts +2 -4
  209. package/plugins/sortFriendRequests/index.d.ts +6 -4
  210. package/plugins/spotifyControls/PlayerComponent.d.ts +1 -2
  211. package/plugins/spotifyControls/SpotifyStore.d.ts +40 -1
  212. package/plugins/spotifyControls/index.d.ts +6 -2
  213. package/plugins/spotifyShareCommands/index.d.ts +0 -1
  214. package/plugins/startupTimings/StartupTimingPage.d.ts +0 -1
  215. package/plugins/startupTimings/index.d.ts +0 -1
  216. package/plugins/textReplace/index.d.ts +20 -7
  217. package/plugins/translate/TranslateIcon.d.ts +4 -4
  218. package/plugins/translate/TranslateModal.d.ts +1 -2
  219. package/plugins/translate/TranslationAccessory.d.ts +1 -2
  220. package/plugins/translate/index.d.ts +71 -5
  221. package/plugins/translate/languages.d.ts +40 -2
  222. package/plugins/translate/native.d.ts +5 -0
  223. package/plugins/translate/settings.d.ts +61 -2
  224. package/plugins/translate/utils.d.ts +172 -1
  225. package/plugins/typingIndicator/index.d.ts +1 -2
  226. package/plugins/typingTweaks/index.d.ts +18 -18
  227. package/plugins/unindent/index.d.ts +2 -3
  228. package/plugins/{pronoundb/components → userMessagesPronouns}/PronounsChatComponent.d.ts +0 -4
  229. package/plugins/userMessagesPronouns/index.d.ts +61 -0
  230. package/plugins/userMessagesPronouns/settings.d.ts +44 -0
  231. package/plugins/userMessagesPronouns/utils.d.ts +1 -0
  232. package/plugins/userVoiceShow/components.d.ts +6 -0
  233. package/plugins/userVoiceShow/index.d.ts +33 -11
  234. package/plugins/usrbg/index.d.ts +4 -7
  235. package/plugins/validUser/index.d.ts +1 -2
  236. package/plugins/vcNarrator/index.d.ts +4 -4
  237. package/plugins/viewIcons/index.d.ts +4 -10
  238. package/plugins/viewRaw/index.d.ts +13 -3
  239. package/plugins/voiceDownload/index.d.ts +2 -3
  240. package/plugins/voiceMessages/VoicePreview.d.ts +1 -2
  241. package/plugins/voiceMessages/native.d.ts +1 -1
  242. package/plugins/voiceMessages/utils.d.ts +1 -0
  243. package/plugins/{volumeBooster.discordDesktop → volumeBooster}/index.d.ts +28 -0
  244. package/plugins/webContextMenus.web/index.d.ts +14 -0
  245. package/plugins/whoReacted/index.d.ts +2 -3
  246. package/plugins/{xsOverlay.desktop → xsOverlay}/index.d.ts +30 -1
  247. package/plugins/youtubeAdblock.desktop/adguard.d.ts +54 -0
  248. package/plugins/youtubeAdblock.desktop/index.d.ts +9 -0
  249. package/plugins/youtubeAdblock.desktop/native.d.ts +1 -0
  250. package/shared/SettingsStore.d.ts +5 -0
  251. package/shared/vencordUserAgent.d.ts +0 -1
  252. package/utils/ChangeList.d.ts +1 -1
  253. package/utils/apng-canvas.d.ts +1 -0
  254. package/utils/constants.d.ts +91 -9
  255. package/utils/dependencies.d.ts +0 -3
  256. package/utils/discord.d.ts +28 -5
  257. package/utils/index.d.ts +1 -0
  258. package/utils/intlHash.d.ts +8 -0
  259. package/utils/lazy.d.ts +2 -0
  260. package/utils/misc.d.ts +3 -1
  261. package/utils/modal.d.ts +79 -64
  262. package/utils/patches.d.ts +2 -2
  263. package/utils/react.d.ts +4 -6
  264. package/utils/text.d.ts +3 -0
  265. package/utils/types.d.ts +63 -10
  266. package/webpack/common/components.d.ts +94 -24
  267. package/webpack/common/index.d.ts +1 -1
  268. package/webpack/common/internal.d.ts +0 -1
  269. package/webpack/common/menu.d.ts +1 -1
  270. package/webpack/common/react.d.ts +1 -0
  271. package/webpack/common/stores.d.ts +4 -2
  272. package/webpack/common/types/components.d.ts +70 -24
  273. package/webpack/common/types/fluxEvents.d.ts +1 -1
  274. package/webpack/common/types/index.d.ts +0 -2
  275. package/webpack/common/types/menu.d.ts +5 -0
  276. package/webpack/common/types/stores.d.ts +38 -4
  277. package/webpack/common/types/utils.d.ts +136 -25
  278. package/webpack/common/userSettings.d.ts +4 -0
  279. package/webpack/common/utils.d.ts +42 -27
  280. package/webpack/index.d.ts +1 -0
  281. package/webpack/patchWebpack.d.ts +12 -1
  282. package/webpack/webpack.d.ts +63 -35
  283. package/webpack/wreq.d.ts +238 -0
  284. package/components/ExpandableHeader.d.ts +0 -12
  285. package/plugins/automodContext/index.d.ts +0 -20
  286. package/plugins/moreUserTags/index.d.ts +0 -77
  287. package/plugins/pronoundb/components/PronounsAboutComponent.d.ts +0 -2
  288. package/plugins/pronoundb/index.d.ts +0 -113
  289. package/plugins/pronoundb/pronoundbUtils.d.ts +0 -18
  290. package/plugins/pronoundb/settings.d.ts +0 -87
  291. package/plugins/pronoundb/types.d.ts +0 -31
  292. package/plugins/resurrectHome/index.d.ts +0 -63
  293. package/plugins/searchReply/index.d.ts +0 -13
  294. package/plugins/urbanDictionary/index.d.ts +0 -38
  295. package/plugins/userVoiceShow/components/VoiceChannelSection.d.ts +0 -10
  296. package/plugins/wikisearch/index.d.ts +0 -23
  297. package/webpack/common/settingsStores.d.ts +0 -4
  298. package/webpack/common/types/i18nMessages.d.ts +0 -2
  299. package/webpack/common/types/settingsStores.d.ts +0 -5
  300. package/plugins/_api/{messageDecorations.d.ts → messageUpdater.d.ts} +0 -0
  301. package/plugins/{noDefaultHangStatus → fixImagesQuality}/index.d.ts +0 -0
  302. package/plugins/{timeBarAllActivities → noMaskedUrlPaste}/index.d.ts +1 -1
  303. /package/plugins/{noScreensharePreview → stickerPaste}/index.d.ts +0 -0
  304. /package/plugins/{xsOverlay.desktop → xsOverlay}/native.d.ts +0 -0
package/Vencord.d.ts CHANGED
@@ -22,6 +22,7 @@ export * as Util from "./utils";
22
22
  export * as QuickCss from "./utils/quickCss";
23
23
  export * as Updater from "./utils/updater";
24
24
  export * as Webpack from "./webpack";
25
+ export * as WebpackPatcher from "./webpack/patchWebpack";
25
26
  export { PlainSettings, Settings };
26
27
  import "./utils/quickCss";
27
28
  import "./webpack/patchWebpack";
@@ -1,9 +1,7 @@
1
- /// <reference types="standalone-electron-types" />
2
- /// <reference types="node" />
1
+ import type { Settings } from "./api/Settings";
3
2
  import type { UserThemeHeader } from "./main/themes";
4
3
  import { IpcEvents } from "./shared/IpcEvents";
5
4
  import { IpcRes } from "./utils/types";
6
- import type { Settings } from "api/Settings";
7
5
  export declare function sendSync<T = any>(event: IpcEvents, ...args: any[]): T;
8
6
  declare const _default: {
9
7
  themes: {
@@ -15,7 +13,7 @@ declare const _default: {
15
13
  getSystemValues: () => Promise<Record<string, string>>;
16
14
  };
17
15
  updater: {
18
- getUpdates: () => Promise<IpcRes<Record<"author" | "message" | "hash", string>[]>>;
16
+ getUpdates: () => Promise<IpcRes<Record<"message" | "author" | "hash", string>[]>>;
19
17
  update: () => Promise<IpcRes<boolean>>;
20
18
  rebuild: () => Promise<IpcRes<boolean>>;
21
19
  getRepo: () => Promise<IpcRes<string>>;
package/api/Badges.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { User } from "discord-types/general";
2
1
  import { ComponentType, HTMLProps } from "react";
3
2
  export declare const enum BadgePosition {
4
3
  START = 0,
@@ -22,23 +21,27 @@ export interface ProfileBadge {
22
21
  position?: BadgePosition;
23
22
  /** The badge name to display, Discord uses this. Required for component badges */
24
23
  key?: string;
24
+ /**
25
+ * Allows dynamically returning multiple badges
26
+ */
27
+ getBadges?(userInfo: BadgeUserArgs): ProfileBadge[];
25
28
  }
26
29
  /**
27
30
  * Register a new badge with the Badges API
28
31
  * @param badge The badge to register
29
32
  */
30
- export declare function addBadge(badge: ProfileBadge): void;
33
+ export declare function addProfileBadge(badge: ProfileBadge): void;
31
34
  /**
32
35
  * Unregister a badge from the Badges API
33
36
  * @param badge The badge to remove
34
37
  */
35
- export declare function removeBadge(badge: ProfileBadge): boolean;
38
+ export declare function removeProfileBadge(badge: ProfileBadge): boolean;
36
39
  /**
37
40
  * Inject badges into the profile badges array.
38
41
  * You probably don't need to use this.
39
42
  */
40
43
  export declare function _getBadges(args: BadgeUserArgs): ProfileBadge[];
41
44
  export interface BadgeUserArgs {
42
- user: User;
45
+ userId: string;
43
46
  guildId: string;
44
47
  }
@@ -1,6 +1,6 @@
1
1
  import "./ChatButton.css";
2
2
  import { Channel } from "discord-types/general";
3
- import { HTMLProps, MouseEventHandler, ReactNode } from "react";
3
+ import { HTMLProps, JSX, MouseEventHandler, ReactNode } from "react";
4
4
  export interface ChatBarProps {
5
5
  channel: Channel;
6
6
  disabled: boolean;
@@ -58,17 +58,18 @@ export interface ChatBarProps {
58
58
  sedReplace: boolean;
59
59
  };
60
60
  }
61
- export type ChatBarButton = (props: ChatBarProps & {
61
+ export type ChatBarButtonFactory = (props: ChatBarProps & {
62
62
  isMainChat: boolean;
63
63
  }) => JSX.Element | null;
64
64
  export declare function _injectButtons(buttons: ReactNode[], props: ChatBarProps): void;
65
- export declare const addChatBarButton: (id: string, button: ChatBarButton) => Map<string, ChatBarButton>;
65
+ export declare const addChatBarButton: (id: string, button: ChatBarButtonFactory) => Map<string, ChatBarButtonFactory>;
66
66
  export declare const removeChatBarButton: (id: string) => boolean;
67
67
  export interface ChatBarButtonProps {
68
68
  children: ReactNode;
69
69
  tooltip: string;
70
70
  onClick: MouseEventHandler<HTMLButtonElement>;
71
71
  onContextMenu?: MouseEventHandler<HTMLButtonElement>;
72
- buttonProps?: Omit<HTMLProps<HTMLButtonElement>, "size" | "onClick" | "onContextMenu">;
72
+ onAuxClick?: MouseEventHandler<HTMLButtonElement>;
73
+ buttonProps?: Omit<HTMLProps<HTMLButtonElement>, "size" | "onClick" | "onContextMenu" | "onAuxClick">;
73
74
  }
74
75
  export declare const ChatBarButton: import("react").FunctionComponent<ChatBarButtonProps>;
@@ -65,8 +65,10 @@ export interface Command {
65
65
  plugin?: string;
66
66
  isVencordCommand?: boolean;
67
67
  name: string;
68
+ untranslatedName?: string;
68
69
  displayName?: string;
69
70
  description: string;
71
+ untranslatedDescription?: string;
70
72
  displayDescription?: string;
71
73
  options?: Option[];
72
74
  predicate?(ctx: CommandContext): boolean;
@@ -3,13 +3,13 @@ import type { ReactElement } from "react";
3
3
  * @param children The rendered context menu elements
4
4
  * @param args Any arguments passed into making the context menu, like the guild, channel, user or message for example
5
5
  */
6
- export type NavContextMenuPatchCallback = (children: Array<ReactElement | null>, ...args: Array<any>) => void;
6
+ export type NavContextMenuPatchCallback = (children: Array<ReactElement<any> | null>, ...args: Array<any>) => void;
7
7
  /**
8
8
  * @param navId The navId of the context menu being patched
9
9
  * @param children The rendered context menu elements
10
10
  * @param args Any arguments passed into making the context menu, like the guild, channel, user or message for example
11
11
  */
12
- export type GlobalContextMenuPatchCallback = (navId: string, children: Array<ReactElement | null>, ...args: Array<any>) => void;
12
+ export type GlobalContextMenuPatchCallback = (navId: string, children: Array<ReactElement<any> | null>, ...args: Array<any>) => void;
13
13
  export declare const navPatches: Map<string, Set<NavContextMenuPatchCallback>>;
14
14
  export declare const globalPatches: Set<GlobalContextMenuPatchCallback>;
15
15
  /**
@@ -40,12 +40,13 @@ export declare function removeGlobalContextMenuPatch(patch: GlobalContextMenuPat
40
40
  * A helper function for finding the children array of a group nested inside a context menu based on the id(s) of its children
41
41
  * @param id The id of the child. If an array is specified, all ids will be tried
42
42
  * @param children The context menu children
43
+ * @param matchSubstring Whether to check if the id is a substring of the child id
43
44
  */
44
- export declare function findGroupChildrenByChildId(id: string | string[], children: Array<ReactElement | null>): Array<ReactElement | null> | null;
45
+ export declare function findGroupChildrenByChildId(id: string | string[], children: Array<ReactElement<any> | null | undefined>, matchSubstring?: boolean): Array<ReactElement<any> | null | undefined> | null;
45
46
  interface ContextMenuProps {
46
- contextMenuApiArguments?: Array<any>;
47
+ contextMenuAPIArguments?: Array<any>;
47
48
  navId: string;
48
- children: Array<ReactElement | null>;
49
+ children: Array<ReactElement<any> | null>;
49
50
  "aria-label": string;
50
51
  onSelect: (() => void) | undefined;
51
52
  onClose: (callback: (...args: Array<any>) => any) => void;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { Channel, User } from "discord-types/general/index.js";
2
+ import { JSX } from "react";
3
3
  interface DecoratorProps {
4
4
  activities: any[];
5
5
  channel: Channel;
@@ -20,13 +20,13 @@ interface DecoratorProps {
20
20
  user: User;
21
21
  [key: string]: any;
22
22
  }
23
- export type Decorator = (props: DecoratorProps) => JSX.Element | null;
23
+ export type MemberListDecoratorFactory = (props: DecoratorProps) => JSX.Element | null;
24
24
  type OnlyIn = "guilds" | "dms";
25
- export declare const decorators: Map<string, {
26
- decorator: Decorator;
27
- onlyIn?: OnlyIn | undefined;
25
+ export declare const decoratorsFactories: Map<string, {
26
+ render: MemberListDecoratorFactory;
27
+ onlyIn?: OnlyIn;
28
28
  }>;
29
- export declare function addDecorator(identifier: string, decorator: Decorator, onlyIn?: OnlyIn): void;
30
- export declare function removeDecorator(identifier: string): void;
31
- export declare function __getDecorators(props: DecoratorProps): (JSX.Element | null)[];
29
+ export declare function addMemberListDecorator(identifier: string, render: MemberListDecoratorFactory, onlyIn?: OnlyIn): void;
30
+ export declare function removeMemberListDecorator(identifier: string): void;
31
+ export declare function __getDecorators(props: DecoratorProps): JSX.Element;
32
32
  export {};
@@ -1,10 +1,10 @@
1
- /// <reference types="react" />
2
- export type AccessoryCallback = (props: Record<string, any>) => JSX.Element | null | Array<JSX.Element | null>;
3
- export type Accessory = {
4
- callback: AccessoryCallback;
1
+ import { JSX, ReactNode } from "react";
2
+ export type MessageAccessoryFactory = (props: Record<string, any>) => ReactNode;
3
+ export type MessageAccessory = {
4
+ render: MessageAccessoryFactory;
5
5
  position?: number;
6
6
  };
7
- export declare const accessories: Map<String, Accessory>;
8
- export declare function addAccessory(identifier: string, callback: AccessoryCallback, position?: number): void;
9
- export declare function removeAccessory(identifier: string): void;
7
+ export declare const accessories: Map<string, MessageAccessory>;
8
+ export declare function addMessageAccessory(identifier: string, render: MessageAccessoryFactory, position?: number): void;
9
+ export declare function removeMessageAccessory(identifier: string): void;
10
10
  export declare function _modifyAccessories(elements: JSX.Element[], props: Record<string, any>): JSX.Element[];
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { Channel, Message } from "discord-types/general/index.js";
3
- interface DecorationProps {
2
+ import { JSX } from "react";
3
+ export interface MessageDecorationProps {
4
4
  author: {
5
5
  /**
6
6
  * Will be username if the user has no nickname
@@ -26,9 +26,8 @@ interface DecorationProps {
26
26
  message: Message;
27
27
  [key: string]: any;
28
28
  }
29
- export type Decoration = (props: DecorationProps) => JSX.Element | null;
30
- export declare const decorations: Map<string, Decoration>;
31
- export declare function addDecoration(identifier: string, decoration: Decoration): void;
32
- export declare function removeDecoration(identifier: string): void;
33
- export declare function __addDecorationsToMessage(props: DecorationProps): (JSX.Element | null)[];
34
- export {};
29
+ export type MessageDecorationFactory = (props: MessageDecorationProps) => JSX.Element | null;
30
+ export declare const decorationsFactories: Map<string, MessageDecorationFactory>;
31
+ export declare function addMessageDecoration(identifier: string, decoration: MessageDecorationFactory): void;
32
+ export declare function removeMessageDecoration(identifier: string): void;
33
+ export declare function __addDecorationsToMessage(props: MessageDecorationProps): JSX.Element;
@@ -46,10 +46,10 @@ export interface MessageExtra {
46
46
  type?: any;
47
47
  openWarningPopout: (props: any) => any;
48
48
  }
49
- export type SendListener = (channelId: string, messageObj: MessageObject, extra: MessageExtra) => Promisable<void | {
49
+ export type MessageSendListener = (channelId: string, messageObj: MessageObject, extra: MessageExtra) => Promisable<void | {
50
50
  cancel: boolean;
51
51
  }>;
52
- export type EditListener = (channelId: string, messageId: string, messageObj: MessageObject) => Promisable<void | {
52
+ export type MessageEditListener = (channelId: string, messageId: string, messageObj: MessageObject) => Promisable<void | {
53
53
  cancel: boolean;
54
54
  }>;
55
55
  export declare function _handlePreSend(channelId: string, messageObj: MessageObject, extra: MessageExtra, replyOptions: MessageReplyOptions): Promise<boolean>;
@@ -57,15 +57,14 @@ export declare function _handlePreEdit(channelId: string, messageId: string, mes
57
57
  /**
58
58
  * Note: This event fires off before a message is sent, allowing you to edit the message.
59
59
  */
60
- export declare function addPreSendListener(listener: SendListener): SendListener;
60
+ export declare function addMessagePreSendListener(listener: MessageSendListener): MessageSendListener;
61
61
  /**
62
62
  * Note: This event fires off before a message's edit is applied, allowing you to further edit the message.
63
63
  */
64
- export declare function addPreEditListener(listener: EditListener): EditListener;
65
- export declare function removePreSendListener(listener: SendListener): boolean;
66
- export declare function removePreEditListener(listener: EditListener): boolean;
67
- type ClickListener = (message: Message, channel: Channel, event: MouseEvent) => void;
64
+ export declare function addMessagePreEditListener(listener: MessageEditListener): MessageEditListener;
65
+ export declare function removeMessagePreSendListener(listener: MessageSendListener): boolean;
66
+ export declare function removeMessagePreEditListener(listener: MessageEditListener): boolean;
67
+ export type MessageClickListener = (message: Message, channel: Channel, event: MouseEvent) => void;
68
68
  export declare function _handleClick(message: Message, channel: Channel, event: MouseEvent): void;
69
- export declare function addClickListener(listener: ClickListener): ClickListener;
70
- export declare function removeClickListener(listener: ClickListener): boolean;
71
- export {};
69
+ export declare function addMessageClickListener(listener: MessageClickListener): MessageClickListener;
70
+ export declare function removeMessageClickListener(listener: MessageClickListener): boolean;
@@ -1,16 +1,16 @@
1
1
  import { Channel, Message } from "discord-types/general";
2
- import type { MouseEventHandler } from "react";
3
- export interface ButtonItem {
2
+ import type { ComponentType, MouseEventHandler } from "react";
3
+ export interface MessagePopoverButtonItem {
4
4
  key?: string;
5
5
  label: string;
6
- icon: React.ComponentType<any>;
6
+ icon: ComponentType<any>;
7
7
  message: Message;
8
8
  channel: Channel;
9
9
  onClick?: MouseEventHandler<HTMLButtonElement>;
10
10
  onContextMenu?: MouseEventHandler<HTMLButtonElement>;
11
11
  }
12
- export type getButtonItem = (message: Message) => ButtonItem | null;
13
- export declare const buttons: Map<string, getButtonItem>;
14
- export declare function addButton(identifier: string, item: getButtonItem): void;
15
- export declare function removeButton(identifier: string): void;
16
- export declare function _buildPopoverElements(msg: Message, makeButton: (item: ButtonItem) => React.ComponentType): import("react").ComponentType<{}>[];
12
+ export type MessagePopoverButtonFactory = (message: Message) => MessagePopoverButtonItem | null;
13
+ export declare const buttons: Map<string, MessagePopoverButtonFactory>;
14
+ export declare function addMessagePopoverButton(identifier: string, item: MessagePopoverButtonFactory): void;
15
+ export declare function removeMessagePopoverButton(identifier: string): void;
16
+ export declare function _buildPopoverElements(Component: React.ComponentType<MessagePopoverButtonItem>, message: Message): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { Message } from "discord-types/general";
2
+ /**
3
+ * Update and re-render a message
4
+ * @param channelId The channel id of the message
5
+ * @param messageId The message id
6
+ * @param fields The fields of the message to change. Leave empty if you just want to re-render
7
+ */
8
+ export declare function updateMessage(channelId: string, messageId: string, fields?: Partial<Message & Record<string, any>>): void;
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  import "./styles.css";
3
2
  import { NotificationData } from "./Notifications";
4
3
  declare const _default: import("react").FunctionComponent<NotificationData & {
5
- className?: string | undefined;
4
+ className?: string;
6
5
  }>;
7
6
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { NotificationData } from "./Notifications";
3
2
  interface PersistentNotificationData extends Pick<NotificationData, "title" | "body" | "image" | "icon" | "color"> {
4
3
  timestamp: number;
@@ -10,6 +9,6 @@ export declare function useLogs(): readonly [PersistentNotificationData[], boole
10
9
  export declare function NotificationLog({ log, pending }: {
11
10
  log: PersistentNotificationData[];
12
11
  pending: boolean;
13
- }): JSX.Element;
12
+ }): import("react").JSX.Element;
14
13
  export declare function openNotificationLogModal(): void;
15
14
  export {};
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import { ComponentType } from "react";
2
2
  export declare const enum ServerListRenderPosition {
3
3
  Above = 0,
4
4
  In = 1
5
5
  }
6
- export declare function addServerListElement(position: ServerListRenderPosition, renderFunction: Function): void;
7
- export declare function removeServerListElement(position: ServerListRenderPosition, renderFunction: Function): void;
8
- export declare const renderAll: (position: ServerListRenderPosition) => JSX.Element[];
6
+ export declare function addServerListElement(position: ServerListRenderPosition, renderFunction: ComponentType): void;
7
+ export declare function removeServerListElement(position: ServerListRenderPosition, renderFunction: ComponentType): void;
8
+ export declare const renderAll: (position: ServerListRenderPosition) => import("react").JSX.Element[];
package/api/Settings.d.ts CHANGED
@@ -4,9 +4,10 @@ export interface Settings {
4
4
  autoUpdate: boolean;
5
5
  autoUpdateNotification: boolean;
6
6
  useQuickCss: boolean;
7
+ eagerPatches: boolean;
8
+ enabledThemes: string[];
7
9
  enableReactDevtools: boolean;
8
10
  themeLinks: string[];
9
- enabledThemes: string[];
10
11
  frameless: boolean;
11
12
  transparent: boolean;
12
13
  winCtrlQ: boolean;
@@ -57,6 +58,7 @@ export declare const Settings: Settings;
57
58
  */
58
59
  export declare function useSettings(paths?: UseSettings<Settings>[]): Settings;
59
60
  export declare function migratePluginSettings(name: string, ...oldNames: string[]): void;
61
+ export declare function migratePluginSetting(pluginName: string, oldSetting: string, newSetting: string): void;
60
62
  export declare function definePluginSettings<Def extends SettingsDefinition, Checks extends SettingsChecks<Def>, PrivateSettings extends object = {}>(def: Def, checks?: Checks): DefinedSettings<Def, Checks, PrivateSettings>;
61
63
  type UseSettings<T extends object> = ResolveUseSettings<T>[keyof T];
62
64
  type ResolveUseSettings<T extends object> = {
package/api/Styles.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="../src/globals" />
2
1
  import type { MapValue } from "type-fest/source/entry";
3
2
  export type Style = MapValue<typeof VencordStyles>;
4
3
  export declare const styleMap: Map<string, {
@@ -0,0 +1,40 @@
1
+ interface UserSettingDefinition<T> {
2
+ /**
3
+ * Get the setting value
4
+ */
5
+ getSetting(): T;
6
+ /**
7
+ * Update the setting value
8
+ * @param value The new value
9
+ */
10
+ updateSetting(value: T): Promise<void>;
11
+ /**
12
+ * Update the setting value
13
+ * @param value A callback that accepts the old value as the first argument, and returns the new value
14
+ */
15
+ updateSetting(value: (old: T) => T): Promise<void>;
16
+ /**
17
+ * Stateful React hook for this setting value
18
+ */
19
+ useSetting(): T;
20
+ userSettingsAPIGroup: string;
21
+ userSettingsAPIName: string;
22
+ }
23
+ export declare const UserSettings: Record<PropertyKey, UserSettingDefinition<any>> | undefined;
24
+ /**
25
+ * Get the setting with the given setting group and name.
26
+ *
27
+ * @param group The setting group
28
+ * @param name The name of the setting
29
+ */
30
+ export declare function getUserSetting<T = any>(group: string, name: string): UserSettingDefinition<T> | undefined;
31
+ /**
32
+ * {@link getUserSettingDefinition}, lazy.
33
+ *
34
+ * Get the setting with the given setting group and name.
35
+ *
36
+ * @param group The setting group
37
+ * @param name The name of the setting
38
+ */
39
+ export declare function getUserSettingLazy<T = any>(group: string, name: string): UserSettingDefinition<T> | undefined;
40
+ export {};
package/api/index.d.ts CHANGED
@@ -8,11 +8,13 @@ import * as $MessageAccessories from "./MessageAccessories";
8
8
  import * as $MessageDecorations from "./MessageDecorations";
9
9
  import * as $MessageEventsAPI from "./MessageEvents";
10
10
  import * as $MessagePopover from "./MessagePopover";
11
+ import * as $MessageUpdater from "./MessageUpdater";
11
12
  import * as $Notices from "./Notices";
12
13
  import * as $Notifications from "./Notifications";
13
14
  import * as $ServerList from "./ServerList";
14
15
  import * as $Settings from "./Settings";
15
16
  import * as $Styles from "./Styles";
17
+ import * as $UserSettings from "./UserSettings";
16
18
  /**
17
19
  * An API allowing you to listen to Message Clicks or run your own logic
18
20
  * before a message is sent
@@ -89,3 +91,11 @@ export declare const ContextMenu: typeof $ContextMenu;
89
91
  * An API allowing you to add buttons to the chat input
90
92
  */
91
93
  export declare const ChatButtons: typeof $ChatButtons;
94
+ /**
95
+ * An API allowing you to update and re-render messages
96
+ */
97
+ export declare const MessageUpdater: typeof $MessageUpdater;
98
+ /**
99
+ * An API allowing you to get an user setting
100
+ */
101
+ export declare const UserSettings: typeof $UserSettings;
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  export declare function Badge({ text, color }: {
3
2
  text: any;
4
3
  color: any;
5
- }): JSX.Element;
4
+ }): import("react").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface TextInputProps {
3
2
  /**
4
3
  * WARNING: Changing this between renders will have no effect!
@@ -19,5 +18,5 @@ interface TextInputProps {
19
18
  * A very simple wrapper around Discord's TextInput that validates input and shows
20
19
  * the user an error message and only calls your onChange when the input is valid
21
20
  */
22
- export declare function CheckedTextInput({ value: initialValue, onChange, validate }: TextInputProps): JSX.Element;
21
+ export declare function CheckedTextInput({ value: initialValue, onChange, validate }: TextInputProps): import("react").JSX.Element;
23
22
  export {};
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * Renders code in a Discord codeblock
4
3
  */
5
4
  export declare function CodeBlock(props: {
6
5
  content?: string;
7
6
  lang: string;
8
- }): JSX.Element;
7
+ }): import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export default function DonateButton(props: any): JSX.Element;
1
+ import { ButtonProps } from "../webpack/common/types";
2
+ export default function DonateButton({ look, color, ...props }: Partial<ButtonProps>): import("react").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface Props<T = any> {
3
2
  /** Render nothing if an error occurs */
4
3
  noop?: boolean;
@@ -7,6 +6,7 @@ interface Props<T = any> {
7
6
  error: any;
8
7
  message: string;
9
8
  stack: string;
9
+ wrappedProps: T;
10
10
  }>>;
11
11
  /** called when an error occurs. The props property is only available if using .wrap */
12
12
  onError?(data: {
@@ -19,7 +19,7 @@ interface Props<T = any> {
19
19
  /** The props passed to the wrapped component. Only used by wrap */
20
20
  wrappedProps?: T;
21
21
  }
22
- declare const ErrorBoundary: import("react").ComponentType<import("react").PropsWithChildren<Props<any>>> & {
22
+ declare const ErrorBoundary: React.ComponentType<React.PropsWithChildren<Props>> & {
23
23
  wrap<T extends object = any>(Component: React.ComponentType<T>, errorBoundaryProps?: Omit<Props<T>, "wrappedProps">): React.FunctionComponent<T>;
24
24
  };
25
25
  export default ErrorBoundary;
@@ -1,3 +1,3 @@
1
1
  import "./ErrorCard.css";
2
2
  import type { HTMLProps } from "react";
3
- export declare function ErrorCard(props: React.PropsWithChildren<HTMLProps<HTMLDivElement>>): JSX.Element;
3
+ export declare function ErrorCard(props: React.PropsWithChildren<HTMLProps<HTMLDivElement>>): import("react").JSX.Element;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  export declare function Flex(props: React.PropsWithChildren<{
3
2
  flexDirection?: React.CSSProperties["flexDirection"];
4
3
  style?: React.CSSProperties;
5
4
  className?: string;
6
- } & React.HTMLProps<HTMLDivElement>>): JSX.Element;
5
+ } & React.HTMLProps<HTMLDivElement>>): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { JSX } from "react";
2
+ interface Props {
3
+ columns: number;
4
+ gap?: string;
5
+ inline?: boolean;
6
+ }
7
+ export declare function Grid(props: Props & JSX.IntrinsicElements["div"]): JSX.Element;
8
+ export {};
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export declare function Heart(): JSX.Element;
1
+ import { SVGProps } from "react";
2
+ export declare function Heart(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
@@ -1,17 +1,12 @@
1
1
  import "./iconStyles.css";
2
- import type { SVGProps } from "react";
3
- interface IconProps extends SVGProps<SVGSVGElement> {
4
- className?: string;
5
- height?: string | number;
6
- width?: string | number;
7
- }
2
+ import type { JSX } from "react";
3
+ type IconProps = JSX.IntrinsicElements["svg"];
8
4
  /**
9
5
  * Discord's link icon, as seen in the Message context menu "Copy Message Link" option
10
6
  */
11
7
  export declare function LinkIcon({ height, width, className }: IconProps): JSX.Element;
12
8
  /**
13
- * Discord's copy icon, as seen in the user popout right of the username when clicking
14
- * your own username in the bottom left user panel
9
+ * Discord's copy icon, as seen in the user panel popout on the right of the username and in large code blocks
15
10
  */
16
11
  export declare function CopyIcon(props: IconProps): JSX.Element;
17
12
  /**
@@ -33,4 +28,13 @@ export declare function ReplyIcon(props: IconProps): JSX.Element;
33
28
  export declare function DeleteIcon(props: IconProps): JSX.Element;
34
29
  export declare function PlusIcon(props: IconProps): JSX.Element;
35
30
  export declare function NoEntrySignIcon(props: IconProps): JSX.Element;
31
+ export declare function SafetyIcon(props: IconProps): JSX.Element;
32
+ export declare function NotesIcon(props: IconProps): JSX.Element;
33
+ export declare function FolderIcon(props: IconProps): JSX.Element;
34
+ export declare function LogIcon(props: IconProps): JSX.Element;
35
+ export declare function RestartIcon(props: IconProps): JSX.Element;
36
+ export declare function PaintbrushIcon(props: IconProps): JSX.Element;
37
+ export declare function PencilIcon(props: IconProps): JSX.Element;
38
+ export declare function GithubIcon(props: IconProps): JSX.Element;
39
+ export declare function WebsiteIcon(props: IconProps): JSX.Element;
36
40
  export {};
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  interface Props extends React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> {
3
2
  disabled?: boolean;
4
3
  }
5
- export declare function Link(props: React.PropsWithChildren<Props>): JSX.Element;
4
+ export declare function Link(props: React.PropsWithChildren<Props>): import("react").JSX.Element;
6
5
  export {};
@@ -0,0 +1,10 @@
1
+ import "./LinkIconButton.css";
2
+ export declare function GithubLinkIcon(): import("react").JSX.Element;
3
+ export declare function WebsiteLinkIcon(): import("react").JSX.Element;
4
+ interface Props {
5
+ text: string;
6
+ href: string;
7
+ }
8
+ export declare const WebsiteButton: (props: Props) => import("react").JSX.Element;
9
+ export declare const GithubButton: (props: Props) => import("react").JSX.Element;
10
+ export {};
@@ -1,9 +1,10 @@
1
- /// <reference types="react" />
1
+ import "./PluginModal.css";
2
2
  import { ModalProps } from "../../utils/modal";
3
3
  import { Plugin } from "../../utils/types";
4
4
  interface PluginModalProps extends ModalProps {
5
5
  plugin: Plugin;
6
6
  onRestartNeeded(): void;
7
7
  }
8
- export default function PluginModal({ plugin, onRestartNeeded, onClose, transitionState }: PluginModalProps): JSX.Element;
8
+ export default function PluginModal({ plugin, onRestartNeeded, onClose, transitionState }: PluginModalProps): import("react").JSX.Element;
9
+ export declare function openPluginModal(plugin: Plugin, onRestartNeeded?: (pluginName: string) => void): void;
9
10
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PluginOptionBoolean } from "../../../utils/types";
3
2
  import { ISettingElementProps } from ".";
4
- export declare function SettingBooleanComponent({ option, pluginSettings, definedSettings, id, onChange, onError }: ISettingElementProps<PluginOptionBoolean>): JSX.Element;
3
+ export declare function SettingBooleanComponent({ option, pluginSettings, definedSettings, id, onChange, onError }: ISettingElementProps<PluginOptionBoolean>): import("react").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PluginOptionComponent } from "../../../utils/types";
3
- import { ISettingElementProps } from ".";
4
- export declare function SettingCustomComponent({ option, onChange, onError }: ISettingElementProps<PluginOptionComponent>): JSX.Element;
2
+ import { ISettingCustomElementProps } from ".";
3
+ export declare function SettingCustomComponent({ option, onChange, onError }: ISettingCustomElementProps<PluginOptionComponent>): import("react").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PluginOptionNumber } from "../../../utils/types";
3
2
  import { ISettingElementProps } from ".";
4
- export declare function SettingNumericComponent({ option, pluginSettings, definedSettings, id, onChange, onError }: ISettingElementProps<PluginOptionNumber>): JSX.Element;
3
+ export declare function SettingNumericComponent({ option, pluginSettings, definedSettings, id, onChange, onError }: ISettingElementProps<PluginOptionNumber>): import("react").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PluginOptionSelect } from "../../../utils/types";
3
2
  import { ISettingElementProps } from ".";
4
- export declare function SettingSelectComponent({ option, pluginSettings, definedSettings, onChange, onError, id }: ISettingElementProps<PluginOptionSelect>): JSX.Element;
3
+ export declare function SettingSelectComponent({ option, pluginSettings, definedSettings, onChange, onError, id }: ISettingElementProps<PluginOptionSelect>): import("react").JSX.Element;
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  import { PluginOptionSlider } from "../../../utils/types";
3
2
  import { ISettingElementProps } from ".";
4
3
  export declare function makeRange(start: number, end: number, step?: number): number[];
5
- export declare function SettingSliderComponent({ option, pluginSettings, definedSettings, id, onChange, onError }: ISettingElementProps<PluginOptionSlider>): JSX.Element;
4
+ export declare function SettingSliderComponent({ option, pluginSettings, definedSettings, id, onChange, onError }: ISettingElementProps<PluginOptionSlider>): import("react").JSX.Element;