@contentful/experiences-components-react 1.42.0-prerelease-20250630T1135-a8b68d4.0 → 1.42.1-beta.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 -20
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1396,29 +1396,13 @@ const ParameterDefinitionsSchema = z.record(propertyKeySchema, ParameterDefiniti
|
|
|
1396
1396
|
const VariableMappingsSchema = z.record(propertyKeySchema, VariableMappingSchema);
|
|
1397
1397
|
const ComponentVariablesSchema = z.record(z.string().regex(/^[a-zA-Z0-9-_]{1,54}$/), // Here the key is <variableName>_<nanoidId> so we need to allow for a longer length
|
|
1398
1398
|
ComponentVariableSchema);
|
|
1399
|
-
const
|
|
1400
|
-
.object({
|
|
1401
|
-
nodeId: propertyKeySchema,
|
|
1402
|
-
parameterId: propertyKeySchema,
|
|
1403
|
-
prebindingId: propertyKeySchema,
|
|
1404
|
-
})
|
|
1405
|
-
.strict();
|
|
1406
|
-
const PrebindingDefinitionSchema = z
|
|
1407
|
-
.object({
|
|
1408
|
-
id: propertyKeySchema,
|
|
1409
|
-
variableMappings: VariableMappingsSchema.optional(),
|
|
1410
|
-
parameterDefinitions: ParameterDefinitionsSchema,
|
|
1411
|
-
passToNodes: z.array(PassToNodeSchema).optional(),
|
|
1412
|
-
})
|
|
1413
|
-
.strict();
|
|
1414
|
-
const ComponentSettingsSchema = z
|
|
1415
|
-
.object({
|
|
1399
|
+
const ComponentSettingsSchema = z.object({
|
|
1416
1400
|
variableDefinitions: ComponentVariablesSchema,
|
|
1417
1401
|
thumbnailId: z.enum(THUMBNAIL_IDS).optional(),
|
|
1418
1402
|
category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1403
|
+
variableMappings: VariableMappingsSchema.optional(),
|
|
1404
|
+
parameterDefinitions: ParameterDefinitionsSchema.optional(),
|
|
1405
|
+
});
|
|
1422
1406
|
z.object({
|
|
1423
1407
|
componentTree: localeWrapper(ComponentTreeSchema),
|
|
1424
1408
|
dataSource: localeWrapper(DataSourceSchema),
|