@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.
package/dist/index.esm.js CHANGED
@@ -8244,13 +8244,13 @@ class Kernel {
8244
8244
  dll,
8245
8245
  deps,
8246
8246
  bricks,
8247
- byProcessors
8247
+ eager
8248
8248
  } = getDllAndDepsOfStoryboard(yield asyncProcessStoryboard(storyboard, brickTemplateRegistry, templatePackages), brickPackages, {
8249
8249
  ignoreBricksInUnusedCustomTemplates: true
8250
8250
  });
8251
- // 需要先阻塞加载 Custom Processors。
8252
- yield loadScriptOfDll(byProcessors.dll);
8253
- yield loadScriptOfBricksOrTemplates(byProcessors.deps);
8251
+ // 需要先阻塞加载 Custom Processors 和 widgets
8252
+ yield loadScriptOfDll(eager.dll);
8253
+ yield loadScriptOfBricksOrTemplates(eager.deps);
8254
8254
  // 加载构件资源时,不再阻塞后续业务数据的加载,在挂载构件时再等待该任务完成。
8255
8255
  // 挂载构件可能包括:Provider 构件实时挂载、路由准备完成后的统一挂载等。
8256
8256
  return {
@@ -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