@blocknote/xl-ai 0.47.0 → 0.47.2

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.
@@ -7,8 +7,8 @@ import { Plugin as $, PluginKey as Y } from "prosemirror-state";
7
7
  import { fixTablesKey as de } from "prosemirror-tables";
8
8
  import { DecorationSet as Z, Decoration as N } from "prosemirror-view";
9
9
  import { defaultSelectionBuilder as fe } from "y-prosemirror";
10
- import { b as ge, s as pe, c as _, a as I } from "./client-De9NkxJ-.js";
11
- import { C as ht, P as Ct, S as bt, g as vt, d as St, f as yt, h as wt, j as kt, m as It, o as _t, p as xt, i as Mt, e as Lt, k as Pt, t as Tt } from "./client-De9NkxJ-.js";
10
+ import { b as ge, s as pe, c as _, a as I } from "./client-DHVeP6Er.js";
11
+ import { C as ht, P as Ct, S as bt, g as vt, d as St, f as yt, h as wt, j as kt, m as It, o as _t, p as xt, i as Mt, e as Lt, k as Pt, t as Tt } from "./client-DHVeP6Er.js";
12
12
  import { jsxs as he, jsx as c } from "react/jsx-runtime";
13
13
  import { useBlockNoteContext as Ce, useComponentsContext as z, useSuggestionMenuKeyboardHandler as be, useBlockNoteEditor as R, useExtension as P, useExtensionState as J, BlockPopover as ve } from "@blocknote/react";
14
14
  import y, { useState as Q, useCallback as L, useMemo as M, useEffect as B, useRef as F } from "react";
@@ -857,11 +857,14 @@ const Ge = (e) => {
857
857
  // see https://floating-ui.com/docs/floatingfocusmanager#page-scrolls-to-top-when-opening-the-floating-element
858
858
  focusManagerProps: {
859
859
  disabled: !1,
860
+ // needed for https://github.com/floating-ui/floating-ui/pull/3202
861
+ // (related: https://github.com/mui/base-ui/issues/3950)
862
+ getInsideElements: () => t.domElement ? [t.domElement] : [],
860
863
  ...(m = e.floatingUIOptions) == null ? void 0 : m.focusManagerProps
861
864
  }
862
865
  };
863
866
  },
864
- [o, n, i, e.floatingUIOptions]
867
+ [o, n, i, e.floatingUIOptions, t.domElement]
865
868
  ), p = e.aiMenu || Ge;
866
869
  return /* @__PURE__ */ c(ve, { blockId: i, ...u, children: n !== "closed" && /* @__PURE__ */ c(p, {}) });
867
870
  }, dt = () => {