State inspector and import/export
A developer-facing panel and an API for exporting state as a downloadable JSON file, importing it back with validation and migration preview, and inspecting the live state with slice-level diffs. This helps support teams reproduce user issues from a shared state file.
Planned. This page shows the specification from issue #201. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A grid with the StateInspector docked below it and a sample export file available.
Expected behavior
Export downloads a file containing the versioned envelope. Importing with preview shows the migration trace, the validation report and a slice diff before the user confirms. With redaction enabled, the export is free of sensitive values.
Planned API surface
exportState({include, redact})importState(fileOrText, {preview})StateInspector componentRestoreReportAcceptance criteria
- Exported files contain the full envelope and a checksum. (pending)
- A mismatched checksum produces a warning but does not block the import. (pending)
- Preview mode makes no changes to the grid until the user confirms. (pending)
- Export applies the 'export' destination privacy policy by default. (pending)
- The inspector is excluded from production bundles unless explicitly imported. (pending)