@livepreso/content-react 2.0.0 → 2.0.2

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.0.2",
6
+ "tag": "@livepreso/content-react_v2.0.2",
7
+ "date": "Wed, 19 Nov 2025 03:51:23 GMT",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "comment": "Fix useCMSVal hook in CDK"
12
+ }
13
+ ]
14
+ }
15
+ },
16
+ {
17
+ "version": "2.0.1",
18
+ "tag": "@livepreso/content-react_v2.0.1",
19
+ "date": "Thu, 18 Sep 2025 00:33:25 GMT",
20
+ "comments": {
21
+ "patch": [
22
+ {
23
+ "comment": "Fix issue with detecting tempkey ID"
24
+ }
25
+ ]
26
+ }
27
+ },
4
28
  {
5
29
  "version": "2.0.0",
6
30
  "tag": "@livepreso/content-react_v2.0.0",
package/CHANGELOG.md CHANGED
@@ -1,6 +1,20 @@
1
1
  # Change Log - @livepreso/content-react
2
2
 
3
- This log was last generated on Fri, 12 Sep 2025 02:07:08 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 19 Nov 2025 03:51:23 GMT and should not be manually modified.
4
+
5
+ ## 2.0.2
6
+ Wed, 19 Nov 2025 03:51:23 GMT
7
+
8
+ ### Patches
9
+
10
+ - Fix useCMSVal hook in CDK
11
+
12
+ ## 2.0.1
13
+ Thu, 18 Sep 2025 00:33:25 GMT
14
+
15
+ ### Patches
16
+
17
+ - Fix issue with detecting tempkey ID
4
18
 
5
19
  ## 2.0.0
6
20
  Fri, 12 Sep 2025 02:07:08 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/lib/utils.js CHANGED
@@ -53,7 +53,7 @@ export function testCWEJSONExists({
53
53
  * and user templates, eg. getPMTemplateFieldKey() and getUserTemplateFieldKey().
54
54
  */
55
55
  function getSlideID(slideID) {
56
- const numericRegex = /-(\d\w+)(?:-temp)*$/;
56
+ const numericRegex = /-([\d\w]+)(?:-temp)*$/;
57
57
  return slideID.match(numericRegex)?.[1];
58
58
  }
59
59
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livepreso/content-react",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "publishConfig": {