@@ -59,6 +59,13 @@ declare global {
5959 }
6060
6161 const helpers : {
62+ /** Appends a hidden .lightbox to the body */
63+ addLightbox ( ) : JQuery ;
64+ /**
65+ * Initializes draggable popups
66+ * @deprecated
67+ */
68+ bindMovablePopups ( ) : void ;
6269 /** Hides any visible toasts from the page */
6370 hideToasts ( ) : void ;
6471 /**
@@ -71,11 +78,36 @@ declare global {
7178 * @param url The URL
7279 */
7380 parseUrl ( url : string ) : HTMLAnchorElement ;
81+ /**
82+ * Displays a banner message.
83+ * @param message a string or HTML string
84+ * @param type banner type
85+ */
86+ showBannerMessage (
87+ message : string ,
88+ type : "error" | "info" | "success" | "warning"
89+ ) : JQuery ;
7490 /**
7591 * Shows a Stacks confirmation modal
7692 * @param modalOptions The modal options
7793 */
7894 showConfirmModal ( modalOptions : ModalType ) : Promise < boolean > ;
95+ /**
96+ * Displays a success message.
97+ */
98+ showErrorMessage (
99+ $elem : JQuery ,
100+ message : string ,
101+ options : object
102+ ) : JQuery ;
103+ /**
104+ * Displays a success message.
105+ */
106+ showInfoMessage (
107+ $elem : JQuery ,
108+ message : string ,
109+ options : object
110+ ) : JQuery ;
79111 /**
80112 * Shows a modal that already exists in the DOM
81113 * @param elementOrSelector The modal's HTML element or its selector
@@ -84,6 +116,14 @@ declare global {
84116 elementOrSelector : string | JQuery | Element | null ,
85117 displayOptions ?: Partial < ShowModalOptions >
86118 ) : void ;
119+ /**
120+ * Displays a success message.
121+ */
122+ showSuccessMessage (
123+ $elem : JQuery ,
124+ message : string ,
125+ options : object
126+ ) : JQuery ;
87127 /**
88128 * Shows a Stacks toast
89129 * @param messageHtml The message's HTML content
0 commit comments