@contentful/experiences-core 1.31.1-beta.0 → 1.31.1-dev-20250219T1207-190e914.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
@@ -1244,33 +1244,8 @@ const ComponentVariableSchema = z.object({
1244
1244
  });
1245
1245
  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
1246
1246
  ComponentVariableSchema);
1247
- const THUMBNAIL_IDS = [
1248
- 'columns',
1249
- 'columnsPlusRight',
1250
- 'imagesSquare',
1251
- 'subtitles',
1252
- 'rowsPlusBottom',
1253
- 'userRectangle',
1254
- 'textbox',
1255
- 'monitorPlay',
1256
- 'article',
1257
- 'table',
1258
- 'star',
1259
- 'heartStraight',
1260
- 'frameCorners',
1261
- 'rows',
1262
- 'dotsThreeOutline',
1263
- 'listDashes',
1264
- 'checkerBoard',
1265
- 'gridFour',
1266
- 'slideshow',
1267
- 'diamondsFour',
1268
- 'cards',
1269
- 'textColumns',
1270
- ];
1271
1247
  const ComponentSettingsSchema = z.object({
1272
1248
  variableDefinitions: ComponentVariablesSchema,
1273
- thumbnailId: z.enum(THUMBNAIL_IDS).optional(),
1274
1249
  variableMappings: VariableMappingsSchema.optional(),
1275
1250
  patternPropertyDefinitions: PatternPropertyDefinitionsSchema.optional(),
1276
1251
  });
@@ -2438,11 +2413,11 @@ function getArrayValue(entryOrAsset, path, entityStore) {
2438
2413
  return result;
2439
2414
  }
2440
2415
 
2441
- const transformBoundContentValue = (variables, entityStore, binding, resolveDesignValue, variableName, variableType, path) => {
2416
+ const transformBoundContentValue = (variables, entityStore, binding, resolveDesignValue, variableName, variableDefinition, path) => {
2442
2417
  const entityOrAsset = entityStore.getEntryOrAsset(binding, path);
2443
2418
  if (!entityOrAsset)
2444
2419
  return;
2445
- switch (variableType) {
2420
+ switch (variableDefinition.type) {
2446
2421
  case 'Media':
2447
2422
  // If we bound a normal entry field to the media variable we just return the bound value
2448
2423
  if (entityOrAsset.sys.type === 'Entry') {