@contentful/experiences-sdk-react 3.8.0-dev-20250926T1440-9676290.0 → 3.8.0-dev-20250929T1202-cb99bde.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.
Files changed (29) hide show
  1. package/dist/blocks/preview/CompositionBlock.js +39 -36
  2. package/dist/blocks/preview/CompositionBlock.js.map +1 -1
  3. package/dist/blocks/preview/PreviewDeliveryRoot.js +18 -1
  4. package/dist/blocks/preview/PreviewDeliveryRoot.js.map +1 -1
  5. package/dist/core/preview/PrebindingManager.js +249 -0
  6. package/dist/core/preview/PrebindingManager.js.map +1 -0
  7. package/dist/core/preview/assemblyUtils.js +74 -38
  8. package/dist/core/preview/assemblyUtils.js.map +1 -1
  9. package/dist/core/styles/createStylesheetsForBuiltInStyles.js +1 -1
  10. package/dist/core/styles/createStylesheetsForBuiltInStyles.js.map +1 -1
  11. package/dist/index.d.ts +1 -1
  12. package/dist/sdkVersion.js +1 -1
  13. package/dist/sdkVersion.js.map +1 -1
  14. package/dist/src/blocks/preview/CompositionBlock.d.ts +3 -3
  15. package/dist/src/blocks/preview/PreviewDeliveryRoot.d.ts +1 -1
  16. package/dist/src/core/preview/PrebindingManager.d.ts +152 -0
  17. package/dist/src/core/preview/PrebindingManager.test.d.ts +1 -0
  18. package/dist/src/core/preview/__fixtures__.d.ts +517 -0
  19. package/dist/src/core/preview/assemblyUtils.d.ts +17 -8
  20. package/dist/src/core/styles/createStylesheetsForBuiltInStyles.d.ts +1 -1
  21. package/dist/src/sdkVersion.d.ts +1 -1
  22. package/dist/src/utils/parseComponentProps.d.ts +9 -3
  23. package/dist/src/utils/prebindingUtils.d.ts +6 -3
  24. package/dist/test/__fixtures__/assembly.d.ts +5 -2
  25. package/dist/utils/parseComponentProps.js +2 -2
  26. package/dist/utils/parseComponentProps.js.map +1 -1
  27. package/dist/utils/prebindingUtils.js +26 -12
  28. package/dist/utils/prebindingUtils.js.map +1 -1
  29. package/package.json +6 -6
@@ -0,0 +1,517 @@
1
+ export declare const l1: {
2
+ id: string;
3
+ nodeId: string;
4
+ parameterId: string;
5
+ prebindingDefinitions: {
6
+ id: string;
7
+ parameterDefinitions: Record<string, {
8
+ contentTypes: string[];
9
+ passToNodes: {
10
+ prebindingId: string;
11
+ parameterId: string;
12
+ nodeId: string;
13
+ }[];
14
+ defaultSource?: {
15
+ type: "Entry";
16
+ contentTypeId: string;
17
+ link: {
18
+ sys: {
19
+ type: "Link";
20
+ id: string;
21
+ linkType: "Entry";
22
+ };
23
+ };
24
+ } | undefined;
25
+ }>;
26
+ variableMappings?: Record<string, {
27
+ type: "ContentTypeMapping";
28
+ parameterId: string;
29
+ pathsByContentType: Record<string, {
30
+ path: string;
31
+ }>;
32
+ }> | undefined;
33
+ allowedVariableOverrides?: string[] | undefined;
34
+ }[];
35
+ contentTypes: string[];
36
+ defaultSource: {
37
+ type: "Entry";
38
+ contentTypeId: string;
39
+ link: {
40
+ sys: {
41
+ type: "Link";
42
+ id: string;
43
+ linkType: "Entry";
44
+ };
45
+ };
46
+ } | undefined;
47
+ };
48
+ export declare const l2: {
49
+ id: string;
50
+ nodeId: string;
51
+ parameterId: string;
52
+ prebindingDefinitions: {
53
+ id: string;
54
+ parameterDefinitions: Record<string, {
55
+ contentTypes: string[];
56
+ passToNodes: {
57
+ prebindingId: string;
58
+ parameterId: string;
59
+ nodeId: string;
60
+ }[];
61
+ defaultSource?: {
62
+ type: "Entry";
63
+ contentTypeId: string;
64
+ link: {
65
+ sys: {
66
+ type: "Link";
67
+ id: string;
68
+ linkType: "Entry";
69
+ };
70
+ };
71
+ } | undefined;
72
+ }>;
73
+ variableMappings?: Record<string, {
74
+ type: "ContentTypeMapping";
75
+ parameterId: string;
76
+ pathsByContentType: Record<string, {
77
+ path: string;
78
+ }>;
79
+ }> | undefined;
80
+ allowedVariableOverrides?: string[] | undefined;
81
+ }[];
82
+ contentTypes: string[];
83
+ defaultSource: {
84
+ type: "Entry";
85
+ contentTypeId: string;
86
+ link: {
87
+ sys: {
88
+ type: "Link";
89
+ id: string;
90
+ linkType: "Entry";
91
+ };
92
+ };
93
+ } | undefined;
94
+ };
95
+ export declare const l2_l1_1: {
96
+ id: string;
97
+ nodeId: string;
98
+ parameterId: string;
99
+ prebindingDefinitions: {
100
+ id: string;
101
+ parameterDefinitions: Record<string, {
102
+ contentTypes: string[];
103
+ passToNodes: {
104
+ prebindingId: string;
105
+ parameterId: string;
106
+ nodeId: string;
107
+ }[];
108
+ defaultSource?: {
109
+ type: "Entry";
110
+ contentTypeId: string;
111
+ link: {
112
+ sys: {
113
+ type: "Link";
114
+ id: string;
115
+ linkType: "Entry";
116
+ };
117
+ };
118
+ } | undefined;
119
+ }>;
120
+ variableMappings?: Record<string, {
121
+ type: "ContentTypeMapping";
122
+ parameterId: string;
123
+ pathsByContentType: Record<string, {
124
+ path: string;
125
+ }>;
126
+ }> | undefined;
127
+ allowedVariableOverrides?: string[] | undefined;
128
+ }[];
129
+ contentTypes: string[];
130
+ defaultSource: {
131
+ type: "Entry";
132
+ contentTypeId: string;
133
+ link: {
134
+ sys: {
135
+ type: "Link";
136
+ id: string;
137
+ linkType: "Entry";
138
+ };
139
+ };
140
+ } | undefined;
141
+ };
142
+ export declare const l2_l1_2: {
143
+ id: string;
144
+ nodeId: string;
145
+ parameterId: string;
146
+ prebindingDefinitions: {
147
+ id: string;
148
+ parameterDefinitions: Record<string, {
149
+ contentTypes: string[];
150
+ passToNodes: {
151
+ prebindingId: string;
152
+ parameterId: string;
153
+ nodeId: string;
154
+ }[];
155
+ defaultSource?: {
156
+ type: "Entry";
157
+ contentTypeId: string;
158
+ link: {
159
+ sys: {
160
+ type: "Link";
161
+ id: string;
162
+ linkType: "Entry";
163
+ };
164
+ };
165
+ } | undefined;
166
+ }>;
167
+ variableMappings?: Record<string, {
168
+ type: "ContentTypeMapping";
169
+ parameterId: string;
170
+ pathsByContentType: Record<string, {
171
+ path: string;
172
+ }>;
173
+ }> | undefined;
174
+ allowedVariableOverrides?: string[] | undefined;
175
+ }[];
176
+ contentTypes: string[];
177
+ defaultSource: {
178
+ type: "Entry";
179
+ contentTypeId: string;
180
+ link: {
181
+ sys: {
182
+ type: "Link";
183
+ id: string;
184
+ linkType: "Entry";
185
+ };
186
+ };
187
+ } | undefined;
188
+ };
189
+ export declare const l3: {
190
+ id: string;
191
+ nodeId: string;
192
+ parameterId: string;
193
+ prebindingDefinitions: {
194
+ id: string;
195
+ parameterDefinitions: Record<string, {
196
+ contentTypes: string[];
197
+ passToNodes: {
198
+ prebindingId: string;
199
+ parameterId: string;
200
+ nodeId: string;
201
+ }[];
202
+ defaultSource?: {
203
+ type: "Entry";
204
+ contentTypeId: string;
205
+ link: {
206
+ sys: {
207
+ type: "Link";
208
+ id: string;
209
+ linkType: "Entry";
210
+ };
211
+ };
212
+ } | undefined;
213
+ }>;
214
+ variableMappings?: Record<string, {
215
+ type: "ContentTypeMapping";
216
+ parameterId: string;
217
+ pathsByContentType: Record<string, {
218
+ path: string;
219
+ }>;
220
+ }> | undefined;
221
+ allowedVariableOverrides?: string[] | undefined;
222
+ }[];
223
+ contentTypes: string[];
224
+ defaultSource: {
225
+ type: "Entry";
226
+ contentTypeId: string;
227
+ link: {
228
+ sys: {
229
+ type: "Link";
230
+ id: string;
231
+ linkType: "Entry";
232
+ };
233
+ };
234
+ } | undefined;
235
+ };
236
+ export declare const l3_l2_1: {
237
+ id: string;
238
+ nodeId: string;
239
+ parameterId: string;
240
+ prebindingDefinitions: {
241
+ id: string;
242
+ parameterDefinitions: Record<string, {
243
+ contentTypes: string[];
244
+ passToNodes: {
245
+ prebindingId: string;
246
+ parameterId: string;
247
+ nodeId: string;
248
+ }[];
249
+ defaultSource?: {
250
+ type: "Entry";
251
+ contentTypeId: string;
252
+ link: {
253
+ sys: {
254
+ type: "Link";
255
+ id: string;
256
+ linkType: "Entry";
257
+ };
258
+ };
259
+ } | undefined;
260
+ }>;
261
+ variableMappings?: Record<string, {
262
+ type: "ContentTypeMapping";
263
+ parameterId: string;
264
+ pathsByContentType: Record<string, {
265
+ path: string;
266
+ }>;
267
+ }> | undefined;
268
+ allowedVariableOverrides?: string[] | undefined;
269
+ }[];
270
+ contentTypes: string[];
271
+ defaultSource: {
272
+ type: "Entry";
273
+ contentTypeId: string;
274
+ link: {
275
+ sys: {
276
+ type: "Link";
277
+ id: string;
278
+ linkType: "Entry";
279
+ };
280
+ };
281
+ } | undefined;
282
+ };
283
+ export declare const l3_l2_2: {
284
+ id: string;
285
+ nodeId: string;
286
+ parameterId: string;
287
+ prebindingDefinitions: {
288
+ id: string;
289
+ parameterDefinitions: Record<string, {
290
+ contentTypes: string[];
291
+ passToNodes: {
292
+ prebindingId: string;
293
+ parameterId: string;
294
+ nodeId: string;
295
+ }[];
296
+ defaultSource?: {
297
+ type: "Entry";
298
+ contentTypeId: string;
299
+ link: {
300
+ sys: {
301
+ type: "Link";
302
+ id: string;
303
+ linkType: "Entry";
304
+ };
305
+ };
306
+ } | undefined;
307
+ }>;
308
+ variableMappings?: Record<string, {
309
+ type: "ContentTypeMapping";
310
+ parameterId: string;
311
+ pathsByContentType: Record<string, {
312
+ path: string;
313
+ }>;
314
+ }> | undefined;
315
+ allowedVariableOverrides?: string[] | undefined;
316
+ }[];
317
+ contentTypes: string[];
318
+ defaultSource: {
319
+ type: "Entry";
320
+ contentTypeId: string;
321
+ link: {
322
+ sys: {
323
+ type: "Link";
324
+ id: string;
325
+ linkType: "Entry";
326
+ };
327
+ };
328
+ } | undefined;
329
+ };
330
+ export declare const l3_l2_l1_1: {
331
+ id: string;
332
+ nodeId: string;
333
+ parameterId: string;
334
+ prebindingDefinitions: {
335
+ id: string;
336
+ parameterDefinitions: Record<string, {
337
+ contentTypes: string[];
338
+ passToNodes: {
339
+ prebindingId: string;
340
+ parameterId: string;
341
+ nodeId: string;
342
+ }[];
343
+ defaultSource?: {
344
+ type: "Entry";
345
+ contentTypeId: string;
346
+ link: {
347
+ sys: {
348
+ type: "Link";
349
+ id: string;
350
+ linkType: "Entry";
351
+ };
352
+ };
353
+ } | undefined;
354
+ }>;
355
+ variableMappings?: Record<string, {
356
+ type: "ContentTypeMapping";
357
+ parameterId: string;
358
+ pathsByContentType: Record<string, {
359
+ path: string;
360
+ }>;
361
+ }> | undefined;
362
+ allowedVariableOverrides?: string[] | undefined;
363
+ }[];
364
+ contentTypes: string[];
365
+ defaultSource: {
366
+ type: "Entry";
367
+ contentTypeId: string;
368
+ link: {
369
+ sys: {
370
+ type: "Link";
371
+ id: string;
372
+ linkType: "Entry";
373
+ };
374
+ };
375
+ } | undefined;
376
+ };
377
+ export declare const l3_l2_l1_2: {
378
+ id: string;
379
+ nodeId: string;
380
+ parameterId: string;
381
+ prebindingDefinitions: {
382
+ id: string;
383
+ parameterDefinitions: Record<string, {
384
+ contentTypes: string[];
385
+ passToNodes: {
386
+ prebindingId: string;
387
+ parameterId: string;
388
+ nodeId: string;
389
+ }[];
390
+ defaultSource?: {
391
+ type: "Entry";
392
+ contentTypeId: string;
393
+ link: {
394
+ sys: {
395
+ type: "Link";
396
+ id: string;
397
+ linkType: "Entry";
398
+ };
399
+ };
400
+ } | undefined;
401
+ }>;
402
+ variableMappings?: Record<string, {
403
+ type: "ContentTypeMapping";
404
+ parameterId: string;
405
+ pathsByContentType: Record<string, {
406
+ path: string;
407
+ }>;
408
+ }> | undefined;
409
+ allowedVariableOverrides?: string[] | undefined;
410
+ }[];
411
+ contentTypes: string[];
412
+ defaultSource: {
413
+ type: "Entry";
414
+ contentTypeId: string;
415
+ link: {
416
+ sys: {
417
+ type: "Link";
418
+ id: string;
419
+ linkType: "Entry";
420
+ };
421
+ };
422
+ } | undefined;
423
+ };
424
+ export declare const l3_l2_l1_3: {
425
+ id: string;
426
+ nodeId: string;
427
+ parameterId: string;
428
+ prebindingDefinitions: {
429
+ id: string;
430
+ parameterDefinitions: Record<string, {
431
+ contentTypes: string[];
432
+ passToNodes: {
433
+ prebindingId: string;
434
+ parameterId: string;
435
+ nodeId: string;
436
+ }[];
437
+ defaultSource?: {
438
+ type: "Entry";
439
+ contentTypeId: string;
440
+ link: {
441
+ sys: {
442
+ type: "Link";
443
+ id: string;
444
+ linkType: "Entry";
445
+ };
446
+ };
447
+ } | undefined;
448
+ }>;
449
+ variableMappings?: Record<string, {
450
+ type: "ContentTypeMapping";
451
+ parameterId: string;
452
+ pathsByContentType: Record<string, {
453
+ path: string;
454
+ }>;
455
+ }> | undefined;
456
+ allowedVariableOverrides?: string[] | undefined;
457
+ }[];
458
+ contentTypes: string[];
459
+ defaultSource: {
460
+ type: "Entry";
461
+ contentTypeId: string;
462
+ link: {
463
+ sys: {
464
+ type: "Link";
465
+ id: string;
466
+ linkType: "Entry";
467
+ };
468
+ };
469
+ } | undefined;
470
+ };
471
+ export declare const l3_l2_l1_4: {
472
+ id: string;
473
+ nodeId: string;
474
+ parameterId: string;
475
+ prebindingDefinitions: {
476
+ id: string;
477
+ parameterDefinitions: Record<string, {
478
+ contentTypes: string[];
479
+ passToNodes: {
480
+ prebindingId: string;
481
+ parameterId: string;
482
+ nodeId: string;
483
+ }[];
484
+ defaultSource?: {
485
+ type: "Entry";
486
+ contentTypeId: string;
487
+ link: {
488
+ sys: {
489
+ type: "Link";
490
+ id: string;
491
+ linkType: "Entry";
492
+ };
493
+ };
494
+ } | undefined;
495
+ }>;
496
+ variableMappings?: Record<string, {
497
+ type: "ContentTypeMapping";
498
+ parameterId: string;
499
+ pathsByContentType: Record<string, {
500
+ path: string;
501
+ }>;
502
+ }> | undefined;
503
+ allowedVariableOverrides?: string[] | undefined;
504
+ }[];
505
+ contentTypes: string[];
506
+ defaultSource: {
507
+ type: "Entry";
508
+ contentTypeId: string;
509
+ link: {
510
+ sys: {
511
+ type: "Link";
512
+ id: string;
513
+ linkType: "Entry";
514
+ };
515
+ };
516
+ } | undefined;
517
+ };
@@ -1,17 +1,26 @@
1
1
  import { EntityStore } from '@contentful/experiences-core';
2
2
  import type { ComponentTreeNode, ExperienceComponentSettings, Parameter } from '@contentful/experiences-core/types';
3
+ type ComponentTreeNodeWithPatternInformation = ComponentTreeNode & {
4
+ pattern?: {
5
+ parentPatternNodeId: string;
6
+ nodeIdOnPattern: string;
7
+ prefixedNodeId: string;
8
+ };
9
+ };
3
10
  /** While unfolding the pattern definition on the instance, this function will replace all
4
11
  * ComponentValue in the definitions tree with the actual value on the instance. */
5
- export declare const deserializePatternNode: ({ node, componentInstanceVariables, componentSettings, parameters, entityStore, }: {
12
+ export declare const deserializePatternNode: ({ node, rootPatternVariables, componentSettings, entityStore, rootPatternParameters, parentPatternRootNodeIdsChain, }: {
6
13
  node: ComponentTreeNode;
7
- componentInstanceVariables: ComponentTreeNode["variables"];
14
+ rootPatternVariables: ComponentTreeNode["variables"];
8
15
  componentSettings: ExperienceComponentSettings;
9
- parameters: Record<string, Parameter>;
10
16
  entityStore: EntityStore;
11
- }) => ComponentTreeNode;
12
- export declare const resolvePattern: ({ node, parentParameters, patternRootNodeIdsChain, entityStore, }: {
17
+ rootPatternParameters: Record<string, Parameter>;
18
+ parentPatternRootNodeIdsChain: string[];
19
+ }) => ComponentTreeNodeWithPatternInformation;
20
+ export declare const resolvePattern: ({ node, entityStore, parentPatternRootNodeIdsChain, rootPatternParameters, }: {
13
21
  node: ComponentTreeNode;
14
22
  entityStore: EntityStore;
15
- parentParameters: Record<string, Parameter>;
16
- patternRootNodeIdsChain: string;
17
- }) => ComponentTreeNode;
23
+ parentPatternRootNodeIdsChain: string[];
24
+ rootPatternParameters: Record<string, Parameter>;
25
+ }) => ComponentTreeNodeWithPatternInformation;
26
+ export {};
@@ -20,5 +20,5 @@ export declare const createStylesheetsForBuiltInStyles: ({ designPropertiesByBre
20
20
  designPropertiesByBreakpoint: Record<string, Record<string, PrimitiveValue>>;
21
21
  breakpoints: Breakpoint[];
22
22
  node: ComponentTreeNode;
23
- patternRootNodeIdsChain?: string;
23
+ patternRootNodeIdsChain?: Array<string>;
24
24
  }) => ResolvedStylesheetData;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.8.0-dev-20250926T1440-9676290.0";
1
+ export declare const SDK_VERSION = "3.8.0-dev-20250929T1202-cb99bde.0";
@@ -15,11 +15,11 @@ type ResolveBoundValueType = (data: {
15
15
  dataType: ComponentDefinitionVariableType;
16
16
  binding: BoundValue;
17
17
  }) => BoundComponentPropertyTypes;
18
- export declare const parseComponentProps: ({ breakpoints, componentDefinition, patternRootNodeIdsChain, node, resolveDesignValue, resolveBoundValue, resolveHyperlinkValue, resolveUnboundValue, resolvePrebindingValue, }: {
18
+ export declare const parseComponentProps: ({ breakpoints, componentDefinition, patternRootNodeIdsChain, node, resolveDesignValue, resolveBoundValue, resolveHyperlinkValue, resolveUnboundValue, resolveComponentValue, }: {
19
19
  breakpoints: Breakpoint[];
20
20
  mainBreakpoint: Breakpoint;
21
21
  componentDefinition: ComponentDefinition;
22
- patternRootNodeIdsChain?: string;
22
+ patternRootNodeIdsChain: Array<string>;
23
23
  node: ComponentTreeNode;
24
24
  resolveDesignValue: ResolveDesignValueType;
25
25
  resolveBoundValue: ResolveBoundValueType;
@@ -30,7 +30,13 @@ export declare const parseComponentProps: ({ breakpoints, componentDefinition, p
30
30
  mappingKey: string;
31
31
  defaultValue: ComponentDefinitionVariable["defaultValue"];
32
32
  }) => PrimitiveValue;
33
- resolvePrebindingValue: (data: {
33
+ /**
34
+ * This method will be called to resolve the values for components that are native (not from nested pattern) to the previewed pattern
35
+ * Nested pattern's components are going to be resolved by the `resolvePattern` method from `assemblyUtils` file
36
+ * @param data
37
+ * @returns
38
+ */
39
+ resolveComponentValue: (data: {
34
40
  propertyName: string;
35
41
  mappingKey: string;
36
42
  dataType: ComponentDefinitionVariableType;
@@ -1,17 +1,20 @@
1
1
  import { type EntityStore } from '@contentful/experiences-core';
2
2
  import { ExperienceComponentSettings, Parameter } from '@contentful/experiences-validators';
3
- export declare const shouldUsePrebinding: ({ componentValueKey, componentSettings, parameters, }: {
3
+ export declare const shouldUsePrebinding: ({ componentValueKey, componentSettings, parameters, patternRootNodeIdsChain, }: {
4
4
  componentValueKey: string;
5
5
  componentSettings: ExperienceComponentSettings;
6
6
  parameters: Record<string, Parameter>;
7
+ patternRootNodeIdsChain: string[];
7
8
  }) => boolean;
8
- export declare const resolvePrebindingPath: ({ componentValueKey, componentSettings, parameters, entityStore, }: {
9
+ export declare const resolvePrebindingPath: ({ componentValueKey, componentSettings, parameters, entityStore, patternRootNodeIdsChain, }: {
9
10
  componentValueKey: string;
10
11
  componentSettings: ExperienceComponentSettings;
11
12
  parameters: Record<string, Parameter>;
12
13
  entityStore: EntityStore;
14
+ patternRootNodeIdsChain: string[];
13
15
  }) => string;
14
- export declare const resolveMaybePrebindingDefaultValuePath: ({ componentValueKey, entityStore, }: {
16
+ export declare const resolveMaybePrebindingDefaultValuePath: ({ componentValueKey, patternRootNodeIdsChain, entityStore, }: {
15
17
  componentValueKey: string;
18
+ patternRootNodeIdsChain: string[];
16
19
  entityStore: EntityStore;
17
20
  }) => string | undefined;
@@ -1,4 +1,5 @@
1
- import type { ComponentTreeNode, ExperienceEntry, ExperienceTreeNode, SchemaVersions } from '@contentful/experiences-core/types';
1
+ import type { ComponentTreeNode, ExperienceComponentSettings, ExperienceEntry, ExperienceTreeNode, SchemaVersions } from '@contentful/experiences-core/types';
2
+ import { ExperienceComponentTree } from '@contentful/experiences-validators';
2
3
  type createAssemblyEntryArgs = {
3
4
  schemaVersion?: SchemaVersions;
4
5
  id?: string;
@@ -6,11 +7,13 @@ type createAssemblyEntryArgs = {
6
7
  entry: ExperienceEntry;
7
8
  node: ComponentTreeNode;
8
9
  }>;
10
+ prebindingDefinitions?: ExperienceComponentSettings['prebindingDefinitions'];
11
+ componentTreeChildren?: ExperienceComponentTree['children'];
9
12
  };
10
13
  export declare const defaultAssemblyId = "assembly-id";
11
14
  export declare const assemblyGeneratedVariableName = "text_uuid1Assembly";
12
15
  export declare const assemblyGeneratedDesignVariableName = "cfWidth_uuid2Assembly";
13
- export declare const createAssemblyEntry: ({ schemaVersion, id, nestedPatterns, }?: createAssemblyEntryArgs) => ExperienceEntry;
16
+ export declare const createAssemblyEntry: ({ schemaVersion, id, nestedPatterns, prebindingDefinitions, componentTreeChildren, }?: createAssemblyEntryArgs) => ExperienceEntry;
14
17
  type createAssemblyNodeArgs = {
15
18
  id: string;
16
19
  blockId?: string;
@@ -15,7 +15,7 @@ import { createStylesheetsForBuiltInStyles } from '../core/styles/createStyleshe
15
15
  const isSpecialCaseCssProp = (propName) => {
16
16
  return propName === 'cfBackgroundImageUrl' || propName.startsWith('cfBackgroundImageUrl_');
17
17
  };
18
- const parseComponentProps = ({ breakpoints, componentDefinition, patternRootNodeIdsChain, node, resolveDesignValue, resolveBoundValue, resolveHyperlinkValue, resolveUnboundValue, resolvePrebindingValue, }) => {
18
+ const parseComponentProps = ({ breakpoints, componentDefinition, patternRootNodeIdsChain, node, resolveDesignValue, resolveBoundValue, resolveHyperlinkValue, resolveUnboundValue, resolveComponentValue, }) => {
19
19
  const styleProps = {};
20
20
  const customDesignProps = {};
21
21
  const contentProps = {};
@@ -85,7 +85,7 @@ const parseComponentProps = ({ breakpoints, componentDefinition, patternRootNode
85
85
  case 'ComponentValue': {
86
86
  // This can either be a design (style) or a content property.
87
87
  // Where prebinding is used, we resolve like they are a BoundValue.
88
- const propValue = resolvePrebindingValue({
88
+ const propValue = resolveComponentValue({
89
89
  propertyName: propName,
90
90
  mappingKey: propertyValue.key,
91
91
  dataType: propDefinition.type,