bc-stubs 117.0.0 → 117.0.1

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.
@@ -1585,7 +1585,6 @@ declare class _DialogExpressionMenu<ModeType extends DialogSelfMenuName> extends
1585
1585
  */
1586
1586
  _ReloadIcon(root: HTMLElement, icon: HTMLElement, properties: DialogMenu.InitProperties, options: Pick<DialogMenu.ReloadOptions, never>): void;
1587
1587
  }
1588
- declare const bob: _DialogExpressionMenu<"Expression">;
1589
1588
  /**
1590
1589
  * @template {DialogSelfMenuName} ModeType
1591
1590
  * @extends {_DialogSelfMenu<ModeType, Pose>}
@@ -0,0 +1,108 @@
1
+ /**
2
+ * Manages the display and lifecycle of toast notifications.
3
+ * Maintains a queue of toasts to display and limits the number of
4
+ * concurrently visible toasts.
5
+ */
6
+ declare var ToastManager: {
7
+ /**
8
+ * Queue of toast options waiting to be displayed.
9
+ * @type {Required<Toasts.Options>[]}
10
+ */
11
+ queue: Required<Toasts.Options>[];
12
+ /**
13
+ * Tracks the number of active (visible) toasts.
14
+ * @type {number}
15
+ */
16
+ active: number;
17
+ /**
18
+ * Show an info toast, because you need to know stuff.
19
+ *
20
+ * @param {string} msg - Text content of the toast.
21
+ * @param {Omit<Toasts.Options, 'message' | 'type'>} [opts={}] - Other toast options.
22
+ */
23
+ info(msg: string, opts?: Omit<Toasts.Options, "message" | "type">): void;
24
+ /**
25
+ * Show a success toast. It's time to celebrate! 🎉
26
+ *
27
+ * @param {string} msg - Text content of the toast.
28
+ * @param {Omit<Toasts.Options, 'message' | 'type'>} [opts={}] - Other toast options.
29
+ */
30
+ success(msg: string, opts?: Omit<Toasts.Options, "message" | "type">): void;
31
+ /**
32
+ * Show a warning toast. Watch out, things might explode!
33
+ *
34
+ * @param {string} msg - Text content of the toast.
35
+ * @param {Omit<Toasts.Options, 'message' | 'type'>} [opts={}] - Other toast options.
36
+ */
37
+ warning(msg: string, opts?: Omit<Toasts.Options, "message" | "type">): void;
38
+ /**
39
+ * Show an error toast. Oh noes, something broke.
40
+ *
41
+ * @param {string} msg - Text content of the toast.
42
+ * @param {Omit<Toasts.Options, 'message' | 'type'>} [opts={}] - Other toast options.
43
+ */
44
+ error(msg: string, opts?: Omit<Toasts.Options, "message" | "type">): void;
45
+ /**
46
+ * Show a custom toast, because you're special.
47
+ *
48
+ * @param {string} msg - Text content of the toast.
49
+ * @param {Toasts.Type} type - Custom type string or one of the predefined types.
50
+ * @param {Omit<Toasts.Options, 'message' | 'type'>} [opts={}] - Other toast options.
51
+ */
52
+ custom(msg: string, type: Toasts.Type, opts?: Omit<Toasts.Options, "message" | "type">): void;
53
+ /**
54
+ * Kick out every single visible toast regardless of type.
55
+ *
56
+ * @returns {void}
57
+ */
58
+ dismissAll(): void;
59
+ /**
60
+ * Kicks out all toasts of a particular style.
61
+ *
62
+ * @param {Toasts.Type} type - The type of toasts to dismiss (e.g., 'info', 'error').
63
+ * @returns {void}
64
+ */
65
+ dismissByType(type: Toasts.Type): void;
66
+ /**
67
+ * Enqueues a new toast to be displayed with the given options.
68
+ * Fills in any missing option fields with default values, then
69
+ * attempts to process the queue to show toasts if slots are available.
70
+ *
71
+ * @param {Toasts.Options} options - Configuration for the toast.
72
+ * @returns {void}
73
+ */
74
+ _show(options: Toasts.Options): void;
75
+ /**
76
+ * Internal method that iterates through the queue and displays any toast
77
+ * if the active count is not currently at max capacity. Removes displayed toasts
78
+ * from the queue and updates the active count.
79
+ *
80
+ * @returns {void}
81
+ */
82
+ _process(): void;
83
+ /**
84
+ * Builds the toast element, hooks up animations, buttons, and timers,
85
+ * and tracks its lifetime until Void kidnaps it.
86
+ *
87
+ * @param {Required<Toasts.Options>} _ - Fully resolved options for the toast to display.
88
+ * @returns {void}
89
+ */
90
+ _display(_: Required<Toasts.Options>): void;
91
+ /**
92
+ * Retrieves an existing container element for toasts, or creates a new one if none exists.
93
+ *
94
+ * @returns {HTMLDivElement} The container <div> element.
95
+ */
96
+ _getOrCreateContainer(): HTMLDivElement;
97
+ /**
98
+ * Animates the <progress> element from 0 to its max value over the specified duration.
99
+ * Calls onFinish when the progress reaches its maximum. Returns a function that can
100
+ * be called to stop the animation prematurely.
101
+ *
102
+ * @param {HTMLProgressElement} progress - The <progress> element to animate.
103
+ * @param {() => void | undefined} onFinish - Callback invoked when the animation completes.
104
+ * @param {number} durationMs - Total time in milliseconds for the progress to fill.
105
+ * @returns {() => void} Function to call to cancel the progress animation timer.
106
+ */
107
+ _animateProgress(progress: HTMLProgressElement, onFinish: () => void | undefined, durationMs: number): () => void;
108
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bc-stubs",
3
- "version": "117.0.0",
3
+ "version": "117.0.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@github.com/bananarama92/BC-stubs.git"