@gem-sdk/pages 2.0.0-dev.598 → 2.0.0-dev.606

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.
@@ -42,13 +42,13 @@ const handleGenerateFontParams = (variants, fontType = 'google')=>{
42
42
  return fontType === 'bunny' ? '400' : 'wght@400';
43
43
  }
44
44
  // Get regular weights and remove italic variants
45
- // variants.forEach((variant) => {
46
- // if (variant?.includes('italic')) {
47
- // return;
48
- // }
49
- // const weight = variant === 'regular' ? '400' : variant;
50
- // regularWeights.push(weight);
51
- // });
45
+ variants.forEach((variant)=>{
46
+ if (typeof variant !== 'string' || variant?.includes('italic')) {
47
+ return;
48
+ }
49
+ const weight = variant === 'regular' ? '400' : variant;
50
+ regularWeights.push(weight);
51
+ });
52
52
  // Sort weights numerically (ex: [900, 700, 400] -> [400, 700, 900])
53
53
  const sortedRegularWeights = regularWeights.sort((a, b)=>Number(a) - Number(b));
54
54
  // Build the variant string with only regular weights
@@ -40,13 +40,13 @@ const handleGenerateFontParams = (variants, fontType = 'google')=>{
40
40
  return fontType === 'bunny' ? '400' : 'wght@400';
41
41
  }
42
42
  // Get regular weights and remove italic variants
43
- // variants.forEach((variant) => {
44
- // if (variant?.includes('italic')) {
45
- // return;
46
- // }
47
- // const weight = variant === 'regular' ? '400' : variant;
48
- // regularWeights.push(weight);
49
- // });
43
+ variants.forEach((variant)=>{
44
+ if (typeof variant !== 'string' || variant?.includes('italic')) {
45
+ return;
46
+ }
47
+ const weight = variant === 'regular' ? '400' : variant;
48
+ regularWeights.push(weight);
49
+ });
50
50
  // Sort weights numerically (ex: [900, 700, 400] -> [400, 700, 900])
51
51
  const sortedRegularWeights = regularWeights.sort((a, b)=>Number(a) - Number(b));
52
52
  // Build the variant string with only regular weights
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/pages",
3
- "version": "2.0.0-dev.598",
3
+ "version": "2.0.0-dev.606",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -26,7 +26,7 @@
26
26
  "next": "14.2.20"
27
27
  },
28
28
  "devDependencies": {
29
- "@gem-sdk/core": "2.0.0-dev.596",
29
+ "@gem-sdk/core": "2.0.0-dev.604",
30
30
  "@gem-sdk/plugin-cookie-bar": "2.0.0-dev.348",
31
31
  "@gem-sdk/plugin-quick-view": "2.0.0-dev.348",
32
32
  "@gem-sdk/plugin-sticky-add-to-cart": "2.0.0-dev.348"