@next-core/brick-utils 2.51.0 → 2.51.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.
@@ -18265,10 +18265,21 @@
18265
18265
  var v3Processors = new Set();
18266
18266
  if ((bricks === null || bricks === void 0 ? void 0 : bricks.length) > 0 || (processors === null || processors === void 0 ? void 0 : processors.length) > 0 || (editorBricks === null || editorBricks === void 0 ? void 0 : editorBricks.length) > 0) {
18267
18267
  var brickMap = getBrickToPackageMap(brickPackages);
18268
+ var v3DefinedBricks = new Set();
18269
+ for (var pkg of brickPackages) {
18270
+ var {
18271
+ id,
18272
+ elements
18273
+ } = pkg;
18274
+ if (id && elements !== null && elements !== void 0 && elements.length) {
18275
+ for (var element of elements) {
18276
+ v3DefinedBricks.add(element);
18277
+ }
18278
+ }
18279
+ }
18268
18280
  [...(bricks !== null && bricks !== void 0 ? bricks : []).map(n => [n]), ...(processors !== null && processors !== void 0 ? processors : []).map(n => [n, true])].forEach(_ref2 => {
18269
18281
  var [name, isProcessor] = _ref2;
18270
18282
  // ignore custom template
18271
- // istanbul ignore else
18272
18283
  if (name.includes(".")) {
18273
18284
  var namespace = name.split(".")[0];
18274
18285
  // processor 是 camelCase 格式,转成 brick 的 param-case 格式,统一去判断
@@ -18291,6 +18302,8 @@
18291
18302
  // eslint-disable-next-line no-console
18292
18303
  console.error("".concat(isProcessor ? "Processor" : "Brick", " `").concat(name, "` does not match any brick package"));
18293
18304
  }
18305
+ } else if (!name.startsWith("tpl-") && v3DefinedBricks.has(name)) {
18306
+ v3Bricks.add(name);
18294
18307
  }
18295
18308
  });
18296
18309
  editorBricks === null || editorBricks === void 0 ? void 0 : editorBricks.forEach(editor => {