UNPKG

@renderx-plugins/library

Version:

RenderX Library UI plugin (temporary in-repo workspace package)

41 lines (40 loc) 1.16 kB
import { handlers } from "./chunk-T3LH56OS.js"; import { LibraryPanel } from "./chunk-SIJ2CTUY.js"; import "./chunk-XIR2ZRQZ.js"; // src/index.ts async function register(conductor) { if (!(conductor == null ? void 0 : conductor.mount)) return; const libraryLoadSeq = { pluginId: "LibraryPlugin", id: "library-load-symphony", name: "Library Load", movements: [ { id: "load", name: "Load", beats: [ { beat: 1, event: "library:components:load", title: "Load Components", dynamics: "mf", handler: "loadComponents", timing: "immediate", kind: "pure" }, { beat: 2, event: "library:components:notify-ui", title: "Notify UI", dynamics: "mf", handler: "notifyUi", timing: "immediate", kind: "pure" } ] } ] }; const mark = (id) => { const key = "_runtimeMountedSeqIds"; const set = conductor[key] || /* @__PURE__ */ new Set(); set.add(id); conductor[key] = set; }; await conductor.mount(libraryLoadSeq, handlers, libraryLoadSeq.pluginId); mark(libraryLoadSeq.id); } export { LibraryPanel, handlers, register }; //# sourceMappingURL=index.js.map