foldkit-cms 0.6.1 → 0.7.0
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 +2 -2
- package/dist/index.d.mts +338 -695
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +3 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +17 -17
package/README.md
CHANGED
|
@@ -60,7 +60,7 @@ pnpm add effect foldkit foldkit-entity foldkit-form foldkit-crud foldkit-remote
|
|
|
60
60
|
|
|
61
61
|
This integration extends an existing Entity, form, and pair of Remote mutations.
|
|
62
62
|
`Blog.Post`, `PostForm`, `CreatePostMutation`, and `UpdatePostMutation` come from
|
|
63
|
-
your domain module; [the example domain](../../examples/cms/src/domain.ts) shows
|
|
63
|
+
your domain module; [the example domain](../../examples/cms/src/content/domain.ts) shows
|
|
64
64
|
those definitions together. Start with [Form](../form/README.md) if you have not
|
|
65
65
|
yet defined the operation's input.
|
|
66
66
|
|
|
@@ -192,7 +192,7 @@ PostEditor.storedEntry(model) // Option: the entry the server knows, none until
|
|
|
192
192
|
publish now.
|
|
193
193
|
- **Leaving within the rest.** `open`, `create` and `close` drop what is in the
|
|
194
194
|
form. Run `PostEditor.flush(model)` first, as
|
|
195
|
-
[the example](../../examples/cms/src/app.ts) does: it saves what has not been
|
|
195
|
+
[the example](../../examples/cms/src/apps/app.ts) does: it saves what has not been
|
|
196
196
|
saved, now, and does nothing when there is nothing to save.
|
|
197
197
|
- **A draft never fails to open.** The saved Model is tried first, guarded by the
|
|
198
198
|
form's name and `version`; then the saved values, key by key, keeping what the
|