@plexcord/types 1.19.8 → 1.20.0

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.
Files changed (48) hide show
  1. package/PlexcordNative.d.ts +6 -0
  2. package/api/HeaderBar.d.ts +14 -6
  3. package/components/BaseText.d.ts +40 -7
  4. package/components/Card.d.ts +3 -2
  5. package/components/Link.d.ts +2 -1
  6. package/components/Notice.d.ts +14 -23
  7. package/components/margins.d.ts +2 -2
  8. package/locales/en.d.ts +44 -12
  9. package/package.json +1 -1
  10. package/plugins/_api/notices.d.ts +6 -0
  11. package/plugins/betterActivities/index.d.ts +1 -1
  12. package/plugins/clipsEnhancements/index.d.ts +32 -2
  13. package/plugins/consoleJanitor/index.d.ts +2 -0
  14. package/plugins/decor/index.d.ts +8 -0
  15. package/plugins/holyNotes/NoteHandler.d.ts +13 -21
  16. package/plugins/holyNotes/components/modals/Error.d.ts +2 -3
  17. package/plugins/holyNotes/components/modals/HelpModal.d.ts +1 -4
  18. package/plugins/holyNotes/components/modals/Notebook.d.ts +1 -3
  19. package/plugins/holyNotes/components/modals/NotebookCreateModal.d.ts +1 -4
  20. package/plugins/holyNotes/components/modals/NotebookDeleteModal.d.ts +5 -5
  21. package/plugins/holyNotes/components/modals/RenderMessage.d.ts +6 -4
  22. package/plugins/holyNotes/index.d.ts +13 -15
  23. package/plugins/holyNotes/types.d.ts +25 -37
  24. package/plugins/holyNotes/utils.d.ts +4 -9
  25. package/plugins/keywordNotify/index.d.ts +7 -5
  26. package/plugins/loadingQuotes/index.d.ts +2 -0
  27. package/plugins/loginWithQR/index.d.ts +8 -12
  28. package/plugins/loginWithQR/ui/modals/QrModal.d.ts +2 -1
  29. package/plugins/loginWithQR/ui/modals/VerifyModal.d.ts +1 -1
  30. package/plugins/messageLinkEmbeds/index.d.ts +2 -0
  31. package/plugins/messageLogger/index.d.ts +6 -0
  32. package/plugins/noReplyMention/index.d.ts +4 -0
  33. package/plugins/questify/index.d.ts +1 -1
  34. package/plugins/questify/utils/components.d.ts +1 -0
  35. package/plugins/roleColorEverywhere/index.d.ts +3 -2
  36. package/plugins/showConnections/index.d.ts +1 -1
  37. package/plugins/superReactionTweaks/index.d.ts +7 -2
  38. package/plugins/translate/languages.d.ts +95 -2
  39. package/plugins/translate/utils.d.ts +95 -2
  40. package/plugins/vcNarrator/index.d.ts +1 -0
  41. package/shared/IpcEvents.d.ts +5 -1
  42. package/utils/modal.d.ts +1 -0
  43. package/utils/types.d.ts +2 -0
  44. package/plugins/holyNotes/components/icons/HelpIcon.d.ts +0 -5
  45. package/plugins/holyNotes/components/icons/NoteButton.d.ts +0 -4
  46. package/plugins/holyNotes/components/icons/overFlowIcon.d.ts +0 -10
  47. package/plugins/holyNotes/components/modals/ManageNotebookButton.d.ts +0 -5
  48. package/plugins/holyNotes/components/modals/NoteBookTab.d.ts +0 -14
@@ -57,6 +57,12 @@ declare const _default: {
57
57
  removeOverride: (url: string) => Promise<boolean>;
58
58
  requestAddOverride: (url: string, directives: string[], callerName: string) => Promise<CspRequestResult>;
59
59
  };
60
+ tray: {
61
+ setUpdateState: (available: boolean) => void;
62
+ onCheckUpdates: (cb: () => void) => void;
63
+ onRepair: (cb: () => void) => void;
64
+ onAbout: (cb: () => void) => void;
65
+ };
60
66
  pluginHelpers: Record<string, Record<string, (...args: any[]) => Promise<any>>>;
61
67
  };
62
68
  export default _default;
@@ -10,6 +10,16 @@ export interface HeaderBarButtonProps {
10
10
  onContextMenu?: MouseEventHandler<HTMLDivElement>;
11
11
  /** Additional CSS class names */
12
12
  className?: string;
13
+ /** Size of the icon in pixels */
14
+ iconSize?: number;
15
+ /** Tooltip position relative to the button */
16
+ position?: "top" | "bottom" | "left" | "right";
17
+ /** Whether the button appears in a selected/active state */
18
+ selected?: boolean;
19
+ /** Aria label for accessibility */
20
+ "aria-label"?: string;
21
+ }
22
+ export interface ChannelToolbarButtonProps extends HeaderBarButtonProps {
13
23
  /** CSS class name for the icon element */
14
24
  iconClassName?: string;
15
25
  /** Tooltip position relative to the button */
@@ -22,10 +32,6 @@ export interface HeaderBarButtonProps {
22
32
  showBadge?: boolean;
23
33
  /** Position of the notification badge */
24
34
  badgePosition?: "top" | "bottom";
25
- /** Size of the icon in pixels */
26
- iconSize?: number;
27
- /** Ref to the button element */
28
- ref?: React.RefObject<any>;
29
35
  }
30
36
  export type HeaderBarButtonFactory = () => JSX.Element | null;
31
37
  export interface HeaderBarButtonData {
@@ -48,7 +54,9 @@ export interface HeaderBarButtonData {
48
54
  * onClick={() => console.log("clicked")}
49
55
  * />
50
56
  */
51
- export declare const HeaderBarButton: ComponentType<HeaderBarButtonProps>;
57
+ export declare function HeaderBarButton(props: HeaderBarButtonProps & {
58
+ ref?: React.RefObject<any>;
59
+ }): JSX.Element;
52
60
  /**
53
61
  * Button component for the channel toolbar (below the search bar).
54
62
  * Automatically handles selected state styling.
@@ -61,7 +69,7 @@ export declare const HeaderBarButton: ComponentType<HeaderBarButtonProps>;
61
69
  * selected={isOpen}
62
70
  * />
63
71
  */
64
- export declare function ChannelToolbarButton(props: HeaderBarButtonProps): JSX.Element;
72
+ export declare function ChannelToolbarButton(props: ChannelToolbarButtonProps): JSX.Element;
65
73
  /**
66
74
  * Adds a button to the header bar (title bar area).
67
75
  *
@@ -2,13 +2,34 @@ import "./BaseText.css";
2
2
  import type { Text as DiscordText } from "@plexcord/discord-types";
3
3
  import type { ComponentPropsWithoutRef, ReactNode } from "react";
4
4
  export declare const TextSizes: {
5
- readonly xxs: "0.625rem";
6
- readonly xs: "0.75rem";
7
- readonly sm: "0.875rem";
8
- readonly md: "1rem";
9
- readonly lg: "1.25rem";
10
- readonly xl: "1.5rem";
11
- readonly xxl: "2rem";
5
+ readonly xxs: {
6
+ readonly fontSize: "10px";
7
+ readonly lineHeight: "1.2";
8
+ };
9
+ readonly xs: {
10
+ readonly fontSize: "12px";
11
+ readonly lineHeight: "1.33333";
12
+ };
13
+ readonly sm: {
14
+ readonly fontSize: "14px";
15
+ readonly lineHeight: "1.28571";
16
+ };
17
+ readonly md: {
18
+ readonly fontSize: "16px";
19
+ readonly lineHeight: "1.25";
20
+ };
21
+ readonly lg: {
22
+ readonly fontSize: "20px";
23
+ readonly lineHeight: "1.2";
24
+ };
25
+ readonly xl: {
26
+ readonly fontSize: "24px";
27
+ readonly lineHeight: "1.25";
28
+ };
29
+ readonly xxl: {
30
+ readonly fontSize: "32px";
31
+ readonly lineHeight: "1.25";
32
+ };
12
33
  };
13
34
  export declare const TextWeights: {
14
35
  readonly thin: "100";
@@ -28,6 +49,15 @@ export declare const TextColors: {
28
49
  readonly "text-brand": "var(--text-brand)";
29
50
  readonly "text-strong": "var(--text-strong)";
30
51
  readonly "text-subtle": "var(--text-subtle)";
52
+ readonly "text-invert": "var(--text-invert)";
53
+ readonly "text-feedback-critical": "var(--text-feedback-critical)";
54
+ readonly "text-feedback-info": "var(--text-feedback-info)";
55
+ readonly "text-feedback-positive": "var(--text-feedback-positive)";
56
+ readonly "text-feedback-warning": "var(--text-feedback-warning)";
57
+ readonly "text-status-dnd": "var(--text-status-dnd)";
58
+ readonly "text-status-idle": "var(--text-status-idle)";
59
+ readonly "text-status-offline": "var(--text-status-offline)";
60
+ readonly "text-status-online": "var(--text-status-online)";
31
61
  readonly "control-text-critical": "var(--control-text-critical-secondary-default)";
32
62
  readonly "control-text-primary": "var(--control-text-primary-default)";
33
63
  };
@@ -41,6 +71,9 @@ export type BaseTextProps<Tag extends TextTag = "div"> = ComponentPropsWithoutRe
41
71
  weight?: TextWeight;
42
72
  color?: TextColor;
43
73
  tag?: Tag;
74
+ selectable?: boolean;
75
+ lineClamp?: number;
76
+ tabularNumbers?: boolean;
44
77
  };
45
78
  export declare function BaseText<T extends TextTag = "div">(props: BaseTextProps<T>): ReactNode;
46
79
  export declare const TextCompat: DiscordText;
@@ -1,8 +1,9 @@
1
1
  import "./Card.css";
2
2
  import { ComponentPropsWithRef } from "react";
3
3
  export interface CardProps extends ComponentPropsWithRef<"div"> {
4
- variant?: "normal" | "warning" | "danger";
4
+ variant?: "primary" | "warning" | "danger" | "success" | "brand";
5
+ outline?: boolean;
5
6
  /** Add a default padding of 1em to the card. This is implied if no className prop is passed */
6
7
  defaultPadding?: boolean;
7
8
  }
8
- export declare function Card({ variant, defaultPadding, children, className, ...restProps }: CardProps): import("react").JSX.Element;
9
+ export declare function Card({ variant, outline, defaultPadding, children, className, ...restProps }: CardProps): import("react").JSX.Element;
@@ -2,5 +2,6 @@ import "./Link.css";
2
2
  import type { AnchorHTMLAttributes, PropsWithChildren } from "react";
3
3
  export interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
4
4
  disabled?: boolean;
5
+ useDefaultUnderlineStyles?: boolean;
5
6
  }
6
- export declare function Link({ disabled, className, children, ...restProps }: PropsWithChildren<LinkProps>): import("react").JSX.Element;
7
+ export declare function Link({ disabled, useDefaultUnderlineStyles, href, rel, target, className, children, ...restProps }: PropsWithChildren<LinkProps>): import("react").JSX.Element;
@@ -1,27 +1,18 @@
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 {
1
+ import "./Notice.css";
2
+ import type { ComponentPropsWithoutRef, ComponentType, ReactNode, SVGProps } from "react";
3
+ export declare const NoticeVariants: readonly ["info", "warning", "danger", "positive"];
4
+ export type NoticeVariant = typeof NoticeVariants[number];
5
+ export type NoticeProps = Omit<ComponentPropsWithoutRef<"div">, "children"> & {
5
6
  children: ReactNode;
6
- className?: string;
7
- style?: CSSProperties;
8
- icon?: ComponentType<{
9
- className?: string;
10
- color?: string;
11
- }>;
7
+ variant?: NoticeVariant;
8
+ icon?: ComponentType<SVGProps<SVGSVGElement>>;
12
9
  action?: ReactNode;
13
- textColor?: string;
14
- textVariant?: string;
15
10
  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
11
  };
27
- export {};
12
+ export declare function Notice({ children, variant, icon, action, hidden, className, ...restProps }: NoticeProps): import("react").JSX.Element;
13
+ export declare namespace Notice {
14
+ var Info: (props: Omit<NoticeProps, "variant">) => import("react").JSX.Element;
15
+ var Warning: (props: Omit<NoticeProps, "variant">) => import("react").JSX.Element;
16
+ var Danger: (props: Omit<NoticeProps, "variant">) => import("react").JSX.Element;
17
+ var Positive: (props: Omit<NoticeProps, "variant">) => import("react").JSX.Element;
18
+ }
@@ -1,7 +1,7 @@
1
1
  declare const Directions: readonly ["top", "bottom", "left", "right"];
2
- declare const Sizes: readonly [8, 16, 20];
2
+ declare const Sizes: readonly [4, 8, 16, 20, 24, 40, 60];
3
3
  export type MarginDirection = (typeof Directions)[number];
4
4
  export type MarginSize = (typeof Sizes)[number];
5
- export declare const Margins: Record<`${MarginDirection}${MarginSize}`, string>;
5
+ export declare const Margins: Record<`${MarginDirection}${MarginSize}` | "reset" | "centerHorz", string>;
6
6
  export declare function generateMarginCss(): string;
7
7
  export {};
package/locales/en.d.ts CHANGED
@@ -359,6 +359,7 @@ declare const translations: {
359
359
  readonly description: "These are the floating buttons on the right when you hover over a message";
360
360
  };
361
361
  };
362
+ readonly button: "Buttons of enabled plugins will appear here.";
362
363
  };
363
364
  };
364
365
  readonly patchHelper: {
@@ -733,6 +734,8 @@ declare const translations: {
733
734
  readonly updates: "Updates";
734
735
  readonly updated: "has been updated!";
735
736
  readonly restart: "Click here to restart";
737
+ readonly repaired: "Plexcord has been repaired!";
738
+ readonly ok: "Ok";
736
739
  readonly preferences: {
737
740
  readonly title: "Update Preferences";
738
741
  readonly description: "Control how Plexcord keeps itself up to date. You can choose to update automatically in the background or be notified when new updates are available.";
@@ -2387,6 +2390,10 @@ declare const translations: {
2387
2390
  readonly label: "Enable Advanced Signals";
2388
2391
  readonly description: "Enable advanced clip signals (auto-clip triggers)";
2389
2392
  };
2393
+ readonly ignorePlatformRestriction: {
2394
+ readonly label: "Ignore Platform Restriction";
2395
+ readonly description: "Allow Platform Restricted Clipping (may cause save errors)";
2396
+ };
2390
2397
  readonly clipsLink: {
2391
2398
  readonly label: "Clips Link";
2392
2399
  readonly link: "Change FPS and duration options in Clips settings!";
@@ -2924,7 +2931,7 @@ declare const translations: {
2924
2931
  };
2925
2932
  readonly whitelistedLoggers: {
2926
2933
  readonly label: "Whitelisted Loggers";
2927
- readonly description: "Semi colon separated list of loggers to allow even if others are hidden";
2934
+ readonly description: "Semicolon (;) separated list of loggers to allow even if others are hidden";
2928
2935
  };
2929
2936
  readonly allowLevel: {
2930
2937
  readonly label: "Allow Level";
@@ -4563,7 +4570,8 @@ declare const translations: {
4563
4570
  readonly button: {
4564
4571
  readonly tooltip: "Holy Notes";
4565
4572
  readonly save: "Save Note";
4566
- readonly addNote: "Add Note";
4573
+ readonly cancel: "Cancel";
4574
+ readonly noteMessage: "Note Message";
4567
4575
  readonly refresh: "Refresh Avatars";
4568
4576
  readonly import: "Import Notes";
4569
4577
  readonly export: "Export Notes";
@@ -4579,12 +4587,13 @@ declare const translations: {
4579
4587
  };
4580
4588
  readonly modal: {
4581
4589
  readonly error: {
4582
- readonly generic: "There was an error parsing your notes! The issue was logged in your console, press CTRL + I to access it! Please visit the support server if you need extra help!";
4590
+ readonly generic: "There was an error parsing your notes. Check the console for details.";
4583
4591
  readonly easter: "No notes were found. Empathy banana is here for you.";
4584
4592
  readonly empty: "No notes were found saved in this notebook.";
4585
4593
  };
4586
4594
  readonly help: {
4587
- readonly title: "Help Modal";
4595
+ readonly title: "Help";
4596
+ readonly description: "Learn how to use Holy Notes";
4588
4597
  readonly addingNotes: "Adding Notes";
4589
4598
  readonly addingNotesText: "To add a note right click on a message then hover over the 'Note Message' item and click the button with the notebook name you would like to note the message to.";
4590
4599
  readonly prototype: "Prototype";
@@ -4599,7 +4608,10 @@ declare const translations: {
4599
4608
  readonly notebook: {
4600
4609
  readonly title: "NOTEBOOK";
4601
4610
  readonly search: "Search for a message...";
4611
+ readonly options: "Sort Options";
4602
4612
  readonly label: "Sort Menu";
4613
+ readonly filteredOf: "{{filteredCount}} of {{noteCount}} note{{s}}";
4614
+ readonly note: "{{noteCount}} note{{s}}";
4603
4615
  readonly ada: "Ascending / Date Added";
4604
4616
  readonly amd: "Ascending / Message Date";
4605
4617
  readonly dda: "Descending / Date Added";
@@ -4612,10 +4624,12 @@ declare const translations: {
4612
4624
  };
4613
4625
  readonly create: {
4614
4626
  readonly title: "Create Notebook";
4627
+ readonly description: "Enter a name for your new notebook";
4615
4628
  readonly placeholder: "Notebook Name";
4616
4629
  };
4617
4630
  readonly delete: {
4618
- readonly title: "Confirm Deletion";
4631
+ readonly title: "Delete {{notebookName}}?";
4632
+ readonly description: "{{noteCount}} note{{s}} will be deleted permanently";
4619
4633
  readonly button: "Delete";
4620
4634
  };
4621
4635
  readonly tabs: {
@@ -4632,7 +4646,7 @@ declare const translations: {
4632
4646
  readonly refreshed: "Successfully refreshed avatars.";
4633
4647
  readonly deletedAll: "Successfully deleted all notes.";
4634
4648
  readonly imported: "Successfully imported notes.";
4635
- readonly invalid: "Invalid JSON.";
4649
+ readonly invalid: "Failed to import notes.";
4636
4650
  };
4637
4651
  readonly toolbox: {
4638
4652
  readonly action: "Open Notes";
@@ -6752,6 +6766,7 @@ declare const translations: {
6752
6766
  readonly unmarkAsIgnored: "Unmark as Ignored";
6753
6767
  readonly stopAuto: "Stop Auto-Complete";
6754
6768
  readonly copyQuestID: "Copy Quest ID";
6769
+ readonly startAuto: "Start Auto-Complete";
6755
6770
  };
6756
6771
  };
6757
6772
  readonly settings: {
@@ -7105,6 +7120,7 @@ declare const translations: {
7105
7120
  readonly resume: "Resume (~{{remainTime}})";
7106
7121
  readonly complete: "Complete {{remainTime}}";
7107
7122
  readonly completeImmediate: "Complete (Immediate)";
7123
+ readonly completed: "Completed";
7108
7124
  };
7109
7125
  readonly reward: {
7110
7126
  readonly orbs: "{{completingText}} for {{orbQuantity}} Orbs.";
@@ -9953,6 +9969,7 @@ export declare const plugins: DeepKeyProxy<{
9953
9969
  readonly description: "These are the floating buttons on the right when you hover over a message";
9954
9970
  };
9955
9971
  };
9972
+ readonly button: "Buttons of enabled plugins will appear here.";
9956
9973
  };
9957
9974
  }>;
9958
9975
  export declare const patchHelper: DeepKeyProxy<{
@@ -10327,6 +10344,8 @@ export declare const updater: DeepKeyProxy<{
10327
10344
  readonly updates: "Updates";
10328
10345
  readonly updated: "has been updated!";
10329
10346
  readonly restart: "Click here to restart";
10347
+ readonly repaired: "Plexcord has been repaired!";
10348
+ readonly ok: "Ok";
10330
10349
  readonly preferences: {
10331
10350
  readonly title: "Update Preferences";
10332
10351
  readonly description: "Control how Plexcord keeps itself up to date. You can choose to update automatically in the background or be notified when new updates are available.";
@@ -11981,6 +12000,10 @@ export declare const plugin: DeepKeyProxy<{
11981
12000
  readonly label: "Enable Advanced Signals";
11982
12001
  readonly description: "Enable advanced clip signals (auto-clip triggers)";
11983
12002
  };
12003
+ readonly ignorePlatformRestriction: {
12004
+ readonly label: "Ignore Platform Restriction";
12005
+ readonly description: "Allow Platform Restricted Clipping (may cause save errors)";
12006
+ };
11984
12007
  readonly clipsLink: {
11985
12008
  readonly label: "Clips Link";
11986
12009
  readonly link: "Change FPS and duration options in Clips settings!";
@@ -12518,7 +12541,7 @@ export declare const plugin: DeepKeyProxy<{
12518
12541
  };
12519
12542
  readonly whitelistedLoggers: {
12520
12543
  readonly label: "Whitelisted Loggers";
12521
- readonly description: "Semi colon separated list of loggers to allow even if others are hidden";
12544
+ readonly description: "Semicolon (;) separated list of loggers to allow even if others are hidden";
12522
12545
  };
12523
12546
  readonly allowLevel: {
12524
12547
  readonly label: "Allow Level";
@@ -14157,7 +14180,8 @@ export declare const plugin: DeepKeyProxy<{
14157
14180
  readonly button: {
14158
14181
  readonly tooltip: "Holy Notes";
14159
14182
  readonly save: "Save Note";
14160
- readonly addNote: "Add Note";
14183
+ readonly cancel: "Cancel";
14184
+ readonly noteMessage: "Note Message";
14161
14185
  readonly refresh: "Refresh Avatars";
14162
14186
  readonly import: "Import Notes";
14163
14187
  readonly export: "Export Notes";
@@ -14173,12 +14197,13 @@ export declare const plugin: DeepKeyProxy<{
14173
14197
  };
14174
14198
  readonly modal: {
14175
14199
  readonly error: {
14176
- readonly generic: "There was an error parsing your notes! The issue was logged in your console, press CTRL + I to access it! Please visit the support server if you need extra help!";
14200
+ readonly generic: "There was an error parsing your notes. Check the console for details.";
14177
14201
  readonly easter: "No notes were found. Empathy banana is here for you.";
14178
14202
  readonly empty: "No notes were found saved in this notebook.";
14179
14203
  };
14180
14204
  readonly help: {
14181
- readonly title: "Help Modal";
14205
+ readonly title: "Help";
14206
+ readonly description: "Learn how to use Holy Notes";
14182
14207
  readonly addingNotes: "Adding Notes";
14183
14208
  readonly addingNotesText: "To add a note right click on a message then hover over the 'Note Message' item and click the button with the notebook name you would like to note the message to.";
14184
14209
  readonly prototype: "Prototype";
@@ -14193,7 +14218,10 @@ export declare const plugin: DeepKeyProxy<{
14193
14218
  readonly notebook: {
14194
14219
  readonly title: "NOTEBOOK";
14195
14220
  readonly search: "Search for a message...";
14221
+ readonly options: "Sort Options";
14196
14222
  readonly label: "Sort Menu";
14223
+ readonly filteredOf: "{{filteredCount}} of {{noteCount}} note{{s}}";
14224
+ readonly note: "{{noteCount}} note{{s}}";
14197
14225
  readonly ada: "Ascending / Date Added";
14198
14226
  readonly amd: "Ascending / Message Date";
14199
14227
  readonly dda: "Descending / Date Added";
@@ -14206,10 +14234,12 @@ export declare const plugin: DeepKeyProxy<{
14206
14234
  };
14207
14235
  readonly create: {
14208
14236
  readonly title: "Create Notebook";
14237
+ readonly description: "Enter a name for your new notebook";
14209
14238
  readonly placeholder: "Notebook Name";
14210
14239
  };
14211
14240
  readonly delete: {
14212
- readonly title: "Confirm Deletion";
14241
+ readonly title: "Delete {{notebookName}}?";
14242
+ readonly description: "{{noteCount}} note{{s}} will be deleted permanently";
14213
14243
  readonly button: "Delete";
14214
14244
  };
14215
14245
  readonly tabs: {
@@ -14226,7 +14256,7 @@ export declare const plugin: DeepKeyProxy<{
14226
14256
  readonly refreshed: "Successfully refreshed avatars.";
14227
14257
  readonly deletedAll: "Successfully deleted all notes.";
14228
14258
  readonly imported: "Successfully imported notes.";
14229
- readonly invalid: "Invalid JSON.";
14259
+ readonly invalid: "Failed to import notes.";
14230
14260
  };
14231
14261
  readonly toolbox: {
14232
14262
  readonly action: "Open Notes";
@@ -16346,6 +16376,7 @@ export declare const plugin: DeepKeyProxy<{
16346
16376
  readonly unmarkAsIgnored: "Unmark as Ignored";
16347
16377
  readonly stopAuto: "Stop Auto-Complete";
16348
16378
  readonly copyQuestID: "Copy Quest ID";
16379
+ readonly startAuto: "Start Auto-Complete";
16349
16380
  };
16350
16381
  };
16351
16382
  readonly settings: {
@@ -16699,6 +16730,7 @@ export declare const plugin: DeepKeyProxy<{
16699
16730
  readonly resume: "Resume (~{{remainTime}})";
16700
16731
  readonly complete: "Complete {{remainTime}}";
16701
16732
  readonly completeImmediate: "Complete (Immediate)";
16733
+ readonly completed: "Completed";
16702
16734
  };
16703
16735
  readonly reward: {
16704
16736
  readonly orbs: "{{completingText}} for {{orbQuantity}} Orbs.";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@plexcord/types",
3
3
  "private": false,
4
- "version": "1.19.8",
4
+ "version": "1.20.0",
5
5
  "description": "",
6
6
  "types": "index.d.ts",
7
7
  "scripts": {
@@ -11,9 +11,15 @@ declare const _default: {
11
11
  replacement: ({
12
12
  match: RegExp;
13
13
  replace: string;
14
+ noWarn?: undefined;
15
+ } | {
16
+ match: RegExp;
17
+ replace: (m: string, notice: string) => string;
18
+ noWarn?: undefined;
14
19
  } | {
15
20
  match: RegExp;
16
21
  replace: (m: string, _: string, notice: string) => string;
22
+ noWarn: true;
17
23
  })[];
18
24
  }[];
19
25
  } & Record<PropertyKey, any> & import("../../utils/types").Plugin;
@@ -160,7 +160,7 @@ declare const _default: {
160
160
  all: true;
161
161
  predicate?: undefined;
162
162
  } | {
163
- find: string;
163
+ find: RegExp;
164
164
  replacement: {
165
165
  match: RegExp;
166
166
  replace: string;
@@ -42,6 +42,13 @@ declare const _default: {
42
42
  default: true;
43
43
  restartNeeded: true;
44
44
  };
45
+ ignorePlatformRestriction: {
46
+ label: () => string;
47
+ description: () => string;
48
+ type: OptionType.BOOLEAN;
49
+ default: true;
50
+ restartNeeded: true;
51
+ };
45
52
  clipsLink: {
46
53
  label: () => string;
47
54
  type: OptionType.COMPONENT;
@@ -84,6 +91,13 @@ declare const _default: {
84
91
  default: true;
85
92
  restartNeeded: true;
86
93
  };
94
+ ignorePlatformRestriction: {
95
+ label: () => string;
96
+ description: () => string;
97
+ type: OptionType.BOOLEAN;
98
+ default: true;
99
+ restartNeeded: true;
100
+ };
87
101
  clipsLink: {
88
102
  label: () => string;
89
103
  type: OptionType.COMPONENT;
@@ -98,8 +112,24 @@ declare const _default: {
98
112
  replace: string;
99
113
  };
100
114
  }[];
101
- patchTimeslots(timeslots: any): any[];
102
- patchFramerates(framerates: any): any[];
115
+ patchTimeslots(timeslots: {
116
+ id: string;
117
+ value: number;
118
+ label: string;
119
+ }[]): {
120
+ id: string;
121
+ value: number;
122
+ label: string;
123
+ }[];
124
+ patchFramerates(framerates: {
125
+ id: string;
126
+ value: number;
127
+ label: string;
128
+ }[]): {
129
+ id: string;
130
+ value: number;
131
+ label: string;
132
+ }[];
103
133
  getApplicationId(activityName: string): string | null | undefined;
104
134
  } & Record<PropertyKey, any> & import("../../utils/types").Plugin;
105
135
  export default _default;
@@ -34,6 +34,7 @@ declare const _default: {
34
34
  description: () => string;
35
35
  type: OptionType.STRING;
36
36
  default: string;
37
+ multiline: true;
37
38
  onChange(newVal: string): void;
38
39
  };
39
40
  allowLevel: {
@@ -62,6 +63,7 @@ declare const _default: {
62
63
  description: () => string;
63
64
  type: OptionType.STRING;
64
65
  default: string;
66
+ multiline: true;
65
67
  onChange(newVal: string): void;
66
68
  };
67
69
  allowLevel: {
@@ -31,6 +31,14 @@ declare const _default: {
31
31
  match: RegExp;
32
32
  replace: string;
33
33
  }[];
34
+ } | {
35
+ find: string;
36
+ replacement: {
37
+ match: RegExp;
38
+ replace: string;
39
+ noWarn: true;
40
+ }[];
41
+ group?: undefined;
34
42
  } | {
35
43
  find: string;
36
44
  replacement: {
@@ -1,25 +1,17 @@
1
1
  import { Message } from "@plexcord/discord-types";
2
- import { HolyNotes } from "./types";
3
- export declare const noteHandlerCache: Map<any, any>;
4
- declare const noteHandler: {
5
- getNotes(notebook?: string): Record<string, HolyNotes.Note>;
6
- getAllNotes(): HolyNotes.Note[];
7
- addNote(message: Message, notebook: string): Promise<void>;
8
- deleteNote(noteId: string, notebook: string): Promise<void>;
9
- moveNote(note: HolyNotes.Note, from: string, to: string): Promise<void>;
10
- newNoteBook(notebookName: string, silent?: Boolean): Promise<void | {
11
- id: string;
12
- message: string;
13
- type: any;
14
- }>;
15
- deleteNotebook(notebookName: string): Promise<void>;
16
- refreshAvatars(): Promise<void>;
2
+ import { AllNotebooks, Note, Notebook } from "./types";
3
+ export declare const noteHandlerCache: Map<string, Notebook>;
4
+ export declare const noteHandler: {
5
+ getNotes(notebook: string): Notebook | undefined;
6
+ getAllNotes(): AllNotebooks;
7
+ addNote(message: Message, notebook: string): void;
8
+ deleteNote(noteId: string, notebook: string): void;
9
+ moveNote(note: Note, from: string, to: string): void;
10
+ newNoteBook(name: string, silent?: boolean): void;
11
+ deleteNotebook(name: string): void;
12
+ refreshAvatars(): void;
17
13
  deleteEverything(): Promise<void>;
18
- exportNotes(): Promise<HolyNotes.Note[]>;
19
- importNotes(notes: HolyNotes.Note[]): Promise<void | {
20
- id: string;
21
- message: string;
22
- type: any;
23
- }>;
14
+ exportNotes(): AllNotebooks;
15
+ importNotes(jsonString: string): void;
24
16
  };
25
17
  export default noteHandler;
@@ -1,4 +1,3 @@
1
- declare const _default: ({ error }?: {
1
+ export default function EmptyNotebook({ error }?: {
2
2
  error?: Error;
3
- }) => import("react").JSX.Element;
4
- export default _default;
3
+ }): import("react").JSX.Element;
@@ -1,5 +1,2 @@
1
1
  import { ModalProps } from "../../../../utils/modal";
2
- declare const _default: ({ onClose, ...modalProps }: ModalProps & {
3
- onClose: () => void;
4
- }) => import("react").JSX.Element;
5
- export default _default;
2
+ export default function HelpModal({ onClose, transitionState }: ModalProps): import("react").JSX.Element;
@@ -1,4 +1,2 @@
1
1
  import { ModalProps } from "../../../../utils/modal";
2
- export declare const NoteModal: (props: ModalProps & {
3
- onClose: () => void;
4
- }) => import("react").JSX.Element;
2
+ export declare function NoteModal({ onClose, transitionState }: ModalProps): import("react").JSX.Element | null;
@@ -1,5 +1,2 @@
1
1
  import { ModalProps } from "../../../../utils/modal";
2
- declare const _default: (props: ModalProps & {
3
- onClose: () => void;
4
- }) => import("react").JSX.Element;
5
- export default _default;
2
+ export default function NotebookCreateModal({ onClose, transitionState }: ModalProps): import("react").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { ModalProps } from "../../../../utils/modal";
2
- declare const _default: ({ onClose, notebook, onChangeTab, ...props }: ModalProps & {
3
- onClose: () => void;
2
+ interface Props extends ModalProps {
4
3
  notebook: string;
5
- onChangeTab: (notebook: string) => void;
6
- }) => import("react").JSX.Element;
7
- export default _default;
4
+ onChangeTab: React.Dispatch<React.SetStateAction<string>>;
5
+ }
6
+ export default function NotebookDeleteModal({ onClose, transitionState, notebook, onChangeTab }: Props): import("react").JSX.Element;
7
+ export {};