@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.
Files changed (70) hide show
  1. package/index.js +120 -120
  2. package/index.mjs +16113 -14697
  3. package/lib/ContentCreator/ContentCreator.d.ts +1 -1
  4. package/lib/ContentCreator/ContentCreator.types.d.ts +19 -4
  5. package/lib/ContentCreator/Store/contentCreator.d.ts +11 -0
  6. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/ContentCreatorFieldsWrapper.d.ts +1 -1
  7. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentFieldsSheet/ContentFieldsSheet.d.ts +3 -3
  8. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentFieldsSheet/ContentFieldsSheet.types.d.ts +10 -4
  9. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentTypeField/ContentTypeField.d.ts +1 -1
  10. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentTypeField/ContentTypeField.types.d.ts +5 -0
  11. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/EventFields/EventFields.d.ts +3 -0
  12. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/EventFields/EventFields.types.d.ts +3 -0
  13. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/CategoryModalField.d.ts +3 -0
  14. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/DropdownButton.d.ts +3 -0
  15. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/FormModalFields/FormCategory.d.ts +4 -0
  16. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/FormModalFields/FormLocation.d.ts +5 -0
  17. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/FormModalFields/FormModalsFields.types.d.ts +6 -0
  18. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/FormModalFields/network.d.ts +12 -0
  19. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/ListModalField.types.d.ts +26 -0
  20. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/LocationModalField.d.ts +3 -0
  21. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/MarketplaceFields/FormCurrencyInput.d.ts +4 -0
  22. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/MarketplaceFields/FormMarketplaceImageCropper.d.ts +11 -0
  23. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/MarketplaceFields/MarketplaceFields.d.ts +2 -1
  24. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/MarketplaceFields/MarketplaceFields.types.d.ts +8 -0
  25. package/lib/ContentCreator/{validationSchemas/searchSchema.d.ts → components/ContentCreatorFieldWrapper/components/PostFields/FormRichTextArea.d.ts} +64 -57
  26. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ReachTypeField/ReachTypeField.d.ts +1 -1
  27. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/index.d.ts +1 -1
  28. package/lib/ContentCreator/constants.d.ts +81 -0
  29. package/lib/ContentCreator/network.d.ts +2 -1
  30. package/lib/ContentCreator/utils/general.d.ts +23 -0
  31. package/lib/ContentCreator/utils/images.d.ts +15 -0
  32. package/lib/ContentCreator/utils/payloadGenerators.d.ts +46 -0
  33. package/lib/ContentCreator/validationSchemas/commonSchemas.d.ts +3 -2
  34. package/lib/ContentCreator/validationSchemas/dynamicValidationSchema.d.ts +158 -17
  35. package/lib/ContentCreator/validationSchemas/eventSchema.d.ts +61 -3
  36. package/lib/ContentCreator/validationSchemas/index.d.ts +0 -2
  37. package/lib/ContentCreator/validationSchemas/marketplaceSchema.d.ts +96 -4
  38. package/lib/ContentCreator/validationSchemas/postSchema.d.ts +246 -3
  39. package/lib/Feed/Aggregators/GridFeedAggregator/utils.d.ts +2 -2
  40. package/lib/Forms/Fields/FormDateTimeInput.d.ts +9 -0
  41. package/lib/Forms/Fields/FormSwitcherToggle.d.ts +10 -0
  42. package/lib/Gallery/Gallery.types.d.ts +1 -1
  43. package/lib/ImageAttachment/ImageAttachment.types.d.ts +5 -1
  44. package/lib/ImageAttachment/components/SwiperImageAttachment/SwiperImageAttachment.d.ts +3 -1
  45. package/lib/MarketplaceImageCropper/MarketplaceImageCropper.d.ts +1 -1
  46. package/lib/MarketplaceImageCropper/MarketplaceImageCropper.types.d.ts +4 -0
  47. package/lib/MarketplaceImageCropper/components/ImageThumbnailGrid/ImageThumbnailGrid.d.ts +2 -1
  48. package/lib/MarketplaceImageCropper/constants.d.ts +1 -0
  49. package/lib/MultiImageCropper/MultiImageCropper.d.ts +1 -1
  50. package/lib/MultiImageCropper/MultiImageCropper.types.d.ts +1 -1
  51. package/lib/RichTextArea/RichTextArea.types.d.ts +3 -0
  52. package/lib/RichTextArea/components/POI/POIRecommendation.d.ts +1 -1
  53. package/lib/RichTextArea/components/POI/POIRecommendation.types.d.ts +9 -0
  54. package/lib/RichTextArea/components/POI/components/Intro/Intro.d.ts +1 -3
  55. package/lib/RichTextArea/components/POI/components/NewItemAddition/NewItemAddition.d.ts +6 -0
  56. package/lib/RichTextArea/components/POI/network.d.ts +1 -1
  57. package/lib/RichTextArea/lexical/LexicalImagesPreview.d.ts +4 -1
  58. package/lib/RichTextArea/useImageUpload.d.ts +5 -1
  59. package/lib/SearchableList/SearchableList.types.d.ts +1 -0
  60. package/lib/SearchableList/components/Content/Content.d.ts +1 -1
  61. package/lib/SearchableList/components/Content/Content.types.d.ts +1 -0
  62. package/lib/utils/client.d.ts +1 -1
  63. package/package.json +1 -1
  64. package/style.css +1 -1
  65. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/EventFields/EventField.d.ts +0 -2
  66. package/lib/ContentCreator/utils.d.ts +0 -14
  67. package/lib/ContentCreator/validationSchemas/recommendationSchema.d.ts +0 -127
  68. package/lib/Forms/Fields/FormRichTextArea.d.ts +0 -10
  69. package/lib/RichTextArea/ImagesPreview/ImagesPreview.d.ts +0 -7
  70. /package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ReachTypeField/{ReachTypeFields.type.d.ts → ReachTypeFields.types.d.ts} +0 -0
@@ -1,2 +0,0 @@
1
- declare const EventFields: () => import("react/jsx-runtime").JSX.Element;
2
- export default EventFields;
@@ -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;