@uniformdev/transformer 1.1.46 → 1.1.47

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/cli/index.js CHANGED
@@ -7218,6 +7218,15 @@ var RootSlotPropagatorService = class {
7218
7218
  this.logger.debug(
7219
7219
  `Found ${compositions.length} composition(s) matching types [${compositionTypes.join(", ")}]`
7220
7220
  );
7221
+ const allowedFromSource = /* @__PURE__ */ new Set();
7222
+ for (const { sourceComponent } of sourceComponents) {
7223
+ for (const slotName of slotNames) {
7224
+ const slotDef = this.componentService.findSlot(sourceComponent, slotName, findOptions);
7225
+ for (const allowed of slotDef?.allowedComponents ?? []) {
7226
+ allowedFromSource.add(allowed);
7227
+ }
7228
+ }
7229
+ }
7221
7230
  const componentTypesInSlot = /* @__PURE__ */ new Set();
7222
7231
  for (const { composition } of compositions) {
7223
7232
  const rootSlots = composition.composition.slots ?? {};
@@ -7230,9 +7239,9 @@ var RootSlotPropagatorService = class {
7230
7239
  }
7231
7240
  }
7232
7241
  }
7233
- const collectedTypes = Array.from(componentTypesInSlot).sort();
7242
+ const collectedTypes = [.../* @__PURE__ */ new Set([...allowedFromSource, ...componentTypesInSlot])].sort();
7234
7243
  this.logger.info(
7235
- `Collected component types from slot contents: [${collectedTypes.join(", ")}]`
7244
+ `Collected allowedComponents: [${collectedTypes.join(", ")}] (from source definitions: [${[...allowedFromSource].sort().join(", ")}], from slot contents: [${[...componentTypesInSlot].sort().join(", ")}])`
7236
7245
  );
7237
7246
  let modifiedComponent = { ...targetComponent };
7238
7247
  let componentModified = false;
@@ -7447,7 +7456,7 @@ function createPropagateRootSlotCommand() {
7447
7456
  // package.json
7448
7457
  var package_default = {
7449
7458
  name: "@uniformdev/transformer",
7450
- version: "1.1.46",
7459
+ version: "1.1.47",
7451
7460
  description: "CLI tool for transforming Uniform.dev serialization files offline",
7452
7461
  type: "module",
7453
7462
  bin: {