@blocknote/shadcn 0.15.0 → 0.15.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.
Files changed (32) hide show
  1. package/dist/blocknote-shadcn.js +63 -76
  2. package/dist/blocknote-shadcn.js.map +1 -1
  3. package/dist/blocknote-shadcn.umd.cjs +7 -9
  4. package/dist/blocknote-shadcn.umd.cjs.map +1 -1
  5. package/dist/style.css +1 -1
  6. package/dist/webpack-stats.json +1 -1
  7. package/package.json +7 -7
  8. package/types/src/ShadCNComponentsContext.d.ts +9 -10
  9. package/types/src/components/ui/dropdown-menu.d.ts +3 -3
  10. package/types/src/components/ui/form.d.ts +1 -1
  11. package/types/src/form/TextInput.d.ts +4 -5
  12. package/types/src/index.d.ts +2 -2
  13. package/types/src/menu/Menu.d.ts +8 -9
  14. package/types/src/panel/Panel.d.ts +1 -2
  15. package/types/src/panel/PanelButton.d.ts +2 -3
  16. package/types/src/panel/PanelFileInput.d.ts +1 -2
  17. package/types/src/panel/PanelTab.d.ts +1 -2
  18. package/types/src/panel/PanelTextInput.d.ts +2 -3
  19. package/types/src/popover/popover.d.ts +1 -2
  20. package/types/src/sideMenu/SideMenu.d.ts +1 -2
  21. package/types/src/sideMenu/SideMenuButton.d.ts +6 -7
  22. package/types/src/suggestionMenu/SuggestionMenu.d.ts +1 -2
  23. package/types/src/suggestionMenu/SuggestionMenuEmptyItem.d.ts +1 -2
  24. package/types/src/suggestionMenu/SuggestionMenuItem.d.ts +1 -2
  25. package/types/src/suggestionMenu/SuggestionMenuLabel.d.ts +1 -2
  26. package/types/src/suggestionMenu/SuggestionMenuLoader.d.ts +1 -2
  27. package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenu.d.ts +1 -2
  28. package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuEmptyItem.d.ts +1 -2
  29. package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.d.ts +1 -2
  30. package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader.d.ts +1 -2
  31. package/types/src/tableHandle/TableHandle.d.ts +4 -5
  32. package/types/src/toolbar/Toolbar.d.ts +7 -8
@@ -1,6 +1,6 @@
1
1
  import * as p from "react";
2
2
  import ze, { createContext as lt, useContext as dt, forwardRef as C, useRef as We, useEffect as Ye, useMemo as Ue } from "react";
3
- import { assertEmpty as w, mergeCSSClasses as ct } from "@blocknote/core";
3
+ import { assertEmpty as y, mergeCSSClasses as ct } from "@blocknote/core";
4
4
  import { elementOverflow as Ge, mergeRefs as Ke, ComponentsContext as ut, BlockNoteViewRaw as bt } from "@blocknote/react";
5
5
  import { cva as Q } from "class-variance-authority";
6
6
  import { clsx as ft } from "clsx";
@@ -27,18 +27,14 @@ var ue = { exports: {} }, G = {};
27
27
  */
28
28
  var Be;
29
29
  function yt() {
30
- if (Be)
31
- return G;
30
+ if (Be) return G;
32
31
  Be = 1;
33
32
  var r = ze, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
34
33
  function c(v, f, u) {
35
34
  var g, j = {}, _ = null, F = null;
36
35
  u !== void 0 && (_ = "" + u), f.key !== void 0 && (_ = "" + f.key), f.ref !== void 0 && (F = f.ref);
37
- for (g in f)
38
- o.call(f, g) && !d.hasOwnProperty(g) && (j[g] = f[g]);
39
- if (v && v.defaultProps)
40
- for (g in f = v.defaultProps, f)
41
- j[g] === void 0 && (j[g] = f[g]);
36
+ for (g in f) o.call(f, g) && !d.hasOwnProperty(g) && (j[g] = f[g]);
37
+ if (v && v.defaultProps) for (g in f = v.defaultProps, f) j[g] === void 0 && (j[g] = f[g]);
42
38
  return { $$typeof: t, type: v, key: _, ref: F, props: j, _owner: s.current };
43
39
  }
44
40
  return G.Fragment = n, G.jsx = c, G.jsxs = c, G;
@@ -73,8 +69,8 @@ function wt() {
73
69
  }
74
70
  function Rn(e, i, l) {
75
71
  {
76
- var m = $.ReactDebugCurrentFrame, y = m.getStackAddendum();
77
- y !== "" && (i += "%s", l = l.concat([y]));
72
+ var m = $.ReactDebugCurrentFrame, w = m.getStackAddendum();
73
+ w !== "" && (i += "%s", l = l.concat([w]));
78
74
  var N = l.map(function(h) {
79
75
  return String(h);
80
76
  });
@@ -94,8 +90,8 @@ function wt() {
94
90
  var m = e.displayName;
95
91
  if (m)
96
92
  return m;
97
- var y = i.displayName || i.name || "";
98
- return y !== "" ? l + "(" + y + ")" : l;
93
+ var w = i.displayName || i.name || "";
94
+ return w !== "" ? l + "(" + w + ")" : l;
99
95
  }
100
96
  function pe(e) {
101
97
  return e.displayName || "Context";
@@ -135,7 +131,7 @@ function wt() {
135
131
  var m = e.displayName || null;
136
132
  return m !== null ? m : O(e.type) || "Memo";
137
133
  case _: {
138
- var y = e, N = y._payload, h = y._init;
134
+ var w = e, N = w._payload, h = w._init;
139
135
  try {
140
136
  return O(h(N));
141
137
  } catch {
@@ -213,8 +209,8 @@ function wt() {
213
209
  if (re === void 0)
214
210
  try {
215
211
  throw Error();
216
- } catch (y) {
217
- var m = y.stack.trim().match(/\n( *(at )?)/);
212
+ } catch (w) {
213
+ var m = w.stack.trim().match(/\n( *(at )?)/);
218
214
  re = m && m[1] || "";
219
215
  }
220
216
  return `
@@ -236,7 +232,7 @@ function wt() {
236
232
  }
237
233
  var m;
238
234
  oe = !0;
239
- var y = Error.prepareStackTrace;
235
+ var w = Error.prepareStackTrace;
240
236
  Error.prepareStackTrace = void 0;
241
237
  var N;
242
238
  N = te.current, te.current = null, Fn();
@@ -292,7 +288,7 @@ function wt() {
292
288
  }
293
289
  }
294
290
  } finally {
295
- oe = !1, te.current = N, On(), Error.prepareStackTrace = y;
291
+ oe = !1, te.current = N, On(), Error.prepareStackTrace = w;
296
292
  }
297
293
  var z = e ? e.displayName || e.name : "", B = z ? q(z) : "";
298
294
  return typeof e == "function" && H.set(e, B), B;
@@ -324,9 +320,9 @@ function wt() {
324
320
  case j:
325
321
  return X(e.type, i, l);
326
322
  case _: {
327
- var m = e, y = m._payload, N = m._init;
323
+ var m = e, w = m._payload, N = m._init;
328
324
  try {
329
- return X(N(y), i, l);
325
+ return X(N(w), i, l);
330
326
  } catch {
331
327
  }
332
328
  }
@@ -341,7 +337,7 @@ function wt() {
341
337
  } else
342
338
  Te.setExtraStackFrame(null);
343
339
  }
344
- function $n(e, i, l, m, y) {
340
+ function $n(e, i, l, m, w) {
345
341
  {
346
342
  var N = Function.call.bind(Y);
347
343
  for (var h in e)
@@ -356,7 +352,7 @@ function wt() {
356
352
  } catch (S) {
357
353
  x = S;
358
354
  }
359
- x && !(x instanceof Error) && (Z(y), P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", m || "React class", l, h, typeof x), Z(null)), x instanceof Error && !(x.message in Se) && (Se[x.message] = !0, Z(y), P("Failed %s type: %s", l, x.message), Z(null));
355
+ x && !(x instanceof Error) && (Z(w), P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", m || "React class", l, h, typeof x), Z(null)), x instanceof Error && !(x.message in Se) && (Se[x.message] = !0, Z(w), P("Failed %s type: %s", l, x.message), Z(null));
360
356
  }
361
357
  }
362
358
  }
@@ -435,7 +431,7 @@ function wt() {
435
431
  });
436
432
  }
437
433
  }
438
- var Hn = function(e, i, l, m, y, N, h) {
434
+ var Hn = function(e, i, l, m, w, N, h) {
439
435
  var x = {
440
436
  // This tag allows us to uniquely identify this as a React Element
441
437
  $$typeof: t,
@@ -461,13 +457,13 @@ function wt() {
461
457
  configurable: !1,
462
458
  enumerable: !1,
463
459
  writable: !1,
464
- value: y
460
+ value: w
465
461
  }), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
466
462
  };
467
- function Xn(e, i, l, m, y) {
463
+ function Xn(e, i, l, m, w) {
468
464
  {
469
465
  var N, h = {}, x = null, I = null;
470
- l !== void 0 && (Ee(l), x = "" + l), Gn(i) && (Ee(i.key), x = "" + i.key), Un(i) && (I = i.ref, Kn(i, y));
466
+ l !== void 0 && (Ee(l), x = "" + l), Gn(i) && (Ee(i.key), x = "" + i.key), Un(i) && (I = i.ref, Kn(i, w));
471
467
  for (N in i)
472
468
  Y.call(i, N) && !Yn.hasOwnProperty(N) && (h[N] = i[N]);
473
469
  if (e && e.defaultProps) {
@@ -479,7 +475,7 @@ function wt() {
479
475
  var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
480
476
  x && Jn(h, E), I && qn(h, E);
481
477
  }
482
- return Hn(e, x, I, y, m, U.current, h);
478
+ return Hn(e, x, I, w, m, U.current, h);
483
479
  }
484
480
  }
485
481
  var ie = $.ReactCurrentOwner, Pe = $.ReactDebugCurrentFrame;
@@ -508,15 +504,7 @@ Check the render method of \`` + e + "`.";
508
504
  }
509
505
  }
510
506
  function Zn(e) {
511
- {
512
- if (e !== void 0) {
513
- var i = e.fileName.replace(/^.*[\\\/]/, ""), l = e.lineNumber;
514
- return `
515
-
516
- Check your code at ` + i + ":" + l + ".";
517
- }
518
- return "";
519
- }
507
+ return "";
520
508
  }
521
509
  var Me = {};
522
510
  function Qn(e) {
@@ -556,9 +544,9 @@ Check the top-level render call using <` + l + ">.");
556
544
  else if (de(e))
557
545
  e._store && (e._store.validated = !0);
558
546
  else if (e) {
559
- var y = Tn(e);
560
- if (typeof y == "function" && y !== e.entries)
561
- for (var N = y.call(e), h; !(h = N.next()).done; )
547
+ var w = Tn(e);
548
+ if (typeof w == "function" && w !== e.entries)
549
+ for (var N = w.call(e), h; !(h = N.next()).done; )
562
550
  de(h.value) && ke(h.value, i);
563
551
  }
564
552
  }
@@ -582,8 +570,8 @@ Check the top-level render call using <` + l + ">.");
582
570
  $n(l, e.props, "prop", m, e);
583
571
  } else if (i.PropTypes !== void 0 && !le) {
584
572
  le = !0;
585
- var y = O(i);
586
- P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
573
+ var w = O(i);
574
+ P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", w || "Unknown");
587
575
  }
588
576
  typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
589
577
  }
@@ -601,18 +589,18 @@ Check the top-level render call using <` + l + ">.");
601
589
  }
602
590
  }
603
591
  var Oe = {};
604
- function Le(e, i, l, m, y, N) {
592
+ function Le(e, i, l, m, w, N) {
605
593
  {
606
594
  var h = Mn(e);
607
595
  if (!h) {
608
596
  var x = "";
609
597
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (x += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
610
- var I = Zn(y);
598
+ var I = Zn();
611
599
  I ? x += I : x += Ie();
612
600
  var S;
613
601
  e === null ? S = "null" : ae(e) ? S = "array" : e !== void 0 && e.$$typeof === t ? (S = "<" + (O(e.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", S, x);
614
602
  }
615
- var E = Xn(e, i, l, y, N);
603
+ var E = Xn(e, i, l, w, N);
616
604
  if (E == null)
617
605
  return E;
618
606
  if (h) {
@@ -1257,12 +1245,12 @@ function R() {
1257
1245
  }
1258
1246
  const er = (r) => {
1259
1247
  const { children: t, ...n } = r;
1260
- w(n);
1248
+ y(n);
1261
1249
  const o = R(), s = ht();
1262
1250
  return /* @__PURE__ */ a.jsx(o.Form.Form, { ...s, children: t });
1263
1251
  }, nr = C((r, t) => {
1264
1252
  const { className: n, children: o, id: s, columns: d, ...c } = r;
1265
- return w(c), /* @__PURE__ */ a.jsx(
1253
+ return y(c), /* @__PURE__ */ a.jsx(
1266
1254
  "div",
1267
1255
  {
1268
1256
  className: n,
@@ -1275,7 +1263,7 @@ const er = (r) => {
1275
1263
  );
1276
1264
  }), tr = C((r, t) => {
1277
1265
  const { className: n, children: o, columns: s, ...d } = r;
1278
- return w(d), /* @__PURE__ */ a.jsx(
1266
+ return y(d), /* @__PURE__ */ a.jsx(
1279
1267
  "div",
1280
1268
  {
1281
1269
  className: n,
@@ -1286,7 +1274,7 @@ const er = (r) => {
1286
1274
  );
1287
1275
  }), rr = C((r, t) => {
1288
1276
  const { className: n, isSelected: o, onClick: s, item: d, id: c, ...v } = r;
1289
- w(v);
1277
+ y(v);
1290
1278
  const f = We(null);
1291
1279
  return Ye(() => {
1292
1280
  if (!f.current || !o)
@@ -1313,7 +1301,7 @@ const er = (r) => {
1313
1301
  columns: s,
1314
1302
  ...d
1315
1303
  } = r;
1316
- return w(d), /* @__PURE__ */ a.jsx(
1304
+ return y(d), /* @__PURE__ */ a.jsx(
1317
1305
  "div",
1318
1306
  {
1319
1307
  className: n,
@@ -1346,7 +1334,7 @@ const er = (r) => {
1346
1334
  sub: s,
1347
1335
  ...d
1348
1336
  } = r;
1349
- w(d);
1337
+ y(d);
1350
1338
  const c = R();
1351
1339
  return s ? /* @__PURE__ */ a.jsx(
1352
1340
  c.DropdownMenu.DropdownMenuSub,
@@ -1357,7 +1345,7 @@ const er = (r) => {
1357
1345
  ) : /* @__PURE__ */ a.jsx(c.DropdownMenu.DropdownMenu, { onOpenChange: n, children: t });
1358
1346
  }, ir = (r) => {
1359
1347
  const { children: t, sub: n, ...o } = r;
1360
- w(o);
1348
+ y(o);
1361
1349
  const s = R(), d = Ue(
1362
1350
  () => ar(
1363
1351
  s.DropdownMenu.DropdownMenuTrigger
@@ -1367,7 +1355,7 @@ const er = (r) => {
1367
1355
  return n ? /* @__PURE__ */ a.jsx(s.DropdownMenu.DropdownMenuSubTrigger, { children: t }) : /* @__PURE__ */ a.jsx(d, { asChild: !0, ...o, children: t });
1368
1356
  }, lr = C((r, t) => {
1369
1357
  const { className: n, children: o, sub: s, ...d } = r;
1370
- w(d);
1358
+ y(d);
1371
1359
  const c = R();
1372
1360
  return s ? /* @__PURE__ */ a.jsx(
1373
1361
  c.DropdownMenu.DropdownMenuSubContent,
@@ -1386,7 +1374,7 @@ const er = (r) => {
1386
1374
  );
1387
1375
  }), dr = C((r, t) => {
1388
1376
  const { className: n, children: o, icon: s, checked: d, subTrigger: c, onClick: v, ...f } = r;
1389
- w(f);
1377
+ y(f);
1390
1378
  const u = R();
1391
1379
  return c ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1392
1380
  s,
@@ -1420,7 +1408,7 @@ const er = (r) => {
1420
1408
  );
1421
1409
  }), cr = C((r, t) => {
1422
1410
  const { className: n, ...o } = r;
1423
- w(o);
1411
+ y(o);
1424
1412
  const s = R();
1425
1413
  return /* @__PURE__ */ a.jsx(
1426
1414
  s.DropdownMenu.DropdownMenuSeparator,
@@ -1431,7 +1419,7 @@ const er = (r) => {
1431
1419
  );
1432
1420
  }), ur = C((r, t) => {
1433
1421
  const { className: n, children: o, ...s } = r;
1434
- w(s);
1422
+ y(s);
1435
1423
  const d = R();
1436
1424
  return /* @__PURE__ */ a.jsx(
1437
1425
  d.DropdownMenu.DropdownMenuLabel,
@@ -1452,7 +1440,7 @@ const er = (r) => {
1452
1440
  // TODO: implement loader
1453
1441
  ...f
1454
1442
  } = r;
1455
- w(f);
1443
+ y(f);
1456
1444
  const u = R();
1457
1445
  return /* @__PURE__ */ a.jsxs(
1458
1446
  u.Tabs.Tabs,
@@ -1470,7 +1458,7 @@ const er = (r) => {
1470
1458
  );
1471
1459
  }), fr = C((r, t) => {
1472
1460
  const { className: n, children: o, onClick: s, label: d, ...c } = r;
1473
- w(c);
1461
+ y(c);
1474
1462
  const v = R();
1475
1463
  return /* @__PURE__ */ a.jsx(
1476
1464
  v.Button.Button,
@@ -1485,7 +1473,7 @@ const er = (r) => {
1485
1473
  );
1486
1474
  }), mr = C((r, t) => {
1487
1475
  const { className: n, accept: o, value: s, placeholder: d, onChange: c, ...v } = r;
1488
- w(v);
1476
+ y(v);
1489
1477
  const f = R();
1490
1478
  return /* @__PURE__ */ a.jsx(
1491
1479
  f.Input.Input,
@@ -1501,7 +1489,7 @@ const er = (r) => {
1501
1489
  );
1502
1490
  }), pr = C((r, t) => {
1503
1491
  const { className: n, children: o, ...s } = r;
1504
- return w(s), /* @__PURE__ */ a.jsx(
1492
+ return y(s), /* @__PURE__ */ a.jsx(
1505
1493
  "div",
1506
1494
  {
1507
1495
  className: b(
@@ -1514,7 +1502,7 @@ const er = (r) => {
1514
1502
  );
1515
1503
  }), gr = C((r, t) => {
1516
1504
  const { className: n, value: o, placeholder: s, onKeyDown: d, onChange: c, ...v } = r;
1517
- w(v);
1505
+ y(v);
1518
1506
  const f = R();
1519
1507
  return /* @__PURE__ */ a.jsx(
1520
1508
  f.Input.Input,
@@ -1536,19 +1524,19 @@ const er = (r) => {
1536
1524
  // unused
1537
1525
  ...s
1538
1526
  } = r;
1539
- w(s);
1527
+ y(s);
1540
1528
  const d = R();
1541
1529
  return /* @__PURE__ */ a.jsx(d.Popover.Popover, { open: n, children: t });
1542
1530
  }, xr = C(
1543
1531
  (r, t) => {
1544
1532
  const { children: n, ...o } = r;
1545
- w(o);
1533
+ y(o);
1546
1534
  const s = R();
1547
1535
  return /* @__PURE__ */ a.jsx(s.Popover.PopoverTrigger, { ref: t, asChild: !0, children: n });
1548
1536
  }
1549
1537
  ), hr = C((r, t) => {
1550
1538
  const { className: n, variant: o, children: s, ...d } = r;
1551
- w(d);
1539
+ y(d);
1552
1540
  const c = R();
1553
1541
  return /* @__PURE__ */ a.jsx(
1554
1542
  c.Popover.PopoverContent,
@@ -1565,7 +1553,7 @@ const er = (r) => {
1565
1553
  );
1566
1554
  }), yr = C((r, t) => {
1567
1555
  const { className: n, children: o, ...s } = r;
1568
- return w(s, !1), /* @__PURE__ */ a.jsx("div", { className: n, ref: t, ...s, children: o });
1556
+ return y(s, !1), /* @__PURE__ */ a.jsx("div", { className: n, ref: t, ...s, children: o });
1569
1557
  }), wr = C((r, t) => {
1570
1558
  const {
1571
1559
  className: n,
@@ -1578,7 +1566,7 @@ const er = (r) => {
1578
1566
  label: u,
1579
1567
  ...g
1580
1568
  } = r;
1581
- w(g, !1);
1569
+ y(g, !1);
1582
1570
  const j = R();
1583
1571
  return /* @__PURE__ */ a.jsxs(
1584
1572
  j.Button.Button,
@@ -1600,7 +1588,7 @@ const er = (r) => {
1600
1588
  );
1601
1589
  }), Cr = C((r, t) => {
1602
1590
  const { className: n, children: o, id: s, ...d } = r;
1603
- return w(d), /* @__PURE__ */ a.jsx(
1591
+ return y(d), /* @__PURE__ */ a.jsx(
1604
1592
  "div",
1605
1593
  {
1606
1594
  id: s,
@@ -1615,7 +1603,7 @@ const er = (r) => {
1615
1603
  );
1616
1604
  }), Nr = C((r, t) => {
1617
1605
  const { className: n, children: o, ...s } = r;
1618
- return w(s), /* @__PURE__ */ a.jsx(
1606
+ return y(s), /* @__PURE__ */ a.jsx(
1619
1607
  "div",
1620
1608
  {
1621
1609
  className: b(
@@ -1628,7 +1616,7 @@ const er = (r) => {
1628
1616
  );
1629
1617
  }), jr = C((r, t) => {
1630
1618
  const n = R(), { className: o, item: s, isSelected: d, onClick: c, id: v, ...f } = r;
1631
- w(f);
1619
+ y(f);
1632
1620
  const u = We(null);
1633
1621
  return Ye(() => {
1634
1622
  if (!u.current || !d)
@@ -1659,7 +1647,7 @@ const er = (r) => {
1659
1647
  );
1660
1648
  }), Sr = C((r, t) => {
1661
1649
  const { className: n, children: o, ...s } = r;
1662
- return w(s), /* @__PURE__ */ a.jsx(
1650
+ return y(s), /* @__PURE__ */ a.jsx(
1663
1651
  "div",
1664
1652
  {
1665
1653
  className: b("bn-px-2 bn-py-1.5 bn-text-sm bn-font-semibold", n),
@@ -1669,7 +1657,7 @@ const er = (r) => {
1669
1657
  );
1670
1658
  }), Tr = C((r, t) => {
1671
1659
  const { className: n, children: o, ...s } = r;
1672
- return w(s), /* @__PURE__ */ a.jsx("div", { className: n, ref: t, children: o });
1660
+ return y(s), /* @__PURE__ */ a.jsx("div", { className: n, ref: t, children: o });
1673
1661
  }), Rr = C((r, t) => {
1674
1662
  const {
1675
1663
  className: n,
@@ -1681,7 +1669,7 @@ const er = (r) => {
1681
1669
  label: f,
1682
1670
  ...u
1683
1671
  } = r;
1684
- w(u, !1);
1672
+ y(u, !1);
1685
1673
  const g = R();
1686
1674
  return /* @__PURE__ */ a.jsx(
1687
1675
  g.Button.Button,
@@ -1713,7 +1701,7 @@ const er = (r) => {
1713
1701
  onSubmit: j,
1714
1702
  ..._
1715
1703
  } = r;
1716
- w(_);
1704
+ y(_);
1717
1705
  const F = R();
1718
1706
  return s ? /* @__PURE__ */ a.jsxs("div", { children: [
1719
1707
  /* @__PURE__ */ a.jsx(F.Label.Label, { htmlFor: s, children: s }),
@@ -1748,7 +1736,7 @@ const er = (r) => {
1748
1736
  }), $e = C(
1749
1737
  (r, t) => {
1750
1738
  const { className: n, children: o, onMouseEnter: s, onMouseLeave: d, ...c } = r;
1751
- w(c);
1739
+ y(c);
1752
1740
  const v = R();
1753
1741
  return /* @__PURE__ */ a.jsx(v.Tooltip.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ a.jsx(
1754
1742
  "div",
@@ -1778,7 +1766,7 @@ const er = (r) => {
1778
1766
  label: g,
1779
1767
  ...j
1780
1768
  } = r;
1781
- w(j, !1);
1769
+ y(j, !1);
1782
1770
  const _ = R(), F = v === void 0 ? /* @__PURE__ */ a.jsxs(
1783
1771
  _.Button.Button,
1784
1772
  {
@@ -1831,7 +1819,7 @@ const er = (r) => {
1831
1819
  }
1832
1820
  ), Dr = C((r, t) => {
1833
1821
  const { className: n, items: o, isDisabled: s, ...d } = r;
1834
- w(d);
1822
+ y(d);
1835
1823
  const c = R(), v = (u) => /* @__PURE__ */ a.jsxs("div", { className: "bn-flex bn-gap-1 bn-items-center", children: [
1836
1824
  u.icon,
1837
1825
  u.text
@@ -1859,8 +1847,7 @@ const er = (r) => {
1859
1847
  ]
1860
1848
  }
1861
1849
  ) : null;
1862
- });
1863
- const _r = {
1850
+ }), _r = {
1864
1851
  FormattingToolbar: {
1865
1852
  Root: $e,
1866
1853
  Button: Ae,