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