/** * vapor-chamber - Vue Vapor integration * * What `tryAutoCleanup()` relies on from Vue: the PUBLIC `getCurrentScope()` / * `onScopeDispose()` pair, and Vue stopping a scope it owns - a component * created but never mounted (a sibling's render threw) has its scope stopped * on unmount, so a `useCommand().on()` listener does not * outlive `app.unmount()` (tests/never-mounted-disposal-fixture.test.ts). * `warnUnwired()` is the one production warning, for a Vue app whose * composables came from the root with nothing wired. The history is in * CHANGELOG.md. */ import { type ScopeOptions, type BaseBus, type CommandBus, type Command, type CommandResult, type CommandMap, type TargetOf, type PayloadOf, type ResultOf, type Handler, type PluginParts, type RegisterOptions, type Listener } from './command-bus'; import { configureSignal, signal } from './signal'; import { type CommandState, type CommandStateOptions } from './command-state'; import { getCommandBus, resetCommandBus, setCommandBus, type BusOption, type ResultOn } from './shared-bus'; import { type PaceOption, type PacedOn } from './pace'; import type { Signal } from './signal'; export type { Signal, CreateSignal } from './signal'; export { configureSignal }; export { signal }; /** * configureVue - hand the library Vue's module namespace explicitly. * * The reliable channel - recommended for every consumer who wants * deterministic Vapor wiring, bundler or not. It seeds the registry * synchronously (no probe race, wrappers' null path becomes unreachable) and * is the one channel that behaves identically however the page obtains Vapor: * bundler alias, import map, or the `esm-browser` dist. Essential on * no-bundler pages, where it is the only channel that cannot come up empty: * Detection otherwise depends on either a global slot Vue overwrites when the * first app mounts (see {@link VUE_GLOBAL_KEY}) or a bare-specifier * `import('vue')` that cannot resolve in a browser at all - so on a * `