@encatch/schema 1.1.0-beta.4 → 1.1.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
@@ -10,13 +10,15 @@ var translationEntrySchema = z.string().min(1).describe("Translated text content
10
10
  var baseQuestionTranslationFieldsSchema = z.object({
11
11
  title: translationEntrySchema.describe("Question title translation"),
12
12
  description: translationEntrySchema.optional().describe("Question description translation"),
13
- errorMessage: translationEntrySchema.optional().describe("Error message translation")
13
+ errorMessage: translationEntrySchema.optional().describe("Error message translation"),
14
+ nextButtonLabel: translationEntrySchema.max(50).optional().describe("Next button label translation when advancing past this question")
14
15
  });
15
16
  var BASE_QUESTION_TRANSLATION_KEYS = [
16
17
  "type",
17
18
  "title",
18
19
  "description",
19
- "errorMessage"
20
+ "errorMessage",
21
+ "nextButtonLabel"
20
22
  ];
21
23
  var ratingQuestionTranslationSchema = baseQuestionTranslationFieldsSchema.extend({
22
24
  type: z.literal("rating").describe("Question type identifier"),
@@ -478,7 +480,10 @@ var questionSchema = z2.object({
478
480
  status: questionStatusSchema.describe(
479
481
  "Current status of the question (Draft, Published, etc.)"
480
482
  ),
481
- textAlign: z2.enum(["left", "center"]).optional().default("left").describe("Text alignment for the question title and description")
483
+ textAlign: z2.enum(["left", "center"]).optional().default("left").describe("Text alignment for the question title and description"),
484
+ nextButtonLabel: z2.string().min(1).max(50).optional().describe(
485
+ "Label for the next button when advancing past this question (overrides section or form defaults when set)"
486
+ )
482
487
  }).describe("Base schema for all question types with common properties");
483
488
  var ratingQuestionSchema = questionSchema.extend({
484
489
  type: z2.literal("rating").describe("Must be exactly 'rating'"),