@vicaniddouglas/js_aide 1.10.0 → 1.11.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.
- package/declarations.d.ts +37 -1
- package/dist/js_aide.cjs.js +5 -5
- package/dist/js_aide.cjs.js.map +3 -3
- package/dist/js_aide.esm.js +3 -3
- package/dist/js_aide.min.js +5 -5
- package/dist/js_aide.min.js.map +3 -3
- package/package.json +1 -1
package/declarations.d.ts
CHANGED
|
@@ -337,7 +337,16 @@ declare module "@vicaniddouglas/js_aide" {
|
|
|
337
337
|
pending: number;
|
|
338
338
|
}
|
|
339
339
|
|
|
340
|
-
|
|
340
|
+
interface StandardizedResponse {
|
|
341
|
+
status: boolean;
|
|
342
|
+
log: string;
|
|
343
|
+
data: any;
|
|
344
|
+
httpCode: number;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
export const sendRequest: (
|
|
348
|
+
options?: RequestOptions,
|
|
349
|
+
) => Promise<StandardizedResponse>;
|
|
341
350
|
export const initRequestHandler: (options?: RequestHandlerConfig) => void;
|
|
342
351
|
export const interceptors: InterceptorMethods;
|
|
343
352
|
export const getQueueStatus: () => QueueStatus;
|
|
@@ -1222,6 +1231,33 @@ declare module "@vicaniddouglas/js_aide" {
|
|
|
1222
1231
|
sendIcon2(): string;
|
|
1223
1232
|
};
|
|
1224
1233
|
|
|
1234
|
+
// =========================================================
|
|
1235
|
+
// popup (from popup.js)
|
|
1236
|
+
// =========================================================
|
|
1237
|
+
interface PopupOptions {
|
|
1238
|
+
/** Time before auto-close (ms) */
|
|
1239
|
+
duration?: number;
|
|
1240
|
+
/** Stay on screen until manually closed */
|
|
1241
|
+
persistent?: boolean;
|
|
1242
|
+
/** Show close button and enable Esc/Backdrop clicks */
|
|
1243
|
+
closable?: boolean;
|
|
1244
|
+
/** Custom SVG string to override default icon */
|
|
1245
|
+
icon?: string;
|
|
1246
|
+
/** Custom CSS color for icon and background tint */
|
|
1247
|
+
color?: string;
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
export const popup: {
|
|
1251
|
+
/** Show a success modal (Green theme) */
|
|
1252
|
+
success(message: string, options?: PopupOptions): Promise<void>;
|
|
1253
|
+
/** Show an error modal (Red theme) */
|
|
1254
|
+
error(message: string, options?: PopupOptions): Promise<void>;
|
|
1255
|
+
/** Show an info modal (Blue theme) */
|
|
1256
|
+
info(message: string, options?: PopupOptions): Promise<void>;
|
|
1257
|
+
/** Programmatically close the current modal */
|
|
1258
|
+
close(): void;
|
|
1259
|
+
};
|
|
1260
|
+
|
|
1225
1261
|
//============================================================================
|
|
1226
1262
|
// app loader to render different views
|
|
1227
1263
|
//============================================================================
|