Closed notacouch closed 7 years ago
thanks for the sleuthing. I had assumed that PL PHP would allow any new config entries to pass through...
this is a bug in patternlab-php-core then. I do not maintain that library anymore, but I am sure someone can patch it without too much trouble.
created an issue over there.
My local instance of PatternLab is via a fork of Phase2's drupal starter kit. I was excited to see the recent release of viewport range support in 3.5.0 so had successfully updated this particular dependency via composer.
However, after modifying pattern-lab/config/config.yml, the values were still not respected.
I edited pattern-lab/public/styleguide/js/patternlab-viewer.min.js to see where things were falling apart and added a console.log to observe the value for
config
. It looks something like this:ishViewportRange
is not there.Further investigation, the node packages see it, PHP Pattern Lab sees it... ultimately it seems only
exposedOptions
manually configured in patternlab-php-core are provided toconfig
in pattern-lab/public/styleguide/data/patternlab-data.js.See Config.php (2.7.0 is what I am currently using): https://github.com/pattern-lab/patternlab-php-core/blob/v2.7.0/src/PatternLab/Config.php#L240
and Builder.php https://github.com/pattern-lab/patternlab-php-core/blob/v2.7.0/src/PatternLab/Builder.php#L103
Am I on to something here or is there something up with my setup?