@se-studio/contentful-cms 4.14.3 → 4.15.2
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
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @se-studio/contentful-cms Changelog
|
|
2
2
|
|
|
3
|
+
## 4.15.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3235bc4: cms-edit: `article-tags-from-json` now takes ONE checkpoint per import, covering every article it changes, before the first write, instead of one per article. A failed checkpoint still only warns. A guard refusal stops the whole batch before anything is written. The 60-entry cap now applies to the whole import. Several rows for the same article are merged in order.
|
|
8
|
+
|
|
9
|
+
## 4.15.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 93a19f9: cms-edit: a failed checkpoint store now only warns and never refuses a save. The save goes through unchanged, with a clear warning that no checkpoint was stored (so `restore undo` will not cover it). Opening the checkpoint store is skipped when a write touches no existing entries.
|
|
14
|
+
|
|
15
|
+
## 4.15.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- 4c1caf1: cms-edit safety and cloning. Every path that changes existing entries (`save`, `batch save`, `batch run` save op, `apply from-json`, `bulk-rtf-replace`, `article-tags-from-json`, `update page-test`) refuses shared entries (`--confirm-shared`, only when the user said earlier in the chat they are changing shared or multiple entries) and HTML component edits (`--allow-html-edit`), and first takes a verified checkpoint; a failed checkpoint only warns (since 4.15.1) and never blocks the write. `restore undo` plans "undo last save". `create clone --mode deep|shared|hybrid` understands content stacks (shared reuses the stack, deep copies it with its wrapped items, hybrid follows the site's shared-block rule). `create from-json` asks once before linking entries other pages already show (`--allow-shared-links`). The clone-page playbook starts with a full-clone-or-variant gate. `--no-checkpoint` is removed.
|
|
20
|
+
|
|
3
21
|
## 4.14.3
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -17,19 +17,31 @@
|
|
|
17
17
|
- Identify source page slug and target slug/title
|
|
18
18
|
- Read `cms-edit://customer/components-index`
|
|
19
19
|
|
|
20
|
+
## Gate: ask before cloning
|
|
21
|
+
|
|
22
|
+
Ask the user once: **full clone, or change specific components?**
|
|
23
|
+
|
|
24
|
+
- Simple tweak of one existing page (swap a block, change a hero): offer a **page variant** (`create page-variant`, then `add` on the variant). Variants are already supported.
|
|
25
|
+
- Full clone, nothing shared: `--mode deep` (default).
|
|
26
|
+
- Page should follow the original's components: `--mode shared`.
|
|
27
|
+
- Mostly separate, a few blocks shared (footer CTA, forms): `--mode hybrid --share <ids>`.
|
|
28
|
+
|
|
29
|
+
Never link components from another page unless the user chose shared or hybrid. If they said up front they are deliberately changing shared components, do not ask again.
|
|
30
|
+
|
|
20
31
|
## Steps
|
|
21
32
|
|
|
22
|
-
1. `cms_edit ["
|
|
23
|
-
2.
|
|
24
|
-
3. `cms_edit ["
|
|
25
|
-
4.
|
|
26
|
-
|
|
27
|
-
|
|
33
|
+
1. `cms_edit ["create", "clone", "--from", "<source-slug>", "--slug", "<new>", "--title", "<t>", "--mode", "<mode>", "--dry-run"]` — show the COPY/LINK table and page counts
|
|
34
|
+
2. After the user confirms, run it again without `--dry-run` (draft only)
|
|
35
|
+
3. `cms_edit ["open", "--page-slug", "/<new>"]`, then adjust copy/fields on the new page
|
|
36
|
+
4. `save` stops on shared entries and HTML component edits; pass `--confirm-shared` only when the user said earlier in the chat that they are changing shared or multiple entries on purpose, and `--allow-html-edit` only after they have seen the HTML diff. On a site with content stacks, shared reuses the stack, deep copies it with its wrapped items, hybrid links it only if named or a pattern shared block
|
|
37
|
+
|
|
38
|
+
Hand-built `create from-json` still works; if it links entries other pages already show, it asks once (`--allow-shared-links` to proceed).
|
|
28
39
|
|
|
29
40
|
## Confirmation gates
|
|
30
41
|
|
|
31
|
-
1.
|
|
32
|
-
2.
|
|
42
|
+
1. Full clone or specific components (see gate)
|
|
43
|
+
2. Confirm source page, new slug, and title
|
|
44
|
+
3. `--dry-run` before create
|
|
33
45
|
|
|
34
46
|
## Out of scope
|
|
35
47
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** SDK `application` value. Becomes `app cms-edit/<version>` in X-Contentful-User-Agent. */
|
|
2
|
-
export declare const CMA_APPLICATION = "cms-edit/4.
|
|
2
|
+
export declare const CMA_APPLICATION = "cms-edit/4.15.2";
|
|
3
3
|
export declare function cmaClientOptions(accessToken: string): {
|
|
4
4
|
accessToken: string;
|
|
5
5
|
application: string;
|
package/package.json
CHANGED