@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.
@@ -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,7 @@
1
+ type InfoModalProps = {
2
+ handleOpen: (open: boolean) => void;
3
+ id: number;
4
+ open: boolean;
5
+ };
6
+ export declare const InteractivePostInfo: ({ handleOpen, id, open }: InfoModalProps) => import("react/jsx-runtime").JSX.Element | undefined;
7
+ export {};
@@ -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,3 @@
1
+ import { PostInfoTypes } from './PostInfo.types';
2
+ declare const PostInfo: ({ handleOpen, isPublic, item, open }: PostInfoTypes) => import("react/jsx-runtime").JSX.Element;
3
+ export default PostInfo;
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ import { InfoListTypes } from './InfoList.types';
2
+ export declare const InfoList: ({ post }: InfoListTypes) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { PostInfoItemTypes } from '../../PostInfo.types';
2
+ export interface InfoListTypes {
3
+ post: PostInfoItemTypes;
4
+ }
@@ -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: (post: PostResponse, badges?: BadgesType) => PostAuthorProps;
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: ({ badges, category, feedItem, postData, profile, }: GetFeedItemDataProps) => MarketplaceBodyTypes;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "3.0.0-development.2",
3
+ "version": "3.0.0-development.21",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",