@nira-opencrvs/toolkit 1.9.12-rc.7252f95 → 1.9.12-rc.87a8eb2

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.
@@ -4425,7 +4425,13 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
4425
4425
  analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4426
4426
  }, {
4427
4427
  type: z.ZodLiteral<"SELECT">;
4428
- defaultValue: z.ZodOptional<z.ZodString>;
4428
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
4429
+ $userDataField: z.ZodString;
4430
+ }, "strip", z.ZodTypeAny, {
4431
+ $userDataField: string;
4432
+ }, {
4433
+ $userDataField: string;
4434
+ }>]>>;
4429
4435
  options: z.ZodArray<z.ZodObject<{
4430
4436
  value: z.ZodString;
4431
4437
  label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
@@ -4516,7 +4522,9 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
4516
4522
  hideLabel?: boolean | undefined;
4517
4523
  uncorrectable?: boolean | undefined;
4518
4524
  analytics?: boolean | undefined;
4519
- defaultValue?: string | undefined;
4525
+ defaultValue?: string | {
4526
+ $userDataField: string;
4527
+ } | undefined;
4520
4528
  noOptionsMessage?: TranslationConfig | undefined;
4521
4529
  }, {
4522
4530
  type: "SELECT";
@@ -4594,7 +4602,9 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
4594
4602
  hideLabel?: boolean | undefined;
4595
4603
  uncorrectable?: boolean | undefined;
4596
4604
  analytics?: boolean | undefined;
4597
- defaultValue?: string | undefined;
4605
+ defaultValue?: string | {
4606
+ $userDataField: string;
4607
+ } | undefined;
4598
4608
  noOptionsMessage?: {
4599
4609
  id: string;
4600
4610
  description: string;
@@ -2230,7 +2230,7 @@ var BulletList = BaseField.extend({
2230
2230
  }).describe("A list of bullet points");
2231
2231
  var Select = BaseField.extend({
2232
2232
  type: import_zod17.z.literal(FieldType.SELECT),
2233
- defaultValue: TextValue.optional(),
2233
+ defaultValue: import_zod17.z.union([NonEmptyTextValue, SerializedUserDataField]).optional(),
2234
2234
  options: import_zod17.z.array(SelectOption).describe("A list of options"),
2235
2235
  noOptionsMessage: TranslationConfig.optional().describe(
2236
2236
  `
@@ -1736,7 +1736,7 @@ var BulletList = BaseField.extend({
1736
1736
  }).describe("A list of bullet points");
1737
1737
  var Select = BaseField.extend({
1738
1738
  type: import_zod17.z.literal(FieldType.SELECT),
1739
- defaultValue: TextValue.optional(),
1739
+ defaultValue: import_zod17.z.union([NonEmptyTextValue, SerializedUserDataField]).optional(),
1740
1740
  options: import_zod17.z.array(SelectOption).describe("A list of options"),
1741
1741
  noOptionsMessage: TranslationConfig.optional().describe(
1742
1742
  `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nira-opencrvs/toolkit",
3
- "version": "1.9.12-rc.7252f95",
3
+ "version": "1.9.12-rc.87a8eb2",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "exports": {