feat: lit-divi-insert prüft Schleifen-Inhalte im Kontext des Ziels; neue Schleife plus Inhalt in einem Aufruf fail closed (X3)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Jan-Niclas Loosen
2026-10-19 20:51:42 +02:00
co-authored by Claude Sonnet 5.5
parent 2f484b77ae
commit 249bc7b932
4 changed files with 254 additions and 4 deletions
+5 -3
View File
@@ -92,7 +92,8 @@ final class DiviWriterFixture
}
/**
* The writer over the page of DiviFixtures::givenPost(), saving into $saved (see saver()).
* The writer over the page of DiviFixtures::givenPost(), saving into $saved (see saver()); $registry is the
* composition's dynamic content map (see composition()).
*
* @param list<string> $saved
* @param list<Throwable> $failures
@@ -104,7 +105,8 @@ final class DiviWriterFixture
?DiviPageLoader $loader = null,
?GlobalEdits $globals = null,
?ThemeBuilderEdits $themeBuilder = null,
?SimilarSections $similar = null
?SimilarSections $similar = null,
?DynamicContentMap $registry = null
): DiviWriter {
$design = self::designReader();
@@ -113,7 +115,7 @@ final class DiviWriterFixture
self::saver($saved, $failures),
self::log(),
$design,
self::composition($design, $unfiltered),
self::composition($design, $unfiltered, $registry),
$globals,
$themeBuilder,
$similar