You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte-kit-vice/src/uix/soma/index.ts

88 lines
3.7 KiB

// ── 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';
// ── Events ───────────────────────────────────────────────────────────────────
export { addEventListener, type EventCallback } from './events';
// ── 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) ─────────────────────────────────────────────────────
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';

Powered by TurnKey Linux.