pds-dev-kit-web-test 2.7.448 → 2.7.449
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { type Block } from 'publ-echo-test/dist/lib/GridLayoutEditor/group';
|
|
2
3
|
import type { ComponentBlock } from '../sections/CustomSection/types';
|
|
3
4
|
import type { Device } from '../sections/CustomSection/util/types';
|
|
4
|
-
import type { Block } from 'publ-echo-test/dist/lib/GridLayoutEditor/group';
|
|
5
5
|
import type { LayoutItem } from 'publ-echo/dist/lib';
|
|
6
6
|
export declare function findAllChildrenCbIds(block: Block, targetGroupId: string): number[];
|
|
7
7
|
export default function RenderPedigreeRecursively({ isEditMode, block, layoutItems, cbs, parentGroupArea, rowHeight, device, selectedRows, isParentGroupHeightVariable }: {
|
|
@@ -52,6 +52,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
52
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
53
|
exports.findAllChildrenCbIds = void 0;
|
|
54
54
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
55
|
+
var group_1 = require("publ-echo-test/dist/lib/GridLayoutEditor/group");
|
|
55
56
|
var renderHelpers_1 = require("publ-echo-test/dist/lib/GridLayoutEditor/utils/renderHelpers");
|
|
56
57
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
57
58
|
var ErrorBoundary_1 = require("../components/Section/ErrorBoundary");
|
|
@@ -118,7 +119,15 @@ function RenderPedigreeRecursively(_a) {
|
|
|
118
119
|
isEditMode: isEditMode, isParentGroupHeightVariable: isGBHeightVariable_1 }, child.blockId)); }) })));
|
|
119
120
|
}
|
|
120
121
|
// default: TYPE === 'COMPONENT_BLOCK'
|
|
121
|
-
var cbIndex = cbs.findIndex(function (c) {
|
|
122
|
+
var cbIndex = cbs.findIndex(function (c) {
|
|
123
|
+
if (c.blockId) {
|
|
124
|
+
return c.blockId === block.blockId;
|
|
125
|
+
}
|
|
126
|
+
if (!c.blockId) {
|
|
127
|
+
return (0, group_1.formatCbIdToBlockId)(c.id) === block.blockId;
|
|
128
|
+
}
|
|
129
|
+
return false;
|
|
130
|
+
});
|
|
122
131
|
var cb = cbs[cbIndex];
|
|
123
132
|
if (!cb) {
|
|
124
133
|
return (0, jsx_runtime_1.jsxs)("div", { children: ["NO CB FOUND FOR ", block.blockId] });
|