@opensite/ui 2.9.5 → 2.9.7

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.
@@ -524,27 +524,19 @@ function ContactMap({
524
524
  }
525
525
  );
526
526
  }, [formEngineSetup]);
527
- const isInIframe = React4__namespace.useMemo(() => {
528
- if (typeof window === "undefined") return false;
529
- try {
530
- return window.self !== window.top;
531
- } catch {
532
- return true;
533
- }
534
- }, []);
535
527
  const resolvedMapProps = React4__namespace.useMemo(() => {
536
528
  return {
537
- // Use simpler height rules when in iframe to avoid resize loops
538
- mapWrapperClassName: isInIframe ? "h-full min-h-[420px]" : "h-full min-h-[420px] md:min-h-[520px]",
539
529
  panelPosition: "top-left",
540
530
  ...mapProps,
541
- className: cn("h-full w-full", mapClassName, mapProps?.className),
531
+ // Don't override mapWrapperClassName if it's provided in mapProps
532
+ mapWrapperClassName: mapProps?.mapWrapperClassName,
533
+ className: cn(mapClassName, mapProps?.className),
542
534
  optixFlowConfig,
543
535
  // Provide icon and image components for rich marker panels
544
536
  IconComponent: DynamicIcon,
545
537
  ImgComponent: img.Img
546
538
  };
547
- }, [isInIframe, mapClassName, mapProps, optixFlowConfig]);
539
+ }, [mapClassName, mapProps, optixFlowConfig]);
548
540
  return /* @__PURE__ */ jsxRuntime.jsx(
549
541
  Section,
550
542
  {
@@ -591,13 +583,14 @@ function ContactMap({
591
583
  "div",
592
584
  {
593
585
  className: cn(
594
- // Add overflow hidden and relative positioning to contain the map properly
595
- "relative h-full overflow-hidden",
596
- // In iframe contexts, ensure proper containment without fixed aspect ratios
597
- isInIframe && "min-h-0",
598
- // Allow flexible height but prevent infinite expansion
586
+ // Allow map panels to overflow outside container
587
+ "relative",
599
588
  mapColumnClassName
600
589
  ),
590
+ style: {
591
+ // Explicitly allow overflow for marker panels
592
+ overflow: "visible"
593
+ },
601
594
  children: /* @__PURE__ */ jsxRuntime.jsx(maps.GeoMap, { ...resolvedMapProps })
602
595
  }
603
596
  )
@@ -503,27 +503,19 @@ function ContactMap({
503
503
  }
504
504
  );
505
505
  }, [formEngineSetup]);
506
- const isInIframe = React4.useMemo(() => {
507
- if (typeof window === "undefined") return false;
508
- try {
509
- return window.self !== window.top;
510
- } catch {
511
- return true;
512
- }
513
- }, []);
514
506
  const resolvedMapProps = React4.useMemo(() => {
515
507
  return {
516
- // Use simpler height rules when in iframe to avoid resize loops
517
- mapWrapperClassName: isInIframe ? "h-full min-h-[420px]" : "h-full min-h-[420px] md:min-h-[520px]",
518
508
  panelPosition: "top-left",
519
509
  ...mapProps,
520
- className: cn("h-full w-full", mapClassName, mapProps?.className),
510
+ // Don't override mapWrapperClassName if it's provided in mapProps
511
+ mapWrapperClassName: mapProps?.mapWrapperClassName,
512
+ className: cn(mapClassName, mapProps?.className),
521
513
  optixFlowConfig,
522
514
  // Provide icon and image components for rich marker panels
523
515
  IconComponent: DynamicIcon,
524
516
  ImgComponent: Img
525
517
  };
526
- }, [isInIframe, mapClassName, mapProps, optixFlowConfig]);
518
+ }, [mapClassName, mapProps, optixFlowConfig]);
527
519
  return /* @__PURE__ */ jsx(
528
520
  Section,
529
521
  {
@@ -570,13 +562,14 @@ function ContactMap({
570
562
  "div",
571
563
  {
572
564
  className: cn(
573
- // Add overflow hidden and relative positioning to contain the map properly
574
- "relative h-full overflow-hidden",
575
- // In iframe contexts, ensure proper containment without fixed aspect ratios
576
- isInIframe && "min-h-0",
577
- // Allow flexible height but prevent infinite expansion
565
+ // Allow map panels to overflow outside container
566
+ "relative",
578
567
  mapColumnClassName
579
568
  ),
569
+ style: {
570
+ // Explicitly allow overflow for marker panels
571
+ overflow: "visible"
572
+ },
580
573
  children: /* @__PURE__ */ jsx(GeoMap, { ...resolvedMapProps })
581
574
  }
582
575
  )
package/dist/registry.cjs CHANGED
@@ -16634,27 +16634,19 @@ function ContactMap({
16634
16634
  }
16635
16635
  );
16636
16636
  }, [formEngineSetup]);
16637
- const isInIframe = React32__namespace.useMemo(() => {
16638
- if (typeof window === "undefined") return false;
16639
- try {
16640
- return window.self !== window.top;
16641
- } catch {
16642
- return true;
16643
- }
16644
- }, []);
16645
16637
  const resolvedMapProps = React32__namespace.useMemo(() => {
16646
16638
  return {
16647
- // Use simpler height rules when in iframe to avoid resize loops
16648
- mapWrapperClassName: isInIframe ? "h-full min-h-[420px]" : "h-full min-h-[420px] md:min-h-[520px]",
16649
16639
  panelPosition: "top-left",
16650
16640
  ...mapProps,
16651
- className: cn("h-full w-full", mapClassName, mapProps?.className),
16641
+ // Don't override mapWrapperClassName if it's provided in mapProps
16642
+ mapWrapperClassName: mapProps?.mapWrapperClassName,
16643
+ className: cn(mapClassName, mapProps?.className),
16652
16644
  optixFlowConfig,
16653
16645
  // Provide icon and image components for rich marker panels
16654
16646
  IconComponent: DynamicIcon,
16655
16647
  ImgComponent: img.Img
16656
16648
  };
16657
- }, [isInIframe, mapClassName, mapProps, optixFlowConfig]);
16649
+ }, [mapClassName, mapProps, optixFlowConfig]);
16658
16650
  return /* @__PURE__ */ jsxRuntime.jsx(
16659
16651
  Section,
16660
16652
  {
@@ -16701,13 +16693,14 @@ function ContactMap({
16701
16693
  "div",
16702
16694
  {
16703
16695
  className: cn(
16704
- // Add overflow hidden and relative positioning to contain the map properly
16705
- "relative h-full overflow-hidden",
16706
- // In iframe contexts, ensure proper containment without fixed aspect ratios
16707
- isInIframe && "min-h-0",
16708
- // Allow flexible height but prevent infinite expansion
16696
+ // Allow map panels to overflow outside container
16697
+ "relative",
16709
16698
  mapColumnClassName
16710
16699
  ),
16700
+ style: {
16701
+ // Explicitly allow overflow for marker panels
16702
+ overflow: "visible"
16703
+ },
16711
16704
  children: /* @__PURE__ */ jsxRuntime.jsx(maps.GeoMap, { ...resolvedMapProps })
16712
16705
  }
16713
16706
  )
@@ -47281,7 +47274,7 @@ function TestimonialsParallaxNumber({
47281
47274
  framerMotion.motion.blockquote,
47282
47275
  {
47283
47276
  className: cn(
47284
- "text-2xl md:text-3xl lg:text-4xl xl:text-5xl",
47277
+ "text-2xl md:text-3xl lg:text-4xl",
47285
47278
  "font-light leading-[1.15] tracking-tight",
47286
47279
  quoteClassName
47287
47280
  ),
package/dist/registry.js CHANGED
@@ -16594,27 +16594,19 @@ function ContactMap({
16594
16594
  }
16595
16595
  );
16596
16596
  }, [formEngineSetup]);
16597
- const isInIframe = React32.useMemo(() => {
16598
- if (typeof window === "undefined") return false;
16599
- try {
16600
- return window.self !== window.top;
16601
- } catch {
16602
- return true;
16603
- }
16604
- }, []);
16605
16597
  const resolvedMapProps = React32.useMemo(() => {
16606
16598
  return {
16607
- // Use simpler height rules when in iframe to avoid resize loops
16608
- mapWrapperClassName: isInIframe ? "h-full min-h-[420px]" : "h-full min-h-[420px] md:min-h-[520px]",
16609
16599
  panelPosition: "top-left",
16610
16600
  ...mapProps,
16611
- className: cn("h-full w-full", mapClassName, mapProps?.className),
16601
+ // Don't override mapWrapperClassName if it's provided in mapProps
16602
+ mapWrapperClassName: mapProps?.mapWrapperClassName,
16603
+ className: cn(mapClassName, mapProps?.className),
16612
16604
  optixFlowConfig,
16613
16605
  // Provide icon and image components for rich marker panels
16614
16606
  IconComponent: DynamicIcon,
16615
16607
  ImgComponent: Img
16616
16608
  };
16617
- }, [isInIframe, mapClassName, mapProps, optixFlowConfig]);
16609
+ }, [mapClassName, mapProps, optixFlowConfig]);
16618
16610
  return /* @__PURE__ */ jsx(
16619
16611
  Section,
16620
16612
  {
@@ -16661,13 +16653,14 @@ function ContactMap({
16661
16653
  "div",
16662
16654
  {
16663
16655
  className: cn(
16664
- // Add overflow hidden and relative positioning to contain the map properly
16665
- "relative h-full overflow-hidden",
16666
- // In iframe contexts, ensure proper containment without fixed aspect ratios
16667
- isInIframe && "min-h-0",
16668
- // Allow flexible height but prevent infinite expansion
16656
+ // Allow map panels to overflow outside container
16657
+ "relative",
16669
16658
  mapColumnClassName
16670
16659
  ),
16660
+ style: {
16661
+ // Explicitly allow overflow for marker panels
16662
+ overflow: "visible"
16663
+ },
16671
16664
  children: /* @__PURE__ */ jsx(GeoMap, { ...resolvedMapProps })
16672
16665
  }
16673
16666
  )
@@ -47241,7 +47234,7 @@ function TestimonialsParallaxNumber({
47241
47234
  motion.blockquote,
47242
47235
  {
47243
47236
  className: cn(
47244
- "text-2xl md:text-3xl lg:text-4xl xl:text-5xl",
47237
+ "text-2xl md:text-3xl lg:text-4xl",
47245
47238
  "font-light leading-[1.15] tracking-tight",
47246
47239
  quoteClassName
47247
47240
  ),
@@ -1008,7 +1008,7 @@ function TestimonialsParallaxNumber({
1008
1008
  framerMotion.motion.blockquote,
1009
1009
  {
1010
1010
  className: cn(
1011
- "text-2xl md:text-3xl lg:text-4xl xl:text-5xl",
1011
+ "text-2xl md:text-3xl lg:text-4xl",
1012
1012
  "font-light leading-[1.15] tracking-tight",
1013
1013
  quoteClassName
1014
1014
  ),
@@ -987,7 +987,7 @@ function TestimonialsParallaxNumber({
987
987
  motion.blockquote,
988
988
  {
989
989
  className: cn(
990
- "text-2xl md:text-3xl lg:text-4xl xl:text-5xl",
990
+ "text-2xl md:text-3xl lg:text-4xl",
991
991
  "font-light leading-[1.15] tracking-tight",
992
992
  quoteClassName
993
993
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensite/ui",
3
- "version": "2.9.5",
3
+ "version": "2.9.7",
4
4
  "description": "Foundational UI component library for OpenSite Semantic Site Builder with tree-shakable exports and abstract styling",
5
5
  "keywords": [
6
6
  "react",
@@ -3413,7 +3413,7 @@
3413
3413
  "@page-speed/icon": "0.1.2",
3414
3414
  "@page-speed/img": "0.4.6",
3415
3415
  "@page-speed/lightbox": "0.2.1",
3416
- "@page-speed/maps": "0.1.7",
3416
+ "@page-speed/maps": "0.1.9",
3417
3417
  "@page-speed/pdf-viewer": "0.1.9",
3418
3418
  "@page-speed/social-share": "0.0.5",
3419
3419
  "@radix-ui/react-accordion": "^1.2.12",