@selfcommunity/react-core 0.4.0-alpha.11 → 0.4.0-alpha.111
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/cjs/components/provider/SCAlertMessagesProvider/index.d.ts +0 -1
- package/lib/cjs/components/provider/SCAlertMessagesProvider/index.js +2 -25
- package/lib/cjs/components/provider/SCContextProvider/index.d.ts +0 -1
- package/lib/cjs/components/provider/SCContextProvider/index.js +3 -29
- package/lib/cjs/components/provider/SCLocaleProvider/index.d.ts +0 -1
- package/lib/cjs/components/provider/SCLocaleProvider/index.js +2 -25
- package/lib/cjs/components/provider/SCNotificationProvider/index.d.ts +0 -1
- package/lib/cjs/components/provider/SCNotificationProvider/index.js +7 -31
- package/lib/cjs/components/provider/SCPreferencesProvider/index.d.ts +0 -1
- package/lib/cjs/components/provider/SCPreferencesProvider/index.js +2 -25
- package/lib/cjs/components/provider/SCRoutingProvider/index.d.ts +0 -1
- package/lib/cjs/components/provider/SCRoutingProvider/index.js +4 -27
- package/lib/cjs/components/provider/SCThemeProvider/index.d.ts +0 -1
- package/lib/cjs/components/provider/SCThemeProvider/index.js +6 -32
- package/lib/cjs/components/provider/SCUserProvider/index.d.ts +0 -1
- package/lib/cjs/components/provider/SCUserProvider/index.js +32 -49
- package/lib/cjs/components/provider/SCVoteProvider/index.d.ts +37 -0
- package/lib/cjs/components/provider/SCVoteProvider/index.js +112 -0
- package/lib/cjs/components/router/index.d.ts +0 -1
- package/lib/cjs/components/router/index.js +5 -39
- package/lib/cjs/constants/Actions.d.ts +0 -1
- package/lib/cjs/constants/Actions.js +0 -1
- package/lib/cjs/constants/Cache.d.ts +23 -15
- package/lib/cjs/constants/Cache.js +28 -17
- package/lib/cjs/constants/ContextProviders.d.ts +0 -1
- package/lib/cjs/constants/ContextProviders.js +12 -13
- package/lib/cjs/constants/Device.d.ts +22 -1
- package/lib/cjs/constants/Device.js +27 -2
- package/lib/cjs/constants/Errors.d.ts +0 -1
- package/lib/cjs/constants/Errors.js +0 -1
- package/lib/cjs/constants/Features.d.ts +0 -43
- package/lib/cjs/constants/Features.js +1 -44
- package/lib/cjs/constants/Locale.d.ts +0 -1
- package/lib/cjs/constants/Locale.js +0 -1
- package/lib/cjs/constants/Notification.d.ts +0 -1
- package/lib/cjs/constants/Notification.js +0 -1
- package/lib/cjs/constants/Notifications.d.ts +3 -1
- package/lib/cjs/constants/Notifications.js +7 -2
- package/lib/cjs/constants/Preferences.d.ts +13 -2
- package/lib/cjs/constants/Preferences.js +21 -5
- package/lib/cjs/constants/Routes.d.ts +3 -1
- package/lib/cjs/constants/Routes.js +8 -3
- package/lib/cjs/constants/Session.d.ts +0 -1
- package/lib/cjs/constants/Session.js +0 -1
- package/lib/cjs/constants/Theme.d.ts +0 -1
- package/lib/cjs/constants/Theme.js +0 -1
- package/lib/cjs/constants/Vote.d.ts +6 -0
- package/lib/cjs/constants/Vote.js +9 -0
- package/lib/cjs/constants/WebSocket.d.ts +0 -1
- package/lib/cjs/constants/WebSocket.js +0 -1
- package/lib/cjs/hooks/useSCAuth.d.ts +0 -1
- package/lib/cjs/hooks/useSCAuth.js +34 -51
- package/lib/cjs/hooks/useSCBlockedUsersManager.d.ts +30 -0
- package/lib/cjs/hooks/useSCBlockedUsersManager.js +108 -0
- package/lib/cjs/hooks/useSCCachingManager.d.ts +5 -5
- package/lib/cjs/hooks/useSCCachingManager.js +21 -6
- package/lib/cjs/hooks/useSCConnectionsManager.d.ts +8 -5
- package/lib/cjs/hooks/useSCConnectionsManager.js +141 -91
- package/lib/cjs/hooks/useSCFetchAddressingTagList.d.ts +0 -1
- package/lib/cjs/hooks/useSCFetchAddressingTagList.js +2 -26
- package/lib/cjs/hooks/useSCFetchBroadcastMessages.d.ts +30 -0
- package/lib/cjs/hooks/useSCFetchBroadcastMessages.js +91 -0
- package/lib/cjs/hooks/useSCFetchCategories.d.ts +0 -1
- package/lib/cjs/hooks/useSCFetchCategories.js +2 -11
- package/lib/cjs/hooks/useSCFetchCategory.d.ts +0 -1
- package/lib/cjs/hooks/useSCFetchCategory.js +13 -12
- package/lib/cjs/hooks/useSCFetchCommentObject.d.ts +0 -1
- package/lib/cjs/hooks/useSCFetchCommentObject.js +1 -2
- package/lib/cjs/hooks/useSCFetchCommentObjects.d.ts +0 -1
- package/lib/cjs/hooks/useSCFetchCommentObjects.js +2 -5
- package/lib/cjs/hooks/useSCFetchContributors.d.ts +0 -1
- package/lib/cjs/hooks/useSCFetchContributors.js +2 -5
- package/lib/cjs/hooks/useSCFetchCustomAdv.d.ts +0 -1
- package/lib/cjs/hooks/useSCFetchCustomAdv.js +2 -5
- package/lib/cjs/hooks/useSCFetchFeed.d.ts +0 -1
- package/lib/cjs/hooks/useSCFetchFeed.js +3 -6
- package/lib/cjs/hooks/useSCFetchFeedObject.d.ts +0 -1
- package/lib/cjs/hooks/useSCFetchFeedObject.js +0 -1
- package/lib/cjs/hooks/useSCFetchIncubator.d.ts +4 -2
- package/lib/cjs/hooks/useSCFetchIncubator.js +28 -8
- package/lib/cjs/hooks/useSCFetchPrivateMessageSnippets.d.ts +0 -1
- package/lib/cjs/hooks/useSCFetchPrivateMessageSnippets.js +16 -26
- package/lib/cjs/hooks/useSCFetchReactions.d.ts +0 -1
- package/lib/cjs/hooks/useSCFetchReactions.js +3 -50
- package/lib/cjs/hooks/useSCFetchTag.d.ts +0 -1
- package/lib/cjs/hooks/useSCFetchTag.js +0 -1
- package/lib/cjs/hooks/useSCFetchUser.d.ts +2 -1
- package/lib/cjs/hooks/useSCFetchUser.js +33 -8
- package/lib/cjs/hooks/useSCFetchUserBlockedBy.d.ts +17 -0
- package/lib/cjs/hooks/useSCFetchUserBlockedBy.js +83 -0
- package/lib/cjs/hooks/useSCFetchUserProviders.d.ts +0 -1
- package/lib/cjs/hooks/useSCFetchUserProviders.js +0 -1
- package/lib/cjs/hooks/useSCFetchVote.d.ts +2 -3
- package/lib/cjs/hooks/useSCFetchVote.js +58 -77
- package/lib/cjs/hooks/useSCFollowedCategoriesManager.d.ts +4 -5
- package/lib/cjs/hooks/useSCFollowedCategoriesManager.js +26 -17
- package/lib/cjs/hooks/useSCFollowedManager.d.ts +4 -5
- package/lib/cjs/hooks/useSCFollowedManager.js +38 -24
- package/lib/cjs/hooks/useSCFollowersManager.d.ts +4 -5
- package/lib/cjs/hooks/useSCFollowersManager.js +7 -10
- package/lib/cjs/hooks/useSCMediaClick.d.ts +0 -1
- package/lib/cjs/hooks/useSCMediaClick.js +0 -1
- package/lib/cjs/hooks/useSCMobileNativePushMessaging.d.ts +19 -0
- package/lib/cjs/hooks/useSCMobileNativePushMessaging.js +143 -0
- package/lib/cjs/hooks/useSCSettingsManager.d.ts +0 -1
- package/lib/cjs/hooks/useSCSettingsManager.js +0 -1
- package/lib/cjs/hooks/useSCSubscribedIncubatorsManager.d.ts +12 -3
- package/lib/cjs/hooks/useSCSubscribedIncubatorsManager.js +39 -32
- package/lib/cjs/hooks/useSCUserIsBlocked.d.ts +18 -0
- package/lib/cjs/hooks/useSCUserIsBlocked.js +33 -0
- package/lib/cjs/hooks/useSCWebPushMessaging.d.ts +12 -2
- package/lib/cjs/hooks/useSCWebPushMessaging.js +188 -106
- package/lib/cjs/hooks/useSCWebSocket.d.ts +1 -2
- package/lib/cjs/hooks/useSCWebSocket.js +3 -6
- package/lib/cjs/index.d.ts +4 -2
- package/lib/cjs/index.js +41 -61
- package/lib/cjs/themes/theme.d.ts +0 -1
- package/lib/cjs/themes/theme.js +4 -80
- package/lib/cjs/types/context.d.ts +96 -6
- package/lib/cjs/types/context.js +0 -1
- package/lib/cjs/types/index.d.ts +2 -3
- package/lib/cjs/types/index.js +0 -1
- package/lib/cjs/types/theme.d.ts +1 -2
- package/lib/cjs/types/theme.js +0 -1
- package/lib/cjs/utils/errors.d.ts +5 -6
- package/lib/cjs/utils/errors.js +13 -34
- package/lib/cjs/utils/hooks/index.d.ts +0 -1
- package/lib/cjs/utils/hooks/index.js +6 -9
- package/lib/cjs/utils/hooks/useEffectOnce.d.ts +0 -1
- package/lib/cjs/utils/hooks/useEffectOnce.js +0 -1
- package/lib/cjs/utils/hooks/useIsComponentMountedRef.d.ts +0 -1
- package/lib/cjs/utils/hooks/useIsComponentMountedRef.js +0 -1
- package/lib/cjs/utils/hooks/useIsomorphicLayoutEffect.d.ts +0 -1
- package/lib/cjs/utils/hooks/useIsomorphicLayoutEffect.js +0 -1
- package/lib/cjs/utils/hooks/useNoInitialEffect.d.ts +0 -1
- package/lib/cjs/utils/hooks/useNoInitialEffect.js +0 -1
- package/lib/cjs/utils/hooks/usePreviousValue.d.ts +0 -1
- package/lib/cjs/utils/hooks/usePreviousValue.js +0 -1
- package/lib/cjs/utils/locale.d.ts +0 -1
- package/lib/cjs/utils/locale.js +2 -5
- package/lib/cjs/utils/notification.d.ts +8 -0
- package/lib/cjs/utils/notification.js +20 -0
- package/lib/cjs/utils/pagination.d.ts +0 -1
- package/lib/cjs/utils/pagination.js +0 -1
- package/lib/cjs/utils/user.d.ts +0 -1
- package/lib/cjs/utils/user.js +0 -1
- package/lib/cjs/utils/validator.d.ts +49 -3
- package/lib/cjs/utils/validator.js +144 -41
- package/lib/esm/components/provider/SCAlertMessagesProvider/index.d.ts +0 -1
- package/lib/esm/components/provider/SCAlertMessagesProvider/index.js +0 -1
- package/lib/esm/components/provider/SCContextProvider/index.d.ts +0 -1
- package/lib/esm/components/provider/SCContextProvider/index.js +0 -1
- package/lib/esm/components/provider/SCLocaleProvider/index.d.ts +0 -1
- package/lib/esm/components/provider/SCLocaleProvider/index.js +0 -1
- package/lib/esm/components/provider/SCNotificationProvider/index.d.ts +0 -1
- package/lib/esm/components/provider/SCNotificationProvider/index.js +3 -2
- package/lib/esm/components/provider/SCPreferencesProvider/index.d.ts +0 -1
- package/lib/esm/components/provider/SCPreferencesProvider/index.js +0 -1
- package/lib/esm/components/provider/SCRoutingProvider/index.d.ts +0 -1
- package/lib/esm/components/provider/SCRoutingProvider/index.js +1 -2
- package/lib/esm/components/provider/SCThemeProvider/index.d.ts +0 -1
- package/lib/esm/components/provider/SCThemeProvider/index.js +1 -2
- package/lib/esm/components/provider/SCUserProvider/index.d.ts +0 -1
- package/lib/esm/components/provider/SCUserProvider/index.js +22 -14
- package/lib/esm/components/provider/SCVoteProvider/index.d.ts +37 -0
- package/lib/esm/components/provider/SCVoteProvider/index.js +106 -0
- package/lib/esm/components/router/index.d.ts +0 -1
- package/lib/esm/components/router/index.js +2 -13
- package/lib/esm/constants/Actions.d.ts +0 -1
- package/lib/esm/constants/Actions.js +0 -1
- package/lib/esm/constants/Cache.d.ts +23 -15
- package/lib/esm/constants/Cache.js +23 -15
- package/lib/esm/constants/ContextProviders.d.ts +0 -1
- package/lib/esm/constants/ContextProviders.js +4 -3
- package/lib/esm/constants/Device.d.ts +22 -1
- package/lib/esm/constants/Device.js +26 -1
- package/lib/esm/constants/Errors.d.ts +0 -1
- package/lib/esm/constants/Errors.js +0 -1
- package/lib/esm/constants/Features.d.ts +0 -43
- package/lib/esm/constants/Features.js +0 -43
- package/lib/esm/constants/Locale.d.ts +0 -1
- package/lib/esm/constants/Locale.js +0 -1
- package/lib/esm/constants/Notification.d.ts +0 -1
- package/lib/esm/constants/Notification.js +0 -1
- package/lib/esm/constants/Notifications.d.ts +3 -1
- package/lib/esm/constants/Notifications.js +6 -1
- package/lib/esm/constants/Preferences.d.ts +13 -2
- package/lib/esm/constants/Preferences.js +18 -3
- package/lib/esm/constants/Routes.d.ts +3 -1
- package/lib/esm/constants/Routes.js +7 -2
- package/lib/esm/constants/Session.d.ts +0 -1
- package/lib/esm/constants/Session.js +0 -1
- package/lib/esm/constants/Theme.d.ts +0 -1
- package/lib/esm/constants/Theme.js +0 -1
- package/lib/esm/constants/Vote.d.ts +6 -0
- package/lib/esm/constants/Vote.js +6 -0
- package/lib/esm/constants/WebSocket.d.ts +0 -1
- package/lib/esm/constants/WebSocket.js +0 -1
- package/lib/esm/hooks/useSCAuth.d.ts +0 -1
- package/lib/esm/hooks/useSCAuth.js +31 -22
- package/lib/esm/hooks/useSCBlockedUsersManager.d.ts +30 -0
- package/lib/esm/hooks/useSCBlockedUsersManager.js +105 -0
- package/lib/esm/hooks/useSCCachingManager.d.ts +5 -5
- package/lib/esm/hooks/useSCCachingManager.js +21 -6
- package/lib/esm/hooks/useSCConnectionsManager.d.ts +8 -5
- package/lib/esm/hooks/useSCConnectionsManager.js +138 -86
- package/lib/esm/hooks/useSCFetchAddressingTagList.d.ts +0 -1
- package/lib/esm/hooks/useSCFetchAddressingTagList.js +3 -4
- package/lib/esm/hooks/useSCFetchBroadcastMessages.d.ts +30 -0
- package/lib/esm/hooks/useSCFetchBroadcastMessages.js +89 -0
- package/lib/esm/hooks/useSCFetchCategories.d.ts +0 -1
- package/lib/esm/hooks/useSCFetchCategories.js +1 -10
- package/lib/esm/hooks/useSCFetchCategory.d.ts +0 -1
- package/lib/esm/hooks/useSCFetchCategory.js +15 -14
- package/lib/esm/hooks/useSCFetchCommentObject.d.ts +0 -1
- package/lib/esm/hooks/useSCFetchCommentObject.js +1 -2
- package/lib/esm/hooks/useSCFetchCommentObjects.d.ts +0 -1
- package/lib/esm/hooks/useSCFetchCommentObjects.js +0 -1
- package/lib/esm/hooks/useSCFetchContributors.d.ts +0 -1
- package/lib/esm/hooks/useSCFetchContributors.js +0 -1
- package/lib/esm/hooks/useSCFetchCustomAdv.d.ts +0 -1
- package/lib/esm/hooks/useSCFetchCustomAdv.js +0 -1
- package/lib/esm/hooks/useSCFetchFeed.d.ts +0 -1
- package/lib/esm/hooks/useSCFetchFeed.js +1 -2
- package/lib/esm/hooks/useSCFetchFeedObject.d.ts +0 -1
- package/lib/esm/hooks/useSCFetchFeedObject.js +0 -1
- package/lib/esm/hooks/useSCFetchIncubator.d.ts +4 -2
- package/lib/esm/hooks/useSCFetchIncubator.js +29 -9
- package/lib/esm/hooks/useSCFetchPrivateMessageSnippets.d.ts +0 -1
- package/lib/esm/hooks/useSCFetchPrivateMessageSnippets.js +15 -25
- package/lib/esm/hooks/useSCFetchReactions.d.ts +0 -1
- package/lib/esm/hooks/useSCFetchReactions.js +5 -29
- package/lib/esm/hooks/useSCFetchTag.d.ts +0 -1
- package/lib/esm/hooks/useSCFetchTag.js +0 -1
- package/lib/esm/hooks/useSCFetchUser.d.ts +2 -1
- package/lib/esm/hooks/useSCFetchUser.js +34 -9
- package/lib/esm/hooks/useSCFetchUserBlockedBy.d.ts +17 -0
- package/lib/esm/hooks/useSCFetchUserBlockedBy.js +80 -0
- package/lib/esm/hooks/useSCFetchUserProviders.d.ts +0 -1
- package/lib/esm/hooks/useSCFetchUserProviders.js +0 -1
- package/lib/esm/hooks/useSCFetchVote.d.ts +2 -3
- package/lib/esm/hooks/useSCFetchVote.js +56 -73
- package/lib/esm/hooks/useSCFollowedCategoriesManager.d.ts +4 -5
- package/lib/esm/hooks/useSCFollowedCategoriesManager.js +25 -14
- package/lib/esm/hooks/useSCFollowedManager.d.ts +4 -5
- package/lib/esm/hooks/useSCFollowedManager.js +37 -21
- package/lib/esm/hooks/useSCFollowersManager.d.ts +4 -5
- package/lib/esm/hooks/useSCFollowersManager.js +4 -5
- package/lib/esm/hooks/useSCMediaClick.d.ts +0 -1
- package/lib/esm/hooks/useSCMediaClick.js +0 -1
- package/lib/esm/hooks/useSCMobileNativePushMessaging.d.ts +19 -0
- package/lib/esm/hooks/useSCMobileNativePushMessaging.js +140 -0
- package/lib/esm/hooks/useSCSettingsManager.d.ts +0 -1
- package/lib/esm/hooks/useSCSettingsManager.js +0 -1
- package/lib/esm/hooks/useSCSubscribedIncubatorsManager.d.ts +12 -3
- package/lib/esm/hooks/useSCSubscribedIncubatorsManager.js +38 -29
- package/lib/esm/hooks/useSCUserIsBlocked.d.ts +18 -0
- package/lib/esm/hooks/useSCUserIsBlocked.js +29 -0
- package/lib/esm/hooks/useSCWebPushMessaging.d.ts +12 -2
- package/lib/esm/hooks/useSCWebPushMessaging.js +185 -82
- package/lib/esm/hooks/useSCWebSocket.d.ts +1 -2
- package/lib/esm/hooks/useSCWebSocket.js +1 -2
- package/lib/esm/index.d.ts +4 -2
- package/lib/esm/index.js +4 -2
- package/lib/esm/themes/theme.d.ts +0 -1
- package/lib/esm/themes/theme.js +1 -75
- package/lib/esm/types/context.d.ts +96 -6
- package/lib/esm/types/context.js +0 -1
- package/lib/esm/types/index.d.ts +2 -3
- package/lib/esm/types/index.js +0 -1
- package/lib/esm/types/theme.d.ts +1 -2
- package/lib/esm/types/theme.js +0 -1
- package/lib/esm/utils/errors.d.ts +5 -6
- package/lib/esm/utils/errors.js +10 -8
- package/lib/esm/utils/hooks/index.d.ts +0 -1
- package/lib/esm/utils/hooks/index.js +0 -1
- package/lib/esm/utils/hooks/useEffectOnce.d.ts +0 -1
- package/lib/esm/utils/hooks/useEffectOnce.js +0 -1
- package/lib/esm/utils/hooks/useIsComponentMountedRef.d.ts +0 -1
- package/lib/esm/utils/hooks/useIsComponentMountedRef.js +0 -1
- package/lib/esm/utils/hooks/useIsomorphicLayoutEffect.d.ts +0 -1
- package/lib/esm/utils/hooks/useIsomorphicLayoutEffect.js +0 -1
- package/lib/esm/utils/hooks/useNoInitialEffect.d.ts +0 -1
- package/lib/esm/utils/hooks/useNoInitialEffect.js +0 -1
- package/lib/esm/utils/hooks/usePreviousValue.d.ts +0 -1
- package/lib/esm/utils/hooks/usePreviousValue.js +0 -1
- package/lib/esm/utils/locale.d.ts +0 -1
- package/lib/esm/utils/locale.js +0 -1
- package/lib/esm/utils/notification.d.ts +8 -0
- package/lib/esm/utils/notification.js +15 -0
- package/lib/esm/utils/pagination.d.ts +0 -1
- package/lib/esm/utils/pagination.js +0 -1
- package/lib/esm/utils/user.d.ts +0 -1
- package/lib/esm/utils/user.js +0 -1
- package/lib/esm/utils/validator.d.ts +49 -3
- package/lib/esm/utils/validator.js +129 -8
- package/lib/umd/251.js +2 -0
- package/lib/umd/251.js.LICENSE.txt +1 -0
- package/lib/umd/react-core.js +1 -1
- package/lib/umd/react-core.js.LICENSE.txt +1 -1
- package/package.json +25 -24
- package/lib/cjs/components/provider/SCAlertMessagesProvider/index.d.ts.map +0 -1
- package/lib/cjs/components/provider/SCAlertMessagesProvider/index.js.map +0 -1
- package/lib/cjs/components/provider/SCContextProvider/index.d.ts.map +0 -1
- package/lib/cjs/components/provider/SCContextProvider/index.js.map +0 -1
- package/lib/cjs/components/provider/SCLocaleProvider/index.d.ts.map +0 -1
- package/lib/cjs/components/provider/SCLocaleProvider/index.js.map +0 -1
- package/lib/cjs/components/provider/SCNotificationProvider/index.d.ts.map +0 -1
- package/lib/cjs/components/provider/SCNotificationProvider/index.js.map +0 -1
- package/lib/cjs/components/provider/SCPreferencesProvider/index.d.ts.map +0 -1
- package/lib/cjs/components/provider/SCPreferencesProvider/index.js.map +0 -1
- package/lib/cjs/components/provider/SCRoutingProvider/index.d.ts.map +0 -1
- package/lib/cjs/components/provider/SCRoutingProvider/index.js.map +0 -1
- package/lib/cjs/components/provider/SCThemeProvider/index.d.ts.map +0 -1
- package/lib/cjs/components/provider/SCThemeProvider/index.js.map +0 -1
- package/lib/cjs/components/provider/SCUserProvider/index.d.ts.map +0 -1
- package/lib/cjs/components/provider/SCUserProvider/index.js.map +0 -1
- package/lib/cjs/components/router/index.d.ts.map +0 -1
- package/lib/cjs/components/router/index.js.map +0 -1
- package/lib/cjs/constants/Actions.d.ts.map +0 -1
- package/lib/cjs/constants/Actions.js.map +0 -1
- package/lib/cjs/constants/Cache.d.ts.map +0 -1
- package/lib/cjs/constants/Cache.js.map +0 -1
- package/lib/cjs/constants/ContextProviders.d.ts.map +0 -1
- package/lib/cjs/constants/ContextProviders.js.map +0 -1
- package/lib/cjs/constants/Device.d.ts.map +0 -1
- package/lib/cjs/constants/Device.js.map +0 -1
- package/lib/cjs/constants/Errors.d.ts.map +0 -1
- package/lib/cjs/constants/Errors.js.map +0 -1
- package/lib/cjs/constants/Features.d.ts.map +0 -1
- package/lib/cjs/constants/Features.js.map +0 -1
- package/lib/cjs/constants/Locale.d.ts.map +0 -1
- package/lib/cjs/constants/Locale.js.map +0 -1
- package/lib/cjs/constants/Notification.d.ts.map +0 -1
- package/lib/cjs/constants/Notification.js.map +0 -1
- package/lib/cjs/constants/Notifications.d.ts.map +0 -1
- package/lib/cjs/constants/Notifications.js.map +0 -1
- package/lib/cjs/constants/Preferences.d.ts.map +0 -1
- package/lib/cjs/constants/Preferences.js.map +0 -1
- package/lib/cjs/constants/Routes.d.ts.map +0 -1
- package/lib/cjs/constants/Routes.js.map +0 -1
- package/lib/cjs/constants/Session.d.ts.map +0 -1
- package/lib/cjs/constants/Session.js.map +0 -1
- package/lib/cjs/constants/Theme.d.ts.map +0 -1
- package/lib/cjs/constants/Theme.js.map +0 -1
- package/lib/cjs/constants/WebSocket.d.ts.map +0 -1
- package/lib/cjs/constants/WebSocket.js.map +0 -1
- package/lib/cjs/hooks/useSCAuth.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCAuth.js.map +0 -1
- package/lib/cjs/hooks/useSCCachingManager.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCCachingManager.js.map +0 -1
- package/lib/cjs/hooks/useSCConnectionsManager.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCConnectionsManager.js.map +0 -1
- package/lib/cjs/hooks/useSCFetchAddressingTagList.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCFetchAddressingTagList.js.map +0 -1
- package/lib/cjs/hooks/useSCFetchCategories.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCFetchCategories.js.map +0 -1
- package/lib/cjs/hooks/useSCFetchCategory.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCFetchCategory.js.map +0 -1
- package/lib/cjs/hooks/useSCFetchCommentObject.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCFetchCommentObject.js.map +0 -1
- package/lib/cjs/hooks/useSCFetchCommentObjects.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCFetchCommentObjects.js.map +0 -1
- package/lib/cjs/hooks/useSCFetchContributors.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCFetchContributors.js.map +0 -1
- package/lib/cjs/hooks/useSCFetchCustomAdv.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCFetchCustomAdv.js.map +0 -1
- package/lib/cjs/hooks/useSCFetchFeed.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCFetchFeed.js.map +0 -1
- package/lib/cjs/hooks/useSCFetchFeedObject.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCFetchFeedObject.js.map +0 -1
- package/lib/cjs/hooks/useSCFetchIncubator.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCFetchIncubator.js.map +0 -1
- package/lib/cjs/hooks/useSCFetchPrivateMessageSnippets.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCFetchPrivateMessageSnippets.js.map +0 -1
- package/lib/cjs/hooks/useSCFetchReactions.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCFetchReactions.js.map +0 -1
- package/lib/cjs/hooks/useSCFetchTag.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCFetchTag.js.map +0 -1
- package/lib/cjs/hooks/useSCFetchUser.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCFetchUser.js.map +0 -1
- package/lib/cjs/hooks/useSCFetchUserProviders.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCFetchUserProviders.js.map +0 -1
- package/lib/cjs/hooks/useSCFetchVote.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCFetchVote.js.map +0 -1
- package/lib/cjs/hooks/useSCFollowedCategoriesManager.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCFollowedCategoriesManager.js.map +0 -1
- package/lib/cjs/hooks/useSCFollowedManager.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCFollowedManager.js.map +0 -1
- package/lib/cjs/hooks/useSCFollowersManager.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCFollowersManager.js.map +0 -1
- package/lib/cjs/hooks/useSCMediaClick.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCMediaClick.js.map +0 -1
- package/lib/cjs/hooks/useSCSettingsManager.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCSettingsManager.js.map +0 -1
- package/lib/cjs/hooks/useSCSubscribedIncubatorsManager.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCSubscribedIncubatorsManager.js.map +0 -1
- package/lib/cjs/hooks/useSCWebPushMessaging.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCWebPushMessaging.js.map +0 -1
- package/lib/cjs/hooks/useSCWebSocket.d.ts.map +0 -1
- package/lib/cjs/hooks/useSCWebSocket.js.map +0 -1
- package/lib/cjs/index.d.ts.map +0 -1
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/themes/theme.d.ts.map +0 -1
- package/lib/cjs/themes/theme.js.map +0 -1
- package/lib/cjs/types/context.d.ts.map +0 -1
- package/lib/cjs/types/context.js.map +0 -1
- package/lib/cjs/types/index.d.ts.map +0 -1
- package/lib/cjs/types/index.js.map +0 -1
- package/lib/cjs/types/theme.d.ts.map +0 -1
- package/lib/cjs/types/theme.js.map +0 -1
- package/lib/cjs/utils/errors.d.ts.map +0 -1
- package/lib/cjs/utils/errors.js.map +0 -1
- package/lib/cjs/utils/hooks/index.d.ts.map +0 -1
- package/lib/cjs/utils/hooks/index.js.map +0 -1
- package/lib/cjs/utils/hooks/useEffectOnce.d.ts.map +0 -1
- package/lib/cjs/utils/hooks/useEffectOnce.js.map +0 -1
- package/lib/cjs/utils/hooks/useIsComponentMountedRef.d.ts.map +0 -1
- package/lib/cjs/utils/hooks/useIsComponentMountedRef.js.map +0 -1
- package/lib/cjs/utils/hooks/useIsomorphicLayoutEffect.d.ts.map +0 -1
- package/lib/cjs/utils/hooks/useIsomorphicLayoutEffect.js.map +0 -1
- package/lib/cjs/utils/hooks/useNoInitialEffect.d.ts.map +0 -1
- package/lib/cjs/utils/hooks/useNoInitialEffect.js.map +0 -1
- package/lib/cjs/utils/hooks/usePreviousValue.d.ts.map +0 -1
- package/lib/cjs/utils/hooks/usePreviousValue.js.map +0 -1
- package/lib/cjs/utils/locale.d.ts.map +0 -1
- package/lib/cjs/utils/locale.js.map +0 -1
- package/lib/cjs/utils/pagination.d.ts.map +0 -1
- package/lib/cjs/utils/pagination.js.map +0 -1
- package/lib/cjs/utils/user.d.ts.map +0 -1
- package/lib/cjs/utils/user.js.map +0 -1
- package/lib/cjs/utils/validator.d.ts.map +0 -1
- package/lib/cjs/utils/validator.js.map +0 -1
- package/lib/esm/components/provider/SCAlertMessagesProvider/index.d.ts.map +0 -1
- package/lib/esm/components/provider/SCAlertMessagesProvider/index.js.map +0 -1
- package/lib/esm/components/provider/SCContextProvider/index.d.ts.map +0 -1
- package/lib/esm/components/provider/SCContextProvider/index.js.map +0 -1
- package/lib/esm/components/provider/SCLocaleProvider/index.d.ts.map +0 -1
- package/lib/esm/components/provider/SCLocaleProvider/index.js.map +0 -1
- package/lib/esm/components/provider/SCNotificationProvider/index.d.ts.map +0 -1
- package/lib/esm/components/provider/SCNotificationProvider/index.js.map +0 -1
- package/lib/esm/components/provider/SCPreferencesProvider/index.d.ts.map +0 -1
- package/lib/esm/components/provider/SCPreferencesProvider/index.js.map +0 -1
- package/lib/esm/components/provider/SCRoutingProvider/index.d.ts.map +0 -1
- package/lib/esm/components/provider/SCRoutingProvider/index.js.map +0 -1
- package/lib/esm/components/provider/SCThemeProvider/index.d.ts.map +0 -1
- package/lib/esm/components/provider/SCThemeProvider/index.js.map +0 -1
- package/lib/esm/components/provider/SCUserProvider/index.d.ts.map +0 -1
- package/lib/esm/components/provider/SCUserProvider/index.js.map +0 -1
- package/lib/esm/components/router/index.d.ts.map +0 -1
- package/lib/esm/components/router/index.js.map +0 -1
- package/lib/esm/constants/Actions.d.ts.map +0 -1
- package/lib/esm/constants/Actions.js.map +0 -1
- package/lib/esm/constants/Cache.d.ts.map +0 -1
- package/lib/esm/constants/Cache.js.map +0 -1
- package/lib/esm/constants/ContextProviders.d.ts.map +0 -1
- package/lib/esm/constants/ContextProviders.js.map +0 -1
- package/lib/esm/constants/Device.d.ts.map +0 -1
- package/lib/esm/constants/Device.js.map +0 -1
- package/lib/esm/constants/Errors.d.ts.map +0 -1
- package/lib/esm/constants/Errors.js.map +0 -1
- package/lib/esm/constants/Features.d.ts.map +0 -1
- package/lib/esm/constants/Features.js.map +0 -1
- package/lib/esm/constants/Locale.d.ts.map +0 -1
- package/lib/esm/constants/Locale.js.map +0 -1
- package/lib/esm/constants/Notification.d.ts.map +0 -1
- package/lib/esm/constants/Notification.js.map +0 -1
- package/lib/esm/constants/Notifications.d.ts.map +0 -1
- package/lib/esm/constants/Notifications.js.map +0 -1
- package/lib/esm/constants/Preferences.d.ts.map +0 -1
- package/lib/esm/constants/Preferences.js.map +0 -1
- package/lib/esm/constants/Routes.d.ts.map +0 -1
- package/lib/esm/constants/Routes.js.map +0 -1
- package/lib/esm/constants/Session.d.ts.map +0 -1
- package/lib/esm/constants/Session.js.map +0 -1
- package/lib/esm/constants/Theme.d.ts.map +0 -1
- package/lib/esm/constants/Theme.js.map +0 -1
- package/lib/esm/constants/WebSocket.d.ts.map +0 -1
- package/lib/esm/constants/WebSocket.js.map +0 -1
- package/lib/esm/hooks/useSCAuth.d.ts.map +0 -1
- package/lib/esm/hooks/useSCAuth.js.map +0 -1
- package/lib/esm/hooks/useSCCachingManager.d.ts.map +0 -1
- package/lib/esm/hooks/useSCCachingManager.js.map +0 -1
- package/lib/esm/hooks/useSCConnectionsManager.d.ts.map +0 -1
- package/lib/esm/hooks/useSCConnectionsManager.js.map +0 -1
- package/lib/esm/hooks/useSCFetchAddressingTagList.d.ts.map +0 -1
- package/lib/esm/hooks/useSCFetchAddressingTagList.js.map +0 -1
- package/lib/esm/hooks/useSCFetchCategories.d.ts.map +0 -1
- package/lib/esm/hooks/useSCFetchCategories.js.map +0 -1
- package/lib/esm/hooks/useSCFetchCategory.d.ts.map +0 -1
- package/lib/esm/hooks/useSCFetchCategory.js.map +0 -1
- package/lib/esm/hooks/useSCFetchCommentObject.d.ts.map +0 -1
- package/lib/esm/hooks/useSCFetchCommentObject.js.map +0 -1
- package/lib/esm/hooks/useSCFetchCommentObjects.d.ts.map +0 -1
- package/lib/esm/hooks/useSCFetchCommentObjects.js.map +0 -1
- package/lib/esm/hooks/useSCFetchContributors.d.ts.map +0 -1
- package/lib/esm/hooks/useSCFetchContributors.js.map +0 -1
- package/lib/esm/hooks/useSCFetchCustomAdv.d.ts.map +0 -1
- package/lib/esm/hooks/useSCFetchCustomAdv.js.map +0 -1
- package/lib/esm/hooks/useSCFetchFeed.d.ts.map +0 -1
- package/lib/esm/hooks/useSCFetchFeed.js.map +0 -1
- package/lib/esm/hooks/useSCFetchFeedObject.d.ts.map +0 -1
- package/lib/esm/hooks/useSCFetchFeedObject.js.map +0 -1
- package/lib/esm/hooks/useSCFetchIncubator.d.ts.map +0 -1
- package/lib/esm/hooks/useSCFetchIncubator.js.map +0 -1
- package/lib/esm/hooks/useSCFetchPrivateMessageSnippets.d.ts.map +0 -1
- package/lib/esm/hooks/useSCFetchPrivateMessageSnippets.js.map +0 -1
- package/lib/esm/hooks/useSCFetchReactions.d.ts.map +0 -1
- package/lib/esm/hooks/useSCFetchReactions.js.map +0 -1
- package/lib/esm/hooks/useSCFetchTag.d.ts.map +0 -1
- package/lib/esm/hooks/useSCFetchTag.js.map +0 -1
- package/lib/esm/hooks/useSCFetchUser.d.ts.map +0 -1
- package/lib/esm/hooks/useSCFetchUser.js.map +0 -1
- package/lib/esm/hooks/useSCFetchUserProviders.d.ts.map +0 -1
- package/lib/esm/hooks/useSCFetchUserProviders.js.map +0 -1
- package/lib/esm/hooks/useSCFetchVote.d.ts.map +0 -1
- package/lib/esm/hooks/useSCFetchVote.js.map +0 -1
- package/lib/esm/hooks/useSCFollowedCategoriesManager.d.ts.map +0 -1
- package/lib/esm/hooks/useSCFollowedCategoriesManager.js.map +0 -1
- package/lib/esm/hooks/useSCFollowedManager.d.ts.map +0 -1
- package/lib/esm/hooks/useSCFollowedManager.js.map +0 -1
- package/lib/esm/hooks/useSCFollowersManager.d.ts.map +0 -1
- package/lib/esm/hooks/useSCFollowersManager.js.map +0 -1
- package/lib/esm/hooks/useSCMediaClick.d.ts.map +0 -1
- package/lib/esm/hooks/useSCMediaClick.js.map +0 -1
- package/lib/esm/hooks/useSCSettingsManager.d.ts.map +0 -1
- package/lib/esm/hooks/useSCSettingsManager.js.map +0 -1
- package/lib/esm/hooks/useSCSubscribedIncubatorsManager.d.ts.map +0 -1
- package/lib/esm/hooks/useSCSubscribedIncubatorsManager.js.map +0 -1
- package/lib/esm/hooks/useSCWebPushMessaging.d.ts.map +0 -1
- package/lib/esm/hooks/useSCWebPushMessaging.js.map +0 -1
- package/lib/esm/hooks/useSCWebSocket.d.ts.map +0 -1
- package/lib/esm/hooks/useSCWebSocket.js.map +0 -1
- package/lib/esm/index.d.ts.map +0 -1
- package/lib/esm/index.js.map +0 -1
- package/lib/esm/themes/theme.d.ts.map +0 -1
- package/lib/esm/themes/theme.js.map +0 -1
- package/lib/esm/types/context.d.ts.map +0 -1
- package/lib/esm/types/context.js.map +0 -1
- package/lib/esm/types/index.d.ts.map +0 -1
- package/lib/esm/types/index.js.map +0 -1
- package/lib/esm/types/theme.d.ts.map +0 -1
- package/lib/esm/types/theme.js.map +0 -1
- package/lib/esm/utils/errors.d.ts.map +0 -1
- package/lib/esm/utils/errors.js.map +0 -1
- package/lib/esm/utils/hooks/index.d.ts.map +0 -1
- package/lib/esm/utils/hooks/index.js.map +0 -1
- package/lib/esm/utils/hooks/useEffectOnce.d.ts.map +0 -1
- package/lib/esm/utils/hooks/useEffectOnce.js.map +0 -1
- package/lib/esm/utils/hooks/useIsComponentMountedRef.d.ts.map +0 -1
- package/lib/esm/utils/hooks/useIsComponentMountedRef.js.map +0 -1
- package/lib/esm/utils/hooks/useIsomorphicLayoutEffect.d.ts.map +0 -1
- package/lib/esm/utils/hooks/useIsomorphicLayoutEffect.js.map +0 -1
- package/lib/esm/utils/hooks/useNoInitialEffect.d.ts.map +0 -1
- package/lib/esm/utils/hooks/useNoInitialEffect.js.map +0 -1
- package/lib/esm/utils/hooks/usePreviousValue.d.ts.map +0 -1
- package/lib/esm/utils/hooks/usePreviousValue.js.map +0 -1
- package/lib/esm/utils/locale.d.ts.map +0 -1
- package/lib/esm/utils/locale.js.map +0 -1
- package/lib/esm/utils/pagination.d.ts.map +0 -1
- package/lib/esm/utils/pagination.js.map +0 -1
- package/lib/esm/utils/user.d.ts.map +0 -1
- package/lib/esm/utils/user.js.map +0 -1
- package/lib/esm/utils/validator.d.ts.map +0 -1
- package/lib/esm/utils/validator.js.map +0 -1
package/lib/cjs/index.js
CHANGED
|
@@ -1,51 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
3
|
exports.useIsComponentMountedRef = exports.useSCFetchFeed = exports.useSCFetchContributors = exports.useSCMediaClick = exports.useSCFetchIncubator = exports.useSCFetchCategories = exports.useSCFetchCategory = exports.useSCFetchAddressingTagList = exports.useSCFetchTag = exports.useSCFetchCustomAdv = exports.useSCFetchCommentObjects = exports.useSCFetchCommentObject = exports.useSCFetchFeedObject = exports.useSCFetchVote = exports.useSCFetchUserProviders = exports.useSCFetchUser = exports.Locale = exports.UserUtils = exports.SCCache = exports.SCRoutes = exports.Link = exports.useSCAlertMessages = exports.SCAlertMessagesContext = exports.SCAlertMessagesProvider = exports.useSCNotification = exports.SCNotificationContext = exports.SCNotificationProvider = exports.SCNotification = exports.SCFeatures = exports.SCPreferences = exports.SCPreferencesProvider = exports.withSCLocale = exports.useSCLocale = exports.SCLocaleProvider = exports.useSCRouting = exports.SCRoutingProvider = exports.withSCTheme = exports.useSCTheme = exports.SCThemeProvider = exports.useSCPreferences = exports.useSCUser = exports.SCUserProvider = exports.SCContextProvider = exports.useSCContext = exports.SCPreferencesContext = exports.SCLocaleContext = exports.SCRoutingContext = exports.SCThemeContext = exports.SCUserContext = exports.SCContext = void 0;
|
|
30
|
-
exports.useSCFetchPrivateMessageSnippets = exports.useSCFetchReactions = exports.useNoInitialEffect = exports.useEffectOnce = exports.useIsomorphicLayoutEffect = exports.usePreviousValue = void 0;
|
|
4
|
+
exports.useSCUserIsBlocked = exports.useSCFetchUserBlockedBy = exports.useSCFetchBroadcastMessages = exports.useSCFetchPrivateMessageSnippets = exports.useSCFetchReactions = exports.useNoInitialEffect = exports.useEffectOnce = exports.useIsomorphicLayoutEffect = exports.usePreviousValue = void 0;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
31
6
|
/**
|
|
32
7
|
* ContextProvider component
|
|
33
8
|
*/
|
|
34
|
-
const SCContextProvider_1 = __importStar(require("./components/provider/SCContextProvider"));
|
|
9
|
+
const SCContextProvider_1 = tslib_1.__importStar(require("./components/provider/SCContextProvider"));
|
|
35
10
|
exports.SCContextProvider = SCContextProvider_1.default;
|
|
36
11
|
Object.defineProperty(exports, "SCContext", { enumerable: true, get: function () { return SCContextProvider_1.SCContext; } });
|
|
37
12
|
Object.defineProperty(exports, "useSCContext", { enumerable: true, get: function () { return SCContextProvider_1.useSCContext; } });
|
|
38
13
|
/**
|
|
39
14
|
* AuthProvider component
|
|
40
15
|
*/
|
|
41
|
-
const SCUserProvider_1 = __importStar(require("./components/provider/SCUserProvider"));
|
|
16
|
+
const SCUserProvider_1 = tslib_1.__importStar(require("./components/provider/SCUserProvider"));
|
|
42
17
|
exports.SCUserProvider = SCUserProvider_1.default;
|
|
43
18
|
Object.defineProperty(exports, "SCUserContext", { enumerable: true, get: function () { return SCUserProvider_1.SCUserContext; } });
|
|
44
19
|
Object.defineProperty(exports, "useSCUser", { enumerable: true, get: function () { return SCUserProvider_1.useSCUser; } });
|
|
45
20
|
/**
|
|
46
21
|
* ThemeProvider component
|
|
47
22
|
*/
|
|
48
|
-
const SCThemeProvider_1 = __importStar(require("./components/provider/SCThemeProvider"));
|
|
23
|
+
const SCThemeProvider_1 = tslib_1.__importStar(require("./components/provider/SCThemeProvider"));
|
|
49
24
|
exports.SCThemeProvider = SCThemeProvider_1.default;
|
|
50
25
|
Object.defineProperty(exports, "SCThemeContext", { enumerable: true, get: function () { return SCThemeProvider_1.SCThemeContext; } });
|
|
51
26
|
Object.defineProperty(exports, "useSCTheme", { enumerable: true, get: function () { return SCThemeProvider_1.useSCTheme; } });
|
|
@@ -53,14 +28,14 @@ Object.defineProperty(exports, "withSCTheme", { enumerable: true, get: function
|
|
|
53
28
|
/**
|
|
54
29
|
* RoutingProvider component
|
|
55
30
|
*/
|
|
56
|
-
const SCRoutingProvider_1 = __importStar(require("./components/provider/SCRoutingProvider"));
|
|
31
|
+
const SCRoutingProvider_1 = tslib_1.__importStar(require("./components/provider/SCRoutingProvider"));
|
|
57
32
|
exports.SCRoutingProvider = SCRoutingProvider_1.default;
|
|
58
33
|
Object.defineProperty(exports, "SCRoutingContext", { enumerable: true, get: function () { return SCRoutingProvider_1.SCRoutingContext; } });
|
|
59
34
|
Object.defineProperty(exports, "useSCRouting", { enumerable: true, get: function () { return SCRoutingProvider_1.useSCRouting; } });
|
|
60
35
|
/**
|
|
61
36
|
* LocaleProvider component
|
|
62
37
|
*/
|
|
63
|
-
const SCLocaleProvider_1 = __importStar(require("./components/provider/SCLocaleProvider"));
|
|
38
|
+
const SCLocaleProvider_1 = tslib_1.__importStar(require("./components/provider/SCLocaleProvider"));
|
|
64
39
|
exports.SCLocaleProvider = SCLocaleProvider_1.default;
|
|
65
40
|
Object.defineProperty(exports, "SCLocaleContext", { enumerable: true, get: function () { return SCLocaleProvider_1.SCLocaleContext; } });
|
|
66
41
|
Object.defineProperty(exports, "useSCLocale", { enumerable: true, get: function () { return SCLocaleProvider_1.useSCLocale; } });
|
|
@@ -68,81 +43,87 @@ Object.defineProperty(exports, "withSCLocale", { enumerable: true, get: function
|
|
|
68
43
|
/**
|
|
69
44
|
* NotificationProvider component
|
|
70
45
|
*/
|
|
71
|
-
const SCNotificationProvider_1 = __importStar(require("./components/provider/SCNotificationProvider"));
|
|
46
|
+
const SCNotificationProvider_1 = tslib_1.__importStar(require("./components/provider/SCNotificationProvider"));
|
|
72
47
|
exports.SCNotificationProvider = SCNotificationProvider_1.default;
|
|
73
48
|
Object.defineProperty(exports, "SCNotificationContext", { enumerable: true, get: function () { return SCNotificationProvider_1.SCNotificationContext; } });
|
|
74
49
|
Object.defineProperty(exports, "useSCNotification", { enumerable: true, get: function () { return SCNotificationProvider_1.useSCNotification; } });
|
|
75
50
|
/**
|
|
76
51
|
* AlertMessagesProvider component
|
|
77
52
|
*/
|
|
78
|
-
const SCAlertMessagesProvider_1 = __importStar(require("./components/provider/SCAlertMessagesProvider"));
|
|
53
|
+
const SCAlertMessagesProvider_1 = tslib_1.__importStar(require("./components/provider/SCAlertMessagesProvider"));
|
|
79
54
|
exports.SCAlertMessagesProvider = SCAlertMessagesProvider_1.default;
|
|
80
55
|
Object.defineProperty(exports, "SCAlertMessagesContext", { enumerable: true, get: function () { return SCAlertMessagesProvider_1.SCAlertMessagesContext; } });
|
|
81
56
|
Object.defineProperty(exports, "useSCAlertMessages", { enumerable: true, get: function () { return SCAlertMessagesProvider_1.useSCAlertMessages; } });
|
|
82
57
|
/**
|
|
83
58
|
* PreferencesProvider component
|
|
84
59
|
*/
|
|
85
|
-
const SCPreferencesProvider_1 = __importStar(require("./components/provider/SCPreferencesProvider"));
|
|
60
|
+
const SCPreferencesProvider_1 = tslib_1.__importStar(require("./components/provider/SCPreferencesProvider"));
|
|
86
61
|
exports.SCPreferencesProvider = SCPreferencesProvider_1.default;
|
|
87
62
|
Object.defineProperty(exports, "SCPreferencesContext", { enumerable: true, get: function () { return SCPreferencesProvider_1.SCPreferencesContext; } });
|
|
88
63
|
Object.defineProperty(exports, "useSCPreferences", { enumerable: true, get: function () { return SCPreferencesProvider_1.useSCPreferences; } });
|
|
89
|
-
const SCPreferences = __importStar(require("./constants/Preferences"));
|
|
64
|
+
const SCPreferences = tslib_1.__importStar(require("./constants/Preferences"));
|
|
90
65
|
exports.SCPreferences = SCPreferences;
|
|
91
|
-
const SCFeatures = __importStar(require("./constants/Features"));
|
|
66
|
+
const SCFeatures = tslib_1.__importStar(require("./constants/Features"));
|
|
92
67
|
exports.SCFeatures = SCFeatures;
|
|
93
|
-
const SCNotification = __importStar(require("./constants/Notification"));
|
|
68
|
+
const SCNotification = tslib_1.__importStar(require("./constants/Notification"));
|
|
94
69
|
exports.SCNotification = SCNotification;
|
|
95
|
-
const SCCache = __importStar(require("./constants/Cache"));
|
|
70
|
+
const SCCache = tslib_1.__importStar(require("./constants/Cache"));
|
|
96
71
|
exports.SCCache = SCCache;
|
|
97
72
|
/**
|
|
98
73
|
* Custom Hooks
|
|
99
74
|
*/
|
|
100
|
-
const useSCFetchUser_1 = __importDefault(require("./hooks/useSCFetchUser"));
|
|
75
|
+
const useSCFetchUser_1 = tslib_1.__importDefault(require("./hooks/useSCFetchUser"));
|
|
101
76
|
exports.useSCFetchUser = useSCFetchUser_1.default;
|
|
102
|
-
const useSCFetchUserProviders_1 = __importDefault(require("./hooks/useSCFetchUserProviders"));
|
|
77
|
+
const useSCFetchUserProviders_1 = tslib_1.__importDefault(require("./hooks/useSCFetchUserProviders"));
|
|
103
78
|
exports.useSCFetchUserProviders = useSCFetchUserProviders_1.default;
|
|
104
|
-
const useSCFetchVote_1 = __importDefault(require("./hooks/useSCFetchVote"));
|
|
79
|
+
const useSCFetchVote_1 = tslib_1.__importDefault(require("./hooks/useSCFetchVote"));
|
|
105
80
|
exports.useSCFetchVote = useSCFetchVote_1.default;
|
|
106
|
-
const useSCFetchFeedObject_1 = __importDefault(require("./hooks/useSCFetchFeedObject"));
|
|
81
|
+
const useSCFetchFeedObject_1 = tslib_1.__importDefault(require("./hooks/useSCFetchFeedObject"));
|
|
107
82
|
exports.useSCFetchFeedObject = useSCFetchFeedObject_1.default;
|
|
108
|
-
const useSCFetchCommentObject_1 = __importDefault(require("./hooks/useSCFetchCommentObject"));
|
|
83
|
+
const useSCFetchCommentObject_1 = tslib_1.__importDefault(require("./hooks/useSCFetchCommentObject"));
|
|
109
84
|
exports.useSCFetchCommentObject = useSCFetchCommentObject_1.default;
|
|
110
|
-
const useSCFetchCommentObjects_1 = __importDefault(require("./hooks/useSCFetchCommentObjects"));
|
|
85
|
+
const useSCFetchCommentObjects_1 = tslib_1.__importDefault(require("./hooks/useSCFetchCommentObjects"));
|
|
111
86
|
exports.useSCFetchCommentObjects = useSCFetchCommentObjects_1.default;
|
|
112
|
-
const useSCFetchCustomAdv_1 = __importDefault(require("./hooks/useSCFetchCustomAdv"));
|
|
87
|
+
const useSCFetchCustomAdv_1 = tslib_1.__importDefault(require("./hooks/useSCFetchCustomAdv"));
|
|
113
88
|
exports.useSCFetchCustomAdv = useSCFetchCustomAdv_1.default;
|
|
114
|
-
const useSCFetchTag_1 = __importDefault(require("./hooks/useSCFetchTag"));
|
|
89
|
+
const useSCFetchTag_1 = tslib_1.__importDefault(require("./hooks/useSCFetchTag"));
|
|
115
90
|
exports.useSCFetchTag = useSCFetchTag_1.default;
|
|
116
|
-
const useSCFetchAddressingTagList_1 = __importDefault(require("./hooks/useSCFetchAddressingTagList"));
|
|
91
|
+
const useSCFetchAddressingTagList_1 = tslib_1.__importDefault(require("./hooks/useSCFetchAddressingTagList"));
|
|
117
92
|
exports.useSCFetchAddressingTagList = useSCFetchAddressingTagList_1.default;
|
|
118
|
-
const useSCFetchCategory_1 = __importDefault(require("./hooks/useSCFetchCategory"));
|
|
93
|
+
const useSCFetchCategory_1 = tslib_1.__importDefault(require("./hooks/useSCFetchCategory"));
|
|
119
94
|
exports.useSCFetchCategory = useSCFetchCategory_1.default;
|
|
120
|
-
const useSCFetchCategories_1 = __importDefault(require("./hooks/useSCFetchCategories"));
|
|
95
|
+
const useSCFetchCategories_1 = tslib_1.__importDefault(require("./hooks/useSCFetchCategories"));
|
|
121
96
|
exports.useSCFetchCategories = useSCFetchCategories_1.default;
|
|
122
|
-
const useSCFetchIncubator_1 = __importDefault(require("./hooks/useSCFetchIncubator"));
|
|
97
|
+
const useSCFetchIncubator_1 = tslib_1.__importDefault(require("./hooks/useSCFetchIncubator"));
|
|
123
98
|
exports.useSCFetchIncubator = useSCFetchIncubator_1.default;
|
|
124
|
-
const useSCMediaClick_1 = __importDefault(require("./hooks/useSCMediaClick"));
|
|
99
|
+
const useSCMediaClick_1 = tslib_1.__importDefault(require("./hooks/useSCMediaClick"));
|
|
125
100
|
exports.useSCMediaClick = useSCMediaClick_1.default;
|
|
126
|
-
const useSCFetchContributors_1 = __importDefault(require("./hooks/useSCFetchContributors"));
|
|
101
|
+
const useSCFetchContributors_1 = tslib_1.__importDefault(require("./hooks/useSCFetchContributors"));
|
|
127
102
|
exports.useSCFetchContributors = useSCFetchContributors_1.default;
|
|
128
|
-
const useSCFetchFeed_1 = __importDefault(require("./hooks/useSCFetchFeed"));
|
|
103
|
+
const useSCFetchFeed_1 = tslib_1.__importDefault(require("./hooks/useSCFetchFeed"));
|
|
129
104
|
exports.useSCFetchFeed = useSCFetchFeed_1.default;
|
|
130
|
-
const useSCFetchReactions_1 = __importDefault(require("./hooks/useSCFetchReactions"));
|
|
105
|
+
const useSCFetchReactions_1 = tslib_1.__importDefault(require("./hooks/useSCFetchReactions"));
|
|
131
106
|
exports.useSCFetchReactions = useSCFetchReactions_1.default;
|
|
132
|
-
const useSCFetchPrivateMessageSnippets_1 = __importDefault(require("./hooks/useSCFetchPrivateMessageSnippets"));
|
|
107
|
+
const useSCFetchPrivateMessageSnippets_1 = tslib_1.__importDefault(require("./hooks/useSCFetchPrivateMessageSnippets"));
|
|
133
108
|
exports.useSCFetchPrivateMessageSnippets = useSCFetchPrivateMessageSnippets_1.default;
|
|
109
|
+
const useSCFetchBroadcastMessages_1 = tslib_1.__importDefault(require("./hooks/useSCFetchBroadcastMessages"));
|
|
110
|
+
exports.useSCFetchBroadcastMessages = useSCFetchBroadcastMessages_1.default;
|
|
111
|
+
const useSCFetchUserBlockedBy_1 = tslib_1.__importDefault(require("./hooks/useSCFetchUserBlockedBy"));
|
|
112
|
+
exports.useSCFetchUserBlockedBy = useSCFetchUserBlockedBy_1.default;
|
|
113
|
+
const useSCUserIsBlocked_1 = tslib_1.__importDefault(require("./hooks/useSCUserIsBlocked"));
|
|
114
|
+
exports.useSCUserIsBlocked = useSCUserIsBlocked_1.default;
|
|
134
115
|
/**
|
|
135
116
|
* Routing component
|
|
136
117
|
*/
|
|
137
|
-
const router_1 = __importDefault(require("./components/router"));
|
|
118
|
+
const router_1 = tslib_1.__importDefault(require("./components/router"));
|
|
138
119
|
exports.Link = router_1.default;
|
|
139
|
-
const SCRoutes = __importStar(require("./constants/Routes"));
|
|
120
|
+
const SCRoutes = tslib_1.__importStar(require("./constants/Routes"));
|
|
140
121
|
exports.SCRoutes = SCRoutes;
|
|
141
122
|
/**
|
|
142
123
|
* Utilities:
|
|
143
124
|
* User, hooks (useIsComponentMountedRef)
|
|
144
125
|
*/
|
|
145
|
-
const UserUtils = __importStar(require("./utils/user"));
|
|
126
|
+
const UserUtils = tslib_1.__importStar(require("./utils/user"));
|
|
146
127
|
exports.UserUtils = UserUtils;
|
|
147
128
|
const hooks_1 = require("./utils/hooks");
|
|
148
129
|
Object.defineProperty(exports, "useIsComponentMountedRef", { enumerable: true, get: function () { return hooks_1.useIsComponentMountedRef; } });
|
|
@@ -154,6 +135,5 @@ Object.defineProperty(exports, "useNoInitialEffect", { enumerable: true, get: fu
|
|
|
154
135
|
* Constants:
|
|
155
136
|
* Locale
|
|
156
137
|
*/
|
|
157
|
-
const Locale = __importStar(require("./constants/Locale"));
|
|
138
|
+
const Locale = tslib_1.__importStar(require("./constants/Locale"));
|
|
158
139
|
exports.Locale = Locale;
|
|
159
|
-
//# sourceMappingURL=index.js.map
|
package/lib/cjs/themes/theme.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const createTheme_1 = tslib_1.__importDefault(require("@mui/material/styles/createTheme"));
|
|
7
5
|
const utils_1 = require("@selfcommunity/utils");
|
|
8
|
-
const validate_color_1 = __importDefault(require("validate-color"));
|
|
6
|
+
const validate_color_1 = tslib_1.__importDefault(require("validate-color"));
|
|
9
7
|
const Preferences_1 = require("../constants/Preferences");
|
|
10
8
|
const utils_2 = require("@selfcommunity/utils");
|
|
11
9
|
/**
|
|
@@ -50,82 +48,8 @@ const getTheme = (options, preferences) => {
|
|
|
50
48
|
? {
|
|
51
49
|
palette: Object.assign(Object.assign(Object.assign(Object.assign({}, (isValidPreference(preferences, Preferences_1.COLORS_COLORBACK, validate_color_1.default) && { background: { default: preferences[Preferences_1.COLORS_COLORBACK].value } })), (isValidPreference(preferences, Preferences_1.COLORS_COLORFONT, validate_color_1.default) && { text: { primary: preferences[Preferences_1.COLORS_COLORFONT].value } })), (isValidPreference(preferences, Preferences_1.COLORS_COLORPRIMARY, validate_color_1.default) && { primary: { main: preferences[Preferences_1.COLORS_COLORPRIMARY].value } })), (isValidPreference(preferences, Preferences_1.COLORS_COLORSECONDARY, validate_color_1.default) && Object.assign({ secondary: { main: preferences[Preferences_1.COLORS_COLORSECONDARY].value } }, (isValidPreference(preferences, Preferences_1.COLORS_NAVBARBACK, validate_color_1.default) && { navbar: { main: preferences[Preferences_1.COLORS_NAVBARBACK].value } })))),
|
|
52
50
|
typography: Object.assign({}, (isValidPreference(preferences, Preferences_1.STYLE_FONT_FAMILY, utils_2.isString) && { fontFamily: preferences[Preferences_1.STYLE_FONT_FAMILY].value })),
|
|
53
|
-
components: {
|
|
54
|
-
MuiPaper: {
|
|
55
|
-
// styleOverrides: {
|
|
56
|
-
// rounded: {
|
|
57
|
-
// borderRadius: 3,
|
|
58
|
-
// },
|
|
59
|
-
// },
|
|
60
|
-
},
|
|
61
|
-
SCWidget: {
|
|
62
|
-
// variants: [
|
|
63
|
-
// {
|
|
64
|
-
// props: {elevation: 0},
|
|
65
|
-
// style: {
|
|
66
|
-
// border: 0,
|
|
67
|
-
// boxShadow: 'none',
|
|
68
|
-
// marginBottom: '0 !important',
|
|
69
|
-
// },
|
|
70
|
-
// },
|
|
71
|
-
// {
|
|
72
|
-
// props: {variant: 'outlined'},
|
|
73
|
-
// style: {
|
|
74
|
-
// border: '1px solid rgba(0, 0, 0, 0.12)',
|
|
75
|
-
// boxShadow: 'none',
|
|
76
|
-
// },
|
|
77
|
-
// },
|
|
78
|
-
// ],
|
|
79
|
-
// styleOverrides: {
|
|
80
|
-
// root: {
|
|
81
|
-
// border: '0 none',
|
|
82
|
-
// boxShadow: '0px 5px 20px rgba(0, 0, 0, 0.1)',
|
|
83
|
-
// borderRadius: '15px',
|
|
84
|
-
// },
|
|
85
|
-
// },
|
|
86
|
-
},
|
|
87
|
-
SCNotificationItem: {
|
|
88
|
-
// styleOverrides: {
|
|
89
|
-
// root: {
|
|
90
|
-
// '&.SCNotificationItem-new-snippet': {
|
|
91
|
-
// '&::before': {
|
|
92
|
-
// backgroundColor: 'yellow',
|
|
93
|
-
// },
|
|
94
|
-
// },
|
|
95
|
-
// },
|
|
96
|
-
// },
|
|
97
|
-
},
|
|
98
|
-
SCSnippetNotifications: {
|
|
99
|
-
styleOverrides: {
|
|
100
|
-
root: {
|
|
101
|
-
'& .SCSnippetNotifications-list': {
|
|
102
|
-
// wrap notifications list (ul)
|
|
103
|
-
},
|
|
104
|
-
'& .SCSnippetNotifications-item': {
|
|
105
|
-
// single notification item (li)
|
|
106
|
-
},
|
|
107
|
-
['& .SCUserFollowNotification-username, .SCUserFollowNotification-username, .SCCommentNotification-username,' +
|
|
108
|
-
'SCContributionFollowNotification-username, .SCContributionFollowNotification-username, .SCUserNotificationMention-username,' +
|
|
109
|
-
'.SCUserNotificationMention-username, .SCUserNotificationPrivateMessage-message-sender, .SCVoteUpNotification-username']: {
|
|
110
|
-
// username for notification types: user follow, comment/nested comment,
|
|
111
|
-
// follow contribution, mention, private message, vote up
|
|
112
|
-
},
|
|
113
|
-
['& .SCUserFollowNotification-list-item-snippet-new, .SCVoteUpNotification-list-item-snippet-new, ' +
|
|
114
|
-
'.SCUserBlockedNotification-list-item-snippet-new, .SCUndeletedForNotification-list-item-snippet-new, ' +
|
|
115
|
-
'.SCUserNotificationPrivateMessage-list-item-snippet-new, .SCUserNotificationMention-list-item-snippet-new,' +
|
|
116
|
-
'.SCKindlyNoticeForNotification-list-item-snippet-new, .SCKindlyNoticeFlagNotification-list-item-snippet-new,' +
|
|
117
|
-
'.SCIncubatorApprovedNotification-list-item-snippet-new, .SCDeletedForNotification-list-item-snippet-new,' +
|
|
118
|
-
'.SCContributionFollowNotification-list-item-snippet-new, .SCCommentNotification-list-item-snippet-new,' +
|
|
119
|
-
'.SCCollapsedForNotification-list-item-snippet-new']: {
|
|
120
|
-
// border left indicate new notification of various type
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
},
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
51
|
}
|
|
127
52
|
: {};
|
|
128
|
-
return (0,
|
|
53
|
+
return (0, createTheme_1.default)((0, utils_1.mergeDeep)(Object.assign({ selfcommunity }, defaultOptions), options));
|
|
129
54
|
};
|
|
130
55
|
exports.default = getTheme;
|
|
131
|
-
//# sourceMappingURL=theme.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import { SCAuthTokenType, SCIncubatorType, SCCategoryType, SCUserType, SCUserSettingsType } from
|
|
2
|
+
import { SCAuthTokenType, SCIncubatorType, SCCategoryType, SCUserType, SCUserSettingsType, SCReactionType } from "@selfcommunity/types";
|
|
3
3
|
import { SCThemeType } from './theme';
|
|
4
4
|
/**
|
|
5
5
|
* Interface SCSettingsType
|
|
@@ -28,7 +28,11 @@ export interface SCSettingsType {
|
|
|
28
28
|
/**
|
|
29
29
|
* Object conf of preferences.
|
|
30
30
|
*/
|
|
31
|
-
preferences?:
|
|
31
|
+
preferences?: SCPreferencesType;
|
|
32
|
+
/**
|
|
33
|
+
* Vote conf
|
|
34
|
+
*/
|
|
35
|
+
vote?: SCVoteType;
|
|
32
36
|
/**
|
|
33
37
|
* Object conf of notification.
|
|
34
38
|
*/
|
|
@@ -60,6 +64,28 @@ export interface SCLocaleType {
|
|
|
60
64
|
*/
|
|
61
65
|
messages?: Record<string, any>;
|
|
62
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Interface SCPreferencesType
|
|
69
|
+
*/
|
|
70
|
+
export interface SCPreferencesType {
|
|
71
|
+
/**
|
|
72
|
+
* List of all community preferences
|
|
73
|
+
*/
|
|
74
|
+
preferences: Record<string, any>;
|
|
75
|
+
/**
|
|
76
|
+
* List of all community enabled features
|
|
77
|
+
*/
|
|
78
|
+
features: string[];
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Interface SCVoteType
|
|
82
|
+
*/
|
|
83
|
+
export interface SCVoteType {
|
|
84
|
+
/**
|
|
85
|
+
* List of all reactions
|
|
86
|
+
*/
|
|
87
|
+
reactions: SCReactionType[];
|
|
88
|
+
}
|
|
63
89
|
/**
|
|
64
90
|
* Interface SCUserContextType
|
|
65
91
|
*/
|
|
@@ -102,9 +128,9 @@ export interface SCUserContextType {
|
|
|
102
128
|
setUnseenNotificationBannersCounter: (counter: number) => void;
|
|
103
129
|
/**
|
|
104
130
|
* Handle refresh user notification counters
|
|
105
|
-
* Interactions, BroadcastMessages
|
|
131
|
+
* Interactions, BroadcastMessages, Followers, Followings, Categories, etc.
|
|
106
132
|
*/
|
|
107
|
-
|
|
133
|
+
refreshCounters: () => Promise<any>;
|
|
108
134
|
/**
|
|
109
135
|
* Managers: followed, connections, categories, incubators, etc...
|
|
110
136
|
*/
|
|
@@ -115,6 +141,7 @@ export interface SCUserContextType {
|
|
|
115
141
|
connections?: SCConnectionsManagerType;
|
|
116
142
|
categories: SCFollowedCategoriesManagerType;
|
|
117
143
|
incubators?: SCSubscribedIncubatorsManagerType;
|
|
144
|
+
blockedUsers?: SCBlockedUsersManagerType;
|
|
118
145
|
};
|
|
119
146
|
}
|
|
120
147
|
export interface SCSettingsManagerType {
|
|
@@ -238,6 +265,14 @@ export interface SCConnectionsManagerType {
|
|
|
238
265
|
* Handle request connection
|
|
239
266
|
*/
|
|
240
267
|
requestConnection?: (user: SCUserType) => Promise<any>;
|
|
268
|
+
/**
|
|
269
|
+
* Handle cancel request connection
|
|
270
|
+
*/
|
|
271
|
+
cancelRequestConnection?: (user: SCUserType) => Promise<any>;
|
|
272
|
+
/**
|
|
273
|
+
* Handle remove connection
|
|
274
|
+
*/
|
|
275
|
+
removeConnection?: (user: SCUserType) => Promise<any>;
|
|
241
276
|
/**
|
|
242
277
|
* Handle accept connection
|
|
243
278
|
*/
|
|
@@ -255,6 +290,32 @@ export interface SCConnectionsManagerType {
|
|
|
255
290
|
*/
|
|
256
291
|
emptyCache?: () => void;
|
|
257
292
|
}
|
|
293
|
+
export interface SCBlockedUsersManagerType {
|
|
294
|
+
/**
|
|
295
|
+
* List of all blocked users
|
|
296
|
+
*/
|
|
297
|
+
blocked: number[];
|
|
298
|
+
/**
|
|
299
|
+
* Loading state
|
|
300
|
+
*/
|
|
301
|
+
loading: boolean;
|
|
302
|
+
/**
|
|
303
|
+
* List of current user in loading state
|
|
304
|
+
*/
|
|
305
|
+
isLoading: () => boolean;
|
|
306
|
+
/**
|
|
307
|
+
* Handle user block/unblock
|
|
308
|
+
*/
|
|
309
|
+
block?: (user: SCUserType) => Promise<any>;
|
|
310
|
+
/**
|
|
311
|
+
* Handle check if a user is blocked
|
|
312
|
+
*/
|
|
313
|
+
isBlocked?: (user: SCUserType) => boolean;
|
|
314
|
+
/**
|
|
315
|
+
* Refresh blocked user list
|
|
316
|
+
*/
|
|
317
|
+
refresh?: () => Promise<any>;
|
|
318
|
+
}
|
|
258
319
|
export interface SCSubscribedIncubatorsManagerType {
|
|
259
320
|
/**
|
|
260
321
|
* List of all incubators ids subscribed by the authenticated user
|
|
@@ -337,7 +398,7 @@ export interface SCContextProviderType {
|
|
|
337
398
|
children: ReactNode;
|
|
338
399
|
}
|
|
339
400
|
/**
|
|
340
|
-
* Interface
|
|
401
|
+
* Interface SCPreferencesContextType
|
|
341
402
|
*/
|
|
342
403
|
export interface SCPreferencesContextType {
|
|
343
404
|
/**
|
|
@@ -349,6 +410,19 @@ export interface SCPreferencesContextType {
|
|
|
349
410
|
*/
|
|
350
411
|
features: string[];
|
|
351
412
|
}
|
|
413
|
+
/**
|
|
414
|
+
* Interface SCVoteContextType
|
|
415
|
+
*/
|
|
416
|
+
export interface SCVoteContextType {
|
|
417
|
+
/**
|
|
418
|
+
* List of all reactions
|
|
419
|
+
*/
|
|
420
|
+
reactions: SCReactionType[];
|
|
421
|
+
/**
|
|
422
|
+
* Refresh reactions
|
|
423
|
+
*/
|
|
424
|
+
refreshReactions: () => Promise<SCReactionType[]>;
|
|
425
|
+
}
|
|
352
426
|
/**
|
|
353
427
|
* Interface SCThemeContextType
|
|
354
428
|
*/
|
|
@@ -397,6 +471,10 @@ export interface SCNotificationsType {
|
|
|
397
471
|
* Web push messaging notification
|
|
398
472
|
*/
|
|
399
473
|
webPushMessaging?: SCNotificationsWebPushMessagingType;
|
|
474
|
+
/**
|
|
475
|
+
* Mobile native push messaging
|
|
476
|
+
*/
|
|
477
|
+
mobileNativePushMessaging?: SCNotificationsMobileNativePushMessagingType;
|
|
400
478
|
}
|
|
401
479
|
/**
|
|
402
480
|
* Interface SCNotificationsWebSocketType
|
|
@@ -430,6 +508,15 @@ export interface SCNotificationsWebPushMessagingType {
|
|
|
430
508
|
*/
|
|
431
509
|
applicationServerKey?: boolean;
|
|
432
510
|
}
|
|
511
|
+
/**
|
|
512
|
+
* Interface SCNotificationsMobileNativePushMessagingType
|
|
513
|
+
*/
|
|
514
|
+
export interface SCNotificationsMobileNativePushMessagingType {
|
|
515
|
+
/**
|
|
516
|
+
* Disable
|
|
517
|
+
*/
|
|
518
|
+
disable?: boolean;
|
|
519
|
+
}
|
|
433
520
|
/**
|
|
434
521
|
* Interface SCRoutingContextType
|
|
435
522
|
*/
|
|
@@ -459,6 +546,10 @@ export interface SCNotificationContextType {
|
|
|
459
546
|
* wp subscription
|
|
460
547
|
*/
|
|
461
548
|
wpSubscription: any;
|
|
549
|
+
/**
|
|
550
|
+
* mobile native push instance
|
|
551
|
+
*/
|
|
552
|
+
mnpmInstance?: any;
|
|
462
553
|
}
|
|
463
554
|
/**
|
|
464
555
|
* Interface SCLocaleContextType
|
|
@@ -490,4 +581,3 @@ export interface SCAlertMessagesContextType {
|
|
|
490
581
|
*/
|
|
491
582
|
setOptions: (options: any) => void;
|
|
492
583
|
}
|
|
493
|
-
//# sourceMappingURL=context.d.ts.map
|
package/lib/cjs/types/context.js
CHANGED
package/lib/cjs/types/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SCUserContextType, SCFollowedManagerType, SCFollowersManagerType, SCFollowedCategoriesManagerType, SCSettingsManagerType, SCSubscribedIncubatorsManagerType, SCConnectionsManagerType, SCContextProviderType, SCContextType, SCSettingsType, SCSessionType, SCPreferencesContextType, SCNotificationContextType, SCLocaleType, SCThemeContextType, SCRoutingContextType, SCLocaleContextType, SCAlertMessagesContextType } from './context';
|
|
1
|
+
import { SCUserContextType, SCFollowedManagerType, SCFollowersManagerType, SCFollowedCategoriesManagerType, SCSettingsManagerType, SCSubscribedIncubatorsManagerType, SCConnectionsManagerType, SCBlockedUsersManagerType, SCContextProviderType, SCContextType, SCSettingsType, SCSessionType, SCPreferencesContextType, SCNotificationContextType, SCLocaleType, SCVoteType, SCVoteContextType, SCThemeContextType, SCRoutingContextType, SCLocaleContextType, SCAlertMessagesContextType } from './context';
|
|
2
2
|
import { SCThemeAvatarVariableType, SCThemeUserVariableType, SCThemeCategoryIconVariableType, SCThemeCategoryVariableType, SCThemeVariablesType, SCThemeType } from './theme';
|
|
3
|
-
export { SCUserContextType, SCFollowedCategoriesManagerType, SCSettingsManagerType, SCContextProviderType, SCContextType, SCSettingsType, SCSessionType, SCFollowedManagerType, SCFollowersManagerType, SCConnectionsManagerType, SCSubscribedIncubatorsManagerType, SCLocaleType, SCNotificationContextType, SCPreferencesContextType, SCThemeContextType, SCRoutingContextType, SCLocaleContextType, SCAlertMessagesContextType, SCThemeAvatarVariableType, SCThemeUserVariableType, SCThemeCategoryIconVariableType, SCThemeCategoryVariableType, SCThemeVariablesType, SCThemeType, };
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
3
|
+
export { SCUserContextType, SCFollowedCategoriesManagerType, SCSettingsManagerType, SCContextProviderType, SCContextType, SCSettingsType, SCSessionType, SCFollowedManagerType, SCFollowersManagerType, SCConnectionsManagerType, SCBlockedUsersManagerType, SCSubscribedIncubatorsManagerType, SCLocaleType, SCVoteType, SCVoteContextType, SCNotificationContextType, SCPreferencesContextType, SCThemeContextType, SCRoutingContextType, SCLocaleContextType, SCAlertMessagesContextType, SCThemeAvatarVariableType, SCThemeUserVariableType, SCThemeCategoryIconVariableType, SCThemeCategoryVariableType, SCThemeVariablesType, SCThemeType, };
|
package/lib/cjs/types/index.js
CHANGED
package/lib/cjs/types/theme.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Theme as MuiTheme } from '@mui/material';
|
|
1
|
+
import { Theme as MuiTheme } from '@mui/material/styles/createTheme';
|
|
2
2
|
/**
|
|
3
3
|
* Interface SCThemeAvatarVariableType
|
|
4
4
|
*/
|
|
@@ -74,4 +74,3 @@ export interface SCThemeType extends MuiTheme {
|
|
|
74
74
|
**/
|
|
75
75
|
selfcommunity: SCThemeVariablesType;
|
|
76
76
|
}
|
|
77
|
-
//# sourceMappingURL=theme.d.ts.map
|
package/lib/cjs/types/theme.js
CHANGED
|
@@ -24,9 +24,14 @@ export declare class ValidationError {
|
|
|
24
24
|
static ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING: number;
|
|
25
25
|
static ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_DISABLE_TOAST_MESSAGE: number;
|
|
26
26
|
static ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_APPLICATION_SERVER_KEY: number;
|
|
27
|
+
static ERROR_INVALID_NOTIFICATIONS_MOBILE_PUSH_MESSAGING_DISABLE: number;
|
|
28
|
+
static ERROR_INVALID_NOTIFICATIONS_MOBILE_NATIVE_PUSH_MESSAGING: number;
|
|
27
29
|
static ERROR_INVALID_PREFERENCES: number;
|
|
28
30
|
static ERROR_INVALID_GLOBAL_PREFERENCES: number;
|
|
29
31
|
static ERROR_INVALID_PREFERENCES_FEATURES: number;
|
|
32
|
+
static ERROR_INVALID_VOTE: number;
|
|
33
|
+
static ERROR_INVALID_VOTE_REACTIONS: number;
|
|
34
|
+
static ERROR_INVALID_VOTE_REACTIONS_STRUCTURE: number;
|
|
30
35
|
static defaultErrorMessageMap: {
|
|
31
36
|
[x: number]: string;
|
|
32
37
|
};
|
|
@@ -95,9 +100,3 @@ export declare class ValidationResult {
|
|
|
95
100
|
*/
|
|
96
101
|
emit(): void;
|
|
97
102
|
}
|
|
98
|
-
/**
|
|
99
|
-
* Check if v is a func
|
|
100
|
-
* @param v
|
|
101
|
-
*/
|
|
102
|
-
export declare function isFunc(v: any): boolean;
|
|
103
|
-
//# sourceMappingURL=errors.d.ts.map
|
package/lib/cjs/utils/errors.js
CHANGED
|
@@ -1,31 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
3
|
+
exports.ValidationResult = exports.ValidationWarnings = exports.ValidationError = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
27
5
|
const Locale_1 = require("../constants/Locale");
|
|
28
|
-
const Session = __importStar(require("../constants/Session"));
|
|
6
|
+
const Session = tslib_1.__importStar(require("../constants/Session"));
|
|
29
7
|
const utils_1 = require("@selfcommunity/utils");
|
|
30
8
|
/**
|
|
31
9
|
* Manage Validation Error
|
|
@@ -63,9 +41,14 @@ ValidationError.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET_SECURE = 4903;
|
|
|
63
41
|
ValidationError.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING = 4921;
|
|
64
42
|
ValidationError.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_DISABLE_TOAST_MESSAGE = 4922;
|
|
65
43
|
ValidationError.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_APPLICATION_SERVER_KEY = 4923;
|
|
44
|
+
ValidationError.ERROR_INVALID_NOTIFICATIONS_MOBILE_PUSH_MESSAGING_DISABLE = 4924;
|
|
45
|
+
ValidationError.ERROR_INVALID_NOTIFICATIONS_MOBILE_NATIVE_PUSH_MESSAGING = 4931;
|
|
66
46
|
ValidationError.ERROR_INVALID_PREFERENCES = 5000;
|
|
67
47
|
ValidationError.ERROR_INVALID_GLOBAL_PREFERENCES = 5001;
|
|
68
48
|
ValidationError.ERROR_INVALID_PREFERENCES_FEATURES = 5002;
|
|
49
|
+
ValidationError.ERROR_INVALID_VOTE = 6000;
|
|
50
|
+
ValidationError.ERROR_INVALID_VOTE_REACTIONS = 6001;
|
|
51
|
+
ValidationError.ERROR_INVALID_VOTE_REACTIONS_STRUCTURE = 6002;
|
|
69
52
|
ValidationError.defaultErrorMessageMap = {
|
|
70
53
|
[ValidationError.ERROR_INVALID_CONF]: 'Invalid or missing library configuration. Check the configuration that is passed to the SCContextProvider.',
|
|
71
54
|
[ValidationError.ERROR_INVALID_SESSION]: 'Invalid session format.',
|
|
@@ -88,9 +71,14 @@ ValidationError.defaultErrorMessageMap = {
|
|
|
88
71
|
[ValidationError.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING]: 'Invalid notifications (web push messaging) option.',
|
|
89
72
|
[ValidationError.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_DISABLE_TOAST_MESSAGE]: "Invalid notifications web push messaging option. 'disableToastMessage' must be a boolean value.",
|
|
90
73
|
[ValidationError.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_APPLICATION_SERVER_KEY]: "Invalid notifications web push messaging option. 'applicationServerKey' must be a string value.",
|
|
74
|
+
[ValidationError.ERROR_INVALID_NOTIFICATIONS_MOBILE_NATIVE_PUSH_MESSAGING]: 'Invalid notifications (mobile native push messaging) option.',
|
|
75
|
+
[ValidationError.ERROR_INVALID_NOTIFICATIONS_MOBILE_PUSH_MESSAGING_DISABLE]: "Invalid notifications mobile native push messaging option. 'disable' must be a boolean value.",
|
|
91
76
|
[ValidationError.ERROR_INVALID_PREFERENCES]: 'Invalid preferences option.',
|
|
92
77
|
[ValidationError.ERROR_INVALID_GLOBAL_PREFERENCES]: "Invalid preferences option. 'preferences' inside preferences must be a valid array of global preferences.",
|
|
93
78
|
[ValidationError.ERROR_INVALID_PREFERENCES_FEATURES]: "Invalid preferences option. 'features' must be a valid array of features.",
|
|
79
|
+
[ValidationError.ERROR_INVALID_VOTE]: 'Invalid vote option.',
|
|
80
|
+
[ValidationError.ERROR_INVALID_VOTE_REACTIONS]: "Invalid vote option. 'reactions' must be a valid array of reaction objects.",
|
|
81
|
+
[ValidationError.ERROR_INVALID_VOTE_REACTIONS_STRUCTURE]: "Invalid vote option. 'reactions' must be a valid array of reaction with attributes (id, label, sentiment, image, active).",
|
|
94
82
|
};
|
|
95
83
|
/**
|
|
96
84
|
* Manage Validation Warnings
|
|
@@ -184,12 +172,3 @@ class ValidationResult {
|
|
|
184
172
|
}
|
|
185
173
|
}
|
|
186
174
|
exports.ValidationResult = ValidationResult;
|
|
187
|
-
/**
|
|
188
|
-
* Check if v is a func
|
|
189
|
-
* @param v
|
|
190
|
-
*/
|
|
191
|
-
function isFunc(v) {
|
|
192
|
-
return typeof v === 'function';
|
|
193
|
-
}
|
|
194
|
-
exports.isFunc = isFunc;
|
|
195
|
-
//# sourceMappingURL=errors.js.map
|
|
@@ -4,4 +4,3 @@ import useIsomorphicLayoutEffect from './useIsomorphicLayoutEffect';
|
|
|
4
4
|
import useEffectOnce from './useEffectOnce';
|
|
5
5
|
import useNoInitialEffect from './useNoInitialEffect';
|
|
6
6
|
export { useIsComponentMountedRef, usePreviousValue, useIsomorphicLayoutEffect, useEffectOnce, useNoInitialEffect };
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|