@encatch/schema 1.2.0-beta.13 → 1.2.0-beta.14
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 +26 -1
- package/dist/esm/index.js.map +3 -3
- package/dist/types/schemas/api/fetch-feedback-schema.d.ts +50 -0
- package/dist/types/schemas/fields/app-props-schema.d.ts +50 -0
- package/dist/types/schemas/fields/form-properties-schema.d.ts +100 -0
- package/dist/types/schemas/fields/theme-schema.d.ts +188 -0
- package/package.json +1 -1
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)")
|