@goodhood-web/nebenan-base 3.0.0-development.97 → 3.0.0-development.99
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.js +46 -46
- package/index.mjs +3678 -3672
- package/lib/DesktopLayoutTwoColumn/DesktopLayoutTwoColumn.d.ts +1 -1
- package/lib/DesktopLayoutTwoColumn/DesktopLayoutTwoColumn.types.d.ts +0 -1
- package/lib/Feed/FeedItem/Marketplace/InteractiveElements/InteractiveCardHeader.d.ts +1 -1
- package/lib/Feed/FeedItem/Marketplace/MarketplaceActions/MarketplaceActions.types.d.ts +7 -7
- package/lib/Feed/FeedItem/Marketplace/MarketplaceActions/components/BuyerActions/BuyerActions.d.ts +6 -6
- package/lib/Feed/FeedItem/Marketplace/MarketplaceActions/components/SellerActions/SellerActions.d.ts +3 -3
- package/lib/Feed/FeedItem/Marketplace/MarketplaceActions/components/SellerActions/components/DeleteButton/DeleteButton.d.ts +2 -2
- package/lib/Feed/FeedItem/Marketplace/MarketplaceActions/components/SellerActions/components/DeleteButton/DeleteModal/DeleteModal.d.ts +2 -2
- package/lib/Feed/FeedItem/Marketplace/MarketplaceActions/components/SellerActions/components/EditButton/EditButton.d.ts +1 -1
- package/lib/Feed/FeedItem/Marketplace/MarketplaceActions/components/SellerActions/components/ReserveButton.d.ts +2 -2
- package/lib/Feed/FeedItem/Marketplace/MarketplaceBody/MarketplaceBody.types.d.ts +13 -13
- package/lib/Feed/FeedItem/Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.d.ts +1 -1
- package/lib/Feed/FeedItem/Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.types.d.ts +7 -6
- package/lib/Feed/FeedItem/Marketplace/MarketplaceDetailPage/components/MarketplaceContent/MarketplaceContent.d.ts +1 -1
- package/lib/Feed/FeedItem/Marketplace/MarketplaceMoreOptions/ComplaintModalComponent/ComplaintModalComponent.d.ts +1 -1
- package/lib/Feed/FeedItem/Marketplace/MarketplaceMoreOptions/MarketplaceMoreOptions.types.d.ts +1 -1
- package/lib/Feed/FeedItem/PostAuthor/PostAuthor.types.d.ts +0 -2
- package/lib/Feed/FeedItem/utils.d.ts +6 -4
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DesktopLayoutTwoColumnProps } from './DesktopLayoutTwoColumn.types';
|
|
2
|
-
declare const DesktopLayoutTwoColumn: ({ banner, children, leftAdSlot,
|
|
2
|
+
declare const DesktopLayoutTwoColumn: ({ banner, children, leftAdSlot, navbar, right, rightAdSlot, }: DesktopLayoutTwoColumnProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default DesktopLayoutTwoColumn;
|
|
@@ -3,7 +3,7 @@ type InteractiveCardHeaderProps = {
|
|
|
3
3
|
className?: string;
|
|
4
4
|
id: number;
|
|
5
5
|
isMine: boolean;
|
|
6
|
-
profile
|
|
6
|
+
profile: ProfileResponse;
|
|
7
7
|
};
|
|
8
8
|
export declare const InteractiveCardHeader: ({ className, id, isMine, profile, }: InteractiveCardHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -2,15 +2,15 @@ import { PostImage } from '../../../../../../../api/src/lib/core';
|
|
|
2
2
|
import { default as PostAuthorProps } from '../../PostAuthor/PostAuthor.types';
|
|
3
3
|
import { ProfileData } from '../MarketplaceDetailPage/MarketplaceDetailPage.types';
|
|
4
4
|
export type MarketplaceActionsTypes = {
|
|
5
|
-
author
|
|
6
|
-
body
|
|
5
|
+
author: PostAuthorProps;
|
|
6
|
+
body: string;
|
|
7
7
|
className?: string;
|
|
8
8
|
handleReserve?: () => void;
|
|
9
|
-
id
|
|
10
|
-
images
|
|
11
|
-
isFree
|
|
9
|
+
id: number;
|
|
10
|
+
images: PostImage[];
|
|
11
|
+
isFree: boolean;
|
|
12
12
|
isMine?: boolean;
|
|
13
|
-
isReserved
|
|
13
|
+
isReserved: boolean;
|
|
14
14
|
profileData?: ProfileData | null;
|
|
15
|
-
subject
|
|
15
|
+
subject: string;
|
|
16
16
|
};
|
package/lib/Feed/FeedItem/Marketplace/MarketplaceActions/components/BuyerActions/BuyerActions.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PostImage } from '../../../../../../../../../api/src/lib/core';
|
|
2
2
|
import { default as PostAuthorProps } from '../../../../PostAuthor/PostAuthor.types';
|
|
3
3
|
type BuyerActionsProps = {
|
|
4
|
-
author
|
|
5
|
-
body
|
|
6
|
-
id
|
|
7
|
-
images
|
|
8
|
-
subject
|
|
4
|
+
author: PostAuthorProps;
|
|
5
|
+
body: string;
|
|
6
|
+
id: number;
|
|
7
|
+
images: PostImage[];
|
|
8
|
+
subject: string;
|
|
9
9
|
};
|
|
10
|
-
export declare const BuyerActions: ({ author, body, id, images, subject, }: BuyerActionsProps) => import("react/jsx-runtime").JSX.Element
|
|
10
|
+
export declare const BuyerActions: ({ author, body, id, images, subject, }: BuyerActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export {};
|
package/lib/Feed/FeedItem/Marketplace/MarketplaceActions/components/SellerActions/SellerActions.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const SellerActions: ({ handleReserve, id, isFree, isReserved, }: {
|
|
2
2
|
handleReserve?: () => void;
|
|
3
|
-
id
|
|
4
|
-
isFree
|
|
5
|
-
isReserved
|
|
3
|
+
id: number;
|
|
4
|
+
isFree: boolean;
|
|
5
|
+
isReserved: boolean;
|
|
6
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,20 +3,20 @@ import { default as PostAuthorProps } from '../../PostAuthor/PostAuthor.types';
|
|
|
3
3
|
import { ProfileData } from '../MarketplaceDetailPage/MarketplaceDetailPage.types';
|
|
4
4
|
export interface MarketplaceBodyTypes {
|
|
5
5
|
author?: PostAuthorProps;
|
|
6
|
-
body
|
|
6
|
+
body: string;
|
|
7
7
|
category?: string;
|
|
8
8
|
embeds?: EmbedResponse[];
|
|
9
9
|
handleReserve?: () => void;
|
|
10
|
-
id
|
|
11
|
-
images
|
|
12
|
-
isBookmarked
|
|
13
|
-
isFree
|
|
14
|
-
isMine
|
|
15
|
-
isPublic
|
|
16
|
-
isReserved
|
|
17
|
-
levelOfDetail
|
|
18
|
-
price
|
|
19
|
-
profileData
|
|
20
|
-
subject
|
|
21
|
-
timeStamp
|
|
10
|
+
id: number;
|
|
11
|
+
images: PostImage[];
|
|
12
|
+
isBookmarked: boolean;
|
|
13
|
+
isFree: boolean;
|
|
14
|
+
isMine: boolean;
|
|
15
|
+
isPublic: boolean;
|
|
16
|
+
isReserved: boolean;
|
|
17
|
+
levelOfDetail: LevelOfDetail;
|
|
18
|
+
price: string;
|
|
19
|
+
profileData: ProfileData | null;
|
|
20
|
+
subject: string;
|
|
21
|
+
timeStamp: string | null;
|
|
22
22
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { MarketplaceDetailPageProps } from './MarketplaceDetailPage.types';
|
|
2
|
-
export declare function MarketplaceDetailPage({ ads, embeds, interactions, isBusinessProfile,
|
|
2
|
+
export declare function MarketplaceDetailPage({ ads, author, categories, embeds, interactions, isBusinessProfile, postData, profile, related, renderAdSlot, renderGallery, }: MarketplaceDetailPageProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default MarketplaceDetailPage;
|
package/lib/Feed/FeedItem/Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { EmbedResponse, InteractionResponse, PostImage, PostResponse, ProfileResponse, RelatedPostsResponse } from '../../../../../../../api/src/lib/core';
|
|
2
|
+
import { BusinessProfilesResponse, CategoriesResponse, EmbedResponse, InteractionResponse, NeighbourResponse, PostImage, PostResponse, ProfileResponse, RelatedPostsResponse } from '../../../../../../../api/src/lib/core';
|
|
3
3
|
export interface AdSlot {
|
|
4
4
|
adnuntius?: {
|
|
5
5
|
desktop: string;
|
|
@@ -12,13 +12,14 @@ export interface ProfileData {
|
|
|
12
12
|
}
|
|
13
13
|
export interface MarketplaceDetailPageProps {
|
|
14
14
|
ads: AdSlot[];
|
|
15
|
+
author: NeighbourResponse | BusinessProfilesResponse;
|
|
16
|
+
categories: CategoriesResponse;
|
|
15
17
|
embeds?: EmbedResponse[];
|
|
16
|
-
interactions
|
|
18
|
+
interactions: InteractionResponse;
|
|
17
19
|
isBusinessProfile: boolean;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
related?: RelatedPostsResponse;
|
|
20
|
+
postData: PostResponse;
|
|
21
|
+
profile: ProfileResponse;
|
|
22
|
+
related: RelatedPostsResponse;
|
|
22
23
|
renderAdSlot: (slot: AdSlot) => ReactElement;
|
|
23
24
|
renderGallery: (images: PostImage[]) => ReactElement;
|
|
24
25
|
}
|
|
@@ -2,6 +2,6 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
import { MarketplaceBodyTypes } from '../../../MarketplaceBody/MarketplaceBody.types';
|
|
3
3
|
export interface MarketplaceContentProps {
|
|
4
4
|
children?: ReactElement;
|
|
5
|
-
marketplaceBodyItems
|
|
5
|
+
marketplaceBodyItems: MarketplaceBodyTypes;
|
|
6
6
|
}
|
|
7
7
|
export declare const MarketplaceContent: ({ children, marketplaceBodyItems, }: MarketplaceContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -22,8 +22,6 @@ export default interface PostAuthorProps {
|
|
|
22
22
|
id?: number;
|
|
23
23
|
metadata?: ReactNode;
|
|
24
24
|
onMoreClick?: IconButtonProps['onClick'];
|
|
25
|
-
privateMessageUrl?: string;
|
|
26
|
-
profileUrl?: string;
|
|
27
25
|
rating?: RatingProps;
|
|
28
26
|
showMoreIcon?: boolean;
|
|
29
27
|
thumbnail?: ThumbnailProps & Pick<LinkProps, 'onClick' | 'ariaLabel'>;
|
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
import { BusinessProfilesResponse, InteractionResponse, NeighbourResponse, PostResponse, ProfileResponse, Section } from '../../../../../api/src/lib/core';
|
|
2
|
+
import { Category } from '../../../../../api/src/lib/core/v2/categories';
|
|
2
3
|
import { BadgeIconType } from '../../../../../api/src/lib/types/newsFeeds';
|
|
3
4
|
import { MarketplaceBodyTypes } from './Marketplace/MarketplaceBody/MarketplaceBody.types';
|
|
4
5
|
import { AdSlot } from './Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.types';
|
|
5
6
|
type BadgesType = [BadgeIconType] | [BadgeIconType, BadgeIconType] | [BadgeIconType, BadgeIconType, BadgeIconType];
|
|
6
7
|
type GetFeedItemDataProps = {
|
|
7
|
-
author
|
|
8
|
+
author: NeighbourResponse | BusinessProfilesResponse;
|
|
8
9
|
badges?: BadgesType;
|
|
9
10
|
bookmarkList: number[] | [];
|
|
11
|
+
category?: Category;
|
|
10
12
|
isBusinessProfile: boolean;
|
|
11
|
-
postData
|
|
13
|
+
postData: PostResponse;
|
|
12
14
|
profile?: ProfileResponse;
|
|
13
15
|
};
|
|
14
16
|
type InsertAdsProps = {
|
|
15
17
|
ads: AdSlot[];
|
|
16
18
|
positions: number[];
|
|
17
|
-
sections: Section[]
|
|
19
|
+
sections: Section[];
|
|
18
20
|
};
|
|
19
21
|
type InsertAds = (Section | {
|
|
20
22
|
ad: AdSlot;
|
|
21
23
|
})[];
|
|
22
24
|
export declare const getAuthorId: (profileUrl: string) => number;
|
|
23
25
|
export declare const getRelatedBookmarks: (interactions: InteractionResponse) => number[] | [];
|
|
24
|
-
export declare const getFeedItemData: ({ bookmarkList, isBusinessProfile, postData, profile, }: GetFeedItemDataProps) => MarketplaceBodyTypes
|
|
26
|
+
export declare const getFeedItemData: ({ author, bookmarkList, category, isBusinessProfile, postData, profile, }: GetFeedItemDataProps) => MarketplaceBodyTypes;
|
|
25
27
|
export declare const getAggregatorTrackingName: (categorySlug?: string) => string;
|
|
26
28
|
export declare const insertAds: ({ ads, positions, sections }: InsertAdsProps) => InsertAds;
|
|
27
29
|
export declare const isAdSection: (section: Section | {
|