@plexcord/types 1.19.1 → 1.19.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/PlexcordNative.d.ts +4 -2
- package/api/PluginManager.d.ts +1 -8
- package/api/Settings.d.ts +3 -0
- package/api/SettingsSync/cloudSync.d.ts +1 -0
- package/api/index.d.ts +27 -27
- package/components/BaseText.d.ts +2 -2
- package/components/ErrorCard.d.ts +2 -2
- package/components/Grid.d.ts +2 -2
- package/components/Icons.d.ts +6 -1
- package/components/Notice.d.ts +27 -0
- package/components/ThemeSettings/ThemesTab.d.ts +4 -0
- package/components/ThemeSettings/UserCSSModal.d.ts +9 -0
- package/components/ThemeSettings/components/SettingBooleanComponent.d.ts +8 -0
- package/components/ThemeSettings/components/SettingColorComponent.d.ts +8 -0
- package/components/ThemeSettings/components/SettingNumberComponent.d.ts +7 -0
- package/components/ThemeSettings/components/SettingRangeComponent.d.ts +11 -0
- package/components/ThemeSettings/components/SettingSelectComponent.d.ts +13 -0
- package/components/ThemeSettings/components/SettingTextComponent.d.ts +7 -0
- package/components/ThemeSettings/components/index.d.ts +6 -0
- package/components/index.d.ts +1 -0
- package/components/settings/DonateButton.d.ts +3 -3
- package/components/settings/EditableText.d.ts +7 -0
- package/components/settings/OnlineThemeCard.d.ts +21 -0
- package/components/settings/QuickAction.d.ts +3 -1
- package/components/settings/tabs/index.d.ts +1 -1
- package/components/settings/tabs/plexcord/DonateButton.d.ts +3 -1
- package/components/settings/tabs/plexcord/index.d.ts +2 -0
- package/components/settings/tabs/plugins/PluginModal.d.ts +1 -1
- package/components/settings/tabs/plugins/components/truncateText.d.ts +4 -0
- package/locales/en.d.ts +1458 -172
- package/package.json +1 -1
- package/plugins/_api/badges/index.d.ts +6 -3
- package/plugins/_api/badges/modals.d.ts +1 -0
- package/plugins/_core/settings.d.ts +4 -3
- package/plugins/autoZipper/index.d.ts +29 -0
- package/plugins/betterActivities/components/TwitchIcon.d.ts +2 -2
- package/plugins/betterAudioPlayer/index.d.ts +104 -0
- package/plugins/betterGifPicker/index.d.ts +36 -2
- package/plugins/betterSessions/components/icons.d.ts +9 -9
- package/plugins/betterSessions/index.d.ts +2 -8
- package/plugins/betterSessions/utils.d.ts +1 -1
- package/plugins/betterUserArea/index.d.ts +105 -0
- package/plugins/bypassPinPrompt/index.d.ts +22 -0
- package/plugins/commandPalette/CommandPicker.d.ts +13 -0
- package/plugins/commandPalette/index.d.ts +124 -9
- package/plugins/commandPalette/registry.d.ts +116 -0
- package/plugins/commandPalette/settingsPanel.d.ts +1 -0
- package/plugins/commandPalette/{components/CommandPalette.d.ts → ui.d.ts} +1 -1
- package/plugins/customSounds/index.d.ts +1 -1
- package/plugins/showBadgesInChat/index.d.ts +1 -3
- package/shared/IpcEvents.d.ts +5 -3
- package/shared/plexcordUserAgent.d.ts +2 -0
- package/utils/constants.d.ts +26 -15
- package/utils/dependencies.d.ts +3 -0
- package/utils/misc.d.ts +4 -0
- package/utils/modal.d.ts +1 -0
- package/utils/themes/bd/index.d.ts +33 -0
- package/utils/themes/index.d.ts +9 -0
- package/utils/themes/usercss/compiler.d.ts +1 -0
- package/utils/themes/usercss/index.d.ts +3 -0
- package/utils/themes/usercss/usercss-meta.d.ts +135 -0
- package/utils/types.d.ts +16 -16
- package/utils/updater.d.ts +0 -1
- package/webpack/common/components.d.ts +1 -1
- package/webpack/webpack.d.ts +1 -1
- package/components/settings/tabs/themes/CspErrorCard.d.ts +0 -1
- package/components/settings/tabs/themes/LocalThemesTab.d.ts +0 -1
- package/components/settings/tabs/themes/OnlineThemesTab.d.ts +0 -1
- package/components/settings/tabs/themes/ThemeCard.d.ts +0 -9
- package/components/settings/tabs/themes/index.d.ts +0 -3
- package/plugins/commandPalette/commands.d.ts +0 -8
- package/plugins/commandPalette/components/MultipleChoice.d.ts +0 -11
- package/plugins/commandPalette/components/TextInput.d.ts +0 -11
package/PlexcordNative.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { Settings } from "./api/Settings";
|
|
2
2
|
import type { CspRequestResult } from "./main/csp/manager";
|
|
3
|
-
import type { UserThemeHeader } from "./main/themes";
|
|
4
3
|
import { IpcEvents } from "./shared/IpcEvents";
|
|
5
4
|
import type { IpcRes } from "./utils/types";
|
|
6
5
|
export declare function invoke<T = any>(event: IpcEvents, ...args: any[]): Promise<T>;
|
|
@@ -10,7 +9,10 @@ declare const _default: {
|
|
|
10
9
|
uploadTheme: (fileName: string, fileData: string) => Promise<void>;
|
|
11
10
|
deleteTheme: (fileName: string) => Promise<void>;
|
|
12
11
|
getThemesDir: () => Promise<string>;
|
|
13
|
-
getThemesList: () => Promise<
|
|
12
|
+
getThemesList: () => Promise<{
|
|
13
|
+
fileName: string;
|
|
14
|
+
content: string;
|
|
15
|
+
}[]>;
|
|
14
16
|
getThemeData: (fileName: string) => Promise<string | undefined>;
|
|
15
17
|
getSystemValues: () => Promise<Record<string, string>>;
|
|
16
18
|
openFolder: () => Promise<void>;
|
package/api/PluginManager.d.ts
CHANGED
|
@@ -4,15 +4,8 @@ import { Patch, Plugin, StartAt } from "../utils/types";
|
|
|
4
4
|
import { FluxDispatcher } from "../webpack/common";
|
|
5
5
|
import Plugins from "~plugins";
|
|
6
6
|
export declare const PMLogger: Logger;
|
|
7
|
-
/**
|
|
8
|
-
* Whether a plugin is required (or dependency of another enabled plugin)
|
|
9
|
-
*/
|
|
10
|
-
export declare function isPluginRequired(name: string): boolean | undefined;
|
|
11
|
-
/**
|
|
12
|
-
* A map of plugin names to the plugins that depend on them
|
|
13
|
-
*/
|
|
14
|
-
export declare const calculatePluginDependencyMap: () => Record<string, string[]>;
|
|
15
7
|
export declare function isPluginEnabled(p: string): boolean;
|
|
8
|
+
export declare function isPluginRequired(p: string): boolean;
|
|
16
9
|
export declare function addPatch(newPatch: Omit<Patch, "plugin">, pluginName: string, pluginPath?: string): void;
|
|
17
10
|
export declare function pluginRequiresRestart(p: Plugin): boolean;
|
|
18
11
|
export declare const startAllPlugins: (target: StartAt) => void;
|
package/api/Settings.d.ts
CHANGED
|
@@ -16,6 +16,9 @@ export interface Settings {
|
|
|
16
16
|
eagerPatches: boolean;
|
|
17
17
|
enabledThemes: string[];
|
|
18
18
|
enabledThemeLinks: string[];
|
|
19
|
+
enableOnlineThemes: boolean;
|
|
20
|
+
pinnedThemes: string[];
|
|
21
|
+
themeNames: Record<string, string>;
|
|
19
22
|
enableReactDevtools: boolean;
|
|
20
23
|
themeLinks: string[];
|
|
21
24
|
frameless: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare function shouldCloudSync(direction: "push" | "pull"): boolean;
|
|
1
2
|
export declare function putCloudSettings(manual?: boolean): Promise<void>;
|
|
2
3
|
export declare function getCloudSettings(shouldNotify?: boolean, force?: boolean): Promise<boolean | undefined>;
|
|
3
4
|
export declare function deleteCloudSettings(): Promise<void>;
|
package/api/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import * as $ChatButtons from "./ChatButtons";
|
|
|
4
4
|
import * as $Commands from "./Commands";
|
|
5
5
|
import * as $ContextMenu from "./ContextMenu";
|
|
6
6
|
import * as $DataStore from "./DataStore";
|
|
7
|
+
import * as $HeaderBar from "./HeaderBar";
|
|
7
8
|
import * as $i18n from "./i18n";
|
|
8
9
|
import * as $MemberListDecorators from "./MemberListDecorators";
|
|
9
10
|
import * as $MessageAccessories from "./MessageAccessories";
|
|
@@ -14,37 +15,36 @@ import * as $MessageUpdater from "./MessageUpdater";
|
|
|
14
15
|
import * as $NicknameIcons from "./NicknameIcons";
|
|
15
16
|
import * as $Notices from "./Notices";
|
|
16
17
|
import * as $Notifications from "./Notifications";
|
|
18
|
+
import * as $UserArea from "./UserArea";
|
|
17
19
|
export * as PluginManager from "./PluginManager";
|
|
18
|
-
import * as $HeaderBar from "./HeaderBar";
|
|
19
20
|
import * as $ServerList from "./ServerList";
|
|
20
21
|
import * as $Settings from "./Settings";
|
|
21
22
|
import * as $Styles from "./Styles";
|
|
22
23
|
import * as $Themes from "./Themes";
|
|
23
|
-
import * as $UserArea from "./UserArea";
|
|
24
24
|
import * as $UserSettings from "./UserSettings";
|
|
25
25
|
/**
|
|
26
26
|
* An API allowing you to listen to Message Clicks or run your own logic
|
|
27
|
-
* before a message is sent
|
|
27
|
+
* before a message is sent.
|
|
28
28
|
*
|
|
29
|
-
* If your plugin uses this, you must add MessageEventsAPI to its dependencies
|
|
29
|
+
* If your plugin uses this, you must add MessageEventsAPI to its dependencies.
|
|
30
30
|
*/
|
|
31
31
|
export declare const MessageEvents: typeof $MessageEventsAPI;
|
|
32
32
|
/**
|
|
33
33
|
* An API allowing you to create custom notices
|
|
34
|
-
* (snackbars on the top, like the Update prompt)
|
|
34
|
+
* (snackbars on the top, like the Update prompt).
|
|
35
35
|
*/
|
|
36
36
|
export declare const Notices: typeof $Notices;
|
|
37
37
|
/**
|
|
38
|
-
* An API allowing you to register custom commands
|
|
38
|
+
* An API allowing you to register custom commands.
|
|
39
39
|
*/
|
|
40
40
|
export declare const Commands: typeof $Commands;
|
|
41
41
|
/**
|
|
42
42
|
* A wrapper around IndexedDB. This can store arbitrarily
|
|
43
43
|
* large data and supports a lot of datatypes (Blob, Map, ...).
|
|
44
|
-
* For a full list, see the mdn link below
|
|
44
|
+
* For a full list, see the mdn link below.
|
|
45
45
|
*
|
|
46
46
|
* This should always be preferred over the Settings API if possible, as
|
|
47
|
-
* localstorage has very strict size restrictions and blocks the event loop
|
|
47
|
+
* localstorage has very strict size restrictions and blocks the event loop.
|
|
48
48
|
*
|
|
49
49
|
* Make sure your keys are unique (tip: prefix them with ur plugin name)
|
|
50
50
|
* and please clean up no longer needed entries.
|
|
@@ -54,40 +54,40 @@ export declare const Commands: typeof $Commands;
|
|
|
54
54
|
*/
|
|
55
55
|
export declare const DataStore: typeof $DataStore;
|
|
56
56
|
/**
|
|
57
|
-
* An API allowing you to add custom components as message accessories
|
|
57
|
+
* An API allowing you to add custom components as message accessories.
|
|
58
58
|
*/
|
|
59
59
|
export declare const MessageAccessories: typeof $MessageAccessories;
|
|
60
60
|
/**
|
|
61
|
-
* An API allowing you to add custom buttons in the message popover
|
|
61
|
+
* An API allowing you to add custom buttons in the message popover.
|
|
62
62
|
*/
|
|
63
63
|
export declare const MessagePopover: typeof $MessagePopover;
|
|
64
64
|
/**
|
|
65
|
-
* An API allowing you to add badges to user profiles
|
|
65
|
+
* An API allowing you to add badges to user profiles.
|
|
66
66
|
*/
|
|
67
67
|
export declare const Badges: typeof $Badges;
|
|
68
68
|
/**
|
|
69
|
-
* An API allowing you to add custom elements to the server list
|
|
69
|
+
* An API allowing you to add custom elements to the server list.
|
|
70
70
|
*/
|
|
71
71
|
export declare const ServerList: typeof $ServerList;
|
|
72
72
|
/**
|
|
73
|
-
* An API allowing you to add components as message accessories
|
|
73
|
+
* An API allowing you to add components as message accessories.
|
|
74
74
|
*/
|
|
75
75
|
export declare const MessageDecorations: typeof $MessageDecorations;
|
|
76
76
|
/**
|
|
77
|
-
* An API allowing you to add components to member list users, in both DM's and servers
|
|
77
|
+
* An API allowing you to add components to member list users, in both DM's and servers.
|
|
78
78
|
*/
|
|
79
79
|
export declare const MemberListDecorators: typeof $MemberListDecorators;
|
|
80
80
|
/**
|
|
81
|
-
* An API allowing you to persist data
|
|
81
|
+
* An API allowing you to persist data.
|
|
82
82
|
*/
|
|
83
83
|
export declare const Settings: typeof $Settings;
|
|
84
84
|
/**
|
|
85
|
-
* An API allowing you to dynamically load styles
|
|
85
|
+
* An API allowing you to dynamically load styles.
|
|
86
86
|
* a
|
|
87
87
|
*/
|
|
88
88
|
export declare const Styles: typeof $Styles;
|
|
89
89
|
/**
|
|
90
|
-
* An API allowing you to display notifications
|
|
90
|
+
* An API allowing you to display notifications.
|
|
91
91
|
*/
|
|
92
92
|
export declare const Notifications: typeof $Notifications;
|
|
93
93
|
/**
|
|
@@ -96,27 +96,31 @@ export declare const Notifications: typeof $Notifications;
|
|
|
96
96
|
*/
|
|
97
97
|
export declare const i18n: typeof $i18n;
|
|
98
98
|
/**
|
|
99
|
-
* An api allowing you to patch and add/remove items to/from context menus
|
|
99
|
+
* An api allowing you to patch and add/remove items to/from context menus.
|
|
100
100
|
*/
|
|
101
101
|
export declare const ContextMenu: typeof $ContextMenu;
|
|
102
102
|
/**
|
|
103
|
-
* An API allowing you to add buttons to the chat input
|
|
103
|
+
* An API allowing you to add buttons to the chat input.
|
|
104
104
|
*/
|
|
105
105
|
export declare const ChatButtons: typeof $ChatButtons;
|
|
106
106
|
/**
|
|
107
|
-
* An API allowing you to add buttons to the header bar.
|
|
107
|
+
* An API allowing you to add buttons to the header bar or channel toolbar.
|
|
108
108
|
*/
|
|
109
109
|
export declare const HeaderBar: typeof $HeaderBar;
|
|
110
110
|
/**
|
|
111
|
-
* An API allowing you to update and re-render messages
|
|
111
|
+
* An API allowing you to update and re-render messages.
|
|
112
112
|
*/
|
|
113
113
|
export declare const MessageUpdater: typeof $MessageUpdater;
|
|
114
114
|
/**
|
|
115
|
-
* An API allowing you to get an user setting
|
|
115
|
+
* An API allowing you to get an user setting.
|
|
116
116
|
*/
|
|
117
117
|
export declare const UserSettings: typeof $UserSettings;
|
|
118
118
|
/**
|
|
119
|
-
*
|
|
119
|
+
* Don't use this
|
|
120
|
+
*/
|
|
121
|
+
export declare const Themes: typeof $Themes;
|
|
122
|
+
/**
|
|
123
|
+
* An API allowing you to add icons to the nickname, in profiles.
|
|
120
124
|
*/
|
|
121
125
|
export declare const NicknameIcons: typeof $NicknameIcons;
|
|
122
126
|
/**
|
|
@@ -127,10 +131,6 @@ export declare const AudioPlayer: typeof $AudioPlayer;
|
|
|
127
131
|
* An API allowing you to add buttons to the user area panel.
|
|
128
132
|
*/
|
|
129
133
|
export declare const UserArea: typeof $UserArea;
|
|
130
|
-
/**
|
|
131
|
-
* Don't use this
|
|
132
|
-
*/
|
|
133
|
-
export declare const Themes: typeof $Themes;
|
|
134
134
|
/**
|
|
135
135
|
* LocaleLoader for managing plugin translations
|
|
136
136
|
*/
|
package/components/BaseText.d.ts
CHANGED
|
@@ -24,12 +24,12 @@ export declare const TextColors: {
|
|
|
24
24
|
readonly "text-default": "var(--text-default)";
|
|
25
25
|
readonly "text-muted": "var(--text-muted)";
|
|
26
26
|
readonly "text-link": "var(--text-link)";
|
|
27
|
-
readonly "text-danger": "var(--
|
|
27
|
+
readonly "text-danger": "var(--text-feedback-critical)";
|
|
28
28
|
readonly "text-brand": "var(--text-brand)";
|
|
29
29
|
readonly "text-strong": "var(--text-strong)";
|
|
30
30
|
readonly "text-subtle": "var(--text-subtle)";
|
|
31
31
|
readonly "control-text-critical": "var(--control-text-critical-secondary-default)";
|
|
32
|
-
readonly "control-text-primary": "var(--control-primary-
|
|
32
|
+
readonly "control-text-primary": "var(--control-text-primary-default)";
|
|
33
33
|
};
|
|
34
34
|
export declare function generateTextCss(): string;
|
|
35
35
|
export type TextSize = keyof typeof TextSizes;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "./ErrorCard.css";
|
|
2
|
-
import type {
|
|
3
|
-
export declare function ErrorCard(props: React.PropsWithChildren<
|
|
2
|
+
import type { HTMLProps } from "react";
|
|
3
|
+
export declare function ErrorCard(props: React.PropsWithChildren<HTMLProps<HTMLDivElement>>): import("react").JSX.Element;
|
package/components/Grid.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { JSX } from "react";
|
|
2
2
|
interface Props {
|
|
3
3
|
columns: number;
|
|
4
4
|
gap?: string;
|
|
5
5
|
inline?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare function Grid(props: Props &
|
|
7
|
+
export declare function Grid(props: Props & JSX.IntrinsicElements["div"]): JSX.Element;
|
|
8
8
|
export {};
|
package/components/Icons.d.ts
CHANGED
|
@@ -27,14 +27,17 @@ export declare function Microphone(props: IconProps): import("react").JSX.Elemen
|
|
|
27
27
|
export declare function CogWheel(props: IconProps): import("react").JSX.Element;
|
|
28
28
|
export declare function ReplyIcon(props: IconProps): import("react").JSX.Element;
|
|
29
29
|
export declare function DeleteIcon(props: IconProps): import("react").JSX.Element;
|
|
30
|
+
export declare function PluginIcon(props: IconProps): import("react").JSX.Element;
|
|
30
31
|
export declare function PlusIcon(props: IconProps): import("react").JSX.Element;
|
|
31
32
|
export declare function NoEntrySignIcon(props: IconProps): import("react").JSX.Element;
|
|
33
|
+
export declare function PasteIcon(props: IconProps): import("react").JSX.Element;
|
|
34
|
+
export declare function ResetIcon(props: IconProps): import("react").JSX.Element;
|
|
32
35
|
export declare function SafetyIcon(props: IconProps): import("react").JSX.Element;
|
|
33
36
|
export declare function NotesIcon(props: IconProps): import("react").JSX.Element;
|
|
37
|
+
export declare function IDIcon(props: IconProps): import("react").JSX.Element;
|
|
34
38
|
export declare function FolderIcon(props: IconProps): import("react").JSX.Element;
|
|
35
39
|
export declare function LogIcon(props: IconProps): import("react").JSX.Element;
|
|
36
40
|
export declare function RestartIcon(props: IconProps): import("react").JSX.Element;
|
|
37
|
-
export declare function IDIcon(props: IconProps): import("react").JSX.Element;
|
|
38
41
|
export declare function PaintbrushIcon(props: IconProps): import("react").JSX.Element;
|
|
39
42
|
export declare function PencilIcon(props: IconProps): import("react").JSX.Element;
|
|
40
43
|
export declare function QuoteIcon(): import("react").JSX.Element;
|
|
@@ -55,4 +58,6 @@ export declare function PlextronSettingsIcon(props: IconProps): import("react").
|
|
|
55
58
|
export declare function EyeIcon(props: IconProps): import("react").JSX.Element;
|
|
56
59
|
export declare function ColorPaletteIcon(props: IconProps): import("react").JSX.Element;
|
|
57
60
|
export declare function MagnifyingGlassIcon(props: IconProps): import("react").JSX.Element;
|
|
61
|
+
export declare function CloudDownloadIcon(props: IconProps): import("react").JSX.Element;
|
|
62
|
+
export declare function CloudUploadIcon(props: IconProps): import("react").JSX.Element;
|
|
58
63
|
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ComponentType, CSSProperties, ReactNode } from "react";
|
|
2
|
+
export type NoticeType = "warn" | "info" | "danger" | "positive" | "preview";
|
|
3
|
+
export declare const NoticeTypes: Record<"WARNING" | "INFO" | "ERROR" | "POSITIVE" | "PREVIEW", NoticeType>;
|
|
4
|
+
export interface NoticeProps {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
icon?: ComponentType<{
|
|
9
|
+
className?: string;
|
|
10
|
+
color?: string;
|
|
11
|
+
}>;
|
|
12
|
+
action?: ReactNode;
|
|
13
|
+
textColor?: string;
|
|
14
|
+
textVariant?: string;
|
|
15
|
+
hidden?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare function Warning({ children, className, style, icon, action, textColor, textVariant, hidden }: NoticeProps): import("react").JSX.Element;
|
|
18
|
+
declare function Info({ children, className, style, icon, action, textColor, textVariant, hidden }: NoticeProps): import("react").JSX.Element;
|
|
19
|
+
declare function Error({ children, className, style, icon, action, textColor, textVariant, hidden }: NoticeProps): import("react").JSX.Element;
|
|
20
|
+
declare function Positive({ children, className, style, icon, action, textColor, textVariant, hidden }: NoticeProps): import("react").JSX.Element;
|
|
21
|
+
export declare const Notice: {
|
|
22
|
+
Warning: typeof Warning;
|
|
23
|
+
Info: typeof Info;
|
|
24
|
+
Error: typeof Error;
|
|
25
|
+
Positive: typeof Positive;
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ModalProps } from "../../utils/modal";
|
|
2
|
+
import { UserstyleHeader } from "usercss-meta";
|
|
3
|
+
interface UserCSSSettingsModalProps {
|
|
4
|
+
modalProps: ModalProps;
|
|
5
|
+
theme: UserstyleHeader;
|
|
6
|
+
onSettingsReset: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function UserCSSSettingsModal({ modalProps, theme, onSettingsReset }: UserCSSSettingsModalProps): import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
label: string;
|
|
3
|
+
name: string;
|
|
4
|
+
default: number;
|
|
5
|
+
min?: number;
|
|
6
|
+
max?: number;
|
|
7
|
+
step?: number;
|
|
8
|
+
themeSettings: Record<string, string>;
|
|
9
|
+
}
|
|
10
|
+
export declare function SettingRangeComponent({ label, name, default: def, min, max, step, themeSettings }: Props): import("react").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
label: string;
|
|
3
|
+
name: string;
|
|
4
|
+
options: {
|
|
5
|
+
name: string;
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}[];
|
|
9
|
+
default: string;
|
|
10
|
+
themeSettings: Record<string, string>;
|
|
11
|
+
}
|
|
12
|
+
export declare function SettingSelectComponent({ label, name, options, default: def, themeSettings }: Props): import("react").JSX.Element;
|
|
13
|
+
export {};
|
package/components/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}): import("react").JSX.Element;
|
|
1
|
+
import { ButtonProps } from "@plexcord/discord-types";
|
|
2
|
+
export declare function DonateButton({ className, ...props }: Partial<ButtonProps>): import("react").JSX.Element;
|
|
3
|
+
export declare function InviteButton({ className, ...props }: Partial<ButtonProps>): import("react").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "./AddonCard.css";
|
|
2
|
+
import type { MouseEventHandler, ReactNode } from "react";
|
|
3
|
+
interface Props {
|
|
4
|
+
name: ReactNode;
|
|
5
|
+
description: ReactNode;
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
setEnabled: (enabled: boolean) => void;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
isNew?: boolean;
|
|
10
|
+
onMouseEnter?: MouseEventHandler<HTMLDivElement>;
|
|
11
|
+
onMouseLeave?: MouseEventHandler<HTMLDivElement>;
|
|
12
|
+
infoButton?: ReactNode;
|
|
13
|
+
footer?: ReactNode;
|
|
14
|
+
author?: ReactNode;
|
|
15
|
+
customName?: string;
|
|
16
|
+
customDescription?: string;
|
|
17
|
+
onEditName?: (newName: string) => void;
|
|
18
|
+
onEditDescription?: (newDescription: string) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare function OnlineThemeCard({ disabled, isNew, name, infoButton, footer, author, enabled, setEnabled, description, onMouseEnter, onMouseLeave, customName, onEditName, }: Props): import("react").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -9,4 +9,6 @@ export interface QuickActionProps {
|
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
}
|
|
11
11
|
export declare function QuickAction(props: QuickActionProps): import("react").JSX.Element;
|
|
12
|
-
export declare function QuickActionCard(props: PropsWithChildren
|
|
12
|
+
export declare function QuickActionCard(props: PropsWithChildren<{
|
|
13
|
+
columns?: number;
|
|
14
|
+
}>): import("react").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import "./styles.css";
|
|
2
|
+
export { default as ThemesTab } from "../../ThemeSettings/ThemesTab";
|
|
2
3
|
export * from "./BaseTab";
|
|
3
4
|
export { default as ChangelogTab } from "./changelog";
|
|
4
5
|
export { default as PatchHelperTab } from "./patchHelper";
|
|
@@ -8,5 +9,4 @@ export { openContributorModal } from "./plugins/ContributorModal";
|
|
|
8
9
|
export { openPluginModal } from "./plugins/PluginModal";
|
|
9
10
|
export { default as BackupAndRestoreTab } from "./sync/BackupAndRestoreTab";
|
|
10
11
|
export { default as CloudTab } from "./sync/CloudTab";
|
|
11
|
-
export { default as ThemesTab } from "./themes";
|
|
12
12
|
export { default as UpdaterTab } from "./updater";
|
|
@@ -13,5 +13,5 @@ export declare function makeDummyUser(user: {
|
|
|
13
13
|
}): Partial<User>;
|
|
14
14
|
export default function PluginModal({ plugin, onRestartNeeded, onClose, transitionState }: PluginModalProps): import("react").JSX.Element;
|
|
15
15
|
export declare function openPluginModal(plugin: Plugin, onRestartNeeded?: (pluginName: string, key: string) => void): void;
|
|
16
|
-
export declare function openWarningModal(plugin?: Plugin | null,
|
|
16
|
+
export declare function openWarningModal(plugin?: Plugin | null, onRestartNeeded?: (pluginName: string) => void, isPlugin?: boolean, enabledPlugins?: number | null, reset?: () => void): void;
|
|
17
17
|
export {};
|