@selfcommunity/react-core 0.1.7 → 0.1.8-alpha.2
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/lib/{types → cjs}/components/provider/SCAlertMessagesProvider/index.d.ts +0 -0
- package/lib/{types → cjs}/components/provider/SCAlertMessagesProvider/index.d.ts.map +0 -0
- package/lib/cjs/components/provider/SCAlertMessagesProvider/index.js +37 -35
- package/lib/cjs/components/provider/SCAlertMessagesProvider/index.js.map +1 -0
- package/lib/{types → cjs}/components/provider/SCContextProvider/index.d.ts +0 -0
- package/lib/{types → cjs}/components/provider/SCContextProvider/index.d.ts.map +0 -0
- package/lib/cjs/components/provider/SCContextProvider/index.js +74 -81
- package/lib/cjs/components/provider/SCContextProvider/index.js.map +1 -0
- package/lib/{types → cjs}/components/provider/SCLocaleProvider/index.d.ts +0 -0
- package/lib/{types → cjs}/components/provider/SCLocaleProvider/index.d.ts.map +0 -0
- package/lib/cjs/components/provider/SCLocaleProvider/index.js +86 -121
- package/lib/cjs/components/provider/SCLocaleProvider/index.js.map +1 -0
- package/lib/{types → cjs}/components/provider/SCNotificationProvider/index.d.ts +0 -0
- package/lib/{types → cjs}/components/provider/SCNotificationProvider/index.d.ts.map +0 -0
- package/lib/cjs/components/provider/SCNotificationProvider/index.js +41 -41
- package/lib/cjs/components/provider/SCNotificationProvider/index.js.map +1 -0
- package/lib/{types → cjs}/components/provider/SCPreferencesProvider/index.d.ts +0 -0
- package/lib/{types → cjs}/components/provider/SCPreferencesProvider/index.d.ts.map +0 -0
- package/lib/cjs/components/provider/SCPreferencesProvider/index.js +61 -62
- package/lib/cjs/components/provider/SCPreferencesProvider/index.js.map +1 -0
- package/lib/{types → cjs}/components/provider/SCRoutingProvider/index.d.ts +0 -0
- package/lib/{types → cjs}/components/provider/SCRoutingProvider/index.d.ts.map +1 -1
- package/lib/cjs/components/provider/SCRoutingProvider/index.js +104 -111
- package/lib/cjs/components/provider/SCRoutingProvider/index.js.map +1 -0
- package/lib/{types → cjs}/components/provider/SCThemeProvider/index.d.ts +0 -0
- package/lib/{types → cjs}/components/provider/SCThemeProvider/index.d.ts.map +0 -0
- package/lib/cjs/components/provider/SCThemeProvider/index.js +66 -79
- package/lib/cjs/components/provider/SCThemeProvider/index.js.map +1 -0
- package/lib/{types → cjs}/components/provider/SCUserProvider/index.d.ts +0 -0
- package/lib/{types → cjs}/components/provider/SCUserProvider/index.d.ts.map +0 -0
- package/lib/cjs/components/provider/SCUserProvider/index.js +215 -270
- package/lib/cjs/components/provider/SCUserProvider/index.js.map +1 -0
- package/lib/{types → cjs}/components/router/index.d.ts +0 -0
- package/lib/{types → cjs}/components/router/index.d.ts.map +0 -0
- package/lib/cjs/components/router/index.js +48 -49
- package/lib/cjs/components/router/index.js.map +1 -0
- package/lib/{types → cjs}/constants/Actions.d.ts +0 -0
- package/lib/{types → cjs}/constants/Actions.d.ts.map +0 -0
- package/lib/cjs/constants/Actions.js +3 -4
- package/lib/cjs/constants/Actions.js.map +1 -0
- package/lib/{types → cjs}/constants/ContextProviders.d.ts +0 -0
- package/lib/{types → cjs}/constants/ContextProviders.d.ts.map +0 -0
- package/lib/cjs/constants/ContextProviders.js +22 -24
- package/lib/cjs/constants/ContextProviders.js.map +1 -0
- package/lib/{types → cjs}/constants/Device.d.ts +0 -0
- package/lib/{types → cjs}/constants/Device.d.ts.map +0 -0
- package/lib/cjs/constants/Device.js +3 -5
- package/lib/cjs/constants/Device.js.map +1 -0
- package/lib/{types → cjs}/constants/Errors.d.ts +0 -0
- package/lib/{types → cjs}/constants/Errors.d.ts.map +0 -0
- package/lib/cjs/constants/Errors.js +3 -5
- package/lib/cjs/constants/Errors.js.map +1 -0
- package/lib/{types → cjs}/constants/Features.d.ts +0 -0
- package/lib/{types → cjs}/constants/Features.d.ts.map +0 -0
- package/lib/cjs/constants/Features.js +43 -83
- package/lib/cjs/constants/Features.js.map +1 -0
- package/lib/{types → cjs}/constants/Locale.d.ts +0 -0
- package/lib/{types → cjs}/constants/Locale.d.ts.map +0 -0
- package/lib/cjs/constants/Locale.js +10 -17
- package/lib/cjs/constants/Locale.js.map +1 -0
- package/lib/{types → cjs}/constants/Notification.d.ts +0 -0
- package/lib/{types → cjs}/constants/Notification.d.ts.map +0 -0
- package/lib/cjs/constants/Notification.js +44 -53
- package/lib/cjs/constants/Notification.js.map +1 -0
- package/lib/{types → cjs}/constants/Notifications.d.ts +0 -0
- package/lib/{types → cjs}/constants/Notifications.d.ts.map +0 -0
- package/lib/cjs/constants/Notifications.js +11 -25
- package/lib/cjs/constants/Notifications.js.map +1 -0
- package/lib/cjs/constants/Preferences.d.ts +201 -0
- package/lib/cjs/constants/Preferences.d.ts.map +1 -0
- package/lib/cjs/constants/Preferences.js +184 -292
- package/lib/cjs/constants/Preferences.js.map +1 -0
- package/lib/{types → cjs}/constants/Routes.d.ts +0 -0
- package/lib/{types → cjs}/constants/Routes.d.ts.map +0 -0
- package/lib/cjs/constants/Routes.js +38 -59
- package/lib/cjs/constants/Routes.js.map +1 -0
- package/lib/{types → cjs}/constants/Session.d.ts +0 -0
- package/lib/{types → cjs}/constants/Session.d.ts.map +0 -0
- package/lib/cjs/constants/Session.js +12 -21
- package/lib/cjs/constants/Session.js.map +1 -0
- package/lib/{types → cjs}/constants/Theme.d.ts +0 -0
- package/lib/{types → cjs}/constants/Theme.d.ts.map +0 -0
- package/lib/cjs/constants/Theme.js +3 -4
- package/lib/cjs/constants/Theme.js.map +1 -0
- package/lib/cjs/constants/WebSocket.d.ts +4 -0
- package/lib/cjs/constants/WebSocket.d.ts.map +1 -0
- package/lib/cjs/constants/WebSocket.js +6 -9
- package/lib/cjs/constants/WebSocket.js.map +1 -0
- package/lib/{types → cjs}/hooks/useSCAuth.d.ts +0 -0
- package/lib/{types → cjs}/hooks/useSCAuth.d.ts.map +0 -0
- package/lib/cjs/hooks/useSCAuth.js +212 -282
- package/lib/cjs/hooks/useSCAuth.js.map +1 -0
- package/lib/{types → cjs}/hooks/useSCCachingManager.d.ts +0 -0
- package/lib/{types → cjs}/hooks/useSCCachingManager.d.ts.map +0 -0
- package/lib/cjs/hooks/useSCCachingManager.js +37 -51
- package/lib/cjs/hooks/useSCCachingManager.js.map +1 -0
- package/lib/{types → cjs}/hooks/useSCConnectionsManager.d.ts +0 -0
- package/lib/{types → cjs}/hooks/useSCConnectionsManager.d.ts.map +0 -0
- package/lib/cjs/hooks/useSCConnectionsManager.js +190 -254
- package/lib/cjs/hooks/useSCConnectionsManager.js.map +1 -0
- package/lib/{types → cjs}/hooks/useSCFetchAddressingTagList.d.ts +0 -0
- package/lib/{types → cjs}/hooks/useSCFetchAddressingTagList.d.ts.map +0 -0
- package/lib/cjs/hooks/useSCFetchAddressingTagList.js +64 -55
- package/lib/cjs/hooks/useSCFetchAddressingTagList.js.map +1 -0
- package/lib/{types → cjs}/hooks/useSCFetchCategories.d.ts +0 -0
- package/lib/{types → cjs}/hooks/useSCFetchCategories.d.ts.map +0 -0
- package/lib/cjs/hooks/useSCFetchCategories.js +46 -56
- package/lib/cjs/hooks/useSCFetchCategories.js.map +1 -0
- package/lib/{types → cjs}/hooks/useSCFetchCategory.d.ts +0 -0
- package/lib/{types → cjs}/hooks/useSCFetchCategory.d.ts.map +0 -0
- package/lib/cjs/hooks/useSCFetchCategory.js +44 -59
- package/lib/cjs/hooks/useSCFetchCategory.js.map +1 -0
- package/lib/{types → cjs}/hooks/useSCFetchCommentObject.d.ts +0 -0
- package/lib/{types → cjs}/hooks/useSCFetchCommentObject.d.ts.map +0 -0
- package/lib/cjs/hooks/useSCFetchCommentObject.js +44 -59
- package/lib/cjs/hooks/useSCFetchCommentObject.js.map +1 -0
- package/lib/{types → cjs}/hooks/useSCFetchCommentObjects.d.ts +0 -0
- package/lib/{types → cjs}/hooks/useSCFetchCommentObjects.d.ts.map +0 -0
- package/lib/cjs/hooks/useSCFetchCommentObjects.js +157 -254
- package/lib/cjs/hooks/useSCFetchCommentObjects.js.map +1 -0
- package/lib/{types → cjs}/hooks/useSCFetchCustomAdv.d.ts +0 -0
- package/lib/{types → cjs}/hooks/useSCFetchCustomAdv.d.ts.map +0 -0
- package/lib/cjs/hooks/useSCFetchCustomAdv.js +57 -75
- package/lib/cjs/hooks/useSCFetchCustomAdv.js.map +1 -0
- package/lib/{types → cjs}/hooks/useSCFetchFeedObject.d.ts +0 -0
- package/lib/{types → cjs}/hooks/useSCFetchFeedObject.d.ts.map +0 -0
- package/lib/cjs/hooks/useSCFetchFeedObject.js +49 -69
- package/lib/cjs/hooks/useSCFetchFeedObject.js.map +1 -0
- package/lib/{types → cjs}/hooks/useSCFetchIncubator.d.ts +0 -0
- package/lib/{types → cjs}/hooks/useSCFetchIncubator.d.ts.map +0 -0
- package/lib/cjs/hooks/useSCFetchIncubator.js +44 -59
- package/lib/cjs/hooks/useSCFetchIncubator.js.map +1 -0
- package/lib/{types → cjs}/hooks/useSCFetchTag.d.ts +0 -0
- package/lib/{types → cjs}/hooks/useSCFetchTag.d.ts.map +0 -0
- package/lib/cjs/hooks/useSCFetchTag.js +44 -59
- package/lib/cjs/hooks/useSCFetchTag.js.map +1 -0
- package/lib/{types → cjs}/hooks/useSCFetchUser.d.ts +0 -0
- package/lib/{types → cjs}/hooks/useSCFetchUser.d.ts.map +1 -1
- package/lib/cjs/hooks/useSCFetchUser.js +47 -59
- package/lib/cjs/hooks/useSCFetchUser.js.map +1 -0
- package/lib/{types → cjs}/hooks/useSCFollowedCategoriesManager.d.ts +0 -0
- package/lib/{types → cjs}/hooks/useSCFollowedCategoriesManager.d.ts.map +0 -0
- package/lib/cjs/hooks/useSCFollowedCategoriesManager.js +105 -147
- package/lib/cjs/hooks/useSCFollowedCategoriesManager.js.map +1 -0
- package/lib/{types → cjs}/hooks/useSCFollowersManager.d.ts +0 -0
- package/lib/{types → cjs}/hooks/useSCFollowersManager.d.ts.map +0 -0
- package/lib/cjs/hooks/useSCFollowersManager.js +154 -204
- package/lib/cjs/hooks/useSCFollowersManager.js.map +1 -0
- package/lib/{types → cjs}/hooks/useSCMediaClick.d.ts +0 -0
- package/lib/{types → cjs}/hooks/useSCMediaClick.d.ts.map +0 -0
- package/lib/cjs/hooks/useSCMediaClick.js +18 -25
- package/lib/cjs/hooks/useSCMediaClick.js.map +1 -0
- package/lib/{types → cjs}/hooks/useSCSubscribedIncubatorsManager.d.ts +0 -0
- package/lib/{types → cjs}/hooks/useSCSubscribedIncubatorsManager.d.ts.map +0 -0
- package/lib/cjs/hooks/useSCSubscribedIncubatorsManager.js +118 -148
- package/lib/cjs/hooks/useSCSubscribedIncubatorsManager.js.map +1 -0
- package/lib/{types → cjs}/hooks/useSCWebPushMessaging.d.ts +0 -0
- package/lib/{types → cjs}/hooks/useSCWebPushMessaging.d.ts.map +0 -0
- package/lib/cjs/hooks/useSCWebPushMessaging.js +268 -268
- package/lib/cjs/hooks/useSCWebPushMessaging.js.map +1 -0
- package/lib/{types → cjs}/hooks/useSCWebSocket.d.ts +0 -0
- package/lib/{types → cjs}/hooks/useSCWebSocket.d.ts.map +0 -0
- package/lib/cjs/hooks/useSCWebSocket.js +103 -125
- package/lib/cjs/hooks/useSCWebSocket.js.map +1 -0
- package/lib/{types → cjs}/index.d.ts +0 -0
- package/lib/{types → cjs}/index.d.ts.map +0 -0
- package/lib/cjs/index.js +131 -144
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/themes/theme.d.ts +9 -0
- package/lib/cjs/themes/theme.d.ts.map +1 -0
- package/lib/cjs/themes/theme.js +132 -143
- package/lib/cjs/themes/theme.js.map +1 -0
- package/lib/{types → cjs}/types/context.d.ts +0 -0
- package/lib/{types → cjs}/types/context.d.ts.map +0 -0
- package/lib/cjs/types/context.js +2 -2
- package/lib/cjs/types/context.js.map +1 -0
- package/lib/{types → cjs}/types/index.d.ts +0 -0
- package/lib/{types → cjs}/types/index.d.ts.map +0 -0
- package/lib/cjs/types/index.js +2 -21
- package/lib/cjs/types/index.js.map +1 -0
- package/lib/{types → cjs}/utils/errors.d.ts +0 -0
- package/lib/{types → cjs}/utils/errors.d.ts.map +0 -0
- package/lib/cjs/utils/errors.js +138 -149
- package/lib/cjs/utils/errors.js.map +1 -0
- package/lib/{types → cjs}/utils/locale.d.ts +0 -0
- package/lib/{types → cjs}/utils/locale.d.ts.map +0 -0
- package/lib/cjs/utils/locale.js +32 -48
- package/lib/cjs/utils/locale.js.map +1 -0
- package/lib/{types → cjs}/utils/user.d.ts +0 -0
- package/lib/{types → cjs}/utils/user.d.ts.map +0 -0
- package/lib/cjs/utils/user.js +25 -40
- package/lib/cjs/utils/user.js.map +1 -0
- package/lib/{types → cjs}/utils/validator.d.ts +0 -0
- package/lib/{types → cjs}/utils/validator.d.ts.map +0 -0
- package/lib/cjs/utils/validator.js +386 -576
- package/lib/cjs/utils/validator.js.map +1 -0
- package/lib/esm/components/provider/SCAlertMessagesProvider/index.d.ts +37 -0
- package/lib/esm/components/provider/SCAlertMessagesProvider/index.d.ts.map +1 -0
- package/lib/esm/components/provider/SCAlertMessagesProvider/index.js +11 -37
- package/lib/esm/components/provider/SCAlertMessagesProvider/index.js.map +1 -0
- package/lib/esm/components/provider/SCContextProvider/index.d.ts +35 -0
- package/lib/esm/components/provider/SCContextProvider/index.d.ts.map +1 -0
- package/lib/esm/components/provider/SCContextProvider/index.js +48 -83
- package/lib/esm/components/provider/SCContextProvider/index.js.map +1 -0
- package/lib/esm/components/provider/SCLocaleProvider/index.d.ts +42 -0
- package/lib/esm/components/provider/SCLocaleProvider/index.d.ts.map +1 -0
- package/lib/esm/components/provider/SCLocaleProvider/index.js +59 -123
- package/lib/esm/components/provider/SCLocaleProvider/index.js.map +1 -0
- package/lib/esm/components/provider/SCNotificationProvider/index.d.ts +37 -0
- package/lib/esm/components/provider/SCNotificationProvider/index.d.ts.map +1 -0
- package/lib/esm/components/provider/SCNotificationProvider/index.js +12 -43
- package/lib/esm/components/provider/SCNotificationProvider/index.js.map +1 -0
- package/lib/esm/components/provider/SCPreferencesProvider/index.d.ts +38 -0
- package/lib/esm/components/provider/SCPreferencesProvider/index.d.ts.map +1 -0
- package/lib/esm/components/provider/SCPreferencesProvider/index.js +35 -64
- package/lib/esm/components/provider/SCPreferencesProvider/index.js.map +1 -0
- package/lib/esm/components/provider/SCRoutingProvider/index.d.ts +39 -0
- package/lib/esm/components/provider/SCRoutingProvider/index.d.ts.map +1 -0
- package/lib/esm/components/provider/SCRoutingProvider/index.js +78 -113
- package/lib/esm/components/provider/SCRoutingProvider/index.js.map +1 -0
- package/lib/esm/components/provider/SCThemeProvider/index.d.ts +49 -0
- package/lib/esm/components/provider/SCThemeProvider/index.d.ts.map +1 -0
- package/lib/esm/components/provider/SCThemeProvider/index.js +36 -81
- package/lib/esm/components/provider/SCThemeProvider/index.js.map +1 -0
- package/lib/esm/components/provider/SCUserProvider/index.d.ts +38 -0
- package/lib/esm/components/provider/SCUserProvider/index.d.ts.map +1 -0
- package/lib/esm/components/provider/SCUserProvider/index.js +186 -272
- package/lib/esm/components/provider/SCUserProvider/index.js.map +1 -0
- package/lib/esm/components/router/index.d.ts +34 -0
- package/lib/esm/components/router/index.d.ts.map +1 -0
- package/lib/esm/components/router/index.js +24 -50
- package/lib/esm/components/router/index.js.map +1 -0
- package/lib/esm/constants/Actions.d.ts +2 -0
- package/lib/esm/constants/Actions.d.ts.map +1 -0
- package/lib/esm/constants/Actions.js +2 -6
- package/lib/esm/constants/Actions.js.map +1 -0
- package/lib/esm/constants/ContextProviders.d.ts +6 -0
- package/lib/esm/constants/ContextProviders.d.ts.map +1 -0
- package/lib/esm/constants/ContextProviders.js +18 -26
- package/lib/esm/constants/ContextProviders.js.map +1 -0
- package/lib/esm/constants/Device.d.ts +6 -0
- package/lib/esm/constants/Device.d.ts.map +1 -0
- package/lib/esm/constants/Device.js +2 -7
- package/lib/esm/constants/Device.js.map +1 -0
- package/lib/esm/constants/Errors.d.ts +5 -0
- package/lib/esm/constants/Errors.d.ts.map +1 -0
- package/lib/esm/constants/Errors.js +2 -7
- package/lib/esm/constants/Errors.js.map +1 -0
- package/lib/esm/constants/Features.d.ts +41 -0
- package/lib/esm/constants/Features.d.ts.map +1 -0
- package/lib/esm/constants/Features.js +41 -84
- package/lib/esm/constants/Features.js.map +1 -0
- package/lib/esm/constants/Locale.d.ts +8 -0
- package/lib/esm/constants/Locale.d.ts.map +1 -0
- package/lib/esm/constants/Locale.js +8 -18
- package/lib/esm/constants/Locale.js.map +1 -0
- package/lib/esm/constants/Notification.d.ts +55 -0
- package/lib/esm/constants/Notification.d.ts.map +1 -0
- package/lib/esm/constants/Notification.js +42 -54
- package/lib/esm/constants/Notification.js.map +1 -0
- package/lib/esm/constants/Notifications.d.ts +11 -0
- package/lib/esm/constants/Notifications.d.ts.map +1 -0
- package/lib/esm/constants/Notifications.js +9 -26
- package/lib/esm/constants/Notifications.js.map +1 -0
- package/lib/esm/constants/Preferences.d.ts +201 -0
- package/lib/esm/constants/Preferences.d.ts.map +1 -0
- package/lib/esm/constants/Preferences.js +181 -296
- package/lib/esm/constants/Preferences.js.map +1 -0
- package/lib/esm/constants/Routes.d.ts +29 -0
- package/lib/esm/constants/Routes.d.ts.map +1 -0
- package/lib/esm/constants/Routes.js +36 -60
- package/lib/esm/constants/Routes.js.map +1 -0
- package/lib/esm/constants/Session.d.ts +10 -0
- package/lib/esm/constants/Session.d.ts.map +1 -0
- package/lib/esm/constants/Session.js +10 -22
- package/lib/esm/constants/Session.js.map +1 -0
- package/lib/esm/constants/Theme.d.ts +2 -0
- package/lib/esm/constants/Theme.d.ts.map +1 -0
- package/lib/esm/constants/Theme.js +2 -6
- package/lib/esm/constants/Theme.js.map +1 -0
- package/lib/esm/constants/WebSocket.d.ts +4 -0
- package/lib/esm/constants/WebSocket.d.ts.map +1 -0
- package/lib/esm/constants/WebSocket.js +4 -10
- package/lib/esm/constants/WebSocket.js.map +1 -0
- package/lib/esm/hooks/useSCAuth.d.ts +56 -0
- package/lib/esm/hooks/useSCAuth.d.ts.map +1 -0
- package/lib/esm/hooks/useSCAuth.js +185 -285
- package/lib/esm/hooks/useSCAuth.js.map +1 -0
- package/lib/esm/hooks/useSCCachingManager.d.ts +19 -0
- package/lib/esm/hooks/useSCCachingManager.d.ts.map +1 -0
- package/lib/esm/hooks/useSCCachingManager.js +36 -53
- package/lib/esm/hooks/useSCCachingManager.js.map +1 -0
- package/lib/esm/hooks/useSCConnectionsManager.d.ts +40 -0
- package/lib/esm/hooks/useSCConnectionsManager.d.ts.map +1 -0
- package/lib/esm/hooks/useSCConnectionsManager.js +186 -256
- package/lib/esm/hooks/useSCConnectionsManager.js.map +1 -0
- package/lib/esm/hooks/useSCFetchAddressingTagList.d.ts +14 -0
- package/lib/esm/hooks/useSCFetchAddressingTagList.d.ts.map +1 -0
- package/lib/esm/hooks/useSCFetchAddressingTagList.js +39 -56
- package/lib/esm/hooks/useSCFetchAddressingTagList.js.map +1 -0
- package/lib/esm/hooks/useSCFetchCategories.d.ts +17 -0
- package/lib/esm/hooks/useSCFetchCategories.d.ts.map +1 -0
- package/lib/esm/hooks/useSCFetchCategories.js +45 -57
- package/lib/esm/hooks/useSCFetchCategories.js.map +1 -0
- package/lib/esm/hooks/useSCFetchCategory.d.ts +19 -0
- package/lib/esm/hooks/useSCFetchCategory.d.ts.map +1 -0
- package/lib/esm/hooks/useSCFetchCategory.js +42 -60
- package/lib/esm/hooks/useSCFetchCategory.js.map +1 -0
- package/lib/esm/hooks/useSCFetchCommentObject.d.ts +19 -0
- package/lib/esm/hooks/useSCFetchCommentObject.d.ts.map +1 -0
- package/lib/esm/hooks/useSCFetchCommentObject.js +42 -60
- package/lib/esm/hooks/useSCFetchCommentObject.js.map +1 -0
- package/lib/esm/hooks/useSCFetchCommentObjects.d.ts +53 -0
- package/lib/esm/hooks/useSCFetchCommentObjects.d.ts.map +1 -0
- package/lib/esm/hooks/useSCFetchCommentObjects.js +153 -257
- package/lib/esm/hooks/useSCFetchCommentObjects.js.map +1 -0
- package/lib/esm/hooks/useSCFetchCustomAdv.d.ts +19 -0
- package/lib/esm/hooks/useSCFetchCustomAdv.d.ts.map +1 -0
- package/lib/esm/hooks/useSCFetchCustomAdv.js +55 -76
- package/lib/esm/hooks/useSCFetchCustomAdv.js.map +1 -0
- package/lib/esm/hooks/useSCFetchFeedObject.d.ts +21 -0
- package/lib/esm/hooks/useSCFetchFeedObject.d.ts.map +1 -0
- package/lib/esm/hooks/useSCFetchFeedObject.js +47 -70
- package/lib/esm/hooks/useSCFetchFeedObject.js.map +1 -0
- package/lib/esm/hooks/useSCFetchIncubator.d.ts +19 -0
- package/lib/esm/hooks/useSCFetchIncubator.d.ts.map +1 -0
- package/lib/esm/hooks/useSCFetchIncubator.js +42 -60
- package/lib/esm/hooks/useSCFetchIncubator.js.map +1 -0
- package/lib/esm/hooks/useSCFetchTag.d.ts +19 -0
- package/lib/esm/hooks/useSCFetchTag.d.ts.map +1 -0
- package/lib/esm/hooks/useSCFetchTag.js +42 -60
- package/lib/esm/hooks/useSCFetchTag.js.map +1 -0
- package/lib/esm/hooks/useSCFetchUser.d.ts +19 -0
- package/lib/esm/hooks/useSCFetchUser.d.ts.map +1 -0
- package/lib/esm/hooks/useSCFetchUser.js +45 -60
- package/lib/esm/hooks/useSCFetchUser.js.map +1 -0
- package/lib/esm/hooks/useSCFollowedCategoriesManager.d.ts +37 -0
- package/lib/esm/hooks/useSCFollowedCategoriesManager.d.ts.map +1 -0
- package/lib/esm/hooks/useSCFollowedCategoriesManager.js +101 -149
- package/lib/esm/hooks/useSCFollowedCategoriesManager.js.map +1 -0
- package/lib/esm/hooks/useSCFollowersManager.d.ts +37 -0
- package/lib/esm/hooks/useSCFollowersManager.d.ts.map +1 -0
- package/lib/esm/hooks/useSCFollowersManager.js +150 -206
- package/lib/esm/hooks/useSCFollowersManager.js.map +1 -0
- package/lib/esm/hooks/useSCMediaClick.d.ts +4 -0
- package/lib/esm/hooks/useSCMediaClick.d.ts.map +1 -0
- package/lib/esm/hooks/useSCMediaClick.js +17 -27
- package/lib/esm/hooks/useSCMediaClick.js.map +1 -0
- package/lib/esm/hooks/useSCSubscribedIncubatorsManager.d.ts +27 -0
- package/lib/esm/hooks/useSCSubscribedIncubatorsManager.d.ts.map +1 -0
- package/lib/esm/hooks/useSCSubscribedIncubatorsManager.js +114 -150
- package/lib/esm/hooks/useSCSubscribedIncubatorsManager.js.map +1 -0
- package/lib/esm/hooks/useSCWebPushMessaging.d.ts +9 -0
- package/lib/esm/hooks/useSCWebPushMessaging.d.ts.map +1 -0
- package/lib/esm/hooks/useSCWebPushMessaging.js +244 -270
- package/lib/esm/hooks/useSCWebPushMessaging.js.map +1 -0
- package/lib/esm/hooks/useSCWebSocket.d.ts +12 -0
- package/lib/esm/hooks/useSCWebSocket.d.ts.map +1 -0
- package/lib/esm/hooks/useSCWebSocket.js +99 -127
- package/lib/esm/hooks/useSCWebSocket.js.map +1 -0
- package/lib/esm/index.d.ts +73 -0
- package/lib/esm/index.d.ts.map +1 -0
- package/lib/esm/index.js +69 -151
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/themes/theme.d.ts +9 -0
- package/lib/esm/themes/theme.d.ts.map +1 -0
- package/lib/esm/themes/theme.js +128 -144
- package/lib/esm/themes/theme.js.map +1 -0
- package/lib/esm/types/context.d.ts +428 -0
- package/lib/esm/types/context.d.ts.map +1 -0
- package/lib/esm/types/context.js +2 -3
- package/lib/esm/types/context.js.map +1 -0
- package/lib/esm/types/index.d.ts +3 -0
- package/lib/esm/types/index.d.ts.map +1 -0
- package/lib/esm/types/index.js +2 -22
- package/lib/esm/types/index.js.map +1 -0
- package/lib/esm/utils/errors.d.ts +98 -0
- package/lib/esm/utils/errors.d.ts.map +1 -0
- package/lib/esm/utils/errors.js +114 -155
- package/lib/esm/utils/errors.js.map +1 -0
- package/lib/esm/utils/locale.d.ts +10 -0
- package/lib/esm/utils/locale.d.ts.map +1 -0
- package/lib/esm/utils/locale.js +27 -50
- package/lib/esm/utils/locale.js.map +1 -0
- package/lib/esm/utils/user.d.ts +41 -0
- package/lib/esm/utils/user.d.ts.map +1 -0
- package/lib/esm/utils/user.js +23 -46
- package/lib/esm/utils/user.js.map +1 -0
- package/lib/esm/utils/validator.d.ts +239 -0
- package/lib/esm/utils/validator.d.ts.map +1 -0
- package/lib/esm/utils/validator.js +352 -588
- package/lib/esm/utils/validator.js.map +1 -0
- package/lib/umd/react-core.js +1 -1
- package/package.json +9 -11
- package/lib/types/tsconfig.build.tsbuildinfo +0 -1
|
@@ -1,42 +1,45 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.useSCUser = exports.SCUserContext = void 0;
|
|
30
|
+
const react_1 = __importStar(require("react"));
|
|
31
|
+
const api_services_1 = require("@selfcommunity/api-services");
|
|
32
|
+
const SCContextProvider_1 = require("../SCContextProvider");
|
|
33
|
+
const useSCAuth_1 = __importStar(require("../../../hooks/useSCAuth"));
|
|
34
|
+
const utils_1 = require("@selfcommunity/utils");
|
|
35
|
+
const pubsub_js_1 = __importDefault(require("pubsub-js"));
|
|
36
|
+
const Errors_1 = require("../../../constants/Errors");
|
|
37
|
+
const use_deep_compare_effect_1 = require("use-deep-compare-effect");
|
|
38
|
+
const useSCFollowedCategoriesManager_1 = __importDefault(require("../../../hooks/useSCFollowedCategoriesManager"));
|
|
39
|
+
const useSCFollowersManager_1 = __importDefault(require("../../../hooks/useSCFollowersManager"));
|
|
40
|
+
const useSCConnectionsManager_1 = __importDefault(require("../../../hooks/useSCConnectionsManager"));
|
|
41
|
+
const types_1 = require("@selfcommunity/types");
|
|
42
|
+
const useSCSubscribedIncubatorsManager_1 = __importDefault(require("../../../hooks/useSCSubscribedIncubatorsManager"));
|
|
40
43
|
/**
|
|
41
44
|
* SCUserContext (Authentication Context)
|
|
42
45
|
*
|
|
@@ -54,7 +57,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
54
57
|
````
|
|
55
58
|
:::
|
|
56
59
|
*/
|
|
57
|
-
|
|
60
|
+
exports.SCUserContext = (0, react_1.createContext)({});
|
|
58
61
|
/**
|
|
59
62
|
* #### Description:
|
|
60
63
|
* This component keeps current user logged and session; it is exported as we need to wrap the entire app with it
|
|
@@ -64,247 +67,189 @@ const SCUserContext = /*#__PURE__*/(0, _react.createContext)({});
|
|
|
64
67
|
* <SCUserContext.Provider value={contextValue}>{!state.loading && children}</SCUserContext.Provider>
|
|
65
68
|
* ```
|
|
66
69
|
*/
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
const {
|
|
81
|
-
state,
|
|
82
|
-
dispatch,
|
|
83
|
-
helpers
|
|
84
|
-
} = (0, _useSCAuth.default)(initialSession);
|
|
85
|
-
/**
|
|
86
|
-
* Helper handle change user
|
|
87
|
-
*/
|
|
88
|
-
|
|
89
|
-
function updateUser(info) {
|
|
90
|
-
dispatch({
|
|
91
|
-
type: _useSCAuth.userActionTypes.UPDATE_USER,
|
|
92
|
-
payload: info
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Managers followed, categories
|
|
97
|
-
*/
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
const followedManager = (0, _useSCFollowersManager.default)(state.user);
|
|
101
|
-
const subscribedIncubatorsManager = (0, _useSCSubscribedIncubatorsManager.default)(state.user);
|
|
102
|
-
const connectionsManager = (0, _useSCConnectionsManager.default)(state.user);
|
|
103
|
-
const categoriesManager = (0, _useSCFollowedCategoriesManager.default)(state.user, updateUser);
|
|
104
|
-
/**
|
|
105
|
-
* Ref notifications subscribers: BLOCKED_USER, UNBLOCKED_USER
|
|
106
|
-
*/
|
|
107
|
-
|
|
108
|
-
const notificationUserBlockedSubscription = (0, _react.useRef)(null);
|
|
109
|
-
const notificationUserUnBlockedSubscription = (0, _react.useRef)(null);
|
|
110
|
-
/**
|
|
111
|
-
* Check if there is a currently active session
|
|
112
|
-
* when the provider is mounted for the first time.
|
|
113
|
-
* If there is an error, it means there is no session.
|
|
114
|
-
*/
|
|
115
|
-
|
|
116
|
-
(0, _useDeepCompareEffect.default)(() => {
|
|
117
|
-
if (state.session.authToken && state.session.authToken.accessToken) {
|
|
118
|
-
dispatch({
|
|
119
|
-
type: _useSCAuth.userActionTypes.LOGIN_LOADING
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
_apiServices.UserService.getCurrentUser().then(user => {
|
|
123
|
-
dispatch({
|
|
124
|
-
type: _useSCAuth.userActionTypes.LOGIN_SUCCESS,
|
|
125
|
-
payload: {
|
|
126
|
-
user
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
}).catch(error => {
|
|
130
|
-
_utils.Logger.error(_Errors.SCOPE_SC_CORE, 'Unable to retrieve the authenticated user.');
|
|
131
|
-
|
|
132
|
-
dispatch({
|
|
133
|
-
type: _useSCAuth.userActionTypes.LOGIN_FAILURE,
|
|
134
|
-
payload: {
|
|
135
|
-
error
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
});
|
|
70
|
+
function SCUserProvider({ children }) {
|
|
71
|
+
const scContext = (0, react_1.useContext)(SCContextProvider_1.SCContext);
|
|
72
|
+
/**
|
|
73
|
+
* Manage user session
|
|
74
|
+
* Refresh token if necessary
|
|
75
|
+
*/
|
|
76
|
+
const initialSession = scContext.settings.session;
|
|
77
|
+
const { state, dispatch, helpers } = (0, useSCAuth_1.default)(initialSession);
|
|
78
|
+
/**
|
|
79
|
+
* Helper handle change user
|
|
80
|
+
*/
|
|
81
|
+
function updateUser(info) {
|
|
82
|
+
dispatch({ type: useSCAuth_1.userActionTypes.UPDATE_USER, payload: info });
|
|
139
83
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
* When receive this type of notifications, the user.status must be update.
|
|
169
|
-
*/
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
(0, _react.useEffect)(() => {
|
|
173
|
-
notificationUserBlockedSubscription.current = _pubsubJs.default.subscribe(`${_types.SCNotificationTopicType.INTERACTION}.${_types.SCNotificationTypologyType.BLOCKED_USER}`, () => {
|
|
174
|
-
dispatch({
|
|
175
|
-
type: _useSCAuth.userActionTypes.UPDATE_USER,
|
|
176
|
-
payload: {
|
|
177
|
-
status: _types.SCUserStatus.BLOCKED
|
|
84
|
+
/**
|
|
85
|
+
* Managers followed, categories
|
|
86
|
+
*/
|
|
87
|
+
const followedManager = (0, useSCFollowersManager_1.default)(state.user);
|
|
88
|
+
const subscribedIncubatorsManager = (0, useSCSubscribedIncubatorsManager_1.default)(state.user);
|
|
89
|
+
const connectionsManager = (0, useSCConnectionsManager_1.default)(state.user);
|
|
90
|
+
const categoriesManager = (0, useSCFollowedCategoriesManager_1.default)(state.user, updateUser);
|
|
91
|
+
/**
|
|
92
|
+
* Ref notifications subscribers: BLOCKED_USER, UNBLOCKED_USER
|
|
93
|
+
*/
|
|
94
|
+
const notificationUserBlockedSubscription = (0, react_1.useRef)(null);
|
|
95
|
+
const notificationUserUnBlockedSubscription = (0, react_1.useRef)(null);
|
|
96
|
+
/**
|
|
97
|
+
* Check if there is a currently active session
|
|
98
|
+
* when the provider is mounted for the first time.
|
|
99
|
+
* If there is an error, it means there is no session.
|
|
100
|
+
*/
|
|
101
|
+
(0, use_deep_compare_effect_1.useDeepCompareEffectNoCheck)(() => {
|
|
102
|
+
if (state.session.authToken && state.session.authToken.accessToken) {
|
|
103
|
+
dispatch({ type: useSCAuth_1.userActionTypes.LOGIN_LOADING });
|
|
104
|
+
api_services_1.UserService.getCurrentUser()
|
|
105
|
+
.then((user) => {
|
|
106
|
+
dispatch({ type: useSCAuth_1.userActionTypes.LOGIN_SUCCESS, payload: { user } });
|
|
107
|
+
})
|
|
108
|
+
.catch((error) => {
|
|
109
|
+
utils_1.Logger.error(Errors_1.SCOPE_SC_CORE, 'Unable to retrieve the authenticated user.');
|
|
110
|
+
dispatch({ type: useSCAuth_1.userActionTypes.LOGIN_FAILURE, payload: { error } });
|
|
111
|
+
});
|
|
178
112
|
}
|
|
179
|
-
|
|
113
|
+
}, [state.session]);
|
|
114
|
+
/**
|
|
115
|
+
* Controls caching of follow categories, users, etc...
|
|
116
|
+
* To avoid multi-tab problems (only for client side), on visibility change
|
|
117
|
+
* and document is in foreground refresh the cache
|
|
118
|
+
*/
|
|
119
|
+
(0, react_1.useEffect)(() => {
|
|
120
|
+
typeof window !== 'undefined' && document.addEventListener('visibilitychange', handleVisibilityChange);
|
|
121
|
+
return () => {
|
|
122
|
+
typeof window !== 'undefined' && document.removeEventListener('visibilitychange', handleVisibilityChange);
|
|
123
|
+
};
|
|
180
124
|
});
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
125
|
+
/**
|
|
126
|
+
* handler handleVisibilityChange for this provider
|
|
127
|
+
* Refresh followed categories, users, etc..
|
|
128
|
+
*/
|
|
129
|
+
function handleVisibilityChange() {
|
|
130
|
+
if ((0, utils_1.isClientSideRendering)() && !window.document.hidden && state.user) {
|
|
131
|
+
categoriesManager.refresh && categoriesManager.refresh();
|
|
132
|
+
followedManager.refresh && followedManager.refresh();
|
|
133
|
+
connectionsManager.refresh && connectionsManager.refresh();
|
|
134
|
+
subscribedIncubatorsManager.refresh && subscribedIncubatorsManager.refresh();
|
|
186
135
|
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
function setUnseenInteractionsCounter(counter) {
|
|
200
|
-
dispatch({
|
|
201
|
-
type: _useSCAuth.userActionTypes.UPDATE_USER,
|
|
202
|
-
payload: {
|
|
203
|
-
unseen_interactions_counter: counter
|
|
204
|
-
}
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* Handle change unseen notification banners counter
|
|
209
|
-
*/
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
function setUnseenNotificationBannersCounter(counter) {
|
|
213
|
-
dispatch({
|
|
214
|
-
type: _useSCAuth.userActionTypes.UPDATE_USER,
|
|
215
|
-
payload: {
|
|
216
|
-
unseen_notification_banners_counter: counter
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
/**
|
|
221
|
-
* Helper to refresh the session
|
|
222
|
-
*/
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
function refreshSession() {
|
|
226
|
-
return helpers.refreshSession();
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Helper to refresh the notification counter
|
|
230
|
-
* Use getCurrentUser service since the notification counters
|
|
231
|
-
* have been inserted into the serialized user object
|
|
232
|
-
*/
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
const refreshNotificationCounters = (0, _react.useMemo)(() => () => {
|
|
236
|
-
if (state.user) {
|
|
237
|
-
return _apiServices.UserService.getCurrentUser().then(user => {
|
|
238
|
-
dispatch({
|
|
239
|
-
type: _useSCAuth.userActionTypes.UPDATE_USER,
|
|
240
|
-
payload: {
|
|
241
|
-
unseen_interactions_counter: user.unseen_interactions_counter,
|
|
242
|
-
unseen_notification_banners_counter: user.unseen_notification_banners_counter
|
|
243
|
-
}
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Subscribes to handle notifications of type BLOCKED_USER, UNBLOCKED_USER.
|
|
139
|
+
* When receive this type of notifications, the user.status must be update.
|
|
140
|
+
*/
|
|
141
|
+
(0, react_1.useEffect)(() => {
|
|
142
|
+
notificationUserBlockedSubscription.current = pubsub_js_1.default.subscribe(`${types_1.SCNotificationTopicType.INTERACTION}.${types_1.SCNotificationTypologyType.BLOCKED_USER}`, () => {
|
|
143
|
+
dispatch({ type: useSCAuth_1.userActionTypes.UPDATE_USER, payload: { status: types_1.SCUserStatus.BLOCKED } });
|
|
144
|
+
});
|
|
145
|
+
notificationUserUnBlockedSubscription.current = pubsub_js_1.default.subscribe(`${types_1.SCNotificationTopicType.INTERACTION}.${types_1.SCNotificationTypologyType.UNBLOCKED_USER}`, () => {
|
|
146
|
+
dispatch({ type: useSCAuth_1.userActionTypes.UPDATE_USER, payload: { status: types_1.SCUserStatus.APPROVED } });
|
|
244
147
|
});
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
148
|
+
return () => {
|
|
149
|
+
pubsub_js_1.default.unsubscribe(notificationUserBlockedSubscription.current);
|
|
150
|
+
pubsub_js_1.default.unsubscribe(notificationUserUnBlockedSubscription.current);
|
|
151
|
+
};
|
|
152
|
+
}, []);
|
|
153
|
+
/**
|
|
154
|
+
* Handle change unseen interactions counter
|
|
155
|
+
*/
|
|
156
|
+
function setUnseenInteractionsCounter(counter) {
|
|
157
|
+
dispatch({ type: useSCAuth_1.userActionTypes.UPDATE_USER, payload: { unseen_interactions_counter: counter } });
|
|
248
158
|
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
* from the state.
|
|
255
|
-
*/
|
|
256
|
-
|
|
257
|
-
function logout() {
|
|
258
|
-
dispatch({
|
|
259
|
-
type: _useSCAuth.userActionTypes.LOGOUT
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
/**
|
|
263
|
-
* Make the provider update only when it should.
|
|
264
|
-
* We only want to force re-renders if the user, session,
|
|
265
|
-
* loading or error states change.
|
|
266
|
-
*
|
|
267
|
-
* Whenever the `value` passed into a provider changes,
|
|
268
|
-
* the whole tree under the provider re-renders, and
|
|
269
|
-
* that can be very costly! Even in this case, where
|
|
270
|
-
* you only get re-renders when logging in and out
|
|
271
|
-
* we want to keep things very performant.
|
|
272
|
-
*/
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
const contextValue = (0, _react.useMemo)(() => ({
|
|
276
|
-
user: state.user,
|
|
277
|
-
session: state.session,
|
|
278
|
-
loading: state.loading,
|
|
279
|
-
error: state.error,
|
|
280
|
-
updateUser,
|
|
281
|
-
setUnseenInteractionsCounter,
|
|
282
|
-
setUnseenNotificationBannersCounter,
|
|
283
|
-
refreshNotificationCounters,
|
|
284
|
-
logout,
|
|
285
|
-
refreshSession,
|
|
286
|
-
managers: {
|
|
287
|
-
categories: categoriesManager,
|
|
288
|
-
followed: followedManager,
|
|
289
|
-
connections: connectionsManager,
|
|
290
|
-
incubators: subscribedIncubatorsManager
|
|
159
|
+
/**
|
|
160
|
+
* Handle change unseen notification banners counter
|
|
161
|
+
*/
|
|
162
|
+
function setUnseenNotificationBannersCounter(counter) {
|
|
163
|
+
dispatch({ type: useSCAuth_1.userActionTypes.UPDATE_USER, payload: { unseen_notification_banners_counter: counter } });
|
|
291
164
|
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
165
|
+
/**
|
|
166
|
+
* Helper to refresh the session
|
|
167
|
+
*/
|
|
168
|
+
function refreshSession() {
|
|
169
|
+
return helpers.refreshSession();
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Helper to refresh the notification counter
|
|
173
|
+
* Use getCurrentUser service since the notification counters
|
|
174
|
+
* have been inserted into the serialized user object
|
|
175
|
+
*/
|
|
176
|
+
const refreshNotificationCounters = (0, react_1.useMemo)(() => () => {
|
|
177
|
+
if (state.user) {
|
|
178
|
+
return api_services_1.UserService.getCurrentUser()
|
|
179
|
+
.then((user) => {
|
|
180
|
+
dispatch({
|
|
181
|
+
type: useSCAuth_1.userActionTypes.UPDATE_USER,
|
|
182
|
+
payload: {
|
|
183
|
+
unseen_interactions_counter: user.unseen_interactions_counter,
|
|
184
|
+
unseen_notification_banners_counter: user.unseen_notification_banners_counter,
|
|
185
|
+
},
|
|
186
|
+
});
|
|
187
|
+
})
|
|
188
|
+
.catch((error) => {
|
|
189
|
+
utils_1.Logger.error(Errors_1.SCOPE_SC_CORE, `Unable to refresh notification counters. Error: ${error.response.toString()}`);
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
return Promise.reject();
|
|
193
|
+
}, [state.user]);
|
|
194
|
+
/**
|
|
195
|
+
* Call the logout endpoint and then remove the user
|
|
196
|
+
* from the state.
|
|
197
|
+
*/
|
|
198
|
+
function logout() {
|
|
199
|
+
dispatch({ type: useSCAuth_1.userActionTypes.LOGOUT });
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Make the provider update only when it should.
|
|
203
|
+
* We only want to force re-renders if the user, session,
|
|
204
|
+
* loading or error states change.
|
|
205
|
+
*
|
|
206
|
+
* Whenever the `value` passed into a provider changes,
|
|
207
|
+
* the whole tree under the provider re-renders, and
|
|
208
|
+
* that can be very costly! Even in this case, where
|
|
209
|
+
* you only get re-renders when logging in and out
|
|
210
|
+
* we want to keep things very performant.
|
|
211
|
+
*/
|
|
212
|
+
const contextValue = (0, react_1.useMemo)(() => ({
|
|
213
|
+
user: state.user,
|
|
214
|
+
session: state.session,
|
|
215
|
+
loading: state.loading,
|
|
216
|
+
error: state.error,
|
|
217
|
+
updateUser,
|
|
218
|
+
setUnseenInteractionsCounter,
|
|
219
|
+
setUnseenNotificationBannersCounter,
|
|
220
|
+
refreshNotificationCounters,
|
|
221
|
+
logout,
|
|
222
|
+
refreshSession,
|
|
223
|
+
managers: {
|
|
224
|
+
categories: categoriesManager,
|
|
225
|
+
followed: followedManager,
|
|
226
|
+
connections: connectionsManager,
|
|
227
|
+
incubators: subscribedIncubatorsManager,
|
|
228
|
+
},
|
|
229
|
+
}), [
|
|
230
|
+
state,
|
|
231
|
+
categoriesManager.loading,
|
|
232
|
+
categoriesManager.categories,
|
|
233
|
+
followedManager.loading,
|
|
234
|
+
followedManager.followed,
|
|
235
|
+
connectionsManager.loading,
|
|
236
|
+
connectionsManager.connections,
|
|
237
|
+
subscribedIncubatorsManager.loading,
|
|
238
|
+
subscribedIncubatorsManager.incubators,
|
|
239
|
+
]);
|
|
240
|
+
/**
|
|
241
|
+
* We only want to render the underlying app after we
|
|
242
|
+
* assert for the presence of a current user.
|
|
243
|
+
*/
|
|
244
|
+
return react_1.default.createElement(exports.SCUserContext.Provider, { value: contextValue }, children);
|
|
301
245
|
}
|
|
246
|
+
exports.default = SCUserProvider;
|
|
302
247
|
/**
|
|
303
248
|
* Let's only export the `useSCUser` hook instead of the context.
|
|
304
249
|
* We only want to use the hook directly and never the context component.
|
|
305
250
|
*/
|
|
306
|
-
|
|
307
|
-
|
|
308
251
|
function useSCUser() {
|
|
309
|
-
|
|
310
|
-
}
|
|
252
|
+
return (0, react_1.useContext)(exports.SCUserContext);
|
|
253
|
+
}
|
|
254
|
+
exports.useSCUser = useSCUser;
|
|
255
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/provider/SCUserProvider/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAmF;AACnF,8DAAwD;AACxD,4DAA+C;AAC/C,sEAAoE;AACpE,gDAAmE;AACnE,0DAA+B;AAC/B,sDAAwD;AACxD,qEAAoE;AACpE,mHAA2F;AAC3F,iGAAwE;AACxE,qGAA6E;AAU7E,g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AQ,EAAE;YACR,UAAU,EAAE,iBAAiB;YAC7B,QAAQ,EAAE,eAAe;YACzB,WAAW,EAAE,kBAAkB;YAC/B,UAAU,EAAE,2BAA2B;SACxC;KACF,CAAC,EACF;QACE,KAAK;QACL,iBAAiB,CAAC,OAAO;QACzB,iBAAiB,CAAC,UAAU;QAC5B,eAAe,CAAC,OAAO;QACvB,eAAe,CAAC,QAAQ;QACxB,kBAAkB,CAAC,OAAO;QAC1B,kBAAkB,CAAC,WAAW;QAC9B,2BAA2B,CAAC,OAAO;QACnC,2BAA2B,CAAC,UAAU;KACvC,CACF,CAAC;IAEF;;;OAGG;IACH,OAAO,8BAAC,qBAAa,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,IAAG,QAAQ,CAA0B,CAAC;AAC1F,CAAC;AA1MD,iCA0MC;AAED;;;GAGG;AACH,SAAgB,SAAS;IACvB,OAAO,IAAA,kBAAU,EAAC,qBAAa,CAAC,CAAC;AACnC,CAAC;AAFD,8BAEC"}
|
|
File without changes
|
|
File without changes
|
|
@@ -1,23 +1,41 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
|
+
var t = {};
|
|
27
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
|
+
t[p] = s[p];
|
|
29
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
32
|
+
t[p[i]] = s[p[i]];
|
|
33
|
+
}
|
|
34
|
+
return t;
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
const react_1 = __importStar(require("react"));
|
|
38
|
+
const SCRoutingProvider_1 = require("../provider/SCRoutingProvider");
|
|
21
39
|
/**
|
|
22
40
|
*
|
|
23
41
|
* Import this components:
|
|
@@ -31,31 +49,15 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
31
49
|
* `<Link to={scRoutingContext.url('profile', {id: user.id})}>Go to profile</Link>`
|
|
32
50
|
*
|
|
33
51
|
*/
|
|
34
|
-
const Link = (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
const ComponentLink = scRoutingContext.routerLink;
|
|
44
|
-
return /*#__PURE__*/_react.default.createElement(ComponentLink, _extends({}, other, {
|
|
45
|
-
ref: ref
|
|
46
|
-
}), children);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
const {
|
|
50
|
-
to
|
|
51
|
-
} = other,
|
|
52
|
-
rest = _objectWithoutPropertiesLoose(other, _excluded2);
|
|
53
|
-
|
|
54
|
-
return /*#__PURE__*/_react.default.createElement("a", _extends({
|
|
55
|
-
href: to
|
|
56
|
-
}, rest, {
|
|
57
|
-
ref: ref
|
|
58
|
-
}), children);
|
|
52
|
+
const Link = (_a, ref) => {
|
|
53
|
+
var { children } = _a, other = __rest(_a, ["children"]);
|
|
54
|
+
const scRoutingContext = (0, react_1.useContext)(SCRoutingProvider_1.SCRoutingContext);
|
|
55
|
+
if (scRoutingContext.routerLink) {
|
|
56
|
+
const ComponentLink = scRoutingContext.routerLink;
|
|
57
|
+
return (react_1.default.createElement(ComponentLink, Object.assign({}, other, { ref: ref }), children));
|
|
58
|
+
}
|
|
59
|
+
const { to } = other, rest = __rest(other, ["to"]);
|
|
60
|
+
return (react_1.default.createElement("a", Object.assign({ href: to }, rest, { ref: ref }), children));
|
|
59
61
|
};
|
|
60
62
|
/**
|
|
61
63
|
:::info
|
|
@@ -84,8 +86,5 @@ const scRoutingContext: SCRoutingContextType = useSCRouting();
|
|
|
84
86
|
|
|
85
87
|
:::
|
|
86
88
|
*/
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
var _default = /*#__PURE__*/_react.default.forwardRef(Link);
|
|
90
|
-
|
|
91
|
-
exports.default = _default;
|
|
89
|
+
exports.default = react_1.default.forwardRef(Link);
|
|
90
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/router/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwC;AACxC,qEAA+D;AAG/D;;;;;;;;;;;;GAYG;AACH,MAAM,IAAI,GAAG,CAAC,EAAoB,EAAE,GAAG,EAAE,EAAE;QAA7B,EAAC,QAAQ,OAAW,EAAN,KAAK,cAAnB,YAAoB,CAAD;IAC/B,MAAM,gBAAgB,GAAyB,IAAA,kBAAU,EAAC,oCAAgB,CAAC,CAAC;IAC5E,IAAI,gBAAgB,CAAC,UAAU,EAAE;QAC/B,MAAM,aAAa,GAA8B,gBAAgB,CAAC,UAAU,CAAC;QAC7E,OAAO,CACL,8BAAC,aAAa,oBAAK,KAAK,IAAE,GAAG,EAAE,GAAG,KAC/B,QAAQ,CACK,CACjB,CAAC;KACH;IACD,MAAM,EAAC,EAAE,KAAa,KAAK,EAAb,IAAI,UAAI,KAAK,EAArB,MAAa,CAAQ,CAAC;IAC5B,OAAO,CACL,mDAAG,IAAI,EAAE,EAAE,IAAM,IAAI,IAAE,GAAG,EAAE,GAAG,KAC5B,QAAQ,CACP,CACL,CAAC;AACJ,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,kBAAe,eAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC"}
|
|
File without changes
|
|
File without changes
|