flicker-alerts 1.0.51 → 1.0.53
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/index.d.ts +7 -5
- package/index.js +1 -1
- package/package.json +3 -3
package/index.d.ts
CHANGED
@@ -10,19 +10,21 @@ declare module 'flicker-alerts' {
|
|
10
10
|
|
11
11
|
// Definição das opções para os modais
|
12
12
|
interface ModalOptions {
|
13
|
-
type: 'warning' | '
|
13
|
+
type: 'warning' | 'delete'// Tipos de modais disponíveis
|
14
14
|
title: string;
|
15
15
|
message: string;
|
16
16
|
onConfirm?: () => void; // Função executada no botão de confirmação
|
17
17
|
onCancel?: () => void; // Função executada no botão de cancelamento
|
18
18
|
}
|
19
19
|
|
20
|
-
//
|
20
|
+
// Definição da classe para os alertas
|
21
21
|
export default class FlickerAlerts {
|
22
22
|
// Método estático para mostrar um alerta
|
23
23
|
static showAlert(options: AlertOptions): void;
|
24
|
-
|
25
|
-
// Método estático para mostrar um modal
|
26
|
-
static showModal(options: ModalOptions): void;
|
27
24
|
}
|
25
|
+
|
26
|
+
// Definição da classe para os modais
|
27
|
+
export const FlickerModals: {
|
28
|
+
showModal(options: ModalOptions): void;
|
29
|
+
};
|
28
30
|
}
|
package/index.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "flicker-alerts",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.53",
|
4
4
|
"description": "Biblioteca para alertas animados",
|
5
5
|
"main": "index.js",
|
6
6
|
"types": "index.d.ts",
|
@@ -13,9 +13,9 @@
|
|
13
13
|
"javascript",
|
14
14
|
"notificações"
|
15
15
|
],
|
16
|
-
"author": "https://www.linkedin.com/in/bruno-carneiro-
|
16
|
+
"author": "https://www.linkedin.com/in/bruno-carneiro-9a53aa190/",
|
17
17
|
"license": "MIT",
|
18
18
|
"dependencies": {
|
19
|
-
"flicker-alerts": "^1.0.
|
19
|
+
"flicker-alerts": "^1.0.53"
|
20
20
|
}
|
21
21
|
}
|