Plugins
Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0
Hooks and Utilities
Use DARTWIC runtime state and shared helper functions from plugin UI code.
| Export | Import path | Description |
|---|---|---|
| cn | @dartwic/interface-sdk/utils | Combines conditional class values with the host’s Tailwind conflict resolution. |
| useBottomContextPanel | @dartwic/interface-sdk/hooks | Controls the shared bottom context panel. |
| useChannelDropTarget | @dartwic/interface-sdk/hooks | Register a handler for channel drops with optional host drop-target settings. |
| useChannelStatusNames | @dartwic/interface-sdk/hooks | Read status names for the supplied channel value paths. |
| useClientInfo | @dartwic/interface-sdk/hooks | Current client identity, username, and administrator state. |
| useConfigurableInput | @dartwic/interface-sdk/hooks | Evaluate serialized configurable-input state through the host hook. |
| useConnectedClients | @dartwic/interface-sdk/hooks | Connected-client presentation and resource-presence helpers. |
| useDartwic | @dartwic/interface-sdk/hooks | Returns the host’s shared DARTWIC React context hook result. |
| useDartwicChannelValues | @dartwic/interface-sdk/hooks | Reads the host’s live channel values. |
| useIfElseBlock | @dartwic/interface-sdk/hooks | Evaluate an if/else block using the host live-data hook. |
| useResourceNavigation | @dartwic/interface-sdk/hooks | Opens resources through the host’s docked-layout navigation. |
| useResourceParticipantVisibility | @dartwic/interface-sdk/hooks | Controls whether remote participants are shown for a resource. |