Connection and Client
@patab/widget-sdk (v1.0.0) is a pure ESM package with subpath exports:
WidgetApi Methods
Creates an API v1 module on top of a connected WidgetClient. Each method maps to a stable RPC method name; all real authorization, quotas, and side effects are decided live by the host Capability Broker — the SDK does not cache authorization results.
Events, Types, and Error Codes
Events
Manifest Contract and Validators
Manifest Types
theme.css and Theme Tokens
Usage
Mock Host (Testing)
The @patab/widget-sdk/testing subpath (also exported from the main entry) provides a mock host built on a real MessageChannel and the real RPC protocol — tests go through exactly the same public protocol as production, without bypassing any contract.