@goodhood-web/nebenan-base 4.4.0-development.2 → 4.4.0-development.4
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 +120 -120
- package/index.mjs +16113 -14697
- package/lib/ContentCreator/ContentCreator.d.ts +1 -1
- package/lib/ContentCreator/ContentCreator.types.d.ts +19 -4
- package/lib/ContentCreator/Store/contentCreator.d.ts +11 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/ContentCreatorFieldsWrapper.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 +10 -4
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentTypeField/ContentTypeField.d.ts +1 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentTypeField/ContentTypeField.types.d.ts +5 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/EventFields/EventFields.d.ts +3 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/EventFields/EventFields.types.d.ts +3 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/CategoryModalField.d.ts +3 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/DropdownButton.d.ts +3 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/FormModalFields/FormCategory.d.ts +4 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/FormModalFields/FormLocation.d.ts +5 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/FormModalFields/FormModalsFields.types.d.ts +6 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/FormModalFields/network.d.ts +12 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/ListModalField.types.d.ts +26 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/LocationModalField.d.ts +3 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/MarketplaceFields/FormCurrencyInput.d.ts +4 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/MarketplaceFields/FormMarketplaceImageCropper.d.ts +11 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/MarketplaceFields/MarketplaceFields.d.ts +2 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/MarketplaceFields/MarketplaceFields.types.d.ts +8 -0
- package/lib/ContentCreator/{validationSchemas/searchSchema.d.ts → components/ContentCreatorFieldWrapper/components/PostFields/FormRichTextArea.d.ts} +64 -57
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ReachTypeField/ReachTypeField.d.ts +1 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/index.d.ts +1 -1
- package/lib/ContentCreator/constants.d.ts +81 -0
- package/lib/ContentCreator/network.d.ts +2 -1
- package/lib/ContentCreator/utils/general.d.ts +23 -0
- package/lib/ContentCreator/utils/images.d.ts +15 -0
- package/lib/ContentCreator/utils/payloadGenerators.d.ts +46 -0
- package/lib/ContentCreator/validationSchemas/commonSchemas.d.ts +3 -2
- package/lib/ContentCreator/validationSchemas/dynamicValidationSchema.d.ts +158 -17
- package/lib/ContentCreator/validationSchemas/eventSchema.d.ts +61 -3
- package/lib/ContentCreator/validationSchemas/index.d.ts +0 -2
- package/lib/ContentCreator/validationSchemas/marketplaceSchema.d.ts +96 -4
- package/lib/ContentCreator/validationSchemas/postSchema.d.ts +246 -3
- package/lib/Feed/Aggregators/GridFeedAggregator/utils.d.ts +2 -2
- package/lib/Forms/Fields/FormDateTimeInput.d.ts +9 -0
- package/lib/Forms/Fields/FormSwitcherToggle.d.ts +10 -0
- package/lib/Gallery/Gallery.types.d.ts +1 -1
- package/lib/ImageAttachment/ImageAttachment.types.d.ts +5 -1
- package/lib/ImageAttachment/components/SwiperImageAttachment/SwiperImageAttachment.d.ts +3 -1
- package/lib/MarketplaceImageCropper/MarketplaceImageCropper.d.ts +1 -1
- package/lib/MarketplaceImageCropper/MarketplaceImageCropper.types.d.ts +4 -0
- package/lib/MarketplaceImageCropper/components/ImageThumbnailGrid/ImageThumbnailGrid.d.ts +2 -1
- package/lib/MarketplaceImageCropper/constants.d.ts +1 -0
- package/lib/MultiImageCropper/MultiImageCropper.d.ts +1 -1
- package/lib/MultiImageCropper/MultiImageCropper.types.d.ts +1 -1
- package/lib/RichTextArea/RichTextArea.types.d.ts +3 -0
- package/lib/RichTextArea/components/POI/POIRecommendation.d.ts +1 -1
- package/lib/RichTextArea/components/POI/POIRecommendation.types.d.ts +9 -0
- package/lib/RichTextArea/components/POI/components/Intro/Intro.d.ts +1 -3
- package/lib/RichTextArea/components/POI/components/NewItemAddition/NewItemAddition.d.ts +6 -0
- package/lib/RichTextArea/components/POI/network.d.ts +1 -1
- package/lib/RichTextArea/lexical/LexicalImagesPreview.d.ts +4 -1
- package/lib/RichTextArea/useImageUpload.d.ts +5 -1
- package/lib/SearchableList/SearchableList.types.d.ts +1 -0
- package/lib/SearchableList/components/Content/Content.d.ts +1 -1
- package/lib/SearchableList/components/Content/Content.types.d.ts +1 -0
- package/lib/utils/client.d.ts +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/EventFields/EventField.d.ts +0 -2
- package/lib/ContentCreator/utils.d.ts +0 -14
- package/lib/ContentCreator/validationSchemas/recommendationSchema.d.ts +0 -127
- package/lib/Forms/Fields/FormRichTextArea.d.ts +0 -10
- package/lib/RichTextArea/ImagesPreview/ImagesPreview.d.ts +0 -7
- /package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ReachTypeField/{ReachTypeFields.type.d.ts → ReachTypeFields.types.d.ts} +0 -0
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { DefaultValues } from 'react-hook-form';
|
|
2
|
-
import { FailureError, PostItem } from './ContentCreator.types';
|
|
3
|
-
import { ContentFormData } from './validationSchemas';
|
|
4
|
-
import { ImageFile } from './validationSchemas/commonSchemas';
|
|
5
|
-
export declare const transformBackendFieldError: (error: FailureError) => {
|
|
6
|
-
failures: {
|
|
7
|
-
field: string;
|
|
8
|
-
code: "url" | "already_confirmed" | "confirmation_period_expired" | "expired" | "not_found" | "not_locked" | "not_saved" | "accepted" | "bad_content" | "blank" | "confirmation" | "email" | "empty" | "equal_to" | "even" | "exclusion" | "forbidden" | "greater_than_or_equal_to" | "greater_than" | "in_between" | "in" | "inclusion" | "invalid" | "less_than_or_equal_to" | "less_than" | "model_invalid" | "not_a_number" | "not_an_integer" | "odd" | "other_than" | "password_too_long" | "present" | "required" | "spoofed_media_type" | "taken" | "timeout" | "unauthorized" | "unreachable" | "service_unavailable" | "can_not_be_before_start_date" | "too_long" | "too_short" | "wrong_length" | "self_intersection";
|
|
9
|
-
message: string;
|
|
10
|
-
}[];
|
|
11
|
-
};
|
|
12
|
-
export declare const getImagesSignedIds: (images: ImageFile[] | null | undefined) => string[] | null;
|
|
13
|
-
export declare const generateImageObject: (imageUrls: string[]) => never[] | undefined;
|
|
14
|
-
export declare function getInitialValues(post: PostItem): DefaultValues<ContentFormData>;
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const recommendationValidationSchema: z.ZodObject<{
|
|
3
|
-
content: z.ZodObject<{
|
|
4
|
-
attachments: z.ZodOptional<z.ZodObject<{
|
|
5
|
-
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6
|
-
croppedImg: z.ZodType<File, z.ZodTypeDef, File>;
|
|
7
|
-
id: z.ZodString;
|
|
8
|
-
originalImg: z.ZodType<File, z.ZodTypeDef, File>;
|
|
9
|
-
signedId: z.ZodOptional<z.ZodString>;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
id: string;
|
|
12
|
-
croppedImg: File;
|
|
13
|
-
originalImg: File;
|
|
14
|
-
signedId?: string | undefined;
|
|
15
|
-
}, {
|
|
16
|
-
id: string;
|
|
17
|
-
croppedImg: File;
|
|
18
|
-
originalImg: File;
|
|
19
|
-
signedId?: string | undefined;
|
|
20
|
-
}>, "many">>;
|
|
21
|
-
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
images?: {
|
|
23
|
-
id: string;
|
|
24
|
-
croppedImg: File;
|
|
25
|
-
originalImg: File;
|
|
26
|
-
signedId?: string | undefined;
|
|
27
|
-
}[] | undefined;
|
|
28
|
-
}, {
|
|
29
|
-
images?: {
|
|
30
|
-
id: string;
|
|
31
|
-
croppedImg: File;
|
|
32
|
-
originalImg: File;
|
|
33
|
-
signedId?: string | undefined;
|
|
34
|
-
}[] | undefined;
|
|
35
|
-
}>>;
|
|
36
|
-
body: z.ZodString;
|
|
37
|
-
embeddables: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
38
|
-
gid: z.ZodString;
|
|
39
|
-
indices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
40
|
-
role: z.ZodEnum<["mention", "link", "profile"]>;
|
|
41
|
-
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
role: "link" | "profile" | "mention";
|
|
43
|
-
gid: string;
|
|
44
|
-
indices?: number[] | null | undefined;
|
|
45
|
-
}, {
|
|
46
|
-
role: "link" | "profile" | "mention";
|
|
47
|
-
gid: string;
|
|
48
|
-
indices?: number[] | null | undefined;
|
|
49
|
-
}>, "many">>>;
|
|
50
|
-
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
body: string;
|
|
52
|
-
embeddables?: {
|
|
53
|
-
role: "link" | "profile" | "mention";
|
|
54
|
-
gid: string;
|
|
55
|
-
indices?: number[] | null | undefined;
|
|
56
|
-
}[] | null | undefined;
|
|
57
|
-
attachments?: {
|
|
58
|
-
images?: {
|
|
59
|
-
id: string;
|
|
60
|
-
croppedImg: File;
|
|
61
|
-
originalImg: File;
|
|
62
|
-
signedId?: string | undefined;
|
|
63
|
-
}[] | undefined;
|
|
64
|
-
} | undefined;
|
|
65
|
-
}, {
|
|
66
|
-
body: string;
|
|
67
|
-
embeddables?: {
|
|
68
|
-
role: "link" | "profile" | "mention";
|
|
69
|
-
gid: string;
|
|
70
|
-
indices?: number[] | null | undefined;
|
|
71
|
-
}[] | null | undefined;
|
|
72
|
-
attachments?: {
|
|
73
|
-
images?: {
|
|
74
|
-
id: string;
|
|
75
|
-
croppedImg: File;
|
|
76
|
-
originalImg: File;
|
|
77
|
-
signedId?: string | undefined;
|
|
78
|
-
}[] | undefined;
|
|
79
|
-
} | undefined;
|
|
80
|
-
}>;
|
|
81
|
-
content_type: z.ZodLiteral<"recommendation">;
|
|
82
|
-
hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
83
|
-
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
84
|
-
subject: z.ZodString;
|
|
85
|
-
}, "strip", z.ZodTypeAny, {
|
|
86
|
-
content: {
|
|
87
|
-
body: string;
|
|
88
|
-
embeddables?: {
|
|
89
|
-
role: "link" | "profile" | "mention";
|
|
90
|
-
gid: string;
|
|
91
|
-
indices?: number[] | null | undefined;
|
|
92
|
-
}[] | null | undefined;
|
|
93
|
-
attachments?: {
|
|
94
|
-
images?: {
|
|
95
|
-
id: string;
|
|
96
|
-
croppedImg: File;
|
|
97
|
-
originalImg: File;
|
|
98
|
-
signedId?: string | undefined;
|
|
99
|
-
}[] | undefined;
|
|
100
|
-
} | undefined;
|
|
101
|
-
};
|
|
102
|
-
content_type: "recommendation";
|
|
103
|
-
subject: string;
|
|
104
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
105
|
-
hood_group_id?: number | null | undefined;
|
|
106
|
-
}, {
|
|
107
|
-
content: {
|
|
108
|
-
body: string;
|
|
109
|
-
embeddables?: {
|
|
110
|
-
role: "link" | "profile" | "mention";
|
|
111
|
-
gid: string;
|
|
112
|
-
indices?: number[] | null | undefined;
|
|
113
|
-
}[] | null | undefined;
|
|
114
|
-
attachments?: {
|
|
115
|
-
images?: {
|
|
116
|
-
id: string;
|
|
117
|
-
croppedImg: File;
|
|
118
|
-
originalImg: File;
|
|
119
|
-
signedId?: string | undefined;
|
|
120
|
-
}[] | undefined;
|
|
121
|
-
} | undefined;
|
|
122
|
-
};
|
|
123
|
-
content_type: "recommendation";
|
|
124
|
-
subject: string;
|
|
125
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
126
|
-
hood_group_id?: number | null | undefined;
|
|
127
|
-
}>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
import { UseControllerProps } from 'react-hook-form';
|
|
3
|
-
import { ContentFormData } from '../../ContentCreator/validationSchemas';
|
|
4
|
-
import { RichTextAreaProps, RichTextAreaRef } from '../../RichTextArea/RichTextArea.types';
|
|
5
|
-
export type FormRichTextAreaInputProps = UseControllerProps<ContentFormData> & Partial<RichTextAreaProps> & {
|
|
6
|
-
name: string;
|
|
7
|
-
ref?: RefObject<RichTextAreaRef>;
|
|
8
|
-
};
|
|
9
|
-
declare const FormRichTextAreaInput: ({ name, ref, ...props }: FormRichTextAreaInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default FormRichTextAreaInput;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ImageFile } from '../RichTextArea.types';
|
|
2
|
-
type ImagesPreviewProps = {
|
|
3
|
-
imageFiles: ImageFile[];
|
|
4
|
-
setImageFiles: (files: ImageFile[]) => void;
|
|
5
|
-
};
|
|
6
|
-
declare const ImagesPreview: ({ imageFiles, setImageFiles }: ImagesPreviewProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
-
export default ImagesPreview;
|