Array list of modeState names.
Switch to given mode if authorized. Closes current mode and related toolbox.
Since IVION 12.2, MARK_AND_MEASURE is a transitional exception: it opens the Measurements tab in
Site Data and the Mark & measure tools flyout without changing the mode until a tool is selected.
MARK_AND_MEASURE will eventually be deprecated as a public ModeState.
The mode to switch to
OptionalonClose: () => {}
Callback when the mode is closed. For MARK_AND_MEASURE, it fires when the tools flyout closes.
This method will return the currently available modes considering the site's state (published or draft).