@next-core/brick-kit 2.161.0 → 2.162.1

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.
@@ -8243,13 +8243,13 @@
8243
8243
  dll,
8244
8244
  deps,
8245
8245
  bricks,
8246
- byProcessors
8246
+ eager
8247
8247
  } = brickUtils.getDllAndDepsOfStoryboard(yield brickUtils.asyncProcessStoryboard(storyboard, brickTemplateRegistry, templatePackages), brickPackages, {
8248
8248
  ignoreBricksInUnusedCustomTemplates: true
8249
8249
  });
8250
- // 需要先阻塞加载 Custom Processors。
8251
- yield loadScriptOfDll(byProcessors.dll);
8252
- yield loadScriptOfBricksOrTemplates(byProcessors.deps);
8250
+ // 需要先阻塞加载 Custom Processors 和 widgets
8251
+ yield loadScriptOfDll(eager.dll);
8252
+ yield loadScriptOfBricksOrTemplates(eager.deps);
8253
8253
  // 加载构件资源时,不再阻塞后续业务数据的加载,在挂载构件时再等待该任务完成。
8254
8254
  // 挂载构件可能包括:Provider 构件实时挂载、路由准备完成后的统一挂载等。
8255
8255
  return {
@@ -9553,7 +9553,9 @@
9553
9553
  return formData;
9554
9554
  }
9555
9555
  function getFinalStoryBoard(formData, brickConf, isPreview, formContext) {
9556
+ var _brickConf$properties;
9556
9557
  var result = null;
9558
+ var renderRoot = typeof ((_brickConf$properties = brickConf.properties) === null || _brickConf$properties === void 0 ? void 0 : _brickConf$properties.renderRoot) === "boolean" ? brickConf.properties.renderRoot : true;
9557
9559
  var errorBrick = {
9558
9560
  brick: "presentational-bricks.brick-illustration",
9559
9561
  properties: {
@@ -9579,7 +9581,7 @@
9579
9581
  });
9580
9582
  formStoryboard[0].events = events;
9581
9583
  }
9582
- result = _objectSpread__default["default"](_objectSpread__default["default"]({}, brickConf), {}, {
9584
+ result = renderRoot ? _objectSpread__default["default"](_objectSpread__default["default"]({}, brickConf), {}, {
9583
9585
  brick: "div",
9584
9586
  slots: {
9585
9587
  "": {
@@ -9600,6 +9602,14 @@
9600
9602
  type: "bricks"
9601
9603
  }
9602
9604
  }
9605
+ }) : _objectSpread__default["default"](_objectSpread__default["default"]({}, brickConf), {}, {
9606
+ brick: "div",
9607
+ slots: {
9608
+ "": {
9609
+ bricks: formStoryboard,
9610
+ type: "bricks"
9611
+ }
9612
+ }
9603
9613
  });
9604
9614
  } catch (error) {
9605
9615
  // eslint-disable-next-line no-console