@blocknote/mantine 0.14.3 → 0.14.4

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.
@@ -1,9 +1,8 @@
1
1
  import D, { forwardRef as R, createContext as zr, useState as Wr, useRef as ce, useCallback as de, useContext as Br, useEffect as Vr } from "react";
2
2
  import { assertEmpty as j, isSafari as fe, mergeCSSClasses as Yr } from "@blocknote/core";
3
- import { elementOverflow as Ur, useBlockNoteContext as Kr, ComponentsContext as Gr, BlockNoteViewRaw as Hr } from "@blocknote/react";
4
- import { TextInput as Je, Menu as O, CheckIcon as qe, Group as N, Tabs as X, LoadingOverlay as Jr, Button as U, FileInput as qr, Popover as Xr, PopoverTarget as Zr, PopoverDropdown as Qr, ActionIcon as Xe, Stack as be, Text as Z, Badge as et, Loader as rt, Tooltip as tt, MantineProvider as nt } from "@mantine/core";
5
- import { usePrefersColorScheme as ot } from "use-prefers-color-scheme";
6
- import { mergeRefs as ge, useFocusWithin as at, useFocusTrap as it } from "@mantine/hooks";
3
+ import { elementOverflow as Ur, useBlockNoteContext as Kr, usePrefersColorScheme as Gr, ComponentsContext as Hr, BlockNoteViewRaw as Jr } from "@blocknote/react";
4
+ import { TextInput as Je, Menu as O, CheckIcon as qe, Group as N, Tabs as X, LoadingOverlay as qr, Button as U, FileInput as Xr, Popover as Zr, PopoverTarget as Qr, PopoverDropdown as et, ActionIcon as Xe, Stack as be, Text as Z, Badge as rt, Loader as tt, Tooltip as nt, MantineProvider as at } from "@mantine/core";
5
+ import { mergeRefs as ge, useFocusWithin as ot, useFocusTrap as it } from "@mantine/hooks";
7
6
  var ve = { exports: {} }, V = {};
8
7
  /**
9
8
  * @license React
@@ -19,12 +18,12 @@ function st() {
19
18
  if (We)
20
19
  return V;
21
20
  We = 1;
22
- var r = D, n = Symbol.for("react.element"), t = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, i = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
21
+ var r = D, n = Symbol.for("react.element"), t = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, i = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
23
22
  function f(c, d, b) {
24
23
  var h, w = {}, k = null, K = null;
25
24
  b !== void 0 && (k = "" + b), d.key !== void 0 && (k = "" + d.key), d.ref !== void 0 && (K = d.ref);
26
25
  for (h in d)
27
- o.call(d, h) && !u.hasOwnProperty(h) && (w[h] = d[h]);
26
+ a.call(d, h) && !u.hasOwnProperty(h) && (w[h] = d[h]);
28
27
  if (c && c.defaultProps)
29
28
  for (h in d = c.defaultProps, d)
30
29
  w[h] === void 0 && (w[h] = d[h]);
@@ -45,46 +44,46 @@ var Y = {};
45
44
  var Be;
46
45
  function lt() {
47
46
  return Be || (Be = 1, process.env.NODE_ENV !== "production" && function() {
48
- var r = D, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), K = Symbol.for("react.offscreen"), me = Symbol.iterator, nr = "@@iterator";
49
- function or(e) {
47
+ var r = D, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), K = Symbol.for("react.offscreen"), pe = Symbol.iterator, nr = "@@iterator";
48
+ function ar(e) {
50
49
  if (e === null || typeof e != "object")
51
50
  return null;
52
- var a = me && e[me] || e[nr];
53
- return typeof a == "function" ? a : null;
51
+ var o = pe && e[pe] || e[nr];
52
+ return typeof o == "function" ? o : null;
54
53
  }
55
54
  var L = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
56
55
  function S(e) {
57
56
  {
58
- for (var a = arguments.length, s = new Array(a > 1 ? a - 1 : 0), v = 1; v < a; v++)
57
+ for (var o = arguments.length, s = new Array(o > 1 ? o - 1 : 0), v = 1; v < o; v++)
59
58
  s[v - 1] = arguments[v];
60
- ar("error", e, s);
59
+ or("error", e, s);
61
60
  }
62
61
  }
63
- function ar(e, a, s) {
62
+ function or(e, o, s) {
64
63
  {
65
- var v = L.ReactDebugCurrentFrame, p = v.getStackAddendum();
66
- p !== "" && (a += "%s", s = s.concat([p]));
67
- var y = s.map(function(m) {
68
- return String(m);
64
+ var v = L.ReactDebugCurrentFrame, m = v.getStackAddendum();
65
+ m !== "" && (o += "%s", s = s.concat([m]));
66
+ var y = s.map(function(p) {
67
+ return String(p);
69
68
  });
70
- y.unshift("Warning: " + a), Function.prototype.apply.call(console[e], console, y);
69
+ y.unshift("Warning: " + o), Function.prototype.apply.call(console[e], console, y);
71
70
  }
72
71
  }
73
- var ir = !1, sr = !1, lr = !1, ur = !1, cr = !1, pe;
74
- pe = Symbol.for("react.module.reference");
72
+ var ir = !1, sr = !1, lr = !1, ur = !1, cr = !1, me;
73
+ me = Symbol.for("react.module.reference");
75
74
  function dr(e) {
76
- return !!(typeof e == "string" || typeof e == "function" || e === o || e === u || cr || e === i || e === b || e === h || ur || e === K || ir || sr || lr || typeof e == "object" && e !== null && (e.$$typeof === k || e.$$typeof === w || e.$$typeof === f || e.$$typeof === c || e.$$typeof === d || // This needs to include all possible module reference object
75
+ return !!(typeof e == "string" || typeof e == "function" || e === a || e === u || cr || e === i || e === b || e === h || ur || e === K || ir || sr || lr || typeof e == "object" && e !== null && (e.$$typeof === k || e.$$typeof === w || e.$$typeof === f || e.$$typeof === c || e.$$typeof === d || // This needs to include all possible module reference object
77
76
  // types supported by any Flight configuration anywhere since
78
77
  // we don't know which Flight build this will end up being used
79
78
  // with.
80
- e.$$typeof === pe || e.getModuleId !== void 0));
79
+ e.$$typeof === me || e.getModuleId !== void 0));
81
80
  }
82
- function fr(e, a, s) {
81
+ function fr(e, o, s) {
83
82
  var v = e.displayName;
84
83
  if (v)
85
84
  return v;
86
- var p = a.displayName || a.name || "";
87
- return p !== "" ? s + "(" + p + ")" : s;
85
+ var m = o.displayName || o.name || "";
86
+ return m !== "" ? s + "(" + m + ")" : s;
88
87
  }
89
88
  function he(e) {
90
89
  return e.displayName || "Context";
@@ -97,7 +96,7 @@ function lt() {
97
96
  if (typeof e == "string")
98
97
  return e;
99
98
  switch (e) {
100
- case o:
99
+ case a:
101
100
  return "Fragment";
102
101
  case t:
103
102
  return "Portal";
@@ -113,8 +112,8 @@ function lt() {
113
112
  if (typeof e == "object")
114
113
  switch (e.$$typeof) {
115
114
  case c:
116
- var a = e;
117
- return he(a) + ".Consumer";
115
+ var o = e;
116
+ return he(o) + ".Consumer";
118
117
  case f:
119
118
  var s = e;
120
119
  return he(s._context) + ".Provider";
@@ -124,9 +123,9 @@ function lt() {
124
123
  var v = e.displayName || null;
125
124
  return v !== null ? v : F(e.type) || "Memo";
126
125
  case k: {
127
- var p = e, y = p._payload, m = p._init;
126
+ var m = e, y = m._payload, p = m._init;
128
127
  try {
129
- return F(m(y));
128
+ return F(p(y));
130
129
  } catch {
131
130
  return null;
132
131
  }
@@ -197,13 +196,13 @@ function lt() {
197
196
  }
198
197
  }
199
198
  var re = L.ReactCurrentDispatcher, te;
200
- function G(e, a, s) {
199
+ function G(e, o, s) {
201
200
  {
202
201
  if (te === void 0)
203
202
  try {
204
203
  throw Error();
205
- } catch (p) {
206
- var v = p.stack.trim().match(/\n( *(at )?)/);
204
+ } catch (m) {
205
+ var v = m.stack.trim().match(/\n( *(at )?)/);
207
206
  te = v && v[1] || "";
208
207
  }
209
208
  return `
@@ -215,7 +214,7 @@ function lt() {
215
214
  var gr = typeof WeakMap == "function" ? WeakMap : Map;
216
215
  H = new gr();
217
216
  }
218
- function Se(e, a) {
217
+ function Se(e, o) {
219
218
  if (!e || ne)
220
219
  return "";
221
220
  {
@@ -225,33 +224,33 @@ function lt() {
225
224
  }
226
225
  var v;
227
226
  ne = !0;
228
- var p = Error.prepareStackTrace;
227
+ var m = Error.prepareStackTrace;
229
228
  Error.prepareStackTrace = void 0;
230
229
  var y;
231
230
  y = re.current, re.current = null, vr();
232
231
  try {
233
- if (a) {
234
- var m = function() {
232
+ if (o) {
233
+ var p = function() {
235
234
  throw Error();
236
235
  };
237
- if (Object.defineProperty(m.prototype, "props", {
236
+ if (Object.defineProperty(p.prototype, "props", {
238
237
  set: function() {
239
238
  throw Error();
240
239
  }
241
240
  }), typeof Reflect == "object" && Reflect.construct) {
242
241
  try {
243
- Reflect.construct(m, []);
242
+ Reflect.construct(p, []);
244
243
  } catch (_) {
245
244
  v = _;
246
245
  }
247
- Reflect.construct(e, [], m);
246
+ Reflect.construct(e, [], p);
248
247
  } else {
249
248
  try {
250
- m.call();
249
+ p.call();
251
250
  } catch (_) {
252
251
  v = _;
253
252
  }
254
- e.call(m.prototype);
253
+ e.call(p.prototype);
255
254
  }
256
255
  } else {
257
256
  try {
@@ -281,23 +280,23 @@ function lt() {
281
280
  }
282
281
  }
283
282
  } finally {
284
- ne = !1, re.current = y, br(), Error.prepareStackTrace = p;
283
+ ne = !1, re.current = y, br(), Error.prepareStackTrace = m;
285
284
  }
286
285
  var $ = e ? e.displayName || e.name : "", I = $ ? G($) : "";
287
286
  return typeof e == "function" && H.set(e, I), I;
288
287
  }
289
- function mr(e, a, s) {
288
+ function pr(e, o, s) {
290
289
  return Se(e, !1);
291
290
  }
292
- function pr(e) {
293
- var a = e.prototype;
294
- return !!(a && a.isReactComponent);
291
+ function mr(e) {
292
+ var o = e.prototype;
293
+ return !!(o && o.isReactComponent);
295
294
  }
296
- function J(e, a, s) {
295
+ function J(e, o, s) {
297
296
  if (e == null)
298
297
  return "";
299
298
  if (typeof e == "function")
300
- return Se(e, pr(e));
299
+ return Se(e, mr(e));
301
300
  if (typeof e == "string")
302
301
  return G(e);
303
302
  switch (e) {
@@ -309,13 +308,13 @@ function lt() {
309
308
  if (typeof e == "object")
310
309
  switch (e.$$typeof) {
311
310
  case d:
312
- return mr(e.render);
311
+ return pr(e.render);
313
312
  case w:
314
- return J(e.type, a, s);
313
+ return J(e.type, o, s);
315
314
  case k: {
316
- var v = e, p = v._payload, y = v._init;
315
+ var v = e, m = v._payload, y = v._init;
317
316
  try {
318
- return J(y(p), a, s);
317
+ return J(y(m), o, s);
319
318
  } catch {
320
319
  }
321
320
  }
@@ -325,37 +324,37 @@ function lt() {
325
324
  var W = Object.prototype.hasOwnProperty, Pe = {}, _e = L.ReactDebugCurrentFrame;
326
325
  function q(e) {
327
326
  if (e) {
328
- var a = e._owner, s = J(e.type, e._source, a ? a.type : null);
327
+ var o = e._owner, s = J(e.type, e._source, o ? o.type : null);
329
328
  _e.setExtraStackFrame(s);
330
329
  } else
331
330
  _e.setExtraStackFrame(null);
332
331
  }
333
- function hr(e, a, s, v, p) {
332
+ function hr(e, o, s, v, m) {
334
333
  {
335
334
  var y = Function.call.bind(W);
336
- for (var m in e)
337
- if (y(e, m)) {
335
+ for (var p in e)
336
+ if (y(e, p)) {
338
337
  var g = void 0;
339
338
  try {
340
- if (typeof e[m] != "function") {
341
- var P = Error((v || "React class") + ": " + s + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
339
+ if (typeof e[p] != "function") {
340
+ var P = Error((v || "React class") + ": " + s + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
342
341
  throw P.name = "Invariant Violation", P;
343
342
  }
344
- g = e[m](a, m, v, s, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
343
+ g = e[p](o, p, v, s, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
345
344
  } catch (E) {
346
345
  g = E;
347
346
  }
348
- g && !(g instanceof Error) && (q(p), S("%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).", v || "React class", s, m, typeof g), q(null)), g instanceof Error && !(g.message in Pe) && (Pe[g.message] = !0, q(p), S("Failed %s type: %s", s, g.message), q(null));
347
+ g && !(g instanceof Error) && (q(m), S("%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).", v || "React class", s, p, typeof g), q(null)), g instanceof Error && !(g.message in Pe) && (Pe[g.message] = !0, q(m), S("Failed %s type: %s", s, g.message), q(null));
349
348
  }
350
349
  }
351
350
  }
352
351
  var xr = Array.isArray;
353
- function oe(e) {
352
+ function ae(e) {
354
353
  return xr(e);
355
354
  }
356
355
  function yr(e) {
357
356
  {
358
- var a = typeof Symbol == "function" && Symbol.toStringTag, s = a && e[Symbol.toStringTag] || e.constructor.name || "Object";
357
+ var o = typeof Symbol == "function" && Symbol.toStringTag, s = o && e[Symbol.toStringTag] || e.constructor.name || "Object";
359
358
  return s;
360
359
  }
361
360
  }
@@ -378,34 +377,34 @@ function lt() {
378
377
  ref: !0,
379
378
  __self: !0,
380
379
  __source: !0
381
- }, Fe, De, ae;
382
- ae = {};
380
+ }, Fe, De, oe;
381
+ oe = {};
383
382
  function Er(e) {
384
383
  if (W.call(e, "ref")) {
385
- var a = Object.getOwnPropertyDescriptor(e, "ref").get;
386
- if (a && a.isReactWarning)
384
+ var o = Object.getOwnPropertyDescriptor(e, "ref").get;
385
+ if (o && o.isReactWarning)
387
386
  return !1;
388
387
  }
389
388
  return e.ref !== void 0;
390
389
  }
391
390
  function Tr(e) {
392
391
  if (W.call(e, "key")) {
393
- var a = Object.getOwnPropertyDescriptor(e, "key").get;
394
- if (a && a.isReactWarning)
392
+ var o = Object.getOwnPropertyDescriptor(e, "key").get;
393
+ if (o && o.isReactWarning)
395
394
  return !1;
396
395
  }
397
396
  return e.key !== void 0;
398
397
  }
399
- function wr(e, a) {
400
- if (typeof e.ref == "string" && B.current && a && B.current.stateNode !== a) {
398
+ function wr(e, o) {
399
+ if (typeof e.ref == "string" && B.current && o && B.current.stateNode !== o) {
401
400
  var s = F(B.current.type);
402
- ae[s] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', F(B.current.type), e.ref), ae[s] = !0);
401
+ oe[s] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', F(B.current.type), e.ref), oe[s] = !0);
403
402
  }
404
403
  }
405
- function kr(e, a) {
404
+ function kr(e, o) {
406
405
  {
407
406
  var s = function() {
408
- Fe || (Fe = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
407
+ Fe || (Fe = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
409
408
  };
410
409
  s.isReactWarning = !0, Object.defineProperty(e, "key", {
411
410
  get: s,
@@ -413,10 +412,10 @@ function lt() {
413
412
  });
414
413
  }
415
414
  }
416
- function Sr(e, a) {
415
+ function Sr(e, o) {
417
416
  {
418
417
  var s = function() {
419
- De || (De = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
418
+ De || (De = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
420
419
  };
421
420
  s.isReactWarning = !0, Object.defineProperty(e, "ref", {
422
421
  get: s,
@@ -424,15 +423,15 @@ function lt() {
424
423
  });
425
424
  }
426
425
  }
427
- var Pr = function(e, a, s, v, p, y, m) {
426
+ var Pr = function(e, o, s, v, m, y, p) {
428
427
  var g = {
429
428
  // This tag allows us to uniquely identify this as a React Element
430
429
  $$typeof: n,
431
430
  // Built-in properties that belong on the element
432
431
  type: e,
433
- key: a,
432
+ key: o,
434
433
  ref: s,
435
- props: m,
434
+ props: p,
436
435
  // Record the component responsible for creating this element.
437
436
  _owner: y
438
437
  };
@@ -450,31 +449,31 @@ function lt() {
450
449
  configurable: !1,
451
450
  enumerable: !1,
452
451
  writable: !1,
453
- value: p
452
+ value: m
454
453
  }), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
455
454
  };
456
- function _r(e, a, s, v, p) {
455
+ function _r(e, o, s, v, m) {
457
456
  {
458
- var y, m = {}, g = null, P = null;
459
- s !== void 0 && (Oe(s), g = "" + s), Tr(a) && (Oe(a.key), g = "" + a.key), Er(a) && (P = a.ref, wr(a, p));
460
- for (y in a)
461
- W.call(a, y) && !Rr.hasOwnProperty(y) && (m[y] = a[y]);
457
+ var y, p = {}, g = null, P = null;
458
+ s !== void 0 && (Oe(s), g = "" + s), Tr(o) && (Oe(o.key), g = "" + o.key), Er(o) && (P = o.ref, wr(o, m));
459
+ for (y in o)
460
+ W.call(o, y) && !Rr.hasOwnProperty(y) && (p[y] = o[y]);
462
461
  if (e && e.defaultProps) {
463
462
  var E = e.defaultProps;
464
463
  for (y in E)
465
- m[y] === void 0 && (m[y] = E[y]);
464
+ p[y] === void 0 && (p[y] = E[y]);
466
465
  }
467
466
  if (g || P) {
468
467
  var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
469
- g && kr(m, T), P && Sr(m, T);
468
+ g && kr(p, T), P && Sr(p, T);
470
469
  }
471
- return Pr(e, g, P, p, v, B.current, m);
470
+ return Pr(e, g, P, m, v, B.current, p);
472
471
  }
473
472
  }
474
473
  var ie = L.ReactCurrentOwner, Ne = L.ReactDebugCurrentFrame;
475
474
  function A(e) {
476
475
  if (e) {
477
- var a = e._owner, s = J(e.type, e._source, a ? a.type : null);
476
+ var o = e._owner, s = J(e.type, e._source, o ? o.type : null);
478
477
  Ne.setExtraStackFrame(s);
479
478
  } else
480
479
  Ne.setExtraStackFrame(null);
@@ -499,10 +498,10 @@ Check the render method of \`` + e + "`.";
499
498
  function Cr(e) {
500
499
  {
501
500
  if (e !== void 0) {
502
- var a = e.fileName.replace(/^.*[\\\/]/, ""), s = e.lineNumber;
501
+ var o = e.fileName.replace(/^.*[\\\/]/, ""), s = e.lineNumber;
503
502
  return `
504
503
 
505
- Check your code at ` + a + ":" + s + ".";
504
+ Check your code at ` + o + ":" + s + ".";
506
505
  }
507
506
  return "";
508
507
  }
@@ -510,22 +509,22 @@ Check your code at ` + a + ":" + s + ".";
510
509
  var Ie = {};
511
510
  function Or(e) {
512
511
  {
513
- var a = Me();
514
- if (!a) {
512
+ var o = Me();
513
+ if (!o) {
515
514
  var s = typeof e == "string" ? e : e.displayName || e.name;
516
- s && (a = `
515
+ s && (o = `
517
516
 
518
517
  Check the top-level render call using <` + s + ">.");
519
518
  }
520
- return a;
519
+ return o;
521
520
  }
522
521
  }
523
- function Le(e, a) {
522
+ function Le(e, o) {
524
523
  {
525
524
  if (!e._store || e._store.validated || e.key != null)
526
525
  return;
527
526
  e._store.validated = !0;
528
- var s = Or(a);
527
+ var s = Or(o);
529
528
  if (Ie[s])
530
529
  return;
531
530
  Ie[s] = !0;
@@ -533,54 +532,54 @@ Check the top-level render call using <` + s + ">.");
533
532
  e && e._owner && e._owner !== ie.current && (v = " It was passed a child from " + F(e._owner.type) + "."), A(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', s, v), A(null);
534
533
  }
535
534
  }
536
- function Ae(e, a) {
535
+ function Ae(e, o) {
537
536
  {
538
537
  if (typeof e != "object")
539
538
  return;
540
- if (oe(e))
539
+ if (ae(e))
541
540
  for (var s = 0; s < e.length; s++) {
542
541
  var v = e[s];
543
- le(v) && Le(v, a);
542
+ le(v) && Le(v, o);
544
543
  }
545
544
  else if (le(e))
546
545
  e._store && (e._store.validated = !0);
547
546
  else if (e) {
548
- var p = or(e);
549
- if (typeof p == "function" && p !== e.entries)
550
- for (var y = p.call(e), m; !(m = y.next()).done; )
551
- le(m.value) && Le(m.value, a);
547
+ var m = ar(e);
548
+ if (typeof m == "function" && m !== e.entries)
549
+ for (var y = m.call(e), p; !(p = y.next()).done; )
550
+ le(p.value) && Le(p.value, o);
552
551
  }
553
552
  }
554
553
  }
555
554
  function Fr(e) {
556
555
  {
557
- var a = e.type;
558
- if (a == null || typeof a == "string")
556
+ var o = e.type;
557
+ if (o == null || typeof o == "string")
559
558
  return;
560
559
  var s;
561
- if (typeof a == "function")
562
- s = a.propTypes;
563
- else if (typeof a == "object" && (a.$$typeof === d || // Note: Memo only checks outer props here.
560
+ if (typeof o == "function")
561
+ s = o.propTypes;
562
+ else if (typeof o == "object" && (o.$$typeof === d || // Note: Memo only checks outer props here.
564
563
  // Inner props are checked in the reconciler.
565
- a.$$typeof === w))
566
- s = a.propTypes;
564
+ o.$$typeof === w))
565
+ s = o.propTypes;
567
566
  else
568
567
  return;
569
568
  if (s) {
570
- var v = F(a);
569
+ var v = F(o);
571
570
  hr(s, e.props, "prop", v, e);
572
- } else if (a.PropTypes !== void 0 && !se) {
571
+ } else if (o.PropTypes !== void 0 && !se) {
573
572
  se = !0;
574
- var p = F(a);
575
- S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
573
+ var m = F(o);
574
+ S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", m || "Unknown");
576
575
  }
577
- typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
576
+ typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
578
577
  }
579
578
  }
580
579
  function Dr(e) {
581
580
  {
582
- for (var a = Object.keys(e.props), s = 0; s < a.length; s++) {
583
- var v = a[s];
581
+ for (var o = Object.keys(e.props), s = 0; s < o.length; s++) {
582
+ var v = o[s];
584
583
  if (v !== "children" && v !== "key") {
585
584
  A(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), A(null);
586
585
  break;
@@ -590,25 +589,25 @@ Check the top-level render call using <` + s + ">.");
590
589
  }
591
590
  }
592
591
  var $e = {};
593
- function ze(e, a, s, v, p, y) {
592
+ function ze(e, o, s, v, m, y) {
594
593
  {
595
- var m = dr(e);
596
- if (!m) {
594
+ var p = dr(e);
595
+ if (!p) {
597
596
  var g = "";
598
597
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
599
- var P = Cr(p);
598
+ var P = Cr(m);
600
599
  P ? g += P : g += Me();
601
600
  var E;
602
- e === null ? E = "null" : oe(e) ? E = "array" : e !== void 0 && e.$$typeof === n ? (E = "<" + (F(e.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, g);
601
+ e === null ? E = "null" : ae(e) ? E = "array" : e !== void 0 && e.$$typeof === n ? (E = "<" + (F(e.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, g);
603
602
  }
604
- var T = _r(e, a, s, p, y);
603
+ var T = _r(e, o, s, m, y);
605
604
  if (T == null)
606
605
  return T;
607
- if (m) {
608
- var C = a.children;
606
+ if (p) {
607
+ var C = o.children;
609
608
  if (C !== void 0)
610
609
  if (v)
611
- if (oe(C)) {
610
+ if (ae(C)) {
612
611
  for (var $ = 0; $ < C.length; $++)
613
612
  Ae(C[$], e);
614
613
  Object.freeze && Object.freeze(C);
@@ -617,8 +616,8 @@ Check the top-level render call using <` + s + ">.");
617
616
  else
618
617
  Ae(C, e);
619
618
  }
620
- if (W.call(a, "key")) {
621
- var I = F(e), _ = Object.keys(a).filter(function($r) {
619
+ if (W.call(o, "key")) {
620
+ var I = F(e), _ = Object.keys(o).filter(function($r) {
622
621
  return $r !== "key";
623
622
  }), ue = _.length > 0 ? "{key: someKey, " + _.join(": ..., ") + ": ...}" : "{key: someKey}";
624
623
  if (!$e[I + ue]) {
@@ -631,30 +630,30 @@ React keys must be passed directly to JSX without using spread:
631
630
  <%s key={someKey} {...props} />`, ue, I, Ar, I), $e[I + ue] = !0;
632
631
  }
633
632
  }
634
- return e === o ? Dr(T) : Fr(T), T;
633
+ return e === a ? Dr(T) : Fr(T), T;
635
634
  }
636
635
  }
637
- function Nr(e, a, s) {
638
- return ze(e, a, s, !0);
636
+ function Nr(e, o, s) {
637
+ return ze(e, o, s, !0);
639
638
  }
640
- function Mr(e, a, s) {
641
- return ze(e, a, s, !1);
639
+ function Mr(e, o, s) {
640
+ return ze(e, o, s, !1);
642
641
  }
643
642
  var Ir = Mr, Lr = Nr;
644
- Y.Fragment = o, Y.jsx = Ir, Y.jsxs = Lr;
643
+ Y.Fragment = a, Y.jsx = Ir, Y.jsxs = Lr;
645
644
  }()), Y;
646
645
  }
647
646
  process.env.NODE_ENV === "production" ? ve.exports = st() : ve.exports = lt();
648
647
  var l = ve.exports;
649
648
  const Ze = (r, n, t = !1) => {
650
- const o = [];
649
+ const a = [];
651
650
  function i(u, f = "--bn") {
652
651
  for (const c in u) {
653
652
  const d = c.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), b = `${f}-${d}`;
654
653
  typeof u[c] != "object" ? (typeof u[c] == "number" && (u[c] = `${u[c]}px`), t ? n.style.removeProperty(b) : n.style.setProperty(b, u[c].toString())) : i(u[c], b);
655
654
  }
656
655
  }
657
- return i(r), o;
656
+ return i(r), a;
658
657
  }, Ve = (r, n) => Ze(r, n), ut = {
659
658
  colors: {
660
659
  editor: {
@@ -728,7 +727,7 @@ const Ze = (r, n, t = !1) => {
728
727
  }, ct = (r) => Ze(ut, r, !0), dt = R((r, n) => {
729
728
  const {
730
729
  className: t,
731
- name: o,
730
+ name: a,
732
731
  label: i,
733
732
  icon: u,
734
733
  value: f,
@@ -745,7 +744,7 @@ const Ze = (r, n, t = !1) => {
745
744
  size: "xs",
746
745
  className: t,
747
746
  ref: n,
748
- name: o,
747
+ name: a,
749
748
  label: i,
750
749
  leftSection: u,
751
750
  value: f,
@@ -768,11 +767,11 @@ var Qe = {
768
767
  function vt(r, n) {
769
768
  if (r == null)
770
769
  return {};
771
- var t = bt(r, n), o, i;
770
+ var t = bt(r, n), a, i;
772
771
  if (Object.getOwnPropertySymbols) {
773
772
  var u = Object.getOwnPropertySymbols(r);
774
773
  for (i = 0; i < u.length; i++)
775
- o = u[i], !(n.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(r, o) && (t[o] = r[o]);
774
+ a = u[i], !(n.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(r, a) && (t[a] = r[a]);
776
775
  }
777
776
  return t;
778
777
  }
@@ -780,11 +779,11 @@ function bt(r, n) {
780
779
  if (r == null)
781
780
  return {};
782
781
  var t = {};
783
- for (var o in r)
784
- if (Object.prototype.hasOwnProperty.call(r, o)) {
785
- if (n.indexOf(o) >= 0)
782
+ for (var a in r)
783
+ if (Object.prototype.hasOwnProperty.call(r, a)) {
784
+ if (n.indexOf(a) >= 0)
786
785
  continue;
787
- t[o] = r[o];
786
+ t[a] = r[a];
788
787
  }
789
788
  return t;
790
789
  }
@@ -792,8 +791,8 @@ function Q() {
792
791
  return Q = Object.assign ? Object.assign.bind() : function(r) {
793
792
  for (var n = 1; n < arguments.length; n++) {
794
793
  var t = arguments[n];
795
- for (var o in t)
796
- Object.prototype.hasOwnProperty.call(t, o) && (r[o] = t[o]);
794
+ for (var a in t)
795
+ Object.prototype.hasOwnProperty.call(t, a) && (r[a] = t[a]);
797
796
  }
798
797
  return r;
799
798
  }, Q.apply(this, arguments);
@@ -801,39 +800,39 @@ function Q() {
801
800
  function Ue(r, n) {
802
801
  var t = Object.keys(r);
803
802
  if (Object.getOwnPropertySymbols) {
804
- var o = Object.getOwnPropertySymbols(r);
805
- n && (o = o.filter(function(i) {
803
+ var a = Object.getOwnPropertySymbols(r);
804
+ n && (a = a.filter(function(i) {
806
805
  return Object.getOwnPropertyDescriptor(r, i).enumerable;
807
- })), t.push.apply(t, o);
806
+ })), t.push.apply(t, a);
808
807
  }
809
808
  return t;
810
809
  }
811
810
  function ee(r) {
812
811
  for (var n = 1; n < arguments.length; n++) {
813
812
  var t = arguments[n] != null ? arguments[n] : {};
814
- n % 2 ? Ue(Object(t), !0).forEach(function(o) {
815
- gt(r, o, t[o]);
816
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : Ue(Object(t)).forEach(function(o) {
817
- Object.defineProperty(r, o, Object.getOwnPropertyDescriptor(t, o));
813
+ n % 2 ? Ue(Object(t), !0).forEach(function(a) {
814
+ gt(r, a, t[a]);
815
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : Ue(Object(t)).forEach(function(a) {
816
+ Object.defineProperty(r, a, Object.getOwnPropertyDescriptor(t, a));
818
817
  });
819
818
  }
820
819
  return r;
821
820
  }
822
821
  function gt(r, n, t) {
823
- return n = mt(n), n in r ? Object.defineProperty(r, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[n] = t, r;
822
+ return n = pt(n), n in r ? Object.defineProperty(r, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[n] = t, r;
824
823
  }
825
- function mt(r) {
826
- var n = pt(r, "string");
824
+ function pt(r) {
825
+ var n = mt(r, "string");
827
826
  return typeof n == "symbol" ? n : n + "";
828
827
  }
829
- function pt(r, n) {
828
+ function mt(r, n) {
830
829
  if (typeof r != "object" || !r)
831
830
  return r;
832
831
  var t = r[Symbol.toPrimitive];
833
832
  if (t !== void 0) {
834
- var o = t.call(r, n || "default");
835
- if (typeof o != "object")
836
- return o;
833
+ var a = t.call(r, n || "default");
834
+ if (typeof a != "object")
835
+ return a;
837
836
  throw new TypeError("@@toPrimitive must return a primitive value.");
838
837
  }
839
838
  return (n === "string" ? String : Number)(r);
@@ -851,7 +850,7 @@ function rr(r) {
851
850
  function ht(r) {
852
851
  var n = (t) => {
853
852
  var {
854
- attr: o,
853
+ attr: a,
855
854
  size: i,
856
855
  title: u
857
856
  } = r, f = vt(r, ft), c = i || t.size || "1em", d;
@@ -859,7 +858,7 @@ function ht(r) {
859
858
  stroke: "currentColor",
860
859
  fill: "currentColor",
861
860
  strokeWidth: "0"
862
- }, t.attr, o, f, {
861
+ }, t.attr, a, f, {
863
862
  className: d,
864
863
  style: ee(ee({
865
864
  color: r.color || t.color
@@ -880,7 +879,7 @@ function yt(r) {
880
879
  const tr = zr(void 0), jt = R((r, n) => {
881
880
  const {
882
881
  children: t,
883
- onOpenChange: o,
882
+ onOpenChange: a,
884
883
  position: i,
885
884
  sub: u,
886
885
  // not used
@@ -917,8 +916,8 @@ const tr = zr(void 0), jt = R((r, n) => {
917
916
  middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
918
917
  trigger: "hover",
919
918
  opened: c,
920
- onClose: () => o == null ? void 0 : o(!1),
921
- onOpen: () => o == null ? void 0 : o(!0),
919
+ onClose: () => a == null ? void 0 : a(!1),
920
+ onOpen: () => a == null ? void 0 : a(!0),
922
921
  position: i,
923
922
  children: t
924
923
  }
@@ -928,7 +927,7 @@ const tr = zr(void 0), jt = R((r, n) => {
928
927
  }
929
928
  );
930
929
  }), Rt = (r) => {
931
- const { children: n, onOpenChange: t, position: o, sub: i, ...u } = r;
930
+ const { children: n, onOpenChange: t, position: a, sub: i, ...u } = r;
932
931
  return j(u), i ? /* @__PURE__ */ l.jsx(jt, { ...r }) : /* @__PURE__ */ l.jsx(
933
932
  O,
934
933
  {
@@ -936,14 +935,14 @@ const tr = zr(void 0), jt = R((r, n) => {
936
935
  middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
937
936
  onClose: () => t == null ? void 0 : t(!1),
938
937
  onOpen: () => t == null ? void 0 : t(!0),
939
- position: o,
938
+ position: a,
940
939
  children: n
941
940
  }
942
941
  );
943
942
  }, Et = R((r, n) => {
944
- const { className: t, children: o, icon: i, checked: u, subTrigger: f, onClick: c, ...d } = r;
943
+ const { className: t, children: a, icon: i, checked: u, subTrigger: f, onClick: c, ...d } = r;
945
944
  return j(d, !1), f ? /* @__PURE__ */ l.jsxs("div", { ref: n, ...d, children: [
946
- o,
945
+ a,
947
946
  /* @__PURE__ */ l.jsx(yt, { size: 15 })
948
947
  ] }) : /* @__PURE__ */ l.jsx(
949
948
  O.Item,
@@ -954,7 +953,7 @@ const tr = zr(void 0), jt = R((r, n) => {
954
953
  rightSection: u ? /* @__PURE__ */ l.jsx(qe, { size: 10 }) : u === !1 ? /* @__PURE__ */ l.jsx("div", { className: "bn-tick-space" }) : null,
955
954
  onClick: c,
956
955
  ...d,
957
- children: o
956
+ children: a
958
957
  }
959
958
  );
960
959
  }), Tt = (r) => {
@@ -962,13 +961,13 @@ const tr = zr(void 0), jt = R((r, n) => {
962
961
  children: n,
963
962
  sub: t,
964
963
  // unused
965
- ...o
964
+ ...a
966
965
  } = r;
967
- return j(o), /* @__PURE__ */ l.jsx(O.Target, { children: n });
966
+ return j(a), /* @__PURE__ */ l.jsx(O.Target, { children: n });
968
967
  }, wt = R((r, n) => {
969
968
  const {
970
969
  className: t,
971
- children: o,
970
+ children: a,
972
971
  sub: i,
973
972
  //unused
974
973
  ...u
@@ -982,19 +981,19 @@ const tr = zr(void 0), jt = R((r, n) => {
982
981
  ref: n,
983
982
  onMouseOver: f == null ? void 0 : f.onMenuMouseOver,
984
983
  onMouseLeave: f == null ? void 0 : f.onMenuMouseLeave,
985
- children: o
984
+ children: a
986
985
  }
987
986
  );
988
987
  }), kt = R((r, n) => {
989
- const { className: t, ...o } = r;
990
- return j(o), /* @__PURE__ */ l.jsx(O.Divider, { className: t, ref: n });
988
+ const { className: t, ...a } = r;
989
+ return j(a), /* @__PURE__ */ l.jsx(O.Divider, { className: t, ref: n });
991
990
  }), St = R((r, n) => {
992
- const { className: t, children: o, ...i } = r;
993
- return j(i), /* @__PURE__ */ l.jsx(O.Label, { className: t, ref: n, children: o });
991
+ const { className: t, children: a, ...i } = r;
992
+ return j(i), /* @__PURE__ */ l.jsx(O.Label, { className: t, ref: n, children: a });
994
993
  }), Pt = R((r, n) => {
995
994
  const {
996
995
  className: t,
997
- tabs: o,
996
+ tabs: a,
998
997
  defaultOpenTab: i,
999
998
  openTab: u,
1000
999
  setOpenTab: f,
@@ -1008,8 +1007,8 @@ const tr = zr(void 0), jt = R((r, n) => {
1008
1007
  defaultValue: i,
1009
1008
  onChange: f,
1010
1009
  children: [
1011
- c && /* @__PURE__ */ l.jsx(Jr, { visible: c }),
1012
- /* @__PURE__ */ l.jsx(X.List, { children: o.map((b) => /* @__PURE__ */ l.jsx(
1010
+ c && /* @__PURE__ */ l.jsx(qr, { visible: c }),
1011
+ /* @__PURE__ */ l.jsx(X.List, { children: a.map((b) => /* @__PURE__ */ l.jsx(
1013
1012
  X.Tab,
1014
1013
  {
1015
1014
  "data-test": `${b.name.toLowerCase()}-tab`,
@@ -1018,12 +1017,12 @@ const tr = zr(void 0), jt = R((r, n) => {
1018
1017
  },
1019
1018
  b.name
1020
1019
  )) }),
1021
- o.map((b) => /* @__PURE__ */ l.jsx(X.Panel, { value: b.name, children: b.tabPanel }, b.name))
1020
+ a.map((b) => /* @__PURE__ */ l.jsx(X.Panel, { value: b.name, children: b.tabPanel }, b.name))
1022
1021
  ]
1023
1022
  }
1024
1023
  ) });
1025
1024
  }), _t = R((r, n) => {
1026
- const { className: t, children: o, onClick: i, label: u, ...f } = r;
1025
+ const { className: t, children: a, onClick: i, label: u, ...f } = r;
1027
1026
  return j(f), /* @__PURE__ */ l.jsx(
1028
1027
  U,
1029
1028
  {
@@ -1033,18 +1032,18 @@ const tr = zr(void 0), jt = R((r, n) => {
1033
1032
  ref: n,
1034
1033
  onClick: i,
1035
1034
  ...f,
1036
- children: o
1035
+ children: a
1037
1036
  }
1038
1037
  );
1039
1038
  }), Ct = R((r, n) => {
1040
- const { className: t, accept: o, value: i, placeholder: u, onChange: f, ...c } = r;
1039
+ const { className: t, accept: a, value: i, placeholder: u, onChange: f, ...c } = r;
1041
1040
  return j(c), /* @__PURE__ */ l.jsx(
1042
- qr,
1041
+ Xr,
1043
1042
  {
1044
1043
  size: "xs",
1045
1044
  className: t,
1046
1045
  ref: n,
1047
- accept: o,
1046
+ accept: a,
1048
1047
  value: i,
1049
1048
  placeholder: u,
1050
1049
  onChange: f,
@@ -1052,10 +1051,10 @@ const tr = zr(void 0), jt = R((r, n) => {
1052
1051
  }
1053
1052
  );
1054
1053
  }), Ot = R((r, n) => {
1055
- const { className: t, children: o, ...i } = r;
1056
- return j(i), /* @__PURE__ */ l.jsx("div", { className: t, ref: n, children: o });
1054
+ const { className: t, children: a, ...i } = r;
1055
+ return j(i), /* @__PURE__ */ l.jsx("div", { className: t, ref: n, children: a });
1057
1056
  }), Ft = R((r, n) => {
1058
- const { className: t, value: o, placeholder: i, onKeyDown: u, onChange: f, ...c } = r;
1057
+ const { className: t, value: a, placeholder: i, onKeyDown: u, onChange: f, ...c } = r;
1059
1058
  return j(c), /* @__PURE__ */ l.jsx(
1060
1059
  Je,
1061
1060
  {
@@ -1063,38 +1062,38 @@ const tr = zr(void 0), jt = R((r, n) => {
1063
1062
  "data-test": "embed-input",
1064
1063
  className: t,
1065
1064
  ref: n,
1066
- value: o,
1065
+ value: a,
1067
1066
  placeholder: i,
1068
1067
  onKeyDown: u,
1069
1068
  onChange: f
1070
1069
  }
1071
1070
  );
1072
1071
  }), Dt = (r) => {
1073
- const { children: n, opened: t, position: o, ...i } = r;
1072
+ const { children: n, opened: t, position: a, ...i } = r;
1074
1073
  return j(i), /* @__PURE__ */ l.jsx(
1075
- Xr,
1074
+ Zr,
1076
1075
  {
1077
1076
  withinPortal: !1,
1078
1077
  zIndex: 1e4,
1079
1078
  opened: t,
1080
- position: o,
1079
+ position: a,
1081
1080
  children: n
1082
1081
  }
1083
1082
  );
1084
1083
  }, Nt = (r) => {
1085
1084
  const { children: n, ...t } = r;
1086
- return j(t), /* @__PURE__ */ l.jsx(Zr, { children: n });
1085
+ return j(t), /* @__PURE__ */ l.jsx(Qr, { children: n });
1087
1086
  }, Mt = R((r, n) => {
1088
1087
  const {
1089
1088
  className: t,
1090
- children: o,
1089
+ children: a,
1091
1090
  variant: i,
1092
1091
  // unused
1093
1092
  ...u
1094
1093
  } = r;
1095
- return j(u), /* @__PURE__ */ l.jsx(Qr, { className: t, ref: n, children: o });
1094
+ return j(u), /* @__PURE__ */ l.jsx(et, { className: t, ref: n, children: a });
1096
1095
  }), It = R((r, n) => {
1097
- const { className: t, children: o, ...i } = r;
1096
+ const { className: t, children: a, ...i } = r;
1098
1097
  return j(i, !1), /* @__PURE__ */ l.jsx(
1099
1098
  N,
1100
1099
  {
@@ -1103,13 +1102,13 @@ const tr = zr(void 0), jt = R((r, n) => {
1103
1102
  className: t,
1104
1103
  ref: n,
1105
1104
  ...i,
1106
- children: o
1105
+ children: a
1107
1106
  }
1108
1107
  );
1109
1108
  }), Lt = R((r, n) => {
1110
1109
  const {
1111
1110
  className: t,
1112
- children: o,
1111
+ children: a,
1113
1112
  icon: i,
1114
1113
  onClick: u,
1115
1114
  onDragEnd: f,
@@ -1143,11 +1142,11 @@ const tr = zr(void 0), jt = R((r, n) => {
1143
1142
  draggable: d,
1144
1143
  "aria-label": b,
1145
1144
  ...h,
1146
- children: o
1145
+ children: a
1147
1146
  }
1148
1147
  );
1149
1148
  }), At = R((r, n) => {
1150
- const { className: t, children: o, id: i, ...u } = r;
1149
+ const { className: t, children: a, id: i, ...u } = r;
1151
1150
  return j(u), /* @__PURE__ */ l.jsx(
1152
1151
  be,
1153
1152
  {
@@ -1156,22 +1155,22 @@ const tr = zr(void 0), jt = R((r, n) => {
1156
1155
  ref: n,
1157
1156
  id: i,
1158
1157
  role: "listbox",
1159
- children: o
1158
+ children: a
1160
1159
  }
1161
1160
  );
1162
1161
  }), $t = R((r, n) => {
1163
- const { className: t, children: o, ...i } = r;
1164
- return j(i), /* @__PURE__ */ l.jsx(N, { className: t, ref: n, children: /* @__PURE__ */ l.jsx(N, { className: "bn-mt-suggestion-menu-item-title", children: o }) });
1162
+ const { className: t, children: a, ...i } = r;
1163
+ return j(i), /* @__PURE__ */ l.jsx(N, { className: t, ref: n, children: /* @__PURE__ */ l.jsx(N, { className: "bn-mt-suggestion-menu-item-title", children: a }) });
1165
1164
  }), zt = R((r, n) => {
1166
- const { className: t, isSelected: o, onClick: i, item: u, id: f, ...c } = r;
1165
+ const { className: t, isSelected: a, onClick: i, item: u, id: f, ...c } = r;
1167
1166
  j(c);
1168
1167
  const d = ce(null);
1169
1168
  return Vr(() => {
1170
- if (!d.current || !o)
1169
+ if (!d.current || !a)
1171
1170
  return;
1172
1171
  const b = Ur(d.current);
1173
1172
  b === "top" ? d.current.scrollIntoView(!0) : b === "bottom" && d.current.scrollIntoView(!1);
1174
- }, [o]), /* @__PURE__ */ l.jsxs(
1173
+ }, [a]), /* @__PURE__ */ l.jsxs(
1175
1174
  N,
1176
1175
  {
1177
1176
  gap: 0,
@@ -1180,7 +1179,7 @@ const tr = zr(void 0), jt = R((r, n) => {
1180
1179
  id: f,
1181
1180
  role: "option",
1182
1181
  onClick: i,
1183
- "aria-selected": o || void 0,
1182
+ "aria-selected": a || void 0,
1184
1183
  children: [
1185
1184
  u.icon && /* @__PURE__ */ l.jsx(
1186
1185
  N,
@@ -1199,27 +1198,27 @@ const tr = zr(void 0), jt = R((r, n) => {
1199
1198
  {
1200
1199
  "data-position": "right",
1201
1200
  className: "bn-mt-suggestion-menu-item-section",
1202
- children: /* @__PURE__ */ l.jsx(et, { size: "xs", children: u.badge })
1201
+ children: /* @__PURE__ */ l.jsx(rt, { size: "xs", children: u.badge })
1203
1202
  }
1204
1203
  )
1205
1204
  ]
1206
1205
  }
1207
1206
  );
1208
1207
  }), Wt = R((r, n) => {
1209
- const { className: t, children: o, ...i } = r;
1210
- return j(i), /* @__PURE__ */ l.jsx(N, { className: t, ref: n, children: o });
1208
+ const { className: t, children: a, ...i } = r;
1209
+ return j(i), /* @__PURE__ */ l.jsx(N, { className: t, ref: n, children: a });
1211
1210
  }), Bt = R((r, n) => {
1212
1211
  const {
1213
1212
  className: t,
1214
- children: o,
1213
+ children: a,
1215
1214
  // unused, using "dots" instead
1216
1215
  ...i
1217
1216
  } = r;
1218
- return j(i), /* @__PURE__ */ l.jsx(rt, { className: t, type: "dots", ref: n });
1217
+ return j(i), /* @__PURE__ */ l.jsx(tt, { className: t, type: "dots", ref: n });
1219
1218
  }), Vt = R((r, n) => {
1220
1219
  const {
1221
1220
  className: t,
1222
- children: o,
1221
+ children: a,
1223
1222
  draggable: i,
1224
1223
  onDragStart: u,
1225
1224
  onDragEnd: f,
@@ -1238,14 +1237,14 @@ const tr = zr(void 0), jt = R((r, n) => {
1238
1237
  onDragEnd: f,
1239
1238
  style: c,
1240
1239
  ...b,
1241
- children: o
1240
+ children: a
1242
1241
  }
1243
1242
  );
1244
1243
  }), Ke = R(
1245
1244
  (r, n) => {
1246
- const { className: t, children: o, onMouseEnter: i, onMouseLeave: u, ...f } = r;
1245
+ const { className: t, children: a, onMouseEnter: i, onMouseLeave: u, ...f } = r;
1247
1246
  j(f);
1248
- const { ref: c, focused: d } = at(), b = it(d), h = ge(n, c, b);
1247
+ const { ref: c, focused: d } = ot(), b = it(d), h = ge(n, c, b);
1249
1248
  return /* @__PURE__ */ l.jsx(
1250
1249
  N,
1251
1250
  {
@@ -1254,7 +1253,7 @@ const tr = zr(void 0), jt = R((r, n) => {
1254
1253
  role: "toolbar",
1255
1254
  onMouseEnter: i,
1256
1255
  onMouseLeave: u,
1257
- children: o
1256
+ children: a
1258
1257
  }
1259
1258
  );
1260
1259
  }
@@ -1265,7 +1264,7 @@ const tr = zr(void 0), jt = R((r, n) => {
1265
1264
  (r, n) => {
1266
1265
  const {
1267
1266
  className: t,
1268
- children: o,
1267
+ children: a,
1269
1268
  mainTooltip: i,
1270
1269
  secondaryTooltip: u,
1271
1270
  icon: f,
@@ -1276,7 +1275,7 @@ const tr = zr(void 0), jt = R((r, n) => {
1276
1275
  ...w
1277
1276
  } = r;
1278
1277
  return j(w, !1), /* @__PURE__ */ l.jsx(
1279
- tt,
1278
+ nt,
1280
1279
  {
1281
1280
  withinPortal: !1,
1282
1281
  label: /* @__PURE__ */ l.jsx(
@@ -1286,7 +1285,7 @@ const tr = zr(void 0), jt = R((r, n) => {
1286
1285
  secondaryTooltip: u
1287
1286
  }
1288
1287
  ),
1289
- children: o ? /* @__PURE__ */ l.jsx(
1288
+ children: a ? /* @__PURE__ */ l.jsx(
1290
1289
  U,
1291
1290
  {
1292
1291
  "aria-label": h,
@@ -1302,7 +1301,7 @@ const tr = zr(void 0), jt = R((r, n) => {
1302
1301
  disabled: d || !1,
1303
1302
  ref: n,
1304
1303
  ...w,
1305
- children: o
1304
+ children: a
1306
1305
  }
1307
1306
  ) : /* @__PURE__ */ l.jsx(
1308
1307
  Xe,
@@ -1327,9 +1326,9 @@ const tr = zr(void 0), jt = R((r, n) => {
1327
1326
  );
1328
1327
  }
1329
1328
  ), Ut = R((r, n) => {
1330
- const { className: t, items: o, isDisabled: i, ...u } = r;
1329
+ const { className: t, items: a, isDisabled: i, ...u } = r;
1331
1330
  j(u);
1332
- const f = o.filter((c) => c.isSelected)[0];
1331
+ const f = a.filter((c) => c.isSelected)[0];
1333
1332
  return f ? /* @__PURE__ */ l.jsxs(
1334
1333
  O,
1335
1334
  {
@@ -1354,7 +1353,7 @@ const tr = zr(void 0), jt = R((r, n) => {
1354
1353
  children: f.text
1355
1354
  }
1356
1355
  ) }),
1357
- /* @__PURE__ */ l.jsx(O.Dropdown, { className: t, ref: n, children: o.map((c) => /* @__PURE__ */ l.jsx(
1356
+ /* @__PURE__ */ l.jsx(O.Dropdown, { className: t, ref: n, children: a.map((c) => /* @__PURE__ */ l.jsx(
1358
1357
  O.Item,
1359
1358
  {
1360
1359
  onClick: c.onClick,
@@ -1453,7 +1452,7 @@ const x = [
1453
1452
  },
1454
1453
  borderRadius: 6,
1455
1454
  fontFamily: '"Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'
1456
- }, en = {
1455
+ }, Qt = {
1457
1456
  colors: {
1458
1457
  editor: {
1459
1458
  text: x[2],
@@ -1576,8 +1575,8 @@ const x = [
1576
1575
  }, Gt = {
1577
1576
  // Removes button press effect
1578
1577
  activeClassName: ""
1579
- }, rn = (r) => {
1580
- const { className: n, theme: t, ...o } = r, i = Kr(), u = ot(), f = (i == null ? void 0 : i.colorSchemePreference) || u, c = de(
1578
+ }, en = (r) => {
1579
+ const { className: n, theme: t, ...a } = r, i = Kr(), u = Gr(), f = (i == null ? void 0 : i.colorSchemePreference) || u, c = de(
1581
1580
  (d) => {
1582
1581
  if (d && (ct(d), typeof t == "object")) {
1583
1582
  if ("light" in t && "dark" in t) {
@@ -1593,19 +1592,19 @@ const x = [
1593
1592
  },
1594
1593
  [f, t]
1595
1594
  );
1596
- return /* @__PURE__ */ l.jsx(Gr.Provider, { value: Kt, children: /* @__PURE__ */ l.jsx(
1597
- nt,
1595
+ return /* @__PURE__ */ l.jsx(Hr.Provider, { value: Kt, children: /* @__PURE__ */ l.jsx(
1596
+ at,
1598
1597
  {
1599
1598
  theme: Gt,
1600
1599
  cssVariablesSelector: ".bn-mantine",
1601
1600
  getRootElement: () => {
1602
1601
  },
1603
1602
  children: /* @__PURE__ */ l.jsx(
1604
- Hr,
1603
+ Jr,
1605
1604
  {
1606
1605
  className: Yr("bn-mantine", n || ""),
1607
1606
  theme: typeof t == "object" ? void 0 : t,
1608
- ...o,
1607
+ ...a,
1609
1608
  ref: c
1610
1609
  }
1611
1610
  )
@@ -1613,10 +1612,10 @@ const x = [
1613
1612
  ) });
1614
1613
  };
1615
1614
  export {
1616
- rn as BlockNoteView,
1615
+ en as BlockNoteView,
1617
1616
  Ve as applyBlockNoteCSSVariablesFromTheme,
1618
1617
  Kt as components,
1619
- en as darkDefaultTheme,
1618
+ Qt as darkDefaultTheme,
1620
1619
  x as defaultColorScheme,
1621
1620
  He as lightDefaultTheme,
1622
1621
  ct as removeBlockNoteCSSVariables