@goodhood-web/nebenan-base 2.1.0-development.9 → 3.0.0-development.2

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 (81) hide show
  1. package/index.d.ts +10 -4
  2. package/index.js +108 -30
  3. package/index.mjs +18627 -11472
  4. package/lib/ChristmasGarland/ChristmasGarland.d.ts +6 -0
  5. package/lib/ComplaintModal/ComplaintModal.d.ts +1 -1
  6. package/lib/ComplaintModal/ComplaintModal.types.d.ts +2 -0
  7. package/lib/FeedItem/Marketplace/InteractiveElements/InteractiveBookmark.d.ts +7 -0
  8. package/lib/FeedItem/Marketplace/InteractiveElements/InteractiveCardHeader.d.ts +7 -0
  9. package/lib/FeedItem/Marketplace/InteractiveElements/InteractiveEmptyState/InteractiveEmptyState.d.ts +1 -0
  10. package/lib/FeedItem/Marketplace/MarketplaceActions/MarketplaceActions.d.ts +2 -0
  11. package/lib/FeedItem/Marketplace/MarketplaceActions/MarketplaceActions.types.d.ts +12 -0
  12. package/lib/FeedItem/Marketplace/MarketplaceActions/components/BuyerActions/BuyerActions.d.ts +4 -0
  13. package/lib/FeedItem/Marketplace/MarketplaceActions/components/SellerActions/SellerActions.d.ts +6 -0
  14. package/lib/FeedItem/Marketplace/MarketplaceActions/components/SellerActions/components/DeleteButton/DeleteButton.d.ts +4 -0
  15. package/lib/FeedItem/Marketplace/MarketplaceActions/components/SellerActions/components/DeleteButton/DeleteModal/DeleteModal.d.ts +6 -0
  16. package/lib/FeedItem/Marketplace/MarketplaceActions/components/SellerActions/components/EditButton/EditButton.d.ts +3 -0
  17. package/lib/FeedItem/Marketplace/MarketplaceActions/components/SellerActions/components/ReserveButton.d.ts +5 -0
  18. package/lib/FeedItem/Marketplace/MarketplaceActions/constants.d.ts +6 -0
  19. package/lib/FeedItem/Marketplace/MarketplaceAggregatorCard/MarketplaceAggregatorCard.d.ts +2 -0
  20. package/lib/{MarketplaceAggregatorCard → FeedItem/Marketplace/MarketplaceAggregatorCard}/MarketplaceAggregatorCard.example.d.ts +1 -1
  21. package/lib/FeedItem/Marketplace/MarketplaceAggregatorCard/MarketplaceAggregatorCard.types.d.ts +9 -0
  22. package/lib/FeedItem/Marketplace/MarketplaceBody/MarketplaceBody.d.ts +3 -0
  23. package/lib/FeedItem/Marketplace/MarketplaceBody/MarketplaceBody.types.d.ts +20 -0
  24. package/lib/FeedItem/Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.d.ts +3 -0
  25. package/lib/FeedItem/Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.types.d.ts +23 -0
  26. package/lib/FeedItem/Marketplace/MarketplaceDetailPage/components/CardAggregator/CardAggregator.d.ts +10 -0
  27. package/lib/FeedItem/Marketplace/MarketplaceDetailPage/components/CardAggregator/utils.d.ts +5 -0
  28. package/lib/FeedItem/Marketplace/MarketplaceDetailPage/components/MarketplaceContent/MarketplaceContent.d.ts +7 -0
  29. package/lib/FeedItem/Marketplace/MarketplaceItemCardless/MarketplaceItemCardless.d.ts +2 -0
  30. package/lib/FeedItem/Marketplace/MarketplaceItemCardless/MarketplaceItemCardless.types.d.ts +11 -0
  31. package/lib/FeedItem/Marketplace/MarketplaceMoreOptions/ComplaintModalComponent/ComplaintModalComponent.d.ts +5 -0
  32. package/lib/FeedItem/Marketplace/MarketplaceMoreOptions/HideModal/HideModal.d.ts +5 -0
  33. package/lib/FeedItem/Marketplace/MarketplaceMoreOptions/InfoModal/InfoModal.d.ts +7 -0
  34. package/lib/FeedItem/Marketplace/MarketplaceMoreOptions/InfoModal/components/InfoList/InfoList.d.ts +2 -0
  35. package/lib/FeedItem/Marketplace/MarketplaceMoreOptions/InfoModal/components/PublicInfoModal/PublicInfoModal.d.ts +4 -0
  36. package/lib/FeedItem/Marketplace/MarketplaceMoreOptions/MarketplaceMoreOptions.d.ts +3 -0
  37. package/lib/FeedItem/Marketplace/MarketplaceMoreOptions/MarketplaceMoreOptions.types.d.ts +4 -0
  38. package/lib/FeedItem/Marketplace/MarketplaceRouterProvider/MarketplaceRouterProvider.d.ts +9 -0
  39. package/lib/FeedItem/Marketplace/MarketplaceRouterProvider/useNavigate.d.ts +1 -0
  40. package/lib/FeedItem/PostAuthor/PostAuthor.d.ts +3 -0
  41. package/lib/{PostAuthor → FeedItem/PostAuthor}/PostAuthor.types.d.ts +10 -8
  42. package/lib/FeedItem/utils.d.ts +32 -0
  43. package/lib/NPEAggregator/NPEAggregator.d.ts +12 -0
  44. package/lib/NPEAggregator/NPEAggregator.example.d.ts +2 -0
  45. package/lib/NPEAggregator/NPEAggregator.types.d.ts +60 -0
  46. package/lib/NPEAggregator/NPEAggregatorCardV1/NPEAggregatorCardV1.d.ts +2 -0
  47. package/lib/NPEAggregator/NPEAggregatorCardV1/types.d.ts +2 -0
  48. package/lib/NPEAggregator/NPEAggregatorCardV2/NPEAggregatorCardV2.d.ts +2 -0
  49. package/lib/NPEAggregator/NPEAggregatorCardV2/types.d.ts +2 -0
  50. package/lib/NPEAggregator/NPEAggregatorCardV3/NPEAggregatorCardV3.d.ts +2 -0
  51. package/lib/NPEAggregator/NPEAggregatorCardV3/types.d.ts +2 -0
  52. package/lib/NPEAggregator/NPEAggregatorCardV4/NPEAggregatorCardV4.d.ts +2 -0
  53. package/lib/NPEAggregator/NPEAggregatorCardV4/types.d.ts +2 -0
  54. package/lib/PointOfInterest/PointOfInterest.types.d.ts +1 -1
  55. package/lib/ProfileControls/ProfileControls.types.d.ts +2 -2
  56. package/lib/Reactions/ReactionSelection/ReactionSelection.d.ts +1 -1
  57. package/lib/Reactions/ReactionSelection/ReactionSelection.types.d.ts +7 -2
  58. package/lib/Reactions/ReactionStack/ReactionStack.d.ts +1 -1
  59. package/lib/Reactions/ReactionStack/ReactionStack.types.d.ts +2 -2
  60. package/lib/Reactions/ReactionStack/components/ReactionItem/ReactionItem.d.ts +1 -1
  61. package/lib/Reactions/ReactionStack/components/ReactionItem/ReactionItem.types.d.ts +2 -1
  62. package/lib/Reactions/ReactionStack/components/ReactionPill/ReactionPill.d.ts +2 -2
  63. package/lib/Reactions/ReactionStack/components/ReactionPill/ReactionPill.type.d.ts +1 -1
  64. package/lib/Reactions/ReactionTabList/ReactionTabList.types.d.ts +1 -1
  65. package/lib/Reactions/utils.d.ts +1 -1
  66. package/lib/ResponsiveModal/ResponsiveModal.d.ts +1 -1
  67. package/lib/ThankYouCard/ThankYouCard.d.ts +3 -0
  68. package/lib/ThankYouCard/ThankYouCard.types.d.ts +15 -0
  69. package/lib/ThankYouCard/utils.d.ts +3 -0
  70. package/lib/utils/breakpoints.d.ts +4 -0
  71. package/lib/utils/index.d.ts +2 -1
  72. package/package.json +3 -2
  73. package/style.css +1 -1
  74. package/lib/MarketplaceAggregatorCard/MarketplaceAggregatorCard.d.ts +0 -2
  75. package/lib/MarketplaceAggregatorCard/MarketplaceAggregatorCard.types.d.ts +0 -7
  76. package/lib/MarketplaceBody/MarketplaceBody.d.ts +0 -3
  77. package/lib/MarketplaceBody/MarketplaceBody.types.d.ts +0 -15
  78. package/lib/PostAuthor/PostAuthor.d.ts +0 -3
  79. package/lib/ProfileControls/components/MoreMenu/MoreMenu.d.ts +0 -7
  80. /package/lib/{PostAuthor → FeedItem/PostAuthor}/Rating/Rating.d.ts +0 -0
  81. /package/lib/{PostAuthor → FeedItem/PostAuthor}/Rating/Rating.types.d.ts +0 -0
@@ -0,0 +1,6 @@
1
+ /**
2
+ * ## The Christmas decoration component
3
+ * Renders a Christmas garland at the top of the **relatively positioned block**.
4
+ */
5
+ declare const ChristmasGarland: () => import("react/jsx-runtime").JSX.Element;
6
+ export default ChristmasGarland;
@@ -1,3 +1,3 @@
1
1
  import { ComplaintModalProps } from './ComplaintModal.types';
2
- declare const ComplaintModal: ({ handleModalClick, open, subjectId }: ComplaintModalProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const ComplaintModal: ({ complaintReasons, handleModalClick, open, subjectId, }: ComplaintModalProps) => import("react/jsx-runtime").JSX.Element | null;
3
3
  export default ComplaintModal;
@@ -1,4 +1,6 @@
1
+ import { ComplaintReason } from '../../../../api/src/lib/core';
1
2
  export interface ComplaintModalProps {
3
+ complaintReasons?: ComplaintReason[];
2
4
  handleModalClick: () => void;
3
5
  open: boolean;
4
6
  subjectId: number;
@@ -0,0 +1,7 @@
1
+ type InteractiveBookmarkProps = {
2
+ className?: string;
3
+ id: number | string;
4
+ isBookmarked: boolean;
5
+ };
6
+ export declare const InteractiveBookmark: ({ className, id, isBookmarked, }: InteractiveBookmarkProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default InteractiveBookmark;
@@ -0,0 +1,7 @@
1
+ type InteractiveCardHeaderProps = {
2
+ className?: string;
3
+ id: number;
4
+ isMine: boolean;
5
+ };
6
+ export declare const InteractiveCardHeader: ({ className, id, isMine, }: InteractiveCardHeaderProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1 @@
1
+ export declare const InteractiveEmptyState: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { MarketplaceActionsTypes } from './MarketplaceActions.types';
2
+ export declare const MarketplaceActions: ({ author, className, handleReserve, id, isFree, isMine, isReserved, }: MarketplaceActionsTypes) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { default as PostAuthorProps } from '../../PostAuthor/PostAuthor.types';
2
+ import { ProfileData } from '../MarketplaceDetailPage/MarketplaceDetailPage.types';
3
+ export type MarketplaceActionsTypes = {
4
+ author: PostAuthorProps;
5
+ className?: string;
6
+ handleReserve?: () => void;
7
+ id: number;
8
+ isFree: boolean;
9
+ isMine?: boolean;
10
+ isReserved: boolean;
11
+ profileData?: ProfileData | null;
12
+ };
@@ -0,0 +1,4 @@
1
+ import { default as PostAuthorProps } from '../../../../PostAuthor/PostAuthor.types';
2
+ export declare const BuyerActions: ({ author }: {
3
+ author: PostAuthorProps;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export declare const SellerActions: ({ handleReserve, id, isFree, isReserved, }: {
2
+ handleReserve?: () => void;
3
+ id: number;
4
+ isFree: boolean;
5
+ isReserved: boolean;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare const DeleteButton: ({ id, isFree }: {
2
+ id: number;
3
+ isFree: boolean;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export declare const DeleteModal: ({ handleClose, id, isFree, open, }: {
2
+ handleClose: () => void;
3
+ id: number;
4
+ isFree: boolean;
5
+ open: boolean;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const EditButton: ({ id }: {
2
+ id: number;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export declare const ReserveButton: ({ handleReserve, id, isReserved, }: {
2
+ handleReserve?: () => void;
3
+ id: number;
4
+ isReserved: boolean;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export declare const FEED_ITEM_OUTCOME_OPEN = 0;
2
+ export declare const FEED_ITEM_OUTCOME_OPEN_V3 = "opened";
3
+ export declare const FEED_ITEM_OUTCOME_LOCKED = 1;
4
+ export declare const FEED_ITEM_OUTCOME_RESERVED = 2;
5
+ export declare const FEED_ITEM_OUTCOME_RESERVED_V3 = "item_reserved";
6
+ export declare const FEED_ITEM_OUTCOME_CLOSED_BY_ADMIN = 3;
@@ -0,0 +1,2 @@
1
+ import { MarketplaceAggregatorCardTypes } from './MarketplaceAggregatorCard.types';
2
+ export default function MarketplaceAggregatorCard({ category, categoryLink, categorySlug, children, className, linkLabel, }: MarketplaceAggregatorCardTypes): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { MarketplaceAggregatorCardTypes } from './MarketplaceAggregatorCard.types';
2
- export default function MarketplaceAggregatorCardExample({ category, linkLabel, onLinkClick, }: Omit<MarketplaceAggregatorCardTypes, 'children'>): import("react/jsx-runtime").JSX.Element;
2
+ export default function MarketplaceAggregatorCardExample({ category, linkLabel, }: Omit<MarketplaceAggregatorCardTypes, 'children'>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ export interface MarketplaceAggregatorCardTypes {
3
+ category?: string;
4
+ categoryLink: string;
5
+ categorySlug?: string;
6
+ children: ReactNode[] | ReactNode;
7
+ className?: string;
8
+ linkLabel: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ import { MarketplaceBodyTypes } from './MarketplaceBody.types';
2
+ declare const MarketplaceBody: ({ author, body, category, handleReserve, id, isBookmarked, isFree, isMine, isPublic, isReserved, price, profileData, subject, timeStamp, }: MarketplaceBodyTypes) => import("react/jsx-runtime").JSX.Element;
3
+ export default MarketplaceBody;
@@ -0,0 +1,20 @@
1
+ import { LevelOfDetail } from '../../../../../../api/src/lib/core';
2
+ import { default as PostAuthorProps } from '../../PostAuthor/PostAuthor.types';
3
+ import { ProfileData } from '../MarketplaceDetailPage/MarketplaceDetailPage.types';
4
+ export interface MarketplaceBodyTypes {
5
+ author?: PostAuthorProps;
6
+ body: string;
7
+ category?: string;
8
+ handleReserve?: () => void;
9
+ id: number;
10
+ isBookmarked: boolean;
11
+ isFree: boolean;
12
+ isMine: boolean;
13
+ isPublic: boolean;
14
+ isReserved: boolean;
15
+ levelOfDetail: LevelOfDetail;
16
+ price: string;
17
+ profileData: ProfileData | null;
18
+ subject: string;
19
+ timeStamp: string | null;
20
+ }
@@ -0,0 +1,3 @@
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;
3
+ export default MarketplaceDetailPage;
@@ -0,0 +1,23 @@
1
+ import { ReactElement } from 'react';
2
+ import { CategoriesResponse, NewsFeedResponse, PostImage, PostResponse, ProfileResponse, RelatedResponse } from '../../../../../../api/src/lib/core';
3
+ export interface AdSlot {
4
+ adnuntius?: {
5
+ desktop: string;
6
+ mobile: string;
7
+ };
8
+ google?: string;
9
+ }
10
+ export interface ProfileData {
11
+ id: number | string;
12
+ }
13
+ export interface MarketplaceDetailPageProps {
14
+ ads: AdSlot[];
15
+ categories: CategoriesResponse;
16
+ feedItem: NewsFeedResponse;
17
+ isChristmas?: boolean;
18
+ postData: PostResponse;
19
+ profile: ProfileResponse;
20
+ related: RelatedResponse;
21
+ renderAdSlot: (slot: AdSlot) => ReactElement;
22
+ renderGallery: (images: PostImage[]) => ReactElement;
23
+ }
@@ -0,0 +1,10 @@
1
+ import { Category, Group } from '../../../../../../../../api/src/lib/core';
2
+ type CardAggregatorProps = {
3
+ categories: {
4
+ marketplace_categories: Category[];
5
+ };
6
+ group: Group;
7
+ relatedBookmarks: number[];
8
+ };
9
+ export declare const CardAggregator: ({ categories, group, relatedBookmarks, }: CardAggregatorProps) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,5 @@
1
+ import { NewsFeedHoodMessage } from '../../../../../../../../api/src/lib/core';
2
+ export declare const isRelatedFreeItem: ({ sub_category_id }: NewsFeedHoodMessage) => boolean;
3
+ export declare const isRelatedReserved: (item: NewsFeedHoodMessage) => boolean;
4
+ export declare const formatPrice: (number: number) => number;
5
+ export declare const getRelatedPrice: (item: NewsFeedHoodMessage) => string;
@@ -0,0 +1,7 @@
1
+ import { ReactElement } from 'react';
2
+ import { MarketplaceBodyTypes } from '../../../MarketplaceBody/MarketplaceBody.types';
3
+ export interface MarketplaceContentProps {
4
+ children?: ReactElement;
5
+ marketplaceBodyItems: MarketplaceBodyTypes;
6
+ }
7
+ export declare const MarketplaceContent: ({ children, marketplaceBodyItems, }: MarketplaceContentProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { MarketplaceItemCardlessTypes } from './MarketplaceItemCardless.types';
2
+ export default function MarketplaceItemCardless({ bookmarked, categorySlug, id, image, price, reserved, reservedText, timeStamp, title, }: MarketplaceItemCardlessTypes): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ export interface MarketplaceItemCardlessTypes {
2
+ bookmarked: boolean;
3
+ categorySlug?: string;
4
+ id: number;
5
+ image?: string;
6
+ price: string;
7
+ reserved: boolean;
8
+ reservedText: string;
9
+ timeStamp: string;
10
+ title: string;
11
+ }
@@ -0,0 +1,5 @@
1
+ export declare const ComplaintModalComponent: ({ handleReport, id, open, }: {
2
+ handleReport: () => void;
3
+ id: number;
4
+ open: boolean;
5
+ }) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,5 @@
1
+ export declare const HideModal: ({ handleClose, id, open, }: {
2
+ handleClose: () => void;
3
+ id: number;
4
+ open: boolean;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ type InfoModalProps = {
2
+ handleOpen: (open: boolean) => void;
3
+ id: number;
4
+ open: boolean;
5
+ };
6
+ export declare const InfoModal: ({ handleOpen, id, open }: InfoModalProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import { PostResponse } from '../../../../../../../../../api/src/lib/core';
2
+ export declare const InfoList: (post: PostResponse) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare const PublicInfoModal: ({ handleClose, open, }: {
2
+ handleClose: () => void;
3
+ open: boolean;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { MarketplaceMoreOptionsProps } from './MarketplaceMoreOptions.types';
2
+ export declare const MarketplaceMoreOptions: ({ id, isMine }: MarketplaceMoreOptionsProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default MarketplaceMoreOptions;
@@ -0,0 +1,4 @@
1
+ export type MarketplaceMoreOptionsProps = {
2
+ id: number;
3
+ isMine?: boolean;
4
+ };
@@ -0,0 +1,9 @@
1
+ import { PropsWithChildren } from 'react';
2
+ type MarketplaceRouterContextType = {
3
+ navigate: (path: string) => void;
4
+ };
5
+ export declare const MarketplaceRouterContext: import('react').Context<MarketplaceRouterContextType>;
6
+ export declare const MarketplaceRouterProvider: ({ children, navigate, }: PropsWithChildren<{
7
+ navigate: (path: string) => void;
8
+ }>) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1 @@
1
+ export declare const useNavigate: () => (path: string) => void;
@@ -0,0 +1,3 @@
1
+ import { default as PostAuthorProps } from './PostAuthor.types';
2
+ declare const PostAuthor: ({ author, className, feedItemCategory, groupName, metadata, onMoreClick, rating, showMoreIcon, thumbnail, }: PostAuthorProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default PostAuthor;
@@ -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 { default as 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';
@@ -15,13 +15,15 @@ type ThumbnailProps = (ThumbnailCircularProps & {
15
15
  thumbnailType: 'badge';
16
16
  });
17
17
  export default interface PostAuthorProps {
18
- author: LinkProps;
18
+ author?: LinkProps;
19
+ className?: string;
19
20
  feedItemCategory?: string;
20
21
  groupName?: LinkProps;
21
- metadata: ReactNode;
22
+ id?: number;
23
+ metadata?: ReactNode;
22
24
  onMoreClick?: IconButtonProps['onClick'];
23
25
  rating?: RatingProps;
24
26
  showMoreIcon?: boolean;
25
- thumbnail: ThumbnailProps & Pick<LinkProps, 'onClick' | 'ariaLabel'>;
27
+ thumbnail?: ThumbnailProps & Pick<LinkProps, 'onClick' | 'ariaLabel'>;
26
28
  }
27
29
  export {};
@@ -0,0 +1,32 @@
1
+ import { NewsFeedHoodMessage, NewsFeedResponse, PostResponse, RelatedResponse } from '../../../../api/src/lib/core';
2
+ import { Category } from '../../../../api/src/lib/core/v2/categories';
3
+ import { ProfileResponse } from '../../../../api/src/lib/core/v2/profile';
4
+ import { BadgeIconType } from '../../../../api/src/lib/types/newsFeeds';
5
+ import { MarketplaceBodyTypes } from './Marketplace/MarketplaceBody/MarketplaceBody.types';
6
+ import { ProfileData } from './Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.types';
7
+ import { default as PostAuthorProps } from './PostAuthor/PostAuthor.types';
8
+ export declare const isFreeItem: (post: PostResponse) => boolean;
9
+ export declare const isSold: (item: NewsFeedHoodMessage) => boolean;
10
+ export declare const isReserved: (item: PostResponse) => boolean;
11
+ export declare const formatPrice: (number: number) => number;
12
+ export declare const getPrice: (item: PostResponse) => string;
13
+ export declare const getElapsedTime: (timestamp: string) => string | null;
14
+ export declare const isPublic: (item: PostResponse) => boolean;
15
+ export declare const getAuthorId: (profileUrl: string) => number;
16
+ type BadgesType = [BadgeIconType] | [BadgeIconType, BadgeIconType] | [BadgeIconType, BadgeIconType, BadgeIconType];
17
+ export declare const getAuthorData: (post: PostResponse, badges?: BadgesType) => PostAuthorProps;
18
+ export declare const getRelatedItemThumbnail: (item: NewsFeedHoodMessage) => string;
19
+ export declare const isBookmarked: (id: number, list: number[]) => boolean;
20
+ export declare const getRelatedBookmarks: (related: RelatedResponse) => number[] | [];
21
+ type GetFeedItemDataProps = {
22
+ badges?: BadgesType;
23
+ category?: Category;
24
+ feedItem: NewsFeedResponse;
25
+ postData: PostResponse;
26
+ profile?: ProfileResponse;
27
+ };
28
+ export declare const getFeedItemData: ({ badges, category, feedItem, postData, profile, }: GetFeedItemDataProps) => MarketplaceBodyTypes;
29
+ export declare const getProfileData: (profile?: ProfileResponse) => ProfileData | null;
30
+ export declare const getLink: (category: Category | undefined) => string;
31
+ export declare const getAggregatorTrackingName: (categorySlug?: string) => string;
32
+ export {};
@@ -0,0 +1,12 @@
1
+ import { NPEAggregatorProps } from './NPEAggregator.types';
2
+ import { default as NPEAggregatorCardV1 } from './NPEAggregatorCardV1/NPEAggregatorCardV1';
3
+ import { default as NPEAggregatorCardV2 } from './NPEAggregatorCardV2/NPEAggregatorCardV2';
4
+ import { default as NPEAggregatorCardV3 } from './NPEAggregatorCardV3/NPEAggregatorCardV3';
5
+ import { default as NPEAggregatorCardV4 } from './NPEAggregatorCardV4/NPEAggregatorCardV4';
6
+ export declare const slideComponentMap: {
7
+ readonly v1: typeof NPEAggregatorCardV1;
8
+ readonly v2: typeof NPEAggregatorCardV2;
9
+ readonly v3: typeof NPEAggregatorCardV3;
10
+ readonly v4: typeof NPEAggregatorCardV4;
11
+ };
12
+ export default function NPEAggregator({ className, items, linkLabel, onLinkClick, onSwipe, title, variant, }: NPEAggregatorProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { NPEAggregatorProps } from './NPEAggregator.types';
2
+ export default function NPEAggregatorExample({ linkLabel, onLinkClick, title, }: NPEAggregatorProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,60 @@
1
+ import { ReactNode } from 'react';
2
+ type NPEAggregatorBaseProps = {
3
+ className?: string;
4
+ linkLabel: string;
5
+ onLinkClick: () => void;
6
+ onSwipe?: (direction: 'next' | 'prev') => void;
7
+ title: string;
8
+ };
9
+ type RenderImageType = ({ className }: {
10
+ className?: string;
11
+ }) => ReactNode;
12
+ export type NPEv1Item = {
13
+ categories: string[];
14
+ heartAriaLabel: string;
15
+ heartCounter: number;
16
+ heartFilled?: boolean;
17
+ onCardClick: () => void;
18
+ onHeartClick: () => void;
19
+ renderImage?: RenderImageType;
20
+ title: string;
21
+ };
22
+ export type NPEv2Item = {
23
+ address: string;
24
+ categories: string[];
25
+ heartAriaLabel: string;
26
+ heartFilled?: boolean;
27
+ onCardClick: () => void;
28
+ onHeartClick: () => void;
29
+ renderImage?: RenderImageType;
30
+ title: string;
31
+ };
32
+ export type NPEv3Item = {
33
+ businessName: string;
34
+ onCardClick: () => void;
35
+ renderImage?: RenderImageType;
36
+ text: string;
37
+ title: string;
38
+ };
39
+ export type NPEv4Item = {
40
+ authorName: string;
41
+ categories: string[];
42
+ onCardClick: () => void;
43
+ renderImage?: RenderImageType;
44
+ text: string;
45
+ title: string;
46
+ };
47
+ export type NPEAggregatorProps = (NPEAggregatorBaseProps & {
48
+ items: NPEv1Item[];
49
+ variant: 'v1';
50
+ }) | (NPEAggregatorBaseProps & {
51
+ items: NPEv2Item[];
52
+ variant: 'v2';
53
+ }) | (NPEAggregatorBaseProps & {
54
+ items: NPEv3Item[];
55
+ variant: 'v3';
56
+ }) | (NPEAggregatorBaseProps & {
57
+ items: NPEv4Item[];
58
+ variant: 'v4';
59
+ });
60
+ export {};
@@ -0,0 +1,2 @@
1
+ import { NPEAggregatorCardV1Props } from './types';
2
+ export default function NPEAggregatorCardV1({ categories, heartAriaLabel, heartCounter, heartFilled, onCardClick, onHeartClick, renderImage, title, }: NPEAggregatorCardV1Props): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { NPEv1Item } from '../NPEAggregator.types';
2
+ export type NPEAggregatorCardV1Props = NPEv1Item;
@@ -0,0 +1,2 @@
1
+ import { NPEAggregatorCardV2Props } from './types';
2
+ export default function NPEAggregatorCardV2({ address, categories, heartFilled, onCardClick, onHeartClick, renderImage, title, }: NPEAggregatorCardV2Props): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { NPEv2Item } from '../NPEAggregator.types';
2
+ export type NPEAggregatorCardV2Props = NPEv2Item;
@@ -0,0 +1,2 @@
1
+ import { NPEAggregatorCardV3Props } from './types';
2
+ export default function NPEAggregatorCardV3({ businessName, onCardClick, renderImage, text, title, }: NPEAggregatorCardV3Props): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { NPEv3Item } from '../NPEAggregator.types';
2
+ export type NPEAggregatorCardV3Props = NPEv3Item;
@@ -0,0 +1,2 @@
1
+ import { NPEAggregatorCardV4Props } from './types';
2
+ export default function NPEAggregatorCardV4({ authorName, categories, onCardClick, renderImage, text, title, }: NPEAggregatorCardV4Props): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { NPEv4Item } from '../NPEAggregator.types';
2
+ export type NPEAggregatorCardV4Props = NPEv4Item;
@@ -1,6 +1,6 @@
1
1
  export type PointOfInterestProps = {
2
2
  address?: string;
3
- badgeType?: 'localBiz' | 'localOrg';
3
+ badgeType?: 'commercial_supporter' | 'organization_supporter';
4
4
  heartComponent?: React.ReactNode;
5
5
  hood?: string;
6
6
  imageSrc?: string;
@@ -1,11 +1,11 @@
1
1
  import { MutableRefObject } from 'react';
2
- import { DropdownOptionProps } from '../../../../ui/src/lib/Atoms/Dropdowns/DropdownOption/DropdownOption.types';
2
+ import { DropdownItemProps } from '../../../../ui/src/lib/Atoms/Dropdowns/DropdownItem/DropdownItem.types';
3
3
  import { OffsetType } from '../../../../ui/src/lib/Organisms/Modals/Popup/Popup.types';
4
4
  import { PointOfInterestProfileProps } from './components/PointOfInterestProfileTile/PointOfInterestProfileTile.types';
5
5
  export type ProfileControlsProps = {
6
6
  moreMenuData: {
7
7
  offset?: OffsetType;
8
- options: DropdownOptionProps[];
8
+ options: DropdownItemProps[];
9
9
  };
10
10
  tiles: ProfileControlTile[];
11
11
  withoutMoreMenu?: boolean;
@@ -1,3 +1,3 @@
1
1
  import { ReactionSelectionProps } from './ReactionSelection.types';
2
- declare const ReactionSelection: ({ buttonContent, className, disabled, offset, onButtonClick, onReactionSelect, placement, reactions, }: ReactionSelectionProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const ReactionSelection: ({ buttonContent, className, disabled, offset, onButtonClick, onReactionSelect, placement, popupDelay, reactions, trigger, }: ReactionSelectionProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default ReactionSelection;
@@ -1,14 +1,19 @@
1
1
  import { PopupPlacement } from '@mui/base';
2
2
  import { ReactElement } from 'react';
3
- import { ReactionType } from '../../../../../api/src/lib/types/reactions';
3
+ import { ReactionType } from '../../../../../api/src/lib/core';
4
4
  import { Reaction } from '../ReactionStack/ReactionStack.types';
5
5
  export interface ReactionSelectionProps {
6
6
  buttonContent: ReactElement;
7
7
  className?: string;
8
8
  disabled?: boolean;
9
9
  offset?: 'sm' | 'md' | 'lg' | 'xl';
10
- onButtonClick: () => void;
10
+ onButtonClick?: () => void;
11
11
  onReactionSelect: (emoji: ReactionType) => void;
12
12
  placement?: PopupPlacement;
13
+ popupDelay?: {
14
+ onHover?: number;
15
+ onLongPress?: number;
16
+ };
13
17
  reactions: Reaction[];
18
+ trigger?: 'click' | 'hover';
14
19
  }
@@ -1,3 +1,3 @@
1
1
  import { ReactionStackProps } from './ReactionStack.types';
2
- declare const ReactionStack: ({ activeReaction, expanded, limit, onClick, reactions, size, stack, }: ReactionStackProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const ReactionStack: ({ activeReaction, expanded, limit, onClick, reactions, size, stack, toolTipSpacing, }: ReactionStackProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default ReactionStack;
@@ -1,4 +1,4 @@
1
- import { ReactionType } from '../../../../../api/src/lib/types/reactions';
1
+ import { ReactionType } from '../../../../../api/src/lib/core';
2
2
  export interface ReactionStackProps {
3
3
  activeReaction?: ReactionType;
4
4
  expanded?: boolean;
@@ -7,7 +7,7 @@ export interface ReactionStackProps {
7
7
  reactions: Reaction[];
8
8
  size?: 'small' | 'big';
9
9
  stack?: boolean;
10
- withTooltip?: boolean;
10
+ toolTipSpacing?: string;
11
11
  }
12
12
  export interface Reaction {
13
13
  count?: number;
@@ -1,2 +1,2 @@
1
1
  import { ReactionItemProps } from './ReactionItem.types';
2
- export declare const ReactionItem: ({ activeReaction, count, expanded, onSelect, reaction, selected, size, stack, tooltip, }: ReactionItemProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const ReactionItem: ({ activeReaction, count, expanded, onSelect, reaction, selected, size, stack, tooltip, toolTipSpacing, }: ReactionItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ReactionType } from '../../../../../../../api/src/lib/types/reactions';
1
+ import { ReactionType } from '../../../../../../../api/src/lib/core';
2
2
  export type ReactionItemProps = {
3
3
  activeReaction?: ReactionType;
4
4
  count: number | undefined;
@@ -8,5 +8,6 @@ export type ReactionItemProps = {
8
8
  selected: boolean | undefined;
9
9
  size?: 'small' | 'big';
10
10
  stack: boolean;
11
+ toolTipSpacing?: string;
11
12
  tooltip?: string;
12
13
  };
@@ -1,6 +1,6 @@
1
1
  import { ReactElement } from 'react';
2
- import { ReactionType } from '../../../../../../../api/src/lib/types/reactions';
2
+ import { ReactionType } from '../../../../../../../api/src/lib/core';
3
3
  import { ReactionPillProps } from './ReactionPill.type';
4
- export declare const renderReaction: (type: ReactionType) => ReactElement;
4
+ export declare const renderReaction: (type: ReactionType, size?: "small" | "big") => ReactElement;
5
5
  declare const ReactionPill: ({ ariaDescribedBy, className, count, expanded, onClick, reaction, selected, size, stack, }: ReactionPillProps) => ReactElement;
6
6
  export default ReactionPill;
@@ -1,4 +1,4 @@
1
- import { ReactionType } from '../../../../../../../api/src/lib/types/reactions';
1
+ import { ReactionType } from '../../../../../../../api/src/lib/core';
2
2
  import { BaseButtonProps } from '../../../../../../../ui/src/lib/Atoms/Buttons/Button/Button.types';
3
3
  export interface ReactionPillProps extends BaseButtonProps {
4
4
  ariaDescribedBy?: string;
@@ -1,4 +1,4 @@
1
- import { ReactionUser, ReactionsGetPayload, ReactionsGetResponse } from '../../../../../api/src/lib/types/reactions';
1
+ import { ReactionUser, ReactionsGetPayload, ReactionsGetResponse } from '../../../../../api/src/lib/core';
2
2
  export interface ReactionTabListProps {
3
3
  closeText?: string;
4
4
  getPicturePlaceholder: (user: ReactionUser) => string;
@@ -1,4 +1,4 @@
1
- import { ReactionType } from '../../../../api/src/lib/types/reactions';
1
+ import { ReactionType } from '../../../../api/src/lib/core';
2
2
  import { Reaction } from './ReactionStack/ReactionStack.types';
3
3
  export declare const sortReactions: <T extends Reaction>(reactions: T[]) => T[];
4
4
  export declare const isReactionType: (key: string) => key is Exclude<ReactionType, "bookmark">;