import { A as ApiViolation, C as SettingsFieldType, D as DashboardPanelTarget, E as DashboardCard, F as createSettingsQueryClient, L as louiseQueryKey, M as apiErrorMessage, N as apiGet, O as OverviewData, P as apiSend, R as louiseQueryKeys, S as SettingsFieldGroup, T as DashboardApi, _ as LinkRow, a as PanelActionsProvider, b as SettingsField, c as CollectionTab, d as BuiltInPageRef, f as PageRow, g as LinkListEditor, h as ImageField, i as PanelActionsApi, k as ApiErrorBody, m as PagesPanel, n as DrawerFooter, o as SaveStatus, p as PageTemplate, r as PanelAction, s as usePanelActions, t as ActionKind, v as MediaUrlPicker, w as CardStatus, x as SettingsFieldDef, y as Section } from "../../panel-actions-BoKPAUiW.js"; import { t as OgCardOptions } from "../../og-card-3fwMvrJq.js"; import { JSX } from "solid-js"; //#region src/client/states.d.ts /** * A loading placeholder in the shape of what's coming: list rows, a grid of * tiles, or a panel of text lines. The container is `aria-busy`, and its label * ("Loading pages") is the text a screen reader hears. The shimmer stops under * `prefers-reduced-motion`. */ declare function Skeleton(props: { /** What's loading, read to a screen reader: "Loading pages". */ label: string; /** The shape of the content. Default `rows`. */ shape?: "rows" | "grid" | "panel"; /** How many rows, tiles, or lines. Default 3. */ count?: number; }): JSX.Element; /** Nothing here yet, and optionally the one thing to do about it. */ declare function EmptyState(props: { /** Plain words: "No pages yet." */ message: string; /** The next step, such as "New page". */ action?: { label: string; onClick: () => void; }; }): JSX.Element; /** * Something failed, and the way out. `onRetry` is required: a failure view * with nothing to do about it shouldn't be expressible. The message sits in a * `role="alert"` region that mounts empty and fills a tick later. */ declare function ErrorState(props: { /** What failed and what's still true: "Couldn't load your pages." Pass * `apiErrorMessage(error, fallback)` for an API failure. */ message: string; onRetry: () => void; /** Default "Try again". */ retryLabel?: string; }): JSX.Element; /** * A field-level message. It's always in the page, empty while there's nothing * to say, so setting `message` is announced. Point the field's * `aria-describedby` at `id`. */ declare function InlineError(props: { id: string; message: string | null | undefined; }): JSX.Element; //#endregion //#region src/client/editor-events.d.ts /** Fired by the drawer's History icon to open the sections **version-history * drawer**. History is deliberately NOT a Settings panel: * versions are per-PAGE and the sections surface mounts independently of * `mountSettings`, so the drawer stays on the sections side and only the trigger * moved into Settings. */ declare const OPEN_HISTORY_EVENT = "louise:open-history"; /** Fired by `mountSettings` so an already-mounted sections surface can drop its own * fallback History button. The two mount in either order—a sections surface that * mounts second instead detects `#louise-drawer-root` directly. */ declare const SETTINGS_READY_EVENT = "louise:settings-ready"; /** Set on `` by a mounted sections surface to advertise that a version-history * drawer exists to open. Without it the drawer's History icon would be a dead * button on hosts that mount Settings but no sections surface. */ declare const HISTORY_READY_ATTR = "data-louise-history"; //#endregion //#region src/client/settings/shell.d.ts /** Event the edit-bar's Settings action fires to open Louise Settings. */ declare const OPEN_SETTINGS_EVENT = "louise:open-settings"; interface SettingsConfig { /** Editor display name shown in the Louise Settings header. */ userName: string; /** Site-registered collection tabs (bottom group). The framework panels * (Pages/Media/Settings) are fixed and shell-owned, not part of this list. */ tabs?: CollectionTab[]; /** Code-defined routes listed in the framework Pages panel. */ builtInPages?: BuiltInPageRef[]; /** Starter layouts offered under "New page from template" in the Pages panel. */ pageTemplates?: PageTemplate[]; /** Match the Pages panel's live share-card preview to the site's real OG card * (brand, colours, footer, font). Omit for the toolkit's default card; pass * `false` when the site renders no cards. */ ogCard?: OgCardOptions | false; /** Override which framework Settings groups render. Omit for the defaults; * pass a subset (or `[]`) so a site whose settings don't map to * `siteSettingsColumns` shows no empty base fields—its config lives in * `settingsExtension` instead. */ settingsBaseGroups?: SettingsFieldGroup[]; /** Site-specific settings groups rendered inside the framework Settings panel. */ settingsExtension?: SettingsFieldGroup[]; /** Bespoke Settings sections (for example, passkey enrollment) that self-persist. */ settingsExtras?: () => JSX.Element; /** Show the Users panel (louise editor/admin management) in the top strip. * Opt-in: wire `editorsRoute` server-side for it to talk to. */ users?: boolean; /** Override the Users panel editors endpoint. Default `/api/louise/editors`. */ usersEndpoint?: string; /** Owner Home dashboard (#108). Omit for the built-in cards only. */ dashboard?: { /** Site cards appended to the grid (rendered alongside the built-ins). */ cards?: DashboardCard[]; /** Hide built-in cards by id, for example, `["health"]`. */ hide?: string[]; /** Override the health-detail endpoint the Health drill-in reads. * Default `/api/louise/health` (wire `healthRoute` server-side). */ healthEndpoint?: string; /** How old the last health check can get, in milliseconds, before the Health * panel marks it out of date. Default 36 hours (`HEALTH_STALE_AFTER_MS` from * `louise-toolkit/health`), which suits a daily scan. */ healthStaleAfterMs?: number; }; /** `false` → open on Pages (no Home landing), as before. Default `true`. */ home?: boolean; } declare function Settings(props: SettingsConfig): JSX.Element; /** * Mount the Louise Settings shell: inject the Louise stylesheet, create the shared * QueryClient, and render into a body-appended root. Idempotent—a second call * is a no-op (soft-navigation re-runs). Returns nothing; Louise Settings opens * on the {@link OPEN_SETTINGS_EVENT}. */ declare function mountSettings(config: SettingsConfig): void; //#endregion //#region src/client/settings/dashboard/Card.d.ts declare function Card(props: { /** Card heading, for example, "Content", "Inbox". */ title: string; /** Drives the status dot; the summary header aggregates the same value. */ status?: CardStatus; /** The card's single verb—Publish / Reply / Fix / Review. Omit for none. */ action?: { label: string; onClick: () => void; }; /** The plain-language line ("3 pages have unpublished changes"). */ children: JSX.Element; }): JSX.Element; //#endregion //#region src/client/settings/dashboard/cards.d.ts /** The framework's built-in dashboard cards, in default order. A site can hide * any by id (`dashboard.hide`) and append its own (`dashboard.cards`). */ declare const BUILTIN_CARDS: DashboardCard[]; //#endregion //#region src/client/settings/dashboard/health-panel.d.ts declare function HealthPanel(props: { navigate: DashboardApi["open"]; endpoint?: string; /** Endpoint for the one-click alt backfill. Default `/api/louise/media/generate-alt`. */ fixAltEndpoint?: string; /** Endpoint for the one-click SEO backfill. Default `/api/louise/pages/generate-seo`. */ fixSeoEndpoint?: string; /** The media route, where an accepted description is saved. Default `/api/louise/media`. */ mediaEndpoint?: string; /** How old the last check can get, in milliseconds, before the panel marks it * out of date. Default {@link HEALTH_STALE_AFTER_MS} (36 hours), which suits a * daily scan; raise it for a scan that runs less often. */ staleAfterMs?: number; }): JSX.Element; //#endregion //#region src/client/settings/dashboard/home-panel.d.ts declare function HomePanel(props: { cards: DashboardCard[]; navigate: DashboardApi["open"]; }): import("solid-js").JSX.Element; //#endregion //#region src/client/settings/media-panel.d.ts /** A tracked media asset (a `media` table row + its resolved public `url`). */ interface MediaItem { key: string; content_type?: string; size?: number; url: string; /** Asset-level accessibility description (the default reused wherever the * asset appears). Editable in the panel; NULL until set. */ alt?: string | null; caption?: string | null; width?: number | null; height?: number | null; } declare function MediaPanel(): import("solid-js").JSX.Element; //#endregion //#region src/client/settings/settings-panel.d.ts /** * The framework-common settings groups—mapped 1:1 to the owner-facing * `siteSettingsColumns`. Rendered by default; a site that only uses some of them * (or wants them reordered) passes its own selection as `baseGroups`, so no * empty framework fields show. Exported so a site can cherry-pick from them. */ declare const SETTINGS_BASE_GROUPS: SettingsFieldGroup[]; interface SettingsPanelProps { /** Override the framework base groups shown at the top. Omit for all of * {@link SETTINGS_BASE_GROUPS}; pass a subset (or reordered/edited copy) so a * site only surfaces the framework fields it actually uses. */ baseGroups?: SettingsFieldGroup[]; /** Site-specific settings groups (declarative field defs), rendered below the * base groups and persisted to `custom` via the site's declared keys. */ extension?: SettingsFieldGroup[]; /** Escape hatch for bespoke sections that manage their own persistence * (for example, a passkey enrollment section), rendered after the save action. */ extras?: () => JSX.Element; } declare function SettingsPanel(props: SettingsPanelProps): JSX.Element; //#endregion //#region src/client/settings/inquiries-panel.d.ts /** A submission row (site-defined columns; the defaults read common ones). */ type InquiryRow = Record & { id: number; }; interface InquiriesPanelProps { /** Mount path of the inquiries route. Default `/api/louise/inquiries`. */ path?: string; /** Override the per-row body (columns/labels vary per site). */ renderRow?: (row: InquiryRow) => JSX.Element; } declare function InquiriesPanel(props: InquiriesPanelProps): JSX.Element; //#endregion //#region src/client/settings/users-panel.d.ts /** An editor row as returned by `editorsRoute` GET. */ interface EditorRow { id: string; firstName?: string | null; lastName?: string | null; name: string; email: string; role?: string | null; } interface UsersPanelProps { /** Editors endpoint. Default `/api/louise/editors`. */ endpoint?: string; } declare function UsersPanel(props: UsersPanelProps): import("solid-js").JSX.Element; //#endregion export { type ActionKind, type ApiErrorBody, type ApiViolation, BUILTIN_CARDS, type BuiltInPageRef, Card, type CardStatus, type CollectionTab, type DashboardApi, type DashboardCard, type DashboardPanelTarget, DrawerFooter, type EditorRow, EmptyState, ErrorState, HISTORY_READY_ATTR, HealthPanel, HomePanel, ImageField, InlineError, InquiriesPanel, type InquiriesPanelProps, type InquiryRow, LinkListEditor, type LinkRow, type MediaItem, MediaPanel, MediaUrlPicker, OPEN_HISTORY_EVENT, OPEN_SETTINGS_EVENT, type OverviewData, type PageRow, type PageTemplate, PagesPanel, type PanelAction, type PanelActionsApi, PanelActionsProvider, SETTINGS_BASE_GROUPS, SETTINGS_READY_EVENT, type SaveStatus, Section, Settings, type SettingsConfig, SettingsField, type SettingsFieldDef, type SettingsFieldGroup, type SettingsFieldType, SettingsPanel, type SettingsPanelProps, Skeleton, UsersPanel, type UsersPanelProps, apiErrorMessage, apiGet, apiSend, createSettingsQueryClient, louiseQueryKey, louiseQueryKeys, mountSettings, usePanelActions };