@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.
Files changed (62) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/HOSTED.md +25 -5
  3. package/dist/commands/create-from-json.d.ts +9 -0
  4. package/dist/commands/create-from-json.d.ts.map +1 -1
  5. package/dist/commands/create-from-json.js +71 -2
  6. package/dist/commands/create-from-json.js.map +1 -1
  7. package/dist/commands/editor-pack.d.ts.map +1 -1
  8. package/dist/commands/editor-pack.js +1 -1
  9. package/dist/commands/editor-pack.js.map +1 -1
  10. package/dist/commands/host-pack-publish.d.ts.map +1 -1
  11. package/dist/commands/host-pack-publish.js +25 -2
  12. package/dist/commands/host-pack-publish.js.map +1 -1
  13. package/dist/commands/release.d.ts.map +1 -1
  14. package/dist/commands/release.js +85 -6
  15. package/dist/commands/release.js.map +1 -1
  16. package/dist/contentful/cma-user-agent.d.ts +1 -1
  17. package/dist/contentful/field-value-from-json.d.ts +5 -0
  18. package/dist/contentful/field-value-from-json.d.ts.map +1 -1
  19. package/dist/contentful/field-value-from-json.js +56 -1
  20. package/dist/contentful/field-value-from-json.js.map +1 -1
  21. package/dist/contentful/link-fields.d.ts.map +1 -1
  22. package/dist/contentful/link-fields.js +7 -1
  23. package/dist/contentful/link-fields.js.map +1 -1
  24. package/dist/contentful/required-fields.d.ts +19 -0
  25. package/dist/contentful/required-fields.d.ts.map +1 -0
  26. package/dist/contentful/required-fields.js +70 -0
  27. package/dist/contentful/required-fields.js.map +1 -0
  28. package/dist/editor-pack/generate.d.ts +7 -0
  29. package/dist/editor-pack/generate.d.ts.map +1 -1
  30. package/dist/editor-pack/generate.js +36 -2
  31. package/dist/editor-pack/generate.js.map +1 -1
  32. package/dist/editor-pack/parse-guidelines.d.ts +13 -1
  33. package/dist/editor-pack/parse-guidelines.d.ts.map +1 -1
  34. package/dist/editor-pack/parse-guidelines.js +42 -3
  35. package/dist/editor-pack/parse-guidelines.js.map +1 -1
  36. package/dist/generated/help-topics.d.ts.map +1 -1
  37. package/dist/generated/help-topics.js +1 -1
  38. package/dist/generated/help-topics.js.map +1 -1
  39. package/dist/generated/version.d.ts +1 -1
  40. package/dist/generated/version.js +1 -1
  41. package/dist/mcp/http-handler.d.ts +3 -0
  42. package/dist/mcp/http-handler.d.ts.map +1 -1
  43. package/dist/mcp/http-handler.js +7 -2
  44. package/dist/mcp/http-handler.js.map +1 -1
  45. package/dist/media-pipeline/actions.d.ts.map +1 -1
  46. package/dist/media-pipeline/actions.js +9 -3
  47. package/dist/media-pipeline/actions.js.map +1 -1
  48. package/dist/media-pipeline/prepare-source.d.ts +3 -0
  49. package/dist/media-pipeline/prepare-source.d.ts.map +1 -1
  50. package/dist/media-pipeline/prepare-source.js +45 -0
  51. package/dist/media-pipeline/prepare-source.js.map +1 -1
  52. package/dist/publish/cma.d.ts +14 -0
  53. package/dist/publish/cma.d.ts.map +1 -1
  54. package/dist/publish/cma.js +33 -0
  55. package/dist/publish/cma.js.map +1 -1
  56. package/docs/editor-tasks/create-from-document.md +4 -4
  57. package/docs/editor-tasks/create-html-component.md +42 -15
  58. package/docs/editor-tasks/source-readiness-review.md +2 -2
  59. package/docs/help/create-from-json.md +3 -2
  60. package/docs/help/fields-html-component.md +2 -0
  61. package/docs/help/publish.md +8 -0
  62. 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
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@se-studio/contentful-cms",
3
- "version": "3.16.5",
3
+ "version": "3.16.9",
4
4
  "description": "CLI tool for AI agents to edit Contentful drafts and, when the user's role allows it, publish after an explicit yes",
5
5
  "repository": {
6
6
  "type": "git",