css
6 years ago
attributes.js
6 years ago
block.js
6 years ago
deprecated.js
6 years ago
edit.js
6 years ago
editor.scss
6 years ago
markformat.js
6 years ago
save.js
6 years ago
transforms.js
6 years ago
attributes.js
439 lines
| 1 | /* eslint-disable no-undef */ |
| 2 | export default { |
| 3 | uniqueId: { |
| 4 | type: 'string', |
| 5 | default: '', |
| 6 | }, |
| 7 | elementId: { |
| 8 | type: 'string', |
| 9 | default: '', |
| 10 | }, |
| 11 | cssClasses: { |
| 12 | type: 'string', |
| 13 | default: '', |
| 14 | }, |
| 15 | content: { |
| 16 | type: 'array', |
| 17 | source: 'children', |
| 18 | selector: 'p,h1,h2,h3,h4,h5,h6', |
| 19 | }, |
| 20 | element: { |
| 21 | type: 'string', |
| 22 | default: generateBlocksDefaults.headline.element, |
| 23 | }, |
| 24 | alignment: { |
| 25 | type: 'string', |
| 26 | default: generateBlocksDefaults.headline.alignment, |
| 27 | }, |
| 28 | alignmentTablet: { |
| 29 | type: 'string', |
| 30 | default: generateBlocksDefaults.headline.alignmentTablet, |
| 31 | }, |
| 32 | alignmentMobile: { |
| 33 | type: 'string', |
| 34 | default: generateBlocksDefaults.headline.alignmentMobile, |
| 35 | }, |
| 36 | backgroundColor: { |
| 37 | type: 'string', |
| 38 | default: generateBlocksDefaults.headline.backgroundColor, |
| 39 | }, |
| 40 | backgroundColorOpacity: { |
| 41 | type: 'number', |
| 42 | default: generateBlocksDefaults.headline.backgroundColorOpacity, |
| 43 | }, |
| 44 | textColor: { |
| 45 | type: 'string', |
| 46 | default: generateBlocksDefaults.headline.textColor, |
| 47 | }, |
| 48 | linkColor: { |
| 49 | type: 'string', |
| 50 | default: generateBlocksDefaults.headline.linkColor, |
| 51 | }, |
| 52 | linkColorHover: { |
| 53 | type: 'string', |
| 54 | default: generateBlocksDefaults.headline.linkColorHover, |
| 55 | }, |
| 56 | borderColor: { |
| 57 | type: 'string', |
| 58 | default: generateBlocksDefaults.headline.borderColor, |
| 59 | }, |
| 60 | borderColorOpacity: { |
| 61 | type: 'number', |
| 62 | default: generateBlocksDefaults.headline.borderColorOpacity, |
| 63 | }, |
| 64 | highlightTextColor: { |
| 65 | type: 'string', |
| 66 | default: generateBlocksDefaults.headline.highlightTextColor, |
| 67 | }, |
| 68 | showAdvancedTypography: { |
| 69 | type: 'boolean', |
| 70 | default: generateBlocksDefaults.headline.showAdvancedTypography, |
| 71 | }, |
| 72 | fontFamily: { |
| 73 | type: 'string', |
| 74 | default: generateBlocksDefaults.headline.fontFamily, |
| 75 | }, |
| 76 | fontFamilyFallback: { |
| 77 | type: 'string', |
| 78 | default: generateBlocksDefaults.headline.fontFamilyFallback, |
| 79 | }, |
| 80 | googleFont: { |
| 81 | type: 'boolean', |
| 82 | default: generateBlocksDefaults.headline.googleFont, |
| 83 | }, |
| 84 | googleFontVariants: { |
| 85 | type: 'string', |
| 86 | default: generateBlocksDefaults.headline.googleFontVariants, |
| 87 | }, |
| 88 | fontWeight: { |
| 89 | type: 'string', |
| 90 | default: generateBlocksDefaults.headline.fontWeight, |
| 91 | }, |
| 92 | fontSize: { |
| 93 | type: 'number', |
| 94 | default: generateBlocksDefaults.headline.fontSize, |
| 95 | }, |
| 96 | fontSizeTablet: { |
| 97 | type: 'number', |
| 98 | default: generateBlocksDefaults.headline.fontSizeTablet, |
| 99 | }, |
| 100 | fontSizeMobile: { |
| 101 | type: 'number', |
| 102 | default: generateBlocksDefaults.headline.fontSizeMobile, |
| 103 | }, |
| 104 | fontSizeUnit: { |
| 105 | type: 'string', |
| 106 | default: generateBlocksDefaults.headline.fontSizeUnit, |
| 107 | }, |
| 108 | textTransform: { |
| 109 | type: 'string', |
| 110 | default: '', |
| 111 | }, |
| 112 | lineHeight: { |
| 113 | type: 'number', |
| 114 | default: generateBlocksDefaults.headline.lineHeight, |
| 115 | }, |
| 116 | lineHeightTablet: { |
| 117 | type: 'number', |
| 118 | default: generateBlocksDefaults.headline.lineHeightTablet, |
| 119 | }, |
| 120 | lineHeightMobile: { |
| 121 | type: 'number', |
| 122 | default: generateBlocksDefaults.headline.lineHeightMobile, |
| 123 | }, |
| 124 | lineHeightUnit: { |
| 125 | type: 'string', |
| 126 | default: generateBlocksDefaults.headline.lineHeightUnit, |
| 127 | }, |
| 128 | letterSpacing: { |
| 129 | type: 'number', |
| 130 | default: generateBlocksDefaults.headline.letterSpacing, |
| 131 | }, |
| 132 | letterSpacingTablet: { |
| 133 | type: 'number', |
| 134 | default: generateBlocksDefaults.headline.letterSpacingTablet, |
| 135 | }, |
| 136 | letterSpacingMobile: { |
| 137 | type: 'number', |
| 138 | default: generateBlocksDefaults.headline.letterSpacingMobile, |
| 139 | }, |
| 140 | marginTop: { |
| 141 | type: 'string', |
| 142 | default: generateBlocksDefaults.headline.marginTop, |
| 143 | }, |
| 144 | marginRight: { |
| 145 | type: 'string', |
| 146 | default: generateBlocksDefaults.headline.marginRight, |
| 147 | }, |
| 148 | marginBottom: { |
| 149 | type: 'string', |
| 150 | default: generateBlocksDefaults.headline.marginBottom, |
| 151 | }, |
| 152 | marginLeft: { |
| 153 | type: 'string', |
| 154 | default: generateBlocksDefaults.headline.marginLeft, |
| 155 | }, |
| 156 | marginUnit: { |
| 157 | type: 'string', |
| 158 | default: generateBlocksDefaults.headline.marginUnit, |
| 159 | }, |
| 160 | marginSyncUnits: { |
| 161 | type: 'boolean', |
| 162 | default: false, |
| 163 | }, |
| 164 | marginTopTablet: { |
| 165 | type: 'string', |
| 166 | default: generateBlocksDefaults.headline.marginTopTablet, |
| 167 | }, |
| 168 | marginRightTablet: { |
| 169 | type: 'string', |
| 170 | default: generateBlocksDefaults.headline.marginRightTablet, |
| 171 | }, |
| 172 | marginBottomTablet: { |
| 173 | type: 'string', |
| 174 | default: generateBlocksDefaults.headline.marginBottomTablet, |
| 175 | }, |
| 176 | marginLeftTablet: { |
| 177 | type: 'string', |
| 178 | default: generateBlocksDefaults.headline.marginLeftTablet, |
| 179 | }, |
| 180 | marginTopMobile: { |
| 181 | type: 'string', |
| 182 | default: generateBlocksDefaults.headline.marginTopMobile, |
| 183 | }, |
| 184 | marginRightMobile: { |
| 185 | type: 'string', |
| 186 | default: generateBlocksDefaults.headline.marginRightMobile, |
| 187 | }, |
| 188 | marginBottomMobile: { |
| 189 | type: 'string', |
| 190 | default: generateBlocksDefaults.headline.marginBottomMobile, |
| 191 | }, |
| 192 | marginLeftMobile: { |
| 193 | type: 'string', |
| 194 | default: generateBlocksDefaults.headline.marginLeftMobile, |
| 195 | }, |
| 196 | paddingTop: { |
| 197 | type: 'string', |
| 198 | default: generateBlocksDefaults.headline.paddingTop, |
| 199 | }, |
| 200 | paddingRight: { |
| 201 | type: 'string', |
| 202 | default: generateBlocksDefaults.headline.paddingRight, |
| 203 | }, |
| 204 | paddingBottom: { |
| 205 | type: 'string', |
| 206 | default: generateBlocksDefaults.headline.paddingBottom, |
| 207 | }, |
| 208 | paddingLeft: { |
| 209 | type: 'string', |
| 210 | default: generateBlocksDefaults.headline.paddingLeft, |
| 211 | }, |
| 212 | paddingTopTablet: { |
| 213 | type: 'string', |
| 214 | default: generateBlocksDefaults.headline.paddingTopTablet, |
| 215 | }, |
| 216 | paddingRightTablet: { |
| 217 | type: 'string', |
| 218 | default: generateBlocksDefaults.headline.paddingRightTablet, |
| 219 | }, |
| 220 | paddingBottomTablet: { |
| 221 | type: 'string', |
| 222 | default: generateBlocksDefaults.headline.paddingBottomTablet, |
| 223 | }, |
| 224 | paddingLeftTablet: { |
| 225 | type: 'string', |
| 226 | default: generateBlocksDefaults.headline.paddingLeftTablet, |
| 227 | }, |
| 228 | paddingTopMobile: { |
| 229 | type: 'string', |
| 230 | default: generateBlocksDefaults.headline.paddingTopMobile, |
| 231 | }, |
| 232 | paddingRightMobile: { |
| 233 | type: 'string', |
| 234 | default: generateBlocksDefaults.headline.paddingRightMobile, |
| 235 | }, |
| 236 | paddingBottomMobile: { |
| 237 | type: 'string', |
| 238 | default: generateBlocksDefaults.headline.paddingBottomMobile, |
| 239 | }, |
| 240 | paddingLeftMobile: { |
| 241 | type: 'string', |
| 242 | default: generateBlocksDefaults.headline.paddingLeftMobile, |
| 243 | }, |
| 244 | paddingUnit: { |
| 245 | type: 'string', |
| 246 | default: generateBlocksDefaults.headline.paddingUnit, |
| 247 | }, |
| 248 | paddingSyncUnits: { |
| 249 | type: 'boolean', |
| 250 | default: false, |
| 251 | }, |
| 252 | borderSizeTop: { |
| 253 | type: 'string', |
| 254 | default: generateBlocksDefaults.headline.borderSizeTop, |
| 255 | }, |
| 256 | borderSizeRight: { |
| 257 | type: 'string', |
| 258 | default: generateBlocksDefaults.headline.borderSizeRight, |
| 259 | }, |
| 260 | borderSizeBottom: { |
| 261 | type: 'string', |
| 262 | default: generateBlocksDefaults.headline.borderSizeBottom, |
| 263 | }, |
| 264 | borderSizeLeft: { |
| 265 | type: 'string', |
| 266 | default: generateBlocksDefaults.headline.borderSizeLeft, |
| 267 | }, |
| 268 | borderSizeTopTablet: { |
| 269 | type: 'string', |
| 270 | default: generateBlocksDefaults.headline.borderSizeTopTablet, |
| 271 | }, |
| 272 | borderSizeRightTablet: { |
| 273 | type: 'string', |
| 274 | default: generateBlocksDefaults.headline.borderSizeRightTablet, |
| 275 | }, |
| 276 | borderSizeBottomTablet: { |
| 277 | type: 'string', |
| 278 | default: generateBlocksDefaults.headline.borderSizeBottomTablet, |
| 279 | }, |
| 280 | borderSizeLeftTablet: { |
| 281 | type: 'string', |
| 282 | default: generateBlocksDefaults.headline.borderSizeLeftTablet, |
| 283 | }, |
| 284 | borderSizeTopMobile: { |
| 285 | type: 'string', |
| 286 | default: generateBlocksDefaults.headline.borderSizeTopMobile, |
| 287 | }, |
| 288 | borderSizeRightMobile: { |
| 289 | type: 'string', |
| 290 | default: generateBlocksDefaults.headline.borderSizeRightMobile, |
| 291 | }, |
| 292 | borderSizeBottomMobile: { |
| 293 | type: 'string', |
| 294 | default: generateBlocksDefaults.headline.borderSizeBottomMobile, |
| 295 | }, |
| 296 | borderSizeLeftMobile: { |
| 297 | type: 'string', |
| 298 | default: generateBlocksDefaults.headline.borderSizeLeftMobile, |
| 299 | }, |
| 300 | icon: { |
| 301 | type: 'string', |
| 302 | source: 'html', |
| 303 | selector: '.gb-icon', |
| 304 | }, |
| 305 | hasIcon: { |
| 306 | type: 'boolean', |
| 307 | default: false, |
| 308 | }, |
| 309 | iconColor: { |
| 310 | type: 'string', |
| 311 | default: generateBlocksDefaults.headline.iconColor, |
| 312 | }, |
| 313 | iconColorOpacity: { |
| 314 | type: 'number', |
| 315 | default: generateBlocksDefaults.headline.iconColorOpacity, |
| 316 | }, |
| 317 | customIcon: { |
| 318 | type: 'boolean', |
| 319 | default: false, |
| 320 | }, |
| 321 | iconLocation: { |
| 322 | type: 'string', |
| 323 | default: generateBlocksDefaults.headline.iconLocation, |
| 324 | }, |
| 325 | iconLocationTablet: { |
| 326 | type: 'string', |
| 327 | default: generateBlocksDefaults.headline.iconLocationTablet, |
| 328 | }, |
| 329 | iconLocationMobile: { |
| 330 | type: 'string', |
| 331 | default: generateBlocksDefaults.headline.iconLocationMobile, |
| 332 | }, |
| 333 | iconVerticalAlignment: { |
| 334 | type: 'string', |
| 335 | default: generateBlocksDefaults.headline.iconVerticalAlignment, |
| 336 | }, |
| 337 | iconVerticalAlignmentTablet: { |
| 338 | type: 'string', |
| 339 | default: generateBlocksDefaults.headline.iconVerticalAlignmentTablet, |
| 340 | }, |
| 341 | iconVerticalAlignmentMobile: { |
| 342 | type: 'string', |
| 343 | default: generateBlocksDefaults.headline.iconVerticalAlignmentMobile, |
| 344 | }, |
| 345 | iconPaddingTop: { |
| 346 | type: 'string', |
| 347 | default: generateBlocksDefaults.headline.iconPaddingTop, |
| 348 | }, |
| 349 | iconPaddingRight: { |
| 350 | type: 'string', |
| 351 | default: generateBlocksDefaults.headline.iconPaddingRight, |
| 352 | }, |
| 353 | iconPaddingBottom: { |
| 354 | type: 'string', |
| 355 | default: generateBlocksDefaults.headline.iconPaddingBottom, |
| 356 | }, |
| 357 | iconPaddingLeft: { |
| 358 | type: 'string', |
| 359 | default: generateBlocksDefaults.headline.iconPaddingLeft, |
| 360 | }, |
| 361 | iconPaddingTopTablet: { |
| 362 | type: 'string', |
| 363 | default: generateBlocksDefaults.headline.iconPaddingTopTablet, |
| 364 | }, |
| 365 | iconPaddingRightTablet: { |
| 366 | type: 'string', |
| 367 | default: generateBlocksDefaults.headline.iconPaddingRightTablet, |
| 368 | }, |
| 369 | iconPaddingBottomTablet: { |
| 370 | type: 'string', |
| 371 | default: generateBlocksDefaults.headline.iconPaddingBottomTablet, |
| 372 | }, |
| 373 | iconPaddingLeftTablet: { |
| 374 | type: 'string', |
| 375 | default: generateBlocksDefaults.headline.iconPaddingLeftTablet, |
| 376 | }, |
| 377 | iconPaddingTopMobile: { |
| 378 | type: 'string', |
| 379 | default: generateBlocksDefaults.headline.iconPaddingTopMobile, |
| 380 | }, |
| 381 | iconPaddingRightMobile: { |
| 382 | type: 'string', |
| 383 | default: generateBlocksDefaults.headline.iconPaddingRightMobile, |
| 384 | }, |
| 385 | iconPaddingBottomMobile: { |
| 386 | type: 'string', |
| 387 | default: generateBlocksDefaults.headline.iconPaddingBottomMobile, |
| 388 | }, |
| 389 | iconPaddingLeftMobile: { |
| 390 | type: 'string', |
| 391 | default: generateBlocksDefaults.headline.iconPaddingLeftMobile, |
| 392 | }, |
| 393 | iconPaddingUnit: { |
| 394 | type: 'string', |
| 395 | default: generateBlocksDefaults.headline.iconPaddingUnit, |
| 396 | }, |
| 397 | iconPaddingSyncUnits: { |
| 398 | type: 'boolean', |
| 399 | default: false, |
| 400 | }, |
| 401 | iconSize: { |
| 402 | type: 'number', |
| 403 | default: generateBlocksDefaults.headline.iconSize, |
| 404 | }, |
| 405 | iconSizeTablet: { |
| 406 | type: 'number', |
| 407 | default: generateBlocksDefaults.headline.iconSizeTablet, |
| 408 | }, |
| 409 | iconSizeMobile: { |
| 410 | type: 'number', |
| 411 | default: generateBlocksDefaults.headline.iconSizeMobile, |
| 412 | }, |
| 413 | iconSizeUnit: { |
| 414 | type: 'string', |
| 415 | default: generateBlocksDefaults.headline.iconSizeUnit, |
| 416 | }, |
| 417 | inlineWidth: { |
| 418 | type: 'boolean', |
| 419 | default: generateBlocksDefaults.headline.inlineWidth, |
| 420 | }, |
| 421 | inlineWidthTablet: { |
| 422 | type: 'boolean', |
| 423 | default: generateBlocksDefaults.headline.inlineWidthTablet, |
| 424 | }, |
| 425 | inlineWidthMobile: { |
| 426 | type: 'boolean', |
| 427 | default: generateBlocksDefaults.headline.inlineWidthMobile, |
| 428 | }, |
| 429 | removeText: { |
| 430 | type: 'boolean', |
| 431 | default: generateBlocksDefaults.headline.removeText, |
| 432 | }, |
| 433 | ariaLabel: { |
| 434 | type: 'string', |
| 435 | default: generateBlocksDefaults.headline.ariaLabel, |
| 436 | }, |
| 437 | }; |
| 438 | /* eslint-enable no-undef */ |
| 439 |