@goodhood-web/nebenan-base 4.1.0-development.25 → 4.1.0-development.26

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.
@@ -5,7 +5,7 @@ import { ImageFile } from './validationSchemas/commonSchemas';
5
5
  export declare const transformBackendFieldError: (error: FailureError) => {
6
6
  failures: {
7
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" | "too_long" | "too_short" | "wrong_length" | "self_intersection";
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
9
  message: string;
10
10
  }[];
11
11
  };
@@ -28,6 +28,7 @@ declare const imageFileSchema: z.ZodObject<{
28
28
  originalImg: File;
29
29
  signedId?: string | undefined;
30
30
  }>;
31
+ export declare const reachSchema: z.ZodEnum<["profile", "hood", "extended", "public"]>;
31
32
  export type ImageFile = z.infer<typeof imageFileSchema>;
32
33
  export declare const subjectSchema: z.ZodString;
33
34
  export declare const bodyWithEmbedsSchema: z.ZodObject<{
@@ -80,7 +80,7 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
80
80
  }>;
81
81
  content_type: z.ZodLiteral<"event">;
82
82
  hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
83
- reach: z.ZodOptional<z.ZodEnum<["profile", "hood", "extended", "public"]>>;
83
+ reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
84
84
  subject: z.ZodString;
85
85
  }, "strip", z.ZodTypeAny, {
86
86
  content: {
@@ -101,8 +101,8 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
101
101
  };
102
102
  content_type: "event";
103
103
  subject: string;
104
+ reach: "profile" | "hood" | "public" | "extended";
104
105
  hood_group_id?: number | null | undefined;
105
- reach?: "profile" | "hood" | "public" | "extended" | undefined;
106
106
  }, {
107
107
  content: {
108
108
  body: string;
@@ -122,8 +122,8 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
122
122
  };
123
123
  content_type: "event";
124
124
  subject: string;
125
+ reach: "profile" | "hood" | "public" | "extended";
125
126
  hood_group_id?: number | null | undefined;
126
- reach?: "profile" | "hood" | "public" | "extended" | undefined;
127
127
  }>, z.ZodObject<{
128
128
  content: z.ZodObject<{
129
129
  attachments: z.ZodOptional<z.ZodObject<{
@@ -205,7 +205,7 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
205
205
  }>;
206
206
  content_type: z.ZodLiteral<"marketplace">;
207
207
  hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
208
- reach: z.ZodOptional<z.ZodEnum<["profile", "hood", "extended", "public"]>>;
208
+ reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
209
209
  subject: z.ZodString;
210
210
  }, "strip", z.ZodTypeAny, {
211
211
  content: {
@@ -226,8 +226,8 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
226
226
  };
227
227
  content_type: "marketplace";
228
228
  subject: string;
229
+ reach: "profile" | "hood" | "public" | "extended";
229
230
  hood_group_id?: number | null | undefined;
230
- reach?: "profile" | "hood" | "public" | "extended" | undefined;
231
231
  }, {
232
232
  content: {
233
233
  body: string;
@@ -247,8 +247,8 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
247
247
  };
248
248
  content_type: "marketplace";
249
249
  subject: string;
250
+ reach: "profile" | "hood" | "public" | "extended";
250
251
  hood_group_id?: number | null | undefined;
251
- reach?: "profile" | "hood" | "public" | "extended" | undefined;
252
252
  }>, z.ZodObject<{
253
253
  content: z.ZodObject<{
254
254
  attachments: z.ZodOptional<z.ZodObject<{
@@ -330,7 +330,7 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
330
330
  }>;
331
331
  content_type: z.ZodLiteral<"post">;
332
332
  hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
333
- reach: z.ZodOptional<z.ZodEnum<["profile", "hood", "extended", "public"]>>;
333
+ reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
334
334
  subject: z.ZodString;
335
335
  }, "strip", z.ZodTypeAny, {
336
336
  content: {
@@ -351,8 +351,8 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
351
351
  };
352
352
  content_type: "post";
353
353
  subject: string;
354
+ reach: "profile" | "hood" | "public" | "extended";
354
355
  hood_group_id?: number | null | undefined;
355
- reach?: "profile" | "hood" | "public" | "extended" | undefined;
356
356
  }, {
357
357
  content: {
358
358
  body: string;
@@ -372,8 +372,8 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
372
372
  };
373
373
  content_type: "post";
374
374
  subject: string;
375
+ reach: "profile" | "hood" | "public" | "extended";
375
376
  hood_group_id?: number | null | undefined;
376
- reach?: "profile" | "hood" | "public" | "extended" | undefined;
377
377
  }>, z.ZodObject<{
378
378
  content: z.ZodObject<{
379
379
  attachments: z.ZodOptional<z.ZodObject<{
@@ -455,7 +455,7 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
455
455
  }>;
456
456
  content_type: z.ZodLiteral<"recommendation">;
457
457
  hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
458
- reach: z.ZodOptional<z.ZodEnum<["profile", "hood", "extended", "public"]>>;
458
+ reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
459
459
  subject: z.ZodString;
460
460
  }, "strip", z.ZodTypeAny, {
461
461
  content: {
@@ -476,8 +476,8 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
476
476
  };
477
477
  content_type: "recommendation";
478
478
  subject: string;
479
+ reach: "profile" | "hood" | "public" | "extended";
479
480
  hood_group_id?: number | null | undefined;
480
- reach?: "profile" | "hood" | "public" | "extended" | undefined;
481
481
  }, {
482
482
  content: {
483
483
  body: string;
@@ -497,8 +497,8 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
497
497
  };
498
498
  content_type: "recommendation";
499
499
  subject: string;
500
+ reach: "profile" | "hood" | "public" | "extended";
500
501
  hood_group_id?: number | null | undefined;
501
- reach?: "profile" | "hood" | "public" | "extended" | undefined;
502
502
  }>, z.ZodObject<{
503
503
  content: z.ZodObject<{
504
504
  attachments: z.ZodOptional<z.ZodObject<{
@@ -580,7 +580,7 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
580
580
  }>;
581
581
  content_type: z.ZodLiteral<"search">;
582
582
  hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
583
- reach: z.ZodOptional<z.ZodEnum<["profile", "hood", "extended", "public"]>>;
583
+ reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
584
584
  subject: z.ZodString;
585
585
  }, "strip", z.ZodTypeAny, {
586
586
  content: {
@@ -601,8 +601,8 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
601
601
  };
602
602
  content_type: "search";
603
603
  subject: string;
604
+ reach: "profile" | "hood" | "public" | "extended";
604
605
  hood_group_id?: number | null | undefined;
605
- reach?: "profile" | "hood" | "public" | "extended" | undefined;
606
606
  }, {
607
607
  content: {
608
608
  body: string;
@@ -622,7 +622,7 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
622
622
  };
623
623
  content_type: "search";
624
624
  subject: string;
625
+ reach: "profile" | "hood" | "public" | "extended";
625
626
  hood_group_id?: number | null | undefined;
626
- reach?: "profile" | "hood" | "public" | "extended" | undefined;
627
627
  }>]>;
628
628
  export type ContentFormData = z.infer<typeof contentValidationSchema>;
@@ -80,7 +80,7 @@ export declare const eventValidationSchema: z.ZodObject<{
80
80
  }>;
81
81
  content_type: z.ZodLiteral<"event">;
82
82
  hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
83
- reach: z.ZodOptional<z.ZodEnum<["profile", "hood", "extended", "public"]>>;
83
+ reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
84
84
  subject: z.ZodString;
85
85
  }, "strip", z.ZodTypeAny, {
86
86
  content: {
@@ -101,8 +101,8 @@ export declare const eventValidationSchema: z.ZodObject<{
101
101
  };
102
102
  content_type: "event";
103
103
  subject: string;
104
+ reach: "profile" | "hood" | "public" | "extended";
104
105
  hood_group_id?: number | null | undefined;
105
- reach?: "profile" | "hood" | "public" | "extended" | undefined;
106
106
  }, {
107
107
  content: {
108
108
  body: string;
@@ -122,6 +122,6 @@ export declare const eventValidationSchema: z.ZodObject<{
122
122
  };
123
123
  content_type: "event";
124
124
  subject: string;
125
+ reach: "profile" | "hood" | "public" | "extended";
125
126
  hood_group_id?: number | null | undefined;
126
- reach?: "profile" | "hood" | "public" | "extended" | undefined;
127
127
  }>;
@@ -80,7 +80,7 @@ export declare const marketplaceValidationSchema: z.ZodObject<{
80
80
  }>;
81
81
  content_type: z.ZodLiteral<"marketplace">;
82
82
  hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
83
- reach: z.ZodOptional<z.ZodEnum<["profile", "hood", "extended", "public"]>>;
83
+ reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
84
84
  subject: z.ZodString;
85
85
  }, "strip", z.ZodTypeAny, {
86
86
  content: {
@@ -101,8 +101,8 @@ export declare const marketplaceValidationSchema: z.ZodObject<{
101
101
  };
102
102
  content_type: "marketplace";
103
103
  subject: string;
104
+ reach: "profile" | "hood" | "public" | "extended";
104
105
  hood_group_id?: number | null | undefined;
105
- reach?: "profile" | "hood" | "public" | "extended" | undefined;
106
106
  }, {
107
107
  content: {
108
108
  body: string;
@@ -122,6 +122,6 @@ export declare const marketplaceValidationSchema: z.ZodObject<{
122
122
  };
123
123
  content_type: "marketplace";
124
124
  subject: string;
125
+ reach: "profile" | "hood" | "public" | "extended";
125
126
  hood_group_id?: number | null | undefined;
126
- reach?: "profile" | "hood" | "public" | "extended" | undefined;
127
127
  }>;
@@ -80,7 +80,7 @@ export declare const postValidationSchema: z.ZodObject<{
80
80
  }>;
81
81
  content_type: z.ZodLiteral<"post">;
82
82
  hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
83
- reach: z.ZodOptional<z.ZodEnum<["profile", "hood", "extended", "public"]>>;
83
+ reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
84
84
  subject: z.ZodString;
85
85
  }, "strip", z.ZodTypeAny, {
86
86
  content: {
@@ -101,8 +101,8 @@ export declare const postValidationSchema: z.ZodObject<{
101
101
  };
102
102
  content_type: "post";
103
103
  subject: string;
104
+ reach: "profile" | "hood" | "public" | "extended";
104
105
  hood_group_id?: number | null | undefined;
105
- reach?: "profile" | "hood" | "public" | "extended" | undefined;
106
106
  }, {
107
107
  content: {
108
108
  body: string;
@@ -122,6 +122,6 @@ export declare const postValidationSchema: z.ZodObject<{
122
122
  };
123
123
  content_type: "post";
124
124
  subject: string;
125
+ reach: "profile" | "hood" | "public" | "extended";
125
126
  hood_group_id?: number | null | undefined;
126
- reach?: "profile" | "hood" | "public" | "extended" | undefined;
127
127
  }>;
@@ -80,7 +80,7 @@ export declare const recommendationValidationSchema: z.ZodObject<{
80
80
  }>;
81
81
  content_type: z.ZodLiteral<"recommendation">;
82
82
  hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
83
- reach: z.ZodOptional<z.ZodEnum<["profile", "hood", "extended", "public"]>>;
83
+ reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
84
84
  subject: z.ZodString;
85
85
  }, "strip", z.ZodTypeAny, {
86
86
  content: {
@@ -101,8 +101,8 @@ export declare const recommendationValidationSchema: z.ZodObject<{
101
101
  };
102
102
  content_type: "recommendation";
103
103
  subject: string;
104
+ reach: "profile" | "hood" | "public" | "extended";
104
105
  hood_group_id?: number | null | undefined;
105
- reach?: "profile" | "hood" | "public" | "extended" | undefined;
106
106
  }, {
107
107
  content: {
108
108
  body: string;
@@ -122,6 +122,6 @@ export declare const recommendationValidationSchema: z.ZodObject<{
122
122
  };
123
123
  content_type: "recommendation";
124
124
  subject: string;
125
+ reach: "profile" | "hood" | "public" | "extended";
125
126
  hood_group_id?: number | null | undefined;
126
- reach?: "profile" | "hood" | "public" | "extended" | undefined;
127
127
  }>;
@@ -80,7 +80,7 @@ export declare const searchValidationSchema: z.ZodObject<{
80
80
  }>;
81
81
  content_type: z.ZodLiteral<"search">;
82
82
  hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
83
- reach: z.ZodOptional<z.ZodEnum<["profile", "hood", "extended", "public"]>>;
83
+ reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
84
84
  subject: z.ZodString;
85
85
  }, "strip", z.ZodTypeAny, {
86
86
  content: {
@@ -101,8 +101,8 @@ export declare const searchValidationSchema: z.ZodObject<{
101
101
  };
102
102
  content_type: "search";
103
103
  subject: string;
104
+ reach: "profile" | "hood" | "public" | "extended";
104
105
  hood_group_id?: number | null | undefined;
105
- reach?: "profile" | "hood" | "public" | "extended" | undefined;
106
106
  }, {
107
107
  content: {
108
108
  body: string;
@@ -122,6 +122,6 @@ export declare const searchValidationSchema: z.ZodObject<{
122
122
  };
123
123
  content_type: "search";
124
124
  subject: string;
125
+ reach: "profile" | "hood" | "public" | "extended";
125
126
  hood_group_id?: number | null | undefined;
126
- reach?: "profile" | "hood" | "public" | "extended" | undefined;
127
127
  }>;
@@ -0,0 +1,5 @@
1
+ import { ImageFile } from '../RichTextArea/RichTextArea.types';
2
+ import { MarketplaceImageCropperProps } from './MarketplaceImageCropper.types';
3
+ export declare function updateImageById(files: ImageFile[], targetId: string, updates: Partial<ImageFile>): ImageFile[];
4
+ declare const MarketplaceImageCropper: ({ imageFiles, setImageFiles, }: MarketplaceImageCropperProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default MarketplaceImageCropper;
@@ -0,0 +1,6 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { ImageFile } from '../RichTextArea/RichTextArea.types';
3
+ export type MarketplaceImageCropperProps = {
4
+ imageFiles: ImageFile[];
5
+ setImageFiles: Dispatch<SetStateAction<ImageFile[]>>;
6
+ };
@@ -0,0 +1,10 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { ImageFile } from '../../../RichTextArea/RichTextArea.types';
3
+ interface ImageThumbnailGridProps {
4
+ imageFiles: ImageFile[];
5
+ selectedImg: ImageFile | null;
6
+ setImageFiles: Dispatch<SetStateAction<ImageFile[]>>;
7
+ setSelectedImg: (img: ImageFile | null) => void;
8
+ }
9
+ declare const ImageThumbnailGrid: ({ imageFiles, selectedImg, setImageFiles, setSelectedImg, }: ImageThumbnailGridProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default ImageThumbnailGrid;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "4.1.0-development.25",
3
+ "version": "4.1.0-development.26",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",