A function that takes any value and produces a diff between that value and the value the node is being compared to.
This can be used to compute a diff optimistically.
This is marked as unstable because the API may need to evolve as we iterate on the advanced version control functionality. It will be stabilised when that project has matured.
Whether the item has changes in a draft.
The children of the item.
Whether the item is collapsed.
Whether the item is collapsible.
OptionalcompareThe value the node is currently being compared to. This is taken from the upstream version, if the document has an upstream version. Otherwise, it's taken from the document's current value.
You can use the hasUpstreamVersion prop to determine whether the document has an upstream
version.
The description of the item.
OptionalfocusedWhether the item is focused.
Whether the document has an upstream version.
The index of the item.
The ID of the input element.
BetainputThe level of the item.
The function to call when the item loses focus.
Callback for when the item is closed.
Callback for when the item is collapsed.
BetaonCallback for when the item is expanded.
The function to call when the item receives focus.
BetaonCallback for when the item is opened.
The function to call when the item is removed.
Whether the item is open.
The schema type of the parent array.
The path of the item.
BetapresenceOptionalreadWhether the item is read-only.
The function to call to render the default item. See ItemProps
The schema type of the object.
The title of the item.
The validation markers for the item.
The value of the item.
Props for the ObjectItem component.