Releases: pattern-lab/patternlab-php-core
Easy access to pattern data
This release outputs all the same data that went into patternlab-data.js
and putting it into patternlab-data.json
as well. This is here so other systems or styleguidekits can grab the data in the easier format to parse, JSON, instead of a JS file that sets global vars. All current PL repos still use patternlab-data.js
, but this is just another way to access that data.
v2.8.11
Disabling unhelpful console warning.
v2.8.10
Removing defaults for ishViewportRange so it doesn't unexpectedly lim…
v2.8.9
Exposing `theme` and `patternStates` to Styleguidekit (#143)
v2.8.8: bringing back state via lineage (#142)
bringing back state via lineage
More doc options
Improvements
Implementing Pattern Type (ie atoms) Documentation
This allows MD docs to be added to the top levels, such as Atoms.
Given this structure:
- _patterns/
- atoms.md
- atoms/
- forms.md
- forms/
- select.twig
This will take the contents of atoms.md
and place at top of "Atoms > View All", similar to how forms.md
is placed at top of "Atoms > Forms > View All".
Fixes
States and better MD config
Improvements
- More settings for
pattern.mustache
can be set inpattern.md
now instead of having to rename file. #137- Can now set
hidden: true
instead of renaming pattern with_
prefix to hide from view all and menu - Can now set
noviewall: true
instead of renaming pattern with-
prefix to hide from view all but not menu
- Can now set
The previous release added the ability to have state: inprogress
instead of [email protected]
. Along with the ability to rename Pattern title via title: My cool pattern
, those 4 of these let you control meta data without having to rename the file. I hope that makes it easier for everyone to use! So here's everything you can do in pattern.md
now:
---
title: My cool pattern
state: inprogress
hidden: true
noviewall: true
---
Markdown *docs* go here.
Bug fixes
- If a pattern had a state, then that state was transferred to Patterns it was included in (i.e. in lineage). That no longer happens. #139 Resolves:
Easier Pattern States
Improvements
- Can set Pattern States in MD front matter now: #134
v2.8.2
This hot fix prevents a dependency of a dependency from making the whole project require PHP 7.1 +
v2.8.1: Adding support for ishViewportRange (#131)
- adds support for
ishViewportRange
#131