@goodhood-web/nebenan-base 3.0.0-development.2 → 3.0.0-development.21
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/index.d.ts +2 -1
- package/index.js +32 -32
- package/index.mjs +3763 -3750
- package/lib/FeedItem/Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.d.ts +1 -1
- package/lib/FeedItem/Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.types.d.ts +2 -1
- package/lib/FeedItem/Marketplace/MarketplaceMoreOptions/InteractivePostInfo/InteractivePostInfo.d.ts +7 -0
- package/lib/FeedItem/Marketplace/MarketplaceMoreOptions/InteractivePostInfo/utils.d.ts +11 -0
- package/lib/FeedItem/PostInfo/PostInfo.d.ts +3 -0
- package/lib/FeedItem/PostInfo/PostInfo.types.d.ts +17 -0
- package/lib/FeedItem/PostInfo/components/InfoList/InfoList.d.ts +2 -0
- package/lib/FeedItem/PostInfo/components/InfoList/InfoList.types.d.ts +4 -0
- package/lib/FeedItem/utils.d.ts +4 -3
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/FeedItem/Marketplace/MarketplaceMoreOptions/InfoModal/InfoModal.d.ts +0 -7
- package/lib/FeedItem/Marketplace/MarketplaceMoreOptions/InfoModal/components/InfoList/InfoList.d.ts +0 -2
- /package/lib/FeedItem/{Marketplace/MarketplaceMoreOptions/InfoModal → PostInfo}/components/PublicInfoModal/PublicInfoModal.d.ts +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { MarketplaceDetailPageProps } from './MarketplaceDetailPage.types';
|
|
2
|
-
export declare function MarketplaceDetailPage({ ads, categories, feedItem, isChristmas, postData, profile, related, renderAdSlot, renderGallery, }: MarketplaceDetailPageProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function MarketplaceDetailPage({ ads, author, categories, feedItem, isChristmas, postData, profile, related, renderAdSlot, renderGallery, }: MarketplaceDetailPageProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default MarketplaceDetailPage;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { CategoriesResponse, NewsFeedResponse, PostImage, PostResponse, ProfileResponse, RelatedResponse } from '../../../../../../api/src/lib/core';
|
|
2
|
+
import { CategoriesResponse, NeighbourResponse, NewsFeedResponse, PostImage, PostResponse, ProfileResponse, RelatedResponse } from '../../../../../../api/src/lib/core';
|
|
3
3
|
export interface AdSlot {
|
|
4
4
|
adnuntius?: {
|
|
5
5
|
desktop: string;
|
|
@@ -12,6 +12,7 @@ export interface ProfileData {
|
|
|
12
12
|
}
|
|
13
13
|
export interface MarketplaceDetailPageProps {
|
|
14
14
|
ads: AdSlot[];
|
|
15
|
+
author: NeighbourResponse;
|
|
15
16
|
categories: CategoriesResponse;
|
|
16
17
|
feedItem: NewsFeedResponse;
|
|
17
18
|
isChristmas?: boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PostResponse } from '../../../../../../../api/src/lib/core';
|
|
2
|
+
export declare const getInfoData: (post: PostResponse) => {
|
|
3
|
+
author: {
|
|
4
|
+
name: string;
|
|
5
|
+
url: string;
|
|
6
|
+
};
|
|
7
|
+
createdAt: string;
|
|
8
|
+
hoodTitle: string;
|
|
9
|
+
status: string;
|
|
10
|
+
updatedAt: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface AuthorInfoItemTypes {
|
|
2
|
+
name: string;
|
|
3
|
+
url: string;
|
|
4
|
+
}
|
|
5
|
+
export interface PostInfoItemTypes {
|
|
6
|
+
author: AuthorInfoItemTypes;
|
|
7
|
+
createdAt: string;
|
|
8
|
+
hoodTitle: string;
|
|
9
|
+
status: string;
|
|
10
|
+
updatedAt: string;
|
|
11
|
+
}
|
|
12
|
+
export interface PostInfoTypes {
|
|
13
|
+
handleOpen: (open: boolean) => void;
|
|
14
|
+
isPublic: boolean;
|
|
15
|
+
item: PostInfoItemTypes;
|
|
16
|
+
open: boolean;
|
|
17
|
+
}
|
package/lib/FeedItem/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NewsFeedHoodMessage, NewsFeedResponse, PostResponse, RelatedResponse } from '../../../../api/src/lib/core';
|
|
1
|
+
import { NeighbourResponse, NewsFeedHoodMessage, NewsFeedResponse, PostResponse, RelatedResponse } from '../../../../api/src/lib/core';
|
|
2
2
|
import { Category } from '../../../../api/src/lib/core/v2/categories';
|
|
3
3
|
import { ProfileResponse } from '../../../../api/src/lib/core/v2/profile';
|
|
4
4
|
import { BadgeIconType } from '../../../../api/src/lib/types/newsFeeds';
|
|
@@ -14,18 +14,19 @@ export declare const getElapsedTime: (timestamp: string) => string | null;
|
|
|
14
14
|
export declare const isPublic: (item: PostResponse) => boolean;
|
|
15
15
|
export declare const getAuthorId: (profileUrl: string) => number;
|
|
16
16
|
type BadgesType = [BadgeIconType] | [BadgeIconType, BadgeIconType] | [BadgeIconType, BadgeIconType, BadgeIconType];
|
|
17
|
-
export declare const getAuthorData: (
|
|
17
|
+
export declare const getAuthorData: (author: NeighbourResponse) => PostAuthorProps;
|
|
18
18
|
export declare const getRelatedItemThumbnail: (item: NewsFeedHoodMessage) => string;
|
|
19
19
|
export declare const isBookmarked: (id: number, list: number[]) => boolean;
|
|
20
20
|
export declare const getRelatedBookmarks: (related: RelatedResponse) => number[] | [];
|
|
21
21
|
type GetFeedItemDataProps = {
|
|
22
|
+
author: NeighbourResponse;
|
|
22
23
|
badges?: BadgesType;
|
|
23
24
|
category?: Category;
|
|
24
25
|
feedItem: NewsFeedResponse;
|
|
25
26
|
postData: PostResponse;
|
|
26
27
|
profile?: ProfileResponse;
|
|
27
28
|
};
|
|
28
|
-
export declare const getFeedItemData: ({
|
|
29
|
+
export declare const getFeedItemData: ({ author, category, feedItem, postData, profile, }: GetFeedItemDataProps) => MarketplaceBodyTypes;
|
|
29
30
|
export declare const getProfileData: (profile?: ProfileResponse) => ProfileData | null;
|
|
30
31
|
export declare const getLink: (category: Category | undefined) => string;
|
|
31
32
|
export declare const getAggregatorTrackingName: (categorySlug?: string) => string;
|