Repository navigation
Releases
@uxfront/unframework@0.4.1
@unframework.dev/visual@0.5.0
Minor Changes
-
cbee4db: Let an embedded example show its controls, take a colour mode and report its height.
embed.htmltakes three optional parameters, and any other value shows a message that names the values it takes. Without them, an embed is unchanged.controls=trueshows the example's controls below it, with the preview's props rule, and keeps their styles apart from the project's.theme=lightortheme=darksetsdata-themeandcolor-schemeon the embed's page before it renders, and the page that frames it can change the mode with{ type: "unframework:embed", kind: "theme", theme }.resize=trueposts{ type: "unframework:embed", kind: "resize", height }to that page whenever the content's height changes, so it can size the<iframe>. -
103d33c: Open an example by its own URL, so another page can show it in an
<iframe>.embed.html?example=<id>&target=<target>, beside the preview's page in a static site fromunframework preview buildand on the dev preview's server, shows that example alone on that target, with no sidebar, canvas or controls. It takes no messages from the page that frames it, and an unknown or missing example or target shows a message instead of a blank page. Each frame's caption in the preview now has an Open link to the selected example's URL on that target. -
60248fb: Add controls to an example in
unframework previewand in a static preview. Selecting an example used to leave the controls panel empty, and now it shows a group for each component the example renders: a value reaches every instance that doesn't set the prop itself, so a colours example can toggledisabledand keep each button's colour. The preview rewrites the example for its own servers only, sounframework visualand the tests render it as written. It does so through the unframework plugin's newtransformSourceoption, which gives the text to compile for a.uf.tsxor.uf.tsfile in place of the one on disk. -
90d0393: Centre examples in the preview, and add an
@layouttag.unframework previewandpreview buildnow centre every example and component in its frame, with1remof padding, so a small component no longer sits in a corner. This moves every existing example.@layoutin an example's doc comment changes how it sits, the waydisplay: flexwould:roworcolumn,justify-*,align-*,wrapand a gap, like@layout column align-start gap. The gap comes from a scale,gap-xs,gap-sm,gap,gap-lgandgap-xl(0.25remto2rem), or as a length likegap-12px.@layout nonegives the old full-width block back, without padding.Examplegainslayout, and a malformed value is UF7012, whose description now covers it.unframework visualdoesn't read the tag, so captures and baselines stay the same.
Patch Changes
@unframework.dev/unplugin@0.3.0
Minor Changes
- 60248fb: Add controls to an example in
unframework previewand in a static preview. Selecting an example used to leave the controls panel empty, and now it shows a group for each component the example renders: a value reaches every instance that doesn't set the prop itself, so a colours example can toggledisabledand keep each button's colour. The preview rewrites the example for its own servers only, sounframework visualand the tests render it as written. It does so through the unframework plugin's newtransformSourceoption, which gives the text to compile for a.uf.tsxor.uf.tsfile in place of the one on disk.
Patch Changes
- f4f2374: Serve a module's children without waiting on other files' compiles. When a module loads, the plugin now also compiles the
.uf.tsxand.uf.tsfiles it imports, and theirs, so they are ready before anything requests them. A request for a file whose compile is still current no longer waits behind the compiles of unrelated files. On a busy dev server, Qwik's first render of a component with children took tens of seconds, because each of its segments waited in that line to resolve its imports. - Updated dependencies [90d0393]
- @unframework.dev/diagnostics@0.3.1
- @unframework.dev/codegen@0.2.1
- @unframework.dev/compiler@0.3.1
@unframework.dev/testing@0.3.1
Patch Changes
- Updated dependencies [60248fb]
- Updated dependencies [f4f2374]
- @unframework.dev/unplugin@0.3.0
- @unframework.dev/codegen@0.2.1
- @unframework.dev/compiler@0.3.1
- @unframework.dev/target-angular@0.2.1
- @unframework.dev/target-astro@0.2.1
- @unframework.dev/target-qwik@0.2.1
- @unframework.dev/target-react@0.2.1
- @unframework.dev/target-solid@0.2.1
- @unframework.dev/target-solid2@0.1.1
- @unframework.dev/target-svelte@0.2.1
- @unframework.dev/target-vue@0.2.1
@unframework.dev/target-vue@0.2.1
Patch Changes
- @unframework.dev/codegen@0.2.1
@unframework.dev/target-svelte@0.2.1
Patch Changes
- @unframework.dev/codegen@0.2.1
@unframework.dev/target-solid@0.2.1
Patch Changes
- @unframework.dev/codegen@0.2.1
@unframework.dev/target-solid2@0.1.1
Patch Changes
- @unframework.dev/codegen@0.2.1
@unframework.dev/target-react@0.2.1
Patch Changes
- @unframework.dev/codegen@0.2.1
@unframework.dev/target-qwik@0.2.1
Patch Changes
- @unframework.dev/codegen@0.2.1