Raw
1 /**
2 * The single top-bar slot a `LayoutComposer` portals its edit controls into
3 * while editing. The matching `LayoutCustomizerSlot` is mounted in the shell's
4 * top bar, next to the `CustomizerMenu` (the one trigger for every host).
5 */
6 export const LAYOUT_CONTROLS_LOCATION = "topbar-controls"
7
8 /**
9 * Stable identifier for each customizable host. The `CustomizerMenu` lists
10 * these, and each `LayoutComposer` claims one via its `customizeId` prop so the
11 * menu can drive it into edit mode. Add a new host by adding an id here, an
12 * entry in the menu's host list, and a composer that claims it.
13 */
14 export const CUSTOMIZE_IDS = {
15 PAGE: "page",
16 TOPBAR: "topbar",
17 MAIN_SIDEBAR: "main-sidebar",
18 SETTINGS_SIDEBAR: "settings-sidebar",
19 } as const
20
21 export type CustomizeId = (typeof CUSTOMIZE_IDS)[keyof typeof CUSTOMIZE_IDS]