@contentful/experiences-core 1.28.0-dev-20241219T0927-3c85f22.0 → 1.28.0-dev-20241220T1621-454d526.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 +4 -2
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils/breakpoints.d.ts +1 -1
- package/package.json +3 -3
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:
|
|
1170
|
+
id: ComponentTreeNodeIdSchema.optional(),
|
|
1168
1171
|
definitionId: DefinitionPropertyKeySchema,
|
|
1169
1172
|
displayName: z.string().optional(),
|
|
1170
1173
|
slotId: z.string().optional(),
|
|
@@ -2517,7 +2520,6 @@ const getValueForBreakpoint = (valuesByBreakpoint, breakpoints, activeBreakpoint
|
|
|
2517
2520
|
// Old design properties did not support breakpoints, keep for backward compatibility
|
|
2518
2521
|
return valuesByBreakpoint;
|
|
2519
2522
|
}
|
|
2520
|
-
return undefined;
|
|
2521
2523
|
};
|
|
2522
2524
|
|
|
2523
2525
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|