@goodhood-web/nebenan-base 4.5.0-development.2 → 4.5.0-development.21
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 +98 -96
- package/index.mjs +19409 -19069
- package/lib/Authentication/Registration/RegistrationForm/Steps/Email.d.ts +3 -0
- package/lib/ContentCreator/ContentCreator.d.ts +1 -1
- package/lib/ContentCreator/ContentCreatorForm.d.ts +2 -2
- package/lib/ContentCreator/ContentCreatorForm.types.d.ts +32 -5
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/ContentCreatorFieldsWrapper.d.ts +2 -2
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentFieldsSheet/ContentFieldsSheet.d.ts +3 -3
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentFieldsSheet/ContentFieldsSheet.types.d.ts +10 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentTypeField/ContentTypeField.d.ts +1 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentTypeField/ContentTypeField.types.d.ts +1 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/EventFields/EventFields.d.ts +1 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/EventFields/EventFields.types.d.ts +2 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/CategoryModalField.d.ts +1 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/FormModalFields/FormCategory.d.ts +5 -2
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/FormModalFields/FormLocation.d.ts +5 -2
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/ListModalField.types.d.ts +5 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/LocationModalField.d.ts +1 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/MarketplaceFields/FormMarketplaceImageCropper.d.ts +2 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/MarketplaceFields/MarketplaceFields.d.ts +1 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/MarketplaceFields/MarketplaceFields.types.d.ts +1 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/PostFields/FormRichTextArea.d.ts +7 -5
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/PostFields/PostFields.d.ts +1 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/PostFields/PostFields.types.d.ts +5 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ReachTypeField/ReachTypeField.d.ts +1 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ReachTypeField/ReachTypeFields.types.d.ts +4 -1
- package/lib/ContentCreator/constants.d.ts +0 -84
- package/lib/ContentCreator/mockedData.d.ts +4 -0
- package/lib/ContentCreator/network.d.ts +2 -2
- package/lib/ContentCreator/utils/general.d.ts +0 -2
- package/lib/ContentCreator/utils/payloadGenerators.d.ts +3 -3
- package/lib/ContentCreator/validationSchemas/commonSchemas.d.ts +1 -1
- package/lib/ContentCreator/validationSchemas/dynamicValidationSchema.d.ts +17 -17
- package/lib/ContentCreator/validationSchemas/eventSchema.d.ts +3 -3
- package/lib/ContentCreator/validationSchemas/marketplaceSchema.d.ts +5 -5
- package/lib/ContentCreator/validationSchemas/postSchema.d.ts +9 -9
- package/lib/Feed/FeedItem/Marketplace/MarketplaceBody/MarketplaceBody.d.ts +1 -1
- package/lib/Feed/FeedItem/Marketplace/MarketplaceBody/MarketplaceBody.types.d.ts +1 -0
- package/lib/Feed/FeedItem/Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.d.ts +3 -1
- package/lib/Feed/FeedItem/Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.types.d.ts +1 -0
- package/lib/Feed/FeedItem/Replies/ReplySection/network.d.ts +1 -0
- package/lib/Feed/FeedItem/Replies/ReplySection/utils.d.ts +1 -0
- package/lib/Feed/utils.d.ts +1 -0
- package/lib/Forms/Fields/PasswordField/PasswordField.d.ts +1 -1
- package/lib/Forms/Fields/PasswordField/PasswordField.types.d.ts +1 -0
- package/lib/Forms/Fields/PasswordField/utils.d.ts +1 -1
- package/lib/Forms/Fields/utils.d.ts +2 -0
- package/lib/MarketplaceImageCropper/MarketplaceImageCropper.d.ts +1 -1
- package/lib/MarketplaceImageCropper/MarketplaceImageCropper.types.d.ts +1 -0
- package/lib/MultiImageCropper/components/ImageCropperPanel/ImageCropperPanel.d.ts +1 -1
- package/lib/PremiumFeaturePanel/PremiumFeaturePanel.d.ts +1 -1
- package/lib/PremiumFeaturePanel/PremiumFeaturePanel.types.d.ts +2 -0
- package/lib/RichTextArea/RichTextArea.types.d.ts +4 -0
- package/lib/RichTextArea/components/POI/POIRecommendation.types.d.ts +1 -0
- package/lib/RichTextArea/lexical/plugins/MentionPlugin.d.ts +2 -1
- package/lib/RichTextArea/lexical/utils.d.ts +1 -1
- package/lib/SearchableList/SearchableList.d.ts +1 -1
- package/lib/SearchableList/SearchableList.types.d.ts +1 -0
- package/package.json +3 -2
- package/style.css +1 -1
|
@@ -108,7 +108,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
108
108
|
label: string;
|
|
109
109
|
gid?: string | undefined;
|
|
110
110
|
}>;
|
|
111
|
-
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
111
|
+
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
112
112
|
starts_at_date: z.ZodDate;
|
|
113
113
|
starts_at_time: z.ZodDate;
|
|
114
114
|
subject: z.ZodString;
|
|
@@ -136,7 +136,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
136
136
|
};
|
|
137
137
|
content_type: "event";
|
|
138
138
|
subject: string;
|
|
139
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
139
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
140
140
|
starts_at_date: Date;
|
|
141
141
|
starts_at_time: Date;
|
|
142
142
|
images?: {
|
|
@@ -171,7 +171,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
171
171
|
};
|
|
172
172
|
content_type: "event";
|
|
173
173
|
subject: string;
|
|
174
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
174
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
175
175
|
starts_at_date: Date;
|
|
176
176
|
starts_at_time: Date;
|
|
177
177
|
images?: {
|
|
@@ -294,7 +294,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
294
294
|
pill?: string | undefined;
|
|
295
295
|
}>;
|
|
296
296
|
price: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
297
|
-
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
297
|
+
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
298
298
|
subject: z.ZodString;
|
|
299
299
|
}, "strip", z.ZodTypeAny, {
|
|
300
300
|
content: {
|
|
@@ -327,7 +327,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
327
327
|
signedId?: string | undefined;
|
|
328
328
|
}[]];
|
|
329
329
|
subject: string;
|
|
330
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
330
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
331
331
|
marketplace_item_type: string;
|
|
332
332
|
premium_feature: {
|
|
333
333
|
id: string;
|
|
@@ -366,7 +366,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
366
366
|
signedId?: string | undefined;
|
|
367
367
|
}[]];
|
|
368
368
|
subject: string;
|
|
369
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
369
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
370
370
|
marketplace_item_type: string;
|
|
371
371
|
premium_feature: {
|
|
372
372
|
id: string;
|
|
@@ -405,7 +405,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
405
405
|
signedId?: string | undefined;
|
|
406
406
|
}[]];
|
|
407
407
|
subject: string;
|
|
408
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
408
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
409
409
|
marketplace_item_type: string;
|
|
410
410
|
premium_feature: {
|
|
411
411
|
id: string;
|
|
@@ -444,7 +444,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
444
444
|
signedId?: string | undefined;
|
|
445
445
|
}[]];
|
|
446
446
|
subject: string;
|
|
447
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
447
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
448
448
|
marketplace_item_type: string;
|
|
449
449
|
premium_feature: {
|
|
450
450
|
id: string;
|
|
@@ -532,7 +532,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
532
532
|
} | undefined;
|
|
533
533
|
}>;
|
|
534
534
|
content_type: z.ZodLiteral<"post">;
|
|
535
|
-
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
535
|
+
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
536
536
|
subject: z.ZodString;
|
|
537
537
|
}, "strip", z.ZodTypeAny, {
|
|
538
538
|
content: {
|
|
@@ -553,7 +553,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
553
553
|
};
|
|
554
554
|
content_type: "post";
|
|
555
555
|
subject: string;
|
|
556
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
556
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
557
557
|
}, {
|
|
558
558
|
content: {
|
|
559
559
|
body: string;
|
|
@@ -573,7 +573,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
573
573
|
};
|
|
574
574
|
content_type: "post";
|
|
575
575
|
subject: string;
|
|
576
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
576
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
577
577
|
}>, z.ZodObject<{
|
|
578
578
|
content: z.ZodObject<{
|
|
579
579
|
attachments: z.ZodOptional<z.ZodObject<{
|
|
@@ -654,7 +654,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
654
654
|
} | undefined;
|
|
655
655
|
}>;
|
|
656
656
|
content_type: z.ZodLiteral<"recommendation">;
|
|
657
|
-
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
657
|
+
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
658
658
|
subject: z.ZodString;
|
|
659
659
|
}, "strip", z.ZodTypeAny, {
|
|
660
660
|
content: {
|
|
@@ -675,7 +675,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
675
675
|
};
|
|
676
676
|
content_type: "recommendation";
|
|
677
677
|
subject: string;
|
|
678
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
678
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
679
679
|
}, {
|
|
680
680
|
content: {
|
|
681
681
|
body: string;
|
|
@@ -695,7 +695,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
695
695
|
};
|
|
696
696
|
content_type: "recommendation";
|
|
697
697
|
subject: string;
|
|
698
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
698
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
699
699
|
}>, z.ZodObject<{
|
|
700
700
|
content: z.ZodObject<{
|
|
701
701
|
attachments: z.ZodOptional<z.ZodObject<{
|
|
@@ -776,7 +776,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
776
776
|
} | undefined;
|
|
777
777
|
}>;
|
|
778
778
|
content_type: z.ZodLiteral<"search">;
|
|
779
|
-
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
779
|
+
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
780
780
|
subject: z.ZodString;
|
|
781
781
|
}, "strip", z.ZodTypeAny, {
|
|
782
782
|
content: {
|
|
@@ -797,7 +797,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
797
797
|
};
|
|
798
798
|
content_type: "search";
|
|
799
799
|
subject: string;
|
|
800
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
800
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
801
801
|
}, {
|
|
802
802
|
content: {
|
|
803
803
|
body: string;
|
|
@@ -817,6 +817,6 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
817
817
|
};
|
|
818
818
|
content_type: "search";
|
|
819
819
|
subject: string;
|
|
820
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
820
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
821
821
|
}>]>;
|
|
822
822
|
export type ContentFormData = z.infer<typeof contentValidationSchema>;
|
|
@@ -108,7 +108,7 @@ export declare const eventValidationSchema: z.ZodObject<{
|
|
|
108
108
|
label: string;
|
|
109
109
|
gid?: string | undefined;
|
|
110
110
|
}>;
|
|
111
|
-
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
111
|
+
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
112
112
|
starts_at_date: z.ZodDate;
|
|
113
113
|
starts_at_time: z.ZodDate;
|
|
114
114
|
subject: z.ZodString;
|
|
@@ -136,7 +136,7 @@ export declare const eventValidationSchema: z.ZodObject<{
|
|
|
136
136
|
};
|
|
137
137
|
content_type: "event";
|
|
138
138
|
subject: string;
|
|
139
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
139
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
140
140
|
starts_at_date: Date;
|
|
141
141
|
starts_at_time: Date;
|
|
142
142
|
images?: {
|
|
@@ -171,7 +171,7 @@ export declare const eventValidationSchema: z.ZodObject<{
|
|
|
171
171
|
};
|
|
172
172
|
content_type: "event";
|
|
173
173
|
subject: string;
|
|
174
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
174
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
175
175
|
starts_at_date: Date;
|
|
176
176
|
starts_at_time: Date;
|
|
177
177
|
images?: {
|
|
@@ -111,7 +111,7 @@ export declare const marketplaceValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
111
111
|
pill?: string | undefined;
|
|
112
112
|
}>;
|
|
113
113
|
price: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
114
|
-
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
114
|
+
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
115
115
|
subject: z.ZodString;
|
|
116
116
|
}, "strip", z.ZodTypeAny, {
|
|
117
117
|
content: {
|
|
@@ -144,7 +144,7 @@ export declare const marketplaceValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
144
144
|
signedId?: string | undefined;
|
|
145
145
|
}[]];
|
|
146
146
|
subject: string;
|
|
147
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
147
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
148
148
|
marketplace_item_type: string;
|
|
149
149
|
premium_feature: {
|
|
150
150
|
id: string;
|
|
@@ -183,7 +183,7 @@ export declare const marketplaceValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
183
183
|
signedId?: string | undefined;
|
|
184
184
|
}[]];
|
|
185
185
|
subject: string;
|
|
186
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
186
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
187
187
|
marketplace_item_type: string;
|
|
188
188
|
premium_feature: {
|
|
189
189
|
id: string;
|
|
@@ -222,7 +222,7 @@ export declare const marketplaceValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
222
222
|
signedId?: string | undefined;
|
|
223
223
|
}[]];
|
|
224
224
|
subject: string;
|
|
225
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
225
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
226
226
|
marketplace_item_type: string;
|
|
227
227
|
premium_feature: {
|
|
228
228
|
id: string;
|
|
@@ -261,7 +261,7 @@ export declare const marketplaceValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
261
261
|
signedId?: string | undefined;
|
|
262
262
|
}[]];
|
|
263
263
|
subject: string;
|
|
264
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
264
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
265
265
|
marketplace_item_type: string;
|
|
266
266
|
premium_feature: {
|
|
267
267
|
id: string;
|
|
@@ -79,7 +79,7 @@ export declare const postValidationSchema: z.ZodObject<{
|
|
|
79
79
|
} | undefined;
|
|
80
80
|
}>;
|
|
81
81
|
content_type: z.ZodLiteral<"post">;
|
|
82
|
-
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
82
|
+
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
83
83
|
subject: z.ZodString;
|
|
84
84
|
}, "strip", z.ZodTypeAny, {
|
|
85
85
|
content: {
|
|
@@ -100,7 +100,7 @@ export declare const postValidationSchema: z.ZodObject<{
|
|
|
100
100
|
};
|
|
101
101
|
content_type: "post";
|
|
102
102
|
subject: string;
|
|
103
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
103
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
104
104
|
}, {
|
|
105
105
|
content: {
|
|
106
106
|
body: string;
|
|
@@ -120,7 +120,7 @@ export declare const postValidationSchema: z.ZodObject<{
|
|
|
120
120
|
};
|
|
121
121
|
content_type: "post";
|
|
122
122
|
subject: string;
|
|
123
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
123
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
124
124
|
}>;
|
|
125
125
|
export declare const searchValidationSchema: z.ZodObject<{
|
|
126
126
|
content: z.ZodObject<{
|
|
@@ -202,7 +202,7 @@ export declare const searchValidationSchema: z.ZodObject<{
|
|
|
202
202
|
} | undefined;
|
|
203
203
|
}>;
|
|
204
204
|
content_type: z.ZodLiteral<"search">;
|
|
205
|
-
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
205
|
+
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
206
206
|
subject: z.ZodString;
|
|
207
207
|
}, "strip", z.ZodTypeAny, {
|
|
208
208
|
content: {
|
|
@@ -223,7 +223,7 @@ export declare const searchValidationSchema: z.ZodObject<{
|
|
|
223
223
|
};
|
|
224
224
|
content_type: "search";
|
|
225
225
|
subject: string;
|
|
226
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
226
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
227
227
|
}, {
|
|
228
228
|
content: {
|
|
229
229
|
body: string;
|
|
@@ -243,7 +243,7 @@ export declare const searchValidationSchema: z.ZodObject<{
|
|
|
243
243
|
};
|
|
244
244
|
content_type: "search";
|
|
245
245
|
subject: string;
|
|
246
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
246
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
247
247
|
}>;
|
|
248
248
|
export declare const recommendationValidationSchema: z.ZodObject<{
|
|
249
249
|
content: z.ZodObject<{
|
|
@@ -325,7 +325,7 @@ export declare const recommendationValidationSchema: z.ZodObject<{
|
|
|
325
325
|
} | undefined;
|
|
326
326
|
}>;
|
|
327
327
|
content_type: z.ZodLiteral<"recommendation">;
|
|
328
|
-
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
328
|
+
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
329
329
|
subject: z.ZodString;
|
|
330
330
|
}, "strip", z.ZodTypeAny, {
|
|
331
331
|
content: {
|
|
@@ -346,7 +346,7 @@ export declare const recommendationValidationSchema: z.ZodObject<{
|
|
|
346
346
|
};
|
|
347
347
|
content_type: "recommendation";
|
|
348
348
|
subject: string;
|
|
349
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
349
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
350
350
|
}, {
|
|
351
351
|
content: {
|
|
352
352
|
body: string;
|
|
@@ -366,5 +366,5 @@ export declare const recommendationValidationSchema: z.ZodObject<{
|
|
|
366
366
|
};
|
|
367
367
|
content_type: "recommendation";
|
|
368
368
|
subject: string;
|
|
369
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
369
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
370
370
|
}>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { MarketplaceBodyTypes } from './MarketplaceBody.types';
|
|
2
|
-
declare const MarketplaceBody: ({ chargebeeProviderConfig, feedItem, isAuthenticated, isMine, }: MarketplaceBodyTypes) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const MarketplaceBody: ({ chargebeeProviderConfig, disablePremiumFeature, feedItem, isAuthenticated, isMine, }: MarketplaceBodyTypes) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default MarketplaceBody;
|
|
@@ -14,8 +14,10 @@ import { MarketplaceDetailPageProps } from './MarketplaceDetailPage.types';
|
|
|
14
14
|
* @param {Object} props.feedItem - The marketplace item data from API
|
|
15
15
|
* @param {boolean} props.isBookmarked - Whether the item is bookmarked by current user
|
|
16
16
|
* @param {Array} props.relatedSections - Related posts sections to display
|
|
17
|
+
* @param {Object} props.config.chargebee - Chargebee-specific config
|
|
18
|
+
* @param {boolean} [props.disablePremiumFeature] - Optional flag to disable premium features
|
|
17
19
|
*
|
|
18
20
|
* @returns {Promise<JSX.Element>} The rendered marketplace detail page
|
|
19
21
|
*/
|
|
20
|
-
export declare function MarketplaceDetailPage({ ads, config, feedItem, isAuthenticated, relatedSections, renderAdSlot, }: MarketplaceDetailPageProps): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
22
|
+
export declare function MarketplaceDetailPage({ ads, config, disablePremiumFeature, feedItem, isAuthenticated, relatedSections, renderAdSlot, }: MarketplaceDetailPageProps): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
21
23
|
export default MarketplaceDetailPage;
|
package/lib/Feed/FeedItem/Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.types.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export interface MarketplaceDetailPageProps {
|
|
|
17
17
|
site: string;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
+
disablePremiumFeature?: boolean;
|
|
20
21
|
feedItem: components['schemas']['Core_V3_HoodMessage'];
|
|
21
22
|
isAuthenticated?: boolean;
|
|
22
23
|
relatedSections?: components['schemas']['Core_V3_RelatedSection'][];
|
|
@@ -5,6 +5,7 @@ type PostReplyProps = {
|
|
|
5
5
|
};
|
|
6
6
|
export declare const postReply: ({ postId, reply }: PostReplyProps) => Promise<{
|
|
7
7
|
id: number;
|
|
8
|
+
parent_hood_message_id: number;
|
|
8
9
|
body: string;
|
|
9
10
|
author_details?: import('../../../../../../../api/src/lib/core').components["schemas"]["Core_V3_AuthorDetails"] | null;
|
|
10
11
|
created_at: string;
|
|
@@ -9,6 +9,7 @@ type SlicedRepliesProps = {
|
|
|
9
9
|
};
|
|
10
10
|
export declare const slicedReplies: ({ expanded, limit, replies }: SlicedRepliesProps) => {
|
|
11
11
|
id: number;
|
|
12
|
+
parent_hood_message_id: number;
|
|
12
13
|
body: string;
|
|
13
14
|
author_details?: components["schemas"]["Core_V3_AuthorDetails"] | null;
|
|
14
15
|
created_at: string;
|
package/lib/Feed/utils.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare const getFormattedDate: (date: string | null | undefined, dateFor
|
|
|
9
9
|
time: string;
|
|
10
10
|
} | null;
|
|
11
11
|
export declare const getFeatureByIdentifier: (features: components["schemas"]["Core_V3_FeatureAddon_List"], identifier: string) => components["schemas"]["Core_V3_FeatureAddon"] | undefined;
|
|
12
|
+
export declare const hasActivePremiumFeature: (features: components["schemas"]["Core_V3_FeatureAddon_List"], identifiers?: string[]) => boolean;
|
|
12
13
|
export declare const getPrice: (item: HoodMessage) => string;
|
|
13
14
|
export declare const isReserved: (item: HoodMessage) => boolean;
|
|
14
15
|
export declare const isReservedV2: (value: number | null) => value is 2;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PasswordFieldProps } from './PasswordField.types';
|
|
2
|
-
declare const PasswordField: ({ colorScheme, error, errorText, id, label, name, onBlur, onChange, passwordHint, progressBar, size, value, }: PasswordFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const PasswordField: ({ colorScheme, error, errorText, id, label, name, onBlur, onChange, passwordHint, progressBar, score, size, value, }: PasswordFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default PasswordField;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getProgressBarProgress: (
|
|
1
|
+
export declare const getProgressBarProgress: (score?: number | null) => number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ImageFile } from '../RichTextArea/RichTextArea.types';
|
|
2
2
|
import { MarketplaceImageCropperProps } from './MarketplaceImageCropper.types';
|
|
3
3
|
export declare function updateImageById(files: ImageFile[], targetId: string, updates: Partial<ImageFile>): ImageFile[];
|
|
4
|
-
declare const MarketplaceImageCropper: ({ CCFormSelectedImage, errorMessage, imageFiles, isEventImageCropper, isInContentCreator, setImageFiles, }: MarketplaceImageCropperProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const MarketplaceImageCropper: ({ CCFormSelectedImage, errorMessage, imageFiles, isEventImageCropper, isInContentCreator, multiple, setImageFiles, }: MarketplaceImageCropperProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export default MarketplaceImageCropper;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CropperRef } from 'react-advanced-cropper';
|
|
2
2
|
import { MultiImageCropperProps } from '../../MultiImageCropper.types';
|
|
3
3
|
type ImageCropperPanelProps = {
|
|
4
|
-
aspectRatio
|
|
4
|
+
aspectRatio?: number;
|
|
5
5
|
cropperRef: React.RefObject<CropperRef>;
|
|
6
6
|
handleCrop: () => void;
|
|
7
7
|
handleReset: () => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PremiumFeaturePanelProps } from './PremiumFeaturePanel.types';
|
|
2
|
-
declare const PremiumFeaturePanel: ({ chargebeeProviderConfig, isMine, postId, }: PremiumFeaturePanelProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
2
|
+
declare const PremiumFeaturePanel: ({ chargebeeProviderConfig, featureAddons, isMine, postId, }: PremiumFeaturePanelProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
3
3
|
export default PremiumFeaturePanel;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { components } from '../../../../api/src/lib/core';
|
|
1
2
|
export interface PremiumFeaturePanelProps {
|
|
2
3
|
chargebeeProviderConfig: {
|
|
3
4
|
site: string;
|
|
4
5
|
};
|
|
6
|
+
featureAddons: components['schemas']['Core_V3_HoodMessage']['feature_addons'];
|
|
5
7
|
isMine: boolean;
|
|
6
8
|
postId: string;
|
|
7
9
|
}
|
|
@@ -5,6 +5,9 @@ export type AttachmentConfig = {
|
|
|
5
5
|
onClick?: () => void;
|
|
6
6
|
type: AttachmentType;
|
|
7
7
|
};
|
|
8
|
+
export type EmojiType = {
|
|
9
|
+
native?: string;
|
|
10
|
+
} | string;
|
|
8
11
|
export type RichTextAreaProps = {
|
|
9
12
|
ariaDescribedby?: string;
|
|
10
13
|
attachment?: AttachmentConfig[];
|
|
@@ -13,6 +16,7 @@ export type RichTextAreaProps = {
|
|
|
13
16
|
contentEditableRef?: RefObject<HTMLDivElement>;
|
|
14
17
|
disabled?: boolean;
|
|
15
18
|
errorText?: string;
|
|
19
|
+
groupId?: number;
|
|
16
20
|
hintText?: string;
|
|
17
21
|
id?: string;
|
|
18
22
|
isWithImagePreview?: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
interface MentionPluginProps {
|
|
2
2
|
anchorRef: React.RefObject<HTMLElement>;
|
|
3
|
+
groupId?: number;
|
|
3
4
|
}
|
|
4
|
-
export declare function MentionPlugin({ anchorRef }: MentionPluginProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function MentionPlugin({ anchorRef, groupId }: MentionPluginProps): import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
export {};
|
|
@@ -5,7 +5,7 @@ export declare function generateGID(userId: number): string;
|
|
|
5
5
|
/**
|
|
6
6
|
* Fetch neighbours for mention suggestions
|
|
7
7
|
*/
|
|
8
|
-
export declare function fetchNeighbours(query: string): Promise<{
|
|
8
|
+
export declare function fetchNeighbours(query: string, groupId?: number, postId?: number): Promise<{
|
|
9
9
|
page: import('../../../../../api/src/lib/core').components["schemas"]["Core_V3_Neighbour_List"];
|
|
10
10
|
page_info: import('../../../../../api/src/lib/core').components["schemas"]["PageInfo"];
|
|
11
11
|
} | undefined>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SearchableListProps } from './SearchableList.types';
|
|
2
|
-
declare const SearchableList: ({ contentProps, headerProps, inputProps, intro, label, onDismiss, open, setQuery, }: SearchableListProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const SearchableList: ({ contentProps, headerProps, inputProps, intro, label, onDismiss, open, setQuery, sheetClassName, }: SearchableListProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default SearchableList;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goodhood-web/nebenan-base",
|
|
3
|
-
"version": "4.5.0-development.
|
|
3
|
+
"version": "4.5.0-development.21",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"repository": "https://github.com/good-hood-gmbh/goodhood-web",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"react-dom": "^18.2.0",
|
|
21
21
|
"@hookform/resolvers": "^3.10.0",
|
|
22
22
|
"lodash": "^4.17.21",
|
|
23
|
-
"@tanstack/react-query": ">=4.36.1"
|
|
23
|
+
"@tanstack/react-query": ">=4.36.1",
|
|
24
|
+
"@zxcvbn-ts/core": "^3.0.4"
|
|
24
25
|
}
|
|
25
26
|
}
|