@goodhood-web/nebenan-base 4.7.0-development.1 → 4.7.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.
- package/index.js +80 -80
- package/index.mjs +7051 -7089
- package/lib/AttendeesModal/network.d.ts +1 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentFieldsSheet/ContentFieldsSheet.d.ts +3 -3
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentFieldsSheet/ContentFieldsSheet.types.d.ts +5 -2
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/PostFields/PostFields.d.ts +1 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/PostFields/PostFields.types.d.ts +6 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/index.d.ts +1 -1
- package/lib/ContentCreator/utils/general.d.ts +1 -4
- package/lib/InviteModal/network.d.ts +1 -1
- package/lib/PremiumFeaturePanel/components/PremiumFeatureSelector/PremiumFeatureSelector.types.d.ts +1 -1
- package/lib/PremiumFeaturePanel/components/PremiumFeatureSelector/network.d.ts +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const fetchAttendees: (postId:
|
|
1
|
+
export declare const fetchAttendees: (postId: number, after: string | null) => Promise<{
|
|
2
2
|
page: import('../../../../api/src/lib/core').components["schemas"]["Core_V3_Participations_List"];
|
|
3
3
|
page_info: import('../../../../api/src/lib/core').components["schemas"]["PageInfo"];
|
|
4
4
|
} | undefined>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AttachmentBarProps, ContentProps, HeaderProps } from './ContentFieldsSheet.types';
|
|
2
2
|
export declare const Header: ({ isSubmitting, onContentTypeSelectorOpen, onDismiss, profile, }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export declare const Content: ({ disablePremiumFeature, group, onOpenReachTypeSelector, onPoiDismiss, poiClicked, postFieldPlaceholders, postId, richTextAreaRef, }: ContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare const
|
|
3
|
+
export declare const Content: ({ disablePremiumFeature, formError, group, onImageUploadClick, onOpenReachTypeSelector, onPoiDismiss, onPoiOpen, poiClicked, postFieldPlaceholders, postId, richTextAreaRef, }: ContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const AttachmentBar: ({ formError, group, isSubmitting, onImageUploadClick, onOpenReachTypeSelector, onPoiOpen, }: AttachmentBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,9 +10,12 @@ export type HeaderProps = {
|
|
|
10
10
|
};
|
|
11
11
|
export type ContentProps = {
|
|
12
12
|
disablePremiumFeature?: boolean;
|
|
13
|
+
formError?: string | null;
|
|
13
14
|
group: Group | null | undefined;
|
|
15
|
+
onImageUploadClick: () => void;
|
|
14
16
|
onOpenReachTypeSelector: () => void;
|
|
15
17
|
onPoiDismiss: () => void;
|
|
18
|
+
onPoiOpen: () => void;
|
|
16
19
|
poiClicked: boolean;
|
|
17
20
|
postFieldPlaceholders?: {
|
|
18
21
|
contentField?: string;
|
|
@@ -21,10 +24,10 @@ export type ContentProps = {
|
|
|
21
24
|
postId?: number | string;
|
|
22
25
|
richTextAreaRef?: RefObject<RichTextAreaRef>;
|
|
23
26
|
};
|
|
24
|
-
export type
|
|
27
|
+
export type AttachmentBarProps = {
|
|
25
28
|
formError?: string | null;
|
|
26
29
|
group: Group | null | undefined;
|
|
27
|
-
isSubmitting
|
|
30
|
+
isSubmitting?: boolean;
|
|
28
31
|
onImageUploadClick: () => void;
|
|
29
32
|
onOpenReachTypeSelector: () => void;
|
|
30
33
|
onPoiOpen: () => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PostFieldsProps } from './PostFields.types';
|
|
2
|
-
declare const PostFields: ({
|
|
2
|
+
declare const PostFields: ({ formError, group, onImageUploadClick, onOpenReachTypeSelector, onPoiDismiss, onPoiOpen, poiClicked, postFieldPlaceholders, richTextAreaRef, }: PostFieldsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default PostFields;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
import { RichTextAreaRef } from '../../../../../RichTextArea/RichTextArea.types';
|
|
3
|
+
import { Group } from '../../../../ContentCreatorForm.types';
|
|
3
4
|
export type PostFieldsProps = {
|
|
4
|
-
|
|
5
|
+
formError?: string | null;
|
|
6
|
+
group: Group | null | undefined;
|
|
7
|
+
onImageUploadClick: () => void;
|
|
8
|
+
onOpenReachTypeSelector: () => void;
|
|
5
9
|
onPoiDismiss: () => void;
|
|
10
|
+
onPoiOpen: () => void;
|
|
6
11
|
poiClicked: boolean;
|
|
7
12
|
postFieldPlaceholders?: {
|
|
8
13
|
contentField?: string;
|
|
@@ -2,5 +2,5 @@ export { default as ContentTypeField } from './ContentTypeField/ContentTypeField
|
|
|
2
2
|
export { default as PostFields } from './PostFields/PostFields';
|
|
3
3
|
export { default as EventFields } from './EventFields/EventFields';
|
|
4
4
|
export { default as MarketplaceFields } from './MarketplaceFields/MarketplaceFields';
|
|
5
|
-
export { Header, Content,
|
|
5
|
+
export { Header, Content, AttachmentBar } from './ContentFieldsSheet/ContentFieldsSheet';
|
|
6
6
|
export { default as ReachTypeField } from './ReachTypeField/ReachTypeField';
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { DefaultValues } from 'react-hook-form';
|
|
2
1
|
import { SelectedPremiumFeature } from '../../PremiumFeaturePanel/components/PremiumFeatureSelector/PremiumFeatureSelector.types';
|
|
3
|
-
import { FailureError
|
|
2
|
+
import { FailureError } from '../ContentCreatorForm.types';
|
|
4
3
|
import { LocationValue } from '../components/ContentCreatorFieldWrapper/components/ListModalField/FormModalFields/FormModalsFields.types';
|
|
5
|
-
import { ContentFormData } from '../validationSchemas';
|
|
6
4
|
import { BodyWithEmbeds } from '../validationSchemas/commonSchemas';
|
|
7
5
|
export declare const transformBackendFieldError: (error: FailureError) => {
|
|
8
6
|
failures: {
|
|
@@ -11,7 +9,6 @@ export declare const transformBackendFieldError: (error: FailureError) => {
|
|
|
11
9
|
message: string;
|
|
12
10
|
}[];
|
|
13
11
|
};
|
|
14
|
-
export declare const getInitialValues: (post: PostItem) => DefaultValues<ContentFormData>;
|
|
15
12
|
export declare const combineDateAndTimeStrings: (type: "start" | "end", dateStr: Date | null, timeStr: Date | null) => string | null | undefined;
|
|
16
13
|
export declare const navigateTo: (contentType: string | undefined) => "/feed/marketplace" | "/feed";
|
|
17
14
|
export declare const formatLocation: (location: LocationValue) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const fetchInvitees: (postId:
|
|
1
|
+
export declare const fetchInvitees: (postId: number, query: string, after: string | null) => Promise<{
|
|
2
2
|
page: import('../../../../api/src/lib/core').components["schemas"]["Core_V3_Neighbour_List"];
|
|
3
3
|
page_info: import('../../../../api/src/lib/core').components["schemas"]["PageInfo"];
|
|
4
4
|
} | undefined>;
|
package/lib/PremiumFeaturePanel/components/PremiumFeatureSelector/PremiumFeatureSelector.types.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export declare enum PremiumFeatureOptions {
|
|
|
30
30
|
MARKETPLACE_BOOST_HIGHLIGHT = "best_offer",
|
|
31
31
|
MARKETPLACE_HIGHLIGHT = "highlight"
|
|
32
32
|
}
|
|
33
|
-
export type IconKeys = '
|
|
33
|
+
export type IconKeys = 'highlight' | 'boost' | 'feature' | 'bundle';
|
|
34
34
|
export type PremiumFeatureSelectorProps = {
|
|
35
35
|
defaultValue?: SelectedPremiumFeature;
|
|
36
36
|
hasPremiumFeature: boolean;
|
|
@@ -4,7 +4,7 @@ export declare const fetchPremiumFeatureProducts: (postId?: number | string) =>
|
|
|
4
4
|
identifier: string;
|
|
5
5
|
name: string;
|
|
6
6
|
description: string;
|
|
7
|
-
icon?: "feature" | "bundle";
|
|
7
|
+
icon?: "highlight" | "boost" | "feature" | "bundle";
|
|
8
8
|
price_cents: number;
|
|
9
9
|
tax_rate: number;
|
|
10
10
|
duration_days?: number | null;
|