@sikka/hawa 0.26.25 → 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.
@@ -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
  }
@@ -100,6 +103,7 @@ function useToast() {
100
103
  console.log("useToast triggered in useEffect");
101
104
  console.log("toast state", state);
102
105
  console.log("listerners", listeners);
106
+ console.log("TOAST: setState is ", setState);
103
107
  listeners.push(setState);
104
108
  return () => {
105
109
  const index = listeners.indexOf(setState);
@@ -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
  }
@@ -7465,6 +7468,7 @@ function useToast() {
7465
7468
  console.log("useToast triggered in useEffect");
7466
7469
  console.log("toast state", state);
7467
7470
  console.log("listerners", listeners);
7471
+ console.log("TOAST: setState is ", setState);
7468
7472
  listeners.push(setState);
7469
7473
  return () => {
7470
7474
  const index = listeners.indexOf(setState);
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  useClipboard,
3
3
  useToast
4
- } from "../chunk-USD2NXD3.mjs";
4
+ } from "../chunk-KCE3K4QX.mjs";
5
5
  import {
6
6
  Alert,
7
7
  CheckMark,
@@ -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
  }
@@ -157,6 +160,7 @@ function useToast() {
157
160
  console.log("useToast triggered in useEffect");
158
161
  console.log("toast state", state);
159
162
  console.log("listerners", listeners);
163
+ console.log("TOAST: setState is ", setState);
160
164
  listeners.push(setState);
161
165
  return () => {
162
166
  const index = listeners.indexOf(setState);
@@ -6,7 +6,7 @@ import {
6
6
  toast,
7
7
  useClipboard,
8
8
  useToast
9
- } from "../chunk-USD2NXD3.mjs";
9
+ } from "../chunk-KCE3K4QX.mjs";
10
10
  import "../chunk-ZFXKCRJC.mjs";
11
11
 
12
12
  // hooks/useIsomorphicEffect.ts
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
  }
@@ -7621,6 +7624,7 @@ function useToast() {
7621
7624
  console.log("useToast triggered in useEffect");
7622
7625
  console.log("toast state", state);
7623
7626
  console.log("listerners", listeners);
7627
+ console.log("TOAST: setState is ", setState);
7624
7628
  listeners.push(setState);
7625
7629
  return () => {
7626
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
  }
@@ -7407,6 +7410,7 @@ function useToast() {
7407
7410
  console.log("useToast triggered in useEffect");
7408
7411
  console.log("toast state", state);
7409
7412
  console.log("listerners", listeners);
7413
+ console.log("TOAST: setState is ", setState);
7410
7414
  listeners.push(setState);
7411
7415
  return () => {
7412
7416
  const index = listeners.indexOf(setState);
@@ -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
  }
@@ -139,6 +142,7 @@ function useToast() {
139
142
  console.log("useToast triggered in useEffect");
140
143
  console.log("toast state", state);
141
144
  console.log("listerners", listeners);
145
+ console.log("TOAST: setState is ", setState);
142
146
  listeners.push(setState);
143
147
  return () => {
144
148
  const index = listeners.indexOf(setState);
@@ -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
  }
@@ -115,6 +118,7 @@ function useToast() {
115
118
  console.log("useToast triggered in useEffect");
116
119
  console.log("toast state", state);
117
120
  console.log("listerners", listeners);
121
+ console.log("TOAST: setState is ", setState);
118
122
  listeners.push(setState);
119
123
  return () => {
120
124
  const index = listeners.indexOf(setState);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.26.25",
3
+ "version": "0.26.26",
4
4
  "description": "Modern UI Kit made with Tailwind",
5
5
  "author": {
6
6
  "name": "Sikka Software",