@selfcommunity/react-templates 0.5.0-alpha.30 → 0.5.0-alpha.32

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.
@@ -23,26 +23,19 @@ const Root = (0, material_1.styled)(react_ui_1.Feed, {
23
23
  })(() => ({}));
24
24
  // Widgets for feed
25
25
  const WIDGETS = [
26
- {
27
- type: 'widget',
28
- component: react_ui_1.FooterWidget,
29
- componentProps: {},
30
- column: 'right',
31
- position: 0
32
- },
33
26
  {
34
27
  type: 'widget',
35
28
  component: react_ui_1.CategoryTrendingUsersWidget,
36
29
  componentProps: {},
37
30
  column: 'right',
38
- position: 1
31
+ position: 0
39
32
  },
40
33
  {
41
34
  type: 'widget',
42
35
  component: react_ui_1.CategoryTrendingFeedWidget,
43
36
  componentProps: {},
44
37
  column: 'right',
45
- position: 2
38
+ position: 1
46
39
  }
47
40
  ];
48
41
  /**
@@ -23,40 +23,33 @@ const Root = (0, material_1.styled)(react_ui_1.Feed, {
23
23
  })(() => ({}));
24
24
  // Widgets for feed
25
25
  const WIDGETS = [
26
- {
27
- type: 'widget',
28
- component: react_ui_1.FooterWidget,
29
- componentProps: {},
30
- column: 'right',
31
- position: 0
32
- },
33
26
  {
34
27
  type: 'widget',
35
28
  component: react_ui_1.EventLocationWidget,
36
29
  componentProps: {},
37
30
  column: 'right',
38
- position: 1
31
+ position: 0
39
32
  },
40
33
  {
41
34
  type: 'widget',
42
35
  component: react_ui_1.EventMembersWidget,
43
36
  componentProps: {},
44
37
  column: 'right',
45
- position: 2
38
+ position: 1
46
39
  },
47
40
  {
48
41
  type: 'widget',
49
42
  component: react_ui_1.EventMediaWidget,
50
43
  componentProps: {},
51
44
  column: 'right',
52
- position: 3
45
+ position: 2
53
46
  },
54
47
  {
55
48
  type: 'widget',
56
49
  component: react_ui_1.RelatedEventsWidget,
57
50
  componentProps: {},
58
51
  column: 'right',
59
- position: 4
52
+ position: 3
60
53
  }
61
54
  ];
62
55
  /**
@@ -22,40 +22,33 @@ const Root = (0, material_1.styled)(react_ui_1.Feed, {
22
22
  })(() => ({}));
23
23
  // Widgets for feed
24
24
  const WIDGETS = [
25
- {
26
- type: 'widget',
27
- component: react_ui_1.FooterWidget,
28
- componentProps: {},
29
- column: 'right',
30
- position: 0
31
- },
32
25
  {
33
26
  type: 'widget',
34
27
  component: react_ui_1.PlatformWidget,
35
28
  componentProps: {},
36
29
  column: 'right',
37
- position: 1
30
+ position: 0
38
31
  },
39
32
  {
40
33
  type: 'widget',
41
34
  component: react_ui_1.LoyaltyProgramWidget,
42
35
  componentProps: {},
43
36
  column: 'right',
44
- position: 2
37
+ position: 1
45
38
  },
46
39
  {
47
40
  type: 'widget',
48
41
  component: react_ui_1.CategoriesPopularWidget,
49
42
  componentProps: {},
50
43
  column: 'right',
51
- position: 3
44
+ position: 2
52
45
  },
53
46
  {
54
47
  type: 'widget',
55
48
  component: react_ui_1.UserSuggestionWidget,
56
49
  componentProps: {},
57
50
  column: 'right',
58
- position: 4
51
+ position: 3
59
52
  }
60
53
  ];
61
54
  /**
@@ -23,26 +23,19 @@ const Root = (0, material_1.styled)(react_ui_1.Feed, {
23
23
  })(() => ({}));
24
24
  // Widgets for feed
25
25
  const WIDGETS = [
26
- {
27
- type: 'widget',
28
- component: react_ui_1.FooterWidget,
29
- componentProps: {},
30
- column: 'right',
31
- position: 0
32
- },
33
26
  {
34
27
  type: 'widget',
35
28
  component: react_ui_1.GroupInfoWidget,
36
29
  componentProps: {},
37
30
  column: 'right',
38
- position: 1
31
+ position: 0
39
32
  },
40
33
  {
41
34
  type: 'widget',
42
35
  component: react_ui_1.GroupMembersWidget,
43
36
  componentProps: {},
44
37
  column: 'right',
45
- position: 2
38
+ position: 1
46
39
  }
47
40
  ];
48
41
  /**
@@ -22,40 +22,33 @@ const Root = (0, material_1.styled)(react_ui_1.Feed, {
22
22
  })(() => ({}));
23
23
  // Widgets for feed
24
24
  const WIDGETS = [
25
- {
26
- type: 'widget',
27
- component: react_ui_1.FooterWidget,
28
- componentProps: {},
29
- column: 'right',
30
- position: 0
31
- },
32
25
  {
33
26
  type: 'widget',
34
27
  component: react_ui_1.PlatformWidget,
35
28
  componentProps: {},
36
29
  column: 'right',
37
- position: 1
30
+ position: 0
38
31
  },
39
32
  {
40
33
  type: 'widget',
41
34
  component: react_ui_1.LoyaltyProgramWidget,
42
35
  componentProps: {},
43
36
  column: 'right',
44
- position: 2
37
+ position: 1
45
38
  },
46
39
  {
47
40
  type: 'widget',
48
41
  component: react_ui_1.CategoriesSuggestionWidget,
49
42
  componentProps: {},
50
43
  column: 'right',
51
- position: 3
44
+ position: 2
52
45
  },
53
46
  {
54
47
  type: 'widget',
55
48
  component: react_ui_1.UserSuggestionWidget,
56
49
  componentProps: {},
57
50
  column: 'right',
58
- position: 4
51
+ position: 3
59
52
  }
60
53
  ];
61
54
  /**
@@ -35,40 +35,33 @@ const WIDGETS = [
35
35
  column: 'left',
36
36
  position: 0
37
37
  },
38
- {
39
- type: 'widget',
40
- component: react_ui_1.FooterWidget,
41
- componentProps: {},
42
- column: 'right',
43
- position: 0
44
- },
45
38
  {
46
39
  type: 'widget',
47
40
  component: react_ui_1.PlatformWidget,
48
41
  componentProps: {},
49
42
  column: 'right',
50
- position: 1
43
+ position: 0
51
44
  },
52
45
  {
53
46
  type: 'widget',
54
47
  component: react_ui_1.LoyaltyProgramWidget,
55
48
  componentProps: {},
56
49
  column: 'right',
57
- position: 2
50
+ position: 1
58
51
  },
59
52
  {
60
53
  type: 'widget',
61
54
  component: react_ui_1.CategoriesSuggestionWidget,
62
55
  componentProps: {},
63
56
  column: 'right',
64
- position: 3
57
+ position: 2
65
58
  },
66
59
  {
67
60
  type: 'widget',
68
61
  component: react_ui_1.UserSuggestionWidget,
69
62
  componentProps: {},
70
63
  column: 'right',
71
- position: 4
64
+ position: 3
72
65
  }
73
66
  ];
74
67
  /**
@@ -22,40 +22,33 @@ const Root = (0, material_1.styled)(react_ui_1.Feed, {
22
22
  })(() => ({}));
23
23
  // Widgets for feed
24
24
  const WIDGETS = [
25
- {
26
- type: 'widget',
27
- component: react_ui_1.FooterWidget,
28
- componentProps: {},
29
- column: 'right',
30
- position: 0
31
- },
32
25
  {
33
26
  type: 'widget',
34
27
  component: react_ui_1.UserLiveStreamWidget,
35
28
  componentProps: {},
36
29
  column: 'right',
37
- position: 1
30
+ position: 0
38
31
  },
39
32
  {
40
33
  type: 'widget',
41
34
  component: react_ui_1.UserFollowedCategoriesWidget,
42
35
  componentProps: {},
43
36
  column: 'right',
44
- position: 2
37
+ position: 1
45
38
  },
46
39
  {
47
40
  type: 'widget',
48
41
  component: react_ui_1.UserFollowedUsersWidget,
49
42
  componentProps: {},
50
43
  column: 'right',
51
- position: 3
44
+ position: 2
52
45
  },
53
46
  {
54
47
  type: 'widget',
55
48
  component: react_ui_1.UserFollowersWidget,
56
49
  componentProps: {},
57
50
  column: 'right',
58
- position: 4
51
+ position: 3
59
52
  }
60
53
  ];
61
54
  /**
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { useMemo, useRef } from 'react';
3
3
  import { styled } from '@mui/material';
4
- import { CategoryTrendingFeedWidget, CategoryTrendingUsersWidget, ContributionUtils, Feed, FeedObject, FeedObjectSkeleton, FooterWidget, HiddenPurchasableContent, InlineComposerWidget, SCFeedObjectTemplateType } from '@selfcommunity/react-ui';
4
+ import { CategoryTrendingFeedWidget, CategoryTrendingUsersWidget, ContributionUtils, Feed, FeedObject, FeedObjectSkeleton, HiddenPurchasableContent, InlineComposerWidget, SCFeedObjectTemplateType } from '@selfcommunity/react-ui';
5
5
  import { Endpoints } from '@selfcommunity/api-services';
6
6
  import { Link, SCPreferences, SCRoutes, UserUtils, useSCFetchCategory, useSCPreferences, useSCRouting, useSCUser } from '@selfcommunity/react-core';
7
7
  import { SCCustomAdvPosition, SCFeatureName, SCFeedTypologyType } from '@selfcommunity/types';
@@ -20,26 +20,19 @@ const Root = styled(Feed, {
20
20
  })(() => ({}));
21
21
  // Widgets for feed
22
22
  const WIDGETS = [
23
- {
24
- type: 'widget',
25
- component: FooterWidget,
26
- componentProps: {},
27
- column: 'right',
28
- position: 0
29
- },
30
23
  {
31
24
  type: 'widget',
32
25
  component: CategoryTrendingUsersWidget,
33
26
  componentProps: {},
34
27
  column: 'right',
35
- position: 1
28
+ position: 0
36
29
  },
37
30
  {
38
31
  type: 'widget',
39
32
  component: CategoryTrendingFeedWidget,
40
33
  componentProps: {},
41
34
  column: 'right',
42
- position: 2
35
+ position: 1
43
36
  }
44
37
  ];
45
38
  /**
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useEffect, useMemo, useRef, useState } from 'react';
3
3
  import { styled, Box } from '@mui/material';
4
- import { ContributionUtils, EventInfoWidget, EventLocationWidget, EventMediaWidget, EventMembersWidget, Feed, FeedObject, FeedObjectSkeleton, FooterWidget, InlineComposerWidget, RelatedEventsWidget, SCFeedObjectTemplateType } from '@selfcommunity/react-ui';
4
+ import { ContributionUtils, EventInfoWidget, EventLocationWidget, EventMediaWidget, EventMembersWidget, Feed, FeedObject, FeedObjectSkeleton, InlineComposerWidget, RelatedEventsWidget, SCFeedObjectTemplateType } from '@selfcommunity/react-ui';
5
5
  import { Endpoints } from '@selfcommunity/api-services';
6
6
  import { Link, SCRoutes, useSCFetchEvent, useSCRouting, useSCUser } from '@selfcommunity/react-core';
7
7
  import { SCCustomAdvPosition, SCEventPrivacyType, SCEventSubscriptionStatusType, SCFeedTypologyType } from '@selfcommunity/types';
@@ -20,40 +20,33 @@ const Root = styled(Feed, {
20
20
  })(() => ({}));
21
21
  // Widgets for feed
22
22
  const WIDGETS = [
23
- {
24
- type: 'widget',
25
- component: FooterWidget,
26
- componentProps: {},
27
- column: 'right',
28
- position: 0
29
- },
30
23
  {
31
24
  type: 'widget',
32
25
  component: EventLocationWidget,
33
26
  componentProps: {},
34
27
  column: 'right',
35
- position: 1
28
+ position: 0
36
29
  },
37
30
  {
38
31
  type: 'widget',
39
32
  component: EventMembersWidget,
40
33
  componentProps: {},
41
34
  column: 'right',
42
- position: 2
35
+ position: 1
43
36
  },
44
37
  {
45
38
  type: 'widget',
46
39
  component: EventMediaWidget,
47
40
  componentProps: {},
48
41
  column: 'right',
49
- position: 3
42
+ position: 2
50
43
  },
51
44
  {
52
45
  type: 'widget',
53
46
  component: RelatedEventsWidget,
54
47
  componentProps: {},
55
48
  column: 'right',
56
- position: 4
49
+ position: 3
57
50
  }
58
51
  ];
59
52
  /**
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useContext, useMemo, useRef } from 'react';
3
3
  import { styled } from '@mui/material';
4
- import { CategoriesPopularWidget, Feed, FeedObject, FeedObjectSkeleton, SCFeedObjectTemplateType, InlineComposerWidget, LoyaltyProgramWidget, UserSuggestionWidget, PlatformWidget, OnBoardingWidget, FooterWidget } from '@selfcommunity/react-ui';
4
+ import { CategoriesPopularWidget, Feed, FeedObject, FeedObjectSkeleton, SCFeedObjectTemplateType, InlineComposerWidget, LoyaltyProgramWidget, UserSuggestionWidget, PlatformWidget, OnBoardingWidget } from '@selfcommunity/react-ui';
5
5
  import { Endpoints } from '@selfcommunity/api-services';
6
6
  import { useThemeProps } from '@mui/system';
7
7
  import classNames from 'classnames';
@@ -19,40 +19,33 @@ const Root = styled(Feed, {
19
19
  })(() => ({}));
20
20
  // Widgets for feed
21
21
  const WIDGETS = [
22
- {
23
- type: 'widget',
24
- component: FooterWidget,
25
- componentProps: {},
26
- column: 'right',
27
- position: 0
28
- },
29
22
  {
30
23
  type: 'widget',
31
24
  component: PlatformWidget,
32
25
  componentProps: {},
33
26
  column: 'right',
34
- position: 1
27
+ position: 0
35
28
  },
36
29
  {
37
30
  type: 'widget',
38
31
  component: LoyaltyProgramWidget,
39
32
  componentProps: {},
40
33
  column: 'right',
41
- position: 2
34
+ position: 1
42
35
  },
43
36
  {
44
37
  type: 'widget',
45
38
  component: CategoriesPopularWidget,
46
39
  componentProps: {},
47
40
  column: 'right',
48
- position: 3
41
+ position: 2
49
42
  },
50
43
  {
51
44
  type: 'widget',
52
45
  component: UserSuggestionWidget,
53
46
  componentProps: {},
54
47
  column: 'right',
55
- position: 4
48
+ position: 3
56
49
  }
57
50
  ];
58
51
  /**
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useEffect, useMemo, useRef, useState } from 'react';
3
3
  import { styled } from '@mui/material';
4
- import { ContributionUtils, Feed, FeedObject, FeedObjectSkeleton, FooterWidget, GroupInfoWidget, GroupMembersWidget, InlineComposerWidget, SCFeedObjectTemplateType } from '@selfcommunity/react-ui';
4
+ import { ContributionUtils, Feed, FeedObject, FeedObjectSkeleton, GroupInfoWidget, GroupMembersWidget, InlineComposerWidget, SCFeedObjectTemplateType } from '@selfcommunity/react-ui';
5
5
  import { Endpoints } from '@selfcommunity/api-services';
6
6
  import { Link, SCRoutes, useSCFetchGroup, useSCRouting, useSCUser } from '@selfcommunity/react-core';
7
7
  import { SCCustomAdvPosition, SCFeedTypologyType, SCGroupSubscriptionStatusType } from '@selfcommunity/types';
@@ -20,26 +20,19 @@ const Root = styled(Feed, {
20
20
  })(() => ({}));
21
21
  // Widgets for feed
22
22
  const WIDGETS = [
23
- {
24
- type: 'widget',
25
- component: FooterWidget,
26
- componentProps: {},
27
- column: 'right',
28
- position: 0
29
- },
30
23
  {
31
24
  type: 'widget',
32
25
  component: GroupInfoWidget,
33
26
  componentProps: {},
34
27
  column: 'right',
35
- position: 1
28
+ position: 0
36
29
  },
37
30
  {
38
31
  type: 'widget',
39
32
  component: GroupMembersWidget,
40
33
  componentProps: {},
41
34
  column: 'right',
42
- position: 2
35
+ position: 1
43
36
  }
44
37
  ];
45
38
  /**
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useContext, useRef } from 'react';
3
3
  import { styled } from '@mui/material';
4
- import { CategoriesSuggestionWidget, Feed, FeedObject, FeedObjectSkeleton, SCFeedObjectTemplateType, InlineComposerWidget, LoyaltyProgramWidget, UserSuggestionWidget, PlatformWidget, OnBoardingWidget, FooterWidget } from '@selfcommunity/react-ui';
4
+ import { CategoriesSuggestionWidget, Feed, FeedObject, FeedObjectSkeleton, SCFeedObjectTemplateType, InlineComposerWidget, LoyaltyProgramWidget, UserSuggestionWidget, PlatformWidget, OnBoardingWidget } from '@selfcommunity/react-ui';
5
5
  import { Endpoints } from '@selfcommunity/api-services';
6
6
  import { SCUserContext, UserUtils } from '@selfcommunity/react-core';
7
7
  import { useThemeProps } from '@mui/system';
@@ -19,40 +19,33 @@ const Root = styled(Feed, {
19
19
  })(() => ({}));
20
20
  // Widgets for feed
21
21
  const WIDGETS = [
22
- {
23
- type: 'widget',
24
- component: FooterWidget,
25
- componentProps: {},
26
- column: 'right',
27
- position: 0
28
- },
29
22
  {
30
23
  type: 'widget',
31
24
  component: PlatformWidget,
32
25
  componentProps: {},
33
26
  column: 'right',
34
- position: 1
27
+ position: 0
35
28
  },
36
29
  {
37
30
  type: 'widget',
38
31
  component: LoyaltyProgramWidget,
39
32
  componentProps: {},
40
33
  column: 'right',
41
- position: 2
34
+ position: 1
42
35
  },
43
36
  {
44
37
  type: 'widget',
45
38
  component: CategoriesSuggestionWidget,
46
39
  componentProps: {},
47
40
  column: 'right',
48
- position: 3
41
+ position: 2
49
42
  },
50
43
  {
51
44
  type: 'widget',
52
45
  component: UserSuggestionWidget,
53
46
  componentProps: {},
54
47
  column: 'right',
55
- position: 4
48
+ position: 3
56
49
  }
57
50
  ];
58
51
  /**
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useContext } from 'react';
3
3
  import { styled } from '@mui/material';
4
- import { BroadcastMessages, CategoriesSuggestionWidget, Feed, SCFeedObjectTemplateType, FeedUpdatesWidget, LoyaltyProgramWidget, Notification, NotificationSkeleton, UserSuggestionWidget, PlatformWidget, getUnseenNotificationCounter, FooterWidget } from '@selfcommunity/react-ui';
4
+ import { BroadcastMessages, CategoriesSuggestionWidget, Feed, SCFeedObjectTemplateType, FeedUpdatesWidget, LoyaltyProgramWidget, Notification, NotificationSkeleton, UserSuggestionWidget, PlatformWidget, getUnseenNotificationCounter } from '@selfcommunity/react-ui';
5
5
  import { Endpoints } from '@selfcommunity/api-services';
6
6
  import { SCUserContext } from '@selfcommunity/react-core';
7
7
  import { SCNotificationTopicType } from '@selfcommunity/types';
@@ -32,40 +32,33 @@ const WIDGETS = [
32
32
  column: 'left',
33
33
  position: 0
34
34
  },
35
- {
36
- type: 'widget',
37
- component: FooterWidget,
38
- componentProps: {},
39
- column: 'right',
40
- position: 0
41
- },
42
35
  {
43
36
  type: 'widget',
44
37
  component: PlatformWidget,
45
38
  componentProps: {},
46
39
  column: 'right',
47
- position: 1
40
+ position: 0
48
41
  },
49
42
  {
50
43
  type: 'widget',
51
44
  component: LoyaltyProgramWidget,
52
45
  componentProps: {},
53
46
  column: 'right',
54
- position: 2
47
+ position: 1
55
48
  },
56
49
  {
57
50
  type: 'widget',
58
51
  component: CategoriesSuggestionWidget,
59
52
  componentProps: {},
60
53
  column: 'right',
61
- position: 3
54
+ position: 2
62
55
  },
63
56
  {
64
57
  type: 'widget',
65
58
  component: UserSuggestionWidget,
66
59
  componentProps: {},
67
60
  column: 'right',
68
- position: 4
61
+ position: 3
69
62
  }
70
63
  ];
71
64
  /**
@@ -3,7 +3,7 @@ import { useMemo, useRef } from 'react';
3
3
  import { styled } from '@mui/material';
4
4
  import { Endpoints } from '@selfcommunity/api-services';
5
5
  import { useSCFetchUser, useSCUser } from '@selfcommunity/react-core';
6
- import { Feed, FeedObject, FeedObjectSkeleton, FooterWidget, InlineComposerWidget, SCFeedObjectTemplateType, UserFollowedCategoriesWidget, UserFollowedUsersWidget, UserFollowersWidget, UserLiveStreamWidget } from '@selfcommunity/react-ui';
6
+ import { Feed, FeedObject, FeedObjectSkeleton, InlineComposerWidget, SCFeedObjectTemplateType, UserFollowedCategoriesWidget, UserFollowedUsersWidget, UserFollowersWidget, UserLiveStreamWidget } from '@selfcommunity/react-ui';
7
7
  import { UserFeedSkeleton } from './index';
8
8
  import { useThemeProps } from '@mui/system';
9
9
  import classNames from 'classnames';
@@ -19,40 +19,33 @@ const Root = styled(Feed, {
19
19
  })(() => ({}));
20
20
  // Widgets for feed
21
21
  const WIDGETS = [
22
- {
23
- type: 'widget',
24
- component: FooterWidget,
25
- componentProps: {},
26
- column: 'right',
27
- position: 0
28
- },
29
22
  {
30
23
  type: 'widget',
31
24
  component: UserLiveStreamWidget,
32
25
  componentProps: {},
33
26
  column: 'right',
34
- position: 1
27
+ position: 0
35
28
  },
36
29
  {
37
30
  type: 'widget',
38
31
  component: UserFollowedCategoriesWidget,
39
32
  componentProps: {},
40
33
  column: 'right',
41
- position: 2
34
+ position: 1
42
35
  },
43
36
  {
44
37
  type: 'widget',
45
38
  component: UserFollowedUsersWidget,
46
39
  componentProps: {},
47
40
  column: 'right',
48
- position: 3
41
+ position: 2
49
42
  },
50
43
  {
51
44
  type: 'widget',
52
45
  component: UserFollowersWidget,
53
46
  componentProps: {},
54
47
  column: 'right',
55
- position: 4
48
+ position: 3
56
49
  }
57
50
  ];
58
51
  /**