@uniformdev/transformer 1.1.48 → 1.1.49

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
@@ -5886,8 +5886,11 @@ var BlockFieldFlattenerService = class {
5886
5886
  }
5887
5887
  const allowedTypes = blockParam.typeConfig?.allowedTypes;
5888
5888
  if (!allowedTypes || allowedTypes.length === 0) {
5889
+ const paramType = blockParam.type ?? "unknown";
5890
+ const hasTypeConfig = !!blockParam.typeConfig;
5891
+ const typeConfigKeys = hasTypeConfig ? Object.keys(blockParam.typeConfig).join(", ") : "none";
5889
5892
  throw new TransformError(
5890
- `Parameter "${parameterId}" on component "${componentId}" has no allowedTypes in typeConfig`
5893
+ `Parameter "${parameterId}" on component "${componentId}" has no allowedTypes in typeConfig. Parameter type is "${paramType}"${paramType !== "contentBlock" ? ` (expected "contentBlock" \u2014 this parameter may not be a block field)` : ""}. typeConfig ${hasTypeConfig ? `exists with keys: [${typeConfigKeys}] but "allowedTypes" is missing or empty` : "is missing entirely \u2014 the block type was not populated during export/serialization"}`
5891
5894
  );
5892
5895
  }
5893
5896
  if (allowedTypes.length > 1) {
@@ -7473,7 +7476,7 @@ function createPropagateRootSlotCommand() {
7473
7476
  // package.json
7474
7477
  var package_default = {
7475
7478
  name: "@uniformdev/transformer",
7476
- version: "1.1.48",
7479
+ version: "1.1.49",
7477
7480
  description: "CLI tool for transforming Uniform.dev serialization files offline",
7478
7481
  type: "module",
7479
7482
  bin: {