API reference
React exports
| Export | Purpose |
|---|---|
Tungsten | schema; optional initialValues, design, config, dataSources, language, onSubmit, onSave, onStateChange, onDiagnostic and onReady. Submission may use an endpoint, a callback, or both. |
TungstenEditor | Optional initialSchema, initialValues, design, catalog, config, dataSources, language and onChange. |
TungstenLang / useTungstenLang / TungstenLanguageProvider | Display text lookup, attribute translations and per-instance language context. |
TungstenConfig / DataSources | Application transport/translation config and named source definitions. |
getAuthoringCatalog() | Promise of core registry metadata; no installed form required. |
SCHEMA_VERSION | The literal sprout. |
fieldsOf(components, state?) | Declaration-order scalar leaves; runtime state expands repeater instances. |
isGroup / isRepeater | Structural type guards. |
TungstenSchema / TungstenValues | Public schema and scalar/recursive-array value types. |
TungstenSnapshot / FormState | Evaluated schema/state/values/validity and runtime field/collection metadata. |
TungstenDesign / renderer props | Contracts for custom field, group, repeater and form implementations. |
AuthoringCatalog / descriptor types | Field, validator, action and renderer settings descriptions. |
Default design
Import the default design or individual renderers from @myoon/tungsten/react/design/tungsten. Static CSS is available at @myoon/tungsten/react/design/tungsten.css. The Examples chapter lets you try the shipped components, asynchronous loading, and language switching.
Native core
SchemaCompiler compiles scalar/group forms using registered FieldLibrary and GroupRenderLibrary. RepeaterForm::load initializes collection forms using FormData and optional render registries. It exposes load_values, add, remove, reorder, process_patch, validate_all, values, state and schema. Engine’s generic add_fields/remove_fields/reorder_fields/update_structure APIs preserve surviving handles/state.
AuthoringCatalog::from_registries reflects those same libraries. WASM exposes get_catalog and form lifecycle/structure methods; the React adapter sends serialized FIFO worker commands.
Sprout scope
Tungsten Sprout includes text, number, boolean, select, file and date/time fields, groups, nested repeaters, explicit field references, the React integration, Tungsten, Bootstrap and Material designs and the self-hosted editor. Rules can reference a particular repeater item or the current item. Conditions across all items, such as “any item matches” or “every item matches”, are not supported yet. Angular remains outside this release.
Contact
Email contact@myoon.sk with your schema, expected behavior, and a minimal reproduction.