@goodhood-web/nebenan-base 2.1.0-development.40 → 2.1.0-development.41
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.mjs
CHANGED
|
@@ -58620,21 +58620,21 @@ const x2 = {
|
|
|
58620
58620
|
postData: i,
|
|
58621
58621
|
profile: t
|
|
58622
58622
|
}) => {
|
|
58623
|
-
const { live_data: a } = e,
|
|
58623
|
+
const { live_data: a } = e, s = a.hood_message.bookmark, f = XF(i), d = tP(t);
|
|
58624
58624
|
return {
|
|
58625
|
-
author:
|
|
58626
|
-
body:
|
|
58625
|
+
author: f,
|
|
58626
|
+
body: i.body,
|
|
58627
58627
|
category: n == null ? void 0 : n.title["de-DE"],
|
|
58628
|
-
id:
|
|
58629
|
-
isBookmarked: tv(
|
|
58630
|
-
isMine: (
|
|
58631
|
-
isPublic:
|
|
58632
|
-
isReserved: YF(
|
|
58633
|
-
levelOfDetail:
|
|
58634
|
-
price: QF(
|
|
58635
|
-
profileData:
|
|
58636
|
-
subject:
|
|
58637
|
-
timeStamp: Af(
|
|
58628
|
+
id: i.id,
|
|
58629
|
+
isBookmarked: tv(i.id, s),
|
|
58630
|
+
isMine: (f == null ? void 0 : f.id) === (d == null ? void 0 : d.id),
|
|
58631
|
+
isPublic: i.is_public,
|
|
58632
|
+
isReserved: YF(i),
|
|
58633
|
+
levelOfDetail: i.level_of_detail,
|
|
58634
|
+
price: QF(i),
|
|
58635
|
+
profileData: d,
|
|
58636
|
+
subject: i.subject,
|
|
58637
|
+
timeStamp: Af(i.created_at)
|
|
58638
58638
|
};
|
|
58639
58639
|
}, tP = (n) => n ? {
|
|
58640
58640
|
id: n.id
|
|
@@ -58796,24 +58796,21 @@ const x2 = {
|
|
|
58796
58796
|
}, [i, e]);
|
|
58797
58797
|
const d = () => {
|
|
58798
58798
|
n(!1), f(!s);
|
|
58799
|
-
}, c = () => {
|
|
58800
|
-
|
|
58801
|
-
|
|
58802
|
-
|
|
58803
|
-
|
|
58804
|
-
|
|
58805
|
-
|
|
58806
|
-
|
|
58807
|
-
|
|
58808
|
-
|
|
58809
|
-
|
|
58810
|
-
|
|
58811
|
-
|
|
58812
|
-
|
|
58813
|
-
|
|
58814
|
-
) })
|
|
58815
|
-
] });
|
|
58816
|
-
};
|
|
58799
|
+
}, c = () => /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
|
|
58800
|
+
t && /* @__PURE__ */ p.jsx(gP, { ...t }),
|
|
58801
|
+
(t == null ? void 0 : t.is_public) && /* @__PURE__ */ p.jsx("div", { className: _P.body__notice, children: /* @__PURE__ */ p.jsx(
|
|
58802
|
+
Nw,
|
|
58803
|
+
{
|
|
58804
|
+
context: "infoGrey",
|
|
58805
|
+
primaryText: "Hinweis",
|
|
58806
|
+
secondaryText: "Dieser Beitrag wurde vom Verfasser als öffentlicher Beitrag erstellt und kann außerhalb von nebenan.de gesehen werden. Reaktionen und Antworten auf den Beitrag sind außerhalb der Nachbarschaft nicht sichtbar.",
|
|
58807
|
+
size: "small",
|
|
58808
|
+
onClick: d,
|
|
58809
|
+
type: "embedded",
|
|
58810
|
+
textButton: "Mehr zu öffentlichen Beiträgen"
|
|
58811
|
+
}
|
|
58812
|
+
) })
|
|
58813
|
+
] });
|
|
58817
58814
|
return /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
|
|
58818
58815
|
/* @__PURE__ */ p.jsx(
|
|
58819
58816
|
xP,
|
|
@@ -61475,7 +61472,7 @@ function OW({
|
|
|
61475
61472
|
TP,
|
|
61476
61473
|
{
|
|
61477
61474
|
className: Xa.card__header,
|
|
61478
|
-
id: i.
|
|
61475
|
+
id: i.id,
|
|
61479
61476
|
isMine: h.isMine
|
|
61480
61477
|
}
|
|
61481
61478
|
),
|
|
@@ -61488,7 +61485,7 @@ function OW({
|
|
|
61488
61485
|
primaryText: "Dieses Angebot ist außerhalb deiner Nachbarschaft.",
|
|
61489
61486
|
secondaryText: "Nutze nebenan.de, um Angebote in deiner direkten Nachbarschaft zu finden."
|
|
61490
61487
|
}
|
|
61491
|
-
) : /* @__PURE__ */ p.jsx(nH, { marketplaceBodyItems: h, children: f(i.
|
|
61488
|
+
) : /* @__PURE__ */ p.jsx(nH, { marketplaceBodyItems: h, children: f(i.images) })
|
|
61492
61489
|
] }) }),
|
|
61493
61490
|
a.groups.map((v, _) => /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
|
|
61494
61491
|
/* @__PURE__ */ p.jsx(
|
package/lib/FeedItem/Marketplace/MarketplaceMoreOptions/InfoModal/components/InfoList/InfoList.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const InfoList: (post:
|
|
1
|
+
import { PostResponse } from '../../../../../../../../../api/src/lib/core';
|
|
2
|
+
export declare const InfoList: (post: PostResponse) => import("react/jsx-runtime").JSX.Element;
|
package/lib/FeedItem/utils.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { NewsFeedHoodMessage, NewsFeedResponse,
|
|
1
|
+
import { NewsFeedHoodMessage, NewsFeedResponse, PostResponse, RelatedResponse } from '../../../../api/src/lib/core';
|
|
2
2
|
import { Category } from '../../../../api/src/lib/core/v2/categories';
|
|
3
3
|
import { ProfileResponse } from '../../../../api/src/lib/core/v2/profile';
|
|
4
4
|
import { MarketplaceBodyTypes } from './Marketplace/MarketplaceBody/MarketplaceBody.types';
|
|
5
5
|
import { ProfileData } from './Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.types';
|
|
6
6
|
import { default as PostAuthorProps } from './PostAuthor/PostAuthor.types';
|
|
7
|
-
export declare const isFreeItem: (post:
|
|
7
|
+
export declare const isFreeItem: (post: PostResponse) => boolean;
|
|
8
8
|
export declare const isSold: (item: NewsFeedHoodMessage) => boolean;
|
|
9
|
-
export declare const isReserved: (item:
|
|
9
|
+
export declare const isReserved: (item: PostResponse) => boolean;
|
|
10
10
|
export declare const formatPrice: (number: number) => number;
|
|
11
|
-
export declare const getPrice: (item:
|
|
11
|
+
export declare const getPrice: (item: PostResponse) => string;
|
|
12
12
|
export declare const getElapsedTime: (timestamp: string) => string | null;
|
|
13
|
-
export declare const getAuthorData: (post:
|
|
13
|
+
export declare const getAuthorData: (post: PostResponse) => PostAuthorProps;
|
|
14
14
|
export declare const getRelatedItemThumbnail: (item: NewsFeedHoodMessage) => string;
|
|
15
15
|
export declare const isBookmarked: (id: number, list: number[]) => boolean;
|
|
16
16
|
export declare const getRelatedBookmarks: (related: RelatedResponse) => number[] | [];
|