astro-tractstack 2.0.24 → 2.0.25

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-tractstack",
3
- "version": "2.0.24",
3
+ "version": "2.0.25",
4
4
  "description": "Astro integration for TractStack - redeeming the web from boring experiences",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -516,6 +516,15 @@ export function extractClassesFromNodes(dirtyNodes: BaseNode[]): string[] {
516
516
  if (className.trim()) uniqueClasses.add(className.trim());
517
517
  });
518
518
  }
519
+
520
+ // Extract from gridCss arrays
521
+ if ('gridCss' in node && Array.isArray(node.gridCss)) {
522
+ node.gridCss.forEach((classString: string) => {
523
+ classString.split(' ').forEach((className: string) => {
524
+ if (className.trim()) uniqueClasses.add(className.trim());
525
+ });
526
+ });
527
+ }
519
528
  });
520
529
 
521
530
  return Array.from(uniqueClasses);