createTransitionBridge — wire Vue transition hooks to bus commands.
Framework-agnostic: accepts any BaseBus (sync or async). Use this in non-Vue contexts or when you need explicit lifecycle control.
const bus = createCommandBus();bus.register('modalEnter', (cmd) => { cmd.target.animate([{ opacity: 0 }, { opacity: 1 }], { duration: 300 });});const t = createTransitionBridge({ bus, namespace: 'modal' });// Pass t.onEnter, t.onLeave, etc. to <Transition> or call them manually Copy
const bus = createCommandBus();bus.register('modalEnter', (cmd) => { cmd.target.animate([{ opacity: 0 }, { opacity: 1 }], { duration: 300 });});const t = createTransitionBridge({ bus, namespace: 'modal' });// Pass t.onEnter, t.onLeave, etc. to <Transition> or call them manually
createTransitionBridge — wire Vue transition hooks to bus commands.
Framework-agnostic: accepts any BaseBus (sync or async). Use this in non-Vue contexts or when you need explicit lifecycle control.