@goodhood-web/nebenan-base 4.11.0-development.6 → 4.11.0-development.8
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.js +75 -75
- package/index.mjs +5450 -5439
- package/lib/Feed/FeedItem/Replies/ReplyBubble/utils.d.ts +1 -1
- package/lib/Feed/FeedItem/Replies/ReplySection/network.d.ts +1 -1
- package/lib/Feed/FeedItem/Replies/ReplySection/utils.d.ts +1 -1
- package/lib/RichTextArea/components/POI/POIRecommendation.types.d.ts +4 -1
- package/lib/RichTextArea/components/POI/Store/poi.d.ts +38 -3
- package/lib/RichTextArea/components/POI/network.d.ts +19 -0
- package/lib/RichTextArea/components/POI/utils.d.ts +6 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ReplyBubbleProps } from './ReplyBubble.types';
|
|
3
|
-
export declare const parseReplyContent: (reply?: ReplyBubbleProps["reply"]) => ReactNode[] |
|
|
3
|
+
export declare const parseReplyContent: (reply?: ReplyBubbleProps["reply"]) => ReactNode[] | undefined;
|
|
4
4
|
export declare const renderEmbeddables: (reply: ReplyBubbleProps["reply"]) => (import("react/jsx-runtime").JSX.Element | null)[] | null;
|
|
@@ -6,7 +6,7 @@ type PostReplyProps = {
|
|
|
6
6
|
export declare const postReply: ({ postId, reply }: PostReplyProps) => Promise<{
|
|
7
7
|
id: number;
|
|
8
8
|
parent_hood_message_id: number;
|
|
9
|
-
body
|
|
9
|
+
body?: string | null;
|
|
10
10
|
author_details?: import('../../../../../../../api/src/lib/core').components["schemas"]["Core_V3_AuthorDetails"] | null;
|
|
11
11
|
created_at: string;
|
|
12
12
|
updated_at?: string | null;
|
|
@@ -10,7 +10,7 @@ type SlicedRepliesProps = {
|
|
|
10
10
|
export declare const slicedReplies: ({ expanded, limit, replies }: SlicedRepliesProps) => {
|
|
11
11
|
id: number;
|
|
12
12
|
parent_hood_message_id: number;
|
|
13
|
-
body
|
|
13
|
+
body?: string | null;
|
|
14
14
|
author_details?: components["schemas"]["Core_V3_AuthorDetails"] | null;
|
|
15
15
|
created_at: string;
|
|
16
16
|
updated_at?: string | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { components } from '../../../../../../api/src/lib/core';
|
|
1
2
|
import { Poi } from '../../../../../../api/src/lib/core_v2';
|
|
2
3
|
import { SearchableListProps } from '../../../SearchableList/SearchableList.types';
|
|
3
4
|
export type POIRecommendationProps = {
|
|
@@ -15,6 +16,8 @@ export type POIRecommendationProps = {
|
|
|
15
16
|
};
|
|
16
17
|
};
|
|
17
18
|
export type POICategory = {
|
|
18
|
-
|
|
19
|
+
id?: string;
|
|
20
|
+
key?: string;
|
|
19
21
|
label: string;
|
|
20
22
|
};
|
|
23
|
+
export type V3BusinessProfile = components['schemas']['Core_V3_NOPE_Profile'];
|
|
@@ -1,4 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare const uploadedPoi: import('jotai').PrimitiveAtom<{
|
|
2
|
+
id: string;
|
|
3
|
+
categories: import('../../../../../../../api/src/lib/core').components["schemas"]["Core_V3_NOPE_Category_List"];
|
|
4
|
+
gid: string;
|
|
5
|
+
kind: "business" | "organization";
|
|
6
|
+
legacy_gid: string;
|
|
7
|
+
recommendations_count: number;
|
|
8
|
+
subcategories: import('../../../../../../../api/src/lib/core').components["schemas"]["Core_V3_NOPE_Category_List"];
|
|
9
|
+
supporter: boolean;
|
|
10
|
+
title?: string | null;
|
|
11
|
+
city?: string | null;
|
|
12
|
+
house_number?: string | null;
|
|
13
|
+
location?: import('../../../../../../../api/src/lib/core').components["schemas"]["Core_V3_Point"] | null;
|
|
14
|
+
street?: string | null;
|
|
15
|
+
zip_code?: string | null;
|
|
16
|
+
banner_url?: string | null;
|
|
17
|
+
logo_url?: string | null;
|
|
18
|
+
representative_image_url?: string | null;
|
|
19
|
+
} | null> & {
|
|
20
|
+
init: {
|
|
21
|
+
id: string;
|
|
22
|
+
categories: import('../../../../../../../api/src/lib/core').components["schemas"]["Core_V3_NOPE_Category_List"];
|
|
23
|
+
gid: string;
|
|
24
|
+
kind: "business" | "organization";
|
|
25
|
+
legacy_gid: string;
|
|
26
|
+
recommendations_count: number;
|
|
27
|
+
subcategories: import('../../../../../../../api/src/lib/core').components["schemas"]["Core_V3_NOPE_Category_List"];
|
|
28
|
+
supporter: boolean;
|
|
29
|
+
title?: string | null;
|
|
30
|
+
city?: string | null;
|
|
31
|
+
house_number?: string | null;
|
|
32
|
+
location?: import('../../../../../../../api/src/lib/core').components["schemas"]["Core_V3_Point"] | null;
|
|
33
|
+
street?: string | null;
|
|
34
|
+
zip_code?: string | null;
|
|
35
|
+
banner_url?: string | null;
|
|
36
|
+
logo_url?: string | null;
|
|
37
|
+
representative_image_url?: string | null;
|
|
38
|
+
} | null;
|
|
4
39
|
};
|
|
@@ -1,3 +1,22 @@
|
|
|
1
1
|
export declare const fetchBusinessProfile: (id: number) => Promise<import('../../../../../../api/src/lib/types/newsFeeds').LinkedBusinessProfile>;
|
|
2
|
+
export declare const fetchBusinessProfileV3: (uuid: string) => Promise<{
|
|
3
|
+
id: string;
|
|
4
|
+
categories: import('../../../../../../api/src/lib/core').components["schemas"]["Core_V3_NOPE_Category_List"];
|
|
5
|
+
gid: string;
|
|
6
|
+
kind: "business" | "organization";
|
|
7
|
+
legacy_gid: string;
|
|
8
|
+
recommendations_count: number;
|
|
9
|
+
subcategories: import('../../../../../../api/src/lib/core').components["schemas"]["Core_V3_NOPE_Category_List"];
|
|
10
|
+
supporter: boolean;
|
|
11
|
+
title?: string | null;
|
|
12
|
+
city?: string | null;
|
|
13
|
+
house_number?: string | null;
|
|
14
|
+
location?: import('../../../../../../api/src/lib/core').components["schemas"]["Core_V3_Point"] | null;
|
|
15
|
+
street?: string | null;
|
|
16
|
+
zip_code?: string | null;
|
|
17
|
+
banner_url?: string | null;
|
|
18
|
+
logo_url?: string | null;
|
|
19
|
+
representative_image_url?: string | null;
|
|
20
|
+
} | undefined>;
|
|
2
21
|
export declare const fetchProfile: () => Promise<import('../../../../../../api/src/lib/core_v2').ProfileResponse>;
|
|
3
22
|
export declare const fetchPOIs: (searchQuery: string, purpose: string) => Promise<import('../../../../../../api/src/lib/core_v2').Poi[]>;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { Poi } from '../../../../../../api/src/lib/core_v2';
|
|
2
2
|
import { ProfileResponse } from '../../../../../../api/src/lib/core_v2/types';
|
|
3
3
|
import { LinkedBusinessProfile } from '../../../../../../api/src/lib/types/newsFeeds';
|
|
4
|
-
import { POICategory } from './POIRecommendation.types';
|
|
5
|
-
export declare const formatAddressFull: (item: Poi | LinkedBusinessProfile, joiner?: string) => string;
|
|
4
|
+
import { POICategory, V3BusinessProfile } from './POIRecommendation.types';
|
|
5
|
+
export declare const formatAddressFull: (item: Poi | LinkedBusinessProfile | V3BusinessProfile, joiner?: string) => string;
|
|
6
6
|
export declare const getLikedProp: (object_type: string) => "recommends_unclaimed_profile_ids" | "recommends_organization_profile_ids" | "recommends_business_profile_ids" | undefined;
|
|
7
7
|
export declare const hasLiked: (profile: ProfileResponse, poi: Poi) => boolean;
|
|
8
8
|
export declare const getItemCategoryLabel: (categories_labels?: POICategory[], subcategories_labels?: POICategory[]) => string | null;
|
|
9
9
|
export declare const getPoiPlaceholderIconName: (type: string) => "business" | "special_place" | "organisation";
|
|
10
10
|
export declare const generateBadgeType: (badges: string[]) => "commercial_supporter" | "organization_supporter";
|
|
11
|
+
export declare const generateBadgeTypeV3: (kind: "business" | "organization") => "commercial_supporter" | "organization_supporter";
|
|
12
|
+
export declare const generateLocationGid: (value: Poi) => string;
|
|
13
|
+
export declare const extractPoiUuidFromAssociatedGid: (gid: string) => string | null;
|
|
14
|
+
export declare const parseKindType: (kind: V3BusinessProfile["kind"]) => "business" | "organisation";
|