@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, { level_of_detail: s, post: f } = i, d = a.hood_message.bookmark, c = XF(f), h = tP(t);
58623
+ const { live_data: a } = e, s = a.hood_message.bookmark, f = XF(i), d = tP(t);
58624
58624
  return {
58625
- author: c,
58626
- body: f.body,
58625
+ author: f,
58626
+ body: i.body,
58627
58627
  category: n == null ? void 0 : n.title["de-DE"],
58628
- id: f.id,
58629
- isBookmarked: tv(f.id, d),
58630
- isMine: (c == null ? void 0 : c.id) === (h == null ? void 0 : h.id),
58631
- isPublic: f.is_public,
58632
- isReserved: YF(f),
58633
- levelOfDetail: s,
58634
- price: QF(f),
58635
- profileData: h,
58636
- subject: f.subject,
58637
- timeStamp: Af(f.created_at)
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
- const { post: h } = t || {};
58801
- return /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
58802
- h && /* @__PURE__ */ p.jsx(gP, { ...h }),
58803
- (h == null ? void 0 : h.is_public) && /* @__PURE__ */ p.jsx("div", { className: _P.body__notice, children: /* @__PURE__ */ p.jsx(
58804
- Nw,
58805
- {
58806
- context: "infoGrey",
58807
- primaryText: "Hinweis",
58808
- 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.",
58809
- size: "small",
58810
- onClick: d,
58811
- type: "embedded",
58812
- textButton: "Mehr zu öffentlichen Beiträgen"
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.post.id,
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.post.images) })
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(
@@ -1,2 +1,2 @@
1
- import { Post } from '../../../../../../../../../api/src/lib/core';
2
- export declare const InfoList: (post: Post) => import("react/jsx-runtime").JSX.Element;
1
+ import { PostResponse } from '../../../../../../../../../api/src/lib/core';
2
+ export declare const InfoList: (post: PostResponse) => import("react/jsx-runtime").JSX.Element;
@@ -1,16 +1,16 @@
1
- import { NewsFeedHoodMessage, NewsFeedResponse, Post, PostResponse, RelatedResponse } from '../../../../api/src/lib/core';
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: Post) => boolean;
7
+ export declare const isFreeItem: (post: PostResponse) => boolean;
8
8
  export declare const isSold: (item: NewsFeedHoodMessage) => boolean;
9
- export declare const isReserved: (item: Post) => boolean;
9
+ export declare const isReserved: (item: PostResponse) => boolean;
10
10
  export declare const formatPrice: (number: number) => number;
11
- export declare const getPrice: (item: Post) => string;
11
+ export declare const getPrice: (item: PostResponse) => string;
12
12
  export declare const getElapsedTime: (timestamp: string) => string | null;
13
- export declare const getAuthorData: (post: Post) => PostAuthorProps;
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[] | [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "2.1.0-development.40",
3
+ "version": "2.1.0-development.41",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",