@gem-sdk/pages 1.25.44 → 1.26.7

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.
@@ -19,7 +19,12 @@ const getFontFromGroupSetting = (fonts, groupSetting)=>{
19
19
  const value = groupSetting[attr];
20
20
  if (value) {
21
21
  const customFontFamily = value.custom?.fontFamily;
22
- const customFontVariants = value.custom?.fontVariants;
22
+ let customFontVariants = value.custom?.fontVariants;
23
+ if (!customFontVariants?.length) {
24
+ customFontVariants = [
25
+ value.custom?.fontWeight
26
+ ];
27
+ }
23
28
  if (customFontFamily && customFontVariants?.length) {
24
29
  const variants = customFontVariants.map((item)=>{
25
30
  switch(item){
@@ -17,7 +17,12 @@ const getFontFromGroupSetting = (fonts, groupSetting)=>{
17
17
  const value = groupSetting[attr];
18
18
  if (value) {
19
19
  const customFontFamily = value.custom?.fontFamily;
20
- const customFontVariants = value.custom?.fontVariants;
20
+ let customFontVariants = value.custom?.fontVariants;
21
+ if (!customFontVariants?.length) {
22
+ customFontVariants = [
23
+ value.custom?.fontWeight
24
+ ];
25
+ }
21
26
  if (customFontFamily && customFontVariants?.length) {
22
27
  const variants = customFontVariants.map((item)=>{
23
28
  switch(item){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/pages",
3
- "version": "1.25.44",
3
+ "version": "1.26.7",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -25,7 +25,7 @@
25
25
  "next-seo": "^6.0.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@gem-sdk/core": "1.25.38",
28
+ "@gem-sdk/core": "1.26.2",
29
29
  "@gem-sdk/plugin-cookie-bar": "1.25.0",
30
30
  "@gem-sdk/plugin-quick-view": "1.25.0",
31
31
  "@gem-sdk/plugin-sticky-add-to-cart": "1.25.0"