@gem-sdk/core 1.53.0-staging.5 → 1.53.1

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.
@@ -84,7 +84,7 @@ const composeFontFamilyTypographyV2 = (value)=>{
84
84
  if (typeof fontFamily === 'string') {
85
85
  return getFontUsedByTypographyV2({
86
86
  fontFamily,
87
- fallbackFontFamily: value?.fallbackFontFamily
87
+ fallbackFontFamily: value?.fallbackFontFamily || composeFallbackTypographyStyle(type ?? 'heading')
88
88
  });
89
89
  }
90
90
  if (typeof fontFamily === 'object' && typeof fontFamily?.value === 'string') {
@@ -94,7 +94,7 @@ const composeFontFamilyTypographyV2 = (value)=>{
94
94
  default:
95
95
  return getFontUsedByTypographyV2({
96
96
  fontFamily: fontFamily.value,
97
- fallbackFontFamily: composeFallbackTypographyStyle(type ?? 'heading')
97
+ fallbackFontFamily: value?.fallbackFontFamily || composeFallbackTypographyStyle(type ?? 'heading')
98
98
  });
99
99
  }
100
100
  }
@@ -82,7 +82,7 @@ const composeFontFamilyTypographyV2 = (value)=>{
82
82
  if (typeof fontFamily === 'string') {
83
83
  return getFontUsedByTypographyV2({
84
84
  fontFamily,
85
- fallbackFontFamily: value?.fallbackFontFamily
85
+ fallbackFontFamily: value?.fallbackFontFamily || composeFallbackTypographyStyle(type ?? 'heading')
86
86
  });
87
87
  }
88
88
  if (typeof fontFamily === 'object' && typeof fontFamily?.value === 'string') {
@@ -92,7 +92,7 @@ const composeFontFamilyTypographyV2 = (value)=>{
92
92
  default:
93
93
  return getFontUsedByTypographyV2({
94
94
  fontFamily: fontFamily.value,
95
- fallbackFontFamily: composeFallbackTypographyStyle(type ?? 'heading')
95
+ fallbackFontFamily: value?.fallbackFontFamily || composeFallbackTypographyStyle(type ?? 'heading')
96
96
  });
97
97
  }
98
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.53.0-staging.5",
3
+ "version": "1.53.1",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -27,8 +27,8 @@
27
27
  "type-check": "yarn tsc --noEmit"
28
28
  },
29
29
  "devDependencies": {
30
- "@gem-sdk/adapter-shopify": "1.53.0-staging.0",
31
- "@gem-sdk/styles": "1.53.0-staging.0",
30
+ "@gem-sdk/adapter-shopify": "1.53.0",
31
+ "@gem-sdk/styles": "1.53.0",
32
32
  "@types/classnames": "^2.3.1"
33
33
  },
34
34
  "dependencies": {