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 is written in JSON Schema, with a second schema for translations. (HAXSchema, JSON Schema 2020-12, haxProperties.schema.json, haxProperties.locale.schema.json)
- A haxProperties file has these parts. (api, type, gizmo, settings, demoSchema, saveOptions, canScale, canEditSource, contentEditable, designSystem, editingElement, editMode, documentation, hideDefaultSettings)
- The gizmo is how a block appears in the block browser, search and Merlin; demoSchema is what gets inserted. (gizmo, demoSchema, HAX editor)
- Settings group fields into configure, advanced, developer and inline. (settings, settings.configure, settings.advanced, settings.developer, settings.inline)
- 34 field types in five families. (Text, Choice, Pickers, Media and files, Structure)
- The most used: textfield, boolean, select, haxupload and number. (textfield, boolean, select, haxupload, number)
- 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)
- Which elements lean on which fields.