plugin-api/EntityBrowserRegistry#
entityBrowserRegistry#
EntityInfo#
Entity Browser Plugin Registry
Allows plugins to register custom entity types for the entity browser system. Plugins can provide fetch handlers, preview handlers, and current entity name getters.
Properties#
description?#
name#
EntityTypeHandler#
Properties#
fetchEntities#
Fetch all entities of this type
Returns#
Promise<EntityInfo[]>
fetchPreview?#
Fetch preview data (called when user selects in list - read-only, doesn't modify working state)
Parameters#
| Parameter | Type |
|---|---|
name |
string |
Returns#
Promise<any>
getCurrentEntityName?#
Get current entity name (for highlighting in list)
Returns#
string | undefined
icon?#
Optional icon component
isEmpty?#
Returns true when the entity has no meaningful content (skips unsaved-changes dialog)
Returns#
boolean
loadEntity#
Load an entity into working state (called when user clicks "Load" button)
Parameters#
| Parameter | Type |
|---|---|
name |
string |
Returns#
Promise<void>
previewComponent?#
Optional custom preview component