@contentful/experiences-core 1.24.0-dev-20241204T1746-125f670.0 → 1.25.0-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 +1 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1164,6 +1164,7 @@ const UnboundValuesSchema = z.record(uuidKeySchema, z.object({
|
|
|
1164
1164
|
}));
|
|
1165
1165
|
// Use helper schema to define a recursive schema with its type correctly below
|
|
1166
1166
|
const BaseComponentTreeNodeSchema = z.object({
|
|
1167
|
+
id: uuidKeySchema.optional(),
|
|
1167
1168
|
definitionId: DefinitionPropertyKeySchema,
|
|
1168
1169
|
displayName: z.string().optional(),
|
|
1169
1170
|
slotId: z.string().optional(),
|
|
@@ -1733,13 +1734,11 @@ const detachExperienceStyles = (experience) => {
|
|
|
1733
1734
|
// making sure that we respect the order of breakpoints from
|
|
1734
1735
|
// we can achieve "desktop first" or "mobile first" approach to style over-writes
|
|
1735
1736
|
if (patternWrapper) {
|
|
1736
|
-
// @ts-expect-error -- temporarily add node ID to pick up the className during rendering in CompositionBlock
|
|
1737
1737
|
currentNode.id = currentNode.id ?? generateRandomId(15);
|
|
1738
1738
|
// @ts-expect-error -- valueByBreakpoint is not explicitly defined, but it's already defined in the patternWrapper styles
|
|
1739
1739
|
patternWrapper.variables.cfSsrClassName = {
|
|
1740
1740
|
...(patternWrapper.variables.cfSsrClassName ?? {}),
|
|
1741
1741
|
type: 'DesignValue',
|
|
1742
|
-
// @ts-expect-error -- id is not defined in ComponentTreeNode type
|
|
1743
1742
|
[currentNode.id]: {
|
|
1744
1743
|
valuesByBreakpoint: {
|
|
1745
1744
|
[breakpointIds[0]]: currentNodeClassNames.join(' '),
|