UNPKG

drapcode-constant

Version:

Drapcode Constants

98 lines (97 loc) 3.79 kB
/** * Returns the HTML template for a 204 No Content page */ export declare const pageNotFound: () => string; /** * Gets the timezone offset in minutes from a timezone string * @param time - Timezone string in format "(GMT+X:XX)" (default: "(GMT+5:30)") * @returns The timezone offset in minutes */ export declare const getTimezoneOffset: (time?: string) => string | number; /** * Replaces non-breaking spaces with regular spaces in a string * @param str - The input string * @returns The string with non-breaking spaces replaced */ export declare const replaceNbsps: (str: string) => string; /** * Default meta tags for HTML pages */ export declare const defaultMetaTags: string[]; /** * Generates a full asset URL * @param path - The asset path * @returns The complete asset URL */ export declare const getAssetLink: (path: string) => string; export declare const defaultHeaderJS: string[]; export declare const defaultHeaderCSS: string[]; export declare const defaultFonts: string[]; export declare const brandMessage: (brand_msg: string) => string; export declare const primaryBodyJS: string[]; export declare const COLLECTION = "COLLECTION"; export declare const RECORD = "RECORD"; export declare const FILTER = "FILTER"; export declare const VALIDATION = "VALIDATION"; export declare const PAGE = "PAGE"; export declare const SNIPPET = "SNIPPET"; export declare const EVENT = "EVENT"; export declare const EXTERNAL_API = "EXTERNAL_API"; export declare const CUSTOM_COMPONENT = "CUSTOM_COMPONENT"; export declare const CUSTOM_DATA_MAPPING = "CUSTOM_DATA_MAPPING"; export declare const COLLECTION_ITEM = "COLLECTION_ITEM"; export declare const PLUGIN = "PLUGIN"; export declare const EMAIL_TEMPLATE_PER = "EMAIL_TEMPLATE"; export declare const SMS_TEMPLATE_PER = "SMS_TEMPLATE"; export declare const TOOLTIP_TEMPLATE_PER = "TOOLTIP_TEMPLATE"; export declare const DATA_SOURCE = "DATA_SOURCE"; export declare const ACTION = "ACTION"; export declare const FIELD = "FIELD"; export declare const WEBHOOK = "WEBHOOK"; export declare const BACKGROUND_TASK = "BACKGROUND_TASK"; export declare const PROJECT_VERSION = "PROJECT_VERSION"; export declare const DEVELOPER_API = "DEVELOPER_API"; export declare const DATABASE_EXPORT = "DATABASE_EXPORT"; export declare const CODE_EXPORT = "CODE_EXPORT"; export declare const LOCALIZATION = "LOCALIZATION"; export declare const PWA_CONFIG = "PWA_CONFIG"; export declare const CUSTOM_CSS = "CUSTOM_CSS"; export declare const CUSTOM_JS = "CUSTOM_JS"; export declare const HTML_THEME = "HTML_THEME"; export declare const CONSTRUCTOR = "CONSTRUCTOR"; export declare const DERIVED_FIELD = "DERIVED_FIELD"; export declare const RESOURCE = "RESOURCE"; export declare const ENVIRONMENT = "ENVIRONMENT"; export declare const ENV_VARIABLE = "ENV_VARIABLE"; export declare const APP_CONSTANT = "APP_CONSTANT"; export declare const CONSTANT = "CONSTANT"; export declare const CONSTRAINT = "CONSTRAINT"; export declare const PAGE_SNAPSHOT = "PAGE_SNAPSHOT"; export declare const SNIPPET_SNAPSHOT = "SNIPPET_SNAPSHOT"; export declare const GITHUB_EXPORT = "GITHUB_EXPORT"; export declare const PERMISSION_TYPES: ({ key: string; label: string; category: string; catgeory?: undefined; } | { key: string; label: string; catgeory: string; category?: undefined; })[]; export declare const truthyValues: (string | number | boolean)[]; export declare const falsyValues: (string | number | boolean | null | undefined)[]; export declare const SNIPPET_TYPES: { SNIPPET: string; MODAL: string; FLOATING_MODAL: string; CUSTOM_SEGMENT: string; SUB_PAGE: string; PDF_TEMPLATE: string; PAGE_LAYOUT: string; }; export declare const SNIPPET_TYPE_OPTIONS: { value: string; label: string; }[];