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 +23 -0
- package/dist/acceptance/matrix.mjs +3 -3
- package/dist/cli/index.mjs +2316 -105306
- package/dist/cli/init-docs/content/workflow-content-types.md +25 -0
- package/dist/entryCommands-8kDjOex0.mjs +111695 -0
- package/dist/{eventUpsertInputSchema-BNSzkEID.mjs → eventUpsertInputSchema-VVBVGA6x.mjs} +333 -547
- package/dist/load-config-Cut7_6t_.mjs +4 -0
- package/dist/{load-config-BXspoah3.mjs → load-config-gqUEjIyB.mjs} +2 -2
- package/dist/{plan-DxAHLs05.mjs → plan-HAEMHc5T.mjs} +1 -1
- package/dist/{sdk-event-upsert-BamyD2d6.mjs → richTextSchema-DTvrDDF5.mjs} +13342 -11388
- package/dist/scaffold/index.mjs +2 -2
- package/dist/{src-BhrSG8A4.mjs → src-Dixcv4PB.mjs} +831 -139
- package/dist/testing.mjs +5 -4
- package/package.json +1 -1
- package/dist/load-config-s-HOXD6E.mjs +0 -4
- package/dist/local-sync-B3naCvSc.mjs +0 -4634
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 "../
|
|
3
|
-
import "../src-
|
|
4
|
-
import { t as eventUpsertInputSchema } from "../eventUpsertInputSchema-
|
|
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) => ({
|