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.
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.
Whether the input should display inline changes. Inline changes express how a field's value differs from its upstream version. Unlike custom diff components, inline changes is a mode that allows the input component itself to display the change in situ.
BetaelementOptionalfocusedWhether the node is focused.
Whether the document has an upstream version.
The unique identifier of the node.
The level of the node in the form hierarchy.
BetaonThe path of the node in the form hierarchy.
BetapresenceOptionalreadWhether the node is read-only.
The schema type of the node.
The validation markers of the node.
OptionalvalidationA shorthand aggregation of any validation errors the input currently have Will be falsey if no error. In the case of multiple errors it will be a newline delimited string of each error message For advanced use cases use the ´validation´ prop which contains more levels and details
The value of the node.
Hidden