Update the spans at the given path
Like updateText this will diff newSpans against the current state of the text at path and perform a reasonably minimal number of operations required to update the spans to the new state.
newSpans
path
Update the spans at the given path