@encatch/schema 1.2.0-beta.13 → 1.2.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
@@ -1889,6 +1889,30 @@ var PreviousButtonModes = {
1889
1889
  ALWAYS: "always",
1890
1890
  AUTO: "auto"
1891
1891
  };
1892
+ var logoPlacementSchema = z6.enum(["top-left", "top-center", "top-right"]).describe("Where the logo is anchored in the form header");
1893
+ var logoSizeSchema = z6.enum(["small", "medium", "large"]).describe("Rendered display size of the logo within the 96\xD740 px container");
1894
+ var logoSurfaceOverrideSchema = z6.object({
1895
+ size: logoSizeSchema.optional().describe("Size override for this surface; falls back to the global size"),
1896
+ placement: logoPlacementSchema.optional().describe("Placement override for this surface; falls back to the global placement"),
1897
+ hidden: z6.boolean().optional().describe("When true, the logo is suppressed on this surface"),
1898
+ disableLink: z6.boolean().optional().describe("When true, the logo is not clickable on this surface")
1899
+ }).describe("Per-surface overrides for logo display on link/shareable");
1900
+ var logoSchema = z6.object({
1901
+ href: z6.object({
1902
+ light: z6.string().url().describe("Logo URL for light mode \u2014 rendered within a 96\xD740 px container"),
1903
+ dark: z6.string().url().optional().describe("Logo URL for dark mode; falls back to light if absent")
1904
+ }).describe("Logo image URLs per theme mode"),
1905
+ placement: logoPlacementSchema.default("top-left").describe("Default placement in the form header"),
1906
+ size: logoSizeSchema.default("medium").describe("Default rendered size of the logo"),
1907
+ linkUrl: z6.string().url().optional().describe("Optional URL to navigate to when the logo is clicked"),
1908
+ altText: z6.string().max(200).optional().describe("Accessible alt text for the logo image"),
1909
+ surfaces: z6.object({
1910
+ link: z6.object({
1911
+ mobile: logoSurfaceOverrideSchema.optional().describe("Overrides for link/shareable on mobile viewports"),
1912
+ others: logoSurfaceOverrideSchema.optional().describe("Overrides for link/shareable on tablet and desktop viewports")
1913
+ }).optional()
1914
+ }).optional().describe("Per-surface overrides; logo is link/shareable only \u2014 not rendered in-app")
1915
+ }).describe("Logo displayed in the form header; applies to link/shareable surfaces only");
1892
1916
  var featureSettingsSchema = z6.object({
1893
1917
  darkOverlay: z6.boolean().default(false).describe("Whether to show a dark overlay behind the widget"),
1894
1918
  closeButton: z6.boolean().default(true).describe("Whether to display a close button on the widget"),
@@ -1906,7 +1930,8 @@ var featureSettingsSchema = z6.object({
1906
1930
  rtl: z6.boolean().default(false).describe("Whether right-to-left text direction is enabled"),
1907
1931
  previousButton: previousButtonModeSchema.default(PreviousButtonModes.ALWAYS).describe("Previous button: never (hidden) or always (shown)"),
1908
1932
  maxDialogHeightPercentInApp: z6.number().int().min(10).max(100).optional().describe("Maximum height of the in-app dialog as a percentage of the viewport height (10\u2013100); when absent the dialog uses its default height"),
1909
- faviconUrl: z6.string().optional().describe("URL of a custom favicon image to display in the browser tab; when absent the platform default favicon is used")
1933
+ faviconUrl: z6.string().optional().describe("URL of a custom favicon image to display in the browser tab; when absent the platform default favicon is used"),
1934
+ logo: logoSchema.optional().describe("Optional form-level logo shown in the header on link/shareable surfaces; omit to show no logo")
1910
1935
  }).describe("Feature settings controlling widget UI behavior and appearance");
1911
1936
  var themeColorsSchema = z6.object({
1912
1937
  theme: z6.string().optional().describe("Theme for a single mode (shadcn variables JSON)")
@@ -2019,7 +2044,7 @@ var imageAttachmentSchema = z8.object({
2019
2044
  decorative: z8.boolean().default(false).describe(
2020
2045
  "When true the image is purely visual; screen readers skip it and description is not surfaced as alt text"
2021
2046
  ),
2022
- brightness: z8.number().min(-100).max(100).optional().describe("Brightness adjustment: -100 darkest, 0 unchanged, +100 brightest. Applied as filter: brightness(1 + value/100)."),
2047
+ brightness: z8.number().min(-100).max(100).optional().describe("Brightness adjustment rendered with a black/white overlay: -100 fully black, 0 unchanged, +100 fully white."),
2023
2048
  focalPoint: focalPointSchema.optional()
2024
2049
  }).optional().describe("Optional display properties for the image")
2025
2050
  }).describe("Image attachment for section layouts");
@@ -2032,7 +2057,7 @@ var videoAttachmentSchema = z8.object({
2032
2057
  properties: z8.object({
2033
2058
  description: z8.string().optional().describe("Accessible description of the video"),
2034
2059
  decorative: z8.boolean().default(false).describe("When true the video is purely decorative and screen readers skip it"),
2035
- brightness: z8.number().min(-100).max(100).optional().describe("Brightness adjustment: -100 darkest, 0 unchanged, +100 brightest. Applied as filter: brightness(1 + value/100).")
2060
+ brightness: z8.number().min(-100).max(100).optional().describe("Brightness adjustment rendered with a black/white overlay: -100 fully black, 0 unchanged, +100 fully white.")
2036
2061
  }).optional().describe("Optional display properties for the video")
2037
2062
  }).describe("Video attachment for section layouts (external embed or self-hosted CDN)");
2038
2063
  var colorAttachmentSchema = z8.object({