gatsby-core-theme 40.0.6 → 40.0.8

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,28 @@
1
+ ## [40.0.8](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.7...v40.0.8) (2024-10-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * fix module postion adminbar ([52ad9a2](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/52ad9a2c23e21a445a1f5831adf683e0a8eb42a1))
7
+ * update code on validatedata component ([8c571c5](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/8c571c557182dd055bc767d632ff741e661af9a2))
8
+ * update code on validatedata component ([42e014f](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/42e014faa51ad42d5b59d9007343bead45c848a8))
9
+ * update code on validatedata component ([5bd7592](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/5bd7592d6c339f7cc3cea6d8145a0b2f619ba4a4))
10
+ * update code on validatedata component ([999034f](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/999034f6f6f8974d95d6315a0a8ac20b405df0d6))
11
+ * update valudateData component to include cardsv2 ([aec30dd](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/aec30dd454fe6fd991ea5a92ffdcfaf33d6fd333))
12
+
13
+
14
+ * Merge branch 'pre-main-cards-v2' into 'master' ([9dc2ad0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/9dc2ad00344bd752052d0371b77d10c895b18220))
15
+
16
+ ## [40.0.7](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.6...v40.0.7) (2024-10-22)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * content images ([67257c4](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/67257c4775f2b60dfe8fea26c7a43b854d938d92))
22
+
23
+
24
+ * Merge branch 'tm-4346-content-images' into 'master' ([92d468e](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/92d468ee4ea0b201a41893f7aff1a07c3ded9531))
25
+
1
26
  ## [40.0.6](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.5...v40.0.6) (2024-10-21)
2
27
 
3
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "40.0.6",
3
+ "version": "40.0.8",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -184,7 +184,7 @@ const Modules = ({ module, page, pageContext, modulePosition }) => {
184
184
  </Suspense>
185
185
  )}
186
186
 
187
- {admin && <AdminButton page={page} module={module} modulePosition={modulePosition} /> }
187
+ {admin && <AdminButton page={page} module={module} modulePosition={modulePosition - 1} /> }
188
188
  </div>
189
189
  )
190
190
  )
@@ -26,37 +26,19 @@ const processImageNode = (node, moduleWidth = 960, loading) => {
26
26
  stylesClass = 'alignRight';
27
27
  }
28
28
 
29
- let imgWidth
29
+ const imgWidthData = node?.attribs?.width?.replace('px', '')
30
+ || node?.attribs?.['data-width']?.replace('px', '')
31
+ || getValueFromStyle(node?.attribs?.style, 'width')
32
+ || '';
30
33
 
31
- if (node.attribs.width) {
32
- imgWidth =
33
- node.attribs.width > moduleWidth
34
- ? moduleWidth
35
- : node.attribs.width.replace('px', '')
36
- } else if (node?.attribs['data-width']) {
37
- imgWidth =
38
- node?.attribs['data-width'] > moduleWidth
39
- ? moduleWidth
40
- : node?.attribs['data-width']?.replace('px', '')
41
- } else {
42
- imgWidth = getValueFromStyle(node?.attribs?.style, 'width') || ''
43
- }
34
+ const imgWidth = parseFloat(imgWidthData) > moduleWidth ? moduleWidth : imgWidthData;
44
35
 
45
- let imgHeight
36
+ const imgHeightData = node?.attribs?.height
37
+ || node?.attribs?.['data-height']
38
+ || getValueFromStyle(node?.attribs?.style, 'height')
39
+ || '';
46
40
 
47
- if (node.attribs.height) {
48
- imgHeight =
49
- node.attribs.height === 'auto'
50
- ? '298'
51
- : node.attribs.height.replace('px', '')
52
- } else if (node.attribs['data-height']) {
53
- imgHeight =
54
- node.attribs['data-height'] === 'auto'
55
- ? '298'
56
- : node.attribs['data-height'].replace('px', '')
57
- } else {
58
- imgHeight = getValueFromStyle(node?.attribs?.style, 'height') || ''
59
- }
41
+ const imgHeight = imgHeightData === 'auto' ? '298' : imgHeightData.replace('px', '')
60
42
 
61
43
 
62
44
  const lazyProps = {
@@ -2,8 +2,12 @@
2
2
  // eslint-disable-next-line import/prefer-default-export
3
3
  export const checkForInactiveOperatorToplist = (item, status) => {
4
4
  const shortCode = item && item.items && item.items.length && item.items[0].value;
5
- if (item.name === 'top_list' && status === 'active' && shortCode === 'inactive_operator_toplist')
6
- return true;
5
+ if (
6
+ ((item.name === "top_list" && shortCode === "inactive_operator_toplist") ||
7
+ item.name === "cards_v2") &&
8
+ status === "active"
9
+ )
10
+ return true;
7
11
 
8
12
  return false;
9
13
  };