@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.
- package/dist/blocknote-xl-ai.cjs +1 -1
- package/dist/blocknote-xl-ai.cjs.map +1 -1
- package/dist/blocknote-xl-ai.js +6 -3
- package/dist/blocknote-xl-ai.js.map +1 -1
- package/dist/client-BPNTLm1-.cjs.map +1 -1
- package/dist/{client-De9NkxJ-.js → client-DHVeP6Er.js} +7 -5
- package/dist/client-DHVeP6Er.js.map +1 -0
- package/dist/server.js +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +5 -5
- package/src/api/formats/html-blocks/tools/rebaseTool.ts +2 -2
- package/src/api/promptHelpers/convertBlocks.ts +16 -9
- package/src/components/AIMenu/AIMenuController.tsx +9 -1
- package/src/util/trimArray.ts +1 -1
- package/dist/client-De9NkxJ-.js.map +0 -1
package/dist/blocknote-xl-ai.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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 = () => {
|