@contentful/experiences-core 3.3.1-dev-20250825T0713-34ae1b3.0 → 3.3.1-dev-20250825T1222-bc8206a.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
@@ -65,6 +65,8 @@ type ComponentDefinition<T extends ComponentDefinitionPropertyType = ComponentDe
65
65
  thumbnailId?: string;
66
66
  hyperlinkPattern?: string;
67
67
  variables: Partial<DesignVariableMap> & Record<string, ComponentDefinitionVariable<T>>;
68
+ /** Render child components in specified slots. This is an advanced version of the `children`
69
+ * configuration. We don't recommend using both together, as it can lead to unexpected behavior. */
68
70
  slots?: Record<string, {
69
71
  displayName: string;
70
72
  }>;
@@ -0,0 +1,12 @@
1
+ import { ExperienceTreeNode, ComponentRegistration } from '../types.js';
2
+ import { ComponentTreeNode } from '@contentful/experiences-validators';
3
+
4
+ declare const splitDirectAndSlotChildren: <T extends ExperienceTreeNode | ComponentTreeNode>(allChildNodes: T[], componentDefinition: ComponentRegistration["definition"]) => {
5
+ slotNodesMap: Record<string, T[] | null>;
6
+ directChildNodes: undefined;
7
+ } | {
8
+ slotNodesMap: Record<string, T[] | null>;
9
+ directChildNodes: T[];
10
+ };
11
+
12
+ export { splitDirectAndSlotChildren };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experiences-core",
3
- "version": "3.3.1-dev-20250825T0713-34ae1b3.0",
3
+ "version": "3.3.1-dev-20250825T1222-bc8206a.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -70,7 +70,7 @@
70
70
  "vitest": "^2.1.1"
71
71
  },
72
72
  "dependencies": {
73
- "@contentful/experiences-validators": "3.3.1-dev-20250825T0713-34ae1b3.0",
73
+ "@contentful/experiences-validators": "3.3.1-dev-20250825T1222-bc8206a.0",
74
74
  "@contentful/rich-text-types": "^17.0.0",
75
75
  "lodash-es": "^4.17.21",
76
76
  "zustand": "^4.4.7"
@@ -78,5 +78,5 @@
78
78
  "peerDependencies": {
79
79
  "contentful": ">=10.6.0"
80
80
  },
81
- "gitHead": "5f8a95f923c5195d258a4ca7719c1a83d4c4a627"
81
+ "gitHead": "c9c1ccd743f97daf89be601c8d7ed078492bdbf3"
82
82
  }