@opencrvs/toolkit 1.9.4-rc.7756c1a → 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.
|
@@ -3204,14 +3204,26 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
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
3206
|
maxImageSize: z.ZodOptional<z.ZodObject<{
|
|
3207
|
-
|
|
3208
|
-
|
|
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
|
+
}>;
|
|
3209
3217
|
}, "strip", z.ZodTypeAny, {
|
|
3210
|
-
|
|
3211
|
-
|
|
3218
|
+
targetSize: {
|
|
3219
|
+
width: number;
|
|
3220
|
+
height: number;
|
|
3221
|
+
};
|
|
3212
3222
|
}, {
|
|
3213
|
-
|
|
3214
|
-
|
|
3223
|
+
targetSize: {
|
|
3224
|
+
width: number;
|
|
3225
|
+
height: number;
|
|
3226
|
+
};
|
|
3215
3227
|
}>>;
|
|
3216
3228
|
style: z.ZodOptional<z.ZodObject<{
|
|
3217
3229
|
width: z.ZodOptional<z.ZodEnum<["full", "auto"]>>;
|
|
@@ -3229,8 +3241,10 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3229
3241
|
maxFileSize: number;
|
|
3230
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;
|
|
3231
3243
|
maxImageSize?: {
|
|
3232
|
-
|
|
3233
|
-
|
|
3244
|
+
targetSize: {
|
|
3245
|
+
width: number;
|
|
3246
|
+
height: number;
|
|
3247
|
+
};
|
|
3234
3248
|
} | undefined;
|
|
3235
3249
|
style?: {
|
|
3236
3250
|
width?: "full" | "auto" | undefined;
|
|
@@ -3240,8 +3254,10 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3240
3254
|
maxFileSize?: number | undefined;
|
|
3241
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;
|
|
3242
3256
|
maxImageSize?: {
|
|
3243
|
-
|
|
3244
|
-
|
|
3257
|
+
targetSize: {
|
|
3258
|
+
width: number;
|
|
3259
|
+
height: number;
|
|
3260
|
+
};
|
|
3245
3261
|
} | undefined;
|
|
3246
3262
|
style?: {
|
|
3247
3263
|
width?: "full" | "auto" | undefined;
|
|
@@ -3260,8 +3276,10 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3260
3276
|
maxFileSize: number;
|
|
3261
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;
|
|
3262
3278
|
maxImageSize?: {
|
|
3263
|
-
|
|
3264
|
-
|
|
3279
|
+
targetSize: {
|
|
3280
|
+
width: number;
|
|
3281
|
+
height: number;
|
|
3282
|
+
};
|
|
3265
3283
|
} | undefined;
|
|
3266
3284
|
style?: {
|
|
3267
3285
|
width?: "full" | "auto" | undefined;
|
|
@@ -3380,8 +3398,10 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3380
3398
|
maxFileSize?: number | undefined;
|
|
3381
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;
|
|
3382
3400
|
maxImageSize?: {
|
|
3383
|
-
|
|
3384
|
-
|
|
3401
|
+
targetSize: {
|
|
3402
|
+
width: number;
|
|
3403
|
+
height: number;
|
|
3404
|
+
};
|
|
3385
3405
|
} | undefined;
|
|
3386
3406
|
style?: {
|
|
3387
3407
|
width?: "full" | "auto" | undefined;
|
|
@@ -11974,14 +11994,26 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
11974
11994
|
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
|
11975
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">>;
|
|
11976
11996
|
maxImageSize: z.ZodOptional<z.ZodObject<{
|
|
11977
|
-
|
|
11978
|
-
|
|
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
|
+
}>;
|
|
11979
12007
|
}, "strip", z.ZodTypeAny, {
|
|
11980
|
-
|
|
11981
|
-
|
|
12008
|
+
targetSize: {
|
|
12009
|
+
width: number;
|
|
12010
|
+
height: number;
|
|
12011
|
+
};
|
|
11982
12012
|
}, {
|
|
11983
|
-
|
|
11984
|
-
|
|
12013
|
+
targetSize: {
|
|
12014
|
+
width: number;
|
|
12015
|
+
height: number;
|
|
12016
|
+
};
|
|
11985
12017
|
}>>;
|
|
11986
12018
|
style: z.ZodOptional<z.ZodObject<{
|
|
11987
12019
|
width: z.ZodOptional<z.ZodEnum<["full", "auto"]>>;
|
|
@@ -11999,8 +12031,10 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
11999
12031
|
maxFileSize: number;
|
|
12000
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;
|
|
12001
12033
|
maxImageSize?: {
|
|
12002
|
-
|
|
12003
|
-
|
|
12034
|
+
targetSize: {
|
|
12035
|
+
width: number;
|
|
12036
|
+
height: number;
|
|
12037
|
+
};
|
|
12004
12038
|
} | undefined;
|
|
12005
12039
|
style?: {
|
|
12006
12040
|
width?: "full" | "auto" | undefined;
|
|
@@ -12010,8 +12044,10 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12010
12044
|
maxFileSize?: number | undefined;
|
|
12011
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;
|
|
12012
12046
|
maxImageSize?: {
|
|
12013
|
-
|
|
12014
|
-
|
|
12047
|
+
targetSize: {
|
|
12048
|
+
width: number;
|
|
12049
|
+
height: number;
|
|
12050
|
+
};
|
|
12015
12051
|
} | undefined;
|
|
12016
12052
|
style?: {
|
|
12017
12053
|
width?: "full" | "auto" | undefined;
|
|
@@ -12030,8 +12066,10 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12030
12066
|
maxFileSize: number;
|
|
12031
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;
|
|
12032
12068
|
maxImageSize?: {
|
|
12033
|
-
|
|
12034
|
-
|
|
12069
|
+
targetSize: {
|
|
12070
|
+
width: number;
|
|
12071
|
+
height: number;
|
|
12072
|
+
};
|
|
12035
12073
|
} | undefined;
|
|
12036
12074
|
style?: {
|
|
12037
12075
|
width?: "full" | "auto" | undefined;
|
|
@@ -12150,8 +12188,10 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12150
12188
|
maxFileSize?: number | undefined;
|
|
12151
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;
|
|
12152
12190
|
maxImageSize?: {
|
|
12153
|
-
|
|
12154
|
-
|
|
12191
|
+
targetSize: {
|
|
12192
|
+
width: number;
|
|
12193
|
+
height: number;
|
|
12194
|
+
};
|
|
12155
12195
|
} | undefined;
|
|
12156
12196
|
style?: {
|
|
12157
12197
|
width?: "full" | "auto" | undefined;
|
package/dist/events/index.js
CHANGED
|
@@ -2084,7 +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({
|
|
2087
|
+
maxImageSize: import_zod15.z.object({
|
|
2088
|
+
targetSize: import_zod15.z.object({ width: import_zod15.z.number(), height: import_zod15.z.number() })
|
|
2089
|
+
}).optional(),
|
|
2088
2090
|
style: import_zod15.z.object({
|
|
2089
2091
|
width: import_zod15.z.enum(["full", "auto"]).optional().describe(
|
|
2090
2092
|
"Whether the file upload button should take the full width of the container or not"
|
|
@@ -1610,7 +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({
|
|
1613
|
+
maxImageSize: import_zod15.z.object({
|
|
1614
|
+
targetSize: import_zod15.z.object({ width: import_zod15.z.number(), height: import_zod15.z.number() })
|
|
1615
|
+
}).optional(),
|
|
1614
1616
|
style: import_zod15.z.object({
|
|
1615
1617
|
width: import_zod15.z.enum(["full", "auto"]).optional().describe(
|
|
1616
1618
|
"Whether the file upload button should take the full width of the container or not"
|