Loading...

How an element talks to the editor

HAXSchema in parts: a JSON Schema file, 14 top-level keys, four settings groups and 34 field types.

HAXSchema

  1. HAXSchema is written in JSON Schema, with a second schema for translations. (HAXSchema, JSON Schema 2020-12, haxProperties.schema.json, haxProperties.locale.schema.json)
  2. A haxProperties file has these parts. (api, type, gizmo, settings, demoSchema, saveOptions, canScale, canEditSource, contentEditable, designSystem, editingElement, editMode, documentation, hideDefaultSettings)
  3. The gizmo is how a block appears in the block browser, search and Merlin; demoSchema is what gets inserted. (gizmo, demoSchema, HAX editor)
  4. Settings group fields into configure, advanced, developer and inline. (settings, settings.configure, settings.advanced, settings.developer, settings.inline)
  5. 34 field types in five families. (Text, Choice, Pickers, Media and files, Structure)
  6. The most used: textfield, boolean, select, haxupload and number. (textfield, boolean, select, haxupload, number)
  7. 14 field types no built element uses yet. (combo, color, date-time, monthpicker, weekpicker, timepicker, screenRecorder, code, markup, html-block, md-block, object, fieldset, tabs)
  8. Which elements lean on which fields.