fermmap-shared 0.1.11 → 0.1.12

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/dist/main.cjs CHANGED
@@ -2483,6 +2483,61 @@ function $e00b7714d9bed1e1$export$3d96ec278d3efce4({ children: children, ...prop
2483
2483
 
2484
2484
 
2485
2485
 
2486
+ /**
2487
+ * Safe browser API wrappers that work in SSR
2488
+ */ const $de0c62f65c50224a$export$4e09c449d6c407f7 = typeof window !== 'undefined';
2489
+ const $de0c62f65c50224a$export$62858bae88b53fd0 = typeof document !== 'undefined';
2490
+ const $de0c62f65c50224a$export$7dd80fbc14cd23b1 = {
2491
+ get innerHeight () {
2492
+ return $de0c62f65c50224a$export$4e09c449d6c407f7 ? window.innerHeight : 0;
2493
+ },
2494
+ get location () {
2495
+ return $de0c62f65c50224a$export$4e09c449d6c407f7 ? window.location : null;
2496
+ },
2497
+ matchMedia: (query)=>{
2498
+ if (!$de0c62f65c50224a$export$4e09c449d6c407f7) return {
2499
+ matches: false,
2500
+ media: query,
2501
+ addEventListener: ()=>{},
2502
+ removeEventListener: ()=>{}
2503
+ };
2504
+ return window.matchMedia(query);
2505
+ },
2506
+ reload: ()=>{
2507
+ if ($de0c62f65c50224a$export$4e09c449d6c407f7) window.location.reload();
2508
+ }
2509
+ };
2510
+ const $de0c62f65c50224a$export$9aee702616bdf23c = {
2511
+ get documentElement () {
2512
+ return $de0c62f65c50224a$export$62858bae88b53fd0 ? document.documentElement : null;
2513
+ },
2514
+ get referrer () {
2515
+ return $de0c62f65c50224a$export$62858bae88b53fd0 ? document.referrer : '';
2516
+ },
2517
+ createElement: (tag)=>{
2518
+ return $de0c62f65c50224a$export$62858bae88b53fd0 ? document.createElement(tag) : HTMLUnknownElement.prototype;
2519
+ }
2520
+ };
2521
+ const $de0c62f65c50224a$export$2aa78e70b3d79ddc = {
2522
+ getItem: (key)=>{
2523
+ if (!$de0c62f65c50224a$export$4e09c449d6c407f7) return null;
2524
+ try {
2525
+ return localStorage.getItem(key);
2526
+ } catch {
2527
+ return null;
2528
+ }
2529
+ },
2530
+ setItem: (key, value)=>{
2531
+ if (!$de0c62f65c50224a$export$4e09c449d6c407f7) return;
2532
+ try {
2533
+ localStorage.setItem(key, value);
2534
+ } catch {
2535
+ // Silent fail
2536
+ }
2537
+ }
2538
+ };
2539
+
2540
+
2486
2541
  const $fad215bb6064e329$var$textareaStyles = function anonymous(props) {
2487
2542
  let rules = " ";
2488
2543
  rules += ' Te12';
@@ -2535,7 +2590,7 @@ function $fad215bb6064e329$export$f5c9f3c2c4054eec({ label: label, error: error,
2535
2590
  // Reset height to recalculate
2536
2591
  textarea.style.height = '75px';
2537
2592
  // Set to scrollHeight (content height)
2538
- const newHeight = Math.min(textarea.scrollHeight, safeWindow.innerHeight * 0.75 || 64);
2593
+ const newHeight = Math.min(textarea.scrollHeight, (0, $de0c62f65c50224a$export$7dd80fbc14cd23b1).innerHeight * 0.75 || 64);
2539
2594
  textarea.style.height = `${newHeight}px`;
2540
2595
  }, [
2541
2596
  value
@@ -2578,60 +2633,6 @@ $parcel$export($885bdde2b07b7632$exports, "AxeDevTools", () => $ac6c22366fad60ff
2578
2633
  // Contexts & Providers
2579
2634
 
2580
2635
 
2581
- /**
2582
- * Safe browser API wrappers that work in SSR
2583
- */ const $de0c62f65c50224a$export$4e09c449d6c407f7 = typeof window !== 'undefined';
2584
- const $de0c62f65c50224a$export$62858bae88b53fd0 = typeof document !== 'undefined';
2585
- const $de0c62f65c50224a$export$7dd80fbc14cd23b1 = {
2586
- get innerHeight () {
2587
- return $de0c62f65c50224a$export$4e09c449d6c407f7 ? window.innerHeight : 0;
2588
- },
2589
- get location () {
2590
- return $de0c62f65c50224a$export$4e09c449d6c407f7 ? window.location : null;
2591
- },
2592
- matchMedia: (query)=>{
2593
- if (!$de0c62f65c50224a$export$4e09c449d6c407f7) return {
2594
- matches: false,
2595
- media: query,
2596
- addEventListener: ()=>{},
2597
- removeEventListener: ()=>{}
2598
- };
2599
- return window.matchMedia(query);
2600
- },
2601
- reload: ()=>{
2602
- if ($de0c62f65c50224a$export$4e09c449d6c407f7) window.location.reload();
2603
- }
2604
- };
2605
- const $de0c62f65c50224a$export$9aee702616bdf23c = {
2606
- get documentElement () {
2607
- return $de0c62f65c50224a$export$62858bae88b53fd0 ? document.documentElement : null;
2608
- },
2609
- get referrer () {
2610
- return $de0c62f65c50224a$export$62858bae88b53fd0 ? document.referrer : '';
2611
- },
2612
- createElement: (tag)=>{
2613
- return $de0c62f65c50224a$export$62858bae88b53fd0 ? document.createElement(tag) : null;
2614
- }
2615
- };
2616
- const $de0c62f65c50224a$export$2aa78e70b3d79ddc = {
2617
- getItem: (key)=>{
2618
- if (!$de0c62f65c50224a$export$4e09c449d6c407f7) return null;
2619
- try {
2620
- return localStorage.getItem(key);
2621
- } catch {
2622
- return null;
2623
- }
2624
- },
2625
- setItem: (key, value)=>{
2626
- if (!$de0c62f65c50224a$export$4e09c449d6c407f7) return;
2627
- try {
2628
- localStorage.setItem(key, value);
2629
- } catch {
2630
- // Silent fail
2631
- }
2632
- }
2633
- };
2634
-
2635
2636
 
2636
2637
  const $3a1d0d18027ba81c$var$ThemeContext = /*#__PURE__*/ (0, $fs04y$react.createContext)(undefined);
2637
2638
  const $3a1d0d18027ba81c$var$THEME_STORAGE_KEY = 'fermmap-theme';