@decocms/start 1.2.4 → 1.2.5
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/package.json +1 -1
- package/src/cms/resolve.ts +10 -0
package/package.json
CHANGED
package/src/cms/resolve.ts
CHANGED
|
@@ -639,6 +639,11 @@ async function resolveRawSection(
|
|
|
639
639
|
if (!obj.__resolveType) continue;
|
|
640
640
|
|
|
641
641
|
const resolveType = obj.__resolveType as string;
|
|
642
|
+
|
|
643
|
+
if (resolveType.includes("eader")) {
|
|
644
|
+
console.log(`[RAW-SECTION] resolveType="${resolveType}" objKeys=[${Object.keys(obj).join(",")}]`);
|
|
645
|
+
}
|
|
646
|
+
|
|
642
647
|
const sectionLoader = getSection(resolveType);
|
|
643
648
|
if (!sectionLoader) {
|
|
644
649
|
console.warn(`[CMS] No component registered for: ${resolveType}`);
|
|
@@ -647,6 +652,11 @@ async function resolveRawSection(
|
|
|
647
652
|
|
|
648
653
|
const { __resolveType: _, ...rawProps } = obj;
|
|
649
654
|
const props = normalizeNestedSections(rawProps) as Record<string, unknown>;
|
|
655
|
+
|
|
656
|
+
if (resolveType.includes("eader")) {
|
|
657
|
+
console.log(`[RAW-SECTION] rawPropKeys=[${Object.keys(rawProps).join(",")}] normalizedPropKeys=[${Object.keys(props).join(",")}]`);
|
|
658
|
+
}
|
|
659
|
+
|
|
650
660
|
results.push({
|
|
651
661
|
component: resolveType,
|
|
652
662
|
props,
|