@encatch/schema 1.2.0-beta.4 → 1.2.0-beta.5

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.
package/dist/esm/index.js CHANGED
@@ -1029,7 +1029,7 @@ var numberQuestionSchema = questionSchema.extend({
1029
1029
  allowNegative: z2.boolean().optional().default(false).describe("Whether negative values are accepted; Typeform restricts to positive numbers only, making this a differentiator"),
1030
1030
  placeholder: z2.string().max(200).optional().describe("Placeholder text shown inside the number input"),
1031
1031
  prepopulatedValue: z2.number().optional().describe("Default numeric value to pre-fill the input"),
1032
- unit: z2.string().max(20).optional().describe("Unit label displayed beside the input (e.g. 'kg', '$', 'years')")
1032
+ unit: z2.string().max(10).optional().describe("Unit label displayed beside the input (e.g. 'kg', '$', 'years')")
1033
1033
  }).refine(
1034
1034
  (data) => data.min === void 0 || data.max === void 0 || data.min <= data.max,
1035
1035
  {
@@ -1052,7 +1052,8 @@ var phoneNumberQuestionSchema = questionSchema.extend({
1052
1052
  var addressSubFieldConfigSchema = z2.object({
1053
1053
  enabled: z2.boolean().default(true).describe("Whether this sub-field is shown in the question"),
1054
1054
  required: z2.boolean().default(false).describe("Whether the respondent must fill in this sub-field"),
1055
- placeholder: z2.string().max(200).optional().describe("Placeholder text for this sub-field input")
1055
+ placeholder: z2.string().max(200).optional().describe("Placeholder text for this sub-field input"),
1056
+ label: z2.string().max(120).optional().describe("Visible caption above this sub-field; defaults to built-in copy when omitted")
1056
1057
  }).describe("Configuration for an individual address sub-field");
1057
1058
  var addressQuestionSchema = questionSchema.extend({
1058
1059
  type: z2.literal("address").describe("Must be exactly 'address'"),