This package contains the core, embeddable web components for the Publisher Tools, built using the Lit library. These components are intended to be placed on publishers' websites.
- Banner: A notification banner that can be displayed on a publisher's site. The source is located in
src/banner.ts. - Widget: The interactive monetization widget. Its source code is in the
src/widget/directory.
This package contains the raw source code for the web components but does not have its own build process.
The components are imported and bundled by the cdn package, which is responsible for compiling them into a browser-ready format. Please see the cdn package for more details on the build and delivery process.
The only available script is for type checking.
From the project root:
pnpm -C components typecheckFrom this directory (components/):
pnpm typecheck