@blocknote/ariakit 0.23.1 → 0.23.3

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,628 +1,1655 @@
1
- import { jsx as r, jsxs as g, Fragment as L } from "react/jsx-runtime";
2
- import { assertEmpty as i, mergeCSSClasses as b, isSafari as B } from "@blocknote/core";
3
- import { elementOverflow as P, mergeRefs as C, ComponentsContext as F, BlockNoteViewRaw as E } from "@blocknote/react";
4
- import { FormProvider as k, FormLabel as G, FormInput as f, MenuProvider as V, Menu as $, MenuButton as w, MenuItem as T, MenuButtonArrow as O, CheckboxCheck as S, MenuGroupLabel as A, MenuSeparator as H, TabProvider as j, TabList as q, Tab as K, TabPanel as z, Button as N, PopoverDisclosure as J, Popover as Q, PopoverProvider as U, Group as y, Toolbar as W, TooltipProvider as X, TooltipAnchor as Y, ToolbarItem as x, Tooltip as Z, SelectProvider as _, Select as ee, SelectArrow as ne, SelectPopover as te, SelectItem as se, SelectItemCheck as ae } from "@ariakit/react";
5
- import { forwardRef as d, useRef as R, useEffect as D } from "react";
6
- const re = (n) => {
7
- const { children: t, ...s } = n;
8
- return i(s), /* @__PURE__ */ r(k, { children: t });
9
- }, oe = d((n, t) => {
1
+ import Tr, { forwardRef as N, useRef as Ue, useEffect as we } from "react";
2
+ import { assertEmpty as p, mergeCSSClasses as x, isSafari as yr } from "@blocknote/core";
3
+ import { elementOverflow as Ie, mergeRefs as Oe, ComponentsContext as Sr, BlockNoteViewRaw as jr } from "@blocknote/react";
4
+ import { FormProvider as te, FormLabel as Rr, FormInput as ae, MenuProvider as Mr, Menu as Br, MenuButton as Fe, MenuItem as Me, MenuButtonArrow as Pr, CheckboxCheck as Be, MenuGroupLabel as Vr, MenuSeparator as _r, TabProvider as Cr, TabList as Ur, Tab as wr, TabPanel as Ir, Button as K, PopoverDisclosure as Or, Popover as Fr, PopoverProvider as Ar, Group as Ae, Toolbar as Lr, TooltipProvider as $r, TooltipAnchor as Wr, ToolbarItem as Le, Tooltip as Yr, SelectProvider as Gr, Select as Kr, SelectArrow as qr, SelectPopover as Hr, SelectItem as Jr, SelectItemCheck as zr } from "@ariakit/react";
5
+ var ne = { exports: {} }, Y = {};
6
+ /**
7
+ * @license React
8
+ * react-jsx-dev-runtime.production.min.js
9
+ *
10
+ * Copyright (c) Facebook, Inc. and its affiliates.
11
+ *
12
+ * This source code is licensed under the MIT license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */
15
+ var Pe;
16
+ function Xr() {
17
+ if (Pe) return Y;
18
+ Pe = 1;
19
+ var t = Symbol.for("react.fragment");
20
+ return Y.Fragment = t, Y.jsxDEV = void 0, Y;
21
+ }
22
+ var G = {};
23
+ /**
24
+ * @license React
25
+ * react-jsx-dev-runtime.development.js
26
+ *
27
+ * Copyright (c) Facebook, Inc. and its affiliates.
28
+ *
29
+ * This source code is licensed under the MIT license found in the
30
+ * LICENSE file in the root directory of this source tree.
31
+ */
32
+ var Ve;
33
+ function Zr() {
34
+ return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && function() {
35
+ var t = Tr, a = Symbol.for("react.element"), o = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), h = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), M = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), $e = Symbol.for("react.offscreen"), ie = Symbol.iterator, We = "@@iterator";
36
+ function Ye(e) {
37
+ if (e === null || typeof e != "object")
38
+ return null;
39
+ var r = ie && e[ie] || e[We];
40
+ return typeof r == "function" ? r : null;
41
+ }
42
+ var C = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
43
+ function T(e) {
44
+ {
45
+ for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), u = 1; u < r; u++)
46
+ i[u - 1] = arguments[u];
47
+ Ge("error", e, i);
48
+ }
49
+ }
50
+ function Ge(e, r, i) {
51
+ {
52
+ var u = C.ReactDebugCurrentFrame, b = u.getStackAddendum();
53
+ b !== "" && (r += "%s", i = i.concat([b]));
54
+ var g = i.map(function(k) {
55
+ return String(k);
56
+ });
57
+ g.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, g);
58
+ }
59
+ }
60
+ var Ke = !1, qe = !1, He = !1, Je = !1, ze = !1, se;
61
+ se = Symbol.for("react.module.reference");
62
+ function Xe(e) {
63
+ return !!(typeof e == "string" || typeof e == "function" || e === n || e === c || ze || e === l || e === v || e === j || Je || e === $e || Ke || qe || He || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === M || e.$$typeof === f || e.$$typeof === h || e.$$typeof === d || // This needs to include all possible module reference object
64
+ // types supported by any Flight configuration anywhere since
65
+ // we don't know which Flight build this will end up being used
66
+ // with.
67
+ e.$$typeof === se || e.getModuleId !== void 0));
68
+ }
69
+ function Ze(e, r, i) {
70
+ var u = e.displayName;
71
+ if (u)
72
+ return u;
73
+ var b = r.displayName || r.name || "";
74
+ return b !== "" ? i + "(" + b + ")" : i;
75
+ }
76
+ function oe(e) {
77
+ return e.displayName || "Context";
78
+ }
79
+ function B(e) {
80
+ if (e == null)
81
+ return null;
82
+ if (typeof e.tag == "number" && T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
83
+ return e.displayName || e.name || null;
84
+ if (typeof e == "string")
85
+ return e;
86
+ switch (e) {
87
+ case n:
88
+ return "Fragment";
89
+ case o:
90
+ return "Portal";
91
+ case c:
92
+ return "Profiler";
93
+ case l:
94
+ return "StrictMode";
95
+ case v:
96
+ return "Suspense";
97
+ case j:
98
+ return "SuspenseList";
99
+ }
100
+ if (typeof e == "object")
101
+ switch (e.$$typeof) {
102
+ case h:
103
+ var r = e;
104
+ return oe(r) + ".Consumer";
105
+ case f:
106
+ var i = e;
107
+ return oe(i._context) + ".Provider";
108
+ case d:
109
+ return Ze(e, e.render, "ForwardRef");
110
+ case M:
111
+ var u = e.displayName || null;
112
+ return u !== null ? u : B(e.type) || "Memo";
113
+ case P: {
114
+ var b = e, g = b._payload, k = b._init;
115
+ try {
116
+ return B(k(g));
117
+ } catch {
118
+ return null;
119
+ }
120
+ }
121
+ }
122
+ return null;
123
+ }
124
+ var V = Object.assign, I = 0, le, ce, ue, de, fe, me, ke;
125
+ function ve() {
126
+ }
127
+ ve.__reactDisabledLog = !0;
128
+ function Qe() {
129
+ {
130
+ if (I === 0) {
131
+ le = console.log, ce = console.info, ue = console.warn, de = console.error, fe = console.group, me = console.groupCollapsed, ke = console.groupEnd;
132
+ var e = {
133
+ configurable: !0,
134
+ enumerable: !0,
135
+ value: ve,
136
+ writable: !0
137
+ };
138
+ Object.defineProperties(console, {
139
+ info: e,
140
+ log: e,
141
+ warn: e,
142
+ error: e,
143
+ group: e,
144
+ groupCollapsed: e,
145
+ groupEnd: e
146
+ });
147
+ }
148
+ I++;
149
+ }
150
+ }
151
+ function er() {
152
+ {
153
+ if (I--, I === 0) {
154
+ var e = {
155
+ configurable: !0,
156
+ enumerable: !0,
157
+ writable: !0
158
+ };
159
+ Object.defineProperties(console, {
160
+ log: V({}, e, {
161
+ value: le
162
+ }),
163
+ info: V({}, e, {
164
+ value: ce
165
+ }),
166
+ warn: V({}, e, {
167
+ value: ue
168
+ }),
169
+ error: V({}, e, {
170
+ value: de
171
+ }),
172
+ group: V({}, e, {
173
+ value: fe
174
+ }),
175
+ groupCollapsed: V({}, e, {
176
+ value: me
177
+ }),
178
+ groupEnd: V({}, e, {
179
+ value: ke
180
+ })
181
+ });
182
+ }
183
+ I < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
184
+ }
185
+ }
186
+ var q = C.ReactCurrentDispatcher, H;
187
+ function A(e, r, i) {
188
+ {
189
+ if (H === void 0)
190
+ try {
191
+ throw Error();
192
+ } catch (b) {
193
+ var u = b.stack.trim().match(/\n( *(at )?)/);
194
+ H = u && u[1] || "";
195
+ }
196
+ return `
197
+ ` + H + e;
198
+ }
199
+ }
200
+ var J = !1, L;
201
+ {
202
+ var rr = typeof WeakMap == "function" ? WeakMap : Map;
203
+ L = new rr();
204
+ }
205
+ function pe(e, r) {
206
+ if (!e || J)
207
+ return "";
208
+ {
209
+ var i = L.get(e);
210
+ if (i !== void 0)
211
+ return i;
212
+ }
213
+ var u;
214
+ J = !0;
215
+ var b = Error.prepareStackTrace;
216
+ Error.prepareStackTrace = void 0;
217
+ var g;
218
+ g = q.current, q.current = null, Qe();
219
+ try {
220
+ if (r) {
221
+ var k = function() {
222
+ throw Error();
223
+ };
224
+ if (Object.defineProperty(k.prototype, "props", {
225
+ set: function() {
226
+ throw Error();
227
+ }
228
+ }), typeof Reflect == "object" && Reflect.construct) {
229
+ try {
230
+ Reflect.construct(k, []);
231
+ } catch (S) {
232
+ u = S;
233
+ }
234
+ Reflect.construct(e, [], k);
235
+ } else {
236
+ try {
237
+ k.call();
238
+ } catch (S) {
239
+ u = S;
240
+ }
241
+ e.call(k.prototype);
242
+ }
243
+ } else {
244
+ try {
245
+ throw Error();
246
+ } catch (S) {
247
+ u = S;
248
+ }
249
+ e();
250
+ }
251
+ } catch (S) {
252
+ if (S && u && typeof S.stack == "string") {
253
+ for (var m = S.stack.split(`
254
+ `), y = u.stack.split(`
255
+ `), D = m.length - 1, E = y.length - 1; D >= 1 && E >= 0 && m[D] !== y[E]; )
256
+ E--;
257
+ for (; D >= 1 && E >= 0; D--, E--)
258
+ if (m[D] !== y[E]) {
259
+ if (D !== 1 || E !== 1)
260
+ do
261
+ if (D--, E--, E < 0 || m[D] !== y[E]) {
262
+ var R = `
263
+ ` + m[D].replace(" at new ", " at ");
264
+ return e.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, R), R;
265
+ }
266
+ while (D >= 1 && E >= 0);
267
+ break;
268
+ }
269
+ }
270
+ } finally {
271
+ J = !1, q.current = g, er(), Error.prepareStackTrace = b;
272
+ }
273
+ var w = e ? e.displayName || e.name : "", _ = w ? A(w) : "";
274
+ return typeof e == "function" && L.set(e, _), _;
275
+ }
276
+ function nr(e, r, i) {
277
+ return pe(e, !1);
278
+ }
279
+ function tr(e) {
280
+ var r = e.prototype;
281
+ return !!(r && r.isReactComponent);
282
+ }
283
+ function $(e, r, i) {
284
+ if (e == null)
285
+ return "";
286
+ if (typeof e == "function")
287
+ return pe(e, tr(e));
288
+ if (typeof e == "string")
289
+ return A(e);
290
+ switch (e) {
291
+ case v:
292
+ return A("Suspense");
293
+ case j:
294
+ return A("SuspenseList");
295
+ }
296
+ if (typeof e == "object")
297
+ switch (e.$$typeof) {
298
+ case d:
299
+ return nr(e.render);
300
+ case M:
301
+ return $(e.type, r, i);
302
+ case P: {
303
+ var u = e, b = u._payload, g = u._init;
304
+ try {
305
+ return $(g(b), r, i);
306
+ } catch {
307
+ }
308
+ }
309
+ }
310
+ return "";
311
+ }
312
+ var O = Object.prototype.hasOwnProperty, be = {}, Ne = C.ReactDebugCurrentFrame;
313
+ function W(e) {
314
+ if (e) {
315
+ var r = e._owner, i = $(e.type, e._source, r ? r.type : null);
316
+ Ne.setExtraStackFrame(i);
317
+ } else
318
+ Ne.setExtraStackFrame(null);
319
+ }
320
+ function ar(e, r, i, u, b) {
321
+ {
322
+ var g = Function.call.bind(O);
323
+ for (var k in e)
324
+ if (g(e, k)) {
325
+ var m = void 0;
326
+ try {
327
+ if (typeof e[k] != "function") {
328
+ var y = Error((u || "React class") + ": " + i + " type `" + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[k] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
329
+ throw y.name = "Invariant Violation", y;
330
+ }
331
+ m = e[k](r, k, u, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
332
+ } catch (D) {
333
+ m = D;
334
+ }
335
+ m && !(m instanceof Error) && (W(b), T("%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).", u || "React class", i, k, typeof m), W(null)), m instanceof Error && !(m.message in be) && (be[m.message] = !0, W(b), T("Failed %s type: %s", i, m.message), W(null));
336
+ }
337
+ }
338
+ }
339
+ var ir = Array.isArray;
340
+ function z(e) {
341
+ return ir(e);
342
+ }
343
+ function sr(e) {
344
+ {
345
+ var r = typeof Symbol == "function" && Symbol.toStringTag, i = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
346
+ return i;
347
+ }
348
+ }
349
+ function or(e) {
350
+ try {
351
+ return ge(e), !1;
352
+ } catch {
353
+ return !0;
354
+ }
355
+ }
356
+ function ge(e) {
357
+ return "" + e;
358
+ }
359
+ function he(e) {
360
+ if (or(e))
361
+ return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", sr(e)), ge(e);
362
+ }
363
+ var F = C.ReactCurrentOwner, lr = {
364
+ key: !0,
365
+ ref: !0,
366
+ __self: !0,
367
+ __source: !0
368
+ }, xe, De, X;
369
+ X = {};
370
+ function cr(e) {
371
+ if (O.call(e, "ref")) {
372
+ var r = Object.getOwnPropertyDescriptor(e, "ref").get;
373
+ if (r && r.isReactWarning)
374
+ return !1;
375
+ }
376
+ return e.ref !== void 0;
377
+ }
378
+ function ur(e) {
379
+ if (O.call(e, "key")) {
380
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
381
+ if (r && r.isReactWarning)
382
+ return !1;
383
+ }
384
+ return e.key !== void 0;
385
+ }
386
+ function dr(e, r) {
387
+ if (typeof e.ref == "string" && F.current && r && F.current.stateNode !== r) {
388
+ var i = B(F.current.type);
389
+ X[i] || (T('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', B(F.current.type), e.ref), X[i] = !0);
390
+ }
391
+ }
392
+ function fr(e, r) {
393
+ {
394
+ var i = function() {
395
+ xe || (xe = !0, T("%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)", r));
396
+ };
397
+ i.isReactWarning = !0, Object.defineProperty(e, "key", {
398
+ get: i,
399
+ configurable: !0
400
+ });
401
+ }
402
+ }
403
+ function mr(e, r) {
404
+ {
405
+ var i = function() {
406
+ De || (De = !0, T("%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)", r));
407
+ };
408
+ i.isReactWarning = !0, Object.defineProperty(e, "ref", {
409
+ get: i,
410
+ configurable: !0
411
+ });
412
+ }
413
+ }
414
+ var kr = function(e, r, i, u, b, g, k) {
415
+ var m = {
416
+ // This tag allows us to uniquely identify this as a React Element
417
+ $$typeof: a,
418
+ // Built-in properties that belong on the element
419
+ type: e,
420
+ key: r,
421
+ ref: i,
422
+ props: k,
423
+ // Record the component responsible for creating this element.
424
+ _owner: g
425
+ };
426
+ return m._store = {}, Object.defineProperty(m._store, "validated", {
427
+ configurable: !1,
428
+ enumerable: !1,
429
+ writable: !0,
430
+ value: !1
431
+ }), Object.defineProperty(m, "_self", {
432
+ configurable: !1,
433
+ enumerable: !1,
434
+ writable: !1,
435
+ value: u
436
+ }), Object.defineProperty(m, "_source", {
437
+ configurable: !1,
438
+ enumerable: !1,
439
+ writable: !1,
440
+ value: b
441
+ }), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
442
+ };
443
+ function vr(e, r, i, u, b) {
444
+ {
445
+ var g, k = {}, m = null, y = null;
446
+ i !== void 0 && (he(i), m = "" + i), ur(r) && (he(r.key), m = "" + r.key), cr(r) && (y = r.ref, dr(r, b));
447
+ for (g in r)
448
+ O.call(r, g) && !lr.hasOwnProperty(g) && (k[g] = r[g]);
449
+ if (e && e.defaultProps) {
450
+ var D = e.defaultProps;
451
+ for (g in D)
452
+ k[g] === void 0 && (k[g] = D[g]);
453
+ }
454
+ if (m || y) {
455
+ var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
+ m && fr(k, E), y && mr(k, E);
457
+ }
458
+ return kr(e, m, y, b, u, F.current, k);
459
+ }
460
+ }
461
+ var Z = C.ReactCurrentOwner, Ee = C.ReactDebugCurrentFrame;
462
+ function U(e) {
463
+ if (e) {
464
+ var r = e._owner, i = $(e.type, e._source, r ? r.type : null);
465
+ Ee.setExtraStackFrame(i);
466
+ } else
467
+ Ee.setExtraStackFrame(null);
468
+ }
469
+ var Q;
470
+ Q = !1;
471
+ function ee(e) {
472
+ return typeof e == "object" && e !== null && e.$$typeof === a;
473
+ }
474
+ function Te() {
475
+ {
476
+ if (Z.current) {
477
+ var e = B(Z.current.type);
478
+ if (e)
479
+ return `
480
+
481
+ Check the render method of \`` + e + "`.";
482
+ }
483
+ return "";
484
+ }
485
+ }
486
+ function pr(e) {
487
+ {
488
+ if (e !== void 0) {
489
+ var r = e.fileName.replace(/^.*[\\\/]/, ""), i = e.lineNumber;
490
+ return `
491
+
492
+ Check your code at ` + r + ":" + i + ".";
493
+ }
494
+ return "";
495
+ }
496
+ }
497
+ var ye = {};
498
+ function br(e) {
499
+ {
500
+ var r = Te();
501
+ if (!r) {
502
+ var i = typeof e == "string" ? e : e.displayName || e.name;
503
+ i && (r = `
504
+
505
+ Check the top-level render call using <` + i + ">.");
506
+ }
507
+ return r;
508
+ }
509
+ }
510
+ function Se(e, r) {
511
+ {
512
+ if (!e._store || e._store.validated || e.key != null)
513
+ return;
514
+ e._store.validated = !0;
515
+ var i = br(r);
516
+ if (ye[i])
517
+ return;
518
+ ye[i] = !0;
519
+ var u = "";
520
+ e && e._owner && e._owner !== Z.current && (u = " It was passed a child from " + B(e._owner.type) + "."), U(e), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, u), U(null);
521
+ }
522
+ }
523
+ function je(e, r) {
524
+ {
525
+ if (typeof e != "object")
526
+ return;
527
+ if (z(e))
528
+ for (var i = 0; i < e.length; i++) {
529
+ var u = e[i];
530
+ ee(u) && Se(u, r);
531
+ }
532
+ else if (ee(e))
533
+ e._store && (e._store.validated = !0);
534
+ else if (e) {
535
+ var b = Ye(e);
536
+ if (typeof b == "function" && b !== e.entries)
537
+ for (var g = b.call(e), k; !(k = g.next()).done; )
538
+ ee(k.value) && Se(k.value, r);
539
+ }
540
+ }
541
+ }
542
+ function Nr(e) {
543
+ {
544
+ var r = e.type;
545
+ if (r == null || typeof r == "string")
546
+ return;
547
+ var i;
548
+ if (typeof r == "function")
549
+ i = r.propTypes;
550
+ else if (typeof r == "object" && (r.$$typeof === d || // Note: Memo only checks outer props here.
551
+ // Inner props are checked in the reconciler.
552
+ r.$$typeof === M))
553
+ i = r.propTypes;
554
+ else
555
+ return;
556
+ if (i) {
557
+ var u = B(r);
558
+ ar(i, e.props, "prop", u, e);
559
+ } else if (r.PropTypes !== void 0 && !Q) {
560
+ Q = !0;
561
+ var b = B(r);
562
+ T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", b || "Unknown");
563
+ }
564
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
565
+ }
566
+ }
567
+ function gr(e) {
568
+ {
569
+ for (var r = Object.keys(e.props), i = 0; i < r.length; i++) {
570
+ var u = r[i];
571
+ if (u !== "children" && u !== "key") {
572
+ U(e), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), U(null);
573
+ break;
574
+ }
575
+ }
576
+ e.ref !== null && (U(e), T("Invalid attribute `ref` supplied to `React.Fragment`."), U(null));
577
+ }
578
+ }
579
+ var Re = {};
580
+ function hr(e, r, i, u, b, g) {
581
+ {
582
+ var k = Xe(e);
583
+ if (!k) {
584
+ var m = "";
585
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (m += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
586
+ var y = pr(b);
587
+ y ? m += y : m += Te();
588
+ var D;
589
+ e === null ? D = "null" : z(e) ? D = "array" : e !== void 0 && e.$$typeof === a ? (D = "<" + (B(e.type) || "Unknown") + " />", m = " Did you accidentally export a JSX literal instead of a component?") : D = typeof e, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, m);
590
+ }
591
+ var E = vr(e, r, i, b, g);
592
+ if (E == null)
593
+ return E;
594
+ if (k) {
595
+ var R = r.children;
596
+ if (R !== void 0)
597
+ if (u)
598
+ if (z(R)) {
599
+ for (var w = 0; w < R.length; w++)
600
+ je(R[w], e);
601
+ Object.freeze && Object.freeze(R);
602
+ } else
603
+ T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
604
+ else
605
+ je(R, e);
606
+ }
607
+ if (O.call(r, "key")) {
608
+ var _ = B(e), S = Object.keys(r).filter(function(Er) {
609
+ return Er !== "key";
610
+ }), re = S.length > 0 ? "{key: someKey, " + S.join(": ..., ") + ": ...}" : "{key: someKey}";
611
+ if (!Re[_ + re]) {
612
+ var Dr = S.length > 0 ? "{" + S.join(": ..., ") + ": ...}" : "{}";
613
+ T(`A props object containing a "key" prop is being spread into JSX:
614
+ let props = %s;
615
+ <%s {...props} />
616
+ React keys must be passed directly to JSX without using spread:
617
+ let props = %s;
618
+ <%s key={someKey} {...props} />`, re, _, Dr, _), Re[_ + re] = !0;
619
+ }
620
+ }
621
+ return e === n ? gr(E) : Nr(E), E;
622
+ }
623
+ }
624
+ var xr = hr;
625
+ G.Fragment = n, G.jsxDEV = xr;
626
+ }()), G;
627
+ }
628
+ process.env.NODE_ENV === "production" ? ne.exports = Xr() : ne.exports = Zr();
629
+ var s = ne.exports;
630
+ const Qr = (t) => {
631
+ const { children: a, ...o } = t;
632
+ return p(o), /* @__PURE__ */ s.jsxDEV(te, { children: a }, void 0, !1, {
633
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/input/Form.tsx",
634
+ lineNumber: 11,
635
+ columnNumber: 10
636
+ }, void 0);
637
+ }, en = N((t, a) => {
10
638
  const {
11
- className: s,
12
- name: e,
13
- label: a,
14
- icon: o,
15
- value: l,
16
- autoFocus: m,
17
- placeholder: c,
18
- onKeyDown: u,
19
- onChange: p,
20
- onSubmit: h,
21
- ...v
22
- } = n;
23
- return i(v), /* @__PURE__ */ g(L, { children: [
24
- n.label && /* @__PURE__ */ r(G, { name: e, children: a }),
25
- /* @__PURE__ */ g("div", { className: "bn-ak-input-wrapper", children: [
26
- o,
27
- /* @__PURE__ */ r(
28
- f,
639
+ className: o,
640
+ name: n,
641
+ label: l,
642
+ icon: c,
643
+ value: f,
644
+ autoFocus: h,
645
+ placeholder: d,
646
+ onKeyDown: v,
647
+ onChange: j,
648
+ onSubmit: M,
649
+ ...P
650
+ } = t;
651
+ return p(P), /* @__PURE__ */ s.jsxDEV(s.Fragment, { children: [
652
+ t.label && /* @__PURE__ */ s.jsxDEV(Rr, { name: n, children: l }, void 0, !1, {
653
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/input/TextInput.tsx",
654
+ lineNumber: 32,
655
+ columnNumber: 23
656
+ }, void 0),
657
+ /* @__PURE__ */ s.jsxDEV("div", { className: "bn-ak-input-wrapper", children: [
658
+ c,
659
+ /* @__PURE__ */ s.jsxDEV(
660
+ ae,
29
661
  {
30
- className: b("bn-ak-input", s || ""),
31
- ref: t,
32
- name: e,
33
- value: l,
34
- autoFocus: m,
35
- placeholder: c,
36
- onKeyDown: u,
37
- onChange: p,
38
- onSubmit: h
39
- }
662
+ className: x("bn-ak-input", o || ""),
663
+ ref: a,
664
+ name: n,
665
+ value: f,
666
+ autoFocus: h,
667
+ placeholder: d,
668
+ onKeyDown: v,
669
+ onChange: j,
670
+ onSubmit: M
671
+ },
672
+ void 0,
673
+ !1,
674
+ {
675
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/input/TextInput.tsx",
676
+ lineNumber: 35,
677
+ columnNumber: 9
678
+ },
679
+ void 0
40
680
  )
41
- ] })
42
- ] });
43
- }), le = (n) => {
681
+ ] }, void 0, !0, {
682
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/input/TextInput.tsx",
683
+ lineNumber: 33,
684
+ columnNumber: 7
685
+ }, void 0)
686
+ ] }, void 0, !0, {
687
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/input/TextInput.tsx",
688
+ lineNumber: 31,
689
+ columnNumber: 5
690
+ }, void 0);
691
+ }), rn = (t) => {
44
692
  const {
45
- children: t,
46
- onOpenChange: s,
47
- position: e,
48
- sub: a,
693
+ children: a,
694
+ onOpenChange: o,
695
+ position: n,
696
+ sub: l,
49
697
  // unused
50
- ...o
51
- } = n;
52
- return i(o), /* @__PURE__ */ r(
53
- V,
698
+ ...c
699
+ } = t;
700
+ return p(c), /* @__PURE__ */ s.jsxDEV(
701
+ Mr,
54
702
  {
55
- placement: e,
56
- setOpen: s,
703
+ placement: n,
704
+ setOpen: o,
57
705
  virtualFocus: !0,
58
- children: t
59
- }
706
+ children: a
707
+ },
708
+ void 0,
709
+ !1,
710
+ {
711
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/menu/Menu.tsx",
712
+ lineNumber: 28,
713
+ columnNumber: 5
714
+ },
715
+ void 0
60
716
  );
61
- }, ce = d((n, t) => {
717
+ }, nn = N((t, a) => {
62
718
  const {
63
- className: s,
64
- children: e,
65
- sub: a,
719
+ className: o,
720
+ children: n,
721
+ sub: l,
66
722
  // unused
67
- ...o
68
- } = n;
69
- return i(o), /* @__PURE__ */ r(
70
- $,
723
+ ...c
724
+ } = t;
725
+ return p(c), /* @__PURE__ */ s.jsxDEV(
726
+ Br,
71
727
  {
72
728
  unmountOnHide: !0,
73
- className: b("bn-ak-menu", s || ""),
74
- ref: t,
75
- children: e
76
- }
729
+ className: x("bn-ak-menu", o || ""),
730
+ ref: a,
731
+ children: n
732
+ },
733
+ void 0,
734
+ !1,
735
+ {
736
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/menu/Menu.tsx",
737
+ lineNumber: 51,
738
+ columnNumber: 5
739
+ },
740
+ void 0
77
741
  );
78
- }), ie = d((n, t) => {
79
- const { className: s, children: e, icon: a, checked: o, subTrigger: l, onClick: m, ...c } = n;
80
- return i(c), l ? /* @__PURE__ */ g(
81
- w,
82
- {
83
- render: /* @__PURE__ */ r(T, {}),
84
- className: b("bn-ak-menu-item", s || ""),
85
- ref: t,
86
- onClick: m,
742
+ }), tn = N((t, a) => {
743
+ const { className: o, children: n, icon: l, checked: c, subTrigger: f, onClick: h, ...d } = t;
744
+ return p(d), f ? /* @__PURE__ */ s.jsxDEV(
745
+ Fe,
746
+ {
747
+ render: /* @__PURE__ */ s.jsxDEV(Me, {}, void 0, !1, {
748
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/menu/Menu.tsx",
749
+ lineNumber: 72,
750
+ columnNumber: 17
751
+ }, void 0),
752
+ className: x("bn-ak-menu-item", o || ""),
753
+ ref: a,
754
+ onClick: h,
87
755
  children: [
88
- a,
89
- e,
90
- /* @__PURE__ */ r(O, {}),
91
- o !== void 0 && /* @__PURE__ */ r(S, { checked: o })
756
+ l,
757
+ n,
758
+ /* @__PURE__ */ s.jsxDEV(Pr, {}, void 0, !1, {
759
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/menu/Menu.tsx",
760
+ lineNumber: 78,
761
+ columnNumber: 9
762
+ }, void 0),
763
+ c !== void 0 && /* @__PURE__ */ s.jsxDEV(Be, { checked: c }, void 0, !1, {
764
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/menu/Menu.tsx",
765
+ lineNumber: 79,
766
+ columnNumber: 35
767
+ }, void 0)
92
768
  ]
93
- }
94
- ) : /* @__PURE__ */ g(
95
- T,
769
+ },
770
+ void 0,
771
+ !0,
772
+ {
773
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/menu/Menu.tsx",
774
+ lineNumber: 71,
775
+ columnNumber: 7
776
+ },
777
+ void 0
778
+ ) : /* @__PURE__ */ s.jsxDEV(
779
+ Me,
96
780
  {
97
- className: b("bn-ak-menu-item", s || ""),
98
- ref: t,
99
- onClick: m,
781
+ className: x("bn-ak-menu-item", o || ""),
782
+ ref: a,
783
+ onClick: h,
100
784
  children: [
101
- a,
102
- e,
103
- o !== void 0 && /* @__PURE__ */ r(S, { checked: o })
785
+ l,
786
+ n,
787
+ c !== void 0 && /* @__PURE__ */ s.jsxDEV(Be, { checked: c }, void 0, !1, {
788
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/menu/Menu.tsx",
789
+ lineNumber: 90,
790
+ columnNumber: 33
791
+ }, void 0)
104
792
  ]
105
- }
793
+ },
794
+ void 0,
795
+ !0,
796
+ {
797
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/menu/Menu.tsx",
798
+ lineNumber: 84,
799
+ columnNumber: 5
800
+ },
801
+ void 0
106
802
  );
107
- }), ue = d((n, t) => {
108
- const { className: s, children: e, ...a } = n;
109
- return i(a), /* @__PURE__ */ r(
110
- A,
803
+ }), an = N((t, a) => {
804
+ const { className: o, children: n, ...l } = t;
805
+ return p(l), /* @__PURE__ */ s.jsxDEV(
806
+ Vr,
111
807
  {
112
- className: b("bn-ak-group-label", s || ""),
113
- ref: t,
114
- children: e
115
- }
808
+ className: x("bn-ak-group-label", o || ""),
809
+ ref: a,
810
+ children: n
811
+ },
812
+ void 0,
813
+ !1,
814
+ {
815
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/menu/Menu.tsx",
816
+ lineNumber: 104,
817
+ columnNumber: 5
818
+ },
819
+ void 0
116
820
  );
117
- }), de = (n) => {
118
- const { children: t, sub: s, ...e } = n;
119
- return i(e), s ? t : /* @__PURE__ */ r(w, { render: t });
120
- }, me = d((n, t) => {
121
- const { className: s, ...e } = n;
122
- return i(e), /* @__PURE__ */ r(
123
- H,
821
+ }), sn = (t) => {
822
+ const { children: a, sub: o, ...n } = t;
823
+ return p(n), o ? a : /* @__PURE__ */ s.jsxDEV(Fe, { render: a }, void 0, !1, {
824
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/menu/Menu.tsx",
825
+ lineNumber: 123,
826
+ columnNumber: 10
827
+ }, void 0);
828
+ }, on = N((t, a) => {
829
+ const { className: o, ...n } = t;
830
+ return p(n), /* @__PURE__ */ s.jsxDEV(
831
+ _r,
124
832
  {
125
- className: b("bn-ak-separator", s || ""),
126
- ref: t
127
- }
833
+ className: x("bn-ak-separator", o || ""),
834
+ ref: a
835
+ },
836
+ void 0,
837
+ !1,
838
+ {
839
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/menu/Menu.tsx",
840
+ lineNumber: 135,
841
+ columnNumber: 5
842
+ },
843
+ void 0
128
844
  );
129
- }), be = d((n, t) => {
845
+ }), ln = N((t, a) => {
130
846
  const {
131
- className: s,
132
- tabs: e,
133
- defaultOpenTab: a,
134
- openTab: o,
135
- setOpenTab: l,
136
- loading: m,
847
+ className: o,
848
+ tabs: n,
849
+ defaultOpenTab: l,
850
+ openTab: c,
851
+ setOpenTab: f,
852
+ loading: h,
137
853
  // TODO: implement loading
138
- ...c
139
- } = n;
140
- return i(c), /* @__PURE__ */ r(
854
+ ...d
855
+ } = t;
856
+ return p(d), /* @__PURE__ */ s.jsxDEV(
141
857
  "div",
142
858
  {
143
- className: b("bn-ak-wrapper", s || ""),
144
- ref: t,
145
- children: /* @__PURE__ */ g(
146
- j,
859
+ className: x("bn-ak-wrapper", o || ""),
860
+ ref: a,
861
+ children: /* @__PURE__ */ s.jsxDEV(
862
+ Cr,
147
863
  {
148
- defaultSelectedId: a,
149
- selectedId: o,
150
- setActiveId: (u) => {
151
- u && l(u);
864
+ defaultSelectedId: l,
865
+ selectedId: c,
866
+ setActiveId: (v) => {
867
+ v && f(v);
152
868
  },
153
869
  children: [
154
- /* @__PURE__ */ r(q, { className: "bn-ak-tab-list", children: e.map((u) => /* @__PURE__ */ r(K, { className: "bn-ak-tab", id: u.name, children: u.name }, u.name)) }),
155
- /* @__PURE__ */ r("div", { className: "bn-ak-panels", children: e.map((u) => /* @__PURE__ */ r(z, { tabId: u.name, children: u.tabPanel }, u.name)) })
870
+ /* @__PURE__ */ s.jsxDEV(Ur, { className: "bn-ak-tab-list", children: n.map((v) => /* @__PURE__ */ s.jsxDEV(wr, { className: "bn-ak-tab", id: v.name, children: v.name }, v.name, !1, {
871
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/panel/Panel.tsx",
872
+ lineNumber: 43,
873
+ columnNumber: 13
874
+ }, void 0)) }, void 0, !1, {
875
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/panel/Panel.tsx",
876
+ lineNumber: 41,
877
+ columnNumber: 9
878
+ }, void 0),
879
+ /* @__PURE__ */ s.jsxDEV("div", { className: "bn-ak-panels", children: n.map((v) => /* @__PURE__ */ s.jsxDEV(Ir, { tabId: v.name, children: v.tabPanel }, v.name, !1, {
880
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/panel/Panel.tsx",
881
+ lineNumber: 51,
882
+ columnNumber: 13
883
+ }, void 0)) }, void 0, !1, {
884
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/panel/Panel.tsx",
885
+ lineNumber: 49,
886
+ columnNumber: 9
887
+ }, void 0)
156
888
  ]
157
- }
889
+ },
890
+ void 0,
891
+ !0,
892
+ {
893
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/panel/Panel.tsx",
894
+ lineNumber: 31,
895
+ columnNumber: 7
896
+ },
897
+ void 0
158
898
  )
159
- }
899
+ },
900
+ void 0,
901
+ !1,
902
+ {
903
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/panel/Panel.tsx",
904
+ lineNumber: 28,
905
+ columnNumber: 5
906
+ },
907
+ void 0
160
908
  );
161
- }), ge = d((n, t) => {
162
- const { className: s, children: e, onClick: a, label: o, ...l } = n;
163
- return i(l), /* @__PURE__ */ r(
164
- N,
909
+ }), cn = N((t, a) => {
910
+ const { className: o, children: n, onClick: l, label: c, ...f } = t;
911
+ return p(f), /* @__PURE__ */ s.jsxDEV(
912
+ K,
165
913
  {
166
- className: b("bn-ak-button", s || ""),
167
- onClick: a,
168
- "aria-label": o,
169
- ref: t,
170
- children: e
171
- }
914
+ className: x("bn-ak-button", o || ""),
915
+ onClick: l,
916
+ "aria-label": c,
917
+ ref: a,
918
+ children: n
919
+ },
920
+ void 0,
921
+ !1,
922
+ {
923
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/panel/PanelButton.tsx",
924
+ lineNumber: 16,
925
+ columnNumber: 5
926
+ },
927
+ void 0
172
928
  );
173
- }), pe = d((n, t) => {
174
- const { className: s, accept: e, value: a, placeholder: o, onChange: l, ...m } = n;
175
- return i(m), /* @__PURE__ */ r(k, { children: /* @__PURE__ */ r(
176
- f,
929
+ }), un = N((t, a) => {
930
+ const { className: o, accept: n, value: l, placeholder: c, onChange: f, ...h } = t;
931
+ return p(h), /* @__PURE__ */ s.jsxDEV(te, { children: /* @__PURE__ */ s.jsxDEV(
932
+ ae,
177
933
  {
178
- className: s,
179
- ref: t,
934
+ className: o,
935
+ ref: a,
180
936
  name: "panel-input",
181
937
  type: "file",
182
- accept: e,
183
- value: a ? a.name : void 0,
184
- onChange: async (c) => l == null ? void 0 : l(c.target.files[0]),
185
- placeholder: o
186
- }
187
- ) });
188
- }), he = d((n, t) => {
189
- const { className: s, children: e, ...a } = n;
190
- return i(a), /* @__PURE__ */ r("div", { className: s, ref: t, children: e });
191
- }), Ne = d((n, t) => {
192
- const { className: s, value: e, placeholder: a, onKeyDown: o, onChange: l, ...m } = n;
193
- return i(m), /* @__PURE__ */ r(k, { children: /* @__PURE__ */ r(
194
- f,
195
- {
196
- className: b("bn-ak-input", s || ""),
938
+ accept: n,
939
+ value: l ? l.name : void 0,
940
+ onChange: async (d) => f == null ? void 0 : f(d.target.files[0]),
941
+ placeholder: c
942
+ },
943
+ void 0,
944
+ !1,
945
+ {
946
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/panel/PanelFileInput.tsx",
947
+ lineNumber: 20,
948
+ columnNumber: 7
949
+ },
950
+ void 0
951
+ ) }, void 0, !1, {
952
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/panel/PanelFileInput.tsx",
953
+ lineNumber: 19,
954
+ columnNumber: 5
955
+ }, void 0);
956
+ }), dn = N((t, a) => {
957
+ const { className: o, children: n, ...l } = t;
958
+ return p(l), /* @__PURE__ */ s.jsxDEV("div", { className: o, ref: a, children: n }, void 0, !1, {
959
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/panel/PanelTab.tsx",
960
+ lineNumber: 14,
961
+ columnNumber: 5
962
+ }, void 0);
963
+ }), fn = N((t, a) => {
964
+ const { className: o, value: n, placeholder: l, onKeyDown: c, onChange: f, ...h } = t;
965
+ return p(h), /* @__PURE__ */ s.jsxDEV(te, { children: /* @__PURE__ */ s.jsxDEV(
966
+ ae,
967
+ {
968
+ className: x("bn-ak-input", o || ""),
197
969
  name: "panel-input",
198
- value: e,
199
- placeholder: a,
200
- onChange: l,
201
- onKeyDown: o,
970
+ value: n,
971
+ placeholder: l,
972
+ onChange: f,
973
+ onKeyDown: c,
202
974
  "data-test": "embed-input",
203
- ref: t
204
- }
205
- ) });
206
- }), ve = d((n, t) => {
207
- const { children: s, ...e } = n;
208
- return i(e), /* @__PURE__ */ r(J, { render: s, ref: t });
209
- }), ke = d((n, t) => {
210
- const { className: s, children: e, variant: a, ...o } = n;
211
- return i(o), /* @__PURE__ */ r(
212
- Q,
975
+ ref: a
976
+ },
977
+ void 0,
978
+ !1,
213
979
  {
214
- className: b("bn-ak-popover", s || ""),
215
- ref: t,
216
- children: e
217
- }
980
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/panel/PanelTextInput.tsx",
981
+ lineNumber: 20,
982
+ columnNumber: 7
983
+ },
984
+ void 0
985
+ ) }, void 0, !1, {
986
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/panel/PanelTextInput.tsx",
987
+ lineNumber: 19,
988
+ columnNumber: 5
989
+ }, void 0);
990
+ }), mn = N((t, a) => {
991
+ const { children: o, ...n } = t;
992
+ return p(n), /* @__PURE__ */ s.jsxDEV(Or, { render: o, ref: a }, void 0, !1, {
993
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/popover/Popover.tsx",
994
+ lineNumber: 19,
995
+ columnNumber: 10
996
+ }, void 0);
997
+ }), kn = N((t, a) => {
998
+ const { className: o, children: n, variant: l, ...c } = t;
999
+ return p(c), /* @__PURE__ */ s.jsxDEV(
1000
+ Fr,
1001
+ {
1002
+ className: x("bn-ak-popover", o || ""),
1003
+ ref: a,
1004
+ children: n
1005
+ },
1006
+ void 0,
1007
+ !1,
1008
+ {
1009
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/popover/Popover.tsx",
1010
+ lineNumber: 31,
1011
+ columnNumber: 5
1012
+ },
1013
+ void 0
218
1014
  );
219
- }), fe = (n) => {
220
- const { children: t, opened: s, position: e, ...a } = n;
221
- return i(a), /* @__PURE__ */ r(U, { open: s, placement: e, children: t });
222
- }, Te = d((n, t) => {
223
- const { className: s, children: e, ...a } = n;
224
- return i(a, !1), /* @__PURE__ */ r(y, { className: s, ref: t, ...a, children: e });
225
- }), Se = d((n, t) => {
1015
+ }), vn = (t) => {
1016
+ const { children: a, opened: o, position: n, ...l } = t;
1017
+ return p(l), /* @__PURE__ */ s.jsxDEV(Ar, { open: o, placement: n, children: a }, void 0, !1, {
1018
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/popover/Popover.tsx",
1019
+ lineNumber: 47,
1020
+ columnNumber: 5
1021
+ }, void 0);
1022
+ }, pn = N((t, a) => {
1023
+ const { className: o, children: n, ...l } = t;
1024
+ return p(l, !1), /* @__PURE__ */ s.jsxDEV(Ae, { className: o, ref: a, ...l, children: n }, void 0, !1, {
1025
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/sideMenu/SideMenu.tsx",
1026
+ lineNumber: 16,
1027
+ columnNumber: 5
1028
+ }, void 0);
1029
+ }), bn = N((t, a) => {
226
1030
  const {
227
- className: s,
228
- children: e,
229
- icon: a,
230
- onClick: o,
231
- label: l,
232
- onDragEnd: m,
233
- onDragStart: c,
234
- draggable: u,
235
- ...p
236
- } = n;
237
- return i(p, !1), /* @__PURE__ */ g(
238
- N,
1031
+ className: o,
1032
+ children: n,
1033
+ icon: l,
1034
+ onClick: c,
1035
+ label: f,
1036
+ onDragEnd: h,
1037
+ onDragStart: d,
1038
+ draggable: v,
1039
+ ...j
1040
+ } = t;
1041
+ return p(j, !1), /* @__PURE__ */ s.jsxDEV(
1042
+ K,
239
1043
  {
240
- onDragEnd: m,
241
- onDragStart: c,
242
- draggable: u,
243
- "aria-label": l,
244
- className: b(
1044
+ onDragEnd: h,
1045
+ onDragStart: d,
1046
+ draggable: v,
1047
+ "aria-label": f,
1048
+ className: x(
245
1049
  "bn-ak-button bn-ak-secondary",
246
- s || ""
1050
+ o || ""
247
1051
  ),
248
- ref: t,
249
- onClick: o,
250
- ...p,
1052
+ ref: a,
1053
+ onClick: c,
1054
+ ...j,
251
1055
  children: [
252
- a,
253
- e
1056
+ l,
1057
+ n
254
1058
  ]
255
- }
1059
+ },
1060
+ void 0,
1061
+ !0,
1062
+ {
1063
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/sideMenu/SideMenuButton.tsx",
1064
+ lineNumber: 28,
1065
+ columnNumber: 5
1066
+ },
1067
+ void 0
256
1068
  );
257
- }), Me = d((n, t) => {
258
- const { className: s, children: e, id: a, columns: o, ...l } = n;
259
- return i(l), /* @__PURE__ */ r(
1069
+ }), Nn = N((t, a) => {
1070
+ const { className: o, children: n, id: l, columns: c, ...f } = t;
1071
+ return p(f), /* @__PURE__ */ s.jsxDEV(
260
1072
  "div",
261
1073
  {
262
- className: s,
263
- style: { gridTemplateColumns: `repeat(${o}, 1fr)` },
264
- ref: t,
265
- id: a,
1074
+ className: o,
1075
+ style: { gridTemplateColumns: `repeat(${c}, 1fr)` },
1076
+ ref: a,
1077
+ id: l,
266
1078
  role: "grid",
267
- children: e
268
- }
1079
+ children: n
1080
+ },
1081
+ void 0,
1082
+ !1,
1083
+ {
1084
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenu.tsx",
1085
+ lineNumber: 14,
1086
+ columnNumber: 5
1087
+ },
1088
+ void 0
269
1089
  );
270
- }), Ie = d((n, t) => {
271
- const { className: s, children: e, columns: a, ...o } = n;
272
- return i(o), /* @__PURE__ */ r(
1090
+ }), gn = N((t, a) => {
1091
+ const { className: o, children: n, columns: l, ...c } = t;
1092
+ return p(c), /* @__PURE__ */ s.jsxDEV(
273
1093
  "div",
274
1094
  {
275
- className: b("bn-ak-menu-item", s || ""),
276
- style: { gridColumn: `1 / ${a + 1}` },
277
- ref: t,
278
- children: /* @__PURE__ */ r("div", { className: "bn-ak-suggestion-menu-item-label", children: e })
279
- }
1095
+ className: x("bn-ak-menu-item", o || ""),
1096
+ style: { gridColumn: `1 / ${l + 1}` },
1097
+ ref: a,
1098
+ children: /* @__PURE__ */ s.jsxDEV("div", { className: "bn-ak-suggestion-menu-item-label", children: n }, void 0, !1, {
1099
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuEmptyItem.tsx",
1100
+ lineNumber: 18,
1101
+ columnNumber: 7
1102
+ }, void 0)
1103
+ },
1104
+ void 0,
1105
+ !1,
1106
+ {
1107
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuEmptyItem.tsx",
1108
+ lineNumber: 14,
1109
+ columnNumber: 5
1110
+ },
1111
+ void 0
280
1112
  );
281
- }), Pe = d((n, t) => {
282
- const { className: s, isSelected: e, onClick: a, item: o, id: l, ...m } = n;
283
- i(m);
284
- const c = R(null);
285
- return D(() => {
286
- if (!c.current || !e)
1113
+ }), hn = N((t, a) => {
1114
+ const { className: o, isSelected: n, onClick: l, item: c, id: f, ...h } = t;
1115
+ p(h);
1116
+ const d = Ue(null);
1117
+ return we(() => {
1118
+ if (!d.current || !n)
287
1119
  return;
288
- const u = P(
289
- c.current,
1120
+ const v = Ie(
1121
+ d.current,
290
1122
  document.querySelector(".bn-grid-suggestion-menu")
291
1123
  );
292
- u === "top" ? c.current.scrollIntoView(!0) : u === "bottom" && c.current.scrollIntoView(!1);
293
- }, [e]), /* @__PURE__ */ r(
1124
+ v === "top" ? d.current.scrollIntoView(!0) : v === "bottom" && d.current.scrollIntoView(!1);
1125
+ }, [n]), /* @__PURE__ */ s.jsxDEV(
294
1126
  "div",
295
1127
  {
296
- className: s,
297
- ref: C([t, c]),
298
- id: l,
1128
+ className: o,
1129
+ ref: Oe([a, d]),
1130
+ id: f,
299
1131
  role: "option",
300
- onClick: a,
301
- "aria-selected": e || void 0,
302
- children: o.icon
303
- }
1132
+ onClick: l,
1133
+ "aria-selected": n || void 0,
1134
+ children: c.icon
1135
+ },
1136
+ void 0,
1137
+ !1,
1138
+ {
1139
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.tsx",
1140
+ lineNumber: 33,
1141
+ columnNumber: 5
1142
+ },
1143
+ void 0
304
1144
  );
305
- }), Ce = d((n, t) => {
1145
+ }), xn = N((t, a) => {
306
1146
  const {
307
- className: s,
308
- children: e,
1147
+ className: o,
1148
+ children: n,
309
1149
  // unused, using "dots" instead
310
- columns: a,
311
- ...o
312
- } = n;
313
- return i(o), /* @__PURE__ */ r(
1150
+ columns: l,
1151
+ ...c
1152
+ } = t;
1153
+ return p(c), /* @__PURE__ */ s.jsxDEV(
314
1154
  "div",
315
1155
  {
316
- className: s,
317
- style: { gridColumn: `1 / ${a + 1}` },
318
- ref: t,
319
- children: e
320
- }
1156
+ className: o,
1157
+ style: { gridColumn: `1 / ${l + 1}` },
1158
+ ref: a,
1159
+ children: n
1160
+ },
1161
+ void 0,
1162
+ !1,
1163
+ {
1164
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader.tsx",
1165
+ lineNumber: 19,
1166
+ columnNumber: 5
1167
+ },
1168
+ void 0
321
1169
  );
322
- }), we = d((n, t) => {
323
- const { className: s, children: e, id: a, ...o } = n;
324
- return i(o), /* @__PURE__ */ r(
325
- y,
1170
+ }), Dn = N((t, a) => {
1171
+ const { className: o, children: n, id: l, ...c } = t;
1172
+ return p(c), /* @__PURE__ */ s.jsxDEV(
1173
+ Ae,
326
1174
  {
327
- className: b("bn-ak-menu", s || ""),
328
- id: a,
1175
+ className: x("bn-ak-menu", o || ""),
1176
+ id: l,
329
1177
  role: "listbox",
330
- ref: t,
331
- children: e
332
- }
1178
+ ref: a,
1179
+ children: n
1180
+ },
1181
+ void 0,
1182
+ !1,
1183
+ {
1184
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/SuggestionMenu.tsx",
1185
+ lineNumber: 16,
1186
+ columnNumber: 5
1187
+ },
1188
+ void 0
333
1189
  );
334
- }), ye = d((n, t) => {
335
- const { className: s, children: e, ...a } = n;
336
- return i(a), /* @__PURE__ */ r(
1190
+ }), En = N((t, a) => {
1191
+ const { className: o, children: n, ...l } = t;
1192
+ return p(l), /* @__PURE__ */ s.jsxDEV(
337
1193
  "div",
338
1194
  {
339
- className: b("bn-ak-menu-item", s || ""),
340
- ref: t,
341
- children: /* @__PURE__ */ r("div", { className: "bn-ak-suggestion-menu-item-label", children: e })
342
- }
1195
+ className: x("bn-ak-menu-item", o || ""),
1196
+ ref: a,
1197
+ children: /* @__PURE__ */ s.jsxDEV("div", { className: "bn-ak-suggestion-menu-item-label", children: n }, void 0, !1, {
1198
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/SuggestionMenuEmptyItem.tsx",
1199
+ lineNumber: 17,
1200
+ columnNumber: 7
1201
+ }, void 0)
1202
+ },
1203
+ void 0,
1204
+ !1,
1205
+ {
1206
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/SuggestionMenuEmptyItem.tsx",
1207
+ lineNumber: 14,
1208
+ columnNumber: 5
1209
+ },
1210
+ void 0
343
1211
  );
344
- }), xe = d((n, t) => {
345
- const { className: s, item: e, isSelected: a, onClick: o, id: l, ...m } = n;
346
- i(m);
347
- const c = R(null);
348
- return D(() => {
349
- if (!c.current || !a)
1212
+ }), Tn = N((t, a) => {
1213
+ const { className: o, item: n, isSelected: l, onClick: c, id: f, ...h } = t;
1214
+ p(h);
1215
+ const d = Ue(null);
1216
+ return we(() => {
1217
+ if (!d.current || !l)
350
1218
  return;
351
- const u = P(
352
- c.current,
1219
+ const v = Ie(
1220
+ d.current,
353
1221
  document.querySelector(".bn-suggestion-menu")
354
1222
  );
355
- u === "top" ? c.current.scrollIntoView(!0) : u === "bottom" && c.current.scrollIntoView(!1);
356
- }, [a]), /* @__PURE__ */ g(
1223
+ v === "top" ? d.current.scrollIntoView(!0) : v === "bottom" && d.current.scrollIntoView(!1);
1224
+ }, [l]), /* @__PURE__ */ s.jsxDEV(
357
1225
  "div",
358
1226
  {
359
- className: b("bn-ak-menu-item", s || ""),
360
- ref: C([t, c]),
361
- id: l,
362
- onClick: o,
1227
+ className: x("bn-ak-menu-item", o || ""),
1228
+ ref: Oe([a, d]),
1229
+ id: f,
1230
+ onClick: c,
363
1231
  role: "option",
364
- "aria-selected": a || void 0,
1232
+ "aria-selected": l || void 0,
365
1233
  children: [
366
- e.icon && /* @__PURE__ */ r(
1234
+ n.icon && /* @__PURE__ */ s.jsxDEV(
367
1235
  "div",
368
1236
  {
369
1237
  className: "bn-ak-suggestion-menu-item-section",
370
1238
  "data-position": "left",
371
- children: e.icon
372
- }
1239
+ children: n.icon
1240
+ },
1241
+ void 0,
1242
+ !1,
1243
+ {
1244
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/SuggestionMenuItem.tsx",
1245
+ lineNumber: 41,
1246
+ columnNumber: 9
1247
+ },
1248
+ void 0
373
1249
  ),
374
- /* @__PURE__ */ g("div", { className: "bn-ak-suggestion-menu-item-body", children: [
375
- /* @__PURE__ */ r("div", { className: "bn-ak-suggestion-menu-item-title", children: e.title }),
376
- /* @__PURE__ */ r("div", { className: "bn-ak-suggestion-menu-item-subtitle", children: e.subtext })
377
- ] }),
378
- e.badge && /* @__PURE__ */ r(
1250
+ /* @__PURE__ */ s.jsxDEV("div", { className: "bn-ak-suggestion-menu-item-body", children: [
1251
+ /* @__PURE__ */ s.jsxDEV("div", { className: "bn-ak-suggestion-menu-item-title", children: n.title }, void 0, !1, {
1252
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/SuggestionMenuItem.tsx",
1253
+ lineNumber: 48,
1254
+ columnNumber: 9
1255
+ }, void 0),
1256
+ /* @__PURE__ */ s.jsxDEV("div", { className: "bn-ak-suggestion-menu-item-subtitle", children: n.subtext }, void 0, !1, {
1257
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/SuggestionMenuItem.tsx",
1258
+ lineNumber: 49,
1259
+ columnNumber: 9
1260
+ }, void 0)
1261
+ ] }, void 0, !0, {
1262
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/SuggestionMenuItem.tsx",
1263
+ lineNumber: 47,
1264
+ columnNumber: 7
1265
+ }, void 0),
1266
+ n.badge && /* @__PURE__ */ s.jsxDEV(
379
1267
  "div",
380
1268
  {
381
1269
  "data-position": "right",
382
1270
  className: "bn-ak-suggestion-menu-item-section",
383
- children: /* @__PURE__ */ r("div", { children: e.badge })
384
- }
1271
+ children: /* @__PURE__ */ s.jsxDEV("div", { children: n.badge }, void 0, !1, {
1272
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/SuggestionMenuItem.tsx",
1273
+ lineNumber: 57,
1274
+ columnNumber: 11
1275
+ }, void 0)
1276
+ },
1277
+ void 0,
1278
+ !1,
1279
+ {
1280
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/SuggestionMenuItem.tsx",
1281
+ lineNumber: 54,
1282
+ columnNumber: 9
1283
+ },
1284
+ void 0
385
1285
  )
386
1286
  ]
387
- }
1287
+ },
1288
+ void 0,
1289
+ !0,
1290
+ {
1291
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/SuggestionMenuItem.tsx",
1292
+ lineNumber: 33,
1293
+ columnNumber: 5
1294
+ },
1295
+ void 0
388
1296
  );
389
- }), Re = d((n, t) => {
390
- const { className: s, children: e, ...a } = n;
391
- return i(a), /* @__PURE__ */ r(
1297
+ }), yn = N((t, a) => {
1298
+ const { className: o, children: n, ...l } = t;
1299
+ return p(l), /* @__PURE__ */ s.jsxDEV(
392
1300
  "div",
393
1301
  {
394
- className: b("bn-ak-group-label", s || ""),
395
- ref: t,
396
- children: e
397
- }
1302
+ className: x("bn-ak-group-label", o || ""),
1303
+ ref: a,
1304
+ children: n
1305
+ },
1306
+ void 0,
1307
+ !1,
1308
+ {
1309
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/SuggestionMenuLabel.tsx",
1310
+ lineNumber: 14,
1311
+ columnNumber: 5
1312
+ },
1313
+ void 0
398
1314
  );
399
- }), De = d((n, t) => {
400
- const { className: s, children: e, ...a } = n;
401
- return i(a), /* @__PURE__ */ r("div", { className: s, ref: t, children: e });
402
- }), Le = d((n, t) => {
403
- const { children: s, className: e, onMouseDown: a, onClick: o, ...l } = n;
404
- return i(l, !1), /* @__PURE__ */ r(
405
- N,
406
- {
407
- className: b(
1315
+ }), Sn = N((t, a) => {
1316
+ const { className: o, children: n, ...l } = t;
1317
+ return p(l), /* @__PURE__ */ s.jsxDEV("div", { className: o, ref: a, children: n }, void 0, !1, {
1318
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/SuggestionMenuLoader.tsx",
1319
+ lineNumber: 14,
1320
+ columnNumber: 5
1321
+ }, void 0);
1322
+ }), jn = N((t, a) => {
1323
+ const { children: o, className: n, onMouseDown: l, onClick: c, ...f } = t;
1324
+ return p(f, !1), /* @__PURE__ */ s.jsxDEV(
1325
+ K,
1326
+ {
1327
+ className: x(
408
1328
  "bn-ak-button bn-ak-secondary",
409
- e || ""
1329
+ n || ""
410
1330
  ),
411
- ref: t,
412
- onMouseDown: a,
413
- onClick: o,
414
- ...l,
415
- children: s
416
- }
1331
+ ref: a,
1332
+ onMouseDown: l,
1333
+ onClick: c,
1334
+ ...f,
1335
+ children: o
1336
+ },
1337
+ void 0,
1338
+ !1,
1339
+ {
1340
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/tableHandle/ExtendButton.tsx",
1341
+ lineNumber: 18,
1342
+ columnNumber: 5
1343
+ },
1344
+ void 0
417
1345
  );
418
- }), Be = d((n, t) => {
1346
+ }), Rn = N((t, a) => {
419
1347
  const {
420
- className: s,
421
- children: e,
422
- draggable: a,
423
- onDragStart: o,
424
- onDragEnd: l,
425
- style: m,
426
- label: c,
427
- ...u
428
- } = n;
429
- return i(u, !1), /* @__PURE__ */ r(
430
- N,
431
- {
432
- className: b(
1348
+ className: o,
1349
+ children: n,
1350
+ draggable: l,
1351
+ onDragStart: c,
1352
+ onDragEnd: f,
1353
+ style: h,
1354
+ label: d,
1355
+ ...v
1356
+ } = t;
1357
+ return p(v, !1), /* @__PURE__ */ s.jsxDEV(
1358
+ K,
1359
+ {
1360
+ className: x(
433
1361
  "bn-ak-button bn-ak-secondary",
434
- s || ""
1362
+ o || ""
435
1363
  ),
436
- ref: t,
437
- "aria-label": c,
438
- draggable: a,
439
- onDragStart: o,
440
- onDragEnd: l,
441
- style: m,
442
- ...u,
443
- children: e
444
- }
1364
+ ref: a,
1365
+ "aria-label": d,
1366
+ draggable: l,
1367
+ onDragStart: c,
1368
+ onDragEnd: f,
1369
+ style: h,
1370
+ ...v,
1371
+ children: n
1372
+ },
1373
+ void 0,
1374
+ !1,
1375
+ {
1376
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/tableHandle/TableHandle.tsx",
1377
+ lineNumber: 27,
1378
+ columnNumber: 5
1379
+ },
1380
+ void 0
445
1381
  );
446
- }), M = d(
447
- (n, t) => {
448
- const { className: s, children: e, onMouseEnter: a, onMouseLeave: o, ...l } = n;
449
- return i(l), /* @__PURE__ */ r(
450
- W,
1382
+ }), _e = N(
1383
+ (t, a) => {
1384
+ const { className: o, children: n, onMouseEnter: l, onMouseLeave: c, ...f } = t;
1385
+ return p(f), /* @__PURE__ */ s.jsxDEV(
1386
+ Lr,
451
1387
  {
452
- className: b("bn-ak-toolbar", s || ""),
453
- ref: t,
454
- onMouseEnter: a,
455
- onMouseLeave: o,
456
- children: e
457
- }
1388
+ className: x("bn-ak-toolbar", o || ""),
1389
+ ref: a,
1390
+ onMouseEnter: l,
1391
+ onMouseLeave: c,
1392
+ children: n
1393
+ },
1394
+ void 0,
1395
+ !1,
1396
+ {
1397
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/toolbar/Toolbar.tsx",
1398
+ lineNumber: 17,
1399
+ columnNumber: 7
1400
+ },
1401
+ void 0
458
1402
  );
459
1403
  }
460
- ), I = d(
461
- (n, t) => {
1404
+ ), Ce = N(
1405
+ (t, a) => {
462
1406
  const {
463
- className: s,
464
- children: e,
465
- mainTooltip: a,
466
- secondaryTooltip: o,
467
- icon: l,
468
- isSelected: m,
469
- isDisabled: c,
470
- onClick: u,
471
- label: p,
472
- ...h
473
- } = n;
474
- return i(h, !1), /* @__PURE__ */ g(X, { children: [
475
- /* @__PURE__ */ r(
476
- Y,
1407
+ className: o,
1408
+ children: n,
1409
+ mainTooltip: l,
1410
+ secondaryTooltip: c,
1411
+ icon: f,
1412
+ isSelected: h,
1413
+ isDisabled: d,
1414
+ onClick: v,
1415
+ label: j,
1416
+ ...M
1417
+ } = t;
1418
+ return p(M, !1), /* @__PURE__ */ s.jsxDEV($r, { children: [
1419
+ /* @__PURE__ */ s.jsxDEV(
1420
+ Wr,
477
1421
  {
478
1422
  className: "link",
479
- render: /* @__PURE__ */ g(
480
- x,
1423
+ render: /* @__PURE__ */ s.jsxDEV(
1424
+ Le,
481
1425
  {
482
- "aria-label": p,
483
- className: b(
1426
+ "aria-label": j,
1427
+ className: x(
484
1428
  "bn-ak-button bn-ak-secondary",
485
- s || ""
1429
+ o || ""
486
1430
  ),
487
- onMouseDown: (v) => {
488
- B() && v.currentTarget.focus();
1431
+ onMouseDown: (P) => {
1432
+ yr() && P.currentTarget.focus();
489
1433
  },
490
- onClick: u,
491
- "aria-pressed": m,
492
- "data-selected": m ? "true" : void 0,
493
- "data-test": n.mainTooltip.slice(0, 1).toLowerCase() + n.mainTooltip.replace(/\s+/g, "").slice(1),
494
- disabled: c || !1,
495
- ref: t,
496
- ...h,
1434
+ onClick: v,
1435
+ "aria-pressed": h,
1436
+ "data-selected": h ? "true" : void 0,
1437
+ "data-test": t.mainTooltip.slice(0, 1).toLowerCase() + t.mainTooltip.replace(/\s+/g, "").slice(1),
1438
+ disabled: d || !1,
1439
+ ref: a,
1440
+ ...M,
497
1441
  children: [
498
- l,
499
- e
1442
+ f,
1443
+ n
500
1444
  ]
501
- }
1445
+ },
1446
+ void 0,
1447
+ !0,
1448
+ {
1449
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/toolbar/ToolbarButton.tsx",
1450
+ lineNumber: 42,
1451
+ columnNumber: 13
1452
+ },
1453
+ void 0
502
1454
  )
503
- }
1455
+ },
1456
+ void 0,
1457
+ !1,
1458
+ {
1459
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/toolbar/ToolbarButton.tsx",
1460
+ lineNumber: 39,
1461
+ columnNumber: 9
1462
+ },
1463
+ void 0
504
1464
  ),
505
- /* @__PURE__ */ g(Z, { className: "bn-ak-tooltip", children: [
506
- /* @__PURE__ */ r("span", { children: a }),
507
- o && /* @__PURE__ */ r("span", { children: o })
508
- ] })
509
- ] });
1465
+ /* @__PURE__ */ s.jsxDEV(Yr, { className: "bn-ak-tooltip", children: [
1466
+ /* @__PURE__ */ s.jsxDEV("span", { children: l }, void 0, !1, {
1467
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/toolbar/ToolbarButton.tsx",
1468
+ lineNumber: 72,
1469
+ columnNumber: 11
1470
+ }, void 0),
1471
+ c && /* @__PURE__ */ s.jsxDEV("span", { children: c }, void 0, !1, {
1472
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/toolbar/ToolbarButton.tsx",
1473
+ lineNumber: 73,
1474
+ columnNumber: 32
1475
+ }, void 0)
1476
+ ] }, void 0, !0, {
1477
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/toolbar/ToolbarButton.tsx",
1478
+ lineNumber: 71,
1479
+ columnNumber: 9
1480
+ }, void 0)
1481
+ ] }, void 0, !0, {
1482
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/toolbar/ToolbarButton.tsx",
1483
+ lineNumber: 38,
1484
+ columnNumber: 7
1485
+ }, void 0);
510
1486
  }
511
- ), Fe = d((n, t) => {
512
- const { className: s, items: e, isDisabled: a, ...o } = n;
513
- i(o);
514
- const l = n.items.filter((c) => c.isSelected)[0], m = (c) => {
515
- var u, p;
516
- (p = (u = e.find((h) => h.text === c)).onClick) == null || p.call(u);
1487
+ ), Mn = N((t, a) => {
1488
+ const { className: o, items: n, isDisabled: l, ...c } = t;
1489
+ p(c);
1490
+ const f = t.items.filter((d) => d.isSelected)[0], h = (d) => {
1491
+ var v, j;
1492
+ (j = (v = n.find((M) => M.text === d)).onClick) == null || j.call(v);
517
1493
  };
518
- return /* @__PURE__ */ g(_, { value: l.text, setValue: m, children: [
519
- /* @__PURE__ */ g(
520
- ee,
1494
+ return /* @__PURE__ */ s.jsxDEV(Gr, { value: f.text, setValue: h, children: [
1495
+ /* @__PURE__ */ s.jsxDEV(
1496
+ Kr,
521
1497
  {
522
1498
  className: "bn-ak-button bn-ak-secondary",
523
- disabled: a,
1499
+ disabled: l,
524
1500
  "aria-label": "Text alignment",
525
- render: /* @__PURE__ */ r(x, {}),
1501
+ render: /* @__PURE__ */ s.jsxDEV(Le, {}, void 0, !1, {
1502
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/toolbar/ToolbarSelect.tsx",
1503
+ lineNumber: 35,
1504
+ columnNumber: 17
1505
+ }, void 0),
526
1506
  children: [
527
- l.icon,
1507
+ f.icon,
528
1508
  " ",
529
- l.text,
1509
+ f.text,
530
1510
  " ",
531
- /* @__PURE__ */ r(ne, {})
1511
+ /* @__PURE__ */ s.jsxDEV(qr, {}, void 0, !1, {
1512
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/toolbar/ToolbarSelect.tsx",
1513
+ lineNumber: 36,
1514
+ columnNumber: 49
1515
+ }, void 0)
532
1516
  ]
533
- }
1517
+ },
1518
+ void 0,
1519
+ !0,
1520
+ {
1521
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/toolbar/ToolbarSelect.tsx",
1522
+ lineNumber: 31,
1523
+ columnNumber: 7
1524
+ },
1525
+ void 0
534
1526
  ),
535
- /* @__PURE__ */ r(
536
- te,
1527
+ /* @__PURE__ */ s.jsxDEV(
1528
+ Hr,
537
1529
  {
538
- className: b("bn-ak-popover", s || ""),
539
- ref: t,
1530
+ className: x("bn-ak-popover", o || ""),
1531
+ ref: a,
540
1532
  gutter: 4,
541
- children: e.map((c) => /* @__PURE__ */ g(
542
- se,
1533
+ children: n.map((d) => /* @__PURE__ */ s.jsxDEV(
1534
+ Jr,
543
1535
  {
544
1536
  className: "bn-ak-select-item",
545
- value: c.text,
1537
+ value: d.text,
546
1538
  children: [
547
- c.icon,
548
- c.text,
549
- c.text === l.text && /* @__PURE__ */ r(ae, {})
1539
+ d.icon,
1540
+ d.text,
1541
+ d.text === f.text && /* @__PURE__ */ s.jsxDEV(zr, {}, void 0, !1, {
1542
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/toolbar/ToolbarSelect.tsx",
1543
+ lineNumber: 49,
1544
+ columnNumber: 51
1545
+ }, void 0)
550
1546
  ]
551
1547
  },
552
- c.text
1548
+ d.text,
1549
+ !0,
1550
+ {
1551
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/toolbar/ToolbarSelect.tsx",
1552
+ lineNumber: 43,
1553
+ columnNumber: 11
1554
+ },
1555
+ void 0
553
1556
  ))
554
- }
1557
+ },
1558
+ void 0,
1559
+ !1,
1560
+ {
1561
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/toolbar/ToolbarSelect.tsx",
1562
+ lineNumber: 38,
1563
+ columnNumber: 7
1564
+ },
1565
+ void 0
555
1566
  )
556
- ] });
557
- }), Ee = {
1567
+ ] }, void 0, !0, {
1568
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/toolbar/ToolbarSelect.tsx",
1569
+ lineNumber: 30,
1570
+ columnNumber: 5
1571
+ }, void 0);
1572
+ }), Bn = {
558
1573
  FormattingToolbar: {
559
- Root: M,
560
- Button: I,
561
- Select: Fe
1574
+ Root: _e,
1575
+ Button: Ce,
1576
+ Select: Mn
562
1577
  },
563
1578
  FilePanel: {
564
- Root: be,
565
- Button: ge,
566
- FileInput: pe,
567
- TabPanel: he,
568
- TextInput: Ne
1579
+ Root: ln,
1580
+ Button: cn,
1581
+ FileInput: un,
1582
+ TabPanel: dn,
1583
+ TextInput: fn
569
1584
  },
570
1585
  GridSuggestionMenu: {
571
- Root: Me,
572
- Item: Pe,
573
- EmptyItem: Ie,
574
- Loader: Ce
1586
+ Root: Nn,
1587
+ Item: hn,
1588
+ EmptyItem: gn,
1589
+ Loader: xn
575
1590
  },
576
1591
  LinkToolbar: {
577
- Root: M,
578
- Button: I
1592
+ Root: _e,
1593
+ Button: Ce
579
1594
  },
580
1595
  SideMenu: {
581
- Root: Te,
582
- Button: Se
1596
+ Root: pn,
1597
+ Button: bn
583
1598
  },
584
1599
  SuggestionMenu: {
585
- Root: we,
586
- Item: xe,
587
- EmptyItem: ye,
588
- Label: Re,
589
- Loader: De
1600
+ Root: Dn,
1601
+ Item: Tn,
1602
+ EmptyItem: En,
1603
+ Label: yn,
1604
+ Loader: Sn
590
1605
  },
591
1606
  TableHandle: {
592
- Root: Be,
593
- ExtendButton: Le
1607
+ Root: Rn,
1608
+ ExtendButton: jn
594
1609
  },
595
1610
  Generic: {
596
1611
  Form: {
597
- Root: re,
598
- TextInput: oe
1612
+ Root: Qr,
1613
+ TextInput: en
599
1614
  },
600
1615
  Menu: {
601
- Root: le,
602
- Trigger: de,
603
- Dropdown: ce,
604
- Divider: me,
605
- Label: ue,
606
- Item: ie
1616
+ Root: rn,
1617
+ Trigger: sn,
1618
+ Dropdown: nn,
1619
+ Divider: on,
1620
+ Label: an,
1621
+ Item: tn
607
1622
  },
608
1623
  Popover: {
609
- Root: fe,
610
- Trigger: ve,
611
- Content: ke
1624
+ Root: vn,
1625
+ Trigger: mn,
1626
+ Content: kn
612
1627
  }
613
1628
  }
614
- }, He = (n) => {
615
- const { className: t, ...s } = n;
616
- return /* @__PURE__ */ r(F.Provider, { value: Ee, children: /* @__PURE__ */ r(
617
- E,
1629
+ }, Un = (t) => {
1630
+ const { className: a, ...o } = t;
1631
+ return /* @__PURE__ */ s.jsxDEV(Sr.Provider, { value: Bn, children: /* @__PURE__ */ s.jsxDEV(
1632
+ jr,
618
1633
  {
619
- className: b("bn-ariakit", t || ""),
620
- ...s
621
- }
622
- ) });
1634
+ className: x("bn-ariakit", a || ""),
1635
+ ...o
1636
+ },
1637
+ void 0,
1638
+ !1,
1639
+ {
1640
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/index.tsx",
1641
+ lineNumber: 119,
1642
+ columnNumber: 7
1643
+ },
1644
+ void 0
1645
+ ) }, void 0, !1, {
1646
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/index.tsx",
1647
+ lineNumber: 118,
1648
+ columnNumber: 5
1649
+ }, void 0);
623
1650
  };
624
1651
  export {
625
- He as BlockNoteView,
626
- Ee as components
1652
+ Un as BlockNoteView,
1653
+ Bn as components
627
1654
  };
628
1655
  //# sourceMappingURL=blocknote-ariakit.js.map