Skip to content

Commit

Permalink
chore(changelog): add changeset for PRs #1192 and #1402
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdax98 committed Nov 16, 2023
1 parent cf49f3b commit 9875e7d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .changeset/sharp-dodos-guess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
"@comet/cms-admin": major
"@comet/blocks-admin": major
"@comet/cms-api": minor
---

Support automatically importing DAM files into another scope when copying documents from one scope to another

The copy process was reworked:

- The `DocumentInterface` now requires a `dependencies()` and a `replaceDependenciesInOutput()` method
- The `BlockInterface` now has an optional `dependencies()` and a required `replaceDependenciesInOutput()` method
- `rewriteInternalLinks()` was removed from `@comet/cms-admin`. Its functionality is replaced by `replaceDependenciesInOutput()`.

`dependencies()` returns information about dependencies of a document or block (e.g. a used `DamFile` or linked `PageTreeNode`). `replaceDependenciesInOutput()` replaces the IDs of all dependencies of a document or block with new IDs (necessary for copying documents or blocks to another scope).

You can use the new `createDocumentRootBlocksMethods()` to generate the methods for documents.

0 comments on commit 9875e7d

Please sign in to comment.