@selfcommunity/react-templates 0.4.8-payments.235 → 0.4.8-payments.236
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/CategoryFeed/CategoryFeed.js +1 -1
- package/lib/cjs/components/EventFeed/EventFeed.js +1 -1
- package/lib/cjs/components/ExploreFeed/ExploreFeed.js +1 -1
- package/lib/cjs/components/GroupFeed/GroupFeed.js +1 -1
- package/lib/cjs/components/MainFeed/MainFeed.js +1 -1
- package/lib/cjs/components/UserFeed/UserFeed.js +1 -1
- package/lib/esm/components/CategoryFeed/CategoryFeed.js +2 -2
- package/lib/esm/components/EventFeed/EventFeed.js +2 -2
- package/lib/esm/components/ExploreFeed/ExploreFeed.js +2 -2
- package/lib/esm/components/GroupFeed/GroupFeed.js +2 -2
- package/lib/esm/components/MainFeed/MainFeed.js +2 -2
- package/lib/esm/components/UserFeed/UserFeed.js +2 -2
- package/lib/umd/react-templates.js +1 -1
- package/package.json +6 -6
|
@@ -104,7 +104,7 @@ function CategoryFeed(inProps) {
|
|
|
104
104
|
seen_by_id: [],
|
|
105
105
|
has_boost: false
|
|
106
106
|
};
|
|
107
|
-
|
|
107
|
+
!feedObject.draft && feedRef && feedRef.current && feedRef.current.addFeedData(feedUnit, true);
|
|
108
108
|
};
|
|
109
109
|
// WIDGETS
|
|
110
110
|
const _widgets = (0, react_1.useMemo)(() => widgets.map((w) => {
|
|
@@ -121,7 +121,7 @@ function EventFeed(inProps) {
|
|
|
121
121
|
seen_by_id: [],
|
|
122
122
|
has_boost: false
|
|
123
123
|
};
|
|
124
|
-
|
|
124
|
+
!feedObject.draft && feedRef && feedRef.current && feedRef.current.addFeedData(feedUnit, true);
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
127
|
// WIDGETS
|
|
@@ -102,7 +102,7 @@ function ExploreFeed(inProps) {
|
|
|
102
102
|
seen_by_id: [],
|
|
103
103
|
has_boost: false
|
|
104
104
|
};
|
|
105
|
-
|
|
105
|
+
!feedObject.draft && feedRef && feedRef.current && feedRef.current.addFeedData(feedUnit, true);
|
|
106
106
|
};
|
|
107
107
|
const handleAddGenerationContent = (feedObjects) => {
|
|
108
108
|
if (feedRef && feedRef.current) {
|
|
@@ -107,7 +107,7 @@ function GroupFeed(inProps) {
|
|
|
107
107
|
seen_by_id: [],
|
|
108
108
|
has_boost: false
|
|
109
109
|
};
|
|
110
|
-
|
|
110
|
+
!feedObject.draft && feedRef && feedRef.current && feedRef.current.addFeedData(feedUnit, true);
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
// WIDGETS
|
|
@@ -106,7 +106,7 @@ function MainFeed(inProps) {
|
|
|
106
106
|
seen_by_id: [],
|
|
107
107
|
has_boost: false
|
|
108
108
|
};
|
|
109
|
-
|
|
109
|
+
!feedObject.draft && feedRef && feedRef.current && feedRef.current.addFeedData(feedUnit, true);
|
|
110
110
|
};
|
|
111
111
|
const handleAddGenerationContent = (feedObjects) => {
|
|
112
112
|
if (feedRef && feedRef.current) {
|
|
@@ -104,7 +104,7 @@ function UserFeed(inProps) {
|
|
|
104
104
|
seen_by_id: [],
|
|
105
105
|
has_boost: false
|
|
106
106
|
};
|
|
107
|
-
|
|
107
|
+
!feedObject.draft && feedRef && feedRef.current && feedRef.current.addFeedData(feedUnit, true);
|
|
108
108
|
};
|
|
109
109
|
// WIDGETS
|
|
110
110
|
const _widgets = (0, react_1.useMemo)(() => widgets.map((w) => {
|
|
@@ -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, HiddenPurchasableContent, InlineComposerWidget, SCFeedObjectTemplateType
|
|
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';
|
|
@@ -101,7 +101,7 @@ export default function CategoryFeed(inProps) {
|
|
|
101
101
|
seen_by_id: [],
|
|
102
102
|
has_boost: false
|
|
103
103
|
};
|
|
104
|
-
|
|
104
|
+
!feedObject.draft && feedRef && feedRef.current && feedRef.current.addFeedData(feedUnit, true);
|
|
105
105
|
};
|
|
106
106
|
// WIDGETS
|
|
107
107
|
const _widgets = useMemo(() => widgets.map((w) => {
|
|
@@ -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, InlineComposerWidget, RelatedEventsWidget, SCFeedObjectTemplateType
|
|
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';
|
|
@@ -118,7 +118,7 @@ export default function EventFeed(inProps) {
|
|
|
118
118
|
seen_by_id: [],
|
|
119
119
|
has_boost: false
|
|
120
120
|
};
|
|
121
|
-
|
|
121
|
+
!feedObject.draft && feedRef && feedRef.current && feedRef.current.addFeedData(feedUnit, true);
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
124
|
// WIDGETS
|
|
@@ -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
|
|
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';
|
|
@@ -99,7 +99,7 @@ export default function ExploreFeed(inProps) {
|
|
|
99
99
|
seen_by_id: [],
|
|
100
100
|
has_boost: false
|
|
101
101
|
};
|
|
102
|
-
|
|
102
|
+
!feedObject.draft && feedRef && feedRef.current && feedRef.current.addFeedData(feedUnit, true);
|
|
103
103
|
};
|
|
104
104
|
const handleAddGenerationContent = (feedObjects) => {
|
|
105
105
|
if (feedRef && feedRef.current) {
|
|
@@ -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, GroupInfoWidget, GroupMembersWidget, InlineComposerWidget, SCFeedObjectTemplateType
|
|
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';
|
|
@@ -104,7 +104,7 @@ export default function GroupFeed(inProps) {
|
|
|
104
104
|
seen_by_id: [],
|
|
105
105
|
has_boost: false
|
|
106
106
|
};
|
|
107
|
-
|
|
107
|
+
!feedObject.draft && feedRef && feedRef.current && feedRef.current.addFeedData(feedUnit, true);
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
// WIDGETS
|
|
@@ -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
|
|
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';
|
|
@@ -103,7 +103,7 @@ export default function MainFeed(inProps) {
|
|
|
103
103
|
seen_by_id: [],
|
|
104
104
|
has_boost: false
|
|
105
105
|
};
|
|
106
|
-
|
|
106
|
+
!feedObject.draft && feedRef && feedRef.current && feedRef.current.addFeedData(feedUnit, true);
|
|
107
107
|
};
|
|
108
108
|
const handleAddGenerationContent = (feedObjects) => {
|
|
109
109
|
if (feedRef && feedRef.current) {
|
|
@@ -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, InlineComposerWidget, SCFeedObjectTemplateType,
|
|
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';
|
|
@@ -101,7 +101,7 @@ export default function UserFeed(inProps) {
|
|
|
101
101
|
seen_by_id: [],
|
|
102
102
|
has_boost: false
|
|
103
103
|
};
|
|
104
|
-
|
|
104
|
+
!feedObject.draft && feedRef && feedRef.current && feedRef.current.addFeedData(feedUnit, true);
|
|
105
105
|
};
|
|
106
106
|
// WIDGETS
|
|
107
107
|
const _widgets = useMemo(() => widgets.map((w) => {
|