flicker-alerts 1.0.12 → 1.0.13

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 (2) hide show
  1. package/index.d.ts +13 -10
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,12 +1,15 @@
1
1
  declare module 'flicker-alerts' {
2
- interface AlertOptions {
3
- type: 'success' | 'info' | 'warning' | 'danger';
4
- title: string;
5
- message: string;
6
- duration?: number; // Duração do alerta (opcional)
7
- }
8
-
9
- export default class FlickerAlerts {
10
- static showAlert(options: AlertOptions): void;
11
- }
2
+ // Interface de opções de alerta, incluindo a propriedade 'position'
3
+ interface AlertOptions {
4
+ type: 'success' | 'info' | 'warning' | 'danger';
5
+ title: string;
6
+ message: string;
7
+ duration?: number; // Duração do alerta (opcional)
8
+ position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'center'; // Nova propriedade 'position'
9
+ }
10
+
11
+ export default class FlickerAlerts {
12
+ // Método para exibir o alerta, agora aceitando 'position' como parte das opções
13
+ static showAlert(options: AlertOptions): void;
14
+ }
12
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flicker-alerts",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Biblioteca para alertas animados",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",