@contentful/experiences-components-react 3.6.1-dev-20250909T1146-4eefde4.0 → 3.6.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.
package/dist/index.js CHANGED
@@ -1477,20 +1477,8 @@ z.object({
1477
1477
  componentSettings: localeWrapper(ComponentSettingsSchema),
1478
1478
  });
1479
1479
 
1480
- z
1481
- .object({
1480
+ z.object({
1482
1481
  id: DefinitionPropertyKeySchema,
1483
- name: z.string(),
1484
- category: z.string().optional(),
1485
- thumbnailUrl: z.string().optional(),
1486
- thumbnailId: z.string().optional(),
1487
- hyperlinkPattern: z.string().optional(),
1488
- children: z.boolean().optional(),
1489
- slots: z
1490
- .record(DefinitionPropertyKeySchema, z.object({ displayName: z.string().optional() }))
1491
- .optional(),
1492
- builtInStyles: z.array(z.string()).optional(),
1493
- tooltip: z.object({ imageUrl: z.string().optional(), description: z.string() }).optional(),
1494
1482
  variables: z.record(DefinitionPropertyKeySchema, ComponentVariableSchema.extend({
1495
1483
  defaultValue: PrimitiveValueSchema.optional(),
1496
1484
  }).superRefine((val, ctx) => {
@@ -1596,27 +1584,6 @@ z
1596
1584
  break;
1597
1585
  }
1598
1586
  })),
1599
- })
1600
- .superRefine((val, ctx) => {
1601
- if (val.children === true && (!!val.variables.children || !!val.slots?.children)) {
1602
- ctx.addIssue({
1603
- code: z.ZodIssueCode.custom,
1604
- message: `Cannot activate 'children: true' and name a variable or slot 'children' at the same time`,
1605
- fatal: false,
1606
- });
1607
- }
1608
- // Ensure that slots and variables don't use the same names
1609
- if (val.variables && val.slots) {
1610
- Object.keys(val.variables).forEach((name) => {
1611
- if (val.slots[name]) {
1612
- ctx.addIssue({
1613
- code: z.ZodIssueCode.custom,
1614
- message: `Variable and slot cannot have the same name: ${name}`,
1615
- fatal: false,
1616
- });
1617
- }
1618
- });
1619
- }
1620
1587
  });
1621
1588
 
1622
1589
  var CodeNames;