|
1 |
| -import warning from 'tiny-warning'; |
2 |
| - |
3 |
| -export { default as MagicBellProvider } from './components/MagicBellProvider'; |
4 |
| -export { default as RealtimeListener } from './components/RealtimeListener'; |
5 |
| -export { default as WebPushNotificationsSubscriber } from './components/WebPushNotificationsSubscriber'; |
6 |
| -export { default as useBell } from './hooks/useBell'; |
7 |
| -export { default as useMagicBellEvent } from './hooks/useMagicBellEvent'; |
8 |
| -export { default as useNotification } from './hooks/useNotification'; |
9 |
| -export { default as useNotificationFactory } from './hooks/useNotificationFactory'; |
10 |
| -export { default as useNotifications } from './hooks/useNotifications'; |
11 |
| -export { default as useNotificationUnmount } from './hooks/useNotificationUnmount'; |
12 |
| -export { deleteAPI, fetchAPI, postAPI, putAPI } from './lib/ajax'; |
13 |
| -export { secondsToDate, toDate, toUnix } from './lib/date'; |
14 |
| -export { eventAggregator, pushEventAggregator } from './lib/realtime'; |
15 |
| -export { default as clientSettings } from './stores/clientSettings'; |
16 |
| -export { default as useConfig } from './stores/config'; |
17 |
| -export { default as useNotificationPreferences } from './stores/notification_preferences'; |
18 |
| -export { useNotificationStoresCollection } from './stores/notifications'; |
19 |
| -export { default as buildStore } from './stores/notifications/helpers/buildStore'; |
20 |
| -export * from './types'; |
21 |
| -export { type INotification as Notification } from './types'; |
22 |
| - |
23 |
| -if (__DEV__) { |
24 |
| - // eslint-disable-next-line @typescript-eslint/no-empty-function |
25 |
| - const testFunc = function testFn() {}; |
26 |
| - |
27 |
| - warning( |
28 |
| - (testFunc.name || testFunc.toString()).indexOf('testFn') !== -1, |
29 |
| - "It looks like you're using a minified copy of the development build " + |
30 |
| - `of ${__PACKAGE_NAME__}. When deploying your app to production, make sure to use ` + |
31 |
| - 'the production build which is faster and does not print development warnings.', |
32 |
| - ); |
33 |
| -} |
| 1 | +export { default as MagicBellProvider } from './components/MagicBellProvider/index.js'; |
| 2 | +export { default as RealtimeListener } from './components/RealtimeListener.js'; |
| 3 | +export { default as WebPushNotificationsSubscriber } from './components/WebPushNotificationsSubscriber/index.js'; |
| 4 | +export { default as useBell } from './hooks/useBell.js'; |
| 5 | +export { default as useMagicBellEvent } from './hooks/useMagicBellEvent.js'; |
| 6 | +export { default as useNotification } from './hooks/useNotification.js'; |
| 7 | +export { default as useNotificationFactory } from './hooks/useNotificationFactory.js'; |
| 8 | +export { default as useNotifications } from './hooks/useNotifications.js'; |
| 9 | +export { default as useNotificationUnmount } from './hooks/useNotificationUnmount.js'; |
| 10 | +export { deleteAPI, fetchAPI, postAPI, putAPI } from './lib/ajax.js'; |
| 11 | +export { secondsToDate, toDate, toUnix } from './lib/date.js'; |
| 12 | +export { eventAggregator, pushEventAggregator } from './lib/realtime.js'; |
| 13 | +export { default as clientSettings } from './stores/clientSettings.js'; |
| 14 | +export { default as useConfig } from './stores/config/index.js'; |
| 15 | +export { default as useNotificationPreferences } from './stores/notification_preferences/index.js'; |
| 16 | +export { default as buildStore } from './stores/notifications/helpers/buildStore.js'; |
| 17 | +export { useNotificationStoresCollection } from './stores/notifications/index.js'; |
| 18 | +export * from './types/index.js'; |
| 19 | +export { type INotification as Notification } from './types/index.js'; |
0 commit comments