riverbankcms 0.18.0 → 0.20.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 CHANGED
@@ -69,3 +69,26 @@ default filename is `<site-slug>-backup.zip`; existing files require
69
69
  single confirmation, always create a fresh site identity, and never run
70
70
  `riverbankcms link` automatically. Use `--yes` for JSON or non-interactive
71
71
  imports.
72
+
73
+ ### Entry links and singleton identifiers
74
+
75
+ Entry fields with `type: 'link'` use the same link objects as blocks:
76
+
77
+ ```json
78
+ {
79
+ "buttonLink": { "kind": "page", "identifier": "start-a-project" },
80
+ "subLinkLink": { "kind": "external", "href": "https://example.com" }
81
+ }
82
+ ```
83
+
84
+ Use `kind: 'url'` with `href` for a relative URL such as `/contact`.
85
+ Legacy URL strings are normalized to that object when read or published.
86
+ SDK inferred link fields use `LinkValue | null`; new content should use objects.
87
+
88
+ A singleton has one entry. Config sync creates it with identifier
89
+ `<content-type-key>-singleton`. Run `riverbankcms pull entries <content-type-key>`
90
+ (with `--env=remote` for the remote environment) and edit the resulting file.
91
+ Use the pulled identifier in both the JSON `identifier` and any identifier
92
+ argument to `riverbankcms push entries`. Push does not retarget another identifier:
93
+ a mismatch fails with a message naming the existing singleton identifier, before
94
+ writing the entry. A filename alone does not rename an entry.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import "../sdk-event-upsert-BamyD2d6.mjs";
3
- import "../src-BhrSG8A4.mjs";
4
- import { t as eventUpsertInputSchema } from "../eventUpsertInputSchema-BNSzkEID.mjs";
2
+ import "../richTextSchema-DTvrDDF5.mjs";
3
+ import "../src-Dixcv4PB.mjs";
4
+ import { t as eventUpsertInputSchema } from "../eventUpsertInputSchema-VVBVGA6x.mjs";
5
5
 
6
6
  //#region src/acceptance/matrix-builders.ts
7
7
  const workflow = (scenario, stepId) => ({