UNPKG

@stainless-code/layers

Version:

Headless, UI-agnostic layer/stack manager for modal/dialog/drawer/popover/toast UI. Call a layer like an async function and await its response.

45 lines (44 loc) 1.37 kB
export * from "./types"; export { assertLayerKey, hashKey, keySignature, shallowArrayEqual, } from "./utils"; export { Subscribable } from "./subscribable"; export { notifyManager } from "./notifyManager"; export { ControlledPromise } from "./controlledPromise"; export type { Resolve, Reject } from "./controlledPromise"; export { Layer } from "./layer"; export { LayerStack } from "./layerStack"; export { LayerClient } from "./layerClient"; export { layerOptions } from "./layerOptions"; export { createLayer } from "./createLayer"; export type { LayerHandle, ValidatedLayerHandle } from "./createLayer"; export { layerKey } from "./dataTag"; export type { DataTag, InferDataTagResponse, InferDataTagError, ResponseOf, ErrorOf, } from "./dataTag"; export { createCallContext } from "./callContext"; export { childStackId, createLayerGroup } from "./layerGroup"; export type { LayerGroupHandle, LayerGroupOptions } from "./layerGroup"; export type { StandardSchemaV1 } from "./standardSchema"; export type { Validator, InferValidatorInput, InferValidatorOutput, OpenValidatePayload, } from "./validators"; export { PayloadValidationError, isPayloadValidationError, LayerKeyError, isLayerKeyError, LayerCancelledError, isLayerCancelledError, } from "./errors"; export type { ValidationIssue, LayerCancelReason } from "./errors";