/** * @fileoverview Runtime hook that fixes antd dropdown positioning * when running inside Angular's CSS transform context. * * antd's popup positioning (via rc-trigger / dom-align) calculates wrong * coordinates inside Angular because Angular applies CSS transforms that * break getBoundingClientRect-based positioning. This hook: * * 1. Injects a CSS rule using !important with CSS custom properties to * override antd's inline left/top values. The fallback (-9999px) hides * dropdowns until positioned, preventing flash-of-wrong-position. * * 2. Creates a MutationObserver that catches dropdown elements when * added to the DOM and sets the CSS variables to correct viewport- * relative coordinates based on the trigger element's position. * * This hook is Angular-specific and should only be registered when * running inside an Angular host application. * * @module @memberjunction/ng-react */ import { RuntimeHook } from '@memberjunction/react-runtime'; /** * Creates a RuntimeHook that fixes antd dropdown positioning inside Angular. * Uses position:absolute (antd's default) rather than position:fixed to * preserve antd's virtual scroll behavior inside dropdown panels. */ export declare function createAntdDropdownPositionHook(): RuntimeHook;