Scripts that provide custom elements, structure, or functionality.
npm i @mcclatchy/next-custom
import nextCustom from '@mcclatchy/next-custom';
nextCustom(locker);
This package is used in conjuction with McClatchy's Yozon's Locker. The exported nextCustom
function takes in a locker
object that has specific methods needed for this package. There is a private yozons-locker package that can be used for development and testing purposes.
You can find development details, and more in-depth explanations on how next-custom
is used and tested here.
Note This yozons-locker package may not always have the most up to date version of the Yozons Locker. Until it is officially supported from the team that maintains the Yozons Locker, take heed to any possible descrepancies and adjust accordingly.