pds-dev-kit-web-test 2.5.448 → 2.5.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.
|
@@ -139,7 +139,7 @@ var CompositionEditor = (0, react_1.forwardRef)(function CompositionEditorCanvas
|
|
|
139
139
|
};
|
|
140
140
|
}, [componentBlocks]);
|
|
141
141
|
(0, react_1.useLayoutEffect)(function () {
|
|
142
|
-
var parsedLayouts = (0, util_1.parsePlacement)(componentBlocks !== null && componentBlocks !== void 0 ? componentBlocks : [], zOrders);
|
|
142
|
+
var parsedLayouts = (0, util_1.parsePlacement)(componentBlocks !== null && componentBlocks !== void 0 ? componentBlocks : [], zOrders, placementRestriction);
|
|
143
143
|
setLayouts(function (prev) {
|
|
144
144
|
var _a;
|
|
145
145
|
var _b;
|
|
@@ -75,6 +75,7 @@ var GLE_MIN_WIDTH_MOBILE_PX = "".concat(GRID_CELL_MIN * MOBILE_GRID_COLS, "px");
|
|
|
75
75
|
var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
76
76
|
var _a, _b, _c, _d;
|
|
77
77
|
var _e = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _e.device, editingSectionId = _e.editingSectionId, mode = _e.mode, shortcutKeyMode = _e.shortcutKeyMode, zoomScale = _e.zoomScale, placementRestriction = _e.placementRestriction, sectionActionHandler = _e.sectionActionHandler;
|
|
78
|
+
console.log('CustomSection placementRestriction:', placementRestriction);
|
|
78
79
|
var componentBlocks = props.componentBlocks, jsonProperties = props.jsonProperties;
|
|
79
80
|
var sectionPedigree = jsonProperties === null || jsonProperties === void 0 ? void 0 : jsonProperties.pedigree;
|
|
80
81
|
var _f = (0, react_1.useState)(sectionPedigree), pedigreeState = _f[0], setPedigreeState = _f[1];
|
|
@@ -131,7 +132,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
|
131
132
|
};
|
|
132
133
|
}, [componentBlocks]);
|
|
133
134
|
(0, react_1.useLayoutEffect)(function () {
|
|
134
|
-
var parsedLayouts = (0, util_1.parsePlacement)(componentBlocks !== null && componentBlocks !== void 0 ? componentBlocks : [], zOrders);
|
|
135
|
+
var parsedLayouts = (0, util_1.parsePlacement)(componentBlocks !== null && componentBlocks !== void 0 ? componentBlocks : [], zOrders, placementRestriction);
|
|
135
136
|
setLayouts(function (prev) {
|
|
136
137
|
var _a;
|
|
137
138
|
var _b;
|