@floegence/floe-webapp-core 0.52.9 → 0.52.10
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.
|
@@ -21,6 +21,7 @@ export type ResolvedSurfacePortalHost = ResolvedDialogSurfaceHost;
|
|
|
21
21
|
export type SurfacePortalBoundaryRect = SurfacePortalRect;
|
|
22
22
|
export type { SurfacePortalRect };
|
|
23
23
|
export type SurfacePortalHostResolutionOptions = Readonly<{
|
|
24
|
+
/** A supplied owner fixes scope, including when it belongs to the global surface. */
|
|
24
25
|
owner?: Element | null;
|
|
25
26
|
}>;
|
|
26
27
|
export declare function ensureDialogSurfaceInteractionTracking(): void;
|
|
@@ -44,7 +44,7 @@ function v(t) {
|
|
|
44
44
|
}
|
|
45
45
|
function C(t = {}) {
|
|
46
46
|
p();
|
|
47
|
-
const e = A(), n = l(t.owner
|
|
47
|
+
const e = A(), n = t.owner ? l(t.owner) : l(e?.target ?? null) ?? l(e?.activeElement ?? null);
|
|
48
48
|
return n ? {
|
|
49
49
|
host: n,
|
|
50
50
|
boundaryHost: n,
|