gatsby-core-theme 33.1.11 → 33.1.12

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.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## [33.1.12](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v33.1.11...v33.1.12) (2024-07-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * fixed issue with collapse container ([6b54980](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/6b549804a17bea917c34fb3dde836ff660acdb96))
7
+
8
+
9
+ * Merge branch 'tm-4453-tnc-update' into 'master' ([feb7517](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/feb751769febe2eff8a5e0e6e1a3ab58592b35a7))
10
+ * Merge remote-tracking branch 'origin' into tm-4453-tnc-update ([c8f757e](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/c8f757e02c35a6f1c3e827e2cac8bfa8cc627348))
11
+
1
12
  ## [33.1.11](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v33.1.10...v33.1.11) (2024-07-05)
2
13
 
3
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "33.1.11",
3
+ "version": "33.1.12",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -42,14 +42,26 @@ const Collapse = ({
42
42
  >
43
43
  {buttonText}
44
44
  </button>
45
- <div
46
- ref={contentRef}
47
- className={`${onlyMobile ? styles?.contentM || '' : ''} ${
48
- onlyDesktop ? styles?.contentD || '' : ''
49
- } ${styles?.content || ''}`}
50
- style={onlyMobile || onlyDesktop ? { maxHeight: maxHeightStyle } : {}}
51
- dangerouslySetInnerHTML={{ __html: contentText }}
52
- />
45
+ {typeof contentText === 'string' ? (
46
+ <div
47
+ ref={contentRef}
48
+ className={`${onlyMobile ? styles?.contentM || '' : ''} ${
49
+ onlyDesktop ? styles?.contentD || '' : ''
50
+ } ${styles?.content || ''}`}
51
+ style={onlyMobile || onlyDesktop ? { maxHeight: maxHeightStyle } : {}}
52
+ dangerouslySetInnerHTML={{ __html: contentText }}
53
+ />
54
+ ) : (
55
+ <div
56
+ ref={contentRef}
57
+ className={`${onlyMobile ? styles?.contentM || '' : ''} ${
58
+ onlyDesktop ? styles?.contentD || '' : ''
59
+ } ${styles?.content || ''}`}
60
+ style={onlyMobile || onlyDesktop ? { maxHeight: maxHeightStyle } : {}}
61
+ >
62
+ {contentText}
63
+ </div>
64
+ )}
53
65
  </div>
54
66
  </div>
55
67
  );