@se-studio/contentful-cms 3.16.5 → 3.16.9
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/CHANGELOG.md +24 -0
- package/HOSTED.md +25 -5
- package/dist/commands/create-from-json.d.ts +9 -0
- package/dist/commands/create-from-json.d.ts.map +1 -1
- package/dist/commands/create-from-json.js +71 -2
- package/dist/commands/create-from-json.js.map +1 -1
- package/dist/commands/editor-pack.d.ts.map +1 -1
- package/dist/commands/editor-pack.js +1 -1
- package/dist/commands/editor-pack.js.map +1 -1
- package/dist/commands/host-pack-publish.d.ts.map +1 -1
- package/dist/commands/host-pack-publish.js +25 -2
- package/dist/commands/host-pack-publish.js.map +1 -1
- package/dist/commands/release.d.ts.map +1 -1
- package/dist/commands/release.js +85 -6
- package/dist/commands/release.js.map +1 -1
- package/dist/contentful/cma-user-agent.d.ts +1 -1
- package/dist/contentful/field-value-from-json.d.ts +5 -0
- package/dist/contentful/field-value-from-json.d.ts.map +1 -1
- package/dist/contentful/field-value-from-json.js +56 -1
- package/dist/contentful/field-value-from-json.js.map +1 -1
- package/dist/contentful/link-fields.d.ts.map +1 -1
- package/dist/contentful/link-fields.js +7 -1
- package/dist/contentful/link-fields.js.map +1 -1
- package/dist/contentful/required-fields.d.ts +19 -0
- package/dist/contentful/required-fields.d.ts.map +1 -0
- package/dist/contentful/required-fields.js +70 -0
- package/dist/contentful/required-fields.js.map +1 -0
- package/dist/editor-pack/generate.d.ts +7 -0
- package/dist/editor-pack/generate.d.ts.map +1 -1
- package/dist/editor-pack/generate.js +36 -2
- package/dist/editor-pack/generate.js.map +1 -1
- package/dist/editor-pack/parse-guidelines.d.ts +13 -1
- package/dist/editor-pack/parse-guidelines.d.ts.map +1 -1
- package/dist/editor-pack/parse-guidelines.js +42 -3
- package/dist/editor-pack/parse-guidelines.js.map +1 -1
- package/dist/generated/help-topics.d.ts.map +1 -1
- package/dist/generated/help-topics.js +1 -1
- package/dist/generated/help-topics.js.map +1 -1
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/mcp/http-handler.d.ts +3 -0
- package/dist/mcp/http-handler.d.ts.map +1 -1
- package/dist/mcp/http-handler.js +7 -2
- package/dist/mcp/http-handler.js.map +1 -1
- package/dist/media-pipeline/actions.d.ts.map +1 -1
- package/dist/media-pipeline/actions.js +9 -3
- package/dist/media-pipeline/actions.js.map +1 -1
- package/dist/media-pipeline/prepare-source.d.ts +3 -0
- package/dist/media-pipeline/prepare-source.d.ts.map +1 -1
- package/dist/media-pipeline/prepare-source.js +45 -0
- package/dist/media-pipeline/prepare-source.js.map +1 -1
- package/dist/publish/cma.d.ts +14 -0
- package/dist/publish/cma.d.ts.map +1 -1
- package/dist/publish/cma.js +33 -0
- package/dist/publish/cma.js.map +1 -1
- package/docs/editor-tasks/create-from-document.md +4 -4
- package/docs/editor-tasks/create-html-component.md +42 -15
- package/docs/editor-tasks/source-readiness-review.md +2 -2
- package/docs/help/create-from-json.md +3 -2
- package/docs/help/fields-html-component.md +2 -0
- package/docs/help/publish.md +8 -0
- package/package.json +1 -1
|
@@ -6,6 +6,8 @@ Run `cms-edit schema htmlComponent` for this space’s field IDs. Some spaces du
|
|
|
6
6
|
|
|
7
7
|
See `cms-edit://customer/task-create-html-component` for the full create playbook.
|
|
8
8
|
|
|
9
|
+
Record **keep** or **promote** before authoring. Promote when an editor will change the words, media, or links, or the section repeats (on this page or another). A layout match does not make that call. A first version gets the same call. `HtmlComponent` does not emit analytics. Do not push to `dataLayer` from `customJs`. Clicks that must be measured use a registered link.
|
|
10
|
+
|
|
9
11
|
---
|
|
10
12
|
|
|
11
13
|
## Fields
|
package/docs/help/publish.md
CHANGED
|
@@ -9,9 +9,12 @@ The signed-in Contentful user must be allowed to publish, unpublish, or archive.
|
|
|
9
9
|
```
|
|
10
10
|
cms-edit publish plan
|
|
11
11
|
cms-edit publish choose --plan <id> --scope all
|
|
12
|
+
cms-edit publish apply <id>
|
|
12
13
|
cms-edit publish apply --plan <id>
|
|
13
14
|
```
|
|
14
15
|
|
|
16
|
+
`apply` takes the plan id as a positional argument or as `--plan`. When both are set, `--plan` wins. The same applies to `unpublish`, `archive`, and `revalidate`.
|
|
17
|
+
|
|
15
18
|
`plan` is read-only. If someone else also changed an entry, the plan waits. Ask whether to publish all of those entries or only this user's. Record that with `choose`. Apply only after the user says yes. The same pattern exists for `unpublish`, `archive`, and `revalidate`.
|
|
16
19
|
|
|
17
20
|
## Targets
|
|
@@ -42,7 +45,12 @@ Regenerate the editor pack so hosted cms-edit reads `editor-pack/publish.json`.
|
|
|
42
45
|
|
|
43
46
|
```
|
|
44
47
|
cms-edit revalidate plan --id <pageId>
|
|
48
|
+
cms-edit revalidate apply <id>
|
|
45
49
|
cms-edit revalidate apply --plan <id>
|
|
46
50
|
```
|
|
47
51
|
|
|
48
52
|
This refreshes production cache and does not publish. The host needs `REVALIDATION_SECRET` and `PRODUCTION_SITE_URL`. The request goes to `{PRODUCTION_SITE_URL}/api/revalidate`. Set `REVALIDATION_PATH` when the site uses another path (Point.me: `/marketing-api/revalidate/`).
|
|
53
|
+
|
|
54
|
+
## Archive, not delete
|
|
55
|
+
|
|
56
|
+
cms-edit does not hard-delete published entries or assets. Archive is the retirement path. `archive apply` unpublishes a published entry or asset first, then archives it. Draft deletions inside an open editing session are a separate save-time action and do not remove published content.
|
package/package.json
CHANGED