UNPKG

@renderx-plugins/host-sdk

Version:

Host SDK for RenderX plugins - provides conductor, event routing, and component mapping APIs

17 lines 617 B
// Standalone conductor API for @renderx/host-sdk // Provides useConductor hook and types without host dependencies import "./types.js"; // Load global declarations export function useConductor() { if (typeof window === "undefined") { // Node/SSR fallback - return mock conductor return { play: async () => ({}), }; } const { conductor } = window.renderxCommunicationSystem || {}; if (!conductor) { throw new Error("Conductor not initialized. Ensure the host has called initConductor()."); } return conductor; } //# sourceMappingURL=conductor.js.map