parent
e7bb709e83
commit
e709316380
@ -1,84 +1,7 @@
|
||||
// ── Provider helpers (context + opts bridge) ────────────────────────────────
|
||||
export {
|
||||
type ProviderOpts,
|
||||
type WithRefOpts,
|
||||
context,
|
||||
type SomaContext,
|
||||
bindProps,
|
||||
type OptsFromProps,
|
||||
type WritableSpec,
|
||||
type PropsConfigEntry
|
||||
} from './provider';
|
||||
|
||||
// ── Props ────────────────────────────────────────────────────────────────────
|
||||
export { mergeProps, composeHandlers } from './props';
|
||||
|
||||
// ── Keyboard ─────────────────────────────────────────────────────────────────
|
||||
export { KEYS, FIRST_KEYS, LAST_KEYS, SELECTION_KEYS, getDirectionalKeys } from './keyboard';
|
||||
|
||||
// ── Typeahead ────────────────────────────────────────────────────────────────
|
||||
export {
|
||||
Typeahead,
|
||||
TypeaheadBuffer,
|
||||
matchTypeahead,
|
||||
type TypeaheadOptions,
|
||||
type TypeaheadSearchOptions,
|
||||
type TypeaheadText
|
||||
} from './typeahead';
|
||||
|
||||
// ── CSS ──────────────────────────────────────────────────────────────────────
|
||||
export { cssToStyleObj, styleToString, srOnlyStyles } from './css';
|
||||
|
||||
// ── ID ───────────────────────────────────────────────────────────────────────
|
||||
export { createId, useId } from './id';
|
||||
|
||||
// ── Types ────────────────────────────────────────────────────────────────────
|
||||
export type {
|
||||
Orientation,
|
||||
Direction,
|
||||
OnChangeFn,
|
||||
WithChild,
|
||||
WithChildNoChildrenSnippetProps,
|
||||
WithChildren,
|
||||
Without,
|
||||
SomaEvent,
|
||||
SomaKeyboardEvent,
|
||||
SomaMouseEvent,
|
||||
SomaFocusEvent,
|
||||
SomaInputEvent,
|
||||
PrimitiveDivAttributes,
|
||||
PrimitiveButtonAttributes,
|
||||
PrimitiveInputAttributes,
|
||||
PrimitiveSpanAttributes
|
||||
} from './types';
|
||||
|
||||
// ── Soma (root instance) ─────────────────────────────────────────────────────
|
||||
// Root scope only. Components, runtime helpers and shared utilities are
|
||||
// imported from their explicit subpaths (`$soma/components`, `$soma/runtime.svelte`,
|
||||
// `$soma/provider`, etc.) to avoid duplicate public surfaces.
|
||||
export { Soma } from './core/soma.svelte';
|
||||
export type { SomaOptions } from './core/soma.svelte';
|
||||
|
||||
// ── SomaRuntime (per-instance morfo interpreter) ────────────────────────────
|
||||
// Per the doctrine "morfo declares, soma executes" — the runtime that
|
||||
// interprets a CompiledMorfo lives in soma. Providers consume it via the
|
||||
// current `Soma` scope (`soma.runtime(morfo, sources)`); pure consumers can
|
||||
// import `createSomaRuntime` directly from here.
|
||||
export {
|
||||
createSomaRuntime,
|
||||
type SomaRuntime,
|
||||
type SomaRuntimeSources,
|
||||
type SomaRuntimePartBaseOpts,
|
||||
type SourceMap,
|
||||
type EventEngineEmitter,
|
||||
type SomaRuntimePart,
|
||||
type SomaRuntimePartOpts,
|
||||
type TriggerOptions,
|
||||
type EventHandler,
|
||||
type KeyboardActionHandler
|
||||
} from './runtime.svelte';
|
||||
|
||||
export {
|
||||
SomaNoContextError,
|
||||
SomaProviderContextNotFoundError,
|
||||
SomaRuntimeEventError,
|
||||
SomaRuntimePartError,
|
||||
SomaRuntimeTargetError
|
||||
} from './errors';
|
||||
export { SomaNoContextError } from './errors';
|
||||
|
||||
Loading…
Reference in new issue