@goodhood-web/nebenan-base 3.0.0-development.7 → 3.0.0-development.71
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 +16 -8
- package/index.js +116 -99
- package/index.mjs +21200 -14451
- package/lib/Attachments/LinkAttachment/LinkAttachment.d.ts +3 -0
- package/lib/Attachments/LinkAttachment/LinkAttachment.types.d.ts +12 -0
- package/lib/ComplaintModal/ComplaintModal.d.ts +1 -1
- package/lib/ComplaintModal/ComplaintModal.types.d.ts +7 -1
- package/lib/Feed/FeedItem/Marketplace/InteractiveElements/InteractiveCardHeader.d.ts +9 -0
- package/lib/Feed/FeedItem/Marketplace/MarketplaceActions/MarketplaceActions.d.ts +2 -0
- package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceActions/MarketplaceActions.types.d.ts +4 -0
- package/lib/Feed/FeedItem/Marketplace/MarketplaceActions/components/BuyerActions/BuyerActions.d.ts +11 -0
- package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceAggregatorCard/MarketplaceAggregatorCard.d.ts +1 -1
- package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceAggregatorCard/MarketplaceAggregatorCard.types.d.ts +2 -2
- package/lib/Feed/FeedItem/Marketplace/MarketplaceBody/MarketplaceBody.d.ts +3 -0
- package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceBody/MarketplaceBody.types.d.ts +3 -1
- package/lib/Feed/FeedItem/Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.d.ts +3 -0
- package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.types.d.ts +6 -4
- package/lib/Feed/FeedItem/Marketplace/MarketplaceDetailPage/components/CardAggregator/CardAggregator.d.ts +7 -0
- package/lib/Feed/FeedItem/Marketplace/MarketplaceItemCardless/MarketplaceItemCardless.d.ts +2 -0
- package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceItemCardless/MarketplaceItemCardless.types.d.ts +3 -1
- package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceMoreOptions/ComplaintModalComponent/ComplaintModalComponent.d.ts +3 -1
- package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceMoreOptions/InteractivePostInfo/utils.d.ts +1 -1
- package/lib/Feed/FeedItem/Marketplace/MarketplaceMoreOptions/MarketplaceMoreOptions.d.ts +3 -0
- package/lib/Feed/FeedItem/Marketplace/MarketplaceMoreOptions/MarketplaceMoreOptions.types.d.ts +6 -0
- package/lib/{FeedItem → Feed/FeedItem}/PostAuthor/PostAuthor.types.d.ts +5 -5
- package/lib/Feed/FeedItem/utils.d.ts +34 -0
- package/lib/Feed/FeedRouterProvider/FeedRouterContext.d.ts +2 -0
- package/lib/Feed/FeedRouterProvider/FeedRouterProvider.d.ts +5 -0
- package/lib/Feed/FeedRouterProvider/FeedRouterProvider.type.d.ts +3 -0
- package/lib/Feed/FeedRouterProvider/useNavigate.d.ts +1 -0
- package/lib/Feed/GridFeed/GridFeed.d.ts +3 -0
- package/lib/Feed/GridFeed/GridFeed.types.d.ts +30 -0
- package/lib/Feed/GridFeed/GridFeedAggregator/GridFeedAggregator.d.ts +2 -0
- package/lib/Feed/GridFeed/GridFeedAggregator/GridFeedAggregator.types.d.ts +12 -0
- package/lib/Feed/GridFeed/GridFeedAggregator/components/FeedDynamicRenderer/FeedDynamicRenderer.d.ts +3 -0
- package/lib/Feed/GridFeed/GridFeedAggregator/components/FeedDynamicRenderer/FeedDynamicRenderer.types.d.ts +6 -0
- package/lib/Feed/GridFeed/GridFeedAggregator/components/FeedEmptyStateCard/FeedEmptyStateCard.d.ts +2 -0
- package/lib/Feed/GridFeed/GridFeedAggregator/components/FeedEmptyStateCard/FeedEmptyStateCard.types.d.ts +6 -0
- package/lib/Feed/GridFeed/GridFeedAggregator/components/FeedEmptyStateCard/utils.d.ts +2 -0
- package/lib/Feed/GridFeed/GridFeedAggregator/utils.d.ts +1 -0
- package/lib/Feed/GridFeed/GridFeedDynamicRenderer/GridFeedDynamicRenderer.d.ts +3 -0
- package/lib/Feed/GridFeed/GridFeedDynamicRenderer/GridFeedDynamicRenderer.types.d.ts +4 -0
- package/lib/Feed/GridFeed/utils.d.ts +5 -0
- package/lib/Feed/utils.d.ts +9 -0
- package/lib/Forms/DynamicForm/DynamicForm.d.ts +4 -0
- package/lib/Forms/DynamicForm/DynamicForm.types.d.ts +6 -0
- package/lib/Forms/Fields/FormCheckboxInput.d.ts +5 -0
- package/lib/Forms/Fields/FormInputFieldSpecial.d.ts +5 -0
- package/lib/Forms/Fields/FormRadioButton.d.ts +5 -0
- package/lib/Forms/Fields/FormRadioButtonCluster.d.ts +5 -0
- package/lib/Forms/Fields/FormTextAreaInput.d.ts +5 -0
- package/lib/Forms/Fields/FormTextInput.d.ts +4 -0
- package/lib/Forms/Fields/FormToggleInput.d.ts +5 -0
- package/lib/Forms/Fields/index.d.ts +8 -0
- package/lib/Forms/Form/Form.d.ts +3 -0
- package/lib/Forms/Form/Form.types.d.ts +7 -0
- package/lib/Forms/GridForm/GridForm.d.ts +3 -0
- package/lib/Forms/GridForm/GridForm.types.d.ts +3 -0
- package/lib/Forms/Wizard/Wizard.d.ts +3 -0
- package/lib/Forms/Wizard/Wizard.types.d.ts +35 -0
- package/lib/Forms/Wizard/WizardContext.d.ts +8 -0
- package/lib/Forms/Wizard/index.d.ts +3 -0
- package/lib/Forms/Wizard/useWizard.d.ts +5 -0
- package/lib/Forms/index.d.ts +5 -0
- package/lib/Grids/Grid/Grid.d.ts +3 -0
- package/lib/Grids/Grid/Grid.types.d.ts +10 -0
- package/lib/Grids/Grid/GridItem/GridItem.d.ts +3 -0
- package/lib/Grids/Grid/GridItem/GridItem.types.d.ts +6 -0
- package/lib/HtmlContent/HtmlContent.d.ts +3 -0
- package/lib/HtmlContent/HtmlContent.types.d.ts +4 -0
- package/lib/HtmlContent/components/InnerHtmlScript.d.ts +18 -0
- package/lib/MarkdownRichText/MarkdownRichText.d.ts +5 -0
- package/lib/MarkdownRichText/MarkdownRichText.types.d.ts +6 -0
- package/lib/NPEAggregator/NPEAggregator.d.ts +5 -9
- package/lib/NPEAggregator/NPEAggregator.types.d.ts +9 -29
- package/lib/NPEAggregator/NPEAggregatorCardAddress/NPEAggregatorCardAddress.d.ts +2 -0
- package/lib/NPEAggregator/NPEAggregatorCardAddress/types.d.ts +2 -0
- package/lib/NPEAggregator/NPEAggregatorCardRecommendation/NPEAggregatorCardRecommendation.d.ts +2 -0
- package/lib/NPEAggregator/NPEAggregatorCardRecommendation/types.d.ts +2 -0
- package/lib/PointOfInterest/PointOfInterest.d.ts +1 -1
- package/lib/PointOfInterest/PointOfInterest.types.d.ts +2 -1
- package/lib/Profile/Profile.types.d.ts +1 -1
- package/lib/Reactions/ReactionTabList/ReactionTabList.d.ts +1 -1
- package/lib/Reactions/ReactionTabList/ReactionTabList.types.d.ts +1 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/FeedItem/Marketplace/InteractiveElements/InteractiveCardHeader.d.ts +0 -7
- package/lib/FeedItem/Marketplace/MarketplaceActions/MarketplaceActions.d.ts +0 -2
- package/lib/FeedItem/Marketplace/MarketplaceActions/components/BuyerActions/BuyerActions.d.ts +0 -4
- package/lib/FeedItem/Marketplace/MarketplaceBody/MarketplaceBody.d.ts +0 -3
- package/lib/FeedItem/Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.d.ts +0 -3
- package/lib/FeedItem/Marketplace/MarketplaceDetailPage/components/CardAggregator/CardAggregator.d.ts +0 -10
- package/lib/FeedItem/Marketplace/MarketplaceDetailPage/components/CardAggregator/utils.d.ts +0 -5
- package/lib/FeedItem/Marketplace/MarketplaceItemCardless/MarketplaceItemCardless.d.ts +0 -2
- package/lib/FeedItem/Marketplace/MarketplaceMoreOptions/MarketplaceMoreOptions.d.ts +0 -3
- package/lib/FeedItem/Marketplace/MarketplaceMoreOptions/MarketplaceMoreOptions.types.d.ts +0 -4
- package/lib/FeedItem/Marketplace/MarketplaceRouterProvider/MarketplaceRouterProvider.d.ts +0 -9
- package/lib/FeedItem/Marketplace/MarketplaceRouterProvider/useNavigate.d.ts +0 -1
- package/lib/FeedItem/utils.d.ts +0 -32
- package/lib/NPEAggregator/NPEAggregatorCardV1/NPEAggregatorCardV1.d.ts +0 -2
- package/lib/NPEAggregator/NPEAggregatorCardV1/types.d.ts +0 -2
- package/lib/NPEAggregator/NPEAggregatorCardV2/NPEAggregatorCardV2.d.ts +0 -2
- package/lib/NPEAggregator/NPEAggregatorCardV2/types.d.ts +0 -2
- package/lib/NPEAggregator/NPEAggregatorCardV3/NPEAggregatorCardV3.d.ts +0 -2
- package/lib/NPEAggregator/NPEAggregatorCardV3/types.d.ts +0 -2
- package/lib/NPEAggregator/NPEAggregatorCardV4/NPEAggregatorCardV4.d.ts +0 -2
- package/lib/NPEAggregator/NPEAggregatorCardV4/types.d.ts +0 -2
- package/lib/PointOfInterest/assets/index.d.ts +0 -4
- package/lib/PointOfInterest/components/POIPlaceholder.d.ts +0 -3
- package/lib/PointOfInterest/components/POIPlaceholder.types.d.ts +0 -4
- /package/lib/{FeedItem → Feed/FeedItem}/Marketplace/InteractiveElements/InteractiveBookmark.d.ts +0 -0
- /package/lib/{FeedItem → Feed/FeedItem}/Marketplace/InteractiveElements/InteractiveEmptyState/InteractiveEmptyState.d.ts +0 -0
- /package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceActions/components/SellerActions/SellerActions.d.ts +0 -0
- /package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceActions/components/SellerActions/components/DeleteButton/DeleteButton.d.ts +0 -0
- /package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceActions/components/SellerActions/components/DeleteButton/DeleteModal/DeleteModal.d.ts +0 -0
- /package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceActions/components/SellerActions/components/EditButton/EditButton.d.ts +0 -0
- /package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceActions/components/SellerActions/components/ReserveButton.d.ts +0 -0
- /package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceActions/constants.d.ts +0 -0
- /package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceAggregatorCard/MarketplaceAggregatorCard.example.d.ts +0 -0
- /package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceDetailPage/components/MarketplaceContent/MarketplaceContent.d.ts +0 -0
- /package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceMoreOptions/HideModal/HideModal.d.ts +0 -0
- /package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceMoreOptions/InteractivePostInfo/InteractivePostInfo.d.ts +0 -0
- /package/lib/{FeedItem → Feed/FeedItem}/PostAuthor/PostAuthor.d.ts +0 -0
- /package/lib/{FeedItem → Feed/FeedItem}/PostAuthor/Rating/Rating.d.ts +0 -0
- /package/lib/{FeedItem → Feed/FeedItem}/PostAuthor/Rating/Rating.types.d.ts +0 -0
- /package/lib/{FeedItem → Feed/FeedItem}/PostInfo/PostInfo.d.ts +0 -0
- /package/lib/{FeedItem → Feed/FeedItem}/PostInfo/PostInfo.types.d.ts +0 -0
- /package/lib/{FeedItem → Feed/FeedItem}/PostInfo/components/InfoList/InfoList.d.ts +0 -0
- /package/lib/{FeedItem → Feed/FeedItem}/PostInfo/components/InfoList/InfoList.types.d.ts +0 -0
- /package/lib/{FeedItem → Feed/FeedItem}/PostInfo/components/PublicInfoModal/PublicInfoModal.d.ts +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ComplaintModalProps } from './ComplaintModal.types';
|
|
2
|
-
declare const ComplaintModal: ({ complaintReasons, handleModalClick, open, subjectId, }: ComplaintModalProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
2
|
+
declare const ComplaintModal: ({ complaintReasons, handleModalClick, open, reporter, subjectId, }: ComplaintModalProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
3
3
|
export default ComplaintModal;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import { ComplaintReason } from '../../../../api/src/lib/core';
|
|
1
|
+
import { ComplaintReason } from '../../../../api/src/lib/core/public/v1/types';
|
|
2
2
|
export interface ComplaintModalProps {
|
|
3
3
|
complaintReasons?: ComplaintReason[];
|
|
4
4
|
handleModalClick: () => void;
|
|
5
5
|
open: boolean;
|
|
6
|
+
reporter?: {
|
|
7
|
+
email: string;
|
|
8
|
+
firstname: string;
|
|
9
|
+
id: number;
|
|
10
|
+
lastname: string;
|
|
11
|
+
};
|
|
6
12
|
subjectId: number;
|
|
7
13
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ProfileResponse } from '../../../../../../../api/src/lib/core';
|
|
2
|
+
type InteractiveCardHeaderProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
id: number;
|
|
5
|
+
isMine: boolean;
|
|
6
|
+
profile: ProfileResponse;
|
|
7
|
+
};
|
|
8
|
+
export declare const InteractiveCardHeader: ({ className, id, isMine, profile, }: InteractiveCardHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceActions/MarketplaceActions.types.d.ts
RENAMED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
import { PostImage } from '../../../../../../../api/src/lib/core';
|
|
1
2
|
import { default as PostAuthorProps } from '../../PostAuthor/PostAuthor.types';
|
|
2
3
|
import { ProfileData } from '../MarketplaceDetailPage/MarketplaceDetailPage.types';
|
|
3
4
|
export type MarketplaceActionsTypes = {
|
|
4
5
|
author: PostAuthorProps;
|
|
6
|
+
body: string;
|
|
5
7
|
className?: string;
|
|
6
8
|
handleReserve?: () => void;
|
|
7
9
|
id: number;
|
|
10
|
+
images: PostImage[];
|
|
8
11
|
isFree: boolean;
|
|
9
12
|
isMine?: boolean;
|
|
10
13
|
isReserved: boolean;
|
|
11
14
|
profileData?: ProfileData | null;
|
|
15
|
+
subject: string;
|
|
12
16
|
};
|
package/lib/Feed/FeedItem/Marketplace/MarketplaceActions/components/BuyerActions/BuyerActions.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PostImage } from '../../../../../../../../../api/src/lib/core';
|
|
2
|
+
import { default as PostAuthorProps } from '../../../../PostAuthor/PostAuthor.types';
|
|
3
|
+
type BuyerActionsProps = {
|
|
4
|
+
author: PostAuthorProps;
|
|
5
|
+
body: string;
|
|
6
|
+
id: number;
|
|
7
|
+
images: PostImage[];
|
|
8
|
+
subject: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const BuyerActions: ({ author, body, id, images, subject, }: BuyerActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { MarketplaceAggregatorCardTypes } from './MarketplaceAggregatorCard.types';
|
|
2
|
-
export default function MarketplaceAggregatorCard({ category, categoryLink, categorySlug,
|
|
2
|
+
export default function MarketplaceAggregatorCard({ category, categoryLink, categorySlug, className, items, linkLabel, }: MarketplaceAggregatorCardTypes): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MarketplaceItemCardlessTypes } from '../MarketplaceItemCardless/MarketplaceItemCardless.types';
|
|
2
2
|
export interface MarketplaceAggregatorCardTypes {
|
|
3
3
|
category?: string;
|
|
4
4
|
categoryLink: string;
|
|
5
5
|
categorySlug?: string;
|
|
6
|
-
children: ReactNode[] | ReactNode;
|
|
7
6
|
className?: string;
|
|
7
|
+
items: MarketplaceItemCardlessTypes[];
|
|
8
8
|
linkLabel: string;
|
|
9
9
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { MarketplaceBodyTypes } from './MarketplaceBody.types';
|
|
2
|
+
declare const MarketplaceBody: ({ author, body, category, embeds, handleReserve, id, images, isBookmarked, isFree, isMine, isPublic, isReserved, price, profileData, subject, timeStamp, }: MarketplaceBodyTypes) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default MarketplaceBody;
|
package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceBody/MarketplaceBody.types.d.ts
RENAMED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { LevelOfDetail } from '
|
|
1
|
+
import { EmbedResponse, LevelOfDetail, 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 interface MarketplaceBodyTypes {
|
|
5
5
|
author?: PostAuthorProps;
|
|
6
6
|
body: string;
|
|
7
7
|
category?: string;
|
|
8
|
+
embeds?: EmbedResponse[];
|
|
8
9
|
handleReserve?: () => void;
|
|
9
10
|
id: number;
|
|
11
|
+
images: PostImage[];
|
|
10
12
|
isBookmarked: boolean;
|
|
11
13
|
isFree: boolean;
|
|
12
14
|
isMine: boolean;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { MarketplaceDetailPageProps } from './MarketplaceDetailPage.types';
|
|
2
|
+
export declare function MarketplaceDetailPage({ ads, author, categories, embeds, interactions, isBusinessProfile, postData, profile, related, renderAdSlot, renderGallery, }: MarketplaceDetailPageProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default MarketplaceDetailPage;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { CategoriesResponse,
|
|
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,12 +12,14 @@ export interface ProfileData {
|
|
|
12
12
|
}
|
|
13
13
|
export interface MarketplaceDetailPageProps {
|
|
14
14
|
ads: AdSlot[];
|
|
15
|
+
author: NeighbourResponse | BusinessProfilesResponse;
|
|
15
16
|
categories: CategoriesResponse;
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
embeds?: EmbedResponse[];
|
|
18
|
+
interactions: InteractionResponse;
|
|
19
|
+
isBusinessProfile: boolean;
|
|
18
20
|
postData: PostResponse;
|
|
19
21
|
profile: ProfileResponse;
|
|
20
|
-
related:
|
|
22
|
+
related: RelatedPostsResponse;
|
|
21
23
|
renderAdSlot: (slot: AdSlot) => ReactElement;
|
|
22
24
|
renderGallery: (images: PostImage[]) => ReactElement;
|
|
23
25
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Section } from '../../../../../../../../../api/src/lib/core';
|
|
2
|
+
type CardAggregatorProps = {
|
|
3
|
+
relatedBookmarks: number[];
|
|
4
|
+
section: Section;
|
|
5
|
+
};
|
|
6
|
+
export declare const CardAggregator: ({ relatedBookmarks, section }: CardAggregatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { MarketplaceItemCardlessTypes } from './MarketplaceItemCardless.types';
|
|
2
|
+
export default function MarketplaceItemCardless({ bookmarked, id, image, onClick, price, reserved, reservedText, timeStamp, title, }: MarketplaceItemCardlessTypes): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export interface MarketplaceItemCardlessTypes {
|
|
2
2
|
bookmarked: boolean;
|
|
3
|
-
|
|
3
|
+
content?: React.ReactNode;
|
|
4
4
|
id: number;
|
|
5
5
|
image?: string;
|
|
6
|
+
onClick?: () => void;
|
|
6
7
|
price: string;
|
|
7
8
|
reserved: boolean;
|
|
8
9
|
reservedText: string;
|
|
9
10
|
timeStamp: string;
|
|
10
11
|
title: string;
|
|
12
|
+
type?: string;
|
|
11
13
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { ProfileResponse } from '../../../../../../../../api/src/lib/core';
|
|
2
|
+
export declare const ComplaintModalComponent: ({ handleReport, id, open, profile, }: {
|
|
2
3
|
handleReport: () => void;
|
|
3
4
|
id: number;
|
|
4
5
|
open: boolean;
|
|
6
|
+
profile: ProfileResponse;
|
|
5
7
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { BadgeProps } from '
|
|
3
|
-
import { LinkProps } from '
|
|
4
|
-
import { IconButtonProps } from '
|
|
5
|
-
import { ThumbnailCircularProps, ThumbnailSquareProps } from '
|
|
6
|
-
import {
|
|
2
|
+
import { BadgeProps } from '../../../../../../ui/src/lib/Atoms/Badges/Badge/Badge.types';
|
|
3
|
+
import { LinkProps } from '../../../../../../ui/src/lib/Atoms/Buttons/Button/Button.types';
|
|
4
|
+
import { IconButtonProps } from '../../../../../../ui/src/lib/Atoms/Buttons/IconButton/IconButton.types';
|
|
5
|
+
import { ThumbnailCircularProps, ThumbnailSquareProps } from '../../../../../../ui/src/lib/Atoms/Content/Thumbnail/Thumbnail.type';
|
|
6
|
+
import { ThumbnailWrapperProps } from '../../../../../../ui/src/lib/Atoms/Content/ThumbnailWrapper/ThumbnailWrapper.types';
|
|
7
7
|
import { default as RatingProps } from './Rating/Rating.types';
|
|
8
8
|
type ThumbnailProps = (ThumbnailCircularProps & {
|
|
9
9
|
thumbnailType: 'thumbnailCircular';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { BusinessProfilesResponse, InteractionResponse, NeighbourResponse, PostResponse, ProfileResponse, Section } from '../../../../../api/src/lib/core';
|
|
2
|
+
import { Category } from '../../../../../api/src/lib/core/v2/categories';
|
|
3
|
+
import { BadgeIconType } from '../../../../../api/src/lib/types/newsFeeds';
|
|
4
|
+
import { MarketplaceBodyTypes } from './Marketplace/MarketplaceBody/MarketplaceBody.types';
|
|
5
|
+
import { AdSlot } from './Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.types';
|
|
6
|
+
type BadgesType = [BadgeIconType] | [BadgeIconType, BadgeIconType] | [BadgeIconType, BadgeIconType, BadgeIconType];
|
|
7
|
+
type GetFeedItemDataProps = {
|
|
8
|
+
author: NeighbourResponse | BusinessProfilesResponse;
|
|
9
|
+
badges?: BadgesType;
|
|
10
|
+
bookmarkList: number[] | [];
|
|
11
|
+
category?: Category;
|
|
12
|
+
isBusinessProfile: boolean;
|
|
13
|
+
postData: PostResponse;
|
|
14
|
+
profile?: ProfileResponse;
|
|
15
|
+
};
|
|
16
|
+
type InsertAdsProps = {
|
|
17
|
+
ads: AdSlot[];
|
|
18
|
+
positions: number[];
|
|
19
|
+
sections: Section[];
|
|
20
|
+
};
|
|
21
|
+
type InsertAds = (Section | {
|
|
22
|
+
ad: AdSlot;
|
|
23
|
+
})[];
|
|
24
|
+
export declare const getAuthorId: (profileUrl: string) => number;
|
|
25
|
+
export declare const getRelatedBookmarks: (interactions: InteractionResponse) => number[] | [];
|
|
26
|
+
export declare const getFeedItemData: ({ author, bookmarkList, category, isBusinessProfile, postData, profile, }: GetFeedItemDataProps) => MarketplaceBodyTypes;
|
|
27
|
+
export declare const getAggregatorTrackingName: (categorySlug?: string) => string;
|
|
28
|
+
export declare const insertAds: ({ ads, positions, sections }: InsertAdsProps) => InsertAds;
|
|
29
|
+
export declare const isAdSection: (section: Section | {
|
|
30
|
+
ad: AdSlot;
|
|
31
|
+
}) => section is {
|
|
32
|
+
ad: AdSlot;
|
|
33
|
+
};
|
|
34
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useNavigate: () => (path: string, state?: object) => void;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { NewsFeedHoodMessage } from '../../../../../api/src/lib/core';
|
|
2
|
+
import { MarketplaceItemCardlessTypes } from '../FeedItem/Marketplace/MarketplaceItemCardless/MarketplaceItemCardless.types';
|
|
3
|
+
export declare const GridFeedTypeEnum: {
|
|
4
|
+
readonly event: "event";
|
|
5
|
+
readonly feed: "feed";
|
|
6
|
+
readonly group: "group";
|
|
7
|
+
readonly marketplace: "marketplace";
|
|
8
|
+
readonly post: "post";
|
|
9
|
+
};
|
|
10
|
+
export interface FeedItems {
|
|
11
|
+
[key: number]: NewsFeedHoodMessage & {
|
|
12
|
+
is_bookmarked: boolean;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface AdItem {
|
|
16
|
+
block?: number;
|
|
17
|
+
content: React.ReactNode;
|
|
18
|
+
id: string;
|
|
19
|
+
position: number;
|
|
20
|
+
type?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface GridFeedProps {
|
|
23
|
+
ads?: AdItem[];
|
|
24
|
+
feedItems: FeedItems;
|
|
25
|
+
feedType: keyof typeof GridFeedTypeEnum;
|
|
26
|
+
items: number[];
|
|
27
|
+
}
|
|
28
|
+
export type ChunkItem = number | AdItem;
|
|
29
|
+
export type ResultType = Array<ChunkItem[] | AdItem>;
|
|
30
|
+
export type GridFeedMarketplaceItem = MarketplaceItemCardlessTypes | AdItem;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GridFeedMarketplaceItem, GridFeedProps } from '../GridFeed.types';
|
|
2
|
+
export type GridFeedAggregatorProps = {
|
|
3
|
+
feedType: GridFeedProps['feedType'];
|
|
4
|
+
items: GridFeedMarketplaceItem[];
|
|
5
|
+
};
|
|
6
|
+
export declare const GridFeedAggregatorNavigateEnum: {
|
|
7
|
+
readonly event: "";
|
|
8
|
+
readonly feed: "";
|
|
9
|
+
readonly group: "";
|
|
10
|
+
readonly marketplace: "/feed/marketplace";
|
|
11
|
+
readonly post: "";
|
|
12
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MarketplaceItemCardlessTypes } from '../../../../FeedItem/Marketplace/MarketplaceItemCardless/MarketplaceItemCardless.types';
|
|
2
|
+
import { AdItem, GridFeedProps } from '../../../GridFeed.types';
|
|
3
|
+
export interface FeedDynamicRendererProps {
|
|
4
|
+
feedType: GridFeedProps['feedType'];
|
|
5
|
+
item: MarketplaceItemCardlessTypes | AdItem;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const showFeedEmptyStateCard: (isDesktop: boolean, length: number) => boolean;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { GridFeedDynamicRendererProps } from './GridFeedDynamicRenderer.types';
|
|
2
|
+
declare const GridFeedDynamicRenderer: ({ feedItem, feedItems, feedType, }: GridFeedDynamicRendererProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
3
|
+
export default GridFeedDynamicRenderer;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AdItem, ChunkItem, FeedItems, GridFeedMarketplaceItem, ResultType } from './GridFeed.types';
|
|
2
|
+
export declare const splitIntoChunks: (items: ChunkItem[], ads?: AdItem[], chunkSize?: number) => ResultType;
|
|
3
|
+
export declare const formatCurrency: (cents: number | null) => string;
|
|
4
|
+
export declare const getItems: (feeds: ChunkItem[], feedItems: FeedItems) => GridFeedMarketplaceItem[];
|
|
5
|
+
export declare const getLang: <T>(lang: Record<string, T>, selectedLang?: string) => T;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PostResponse } from '../../../../api/src/lib/core';
|
|
2
|
+
export declare const isBookmarked: (id: number, list: number[]) => boolean;
|
|
3
|
+
export declare const getRelatedItemThumbnail: (item: PostResponse) => string;
|
|
4
|
+
export declare const isPublic: (item: PostResponse) => boolean;
|
|
5
|
+
export declare const getElapsedTime: (timestamp: string) => string | null;
|
|
6
|
+
export declare const getPrice: (item: PostResponse) => string;
|
|
7
|
+
export declare const isReserved: (item: PostResponse) => boolean;
|
|
8
|
+
export declare const isReservedV2: (value: number | null) => value is 2;
|
|
9
|
+
export declare const isFreeItem: (post: PostResponse) => boolean;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UseControllerProps } from 'react-hook-form';
|
|
2
|
+
import { CheckboxInputProps } from '../../../../../ui/src/lib/Atoms/Inputs/CheckboxInput/CheckboxInput.types';
|
|
3
|
+
export type FormCheckboxInputProps = UseControllerProps & Partial<CheckboxInputProps>;
|
|
4
|
+
export declare const FormCheckboxInput: ({ checked, id, label, name, rules, }: FormCheckboxInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default FormCheckboxInput;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UseControllerProps } from 'react-hook-form';
|
|
2
|
+
import { InputFieldSpecialProps } from '../../../../../ui/src/lib/Atoms/Inputs/InputFieldSpecial/InputFieldSpecial.types';
|
|
3
|
+
export type FormTextInputProps = UseControllerProps & Partial<InputFieldSpecialProps>;
|
|
4
|
+
export declare const FormInputFieldSpecial: ({ ariaLabel, id, maxDigits, name, placeholder, rules, style, }: FormTextInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default FormInputFieldSpecial;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UseControllerProps } from 'react-hook-form';
|
|
2
|
+
import { RadioButtonTypes } from '../../../../../ui/src/lib/Atoms/Inputs/RadioButton/RadioButton.types';
|
|
3
|
+
export type FormRadioButtonProps = UseControllerProps & Partial<RadioButtonTypes>;
|
|
4
|
+
export declare const FormRadioButton: ({ id, label, name, rules, size, value, }: FormRadioButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default FormRadioButton;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UseControllerProps } from 'react-hook-form';
|
|
2
|
+
import { RadioButtonClusterTypes } from '../../../../../ui/src/lib/Molecules/Selections/RadioButtonCluster/RadioButtonCluster.types';
|
|
3
|
+
export type FormRadioButtonClusterProps = UseControllerProps & Partial<RadioButtonClusterTypes>;
|
|
4
|
+
export declare const FormRadioButtonCluster: ({ children, disabled, name, rules, }: FormRadioButtonClusterProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default FormRadioButtonCluster;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UseControllerProps } from 'react-hook-form';
|
|
2
|
+
import { TextAreaInputProps } from '../../../../../ui/src/lib/Atoms/Inputs/TextAreaInput/TextAreaInput.types';
|
|
3
|
+
export type FormTextInputProps = UseControllerProps & Partial<TextAreaInputProps>;
|
|
4
|
+
export declare const FormTextAreaInput: ({ ariaDescribedby, attachment, charLimit, colorScheme, id, label, name, rules, size, }: FormTextInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default FormTextAreaInput;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { UseControllerProps } from 'react-hook-form';
|
|
2
|
+
import { TextInputProps } from '../../../../../ui/src/lib/Atoms/Inputs/TextInput/TextInput.types';
|
|
3
|
+
export type FormTextInputProps = UseControllerProps & Partial<TextInputProps>;
|
|
4
|
+
export default function FormTextInput({ colorScheme, id, label, name, rules, size, value, }: FormTextInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UseControllerProps } from 'react-hook-form';
|
|
2
|
+
import { ToggleInputProps } from '../../../../../ui/src/lib/Molecules/Selections/ToggleInput/ToggleInput.types';
|
|
3
|
+
export type FormToggleInputProps = UseControllerProps & Partial<ToggleInputProps>;
|
|
4
|
+
export declare const FormToggleInput: ({ checked, label, name, rules, }: FormToggleInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default FormToggleInput;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as FormCheckboxInput } from './FormCheckboxInput';
|
|
2
|
+
import { default as FormInputFieldSpecial } from './FormInputFieldSpecial';
|
|
3
|
+
import { default as FormRadioButton } from './FormRadioButton';
|
|
4
|
+
import { default as FormRadioButtonCluster } from './FormRadioButtonCluster';
|
|
5
|
+
import { default as FormTextAreaInput } from './FormTextAreaInput';
|
|
6
|
+
import { default as FormTextInput } from './FormTextInput';
|
|
7
|
+
import { default as FormToggleInput } from './FormToggleInput';
|
|
8
|
+
export { FormCheckboxInput, FormRadioButton, FormRadioButtonCluster, FormTextInput, FormTextAreaInput, FormToggleInput, FormInputFieldSpecial, };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { GridItemProps } from '../../Grids/Grid/GridItem/GridItem.types';
|
|
3
|
+
import { FormTextInputProps } from '../Fields/FormTextInput';
|
|
4
|
+
export type StepField = {
|
|
5
|
+
id: string;
|
|
6
|
+
layout?: {
|
|
7
|
+
desktop?: GridItemProps['desktop'];
|
|
8
|
+
mobile?: GridItemProps['mobile'];
|
|
9
|
+
};
|
|
10
|
+
type: string;
|
|
11
|
+
};
|
|
12
|
+
export type TextField = StepField & FormTextInputProps & {
|
|
13
|
+
type: 'text';
|
|
14
|
+
};
|
|
15
|
+
export type SubmitField = StepField & {
|
|
16
|
+
type: 'submit';
|
|
17
|
+
};
|
|
18
|
+
export type SlotField = StepField & {
|
|
19
|
+
render: ({ key }: {
|
|
20
|
+
key: string;
|
|
21
|
+
}) => ReactNode;
|
|
22
|
+
type: 'slot';
|
|
23
|
+
};
|
|
24
|
+
export type NextField = StepField & {
|
|
25
|
+
type: 'next';
|
|
26
|
+
};
|
|
27
|
+
export type FormField = SubmitField | SlotField | TextField | NextField;
|
|
28
|
+
export type WizardStepT = {
|
|
29
|
+
fields: FormField[];
|
|
30
|
+
id: string;
|
|
31
|
+
onSubmit?: (data: object) => void;
|
|
32
|
+
};
|
|
33
|
+
export type WizardProps = {
|
|
34
|
+
steps: WizardStepT[];
|
|
35
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type TWizardContext = {
|
|
2
|
+
next: () => void;
|
|
3
|
+
onSumbitStep: (data: object) => void;
|
|
4
|
+
previous: () => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const WizardContext: import('react').Context<TWizardContext>;
|
|
7
|
+
export declare const WizardProvider: import('react').Provider<TWizardContext>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare const gridSpacing: string[];
|
|
3
|
+
export type TGridSpacing = (typeof gridSpacing)[number];
|
|
4
|
+
export type GridProps = {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
spacing?: TGridSpacing | {
|
|
7
|
+
x: TGridSpacing;
|
|
8
|
+
y: TGridSpacing;
|
|
9
|
+
};
|
|
10
|
+
};
|