@sikka/hawa 0.26.24 → 0.26.26
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-3GBITBPL.mjs → chunk-KCE3K4QX.mjs} +7 -0
- package/dist/elements/index.js +7 -0
- package/dist/elements/index.mjs +1 -1
- package/dist/hooks/index.js +7 -0
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.js +7 -0
- package/dist/index.mjs +7 -0
- package/dist/toaster/index.js +7 -0
- package/dist/toaster/index.mjs +7 -0
- 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
|
}
|
@@ -97,6 +100,10 @@ function toast({ ...props }) {
|
|
97
100
|
function useToast() {
|
98
101
|
const [state, setState] = React.useState(memoryState);
|
99
102
|
React.useEffect(() => {
|
103
|
+
console.log("useToast triggered in useEffect");
|
104
|
+
console.log("toast state", state);
|
105
|
+
console.log("listerners", listeners);
|
106
|
+
console.log("TOAST: setState is ", setState);
|
100
107
|
listeners.push(setState);
|
101
108
|
return () => {
|
102
109
|
const index = listeners.indexOf(setState);
|
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
|
}
|
@@ -7462,6 +7465,10 @@ function toast({ ...props }) {
|
|
7462
7465
|
function useToast() {
|
7463
7466
|
const [state, setState] = React58.useState(memoryState);
|
7464
7467
|
React58.useEffect(() => {
|
7468
|
+
console.log("useToast triggered in useEffect");
|
7469
|
+
console.log("toast state", state);
|
7470
|
+
console.log("listerners", listeners);
|
7471
|
+
console.log("TOAST: setState is ", setState);
|
7465
7472
|
listeners.push(setState);
|
7466
7473
|
return () => {
|
7467
7474
|
const index = listeners.indexOf(setState);
|
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
|
}
|
@@ -154,6 +157,10 @@ function toast({ ...props }) {
|
|
154
157
|
function useToast() {
|
155
158
|
const [state, setState] = React3.useState(memoryState);
|
156
159
|
React3.useEffect(() => {
|
160
|
+
console.log("useToast triggered in useEffect");
|
161
|
+
console.log("toast state", state);
|
162
|
+
console.log("listerners", listeners);
|
163
|
+
console.log("TOAST: setState is ", setState);
|
157
164
|
listeners.push(setState);
|
158
165
|
return () => {
|
159
166
|
const index = listeners.indexOf(setState);
|
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
|
}
|
@@ -7618,6 +7621,10 @@ function toast({ ...props }) {
|
|
7618
7621
|
function useToast() {
|
7619
7622
|
const [state, setState] = React58.useState(memoryState);
|
7620
7623
|
React58.useEffect(() => {
|
7624
|
+
console.log("useToast triggered in useEffect");
|
7625
|
+
console.log("toast state", state);
|
7626
|
+
console.log("listerners", listeners);
|
7627
|
+
console.log("TOAST: setState is ", setState);
|
7621
7628
|
listeners.push(setState);
|
7622
7629
|
return () => {
|
7623
7630
|
const index = listeners.indexOf(setState);
|
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
|
}
|
@@ -7404,6 +7407,10 @@ function toast({ ...props }) {
|
|
7404
7407
|
function useToast() {
|
7405
7408
|
const [state, setState] = React58.useState(memoryState);
|
7406
7409
|
React58.useEffect(() => {
|
7410
|
+
console.log("useToast triggered in useEffect");
|
7411
|
+
console.log("toast state", state);
|
7412
|
+
console.log("listerners", listeners);
|
7413
|
+
console.log("TOAST: setState is ", setState);
|
7407
7414
|
listeners.push(setState);
|
7408
7415
|
return () => {
|
7409
7416
|
const index = listeners.indexOf(setState);
|
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
|
}
|
@@ -136,6 +139,10 @@ function toast({ ...props }) {
|
|
136
139
|
function useToast() {
|
137
140
|
const [state, setState] = React.useState(memoryState);
|
138
141
|
React.useEffect(() => {
|
142
|
+
console.log("useToast triggered in useEffect");
|
143
|
+
console.log("toast state", state);
|
144
|
+
console.log("listerners", listeners);
|
145
|
+
console.log("TOAST: setState is ", setState);
|
139
146
|
listeners.push(setState);
|
140
147
|
return () => {
|
141
148
|
const index = listeners.indexOf(setState);
|
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
|
}
|
@@ -112,6 +115,10 @@ function toast({ ...props }) {
|
|
112
115
|
function useToast() {
|
113
116
|
const [state, setState] = React.useState(memoryState);
|
114
117
|
React.useEffect(() => {
|
118
|
+
console.log("useToast triggered in useEffect");
|
119
|
+
console.log("toast state", state);
|
120
|
+
console.log("listerners", listeners);
|
121
|
+
console.log("TOAST: setState is ", setState);
|
115
122
|
listeners.push(setState);
|
116
123
|
return () => {
|
117
124
|
const index = listeners.indexOf(setState);
|