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 current value is different to the value the node is being compared to.
The children of the item.
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.
The level of the item.
The function to call when the item loses focus.
BetaonThe function to call when the item receives focus.
BetaonThe function to call when the item is removed.
The schema type of the parent array containing the item.
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 primitive item.
The title of the item.
The validation markers for the item.
The value of the primitive item.
Props for the base item component.