@plexcord/types 1.18.3 → 1.18.4
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/PlexcordNative.d.ts +1 -1
- package/api/Badges.d.ts +1 -1
- package/api/ChatButtons.d.ts +1 -0
- package/api/HeaderBar.d.ts +41 -0
- package/api/SettingsSync/offline.d.ts +2 -1
- package/api/i18n.d.ts +8 -5
- package/api/index.d.ts +5 -0
- package/components/Icons.d.ts +10 -0
- package/components/settings/DonateButton.d.ts +1 -2
- package/components/settings/tabs/BaseTab.d.ts +1 -3
- package/components/settings/tabs/plugins/components/Common.d.ts +2 -2
- package/locales/en.d.ts +17585 -0
- package/locales/global.d.ts +53 -0
- package/locales/tr.d.ts +4 -0
- package/locales/types.d.ts +18 -0
- package/package.json +1 -1
- package/plugins/_api/audioPlayer.d.ts +1 -1
- package/plugins/_api/badges/index.d.ts +3 -4
- package/plugins/_api/chatButtons.d.ts +1 -2
- package/plugins/_api/commands.d.ts +1 -2
- package/plugins/_api/contextMenu.d.ts +1 -2
- package/plugins/_api/dynamicImageModalApi.d.ts +1 -2
- package/plugins/_api/headerBar.d.ts +16 -0
- package/plugins/_api/memberListDecorators/index.d.ts +1 -2
- package/plugins/_api/menuItemDemangler.d.ts +1 -2
- package/plugins/_api/messageAccessories.d.ts +1 -2
- package/plugins/_api/messageDecorations/index.d.ts +1 -2
- package/plugins/_api/messageEvents.d.ts +1 -2
- package/plugins/_api/messagePopover.d.ts +1 -2
- package/plugins/_api/messageUpdater.d.ts +1 -2
- package/plugins/_api/nicknameIcons.d.ts +1 -2
- package/plugins/_api/notices.d.ts +1 -2
- package/plugins/_api/serverList.d.ts +1 -2
- package/plugins/_api/userSettings.d.ts +1 -2
- package/plugins/_core/noTrack.d.ts +5 -7
- package/plugins/_core/settings.d.ts +90 -42
- package/plugins/_core/supportHelper.d.ts +3 -7
- package/plugins/accountPanelServerProfile/index.d.ts +5 -6
- package/plugins/allCallTimers/index.d.ts +61 -62
- package/plugins/altKrispSwitch/index.d.ts +1 -2
- package/plugins/alwaysAnimate/index.d.ts +21 -22
- package/plugins/alwaysExpandProfile/index.d.ts +2 -4
- package/plugins/alwaysExpandRoles/index.d.ts +5 -6
- package/plugins/alwaysTrust/index.d.ts +17 -18
- package/plugins/amITyping/index.d.ts +1 -2
- package/plugins/anonymiseFileNames/index.d.ts +31 -34
- package/plugins/appleMusic.desktop/index.d.ts +81 -82
- package/plugins/arRPC.web/index.d.ts +1 -2
- package/plugins/atSomeone/index.d.ts +1 -2
- package/plugins/autoDndWhilePlaying.desktop/index.d.ts +17 -18
- package/plugins/bannersEverywhere/index.d.ts +9 -10
- package/plugins/betterActivities/index.d.ts +41 -42
- package/plugins/betterActivities/settings.d.ts +40 -40
- package/plugins/betterBanReasons/index.d.ts +9 -10
- package/plugins/betterBlockedUsers/index.d.ts +1 -2
- package/plugins/betterCommands/index.d.ts +11 -14
- package/plugins/betterFolders/index.d.ts +89 -90
- package/plugins/betterGifAltText/index.d.ts +1 -2
- package/plugins/betterGifPicker/index.d.ts +1 -2
- package/plugins/betterInvites/index.d.ts +1 -2
- package/plugins/betterNotes/index.d.ts +9 -10
- package/plugins/betterPlusReacts/index.d.ts +1 -2
- package/plugins/betterQuickReact/index.d.ts +41 -42
- package/plugins/betterRoleContext/index.d.ts +5 -6
- package/plugins/betterRoleDot/index.d.ts +9 -10
- package/plugins/betterSessions/index.d.ts +9 -10
- package/plugins/betterSettings/index.d.ts +21 -19
- package/plugins/betterUploadButton/index.d.ts +1 -2
- package/plugins/biggerStreamPreview/index.d.ts +1 -2
- package/plugins/blockKeywords/index.d.ts +17 -18
- package/plugins/blockKrisp/index.d.ts +1 -2
- package/plugins/blurNsfw/index.d.ts +9 -10
- package/plugins/bypassStatus/index.d.ts +1 -2
- package/plugins/cakeday/index.d.ts +40 -19
- package/plugins/callTimer/index.d.ts +13 -14
- package/plugins/channelBadges/index.d.ts +215 -216
- package/plugins/channelBadges/settings.d.ts +215 -215
- package/plugins/channelTabs/index.d.ts +217 -216
- package/plugins/channelTabs/util/constants.d.ts +216 -214
- package/plugins/characterCounter/index.d.ts +5 -6
- package/plugins/cleanChannelName/index.d.ts +1 -2
- package/plugins/clearURLs/index.d.ts +1 -2
- package/plugins/clientSideBlock/index.d.ts +41 -42
- package/plugins/clientTheme/index.d.ts +9 -10
- package/plugins/clipsEnhancements/index.d.ts +15 -16
- package/plugins/colorSighted/index.d.ts +1 -2
- package/plugins/commandPalette/index.d.ts +17 -18
- package/plugins/consoleJanitor/index.d.ts +15 -16
- package/plugins/consoleShortcuts/index.d.ts +1 -2
- package/plugins/contentWarning/index.d.ts +7 -8
- package/plugins/copyEmojiMarkdown/index.d.ts +5 -6
- package/plugins/copyFileContents/index.d.ts +1 -2
- package/plugins/copyStatusUrls/index.d.ts +1 -2
- package/plugins/copyStickerLinks/index.d.ts +1 -2
- package/plugins/copyUserMention/index.d.ts +1 -2
- package/plugins/copyUserURLs/index.d.ts +1 -2
- package/plugins/crashHandler/index.d.ts +9 -10
- package/plugins/ctrlEnterSend/index.d.ts +25 -9
- package/plugins/customFolderIcons/index.d.ts +9 -10
- package/plugins/customFolderIcons/settings.d.ts +8 -8
- package/plugins/customIdle/index.d.ts +9 -10
- package/plugins/customRPC/index.d.ts +1 -2
- package/plugins/customSounds/index.d.ts +2 -4
- package/plugins/customTimestamps/index.d.ts +3 -4
- package/plugins/customUserColors/index.d.ts +9 -10
- package/plugins/dearrow/index.d.ts +21 -22
- package/plugins/decodeBase64/index.d.ts +13 -15
- package/plugins/decor/index.d.ts +13 -15
- package/plugins/decor/settings.d.ts +10 -10
- package/plugins/demonstration/index.d.ts +14 -15
- package/plugins/devCompanion.dev/index.d.ts +26 -27
- package/plugins/disCleaner/index.d.ts +41 -42
- package/plugins/disableCallIdle/index.d.ts +1 -2
- package/plugins/disableCameras/index.d.ts +1 -2
- package/plugins/dontFilterMe/index.d.ts +1 -2
- package/plugins/dontRoundMyTimestamps/index.d.ts +1 -2
- package/plugins/expandedUserTags/consts.d.ts +1 -3
- package/plugins/expandedUserTags/index.d.ts +17 -18
- package/plugins/expandedUserTags/settings.d.ts +16 -16
- package/plugins/expandedUserTags/types.d.ts +2 -2
- package/plugins/experiments/index.d.ts +5 -6
- package/plugins/exportMessages/index.d.ts +21 -22
- package/plugins/expressionCloner/index.d.ts +1 -2
- package/plugins/f8break/index.d.ts +1 -2
- package/plugins/fakeNitro/index.d.ts +45 -46
- package/plugins/fakeProfileThemes/index.d.ts +17 -18
- package/plugins/fastDeleteChannels/index.d.ts +17 -18
- package/plugins/favEmojiFirst/index.d.ts +1 -2
- package/plugins/favGifSearch/index.d.ts +45 -54
- package/plugins/findReply/index.d.ts +13 -14
- package/plugins/fixCodeblockGap/index.d.ts +1 -2
- package/plugins/fixFileExtensions/index.d.ts +1 -2
- package/plugins/fixImagesQuality/index.d.ts +1 -2
- package/plugins/fixSpotifyEmbeds.desktop/index.d.ts +5 -6
- package/plugins/fixYoutubeEmbeds.desktop/index.d.ts +1 -2
- package/plugins/followUser/index.d.ts +49 -50
- package/plugins/fontLoader/index.d.ts +13 -14
- package/plugins/forceOwnerCrown/index.d.ts +1 -2
- package/plugins/freaky/index.d.ts +7 -10
- package/plugins/frequentQuickSwitcher/index.d.ts +1 -2
- package/plugins/friendInvites/index.d.ts +2 -4
- package/plugins/friendsSince/index.d.ts +1 -2
- package/plugins/friendshipRanks/index.d.ts +1 -2
- package/plugins/fullSearchContext/index.d.ts +1 -2
- package/plugins/fullUserInChatbox/index.d.ts +1 -2
- package/plugins/fullVcPfp/index.d.ts +1 -2
- package/plugins/gameActivityToggle/index.d.ts +17 -18
- package/plugins/gifCollections/index.d.ts +105 -106
- package/plugins/gifPaste/index.d.ts +1 -2
- package/plugins/githubRepos/index.d.ts +25 -26
- package/plugins/googleThat/index.d.ts +15 -18
- package/plugins/greetStickerPicker/index.d.ts +13 -14
- package/plugins/guildPickerDumper/index.d.ts +1 -2
- package/plugins/hideChatButtons/index.d.ts +9 -10
- package/plugins/hideMedia/index.d.ts +1 -2
- package/plugins/hideServers/index.d.ts +13 -14
- package/plugins/hideServers/settings.d.ts +12 -12
- package/plugins/holyNotes/index.d.ts +2 -3
- package/plugins/homeTyping/index.d.ts +1 -2
- package/plugins/iLoveSpam/index.d.ts +1 -2
- package/plugins/iRememberYou/index.d.ts +1 -2
- package/plugins/ignoreActivities/index.d.ts +39 -40
- package/plugins/ignoreCalls/index.d.ts +5 -6
- package/plugins/ignoreTerms/index.d.ts +1 -2
- package/plugins/imageFilename/index.d.ts +5 -6
- package/plugins/imageLink/index.d.ts +1 -2
- package/plugins/imageZoom/index.d.ts +65 -66
- package/plugins/imgToGif/index.d.ts +4 -8
- package/plugins/implicitRelationships/index.d.ts +3 -4
- package/plugins/inRole/index.d.ts +3 -6
- package/plugins/instantScreenshare/index.d.ts +18 -19
- package/plugins/instantScreenshare/utils.d.ts +16 -16
- package/plugins/invisibleChat.desktop/index.d.ts +5 -6
- package/plugins/inviteDefaults/index.d.ts +29 -30
- package/plugins/ircColors/index.d.ts +17 -18
- package/plugins/jumpTo/index.d.ts +1 -2
- package/plugins/keepCurrentChannel/index.d.ts +1 -2
- package/plugins/keyboardSounds/index.d.ts +17 -18
- package/plugins/keywordNotify/index.d.ts +13 -14
- package/plugins/lastOnline/index.d.ts +1 -2
- package/plugins/limitMiddleClickPaste/index.d.ts +17 -18
- package/plugins/listenBrainzRPC/index.d.ts +65 -66
- package/plugins/loadingQuotes/index.d.ts +21 -22
- package/plugins/loginWithQR/index.d.ts +3 -4
- package/plugins/mediaPlaybackSpeed/index.d.ts +13 -14
- package/plugins/memberCount/index.d.ts +25 -26
- package/plugins/mentionAvatars/index.d.ts +5 -6
- package/plugins/meow/index.d.ts +1 -2
- package/plugins/messageClickActions/index.d.ts +17 -18
- package/plugins/messageColors/constants.d.ts +28 -28
- package/plugins/messageColors/index.d.ts +29 -30
- package/plugins/messageFetchTimer/index.d.ts +13 -14
- package/plugins/messageLatency/index.d.ts +9 -10
- package/plugins/messageLinkEmbeds/index.d.ts +35 -36
- package/plugins/messageLinkTooltip/index.d.ts +25 -26
- package/plugins/messageLogger/index.d.ts +57 -58
- package/plugins/messageLoggerEnhanced/index.d.ts +122 -123
- package/plugins/messageLoggerEnhanced/settings.d.ts +120 -120
- package/plugins/messageTags/index.d.ts +12 -16
- package/plugins/moreCommands/index.d.ts +7 -81
- package/plugins/moreKaomoji/index.d.ts +1 -2
- package/plugins/morse/index.d.ts +3 -6
- package/plugins/moyai/index.d.ts +29 -30
- package/plugins/musicControls/index.d.ts +77 -76
- package/plugins/musicControls/settings.d.ts +76 -74
- package/plugins/mutualGroupDMs/index.d.ts +1 -2
- package/plugins/newGuildSettings/index.d.ts +41 -42
- package/plugins/newPluginsManager/index.d.ts +1 -2
- package/plugins/noBlockedMessages/index.d.ts +9 -10
- package/plugins/noBulletPoints/index.d.ts +1 -2
- package/plugins/noDeepLinks.web/index.d.ts +1 -2
- package/plugins/noDeleteSafety/index.d.ts +5 -6
- package/plugins/noDevtoolsWarning/index.d.ts +1 -2
- package/plugins/noF1/index.d.ts +1 -2
- package/plugins/noMaskedUrlPaste/index.d.ts +1 -2
- package/plugins/noMirroredCamera/index.d.ts +1 -2
- package/plugins/noModalAnimation/index.d.ts +1 -2
- package/plugins/noMosaic/index.d.ts +5 -6
- package/plugins/noNitroUpsell/index.d.ts +1 -2
- package/plugins/noOnboarding/index.d.ts +1 -2
- package/plugins/noOnboardingDelay/index.d.ts +1 -2
- package/plugins/noPendingCount/index.d.ts +13 -14
- package/plugins/noProfileThemes/index.d.ts +1 -2
- package/plugins/noRPC.discordDesktop/index.d.ts +1 -2
- package/plugins/noReplyMention/index.d.ts +29 -30
- package/plugins/noServerEmojis/index.d.ts +9 -10
- package/plugins/noSystemBadge.discordDesktop/index.d.ts +1 -2
- package/plugins/noTypingAnimation/index.d.ts +1 -2
- package/plugins/noUnblockToJump/index.d.ts +1 -2
- package/plugins/normalizeMessageLinks/index.d.ts +1 -2
- package/plugins/notificationTitle/index.d.ts +1 -2
- package/plugins/notificationVolume/index.d.ts +5 -6
- package/plugins/onePingPerDM/index.d.ts +29 -30
- package/plugins/oneko/index.d.ts +5 -6
- package/plugins/openInApp/index.d.ts +1 -2
- package/plugins/overrideForumDefaults/index.d.ts +25 -26
- package/plugins/partyMode/index.d.ts +13 -14
- package/plugins/pauseInvitesForever/index.d.ts +1 -2
- package/plugins/permissionFreeWill/index.d.ts +9 -10
- package/plugins/permissionsViewer/index.d.ts +25 -26
- package/plugins/petpet/index.d.ts +7 -14
- package/plugins/pictureInPicture/index.d.ts +5 -6
- package/plugins/pinDms/index.d.ts +49 -50
- package/plugins/pinIcon/index.d.ts +1 -2
- package/plugins/pingNotifications/index.d.ts +21 -22
- package/plugins/plainFolderIcon/index.d.ts +1 -2
- package/plugins/platformIndicators/index.d.ts +3 -4
- package/plugins/platformSpoofer/index.d.ts +13 -14
- package/plugins/plexcordToolbox/index.d.ts +9 -10
- package/plugins/previewMessage/index.d.ts +1 -2
- package/plugins/questCompleter/index.d.ts +1 -2
- package/plugins/questFocused/index.d.ts +2 -3
- package/plugins/questify/index.d.ts +207 -192
- package/plugins/questify/settings.d.ts +204 -190
- package/plugins/questionMarkReplacement/index.d.ts +5 -6
- package/plugins/quickMention/index.d.ts +1 -2
- package/plugins/quickReply/index.d.ts +17 -18
- package/plugins/quoter/index.d.ts +29 -30
- package/plugins/randomVoice/index.d.ts +91 -92
- package/plugins/reactErrorDecoder/index.d.ts +1 -2
- package/plugins/readAllNotificationsButton/index.d.ts +1 -2
- package/plugins/relationshipNotifier/index.d.ts +25 -26
- package/plugins/relationshipNotifier/settings.d.ts +24 -24
- package/plugins/remix/index.d.ts +1 -2
- package/plugins/repeatMessages/index.d.ts +1 -2
- package/plugins/replaceGoogleSearch/index.d.ts +9 -9
- package/plugins/replyPingControl/index.d.ts +17 -18
- package/plugins/replyTimestamp/index.d.ts +1 -2
- package/plugins/revealAllSpoilers/index.d.ts +1 -2
- package/plugins/reverseImageSearch/index.d.ts +1 -2
- package/plugins/reviewDB/index.d.ts +21 -22
- package/plugins/reviewDB/settings.d.ts +20 -20
- package/plugins/roleColorEverywhere/index.d.ts +29 -30
- package/plugins/searchFix/index.d.ts +1 -2
- package/plugins/secretRingTone/index.d.ts +5 -6
- package/plugins/selfForward/index.d.ts +1 -2
- package/plugins/sendTimestamps/index.d.ts +5 -6
- package/plugins/serverInfo/index.d.ts +25 -26
- package/plugins/serverListIndicators/index.d.ts +33 -34
- package/plugins/serverSearch/index.d.ts +1 -2
- package/plugins/shikiCodeblocks.desktop/api/languages.d.ts +6 -8
- package/plugins/shikiCodeblocks.desktop/api/shiki.d.ts +6 -0
- package/plugins/shikiCodeblocks.desktop/api/themes.d.ts +7 -1
- package/plugins/shikiCodeblocks.desktop/index.d.ts +61 -56
- package/plugins/shikiCodeblocks.desktop/settings.d.ts +54 -54
- package/plugins/showAllMessageButtons/index.d.ts +9 -10
- package/plugins/showBadgesInChat/index.d.ts +37 -38
- package/plugins/showBadgesInChat/settings.d.ts +36 -36
- package/plugins/showConnections/index.d.ts +13 -14
- package/plugins/showHiddenChannels/index.d.ts +41 -42
- package/plugins/showHiddenThings/index.d.ts +13 -14
- package/plugins/showMeYourName/index.d.ts +85 -86
- package/plugins/showMessageEmbeds/index.d.ts +1 -2
- package/plugins/showTimeoutDuration/index.d.ts +13 -14
- package/plugins/sidebarChat/index.d.ts +10 -11
- package/plugins/sidebarChat/store.d.ts +8 -8
- package/plugins/signature/index.d.ts +23 -26
- package/plugins/silentMessageToggle/index.d.ts +17 -18
- package/plugins/silentTyping/index.d.ts +72 -76
- package/plugins/sortFriends/index.d.ts +5 -6
- package/plugins/soundBoardLogger/index.d.ts +21 -22
- package/plugins/soundBoardLogger/settings.d.ts +20 -20
- package/plugins/splitLargeMessages/index.d.ts +25 -26
- package/plugins/spotifyActivityToggle/index.d.ts +1 -2
- package/plugins/spotifyCrack/index.d.ts +9 -10
- package/plugins/spotifyShareCommands/index.d.ts +1 -2
- package/plugins/startupTimings/index.d.ts +1 -2
- package/plugins/statusPresets/index.d.ts +1 -2
- package/plugins/steamStatusSync/index.d.ts +105 -106
- package/plugins/stickerBlocker/index.d.ts +17 -18
- package/plugins/stickerPaste/index.d.ts +1 -2
- package/plugins/streamerModeOnStream/index.d.ts +1 -2
- package/plugins/streamingCodecDisabler/index.d.ts +13 -14
- package/plugins/summaries/index.d.ts +5 -6
- package/plugins/superReactionTweaks/index.d.ts +25 -26
- package/plugins/textReplace/index.d.ts +11 -12
- package/plugins/themeAttributes/index.d.ts +1 -2
- package/plugins/timelessClips/index.d.ts +5 -6
- package/plugins/timezones/index.d.ts +90 -91
- package/plugins/toastNotifications/index.d.ts +153 -154
- package/plugins/toggleVideoBind/index.d.ts +17 -18
- package/plugins/translate/index.d.ts +43 -56
- package/plugins/translate/settings.d.ts +42 -54
- package/plugins/typingIndicator/index.d.ts +29 -30
- package/plugins/typingTweaks/index.d.ts +13 -14
- package/plugins/unindent/index.d.ts +1 -2
- package/plugins/unitConverter/index.d.ts +25 -26
- package/plugins/unlimitedAccounts/index.d.ts +5 -6
- package/plugins/unlockedAvatarZoom/index.d.ts +5 -6
- package/plugins/unsuppressEmbeds/index.d.ts +1 -2
- package/plugins/uselessInfo/index.d.ts +21 -22
- package/plugins/userMessagesPronouns/index.d.ts +17 -18
- package/plugins/userMessagesPronouns/settings.d.ts +16 -16
- package/plugins/userVoiceShow/index.d.ts +13 -14
- package/plugins/usrbg/index.d.ts +21 -22
- package/plugins/validReply/index.d.ts +1 -2
- package/plugins/validUser/index.d.ts +1 -2
- package/plugins/vcDoubleClick/index.d.ts +1 -2
- package/plugins/vcNarrator/index.d.ts +47 -48
- package/plugins/vcNarrator/settings.d.ts +46 -46
- package/plugins/videoSpeed/index.d.ts +5 -6
- package/plugins/viewIcons/index.d.ts +9 -10
- package/plugins/viewRaw/index.d.ts +17 -18
- package/plugins/voiceButtons/index.d.ts +67 -68
- package/plugins/voiceButtons/settings.d.ts +66 -66
- package/plugins/voiceChannelLog.dev/index.d.ts +32 -33
- package/plugins/voiceChatUtils/index.d.ts +9 -10
- package/plugins/voiceDownload/index.d.ts +1 -2
- package/plugins/voiceMessages/index.d.ts +17 -18
- package/plugins/volumeBooster/index.d.ts +5 -6
- package/plugins/wallpaperFree/index.d.ts +13 -14
- package/plugins/webContextMenus.web/index.d.ts +5 -6
- package/plugins/webKeybinds.web/index.d.ts +1 -2
- package/plugins/webScreenShareFixes.web/index.d.ts +1 -2
- package/plugins/whoReacted/index.d.ts +5 -6
- package/plugins/whosWatching/index.d.ts +5 -6
- package/plugins/writeUpperCase/index.d.ts +5 -6
- package/plugins/xsOverlay/index.d.ts +57 -58
- package/plugins/youtubeAdblock.desktop/index.d.ts +1 -2
- package/plugins/youtubeDescription/index.d.ts +1 -2
- package/utils/discord.d.ts +1 -1
- package/utils/patches.d.ts +1 -1
- package/utils/types.d.ts +15 -9
- package/webpack/common/utils.d.ts +4 -2
package/PlexcordNative.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ declare const _default: {
|
|
|
15
15
|
openFolder: () => Promise<void>;
|
|
16
16
|
};
|
|
17
17
|
updater: {
|
|
18
|
-
getUpdates: () => Promise<IpcRes<Record<"message" | "
|
|
18
|
+
getUpdates: () => Promise<IpcRes<Record<"message" | "author" | "hash", string>[]>>;
|
|
19
19
|
update: () => Promise<IpcRes<boolean>>;
|
|
20
20
|
rebuild: () => Promise<IpcRes<boolean>>;
|
|
21
21
|
getRepo: () => Promise<IpcRes<string>>;
|
package/api/Badges.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const enum BadgePosition {
|
|
|
5
5
|
}
|
|
6
6
|
export interface ProfileBadge {
|
|
7
7
|
/** The tooltip to show on hover. Required for image badges */
|
|
8
|
-
description?: string;
|
|
8
|
+
description?: string | ((props: BadgeUserArgs) => string);
|
|
9
9
|
/** Custom component for the badge (tooltip not included) */
|
|
10
10
|
component?: ComponentType<ProfileBadge & BadgeUserArgs>;
|
|
11
11
|
/** The custom image to use */
|
package/api/ChatButtons.d.ts
CHANGED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ComponentType, JSX, MouseEventHandler, ReactNode, RefObject } from "react";
|
|
2
|
+
export type HeaderBarButtonFactory = () => JSX.Element | null;
|
|
3
|
+
export interface HeaderBarButtonData {
|
|
4
|
+
render: HeaderBarButtonFactory;
|
|
5
|
+
icon: ComponentType<any>;
|
|
6
|
+
priority?: number;
|
|
7
|
+
}
|
|
8
|
+
interface HeaderBarButton {
|
|
9
|
+
render: HeaderBarButtonFactory;
|
|
10
|
+
priority: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const buttons: Map<string, HeaderBarButton>;
|
|
13
|
+
export interface HeaderBarButtonProps {
|
|
14
|
+
icon: ComponentType<any>;
|
|
15
|
+
tooltip: ReactNode;
|
|
16
|
+
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
17
|
+
onContextMenu?: MouseEventHandler<HTMLDivElement>;
|
|
18
|
+
className?: string;
|
|
19
|
+
iconClassName?: string;
|
|
20
|
+
position?: "top" | "bottom" | "left" | "right";
|
|
21
|
+
selected?: boolean;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
showBadge?: boolean;
|
|
24
|
+
badgePosition?: "top" | "bottom";
|
|
25
|
+
ref?: RefObject<any>;
|
|
26
|
+
}
|
|
27
|
+
export declare const HeaderBarButton: ComponentType<HeaderBarButtonProps>;
|
|
28
|
+
/**
|
|
29
|
+
* Add a button to the header bar.
|
|
30
|
+
* @param id Unique identifier for the button.
|
|
31
|
+
* @param render Function that renders the button component.
|
|
32
|
+
* @param priority Higher priority = more to the right. Default is 0.
|
|
33
|
+
*/
|
|
34
|
+
export declare function addHeaderBarButton(id: string, render: HeaderBarButtonFactory, priority?: number): void;
|
|
35
|
+
/**
|
|
36
|
+
* Remove a button from the header bar.
|
|
37
|
+
* @param id The identifier of the button to remove.
|
|
38
|
+
*/
|
|
39
|
+
export declare function removeHeaderBarButton(id: string): void;
|
|
40
|
+
export declare function _addButtons(): JSX.Element[];
|
|
41
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare function importSettings(data: string): Promise<void>;
|
|
2
|
-
export declare function exportSettings({ minify }
|
|
2
|
+
export declare function exportSettings({ syncDataStore, minify }: {
|
|
3
|
+
syncDataStore?: boolean;
|
|
3
4
|
minify?: boolean;
|
|
4
5
|
}): Promise<string>;
|
|
5
6
|
export declare function exportPlugins({ minify }?: {
|
package/api/i18n.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import enTranslations, { changelog, cloud, commands, common, components, csp, memberlist, message, notifications, patchHelper, plugin, plugins, settings, sync, themes, updater, utils } from "../locales/en";
|
|
2
|
+
import { NestedKeyOf } from "../locales/types";
|
|
3
|
+
export type TranslationKey = NestedKeyOf<typeof enTranslations>;
|
|
4
|
+
export { changelog, cloud, commands, common, components, csp, memberlist, message, notifications, patchHelper, plugin, plugins, settings, sync, themes, updater, utils };
|
|
1
5
|
export interface LocaleData {
|
|
2
6
|
[key: string]: string | LocaleData;
|
|
3
7
|
}
|
|
@@ -27,8 +31,8 @@ declare class I18nManager {
|
|
|
27
31
|
setAutoDetect(enabled: boolean): void;
|
|
28
32
|
setFallbackLocale(locale: string): void;
|
|
29
33
|
addTranslations(locale: string, translations: LocaleData, namespace?: string): void;
|
|
30
|
-
t(key:
|
|
31
|
-
|
|
34
|
+
t(key: any, params?: Record<string, any>, namespace?: "core"): string;
|
|
35
|
+
t(key: any, params: Record<string, React.ReactNode>, namespace?: "core"): React.ReactNode;
|
|
32
36
|
private getTranslation;
|
|
33
37
|
getAvailableLocales(): LanguageInfo[];
|
|
34
38
|
getCurrentLocale(): string;
|
|
@@ -46,7 +50,7 @@ declare class I18nManager {
|
|
|
46
50
|
export declare const i18n: I18nManager;
|
|
47
51
|
export declare function useLocale(): string;
|
|
48
52
|
export declare function useTranslation(namespace?: string): {
|
|
49
|
-
t: (key:
|
|
53
|
+
t: (key: any, params?: Record<string, any>) => string;
|
|
50
54
|
locale: string;
|
|
51
55
|
isAutoDetect: boolean;
|
|
52
56
|
setLocale: (newLocale: string) => void;
|
|
@@ -56,8 +60,7 @@ export declare function useTranslation(namespace?: string): {
|
|
|
56
60
|
export default i18n;
|
|
57
61
|
export declare const useReactiveI18n: () => void;
|
|
58
62
|
export declare const useGlobalI18n: () => void;
|
|
59
|
-
export declare const t: (key:
|
|
60
|
-
export declare const tJsx: (key: string, params?: Record<string, any>) => import("react").ReactNode;
|
|
63
|
+
export declare const t: (key: any, params?: Record<string, any>) => string;
|
|
61
64
|
export declare const getCurrentLocale: () => string;
|
|
62
65
|
export declare function useGlobalLocale(): string;
|
|
63
66
|
export declare function useForceUpdateOnLocaleChange(): void;
|
package/api/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import * as $NicknameIcons from "./NicknameIcons";
|
|
|
15
15
|
import * as $Notices from "./Notices";
|
|
16
16
|
import * as $Notifications from "./Notifications";
|
|
17
17
|
export * as PluginManager from "./PluginManager";
|
|
18
|
+
import * as $HeaderBar from "./HeaderBar";
|
|
18
19
|
import * as $ServerList from "./ServerList";
|
|
19
20
|
import * as $Settings from "./Settings";
|
|
20
21
|
import * as $Styles from "./Styles";
|
|
@@ -101,6 +102,10 @@ export declare const ContextMenu: typeof $ContextMenu;
|
|
|
101
102
|
* An API allowing you to add buttons to the chat input
|
|
102
103
|
*/
|
|
103
104
|
export declare const ChatButtons: typeof $ChatButtons;
|
|
105
|
+
/**
|
|
106
|
+
* An API allowing you to add buttons to the header bar.
|
|
107
|
+
*/
|
|
108
|
+
export declare const HeaderBar: typeof $HeaderBar;
|
|
104
109
|
/**
|
|
105
110
|
* An API allowing you to update and re-render messages
|
|
106
111
|
*/
|
package/components/Icons.d.ts
CHANGED
|
@@ -44,4 +44,14 @@ export declare function WebsiteIcon(props: IconProps): import("react").JSX.Eleme
|
|
|
44
44
|
* A question mark inside a square, used as a placeholder icon when no other icon is available
|
|
45
45
|
*/
|
|
46
46
|
export declare function PlaceholderIcon(props: IconProps): import("react").JSX.Element;
|
|
47
|
+
export declare function MainSettingsIcon(props: IconProps): import("react").JSX.Element;
|
|
48
|
+
export declare function PluginsIcon(props: IconProps): import("react").JSX.Element;
|
|
49
|
+
export declare function CloudIcon(props: IconProps): import("react").JSX.Element;
|
|
50
|
+
export declare function BackupRestoreIcon(props: IconProps): import("react").JSX.Element;
|
|
51
|
+
export declare function UpdaterIcon(props: IconProps): import("react").JSX.Element;
|
|
52
|
+
export declare function PatchHelperIcon(props: IconProps): import("react").JSX.Element;
|
|
53
|
+
export declare function PlextronSettingsIcon(props: IconProps): import("react").JSX.Element;
|
|
54
|
+
export declare function EyeIcon(props: IconProps): import("react").JSX.Element;
|
|
55
|
+
export declare function ColorPaletteIcon(props: IconProps): import("react").JSX.Element;
|
|
56
|
+
export declare function MagnifyingGlassIcon(props: IconProps): import("react").JSX.Element;
|
|
47
57
|
export {};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { handleComponentFailed } from "../../handleComponentFailed";
|
|
2
2
|
import type { ComponentType, PropsWithChildren } from "react";
|
|
3
|
-
export declare function SettingsTab({
|
|
4
|
-
title: string;
|
|
5
|
-
}>): import("react").JSX.Element;
|
|
3
|
+
export declare function SettingsTab({ children }: PropsWithChildren): import("react").JSX.Element;
|
|
6
4
|
export declare const handleSettingsTabError: typeof handleComponentFailed;
|
|
7
5
|
export declare function wrapTab(component: ComponentType<any>, tab: string): import("react").FunctionComponent<any>;
|
|
8
6
|
export declare function openSettingsTabModal(Tab: ComponentType<any>): void;
|
|
@@ -16,8 +16,8 @@ export type ComponentSettingProps<T extends Omit<PluginOptionBase, "description"
|
|
|
16
16
|
export declare function resolveError(isValidResult: boolean | string): string | null;
|
|
17
17
|
interface SettingsSectionProps extends PropsWithChildren {
|
|
18
18
|
name: string;
|
|
19
|
-
description: string;
|
|
20
|
-
label?: string;
|
|
19
|
+
description: string | (() => string);
|
|
20
|
+
label?: string | (() => string);
|
|
21
21
|
error?: string | null;
|
|
22
22
|
inlineSetting?: boolean;
|
|
23
23
|
tag?: "label" | "div";
|