@encatch/schema 1.1.0-beta.14 → 1.1.0-beta.15
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
|
@@ -1127,7 +1127,7 @@ var imageAttachmentSchema = z8.object({
|
|
|
1127
1127
|
decorative: z8.boolean().default(false).describe(
|
|
1128
1128
|
"When true the image is purely visual; screen readers skip it and description is not surfaced as alt text"
|
|
1129
1129
|
),
|
|
1130
|
-
brightness: z8.number().min(-
|
|
1130
|
+
brightness: z8.number().min(-100).max(100).optional().describe("Brightness adjustment: -100 darkest, 0 unchanged, +100 brightest. Applied as filter: brightness(1 + value/100)."),
|
|
1131
1131
|
focalPoint: focalPointSchema.optional()
|
|
1132
1132
|
}).optional().describe("Optional display properties for the image")
|
|
1133
1133
|
}).describe("Image attachment for section layouts");
|
|
@@ -1139,7 +1139,8 @@ var videoAttachmentSchema = z8.object({
|
|
|
1139
1139
|
scale: z8.enum(["0.4", "0.6", "0.8", "1"]).default("0.6").optional().describe("Responsive scale for the video within its container"),
|
|
1140
1140
|
properties: z8.object({
|
|
1141
1141
|
description: z8.string().optional().describe("Accessible description of the video"),
|
|
1142
|
-
decorative: z8.boolean().default(false).describe("When true the video is purely decorative and screen readers skip it")
|
|
1142
|
+
decorative: z8.boolean().default(false).describe("When true the video is purely decorative and screen readers skip it"),
|
|
1143
|
+
brightness: z8.number().min(-100).max(100).optional().describe("Brightness adjustment: -100 darkest, 0 unchanged, +100 brightest. Applied as filter: brightness(1 + value/100).")
|
|
1143
1144
|
}).optional().describe("Optional display properties for the video")
|
|
1144
1145
|
}).describe("Video attachment for section layouts (external embed or self-hosted CDN)");
|
|
1145
1146
|
var colorAttachmentSchema = z8.object({
|
|
@@ -1171,6 +1172,9 @@ var LayoutAttachmentTypes = {
|
|
|
1171
1172
|
};
|
|
1172
1173
|
var stackLayoutSchema = z8.object({
|
|
1173
1174
|
type: z8.literal("stack"),
|
|
1175
|
+
align: z8.enum(["left", "center", "cover"]).default("center").optional().describe(
|
|
1176
|
+
"How the media strip is displayed: 'center' (default, natural size centred at form width), 'left' (natural size left-aligned), 'cover' (full-bleed, fills strip edge-to-edge)"
|
|
1177
|
+
),
|
|
1174
1178
|
attachment: layoutAttachmentSchema.optional().describe("Background media rendered behind the question content")
|
|
1175
1179
|
}).describe(
|
|
1176
1180
|
"Stack layout: attachment renders as a full-bleed background behind the question"
|