@opencrvs/toolkit 1.9.5-rc.ded5cf3 → 1.9.5-rc.fe5b5f8
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.
|
@@ -3218,6 +3218,28 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3218
3218
|
configuration: z.ZodDefault<z.ZodObject<{
|
|
3219
3219
|
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
|
3220
3220
|
acceptedFileTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["image/png", "image/jpg", "image/jpeg", "image/svg+xml", "application/pdf", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.oasis.opendocument.text"]>, "many">>;
|
|
3221
|
+
maxImageSize: z.ZodOptional<z.ZodObject<{
|
|
3222
|
+
targetSize: z.ZodObject<{
|
|
3223
|
+
width: z.ZodNumber;
|
|
3224
|
+
height: z.ZodNumber;
|
|
3225
|
+
}, "strip", z.ZodTypeAny, {
|
|
3226
|
+
width: number;
|
|
3227
|
+
height: number;
|
|
3228
|
+
}, {
|
|
3229
|
+
width: number;
|
|
3230
|
+
height: number;
|
|
3231
|
+
}>;
|
|
3232
|
+
}, "strip", z.ZodTypeAny, {
|
|
3233
|
+
targetSize: {
|
|
3234
|
+
width: number;
|
|
3235
|
+
height: number;
|
|
3236
|
+
};
|
|
3237
|
+
}, {
|
|
3238
|
+
targetSize: {
|
|
3239
|
+
width: number;
|
|
3240
|
+
height: number;
|
|
3241
|
+
};
|
|
3242
|
+
}>>;
|
|
3221
3243
|
style: z.ZodOptional<z.ZodObject<{
|
|
3222
3244
|
width: z.ZodOptional<z.ZodEnum<["full", "auto"]>>;
|
|
3223
3245
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3233,6 +3255,12 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3233
3255
|
}, "strip", z.ZodTypeAny, {
|
|
3234
3256
|
maxFileSize: number;
|
|
3235
3257
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
3258
|
+
maxImageSize?: {
|
|
3259
|
+
targetSize: {
|
|
3260
|
+
width: number;
|
|
3261
|
+
height: number;
|
|
3262
|
+
};
|
|
3263
|
+
} | undefined;
|
|
3236
3264
|
style?: {
|
|
3237
3265
|
width?: "full" | "auto" | undefined;
|
|
3238
3266
|
} | undefined;
|
|
@@ -3240,6 +3268,12 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3240
3268
|
}, {
|
|
3241
3269
|
maxFileSize?: number | undefined;
|
|
3242
3270
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
3271
|
+
maxImageSize?: {
|
|
3272
|
+
targetSize: {
|
|
3273
|
+
width: number;
|
|
3274
|
+
height: number;
|
|
3275
|
+
};
|
|
3276
|
+
} | undefined;
|
|
3243
3277
|
style?: {
|
|
3244
3278
|
width?: "full" | "auto" | undefined;
|
|
3245
3279
|
} | undefined;
|
|
@@ -3256,6 +3290,12 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3256
3290
|
configuration: {
|
|
3257
3291
|
maxFileSize: number;
|
|
3258
3292
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
3293
|
+
maxImageSize?: {
|
|
3294
|
+
targetSize: {
|
|
3295
|
+
width: number;
|
|
3296
|
+
height: number;
|
|
3297
|
+
};
|
|
3298
|
+
} | undefined;
|
|
3259
3299
|
style?: {
|
|
3260
3300
|
width?: "full" | "auto" | undefined;
|
|
3261
3301
|
} | undefined;
|
|
@@ -3372,6 +3412,12 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3372
3412
|
configuration?: {
|
|
3373
3413
|
maxFileSize?: number | undefined;
|
|
3374
3414
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
3415
|
+
maxImageSize?: {
|
|
3416
|
+
targetSize: {
|
|
3417
|
+
width: number;
|
|
3418
|
+
height: number;
|
|
3419
|
+
};
|
|
3420
|
+
} | undefined;
|
|
3375
3421
|
style?: {
|
|
3376
3422
|
width?: "full" | "auto" | undefined;
|
|
3377
3423
|
} | undefined;
|
|
@@ -6636,13 +6682,47 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6636
6682
|
}>, "many">>;
|
|
6637
6683
|
configuration: z.ZodDefault<z.ZodObject<{
|
|
6638
6684
|
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
|
6685
|
+
maxImageSize: z.ZodOptional<z.ZodObject<{
|
|
6686
|
+
targetSize: z.ZodObject<{
|
|
6687
|
+
width: z.ZodNumber;
|
|
6688
|
+
height: z.ZodNumber;
|
|
6689
|
+
}, "strip", z.ZodTypeAny, {
|
|
6690
|
+
width: number;
|
|
6691
|
+
height: number;
|
|
6692
|
+
}, {
|
|
6693
|
+
width: number;
|
|
6694
|
+
height: number;
|
|
6695
|
+
}>;
|
|
6696
|
+
}, "strip", z.ZodTypeAny, {
|
|
6697
|
+
targetSize: {
|
|
6698
|
+
width: number;
|
|
6699
|
+
height: number;
|
|
6700
|
+
};
|
|
6701
|
+
}, {
|
|
6702
|
+
targetSize: {
|
|
6703
|
+
width: number;
|
|
6704
|
+
height: number;
|
|
6705
|
+
};
|
|
6706
|
+
}>>;
|
|
6639
6707
|
acceptedFileTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["image/png", "image/jpg", "image/jpeg", "image/svg+xml", "application/pdf", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.oasis.opendocument.text"]>, "many">>;
|
|
6640
6708
|
}, "strip", z.ZodTypeAny, {
|
|
6641
6709
|
maxFileSize: number;
|
|
6642
6710
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
6711
|
+
maxImageSize?: {
|
|
6712
|
+
targetSize: {
|
|
6713
|
+
width: number;
|
|
6714
|
+
height: number;
|
|
6715
|
+
};
|
|
6716
|
+
} | undefined;
|
|
6643
6717
|
}, {
|
|
6644
6718
|
maxFileSize?: number | undefined;
|
|
6645
6719
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
6720
|
+
maxImageSize?: {
|
|
6721
|
+
targetSize: {
|
|
6722
|
+
width: number;
|
|
6723
|
+
height: number;
|
|
6724
|
+
};
|
|
6725
|
+
} | undefined;
|
|
6646
6726
|
}>>;
|
|
6647
6727
|
}>, "strip", z.ZodTypeAny, {
|
|
6648
6728
|
type: "FILE_WITH_OPTIONS";
|
|
@@ -6655,6 +6735,12 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6655
6735
|
configuration: {
|
|
6656
6736
|
maxFileSize: number;
|
|
6657
6737
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
6738
|
+
maxImageSize?: {
|
|
6739
|
+
targetSize: {
|
|
6740
|
+
width: number;
|
|
6741
|
+
height: number;
|
|
6742
|
+
};
|
|
6743
|
+
} | undefined;
|
|
6658
6744
|
};
|
|
6659
6745
|
parent?: {
|
|
6660
6746
|
$$field: string;
|
|
@@ -6777,6 +6863,12 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6777
6863
|
configuration?: {
|
|
6778
6864
|
maxFileSize?: number | undefined;
|
|
6779
6865
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
6866
|
+
maxImageSize?: {
|
|
6867
|
+
targetSize: {
|
|
6868
|
+
width: number;
|
|
6869
|
+
height: number;
|
|
6870
|
+
};
|
|
6871
|
+
} | undefined;
|
|
6780
6872
|
} | undefined;
|
|
6781
6873
|
}>;
|
|
6782
6874
|
export type FileUploadWithOptions = z.infer<typeof FileUploadWithOptions>;
|
|
@@ -11999,6 +12091,28 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
11999
12091
|
configuration: z.ZodDefault<z.ZodObject<{
|
|
12000
12092
|
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
|
12001
12093
|
acceptedFileTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["image/png", "image/jpg", "image/jpeg", "image/svg+xml", "application/pdf", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.oasis.opendocument.text"]>, "many">>;
|
|
12094
|
+
maxImageSize: z.ZodOptional<z.ZodObject<{
|
|
12095
|
+
targetSize: z.ZodObject<{
|
|
12096
|
+
width: z.ZodNumber;
|
|
12097
|
+
height: z.ZodNumber;
|
|
12098
|
+
}, "strip", z.ZodTypeAny, {
|
|
12099
|
+
width: number;
|
|
12100
|
+
height: number;
|
|
12101
|
+
}, {
|
|
12102
|
+
width: number;
|
|
12103
|
+
height: number;
|
|
12104
|
+
}>;
|
|
12105
|
+
}, "strip", z.ZodTypeAny, {
|
|
12106
|
+
targetSize: {
|
|
12107
|
+
width: number;
|
|
12108
|
+
height: number;
|
|
12109
|
+
};
|
|
12110
|
+
}, {
|
|
12111
|
+
targetSize: {
|
|
12112
|
+
width: number;
|
|
12113
|
+
height: number;
|
|
12114
|
+
};
|
|
12115
|
+
}>>;
|
|
12002
12116
|
style: z.ZodOptional<z.ZodObject<{
|
|
12003
12117
|
width: z.ZodOptional<z.ZodEnum<["full", "auto"]>>;
|
|
12004
12118
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -12014,6 +12128,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12014
12128
|
}, "strip", z.ZodTypeAny, {
|
|
12015
12129
|
maxFileSize: number;
|
|
12016
12130
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
12131
|
+
maxImageSize?: {
|
|
12132
|
+
targetSize: {
|
|
12133
|
+
width: number;
|
|
12134
|
+
height: number;
|
|
12135
|
+
};
|
|
12136
|
+
} | undefined;
|
|
12017
12137
|
style?: {
|
|
12018
12138
|
width?: "full" | "auto" | undefined;
|
|
12019
12139
|
} | undefined;
|
|
@@ -12021,6 +12141,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12021
12141
|
}, {
|
|
12022
12142
|
maxFileSize?: number | undefined;
|
|
12023
12143
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
12144
|
+
maxImageSize?: {
|
|
12145
|
+
targetSize: {
|
|
12146
|
+
width: number;
|
|
12147
|
+
height: number;
|
|
12148
|
+
};
|
|
12149
|
+
} | undefined;
|
|
12024
12150
|
style?: {
|
|
12025
12151
|
width?: "full" | "auto" | undefined;
|
|
12026
12152
|
} | undefined;
|
|
@@ -12037,6 +12163,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12037
12163
|
configuration: {
|
|
12038
12164
|
maxFileSize: number;
|
|
12039
12165
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
12166
|
+
maxImageSize?: {
|
|
12167
|
+
targetSize: {
|
|
12168
|
+
width: number;
|
|
12169
|
+
height: number;
|
|
12170
|
+
};
|
|
12171
|
+
} | undefined;
|
|
12040
12172
|
style?: {
|
|
12041
12173
|
width?: "full" | "auto" | undefined;
|
|
12042
12174
|
} | undefined;
|
|
@@ -12153,6 +12285,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12153
12285
|
configuration?: {
|
|
12154
12286
|
maxFileSize?: number | undefined;
|
|
12155
12287
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
12288
|
+
maxImageSize?: {
|
|
12289
|
+
targetSize: {
|
|
12290
|
+
width: number;
|
|
12291
|
+
height: number;
|
|
12292
|
+
};
|
|
12293
|
+
} | undefined;
|
|
12156
12294
|
style?: {
|
|
12157
12295
|
width?: "full" | "auto" | undefined;
|
|
12158
12296
|
} | undefined;
|
|
@@ -12293,13 +12431,47 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12293
12431
|
}>, "many">>;
|
|
12294
12432
|
configuration: z.ZodDefault<z.ZodObject<{
|
|
12295
12433
|
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
|
12434
|
+
maxImageSize: z.ZodOptional<z.ZodObject<{
|
|
12435
|
+
targetSize: z.ZodObject<{
|
|
12436
|
+
width: z.ZodNumber;
|
|
12437
|
+
height: z.ZodNumber;
|
|
12438
|
+
}, "strip", z.ZodTypeAny, {
|
|
12439
|
+
width: number;
|
|
12440
|
+
height: number;
|
|
12441
|
+
}, {
|
|
12442
|
+
width: number;
|
|
12443
|
+
height: number;
|
|
12444
|
+
}>;
|
|
12445
|
+
}, "strip", z.ZodTypeAny, {
|
|
12446
|
+
targetSize: {
|
|
12447
|
+
width: number;
|
|
12448
|
+
height: number;
|
|
12449
|
+
};
|
|
12450
|
+
}, {
|
|
12451
|
+
targetSize: {
|
|
12452
|
+
width: number;
|
|
12453
|
+
height: number;
|
|
12454
|
+
};
|
|
12455
|
+
}>>;
|
|
12296
12456
|
acceptedFileTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["image/png", "image/jpg", "image/jpeg", "image/svg+xml", "application/pdf", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.oasis.opendocument.text"]>, "many">>;
|
|
12297
12457
|
}, "strip", z.ZodTypeAny, {
|
|
12298
12458
|
maxFileSize: number;
|
|
12299
12459
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
12460
|
+
maxImageSize?: {
|
|
12461
|
+
targetSize: {
|
|
12462
|
+
width: number;
|
|
12463
|
+
height: number;
|
|
12464
|
+
};
|
|
12465
|
+
} | undefined;
|
|
12300
12466
|
}, {
|
|
12301
12467
|
maxFileSize?: number | undefined;
|
|
12302
12468
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
12469
|
+
maxImageSize?: {
|
|
12470
|
+
targetSize: {
|
|
12471
|
+
width: number;
|
|
12472
|
+
height: number;
|
|
12473
|
+
};
|
|
12474
|
+
} | undefined;
|
|
12303
12475
|
}>>;
|
|
12304
12476
|
}>, "strip", z.ZodTypeAny, {
|
|
12305
12477
|
type: "FILE_WITH_OPTIONS";
|
|
@@ -12312,6 +12484,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12312
12484
|
configuration: {
|
|
12313
12485
|
maxFileSize: number;
|
|
12314
12486
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
12487
|
+
maxImageSize?: {
|
|
12488
|
+
targetSize: {
|
|
12489
|
+
width: number;
|
|
12490
|
+
height: number;
|
|
12491
|
+
};
|
|
12492
|
+
} | undefined;
|
|
12315
12493
|
};
|
|
12316
12494
|
parent?: {
|
|
12317
12495
|
$$field: string;
|
|
@@ -12434,6 +12612,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12434
12612
|
configuration?: {
|
|
12435
12613
|
maxFileSize?: number | undefined;
|
|
12436
12614
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
12615
|
+
maxImageSize?: {
|
|
12616
|
+
targetSize: {
|
|
12617
|
+
width: number;
|
|
12618
|
+
height: number;
|
|
12619
|
+
};
|
|
12620
|
+
} | undefined;
|
|
12437
12621
|
} | undefined;
|
|
12438
12622
|
}>]>;
|
|
12439
12623
|
export type AnyFileField = z.infer<typeof AnyFileField>;
|
package/dist/events/index.js
CHANGED
|
@@ -2090,6 +2090,9 @@ var File = BaseField.extend({
|
|
|
2090
2090
|
configuration: import_zod15.z.object({
|
|
2091
2091
|
maxFileSize: import_zod15.z.number().describe("Maximum file size in bytes").default(DEFAULT_MAX_FILE_SIZE_BYTES),
|
|
2092
2092
|
acceptedFileTypes: MimeType.array().optional().describe("List of allowed file formats for the signature"),
|
|
2093
|
+
maxImageSize: import_zod15.z.object({
|
|
2094
|
+
targetSize: import_zod15.z.object({ width: import_zod15.z.number(), height: import_zod15.z.number() })
|
|
2095
|
+
}).optional(),
|
|
2093
2096
|
style: import_zod15.z.object({
|
|
2094
2097
|
width: import_zod15.z.enum(["full", "auto"]).optional().describe(
|
|
2095
2098
|
"Whether the file upload button should take the full width of the container or not"
|
|
@@ -2221,6 +2224,9 @@ var FileUploadWithOptions = BaseField.extend({
|
|
|
2221
2224
|
defaultValue: FileFieldWithOptionValue.optional(),
|
|
2222
2225
|
configuration: import_zod15.z.object({
|
|
2223
2226
|
maxFileSize: import_zod15.z.number().describe("Maximum file size in bytes").default(DEFAULT_MAX_FILE_SIZE_BYTES),
|
|
2227
|
+
maxImageSize: import_zod15.z.object({
|
|
2228
|
+
targetSize: import_zod15.z.object({ width: import_zod15.z.number(), height: import_zod15.z.number() })
|
|
2229
|
+
}).optional(),
|
|
2224
2230
|
acceptedFileTypes: MimeType.array().optional().describe("List of allowed file formats for the signature")
|
|
2225
2231
|
}).default({
|
|
2226
2232
|
maxFileSize: DEFAULT_MAX_FILE_SIZE_BYTES
|
|
@@ -1616,6 +1616,9 @@ var File = BaseField.extend({
|
|
|
1616
1616
|
configuration: import_zod15.z.object({
|
|
1617
1617
|
maxFileSize: import_zod15.z.number().describe("Maximum file size in bytes").default(DEFAULT_MAX_FILE_SIZE_BYTES),
|
|
1618
1618
|
acceptedFileTypes: MimeType.array().optional().describe("List of allowed file formats for the signature"),
|
|
1619
|
+
maxImageSize: import_zod15.z.object({
|
|
1620
|
+
targetSize: import_zod15.z.object({ width: import_zod15.z.number(), height: import_zod15.z.number() })
|
|
1621
|
+
}).optional(),
|
|
1619
1622
|
style: import_zod15.z.object({
|
|
1620
1623
|
width: import_zod15.z.enum(["full", "auto"]).optional().describe(
|
|
1621
1624
|
"Whether the file upload button should take the full width of the container or not"
|
|
@@ -1747,6 +1750,9 @@ var FileUploadWithOptions = BaseField.extend({
|
|
|
1747
1750
|
defaultValue: FileFieldWithOptionValue.optional(),
|
|
1748
1751
|
configuration: import_zod15.z.object({
|
|
1749
1752
|
maxFileSize: import_zod15.z.number().describe("Maximum file size in bytes").default(DEFAULT_MAX_FILE_SIZE_BYTES),
|
|
1753
|
+
maxImageSize: import_zod15.z.object({
|
|
1754
|
+
targetSize: import_zod15.z.object({ width: import_zod15.z.number(), height: import_zod15.z.number() })
|
|
1755
|
+
}).optional(),
|
|
1750
1756
|
acceptedFileTypes: MimeType.array().optional().describe("List of allowed file formats for the signature")
|
|
1751
1757
|
}).default({
|
|
1752
1758
|
maxFileSize: DEFAULT_MAX_FILE_SIZE_BYTES
|