datastake-daf 0.6.519 → 0.6.520
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/components/index.js
CHANGED
|
@@ -53995,10 +53995,19 @@ const FormsProvider = ({
|
|
|
53995
53995
|
}));
|
|
53996
53996
|
}, []);
|
|
53997
53997
|
const changeNotificationState = React.useCallback(params => {
|
|
53998
|
+
console.log("changeNotificationState called");
|
|
53999
|
+
console.log({
|
|
54000
|
+
params
|
|
54001
|
+
});
|
|
53998
54002
|
if (isOpen) {
|
|
54003
|
+
console.log("isOpen is true, returning");
|
|
53999
54004
|
return;
|
|
54000
54005
|
}
|
|
54006
|
+
console.log({
|
|
54007
|
+
notificationMode
|
|
54008
|
+
});
|
|
54001
54009
|
if (notificationMode === NOTIFICATION_MODE.PROJECT_SOURCES) {
|
|
54010
|
+
console.log("notificationMode is PROJECT_SOURCES, opening modal");
|
|
54002
54011
|
setIsOpen(true);
|
|
54003
54012
|
antd.Modal.confirm({
|
|
54004
54013
|
title: t('You have unsaved changes'),
|
|
@@ -54017,8 +54026,10 @@ const FormsProvider = ({
|
|
|
54017
54026
|
}
|
|
54018
54027
|
});
|
|
54019
54028
|
} else if (typeof params?.onYes === 'function') {
|
|
54029
|
+
console.log("onYes is a function, calling it");
|
|
54020
54030
|
params.onYes();
|
|
54021
54031
|
}
|
|
54032
|
+
console.log("changeNotificationState ended");
|
|
54022
54033
|
}, [onNoNotification, notificationMode, isOpen, t]);
|
|
54023
54034
|
const addCheck = React.useCallback((callback = () => {}) => {
|
|
54024
54035
|
setNotificationMode(NOTIFICATION_MODE.PROJECT_SOURCES);
|
package/dist/context/index.js
CHANGED
|
@@ -134,10 +134,19 @@ const FormsProvider = ({
|
|
|
134
134
|
}));
|
|
135
135
|
}, []);
|
|
136
136
|
const changeNotificationState = React.useCallback(params => {
|
|
137
|
+
console.log("changeNotificationState called");
|
|
138
|
+
console.log({
|
|
139
|
+
params
|
|
140
|
+
});
|
|
137
141
|
if (isOpen) {
|
|
142
|
+
console.log("isOpen is true, returning");
|
|
138
143
|
return;
|
|
139
144
|
}
|
|
145
|
+
console.log({
|
|
146
|
+
notificationMode
|
|
147
|
+
});
|
|
140
148
|
if (notificationMode === NOTIFICATION_MODE.PROJECT_SOURCES) {
|
|
149
|
+
console.log("notificationMode is PROJECT_SOURCES, opening modal");
|
|
141
150
|
setIsOpen(true);
|
|
142
151
|
antd.Modal.confirm({
|
|
143
152
|
title: t('You have unsaved changes'),
|
|
@@ -156,8 +165,10 @@ const FormsProvider = ({
|
|
|
156
165
|
}
|
|
157
166
|
});
|
|
158
167
|
} else if (typeof params?.onYes === 'function') {
|
|
168
|
+
console.log("onYes is a function, calling it");
|
|
159
169
|
params.onYes();
|
|
160
170
|
}
|
|
171
|
+
console.log("changeNotificationState ended");
|
|
161
172
|
}, [onNoNotification, notificationMode, isOpen, t]);
|
|
162
173
|
const addCheck = React.useCallback((callback = () => {}) => {
|
|
163
174
|
setNotificationMode(NOTIFICATION_MODE.PROJECT_SOURCES);
|
package/dist/layouts/index.js
CHANGED
|
@@ -5241,21 +5241,9 @@ const Sidenav = ({
|
|
|
5241
5241
|
const checkOnClick = ({
|
|
5242
5242
|
event
|
|
5243
5243
|
}) => {
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
console.log("typeof changeNotificationState:", typeof changeNotificationState);
|
|
5248
|
-
if (changeNotificationState && typeof changeNotificationState === 'function') {
|
|
5249
|
-
console.log("Calling changeNotificationState...");
|
|
5250
|
-
changeNotificationState({
|
|
5251
|
-
onYes: event
|
|
5252
|
-
});
|
|
5253
|
-
} else {
|
|
5254
|
-
console.log("changeNotificationState is not a function, executing event directly");
|
|
5255
|
-
if (typeof event === 'function') {
|
|
5256
|
-
event();
|
|
5257
|
-
}
|
|
5258
|
-
}
|
|
5244
|
+
changeNotificationState({
|
|
5245
|
+
onYes: event
|
|
5246
|
+
});
|
|
5259
5247
|
};
|
|
5260
5248
|
const {
|
|
5261
5249
|
hoverContent,
|
package/package.json
CHANGED
|
@@ -40,11 +40,15 @@ export const FormsProvider = ({ children, t = (s) => s }) => {
|
|
|
40
40
|
}, []);
|
|
41
41
|
|
|
42
42
|
const changeNotificationState = useCallback((params) => {
|
|
43
|
+
console.log("changeNotificationState called");
|
|
44
|
+
console.log({params})
|
|
43
45
|
if (isOpen) {
|
|
46
|
+
console.log("isOpen is true, returning");
|
|
44
47
|
return;
|
|
45
48
|
}
|
|
46
|
-
|
|
49
|
+
console.log({notificationMode})
|
|
47
50
|
if (notificationMode === NOTIFICATION_MODE.PROJECT_SOURCES) {
|
|
51
|
+
console.log("notificationMode is PROJECT_SOURCES, opening modal");
|
|
48
52
|
setIsOpen(true);
|
|
49
53
|
Modal.confirm({
|
|
50
54
|
title: t('You have unsaved changes'),
|
|
@@ -63,8 +67,10 @@ export const FormsProvider = ({ children, t = (s) => s }) => {
|
|
|
63
67
|
},
|
|
64
68
|
})
|
|
65
69
|
} else if (typeof params?.onYes === 'function') {
|
|
70
|
+
console.log("onYes is a function, calling it");
|
|
66
71
|
params.onYes()
|
|
67
72
|
}
|
|
73
|
+
console.log("changeNotificationState ended");
|
|
68
74
|
}, [onNoNotification, notificationMode, isOpen, t]);
|
|
69
75
|
|
|
70
76
|
const addCheck = useCallback((callback = () => { }) => {
|
|
@@ -163,20 +163,7 @@ const Sidenav = ({
|
|
|
163
163
|
};
|
|
164
164
|
|
|
165
165
|
const checkOnClick = ({ event }) => {
|
|
166
|
-
|
|
167
|
-
console.log("event:", event);
|
|
168
|
-
console.log("changeNotificationState:", changeNotificationState);
|
|
169
|
-
console.log("typeof changeNotificationState:", typeof changeNotificationState);
|
|
170
|
-
|
|
171
|
-
if (changeNotificationState && typeof changeNotificationState === 'function') {
|
|
172
|
-
console.log("Calling changeNotificationState...");
|
|
173
|
-
changeNotificationState({ onYes: event });
|
|
174
|
-
} else {
|
|
175
|
-
console.log("changeNotificationState is not a function, executing event directly");
|
|
176
|
-
if (typeof event === 'function') {
|
|
177
|
-
event();
|
|
178
|
-
}
|
|
179
|
-
}
|
|
166
|
+
changeNotificationState({ onYes: event });
|
|
180
167
|
}
|
|
181
168
|
|
|
182
169
|
const { hoverContent, hoverContentSecond } = useMenu({
|