Builds the template variables a surface passes to evaluateMenu for one web view. Context
keys embed the canonical upper-case project id, so the id a web view was opened with is
normalized before it is substituted into a {projectId} placeholder.
The web view's id, type and (optional) project id as the web view knows them
Returns Record<string,undefined|string>
Template variables with the project id normalized, or undefined when there is none
This function is unstable and may change or disappear without notice
Builds the template variables a surface passes to evaluateMenu for one web view. Context keys embed the canonical upper-case project id, so the id a web view was opened with is normalized before it is substituted into a
{projectId}placeholder.