@livepreso/content-react 2.2.1 → 2.2.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,18 @@
1
1
  {
2
2
  "name": "@livepreso/content-react",
3
3
  "entries": [
4
+ {
5
+ "version": "2.2.2",
6
+ "tag": "@livepreso/content-react_v2.2.2",
7
+ "date": "Thu, 03 Sep 2026 03:12:08 GMT",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "comment": "Point useCMSVal() React hook at Bridge.CMSVals.get() when screenshotting for thumbnails"
12
+ }
13
+ ]
14
+ }
15
+ },
4
16
  {
5
17
  "version": "2.2.1",
6
18
  "tag": "@livepreso/content-react_v2.2.1",
package/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # Change Log - @livepreso/content-react
2
2
 
3
- This log was last generated on Thu, 12 Mar 2026 02:50:05 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 03 Sep 2026 03:12:08 GMT and should not be manually modified.
4
+
5
+ ## 2.2.2
6
+ Thu, 03 Sep 2026 03:12:08 GMT
7
+
8
+ ### Patches
9
+
10
+ - Point useCMSVal() React hook at Bridge.CMSVals.get() when screenshotting for thumbnails
4
11
 
5
12
  ## 2.2.1
6
13
  Thu, 12 Mar 2026 02:50:05 GMT
@@ -55,7 +55,8 @@ 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, isCdk } = useModes();
58
+ const { isPresomanager, isEmptyPreview, isCdk, isThumbnailScreenshot } =
59
+ useModes();
59
60
  const { isUserTemplate, isUserTemplateLibrary } = useSlide();
60
61
  const [userTemplateValue, setUserTemplateValue] = useUserTemplateCMS(id);
61
62
  const defaultFromPM = useDefaultCMSValueFromPresomanager(id, { slidePath });
@@ -74,7 +75,12 @@ export function useCMSVal(id, { enabled = true, slidePath = null } = {}) {
74
75
  return userTemplateValue;
75
76
  }
76
77
 
77
- if (!isCdk && !isPresomanager && !isEmptyPreview) {
78
+ if (
79
+ !isCdk &&
80
+ !isPresomanager &&
81
+ !isEmptyPreview &&
82
+ !isThumbnailScreenshot
83
+ ) {
78
84
  return defaultFromPM;
79
85
  }
80
86
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livepreso/content-react",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "publishConfig": {