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

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 (33) hide show
  1. package/index.d.ts +2 -1
  2. package/index.js +84 -84
  3. package/index.mjs +67662 -67004
  4. package/lib/ContentCreator/ContentCreator.d.ts +3 -0
  5. package/lib/ContentCreator/ContentCreator.types.d.ts +18 -0
  6. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/ContentCreatorFieldsWrapper.d.ts +3 -0
  7. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentFieldsSheet/ContentFieldsSheet.d.ts +4 -0
  8. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentFieldsSheet/ContentFieldsSheet.types.d.ts +34 -0
  9. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentTypeField/ContentTypeField.d.ts +3 -0
  10. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentTypeField/ContentTypeField.types.d.ts +13 -0
  11. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/EventFields/EventField.d.ts +2 -0
  12. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/MarketplaceFields/MarketplaceFields.d.ts +2 -0
  13. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/PostFields/PostFields.d.ts +3 -0
  14. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/PostFields/PostFields.types.d.ts +6 -0
  15. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ReachTypeField/ReachTypeField.d.ts +3 -0
  16. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ReachTypeField/ReachTypeFields.type.d.ts +10 -0
  17. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/index.d.ts +6 -0
  18. package/lib/ContentCreator/constants.d.ts +12 -0
  19. package/lib/ContentCreator/network.d.ts +4 -0
  20. package/lib/ContentCreator/utils.d.ts +14 -0
  21. package/lib/ContentCreator/validationSchemas/commonSchemas.d.ts +111 -0
  22. package/lib/ContentCreator/validationSchemas/dynamicValidationSchema.d.ts +628 -0
  23. package/lib/ContentCreator/validationSchemas/eventSchema.d.ts +127 -0
  24. package/lib/ContentCreator/validationSchemas/index.d.ts +7 -0
  25. package/lib/ContentCreator/validationSchemas/marketplaceSchema.d.ts +127 -0
  26. package/lib/ContentCreator/validationSchemas/postSchema.d.ts +127 -0
  27. package/lib/ContentCreator/validationSchemas/recommendationSchema.d.ts +127 -0
  28. package/lib/ContentCreator/validationSchemas/searchSchema.d.ts +127 -0
  29. package/lib/Forms/Fields/FormRichTextArea.d.ts +8 -0
  30. package/lib/RichTextArea/RichTextArea.d.ts +1 -1
  31. package/lib/RichTextArea/RichTextArea.types.d.ts +2 -1
  32. package/package.json +1 -1
  33. package/style.css +1 -1
@@ -0,0 +1,127 @@
1
+ import { z } from 'zod';
2
+ export declare const eventValidationSchema: 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<"event">;
82
+ hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
83
+ reach: z.ZodOptional<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: "event";
103
+ subject: string;
104
+ hood_group_id?: number | null | undefined;
105
+ reach?: "profile" | "hood" | "public" | "extended" | 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: "event";
124
+ subject: string;
125
+ hood_group_id?: number | null | undefined;
126
+ reach?: "profile" | "hood" | "public" | "extended" | undefined;
127
+ }>;
@@ -0,0 +1,7 @@
1
+ export * from './postSchema';
2
+ export * from './eventSchema';
3
+ export * from './marketplaceSchema';
4
+ export * from './recommendationSchema';
5
+ export * from './searchSchema';
6
+ export * from './commonSchemas';
7
+ export * from './dynamicValidationSchema';
@@ -0,0 +1,127 @@
1
+ import { z } from 'zod';
2
+ export declare const marketplaceValidationSchema: 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<"marketplace">;
82
+ hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
83
+ reach: z.ZodOptional<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: "marketplace";
103
+ subject: string;
104
+ hood_group_id?: number | null | undefined;
105
+ reach?: "profile" | "hood" | "public" | "extended" | 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: "marketplace";
124
+ subject: string;
125
+ hood_group_id?: number | null | undefined;
126
+ reach?: "profile" | "hood" | "public" | "extended" | undefined;
127
+ }>;
@@ -0,0 +1,127 @@
1
+ import { z } from 'zod';
2
+ export declare const postValidationSchema: 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<"post">;
82
+ hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
83
+ reach: z.ZodOptional<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: "post";
103
+ subject: string;
104
+ hood_group_id?: number | null | undefined;
105
+ reach?: "profile" | "hood" | "public" | "extended" | 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: "post";
124
+ subject: string;
125
+ hood_group_id?: number | null | undefined;
126
+ reach?: "profile" | "hood" | "public" | "extended" | undefined;
127
+ }>;
@@ -0,0 +1,127 @@
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.ZodOptional<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
+ hood_group_id?: number | null | undefined;
105
+ reach?: "profile" | "hood" | "public" | "extended" | 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
+ hood_group_id?: number | null | undefined;
126
+ reach?: "profile" | "hood" | "public" | "extended" | undefined;
127
+ }>;
@@ -0,0 +1,127 @@
1
+ import { z } from 'zod';
2
+ export declare const searchValidationSchema: 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<"search">;
82
+ hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
83
+ reach: z.ZodOptional<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: "search";
103
+ subject: string;
104
+ hood_group_id?: number | null | undefined;
105
+ reach?: "profile" | "hood" | "public" | "extended" | 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: "search";
124
+ subject: string;
125
+ hood_group_id?: number | null | undefined;
126
+ reach?: "profile" | "hood" | "public" | "extended" | undefined;
127
+ }>;
@@ -0,0 +1,8 @@
1
+ import { UseControllerProps } from 'react-hook-form';
2
+ import { ContentFormData } from '../../ContentCreator/validationSchemas';
3
+ import { RichTextAreaProps } from '../../RichTextArea/RichTextArea.types';
4
+ export type FormRichTextAreaInputProps = UseControllerProps<ContentFormData> & Partial<RichTextAreaProps> & {
5
+ name: string;
6
+ };
7
+ declare const FormRichTextAreaInput: ({ name, ...props }: FormRichTextAreaInputProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default FormRichTextAreaInput;
@@ -1,2 +1,2 @@
1
1
  import { RichTextAreaProps } from './RichTextArea.types';
2
- export default function RichTextArea({ ariaDescribedby, attachment, charLimit, colorScheme, contentEditableRef, disabled, errorText, hintText, id, label, onBlur, onChange, onFocus, onImageClick, onPoiClick, onPoiDismiss, size, submitButton, value, }: RichTextAreaProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function RichTextArea({ ariaDescribedby, attachment, charLimit, colorScheme, contentEditableRef, disabled, errorText, hintText, id, label, onBlur, onChange, onFocus, onImageClick, onImageUploadDismiss, onPoiClick, onPoiDismiss, size, submitButton, value, }: RichTextAreaProps): import("react/jsx-runtime").JSX.Element;
@@ -20,7 +20,8 @@ export type RichTextAreaProps = {
20
20
  onBlur?: (event: FocusEvent<HTMLDivElement>) => void;
21
21
  onChange: (value: RichTextAreaValueType) => void;
22
22
  onFocus?: (event: FocusEvent<HTMLDivElement>) => void;
23
- onImageClick?: () => void;
23
+ onImageClick?: boolean;
24
+ onImageUploadDismiss?: () => void;
24
25
  onPoiClick?: boolean;
25
26
  onPoiDismiss?: () => void;
26
27
  size?: 'medium' | 'large';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "4.1.0-development.23",
3
+ "version": "4.1.0-development.25",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",