@selfcommunity/react-core 0.4.1-alpha.3 → 0.4.1-alpha.5

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 (92) hide show
  1. package/lib/cjs/components/provider/SCAlertMessagesProvider/index.d.ts +1 -1
  2. package/lib/cjs/components/provider/SCAlertMessagesProvider/index.js +1 -1
  3. package/lib/cjs/components/provider/SCContextProvider/index.d.ts +1 -1
  4. package/lib/cjs/components/provider/SCContextProvider/index.js +1 -1
  5. package/lib/cjs/components/provider/SCLocaleProvider/index.d.ts +1 -1
  6. package/lib/cjs/components/provider/SCLocaleProvider/index.js +1 -1
  7. package/lib/cjs/components/provider/SCNotificationProvider/index.d.ts +1 -1
  8. package/lib/cjs/components/provider/SCNotificationProvider/index.js +1 -1
  9. package/lib/cjs/components/provider/SCPreferencesProvider/index.d.ts +1 -1
  10. package/lib/cjs/components/provider/SCPreferencesProvider/index.js +1 -1
  11. package/lib/cjs/components/provider/SCRoutingProvider/index.d.ts +1 -1
  12. package/lib/cjs/components/provider/SCRoutingProvider/index.js +1 -1
  13. package/lib/cjs/components/provider/SCThemeProvider/index.d.ts +1 -1
  14. package/lib/cjs/components/provider/SCThemeProvider/index.js +1 -1
  15. package/lib/cjs/components/provider/SCUserProvider/index.d.ts +1 -1
  16. package/lib/cjs/components/provider/SCUserProvider/index.js +1 -1
  17. package/lib/cjs/components/provider/SCVoteProvider/index.d.ts +1 -1
  18. package/lib/cjs/components/provider/SCVoteProvider/index.js +1 -1
  19. package/lib/cjs/components/router/index.d.ts +1 -1
  20. package/lib/cjs/components/router/index.js +1 -1
  21. package/lib/cjs/hooks/useSCAuth.d.ts +1 -1
  22. package/lib/cjs/hooks/useSCAuth.js +1 -1
  23. package/lib/cjs/hooks/useSCBlockedUsersManager.d.ts +1 -1
  24. package/lib/cjs/hooks/useSCBlockedUsersManager.js +1 -1
  25. package/lib/cjs/hooks/useSCConnectionsManager.d.ts +1 -1
  26. package/lib/cjs/hooks/useSCConnectionsManager.js +1 -1
  27. package/lib/cjs/hooks/useSCFetchBroadcastMessages.d.ts +1 -1
  28. package/lib/cjs/hooks/useSCFetchBroadcastMessages.js +1 -1
  29. package/lib/cjs/hooks/useSCFetchCategories.d.ts +1 -1
  30. package/lib/cjs/hooks/useSCFetchCategories.js +1 -1
  31. package/lib/cjs/hooks/useSCFetchPrivateMessageSnippets.d.ts +1 -1
  32. package/lib/cjs/hooks/useSCFetchPrivateMessageSnippets.js +1 -1
  33. package/lib/cjs/hooks/useSCFollowedCategoriesManager.d.ts +1 -1
  34. package/lib/cjs/hooks/useSCFollowedCategoriesManager.js +1 -1
  35. package/lib/cjs/hooks/useSCFollowedManager.d.ts +1 -1
  36. package/lib/cjs/hooks/useSCFollowedManager.js +1 -1
  37. package/lib/cjs/hooks/useSCFollowersManager.d.ts +1 -1
  38. package/lib/cjs/hooks/useSCFollowersManager.js +1 -1
  39. package/lib/cjs/hooks/useSCSettingsManager.d.ts +1 -1
  40. package/lib/cjs/hooks/useSCSettingsManager.js +1 -1
  41. package/lib/cjs/hooks/useSCSubscribedIncubatorsManager.d.ts +1 -1
  42. package/lib/cjs/hooks/useSCSubscribedIncubatorsManager.js +1 -1
  43. package/lib/cjs/hooks/useSCUserIsBlocked.d.ts +1 -1
  44. package/lib/cjs/hooks/useSCUserIsBlocked.js +1 -1
  45. package/lib/cjs/utils/validator.js +1 -1
  46. package/lib/esm/components/provider/SCAlertMessagesProvider/index.d.ts +1 -1
  47. package/lib/esm/components/provider/SCAlertMessagesProvider/index.js +1 -1
  48. package/lib/esm/components/provider/SCContextProvider/index.d.ts +1 -1
  49. package/lib/esm/components/provider/SCContextProvider/index.js +1 -1
  50. package/lib/esm/components/provider/SCLocaleProvider/index.d.ts +1 -1
  51. package/lib/esm/components/provider/SCLocaleProvider/index.js +1 -1
  52. package/lib/esm/components/provider/SCNotificationProvider/index.d.ts +1 -1
  53. package/lib/esm/components/provider/SCNotificationProvider/index.js +1 -1
  54. package/lib/esm/components/provider/SCPreferencesProvider/index.d.ts +1 -1
  55. package/lib/esm/components/provider/SCPreferencesProvider/index.js +1 -1
  56. package/lib/esm/components/provider/SCRoutingProvider/index.d.ts +1 -1
  57. package/lib/esm/components/provider/SCRoutingProvider/index.js +1 -1
  58. package/lib/esm/components/provider/SCThemeProvider/index.d.ts +1 -1
  59. package/lib/esm/components/provider/SCThemeProvider/index.js +1 -1
  60. package/lib/esm/components/provider/SCUserProvider/index.d.ts +1 -1
  61. package/lib/esm/components/provider/SCUserProvider/index.js +1 -1
  62. package/lib/esm/components/provider/SCVoteProvider/index.d.ts +1 -1
  63. package/lib/esm/components/provider/SCVoteProvider/index.js +1 -1
  64. package/lib/esm/components/router/index.d.ts +1 -1
  65. package/lib/esm/components/router/index.js +1 -1
  66. package/lib/esm/hooks/useSCAuth.d.ts +1 -1
  67. package/lib/esm/hooks/useSCAuth.js +1 -1
  68. package/lib/esm/hooks/useSCBlockedUsersManager.d.ts +1 -1
  69. package/lib/esm/hooks/useSCBlockedUsersManager.js +1 -1
  70. package/lib/esm/hooks/useSCConnectionsManager.d.ts +1 -1
  71. package/lib/esm/hooks/useSCConnectionsManager.js +1 -1
  72. package/lib/esm/hooks/useSCFetchBroadcastMessages.d.ts +1 -1
  73. package/lib/esm/hooks/useSCFetchBroadcastMessages.js +1 -1
  74. package/lib/esm/hooks/useSCFetchCategories.d.ts +1 -1
  75. package/lib/esm/hooks/useSCFetchCategories.js +1 -1
  76. package/lib/esm/hooks/useSCFetchPrivateMessageSnippets.d.ts +1 -1
  77. package/lib/esm/hooks/useSCFetchPrivateMessageSnippets.js +1 -1
  78. package/lib/esm/hooks/useSCFollowedCategoriesManager.d.ts +1 -1
  79. package/lib/esm/hooks/useSCFollowedCategoriesManager.js +2 -2
  80. package/lib/esm/hooks/useSCFollowedManager.d.ts +1 -1
  81. package/lib/esm/hooks/useSCFollowedManager.js +1 -1
  82. package/lib/esm/hooks/useSCFollowersManager.d.ts +1 -1
  83. package/lib/esm/hooks/useSCFollowersManager.js +1 -1
  84. package/lib/esm/hooks/useSCSettingsManager.d.ts +1 -1
  85. package/lib/esm/hooks/useSCSettingsManager.js +1 -1
  86. package/lib/esm/hooks/useSCSubscribedIncubatorsManager.d.ts +1 -1
  87. package/lib/esm/hooks/useSCSubscribedIncubatorsManager.js +2 -2
  88. package/lib/esm/hooks/useSCUserIsBlocked.d.ts +1 -1
  89. package/lib/esm/hooks/useSCUserIsBlocked.js +1 -1
  90. package/lib/esm/utils/validator.js +1 -1
  91. package/lib/umd/react-core.js +1 -1
  92. package/package.json +3 -3
@@ -8,7 +8,7 @@ import { SCPreferencesContext } from '../SCPreferencesProvider';
8
8
  /**
9
9
  * Creates Vote Context
10
10
  *
11
- :::tipContext can be consumed in one of the following ways:
11
+ :::tip Context can be consumed in one of the following ways:
12
12
 
13
13
 
14
14
  ```jsx
@@ -11,7 +11,7 @@ import React from 'react';
11
11
  ```jsx
12
12
  import {SCRoutingContextType, useSCRouting, Link, SCRoutes} from '@selfcommunity/react-core';
13
13
  ````
14
- :::tipUsage Example:
14
+ :::tip Usage Example:
15
15
 
16
16
  ```jsx
17
17
  const scRoutingContext: SCRoutingContextType = useSCRouting();
@@ -36,7 +36,7 @@ const Link = (_a, ref) => {
36
36
  ```jsx
37
37
  import {SCRoutingContextType, useSCRouting, Link, SCRoutes} from '@selfcommunity/react-core';
38
38
  ````
39
- :::tipUsage Example:
39
+ :::tip Usage Example:
40
40
 
41
41
  ```jsx
42
42
  const scRoutingContext: SCRoutingContextType = useSCRouting();
@@ -31,7 +31,7 @@ export declare const userActionTypes: {
31
31
  import {SCRoutingContextType, useSCRouting, Link, SCRoutes} from '@selfcommunity/react-core';
32
32
  ````
33
33
 
34
- :::tipUsage Example:
34
+ :::tip Usage Example:
35
35
 
36
36
  ```jsx
37
37
  const scRoutingContext: SCRoutingContextType = useSCRouting();
@@ -111,7 +111,7 @@ function stateInitializer(session) {
111
111
  import {SCRoutingContextType, useSCRouting, Link, SCRoutes} from '@selfcommunity/react-core';
112
112
  ````
113
113
 
114
- :::tipUsage Example:
114
+ :::tip Usage Example:
115
115
 
116
116
  ```jsx
117
117
  const scRoutingContext: SCRoutingContextType = useSCRouting();
@@ -3,7 +3,7 @@ import { SCUserType } from '@selfcommunity/types';
3
3
  :::info
4
4
  This custom hook is used to manage blocked users.
5
5
  :::
6
- :::tipHow to use it:
6
+ :::tip How to use it:
7
7
 
8
8
  Follow these steps:
9
9
  ```jsx
@@ -7,7 +7,7 @@ import { UserService } from '@selfcommunity/api-services';
7
7
  :::info
8
8
  This custom hook is used to manage blocked users.
9
9
  :::
10
- :::tipHow to use it:
10
+ :::tip How to use it:
11
11
 
12
12
  Follow these steps:
13
13
  ```jsx
@@ -4,7 +4,7 @@ import { SCUserType } from '@selfcommunity/types';
4
4
  This custom hook is used to manage to manage friends.
5
5
  :::
6
6
 
7
- :::tipHow to use it:
7
+ :::tip How to use it:
8
8
 
9
9
  Follow these steps:
10
10
  ```jsx
@@ -15,7 +15,7 @@ import { useDeepCompareEffectNoCheck } from 'use-deep-compare-effect';
15
15
  This custom hook is used to manage to manage friends.
16
16
  :::
17
17
 
18
- :::tipHow to use it:
18
+ :::tip How to use it:
19
19
 
20
20
  Follow these steps:
21
21
  ```jsx
@@ -7,7 +7,7 @@ import { CacheStrategies } from '@selfcommunity/utils';
7
7
  @param object
8
8
  @param object.cacheStrategy
9
9
 
10
- :::tipContext can be consumed in this way:
10
+ :::tip Context can be consumed in this way:
11
11
 
12
12
  ```jsx
13
13
  const {messages, isLoading} = useSCFetchBroadcastMessages();
@@ -22,7 +22,7 @@ const initialData = { results: [], next: broadcastMessagesRefreshUrl, previous:
22
22
  @param object
23
23
  @param object.cacheStrategy
24
24
 
25
- :::tipContext can be consumed in this way:
25
+ :::tip Context can be consumed in this way:
26
26
 
27
27
  ```jsx
28
28
  const {messages, isLoading} = useSCFetchBroadcastMessages();
@@ -6,7 +6,7 @@ import { CacheStrategies } from '@selfcommunity/utils';
6
6
  @param object
7
7
  @param object.cacheStrategy
8
8
 
9
- :::tipContext can be consumed in this way:
9
+ :::tip Context can be consumed in this way:
10
10
 
11
11
  ```jsx
12
12
  const {categories, isLoading} = useSCFetchCategories();
@@ -26,7 +26,7 @@ const hydrate = (ids) => {
26
26
  @param object
27
27
  @param object.cacheStrategy
28
28
 
29
- :::tipContext can be consumed in this way:
29
+ :::tip Context can be consumed in this way:
30
30
 
31
31
  ```jsx
32
32
  const {categories, isLoading} = useSCFetchCategories();
@@ -5,7 +5,7 @@ import { CacheStrategies } from '@selfcommunity/utils';
5
5
  This custom hook is used to fetch snippets.
6
6
  @param object.cacheStrategy
7
7
 
8
- :::tipContext can be consumed in this way:
8
+ :::tip Context can be consumed in this way:
9
9
 
10
10
  ```jsx
11
11
  const {snippets, isLoading} = useSCFetchPrivateMessageSnippets();
@@ -26,7 +26,7 @@ const hydrate = (ids) => {
26
26
  This custom hook is used to fetch snippets.
27
27
  @param object.cacheStrategy
28
28
 
29
- :::tipContext can be consumed in this way:
29
+ :::tip Context can be consumed in this way:
30
30
 
31
31
  ```jsx
32
32
  const {snippets, isLoading} = useSCFetchPrivateMessageSnippets();
@@ -4,7 +4,7 @@ import { SCCategoryType, SCUserType } from '@selfcommunity/types';
4
4
  This custom hook is used to manage the categories followed.
5
5
  :::
6
6
 
7
- :::tipHow to use it:
7
+ :::tip How to use it:
8
8
  Follow these steps:
9
9
  ```jsx
10
10
  1. const scUserContext: SCUserContextType = useSCUser();
@@ -1,4 +1,4 @@
1
- import { useEffect, useMemo } from "react";
1
+ import { useEffect, useMemo } from 'react';
2
2
  import { http, Endpoints } from '@selfcommunity/api-services';
3
3
  import useSCCachingManager from './useSCCachingManager';
4
4
  import { SCOPE_SC_CORE } from '../constants/Errors';
@@ -8,7 +8,7 @@ import { Logger } from '@selfcommunity/utils';
8
8
  This custom hook is used to manage the categories followed.
9
9
  :::
10
10
 
11
- :::tipHow to use it:
11
+ :::tip How to use it:
12
12
  Follow these steps:
13
13
  ```jsx
14
14
  1. const scUserContext: SCUserContextType = useSCUser();
@@ -3,7 +3,7 @@ import { SCUserType } from '@selfcommunity/types';
3
3
  :::info
4
4
  This custom hook is used to manage followed users.
5
5
  :::
6
- :::tipHow to use it:
6
+ :::tip How to use it:
7
7
 
8
8
  Follow these steps:
9
9
  ```jsx
@@ -15,7 +15,7 @@ const STATUS_FOLLOWED = 'followed';
15
15
  :::info
16
16
  This custom hook is used to manage followed users.
17
17
  :::
18
- :::tipHow to use it:
18
+ :::tip How to use it:
19
19
 
20
20
  Follow these steps:
21
21
  ```jsx
@@ -3,7 +3,7 @@ import { SCUserType } from '@selfcommunity/types';
3
3
  :::info
4
4
  This custom hook is used to manage followers users.
5
5
  :::
6
- :::tipHow to use it:
6
+ :::tip How to use it:
7
7
 
8
8
  Follow these steps:
9
9
  ```jsx
@@ -10,7 +10,7 @@ import { SCNotificationMapping } from '../constants/Notification';
10
10
  :::info
11
11
  This custom hook is used to manage followers users.
12
12
  :::
13
- :::tipHow to use it:
13
+ :::tip How to use it:
14
14
 
15
15
  Follow these steps:
16
16
  ```jsx
@@ -3,7 +3,7 @@ import { SCUserSettingsType, SCUserType } from '@selfcommunity/types';
3
3
  :::info
4
4
  This custom hook is used to manage user settings.
5
5
  :::
6
- :::tipHow to use it:
6
+ :::tip How to use it:
7
7
 
8
8
  Follow these steps:
9
9
  ```jsx
@@ -6,7 +6,7 @@ import { SCOPE_SC_CORE } from '../constants/Errors';
6
6
  :::info
7
7
  This custom hook is used to manage user settings.
8
8
  :::
9
- :::tipHow to use it:
9
+ :::tip How to use it:
10
10
 
11
11
  Follow these steps:
12
12
  ```jsx
@@ -3,7 +3,7 @@ import { SCIncubatorType, SCUserType } from '@selfcommunity/types';
3
3
  :::info
4
4
  This custom hook is used to manage to manage subscribed incubators.
5
5
  :::
6
- :::tipHow to use it:
6
+ :::tip How to use it:
7
7
 
8
8
  Follow these steps:
9
9
  ```jsx
@@ -1,4 +1,4 @@
1
- import { useEffect, useMemo } from "react";
1
+ import { useEffect, useMemo } from 'react';
2
2
  import { http, Endpoints } from '@selfcommunity/api-services';
3
3
  import { Logger } from '@selfcommunity/utils';
4
4
  import { SCOPE_SC_CORE } from '../constants/Errors';
@@ -7,7 +7,7 @@ import useSCCachingManager from './useSCCachingManager';
7
7
  :::info
8
8
  This custom hook is used to manage to manage subscribed incubators.
9
9
  :::
10
- :::tipHow to use it:
10
+ :::tip How to use it:
11
11
 
12
12
  Follow these steps:
13
13
  ```jsx
@@ -3,7 +3,7 @@ import { SCUserType } from '@selfcommunity/types';
3
3
  :::info
4
4
  This custom hook is used to check if the user is blocked by me or I am blocked by him.
5
5
  :::
6
- :::tipHow to use it:
6
+ :::tip How to use it:
7
7
 
8
8
  Follow these steps:
9
9
  ```jsx
@@ -5,7 +5,7 @@ import { useSCUser } from '../components/provider/SCUserProvider';
5
5
  :::info
6
6
  This custom hook is used to check if the user is blocked by me or I am blocked by him.
7
7
  :::
8
- :::tipHow to use it:
8
+ :::tip How to use it:
9
9
 
10
10
  Follow these steps:
11
11
  ```jsx
@@ -546,7 +546,7 @@ export const validateReactions = (value, vote) => {
546
546
  errors.push(ValidationError.ERROR_INVALID_VOTE_REACTIONS);
547
547
  }
548
548
  if (Array.isArray(value) && value.length > 0) {
549
- let _validValuesCounts = value.filter((e) => e.id !== null && e.label !== null && e.sentiment && e.image && e.active !== null).length;
549
+ let _validValuesCounts = value.filter((e) => e.id !== null && e.label !== null && e.sentiment !== null && e.image && e.active !== null).length;
550
550
  if (_validValuesCounts < value.length) {
551
551
  errors.push(ValidationError.ERROR_INVALID_VOTE_REACTIONS_STRUCTURE);
552
552
  }