@encatch/schema 1.3.0-beta.5 → 1.3.0-beta.6
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 +14 -0
- package/dist/esm/index.js.map +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/schemas/api/fetch-feedback-schema.d.ts +6 -0
- package/dist/types/schemas/fields/app-props-schema.d.ts +6 -0
- package/dist/types/schemas/fields/form-properties-schema.d.ts +12 -0
- package/dist/types/schemas/fields/theme-schema.d.ts +23 -0
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1995,6 +1995,14 @@ var PreviousButtonModes = {
|
|
|
1995
1995
|
ALWAYS: "always",
|
|
1996
1996
|
AUTO: "auto"
|
|
1997
1997
|
};
|
|
1998
|
+
var inAppDisplayTypeSchema = z7.enum(["auto", "modal", "selector"]).describe(
|
|
1999
|
+
"How the form is presented on in-app surfaces: auto (#encatch host or modal), modal (always modal), or selector (render into inAppSelector)"
|
|
2000
|
+
);
|
|
2001
|
+
var InAppDisplayTypes = {
|
|
2002
|
+
AUTO: "auto",
|
|
2003
|
+
MODAL: "modal",
|
|
2004
|
+
SELECTOR: "selector"
|
|
2005
|
+
};
|
|
1998
2006
|
var logoPlacementSchema = z7.enum(["top-left", "top-center", "top-right"]).describe("Where the logo is anchored in the form header");
|
|
1999
2007
|
var logoSizeSchema = z7.enum(["small", "medium", "large"]).describe("Rendered display size of the logo within the 96\xD740 px container");
|
|
2000
2008
|
var logoSurfaceOverrideSchema = z7.object({
|
|
@@ -2036,6 +2044,10 @@ var featureSettingsSchema = z7.object({
|
|
|
2036
2044
|
rtl: z7.boolean().default(false).describe("Whether right-to-left text direction is enabled"),
|
|
2037
2045
|
previousButton: previousButtonModeSchema.default(PreviousButtonModes.ALWAYS).describe("Previous button: never (hidden) or always (shown)"),
|
|
2038
2046
|
maxDialogHeightPercentInApp: z7.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"),
|
|
2047
|
+
inAppDisplayType: inAppDisplayTypeSchema.default(InAppDisplayTypes.AUTO).describe(
|
|
2048
|
+
"How the form is presented on in-app surfaces: auto (#encatch host or modal), modal (always modal), or selector (render into inAppSelector)"
|
|
2049
|
+
),
|
|
2050
|
+
inAppSelector: z7.string().optional().describe("CSS selector for the host element to render the form into when inAppDisplayType is 'selector'; if it matches nothing the form falls back to the modal"),
|
|
2039
2051
|
faviconUrl: z7.string().optional().describe("URL of a custom favicon image to display in the browser tab; when absent the platform default favicon is used"),
|
|
2040
2052
|
logo: logoSchema.optional().describe("Optional form-level logo shown in the header on link/shareable surfaces; omit to show no logo")
|
|
2041
2053
|
}).describe("Feature settings controlling widget UI behavior and appearance");
|
|
@@ -2686,6 +2698,7 @@ export {
|
|
|
2686
2698
|
DeviceThemes,
|
|
2687
2699
|
FileUploadAnswerItemSchema,
|
|
2688
2700
|
FileUploadAnswerSchema,
|
|
2701
|
+
InAppDisplayTypes,
|
|
2689
2702
|
LanguageFieldSchema,
|
|
2690
2703
|
LanguagesSchema,
|
|
2691
2704
|
LayoutAttachmentTypes,
|
|
@@ -2775,6 +2788,7 @@ export {
|
|
|
2775
2788
|
formPropertiesSchema,
|
|
2776
2789
|
gradientAttachmentSchema,
|
|
2777
2790
|
imageAttachmentSchema,
|
|
2791
|
+
inAppDisplayTypeSchema,
|
|
2778
2792
|
layoutAttachmentSchema,
|
|
2779
2793
|
layoutSurfaceSchema,
|
|
2780
2794
|
logicJumpRuleSchema,
|