@goodhood-web/nebenan-base 2.1.0-development.40 → 2.1.0-development.42

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,2 +1,2 @@
1
1
  import { MarketplaceAggregatorCardTypes } from './MarketplaceAggregatorCard.types';
2
- export default function MarketplaceAggregatorCard({ category, categoryLink, children, className, linkLabel, }: MarketplaceAggregatorCardTypes): import("react/jsx-runtime").JSX.Element;
2
+ export default function MarketplaceAggregatorCard({ category, categoryLink, categorySlug, children, className, linkLabel, }: MarketplaceAggregatorCardTypes): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
2
  export interface MarketplaceAggregatorCardTypes {
3
- category: string;
3
+ category?: string;
4
4
  categoryLink: string;
5
+ categorySlug?: string;
5
6
  children: ReactNode[] | ReactNode;
6
7
  className?: string;
7
8
  linkLabel: string;
@@ -1,2 +1,2 @@
1
1
  import { MarketplaceItemCardlessTypes } from './MarketplaceItemCardless.types';
2
- export default function MarketplaceItemCardless({ bookmarked, id, image, price, reserved, reservedText, timeStamp, title, }: MarketplaceItemCardlessTypes): import("react/jsx-runtime").JSX.Element;
2
+ export default function MarketplaceItemCardless({ bookmarked, categorySlug, id, image, price, reserved, reservedText, timeStamp, title, }: MarketplaceItemCardlessTypes): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  export interface MarketplaceItemCardlessTypes {
2
2
  bookmarked: boolean;
3
+ categorySlug?: string;
3
4
  id: number;
4
5
  image?: string;
5
6
  price: string;
@@ -1,2 +1,2 @@
1
- import { Post } from '../../../../../../../../../api/src/lib/core';
2
- export declare const InfoList: (post: Post) => import("react/jsx-runtime").JSX.Element;
1
+ import { PostResponse } from '../../../../../../../../../api/src/lib/core';
2
+ export declare const InfoList: (post: PostResponse) => import("react/jsx-runtime").JSX.Element;
@@ -1,16 +1,16 @@
1
- import { NewsFeedHoodMessage, NewsFeedResponse, Post, PostResponse, RelatedResponse } from '../../../../api/src/lib/core';
1
+ import { 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 { MarketplaceBodyTypes } from './Marketplace/MarketplaceBody/MarketplaceBody.types';
5
5
  import { ProfileData } from './Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.types';
6
6
  import { default as PostAuthorProps } from './PostAuthor/PostAuthor.types';
7
- export declare const isFreeItem: (post: Post) => boolean;
7
+ export declare const isFreeItem: (post: PostResponse) => boolean;
8
8
  export declare const isSold: (item: NewsFeedHoodMessage) => boolean;
9
- export declare const isReserved: (item: Post) => boolean;
9
+ export declare const isReserved: (item: PostResponse) => boolean;
10
10
  export declare const formatPrice: (number: number) => number;
11
- export declare const getPrice: (item: Post) => string;
11
+ export declare const getPrice: (item: PostResponse) => string;
12
12
  export declare const getElapsedTime: (timestamp: string) => string | null;
13
- export declare const getAuthorData: (post: Post) => PostAuthorProps;
13
+ export declare const getAuthorData: (post: PostResponse) => PostAuthorProps;
14
14
  export declare const getRelatedItemThumbnail: (item: NewsFeedHoodMessage) => string;
15
15
  export declare const isBookmarked: (id: number, list: number[]) => boolean;
16
16
  export declare const getRelatedBookmarks: (related: RelatedResponse) => number[] | [];
@@ -23,4 +23,5 @@ type GetFeedItemDataProps = {
23
23
  export declare const getFeedItemData: ({ category, feedItem, postData, profile, }: GetFeedItemDataProps) => MarketplaceBodyTypes;
24
24
  export declare const getProfileData: (profile?: ProfileResponse) => ProfileData | null;
25
25
  export declare const getLink: (category: Category | undefined) => string;
26
+ export declare const getAggregatorTrackingName: (categorySlug?: string) => string;
26
27
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "2.1.0-development.40",
3
+ "version": "2.1.0-development.42",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",