@contentful/experiences-core 1.30.3-beta.0 → 1.30.3-dev-20250204T1623-73638f0.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 CHANGED
@@ -1150,18 +1150,14 @@ const ComponentValueSchema = z
1150
1150
  key: z.string(),
1151
1151
  })
1152
1152
  .strict();
1153
- // TODO: finalize schema structure before release
1154
- // https://contentful.atlassian.net/browse/LUMOS-523
1155
- const EmptyObjectSchema = z.object({ type: z.undefined() });
1156
1153
  const ComponentPropertyValueSchema = z.discriminatedUnion('type', [
1157
1154
  DesignValueSchema,
1158
1155
  BoundValueSchema,
1159
1156
  UnboundValueSchema,
1160
1157
  HyperlinkValueSchema,
1161
1158
  ComponentValueSchema,
1162
- EmptyObjectSchema,
1163
1159
  ]);
1164
- // TODO: finalize schema structure before release
1160
+ // TODO: finalized schema structure before release
1165
1161
  // https://contentful.atlassian.net/browse/LUMOS-523
1166
1162
  const VariableMappingSchema = z.object({
1167
1163
  patternPropertyDefinitionId: propertyKeySchema,
@@ -1169,20 +1165,17 @@ const VariableMappingSchema = z.object({
1169
1165
  pathsByContentType: z.record(z.string(), z.object({ path: z.string() })),
1170
1166
  });
1171
1167
  const VariableMappingsSchema = z.record(propertyKeySchema, VariableMappingSchema);
1172
- // TODO: finalize schema structure before release
1168
+ // TODO: finalized schema structure before release
1173
1169
  // https://contentful.atlassian.net/browse/LUMOS-523
1174
1170
  const PatternPropertyDefinitionSchema = z.object({
1175
- defaultValue: z.union([
1176
- z.object({
1177
- path: z.string(),
1178
- type: z.literal('BoundValue'),
1179
- }),
1180
- z.null(),
1181
- ]),
1171
+ defaultValue: z.object({
1172
+ path: z.string(),
1173
+ type: z.literal('BoundValue'),
1174
+ }),
1182
1175
  contentTypes: z.record(z.string(), z.any()),
1183
1176
  });
1184
1177
  const PatternPropertyDefinitionsSchema = z.record(propertyKeySchema, PatternPropertyDefinitionSchema);
1185
- // TODO: finalize schema structure before release
1178
+ // TODO: finalized schema structure before release
1186
1179
  // https://contentful.atlassian.net/browse/LUMOS-523
1187
1180
  const PatternPropertySchema = z.object({
1188
1181
  type: z.literal('BoundValue'),