aboutsummaryrefslogtreecommitdiff
path: root/src/api/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/index.ts')
-rw-r--r--src/api/index.ts28
1 files changed, 16 insertions, 12 deletions
diff --git a/src/api/index.ts b/src/api/index.ts
index 7e981e2..0fef99c 100644
--- a/src/api/index.ts
+++ b/src/api/index.ts
@@ -26,6 +26,7 @@ import * as $MessageEventsAPI from "./MessageEvents";
import * as $MessagePopover from "./MessagePopover";
import * as $Notices from "./Notices";
import * as $ServerList from "./ServerList";
+import * as $Styles from "./Styles";
/**
* An API allowing you to listen to Message Clicks or run your own logic
@@ -33,16 +34,16 @@ import * as $ServerList from "./ServerList";
*
* If your plugin uses this, you must add MessageEventsAPI to its dependencies
*/
-const MessageEvents = $MessageEventsAPI;
+export const MessageEvents = $MessageEventsAPI;
/**
* An API allowing you to create custom notices
* (snackbars on the top, like the Update prompt)
*/
-const Notices = $Notices;
+export const Notices = $Notices;
/**
* An API allowing you to register custom commands
*/
-const Commands = $Commands;
+export const Commands = $Commands;
/**
* A wrapper around IndexedDB. This can store arbitrarily
* large data and supports a lot of datatypes (Blob, Map, ...).
@@ -57,30 +58,33 @@ const Commands = $Commands;
* This is actually just idb-keyval, so if you're familiar with that, you're golden!
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm#supported_types}
*/
-const DataStore = $DataStore;
+export const DataStore = $DataStore;
/**
* An API allowing you to add custom components as message accessories
*/
-const MessageAccessories = $MessageAccessories;
+export const MessageAccessories = $MessageAccessories;
/**
* An API allowing you to add custom buttons in the message popover
*/
-const MessagePopover = $MessagePopover;
+export const MessagePopover = $MessagePopover;
/**
* An API allowing you to add badges to user profiles
*/
-const Badges = $Badges;
+export const Badges = $Badges;
/**
* An API allowing you to add custom elements to the server list
*/
-const ServerList = $ServerList;
+export const ServerList = $ServerList;
/**
* An API allowing you to add components as message accessories
*/
-const MessageDecorations = $MessageDecorations;
+export const MessageDecorations = $MessageDecorations;
/**
* An API allowing you to add components to member list users, in both DM's and servers
*/
-const MemberListDecorators = $MemberListDecorators;
-
-export { Badges, Commands, DataStore, MemberListDecorators, MessageAccessories, MessageDecorations, MessageEvents, MessagePopover, Notices, ServerList };
+export const MemberListDecorators = $MemberListDecorators;
+/**
+ * An API allowing you to dynamically load styles
+ * a
+ */
+export const Styles = $Styles;