@maxhealth.tech/prefab / renderer
renderer
Classes
| Class | Description |
|---|---|
| Bridge | - |
| DestroyRegistry | Tracks destroy callbacks for mounted components within a render cycle. |
Interfaces
| Interface | Description |
|---|---|
| Logger | - |
| AppOptions | - |
| PrefabApp | - |
| MountHandle | - |
| BridgeMessage | - |
| AppCapabilities | - |
| HostCapabilities | - |
| HostContext | - |
| HostTheme | - |
| ComponentNode | - |
| RenderContext | - |
| RenderResult | Result of a render function that includes a cleanup callback. |
| PrefabWireData | - |
| PrefabUpdateData | - |
| MountOptions | - |
| MountedApp | - |
| ThemeToggleOptions | - |
Type Aliases
| Type Alias | Description |
|---|---|
| LogLevel | Centralized logger — the single sink for all prefab console output. |
| DisplayMode | - |
| RenderFnReturn | - |
| RenderFn | - |
Variables
| Variable | Description |
|---|---|
| log | Default unscoped logger — [prefab] …. |
| PrefabRenderer | - |
Functions
| Function | Description |
|---|---|
| setLogLevel | - |
| getLogLevel | - |
| createLogger | Create a scoped logger. Output is prefixed [prefab] (no scope) or [prefab:<scope>], matching prefab's existing console convention. |
| validateWireFormat | Validate a wire format payload. Returns { valid: true, errors: [] } if OK, or { valid: false, errors: [...] } with details about what's wrong. |
| isValidWireFormat | Quick boolean check — returns true if data looks like valid $prefab wire format. |
| app | Create a prefab app. Auto-detects iframe vs standalone. |
| applyHostTheme | - |
| isIframe | - |
| registerComponent | Register a render function for a component type |
| createThemeToggle | Create a theme toggle button inside a prefab root element. |
References
registerPipe
Re-exports registerPipe
unregisterPipe
Re-exports unregisterPipe
listPipes
Re-exports listPipes
PipeFn
Re-exports PipeFn