@sikka/hawa 0.26.25 → 0.26.27
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/dist/{chunk-USD2NXD3.mjs → chunk-JNUGOUYJ.mjs} +6 -1
- package/dist/elements/index.js +6 -1
- package/dist/elements/index.mjs +1 -1
- package/dist/hooks/index.js +6 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.js +6 -1
- package/dist/index.mjs +6 -1
- package/dist/toaster/index.js +6 -1
- package/dist/toaster/index.mjs +6 -1
- package/package.json +1 -1
@@ -24,6 +24,7 @@ var addToRemoveQueue = (toastId) => {
|
|
24
24
|
var reducer = (state, action) => {
|
25
25
|
switch (action.type) {
|
26
26
|
case "ADD_TOAST":
|
27
|
+
console.log("adding toast case");
|
27
28
|
return {
|
28
29
|
...state,
|
29
30
|
toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT)
|
@@ -64,8 +65,10 @@ var reducer = (state, action) => {
|
|
64
65
|
var listeners = [];
|
65
66
|
var memoryState = { toasts: [] };
|
66
67
|
function dispatch(action) {
|
68
|
+
console.log("dispatching toast");
|
67
69
|
memoryState = reducer(memoryState, action);
|
68
70
|
listeners.forEach((listener) => {
|
71
|
+
console.log("mapping through listerners in dispathc");
|
69
72
|
listener(memoryState);
|
70
73
|
});
|
71
74
|
}
|
@@ -99,10 +102,12 @@ function useToast() {
|
|
99
102
|
React.useEffect(() => {
|
100
103
|
console.log("useToast triggered in useEffect");
|
101
104
|
console.log("toast state", state);
|
102
|
-
console.log("listerners", listeners);
|
105
|
+
console.log("listerners BEFORE", listeners);
|
106
|
+
console.log("TOAST: setState is ", setState);
|
103
107
|
listeners.push(setState);
|
104
108
|
return () => {
|
105
109
|
const index = listeners.indexOf(setState);
|
110
|
+
console.log("listerners AFTER", listeners);
|
106
111
|
if (index > -1) {
|
107
112
|
listeners.splice(index, 1);
|
108
113
|
}
|
package/dist/elements/index.js
CHANGED
@@ -7389,6 +7389,7 @@ var addToRemoveQueue = (toastId) => {
|
|
7389
7389
|
var reducer = (state, action) => {
|
7390
7390
|
switch (action.type) {
|
7391
7391
|
case "ADD_TOAST":
|
7392
|
+
console.log("adding toast case");
|
7392
7393
|
return {
|
7393
7394
|
...state,
|
7394
7395
|
toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT)
|
@@ -7429,8 +7430,10 @@ var reducer = (state, action) => {
|
|
7429
7430
|
var listeners = [];
|
7430
7431
|
var memoryState = { toasts: [] };
|
7431
7432
|
function dispatch(action) {
|
7433
|
+
console.log("dispatching toast");
|
7432
7434
|
memoryState = reducer(memoryState, action);
|
7433
7435
|
listeners.forEach((listener) => {
|
7436
|
+
console.log("mapping through listerners in dispathc");
|
7434
7437
|
listener(memoryState);
|
7435
7438
|
});
|
7436
7439
|
}
|
@@ -7464,10 +7467,12 @@ function useToast() {
|
|
7464
7467
|
React58.useEffect(() => {
|
7465
7468
|
console.log("useToast triggered in useEffect");
|
7466
7469
|
console.log("toast state", state);
|
7467
|
-
console.log("listerners", listeners);
|
7470
|
+
console.log("listerners BEFORE", listeners);
|
7471
|
+
console.log("TOAST: setState is ", setState);
|
7468
7472
|
listeners.push(setState);
|
7469
7473
|
return () => {
|
7470
7474
|
const index = listeners.indexOf(setState);
|
7475
|
+
console.log("listerners AFTER", listeners);
|
7471
7476
|
if (index > -1) {
|
7472
7477
|
listeners.splice(index, 1);
|
7473
7478
|
}
|
package/dist/elements/index.mjs
CHANGED
package/dist/hooks/index.js
CHANGED
@@ -81,6 +81,7 @@ var addToRemoveQueue = (toastId) => {
|
|
81
81
|
var reducer = (state, action) => {
|
82
82
|
switch (action.type) {
|
83
83
|
case "ADD_TOAST":
|
84
|
+
console.log("adding toast case");
|
84
85
|
return {
|
85
86
|
...state,
|
86
87
|
toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT)
|
@@ -121,8 +122,10 @@ var reducer = (state, action) => {
|
|
121
122
|
var listeners = [];
|
122
123
|
var memoryState = { toasts: [] };
|
123
124
|
function dispatch(action) {
|
125
|
+
console.log("dispatching toast");
|
124
126
|
memoryState = reducer(memoryState, action);
|
125
127
|
listeners.forEach((listener) => {
|
128
|
+
console.log("mapping through listerners in dispathc");
|
126
129
|
listener(memoryState);
|
127
130
|
});
|
128
131
|
}
|
@@ -156,10 +159,12 @@ function useToast() {
|
|
156
159
|
React3.useEffect(() => {
|
157
160
|
console.log("useToast triggered in useEffect");
|
158
161
|
console.log("toast state", state);
|
159
|
-
console.log("listerners", listeners);
|
162
|
+
console.log("listerners BEFORE", listeners);
|
163
|
+
console.log("TOAST: setState is ", setState);
|
160
164
|
listeners.push(setState);
|
161
165
|
return () => {
|
162
166
|
const index = listeners.indexOf(setState);
|
167
|
+
console.log("listerners AFTER", listeners);
|
163
168
|
if (index > -1) {
|
164
169
|
listeners.splice(index, 1);
|
165
170
|
}
|
package/dist/hooks/index.mjs
CHANGED
package/dist/index.js
CHANGED
@@ -7545,6 +7545,7 @@ var addToRemoveQueue = (toastId) => {
|
|
7545
7545
|
var reducer = (state, action) => {
|
7546
7546
|
switch (action.type) {
|
7547
7547
|
case "ADD_TOAST":
|
7548
|
+
console.log("adding toast case");
|
7548
7549
|
return {
|
7549
7550
|
...state,
|
7550
7551
|
toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT)
|
@@ -7585,8 +7586,10 @@ var reducer = (state, action) => {
|
|
7585
7586
|
var listeners = [];
|
7586
7587
|
var memoryState = { toasts: [] };
|
7587
7588
|
function dispatch(action) {
|
7589
|
+
console.log("dispatching toast");
|
7588
7590
|
memoryState = reducer(memoryState, action);
|
7589
7591
|
listeners.forEach((listener) => {
|
7592
|
+
console.log("mapping through listerners in dispathc");
|
7590
7593
|
listener(memoryState);
|
7591
7594
|
});
|
7592
7595
|
}
|
@@ -7620,10 +7623,12 @@ function useToast() {
|
|
7620
7623
|
React58.useEffect(() => {
|
7621
7624
|
console.log("useToast triggered in useEffect");
|
7622
7625
|
console.log("toast state", state);
|
7623
|
-
console.log("listerners", listeners);
|
7626
|
+
console.log("listerners BEFORE", listeners);
|
7627
|
+
console.log("TOAST: setState is ", setState);
|
7624
7628
|
listeners.push(setState);
|
7625
7629
|
return () => {
|
7626
7630
|
const index = listeners.indexOf(setState);
|
7631
|
+
console.log("listerners AFTER", listeners);
|
7627
7632
|
if (index > -1) {
|
7628
7633
|
listeners.splice(index, 1);
|
7629
7634
|
}
|
package/dist/index.mjs
CHANGED
@@ -7331,6 +7331,7 @@ var addToRemoveQueue = (toastId) => {
|
|
7331
7331
|
var reducer = (state, action) => {
|
7332
7332
|
switch (action.type) {
|
7333
7333
|
case "ADD_TOAST":
|
7334
|
+
console.log("adding toast case");
|
7334
7335
|
return {
|
7335
7336
|
...state,
|
7336
7337
|
toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT)
|
@@ -7371,8 +7372,10 @@ var reducer = (state, action) => {
|
|
7371
7372
|
var listeners = [];
|
7372
7373
|
var memoryState = { toasts: [] };
|
7373
7374
|
function dispatch(action) {
|
7375
|
+
console.log("dispatching toast");
|
7374
7376
|
memoryState = reducer(memoryState, action);
|
7375
7377
|
listeners.forEach((listener) => {
|
7378
|
+
console.log("mapping through listerners in dispathc");
|
7376
7379
|
listener(memoryState);
|
7377
7380
|
});
|
7378
7381
|
}
|
@@ -7406,10 +7409,12 @@ function useToast() {
|
|
7406
7409
|
React58.useEffect(() => {
|
7407
7410
|
console.log("useToast triggered in useEffect");
|
7408
7411
|
console.log("toast state", state);
|
7409
|
-
console.log("listerners", listeners);
|
7412
|
+
console.log("listerners BEFORE", listeners);
|
7413
|
+
console.log("TOAST: setState is ", setState);
|
7410
7414
|
listeners.push(setState);
|
7411
7415
|
return () => {
|
7412
7416
|
const index = listeners.indexOf(setState);
|
7417
|
+
console.log("listerners AFTER", listeners);
|
7413
7418
|
if (index > -1) {
|
7414
7419
|
listeners.splice(index, 1);
|
7415
7420
|
}
|
package/dist/toaster/index.js
CHANGED
@@ -63,6 +63,7 @@ var addToRemoveQueue = (toastId) => {
|
|
63
63
|
var reducer = (state, action) => {
|
64
64
|
switch (action.type) {
|
65
65
|
case "ADD_TOAST":
|
66
|
+
console.log("adding toast case");
|
66
67
|
return {
|
67
68
|
...state,
|
68
69
|
toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT)
|
@@ -103,8 +104,10 @@ var reducer = (state, action) => {
|
|
103
104
|
var listeners = [];
|
104
105
|
var memoryState = { toasts: [] };
|
105
106
|
function dispatch(action) {
|
107
|
+
console.log("dispatching toast");
|
106
108
|
memoryState = reducer(memoryState, action);
|
107
109
|
listeners.forEach((listener) => {
|
110
|
+
console.log("mapping through listerners in dispathc");
|
108
111
|
listener(memoryState);
|
109
112
|
});
|
110
113
|
}
|
@@ -138,10 +141,12 @@ function useToast() {
|
|
138
141
|
React.useEffect(() => {
|
139
142
|
console.log("useToast triggered in useEffect");
|
140
143
|
console.log("toast state", state);
|
141
|
-
console.log("listerners", listeners);
|
144
|
+
console.log("listerners BEFORE", listeners);
|
145
|
+
console.log("TOAST: setState is ", setState);
|
142
146
|
listeners.push(setState);
|
143
147
|
return () => {
|
144
148
|
const index = listeners.indexOf(setState);
|
149
|
+
console.log("listerners AFTER", listeners);
|
145
150
|
if (index > -1) {
|
146
151
|
listeners.splice(index, 1);
|
147
152
|
}
|
package/dist/toaster/index.mjs
CHANGED
@@ -39,6 +39,7 @@ var addToRemoveQueue = (toastId) => {
|
|
39
39
|
var reducer = (state, action) => {
|
40
40
|
switch (action.type) {
|
41
41
|
case "ADD_TOAST":
|
42
|
+
console.log("adding toast case");
|
42
43
|
return {
|
43
44
|
...state,
|
44
45
|
toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT)
|
@@ -79,8 +80,10 @@ var reducer = (state, action) => {
|
|
79
80
|
var listeners = [];
|
80
81
|
var memoryState = { toasts: [] };
|
81
82
|
function dispatch(action) {
|
83
|
+
console.log("dispatching toast");
|
82
84
|
memoryState = reducer(memoryState, action);
|
83
85
|
listeners.forEach((listener) => {
|
86
|
+
console.log("mapping through listerners in dispathc");
|
84
87
|
listener(memoryState);
|
85
88
|
});
|
86
89
|
}
|
@@ -114,10 +117,12 @@ function useToast() {
|
|
114
117
|
React.useEffect(() => {
|
115
118
|
console.log("useToast triggered in useEffect");
|
116
119
|
console.log("toast state", state);
|
117
|
-
console.log("listerners", listeners);
|
120
|
+
console.log("listerners BEFORE", listeners);
|
121
|
+
console.log("TOAST: setState is ", setState);
|
118
122
|
listeners.push(setState);
|
119
123
|
return () => {
|
120
124
|
const index = listeners.indexOf(setState);
|
125
|
+
console.log("listerners AFTER", listeners);
|
121
126
|
if (index > -1) {
|
122
127
|
listeners.splice(index, 1);
|
123
128
|
}
|