@opencrvs/toolkit 1.9.4-rc.6455371 → 1.9.4-rc.7756c1a

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,16 @@ 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
+ width: z.ZodNumber;
3208
+ height: z.ZodNumber;
3209
+ }, "strip", z.ZodTypeAny, {
3210
+ width: number;
3211
+ height: number;
3212
+ }, {
3213
+ width: number;
3214
+ height: number;
3215
+ }>>;
3206
3216
  style: z.ZodOptional<z.ZodObject<{
3207
3217
  width: z.ZodOptional<z.ZodEnum<["full", "auto"]>>;
3208
3218
  }, "strip", z.ZodTypeAny, {
@@ -3218,6 +3228,10 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
3218
3228
  }, "strip", z.ZodTypeAny, {
3219
3229
  maxFileSize: number;
3220
3230
  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
+ maxImageSize?: {
3232
+ width: number;
3233
+ height: number;
3234
+ } | undefined;
3221
3235
  style?: {
3222
3236
  width?: "full" | "auto" | undefined;
3223
3237
  } | undefined;
@@ -3225,6 +3239,10 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
3225
3239
  }, {
3226
3240
  maxFileSize?: number | undefined;
3227
3241
  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
+ maxImageSize?: {
3243
+ width: number;
3244
+ height: number;
3245
+ } | undefined;
3228
3246
  style?: {
3229
3247
  width?: "full" | "auto" | undefined;
3230
3248
  } | undefined;
@@ -3241,6 +3259,10 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
3241
3259
  configuration: {
3242
3260
  maxFileSize: number;
3243
3261
  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
+ maxImageSize?: {
3263
+ width: number;
3264
+ height: number;
3265
+ } | undefined;
3244
3266
  style?: {
3245
3267
  width?: "full" | "auto" | undefined;
3246
3268
  } | undefined;
@@ -3357,6 +3379,10 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
3357
3379
  configuration?: {
3358
3380
  maxFileSize?: number | undefined;
3359
3381
  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
+ maxImageSize?: {
3383
+ width: number;
3384
+ height: number;
3385
+ } | undefined;
3360
3386
  style?: {
3361
3387
  width?: "full" | "auto" | undefined;
3362
3388
  } | undefined;
@@ -6558,13 +6584,31 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
6558
6584
  }>, "many">>;
6559
6585
  configuration: z.ZodDefault<z.ZodObject<{
6560
6586
  maxFileSize: z.ZodDefault<z.ZodNumber>;
6587
+ maxImageSize: z.ZodOptional<z.ZodObject<{
6588
+ width: z.ZodNumber;
6589
+ height: z.ZodNumber;
6590
+ }, "strip", z.ZodTypeAny, {
6591
+ width: number;
6592
+ height: number;
6593
+ }, {
6594
+ width: number;
6595
+ height: number;
6596
+ }>>;
6561
6597
  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
6598
  }, "strip", z.ZodTypeAny, {
6563
6599
  maxFileSize: number;
6564
6600
  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;
6601
+ maxImageSize?: {
6602
+ width: number;
6603
+ height: number;
6604
+ } | undefined;
6565
6605
  }, {
6566
6606
  maxFileSize?: number | undefined;
6567
6607
  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;
6608
+ maxImageSize?: {
6609
+ width: number;
6610
+ height: number;
6611
+ } | undefined;
6568
6612
  }>>;
6569
6613
  }>, "strip", z.ZodTypeAny, {
6570
6614
  type: "FILE_WITH_OPTIONS";
@@ -6577,6 +6621,10 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
6577
6621
  configuration: {
6578
6622
  maxFileSize: number;
6579
6623
  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;
6624
+ maxImageSize?: {
6625
+ width: number;
6626
+ height: number;
6627
+ } | undefined;
6580
6628
  };
6581
6629
  parent?: {
6582
6630
  $$field: string;
@@ -6699,6 +6747,10 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
6699
6747
  configuration?: {
6700
6748
  maxFileSize?: number | undefined;
6701
6749
  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;
6750
+ maxImageSize?: {
6751
+ width: number;
6752
+ height: number;
6753
+ } | undefined;
6702
6754
  } | undefined;
6703
6755
  }>;
6704
6756
  export type FileUploadWithOptions = z.infer<typeof FileUploadWithOptions>;
@@ -11921,6 +11973,16 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
11921
11973
  configuration: z.ZodDefault<z.ZodObject<{
11922
11974
  maxFileSize: z.ZodDefault<z.ZodNumber>;
11923
11975
  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
+ maxImageSize: z.ZodOptional<z.ZodObject<{
11977
+ width: z.ZodNumber;
11978
+ height: z.ZodNumber;
11979
+ }, "strip", z.ZodTypeAny, {
11980
+ width: number;
11981
+ height: number;
11982
+ }, {
11983
+ width: number;
11984
+ height: number;
11985
+ }>>;
11924
11986
  style: z.ZodOptional<z.ZodObject<{
11925
11987
  width: z.ZodOptional<z.ZodEnum<["full", "auto"]>>;
11926
11988
  }, "strip", z.ZodTypeAny, {
@@ -11936,6 +11998,10 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
11936
11998
  }, "strip", z.ZodTypeAny, {
11937
11999
  maxFileSize: number;
11938
12000
  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
+ maxImageSize?: {
12002
+ width: number;
12003
+ height: number;
12004
+ } | undefined;
11939
12005
  style?: {
11940
12006
  width?: "full" | "auto" | undefined;
11941
12007
  } | undefined;
@@ -11943,6 +12009,10 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
11943
12009
  }, {
11944
12010
  maxFileSize?: number | undefined;
11945
12011
  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
+ maxImageSize?: {
12013
+ width: number;
12014
+ height: number;
12015
+ } | undefined;
11946
12016
  style?: {
11947
12017
  width?: "full" | "auto" | undefined;
11948
12018
  } | undefined;
@@ -11959,6 +12029,10 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
11959
12029
  configuration: {
11960
12030
  maxFileSize: number;
11961
12031
  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
+ maxImageSize?: {
12033
+ width: number;
12034
+ height: number;
12035
+ } | undefined;
11962
12036
  style?: {
11963
12037
  width?: "full" | "auto" | undefined;
11964
12038
  } | undefined;
@@ -12075,6 +12149,10 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
12075
12149
  configuration?: {
12076
12150
  maxFileSize?: number | undefined;
12077
12151
  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
+ maxImageSize?: {
12153
+ width: number;
12154
+ height: number;
12155
+ } | undefined;
12078
12156
  style?: {
12079
12157
  width?: "full" | "auto" | undefined;
12080
12158
  } | undefined;
@@ -12215,13 +12293,31 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
12215
12293
  }>, "many">>;
12216
12294
  configuration: z.ZodDefault<z.ZodObject<{
12217
12295
  maxFileSize: z.ZodDefault<z.ZodNumber>;
12296
+ maxImageSize: z.ZodOptional<z.ZodObject<{
12297
+ width: z.ZodNumber;
12298
+ height: z.ZodNumber;
12299
+ }, "strip", z.ZodTypeAny, {
12300
+ width: number;
12301
+ height: number;
12302
+ }, {
12303
+ width: number;
12304
+ height: number;
12305
+ }>>;
12218
12306
  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
12307
  }, "strip", z.ZodTypeAny, {
12220
12308
  maxFileSize: number;
12221
12309
  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;
12310
+ maxImageSize?: {
12311
+ width: number;
12312
+ height: number;
12313
+ } | undefined;
12222
12314
  }, {
12223
12315
  maxFileSize?: number | undefined;
12224
12316
  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;
12317
+ maxImageSize?: {
12318
+ width: number;
12319
+ height: number;
12320
+ } | undefined;
12225
12321
  }>>;
12226
12322
  }>, "strip", z.ZodTypeAny, {
12227
12323
  type: "FILE_WITH_OPTIONS";
@@ -12234,6 +12330,10 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
12234
12330
  configuration: {
12235
12331
  maxFileSize: number;
12236
12332
  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;
12333
+ maxImageSize?: {
12334
+ width: number;
12335
+ height: number;
12336
+ } | undefined;
12237
12337
  };
12238
12338
  parent?: {
12239
12339
  $$field: string;
@@ -12356,6 +12456,10 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
12356
12456
  configuration?: {
12357
12457
  maxFileSize?: number | undefined;
12358
12458
  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;
12459
+ maxImageSize?: {
12460
+ width: number;
12461
+ height: number;
12462
+ } | undefined;
12359
12463
  } | undefined;
12360
12464
  }>]>;
12361
12465
  export type AnyFileField = z.infer<typeof AnyFileField>;
@@ -2084,6 +2084,7 @@ 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
2088
  style: import_zod15.z.object({
2088
2089
  width: import_zod15.z.enum(["full", "auto"]).optional().describe(
2089
2090
  "Whether the file upload button should take the full width of the container or not"
@@ -2215,6 +2216,7 @@ var FileUploadWithOptions = BaseField.extend({
2215
2216
  defaultValue: FileFieldWithOptionValue.optional(),
2216
2217
  configuration: import_zod15.z.object({
2217
2218
  maxFileSize: import_zod15.z.number().describe("Maximum file size in bytes").default(DEFAULT_MAX_FILE_SIZE_BYTES),
2219
+ maxImageSize: import_zod15.z.object({ width: import_zod15.z.number(), height: import_zod15.z.number() }).optional(),
2218
2220
  acceptedFileTypes: MimeType.array().optional().describe("List of allowed file formats for the signature")
2219
2221
  }).default({
2220
2222
  maxFileSize: DEFAULT_MAX_FILE_SIZE_BYTES
@@ -1610,6 +1610,7 @@ 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
1614
  style: import_zod15.z.object({
1614
1615
  width: import_zod15.z.enum(["full", "auto"]).optional().describe(
1615
1616
  "Whether the file upload button should take the full width of the container or not"
@@ -1741,6 +1742,7 @@ var FileUploadWithOptions = BaseField.extend({
1741
1742
  defaultValue: FileFieldWithOptionValue.optional(),
1742
1743
  configuration: import_zod15.z.object({
1743
1744
  maxFileSize: import_zod15.z.number().describe("Maximum file size in bytes").default(DEFAULT_MAX_FILE_SIZE_BYTES),
1745
+ maxImageSize: import_zod15.z.object({ width: import_zod15.z.number(), height: import_zod15.z.number() }).optional(),
1744
1746
  acceptedFileTypes: MimeType.array().optional().describe("List of allowed file formats for the signature")
1745
1747
  }).default({
1746
1748
  maxFileSize: DEFAULT_MAX_FILE_SIZE_BYTES
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "1.9.4-rc.6455371",
3
+ "version": "1.9.4-rc.7756c1a",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "exports": {