Replaces the modular UI (components, headers, panels, flyouts and popups) with imported data.
Everything is validated first (unknown types, missing item references, header placement, panel location / render); any invalid item
rejects the Promise and leaves the UI unchanged. Functions in the data are names looked up in functionMap. Items marked disabled are disabled
as with disableElements. UI.Events.MODULAR_UI_IMPORTED is triggered when done.
Replaces the modular UI (components, headers, panels, flyouts and popups) with imported data. Everything is validated first (unknown types, missing item references, header placement, panel location / render); any invalid item rejects the Promise and leaves the UI unchanged. Functions in the data are names looked up in
functionMap. Items markeddisabledare disabled as withdisableElements.UI.Events.MODULAR_UI_IMPORTEDis triggered when done.