Entries
The package has two entries and no root. Import one of them:import '@embededitor/full' fails on purpose.
There is no CSS to import. The Lite and Free packages have the same entries under their own names.
Types
Both entries export the same types. The standalone entry’s.d.ts imports nothing, not even React’s types.
Every public type carries its documentation, so your IDE shows each prop’s meaning, range and default.
Dictionaries
The built-in dictionaries are published as JSON, with every message key and its text:dictionaries.ts
Invalid Props
Invalid props never pass silently. A value the editor can’t take, a misspelt prop or a removed one shows the error screen naming it and callsonLoadError with an INVALID_PROPS error. The image still loads underneath, and the editor comes back as soon as the props are valid.
Nothing throws from a render. The one exception to the check is a lang code outside the list, which reads 'en-us'. See EmbedEditorError.
Reference
EmbedEditor
The React component.
mountEditor()
The editor inline, on any element.
openEditor()
The editor as a modal.
processImage()
Crop, resize and convert with no UI.
Commands
Run the editor from code.
Props
Every prop, its type and default.
EditState
The saved edits.
Annotation Fields
What a saved annotation holds.
EmbedEditorError
The error and its codes.