Sets the layer's zIndex to the current maximum zIndex plus 1 and re-sorts
allLayers, moving the layer to the top of the visual stack and giving it
keyboard and mouse priority. The layer object is replaced via spread, so
its elements, regionFocus, hostPage and crossPage references are
kept — element components do not remount and user state survives.
No-op when the layer is already the top layer. Modal layers are unaffected:
they live in a separate array that always renders above regular layers, so
a raised regular layer never overtakes a modal.
Raise a regular layer above all other layers.
Sets the layer's zIndex to the current maximum zIndex plus 1 and re-sorts
allLayers, moving the layer to the top of the visual stack and giving it keyboard and mouse priority. The layer object is replaced via spread, so itselements,regionFocus,hostPageandcrossPagereferences are kept — element components do not remount and user state survives.No-op when the layer is already the top layer. Modal layers are unaffected: they live in a separate array that always renders above regular layers, so a raised regular layer never overtakes a modal.