@contentful/experiences-core 1.28.0-dev-20241219T0930-dc05f7f.0 → 1.28.0-dev-20250103T2247-b6bc301.0

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.js CHANGED
@@ -1162,9 +1162,12 @@ const BreakpointSchema = z
1162
1162
  const UnboundValuesSchema = z.record(uuidKeySchema, z.object({
1163
1163
  value: PrimitiveValueSchema,
1164
1164
  }));
1165
+ const ComponentTreeNodeIdSchema = z
1166
+ .string()
1167
+ .regex(/^[a-zA-Z0-9]{1,8}$/, { message: 'Does not match /^[a-zA-Z0-9]{1,8}$/' });
1165
1168
  // Use helper schema to define a recursive schema with its type correctly below
1166
1169
  const BaseComponentTreeNodeSchema = z.object({
1167
- id: uuidKeySchema.optional(),
1170
+ id: ComponentTreeNodeIdSchema.optional(),
1168
1171
  definitionId: DefinitionPropertyKeySchema,
1169
1172
  displayName: z.string().optional(),
1170
1173
  slotId: z.string().optional(),