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