@selfcommunity/react-core 0.4.0-alpha.11 → 0.4.0-alpha.110
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 -73
- 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 -69
- 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/esm/index.d.ts
CHANGED
|
@@ -58,6 +58,9 @@ import useSCFetchContributors from './hooks/useSCFetchContributors';
|
|
|
58
58
|
import useSCFetchFeed from './hooks/useSCFetchFeed';
|
|
59
59
|
import useSCFetchReactions from './hooks/useSCFetchReactions';
|
|
60
60
|
import useSCFetchPrivateMessageSnippets from './hooks/useSCFetchPrivateMessageSnippets';
|
|
61
|
+
import useSCFetchBroadcastMessages from './hooks/useSCFetchBroadcastMessages';
|
|
62
|
+
import useSCFetchUserBlockedBy from './hooks/useSCFetchUserBlockedBy';
|
|
63
|
+
import useSCUserIsBlocked from './hooks/useSCUserIsBlocked';
|
|
61
64
|
/**
|
|
62
65
|
* Routing component
|
|
63
66
|
*/
|
|
@@ -77,5 +80,4 @@ import * as Locale from './constants/Locale';
|
|
|
77
80
|
/**
|
|
78
81
|
* List all exports
|
|
79
82
|
*/
|
|
80
|
-
export { SCUserContextType, SCFollowedCategoriesManagerType, SCContextProviderType, SCContextType, SCSettingsType, SCSessionType, SCSettingsManagerType, SCFollowedManagerType, SCFollowersManagerType, SCConnectionsManagerType, SCSubscribedIncubatorsManagerType, SCLocaleType, SCNotificationContextType, SCPreferencesContextType, SCThemeContextType, SCRoutingContextType, SCLocaleContextType, SCAlertMessagesContextType, SCThemeAvatarVariableType, SCThemeCategoryIconVariableType, SCThemeCategoryVariableType, SCThemeVariablesType, SCThemeType, SCContext, SCUserContext, SCThemeContext, SCRoutingContext, SCLocaleContext, SCPreferencesContext, useSCContext, SCContextProvider, SCUserProvider, useSCUser, useSCPreferences, SCThemeProvider, useSCTheme, withSCTheme, SCRoutingProvider, useSCRouting, SCLocaleProvider, useSCLocale, withSCLocale, SCPreferencesProvider, SCPreferences, SCFeatures, SCNotification, SCNotificationProvider, SCNotificationContext, useSCNotification, SCAlertMessagesProvider, SCAlertMessagesContext, useSCAlertMessages, Link, SCRoutes, SCCache, UserUtils, Locale, useSCFetchUser, useSCFetchUserProviders, useSCFetchVote, useSCFetchFeedObject, useSCFetchCommentObject, useSCFetchCommentObjects, useSCFetchCustomAdv, useSCFetchTag, useSCFetchAddressingTagList, useSCFetchCategory, useSCFetchCategories, useSCFetchIncubator, useSCMediaClick, useSCFetchContributors, useSCFetchFeed, useIsComponentMountedRef, usePreviousValue, useIsomorphicLayoutEffect, useEffectOnce, useNoInitialEffect, useSCFetchReactions, useSCFetchPrivateMessageSnippets, };
|
|
81
|
-
//# sourceMappingURL=index.d.ts.map
|
|
83
|
+
export { SCUserContextType, SCFollowedCategoriesManagerType, SCContextProviderType, SCContextType, SCSettingsType, SCSessionType, SCSettingsManagerType, SCFollowedManagerType, SCFollowersManagerType, SCConnectionsManagerType, SCSubscribedIncubatorsManagerType, SCLocaleType, SCNotificationContextType, SCPreferencesContextType, SCThemeContextType, SCRoutingContextType, SCLocaleContextType, SCAlertMessagesContextType, SCThemeAvatarVariableType, SCThemeCategoryIconVariableType, SCThemeCategoryVariableType, SCThemeVariablesType, SCThemeType, SCContext, SCUserContext, SCThemeContext, SCRoutingContext, SCLocaleContext, SCPreferencesContext, useSCContext, SCContextProvider, SCUserProvider, useSCUser, useSCPreferences, SCThemeProvider, useSCTheme, withSCTheme, SCRoutingProvider, useSCRouting, SCLocaleProvider, useSCLocale, withSCLocale, SCPreferencesProvider, SCPreferences, SCFeatures, SCNotification, SCNotificationProvider, SCNotificationContext, useSCNotification, SCAlertMessagesProvider, SCAlertMessagesContext, useSCAlertMessages, Link, SCRoutes, SCCache, UserUtils, Locale, useSCFetchUser, useSCFetchUserProviders, useSCFetchVote, useSCFetchFeedObject, useSCFetchCommentObject, useSCFetchCommentObjects, useSCFetchCustomAdv, useSCFetchTag, useSCFetchAddressingTagList, useSCFetchCategory, useSCFetchCategories, useSCFetchIncubator, useSCMediaClick, useSCFetchContributors, useSCFetchFeed, useIsComponentMountedRef, usePreviousValue, useIsomorphicLayoutEffect, useEffectOnce, useNoInitialEffect, useSCFetchReactions, useSCFetchPrivateMessageSnippets, useSCFetchBroadcastMessages, useSCFetchUserBlockedBy, useSCUserIsBlocked, };
|
package/lib/esm/index.js
CHANGED
|
@@ -54,6 +54,9 @@ import useSCFetchContributors from './hooks/useSCFetchContributors';
|
|
|
54
54
|
import useSCFetchFeed from './hooks/useSCFetchFeed';
|
|
55
55
|
import useSCFetchReactions from './hooks/useSCFetchReactions';
|
|
56
56
|
import useSCFetchPrivateMessageSnippets from './hooks/useSCFetchPrivateMessageSnippets';
|
|
57
|
+
import useSCFetchBroadcastMessages from './hooks/useSCFetchBroadcastMessages';
|
|
58
|
+
import useSCFetchUserBlockedBy from './hooks/useSCFetchUserBlockedBy';
|
|
59
|
+
import useSCUserIsBlocked from './hooks/useSCUserIsBlocked';
|
|
57
60
|
/**
|
|
58
61
|
* Routing component
|
|
59
62
|
*/
|
|
@@ -73,5 +76,4 @@ import * as Locale from './constants/Locale';
|
|
|
73
76
|
/**
|
|
74
77
|
* List all exports
|
|
75
78
|
*/
|
|
76
|
-
export { SCContext, SCUserContext, SCThemeContext, SCRoutingContext, SCLocaleContext, SCPreferencesContext, useSCContext, SCContextProvider, SCUserProvider, useSCUser, useSCPreferences, SCThemeProvider, useSCTheme, withSCTheme, SCRoutingProvider, useSCRouting, SCLocaleProvider, useSCLocale, withSCLocale, SCPreferencesProvider, SCPreferences, SCFeatures, SCNotification, SCNotificationProvider, SCNotificationContext, useSCNotification, SCAlertMessagesProvider, SCAlertMessagesContext, useSCAlertMessages, Link, SCRoutes, SCCache, UserUtils, Locale, useSCFetchUser, useSCFetchUserProviders, useSCFetchVote, useSCFetchFeedObject, useSCFetchCommentObject, useSCFetchCommentObjects, useSCFetchCustomAdv, useSCFetchTag, useSCFetchAddressingTagList, useSCFetchCategory, useSCFetchCategories, useSCFetchIncubator, useSCMediaClick, useSCFetchContributors, useSCFetchFeed, useIsComponentMountedRef, usePreviousValue, useIsomorphicLayoutEffect, useEffectOnce, useNoInitialEffect, useSCFetchReactions, useSCFetchPrivateMessageSnippets, };
|
|
77
|
-
//# sourceMappingURL=index.js.map
|
|
79
|
+
export { SCContext, SCUserContext, SCThemeContext, SCRoutingContext, SCLocaleContext, SCPreferencesContext, useSCContext, SCContextProvider, SCUserProvider, useSCUser, useSCPreferences, SCThemeProvider, useSCTheme, withSCTheme, SCRoutingProvider, useSCRouting, SCLocaleProvider, useSCLocale, withSCLocale, SCPreferencesProvider, SCPreferences, SCFeatures, SCNotification, SCNotificationProvider, SCNotificationContext, useSCNotification, SCAlertMessagesProvider, SCAlertMessagesContext, useSCAlertMessages, Link, SCRoutes, SCCache, UserUtils, Locale, useSCFetchUser, useSCFetchUserProviders, useSCFetchVote, useSCFetchFeedObject, useSCFetchCommentObject, useSCFetchCommentObjects, useSCFetchCustomAdv, useSCFetchTag, useSCFetchAddressingTagList, useSCFetchCategory, useSCFetchCategories, useSCFetchIncubator, useSCMediaClick, useSCFetchContributors, useSCFetchFeed, useIsComponentMountedRef, usePreviousValue, useIsomorphicLayoutEffect, useEffectOnce, useNoInitialEffect, useSCFetchReactions, useSCFetchPrivateMessageSnippets, useSCFetchBroadcastMessages, useSCFetchUserBlockedBy, useSCUserIsBlocked, };
|
package/lib/esm/themes/theme.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import createTheme from '@mui/material/styles/createTheme';
|
|
2
2
|
import { mergeDeep } from '@selfcommunity/utils';
|
|
3
3
|
import validateColor from 'validate-color';
|
|
4
4
|
import { COLORS_COLORBACK, COLORS_COLORPRIMARY, COLORS_COLORSECONDARY, COLORS_COLORFONT, COLORS_NAVBARBACK, STYLE_FONT_FAMILY, } from '../constants/Preferences';
|
|
@@ -45,82 +45,8 @@ const getTheme = (options, preferences) => {
|
|
|
45
45
|
? {
|
|
46
46
|
palette: Object.assign(Object.assign(Object.assign(Object.assign({}, (isValidPreference(preferences, COLORS_COLORBACK, validateColor) && { background: { default: preferences[COLORS_COLORBACK].value } })), (isValidPreference(preferences, COLORS_COLORFONT, validateColor) && { text: { primary: preferences[COLORS_COLORFONT].value } })), (isValidPreference(preferences, COLORS_COLORPRIMARY, validateColor) && { primary: { main: preferences[COLORS_COLORPRIMARY].value } })), (isValidPreference(preferences, COLORS_COLORSECONDARY, validateColor) && Object.assign({ secondary: { main: preferences[COLORS_COLORSECONDARY].value } }, (isValidPreference(preferences, COLORS_NAVBARBACK, validateColor) && { navbar: { main: preferences[COLORS_NAVBARBACK].value } })))),
|
|
47
47
|
typography: Object.assign({}, (isValidPreference(preferences, STYLE_FONT_FAMILY, isString) && { fontFamily: preferences[STYLE_FONT_FAMILY].value })),
|
|
48
|
-
components: {
|
|
49
|
-
MuiPaper: {
|
|
50
|
-
// styleOverrides: {
|
|
51
|
-
// rounded: {
|
|
52
|
-
// borderRadius: 3,
|
|
53
|
-
// },
|
|
54
|
-
// },
|
|
55
|
-
},
|
|
56
|
-
SCWidget: {
|
|
57
|
-
// variants: [
|
|
58
|
-
// {
|
|
59
|
-
// props: {elevation: 0},
|
|
60
|
-
// style: {
|
|
61
|
-
// border: 0,
|
|
62
|
-
// boxShadow: 'none',
|
|
63
|
-
// marginBottom: '0 !important',
|
|
64
|
-
// },
|
|
65
|
-
// },
|
|
66
|
-
// {
|
|
67
|
-
// props: {variant: 'outlined'},
|
|
68
|
-
// style: {
|
|
69
|
-
// border: '1px solid rgba(0, 0, 0, 0.12)',
|
|
70
|
-
// boxShadow: 'none',
|
|
71
|
-
// },
|
|
72
|
-
// },
|
|
73
|
-
// ],
|
|
74
|
-
// styleOverrides: {
|
|
75
|
-
// root: {
|
|
76
|
-
// border: '0 none',
|
|
77
|
-
// boxShadow: '0px 5px 20px rgba(0, 0, 0, 0.1)',
|
|
78
|
-
// borderRadius: '15px',
|
|
79
|
-
// },
|
|
80
|
-
// },
|
|
81
|
-
},
|
|
82
|
-
SCNotificationItem: {
|
|
83
|
-
// styleOverrides: {
|
|
84
|
-
// root: {
|
|
85
|
-
// '&.SCNotificationItem-new-snippet': {
|
|
86
|
-
// '&::before': {
|
|
87
|
-
// backgroundColor: 'yellow',
|
|
88
|
-
// },
|
|
89
|
-
// },
|
|
90
|
-
// },
|
|
91
|
-
// },
|
|
92
|
-
},
|
|
93
|
-
SCSnippetNotifications: {
|
|
94
|
-
styleOverrides: {
|
|
95
|
-
root: {
|
|
96
|
-
'& .SCSnippetNotifications-list': {
|
|
97
|
-
// wrap notifications list (ul)
|
|
98
|
-
},
|
|
99
|
-
'& .SCSnippetNotifications-item': {
|
|
100
|
-
// single notification item (li)
|
|
101
|
-
},
|
|
102
|
-
['& .SCUserFollowNotification-username, .SCUserFollowNotification-username, .SCCommentNotification-username,' +
|
|
103
|
-
'SCContributionFollowNotification-username, .SCContributionFollowNotification-username, .SCUserNotificationMention-username,' +
|
|
104
|
-
'.SCUserNotificationMention-username, .SCUserNotificationPrivateMessage-message-sender, .SCVoteUpNotification-username']: {
|
|
105
|
-
// username for notification types: user follow, comment/nested comment,
|
|
106
|
-
// follow contribution, mention, private message, vote up
|
|
107
|
-
},
|
|
108
|
-
['& .SCUserFollowNotification-list-item-snippet-new, .SCVoteUpNotification-list-item-snippet-new, ' +
|
|
109
|
-
'.SCUserBlockedNotification-list-item-snippet-new, .SCUndeletedForNotification-list-item-snippet-new, ' +
|
|
110
|
-
'.SCUserNotificationPrivateMessage-list-item-snippet-new, .SCUserNotificationMention-list-item-snippet-new,' +
|
|
111
|
-
'.SCKindlyNoticeForNotification-list-item-snippet-new, .SCKindlyNoticeFlagNotification-list-item-snippet-new,' +
|
|
112
|
-
'.SCIncubatorApprovedNotification-list-item-snippet-new, .SCDeletedForNotification-list-item-snippet-new,' +
|
|
113
|
-
'.SCContributionFollowNotification-list-item-snippet-new, .SCCommentNotification-list-item-snippet-new,' +
|
|
114
|
-
'.SCCollapsedForNotification-list-item-snippet-new']: {
|
|
115
|
-
// border left indicate new notification of various type
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
},
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
48
|
}
|
|
122
49
|
: {};
|
|
123
50
|
return createTheme(mergeDeep(Object.assign({ selfcommunity }, defaultOptions), options));
|
|
124
51
|
};
|
|
125
52
|
export default getTheme;
|
|
126
|
-
//# 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/esm/types/context.js
CHANGED
package/lib/esm/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/esm/types/index.js
CHANGED
package/lib/esm/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/esm/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/esm/utils/errors.js
CHANGED
|
@@ -36,9 +36,14 @@ ValidationError.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET_SECURE = 4903;
|
|
|
36
36
|
ValidationError.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING = 4921;
|
|
37
37
|
ValidationError.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_DISABLE_TOAST_MESSAGE = 4922;
|
|
38
38
|
ValidationError.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_APPLICATION_SERVER_KEY = 4923;
|
|
39
|
+
ValidationError.ERROR_INVALID_NOTIFICATIONS_MOBILE_PUSH_MESSAGING_DISABLE = 4924;
|
|
40
|
+
ValidationError.ERROR_INVALID_NOTIFICATIONS_MOBILE_NATIVE_PUSH_MESSAGING = 4931;
|
|
39
41
|
ValidationError.ERROR_INVALID_PREFERENCES = 5000;
|
|
40
42
|
ValidationError.ERROR_INVALID_GLOBAL_PREFERENCES = 5001;
|
|
41
43
|
ValidationError.ERROR_INVALID_PREFERENCES_FEATURES = 5002;
|
|
44
|
+
ValidationError.ERROR_INVALID_VOTE = 6000;
|
|
45
|
+
ValidationError.ERROR_INVALID_VOTE_REACTIONS = 6001;
|
|
46
|
+
ValidationError.ERROR_INVALID_VOTE_REACTIONS_STRUCTURE = 6002;
|
|
42
47
|
ValidationError.defaultErrorMessageMap = {
|
|
43
48
|
[ValidationError.ERROR_INVALID_CONF]: 'Invalid or missing library configuration. Check the configuration that is passed to the SCContextProvider.',
|
|
44
49
|
[ValidationError.ERROR_INVALID_SESSION]: 'Invalid session format.',
|
|
@@ -61,9 +66,14 @@ ValidationError.defaultErrorMessageMap = {
|
|
|
61
66
|
[ValidationError.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING]: 'Invalid notifications (web push messaging) option.',
|
|
62
67
|
[ValidationError.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_DISABLE_TOAST_MESSAGE]: "Invalid notifications web push messaging option. 'disableToastMessage' must be a boolean value.",
|
|
63
68
|
[ValidationError.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_APPLICATION_SERVER_KEY]: "Invalid notifications web push messaging option. 'applicationServerKey' must be a string value.",
|
|
69
|
+
[ValidationError.ERROR_INVALID_NOTIFICATIONS_MOBILE_NATIVE_PUSH_MESSAGING]: 'Invalid notifications (mobile native push messaging) option.',
|
|
70
|
+
[ValidationError.ERROR_INVALID_NOTIFICATIONS_MOBILE_PUSH_MESSAGING_DISABLE]: "Invalid notifications mobile native push messaging option. 'disable' must be a boolean value.",
|
|
64
71
|
[ValidationError.ERROR_INVALID_PREFERENCES]: 'Invalid preferences option.',
|
|
65
72
|
[ValidationError.ERROR_INVALID_GLOBAL_PREFERENCES]: "Invalid preferences option. 'preferences' inside preferences must be a valid array of global preferences.",
|
|
66
73
|
[ValidationError.ERROR_INVALID_PREFERENCES_FEATURES]: "Invalid preferences option. 'features' must be a valid array of features.",
|
|
74
|
+
[ValidationError.ERROR_INVALID_VOTE]: 'Invalid vote option.',
|
|
75
|
+
[ValidationError.ERROR_INVALID_VOTE_REACTIONS]: "Invalid vote option. 'reactions' must be a valid array of reaction objects.",
|
|
76
|
+
[ValidationError.ERROR_INVALID_VOTE_REACTIONS_STRUCTURE]: "Invalid vote option. 'reactions' must be a valid array of reaction with attributes (id, label, sentiment, image, active).",
|
|
67
77
|
};
|
|
68
78
|
/**
|
|
69
79
|
* Manage Validation Warnings
|
|
@@ -155,11 +165,3 @@ export class ValidationResult {
|
|
|
155
165
|
this.emitWarnings();
|
|
156
166
|
}
|
|
157
167
|
}
|
|
158
|
-
/**
|
|
159
|
-
* Check if v is a func
|
|
160
|
-
* @param v
|
|
161
|
-
*/
|
|
162
|
-
export function isFunc(v) {
|
|
163
|
-
return typeof v === 'function';
|
|
164
|
-
}
|
|
165
|
-
//# 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
|
|
@@ -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.js.map
|
|
@@ -3,4 +3,3 @@ import { useEffect, useLayoutEffect } from 'react';
|
|
|
3
3
|
// because document is undefined on the server-side.
|
|
4
4
|
const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
|
|
5
5
|
export default useIsomorphicLayoutEffect;
|
|
6
|
-
//# sourceMappingURL=useIsomorphicLayoutEffect.js.map
|
package/lib/esm/utils/locale.js
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PLATFORM, PLATFORM_KEY, PLATFORMS } from '../constants/Device';
|
|
2
|
+
import { LocalStorageDB } from '@selfcommunity/utils';
|
|
3
|
+
/**
|
|
4
|
+
* Check if mobile native push notification is enabled
|
|
5
|
+
*/
|
|
6
|
+
export function isMobileNativeNotificationEnabled() {
|
|
7
|
+
return ((typeof window !== 'undefined' && window[PLATFORM_KEY] && window[PLATFORM_KEY] in PLATFORM) ||
|
|
8
|
+
(LocalStorageDB.checkifSupport() && LocalStorageDB.get(PLATFORM_KEY) && PLATFORMS.includes(LocalStorageDB.get(PLATFORM_KEY))));
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Check if web push messaging is enabled
|
|
12
|
+
*/
|
|
13
|
+
export function isWebPushMessagingEnabled() {
|
|
14
|
+
return !isMobileNativeNotificationEnabled();
|
|
15
|
+
}
|
package/lib/esm/utils/user.d.ts
CHANGED
package/lib/esm/utils/user.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SCNotificationsType, SCNotificationsWebPushMessagingType, SCNotificationsWebSocketType, SCSettingsType } from '../types/context';
|
|
1
|
+
import { SCNotificationsMobileNativePushMessagingType, SCNotificationsType, SCNotificationsWebPushMessagingType, SCNotificationsWebSocketType, SCSettingsType } from '../types/context';
|
|
2
2
|
import { ValidationResult } from './errors';
|
|
3
3
|
import { SCLocaleType } from '../types';
|
|
4
4
|
/**
|
|
@@ -144,6 +144,32 @@ export declare const validateWebPushMessagingApplicationServerKey: (value: any,
|
|
|
144
144
|
warnings: any[];
|
|
145
145
|
value: any;
|
|
146
146
|
};
|
|
147
|
+
/**
|
|
148
|
+
* Validate mobile native
|
|
149
|
+
* @param value
|
|
150
|
+
* @param {}
|
|
151
|
+
*/
|
|
152
|
+
export declare const validateMobileNativePushMessaging: (v: any) => {
|
|
153
|
+
errors: any[];
|
|
154
|
+
warnings: any[];
|
|
155
|
+
v: any;
|
|
156
|
+
value?: undefined;
|
|
157
|
+
} | {
|
|
158
|
+
errors: any[];
|
|
159
|
+
warnings: any[];
|
|
160
|
+
value: SCNotificationsMobileNativePushMessagingType;
|
|
161
|
+
v?: undefined;
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Validate default disable (mobileNativePushMessaging)
|
|
165
|
+
* @param value
|
|
166
|
+
* @param {}
|
|
167
|
+
*/
|
|
168
|
+
export declare const validateMobileNativePushMessagingDisable: (value: any, notifications: any) => {
|
|
169
|
+
errors: any[];
|
|
170
|
+
warnings: any[];
|
|
171
|
+
value: any;
|
|
172
|
+
};
|
|
147
173
|
/**
|
|
148
174
|
* Validate portal option
|
|
149
175
|
* @param portal
|
|
@@ -259,6 +285,25 @@ export declare function validatePreferences(v: Record<string, any>): {
|
|
|
259
285
|
warnings: any[];
|
|
260
286
|
value: Record<string, any>;
|
|
261
287
|
};
|
|
288
|
+
/**
|
|
289
|
+
* Validate reactions
|
|
290
|
+
* @param value
|
|
291
|
+
* @param vote
|
|
292
|
+
*/
|
|
293
|
+
export declare const validateReactions: (value: any, vote: any) => {
|
|
294
|
+
errors: any[];
|
|
295
|
+
warnings: any[];
|
|
296
|
+
value: any;
|
|
297
|
+
};
|
|
298
|
+
/**
|
|
299
|
+
* Validate vote option
|
|
300
|
+
* @param v
|
|
301
|
+
*/
|
|
302
|
+
export declare function validateVote(v: Record<string, any>): {
|
|
303
|
+
errors: any[];
|
|
304
|
+
warnings: any[];
|
|
305
|
+
value: Record<string, any>;
|
|
306
|
+
};
|
|
262
307
|
/**
|
|
263
308
|
* Valid options
|
|
264
309
|
* @type {{}}
|
|
@@ -268,8 +313,10 @@ export declare const sessionOptions: Record<string, any>;
|
|
|
268
313
|
export declare const localeOptions: Record<string, any>;
|
|
269
314
|
export declare const notificationsOptions: Record<string, any>;
|
|
270
315
|
export declare const notificationsWebSocketOptions: Record<string, any>;
|
|
271
|
-
export declare const
|
|
316
|
+
export declare const notificationsWebPushMessagingOptions: Record<string, any>;
|
|
317
|
+
export declare const notificationsMobileNativePushMessagingOptions: Record<string, any>;
|
|
272
318
|
export declare const preferencesOptions: Record<string, any>;
|
|
319
|
+
export declare const voteOptions: Record<string, any>;
|
|
273
320
|
export declare const validOptions: {
|
|
274
321
|
[x: string]: any;
|
|
275
322
|
};
|
|
@@ -287,4 +334,3 @@ export declare const validateOptions: (values: SCSettingsType, schemaOptions: Re
|
|
|
287
334
|
settings: SCSettingsType;
|
|
288
335
|
values?: undefined;
|
|
289
336
|
};
|
|
290
|
-
//# sourceMappingURL=validator.d.ts.map
|