@vencord/types 1.11.5 → 1.13.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.
- package/Vencord.d.ts +1 -0
- package/VencordNative.d.ts +13 -2
- package/api/Badges.d.ts +3 -1
- package/api/ChatButtons.d.ts +1 -1
- package/api/Commands/commandHelpers.d.ts +3 -4
- package/api/Commands/index.d.ts +8 -7
- package/api/Commands/types.d.ts +3 -74
- package/api/MemberListDecorators.d.ts +7 -19
- package/api/MessageDecorations.d.ts +1 -1
- package/api/MessageEvents.d.ts +5 -29
- package/api/MessagePopover.d.ts +1 -1
- package/api/MessageUpdater.d.ts +1 -1
- package/api/Notices.d.ts +2 -1
- package/components/ErrorBoundary.d.ts +3 -2
- package/components/FormDivider.d.ts +4 -0
- package/components/FormSwitch.d.ts +14 -0
- package/components/index.d.ts +4 -2
- package/components/{VencordSettings → settings}/AddonCard.d.ts +1 -1
- package/components/{DonateButton.d.ts → settings/DonateButton.d.ts} +1 -1
- package/components/{Badge.d.ts → settings/PluginBadge.d.ts} +1 -1
- package/components/{VencordSettings/quickActions.d.ts → settings/QuickAction.d.ts} +1 -1
- package/components/{VencordSettings → settings}/SpecialCard.d.ts +1 -1
- package/components/settings/index.d.ts +7 -0
- package/components/{VencordSettings/shared.d.ts → settings/tabs/BaseTab.d.ts} +1 -3
- package/components/settings/tabs/index.d.ts +11 -0
- package/components/settings/tabs/patchHelper/FullPatchInput.d.ts +8 -0
- package/components/settings/tabs/patchHelper/PatchPreview.d.ts +9 -0
- package/components/settings/tabs/patchHelper/ReplacementInput.d.ts +5 -0
- package/components/settings/tabs/plugins/ContributorModal.d.ts +3 -0
- package/components/settings/tabs/plugins/PluginCard.d.ts +10 -0
- package/components/{PluginSettings → settings/tabs/plugins}/PluginModal.d.ts +4 -4
- package/components/settings/tabs/plugins/components/BooleanSetting.d.ts +3 -0
- package/components/settings/tabs/plugins/components/Common.d.ts +24 -0
- package/components/settings/tabs/plugins/components/ComponentSetting.d.ts +3 -0
- package/components/settings/tabs/plugins/components/NumberSetting.d.ts +3 -0
- package/components/settings/tabs/plugins/components/SelectSetting.d.ts +3 -0
- package/components/settings/tabs/plugins/components/SliderSetting.d.ts +3 -0
- package/components/settings/tabs/plugins/components/TextSetting.d.ts +3 -0
- package/components/settings/tabs/plugins/components/index.d.ts +5 -0
- package/components/settings/tabs/plugins/index.d.ts +6 -0
- package/components/settings/tabs/themes/CspErrorCard.d.ts +1 -0
- package/components/settings/tabs/themes/LocalThemesTab.d.ts +1 -0
- package/components/settings/tabs/themes/OnlineThemesTab.d.ts +1 -0
- package/components/settings/tabs/themes/ThemeCard.d.ts +9 -0
- package/components/{VencordSettings/ThemesTab.d.ts → settings/tabs/themes/index.d.ts} +1 -0
- package/components/settings/tabs/updater/Components.d.ts +15 -0
- package/components/settings/tabs/updater/runWithDispatch.d.ts +1 -0
- package/components/settings/tabs/vencord/DonateButton.d.ts +2 -0
- package/components/settings/tabs/vencord/MacVibrancySettings.d.ts +1 -0
- package/components/settings/tabs/vencord/NotificationSettings.d.ts +2 -0
- package/modules.d.ts +1 -8
- package/nativeModules.d.ts +12 -0
- package/package.json +9 -5
- package/plugins/_api/badges/index.d.ts +13 -6
- package/plugins/_api/chatButtons.d.ts +2 -2
- package/plugins/_api/commands.d.ts +1 -1
- package/plugins/_api/contextMenu.d.ts +1 -1
- package/plugins/_api/dynamicImageModalApi.d.ts +2 -2
- package/plugins/_api/memberListDecorators/index.d.ts +1 -1
- package/plugins/_api/menuItemDemangler.d.ts +1 -1
- package/plugins/_api/messageAccessories.d.ts +1 -1
- package/plugins/_api/messageDecorations/index.d.ts +1 -1
- package/plugins/_api/messageEvents.d.ts +1 -1
- package/plugins/_api/messagePopover.d.ts +1 -1
- package/plugins/_api/messageUpdater.d.ts +1 -1
- package/plugins/_api/notices.d.ts +12 -3
- package/plugins/_api/serverList.d.ts +1 -1
- package/plugins/_api/userSettings.d.ts +1 -1
- package/plugins/_core/noTrack.d.ts +4 -1
- package/plugins/_core/settings.d.ts +2 -2
- package/plugins/_core/supportHelper.d.ts +3 -3
- package/plugins/accountPanelServerProfile/index.d.ts +6 -6
- package/plugins/alwaysAnimate/index.d.ts +1 -9
- package/plugins/alwaysExpandRoles/index.d.ts +1 -1
- package/plugins/alwaysTrust/index.d.ts +1 -1
- package/plugins/anonymiseFileNames/index.d.ts +18 -17
- package/plugins/appleMusic.desktop/index.d.ts +29 -28
- package/plugins/arRPC.web/index.d.ts +2 -1
- package/plugins/{partyMode → autoDndWhilePlaying.discordDesktop}/index.d.ts +17 -27
- package/plugins/betterFolders/index.d.ts +31 -9
- package/plugins/betterGifAltText/index.d.ts +1 -1
- package/plugins/betterGifPicker/index.d.ts +1 -1
- package/plugins/betterNotes/index.d.ts +1 -1
- package/plugins/betterRoleContext/index.d.ts +1 -1
- package/plugins/betterRoleDot/index.d.ts +1 -1
- package/plugins/betterSessions/components/icons.d.ts +1 -1
- package/plugins/betterSessions/index.d.ts +1 -1
- package/plugins/betterSessions/utils.d.ts +1 -1
- package/plugins/betterSettings/index.d.ts +2 -2
- package/plugins/betterUploadButton/index.d.ts +9 -2
- package/plugins/biggerStreamPreview/index.d.ts +2 -2
- package/plugins/biggerStreamPreview/webpack/types/stores.d.ts +1 -1
- package/plugins/blurNsfw/index.d.ts +1 -1
- package/plugins/callTimer/index.d.ts +2 -1
- package/plugins/clearURLs/index.d.ts +13 -6
- package/plugins/clientTheme/components/Settings.d.ts +2 -0
- package/plugins/clientTheme/index.d.ts +30 -8
- package/plugins/clientTheme/utils/colorUtils.d.ts +6 -0
- package/plugins/clientTheme/utils/styleUtils.d.ts +3 -0
- package/plugins/colorSighted/index.d.ts +1 -1
- package/plugins/consoleJanitor/index.d.ts +21 -2
- package/plugins/consoleShortcuts/index.d.ts +2 -2
- package/plugins/copyEmojiMarkdown/index.d.ts +1 -1
- package/plugins/copyFileContents/index.d.ts +1 -1
- package/plugins/copyStickerLinks/index.d.ts +14 -0
- package/plugins/copyUserURLs/index.d.ts +1 -1
- package/plugins/crashHandler/index.d.ts +1 -1
- package/plugins/ctrlEnterSend/index.d.ts +3 -9
- package/plugins/{customidle → customIdle}/index.d.ts +1 -2
- package/plugins/customRPC/index.d.ts +3 -9
- package/plugins/dearrow/index.d.ts +1 -1
- package/plugins/decor/index.d.ts +1 -1
- package/plugins/decor/lib/stores/UsersDecorationsStore.d.ts +1 -1
- package/plugins/decor/ui/components/index.d.ts +1 -1
- package/plugins/devCompanion.dev/index.d.ts +1 -1
- package/plugins/disableCallIdle/index.d.ts +1 -1
- package/plugins/dontRoundMyTimestamps/index.d.ts +1 -1
- package/plugins/experiments/index.d.ts +8 -1
- package/plugins/{emoteCloner → expressionCloner}/index.d.ts +1 -1
- package/plugins/f8break/index.d.ts +1 -1
- package/plugins/fakeNitro/index.d.ts +3 -4
- package/plugins/fakeProfileThemes/index.d.ts +4 -6
- package/plugins/favEmojiFirst/index.d.ts +2 -2
- package/plugins/favGifSearch/index.d.ts +4 -6
- package/plugins/fixCodeblockGap/index.d.ts +1 -1
- package/plugins/fixImagesQuality/index.d.ts +1 -1
- package/plugins/fixSpotifyEmbeds.desktop/index.d.ts +1 -1
- package/plugins/fixYoutubeEmbeds.desktop/index.d.ts +1 -1
- package/plugins/forceOwnerCrown/index.d.ts +2 -2
- package/plugins/friendInvites/index.d.ts +2 -2
- package/plugins/friendsSince/index.d.ts +1 -1
- package/plugins/fullSearchContext/index.d.ts +2 -2
- package/plugins/fullUserInChatbox/index.d.ts +1 -1
- package/plugins/gameActivityToggle/index.d.ts +4 -2
- package/plugins/gifPaste/index.d.ts +1 -1
- package/plugins/greetStickerPicker/index.d.ts +2 -2
- package/plugins/hideAttachments/index.d.ts +5 -4
- package/plugins/iLoveSpam/index.d.ts +1 -1
- package/plugins/ignoreActivities/index.d.ts +10 -2
- package/plugins/{banger → imageFilename}/index.d.ts +9 -11
- package/plugins/imageLink/index.d.ts +1 -1
- package/plugins/imageZoom/index.d.ts +3 -3
- package/plugins/implicitRelationships/index.d.ts +1 -1
- package/plugins/invisibleChat.desktop/index.d.ts +4 -3
- package/plugins/ircColors/index.d.ts +16 -2
- package/plugins/keepCurrentChannel/index.d.ts +1 -1
- package/plugins/{lastfm → lastfmRichPresence}/index.d.ts +28 -23
- package/plugins/loadingQuotes/index.d.ts +1 -1
- package/plugins/memberCount/CircleIcon.d.ts +3 -0
- package/plugins/memberCount/OnlineMemberCountStore.d.ts +11 -9
- package/plugins/memberCount/VoiceIcon.d.ts +3 -0
- package/plugins/memberCount/index.d.ts +59 -8
- package/plugins/mentionAvatars/index.d.ts +2 -2
- package/plugins/messageClickActions/index.d.ts +2 -2
- package/plugins/messageLatency/index.d.ts +7 -2
- package/plugins/messageLinkEmbeds/index.d.ts +1 -1
- package/plugins/messageLogger/index.d.ts +9 -2
- package/plugins/messageTags/index.d.ts +2 -2
- package/plugins/mutualGroupDMs/index.d.ts +3 -2
- package/plugins/newGuildSettings/index.d.ts +1 -1
- package/plugins/noBlockedMessages/index.d.ts +3 -3
- package/plugins/{nsfwGateBypass → noDeepLinks.web}/index.d.ts +4 -2
- package/plugins/noDevtoolsWarning/index.d.ts +1 -1
- package/plugins/noF1/index.d.ts +1 -1
- package/plugins/noMaskedUrlPaste/index.d.ts +1 -1
- package/plugins/noMosaic/index.d.ts +1 -1
- package/plugins/noOnboardingDelay/index.d.ts +1 -1
- package/plugins/noPendingCount/index.d.ts +10 -3
- package/plugins/noProfileThemes/index.d.ts +1 -1
- package/plugins/noReplyMention/index.d.ts +12 -2
- package/plugins/noServerEmojis/index.d.ts +1 -1
- package/plugins/noSystemBadge.discordDesktop/index.d.ts +1 -1
- package/plugins/noTypingAnimation/index.d.ts +2 -2
- package/plugins/noUnblockToJump/index.d.ts +2 -2
- package/plugins/normalizeMessageLinks/index.d.ts +1 -1
- package/plugins/notificationVolume/index.d.ts +1 -1
- package/plugins/onePingPerDM/index.d.ts +2 -2
- package/plugins/oneko/index.d.ts +1 -1
- package/plugins/openInApp/index.d.ts +3 -7
- package/plugins/overrideForumDefaults/index.d.ts +1 -1
- package/plugins/pauseInvitesForever/index.d.ts +1 -1
- package/plugins/permissionFreeWill/index.d.ts +1 -1
- package/plugins/permissionsViewer/components/RolesAndUsersPermissions.d.ts +1 -1
- package/plugins/permissionsViewer/components/UserPermissions.d.ts +1 -1
- package/plugins/permissionsViewer/index.d.ts +2 -2
- package/plugins/permissionsViewer/utils.d.ts +2 -2
- package/plugins/petpet/index.d.ts +4 -3
- package/plugins/pictureInPicture/index.d.ts +1 -1
- package/plugins/pinDms/index.d.ts +2 -2
- package/plugins/plainFolderIcon/index.d.ts +3 -2
- package/plugins/platformIndicators/index.d.ts +1 -1
- package/plugins/previewMessage/index.d.ts +1 -1
- package/plugins/quickMention/index.d.ts +4 -4
- package/plugins/quickReply/index.d.ts +14 -3
- package/plugins/reactErrorDecoder/index.d.ts +3 -3
- package/plugins/readAllNotificationsButton/index.d.ts +1 -1
- package/plugins/relationshipNotifier/index.d.ts +1 -1
- package/plugins/relationshipNotifier/types.d.ts +1 -4
- package/plugins/relationshipNotifier/utils.d.ts +1 -1
- package/plugins/replaceGoogleSearch/index.d.ts +1 -1
- package/plugins/replyTimestamp/index.d.ts +2 -2
- package/plugins/revealAllSpoilers/index.d.ts +1 -1
- package/plugins/reverseImageSearch/index.d.ts +1 -1
- package/plugins/reviewDB/components/ReviewComponent.d.ts +2 -2
- package/plugins/reviewDB/index.d.ts +2 -2
- package/plugins/roleColorEverywhere/index.d.ts +1 -1
- package/plugins/secretRingTone/index.d.ts +1 -1
- package/plugins/seeSummaries/index.d.ts +1 -1
- package/plugins/sendTimestamps/index.d.ts +1 -1
- package/plugins/serverInfo/GuildInfoModal.d.ts +1 -1
- package/plugins/serverInfo/index.d.ts +1 -1
- package/plugins/serverListIndicators/index.d.ts +1 -1
- package/plugins/shikiCodeblocks.desktop/api/languages.d.ts +3 -3
- package/plugins/shikiCodeblocks.desktop/components/ButtonRow.d.ts +1 -2
- package/plugins/shikiCodeblocks.desktop/components/Highlighter.d.ts +1 -2
- package/plugins/shikiCodeblocks.desktop/hooks/useShikiSettings.d.ts +2 -8
- package/plugins/shikiCodeblocks.desktop/index.d.ts +2 -4
- package/plugins/showAllMessageButtons/index.d.ts +1 -1
- package/plugins/showConnections/index.d.ts +2 -2
- package/plugins/showHiddenChannels/components/HiddenChannelLockScreen.d.ts +1 -1
- package/plugins/showHiddenChannels/index.d.ts +5 -4
- package/plugins/showHiddenThings/index.d.ts +5 -1
- package/plugins/showMeYourName/index.d.ts +30 -2
- package/plugins/showTimeoutDuration/index.d.ts +2 -2
- package/plugins/silentMessageToggle/index.d.ts +1 -1
- package/plugins/silentTyping/index.d.ts +2 -2
- package/plugins/sortFriendRequests/index.d.ts +2 -2
- package/plugins/spotifyControls/SeekBar.d.ts +31 -0
- package/plugins/spotifyControls/SpotifyStore.d.ts +11 -9
- package/plugins/spotifyControls/index.d.ts +1 -1
- package/plugins/spotifyCrack/index.d.ts +1 -1
- package/plugins/spotifyShareCommands/index.d.ts +3 -9
- package/plugins/startupTimings/index.d.ts +2 -2
- package/plugins/stickerPaste/index.d.ts +1 -1
- package/plugins/streamerModeOnStream/index.d.ts +1 -1
- package/plugins/superReactionTweaks/index.d.ts +10 -5
- package/plugins/textReplace/index.d.ts +1 -2
- package/plugins/themeAttributes/index.d.ts +3 -3
- package/plugins/translate/TranslationAccessory.d.ts +1 -1
- package/plugins/translate/index.d.ts +5 -4
- package/plugins/typingIndicator/index.d.ts +1 -1
- package/plugins/typingTweaks/index.d.ts +15 -13
- package/plugins/unindent/index.d.ts +1 -1
- package/plugins/unlockedAvatarZoom/index.d.ts +1 -1
- package/plugins/unsuppressEmbeds/index.d.ts +1 -1
- package/plugins/userMessagesPronouns/PronounsChatComponent.d.ts +1 -1
- package/plugins/userMessagesPronouns/index.d.ts +11 -5
- package/plugins/userVoiceShow/components.d.ts +1 -0
- package/plugins/userVoiceShow/index.d.ts +1 -1
- package/plugins/usrbg/index.d.ts +1 -1
- package/plugins/validReply/index.d.ts +2 -3
- package/plugins/validUser/index.d.ts +1 -1
- package/plugins/vcDoubleClick/index.d.ts +1 -1
- package/plugins/vcNarrator/VoiceSetting.d.ts +1 -0
- package/plugins/vcNarrator/index.d.ts +136 -9
- package/plugins/vcNarrator/settings.d.ts +135 -0
- package/plugins/vencordToolbox/index.d.ts +2 -5
- package/plugins/viewIcons/index.d.ts +2 -2
- package/plugins/viewRaw/index.d.ts +3 -3
- package/plugins/voiceDownload/index.d.ts +1 -1
- package/plugins/voiceMessages/index.d.ts +1 -1
- package/plugins/volumeBooster/index.d.ts +1 -1
- package/plugins/webContextMenus.web/index.d.ts +5 -3
- package/plugins/webKeybinds.web/index.d.ts +1 -1
- package/plugins/webScreenShareFixes.web/index.d.ts +6 -3
- package/plugins/whoReacted/index.d.ts +2 -3
- package/plugins/xsOverlay/index.d.ts +2 -2
- package/plugins/youtubeAdblock.desktop/index.d.ts +1 -1
- package/shared/IpcEvents.d.ts +13 -10
- package/utils/clipboard.d.ts +1 -0
- package/utils/cloud.d.ts +1 -0
- package/utils/constants.d.ts +19 -3
- package/utils/cspViolations.d.ts +2 -0
- package/utils/dependencies.d.ts +1 -1
- package/utils/discord.d.ts +25 -5
- package/utils/index.d.ts +2 -0
- package/utils/lazyReact.d.ts +5 -2
- package/utils/misc.d.ts +2 -1
- package/utils/modal.d.ts +10 -11
- package/utils/quickCss.d.ts +1 -1
- package/utils/react.d.ts +6 -1
- package/utils/types.d.ts +22 -26
- package/utils/web.d.ts +1 -0
- package/webpack/common/FormText.d.ts +2 -0
- package/webpack/common/classes.d.ts +1 -2
- package/webpack/common/components.d.ts +115 -54
- package/webpack/common/index.d.ts +0 -3
- package/webpack/common/internal.d.ts +2 -1
- package/webpack/common/menu.d.ts +1 -1
- package/webpack/common/react.d.ts +2 -1
- package/webpack/common/stores.d.ts +16 -23
- package/webpack/common/utils.d.ts +5 -7
- package/webpack/index.d.ts +1 -1
- package/webpack/patchWebpack.d.ts +1 -1
- package/webpack/types.d.ts +17 -0
- package/webpack/webpack.d.ts +9 -6
- package/components/PluginSettings/ContributorModal.d.ts +0 -3
- package/components/PluginSettings/components/SettingBooleanComponent.d.ts +0 -3
- package/components/PluginSettings/components/SettingCustomComponent.d.ts +0 -3
- package/components/PluginSettings/components/SettingNumericComponent.d.ts +0 -3
- package/components/PluginSettings/components/SettingSelectComponent.d.ts +0 -3
- package/components/PluginSettings/components/SettingSliderComponent.d.ts +0 -4
- package/components/PluginSettings/components/SettingTextComponent.d.ts +0 -3
- package/components/PluginSettings/components/index.d.ts +0 -21
- package/components/PluginSettings/index.d.ts +0 -12
- package/components/VencordSettings/NotificationSettings.d.ts +0 -2
- package/components/VencordSettings/VencordTab.d.ts +0 -2
- package/plugins/clearURLs/defaultRules.d.ts +0 -1
- package/plugins/moreCommands/index.d.ts +0 -25
- package/plugins/moreKaomoji/index.d.ts +0 -17
- package/plugins/moyai/index.d.ts +0 -113
- package/plugins/noRPC.discordDesktop/index.d.ts +0 -16
- package/plugins/youtubeAdblock.desktop/adguard.d.ts +0 -54
- package/utils/apng-canvas.d.ts +0 -1
- package/webpack/common/types/classes.d.ts +0 -39
- package/webpack/common/types/components.d.ts +0 -506
- package/webpack/common/types/fluxEvents.d.ts +0 -40
- package/webpack/common/types/index.d.ts +0 -24
- package/webpack/common/types/menu.d.ts +0 -96
- package/webpack/common/types/stores.d.ts +0 -235
- package/webpack/common/types/utils.d.ts +0 -337
- package/webpack/wreq.d.ts +0 -238
- /package/components/{VencordSettings/PatchHelperTab.d.ts → settings/tabs/patchHelper/index.d.ts} +0 -0
- /package/components/{PluginSettings → settings/tabs/plugins}/LinkIconButton.d.ts +0 -0
- /package/components/{VencordSettings → settings/tabs/sync}/BackupAndRestoreTab.d.ts +0 -0
- /package/components/{VencordSettings → settings/tabs/sync}/CloudTab.d.ts +0 -0
- /package/components/{VencordSettings/UpdaterTab.d.ts → settings/tabs/updater/index.d.ts} +0 -0
- /package/components/{VencordSettings/PluginsTab.d.ts → settings/tabs/vencord/index.d.ts} +0 -0
package/Vencord.d.ts
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
* You should have received a copy of the GNU General Public License
|
|
16
16
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
+
import "~plugins";
|
|
18
19
|
export * as Api from "./api";
|
|
19
20
|
export * as Components from "./components";
|
|
20
21
|
export * as Plugins from "./plugins";
|
package/VencordNative.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Settings } from "./api/Settings";
|
|
2
|
+
import { CspRequestResult } from "./main/csp/manager";
|
|
2
3
|
import type { UserThemeHeader } from "./main/themes";
|
|
3
4
|
import { IpcEvents } from "./shared/IpcEvents";
|
|
4
5
|
import { IpcRes } from "./utils/types";
|
|
@@ -7,10 +8,10 @@ declare const _default: {
|
|
|
7
8
|
themes: {
|
|
8
9
|
uploadTheme: (fileName: string, fileData: string) => Promise<void>;
|
|
9
10
|
deleteTheme: (fileName: string) => Promise<void>;
|
|
10
|
-
getThemesDir: () => Promise<string>;
|
|
11
11
|
getThemesList: () => Promise<UserThemeHeader[]>;
|
|
12
12
|
getThemeData: (fileName: string) => Promise<string | undefined>;
|
|
13
13
|
getSystemValues: () => Promise<Record<string, string>>;
|
|
14
|
+
openFolder: () => Promise<void>;
|
|
14
15
|
};
|
|
15
16
|
updater: {
|
|
16
17
|
getUpdates: () => Promise<IpcRes<Record<"message" | "author" | "hash", string>[]>>;
|
|
@@ -21,7 +22,7 @@ declare const _default: {
|
|
|
21
22
|
settings: {
|
|
22
23
|
get: () => Settings;
|
|
23
24
|
set: (settings: Settings, pathToNotify?: string) => Promise<void>;
|
|
24
|
-
|
|
25
|
+
openFolder: () => Promise<void>;
|
|
25
26
|
};
|
|
26
27
|
quickCss: {
|
|
27
28
|
get: () => Promise<string>;
|
|
@@ -35,6 +36,16 @@ declare const _default: {
|
|
|
35
36
|
getVersions: () => Partial<NodeJS.ProcessVersions>;
|
|
36
37
|
openExternal: (url: string) => Promise<void>;
|
|
37
38
|
};
|
|
39
|
+
csp: {
|
|
40
|
+
/**
|
|
41
|
+
* Note: Only supports full explicit matches, not wildcards.
|
|
42
|
+
*
|
|
43
|
+
* If `*.example.com` is allowed, `isDomainAllowed("https://sub.example.com")` will return false.
|
|
44
|
+
*/
|
|
45
|
+
isDomainAllowed: (url: string, directives: string[]) => Promise<boolean>;
|
|
46
|
+
removeOverride: (url: string) => Promise<boolean>;
|
|
47
|
+
requestAddOverride: (url: string, directives: string[], callerName: string) => Promise<CspRequestResult>;
|
|
48
|
+
};
|
|
38
49
|
pluginHelpers: Record<string, Record<string, (...args: any[]) => Promise<any>>>;
|
|
39
50
|
};
|
|
40
51
|
export default _default;
|
package/api/Badges.d.ts
CHANGED
|
@@ -12,7 +12,9 @@ export interface ProfileBadge {
|
|
|
12
12
|
image?: string;
|
|
13
13
|
link?: string;
|
|
14
14
|
/** Action to perform when you click the badge */
|
|
15
|
-
onClick?(event: React.MouseEvent
|
|
15
|
+
onClick?(event: React.MouseEvent, props: ProfileBadge & BadgeUserArgs): void;
|
|
16
|
+
/** Action to perform when you right click the badge */
|
|
17
|
+
onContextMenu?(event: React.MouseEvent, props: BadgeUserArgs & BadgeUserArgs): void;
|
|
16
18
|
/** Should the user display this badge? */
|
|
17
19
|
shouldShow?(userInfo: BadgeUserArgs): boolean;
|
|
18
20
|
/** Optional props (e.g. style) for the badge, ignored for component badges */
|
package/api/ChatButtons.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Message } from "discord-types
|
|
1
|
+
import { CommandArgument, Message } from "@vencord/discord-types";
|
|
2
2
|
import type { PartialDeep } from "type-fest";
|
|
3
|
-
import { Argument } from "./types";
|
|
4
3
|
export declare function generateId(): string;
|
|
5
4
|
/**
|
|
6
5
|
* Send a message as Clyde
|
|
@@ -16,5 +15,5 @@ export declare function sendBotMessage(channelId: string, message: PartialDeep<M
|
|
|
16
15
|
* @param fallbackValue Fallback value in case this option wasn't passed
|
|
17
16
|
* @returns Value
|
|
18
17
|
*/
|
|
19
|
-
export declare function findOption<T>(args:
|
|
20
|
-
export declare function findOption<T>(args:
|
|
18
|
+
export declare function findOption<T>(args: CommandArgument[], name: string): T & {} | undefined;
|
|
19
|
+
export declare function findOption<T>(args: CommandArgument[], name: string, fallbackValue: T): T & {};
|
package/api/Commands/index.d.ts
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CommandOption } from "@vencord/discord-types";
|
|
2
|
+
import { VencordCommand } from "./types";
|
|
2
3
|
export * from "./commandHelpers";
|
|
3
4
|
export * from "./types";
|
|
4
|
-
export declare let BUILT_IN:
|
|
5
|
-
export declare const commands: Record<string,
|
|
5
|
+
export declare let BUILT_IN: VencordCommand[];
|
|
6
|
+
export declare const commands: Record<string, VencordCommand>;
|
|
6
7
|
/**
|
|
7
8
|
* Optional message option named "message" you can use in commands.
|
|
8
9
|
* Used in "tableflip" or "shrug"
|
|
9
10
|
* @see {@link RequiredMessageOption}
|
|
10
11
|
*/
|
|
11
|
-
export declare let OptionalMessageOption:
|
|
12
|
+
export declare let OptionalMessageOption: CommandOption;
|
|
12
13
|
/**
|
|
13
14
|
* Required message option named "message" you can use in commands.
|
|
14
15
|
* Used in "me"
|
|
15
16
|
* @see {@link OptionalMessageOption}
|
|
16
17
|
*/
|
|
17
|
-
export declare let RequiredMessageOption:
|
|
18
|
+
export declare let RequiredMessageOption: CommandOption;
|
|
18
19
|
export declare const _init: never;
|
|
19
20
|
export declare const _handleCommand: never;
|
|
20
21
|
/**
|
|
21
22
|
* Prepare a Command Option for Discord by filling missing fields
|
|
22
23
|
* @param opt
|
|
23
24
|
*/
|
|
24
|
-
export declare function prepareOption<O extends
|
|
25
|
-
export declare function registerCommand<C extends
|
|
25
|
+
export declare function prepareOption<O extends CommandOption | VencordCommand>(opt: O): O;
|
|
26
|
+
export declare function registerCommand<C extends VencordCommand>(command: C, plugin: string): void;
|
|
26
27
|
export declare function unregisterCommand(name: string): boolean;
|
package/api/Commands/types.d.ts
CHANGED
|
@@ -1,76 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export interface
|
|
4
|
-
channel: Channel;
|
|
5
|
-
guild?: Guild;
|
|
6
|
-
}
|
|
7
|
-
export declare const enum ApplicationCommandOptionType {
|
|
8
|
-
SUB_COMMAND = 1,
|
|
9
|
-
SUB_COMMAND_GROUP = 2,
|
|
10
|
-
STRING = 3,
|
|
11
|
-
INTEGER = 4,
|
|
12
|
-
BOOLEAN = 5,
|
|
13
|
-
USER = 6,
|
|
14
|
-
CHANNEL = 7,
|
|
15
|
-
ROLE = 8,
|
|
16
|
-
MENTIONABLE = 9,
|
|
17
|
-
NUMBER = 10,
|
|
18
|
-
ATTACHMENT = 11
|
|
19
|
-
}
|
|
20
|
-
export declare const enum ApplicationCommandInputType {
|
|
21
|
-
BUILT_IN = 0,
|
|
22
|
-
BUILT_IN_TEXT = 1,
|
|
23
|
-
BUILT_IN_INTEGRATION = 2,
|
|
24
|
-
BOT = 3,
|
|
25
|
-
PLACEHOLDER = 4
|
|
26
|
-
}
|
|
27
|
-
export interface Option {
|
|
28
|
-
name: string;
|
|
29
|
-
displayName?: string;
|
|
30
|
-
type: ApplicationCommandOptionType;
|
|
31
|
-
description: string;
|
|
32
|
-
displayDescription?: string;
|
|
33
|
-
required?: boolean;
|
|
34
|
-
options?: Option[];
|
|
35
|
-
choices?: Array<ChoicesOption>;
|
|
36
|
-
}
|
|
37
|
-
export interface ChoicesOption {
|
|
38
|
-
label: string;
|
|
39
|
-
value: string;
|
|
40
|
-
name: string;
|
|
41
|
-
displayName?: string;
|
|
42
|
-
}
|
|
43
|
-
export declare const enum ApplicationCommandType {
|
|
44
|
-
CHAT_INPUT = 1,
|
|
45
|
-
USER = 2,
|
|
46
|
-
MESSAGE = 3
|
|
47
|
-
}
|
|
48
|
-
export interface CommandReturnValue {
|
|
49
|
-
content: string;
|
|
50
|
-
/** TODO: implement */
|
|
51
|
-
cancel?: boolean;
|
|
52
|
-
}
|
|
53
|
-
export interface Argument {
|
|
54
|
-
type: ApplicationCommandOptionType;
|
|
55
|
-
name: string;
|
|
56
|
-
value: string;
|
|
57
|
-
focused: undefined;
|
|
58
|
-
options: Argument[];
|
|
59
|
-
}
|
|
60
|
-
export interface Command {
|
|
61
|
-
id?: string;
|
|
62
|
-
applicationId?: string;
|
|
63
|
-
type?: ApplicationCommandType;
|
|
64
|
-
inputType?: ApplicationCommandInputType;
|
|
65
|
-
plugin?: string;
|
|
1
|
+
import { Command } from "@vencord/discord-types";
|
|
2
|
+
export { ApplicationCommandInputType, ApplicationCommandOptionType, ApplicationCommandType } from "@vencord/discord-types/enums";
|
|
3
|
+
export interface VencordCommand extends Command {
|
|
66
4
|
isVencordCommand?: boolean;
|
|
67
|
-
name: string;
|
|
68
|
-
untranslatedName?: string;
|
|
69
|
-
displayName?: string;
|
|
70
|
-
description: string;
|
|
71
|
-
untranslatedDescription?: string;
|
|
72
|
-
displayDescription?: string;
|
|
73
|
-
options?: Option[];
|
|
74
|
-
predicate?(ctx: CommandContext): boolean;
|
|
75
|
-
execute(args: Argument[], ctx: CommandContext): Promisable<void | CommandReturnValue>;
|
|
76
5
|
}
|
|
@@ -1,24 +1,12 @@
|
|
|
1
|
-
import { Channel, User } from "discord-types
|
|
1
|
+
import { Channel, User } from "@vencord/discord-types";
|
|
2
2
|
import { JSX } from "react";
|
|
3
3
|
interface DecoratorProps {
|
|
4
|
-
|
|
5
|
-
channel: Channel;
|
|
6
|
-
/**
|
|
7
|
-
* Only for DM members
|
|
8
|
-
*/
|
|
9
|
-
channelName?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Only for server members
|
|
12
|
-
*/
|
|
13
|
-
currentUser?: User;
|
|
14
|
-
guildId?: string;
|
|
15
|
-
isMobile: boolean;
|
|
16
|
-
isOwner?: boolean;
|
|
17
|
-
isTyping: boolean;
|
|
18
|
-
selected: boolean;
|
|
19
|
-
status: string;
|
|
4
|
+
type: "guild" | "dm";
|
|
20
5
|
user: User;
|
|
21
|
-
|
|
6
|
+
/** only present when this is a DM list item */
|
|
7
|
+
channel: Channel;
|
|
8
|
+
/** only present when this is a guild list item */
|
|
9
|
+
isOwner: boolean;
|
|
22
10
|
}
|
|
23
11
|
export type MemberListDecoratorFactory = (props: DecoratorProps) => JSX.Element | null;
|
|
24
12
|
type OnlyIn = "guilds" | "dms";
|
|
@@ -28,5 +16,5 @@ export declare const decoratorsFactories: Map<string, {
|
|
|
28
16
|
}>;
|
|
29
17
|
export declare function addMemberListDecorator(identifier: string, render: MemberListDecoratorFactory, onlyIn?: OnlyIn): void;
|
|
30
18
|
export declare function removeMemberListDecorator(identifier: string): void;
|
|
31
|
-
export declare function __getDecorators(props: DecoratorProps): JSX.Element;
|
|
19
|
+
export declare function __getDecorators(props: DecoratorProps, type: "guild" | "dm"): JSX.Element;
|
|
32
20
|
export {};
|
package/api/MessageEvents.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { CustomEmoji } from "
|
|
2
|
-
import type { Channel, Message } from "discord-types/general";
|
|
1
|
+
import type { Channel, CloudUpload, CustomEmoji, Message } from "@vencord/discord-types";
|
|
3
2
|
import type { Promisable } from "type-fest";
|
|
4
3
|
export interface MessageObject {
|
|
5
4
|
content: string;
|
|
@@ -7,29 +6,6 @@ export interface MessageObject {
|
|
|
7
6
|
invalidEmojis: any[];
|
|
8
7
|
tts: boolean;
|
|
9
8
|
}
|
|
10
|
-
export interface Upload {
|
|
11
|
-
classification: string;
|
|
12
|
-
currentSize: number;
|
|
13
|
-
description: string | null;
|
|
14
|
-
filename: string;
|
|
15
|
-
id: string;
|
|
16
|
-
isImage: boolean;
|
|
17
|
-
isVideo: boolean;
|
|
18
|
-
item: {
|
|
19
|
-
file: File;
|
|
20
|
-
platform: number;
|
|
21
|
-
};
|
|
22
|
-
loaded: number;
|
|
23
|
-
mimeType: string;
|
|
24
|
-
preCompressionSize: number;
|
|
25
|
-
responseUrl: string;
|
|
26
|
-
sensitive: boolean;
|
|
27
|
-
showLargeMessageDialog: boolean;
|
|
28
|
-
spoiler: boolean;
|
|
29
|
-
status: "NOT_STARTED" | "STARTED" | "UPLOADING" | "ERROR" | "COMPLETED" | "CANCELLED";
|
|
30
|
-
uniqueId: string;
|
|
31
|
-
uploadedFilename: string;
|
|
32
|
-
}
|
|
33
9
|
export interface MessageReplyOptions {
|
|
34
10
|
messageReference: Message["messageReference"];
|
|
35
11
|
allowedMentions?: {
|
|
@@ -37,22 +13,22 @@ export interface MessageReplyOptions {
|
|
|
37
13
|
repliedUser: boolean;
|
|
38
14
|
};
|
|
39
15
|
}
|
|
40
|
-
export interface
|
|
16
|
+
export interface MessageOptions {
|
|
41
17
|
stickers?: string[];
|
|
42
|
-
uploads?:
|
|
18
|
+
uploads?: CloudUpload[];
|
|
43
19
|
replyOptions: MessageReplyOptions;
|
|
44
20
|
content: string;
|
|
45
21
|
channel: Channel;
|
|
46
22
|
type?: any;
|
|
47
23
|
openWarningPopout: (props: any) => any;
|
|
48
24
|
}
|
|
49
|
-
export type MessageSendListener = (channelId: string, messageObj: MessageObject,
|
|
25
|
+
export type MessageSendListener = (channelId: string, messageObj: MessageObject, options: MessageOptions) => Promisable<void | {
|
|
50
26
|
cancel: boolean;
|
|
51
27
|
}>;
|
|
52
28
|
export type MessageEditListener = (channelId: string, messageId: string, messageObj: MessageObject) => Promisable<void | {
|
|
53
29
|
cancel: boolean;
|
|
54
30
|
}>;
|
|
55
|
-
export declare function _handlePreSend(channelId: string, messageObj: MessageObject,
|
|
31
|
+
export declare function _handlePreSend(channelId: string, messageObj: MessageObject, options: MessageOptions, replyOptions: MessageReplyOptions): Promise<boolean>;
|
|
56
32
|
export declare function _handlePreEdit(channelId: string, messageId: string, messageObj: MessageObject): Promise<boolean>;
|
|
57
33
|
/**
|
|
58
34
|
* Note: This event fires off before a message is sent, allowing you to edit the message.
|
package/api/MessagePopover.d.ts
CHANGED
package/api/MessageUpdater.d.ts
CHANGED
package/api/Notices.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
1
2
|
export declare const noticesQueue: any[];
|
|
2
3
|
export declare let currentNotice: any;
|
|
3
4
|
export declare function popNotice(): void;
|
|
4
5
|
export declare function nextNotice(): void;
|
|
5
|
-
export declare function showNotice(message:
|
|
6
|
+
export declare function showNotice(message: ReactNode, buttonText: string, onOkClick: () => void): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LazyComponentWrapper } from "../utils/lazyReact";
|
|
1
2
|
interface Props<T = any> {
|
|
2
3
|
/** Render nothing if an error occurs */
|
|
3
4
|
noop?: boolean;
|
|
@@ -19,7 +20,7 @@ interface Props<T = any> {
|
|
|
19
20
|
/** The props passed to the wrapped component. Only used by wrap */
|
|
20
21
|
wrappedProps?: T;
|
|
21
22
|
}
|
|
22
|
-
declare const ErrorBoundary: React.ComponentType<React.PropsWithChildren<Props>> & {
|
|
23
|
+
declare const ErrorBoundary: LazyComponentWrapper<React.ComponentType<React.PropsWithChildren<Props>> & {
|
|
23
24
|
wrap<T extends object = any>(Component: React.ComponentType<T>, errorBoundaryProps?: Omit<Props<T>, "wrappedProps">): React.FunctionComponent<T>;
|
|
24
|
-
}
|
|
25
|
+
}>;
|
|
25
26
|
export default ErrorBoundary;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "./FormSwitch.css";
|
|
2
|
+
import type { PropsWithChildren, ReactNode } from "react";
|
|
3
|
+
export interface FormSwitchProps {
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
description?: ReactNode;
|
|
6
|
+
value: boolean;
|
|
7
|
+
onChange(value: boolean): void;
|
|
8
|
+
className?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
hideBorder?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function FormSwitch({ onChange, title, value, description, disabled, className, hideBorder }: FormSwitchProps): import("react").JSX.Element;
|
|
13
|
+
/** Compatibility with Discord's old FormSwitch */
|
|
14
|
+
export declare function FormSwitchCompat(props: PropsWithChildren<any>): import("react").JSX.Element;
|
package/components/index.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
export * from "./Badge";
|
|
2
1
|
export * from "./CheckedTextInput";
|
|
3
2
|
export * from "./CodeBlock";
|
|
4
|
-
export * from "./DonateButton";
|
|
5
3
|
export { default as ErrorBoundary } from "./ErrorBoundary";
|
|
6
4
|
export * from "./ErrorCard";
|
|
7
5
|
export * from "./Flex";
|
|
6
|
+
export * from "./FormDivider";
|
|
7
|
+
export * from "./FormSwitch";
|
|
8
|
+
export * from "./Grid";
|
|
8
9
|
export * from "./Heart";
|
|
9
10
|
export * from "./Icons";
|
|
10
11
|
export * from "./Link";
|
|
12
|
+
export * from "./settings";
|
|
11
13
|
export * from "./Switch";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ButtonProps } from "
|
|
1
|
+
import { ButtonProps } from "@vencord/discord-types";
|
|
2
2
|
export default function DonateButton({ look, color, ...props }: Partial<ButtonProps>): import("react").JSX.Element;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "./themesStyles.css";
|
|
3
|
-
import { handleComponentFailed } from "../handleComponentFailed";
|
|
1
|
+
import { handleComponentFailed } from "../../handleComponentFailed";
|
|
4
2
|
import type { ComponentType, PropsWithChildren } from "react";
|
|
5
3
|
export declare function SettingsTab({ title, children }: PropsWithChildren<{
|
|
6
4
|
title: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "./styles.css";
|
|
2
|
+
export * from "./BaseTab";
|
|
3
|
+
export { default as PatchHelperTab } from "./patchHelper";
|
|
4
|
+
export { default as PluginsTab } from "./plugins";
|
|
5
|
+
export { openContributorModal } from "./plugins/ContributorModal";
|
|
6
|
+
export { openPluginModal } from "./plugins/PluginModal";
|
|
7
|
+
export { default as BackupAndRestoreTab } from "./sync/BackupAndRestoreTab";
|
|
8
|
+
export { default as CloudTab } from "./sync/CloudTab";
|
|
9
|
+
export { default as ThemesTab } from "./themes";
|
|
10
|
+
export { openUpdaterModal, default as UpdaterTab } from "./updater";
|
|
11
|
+
export { default as VencordTab } from "./vencord";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReplaceFn } from "../../../../utils/types";
|
|
2
|
+
export interface FullPatchInputProps {
|
|
3
|
+
setFind(v: string): void;
|
|
4
|
+
setParsedFind(v: string | RegExp): void;
|
|
5
|
+
setMatch(v: string): void;
|
|
6
|
+
setReplacement(v: string | ReplaceFn): void;
|
|
7
|
+
}
|
|
8
|
+
export declare function FullPatchInput({ setFind, setParsedFind, setMatch, setReplacement }: FullPatchInputProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReplaceFn } from "../../../../utils/types";
|
|
2
|
+
interface PatchPreviewProps {
|
|
3
|
+
module: [id: number, factory: Function];
|
|
4
|
+
match: string;
|
|
5
|
+
replacement: string | ReplaceFn;
|
|
6
|
+
setReplacementError(error: any): void;
|
|
7
|
+
}
|
|
8
|
+
export declare function PatchPreview({ module, match, replacement, setReplacementError }: PatchPreviewProps): import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Plugin } from "../../../../utils/types";
|
|
2
|
+
export declare const ButtonClasses: any;
|
|
3
|
+
interface PluginCardProps extends React.HTMLProps<HTMLDivElement> {
|
|
4
|
+
plugin: Plugin;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
onRestartNeeded(name: string, key: string): void;
|
|
7
|
+
isNew?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function PluginCard({ plugin, disabled, onRestartNeeded, onMouseEnter, onMouseLeave, isNew }: PluginCardProps): import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./PluginModal.css";
|
|
2
|
-
import { ModalProps } from "
|
|
3
|
-
import { Plugin } from "
|
|
2
|
+
import { ModalProps } from "../../../../utils/modal";
|
|
3
|
+
import { Plugin } from "../../../../utils/types";
|
|
4
4
|
interface PluginModalProps extends ModalProps {
|
|
5
5
|
plugin: Plugin;
|
|
6
|
-
onRestartNeeded(): void;
|
|
6
|
+
onRestartNeeded(key: string): void;
|
|
7
7
|
}
|
|
8
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
|
+
export declare function openPluginModal(plugin: Plugin, onRestartNeeded?: (pluginName: string, key: string) => void): void;
|
|
10
10
|
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DefinedSettings, PluginOptionBase } from "../../../../../utils/types";
|
|
2
|
+
import { PropsWithChildren } from "react";
|
|
3
|
+
export declare const cl: (...args: (string | false | 0 | string[] | Record<string, unknown> | null | undefined)[]) => string;
|
|
4
|
+
interface SettingBaseProps<T> {
|
|
5
|
+
option: T;
|
|
6
|
+
onChange(newValue: any): void;
|
|
7
|
+
pluginSettings: {
|
|
8
|
+
[setting: string]: any;
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
};
|
|
11
|
+
id: string;
|
|
12
|
+
definedSettings?: DefinedSettings;
|
|
13
|
+
}
|
|
14
|
+
export type SettingProps<T extends PluginOptionBase> = SettingBaseProps<T>;
|
|
15
|
+
export type ComponentSettingProps<T extends Omit<PluginOptionBase, "description" | "placeholder">> = SettingBaseProps<T>;
|
|
16
|
+
export declare function resolveError(isValidResult: boolean | string): string | null;
|
|
17
|
+
interface SettingsSectionProps extends PropsWithChildren {
|
|
18
|
+
name: string;
|
|
19
|
+
description: string;
|
|
20
|
+
error?: string | null;
|
|
21
|
+
inlineSetting?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare function SettingsSection({ name, description, error, inlineSetting, children }: SettingsSectionProps): import("react").JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { PluginOptionComponent } from "../../../../../utils/types";
|
|
2
|
+
import { ComponentSettingProps } from "./Common";
|
|
3
|
+
export declare function ComponentSetting({ option, onChange }: ComponentSettingProps<PluginOptionComponent>): import("react").ReactNode | Promise<import("react").ReactNode>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import "./styles.css";
|
|
2
|
+
import { OptionType } from "../../../../../utils/types";
|
|
3
|
+
import { ComponentType } from "react";
|
|
4
|
+
import { ComponentSettingProps, SettingProps } from "./Common";
|
|
5
|
+
export declare const OptionComponentMap: Record<OptionType, ComponentType<SettingProps<any> | ComponentSettingProps<any>>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "./styles.css";
|
|
2
|
+
import { Logger } from "../../../../utils/Logger";
|
|
3
|
+
export declare const cl: (...args: (string | false | 0 | string[] | Record<string, unknown> | null | undefined)[]) => string;
|
|
4
|
+
export declare const logger: Logger;
|
|
5
|
+
declare const _default: import("react").FunctionComponent<any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function CspErrorCard(): import("react").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function LocalThemesTab(): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function OnlineThemesTab(): import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UserThemeHeader } from "../../../../main/themes";
|
|
2
|
+
interface ThemeCardProps {
|
|
3
|
+
theme: UserThemeHeader;
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
onChange: (enabled: boolean) => void;
|
|
6
|
+
onDelete: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function ThemeCard({ theme, enabled, onChange, onDelete }: ThemeCardProps): import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { changes } from "../../../../utils/updater";
|
|
2
|
+
export interface CommonProps {
|
|
3
|
+
repo: string;
|
|
4
|
+
repoPending: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function HashLink({ repo, hash, disabled }: {
|
|
7
|
+
repo: string;
|
|
8
|
+
hash: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
11
|
+
export declare function Changes({ updates, repo, repoPending }: CommonProps & {
|
|
12
|
+
updates: typeof changes;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
14
|
+
export declare function Newer(props: CommonProps): import("react").JSX.Element;
|
|
15
|
+
export declare function Updatable(props: CommonProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function runWithDispatch(dispatch: React.Dispatch<React.SetStateAction<boolean>>, action: () => any): () => Promise<void>;
|