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 +1 -1
- package/dist/main.cjs +15 -6
- package/dist/main.cjs.map +1 -1
- package/dist/module.mjs +17 -8
- package/dist/module.mjs.map +1 -1
- package/dist/types.d.ts +2 -2
- package/package.json +3 -2
package/dist/module.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./module.css";
|
|
2
2
|
import {jsx as $3A86U$jsx, jsxs as $3A86U$jsxs, Fragment as $3A86U$Fragment} from "react/jsx-runtime";
|
|
3
3
|
import {ModalOverlay as $3A86U$ModalOverlay, Modal as $3A86U$Modal, Dialog as $3A86U$Dialog, Heading as $3A86U$Heading, Button as $3A86U$Button, TextField as $3A86U$TextField, Label as $3A86U$Label, Input as $3A86U$Input, Text as $3A86U$Text, useFilter as $3A86U$useFilter, Autocomplete as $3A86U$Autocomplete, SearchField as $3A86U$SearchField, ListBox as $3A86U$ListBox, ListBoxItem as $3A86U$ListBoxItem, Table as $3A86U$Table, TableHeader as $3A86U$TableHeader, Column as $3A86U$Column, TableBody as $3A86U$TableBody, Row as $3A86U$Row, Cell as $3A86U$Cell, Checkbox as $3A86U$Checkbox, ProgressBar as $3A86U$ProgressBar, ComboBox as $3A86U$ComboBox, FieldError as $3A86U$FieldError, Popover as $3A86U$Popover, DisclosureGroup as $3A86U$DisclosureGroup, Disclosure as $3A86U$Disclosure, DisclosureStateContext as $3A86U$DisclosureStateContext, DisclosurePanel as $3A86U$DisclosurePanel, ToggleButtonGroup as $3A86U$ToggleButtonGroup, ToggleButton as $3A86U$ToggleButton, SelectionIndicator as $3A86U$SelectionIndicator, Link as $3A86U$Link, MenuTrigger as $3A86U$MenuTrigger, Menu as $3A86U$Menu, Separator as $3A86U$Separator, MenuItem as $3A86U$MenuItem, Radio as $3A86U$Radio, RadioGroup as $3A86U$RadioGroup, Select as $3A86U$Select, SelectValue as $3A86U$SelectValue, Switch as $3A86U$Switch, Tabs as $3A86U$Tabs, TabList as $3A86U$TabList, Tab as $3A86U$Tab, TabPanel as $3A86U$TabPanel, TextArea as $3A86U$TextArea} from "react-aria-components";
|
|
4
|
-
import
|
|
4
|
+
import * as $3A86U$react from "react";
|
|
5
5
|
import $3A86U$reactspectrums2iconsSearch from "@react-spectrum/s2/icons/Search";
|
|
6
6
|
import $3A86U$reactspectrums2iconsCheckmarkCircle from "@react-spectrum/s2/icons/CheckmarkCircle";
|
|
7
7
|
import $3A86U$reactspectrums2iconsCloseCircle from "@react-spectrum/s2/icons/CloseCircle";
|
|
@@ -12,8 +12,8 @@ import $3A86U$reactspectrums2iconsClose from "@react-spectrum/s2/icons/Close";
|
|
|
12
12
|
import {useRouter as $3A86U$useRouter} from "next/navigation";
|
|
13
13
|
import $3A86U$reactspectrums2iconsGlobeGrid from "@react-spectrum/s2/icons/GlobeGrid";
|
|
14
14
|
import $3A86U$reactspectrums2iconsViewList from "@react-spectrum/s2/icons/ViewList";
|
|
15
|
-
import $3A86U$
|
|
16
|
-
import $3A86U$
|
|
15
|
+
import * as $3A86U$axecorereact from "@axe-core/react";
|
|
16
|
+
import * as $3A86U$reactdom from "react-dom";
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
function $parcel$export(e, n, v, s) {
|
|
@@ -2863,7 +2863,7 @@ $parcel$export($b9dc9736b0835428$exports, "AxeDevTools", () => $cc88703bd59b1580
|
|
|
2863
2863
|
|
|
2864
2864
|
|
|
2865
2865
|
const $14dac782240849bf$var$ThemeContext = /*#__PURE__*/ (0, $3A86U$createContext)(undefined);
|
|
2866
|
-
const $14dac782240849bf$var$THEME_STORAGE_KEY = '
|
|
2866
|
+
const $14dac782240849bf$var$THEME_STORAGE_KEY = 'globalferments-theme';
|
|
2867
2867
|
// Get initial theme synchronously to prevent flicker
|
|
2868
2868
|
function $14dac782240849bf$var$getInitialTheme() {
|
|
2869
2869
|
if (!(0, $20eaf1306ff19a16$export$4e09c449d6c407f7)) return 'light';
|
|
@@ -2965,11 +2965,20 @@ function $5035dda096f080f5$export$973ca22476b0e05f() {
|
|
|
2965
2965
|
|
|
2966
2966
|
|
|
2967
2967
|
|
|
2968
|
+
|
|
2968
2969
|
function $cc88703bd59b1580$export$dad69b6e16969c68() {
|
|
2969
2970
|
(0, $3A86U$useEffect)(()=>{
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2971
|
+
// Only run in local development (not in production or Vercel deployments)
|
|
2972
|
+
const isLocalDev = typeof window !== 'undefined' && window.location.hostname === 'localhost';
|
|
2973
|
+
if (isLocalDev && process.env.NODE_ENV !== 'production') // Dynamic imports to avoid SSR issues
|
|
2974
|
+
Promise.all([
|
|
2975
|
+
$3A86U$react,
|
|
2976
|
+
$3A86U$reactdom,
|
|
2977
|
+
$3A86U$axecorereact
|
|
2978
|
+
]).then(([React, ReactDOM, axe])=>{
|
|
2979
|
+
axe.default(React.default || React, ReactDOM.default || ReactDOM, 1000, {});
|
|
2980
|
+
}).catch((err)=>{
|
|
2981
|
+
console.warn('Failed to load axe-core:', err);
|
|
2973
2982
|
});
|
|
2974
2983
|
}, []);
|
|
2975
2984
|
return null;
|
|
@@ -3104,7 +3113,7 @@ const $4ae0d6a0ccb53610$export$457d6d213bf79459 = ()=>({
|
|
|
3104
3113
|
|
|
3105
3114
|
|
|
3106
3115
|
/**
|
|
3107
|
-
* API Client for
|
|
3116
|
+
* API Client for GlobalFerments
|
|
3108
3117
|
*
|
|
3109
3118
|
* Centralized functions for all backend API calls
|
|
3110
3119
|
* with error handling and type safety
|