flicker-alerts 1.0.47 → 1.0.49

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 (3) hide show
  1. package/index.d.ts +7 -7
  2. package/index.js +1 -5
  3. 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/index.js CHANGED
@@ -1,6 +1,3 @@
1
-
2
-
3
-
4
1
  const FlickerAlerts = {
5
2
  showAlert: function ({ type, title, message, timer = 3000, position = 'top-right' }) {
6
3
  if (typeof window !== 'undefined' && typeof document !== 'undefined') {
@@ -98,7 +95,7 @@ if (typeof document !== 'undefined') {
98
95
  }
99
96
 
100
97
  // Exportação
101
-
98
+ export default FlickerAlerts;
102
99
 
103
100
 
104
101
  const FlickerModals = {
@@ -231,4 +228,3 @@ if (typeof document !== 'undefined') {
231
228
  }
232
229
 
233
230
 
234
- export default FlickerAlerts;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flicker-alerts",
3
- "version": "1.0.47",
3
+ "version": "1.0.49",
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.49"
20
20
  }
21
21
  }