@contentful/experiences-core 3.1.0-dev-20250807T0841-78e6af6.0 → 3.1.1-beta.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 (2) hide show
  1. package/dist/types.d.ts +18 -1
  2. package/package.json +3 -3
package/dist/types.d.ts CHANGED
@@ -68,7 +68,17 @@ type ComponentDefinition<T extends ComponentDefinitionPropertyType = ComponentDe
68
68
  slots?: Record<string, {
69
69
  displayName: string;
70
70
  }>;
71
+ /**
72
+ * List of built-in styles that can be applied to the component.
73
+ *
74
+ * Note that the property 'cfVisibility' is enforced on every component to control its visibility.
75
+ * @example ['cfWidth', 'cfPadding']
76
+ * @default ['cfMargin']
77
+ */
71
78
  builtInStyles?: Array<keyof Omit<StyleProps, 'cfHyperlink' | 'cfOpenInNewTab'>>;
79
+ /** Component allows passing child components inside it.
80
+ * @default false
81
+ */
72
82
  children?: boolean;
73
83
  tooltip?: {
74
84
  imageUrl?: string;
@@ -85,11 +95,18 @@ type ComponentRegistration = {
85
95
  */
86
96
  enableCustomEditorView?: boolean;
87
97
  wrapComponent?: boolean;
88
- wrapContainer?: keyof JSX.IntrinsicElements | React.ReactElement;
98
+ wrapContainer?: keyof JSX.IntrinsicElements;
99
+ /**
100
+ * @deprecated This option is not supported anymore and will be fully removed in the
101
+ * next major release v4. */
89
102
  wrapContainerWidth?: React.CSSProperties['width'];
90
103
  };
91
104
  };
92
105
  type ComponentRegistrationOptions = {
106
+ /**
107
+ * Restrict the list of built-in components to a defined set of IDs.
108
+ * @example ['contentful-container', 'contentful-button']
109
+ */
93
110
  enabledBuiltInComponents?: string[];
94
111
  experimentalComponents?: {
95
112
  carousel?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experiences-core",
3
- "version": "3.1.0-dev-20250807T0841-78e6af6.0",
3
+ "version": "3.1.1-beta.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -70,12 +70,12 @@
70
70
  "vitest": "^2.1.1"
71
71
  },
72
72
  "dependencies": {
73
- "@contentful/experiences-validators": "3.1.0-dev-20250807T0841-78e6af6.0",
73
+ "@contentful/experiences-validators": "3.1.1-beta.0",
74
74
  "@contentful/rich-text-types": "^17.0.0",
75
75
  "zustand": "^4.4.7"
76
76
  },
77
77
  "peerDependencies": {
78
78
  "contentful": ">=10.6.0"
79
79
  },
80
- "gitHead": "47f4f59e77a27fb606bcf876ed20c23a537cdd5c"
80
+ "gitHead": "1c47cc45d6535f193c77746b42d0fb4150f1e9c5"
81
81
  }