foldkit-ssr 0.3.0 → 0.3.1
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 +7 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -661,6 +661,13 @@ rh.form(
|
|
|
661
661
|
)
|
|
662
662
|
```
|
|
663
663
|
|
|
664
|
+
The Message carries the title because a post without scripts fills it: the
|
|
665
|
+
server starts from `init`, whose draft is empty. With scripts on, it is the
|
|
666
|
+
Message as drawn, so a submit within a frame of the typing sends the text
|
|
667
|
+
drawn before it ([`docs/state-model.md`](../../docs/state-model.md#messages-carry-intent-not-results-worked-out-from-the-last-frame)).
|
|
668
|
+
A form that need not work without scripts sends `Added()` and reads
|
|
669
|
+
`model.draft` in `update` instead.
|
|
670
|
+
|
|
664
671
|
With scripts on, nothing changes: the page answers the submit and the form
|
|
665
672
|
never posts. Without them, the server wrote the form to post the Message to the
|
|
666
673
|
page's own URL, and `SSR.entry` hands that post to `SSR.handle`:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "foldkit-ssr",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Server rendering for Foldkit Plus: render once on the server, hand the Model over, and hydrate without rerunning init.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"foldkit",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"foldkit": "^0.165.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"foldkit-surface": "0.
|
|
54
|
+
"foldkit-surface": "0.7.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@effect/platform-browser": "4.0.0",
|
|
@@ -64,10 +64,10 @@
|
|
|
64
64
|
"tsdown": "^0.23.0",
|
|
65
65
|
"typescript": "5.9.3",
|
|
66
66
|
"vite": "5.4.21",
|
|
67
|
-
"foldkit-entity": "0.6.0",
|
|
68
67
|
"foldkit-bundle": "0.5.0",
|
|
69
|
-
"foldkit-
|
|
70
|
-
"foldkit-remote": "0.
|
|
68
|
+
"foldkit-entity": "0.7.0",
|
|
69
|
+
"foldkit-remote": "0.12.0",
|
|
70
|
+
"foldkit-mirror": "0.5.1"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"build": "tsdown",
|