Releases: sitegeist/Sitegeist.Monocle
!!! Update for Neos 4.2, Performance improvements
This release uses the new @apply feature that Fusion received in Neos 4.2 to improve the rendering performance.
!!!ATTENTION!!! Starting with this release styleguide-props are only applied for THE actually rendered prototype. Prototypes that are used internally do not receive styleguide props. This helps to really verify that props are passed down correctly.
If you want render other prototypes with applied styleguide you can use the prototype Sitegeist.Monocle:Preview.Prototype
which supports passing prototypeName
, propSet
, and props
.
Shrink preview when props are opened
In addition the menu rendering on firefox is improved and the open-state of the props-panel is visualized in the menu.
BUGFIX: Add defaults to render cli command
v4.6.1 BUGFIX: Add defaults to render cli command
FEATURE: Enhance cli rendering
This adds propSet
, props
and locales
parameters to ./flow styleguide:render
. props
and locales
can be passed as JSON:
./flow styleguide:render Vendor.Site:Component.Atom.Container --props '{"content":"Foo"}'
BUGFIX: Fix anatomy tree
Merge pull request #91 from hlubek/bugfix/anatomy-transformation-90 BUGFIX: Correctly transform anatomy tree
Add `Sitegeist.Monocle:StaticUri` prototype
The prototype creates an URI that will return the content of the file and the contentType for the given key.
endpointUrl = Sitegeist.Monocle:StaticUri {
key = 'example'
}
The path and content type for each key are configured via Settings:
Sitegeist:
Monocle:
uriMock:
static:
example:
path: 'resource://Vendor.Package/Private/Json/example.json'
contentType: 'application/json'
Sitegeist.Monocle:MirrorUri endpoint
The fusion prototype Sitegeist.Monocle:MirrorUri
creates an uri to an monocle-endpoint that returns the passed content with the given type
endpointUrl = Sitegeist.Monocle:MirrorUri {
content = '{"hello":"world"}'
type = 'application/json'
}
For convenience special prototypes for json and text exist aswell:
Sitegeist.Monocle:MirrorUri.Json
: And endpoint-mock with media-typeapplication/json
that accepts RawArray dataSitegeist.Monocle:MirrorUri.Text
: And endpoint-mock with media-typetext/plain
DataUri-Prototypes
Monocle now has fusion-prototypes to simulate api responses for components.
Sitegeist.Monocle:DataUri
: Generic data uri implementation that expectstype
andcontent
as stringSitegeist.Monocle:DataUri.Json
: And endpoint-mock with media-typeapplication/json
that will passcontent
trough Json.stringifySitegeist.Monocle:DataUri.Text
: And endpoint-mock with media-typetext/plain
Fix Neos 3.3 support
The previous release accidentally used internal api introduced with Neos 4.0
Fusion-Ast caching and hiddenPrototypeNamePatterns
The fusion-ast code for the styleguide is cached now and the configuration hiddenPrototypeNamePatterns
allows to hide prototypes from the monocle navigation.