@contentful/experiences-core 3.7.0-dev-20250919T0822-6a47406.0 → 3.7.0-dev-20250919T1400-8d76591.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/types.d.ts CHANGED
@@ -191,11 +191,6 @@ type ExperienceTreeNode = {
191
191
  id: string;
192
192
  blockId?: string;
193
193
  slotId?: string;
194
- assembly?: {
195
- id: string;
196
- componentId: string;
197
- nodeLocation: string | null;
198
- };
199
194
  displayName?: string;
200
195
  props: Record<string, ComponentPropertyValue>;
201
196
  dataSource: ExperienceDataSource;
@@ -552,6 +547,7 @@ type RequestReadOnlyModePayload = undefined;
552
547
  type RequestEditorModePayload = undefined;
553
548
  type ExperienceUpdatedPayload = {
554
549
  tree: ExperienceTree;
550
+ /** @deprecated not needed after `patternResolution` was introduced. Will be removed in the next major version. */
555
551
  assemblies?: ExperienceUsedComponents;
556
552
  locale: string;
557
553
  changedNode?: ExperienceTreeNode;
@@ -23,5 +23,10 @@ interface ParsedValue {
23
23
  }
24
24
  declare function parseCSSValue(input: string): ParsedValue | null;
25
25
  declare function getTargetValueInPixels(targetWidthObject: ParsedValue): number;
26
+ /**
27
+ * Creates a component definition for an assembly. As all assemblies use the same definition in the SDK,
28
+ * all should be registered via this function.
29
+ */
30
+ declare const createAssemblyDefinition: (definitionId: string) => ComponentDefinition;
26
31
 
27
- export { checkIsAssemblyDefinition, checkIsAssemblyEntry, checkIsAssemblyNode, generateRandomId, getDataFromTree, getTargetValueInPixels, parseCSSValue };
32
+ export { checkIsAssemblyDefinition, checkIsAssemblyEntry, checkIsAssemblyNode, createAssemblyDefinition, generateRandomId, getDataFromTree, getTargetValueInPixels, parseCSSValue };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experiences-core",
3
- "version": "3.7.0-dev-20250919T0822-6a47406.0",
3
+ "version": "3.7.0-dev-20250919T1400-8d76591.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -80,7 +80,7 @@
80
80
  "vitest": "^2.1.1"
81
81
  },
82
82
  "dependencies": {
83
- "@contentful/experiences-validators": "3.7.0-dev-20250919T0822-6a47406.0",
83
+ "@contentful/experiences-validators": "3.7.0-dev-20250919T1400-8d76591.0",
84
84
  "@contentful/rich-text-types": "^17.0.0",
85
85
  "lodash.clonedeep": "^4.5.0",
86
86
  "zustand": "^4.4.7"
@@ -88,5 +88,5 @@
88
88
  "peerDependencies": {
89
89
  "contentful": ">=10.6.0"
90
90
  },
91
- "gitHead": "e7cb33be651ad16bb5b3c227ce48694d1e259814"
91
+ "gitHead": "5e7638afea05af4aca5130f77907c4733482a85f"
92
92
  }