| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- // Types
- export type {
- DynamicValue,
- DynamicString,
- DynamicNumber,
- DynamicBoolean,
- UIElement,
- FlatElement,
- Spec,
- VisibilityCondition,
- StateCondition,
- ItemCondition,
- IndexCondition,
- SingleCondition,
- AndCondition,
- OrCondition,
- StateModel,
- StateStore,
- ComponentSchema,
- ValidationMode,
- PatchOp,
- JsonPatch,
- // SpecStream types
- SpecStreamLine,
- SpecStreamCompiler,
- // Mixed stream types (chat + GenUI)
- MixedStreamCallbacks,
- MixedStreamParser,
- // AI SDK stream transform
- StreamChunk,
- SpecDataPart,
- } from "./types";
- export {
- DynamicValueSchema,
- DynamicStringSchema,
- DynamicNumberSchema,
- DynamicBooleanSchema,
- resolveDynamicValue,
- getByPath,
- setByPath,
- addByPath,
- removeByPath,
- findFormValue,
- // SpecStream - streaming format for building specs (RFC 6902)
- parseSpecStreamLine,
- applySpecStreamPatch,
- applySpecPatch,
- nestedToFlat,
- compileSpecStream,
- createSpecStreamCompiler,
- // Mixed stream parser (chat + GenUI)
- createMixedStreamParser,
- // AI SDK stream transform
- createJsonRenderTransform,
- pipeJsonRender,
- SPEC_DATA_PART,
- SPEC_DATA_PART_TYPE,
- } from "./types";
- // State Store
- export type { StoreAdapterConfig } from "./state-store";
- export { createStateStore } from "./state-store";
- // Visibility
- export type { VisibilityContext } from "./visibility";
- export {
- VisibilityConditionSchema,
- evaluateVisibility,
- visibility,
- } from "./visibility";
- // Prop Expressions
- export type {
- PropExpression,
- PropResolutionContext,
- ComputedFunction,
- } from "./props";
- export {
- resolvePropValue,
- resolveElementProps,
- resolveBindings,
- resolveActionParam,
- } from "./props";
- // Actions
- export type {
- ActionBinding,
- /** @deprecated Use ActionBinding instead */
- Action,
- ActionConfirm,
- ActionOnSuccess,
- ActionOnError,
- ActionHandler,
- ActionDefinition,
- ResolvedAction,
- ActionExecutionContext,
- } from "./actions";
- export {
- ActionBindingSchema,
- /** @deprecated Use ActionBindingSchema instead */
- ActionSchema,
- ActionConfirmSchema,
- ActionOnSuccessSchema,
- ActionOnErrorSchema,
- resolveAction,
- executeAction,
- interpolateString,
- actionBinding,
- /** @deprecated Use actionBinding instead */
- action,
- } from "./actions";
- // Validation
- export type {
- ValidationCheck,
- ValidationConfig,
- ValidationFunction,
- ValidationFunctionDefinition,
- ValidationCheckResult,
- ValidationResult,
- ValidationContext,
- } from "./validation";
- export {
- ValidationCheckSchema,
- ValidationConfigSchema,
- builtInValidationFunctions,
- runValidationCheck,
- runValidation,
- check,
- } from "./validation";
- // Spec Structural Validation
- export type {
- SpecIssueSeverity,
- SpecIssue,
- SpecValidationIssues,
- ValidateSpecOptions,
- } from "./spec-validator";
- export { validateSpec, autoFixSpec, formatSpecIssues } from "./spec-validator";
- // Schema — defines the grammar (how specs and catalogs are structured)
- export type {
- SchemaBuilder,
- SchemaType,
- SchemaDefinition,
- Schema,
- PromptTemplate,
- SchemaOptions,
- BuiltInAction,
- } from "./schema";
- export { defineSchema } from "./schema";
- // Catalog — defines the vocabulary (what components and actions are available)
- export type {
- Catalog,
- PromptOptions,
- PromptContext,
- SpecValidationResult,
- InferCatalogInput,
- InferSpec,
- InferCatalogComponents,
- InferCatalogActions,
- InferComponentProps,
- InferActionParams,
- } from "./schema";
- export { defineCatalog } from "./schema";
- // User Prompt Builder
- export type { UserPromptOptions } from "./prompt";
- export { buildUserPrompt } from "./prompt";
|