pds-dev-kit-web-test 2.5.447 → 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.5.447",
3
+ "version": "2.5.449",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
@@ -23,7 +23,7 @@
23
23
  "lottie-react": "^2.3.1",
24
24
  "nuka-carousel": "^4.8.4",
25
25
  "publ-echo": "^0.0.119",
26
- "publ-echo-test": "^0.0.231",
26
+ "publ-echo-test": "^0.0.232",
27
27
  "react-hook-form": "^7.28.1",
28
28
  "react-i18next": "^11.12.0",
29
29
  "react-router-dom": "^5.2.0",