@next-core/brick-kit 2.161.0 → 2.162.0

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/dist/index.esm.js CHANGED
@@ -9554,7 +9554,9 @@ function initFormContext(formData, brickConf, isPreview) {
9554
9554
  return formData;
9555
9555
  }
9556
9556
  function getFinalStoryBoard(formData, brickConf, isPreview, formContext) {
9557
+ var _brickConf$properties;
9557
9558
  var result = null;
9559
+ var renderRoot = typeof ((_brickConf$properties = brickConf.properties) === null || _brickConf$properties === void 0 ? void 0 : _brickConf$properties.renderRoot) === "boolean" ? brickConf.properties.renderRoot : true;
9558
9560
  var errorBrick = {
9559
9561
  brick: "presentational-bricks.brick-illustration",
9560
9562
  properties: {
@@ -9580,7 +9582,7 @@ function getFinalStoryBoard(formData, brickConf, isPreview, formContext) {
9580
9582
  });
9581
9583
  formStoryboard[0].events = events;
9582
9584
  }
9583
- result = _objectSpread(_objectSpread({}, brickConf), {}, {
9585
+ result = renderRoot ? _objectSpread(_objectSpread({}, brickConf), {}, {
9584
9586
  brick: "div",
9585
9587
  slots: {
9586
9588
  "": {
@@ -9601,6 +9603,14 @@ function getFinalStoryBoard(formData, brickConf, isPreview, formContext) {
9601
9603
  type: "bricks"
9602
9604
  }
9603
9605
  }
9606
+ }) : _objectSpread(_objectSpread({}, brickConf), {}, {
9607
+ brick: "div",
9608
+ slots: {
9609
+ "": {
9610
+ bricks: formStoryboard,
9611
+ type: "bricks"
9612
+ }
9613
+ }
9604
9614
  });
9605
9615
  } catch (error) {
9606
9616
  // eslint-disable-next-line no-console