@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
- width: z.ZodNumber;
3208
- height: z.ZodNumber;
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
- width: number;
3211
- height: number;
3218
+ targetSize: {
3219
+ width: number;
3220
+ height: number;
3221
+ };
3212
3222
  }, {
3213
- width: number;
3214
- height: number;
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
- width: number;
3233
- height: number;
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
- width: number;
3244
- height: number;
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
- width: number;
3264
- height: number;
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
- width: number;
3384
- height: number;
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
- width: z.ZodNumber;
11978
- height: z.ZodNumber;
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
- width: number;
11981
- height: number;
12008
+ targetSize: {
12009
+ width: number;
12010
+ height: number;
12011
+ };
11982
12012
  }, {
11983
- width: number;
11984
- height: number;
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
- width: number;
12003
- height: number;
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
- width: number;
12014
- height: number;
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
- width: number;
12034
- height: number;
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
- width: number;
12154
- height: number;
12191
+ targetSize: {
12192
+ width: number;
12193
+ height: number;
12194
+ };
12155
12195
  } | undefined;
12156
12196
  style?: {
12157
12197
  width?: "full" | "auto" | undefined;
@@ -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({ width: import_zod15.z.number(), height: import_zod15.z.number() }).optional(),
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({ width: import_zod15.z.number(), height: import_zod15.z.number() }).optional(),
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"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "1.9.4-rc.7756c1a",
3
+ "version": "1.9.4-rc.7fd7189",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "exports": {