flicker-alerts 1.0.40 → 1.0.42

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 +4 -3
  2. package/index.js +2 -2
  3. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -16,10 +16,11 @@ declare module 'flicker-alerts' {
16
16
  timer?: number;
17
17
  }
18
18
 
19
- const FlickerAlerts: {
19
+ export const FlickerAlerts: {
20
20
  showAlert(options: AlertOptions): void;
21
- showModal(options: ModalOptions): void;
22
21
  };
23
22
 
24
- export default FlickerAlerts;
23
+ export const FlickerModals: {
24
+ showModal(options: ModalOptions): void;
25
+ };
25
26
  }
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
 
3
3
 
4
- const FlickerAlerts = {
4
+ export const FlickerAlerts = {
5
5
  showAlert: function ({ type, title, message, timer = 3000, position = 'top-right' }) {
6
6
  if (typeof window !== 'undefined' && typeof document !== 'undefined') {
7
7
  let container = document.getElementById('alerts-container');
@@ -101,7 +101,7 @@ if (typeof document !== 'undefined') {
101
101
 
102
102
 
103
103
 
104
- const FlickerModals = {
104
+ export const FlickerModals= {
105
105
  showModal: function ({ type, title, message, onConfirm, onCancel }) {
106
106
  if (typeof window !== 'undefined' && typeof document !== 'undefined') {
107
107
  let container = document.getElementById('modals-container');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flicker-alerts",
3
- "version": "1.0.40",
3
+ "version": "1.0.42",
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.40"
19
+ "flicker-alerts": "^1.0.42"
20
20
  }
21
21
  }