Minor Changes
-
- Introduce
PlateController
as a way of accessing the active editor from an ancestor or sibling ofPlate
(see Accessing the Editor). - Add
primary
prop toPlate
(default true) - Add
isFallback
toeditor
instance (default false) - The following hooks now throw a runtime error when used outside of either a
Plate
orPlateController
, and accept adebugHookName
option to customize this error message:useIncrementVersion
useRedecorate
useReplaceEditor
useEditorMounted
(new)useEditorReadOnly
useEditorRef
useEdtiorSelection
useEditorSelector
useEditorState
useEditorVersion
useSelectionVersion
- Change the default
id
of aPlate
editor from'plate'
to a random value generated withnanoid/non-secure
- Introduce