| 86 | } |
| 87 | |
| 88 | export interface TanStackDevtoolsPreactInit { |
| 89 | /** |
| 90 | * Array of plugins to be used in the devtools. |
| 91 | * Each plugin should have a `render` function that returns a Preact element or a function |
| 92 | * |
| 93 | * Example: |
| 94 | * ```jsx |
| 95 | * <TanStackDevtools |
| 96 | * plugins={[ |
| 97 | * { |
| 98 | * id: "your-plugin-id", |
| 99 | * name: "Your Plugin", |
| 100 | * render: <CustomPluginComponent />, |
| 101 | * } |
| 102 | * ]} |
| 103 | * /> |
| 104 | * ``` |
| 105 | */ |
| 106 | plugins?: Array<TanStackDevtoolsPreactPlugin> |
| 107 | /** |
| 108 | * Configuration for the devtools shell. These configuration options are used to set the |
| 109 | * initial state of the devtools when it is started for the first time. Afterwards, |
| 110 | * the settings are persisted in local storage and changed through the settings panel. |
| 111 | */ |
| 112 | config?: TanStackDevtoolsPreactConfig |
| 113 | /** |
| 114 | * Configuration for the TanStack Devtools client event bus. |
| 115 | */ |
| 116 | eventBusConfig?: ClientEventBusConfig |
| 117 | } |
| 118 | |
| 119 | // Simple portal component for Preact |
| 120 | function Portal({ |
nothing calls this directly
no outgoing calls
no test coverage detected