| 1 |
export type Image = { |
| 2 |
title: string, |
| 3 |
description?: string, |
| 4 |
altText?: string, |
| 5 |
caption?: string, |
| 6 |
extension: string, |
| 7 |
filePath?: string |
| 8 |
} |
| 9 |
|
| 10 |
export type User = { |
| 11 |
id?: string, |
| 12 |
username: string, |
| 13 |
password: string, |
| 14 |
email: string, |
| 15 |
roles?: string[], |
| 16 |
} |
| 17 |
|
| 18 |
export type LinkOptions = { |
| 19 |
targetBlank?: boolean, |
| 20 |
noFollow?: boolean, |
| 21 |
customAttributes?: {key:string, value: string }, |
| 22 |
linkTo?: boolean, |
| 23 |
linkInpSelector?: string |
| 24 |
} |
| 25 |
|
| 26 |
export type WpPage = { |
| 27 |
title: { |
| 28 |
rendered?: string, |
| 29 |
} |
| 30 |
date?: string, |
| 31 |
dateGmt?: string, |
| 32 |
guid?: string, |
| 33 |
id?: string, |
| 34 |
link?: string, |
| 35 |
modified?: string, |
| 36 |
modifiedGmt?: string, |
| 37 |
slug: string, |
| 38 |
status?: 'publish' | 'future' | 'draft' | 'pending' | 'private', |
| 39 |
type?: string, |
| 40 |
password?: string, |
| 41 |
permalinkTemplate?: string, |
| 42 |
generatedSlug?: string, |
| 43 |
parent?: string, |
| 44 |
content: string, |
| 45 |
author?: string, |
| 46 |
excerpt?: string, |
| 47 |
featuredMedia?: string, |
| 48 |
commentStatus?: string, |
| 49 |
pingStatus?: string, |
| 50 |
menuOrder?: string, |
| 51 |
meta?: string, |
| 52 |
template?: string, |
| 53 |
} |
| 54 |
|
| 55 |
export type Post = { |
| 56 |
id?: string, |
| 57 |
date?: string, |
| 58 |
dateGmt?: string, |
| 59 |
slug?: string, |
| 60 |
status?: 'publish' | 'future' | 'draft' | 'pending' | 'private', |
| 61 |
password?: string, |
| 62 |
title?: string, |
| 63 |
content?: string, |
| 64 |
author?: number, |
| 65 |
excerpt?: string, |
| 66 |
featuredMedia?: number, |
| 67 |
commentStatus?: 'open' | 'closed', |
| 68 |
pingStatus?: 'open' | 'closed', |
| 69 |
format?: 'standard' | 'aside' | 'chat' | 'gallery' | 'link' | 'image' | 'quote' | 'status' | 'video' | 'audio', |
| 70 |
meta?: string, |
| 71 |
sticky?: boolean, |
| 72 |
template?: string, |
| 73 |
tags?: number |
| 74 |
} |
| 75 |
|
| 76 |
export type WindowType = Window & { |
| 77 |
$e?: { |
| 78 |
run: ( s: string, o: object )=> unknown |
| 79 |
} |
| 80 |
wpApiSettings?: { nonce: string } |
| 81 |
}; |
| 82 |
export type BackboneType = { |
| 83 |
Model: new ( o: {title: string} )=> unknown |
| 84 |
}; |
| 85 |
|
| 86 |
export type $eType = { |
| 87 |
run: ( s: string, o: object )=> unknown |
| 88 |
} |
| 89 |
|
| 90 |
export type ElementorType = { |
| 91 |
navigator?: { |
| 92 |
isOpen: ()=> unknown |
| 93 |
}, |
| 94 |
getContainer?: ( id: string )=> unknown, |
| 95 |
config?: { |
| 96 |
initialDocument:{ |
| 97 |
id: string |
| 98 |
} |
| 99 |
}, |
| 100 |
isDeviceModeActive?: () => unknown |
| 101 |
} |
| 102 |
|
| 103 |
export type Device = 'mobile' | 'mobile_extra' | 'tablet' | 'tablet_extra' | 'laptop' | 'desktop' | 'widescreen'; |
| 104 |
|
| 105 |
export type BreakpointEditableDevice = Exclude<Device, 'desktop'>; |
| 106 |
|
| 107 |
export type GapControl = string | { |
| 108 |
column: string, |
| 109 |
row: string, |
| 110 |
unit?: string |
| 111 |
} |
| 112 |
|
| 113 |
export type ContainerType = 'flex' | 'grid'; |
| 114 |
|
| 115 |
export type ContainerPreset = |
| 116 |
| 'c100' |
| 117 |
| 'r100' |
| 118 |
| '50-50' |
| 119 |
| '33-66' |
| 120 |
| '25-25-25-25' |
| 121 |
| '25-50-25' |
| 122 |
| '50-50-50-50' |
| 123 |
| '50-50-100' |
| 124 |
| 'c100-c50-50' |
| 125 |
| '33-33-33-33-33-33' |
| 126 |
| '33-33-33-33-66' |
| 127 |
| '66-33-33-66'; |
| 128 |
|
| 129 |
export type FieldType = |
| 130 |
| 'text' |
| 131 |
| 'email' |
| 132 |
| 'textarea' |
| 133 |
| 'url' |
| 134 |
| 'tel' |
| 135 |
| 'radio' |
| 136 |
| 'select' |
| 137 |
| 'checkbox' |
| 138 |
| 'acceptance' |
| 139 |
| 'number' |
| 140 |
| 'date' |
| 141 |
| 'time' |
| 142 |
| 'upload' |
| 143 |
| 'password' |
| 144 |
| 'html' |
| 145 |
| 'hidden' |
| 146 |
| 'recaptcha' |
| 147 |
| 'recaptcha_v3' |
| 148 |
| 'honeypot' |
| 149 |
| 'step'; |
| 150 |
|
| 151 |
export type Field = { |
| 152 |
type?: FieldType; |
| 153 |
text?: string; |
| 154 |
placeholder?: string; |
| 155 |
label?: string; |
| 156 |
}; |
| 157 |
|