@plexcord/types 1.18.4 → 1.18.6

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.
@@ -2,5 +2,8 @@ import "./styles.css";
2
2
  import { NotificationData } from "./Notifications";
3
3
  declare const _default: import("react").FunctionComponent<NotificationData & {
4
4
  className?: string;
5
+ index?: number;
6
+ offsetY?: number;
7
+ onHeightChange?: (height: number) => void;
5
8
  }>;
6
9
  export default _default;
package/api/Settings.d.ts CHANGED
@@ -41,10 +41,15 @@ export interface Settings {
41
41
  };
42
42
  notifications: {
43
43
  timeout: number;
44
- position: "top-right" | "bottom-right";
44
+ position: "top-right" | "bottom-right" | "top-left" | "bottom-left";
45
45
  useNative: "always" | "never" | "not-focused";
46
46
  missed: boolean;
47
47
  logLimit: number;
48
+ opacity: number;
49
+ maxNotifications: number;
50
+ disableInStreamerMode: boolean;
51
+ renderImages: boolean;
52
+ streamingTreatment: "normal" | "no-content" | "ignore";
48
53
  };
49
54
  cloud: {
50
55
  authenticated: boolean;
@@ -1,6 +1,8 @@
1
- export declare function importSettings(data: string): Promise<void>;
2
- export declare function exportSettings({ syncDataStore, minify }: {
1
+ type BackupType = "all" | "plugins" | "css" | "datastore";
2
+ export declare function importSettings(data: string, type?: BackupType, cloud?: boolean): Promise<void>;
3
+ export declare function exportSettings({ syncDataStore, type, minify }: {
3
4
  syncDataStore?: boolean;
5
+ type?: BackupType;
4
6
  minify?: boolean;
5
7
  }): Promise<string>;
6
8
  export declare function exportPlugins({ minify }?: {
@@ -12,9 +14,8 @@ export declare function exportCSS({ minify }?: {
12
14
  export declare function exportDataStores({ minify }?: {
13
15
  minify?: boolean;
14
16
  }): Promise<string>;
15
- type BackupType = "settings" | "plugins" | "css" | "datastore";
16
- export declare function downloadSettingsBackup(type: BackupType, { minify }?: {
17
+ export declare function downloadSettingsBackup(type?: BackupType, { minify }?: {
17
18
  minify?: boolean;
18
19
  }): Promise<void>;
19
- export declare function uploadSettingsBackup(showToast?: boolean): Promise<void>;
20
+ export declare function uploadSettingsBackup(type?: BackupType, showToast?: boolean): Promise<void>;
20
21
  export {};
@@ -1,7 +1,7 @@
1
1
  import "./BaseText.css";
2
2
  import type { Text as DiscordText } from "@plexcord/discord-types";
3
3
  import type { ComponentPropsWithoutRef, ReactNode } from "react";
4
- declare const Sizes: {
4
+ export declare const TextSizes: {
5
5
  readonly xxs: "0.625rem";
6
6
  readonly xs: "0.75rem";
7
7
  readonly sm: "0.875rem";
@@ -10,7 +10,7 @@ declare const Sizes: {
10
10
  readonly xl: "1.5rem";
11
11
  readonly xxl: "2rem";
12
12
  };
13
- declare const Weights: {
13
+ export declare const TextWeights: {
14
14
  readonly thin: "100";
15
15
  readonly extralight: "200";
16
16
  readonly light: "300";
@@ -20,15 +20,28 @@ declare const Weights: {
20
20
  readonly bold: "700";
21
21
  readonly extrabold: "800";
22
22
  };
23
+ export declare const TextColors: {
24
+ readonly "header-primary": "var(--header-primary)";
25
+ readonly "text-default": "var(--text-default)";
26
+ readonly "text-muted": "var(--text-muted)";
27
+ readonly "text-link": "var(--text-link)";
28
+ readonly "text-danger": "var(--redesign-button-danger-background, var(--button-danger-background))";
29
+ readonly "text-brand": "var(--text-brand)";
30
+ readonly "text-strong": "var(--text-strong)";
31
+ readonly "text-subtle": "var(--text-subtle)";
32
+ readonly "control-text-critical": "var(--control-text-critical-secondary-default)";
33
+ readonly "control-text-primary": "var(--control-text-primary-default)";
34
+ };
23
35
  export declare function generateTextCss(): string;
24
- export type TextSize = keyof typeof Sizes;
25
- export type TextWeight = keyof typeof Weights;
36
+ export type TextSize = keyof typeof TextSizes;
37
+ export type TextWeight = keyof typeof TextWeights;
38
+ export type TextColor = keyof typeof TextColors;
26
39
  export type TextTag = "div" | "span" | "p" | `h${1 | 2 | 3 | 4 | 5 | 6}`;
27
40
  export type BaseTextProps<Tag extends TextTag = "div"> = ComponentPropsWithoutRef<Tag> & {
28
41
  size?: TextSize;
29
42
  weight?: TextWeight;
43
+ color?: TextColor;
30
44
  tag?: Tag;
31
45
  };
32
46
  export declare function BaseText<T extends TextTag = "div">(props: BaseTextProps<T>): ReactNode;
33
47
  export declare const TextCompat: DiscordText;
34
- export {};
@@ -49,6 +49,7 @@ export declare function PluginsIcon(props: IconProps): import("react").JSX.Eleme
49
49
  export declare function CloudIcon(props: IconProps): import("react").JSX.Element;
50
50
  export declare function BackupRestoreIcon(props: IconProps): import("react").JSX.Element;
51
51
  export declare function UpdaterIcon(props: IconProps): import("react").JSX.Element;
52
+ export declare function ChangelogIcon(props: IconProps): import("react").JSX.Element;
52
53
  export declare function PatchHelperIcon(props: IconProps): import("react").JSX.Element;
53
54
  export declare function PlextronSettingsIcon(props: IconProps): import("react").JSX.Element;
54
55
  export declare function EyeIcon(props: IconProps): import("react").JSX.Element;
@@ -1,5 +1,6 @@
1
- interface Props extends React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> {
1
+ import "./Link.css";
2
+ import type { AnchorHTMLAttributes, PropsWithChildren } from "react";
3
+ export interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
2
4
  disabled?: boolean;
3
5
  }
4
- export declare function Link(props: React.PropsWithChildren<Props>): import("react").JSX.Element;
5
- export {};
6
+ export declare function Link({ disabled, className, children, ...restProps }: PropsWithChildren<LinkProps>): import("react").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { type BaseTextProps } from "./BaseText";
2
2
  export type SpanProps = BaseTextProps<"span">;
3
- export declare function Span({ children, ...restProps }: SpanProps): import("react").JSX.Element;
3
+ export declare function Span({ children, size, weight, ...restProps }: SpanProps): import("react").JSX.Element;