Configure the host
MountayaStudioHost holds everything the editor shares: the client, the tool bus, the store and every setting. MountayaStudio inside it is the editor. Everything beyond client and itineraryId sits in a named group.
The Props tab lists every member of every group.
Build the client once, over useSessionToken's session. The hook mints before the first request and renews the token before it expires, so nothing is rebuilt.
The host shows nothing until the first token lands. When another person signs in, mount the studio again under key={userId}, so their writes never ride the last person's token.
The studio shows each member what your agreement covers and their role allows. Hand the host a viewer built by usePlatformViewer, which reads that answer from Mountaya.
Three layers style the studio, in the order they win: appearance.tokens, then appearance.theme, then your own CSS on a .mtya-* class. Words come from i18n.
The host's root is the studio's frame: dialogs fill it, not the window. Give it a height with appearance.style, and pass style={{ height: "100%" }} to MountayaStudio.
MountayaStudioViewer is the same map and controls with every editing tool removed. Mount it under the host for a public page, on a token minted without user_id that keeps surface: "studio-embedded".
Chrome you mount beside MountayaStudio reads the same store and dispatches on the same bus. A sidebar next to the map drives that map.