@contentful/experiences-core 2.0.0-prerelease-20250703T1150-c529c88.0 → 2.0.0-prerelease-20250704T1125-6c39a4b.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/entity/EntityStore.d.ts +1 -7
- package/dist/index.js +7 -10
- package/dist/index.js.map +1 -1
- package/dist/utils/breakpoints.d.ts +3 -3
- package/package.json +3 -3
|
@@ -29,13 +29,7 @@ declare class EntityStore extends EntityStoreBase {
|
|
|
29
29
|
}>;
|
|
30
30
|
}>;
|
|
31
31
|
get hoistedParameterDefinitions(): Record<string, {
|
|
32
|
-
contentTypes:
|
|
33
|
-
sys: {
|
|
34
|
-
type: "Link";
|
|
35
|
-
id: string;
|
|
36
|
-
linkType: "ContentType";
|
|
37
|
-
};
|
|
38
|
-
}>;
|
|
32
|
+
contentTypes: string[];
|
|
39
33
|
defaultSource?: {
|
|
40
34
|
type: "Entry";
|
|
41
35
|
contentTypeId: string;
|
package/dist/index.js
CHANGED
|
@@ -1059,13 +1059,7 @@ const ParameterDefinitionSchema = z.object({
|
|
|
1059
1059
|
}),
|
|
1060
1060
|
})
|
|
1061
1061
|
.optional(),
|
|
1062
|
-
contentTypes: z.
|
|
1063
|
-
sys: z.object({
|
|
1064
|
-
type: z.literal('Link'),
|
|
1065
|
-
id: z.string(),
|
|
1066
|
-
linkType: z.enum(['ContentType']),
|
|
1067
|
-
}),
|
|
1068
|
-
})),
|
|
1062
|
+
contentTypes: z.array(z.string()),
|
|
1069
1063
|
passToNodes: z.array(PassToNodeSchema).optional(),
|
|
1070
1064
|
});
|
|
1071
1065
|
const ParameterDefinitionsSchema = z.record(propertyKeySchema, ParameterDefinitionSchema);
|
|
@@ -1085,7 +1079,7 @@ const ComponentSettingsSchema = z
|
|
|
1085
1079
|
variableDefinitions: ComponentVariablesSchema,
|
|
1086
1080
|
thumbnailId: z.enum(THUMBNAIL_IDS).optional(),
|
|
1087
1081
|
category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
|
|
1088
|
-
prebindingDefinitions: z.array(PrebindingDefinitionSchema).
|
|
1082
|
+
prebindingDefinitions: z.array(PrebindingDefinitionSchema).length(1).optional(),
|
|
1089
1083
|
})
|
|
1090
1084
|
.strict();
|
|
1091
1085
|
z.object({
|
|
@@ -1458,7 +1452,10 @@ propertyName, resolveDesignTokens = true) => {
|
|
|
1458
1452
|
};
|
|
1459
1453
|
/** Overwrites the default value breakpoint by breakpoint. If a breakpoint
|
|
1460
1454
|
* is not overwritten, it will fall back to the default. */
|
|
1461
|
-
|
|
1455
|
+
function mergeDesignValuesByBreakpoint(defaultValue, overwriteValue) {
|
|
1456
|
+
if (!defaultValue || !overwriteValue) {
|
|
1457
|
+
return defaultValue ?? overwriteValue;
|
|
1458
|
+
}
|
|
1462
1459
|
const mergedValuesByBreakpoint = { ...defaultValue.valuesByBreakpoint };
|
|
1463
1460
|
for (const [breakpointId, value] of Object.entries(overwriteValue.valuesByBreakpoint)) {
|
|
1464
1461
|
if (!isValidBreakpointValue(value)) {
|
|
@@ -1470,7 +1467,7 @@ const mergeDesignValuesByBreakpoint = (defaultValue, overwriteValue) => {
|
|
|
1470
1467
|
type: 'DesignValue',
|
|
1471
1468
|
valuesByBreakpoint: mergedValuesByBreakpoint,
|
|
1472
1469
|
};
|
|
1473
|
-
}
|
|
1470
|
+
}
|
|
1474
1471
|
|
|
1475
1472
|
const CF_DEBUG_KEY = 'cf_debug';
|
|
1476
1473
|
/**
|