flicker-alerts 1.0.47 → 1.0.48

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 +7 -7
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -17,12 +17,12 @@ declare module 'flicker-alerts' {
17
17
  onCancel?: () => void; // Função executada no botão de cancelamento
18
18
  }
19
19
 
20
- // Exportação do objeto com os métodos
21
- export const FlickerAlerts: {
22
- showAlert(options: AlertOptions): void;
23
- };
20
+ // Classe principal para a biblioteca FlickerAlerts
21
+ export default class FlickerAlerts {
22
+ // Método estático para mostrar um alerta
23
+ static showAlert(options: AlertOptions): void;
24
24
 
25
- export const FlickerModals: {
26
- showModal(options: ModalOptions): void;
27
- };
25
+ // Método estático para mostrar um modal
26
+ static showModal(options: ModalOptions): void;
27
+ }
28
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flicker-alerts",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
4
4
  "description": "Biblioteca para alertas animados",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -16,6 +16,6 @@
16
16
  "author": "https://www.linkedin.com/in/bruno-carneiro-9a51aa190/",
17
17
  "license": "MIT",
18
18
  "dependencies": {
19
- "flicker-alerts": "^1.0.47"
19
+ "flicker-alerts": "^1.0.48"
20
20
  }
21
21
  }