@opencrvs/toolkit 1.9.4-rc.793f834 → 1.9.4-rc.7fd7189
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.
|
@@ -3203,6 +3203,28 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3203
3203
|
configuration: z.ZodDefault<z.ZodObject<{
|
|
3204
3204
|
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
|
3205
3205
|
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">>;
|
|
3206
|
+
maxImageSize: z.ZodOptional<z.ZodObject<{
|
|
3207
|
+
targetSize: z.ZodObject<{
|
|
3208
|
+
width: z.ZodNumber;
|
|
3209
|
+
height: z.ZodNumber;
|
|
3210
|
+
}, "strip", z.ZodTypeAny, {
|
|
3211
|
+
width: number;
|
|
3212
|
+
height: number;
|
|
3213
|
+
}, {
|
|
3214
|
+
width: number;
|
|
3215
|
+
height: number;
|
|
3216
|
+
}>;
|
|
3217
|
+
}, "strip", z.ZodTypeAny, {
|
|
3218
|
+
targetSize: {
|
|
3219
|
+
width: number;
|
|
3220
|
+
height: number;
|
|
3221
|
+
};
|
|
3222
|
+
}, {
|
|
3223
|
+
targetSize: {
|
|
3224
|
+
width: number;
|
|
3225
|
+
height: number;
|
|
3226
|
+
};
|
|
3227
|
+
}>>;
|
|
3206
3228
|
style: z.ZodOptional<z.ZodObject<{
|
|
3207
3229
|
width: z.ZodOptional<z.ZodEnum<["full", "auto"]>>;
|
|
3208
3230
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3218,6 +3240,12 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3218
3240
|
}, "strip", z.ZodTypeAny, {
|
|
3219
3241
|
maxFileSize: number;
|
|
3220
3242
|
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;
|
|
3243
|
+
maxImageSize?: {
|
|
3244
|
+
targetSize: {
|
|
3245
|
+
width: number;
|
|
3246
|
+
height: number;
|
|
3247
|
+
};
|
|
3248
|
+
} | undefined;
|
|
3221
3249
|
style?: {
|
|
3222
3250
|
width?: "full" | "auto" | undefined;
|
|
3223
3251
|
} | undefined;
|
|
@@ -3225,6 +3253,12 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3225
3253
|
}, {
|
|
3226
3254
|
maxFileSize?: number | undefined;
|
|
3227
3255
|
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;
|
|
3256
|
+
maxImageSize?: {
|
|
3257
|
+
targetSize: {
|
|
3258
|
+
width: number;
|
|
3259
|
+
height: number;
|
|
3260
|
+
};
|
|
3261
|
+
} | undefined;
|
|
3228
3262
|
style?: {
|
|
3229
3263
|
width?: "full" | "auto" | undefined;
|
|
3230
3264
|
} | undefined;
|
|
@@ -3241,6 +3275,12 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3241
3275
|
configuration: {
|
|
3242
3276
|
maxFileSize: number;
|
|
3243
3277
|
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;
|
|
3278
|
+
maxImageSize?: {
|
|
3279
|
+
targetSize: {
|
|
3280
|
+
width: number;
|
|
3281
|
+
height: number;
|
|
3282
|
+
};
|
|
3283
|
+
} | undefined;
|
|
3244
3284
|
style?: {
|
|
3245
3285
|
width?: "full" | "auto" | undefined;
|
|
3246
3286
|
} | undefined;
|
|
@@ -3357,6 +3397,12 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3357
3397
|
configuration?: {
|
|
3358
3398
|
maxFileSize?: number | undefined;
|
|
3359
3399
|
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;
|
|
3400
|
+
maxImageSize?: {
|
|
3401
|
+
targetSize: {
|
|
3402
|
+
width: number;
|
|
3403
|
+
height: number;
|
|
3404
|
+
};
|
|
3405
|
+
} | undefined;
|
|
3360
3406
|
style?: {
|
|
3361
3407
|
width?: "full" | "auto" | undefined;
|
|
3362
3408
|
} | undefined;
|
|
@@ -6558,13 +6604,31 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6558
6604
|
}>, "many">>;
|
|
6559
6605
|
configuration: z.ZodDefault<z.ZodObject<{
|
|
6560
6606
|
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
|
6607
|
+
maxImageSize: z.ZodOptional<z.ZodObject<{
|
|
6608
|
+
width: z.ZodNumber;
|
|
6609
|
+
height: z.ZodNumber;
|
|
6610
|
+
}, "strip", z.ZodTypeAny, {
|
|
6611
|
+
width: number;
|
|
6612
|
+
height: number;
|
|
6613
|
+
}, {
|
|
6614
|
+
width: number;
|
|
6615
|
+
height: number;
|
|
6616
|
+
}>>;
|
|
6561
6617
|
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">>;
|
|
6562
6618
|
}, "strip", z.ZodTypeAny, {
|
|
6563
6619
|
maxFileSize: number;
|
|
6564
6620
|
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;
|
|
6621
|
+
maxImageSize?: {
|
|
6622
|
+
width: number;
|
|
6623
|
+
height: number;
|
|
6624
|
+
} | undefined;
|
|
6565
6625
|
}, {
|
|
6566
6626
|
maxFileSize?: number | undefined;
|
|
6567
6627
|
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;
|
|
6628
|
+
maxImageSize?: {
|
|
6629
|
+
width: number;
|
|
6630
|
+
height: number;
|
|
6631
|
+
} | undefined;
|
|
6568
6632
|
}>>;
|
|
6569
6633
|
}>, "strip", z.ZodTypeAny, {
|
|
6570
6634
|
type: "FILE_WITH_OPTIONS";
|
|
@@ -6577,6 +6641,10 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6577
6641
|
configuration: {
|
|
6578
6642
|
maxFileSize: number;
|
|
6579
6643
|
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;
|
|
6644
|
+
maxImageSize?: {
|
|
6645
|
+
width: number;
|
|
6646
|
+
height: number;
|
|
6647
|
+
} | undefined;
|
|
6580
6648
|
};
|
|
6581
6649
|
parent?: {
|
|
6582
6650
|
$$field: string;
|
|
@@ -6699,6 +6767,10 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6699
6767
|
configuration?: {
|
|
6700
6768
|
maxFileSize?: number | undefined;
|
|
6701
6769
|
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;
|
|
6770
|
+
maxImageSize?: {
|
|
6771
|
+
width: number;
|
|
6772
|
+
height: number;
|
|
6773
|
+
} | undefined;
|
|
6702
6774
|
} | undefined;
|
|
6703
6775
|
}>;
|
|
6704
6776
|
export type FileUploadWithOptions = z.infer<typeof FileUploadWithOptions>;
|
|
@@ -11921,6 +11993,28 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
11921
11993
|
configuration: z.ZodDefault<z.ZodObject<{
|
|
11922
11994
|
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
|
11923
11995
|
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">>;
|
|
11996
|
+
maxImageSize: z.ZodOptional<z.ZodObject<{
|
|
11997
|
+
targetSize: z.ZodObject<{
|
|
11998
|
+
width: z.ZodNumber;
|
|
11999
|
+
height: z.ZodNumber;
|
|
12000
|
+
}, "strip", z.ZodTypeAny, {
|
|
12001
|
+
width: number;
|
|
12002
|
+
height: number;
|
|
12003
|
+
}, {
|
|
12004
|
+
width: number;
|
|
12005
|
+
height: number;
|
|
12006
|
+
}>;
|
|
12007
|
+
}, "strip", z.ZodTypeAny, {
|
|
12008
|
+
targetSize: {
|
|
12009
|
+
width: number;
|
|
12010
|
+
height: number;
|
|
12011
|
+
};
|
|
12012
|
+
}, {
|
|
12013
|
+
targetSize: {
|
|
12014
|
+
width: number;
|
|
12015
|
+
height: number;
|
|
12016
|
+
};
|
|
12017
|
+
}>>;
|
|
11924
12018
|
style: z.ZodOptional<z.ZodObject<{
|
|
11925
12019
|
width: z.ZodOptional<z.ZodEnum<["full", "auto"]>>;
|
|
11926
12020
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -11936,6 +12030,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
11936
12030
|
}, "strip", z.ZodTypeAny, {
|
|
11937
12031
|
maxFileSize: number;
|
|
11938
12032
|
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;
|
|
12033
|
+
maxImageSize?: {
|
|
12034
|
+
targetSize: {
|
|
12035
|
+
width: number;
|
|
12036
|
+
height: number;
|
|
12037
|
+
};
|
|
12038
|
+
} | undefined;
|
|
11939
12039
|
style?: {
|
|
11940
12040
|
width?: "full" | "auto" | undefined;
|
|
11941
12041
|
} | undefined;
|
|
@@ -11943,6 +12043,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
11943
12043
|
}, {
|
|
11944
12044
|
maxFileSize?: number | undefined;
|
|
11945
12045
|
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;
|
|
12046
|
+
maxImageSize?: {
|
|
12047
|
+
targetSize: {
|
|
12048
|
+
width: number;
|
|
12049
|
+
height: number;
|
|
12050
|
+
};
|
|
12051
|
+
} | undefined;
|
|
11946
12052
|
style?: {
|
|
11947
12053
|
width?: "full" | "auto" | undefined;
|
|
11948
12054
|
} | undefined;
|
|
@@ -11959,6 +12065,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
11959
12065
|
configuration: {
|
|
11960
12066
|
maxFileSize: number;
|
|
11961
12067
|
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;
|
|
12068
|
+
maxImageSize?: {
|
|
12069
|
+
targetSize: {
|
|
12070
|
+
width: number;
|
|
12071
|
+
height: number;
|
|
12072
|
+
};
|
|
12073
|
+
} | undefined;
|
|
11962
12074
|
style?: {
|
|
11963
12075
|
width?: "full" | "auto" | undefined;
|
|
11964
12076
|
} | undefined;
|
|
@@ -12075,6 +12187,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12075
12187
|
configuration?: {
|
|
12076
12188
|
maxFileSize?: number | undefined;
|
|
12077
12189
|
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;
|
|
12190
|
+
maxImageSize?: {
|
|
12191
|
+
targetSize: {
|
|
12192
|
+
width: number;
|
|
12193
|
+
height: number;
|
|
12194
|
+
};
|
|
12195
|
+
} | undefined;
|
|
12078
12196
|
style?: {
|
|
12079
12197
|
width?: "full" | "auto" | undefined;
|
|
12080
12198
|
} | undefined;
|
|
@@ -12215,13 +12333,31 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12215
12333
|
}>, "many">>;
|
|
12216
12334
|
configuration: z.ZodDefault<z.ZodObject<{
|
|
12217
12335
|
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
|
12336
|
+
maxImageSize: z.ZodOptional<z.ZodObject<{
|
|
12337
|
+
width: z.ZodNumber;
|
|
12338
|
+
height: z.ZodNumber;
|
|
12339
|
+
}, "strip", z.ZodTypeAny, {
|
|
12340
|
+
width: number;
|
|
12341
|
+
height: number;
|
|
12342
|
+
}, {
|
|
12343
|
+
width: number;
|
|
12344
|
+
height: number;
|
|
12345
|
+
}>>;
|
|
12218
12346
|
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">>;
|
|
12219
12347
|
}, "strip", z.ZodTypeAny, {
|
|
12220
12348
|
maxFileSize: number;
|
|
12221
12349
|
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;
|
|
12350
|
+
maxImageSize?: {
|
|
12351
|
+
width: number;
|
|
12352
|
+
height: number;
|
|
12353
|
+
} | undefined;
|
|
12222
12354
|
}, {
|
|
12223
12355
|
maxFileSize?: number | undefined;
|
|
12224
12356
|
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;
|
|
12357
|
+
maxImageSize?: {
|
|
12358
|
+
width: number;
|
|
12359
|
+
height: number;
|
|
12360
|
+
} | undefined;
|
|
12225
12361
|
}>>;
|
|
12226
12362
|
}>, "strip", z.ZodTypeAny, {
|
|
12227
12363
|
type: "FILE_WITH_OPTIONS";
|
|
@@ -12234,6 +12370,10 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12234
12370
|
configuration: {
|
|
12235
12371
|
maxFileSize: number;
|
|
12236
12372
|
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;
|
|
12373
|
+
maxImageSize?: {
|
|
12374
|
+
width: number;
|
|
12375
|
+
height: number;
|
|
12376
|
+
} | undefined;
|
|
12237
12377
|
};
|
|
12238
12378
|
parent?: {
|
|
12239
12379
|
$$field: string;
|
|
@@ -12356,6 +12496,10 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12356
12496
|
configuration?: {
|
|
12357
12497
|
maxFileSize?: number | undefined;
|
|
12358
12498
|
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;
|
|
12499
|
+
maxImageSize?: {
|
|
12500
|
+
width: number;
|
|
12501
|
+
height: number;
|
|
12502
|
+
} | undefined;
|
|
12359
12503
|
} | undefined;
|
|
12360
12504
|
}>]>;
|
|
12361
12505
|
export type AnyFileField = z.infer<typeof AnyFileField>;
|
package/dist/events/index.js
CHANGED
|
@@ -2084,6 +2084,9 @@ var File = BaseField.extend({
|
|
|
2084
2084
|
configuration: import_zod15.z.object({
|
|
2085
2085
|
maxFileSize: import_zod15.z.number().describe("Maximum file size in bytes").default(DEFAULT_MAX_FILE_SIZE_BYTES),
|
|
2086
2086
|
acceptedFileTypes: MimeType.array().optional().describe("List of allowed file formats for the signature"),
|
|
2087
|
+
maxImageSize: import_zod15.z.object({
|
|
2088
|
+
targetSize: import_zod15.z.object({ width: import_zod15.z.number(), height: import_zod15.z.number() })
|
|
2089
|
+
}).optional(),
|
|
2087
2090
|
style: import_zod15.z.object({
|
|
2088
2091
|
width: import_zod15.z.enum(["full", "auto"]).optional().describe(
|
|
2089
2092
|
"Whether the file upload button should take the full width of the container or not"
|
|
@@ -2215,6 +2218,7 @@ var FileUploadWithOptions = BaseField.extend({
|
|
|
2215
2218
|
defaultValue: FileFieldWithOptionValue.optional(),
|
|
2216
2219
|
configuration: import_zod15.z.object({
|
|
2217
2220
|
maxFileSize: import_zod15.z.number().describe("Maximum file size in bytes").default(DEFAULT_MAX_FILE_SIZE_BYTES),
|
|
2221
|
+
maxImageSize: import_zod15.z.object({ width: import_zod15.z.number(), height: import_zod15.z.number() }).optional(),
|
|
2218
2222
|
acceptedFileTypes: MimeType.array().optional().describe("List of allowed file formats for the signature")
|
|
2219
2223
|
}).default({
|
|
2220
2224
|
maxFileSize: DEFAULT_MAX_FILE_SIZE_BYTES
|
|
@@ -1610,6 +1610,9 @@ var File = BaseField.extend({
|
|
|
1610
1610
|
configuration: import_zod15.z.object({
|
|
1611
1611
|
maxFileSize: import_zod15.z.number().describe("Maximum file size in bytes").default(DEFAULT_MAX_FILE_SIZE_BYTES),
|
|
1612
1612
|
acceptedFileTypes: MimeType.array().optional().describe("List of allowed file formats for the signature"),
|
|
1613
|
+
maxImageSize: import_zod15.z.object({
|
|
1614
|
+
targetSize: import_zod15.z.object({ width: import_zod15.z.number(), height: import_zod15.z.number() })
|
|
1615
|
+
}).optional(),
|
|
1613
1616
|
style: import_zod15.z.object({
|
|
1614
1617
|
width: import_zod15.z.enum(["full", "auto"]).optional().describe(
|
|
1615
1618
|
"Whether the file upload button should take the full width of the container or not"
|
|
@@ -1741,6 +1744,7 @@ var FileUploadWithOptions = BaseField.extend({
|
|
|
1741
1744
|
defaultValue: FileFieldWithOptionValue.optional(),
|
|
1742
1745
|
configuration: import_zod15.z.object({
|
|
1743
1746
|
maxFileSize: import_zod15.z.number().describe("Maximum file size in bytes").default(DEFAULT_MAX_FILE_SIZE_BYTES),
|
|
1747
|
+
maxImageSize: import_zod15.z.object({ width: import_zod15.z.number(), height: import_zod15.z.number() }).optional(),
|
|
1744
1748
|
acceptedFileTypes: MimeType.array().optional().describe("List of allowed file formats for the signature")
|
|
1745
1749
|
}).default({
|
|
1746
1750
|
maxFileSize: DEFAULT_MAX_FILE_SIZE_BYTES
|