Maintainer overview of the registered script and JS library surface.
Registration
PRC\Platform\CustomCharts\PRC_Custom_Charts hooks wp_enqueue_scripts and registers:
| Handle | Source |
|---|---|
prc-custom-charts | build/index.js (+ build/index.asset.php dependencies) |
Callers enqueue the handle when a page needs a bespoke chart. The plugin does not register blocks or REST routes.
Library export
Webpack exposes the bundle as window.prcCustomCharts. src/index.js exports:
ChartBuilderRenderer— default from./custom-chart-rendererbaseConfig— re-exported from@prc/charting-utilities
Chart implementations live under src/charts/ and shared helpers under src/shared/.
Build
From the repo root:
npx turbo build --filter=@prc/custom-charts
The package script runs TypeScript (tsc) then wp-scripts build src/index.js --output-path build.