@selfcommunity/react-templates 0.5.0-alpha.6 → 0.5.0-alpha.7

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.
Files changed (30) hide show
  1. package/lib/cjs/components/CategoryFeed/CategoryFeed.js +13 -2
  2. package/lib/cjs/components/EventFeed/EventFeed.js +28 -13
  3. package/lib/cjs/components/ExploreFeed/ExploreFeed.js +3 -2
  4. package/lib/cjs/components/FeedObjectDetail/FeedObjectDetail.js +4 -2
  5. package/lib/cjs/components/GroupFeed/GroupFeed.js +20 -5
  6. package/lib/cjs/components/MainFeed/MainFeed.js +3 -2
  7. package/lib/cjs/components/UserFeed/UserFeed.js +3 -2
  8. package/lib/cjs/components/UserProfile/UserProfile.js +5 -2
  9. package/lib/esm/components/CategoryFeed/CategoryFeed.js +16 -5
  10. package/lib/esm/components/EventFeed/EventFeed.js +29 -14
  11. package/lib/esm/components/ExploreFeed/ExploreFeed.js +3 -2
  12. package/lib/esm/components/FeedObjectDetail/FeedObjectDetail.js +4 -2
  13. package/lib/esm/components/GroupFeed/GroupFeed.js +22 -7
  14. package/lib/esm/components/MainFeed/MainFeed.js +3 -2
  15. package/lib/esm/components/UserFeed/UserFeed.js +3 -2
  16. package/lib/esm/components/UserProfile/UserProfile.js +5 -2
  17. package/lib/umd/{c473ce30406a3dad83e1.eot → 30b299174b4fa1fb9ce8.eot} +0 -0
  18. package/lib/umd/{b6dbec3d5816ff8baef1.woff → 3b49304a98beb1239bc7.ttf} +0 -0
  19. package/lib/umd/589.js +2 -0
  20. package/lib/umd/738.js +1 -1
  21. package/lib/umd/73cbb3dbfaa3ddd4df47.js +2 -0
  22. package/lib/umd/73cbb3dbfaa3ddd4df47.js.LICENSE.txt +21 -0
  23. package/lib/umd/ab247f43e550f5f6d0f8.woff2 +0 -0
  24. package/lib/umd/{ba74e493633796d551d1.ttf → ce10db0c87e7112cb315.woff} +0 -0
  25. package/lib/umd/{6158171e38cbff3c3340.svg → fff8590360ed9eed64ae.svg} +75 -69
  26. package/lib/umd/react-templates.js +1 -1
  27. package/package.json +9 -6
  28. package/lib/umd/60a7fdeaadfe844bc015.woff2 +0 -0
  29. package/lib/umd/916.js +0 -2
  30. /package/lib/umd/{916.js.LICENSE.txt → 589.js.LICENSE.txt} +0 -0
@@ -182,13 +182,16 @@ export default function UserProfile(inProps) {
182
182
  const isMe = useMemo(() => scUserContext.user && (scUser === null || scUser === void 0 ? void 0 : scUser.id) === scUserContext.user.id, [scUserContext.user, scUser]);
183
183
  const followEnabled = useMemo(() => SCPreferences.CONFIGURATIONS_FOLLOW_ENABLED in scPreferencesContext.preferences &&
184
184
  scPreferencesContext.preferences[SCPreferences.CONFIGURATIONS_FOLLOW_ENABLED].value, [scPreferencesContext.preferences]);
185
- const privateMessagingEnabled = useMemo(() => features.includes(SCFeatureName.PRIVATE_MESSAGING), [features]);
185
+ const connectionEnabled = SCPreferences.CONFIGURATIONS_CONNECTION_ENABLED in scPreferencesContext.preferences &&
186
+ scPreferencesContext.preferences[SCPreferences.CONFIGURATIONS_CONNECTION_ENABLED].value;
187
+ const privateMessagingEnabled = useMemo(() => SCPreferences.ADDONS_PRIVATE_MESSAGES_ENABLED in scPreferencesContext.preferences &&
188
+ scPreferencesContext.preferences[SCPreferences.ADDONS_PRIVATE_MESSAGES_ENABLED].value, [scPreferencesContext.preferences]);
186
189
  const _widgets = useMemo(() => {
187
190
  var _a, _b;
188
191
  if (widgets !== null) {
189
192
  return widgets;
190
193
  }
191
- if (!scUser) {
194
+ if (!scUser || (!followEnabled && !connectionEnabled)) {
192
195
  return [];
193
196
  }
194
197
  let _widgets = [];