@marktiderman/genesis-sites 0.9.0 → 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 +11 -0
- package/dist/assets/{form-island.da6c662a73.js → form-island.7409ed6763.js} +3 -3
- package/dist/assets/{islands.399b13ea6f.js → islands.377f051730.js} +1 -1
- package/dist/assets.generated-MKDNUSLQ.js +3 -0
- package/dist/{assets.generated-ZBFSP23U.js.map → assets.generated-MKDNUSLQ.js.map} +1 -1
- package/dist/{chunk-SBONYMUC.js → chunk-AH3NRTRW.js} +39 -10
- package/dist/chunk-AH3NRTRW.js.map +1 -0
- package/dist/{chunk-5G2H6EZ2.js → chunk-MMRS6P22.js} +5 -5
- package/dist/{chunk-5G2H6EZ2.js.map → chunk-MMRS6P22.js.map} +1 -1
- package/dist/{chunk-ATRS5GSD.js → chunk-MNNTHA7L.js} +6 -6
- package/dist/chunk-MNNTHA7L.js.map +1 -0
- package/dist/editor.d.ts +10 -1
- package/dist/editor.js +11 -4
- package/dist/editor.js.map +1 -1
- package/dist/{handler-OR554RTS.js → handler-KBX2YB6M.js} +5 -5
- package/dist/{handler-OR554RTS.js.map → handler-KBX2YB6M.js.map} +1 -1
- package/dist/sections.d.ts +4 -0
- package/dist/sections.js +1 -1
- package/dist/web.d.ts +1 -1
- package/dist/web.js +3 -3
- package/package.json +3 -3
- package/dist/assets.generated-ZBFSP23U.js +0 -3
- package/dist/chunk-ATRS5GSD.js.map +0 -1
- package/dist/chunk-SBONYMUC.js.map +0 -1
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.
|