The shared cell editor, or null if none. The same instance the grid and formula
bar drive. Delegates to the workbook element's getEditable().
Retrieve the studio's formula bar element, if a formula bar is shown.
The studio's live workbook — carrying its origin and display name — or null while loading /
on error / before a workbook is set. The same instance pushed via
StudioProps.onWorkbookChange, but readable on demand.
Retrieve the chrome-free workbook grid element contained by this studio.
The authoritative unsaved-changes state of the live workbook.
A synchronous, on-demand read (unlike StudioProps.onDirtyChange) — e.g. for a host (a VS Code extension) to re-check dirty immediately after an async save, where a concurrent edit may have re-dirtied the workbook between encode and write.
For runtime type checking.
A synchronous read of the current workbook-resolution WorkbookLoadState.
Re-attempt resolving the current StudioProps.document.
Saves the workbook exactly as the studio's own Save does — back to its origin, or asking where when it has none — including the studio's dialog when the write would lose something.
Optionaloptions: StudioSaveOptionsThe origin written, or null when the save was cancelled (a dismissed picker, a
declined lossy write).
The "load promise": resolves with the IWorkbook once it has loaded, rejects if the load fails.
Lets a host await the outcome of the StudioProps.workbook resolution (a promise / read options) without wiring StudioProps.onWorkbookChange + StudioProps.onDocumentError. Re-armed on each new load (and on IStudioAttributes.retry); after a load has settled it returns the settled promise. Resolves on workbook load — not the grid's first paint (StudioProps.onWorkbookLoad).
Type returned via the Studio's ref property.
Remarks
The studio root is its own DOM element that contains a workbook grid; it does not extend IWorkbookElement. See IStudioAttributes.