Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@teko-builder/types

Package Overview
Dependencies
Maintainers
3
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teko-builder/types - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

35

dist/pb/components/form.d.ts
import { CommonAttributesInterface, Style } from './../interfaces';
import { InputInterfaceV2 } from './input';
declare type SubmitType = 'api' | 'googleSheet' | 'googleForm';

@@ -14,5 +15,5 @@ export declare enum ContentType {

export interface FormSubmitResponse {
success: string;
failed: string;
custom: CustomResponse[];
success?: string;
failed?: string;
custom?: CustomResponse[];
}

@@ -22,4 +23,4 @@ export interface FormSubmit {

url: string;
response: FormSubmitResponse;
method: 'GET' | 'POST';
response?: FormSubmitResponse;
method: 'GET' | 'POST' | 'PATCH';
headers?: string;

@@ -36,3 +37,27 @@ contentType?: ContentType;

}
export interface CaptchaV3Interface extends CommonAttributesInterface {
version?: 'checkboxv2' | 'invisiblev2' | 'invisiblev3';
siteKey?: string;
requestKey?: string;
action?: string;
}
export interface FormV3Interface extends CommonAttributesInterface {
submits: FormSubmit[];
response?: FormSubmitResponse & {
responseType?: 'default' | 'custom';
};
hiddenFields: {
name: string;
value: string;
}[];
formStyle?: Style;
showLabel?: boolean;
labelStyle?: Style;
errorStyle?: Style;
inputStyle?: Style;
inputs?: InputInterfaceV2[];
mainConnection?: number;
captcha?: CaptchaV3Interface;
}
export {};
//# sourceMappingURL=form.d.ts.map

@@ -5,2 +5,15 @@ import { CommonAttributesInterface, Style } from '../interfaces';

}
export interface InputInterfaceV2 extends CommonAttributesInterface {
inputStyle?: Style;
name?: string;
placeholder?: string;
required?: boolean;
label?: string;
type: 'text' | 'number' | 'tel' | 'email' | 'date' | 'time' | 'datetime-local' | 'select-box' | 'radio-group' | 'checkbox-group' | 'textarea';
multiple?: boolean;
options?: {
value: string;
label: string;
}[];
}
//# sourceMappingURL=input.d.ts.map

@@ -21,3 +21,4 @@ import { CommonAttributesInterface } from '../interfaces';

className?: string;
crop?: boolean;
}
//# sourceMappingURL=slider.d.ts.map

2

dist/pb/index.es.js

@@ -99,3 +99,3 @@ var LinkType;

const PageSettingInterfaceJSS = { "type": "object", "properties": { "widthType": { "$ref": "#/definitions/WidthTypeEnum" }, "maxWidth": { "type": "number" } }, "required": ["widthType"], "definitions": { "WidthTypeEnum": { "enum": ["auto", "fixed", "full"], "type": "string" } }, "$schema": "http://json-schema.org/draft-07/schema#" };
const PageBuilderResponseJSS = { "type": "object", "additionalProperties": { "$ref": "#/definitions/PBComponent" }, "definitions": { "WidthTypeEnum": { "enum": ["auto", "fixed", "full"], "type": "string" }, "PBComponent": { "type": "object", "properties": { "id": { "type": "string" }, "elementId": { "type": "string" }, "parentId": { "type": ["null", "string"] }, "tag": { "type": "string" }, "displayName": { "type": "string" }, "startTime": { "type": "string" }, "endTime": { "type": "string" }, "resolvedName": { "type": "string" }, "style": { "$ref": "#/definitions/Style" }, "isActive": { "type": "boolean" }, "children": { "type": "array", "items": { "type": "string" } }, "isCanvas": { "type": "boolean" }, "customAttributes": { "type": "object", "additionalProperties": {} } }, "required": ["children", "id", "isActive", "parentId", "resolvedName", "tag"] }, "Style": { "type": "object", "properties": { "color": { "type": "string" }, "fontFamily": { "type": "string" }, "fontWeight": { "type": "string" }, "margin": { "$ref": "#/definitions/Spacing" }, "padding": { "$ref": "#/definitions/Spacing" }, "border": { "$ref": "#/definitions/Border" }, "shadow": { "$ref": "#/definitions/Shadow" }, "textShadow": { "$ref": "#/definitions/TextShadow" }, "bgImageWidth": { "type": "number" }, "backgroundColor": { "type": "string" }, "backgroundImage": { "type": "string" }, "backgroundOverlay": { "type": "string" }, "backgroundOverlayType": { "enum": ["color", "gradient"], "type": "string" }, "hover": { "$ref": "#/definitions/Hover" }, "animation": { "$ref": "#/definitions/AnimationProps" }, "gap": { "type": "number" }, "alignItems": {}, "backgroundRepeat": {}, "backgroundSize": {}, "columnGap": {}, "flexDirection": {}, "flexWrap": {}, "fontSize": {}, "fontStyle": {}, "fontVariant": {}, "height": {}, "justifyContent": {}, "letterSpacing": {}, "lineHeight": {}, "marginLeft": {}, "marginRight": {}, "maxHeight": {}, "maxWidth": {}, "minHeight": {}, "minWidth": {}, "objectFit": {}, "position": {}, "rowGap": {}, "textAlign": {}, "textTransform": {}, "width": {}, "backgroundPosition": {}, "borderColor": {}, "borderRadius": {}, "borderStyle": {}, "borderWidth": {}, "textDecoration": {} }, "required": ["alignItems", "backgroundPosition", "backgroundRepeat", "backgroundSize", "borderColor", "borderRadius", "borderStyle", "borderWidth", "columnGap", "flexDirection", "flexWrap", "fontSize", "fontStyle", "fontVariant", "height", "justifyContent", "letterSpacing", "lineHeight", "marginLeft", "marginRight", "maxHeight", "maxWidth", "minHeight", "minWidth", "objectFit", "position", "rowGap", "textAlign", "textDecoration", "textTransform", "width"] }, "Spacing": { "type": "object", "properties": { "top": { "type": "number" }, "right": { "type": "number" }, "bottom": { "type": "number" }, "left": { "type": "number" }, "unit": { "enum": ["%", "px"], "type": "string" } } }, "Border": { "type": "object", "properties": { "borderStyle": { "enum": ["dashed", "dotted", "none", "solid"], "type": "string" }, "borderWidth": { "type": "number" }, "borderColor": { "type": "string" }, "borderRadius": { "type": "number" } } }, "Shadow": { "type": "object", "properties": { "color": { "type": "string" }, "x": { "type": "number" }, "y": { "type": "number" }, "blur": { "type": "number" }, "spread": { "type": "number" } } }, "TextShadow": { "type": "object", "properties": { "color": { "type": "string" }, "x": { "type": "number" }, "y": { "type": "number" }, "blur": { "type": "number" } } }, "Hover": { "type": "object", "properties": { "backgroundColor": { "type": "string" }, "borderColor": { "type": "string" }, "color": { "type": "string" }, "transparent": { "type": "number" }, "zoom": { "type": "number" } } }, "AnimationProps": { "type": "object", "properties": { "name": { "type": "string" }, "delay": { "type": "number" }, "duration": { "type": "number" }, "repeatType": { "enum": ["infinite", "number"], "type": "string" }, "repeatNumber": { "type": "number" } } } }, "$schema": "http://json-schema.org/draft-07/schema#" };
const PageBuilderResponseJSS = { "type": "object", "additionalProperties": { "$ref": "#/definitions/PBComponent" }, "definitions": { "WidthTypeEnum": { "enum": ["auto", "fixed", "full"], "type": "string" }, "PBComponent": { "type": "object", "properties": { "id": { "type": "string" }, "elementId": { "type": "string" }, "parentId": { "type": ["null", "string"] }, "tag": { "type": "string" }, "version": { "type": "string" }, "displayName": { "type": "string" }, "startTime": { "type": "string" }, "endTime": { "type": "string" }, "resolvedName": { "type": "string" }, "style": { "$ref": "#/definitions/Style" }, "isActive": { "type": "boolean" }, "children": { "type": "array", "items": { "type": "string" } }, "isCanvas": { "type": "boolean" }, "customAttributes": { "type": "object", "properties": { "section": { "$ref": "#/definitions/Section" }, "col": { "$ref": "#/definitions/Col" }, "button": { "$ref": "#/definitions/ButtonV1Interface" }, "buttonv2": { "$ref": "#/definitions/ButtonV2Interface" }, "paragraph": { "$ref": "#/definitions/ParagraphInterface" }, "heading": { "$ref": "#/definitions/HeadingInterface" }, "root": { "$ref": "#/definitions/Root" }, "icon": { "$ref": "#/definitions/IconInterface" }, "image": { "$ref": "#/definitions/Image" }, "form": { "$ref": "#/definitions/Form" }, "youtube": { "$ref": "#/definitions/Youtube" }, "spacer": { "$ref": "#/definitions/Spacer" }, "slider": { "$ref": "#/definitions/Slider<{}>" }, "divider": { "$ref": "#/definitions/DividerInterface" }, "menuItem": { "$ref": "#/definitions/MenuItemInterface" }, "menuCol": { "$ref": "#/definitions/MenuColInterface" }, "header": { "$ref": "#/definitions/HeaderInterface" }, "testimonialCarousel": { "allOf": [{ "$ref": "#/definitions/CommonAttributesInterface" }, { "$ref": "#/definitions/Omit<Slider<TestimonialItemInterface>,\"type\">" }, { "$ref": "#/definitions/TestimonialItemStyle" }] }, "box": { "$ref": "#/definitions/CommonAttributesInterface" }, "map": { "$ref": "#/definitions/MapInterface" }, "list": { "$ref": "#/definitions/ListInterface" }, "listItem": { "type": "object", "properties": {} }, "listItemIcon": { "$ref": "#/definitions/ListItemIconInterface" }, "listItemContent": { "type": "object", "properties": { "text": { "type": "string" } }, "required": ["text"] }, "accordion": { "$ref": "#/definitions/AccordionInterface" }, "accordionItem": { "$ref": "#/definitions/AccordionItemInterface" }, "accordionContent": { "$ref": "#/definitions/CommonAttributesInterface" }, "tab": { "$ref": "#/definitions/TabInterface" }, "popupv1": { "$ref": "#/definitions/PopupV1Interface" }, "formv2": { "$ref": "#/definitions/FormV2Interface" }, "productList": { "$ref": "#/definitions/ProductListV1Interface" }, "inputv1": { "$ref": "#/definitions/InputInterface" }, "pageFlip": { "$ref": "#/definitions/PageFlipInterface" } } } }, "required": ["children", "id", "isActive", "parentId", "resolvedName", "tag"] }, "Style": { "type": "object", "properties": { "color": { "type": "string" }, "fontFamily": { "type": "string" }, "fontWeight": { "type": "string" }, "margin": { "$ref": "#/definitions/Spacing" }, "padding": { "$ref": "#/definitions/Spacing" }, "border": { "$ref": "#/definitions/Border" }, "shadow": { "$ref": "#/definitions/Shadow" }, "textShadow": { "$ref": "#/definitions/TextShadow" }, "bgImageWidth": { "type": "number" }, "backgroundColor": { "type": "string" }, "backgroundImage": { "type": "string" }, "backgroundOverlay": { "type": "string" }, "backgroundOverlayType": { "enum": ["color", "gradient"], "type": "string" }, "hover": { "$ref": "#/definitions/Hover" }, "animation": { "$ref": "#/definitions/AnimationProps" }, "gap": { "type": "number" }, "alignItems": {}, "backgroundRepeat": {}, "backgroundSize": {}, "columnGap": {}, "flexDirection": {}, "flexWrap": {}, "fontSize": {}, "fontStyle": {}, "fontVariant": {}, "height": {}, "justifyContent": {}, "letterSpacing": {}, "lineHeight": {}, "marginLeft": {}, "marginRight": {}, "maxHeight": {}, "maxWidth": {}, "minHeight": {}, "minWidth": {}, "objectFit": {}, "position": {}, "rowGap": {}, "textAlign": {}, "textTransform": {}, "width": {}, "backgroundPosition": {}, "borderColor": {}, "borderRadius": {}, "borderStyle": {}, "borderWidth": {}, "textDecoration": {} }, "required": ["alignItems", "backgroundPosition", "backgroundRepeat", "backgroundSize", "borderColor", "borderRadius", "borderStyle", "borderWidth", "columnGap", "flexDirection", "flexWrap", "fontSize", "fontStyle", "fontVariant", "height", "justifyContent", "letterSpacing", "lineHeight", "marginLeft", "marginRight", "maxHeight", "maxWidth", "minHeight", "minWidth", "objectFit", "position", "rowGap", "textAlign", "textDecoration", "textTransform", "width"] }, "Spacing": { "type": "object", "properties": { "top": { "type": "number" }, "right": { "type": "number" }, "bottom": { "type": "number" }, "left": { "type": "number" }, "unit": { "enum": ["%", "px"], "type": "string" } } }, "Border": { "type": "object", "properties": { "borderStyle": { "enum": ["dashed", "dotted", "none", "solid"], "type": "string" }, "borderWidth": { "type": "number" }, "borderColor": { "type": "string" }, "borderRadius": { "type": "number" } } }, "Shadow": { "type": "object", "properties": { "color": { "type": "string" }, "x": { "type": "number" }, "y": { "type": "number" }, "blur": { "type": "number" }, "spread": { "type": "number" } } }, "TextShadow": { "type": "object", "properties": { "color": { "type": "string" }, "x": { "type": "number" }, "y": { "type": "number" }, "blur": { "type": "number" } } }, "Hover": { "type": "object", "properties": { "backgroundColor": { "type": "string" }, "borderColor": { "type": "string" }, "color": { "type": "string" }, "transparent": { "type": "number" }, "zoom": { "type": "number" } } }, "AnimationProps": { "type": "object", "properties": { "name": { "type": "string" }, "delay": { "type": "number" }, "duration": { "type": "number" }, "repeatType": { "enum": ["infinite", "number"], "type": "string" }, "repeatNumber": { "type": "number" } } }, "Section": { "type": "object", "properties": { "cols": { "type": "array", "items": { "$ref": "#/definitions/Col" } }, "verticalAlignment": { "enum": ["bottom", "center", "top"], "type": "string" }, "widthType": { "enum": ["auto", "fixed", "full"], "type": "string" } } }, "Col": { "type": "object", "properties": { "md": { "anyOf": [{ "type": "object", "properties": { "flex": { "type": "string" } }, "required": ["flex"] }, { "type": "number" }] }, "xs": { "anyOf": [{ "type": "object", "properties": { "flex": { "type": "string" } }, "required": ["flex"] }, { "type": "number" }] } } }, "ButtonV1Interface": { "type": "object", "properties": { "variant": { "enum": ["ghost", "link", "primary", "secondary"], "type": "string" }, "size": { "enum": ["default", "large", "small"], "type": "string" }, "link": { "$ref": "#/definitions/LinkInterface" }, "text": { "type": "string" }, "align": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "alignment": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "color": { "type": "string" }, "bgColor": { "type": "string" }, "iconConfig": { "type": "object", "properties": { "icon": { "$ref": "#/definitions/IconInterface" }, "position": { "enum": ["behind", "front"], "type": "string" }, "spacing": { "type": ["string", "number"] }, "show": { "type": "boolean" } } }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } }, "required": ["text"] }, "LinkInterface": { "type": "object", "properties": { "target": { "enum": ["_blank", "_self"], "type": "string" }, "linkType": { "enum": ["email", "external", "inPage", "internal", "phone"], "type": "string" }, "href": { "anyOf": [{ "$ref": "#/definitions/UrlObject" }, { "type": "string" }] }, "children": { "$ref": "#/definitions/React.ReactElement<any,string|React.JSXElementConstructor<any>>" }, "sectionMarginTop": { "type": "number" }, "as": { "anyOf": [{ "$ref": "#/definitions/UrlObject" }, { "type": "string" }] }, "replace": { "type": "boolean" }, "scroll": { "type": "boolean" }, "shallow": { "type": "boolean" }, "passHref": { "type": "boolean" }, "prefetch": { "type": "boolean" }, "locale": { "anyOf": [{ "enum": [false], "type": "boolean" }, { "type": "string" }] } }, "required": ["href"] }, "UrlObject": { "type": "object", "properties": { "auth": { "type": ["null", "string"] }, "hash": { "type": ["null", "string"] }, "host": { "type": ["null", "string"] }, "hostname": { "type": ["null", "string"] }, "href": { "type": ["null", "string"] }, "pathname": { "type": ["null", "string"] }, "protocol": { "type": ["null", "string"] }, "search": { "type": ["null", "string"] }, "slashes": { "type": ["null", "boolean"] }, "port": { "type": ["null", "string", "number"] }, "query": { "anyOf": [{ "$ref": "#/definitions/ParsedUrlQueryInput" }, { "type": ["null", "string"] }] } } }, "ParsedUrlQueryInput": { "type": "object" }, "React.ReactElement<any,string|React.JSXElementConstructor<any>>": { "type": "object", "properties": { "type": { "type": ["string", "object"] }, "props": {}, "key": { "type": ["null", "string", "number"] } }, "required": ["key", "props", "type"] }, "IconInterface": { "type": "object", "properties": { "name": { "type": "string" }, "size": { "type": "number" }, "color": { "type": "string" }, "align": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } } }, "EventInterface": { "type": "object", "properties": { "eventType": { "$ref": "#/definitions/EventType" }, "link": { "$ref": "#/definitions/LinkInterfaceV2" }, "email": { "type": "string" }, "phone": { "type": "string" }, "inPage": { "type": "string" }, "sectionMarginTop": { "type": "number" }, "openPopup": { "type": "string" }, "trackingEventName": { "type": "string" } }, "required": ["eventType"] }, "EventType": { "enum": ["email", "inPage", "internal", "link", "openPopup", "phone"], "type": "string" }, "LinkInterfaceV2": { "type": "object", "properties": { "openNewTab": { "type": "boolean" }, "href": { "anyOf": [{ "$ref": "#/definitions/UrlObject" }, { "type": "string" }] }, "nofollow": { "type": "boolean" } }, "required": ["href"] }, "ButtonV2Interface": { "type": "object", "properties": { "text": { "type": "string" }, "size": { "enum": ["default", "large", "small"], "type": "string" }, "align": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "link": { "$ref": "#/definitions/LinkInterface" }, "buttonStyle": { "$ref": "#/definitions/Style" }, "iconConfig": { "type": "object", "properties": { "icon": { "$ref": "#/definitions/IconInterface" }, "position": { "enum": ["left", "right"], "type": "string" }, "spacing": { "type": ["string", "number"] }, "show": { "type": "boolean" } } }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } } }, "ParagraphInterface": { "type": "object", "properties": { "text": { "type": "string" }, "link": { "$ref": "#/definitions/LinkInterface" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } }, "required": ["text"] }, "HeadingInterface": { "type": "object", "properties": { "text": { "type": "string" }, "link": { "$ref": "#/definitions/LinkInterface" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } }, "required": ["text"] }, "Root": { "type": "object", "properties": { "children": { "type": "array", "items": { "type": "string" } }, "pageWidthType": { "enum": ["auto", "fixed", "full"], "type": "string" }, "pageMaxWidth": { "type": "number" }, "script": { "$ref": "#/definitions/Script" }, "conversionTracking": { "$ref": "#/definitions/ConversionTracking" }, "colors": { "type": "array", "items": { "type": "string" } } } }, "Script": { "type": "object", "properties": { "headScript": { "type": "string" }, "bodyScript": { "type": "string" } } }, "ConversionTracking": { "type": "object", "properties": { "facebookPixelId": { "type": "string" }, "googleAnalyticsId": { "type": "string" }, "googleTagManagerId": { "type": "string" } } }, "Image": { "type": "object", "properties": { "hoverEffect": { "type": "string" }, "src": { "type": "string" }, "alt": { "type": "string" }, "width": { "type": "number" }, "customWidth": { "type": "number" }, "link": { "$ref": "#/definitions/LinkInterface" }, "alignment": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "googleImageParams": { "$ref": "#/definitions/GoogleImageParams" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" }, "height": { "type": "number" }, "format": { "enum": ["jpg", "png", "webp"], "type": "string" }, "stretch": { "type": "boolean" }, "crop": { "type": "boolean" } } }, "GoogleImageParams": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "format": { "enum": ["jpg", "png", "webp"], "type": "string" }, "stretch": { "type": "boolean" }, "crop": { "type": "boolean" } } }, "Form": { "type": "object", "properties": { "name": { "type": "string" }, "formItems": { "type": "array", "items": { "$ref": "#/definitions/FormItem" } }, "buttonWidth": { "type": "number" }, "submitButton": { "allOf": [{ "$ref": "#/definitions/Omit<ButtonV1Interface,\"link\">" }, { "type": "object", "properties": { "commonStyle": { "$ref": "#/definitions/Style" } } }] }, "actionAfterSubmit": { "type": "array", "items": { "enum": ["api", "sheet"], "type": "string" } }, "settingAfterSubmit": { "type": "object", "properties": { "api": { "$ref": "#/definitions/ApiSetting" }, "sheet": { "$ref": "#/definitions/GoogleSheetSetting" } } }, "columnGap": { "type": "number" }, "rowGap": { "type": "number" }, "showLabel": { "type": "boolean" }, "labelColor": { "type": "string" }, "errorColor": { "type": "string" }, "inputSize": { "enum": ["default", "large", "small"], "type": "string" }, "captcha": { "$ref": "#/definitions/CaptchaSetting" }, "onSubmit": { "type": "object" }, "responsePopup": { "type": "array", "items": { "$ref": "#/definitions/FormResponsePopup" } }, "sheetResponsePopup": { "$ref": "#/definitions/Popup" }, "submitWithParams": { "type": "boolean" }, "ggSheetKey": {} }, "required": ["formItems", "submitButton"] }, "FormItem": { "type": "object", "properties": { "type": { "$ref": "#/definitions/InputType" }, "name": { "type": "string" }, "label": { "type": "string" }, "showLabel": { "type": "boolean" }, "placeholder": { "type": "string" }, "required": { "type": "boolean" }, "markRequired": { "type": "boolean" }, "columnWidth": { "type": "number" }, "additionOptions": { "type": "object", "properties": { "number": { "$ref": "#/definitions/NumberF" }, "textarea": { "$ref": "#/definitions/TextArea" }, "radioGroup": { "$ref": "#/definitions/Group" }, "checkboxGroup": { "$ref": "#/definitions/Group" }, "select": { "$ref": "#/definitions/Select" }, "dateTime": { "$ref": "#/definitions/DateTime" }, "hidden": { "$ref": "#/definitions/Hidden" }, "text": { "type": "object", "properties": {}, "additionalProperties": true }, "email": { "type": "object", "properties": {}, "additionalProperties": true }, "phoneNumber": { "type": "object", "properties": {}, "additionalProperties": true } } } }, "required": ["name", "type"] }, "InputType": { "enum": ["checkboxGroup", "dateTime", "email", "hidden", "number", "phoneNumber", "radioGroup", "select", "text", "textarea"], "type": "string" }, "NumberF": { "type": "object", "properties": { "min": { "type": "number" }, "max": { "type": "number" } } }, "TextArea": { "type": "object", "properties": { "rows": { "type": "number" } } }, "Group": { "type": "object", "properties": { "options": { "type": "array", "items": { "$ref": "#/definitions/Option" } }, "inline": { "type": "boolean" }, "valueType": { "enum": ["boolean", "number", "string"], "type": "string" } } }, "Option": { "type": "object", "properties": { "label": { "type": "string" }, "value": { "type": "string" } }, "required": ["label", "value"] }, "Select": { "type": "object", "properties": { "allowClear": { "type": "boolean" }, "options": { "type": "array", "items": { "$ref": "#/definitions/Option" } }, "multiple": { "type": "boolean" }, "valueType": { "enum": ["boolean", "number", "string"], "type": "string" } } }, "DateTime": { "type": "object", "properties": { "type": { "enum": ["date", "datetime", "time"], "type": "string" } } }, "Hidden": { "type": "object", "properties": { "defaultValue": { "type": "string" }, "valueType": { "enum": ["boolean", "number", "string"], "type": "string" } } }, "Omit<ButtonV1Interface,\"link\">": { "type": "object", "properties": { "text": { "type": "string" }, "color": { "type": "string" }, "size": { "enum": ["default", "large", "small"], "type": "string" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" }, "variant": { "enum": ["ghost", "link", "primary", "secondary"], "type": "string" }, "align": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "alignment": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "bgColor": { "type": "string" }, "iconConfig": { "type": "object", "properties": { "icon": { "$ref": "#/definitions/IconInterface" }, "position": { "enum": ["behind", "front"], "type": "string" }, "spacing": { "type": ["string", "number"] }, "show": { "type": "boolean" } } } }, "required": ["text"] }, "ApiSetting": { "type": "object", "properties": { "url": { "type": "string" } }, "required": ["url"] }, "GoogleSheetSetting": { "type": "object", "properties": { "url": { "type": "string" } }, "required": ["url"] }, "CaptchaSetting": { "type": "object", "properties": { "show": { "type": "boolean" }, "version": { "enum": ["checkboxV2", "invisibleV2", "invisibleV3"], "type": "string" }, "siteKey": { "type": "string" }, "action": { "type": "string" } } }, "FormResponsePopup": { "type": "object", "properties": { "code": { "type": ["string", "number"] }, "popup": { "$ref": "#/definitions/Popup" } }, "required": ["code"] }, "Popup": { "type": "object", "properties": { "show": { "type": "boolean" }, "toggle": { "type": "object" }, "title": { "type": "string" }, "content": { "type": "string" }, "popupButton": { "type": "array", "items": { "allOf": [{ "$ref": "#/definitions/ButtonV1Interface" }, { "type": "object", "properties": { "commonStyle": { "$ref": "#/definitions/Style" }, "hideAfterClick": { "type": "boolean" } }, "required": ["commonStyle", "hideAfterClick"] }] } }, "maskClosable": { "type": "boolean" }, "showCloseBtn": { "type": "boolean" } }, "required": ["content", "title"] }, "Youtube": { "type": "object", "properties": { "link": { "type": "string" }, "autoplay": { "type": "boolean" } }, "required": ["link"] }, "Spacer": { "type": "object", "properties": { "height": { "type": "number" } }, "required": ["height"] }, "Slider<{}>": { "type": "object", "properties": { "type": { "$ref": "#/definitions/SliderTypeEnum" }, "items": { "type": "array", "items": { "type": "object", "properties": {} } }, "slidesPerColumn": { "type": "number" }, "slidesPerView": { "type": "number" }, "slidesPerGroup": { "type": "number" }, "navigation": { "type": "boolean" }, "navigationStyle": { "type": "number" }, "pagination": { "type": "boolean" }, "paginationStyle": { "type": "number" }, "paginationColor": { "type": "string" }, "autoplay": { "type": "boolean" }, "loop": { "type": "boolean" }, "speed": { "type": "number" }, "spaceBetween": { "type": "number" }, "pauseOnMouseEnter": { "type": "boolean" }, "virtual": { "type": "boolean" } }, "required": ["items", "type"] }, "SliderTypeEnum": { "enum": ["image", "product"], "type": "string" }, "DividerInterface": { "type": "object", "properties": { "style": { "$ref": "#/definitions/DividerStyleEnum" }, "type": { "enum": ["icon", "text"], "type": "string" }, "align": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "weight": { "$ref": "#/definitions/UnitSizeInterface" }, "gap": { "$ref": "#/definitions/UnitSizeInterface" }, "textConfig": { "type": "object", "properties": { "text": { "type": "string" }, "align": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "spacing": { "$ref": "#/definitions/UnitSizeInterface" }, "color": { "type": "string" } } }, "iconConfig": { "type": "object", "properties": { "icon": { "$ref": "#/definitions/IconInterface" }, "align": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "spacing": { "$ref": "#/definitions/UnitSizeInterface" } } } }, "required": ["style"] }, "DividerStyleEnum": { "enum": ["dashed", "dotted", "double", "solid"], "type": "string" }, "UnitSizeInterface": { "type": "object", "properties": { "unit": { "$ref": "#/definitions/UnitEnum" }, "size": { "type": "number" } }, "required": ["unit"] }, "UnitEnum": { "enum": ["%", "px"], "type": "string" }, "MenuItemInterface": { "type": "object", "properties": { "type": { "$ref": "#/definitions/MenuItemType" }, "itemData": { "anyOf": [{ "$ref": "#/definitions/HeadingInterface" }, { "$ref": "#/definitions/ButtonV1Interface" }] } }, "required": ["itemData", "type"] }, "MenuItemType": { "enum": ["button", "link"], "type": "string" }, "MenuColInterface": { "type": "object", "properties": { "type": { "enum": ["left", "right"], "type": "string" } } }, "HeaderInterface": { "type": "object", "properties": { "widthType": { "enum": ["auto", "fixed", "full"], "type": "string" }, "alignment": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "toggle": { "$ref": "#/definitions/ToggleInterface" } } }, "ToggleInterface": { "type": "object", "properties": { "icon": { "type": "object", "properties": { "size": { "type": "number" }, "color": { "type": "string" } } } }, "required": ["icon"] }, "CommonAttributesInterface": { "type": "object", "properties": { "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } } }, "Omit<Slider<TestimonialItemInterface>,\"type\">": { "type": "object", "properties": { "navigation": { "type": "boolean" }, "items": { "type": "array", "items": { "$ref": "#/definitions/TestimonialItemInterface" } }, "pagination": { "type": "boolean" }, "paginationStyle": { "type": "number" }, "paginationColor": { "type": "string" }, "autoplay": { "type": "boolean" }, "speed": { "type": "number" }, "slidesPerColumn": { "type": "number" }, "slidesPerView": { "type": "number" }, "slidesPerGroup": { "type": "number" }, "navigationStyle": { "type": "number" }, "loop": { "type": "boolean" }, "spaceBetween": { "type": "number" }, "pauseOnMouseEnter": { "type": "boolean" }, "virtual": { "type": "boolean" } }, "required": ["items"] }, "TestimonialItemInterface": { "type": "object", "properties": { "image": { "$ref": "#/definitions/Image" }, "content": { "type": "string" }, "name": { "type": "string" }, "title": { "type": "string" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } } }, "TestimonialItemStyle": { "type": "object", "properties": { "imageStyle": { "allOf": [{ "$ref": "#/definitions/Style" }, { "type": "object", "properties": { "alignment": { "enum": ["center", "justify", "left", "right"], "type": "string" } } }] }, "contentStyle": { "$ref": "#/definitions/Style" }, "nameStyle": { "$ref": "#/definitions/Style" }, "titleStyle": { "$ref": "#/definitions/Style" }, "width": { "type": "number" }, "alignment": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "layout": { "enum": ["imageAbove", "imageInline", "imageLeft", "imageRight", "imageStacked"], "type": "string" }, "skin": { "enum": ["bubble", "default"], "type": "string" }, "bubbleStyle": { "$ref": "#/definitions/Style" } } }, "MapInterface": { "type": "object", "properties": { "address": { "type": "string" }, "zoom": { "type": "number" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } } }, "ListInterface": { "type": "object", "properties": { "icon": { "$ref": "#/definitions/IconInterface" }, "iconStyle": { "$ref": "#/definitions/Style" }, "content": { "type": "object", "properties": { "text": { "type": "string" } }, "required": ["text"] }, "contentStyle": { "$ref": "#/definitions/Style" }, "divider": { "$ref": "#/definitions/DividerInterface" }, "dividerStyle": { "$ref": "#/definitions/Style" }, "itemStyle": { "$ref": "#/definitions/Style" } } }, "ListItemIconInterface": { "type": "object", "properties": { "icon": { "$ref": "#/definitions/IconInterface" } } }, "AccordionInterface": { "type": "object", "properties": { "itemStyle": { "$ref": "#/definitions/Style" }, "titleStyle": { "$ref": "#/definitions/Style" }, "duration": { "type": "number" }, "icon": { "$ref": "#/definitions/AccordionIcon" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" }, "headerStyle": { "$ref": "#/definitions/Style" }, "contentStyle": { "$ref": "#/definitions/Style" }, "contentAlign": { "enum": ["center", "justify", "left", "right"], "type": "string" } } }, "AccordionIcon": { "type": "object", "properties": { "activeName": { "type": "string" }, "align": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "name": { "type": "string" }, "size": { "type": "number" }, "color": { "type": "string" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } } }, "AccordionItemInterface": { "type": "object", "properties": { "icon": { "$ref": "#/definitions/AccordionIcon" }, "title": { "type": "string" }, "itemKey": { "type": "string" }, "headerStyle": { "$ref": "#/definitions/Style" }, "contentStyle": { "$ref": "#/definitions/Style" }, "contentAlign": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } } }, "TabInterface": { "type": "object", "properties": { "tabs": { "type": "array", "items": { "$ref": "#/definitions/TabItemInterface" } }, "type": { "enum": ["button", "card", "line"], "type": "string" }, "activeColor": { "type": "string" }, "textColor": { "type": "string" }, "alignment": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } } }, "TabItemInterface": { "type": "object", "properties": { "id": { "type": "string" }, "title": { "type": "string" }, "isActive": { "type": "boolean" }, "type": { "enum": ["button", "card", "line"], "type": "string" }, "activeColor": { "type": "string" }, "textColor": { "type": "string" }, "alignment": { "enum": ["center", "justify", "left", "right"], "type": "string" } }, "required": ["title"] }, "PopupV1Interface": { "type": "object", "properties": { "position": { "enum": ["bottomCenter", "bottomLeft", "bottomRight", "centerLeft", "centerRight", "default", "topCenter", "topLeft", "topRight"], "type": "string" }, "displayOnExitPage": { "type": "boolean" }, "displayOnVisitPage": { "type": "boolean" }, "displayCloseButton": { "type": "boolean" }, "displayOnScrollTo": { "type": "string" }, "delay": { "type": "number" }, "closeIcon": { "$ref": "#/definitions/IconInterface" }, "maskStyle": { "$ref": "#/definitions/Style" }, "maskClosable": { "type": "boolean" }, "name": { "type": "string" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } } }, "FormV2Interface": { "type": "object", "properties": { "submits": { "type": "array", "items": { "$ref": "#/definitions/FormSubmit" } }, "hiddenFields": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "value": { "type": "string" } }, "required": ["name", "value"] } }, "formStyle": { "$ref": "#/definitions/Style" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } }, "required": ["hiddenFields", "submits"] }, "FormSubmit": { "type": "object", "properties": { "type": { "$ref": "#/definitions/SubmitType" }, "url": { "type": "string" }, "response": { "$ref": "#/definitions/FormSubmitResponse" }, "method": { "enum": ["GET", "PATCH", "POST"], "type": "string" }, "headers": { "type": "string" }, "contentType": { "enum": ["application/json", "application/x-www-form-urlencoded", "multipart/form-data"], "type": "string" } }, "required": ["method", "type", "url"] }, "SubmitType": { "enum": ["api", "googleForm", "googleSheet"], "type": "string" }, "FormSubmitResponse": { "type": "object", "properties": { "success": { "type": "string" }, "failed": { "type": "string" }, "custom": { "type": "array", "items": { "$ref": "#/definitions/CustomResponse" } } } }, "CustomResponse": { "type": "object", "properties": { "key": { "type": "string" }, "value": { "type": ["string", "number"] }, "popup": { "type": "string" } } }, "ProductListV1Interface": { "type": "object", "properties": { "type": { "enum": ["carousel", "grid"], "type": "string" }, "origin": { "type": "string" }, "terminalCode": { "type": "string" }, "menuItemId": { "type": "number" }, "limit": { "type": "number" }, "itemSettings": { "$ref": "#/definitions/ItemSetting" }, "responsiveSettings": { "$ref": "#/definitions/ResponsiveSetting" }, "carouselSettings": { "$ref": "#/definitions/CarouselSetting" } } }, "ItemSetting": { "type": "object", "properties": { "priceColor": { "type": "string" } } }, "ResponsiveSetting": { "type": "object", "properties": { "mobile": { "$ref": "#/definitions/ResponsiveSettingDevice" }, "desktop": { "$ref": "#/definitions/ResponsiveSettingDevice" } } }, "ResponsiveSettingDevice": { "type": "object", "properties": { "gap": { "type": "number" }, "itemsPerRow": { "type": "number" } } }, "CarouselSetting": { "type": "object", "properties": { "mobile": { "$ref": "#/definitions/CarouselSettingDevice" }, "desktop": { "$ref": "#/definitions/CarouselSettingDevice" } } }, "CarouselSettingDevice": { "type": "object", "properties": { "gap": { "type": "number" }, "crop": { "type": "boolean" }, "gridRows": { "type": "number" }, "gridCols": { "type": "number" }, "perMove": { "type": "number" }, "arrows": { "type": "boolean" }, "arrowStyle": { "type": "number" }, "pagination": { "type": "boolean" }, "paginationStyle": { "type": "number" }, "paginationColor": { "type": "string" }, "paginationPosition": { "enum": ["inside", "outside"], "type": "string" }, "autoplay": { "type": "boolean" }, "interval": { "type": "number" }, "rewind": { "type": "boolean" }, "speed": { "type": "number" }, "pauseOnHover": { "type": "boolean" }, "lazyLoad": { "type": "boolean" }, "className": { "type": "string" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } } }, "InputInterface": { "type": "object", "properties": { "inputStyle": { "$ref": "#/definitions/Style" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } } }, "PageFlipInterface": { "type": "object", "properties": { "images": { "description": "Whether the book will be stretched under the parent element or not", "type": "array", "items": { "$ref": "#/definitions/Image" } }, "size": { "enum": ["fixed", "stretch"], "type": "string" }, "width": { "type": "number" }, "height": { "type": "number" }, "minWidth": { "type": "number" }, "maxWidth": { "type": "number" }, "minHeight": { "type": "number" }, "maxHeight": { "type": "number" }, "drawShadow": { "description": "Draw shadows or not when page flipping", "type": "boolean" }, "flippingTime": { "description": "Flipping animation time", "type": "number" }, "usePortrait": { "description": "Enable switching to portrait mode", "type": "boolean" }, "startZIndex": { "description": "Initial value to z-index", "type": "number" }, "autoSize": { "description": "If this value is true, the parent element will be equal to the size of the book", "type": "boolean" }, "maxShadowOpacity": { "description": "Shadow intensity (1: max intensity, 0: hidden shadows)", "type": "number" }, "showCover": { "description": "If this value is true, the first and the last pages will be marked as hard and will be shown in single page mode", "type": "boolean" }, "mobileScrollSupport": { "description": "Disable content scrolling when touching a book on mobile devices", "type": "boolean" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } }, "required": ["autoSize", "drawShadow", "flippingTime", "height", "images", "maxShadowOpacity", "mobileScrollSupport", "showCover", "size", "startZIndex", "usePortrait", "width"] } }, "$schema": "http://json-schema.org/draft-07/schema#" };

@@ -102,0 +102,0 @@ var ContentType;

@@ -103,3 +103,3 @@ 'use strict';

const PageSettingInterfaceJSS = { "type": "object", "properties": { "widthType": { "$ref": "#/definitions/WidthTypeEnum" }, "maxWidth": { "type": "number" } }, "required": ["widthType"], "definitions": { "WidthTypeEnum": { "enum": ["auto", "fixed", "full"], "type": "string" } }, "$schema": "http://json-schema.org/draft-07/schema#" };
const PageBuilderResponseJSS = { "type": "object", "additionalProperties": { "$ref": "#/definitions/PBComponent" }, "definitions": { "WidthTypeEnum": { "enum": ["auto", "fixed", "full"], "type": "string" }, "PBComponent": { "type": "object", "properties": { "id": { "type": "string" }, "elementId": { "type": "string" }, "parentId": { "type": ["null", "string"] }, "tag": { "type": "string" }, "displayName": { "type": "string" }, "startTime": { "type": "string" }, "endTime": { "type": "string" }, "resolvedName": { "type": "string" }, "style": { "$ref": "#/definitions/Style" }, "isActive": { "type": "boolean" }, "children": { "type": "array", "items": { "type": "string" } }, "isCanvas": { "type": "boolean" }, "customAttributes": { "type": "object", "additionalProperties": {} } }, "required": ["children", "id", "isActive", "parentId", "resolvedName", "tag"] }, "Style": { "type": "object", "properties": { "color": { "type": "string" }, "fontFamily": { "type": "string" }, "fontWeight": { "type": "string" }, "margin": { "$ref": "#/definitions/Spacing" }, "padding": { "$ref": "#/definitions/Spacing" }, "border": { "$ref": "#/definitions/Border" }, "shadow": { "$ref": "#/definitions/Shadow" }, "textShadow": { "$ref": "#/definitions/TextShadow" }, "bgImageWidth": { "type": "number" }, "backgroundColor": { "type": "string" }, "backgroundImage": { "type": "string" }, "backgroundOverlay": { "type": "string" }, "backgroundOverlayType": { "enum": ["color", "gradient"], "type": "string" }, "hover": { "$ref": "#/definitions/Hover" }, "animation": { "$ref": "#/definitions/AnimationProps" }, "gap": { "type": "number" }, "alignItems": {}, "backgroundRepeat": {}, "backgroundSize": {}, "columnGap": {}, "flexDirection": {}, "flexWrap": {}, "fontSize": {}, "fontStyle": {}, "fontVariant": {}, "height": {}, "justifyContent": {}, "letterSpacing": {}, "lineHeight": {}, "marginLeft": {}, "marginRight": {}, "maxHeight": {}, "maxWidth": {}, "minHeight": {}, "minWidth": {}, "objectFit": {}, "position": {}, "rowGap": {}, "textAlign": {}, "textTransform": {}, "width": {}, "backgroundPosition": {}, "borderColor": {}, "borderRadius": {}, "borderStyle": {}, "borderWidth": {}, "textDecoration": {} }, "required": ["alignItems", "backgroundPosition", "backgroundRepeat", "backgroundSize", "borderColor", "borderRadius", "borderStyle", "borderWidth", "columnGap", "flexDirection", "flexWrap", "fontSize", "fontStyle", "fontVariant", "height", "justifyContent", "letterSpacing", "lineHeight", "marginLeft", "marginRight", "maxHeight", "maxWidth", "minHeight", "minWidth", "objectFit", "position", "rowGap", "textAlign", "textDecoration", "textTransform", "width"] }, "Spacing": { "type": "object", "properties": { "top": { "type": "number" }, "right": { "type": "number" }, "bottom": { "type": "number" }, "left": { "type": "number" }, "unit": { "enum": ["%", "px"], "type": "string" } } }, "Border": { "type": "object", "properties": { "borderStyle": { "enum": ["dashed", "dotted", "none", "solid"], "type": "string" }, "borderWidth": { "type": "number" }, "borderColor": { "type": "string" }, "borderRadius": { "type": "number" } } }, "Shadow": { "type": "object", "properties": { "color": { "type": "string" }, "x": { "type": "number" }, "y": { "type": "number" }, "blur": { "type": "number" }, "spread": { "type": "number" } } }, "TextShadow": { "type": "object", "properties": { "color": { "type": "string" }, "x": { "type": "number" }, "y": { "type": "number" }, "blur": { "type": "number" } } }, "Hover": { "type": "object", "properties": { "backgroundColor": { "type": "string" }, "borderColor": { "type": "string" }, "color": { "type": "string" }, "transparent": { "type": "number" }, "zoom": { "type": "number" } } }, "AnimationProps": { "type": "object", "properties": { "name": { "type": "string" }, "delay": { "type": "number" }, "duration": { "type": "number" }, "repeatType": { "enum": ["infinite", "number"], "type": "string" }, "repeatNumber": { "type": "number" } } } }, "$schema": "http://json-schema.org/draft-07/schema#" };
const PageBuilderResponseJSS = { "type": "object", "additionalProperties": { "$ref": "#/definitions/PBComponent" }, "definitions": { "WidthTypeEnum": { "enum": ["auto", "fixed", "full"], "type": "string" }, "PBComponent": { "type": "object", "properties": { "id": { "type": "string" }, "elementId": { "type": "string" }, "parentId": { "type": ["null", "string"] }, "tag": { "type": "string" }, "version": { "type": "string" }, "displayName": { "type": "string" }, "startTime": { "type": "string" }, "endTime": { "type": "string" }, "resolvedName": { "type": "string" }, "style": { "$ref": "#/definitions/Style" }, "isActive": { "type": "boolean" }, "children": { "type": "array", "items": { "type": "string" } }, "isCanvas": { "type": "boolean" }, "customAttributes": { "type": "object", "properties": { "section": { "$ref": "#/definitions/Section" }, "col": { "$ref": "#/definitions/Col" }, "button": { "$ref": "#/definitions/ButtonV1Interface" }, "buttonv2": { "$ref": "#/definitions/ButtonV2Interface" }, "paragraph": { "$ref": "#/definitions/ParagraphInterface" }, "heading": { "$ref": "#/definitions/HeadingInterface" }, "root": { "$ref": "#/definitions/Root" }, "icon": { "$ref": "#/definitions/IconInterface" }, "image": { "$ref": "#/definitions/Image" }, "form": { "$ref": "#/definitions/Form" }, "youtube": { "$ref": "#/definitions/Youtube" }, "spacer": { "$ref": "#/definitions/Spacer" }, "slider": { "$ref": "#/definitions/Slider<{}>" }, "divider": { "$ref": "#/definitions/DividerInterface" }, "menuItem": { "$ref": "#/definitions/MenuItemInterface" }, "menuCol": { "$ref": "#/definitions/MenuColInterface" }, "header": { "$ref": "#/definitions/HeaderInterface" }, "testimonialCarousel": { "allOf": [{ "$ref": "#/definitions/CommonAttributesInterface" }, { "$ref": "#/definitions/Omit<Slider<TestimonialItemInterface>,\"type\">" }, { "$ref": "#/definitions/TestimonialItemStyle" }] }, "box": { "$ref": "#/definitions/CommonAttributesInterface" }, "map": { "$ref": "#/definitions/MapInterface" }, "list": { "$ref": "#/definitions/ListInterface" }, "listItem": { "type": "object", "properties": {} }, "listItemIcon": { "$ref": "#/definitions/ListItemIconInterface" }, "listItemContent": { "type": "object", "properties": { "text": { "type": "string" } }, "required": ["text"] }, "accordion": { "$ref": "#/definitions/AccordionInterface" }, "accordionItem": { "$ref": "#/definitions/AccordionItemInterface" }, "accordionContent": { "$ref": "#/definitions/CommonAttributesInterface" }, "tab": { "$ref": "#/definitions/TabInterface" }, "popupv1": { "$ref": "#/definitions/PopupV1Interface" }, "formv2": { "$ref": "#/definitions/FormV2Interface" }, "productList": { "$ref": "#/definitions/ProductListV1Interface" }, "inputv1": { "$ref": "#/definitions/InputInterface" }, "pageFlip": { "$ref": "#/definitions/PageFlipInterface" } } } }, "required": ["children", "id", "isActive", "parentId", "resolvedName", "tag"] }, "Style": { "type": "object", "properties": { "color": { "type": "string" }, "fontFamily": { "type": "string" }, "fontWeight": { "type": "string" }, "margin": { "$ref": "#/definitions/Spacing" }, "padding": { "$ref": "#/definitions/Spacing" }, "border": { "$ref": "#/definitions/Border" }, "shadow": { "$ref": "#/definitions/Shadow" }, "textShadow": { "$ref": "#/definitions/TextShadow" }, "bgImageWidth": { "type": "number" }, "backgroundColor": { "type": "string" }, "backgroundImage": { "type": "string" }, "backgroundOverlay": { "type": "string" }, "backgroundOverlayType": { "enum": ["color", "gradient"], "type": "string" }, "hover": { "$ref": "#/definitions/Hover" }, "animation": { "$ref": "#/definitions/AnimationProps" }, "gap": { "type": "number" }, "alignItems": {}, "backgroundRepeat": {}, "backgroundSize": {}, "columnGap": {}, "flexDirection": {}, "flexWrap": {}, "fontSize": {}, "fontStyle": {}, "fontVariant": {}, "height": {}, "justifyContent": {}, "letterSpacing": {}, "lineHeight": {}, "marginLeft": {}, "marginRight": {}, "maxHeight": {}, "maxWidth": {}, "minHeight": {}, "minWidth": {}, "objectFit": {}, "position": {}, "rowGap": {}, "textAlign": {}, "textTransform": {}, "width": {}, "backgroundPosition": {}, "borderColor": {}, "borderRadius": {}, "borderStyle": {}, "borderWidth": {}, "textDecoration": {} }, "required": ["alignItems", "backgroundPosition", "backgroundRepeat", "backgroundSize", "borderColor", "borderRadius", "borderStyle", "borderWidth", "columnGap", "flexDirection", "flexWrap", "fontSize", "fontStyle", "fontVariant", "height", "justifyContent", "letterSpacing", "lineHeight", "marginLeft", "marginRight", "maxHeight", "maxWidth", "minHeight", "minWidth", "objectFit", "position", "rowGap", "textAlign", "textDecoration", "textTransform", "width"] }, "Spacing": { "type": "object", "properties": { "top": { "type": "number" }, "right": { "type": "number" }, "bottom": { "type": "number" }, "left": { "type": "number" }, "unit": { "enum": ["%", "px"], "type": "string" } } }, "Border": { "type": "object", "properties": { "borderStyle": { "enum": ["dashed", "dotted", "none", "solid"], "type": "string" }, "borderWidth": { "type": "number" }, "borderColor": { "type": "string" }, "borderRadius": { "type": "number" } } }, "Shadow": { "type": "object", "properties": { "color": { "type": "string" }, "x": { "type": "number" }, "y": { "type": "number" }, "blur": { "type": "number" }, "spread": { "type": "number" } } }, "TextShadow": { "type": "object", "properties": { "color": { "type": "string" }, "x": { "type": "number" }, "y": { "type": "number" }, "blur": { "type": "number" } } }, "Hover": { "type": "object", "properties": { "backgroundColor": { "type": "string" }, "borderColor": { "type": "string" }, "color": { "type": "string" }, "transparent": { "type": "number" }, "zoom": { "type": "number" } } }, "AnimationProps": { "type": "object", "properties": { "name": { "type": "string" }, "delay": { "type": "number" }, "duration": { "type": "number" }, "repeatType": { "enum": ["infinite", "number"], "type": "string" }, "repeatNumber": { "type": "number" } } }, "Section": { "type": "object", "properties": { "cols": { "type": "array", "items": { "$ref": "#/definitions/Col" } }, "verticalAlignment": { "enum": ["bottom", "center", "top"], "type": "string" }, "widthType": { "enum": ["auto", "fixed", "full"], "type": "string" } } }, "Col": { "type": "object", "properties": { "md": { "anyOf": [{ "type": "object", "properties": { "flex": { "type": "string" } }, "required": ["flex"] }, { "type": "number" }] }, "xs": { "anyOf": [{ "type": "object", "properties": { "flex": { "type": "string" } }, "required": ["flex"] }, { "type": "number" }] } } }, "ButtonV1Interface": { "type": "object", "properties": { "variant": { "enum": ["ghost", "link", "primary", "secondary"], "type": "string" }, "size": { "enum": ["default", "large", "small"], "type": "string" }, "link": { "$ref": "#/definitions/LinkInterface" }, "text": { "type": "string" }, "align": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "alignment": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "color": { "type": "string" }, "bgColor": { "type": "string" }, "iconConfig": { "type": "object", "properties": { "icon": { "$ref": "#/definitions/IconInterface" }, "position": { "enum": ["behind", "front"], "type": "string" }, "spacing": { "type": ["string", "number"] }, "show": { "type": "boolean" } } }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } }, "required": ["text"] }, "LinkInterface": { "type": "object", "properties": { "target": { "enum": ["_blank", "_self"], "type": "string" }, "linkType": { "enum": ["email", "external", "inPage", "internal", "phone"], "type": "string" }, "href": { "anyOf": [{ "$ref": "#/definitions/UrlObject" }, { "type": "string" }] }, "children": { "$ref": "#/definitions/React.ReactElement<any,string|React.JSXElementConstructor<any>>" }, "sectionMarginTop": { "type": "number" }, "as": { "anyOf": [{ "$ref": "#/definitions/UrlObject" }, { "type": "string" }] }, "replace": { "type": "boolean" }, "scroll": { "type": "boolean" }, "shallow": { "type": "boolean" }, "passHref": { "type": "boolean" }, "prefetch": { "type": "boolean" }, "locale": { "anyOf": [{ "enum": [false], "type": "boolean" }, { "type": "string" }] } }, "required": ["href"] }, "UrlObject": { "type": "object", "properties": { "auth": { "type": ["null", "string"] }, "hash": { "type": ["null", "string"] }, "host": { "type": ["null", "string"] }, "hostname": { "type": ["null", "string"] }, "href": { "type": ["null", "string"] }, "pathname": { "type": ["null", "string"] }, "protocol": { "type": ["null", "string"] }, "search": { "type": ["null", "string"] }, "slashes": { "type": ["null", "boolean"] }, "port": { "type": ["null", "string", "number"] }, "query": { "anyOf": [{ "$ref": "#/definitions/ParsedUrlQueryInput" }, { "type": ["null", "string"] }] } } }, "ParsedUrlQueryInput": { "type": "object" }, "React.ReactElement<any,string|React.JSXElementConstructor<any>>": { "type": "object", "properties": { "type": { "type": ["string", "object"] }, "props": {}, "key": { "type": ["null", "string", "number"] } }, "required": ["key", "props", "type"] }, "IconInterface": { "type": "object", "properties": { "name": { "type": "string" }, "size": { "type": "number" }, "color": { "type": "string" }, "align": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } } }, "EventInterface": { "type": "object", "properties": { "eventType": { "$ref": "#/definitions/EventType" }, "link": { "$ref": "#/definitions/LinkInterfaceV2" }, "email": { "type": "string" }, "phone": { "type": "string" }, "inPage": { "type": "string" }, "sectionMarginTop": { "type": "number" }, "openPopup": { "type": "string" }, "trackingEventName": { "type": "string" } }, "required": ["eventType"] }, "EventType": { "enum": ["email", "inPage", "internal", "link", "openPopup", "phone"], "type": "string" }, "LinkInterfaceV2": { "type": "object", "properties": { "openNewTab": { "type": "boolean" }, "href": { "anyOf": [{ "$ref": "#/definitions/UrlObject" }, { "type": "string" }] }, "nofollow": { "type": "boolean" } }, "required": ["href"] }, "ButtonV2Interface": { "type": "object", "properties": { "text": { "type": "string" }, "size": { "enum": ["default", "large", "small"], "type": "string" }, "align": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "link": { "$ref": "#/definitions/LinkInterface" }, "buttonStyle": { "$ref": "#/definitions/Style" }, "iconConfig": { "type": "object", "properties": { "icon": { "$ref": "#/definitions/IconInterface" }, "position": { "enum": ["left", "right"], "type": "string" }, "spacing": { "type": ["string", "number"] }, "show": { "type": "boolean" } } }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } } }, "ParagraphInterface": { "type": "object", "properties": { "text": { "type": "string" }, "link": { "$ref": "#/definitions/LinkInterface" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } }, "required": ["text"] }, "HeadingInterface": { "type": "object", "properties": { "text": { "type": "string" }, "link": { "$ref": "#/definitions/LinkInterface" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } }, "required": ["text"] }, "Root": { "type": "object", "properties": { "children": { "type": "array", "items": { "type": "string" } }, "pageWidthType": { "enum": ["auto", "fixed", "full"], "type": "string" }, "pageMaxWidth": { "type": "number" }, "script": { "$ref": "#/definitions/Script" }, "conversionTracking": { "$ref": "#/definitions/ConversionTracking" }, "colors": { "type": "array", "items": { "type": "string" } } } }, "Script": { "type": "object", "properties": { "headScript": { "type": "string" }, "bodyScript": { "type": "string" } } }, "ConversionTracking": { "type": "object", "properties": { "facebookPixelId": { "type": "string" }, "googleAnalyticsId": { "type": "string" }, "googleTagManagerId": { "type": "string" } } }, "Image": { "type": "object", "properties": { "hoverEffect": { "type": "string" }, "src": { "type": "string" }, "alt": { "type": "string" }, "width": { "type": "number" }, "customWidth": { "type": "number" }, "link": { "$ref": "#/definitions/LinkInterface" }, "alignment": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "googleImageParams": { "$ref": "#/definitions/GoogleImageParams" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" }, "height": { "type": "number" }, "format": { "enum": ["jpg", "png", "webp"], "type": "string" }, "stretch": { "type": "boolean" }, "crop": { "type": "boolean" } } }, "GoogleImageParams": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "format": { "enum": ["jpg", "png", "webp"], "type": "string" }, "stretch": { "type": "boolean" }, "crop": { "type": "boolean" } } }, "Form": { "type": "object", "properties": { "name": { "type": "string" }, "formItems": { "type": "array", "items": { "$ref": "#/definitions/FormItem" } }, "buttonWidth": { "type": "number" }, "submitButton": { "allOf": [{ "$ref": "#/definitions/Omit<ButtonV1Interface,\"link\">" }, { "type": "object", "properties": { "commonStyle": { "$ref": "#/definitions/Style" } } }] }, "actionAfterSubmit": { "type": "array", "items": { "enum": ["api", "sheet"], "type": "string" } }, "settingAfterSubmit": { "type": "object", "properties": { "api": { "$ref": "#/definitions/ApiSetting" }, "sheet": { "$ref": "#/definitions/GoogleSheetSetting" } } }, "columnGap": { "type": "number" }, "rowGap": { "type": "number" }, "showLabel": { "type": "boolean" }, "labelColor": { "type": "string" }, "errorColor": { "type": "string" }, "inputSize": { "enum": ["default", "large", "small"], "type": "string" }, "captcha": { "$ref": "#/definitions/CaptchaSetting" }, "onSubmit": { "type": "object" }, "responsePopup": { "type": "array", "items": { "$ref": "#/definitions/FormResponsePopup" } }, "sheetResponsePopup": { "$ref": "#/definitions/Popup" }, "submitWithParams": { "type": "boolean" }, "ggSheetKey": {} }, "required": ["formItems", "submitButton"] }, "FormItem": { "type": "object", "properties": { "type": { "$ref": "#/definitions/InputType" }, "name": { "type": "string" }, "label": { "type": "string" }, "showLabel": { "type": "boolean" }, "placeholder": { "type": "string" }, "required": { "type": "boolean" }, "markRequired": { "type": "boolean" }, "columnWidth": { "type": "number" }, "additionOptions": { "type": "object", "properties": { "number": { "$ref": "#/definitions/NumberF" }, "textarea": { "$ref": "#/definitions/TextArea" }, "radioGroup": { "$ref": "#/definitions/Group" }, "checkboxGroup": { "$ref": "#/definitions/Group" }, "select": { "$ref": "#/definitions/Select" }, "dateTime": { "$ref": "#/definitions/DateTime" }, "hidden": { "$ref": "#/definitions/Hidden" }, "text": { "type": "object", "properties": {}, "additionalProperties": true }, "email": { "type": "object", "properties": {}, "additionalProperties": true }, "phoneNumber": { "type": "object", "properties": {}, "additionalProperties": true } } } }, "required": ["name", "type"] }, "InputType": { "enum": ["checkboxGroup", "dateTime", "email", "hidden", "number", "phoneNumber", "radioGroup", "select", "text", "textarea"], "type": "string" }, "NumberF": { "type": "object", "properties": { "min": { "type": "number" }, "max": { "type": "number" } } }, "TextArea": { "type": "object", "properties": { "rows": { "type": "number" } } }, "Group": { "type": "object", "properties": { "options": { "type": "array", "items": { "$ref": "#/definitions/Option" } }, "inline": { "type": "boolean" }, "valueType": { "enum": ["boolean", "number", "string"], "type": "string" } } }, "Option": { "type": "object", "properties": { "label": { "type": "string" }, "value": { "type": "string" } }, "required": ["label", "value"] }, "Select": { "type": "object", "properties": { "allowClear": { "type": "boolean" }, "options": { "type": "array", "items": { "$ref": "#/definitions/Option" } }, "multiple": { "type": "boolean" }, "valueType": { "enum": ["boolean", "number", "string"], "type": "string" } } }, "DateTime": { "type": "object", "properties": { "type": { "enum": ["date", "datetime", "time"], "type": "string" } } }, "Hidden": { "type": "object", "properties": { "defaultValue": { "type": "string" }, "valueType": { "enum": ["boolean", "number", "string"], "type": "string" } } }, "Omit<ButtonV1Interface,\"link\">": { "type": "object", "properties": { "text": { "type": "string" }, "color": { "type": "string" }, "size": { "enum": ["default", "large", "small"], "type": "string" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" }, "variant": { "enum": ["ghost", "link", "primary", "secondary"], "type": "string" }, "align": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "alignment": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "bgColor": { "type": "string" }, "iconConfig": { "type": "object", "properties": { "icon": { "$ref": "#/definitions/IconInterface" }, "position": { "enum": ["behind", "front"], "type": "string" }, "spacing": { "type": ["string", "number"] }, "show": { "type": "boolean" } } } }, "required": ["text"] }, "ApiSetting": { "type": "object", "properties": { "url": { "type": "string" } }, "required": ["url"] }, "GoogleSheetSetting": { "type": "object", "properties": { "url": { "type": "string" } }, "required": ["url"] }, "CaptchaSetting": { "type": "object", "properties": { "show": { "type": "boolean" }, "version": { "enum": ["checkboxV2", "invisibleV2", "invisibleV3"], "type": "string" }, "siteKey": { "type": "string" }, "action": { "type": "string" } } }, "FormResponsePopup": { "type": "object", "properties": { "code": { "type": ["string", "number"] }, "popup": { "$ref": "#/definitions/Popup" } }, "required": ["code"] }, "Popup": { "type": "object", "properties": { "show": { "type": "boolean" }, "toggle": { "type": "object" }, "title": { "type": "string" }, "content": { "type": "string" }, "popupButton": { "type": "array", "items": { "allOf": [{ "$ref": "#/definitions/ButtonV1Interface" }, { "type": "object", "properties": { "commonStyle": { "$ref": "#/definitions/Style" }, "hideAfterClick": { "type": "boolean" } }, "required": ["commonStyle", "hideAfterClick"] }] } }, "maskClosable": { "type": "boolean" }, "showCloseBtn": { "type": "boolean" } }, "required": ["content", "title"] }, "Youtube": { "type": "object", "properties": { "link": { "type": "string" }, "autoplay": { "type": "boolean" } }, "required": ["link"] }, "Spacer": { "type": "object", "properties": { "height": { "type": "number" } }, "required": ["height"] }, "Slider<{}>": { "type": "object", "properties": { "type": { "$ref": "#/definitions/SliderTypeEnum" }, "items": { "type": "array", "items": { "type": "object", "properties": {} } }, "slidesPerColumn": { "type": "number" }, "slidesPerView": { "type": "number" }, "slidesPerGroup": { "type": "number" }, "navigation": { "type": "boolean" }, "navigationStyle": { "type": "number" }, "pagination": { "type": "boolean" }, "paginationStyle": { "type": "number" }, "paginationColor": { "type": "string" }, "autoplay": { "type": "boolean" }, "loop": { "type": "boolean" }, "speed": { "type": "number" }, "spaceBetween": { "type": "number" }, "pauseOnMouseEnter": { "type": "boolean" }, "virtual": { "type": "boolean" } }, "required": ["items", "type"] }, "SliderTypeEnum": { "enum": ["image", "product"], "type": "string" }, "DividerInterface": { "type": "object", "properties": { "style": { "$ref": "#/definitions/DividerStyleEnum" }, "type": { "enum": ["icon", "text"], "type": "string" }, "align": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "weight": { "$ref": "#/definitions/UnitSizeInterface" }, "gap": { "$ref": "#/definitions/UnitSizeInterface" }, "textConfig": { "type": "object", "properties": { "text": { "type": "string" }, "align": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "spacing": { "$ref": "#/definitions/UnitSizeInterface" }, "color": { "type": "string" } } }, "iconConfig": { "type": "object", "properties": { "icon": { "$ref": "#/definitions/IconInterface" }, "align": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "spacing": { "$ref": "#/definitions/UnitSizeInterface" } } } }, "required": ["style"] }, "DividerStyleEnum": { "enum": ["dashed", "dotted", "double", "solid"], "type": "string" }, "UnitSizeInterface": { "type": "object", "properties": { "unit": { "$ref": "#/definitions/UnitEnum" }, "size": { "type": "number" } }, "required": ["unit"] }, "UnitEnum": { "enum": ["%", "px"], "type": "string" }, "MenuItemInterface": { "type": "object", "properties": { "type": { "$ref": "#/definitions/MenuItemType" }, "itemData": { "anyOf": [{ "$ref": "#/definitions/HeadingInterface" }, { "$ref": "#/definitions/ButtonV1Interface" }] } }, "required": ["itemData", "type"] }, "MenuItemType": { "enum": ["button", "link"], "type": "string" }, "MenuColInterface": { "type": "object", "properties": { "type": { "enum": ["left", "right"], "type": "string" } } }, "HeaderInterface": { "type": "object", "properties": { "widthType": { "enum": ["auto", "fixed", "full"], "type": "string" }, "alignment": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "toggle": { "$ref": "#/definitions/ToggleInterface" } } }, "ToggleInterface": { "type": "object", "properties": { "icon": { "type": "object", "properties": { "size": { "type": "number" }, "color": { "type": "string" } } } }, "required": ["icon"] }, "CommonAttributesInterface": { "type": "object", "properties": { "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } } }, "Omit<Slider<TestimonialItemInterface>,\"type\">": { "type": "object", "properties": { "navigation": { "type": "boolean" }, "items": { "type": "array", "items": { "$ref": "#/definitions/TestimonialItemInterface" } }, "pagination": { "type": "boolean" }, "paginationStyle": { "type": "number" }, "paginationColor": { "type": "string" }, "autoplay": { "type": "boolean" }, "speed": { "type": "number" }, "slidesPerColumn": { "type": "number" }, "slidesPerView": { "type": "number" }, "slidesPerGroup": { "type": "number" }, "navigationStyle": { "type": "number" }, "loop": { "type": "boolean" }, "spaceBetween": { "type": "number" }, "pauseOnMouseEnter": { "type": "boolean" }, "virtual": { "type": "boolean" } }, "required": ["items"] }, "TestimonialItemInterface": { "type": "object", "properties": { "image": { "$ref": "#/definitions/Image" }, "content": { "type": "string" }, "name": { "type": "string" }, "title": { "type": "string" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } } }, "TestimonialItemStyle": { "type": "object", "properties": { "imageStyle": { "allOf": [{ "$ref": "#/definitions/Style" }, { "type": "object", "properties": { "alignment": { "enum": ["center", "justify", "left", "right"], "type": "string" } } }] }, "contentStyle": { "$ref": "#/definitions/Style" }, "nameStyle": { "$ref": "#/definitions/Style" }, "titleStyle": { "$ref": "#/definitions/Style" }, "width": { "type": "number" }, "alignment": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "layout": { "enum": ["imageAbove", "imageInline", "imageLeft", "imageRight", "imageStacked"], "type": "string" }, "skin": { "enum": ["bubble", "default"], "type": "string" }, "bubbleStyle": { "$ref": "#/definitions/Style" } } }, "MapInterface": { "type": "object", "properties": { "address": { "type": "string" }, "zoom": { "type": "number" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } } }, "ListInterface": { "type": "object", "properties": { "icon": { "$ref": "#/definitions/IconInterface" }, "iconStyle": { "$ref": "#/definitions/Style" }, "content": { "type": "object", "properties": { "text": { "type": "string" } }, "required": ["text"] }, "contentStyle": { "$ref": "#/definitions/Style" }, "divider": { "$ref": "#/definitions/DividerInterface" }, "dividerStyle": { "$ref": "#/definitions/Style" }, "itemStyle": { "$ref": "#/definitions/Style" } } }, "ListItemIconInterface": { "type": "object", "properties": { "icon": { "$ref": "#/definitions/IconInterface" } } }, "AccordionInterface": { "type": "object", "properties": { "itemStyle": { "$ref": "#/definitions/Style" }, "titleStyle": { "$ref": "#/definitions/Style" }, "duration": { "type": "number" }, "icon": { "$ref": "#/definitions/AccordionIcon" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" }, "headerStyle": { "$ref": "#/definitions/Style" }, "contentStyle": { "$ref": "#/definitions/Style" }, "contentAlign": { "enum": ["center", "justify", "left", "right"], "type": "string" } } }, "AccordionIcon": { "type": "object", "properties": { "activeName": { "type": "string" }, "align": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "name": { "type": "string" }, "size": { "type": "number" }, "color": { "type": "string" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } } }, "AccordionItemInterface": { "type": "object", "properties": { "icon": { "$ref": "#/definitions/AccordionIcon" }, "title": { "type": "string" }, "itemKey": { "type": "string" }, "headerStyle": { "$ref": "#/definitions/Style" }, "contentStyle": { "$ref": "#/definitions/Style" }, "contentAlign": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } } }, "TabInterface": { "type": "object", "properties": { "tabs": { "type": "array", "items": { "$ref": "#/definitions/TabItemInterface" } }, "type": { "enum": ["button", "card", "line"], "type": "string" }, "activeColor": { "type": "string" }, "textColor": { "type": "string" }, "alignment": { "enum": ["center", "justify", "left", "right"], "type": "string" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } } }, "TabItemInterface": { "type": "object", "properties": { "id": { "type": "string" }, "title": { "type": "string" }, "isActive": { "type": "boolean" }, "type": { "enum": ["button", "card", "line"], "type": "string" }, "activeColor": { "type": "string" }, "textColor": { "type": "string" }, "alignment": { "enum": ["center", "justify", "left", "right"], "type": "string" } }, "required": ["title"] }, "PopupV1Interface": { "type": "object", "properties": { "position": { "enum": ["bottomCenter", "bottomLeft", "bottomRight", "centerLeft", "centerRight", "default", "topCenter", "topLeft", "topRight"], "type": "string" }, "displayOnExitPage": { "type": "boolean" }, "displayOnVisitPage": { "type": "boolean" }, "displayCloseButton": { "type": "boolean" }, "displayOnScrollTo": { "type": "string" }, "delay": { "type": "number" }, "closeIcon": { "$ref": "#/definitions/IconInterface" }, "maskStyle": { "$ref": "#/definitions/Style" }, "maskClosable": { "type": "boolean" }, "name": { "type": "string" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } } }, "FormV2Interface": { "type": "object", "properties": { "submits": { "type": "array", "items": { "$ref": "#/definitions/FormSubmit" } }, "hiddenFields": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "value": { "type": "string" } }, "required": ["name", "value"] } }, "formStyle": { "$ref": "#/definitions/Style" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } }, "required": ["hiddenFields", "submits"] }, "FormSubmit": { "type": "object", "properties": { "type": { "$ref": "#/definitions/SubmitType" }, "url": { "type": "string" }, "response": { "$ref": "#/definitions/FormSubmitResponse" }, "method": { "enum": ["GET", "PATCH", "POST"], "type": "string" }, "headers": { "type": "string" }, "contentType": { "enum": ["application/json", "application/x-www-form-urlencoded", "multipart/form-data"], "type": "string" } }, "required": ["method", "type", "url"] }, "SubmitType": { "enum": ["api", "googleForm", "googleSheet"], "type": "string" }, "FormSubmitResponse": { "type": "object", "properties": { "success": { "type": "string" }, "failed": { "type": "string" }, "custom": { "type": "array", "items": { "$ref": "#/definitions/CustomResponse" } } } }, "CustomResponse": { "type": "object", "properties": { "key": { "type": "string" }, "value": { "type": ["string", "number"] }, "popup": { "type": "string" } } }, "ProductListV1Interface": { "type": "object", "properties": { "type": { "enum": ["carousel", "grid"], "type": "string" }, "origin": { "type": "string" }, "terminalCode": { "type": "string" }, "menuItemId": { "type": "number" }, "limit": { "type": "number" }, "itemSettings": { "$ref": "#/definitions/ItemSetting" }, "responsiveSettings": { "$ref": "#/definitions/ResponsiveSetting" }, "carouselSettings": { "$ref": "#/definitions/CarouselSetting" } } }, "ItemSetting": { "type": "object", "properties": { "priceColor": { "type": "string" } } }, "ResponsiveSetting": { "type": "object", "properties": { "mobile": { "$ref": "#/definitions/ResponsiveSettingDevice" }, "desktop": { "$ref": "#/definitions/ResponsiveSettingDevice" } } }, "ResponsiveSettingDevice": { "type": "object", "properties": { "gap": { "type": "number" }, "itemsPerRow": { "type": "number" } } }, "CarouselSetting": { "type": "object", "properties": { "mobile": { "$ref": "#/definitions/CarouselSettingDevice" }, "desktop": { "$ref": "#/definitions/CarouselSettingDevice" } } }, "CarouselSettingDevice": { "type": "object", "properties": { "gap": { "type": "number" }, "crop": { "type": "boolean" }, "gridRows": { "type": "number" }, "gridCols": { "type": "number" }, "perMove": { "type": "number" }, "arrows": { "type": "boolean" }, "arrowStyle": { "type": "number" }, "pagination": { "type": "boolean" }, "paginationStyle": { "type": "number" }, "paginationColor": { "type": "string" }, "paginationPosition": { "enum": ["inside", "outside"], "type": "string" }, "autoplay": { "type": "boolean" }, "interval": { "type": "number" }, "rewind": { "type": "boolean" }, "speed": { "type": "number" }, "pauseOnHover": { "type": "boolean" }, "lazyLoad": { "type": "boolean" }, "className": { "type": "string" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } } }, "InputInterface": { "type": "object", "properties": { "inputStyle": { "$ref": "#/definitions/Style" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } } }, "PageFlipInterface": { "type": "object", "properties": { "images": { "description": "Whether the book will be stretched under the parent element or not", "type": "array", "items": { "$ref": "#/definitions/Image" } }, "size": { "enum": ["fixed", "stretch"], "type": "string" }, "width": { "type": "number" }, "height": { "type": "number" }, "minWidth": { "type": "number" }, "maxWidth": { "type": "number" }, "minHeight": { "type": "number" }, "maxHeight": { "type": "number" }, "drawShadow": { "description": "Draw shadows or not when page flipping", "type": "boolean" }, "flippingTime": { "description": "Flipping animation time", "type": "number" }, "usePortrait": { "description": "Enable switching to portrait mode", "type": "boolean" }, "startZIndex": { "description": "Initial value to z-index", "type": "number" }, "autoSize": { "description": "If this value is true, the parent element will be equal to the size of the book", "type": "boolean" }, "maxShadowOpacity": { "description": "Shadow intensity (1: max intensity, 0: hidden shadows)", "type": "number" }, "showCover": { "description": "If this value is true, the first and the last pages will be marked as hard and will be shown in single page mode", "type": "boolean" }, "mobileScrollSupport": { "description": "Disable content scrolling when touching a book on mobile devices", "type": "boolean" }, "id": { "type": "string" }, "commonStyle": { "$ref": "#/definitions/Style" }, "event": { "$ref": "#/definitions/EventInterface" } }, "required": ["autoSize", "drawShadow", "flippingTime", "height", "images", "maxShadowOpacity", "mobileScrollSupport", "showCover", "size", "startZIndex", "usePortrait", "width"] } }, "$schema": "http://json-schema.org/draft-07/schema#" };

@@ -106,0 +106,0 @@ exports.ContentType = void 0;

/// <reference types="node" />
import { PageFlipInterface } from './components/pageFlip';
import { FormV2Interface } from './components/form';
import { HeadingInterface } from './components/heading';

@@ -7,3 +9,5 @@ import { Alignment, VerticalAlignment, DSSize, DividerStyleEnum, DividerTypeEnum } from '../shared';

import { UrlObject } from 'url';
import { ButtonV1Interface } from './components';
import { ButtonV1Interface, ButtonV2Interface, InputInterface, ParagraphInterface, TabInterface, ProductListV1Interface } from './components';
import { PopupV1Interface } from './components/popup';
import { MapInterface } from './components/map';
export declare enum LinkType {

@@ -472,2 +476,3 @@ inPage = "inPage",

tag: string;
version?: string;
displayName?: string;

@@ -482,3 +487,35 @@ startTime?: string;

customAttributes?: {
[key: string]: any;
section?: Section;
col?: Col;
button?: ButtonV1Interface;
buttonv2?: ButtonV2Interface;
paragraph?: ParagraphInterface;
heading?: HeadingInterface;
root?: Root;
icon?: IconInterface;
image?: Image;
form?: Form;
youtube?: Youtube;
spacer?: Spacer;
slider?: Slider;
divider?: DividerInterface;
menuItem?: MenuItemInterface;
menuCol?: MenuColInterface;
header?: HeaderInterface;
testimonialCarousel?: TestimonialCarouselInterface;
box?: BoxInterface;
map?: MapInterface;
list?: ListInterface;
listItem?: ListItemInterface;
listItemIcon?: ListItemIconInterface;
listItemContent?: ListItemContentInterface;
accordion?: AccordionInterface;
accordionItem?: AccordionItemInterface;
accordionContent?: AccordionContentInterface;
tab?: TabInterface;
popupv1?: PopupV1Interface;
formv2?: FormV2Interface;
productList?: ProductListV1Interface;
inputv1?: InputInterface;
pageFlip?: PageFlipInterface;
};

@@ -485,0 +522,0 @@ }

{
"name": "@teko-builder/types",
"version": "0.1.3",
"version": "0.1.4",
"description": "Utility types",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -21,2 +21,3 @@ import { CommonAttributesInterface } from '../interfaces';

className?: string;
crop?: boolean;
}

@@ -1199,2 +1199,3 @@ /* eslint no-use-before-define: 0 */

gap: { type: 'number' },
crop: { type: 'boolean' },
gridRows: { type: 'number' },

@@ -1201,0 +1202,0 @@ gridCols: { type: 'number' },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc