@livepreso/content-react 2.0.1 → 2.1.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/CHANGELOG.json CHANGED
@@ -1,6 +1,30 @@
1
1
  {
2
2
  "name": "@livepreso/content-react",
3
3
  "entries": [
4
+ {
5
+ "version": "2.1.0",
6
+ "tag": "@livepreso/content-react_v2.1.0",
7
+ "date": "Tue, 25 Nov 2025 06:55:05 GMT",
8
+ "comments": {
9
+ "minor": [
10
+ {
11
+ "comment": "Support react 18 + 19"
12
+ }
13
+ ]
14
+ }
15
+ },
16
+ {
17
+ "version": "2.0.2",
18
+ "tag": "@livepreso/content-react_v2.0.2",
19
+ "date": "Wed, 19 Nov 2025 03:51:23 GMT",
20
+ "comments": {
21
+ "patch": [
22
+ {
23
+ "comment": "Fix useCMSVal hook in CDK"
24
+ }
25
+ ]
26
+ }
27
+ },
4
28
  {
5
29
  "version": "2.0.1",
6
30
  "tag": "@livepreso/content-react_v2.0.1",
package/CHANGELOG.md CHANGED
@@ -1,6 +1,20 @@
1
1
  # Change Log - @livepreso/content-react
2
2
 
3
- This log was last generated on Thu, 18 Sep 2025 00:33:25 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 25 Nov 2025 06:55:05 GMT and should not be manually modified.
4
+
5
+ ## 2.1.0
6
+ Tue, 25 Nov 2025 06:55:05 GMT
7
+
8
+ ### Minor changes
9
+
10
+ - Support react 18 + 19
11
+
12
+ ## 2.0.2
13
+ Wed, 19 Nov 2025 03:51:23 GMT
14
+
15
+ ### Patches
16
+
17
+ - Fix useCMSVal hook in CDK
4
18
 
5
19
  ## 2.0.1
6
20
  Thu, 18 Sep 2025 00:33:25 GMT
@@ -55,7 +55,7 @@ function useDefaultCMSValueFromPresomanager(id, { slidePath = null } = {}) {
55
55
 
56
56
  export function useCMSVal(id, { enabled = true, slidePath = null } = {}) {
57
57
  const { entered, entering } = useTransitions();
58
- const { isPresomanager, isEmptyPreview } = useModes();
58
+ const { isPresomanager, isEmptyPreview, isCdk } = useModes();
59
59
  const { isUserTemplate, isUserTemplateLibrary } = useSlide();
60
60
  const [userTemplateValue, setUserTemplateValue] = useUserTemplateCMS(id);
61
61
  const defaultFromPM = useDefaultCMSValueFromPresomanager(id, { slidePath });
@@ -74,7 +74,7 @@ export function useCMSVal(id, { enabled = true, slidePath = null } = {}) {
74
74
  return userTemplateValue;
75
75
  }
76
76
 
77
- if (!isPresomanager && !isEmptyPreview) {
77
+ if (!isCdk && !isPresomanager && !isEmptyPreview) {
78
78
  return defaultFromPM;
79
79
  }
80
80
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livepreso/content-react",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -14,9 +14,11 @@
14
14
  "@babel/preset-react": "~7.25.9",
15
15
  "@livepreso/eslint-config": "1.0.0"
16
16
  },
17
+ "peerDependencies": {
18
+ "react": ">= 18.0.0 <= 19.x",
19
+ "react-dom": ">= 18.0.0 <= 19.x"
20
+ },
17
21
  "dependencies": {
18
- "react": "~18.2.0",
19
- "react-dom": "~18.2.0",
20
22
  "@livepreso/content-base": "~1.1.8",
21
23
  "ulog": "~2.0.0-beta.19",
22
24
  "lodash.get": "~4.4.2",