datastake-daf 0.6.507 → 0.6.508

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.
@@ -31,28 +31,6 @@ const useResizeContext = () => {
31
31
  return values;
32
32
  };
33
33
 
34
- /* eslint-disable react/prop-types */
35
- const NOTIFICATION_MODE = {
36
- EMPTY: 'EMPTY',
37
- PROJECT_SOURCES: 'PROJECT_SOURCES'
38
- };
39
- const FormsContext = /*#__PURE__*/o.createContext({
40
- onYesNotification: () => {},
41
- onNoNotification: () => {},
42
- notificationMode: NOTIFICATION_MODE.EMPTY,
43
- notificationState: {},
44
- setNotificationMode: () => {},
45
- changeNotificationState: () => {},
46
- authenticationLinks: [],
47
- setAuthenticationLinks: () => {},
48
- addCheck: () => {},
49
- removeCheck: () => {}
50
- });
51
- const useForms = () => {
52
- const value = o.useContext(FormsContext);
53
- return value;
54
- };
55
-
56
34
  /************* ✨ Codeium Command ⭐ *************/
57
35
  /**
58
36
  * Given an array of classnames (some of which may be empty), joins them all
@@ -7011,6 +6989,8 @@ function AppLayout({
7011
6989
  // Notifications (injected from app)
7012
6990
  notificationHandlers = {},
7013
6991
  NotificationsHistoryProvider,
6992
+ changeNotificationState,
6993
+ notificationMode,
7014
6994
  // Config
7015
6995
  sidenavConfig = {},
7016
6996
  appName = 'app',
@@ -7038,10 +7018,6 @@ function AppLayout({
7038
7018
  // Children
7039
7019
  children
7040
7020
  }) {
7041
- const {
7042
- notificationMode,
7043
- changeNotificationState
7044
- } = useForms();
7045
7021
  const [userPreferences, setUserPreferences] = o.useState(null);
7046
7022
  const isAppNavigation = module === 'app';
7047
7023
  const [drawerOpened, setDrawerOpened] = o.useState(false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.507",
3
+ "version": "0.6.508",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -92,6 +92,8 @@ function AppLayout({
92
92
  // Notifications (injected from app)
93
93
  notificationHandlers = {},
94
94
  NotificationsHistoryProvider,
95
+ changeNotificationState,
96
+ notificationMode,
95
97
 
96
98
  // Config
97
99
  sidenavConfig = {},
@@ -115,7 +117,6 @@ function AppLayout({
115
117
  // Children
116
118
  children,
117
119
  }) {
118
- const { notificationMode, changeNotificationState } = useForms();
119
120
  const [userPreferences, setUserPreferences] = useState(null);
120
121
  const isAppNavigation = module === 'app';
121
122
  const [drawerOpened, setDrawerOpened] = useState(false);