@goodhood-web/nebenan-base 4.7.0-development.7 → 4.7.0-development.9
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 +97 -95
- package/index.mjs +13065 -12880
- package/lib/ContentCreator/ContentCreator.d.ts +1 -1
- package/lib/ContentCreator/ContentCreatorForm.types.d.ts +6 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentFieldsSheet/ContentFieldsSheet.d.ts +1 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentFieldsSheet/ContentFieldsSheet.types.d.ts +2 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/EventFields/EventFields.d.ts +1 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/EventFields/EventFields.types.d.ts +2 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/PostFields/FormRichTextArea.d.ts +6 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/PostFields/PostFields.d.ts +1 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/PostFields/PostFields.types.d.ts +2 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/TopicComponents/ChristmasInfo.d.ts +6 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/TopicComponents/TopicToggle.d.ts +7 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/TopicComponents/index.d.ts +2 -0
- package/lib/ContentCreator/constants.d.ts +3 -0
- package/lib/ContentCreator/network.d.ts +2 -2
- package/lib/ContentCreator/utils/payloadGenerators.d.ts +5 -3
- package/lib/ContentCreator/validationSchemas/commonSchemas.d.ts +1 -0
- package/lib/ContentCreator/validationSchemas/dynamicValidationSchema.d.ts +12 -0
- package/lib/ContentCreator/validationSchemas/eventSchema.d.ts +3 -0
- package/lib/ContentCreator/validationSchemas/postSchema.d.ts +9 -0
- package/lib/Forms/Fields/FormToggleInput.d.ts +1 -1
- package/lib/RichTextArea/RichTextArea.types.d.ts +1 -0
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ContentCreatorProps } from './ContentCreatorForm.types';
|
|
2
|
-
declare const ContentCreator: ({ config, contentCreatorRef, disablePremiumFeature, group, onDismiss, onSubmitSuccess, open, post, postFieldPlaceholders, postId, prefillValues, profile, }: ContentCreatorProps & {
|
|
2
|
+
declare const ContentCreator: ({ config, contentCreatorRef, disablePremiumFeature, group, onDismiss, onSubmitSuccess, open, post, postFieldPlaceholders, postId, prefillValues, profile, topic, }: ContentCreatorProps & {
|
|
3
3
|
config: {
|
|
4
4
|
chargebee: {
|
|
5
5
|
site: string;
|
|
@@ -6,6 +6,7 @@ export type PostItem = components['schemas']['Core_V3_Input_HoodMessage'];
|
|
|
6
6
|
export type FailureError = {
|
|
7
7
|
failures: components['schemas']['Core_V3_Failure_List'];
|
|
8
8
|
};
|
|
9
|
+
export type Topic = 'christmas' | 'climate';
|
|
9
10
|
export type HoodMessage = components['schemas']['Core_V3_HoodMessage'];
|
|
10
11
|
export type Group = {
|
|
11
12
|
[key: string]: unknown;
|
|
@@ -33,8 +34,11 @@ export type ContentCreatorProps = {
|
|
|
33
34
|
subjectField?: string;
|
|
34
35
|
};
|
|
35
36
|
postId?: number | string;
|
|
36
|
-
prefillValues?: Partial<ContentFormData
|
|
37
|
+
prefillValues?: Partial<ContentFormData> & {
|
|
38
|
+
sessionId?: string;
|
|
39
|
+
};
|
|
37
40
|
profile: ProfileResponse;
|
|
41
|
+
topic?: Topic;
|
|
38
42
|
};
|
|
39
43
|
export type ContentCreatorFormProps = {
|
|
40
44
|
disablePremiumFeature?: boolean;
|
|
@@ -50,6 +54,7 @@ export type ContentCreatorFormProps = {
|
|
|
50
54
|
};
|
|
51
55
|
postId?: number | string;
|
|
52
56
|
profile: ProfileResponse;
|
|
57
|
+
topic?: Topic;
|
|
53
58
|
};
|
|
54
59
|
export type PostFormData = Extract<ContentFormData, {
|
|
55
60
|
content_type: 'post' | 'search' | 'recommendation';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
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, formError, group, onImageUploadClick, onOpenReachTypeSelector, onPoiDismiss, onPoiOpen, poiClicked, postFieldPlaceholders, postId, richTextAreaRef, }: ContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const Content: ({ disablePremiumFeature, formError, group, onImageUploadClick, onOpenReachTypeSelector, onPoiDismiss, onPoiOpen, poiClicked, postFieldPlaceholders, postId, richTextAreaRef, topic, }: ContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare const AttachmentBar: ({ formError, group, isSubmitting, onImageUploadClick, onOpenReachTypeSelector, onPoiOpen, }: AttachmentBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
import { ProfileResponse } from '../../../../../../../../api/src/lib/core_v2';
|
|
3
3
|
import { RichTextAreaRef } from '../../../../../RichTextArea/RichTextArea.types';
|
|
4
|
-
import { Group } from '../../../../ContentCreatorForm.types';
|
|
4
|
+
import { Group, Topic } from '../../../../ContentCreatorForm.types';
|
|
5
5
|
export type HeaderProps = {
|
|
6
6
|
isSubmitting: boolean;
|
|
7
7
|
onContentTypeSelectorOpen: () => void;
|
|
@@ -23,6 +23,7 @@ export type ContentProps = {
|
|
|
23
23
|
};
|
|
24
24
|
postId?: number | string;
|
|
25
25
|
richTextAreaRef?: RefObject<RichTextAreaRef>;
|
|
26
|
+
topic?: Topic;
|
|
26
27
|
};
|
|
27
28
|
export type AttachmentBarProps = {
|
|
28
29
|
formError?: string | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { EventFieldsProps } from './EventFields.types';
|
|
2
|
-
declare const EventFields: ({ group, onOpenReachTypeSelector }: EventFieldsProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const EventFields: ({ group, onOpenReachTypeSelector, topic }: EventFieldsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default EventFields;
|
|
@@ -5,6 +5,7 @@ export type FormRichTextAreaInputProps = UseControllerProps<ContentFormData> & P
|
|
|
5
5
|
groupId?: number;
|
|
6
6
|
multipleImageUpload?: boolean;
|
|
7
7
|
name: string;
|
|
8
|
+
slot?: React.ReactNode;
|
|
8
9
|
};
|
|
9
10
|
declare const FormRichTextAreaInput: import('react').ForwardRefExoticComponent<UseControllerProps<{
|
|
10
11
|
content: {
|
|
@@ -26,6 +27,7 @@ declare const FormRichTextAreaInput: import('react').ForwardRefExoticComponent<U
|
|
|
26
27
|
content_type: "post";
|
|
27
28
|
subject: string;
|
|
28
29
|
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
30
|
+
topic?: boolean | null | undefined;
|
|
29
31
|
} | {
|
|
30
32
|
content: {
|
|
31
33
|
body: string;
|
|
@@ -46,6 +48,7 @@ declare const FormRichTextAreaInput: import('react').ForwardRefExoticComponent<U
|
|
|
46
48
|
content_type: "search";
|
|
47
49
|
subject: string;
|
|
48
50
|
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
51
|
+
topic?: boolean | null | undefined;
|
|
49
52
|
} | {
|
|
50
53
|
content: {
|
|
51
54
|
body: string;
|
|
@@ -66,6 +69,7 @@ declare const FormRichTextAreaInput: import('react').ForwardRefExoticComponent<U
|
|
|
66
69
|
content_type: "recommendation";
|
|
67
70
|
subject: string;
|
|
68
71
|
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
72
|
+
topic?: boolean | null | undefined;
|
|
69
73
|
} | {
|
|
70
74
|
content: {
|
|
71
75
|
body: string;
|
|
@@ -99,6 +103,7 @@ declare const FormRichTextAreaInput: import('react').ForwardRefExoticComponent<U
|
|
|
99
103
|
originalImg: File;
|
|
100
104
|
signedId?: string | undefined;
|
|
101
105
|
}[] | undefined;
|
|
106
|
+
topic?: boolean | null | undefined;
|
|
102
107
|
ends_at_date?: Date | null | undefined;
|
|
103
108
|
ends_at_time?: Date | null | undefined;
|
|
104
109
|
} | {
|
|
@@ -144,5 +149,6 @@ declare const FormRichTextAreaInput: import('react').ForwardRefExoticComponent<U
|
|
|
144
149
|
groupId?: number;
|
|
145
150
|
multipleImageUpload?: boolean;
|
|
146
151
|
name: string;
|
|
152
|
+
slot?: React.ReactNode;
|
|
147
153
|
} & import('react').RefAttributes<RichTextAreaRef>>;
|
|
148
154
|
export default FormRichTextAreaInput;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PostFieldsProps } from './PostFields.types';
|
|
2
|
-
declare const PostFields: ({ formError, group, onImageUploadClick, onOpenReachTypeSelector, onPoiDismiss, onPoiOpen, poiClicked, postFieldPlaceholders, richTextAreaRef, }: PostFieldsProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const PostFields: ({ formError, group, onImageUploadClick, onOpenReachTypeSelector, onPoiDismiss, onPoiOpen, poiClicked, postFieldPlaceholders, richTextAreaRef, topic, }: PostFieldsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default PostFields;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
import { RichTextAreaRef } from '../../../../../RichTextArea/RichTextArea.types';
|
|
3
|
-
import { Group } from '../../../../ContentCreatorForm.types';
|
|
3
|
+
import { Group, Topic } from '../../../../ContentCreatorForm.types';
|
|
4
4
|
export type PostFieldsProps = {
|
|
5
5
|
formError?: string | null;
|
|
6
6
|
group: Group | null | undefined;
|
|
@@ -14,4 +14,5 @@ export type PostFieldsProps = {
|
|
|
14
14
|
subjectField?: string;
|
|
15
15
|
};
|
|
16
16
|
richTextAreaRef?: RefObject<RichTextAreaRef>;
|
|
17
|
+
topic?: Topic;
|
|
17
18
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Topic } from '../../../../ContentCreatorForm.types';
|
|
2
|
+
type TopicToggleProps = {
|
|
3
|
+
openMoreXmasInfo: () => void;
|
|
4
|
+
topic: Topic;
|
|
5
|
+
};
|
|
6
|
+
declare const TopicToggle: ({ openMoreXmasInfo, topic }: TopicToggleProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export default TopicToggle;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { MarketplaceItems } from './components/ContentCreatorFieldWrapper/components/MarketplaceFields/MarketplaceFields.types';
|
|
2
|
+
export declare const CHRISTMAS_VALUE = "xmas_2025";
|
|
2
3
|
export declare const DEFAULT_FORM_VALUES: {
|
|
3
4
|
category: string;
|
|
4
5
|
content: {
|
|
@@ -23,7 +24,9 @@ export declare const DEFAULT_FORM_VALUES: {
|
|
|
23
24
|
};
|
|
24
25
|
price: null;
|
|
25
26
|
reach: string;
|
|
27
|
+
sessionId: null;
|
|
26
28
|
starts_at_date: Date;
|
|
27
29
|
starts_at_time: Date;
|
|
28
30
|
subject: string;
|
|
31
|
+
topic: boolean;
|
|
29
32
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
import { OnFormSubmitType } from '../Forms/Form/Form.types';
|
|
3
|
-
import { HoodGroupId, HoodMessage, MarketplaceFormData } from './ContentCreatorForm.types';
|
|
3
|
+
import { HoodGroupId, HoodMessage, MarketplaceFormData, Topic } from './ContentCreatorForm.types';
|
|
4
4
|
import { ContentFormData, ImageFile } from './validationSchemas';
|
|
5
|
-
export declare const handleSubmit: (data: OnFormSubmitType<ContentFormData>, isEditMode: boolean, setFormError: Dispatch<SetStateAction<string | null>>, hoodGroupId: HoodGroupId, onSuccess?: (responseData: HoodMessage | undefined, premiumFeature?: MarketplaceFormData["premium_feature"]) => void, selectedImage?: ImageFile | null) => Promise<boolean | undefined>;
|
|
5
|
+
export declare const handleSubmit: (data: OnFormSubmitType<ContentFormData>, isEditMode: boolean, setFormError: Dispatch<SetStateAction<string | null>>, hoodGroupId: HoodGroupId, onSuccess?: (responseData: HoodMessage | undefined, premiumFeature?: MarketplaceFormData["premium_feature"]) => void, selectedImage?: ImageFile | null, topic?: Topic) => Promise<boolean | undefined>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ImageFile } from '../../RichTextArea/RichTextArea.types';
|
|
2
|
-
import { EventFormData, MarketplaceFormData, PostFormData } from '../ContentCreatorForm.types';
|
|
2
|
+
import { EventFormData, MarketplaceFormData, PostFormData, Topic } from '../ContentCreatorForm.types';
|
|
3
3
|
import { MarketplaceContentType } from '../components/ContentCreatorFieldWrapper/components/ContentTypeField/ContentTypeField.types';
|
|
4
|
-
export declare const generatePostPayload: (data: PostFormData) => {
|
|
4
|
+
export declare const generatePostPayload: (data: PostFormData, topic?: Topic) => {
|
|
5
5
|
body: string;
|
|
6
6
|
content_type: "search" | "post" | "recommendation";
|
|
7
7
|
embeds: {
|
|
@@ -12,8 +12,9 @@ export declare const generatePostPayload: (data: PostFormData) => {
|
|
|
12
12
|
images: string[] | null;
|
|
13
13
|
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
14
14
|
subject: string;
|
|
15
|
+
topic: string | null;
|
|
15
16
|
};
|
|
16
|
-
export declare const generateEventPayload: (data: EventFormData, selectedImage?: ImageFile | null) => {
|
|
17
|
+
export declare const generateEventPayload: (data: EventFormData, selectedImage?: ImageFile | null, topic?: Topic) => {
|
|
17
18
|
body: string;
|
|
18
19
|
category: string;
|
|
19
20
|
content_type: "event";
|
|
@@ -30,6 +31,7 @@ export declare const generateEventPayload: (data: EventFormData, selectedImage?:
|
|
|
30
31
|
starts_all_day: boolean;
|
|
31
32
|
starts_at: string;
|
|
32
33
|
subject: string;
|
|
34
|
+
topic: string | null;
|
|
33
35
|
};
|
|
34
36
|
export declare const generateMarketplacePayload: (data: MarketplaceFormData) => {
|
|
35
37
|
body: string;
|
|
@@ -12,6 +12,7 @@ export declare const embedSchema: z.ZodObject<{
|
|
|
12
12
|
gid: string;
|
|
13
13
|
indices?: number[] | null | undefined;
|
|
14
14
|
}>;
|
|
15
|
+
export declare const topicSchema: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
15
16
|
export declare const imageFileSchema: z.ZodObject<{
|
|
16
17
|
croppedImg: z.ZodType<File, z.ZodTypeDef, File>;
|
|
17
18
|
id: z.ZodString;
|
|
@@ -112,6 +112,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
112
112
|
starts_at_date: z.ZodDate;
|
|
113
113
|
starts_at_time: z.ZodDate;
|
|
114
114
|
subject: z.ZodString;
|
|
115
|
+
topic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
115
116
|
}, "strip", z.ZodTypeAny, {
|
|
116
117
|
content: {
|
|
117
118
|
body: string;
|
|
@@ -145,6 +146,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
145
146
|
originalImg: File;
|
|
146
147
|
signedId?: string | undefined;
|
|
147
148
|
}[] | undefined;
|
|
149
|
+
topic?: boolean | null | undefined;
|
|
148
150
|
ends_at_date?: Date | null | undefined;
|
|
149
151
|
ends_at_time?: Date | null | undefined;
|
|
150
152
|
}, {
|
|
@@ -180,6 +182,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
180
182
|
originalImg: File;
|
|
181
183
|
signedId?: string | undefined;
|
|
182
184
|
}[] | undefined;
|
|
185
|
+
topic?: boolean | null | undefined;
|
|
183
186
|
ends_at_date?: Date | null | undefined;
|
|
184
187
|
ends_at_time?: Date | null | undefined;
|
|
185
188
|
}>, z.ZodEffects<z.ZodObject<{
|
|
@@ -534,6 +537,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
534
537
|
content_type: z.ZodLiteral<"post">;
|
|
535
538
|
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
536
539
|
subject: z.ZodString;
|
|
540
|
+
topic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
537
541
|
}, "strip", z.ZodTypeAny, {
|
|
538
542
|
content: {
|
|
539
543
|
body: string;
|
|
@@ -554,6 +558,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
554
558
|
content_type: "post";
|
|
555
559
|
subject: string;
|
|
556
560
|
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
561
|
+
topic?: boolean | null | undefined;
|
|
557
562
|
}, {
|
|
558
563
|
content: {
|
|
559
564
|
body: string;
|
|
@@ -574,6 +579,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
574
579
|
content_type: "post";
|
|
575
580
|
subject: string;
|
|
576
581
|
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
582
|
+
topic?: boolean | null | undefined;
|
|
577
583
|
}>, z.ZodObject<{
|
|
578
584
|
content: z.ZodObject<{
|
|
579
585
|
attachments: z.ZodOptional<z.ZodObject<{
|
|
@@ -656,6 +662,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
656
662
|
content_type: z.ZodLiteral<"recommendation">;
|
|
657
663
|
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
658
664
|
subject: z.ZodString;
|
|
665
|
+
topic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
659
666
|
}, "strip", z.ZodTypeAny, {
|
|
660
667
|
content: {
|
|
661
668
|
body: string;
|
|
@@ -676,6 +683,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
676
683
|
content_type: "recommendation";
|
|
677
684
|
subject: string;
|
|
678
685
|
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
686
|
+
topic?: boolean | null | undefined;
|
|
679
687
|
}, {
|
|
680
688
|
content: {
|
|
681
689
|
body: string;
|
|
@@ -696,6 +704,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
696
704
|
content_type: "recommendation";
|
|
697
705
|
subject: string;
|
|
698
706
|
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
707
|
+
topic?: boolean | null | undefined;
|
|
699
708
|
}>, z.ZodObject<{
|
|
700
709
|
content: z.ZodObject<{
|
|
701
710
|
attachments: z.ZodOptional<z.ZodObject<{
|
|
@@ -778,6 +787,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
778
787
|
content_type: z.ZodLiteral<"search">;
|
|
779
788
|
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
780
789
|
subject: z.ZodString;
|
|
790
|
+
topic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
781
791
|
}, "strip", z.ZodTypeAny, {
|
|
782
792
|
content: {
|
|
783
793
|
body: string;
|
|
@@ -798,6 +808,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
798
808
|
content_type: "search";
|
|
799
809
|
subject: string;
|
|
800
810
|
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
811
|
+
topic?: boolean | null | undefined;
|
|
801
812
|
}, {
|
|
802
813
|
content: {
|
|
803
814
|
body: string;
|
|
@@ -818,5 +829,6 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
818
829
|
content_type: "search";
|
|
819
830
|
subject: string;
|
|
820
831
|
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
832
|
+
topic?: boolean | null | undefined;
|
|
821
833
|
}>]>;
|
|
822
834
|
export type ContentFormData = z.infer<typeof contentValidationSchema>;
|
|
@@ -112,6 +112,7 @@ export declare const eventValidationSchema: z.ZodObject<{
|
|
|
112
112
|
starts_at_date: z.ZodDate;
|
|
113
113
|
starts_at_time: z.ZodDate;
|
|
114
114
|
subject: z.ZodString;
|
|
115
|
+
topic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
115
116
|
}, "strip", z.ZodTypeAny, {
|
|
116
117
|
content: {
|
|
117
118
|
body: string;
|
|
@@ -145,6 +146,7 @@ export declare const eventValidationSchema: z.ZodObject<{
|
|
|
145
146
|
originalImg: File;
|
|
146
147
|
signedId?: string | undefined;
|
|
147
148
|
}[] | undefined;
|
|
149
|
+
topic?: boolean | null | undefined;
|
|
148
150
|
ends_at_date?: Date | null | undefined;
|
|
149
151
|
ends_at_time?: Date | null | undefined;
|
|
150
152
|
}, {
|
|
@@ -180,6 +182,7 @@ export declare const eventValidationSchema: z.ZodObject<{
|
|
|
180
182
|
originalImg: File;
|
|
181
183
|
signedId?: string | undefined;
|
|
182
184
|
}[] | undefined;
|
|
185
|
+
topic?: boolean | null | undefined;
|
|
183
186
|
ends_at_date?: Date | null | undefined;
|
|
184
187
|
ends_at_time?: Date | null | undefined;
|
|
185
188
|
}>;
|
|
@@ -81,6 +81,7 @@ export declare const postValidationSchema: z.ZodObject<{
|
|
|
81
81
|
content_type: z.ZodLiteral<"post">;
|
|
82
82
|
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
83
83
|
subject: z.ZodString;
|
|
84
|
+
topic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
84
85
|
}, "strip", z.ZodTypeAny, {
|
|
85
86
|
content: {
|
|
86
87
|
body: string;
|
|
@@ -101,6 +102,7 @@ export declare const postValidationSchema: z.ZodObject<{
|
|
|
101
102
|
content_type: "post";
|
|
102
103
|
subject: string;
|
|
103
104
|
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
105
|
+
topic?: boolean | null | undefined;
|
|
104
106
|
}, {
|
|
105
107
|
content: {
|
|
106
108
|
body: string;
|
|
@@ -121,6 +123,7 @@ export declare const postValidationSchema: z.ZodObject<{
|
|
|
121
123
|
content_type: "post";
|
|
122
124
|
subject: string;
|
|
123
125
|
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
126
|
+
topic?: boolean | null | undefined;
|
|
124
127
|
}>;
|
|
125
128
|
export declare const searchValidationSchema: z.ZodObject<{
|
|
126
129
|
content: z.ZodObject<{
|
|
@@ -204,6 +207,7 @@ export declare const searchValidationSchema: z.ZodObject<{
|
|
|
204
207
|
content_type: z.ZodLiteral<"search">;
|
|
205
208
|
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
206
209
|
subject: z.ZodString;
|
|
210
|
+
topic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
207
211
|
}, "strip", z.ZodTypeAny, {
|
|
208
212
|
content: {
|
|
209
213
|
body: string;
|
|
@@ -224,6 +228,7 @@ export declare const searchValidationSchema: z.ZodObject<{
|
|
|
224
228
|
content_type: "search";
|
|
225
229
|
subject: string;
|
|
226
230
|
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
231
|
+
topic?: boolean | null | undefined;
|
|
227
232
|
}, {
|
|
228
233
|
content: {
|
|
229
234
|
body: string;
|
|
@@ -244,6 +249,7 @@ export declare const searchValidationSchema: z.ZodObject<{
|
|
|
244
249
|
content_type: "search";
|
|
245
250
|
subject: string;
|
|
246
251
|
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
252
|
+
topic?: boolean | null | undefined;
|
|
247
253
|
}>;
|
|
248
254
|
export declare const recommendationValidationSchema: z.ZodObject<{
|
|
249
255
|
content: z.ZodObject<{
|
|
@@ -327,6 +333,7 @@ export declare const recommendationValidationSchema: z.ZodObject<{
|
|
|
327
333
|
content_type: z.ZodLiteral<"recommendation">;
|
|
328
334
|
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
329
335
|
subject: z.ZodString;
|
|
336
|
+
topic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
330
337
|
}, "strip", z.ZodTypeAny, {
|
|
331
338
|
content: {
|
|
332
339
|
body: string;
|
|
@@ -347,6 +354,7 @@ export declare const recommendationValidationSchema: z.ZodObject<{
|
|
|
347
354
|
content_type: "recommendation";
|
|
348
355
|
subject: string;
|
|
349
356
|
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
357
|
+
topic?: boolean | null | undefined;
|
|
350
358
|
}, {
|
|
351
359
|
content: {
|
|
352
360
|
body: string;
|
|
@@ -367,4 +375,5 @@ export declare const recommendationValidationSchema: z.ZodObject<{
|
|
|
367
375
|
content_type: "recommendation";
|
|
368
376
|
subject: string;
|
|
369
377
|
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
378
|
+
topic?: boolean | null | undefined;
|
|
370
379
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseControllerProps } from 'react-hook-form';
|
|
2
2
|
import { ToggleInputProps } from '../../../../../ui/src/lib/Molecules/Selections/ToggleInput/ToggleInput.types';
|
|
3
3
|
export type FormToggleInputProps = UseControllerProps & Partial<ToggleInputProps>;
|
|
4
|
-
export declare const FormToggleInput: ({ checked, label, name, rules, }: FormToggleInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const FormToggleInput: ({ checked, description, label, name, rules, sticker, withBorder, }: FormToggleInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export default FormToggleInput;
|