@next-core/brick-kit 2.178.7 → 2.178.8

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
@@ -9020,7 +9020,7 @@ class Kernel {
9020
9020
  var previewPath = this._dev_only_getSnippetPreviewPath(snippetData.snippetId);
9021
9021
  var previewRouteIndex = routes.findIndex(route => route.path === previewPath);
9022
9022
  try {
9023
- var _parsedSnippetData$br;
9023
+ var _parsedSnippetData$br, _parsedSnippetData$co;
9024
9024
  var {
9025
9025
  params: declareParams
9026
9026
  } = snippetData,
@@ -9038,7 +9038,7 @@ class Kernel {
9038
9038
  menu: false,
9039
9039
  exact: true,
9040
9040
  hybrid: app.legacy === "iframe",
9041
- context: parsedSnippetData.data || []
9041
+ context: ((_parsedSnippetData$co = parsedSnippetData.context) !== null && _parsedSnippetData$co !== void 0 && _parsedSnippetData$co.length ? parsedSnippetData.context : parsedSnippetData.data) || []
9042
9042
  };
9043
9043
  if (previewRouteIndex === -1) {
9044
9044
  routes.unshift(newPreviewRoute);
@@ -9217,7 +9217,7 @@ class Kernel {
9217
9217
  }, (_storyboard$app = storyboard.app) === null || _storyboard$app === void 0 ? void 0 : _storyboard$app.id, true);
9218
9218
  }
9219
9219
  }
9220
- // 每个 storyboard 仅注册一次custom-template
9220
+ // 每个 storyboard 仅注册一次 custom-template
9221
9221
  storyboard.$$registerCustomTemplateProcessed = true;
9222
9222
  }
9223
9223
  }
@@ -9372,7 +9372,7 @@ class Kernel {
9372
9372
  try {
9373
9373
  var allMagicBrickConfig = (yield InstanceApi_postSearch("_BRICK_MAGIC", {
9374
9374
  page: 1,
9375
- // TODO(Lynette): 暂时设置3000,待后台提供全量接口
9375
+ // TODO(Lynette): 暂时设置 3000,待后台提供全量接口
9376
9376
  page_size: 3000,
9377
9377
  fields: {
9378
9378
  "*": true