@mochabug/adapt-web
Version:
Browser client library for Adapt automation platform
30 lines (29 loc) • 1.8 kB
TypeScript
/**
* Default entry point — Adapt with Cap.js included.
*
* Cap.js is auto-registered so proof-of-work challenges work out of the box.
*
* ```ts
* import { WebClient } from "@mochabug/adapt-web";
* new WebClient({ container: "app", automationId: "your-automation-id", requiresChallenge: true });
* ```
*
* If you don't need challenges, import from `@mochabug/adapt-web/core` instead
* to exclude Cap.js from your bundle.
*/
import "./AdaptCapElement.js";
import "./AdaptAutomationElement.js";
export { AdaptWebClient as WebClient } from "./index.js";
export { AdaptCapWidget as Cap } from "./AdaptCapWidget.js";
export type { AdaptCapWidgetOptions } from "./AdaptCapWidget.js";
export { createChallenge, redeemChallenge } from "./cap-adapter.js";
export { AdaptCapElement } from "./AdaptCapElement.js";
export { clearPersistedState, type AdaptResizeMessage, type AdaptDarkModeMessage, type AdaptAutoResizingMessage, type AdaptInitMessage, } from "./index.js";
export type { AdaptError, AdaptErrorKind, AdaptTheme, AdaptWebClientOptions, CapWidgetI18n, CapWidgetOptions, ChallengeInfo, ForkDisplay, Output, PersistOptions, RedeemChallengeOptions, RedeemedChallenge, SignalValue, StatusJson, StatusText, } from "./types.js";
export { resolveTheme } from "./theme.js";
export type { SignalData } from "@mochabug/adapt-core";
export { createConnectClient } from "@mochabug/adapt-core/connect";
export { configure, resetConfig } from "@mochabug/adapt-core";
export { AdaptAutomationElement } from "./AdaptAutomationElement.js";
export { IframePanelComponent, ForkGroupActions, FloatingToolbar, MinimizeManager, } from "./panel-setup.js";
export { PanelManager, type DockPosition, type SerializedPanelLayout, type SerializedFloatingGroup, type SerializedLayoutNode, } from "./panel-manager.js";