@marktiderman/genesis-sites 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -594,6 +594,17 @@ forms: (slug) =>
594
594
  - `embed` shows an https URL in a sandboxed iframe. An http URL on this
595
595
  computer (`localhost`, `127.0.0.1`, `[::1]`, `*.localhost`) is framed too,
596
596
  so a local stack's forms show while you build.
597
+ - `params` (up to six `{ name, value }` pairs, such as `program=riverside`)
598
+ lets one form serve many pages. An `embed` URL gets them in its query; a
599
+ parameter your resolver already put there wins, so the host keeps its own
600
+ (such as the page a response came from). A definition reads them as its
601
+ link, so a choice question with `props.prefill: { param }` starts picked
602
+ (and with `hideWhenPrefilled` isn't shown); such a form is always drawn
603
+ with `<Form>`, and its page loads the form stylesheet, since a plain HTML
604
+ form can't read a link.
605
+ - `SiteEditor`'s `onPageChange({ id, path })` says which page the editor has
606
+ open, for the host's own panels about it: the editor switches pages without
607
+ the host's route changing.
597
608
 
598
609
  Either way, your endpoint checks the answers again (`validateSubmission` from
599
610
  genesis-forms). An unknown slug renders nothing and logs.