@contentful/experiences-sdk-react 3.8.11-dev-20261008T0458-0d5219b.0 → 4.0.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/README.md CHANGED
@@ -1,4 +1,9 @@
1
1
  # @contentful/experiences-sdk-react
2
+
3
+ ### React support
4
+
5
+ React and React DOM 18 or later are required. React 16 and 17 consumers must upgrade both packages before installing this version. The SDK uses Zustand 5, which relies on React 18's `useSyncExternalStore` API.
6
+
2
7
  ### Purpose
3
8
  - To bundle up and expose features from other packages to be used by the end user. This is the package that users will install and import into their own React projects.
4
9
  - Note that this is a React-specific package. Therefore, unlike the core package, React specific compatibilities are implemented here and support for other frontend frameworks would result in a new package being created under a separate namespace.
@@ -15,4 +20,4 @@
15
20
 
16
21
  ### Relevant Contentful documentation links
17
22
  - [Component definition schema](https://www.contentful.com/developers/docs/experiences/component-definition-schema/)
18
- - [Data structures](https://www.contentful.com/developers/docs/experiences/data-structures/)
23
+ - [Data structures](https://www.contentful.com/developers/docs/experiences/data-structures/)
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ import * as _contentful_experiences_core_constants from '@contentful/experiences
8
8
  export { CF_STYLE_ATTRIBUTES, CONTENTFUL_COMPONENTS, LATEST_SCHEMA_VERSION } from '@contentful/experiences-core/constants';
9
9
  import { ContentfulClientApi } from 'contentful';
10
10
 
11
- declare const SDK_VERSION = "3.8.11-dev-20261008T0458-0d5219b.0";
11
+ declare const SDK_VERSION = "4.0.0";
12
12
 
13
13
  type ExperienceRootProps = {
14
14
  experience?: Experience<EntityStore> | string | null;
@@ -1,4 +1,4 @@
1
- const SDK_VERSION = '3.8.11-dev-20261008T0458-0d5219b.0';
1
+ const SDK_VERSION = '4.0.0';
2
2
 
3
3
  export { SDK_VERSION };
4
4
  //# sourceMappingURL=sdkVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdkVersion.js","sources":["../../src/sdkVersion.ts"],"sourcesContent":["export const SDK_VERSION = '3.8.11-dev-20261008T0458-0d5219b.0';\n"],"names":[],"mappings":"AAAO,MAAM,WAAW,GAAG;;"}
1
+ {"version":3,"file":"sdkVersion.js","sources":["../../src/sdkVersion.ts"],"sourcesContent":["export const SDK_VERSION = '4.0.0';\n"],"names":[],"mappings":"AAAO,MAAM,WAAW,GAAG;;"}
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.8.11-dev-20261008T0458-0d5219b.0";
1
+ export declare const SDK_VERSION = "4.0.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experiences-sdk-react",
3
- "version": "3.8.11-dev-20261008T0458-0d5219b.0",
3
+ "version": "4.0.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "typings": "./dist/src/index.d.ts",
@@ -41,10 +41,10 @@
41
41
  "depcruise": "depcruise src"
42
42
  },
43
43
  "dependencies": {
44
- "@contentful/experiences-components-react": "3.8.11-dev-20261008T0458-0d5219b.0",
45
- "@contentful/experiences-core": "3.8.11-dev-20261008T0458-0d5219b.0",
46
- "@contentful/experiences-validators": "3.8.11-dev-20261008T0458-0d5219b.0",
47
- "@contentful/experiences-visual-editor-react": "3.8.11-dev-20261008T0458-0d5219b.0",
44
+ "@contentful/experiences-components-react": "4.0.0",
45
+ "@contentful/experiences-core": "4.0.0",
46
+ "@contentful/experiences-validators": "4.0.0",
47
+ "@contentful/experiences-visual-editor-react": "4.0.0",
48
48
  "@contentful/rich-text-types": "^17.2.7",
49
49
  "csstype": "^3.2.3",
50
50
  "immer": "^11.1.18",
@@ -57,20 +57,20 @@
57
57
  "@rollup/plugin-typescript": "^12.3.0",
58
58
  "@semantic-release/changelog": "^7.0.0",
59
59
  "@testing-library/jest-dom": "^7.0.1",
60
- "@testing-library/react": "^16.3.3",
61
- "@testing-library/user-event": "^14.6.7",
60
+ "@testing-library/react": "^16.3.2",
61
+ "@testing-library/user-event": "^14.6.6",
62
62
  "@types/jest": "^30.0.0",
63
63
  "@types/md5": "^2.3.6",
64
64
  "@types/node": "^20.19.43",
65
65
  "@types/react": "^19.2.18",
66
66
  "@types/react-dom": "^19.2.5",
67
- "@vitejs/plugin-react": "^6.1.2",
67
+ "@vitejs/plugin-react": "^6.1.0",
68
68
  "@vitejs/plugin-react-swc": "^4.3.3",
69
69
  "contentful": "^11.12.9",
70
70
  "glob": "^13.0.6",
71
71
  "husky": "^9.1.7",
72
- "jest": "^30.5.2",
73
- "jest-environment-jsdom": "^30.5.2",
72
+ "jest": "^30.4.2",
73
+ "jest-environment-jsdom": "^30.4.1",
74
74
  "jsdom": "^30.0.1",
75
75
  "react": "^19.2.8",
76
76
  "react-dom": "^19.2.8",
@@ -79,7 +79,7 @@
79
79
  "rollup-plugin-node-externals": "^9.0.1",
80
80
  "rollup-plugin-preserve-directives": "^0.4.0",
81
81
  "semantic-release": "^25.0.9",
82
- "ts-jest": "^29.4.14",
82
+ "ts-jest": "^29.4.12",
83
83
  "typescript": "^7.0.2",
84
84
  "vite": "^5.4.8",
85
85
  "vite-plugin-css-injected-by-js": "^5.0.2",
@@ -88,12 +88,12 @@
88
88
  },
89
89
  "peerDependencies": {
90
90
  "contentful": ">=10.6.0",
91
- "react": ">=16.0.0",
92
- "react-dom": ">=16.0.0"
91
+ "react": ">=18.0.0",
92
+ "react-dom": ">=18.0.0"
93
93
  },
94
94
  "files": [
95
95
  "dist",
96
96
  "package.json"
97
97
  ],
98
- "gitHead": "00679d6fbe574191d41834bab7a0a04f0a0345dd"
98
+ "gitHead": "fd20ef004b00a7451027a10ac9cb7bbd8d971c7e"
99
99
  }