fermmap-shared 0.2.1 → 0.2.3

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Kyle Taborski (FermMap)
3
+ Copyright (c) 2025 Kyle Taborski (GlobalFerments)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/main.cjs CHANGED
@@ -12,8 +12,8 @@ var $fs04y$reactspectrums2iconsClose = require("@react-spectrum/s2/icons/Close")
12
12
  var $fs04y$nextnavigation = require("next/navigation");
13
13
  var $fs04y$reactspectrums2iconsGlobeGrid = require("@react-spectrum/s2/icons/GlobeGrid");
14
14
  var $fs04y$reactspectrums2iconsViewList = require("@react-spectrum/s2/icons/ViewList");
15
- var $fs04y$reactdom = require("react-dom");
16
15
  var $fs04y$axecorereact = require("@axe-core/react");
16
+ var $fs04y$reactdom = require("react-dom");
17
17
 
18
18
 
19
19
  function $parcel$exportWildcard(dest, source) {
@@ -2867,7 +2867,7 @@ $parcel$export($885bdde2b07b7632$exports, "AxeDevTools", () => $ac6c22366fad60ff
2867
2867
 
2868
2868
 
2869
2869
  const $3a1d0d18027ba81c$var$ThemeContext = /*#__PURE__*/ (0, $fs04y$react.createContext)(undefined);
2870
- const $3a1d0d18027ba81c$var$THEME_STORAGE_KEY = 'fermmap-theme';
2870
+ const $3a1d0d18027ba81c$var$THEME_STORAGE_KEY = 'globalferments-theme';
2871
2871
  // Get initial theme synchronously to prevent flicker
2872
2872
  function $3a1d0d18027ba81c$var$getInitialTheme() {
2873
2873
  if (!(0, $de0c62f65c50224a$export$4e09c449d6c407f7)) return 'light';
@@ -2969,11 +2969,20 @@ function $8f5795e91d23efab$export$973ca22476b0e05f() {
2969
2969
 
2970
2970
 
2971
2971
 
2972
+
2972
2973
  function $ac6c22366fad60ff$export$dad69b6e16969c68() {
2973
2974
  (0, $fs04y$react.useEffect)(()=>{
2974
- if (process.env.NODE_ENV !== 'production') // Only run axe in development mode
2975
- $ac6c22366fad60ff$importAsync$4cbff5ac0c6b635e.then((axe)=>{
2976
- axe.default((0, ($parcel$interopDefault($fs04y$react))), (0, ($parcel$interopDefault($fs04y$reactdom))), 1000, {});
2975
+ // Only run in local development (not in production or Vercel deployments)
2976
+ const isLocalDev = typeof window !== 'undefined' && window.location.hostname === 'localhost';
2977
+ if (isLocalDev && process.env.NODE_ENV !== 'production') // Dynamic imports to avoid SSR issues
2978
+ Promise.all([
2979
+ $fs04y$react,
2980
+ $fs04y$reactdom,
2981
+ $fs04y$axecorereact
2982
+ ]).then(([React, ReactDOM, axe])=>{
2983
+ axe.default(React.default || React, ReactDOM.default || ReactDOM, 1000, {});
2984
+ }).catch((err)=>{
2985
+ console.warn('Failed to load axe-core:', err);
2977
2986
  });
2978
2987
  }, []);
2979
2988
  return null;
@@ -3108,7 +3117,7 @@ const $53c8911eec26a318$export$457d6d213bf79459 = ()=>({
3108
3117
 
3109
3118
 
3110
3119
  /**
3111
- * API Client for FermMap
3120
+ * API Client for GlobalFerments
3112
3121
  *
3113
3122
  * Centralized functions for all backend API calls
3114
3123
  * with error handling and type safety