typograph_document_changed, fired whenever the document's content
changes — a user edit, an undo, or a redo. event.detail carries
{ reason: 'edit' | 'undo' | 'redo' }. Both the editor and the viewer fire it, so one listener
covers either product. Opening a document is deliberately not a change. Intended for driving an
auto-save, a "modified" indicator, or an enabled save button. See the Document Events page in the
documentation, which also notes the one case it does not report: changes made through host API
calls that bypass undo, such as set_userdata().document.is_changed()
answers whether the document differs from the last saved or loaded state, and
document.mark_saved() records a successful save. Undoing back to the saved state reads as
unchanged again, which a count of edits could never report. Use the event to drive an auto-save
and is_changed() for a Save button, a "modified" marker or a "discard changes?" prompt.typograph_pageelement_deselected was listed as reserved / never fired. It has been dispatched
since TYP-592;typograph_text_edit_start / _change / _stop were listed as reserved. They were deleted in
TYP-592 and no longer exist — use typograph_edit_done and typograph_textInput.
typograph_pageelement_created and _deleted really are still not dispatched, and the page now
says why: the engine cannot yet tell a user creating an element from one appearing because a
document was opened, an undo ran, or a spread was duplicated.