Resolve the stable per-component scope used to namespace a component's
persisted user settings.
An explicit, host-supplied scope always wins (used when a host needs to
differentiate two instances of the same component spec — e.g. scope a form's
settings by the entity it edits). Otherwise the scope is derived from the
component spec's namespace + name.
The result is lowercased to avoid case-variant duplicate rows in the settings
store (per MJ's user-settings key convention).
Parameters
explicitScope: string|null|undefined
namespace: string|null|undefined
name: string|null|undefined
Returns string|null
the resolved scope, or null when no stable scope can be derived
(e.g. an unnamed component) — signaling the caller to skip persistence.
Resolve the stable per-component scope used to namespace a component's persisted user settings.
An explicit, host-supplied scope always wins (used when a host needs to differentiate two instances of the same component spec — e.g. scope a form's settings by the entity it edits). Otherwise the scope is derived from the component spec's
namespace+name.The result is lowercased to avoid case-variant duplicate rows in the settings store (per MJ's user-settings key convention).