@goodhood-web/nebenan-base 3.0.0-development.13 → 3.0.0-development.130

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.
Files changed (135) hide show
  1. package/index.d.ts +17 -8
  2. package/index.js +125 -107
  3. package/index.mjs +30549 -23055
  4. package/lib/Attachments/LinkAttachment/LinkAttachment.d.ts +3 -0
  5. package/lib/Attachments/LinkAttachment/LinkAttachment.types.d.ts +12 -0
  6. package/lib/AuthenticationForm/AuthenticationForm.d.ts +3 -0
  7. package/lib/AuthenticationForm/AuthenticationForm.types.d.ts +13 -0
  8. package/lib/ComplaintModal/ComplaintModal.d.ts +1 -1
  9. package/lib/ComplaintModal/ComplaintModal.types.d.ts +7 -1
  10. package/lib/DesktopLayoutTwoColumn/DesktopLayoutTwoColumn.d.ts +1 -1
  11. package/lib/DesktopLayoutTwoColumn/DesktopLayoutTwoColumn.types.d.ts +4 -0
  12. package/lib/Feed/FeedItem/Marketplace/InteractiveElements/InteractiveCardHeader.d.ts +9 -0
  13. package/lib/Feed/FeedItem/Marketplace/MarketplaceActions/MarketplaceActions.d.ts +2 -0
  14. package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceActions/MarketplaceActions.types.d.ts +4 -0
  15. package/lib/Feed/FeedItem/Marketplace/MarketplaceActions/components/BuyerActions/BuyerActions.d.ts +11 -0
  16. package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceAggregatorCard/MarketplaceAggregatorCard.d.ts +1 -1
  17. package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceAggregatorCard/MarketplaceAggregatorCard.types.d.ts +2 -2
  18. package/lib/Feed/FeedItem/Marketplace/MarketplaceBody/MarketplaceBody.d.ts +3 -0
  19. package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceBody/MarketplaceBody.types.d.ts +7 -1
  20. package/lib/Feed/FeedItem/Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.d.ts +3 -0
  21. package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.types.d.ts +6 -4
  22. package/lib/Feed/FeedItem/Marketplace/MarketplaceDetailPage/components/CardAggregator/CardAggregator.d.ts +7 -0
  23. package/lib/Feed/FeedItem/Marketplace/MarketplaceItemCardless/MarketplaceItemCardless.d.ts +2 -0
  24. package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceItemCardless/MarketplaceItemCardless.types.d.ts +4 -1
  25. package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceMoreOptions/ComplaintModalComponent/ComplaintModalComponent.d.ts +3 -1
  26. package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceMoreOptions/InteractivePostInfo/utils.d.ts +1 -1
  27. package/lib/Feed/FeedItem/Marketplace/MarketplaceMoreOptions/MarketplaceMoreOptions.d.ts +3 -0
  28. package/lib/Feed/FeedItem/Marketplace/MarketplaceMoreOptions/MarketplaceMoreOptions.types.d.ts +6 -0
  29. package/lib/{FeedItem → Feed/FeedItem}/PostAuthor/PostAuthor.types.d.ts +5 -5
  30. package/lib/Feed/FeedItem/utils.d.ts +34 -0
  31. package/lib/Feed/FeedRouterProvider/FeedRouterContext.d.ts +2 -0
  32. package/lib/Feed/FeedRouterProvider/FeedRouterProvider.d.ts +5 -0
  33. package/lib/Feed/FeedRouterProvider/FeedRouterProvider.type.d.ts +3 -0
  34. package/lib/Feed/FeedRouterProvider/useNavigate.d.ts +1 -0
  35. package/lib/Feed/GridFeed/GridFeed.d.ts +3 -0
  36. package/lib/Feed/GridFeed/GridFeed.types.d.ts +33 -0
  37. package/lib/Feed/GridFeed/GridFeedAggregator/GridFeedAggregator.d.ts +2 -0
  38. package/lib/Feed/GridFeed/GridFeedAggregator/GridFeedAggregator.types.d.ts +12 -0
  39. package/lib/Feed/GridFeed/GridFeedAggregator/components/FeedDynamicRenderer/FeedDynamicRenderer.d.ts +3 -0
  40. package/lib/Feed/GridFeed/GridFeedAggregator/components/FeedDynamicRenderer/FeedDynamicRenderer.types.d.ts +6 -0
  41. package/lib/Feed/GridFeed/GridFeedAggregator/components/FeedEmptyStateCard/FeedEmptyStateCard.d.ts +2 -0
  42. package/lib/Feed/GridFeed/GridFeedAggregator/components/FeedEmptyStateCard/FeedEmptyStateCard.types.d.ts +8 -0
  43. package/lib/Feed/GridFeed/GridFeedAggregator/components/FeedEmptyStateCard/utils.d.ts +2 -0
  44. package/lib/Feed/GridFeed/GridFeedAggregator/utils.d.ts +1 -0
  45. package/lib/Feed/GridFeed/GridFeedDynamicRenderer/GridFeedDynamicRenderer.d.ts +3 -0
  46. package/lib/Feed/GridFeed/GridFeedDynamicRenderer/GridFeedDynamicRenderer.types.d.ts +4 -0
  47. package/lib/Feed/GridFeed/utils.d.ts +5 -0
  48. package/lib/Feed/utils.d.ts +18 -0
  49. package/lib/Forms/DynamicForm/DynamicForm.d.ts +4 -0
  50. package/lib/Forms/Fields/FormCheckboxInput.d.ts +5 -0
  51. package/lib/Forms/Fields/FormInputFieldSpecial.d.ts +5 -0
  52. package/lib/Forms/Fields/FormRadioButton.d.ts +5 -0
  53. package/lib/Forms/Fields/FormRadioButtonCluster.d.ts +5 -0
  54. package/lib/Forms/Fields/FormTextAreaInput.d.ts +5 -0
  55. package/lib/Forms/Fields/FormTextInput.d.ts +4 -0
  56. package/lib/Forms/Fields/FormToggleInput.d.ts +5 -0
  57. package/lib/Forms/Fields/index.d.ts +8 -0
  58. package/lib/Forms/Form/Form.d.ts +3 -0
  59. package/lib/Forms/Form/Form.types.d.ts +15 -0
  60. package/lib/Forms/GridForm/GridForm.d.ts +4 -0
  61. package/lib/Forms/Wizard/Wizard.d.ts +3 -0
  62. package/lib/Forms/Wizard/Wizard.types.d.ts +46 -0
  63. package/lib/Forms/Wizard/WizardContext.d.ts +8 -0
  64. package/lib/Forms/Wizard/index.d.ts +3 -0
  65. package/lib/Forms/Wizard/useWizard.d.ts +5 -0
  66. package/lib/Forms/index.d.ts +5 -0
  67. package/lib/Grids/Grid/Grid.d.ts +3 -0
  68. package/lib/Grids/Grid/Grid.types.d.ts +10 -0
  69. package/lib/Grids/Grid/GridItem/GridItem.d.ts +3 -0
  70. package/lib/Grids/Grid/GridItem/GridItem.types.d.ts +6 -0
  71. package/lib/HtmlContent/HtmlContent.d.ts +3 -0
  72. package/lib/HtmlContent/HtmlContent.types.d.ts +4 -0
  73. package/lib/HtmlContent/components/InnerHtmlScript.d.ts +18 -0
  74. package/lib/MarkdownRichText/MarkdownRichText.d.ts +3 -0
  75. package/lib/MarkdownRichText/MarkdownRichText.types.d.ts +6 -0
  76. package/lib/MobileLayout/MobileLayout.d.ts +1 -1
  77. package/lib/MobileLayout/MobileLayout.types.d.ts +4 -0
  78. package/lib/NPEAggregator/NPEAggregator.d.ts +5 -9
  79. package/lib/NPEAggregator/NPEAggregator.types.d.ts +11 -28
  80. package/lib/NPEAggregator/NPEAggregatorCardAddress/NPEAggregatorCardAddress.d.ts +2 -0
  81. package/lib/NPEAggregator/NPEAggregatorCardAddress/types.d.ts +2 -0
  82. package/lib/NPEAggregator/NPEAggregatorCardRecommendation/NPEAggregatorCardRecommendation.d.ts +2 -0
  83. package/lib/NPEAggregator/NPEAggregatorCardRecommendation/types.d.ts +2 -0
  84. package/lib/PointOfInterest/PointOfInterest.d.ts +1 -1
  85. package/lib/PointOfInterest/PointOfInterest.types.d.ts +2 -1
  86. package/lib/Profile/Profile.types.d.ts +1 -1
  87. package/lib/Reactions/ReactionTabList/ReactionTabList.d.ts +1 -1
  88. package/lib/Reactions/ReactionTabList/ReactionTabList.types.d.ts +1 -0
  89. package/lib/StorybookUtils/LayoutTemplate.d.ts +3 -2
  90. package/package.json +1 -1
  91. package/style.css +1 -1
  92. package/lib/FeedItem/Marketplace/InteractiveElements/InteractiveCardHeader.d.ts +0 -7
  93. package/lib/FeedItem/Marketplace/MarketplaceActions/MarketplaceActions.d.ts +0 -2
  94. package/lib/FeedItem/Marketplace/MarketplaceActions/components/BuyerActions/BuyerActions.d.ts +0 -4
  95. package/lib/FeedItem/Marketplace/MarketplaceBody/MarketplaceBody.d.ts +0 -3
  96. package/lib/FeedItem/Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.d.ts +0 -3
  97. package/lib/FeedItem/Marketplace/MarketplaceDetailPage/components/CardAggregator/CardAggregator.d.ts +0 -10
  98. package/lib/FeedItem/Marketplace/MarketplaceDetailPage/components/CardAggregator/utils.d.ts +0 -5
  99. package/lib/FeedItem/Marketplace/MarketplaceItemCardless/MarketplaceItemCardless.d.ts +0 -2
  100. package/lib/FeedItem/Marketplace/MarketplaceMoreOptions/MarketplaceMoreOptions.d.ts +0 -3
  101. package/lib/FeedItem/Marketplace/MarketplaceMoreOptions/MarketplaceMoreOptions.types.d.ts +0 -4
  102. package/lib/FeedItem/Marketplace/MarketplaceRouterProvider/MarketplaceRouterProvider.d.ts +0 -9
  103. package/lib/FeedItem/Marketplace/MarketplaceRouterProvider/useNavigate.d.ts +0 -1
  104. package/lib/FeedItem/utils.d.ts +0 -32
  105. package/lib/NPEAggregator/NPEAggregatorCardV1/NPEAggregatorCardV1.d.ts +0 -2
  106. package/lib/NPEAggregator/NPEAggregatorCardV1/types.d.ts +0 -2
  107. package/lib/NPEAggregator/NPEAggregatorCardV2/NPEAggregatorCardV2.d.ts +0 -2
  108. package/lib/NPEAggregator/NPEAggregatorCardV2/types.d.ts +0 -2
  109. package/lib/NPEAggregator/NPEAggregatorCardV3/NPEAggregatorCardV3.d.ts +0 -2
  110. package/lib/NPEAggregator/NPEAggregatorCardV3/types.d.ts +0 -2
  111. package/lib/NPEAggregator/NPEAggregatorCardV4/NPEAggregatorCardV4.d.ts +0 -2
  112. package/lib/NPEAggregator/NPEAggregatorCardV4/types.d.ts +0 -2
  113. package/lib/PointOfInterest/assets/index.d.ts +0 -4
  114. package/lib/PointOfInterest/components/POIPlaceholder.d.ts +0 -3
  115. package/lib/PointOfInterest/components/POIPlaceholder.types.d.ts +0 -4
  116. /package/lib/{FeedItem → Feed/FeedItem}/Marketplace/InteractiveElements/InteractiveBookmark.d.ts +0 -0
  117. /package/lib/{FeedItem → Feed/FeedItem}/Marketplace/InteractiveElements/InteractiveEmptyState/InteractiveEmptyState.d.ts +0 -0
  118. /package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceActions/components/SellerActions/SellerActions.d.ts +0 -0
  119. /package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceActions/components/SellerActions/components/DeleteButton/DeleteButton.d.ts +0 -0
  120. /package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceActions/components/SellerActions/components/DeleteButton/DeleteModal/DeleteModal.d.ts +0 -0
  121. /package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceActions/components/SellerActions/components/EditButton/EditButton.d.ts +0 -0
  122. /package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceActions/components/SellerActions/components/ReserveButton.d.ts +0 -0
  123. /package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceActions/constants.d.ts +0 -0
  124. /package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceAggregatorCard/MarketplaceAggregatorCard.example.d.ts +0 -0
  125. /package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceDetailPage/components/MarketplaceContent/MarketplaceContent.d.ts +0 -0
  126. /package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceMoreOptions/HideModal/HideModal.d.ts +0 -0
  127. /package/lib/{FeedItem → Feed/FeedItem}/Marketplace/MarketplaceMoreOptions/InteractivePostInfo/InteractivePostInfo.d.ts +0 -0
  128. /package/lib/{FeedItem → Feed/FeedItem}/PostAuthor/PostAuthor.d.ts +0 -0
  129. /package/lib/{FeedItem → Feed/FeedItem}/PostAuthor/Rating/Rating.d.ts +0 -0
  130. /package/lib/{FeedItem → Feed/FeedItem}/PostAuthor/Rating/Rating.types.d.ts +0 -0
  131. /package/lib/{FeedItem → Feed/FeedItem}/PostInfo/PostInfo.d.ts +0 -0
  132. /package/lib/{FeedItem → Feed/FeedItem}/PostInfo/PostInfo.types.d.ts +0 -0
  133. /package/lib/{FeedItem → Feed/FeedItem}/PostInfo/components/InfoList/InfoList.d.ts +0 -0
  134. /package/lib/{FeedItem → Feed/FeedItem}/PostInfo/components/InfoList/InfoList.types.d.ts +0 -0
  135. /package/lib/{FeedItem → Feed/FeedItem}/PostInfo/components/PublicInfoModal/PublicInfoModal.d.ts +0 -0
@@ -0,0 +1,3 @@
1
+ import { LinkAttachmentTypes } from './LinkAttachment.types';
2
+ export declare const LinkAttachment: ({ description, headline, image, onClick, onDelete, url, withDeleteIcon, }: LinkAttachmentTypes) => import("react/jsx-runtime").JSX.Element;
3
+ export default LinkAttachment;
@@ -0,0 +1,12 @@
1
+ export interface LinkAttachmentTypes {
2
+ description: string;
3
+ headline: string;
4
+ image?: {
5
+ alt: string;
6
+ src: string;
7
+ };
8
+ onClick?: () => void;
9
+ onDelete?: () => void;
10
+ url: string;
11
+ withDeleteIcon?: boolean;
12
+ }
@@ -0,0 +1,3 @@
1
+ import { AuthenticationFormProps } from './AuthenticationForm.types';
2
+ export declare const AuthenticationForm: ({ onSubmit }: AuthenticationFormProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default AuthenticationForm;
@@ -0,0 +1,13 @@
1
+ import { UseFormReturn } from 'react-hook-form';
2
+ import { OnSubmitFunction } from '../Forms/Form/Form.types';
3
+ export type AuthenticationFormData = {
4
+ email: string;
5
+ password: string;
6
+ };
7
+ export type AuthenticationFormSubmitData = {
8
+ data: AuthenticationFormData;
9
+ methods?: UseFormReturn<AuthenticationFormData>;
10
+ };
11
+ export type AuthenticationFormProps = {
12
+ onSubmit: OnSubmitFunction<AuthenticationFormData>;
13
+ };
@@ -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
  }
@@ -1,3 +1,3 @@
1
1
  import { DesktopLayoutTwoColumnProps } from './DesktopLayoutTwoColumn.types';
2
- declare const DesktopLayoutTwoColumn: ({ banner, children, navbar, right, }: DesktopLayoutTwoColumnProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const DesktopLayoutTwoColumn: ({ banner, children, isMainFullWidth, leftAdSlot, navbar, right, rightAdSlot, enableAdSlots, }: DesktopLayoutTwoColumnProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default DesktopLayoutTwoColumn;
@@ -2,6 +2,10 @@ import { ReactElement, ReactNode } from 'react';
2
2
  export interface DesktopLayoutTwoColumnProps {
3
3
  banner?: ReactElement;
4
4
  children: ReactNode;
5
+ enableAdSlots?: boolean;
6
+ leftAdSlot?: ReactElement;
5
7
  navbar: ReactElement;
6
8
  right?: ReactElement;
9
+ rightAdSlot?: ReactElement;
10
+ isMainFullWidth?: boolean;
7
11
  }
@@ -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 {};
@@ -0,0 +1,2 @@
1
+ import { MarketplaceActionsTypes } from './MarketplaceActions.types';
2
+ export declare const MarketplaceActions: ({ author, body, className, handleReserve, id, images, isFree, isMine, isReserved, subject, }: MarketplaceActionsTypes) => import("react/jsx-runtime").JSX.Element;
@@ -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
  };
@@ -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, children, className, linkLabel, }: MarketplaceAggregatorCardTypes): import("react/jsx-runtime").JSX.Element;
2
+ export default function MarketplaceAggregatorCard({ category, categoryLink, categorySlug, className, items, linkLabel, }: MarketplaceAggregatorCardTypes): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,9 @@
1
- import { ReactNode } from 'react';
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;
@@ -1,18 +1,24 @@
1
- import { LevelOfDetail } from '../../../../../../api/src/lib/core';
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;
13
15
  isPublic: boolean;
14
16
  isReserved: boolean;
15
17
  levelOfDetail: LevelOfDetail;
18
+ paidHighlightUntil?: {
19
+ date: string;
20
+ time: string;
21
+ } | null;
16
22
  price: string;
17
23
  profileData: ProfileData | null;
18
24
  subject: string;
@@ -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, NewsFeedResponse, PostImage, PostResponse, ProfileResponse, RelatedResponse } 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,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
- feedItem: NewsFeedResponse;
17
- isChristmas?: boolean;
17
+ embeds?: EmbedResponse[];
18
+ interactions: InteractionResponse;
19
+ isBusinessProfile: boolean;
18
20
  postData: PostResponse;
19
21
  profile: ProfileResponse;
20
- related: RelatedResponse;
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, premiumFeature, price, reserved, reservedText, timeStamp, title, }: MarketplaceItemCardlessTypes): import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,14 @@
1
1
  export interface MarketplaceItemCardlessTypes {
2
2
  bookmarked: boolean;
3
- categorySlug?: string;
3
+ content?: React.ReactNode;
4
4
  id: number;
5
5
  image?: string;
6
+ onClick?: () => void;
7
+ premiumFeature?: boolean;
6
8
  price: string;
7
9
  reserved: boolean;
8
10
  reservedText: string;
9
11
  timeStamp: string;
10
12
  title: string;
13
+ type?: string;
11
14
  }
@@ -1,5 +1,7 @@
1
- export declare const ComplaintModalComponent: ({ handleReport, id, open, }: {
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,4 +1,4 @@
1
- import { PostResponse } from '../../../../../../../api/src/lib/core';
1
+ import { PostResponse } from '../../../../../../../../api/src/lib/core';
2
2
  export declare const getInfoData: (post: PostResponse) => {
3
3
  author: {
4
4
  name: string;
@@ -0,0 +1,3 @@
1
+ import { MarketplaceMoreOptionsProps } from './MarketplaceMoreOptions.types';
2
+ export declare const MarketplaceMoreOptions: ({ id, isMine, profile, }: MarketplaceMoreOptionsProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default MarketplaceMoreOptions;
@@ -0,0 +1,6 @@
1
+ import { ProfileResponse } from '../../../../../../../api/src/lib/core';
2
+ export type MarketplaceMoreOptionsProps = {
3
+ id: number;
4
+ isMine?: boolean;
5
+ profile: ProfileResponse;
6
+ };
@@ -1,9 +1,9 @@
1
1
  import { ReactNode } from 'react';
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 { default as ThumbnailWrapperProps } from '../../../../../ui/src/lib/Atoms/Content/ThumbnailWrapper/ThumbnailWrapper.types';
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,2 @@
1
+ import { FeedRouterContextType } from './FeedRouterProvider.type';
2
+ export declare const FeedRouterContext: import('react').Context<FeedRouterContextType>;
@@ -0,0 +1,5 @@
1
+ import { PropsWithChildren } from 'react';
2
+ declare const FeedRouterProvider: ({ children, navigate, }: PropsWithChildren<{
3
+ navigate: (path: string, state?: object) => void;
4
+ }>) => import("react/jsx-runtime").JSX.Element;
5
+ export default FeedRouterProvider;
@@ -0,0 +1,3 @@
1
+ export interface FeedRouterContextType {
2
+ navigate: (path: string, state?: object) => void;
3
+ }
@@ -0,0 +1 @@
1
+ export declare const useNavigate: () => (path: string, state?: object) => void;
@@ -0,0 +1,3 @@
1
+ import { GridFeedProps } from './GridFeed.types';
2
+ declare const GridFeed: ({ ads, feedItems, feedType, items }: GridFeedProps) => import("react/jsx-runtime").JSX.Element | null;
3
+ export default GridFeed;
@@ -0,0 +1,33 @@
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
+ declare const ALLOWED_POSITIONS: readonly [0, 1, 2, 3, 4, 5];
16
+ type Position = (typeof ALLOWED_POSITIONS)[number];
17
+ export interface AdItem {
18
+ block: number;
19
+ content: React.ReactNode;
20
+ id: string;
21
+ position?: Position;
22
+ type?: string;
23
+ }
24
+ export interface GridFeedProps {
25
+ ads?: AdItem[];
26
+ feedItems: FeedItems;
27
+ feedType: keyof typeof GridFeedTypeEnum;
28
+ items: number[];
29
+ }
30
+ export type ChunkItem = number | AdItem;
31
+ export type ResultType = Array<ChunkItem[] | AdItem>;
32
+ export type GridFeedMarketplaceItem = MarketplaceItemCardlessTypes | AdItem;
33
+ export {};
@@ -0,0 +1,2 @@
1
+ import { GridFeedAggregatorProps } from './GridFeedAggregator.types';
2
+ export default function GridFeedAggregator({ feedType, items }: GridFeedAggregatorProps): import("react/jsx-runtime").JSX.Element;
@@ -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,3 @@
1
+ import { FeedDynamicRendererProps } from './FeedDynamicRenderer.types';
2
+ declare const FeedDynamicRenderer: ({ feedType, item }: FeedDynamicRendererProps) => import("react/jsx-runtime").JSX.Element | null;
3
+ export default FeedDynamicRenderer;
@@ -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,2 @@
1
+ import { FeedEmptyStateCardProps } from './FeedEmptyStateCard.types';
2
+ export default function FeedEmptyStateCard({ classNameButtonDesktop, classNameButtonMobile, feedType, isCard, onClick, }: FeedEmptyStateCardProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { GridFeedProps } from '../../../GridFeed.types';
2
+ export interface FeedEmptyStateCardProps {
3
+ classNameButtonDesktop?: string;
4
+ classNameButtonMobile?: string;
5
+ feedType: GridFeedProps['feedType'];
6
+ isCard?: boolean;
7
+ onClick: () => void;
8
+ }
@@ -0,0 +1,2 @@
1
+ import { FeedEmptyStateCardProps } from './FeedEmptyStateCard.types';
2
+ export declare const getTranslation: (feedType: FeedEmptyStateCardProps["feedType"], translationKey: string) => string;
@@ -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,4 @@
1
+ import { ChunkItem, GridFeedProps } from '../GridFeed.types';
2
+ export type GridFeedDynamicRendererProps = Pick<GridFeedProps, 'feedItems' | 'feedType'> & {
3
+ feedItem: ChunkItem[];
4
+ };
@@ -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,18 @@
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 getFormattedDate: (date: string | null | undefined, isMine: boolean) => {
7
+ date: string;
8
+ time: string;
9
+ } | null;
10
+ export declare const getFeatureByIdentifier: (features: PostResponse["feature_addons"], identifier: string) => {
11
+ feature_enabled_until: string | null;
12
+ feature_identifier: string;
13
+ } | undefined;
14
+ export declare const getPrice: (item: PostResponse) => string;
15
+ export declare const isReserved: (item: PostResponse) => boolean;
16
+ export declare const isReservedV2: (value: number | null) => value is 2;
17
+ export declare const isFreeItem: (post: PostResponse) => boolean;
18
+ export declare const isFutureOrToday: (dateString?: string | null) => boolean;
@@ -0,0 +1,4 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { WizardStepT } from '../Wizard/Wizard.types';
3
+ export declare function DynamicForm({ fields, onSubmit }: PropsWithChildren<WizardStepT>): import("react/jsx-runtime").JSX.Element;
4
+ export default DynamicForm;
@@ -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 { RadioButtonPropsType } from '../../../../../ui/src/lib/Atoms/Inputs/RadioButton/RadioButton.types';
3
+ export type FormRadioButtonProps = UseControllerProps & Pick<RadioButtonPropsType, 'id' | 'size' | 'label' | 'value' | 'secondaryText' | 'pill'>;
4
+ export declare const FormRadioButton: ({ id, label, name, pill, rules, secondaryText, 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, ...props }: 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,3 @@
1
+ import { FieldValues } from 'react-hook-form';
2
+ import { FormProps } from './Form.types';
3
+ export default function Form<FormData extends FieldValues>({ children, className, initialValues, onSubmit, validationSchema, }: FormProps<FormData>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ import { DefaultValues, FieldValues, UseFormReturn } from 'react-hook-form';
3
+ import { ZodType } from 'zod';
4
+ export type OnSubmitFunction<FormData extends FieldValues> = (arg: OnFormSubmitType<FormData>) => void;
5
+ export type OnFormSubmitType<FormData extends FieldValues> = {
6
+ data: FormData;
7
+ methods?: UseFormReturn<FormData>;
8
+ };
9
+ export type FormProps<FormData extends FieldValues> = {
10
+ children: ReactNode | ReactNode[];
11
+ className?: string;
12
+ initialValues?: DefaultValues<FormData>;
13
+ onSubmit: OnSubmitFunction<FormData>;
14
+ validationSchema?: ZodType<FormData>;
15
+ };
@@ -0,0 +1,4 @@
1
+ import { FieldValues } from 'react-hook-form';
2
+ import { FormProps } from '../Form/Form.types';
3
+ export declare function GridForm<FormData extends FieldValues>({ children, ...props }: FormProps<FormData>): import("react/jsx-runtime").JSX.Element;
4
+ export default GridForm;
@@ -0,0 +1,3 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { WizardProps } from './Wizard.types';
3
+ export default function Wizard({ steps }: PropsWithChildren<WizardProps>): import("react/jsx-runtime").JSX.Element;